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