mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
91 KiB
JavaScript
11 lines
91 KiB
JavaScript
var Sn=Object.defineProperty,Mn=Object.defineProperties;var Tn=Object.getOwnPropertyDescriptors;var Qt=Object.getOwnPropertySymbols;var Vn=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable;var en=(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={}))Vn.call(e,n)&&en(t,n,e[n]);if(Qt)for(var n of Qt(e))zn.call(e,n)&&en(t,n,e[n]);return t},Ct=(t,e)=>Mn(t,Tn(e));var at=(t,e,n)=>new Promise((a,i)=>{var s=f=>{try{h(n.next(f))}catch(d){i(d)}},l=f=>{try{h(n.throw(f))}catch(d){i(d)}},h=f=>f.done?a(f.value):Promise.resolve(f.value).then(s,l);h((n=n.apply(t,e)).next())});import{fp as ne,at as Hn,aw as Je,ax as Ln,f as c,k as S,g as v,d as te,a as D,a1 as At,p as j,cT as vt,m as Xe,F as be,l as Ce,s as ce,b as P,$ as Ee,u as o,t as re,af as Be,i as u,_ as ye,e as z,h as _e,j as Y,B as se,a5 as xe,q as Pe,n as Ze,cU as un,y as Ke,cX as An,ai as Et,Z as En,S as St,aj as Zn,ac as Te,fq as xt,w as C,dg as On,au as Ne,d1 as Qe,aF as Rn,a2 as dn,dk as Se,A as Ye,v as le,fr as Zt,fs as ht,ah as Ot,ft as je,M as Dn,fu as et,av as st,r as Rt,fv as Re,fw as hn,fx as Pn,fy as dt,d3 as We,fz as ft,fA as fn,z as Dt,b5 as Pt,fB as It,fC as jn,fD as Bn,C as jt,D as Bt,X as pt,fE as ut,c_ as Mt,fF as tn,N as rt,ar as pn,Y as nt,a3 as mn,o as qn,c as Fn,O as Nn,fG as Un,aJ as Wn,b6 as Gn,fm as Kn,a8 as nn}from"./index-CiUe5cVr.js";import{d as Xn,a as mt}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 Ve,a as qt,g as Ft,b as Nt,t as to,c as no,e as oo,f as ao}from"./dark-WgfYO5OT.js";import{u as Fe}from"./app-DEIZJ_f4.js";import{m as lo}from"./index-QpUUYT1t.js";import{u as Tt}from"./epTheme-CgyYRqcr.js";import{u as De}from"./hooks-D2yv24x9.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 Vt}from"./arrow-right-s-line-CxPb13eK.js";import{b as vn}from"./back_top-BgGmTZqQ.js";import{R as $t}from"./index-CAi2xJzd.js";import{R as on}from"./index-RytdV7iJ.js";import"./user-DNtD0Fqa.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"/>'},To={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"/>'},Vo={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"/>'},zo={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"/>'},Ho={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"/>'};ne("ep:menu",Xn);ne("ep:edit",io);ne("ep:set-up",co);ne("ep:guide",uo);ne("ep:monitor",ho);ne("ep:lollipop",fo);ne("ep:histogram",po);ne("ep:home-filled",Yn);ne("ri:bookmark-2-line",mo);ne("ri:file-ppt-2-line",vo);ne("ri:bank-card-line",_o);ne("ri:admin-fill",go);ne("ri:file-info-line",yo);ne("ri:git-branch-line",Jn);ne("ri:links-fill",wo);ne("ri:table-line",bo);ne("ri:search-line",_n);ne("ri:admin-line",Qn);ne("ri:settings-3-line",_t);ne("ri:bar-chart-horizontal-line",ko);ne("ri:window-line",Co);ne("ri:file-search-line",Io);ne("ri:artboard-line",xo);ne("ri:list-check",$o);ne("ri:ubuntu-fill",So);ne("ri:user-voice-line",Mo);ne("ri:edit-box-line",To);ne("ri:history-fill",Vo);ne("ri:information-line",eo);ne("ri:terminal-window-line",zo);ne("ri:checkbox-circle-line",Ho);const Lo=Hn({id:"pure-setting",state:()=>({title:Je().Title,fixedHeader:Je().FixedHeader,hiddenSideBar:Je().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 Ut(){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"],Do={class:"result-item-title"},Po=te({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:n}){const a=D(),i=D(),s=n,l=At(),h=t,f=j(()=>w=>({background:(w==null?void 0:w.path)===d.value?Tt().epThemeColor:"",color:w.path===d.value?"#fff":"",fontSize:w.path===d.value?"16px":"14px"})),d=j({get(){return h.value},set(w){s("update:value",w)}});function y(w){return at(this,null,function*(){d.value=w.path})}function p(){s("enter")}function g(){i.value=window.innerHeight-window.innerHeight/10-140}vt(a,g);function _(w){var O;const E=(O=l==null?void 0:l.proxy)==null?void 0:O.$refs[`resultItemRef${w}`];if(!E)return 0;const A=E[0].offsetTop+128;return A>i.value?A-i.value:0}return Xe(()=>{g()}),e({handleScroll:_}),(w,E)=>(c(),S("div",{ref_key:"resultRef",ref:a,class:"result"},[(c(!0),S(be,null,Ce(w.options,(x,A)=>{var O,H;return c(),S("div",{key:x.path,ref_for:!0,ref:"resultItemRef"+A,class:"result-item dark:bg-[#1d1d1d]",style:ce(f.value(x)),onClick:p,onMouseenter:W=>y(x)},[(c(),P(Ee(o(De)((O=x.meta)==null?void 0:O.icon)))),v("span",Do,re(o(Be)((H=x.meta)==null?void 0:H.title)),1),u(o(gn))],44,Ro)}),128))],512))}}),jo=ye(Po,[["__scopeId","data-v-b88fa124"]]),Bo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},qo=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=[qo];function No(t,e){return c(),S("svg",Bo,[...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=te({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:n}=Ve();return(a,i)=>{const s=z("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," 共"+re(e.total)+"项 ",1)):Y("",!0)])}}}),ta=ye(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=te({__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 f,d;const h=z("IconifyIconOffline");return c(),S(be,null,[(c(),P(Ee(o(De)((f=s.item.meta)==null?void 0:f.icon)))),v("span",oa,re(o(Be)((d=s.item.meta)==null?void 0:d.title)),1),se(u(h,{icon:o(na),class:"w-[18px] h-[18px] mr-2 hover:text-[#d7d5d4]",onClick:l[0]||(l[0]=Pe(y=>a(s.item),["stop"]))},null,8,["icon"]),[[xe,s.item.type==="history"]]),u(h,{icon:o(mt),class:"w-[18px] h-[18px] hover:text-[#d7d5d4] cursor-pointer",onClick:l[1]||(l[1]=Pe(y=>i(s.item),["stop"]))},null,8,["icon"])],64)}}}),an=ye(aa,[["__scopeId","data-v-a9dc41c7"]]),la=["onMouseenter"],sa={class:"collect-container"},ra=["onMouseenter"],ia=te({__name:"SearchHistory",props:{value:{},options:{}},emits:["update:value","enter","collect","delete","drag"],setup(t,{expose:e,emit:n}){const a=D(),i=D(),s=D(!1),l=n,h=At(),f=t,d=j(()=>I=>({background:(I==null?void 0:I.path)===p.value?Tt().epThemeColor:"",color:I.path===p.value?"#fff":"",fontSize:I.path===p.value?"16px":"14px"})),y=j(()=>({color:Tt().epThemeColor,fontWeight:500})),p=j({get(){return f.value},set(I){l("update:value",I)}});Ze(()=>f.value,I=>{I&&s.value&&un(100).then(()=>s.value=!1)});const g=j(()=>f.options.filter(I=>I.type==="history")),_=j(()=>f.options.filter(I=>I.type==="collect"));function w(I){l("collect",I)}function E(I){s.value=!0,l("delete",I)}function x(I){return at(this,null,function*(){s.value||(p.value=I.path)})}function A(){l("enter")}function O(){i.value=window.innerHeight-window.innerHeight/10-140}vt(a,O);function H(I){var ee;const q=(ee=h==null?void 0:h.proxy)==null?void 0:ee.$refs[`historyItemRef${I}`];if(!q)return 0;const ue=(An(q)?q[0]:q).offsetTop+128;return ue>i.value?ue-i.value:0}const W=I=>{l("drag",{oldIndex:I.oldIndex,newIndex:I.newIndex})};let J=null;return Ze(_,I=>{I.length>1&&Ke(()=>{const q=document.querySelector(".collect-container");!q||J||(J=so.create(q,{animation:160,onStart:F=>{F.item.style.cursor="move"},onEnd:F=>{F.item.style.cursor="pointer"},onUpdate:W}),O())})},{deep:!0,immediate:!0}),e({handleScroll:H}),(I,q)=>(c(),S("div",{ref_key:"historyRef",ref:a,class:"history"},[g.value.length?(c(),S(be,{key:0},[v("div",{style:ce(y.value)},"搜索历史",4),(c(!0),S(be,null,Ce(g.value,(F,ue)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+ue,class:"history-item dark:bg-[#1d1d1d]",style:ce(d.value(F)),onClick:A,onMouseenter:ee=>x(F)},[u(an,{item:F,onDeleteItem:E,onCollectItem:w},null,8,["item"])],44,la))),128))],64)):Y("",!0),_.value.length?(c(),S(be,{key:1},[v("div",{style:ce(y.value)}," 收藏"+re(_.value.length>1?"(可拖拽排序)":""),5),v("div",sa,[(c(!0),S(be,null,Ce(_.value,(F,ue)=>(c(),S("div",{key:F.path,ref_for:!0,ref:"historyItemRef"+(ue+g.value.length),class:"history-item dark:bg-[#1d1d1d]",style:ce(d.value(F)),onClick:A,onMouseenter:ee=>x(F)},[u(an,{item:F,onDeleteItem:E},null,8,["item"])],44,ra))),128))])],64)):Y("",!0)],512))}}),ca=ye(ia,[["__scopeId","data-v-9fa90bc8"]]),ua={class:"search-content"},ln="history",da="collect",qe="menu-search-history",Ge="menu-search-collect",ha=te({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:n}=Ve(),a=e,i=t,s=Et(),{locale:l}=En(),h=D(""),f=D(),d=D(),y=D(),p=D(""),g=D(""),_=St([]),w=St([]),E=On(ee,300),x=Je().MenuSearchHistory,A=D(null),O=j(()=>Zn(Te().wholeMenus)),H=j({get(){return i.value},set(b){a("update:value",b)}});Ze(()=>i.value,b=>{b&&ie()});const W=j(()=>h.value&&_.value.length>0),J=j(()=>!h.value&&w.value.length>0),I=j(()=>!h.value&&w.value.length===0||h.value&&_.value.length===0);function q(b){return Ne().getItem(b)||[]}function F(b,k){Ne().setItem(b,k)}function ue(b){const k=[];function V(G){G.forEach(T=>{k.push(T),T.children&&V(T.children)})}return V(b),k}function ee(){var k;const b=ue(O.value);_.value=b.filter(V=>{var G,T;return h.value?Be((G=V.meta)==null?void 0:G.title).toLocaleLowerCase().includes(h.value.toLocaleLowerCase().trim())||l.value==="zh"&&!Qe(lo(Be((T=V.meta)==null?void 0:T.title).toLocaleLowerCase(),h.value.toLocaleLowerCase().trim())):!1}),p.value=((k=_.value)==null?void 0:k.length)>0?_.value[0].path:""}function B(){H.value=!1,setTimeout(()=>{_.value=[],g.value="",h.value=""},200)}function ae(b){const V=(_.value.length?f.value:d.value).handleScroll(b);y.value.setScrollTop(V)}function pe(){const b=_.value.length>0,k=b?_.value:w.value,V=b?p.value:g.value;return{options:k,currentPath:V,isResultOptions:b}}function we(b,k){k?p.value=_.value[b].path:g.value=w.value[b].path,ae(b)}function Le(){const{options:b,currentPath:k,isResultOptions:V}=pe();if(b.length===0)return;const T=(b.findIndex(L=>L.path===k)-1+b.length)%b.length;we(T,V)}function Ie(){const{options:b,currentPath:k,isResultOptions:V}=pe();if(b.length===0)return;const T=(b.findIndex(L=>L.path===k)+1)%b.length;we(T,V)}function ze(){const{options:b,currentPath:k,isResultOptions:V}=pe();if(b.length===0||k==="")return;const G=b.findIndex(T=>T.path===k);G!==-1&&(V?M():K(),s.push(b[G].path),B())}function r(b){const k=b.type===ln?qe:Ge;let V=q(k);V=V.filter(G=>G.path!==b.path),F(k,V),ie()}function m(b){let k=q(qe),V=q(Ge);k=k.filter(G=>G.path!==b.path),F(qe,k),V.some(G=>G.path===b.path)||(V.unshift(Ct(kt({},b),{type:da})),F(Ge,V)),ie()}function M(){const{path:b,meta:k}=_.value.find(de=>de.path===p.value),V=q(qe),T=q(Ge).some(de=>de.path===b),L=V.findIndex(de=>de.path===b);T||(L!==-1&&V.splice(L,1),V.length>=x&&V.pop(),V.unshift({path:b,meta:k,type:ln}),Ne().setItem(qe,V))}function K(){let b=q(qe);const k=b.findIndex(V=>V.path===g.value);if(k!==-1){const[V]=b.splice(k,1);b.unshift(V),F(qe,b)}}function ie(){var V;const b=q(qe),k=q(Ge);w.value=[...b,...k],g.value=(V=w.value[0])==null?void 0:V.path}function oe(b){const k=q(Ge),[V]=k.splice(b.oldIndex,1);k.splice(b.newIndex,0,V),Ne().setItem(Ge,k),w.value=[...q(qe),...q(Ge)],g.value=V.path}return xt("Enter",ze),xt("ArrowUp",Le),xt("ArrowDown",Ie),(b,k)=>{const V=z("IconifyIconOffline"),G=z("el-input"),T=z("el-empty"),L=z("el-scrollbar"),de=z("el-dialog");return c(),P(de,{modelValue:H.value,"onUpdate:modelValue":k[3]||(k[3]=me=>H.value=me),top:"5vh",class:"pure-search-dialog","show-close":!1,width:o(n)==="mobile"?"80vw":"40vw","before-close":B,style:{borderRadius:"6px"},"append-to-body":"",onOpened:k[4]||(k[4]=me=>A.value.focus()),onClosed:k[5]||(k[5]=me=>A.value.blur())},{footer:C(()=>[u(ta,{total:_.value.length},null,8,["total"])]),default:C(()=>[u(G,{ref_key:"inputRef",ref:A,modelValue:h.value,"onUpdate:modelValue":k[0]||(k[0]=me=>h.value=me),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:o(E)},{prefix:C(()=>[u(V,{icon:o(_n),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),v("div",ua,[u(L,{ref_key:"scrollbarRef",ref:y,"max-height":"calc(90vh - 140px)"},{default:C(()=>[I.value?(c(),P(T,{key:0,description:"暂无搜索结果"})):Y("",!0),J.value?(c(),P(ca,{key:1,ref_key:"historyRef",ref:d,value:g.value,"onUpdate:value":k[1]||(k[1]=me=>g.value=me),options:w.value,onClick:ze,onDelete:r,onCollect:m,onDrag:oe},null,8,["value","options"])):Y("",!0),W.value?(c(),P(jo,{key:2,ref_key:"resultRef",ref:f,value:p.value,"onUpdate:value":k[2]||(k[2]=me=>p.value=me),options:_.value,onClick:ze},null,8,["value","options"])):Y("",!0)]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),fa=ye(ha,[["__scopeId","data-v-ba7ee514"]]);function pa(t=!1){const e=D(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 Wt=te({__name:"index",setup(t){const{bool:e,toggle:n}=pa();function a(){n()}return(i,s)=>{const l=z("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]=h=>Rn(e)?e.value=h:null)},null,8,["value"])])}}}),sn=[{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=te({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=D(null),a=D(!1),i=D(null),s=D(!1),{tooltipEffect:l}=Ve(),h=dn();function f(){Ke(()=>{var y,p;((y=n.value)==null?void 0:y.scrollWidth)>((p=n.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function d(y,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 w=y.target.offsetWidth;_>2*w?s.value=!0:s.value=!1}return(y,p)=>{var E,x;const g=z("el-avatar"),_=z("el-tooltip"),w=z("el-tag");return c(),S("div",ma,[e.noticeItem.avatar?(c(),P(g,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!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(h)},{default:C(()=>[v("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:f},re(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(E=e.noticeItem)!=null&&E.extra?(c(),P(w,{key:0,type:(x=e.noticeItem)==null?void 0:x.status,size:"small",class:"notice-title-extra"},{default:C(()=>{var A;return[_e(re((A=e.noticeItem)==null?void 0:A.extra),1)]}),_:1},8,["type"])):Y("",!0)]),u(_,{"popper-class":"notice-title-popper",effect:o(l),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:C(()=>[v("div",{ref_key:"descriptionRef",ref:i,class:"notice-text-description",onMouseover:p[0]||(p[0]=A=>d(A,e.noticeItem.description))},re(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",ga,re(e.noticeItem.datetime),1)])])}}}),ba=ye(ya,[["__scopeId","data-v-2a7dbc48"]]),wa={key:0},ka=te({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,a)=>{const i=z("el-empty");return e.list.length?(c(),S("div",wa,[(c(!0),S(be,null,Ce(e.list,(s,l)=>(c(),P(ba,{key:l,noticeItem:s},null,8,["noticeItem"]))),128))])):(c(),P(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=te({__name:"index",setup(t){const e=D(0),n=D(sn),a=D(sn[0].key);return n.value.map(i=>e.value+=i.list.length),(i,s)=>{const l=z("IconifyIconOffline"),h=z("el-badge"),f=z("el-empty"),d=z("el-scrollbar"),y=z("el-tab-pane"),p=z("el-tabs"),g=z("el-dropdown-menu"),_=z("el-dropdown");return c(),P(_,{trigger:"click",placement:"bottom-end"},{dropdown:C(()=>[u(g,null,{default:C(()=>[u(p,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=w=>a.value=w),stretch:!0,class:"dropdown-tabs",style:ce({width:n.value.length===0?"200px":"330px"})},{default:C(()=>[n.value.length===0?(c(),P(f,{key:0,description:"暂无消息","image-size":60})):(c(),S("span",$a,[(c(!0),S(be,null,Ce(n.value,w=>(c(),P(y,{key:w.key,label:`${w.name}(${w.list.length})`,name:`${w.key}`},{default:C(()=>[u(d,{"max-height":"330px"},{default:C(()=>[v("div",Sa,[u(ka,{list:w.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:C(()=>[v("span",xa,[u(h,{value:e.value,max:99},{default:C(()=>[v("span",Ia,[u(l,{icon:o(Ca)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Gt=ye(Ma,[["__scopeId","data-v-33dc6db9"]]),Ta={key:0,class:"flex justify-center items-center"},zt=te({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,a)=>e.extraIcon?(c(),S("div",Ta,[(c(),P(Ee(o(De)(Se(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),Kt=te({__name:"fullScreen",setup(t){const e=D(),{toggle:n,isFullscreen:a,Fullscreen:i,ExitFullscreen:s}=Ve();return a.value=!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement),Ze(a,l=>{e.value=l?s:i},{immediate:!0}),(l,h)=>{const f=z("IconifyIconOffline");return c(),S("span",{class:"fullscreen-icon navbar-bg-hover",onClick:h[0]||(h[0]=(...d)=>o(n)&&o(n)(...d))},[u(f,{icon:e.value},null,8,["icon"])])}}}),Xt={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"/>'},Va={key:0,class:"horizontal-header"},za={class:"select-none"},Ha={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"],Da=te({__name:"mixNav",setup(t){const e=D(),n=D(null),{t:a,route:i,locale:s,translationCh:l,translationEn:h}=qt(e),{device:f,logout:d,onPanel:y,resolvePath:p,username:g,userAvatar:_,getDivStyle:w,avatarsStyle:E,getDropdownItemStyle:x,getDropdownItemClass:A}=Ve();function O(H){var I,q,F;const W=Te().wholeMenus,J=Zt(H,W)[0];n.value=Qe((I=i.meta)==null?void 0:I.activePath)?(F=(q=ht(J,W))==null?void 0:q.children[0])==null?void 0:F.path:i.meta.activePath}return Xe(()=>{O(i.path)}),Ke(()=>{var H;(H=e.value)==null||H.handleResize()}),Ze(()=>[i.path,Te().wholeMenus],()=>{O(i.path)}),(H,W)=>{const J=z("el-menu-item"),I=z("el-menu"),q=z("IconifyIconOffline"),F=z("el-dropdown-item"),ue=z("el-dropdown-menu"),ee=z("el-dropdown"),B=Ye("loading");return o(f)!=="mobile"?se((c(),S("div",Va,[u(I,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":n.value},{default:C(()=>[(c(!0),S(be,null,Ce(o(Te)().wholeMenus,ae=>(c(),P(J,{key:ae.path,index:o(p)(ae)||ae.redirect},{title:C(()=>[Se(ae.meta.icon)?(c(),S("div",{key:0,class:le(["sub-menu-icon",ae.meta.icon])},[(c(),P(Ee(o(De)(ae.meta&&Se(ae.meta.icon)))))],2)):Y("",!0),v("div",{style:ce(o(w))},[v("span",za,re(o(Be)(ae.meta.title)),1),u(zt,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",Ha,[u(Wt,{id:"header-search"}),u(ee,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[u(ue,{class:"translation"},{default:C(()=>[u(F,{style:ce(o(x)(o(s),"zh")),class:le(["dark:!text-white",o(A)(o(s),"zh")]),onClick:o(l)},{default:C(()=>[se(v("span",La,[u(q,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(F,{style:ce(o(x)(o(s),"en")),class:le(["dark:!text-white",o(A)(o(s),"en")]),onClick:o(h)},{default:C(()=>[se(v("span",Aa,[u(q,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(s)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[u(o(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{id:"header-notice"}),u(ee,{trigger:"click"},{dropdown:C(()=>[u(ue,{class:"logout"},{default:C(()=>[u(F,{onClick:o(d)},{default:C(()=>[u(q,{icon:o(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+re(o(a)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",Ea,[v("img",{src:o(_),style:ce(o(E))},null,12,Za),o(g)?(c(),S("p",Oa,re(o(g)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(a)("buttons.pureSystemSet"),onClick:W[0]||(W[0]=(...ae)=>o(y)&&o(y)(...ae))},[u(q,{icon:o(_t)},null,8,["icon"])],8,Ra)])])),[[B,o(Te)().wholeMenus.length===0]]):Y("",!0)}}}),Pa=ye(Da,[["__scopeId","data-v-e67a7c2c"]]),ja=["onClick"],Ba=te({__name:"breadCrumb",setup(t){const e=Ot(),n=D([]),a=Et(),i=a.options.routes,s=je().multiTags,l=()=>{let f;Object.keys(e.query).length>0?s.forEach(p=>{et(e.query,p==null?void 0:p.query)&&(f=Se(p))}):Object.keys(e.params).length>0?s.forEach(p=>{et(e.params,p==null?void 0:p.params)&&(f=Se(p))}):f=ht(a.currentRoute.value.path,i);const d=Zt(a.currentRoute.value.name,i,"name"),y=[];d.forEach(p=>{p!=="/"&&y.push(ht(p,i))}),y.push(f),y.forEach((p,g)=>{f!=null&&f.query||f!=null&&f.params||p!=null&&p.children&&p.children.forEach(_=>{var w,E;((w=_==null?void 0:_.meta)==null?void 0:w.title)===((E=p==null?void 0:p.meta)==null?void 0:E.title)&&y.splice(g,1)})}),n.value=y.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},h=f=>{const{redirect:d,name:y,path:p}=f;d?a.push(d):y?f.query?a.push({name:y,query:f.query}):f.params?a.push({name:y,params:f.params}):a.push({name:y}):a.push({path:p})};return Xe(()=>{l()}),Ze(()=>e.path,()=>{l()},{deep:!0}),(f,d)=>{const y=z("el-breadcrumb-item"),p=z("el-breadcrumb");return c(),P(p,{class:"!leading-[50px] select-none",separator:"/"},{default:C(()=>[u(Dn,{name:"breadcrumb"},{default:C(()=>[(c(!0),S(be,null,Ce(n.value,g=>(c(),P(y,{key:g.path,class:"!inline !items-stretch"},{default:C(()=>[v("a",{onClick:Pe(_=>h(g),["prevent"])},re(o(Be)(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"/>'},qa={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=te({__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 h=z("IconifyIconOffline");return c(),S("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:i},[u(h,{icon:n.isActive?o(yn):o(qa),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=te({__name:"navbar",setup(t){const{layout:e,device:n,logout:a,onPanel:i,pureApp:s,username:l,userAvatar:h,avatarsStyle:f,toggleSideBar:d,getDropdownItemStyle:y,getDropdownItemClass:p}=Ve(),{t:g,locale:_,translationCh:w,translationEn:E}=qt();return(x,A)=>{const O=z("IconifyIconOffline"),H=z("el-dropdown-item"),W=z("el-dropdown-menu"),J=z("el-dropdown");return c(),S("div",Ua,[o(n)==="mobile"?(c(),P(Na,{key:0,class:"hamburger-container","is-active":o(s).sidebar.opened,onToggleClick:o(d)},null,8,["is-active","onToggleClick"])):Y("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(c(),P(Ba,{key:1,class:"breadcrumb-container"})):Y("",!0),o(e)==="mix"?(c(),P(Pa,{key:2})):Y("",!0),o(e)==="vertical"?(c(),S("div",Wa,[u(Wt,{id:"header-search"}),u(J,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[u(W,{class:"translation"},{default:C(()=>[u(H,{style:ce(o(y)(o(_),"zh")),class:le(["dark:!text-white",o(p)(o(_),"zh")]),onClick:o(w)},{default:C(()=>[se(u(O,{class:"check-zh",icon:o(tt)},null,8,["icon"]),[[xe,o(_)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(H,{style:ce(o(y)(o(_),"en")),class:le(["dark:!text-white",o(p)(o(_),"en")]),onClick:o(E)},{default:C(()=>[se(v("span",Ga,[u(O,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(_)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[u(o(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{id:"header-notice"}),u(J,{trigger:"click"},{dropdown:C(()=>[u(W,{class:"logout"},{default:C(()=>[u(H,{onClick:o(a)},{default:C(()=>[u(O,{icon:o(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+re(o(g)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",Ka,[v("img",{src:o(h),style:ce(o(f))},null,12,Xa),o(l)?(c(),S("p",Ya,re(o(l)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(g)("buttons.pureSystemSet"),onClick:A[0]||(A[0]=(...I)=>o(i)&&o(i)(...I))},[u(O,{icon:o(_t)},null,8,["icon"])],8,Ja)])):Y("",!0)])}}}),el=ye(Qa,[["__scopeId","data-v-3ea3acfb"]]),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 ue,ee;const t=Ot(),e=Et(),n=At(),a=Ut(),i=D(0),s=D(0),l=D(0),h=D(!1),f=D(-1),d=D({}),y=D(!1),p=D(((ue=Ne().getItem(`${st()}configure`))==null?void 0:ue.showModel)||"smart"),g=(ee=D(Ne().getItem(`${st()}configure`).hideTabs))!=null?ee:D("false"),_=j(()=>je().multiTags),w=Rt([{icon:ro,text:Re("buttons.pureReload"),divided:!1,disabled:!1,show:!0},{icon:mt,text:Re("buttons.pureCloseCurrentTab"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:al,text:Re("buttons.pureCloseLeftTabs"),divided:!0,disabled:!(_.value.length>1),show:!0},{icon:ol,text:Re("buttons.pureCloseRightTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:nl,text:Re("buttons.pureCloseOtherTabs"),divided:!0,disabled:!(_.value.length>2),show:!0},{icon:tl,text:Re("buttons.pureCloseAllTabs"),divided:!1,disabled:!(_.value.length>1),show:!0},{icon:hn,text:Re("buttons.pureContentFullScreen"),divided:!0,disabled:!1,show:!0}]);function E(B,ae,pe){var we,Le;return Pn((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?et(t.query,B.query)?ae:pe:et(t.params,B.params)?ae:pe:t.path===B.path?ae:pe}const x=j(()=>(B,ae)=>{if(ae!==0)return E(B,!0,!1)}),A=j(()=>B=>E(B,"is-active","")),O=j(()=>B=>E(B,"schedule-active","")),H=j(()=>({transform:`translateX(${l.value}px)`,transition:y.value?"none":"transform 0.5s ease-in-out"})),W=j(()=>({left:s.value+"px",top:i.value+"px"})),J=()=>{h.value=!1};function I(B){if(B&&(f.value=B),o(p)==="smart"){if(dt(n.refs["schedule"+B][0],"schedule-active"))return;We(!0,"schedule-in",n.refs["schedule"+B][0]),We(!1,"schedule-out",n.refs["schedule"+B][0])}else{if(dt(n.refs["dynamic"+B][0],"is-active"))return;We(!0,"card-in",n.refs["dynamic"+B][0]),We(!1,"card-out",n.refs["dynamic"+B][0])}}function q(B){if(f.value=-1,o(p)==="smart"){if(dt(n.refs["schedule"+B][0],"schedule-active"))return;We(!1,"schedule-in",n.refs["schedule"+B][0]),We(!0,"schedule-out",n.refs["schedule"+B][0])}else{if(dt(n.refs["dynamic"+B][0],"is-active"))return;We(!1,"card-in",n.refs["dynamic"+B][0]),We(!0,"card-out",n.refs["dynamic"+B][0])}}function F(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Xe(()=>{if(!p.value){const B=Ne().getItem(`${st()}configure`);B.showModel="card",Ne().setItem(`${st()}configure`,B)}}),{Close:mt,route:t,router:e,visible:h,showTags:g,instance:n,multiTags:_,showModel:p,tagsViews:w,buttonTop:i,buttonLeft:s,translateX:l,pureSetting:a,activeIndex:f,getTabStyle:H,isScrolling:y,iconIsActive:x,linkIsActive:A,currentSelect:d,scheduleIsActive:O,getContextMenuStyle:W,$t:Re,closeMenu:J,onMounted:Xe,onMouseenter:I,onMouseleave:q,transformI18n:Be,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"/>'},Ht={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=te({__name:"index",setup(t){var Q;const{Close:e,route:n,router:a,visible:i,showTags:s,instance:l,multiTags:h,tagsViews:f,buttonTop:d,buttonLeft:y,showModel:p,translateX:g,pureSetting:_,activeIndex:w,getTabStyle:E,isScrolling:x,iconIsActive:A,linkIsActive:O,currentSelect:H,scheduleIsActive:W,getContextMenuStyle:J,closeMenu:I,onMounted:q,onMouseenter:F,onMouseleave:ue,transformI18n:ee,onContentFullScreen:B}=ll(),ae=D(),pe=D(),we=D(),Le=D(),Ie=D(!1),ze=(Q=ft())==null?void 0:Q.path,{VITE_HIDE_HOME:r}=rl,m=()=>at(this,null,function*(){yield Ke();const $=h.value.findIndex(Z=>Qe(n.query)?Qe(n.params)?n.path===Z.path:et(n.params,Z.params):et(n.query,Z.query));M($)}),M=$=>at(this,null,function*(){var ve,He;yield Ke();const Z=10;if(!l.refs["dynamic"+$])return;const R=l.refs["dynamic"+$][0],X=R==null?void 0:R.offsetLeft,he=R==null?void 0:R.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||X===0?g.value=0:X<-g.value?g.value=-X+Z:X>-g.value&&X+he<-g.value+N?g.value=Math.min(0,N-he-X-Z):g.value=-(X-(N-Z-he))}),K=$=>{var X;const Z=we.value?(X=we.value)==null?void 0:X.offsetWidth:0,R=ae.value?ae.value.offsetWidth:0;$>0?g.value=Math.min(0,g.value+$):Z<R?g.value>=-(R-Z)&&(g.value=Math.max(g.value+$,Z-R)):g.value=0,x.value=!1},ie=$=>{x.value=!0;const Z=Math.abs($.deltaX)+Math.abs($.deltaY);let R=0;$.deltaX<0?R=Z>0?Z:100:R=Z>0?-Z:-100,oe(R)},oe=$=>{let R=Math.abs($);const X=()=>{const he=Math.sign($)*Math.min(20,R);K(he),R-=Math.abs(he),R>0&&requestAnimationFrame(X)};requestAnimationFrame(X)};function b($){const Z=h.value.some(X=>X.path===$);function R(X,he){Z||X.forEach(N=>{N.path===he?je().handleTags("push",{path:he,meta:N.meta,name:N.name}):N.children&&N.children.length>0&&R(N.children,he)})}R(a.options.routes,$)}function k(){const{fullPath:$,query:Z}=o(n);a.replace({path:"/redirect"+$,query:Z}),It(n,"refresh")}function V($,Z,R){var U,ve,He,Jt;const X=h.value.findIndex(Ae=>{if(Ae.query){if(Ae.path===$.path)return Ae.query===$.query}else if(Ae.params){if(Ae.path===$.path)return Ae.params===$.params}else return Ae.path===$.path}),he=(Ae,In,$n)=>{$n?je().handleTags("equal",[r==="false"?Bn[0]:Se(ft()),$]):je().handleTags("splice","",{startIndex:Ae,length:In}),m()};R==="other"?he(1,1,!0):R==="left"?he(1,X-1):R==="right"?he(X+1,h.value.length):he(X,1);const N=je().handleTags("slice");if(Z===n.path){if(R==="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(!h.value.length||h.value.some(Ae=>Ae.path===n.path))return;(He=N[0])!=null&&He.query?a.push({name:N[0].name,query:N[0].query}):(Jt=N[0])!=null&&Jt.params?a.push({name:N[0].name,params:N[0].params}):a.push({path:N[0].path})}}function G($,Z){V($,$.path,Z),It(n)}function T($,Z,R){if(Z&&Z.disabled)return;let X;switch(R?X={path:R.path,meta:R.meta,name:R.name,query:R==null?void 0:R.query,params:R==null?void 0:R.params}:X={path:n.path,meta:n.meta},$){case 0:k();break;case 1:G(X);break;case 2:G(X,"left");break;case 3:G(X,"right");break;case 4:G(X,"other");break;case 5:je().handleTags("splice","",{startIndex:1,length:h.value.length}),a.push(ze),It(n);break;case 6:B(),setTimeout(()=>{_.hiddenSideBar?(f[6].icon=jn,f[6].text=Re("buttons.pureContentExitFullScreen")):(f[6].icon=hn,f[6].text=Re("buttons.pureContentFullScreen"))},100);break}setTimeout(()=>{ke(n.fullPath,n.query)})}function L($){const{key:Z,item:R}=$;T(Z,R)}function de($,Z){I(),T($,Z,H.value)}function me($){Array.of(1,2,3,4,5).forEach(Z=>{f[Z].show=$})}function Ue($){Array.of(1,2,3,4,5).forEach(Z=>{f[Z].disabled=$})}function ke($,Z={},R=!1){const X=h.value,he=h.value.length;let N=-1;Qe(Z)?N=X.findIndex(U=>U.path===$):N=X.findIndex(U=>et(U.query,Z)),me(!0),R&&(f[0].show=!0),N===1&&he!==2?(f[2].show=!1,Array.of(1,3,4,5).forEach(U=>{f[U].disabled=!1}),f[2].disabled=!0):N===1&&he===2?(Ue(!1),Array.of(2,3,4).forEach(U=>{f[U].show=!1,f[U].disabled=!0})):he-1===N&&N!==0?(f[3].show=!1,Array.of(1,2,4,5).forEach(U=>{f[U].disabled=!1}),f[3].disabled=!0):N===0||$===`/redirect${ze}`?Ue(!0):Ue(!1)}function ot($,Z){I(),$.path===ze?(me(!1),f[0].show=!0):n.path!==$.path&&n.name!==$.name?(f[0].show=!1,ke($.path,$.query)):h.value.length===2&&n.path!==$.path?(me(!0),f[4].show=!1):n.path===$.path&&ke($.path,$.query,!0),H.value=$;const R=140,X=o(pe).getBoundingClientRect().left,N=o(pe).offsetWidth-R,U=Z.clientX-X+5;U>N?y.value=N:y.value=U,Ut().hiddenSideBar?d.value=Z.clientY:d.value=Z.clientY-40,Ke(()=>{i.value=!0})}function wt($){const{name:Z,path:R}=$;Z?$.query?a.push({name:Z,query:$.query}):$.params?a.push({name:Z,params:$.params}):a.push({name:Z}):a.push({path:R})}return fn(Le,I,{detectIframe:!0}),Ze(n,()=>{w.value=-1,m()}),q(()=>{l&&(ke(n.fullPath),Me.on("tagViewsChange",$=>{o(s)!==$&&(s.value=$)}),Me.on("tagViewsShowModel",$=>{p.value=$}),Me.on("changLayoutRoute",$=>{b($),setTimeout(()=>{ke($)})}),vt(we,m),un().then(()=>m()))}),Dt(()=>{Me.off("tagViewsChange"),Me.off("tagViewsShowModel"),Me.off("changLayoutRoute")}),($,Z)=>{const R=z("IconifyIconOffline"),X=z("el-dropdown-item"),he=z("el-dropdown-menu"),N=z("el-dropdown");return o(s)?Y("",!0):(c(),S("div",{key:0,ref_key:"containerDom",ref:pe,class:"tags-view"},[se(v("span",il,[u(R,{icon:o(Ht),onClick:Z[0]||(Z[0]=U=>K(200))},null,8,["icon"])],512),[[xe,Ie.value]]),v("div",{ref_key:"scrollbarDom",ref:we,class:"scroll-container",onWheel:Pe(ie,["prevent"])},[v("div",{ref_key:"tabDom",ref:ae,class:"tab select-none",style:ce(o(E))},[(c(!0),S(be,null,Ce(o(h),(U,ve)=>(c(),S("div",{ref_for:!0,ref:"dynamic"+ve,key:ve,class:le(["scroll-item is-closable",o(O)(U)]),onContextmenu:Pe(He=>ot(U,He),["prevent"]),onMouseenter:Pe(He=>o(F)(ve),["prevent"]),onMouseleave:Pe(He=>o(ue)(ve),["prevent"]),onClick:He=>wt(U)},[v("span",ul,re(o(ee)(U.meta.title)),1),o(A)(U,ve)||ve===o(w)&&ve!==0?(c(),S("span",{key:0,class:"el-icon-close",onClick:Pe(He=>G(U),["stop"])},[u(R,{icon:o(e)},null,8,["icon"])],8,dl)):Y("",!0),o(p)!=="card"?(c(),S("span",{key:1,ref_for:!0,ref:"schedule"+ve,class:le([o(W)(U)])},null,2)):Y("",!0)],42,cl))),128))],4)],544),se(v("span",hl,[u(R,{icon:o(Vt),onClick:Z[1]||(Z[1]=U=>K(-200))},null,8,["icon"])],512),[[xe,Ie.value]]),u(Pt,{name:"el-zoom-in-top"},{default:C(()=>[se((c(),S("ul",{ref_key:"contextmenuRef",ref:Le,key:Math.random(),style:ce(o(J)),class:"contextmenu"},[(c(!0),S(be,null,Ce(o(f).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(R,{icon:U.icon},null,8,["icon"]),_e(" "+re(o(ee)(U.text)),1)],8,fl)):Y("",!0)]))),128))],4)),[[xe,o(i)]])]),_:1}),u(N,{trigger:"click",placement:"bottom-end",onCommand:L},{dropdown:C(()=>[u(he,null,{default:C(()=>[(c(!0),S(be,null,Ce(o(f),(U,ve)=>(c(),P(X,{key:ve,command:{key:ve,item:U},divided:U.divided,disabled:U.disabled},{default:C(()=>[u(R,{icon:U.icon},null,8,["icon"]),_e(" "+re(o(ee)(U.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:C(()=>[v("span",pl,[u(R,{icon:o(sl),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),vl=ye(ml,[["__scopeId","data-v-5d9853e3"]]),_l=t=>(jt("data-v-c4943840"),t=t(),Bt(),t),gl={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},yl={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},bl=_l(()=>v("div",{class:"ml-8"},[v("span",null,"赞助商:"),v("a",{class:"hover:text-primary",href:"https://ai-tools.cn/resume/start",target:"_blank"}," 二猫 AI 简历 ")],-1)),wl=te({__name:"index",setup(t){const e=Je("Title");return(n,a)=>(c(),S("footer",gl,[_e(" Copyright © 2020-2024 "),v("a",yl," "+re(o(e)),1),bl]))}}),rn=ye(wl,[["__scopeId","data-v-c4943840"]]),lt=new Map,kl=()=>{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}},Cl={class:"w-full h-full"},xl=te({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,n=St([]),{setMap:a,getMap:i,MAP:s,delMap:l}=kl(),h=j(()=>{var d,y;return Je().KeepAlive&&((d=e.currRoute.meta)==null?void 0:d.keepAlive)&&!!((y=e.currRoute.meta)!=null&&y.frameSrc)}),f=j(()=>!h.value&&e.currComp);return Ze(je().multiTags,d=>{if(!Array.isArray(d)||!h.value)return;if(d.filter(p=>{var g;return(g=p.meta)==null?void 0:g.frameSrc}).length<s.size)for(const p of s.keys())d.some(g=>g.path===p)||(l(p),n.value=i())}),Ze(()=>e.currRoute.fullPath,d=>{const p=je().multiTags.filter(g=>{var _;return(_=g.meta)==null?void 0:_.frameSrc});h.value&&p.length!==s.size&&([...s.keys()].find(_=>d===_)||a(d,e.currComp)),s.size>0&&(n.value=i())},{immediate:!0}),(d,y)=>(c(),S(be,null,[(c(!0),S(be,null,Ce(n.value,([p,g])=>{var _;return se((c(),S("div",{key:p,class:"w-full h-full"},[pt(d.$slots,"default",{fullPath:p,Comp:g,frameInfo:{frameSrc:(_=d.currRoute.meta)==null?void 0:_.frameSrc,fullPath:p}})],512)),[[xe,p===e.currRoute.fullPath]])}),128)),se(v("div",Cl,[pt(d.$slots,"default",{Comp:f.value,fullPath:e.currRoute.fullPath})],512),[[xe,!h.value]])],64))}}),Il={class:"grow"},$l={key:1,class:"grow"},Sl=te({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:a}=ut(),i=j(()=>a==null?void 0:a.KeepAlive),s=j(()=>_=>_.meta.transition),l=j(()=>n==null?void 0:n.configure.hideTabs),h=j(()=>n==null?void 0:n.configure.hideFooter),f=j(()=>n==null?void 0:n.configure.stretch),d=j(()=>(n==null?void 0:n.layout.layout)==="vertical"),y=j(()=>Mt(f.value)?f.value+"px":f.value?"1440px":"100%"),p=j(()=>[l.value&&d?"padding-top: 48px;":"",!l.value&&d?"padding-top: 81px;":"",l.value&&!d.value?"padding-top: 48px;":"",!l.value&&!d.value?"padding-top: 81px;":"",e.fixedHeader?"":`padding-top: 0;${l.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),g=te({props:{route:{type:void 0,required:!0}},render(){var x,A,O;const _=((x=s.value(this.route))==null?void 0:x.name)||"fade-transform",w=(A=s.value(this.route))==null?void 0:A.enterTransition,E=(O=s.value(this.route))==null?void 0:O.leaveTransition;return rt(Pt,{name:w?"pure-classes-transition":_,enterActiveClass:w?`animate__animated ${w}`:void 0,leaveActiveClass:E?`animate__animated ${E}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(_,w)=>{const E=z("el-backtop"),x=z("el-scrollbar"),A=z("router-view");return c(),S("section",{class:le([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ce(p.value)},[u(A,null,{default:C(({Component:O,route:H})=>[u(xl,{currComp:O,currRoute:H},{default:C(({Comp:W,fullPath:J,frameInfo:I})=>[e.fixedHeader?(c(),P(x,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap","max-width":y.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:C(()=>[u(E,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:C(()=>[u(o(vn))]),_:1}),v("div",Il,[u(o(g),{route:H},{default:C(()=>[i.value?(c(),P(tn,{key:0,include:o(Te)().cachePageList},[(c(),P(Ee(W),{key:J,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),P(Ee(W),{key:J,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),h.value?Y("",!0):(c(),P(rn,{key:0}))]),_:2},1032,["wrap-style"])):(c(),S("div",$l,[u(o(g),{route:H},{default:C(()=>[i.value?(c(),P(tn,{key:0,include:o(Te)().cachePageList},[(c(),P(Ee(W),{key:J,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),P(Ee(W),{key:J,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!h.value&&!e.fixedHeader?(c(),P(rn,{key:0})):Y("",!0)],6)}}}),cn=ye(Sl,[["__scopeId","data-v-918fa3f0"]]),bn=t=>(jt("data-v-af01f247"),t=t(),Bt(),t),Ml=bn(()=>v("div",{class:"right-panel-background"},null,-1)),Tl={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Vl=bn(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),zl={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Hl=te({__name:"index",setup(t){const e=D(null),n=D(!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}=Nt();return fn(e,s=>{s.clientX>e.value.offsetLeft||(n.value=!1)}),Xe(()=>{Me.on("openPanel",()=>{n.value=!0})}),Dt(()=>{Me.off("openPanel")}),(s,l)=>{const h=z("IconifyIconOffline"),f=z("el-scrollbar"),d=z("el-button"),y=Ye("tippy");return c(),S("div",{class:le({show:n.value})},[Ml,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",Tl,[Vl,se((c(),S("span",{class:le(a.value)},[u(h,{class:"dark:text-white",width:"18px",height:"18px",icon:o(mt),onClick:l[0]||(l[0]=p=>n.value=!n.value)},null,8,["icon"])],2)),[[y,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),u(f,null,{default:C(()=>[pt(s.$slots,"default",{},void 0,!0)]),_:3}),v("div",zl,[se((c(),P(d,{type:"danger",text:"",bg:"",onClick:o(i)},{default:C(()=>[_e(" 清空缓存 ")]),_:1},8,["onClick"])),[[y,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Ll=ye(Hl,[["__scopeId","data-v-af01f247"]]),Al={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},El=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),Zl=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),Ol=[El,Zl];function Rl(t,e){return c(),S("svg",Al,[...Ol])}const Dl={render:Rl},$e=t=>(jt("data-v-4c969016"),t=t(),Bt(),t),Pl={class:"p-5"},jl={class:"theme-color"},Bl=["onClick"],ql={class:"pure-theme"},Fl=$e(()=>v("div",null,null,-1)),Nl=$e(()=>v("div",null,null,-1)),Ul=[Fl,Nl],Wl=$e(()=>v("div",null,null,-1)),Gl=$e(()=>v("div",null,null,-1)),Kl=[Wl,Gl],Xl=$e(()=>v("div",null,null,-1)),Yl=$e(()=>v("div",null,null,-1)),Jl=[Xl,Yl],Ql={key:0},es=$e(()=>v("div",{class:"flex-grow border-b border-dashed",style:{"border-color":"var(--el-color-primary)"}},null,-1)),ts=$e(()=>v("p",{class:"mt-5 font-medium text-sm dark:text-white"},"界面显示",-1)),ns={class:"setting"},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"},"隐藏标签页",-1)),ss=$e(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),rs=$e(()=>v("span",{class:"dark:text-white"},"Logo",-1)),is=$e(()=>v("span",{class:"dark:text-white"},"页签持久化",-1)),cs=te({__name:"index",setup(t){var b,k,V,G;const{device:e}=Ve(),{isDark:n}=pn(),{$storage:a}=ut(),i=D(),s=D(),l=D(),{dataTheme:h,overallStyle:f,layoutTheme:d,themeColors:y,toggleClass:p,dataThemeChange:g,setLayoutThemeColor:_}=Nt();if(o(d)){const T=o(d).layout,L=o(d).theme;to({scopeName:`layout-theme-${L}`}),m(T)}const w=D((k=(b=a.configure)==null?void 0:b.showModel)!=null?k:"smart"),E=D((G=(V=a.configure)==null?void 0:V.showLogo)!=null?G:!0),x=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}),A=j(()=>T=>({background:T})),O=j(()=>T=>!(T==="light"&&n.value));function H(T,L){const de=a.configure;de[T]=L,a.configure=de}const W=T=>{const L=document.querySelector("html");p(x.greyVal,"html-grey",L),H("grey",T)},J=T=>{const L=document.querySelector("html");p(x.weakVal,"html-weakness",L),H("weak",T)},I=()=>{const T=x.tabsVal;H("hideTabs",T),Me.emit("tagViewsChange",T)},q=()=>{const T=x.hideFooter;H("hideFooter",T)},F=()=>{const T=x.multiTagsCache;H("multiTagsCache",T),je().multiTagsCacheChange(T)};function ue({option:T}){const{value:L}=T;w.value=L,H("showModel",L),Me.emit("tagViewsShowModel",L)}function ee(){o(E)?H("showLogo",!0):H("showLogo",!1),Me.emit("logoChange",o(E))}function B(T){T.forEach(L=>{p(!1,"is-select",o(L))})}const ae=[{label:"固定",tip:"紧凑页面,轻松找到所需信息",value:"fixed"},{label:"自定义",tip:"最小1280、最大1600",value:"custom"}],pe=T=>{x.stretch=T,H("stretch",T)},we=({option:T})=>{const{value:L}=T;pe(L==="custom"?1440:!1)},Le=j(()=>T=>T===d.value.theme&&d.value.theme!=="light"?"#fff":T===d.value.theme&&d.value.theme==="light"?"#1d2b45":"transparent"),Ie=j(()=>["mb-[12px]","font-medium","text-sm","dark:text-white"]),ze=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:Dl,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:n.value?"#fff":"#000"}}]),r=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function m(T){var L,de,me,Ue,ke;d.value.layout=T,window.document.body.setAttribute("layout",T),a.layout={layout:T,theme:d.value.theme,darkMode:(L=a.layout)==null?void 0:L.darkMode,sidebarStatus:(de=a.layout)==null?void 0:de.sidebarStatus,epThemeColor:(me=a.layout)==null?void 0:me.epThemeColor,themeColor:(Ue=a.layout)==null?void 0:Ue.themeColor,overallStyle:(ke=a.layout)==null?void 0:ke.overallStyle},Fe().setLayout(T)}Ze(a,({layout:T})=>{switch(T.layout){case"vertical":p(!0,"is-select",o(s)),nt(B([l]),50),nt(B([i]),50);break;case"horizontal":p(!0,"is-select",o(l)),nt(B([s]),50),nt(B([i]),50);break;case"mix":p(!0,"is-select",o(i)),nt(B([s]),50),nt(B([l]),50);break}});const M=window.matchMedia("(prefers-color-scheme: dark)");function K(){f.value==="system"&&(M.matches?h.value=!0:h.value=!1,g(f.value))}function ie(){M.removeEventListener("change",K)}function oe(){K(),ie(),M.addEventListener("change",K)}return mn(()=>{Ke(()=>{var T,L;oe(),x.greyVal&&((T=document.querySelector("html"))==null||T.classList.add("html-grey")),x.weakVal&&((L=document.querySelector("html"))==null||L.classList.add("html-weakness")),x.tabsVal&&I(),x.hideFooter&&q()})}),qn(()=>ie),(T,L)=>{const de=z("IconifyIconOffline"),me=z("el-icon"),Ue=z("el-input-number"),ke=z("el-switch"),ot=Ye("tippy"),wt=Ye("ripple");return c(),P(Ll,null,{default:C(()=>[v("div",Pl,[v("p",{class:le(Ie.value)},"整体风格",2),u(o($t),{class:"select-none",modelValue:o(f)==="system"?2:o(h)?1:0,options:ze.value,onChange:L[0]||(L[0]=Q=>{Q.index===1&&Q.index!==2?h.value=!0:h.value=!1,f.value=Q.option.theme,o(g)(Q.option.theme),Q.index===2&&oe()})},null,8,["modelValue","options"]),v("p",{class:le(["mt-5",Ie.value])},"主题色",2),v("ul",jl,[(c(!0),S(be,null,Ce(o(y),(Q,$)=>se((c(),S("li",{key:$,style:ce(A.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:C(()=>[u(de,{icon:o(tt)},null,8,["icon"])]),_:2},1032,["color"])],12,Bl)),[[xe,O.value(Q.themeColor)]])),128))]),v("p",{class:le(["mt-5",Ie.value])},"导航模式",2),v("ul",ql,[se((c(),S("li",{ref_key:"verticalRef",ref:s,class:le(o(d).layout==="vertical"?"is-select":""),onClick:L[1]||(L[1]=Q=>m("vertical"))},Ul,2)),[[ot,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),o(e)!=="mobile"?se((c(),S("li",{key:0,ref_key:"horizontalRef",ref:l,class:le(o(d).layout==="horizontal"?"is-select":""),onClick:L[2]||(L[2]=Q=>m("horizontal"))},Kl,2)),[[ot,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):Y("",!0),o(e)!=="mobile"?se((c(),S("li",{key:1,ref_key:"mixRef",ref:i,class:le(o(d).layout==="mix"?"is-select":""),onClick:L[3]||(L[3]=Q=>m("mix"))},Jl,2)),[[ot,{content:"混合菜单,灵活多变",zIndex:41e3}]]):Y("",!0)]),o(Fe)().getViewportWidth>1280?(c(),S("span",Ql,[v("p",{class:le(["mt-5",Ie.value])},"页宽",2),u(o($t),{class:"mb-2 select-none",modelValue:o(Mt)(x.stretch)?1:0,options:ae,onChange:we},null,8,["modelValue"]),o(Mt)(x.stretch)?(c(),P(Ue,{key:0,modelValue:x.stretch,"onUpdate:modelValue":L[4]||(L[4]=Q=>x.stretch=Q),min:1280,max:1600,"controls-position":"right",onChange:L[5]||(L[5]=Q=>pe(Q))},null,8,["modelValue"])):se((c(),S("button",{key:1,class:"bg-transparent flex-c w-full h-20 rounded-md border border-[var(--pure-border-color)]",onClick:L[6]||(L[6]=Q=>pe(!x.stretch))},[v("div",{class:le(["flex-bc transition-all duration-300",[x.stretch?"w-[24%]":"w-[50%]"]]),style:{color:"var(--el-color-primary)"}},[u(de,{icon:x.stretch?o(Vt):o(Ht),height:"20"},null,8,["icon"]),es,u(de,{icon:x.stretch?o(Ht):o(Vt),height:"20"},null,8,["icon"])],2)])),[[wt,{class:"text-gray-300"}]])])):Y("",!0),v("p",{class:le(["mt-4",Ie.value])},"页签风格",2),u(o($t),{class:"select-none",modelValue:w.value==="smart"?0:1,options:r,onChange:ue},null,8,["modelValue"]),ts,v("ul",ns,[v("li",null,[os,u(ke,{modelValue:x.greyVal,"onUpdate:modelValue":L[7]||(L[7]=Q=>x.greyVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),v("li",null,[as,u(ke,{modelValue:x.weakVal,"onUpdate:modelValue":L[8]||(L[8]=Q=>x.weakVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:J},null,8,["modelValue"])]),v("li",null,[ls,u(ke,{modelValue:x.tabsVal,"onUpdate:modelValue":L[9]||(L[9]=Q=>x.tabsVal=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:I},null,8,["modelValue"])]),v("li",null,[ss,u(ke,{modelValue:x.hideFooter,"onUpdate:modelValue":L[10]||(L[10]=Q=>x.hideFooter=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:q},null,8,["modelValue"])]),v("li",null,[rs,u(ke,{modelValue:E.value,"onUpdate:modelValue":L[11]||(L[11]=Q=>E.value=Q),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:ee},null,8,["modelValue"])]),v("li",null,[is,u(ke,{modelValue:x.multiTagsCache,"onUpdate:modelValue":L[12]||(L[12]=Q=>x.multiTagsCache=Q),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:F},null,8,["modelValue"])])])])]),_:1})}}}),us=ye(cs,[["__scopeId","data-v-4c969016"]]),ds=["src"],hs={class:"sidebar-title"},fs=["src"],ps={class:"sidebar-title"},ms=te({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n,getLogo:a}=Ve();return(i,s)=>{const l=z("router-link");return c(),S("div",{class:le(["sidebar-logo-container",{collapses:e.collapse}])},[u(Pt,{name:"sidebarLogoFade"},{default:C(()=>{var h,f,d,y;return[e.collapse?(c(),P(l,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:(f=(h=o(ft)())==null?void 0:h.path)!=null?f:"/"},{default:C(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,ds),v("span",hs,re(o(n)),1)]),_:1},8,["title","to"])):(c(),P(l,{key:"expand",title:o(n),class:"sidebar-logo-link",to:(y=(d=o(ft)())==null?void 0:d.path)!=null?y:"/"},{default:C(()=>[v("img",{src:o(a)(),alt:"logo"},null,8,fs),v("span",ps,re(o(n)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),vs=ye(ms,[["__scopeId","data-v-1e860333"]]);var ct={exports:{}},wn={},_s=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 gs=Lt.exports;(function(t){var e={},n=/%[sdj%]/g;t.format=function(r){if(!W(r)){for(var m=[],M=0;M<arguments.length;M++)m.push(s(arguments[M]));return m.join(" ")}for(var M=1,K=arguments,ie=K.length,oe=String(r).replace(n,function(k){if(k==="%%")return"%";if(M>=ie)return k;switch(k){case"%s":return String(K[M++]);case"%d":return Number(K[M++]);case"%j":try{return JSON.stringify(K[M++])}catch(V){return"[Circular]"}default:return k}}),b=K[M];M<ie;b=K[++M])A(b)||!F(b)?oe+=" "+b:oe+=" "+s(b);return oe},t.deprecate=function(r,m){if(I(Fn.process))return function(){return t.deprecate(r,m).apply(this,arguments)};if(process.noDeprecation===!0)return r;var M=!1;function K(){if(!M){if(process.throwDeprecation)throw new Error(m);process.traceDeprecation?console.trace(m):console.error(m),M=!0}return r.apply(this,arguments)}return K};var a={},i;t.debuglog=function(r){if(I(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 M=t.format.apply(t,arguments);console.error("%s %d: %s",r,m,M)}}else a[r]=function(){};return a[r]};function s(r,m){var M={seen:[],stylize:h};return arguments.length>=3&&(M.depth=arguments[2]),arguments.length>=4&&(M.colors=arguments[3]),x(m)?M.showHidden=m:m&&t._extend(M,m),I(M.showHidden)&&(M.showHidden=!1),I(M.depth)&&(M.depth=2),I(M.colors)&&(M.colors=!1),I(M.customInspect)&&(M.customInspect=!0),M.colors&&(M.stylize=l),d(M,r,M.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 M=s.styles[m];return M?"\x1B["+s.colors[M][0]+"m"+r+"\x1B["+s.colors[M][1]+"m":r}function h(r,m){return r}function f(r){var m={};return r.forEach(function(M,K){m[M]=!0}),m}function d(r,m,M){if(r.customInspect&&m&&B(m.inspect)&&m.inspect!==t.inspect&&!(m.constructor&&m.constructor.prototype===m)){var K=m.inspect(M,r);return W(K)||(K=d(r,K,M)),K}var ie=y(r,m);if(ie)return ie;var oe=Object.keys(m),b=f(oe);if(r.showHidden&&(oe=Object.getOwnPropertyNames(m)),ee(m)&&(oe.indexOf("message")>=0||oe.indexOf("description")>=0))return p(m);if(oe.length===0){if(B(m)){var k=m.name?": "+m.name:"";return r.stylize("[Function"+k+"]","special")}if(q(m))return r.stylize(RegExp.prototype.toString.call(m),"regexp");if(ue(m))return r.stylize(Date.prototype.toString.call(m),"date");if(ee(m))return p(m)}var V="",G=!1,T=["{","}"];if(E(m)&&(G=!0,T=["[","]"]),B(m)){var L=m.name?": "+m.name:"";V=" [Function"+L+"]"}if(q(m)&&(V=" "+RegExp.prototype.toString.call(m)),ue(m)&&(V=" "+Date.prototype.toUTCString.call(m)),ee(m)&&(V=" "+p(m)),oe.length===0&&(!G||m.length==0))return T[0]+V+T[1];if(M<0)return q(m)?r.stylize(RegExp.prototype.toString.call(m),"regexp"):r.stylize("[Object]","special");r.seen.push(m);var de;return G?de=g(r,m,M,b,oe):de=oe.map(function(me){return _(r,m,M,b,me,G)}),r.seen.pop(),w(de,V,T)}function y(r,m){if(I(m))return r.stylize("undefined","undefined");if(W(m)){var M="'"+JSON.stringify(m).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(M,"string")}if(H(m))return r.stylize(""+m,"number");if(x(m))return r.stylize(""+m,"boolean");if(A(m))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function g(r,m,M,K,ie){for(var oe=[],b=0,k=m.length;b<k;++b)ze(m,String(b))?oe.push(_(r,m,M,K,String(b),!0)):oe.push("");return ie.forEach(function(V){V.match(/^\d+$/)||oe.push(_(r,m,M,K,V,!0))}),oe}function _(r,m,M,K,ie,oe){var b,k,V;if(V=Object.getOwnPropertyDescriptor(m,ie)||{value:m[ie]},V.get?V.set?k=r.stylize("[Getter/Setter]","special"):k=r.stylize("[Getter]","special"):V.set&&(k=r.stylize("[Setter]","special")),ze(K,ie)||(b="["+ie+"]"),k||(r.seen.indexOf(V.value)<0?(A(M)?k=d(r,V.value,null):k=d(r,V.value,M-1),k.indexOf(`
|
||
`)>-1&&(oe?k=k.split(`
|
||
`).map(function(G){return" "+G}).join(`
|
||
`).substr(2):k=`
|
||
`+k.split(`
|
||
`).map(function(G){return" "+G}).join(`
|
||
`))):k=r.stylize("[Circular]","special")),I(b)){if(oe&&ie.match(/^\d+$/))return k;b=JSON.stringify(""+ie),b.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(b=b.substr(1,b.length-2),b=r.stylize(b,"name")):(b=b.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),b=r.stylize(b,"string"))}return b+": "+k}function w(r,m,M){var K=r.reduce(function(ie,oe){return oe.indexOf(`
|
||
`)>=0,ie+oe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return K>60?M[0]+(m===""?"":m+`
|
||
`)+" "+r.join(`,
|
||
`)+" "+M[1]:M[0]+m+" "+r.join(", ")+" "+M[1]}function E(r){return Array.isArray(r)}t.isArray=E;function x(r){return typeof r=="boolean"}t.isBoolean=x;function A(r){return r===null}t.isNull=A;function O(r){return r==null}t.isNullOrUndefined=O;function H(r){return typeof r=="number"}t.isNumber=H;function W(r){return typeof r=="string"}t.isString=W;function J(r){return typeof r=="symbol"}t.isSymbol=J;function I(r){return r===void 0}t.isUndefined=I;function q(r){return F(r)&&pe(r)==="[object RegExp]"}t.isRegExp=q;function F(r){return typeof r=="object"&&r!==null}t.isObject=F;function ue(r){return F(r)&&pe(r)==="[object Date]"}t.isDate=ue;function ee(r){return F(r)&&(pe(r)==="[object Error]"||r instanceof Error)}t.isError=ee;function B(r){return typeof r=="function"}t.isFunction=B;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=_s;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=gs,t._extend=function(r,m){if(!m||!F(m))return r;for(var M=Object.keys(m),K=M.length;K--;)r[M[K]]=m[M[K]];return r};function ze(r,m){return Object.prototype.hasOwnProperty.call(r,m)}})(wn);var ys={},bs=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]*?)$/,ws=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,fe={};function yt(t){var e=kn.exec(t),n=(e[1]||"")+(e[2]||""),a=e[3]||"",i=ws.exec(a),s=i[1],l=i[2],h=i[3];return[n,s,l,h]}function Yt(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=ys["="+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=Yt(i),l=s.device,h=s.isUnc,f=s.isAbsolute,d=s.tail;if(!(l&&t&&l.toLowerCase()!==t.toLowerCase())&&(t||(t=l),n||(e=d+"\\"+e,n=f),t&&n))break}return h&&(t=Cn(t)),e=gt(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};fe.normalize=function(t){var e=Yt(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 Yt(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("\\")),h=Math.min(s.length,l.length),f=h,d=0;d<h;d++)if(s[d]!==l[d]){f=d;break}if(f==0)return e;for(var y=[],d=f;d<s.length;d++)y.push("..");return y=y.concat(i.slice(f)),y.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 ks=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ge={};function bt(t){return ks.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 h=[],l=s;l<n.length;l++)h.push("..");return h=h.concat(a.slice(s)),h.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=":";bs?ct.exports=fe:ct.exports=ge;ct.exports.posix=ge;ct.exports.win32=fe;var Cs=ct.exports;const xs=Nn(Cs),Is=te({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(),P(Ee(n.value?"a":"router-link"),Wn(Gn(a(i.to))),{default:C(()=>[pt(i.$slots,"default")]),_:3},16))}}),$s={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"/>'},Ss={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"/>'},Ms={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"/>'},Ts={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=te({__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}=Ve(),l=t,h=j(()=>({width:"100%",display:"flex",alignItems:"center"})),f=j(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),d=j(()=>{var _;return(_=Je())!=null&&_.MenuArrowIconNoTransition?{"expand-close-icon":De(Ss),"expand-open-icon":De($s),"collapse-close-icon":De(Ts),"collapse-open-icon":De(Ms)}:""}),y=D(null);function p(_=[],w){var x,A;const E=_.filter(O=>(y.value=O,!0));return(A=(x=E[0])==null?void 0:x.meta)!=null&&A.showParent?!1:E.length===1?!0:E.length===0?(y.value=Ct(kt({},w),{path:"",noShowingChildren:!0}),!0):!1}function g(_){const w=/^http(s?):\/\//;return w.test(_)||w.test(l.basePath)?_||l.basePath:xs.posix.resolve(l.basePath,_)}return(_,w)=>{const E=z("el-text"),x=z("el-menu-item"),A=z("sidebar-item",!0),O=z("el-sub-menu");return p(l.item.children,l.item)&&(!y.value.children||y.value.noShowingChildren)?(c(),P(Is,{key:0,to:t.item},{default:C(()=>[u(x,nn({index:g(y.value.path),class:{"submenu-title-noDropdown":!t.isNest},style:h.value},o(e)),{title:C(()=>[v("div",{style:ce(o(s))},[u(o(on),{tippyProps:{offset:[0,-10],theme:o(i)},class:"!text-inherit"},{default:C(()=>[_e(re(o(Be)(y.value.meta.title)),1)]),_:1},8,["tippyProps"]),u(zt,{extraIcon:y.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:C(()=>{var H,W,J,I,q;return[Se(l.item.meta.icon)?(c(),S("div",{key:0,class:"sub-menu-icon",style:ce(f.value)},[(c(),P(Ee(o(De)(Se(y.value.meta.icon)||l.item.meta&&Se(l.item.meta.icon)))))],4)):Y("",!0),!((H=l.item)!=null&&H.meta.icon)&&o(a)&&o(n)==="vertical"&&((J=(W=l.item)==null?void 0:W.pathList)==null?void 0:J.length)===1||!y.value.meta.icon&&o(a)&&o(n)==="mix"&&((q=(I=l.item)==null?void 0:I.pathList)==null?void 0:q.length)===2?(c(),P(E,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:C(()=>[_e(re(o(Be)(y.value.meta.title)),1)]),_:1})):Y("",!0)]}),_:1},16,["index","class","style"])]),_:1},8,["to"])):(c(),P(O,nn({key:1,ref:"subMenu",teleported:"",index:g(l.item.path)},d.value),{title:C(()=>[Se(l.item.meta.icon)?(c(),S("div",{key:0,style:ce(f.value),class:"sub-menu-icon"},[(c(),P(Ee(o(De)(l.item.meta&&Se(l.item.meta.icon)))))],4)):Y("",!0),o(n)==="vertical"&&o(a)&&Se(l.item.meta.icon)&&l.item.parentId===null?Y("",!0):(c(),P(o(on),{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:C(()=>[_e(re(o(Be)(l.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),o(a)?Y("",!0):(c(),P(zt,{key:2,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))]),default:C(()=>[(c(!0),S(be,null,Ce(l.item.children,H=>(c(),P(A,{key:H.path,"is-nest":!0,item:H,"base-path":g(H.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Vs={class:"left-collapse"},zs=te({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=Ve(),i=j(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:s}=ut(),l=j(()=>{var d;return(d=s.layout)==null?void 0:d.themeColor}),h=e,f=()=>{h("toggleClick")};return(d,y)=>{const p=z("IconifyIconOffline"),g=Ye("tippy");return c(),S("div",Vs,[se(u(p,{icon:o(yn),class:le([i.value,l.value==="light"?"":"text-primary"]),style:ce({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:f},null,8,["icon","class","style"]),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])])}}}),Hs=ye(zs,[["__scopeId","data-v-bf0fab12"]]),Ls={width:24,height:24,body:'<path fill="currentColor" d="m4.836 12l6.207 6.207l1.414-1.414L7.664 12l4.793-4.793l-1.414-1.414L4.836 12Zm5.65 0l6.207 6.207l1.414-1.414L13.314 12l4.793-4.793l-1.414-1.414L10.486 12Z"/>'},As=te({__name:"centerCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{tooltipEffect:a}=Ve(),i=j(()=>["w-[16px]","h-[16px]"]),{$storage:s}=ut(),l=j(()=>{var d;return(d=s.layout)==null?void 0:d.themeColor}),h=e,f=()=>{h("toggleClick")};return(d,y)=>{const p=z("IconifyIconOffline"),g=Ye("tippy");return se((c(),S("div",{class:"center-collapse",onClick:f},[u(p,{icon:o(Ls),class:le([i.value,l.value==="light"?"":"text-primary"]),style:ce({transform:n.isActive?"none":"rotateY(180deg)"})},null,8,["icon","class","style"])])),[[g,{content:n.isActive?"点击折叠":"点击展开",theme:o(a),hideOnClick:"toggle",placement:"right"}]])}}}),Es=ye(As,[["__scopeId","data-v-bb85f706"]]),Zs=te({__name:"vertical",setup(t){var E,x;const e=Ot(),n=D(!1),a=D((x=(E=Ne().getItem(`${st()}configure`))==null?void 0:E.showLogo)!=null?x:!0),{device:i,pureApp:s,isCollapse:l,tooltipEffect:h,menuSelect:f,toggleSideBar:d}=Ve(),y=D([]),p=j(()=>s.layout==="mix"&&i.value!=="mobile"?y.value:Te().wholeMenus),g=j(()=>s.layout==="mix"?!1:p.value.length===0),_=j(()=>{var A;return Qe((A=e.meta)==null?void 0:A.activePath)?e.path:e.meta.activePath});function w(){let A="";A=_.value,y.value=[];const O=Zt(A,Te().wholeMenus),H=ht(O[0]||A,Te().wholeMenus);H!=null&&H.children&&(y.value=H==null?void 0:H.children)}return Ze(()=>[e.path,Te().wholeMenus],()=>{e.path.includes("/redirect")||(w(),f(e.path))}),Xe(()=>{w(),Me.on("logoChange",A=>{a.value=A})}),Dt(()=>{Me.off("logoChange")}),(A,O)=>{const H=z("el-menu"),W=z("el-scrollbar"),J=Ye("loading");return se((c(),S("div",{class:le(["sidebar-container",a.value?"has-logo":"no-logo"]),onMouseenter:O[0]||(O[0]=Pe(I=>n.value=!0,["prevent"])),onMouseleave:O[1]||(O[1]=Pe(I=>n.value=!1,["prevent"]))},[a.value?(c(),P(vs,{key:0,collapse:o(l)},null,8,["collapse"])):Y("",!0),u(W,{"wrap-class":"scrollbar-wrapper",class:le([o(i)==="mobile"?"mobile":"pc"])},{default:C(()=>[u(H,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:o(l),"collapse-transition":!1,"popper-effect":o(h),"default-active":_.value},{default:C(()=>[(c(!0),S(be,null,Ce(p.value,I=>(c(),P(xn,{key:I.path,item:I,"base-path":I.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),o(i)!=="mobile"&&(n.value||o(l))?(c(),P(Es,{key:1,"is-active":o(s).sidebar.opened,onToggleClick:o(d)},null,8,["is-active","onToggleClick"])):Y("",!0),o(i)!=="mobile"?(c(),P(Hs,{key:2,"is-active":o(s).sidebar.opened,onToggleClick:o(d)},null,8,["is-active","onToggleClick"])):Y("",!0)],34)),[[J,g.value]])}}}),Os=ye(Zs,[["__scopeId","data-v-f4d85ca2"]]),Rs={class:"horizontal-header"},Ds=["src"],Ps={class:"horizontal-header-right"},js={class:"check-zh"},Bs={class:"check-en"},qs={class:"el-dropdown-link navbar-bg-hover"},Fs=["src"],Ns={key:0,class:"dark:text-white"},Us=["title"],Ws=te({__name:"horizontal",setup(t){const e=D(),{t:n,route:a,locale:i,translationCh:s,translationEn:l}=qt(e),{title:h,logout:f,backTopMenu:d,onPanel:y,getLogo:p,username:g,userAvatar:_,avatarsStyle:w,getDropdownItemStyle:E,getDropdownItemClass:x}=Ve(),A=j(()=>{var O;return Qe((O=a.meta)==null?void 0:O.activePath)?a.path:a.meta.activePath});return Ke(()=>{var O;(O=e.value)==null||O.handleResize()}),(O,H)=>{const W=z("el-menu"),J=z("IconifyIconOffline"),I=z("el-dropdown-item"),q=z("el-dropdown-menu"),F=z("el-dropdown"),ue=Ye("loading");return se((c(),S("div",Rs,[v("div",{class:"horizontal-header-left",onClick:H[0]||(H[0]=(...ee)=>o(d)&&o(d)(...ee))},[v("img",{src:o(p)(),alt:"logo"},null,8,Ds),v("span",null,re(o(h)),1)]),u(W,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":A.value},{default:C(()=>[(c(!0),S(be,null,Ce(o(Te)().wholeMenus,ee=>(c(),P(xn,{key:ee.path,item:ee,"base-path":ee.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",Ps,[u(Wt,{id:"header-search"}),u(F,{id:"header-translation",trigger:"click"},{dropdown:C(()=>[u(q,{class:"translation"},{default:C(()=>[u(I,{style:ce(o(E)(o(i),"zh")),class:le(["dark:!text-white",o(x)(o(i),"zh")]),onClick:o(s)},{default:C(()=>[se(v("span",js,[u(J,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="zh"]]),_e(" 简体中文 ")]),_:1},8,["style","class","onClick"]),u(I,{style:ce(o(E)(o(i),"en")),class:le(["dark:!text-white",o(x)(o(i),"en")]),onClick:o(l)},{default:C(()=>[se(v("span",Bs,[u(J,{icon:o(tt)},null,8,["icon"])],512),[[xe,o(i)==="en"]]),_e(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:C(()=>[u(o(Ft),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),u(Kt,{id:"full-screen"}),u(Gt,{id:"header-notice"}),u(F,{trigger:"click"},{dropdown:C(()=>[u(q,{class:"logout"},{default:C(()=>[u(I,{onClick:o(f)},{default:C(()=>[u(J,{icon:o(Xt),style:{margin:"5px"}},null,8,["icon"]),_e(" "+re(o(n)("buttons.pureLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:C(()=>[v("span",qs,[v("img",{src:o(_),style:ce(o(w))},null,12,Fs),o(g)?(c(),S("p",Ns,re(o(g)),1)):Y("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:o(n)("buttons.pureSystemSet"),onClick:H[1]||(H[1]=(...ee)=>o(y)&&o(y)(...ee))},[u(J,{icon:o(_t)},null,8,["icon"])],8,Us)])])),[[ue,o(Te)().wholeMenus.length===0]])}}}),Gs=ye(Ws,[["__scopeId","data-v-deed9540"]]),Ks={key:0},Xs=te({__name:"index",setup(t){const e=D(),{isDark:n}=pn(),{layout:a}=ao(),i=dn(),s=Ut(),{$storage:l}=ut(),h=Rt({sidebar:j(()=>Fe().sidebar),device:j(()=>Fe().device),fixedHeader:j(()=>s.fixedHeader),classes:j(()=>({hideSidebar:!h.sidebar.opened,openSidebar:h.sidebar.opened,withoutAnimation:h.sidebar.withoutAnimation,mobile:h.device==="mobile"})),hideTabs:j(()=>l==null?void 0:l.configure.hideTabs)});function f(g){var _,w,E,x,A,O;window.document.body.setAttribute("layout",g),l.layout={layout:`${g}`,theme:(_=l.layout)==null?void 0:_.theme,darkMode:(w=l.layout)==null?void 0:w.darkMode,sidebarStatus:(E=l.layout)==null?void 0:E.sidebarStatus,epThemeColor:(x=l.layout)==null?void 0:x.epThemeColor,themeColor:(A=l.layout)==null?void 0:A.themeColor,overallStyle:(O=l.layout)==null?void 0:O.overallStyle}}function d(g,_){Fe().toggleDevice(g),Fe().toggleSideBar(_,"resize")}let y=!0;vt(e,g=>{if(i)return;const _=g[0],[{inlineSize:w,blockSize:E}]=_.borderBoxSize;Fe().setViewportSize({width:w,height:E}),w<=760?f("vertical"):f(Fe().layout),w>0&&w<=760?(d("mobile",!1),y=!0):w>760&&w<=990?y&&(d("desktop",!1),y=!1):w>990&&!h.sidebar.isClickCollapse?(d("desktop",!0),y=!0):(d("desktop",!1),y=!1)}),Xe(()=>{i&&d("mobile",!1)}),mn(()=>{var g;Nt().dataThemeChange((g=l.layout)==null?void 0:g.overallStyle)});const p=te({render(){return rt("div",{class:{"fixed-header":h.fixedHeader},style:[h.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(Gs):null,rt(vl)]})}});return(g,_)=>{const w=z("el-backtop"),E=z("el-scrollbar");return c(),S("div",{ref_key:"appWrapperRef",ref:e,class:le(["app-wrapper",h.classes])},[se(v("div",{class:"app-mask",onClick:_[0]||(_[0]=x=>o(Fe)().toggleSideBar())},null,512),[[xe,h.device==="mobile"&&h.sidebar.opened&&o(a).includes("vertical")]]),se(u(Os,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":""])},[h.fixedHeader?(c(),S("div",Ks,[u(o(p)),u(cn,{"fixed-header":h.fixedHeader},null,8,["fixed-header"])])):(c(),P(E,{key:1},{default:C(()=>[u(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:C(()=>[u(o(vn))]),_:1}),u(o(p)),u(cn,{"fixed-header":h.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),u(us)],2)}}}),_r=ye(Xs,[["__scopeId","data-v-b47ef71a"]]);export{_r as default};
|