import{d as Q,u as h,c as r,a as v,T as g,r as l,o as t,b as s,w as o,e,$ as C,f as a,i as c,a0 as $,a1 as p,a2 as x,p as W,z as U}from"./index.a93ec448.js";import{u as B}from"./useRouteParam.ba3137c3.js";const T=Q({__name:"WorkQueue",setup(D){const k=h(),m=r(()=>{const n=["Upcoming runs"];return U.xl||n.unshift("Details"),n}),_=B("id"),d=r(()=>`prefect agent start ${_.value}`),w={interval:3e5},i=v(g.getWorkQueue,[_.value],w),u=r(()=>i.response),f=()=>{k.push(W.workQueues())};return(n,N)=>{const q=l("p-tabs"),b=l("p-layout-well"),y=l("p-layout-default");return t(),s(y,{class:"work-queue"},{header:o(()=>[e(u)?(t(),s(e(C),{key:0,queue:e(u),onUpdate:e(i).refresh,onDelete:f},null,8,["queue","onUpdate"])):a("",!0)]),default:o(()=>[c(b,{class:"work-queue__body"},{header:o(()=>[c(e($),{command:e(d),title:"Work queue is ready to go!",subtitle:"Work queues define the work to be done and agents poll a specific work queue for new work."},null,8,["command"])]),well:o(()=>[e(u)?(t(),s(e(p),{key:0,"work-queue":e(u)},null,8,["work-queue"])):a("",!0)]),default:o(()=>[c(q,{tabs:e(m)},{details:o(()=>[e(u)?(t(),s(e(p),{key:0,"work-queue":e(u)},null,8,["work-queue"])):a("",!0)]),"upcoming-runs":o(()=>[e(u)?(t(),s(e(x),{key:0,"work-queue":e(u)},null,8,["work-queue"])):a("",!0)]),_:1},8,["tabs"])]),_:1})]),_:1})}}});export{T as default};
