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