import{d as i,aE as b,W as d,e as o,bG as _,c as f,f as c,a as v,g as D,u as B,o as g,h as u,i as n,cE as h,cF as y,bl as C}from"./index-BOEdKJ1D.js";import{u as w}from"./usePageTitle-BkurcLK2.js";const S=i({__name:"BlockView",setup(x){const s=b(),a=B(),t=d("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),(V,E)=>{const p=D("p-layout-default");return e.value?(g(),f(p,{key:0,class:"block-view"},{header:c(()=>[u(n(h),{"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{S as default};
//# sourceMappingURL=BlockView-CLVlYg71.js.map
