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