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