import{g as m}from"./image-e1abec51.js";import{u as p}from"./index-04db8a5f.js";import{S as g}from"./index-1286a279.js";import{D as v,M as a,A as h}from"./index-d92608ce.js";import{c as e,A as O,d as c,j as o,u as b,r as f}from"./main-74e469cd.js";import{L as s}from"./index-d982d687.js";import"./useFlexGapSupport-72f2e7e7.js";import"./collapseMotion-2778245c.js";var x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const F=x;function d(n){for(var u=1;u<arguments.length;u++){var t=arguments[u]!=null?Object(arguments[u]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable}))),r.forEach(function(l){S(n,l,t[l])})}return n}function S(n,u,t){return u in n?Object.defineProperty(n,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[u]=t,n}var i=function(u,t){var r=d({},u,t.attrs);return e(O,d({},r,{icon:F}),null)};i.displayName="UserOutlined";i.inheritAttrs=!1;const y=i,A=c(()=>{const n=p(),u=t=>{switch(t.key){case"logout":n.logout();break}};return()=>e("div",{class:"h-1/1 flex justify-between items-center text-light-50"},[e("div",{class:"text-20px flex-1"},[e("img",{class:"h-50px inline",src:m("logo.png")},null),e("span",{class:"ml-20px"},[o("中国中车--成都7号线虚拟仿真教学系统--后台管理")])]),e(g,{size:20},{default:()=>[e(v,{overlay:e(a,{onClick:u},{default:()=>[e(a.Item,{key:"logout"},{default:()=>[o("退出登录")]})]})},{default:()=>{var t;return[e("div",{class:"flex items-center"},[e(h,{icon:e(y,null,null)},null),e("span",{class:"ml-10px leading-normal"},[(t=n.userInfo)==null?void 0:t.name])])]}})]})])});const C=c({setup(){const n=b();return()=>e("div",{class:D},[e(a,{mode:"inline",inlineIndent:12,selectedKeys:[n.currentRoute.value.path]},{default:()=>[e(a.Item,{key:"/version"},{default:()=>[e(f("router-link"),{to:"/version"},{default:()=>[o("版本管理")]})]})]})])}}),D="mlgg4eb";const{Header:M,Content:P,Sider:w}=s,N=c(()=>()=>e(s,{class:B},{default:()=>[e(M,null,{default:()=>[e(A,null,null)]}),e(s,null,{default:()=>[e(w,{class:E},{default:()=>[e(C,null,null)]}),e(P,{class:"page_content"},{default:()=>[e(f("router-view"),null,null)]})]})]})),B="pq3nqh9",E="sr2c0hp";export{N as default};
