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