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