import{d as p,ao as d,j as s,c,w as n,r as k,o as t,a as _,u as e,bm as f,l as b,bn as i,bo as h,G as y,m as B}from"./index-4d9fe32c-718dc5d9.js";import{c as D}from"./vue-compositions-55710141.js";import{u as x}from"./usePageTitle-e8e2e29d.js";const j=p({__name:"Blocks",setup(g){const l=d(),o=D(l.blockDocuments.getBlockDocuments),a=s(()=>o.response??[]),r=s(()=>o.executed&&a.value.length==0),u=s(()=>o.executed);return x("Blocks"),(C,v)=>{const m=k("p-layout-default");return t(),c(m,{class:"blocks"},{header:n(()=>[_(e(f))]),default:n(()=>[e(u)?(t(),b(y,{key:0},[e(r)?(t(),c(e(i),{key:0})):(t(),c(e(h),{key:1,"block-documents":e(a),onDelete:e(o).refresh},null,8,["block-documents","onDelete"]))],64)):B("",!0)]),_:1})}}});export{j as default};
