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