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