import{u as e}from"./experiment-Cr-ZeruY.js";import{E as s}from"./EnvItems--ltU-a8c.js";import{d as a,o as l,a as r,b as t,t as n,F as u,s as m,f as p,c as o,e as d,g as i,M as c}from"./index-Co2lzP8_.js";const v={key:0,class:"flex flex-col gap-y-4 pt-4"},f={class:"w-full flex"},y={class:"text-dimmer w-44"},x={class:"w-96 break-words whitespace-wrap shrink"},b={class:"shrink-0 pl-8"},w={__name:"EnvGPUItem",setup(s){const o=e().experiment.system;return(e,s)=>{var d,i;return(null==(d=a(o).gpu)?void 0:d.cores)?(l(),r("div",v,[t("div",f,[s[0]||(s[0]=t("span",{class:"text-dimmer w-44"},"GPU count",-1)),t("span",null,n(null==(i=a(o).gpu)?void 0:i.cores),1)]),(l(!0),r(u,null,m(a(o).gpu.memory,((e,s)=>(l(),r("div",{class:"w-full flex",key:s},[t("span",y,"GPU"+n(s),1),t("span",x,n(a(o).gpu.type[s]),1),t("span",b,n(e)+" GB",1)])))),128))])):p("",!0)}}},k={class:"w-full border p-6 rounded-lg bg-default"},g={class:"w-full text-xl font-semibold pb-4 border-b mb-2"},h={key:0},j={__name:"EnvHardware",setup(v){const f=e(),y=f.experiment.system,x=c(),b=o((()=>[j.value])),j=o((()=>{var e,s;return[{key:"brand",value:null==(e=y.cpu)?void 0:e.brand},{key:"cpu",value:(null==(s=y.cpu)?void 0:s.cores)||y.cpu},{key:"memory",value:y.memory?y.memory+"GB":""}]}));return(e,o)=>(l(),r("div",k,[t("h1",g,n(e.$t(`experiment.env.title.${a(x).name}`)),1),(l(!0),r(u,null,m(b.value,(e=>(l(),i(s,{data:e,key:e},null,8,["data"])))),128)),d(w),0===Object.keys(a(f).experiment.system).length?(l(),r("div",h,o[0]||(o[0]=[t("p",{class:"text-center pt-5"},"No hardware information",-1)]))):p("",!0)]))}};export{j as default};
