import{d as f,m as i,R as _,c as a,a as v,f as u,w as r,o,n as y,g as s,aN as w,j as Q,aO as g,aP as x,F as C,h}from"./index-18beffd6.js";import{u as q}from"./usePageTitle-5c97edcb.js";const b=f({__name:"WorkQueues",setup(B){const l=i(),p={interval:3e4},e=_(l.workQueues.getWorkQueues,[{}],p),n=a(()=>e.response??[]),c=a(()=>e.executed&&n.value.length==0),m=a(()=>e.executed);return q("Work Queues"),(N,t)=>{const d=v("p-layout-default");return o(),u(d,{class:"queues"},{header:r(()=>[y(s(w))]),default:r(()=>[m.value?(o(),Q(C,{key:0},[c.value?(o(),u(s(g),{key:0})):(o(),u(s(x),{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)):h("",!0)]),_:1})}}});export{b as default};
