import{d as b,aF as d,W as i,f as o,bJ as _,c as f,g as c,a as v,h as D,u as B,o as h,j as u,k as n,cH as g,cI as y,bo as C}from"./index-BqDjVCF_.js";import{u as w}from"./usePageTitle-CZh_IXm2.js";const P=b({__name:"BlockView",setup(x){const s=d(),a=B(),t=i("blockDocumentId"),l=o(()=>t.value?[t.value]:null),r=_(s.blockDocuments.getBlockDocument,l),e=o(()=>r.response),m=()=>{a.push(C.blocks())},k=o(()=>e.value?`Block: ${e.value.name}`:"Block");return w(k),(I,V)=>{const p=D("p-layout-default");return e.value?(h(),f(p,{key:0,class:"block-view"},{header:c(()=>[u(n(g),{"block-document":e.value,onDelete:m},null,8,["block-document"])]),default:c(()=>[u(n(y),{"block-document":e.value},null,8,["block-document"])]),_:1})):v("",!0)}}});export{P as default};
//# sourceMappingURL=BlockView-jyhfPs75.js.map
