import{d as k,ao as f,j as a,c as u,w as n,r as _,o as t,a as w,u as e,ba as b,l as x,bb as y,bc as Q,G as v,m as g}from"./index-4d9fe32c-718dc5d9.js";import{c as C}from"./vue-compositions-55710141.js";import{u as T}from"./usePageTitle-e8e2e29d.js";const N=k({__name:"WorkQueues",setup(W){const c=f(),l={interval:3e4},o=C(c.workQueues.getWorkQueues,[{}],l),r=a(()=>o.response??[]),p=a(()=>o.executed&&r.value.length==0),m=a(()=>o.executed);return T("Work Queues"),(h,s)=>{const d=_("p-layout-default");return t(),u(d,{class:"queues"},{header:n(()=>[w(e(b))]),default:n(()=>[e(m)?(t(),x(v,{key:0},[e(p)?(t(),u(e(y),{key:0})):(t(),u(e(Q),{key:1,"work-queues":e(r),onUpdate:s[0]||(s[0]=i=>e(o).refresh()),onDelete:s[1]||(s[1]=i=>e(o).refresh())},null,8,["work-queues"]))],64)):g("",!0)]),_:1})}}});export{N as default};
