import{_ as U,a as A}from"./DR96n_VU.js";import{_ as D}from"./gQe2oyAA.js";import{_ as E}from"./BYHNlRPy.js";import{u as F,_ as I,a as N,b as O}from"./Di7tK_T5.js";import{_ as R}from"./DvpWg0hF.js";import{d as V,h as q,i as G,f as r,b as e,q as n,a as i,c as _,w as H,u as t,F as x,g as K}from"./B2UyoCas.js";import"./8cAMPTBV.js";import"./BGYJXalu.js";import"./CsNNGtvO.js";import"./DeNTsafF.js";import"./BhXuhlb7.js";import"./Bw4qhTdR.js";import"./88opOQSr.js";import"./C9KnTrrC.js";import"./CVosDfjh.js";import"./DmViyvlQ.js";import"./CpwhmUL9.js";import"./DrZRFQXy.js";import"./ABctaOB9.js";import"./CB3BcoM2.js";import"./D7ehs0CJ.js";import"./DaLgO_IH.js";import"./Cy--ZdFw.js";import"./NkNhW2e0.js";const P={key:0,class:"flex items-center o_gap-2 flex-wrap o_mb-4"},j={key:2,class:"grid-resultGrid grid o_gap-6"},s="uptime",ht=V({__name:"uptimeStats-[pid]-[sid]",setup(z){const p=q(),{data:o,error:u,refresh:l,setChartOptions:k}=F("uptime"),S=G(()=>{var c,a,m;if(!((m=(a=(c=o.value)==null?void 0:c.metrics)==null?void 0:a[0])!=null&&m.meta))return{};const d=o.value.metrics[0].meta.limit/1;return k(d,s)});return(d,c)=>{var f,g,h,y;const a=U,m=D,C=A,b=E,v=I,M=N,w=O,L=R;return e(),r("div",null,[n(m,{"page-key":"pMonitoringUptimeStats"},{title:H(()=>[n(a,{title:"pMonitoringUptimeStats","info-type":s})]),_:1}),(f=t(o))!=null&&f.metrics?(e(),r(x,{key:0},[n(C,{"data-count":(g=t(o).metrics)==null?void 0:g.length,class:"o_mb-6"},null,8,["data-count"]),(y=(h=t(o))==null?void 0:h.metrics)!=null&&y.length?(e(),r("div",P,[n(b,{"metric-key":s,onSaveSettings:t(l)},null,8,["onSaveSettings"]),n(v)])):i("",!0),t(p).metricTableLayout?(e(),_(M,{key:1,data:t(o),class:"o_mb-6","metric-type":s},null,8,["data"])):i("",!0),t(p).metricTableLayout?i("",!0):(e(),r("div",j,[(e(!0),r(x,null,K(t(o).metrics,(B,T)=>(e(),_(w,{key:T,"metric-type":s,class:"@container/cresults",metric:B,options:t(S)},null,8,["metric","options"]))),128))]))],64)):i("",!0),t(u)?(e(),_(L,{key:1,error:t(u),refresh:t(l)},null,8,["error","refresh"])):i("",!0)])}}});export{ht as default};
