const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BKPPo2Vx.js","./DvpWg0hF.js","./B2UyoCas.js","./entry.CFrJT2kr.css","./C9KnTrrC.js","./Bw4qhTdR.js","./88opOQSr.js","./AdvisorContent.P3nT42Ct.css"])))=>i.map(i=>d[i]);
import{d as x,h as D,a1 as z,r as I,N as B,z as N,m as b,c as U,b as h,w as u,q as d,v as E,p as M,u as t,f as v,e as c,t as p,_ as S,s as k,a9 as O,n as R,A as w,aa as P,k as V,i as g,dE as j,o as F,c7 as H,a as A,a5 as L,W,B as q,ac as K}from"./B2UyoCas.js";import{_ as G}from"./8cAMPTBV.js";import{d as J,s as Q,u as X}from"./BhXuhlb7.js";import{_ as Y}from"./Bw4qhTdR.js";import{_ as Z}from"./C9KnTrrC.js";const ee=O(()=>P(()=>import("./BKPPo2Vx.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url).then(i=>i.default||i)),te={class:"flex items-center"},oe={class:"sr-only"},ne={class:"text-xl text-uiText-toned"},se={class:"text-uiText-muted font-normal"},ae=x({__name:"MoreInfo",props:{title:{default:""},description:{default:""},infoType:{}},setup(i){const l=i,{tippyTheme:f}=D();z();const e=I(!1);J({[Q.advisor]:()=>e.value=!e.value});const{tracker:m}=B();return N(()=>{e.value&&m("advisor_info","click",`Open advisor info for ${l.infoType}`)}),(s,o)=>{const n=S,_=E,a=ee,r=G,$=b("tippy");return h(),U(r,{open:t(e),"onUpdate:open":o[0]||(o[0]=y=>w(e)?e.value=y:null),ui:{content:"max-w-[500px]"}},{title:u(()=>[c("span",ne,[R(p(s.$t("Advisor"))+": ",1),c("span",se,p(s.$t(`pageName.${s.title}`)),1)])]),body:u(()=>[d(a,{"info-type":s.infoType},null,8,["info-type"])]),default:u(()=>[d(_,{variant:"soft",color:"secondary",size:"sm",class:"flex items-center"},{default:u(()=>[M((h(),v("span",te,[c("span",oe,p(s.$t("MoreInfo")),1),d(n,{name:t(k).icoInfo,class:"size-5"},null,8,["name"])])),[[$,{content:s.$t("MoreInfo"),theme:t(f)}]])]),_:1})]),_:1},8,["open"])}}}),$e=Object.assign(ae,{__name:"MoreInfo"}),re={class:"text-sm font-medium"},ce={class:"flex items-center o_gap-2"},ie=x({__name:"CollectDataInfo",props:{dataCount:{default:0}},setup(i){const{getRunnerState:l}=X(),f=V(),e=g(()=>l(f.params.sid)),m=I(!1),{start:s,stop:o}=j(()=>{m.value=!0},500);return F(()=>{s()}),H(()=>{o()}),(n,_)=>{var y,C,T;const a=Y,r=S,$=Z;return t(m)&&((y=t(e))!=null&&y.isFirstRun||n.dataCount===0)?(h(),U($,{key:0,color:"info",variant:"subtle",ui:{root:"p-00 o_p-3"}},L({_:2},[(C=t(e))!=null&&C.isFirstRun?{name:"title",fn:u(()=>[c("h2",re,p(n.$t("WeAreCollectingData")),1),c("p",null,[d(a,{text:n.$t("WeCollectDataSentence")},null,8,["text"])])]),key:"0"}:void 0,n.dataCount===0&&!((T=t(e))!=null&&T.isFirstRun)?{name:"description",fn:u(()=>[c("div",ce,[d(r,{name:t(k).icoHourglass,class:"size-4"},null,8,["name"]),R(" "+p(n.$t("noStatsOnProject")),1)])]),key:"1"}:void 0]),1024)):A("",!0)}}}),ve=Object.assign(ie,{__name:"CollectDataInfo"}),le={class:"text-uiText-toned flex items-center font-medium o_gap-1"},_e=["href","aria-label"],pe={class:"sr-only"},me=x({__name:"MetricPageHeader",props:{component:{}},setup(i){const l=i,f=W(),e=g(()=>{var o,n,_,a;return(o=l.component)!=null&&o.url?l.component.url:(a=(_=(n=f.selectCurrentSystem)==null?void 0:n.components)==null?void 0:_.find(r=>r.id===Number(l.component.id)))==null?void 0:a.url}),m=q(),s=g(()=>m.value==="dark"?"light":"dark");return(o,n)=>{var r;const _=S,a=b("tippy");return h(),v("header",null,[c("h3",le,[K(o.$slots,"default"),(r=t(e))!=null&&r.length?M((h(),v("a",{key:0,href:t(e),target:"_blank",rel:"noopener noreferrer",class:"o_ml-2 flex items-center","aria-label":o.$t("goto")+": "+t(e)},[d(_,{name:t(k).icoExternalLink,class:"size-4 o_opacity-60"},null,8,["name"]),c("span",pe,p(o.$t("goto"))+": "+p(t(e)),1)],8,_e)),[[a,{theme:t(s),content:`${o.$t("goto")}: ${t(e)}`}]]):A("",!0)])])}}}),ge=Object.assign(me,{__name:"MetricPageHeader"});export{$e as _,ve as a,ge as b};
