import{d as x,M as R,U as g,g as l,p as I,I as M,am as h,f as D,c as n,j as c,l as i,a2 as N,o as a,u as t,bL as S,a as r,bM as m,n as T,bN as U,A as $,af as A}from"./index-bJiZR03d.js";import{u as B}from"./usePageTitle-wT6f1BZv.js";const Z=x({__name:"ConcurrencyLimit",setup(V){const p=R(),y=g("concurrencyLimitId"),v=N(),d=l(()=>[{label:"Details",hidden:I.xl},{label:"Active Task Runs"}]),s=M("tab","Details"),{tabs:_}=h(d,s),b={interval:3e5},L=D(p.concurrencyLimits.getConcurrencyLimit,[y.value],b),e=l(()=>L.response);function f(){v.push(A.concurrencyLimits())}const C=l(()=>e.value?`Concurrency Limit: ${e.value.tag}`:"Concurrency Limit");return B(C),(j,u)=>{const k=i("p-tabs"),w=i("p-layout-well");return a(),n(w,{class:"concurrencyLimit"},{header:c(()=>[e.value?(a(),n(t(S),{key:0,"concurrency-limit":e.value,onDelete:f},null,8,["concurrency-limit"])):r("",!0)]),well:c(()=>[e.value?(a(),n(t(m),{key:0,alternate:"","concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),default:c(()=>[T(k,{selected:t(s),"onUpdate:selected":u[0]||(u[0]=o=>$(s)?s.value=o:null),tabs:t(_)},{details:c(()=>[e.value?(a(),n(t(m),{key:0,"concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),"active-task-runs":c(()=>{var o;return[(o=e.value)!=null&&o.activeSlots?(a(),n(t(U),{key:0,"active-slots":e.value.activeSlots},null,8,["active-slots"])):r("",!0)]}),_:1},8,["selected","tabs"])]),_:1})}}});export{Z as default};
