import{d as x,f as g,W as h,u as I,h as i,aI as D,al as R,bt as S,g as T,i as u,c,o as n,j as a,k as B,m as t,a6 as N,a as r,cw as V,cx as m,cy as W,be as j}from"./index-D_5Czl8L.js";import{u as A}from"./usePageTitle-DV7LzCfq.js";const Z=x({__name:"ConcurrencyLimit",setup(F){const p=g(),y=h("concurrencyLimitId"),d=I(),v=i(()=>[{label:"Details",hidden:D.xl},{label:"Active Task Runs"}]),s=R("tab","Details"),{tabs:_}=S(v,s),b={interval:3e5},L=T(p.concurrencyLimits.getConcurrencyLimit,[y.value],b),e=i(()=>L.response);function f(){d.push(j.concurrencyLimits())}const C=i(()=>e.value?`Concurrency Limit: ${e.value.tag}`:"Concurrency Limit");return A(C),(O,l)=>{const k=u("p-tabs"),w=u("p-layout-well");return n(),c(w,{class:"concurrencyLimit"},{header:a(()=>[e.value?(n(),c(t(W),{key:0,"concurrency-limit":e.value,onDelete:f},null,8,["concurrency-limit"])):r("",!0)]),well:a(()=>[e.value?(n(),c(t(m),{key:0,alternate:"","concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),default:a(()=>[B(k,{selected:t(s),"onUpdate:selected":l[0]||(l[0]=o=>N(s)?s.value=o:null),tabs:t(_)},{details:a(()=>[e.value?(n(),c(t(m),{key:0,"concurrency-limit":e.value},null,8,["concurrency-limit"])):r("",!0)]),"active-task-runs":a(()=>{var o;return[(o=e.value)!=null&&o.activeSlots?(n(),c(t(V),{key:0,"active-slots":e.value.activeSlots},null,8,["active-slots"])):r("",!0)]}),_:1},8,["selected","tabs"])]),_:1})}}});export{Z as default};
//# sourceMappingURL=ConcurrencyLimit-B8tqqXL9.js.map
