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