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