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