mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
89 KiB
JavaScript
11 lines
89 KiB
JavaScript
var Sn=Object.defineProperty,Mn=Object.defineProperties;var Vn=Object.getOwnPropertyDescriptors;var Yt=Object.getOwnPropertySymbols;var Tn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable;var Jt=(t,e,n)=>e in t?Sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kt=(t,e)=>{for(var n in e||(e={}))Tn.call(e,n)&&Jt(t,n,e[n]);if(Yt)for(var n of Yt(e))Hn.call(e,n)&&Jt(t,n,e[n]);return t},Ct=(t,e)=>Mn(t,Vn(e));var at=(t,e,n)=>new Promise((a,i)=>{var s=h=>{try{d(n.next(h))}catch(f){i(f)}},l=h=>{try{d(n.throw(h))}catch(f){i(f)}},d=h=>h.done?a(h.value):Promise.resolve(h.value).then(s,l);d((n=n.apply(t,e)).next())});import{fy as te,au as zn,ax as Ye,ay as Ln,e as c,x as S,g as v,d as oe,r as P,$ as At,c as j,c_ as mt,o as Ke,F as ye,y as Ce,n as ue,f as D,W as Ee,u as o,t as se,ad as je,m as u,_ as be,k as H,l as _e,K as J,z as ie,a3 as xe,h as We,w as Ze,c$ as rn,q as Ge,d2 as An,ag as Et,U as En,O as St,ah as Zn,aa as Ve,fz as xt,j as x,dq as On,av as Be,d8 as Je,aG as Rn,a0 as cn,du as Se,v as et,i as le,fA as Zt,fB as dt,af as Ot,fC as De,L as Pn,fD as Qe,aw as st,b as Rt,fE as Re,fF as un,fG as Dn,fH as ut,da as Ne,fI as ht,fJ as dn,s as Pt,b6 as Dt,fK as It,fL as jn,fM as qn,S as ft,fN as vt,d5 as Mt,fO as Qt,M as rt,A as hn,B as fn,as as pn,Y as nt,a1 as mn,a as Bn,Z as Fn,V as Nn,fP as Un,ar as Wn,b7 as Gn,fv as Kn,a6 as en}from"./index-DZuaHQDs.js";import{d as Xn,a as pt}from"./close-CObHKOmY.js";import{d as Yn}from"./home-filled-NADQtN-e.js";import{d as Jn}from"./git-branch-line-BhusJOme.js";import{d as Qn}from"./admin-line-CpqWPwjZ.js";import{d as eo,u as ze,a as jt,g as qt,b as Bt,t as to,c as no,e as oo,f as ao}from"./dark-DKnjvQZp.js";import{u as Xe}from"./app-CJXTvrpt.js";import{m as lo}from"./index-QpUUYT1t.js";import{u as Vt}from"./epTheme-gTdHAM10.js";import{u as Pe}from"./hooks-BoRjbw1y.js";import{S as so}from"./sortable.esm-6WsHlDA5.js";import{d as tt}from"./check-CIQVCvCT.js";import{e as Me}from"./mitt-E5P-NQ8u.js";import{d as ro}from"./refresh-right-Du3ZsAuC.js";import{d as Tt}from"./arrow-right-s-line-CxPb13eK.js";import{b as vn}from"./back_top-DdMFfBRi.js";import{R as $t}from"./index-BR25qlm3.js";import{R as tn}from"./index-BfQnyHy1.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"/>'},_n={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"/>'},_t={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="M12 3v2H3V3h9Zm4 16v2H3v-2h13Zm6-8v2H3v-2h19Z"/>'},Co={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"/>'},Io={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"/>'},$o={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},So={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"/>'},Mo={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"/>'},Vo={width:24,height:24,body:'<path fill="currentColor" d="m16.757 2.997l-2 2H5v14h14V9.239l2-2v12.758a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-16a1 1 0 0 1 1-1h12.757Zm3.728-.9L21.9 3.511l-9.193 9.193l-1.412.002l-.002-1.416l9.192-9.193Z"/>'},To={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"/>'},Ho={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"/>'},zo={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"/>'};te("ep:menu",Xn);te("ep:edit",io);te("ep:set-up",co);te("ep:guide",uo);te("ep:monitor",ho);te("ep:lollipop",fo);te("ep:histogram",po);te("ep:home-filled",Yn);te("ri:bookmark-2-line",mo);te("ri:file-ppt-2-line",vo);te("ri:bank-card-line",_o);te("ri:admin-fill",go);te("ri:file-info-line",yo);te("ri:git-branch-line",Jn);te("ri:links-fill",wo);te("ri:table-line",bo);te("ri:search-line",_n);te("ri:admin-line",Qn);te("ri:settings-3-line",_t);te("ri:bar-chart-horizontal-line",ko);te("ri:window-line",Co);te("ri:file-search-line",Io);te("ri:artboard-line",xo);te("ri:list-check",$o);te("ri:ubuntu-fill",So);te("ri:user-voice-line",Mo);te("ri:edit-box-line",Vo);te("ri:history-fill",To);te("ri:information-line",eo);te("ri:terminal-window-line",Ho);te("ri:checkbox-circle-line",zo);const Lo=zn({id:"pure-setting",state:()=>({title:Ye().Title,fixedHeader:Ye().FixedHeader,hiddenSideBar:Ye().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Ft(){return Lo(Ln)}const Ao={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Eo=v("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8"},null,-1),Zo=[Eo];function Oo(t,e){return c(),S("svg",Ao,[...Zo])}const gn={render:Oo},Ro=["onMouseenter"],Po={class:"result-item-title"},Do=oe({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:n}){const a=P(),i=P(),s=n,l=At(),d=t,h=j(()=>k=>({background:(k==null?void 0:k.path)===f.value?Vt().epThemeColor:"",color:k.path===f.value?"#fff":"",fontSize:k.path===f.value?"16px":"14px"})),f=j({get(){return d.value},set(k){s("update:value",k)}});function b(k){return at(this,null,function*(){f.value=k.path})}function p(){s("enter")}function g(){i.value=window.innerHeight-window.innerHeight/10-140}mt(a,g);function _(k){var A;const L=(A=l==null?void 0:l.proxy)==null?void 0:A.$refs[`resultItemRef${k}`];if(!L)return 0;const R=L[0].offsetTop+128;return R>i.value?R-i.value:0}return Ke(()=>{g()}),e({handleScroll:_}),(k,L)=>(c(),S("div",{ref_key:"resultRef",ref:a,class:"result"},[(c(!0),S(ye,null,Ce(k.options,(w,R)=>{var A,E;return c(),S("div",{key:w.path,ref_for:!0,ref:"resultItemRef"+R,class:"result-item dark:bg-[#1d1d1d]",style:ue(h.value(w)),onClick:p,onMouseenter:W=>b(w)},[(c(),D(Ee(o(Pe)((A=w.meta)==null?void 0:A.icon)))),v("span",Po,se(o(je)((E=w.meta)==null?void 0:E.title)),1),u(o(gn))],44,Ro)}),128))],512))}}),jo=be(Do,[["__scopeId","data-v-b88fa124"]]),qo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Bo=v("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2"},null,-1),Fo=[Bo];function No(t,e){return c(),S("svg",qo,[...Fo])}const Uo={render:No},Wo={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"/>'},Go={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"/>'},Ko={class:"search-footer text-[#333] dark:text-white"},Xo={class:"search-footer-item"},Yo={class:"search-footer-item"},Jo={class:"search-footer-item"},Qo={key:0,class:"search-footer-total"},ea=oe({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=ze();return(a,i)=>{const s=H("IconifyIconOffline");return c(),S("div",Ko,[v("span",Xo,[u(o(gn),{class:"icon"}),_e(" 确认 ")]),v("span",Yo,[u(s,{icon:o(Wo),class:"icon"},null,8,["icon"]),u(s,{icon:o(Go),class:"icon"},null,8,["icon"]),_e(" 切换 ")]),v("span",Jo,[u(o(Uo),{class:"icon"}),_e(" 关闭 ")]),o(n)!=="mobile"&&e.total>0?(c(),S("p",Qo," 共"+se(e.total)+"项 ",1)):J("",!0)])}}}),ta=be(ea,[["__scopeId","data-v-f9c16431"]]),na={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"/>'},oa={class:"history-item-title"},aa=oe({__name:"SearchHistoryItem",props:{item:{}},emits:["collectItem","deleteItem"],setup(t,{emit:e}){const n=e;function a(s){n("collectItem",s)}function i(s){n("deleteItem",s)}return(s,l)=>{var h,f;const d=H("IconifyIconOffline");return c(),S(ye,null,[(c(),D(Ee(o(Pe)((h=s.item.meta)==null?void 0:h.icon)))),v("span",oa,se(o(je)((f=s.item.meta)==null?void 0:f.title)),1),ie(u(d,{icon:o(na),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:l[0]||(l[0]=We(b=>a(s.item),["stop"]))},null,8,["icon"]),[[xe,s.item.type==="history"]]),u(d,{icon:o(pt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:l[1]||(l[1]=We(b=>i(s.item),["stop"]))},null,8,["icon"])],64)}}}),nn=be(aa,[["__scopeId","data-v-a9dc41c7"]]),la=["onMouseenter"],sa={class:"collect-container"},ra=["onMouseenter"],ia=oe({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:e,emit:n}){const a=P(),i=P(),s=P(!1),l=n,d=At(),h=t,f=j(()=>M=>({background:(M==null?void 0:M.path)===p.value?Vt().epThemeColor:"",color:M.path===p.value?"#fff":"",fontSize:M.path===p.value?"16px":"14px"})),b=j(()=>({color:Vt().epThemeColor,fontWeight:500})),p=j({get(){return h.value},set(M){l("update:value",M)}});Ze(()=>h.value,M=>{M&&s.value&&rn(100).then(()=>s.value=!1)});const g=j(()=>h.options.filter(M=>M.type==="history")),_=j(()=>h.options.filter(M=>M.type==="collect"));function k(M){l("collect",M)}function L(M){s.value=!0,l("delete",M)}function w(M){return at(this,null,function*(){s.value||(p.value=M.path)})}function R(){l("enter")}function A(){i.value=window.innerHeight-window.innerHeight/10-140}mt(a,A);function E(M){var ee;const B=(ee=d==null?void 0:d.proxy)==null?void 0:ee.$refs[`historyItemRef${M}`];if(!B)return 0;const ce=(An(B)?B[0]:B).offsetTop+128;return ce>i.value?ce-i.value:0}const W=M=>{l("drag",{oldIndex:M.oldIndex,newIndex:M.newIndex})};let G=null;return Ze(_,M=>{M.length>1&&Ge(()=>{const B=document.querySelector(".collect-container");!B||G||(G=so.create(B,{animation:160,onStart:F=>{F.item.style.cursor="move"},onEnd:F=>{F.item.style.cursor="pointer"},onUpdate:W}),A())})},{deep:!0,immediate:!0}),e({handleScroll:E}),(M,B)=>(c(),S("div",{ref_key:"historyRef",ref:a,class:"history"},[g.value.length?(c(),S(ye,{key:0},[v("div",{style:ue(b.value)},"搜索历史",4),(c(!0),S(ye,null,Ce(g.value,(F,ce)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+ce,class:"history-item dark:bg-[#1d1d1d]",style:ue(f.value(F)),onClick:R,onMouseenter:ee=>w(F)},[u(nn,{item:F,onDeleteItem:L,onCollectItem:k},null,8,["item"])],44,la))),128))],64)):J("",!0),_.value.length?(c(),S(ye,{key:1},[v("div",{style:ue(b.value)}," 收藏"+se(_.value.length>1?"(可拖拽排序)":""),5),v("div",sa,[(c(!0),S(ye,null,Ce(_.value,(F,ce)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+(ce+g.value.length),class:"history-item dark:bg-[#1d1d1d]",style:ue(f.value(F)),onClick:R,onMouseenter:ee=>w(F)},[u(nn,{item:F,onDeleteItem:L},null,8,["item"])],44,ra))),128))])],64)):J("",!0)],512))}}),ca=be(ia,[["__scopeId","data-v-9fa90bc8"]]),ua={class:"search-content"},on="history",da="collect",qe="menu-search-history",Ue="menu-search-collect",ha=oe({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=ze(),a=e,i=t,s=Et(),{locale:l}=En(),d=P(""),h=P(),f=P(),b=P(),p=P(""),g=P(""),_=St([]),k=St([]),L=On(ee,300),w=Ye().MenuSearchHistory,R=P(null),A=j(()=>Zn(Ve().wholeMenus)),E=j({get(){return i.value},set(y){a("update:value",y)}});Ze(()=>i.value,y=>{y&&re()});const W=j(()=>d.value&&_.value.length>0),G=j(()=>!d.value&&k.value.length>0),M=j(()=>!d.value&&k.value.length===0||d.value&&_.value.length===0);function B(y){return Be().getItem(y)||[]}function F(y,C){Be().setItem(y,C)}function ce(y){const C=[];function T(K){K.forEach(V=>{C.push(V),V.children&&T(V.children)})}return T(y),C}function ee(){var C;const y=ce(A.value);_.value=y.filter(T=>{var K,V;return d.value?je((K=T.meta)==null?void 0:K.title).toLocaleLowerCase().includes(d.value.toLocaleLowerCase().trim())||l.value==="zh"&&!Je(lo(je((V=T.meta)==null?void 0:V.title).toLocaleLowerCase(),d.value.toLocaleLowerCase().trim())):!1}),p.value=((C=_.value)==null?void 0:C.length)>0?_.value[0].path:""}function q(){E.value=!1,setTimeout(()=>{_.value=[],g.value="",d.value=""},200)}function ae(y){const T=(_.value.length?h.value:f.value).handleScroll(y);b.value.setScrollTop(T)}function pe(){const y=_.value.length>0,C=y?_.value:k.value,T=y?p.value:g.value;return{options:C,currentPath:T,isResultOptions:y}}function we(y,C){C?p.value=_.value[y].path:g.value=k.value[y].path,ae(y)}function Le(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0)return;const V=(y.findIndex(z=>z.path===C)-1+y.length)%y.length;we(V,T)}function Ie(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0)return;const V=(y.findIndex(z=>z.path===C)+1)%y.length;we(V,T)}function Te(){const{options:y,currentPath:C,isResultOptions:T}=pe();if(y.length===0||C==="")return;const K=y.findIndex(V=>V.path===C);K!==-1&&(T?$():X(),s.push(y[K].path),q())}function r(y){const C=y.type===on?qe:Ue;let T=B(C);T=T.filter(K=>K.path!==y.path),F(C,T),re()}function m(y){let C=B(qe),T=B(Ue);C=C.filter(K=>K.path!==y.path),F(qe,C),T.some(K=>K.path===y.path)||(T.unshift(Ct(kt({},y),{type:da})),F(Ue,T)),re()}function $(){const{path:y,meta:C}=_.value.find(de=>de.path===p.value),T=B(qe),V=B(Ue).some(de=>de.path===y),z=T.findIndex(de=>de.path===y);V||(z!==-1&&T.splice(z,1),T.length>=w&&T.pop(),T.unshift({path:y,meta:C,type:on}),Be().setItem(qe,T))}function X(){let y=B(qe);const C=y.findIndex(T=>T.path===g.value);if(C!==-1){const[T]=y.splice(C,1);y.unshift(T),F(qe,y)}}function re(){var T;const y=B(qe),C=B(Ue);k.value=[...y,...C],g.value=(T=k.value[0])==null?void 0:T.path}function ne(y){const C=B(Ue),[T]=C.splice(y.oldIndex,1);C.splice(y.newIndex,0,T),Be().setItem(Ue,C),k.value=[...B(qe),...B(Ue)],g.value=T.path}return xt("Enter",Te),xt("ArrowUp",Le),xt("ArrowDown",Ie),(y,C)=>{const T=H("IconifyIconOffline"),K=H("el-input"),V=H("el-empty"),z=H("el-scrollbar"),de=H("el-dialog");return c(),D(de,{modelValue:E.value,"onUpdate:modelValue":C[3]||(C[3]=me=>E.value=me),top:"5vh",class:"pure-search-dialog","show-close":!1,width:o(n)==="mobile"?"80vw":"40vw","before-close":q,style:{borderRadius:"6px"},"append-to-body":"",onOpened:C[4]||(C[4]=me=>R.value.focus()),onClosed:C[5]||(C[5]=me=>R.value.blur())},{footer:x(()=>[u(ta,{total:_.value.length},null,8,["total"])]),default:x(()=>[u(K,{ref_key:"inputRef",ref:R,modelValue:d.value,"onUpdate:modelValue":C[0]||(C[0]=me=>d.value=me),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:o(L)},{prefix:x(()=>[u(T,{icon:o(_n),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),v("div",ua,[u(z,{ref_key:"scrollbarRef",ref:b,"max-height":"calc(90vh - 140px)"},{default:x(()=>[M.value?(c(),D(V,{key:0,description:"暂无搜索结果"})):J("",!0),G.value?(c(),D(ca,{key:1,ref_key:"historyRef",ref:f,value:g.value,"onUpdate:value":C[1]||(C[1]=me=>g.value=me),options:k.value,onClick:Te,onDelete:r,onCollect:m,onDrag:ne},null,8,["value","options"])):J("",!0),W.value?(c(),D(jo,{key:2,ref_key:"resultRef",ref:h,value:p.value,"onUpdate:value":C[2]||(C[2]=me=>p.value=me),options:_.value,onClick:Te},null,8,["value","options"])):J("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),fa=be(ha,[["__scopeId","data-v-ba7ee514"]]);function pa(t=!1){const e=P(t);function n(l){e.value=l}function a(){n(!0)}function i(){n(!1)}function s(){n(!e.value)}return{bool:e,setBool:n,setTrue:a,setFalse:i,toggle:s}}const Nt=oe({__name:"index",setup(t){const{bool:e,toggle:n}=pa();function a(){n()}return(i,s)=>{const l=H("IconifyIconOffline");return c(),S("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[u(l,{icon:"ri:search-line"})]),u(o(fa),{value:o(e),"onUpdate:value":s[0]||(s[0]=d=>Rn(e)?e.value=d:null)},null,8,["value"])])}}}),an=[{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"}]}],ma={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},va={class:"notice-container-text"},_a={class:"notice-text-title text-[#000000d9] dark:text-white"},ga={class:"notice-text-datetime text-[#00000073] dark:text-white"},ya=oe({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=P(null),a=P(!1),i=P(null),s=P(!1),{tooltipEffect:l}=ze(),d=cn();function h(){Ge(()=>{var b,p;((b=n.value)==null?void 0:b.scrollWidth)>((p=n.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function f(b,p){const g=document.createElement("span");g.innerText=p,g.className="getDescriptionWidth",document.querySelector("body").appendChild(g);const _=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const k=b.target.offsetWidth;_>2*k?s.value=!0:s.value=!1}return(b,p)=>{var L,w;const g=H("el-avatar"),_=H("el-tooltip"),k=H("el-tag");return c(),S("div",ma,[e.noticeItem.avatar?(c(),D(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):J("",!0),v("div",va,[v("div",_a,[u(_,{"popper-class":"notice-title-popper",effect:o(l),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!o(d)},{default:x(()=>[v("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:h},se(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(c(),D(k,{key:0,type:(w=e.noticeItem)==null?void 0:w.status,size:"small",class:"notice-title-extra"},{default:x(()=>{var R;return[_e(se((R=e.noticeItem)==null?void 0:R.extra),1)]}),_:1},8,["type"])):J("",!0)]),u(_,{"popper-class":"notice-title-popper",effect:o(l),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:x(()=>[v("div",{ref_key:"descriptionRef",ref:i,class:"notice-text-description",onMouseover:p[0]||(p[0]=R=>f(R,e.noticeItem.description))},se(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",ga,se(e.noticeItem.datetime),1)])])}}}),ba=be(ya,[["__scopeId","data-v-2a7dbc48"]]),wa={key:0},ka=oe({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const i=H("el-empty");return e.list.length?(c(),S("div",wa,[(c(!0),S(ye,null,Ce(e.list,(s,l)=>(c(),D(ba,{key:l,noticeItem:s},null,8,["noticeItem"]))),128))])):(c(),D(i,{key:1,description:"暂无消息"}))}}}),Ca={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"/>'},xa={class:"dropdown-badge navbar-bg-hover select-none"},Ia={class:"header-notice-icon"},$a={key:1},Sa={class:"noticeList-container"},Ma=oe({__name:"index",setup(t){const e=P(0),n=P(an),a=P(an[0].key);return n.value.map(i=>e.value+=i.list.length),(i,s)=>{const l=H("IconifyIconOffline"),d=H("el-badge"),h=H("el-empty"),f=H("el-scrollbar"),b=H("el-tab-pane"),p=H("el-tabs"),g=H("el-dropdown-menu"),_=H("el-dropdown");return c(),D(_,{trigger:"click",placement:"bottom-end"},{dropdown:x(()=>[u(g,null,{default:x(()=>[u(p,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=k=>a.value=k),stretch:!0,class:"dropdown-tabs",style:ue({width:n.value.length===0?"200px":"330px"})},{default:x(()=>[n.value.length===0?(c(),D(h,{key:0,description:"暂无消息","image-size":60})):(c(),S("span",$a,[(c(!0),S(ye,null,Ce(n.value,k=>(c(),D(b,{key:k.key,label:`${k.name}(${k.list.length})`,name:`${k.key}`},{default:x(()=>[u(f,{"max-height":"330px"},{default:x(()=>[v("div",Sa,[u(ka,{list:k.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:x(()=>[v("span",xa,[u(d,{value:e.value,max:99},{default:x(()=>[v("span",Ia,[u(l,{icon:o(Ca)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Ut=be(Ma,[["__scopeId","data-v-33dc6db9"]]),Va={key:0,class:"flex justify-center items-center"},Ht=oe({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(c(),S("div",Va,[(c(),D(Ee(o(Pe)(Se(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):J("",!0)}}),Wt=oe({__name:"fullScreen",setup(t){const e=P(),{toggle:n,isFullscreen:a,Fullscreen:i,ExitFullscreen:s}=ze();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ze(a,l=>{e.value=l?s:i},{immediate:!0}),(l,d)=>{const h=H("IconifyIconOffline");return c(),S("span",{class:"fullscreen-icon navbar-bg-hover",onClick:d[0]||(d[0]=(...f)=>o(n)&&o(n)(...f))},[u(h,{icon:e.value},null,8,["icon"])])}}}),Gt={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"/>'},Ta={key:0,class:"horizontal-header"},Ha={class:"select-none"},za={class:"horizontal-header-right"},La={class:"check-zh"},Aa={class:"check-en"},Ea={class:"el-dropdown-link navbar-bg-hover select-none"},Za=["src"],Oa={key:0,class:"dark:text-white"},Ra=["title"],Pa=oe({__name:"mixNav",setup(t){const e=P(),n=P(null),{t:a,route:i,locale:s,translationCh:l,translationEn:d}=jt(e),{device:h,logout:f,onPanel:b,resolvePath:p,username:g,userAvatar:_,getDivStyle:k,avatarsStyle:L,getDropdownItemStyle:w,getDropdownItemClass:R}=ze();function A(E){var M,B,F;const W=Ve().wholeMenus,G=Zt(E,W)[0];n.value=Je((M=i.meta)==null?void 0:M.activePath)?(F=(B=dt(G,W))==null?void 0:B.children[0])==null?void 0:F.path:i.meta.activePath}return Ke(()=>{A(i.path)}),Ge(()=>{var E;(E=e.value)==null||E.handleResize()}),Ze(()=>[i.path,Ve().wholeMenus],()=>{A(i.path)}),(E,W)=>{const G=H("el-menu-item"),M=H("el-menu"),B=H("IconifyIconOffline"),F=H("el-dropdown-item"),ce=H("el-dropdown-menu"),ee=H("el-dropdown"),q=et("loading");return o(h)!=="mobile"?ie((c(),S("div",Ta,[u(M,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":n.value},{default:x(()=>[(c(!0),S(ye,null,Ce(o(Ve)().wholeMenus,ae=>(c(),D(G,{key:ae.path,index:o(p)(ae)||ae.redirect},{title:x(()=>[Se(ae.meta.icon)?(c(),S("div",{key:0,class:le(["sub-menu-icon",ae.meta.icon])},[(c(),D(Ee(o(Pe)(ae.meta&&Se(ae.meta.icon)))))],2)):J("",!0),v("div",{style:ue(o(k))},[v("span",Ha,se(o(je)(ae.meta.title)),1),u(Ht,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",za,[u(Nt,{id:"header-search"}),u(ee,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(ce,{class:"translation"},{default:x(()=>[u(F,{style:ue(o(w)(o(s),"zh")),class:le(["dark:!text-white",o(R)(o(s),"zh")]),onClick:o(l)},{default:x(()=>[ie(v("span",La,[u(B,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(F,{style:ue(o(w)(o(s),"en")),class:le(["dark:!text-white",o(R)(o(s),"en")]),onClick:o(d)},{default:x(()=>[ie(v("span",Aa,[u(B,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(qt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Wt,{id:"full-screen"}),u(Ut,{id:"header-notice"}),u(ee,{trigger:"click"},{dropdown:x(()=>[u(ce,{class:"logout"},{default:x(()=>[u(F,{onClick:o(f)},{default:x(()=>[u(B,{icon:o(Gt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Ea,[v("img",{src:o(_),style:ue(o(L))},null,12,Za),o(g)?(c(),S("p",Oa,se(o(g)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.hssystemSet"),onClick:W[0]||(W[0]=(...ae)=>o(b)&&o(b)(...ae))},[u(B,{icon:o(_t)},null,8,["icon"])],8,Ra)])])),[[q,o(Ve)().wholeMenus.length===0]]):J("",!0)}}}),Da=be(Pa,[["__scopeId","data-v-322f62be"]]),ja=["onClick"],qa=oe({__name:"breadCrumb",setup(t){const e=Ot(),n=P([]),a=Et(),i=a.options.routes,s=De().multiTags,l=()=>{let h;Object.keys(e.query).length>0?s.forEach(p=>{Qe(e.query,p==null?void 0:p.query)&&(h=Se(p))}):Object.keys(e.params).length>0?s.forEach(p=>{Qe(e.params,p==null?void 0:p.params)&&(h=Se(p))}):h=dt(a.currentRoute.value.path,i);const f=Zt(a.currentRoute.value.name,i,"name"),b=[];f.forEach(p=>{p!=="/"&&b.push(dt(p,i))}),b.push(h),b.forEach((p,g)=>{h!=null&&h.query||h!=null&&h.params||p!=null&&p.children&&p.children.forEach(_=>{var k,L;((k=_==null?void 0:_.meta)==null?void 0:k.title)===((L=p==null?void 0:p.meta)==null?void 0:L.title)&&b.splice(g,1)})}),n.value=b.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},d=h=>{const{redirect:f,name:b,path:p}=h;f?a.push(f):b?h.query?a.push({name:b,query:h.query}):h.params?a.push({name:b,params:h.params}):a.push({name:b}):a.push({path:p})};return Ke(()=>{l()}),Ze(()=>e.path,()=>{l()},{deep:!0}),(h,f)=>{const b=H("el-breadcrumb-item"),p=H("el-breadcrumb");return c(),D(p,{class:"!leading-[50px] select-none",separator:"/"},{default:x(()=>[u(Pn,{name:"breadcrumb"},{default:x(()=>[(c(!0),S(ye,null,Ce(n.value,g=>(c(),D(b,{key:g.path,class:"!inline !items-stretch"},{default:x(()=>[v("a",{onClick:We(_=>d(g),["prevent"])},se(o(je)(g.meta.title)),9,ja)]),_:2},1024))),128))]),_:1})]),_:1})}}}),yn={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"/>'},Ba={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"/>'},Fa=["title"],Na=oe({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,a=e,i=()=>{a("toggleClick")};return(s,l)=>{const d=H("IconifyIconOffline");return c(),S("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:i},[u(d,{icon:n.isActive?o(yn):o(Ba),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Fa)}}}),Ua={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},Wa={key:3,class:"vertical-header-right"},Ga={class:"check-en"},Ka={class:"el-dropdown-link navbar-bg-hover select-none"},Xa=["src"],Ya={key:0,class:"dark:text-white"},Ja=["title"],Qa=oe({__name:"navbar",setup(t){const{layout:e,device:n,logout:a,onPanel:i,pureApp:s,username:l,userAvatar:d,avatarsStyle:h,toggleSideBar:f,getDropdownItemStyle:b,getDropdownItemClass:p}=ze(),{t:g,locale:_,translationCh:k,translationEn:L}=jt();return(w,R)=>{const A=H("IconifyIconOffline"),E=H("el-dropdown-item"),W=H("el-dropdown-menu"),G=H("el-dropdown");return c(),S("div",Ua,[o(n)==="mobile"?(c(),D(Na,{key:0,class:"hamburger-container","is-active":o(s).sidebar.opened,onToggleClick:o(f)},null,8,["is-active","onToggleClick"])):J("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(c(),D(qa,{key:1,class:"breadcrumb-container"})):J("",!0),o(e)==="mix"?(c(),D(Da,{key:2})):J("",!0),o(e)==="vertical"?(c(),S("div",Wa,[u(Nt,{id:"header-search"}),u(G,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(W,{class:"translation"},{default:x(()=>[u(E,{style:ue(o(b)(o(_),"zh")),class:le(["dark:!text-white",o(p)(o(_),"zh")]),onClick:o(k)},{default:x(()=>[ie(u(A,{class:"check-zh",icon:o(tt)},null,8,["icon"]),[[xe,o(_)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(E,{style:ue(o(b)(o(_),"en")),class:le(["dark:!text-white",o(p)(o(_),"en")]),onClick:o(L)},{default:x(()=>[ie(v("span",Ga,[u(A,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(_)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(qt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Wt,{id:"full-screen"}),u(Ut,{id:"header-notice"}),u(G,{trigger:"click"},{dropdown:x(()=>[u(W,{class:"logout"},{default:x(()=>[u(E,{onClick:o(a)},{default:x(()=>[u(A,{icon:o(Gt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Ka,[v("img",{src:o(d),style:ue(o(h))},null,12,Xa),o(l)?(c(),S("p",Ya,se(o(l)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(g)("buttons.hssystemSet"),onClick:R[0]||(R[0]=(...M)=>o(i)&&o(i)(...M))},[u(A,{icon:o(_t)},null,8,["icon"])],8,Ja)])):J("",!0)])}}}),el=be(Qa,[["__scopeId","data-v-8aa88393"]]),tl={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},nl={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"/>'},ol={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"/>'},al={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 ll(){var ce,ee;const t=Ot(),e=Et(),n=At(),a=Ft(),i=P(0),s=P(0),l=P(0),d=P(!1),h=P(-1),f=P({}),b=P(!1),p=P(((ce=Be().getItem(`${st()}configure`))==null?void 0:ce.showModel)||"smart"),g=(ee=P(Be().getItem(`${st()}configure`).hideTabs))!=null?ee:P("false"),_=j(()=>De().multiTags),k=Rt([{icon:ro,text:Re("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:pt,text:Re("buttons.hscloseCurrentTab"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:al,text:Re("buttons.hscloseLeftTabs"),divided:!0,disabled:!(_.value.length>1),show:!0},{icon:ol,text:Re("buttons.hscloseRightTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:nl,text:Re("buttons.hscloseOtherTabs"),divided:!0,disabled:!(_.value.length>2),show:!0},{icon:tl,text:Re("buttons.hscloseAllTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:un,text:Re("buttons.hscontentFullScreen"),divided:!0,disabled:!1,show:!0}]);function L(q,ae,pe){var we,Le;return Dn((we=t==null?void 0:t.meta)==null?void 0:we.showLink)&&((Le=t==null?void 0:t.meta)==null?void 0:Le.showLink)===!1?Object.keys(t.query).length>0?Qe(t.query,q.query)?ae:pe:Qe(t.params,q.params)?ae:pe:t.path===q.path?ae:pe}const w=j(()=>(q,ae)=>{if(ae!==0)return L(q,!0,!1)}),R=j(()=>q=>L(q,"is-active","")),A=j(()=>q=>L(q,"schedule-active","")),E=j(()=>({transform:`translateX(${l.value}px)`,transition:b.value?"none":"transform 0.5s ease-in-out"})),W=j(()=>({left:s.value+"px",top:i.value+"px"})),G=()=>{d.value=!1};function M(q){if(q&&(h.value=q),o(p)==="smart"){if(ut(n.refs["schedule"+q][0],"schedule-active"))return;Ne(!0,"schedule-in",n.refs["schedule"+q][0]),Ne(!1,"schedule-out",n.refs["schedule"+q][0])}else{if(ut(n.refs["dynamic"+q][0],"is-active"))return;Ne(!0,"card-in",n.refs["dynamic"+q][0]),Ne(!1,"card-out",n.refs["dynamic"+q][0])}}function B(q){if(h.value=-1,o(p)==="smart"){if(ut(n.refs["schedule"+q][0],"schedule-active"))return;Ne(!1,"schedule-in",n.refs["schedule"+q][0]),Ne(!0,"schedule-out",n.refs["schedule"+q][0])}else{if(ut(n.refs["dynamic"+q][0],"is-active"))return;Ne(!1,"card-in",n.refs["dynamic"+q][0]),Ne(!0,"card-out",n.refs["dynamic"+q][0])}}function F(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Ke(()=>{if(!p.value){const q=Be().getItem(`${st()}configure`);q.showModel="card",Be().setItem(`${st()}configure`,q)}}),{Close:pt,route:t,router:e,visible:d,showTags:g,instance:n,multiTags:_,showModel:p,tagsViews:k,buttonTop:i,buttonLeft:s,translateX:l,pureSetting:a,activeIndex:h,getTabStyle:E,isScrolling:b,iconIsActive:w,linkIsActive:R,currentSelect:f,scheduleIsActive:A,getContextMenuStyle:W,$t:Re,closeMenu:G,onMounted:Ke,onMouseenter:M,onMouseleave:B,transformI18n:je,onContentFullScreen:F}}const sl={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"/>'},zt={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 rl={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 il={class:"arrow-left"},cl=["onContextmenu","onMouseenter","onMouseleave","onClick"],ul={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},dl=["onClick"],hl={class:"arrow-right"},fl=["onClick"],pl={class:"arrow-down"},ml=oe({__name:"index",setup(t){var Q;const{Close:e,route:n,router:a,visible:i,showTags:s,instance:l,multiTags:d,tagsViews:h,buttonTop:f,buttonLeft:b,showModel:p,translateX:g,pureSetting:_,activeIndex:k,getTabStyle:L,isScrolling:w,iconIsActive:R,linkIsActive:A,currentSelect:E,scheduleIsActive:W,getContextMenuStyle:G,closeMenu:M,onMounted:B,onMouseenter:F,onMouseleave:ce,transformI18n:ee,onContentFullScreen:q}=ll(),ae=P(),pe=P(),we=P(),Le=P(),Ie=P(!1),Te=(Q=ht())==null?void 0:Q.path,{VITE_HIDE_HOME:r}=rl,m=()=>at(this,null,function*(){yield Ge();const I=d.value.findIndex(Z=>Je(n.query)?Je(n.params)?n.path===Z.path:Qe(n.params,Z.params):Qe(n.query,Z.query));$(I)}),$=I=>at(this,null,function*(){var ve,He;yield Ge();const Z=10;if(!l.refs["dynamic"+I])return;const O=l.refs["dynamic"+I][0],Y=O==null?void 0:O.offsetLeft,he=O==null?void 0:O.offsetWidth,N=we.value?(ve=we.value)==null?void 0:ve.offsetWidth:0,U=ae.value?(He=ae.value)==null?void 0:He.offsetWidth:0;N<=U?Ie.value=!0:Ie.value=!1,U<N||Y===0?g.value=0:Y<-g.value?g.value=-Y+Z:Y>-g.value&&Y+he<-g.value+N?g.value=Math.min(0,N-he-Y-Z):g.value=-(Y-(N-Z-he))}),X=I=>{var Y;const Z=we.value?(Y=we.value)==null?void 0:Y.offsetWidth:0,O=ae.value?ae.value.offsetWidth:0;I>0?g.value=Math.min(0,g.value+I):Z<O?g.value>=-(O-Z)&&(g.value=Math.max(g.value+I,Z-O)):g.value=0,w.value=!1},re=I=>{w.value=!0;const Z=Math.abs(I.deltaX)+Math.abs(I.deltaY);let O=0;I.deltaX<0?O=Z>0?Z:100:O=Z>0?-Z:-100,ne(O)},ne=I=>{let O=Math.abs(I);const Y=()=>{const he=Math.sign(I)*Math.min(20,O);X(he),O-=Math.abs(he),O>0&&requestAnimationFrame(Y)};requestAnimationFrame(Y)};function y(I){const Z=d.value.some(Y=>Y.path===I);function O(Y,he){Z||Y.forEach(N=>{N.path===he?De().handleTags("push",{path:he,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&O(N.children,he)})}O(a.options.routes,I)}function C(){const{fullPath:I,query:Z}=o(n);a.replace({path:"/redirect"+I,query:Z}),It(n,"refresh")}function T(I,Z,O){var U,ve,He,Xt;const Y=d.value.findIndex(Ae=>{if(Ae.query){if(Ae.path===I.path)return Ae.query===I.query}else if(Ae.params){if(Ae.path===I.path)return Ae.params===I.params}else return Ae.path===I.path}),he=(Ae,In,$n)=>{$n?De().handleTags("equal",[r==="false"?qn[0]:Se(ht()),I]):De().handleTags("splice","",{startIndex:Ae,length:In}),m()};O==="other"?he(1,1,!0):O==="left"?he(1,Y-1):O==="right"?he(Y+1,d.value.length):he(Y,1);const N=De().handleTags("slice");if(Z===n.path){if(O==="left")return;(U=N[0])!=null&&U.query?a.push({name:N[0].name,query:N[0].query}):(ve=N[0])!=null&&ve.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}else{if(!d.value.length||d.value.some(Ae=>Ae.path===n.path))return;(He=N[0])!=null&&He.query?a.push({name:N[0].name,query:N[0].query}):(Xt=N[0])!=null&&Xt.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}}function K(I,Z){T(I,I.path,Z),It(n)}function V(I,Z,O){if(Z&&Z.disabled)return;let Y;switch(O?Y={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:Y={path:n.path,meta:n.meta},I){case 0:C();break;case 1:K(Y);break;case 2:K(Y,"left");break;case 3:K(Y,"right");break;case 4:K(Y,"other");break;case 5:De().handleTags("splice","",{startIndex:1,length:d.value.length}),a.push(Te),It(n);break;case 6:q(),setTimeout(()=>{_.hiddenSideBar?(h[6].icon=jn,h[6].text=Re("buttons.hscontentExitFullScreen")):(h[6].icon=un,h[6].text=Re("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{ke(n.fullPath,n.query)})}function z(I){const{key:Z,item:O}=I;V(Z,O)}function de(I,Z){M(),V(I,Z,E.value)}function me(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].show=I})}function Fe(I){Array.of(1,2,3,4,5).forEach(Z=>{h[Z].disabled=I})}function ke(I,Z={},O=!1){const Y=d.value,he=d.value.length;let N=-1;Je(Z)?N=Y.findIndex(U=>U.path===I):N=Y.findIndex(U=>Qe(U.query,Z)),me(!0),O&&(h[0].show=!0),N===1&&he!==2?(h[2].show=!1,Array.of(1,3,4,5).forEach(U=>{h[U].disabled=!1}),h[2].disabled=!0):N===1&&he===2?(Fe(!1),Array.of(2,3,4).forEach(U=>{h[U].show=!1,h[U].disabled=!0})):he-1===N&&N!==0?(h[3].show=!1,Array.of(1,2,4,5).forEach(U=>{h[U].disabled=!1}),h[3].disabled=!0):N===0||I===`/redirect${Te}`?Fe(!0):Fe(!1)}function ot(I,Z){M(),I.path===Te?(me(!1),h[0].show=!0):n.path!==I.path&&n.name!==I.name?(h[0].show=!1,ke(I.path,I.query)):d.value.length===2&&n.path!==I.path?(me(!0),h[4].show=!1):n.path===I.path&&ke(I.path,I.query,!0),E.value=I;const O=140,Y=o(pe).getBoundingClientRect().left,N=o(pe).offsetWidth-O,U=Z.clientX-Y+5;U>N?b.value=N:b.value=U,Ft().hiddenSideBar?f.value=Z.clientY:f.value=Z.clientY-40,Ge(()=>{i.value=!0})}function wt(I){const{name:Z,path:O}=I;Z?I.query?a.push({name:Z,query:I.query}):I.params?a.push({name:Z,params:I.params}):a.push({name:Z}):a.push({path:O})}return dn(Le,M,{detectIframe:!0}),Ze(n,()=>{k.value=-1,m()}),B(()=>{l&&(ke(n.fullPath),Me.on("tagViewsChange",I=>{o(s)!==I&&(s.value=I)}),Me.on("tagViewsShowModel",I=>{p.value=I}),Me.on("changLayoutRoute",I=>{y(I),setTimeout(()=>{ke(I)})}),mt(we,m),rn().then(()=>m()))}),Pt(()=>{Me.off("tagViewsChange"),Me.off("tagViewsShowModel"),Me.off("changLayoutRoute")}),(I,Z)=>{const O=H("IconifyIconOffline"),Y=H("el-dropdown-item"),he=H("el-dropdown-menu"),N=H("el-dropdown");return o(s)?J("",!0):(c(),S("div",{key:0,ref_key:"containerDom",ref:pe,class:"tags-view"},[ie(v("span",il,[u(O,{icon:o(zt),onClick:Z[0]||(Z[0]=U=>X(200))},null,8,["icon"])],512),[[xe,Ie.value]]),v("div",{ref_key:"scrollbarDom",ref:we,class:"scroll-container",onWheel:We(re,["prevent"])},[v("div",{ref_key:"tabDom",ref:ae,class:"tab select-none",style:ue(o(L))},[(c(!0),S(ye,null,Ce(o(d),(U,ve)=>(c(),S("div",{ref_for:!0,ref:"dynamic"+ve,key:ve,class:le(["scroll-item is-closable",o(A)(U)]),onContextmenu:We(He=>ot(U,He),["prevent"]),onMouseenter:We(He=>o(F)(ve),["prevent"]),onMouseleave:We(He=>o(ce)(ve),["prevent"]),onClick:He=>wt(U)},[v("span",ul,se(o(ee)(U.meta.title)),1),o(R)(U,ve)||ve===o(k)&&ve!==0?(c(),S("span",{key:0,class:"el-icon-close",onClick:We(He=>K(U),["stop"])},[u(O,{icon:o(e)},null,8,["icon"])],8,dl)):J("",!0),o(p)!=="card"?(c(),S("span",{key:1,ref_for:!0,ref:"schedule"+ve,class:le([o(W)(U)])},null,2)):J("",!0)],42,cl))),128))],4)],544),ie(v("span",hl,[u(O,{icon:o(Tt),onClick:Z[1]||(Z[1]=U=>X(-200))},null,8,["icon"])],512),[[xe,Ie.value]]),u(Dt,{name:"el-zoom-in-top"},{default:x(()=>[ie((c(),S("ul",{ref_key:"contextmenuRef",ref:Le,key:Math.random(),style:ue(o(G)),class:"contextmenu"},[(c(!0),S(ye,null,Ce(o(h).slice(0,6),(U,ve)=>(c(),S("div",{key:ve,style:{display:"flex","align-items":"center"}},[U.show?(c(),S("li",{key:0,onClick:He=>de(ve,U)},[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)],8,fl)):J("",!0)]))),128))],4)),[[xe,o(i)]])]),_:1}),u(N,{trigger:"click",placement:"bottom-end",onCommand:z},{dropdown:x(()=>[u(he,null,{default:x(()=>[(c(!0),S(ye,null,Ce(o(h),(U,ve)=>(c(),D(Y,{key:ve,command:{key:ve,item:U},divided:U.divided,disabled:U.disabled},{default:x(()=>[u(O,{icon:U.icon},null,8,["icon"]),_e(" "+se(o(ee)(U.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:x(()=>[v("span",pl,[u(O,{icon:o(sl),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),vl=be(ml,[["__scopeId","data-v-718536cb"]]),_l={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},gl={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},yl=oe({__name:"index",setup(t){const e=Ye("Title");return(n,a)=>(c(),S("footer",_l,[_e(" Copyright © 2020-present "),v("a",gl," "+se(o(e)),1)]))}}),ln=be(yl,[["__scopeId","data-v-44b5e275"]]),lt=new Map,bl=()=>{function t(a,i){lt.set(a,i)}function e(a){return a?lt.get(a):[...lt.entries()]}function n(a){lt.delete(a)}return{setMap:t,getMap:e,delMap:n,MAP:lt}},wl={class:"w-full h-full"},kl=oe({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=St([]),{setMap:a,getMap:i,MAP:s,delMap:l}=bl(),d=j(()=>{var f,b;return Ye().KeepAlive&&((f=e.currRoute.meta)==null?void 0:f.keepAlive)&&!!((b=e.currRoute.meta)!=null&&b.frameSrc)}),h=j(()=>!d.value&&e.currComp);return Ze(De().multiTags,f=>{if(!Array.isArray(f)||!d.value)return;if(f.filter(p=>{var g;return(g=p.meta)==null?void 0:g.frameSrc}).length<s.size)for(const p of s.keys())f.some(g=>g.path===p)||(l(p),n.value=i())}),Ze(()=>e.currRoute.fullPath,f=>{const p=De().multiTags.filter(g=>{var _;return(_=g.meta)==null?void 0:_.frameSrc});d.value&&p.length!==s.size&&([...s.keys()].find(_=>f===_)||a(f,e.currComp)),s.size>0&&(n.value=i())},{immediate:!0}),(f,b)=>(c(),S(ye,null,[(c(!0),S(ye,null,Ce(n.value,([p,g])=>{var _;return ie((c(),S("div",{key:p,class:"w-full h-full"},[ft(f.$slots,"default",{fullPath:p,Comp:g,frameInfo:{frameSrc:(_=f.currRoute.meta)==null?void 0:_.frameSrc,fullPath:p}})],512)),[[xe,p===e.currRoute.fullPath]])}),128)),ie(v("div",wl,[ft(f.$slots,"default",{Comp:h.value,fullPath:e.currRoute.fullPath})],512),[[xe,!d.value]])],64))}}),Cl={class:"grow"},xl={key:1,class:"grow"},Il=oe({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=vt(),i=j(()=>a==null?void 0:a.KeepAlive),s=j(()=>_=>_.meta.transition),l=j(()=>n==null?void 0:n.configure.hideTabs),d=j(()=>n==null?void 0:n.configure.hideFooter),h=j(()=>n==null?void 0:n.configure.stretch),f=j(()=>(n==null?void 0:n.layout.layout)==="vertical"),b=j(()=>Mt(h.value)?h.value+"px":h.value?"1440px":"100%"),p=j(()=>[l.value&&f?"padding-top: 48px;":"",!l.value&&f?"padding-top: 81px;":"",l.value&&!f.value?"padding-top: 48px;":"",!l.value&&!f.value?"padding-top: 81px;":"",e.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=oe({props:{route:{type:void 0,required:!0}},render(){var w,R,A;const _=((w=s.value(this.route))==null?void 0:w.name)||"fade-transform",k=(R=s.value(this.route))==null?void 0:R.enterTransition,L=(A=s.value(this.route))==null?void 0:A.leaveTransition;return rt(Dt,{name:k?"pure-classes-transition":_,enterActiveClass:k?`animate__animated ${k}`:void 0,leaveActiveClass:L?`animate__animated ${L}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(_,k)=>{const L=H("el-backtop"),w=H("el-scrollbar"),R=H("router-view");return c(),S("section",{class:le([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ue(p.value)},[u(R,null,{default:x(({Component:A,route:E})=>[u(kl,{currComp:A,currRoute:E},{default:x(({Comp:W,fullPath:G,frameInfo:M})=>[e.fixedHeader?(c(),D(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":b.value,margin:"0 auto",transition:"all 300ms cubic-bezier(0.4, 0, 0.2, 1)"},"view-style":{display:"flex",flex:"auto",overflow:"hidden","flex-direction":"column"}},{default:x(()=>[u(L,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:x(()=>[u(o(vn))]),_:1}),v("div",Cl,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(Qt,{key:0,include:o(Ve)().cachePageList},[(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),d.value?J("",!0):(c(),D(ln,{key:0}))]),_:2},1032,["wrap-style"])):(c(),S("div",xl,[u(o(g),{route:E},{default:x(()=>[i.value?(c(),D(Qt,{key:0,include:o(Ve)().cachePageList},[(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ee(W),{key:G,frameInfo:M,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!d.value&&!e.fixedHeader?(c(),D(ln,{key:0})):J("",!0)],6)}}}),sn=be(Il,[["__scopeId","data-v-918fa3f0"]]),bn=t=>(hn("data-v-af01f247"),t=t(),fn(),t),$l=bn(()=>v("div",{class:"right-panel-background"},null,-1)),Sl={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Ml=bn(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),Vl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Tl=oe({__name:"index",setup(t){const e=P(null),n=P(!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:i}=Bt();return dn(e,s=>{s.clientX>e.value.offsetLeft||(n.value=!1)}),Ke(()=>{Me.on("openPanel",()=>{n.value=!0})}),Pt(()=>{Me.off("openPanel")}),(s,l)=>{const d=H("IconifyIconOffline"),h=H("el-scrollbar"),f=H("el-button"),b=et("tippy");return c(),S("div",{class:le({show:n.value})},[$l,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",Sl,[Ml,ie((c(),S("span",{class:le(a.value)},[u(d,{class:"dark:text-white",width:"18px",height:"18px",icon:o(pt),onClick:l[0]||(l[0]=p=>n.value=!n.value)},null,8,["icon"])],2)),[[b,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),u(h,null,{default:x(()=>[ft(s.$slots,"default",{},void 0,!0)]),_:3}),v("div",Vl,[ie((c(),D(f,{type:"danger",text:"",bg:"",onClick:o(i)},{default:x(()=>[_e(" 清空缓存 ")]),_:1},8,["onClick"])),[[b,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Hl=be(Tl,[["__scopeId","data-v-af01f247"]]),zl={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},Ll=v("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),Al=v("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),El=[Ll,Al];function Zl(t,e){return c(),S("svg",zl,[...El])}const Ol={render:Zl},$e=t=>(hn("data-v-af47f972"),t=t(),fn(),t),Rl={class:"p-5"},Pl={class:"theme-color"},Dl=["onClick"],jl={class:"pure-theme"},ql=$e(()=>v("div",null,null,-1)),Bl=$e(()=>v("div",null,null,-1)),Fl=[ql,Bl],Nl=$e(()=>v("div",null,null,-1)),Ul=$e(()=>v("div",null,null,-1)),Wl=[Nl,Ul],Gl=$e(()=>v("div",null,null,-1)),Kl=$e(()=>v("div",null,null,-1)),Xl=[Gl,Kl],Yl={key:0},Jl=$e(()=>v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),Ql=$e(()=>v("p",{class:"mt-5 font-medium text-sm dark:text-white"},"界面显示",-1)),es={class:"setting"},ts=$e(()=>v("span",{class:"dark:text-white"},"灰色模式",-1)),ns=$e(()=>v("span",{class:"dark:text-white"},"色弱模式",-1)),os=$e(()=>v("span",{class:"dark:text-white"},"隐藏标签页",-1)),as=$e(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),ls=$e(()=>v("span",{class:"dark:text-white"},"Logo",-1)),ss=$e(()=>v("span",{class:"dark:text-white"},"页签持久化",-1)),rs=oe({__name:"index",setup(t){var y,C,T,K;const{device:e}=ze(),{isDark:n}=pn(),{$storage:a}=vt(),i=P(),s=P(),l=P(),{dataTheme:d,overallStyle:h,layoutTheme:f,themeColors:b,toggleClass:p,dataThemeChange:g,setLayoutThemeColor:_}=Bt();if(o(f)){const V=o(f).layout,z=o(f).theme;to({scopeName:`layout-theme-${z}`}),m(V)}const k=P((C=(y=a.configure)==null?void 0:y.showModel)!=null?C:"smart"),L=P((K=(T=a.configure)==null?void 0:T.showLogo)!=null?K:!0),w=Rt({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,stretch:a.configure.stretch}),R=j(()=>V=>({background:V})),A=j(()=>V=>!(V==="light"&&n.value));function E(V,z){const de=a.configure;de[V]=z,a.configure=de}const W=V=>{const z=document.querySelector("html");p(w.greyVal,"html-grey",z),E("grey",V)},G=V=>{const z=document.querySelector("html");p(w.weakVal,"html-weakness",z),E("weak",V)},M=()=>{const V=w.tabsVal;E("hideTabs",V),Me.emit("tagViewsChange",V)},B=()=>{const V=w.hideFooter;E("hideFooter",V)},F=()=>{const V=w.multiTagsCache;E("multiTagsCache",V),De().multiTagsCacheChange(V)};function ce({option:V}){const{value:z}=V;k.value=z,E("showModel",z),Me.emit("tagViewsShowModel",z)}function ee(){o(L)?E("showLogo",!0):E("showLogo",!1),Me.emit("logoChange",o(L))}function q(V){V.forEach(z=>{p(!1,"is-select",o(z))})}const ae=[{label:"固定",tip:"紧凑页面,轻松找到所需信息",value:"fixed"},{label:"自定义",tip:"最小1280、最大1600",value:"custom"}],pe=V=>{w.stretch=V,E("stretch",V)},we=({option:V})=>{const{value:z}=V;pe(z==="custom"?1440:!1)},Le=j(()=>V=>V===f.value.theme&&f.value.theme!=="light"?"#fff":V===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent"),Ie=j(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),Te=j(()=>[{label:"浅色",icon:no,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"深色",icon:oo,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:n.value?"#fff":"#000"}},{label:"自动",icon:Ol,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:n.value?"#fff":"#000"}}]),r=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function m(V){var z,de,me,Fe,ke;f.value.layout=V,window.document.body.setAttribute("layout",V),a.layout={layout:V,theme:f.value.theme,darkMode:(z=a.layout)==null?void 0:z.darkMode,sidebarStatus:(de=a.layout)==null?void 0:de.sidebarStatus,epThemeColor:(me=a.layout)==null?void 0:me.epThemeColor,themeColor:(Fe=a.layout)==null?void 0:Fe.themeColor,overallStyle:(ke=a.layout)==null?void 0:ke.overallStyle},Xe().setLayout(V)}Ze(a,({layout:V})=>{switch(V.layout){case"vertical":p(!0,"is-select",o(s)),nt(q([l]),50),nt(q([i]),50);break;case"horizontal":p(!0,"is-select",o(l)),nt(q([s]),50),nt(q([i]),50);break;case"mix":p(!0,"is-select",o(i)),nt(q([s]),50),nt(q([l]),50);break}});const $=window.matchMedia("(prefers-color-scheme: dark)");function X(){h.value==="system"&&($.matches?d.value=!0:d.value=!1,g(h.value))}function re(){$.removeEventListener("change",X)}function ne(){X(),re(),$.addEventListener("change",X)}return mn(()=>{Ge(()=>{var V,z;ne(),w.greyVal&&((V=document.querySelector("html"))==null||V.classList.add("html-grey")),w.weakVal&&((z=document.querySelector("html"))==null||z.classList.add("html-weakness")),w.tabsVal&&M(),w.hideFooter&&B()})}),Bn(()=>re),(V,z)=>{const de=H("IconifyIconOffline"),me=H("el-icon"),Fe=H("el-input-number"),ke=H("el-switch"),ot=et("tippy"),wt=et("ripple");return c(),D(Hl,null,{default:x(()=>[v("div",Rl,[v("p",{class:le(Ie.value)},"整体风格",2),u(o($t),{class:"select-none",modelValue:o(h)==="system"?2:o(d)?1:0,options:Te.value,onChange:z[0]||(z[0]=Q=>{Q.index===1&&Q.index!==2?d.value=!0:d.value=!1,h.value=Q.option.theme,o(g)(Q.option.theme),Q.index===2&&ne()})},null,8,["modelValue","options"]),v("p",{class:le(["mt-5",Ie.value])},"主题色",2),v("ul",Pl,[(c(!0),S(ye,null,Ce(o(b),(Q,I)=>ie((c(),S("li",{key:I,style:ue(R.value(Q.color)),onClick:Z=>o(_)(Q.themeColor)},[u(me,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Le.value(Q.themeColor)},{default:x(()=>[u(de,{icon:o(tt)},null,8,["icon"])]),_:2},1032,["color"])],12,Dl)),[[xe,A.value(Q.themeColor)]])),128))]),v("p",{class:le(["mt-5",Ie.value])},"导航模式",2),v("ul",jl,[ie((c(),S("li",{ref_key:"verticalRef",ref:s,class:le(o(f).layout==="vertical"?"is-select":""),onClick:z[1]||(z[1]=Q=>m("vertical"))},Fl,2)),[[ot,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),o(e)!=="mobile"?ie((c(),S("li",{key:0,ref_key:"horizontalRef",ref:l,class:le(o(f).layout==="horizontal"?"is-select":""),onClick:z[2]||(z[2]=Q=>m("horizontal"))},Wl,2)),[[ot,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):J("",!0),o(e)!=="mobile"?ie((c(),S("li",{key:1,ref_key:"mixRef",ref:i,class:le(o(f).layout==="mix"?"is-select":""),onClick:z[3]||(z[3]=Q=>m("mix"))},Xl,2)),[[ot,{content:"混合菜单,灵活多变",zIndex:41e3}]]):J("",!0)]),o(e)!=="mobile"?(c(),S("span",Yl,[v("p",{class:le(["mt-5",Ie.value])},"页宽",2),u(o($t),{class:"mb-2 select-none",modelValue:o(Mt)(w.stretch)?1:0,options:ae,onChange:we},null,8,["modelValue"]),o(Mt)(w.stretch)?(c(),D(Fe,{key:0,modelValue:w.stretch,"onUpdate:modelValue":z[4]||(z[4]=Q=>w.stretch=Q),min:1280,max:1600,"controls-position":"right",onChange:z[5]||(z[5]=Q=>pe(Q))},null,8,["modelValue"])):ie((c(),S("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-gray-100",onClick:z[6]||(z[6]=Q=>pe(!w.stretch))},[v("div",{class:le(["flex-bc transition-all duration-300",[w.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[u(de,{icon:w.stretch?o(Tt):o(zt),height:"20"},null,8,["icon"]),Jl,u(de,{icon:w.stretch?o(zt):o(Tt),height:"20"},null,8,["icon"])],2)])),[[wt,{class:"text-gray-300"}]])])):J("",!0),v("p",{class:le(["mt-4",Ie.value])},"页签风格",2),u(o($t),{class:"select-none",modelValue:k.value==="smart"?0:1,options:r,onChange:ce},null,8,["modelValue"]),Ql,v("ul",es,[v("li",null,[ts,u(ke,{modelValue:w.greyVal,"onUpdate:modelValue":z[7]||(z[7]=Q=>w.greyVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),v("li",null,[ns,u(ke,{modelValue:w.weakVal,"onUpdate:modelValue":z[8]||(z[8]=Q=>w.weakVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:G},null,8,["modelValue"])]),v("li",null,[os,u(ke,{modelValue:w.tabsVal,"onUpdate:modelValue":z[9]||(z[9]=Q=>w.tabsVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),v("li",null,[as,u(ke,{modelValue:w.hideFooter,"onUpdate:modelValue":z[10]||(z[10]=Q=>w.hideFooter=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),v("li",null,[ls,u(ke,{modelValue:L.value,"onUpdate:modelValue":z[11]||(z[11]=Q=>L.value=Q),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:ee},null,8,["modelValue"])]),v("li",null,[ss,u(ke,{modelValue:w.multiTagsCache,"onUpdate:modelValue":z[12]||(z[12]=Q=>w.multiTagsCache=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])])])])]),_:1})}}}),is=be(rs,[["__scopeId","data-v-af47f972"]]),cs=["src"],us={class:"sidebar-title"},ds=["src"],hs={class:"sidebar-title"},fs=oe({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=ze();return(i,s)=>{const l=H("router-link");return c(),S("div",{class:le(["sidebar-logo-container",{collapses:e.collapse}])},[u(Dt,{name:"sidebarLogoFade"},{default:x(()=>{var d,h,f,b;return[e.collapse?(c(),D(l,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:(h=(d=o(ht)())==null?void 0:d.path)!=null?h:"/"},{default:x(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,cs),v("span",us,se(o(n)),1)]),_:1},8,["title","to"])):(c(),D(l,{key:"expand",title:o(n),class:"sidebar-logo-link",to:(b=(f=o(ht)())==null?void 0:f.path)!=null?b:"/"},{default:x(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,ds),v("span",hs,se(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),ps=be(fs,[["__scopeId","data-v-1e860333"]]);var ct={exports:{}},wn={},ms=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Lt={exports:{}};typeof Object.create=="function"?Lt.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Lt.exports=function(e,n){e.super_=n;var a=function(){};a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e};var vs=Lt.exports;(function(t){var e={},n=/%[sdj%]/g;t.format=function(r){if(!W(r)){for(var m=[],$=0;$<arguments.length;$++)m.push(s(arguments[$]));return m.join(" ")}for(var $=1,X=arguments,re=X.length,ne=String(r).replace(n,function(C){if(C==="%%")return"%";if($>=re)return C;switch(C){case"%s":return String(X[$++]);case"%d":return Number(X[$++]);case"%j":try{return JSON.stringify(X[$++])}catch(T){return"[Circular]"}default:return C}}),y=X[$];$<re;y=X[++$])R(y)||!F(y)?ne+=" "+y:ne+=" "+s(y);return ne},t.deprecate=function(r,m){if(M(Fn.process))return function(){return t.deprecate(r,m).apply(this,arguments)};if(process.noDeprecation===!0)return r;var $=!1;function X(){if(!$){if(process.throwDeprecation)throw new Error(m);process.traceDeprecation?console.trace(m):console.error(m),$=!0}return r.apply(this,arguments)}return X};var a={},i;t.debuglog=function(r){if(M(i)&&(i=e.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(i)){var m=process.pid;a[r]=function(){var $=t.format.apply(t,arguments);console.error("%s %d: %s",r,m,$)}}else a[r]=function(){};return a[r]};function s(r,m){var $={seen:[],stylize:d};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),w(m)?$.showHidden=m:m&&t._extend($,m),M($.showHidden)&&($.showHidden=!1),M($.depth)&&($.depth=2),M($.colors)&&($.colors=!1),M($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=l),f($,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,m){var $=s.styles[m];return $?"\x1B["+s.colors[$][0]+"m"+r+"\x1B["+s.colors[$][1]+"m":r}function d(r,m){return r}function h(r){var m={};return r.forEach(function($,X){m[$]=!0}),m}function f(r,m,$){if(r.customInspect&&m&&q(m.inspect)&&m.inspect!==t.inspect&&!(m.constructor&&m.constructor.prototype===m)){var X=m.inspect($,r);return W(X)||(X=f(r,X,$)),X}var re=b(r,m);if(re)return re;var ne=Object.keys(m),y=h(ne);if(r.showHidden&&(ne=Object.getOwnPropertyNames(m)),ee(m)&&(ne.indexOf("message")>=0||ne.indexOf("description")>=0))return p(m);if(ne.length===0){if(q(m)){var C=m.name?": "+m.name:"";return r.stylize("[Function"+C+"]","special")}if(B(m))return r.stylize(RegExp.prototype.toString.call(m),"regexp");if(ce(m))return r.stylize(Date.prototype.toString.call(m),"date");if(ee(m))return p(m)}var T="",K=!1,V=["{","}"];if(L(m)&&(K=!0,V=["[","]"]),q(m)){var z=m.name?": "+m.name:"";T=" [Function"+z+"]"}if(B(m)&&(T=" "+RegExp.prototype.toString.call(m)),ce(m)&&(T=" "+Date.prototype.toUTCString.call(m)),ee(m)&&(T=" "+p(m)),ne.length===0&&(!K||m.length==0))return V[0]+T+V[1];if($<0)return B(m)?r.stylize(RegExp.prototype.toString.call(m),"regexp"):r.stylize("[Object]","special");r.seen.push(m);var de;return K?de=g(r,m,$,y,ne):de=ne.map(function(me){return _(r,m,$,y,me,K)}),r.seen.pop(),k(de,T,V)}function b(r,m){if(M(m))return r.stylize("undefined","undefined");if(W(m)){var $="'"+JSON.stringify(m).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize($,"string")}if(E(m))return r.stylize(""+m,"number");if(w(m))return r.stylize(""+m,"boolean");if(R(m))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function g(r,m,$,X,re){for(var ne=[],y=0,C=m.length;y<C;++y)Te(m,String(y))?ne.push(_(r,m,$,X,String(y),!0)):ne.push("");return re.forEach(function(T){T.match(/^\d+$/)||ne.push(_(r,m,$,X,T,!0))}),ne}function _(r,m,$,X,re,ne){var y,C,T;if(T=Object.getOwnPropertyDescriptor(m,re)||{value:m[re]},T.get?T.set?C=r.stylize("[Getter/Setter]","special"):C=r.stylize("[Getter]","special"):T.set&&(C=r.stylize("[Setter]","special")),Te(X,re)||(y="["+re+"]"),C||(r.seen.indexOf(T.value)<0?(R($)?C=f(r,T.value,null):C=f(r,T.value,$-1),C.indexOf(`
|
||
`)>-1&&(ne?C=C.split(`
|
||
`).map(function(K){return" "+K}).join(`
|
||
`).substr(2):C=`
|
||
`+C.split(`
|
||
`).map(function(K){return" "+K}).join(`
|
||
`))):C=r.stylize("[Circular]","special")),M(y)){if(ne&&re.match(/^\d+$/))return C;y=JSON.stringify(""+re),y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(y=y.substr(1,y.length-2),y=r.stylize(y,"name")):(y=y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),y=r.stylize(y,"string"))}return y+": "+C}function k(r,m,$){var X=r.reduce(function(re,ne){return ne.indexOf(`
|
||
`)>=0,re+ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return X>60?$[0]+(m===""?"":m+`
|
||
`)+" "+r.join(`,
|
||
`)+" "+$[1]:$[0]+m+" "+r.join(", ")+" "+$[1]}function L(r){return Array.isArray(r)}t.isArray=L;function w(r){return typeof r=="boolean"}t.isBoolean=w;function R(r){return r===null}t.isNull=R;function A(r){return r==null}t.isNullOrUndefined=A;function E(r){return typeof r=="number"}t.isNumber=E;function W(r){return typeof r=="string"}t.isString=W;function G(r){return typeof r=="symbol"}t.isSymbol=G;function M(r){return r===void 0}t.isUndefined=M;function B(r){return F(r)&&pe(r)==="[object RegExp]"}t.isRegExp=B;function F(r){return typeof r=="object"&&r!==null}t.isObject=F;function ce(r){return F(r)&&pe(r)==="[object Date]"}t.isDate=ce;function ee(r){return F(r)&&(pe(r)==="[object Error]"||r instanceof Error)}t.isError=ee;function q(r){return typeof r=="function"}t.isFunction=q;function ae(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=ae,t.isBuffer=ms;function pe(r){return Object.prototype.toString.call(r)}function we(r){return r<10?"0"+r.toString(10):r.toString(10)}var Le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ie(){var r=new Date,m=[we(r.getHours()),we(r.getMinutes()),we(r.getSeconds())].join(":");return[r.getDate(),Le[r.getMonth()],m].join(" ")}t.log=function(){console.log("%s - %s",Ie(),t.format.apply(t,arguments))},t.inherits=vs,t._extend=function(r,m){if(!m||!F(m))return r;for(var $=Object.keys(m),X=$.length;X--;)r[$[X]]=m[$[X]];return r};function Te(r,m){return Object.prototype.hasOwnProperty.call(r,m)}})(wn);var _s={},gs=process.platform==="win32",Oe=wn;function gt(t,e){for(var n=[],a=0;a<t.length;a++){var i=t[a];!i||i==="."||(i===".."?n.length&&n[n.length-1]!==".."?n.pop():e&&n.push(".."):n.push(i))}return n}function it(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 kn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,ys=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,fe={};function yt(t){var e=kn.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",i=ys.exec(a),s=i[1],l=i[2],d=i[3];return[n,s,l,d]}function Kt(t){var e=kn.exec(t),n=e[1]||"",a=!!n&&n[1]!==":";return{device:n,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Cn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}fe.resolve=function(){for(var t="",e="",n=!1,a=arguments.length-1;a>=-1;a--){var i;if(a>=0?i=arguments[a]:t?(i=_s["="+t],(!i||i.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(i=t+"\\")):i=process.cwd(),Oe.isString(i)){if(!i)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=Kt(i),l=s.device,d=s.isUnc,h=s.isAbsolute,f=s.tail;if(!(l&&t&&l.toLowerCase()!==t.toLowerCase())&&(t||(t=l),n||(e=f+"\\"+e,n=h),t&&n))break}return d&&(t=Cn(t)),e=gt(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};fe.normalize=function(t){var e=Kt(t),n=e.device,a=e.isUnc,i=e.isAbsolute,s=e.tail,l=/[\\\/]$/.test(s);return s=gt(s.split(/[\\\/]+/),!i).join("\\"),!s&&!i&&(s="."),s&&l&&(s+="\\"),a&&(n=Cn(n)),n+(i?"\\":"")+s};fe.isAbsolute=function(t){return Kt(t).isAbsolute};fe.join=function(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(!Oe.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,}/,"\\")),fe.normalize(a)};fe.relative=function(t,e){t=fe.resolve(t),e=fe.resolve(e);for(var n=t.toLowerCase(),a=e.toLowerCase(),i=it(e.split("\\")),s=it(n.split("\\")),l=it(a.split("\\")),d=Math.min(s.length,l.length),h=d,f=0;f<d;f++)if(s[f]!==l[f]){h=f;break}if(h==0)return e;for(var b=[],f=h;f<s.length;f++)b.push("..");return b=b.concat(i.slice(h)),b.join("\\")};fe._makeLong=function(t){if(!Oe.isString(t))return t;if(!t)return"";var e=fe.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};fe.dirname=function(t){var e=yt(t),n=e[0],a=e[1];return!n&&!a?".":(a&&(a=a.substr(0,a.length-1)),n+a)};fe.basename=function(t,e){var n=yt(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};fe.extname=function(t){return yt(t)[3]};fe.format=function(t){if(!Oe.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Oe.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]===fe.sep?n+a:n+fe.sep+a:a};fe.parse=function(t){if(!Oe.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=yt(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)}};fe.sep="\\";fe.delimiter=";";var bs=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ge={};function bt(t){return bs.exec(t).slice(1)}ge.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var a=n>=0?arguments[n]:process.cwd();if(Oe.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=gt(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};ge.normalize=function(t){var e=ge.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=gt(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};ge.isAbsolute=function(t){return t.charAt(0)==="/"};ge.join=function(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];if(!Oe.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(t?t+="/"+n:t+=n)}return ge.normalize(t)};ge.relative=function(t,e){t=ge.resolve(t).substr(1),e=ge.resolve(e).substr(1);for(var n=it(t.split("/")),a=it(e.split("/")),i=Math.min(n.length,a.length),s=i,l=0;l<i;l++)if(n[l]!==a[l]){s=l;break}for(var d=[],l=s;l<n.length;l++)d.push("..");return d=d.concat(a.slice(s)),d.join("/")};ge._makeLong=function(t){return t};ge.dirname=function(t){var e=bt(t),n=e[0],a=e[1];return!n&&!a?".":(a&&(a=a.substr(0,a.length-1)),n+a)};ge.basename=function(t,e){var n=bt(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};ge.extname=function(t){return bt(t)[3]};ge.format=function(t){if(!Oe.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Oe.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir?t.dir+ge.sep:"",a=t.base||"";return n+a};ge.parse=function(t){if(!Oe.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=bt(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)}};ge.sep="/";ge.delimiter=":";gs?ct.exports=fe:ct.exports=ge;ct.exports.posix=ge;ct.exports.win32=fe;var ws=ct.exports;const ks=Nn(ws),Cs=oe({name:"LinkItem",__name:"linkItem",props:{to:{}},setup(t){const e=t,n=j(()=>Un(e.to.name)),a=i=>n.value?{href:i.name,target:"_blank",rel:"noopener"}:{to:i};return(i,s)=>(c(),D(Ee(n.value?"a":"router-link"),Wn(Gn(a(i.to))),{default:x(()=>[ft(i.$slots,"default")]),_:3},16))}}),xs={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"/>'},Is={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"/>'},$s={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"/>'},Ss={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"/>'},xn=oe({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=Kn(),{layout:n,isCollapse:a,tooltipEffect:i,getDivStyle:s}=ze(),l=t,d=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"})),f=j(()=>{var _;return(_=Ye())!=null&&_.MenuArrowIconNoTransition?{"expand-close-icon":Pe(Is),"expand-open-icon":Pe(xs),"collapse-close-icon":Pe(Ss),"collapse-open-icon":Pe($s)}:""}),b=P(null);function p(_=[],k){var w,R;const L=_.filter(A=>(b.value=A,!0));return(R=(w=L[0])==null?void 0:w.meta)!=null&&R.showParent?!1:L.length===1?!0:L.length===0?(b.value=Ct(kt({},k),{path:"",noShowingChildren:!0}),!0):!1}function g(_){const k=/^http(s?):\/\//;return k.test(_)||k.test(l.basePath)?_||l.basePath:ks.posix.resolve(l.basePath,_)}return(_,k)=>{const L=H("el-text"),w=H("el-menu-item"),R=H("sidebar-item",!0),A=H("el-sub-menu");return p(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(c(),D(Cs,{key:0,to:t.item},{default:x(()=>[u(w,en({index:g(b.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:d.value},o(e)),{title:x(()=>[v("div",{style:ue(o(s))},[u(o(tn),{tippyProps:{offset:[0,-10],theme:o(i)},class:"!text-inherit"},{default:x(()=>[_e(se(o(je)(b.value.meta.title)),1)]),_:1},8,["tippyProps"]),u(Ht,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:x(()=>{var E,W,G,M,B;return[Se(l.item.meta.icon)?(c(),S("div",{key:0,class:"sub-menu-icon",style:ue(h.value)},[(c(),D(Ee(o(Pe)(Se(b.value.meta.icon)||l.item.meta&&Se(l.item.meta.icon)))))],4)):J("",!0),!((E=l.item)!=null&&E.meta.icon)&&o(a)&&o(n)==="vertical"&&((G=(W=l.item)==null?void 0:W.pathList)==null?void 0:G.length)===1||!b.value.meta.icon&&o(a)&&o(n)==="mix"&&((B=(M=l.item)==null?void 0:M.pathList)==null?void 0:B.length)===2?(c(),D(L,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:x(()=>[_e(se(o(je)(b.value.meta.title)),1)]),_:1})):J("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(c(),D(A,en({key:1,ref:"subMenu",teleported:"",index:g(l.item.path)},f.value),{title:x(()=>[Se(l.item.meta.icon)?(c(),S("div",{key:0,style:ue(h.value),class:"sub-menu-icon"},[(c(),D(Ee(o(Pe)(l.item.meta&&Se(l.item.meta.icon)))))],4)):J("",!0),o(n)==="vertical"&&o(a)&&Se(l.item.meta.icon)&&l.item.parentId===null?J("",!0):(c(),D(o(tn),{key:1,tippyProps:{offset:[0,-10],theme:o(i)},class:le({"!text-inherit":!0,"!px-4":o(n)!=="horizontal"&&o(a)&&!Se(l.item.meta.icon)&&l.item.parentId===null})},{default:x(()=>[_e(se(o(je)(l.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),o(a)?J("",!0):(c(),D(Ht,{key:2,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))]),default:x(()=>[(c(!0),S(ye,null,Ce(l.item.children,E=>(c(),D(R,{key:E.path,"is-nest":!0,item:E,"base-path":g(E.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Ms={class:"collapse-container"},Vs=oe({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=ze(),i=j(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:s}=vt(),l=j(()=>{var f;return(f=s.layout)==null?void 0:f.themeColor}),d=e,h=()=>{d("toggleClick")};return(f,b)=>{const p=H("IconifyIconOffline"),g=et("tippy");return c(),S("div",Ms,[ie(u(p,{icon:o(yn),class:le([i.value,l.value==="light"?"":"text-primary"]),style:ue({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:h},null,8,["icon","class","style"]),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])])}}}),Ts=be(Vs,[["__scopeId","data-v-d14bd14d"]]),Hs=oe({__name:"vertical",setup(t){var k,L;const e=Ot(),n=P((L=(k=Be().getItem(`${st()}configure`))==null?void 0:k.showLogo)!=null?L:!0),{device:a,pureApp:i,isCollapse:s,tooltipEffect:l,menuSelect:d,toggleSideBar:h}=ze(),f=P([]),b=j(()=>i.layout==="mix"&&a.value!=="mobile"?f.value:Ve().wholeMenus),p=j(()=>i.layout==="mix"?!1:b.value.length===0),g=j(()=>{var w;return Je((w=e.meta)==null?void 0:w.activePath)?e.path:e.meta.activePath});function _(){let w="";w=g.value,f.value=[];const R=Zt(w,Ve().wholeMenus),A=dt(R[0]||w,Ve().wholeMenus);A!=null&&A.children&&(f.value=A==null?void 0:A.children)}return Ze(()=>[e.path,Ve().wholeMenus],()=>{e.path.includes("/redirect")||(_(),d(e.path))}),Ke(()=>{_(),Me.on("logoChange",w=>{n.value=w})}),Pt(()=>{Me.off("logoChange")}),(w,R)=>{const A=H("el-menu"),E=H("el-scrollbar"),W=et("loading");return ie((c(),S("div",{class:le(["sidebar-container",n.value?"has-logo":"no-logo"])},[n.value?(c(),D(ps,{key:0,collapse:o(s)},null,8,["collapse"])):J("",!0),u(E,{"wrap-class":"scrollbar-wrapper",class:le([o(a)==="mobile"?"mobile":"pc"])},{default:x(()=>[u(A,{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(()=>[(c(!0),S(ye,null,Ce(b.value,G=>(c(),D(xn,{key:G.path,item:G,"base-path":G.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"?(c(),D(Ts,{key:1,"is-active":o(i).sidebar.opened,onToggleClick:o(h)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[W,p.value]])}}}),zs=be(Hs,[["__scopeId","data-v-3752e90e"]]),Ls={class:"horizontal-header"},As=["src"],Es={class:"horizontal-header-right"},Zs={class:"check-zh"},Os={class:"check-en"},Rs={class:"el-dropdown-link navbar-bg-hover"},Ps=["src"],Ds={key:0,class:"dark:text-white"},js=["title"],qs=oe({__name:"horizontal",setup(t){const e=P(),{t:n,route:a,locale:i,translationCh:s,translationEn:l}=jt(e),{title:d,logout:h,backTopMenu:f,onPanel:b,getLogo:p,username:g,userAvatar:_,avatarsStyle:k,getDropdownItemStyle:L,getDropdownItemClass:w}=ze(),R=j(()=>{var A;return Je((A=a.meta)==null?void 0:A.activePath)?a.path:a.meta.activePath});return Ge(()=>{var A;(A=e.value)==null||A.handleResize()}),(A,E)=>{const W=H("el-menu"),G=H("IconifyIconOffline"),M=H("el-dropdown-item"),B=H("el-dropdown-menu"),F=H("el-dropdown"),ce=et("loading");return ie((c(),S("div",Ls,[v("div",{class:"horizontal-header-left",onClick:E[0]||(E[0]=(...ee)=>o(f)&&o(f)(...ee))},[v("img",{src:o(p)(),alt:"logo"},null,8,As),v("span",null,se(o(d)),1)]),u(W,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":R.value},{default:x(()=>[(c(!0),S(ye,null,Ce(o(Ve)().wholeMenus,ee=>(c(),D(xn,{key:ee.path,item:ee,"base-path":ee.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Es,[u(Nt,{id:"header-search"}),u(F,{id:"header-translation",trigger:"click"},{dropdown:x(()=>[u(B,{class:"translation"},{default:x(()=>[u(M,{style:ue(o(L)(o(i),"zh")),class:le(["dark:!text-white",o(w)(o(i),"zh")]),onClick:o(s)},{default:x(()=>[ie(v("span",Zs,[u(G,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(M,{style:ue(o(L)(o(i),"en")),class:le(["dark:!text-white",o(w)(o(i),"en")]),onClick:o(l)},{default:x(()=>[ie(v("span",Os,[u(G,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:x(()=>[u(o(qt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Wt,{id:"full-screen"}),u(Ut,{id:"header-notice"}),u(F,{trigger:"click"},{dropdown:x(()=>[u(B,{class:"logout"},{default:x(()=>[u(M,{onClick:o(h)},{default:x(()=>[u(G,{icon:o(Gt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+se(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:x(()=>[v("span",Rs,[v("img",{src:o(_),style:ue(o(k))},null,12,Ps),o(g)?(c(),S("p",Ds,se(o(g)),1)):J("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.hssystemSet"),onClick:E[1]||(E[1]=(...ee)=>o(b)&&o(b)(...ee))},[u(G,{icon:o(_t)},null,8,["icon"])],8,js)])])),[[ce,o(Ve)().wholeMenus.length===0]])}}}),Bs=be(qs,[["__scopeId","data-v-848e7d44"]]),Fs={key:0},Ns=oe({__name:"index",setup(t){const e=P(),{isDark:n}=pn(),{layout:a}=ao(),i=cn(),s=Ft(),{$storage:l}=vt(),d=Rt({sidebar:j(()=>Xe().sidebar),device:j(()=>Xe().device),fixedHeader:j(()=>s.fixedHeader),classes:j(()=>({hideSidebar:!d.sidebar.opened,openSidebar:d.sidebar.opened,withoutAnimation:d.sidebar.withoutAnimation,mobile:d.device==="mobile"})),hideTabs:j(()=>l==null?void 0:l.configure.hideTabs)});function h(g){var _,k,L,w,R,A;window.document.body.setAttribute("layout",g),l.layout={layout:`${g}`,theme:(_=l.layout)==null?void 0:_.theme,darkMode:(k=l.layout)==null?void 0:k.darkMode,sidebarStatus:(L=l.layout)==null?void 0:L.sidebarStatus,epThemeColor:(w=l.layout)==null?void 0:w.epThemeColor,themeColor:(R=l.layout)==null?void 0:R.themeColor,overallStyle:(A=l.layout)==null?void 0:A.overallStyle}}function f(g,_){Xe().toggleDevice(g),Xe().toggleSideBar(_,"resize")}let b=!0;mt(e,g=>{if(i)return;const _=g[0],[{inlineSize:k}]=_.borderBoxSize;k<=760?h("vertical"):h(Xe().layout),k>0&&k<=760?(f("mobile",!1),b=!0):k>760&&k<=990?b&&(f("desktop",!1),b=!1):k>990&&!d.sidebar.isClickCollapse?(f("desktop",!0),b=!0):(f("desktop",!1),b=!1)}),Ke(()=>{i&&f("mobile",!1)}),mn(()=>{var g;Bt().dataThemeChange((g=l.layout)==null?void 0:g.overallStyle)});const p=oe({render(){return rt("div",{class:{"fixed-header":d.fixedHeader},style:[d.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"))?rt(el):null,!s.hiddenSideBar&&a.value.includes("horizontal")?rt(Bs):null,rt(vl)]})}});return(g,_)=>{const k=H("el-backtop"),L=H("el-scrollbar");return c(),S("div",{ref_key:"appWrapperRef",ref:e,class:le(["app-wrapper",d.classes])},[ie(v("div",{class:"app-mask",onClick:_[0]||(_[0]=w=>o(Xe)().toggleSideBar())},null,512),[[xe,d.device==="mobile"&&d.sidebar.opened&&o(a).includes("vertical")]]),ie(u(zs,null,null,512),[[xe,!o(s).hiddenSideBar&&(o(a).includes("vertical")||o(a).includes("mix"))]]),v("div",{class:le(["main-container",o(s).hiddenSideBar?"main-hidden":""])},[d.fixedHeader?(c(),S("div",Fs,[u(o(p)),u(sn,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])])):(c(),D(L,{key:1},{default:x(()=>[u(k,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:x(()=>[u(o(vn))]),_:1}),u(o(p)),u(sn,{"fixed-header":d.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),u(is)],2)}}}),dr=be(Ns,[["__scopeId","data-v-e1cc1ddb"]]);export{dr as default};
|