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