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