import{d as b,M as d,b as i,e as o,az as _,c as f,i as c,a as v,j as D,a1 as B,o as h,m as u,u as a,bz as C,bA as g,ae as w}from"./index-bD6G21oH.js";import{u as x}from"./usePageTitle-27XdpEbQ.js";const M=b({__name:"BlockView",setup(y){const n=d(),s=B(),t=i("blockDocumentId"),l=o(()=>t.value?[t.value]:null),r=_(n.blockDocuments.getBlockDocument,l),e=o(()=>r.response),m=()=>{s.push(w.blocks())},k=o(()=>e.value?`Block: ${e.value.name}`:"Block");return x(k),(V,z)=>{const p=D("p-layout-default");return e.value?(h(),f(p,{key:0,class:"block-view"},{header:c(()=>[u(a(C),{"block-document":e.value,onDelete:m},null,8,["block-document"])]),default:c(()=>[u(a(g),{"block-document":e.value},null,8,["block-document"])]),_:1})):v("",!0)}}});export{M as default};
