import{d,v as p,R as k,c as a,a as _,e as s,w as n,o,m as f,g as t,a_ as i,k as b,a$ as v,b0 as y,F as B,i as D}from"./index-a91efef8.js";import{u as g}from"./usePageTitle-6b86fe3b.js";const N=d({__name:"Blocks",setup(h){const l=p(),e=k(l.blockDocuments.getBlockDocuments),c=a(()=>e.response??[]),u=a(()=>e.executed&&c.value.length==0),r=a(()=>e.executed);return g("Blocks"),(x,C)=>{const m=_("p-layout-default");return o(),s(m,{class:"blocks"},{header:n(()=>[f(t(i))]),default:n(()=>[r.value?(o(),b(B,{key:0},[u.value?(o(),s(t(v),{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{N as default};
