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