mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 17:37:24 +08:00
11 lines
80 KiB
JavaScript
11 lines
80 KiB
JavaScript
var hn=Object.defineProperty,fn=Object.defineProperties;var pn=Object.getOwnPropertyDescriptors;var At=Object.getOwnPropertySymbols;var mn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable;var Et=(t,e,o)=>e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ot=(t,e)=>{for(var o in e||(e={}))mn.call(e,o)&&Et(t,o,e[o]);if(At)for(var o of At(e))vn.call(e,o)&&Et(t,o,e[o]);return t},Zt=(t,e)=>fn(t,pn(e));var ot=(t,e,o)=>new Promise((a,u)=>{var l=_=>{try{r(o.next(_))}catch(v){u(v)}},d=_=>{try{r(o.throw(_))}catch(v){u(v)}},r=_=>_.done?a(_.value):Promise.resolve(_.value).then(l,d);r((o=o.apply(t,e)).next())});import{d9 as le,ao as _n,ar as Ye,as as gn,e as i,k as M,f as p,d as oe,r as Z,V as N,aG as vt,o as Re,F as Se,l as Ie,al as ne,c as D,I as Oe,u as n,B as ee,a3 as be,i as c,P as Ft,_ as pe,b as T,h as fe,C as Y,a8 as _t,H as yn,bf as bn,a7 as wn,a1 as ke,da as ht,w as y,bb as kn,aQ as qe,aC as xn,L as Nt,n as Pe,bh as $e,ai as We,j as nt,m as ue,E as se,R as Me,db as gt,dc as lt,a6 as yt,dd as De,T as Cn,ae as Ge,de as Fe,ap as Ke,aq as Xe,K as bt,df as ye,dg as Qe,dh as $n,di as at,aU as Ze,dj as st,dk as Sn,dl as Ut,aH as In,a as wt,dm as kt,dn as ft,dp as Dt,dq as Mn,dr as rt,ds as Pt,D as Je,U as Tn,p as Wt,q as Gt,am as Kt,N as Xt,O as Vn,Y as Ue,J as zn,G as Ln,X as Hn}from"./index-qI-8NwZF.js";import{d as An}from"./menu-_OwpKHc3.js";import{d as En,u as ze,a as xt,g as Ct,b as $t,t as On,c as Zn,e as Dn,f as Pn}from"./dark-SxwuKImD.js";import{d as Rn}from"./home-filled-ZzezfvKu.js";import{d as jn}from"./admin-line-8g4DVr6a.js";import{d as Bn}from"./git-branch-line-zmPAFode.js";import{u as Be}from"./app-38QH7WWD.js";import{m as qn}from"./index-uKKdWOxm.js";import{u as Fn}from"./epTheme-1-ujsmhE.js";import{u as Ee}from"./hooks-WhGxrRJZ.js";import{d as Ne}from"./check-f0nOH8pf.js";import{e as we}from"./mitt-y5r8hZta.js";import{d as Nn}from"./refresh-right-y-X3zYf8.js";import{d as Un}from"./arrow-right-s-line-xoI-mVSn.js";import{b as Jt}from"./back_top-qE4_eLIh.js";import{R as Rt}from"./index-XU6M-qor.js";const Wn={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"/>'},Gn={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"/>'},Kn={width:1024,height:1024,body:'<path fill="currentColor" d="M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64H224zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96z"/><path fill="currentColor" d="M384 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256z"/><path fill="currentColor" d="M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32zm160 416a64 64 0 1 0 0-128a64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256a128 128 0 0 1 0 256z"/><path fill="currentColor" d="M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32z"/>'},Xn={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"/>'},Jn={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"/>'},Yn={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"/>'},Qn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},eo={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},to={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"/>'},no={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"/>'},oo={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"/>'},Yt={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"/>'},ao={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"/>'},lo={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"/>'},Qt={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"/>'},so={width:24,height:24,body:'<path fill="currentColor" d="M4 8h16V5H4v3Zm10 11v-9h-4v9h4Zm2 0h4v-9h-4v9Zm-8 0v-9H4v9h4ZM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"/>'},ro={width:24,height:24,body:'<path fill="currentColor" d="M15 4H5v16h14V8h-4V4ZM3 2.992C3 2.444 3.447 2 3.998 2H16l5 5v13.992A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008V2.992ZM11 11h2v6h-2v-6Zm0-4h2v2h-2V7Z"/>'},io={width:24,height:24,body:'<path fill="currentColor" d="M8.586 17H3v-2h18v2h-5.586l3.243 3.243l-1.414 1.414L13 17.414V20h-2v-2.586l-4.243 4.243l-1.414-1.414L8.586 17ZM5 3h14a1 1 0 0 1 1 1v10H4V4a1 1 0 0 1 1-1Zm1 2v7h12V5H6Z"/>'};le("ubuntuFill",Wn);le("menu",An);le("edit",Gn);le("informationLine",En);le("setUp",Kn);le("terminalWindowLine",Xn);le("guide",Jn);le("homeFilled",Rn);le("card",Yn);le("listCheck",Qn);le("histogram",eo);le("ppt",to);le("checkboxCircleLine",no);le("flUser",jn);le("role",oo);le("setting",it);le("dept",Bn);le("search",Yt);le("lollipop",ao);le("monitor",lo);le("tag",Qt);le("table",so);le("info",ro);le("artboard",io);const co=_n({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 co(gn)}const uo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},ho=p("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),fo=[ho];function po(t,e){return i(),M("svg",uo,[...fo])}const en={render:po},mo=["onMouseenter"],vo={class:"result-item-title"},_o=oe({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:o}){const a=Z(),u=Z(),l=t,d=o,r=Ft(),_=N(()=>w=>({background:(w==null?void 0:w.path)===v.value?Fn().epThemeColor:"",color:w.path===v.value?"#fff":"",fontSize:w.path===v.value?"16px":"14px"})),v=N({get(){return l.value},set(w){d("update:value",w)}});function m(w){return ot(this,null,function*(){v.value=w.path})}function h(){d("enter")}function g(){u.value=window.innerHeight-window.innerHeight/10-140}vt(a,g);function b(w){var P;const L=(P=r==null?void 0:r.proxy)==null?void 0:P.$refs[`resultItemRef${w}`];if(!L)return 0;const A=L[0].offsetTop+128;return A>u.value?A-u.value:0}return Re(()=>{g()}),e({handleScroll:b}),(w,L)=>(i(),M("div",{ref_key:"resultRef",ref:a,class:"result"},[(i(!0),M(Se,null,Ie(w.options,(k,A)=>{var P,j,V;return i(),M("div",{key:k.path,ref_for:!0,ref:"resultItemRef"+A,class:"result-item dark:bg-[#1d1d1d]",style:ne(_.value(k)),onClick:h,onMouseenter:H=>m(k)},[(i(),D(Oe(n(Ee)((j=(P=k.meta)==null?void 0:P.icon)!=null?j:n(Qt))))),p("span",vo,ee(n(be)((V=k.meta)==null?void 0:V.title)),1),c(n(en))],44,mo)}),128))],512))}}),go=pe(_o,[["__scopeId","data-v-4fa8bd61"]]),yo={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"/>'},bo={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"/>'},wo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},ko=p("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),xo=[ko];function Co(t,e){return i(),M("svg",wo,[...xo])}const $o={render:Co},So={class:"search-footer text-[#333] dark:text-white"},Io={class:"search-footer-item"},Mo={class:"search-footer-item"},To={class:"search-footer-item"},Vo={key:0,class:"search-footer-total"},zo=oe({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:o}=ze();return(a,u)=>{const l=T("IconifyIconOffline");return i(),M("div",So,[p("span",Io,[c(n(en),{class:"icon"}),fe(" 确认 ")]),p("span",Mo,[c(l,{icon:n(yo),class:"icon"},null,8,["icon"]),c(l,{icon:n(bo),class:"icon"},null,8,["icon"]),fe(" 切换 ")]),p("span",To,[c(n($o),{class:"icon"}),fe(" 关闭 ")]),n(o)!=="mobile"&&e.total>0?(i(),M("p",Vo," 共"+ee(e.total)+"项 ",1)):Y("",!0)])}}}),Lo=pe(zo,[["__scopeId","data-v-6f31f47e"]]),Ho={class:"search-result-container"},Ao=oe({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:o}=ze(),a=e,u=t,l=_t(),{locale:d}=yn(),r=Z(""),_=Z(),v=Z(),m=Z(""),h=Z(null),g=bn([]),b=kn(A,300),w=N(()=>wn(ke().wholeMenus)),L=N({get(){return u.value},set(E){a("update:value",E)}});function k(E){const z=[];function K(x){x.forEach(U=>{z.push(U),U.children&&K(U.children)})}return K(E),z}function A(){var z;const E=k(w.value);g.value=E.filter(K=>{var x,U;return r.value?be((x=K.meta)==null?void 0:x.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())||d.value==="zh"&&!qe(qn(be((U=K.meta)==null?void 0:U.title).toLocaleLowerCase(),r.value.toLocaleLowerCase().trim())):!1}),((z=g.value)==null?void 0:z.length)>0?m.value=g.value[0].path:m.value=""}function P(){L.value=!1,setTimeout(()=>{g.value=[],r.value=""},200)}function j(E){const z=v.value.handleScroll(E);_.value.setScrollTop(z)}function V(){const{length:E}=g.value;if(E===0)return;const z=g.value.findIndex(K=>K.path===m.value);z===0?(m.value=g.value[E-1].path,j(g.value.length-1)):(m.value=g.value[z-1].path,j(z-1))}function H(){const{length:E}=g.value;if(E===0)return;const z=g.value.findIndex(K=>K.path===m.value);z+1===E?m.value=g.value[0].path:m.value=g.value[z+1].path,j(z+1)}function B(){const{length:E}=g.value;E===0||m.value===""||(l.push(m.value),P())}return ht("Enter",B),ht("ArrowUp",V),ht("ArrowDown",H),(E,z)=>{const K=T("IconifyIconOffline"),x=T("el-input"),U=T("el-empty"),X=T("el-scrollbar"),ve=T("el-dialog");return i(),D(ve,{modelValue:L.value,"onUpdate:modelValue":z[2]||(z[2]=ae=>L.value=ae),top:"5vh",class:"pure-search-dialog","show-close":!1,width:n(o)==="mobile"?"80vw":"40vw","before-close":P,style:{borderRadius:"6px"},"append-to-body":"",onOpened:z[3]||(z[3]=ae=>h.value.focus()),onClosed:z[4]||(z[4]=ae=>h.value.blur())},{footer:y(()=>[c(Lo,{total:g.value.length},null,8,["total"])]),default:y(()=>[c(x,{ref_key:"inputRef",ref:h,modelValue:r.value,"onUpdate:modelValue":z[0]||(z[0]=ae=>r.value=ae),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:n(b)},{prefix:y(()=>[c(K,{icon:n(Yt),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),p("div",Ho,[c(X,{ref_key:"scrollbarRef",ref:_,"max-height":"calc(90vh - 140px)"},{default:y(()=>[g.value.length===0?(i(),D(U,{key:0,description:"暂无搜索结果"})):(i(),D(go,{key:1,ref_key:"resultRef",ref:v,value:m.value,"onUpdate:value":z[1]||(z[1]=ae=>m.value=ae),options:g.value,onClick:B},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Eo=pe(Ao,[["__scopeId","data-v-b82d1ace"]]);function Oo(t=!1){const e=Z(t);function o(d){e.value=d}function a(){o(!0)}function u(){o(!1)}function l(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:u,toggle:l}}const It=oe({__name:"index",setup(t){const{bool:e,toggle:o}=Oo();function a(){o()}return(u,l)=>{const d=T("IconifyIconOffline");return i(),M("div",null,[p("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[c(d,{icon:"search"})]),c(n(Eo),{value:n(e),"onUpdate:value":l[0]||(l[0]=r=>xn(e)?e.value=r:null)},null,8,["value"])])}}}),jt=[{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"}]}],Zo={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Do={class:"notice-container-text"},Po={class:"notice-text-title text-[#000000d9] dark:text-white"},Ro={class:"notice-text-datetime text-[#00000073] dark:text-white"},jo=oe({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=Z(null),a=Z(!1),u=Z(null),l=Z(!1),{tooltipEffect:d}=ze(),r=Nt();function _(){Pe(()=>{var m,h;((m=o.value)==null?void 0:m.scrollWidth)>((h=o.value)==null?void 0:h.clientWidth)?a.value=!0:a.value=!1})}function v(m,h){const g=document.createElement("span");g.innerText=h,g.className="getDescriptionWidth",document.querySelector("body").appendChild(g);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,h)=>{var L,k;const g=T("el-avatar"),b=T("el-tooltip"),w=T("el-tag");return i(),M("div",Zo,[e.noticeItem.avatar?(i(),D(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),p("div",Do,[p("div",Po,[c(b,{"popper-class":"notice-title-popper",effect:n(d),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!n(r)},{default:y(()=>[p("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:_},ee(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(i(),D(w,{key:0,type:(k=e.noticeItem)==null?void 0:k.status,size:"small",class:"notice-title-extra"},{default:y(()=>{var A;return[fe(ee((A=e.noticeItem)==null?void 0:A.extra),1)]}),_:1},8,["type"])):Y("",!0)]),c(b,{"popper-class":"notice-title-popper",effect:n(d),disabled:!l.value,content:e.noticeItem.description,placement:"top-start"},{default:y(()=>[p("div",{ref_key:"descriptionRef",ref:u,class:"notice-text-description",onMouseover:h[0]||(h[0]=A=>v(A,e.noticeItem.description))},ee(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),p("div",Ro,ee(e.noticeItem.datetime),1)])])}}}),Bo=pe(jo,[["__scopeId","data-v-2a7dbc48"]]),qo={key:0},Fo=oe({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,a)=>{const u=T("el-empty");return e.list.length?(i(),M("div",qo,[(i(!0),M(Se,null,Ie(e.list,(l,d)=>(i(),D(Bo,{key:d,noticeItem:l},null,8,["noticeItem"]))),128))])):(i(),D(u,{key:1,description:"暂无消息"}))}}}),No={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"/>'},Uo={class:"dropdown-badge navbar-bg-hover select-none"},Wo={class:"header-notice-icon"},Go={key:1},Ko={class:"noticeList-container"},Xo=oe({__name:"index",setup(t){const e=Z(0),o=Z(jt),a=Z(jt[0].key);return o.value.map(u=>e.value+=u.list.length),(u,l)=>{const d=T("IconifyIconOffline"),r=T("el-badge"),_=T("el-empty"),v=T("el-scrollbar"),m=T("el-tab-pane"),h=T("el-tabs"),g=T("el-dropdown-menu"),b=T("el-dropdown");return i(),D(b,{trigger:"click",placement:"bottom-end"},{dropdown:y(()=>[c(g,null,{default:y(()=>[c(h,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=w=>a.value=w),stretch:!0,class:"dropdown-tabs",style:ne({width:o.value.length===0?"200px":"330px"})},{default:y(()=>[o.value.length===0?(i(),D(_,{key:0,description:"暂无消息","image-size":60})):(i(),M("span",Go,[(i(!0),M(Se,null,Ie(o.value,w=>(i(),D(m,{key:w.key,label:`${w.name}(${w.list.length})`,name:`${w.key}`},{default:y(()=>[c(v,{"max-height":"330px"},{default:y(()=>[p("div",Ko,[c(Fo,{list:w.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:y(()=>[p("span",Uo,[c(r,{value:e.value,max:99},{default:y(()=>[p("span",Wo,[c(d,{icon:n(No)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Mt=pe(Xo,[["__scopeId","data-v-33dc6db9"]]),Jo={key:0,class:"flex justify-center items-center"},pt=oe({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(o,a)=>e.extraIcon?(i(),M("div",Jo,[(i(),D(Oe(n(Ee)($e(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!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"/>'},Yo={key:0,class:"horizontal-header"},Qo={class:"select-none"},ea={class:"horizontal-header-right"},ta={class:"check-zh"},na={class:"check-en"},oa={class:"el-dropdown-link navbar-bg-hover select-none"},aa=["src"],la={key:0,class:"dark:text-white"},sa=["title"],ra=oe({__name:"mixNav",setup(t){const e=Z(),o=Z(null),{t:a,route:u,locale:l,translationCh:d,translationEn:r}=xt(e),{device:_,logout:v,onPanel:m,resolvePath:h,username:g,userAvatar:b,getDivStyle:w,avatarsStyle:L,getDropdownItemStyle:k,getDropdownItemClass:A}=ze();function P(j){var B,E,z;const V=ke().wholeMenus,H=gt(j,V)[0];o.value=qe((B=u.meta)==null?void 0:B.activePath)?(z=(E=lt(H,V))==null?void 0:E.children[0])==null?void 0:z.path:u.meta.activePath}return Re(()=>{P(u.path)}),Pe(()=>{var j;(j=e.value)==null||j.handleResize()}),We(()=>[u.path,ke().wholeMenus],()=>{P(u.path)}),(j,V)=>{const H=T("el-menu-item"),B=T("el-menu"),E=T("IconifyIconOffline"),z=T("el-dropdown-item"),K=T("el-dropdown-menu"),x=T("el-dropdown"),U=nt("loading");return n(_)!=="mobile"?ue((i(),M("div",Yo,[c(B,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":o.value},{default:y(()=>[(i(!0),M(Se,null,Ie(n(ke)().wholeMenus,X=>(i(),D(H,{key:X.path,index:n(h)(X)||X.redirect},{title:y(()=>[$e(X.meta.icon)?(i(),M("div",{key:0,class:se(["sub-menu-icon",X.meta.icon])},[(i(),D(Oe(n(Ee)(X.meta&&$e(X.meta.icon)))))],2)):Y("",!0),p("div",{style:ne(n(w))},[p("span",Qo,ee(n(be)(X.meta.title)),1),c(pt,{extraIcon:X.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),p("div",ea,[c(It,{id:"header-search"}),c(Mt,{id:"header-notice"}),c(x,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[c(K,{class:"translation"},{default:y(()=>[c(z,{style:ne(n(k)(n(l),"zh")),class:se(["dark:!text-white",n(A)(n(l),"zh")]),onClick:n(d)},{default:y(()=>[ue(p("span",ta,[c(E,{icon:n(Ne)},null,8,["icon"])],512),[[Me,n(l)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(z,{style:ne(n(k)(n(l),"en")),class:se(["dark:!text-white",n(A)(n(l),"en")]),onClick:n(r)},{default:y(()=>[ue(p("span",na,[c(E,{icon:n(Ne)},null,8,["icon"])],512),[[Me,n(l)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[c(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(x,{trigger:"click"},{dropdown:y(()=>[c(K,{class:"logout"},{default:y(()=>[c(z,{onClick:n(v)},{default:y(()=>[c(E,{icon:n(Tt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ee(n(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[p("span",oa,[p("img",{src:n(b),style:ne(n(L))},null,12,aa),n(g)?(i(),M("p",la,ee(n(g)),1)):Y("",!0)])]),_:1}),p("span",{class:"set-icon navbar-bg-hover",title:n(a)("buttons.hssystemSet"),onClick:V[0]||(V[0]=(...X)=>n(m)&&n(m)(...X))},[c(E,{icon:n(it)},null,8,["icon"])],8,sa)])])),[[U,n(ke)().wholeMenus.length===0]]):Y("",!0)}}}),ia=pe(ra,[["__scopeId","data-v-63778524"]]),ca=["onClick"],ua=oe({__name:"breadCrumb",setup(t){const e=yt(),o=Z([]),a=_t(),u=a.options.routes,l=De().multiTags,d=()=>{let _;Object.keys(e.query).length>0?l.forEach(h=>{Fe(e.query,h==null?void 0:h.query)&&(_=$e(h))}):Object.keys(e.params).length>0?l.forEach(h=>{Fe(e.params,h==null?void 0:h.params)&&(_=$e(h))}):_=lt(a.currentRoute.value.path,u);const v=gt(a.currentRoute.value.name,u,"name"),m=[];v.forEach(h=>{h!=="/"&&m.push(lt(h,u))}),m.push(_),m.forEach((h,g)=>{_!=null&&_.query||_!=null&&_.params||h!=null&&h.children&&h.children.forEach(b=>{var w,L;((w=b==null?void 0:b.meta)==null?void 0:w.title)===((L=h==null?void 0:h.meta)==null?void 0:L.title)&&m.splice(g,1)})}),o.value=m.filter(h=>(h==null?void 0:h.meta)&&(h==null?void 0:h.meta.title)!==!1)},r=_=>{const{redirect:v,name:m,path:h}=_;v?a.push(v):m?_.query?a.push({name:m,query:_.query}):_.params?a.push({name:m,params:_.params}):a.push({name:m}):a.push({path:h})};return Re(()=>{d()}),We(()=>e.path,()=>{d()},{deep:!0}),(_,v)=>{const m=T("el-breadcrumb-item"),h=T("el-breadcrumb");return i(),D(h,{class:"!leading-[50px] select-none",separator:"/"},{default:y(()=>[c(Cn,{name:"breadcrumb"},{default:y(()=>[(i(!0),M(Se,null,Ie(o.value,g=>(i(),D(m,{key:g.path,class:"!inline !items-stretch"},{default:y(()=>[p("a",{onClick:Ge(b=>r(g),["prevent"])},ee(n(be)(g.meta.title)),9,ca)]),_:2},1024))),128))]),_:1})]),_:1})}}}),tn={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"/>'},da={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"/>'},ha=["title"],fa=oe({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=e,u=()=>{a("toggleClick")};return(l,d)=>{const r=T("IconifyIconOffline");return i(),M("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:u},[c(r,{icon:o.isActive?n(tn):n(da),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,ha)}}}),pa={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},ma={key:3,class:"vertical-header-right"},va={class:"check-en"},_a={class:"el-dropdown-link navbar-bg-hover select-none"},ga=["src"],ya={key:0,class:"dark:text-white"},ba=["title"],wa=oe({__name:"navbar",setup(t){const{layout:e,device:o,logout:a,onPanel:u,pureApp:l,username:d,userAvatar:r,avatarsStyle:_,toggleSideBar:v,getDropdownItemStyle:m,getDropdownItemClass:h}=ze(),{t:g,locale:b,translationCh:w,translationEn:L}=xt();return(k,A)=>{const P=T("IconifyIconOffline"),j=T("el-dropdown-item"),V=T("el-dropdown-menu"),H=T("el-dropdown");return i(),M("div",pa,[n(o)==="mobile"?(i(),D(fa,{key:0,class:"hamburger-container","is-active":n(l).sidebar.opened,onToggleClick:n(v)},null,8,["is-active","onToggleClick"])):Y("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(i(),D(ua,{key:1,class:"breadcrumb-container"})):Y("",!0),n(e)==="mix"?(i(),D(ia,{key:2})):Y("",!0),n(e)==="vertical"?(i(),M("div",ma,[c(It,{id:"header-search"}),c(Mt,{id:"header-notice"}),c(H,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[c(V,{class:"translation"},{default:y(()=>[c(j,{style:ne(n(m)(n(b),"zh")),class:se(["dark:!text-white",n(h)(n(b),"zh")]),onClick:n(w)},{default:y(()=>[ue(c(P,{class:"check-zh",icon:n(Ne)},null,8,["icon"]),[[Me,n(b)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(j,{style:ne(n(m)(n(b),"en")),class:se(["dark:!text-white",n(h)(n(b),"en")]),onClick:n(L)},{default:y(()=>[ue(p("span",va,[c(P,{icon:n(Ne)},null,8,["icon"])],512),[[Me,n(b)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[c(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(H,{trigger:"click"},{dropdown:y(()=>[c(V,{class:"logout"},{default:y(()=>[c(j,{onClick:n(a)},{default:y(()=>[c(P,{icon:n(Tt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ee(n(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[p("span",_a,[p("img",{src:n(r),style:ne(n(_))},null,12,ga),n(d)?(i(),M("p",ya,ee(n(d)),1)):Y("",!0)])]),_:1}),p("span",{class:"set-icon navbar-bg-hover",title:n(g)("buttons.hssystemSet"),onClick:A[0]||(A[0]=(...B)=>n(u)&&n(u)(...B))},[c(P,{icon:n(it)},null,8,["icon"])],8,ba)])):Y("",!0)])}}}),ka=pe(wa,[["__scopeId","data-v-0617a10c"]]),xa={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},Ca={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"/>'},$a={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"/>'},Sa={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"/>'},nn={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 Ia(){var z,K;const t=yt(),e=_t(),o=Ft(),a=St(),u=Z(0),l=Z(0),d=Z(0),r=Z(!1),_=Z(-1),v=Z({}),m=Z(((z=Ke().getItem(`${Xe()}configure`))==null?void 0:z.showModel)||"smart"),h=(K=Z(Ke().getItem(`${Xe()}configure`).hideTabs))!=null?K:Z("false"),g=N(()=>De().multiTags),b=bt([{icon:Nn,text:ye("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:nn,text:ye("buttons.hscloseCurrentTab"),divided:!1,disabled:!(g.value.length>1),show:!0},{icon:Sa,text:ye("buttons.hscloseLeftTabs"),divided:!0,disabled:!(g.value.length>1),show:!0},{icon:$a,text:ye("buttons.hscloseRightTabs"),divided:!1,disabled:!(g.value.length>1),show:!0},{icon:Ca,text:ye("buttons.hscloseOtherTabs"),divided:!0,disabled:!(g.value.length>2),show:!0},{icon:xa,text:ye("buttons.hscloseAllTabs"),divided:!1,disabled:!(g.value.length>1),show:!0},{icon:Qe,text:ye("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Qe,text:ye("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function w(x,U,X){var ve,ae;return $n((ve=t==null?void 0:t.meta)==null?void 0:ve.showLink)&&((ae=t==null?void 0:t.meta)==null?void 0:ae.showLink)===!1?Object.keys(t.query).length>0?Fe(t.query,x.query)?U:X:Fe(t.params,x.params)?U:X:t.path===x.path?U:X}const L=N(()=>(x,U)=>{if(U!==0)return w(x,!0,!1)}),k=N(()=>x=>w(x,"is-active","")),A=N(()=>x=>w(x,"schedule-active","")),P=N(()=>({transform:`translateX(${d.value}px)`})),j=N(()=>({left:l.value+"px",top:u.value+"px"})),V=()=>{r.value=!1};function H(x){if(x&&(_.value=x),n(m)==="smart"){if(at(o.refs["schedule"+x][0],"schedule-active"))return;Ze(!0,"schedule-in",o.refs["schedule"+x][0]),Ze(!1,"schedule-out",o.refs["schedule"+x][0])}else{if(at(o.refs["dynamic"+x][0],"is-active"))return;Ze(!0,"card-in",o.refs["dynamic"+x][0]),Ze(!1,"card-out",o.refs["dynamic"+x][0])}}function B(x){if(_.value=-1,n(m)==="smart"){if(at(o.refs["schedule"+x][0],"schedule-active"))return;Ze(!1,"schedule-in",o.refs["schedule"+x][0]),Ze(!0,"schedule-out",o.refs["schedule"+x][0])}else{if(at(o.refs["dynamic"+x][0],"is-active"))return;Ze(!1,"card-in",o.refs["dynamic"+x][0]),Ze(!0,"card-out",o.refs["dynamic"+x][0])}}function E(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Re(()=>{if(!m.value){const x=Ke().getItem(`${Xe()}configure`);x.showModel="card",Ke().setItem(`${Xe()}configure`,x)}}),{route:t,router:e,visible:r,showTags:h,instance:o,multiTags:g,showModel:m,tagsViews:b,buttonTop:u,buttonLeft:l,translateX:d,pureSetting:a,activeIndex:_,getTabStyle:P,iconIsActive:L,linkIsActive:k,currentSelect:v,scheduleIsActive:A,getContextMenuStyle:j,$t:ye,closeMenu:V,onMounted:Re,onMouseenter:H,onMouseleave:B,transformI18n:be,onContentFullScreen:E}}const Ma={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"/>'},Ta={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"/>'},Va={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 za={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 La={class:"arrow-left"},Ha=["onContextmenu","onMouseenter","onMouseleave","onClick"],Aa={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},Ea=["onClick"],Oa={class:"arrow-right"},Za=["onClick"],Da={class:"arrow-down"},Pa=oe({__name:"index",setup(t){var Lt;const{route:e,router:o,visible:a,showTags:u,instance:l,multiTags:d,tagsViews:r,buttonTop:_,buttonLeft:v,showModel:m,translateX:h,pureSetting:g,activeIndex:b,getTabStyle:w,iconIsActive:L,linkIsActive:k,currentSelect:A,scheduleIsActive:P,getContextMenuStyle:j,closeMenu:V,onMounted:H,onMouseenter:B,onMouseleave:E,transformI18n:z,onContentFullScreen:K}=Ia(),x=Z(),U=Z(),X=Z(),ve=Z(),ae=Z(!1),Le=(Lt=st())==null?void 0:Lt.path,{VITE_HIDE_HOME:je}=za,{isFullscreen:He,toggle:s}=Sn(),f=()=>ot(this,null,function*(){yield Pe();const I=d.value.findIndex(O=>qe(e.query)?qe(e.params)?e.path===O.path:Fe(e.params,O.params):Fe(e.query,O.query));$(I)}),$=I=>ot(this,null,function*(){var ce,Ce;yield Pe();const O=10;if(!l.refs["dynamic"+I])return;const R=l.refs["dynamic"+I][0],G=R==null?void 0:R.offsetLeft,he=R==null?void 0:R.offsetWidth,q=X.value?(ce=X.value)==null?void 0:ce.offsetWidth:0,F=x.value?(Ce=x.value)==null?void 0:Ce.offsetWidth:0;q<=F?ae.value=!0:ae.value=!1,F<q||G===0?h.value=0:G<-h.value?h.value=-G+O:G>-h.value&&G+he<-h.value+q?h.value=Math.min(0,q-he-G-O):h.value=-(G-(q-O-he))}),J=I=>{var G;const O=X.value?(G=X.value)==null?void 0:G.offsetWidth:0,R=x.value?x.value.offsetWidth:0;I>0?h.value=Math.min(0,h.value+I):O<R?h.value>=-(R-O)&&(h.value=Math.max(h.value+I,O-R)):h.value=0};function re(I){const O=d.value.some(G=>G.path===I);function R(G,he){O||G.forEach(q=>{q.path===he?De().handleTags("push",{path:he,meta:q.meta,name:q.name}):q.children&&q.children.length>0&&R(q.children,he)})}R(o.options.routes,I)}function te(){const{fullPath:I,query:O}=n(e);o.replace({path:"/redirect"+I,query:O}),ft(e,"refresh")}function C(I,O,R){var F,ce,Ce,Ht;const G=d.value.findIndex(Te=>{if(Te.query){if(Te.path===I.path)return Te.query===I.query}else if(Te.params){if(Te.path===I.path)return Te.params===I.params}else return Te.path===I.path}),he=(Te,un,dn)=>{dn?De().handleTags("equal",[je==="false"?Mn[0]:$e(st()),I]):De().handleTags("splice","",{startIndex:Te,length:un}),f()};R==="other"?he(1,1,!0):R==="left"?he(1,G-1):R==="right"?he(G+1,d.value.length):he(G,1);const q=De().handleTags("slice");if(O===e.path){if(R==="left")return;(F=q[0])!=null&&F.query?o.push({name:q[0].name,query:q[0].query}):(ce=q[0])!=null&&ce.params?o.push({name:q[0].name,params:q[0].params}):o.push({path:q[0].path})}else{if(!d.value.length||d.value.some(Te=>Te.path===e.path))return;(Ce=q[0])!=null&&Ce.query?o.push({name:q[0].name,query:q[0].query}):(Ht=q[0])!=null&&Ht.params?o.push({name:q[0].name,params:q[0].params}):o.push({path:q[0].path})}}function S(I,O){C(I,I.path,O),ft(e)}function Q(I,O,R){if(O&&O.disabled)return;let G;switch(R?G={path:R.path,meta:R.meta,name:R.name,query:R==null?void 0:R.query,params:R==null?void 0:R.params}:G={path:e.path,meta:e.meta},I){case 0:te();break;case 1:S(G);break;case 2:S(G,"left");break;case 3:S(G,"right");break;case 4:S(G,"other");break;case 5:De().handleTags("splice","",{startIndex:1,length:d.value.length}),o.push(Le),ft(e);break;case 6:s(),setTimeout(()=>{He.value?(r[6].icon=Dt,r[6].text=ye("buttons.hswholeExitFullScreen")):(r[6].icon=Qe,r[6].text=ye("buttons.hswholeFullScreen"))},100);break;case 7:K(),setTimeout(()=>{g.hiddenSideBar?(r[7].icon=Dt,r[7].text=ye("buttons.hscontentExitFullScreen")):(r[7].icon=Qe,r[7].text=ye("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Ae(e.fullPath,e.query)})}function ge(I){const{key:O,item:R}=I;Q(O,R)}function _e(I,O){V(),Q(I,O,A.value)}function xe(I){Array.of(1,2,3,4,5).forEach(O=>{r[O].show=I})}function W(I){Array.of(1,2,3,4,5).forEach(O=>{r[O].disabled=I})}function Ae(I,O={},R=!1){const G=d.value,he=d.value.length;let q=-1;qe(O)?q=G.findIndex(F=>F.path===I):q=G.findIndex(F=>Fe(F.query,O)),xe(!0),R&&(r[0].show=!0),q===1&&he!==2?(r[2].show=!1,Array.of(1,3,4,5).forEach(F=>{r[F].disabled=!1}),r[2].disabled=!0):q===1&&he===2?(W(!1),Array.of(2,3,4).forEach(F=>{r[F].show=!1,r[F].disabled=!0})):he-1===q&&q!==0?(r[3].show=!1,Array.of(1,2,4,5).forEach(F=>{r[F].disabled=!1}),r[3].disabled=!0):q===0||I===`/redirect${Le}`?W(!0):W(!1)}function zt(I,O){V(),I.path===Le?(xe(!1),r[0].show=!0):e.path!==I.path&&e.name!==I.name?(r[0].show=!1,Ae(I.path,I.query)):d.value.length===2&&e.path!==I.path?(xe(!0),r[4].show=!1):e.path===I.path&&Ae(I.path,I.query,!0),A.value=I;const R=140,G=n(U).getBoundingClientRect().left,q=n(U).offsetWidth-R,F=O.clientX-G+5;F>q?v.value=q:v.value=F,St().hiddenSideBar?_.value=O.clientY:_.value=O.clientY-40,Pe(()=>{a.value=!0})}function cn(I){const{name:O,path:R}=I;O?I.query?o.push({name:O,query:I.query}):I.params?o.push({name:O,params:I.params}):o.push({name:O}):o.push({path:R})}return Ut(ve,V,{detectIframe:!0}),We(e,()=>{b.value=-1,f()}),We(He,()=>{r[6].icon=Qe,r[6].text=ye("buttons.hswholeFullScreen")}),H(()=>{l&&(Ae(e.fullPath),we.on("tagViewsChange",I=>{n(u)!==I&&(u.value=I)}),we.on("tagViewsShowModel",I=>{m.value=I}),we.on("changLayoutRoute",I=>{re(I),setTimeout(()=>{Ae(I)})}),vt(X,f),In().then(()=>f()))}),wt(()=>{we.off("tagViewsChange"),we.off("tagViewsShowModel"),we.off("changLayoutRoute")}),(I,O)=>{const R=T("IconifyIconOffline"),G=T("el-dropdown-item"),he=T("el-dropdown-menu"),q=T("el-dropdown");return n(u)?Y("",!0):(i(),M("div",{key:0,ref_key:"containerDom",ref:U,class:"tags-view"},[ue(p("span",La,[c(R,{icon:n(Ta),onClick:O[0]||(O[0]=F=>J(200))},null,8,["icon"])],512),[[Me,ae.value]]),p("div",{ref_key:"scrollbarDom",ref:X,class:"scroll-container"},[p("div",{ref_key:"tabDom",ref:x,class:"tab select-none",style:ne(n(w))},[(i(!0),M(Se,null,Ie(n(d),(F,ce)=>(i(),M("div",{ref_for:!0,ref:"dynamic"+ce,key:ce,class:se(["scroll-item is-closable",n(k)(F)]),onContextmenu:Ge(Ce=>zt(F,Ce),["prevent"]),onMouseenter:Ge(Ce=>n(B)(ce),["prevent"]),onMouseleave:Ge(Ce=>n(E)(ce),["prevent"]),onClick:Ce=>cn(F)},[p("span",Aa,ee(n(z)(F.meta.title)),1),n(L)(F,ce)||ce===n(b)&&ce!==0?(i(),M("span",{key:0,class:"el-icon-close",onClick:Ge(Ce=>S(F),["stop"])},[c(R,{icon:n(Va)},null,8,["icon"])],8,Ea)):Y("",!0),n(m)!=="card"?(i(),M("div",{key:1,ref_for:!0,ref:"schedule"+ce,class:se([n(P)(F)])},null,2)):Y("",!0)],42,Ha))),128))],4)],512),ue(p("span",Oa,[c(R,{icon:n(Un),onClick:O[1]||(O[1]=F=>J(-200))},null,8,["icon"])],512),[[Me,ae.value]]),c(kt,{name:"el-zoom-in-top"},{default:y(()=>[ue((i(),M("ul",{ref_key:"contextmenuRef",ref:ve,key:Math.random(),style:ne(n(j)),class:"contextmenu"},[(i(!0),M(Se,null,Ie(n(r).slice(0,6),(F,ce)=>(i(),M("div",{key:ce,style:{display:"flex","align-items":"center"}},[F.show?(i(),M("li",{key:0,onClick:Ce=>_e(ce,F)},[c(R,{icon:F.icon},null,8,["icon"]),fe(" "+ee(n(z)(F.text)),1)],8,Za)):Y("",!0)]))),128))],4)),[[Me,n(a)]])]),_:1}),c(q,{trigger:"click",placement:"bottom-end",onCommand:ge},{dropdown:y(()=>[c(he,null,{default:y(()=>[(i(!0),M(Se,null,Ie(n(r),(F,ce)=>(i(),D(G,{key:ce,command:{key:ce,item:F},divided:F.divided,disabled:F.disabled},{default:y(()=>[c(R,{icon:F.icon},null,8,["icon"]),fe(" "+ee(n(z)(F.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:y(()=>[p("span",Da,[c(R,{icon:n(Ma),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),Ra=pe(Pa,[["__scopeId","data-v-6f8259a2"]]),ja={class:"layout-footer"},Ba={class:"ml-1 hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},qa=oe({__name:"index",setup(t){const e=Ye("Title");return(o,a)=>(i(),M("footer",ja,[fe(" MIT © 2020-PRESENT "),p("a",Ba,ee(n(e)),1)]))}}),Bt=pe(qa,[["__scopeId","data-v-7e9cc56a"]]),Fa={class:"grow"},Na={key:1,class:"grow"},Ua=oe({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=rt(),u=N(()=>a==null?void 0:a.KeepAlive),l=N(()=>h=>h.meta.transition),d=N(()=>o==null?void 0:o.configure.hideTabs),r=N(()=>o==null?void 0:o.configure.hideFooter),_=N(()=>(o==null?void 0:o.layout.layout)==="vertical"),v=N(()=>[d.value&&_?"padding-top: 48px;":"",!d.value&&_?"padding-top: 85px;":"",d.value&&!_.value?"padding-top: 48px;":"",!d.value&&!_.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${d.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),m=oe({props:{route:{type:void 0,required:!0}},render(){var w,L,k;const h=((w=l.value(this.route))==null?void 0:w.name)||"fade-transform",g=(L=l.value(this.route))==null?void 0:L.enterTransition,b=(k=l.value(this.route))==null?void 0:k.leaveTransition;return Je(kt,{name:g?"pure-classes-transition":h,enterActiveClass:g?`animate__animated ${g}`:void 0,leaveActiveClass:b?`animate__animated ${b}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(h,g)=>{const b=T("el-backtop"),w=T("el-scrollbar"),L=T("router-view");return i(),M("section",{class:se([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ne(v.value)},[c(L,null,{default:y(({Component:k,route:A})=>[e.fixedHeader?(i(),D(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:y(()=>[c(b,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:y(()=>[c(n(Jt))]),_:1}),p("div",Fa,[c(n(m),{route:A},{default:y(()=>[u.value?(i(),D(Pt,{key:0,include:n(ke)().cachePageList},[(i(),D(Oe(k),{key:A.fullPath,class:"main-content"}))],1032,["include"])):(i(),D(Oe(k),{key:A.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),r.value?Y("",!0):(i(),D(Bt,{key:0}))]),_:2},1024)):(i(),M("div",Na,[c(n(m),{route:A},{default:y(()=>[u.value?(i(),D(Pt,{key:0,include:n(ke)().cachePageList},[(i(),D(Oe(k),{key:A.fullPath,class:"main-content"}))],1032,["include"])):(i(),D(Oe(k),{key:A.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1}),!r.value&&!e.fixedHeader?(i(),D(Bt,{key:0})):Y("",!0)],6)}}}),qt=pe(Ua,[["__scopeId","data-v-14e5d547"]]),on=t=>(Wt("data-v-fbc6ff94"),t=t(),Gt(),t),Wa=on(()=>p("div",{class:"right-panel-background"},null,-1)),Ga={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Ka=on(()=>p("h4",{class:"dark:text-white"},"项目配置",-1)),Xa={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Ja=oe({__name:"index",setup(t){const e=Z(null),o=Z(!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:u}=$t();return Ut(e,l=>{l.clientX>e.value.offsetLeft||(o.value=!1)}),Re(()=>{we.on("openPanel",()=>{o.value=!0})}),wt(()=>{we.off("openPanel")}),(l,d)=>{const r=T("IconifyIconOffline"),_=T("el-scrollbar"),v=T("el-button"),m=nt("tippy");return i(),M("div",{class:se([{show:o.value},"right-panel-container"])},[Wa,p("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[p("div",Ga,[Ka,ue((i(),M("span",{class:se(a.value)},[c(r,{class:"dark:text-white",width:"20px",height:"20px",icon:n(nn),onClick:d[0]||(d[0]=h=>o.value=!o.value)},null,8,["icon"])],2)),[[m,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),c(_,null,{default:y(()=>[Tn(l.$slots,"default",{},void 0,!0)]),_:3}),p("div",Xa,[ue((i(),D(v,{type:"danger",text:"",bg:"",onClick:n(u)},{default:y(()=>[fe(" 清空缓存 ")]),_:1},8,["onClick"])),[[m,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Ya=pe(Ja,[["__scopeId","data-v-fbc6ff94"]]),Qa={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},el=p("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),tl=p("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),nl=[el,tl];function ol(t,e){return i(),M("svg",Qa,[...nl])}const al={render:ol},me=t=>(Wt("data-v-3586024f"),t=t(),Gt(),t),ll={class:"p-6"},sl=me(()=>p("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),rl=me(()=>p("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),il={class:"theme-color"},cl=["onClick"],ul=me(()=>p("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),dl={class:"pure-theme"},hl=me(()=>p("div",null,null,-1)),fl=me(()=>p("div",null,null,-1)),pl=[hl,fl],ml=me(()=>p("div",null,null,-1)),vl=me(()=>p("div",null,null,-1)),_l=[ml,vl],gl=me(()=>p("div",null,null,-1)),yl=me(()=>p("div",null,null,-1)),bl=[gl,yl],wl=me(()=>p("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),kl=me(()=>p("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),xl={class:"setting"},Cl=me(()=>p("span",{class:"dark:text-white"},"灰色模式",-1)),$l=me(()=>p("span",{class:"dark:text-white"},"色弱模式",-1)),Sl=me(()=>p("span",{class:"dark:text-white"},"隐藏标签页",-1)),Il=me(()=>p("span",{class:"dark:text-white"},"隐藏页脚",-1)),Ml=me(()=>p("span",{class:"dark:text-white"},"Logo",-1)),Tl=me(()=>p("span",{class:"dark:text-white"},"页签持久化",-1)),Vl=oe({__name:"index",setup(t){var $,J,re,te;const{device:e}=ze(),{isDark:o}=Kt(),{$storage:a}=rt(),u=Z(),l=Z(),d=Z(),{dataTheme:r,overallStyle:_,layoutTheme:v,themeColors:m,toggleClass:h,dataThemeChange:g,setLayoutThemeColor:b}=$t();if(n(v)){const C=n(v).layout,S=n(v).theme;On({scopeName:`layout-theme-${S}`}),Le(C)}const w=Z((J=($=a.configure)==null?void 0:$.showModel)!=null?J:"smart"),L=Z((te=(re=a.configure)==null?void 0:re.showLogo)!=null?te:!0),k=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}),A=N(()=>C=>({background:C})),P=N(()=>C=>!(C==="light"&&o.value));function j(C,S){const Q=a.configure;Q[C]=S,a.configure=Q}const V=C=>{h(k.greyVal,"html-grey",document.querySelector("html")),j("grey",C)},H=C=>{h(k.weakVal,"html-weakness",document.querySelector("html")),j("weak",C)},B=()=>{const C=k.tabsVal;j("hideTabs",C),we.emit("tagViewsChange",C)},E=()=>{const C=k.hideFooter;j("hideFooter",C)},z=()=>{const C=k.multiTagsCache;j("multiTagsCache",C),De().multiTagsCacheChange(C)};function K({option:C}){const{value:S}=C;w.value=S,j("showModel",S),we.emit("tagViewsShowModel",S)}function x(){n(L)?j("showLogo",!0):j("showLogo",!1),we.emit("logoChange",n(L))}function U(C){C.forEach(S=>{h(!1,"is-select",n(S))})}const X=N(()=>C=>C===v.value.theme&&v.value.theme!=="light"?"#fff":C===v.value.theme&&v.value.theme==="light"?"#1d2b45":"transparent"),ve=N(()=>[{label:"浅色",icon:Zn,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"深色",icon:Dn,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"自动",icon:al,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:o.value?"#fff":"#000"}}]),ae=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function Le(C){var S,Q,ge,_e,xe;v.value.layout=C,window.document.body.setAttribute("layout",C),a.layout={layout:C,theme:v.value.theme,darkMode:(S=a.layout)==null?void 0:S.darkMode,sidebarStatus:(Q=a.layout)==null?void 0:Q.sidebarStatus,epThemeColor:(ge=a.layout)==null?void 0:ge.epThemeColor,themeColor:(_e=a.layout)==null?void 0:_e.themeColor,overallStyle:(xe=a.layout)==null?void 0:xe.overallStyle},Be().setLayout(C)}We(a,({layout:C})=>{switch(C.layout){case"vertical":h(!0,"is-select",n(l)),Ue(U([d]),50),Ue(U([u]),50);break;case"horizontal":h(!0,"is-select",n(d)),Ue(U([l]),50),Ue(U([u]),50);break;case"mix":h(!0,"is-select",n(u)),Ue(U([l]),50),Ue(U([d]),50);break}});const je=window.matchMedia("(prefers-color-scheme: dark)");function He(){_.value==="system"&&(je.matches?r.value=!0:r.value=!1,g(_.value))}function s(){je.removeEventListener("change",He)}function f(){He(),s(),je.addEventListener("change",He)}return Xt(()=>{Pe(()=>{var C,S;f(),k.greyVal&&((C=document.querySelector("html"))==null||C.setAttribute("class","html-grey")),k.weakVal&&((S=document.querySelector("html"))==null||S.setAttribute("class","html-weakness")),k.tabsVal&&B(),k.hideFooter&&E()})}),Vn(()=>s),(C,S)=>{const Q=T("IconifyIconOffline"),ge=T("el-icon"),_e=T("el-switch"),xe=nt("tippy");return i(),D(Ya,null,{default:y(()=>[p("div",ll,[sl,c(n(Rt),{class:"select-none",modelValue:n(_)==="system"?2:n(r)?1:0,options:ve.value,onChange:S[0]||(S[0]=W=>{W.index===1&&W.index!==2?r.value=!0:r.value=!1,_.value=W.option.theme,n(g)(W.option.theme),W.index===2&&f()})},null,8,["modelValue","options"]),rl,p("ul",il,[(i(!0),M(Se,null,Ie(n(m),(W,Ae)=>ue((i(),M("li",{key:Ae,style:ne(A.value(W.color)),onClick:zt=>n(b)(W.themeColor)},[c(ge,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:X.value(W.themeColor)},{default:y(()=>[c(Q,{icon:n(Ne)},null,8,["icon"])]),_:2},1032,["color"])],12,cl)),[[Me,P.value(W.themeColor)]])),128))]),ul,p("ul",dl,[ue((i(),M("li",{ref_key:"verticalRef",ref:l,class:se(n(v).layout==="vertical"?"is-select":""),onClick:S[1]||(S[1]=W=>Le("vertical"))},pl,2)),[[xe,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),n(e)!=="mobile"?ue((i(),M("li",{key:0,ref_key:"horizontalRef",ref:d,class:se(n(v).layout==="horizontal"?"is-select":""),onClick:S[2]||(S[2]=W=>Le("horizontal"))},_l,2)),[[xe,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):Y("",!0),n(e)!=="mobile"?ue((i(),M("li",{key:1,ref_key:"mixRef",ref:u,class:se(n(v).layout==="mix"?"is-select":""),onClick:S[3]||(S[3]=W=>Le("mix"))},bl,2)),[[xe,{content:"混合菜单,灵活多变",zIndex:41e3}]]):Y("",!0)]),wl,c(n(Rt),{class:"select-none",modelValue:w.value==="smart"?0:1,options:ae,onChange:K},null,8,["modelValue"]),kl,p("ul",xl,[p("li",null,[Cl,c(_e,{modelValue:k.greyVal,"onUpdate:modelValue":S[4]||(S[4]=W=>k.greyVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:V},null,8,["modelValue"])]),p("li",null,[$l,c(_e,{modelValue:k.weakVal,"onUpdate:modelValue":S[5]||(S[5]=W=>k.weakVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:H},null,8,["modelValue"])]),p("li",null,[Sl,c(_e,{modelValue:k.tabsVal,"onUpdate:modelValue":S[6]||(S[6]=W=>k.tabsVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),p("li",null,[Il,c(_e,{modelValue:k.hideFooter,"onUpdate:modelValue":S[7]||(S[7]=W=>k.hideFooter=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:E},null,8,["modelValue"])]),p("li",null,[Ml,c(_e,{modelValue:L.value,"onUpdate:modelValue":S[8]||(S[8]=W=>L.value=W),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:x},null,8,["modelValue"])]),p("li",null,[Tl,c(_e,{modelValue:k.multiTagsCache,"onUpdate:modelValue":S[9]||(S[9]=W=>k.multiTagsCache=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:z},null,8,["modelValue"])])])])]),_:1})}}}),zl=pe(Vl,[["__scopeId","data-v-3586024f"]]),Ll=["src"],Hl={class:"sidebar-title"},Al=["src"],El={class:"sidebar-title"},Ol=oe({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o,getLogo:a}=ze();return(u,l)=>{const d=T("router-link");return i(),M("div",{class:se(["sidebar-logo-container",{collapses:e.collapse}])},[c(kt,{name:"sidebarLogoFade"},{default:y(()=>{var r,_,v,m;return[e.collapse?(i(),D(d,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:(_=(r=n(st)())==null?void 0:r.path)!=null?_:"/"},{default:y(()=>[p("img",{src:n(a)(),alt:"logo"},null,8,Ll),p("span",Hl,ee(n(o)),1)]),_:1},8,["title","to"])):(i(),D(d,{key:"expand",title:n(o),class:"sidebar-logo-link",to:(m=(v=n(st)())==null?void 0:v.path)!=null?m:"/"},{default:y(()=>[p("img",{src:n(a)(),alt:"logo"},null,8,Al),p("span",El,ee(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Zl=pe(Ol,[["__scopeId","data-v-8d7f2c36"]]);var tt={exports:{}},an={},Dl=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 Pl=mt.exports;(function(t){var e={},o=/%[sdj%]/g;t.format=function(s){if(!V(s)){for(var f=[],$=0;$<arguments.length;$++)f.push(l(arguments[$]));return f.join(" ")}for(var $=1,J=arguments,re=J.length,te=String(s).replace(o,function(S){if(S==="%%")return"%";if($>=re)return S;switch(S){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch(Q){return"[Circular]"}default:return S}}),C=J[$];$<re;C=J[++$])A(C)||!z(C)?te+=" "+C:te+=" "+l(C);return te},t.deprecate=function(s,f){if(B(zn.process))return function(){return t.deprecate(s,f).apply(this,arguments)};if(process.noDeprecation===!0)return s;var $=!1;function J(){if(!$){if(process.throwDeprecation)throw new Error(f);process.traceDeprecation?console.trace(f):console.error(f),$=!0}return s.apply(this,arguments)}return J};var a={},u;t.debuglog=function(s){if(B(u)&&(u=e.NODE_DEBUG||""),s=s.toUpperCase(),!a[s])if(new RegExp("\\b"+s+"\\b","i").test(u)){var f=process.pid;a[s]=function(){var $=t.format.apply(t,arguments);console.error("%s %d: %s",s,f,$)}}else a[s]=function(){};return a[s]};function l(s,f){var $={seen:[],stylize:r};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),k(f)?$.showHidden=f:f&&t._extend($,f),B($.showHidden)&&($.showHidden=!1),B($.depth)&&($.depth=2),B($.colors)&&($.colors=!1),B($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=d),v($,s,$.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 d(s,f){var $=l.styles[f];return $?"\x1B["+l.colors[$][0]+"m"+s+"\x1B["+l.colors[$][1]+"m":s}function r(s,f){return s}function _(s){var f={};return s.forEach(function($,J){f[$]=!0}),f}function v(s,f,$){if(s.customInspect&&f&&U(f.inspect)&&f.inspect!==t.inspect&&!(f.constructor&&f.constructor.prototype===f)){var J=f.inspect($,s);return V(J)||(J=v(s,J,$)),J}var re=m(s,f);if(re)return re;var te=Object.keys(f),C=_(te);if(s.showHidden&&(te=Object.getOwnPropertyNames(f)),x(f)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return h(f);if(te.length===0){if(U(f)){var S=f.name?": "+f.name:"";return s.stylize("[Function"+S+"]","special")}if(E(f))return s.stylize(RegExp.prototype.toString.call(f),"regexp");if(K(f))return s.stylize(Date.prototype.toString.call(f),"date");if(x(f))return h(f)}var Q="",ge=!1,_e=["{","}"];if(L(f)&&(ge=!0,_e=["[","]"]),U(f)){var xe=f.name?": "+f.name:"";Q=" [Function"+xe+"]"}if(E(f)&&(Q=" "+RegExp.prototype.toString.call(f)),K(f)&&(Q=" "+Date.prototype.toUTCString.call(f)),x(f)&&(Q=" "+h(f)),te.length===0&&(!ge||f.length==0))return _e[0]+Q+_e[1];if($<0)return E(f)?s.stylize(RegExp.prototype.toString.call(f),"regexp"):s.stylize("[Object]","special");s.seen.push(f);var W;return ge?W=g(s,f,$,C,te):W=te.map(function(Ae){return b(s,f,$,C,Ae,ge)}),s.seen.pop(),w(W,Q,_e)}function m(s,f){if(B(f))return s.stylize("undefined","undefined");if(V(f)){var $="'"+JSON.stringify(f).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return s.stylize($,"string")}if(j(f))return s.stylize(""+f,"number");if(k(f))return s.stylize(""+f,"boolean");if(A(f))return s.stylize("null","null")}function h(s){return"["+Error.prototype.toString.call(s)+"]"}function g(s,f,$,J,re){for(var te=[],C=0,S=f.length;C<S;++C)He(f,String(C))?te.push(b(s,f,$,J,String(C),!0)):te.push("");return re.forEach(function(Q){Q.match(/^\d+$/)||te.push(b(s,f,$,J,Q,!0))}),te}function b(s,f,$,J,re,te){var C,S,Q;if(Q=Object.getOwnPropertyDescriptor(f,re)||{value:f[re]},Q.get?Q.set?S=s.stylize("[Getter/Setter]","special"):S=s.stylize("[Getter]","special"):Q.set&&(S=s.stylize("[Setter]","special")),He(J,re)||(C="["+re+"]"),S||(s.seen.indexOf(Q.value)<0?(A($)?S=v(s,Q.value,null):S=v(s,Q.value,$-1),S.indexOf(`
|
||
`)>-1&&(te?S=S.split(`
|
||
`).map(function(ge){return" "+ge}).join(`
|
||
`).substr(2):S=`
|
||
`+S.split(`
|
||
`).map(function(ge){return" "+ge}).join(`
|
||
`))):S=s.stylize("[Circular]","special")),B(C)){if(te&&re.match(/^\d+$/))return S;C=JSON.stringify(""+re),C.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(C=C.substr(1,C.length-2),C=s.stylize(C,"name")):(C=C.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),C=s.stylize(C,"string"))}return C+": "+S}function w(s,f,$){var J=s.reduce(function(re,te){return te.indexOf(`
|
||
`)>=0,re+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?$[0]+(f===""?"":f+`
|
||
`)+" "+s.join(`,
|
||
`)+" "+$[1]:$[0]+f+" "+s.join(", ")+" "+$[1]}function L(s){return Array.isArray(s)}t.isArray=L;function k(s){return typeof s=="boolean"}t.isBoolean=k;function A(s){return s===null}t.isNull=A;function P(s){return s==null}t.isNullOrUndefined=P;function j(s){return typeof s=="number"}t.isNumber=j;function V(s){return typeof s=="string"}t.isString=V;function H(s){return typeof s=="symbol"}t.isSymbol=H;function B(s){return s===void 0}t.isUndefined=B;function E(s){return z(s)&&ve(s)==="[object RegExp]"}t.isRegExp=E;function z(s){return typeof s=="object"&&s!==null}t.isObject=z;function K(s){return z(s)&&ve(s)==="[object Date]"}t.isDate=K;function x(s){return z(s)&&(ve(s)==="[object Error]"||s instanceof Error)}t.isError=x;function U(s){return typeof s=="function"}t.isFunction=U;function X(s){return s===null||typeof s=="boolean"||typeof s=="number"||typeof s=="string"||typeof s=="symbol"||typeof s=="undefined"}t.isPrimitive=X,t.isBuffer=Dl;function ve(s){return Object.prototype.toString.call(s)}function ae(s){return s<10?"0"+s.toString(10):s.toString(10)}var Le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function je(){var s=new Date,f=[ae(s.getHours()),ae(s.getMinutes()),ae(s.getSeconds())].join(":");return[s.getDate(),Le[s.getMonth()],f].join(" ")}t.log=function(){console.log("%s - %s",je(),t.format.apply(t,arguments))},t.inherits=Pl,t._extend=function(s,f){if(!f||!z(f))return s;for(var $=Object.keys(f),J=$.length;J--;)s[$[J]]=f[$[J]];return s};function He(s,f){return Object.prototype.hasOwnProperty.call(s,f)}})(an);var Rl={},jl=process.platform==="win32",Ve=an;function ct(t,e){for(var o=[],a=0;a<t.length;a++){var u=t[a];!u||u==="."||(u===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(u))}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 ln=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Bl=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ie={};function ut(t){var e=ln.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",u=Bl.exec(a),l=u[1],d=u[2],r=u[3];return[o,l,d,r]}function Vt(t){var e=ln.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function sn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ie.resolve=function(){for(var t="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var u;if(a>=0?u=arguments[a]:t?(u=Rl["="+t],(!u||u.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(u=t+"\\")):u=process.cwd(),Ve.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var l=Vt(u),d=l.device,r=l.isUnc,_=l.isAbsolute,v=l.tail;if(!(d&&t&&d.toLowerCase()!==t.toLowerCase())&&(t||(t=d),o||(e=v+"\\"+e,o=_),t&&o))break}return r&&(t=sn(t)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};ie.normalize=function(t){var e=Vt(t),o=e.device,a=e.isUnc,u=e.isAbsolute,l=e.tail,d=/[\\\/]$/.test(l);return l=ct(l.split(/[\\\/]+/),!u).join("\\"),!l&&!u&&(l="."),l&&d&&(l+="\\"),a&&(o=sn(o)),o+(u?"\\":"")+l};ie.isAbsolute=function(t){return Vt(t).isAbsolute};ie.join=function(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Ve.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,}/,"\\")),ie.normalize(a)};ie.relative=function(t,e){t=ie.resolve(t),e=ie.resolve(e);for(var o=t.toLowerCase(),a=e.toLowerCase(),u=et(e.split("\\")),l=et(o.split("\\")),d=et(a.split("\\")),r=Math.min(l.length,d.length),_=r,v=0;v<r;v++)if(l[v]!==d[v]){_=v;break}if(_==0)return e;for(var m=[],v=_;v<l.length;v++)m.push("..");return m=m.concat(u.slice(_)),m.join("\\")};ie._makeLong=function(t){if(!Ve.isString(t))return t;if(!t)return"";var e=ie.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};ie.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)};ie.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};ie.extname=function(t){return ut(t)[3]};ie.format=function(t){if(!Ve.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ve.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]===ie.sep?o+a:o+ie.sep+a:a};ie.parse=function(t){if(!Ve.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)}};ie.sep="\\";ie.delimiter=";";var ql=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,de={};function dt(t){return ql.exec(t).slice(1)}de.resolve=function(){for(var t="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ve.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||"."};de.normalize=function(t){var e=de.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=ct(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};de.isAbsolute=function(t){return t.charAt(0)==="/"};de.join=function(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Ve.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(t?t+="/"+o:t+=o)}return de.normalize(t)};de.relative=function(t,e){t=de.resolve(t).substr(1),e=de.resolve(e).substr(1);for(var o=et(t.split("/")),a=et(e.split("/")),u=Math.min(o.length,a.length),l=u,d=0;d<u;d++)if(o[d]!==a[d]){l=d;break}for(var r=[],d=l;d<o.length;d++)r.push("..");return r=r.concat(a.slice(l)),r.join("/")};de._makeLong=function(t){return t};de.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)};de.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};de.extname=function(t){return dt(t)[3]};de.format=function(t){if(!Ve.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ve.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir?t.dir+de.sep:"",a=t.base||"";return o+a};de.parse=function(t){if(!Ve.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)}};de.sep="/";de.delimiter=":";jl?tt.exports=ie:tt.exports=de;tt.exports.posix=de;tt.exports.win32=ie;var Fl=tt.exports;const Nl=Ln(Fl),Ul={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"/>'},Wl={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"/>'},Gl={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"/>'},Kl={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"/>'},Xl={key:0},Jl={key:1},rn=oe({__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:u}=ze(),l=t,d=N(()=>({width:"100%",textAlign:"center"})),r=N(()=>({display:"flex",alignItems:"center"})),_=N(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),v=N(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),m=N(()=>o.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),h=N(()=>V=>{var H;return o.value?{width:"100%",textAlign:(V==null?void 0:V.parentId)===null||e.value==="mix"&&((H=V==null?void 0:V.pathList)==null?void 0:H.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),g=N(()=>{var V;return(V=Ye())!=null&&V.MenuArrowIconNoTransition?{"expand-close-icon":Ee(Wl),"expand-open-icon":Ee(Ul),"collapse-close-icon":Ee(Kl),"collapse-open-icon":Ee(Gl)}:""}),b=Z(null),w=new WeakMap,L=Z(null);function k(V){w.get(V)||Pe(()=>{var H,B;((H=L.value)==null?void 0:H.scrollWidth)>((B=L.value)==null?void 0:B.clientWidth)?Object.assign(V,{showTooltip:!0}):Object.assign(V,{showTooltip:!1}),w.set(V,!0)})}function A(V,H){var E;const B=((V==null?void 0:V.length)>1?V.toString().slice(0,1):V)+"...";return H&&!(o.value&&(H==null?void 0:H.parentId)===null)?e.value==="mix"&&((E=H==null?void 0:H.pathList)==null?void 0:E.length)===2&&o.value?B:V:B}function P(V=[],H){var E,z;const B=V.filter(K=>(b.value=K,!0));return(z=(E=B[0])==null?void 0:E.meta)!=null&&z.showParent?!1:B.length===1?!0:B.length===0?(b.value=Zt(Ot({},H),{path:"",noShowingChildren:!0}),!0):!1}function j(V){const H=/^http(s?):\/\//;return H.test(V)||H.test(l.basePath)?V||l.basePath:Nl.posix.resolve(l.basePath,V)}return(V,H)=>{const B=T("el-tooltip"),E=T("el-menu-item"),z=T("sidebar-item",!0),K=T("el-sub-menu");return P(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(i(),D(E,{key:0,index:j(b.value.path),class:se({"submenu-title-noDropdown":!t.isNest}),style:ne(r.value)},{title:y(()=>[p("div",{style:ne(n(u))},[n(e)==="horizontal"?(i(),M("span",Xl,ee(n(be)(b.value.meta.title)),1)):(i(),D(B,{key:1,placement:"top",effect:n(a),offset:-10,disabled:!b.value.showTooltip},{content:y(()=>[fe(ee(n(be)(b.value.meta.title)),1)]),default:y(()=>[p("span",{ref_key:"menuTextRef",ref:L,style:ne(_.value),onMouseover:H[0]||(H[0]=x=>k(b.value))},ee(n(be)(b.value.meta.title)),37)]),_:1},8,["effect","disabled"])),c(pt,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:y(()=>{var x,U,X,ve,ae;return[$e(l.item.meta.icon)?(i(),M("div",{key:0,class:"sub-menu-icon",style:ne(v.value)},[(i(),D(Oe(n(Ee)($e(b.value.meta.icon)||l.item.meta&&$e(l.item.meta.icon)))))],4)):Y("",!0),!((x=l.item)!=null&&x.meta.icon)&&n(o)&&n(e)==="vertical"&&((X=(U=l.item)==null?void 0:U.pathList)==null?void 0:X.length)===1?(i(),M("span",{key:1,style:ne(d.value)},ee(A(n(be)(b.value.meta.title))),5)):Y("",!0),!b.value.meta.icon&&n(o)&&n(e)==="mix"&&((ae=(ve=l.item)==null?void 0:ve.pathList)==null?void 0:ae.length)===2?(i(),M("span",{key:2,style:ne(d.value)},ee(A(n(be)(b.value.meta.title))),5)):Y("",!0)]}),_:1},8,["index","class","style"])):(i(),D(K,Hn({key:1,ref:"subMenu",teleported:"",index:j(l.item.path)},g.value),{title:y(()=>[$e(l.item.meta.icon)?(i(),M("div",{key:0,style:ne(v.value),class:"sub-menu-icon"},[(i(),D(Oe(n(Ee)(l.item.meta&&$e(l.item.meta.icon)))))],4)):Y("",!0),n(e)==="horizontal"?(i(),M("span",Jl,ee(n(be)(l.item.meta.title)),1)):Y("",!0),n(o)&&$e(l.item.meta.icon)&&l.item.parentId===null?Y("",!0):(i(),M("div",{key:2,style:ne(h.value(l.item))},[n(e)!=="horizontal"?(i(),D(B,{key:0,placement:"top",effect:n(a),offset:-10,disabled:!l.item.showTooltip},{content:y(()=>[fe(ee(n(be)(l.item.meta.title)),1)]),default:y(()=>[p("span",{ref_key:"menuTextRef",ref:L,style:ne(m.value),onMouseover:H[1]||(H[1]=x=>k(l.item))},ee(A(n(be)(l.item.meta.title),l.item)),37)]),_:1},8,["effect","disabled"])):Y("",!0),n(o)?Y("",!0):(i(),D(pt,{key:1,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:y(()=>[(i(!0),M(Se,null,Ie(l.item.children,x=>(i(),D(z,{key:x.path,"is-nest":!0,item:x,"base-path":j(x.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Yl={class:"collapse-container"},Ql=oe({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=Z(!1),{tooltipEffect:u}=ze(),l=N(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:d}=rt(),r=N(()=>{var m;return(m=d.layout)==null?void 0:m.themeColor}),_=e,v=()=>{_("toggleClick")};return(m,h)=>{const g=T("IconifyIconOffline"),b=T("el-tooltip");return i(),M("div",Yl,[c(b,{placement:"right",visible:a.value,effect:n(u),content:o.isActive?"点击折叠":"点击展开"},{default:y(()=>[c(g,{icon:n(tn),class:se([l.value,r.value==="light"?"":"text-primary"]),style:ne({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:v,onMouseenter:h[0]||(h[0]=w=>a.value=!0),onMouseleave:h[1]||(h[1]=w=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}}),es=pe(Ql,[["__scopeId","data-v-57c78e02"]]),ts=oe({__name:"vertical",setup(t){var w,L;const e=yt(),o=Z((L=(w=Ke().getItem(`${Xe()}configure`))==null?void 0:w.showLogo)!=null?L:!0),{device:a,pureApp:u,isCollapse:l,tooltipEffect:d,menuSelect:r,toggleSideBar:_}=ze(),v=Z([]),m=N(()=>u.layout==="mix"&&a.value!=="mobile"?v.value:ke().wholeMenus),h=N(()=>u.layout==="mix"?!1:m.value.length===0),g=N(()=>{var k;return qe((k=e.meta)==null?void 0:k.activePath)?e.path:e.meta.activePath});function b(){let k="";k=g.value,v.value=[];const A=gt(k,ke().wholeMenus),P=lt(A[0]||k,ke().wholeMenus);P!=null&&P.children&&(v.value=P==null?void 0:P.children)}return We(()=>[e.path,ke().wholeMenus],()=>{e.path.includes("/redirect")||(b(),r(e.path))}),Re(()=>{b(),we.on("logoChange",k=>{o.value=k})}),wt(()=>{we.off("logoChange")}),(k,A)=>{const P=T("el-menu"),j=T("el-scrollbar"),V=nt("loading");return ue((i(),M("div",{class:se(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(i(),D(Zl,{key:0,collapse:n(l)},null,8,["collapse"])):Y("",!0),c(j,{"wrap-class":"scrollbar-wrapper",class:se([n(a)==="mobile"?"mobile":"pc"])},{default:y(()=>[c(P,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:n(l),"collapse-transition":!1,"popper-effect":n(d),"default-active":g.value},{default:y(()=>[(i(!0),M(Se,null,Ie(m.value,H=>(i(),D(rn,{key:H.path,item:H,"base-path":H.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(i(),D(es,{key:1,"is-active":n(u).sidebar.opened,onToggleClick:n(_)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[V,h.value]])}}}),ns=pe(ts,[["__scopeId","data-v-3752e90e"]]),os={class:"horizontal-header"},as=["src"],ls={class:"horizontal-header-right"},ss={class:"check-zh"},rs={class:"check-en"},is={class:"el-dropdown-link navbar-bg-hover"},cs=["src"],us={key:0,class:"dark:text-white"},ds=["title"],hs=oe({__name:"horizontal",setup(t){const e=Z(),{t:o,route:a,locale:u,translationCh:l,translationEn:d}=xt(e),{title:r,logout:_,backTopMenu:v,onPanel:m,getLogo:h,username:g,userAvatar:b,avatarsStyle:w,getDropdownItemStyle:L,getDropdownItemClass:k}=ze(),A=N(()=>{var P;return qe((P=a.meta)==null?void 0:P.activePath)?a.path:a.meta.activePath});return Pe(()=>{var P;(P=e.value)==null||P.handleResize()}),(P,j)=>{const V=T("el-menu"),H=T("IconifyIconOffline"),B=T("el-dropdown-item"),E=T("el-dropdown-menu"),z=T("el-dropdown"),K=nt("loading");return ue((i(),M("div",os,[p("div",{class:"horizontal-header-left",onClick:j[0]||(j[0]=(...x)=>n(v)&&n(v)(...x))},[p("img",{src:n(h)(),alt:"logo"},null,8,as),p("span",null,ee(n(r)),1)]),c(V,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":A.value},{default:y(()=>[(i(!0),M(Se,null,Ie(n(ke)().wholeMenus,x=>(i(),D(rn,{key:x.path,item:x,"base-path":x.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),p("div",ls,[c(It,{id:"header-search"}),c(Mt,{id:"header-notice"}),c(z,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[c(E,{class:"translation"},{default:y(()=>[c(B,{style:ne(n(L)(n(u),"zh")),class:se(["dark:!text-white",n(k)(n(u),"zh")]),onClick:n(l)},{default:y(()=>[ue(p("span",ss,[c(H,{icon:n(Ne)},null,8,["icon"])],512),[[Me,n(u)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),c(B,{style:ne(n(L)(n(u),"en")),class:se(["dark:!text-white",n(k)(n(u),"en")]),onClick:n(d)},{default:y(()=>[ue(p("span",rs,[c(H,{icon:n(Ne)},null,8,["icon"])],512),[[Me,n(u)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[c(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),c(z,{trigger:"click"},{dropdown:y(()=>[c(E,{class:"logout"},{default:y(()=>[c(B,{onClick:n(_)},{default:y(()=>[c(H,{icon:n(Tt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ee(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[p("span",is,[p("img",{src:n(b),style:ne(n(w))},null,12,cs),n(g)?(i(),M("p",us,ee(n(g)),1)):Y("",!0)])]),_:1}),p("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:j[1]||(j[1]=(...x)=>n(m)&&n(m)(...x))},[c(H,{icon:n(it)},null,8,["icon"])],8,ds)])])),[[K,n(ke)().wholeMenus.length===0]])}}}),fs=pe(hs,[["__scopeId","data-v-bb9dfcbc"]]),ps={key:0},ms=oe({__name:"index",setup(t){const e=Z(),{isDark:o}=Kt(),{layout:a}=Pn(),u=Nt(),l=St(),{$storage:d}=rt(),r=bt({sidebar:N(()=>Be().sidebar),device:N(()=>Be().device),fixedHeader:N(()=>l.fixedHeader),classes:N(()=>({hideSidebar:!r.sidebar.opened,openSidebar:r.sidebar.opened,withoutAnimation:r.sidebar.withoutAnimation,mobile:r.device==="mobile"})),hideTabs:N(()=>d==null?void 0:d.configure.hideTabs)});function _(g){var b,w,L,k,A,P;window.document.body.setAttribute("layout",g),d.layout={layout:`${g}`,theme:(b=d.layout)==null?void 0:b.theme,darkMode:(w=d.layout)==null?void 0:w.darkMode,sidebarStatus:(L=d.layout)==null?void 0:L.sidebarStatus,epThemeColor:(k=d.layout)==null?void 0:k.epThemeColor,themeColor:(A=d.layout)==null?void 0:A.themeColor,overallStyle:(P=d.layout)==null?void 0:P.overallStyle}}function v(g,b){Be().toggleDevice(g),Be().toggleSideBar(b,"resize")}let m=!0;vt(e,g=>{if(u)return;const b=g[0],[{inlineSize:w}]=b.borderBoxSize;w<=760?_("vertical"):_(Be().layout),w>0&&w<=760?(v("mobile",!1),m=!0):w>760&&w<=990?m&&(v("desktop",!1),m=!1):w>990&&!r.sidebar.isClickCollapse?(v("desktop",!0),m=!0):(v("desktop",!1),m=!1)}),Re(()=>{u&&v("mobile",!1)}),Xt(()=>{var g;$t().dataThemeChange((g=d.layout)==null?void 0:g.overallStyle)});const h=oe({render(){return Je("div",{class:{"fixed-header":r.fixedHeader},style:[r.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(ka):null,!l.hiddenSideBar&&a.value.includes("horizontal")?Je(fs):null,Je(Ra)]})}});return(g,b)=>{const w=T("el-backtop"),L=T("el-scrollbar");return i(),M("div",{ref_key:"appWrapperRef",ref:e,class:se(["app-wrapper",r.classes])},[ue(p("div",{class:"app-mask",onClick:b[0]||(b[0]=k=>n(Be)().toggleSideBar())},null,512),[[Me,r.device==="mobile"&&r.sidebar.opened&&n(a).includes("vertical")]]),ue(c(ns,null,null,512),[[Me,!n(l).hiddenSideBar&&(n(a).includes("vertical")||n(a).includes("mix"))]]),p("div",{class:se(["main-container",n(l).hiddenSideBar?"main-hidden":""])},[r.fixedHeader?(i(),M("div",ps,[c(n(h)),c(qt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])])):(i(),D(L,{key:1},{default:y(()=>[c(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:y(()=>[c(n(Jt))]),_:1}),c(n(h)),c(qt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),c(zl)],2)}}}),Hs=pe(ms,[["__scopeId","data-v-e1cc1ddb"]]);export{Hs as default};
|