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