import{d as i,g as b,W as d,i as o,bG as _,c as f,j as c,a as D,k as v,u as B,o as g,l as u,m as n,ct as h,cu as C,bk as w}from"./index-Cq5Q7kWk.js";import{u as x}from"./usePageTitle-NgGMZFeo.js";const T=i({__name:"BlockView",setup(y){const s=b(),l=B(),t=d("blockDocumentId"),a=o(()=>t.value?[t.value]:null),r=_(s.blockDocuments.getBlockDocument,a),e=o(()=>r.response),m=()=>{l.push(w.blocks())},k=o(()=>e.value?`Block: ${e.value.name}`:"Block");return x(k),(V,I)=>{const p=v("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(C),{"block-document":e.value},null,8,["block-document"])]),_:1})):D("",!0)}}});export{T as default};
//# sourceMappingURL=BlockView-D9AxzEW0.js.map
