mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
88 KiB
JavaScript
11 lines
88 KiB
JavaScript
var xn=Object.defineProperty,In=Object.defineProperties;var $n=Object.getOwnPropertyDescriptors;var Nt=Object.getOwnPropertySymbols;var Sn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable;var Ut=(t,e,n)=>e in t?xn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yt=(t,e)=>{for(var n in e||(e={}))Sn.call(e,n)&&Ut(t,n,e[n]);if(Nt)for(var n of Nt(e))Mn.call(e,n)&&Ut(t,n,e[n]);return t},bt=(t,e)=>In(t,$n(e));var tt=(t,e,n)=>new Promise((a,c)=>{var l=f=>{try{p(n.next(f))}catch(v){c(v)}},s=f=>{try{p(n.throw(f))}catch(v){c(v)}},p=f=>f.done?a(f.value):Promise.resolve(f.value).then(l,s);p((n=n.apply(t,e)).next())});import{dk as oe,au as Tn,ax as Ge,ay as Vn,e as d,k as M,f as b,d as te,r as Z,K as j,aN as ft,o as Ue,F as ve,l as ke,N as re,c as R,R as Le,u as o,B as ae,aa as Pe,i as h,$ as St,_ as _e,b as V,h as fe,C as X,m as ie,a1 as Ce,al as Fe,L as Ae,aO as nn,n as Ne,aR as zn,af as Mt,P as Hn,H as Ct,ae as Ln,a8 as Me,dl as wt,w as C,bj as An,av as je,aY as Ke,aG as En,W as on,bn as $e,j as Qe,E as ue,dm as Tt,dn as ct,ad as Vt,dp as Re,T as Zn,dq as Ye,aw as ot,V as zt,dr as Ze,ds as an,dt as On,du as it,a$ as qe,dv as ut,dw as sn,a as Ht,dx as Lt,dy as kt,dz as Rn,dA as Pn,M as dt,dB as pt,dC as Wt,D as at,p as ln,q as rn,as as cn,X as un,Z as Dn,Y as Je,U as jn,Q as qn,ar as Bn,bb as Fn,dD as Nn,dE as Un,a4 as Gt}from"./index-VuSprpEA.js";import{d as Wn}from"./menu-DpbF6EVM.js";import{d as Gn}from"./home-filled-NADQtN-e.js";import{d as Kn}from"./git-branch-line-BhusJOme.js";import{d as Yn}from"./admin-line-CpqWPwjZ.js";import{d as Xn,u as ze,a as At,g as Et,b as Zt,t as Jn,c as Qn,e as eo,f as to}from"./dark-lmvpDRBN.js";import{u as We}from"./app-CuzPCDeD.js";import{m as no}from"./index-QpUUYT1t.js";import{u as xt}from"./epTheme-DwqcDX4M.js";import{u as Oe}from"./hooks-BewRN9U6.js";import{S as oo}from"./sortable.esm-6WsHlDA5.js";import{d as Xe}from"./check-CIQVCvCT.js";import{e as Se}from"./mitt-E5P-NQ8u.js";import{d as ao}from"./refresh-right-Du3ZsAuC.js";import{d as so}from"./arrow-right-s-line-CxPb13eK.js";import{b as dn}from"./back_top-D-arxpHe.js";import{R as Kt}from"./index-D6CDvLZb.js";import{R as Yt}from"./index-glveUtEg.js";const lo={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"/>'},ro={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"/>'},io={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"/>'},co={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"/>'},uo={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"/>'},ho={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},fo={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"/>'},po={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"/>'},mo={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"/>'},vo={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"/>'},_o={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"/>'},go={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"/>'},yo={width:24,height:24,body:'<path fill="currentColor" d="m13.06 8.11l1.415 1.415a7 7 0 0 1 0 9.9l-.354.353a7 7 0 1 1-9.9-9.9l1.415 1.415a5 5 0 0 0 7.07 7.07l.354-.353a5 5 0 0 0 0-7.07l-1.414-1.415L13.06 8.11Zm6.718 6.011l-1.414-1.414a5 5 0 0 0-7.071-7.071l-.354.353a5 5 0 0 0 0 7.071l1.414 1.415l-1.414 1.414l-1.414-1.414a7 7 0 0 1 0-9.9l.353-.353a7 7 0 0 1 9.9 9.9Z"/>'},hn={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"/>'},mt={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"/>'},bo={width:24,height:24,body:'<path fill="currentColor" d="M21 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h18Zm-1 8H4v8h16v-8Zm0-6H4v4h16V5Zm-9 1v2H9V6h2ZM7 6v2H5V6h2Z"/>'},wo={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"/>'},ko={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.992Zm10.529 11.454a4.001 4.001 0 0 1-4.86-6.274a4 4 0 0 1 6.274 4.86l2.21 2.21l-1.413 1.415l-2.211-2.21Zm-.618-2.032a2 2 0 1 0-2.828-2.828a2 2 0 0 0 2.828 2.828Z"/>'},Co={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},xo={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"/>'},Io={width:24,height:24,body:'<path fill="currentColor" d="M1 22a8 8 0 0 1 16 0h-2a6 6 0 0 0-12 0H1Zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6Zm0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4ZM21.548.784A13.942 13.942 0 0 1 23 7c0 2.233-.523 4.344-1.452 6.217l-1.645-1.197A11.956 11.956 0 0 0 21 7a11.96 11.96 0 0 0-1.097-5.02L21.548.784Zm-3.302 2.4A9.97 9.97 0 0 1 19 7a9.97 9.97 0 0 1-.754 3.816l-1.677-1.22A7.99 7.99 0 0 0 17 7a7.99 7.99 0 0 0-.43-2.596l1.676-1.22Z"/>'},$o={width:24,height:24,body:'<path fill="currentColor" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12h2a8 8 0 1 0 1.865-5.135L8 9H2V3l2.447 2.446A9.977 9.977 0 0 1 12 2Zm1 5v4.585l3.243 3.243l-1.415 1.415L11 12.413V7h2Z"/>'},So={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"/>'},Mo={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"/>'};oe("ep:menu",Wn);oe("ep:edit",lo);oe("ep:set-up",ro);oe("ep:guide",io);oe("ep:monitor",co);oe("ep:lollipop",uo);oe("ep:histogram",ho);oe("ep:home-filled",Gn);oe("ri:bookmark-2-line",fo);oe("ri:file-ppt-2-line",po);oe("ri:bank-card-line",mo);oe("ri:admin-fill",vo);oe("ri:file-info-line",_o);oe("ri:git-branch-line",Kn);oe("ri:links-fill",yo);oe("ri:table-line",go);oe("ri:search-line",hn);oe("ri:admin-line",Yn);oe("ri:settings-3-line",mt);oe("ri:window-line",bo);oe("ri:file-search-line",ko);oe("ri:artboard-line",wo);oe("ri:list-check",Co);oe("ri:ubuntu-fill",xo);oe("ri:user-voice-line",Io);oe("ri:history-fill",$o);oe("ri:information-line",Xn);oe("ri:terminal-window-line",So);oe("ri:checkbox-circle-line",Mo);const To=Tn({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 Ot(){return To(Vn)}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"},zo=b("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),Ho=[zo];function Lo(t,e){return d(),M("svg",Vo,[...Ho])}const fn={render:Lo},Ao=["onMouseenter"],Eo={class:"result-item-title"},Zo=te({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:n}){const a=Z(),c=Z(),l=n,s=St(),p=t,f=j(()=>k=>({background:(k==null?void 0:k.path)===v.value?xt().epThemeColor:"",color:k.path===v.value?"#fff":"",fontSize:k.path===v.value?"16px":"14px"})),v=j({get(){return p.value},set(k){l("update:value",k)}});function w(k){return tt(this,null,function*(){v.value=k.path})}function m(){l("enter")}function g(){c.value=window.innerHeight-window.innerHeight/10-140}ft(a,g);function y(k){var H;const z=(H=s==null?void 0:s.proxy)==null?void 0:H.$refs[`resultItemRef${k}`];if(!z)return 0;const O=z[0].offsetTop+128;return O>c.value?O-c.value:0}return Ue(()=>{g()}),e({handleScroll:y}),(k,z)=>(d(),M("div",{ref_key:"resultRef",ref:a,class:"result"},[(d(!0),M(ve,null,ke(k.options,(x,O)=>{var H,L;return d(),M("div",{key:x.path,ref_for:!0,ref:"resultItemRef"+O,class:"result-item dark:bg-[#1d1d1d]",style:re(f.value(x)),onClick:m,onMouseenter:W=>w(x)},[(d(),R(Le(o(Oe)((H=x.meta)==null?void 0:H.icon)))),b("span",Eo,ae(o(Pe)((L=x.meta)==null?void 0:L.title)),1),h(o(fn))],44,Ao)}),128))],512))}}),Oo=_e(Zo,[["__scopeId","data-v-b88fa124"]]),Ro={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Po=b("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),Do=[Po];function jo(t,e){return d(),M("svg",Ro,[...Do])}const qo={render:jo},Bo={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"/>'},Fo={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"/>'},No={class:"search-footer text-[#333] dark:text-white"},Uo={class:"search-footer-item"},Wo={class:"search-footer-item"},Go={class:"search-footer-item"},Ko={key:0,class:"search-footer-total"},Yo=te({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=ze();return(a,c)=>{const l=V("IconifyIconOffline");return d(),M("div",No,[b("span",Uo,[h(o(fn),{class:"icon"}),fe(" 确认 ")]),b("span",Wo,[h(l,{icon:o(Bo),class:"icon"},null,8,["icon"]),h(l,{icon:o(Fo),class:"icon"},null,8,["icon"]),fe(" 切换 ")]),b("span",Go,[h(o(qo),{class:"icon"}),fe(" 关闭 ")]),o(n)!=="mobile"&&e.total>0?(d(),M("p",Ko," 共"+ae(e.total)+"项 ",1)):X("",!0)])}}}),Xo=_e(Yo,[["__scopeId","data-v-f9c16431"]]),Jo={width:1024,height:1024,body:'<path fill="currentColor" d="m512 747.84l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08l184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256l99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96l221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"/>'},ht={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"/>'},Qo={class:"history-item-title"},ea=te({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(t,{emit:e}){const n=e;function a(l){n("collectItem",l)}function c(l){n("deleteItem",l)}return(l,s)=>{var f,v;const p=V("IconifyIconOffline");return d(),M(ve,null,[(d(),R(Le(o(Oe)((f=l.item.meta)==null?void 0:f.icon)))),b("span",Qo,ae(o(Pe)((v=l.item.meta)==null?void 0:v.title)),1),ie(h(p,{icon:o(Jo),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:s[0]||(s[0]=Fe(w=>a(l.item),["stop"]))},null,8,["icon"]),[[Ce,l.item.type==="history"]]),h(p,{icon:o(ht),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:s[1]||(s[1]=Fe(w=>c(l.item),["stop"]))},null,8,["icon"])],64)}}}),Xt=_e(ea,[["__scopeId","data-v-a9dc41c7"]]),ta=["onMouseenter"],na={class:"collect-container"},oa=["onMouseenter"],aa=te({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:e,emit:n}){const a=Z(),c=Z(),l=Z(!1),s=n,p=St(),f=t,v=j(()=>T=>({background:(T==null?void 0:T.path)===m.value?xt().epThemeColor:"",color:T.path===m.value?"#fff":"",fontSize:T.path===m.value?"16px":"14px"})),w=j(()=>({color:xt().epThemeColor,fontWeight:500})),m=j({get(){return f.value},set(T){s("update:value",T)}});Ae(()=>f.value,T=>{T&&l.value&&nn(100).then(()=>l.value=!1)});const g=j(()=>f.options.filter(T=>T.type==="history")),y=j(()=>f.options.filter(T=>T.type==="collect"));function k(T){s("collect",T)}function z(T){l.value=!0,s("delete",T)}function x(T){return tt(this,null,function*(){l.value||(m.value=T.path)})}function O(){s("enter")}function H(){c.value=window.innerHeight-window.innerHeight/10-140}ft(a,H);function L(T){var Q;const D=(Q=p==null?void 0:p.proxy)==null?void 0:Q.$refs[`historyItemRef${T}`];if(!D)return 0;const le=(zn(D)?D[0]:D).offsetTop+128;return le>c.value?le-c.value:0}const W=T=>{s("drag",{oldIndex:T.oldIndex,newIndex:T.newIndex})};let J=null;return Ae(y,T=>{T.length>1&&Ne(()=>{const D=document.querySelector(".collect-container");!D||J||(J=oo.create(D,{animation:160,onStart:q=>{q.item.style.cursor="move"},onEnd:q=>{q.item.style.cursor="pointer"},onUpdate:W}),H())})},{deep:!0,immediate:!0}),e({handleScroll:L}),(T,D)=>(d(),M("div",{ref_key:"historyRef",ref:a,class:"history"},[g.value.length?(d(),M(ve,{key:0},[b("div",{style:re(w.value)},"搜索历史",4),(d(!0),M(ve,null,ke(g.value,(q,le)=>(d(),M("div",{key:q.path,ref_for:!0,ref:"historyItemRef"+le,class:"history-item dark:bg-[#1d1d1d]",style:re(v.value(q)),onClick:O,onMouseenter:Q=>x(q)},[h(Xt,{item:q,onDeleteItem:z,onCollectItem:k},null,8,["item"])],44,ta))),128))],64)):X("",!0),y.value.length?(d(),M(ve,{key:1},[b("div",{style:re(w.value)}," 收藏"+ae(y.value.length>1?"(可拖拽排序)":""),5),b("div",na,[(d(!0),M(ve,null,ke(y.value,(q,le)=>(d(),M("div",{key:q.path,ref_for:!0,ref:"historyItemRef"+(le+g.value.length),class:"history-item dark:bg-[#1d1d1d]",style:re(v.value(q)),onClick:O,onMouseenter:Q=>x(q)},[h(Xt,{item:q,onDeleteItem:z},null,8,["item"])],44,oa))),128))])],64)):X("",!0)],512))}}),sa=_e(aa,[["__scopeId","data-v-9fa90bc8"]]),la={class:"search-content"},Jt="history",ra="collect",De="menu-search-history",Be="menu-search-collect",ia=te({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=ze(),a=e,c=t,l=Mt(),{locale:s}=Hn(),p=Z(""),f=Z(),v=Z(),w=Z(),m=Z(""),g=Z(""),y=Ct([]),k=Ct([]),z=An(Q,300),x=Ge().MenuSearchHistory,O=Z(null),H=j(()=>Ln(Me().wholeMenus)),L=j({get(){return c.value},set(i){a("update:value",i)}});Ae(()=>c.value,i=>{i&&se()});const W=j(()=>p.value&&y.value.length>0),J=j(()=>!p.value&&k.value.length>0),T=j(()=>!p.value&&k.value.length===0||p.value&&y.value.length===0);function D(i){return je().getItem(i)||[]}function q(i,u){je().setItem(i,u)}function le(i){const u=[];function I(U){U.forEach(Y=>{u.push(Y),Y.children&&I(Y.children)})}return I(i),u}function Q(){var u;const i=le(H.value);y.value=i.filter(I=>{var U,Y;return p.value?Pe((U=I.meta)==null?void 0:U.title).toLocaleLowerCase().includes(p.value.toLocaleLowerCase().trim())||s.value==="zh"&&!Ke(no(Pe((Y=I.meta)==null?void 0:Y.title).toLocaleLowerCase(),p.value.toLocaleLowerCase().trim())):!1}),m.value=((u=y.value)==null?void 0:u.length)>0?y.value[0].path:""}function P(){L.value=!1,setTimeout(()=>{y.value=[],g.value="",p.value=""},200)}function ne(i){const I=(y.value.length?f.value:v.value).handleScroll(i);w.value.setScrollTop(I)}function ye(){const i=y.value.length>0,u=i?y.value:k.value,I=i?m.value:g.value;return{options:u,currentPath:I,isResultOptions:i}}function ge(i,u){u?m.value=y.value[i].path:g.value=k.value[i].path,ne(i)}function xe(){const{options:i,currentPath:u,isResultOptions:I}=ye();if(i.length===0)return;const Y=(i.findIndex(me=>me.path===u)-1+i.length)%i.length;ge(Y,I)}function Te(){const{options:i,currentPath:u,isResultOptions:I}=ye();if(i.length===0)return;const Y=(i.findIndex(me=>me.path===u)+1)%i.length;ge(Y,I)}function Ie(){const{options:i,currentPath:u,isResultOptions:I}=ye();if(i.length===0||u==="")return;const U=i.findIndex(Y=>Y.path===u);U!==-1&&(I?$():K(),l.push(i[U].path),P())}function r(i){const u=i.type===Jt?De:Be;let I=D(u);I=I.filter(U=>U.path!==i.path),q(u,I),se()}function _(i){let u=D(De),I=D(Be);u=u.filter(U=>U.path!==i.path),q(De,u),I.some(U=>U.path===i.path)||(I.unshift(bt(yt({},i),{type:ra})),q(Be,I)),se()}function $(){const{path:i,meta:u}=y.value.find(N=>N.path===m.value),I=D(De),Y=D(Be).some(N=>N.path===i),me=I.findIndex(N=>N.path===i);Y||(me!==-1&&I.splice(me,1),I.length>=x&&I.pop(),I.unshift({path:i,meta:u,type:Jt}),je().setItem(De,I))}function K(){let i=D(De);const u=i.findIndex(I=>I.path===g.value);if(u!==-1){const[I]=i.splice(u,1);i.unshift(I),q(De,i)}}function se(){var I;const i=D(De),u=D(Be);k.value=[...i,...u],g.value=(I=k.value[0])==null?void 0:I.path}function ee(i){const u=D(Be),[I]=u.splice(i.oldIndex,1);u.splice(i.newIndex,0,I),je().setItem(Be,u),k.value=[...D(De),...D(Be)],g.value=I.path}return wt("Enter",Ie),wt("ArrowUp",xe),wt("ArrowDown",Te),(i,u)=>{const I=V("IconifyIconOffline"),U=V("el-input"),Y=V("el-empty"),me=V("el-scrollbar"),N=V("el-dialog");return d(),R(N,{modelValue:L.value,"onUpdate:modelValue":u[3]||(u[3]=be=>L.value=be),top:"5vh",class:"pure-search-dialog","show-close":!1,width:o(n)==="mobile"?"80vw":"40vw","before-close":P,style:{borderRadius:"6px"},"append-to-body":"",onOpened:u[4]||(u[4]=be=>O.value.focus()),onClosed:u[5]||(u[5]=be=>O.value.blur())},{footer:C(()=>[h(Xo,{total:y.value.length},null,8,["total"])]),default:C(()=>[h(U,{ref_key:"inputRef",ref:O,modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=be=>p.value=be),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:o(z)},{prefix:C(()=>[h(I,{icon:o(hn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),b("div",la,[h(me,{ref_key:"scrollbarRef",ref:w,"max-height":"calc(90vh - 140px)"},{default:C(()=>[T.value?(d(),R(Y,{key:0,description:"暂无搜索结果"})):X("",!0),J.value?(d(),R(sa,{key:1,ref_key:"historyRef",ref:v,value:g.value,"onUpdate:value":u[1]||(u[1]=be=>g.value=be),options:k.value,onClick:Ie,onDelete:r,onCollect:_,onDrag:ee},null,8,["value","options"])):X("",!0),W.value?(d(),R(Oo,{key:2,ref_key:"resultRef",ref:f,value:m.value,"onUpdate:value":u[2]||(u[2]=be=>m.value=be),options:y.value,onClick:Ie},null,8,["value","options"])):X("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),ca=_e(ia,[["__scopeId","data-v-ba7ee514"]]);function ua(t=!1){const e=Z(t);function n(s){e.value=s}function a(){n(!0)}function c(){n(!1)}function l(){n(!e.value)}return{bool:e,setBool:n,setTrue:a,setFalse:c,toggle:l}}const Rt=te({__name:"index",setup(t){const{bool:e,toggle:n}=ua();function a(){n()}return(c,l)=>{const s=V("IconifyIconOffline");return d(),M("div",null,[b("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[h(s,{icon:"ri:search-line"})]),h(o(ca),{value:o(e),"onUpdate:value":l[0]||(l[0]=p=>En(e)?e.value=p:null)},null,8,["value"])])}}}),Qt=[{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"}]}],da={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},ha={class:"notice-container-text"},fa={class:"notice-text-title text-[#000000d9] dark:text-white"},pa={class:"notice-text-datetime text-[#00000073] dark:text-white"},ma=te({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=Z(null),a=Z(!1),c=Z(null),l=Z(!1),{tooltipEffect:s}=ze(),p=on();function f(){Ne(()=>{var w,m;((w=n.value)==null?void 0:w.scrollWidth)>((m=n.value)==null?void 0:m.clientWidth)?a.value=!0:a.value=!1})}function v(w,m){const g=document.createElement("span");g.innerText=m,g.className="getDescriptionWidth",document.querySelector("body").appendChild(g);const y=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const k=w.target.offsetWidth;y>2*k?l.value=!0:l.value=!1}return(w,m)=>{var z,x;const g=V("el-avatar"),y=V("el-tooltip"),k=V("el-tag");return d(),M("div",da,[e.noticeItem.avatar?(d(),R(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):X("",!0),b("div",ha,[b("div",fa,[h(y,{"popper-class":"notice-title-popper",effect:o(s),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!o(p)},{default:C(()=>[b("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:f},ae(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(z=e.noticeItem)!=null&&z.extra?(d(),R(k,{key:0,type:(x=e.noticeItem)==null?void 0:x.status,size:"small",class:"notice-title-extra"},{default:C(()=>{var O;return[fe(ae((O=e.noticeItem)==null?void 0:O.extra),1)]}),_:1},8,["type"])):X("",!0)]),h(y,{"popper-class":"notice-title-popper",effect:o(s),disabled:!l.value,content:e.noticeItem.description,placement:"top-start"},{default:C(()=>[b("div",{ref_key:"descriptionRef",ref:c,class:"notice-text-description",onMouseover:m[0]||(m[0]=O=>v(O,e.noticeItem.description))},ae(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),b("div",pa,ae(e.noticeItem.datetime),1)])])}}}),va=_e(ma,[["__scopeId","data-v-2a7dbc48"]]),_a={key:0},ga=te({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const c=V("el-empty");return e.list.length?(d(),M("div",_a,[(d(!0),M(ve,null,ke(e.list,(l,s)=>(d(),R(va,{key:s,noticeItem:l},null,8,["noticeItem"]))),128))])):(d(),R(c,{key:1,description:"暂无消息"}))}}}),ya={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"/>'},ba={class:"dropdown-badge navbar-bg-hover select-none"},wa={class:"header-notice-icon"},ka={key:1},Ca={class:"noticeList-container"},xa=te({__name:"index",setup(t){const e=Z(0),n=Z(Qt),a=Z(Qt[0].key);return n.value.map(c=>e.value+=c.list.length),(c,l)=>{const s=V("IconifyIconOffline"),p=V("el-badge"),f=V("el-empty"),v=V("el-scrollbar"),w=V("el-tab-pane"),m=V("el-tabs"),g=V("el-dropdown-menu"),y=V("el-dropdown");return d(),R(y,{trigger:"click",placement:"bottom-end"},{dropdown:C(()=>[h(g,null,{default:C(()=>[h(m,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=k=>a.value=k),stretch:!0,class:"dropdown-tabs",style:re({width:n.value.length===0?"200px":"330px"})},{default:C(()=>[n.value.length===0?(d(),R(f,{key:0,description:"暂无消息","image-size":60})):(d(),M("span",ka,[(d(!0),M(ve,null,ke(n.value,k=>(d(),R(w,{key:k.key,label:`${k.name}(${k.list.length})`,name:`${k.key}`},{default:C(()=>[h(v,{"max-height":"330px"},{default:C(()=>[b("div",Ca,[h(ga,{list:k.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:C(()=>[b("span",ba,[h(p,{value:e.value,max:99},{default:C(()=>[b("span",wa,[h(s,{icon:o(ya)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Pt=_e(xa,[["__scopeId","data-v-33dc6db9"]]),Ia={key:0,class:"flex justify-center items-center"},It=te({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(d(),M("div",Ia,[(d(),R(Le(o(Oe)($e(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):X("",!0)}}),Dt=te({__name:"fullScreen",setup(t){const e=Z(),{toggle:n,isFullscreen:a,Fullscreen:c,ExitFullscreen:l}=ze();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ae(a,s=>{e.value=s?l:c},{immediate:!0}),(s,p)=>{const f=V("IconifyIconOffline");return d(),M("span",{class:"fullscreen-icon navbar-bg-hover",onClick:p[0]||(p[0]=(...v)=>o(n)&&o(n)(...v))},[h(f,{icon:e.value},null,8,["icon"])])}}}),jt={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"/>'},$a={key:0,class:"horizontal-header"},Sa={class:"select-none"},Ma={class:"horizontal-header-right"},Ta={class:"check-zh"},Va={class:"check-en"},za={class:"el-dropdown-link navbar-bg-hover select-none"},Ha=["src"],La={key:0,class:"dark:text-white"},Aa=["title"],Ea=te({__name:"mixNav",setup(t){const e=Z(),n=Z(null),{t:a,route:c,locale:l,translationCh:s,translationEn:p}=At(e),{device:f,logout:v,onPanel:w,resolvePath:m,username:g,userAvatar:y,getDivStyle:k,avatarsStyle:z,getDropdownItemStyle:x,getDropdownItemClass:O}=ze();function H(L){var T,D,q;const W=Me().wholeMenus,J=Tt(L,W)[0];n.value=Ke((T=c.meta)==null?void 0:T.activePath)?(q=(D=ct(J,W))==null?void 0:D.children[0])==null?void 0:q.path:c.meta.activePath}return Ue(()=>{H(c.path)}),Ne(()=>{var L;(L=e.value)==null||L.handleResize()}),Ae(()=>[c.path,Me().wholeMenus],()=>{H(c.path)}),(L,W)=>{const J=V("el-menu-item"),T=V("el-menu"),D=V("IconifyIconOffline"),q=V("el-dropdown-item"),le=V("el-dropdown-menu"),Q=V("el-dropdown"),P=Qe("loading");return o(f)!=="mobile"?ie((d(),M("div",$a,[h(T,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":n.value},{default:C(()=>[(d(!0),M(ve,null,ke(o(Me)().wholeMenus,ne=>(d(),R(J,{key:ne.path,index:o(m)(ne)||ne.redirect},{title:C(()=>[$e(ne.meta.icon)?(d(),M("div",{key:0,class:ue(["sub-menu-icon",ne.meta.icon])},[(d(),R(Le(o(Oe)(ne.meta&&$e(ne.meta.icon)))))],2)):X("",!0),b("div",{style:re(o(k))},[b("span",Sa,ae(o(Pe)(ne.meta.title)),1),h(It,{extraIcon:ne.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),b("div",Ma,[h(Rt,{id:"header-search"}),h(Q,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[h(le,{class:"translation"},{default:C(()=>[h(q,{style:re(o(x)(o(l),"zh")),class:ue(["dark:!text-white",o(O)(o(l),"zh")]),onClick:o(s)},{default:C(()=>[ie(b("span",Ta,[h(D,{icon:o(Xe)},null,8,["icon"])],512),[[Ce,o(l)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),h(q,{style:re(o(x)(o(l),"en")),class:ue(["dark:!text-white",o(O)(o(l),"en")]),onClick:o(p)},{default:C(()=>[ie(b("span",Va,[h(D,{icon:o(Xe)},null,8,["icon"])],512),[[Ce,o(l)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[h(o(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Dt,{id:"full-screen"}),h(Pt,{id:"header-notice"}),h(Q,{trigger:"click"},{dropdown:C(()=>[h(le,{class:"logout"},{default:C(()=>[h(q,{onClick:o(v)},{default:C(()=>[h(D,{icon:o(jt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ae(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[b("span",za,[b("img",{src:o(y),style:re(o(z))},null,12,Ha),o(g)?(d(),M("p",La,ae(o(g)),1)):X("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.hssystemSet"),onClick:W[0]||(W[0]=(...ne)=>o(w)&&o(w)(...ne))},[h(D,{icon:o(mt)},null,8,["icon"])],8,Aa)])])),[[P,o(Me)().wholeMenus.length===0]]):X("",!0)}}}),Za=_e(Ea,[["__scopeId","data-v-322f62be"]]),Oa=["onClick"],Ra=te({__name:"breadCrumb",setup(t){const e=Vt(),n=Z([]),a=Mt(),c=a.options.routes,l=Re().multiTags,s=()=>{let f;Object.keys(e.query).length>0?l.forEach(m=>{Ye(e.query,m==null?void 0:m.query)&&(f=$e(m))}):Object.keys(e.params).length>0?l.forEach(m=>{Ye(e.params,m==null?void 0:m.params)&&(f=$e(m))}):f=ct(a.currentRoute.value.path,c);const v=Tt(a.currentRoute.value.name,c,"name"),w=[];v.forEach(m=>{m!=="/"&&w.push(ct(m,c))}),w.push(f),w.forEach((m,g)=>{f!=null&&f.query||f!=null&&f.params||m!=null&&m.children&&m.children.forEach(y=>{var k,z;((k=y==null?void 0:y.meta)==null?void 0:k.title)===((z=m==null?void 0:m.meta)==null?void 0:z.title)&&w.splice(g,1)})}),n.value=w.filter(m=>(m==null?void 0:m.meta)&&(m==null?void 0:m.meta.title)!==!1)},p=f=>{const{redirect:v,name:w,path:m}=f;v?a.push(v):w?f.query?a.push({name:w,query:f.query}):f.params?a.push({name:w,params:f.params}):a.push({name:w}):a.push({path:m})};return Ue(()=>{s()}),Ae(()=>e.path,()=>{s()},{deep:!0}),(f,v)=>{const w=V("el-breadcrumb-item"),m=V("el-breadcrumb");return d(),R(m,{class:"!leading-[50px] select-none",separator:"/"},{default:C(()=>[h(Zn,{name:"breadcrumb"},{default:C(()=>[(d(!0),M(ve,null,ke(n.value,g=>(d(),R(w,{key:g.path,class:"!inline !items-stretch"},{default:C(()=>[b("a",{onClick:Fe(y=>p(g),["prevent"])},ae(o(Pe)(g.meta.title)),9,Oa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),pn={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"/>'},Pa={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"/>'},Da=["title"],ja=te({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=e,c=()=>{a("toggleClick")};return(l,s)=>{const p=V("IconifyIconOffline");return d(),M("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:c},[h(p,{icon:n.isActive?o(pn):o(Pa),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Da)}}}),qa={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Ba={key:3,class:"vertical-header-right"},Fa={class:"check-en"},Na={class:"el-dropdown-link navbar-bg-hover select-none"},Ua=["src"],Wa={key:0,class:"dark:text-white"},Ga=["title"],Ka=te({__name:"navbar",setup(t){const{layout:e,device:n,logout:a,onPanel:c,pureApp:l,username:s,userAvatar:p,avatarsStyle:f,toggleSideBar:v,getDropdownItemStyle:w,getDropdownItemClass:m}=ze(),{t:g,locale:y,translationCh:k,translationEn:z}=At();return(x,O)=>{const H=V("IconifyIconOffline"),L=V("el-dropdown-item"),W=V("el-dropdown-menu"),J=V("el-dropdown");return d(),M("div",qa,[o(n)==="mobile"?(d(),R(ja,{key:0,class:"hamburger-container","is-active":o(l).sidebar.opened,onToggleClick:o(v)},null,8,["is-active","onToggleClick"])):X("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(d(),R(Ra,{key:1,class:"breadcrumb-container"})):X("",!0),o(e)==="mix"?(d(),R(Za,{key:2})):X("",!0),o(e)==="vertical"?(d(),M("div",Ba,[h(Rt,{id:"header-search"}),h(J,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[h(W,{class:"translation"},{default:C(()=>[h(L,{style:re(o(w)(o(y),"zh")),class:ue(["dark:!text-white",o(m)(o(y),"zh")]),onClick:o(k)},{default:C(()=>[ie(h(H,{class:"check-zh",icon:o(Xe)},null,8,["icon"]),[[Ce,o(y)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),h(L,{style:re(o(w)(o(y),"en")),class:ue(["dark:!text-white",o(m)(o(y),"en")]),onClick:o(z)},{default:C(()=>[ie(b("span",Fa,[h(H,{icon:o(Xe)},null,8,["icon"])],512),[[Ce,o(y)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[h(o(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Dt,{id:"full-screen"}),h(Pt,{id:"header-notice"}),h(J,{trigger:"click"},{dropdown:C(()=>[h(W,{class:"logout"},{default:C(()=>[h(L,{onClick:o(a)},{default:C(()=>[h(H,{icon:o(jt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ae(o(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[b("span",Na,[b("img",{src:o(p),style:re(o(f))},null,12,Ua),o(s)?(d(),M("p",Wa,ae(o(s)),1)):X("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(g)("buttons.hssystemSet"),onClick:O[0]||(O[0]=(...T)=>o(c)&&o(c)(...T))},[h(H,{icon:o(mt)},null,8,["icon"])],8,Ga)])):X("",!0)])}}}),Ya=_e(Ka,[["__scopeId","data-v-8aa88393"]]),Xa={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},Ja={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"/>'},Qa={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"/>'},es={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"/>'};function ts(){var le,Q;const t=Vt(),e=Mt(),n=St(),a=Ot(),c=Z(0),l=Z(0),s=Z(0),p=Z(!1),f=Z(-1),v=Z({}),w=Z(!1),m=Z(((le=je().getItem(`${ot()}configure`))==null?void 0:le.showModel)||"smart"),g=(Q=Z(je().getItem(`${ot()}configure`).hideTabs))!=null?Q:Z("false"),y=j(()=>Re().multiTags),k=zt([{icon:ao,text:Ze("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:ht,text:Ze("buttons.hscloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:es,text:Ze("buttons.hscloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:Qa,text:Ze("buttons.hscloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:Ja,text:Ze("buttons.hscloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:Xa,text:Ze("buttons.hscloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:an,text:Ze("buttons.hscontentFullScreen"),divided:!0,disabled:!1,show:!0}]);function z(P,ne,ye){var ge,xe;return On((ge=t==null?void 0:t.meta)==null?void 0:ge.showLink)&&((xe=t==null?void 0:t.meta)==null?void 0:xe.showLink)===!1?Object.keys(t.query).length>0?Ye(t.query,P.query)?ne:ye:Ye(t.params,P.params)?ne:ye:t.path===P.path?ne:ye}const x=j(()=>(P,ne)=>{if(ne!==0)return z(P,!0,!1)}),O=j(()=>P=>z(P,"is-active","")),H=j(()=>P=>z(P,"schedule-active","")),L=j(()=>({transform:`translateX(${s.value}px)`,transition:w.value?"none":"transform 0.5s ease-in-out"})),W=j(()=>({left:l.value+"px",top:c.value+"px"})),J=()=>{p.value=!1};function T(P){if(P&&(f.value=P),o(m)==="smart"){if(it(n.refs["schedule"+P][0],"schedule-active"))return;qe(!0,"schedule-in",n.refs["schedule"+P][0]),qe(!1,"schedule-out",n.refs["schedule"+P][0])}else{if(it(n.refs["dynamic"+P][0],"is-active"))return;qe(!0,"card-in",n.refs["dynamic"+P][0]),qe(!1,"card-out",n.refs["dynamic"+P][0])}}function D(P){if(f.value=-1,o(m)==="smart"){if(it(n.refs["schedule"+P][0],"schedule-active"))return;qe(!1,"schedule-in",n.refs["schedule"+P][0]),qe(!0,"schedule-out",n.refs["schedule"+P][0])}else{if(it(n.refs["dynamic"+P][0],"is-active"))return;qe(!1,"card-in",n.refs["dynamic"+P][0]),qe(!0,"card-out",n.refs["dynamic"+P][0])}}function q(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ue(()=>{if(!m.value){const P=je().getItem(`${ot()}configure`);P.showModel="card",je().setItem(`${ot()}configure`,P)}}),{Close:ht,route:t,router:e,visible:p,showTags:g,instance:n,multiTags:y,showModel:m,tagsViews:k,buttonTop:c,buttonLeft:l,translateX:s,pureSetting:a,activeIndex:f,getTabStyle:L,isScrolling:w,iconIsActive:x,linkIsActive:O,currentSelect:v,scheduleIsActive:H,getContextMenuStyle:W,$t:Ze,closeMenu:J,onMounted:Ue,onMouseenter:T,onMouseleave:D,transformI18n:Pe,onContentFullScreen:q}}const ns={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"/>'},os={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"/>'};var as={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 ss={class:"arrow-left"},ls=["onContextmenu","onMouseenter","onMouseleave","onClick"],rs={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},is=["onClick"],cs={class:"arrow-right"},us=["onClick"],ds={class:"arrow-down"},hs=te({__name:"index",setup(t){var Bt;const{Close:e,route:n,router:a,visible:c,showTags:l,instance:s,multiTags:p,tagsViews:f,buttonTop:v,buttonLeft:w,showModel:m,translateX:g,pureSetting:y,activeIndex:k,getTabStyle:z,isScrolling:x,iconIsActive:O,linkIsActive:H,currentSelect:L,scheduleIsActive:W,getContextMenuStyle:J,closeMenu:T,onMounted:D,onMouseenter:q,onMouseleave:le,transformI18n:Q,onContentFullScreen:P}=ts(),ne=Z(),ye=Z(),ge=Z(),xe=Z(),Te=Z(!1),Ie=(Bt=ut())==null?void 0:Bt.path,{VITE_HIDE_HOME:r}=as,_=()=>tt(this,null,function*(){yield Ne();const S=p.value.findIndex(A=>Ke(n.query)?Ke(n.params)?n.path===A.path:Ye(n.params,A.params):Ye(n.query,A.query));$(S)}),$=S=>tt(this,null,function*(){var he,Ve;yield Ne();const A=10;if(!s.refs["dynamic"+S])return;const E=s.refs["dynamic"+S][0],G=E==null?void 0:E.offsetLeft,ce=E==null?void 0:E.offsetWidth,B=ge.value?(he=ge.value)==null?void 0:he.offsetWidth:0,F=ne.value?(Ve=ne.value)==null?void 0:Ve.offsetWidth:0;B<=F?Te.value=!0:Te.value=!1,F<B||G===0?g.value=0:G<-g.value?g.value=-G+A:G>-g.value&&G+ce<-g.value+B?g.value=Math.min(0,B-ce-G-A):g.value=-(G-(B-A-ce))}),K=S=>{var G;const A=ge.value?(G=ge.value)==null?void 0:G.offsetWidth:0,E=ne.value?ne.value.offsetWidth:0;S>0?g.value=Math.min(0,g.value+S):A<E?g.value>=-(E-A)&&(g.value=Math.max(g.value+S,A-E)):g.value=0,x.value=!1},se=S=>{x.value=!0;const A=Math.abs(S.deltaX)+Math.abs(S.deltaY);let E=0;S.deltaX<0?E=A>0?A:100:E=A>0?-A:-100,ee(E)},ee=S=>{let E=Math.abs(S);const G=()=>{const ce=Math.sign(S)*Math.min(20,E);K(ce),E-=Math.abs(ce),E>0&&requestAnimationFrame(G)};requestAnimationFrame(G)};function i(S){const A=p.value.some(G=>G.path===S);function E(G,ce){A||G.forEach(B=>{B.path===ce?Re().handleTags("push",{path:ce,meta:B.meta,name:B.name}):B.children&&B.children.length>0&&E(B.children,ce)})}E(a.options.routes,S)}function u(){const{fullPath:S,query:A}=o(n);a.replace({path:"/redirect"+S,query:A}),kt(n,"refresh")}function I(S,A,E){var F,he,Ve,Ft;const G=p.value.findIndex(He=>{if(He.query){if(He.path===S.path)return He.query===S.query}else if(He.params){if(He.path===S.path)return He.params===S.params}else return He.path===S.path}),ce=(He,kn,Cn)=>{Cn?Re().handleTags("equal",[r==="false"?Pn[0]:$e(ut()),S]):Re().handleTags("splice","",{startIndex:He,length:kn}),_()};E==="other"?ce(1,1,!0):E==="left"?ce(1,G-1):E==="right"?ce(G+1,p.value.length):ce(G,1);const B=Re().handleTags("slice");if(A===n.path){if(E==="left")return;(F=B[0])!=null&&F.query?a.push({name:B[0].name,query:B[0].query}):(he=B[0])!=null&&he.params?a.push({name:B[0].name,params:B[0].params}):a.push({path:B[0].path})}else{if(!p.value.length||p.value.some(He=>He.path===n.path))return;(Ve=B[0])!=null&&Ve.query?a.push({name:B[0].name,query:B[0].query}):(Ft=B[0])!=null&&Ft.params?a.push({name:B[0].name,params:B[0].params}):a.push({path:B[0].path})}}function U(S,A){I(S,S.path,A),kt(n)}function Y(S,A,E){if(A&&A.disabled)return;let G;switch(E?G={path:E.path,meta:E.meta,name:E.name,query:E==null?void 0:E.query,params:E==null?void 0:E.params}:G={path:n.path,meta:n.meta},S){case 0:u();break;case 1:U(G);break;case 2:U(G,"left");break;case 3:U(G,"right");break;case 4:U(G,"other");break;case 5:Re().handleTags("splice","",{startIndex:1,length:p.value.length}),a.push(Ie),kt(n);break;case 6:P(),setTimeout(()=>{y.hiddenSideBar?(f[6].icon=Rn,f[6].text=Ze("buttons.hscontentExitFullScreen")):(f[6].icon=an,f[6].text=Ze("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{et(n.fullPath,n.query)})}function me(S){const{key:A,item:E}=S;Y(A,E)}function N(S,A){T(),Y(S,A,L.value)}function be(S){Array.of(1,2,3,4,5).forEach(A=>{f[A].show=S})}function rt(S){Array.of(1,2,3,4,5).forEach(A=>{f[A].disabled=S})}function et(S,A={},E=!1){const G=p.value,ce=p.value.length;let B=-1;Ke(A)?B=G.findIndex(F=>F.path===S):B=G.findIndex(F=>Ye(F.query,A)),be(!0),E&&(f[0].show=!0),B===1&&ce!==2?(f[2].show=!1,Array.of(1,3,4,5).forEach(F=>{f[F].disabled=!1}),f[2].disabled=!0):B===1&&ce===2?(rt(!1),Array.of(2,3,4).forEach(F=>{f[F].show=!1,f[F].disabled=!0})):ce-1===B&&B!==0?(f[3].show=!1,Array.of(1,2,4,5).forEach(F=>{f[F].disabled=!1}),f[3].disabled=!0):B===0||S===`/redirect${Ie}`?rt(!0):rt(!1)}function bn(S,A){T(),S.path===Ie?(be(!1),f[0].show=!0):n.path!==S.path&&n.name!==S.name?(f[0].show=!1,et(S.path,S.query)):p.value.length===2&&n.path!==S.path?(be(!0),f[4].show=!1):n.path===S.path&&et(S.path,S.query,!0),L.value=S;const E=140,G=o(ye).getBoundingClientRect().left,B=o(ye).offsetWidth-E,F=A.clientX-G+5;F>B?w.value=B:w.value=F,Ot().hiddenSideBar?v.value=A.clientY:v.value=A.clientY-40,Ne(()=>{c.value=!0})}function wn(S){const{name:A,path:E}=S;A?S.query?a.push({name:A,query:S.query}):S.params?a.push({name:A,params:S.params}):a.push({name:A}):a.push({path:E})}return sn(xe,T,{detectIframe:!0}),Ae(n,()=>{k.value=-1,_()}),D(()=>{s&&(et(n.fullPath),Se.on("tagViewsChange",S=>{o(l)!==S&&(l.value=S)}),Se.on("tagViewsShowModel",S=>{m.value=S}),Se.on("changLayoutRoute",S=>{i(S),setTimeout(()=>{et(S)})}),ft(ge,_),nn().then(()=>_()))}),Ht(()=>{Se.off("tagViewsChange"),Se.off("tagViewsShowModel"),Se.off("changLayoutRoute")}),(S,A)=>{const E=V("IconifyIconOffline"),G=V("el-dropdown-item"),ce=V("el-dropdown-menu"),B=V("el-dropdown");return o(l)?X("",!0):(d(),M("div",{key:0,ref_key:"containerDom",ref:ye,class:"tags-view"},[ie(b("span",ss,[h(E,{icon:o(os),onClick:A[0]||(A[0]=F=>K(200))},null,8,["icon"])],512),[[Ce,Te.value]]),b("div",{ref_key:"scrollbarDom",ref:ge,class:"scroll-container",onWheel:Fe(se,["prevent"])},[b("div",{ref_key:"tabDom",ref:ne,class:"tab select-none",style:re(o(z))},[(d(!0),M(ve,null,ke(o(p),(F,he)=>(d(),M("div",{ref_for:!0,ref:"dynamic"+he,key:he,class:ue(["scroll-item is-closable",o(H)(F)]),onContextmenu:Fe(Ve=>bn(F,Ve),["prevent"]),onMouseenter:Fe(Ve=>o(q)(he),["prevent"]),onMouseleave:Fe(Ve=>o(le)(he),["prevent"]),onClick:Ve=>wn(F)},[b("span",rs,ae(o(Q)(F.meta.title)),1),o(O)(F,he)||he===o(k)&&he!==0?(d(),M("span",{key:0,class:"el-icon-close",onClick:Fe(Ve=>U(F),["stop"])},[h(E,{icon:o(e)},null,8,["icon"])],8,is)):X("",!0),o(m)!=="card"?(d(),M("span",{key:1,ref_for:!0,ref:"schedule"+he,class:ue([o(W)(F)])},null,2)):X("",!0)],42,ls))),128))],4)],544),ie(b("span",cs,[h(E,{icon:o(so),onClick:A[1]||(A[1]=F=>K(-200))},null,8,["icon"])],512),[[Ce,Te.value]]),h(Lt,{name:"el-zoom-in-top"},{default:C(()=>[ie((d(),M("ul",{ref_key:"contextmenuRef",ref:xe,key:Math.random(),style:re(o(J)),class:"contextmenu"},[(d(!0),M(ve,null,ke(o(f).slice(0,6),(F,he)=>(d(),M("div",{key:he,style:{display:"flex","align-items":"center"}},[F.show?(d(),M("li",{key:0,onClick:Ve=>N(he,F)},[h(E,{icon:F.icon},null,8,["icon"]),fe(" "+ae(o(Q)(F.text)),1)],8,us)):X("",!0)]))),128))],4)),[[Ce,o(c)]])]),_:1}),h(B,{trigger:"click",placement:"bottom-end",onCommand:me},{dropdown:C(()=>[h(ce,null,{default:C(()=>[(d(!0),M(ve,null,ke(o(f),(F,he)=>(d(),R(G,{key:he,command:{key:he,item:F},divided:F.divided,disabled:F.disabled},{default:C(()=>[h(E,{icon:F.icon},null,8,["icon"]),fe(" "+ae(o(Q)(F.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:C(()=>[b("span",ds,[h(E,{icon:o(ns),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),fs=_e(hs,[["__scopeId","data-v-718536cb"]]),ps={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},ms={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},vs=te({__name:"index",setup(t){const e=Ge("Title");return(n,a)=>(d(),M("footer",ps,[fe(" Copyright © 2020-present "),b("a",ms," "+ae(o(e)),1)]))}}),en=_e(vs,[["__scopeId","data-v-44b5e275"]]),nt=new Map,_s=()=>{function t(a,c){nt.set(a,c)}function e(a){return a?nt.get(a):[...nt.entries()]}function n(a){nt.delete(a)}return{setMap:t,getMap:e,delMap:n,MAP:nt}},gs={class:"w-full h-full"},ys=te({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=Ct([]),{setMap:a,getMap:c,MAP:l,delMap:s}=_s(),p=j(()=>{var v,w;return Ge().KeepAlive&&((v=e.currRoute.meta)==null?void 0:v.keepAlive)&&!!((w=e.currRoute.meta)!=null&&w.frameSrc)}),f=j(()=>!p.value&&e.currComp);return Ae(Re().multiTags,v=>{if(!Array.isArray(v)||!p.value)return;if(v.filter(m=>{var g;return(g=m.meta)==null?void 0:g.frameSrc}).length<l.size)for(const m of l.keys())v.some(g=>g.path===m)||(s(m),n.value=c())}),Ae(()=>e.currRoute.fullPath,v=>{const m=Re().multiTags.filter(g=>{var y;return(y=g.meta)==null?void 0:y.frameSrc});p.value&&m.length!==l.size&&([...l.keys()].find(y=>v===y)||a(v,e.currComp)),l.size>0&&(n.value=c())},{immediate:!0}),(v,w)=>(d(),M(ve,null,[(d(!0),M(ve,null,ke(n.value,([m,g])=>{var y;return ie((d(),M("div",{key:m,class:"w-full h-full"},[dt(v.$slots,"default",{fullPath:m,Comp:g,frameInfo:{frameSrc:(y=v.currRoute.meta)==null?void 0:y.frameSrc,fullPath:m}})],512)),[[Ce,m===e.currRoute.fullPath]])}),128)),ie(b("div",gs,[dt(v.$slots,"default",{Comp:f.value,fullPath:e.currRoute.fullPath})],512),[[Ce,!p.value]])],64))}}),bs={class:"grow"},ws={key:1,class:"grow"},ks=te({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=pt(),c=j(()=>a==null?void 0:a.KeepAlive),l=j(()=>m=>m.meta.transition),s=j(()=>n==null?void 0:n.configure.hideTabs),p=j(()=>n==null?void 0:n.configure.hideFooter),f=j(()=>(n==null?void 0:n.layout.layout)==="vertical"),v=j(()=>[s.value&&f?"padding-top: 48px;":"",!s.value&&f?"padding-top: 85px;":"",s.value&&!f.value?"padding-top: 48px;":"",!s.value&&!f.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${s.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),w=te({props:{route:{type:void 0,required:!0}},render(){var k,z,x;const m=((k=l.value(this.route))==null?void 0:k.name)||"fade-transform",g=(z=l.value(this.route))==null?void 0:z.enterTransition,y=(x=l.value(this.route))==null?void 0:x.leaveTransition;return at(Lt,{name:g?"pure-classes-transition":m,enterActiveClass:g?`animate__animated ${g}`:void 0,leaveActiveClass:y?`animate__animated ${y}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(m,g)=>{const y=V("el-backtop"),k=V("el-scrollbar"),z=V("router-view");return d(),M("section",{class:ue([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:re(v.value)},[h(z,null,{default:C(({Component:x,route:O})=>[h(ys,{currComp:x,currRoute:O},{default:C(({Comp:H,fullPath:L,frameInfo:W})=>[e.fixedHeader?(d(),R(k,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:C(()=>[h(y,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:C(()=>[h(o(dn))]),_:1}),b("div",bs,[h(o(w),{route:O},{default:C(()=>[c.value?(d(),R(Wt,{key:0,include:o(Me)().cachePageList},[(d(),R(Le(H),{key:L,frameInfo:W,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(d(),R(Le(H),{key:L,frameInfo:W,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),p.value?X("",!0):(d(),R(en,{key:0}))]),_:2},1024)):(d(),M("div",ws,[h(o(w),{route:O},{default:C(()=>[c.value?(d(),R(Wt,{key:0,include:o(Me)().cachePageList},[(d(),R(Le(H),{key:L,frameInfo:W,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(d(),R(Le(H),{key:L,frameInfo:W,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!p.value&&!e.fixedHeader?(d(),R(en,{key:0})):X("",!0)],6)}}}),tn=_e(ks,[["__scopeId","data-v-ca0a972a"]]),mn=t=>(ln("data-v-af01f247"),t=t(),rn(),t),Cs=mn(()=>b("div",{class:"right-panel-background"},null,-1)),xs={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Is=mn(()=>b("h4",{class:"dark:text-white"},"项目配置",-1)),$s={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Ss=te({__name:"index",setup(t){const e=Z(null),n=Z(!1),a=j(()=>["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:c}=Zt();return sn(e,l=>{l.clientX>e.value.offsetLeft||(n.value=!1)}),Ue(()=>{Se.on("openPanel",()=>{n.value=!0})}),Ht(()=>{Se.off("openPanel")}),(l,s)=>{const p=V("IconifyIconOffline"),f=V("el-scrollbar"),v=V("el-button"),w=Qe("tippy");return d(),M("div",{class:ue({show:n.value})},[Cs,b("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[b("div",xs,[Is,ie((d(),M("span",{class:ue(a.value)},[h(p,{class:"dark:text-white",width:"18px",height:"18px",icon:o(ht),onClick:s[0]||(s[0]=m=>n.value=!n.value)},null,8,["icon"])],2)),[[w,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),h(f,null,{default:C(()=>[dt(l.$slots,"default",{},void 0,!0)]),_:3}),b("div",$s,[ie((d(),R(v,{type:"danger",text:"",bg:"",onClick:o(c)},{default:C(()=>[fe(" 清空缓存 ")]),_:1},8,["onClick"])),[[w,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Ms=_e(Ss,[["__scopeId","data-v-af01f247"]]),Ts={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},Vs=b("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),zs=b("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),Hs=[Vs,zs];function Ls(t,e){return d(),M("svg",Ts,[...Hs])}const As={render:Ls},we=t=>(ln("data-v-fb2af4d8"),t=t(),rn(),t),Es={class:"p-6"},Zs=we(()=>b("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),Os=we(()=>b("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),Rs={class:"theme-color"},Ps=["onClick"],Ds=we(()=>b("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),js={class:"pure-theme"},qs=we(()=>b("div",null,null,-1)),Bs=we(()=>b("div",null,null,-1)),Fs=[qs,Bs],Ns=we(()=>b("div",null,null,-1)),Us=we(()=>b("div",null,null,-1)),Ws=[Ns,Us],Gs=we(()=>b("div",null,null,-1)),Ks=we(()=>b("div",null,null,-1)),Ys=[Gs,Ks],Xs=we(()=>b("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),Js=we(()=>b("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),Qs={class:"setting"},el=we(()=>b("span",{class:"dark:text-white"},"灰色模式",-1)),tl=we(()=>b("span",{class:"dark:text-white"},"色弱模式",-1)),nl=we(()=>b("span",{class:"dark:text-white"},"隐藏标签页",-1)),ol=we(()=>b("span",{class:"dark:text-white"},"隐藏页脚",-1)),al=we(()=>b("span",{class:"dark:text-white"},"Logo",-1)),sl=we(()=>b("span",{class:"dark:text-white"},"页签持久化",-1)),ll=te({__name:"index",setup(t){var $,K,se,ee;const{device:e}=ze(),{isDark:n}=cn(),{$storage:a}=pt(),c=Z(),l=Z(),s=Z(),{dataTheme:p,overallStyle:f,layoutTheme:v,themeColors:w,toggleClass:m,dataThemeChange:g,setLayoutThemeColor:y}=Zt();if(o(v)){const i=o(v).layout,u=o(v).theme;Jn({scopeName:`layout-theme-${u}`}),xe(i)}const k=Z((K=($=a.configure)==null?void 0:$.showModel)!=null?K:"smart"),z=Z((ee=(se=a.configure)==null?void 0:se.showLogo)!=null?ee:!0),x=zt({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}),O=j(()=>i=>({background:i})),H=j(()=>i=>!(i==="light"&&n.value));function L(i,u){const I=a.configure;I[i]=u,a.configure=I}const W=i=>{const u=document.querySelector("html");m(x.greyVal,"html-grey",u),L("grey",i)},J=i=>{const u=document.querySelector("html");m(x.weakVal,"html-weakness",u),L("weak",i)},T=()=>{const i=x.tabsVal;L("hideTabs",i),Se.emit("tagViewsChange",i)},D=()=>{const i=x.hideFooter;L("hideFooter",i)},q=()=>{const i=x.multiTagsCache;L("multiTagsCache",i),Re().multiTagsCacheChange(i)};function le({option:i}){const{value:u}=i;k.value=u,L("showModel",u),Se.emit("tagViewsShowModel",u)}function Q(){o(z)?L("showLogo",!0):L("showLogo",!1),Se.emit("logoChange",o(z))}function P(i){i.forEach(u=>{m(!1,"is-select",o(u))})}const ne=j(()=>i=>i===v.value.theme&&v.value.theme!=="light"?"#fff":i===v.value.theme&&v.value.theme==="light"?"#1d2b45":"transparent"),ye=j(()=>[{label:"浅色",icon:Qn,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"深色",icon:eo,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"自动",icon:As,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:n.value?"#fff":"#000"}}]),ge=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function xe(i){var u,I,U,Y,me;v.value.layout=i,window.document.body.setAttribute("layout",i),a.layout={layout:i,theme:v.value.theme,darkMode:(u=a.layout)==null?void 0:u.darkMode,sidebarStatus:(I=a.layout)==null?void 0:I.sidebarStatus,epThemeColor:(U=a.layout)==null?void 0:U.epThemeColor,themeColor:(Y=a.layout)==null?void 0:Y.themeColor,overallStyle:(me=a.layout)==null?void 0:me.overallStyle},We().setLayout(i)}Ae(a,({layout:i})=>{switch(i.layout){case"vertical":m(!0,"is-select",o(l)),Je(P([s]),50),Je(P([c]),50);break;case"horizontal":m(!0,"is-select",o(s)),Je(P([l]),50),Je(P([c]),50);break;case"mix":m(!0,"is-select",o(c)),Je(P([l]),50),Je(P([s]),50);break}});const Te=window.matchMedia("(prefers-color-scheme: dark)");function Ie(){f.value==="system"&&(Te.matches?p.value=!0:p.value=!1,g(f.value))}function r(){Te.removeEventListener("change",Ie)}function _(){Ie(),r(),Te.addEventListener("change",Ie)}return un(()=>{Ne(()=>{var i,u;_(),x.greyVal&&((i=document.querySelector("html"))==null||i.classList.add("html-grey")),x.weakVal&&((u=document.querySelector("html"))==null||u.classList.add("html-weakness")),x.tabsVal&&T(),x.hideFooter&&D()})}),Dn(()=>r),(i,u)=>{const I=V("IconifyIconOffline"),U=V("el-icon"),Y=V("el-switch"),me=Qe("tippy");return d(),R(Ms,null,{default:C(()=>[b("div",Es,[Zs,h(o(Kt),{class:"select-none",modelValue:o(f)==="system"?2:o(p)?1:0,options:ye.value,onChange:u[0]||(u[0]=N=>{N.index===1&&N.index!==2?p.value=!0:p.value=!1,f.value=N.option.theme,o(g)(N.option.theme),N.index===2&&_()})},null,8,["modelValue","options"]),Os,b("ul",Rs,[(d(!0),M(ve,null,ke(o(w),(N,be)=>ie((d(),M("li",{key:be,style:re(O.value(N.color)),onClick:rt=>o(y)(N.themeColor)},[h(U,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:ne.value(N.themeColor)},{default:C(()=>[h(I,{icon:o(Xe)},null,8,["icon"])]),_:2},1032,["color"])],12,Ps)),[[Ce,H.value(N.themeColor)]])),128))]),Ds,b("ul",js,[ie((d(),M("li",{ref_key:"verticalRef",ref:l,class:ue(o(v).layout==="vertical"?"is-select":""),onClick:u[1]||(u[1]=N=>xe("vertical"))},Fs,2)),[[me,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),o(e)!=="mobile"?ie((d(),M("li",{key:0,ref_key:"horizontalRef",ref:s,class:ue(o(v).layout==="horizontal"?"is-select":""),onClick:u[2]||(u[2]=N=>xe("horizontal"))},Ws,2)),[[me,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):X("",!0),o(e)!=="mobile"?ie((d(),M("li",{key:1,ref_key:"mixRef",ref:c,class:ue(o(v).layout==="mix"?"is-select":""),onClick:u[3]||(u[3]=N=>xe("mix"))},Ys,2)),[[me,{content:"混合菜单,灵活多变",zIndex:41e3}]]):X("",!0)]),Xs,h(o(Kt),{class:"select-none",modelValue:k.value==="smart"?0:1,options:ge,onChange:le},null,8,["modelValue"]),Js,b("ul",Qs,[b("li",null,[el,h(Y,{modelValue:x.greyVal,"onUpdate:modelValue":u[4]||(u[4]=N=>x.greyVal=N),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),b("li",null,[tl,h(Y,{modelValue:x.weakVal,"onUpdate:modelValue":u[5]||(u[5]=N=>x.weakVal=N),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:J},null,8,["modelValue"])]),b("li",null,[nl,h(Y,{modelValue:x.tabsVal,"onUpdate:modelValue":u[6]||(u[6]=N=>x.tabsVal=N),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:T},null,8,["modelValue"])]),b("li",null,[ol,h(Y,{modelValue:x.hideFooter,"onUpdate:modelValue":u[7]||(u[7]=N=>x.hideFooter=N),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:D},null,8,["modelValue"])]),b("li",null,[al,h(Y,{modelValue:z.value,"onUpdate:modelValue":u[8]||(u[8]=N=>z.value=N),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:Q},null,8,["modelValue"])]),b("li",null,[sl,h(Y,{modelValue:x.multiTagsCache,"onUpdate:modelValue":u[9]||(u[9]=N=>x.multiTagsCache=N),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:q},null,8,["modelValue"])])])])]),_:1})}}}),rl=_e(ll,[["__scopeId","data-v-fb2af4d8"]]),il=["src"],cl={class:"sidebar-title"},ul=["src"],dl={class:"sidebar-title"},hl=te({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=ze();return(c,l)=>{const s=V("router-link");return d(),M("div",{class:ue(["sidebar-logo-container",{collapses:e.collapse}])},[h(Lt,{name:"sidebarLogoFade"},{default:C(()=>{var p,f,v,w;return[e.collapse?(d(),R(s,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:(f=(p=o(ut)())==null?void 0:p.path)!=null?f:"/"},{default:C(()=>[b("img",{src:o(a)(),alt:"logo"},null,8,il),b("span",cl,ae(o(n)),1)]),_:1},8,["title","to"])):(d(),R(s,{key:"expand",title:o(n),class:"sidebar-logo-link",to:(w=(v=o(ut)())==null?void 0:v.path)!=null?w:"/"},{default:C(()=>[b("img",{src:o(a)(),alt:"logo"},null,8,ul),b("span",dl,ae(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),fl=_e(hl,[["__scopeId","data-v-1e860333"]]);var lt={exports:{}},vn={},pl=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},$t={exports:{}};typeof Object.create=="function"?$t.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:$t.exports=function(e,n){e.super_=n;var a=function(){};a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e};var ml=$t.exports;(function(t){var e={},n=/%[sdj%]/g;t.format=function(r){if(!W(r)){for(var _=[],$=0;$<arguments.length;$++)_.push(l(arguments[$]));return _.join(" ")}for(var $=1,K=arguments,se=K.length,ee=String(r).replace(n,function(u){if(u==="%%")return"%";if($>=se)return u;switch(u){case"%s":return String(K[$++]);case"%d":return Number(K[$++]);case"%j":try{return JSON.stringify(K[$++])}catch(I){return"[Circular]"}default:return u}}),i=K[$];$<se;i=K[++$])O(i)||!q(i)?ee+=" "+i:ee+=" "+l(i);return ee},t.deprecate=function(r,_){if(T(jn.process))return function(){return t.deprecate(r,_).apply(this,arguments)};if(process.noDeprecation===!0)return r;var $=!1;function K(){if(!$){if(process.throwDeprecation)throw new Error(_);process.traceDeprecation?console.trace(_):console.error(_),$=!0}return r.apply(this,arguments)}return K};var a={},c;t.debuglog=function(r){if(T(c)&&(c=e.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(c)){var _=process.pid;a[r]=function(){var $=t.format.apply(t,arguments);console.error("%s %d: %s",r,_,$)}}else a[r]=function(){};return a[r]};function l(r,_){var $={seen:[],stylize:p};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),x(_)?$.showHidden=_:_&&t._extend($,_),T($.showHidden)&&($.showHidden=!1),T($.depth)&&($.depth=2),T($.colors)&&($.colors=!1),T($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=s),v($,r,$.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 s(r,_){var $=l.styles[_];return $?"\x1B["+l.colors[$][0]+"m"+r+"\x1B["+l.colors[$][1]+"m":r}function p(r,_){return r}function f(r){var _={};return r.forEach(function($,K){_[$]=!0}),_}function v(r,_,$){if(r.customInspect&&_&&P(_.inspect)&&_.inspect!==t.inspect&&!(_.constructor&&_.constructor.prototype===_)){var K=_.inspect($,r);return W(K)||(K=v(r,K,$)),K}var se=w(r,_);if(se)return se;var ee=Object.keys(_),i=f(ee);if(r.showHidden&&(ee=Object.getOwnPropertyNames(_)),Q(_)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return m(_);if(ee.length===0){if(P(_)){var u=_.name?": "+_.name:"";return r.stylize("[Function"+u+"]","special")}if(D(_))return r.stylize(RegExp.prototype.toString.call(_),"regexp");if(le(_))return r.stylize(Date.prototype.toString.call(_),"date");if(Q(_))return m(_)}var I="",U=!1,Y=["{","}"];if(z(_)&&(U=!0,Y=["[","]"]),P(_)){var me=_.name?": "+_.name:"";I=" [Function"+me+"]"}if(D(_)&&(I=" "+RegExp.prototype.toString.call(_)),le(_)&&(I=" "+Date.prototype.toUTCString.call(_)),Q(_)&&(I=" "+m(_)),ee.length===0&&(!U||_.length==0))return Y[0]+I+Y[1];if($<0)return D(_)?r.stylize(RegExp.prototype.toString.call(_),"regexp"):r.stylize("[Object]","special");r.seen.push(_);var N;return U?N=g(r,_,$,i,ee):N=ee.map(function(be){return y(r,_,$,i,be,U)}),r.seen.pop(),k(N,I,Y)}function w(r,_){if(T(_))return r.stylize("undefined","undefined");if(W(_)){var $="'"+JSON.stringify(_).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize($,"string")}if(L(_))return r.stylize(""+_,"number");if(x(_))return r.stylize(""+_,"boolean");if(O(_))return r.stylize("null","null")}function m(r){return"["+Error.prototype.toString.call(r)+"]"}function g(r,_,$,K,se){for(var ee=[],i=0,u=_.length;i<u;++i)Ie(_,String(i))?ee.push(y(r,_,$,K,String(i),!0)):ee.push("");return se.forEach(function(I){I.match(/^\d+$/)||ee.push(y(r,_,$,K,I,!0))}),ee}function y(r,_,$,K,se,ee){var i,u,I;if(I=Object.getOwnPropertyDescriptor(_,se)||{value:_[se]},I.get?I.set?u=r.stylize("[Getter/Setter]","special"):u=r.stylize("[Getter]","special"):I.set&&(u=r.stylize("[Setter]","special")),Ie(K,se)||(i="["+se+"]"),u||(r.seen.indexOf(I.value)<0?(O($)?u=v(r,I.value,null):u=v(r,I.value,$-1),u.indexOf(`
|
||
`)>-1&&(ee?u=u.split(`
|
||
`).map(function(U){return" "+U}).join(`
|
||
`).substr(2):u=`
|
||
`+u.split(`
|
||
`).map(function(U){return" "+U}).join(`
|
||
`))):u=r.stylize("[Circular]","special")),T(i)){if(ee&&se.match(/^\d+$/))return u;i=JSON.stringify(""+se),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=r.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=r.stylize(i,"string"))}return i+": "+u}function k(r,_,$){var K=r.reduce(function(se,ee){return ee.indexOf(`
|
||
`)>=0,se+ee.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?$[0]+(_===""?"":_+`
|
||
`)+" "+r.join(`,
|
||
`)+" "+$[1]:$[0]+_+" "+r.join(", ")+" "+$[1]}function z(r){return Array.isArray(r)}t.isArray=z;function x(r){return typeof r=="boolean"}t.isBoolean=x;function O(r){return r===null}t.isNull=O;function H(r){return r==null}t.isNullOrUndefined=H;function L(r){return typeof r=="number"}t.isNumber=L;function W(r){return typeof r=="string"}t.isString=W;function J(r){return typeof r=="symbol"}t.isSymbol=J;function T(r){return r===void 0}t.isUndefined=T;function D(r){return q(r)&&ye(r)==="[object RegExp]"}t.isRegExp=D;function q(r){return typeof r=="object"&&r!==null}t.isObject=q;function le(r){return q(r)&&ye(r)==="[object Date]"}t.isDate=le;function Q(r){return q(r)&&(ye(r)==="[object Error]"||r instanceof Error)}t.isError=Q;function P(r){return typeof r=="function"}t.isFunction=P;function ne(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=ne,t.isBuffer=pl;function ye(r){return Object.prototype.toString.call(r)}function ge(r){return r<10?"0"+r.toString(10):r.toString(10)}var xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Te(){var r=new Date,_=[ge(r.getHours()),ge(r.getMinutes()),ge(r.getSeconds())].join(":");return[r.getDate(),xe[r.getMonth()],_].join(" ")}t.log=function(){console.log("%s - %s",Te(),t.format.apply(t,arguments))},t.inherits=ml,t._extend=function(r,_){if(!_||!q(_))return r;for(var $=Object.keys(_),K=$.length;K--;)r[$[K]]=_[$[K]];return r};function Ie(r,_){return Object.prototype.hasOwnProperty.call(r,_)}})(vn);var vl={},_l=process.platform==="win32",Ee=vn;function vt(t,e){for(var n=[],a=0;a<t.length;a++){var c=t[a];!c||c==="."||(c===".."?n.length&&n[n.length-1]!==".."?n.pop():e&&n.push(".."):n.push(c))}return n}function st(t){for(var e=t.length-1,n=0;n<=e&&!t[n];n++);for(var a=e;a>=0&&!t[a];a--);return n===0&&a===e?t:n>a?[]:t.slice(n,a+1)}var _n=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,gl=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,de={};function _t(t){var e=_n.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",c=gl.exec(a),l=c[1],s=c[2],p=c[3];return[n,l,s,p]}function qt(t){var e=_n.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function gn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}de.resolve=function(){for(var t="",e="",n=!1,a=arguments.length-1;a>=-1;a--){var c;if(a>=0?c=arguments[a]:t?(c=vl["="+t],(!c||c.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(c=t+"\\")):c=process.cwd(),Ee.isString(c)){if(!c)continue}else throw new TypeError("Arguments to path.resolve must be strings");var l=qt(c),s=l.device,p=l.isUnc,f=l.isAbsolute,v=l.tail;if(!(s&&t&&s.toLowerCase()!==t.toLowerCase())&&(t||(t=s),n||(e=v+"\\"+e,n=f),t&&n))break}return p&&(t=gn(t)),e=vt(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};de.normalize=function(t){var e=qt(t),n=e.device,a=e.isUnc,c=e.isAbsolute,l=e.tail,s=/[\\\/]$/.test(l);return l=vt(l.split(/[\\\/]+/),!c).join("\\"),!l&&!c&&(l="."),l&&s&&(l+="\\"),a&&(n=gn(n)),n+(c?"\\":"")+l};de.isAbsolute=function(t){return qt(t).isAbsolute};de.join=function(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(!Ee.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&t.push(n)}var a=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),de.normalize(a)};de.relative=function(t,e){t=de.resolve(t),e=de.resolve(e);for(var n=t.toLowerCase(),a=e.toLowerCase(),c=st(e.split("\\")),l=st(n.split("\\")),s=st(a.split("\\")),p=Math.min(l.length,s.length),f=p,v=0;v<p;v++)if(l[v]!==s[v]){f=v;break}if(f==0)return e;for(var w=[],v=f;v<l.length;v++)w.push("..");return w=w.concat(c.slice(f)),w.join("\\")};de._makeLong=function(t){if(!Ee.isString(t))return t;if(!t)return"";var e=de.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};de.dirname=function(t){var e=_t(t),n=e[0],a=e[1];return!n&&!a?".":(a&&(a=a.substr(0,a.length-1)),n+a)};de.basename=function(t,e){var n=_t(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};de.extname=function(t){return _t(t)[3]};de.format=function(t){if(!Ee.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ee.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir,a=t.base||"";return n?n[n.length-1]===de.sep?n+a:n+de.sep+a:a};de.parse=function(t){if(!Ee.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=_t(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)}};de.sep="\\";de.delimiter=";";var yl=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,pe={};function gt(t){return yl.exec(t).slice(1)}pe.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Ee.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=vt(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};pe.normalize=function(t){var e=pe.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=vt(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};pe.isAbsolute=function(t){return t.charAt(0)==="/"};pe.join=function(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];if(!Ee.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(t?t+="/"+n:t+=n)}return pe.normalize(t)};pe.relative=function(t,e){t=pe.resolve(t).substr(1),e=pe.resolve(e).substr(1);for(var n=st(t.split("/")),a=st(e.split("/")),c=Math.min(n.length,a.length),l=c,s=0;s<c;s++)if(n[s]!==a[s]){l=s;break}for(var p=[],s=l;s<n.length;s++)p.push("..");return p=p.concat(a.slice(l)),p.join("/")};pe._makeLong=function(t){return t};pe.dirname=function(t){var e=gt(t),n=e[0],a=e[1];return!n&&!a?".":(a&&(a=a.substr(0,a.length-1)),n+a)};pe.basename=function(t,e){var n=gt(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};pe.extname=function(t){return gt(t)[3]};pe.format=function(t){if(!Ee.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ee.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir?t.dir+pe.sep:"",a=t.base||"";return n+a};pe.parse=function(t){if(!Ee.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=gt(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)}};pe.sep="/";pe.delimiter=":";_l?lt.exports=de:lt.exports=pe;lt.exports.posix=pe;lt.exports.win32=de;var bl=lt.exports;const wl=qn(bl),kl=te({name:"LinkItem",__name:"linkItem",props:{to:{}},setup(t){const e=t,n=j(()=>Nn(e.to.name)),a=c=>n.value?{href:c.name,target:"_blank",rel:"noopener"}:{to:c};return(c,l)=>(d(),R(Le(n.value?"a":"router-link"),Bn(Fn(a(c.to))),{default:C(()=>[dt(c.$slots,"default")]),_:3},16))}}),Cl={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"/>'},xl={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"/>'},Il={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"/>'},$l={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"/>'},yn=te({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=Un(),{layout:n,isCollapse:a,tooltipEffect:c,getDivStyle:l}=ze(),s=t,p=j(()=>({width:"100%",display:"flex",alignItems:"center"})),f=j(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),v=j(()=>{var y;return(y=Ge())!=null&&y.MenuArrowIconNoTransition?{"expand-close-icon":Oe(xl),"expand-open-icon":Oe(Cl),"collapse-close-icon":Oe($l),"collapse-open-icon":Oe(Il)}:""}),w=Z(null);function m(y=[],k){var x,O;const z=y.filter(H=>(w.value=H,!0));return(O=(x=z[0])==null?void 0:x.meta)!=null&&O.showParent?!1:z.length===1?!0:z.length===0?(w.value=bt(yt({},k),{path:"",noShowingChildren:!0}),!0):!1}function g(y){const k=/^http(s?):\/\//;return k.test(y)||k.test(s.basePath)?y||s.basePath:wl.posix.resolve(s.basePath,y)}return(y,k)=>{const z=V("el-text"),x=V("el-menu-item"),O=V("sidebar-item",!0),H=V("el-sub-menu");return m(s.item.children,s.item)&&(!w.value.children||w.value.noShowingChildren)?(d(),R(kl,{key:0,to:t.item},{default:C(()=>[h(x,Gt({index:g(w.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:p.value},o(e)),{title:C(()=>[b("div",{style:re(o(l))},[h(o(Yt),{tippyProps:{offset:[0,-10],theme:o(c)},class:"!text-inherit"},{default:C(()=>[fe(ae(o(Pe)(w.value.meta.title)),1)]),_:1},8,["tippyProps"]),h(It,{extraIcon:w.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:C(()=>{var L,W,J,T,D;return[$e(s.item.meta.icon)?(d(),M("div",{key:0,class:"sub-menu-icon",style:re(f.value)},[(d(),R(Le(o(Oe)($e(w.value.meta.icon)||s.item.meta&&$e(s.item.meta.icon)))))],4)):X("",!0),!((L=s.item)!=null&&L.meta.icon)&&o(a)&&o(n)==="vertical"&&((J=(W=s.item)==null?void 0:W.pathList)==null?void 0:J.length)===1||!w.value.meta.icon&&o(a)&&o(n)==="mix"&&((D=(T=s.item)==null?void 0:T.pathList)==null?void 0:D.length)===2?(d(),R(z,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:C(()=>[fe(ae(o(Pe)(w.value.meta.title)),1)]),_:1})):X("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(d(),R(H,Gt({key:1,ref:"subMenu",teleported:"",index:g(s.item.path)},v.value),{title:C(()=>[$e(s.item.meta.icon)?(d(),M("div",{key:0,style:re(f.value),class:"sub-menu-icon"},[(d(),R(Le(o(Oe)(s.item.meta&&$e(s.item.meta.icon)))))],4)):X("",!0),o(n)==="vertical"&&o(a)&&$e(s.item.meta.icon)&&s.item.parentId===null?X("",!0):(d(),R(o(Yt),{key:1,tippyProps:{offset:[0,-10],theme:o(c)},class:ue({"!text-inherit":!0,"!px-4":o(n)!=="horizontal"&&o(a)&&!$e(s.item.meta.icon)&&s.item.parentId===null})},{default:C(()=>[fe(ae(o(Pe)(s.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),o(a)?X("",!0):(d(),R(It,{key:2,extraIcon:s.item.meta.extraIcon},null,8,["extraIcon"]))]),default:C(()=>[(d(!0),M(ve,null,ke(s.item.children,L=>(d(),R(O,{key:L.path,"is-nest":!0,item:L,"base-path":g(L.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Sl={class:"collapse-container"},Ml=te({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=ze(),c=j(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:l}=pt(),s=j(()=>{var v;return(v=l.layout)==null?void 0:v.themeColor}),p=e,f=()=>{p("toggleClick")};return(v,w)=>{const m=V("IconifyIconOffline"),g=Qe("tippy");return d(),M("div",Sl,[ie(h(m,{icon:o(pn),class:ue([c.value,s.value==="light"?"":"text-primary"]),style:re({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:f},null,8,["icon","class","style"]),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])])}}}),Tl=_e(Ml,[["__scopeId","data-v-d14bd14d"]]),Vl=te({__name:"vertical",setup(t){var k,z;const e=Vt(),n=Z((z=(k=je().getItem(`${ot()}configure`))==null?void 0:k.showLogo)!=null?z:!0),{device:a,pureApp:c,isCollapse:l,tooltipEffect:s,menuSelect:p,toggleSideBar:f}=ze(),v=Z([]),w=j(()=>c.layout==="mix"&&a.value!=="mobile"?v.value:Me().wholeMenus),m=j(()=>c.layout==="mix"?!1:w.value.length===0),g=j(()=>{var x;return Ke((x=e.meta)==null?void 0:x.activePath)?e.path:e.meta.activePath});function y(){let x="";x=g.value,v.value=[];const O=Tt(x,Me().wholeMenus),H=ct(O[0]||x,Me().wholeMenus);H!=null&&H.children&&(v.value=H==null?void 0:H.children)}return Ae(()=>[e.path,Me().wholeMenus],()=>{e.path.includes("/redirect")||(y(),p(e.path))}),Ue(()=>{y(),Se.on("logoChange",x=>{n.value=x})}),Ht(()=>{Se.off("logoChange")}),(x,O)=>{const H=V("el-menu"),L=V("el-scrollbar"),W=Qe("loading");return ie((d(),M("div",{class:ue(["sidebar-container",n.value?"has-logo":"no-logo"])},[n.value?(d(),R(fl,{key:0,collapse:o(l)},null,8,["collapse"])):X("",!0),h(L,{"wrap-class":"scrollbar-wrapper",class:ue([o(a)==="mobile"?"mobile":"pc"])},{default:C(()=>[h(H,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:o(l),"collapse-transition":!1,"popper-effect":o(s),"default-active":g.value},{default:C(()=>[(d(!0),M(ve,null,ke(w.value,J=>(d(),R(yn,{key:J.path,item:J,"base-path":J.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),o(a)!=="mobile"?(d(),R(Tl,{key:1,"is-active":o(c).sidebar.opened,onToggleClick:o(f)},null,8,["is-active","onToggleClick"])):X("",!0)],2)),[[W,m.value]])}}}),zl=_e(Vl,[["__scopeId","data-v-3752e90e"]]),Hl={class:"horizontal-header"},Ll=["src"],Al={class:"horizontal-header-right"},El={class:"check-zh"},Zl={class:"check-en"},Ol={class:"el-dropdown-link navbar-bg-hover"},Rl=["src"],Pl={key:0,class:"dark:text-white"},Dl=["title"],jl=te({__name:"horizontal",setup(t){const e=Z(),{t:n,route:a,locale:c,translationCh:l,translationEn:s}=At(e),{title:p,logout:f,backTopMenu:v,onPanel:w,getLogo:m,username:g,userAvatar:y,avatarsStyle:k,getDropdownItemStyle:z,getDropdownItemClass:x}=ze(),O=j(()=>{var H;return Ke((H=a.meta)==null?void 0:H.activePath)?a.path:a.meta.activePath});return Ne(()=>{var H;(H=e.value)==null||H.handleResize()}),(H,L)=>{const W=V("el-menu"),J=V("IconifyIconOffline"),T=V("el-dropdown-item"),D=V("el-dropdown-menu"),q=V("el-dropdown"),le=Qe("loading");return ie((d(),M("div",Hl,[b("div",{class:"horizontal-header-left",onClick:L[0]||(L[0]=(...Q)=>o(v)&&o(v)(...Q))},[b("img",{src:o(m)(),alt:"logo"},null,8,Ll),b("span",null,ae(o(p)),1)]),h(W,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":O.value},{default:C(()=>[(d(!0),M(ve,null,ke(o(Me)().wholeMenus,Q=>(d(),R(yn,{key:Q.path,item:Q,"base-path":Q.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),b("div",Al,[h(Rt,{id:"header-search"}),h(q,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[h(D,{class:"translation"},{default:C(()=>[h(T,{style:re(o(z)(o(c),"zh")),class:ue(["dark:!text-white",o(x)(o(c),"zh")]),onClick:o(l)},{default:C(()=>[ie(b("span",El,[h(J,{icon:o(Xe)},null,8,["icon"])],512),[[Ce,o(c)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),h(T,{style:re(o(z)(o(c),"en")),class:ue(["dark:!text-white",o(x)(o(c),"en")]),onClick:o(s)},{default:C(()=>[ie(b("span",Zl,[h(J,{icon:o(Xe)},null,8,["icon"])],512),[[Ce,o(c)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[h(o(Et),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),h(Dt,{id:"full-screen"}),h(Pt,{id:"header-notice"}),h(q,{trigger:"click"},{dropdown:C(()=>[h(D,{class:"logout"},{default:C(()=>[h(T,{onClick:o(f)},{default:C(()=>[h(J,{icon:o(jt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ae(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[b("span",Ol,[b("img",{src:o(y),style:re(o(k))},null,12,Rl),o(g)?(d(),M("p",Pl,ae(o(g)),1)):X("",!0)])]),_:1}),b("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:L[1]||(L[1]=(...Q)=>o(w)&&o(w)(...Q))},[h(J,{icon:o(mt)},null,8,["icon"])],8,Dl)])])),[[le,o(Me)().wholeMenus.length===0]])}}}),ql=_e(jl,[["__scopeId","data-v-848e7d44"]]),Bl={key:0},Fl=te({__name:"index",setup(t){const e=Z(),{isDark:n}=cn(),{layout:a}=to(),c=on(),l=Ot(),{$storage:s}=pt(),p=zt({sidebar:j(()=>We().sidebar),device:j(()=>We().device),fixedHeader:j(()=>l.fixedHeader),classes:j(()=>({hideSidebar:!p.sidebar.opened,openSidebar:p.sidebar.opened,withoutAnimation:p.sidebar.withoutAnimation,mobile:p.device==="mobile"})),hideTabs:j(()=>s==null?void 0:s.configure.hideTabs)});function f(g){var y,k,z,x,O,H;window.document.body.setAttribute("layout",g),s.layout={layout:`${g}`,theme:(y=s.layout)==null?void 0:y.theme,darkMode:(k=s.layout)==null?void 0:k.darkMode,sidebarStatus:(z=s.layout)==null?void 0:z.sidebarStatus,epThemeColor:(x=s.layout)==null?void 0:x.epThemeColor,themeColor:(O=s.layout)==null?void 0:O.themeColor,overallStyle:(H=s.layout)==null?void 0:H.overallStyle}}function v(g,y){We().toggleDevice(g),We().toggleSideBar(y,"resize")}let w=!0;ft(e,g=>{if(c)return;const y=g[0],[{inlineSize:k}]=y.borderBoxSize;k<=760?f("vertical"):f(We().layout),k>0&&k<=760?(v("mobile",!1),w=!0):k>760&&k<=990?w&&(v("desktop",!1),w=!1):k>990&&!p.sidebar.isClickCollapse?(v("desktop",!0),w=!0):(v("desktop",!1),w=!1)}),Ue(()=>{c&&v("mobile",!1)}),un(()=>{var g;Zt().dataThemeChange((g=s.layout)==null?void 0:g.overallStyle)});const m=te({render(){return at("div",{class:{"fixed-header":p.fixedHeader},style:[p.hideTabs&&a.value.includes("horizontal")?n.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"))?at(Ya):null,!l.hiddenSideBar&&a.value.includes("horizontal")?at(ql):null,at(fs)]})}});return(g,y)=>{const k=V("el-backtop"),z=V("el-scrollbar");return d(),M("div",{ref_key:"appWrapperRef",ref:e,class:ue(["app-wrapper",p.classes])},[ie(b("div",{class:"app-mask",onClick:y[0]||(y[0]=x=>o(We)().toggleSideBar())},null,512),[[Ce,p.device==="mobile"&&p.sidebar.opened&&o(a).includes("vertical")]]),ie(h(zl,null,null,512),[[Ce,!o(l).hiddenSideBar&&(o(a).includes("vertical")||o(a).includes("mix"))]]),b("div",{class:ue(["main-container",o(l).hiddenSideBar?"main-hidden":""])},[p.fixedHeader?(d(),M("div",Bl,[h(o(m)),h(tn,{"fixed-header":p.fixedHeader},null,8,["fixed-header"])])):(d(),R(z,{key:1},{default:C(()=>[h(k,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:C(()=>[h(o(dn))]),_:1}),h(o(m)),h(tn,{"fixed-header":p.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),h(rl)],2)}}}),ur=_e(Fl,[["__scopeId","data-v-e1cc1ddb"]]);export{ur as default};
|