import{d as h,aE as w,W as x,e as i,am as R,bs as S,t as D,c,f as n,g as u,u as I,aN as N,o as a,i as t,cQ as T,a as r,cR as m,h as V,cS as B,a5 as Q,bl as W}from"./index-BOEdKJ1D.js";import{u as A}from"./usePageTitle-BkurcLK2.js";const P=h({__name:"ConcurrencyLimit",setup(E){const y=w(),p=x("concurrencyLimitId"),d=I(),v=i(()=>[{label:"Details",hidden:N.xl},{label:"Active Task Runs"}]),s=R("tab","Details"),{tabs:_}=S(v,s),b={interval:3e5},L=D(y.concurrencyLimits.getConcurrencyLimit,[p.value],b),e=i(()=>L.response);function f(){d.push(W.concurrencyLimits())}const C=i(()=>e.value?`Concurrency Limit: ${e.value.tag}`:"Concurrency Limit");return A(C),(J,l)=>{const k=u("p-tabs"),g=u("p-layout-well");return a(),c(g,{class:"concurrencyLimit"},{header:n(()=>[e.value?(a(),c(t(T),{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(()=>[V(k,{selected:t(s),"onUpdate:selected":l[0]||(l[0]=o=>Q(s)?s.value=o:null),tabs:t(_)},{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(B),{key:0,"active-slots":e.value.activeSlots},null,8,["active-slots"])):r("",!0)]}),_:1},8,["selected","tabs"])]),_:1})}}});export{P as default};
//# sourceMappingURL=ConcurrencyLimit-Cq-jFD5N.js.map
