import{d as i,M as f,Y as _,e as u,c as a,i as r,j as v,o,m as x,u as s,b7 as w,l as y,b8 as Q,b9 as b,F as g,a as q}from"./index-bD6G21oH.js";import{u as C}from"./usePageTitle-27XdpEbQ.js";const M=i({__name:"WorkQueues",setup(B){const l=f(),p={interval:3e4},e=_(l.workQueues.getWorkQueues,[{}],p),n=u(()=>e.response??[]),c=u(()=>e.executed&&n.value.length==0),m=u(()=>e.executed);return C("Work Queues"),(F,t)=>{const d=v("p-layout-default");return o(),a(d,{class:"queues"},{header:r(()=>[x(s(w))]),default:r(()=>[m.value?(o(),y(g,{key:0},[c.value?(o(),a(s(Q),{key:0})):(o(),a(s(b),{key:1,"work-queues":n.value,onUpdate:t[0]||(t[0]=k=>s(e).refresh()),onDelete:t[1]||(t[1]=k=>s(e).refresh())},null,8,["work-queues"]))],64)):q("",!0)]),_:1})}}});export{M as default};
