vue-pure-admin/dist/static/js/index-CWwyg-1j.js
2024-04-13 11:26:55 +08:00

11 lines
91 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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