import{d as r,u as m,a as p,c as k,r as _,e as o,o as d,b as i,w as t,i as c,ak as b,al as f,f as D,a6 as B,p as h}from"./index.a93ec448.js";import{u as w}from"./useRouteParam.ba3137c3.js";const I=r({__name:"BlockView",setup(C){const s=m(),a=w("blockDocumentId"),n=p(B.getBlockDocument,[a]),e=k(()=>n.response),u=()=>{s.push(h.blocks())};return(x,y)=>{const l=_("p-layout-default");return o(e)?(d(),i(l,{key:0,class:"block-view"},{header:t(()=>[c(o(b),{"block-document":o(e),onDelete:u},null,8,["block-document"])]),default:t(()=>[c(o(f),{"block-document":o(e)},null,8,["block-document"])]),_:1})):D("",!0)}}});export{I as default};
