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