import{_ as b}from"./CBXHUQO1.js";import S from"./CTMooejj.js";import{_ as L}from"./BpJC44XK.js";import{_ as U}from"./Ct1HywIS.js";import{_ as A}from"./BECNrDz6.js";import{v as B,x as N,y as V,z as h,A as j,_ as H,c as g,a as t,t as r,b as m,w as k,q as I,p as y,o as a,d as v}from"./CibDhUcP.js";import{u as P}from"./CJnKyk0K.js";import{u as D}from"./fWHo1AcK.js";import"./7Y0YHGTE.js";import"./5LXQy1qV.js";import"./CW5dyef9.js";import"./nOI-3DST.js";import"./BCJxuefG.js";const T=B({__name:"index",async setup(w,{expose:s}){s();let o,e;const u=N(),{getChartData:i}=P(),{data:_,error:c,status:d}=([o,e]=V(()=>i()),o=await o,e(),o),l=h().getDashboardLink(),p=h().getSignupLink(),{t:n}=j(),{tracker:f}=D(),C=[n("CPU"),n("CPULoadAverage"),n("TopProcesses")];f("page_view","page","miniapp");const x={UStore:u,getChartData:i,data:_,error:c,status:d,dashboardLink:l,signupLink:p,t:n,tracker:f,titles:C};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),z={class:"flex items-center justify-between gap-4 mb-4"},E={class:"whmHeadline"},M={class:"bg-white p-5 whmCard"},R={key:0,class:"flex gap-4 items-center justify-between outline-2 outline-sky-400 outline rounded-sm px-2 py-1 mb-4"},q={class:"flex gap-2 items-center"},F={class:"text-neutral-400"},G={class:"w-28 flex justify-end flex-shrink-0"};function O(w,s,o,e,u,i){const _=b,c=S,d=L,l=U,p=A;return a(),g("div",null,[t("header",z,[t("h2",E,r(e.t("ServerMonitoring")),1),t("div",null,[m(_,{to:e.dashboardLink,class:"text-primary text-sm hover:underline","data-testid":"link-view-reports"},{default:k(()=>[v(r(e.t("ViewReports")),1)]),_:1},8,["to"])])]),t("div",M,[e.UStore.userIsLoggedIn?I("",!0):(a(),g("div",R,[t("div",q,[m(c,{name:"material-symbols:info-outline-rounded",class:"size-6 text-sky-400 flex-shrink-0"}),t("span",F,r(e.t("SignUpForMoreCharts")),1)]),t("div",G,[m(d,{to:e.signupLink,"data-testid":"link-signup",onClick:s[0]||(s[0]=n=>e.tracker("signup_reminder","click_on","/signup"))},{default:k(()=>[v(r(e.t("SignUp")),1)]),_:1},8,["to"])])])),e.status!=="pending"?(a(),y(l,{key:1,data:e.data.data,titles:e.titles,layout:"thirdColumGridSmaller","chart-height":"360px"},null,8,["data"])):(a(),y(p,{key:2,error:e.error},null,8,["error"]))])])}const re=H(T,[["render",O],["__file","index.vue"]]);export{re as default};
