import{u as e,c as a,a as t,b as i,t as l,d as o,F as s,s as u,o as n,g as r,M as v,z as m}from"./index-ChTM57Kx.js";import{u as d}from"./experiment-CWJZKGQk.js";import{E as y}from"./EnvItems-CClG_fpR.js";const g={class:"w-full border p-6 rounded-lg bg-default"},h={class:"w-full text-xl font-semibold pb-4 border-b mb-2"},p={__name:"EnvIndex",setup(p){const c=v(),k=d(),b=e(),_=k.experiment,f=_.system,x=a((()=>[w.value,L.value,j.value,E.value])),w=a((()=>[{key:"start_time",value:m(_.create_time)},{key:"duration",value:k.duration},{key:"hostname",value:f.hostname},{key:"OS",value:f.os},{key:"pid",value:f.pid}])),L=a((()=>[{key:"python",value:f.python},{key:"verbose",value:f.python_verbose},{key:"executable",value:f.executable,highLight:!0,copy:!0},{key:"workspace",value:f.cwd,highLight:!0,copy:!0},{key:"command",value:f.command,highLight:!0,copy:!0}])),j=a((()=>[{key:"git_remote",value:f.git_remote,highLight:!0,link:!0},{key:"git_branch",value:f.git_info?f.git_info[0]:""},{key:"git_commit",value:f.git_info?f.git_info[1]:"",copy:!0}])),E=a((()=>[{key:"logdir",value:b.logdir+(b.logdir.includes("/")?"/":"\\")+_.run_id,highLight:!0,copy:!0},{key:"swanlab",value:`v${_.version}`}]));return(e,a)=>(n(),t("div",g,[i("h1",h,l(e.$t(`experiment.env.title.${o(c).name}`)),1),(n(!0),t(s,null,u(x.value,(e=>(n(),r(y,{data:e,key:e},null,8,["data"])))),128))]))}};export{p as default};
