import{_ as M,a as w}from"./DCtuMFER.js";import{_ as L}from"./DXaD0OjS.js";import{_ as B}from"./BGi3spfc.js";import{u as T,_ as U,a as A,b as D}from"./WrXV0P1O.js";import{_ as E}from"./BY0xeA_q.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 s,w as O,m as t,F as u,r as R}from"./B08CJtNn.js";import"./laKVya4-.js";import"./MxJSE5eV.js";import"./BTwP6ady.js";import"./BXavTXDM.js";import"./CqE4Z78-.js";import"./fTZc3uM5.js";import"./88opOQSr.js";import"./DbksU3dH.js";import"./eHv8qUqa.js";import"./rOCSnSVW.js";import"./BRNs145u.js";import"./CD8fUNjX.js";import"./BiwcPAyi.js";import"./7feIV7Ht.js";import"./CUy7HhdT.js";import"./CRXJzjwR.js";import"./Bu8VOy--.js";import"./xjUEazAQ.js";import"./BmXXXyAy.js";import"./aIDcP5lR.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"},m="uptime",gt=F({__name:"uptimeStats-[pid]-[sid]",setup(H){const a=I(),{data:o,error:c,refresh:p,setChartOptions:l}=T("uptime"),d=N(()=>{if(!o.value?.metrics?.[0]?.meta)return{};const _=o.value.metrics[0].meta.limit/1;return l(_,m)});return(_,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":m})]),_: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":m,onSaveSettings:t(p)},null,8,["onSaveSettings"]),n(x)])):i("",!0),t(a).metricTableLayout?(e(),s(k,{key:1,data:t(o),class:"o_mb-6","metric-type":m},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(),s(S,{key:b,"metric-type":m,class:"@container/cresults",metric:v,options:t(d)},null,8,["metric","options"]))),128))]))],64)):i("",!0),t(c)?(e(),s(C,{key:1,error:t(c),refresh:t(p)},null,8,["error","refresh"])):i("",!0)])}}});export{gt as default};
