import{d as i,k as b,W as d,h as o,bK as _,c as f,i as c,a as v,j as D,g as B,o as h,l as n,m as s,cw as g,cx as w,bo as x}from"./index-7qezL2zM.js";import{u as C}from"./usePageTitle-k72s0--o.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(x.blocks())},k=o(()=>e.value?`Block: ${e.value.name}`:"Block");return C(k),(V,I)=>{const p=D("p-layout-default");return e.value?(h(),f(p,{key:0,class:"block-view"},{header:c(()=>[n(s(g),{"block-document":e.value,onDelete:m},null,8,["block-document"])]),default:c(()=>[n(s(w),{"block-document":e.value},null,8,["block-document"])]),_:1})):v("",!0)}}});export{S as default};
//# sourceMappingURL=BlockView-64tY2g42.js.map
