import{d as b,h as d,W as i,j as o,bK as _,c as f,k as c,a as v,l as D,u as B,o as h,m as n,n as u,cx as w,cy as x,bo as y}from"./index-CKtbewUP.js";import{u as C}from"./usePageTitle-BJBko9bD.js";const T=b({__name:"BlockView",setup(g){const s=d(),l=B(),t=i("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 p=D("p-layout-default");return e.value?(h(),f(p,{key:0,class:"block-view"},{header:c(()=>[n(u(w),{"block-document":e.value,onDelete:m},null,8,["block-document"])]),default:c(()=>[n(u(x),{"block-document":e.value},null,8,["block-document"])]),_:1})):v("",!0)}}});export{T as default};
//# sourceMappingURL=BlockView-wQJCmkAc.js.map
