import{d as b,e as i,W as d,h as o,bK as _,c as f,i as c,a as v,j as D,u as B,o as h,k as u,l as n,cx as w,cy as x,bo as y}from"./index-CibiDZQv.js";import{u as C}from"./usePageTitle-DYAZWMh1.js";const T=b({__name:"BlockView",setup(g){const s=i(),l=B(),t=d("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(()=>[u(n(w),{"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{T as default};
//# sourceMappingURL=BlockView-1dzs68rx.js.map
