import{d as i,M as f,f as _,h as a,k as v,c as u,l as r,o,n as w,u as s,b9 as x,m as b,ba as y,bb as Q,B as g,a as B}from"./index-gULJbqdd.js";import{u as C}from"./usePageTitle-HrbxxOEb.js";const N=i({__name:"WorkQueues",setup(h){const l=f(),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 C("Work Queues"),(q,t)=>{const d=v("p-layout-default");return o(),u(d,{class:"queues"},{header:r(()=>[w(s(x))]),default:r(()=>[m.value?(o(),b(g,{key:0},[c.value?(o(),u(s(y),{key:0})):(o(),u(s(Q),{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)):B("",!0)]),_:1})}}});export{N as default};
