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