import{d as h,a as w,M as T,T as g,c as u,j as x,R as D,ah as E,E as S,b as l,e as c,w as n,o as s,u as t,bC as B,f as r,bD as m,h as I,bE as M,s as N,ab as V}from"./index-562c8470.js";import{u as j}from"./usePageTitle-ad3dbf10.js";const Z=h({__name:"ConcurrencyLimit",setup(A){const p=w(),y=T("concurrencyLimitId"),v=g(),d=u(()=>[{label:"Details",hidden:x.xl},{label:"Active Task Runs"}]),a=D("tab","Details"),{tabs:b}=E(d,a),_={interval:3e5},L=S(p.concurrencyLimits.getConcurrencyLimit,[y.value],_),e=u(()=>L.response);function f(){v.push(V.concurrencyLimits())}const C=u(()=>e.value?`Concurrency Limit: ${e.value.tag}`:"Concurrency Limit");return j(C),(O,i)=>{const k=l("p-tabs"),R=l("p-layout-well");return s(),c(R,{class:"concurrencyLimit"},{header:n(()=>[e.value?(s(),c(t(B),{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(()=>[I(k,{selected:t(a),"onUpdate:selected":i[0]||(i[0]=o=>N(a)?a.value=o:null),tabs:t(b)},{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(M),{key:0,"active-slots":e.value.activeSlots},null,8,["active-slots"])):r("",!0)]}),_:1},8,["selected","tabs"])]),_:1})}}});export{Z as default};
