import{g as p}from"./image-e1abec51.js";import{u as m}from"./index-f79a4cc5.js";import{S as g}from"./index-33c9ec48.js";import{D as v,M as l,A as h}from"./index-b08a7613.js";import{c as e,A as O,d as i,k as s,u as b,r as o}from"./main-4801cc52.js";import{L as c}from"./index-2d379a5b.js";import"./useFlexGapSupport-310043de.js";import"./collapseMotion-14d9ada7.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 f(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(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.forEach(function(a){y(n,a,t[a])})}return n}function y(n,u,t){return u in n?Object.defineProperty(n,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[u]=t,n}var d=function(u,t){var r=f({},u,t.attrs);return e(O,f({},r,{icon:F}),null)};d.displayName="UserOutlined";d.inheritAttrs=!1;const A=d,S=i(()=>{const n=m(),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:p("logo.png")},null),e("span",{class:"ml-20px"},[s("中国中车--成都7号线虚拟仿真教学系统--后台管理")])]),e(g,{size:20},{default:()=>[e(v,{overlay:e(l,{onClick:u},{default:()=>[e(l.Item,{key:"logout"},{default:()=>[s("退出登录")]})]})},{default:()=>{var t;return[e("div",{class:"flex items-center"},[e(h,{icon:e(A,null,null)},null),e("span",{class:"ml-10px leading-normal"},[(t=n.userInfo)==null?void 0:t.name])])]}})]})])});const C=i({setup(){const n=b();return m(),()=>e("div",{class:D},[e(l,{mode:"inline",inlineIndent:12,selectedKeys:[n.currentRoute.value.path]},{default:()=>[e(l.Item,{key:"/version"},{default:()=>[e(o("router-link"),{to:"/version"},{default:()=>[s("版本管理")]})]}),e(l.Item,{key:"/users"},{default:()=>[e(o("router-link"),{to:"/users"},{default:()=>[s("用户管理")]})]})]})])}}),D="mlgg4eb";const{Header:k,Content:B,Sider:M}=c,N=i(()=>()=>e(c,{class:P},{default:()=>[e(k,null,{default:()=>[e(S,null,null)]}),e(c,null,{default:()=>[e(M,{class:w},{default:()=>[e(C,null,null)]}),e(B,{class:"page_content"},{default:()=>[e(o("router-view"),null,null)]})]})]})),P="pq3nqh9",w="sr2c0hp";export{N as default};
