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