mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
80 KiB
JavaScript
11 lines
80 KiB
JavaScript
var yn=Object.defineProperty,bn=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var Rt=Object.getOwnPropertySymbols;var kn=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable;var Dt=(t,e,o)=>e in t?yn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Pt=(t,e)=>{for(var o in e||(e={}))kn.call(e,o)&&Dt(t,o,e[o]);if(Rt)for(var o of Rt(e))xn.call(e,o)&&Dt(t,o,e[o]);return t},jt=(t,e)=>bn(t,wn(e));var lt=(t,e,o)=>new Promise((a,u)=>{var s=g=>{try{r(o.next(g))}catch(c){u(c)}},f=g=>{try{r(o.throw(g))}catch(c){u(c)}},r=g=>g.done?a(g.value):Promise.resolve(g.value).then(s,f);r((o=o.apply(t,e)).next())});import{di as oe,aq as Cn,at as Ge,au as $n,e as h,k as M,f as v,d as te,r as Z,V as q,aL as wt,o as De,F as we,l as Se,aI as ie,c as O,I as Ee,u as n,B as ne,a3 as Oe,i as d,P as Kt,_ as ve,b as I,h as he,C as Q,a9 as kt,H as Sn,bk as Xt,a8 as In,a1 as $e,dj as vt,w as y,bg as Mn,aX as qe,aE as Tn,L as Jt,n as Be,bl as xe,a7 as Pe,j as Ke,m as se,E as le,R as ke,dk as xt,dl as it,a6 as Ct,dm as Ae,T as Vn,af as We,dn as Fe,ar as Qe,as as et,K as $t,dp as be,dq as nt,dr as zn,ds as rt,a_ as Re,dt as ct,du as An,dv as Yt,aM as Hn,a as St,dw as It,dx as _t,dy as qt,dz as Ln,U as gt,dA as ut,dB as Bt,D as tt,p as Qt,q as en,ao as tn,N as nn,O as En,Y as Ue,J as On,G as Zn,X as Rn}from"./index-wKRNaHxZ.js";import{d as Dn}from"./menu-DpbF6EVM.js";import{d as Pn}from"./home-filled-NADQtN-e.js";import{d as jn}from"./git-branch-line-BhusJOme.js";import{d as qn}from"./admin-line-CpqWPwjZ.js";import{d as Bn,u as ze,a as Mt,g as Tt,b as Vt,t as Fn,c as Nn,e as Un,f as Wn}from"./dark-BGLhktT1.js";import{u as je}from"./app-Dfh4e8yp.js";import{m as Gn}from"./index-QpUUYT1t.js";import{u as Kn}from"./epTheme-Bw4swTYu.js";import{u as Le}from"./hooks-DNu5cX-S.js";import{d as Ne}from"./check-CIQVCvCT.js";import{e as Ce}from"./mitt-E5P-NQ8u.js";import{d as Xn}from"./refresh-right-Du3ZsAuC.js";import{d as Jn}from"./arrow-right-s-line-CxPb13eK.js";import{b as on}from"./back_top-B831AE4a.js";import{R as Ft}from"./index-CmpAlYuM.js";import{R as Nt}from"./index-DLlzcaBC.js";const Yn={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"/>'},Qn={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"/>'},eo={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"/>'},to={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"/>'},no={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"/>'},oo={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},an={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"/>'},ao={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"/>'},so={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"/>'},lo={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"/>'},ro={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"/>'},sn={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"/>'},dt={width:24,height:24,body:'<path fill="currentColor" d="M3.34 17a10.017 10.017 0 0 1-.979-2.326a3 3 0 0 0 .003-5.347a9.99 9.99 0 0 1 2.5-4.337a3 3 0 0 0 4.632-2.674a9.99 9.99 0 0 1 5.007.003a3 3 0 0 0 4.632 2.671a10.056 10.056 0 0 1 2.503 4.336a3 3 0 0 0-.002 5.347a9.99 9.99 0 0 1-2.501 4.337a3 3 0 0 0-4.632 2.674a9.99 9.99 0 0 1-5.007-.002a3 3 0 0 0-4.631-2.672A10.018 10.018 0 0 1 3.339 17Zm5.66.196a4.992 4.992 0 0 1 2.25 2.77c.499.047 1 .048 1.499.002a4.993 4.993 0 0 1 2.25-2.772a4.993 4.993 0 0 1 3.526-.564c.29-.408.54-.843.748-1.298A4.993 4.993 0 0 1 18 12c0-1.26.47-2.437 1.273-3.334a8.152 8.152 0 0 0-.75-1.298A4.993 4.993 0 0 1 15 6.804a4.993 4.993 0 0 1-2.25-2.77c-.5-.047-1-.048-1.5-.001A4.993 4.993 0 0 1 9 6.804a4.993 4.993 0 0 1-3.526.564c-.29.408-.54.843-.747 1.298A4.993 4.993 0 0 1 6 12c0 1.26-.471 2.437-1.273 3.334a8.16 8.16 0 0 0 .75 1.298A4.993 4.993 0 0 1 9 17.196ZM12 15a3 3 0 1 1 0-6a3 3 0 0 1 0 6Zm0-2a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z"/>'},co={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"/>'},uo={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"/>'},fo={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"/>'},po={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.997-4L6.76 11.757l1.414-1.414l2.829 2.829l5.657-5.657l1.414 1.414L11.003 16Z"/>'};oe("ep:menu",Dn);oe("ep:edit",Yn);oe("ep:set-up",Qn);oe("ep:guide",eo);oe("ep:monitor",to);oe("ep:lollipop",no);oe("ep:histogram",oo);oe("ep:home-filled",Pn);oe("ri:bookmark-2-line",an);oe("ri:file-ppt-2-line",ao);oe("ri:bank-card-line",so);oe("ri:admin-fill",lo);oe("ri:file-info-line",ro);oe("ri:git-branch-line",jn);oe("ri:table-line",io);oe("ri:search-line",sn);oe("ri:admin-line",qn);oe("ri:settings-3-line",dt);oe("ri:artboard-line",co);oe("ri:list-check",uo);oe("ri:ubuntu-fill",ho);oe("ri:information-line",Bn);oe("ri:terminal-window-line",fo);oe("ri:checkbox-circle-line",po);const mo=Cn({id:"pure-setting",state:()=>({title:Ge().Title,fixedHeader:Ge().FixedHeader,hiddenSideBar:Ge().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function zt(){return mo($n)}const vo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},_o=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),go=[_o];function yo(t,e){return h(),M("svg",vo,[...go])}const ln={render:yo},bo=["onMouseenter"],wo={class:"result-item-title"},ko=te({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:o}){const a=Z(),u=Z(),s=t,f=o,r=Kt(),g=q(()=>w=>({background:(w==null?void 0:w.path)===c.value?Kn().epThemeColor:"",color:w.path===c.value?"#fff":"",fontSize:w.path===c.value?"16px":"14px"})),c=q({get(){return s.value},set(w){f("update:value",w)}});function _(w){return lt(this,null,function*(){c.value=w.path})}function i(){f("enter")}function p(){u.value=window.innerHeight-window.innerHeight/10-140}wt(a,p);function b(w){var V;const z=(V=r==null?void 0:r.proxy)==null?void 0:V.$refs[`resultItemRef${w}`];if(!z)return 0;const R=z[0].offsetTop+128;return R>u.value?R-u.value:0}return De(()=>{p()}),e({handleScroll:b}),(w,z)=>(h(),M("div",{ref_key:"resultRef",ref:a,class:"result"},[(h(!0),M(we,null,Se(w.options,(k,R)=>{var V,E,B;return h(),M("div",{key:k.path,ref_for:!0,ref:"resultItemRef"+R,class:"result-item dark:bg-[#1d1d1d]",style:ie(g.value(k)),onClick:i,onMouseenter:U=>_(k)},[(h(),O(Ee(n(Le)((E=(V=k.meta)==null?void 0:V.icon)!=null?E:n(an))))),v("span",wo,ne(n(Oe)((B=k.meta)==null?void 0:B.title)),1),d(n(ln))],44,bo)}),128))],512))}}),xo=ve(ko,[["__scopeId","data-v-0d8b96ed"]]),Co={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"/>'},$o={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"/>'},So={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},Io=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),Mo=[Io];function To(t,e){return h(),M("svg",So,[...Mo])}const Vo={render:To},zo={class:"search-footer text-[#333] dark:text-white"},Ao={class:"search-footer-item"},Ho={class:"search-footer-item"},Lo={class:"search-footer-item"},Eo={key:0,class:"search-footer-total"},Oo=te({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:o}=ze();return(a,u)=>{const s=I("IconifyIconOffline");return h(),M("div",zo,[v("span",Ao,[d(n(ln),{class:"icon"}),he(" 确认 ")]),v("span",Ho,[d(s,{icon:n(Co),class:"icon"},null,8,["icon"]),d(s,{icon:n($o),class:"icon"},null,8,["icon"]),he(" 切换 ")]),v("span",Lo,[d(n(Vo),{class:"icon"}),he(" 关闭 ")]),n(o)!=="mobile"&&e.total>0?(h(),M("p",Eo," 共"+ne(e.total)+"项 ",1)):Q("",!0)])}}}),Zo=ve(Oo,[["__scopeId","data-v-6f31f47e"]]),Ro={class:"search-result-container"},Do=te({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:o}=ze(),a=e,u=t,s=kt(),{locale:f}=Sn(),r=Z(""),g=Z(),c=Z(),_=Z(""),i=Z(null),p=Xt([]),b=Mn(R,300),w=q(()=>In($e().wholeMenus)),z=q({get(){return u.value},set(j){a("update:value",j)}});function k(j){const L=[];function K(X){X.forEach(T=>{L.push(T),T.children&&K(T.children)})}return K(j),L}function R(){var L;const j=k(w.value);p.value=j.filter(K=>{var X,T;return r.value?Oe((X=K.meta)==null?void 0:X.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())||f.value==="zh"&&!qe(Gn(Oe((T=K.meta)==null?void 0:T.title).toLocaleLowerCase(),r.value.toLocaleLowerCase().trim())):!1}),((L=p.value)==null?void 0:L.length)>0?_.value=p.value[0].path:_.value=""}function V(){z.value=!1,setTimeout(()=>{p.value=[],r.value=""},200)}function E(j){const L=c.value.handleScroll(j);g.value.setScrollTop(L)}function B(){const{length:j}=p.value;if(j===0)return;const L=p.value.findIndex(K=>K.path===_.value);L===0?(_.value=p.value[j-1].path,E(p.value.length-1)):(_.value=p.value[L-1].path,E(L-1))}function U(){const{length:j}=p.value;if(j===0)return;const L=p.value.findIndex(K=>K.path===_.value);L+1===j?_.value=p.value[0].path:_.value=p.value[L+1].path,E(L+1)}function N(){const{length:j}=p.value;j===0||_.value===""||(s.push(_.value),V())}return vt("Enter",N),vt("ArrowUp",B),vt("ArrowDown",U),(j,L)=>{const K=I("IconifyIconOffline"),X=I("el-input"),T=I("el-empty"),ee=I("el-scrollbar"),me=I("el-dialog");return h(),O(me,{modelValue:z.value,"onUpdate:modelValue":L[2]||(L[2]=pe=>z.value=pe),top:"5vh",class:"pure-search-dialog","show-close":!1,width:n(o)==="mobile"?"80vw":"40vw","before-close":V,style:{borderRadius:"6px"},"append-to-body":"",onOpened:L[3]||(L[3]=pe=>i.value.focus()),onClosed:L[4]||(L[4]=pe=>i.value.blur())},{footer:y(()=>[d(Zo,{total:p.value.length},null,8,["total"])]),default:y(()=>[d(X,{ref_key:"inputRef",ref:i,modelValue:r.value,"onUpdate:modelValue":L[0]||(L[0]=pe=>r.value=pe),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:n(b)},{prefix:y(()=>[d(K,{icon:n(sn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),v("div",Ro,[d(ee,{ref_key:"scrollbarRef",ref:g,"max-height":"calc(90vh - 140px)"},{default:y(()=>[p.value.length===0?(h(),O(T,{key:0,description:"暂无搜索结果"})):(h(),O(xo,{key:1,ref_key:"resultRef",ref:c,value:_.value,"onUpdate:value":L[1]||(L[1]=pe=>_.value=pe),options:p.value,onClick:N},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Po=ve(Do,[["__scopeId","data-v-b82d1ace"]]);function jo(t=!1){const e=Z(t);function o(f){e.value=f}function a(){o(!0)}function u(){o(!1)}function s(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:u,toggle:s}}const At=te({__name:"index",setup(t){const{bool:e,toggle:o}=jo();function a(){o()}return(u,s)=>{const f=I("IconifyIconOffline");return h(),M("div",null,[v("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[d(f,{icon:"ri:search-line"})]),d(n(Po),{value:n(e),"onUpdate:value":s[0]||(s[0]=r=>Tn(e)?e.value=r:null)},null,8,["value"])])}}}),Ut=[{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"}]}],qo={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Bo={class:"notice-container-text"},Fo={class:"notice-text-title text-[#000000d9] dark:text-white"},No={class:"notice-text-datetime text-[#00000073] dark:text-white"},Uo=te({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=Z(null),a=Z(!1),u=Z(null),s=Z(!1),{tooltipEffect:f}=ze(),r=Jt();function g(){Be(()=>{var _,i;((_=o.value)==null?void 0:_.scrollWidth)>((i=o.value)==null?void 0:i.clientWidth)?a.value=!0:a.value=!1})}function c(_,i){const p=document.createElement("span");p.innerText=i,p.className="getDescriptionWidth",document.querySelector("body").appendChild(p);const b=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const w=_.target.offsetWidth;b>2*w?s.value=!0:s.value=!1}return(_,i)=>{var z,k;const p=I("el-avatar"),b=I("el-tooltip"),w=I("el-tag");return h(),M("div",qo,[e.noticeItem.avatar?(h(),O(p,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Q("",!0),v("div",Bo,[v("div",Fo,[d(b,{"popper-class":"notice-title-popper",effect:n(f),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!n(r)},{default:y(()=>[v("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:g},ne(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(z=e.noticeItem)!=null&&z.extra?(h(),O(w,{key:0,type:(k=e.noticeItem)==null?void 0:k.status,size:"small",class:"notice-title-extra"},{default:y(()=>{var R;return[he(ne((R=e.noticeItem)==null?void 0:R.extra),1)]}),_:1},8,["type"])):Q("",!0)]),d(b,{"popper-class":"notice-title-popper",effect:n(f),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:y(()=>[v("div",{ref_key:"descriptionRef",ref:u,class:"notice-text-description",onMouseover:i[0]||(i[0]=R=>c(R,e.noticeItem.description))},ne(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),v("div",No,ne(e.noticeItem.datetime),1)])])}}}),Wo=ve(Uo,[["__scopeId","data-v-2a7dbc48"]]),Go={key:0},Ko=te({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,a)=>{const u=I("el-empty");return e.list.length?(h(),M("div",Go,[(h(!0),M(we,null,Se(e.list,(s,f)=>(h(),O(Wo,{key:f,noticeItem:s},null,8,["noticeItem"]))),128))])):(h(),O(u,{key:1,description:"暂无消息"}))}}}),Xo={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"/>'},Jo={class:"dropdown-badge navbar-bg-hover select-none"},Yo={class:"header-notice-icon"},Qo={key:1},ea={class:"noticeList-container"},ta=te({__name:"index",setup(t){const e=Z(0),o=Z(Ut),a=Z(Ut[0].key);return o.value.map(u=>e.value+=u.list.length),(u,s)=>{const f=I("IconifyIconOffline"),r=I("el-badge"),g=I("el-empty"),c=I("el-scrollbar"),_=I("el-tab-pane"),i=I("el-tabs"),p=I("el-dropdown-menu"),b=I("el-dropdown");return h(),O(b,{trigger:"click",placement:"bottom-end"},{dropdown:y(()=>[d(p,null,{default:y(()=>[d(i,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=w=>a.value=w),stretch:!0,class:"dropdown-tabs",style:ie({width:o.value.length===0?"200px":"330px"})},{default:y(()=>[o.value.length===0?(h(),O(g,{key:0,description:"暂无消息","image-size":60})):(h(),M("span",Qo,[(h(!0),M(we,null,Se(o.value,w=>(h(),O(_,{key:w.key,label:`${w.name}(${w.list.length})`,name:`${w.key}`},{default:y(()=>[d(c,{"max-height":"330px"},{default:y(()=>[v("div",ea,[d(Ko,{list:w.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:y(()=>[v("span",Jo,[d(r,{value:e.value,max:99},{default:y(()=>[v("span",Yo,[d(f,{icon:n(Xo)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Ht=ve(ta,[["__scopeId","data-v-33dc6db9"]]),na={key:0,class:"flex justify-center items-center"},yt=te({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(o,a)=>e.extraIcon?(h(),M("div",na,[(h(),O(Ee(n(Le)(xe(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Q("",!0)}}),Lt={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"/>'},oa={key:0,class:"horizontal-header"},aa={class:"select-none"},sa={class:"horizontal-header-right"},la={class:"check-zh"},ra={class:"check-en"},ia={class:"el-dropdown-link navbar-bg-hover select-none"},ca=["src"],ua={key:0,class:"dark:text-white"},da=["title"],ha=te({__name:"mixNav",setup(t){const e=Z(),o=Z(null),{t:a,route:u,locale:s,translationCh:f,translationEn:r}=Mt(e),{device:g,logout:c,onPanel:_,resolvePath:i,username:p,userAvatar:b,getDivStyle:w,avatarsStyle:z,getDropdownItemStyle:k,getDropdownItemClass:R}=ze();function V(E){var N,j,L;const B=$e().wholeMenus,U=xt(E,B)[0];o.value=qe((N=u.meta)==null?void 0:N.activePath)?(L=(j=it(U,B))==null?void 0:j.children[0])==null?void 0:L.path:u.meta.activePath}return De(()=>{V(u.path)}),Be(()=>{var E;(E=e.value)==null||E.handleResize()}),Pe(()=>[u.path,$e().wholeMenus],()=>{V(u.path)}),(E,B)=>{const U=I("el-menu-item"),N=I("el-menu"),j=I("IconifyIconOffline"),L=I("el-dropdown-item"),K=I("el-dropdown-menu"),X=I("el-dropdown"),T=Ke("loading");return n(g)!=="mobile"?se((h(),M("div",oa,[d(N,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":o.value},{default:y(()=>[(h(!0),M(we,null,Se(n($e)().wholeMenus,ee=>(h(),O(U,{key:ee.path,index:n(i)(ee)||ee.redirect},{title:y(()=>[xe(ee.meta.icon)?(h(),M("div",{key:0,class:le(["sub-menu-icon",ee.meta.icon])},[(h(),O(Ee(n(Le)(ee.meta&&xe(ee.meta.icon)))))],2)):Q("",!0),v("div",{style:ie(n(w))},[v("span",aa,ne(n(Oe)(ee.meta.title)),1),d(yt,{extraIcon:ee.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),v("div",sa,[d(At,{id:"header-search"}),d(Ht,{id:"header-notice"}),d(X,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[d(K,{class:"translation"},{default:y(()=>[d(L,{style:ie(n(k)(n(s),"zh")),class:le(["dark:!text-white",n(R)(n(s),"zh")]),onClick:n(f)},{default:y(()=>[se(v("span",la,[d(j,{icon:n(Ne)},null,8,["icon"])],512),[[ke,n(s)==="zh"]]),he(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(L,{style:ie(n(k)(n(s),"en")),class:le(["dark:!text-white",n(R)(n(s),"en")]),onClick:n(r)},{default:y(()=>[se(v("span",ra,[d(j,{icon:n(Ne)},null,8,["icon"])],512),[[ke,n(s)==="en"]]),he(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[d(n(Tt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(X,{trigger:"click"},{dropdown:y(()=>[d(K,{class:"logout"},{default:y(()=>[d(L,{onClick:n(c)},{default:y(()=>[d(j,{icon:n(Lt),style:{margin:"5px"}},null,8,["icon"]),he(" "+ne(n(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[v("span",ia,[v("img",{src:n(b),style:ie(n(z))},null,12,ca),n(p)?(h(),M("p",ua,ne(n(p)),1)):Q("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:n(a)("buttons.hssystemSet"),onClick:B[0]||(B[0]=(...ee)=>n(_)&&n(_)(...ee))},[d(j,{icon:n(dt)},null,8,["icon"])],8,da)])])),[[T,n($e)().wholeMenus.length===0]]):Q("",!0)}}}),fa=ve(ha,[["__scopeId","data-v-63778524"]]),pa=["onClick"],ma=te({__name:"breadCrumb",setup(t){const e=Ct(),o=Z([]),a=kt(),u=a.options.routes,s=Ae().multiTags,f=()=>{let g;Object.keys(e.query).length>0?s.forEach(i=>{Fe(e.query,i==null?void 0:i.query)&&(g=xe(i))}):Object.keys(e.params).length>0?s.forEach(i=>{Fe(e.params,i==null?void 0:i.params)&&(g=xe(i))}):g=it(a.currentRoute.value.path,u);const c=xt(a.currentRoute.value.name,u,"name"),_=[];c.forEach(i=>{i!=="/"&&_.push(it(i,u))}),_.push(g),_.forEach((i,p)=>{g!=null&&g.query||g!=null&&g.params||i!=null&&i.children&&i.children.forEach(b=>{var w,z;((w=b==null?void 0:b.meta)==null?void 0:w.title)===((z=i==null?void 0:i.meta)==null?void 0:z.title)&&_.splice(p,1)})}),o.value=_.filter(i=>(i==null?void 0:i.meta)&&(i==null?void 0:i.meta.title)!==!1)},r=g=>{const{redirect:c,name:_,path:i}=g;c?a.push(c):_?g.query?a.push({name:_,query:g.query}):g.params?a.push({name:_,params:g.params}):a.push({name:_}):a.push({path:i})};return De(()=>{f()}),Pe(()=>e.path,()=>{f()},{deep:!0}),(g,c)=>{const _=I("el-breadcrumb-item"),i=I("el-breadcrumb");return h(),O(i,{class:"!leading-[50px] select-none",separator:"/"},{default:y(()=>[d(Vn,{name:"breadcrumb"},{default:y(()=>[(h(!0),M(we,null,Se(o.value,p=>(h(),O(_,{key:p.path,class:"!inline !items-stretch"},{default:y(()=>[v("a",{onClick:We(b=>r(p),["prevent"])},ne(n(Oe)(p.meta.title)),9,pa)]),_:2},1024))),128))]),_:1})]),_:1})}}}),rn={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM6.95 3.55v9.9L2 8.5l4.95-4.95ZM21 11v2h-9v-2h9Zm0-7v2h-9V4h9Z"/>'},va={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM17.05 3.55L22 8.5l-4.95 4.95v-9.9ZM12 11v2H3v-2h9Zm0-7v2H3V4h9Z"/>'},_a=["title"],ga=te({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=e,u=()=>{a("toggleClick")};return(s,f)=>{const r=I("IconifyIconOffline");return h(),M("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:u},[d(r,{icon:o.isActive?n(rn):n(va),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,_a)}}}),ya={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},ba={key:3,class:"vertical-header-right"},wa={class:"check-en"},ka={class:"el-dropdown-link navbar-bg-hover select-none"},xa=["src"],Ca={key:0,class:"dark:text-white"},$a=["title"],Sa=te({__name:"navbar",setup(t){const{layout:e,device:o,logout:a,onPanel:u,pureApp:s,username:f,userAvatar:r,avatarsStyle:g,toggleSideBar:c,getDropdownItemStyle:_,getDropdownItemClass:i}=ze(),{t:p,locale:b,translationCh:w,translationEn:z}=Mt();return(k,R)=>{const V=I("IconifyIconOffline"),E=I("el-dropdown-item"),B=I("el-dropdown-menu"),U=I("el-dropdown");return h(),M("div",ya,[n(o)==="mobile"?(h(),O(ga,{key:0,class:"hamburger-container","is-active":n(s).sidebar.opened,onToggleClick:n(c)},null,8,["is-active","onToggleClick"])):Q("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(h(),O(ma,{key:1,class:"breadcrumb-container"})):Q("",!0),n(e)==="mix"?(h(),O(fa,{key:2})):Q("",!0),n(e)==="vertical"?(h(),M("div",ba,[d(At,{id:"header-search"}),d(Ht,{id:"header-notice"}),d(U,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[d(B,{class:"translation"},{default:y(()=>[d(E,{style:ie(n(_)(n(b),"zh")),class:le(["dark:!text-white",n(i)(n(b),"zh")]),onClick:n(w)},{default:y(()=>[se(d(V,{class:"check-zh",icon:n(Ne)},null,8,["icon"]),[[ke,n(b)==="zh"]]),he(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(E,{style:ie(n(_)(n(b),"en")),class:le(["dark:!text-white",n(i)(n(b),"en")]),onClick:n(z)},{default:y(()=>[se(v("span",wa,[d(V,{icon:n(Ne)},null,8,["icon"])],512),[[ke,n(b)==="en"]]),he(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[d(n(Tt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(U,{trigger:"click"},{dropdown:y(()=>[d(B,{class:"logout"},{default:y(()=>[d(E,{onClick:n(a)},{default:y(()=>[d(V,{icon:n(Lt),style:{margin:"5px"}},null,8,["icon"]),he(" "+ne(n(p)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[v("span",ka,[v("img",{src:n(r),style:ie(n(g))},null,12,xa),n(f)?(h(),M("p",Ca,ne(n(f)),1)):Q("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:n(p)("buttons.hssystemSet"),onClick:R[0]||(R[0]=(...N)=>n(u)&&n(u)(...N))},[d(V,{icon:n(dt)},null,8,["icon"])],8,$a)])):Q("",!0)])}}}),Ia=ve(Sa,[["__scopeId","data-v-0617a10c"]]),Ma={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},Ta={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"/>'},Va={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"/>'},za={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"/>'},cn={width:1024,height:1024,body:'<path fill="currentColor" d="M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"/>'};function Aa(){var K,X;const t=Ct(),e=kt(),o=Kt(),a=zt(),u=Z(0),s=Z(0),f=Z(0),r=Z(!1),g=Z(-1),c=Z({}),_=Z(!1),i=Z(((K=Qe().getItem(`${et()}configure`))==null?void 0:K.showModel)||"smart"),p=(X=Z(Qe().getItem(`${et()}configure`).hideTabs))!=null?X:Z("false"),b=q(()=>Ae().multiTags),w=$t([{icon:Xn,text:be("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:cn,text:be("buttons.hscloseCurrentTab"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:za,text:be("buttons.hscloseLeftTabs"),divided:!0,disabled:!(b.value.length>1),show:!0},{icon:Va,text:be("buttons.hscloseRightTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:Ta,text:be("buttons.hscloseOtherTabs"),divided:!0,disabled:!(b.value.length>2),show:!0},{icon:Ma,text:be("buttons.hscloseAllTabs"),divided:!1,disabled:!(b.value.length>1),show:!0},{icon:nt,text:be("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:nt,text:be("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function z(T,ee,me){var pe,ye;return zn((pe=t==null?void 0:t.meta)==null?void 0:pe.showLink)&&((ye=t==null?void 0:t.meta)==null?void 0:ye.showLink)===!1?Object.keys(t.query).length>0?Fe(t.query,T.query)?ee:me:Fe(t.params,T.params)?ee:me:t.path===T.path?ee:me}const k=q(()=>(T,ee)=>{if(ee!==0)return z(T,!0,!1)}),R=q(()=>T=>z(T,"is-active","")),V=q(()=>T=>z(T,"schedule-active","")),E=q(()=>({transform:`translateX(${f.value}px)`,transition:_.value?"none":"transform 0.5s ease-in-out"})),B=q(()=>({left:s.value+"px",top:u.value+"px"})),U=()=>{r.value=!1};function N(T){if(T&&(g.value=T),n(i)==="smart"){if(rt(o.refs["schedule"+T][0],"schedule-active"))return;Re(!0,"schedule-in",o.refs["schedule"+T][0]),Re(!1,"schedule-out",o.refs["schedule"+T][0])}else{if(rt(o.refs["dynamic"+T][0],"is-active"))return;Re(!0,"card-in",o.refs["dynamic"+T][0]),Re(!1,"card-out",o.refs["dynamic"+T][0])}}function j(T){if(g.value=-1,n(i)==="smart"){if(rt(o.refs["schedule"+T][0],"schedule-active"))return;Re(!1,"schedule-in",o.refs["schedule"+T][0]),Re(!0,"schedule-out",o.refs["schedule"+T][0])}else{if(rt(o.refs["dynamic"+T][0],"is-active"))return;Re(!1,"card-in",o.refs["dynamic"+T][0]),Re(!0,"card-out",o.refs["dynamic"+T][0])}}function L(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return De(()=>{if(!i.value){const T=Qe().getItem(`${et()}configure`);T.showModel="card",Qe().setItem(`${et()}configure`,T)}}),{route:t,router:e,visible:r,showTags:p,instance:o,multiTags:b,showModel:i,tagsViews:w,buttonTop:u,buttonLeft:s,translateX:f,pureSetting:a,activeIndex:g,getTabStyle:E,isScrolling:_,iconIsActive:k,linkIsActive:R,currentSelect:c,scheduleIsActive:V,getContextMenuStyle:B,$t:be,closeMenu:U,onMounted:De,onMouseenter:N,onMouseleave:j,transformI18n:Oe,onContentFullScreen:L}}const Ha={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"/>'},La={width:24,height:24,body:'<path fill="currentColor" d="m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414l-4.95 4.95Z"/>'},Ea={width:1024,height:1024,body:'<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'};var Oa={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 Za={class:"arrow-left"},Ra=["onContextmenu","onMouseenter","onMouseleave","onClick"],Da={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},Pa=["onClick"],ja={class:"arrow-right"},qa=["onClick"],Ba={class:"arrow-down"},Fa=te({__name:"index",setup(t){var Ot;const{route:e,router:o,visible:a,showTags:u,instance:s,multiTags:f,tagsViews:r,buttonTop:g,buttonLeft:c,showModel:_,translateX:i,pureSetting:p,activeIndex:b,getTabStyle:w,isScrolling:z,iconIsActive:k,linkIsActive:R,currentSelect:V,scheduleIsActive:E,getContextMenuStyle:B,closeMenu:U,onMounted:N,onMouseenter:j,onMouseleave:L,transformI18n:K,onContentFullScreen:X}=Aa(),T=Z(),ee=Z(),me=Z(),pe=Z(),ye=Z(!1),He=(Ot=ct())==null?void 0:Ot.path,{VITE_HIDE_HOME:Ze}=Oa,{isFullscreen:l,toggle:m}=An(),x=()=>lt(this,null,function*(){yield Be();const C=f.value.findIndex(A=>qe(e.query)?qe(e.params)?e.path===A.path:Fe(e.params,A.params):Fe(e.query,A.query));G(C)}),G=C=>lt(this,null,function*(){var de,Ie;yield Be();const A=10;if(!s.refs["dynamic"+C])return;const H=s.refs["dynamic"+C][0],F=H==null?void 0:H.offsetLeft,re=H==null?void 0:H.offsetWidth,D=me.value?(de=me.value)==null?void 0:de.offsetWidth:0,P=T.value?(Ie=T.value)==null?void 0:Ie.offsetWidth:0;D<=P?ye.value=!0:ye.value=!1,P<D||F===0?i.value=0:F<-i.value?i.value=-F+A:F>-i.value&&F+re<-i.value+D?i.value=Math.min(0,D-re-F-A):i.value=-(F-(D-A-re))}),ae=C=>{var F;const A=me.value?(F=me.value)==null?void 0:F.offsetWidth:0,H=T.value?T.value.offsetWidth:0;C>0?i.value=Math.min(0,i.value+C):A<H?i.value>=-(H-A)&&(i.value=Math.max(i.value+C,A-H)):i.value=0,z.value=!1},J=C=>{z.value=!0;const A=Math.abs(C.deltaX)+Math.abs(C.deltaY);let H=0;C.deltaX<0?H=A>0?A:100:H=A>0?-A:-100,$(H)},$=C=>{let H=Math.abs(C);const F=()=>{const re=Math.sign(C)*Math.min(20,H);ae(re),H-=Math.abs(re),H>0&&requestAnimationFrame(F)};requestAnimationFrame(F)};function S(C){const A=f.value.some(F=>F.path===C);function H(F,re){A||F.forEach(D=>{D.path===re?Ae().handleTags("push",{path:re,meta:D.meta,name:D.name}):D.children&&D.children.length>0&&H(D.children,re)})}H(o.options.routes,C)}function Y(){const{fullPath:C,query:A}=n(e);o.replace({path:"/redirect"+C,query:A}),_t(e,"refresh")}function ge(C,A,H){var P,de,Ie,Zt;const F=f.value.findIndex(Te=>{if(Te.query){if(Te.path===C.path)return Te.query===C.query}else if(Te.params){if(Te.path===C.path)return Te.params===C.params}else return Te.path===C.path}),re=(Te,_n,gn)=>{gn?Ae().handleTags("equal",[Ze==="false"?Ln[0]:xe(ct()),C]):Ae().handleTags("splice","",{startIndex:Te,length:_n}),x()};H==="other"?re(1,1,!0):H==="left"?re(1,F-1):H==="right"?re(F+1,f.value.length):re(F,1);const D=Ae().handleTags("slice");if(A===e.path){if(H==="left")return;(P=D[0])!=null&&P.query?o.push({name:D[0].name,query:D[0].query}):(de=D[0])!=null&&de.params?o.push({name:D[0].name,params:D[0].params}):o.push({path:D[0].path})}else{if(!f.value.length||f.value.some(Te=>Te.path===e.path))return;(Ie=D[0])!=null&&Ie.query?o.push({name:D[0].name,query:D[0].query}):(Zt=D[0])!=null&&Zt.params?o.push({name:D[0].name,params:D[0].params}):o.push({path:D[0].path})}}function ue(C,A){ge(C,C.path,A),_t(e)}function Me(C,A,H){if(A&&A.disabled)return;let F;switch(H?F={path:H.path,meta:H.meta,name:H.name,query:H==null?void 0:H.query,params:H==null?void 0:H.params}:F={path:e.path,meta:e.meta},C){case 0:Y();break;case 1:ue(F);break;case 2:ue(F,"left");break;case 3:ue(F,"right");break;case 4:ue(F,"other");break;case 5:Ae().handleTags("splice","",{startIndex:1,length:f.value.length}),o.push(He),_t(e);break;case 6:m(),setTimeout(()=>{l.value?(r[6].icon=qt,r[6].text=be("buttons.hswholeExitFullScreen")):(r[6].icon=nt,r[6].text=be("buttons.hswholeFullScreen"))},100);break;case 7:X(),setTimeout(()=>{p.hiddenSideBar?(r[7].icon=qt,r[7].text=be("buttons.hscontentExitFullScreen")):(r[7].icon=nt,r[7].text=be("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Je(e.fullPath,e.query)})}function W(C){const{key:A,item:H}=C;Me(A,H)}function Xe(C,A){U(),Me(C,A,V.value)}function st(C){Array.of(1,2,3,4,5).forEach(A=>{r[A].show=C})}function mt(C){Array.of(1,2,3,4,5).forEach(A=>{r[A].disabled=C})}function Je(C,A={},H=!1){const F=f.value,re=f.value.length;let D=-1;qe(A)?D=F.findIndex(P=>P.path===C):D=F.findIndex(P=>Fe(P.query,A)),st(!0),H&&(r[0].show=!0),D===1&&re!==2?(r[2].show=!1,Array.of(1,3,4,5).forEach(P=>{r[P].disabled=!1}),r[2].disabled=!0):D===1&&re===2?(mt(!1),Array.of(2,3,4).forEach(P=>{r[P].show=!1,r[P].disabled=!0})):re-1===D&&D!==0?(r[3].show=!1,Array.of(1,2,4,5).forEach(P=>{r[P].disabled=!1}),r[3].disabled=!0):D===0||C===`/redirect${He}`?mt(!0):mt(!1)}function mn(C,A){U(),C.path===He?(st(!1),r[0].show=!0):e.path!==C.path&&e.name!==C.name?(r[0].show=!1,Je(C.path,C.query)):f.value.length===2&&e.path!==C.path?(st(!0),r[4].show=!1):e.path===C.path&&Je(C.path,C.query,!0),V.value=C;const H=140,F=n(ee).getBoundingClientRect().left,D=n(ee).offsetWidth-H,P=A.clientX-F+5;P>D?c.value=D:c.value=P,zt().hiddenSideBar?g.value=A.clientY:g.value=A.clientY-40,Be(()=>{a.value=!0})}function vn(C){const{name:A,path:H}=C;A?C.query?o.push({name:A,query:C.query}):C.params?o.push({name:A,params:C.params}):o.push({name:A}):o.push({path:H})}return Yt(pe,U,{detectIframe:!0}),Pe(e,()=>{b.value=-1,x()}),Pe(l,()=>{r[6].icon=nt,r[6].text=be("buttons.hswholeFullScreen")}),N(()=>{s&&(Je(e.fullPath),Ce.on("tagViewsChange",C=>{n(u)!==C&&(u.value=C)}),Ce.on("tagViewsShowModel",C=>{_.value=C}),Ce.on("changLayoutRoute",C=>{S(C),setTimeout(()=>{Je(C)})}),wt(me,x),Hn().then(()=>x()))}),St(()=>{Ce.off("tagViewsChange"),Ce.off("tagViewsShowModel"),Ce.off("changLayoutRoute")}),(C,A)=>{const H=I("IconifyIconOffline"),F=I("el-dropdown-item"),re=I("el-dropdown-menu"),D=I("el-dropdown");return n(u)?Q("",!0):(h(),M("div",{key:0,ref_key:"containerDom",ref:ee,class:"tags-view"},[se(v("span",Za,[d(H,{icon:n(La),onClick:A[0]||(A[0]=P=>ae(200))},null,8,["icon"])],512),[[ke,ye.value]]),v("div",{ref_key:"scrollbarDom",ref:me,class:"scroll-container",onWheel:We(J,["prevent"])},[v("div",{ref_key:"tabDom",ref:T,class:"tab select-none",style:ie(n(w))},[(h(!0),M(we,null,Se(n(f),(P,de)=>(h(),M("div",{ref_for:!0,ref:"dynamic"+de,key:de,class:le(["scroll-item is-closable",n(R)(P)]),onContextmenu:We(Ie=>mn(P,Ie),["prevent"]),onMouseenter:We(Ie=>n(j)(de),["prevent"]),onMouseleave:We(Ie=>n(L)(de),["prevent"]),onClick:Ie=>vn(P)},[v("span",Da,ne(n(K)(P.meta.title)),1),n(k)(P,de)||de===n(b)&&de!==0?(h(),M("span",{key:0,class:"el-icon-close",onClick:We(Ie=>ue(P),["stop"])},[d(H,{icon:n(Ea)},null,8,["icon"])],8,Pa)):Q("",!0),n(_)!=="card"?(h(),M("span",{key:1,ref_for:!0,ref:"schedule"+de,class:le([n(E)(P)])},null,2)):Q("",!0)],42,Ra))),128))],4)],544),se(v("span",ja,[d(H,{icon:n(Jn),onClick:A[1]||(A[1]=P=>ae(-200))},null,8,["icon"])],512),[[ke,ye.value]]),d(It,{name:"el-zoom-in-top"},{default:y(()=>[se((h(),M("ul",{ref_key:"contextmenuRef",ref:pe,key:Math.random(),style:ie(n(B)),class:"contextmenu"},[(h(!0),M(we,null,Se(n(r).slice(0,6),(P,de)=>(h(),M("div",{key:de,style:{display:"flex","align-items":"center"}},[P.show?(h(),M("li",{key:0,onClick:Ie=>Xe(de,P)},[d(H,{icon:P.icon},null,8,["icon"]),he(" "+ne(n(K)(P.text)),1)],8,qa)):Q("",!0)]))),128))],4)),[[ke,n(a)]])]),_:1}),d(D,{trigger:"click",placement:"bottom-end",onCommand:W},{dropdown:y(()=>[d(re,null,{default:y(()=>[(h(!0),M(we,null,Se(n(r),(P,de)=>(h(),O(F,{key:de,command:{key:de,item:P},divided:P.divided,disabled:P.disabled},{default:y(()=>[d(H,{icon:P.icon},null,8,["icon"]),he(" "+ne(n(K)(P.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:y(()=>[v("span",Ba,[d(H,{icon:n(Ha),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),Na=ve(Fa,[["__scopeId","data-v-39ce94f0"]]),Ua={class:"layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"},Wa={class:"hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Ga=te({__name:"index",setup(t){const e=Ge("Title");return(o,a)=>(h(),M("footer",Ua,[he(" Copyright © 2020-present "),v("a",Wa," "+ne(n(e)),1)]))}}),Wt=ve(Ga,[["__scopeId","data-v-44b5e275"]]),Ye=new Map,Ka=()=>{function t(a,u){Ye.set(a,u)}function e(a){return a?Ye.get(a):[...Ye.entries()]}function o(a){Ye.delete(a)}return{setMap:t,getMap:e,delMap:o,MAP:Ye}},Xa={class:"w-full h-full"},Ja=te({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,o=Xt([]),{setMap:a,getMap:u,MAP:s,delMap:f}=Ka(),r=q(()=>{var c,_;return Ge().KeepAlive&&((c=e.currRoute.meta)==null?void 0:c.keepAlive)&&!!((_=e.currRoute.meta)!=null&&_.frameSrc)}),g=q(()=>!r.value&&e.currComp);return Pe(Ae().multiTags,c=>{if(!Array.isArray(c)||!r.value)return;if(c.filter(i=>{var p;return(p=i.meta)==null?void 0:p.frameSrc}).length<s.size)for(const i of s.keys())c.some(p=>p.path===i)||(f(i),o.value=u())}),Pe(()=>e.currRoute.fullPath,c=>{const i=Ae().multiTags.filter(p=>{var b;return(b=p.meta)==null?void 0:b.frameSrc});r.value&&i.length!==s.size&&([...s.keys()].find(b=>c===b)||a(c,e.currComp)),s.size>0&&(o.value=u())},{immediate:!0}),(c,_)=>(h(),M(we,null,[(h(!0),M(we,null,Se(o.value,([i,p])=>{var b;return se((h(),M("div",{key:i,class:"w-full h-full"},[gt(c.$slots,"default",{fullPath:i,Comp:p,frameInfo:{frameSrc:(b=c.currRoute.meta)==null?void 0:b.frameSrc,fullPath:i}})],512)),[[ke,i===e.currRoute.fullPath]])}),128)),se(v("div",Xa,[gt(c.$slots,"default",{Comp:g.value,fullPath:e.currRoute.fullPath})],512),[[ke,!r.value]])],64))}}),Ya={class:"grow"},Qa={key:1,class:"grow"},es=te({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=ut(),u=q(()=>a==null?void 0:a.KeepAlive),s=q(()=>i=>i.meta.transition),f=q(()=>o==null?void 0:o.configure.hideTabs),r=q(()=>o==null?void 0:o.configure.hideFooter),g=q(()=>(o==null?void 0:o.layout.layout)==="vertical"),c=q(()=>[f.value&&g?"padding-top: 48px;":"",!f.value&&g?"padding-top: 85px;":"",f.value&&!g.value?"padding-top: 48px;":"",!f.value&&!g.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${f.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),_=te({props:{route:{type:void 0,required:!0}},render(){var w,z,k;const i=((w=s.value(this.route))==null?void 0:w.name)||"fade-transform",p=(z=s.value(this.route))==null?void 0:z.enterTransition,b=(k=s.value(this.route))==null?void 0:k.leaveTransition;return tt(It,{name:p?"pure-classes-transition":i,enterActiveClass:p?`animate__animated ${p}`:void 0,leaveActiveClass:b?`animate__animated ${b}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(i,p)=>{const b=I("el-backtop"),w=I("el-scrollbar"),z=I("router-view");return h(),M("section",{class:le([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ie(c.value)},[d(z,null,{default:y(({Component:k,route:R})=>[d(Ja,{currComp:k,currRoute:R},{default:y(({Comp:V,fullPath:E,frameInfo:B})=>[e.fixedHeader?(h(),O(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:y(()=>[d(b,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:y(()=>[d(n(on))]),_:1}),v("div",Ya,[d(n(_),{route:R},{default:y(()=>[u.value?(h(),O(Bt,{key:0,include:n($e)().cachePageList},[(h(),O(Ee(V),{key:E,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(h(),O(Ee(V),{key:E,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),r.value?Q("",!0):(h(),O(Wt,{key:0}))]),_:2},1024)):(h(),M("div",Qa,[d(n(_),{route:R},{default:y(()=>[u.value?(h(),O(Bt,{key:0,include:n($e)().cachePageList},[(h(),O(Ee(V),{key:E,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(h(),O(Ee(V),{key:E,frameInfo:B,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!r.value&&!e.fixedHeader?(h(),O(Wt,{key:0})):Q("",!0)],6)}}}),Gt=ve(es,[["__scopeId","data-v-ca0a972a"]]),un=t=>(Qt("data-v-af01f247"),t=t(),en(),t),ts=un(()=>v("div",{class:"right-panel-background"},null,-1)),ns={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},os=un(()=>v("h4",{class:"dark:text-white"},"项目配置",-1)),as={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},ss=te({__name:"index",setup(t){const e=Z(null),o=Z(!1),a=q(()=>["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:u}=Vt();return Yt(e,s=>{s.clientX>e.value.offsetLeft||(o.value=!1)}),De(()=>{Ce.on("openPanel",()=>{o.value=!0})}),St(()=>{Ce.off("openPanel")}),(s,f)=>{const r=I("IconifyIconOffline"),g=I("el-scrollbar"),c=I("el-button"),_=Ke("tippy");return h(),M("div",{class:le({show:o.value})},[ts,v("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[v("div",ns,[os,se((h(),M("span",{class:le(a.value)},[d(r,{class:"dark:text-white",width:"18px",height:"18px",icon:n(cn),onClick:f[0]||(f[0]=i=>o.value=!o.value)},null,8,["icon"])],2)),[[_,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),d(g,null,{default:y(()=>[gt(s.$slots,"default",{},void 0,!0)]),_:3}),v("div",as,[se((h(),O(c,{type:"danger",text:"",bg:"",onClick:n(u)},{default:y(()=>[he(" 清空缓存 ")]),_:1},8,["onClick"])),[[_,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),ls=ve(ss,[["__scopeId","data-v-af01f247"]]),rs={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},is=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),cs=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),us=[is,cs];function ds(t,e){return h(),M("svg",rs,[...us])}const hs={render:ds},_e=t=>(Qt("data-v-3586024f"),t=t(),en(),t),fs={class:"p-6"},ps=_e(()=>v("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),ms=_e(()=>v("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),vs={class:"theme-color"},_s=["onClick"],gs=_e(()=>v("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),ys={class:"pure-theme"},bs=_e(()=>v("div",null,null,-1)),ws=_e(()=>v("div",null,null,-1)),ks=[bs,ws],xs=_e(()=>v("div",null,null,-1)),Cs=_e(()=>v("div",null,null,-1)),$s=[xs,Cs],Ss=_e(()=>v("div",null,null,-1)),Is=_e(()=>v("div",null,null,-1)),Ms=[Ss,Is],Ts=_e(()=>v("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),Vs=_e(()=>v("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),zs={class:"setting"},As=_e(()=>v("span",{class:"dark:text-white"},"灰色模式",-1)),Hs=_e(()=>v("span",{class:"dark:text-white"},"色弱模式",-1)),Ls=_e(()=>v("span",{class:"dark:text-white"},"隐藏标签页",-1)),Es=_e(()=>v("span",{class:"dark:text-white"},"隐藏页脚",-1)),Os=_e(()=>v("span",{class:"dark:text-white"},"Logo",-1)),Zs=_e(()=>v("span",{class:"dark:text-white"},"页签持久化",-1)),Rs=te({__name:"index",setup(t){var x,G,ae,J;const{device:e}=ze(),{isDark:o}=tn(),{$storage:a}=ut(),u=Z(),s=Z(),f=Z(),{dataTheme:r,overallStyle:g,layoutTheme:c,themeColors:_,toggleClass:i,dataThemeChange:p,setLayoutThemeColor:b}=Vt();if(n(c)){const $=n(c).layout,S=n(c).theme;Fn({scopeName:`layout-theme-${S}`}),ye($)}const w=Z((G=(x=a.configure)==null?void 0:x.showModel)!=null?G:"smart"),z=Z((J=(ae=a.configure)==null?void 0:ae.showLogo)!=null?J:!0),k=$t({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}),R=q(()=>$=>({background:$})),V=q(()=>$=>!($==="light"&&o.value));function E($,S){const Y=a.configure;Y[$]=S,a.configure=Y}const B=$=>{i(k.greyVal,"html-grey",document.querySelector("html")),E("grey",$)},U=$=>{i(k.weakVal,"html-weakness",document.querySelector("html")),E("weak",$)},N=()=>{const $=k.tabsVal;E("hideTabs",$),Ce.emit("tagViewsChange",$)},j=()=>{const $=k.hideFooter;E("hideFooter",$)},L=()=>{const $=k.multiTagsCache;E("multiTagsCache",$),Ae().multiTagsCacheChange($)};function K({option:$}){const{value:S}=$;w.value=S,E("showModel",S),Ce.emit("tagViewsShowModel",S)}function X(){n(z)?E("showLogo",!0):E("showLogo",!1),Ce.emit("logoChange",n(z))}function T($){$.forEach(S=>{i(!1,"is-select",n(S))})}const ee=q(()=>$=>$===c.value.theme&&c.value.theme!=="light"?"#fff":$===c.value.theme&&c.value.theme==="light"?"#1d2b45":"transparent"),me=q(()=>[{label:"浅色",icon:Nn,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"深色",icon:Un,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"自动",icon:hs,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:o.value?"#fff":"#000"}}]),pe=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function ye($){var S,Y,ge,ue,Me;c.value.layout=$,window.document.body.setAttribute("layout",$),a.layout={layout:$,theme:c.value.theme,darkMode:(S=a.layout)==null?void 0:S.darkMode,sidebarStatus:(Y=a.layout)==null?void 0:Y.sidebarStatus,epThemeColor:(ge=a.layout)==null?void 0:ge.epThemeColor,themeColor:(ue=a.layout)==null?void 0:ue.themeColor,overallStyle:(Me=a.layout)==null?void 0:Me.overallStyle},je().setLayout($)}Pe(a,({layout:$})=>{switch($.layout){case"vertical":i(!0,"is-select",n(s)),Ue(T([f]),50),Ue(T([u]),50);break;case"horizontal":i(!0,"is-select",n(f)),Ue(T([s]),50),Ue(T([u]),50);break;case"mix":i(!0,"is-select",n(u)),Ue(T([s]),50),Ue(T([f]),50);break}});const He=window.matchMedia("(prefers-color-scheme: dark)");function Ze(){g.value==="system"&&(He.matches?r.value=!0:r.value=!1,p(g.value))}function l(){He.removeEventListener("change",Ze)}function m(){Ze(),l(),He.addEventListener("change",Ze)}return nn(()=>{Be(()=>{var $,S;m(),k.greyVal&&(($=document.querySelector("html"))==null||$.setAttribute("class","html-grey")),k.weakVal&&((S=document.querySelector("html"))==null||S.setAttribute("class","html-weakness")),k.tabsVal&&N(),k.hideFooter&&j()})}),En(()=>l),($,S)=>{const Y=I("IconifyIconOffline"),ge=I("el-icon"),ue=I("el-switch"),Me=Ke("tippy");return h(),O(ls,null,{default:y(()=>[v("div",fs,[ps,d(n(Ft),{class:"select-none",modelValue:n(g)==="system"?2:n(r)?1:0,options:me.value,onChange:S[0]||(S[0]=W=>{W.index===1&&W.index!==2?r.value=!0:r.value=!1,g.value=W.option.theme,n(p)(W.option.theme),W.index===2&&m()})},null,8,["modelValue","options"]),ms,v("ul",vs,[(h(!0),M(we,null,Se(n(_),(W,Xe)=>se((h(),M("li",{key:Xe,style:ie(R.value(W.color)),onClick:st=>n(b)(W.themeColor)},[d(ge,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:ee.value(W.themeColor)},{default:y(()=>[d(Y,{icon:n(Ne)},null,8,["icon"])]),_:2},1032,["color"])],12,_s)),[[ke,V.value(W.themeColor)]])),128))]),gs,v("ul",ys,[se((h(),M("li",{ref_key:"verticalRef",ref:s,class:le(n(c).layout==="vertical"?"is-select":""),onClick:S[1]||(S[1]=W=>ye("vertical"))},ks,2)),[[Me,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),n(e)!=="mobile"?se((h(),M("li",{key:0,ref_key:"horizontalRef",ref:f,class:le(n(c).layout==="horizontal"?"is-select":""),onClick:S[2]||(S[2]=W=>ye("horizontal"))},$s,2)),[[Me,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):Q("",!0),n(e)!=="mobile"?se((h(),M("li",{key:1,ref_key:"mixRef",ref:u,class:le(n(c).layout==="mix"?"is-select":""),onClick:S[3]||(S[3]=W=>ye("mix"))},Ms,2)),[[Me,{content:"混合菜单,灵活多变",zIndex:41e3}]]):Q("",!0)]),Ts,d(n(Ft),{class:"select-none",modelValue:w.value==="smart"?0:1,options:pe,onChange:K},null,8,["modelValue"]),Vs,v("ul",zs,[v("li",null,[As,d(ue,{modelValue:k.greyVal,"onUpdate:modelValue":S[4]||(S[4]=W=>k.greyVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),v("li",null,[Hs,d(ue,{modelValue:k.weakVal,"onUpdate:modelValue":S[5]||(S[5]=W=>k.weakVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:U},null,8,["modelValue"])]),v("li",null,[Ls,d(ue,{modelValue:k.tabsVal,"onUpdate:modelValue":S[6]||(S[6]=W=>k.tabsVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:N},null,8,["modelValue"])]),v("li",null,[Es,d(ue,{modelValue:k.hideFooter,"onUpdate:modelValue":S[7]||(S[7]=W=>k.hideFooter=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:j},null,8,["modelValue"])]),v("li",null,[Os,d(ue,{modelValue:z.value,"onUpdate:modelValue":S[8]||(S[8]=W=>z.value=W),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:X},null,8,["modelValue"])]),v("li",null,[Zs,d(ue,{modelValue:k.multiTagsCache,"onUpdate:modelValue":S[9]||(S[9]=W=>k.multiTagsCache=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:L},null,8,["modelValue"])])])])]),_:1})}}}),Ds=ve(Rs,[["__scopeId","data-v-3586024f"]]),Ps=["src"],js={class:"sidebar-title"},qs=["src"],Bs={class:"sidebar-title"},Fs=te({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o,getLogo:a}=ze();return(u,s)=>{const f=I("router-link");return h(),M("div",{class:le(["sidebar-logo-container",{collapses:e.collapse}])},[d(It,{name:"sidebarLogoFade"},{default:y(()=>{var r,g,c,_;return[e.collapse?(h(),O(f,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:(g=(r=n(ct)())==null?void 0:r.path)!=null?g:"/"},{default:y(()=>[v("img",{src:n(a)(),alt:"logo"},null,8,Ps),v("span",js,ne(n(o)),1)]),_:1},8,["title","to"])):(h(),O(f,{key:"expand",title:n(o),class:"sidebar-logo-link",to:(_=(c=n(ct)())==null?void 0:c.path)!=null?_:"/"},{default:y(()=>[v("img",{src:n(a)(),alt:"logo"},null,8,qs),v("span",Bs,ne(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Ns=ve(Fs,[["__scopeId","data-v-8d7f2c36"]]);var at={exports:{}},dn={},Us=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},bt={exports:{}};typeof Object.create=="function"?bt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:bt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var Ws=bt.exports;(function(t){var e={},o=/%[sdj%]/g;t.format=function(l){if(!B(l)){for(var m=[],x=0;x<arguments.length;x++)m.push(s(arguments[x]));return m.join(" ")}for(var x=1,G=arguments,ae=G.length,J=String(l).replace(o,function(S){if(S==="%%")return"%";if(x>=ae)return S;switch(S){case"%s":return String(G[x++]);case"%d":return Number(G[x++]);case"%j":try{return JSON.stringify(G[x++])}catch(Y){return"[Circular]"}default:return S}}),$=G[x];x<ae;$=G[++x])R($)||!L($)?J+=" "+$:J+=" "+s($);return J},t.deprecate=function(l,m){if(N(On.process))return function(){return t.deprecate(l,m).apply(this,arguments)};if(process.noDeprecation===!0)return l;var x=!1;function G(){if(!x){if(process.throwDeprecation)throw new Error(m);process.traceDeprecation?console.trace(m):console.error(m),x=!0}return l.apply(this,arguments)}return G};var a={},u;t.debuglog=function(l){if(N(u)&&(u=e.NODE_DEBUG||""),l=l.toUpperCase(),!a[l])if(new RegExp("\\b"+l+"\\b","i").test(u)){var m=process.pid;a[l]=function(){var x=t.format.apply(t,arguments);console.error("%s %d: %s",l,m,x)}}else a[l]=function(){};return a[l]};function s(l,m){var x={seen:[],stylize:r};return arguments.length>=3&&(x.depth=arguments[2]),arguments.length>=4&&(x.colors=arguments[3]),k(m)?x.showHidden=m:m&&t._extend(x,m),N(x.showHidden)&&(x.showHidden=!1),N(x.depth)&&(x.depth=2),N(x.colors)&&(x.colors=!1),N(x.customInspect)&&(x.customInspect=!0),x.colors&&(x.stylize=f),c(x,l,x.depth)}t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(l,m){var x=s.styles[m];return x?"\x1B["+s.colors[x][0]+"m"+l+"\x1B["+s.colors[x][1]+"m":l}function r(l,m){return l}function g(l){var m={};return l.forEach(function(x,G){m[x]=!0}),m}function c(l,m,x){if(l.customInspect&&m&&T(m.inspect)&&m.inspect!==t.inspect&&!(m.constructor&&m.constructor.prototype===m)){var G=m.inspect(x,l);return B(G)||(G=c(l,G,x)),G}var ae=_(l,m);if(ae)return ae;var J=Object.keys(m),$=g(J);if(l.showHidden&&(J=Object.getOwnPropertyNames(m)),X(m)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return i(m);if(J.length===0){if(T(m)){var S=m.name?": "+m.name:"";return l.stylize("[Function"+S+"]","special")}if(j(m))return l.stylize(RegExp.prototype.toString.call(m),"regexp");if(K(m))return l.stylize(Date.prototype.toString.call(m),"date");if(X(m))return i(m)}var Y="",ge=!1,ue=["{","}"];if(z(m)&&(ge=!0,ue=["[","]"]),T(m)){var Me=m.name?": "+m.name:"";Y=" [Function"+Me+"]"}if(j(m)&&(Y=" "+RegExp.prototype.toString.call(m)),K(m)&&(Y=" "+Date.prototype.toUTCString.call(m)),X(m)&&(Y=" "+i(m)),J.length===0&&(!ge||m.length==0))return ue[0]+Y+ue[1];if(x<0)return j(m)?l.stylize(RegExp.prototype.toString.call(m),"regexp"):l.stylize("[Object]","special");l.seen.push(m);var W;return ge?W=p(l,m,x,$,J):W=J.map(function(Xe){return b(l,m,x,$,Xe,ge)}),l.seen.pop(),w(W,Y,ue)}function _(l,m){if(N(m))return l.stylize("undefined","undefined");if(B(m)){var x="'"+JSON.stringify(m).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(x,"string")}if(E(m))return l.stylize(""+m,"number");if(k(m))return l.stylize(""+m,"boolean");if(R(m))return l.stylize("null","null")}function i(l){return"["+Error.prototype.toString.call(l)+"]"}function p(l,m,x,G,ae){for(var J=[],$=0,S=m.length;$<S;++$)Ze(m,String($))?J.push(b(l,m,x,G,String($),!0)):J.push("");return ae.forEach(function(Y){Y.match(/^\d+$/)||J.push(b(l,m,x,G,Y,!0))}),J}function b(l,m,x,G,ae,J){var $,S,Y;if(Y=Object.getOwnPropertyDescriptor(m,ae)||{value:m[ae]},Y.get?Y.set?S=l.stylize("[Getter/Setter]","special"):S=l.stylize("[Getter]","special"):Y.set&&(S=l.stylize("[Setter]","special")),Ze(G,ae)||($="["+ae+"]"),S||(l.seen.indexOf(Y.value)<0?(R(x)?S=c(l,Y.value,null):S=c(l,Y.value,x-1),S.indexOf(`
|
||
`)>-1&&(J?S=S.split(`
|
||
`).map(function(ge){return" "+ge}).join(`
|
||
`).substr(2):S=`
|
||
`+S.split(`
|
||
`).map(function(ge){return" "+ge}).join(`
|
||
`))):S=l.stylize("[Circular]","special")),N($)){if(J&&ae.match(/^\d+$/))return S;$=JSON.stringify(""+ae),$.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?($=$.substr(1,$.length-2),$=l.stylize($,"name")):($=$.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),$=l.stylize($,"string"))}return $+": "+S}function w(l,m,x){var G=l.reduce(function(ae,J){return J.indexOf(`
|
||
`)>=0,ae+J.replace(/\u001b\[\d\d?m/g,"").length+1},0);return G>60?x[0]+(m===""?"":m+`
|
||
`)+" "+l.join(`,
|
||
`)+" "+x[1]:x[0]+m+" "+l.join(", ")+" "+x[1]}function z(l){return Array.isArray(l)}t.isArray=z;function k(l){return typeof l=="boolean"}t.isBoolean=k;function R(l){return l===null}t.isNull=R;function V(l){return l==null}t.isNullOrUndefined=V;function E(l){return typeof l=="number"}t.isNumber=E;function B(l){return typeof l=="string"}t.isString=B;function U(l){return typeof l=="symbol"}t.isSymbol=U;function N(l){return l===void 0}t.isUndefined=N;function j(l){return L(l)&&me(l)==="[object RegExp]"}t.isRegExp=j;function L(l){return typeof l=="object"&&l!==null}t.isObject=L;function K(l){return L(l)&&me(l)==="[object Date]"}t.isDate=K;function X(l){return L(l)&&(me(l)==="[object Error]"||l instanceof Error)}t.isError=X;function T(l){return typeof l=="function"}t.isFunction=T;function ee(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l=="undefined"}t.isPrimitive=ee,t.isBuffer=Us;function me(l){return Object.prototype.toString.call(l)}function pe(l){return l<10?"0"+l.toString(10):l.toString(10)}var ye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function He(){var l=new Date,m=[pe(l.getHours()),pe(l.getMinutes()),pe(l.getSeconds())].join(":");return[l.getDate(),ye[l.getMonth()],m].join(" ")}t.log=function(){console.log("%s - %s",He(),t.format.apply(t,arguments))},t.inherits=Ws,t._extend=function(l,m){if(!m||!L(m))return l;for(var x=Object.keys(m),G=x.length;G--;)l[x[G]]=m[x[G]];return l};function Ze(l,m){return Object.prototype.hasOwnProperty.call(l,m)}})(dn);var Gs={},Ks=process.platform==="win32",Ve=dn;function ht(t,e){for(var o=[],a=0;a<t.length;a++){var u=t[a];!u||u==="."||(u===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(u))}return o}function ot(t){for(var e=t.length-1,o=0;o<=e&&!t[o];o++);for(var a=e;a>=0&&!t[a];a--);return o===0&&a===e?t:o>a?[]:t.slice(o,a+1)}var hn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Xs=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ce={};function ft(t){var e=hn.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",u=Xs.exec(a),s=u[1],f=u[2],r=u[3];return[o,s,f,r]}function Et(t){var e=hn.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function fn(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ce.resolve=function(){for(var t="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var u;if(a>=0?u=arguments[a]:t?(u=Gs["="+t],(!u||u.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(u=t+"\\")):u=process.cwd(),Ve.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=Et(u),f=s.device,r=s.isUnc,g=s.isAbsolute,c=s.tail;if(!(f&&t&&f.toLowerCase()!==t.toLowerCase())&&(t||(t=f),o||(e=c+"\\"+e,o=g),t&&o))break}return r&&(t=fn(t)),e=ht(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};ce.normalize=function(t){var e=Et(t),o=e.device,a=e.isUnc,u=e.isAbsolute,s=e.tail,f=/[\\\/]$/.test(s);return s=ht(s.split(/[\\\/]+/),!u).join("\\"),!s&&!u&&(s="."),s&&f&&(s+="\\"),a&&(o=fn(o)),o+(u?"\\":"")+s};ce.isAbsolute=function(t){return Et(t).isAbsolute};ce.join=function(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Ve.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&t.push(o)}var a=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(a=a.replace(/^[\\\/]{2,}/,"\\")),ce.normalize(a)};ce.relative=function(t,e){t=ce.resolve(t),e=ce.resolve(e);for(var o=t.toLowerCase(),a=e.toLowerCase(),u=ot(e.split("\\")),s=ot(o.split("\\")),f=ot(a.split("\\")),r=Math.min(s.length,f.length),g=r,c=0;c<r;c++)if(s[c]!==f[c]){g=c;break}if(g==0)return e;for(var _=[],c=g;c<s.length;c++)_.push("..");return _=_.concat(u.slice(g)),_.join("\\")};ce._makeLong=function(t){if(!Ve.isString(t))return t;if(!t)return"";var e=ce.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};ce.dirname=function(t){var e=ft(t),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};ce.basename=function(t,e){var o=ft(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};ce.extname=function(t){return ft(t)[3]};ce.format=function(t){if(!Ve.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ve.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir,a=t.base||"";return o?o[o.length-1]===ce.sep?o+a:o+ce.sep+a:a};ce.parse=function(t){if(!Ve.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=ft(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};ce.sep="\\";ce.delimiter=";";var Js=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,fe={};function pt(t){return Js.exec(t).slice(1)}fe.resolve=function(){for(var t="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ve.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=ht(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};fe.normalize=function(t){var e=fe.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=ht(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};fe.isAbsolute=function(t){return t.charAt(0)==="/"};fe.join=function(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Ve.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(t?t+="/"+o:t+=o)}return fe.normalize(t)};fe.relative=function(t,e){t=fe.resolve(t).substr(1),e=fe.resolve(e).substr(1);for(var o=ot(t.split("/")),a=ot(e.split("/")),u=Math.min(o.length,a.length),s=u,f=0;f<u;f++)if(o[f]!==a[f]){s=f;break}for(var r=[],f=s;f<o.length;f++)r.push("..");return r=r.concat(a.slice(s)),r.join("/")};fe._makeLong=function(t){return t};fe.dirname=function(t){var e=pt(t),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};fe.basename=function(t,e){var o=pt(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};fe.extname=function(t){return pt(t)[3]};fe.format=function(t){if(!Ve.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ve.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir?t.dir+fe.sep:"",a=t.base||"";return o+a};fe.parse=function(t){if(!Ve.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=pt(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};fe.sep="/";fe.delimiter=":";Ks?at.exports=ce:at.exports=fe;at.exports.posix=fe;at.exports.win32=ce;var Ys=at.exports;const Qs=Zn(Ys),el={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"/>'},tl={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"/>'},nl={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"/>'},ol={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"/>'},pn=te({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const{layout:e,isCollapse:o,tooltipEffect:a,getDivStyle:u}=ze(),s=t,f=q(()=>({display:"flex",alignItems:"center"})),r=q(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),g=q(()=>{var p;return(p=Ge())!=null&&p.MenuArrowIconNoTransition?{"expand-close-icon":Le(tl),"expand-open-icon":Le(el),"collapse-close-icon":Le(ol),"collapse-open-icon":Le(nl)}:""}),c=Z(null);function _(p=[],b){var z,k;const w=p.filter(R=>(c.value=R,!0));return(k=(z=w[0])==null?void 0:z.meta)!=null&&k.showParent?!1:w.length===1?!0:w.length===0?(c.value=jt(Pt({},b),{path:"",noShowingChildren:!0}),!0):!1}function i(p){const b=/^http(s?):\/\//;return b.test(p)||b.test(s.basePath)?p||s.basePath:Qs.posix.resolve(s.basePath,p)}return(p,b)=>{const w=I("el-text"),z=I("el-menu-item"),k=I("sidebar-item",!0),R=I("el-sub-menu");return _(s.item.children,s.item)&&(!c.value.children||c.value.noShowingChildren)?(h(),O(z,{key:0,index:i(c.value.path),class:le({"submenu-title-noDropdown":!t.isNest}),style:ie(f.value)},{title:y(()=>[v("div",{style:ie(n(u))},[d(n(Nt),{tippyProps:{offset:[0,-10],theme:n(a)},class:"!text-inherit"},{default:y(()=>[he(ne(n(Oe)(c.value.meta.title)),1)]),_:1},8,["tippyProps"]),d(yt,{extraIcon:c.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:y(()=>{var V,E,B,U,N;return[xe(s.item.meta.icon)?(h(),M("div",{key:0,class:"sub-menu-icon",style:ie(r.value)},[(h(),O(Ee(n(Le)(xe(c.value.meta.icon)||s.item.meta&&xe(s.item.meta.icon)))))],4)):Q("",!0),!((V=s.item)!=null&&V.meta.icon)&&n(o)&&n(e)==="vertical"&&((B=(E=s.item)==null?void 0:E.pathList)==null?void 0:B.length)===1||!c.value.meta.icon&&n(o)&&n(e)==="mix"&&((N=(U=s.item)==null?void 0:U.pathList)==null?void 0:N.length)===2?(h(),O(w,{key:1,truncated:"",class:"!px-4 !text-inherit"},{default:y(()=>[he(ne(n(Oe)(c.value.meta.title)),1)]),_:1})):Q("",!0)]}),_:1},8,["index","class","style"])):(h(),O(R,Rn({key:1,ref:"subMenu",teleported:"",index:i(s.item.path)},g.value),{title:y(()=>[xe(s.item.meta.icon)?(h(),M("div",{key:0,style:ie(r.value),class:"sub-menu-icon"},[(h(),O(Ee(n(Le)(s.item.meta&&xe(s.item.meta.icon)))))],4)):Q("",!0),n(e)==="vertical"&&n(o)&&xe(s.item.meta.icon)&&s.item.parentId===null?Q("",!0):(h(),O(n(Nt),{key:1,tippyProps:{offset:[0,-10],theme:n(a)},class:le({"!text-inherit":!0,"!px-4":n(e)!=="horizontal"&&n(o)&&!xe(s.item.meta.icon)&&s.item.parentId===null})},{default:y(()=>[he(ne(n(Oe)(s.item.meta.title)),1)]),_:1},8,["tippyProps","class"])),n(o)?Q("",!0):(h(),O(yt,{key:2,extraIcon:s.item.meta.extraIcon},null,8,["extraIcon"]))]),default:y(()=>[(h(!0),M(we,null,Se(s.item.children,V=>(h(),O(k,{key:V.path,"is-nest":!0,item:V,"base-path":i(V.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),al={class:"collapse-container"},sl=te({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,{tooltipEffect:a}=ze(),u=q(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:s}=ut(),f=q(()=>{var c;return(c=s.layout)==null?void 0:c.themeColor}),r=e,g=()=>{r("toggleClick")};return(c,_)=>{const i=I("IconifyIconOffline"),p=Ke("tippy");return h(),M("div",al,[se(d(i,{icon:n(rn),class:le([u.value,f.value==="light"?"":"text-primary"]),style:ie({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:g},null,8,["icon","class","style"]),[[p,{content:o.isActive?"点击折叠":"点击展开",theme:n(a),hideOnClick:"toggle",placement:"right"}]])])}}}),ll=ve(sl,[["__scopeId","data-v-d14bd14d"]]),rl=te({__name:"vertical",setup(t){var w,z;const e=Ct(),o=Z((z=(w=Qe().getItem(`${et()}configure`))==null?void 0:w.showLogo)!=null?z:!0),{device:a,pureApp:u,isCollapse:s,tooltipEffect:f,menuSelect:r,toggleSideBar:g}=ze(),c=Z([]),_=q(()=>u.layout==="mix"&&a.value!=="mobile"?c.value:$e().wholeMenus),i=q(()=>u.layout==="mix"?!1:_.value.length===0),p=q(()=>{var k;return qe((k=e.meta)==null?void 0:k.activePath)?e.path:e.meta.activePath});function b(){let k="";k=p.value,c.value=[];const R=xt(k,$e().wholeMenus),V=it(R[0]||k,$e().wholeMenus);V!=null&&V.children&&(c.value=V==null?void 0:V.children)}return Pe(()=>[e.path,$e().wholeMenus],()=>{e.path.includes("/redirect")||(b(),r(e.path))}),De(()=>{b(),Ce.on("logoChange",k=>{o.value=k})}),St(()=>{Ce.off("logoChange")}),(k,R)=>{const V=I("el-menu"),E=I("el-scrollbar"),B=Ke("loading");return se((h(),M("div",{class:le(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(h(),O(Ns,{key:0,collapse:n(s)},null,8,["collapse"])):Q("",!0),d(E,{"wrap-class":"scrollbar-wrapper",class:le([n(a)==="mobile"?"mobile":"pc"])},{default:y(()=>[d(V,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:n(s),"collapse-transition":!1,"popper-effect":n(f),"default-active":p.value},{default:y(()=>[(h(!0),M(we,null,Se(_.value,U=>(h(),O(pn,{key:U.path,item:U,"base-path":U.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(h(),O(ll,{key:1,"is-active":n(u).sidebar.opened,onToggleClick:n(g)},null,8,["is-active","onToggleClick"])):Q("",!0)],2)),[[B,i.value]])}}}),il=ve(rl,[["__scopeId","data-v-3752e90e"]]),cl={class:"horizontal-header"},ul=["src"],dl={class:"horizontal-header-right"},hl={class:"check-zh"},fl={class:"check-en"},pl={class:"el-dropdown-link navbar-bg-hover"},ml=["src"],vl={key:0,class:"dark:text-white"},_l=["title"],gl=te({__name:"horizontal",setup(t){const e=Z(),{t:o,route:a,locale:u,translationCh:s,translationEn:f}=Mt(e),{title:r,logout:g,backTopMenu:c,onPanel:_,getLogo:i,username:p,userAvatar:b,avatarsStyle:w,getDropdownItemStyle:z,getDropdownItemClass:k}=ze(),R=q(()=>{var V;return qe((V=a.meta)==null?void 0:V.activePath)?a.path:a.meta.activePath});return Be(()=>{var V;(V=e.value)==null||V.handleResize()}),(V,E)=>{const B=I("el-menu"),U=I("IconifyIconOffline"),N=I("el-dropdown-item"),j=I("el-dropdown-menu"),L=I("el-dropdown"),K=Ke("loading");return se((h(),M("div",cl,[v("div",{class:"horizontal-header-left",onClick:E[0]||(E[0]=(...X)=>n(c)&&n(c)(...X))},[v("img",{src:n(i)(),alt:"logo"},null,8,ul),v("span",null,ne(n(r)),1)]),d(B,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":R.value},{default:y(()=>[(h(!0),M(we,null,Se(n($e)().wholeMenus,X=>(h(),O(pn,{key:X.path,item:X,"base-path":X.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),v("div",dl,[d(At,{id:"header-search"}),d(Ht,{id:"header-notice"}),d(L,{id:"header-translation",trigger:"click"},{dropdown:y(()=>[d(j,{class:"translation"},{default:y(()=>[d(N,{style:ie(n(z)(n(u),"zh")),class:le(["dark:!text-white",n(k)(n(u),"zh")]),onClick:n(s)},{default:y(()=>[se(v("span",hl,[d(U,{icon:n(Ne)},null,8,["icon"])],512),[[ke,n(u)==="zh"]]),he(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(N,{style:ie(n(z)(n(u),"en")),class:le(["dark:!text-white",n(k)(n(u),"en")]),onClick:n(f)},{default:y(()=>[se(v("span",fl,[d(U,{icon:n(Ne)},null,8,["icon"])],512),[[ke,n(u)==="en"]]),he(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:y(()=>[d(n(Tt),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(L,{trigger:"click"},{dropdown:y(()=>[d(j,{class:"logout"},{default:y(()=>[d(N,{onClick:n(g)},{default:y(()=>[d(U,{icon:n(Lt),style:{margin:"5px"}},null,8,["icon"]),he(" "+ne(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:y(()=>[v("span",pl,[v("img",{src:n(b),style:ie(n(w))},null,12,ml),n(p)?(h(),M("p",vl,ne(n(p)),1)):Q("",!0)])]),_:1}),v("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:E[1]||(E[1]=(...X)=>n(_)&&n(_)(...X))},[d(U,{icon:n(dt)},null,8,["icon"])],8,_l)])])),[[K,n($e)().wholeMenus.length===0]])}}}),yl=ve(gl,[["__scopeId","data-v-bb9dfcbc"]]),bl={key:0},wl=te({__name:"index",setup(t){const e=Z(),{isDark:o}=tn(),{layout:a}=Wn(),u=Jt(),s=zt(),{$storage:f}=ut(),r=$t({sidebar:q(()=>je().sidebar),device:q(()=>je().device),fixedHeader:q(()=>s.fixedHeader),classes:q(()=>({hideSidebar:!r.sidebar.opened,openSidebar:r.sidebar.opened,withoutAnimation:r.sidebar.withoutAnimation,mobile:r.device==="mobile"})),hideTabs:q(()=>f==null?void 0:f.configure.hideTabs)});function g(p){var b,w,z,k,R,V;window.document.body.setAttribute("layout",p),f.layout={layout:`${p}`,theme:(b=f.layout)==null?void 0:b.theme,darkMode:(w=f.layout)==null?void 0:w.darkMode,sidebarStatus:(z=f.layout)==null?void 0:z.sidebarStatus,epThemeColor:(k=f.layout)==null?void 0:k.epThemeColor,themeColor:(R=f.layout)==null?void 0:R.themeColor,overallStyle:(V=f.layout)==null?void 0:V.overallStyle}}function c(p,b){je().toggleDevice(p),je().toggleSideBar(b,"resize")}let _=!0;wt(e,p=>{if(u)return;const b=p[0],[{inlineSize:w}]=b.borderBoxSize;w<=760?g("vertical"):g(je().layout),w>0&&w<=760?(c("mobile",!1),_=!0):w>760&&w<=990?_&&(c("desktop",!1),_=!1):w>990&&!r.sidebar.isClickCollapse?(c("desktop",!0),_=!0):(c("desktop",!1),_=!1)}),De(()=>{u&&c("mobile",!1)}),nn(()=>{var p;Vt().dataThemeChange((p=f.layout)==null?void 0:p.overallStyle)});const i=te({render(){return tt("div",{class:{"fixed-header":r.fixedHeader},style:[r.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"))?tt(Ia):null,!s.hiddenSideBar&&a.value.includes("horizontal")?tt(yl):null,tt(Na)]})}});return(p,b)=>{const w=I("el-backtop"),z=I("el-scrollbar");return h(),M("div",{ref_key:"appWrapperRef",ref:e,class:le(["app-wrapper",r.classes])},[se(v("div",{class:"app-mask",onClick:b[0]||(b[0]=k=>n(je)().toggleSideBar())},null,512),[[ke,r.device==="mobile"&&r.sidebar.opened&&n(a).includes("vertical")]]),se(d(il,null,null,512),[[ke,!n(s).hiddenSideBar&&(n(a).includes("vertical")||n(a).includes("mix"))]]),v("div",{class:le(["main-container",n(s).hiddenSideBar?"main-hidden":""])},[r.fixedHeader?(h(),M("div",bl,[d(n(i)),d(Gt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])])):(h(),O(z,{key:1},{default:y(()=>[d(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:y(()=>[d(n(on))]),_:1}),d(n(i)),d(Gt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),d(Ds)],2)}}}),Pl=ve(wl,[["__scopeId","data-v-e1cc1ddb"]]);export{Pl as default};
|