import{_ as M,a as w}from"./CQblF2yi.js";import{_ as L}from"./C-XkP9tB.js";import{_ as B}from"./DFGWrG5M.js";import{u as T,_ as U,a as A,b as D}from"./1FuHCOs6.js";import{_ as E}from"./BXyDg5m4.js";import{d as F,u as I,g as N,e as r,o as e,a as n,l as i,c as m,w as O,m as t,F as u,r as R}from"./Dk4AzF7j.js";import"./C_tXuDKt.js";import"./CR2z6V-x.js";import"./D7D5X_-3.js";import"./DgCXB7yu.js";import"./CJbRX-Xv.js";import"./BnFHREeV.js";import"./BOMWTB7S.js";import"./B_jJHUd2.js";import"./DMtpgJrn.js";import"./CL3BB5lh.js";import"./B-PWL9ab.js";import"./BJxNwbOK.js";import"./BTe-eGo6.js";import"./RBq99eBL.js";import"./88opOQSr.js";import"./DXyvFCCy.js";import"./Dptbt2z6.js";import"./PJSlhYeJ.js";import"./NkNhW2e0.js";const V={key:0,class:"flex items-center o_gap-2 flex-wrap o_mb-4"},G={key:2,class:"grid-resultGrid grid o_gap-6"},s="uptime",dt=F({__name:"uptimeStats-[pid]-[sid]",setup(H){const a=I(),{data:o,error:c,refresh:_,setChartOptions:l}=T("uptime"),d=N(()=>{if(!o.value?.metrics?.[0]?.meta)return{};const p=o.value.metrics[0].meta.limit/1;return l(p,s)});return(p,K)=>{const f=M,g=L,y=w,h=B,x=U,k=A,S=D,C=E;return e(),r("div",null,[n(g,{"page-key":"pMonitoringUptimeStats"},{title:O(()=>[n(f,{title:"pMonitoringUptimeStats","info-type":s})]),_:1}),t(o)?.metrics?(e(),r(u,{key:0},[n(y,{"data-count":t(o).metrics?.length,class:"o_mb-6"},null,8,["data-count"]),t(o)?.metrics?.length?(e(),r("div",V,[n(h,{"metric-key":s,onSaveSettings:t(_)},null,8,["onSaveSettings"]),n(x)])):i("",!0),t(a).metricTableLayout?(e(),m(k,{key:1,data:t(o),class:"o_mb-6","metric-type":s},null,8,["data"])):i("",!0),t(a).metricTableLayout?i("",!0):(e(),r("div",G,[(e(!0),r(u,null,R(t(o).metrics,(v,b)=>(e(),m(S,{key:b,"metric-type":s,class:"@container/cresults",metric:v,options:t(d)},null,8,["metric","options"]))),128))]))],64)):i("",!0),t(c)?(e(),m(C,{key:1,error:t(c),refresh:t(_)},null,8,["error","refresh"])):i("",!0)])}}});export{dt as default};
