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