vue-pure-admin/dist/static/js/index-IDtrG43e.js
2024-01-03 00:09:15 +08:00

11 lines
76 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var un=Object.defineProperty,dn=Object.defineProperties;var hn=Object.getOwnPropertyDescriptors;var At=Object.getOwnPropertySymbols;var fn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable;var Ht=(t,e,o)=>e in t?un(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Et=(t,e)=>{for(var o in e||(e={}))fn.call(e,o)&&Ht(t,o,e[o]);if(At)for(var o of At(e))pn.call(e,o)&&Ht(t,o,e[o]);return t},Ot=(t,e)=>dn(t,hn(e));var ot=(t,e,o)=>new Promise((a,d)=>{var l=m=>{try{c(o.next(m))}catch(x){d(x)}},f=m=>{try{c(o.throw(m))}catch(x){d(x)}},c=m=>m.done?a(m.value):Promise.resolve(m.value).then(l,f);c((o=o.apply(t,e)).next())});import{d2 as he,ax as mn,aA as Je,aB as vn,f as u,m as I,g as _,d as ne,r as O,E as N,aS as vt,o as Oe,F as ge,x as xe,ah as te,c as D,T as Ve,u as n,t as Q,K as _e,i,aq as Nt,_ as fe,b as T,h as de,j as K,a4 as _t,a1 as _n,b6 as gn,V as yn,D as be,d3 as ht,w as g,b2 as bn,d4 as je,aN as wn,an as qt,s as Ee,b8 as ke,Y as Ue,e as nt,k as ce,as as se,v as Ce,d5 as gt,d6 as st,d1 as yt,d7 as He,ar as kn,al as Ge,d8 as Be,ay as Ke,az as Xe,aj as bt,d9 as ve,da as Qe,db as xn,dc as at,aY as Ae,dd as lt,de as Cn,df as Ft,P as Ze,a as wt,dg as kt,dh as ft,di as Dt,dj as $n,dk as rt,dl as Pt,N as Ye,ad as Sn,p as Ut,l as Wt,at as Gt,ap as Kt,a2 as In,S as Tn,am as Mn}from"./index-J-k3D_e7.js";import{d as Vn}from"./menu-_OwpKHc3.js";import{d as zn,u as Te,a as xt,g as Ct,b as $t,t as Ln,c as An,e as Hn,f as En}from"./dark-nXeYJ6-R.js";import{d as On}from"./set-up-oJWP6LzE.js";import{d as Dn,R as Zt}from"./index-1GnSj6hu.js";import{d as Pn}from"./admin-line-8g4DVr6a.js";import{d as Zn}from"./git-branch-line-zmPAFode.js";import{u as Re}from"./app-Lr1iJ2GT.js";import{m as Rn}from"./index-AxmkR3Hb.js";import{u as jn}from"./epTheme-V_izYB36.js";import{u as Me}from"./hooks-Hgyaf50l.js";import{d as Bn}from"./search-DTzpNWF3.js";import{d as Ne}from"./check-f0nOH8pf.js";import{e as ye}from"./mitt-y5r8hZta.js";import{d as Nn}from"./refresh-right-y-X3zYf8.js";import{d as qn}from"./arrow-right-s-line-xoI-mVSn.js";import{b as Xt}from"./back_top-RYZePnxy.js";const Fn={width:24,height:24,body:'<path fill="currentColor" d="M22.001 12c0 5.522-4.477 10-10 10s-10-4.478-10-10c0-5.523 4.477-10 10-10s10 4.477 10 10Zm-16.8-1.336a1.335 1.335 0 1 0 0 2.67a1.335 1.335 0 0 0 0-2.67Zm9.533 6.069a1.334 1.334 0 1 0 1.334 2.31a1.334 1.334 0 0 0-1.334-2.31ZM8.1 12c0-1.32.656-2.485 1.659-3.19l-.977-1.636a5.813 5.813 0 0 0-2.398 3.371a1.875 1.875 0 0 1 0 2.91a5.812 5.812 0 0 0 2.398 3.371l.977-1.636A3.892 3.892 0 0 1 8.1 12ZM12 8.1a3.9 3.9 0 0 1 3.884 3.554l1.903-.028a5.781 5.781 0 0 0-1.724-3.762A1.872 1.872 0 0 1 13.55 6.41a5.829 5.829 0 0 0-4.12.39l.927 1.663A3.885 3.885 0 0 1 12 8.1Zm0 7.8c-.587 0-1.143-.13-1.643-.363l-.927 1.662a5.774 5.774 0 0 0 4.12.39a1.872 1.872 0 0 1 2.514-1.454a5.782 5.782 0 0 0 1.723-3.762l-1.903-.027A3.898 3.898 0 0 1 12 15.9Zm2.732-8.633a1.335 1.335 0 1 0 1.335-2.312a1.335 1.335 0 0 0-1.335 2.312Z"/>'},Un={width:1024,height:1024,body:'<path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"/><path fill="currentColor" d="m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"/>'},Wn={width:24,height:24,body:'<path fill="currentColor" d="M20 9V5H4v4h16Zm0 2H4v8h16v-8ZM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 9h3v5H5v-5Zm0-6h2v2H5V6Zm4 0h2v2H9V6Z"/>'},Gn={width:1024,height:1024,body:'<path fill="currentColor" d="M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"/><path fill="currentColor" d="m220.8 256l-71.232 80l71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496l-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"/>'},Kn={width:24,height:24,body:'<path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm17 8h-16v8h16v-8Zm0-2V5h-16v4h16Zm-6 6h4v2h-4v-2Z"/>'},Xn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Yn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},Jn={width:24,height:24,body:'<path fill="currentColor" d="m2.859 2.878l12.57-1.796a.5.5 0 0 1 .571.495v20.847a.5.5 0 0 1-.57.495L2.858 21.123a1 1 0 0 1-.859-.99V3.868a1 1 0 0 1 .859-.99ZM4 4.735v14.53l10 1.43V3.305L4 4.735ZM17 19h3V5h-3V3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4v-2ZM5 8h8v6H7v2H5V8Zm2 2v2h4v-2H7Z"/>'},Qn={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.997-4L6.76 11.757l1.414-1.414l2.829 2.829l5.657-5.657l1.414 1.414L11.003 16Z"/>'},eo={width:24,height:24,body:'<path fill="currentColor" d="M12 14v8H4a8 8 0 0 1 8-8Zm0-1c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6Zm9 4h1v5h-8v-5h1v-1a3 3 0 1 1 6 0v1Zm-2 0v-1a1 1 0 1 0-2 0v1h2Z"/>'},it={width:24,height:24,body:'<path fill="currentColor" d="M3.34 17a10.017 10.017 0 0 1-.979-2.326a3 3 0 0 0 .003-5.347a9.99 9.99 0 0 1 2.5-4.337a3 3 0 0 0 4.632-2.674a9.99 9.99 0 0 1 5.007.003a3 3 0 0 0 4.632 2.671a10.056 10.056 0 0 1 2.503 4.336a3 3 0 0 0-.002 5.347a9.99 9.99 0 0 1-2.501 4.337a3 3 0 0 0-4.632 2.674a9.99 9.99 0 0 1-5.007-.002a3 3 0 0 0-4.631-2.672A10.018 10.018 0 0 1 3.339 17Zm5.66.196a4.992 4.992 0 0 1 2.25 2.77c.499.047 1 .048 1.499.002a4.993 4.993 0 0 1 2.25-2.772a4.993 4.993 0 0 1 3.526-.564c.29-.408.54-.843.748-1.298A4.993 4.993 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8.152 8.152 0 0 0-.75-1.298A4.993 4.993 0 0 1 15 6.804a4.993 4.993 0 0 1-2.25-2.77c-.5-.047-1-.048-1.5-.001A4.993 4.993 0 0 1 9 6.804a4.993 4.993 0 0 1-3.526.564c-.29.408-.54.843-.747 1.298A4.993 4.993 0 0 1 6 12c0 1.26-.471 2.437-1.273 3.334a8.16 8.16 0 0 0 .75 1.298A4.993 4.993 0 0 1 9 17.196ZM12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6Zm0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z"/>'},to={width:1024,height:1024,body:'<path fill="currentColor" d="M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"/>'},no={width:1024,height:1024,body:'<path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"/>'};he("ubuntuFill",Fn);he("menu",Vn);he("edit",Un);he("informationLine",zn);he("setUp",On);he("terminalWindowLine",Wn);he("guide",Gn);he("homeFilled",Dn);he("card",Kn);he("listCheck",Xn);he("histogram",Yn);he("ppt",Jn);he("checkboxCircleLine",Qn);he("flUser",Pn);he("role",eo);he("setting",it);he("dept",Zn);he("lollipop",to);he("monitor",no);const oo=mn({id:"pure-setting",state:()=>({title:Je().Title,fixedHeader:Je().FixedHeader,hiddenSideBar:Je().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function St(){return oo(vn)}const ao={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},so=_("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1),lo=[so];function ro(t,e){return u(),I("svg",ao,[...lo])}const Yt={render:ro},io={width:24,height:24,body:'<path fill="currentColor" d="M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1Zm13 2H6v15.432l6-3.761l6 3.761V4ZM8 9h8v2H8V9Z"/>'},co=["onMouseenter"],uo={class:"result-item-title"},ho=ne({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:o}){const a=O(),d=O(),l=t,f=o,c=Nt(),m=N(()=>w=>({background:(w==null?void 0:w.path)===x.value?jn().epThemeColor:"",color:w.path===x.value?"#fff":"",fontSize:w.path===x.value?"16px":"14px"})),x=N({get(){return l.value},set(w){f("update:value",w)}});function v(w){return ot(this,null,function*(){x.value=w.path})}function p(){f("enter")}function y(){d.value=window.innerHeight-window.innerHeight/10-140}vt(a,()=>{y()});function b(w){var R;const C=(R=c==null?void 0:c.proxy)==null?void 0:R.$refs[`resultItemRef${w}`];if(!C)return 0;const V=C[0].offsetTop+128;return V>d.value?V-d.value:0}return Oe(()=>{y()}),e({handleScroll:b}),(w,C)=>(u(),I("div",{ref_key:"resultRef",ref:a,class:"result"},[(u(!0),I(ge,null,xe(w.options,(H,V)=>{var R,q,S;return u(),I("div",{key:H.path,ref_for:!0,ref:"resultItemRef"+V,class:"result-item dark:bg-[#1d1d1d]",style:te(m.value(H)),onClick:p,onMouseenter:L=>v(H)},[(u(),D(Ve(n(Me)((q=(R=H.meta)==null?void 0:R.icon)!=null?q:n(io))))),_("span",uo,Q(n(_e)((S=H.meta)==null?void 0:S.title)),1),i(n(Yt))],44,co)}),128))],512))}}),fo=fe(ho,[["__scopeId","data-v-f0aabde6"]]),po={width:24,height:24,body:'<path fill="currentColor" d="M13 7.828V20h-2V7.828l-5.364 5.364l-1.414-1.414L12 4l7.778 7.778l-1.414 1.414L13 7.828Z"/>'},mo={width:24,height:24,body:'<path fill="currentColor" d="m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2v12.172Z"/>'},vo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},_o=_("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1),go=[_o];function yo(t,e){return u(),I("svg",vo,[...go])}const bo={render:yo},wo={class:"search-footer text-[#333] dark:text-white"},ko={class:"search-footer-item"},xo={class:"search-footer-item"},Co={class:"search-footer-item"},$o={key:0,class:"search-footer-total"},So=ne({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:o}=Te();return(a,d)=>{const l=T("IconifyIconOffline");return u(),I("div",wo,[_("span",ko,[i(n(Yt),{class:"icon"}),de(" 确认 ")]),_("span",xo,[i(l,{icon:n(po),class:"icon"},null,8,["icon"]),i(l,{icon:n(mo),class:"icon"},null,8,["icon"]),de(" 切换 ")]),_("span",Co,[i(n(bo),{class:"icon"}),de(" 关闭 ")]),n(o)!=="mobile"&&e.total>0?(u(),I("p",$o," 共"+Q(e.total)+"项 ",1)):K("",!0)])}}}),Io=fe(So,[["__scopeId","data-v-6f31f47e"]]),To={width:24,height:24,body:'<path fill="currentColor" d="m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"/>'},Mo={class:"search-result-container"},Vo=ne({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:o}=Te(),a=e,d=t,l=_t(),{locale:f}=_n(),c=O(""),m=O(),x=O(),v=O(""),p=O(null),y=gn([]),b=bn(V,300),w=N(()=>yn(be().wholeMenus)),C=N({get(){return d.value},set(E){a("update:value",E)}});function H(E){const M=[];function X(k){k.forEach(J=>{M.push(J),J.children&&X(J.children)})}return X(E),M}function V(){var M;const E=H(w.value);y.value=E.filter(X=>{var k,J;return c.value?_e((k=X.meta)==null?void 0:k.title).toLocaleLowerCase().includes(c.value.toLocaleLowerCase().trim())||f.value==="zh"&&!je(Rn(_e((J=X.meta)==null?void 0:J.title).toLocaleLowerCase(),c.value.toLocaleLowerCase().trim())):!1}),((M=y.value)==null?void 0:M.length)>0?v.value=y.value[0].path:v.value=""}function R(){C.value=!1,setTimeout(()=>{y.value=[],c.value=""},200)}function q(E){const M=x.value.handleScroll(E);m.value.setScrollTop(M)}function S(){const{length:E}=y.value;if(E===0)return;const M=y.value.findIndex(X=>X.path===v.value);M===0?(v.value=y.value[E-1].path,q(y.value.length-1)):(v.value=y.value[M-1].path,q(M-1))}function L(){const{length:E}=y.value;if(E===0)return;const M=y.value.findIndex(X=>X.path===v.value);M+1===E?v.value=y.value[0].path:v.value=y.value[M+1].path,q(M+1)}function Z(){const{length:E}=y.value;E===0||v.value===""||(l.push(v.value),R())}return ht("Enter",Z),ht("ArrowUp",S),ht("ArrowDown",L),(E,M)=>{const X=T("IconifyIconOffline"),k=T("el-input"),J=T("el-empty"),Y=T("el-scrollbar"),me=T("el-dialog");return u(),D(me,{modelValue:C.value,"onUpdate:modelValue":M[2]||(M[2]=ee=>C.value=ee),top:"5vh",class:"pure-search-dialog","show-close":!1,width:n(o)==="mobile"?"80vw":"40vw","before-close":R,style:{borderRadius:"6px"},"append-to-body":"",onOpened:M[3]||(M[3]=ee=>p.value.focus()),onClosed:M[4]||(M[4]=ee=>p.value.blur())},{footer:g(()=>[i(Io,{total:y.value.length},null,8,["total"])]),default:g(()=>[i(k,{ref_key:"inputRef",ref:p,modelValue:c.value,"onUpdate:modelValue":M[0]||(M[0]=ee=>c.value=ee),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:n(b)},{prefix:g(()=>[i(X,{icon:n(To),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),_("div",Mo,[i(Y,{ref_key:"scrollbarRef",ref:m,"max-height":"calc(90vh - 140px)"},{default:g(()=>[y.value.length===0?(u(),D(J,{key:0,description:"暂无搜索结果"})):(u(),D(fo,{key:1,ref_key:"resultRef",ref:x,value:v.value,"onUpdate:value":M[1]||(M[1]=ee=>v.value=ee),options:y.value,onClick:Z},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),zo=fe(Vo,[["__scopeId","data-v-b82d1ace"]]);function Lo(t=!1){const e=O(t);function o(f){e.value=f}function a(){o(!0)}function d(){o(!1)}function l(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:d,toggle:l}}const It=ne({__name:"index",setup(t){const{bool:e,toggle:o}=Lo();function a(){o()}return(d,l)=>{const f=T("IconifyIconOffline");return u(),I(ge,null,[_("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[i(f,{icon:n(Bn)},null,8,["icon"])]),i(n(zo),{value:n(e),"onUpdate:value":l[0]||(l[0]=c=>wn(e)?e.value=c:null)},null,8,["value"])],64)}}}),Rt=[{key:"1",name:"通知",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"你收到了 12 份新周报",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"你推荐的 前端高手 已通过第三轮面试",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"这种模板可以区分多种通知类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"展示标题内容超过一行后的处理方式如果内容超过1行将自动截断并支持tooltip显示完整标题。",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"}]},{key:"2",name:"消息",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 评论了你",description:"长风破浪会有时,直挂云帆济沧海",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"李白 回复了你",description:"行路难,行路难,多歧路,今安在。",datetime:"一年前",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"标题",description:"请将鼠标移动到此处以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2超过2行的描述内容将被省略并且可以通过tooltip查看完整内容",datetime:"一年前",type:"2"}]},{key:"3",name:"待办",list:[{avatar:"",title:"任务名称",description:"任务需要在 2022-11-16 20:00 前启动",datetime:"",extra:"未开始",status:"info",type:"3"},{avatar:"",title:"第三方紧急代码变更",description:"一拳提交于 2022-11-16需在 2022-11-18 前完成代码变更任务",datetime:"",extra:"马上到期",status:"danger",type:"3"},{avatar:"",title:"信息安全考试",description:"指派小仙于 2022-12-12 前完成更新并发布",datetime:"",extra:"已耗时 8 天",status:"warning",type:"3"},{avatar:"",title:"vue-pure-admin 版本发布",description:"vue-pure-admin 版本发布",datetime:"",extra:"进行中",type:"3"}]}],Ao={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Ho={class:"notice-container-text"},Eo={class:"notice-text-title text-[#000000d9] dark:text-white"},Oo={class:"notice-text-datetime text-[#00000073] dark:text-white"},Do=ne({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=O(null),a=O(!1),d=O(null),l=O(!1),{tooltipEffect:f}=Te(),c=qt();function m(){Ee(()=>{var v,p;((v=o.value)==null?void 0:v.scrollWidth)>((p=o.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function x(v,p){const y=document.createElement("span");y.innerText=p,y.className="getDescriptionWidth",document.querySelector("body").appendChild(y);const b=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const w=v.target.offsetWidth;b>2*w?l.value=!0:l.value=!1}return(v,p)=>{var C,H;const y=T("el-avatar"),b=T("el-tooltip"),w=T("el-tag");return u(),I("div",Ao,[e.noticeItem.avatar?(u(),D(y,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):K("",!0),_("div",Ho,[_("div",Eo,[i(b,{"popper-class":"notice-title-popper",effect:n(f),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!n(c)},{default:g(()=>[_("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:m},Q(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(C=e.noticeItem)!=null&&C.extra?(u(),D(w,{key:0,type:(H=e.noticeItem)==null?void 0:H.status,size:"small",class:"notice-title-extra"},{default:g(()=>{var V;return[de(Q((V=e.noticeItem)==null?void 0:V.extra),1)]}),_:1},8,["type"])):K("",!0)]),i(b,{"popper-class":"notice-title-popper",effect:n(f),disabled:!l.value,content:e.noticeItem.description,placement:"top-start"},{default:g(()=>[_("div",{ref_key:"descriptionRef",ref:d,class:"notice-text-description",onMouseover:p[0]||(p[0]=V=>x(V,e.noticeItem.description))},Q(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),_("div",Oo,Q(e.noticeItem.datetime),1)])])}}}),Po=fe(Do,[["__scopeId","data-v-2a7dbc48"]]),Zo={key:0},Ro=ne({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,a)=>{const d=T("el-empty");return u(),I(ge,null,[e.list.length?(u(),I("div",Zo,[(u(!0),I(ge,null,xe(e.list,(l,f)=>(u(),D(Po,{key:f,noticeItem:l},null,8,["noticeItem"]))),128))])):K("",!0),i(d,{description:"暂无消息"})],64)}}}),jo={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"/><path fill="currentColor" d="M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"/><path fill="currentColor" d="M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"/>'},Bo={class:"dropdown-badge navbar-bg-hover select-none"},No={class:"header-notice-icon"},qo={key:1},Fo={class:"noticeList-container"},Uo=ne({__name:"index",setup(t){const e=O(0),o=O(Rt),a=O(Rt[0].key);return o.value.map(d=>e.value+=d.list.length),(d,l)=>{const f=T("IconifyIconOffline"),c=T("el-badge"),m=T("el-empty"),x=T("el-scrollbar"),v=T("el-tab-pane"),p=T("el-tabs"),y=T("el-dropdown-menu"),b=T("el-dropdown");return u(),D(b,{trigger:"click",placement:"bottom-end"},{dropdown:g(()=>[i(y,null,{default:g(()=>[i(p,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=w=>a.value=w),stretch:!0,class:"dropdown-tabs",style:te({width:o.value.length===0?"200px":"330px"})},{default:g(()=>[o.value.length===0?(u(),D(m,{key:0,description:"暂无消息","image-size":60})):(u(),I("span",qo,[(u(!0),I(ge,null,xe(o.value,w=>(u(),D(v,{key:w.key,label:`${w.name}(${w.list.length})`,name:`${w.key}`},{default:g(()=>[i(x,{"max-height":"330px"},{default:g(()=>[_("div",Fo,[i(Ro,{list:w.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:g(()=>[_("span",Bo,[i(c,{value:e.value,max:99},{default:g(()=>[_("span",No,[i(f,{icon:n(jo)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Tt=fe(Uo,[["__scopeId","data-v-33dc6db9"]]),Wo={key:0,class:"flex justify-center items-center"},pt=ne({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(o,a)=>e.extraIcon?(u(),I("div",Wo,[(u(),D(Ve(n(Me)(ke(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):K("",!0)}}),Mt={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2a9.985 9.985 0 0 1 8 4h-2.71a8 8 0 1 0 .001 12h2.71A9.985 9.985 0 0 1 12 22Zm7-6v-3h-8v-2h8V8l5 4l-5 4Z"/>'},Go={key:0,class:"horizontal-header"},Ko={class:"select-none"},Xo={class:"horizontal-header-right"},Yo={class:"check-zh"},Jo={class:"check-en"},Qo={class:"el-dropdown-link navbar-bg-hover select-none"},ea=["src"],ta={key:0,class:"dark:text-white"},na=["title"],oa=ne({__name:"mixNav",setup(t){const e=O(),o=O(null),{t:a,route:d,locale:l,translationCh:f,translationEn:c}=xt(e),{device:m,logout:x,onPanel:v,resolvePath:p,username:y,userAvatar:b,getDivStyle:w,avatarsStyle:C,getDropdownItemStyle:H,getDropdownItemClass:V}=Te();function R(q){var Z,E,M;const S=be().wholeMenus,L=gt(q,S)[0];o.value=je((Z=d.meta)==null?void 0:Z.activePath)?(M=(E=st(L,S))==null?void 0:E.children[0])==null?void 0:M.path:d.meta.activePath}return Oe(()=>{R(d.path)}),Ee(()=>{var q;(q=e.value)==null||q.handleResize()}),Ue(()=>[d.path,be().wholeMenus],()=>{R(d.path)}),(q,S)=>{const L=T("el-menu-item"),Z=T("el-menu"),E=T("IconifyIconOffline"),M=T("el-dropdown-item"),X=T("el-dropdown-menu"),k=T("el-dropdown"),J=nt("loading");return n(m)!=="mobile"?ce((u(),I("div",Go,[i(Z,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal",class:"horizontal-header-menu","default-active":o.value},{default:g(()=>[(u(!0),I(ge,null,xe(n(be)().wholeMenus,Y=>(u(),D(L,{key:Y.path,index:n(p)(Y)||Y.redirect},{title:g(()=>[ke(Y.meta.icon)?(u(),I("div",{key:0,class:se(["sub-menu-icon",Y.meta.icon])},[(u(),D(Ve(n(Me)(Y.meta&&ke(Y.meta.icon)))))],2)):K("",!0),_("div",{style:te(n(w))},[_("span",Ko,Q(n(_e)(Y.meta.title)),1),i(pt,{extraIcon:Y.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),_("div",Xo,[i(It),i(Tt,{id:"header-notice"}),i(k,{id:"header-translation",trigger:"click"},{dropdown:g(()=>[i(X,{class:"translation"},{default:g(()=>[i(M,{style:te(n(H)(n(l),"zh")),class:se(["dark:!text-white",n(V)(n(l),"zh")]),onClick:n(f)},{default:g(()=>[ce(_("span",Yo,[i(E,{icon:n(Ne)},null,8,["icon"])],512),[[Ce,n(l)==="zh"]]),de(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(M,{style:te(n(H)(n(l),"en")),class:se(["dark:!text-white",n(V)(n(l),"en")]),onClick:n(c)},{default:g(()=>[ce(_("span",Jo,[i(E,{icon:n(Ne)},null,8,["icon"])],512),[[Ce,n(l)==="en"]]),de(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:g(()=>[i(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(k,{trigger:"click"},{dropdown:g(()=>[i(X,{class:"logout"},{default:g(()=>[i(M,{onClick:n(x)},{default:g(()=>[i(E,{icon:n(Mt),style:{margin:"5px"}},null,8,["icon"]),de(" "+Q(n(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:g(()=>[_("span",Qo,[_("img",{src:n(b),style:te(n(C))},null,12,ea),n(y)?(u(),I("p",ta,Q(n(y)),1)):K("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(a)("buttons.hssystemSet"),onClick:S[0]||(S[0]=(...Y)=>n(v)&&n(v)(...Y))},[i(E,{icon:n(it)},null,8,["icon"])],8,na)])])),[[J,n(be)().wholeMenus.length===0]]):K("",!0)}}}),aa=fe(oa,[["__scopeId","data-v-3b84eaf6"]]),sa=["onClick"],la=ne({__name:"breadCrumb",setup(t){const e=yt(),o=O([]),a=_t(),d=a.options.routes,l=He().multiTags,f=()=>{let m;Object.keys(e.query).length>0?l.forEach(p=>{Be(e.query,p==null?void 0:p.query)&&(m=ke(p))}):Object.keys(e.params).length>0?l.forEach(p=>{Be(e.params,p==null?void 0:p.params)&&(m=ke(p))}):m=st(a.currentRoute.value.path,d);const x=gt(a.currentRoute.value.name,d,"name"),v=[];x.forEach(p=>{p!=="/"&&v.push(st(p,d))}),v.push(m),v.forEach((p,y)=>{m!=null&&m.query||m!=null&&m.params||p!=null&&p.children&&p.children.forEach(b=>{var w,C;((w=b==null?void 0:b.meta)==null?void 0:w.title)===((C=p==null?void 0:p.meta)==null?void 0:C.title)&&v.splice(y,1)})}),o.value=v.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},c=m=>{const{redirect:x,name:v,path:p}=m;x?a.push(x):v?m.query?a.push({name:v,query:m.query}):m.params?a.push({name:v,params:m.params}):a.push({name:v}):a.push({path:p})};return Oe(()=>{f()}),Ue(()=>e.path,()=>{f()},{deep:!0}),(m,x)=>{const v=T("el-breadcrumb-item"),p=T("el-breadcrumb");return u(),D(p,{class:"!leading-[50px] select-none",separator:"/"},{default:g(()=>[i(kn,{name:"breadcrumb"},{default:g(()=>[(u(!0),I(ge,null,xe(o.value,y=>(u(),D(v,{key:y.path,class:"!inline !items-stretch"},{default:g(()=>[_("a",{onClick:Ge(b=>c(y),["prevent"])},Q(n(_e)(y.meta.title)),9,sa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Jt={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM6.95 3.55v9.9L2 8.5l4.95-4.95ZM21 11v2h-9v-2h9Zm0-7v2h-9V4h9Z"/>'},ra={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM17.05 3.55L22 8.5l-4.95 4.95v-9.9ZM12 11v2H3v-2h9Zm0-7v2H3V4h9Z"/>'},ia=["title"],ca=ne({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=e,d=()=>{a("toggleClick")};return(l,f)=>{const c=T("IconifyIconOffline");return u(),I("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:d},[i(c,{icon:o.isActive?n(Jt):n(ra),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,ia)}}}),ua={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},da={key:3,class:"vertical-header-right"},ha={class:"check-en"},fa={class:"el-dropdown-link navbar-bg-hover select-none"},pa=["src"],ma={key:0,class:"dark:text-white"},va=["title"],_a=ne({__name:"navbar",setup(t){const{layout:e,device:o,logout:a,onPanel:d,pureApp:l,username:f,userAvatar:c,avatarsStyle:m,toggleSideBar:x,getDropdownItemStyle:v,getDropdownItemClass:p}=Te(),{t:y,locale:b,translationCh:w,translationEn:C}=xt();return(H,V)=>{const R=T("IconifyIconOffline"),q=T("el-dropdown-item"),S=T("el-dropdown-menu"),L=T("el-dropdown");return u(),I("div",ua,[n(o)==="mobile"?(u(),D(ca,{key:0,class:"hamburger-container","is-active":n(l).sidebar.opened,onToggleClick:n(x)},null,8,["is-active","onToggleClick"])):K("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(u(),D(la,{key:1,class:"breadcrumb-container"})):K("",!0),n(e)==="mix"?(u(),D(aa,{key:2})):K("",!0),n(e)==="vertical"?(u(),I("div",da,[i(It),i(Tt,{id:"header-notice"}),i(L,{id:"header-translation",trigger:"click"},{dropdown:g(()=>[i(S,{class:"translation"},{default:g(()=>[i(q,{style:te(n(v)(n(b),"zh")),class:se(["dark:!text-white",n(p)(n(b),"zh")]),onClick:n(w)},{default:g(()=>[ce(i(R,{class:"check-zh",icon:n(Ne)},null,8,["icon"]),[[Ce,n(b)==="zh"]]),de(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(q,{style:te(n(v)(n(b),"en")),class:se(["dark:!text-white",n(p)(n(b),"en")]),onClick:n(C)},{default:g(()=>[ce(_("span",ha,[i(R,{icon:n(Ne)},null,8,["icon"])],512),[[Ce,n(b)==="en"]]),de(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:g(()=>[i(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(L,{trigger:"click"},{dropdown:g(()=>[i(S,{class:"logout"},{default:g(()=>[i(q,{onClick:n(a)},{default:g(()=>[i(R,{icon:n(Mt),style:{margin:"5px"}},null,8,["icon"]),de(" "+Q(n(y)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:g(()=>[_("span",fa,[_("img",{src:n(c),style:te(n(m))},null,12,pa),n(f)?(u(),I("p",ma,Q(n(f)),1)):K("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(y)("buttons.hssystemSet"),onClick:V[0]||(V[0]=(...Z)=>n(d)&&n(d)(...Z))},[i(R,{icon:n(it)},null,8,["icon"])],8,va)])):K("",!0)])}}}),ga=fe(_a,[["__scopeId","data-v-df4f8c61"]]),ya={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ba={width:24,height:24,body:'<path fill="currentColor" d="M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5V17Zm6-11v9h-2V6H5V4h14v2h-6Z"/>'},wa={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5Zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2h12Z"/>'},ka={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5ZM7 17h12v2H7v2.5L3 18l4-3.5V17Z"/>'},Qt={width:1024,height:1024,body:'<path fill="currentColor" d="M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"/>'};function xa(){var M,X;const t=yt(),e=_t(),o=Nt(),a=St(),d=O(0),l=O(0),f=O(0),c=O(!1),m=O(-1),x=O({}),v=O(((M=Ke().getItem(`${Xe()}configure`))==null?void 0:M.showModel)||"smart"),p=(X=O(Ke().getItem(`${Xe()}configure`).hideTabs))!=null?X:O("false"),y=N(()=>He().multiTags),b=bt([{icon:Nn,text:ve("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Qt,text:ve("buttons.hscloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ka,text:ve("buttons.hscloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:wa,text:ve("buttons.hscloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ba,text:ve("buttons.hscloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:ya,text:ve("buttons.hscloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:Qe,text:ve("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Qe,text:ve("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function w(k,J,Y){var me,ee;return xn((me=t==null?void 0:t.meta)==null?void 0:me.showLink)&&((ee=t==null?void 0:t.meta)==null?void 0:ee.showLink)===!1?Object.keys(t.query).length>0?Be(t.query,k.query)?J:Y:Be(t.params,k.params)?J:Y:t.path===k.path?J:Y}const C=N(()=>(k,J)=>{if(J!==0)return w(k,!0,!1)}),H=N(()=>k=>w(k,"is-active","")),V=N(()=>k=>w(k,"schedule-active","")),R=N(()=>({transform:`translateX(${f.value}px)`})),q=N(()=>({left:l.value+"px",top:d.value+"px"})),S=()=>{c.value=!1};function L(k){if(k&&(m.value=k),n(v)==="smart"){if(at(o.refs["schedule"+k][0],"schedule-active"))return;Ae(!0,"schedule-in",o.refs["schedule"+k][0]),Ae(!1,"schedule-out",o.refs["schedule"+k][0])}else{if(at(o.refs["dynamic"+k][0],"is-active"))return;Ae(!0,"card-in",o.refs["dynamic"+k][0]),Ae(!1,"card-out",o.refs["dynamic"+k][0])}}function Z(k){if(m.value=-1,n(v)==="smart"){if(at(o.refs["schedule"+k][0],"schedule-active"))return;Ae(!1,"schedule-in",o.refs["schedule"+k][0]),Ae(!0,"schedule-out",o.refs["schedule"+k][0])}else{if(at(o.refs["dynamic"+k][0],"is-active"))return;Ae(!1,"card-in",o.refs["dynamic"+k][0]),Ae(!0,"card-out",o.refs["dynamic"+k][0])}}function E(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Oe(()=>{if(!v.value){const k=Ke().getItem(`${Xe()}configure`);k.showModel="card",Ke().setItem(`${Xe()}configure`,k)}}),{route:t,router:e,visible:c,showTags:p,instance:o,multiTags:y,showModel:v,tagsViews:b,buttonTop:d,buttonLeft:l,translateX:f,pureSetting:a,activeIndex:m,getTabStyle:R,iconIsActive:C,linkIsActive:H,currentSelect:x,scheduleIsActive:V,getContextMenuStyle:q,$t:ve,closeMenu:S,onMounted:Oe,onMouseenter:L,onMouseleave:Z,transformI18n:_e,onContentFullScreen:E}}const Ca={width:24,height:24,body:'<path fill="currentColor" d="m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222l4.95 4.95Z"/>'},$a={width:24,height:24,body:'<path fill="currentColor" d="m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414l-4.95 4.95Z"/>'},Sa={width:1024,height:1024,body:'<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'};var Ia={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Ta={class:"arrow-left"},Ma=["onContextmenu","onMouseenter","onMouseleave","onClick"],Va={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},za=["onClick"],La={class:"arrow-right"},Aa=["onClick"],Ha={class:"arrow-down"},Ea=ne({__name:"index",setup(t){var zt;const{route:e,router:o,visible:a,showTags:d,instance:l,multiTags:f,tagsViews:c,buttonTop:m,buttonLeft:x,showModel:v,translateX:p,pureSetting:y,activeIndex:b,getTabStyle:w,iconIsActive:C,linkIsActive:H,currentSelect:V,scheduleIsActive:R,getContextMenuStyle:q,closeMenu:S,onMounted:L,onMouseenter:Z,onMouseleave:E,transformI18n:M,onContentFullScreen:X}=xa(),k=O(),J=O(),Y=O(),me=O(),ee=O(!1),ze=(zt=lt())==null?void 0:zt.path,{VITE_HIDE_HOME:qe}=Ia,{isFullscreen:Le,toggle:r}=Cn(),s=()=>ot(this,null,function*(){yield Ee();const $=f.value.findIndex(A=>je(e.query)?je(e.params)?e.path===A.path:Be(e.params,A.params):Be(e.query,A.query));h($)}),h=$=>ot(this,null,function*(){var ie,we;yield Ee();const A=10;if(!l.refs["dynamic"+$])return;const P=l.refs["dynamic"+$][0],G=P==null?void 0:P.offsetLeft,re=P==null?void 0:P.offsetWidth,j=Y.value?(ie=Y.value)==null?void 0:ie.offsetWidth:0,B=k.value?(we=k.value)==null?void 0:we.offsetWidth:0;j<=B?ee.value=!0:ee.value=!1,B<j||G===0?p.value=0:G<-p.value?p.value=-G+A:G>-p.value&&G+re<-p.value+j?p.value=Math.min(0,j-re-G-A):p.value=-(G-(j-A-re))}),F=$=>{var G;const A=Y.value?(G=Y.value)==null?void 0:G.offsetWidth:0,P=k.value?k.value.offsetWidth:0;$>0?p.value=Math.min(0,p.value+$):A<P?p.value>=-(P-A)&&(p.value=Math.max(p.value+$,A-P)):p.value=0};function oe($){const A=f.value.some(G=>G.path===$);function P(G,re){A||G.forEach(j=>{j.path===re||j.path===re?He().handleTags("push",{path:re,meta:j.meta,name:j.name}):j.children&&j.children.length>0&&P(j.children,re)})}P(o.options.routes,$)}function W(){const{fullPath:$,query:A}=n(e);o.replace({path:"/redirect"+$,query:A}),ft(e,"refresh")}function U($,A,P){var B,ie,we,Lt;const G=f.value.findIndex(Se=>{if(Se.query){if(Se.path===$.path)return Se.query===$.query}else if(Se.params){if(Se.path===$.path)return Se.params===$.params}else return Se.path===$.path}),re=(Se,rn,cn)=>{cn?He().handleTags("equal",[qe==="false"?$n[0]:ke(lt()),$]):He().handleTags("splice","",{startIndex:Se,length:rn}),s()};P==="other"?re(1,1,!0):P==="left"?re(1,G-1):P==="right"?re(G+1,f.value.length):re(G,1);const j=He().handleTags("slice");if(A===e.path){if(P==="left")return;(B=j[0])!=null&&B.query?o.push({name:j[0].name,query:j[0].query}):(ie=j[0])!=null&&ie.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}else{if(!f.value.length||f.value.some(Se=>Se.path===e.path))return;(we=j[0])!=null&&we.query?o.push({name:j[0].name,query:j[0].query}):(Lt=j[0])!=null&&Lt.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}}function z($,A){U($,$.path,A),ft(e)}function ae($,A,P){if(A&&A.disabled)return;let G;switch(P?G={path:P.path,meta:P.meta,name:P.name,query:P==null?void 0:P.query,params:P==null?void 0:P.params}:G={path:e.path,meta:e.meta},$){case 0:W();break;case 1:z(G);break;case 2:z(G,"left");break;case 3:z(G,"right");break;case 4:z(G,"other");break;case 5:He().handleTags("splice","",{startIndex:1,length:f.value.length}),o.push(ze),ft(e);break;case 6:r(),setTimeout(()=>{Le.value?(c[6].icon=Dt,c[6].text=ve("buttons.hswholeExitFullScreen")):(c[6].icon=Qe,c[6].text=ve("buttons.hswholeFullScreen"))},100);break;case 7:X(),setTimeout(()=>{y.hiddenSideBar?(c[7].icon=Dt,c[7].text=ve("buttons.hscontentExitFullScreen")):(c[7].icon=Qe,c[7].text=ve("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Pe(e.fullPath,e.query)})}function $e($){const{key:A,item:P}=$;ae(A,P)}function Fe($,A){S(),ae($,A,V.value)}function We($){Array.of(1,2,3,4,5).forEach(A=>{c[A].show=$})}function De($){Array.of(1,2,3,4,5).forEach(A=>{c[A].disabled=$})}function Pe($,A={},P=!1){const G=f.value,re=f.value.length;let j=-1;je(A)?j=G.findIndex(B=>B.path===$):j=G.findIndex(B=>Be(B.query,A)),We(!0),P&&(c[0].show=!0),j===1&&re!==2?(c[2].show=!1,Array.of(1,3,4,5).forEach(B=>{c[B].disabled=!1}),c[2].disabled=!0):j===1&&re===2?(De(!1),Array.of(2,3,4).forEach(B=>{c[B].show=!1,c[B].disabled=!0})):re-1===j&&j!==0?(c[3].show=!1,Array.of(1,2,4,5).forEach(B=>{c[B].disabled=!1}),c[3].disabled=!0):j===0||$===`/redirect${ze}`?De(!0):De(!1)}function sn($,A){S(),$.path===ze?(We(!1),c[0].show=!0):e.path!==$.path&&e.name!==$.name?(c[0].show=!1,Pe($.path,$.query)):f.value.length===2&&e.path!==$.path?(We(!0),c[4].show=!1):e.path===$.path&&Pe($.path,$.query,!0),V.value=$;const P=105,G=n(J).getBoundingClientRect().left,j=n(J).offsetWidth-P,B=A.clientX-G+5;B>j?x.value=j:x.value=B,St().hiddenSideBar?m.value=A.clientY:m.value=A.clientY-40,Ee(()=>{a.value=!0})}function ln($){const{name:A,path:P}=$;A?$.query?o.push({name:A,query:$.query}):$.params?o.push({name:A,params:$.params}):o.push({name:A}):o.push({path:P})}return Ft(me,S,{detectIframe:!0}),Ue(e,()=>{b.value=-1,s()}),Ue(Le,()=>{c[6].icon=Qe,c[6].text=ve("buttons.hswholeFullScreen")}),L(()=>{l&&(Pe(e.fullPath),ye.on("tagViewsChange",$=>{n(d)!==$&&(d.value=$)}),ye.on("tagViewsShowModel",$=>{v.value=$}),ye.on("changLayoutRoute",$=>{oe($),setTimeout(()=>{Pe($)})}),vt(Y,Ze(()=>s())))}),wt(()=>{ye.off("tagViewsChange"),ye.off("tagViewsShowModel"),ye.off("changLayoutRoute")}),($,A)=>{const P=T("IconifyIconOffline"),G=T("el-dropdown-item"),re=T("el-dropdown-menu"),j=T("el-dropdown");return n(d)?K("",!0):(u(),I("div",{key:0,ref_key:"containerDom",ref:J,class:"tags-view"},[ce(_("span",Ta,[i(P,{icon:n($a),onClick:A[0]||(A[0]=B=>F(200))},null,8,["icon"])],512),[[Ce,ee.value]]),_("div",{ref_key:"scrollbarDom",ref:Y,class:"scroll-container"},[_("div",{ref_key:"tabDom",ref:k,class:"tab select-none",style:te(n(w))},[(u(!0),I(ge,null,xe(n(f),(B,ie)=>(u(),I("div",{ref_for:!0,ref:"dynamic"+ie,key:ie,class:se(["scroll-item is-closable",n(H)(B)]),onContextmenu:Ge(we=>sn(B,we),["prevent"]),onMouseenter:Ge(we=>n(Z)(ie),["prevent"]),onMouseleave:Ge(we=>n(E)(ie),["prevent"]),onClick:we=>ln(B)},[_("span",Va,Q(n(M)(B.meta.title)),1),n(C)(B,ie)||ie===n(b)&&ie!==0?(u(),I("span",{key:0,class:"el-icon-close",onClick:Ge(we=>z(B),["stop"])},[i(P,{icon:n(Sa)},null,8,["icon"])],8,za)):K("",!0),n(v)!=="card"?(u(),I("div",{key:1,ref_for:!0,ref:"schedule"+ie,class:se([n(R)(B)])},null,2)):K("",!0)],42,Ma))),128))],4)],512),ce(_("span",La,[i(P,{icon:n(qn),onClick:A[1]||(A[1]=B=>F(-200))},null,8,["icon"])],512),[[Ce,ee.value]]),i(kt,{name:"el-zoom-in-top"},{default:g(()=>[ce((u(),I("ul",{ref_key:"contextmenuRef",ref:me,key:Math.random(),style:te(n(q)),class:"contextmenu"},[(u(!0),I(ge,null,xe(n(c).slice(0,6),(B,ie)=>(u(),I("div",{key:ie,style:{display:"flex","align-items":"center"}},[B.show?(u(),I("li",{key:0,onClick:we=>Fe(ie,B)},[i(P,{icon:B.icon},null,8,["icon"]),de(" "+Q(n(M)(B.text)),1)],8,Aa)):K("",!0)]))),128))],4)),[[Ce,n(a)]])]),_:1}),i(j,{trigger:"click",placement:"bottom-end",onCommand:$e},{dropdown:g(()=>[i(re,null,{default:g(()=>[(u(!0),I(ge,null,xe(n(c),(B,ie)=>(u(),D(G,{key:ie,command:{key:ie,item:B},divided:B.divided,disabled:B.disabled},{default:g(()=>[i(P,{icon:B.icon},null,8,["icon"]),de(" "+Q(n(M)(B.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:g(()=>[_("span",Ha,[i(P,{icon:n(Ca),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),Oa=fe(Ea,[["__scopeId","data-v-cb8cde78"]]),Da={class:"layout-footer"},Pa={class:"ml-1 hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Za=ne({__name:"index",setup(t){const e=Je("Title");return(o,a)=>(u(),I("footer",Da,[de(" MIT © 2020-PRESENT "),_("a",Pa,Q(n(e)),1)]))}}),jt=fe(Za,[["__scopeId","data-v-7e9cc56a"]]),Ra={class:"grow"},ja={key:1,class:"grow"},Ba=ne({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=rt(),d=N(()=>a==null?void 0:a.KeepAlive),l=N(()=>p=>p.meta.transition),f=N(()=>o==null?void 0:o.configure.hideTabs),c=N(()=>o==null?void 0:o.configure.hideFooter),m=N(()=>(o==null?void 0:o.layout.layout)==="vertical"),x=N(()=>[f.value&&m?"padding-top: 48px;":"",!f.value&&m?"padding-top: 85px;":"",f.value&&!m.value?"padding-top: 48px;":"",!f.value&&!m.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${f.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),v=ne({props:{route:{type:void 0,required:!0}},render(){var w,C,H;const p=((w=l.value(this.route))==null?void 0:w.name)||"fade-transform",y=(C=l.value(this.route))==null?void 0:C.enterTransition,b=(H=l.value(this.route))==null?void 0:H.leaveTransition;return Ye(kt,{name:y?"pure-classes-transition":p,enterActiveClass:y?`animate__animated ${y}`:void 0,leaveActiveClass:b?`animate__animated ${b}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(p,y)=>{const b=T("el-backtop"),w=T("el-scrollbar"),C=T("router-view");return u(),I("section",{class:se([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:te(x.value)},[i(C,null,{default:g(({Component:H,route:V})=>[e.fixedHeader?(u(),D(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:g(()=>[i(b,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:g(()=>[i(n(Xt))]),_:1}),_("div",Ra,[i(n(v),{route:V},{default:g(()=>[d.value?(u(),D(Pt,{key:0,include:n(be)().cachePageList},[(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),c.value?K("",!0):(u(),D(jt,{key:0}))]),_:2},1024)):(u(),I("div",ja,[i(n(v),{route:V},{default:g(()=>[d.value?(u(),D(Pt,{key:0,include:n(be)().cachePageList},[(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1}),!c.value&&!e.fixedHeader?(u(),D(jt,{key:0})):K("",!0)],6)}}}),Bt=fe(Ba,[["__scopeId","data-v-14e5d547"]]),en=t=>(Ut("data-v-fbc6ff94"),t=t(),Wt(),t),Na=en(()=>_("div",{class:"right-panel-background"},null,-1)),qa={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Fa=en(()=>_("h4",{class:"dark:text-white"},"项目配置",-1)),Ua={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Wa=ne({__name:"index",setup(t){const e=O(null),o=O(!1),a=N(()=>["outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{onReset:d}=$t();return Ft(e,l=>{l.clientX>e.value.offsetLeft||(o.value=!1)}),Oe(()=>{ye.on("openPanel",()=>{o.value=!0})}),wt(()=>{ye.off("openPanel")}),(l,f)=>{const c=T("IconifyIconOffline"),m=T("el-scrollbar"),x=T("el-button"),v=nt("tippy");return u(),I("div",{class:se([{show:o.value},"right-panel-container"])},[Na,_("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[_("div",qa,[Fa,ce((u(),I("span",{class:se(a.value)},[i(c,{class:"dark:text-white",width:"20px",height:"20px",icon:n(Qt),onClick:f[0]||(f[0]=p=>o.value=!o.value)},null,8,["icon"])],2)),[[v,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),i(m,null,{default:g(()=>[Sn(l.$slots,"default",{},void 0,!0)]),_:3}),_("div",Ua,[ce((u(),D(x,{type:"danger",text:"",bg:"",onClick:n(d)},{default:g(()=>[de(" 清空缓存 ")]),_:1},8,["onClick"])),[[v,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Ga=fe(Wa,[["__scopeId","data-v-fbc6ff94"]]),pe=t=>(Ut("data-v-b0a3d069"),t=t(),Wt(),t),Ka={class:"p-6"},Xa=pe(()=>_("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),Ya=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),Ja={class:"theme-color"},Qa=["onClick"],es=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),ts={class:"pure-theme"},ns=pe(()=>_("div",null,null,-1)),os=pe(()=>_("div",null,null,-1)),as=[ns,os],ss=pe(()=>_("div",null,null,-1)),ls=pe(()=>_("div",null,null,-1)),rs=[ss,ls],is=pe(()=>_("div",null,null,-1)),cs=pe(()=>_("div",null,null,-1)),us=[is,cs],ds=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),hs=pe(()=>_("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),fs={class:"setting"},ps=pe(()=>_("span",{class:"dark:text-white"},"灰色模式",-1)),ms=pe(()=>_("span",{class:"dark:text-white"},"色弱模式",-1)),vs=pe(()=>_("span",{class:"dark:text-white"},"隐藏标签页",-1)),_s=pe(()=>_("span",{class:"dark:text-white"},"隐藏页脚",-1)),gs=pe(()=>_("span",{class:"dark:text-white"},"Logo",-1)),ys=pe(()=>_("span",{class:"dark:text-white"},"页签持久化",-1)),bs=ne({__name:"index",setup(t){var ze,qe,Le,r;const{device:e}=Te(),{isDark:o}=Gt(),{$storage:a}=rt(),d=O(),l=O(),f=O(),{dataTheme:c,layoutTheme:m,themeColors:x,toggleClass:v,dataThemeChange:p,setLayoutThemeColor:y}=$t();if(n(m)){const s=n(m).layout,h=n(m).theme;Ln({scopeName:`layout-theme-${h}`}),ee(s)}const b=O((qe=(ze=a.configure)==null?void 0:ze.showModel)!=null?qe:"smart"),w=O((r=(Le=a.configure)==null?void 0:Le.showLogo)!=null?r:!0),C=bt({greyVal:a.configure.grey,weakVal:a.configure.weak,tabsVal:a.configure.hideTabs,showLogo:a.configure.showLogo,showModel:a.configure.showModel,hideFooter:a.configure.hideFooter,multiTagsCache:a.configure.multiTagsCache}),H=N(()=>s=>({background:s})),V=N(()=>s=>!(s==="light"&&o.value));function R(s,h){const F=a.configure;F[s]=h,a.configure=F}const q=s=>{v(C.greyVal,"html-grey",document.querySelector("html")),R("grey",s)},S=s=>{v(C.weakVal,"html-weakness",document.querySelector("html")),R("weak",s)},L=()=>{const s=C.tabsVal;R("hideTabs",s),ye.emit("tagViewsChange",s)},Z=()=>{const s=C.hideFooter;R("hideFooter",s)},E=()=>{const s=C.multiTagsCache;R("multiTagsCache",s),He().multiTagsCacheChange(s)};function M({option:s}){const{value:h}=s;b.value=h,R("showModel",h),ye.emit("tagViewsShowModel",h)}function X(){n(w)?R("showLogo",!0):R("showLogo",!1),ye.emit("logoChange",n(w))}function k(s){s.forEach(h=>{v(!1,"is-select",n(h))})}const J=N(()=>s=>s===m.value.theme&&m.value.theme!=="light"?"#fff":s===m.value.theme&&m.value.theme==="light"?"#1d2b45":"transparent"),Y=N(()=>[{label:"亮色",icon:An,iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"暗色",icon:Hn,iconAttrs:{fill:o.value?"#fff":"#000"}}]),me=[{label:"灵动",value:"smart"},{label:"卡片",value:"card"}];function ee(s){var h,F,oe;m.value.layout=s,window.document.body.setAttribute("layout",s),a.layout={layout:s,theme:m.value.theme,darkMode:(h=a.layout)==null?void 0:h.darkMode,sidebarStatus:(F=a.layout)==null?void 0:F.sidebarStatus,epThemeColor:(oe=a.layout)==null?void 0:oe.epThemeColor,themeColor:m.value.theme},Re().setLayout(s)}return Ue(a,({layout:s})=>{switch(s.layout){case"vertical":v(!0,"is-select",n(l)),Ze(k([f]),50),Ze(k([d]),50);break;case"horizontal":v(!0,"is-select",n(f)),Ze(k([l]),50),Ze(k([d]),50);break;case"mix":v(!0,"is-select",n(d)),Ze(k([l]),50),Ze(k([f]),50);break}}),Kt(()=>{Ee(()=>{var s,h;C.greyVal&&((s=document.querySelector("html"))==null||s.setAttribute("class","html-grey")),C.weakVal&&((h=document.querySelector("html"))==null||h.setAttribute("class","html-weakness")),C.tabsVal&&L(),C.hideFooter&&Z()})}),(s,h)=>{const F=T("IconifyIconOffline"),oe=T("el-icon"),W=T("el-switch"),U=nt("tippy");return u(),D(Ga,null,{default:g(()=>[_("div",Ka,[Xa,i(n(Zt),{modelValue:n(c)?1:0,options:Y.value,onChange:h[0]||(h[0]=z=>{c.value=!n(c),n(p)()})},null,8,["modelValue","options"]),Ya,_("ul",Ja,[(u(!0),I(ge,null,xe(n(x),(z,ae)=>ce((u(),I("li",{key:ae,style:te(H.value(z.color)),onClick:$e=>n(y)(z.themeColor)},[i(oe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:J.value(z.themeColor)},{default:g(()=>[i(F,{icon:n(Ne)},null,8,["icon"])]),_:2},1032,["color"])],12,Qa)),[[Ce,V.value(z.themeColor)]])),128))]),es,_("ul",ts,[ce((u(),I("li",{ref_key:"verticalRef",ref:l,class:se(n(m).layout==="vertical"?"is-select":""),onClick:h[1]||(h[1]=z=>ee("vertical"))},as,2)),[[U,{content:"左侧菜单",zIndex:41e3}]]),n(e)!=="mobile"?ce((u(),I("li",{key:0,ref_key:"horizontalRef",ref:f,class:se(n(m).layout==="horizontal"?"is-select":""),onClick:h[2]||(h[2]=z=>ee("horizontal"))},rs,2)),[[U,{content:"顶部菜单",zIndex:41e3}]]):K("",!0),n(e)!=="mobile"?ce((u(),I("li",{key:1,ref_key:"mixRef",ref:d,class:se(n(m).layout==="mix"?"is-select":""),onClick:h[3]||(h[3]=z=>ee("mix"))},us,2)),[[U,{content:"混合菜单",zIndex:41e3}]]):K("",!0)]),ds,i(n(Zt),{modelValue:b.value==="smart"?0:1,options:me,onChange:M},null,8,["modelValue"]),hs,_("ul",fs,[_("li",null,[ps,i(W,{modelValue:C.greyVal,"onUpdate:modelValue":h[4]||(h[4]=z=>C.greyVal=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:q},null,8,["modelValue"])]),_("li",null,[ms,i(W,{modelValue:C.weakVal,"onUpdate:modelValue":h[5]||(h[5]=z=>C.weakVal=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:S},null,8,["modelValue"])]),_("li",null,[vs,i(W,{modelValue:C.tabsVal,"onUpdate:modelValue":h[6]||(h[6]=z=>C.tabsVal=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:L},null,8,["modelValue"])]),_("li",null,[_s,i(W,{modelValue:C.hideFooter,"onUpdate:modelValue":h[7]||(h[7]=z=>C.hideFooter=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:Z},null,8,["modelValue"])]),_("li",null,[gs,i(W,{modelValue:w.value,"onUpdate:modelValue":h[8]||(h[8]=z=>w.value=z),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:X},null,8,["modelValue"])]),_("li",null,[ys,i(W,{modelValue:C.multiTagsCache,"onUpdate:modelValue":h[9]||(h[9]=z=>C.multiTagsCache=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:E},null,8,["modelValue"])])])])]),_:1})}}}),ws=fe(bs,[["__scopeId","data-v-b0a3d069"]]),ks=["src"],xs={class:"sidebar-title"},Cs=["src"],$s={class:"sidebar-title"},Ss=ne({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o,getLogo:a}=Te();return(d,l)=>{const f=T("router-link");return u(),I("div",{class:se(["sidebar-logo-container",{collapses:e.collapse}])},[i(kt,{name:"sidebarLogoFade"},{default:g(()=>{var c,m,x,v;return[e.collapse?(u(),D(f,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:(m=(c=n(lt)())==null?void 0:c.path)!=null?m:"/"},{default:g(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,ks),_("span",xs,Q(n(o)),1)]),_:1},8,["title","to"])):(u(),D(f,{key:"expand",title:n(o),class:"sidebar-logo-link",to:(v=(x=n(lt)())==null?void 0:x.path)!=null?v:"/"},{default:g(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,Cs),_("span",$s,Q(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Is=fe(Ss,[["__scopeId","data-v-8d7f2c36"]]);var tt={exports:{}},tn={},Ts=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},mt={exports:{}};typeof Object.create=="function"?mt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:mt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var Ms=mt.exports;(function(t){var e={},o=/%[sdj%]/g;t.format=function(r){if(!S(r)){for(var s=[],h=0;h<arguments.length;h++)s.push(l(arguments[h]));return s.join(" ")}for(var h=1,F=arguments,oe=F.length,W=String(r).replace(o,function(z){if(z==="%%")return"%";if(h>=oe)return z;switch(z){case"%s":return String(F[h++]);case"%d":return Number(F[h++]);case"%j":try{return JSON.stringify(F[h++])}catch(ae){return"[Circular]"}default:return z}}),U=F[h];h<oe;U=F[++h])V(U)||!M(U)?W+=" "+U:W+=" "+l(U);return W},t.deprecate=function(r,s){if(Z(In.process))return function(){return t.deprecate(r,s).apply(this,arguments)};if(process.noDeprecation===!0)return r;var h=!1;function F(){if(!h){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),h=!0}return r.apply(this,arguments)}return F};var a={},d;t.debuglog=function(r){if(Z(d)&&(d=e.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(d)){var s=process.pid;a[r]=function(){var h=t.format.apply(t,arguments);console.error("%s %d: %s",r,s,h)}}else a[r]=function(){};return a[r]};function l(r,s){var h={seen:[],stylize:c};return arguments.length>=3&&(h.depth=arguments[2]),arguments.length>=4&&(h.colors=arguments[3]),H(s)?h.showHidden=s:s&&t._extend(h,s),Z(h.showHidden)&&(h.showHidden=!1),Z(h.depth)&&(h.depth=2),Z(h.colors)&&(h.colors=!1),Z(h.customInspect)&&(h.customInspect=!0),h.colors&&(h.stylize=f),x(h,r,h.depth)}t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(r,s){var h=l.styles[s];return h?"\x1B["+l.colors[h][0]+"m"+r+"\x1B["+l.colors[h][1]+"m":r}function c(r,s){return r}function m(r){var s={};return r.forEach(function(h,F){s[h]=!0}),s}function x(r,s,h){if(r.customInspect&&s&&J(s.inspect)&&s.inspect!==t.inspect&&!(s.constructor&&s.constructor.prototype===s)){var F=s.inspect(h,r);return S(F)||(F=x(r,F,h)),F}var oe=v(r,s);if(oe)return oe;var W=Object.keys(s),U=m(W);if(r.showHidden&&(W=Object.getOwnPropertyNames(s)),k(s)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return p(s);if(W.length===0){if(J(s)){var z=s.name?": "+s.name:"";return r.stylize("[Function"+z+"]","special")}if(E(s))return r.stylize(RegExp.prototype.toString.call(s),"regexp");if(X(s))return r.stylize(Date.prototype.toString.call(s),"date");if(k(s))return p(s)}var ae="",$e=!1,Fe=["{","}"];if(C(s)&&($e=!0,Fe=["[","]"]),J(s)){var We=s.name?": "+s.name:"";ae=" [Function"+We+"]"}if(E(s)&&(ae=" "+RegExp.prototype.toString.call(s)),X(s)&&(ae=" "+Date.prototype.toUTCString.call(s)),k(s)&&(ae=" "+p(s)),W.length===0&&(!$e||s.length==0))return Fe[0]+ae+Fe[1];if(h<0)return E(s)?r.stylize(RegExp.prototype.toString.call(s),"regexp"):r.stylize("[Object]","special");r.seen.push(s);var De;return $e?De=y(r,s,h,U,W):De=W.map(function(Pe){return b(r,s,h,U,Pe,$e)}),r.seen.pop(),w(De,ae,Fe)}function v(r,s){if(Z(s))return r.stylize("undefined","undefined");if(S(s)){var h="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(h,"string")}if(q(s))return r.stylize(""+s,"number");if(H(s))return r.stylize(""+s,"boolean");if(V(s))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function y(r,s,h,F,oe){for(var W=[],U=0,z=s.length;U<z;++U)Le(s,String(U))?W.push(b(r,s,h,F,String(U),!0)):W.push("");return oe.forEach(function(ae){ae.match(/^\d+$/)||W.push(b(r,s,h,F,ae,!0))}),W}function b(r,s,h,F,oe,W){var U,z,ae;if(ae=Object.getOwnPropertyDescriptor(s,oe)||{value:s[oe]},ae.get?ae.set?z=r.stylize("[Getter/Setter]","special"):z=r.stylize("[Getter]","special"):ae.set&&(z=r.stylize("[Setter]","special")),Le(F,oe)||(U="["+oe+"]"),z||(r.seen.indexOf(ae.value)<0?(V(h)?z=x(r,ae.value,null):z=x(r,ae.value,h-1),z.indexOf(`
`)>-1&&(W?z=z.split(`
`).map(function($e){return" "+$e}).join(`
`).substr(2):z=`
`+z.split(`
`).map(function($e){return" "+$e}).join(`
`))):z=r.stylize("[Circular]","special")),Z(U)){if(W&&oe.match(/^\d+$/))return z;U=JSON.stringify(""+oe),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.substr(1,U.length-2),U=r.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=r.stylize(U,"string"))}return U+": "+z}function w(r,s,h){var F=r.reduce(function(oe,W){return W.indexOf(`
`)>=0,oe+W.replace(/\u001b\[\d\d?m/g,"").length+1},0);return F>60?h[0]+(s===""?"":s+`
`)+" "+r.join(`,
`)+" "+h[1]:h[0]+s+" "+r.join(", ")+" "+h[1]}function C(r){return Array.isArray(r)}t.isArray=C;function H(r){return typeof r=="boolean"}t.isBoolean=H;function V(r){return r===null}t.isNull=V;function R(r){return r==null}t.isNullOrUndefined=R;function q(r){return typeof r=="number"}t.isNumber=q;function S(r){return typeof r=="string"}t.isString=S;function L(r){return typeof r=="symbol"}t.isSymbol=L;function Z(r){return r===void 0}t.isUndefined=Z;function E(r){return M(r)&&me(r)==="[object RegExp]"}t.isRegExp=E;function M(r){return typeof r=="object"&&r!==null}t.isObject=M;function X(r){return M(r)&&me(r)==="[object Date]"}t.isDate=X;function k(r){return M(r)&&(me(r)==="[object Error]"||r instanceof Error)}t.isError=k;function J(r){return typeof r=="function"}t.isFunction=J;function Y(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=Y,t.isBuffer=Ts;function me(r){return Object.prototype.toString.call(r)}function ee(r){return r<10?"0"+r.toString(10):r.toString(10)}var ze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qe(){var r=new Date,s=[ee(r.getHours()),ee(r.getMinutes()),ee(r.getSeconds())].join(":");return[r.getDate(),ze[r.getMonth()],s].join(" ")}t.log=function(){console.log("%s - %s",qe(),t.format.apply(t,arguments))},t.inherits=Ms,t._extend=function(r,s){if(!s||!M(s))return r;for(var h=Object.keys(s),F=h.length;F--;)r[h[F]]=s[h[F]];return r};function Le(r,s){return Object.prototype.hasOwnProperty.call(r,s)}})(tn);var Vs={},zs=process.platform==="win32",Ie=tn;function ct(t,e){for(var o=[],a=0;a<t.length;a++){var d=t[a];!d||d==="."||(d===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(d))}return o}function et(t){for(var e=t.length-1,o=0;o<=e&&!t[o];o++);for(var a=e;a>=0&&!t[a];a--);return o===0&&a===e?t:o>a?[]:t.slice(o,a+1)}var nn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Ls=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,le={};function ut(t){var e=nn.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",d=Ls.exec(a),l=d[1],f=d[2],c=d[3];return[o,l,f,c]}function Vt(t){var e=nn.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function on(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}le.resolve=function(){for(var t="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var d;if(a>=0?d=arguments[a]:t?(d=Vs["="+t],(!d||d.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(d=t+"\\")):d=process.cwd(),Ie.isString(d)){if(!d)continue}else throw new TypeError("Arguments to path.resolve must be strings");var l=Vt(d),f=l.device,c=l.isUnc,m=l.isAbsolute,x=l.tail;if(!(f&&t&&f.toLowerCase()!==t.toLowerCase())&&(t||(t=f),o||(e=x+"\\"+e,o=m),t&&o))break}return c&&(t=on(t)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};le.normalize=function(t){var e=Vt(t),o=e.device,a=e.isUnc,d=e.isAbsolute,l=e.tail,f=/[\\\/]$/.test(l);return l=ct(l.split(/[\\\/]+/),!d).join("\\"),!l&&!d&&(l="."),l&&f&&(l+="\\"),a&&(o=on(o)),o+(d?"\\":"")+l};le.isAbsolute=function(t){return Vt(t).isAbsolute};le.join=function(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&t.push(o)}var a=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),le.normalize(a)};le.relative=function(t,e){t=le.resolve(t),e=le.resolve(e);for(var o=t.toLowerCase(),a=e.toLowerCase(),d=et(e.split("\\")),l=et(o.split("\\")),f=et(a.split("\\")),c=Math.min(l.length,f.length),m=c,x=0;x<c;x++)if(l[x]!==f[x]){m=x;break}if(m==0)return e;for(var v=[],x=m;x<l.length;x++)v.push("..");return v=v.concat(d.slice(m)),v.join("\\")};le._makeLong=function(t){if(!Ie.isString(t))return t;if(!t)return"";var e=le.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};le.dirname=function(t){var e=ut(t),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};le.basename=function(t,e){var o=ut(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};le.extname=function(t){return ut(t)[3]};le.format=function(t){if(!Ie.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ie.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir,a=t.base||"";return o?o[o.length-1]===le.sep?o+a:o+le.sep+a:a};le.parse=function(t){if(!Ie.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=ut(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};le.sep="\\";le.delimiter=";";var As=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ue={};function dt(t){return As.exec(t).slice(1)}ue.resolve=function(){for(var t="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ie.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=ct(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};ue.normalize=function(t){var e=ue.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=ct(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};ue.isAbsolute=function(t){return t.charAt(0)==="/"};ue.join=function(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(t?t+="/"+o:t+=o)}return ue.normalize(t)};ue.relative=function(t,e){t=ue.resolve(t).substr(1),e=ue.resolve(e).substr(1);for(var o=et(t.split("/")),a=et(e.split("/")),d=Math.min(o.length,a.length),l=d,f=0;f<d;f++)if(o[f]!==a[f]){l=f;break}for(var c=[],f=l;f<o.length;f++)c.push("..");return c=c.concat(a.slice(l)),c.join("/")};ue._makeLong=function(t){return t};ue.dirname=function(t){var e=dt(t),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};ue.basename=function(t,e){var o=dt(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};ue.extname=function(t){return dt(t)[3]};ue.format=function(t){if(!Ie.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ie.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir?t.dir+ue.sep:"",a=t.base||"";return o+a};ue.parse=function(t){if(!Ie.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=dt(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};ue.sep="/";ue.delimiter=":";zs?tt.exports=le:tt.exports=ue;tt.exports.posix=ue;tt.exports.win32=le;var Hs=tt.exports;const Es=Tn(Hs),Os={width:1024,height:1024,body:'<path fill="currentColor" d="M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8l316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496z"/>'},Ds={width:1024,height:1024,body:'<path fill="currentColor" d="M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8l316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496z"/>'},Ps={width:1024,height:1024,body:'<path fill="currentColor" d="M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"/>'},Zs={width:1024,height:1024,body:'<path fill="currentColor" d="M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8l-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"/>'},Rs={key:0},js={key:1},an=ne({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const{layout:e,isCollapse:o,tooltipEffect:a,getDivStyle:d}=Te(),l=t,f=N(()=>({width:"100%",textAlign:"center"})),c=N(()=>({display:"flex",alignItems:"center"})),m=N(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),x=N(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),v=N(()=>o.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),p=N(()=>S=>{var L;return o.value?{width:"100%",textAlign:(S==null?void 0:S.parentId)===null||e.value==="mix"&&((L=S==null?void 0:S.pathList)==null?void 0:L.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),y=N(()=>{var S;return(S=Je())!=null&&S.MenuArrowIconNoTransition?{"expand-close-icon":Me(Ds),"expand-open-icon":Me(Os),"collapse-close-icon":Me(Zs),"collapse-open-icon":Me(Ps)}:""}),b=O(null),w=new WeakMap,C=O(null);function H(S){w.get(S)||Ee(()=>{var L,Z;((L=C.value)==null?void 0:L.scrollWidth)>((Z=C.value)==null?void 0:Z.clientWidth)?Object.assign(S,{showTooltip:!0}):Object.assign(S,{showTooltip:!1}),w.set(S,!0)})}function V(S,L){var E;const Z=((S==null?void 0:S.length)>1?S.toString().slice(0,1):S)+"...";return L&&!(o.value&&(L==null?void 0:L.parentId)===null)?e.value==="mix"&&((E=L==null?void 0:L.pathList)==null?void 0:E.length)===2&&o.value?Z:S:Z}function R(S=[],L){var E,M;const Z=S.filter(X=>(b.value=X,!0));return(M=(E=Z[0])==null?void 0:E.meta)!=null&&M.showParent?!1:Z.length===1?!0:Z.length===0?(b.value=Ot(Et({},L),{path:"",noShowingChildren:!0}),!0):!1}function q(S){const L=/^http(s?):\/\//;return L.test(S)||L.test(l.basePath)?S||l.basePath:Es.posix.resolve(l.basePath,S)}return(S,L)=>{const Z=T("el-tooltip"),E=T("el-menu-item"),M=T("sidebar-item",!0),X=T("el-sub-menu");return R(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(u(),D(E,{key:0,index:q(b.value.path),class:se({"submenu-title-noDropdown":!t.isNest}),style:te(c.value)},{title:g(()=>[_("div",{style:te(n(d))},[n(e)==="horizontal"?(u(),I("span",Rs,Q(n(_e)(b.value.meta.title)),1)):(u(),D(Z,{key:1,placement:"top",effect:n(a),offset:-10,disabled:!b.value.showTooltip},{content:g(()=>[de(Q(n(_e)(b.value.meta.title)),1)]),default:g(()=>[_("span",{ref_key:"menuTextRef",ref:C,style:te(m.value),onMouseover:L[0]||(L[0]=k=>H(b.value))},Q(n(_e)(b.value.meta.title)),37)]),_:1},8,["effect","disabled"])),i(pt,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:g(()=>{var k,J,Y,me,ee;return[ke(l.item.meta.icon)?(u(),I("div",{key:0,class:"sub-menu-icon",style:te(x.value)},[(u(),D(Ve(n(Me)(ke(b.value.meta.icon)||l.item.meta&&ke(l.item.meta.icon)))))],4)):K("",!0),!((k=l.item)!=null&&k.meta.icon)&&n(o)&&n(e)==="vertical"&&((Y=(J=l.item)==null?void 0:J.pathList)==null?void 0:Y.length)===1?(u(),I("span",{key:1,style:te(f.value)},Q(V(n(_e)(b.value.meta.title))),5)):K("",!0),!b.value.meta.icon&&n(o)&&n(e)==="mix"&&((ee=(me=l.item)==null?void 0:me.pathList)==null?void 0:ee.length)===2?(u(),I("span",{key:2,style:te(f.value)},Q(V(n(_e)(b.value.meta.title))),5)):K("",!0)]}),_:1},8,["index","class","style"])):(u(),D(X,Mn({key:1,ref:"subMenu"},y.value,{index:q(l.item.path)}),{title:g(()=>[ke(l.item.meta.icon)?(u(),I("div",{key:0,style:te(x.value),class:"sub-menu-icon"},[(u(),D(Ve(n(Me)(l.item.meta&&ke(l.item.meta.icon)))))],4)):K("",!0),n(e)==="horizontal"?(u(),I("span",js,Q(n(_e)(l.item.meta.title)),1)):K("",!0),n(o)&&ke(l.item.meta.icon)&&l.item.parentId===null?K("",!0):(u(),I("div",{key:2,style:te(p.value(l.item))},[n(e)!=="horizontal"?(u(),D(Z,{key:0,placement:"top",effect:n(a),offset:-10,disabled:!l.item.showTooltip},{content:g(()=>[de(Q(n(_e)(l.item.meta.title)),1)]),default:g(()=>[_("span",{ref_key:"menuTextRef",ref:C,style:te(v.value),onMouseover:L[1]||(L[1]=k=>H(l.item))},Q(V(n(_e)(l.item.meta.title),l.item)),37)]),_:1},8,["effect","disabled"])):K("",!0),n(o)?K("",!0):(u(),D(pt,{key:1,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:g(()=>[(u(!0),I(ge,null,xe(l.item.children,k=>(u(),D(M,{key:k.path,"is-nest":!0,item:k,"base-path":q(k.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Bs={class:"collapse-container"},Ns=ne({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=O(!1),{tooltipEffect:d}=Te(),l=N(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:f}=rt(),c=N(()=>{var v;return(v=f.layout)==null?void 0:v.themeColor}),m=e,x=()=>{m("toggleClick")};return(v,p)=>{const y=T("IconifyIconOffline"),b=T("el-tooltip");return u(),I("div",Bs,[i(b,{placement:"right",visible:a.value,effect:n(d),content:o.isActive?"点击折叠":"点击展开"},{default:g(()=>[i(y,{icon:n(Jt),class:se([l.value,c.value==="light"?"":"text-primary"]),style:te({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:x,onMouseenter:p[0]||(p[0]=w=>a.value=!0),onMouseleave:p[1]||(p[1]=w=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}}),qs=fe(Ns,[["__scopeId","data-v-57c78e02"]]),Fs=ne({__name:"vertical",setup(t){var b,w;const e=yt(),o=O((w=(b=Ke().getItem(`${Xe()}configure`))==null?void 0:b.showLogo)!=null?w:!0),{device:a,pureApp:d,isCollapse:l,menuSelect:f,toggleSideBar:c}=Te(),m=O([]),x=N(()=>d.layout==="mix"&&a.value!=="mobile"?m.value:be().wholeMenus),v=N(()=>d.layout==="mix"?!1:x.value.length===0),p=N(()=>{var C;return je((C=e.meta)==null?void 0:C.activePath)?e.path:e.meta.activePath});function y(){let C="";C=p.value,m.value=[];const H=gt(C,be().wholeMenus),V=st(H[0]||C,be().wholeMenus);V!=null&&V.children&&(m.value=V==null?void 0:V.children)}return Ue(()=>[e.path,be().wholeMenus],()=>{e.path.includes("/redirect")||(y(),f(e.path))}),Oe(()=>{y(),ye.on("logoChange",C=>{o.value=C})}),wt(()=>{ye.off("logoChange")}),(C,H)=>{const V=T("el-menu"),R=T("el-scrollbar"),q=nt("loading");return ce((u(),I("div",{class:se(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(u(),D(Is,{key:0,collapse:n(l)},null,8,["collapse"])):K("",!0),i(R,{"wrap-class":"scrollbar-wrapper",class:se([n(a)==="mobile"?"mobile":"pc"])},{default:g(()=>[i(V,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:n(l),"default-active":p.value,"collapse-transition":!1},{default:g(()=>[(u(!0),I(ge,null,xe(x.value,S=>(u(),D(an,{key:S.path,item:S,"base-path":S.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(u(),D(qs,{key:1,"is-active":n(d).sidebar.opened,onToggleClick:n(c)},null,8,["is-active","onToggleClick"])):K("",!0)],2)),[[q,v.value]])}}}),Us=fe(Fs,[["__scopeId","data-v-e2ffffe3"]]),Ws={class:"horizontal-header"},Gs=["src"],Ks={class:"horizontal-header-right"},Xs={class:"check-zh"},Ys={class:"check-en"},Js={class:"el-dropdown-link navbar-bg-hover"},Qs=["src"],el={key:0,class:"dark:text-white"},tl=["title"],nl=ne({__name:"horizontal",setup(t){const e=O(),{t:o,route:a,locale:d,translationCh:l,translationEn:f}=xt(e),{title:c,logout:m,backTopMenu:x,onPanel:v,getLogo:p,username:y,userAvatar:b,avatarsStyle:w,getDropdownItemStyle:C,getDropdownItemClass:H}=Te(),V=N(()=>{var R;return je((R=a.meta)==null?void 0:R.activePath)?a.path:a.meta.activePath});return Ee(()=>{var R;(R=e.value)==null||R.handleResize()}),(R,q)=>{const S=T("el-menu"),L=T("IconifyIconOffline"),Z=T("el-dropdown-item"),E=T("el-dropdown-menu"),M=T("el-dropdown"),X=nt("loading");return ce((u(),I("div",Ws,[_("div",{class:"horizontal-header-left",onClick:q[0]||(q[0]=(...k)=>n(x)&&n(x)(...k))},[_("img",{src:n(p)(),alt:"logo"},null,8,Gs),_("span",null,Q(n(c)),1)]),i(S,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal",class:"horizontal-header-menu","default-active":V.value},{default:g(()=>[(u(!0),I(ge,null,xe(n(be)().wholeMenus,k=>(u(),D(an,{key:k.path,item:k,"base-path":k.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),_("div",Ks,[i(It),i(Tt,{id:"header-notice"}),i(M,{id:"header-translation",trigger:"click"},{dropdown:g(()=>[i(E,{class:"translation"},{default:g(()=>[i(Z,{style:te(n(C)(n(d),"zh")),class:se(["dark:!text-white",n(H)(n(d),"zh")]),onClick:n(l)},{default:g(()=>[ce(_("span",Xs,[i(L,{icon:n(Ne)},null,8,["icon"])],512),[[Ce,n(d)==="zh"]]),de(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(Z,{style:te(n(C)(n(d),"en")),class:se(["dark:!text-white",n(H)(n(d),"en")]),onClick:n(f)},{default:g(()=>[ce(_("span",Ys,[i(L,{icon:n(Ne)},null,8,["icon"])],512),[[Ce,n(d)==="en"]]),de(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:g(()=>[i(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(M,{trigger:"click"},{dropdown:g(()=>[i(E,{class:"logout"},{default:g(()=>[i(Z,{onClick:n(m)},{default:g(()=>[i(L,{icon:n(Mt),style:{margin:"5px"}},null,8,["icon"]),de(" "+Q(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:g(()=>[_("span",Js,[_("img",{src:n(b),style:te(n(w))},null,12,Qs),n(y)?(u(),I("p",el,Q(n(y)),1)):K("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:q[1]||(q[1]=(...k)=>n(v)&&n(v)(...k))},[i(L,{icon:n(it)},null,8,["icon"])],8,tl)])])),[[X,n(be)().wholeMenus.length===0]])}}}),ol=fe(nl,[["__scopeId","data-v-1c18c7cc"]]),al={key:0},sl=ne({__name:"index",setup(t){const e=O(),{isDark:o}=Gt(),{layout:a}=En(),d=qt(),l=St(),{$storage:f}=rt(),c=bt({sidebar:N(()=>Re().sidebar),device:N(()=>Re().device),fixedHeader:N(()=>l.fixedHeader),classes:N(()=>({hideSidebar:!c.sidebar.opened,openSidebar:c.sidebar.opened,withoutAnimation:c.sidebar.withoutAnimation,mobile:c.device==="mobile"})),hideTabs:N(()=>f==null?void 0:f.configure.hideTabs)});function m(y){var b,w,C,H,V;window.document.body.setAttribute("layout",y),f.layout={layout:`${y}`,theme:(b=f.layout)==null?void 0:b.theme,darkMode:(w=f.layout)==null?void 0:w.darkMode,sidebarStatus:(C=f.layout)==null?void 0:C.sidebarStatus,epThemeColor:(H=f.layout)==null?void 0:H.epThemeColor,themeColor:(V=f.layout)==null?void 0:V.themeColor}}function x(y,b){Re().toggleDevice(y),Re().toggleSideBar(b,"resize")}let v=!0;vt(e,y=>{if(d)return;const b=y[0],{width:w}=b.contentRect;w<=760?m("vertical"):m(Re().layout),w>0&&w<=760?(x("mobile",!1),v=!0):w>760&&w<=990?v&&(x("desktop",!1),v=!1):w>990&&!c.sidebar.isClickCollapse?(x("desktop",!0),v=!0):(x("desktop",!1),v=!1)}),Oe(()=>{d&&x("mobile",!1)}),Kt(()=>{$t().dataThemeChange()});const p=ne({render(){return Ye("div",{class:{"fixed-header":c.fixedHeader},style:[c.hideTabs&&a.value.includes("horizontal")?o.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!l.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?Ye(ga):null,!l.hiddenSideBar&&a.value.includes("horizontal")?Ye(ol):null,Ye(Oa)]})}});return(y,b)=>{const w=T("el-backtop"),C=T("el-scrollbar");return u(),I("div",{ref_key:"appWrapperRef",ref:e,class:se(["app-wrapper",c.classes])},[ce(_("div",{class:"app-mask",onClick:b[0]||(b[0]=H=>n(Re)().toggleSideBar())},null,512),[[Ce,c.device==="mobile"&&c.sidebar.opened&&n(a).includes("vertical")]]),ce(i(Us,null,null,512),[[Ce,!n(l).hiddenSideBar&&(n(a).includes("vertical")||n(a).includes("mix"))]]),_("div",{class:se(["main-container",n(l).hiddenSideBar?"main-hidden":""])},[c.fixedHeader?(u(),I("div",al,[i(n(p)),i(Bt,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])])):(u(),D(C,{key:1},{default:g(()=>[i(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:g(()=>[i(n(Xt))]),_:1}),i(n(p)),i(Bt,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),i(ws)],2)}}}),Cl=fe(sl,[["__scopeId","data-v-2a7f955a"]]);export{Cl as default};