import{O as e,L as a,u as t,c as i,o as l,a as o,b as s,t as n,d as u,F as r,s as g,B as m,g as v}from"./index-CZcxfFUU.js";import{E as d}from"./EnvItems-BoxKE6EU.js";const y={class:"w-full border p-6 rounded-lg bg-default"},h={class:"w-full text-xl font-semibold pb-4 border-b mb-2"},c={__name:"EnvIndex",setup(c){const k=e(),p=a(),_=t(),b=p.experiment,f=b.system,x=i((()=>[L.value,w.value,E.value,$.value])),L=i((()=>[{key:"start_time",value:m(b.create_time)},{key:"duration",value:p.duration},{key:"hostname",value:f.hostname},{key:"OS",value:f.os}])),w=i((()=>[{key:"python",value:f.python},{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}])),E=i((()=>[{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}])),$=i((()=>[{key:"logdir",value:_.logdir+(_.logdir.includes("/")?"/":"\\")+b.run_id,highLight:!0,copy:!0},{key:"swanlab",value:`v${b.version}`}]));return(e,a)=>(l(),o("div",y,[s("h1",h,n(e.$t(`experiment.env.title.${u(k).name}`)),1),(l(!0),o(r,null,g(x.value,(e=>(l(),v(d,{data:e,key:e},null,8,["data"])))),128))]))}};export{c as default};
