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