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