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