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