import{d as g,g as h,W as x,u as D,i as l,aI as T,al as I,bt as R,h as S,j as u,c,o as n,k as a,l as B,p as t,a6 as N,a as r,cO as O,cP as m,cQ as P,be as V}from"./index-Cixz26l0.js";import{u as W}from"./usePageTitle-BPkBun_K.js";const Q=g({__name:"ConcurrencyLimit",setup(j){const p=h(),y=x("concurrencyLimitId"),d=D(),v=l(()=>[{label:"Details",hidden:T.xl},{label:"Active Task Runs"}]),s=I("tab","Details"),{tabs:b}=R(v,s),_={interval:3e5},L=S(p.concurrencyLimits.getConcurrencyLimit,[y.value],_),e=l(()=>L.response);function f(){d.push(V.concurrencyLimits())}const C=l(()=>e.value?`Concurrency Limit: ${e.value.tag}`:"Concurrency Limit");return W(C),(A,i)=>{const k=u("p-tabs"),w=u("p-layout-well");return n(),c(w,{class:"concurrencyLimit"},{header:a(()=>[e.value?(n(),c(t(P),{key:0,"concurrency-limit":e.value,onDelete:f},null,8,["concurrency-limit"])):r("",!0)]),well:a(()=>[e.value?(n(),c(t(m),{key:0,alternate:"","concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),default:a(()=>[B(k,{selected:t(s),"onUpdate:selected":i[0]||(i[0]=o=>N(s)?s.value=o:null),tabs:t(b)},{details:a(()=>[e.value?(n(),c(t(m),{key:0,"concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),"active-task-runs":a(()=>{var o;return[(o=e.value)!=null&&o.activeSlots?(n(),c(t(O),{key:0,"active-slots":e.value.activeSlots},null,8,["active-slots"])):r("",!0)]}),_:1},8,["selected","tabs"])]),_:1})}}});export{Q as default};
//# sourceMappingURL=ConcurrencyLimit-18tnCaL_.js.map
