import{d as p,m as d,R as k,c as a,a as _,f as s,w as n,o,n as f,g as t,a_ as i,j as b,a$ as h,b0 as y,F as B,h as D}from"./index-18beffd6.js";import{u as g}from"./usePageTitle-5c97edcb.js";const K=p({__name:"Blocks",setup(v){const l=d(),e=k(l.blockDocuments.getBlockDocuments),c=a(()=>e.response??[]),u=a(()=>e.executed&&c.value.length==0),m=a(()=>e.executed);return g("Blocks"),(x,C)=>{const r=_("p-layout-default");return o(),s(r,{class:"blocks"},{header:n(()=>[f(t(i))]),default:n(()=>[m.value?(o(),b(B,{key:0},[u.value?(o(),s(t(h),{key:0})):(o(),s(t(y),{key:1,"block-documents":c.value,onDelete:t(e).refresh},null,8,["block-documents","onDelete"]))],64)):D("",!0)]),_:1})}}});export{K as default};
