import{d as b,c as t,u as I,r as A,p as ae,a as pe,_ as y,b as P,e as he,A as re,i as xe,f as ye,w as X,o as be,g as Ce,h as Y,P as f,t as Z,j as Se,k as Oe,l as D,m as we,n as le}from"./index-4c57e493.js";import{S as oe,a as Ae,R as K,L as q,b as Pe,D as Be,M as B,A as Ne}from"./index-27b9608e.js";import"./useFlexGapSupport-2ff65cc2.js";var ke=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};const je=ke;var T=function(){return{prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String}};function N(n){var e=n.suffixCls,a=n.tagName,r=n.name;return function(s){var v=b({compatConfig:{MODE:3},name:r,props:T(),setup:function(C,m){var l=m.slots,u=I(e,C),d=u.prefixCls;return function(){var k=P(P({},C),{},{prefixCls:d.value,tagName:a});return t(s,k,l)}}});return v}}var _=b({compatConfig:{MODE:3},props:T(),setup:function(e,a){var r=a.slots;return function(){return t(e.tagName,{class:e.prefixCls},r)}}}),Fe=b({compatConfig:{MODE:3},props:T(),setup:function(e,a){var r=a.slots,s=I("",e),v=s.direction,g=A([]),C={addSider:function(u){g.value=[].concat(he(g.value),[u])},removeSider:function(u){g.value=g.value.filter(function(d){return d!==u})}};ae(oe,C);var m=pe(function(){var l,u=e.prefixCls,d=e.hasSider;return l={},y(l,"".concat(u),!0),y(l,"".concat(u,"-has-sider"),typeof d=="boolean"?d:g.value.length>0),y(l,"".concat(u,"-rtl"),v.value==="rtl"),l});return function(){var l=e.tagName;return t(l,{class:m.value},r)}}}),Le=N({suffixCls:"layout",tagName:"section",name:"ALayout"})(Fe),M=N({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(_),z=N({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(_),$=N({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(_);const E=Le;var Me={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};const ze=Me;function ee(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"";return n+=1,"".concat(e).concat(n)}}();const H=b({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:xe(He(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup:function(e,a){var r=a.emit,s=a.attrs,v=a.slots,g=I("layout-sider",e),C=g.prefixCls,m=ye(oe,void 0),l=A(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),u=A(!1);X(function(){return e.collapsed},function(){l.value=!!e.collapsed}),ae(Ae,l);var d=function(i,h){e.collapsed===void 0&&(l.value=i),r("update:collapsed",i),r("collapse",i,h)},k=A(function(o){u.value=o.matches,r("breakpoint",o.matches),l.value!==o.matches&&d(o.matches,"responsive")}),p;function x(o){return k.value(o)}var V=De("ant-sider-");m&&m.addSider(V),be(function(){X(function(){return e.breakpoint},function(){try{var o;(o=p)===null||o===void 0||o.removeEventListener("change",x)}catch{var i;(i=p)===null||i===void 0||i.removeListener(x)}if(typeof window<"u"){var h=window,c=h.matchMedia;if(c&&e.breakpoint&&e.breakpoint in te){p=c("(max-width: ".concat(te[e.breakpoint],")"));try{p.addEventListener("change",x)}catch{p.addListener(x)}x(p)}}},{immediate:!0})}),Ce(function(){try{var o;(o=p)===null||o===void 0||o.removeEventListener("change",x)}catch{var i;(i=p)===null||i===void 0||i.removeListener(x)}m&&m.removeSider(V)});var G=function(){d(!l.value,"clickTrigger")};return function(){var o,i,h,c=C.value,O=e.collapsedWidth,ie=e.width,j=e.reverseArrow,se=e.zeroWidthTriggerStyle,J=e.trigger,w=J===void 0?(o=v.trigger)===null||o===void 0?void 0:o.call(v):J,Q=e.collapsible,ue=e.theme,F=l.value?O:ie,S=je(F)?"".concat(F,"px"):String(F),L=parseFloat(String(O||0))===0?t("span",{onClick:G,class:Y("".concat(c,"-zero-width-trigger"),"".concat(c,"-zero-width-trigger-").concat(j?"right":"left")),style:se},[w||t(Ee,null,null)]):null,ce={expanded:j?t(K,null,null):t(q,null,null),collapsed:j?t(q,null,null):t(K,null,null)},de=l.value?"collapsed":"expanded",fe=ce[de],ve=w!==null?L||t("div",{class:"".concat(c,"-trigger"),onClick:G,style:{width:S}},[w||fe]):null,ge=[s.style,{flex:"0 0 ".concat(S),maxWidth:S,minWidth:S,width:S}],me=Y(c,"".concat(c,"-").concat(ue),(i={},y(i,"".concat(c,"-collapsed"),!!l.value),y(i,"".concat(c,"-has-trigger"),Q&&w!==null&&!L),y(i,"".concat(c,"-below"),!!u.value),y(i,"".concat(c,"-zero-width"),parseFloat(S)===0),i),s.class);return t("aside",P(P({},s),{},{class:me,style:ge}),[t("div",{class:"".concat(c,"-children")},[(h=v.default)===null||h===void 0?void 0:h.call(v)]),Q||u.value&&L?ve:null])}}}),W=Se(E,{Header:M,Footer:z,Content:$,Sider:H,install:function(e){return e.component(E.name,E),e.component(M.name,M),e.component(z.name,z),e.component(H.name,H),e.component($.name,$),e}});var We={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 Ie=We;function ne(n){for(var e=1;e{const n=Oe(),e=a=>{switch(a.key){case"logout":n.logout();break}};return()=>t("div",{class:"h-1/1 flex justify-between items-center text-light-50"},[t("div",{class:"text-20px flex-1"},[t("span",null,[D("核辐射卫生应急虚拟仿真训练--后台管理")])]),t(Pe,{size:20},{default:()=>[t(Be,{overlay:t(B,{onClick:e},{default:()=>[t(B.Item,{key:"logout"},{default:()=>[D("退出登录")]})]})},{default:()=>{var a;return[t("div",{class:"flex items-center"},[t(Ne,{icon:t(_e,null,null)},null),t("span",{class:"ml-10px leading-normal"},[(a=n.userInfo)==null?void 0:a.name])])]}})]})])});const Ue=b({setup(){const n=we();return()=>t("div",{class:Ve},[t(B,{mode:"inline",inlineIndent:12,selectedKeys:[n.currentRoute.value.path]},{default:()=>[t(B.Item,{key:"/users"},{default:()=>[t(le("router-link"),{to:"/users"},{default:()=>[D("用户管理")]})]})]})])}}),Ve="mlgg4eb";const{Header:Ge,Content:Je,Sider:Qe}=W,et=b(()=>()=>t(W,{class:Xe},{default:()=>[t(Ge,null,{default:()=>[t(Re,null,null)]}),t(W,null,{default:()=>[t(Qe,{class:Ye},{default:()=>[t(Ue,null,null)]}),t(Je,{class:"page_content"},{default:()=>[t(le("router-view"),null,null)]})]})]})),Xe="pq3nqh9",Ye="sr2c0hp";export{et as default};