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