import{d as k,ao as b,j as t,u as e,c as d,w as n,m as f,r as _,ah as v,o as D,a as s,bx as B,by as h}from"./index-4d9fe32c-718dc5d9.js";import{u as w,v as x}from"./vue-compositions-55710141.js";import{u as y}from"./usePageTitle-e8e2e29d.js";import"./index-558d177a.js";import{r as C}from"./routes-1bd54f1a.js";import"./meta-26546594.js";const P=k({__name:"BlockView",setup(g){const u=b(),a=v(),c=w("blockDocumentId"),r=t(()=>c.value?[c.value]:null),l=x(u.blockDocuments.getBlockDocument,r),o=t(()=>l.response),m=()=>{a.push(C.blocks())},p=t(()=>o.value?`Block: ${o.value.name}`:"Block");return y(p),(V,I)=>{const i=_("p-layout-default");return e(o)?(D(),d(i,{key:0,class:"block-view"},{header:n(()=>[s(e(B),{"block-document":e(o),onDelete:m},null,8,["block-document"])]),default:n(()=>[s(e(h),{"block-document":e(o)},null,8,["block-document"])]),_:1})):f("",!0)}}});export{P as default};
