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