import{d as b,M as d,U as i,g as o,aA as _,c as f,j as c,a as v,l as B,a2 as D,o as C,n,u,bB as g,bC as h,af as w}from"./index-bJiZR03d.js";import{u as x}from"./usePageTitle-wT6f1BZv.js";const M=b({__name:"BlockView",setup(y){const a=d(),s=D(),t=i("blockDocumentId"),l=o(()=>t.value?[t.value]:null),r=_(a.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,j)=>{const p=B("p-layout-default");return e.value?(C(),f(p,{key:0,class:"block-view"},{header:c(()=>[n(u(g),{"block-document":e.value,onDelete:m},null,8,["block-document"])]),default:c(()=>[n(u(h),{"block-document":e.value},null,8,["block-document"])]),_:1})):v("",!0)}}});export{M as default};
