import{d as h,aF as w,W as x,f as u,an as T,bv as D,t as I,c,g as n,h as l,u as O,aO as R,o as a,k as t,cT as S,a as r,cU as m,j as V,cV as j,a5 as B,bo as F}from"./index-BqDjVCF_.js";import{u as N}from"./usePageTitle-CZh_IXm2.js";const H=h({__name:"ConcurrencyLimit",setup(P){const y=w(),p=x("concurrencyLimitId"),d=O(),v=u(()=>[{label:"Details",hidden:R.xl},{label:"Active Task Runs"}]),s=T("tab","Details"),{tabs:_}=D(v,s),b={interval:3e5},L=I(y.concurrencyLimits.getConcurrencyLimit,[p.value],b),e=u(()=>L.response);function f(){d.push(F.concurrencyLimits())}const k=u(()=>e.value?`Concurrency Limit: ${e.value.tag}`:"Concurrency Limit");return N(k),(U,i)=>{const C=l("p-tabs"),g=l("p-layout-well");return a(),c(g,{class:"concurrencyLimit"},{header:n(()=>[e.value?(a(),c(t(S),{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(C,{selected:t(s),"onUpdate:selected":i[0]||(i[0]=o=>B(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(j),{key:0,"active-slots":e.value.activeSlots},null,8,["active-slots"])):r("",!0)]}),_:1},8,["selected","tabs"])]),_:1})}}});export{H as default};
//# sourceMappingURL=ConcurrencyLimit-Dq9LClC1.js.map
