vue-pure-admin/dist/static/js/index-y4N54V_-.js
2024-01-08 00:03:57 +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 dn=Object.defineProperty,hn=Object.defineProperties;var fn=Object.getOwnPropertyDescriptors;var At=Object.getOwnPropertySymbols;var pn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable;var Ht=(t,e,o)=>e in t?dn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Et=(t,e)=>{for(var o in e||(e={}))pn.call(e,o)&&Ht(t,o,e[o]);if(At)for(var o of At(e))mn.call(e,o)&&Ht(t,o,e[o]);return t},Ot=(t,e)=>hn(t,fn(e));var ot=(t,e,o)=>new Promise((a,d)=>{var l=v=>{try{i(o.next(v))}catch(k){d(k)}},f=v=>{try{i(o.throw(v))}catch(k){d(k)}},i=v=>v.done?a(v.value):Promise.resolve(v.value).then(l,f);i((o=o.apply(t,e)).next())});import{d1 as de,aJ as vn,aM as Ye,aN as _n,f as c,m as I,g as _,d as ne,r as D,K as q,aQ as vt,o as Oe,F as be,x as xe,ah as te,c as Z,S as Ve,u as n,t as Q,M as _e,i as u,aq as qt,_ as fe,b as S,h as he,j as J,a4 as _t,a1 as gn,b5 as yn,U as bn,J as ye,d2 as ht,w as g,b1 as wn,d3 as je,aG as kn,an as Ft,s as Ee,b7 as ke,X as Ue,e as nt,k as ce,as as se,v as Ce,d4 as gt,d5 as st,d0 as yt,d6 as He,ar as xn,al as Ge,d7 as Be,aK as Ke,aL as Xe,aj as bt,d8 as ve,d9 as Qe,da as Cn,db as at,aX as Ae,dc as lt,dd as $n,de as Nt,Q as Pe,a as wt,df as kt,dg as ft,dh as Dt,di as Sn,dj as rt,dk as Zt,O as Je,ad as In,p as Ut,l as Wt,at as Gt,ap as Kt,a2 as Mn,R as Tn,am as Vn}from"./index-24ofiFkH.js";import{d as zn}from"./menu-_OwpKHc3.js";import{d as Ln,u as Me,a as xt,g as Ct,b as $t,t as An,c as Hn,e as En,f as On}from"./dark-3Yxu16NY.js";import{d as Dn}from"./set-up-oJWP6LzE.js";import{d as Zn}from"./home-filled-ZzezfvKu.js";import{d as Pn}from"./admin-line-8g4DVr6a.js";import{d as Rn}from"./git-branch-line-zmPAFode.js";import{u as Re}from"./app-URqqjwq-.js";import{m as jn}from"./index-AxmkR3Hb.js";import{u as Bn}from"./epTheme-rgcviowW.js";import{u as Te}from"./hooks-44qEd9SO.js";import{d as qe}from"./check-f0nOH8pf.js";import{e as ge}from"./mitt-y5r8hZta.js";import{d as qn}from"./refresh-right-y-X3zYf8.js";import{d as Fn}from"./arrow-right-s-line-xoI-mVSn.js";import{b as Xt}from"./back_top-SIlWOq00.js";import{R as Pt}from"./index-6YT8JtQm.js";const Nn={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"/>'},Jn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},Yn={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"/>'},Jt={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"/>'},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"/>'};de("ubuntuFill",Nn);de("menu",zn);de("edit",Un);de("informationLine",Ln);de("setUp",Dn);de("terminalWindowLine",Wn);de("guide",Gn);de("homeFilled",Zn);de("card",Kn);de("listCheck",Xn);de("histogram",Jn);de("ppt",Yn);de("checkboxCircleLine",Qn);de("flUser",Pn);de("role",eo);de("setting",it);de("dept",Rn);de("search",Jt);de("lollipop",to);de("monitor",no);const oo=vn({id:"pure-setting",state:()=>({title:Ye().Title,fixedHeader:Ye().FixedHeader,hiddenSideBar:Ye().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(_n)}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 c(),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=D(),d=D(),l=t,f=o,i=qt(),v=q(()=>w=>({background:(w==null?void 0:w.path)===k.value?Bn().epThemeColor:"",color:w.path===k.value?"#fff":"",fontSize:w.path===k.value?"16px":"14px"})),k=q({get(){return l.value},set(w){f("update:value",w)}});function m(w){return ot(this,null,function*(){k.value=w.path})}function p(){f("enter")}function y(){d.value=window.innerHeight-window.innerHeight/10-140}vt(a,()=>{y()});function b(w){var A;const C=(A=i==null?void 0:i.proxy)==null?void 0:A.$refs[`resultItemRef${w}`];if(!C)return 0;const H=C[0].offsetTop+128;return H>d.value?H-d.value:0}return Oe(()=>{y()}),e({handleScroll:b}),(w,C)=>(c(),I("div",{ref_key:"resultRef",ref:a,class:"result"},[(c(!0),I(be,null,xe(w.options,(V,H)=>{var A,F,M;return c(),I("div",{key:V.path,ref_for:!0,ref:"resultItemRef"+H,class:"result-item dark:bg-[#1d1d1d]",style:te(v.value(V)),onClick:p,onMouseenter:z=>m(V)},[(c(),Z(Ve(n(Te)((F=(A=V.meta)==null?void 0:A.icon)!=null?F:n(io))))),_("span",uo,Q(n(_e)((M=V.meta)==null?void 0:M.title)),1),u(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 c(),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}=Me();return(a,d)=>{const l=S("IconifyIconOffline");return c(),I("div",wo,[_("span",ko,[u(n(Yt),{class:"icon"}),he(" 确认 ")]),_("span",xo,[u(l,{icon:n(po),class:"icon"},null,8,["icon"]),u(l,{icon:n(mo),class:"icon"},null,8,["icon"]),he(" 切换 ")]),_("span",Co,[u(n(bo),{class:"icon"}),he(" 关闭 ")]),n(o)!=="mobile"&&e.total>0?(c(),I("p",$o," 共"+Q(e.total)+"项 ",1)):J("",!0)])}}}),Io=fe(So,[["__scopeId","data-v-6f31f47e"]]),Mo={class:"search-result-container"},To=ne({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:o}=Me(),a=e,d=t,l=_t(),{locale:f}=gn(),i=D(""),v=D(),k=D(),m=D(""),p=D(null),y=yn([]),b=wn(H,300),w=q(()=>bn(ye().wholeMenus)),C=q({get(){return d.value},set(O){a("update:value",O)}});function V(O){const T=[];function K(x){x.forEach(Y=>{T.push(Y),Y.children&&K(Y.children)})}return K(O),T}function H(){var T;const O=V(w.value);y.value=O.filter(K=>{var x,Y;return i.value?_e((x=K.meta)==null?void 0:x.title).toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim())||f.value==="zh"&&!je(jn(_e((Y=K.meta)==null?void 0:Y.title).toLocaleLowerCase(),i.value.toLocaleLowerCase().trim())):!1}),((T=y.value)==null?void 0:T.length)>0?m.value=y.value[0].path:m.value=""}function A(){C.value=!1,setTimeout(()=>{y.value=[],i.value=""},200)}function F(O){const T=k.value.handleScroll(O);v.value.setScrollTop(T)}function M(){const{length:O}=y.value;if(O===0)return;const T=y.value.findIndex(K=>K.path===m.value);T===0?(m.value=y.value[O-1].path,F(y.value.length-1)):(m.value=y.value[T-1].path,F(T-1))}function z(){const{length:O}=y.value;if(O===0)return;const T=y.value.findIndex(K=>K.path===m.value);T+1===O?m.value=y.value[0].path:m.value=y.value[T+1].path,F(T+1)}function R(){const{length:O}=y.value;O===0||m.value===""||(l.push(m.value),A())}return ht("Enter",R),ht("ArrowUp",M),ht("ArrowDown",z),(O,T)=>{const K=S("IconifyIconOffline"),x=S("el-input"),Y=S("el-empty"),X=S("el-scrollbar"),me=S("el-dialog");return c(),Z(me,{modelValue:C.value,"onUpdate:modelValue":T[2]||(T[2]=ee=>C.value=ee),top:"5vh",class:"pure-search-dialog","show-close":!1,width:n(o)==="mobile"?"80vw":"40vw","before-close":A,style:{borderRadius:"6px"},"append-to-body":"",onOpened:T[3]||(T[3]=ee=>p.value.focus()),onClosed:T[4]||(T[4]=ee=>p.value.blur())},{footer:g(()=>[u(Io,{total:y.value.length},null,8,["total"])]),default:g(()=>[u(x,{ref_key:"inputRef",ref:p,modelValue:i.value,"onUpdate:modelValue":T[0]||(T[0]=ee=>i.value=ee),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:n(b)},{prefix:g(()=>[u(K,{icon:n(Jt),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),_("div",Mo,[u(X,{ref_key:"scrollbarRef",ref:v,"max-height":"calc(90vh - 140px)"},{default:g(()=>[y.value.length===0?(c(),Z(Y,{key:0,description:"暂无搜索结果"})):(c(),Z(fo,{key:1,ref_key:"resultRef",ref:k,value:m.value,"onUpdate:value":T[1]||(T[1]=ee=>m.value=ee),options:y.value,onClick:R},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Vo=fe(To,[["__scopeId","data-v-b82d1ace"]]);function zo(t=!1){const e=D(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}=zo();function a(){o()}return(d,l)=>{const f=S("IconifyIconOffline");return c(),I(be,null,[_("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[u(f,{icon:"search"})]),u(n(Vo),{value:n(e),"onUpdate:value":l[0]||(l[0]=i=>kn(e)?e.value=i: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"}]}],Lo={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Ao={class:"notice-container-text"},Ho={class:"notice-text-title text-[#000000d9] dark:text-white"},Eo={class:"notice-text-datetime text-[#00000073] dark:text-white"},Oo=ne({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=D(null),a=D(!1),d=D(null),l=D(!1),{tooltipEffect:f}=Me(),i=Ft();function v(){Ee(()=>{var m,p;((m=o.value)==null?void 0:m.scrollWidth)>((p=o.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function k(m,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=m.target.offsetWidth;b>2*w?l.value=!0:l.value=!1}return(m,p)=>{var C,V;const y=S("el-avatar"),b=S("el-tooltip"),w=S("el-tag");return c(),I("div",Lo,[e.noticeItem.avatar?(c(),Z(y,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):J("",!0),_("div",Ao,[_("div",Ho,[u(b,{"popper-class":"notice-title-popper",effect:n(f),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!n(i)},{default:g(()=>[_("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:v},Q(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(C=e.noticeItem)!=null&&C.extra?(c(),Z(w,{key:0,type:(V=e.noticeItem)==null?void 0:V.status,size:"small",class:"notice-title-extra"},{default:g(()=>{var H;return[he(Q((H=e.noticeItem)==null?void 0:H.extra),1)]}),_:1},8,["type"])):J("",!0)]),u(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]=H=>k(H,e.noticeItem.description))},Q(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),_("div",Eo,Q(e.noticeItem.datetime),1)])])}}}),Do=fe(Oo,[["__scopeId","data-v-2a7dbc48"]]),Zo={key:0},Po=ne({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,a)=>{const d=S("el-empty");return e.list.length?(c(),I("div",Zo,[(c(!0),I(be,null,xe(e.list,(l,f)=>(c(),Z(Do,{key:f,noticeItem:l},null,8,["noticeItem"]))),128))])):(c(),Z(d,{key:1,description:"暂无消息"}))}}}),Ro={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"/>'},jo={class:"dropdown-badge navbar-bg-hover select-none"},Bo={class:"header-notice-icon"},qo={key:1},Fo={class:"noticeList-container"},No=ne({__name:"index",setup(t){const e=D(0),o=D(Rt),a=D(Rt[0].key);return o.value.map(d=>e.value+=d.list.length),(d,l)=>{const f=S("IconifyIconOffline"),i=S("el-badge"),v=S("el-empty"),k=S("el-scrollbar"),m=S("el-tab-pane"),p=S("el-tabs"),y=S("el-dropdown-menu"),b=S("el-dropdown");return c(),Z(b,{trigger:"click",placement:"bottom-end"},{dropdown:g(()=>[u(y,null,{default:g(()=>[u(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?(c(),Z(v,{key:0,description:"暂无消息","image-size":60})):(c(),I("span",qo,[(c(!0),I(be,null,xe(o.value,w=>(c(),Z(m,{key:w.key,label:`${w.name}(${w.list.length})`,name:`${w.key}`},{default:g(()=>[u(k,{"max-height":"330px"},{default:g(()=>[_("div",Fo,[u(Po,{list:w.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:g(()=>[_("span",jo,[u(i,{value:e.value,max:99},{default:g(()=>[_("span",Bo,[u(f,{icon:n(Ro)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Mt=fe(No,[["__scopeId","data-v-33dc6db9"]]),Uo={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?(c(),I("div",Uo,[(c(),Z(Ve(n(Te)(ke(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):J("",!0)}}),Tt={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"/>'},Wo={key:0,class:"horizontal-header"},Go={class:"select-none"},Ko={class:"horizontal-header-right"},Xo={class:"check-zh"},Jo={class:"check-en"},Yo={class:"el-dropdown-link navbar-bg-hover select-none"},Qo=["src"],ea={key:0,class:"dark:text-white"},ta=["title"],na=ne({__name:"mixNav",setup(t){const e=D(),o=D(null),{t:a,route:d,locale:l,translationCh:f,translationEn:i}=xt(e),{device:v,logout:k,onPanel:m,resolvePath:p,username:y,userAvatar:b,getDivStyle:w,avatarsStyle:C,getDropdownItemStyle:V,getDropdownItemClass:H}=Me();function A(F){var R,O,T;const M=ye().wholeMenus,z=gt(F,M)[0];o.value=je((R=d.meta)==null?void 0:R.activePath)?(T=(O=st(z,M))==null?void 0:O.children[0])==null?void 0:T.path:d.meta.activePath}return Oe(()=>{A(d.path)}),Ee(()=>{var F;(F=e.value)==null||F.handleResize()}),Ue(()=>[d.path,ye().wholeMenus],()=>{A(d.path)}),(F,M)=>{const z=S("el-menu-item"),R=S("el-menu"),O=S("IconifyIconOffline"),T=S("el-dropdown-item"),K=S("el-dropdown-menu"),x=S("el-dropdown"),Y=nt("loading");return n(v)!=="mobile"?ce((c(),I("div",Wo,[u(R,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal",class:"horizontal-header-menu","default-active":o.value},{default:g(()=>[(c(!0),I(be,null,xe(n(ye)().wholeMenus,X=>(c(),Z(z,{key:X.path,index:n(p)(X)||X.redirect},{title:g(()=>[ke(X.meta.icon)?(c(),I("div",{key:0,class:se(["sub-menu-icon",X.meta.icon])},[(c(),Z(Ve(n(Te)(X.meta&&ke(X.meta.icon)))))],2)):J("",!0),_("div",{style:te(n(w))},[_("span",Go,Q(n(_e)(X.meta.title)),1),u(pt,{extraIcon:X.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),_("div",Ko,[u(It),u(Mt,{id:"header-notice"}),u(x,{id:"header-translation",trigger:"click"},{dropdown:g(()=>[u(K,{class:"translation"},{default:g(()=>[u(T,{style:te(n(V)(n(l),"zh")),class:se(["dark:!text-white",n(H)(n(l),"zh")]),onClick:n(f)},{default:g(()=>[ce(_("span",Xo,[u(O,{icon:n(qe)},null,8,["icon"])],512),[[Ce,n(l)==="zh"]]),he(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(T,{style:te(n(V)(n(l),"en")),class:se(["dark:!text-white",n(H)(n(l),"en")]),onClick:n(i)},{default:g(()=>[ce(_("span",Jo,[u(O,{icon:n(qe)},null,8,["icon"])],512),[[Ce,n(l)==="en"]]),he(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:g(()=>[u(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(x,{trigger:"click"},{dropdown:g(()=>[u(K,{class:"logout"},{default:g(()=>[u(T,{onClick:n(k)},{default:g(()=>[u(O,{icon:n(Tt),style:{margin:"5px"}},null,8,["icon"]),he(" "+Q(n(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:g(()=>[_("span",Yo,[_("img",{src:n(b),style:te(n(C))},null,12,Qo),n(y)?(c(),I("p",ea,Q(n(y)),1)):J("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(a)("buttons.hssystemSet"),onClick:M[0]||(M[0]=(...X)=>n(m)&&n(m)(...X))},[u(O,{icon:n(it)},null,8,["icon"])],8,ta)])])),[[Y,n(ye)().wholeMenus.length===0]]):J("",!0)}}}),oa=fe(na,[["__scopeId","data-v-3b84eaf6"]]),aa=["onClick"],sa=ne({__name:"breadCrumb",setup(t){const e=yt(),o=D([]),a=_t(),d=a.options.routes,l=He().multiTags,f=()=>{let v;Object.keys(e.query).length>0?l.forEach(p=>{Be(e.query,p==null?void 0:p.query)&&(v=ke(p))}):Object.keys(e.params).length>0?l.forEach(p=>{Be(e.params,p==null?void 0:p.params)&&(v=ke(p))}):v=st(a.currentRoute.value.path,d);const k=gt(a.currentRoute.value.name,d,"name"),m=[];k.forEach(p=>{p!=="/"&&m.push(st(p,d))}),m.push(v),m.forEach((p,y)=>{v!=null&&v.query||v!=null&&v.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)&&m.splice(y,1)})}),o.value=m.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},i=v=>{const{redirect:k,name:m,path:p}=v;k?a.push(k):m?v.query?a.push({name:m,query:v.query}):v.params?a.push({name:m,params:v.params}):a.push({name:m}):a.push({path:p})};return Oe(()=>{f()}),Ue(()=>e.path,()=>{f()},{deep:!0}),(v,k)=>{const m=S("el-breadcrumb-item"),p=S("el-breadcrumb");return c(),Z(p,{class:"!leading-[50px] select-none",separator:"/"},{default:g(()=>[u(xn,{name:"breadcrumb"},{default:g(()=>[(c(!0),I(be,null,xe(o.value,y=>(c(),Z(m,{key:y.path,class:"!inline !items-stretch"},{default:g(()=>[_("a",{onClick:Ge(b=>i(y),["prevent"])},Q(n(_e)(y.meta.title)),9,aa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Qt={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"/>'},la={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"/>'},ra=["title"],ia=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 i=S("IconifyIconOffline");return c(),I("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:d},[u(i,{icon:o.isActive?n(Qt):n(la),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,ra)}}}),ca={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},ua={key:3,class:"vertical-header-right"},da={class:"check-en"},ha={class:"el-dropdown-link navbar-bg-hover select-none"},fa=["src"],pa={key:0,class:"dark:text-white"},ma=["title"],va=ne({__name:"navbar",setup(t){const{layout:e,device:o,logout:a,onPanel:d,pureApp:l,username:f,userAvatar:i,avatarsStyle:v,toggleSideBar:k,getDropdownItemStyle:m,getDropdownItemClass:p}=Me(),{t:y,locale:b,translationCh:w,translationEn:C}=xt();return(V,H)=>{const A=S("IconifyIconOffline"),F=S("el-dropdown-item"),M=S("el-dropdown-menu"),z=S("el-dropdown");return c(),I("div",ca,[n(o)==="mobile"?(c(),Z(ia,{key:0,class:"hamburger-container","is-active":n(l).sidebar.opened,onToggleClick:n(k)},null,8,["is-active","onToggleClick"])):J("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(c(),Z(sa,{key:1,class:"breadcrumb-container"})):J("",!0),n(e)==="mix"?(c(),Z(oa,{key:2})):J("",!0),n(e)==="vertical"?(c(),I("div",ua,[u(It),u(Mt,{id:"header-notice"}),u(z,{id:"header-translation",trigger:"click"},{dropdown:g(()=>[u(M,{class:"translation"},{default:g(()=>[u(F,{style:te(n(m)(n(b),"zh")),class:se(["dark:!text-white",n(p)(n(b),"zh")]),onClick:n(w)},{default:g(()=>[ce(u(A,{class:"check-zh",icon:n(qe)},null,8,["icon"]),[[Ce,n(b)==="zh"]]),he(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(F,{style:te(n(m)(n(b),"en")),class:se(["dark:!text-white",n(p)(n(b),"en")]),onClick:n(C)},{default:g(()=>[ce(_("span",da,[u(A,{icon:n(qe)},null,8,["icon"])],512),[[Ce,n(b)==="en"]]),he(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:g(()=>[u(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(z,{trigger:"click"},{dropdown:g(()=>[u(M,{class:"logout"},{default:g(()=>[u(F,{onClick:n(a)},{default:g(()=>[u(A,{icon:n(Tt),style:{margin:"5px"}},null,8,["icon"]),he(" "+Q(n(y)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:g(()=>[_("span",ha,[_("img",{src:n(i),style:te(n(v))},null,12,fa),n(f)?(c(),I("p",pa,Q(n(f)),1)):J("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(y)("buttons.hssystemSet"),onClick:H[0]||(H[0]=(...R)=>n(d)&&n(d)(...R))},[u(A,{icon:n(it)},null,8,["icon"])],8,ma)])):J("",!0)])}}}),_a=fe(va,[["__scopeId","data-v-df4f8c61"]]),ga={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ya={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"/>'},ba={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"/>'},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 4V5ZM7 17h12v2H7v2.5L3 18l4-3.5V17Z"/>'},en={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 ka(){var T,K;const t=yt(),e=_t(),o=qt(),a=St(),d=D(0),l=D(0),f=D(0),i=D(!1),v=D(-1),k=D({}),m=D(((T=Ke().getItem(`${Xe()}configure`))==null?void 0:T.showModel)||"smart"),p=(K=D(Ke().getItem(`${Xe()}configure`).hideTabs))!=null?K:D("false"),y=q(()=>He().multiTags),b=bt([{icon:qn,text:ve("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:en,text:ve("buttons.hscloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:wa,text:ve("buttons.hscloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:ba,text:ve("buttons.hscloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ya,text:ve("buttons.hscloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:ga,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(x,Y,X){var me,ee;return Cn((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,x.query)?Y:X:Be(t.params,x.params)?Y:X:t.path===x.path?Y:X}const C=q(()=>(x,Y)=>{if(Y!==0)return w(x,!0,!1)}),V=q(()=>x=>w(x,"is-active","")),H=q(()=>x=>w(x,"schedule-active","")),A=q(()=>({transform:`translateX(${f.value}px)`})),F=q(()=>({left:l.value+"px",top:d.value+"px"})),M=()=>{i.value=!1};function z(x){if(x&&(v.value=x),n(m)==="smart"){if(at(o.refs["schedule"+x][0],"schedule-active"))return;Ae(!0,"schedule-in",o.refs["schedule"+x][0]),Ae(!1,"schedule-out",o.refs["schedule"+x][0])}else{if(at(o.refs["dynamic"+x][0],"is-active"))return;Ae(!0,"card-in",o.refs["dynamic"+x][0]),Ae(!1,"card-out",o.refs["dynamic"+x][0])}}function R(x){if(v.value=-1,n(m)==="smart"){if(at(o.refs["schedule"+x][0],"schedule-active"))return;Ae(!1,"schedule-in",o.refs["schedule"+x][0]),Ae(!0,"schedule-out",o.refs["schedule"+x][0])}else{if(at(o.refs["dynamic"+x][0],"is-active"))return;Ae(!1,"card-in",o.refs["dynamic"+x][0]),Ae(!0,"card-out",o.refs["dynamic"+x][0])}}function O(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Oe(()=>{if(!m.value){const x=Ke().getItem(`${Xe()}configure`);x.showModel="card",Ke().setItem(`${Xe()}configure`,x)}}),{route:t,router:e,visible:i,showTags:p,instance:o,multiTags:y,showModel:m,tagsViews:b,buttonTop:d,buttonLeft:l,translateX:f,pureSetting:a,activeIndex:v,getTabStyle:A,iconIsActive:C,linkIsActive:V,currentSelect:k,scheduleIsActive:H,getContextMenuStyle:F,$t:ve,closeMenu:M,onMounted:Oe,onMouseenter:z,onMouseleave:R,transformI18n:_e,onContentFullScreen:O}}const xa={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"/>'},Ca={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"/>'},$a={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 Sa={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 Ia={class:"arrow-left"},Ma=["onContextmenu","onMouseenter","onMouseleave","onClick"],Ta={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},Va=["onClick"],za={class:"arrow-right"},La=["onClick"],Aa={class:"arrow-down"},Ha=ne({__name:"index",setup(t){var zt;const{route:e,router:o,visible:a,showTags:d,instance:l,multiTags:f,tagsViews:i,buttonTop:v,buttonLeft:k,showModel:m,translateX:p,pureSetting:y,activeIndex:b,getTabStyle:w,iconIsActive:C,linkIsActive:V,currentSelect:H,scheduleIsActive:A,getContextMenuStyle:F,closeMenu:M,onMounted:z,onMouseenter:R,onMouseleave:O,transformI18n:T,onContentFullScreen:K}=ka(),x=D(),Y=D(),X=D(),me=D(),ee=D(!1),ze=(zt=lt())==null?void 0:zt.path,{VITE_HIDE_HOME:Fe}=Sa,{isFullscreen:Le,toggle:r}=$n(),s=()=>ot(this,null,function*(){yield Ee();const $=f.value.findIndex(E=>je(e.query)?je(e.params)?e.path===E.path:Be(e.params,E.params):Be(e.query,E.query));h($)}),h=$=>ot(this,null,function*(){var ie,we;yield Ee();const E=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=X.value?(ie=X.value)==null?void 0:ie.offsetWidth:0,B=x.value?(we=x.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+E:G>-p.value&&G+re<-p.value+j?p.value=Math.min(0,j-re-G-E):p.value=-(G-(j-E-re))}),N=$=>{var G;const E=X.value?(G=X.value)==null?void 0:G.offsetWidth:0,P=x.value?x.value.offsetWidth:0;$>0?p.value=Math.min(0,p.value+$):E<P?p.value>=-(P-E)&&(p.value=Math.max(p.value+$,E-P)):p.value=0};function oe($){const E=f.value.some(G=>G.path===$);function P(G,re){E||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:E}=n(e);o.replace({path:"/redirect"+$,query:E}),ft(e,"refresh")}function U($,E,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,cn,un)=>{un?He().handleTags("equal",[Fe==="false"?Sn[0]:ke(lt()),$]):He().handleTags("splice","",{startIndex:Se,length:cn}),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(E===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 L($,E){U($,$.path,E),ft(e)}function ae($,E,P){if(E&&E.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:L(G);break;case 2:L(G,"left");break;case 3:L(G,"right");break;case 4:L(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?(i[6].icon=Dt,i[6].text=ve("buttons.hswholeExitFullScreen")):(i[6].icon=Qe,i[6].text=ve("buttons.hswholeFullScreen"))},100);break;case 7:K(),setTimeout(()=>{y.hiddenSideBar?(i[7].icon=Dt,i[7].text=ve("buttons.hscontentExitFullScreen")):(i[7].icon=Qe,i[7].text=ve("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Ze(e.fullPath,e.query)})}function $e($){const{key:E,item:P}=$;ae(E,P)}function Ne($,E){M(),ae($,E,H.value)}function We($){Array.of(1,2,3,4,5).forEach(E=>{i[E].show=$})}function De($){Array.of(1,2,3,4,5).forEach(E=>{i[E].disabled=$})}function Ze($,E={},P=!1){const G=f.value,re=f.value.length;let j=-1;je(E)?j=G.findIndex(B=>B.path===$):j=G.findIndex(B=>Be(B.query,E)),We(!0),P&&(i[0].show=!0),j===1&&re!==2?(i[2].show=!1,Array.of(1,3,4,5).forEach(B=>{i[B].disabled=!1}),i[2].disabled=!0):j===1&&re===2?(De(!1),Array.of(2,3,4).forEach(B=>{i[B].show=!1,i[B].disabled=!0})):re-1===j&&j!==0?(i[3].show=!1,Array.of(1,2,4,5).forEach(B=>{i[B].disabled=!1}),i[3].disabled=!0):j===0||$===`/redirect${ze}`?De(!0):De(!1)}function ln($,E){M(),$.path===ze?(We(!1),i[0].show=!0):e.path!==$.path&&e.name!==$.name?(i[0].show=!1,Ze($.path,$.query)):f.value.length===2&&e.path!==$.path?(We(!0),i[4].show=!1):e.path===$.path&&Ze($.path,$.query,!0),H.value=$;const P=105,G=n(Y).getBoundingClientRect().left,j=n(Y).offsetWidth-P,B=E.clientX-G+5;B>j?k.value=j:k.value=B,St().hiddenSideBar?v.value=E.clientY:v.value=E.clientY-40,Ee(()=>{a.value=!0})}function rn($){const{name:E,path:P}=$;E?$.query?o.push({name:E,query:$.query}):$.params?o.push({name:E,params:$.params}):o.push({name:E}):o.push({path:P})}return Nt(me,M,{detectIframe:!0}),Ue(e,()=>{b.value=-1,s()}),Ue(Le,()=>{i[6].icon=Qe,i[6].text=ve("buttons.hswholeFullScreen")}),z(()=>{l&&(Ze(e.fullPath),ge.on("tagViewsChange",$=>{n(d)!==$&&(d.value=$)}),ge.on("tagViewsShowModel",$=>{m.value=$}),ge.on("changLayoutRoute",$=>{oe($),setTimeout(()=>{Ze($)})}),vt(X,Pe(()=>s())))}),wt(()=>{ge.off("tagViewsChange"),ge.off("tagViewsShowModel"),ge.off("changLayoutRoute")}),($,E)=>{const P=S("IconifyIconOffline"),G=S("el-dropdown-item"),re=S("el-dropdown-menu"),j=S("el-dropdown");return n(d)?J("",!0):(c(),I("div",{key:0,ref_key:"containerDom",ref:Y,class:"tags-view"},[ce(_("span",Ia,[u(P,{icon:n(Ca),onClick:E[0]||(E[0]=B=>N(200))},null,8,["icon"])],512),[[Ce,ee.value]]),_("div",{ref_key:"scrollbarDom",ref:X,class:"scroll-container"},[_("div",{ref_key:"tabDom",ref:x,class:"tab select-none",style:te(n(w))},[(c(!0),I(be,null,xe(n(f),(B,ie)=>(c(),I("div",{ref_for:!0,ref:"dynamic"+ie,key:ie,class:se(["scroll-item is-closable",n(V)(B)]),onContextmenu:Ge(we=>ln(B,we),["prevent"]),onMouseenter:Ge(we=>n(R)(ie),["prevent"]),onMouseleave:Ge(we=>n(O)(ie),["prevent"]),onClick:we=>rn(B)},[_("span",Ta,Q(n(T)(B.meta.title)),1),n(C)(B,ie)||ie===n(b)&&ie!==0?(c(),I("span",{key:0,class:"el-icon-close",onClick:Ge(we=>L(B),["stop"])},[u(P,{icon:n($a)},null,8,["icon"])],8,Va)):J("",!0),n(m)!=="card"?(c(),I("div",{key:1,ref_for:!0,ref:"schedule"+ie,class:se([n(A)(B)])},null,2)):J("",!0)],42,Ma))),128))],4)],512),ce(_("span",za,[u(P,{icon:n(Fn),onClick:E[1]||(E[1]=B=>N(-200))},null,8,["icon"])],512),[[Ce,ee.value]]),u(kt,{name:"el-zoom-in-top"},{default:g(()=>[ce((c(),I("ul",{ref_key:"contextmenuRef",ref:me,key:Math.random(),style:te(n(F)),class:"contextmenu"},[(c(!0),I(be,null,xe(n(i).slice(0,6),(B,ie)=>(c(),I("div",{key:ie,style:{display:"flex","align-items":"center"}},[B.show?(c(),I("li",{key:0,onClick:we=>Ne(ie,B)},[u(P,{icon:B.icon},null,8,["icon"]),he(" "+Q(n(T)(B.text)),1)],8,La)):J("",!0)]))),128))],4)),[[Ce,n(a)]])]),_:1}),u(j,{trigger:"click",placement:"bottom-end",onCommand:$e},{dropdown:g(()=>[u(re,null,{default:g(()=>[(c(!0),I(be,null,xe(n(i),(B,ie)=>(c(),Z(G,{key:ie,command:{key:ie,item:B},divided:B.divided,disabled:B.disabled},{default:g(()=>[u(P,{icon:B.icon},null,8,["icon"]),he(" "+Q(n(T)(B.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:g(()=>[_("span",Aa,[u(P,{icon:n(xa),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),Ea=fe(Ha,[["__scopeId","data-v-cb8cde78"]]),Oa={class:"layout-footer"},Da={class:"ml-1 hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Za=ne({__name:"index",setup(t){const e=Ye("Title");return(o,a)=>(c(),I("footer",Oa,[he(" MIT © 2020-PRESENT "),_("a",Da,Q(n(e)),1)]))}}),jt=fe(Za,[["__scopeId","data-v-7e9cc56a"]]),Pa={class:"grow"},Ra={key:1,class:"grow"},ja=ne({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=rt(),d=q(()=>a==null?void 0:a.KeepAlive),l=q(()=>p=>p.meta.transition),f=q(()=>o==null?void 0:o.configure.hideTabs),i=q(()=>o==null?void 0:o.configure.hideFooter),v=q(()=>(o==null?void 0:o.layout.layout)==="vertical"),k=q(()=>[f.value&&v?"padding-top: 48px;":"",!f.value&&v?"padding-top: 85px;":"",f.value&&!v.value?"padding-top: 48px;":"",!f.value&&!v.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${f.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),m=ne({props:{route:{type:void 0,required:!0}},render(){var w,C,V;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=(V=l.value(this.route))==null?void 0:V.leaveTransition;return Je(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=S("el-backtop"),w=S("el-scrollbar"),C=S("router-view");return c(),I("section",{class:se([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:te(k.value)},[u(C,null,{default:g(({Component:V,route:H})=>[e.fixedHeader?(c(),Z(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:g(()=>[u(b,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:g(()=>[u(n(Xt))]),_:1}),_("div",Pa,[u(n(m),{route:H},{default:g(()=>[d.value?(c(),Z(Zt,{key:0,include:n(ye)().cachePageList},[(c(),Z(Ve(V),{key:H.fullPath,class:"main-content"}))],1032,["include"])):(c(),Z(Ve(V),{key:H.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),i.value?J("",!0):(c(),Z(jt,{key:0}))]),_:2},1024)):(c(),I("div",Ra,[u(n(m),{route:H},{default:g(()=>[d.value?(c(),Z(Zt,{key:0,include:n(ye)().cachePageList},[(c(),Z(Ve(V),{key:H.fullPath,class:"main-content"}))],1032,["include"])):(c(),Z(Ve(V),{key:H.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1}),!i.value&&!e.fixedHeader?(c(),Z(jt,{key:0})):J("",!0)],6)}}}),Bt=fe(ja,[["__scopeId","data-v-14e5d547"]]),tn=t=>(Ut("data-v-fbc6ff94"),t=t(),Wt(),t),Ba=tn(()=>_("div",{class:"right-panel-background"},null,-1)),qa={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Fa=tn(()=>_("h4",{class:"dark:text-white"},"项目配置",-1)),Na={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Ua=ne({__name:"index",setup(t){const e=D(null),o=D(!1),a=q(()=>["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 Nt(e,l=>{l.clientX>e.value.offsetLeft||(o.value=!1)}),Oe(()=>{ge.on("openPanel",()=>{o.value=!0})}),wt(()=>{ge.off("openPanel")}),(l,f)=>{const i=S("IconifyIconOffline"),v=S("el-scrollbar"),k=S("el-button"),m=nt("tippy");return c(),I("div",{class:se([{show:o.value},"right-panel-container"])},[Ba,_("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[_("div",qa,[Fa,ce((c(),I("span",{class:se(a.value)},[u(i,{class:"dark:text-white",width:"20px",height:"20px",icon:n(en),onClick:f[0]||(f[0]=p=>o.value=!o.value)},null,8,["icon"])],2)),[[m,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),u(v,null,{default:g(()=>[In(l.$slots,"default",{},void 0,!0)]),_:3}),_("div",Na,[ce((c(),Z(k,{type:"danger",text:"",bg:"",onClick:n(d)},{default:g(()=>[he(" 清空缓存 ")]),_:1},8,["onClick"])),[[m,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Wa=fe(Ua,[["__scopeId","data-v-fbc6ff94"]]),pe=t=>(Ut("data-v-b0a3d069"),t=t(),Wt(),t),Ga={class:"p-6"},Ka=pe(()=>_("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),Xa=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),Ja={class:"theme-color"},Ya=["onClick"],Qa=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),es={class:"pure-theme"},ts=pe(()=>_("div",null,null,-1)),ns=pe(()=>_("div",null,null,-1)),os=[ts,ns],as=pe(()=>_("div",null,null,-1)),ss=pe(()=>_("div",null,null,-1)),ls=[as,ss],rs=pe(()=>_("div",null,null,-1)),is=pe(()=>_("div",null,null,-1)),cs=[rs,is],us=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),ds=pe(()=>_("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),hs={class:"setting"},fs=pe(()=>_("span",{class:"dark:text-white"},"灰色模式",-1)),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"},"Logo",-1)),gs=pe(()=>_("span",{class:"dark:text-white"},"页签持久化",-1)),ys=ne({__name:"index",setup(t){var ze,Fe,Le,r;const{device:e}=Me(),{isDark:o}=Gt(),{$storage:a}=rt(),d=D(),l=D(),f=D(),{dataTheme:i,layoutTheme:v,themeColors:k,toggleClass:m,dataThemeChange:p,setLayoutThemeColor:y}=$t();if(n(v)){const s=n(v).layout,h=n(v).theme;An({scopeName:`layout-theme-${h}`}),ee(s)}const b=D((Fe=(ze=a.configure)==null?void 0:ze.showModel)!=null?Fe:"smart"),w=D((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}),V=q(()=>s=>({background:s})),H=q(()=>s=>!(s==="light"&&o.value));function A(s,h){const N=a.configure;N[s]=h,a.configure=N}const F=s=>{m(C.greyVal,"html-grey",document.querySelector("html")),A("grey",s)},M=s=>{m(C.weakVal,"html-weakness",document.querySelector("html")),A("weak",s)},z=()=>{const s=C.tabsVal;A("hideTabs",s),ge.emit("tagViewsChange",s)},R=()=>{const s=C.hideFooter;A("hideFooter",s)},O=()=>{const s=C.multiTagsCache;A("multiTagsCache",s),He().multiTagsCacheChange(s)};function T({option:s}){const{value:h}=s;b.value=h,A("showModel",h),ge.emit("tagViewsShowModel",h)}function K(){n(w)?A("showLogo",!0):A("showLogo",!1),ge.emit("logoChange",n(w))}function x(s){s.forEach(h=>{m(!1,"is-select",n(h))})}const Y=q(()=>s=>s===v.value.theme&&v.value.theme!=="light"?"#fff":s===v.value.theme&&v.value.theme==="light"?"#1d2b45":"transparent"),X=q(()=>[{label:"亮色",icon:Hn,iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"暗色",icon:En,iconAttrs:{fill:o.value?"#fff":"#000"}}]),me=[{label:"灵动",value:"smart"},{label:"卡片",value:"card"}];function ee(s){var h,N,oe;v.value.layout=s,window.document.body.setAttribute("layout",s),a.layout={layout:s,theme:v.value.theme,darkMode:(h=a.layout)==null?void 0:h.darkMode,sidebarStatus:(N=a.layout)==null?void 0:N.sidebarStatus,epThemeColor:(oe=a.layout)==null?void 0:oe.epThemeColor,themeColor:v.value.theme},Re().setLayout(s)}return Ue(a,({layout:s})=>{switch(s.layout){case"vertical":m(!0,"is-select",n(l)),Pe(x([f]),50),Pe(x([d]),50);break;case"horizontal":m(!0,"is-select",n(f)),Pe(x([l]),50),Pe(x([d]),50);break;case"mix":m(!0,"is-select",n(d)),Pe(x([l]),50),Pe(x([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&&z(),C.hideFooter&&R()})}),(s,h)=>{const N=S("IconifyIconOffline"),oe=S("el-icon"),W=S("el-switch"),U=nt("tippy");return c(),Z(Wa,null,{default:g(()=>[_("div",Ga,[Ka,u(n(Pt),{modelValue:n(i)?1:0,options:X.value,onChange:h[0]||(h[0]=L=>{i.value=!n(i),n(p)()})},null,8,["modelValue","options"]),Xa,_("ul",Ja,[(c(!0),I(be,null,xe(n(k),(L,ae)=>ce((c(),I("li",{key:ae,style:te(V.value(L.color)),onClick:$e=>n(y)(L.themeColor)},[u(oe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Y.value(L.themeColor)},{default:g(()=>[u(N,{icon:n(qe)},null,8,["icon"])]),_:2},1032,["color"])],12,Ya)),[[Ce,H.value(L.themeColor)]])),128))]),Qa,_("ul",es,[ce((c(),I("li",{ref_key:"verticalRef",ref:l,class:se(n(v).layout==="vertical"?"is-select":""),onClick:h[1]||(h[1]=L=>ee("vertical"))},os,2)),[[U,{content:"左侧菜单",zIndex:41e3}]]),n(e)!=="mobile"?ce((c(),I("li",{key:0,ref_key:"horizontalRef",ref:f,class:se(n(v).layout==="horizontal"?"is-select":""),onClick:h[2]||(h[2]=L=>ee("horizontal"))},ls,2)),[[U,{content:"顶部菜单",zIndex:41e3}]]):J("",!0),n(e)!=="mobile"?ce((c(),I("li",{key:1,ref_key:"mixRef",ref:d,class:se(n(v).layout==="mix"?"is-select":""),onClick:h[3]||(h[3]=L=>ee("mix"))},cs,2)),[[U,{content:"混合菜单",zIndex:41e3}]]):J("",!0)]),us,u(n(Pt),{modelValue:b.value==="smart"?0:1,options:me,onChange:T},null,8,["modelValue"]),ds,_("ul",hs,[_("li",null,[fs,u(W,{modelValue:C.greyVal,"onUpdate:modelValue":h[4]||(h[4]=L=>C.greyVal=L),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])]),_("li",null,[ps,u(W,{modelValue:C.weakVal,"onUpdate:modelValue":h[5]||(h[5]=L=>C.weakVal=L),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),_("li",null,[ms,u(W,{modelValue:C.tabsVal,"onUpdate:modelValue":h[6]||(h[6]=L=>C.tabsVal=L),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:z},null,8,["modelValue"])]),_("li",null,[vs,u(W,{modelValue:C.hideFooter,"onUpdate:modelValue":h[7]||(h[7]=L=>C.hideFooter=L),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:R},null,8,["modelValue"])]),_("li",null,[_s,u(W,{modelValue:w.value,"onUpdate:modelValue":h[8]||(h[8]=L=>w.value=L),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:K},null,8,["modelValue"])]),_("li",null,[gs,u(W,{modelValue:C.multiTagsCache,"onUpdate:modelValue":h[9]||(h[9]=L=>C.multiTagsCache=L),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:O},null,8,["modelValue"])])])])]),_:1})}}}),bs=fe(ys,[["__scopeId","data-v-b0a3d069"]]),ws=["src"],ks={class:"sidebar-title"},xs=["src"],Cs={class:"sidebar-title"},$s=ne({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o,getLogo:a}=Me();return(d,l)=>{const f=S("router-link");return c(),I("div",{class:se(["sidebar-logo-container",{collapses:e.collapse}])},[u(kt,{name:"sidebarLogoFade"},{default:g(()=>{var i,v,k,m;return[e.collapse?(c(),Z(f,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:(v=(i=n(lt)())==null?void 0:i.path)!=null?v:"/"},{default:g(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,ws),_("span",ks,Q(n(o)),1)]),_:1},8,["title","to"])):(c(),Z(f,{key:"expand",title:n(o),class:"sidebar-logo-link",to:(m=(k=n(lt)())==null?void 0:k.path)!=null?m:"/"},{default:g(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,xs),_("span",Cs,Q(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Ss=fe($s,[["__scopeId","data-v-8d7f2c36"]]);var tt={exports:{}},nn={},Is=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(!M(r)){for(var s=[],h=0;h<arguments.length;h++)s.push(l(arguments[h]));return s.join(" ")}for(var h=1,N=arguments,oe=N.length,W=String(r).replace(o,function(L){if(L==="%%")return"%";if(h>=oe)return L;switch(L){case"%s":return String(N[h++]);case"%d":return Number(N[h++]);case"%j":try{return JSON.stringify(N[h++])}catch(ae){return"[Circular]"}default:return L}}),U=N[h];h<oe;U=N[++h])H(U)||!T(U)?W+=" "+U:W+=" "+l(U);return W},t.deprecate=function(r,s){if(R(Mn.process))return function(){return t.deprecate(r,s).apply(this,arguments)};if(process.noDeprecation===!0)return r;var h=!1;function N(){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 N};var a={},d;t.debuglog=function(r){if(R(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:i};return arguments.length>=3&&(h.depth=arguments[2]),arguments.length>=4&&(h.colors=arguments[3]),V(s)?h.showHidden=s:s&&t._extend(h,s),R(h.showHidden)&&(h.showHidden=!1),R(h.depth)&&(h.depth=2),R(h.colors)&&(h.colors=!1),R(h.customInspect)&&(h.customInspect=!0),h.colors&&(h.stylize=f),k(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 i(r,s){return r}function v(r){var s={};return r.forEach(function(h,N){s[h]=!0}),s}function k(r,s,h){if(r.customInspect&&s&&Y(s.inspect)&&s.inspect!==t.inspect&&!(s.constructor&&s.constructor.prototype===s)){var N=s.inspect(h,r);return M(N)||(N=k(r,N,h)),N}var oe=m(r,s);if(oe)return oe;var W=Object.keys(s),U=v(W);if(r.showHidden&&(W=Object.getOwnPropertyNames(s)),x(s)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return p(s);if(W.length===0){if(Y(s)){var L=s.name?": "+s.name:"";return r.stylize("[Function"+L+"]","special")}if(O(s))return r.stylize(RegExp.prototype.toString.call(s),"regexp");if(K(s))return r.stylize(Date.prototype.toString.call(s),"date");if(x(s))return p(s)}var ae="",$e=!1,Ne=["{","}"];if(C(s)&&($e=!0,Ne=["[","]"]),Y(s)){var We=s.name?": "+s.name:"";ae=" [Function"+We+"]"}if(O(s)&&(ae=" "+RegExp.prototype.toString.call(s)),K(s)&&(ae=" "+Date.prototype.toUTCString.call(s)),x(s)&&(ae=" "+p(s)),W.length===0&&(!$e||s.length==0))return Ne[0]+ae+Ne[1];if(h<0)return O(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(Ze){return b(r,s,h,U,Ze,$e)}),r.seen.pop(),w(De,ae,Ne)}function m(r,s){if(R(s))return r.stylize("undefined","undefined");if(M(s)){var h="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(h,"string")}if(F(s))return r.stylize(""+s,"number");if(V(s))return r.stylize(""+s,"boolean");if(H(s))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function y(r,s,h,N,oe){for(var W=[],U=0,L=s.length;U<L;++U)Le(s,String(U))?W.push(b(r,s,h,N,String(U),!0)):W.push("");return oe.forEach(function(ae){ae.match(/^\d+$/)||W.push(b(r,s,h,N,ae,!0))}),W}function b(r,s,h,N,oe,W){var U,L,ae;if(ae=Object.getOwnPropertyDescriptor(s,oe)||{value:s[oe]},ae.get?ae.set?L=r.stylize("[Getter/Setter]","special"):L=r.stylize("[Getter]","special"):ae.set&&(L=r.stylize("[Setter]","special")),Le(N,oe)||(U="["+oe+"]"),L||(r.seen.indexOf(ae.value)<0?(H(h)?L=k(r,ae.value,null):L=k(r,ae.value,h-1),L.indexOf(`
`)>-1&&(W?L=L.split(`
`).map(function($e){return" "+$e}).join(`
`).substr(2):L=`
`+L.split(`
`).map(function($e){return" "+$e}).join(`
`))):L=r.stylize("[Circular]","special")),R(U)){if(W&&oe.match(/^\d+$/))return L;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+": "+L}function w(r,s,h){var N=r.reduce(function(oe,W){return W.indexOf(`
`)>=0,oe+W.replace(/\u001b\[\d\d?m/g,"").length+1},0);return N>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 V(r){return typeof r=="boolean"}t.isBoolean=V;function H(r){return r===null}t.isNull=H;function A(r){return r==null}t.isNullOrUndefined=A;function F(r){return typeof r=="number"}t.isNumber=F;function M(r){return typeof r=="string"}t.isString=M;function z(r){return typeof r=="symbol"}t.isSymbol=z;function R(r){return r===void 0}t.isUndefined=R;function O(r){return T(r)&&me(r)==="[object RegExp]"}t.isRegExp=O;function T(r){return typeof r=="object"&&r!==null}t.isObject=T;function K(r){return T(r)&&me(r)==="[object Date]"}t.isDate=K;function x(r){return T(r)&&(me(r)==="[object Error]"||r instanceof Error)}t.isError=x;function Y(r){return typeof r=="function"}t.isFunction=Y;function X(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=X,t.isBuffer=Is;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 Fe(){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",Fe(),t.format.apply(t,arguments))},t.inherits=Ms,t._extend=function(r,s){if(!s||!T(s))return r;for(var h=Object.keys(s),N=h.length;N--;)r[h[N]]=s[h[N]];return r};function Le(r,s){return Object.prototype.hasOwnProperty.call(r,s)}})(nn);var Ts={},Vs=process.platform==="win32",Ie=nn;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 on=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,zs=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,le={};function ut(t){var e=on.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",d=zs.exec(a),l=d[1],f=d[2],i=d[3];return[o,l,f,i]}function Vt(t){var e=on.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function an(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=Ts["="+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,i=l.isUnc,v=l.isAbsolute,k=l.tail;if(!(f&&t&&f.toLowerCase()!==t.toLowerCase())&&(t||(t=f),o||(e=k+"\\"+e,o=v),t&&o))break}return i&&(t=an(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=an(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("\\")),i=Math.min(l.length,f.length),v=i,k=0;k<i;k++)if(l[k]!==f[k]){v=k;break}if(v==0)return e;for(var m=[],k=v;k<l.length;k++)m.push("..");return m=m.concat(d.slice(v)),m.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 Ls=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ue={};function dt(t){return Ls.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 i=[],f=l;f<o.length;f++)i.push("..");return i=i.concat(a.slice(l)),i.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=":";Vs?tt.exports=le:tt.exports=ue;tt.exports.posix=ue;tt.exports.win32=le;var As=tt.exports;const Hs=Tn(As),Es={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"/>'},Os={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"/>'},Ds={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"/>'},Ps={key:0},Rs={key:1},sn=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}=Me(),l=t,f=q(()=>({width:"100%",textAlign:"center"})),i=q(()=>({display:"flex",alignItems:"center"})),v=q(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),k=q(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),m=q(()=>o.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),p=q(()=>M=>{var z;return o.value?{width:"100%",textAlign:(M==null?void 0:M.parentId)===null||e.value==="mix"&&((z=M==null?void 0:M.pathList)==null?void 0:z.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),y=q(()=>{var M;return(M=Ye())!=null&&M.MenuArrowIconNoTransition?{"expand-close-icon":Te(Os),"expand-open-icon":Te(Es),"collapse-close-icon":Te(Zs),"collapse-open-icon":Te(Ds)}:""}),b=D(null),w=new WeakMap,C=D(null);function V(M){w.get(M)||Ee(()=>{var z,R;((z=C.value)==null?void 0:z.scrollWidth)>((R=C.value)==null?void 0:R.clientWidth)?Object.assign(M,{showTooltip:!0}):Object.assign(M,{showTooltip:!1}),w.set(M,!0)})}function H(M,z){var O;const R=((M==null?void 0:M.length)>1?M.toString().slice(0,1):M)+"...";return z&&!(o.value&&(z==null?void 0:z.parentId)===null)?e.value==="mix"&&((O=z==null?void 0:z.pathList)==null?void 0:O.length)===2&&o.value?R:M:R}function A(M=[],z){var O,T;const R=M.filter(K=>(b.value=K,!0));return(T=(O=R[0])==null?void 0:O.meta)!=null&&T.showParent?!1:R.length===1?!0:R.length===0?(b.value=Ot(Et({},z),{path:"",noShowingChildren:!0}),!0):!1}function F(M){const z=/^http(s?):\/\//;return z.test(M)||z.test(l.basePath)?M||l.basePath:Hs.posix.resolve(l.basePath,M)}return(M,z)=>{const R=S("el-tooltip"),O=S("el-menu-item"),T=S("sidebar-item",!0),K=S("el-sub-menu");return A(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(c(),Z(O,{key:0,index:F(b.value.path),class:se({"submenu-title-noDropdown":!t.isNest}),style:te(i.value)},{title:g(()=>[_("div",{style:te(n(d))},[n(e)==="horizontal"?(c(),I("span",Ps,Q(n(_e)(b.value.meta.title)),1)):(c(),Z(R,{key:1,placement:"top",effect:n(a),offset:-10,disabled:!b.value.showTooltip},{content:g(()=>[he(Q(n(_e)(b.value.meta.title)),1)]),default:g(()=>[_("span",{ref_key:"menuTextRef",ref:C,style:te(v.value),onMouseover:z[0]||(z[0]=x=>V(b.value))},Q(n(_e)(b.value.meta.title)),37)]),_:1},8,["effect","disabled"])),u(pt,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:g(()=>{var x,Y,X,me,ee;return[ke(l.item.meta.icon)?(c(),I("div",{key:0,class:"sub-menu-icon",style:te(k.value)},[(c(),Z(Ve(n(Te)(ke(b.value.meta.icon)||l.item.meta&&ke(l.item.meta.icon)))))],4)):J("",!0),!((x=l.item)!=null&&x.meta.icon)&&n(o)&&n(e)==="vertical"&&((X=(Y=l.item)==null?void 0:Y.pathList)==null?void 0:X.length)===1?(c(),I("span",{key:1,style:te(f.value)},Q(H(n(_e)(b.value.meta.title))),5)):J("",!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?(c(),I("span",{key:2,style:te(f.value)},Q(H(n(_e)(b.value.meta.title))),5)):J("",!0)]}),_:1},8,["index","class","style"])):(c(),Z(K,Vn({key:1,ref:"subMenu"},y.value,{index:F(l.item.path)}),{title:g(()=>[ke(l.item.meta.icon)?(c(),I("div",{key:0,style:te(k.value),class:"sub-menu-icon"},[(c(),Z(Ve(n(Te)(l.item.meta&&ke(l.item.meta.icon)))))],4)):J("",!0),n(e)==="horizontal"?(c(),I("span",Rs,Q(n(_e)(l.item.meta.title)),1)):J("",!0),n(o)&&ke(l.item.meta.icon)&&l.item.parentId===null?J("",!0):(c(),I("div",{key:2,style:te(p.value(l.item))},[n(e)!=="horizontal"?(c(),Z(R,{key:0,placement:"top",effect:n(a),offset:-10,disabled:!l.item.showTooltip},{content:g(()=>[he(Q(n(_e)(l.item.meta.title)),1)]),default:g(()=>[_("span",{ref_key:"menuTextRef",ref:C,style:te(m.value),onMouseover:z[1]||(z[1]=x=>V(l.item))},Q(H(n(_e)(l.item.meta.title),l.item)),37)]),_:1},8,["effect","disabled"])):J("",!0),n(o)?J("",!0):(c(),Z(pt,{key:1,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:g(()=>[(c(!0),I(be,null,xe(l.item.children,x=>(c(),Z(T,{key:x.path,"is-nest":!0,item:x,"base-path":F(x.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),js={class:"collapse-container"},Bs=ne({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=D(!1),{tooltipEffect:d}=Me(),l=q(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:f}=rt(),i=q(()=>{var m;return(m=f.layout)==null?void 0:m.themeColor}),v=e,k=()=>{v("toggleClick")};return(m,p)=>{const y=S("IconifyIconOffline"),b=S("el-tooltip");return c(),I("div",js,[u(b,{placement:"right",visible:a.value,effect:n(d),content:o.isActive?"点击折叠":"点击展开"},{default:g(()=>[u(y,{icon:n(Qt),class:se([l.value,i.value==="light"?"":"text-primary"]),style:te({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:k,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(Bs,[["__scopeId","data-v-57c78e02"]]),Fs=ne({__name:"vertical",setup(t){var w,C;const e=yt(),o=D((C=(w=Ke().getItem(`${Xe()}configure`))==null?void 0:w.showLogo)!=null?C:!0),{device:a,pureApp:d,isCollapse:l,tooltipEffect:f,menuSelect:i,toggleSideBar:v}=Me(),k=D([]),m=q(()=>d.layout==="mix"&&a.value!=="mobile"?k.value:ye().wholeMenus),p=q(()=>d.layout==="mix"?!1:m.value.length===0),y=q(()=>{var V;return je((V=e.meta)==null?void 0:V.activePath)?e.path:e.meta.activePath});function b(){let V="";V=y.value,k.value=[];const H=gt(V,ye().wholeMenus),A=st(H[0]||V,ye().wholeMenus);A!=null&&A.children&&(k.value=A==null?void 0:A.children)}return Ue(()=>[e.path,ye().wholeMenus],()=>{e.path.includes("/redirect")||(b(),i(e.path))}),Oe(()=>{b(),ge.on("logoChange",V=>{o.value=V})}),wt(()=>{ge.off("logoChange")}),(V,H)=>{const A=S("el-menu"),F=S("el-scrollbar"),M=nt("loading");return ce((c(),I("div",{class:se(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(c(),Z(Ss,{key:0,collapse:n(l)},null,8,["collapse"])):J("",!0),u(F,{"wrap-class":"scrollbar-wrapper",class:se([n(a)==="mobile"?"mobile":"pc"])},{default:g(()=>[u(A,{router:"","unique-opened":"",mode:"vertical","popper-effect":n(f),class:"outer-most select-none",collapse:n(l),"default-active":y.value,"collapse-transition":!1},{default:g(()=>[(c(!0),I(be,null,xe(m.value,z=>(c(),Z(sn,{key:z.path,item:z,"base-path":z.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["popper-effect","collapse","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(c(),Z(qs,{key:1,"is-active":n(d).sidebar.opened,onToggleClick:n(v)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[M,p.value]])}}}),Ns=fe(Fs,[["__scopeId","data-v-6cb5d107"]]),Us={class:"horizontal-header"},Ws=["src"],Gs={class:"horizontal-header-right"},Ks={class:"check-zh"},Xs={class:"check-en"},Js={class:"el-dropdown-link navbar-bg-hover"},Ys=["src"],Qs={key:0,class:"dark:text-white"},el=["title"],tl=ne({__name:"horizontal",setup(t){const e=D(),{t:o,route:a,locale:d,translationCh:l,translationEn:f}=xt(e),{title:i,logout:v,backTopMenu:k,onPanel:m,getLogo:p,username:y,userAvatar:b,avatarsStyle:w,getDropdownItemStyle:C,getDropdownItemClass:V}=Me(),H=q(()=>{var A;return je((A=a.meta)==null?void 0:A.activePath)?a.path:a.meta.activePath});return Ee(()=>{var A;(A=e.value)==null||A.handleResize()}),(A,F)=>{const M=S("el-menu"),z=S("IconifyIconOffline"),R=S("el-dropdown-item"),O=S("el-dropdown-menu"),T=S("el-dropdown"),K=nt("loading");return ce((c(),I("div",Us,[_("div",{class:"horizontal-header-left",onClick:F[0]||(F[0]=(...x)=>n(k)&&n(k)(...x))},[_("img",{src:n(p)(),alt:"logo"},null,8,Ws),_("span",null,Q(n(i)),1)]),u(M,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal",class:"horizontal-header-menu","default-active":H.value},{default:g(()=>[(c(!0),I(be,null,xe(n(ye)().wholeMenus,x=>(c(),Z(sn,{key:x.path,item:x,"base-path":x.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),_("div",Gs,[u(It),u(Mt,{id:"header-notice"}),u(T,{id:"header-translation",trigger:"click"},{dropdown:g(()=>[u(O,{class:"translation"},{default:g(()=>[u(R,{style:te(n(C)(n(d),"zh")),class:se(["dark:!text-white",n(V)(n(d),"zh")]),onClick:n(l)},{default:g(()=>[ce(_("span",Ks,[u(z,{icon:n(qe)},null,8,["icon"])],512),[[Ce,n(d)==="zh"]]),he(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(R,{style:te(n(C)(n(d),"en")),class:se(["dark:!text-white",n(V)(n(d),"en")]),onClick:n(f)},{default:g(()=>[ce(_("span",Xs,[u(z,{icon:n(qe)},null,8,["icon"])],512),[[Ce,n(d)==="en"]]),he(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:g(()=>[u(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(T,{trigger:"click"},{dropdown:g(()=>[u(O,{class:"logout"},{default:g(()=>[u(R,{onClick:n(v)},{default:g(()=>[u(z,{icon:n(Tt),style:{margin:"5px"}},null,8,["icon"]),he(" "+Q(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:g(()=>[_("span",Js,[_("img",{src:n(b),style:te(n(w))},null,12,Ys),n(y)?(c(),I("p",Qs,Q(n(y)),1)):J("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:F[1]||(F[1]=(...x)=>n(m)&&n(m)(...x))},[u(z,{icon:n(it)},null,8,["icon"])],8,el)])])),[[K,n(ye)().wholeMenus.length===0]])}}}),nl=fe(tl,[["__scopeId","data-v-1c18c7cc"]]),ol={key:0},al=ne({__name:"index",setup(t){const e=D(),{isDark:o}=Gt(),{layout:a}=On(),d=Ft(),l=St(),{$storage:f}=rt(),i=bt({sidebar:q(()=>Re().sidebar),device:q(()=>Re().device),fixedHeader:q(()=>l.fixedHeader),classes:q(()=>({hideSidebar:!i.sidebar.opened,openSidebar:i.sidebar.opened,withoutAnimation:i.sidebar.withoutAnimation,mobile:i.device==="mobile"})),hideTabs:q(()=>f==null?void 0:f.configure.hideTabs)});function v(y){var b,w,C,V,H;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:(V=f.layout)==null?void 0:V.epThemeColor,themeColor:(H=f.layout)==null?void 0:H.themeColor}}function k(y,b){Re().toggleDevice(y),Re().toggleSideBar(b,"resize")}let m=!0;vt(e,y=>{if(d)return;const b=y[0],{width:w}=b.contentRect;w<=760?v("vertical"):v(Re().layout),w>0&&w<=760?(k("mobile",!1),m=!0):w>760&&w<=990?m&&(k("desktop",!1),m=!1):w>990&&!i.sidebar.isClickCollapse?(k("desktop",!0),m=!0):(k("desktop",!1),m=!1)}),Oe(()=>{d&&k("mobile",!1)}),Kt(()=>{$t().dataThemeChange()});const p=ne({render(){return Je("div",{class:{"fixed-header":i.fixedHeader},style:[i.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"))?Je(_a):null,!l.hiddenSideBar&&a.value.includes("horizontal")?Je(nl):null,Je(Ea)]})}});return(y,b)=>{const w=S("el-backtop"),C=S("el-scrollbar");return c(),I("div",{ref_key:"appWrapperRef",ref:e,class:se(["app-wrapper",i.classes])},[ce(_("div",{class:"app-mask",onClick:b[0]||(b[0]=V=>n(Re)().toggleSideBar())},null,512),[[Ce,i.device==="mobile"&&i.sidebar.opened&&n(a).includes("vertical")]]),ce(u(Ns,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":""])},[i.fixedHeader?(c(),I("div",ol,[u(n(p)),u(Bt,{"fixed-header":i.fixedHeader},null,8,["fixed-header"])])):(c(),Z(C,{key:1},{default:g(()=>[u(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:g(()=>[u(n(Xt))]),_:1}),u(n(p)),u(Bt,{"fixed-header":i.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),u(bs)],2)}}}),xl=fe(al,[["__scopeId","data-v-2a7f955a"]]);export{xl as default};