mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 09:27:19 +08:00
11 lines
75 KiB
JavaScript
11 lines
75 KiB
JavaScript
import{b2 as he,aE as an,aH as Ye,aI as ln,o as d,i as z,e as m,d as ae,Z as sn,r as H,C as q,b3 as _t,j as qe,F as ye,l as xe,E as te,c as E,S as He,u as n,t as Q,h as r,a9 as Dt,_ as fe,a as k,f as ne,ad as J,a1 as lt,aY as rn,A as cn,I as ge,b4 as pt,w as v,aA as un,K as we,aU as Pt,am as Rt,n as je,a_ as ke,D as Fe,b as gt,g as ve,aq as le,ar as Ce,b5 as yt,b6 as Ge,b7 as ot,b1 as bt,b8 as Ve,ap as dn,ak as Ke,b9 as Ne,aF as We,aG as Xe,ai as wt,ba as me,bb as Qe,bc as hn,bd as pn,be as nt,au as Pe,bf as at,bg as fn,P as Be,k as kt,bh as xt,bi as ft,bj as Ht,bk as jt,bl as Ct,bm as Et,M as Je,bn as vn,ac as mn,q as st,s as rt,a8 as qt,ao as Bt,bo as _n,bp as gn,bq as yn,$ as bn,R as wn,al as kn}from"./index-591b3534.js";import{d as xn}from"./menu-a4fe64fb.js";import{d as Cn}from"./set-up-e6942411.js";import{d as $n}from"./home-filled-05cc090c.js";import{d as Sn}from"./admin-line-92b9acda.js";import{d as In}from"./git-branch-line-aa4cb38f.js";import{u as Me,a as $t,g as St,e as _e,b as Nt,t as Mn,d as Tn,c as Vn,f as zn}from"./dark-b3e1009f.js";import{u as Re}from"./app-2e2ea453.js";import{u as Ln}from"./epTheme-83f2446f.js";import{u as Ae}from"./hooks-50af9f09.js";import{d as An}from"./search-cc37b371.js";import{d as Ue}from"./check-3815600c.js";import{d as Hn}from"./refresh-right-6177e75c.js";import{d as En}from"./arrow-right-s-line-2977cc7e.js";import{b as Ft}from"./back_top-545f5ea0.js";const On={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"/>'},Zn={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"/>'},Dn={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 16ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"/>'},Pn={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"/>'},Rn={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"/>'},jn={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"/>'},qn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Bn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},Nn={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"/>'},Fn={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"/>'},Un={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"/>'},it={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"/>'},Wn={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"/>'},Gn={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"/>'};he("ubuntuFill",On);he("menu",xn);he("edit",Zn);he("informationLine",Dn);he("setUp",Cn);he("terminalWindowLine",Pn);he("guide",Rn);he("homeFilled",$n);he("card",jn);he("listCheck",qn);he("histogram",Bn);he("ppt",Nn);he("checkboxCircleLine",Fn);he("flUser",Sn);he("role",Un);he("setting",it);he("dept",In);he("lollipop",Wn);he("monitor",Gn);const Kn=an({id:"pure-setting",state:()=>({title:Ye().Title,fixedHeader:Ye().FixedHeader,hiddenSideBar:Ye().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function It(){return Kn(ln)}const Xn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Jn=m("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-8z"},null,-1),Yn=[Jn];function Qn(t,e){return d(),z("svg",Xn,Yn)}const Ut={render:Qn},eo={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"/>'},to=["onMouseenter"],no={class:"result-item-title"},oo=ae({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:o}){const a=t,{t:c}=sn(),i=H(),p=H(),h=Dt(),g=q(()=>y=>({background:(y==null?void 0:y.path)===x.value?Ln().epThemeColor:"",color:y.path===x.value?"#fff":"",fontSize:y.path===x.value?"16px":"14px"})),x=q({get(){return a.value},set(y){o("update:value",y)}});async function f(y){x.value=y.path}function _(){o("enter")}function M(){p.value=window.innerHeight-window.innerHeight/10-140}_t(i,()=>{M()});function w(y){var F;const L=(F=h==null?void 0:h.proxy)==null?void 0:F.$refs[`resultItemRef${y}`];if(!L)return 0;const V=L[0].offsetTop+128;return V>p.value?V-p.value:0}return qe(()=>{M()}),e({handleScroll:w}),(y,L)=>(d(),z("div",{ref_key:"resultRef",ref:i,class:"result"},[(d(!0),z(ye,null,xe(y.options,(T,V)=>{var F,B;return d(),z("div",{key:T.path,ref_for:!0,ref:"resultItemRef"+V,class:"result-item dark:bg-[#1d1d1d]",style:te(g.value(T)),onClick:_,onMouseenter:$=>f(T)},[(d(),E(He(n(Ae)(((F=T.meta)==null?void 0:F.icon)??n(eo))))),m("span",no,Q(n(c)((B=T.meta)==null?void 0:B.title)),1),r(n(Ut))],44,to)}),128))],512))}});const ao=fe(oo,[["__scopeId","data-v-a3562d68"]]),lo={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"/>'},so={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"/>'},ro={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},io=m("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 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-2Z"},null,-1),co=[io];function uo(t,e){return d(),z("svg",ro,co)}const ho={render:uo},po={class:"search-footer text-[#333] dark:text-white"},fo={class:"search-footer-item"},vo={class:"search-footer-item"},mo={class:"search-footer-item"},_o={key:0,class:"search-footer-total"},go=ae({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:o}=Me();return(a,c)=>{const i=k("IconifyIconOffline");return d(),z("div",po,[m("span",fo,[r(n(Ut),{class:"icon"}),ne(" 确认 ")]),m("span",vo,[r(i,{icon:n(lo),class:"icon"},null,8,["icon"]),r(i,{icon:n(so),class:"icon"},null,8,["icon"]),ne(" 切换 ")]),m("span",mo,[r(n(ho),{class:"icon"}),ne(" 关闭 ")]),n(o)!=="mobile"&&e.total>0?(d(),z("p",_o," 共"+Q(e.total)+"项 ",1)):J("",!0)])}}});const yo=fe(go,[["__scopeId","data-v-d2a25abb"]]),bo={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"/>'},wo={class:"search-result-container"},ko=ae({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const o=t,{device:a}=Me(),c=lt(),i=H(""),p=H(),h=H(),g=H(""),x=H(null),f=rn([]),_=un(L,300),M=q(()=>cn(ge().wholeMenus)),w=q({get(){return o.value},set(b){e("update:value",b)}});function y(b){const S=[];function D(N){N.forEach(I=>{S.push(I),I.children&&D(I.children)})}return D(b),S}function L(){var S;const b=y(M.value);f.value=b.filter(D=>{var N;return i.value&&we((N=D.meta)==null?void 0:N.title).toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim())}),((S=f.value)==null?void 0:S.length)>0?g.value=f.value[0].path:g.value=""}function T(){w.value=!1,setTimeout(()=>{f.value=[],i.value=""},200)}function V(b){const S=h.value.handleScroll(b);p.value.setScrollTop(S)}function F(){const{length:b}=f.value;if(b===0)return;const S=f.value.findIndex(D=>D.path===g.value);S===0?(g.value=f.value[b-1].path,V(f.value.length-1)):(g.value=f.value[S-1].path,V(S-1))}function B(){const{length:b}=f.value;if(b===0)return;const S=f.value.findIndex(D=>D.path===g.value);S+1===b?g.value=f.value[0].path:g.value=f.value[S+1].path,V(S+1)}function $(){const{length:b}=f.value;b===0||g.value===""||(c.push(g.value),T())}return pt("Enter",$),pt("ArrowUp",F),pt("ArrowDown",B),(b,S)=>{const D=k("IconifyIconOffline"),N=k("el-input"),I=k("el-empty"),G=k("el-scrollbar"),pe=k("el-dialog");return d(),E(pe,{top:"5vh",class:"pure-search-dialog",modelValue:w.value,"onUpdate:modelValue":S[2]||(S[2]=R=>w.value=R),"show-close":!1,width:n(a)==="mobile"?"80vw":"40vw","before-close":T,style:{borderRadius:"6px"},"append-to-body":"",onOpened:S[3]||(S[3]=R=>x.value.focus()),onClosed:S[4]||(S[4]=R=>x.value.blur())},{footer:v(()=>[r(yo,{total:f.value.length},null,8,["total"])]),default:v(()=>[r(N,{ref_key:"inputRef",ref:x,size:"large",modelValue:i.value,"onUpdate:modelValue":S[0]||(S[0]=R=>i.value=R),clearable:"",placeholder:"搜索菜单",onInput:n(_)},{prefix:v(()=>[r(D,{icon:n(bo),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),m("div",wo,[r(G,{ref_key:"scrollbarRef",ref:p,"max-height":"calc(90vh - 140px)"},{default:v(()=>[f.value.length===0?(d(),E(I,{key:0,description:"暂无搜索结果"})):(d(),E(ao,{key:1,ref_key:"resultRef",ref:h,value:g.value,"onUpdate:value":S[1]||(S[1]=R=>g.value=R),options:f.value,onClick:$},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}});const xo=fe(ko,[["__scopeId","data-v-b133b6c9"]]);function Co(t=!1){const e=H(t);function o(p){e.value=p}function a(){o(!0)}function c(){o(!1)}function i(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:c,toggle:i}}const Mt=ae({__name:"index",setup(t){const{bool:e,toggle:o}=Co();function a(){o()}return(c,i)=>{const p=k("IconifyIconOffline");return d(),z(ye,null,[m("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[r(p,{icon:n(An)},null,8,["icon"])]),r(n(xo),{value:n(e),"onUpdate:value":i[0]||(i[0]=h=>Pt(e)?e.value=h:null)},null,8,["value"])],64)}}}),Ot=[{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"}]}],$o={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},So={class:"notice-container-text"},Io={class:"notice-text-title text-[#000000d9] dark:text-white"},Mo={class:"notice-text-datetime text-[#00000073] dark:text-white"},To=ae({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=H(null),a=H(!1),c=H(null),i=H(!1),{tooltipEffect:p}=Me(),h=Rt();function g(){je(()=>{var f,_;((f=o.value)==null?void 0:f.scrollWidth)>((_=o.value)==null?void 0:_.clientWidth)?a.value=!0:a.value=!1})}function x(f,_){const M=document.createElement("span");M.innerText=_,M.className="getDescriptionWidth",document.querySelector("body").appendChild(M);const w=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const y=f.target.offsetWidth;w>2*y?i.value=!0:i.value=!1}return(f,_)=>{var L,T;const M=k("el-avatar"),w=k("el-tooltip"),y=k("el-tag");return d(),z("div",$o,[e.noticeItem.avatar?(d(),E(M,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):J("",!0),m("div",So,[m("div",Io,[r(w,{"popper-class":"notice-title-popper",effect:n(p),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!n(h)},{default:v(()=>[m("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:g},Q(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(d(),E(y,{key:0,type:(T=e.noticeItem)==null?void 0:T.status,size:"small",class:"notice-title-extra"},{default:v(()=>{var V;return[ne(Q((V=e.noticeItem)==null?void 0:V.extra),1)]}),_:1},8,["type"])):J("",!0)]),r(w,{"popper-class":"notice-title-popper",effect:n(p),disabled:!i.value,content:e.noticeItem.description,placement:"top-start"},{default:v(()=>[m("div",{ref_key:"descriptionRef",ref:c,class:"notice-text-description",onMouseover:_[0]||(_[0]=V=>x(V,e.noticeItem.description))},Q(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),m("div",Mo,Q(e.noticeItem.datetime),1)])])}}});const Vo=fe(To,[["__scopeId","data-v-2a7dbc48"]]),zo={key:0},Lo=ae({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,a)=>{const c=k("el-empty");return e.list.length?(d(),z("div",zo,[(d(!0),z(ye,null,xe(e.list,(i,p)=>(d(),E(Vo,{noticeItem:i,key:p},null,8,["noticeItem"]))),128))])):(d(),E(c,{key:1,description:"暂无数据"}))}}}),Ao={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"/>'},Ho={class:"dropdown-badge navbar-bg-hover select-none"},Eo={class:"header-notice-icon"},Oo={key:1},Zo={class:"noticeList-container"},Do=ae({__name:"index",setup(t){const e=H(0),o=H(Ot),a=H(Ot[0].key);return o.value.map(c=>e.value+=c.list.length),(c,i)=>{const p=k("IconifyIconOffline"),h=k("el-badge"),g=k("el-empty"),x=k("el-scrollbar"),f=k("el-tab-pane"),_=k("el-tabs"),M=k("el-dropdown-menu"),w=k("el-dropdown");return d(),E(w,{trigger:"click",placement:"bottom-end"},{dropdown:v(()=>[r(M,null,{default:v(()=>[r(_,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=y=>a.value=y),class:"dropdown-tabs",style:te({width:o.value.length===0?"200px":"330px"})},{default:v(()=>[o.value.length===0?(d(),E(g,{key:0,description:"暂无消息","image-size":60})):(d(),z("span",Oo,[(d(!0),z(ye,null,xe(o.value,y=>(d(),E(f,{key:y.key,label:`${y.name}(${y.list.length})`,name:`${y.key}`},{default:v(()=>[r(x,{"max-height":"330px"},{default:v(()=>[m("div",Zo,[r(Lo,{list:y.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:v(()=>[m("span",Ho,[r(h,{value:e.value,max:99},{default:v(()=>[m("span",Eo,[r(p,{icon:n(Ao)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const Tt=fe(Do,[["__scopeId","data-v-f8beaa07"]]),Po={key:0,class:"flex justify-center items-center"},vt=ae({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(o,a)=>e.extraIcon?(d(),z("div",Po,[(d(),E(He(n(Ae)(ke(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):J("",!0)}}),ct={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"/>'},Ro={key:0,class:"horizontal-header"},jo={class:"select-none"},qo={class:"horizontal-header-right"},Bo={class:"check-zh"},No={class:"check-en"},Fo={class:"el-dropdown-link navbar-bg-hover select-none"},Uo=["src"],Wo={key:0,class:"dark:text-white"},Go=["title"],Ko=ae({__name:"mixNav",setup(t){const e=H(),o=H(null),{t:a,route:c,locale:i,translationCh:p,translationEn:h}=$t(e),{device:g,logout:x,onPanel:f,resolvePath:_,username:M,userAvatar:w,getDivStyle:y,avatarsStyle:L,getDropdownItemStyle:T,getDropdownItemClass:V}=Me();function F(B){var S,D,N;const $=ge().wholeMenus,b=yt(B,$)[0];o.value=Ge((S=c.meta)==null?void 0:S.activePath)?(N=(D=ot(b,$))==null?void 0:D.children[0])==null?void 0:N.path:c.meta.activePath}return qe(()=>{F(c.path)}),je(()=>{var B;(B=e.value)==null||B.handleResize()}),Fe(()=>[c.path,ge().wholeMenus],()=>{F(c.path)}),(B,$)=>{const b=k("el-menu-item"),S=k("el-menu"),D=k("IconifyIconOffline"),N=k("el-dropdown-item"),I=k("el-dropdown-menu"),G=k("el-dropdown"),pe=gt("loading");return n(g)!=="mobile"?ve((d(),z("div",Ro,[r(S,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value},{default:v(()=>[(d(!0),z(ye,null,xe(n(ge)().wholeMenus,R=>(d(),E(b,{key:R.path,index:n(_)(R)||R.redirect},{title:v(()=>[ke(R.meta.icon)?(d(),z("div",{key:0,class:le(["sub-menu-icon",R.meta.icon])},[(d(),E(He(n(Ae)(R.meta&&ke(R.meta.icon)))))],2)):J("",!0),m("div",{style:te(n(y))},[m("span",jo,Q(n(we)(R.meta.title)),1),r(vt,{extraIcon:R.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),m("div",qo,[r(Mt),r(Tt,{id:"header-notice"}),r(G,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[r(I,{class:"translation"},{default:v(()=>[r(N,{style:te(n(T)(n(i),"zh")),class:le(["dark:!text-white",n(V)(n(i),"zh")]),onClick:n(p)},{default:v(()=>[ve(m("span",Bo,[r(D,{icon:n(Ue)},null,8,["icon"])],512),[[Ce,n(i)==="zh"]]),ne(" 简体中文 ")]),_:1},8,["style","class","onClick"]),r(N,{style:te(n(T)(n(i),"en")),class:le(["dark:!text-white",n(V)(n(i),"en")]),onClick:n(h)},{default:v(()=>[ve(m("span",No,[r(D,{icon:n(Ue)},null,8,["icon"])],512),[[Ce,n(i)==="en"]]),ne(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[r(n(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),r(G,{trigger:"click"},{dropdown:v(()=>[r(I,{class:"logout"},{default:v(()=>[r(N,{onClick:n(x)},{default:v(()=>[r(D,{icon:n(ct),style:{margin:"5px"}},null,8,["icon"]),ne(" "+Q(n(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",Fo,[m("img",{src:n(w),style:te(n(L))},null,12,Uo),n(M)?(d(),z("p",Wo,Q(n(M)),1)):J("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:n(a)("buttons.hssystemSet"),onClick:$[0]||($[0]=(...R)=>n(f)&&n(f)(...R))},[r(D,{icon:n(it)},null,8,["icon"])],8,Go)])])),[[pe,n(ge)().wholeMenus.length===0]]):J("",!0)}}});const Xo=fe(Ko,[["__scopeId","data-v-756f1729"]]),Jo=["onClick"],Yo=ae({__name:"breadCrumb",setup(t){const e=bt(),o=H([]),a=lt(),c=a.options.routes,i=Ve().multiTags,p=()=>{let g;Object.keys(e.query).length>0?i.forEach(_=>{Ne(e.query,_==null?void 0:_.query)&&(g=ke(_))}):Object.keys(e.params).length>0?i.forEach(_=>{Ne(e.params,_==null?void 0:_.params)&&(g=ke(_))}):g=ot(a.currentRoute.value.path,c);const x=yt(a.currentRoute.value.name,c,"name"),f=[];x.forEach(_=>{_!=="/"&&f.push(ot(_,c))}),f.push(g),f.forEach((_,M)=>{g!=null&&g.query||g!=null&&g.params||_!=null&&_.children&&_.children.forEach(w=>{var y,L;((y=w==null?void 0:w.meta)==null?void 0:y.title)===((L=_==null?void 0:_.meta)==null?void 0:L.title)&&f.splice(M,1)})}),o.value=f.filter(_=>(_==null?void 0:_.meta)&&(_==null?void 0:_.meta.title)!==!1)},h=g=>{const{redirect:x,path:f}=g;x?a.push(x):a.push(f)};return qe(()=>{p()}),Fe(()=>e.path,()=>{p()},{deep:!0}),(g,x)=>{const f=k("el-breadcrumb-item"),_=k("el-breadcrumb");return d(),E(_,{class:"!leading-[50px] select-none",separator:"/"},{default:v(()=>[r(dn,{name:"breadcrumb"},{default:v(()=>[(d(!0),z(ye,null,xe(o.value,M=>(d(),E(f,{class:"!inline !items-stretch",key:M.path},{default:v(()=>[m("a",{onClick:Ke(w=>h(M),["prevent"])},Q(n(we)(M.meta.title)),9,Jo)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Wt={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"/>'},Qo={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"/>'},ea=["title"],ta=ae({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=()=>{e("toggleClick")};return(c,i)=>{const p=k("IconifyIconOffline");return d(),z("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[r(p,{icon:o.isActive?n(Wt):n(Qo),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,ea)}}}),na={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},oa={key:3,class:"vertical-header-right"},aa={class:"check-en"},la={class:"el-dropdown-link navbar-bg-hover select-none"},sa=["src"],ra={key:0,class:"dark:text-white"},ia=["title"],ca=ae({__name:"navbar",setup(t){const{layout:e,device:o,logout:a,onPanel:c,pureApp:i,username:p,userAvatar:h,avatarsStyle:g,toggleSideBar:x,getDropdownItemStyle:f,getDropdownItemClass:_}=Me(),{t:M,locale:w,translationCh:y,translationEn:L}=$t();return(T,V)=>{const F=k("IconifyIconOffline"),B=k("el-dropdown-item"),$=k("el-dropdown-menu"),b=k("el-dropdown");return d(),z("div",na,[n(o)==="mobile"?(d(),E(ta,{key:0,class:"hamburger-container","is-active":n(i).sidebar.opened,onToggleClick:n(x)},null,8,["is-active","onToggleClick"])):J("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(d(),E(Yo,{key:1,class:"breadcrumb-container"})):J("",!0),n(e)==="mix"?(d(),E(Xo,{key:2})):J("",!0),n(e)==="vertical"?(d(),z("div",oa,[r(Mt),r(Tt,{id:"header-notice"}),r(b,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[r($,{class:"translation"},{default:v(()=>[r(B,{style:te(n(f)(n(w),"zh")),class:le(["dark:!text-white",n(_)(n(w),"zh")]),onClick:n(y)},{default:v(()=>[ve(r(F,{class:"check-zh",icon:n(Ue)},null,8,["icon"]),[[Ce,n(w)==="zh"]]),ne(" 简体中文 ")]),_:1},8,["style","class","onClick"]),r(B,{style:te(n(f)(n(w),"en")),class:le(["dark:!text-white",n(_)(n(w),"en")]),onClick:n(L)},{default:v(()=>[ve(m("span",aa,[r(F,{icon:n(Ue)},null,8,["icon"])],512),[[Ce,n(w)==="en"]]),ne(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[r(n(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),r(b,{trigger:"click"},{dropdown:v(()=>[r($,{class:"logout"},{default:v(()=>[r(B,{onClick:n(a)},{default:v(()=>[r(F,{icon:n(ct),style:{margin:"5px"}},null,8,["icon"]),ne(" "+Q(n(M)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",la,[m("img",{src:n(h),style:te(n(g))},null,12,sa),n(p)?(d(),z("p",ra,Q(n(p)),1)):J("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:n(M)("buttons.hssystemSet"),onClick:V[0]||(V[0]=(...S)=>n(c)&&n(c)(...S))},[r(F,{icon:n(it)},null,8,["icon"])],8,ia)])):J("",!0)])}}});const ua=fe(ca,[["__scopeId","data-v-fc735608"]]),da={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ha={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"/>'},pa={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"/>'},fa={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"/>'},Gt={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 va(){var N;const t=bt(),e=lt(),o=Dt(),a=It(),c=H(0),i=H(0),p=H(0),h=H(!1),g=H(-1),x=H({}),f=H(((N=We().getItem(`${Xe()}configure`))==null?void 0:N.showModel)||"smart"),_=H(We().getItem(`${Xe()}configure`).hideTabs)??H("false"),M=q(()=>Ve().multiTags),w=wt([{icon:Hn,text:me("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Gt,text:me("buttons.hscloseCurrentTab"),divided:!1,disabled:!(M.value.length>1),show:!0},{icon:fa,text:me("buttons.hscloseLeftTabs"),divided:!0,disabled:!(M.value.length>1),show:!0},{icon:pa,text:me("buttons.hscloseRightTabs"),divided:!1,disabled:!(M.value.length>1),show:!0},{icon:ha,text:me("buttons.hscloseOtherTabs"),divided:!0,disabled:!(M.value.length>2),show:!0},{icon:da,text:me("buttons.hscloseAllTabs"),divided:!1,disabled:!(M.value.length>1),show:!0},{icon:Qe,text:me("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Qe,text:me("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function y(I,G,pe){var R,se;return pn((R=t==null?void 0:t.meta)==null?void 0:R.showLink)&&((se=t==null?void 0:t.meta)==null?void 0:se.showLink)===!1?Object.keys(t.query).length>0?Ne(t.query,I.query)?G:pe:Ne(t.params,I.params)?G:pe:t.path===I.path?G:pe}const L=q(()=>(I,G)=>{if(G!==0)return y(I,!0,!1)}),T=q(()=>I=>y(I,"is-active","")),V=q(()=>I=>y(I,"schedule-active","")),F=q(()=>({transform:`translateX(${p.value}px)`})),B=q(()=>({left:i.value+"px",top:c.value+"px"})),$=()=>{h.value=!1};function b(I){if(I&&(g.value=I),n(f)==="smart"){if(nt(o.refs["schedule"+I][0],"schedule-active"))return;Pe(!0,"schedule-in",o.refs["schedule"+I][0]),Pe(!1,"schedule-out",o.refs["schedule"+I][0])}else{if(nt(o.refs["dynamic"+I][0],"card-active"))return;Pe(!0,"card-in",o.refs["dynamic"+I][0]),Pe(!1,"card-out",o.refs["dynamic"+I][0])}}function S(I){if(g.value=-1,n(f)==="smart"){if(nt(o.refs["schedule"+I][0],"schedule-active"))return;Pe(!1,"schedule-in",o.refs["schedule"+I][0]),Pe(!0,"schedule-out",o.refs["schedule"+I][0])}else{if(nt(o.refs["dynamic"+I][0],"card-active"))return;Pe(!1,"card-in",o.refs["dynamic"+I][0]),Pe(!0,"card-out",o.refs["dynamic"+I][0])}}function D(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return qe(()=>{if(!f.value){const I=We().getItem(`${Xe()}configure`);I.showModel="card",We().setItem(`${Xe()}configure`,I)}}),Fe(()=>h.value,()=>{hn(document,"click",$)}),{route:t,router:e,visible:h,showTags:_,instance:o,multiTags:M,showModel:f,tagsViews:w,buttonTop:c,buttonLeft:i,translateX:p,pureSetting:a,activeIndex:g,getTabStyle:F,iconIsActive:L,linkIsActive:T,currentSelect:x,scheduleIsActive:V,getContextMenuStyle:B,$t:me,closeMenu:$,onMounted:qe,onMouseenter:b,onMouseleave:S,transformI18n:we,onContentFullScreen:D}}const ma={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"/>'},_a={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"/>'},ga={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"/>'},ya={class:"arrow-left"},ba=["onContextmenu","onMouseenter","onMouseleave","onClick"],wa=["onClick"],ka={class:"arrow-right"},xa=["onClick"],Ca={class:"arrow-down"},$a=ae({__name:"index",setup(t){var At;const{route:e,router:o,visible:a,showTags:c,instance:i,multiTags:p,tagsViews:h,buttonTop:g,buttonLeft:x,showModel:f,translateX:_,pureSetting:M,activeIndex:w,getTabStyle:y,iconIsActive:L,linkIsActive:T,currentSelect:V,scheduleIsActive:F,getContextMenuStyle:B,closeMenu:$,onMounted:b,onMouseenter:S,onMouseleave:D,transformI18n:N,onContentFullScreen:I}=va(),G=H(),pe=H(),R=H(),se=H(!1),Te=(At=at())==null?void 0:At.path,{VITE_HIDE_HOME:Ee}={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},{isFullscreen:Oe,toggle:s}=fn(),l=async()=>{await je();const C=p.value.findIndex(A=>Ge(e.query)?Ge(e.params)?e.path===A.path:Ne(e.params,A.params):Ne(e.query,A.query));u(C)},u=async C=>{var Y,ue;await je();const A=10;if(!i.refs["dynamic"+C])return;const Z=i.refs["dynamic"+C][0],K=Z==null?void 0:Z.offsetLeft,ce=Z==null?void 0:Z.offsetWidth,P=R.value?(Y=R.value)==null?void 0:Y.offsetWidth:0,re=G.value?(ue=G.value)==null?void 0:ue.offsetWidth:0;P<=re?se.value=!0:se.value=!1,re<P||K===0?_.value=0:K<-_.value?_.value=-K+A:K>-_.value&&K+ce<-_.value+P?_.value=Math.min(0,P-ce-K-A):_.value=-(K-(P-A-ce))},O=C=>{var K;const A=R.value?(K=R.value)==null?void 0:K.offsetWidth:0,Z=G.value?G.value.offsetWidth:0;C>0?_.value=Math.min(0,_.value+C):A<Z?_.value>=-(Z-A)&&(_.value=Math.max(_.value+C,A-Z)):_.value=0};function U(C){const A=p.value.some(K=>K.path===C);function Z(K,ce){A||K.forEach(P=>{P.path===ce||P.path===ce?Ve().handleTags("push",{path:ce,meta:P.meta,name:P.name}):P.children&&P.children.length>0&&Z(P.children,ce)})}Z(o.options.routes,C)}function j(){const{fullPath:C,query:A}=n(e);o.replace({path:"/redirect"+C,query:A}),ft(e,"refresh")}function W(C,A,Z){var re,Y,ue,Le;const K=p.value.findIndex(Se=>{if(Se.query){if(Se.path===C.path)return Se.query===C.query}else if(Se.params){if(Se.path===C.path)return Se.params===C.params}else return Se.path===C.path}),ce=(Se,nn,on)=>{on?Ve().handleTags("equal",[Ee==="false"?jt[0]:ke(at()),C]):Ve().handleTags("splice","",{startIndex:Se,length:nn}),l()};Z==="other"?ce(1,1,!0):Z==="left"?ce(1,K-1):Z==="right"?ce(K+1,p.value.length):ce(K,1);const P=Ve().handleTags("slice");if(A===e.path){if(Z==="left")return;(re=P[0])!=null&&re.query?o.push({name:P[0].name,query:P[0].query}):(Y=P[0])!=null&&Y.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}else{if(!p.value.length||p.value.some(Se=>Se.path===e.path))return;(ue=P[0])!=null&&ue.query?o.push({name:P[0].name,query:P[0].query}):(Le=P[0])!=null&&Le.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}}function X(C,A){W(C,C.path,A),ft(e)}function oe(C,A,Z){if(A&&A.disabled)return;let K;switch(Z?K={path:Z.path,meta:Z.meta,name:Z.name,query:Z==null?void 0:Z.query,params:Z==null?void 0:Z.params}:K={path:e.path,meta:e.meta},C){case 0:j();break;case 1:X(K);break;case 2:X(K,"left");break;case 3:X(K,"right");break;case 4:X(K,"other");break;case 5:Ve().handleTags("splice","",{startIndex:1,length:p.value.length}),o.push(Te),ft(e);break;case 6:s(),setTimeout(()=>{Oe.value?(h[6].icon=Ht,h[6].text=me("buttons.hswholeExitFullScreen")):(h[6].icon=Qe,h[6].text=me("buttons.hswholeFullScreen"))},100);break;case 7:I(),setTimeout(()=>{M.hiddenSideBar?(h[7].icon=Ht,h[7].text=me("buttons.hscontentExitFullScreen")):(h[7].icon=Qe,h[7].text=me("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{De(e.fullPath,e.query)})}function be(C){const{key:A,item:Z}=C;oe(A,Z)}function Ze(C,A){oe(C,A,V.value)}function ee(C){Array.of(1,2,3,4,5).forEach(A=>{h[A].show=C})}function ze(C){Array.of(1,2,3,4,5).forEach(A=>{h[A].disabled=C})}function De(C,A={},Z=!1){const K=p.value,ce=p.value.length;let P=-1;Ge(A)?P=K.findIndex(re=>re.path===C):P=K.findIndex(re=>Ne(re.query,A)),ee(!0),Z&&(h[0].show=!0),P===1&&ce!==2?(h[2].show=!1,Array.of(1,3,4,5).forEach(re=>{h[re].disabled=!1}),h[2].disabled=!0):P===1&&ce===2?(ze(!1),Array.of(2,3,4).forEach(re=>{h[re].show=!1,h[re].disabled=!0})):ce-1===P&&P!==0?(h[3].show=!1,Array.of(1,2,4,5).forEach(re=>{h[re].disabled=!1}),h[3].disabled=!0):P===0||C===`/redirect${Te}`?ze(!0):ze(!1)}function en(C,A){$(),C.path===Te?(ee(!1),h[0].show=!0):e.path!==C.path&&e.name!==C.name?(h[0].show=!1,De(C.path,C.query)):p.value.length===2&&e.path!==C.path?(ee(!0),h[4].show=!1):e.path===C.path&&De(C.path,C.query,!0),V.value=C;const Z=105,K=n(pe).getBoundingClientRect().left,P=n(pe).offsetWidth-Z,re=A.clientX-K+5;re>P?x.value=P:x.value=re,It().hiddenSideBar?g.value=A.clientY:g.value=A.clientY-40,je(()=>{a.value=!0})}function tn(C){const{name:A,path:Z}=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:Z})}return Fe(e,()=>{w.value=-1,l()}),Fe(Oe,()=>{h[6].icon=Qe,h[6].text=me("buttons.hswholeFullScreen")}),b(()=>{i&&(De(e.fullPath),_e.on("tagViewsChange",C=>{n(c)!==C&&(c.value=C)}),_e.on("tagViewsShowModel",C=>{f.value=C}),_e.on("changLayoutRoute",C=>{U(C),setTimeout(()=>{De(C)})}),_t(R,Be(()=>l())))}),kt(()=>{_e.off("tagViewsChange"),_e.off("tagViewsShowModel"),_e.off("changLayoutRoute")}),(C,A)=>{const Z=k("IconifyIconOffline"),K=k("router-link"),ce=k("el-dropdown-item"),P=k("el-dropdown-menu"),re=k("el-dropdown");return n(c)?J("",!0):(d(),z("div",{key:0,ref_key:"containerDom",ref:pe,class:"tags-view"},[ve(m("span",ya,[r(Z,{icon:n(_a),onClick:A[0]||(A[0]=Y=>O(200))},null,8,["icon"])],512),[[Ce,se.value]]),m("div",{ref_key:"scrollbarDom",ref:R,class:"scroll-container"},[m("div",{class:"tab select-none",ref_key:"tabDom",ref:G,style:te(n(y))},[(d(!0),z(ye,null,xe(n(p),(Y,ue)=>(d(),z("div",{ref_for:!0,ref:"dynamic"+ue,key:ue,class:le(["scroll-item is-closable",n(T)(Y),n(e).path===Y.path&&n(f)==="card"?"card-active":""]),onContextmenu:Ke(Le=>en(Y,Le),["prevent"]),onMouseenter:Ke(Le=>n(S)(ue),["prevent"]),onMouseleave:Ke(Le=>n(D)(ue),["prevent"]),onClick:Le=>tn(Y)},[r(K,{to:Y.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:v(()=>[ne(Q(n(N)(Y.meta.title)),1)]),_:2},1032,["to"]),n(L)(Y,ue)||ue===n(w)&&ue!==0?(d(),z("span",{key:0,class:"el-icon-close",onClick:Ke(Le=>X(Y),["stop"])},[r(Z,{icon:n(ga)},null,8,["icon"])],8,wa)):J("",!0),n(f)!=="card"?(d(),z("div",{key:1,ref_for:!0,ref:"schedule"+ue,class:le([n(F)(Y)])},null,2)):J("",!0)],42,ba))),128))],4)],512),ve(m("span",ka,[r(Z,{icon:n(En),onClick:A[1]||(A[1]=Y=>O(-200))},null,8,["icon"])],512),[[Ce,se.value]]),r(xt,{name:"el-zoom-in-top"},{default:v(()=>[ve((d(),z("ul",{key:Math.random(),style:te(n(B)),class:"contextmenu"},[(d(!0),z(ye,null,xe(n(h).slice(0,6),(Y,ue)=>(d(),z("div",{key:ue,style:{display:"flex","align-items":"center"}},[Y.show?(d(),z("li",{key:0,onClick:Le=>Ze(ue,Y)},[r(Z,{icon:Y.icon},null,8,["icon"]),ne(" "+Q(n(N)(Y.text)),1)],8,xa)):J("",!0)]))),128))],4)),[[Ce,n(a)]])]),_:1}),r(re,{trigger:"click",placement:"bottom-end",onCommand:be},{dropdown:v(()=>[r(P,null,{default:v(()=>[(d(!0),z(ye,null,xe(n(h),(Y,ue)=>(d(),E(ce,{key:ue,command:{key:ue,item:Y},divided:Y.divided,disabled:Y.disabled},{default:v(()=>[r(Z,{icon:Y.icon},null,8,["icon"]),ne(" "+Q(n(N)(Y.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:v(()=>[m("span",Ca,[r(Z,{icon:n(ma),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const Sa=fe($a,[["__scopeId","data-v-f981b547"]]),Ia={key:1},Ma=ae({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=Ct(),c=q(()=>a==null?void 0:a.KeepAlive),i=q(()=>f=>f.meta.transition),p=q(()=>o==null?void 0:o.configure.hideTabs),h=q(()=>(o==null?void 0:o.layout.layout)==="vertical"),g=q(()=>[p.value&&h?"padding-top: 48px;":"",!p.value&&h?"padding-top: 85px;":"",p.value&&!h.value?"padding-top: 48px":"",!p.value&&!h.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),x=ae({render(){return Je(xt,{name:i.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":i.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:i.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:i.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(f,_)=>{const M=k("el-backtop"),w=k("el-scrollbar"),y=k("router-view");return d(),z("section",{class:le([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:te(g.value)},[r(y,null,{default:v(({Component:L,route:T})=>[e.fixedHeader?(d(),E(w,{key:0},{default:v(()=>[r(M,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:v(()=>[r(n(Ft))]),_:1}),r(n(x),{route:T},{default:v(()=>[c.value?(d(),E(Et,{key:0,include:n(ge)().cachePageList},[(d(),E(He(L),{key:T.fullPath,class:"main-content"}))],1032,["include"])):(d(),E(He(L),{key:T.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(d(),z("div",Ia,[r(n(x),{route:T},{default:v(()=>[c.value?(d(),E(Et,{key:0,include:n(ge)().cachePageList},[(d(),E(He(L),{key:T.fullPath,class:"main-content"}))],1032,["include"])):(d(),E(He(L),{key:T.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Zt=fe(Ma,[["__scopeId","data-v-ac212d1d"]]),Vt=t=>(st("data-v-1b3eb871"),t=t(),rt(),t),Ta=Vt(()=>m("div",{class:"right-panel-background"},null,-1)),Va={class:"right-panel-items"},za={class:"project-configuration"},La=Vt(()=>m("h4",{class:"dark:text-white"},"项目配置",-1)),Aa=Vt(()=>m("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),Ha=ae({__name:"index",setup(t){const e=H(null),o=H(!1),a=q(()=>["mr-[20px]","outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]);return vn(e,c=>{c.clientX>e.value.offsetLeft||(o.value=!1)}),qe(()=>{_e.on("openPanel",()=>{o.value=!0})}),kt(()=>{_e.off("openPanel")}),(c,i)=>{const p=k("IconifyIconOffline");return d(),z("div",{class:le([{show:o.value},"right-panel-container"])},[Ta,m("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[m("div",Va,[m("div",za,[La,m("span",{title:"关闭配置",class:le(a.value)},[r(p,{class:"dark:text-white",width:"20px",height:"20px",icon:n(Gt),onClick:i[0]||(i[0]=h=>o.value=!o.value)},null,8,["icon"])],2)]),Aa,mn(c.$slots,"default",{},void 0,!0)])],512)],2)}}});const Ea=fe(Ha,[["__scopeId","data-v-1b3eb871"]]),$e=t=>(st("data-v-1ae80617"),t=t(),rt(),t),Oa={class:"pure-theme"},Za=$e(()=>m("div",null,null,-1)),Da=$e(()=>m("div",null,null,-1)),Pa=[Za,Da],Ra=$e(()=>m("div",null,null,-1)),ja=$e(()=>m("div",null,null,-1)),qa=[Ra,ja],Ba=$e(()=>m("div",null,null,-1)),Na=$e(()=>m("div",null,null,-1)),Fa=[Ba,Na],Ua={class:"theme-color"},Wa=["onClick"],Ga={class:"setting"},Ka=$e(()=>m("span",{class:"dark:text-white"},"灰色模式",-1)),Xa=$e(()=>m("span",{class:"dark:text-white"},"色弱模式",-1)),Ja=$e(()=>m("span",{class:"dark:text-white"},"隐藏标签页",-1)),Ya=$e(()=>m("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Qa=$e(()=>m("span",{class:"dark:text-white"},"标签页持久化",-1)),el=$e(()=>m("span",{class:"dark:text-white"},"标签风格",-1)),tl=ae({__name:"index",setup(t){var Oe,s;const e=lt(),{isDark:o}=qt(),{device:a,tooltipEffect:c}=Me(),{$storage:i}=Ct(),p=H(),h=H(),g=H(),{dataTheme:x,layoutTheme:f,themeColors:_,dataThemeChange:M,setEpThemeColor:w,setLayoutThemeColor:y}=Nt();if(n(f)){const l=n(f).layout,u=n(f).theme;Mn({scopeName:`layout-theme-${u}`}),Ee(l)}const L=H(((Oe=i.configure)==null?void 0:Oe.showModel)??"smart"),T=H(((s=i.configure)==null?void 0:s.showLogo)??!0),V=wt({greyVal:i.configure.grey,weakVal:i.configure.weak,tabsVal:i.configure.hideTabs,showLogo:i.configure.showLogo,showModel:i.configure.showModel,multiTagsCache:i.configure.multiTagsCache}),F=q(()=>l=>({background:l})),B=q(()=>l=>!(l==="light"&&o.value));function $(l,u){const O=i.configure;O[l]=u,i.configure=O}function b(l,u,O){const U=O||document.body;let{className:j}=U;j=j.replace(u,"").trim(),U.className=l?`${j} ${u} `:j}const S=l=>{b(V.greyVal,"html-grey",document.querySelector("html")),$("grey",l)},D=l=>{b(V.weakVal,"html-weakness",document.querySelector("html")),$("weak",l)},N=()=>{const l=V.tabsVal;$("hideTabs",l),_e.emit("tagViewsChange",l)},I=()=>{const l=V.multiTagsCache;$("multiTagsCache",l),Ve().multiTagsCacheChange(l)};function G(){_n(),We().clear(),gn().clear();const{Grey:l,Weak:u,MultiTagsCache:O,EpThemeColor:U,Layout:j}=Ye();Re().setLayout(j),w(U),Ve().multiTagsCacheChange(O),b(l,"html-grey",document.querySelector("html")),b(u,"html-weakness",document.querySelector("html")),e.push("/login"),Ve().handleTags("equal",[...jt]),yn()}function pe(l){$("showModel",l),_e.emit("tagViewsShowModel",l)}function R(){n(T)?$("showLogo",!0):$("showLogo",!1),_e.emit("logoChange",n(T))}function se(l){l.forEach(u=>{b(!1,"is-select",n(u))})}const Te=q(()=>l=>l===f.value.theme&&f.value.theme!=="light"?"#fff":l===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent");function Ee(l){var u,O,U;f.value.layout=l,window.document.body.setAttribute("layout",l),i.layout={layout:l,theme:f.value.theme,darkMode:(u=i.layout)==null?void 0:u.darkMode,sidebarStatus:(O=i.layout)==null?void 0:O.sidebarStatus,epThemeColor:(U=i.layout)==null?void 0:U.epThemeColor},Re().setLayout(l)}return Fe(i,({layout:l})=>{switch(l.layout){case"vertical":b(!0,"is-select",n(h)),Be(se([g]),50),Be(se([p]),50);break;case"horizontal":b(!0,"is-select",n(g)),Be(se([h]),50),Be(se([p]),50);break;case"mix":b(!0,"is-select",n(p)),Be(se([h]),50),Be(se([g]),50);break}}),Bt(()=>{je(()=>{var l,u;V.greyVal&&((l=document.querySelector("html"))==null||l.setAttribute("class","html-grey")),V.weakVal&&((u=document.querySelector("html"))==null||u.setAttribute("class","html-weakness")),V.tabsVal&&N()})}),(l,u)=>{const O=k("el-divider"),U=k("el-switch"),j=k("el-tooltip"),W=k("IconifyIconOffline"),X=k("el-icon"),oe=k("el-radio"),be=k("el-radio-group"),Ze=k("el-button");return d(),E(Ea,null,{default:v(()=>[r(O,null,{default:v(()=>[ne("主题")]),_:1}),r(U,{modelValue:n(x),"onUpdate:modelValue":u[0]||(u[0]=ee=>Pt(x)?x.value=ee:null),"inline-prompt":"",class:"pure-datatheme","active-icon":n(Tn),"inactive-icon":n(Vn),onChange:n(M)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),r(O,null,{default:v(()=>[ne("导航栏模式")]),_:1}),m("ul",Oa,[r(j,{effect:n(c),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:le(n(f).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:h,onClick:u[1]||(u[1]=ee=>Ee("vertical"))},Pa,2)]),_:1},8,["effect"]),n(a)!=="mobile"?(d(),E(j,{key:0,effect:n(c),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:le(n(f).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:g,onClick:u[2]||(u[2]=ee=>Ee("horizontal"))},qa,2)]),_:1},8,["effect"])):J("",!0),n(a)!=="mobile"?(d(),E(j,{key:1,effect:n(c),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:le(n(f).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:p,onClick:u[3]||(u[3]=ee=>Ee("mix"))},Fa,2)]),_:1},8,["effect"])):J("",!0)]),r(O,null,{default:v(()=>[ne("主题色")]),_:1}),m("ul",Ua,[(d(!0),z(ye,null,xe(n(_),(ee,ze)=>ve((d(),z("li",{key:ze,style:te(F.value(ee.color)),onClick:De=>n(y)(ee.themeColor)},[r(X,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Te.value(ee.themeColor)},{default:v(()=>[r(W,{icon:n(Ue)},null,8,["icon"])]),_:2},1032,["color"])],12,Wa)),[[Ce,B.value(ee.themeColor)]])),128))]),r(O,null,{default:v(()=>[ne("界面显示")]),_:1}),m("ul",Ga,[m("li",null,[Ka,r(U,{modelValue:V.greyVal,"onUpdate:modelValue":u[4]||(u[4]=ee=>V.greyVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:S},null,8,["modelValue"])]),m("li",null,[Xa,r(U,{modelValue:V.weakVal,"onUpdate:modelValue":u[5]||(u[5]=ee=>V.weakVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:D},null,8,["modelValue"])]),m("li",null,[Ja,r(U,{modelValue:V.tabsVal,"onUpdate:modelValue":u[6]||(u[6]=ee=>V.tabsVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:N},null,8,["modelValue"])]),m("li",null,[Ya,r(U,{modelValue:T.value,"onUpdate:modelValue":u[7]||(u[7]=ee=>T.value=ee),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:R},null,8,["modelValue"])]),m("li",null,[Qa,r(U,{modelValue:V.multiTagsCache,"onUpdate:modelValue":u[8]||(u[8]=ee=>V.multiTagsCache=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:I},null,8,["modelValue"])]),m("li",null,[el,r(be,{modelValue:L.value,"onUpdate:modelValue":u[9]||(u[9]=ee=>L.value=ee),size:"small",onChange:pe},{default:v(()=>[r(oe,{label:"card"},{default:v(()=>[ne("卡片")]),_:1}),r(oe,{label:"smart"},{default:v(()=>[ne("灵动")]),_:1})]),_:1},8,["modelValue"])])]),r(O),r(Ze,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:G},{default:v(()=>[r(W,{icon:n(ct),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),ne(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const nl=fe(tl,[["__scopeId","data-v-1ae80617"]]),zt="/vue-pure-admin/logo.svg",Kt=t=>(st("data-v-79ec1141"),t=t(),rt(),t),ol=Kt(()=>m("img",{src:zt,alt:"logo"},null,-1)),al={class:"sidebar-title"},ll=Kt(()=>m("img",{src:zt,alt:"logo"},null,-1)),sl={class:"sidebar-title"},rl=ae({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o}=Me();return(a,c)=>{const i=k("router-link");return d(),z("div",{class:le(["sidebar-logo-container",{collapses:e.collapse}])},[r(xt,{name:"sidebarLogoFade"},{default:v(()=>{var p,h;return[e.collapse?(d(),E(i,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:((p=n(at)())==null?void 0:p.path)??"/"},{default:v(()=>[ol,m("span",al,Q(n(o)),1)]),_:1},8,["title","to"])):(d(),E(i,{key:"expand",title:n(o),class:"sidebar-logo-link",to:((h=n(at)())==null?void 0:h.path)??"/"},{default:v(()=>[ll,m("span",sl,Q(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}});const il=fe(rl,[["__scopeId","data-v-79ec1141"]]);var tt={exports:{}},Xt={},cl=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},mt={exports:{}};typeof Object.create=="function"?mt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:mt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var ul=mt.exports;(function(t){var e=/%[sdj%]/g;t.format=function(s){if(!B(s)){for(var l=[],u=0;u<arguments.length;u++)l.push(c(arguments[u]));return l.join(" ")}for(var u=1,O=arguments,U=O.length,j=String(s).replace(e,function(X){if(X==="%%")return"%";if(u>=U)return X;switch(X){case"%s":return String(O[u++]);case"%d":return Number(O[u++]);case"%j":try{return JSON.stringify(O[u++])}catch{return"[Circular]"}default:return X}}),W=O[u];u<U;W=O[++u])T(W)||!D(W)?j+=" "+W:j+=" "+c(W);return j},t.deprecate=function(s,l){if(b(bn.process))return function(){return t.deprecate(s,l).apply(this,arguments)};if(process.noDeprecation===!0)return s;var u=!1;function O(){if(!u){if(process.throwDeprecation)throw new Error(l);process.traceDeprecation?console.trace(l):console.error(l),u=!0}return s.apply(this,arguments)}return O};var o={},a;t.debuglog=function(s){if(b(a)&&(a={}.NODE_DEBUG||""),s=s.toUpperCase(),!o[s])if(new RegExp("\\b"+s+"\\b","i").test(a)){var l=process.pid;o[s]=function(){var u=t.format.apply(t,arguments);console.error("%s %d: %s",s,l,u)}}else o[s]=function(){};return o[s]};function c(s,l){var u={seen:[],stylize:p};return arguments.length>=3&&(u.depth=arguments[2]),arguments.length>=4&&(u.colors=arguments[3]),L(l)?u.showHidden=l:l&&t._extend(u,l),b(u.showHidden)&&(u.showHidden=!1),b(u.depth)&&(u.depth=2),b(u.colors)&&(u.colors=!1),b(u.customInspect)&&(u.customInspect=!0),u.colors&&(u.stylize=i),g(u,s,u.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 i(s,l){var u=c.styles[l];return u?"\x1B["+c.colors[u][0]+"m"+s+"\x1B["+c.colors[u][1]+"m":s}function p(s,l){return s}function h(s){var l={};return s.forEach(function(u,O){l[u]=!0}),l}function g(s,l,u){if(s.customInspect&&l&&G(l.inspect)&&l.inspect!==t.inspect&&!(l.constructor&&l.constructor.prototype===l)){var O=l.inspect(u,s);return B(O)||(O=g(s,O,u)),O}var U=x(s,l);if(U)return U;var j=Object.keys(l),W=h(j);if(s.showHidden&&(j=Object.getOwnPropertyNames(l)),I(l)&&(j.indexOf("message")>=0||j.indexOf("description")>=0))return f(l);if(j.length===0){if(G(l)){var X=l.name?": "+l.name:"";return s.stylize("[Function"+X+"]","special")}if(S(l))return s.stylize(RegExp.prototype.toString.call(l),"regexp");if(N(l))return s.stylize(Date.prototype.toString.call(l),"date");if(I(l))return f(l)}var oe="",be=!1,Ze=["{","}"];if(y(l)&&(be=!0,Ze=["[","]"]),G(l)){var ee=l.name?": "+l.name:"";oe=" [Function"+ee+"]"}if(S(l)&&(oe=" "+RegExp.prototype.toString.call(l)),N(l)&&(oe=" "+Date.prototype.toUTCString.call(l)),I(l)&&(oe=" "+f(l)),j.length===0&&(!be||l.length==0))return Ze[0]+oe+Ze[1];if(u<0)return S(l)?s.stylize(RegExp.prototype.toString.call(l),"regexp"):s.stylize("[Object]","special");s.seen.push(l);var ze;return be?ze=_(s,l,u,W,j):ze=j.map(function(De){return M(s,l,u,W,De,be)}),s.seen.pop(),w(ze,oe,Ze)}function x(s,l){if(b(l))return s.stylize("undefined","undefined");if(B(l)){var u="'"+JSON.stringify(l).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return s.stylize(u,"string")}if(F(l))return s.stylize(""+l,"number");if(L(l))return s.stylize(""+l,"boolean");if(T(l))return s.stylize("null","null")}function f(s){return"["+Error.prototype.toString.call(s)+"]"}function _(s,l,u,O,U){for(var j=[],W=0,X=l.length;W<X;++W)Oe(l,String(W))?j.push(M(s,l,u,O,String(W),!0)):j.push("");return U.forEach(function(oe){oe.match(/^\d+$/)||j.push(M(s,l,u,O,oe,!0))}),j}function M(s,l,u,O,U,j){var W,X,oe;if(oe=Object.getOwnPropertyDescriptor(l,U)||{value:l[U]},oe.get?oe.set?X=s.stylize("[Getter/Setter]","special"):X=s.stylize("[Getter]","special"):oe.set&&(X=s.stylize("[Setter]","special")),Oe(O,U)||(W="["+U+"]"),X||(s.seen.indexOf(oe.value)<0?(T(u)?X=g(s,oe.value,null):X=g(s,oe.value,u-1),X.indexOf(`
|
||
`)>-1&&(j?X=X.split(`
|
||
`).map(function(be){return" "+be}).join(`
|
||
`).substr(2):X=`
|
||
`+X.split(`
|
||
`).map(function(be){return" "+be}).join(`
|
||
`))):X=s.stylize("[Circular]","special")),b(W)){if(j&&U.match(/^\d+$/))return X;W=JSON.stringify(""+U),W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.substr(1,W.length-2),W=s.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=s.stylize(W,"string"))}return W+": "+X}function w(s,l,u){var O=s.reduce(function(U,j){return j.indexOf(`
|
||
`)>=0,U+j.replace(/\u001b\[\d\d?m/g,"").length+1},0);return O>60?u[0]+(l===""?"":l+`
|
||
`)+" "+s.join(`,
|
||
`)+" "+u[1]:u[0]+l+" "+s.join(", ")+" "+u[1]}function y(s){return Array.isArray(s)}t.isArray=y;function L(s){return typeof s=="boolean"}t.isBoolean=L;function T(s){return s===null}t.isNull=T;function V(s){return s==null}t.isNullOrUndefined=V;function F(s){return typeof s=="number"}t.isNumber=F;function B(s){return typeof s=="string"}t.isString=B;function $(s){return typeof s=="symbol"}t.isSymbol=$;function b(s){return s===void 0}t.isUndefined=b;function S(s){return D(s)&&R(s)==="[object RegExp]"}t.isRegExp=S;function D(s){return typeof s=="object"&&s!==null}t.isObject=D;function N(s){return D(s)&&R(s)==="[object Date]"}t.isDate=N;function I(s){return D(s)&&(R(s)==="[object Error]"||s instanceof Error)}t.isError=I;function G(s){return typeof s=="function"}t.isFunction=G;function pe(s){return s===null||typeof s=="boolean"||typeof s=="number"||typeof s=="string"||typeof s=="symbol"||typeof s>"u"}t.isPrimitive=pe,t.isBuffer=cl;function R(s){return Object.prototype.toString.call(s)}function se(s){return s<10?"0"+s.toString(10):s.toString(10)}var Te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var s=new Date,l=[se(s.getHours()),se(s.getMinutes()),se(s.getSeconds())].join(":");return[s.getDate(),Te[s.getMonth()],l].join(" ")}t.log=function(){console.log("%s - %s",Ee(),t.format.apply(t,arguments))},t.inherits=ul,t._extend=function(s,l){if(!l||!D(l))return s;for(var u=Object.keys(l),O=u.length;O--;)s[u[O]]=l[u[O]];return s};function Oe(s,l){return Object.prototype.hasOwnProperty.call(s,l)}})(Xt);var dl=process.platform==="win32",Ie=Xt;function ut(t,e){for(var o=[],a=0;a<t.length;a++){var c=t[a];!c||c==="."||(c===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(c))}return o}function et(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 Jt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,hl=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ie={};function dt(t){var e=Jt.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",c=hl.exec(a),i=c[1],p=c[2],h=c[3];return[o,i,p,h]}function Lt(t){var e=Jt.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Yt(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ie.resolve=function(){for(var t="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var c;if(a>=0?c=arguments[a]:t?(c=process.env["="+t],(!c||c.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(c=t+"\\")):c=process.cwd(),Ie.isString(c)){if(!c)continue}else throw new TypeError("Arguments to path.resolve must be strings");var i=Lt(c),p=i.device,h=i.isUnc,g=i.isAbsolute,x=i.tail;if(!(p&&t&&p.toLowerCase()!==t.toLowerCase())&&(t||(t=p),o||(e=x+"\\"+e,o=g),t&&o))break}return h&&(t=Yt(t)),e=ut(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};ie.normalize=function(t){var e=Lt(t),o=e.device,a=e.isUnc,c=e.isAbsolute,i=e.tail,p=/[\\\/]$/.test(i);return i=ut(i.split(/[\\\/]+/),!c).join("\\"),!i&&!c&&(i="."),i&&p&&(i+="\\"),a&&(o=Yt(o)),o+(c?"\\":"")+i};ie.isAbsolute=function(t){return Lt(t).isAbsolute};ie.join=function(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.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(),c=et(e.split("\\")),i=et(o.split("\\")),p=et(a.split("\\")),h=Math.min(i.length,p.length),g=h,x=0;x<h;x++)if(i[x]!==p[x]){g=x;break}if(g==0)return e;for(var f=[],x=g;x<i.length;x++)f.push("..");return f=f.concat(c.slice(g)),f.join("\\")};ie._makeLong=function(t){if(!Ie.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=dt(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=dt(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};ie.extname=function(t){return dt(t)[3]};ie.format=function(t){if(!Ie.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ie.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(!Ie.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=dt(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 pl=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,de={};function ht(t){return pl.exec(t).slice(1)}de.resolve=function(){for(var t="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ie.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=ut(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};de.normalize=function(t){var e=de.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=ut(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};de.isAbsolute=function(t){return t.charAt(0)==="/"};de.join=function(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Ie.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(t?t+="/"+o:t+=o)}return de.normalize(t)};de.relative=function(t,e){t=de.resolve(t).substr(1),e=de.resolve(e).substr(1);for(var o=et(t.split("/")),a=et(e.split("/")),c=Math.min(o.length,a.length),i=c,p=0;p<c;p++)if(o[p]!==a[p]){i=p;break}for(var h=[],p=i;p<o.length;p++)h.push("..");return h=h.concat(a.slice(i)),h.join("/")};de._makeLong=function(t){return t};de.dirname=function(t){var e=ht(t),o=e[0],a=e[1];return!o&&!a?".":(a&&(a=a.substr(0,a.length-1)),o+a)};de.basename=function(t,e){var o=ht(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};de.extname=function(t){return ht(t)[3]};de.format=function(t){if(!Ie.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!Ie.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir?t.dir+de.sep:"",a=t.base||"";return o+a};de.parse=function(t){if(!Ie.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=ht(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)}};de.sep="/";de.delimiter=":";dl?tt.exports=ie:tt.exports=de;tt.exports.posix=de;tt.exports.win32=ie;var fl=tt.exports;const vl=wn(fl),ml={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"/>'},_l={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"/>'},gl={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"/>'},yl={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"/>'},bl={key:0},wl={key:1},Qt=ae({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=t,{layout:o,isCollapse:a,tooltipEffect:c,getDivStyle:i}=Me(),p=q(()=>({width:"100%",textAlign:"center"})),h=q(()=>({display:"flex",alignItems:"center"})),g=q(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),x=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(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),_=q(()=>$=>{var b;return a.value?{width:"100%",textAlign:($==null?void 0:$.parentId)===null||o.value==="mix"&&((b=$==null?void 0:$.pathList)==null?void 0:b.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),M=q(()=>{var $;return($=Ye())!=null&&$.MenuArrowIconNoTransition?{"expand-close-icon":Ae(_l),"expand-open-icon":Ae(ml),"collapse-close-icon":Ae(yl),"collapse-open-icon":Ae(gl)}:""}),w=H(null),y=new WeakMap,L=H(null);function T($){y.get($)||je(()=>{var b,S;((b=L.value)==null?void 0:b.scrollWidth)>((S=L.value)==null?void 0:S.clientWidth)?Object.assign($,{showTooltip:!0}):Object.assign($,{showTooltip:!1}),y.set($,!0)})}function V($,b){var D;const S=(($==null?void 0:$.length)>1?$.toString().slice(0,1):$)+"...";return b&&!(a.value&&(b==null?void 0:b.parentId)===null)?o.value==="mix"&&((D=b==null?void 0:b.pathList)==null?void 0:D.length)===2&&a.value?S:$:S}function F($=[],b){var D,N;const S=$.filter(I=>(w.value=I,!0));return(N=(D=S[0])==null?void 0:D.meta)!=null&&N.showParent?!1:S.length===1?!0:S.length===0?(w.value={...b,path:"",noShowingChildren:!0},!0):!1}function B($){const b=/^http(s?):\/\//;return b.test($)||b.test(e.basePath)?$||e.basePath:vl.posix.resolve(e.basePath,$)}return($,b)=>{const S=k("el-tooltip"),D=k("el-menu-item"),N=k("sidebar-item",!0),I=k("el-sub-menu");return F(e.item.children,e.item)&&(!w.value.children||w.value.noShowingChildren)?(d(),E(D,{key:0,index:B(w.value.path),class:le({"submenu-title-noDropdown":!t.isNest}),style:te(h.value)},{title:v(()=>[m("div",{style:te(n(i))},[n(o)==="horizontal"?(d(),z("span",bl,Q(n(we)(w.value.meta.title)),1)):(d(),E(S,{key:1,placement:"top",effect:n(c),offset:-10,disabled:!w.value.showTooltip},{content:v(()=>[ne(Q(n(we)(w.value.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:te(g.value),onMouseover:b[0]||(b[0]=G=>T(w.value))},Q(n(we)(w.value.meta.title)),37)]),_:1},8,["effect","disabled"])),r(vt,{extraIcon:w.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:v(()=>{var G,pe,R,se,Te;return[ke(e.item.meta.icon)?(d(),z("div",{key:0,class:"sub-menu-icon",style:te(x.value)},[(d(),E(He(n(Ae)(ke(w.value.meta.icon)||e.item.meta&&ke(e.item.meta.icon)))))],4)):J("",!0),!((G=e.item)!=null&&G.meta.icon)&&n(a)&&n(o)==="vertical"&&((R=(pe=e.item)==null?void 0:pe.pathList)==null?void 0:R.length)===1?(d(),z("span",{key:1,style:te(p.value)},Q(V(n(we)(w.value.meta.title))),5)):J("",!0),!w.value.meta.icon&&n(a)&&n(o)==="mix"&&((Te=(se=e.item)==null?void 0:se.pathList)==null?void 0:Te.length)===2?(d(),z("span",{key:2,style:te(p.value)},Q(V(n(we)(w.value.meta.title))),5)):J("",!0)]}),_:1},8,["index","class","style"])):(d(),E(I,kn({key:1,ref:"subMenu"},M.value,{index:B(e.item.path)}),{title:v(()=>[ke(e.item.meta.icon)?(d(),z("div",{key:0,style:te(x.value),class:"sub-menu-icon"},[(d(),E(He(n(Ae)(e.item.meta&&ke(e.item.meta.icon)))))],4)):J("",!0),n(o)==="horizontal"?(d(),z("span",wl,Q(n(we)(e.item.meta.title)),1)):J("",!0),n(a)&&ke(e.item.meta.icon)&&e.item.parentId===null?J("",!0):(d(),z("div",{key:2,style:te(_.value(e.item))},[n(o)!=="horizontal"?(d(),E(S,{key:0,placement:"top",effect:n(c),offset:-10,disabled:!e.item.showTooltip},{content:v(()=>[ne(Q(n(we)(e.item.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:te(f.value),onMouseover:b[1]||(b[1]=G=>T(e.item))},Q(V(n(we)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):J("",!0),n(a)?J("",!0):(d(),E(vt,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:v(()=>[(d(!0),z(ye,null,xe(e.item.children,G=>(d(),E(N,{key:G.path,"is-nest":!0,item:G,"base-path":B(G.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),kl={class:"container"},xl=ae({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=H(!1),{tooltipEffect:c}=Me(),i=q(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[100ms]","hover:text-primary","dark:hover:!text-white"]),p=()=>{e("toggleClick")};return(h,g)=>{const x=k("IconifyIconOffline"),f=k("el-tooltip");return d(),z("div",kl,[r(f,{placement:"right",visible:a.value,effect:n(c),content:o.isActive?"点击折叠":"点击展开"},{default:v(()=>[r(x,{icon:n(Wt),class:le(i.value),style:te({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:p,onMouseenter:g[0]||(g[0]=_=>a.value=!0),onMouseleave:g[1]||(g[1]=_=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Cl=fe(xl,[["__scopeId","data-v-ed074d28"]]),$l=ae({__name:"vertical",setup(t){var w;const e=bt(),o=H(((w=We().getItem(`${Xe()}configure`))==null?void 0:w.showLogo)??!0),{device:a,pureApp:c,isCollapse:i,menuSelect:p,toggleSideBar:h}=Me(),g=H([]),x=q(()=>c.layout==="mix"&&a.value!=="mobile"?g.value:ge().wholeMenus),f=q(()=>c.layout==="mix"?!1:x.value.length===0),_=q(()=>{var y;return Ge((y=e.meta)==null?void 0:y.activePath)?e.path:e.meta.activePath});function M(){let y="";y=_.value,g.value=[];const L=yt(y,ge().wholeMenus),T=ot(L[0]||y,ge().wholeMenus);T!=null&&T.children&&(g.value=T==null?void 0:T.children)}return Fe(()=>[e.path,ge().wholeMenus],()=>{e.path.includes("/redirect")||(M(),p(e.path))}),qe(()=>{M(),_e.on("logoChange",y=>{o.value=y})}),kt(()=>{_e.off("logoChange")}),(y,L)=>{const T=k("el-menu"),V=k("el-scrollbar"),F=gt("loading");return ve((d(),z("div",{class:le(["sidebar-container",o.value?"has-logo":""])},[o.value?(d(),E(il,{key:0,collapse:n(i)},null,8,["collapse"])):J("",!0),r(V,{"wrap-class":"scrollbar-wrapper",class:le([n(a)==="mobile"?"mobile":"pc"])},{default:v(()=>[r(T,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:n(i),"default-active":_.value,"collapse-transition":!1},{default:v(()=>[(d(!0),z(ye,null,xe(x.value,B=>(d(),E(Qt,{key:B.path,item:B,"base-path":B.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(d(),E(Cl,{key:1,"is-active":n(c).sidebar.opened,onToggleClick:n(h)},null,8,["is-active","onToggleClick"])):J("",!0)],2)),[[F,f.value]])}}});const Sl=fe($l,[["__scopeId","data-v-34280a35"]]),Il=t=>(st("data-v-d7ea3a14"),t=t(),rt(),t),Ml={class:"horizontal-header"},Tl=Il(()=>m("img",{src:zt,alt:"logo"},null,-1)),Vl={class:"horizontal-header-right"},zl={class:"check-zh"},Ll={class:"check-en"},Al={class:"el-dropdown-link navbar-bg-hover"},Hl=["src"],El={key:0,class:"dark:text-white"},Ol=["title"],Zl=ae({__name:"horizontal",setup(t){const e=H(),{t:o,route:a,locale:c,translationCh:i,translationEn:p}=$t(e),{title:h,logout:g,backTopMenu:x,onPanel:f,username:_,userAvatar:M,avatarsStyle:w,getDropdownItemStyle:y,getDropdownItemClass:L}=Me(),T=q(()=>{var V;return Ge((V=a.meta)==null?void 0:V.activePath)?a.path:a.meta.activePath});return je(()=>{var V;(V=e.value)==null||V.handleResize()}),(V,F)=>{const B=k("el-menu"),$=k("IconifyIconOffline"),b=k("el-dropdown-item"),S=k("el-dropdown-menu"),D=k("el-dropdown"),N=gt("loading");return ve((d(),z("div",Ml,[m("div",{class:"horizontal-header-left",onClick:F[0]||(F[0]=(...I)=>n(x)&&n(x)(...I))},[Tl,m("span",null,Q(n(h)),1)]),r(B,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":T.value},{default:v(()=>[(d(!0),z(ye,null,xe(n(ge)().wholeMenus,I=>(d(),E(Qt,{key:I.path,item:I,"base-path":I.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),m("div",Vl,[r(Mt),r(Tt,{id:"header-notice"}),r(D,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[r(S,{class:"translation"},{default:v(()=>[r(b,{style:te(n(y)(n(c),"zh")),class:le(["dark:!text-white",n(L)(n(c),"zh")]),onClick:n(i)},{default:v(()=>[ve(m("span",zl,[r($,{icon:n(Ue)},null,8,["icon"])],512),[[Ce,n(c)==="zh"]]),ne(" 简体中文 ")]),_:1},8,["style","class","onClick"]),r(b,{style:te(n(y)(n(c),"en")),class:le(["dark:!text-white",n(L)(n(c),"en")]),onClick:n(p)},{default:v(()=>[ve(m("span",Ll,[r($,{icon:n(Ue)},null,8,["icon"])],512),[[Ce,n(c)==="en"]]),ne(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[r(n(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),r(D,{trigger:"click"},{dropdown:v(()=>[r(S,{class:"logout"},{default:v(()=>[r(b,{onClick:n(g)},{default:v(()=>[r($,{icon:n(ct),style:{margin:"5px"}},null,8,["icon"]),ne(" "+Q(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",Al,[m("img",{src:n(M),style:te(n(w))},null,12,Hl),n(_)?(d(),z("p",El,Q(n(_)),1)):J("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:F[1]||(F[1]=(...I)=>n(f)&&n(f)(...I))},[r($,{icon:n(it)},null,8,["icon"])],8,Ol)])])),[[N,n(ge)().wholeMenus.length===0]])}}});const Dl=fe(Zl,[["__scopeId","data-v-d7ea3a14"]]),Pl={key:0},Rl=ae({__name:"index",setup(t){const e=H(),{isDark:o}=qt(),{layout:a}=zn(),c=Rt(),i=It(),{$storage:p}=Ct(),h=wt({sidebar:q(()=>Re().sidebar),device:q(()=>Re().device),fixedHeader:q(()=>i.fixedHeader),classes:q(()=>({hideSidebar:!h.sidebar.opened,openSidebar:h.sidebar.opened,withoutAnimation:h.sidebar.withoutAnimation,mobile:h.device==="mobile"})),hideTabs:q(()=>p==null?void 0:p.configure.hideTabs)});function g(M){var w,y,L,T;window.document.body.setAttribute("layout",M),p.layout={layout:`${M}`,theme:(w=p.layout)==null?void 0:w.theme,darkMode:(y=p.layout)==null?void 0:y.darkMode,sidebarStatus:(L=p.layout)==null?void 0:L.sidebarStatus,epThemeColor:(T=p.layout)==null?void 0:T.epThemeColor}}function x(M,w){Re().toggleDevice(M),Re().toggleSideBar(w,"resize")}let f=!0;_t(e,M=>{if(c)return;const w=M[0],{width:y}=w.contentRect;y<=760?g("vertical"):g(Re().layout),y>0&&y<=760?(x("mobile",!1),f=!0):y>760&&y<=990?f&&(x("desktop",!1),f=!1):y>990&&!h.sidebar.isClickCollapse?(x("desktop",!0),f=!0):(x("desktop",!1),f=!1)}),qe(()=>{c&&x("mobile",!1)}),Bt(()=>{Nt().dataThemeChange()});const _=ae({render(){return Je("div",{class:{"fixed-header":h.fixedHeader},style:[h.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:()=>[!i.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?Je(ua):null,!i.hiddenSideBar&&a.value.includes("horizontal")?Je(Dl):null,Je(Sa)]})}});return(M,w)=>{const y=k("el-backtop"),L=k("el-scrollbar");return d(),z("div",{ref_key:"appWrapperRef",ref:e,class:le(["app-wrapper",h.classes])},[ve(m("div",{class:"app-mask",onClick:w[0]||(w[0]=T=>n(Re)().toggleSideBar())},null,512),[[Ce,h.device==="mobile"&&h.sidebar.opened&&n(a).includes("vertical")]]),ve(r(Sl,null,null,512),[[Ce,!n(i).hiddenSideBar&&(n(a).includes("vertical")||n(a).includes("mix"))]]),m("div",{class:le(["main-container",n(i).hiddenSideBar?"main-hidden":""])},[h.fixedHeader?(d(),z("div",Pl,[r(n(_)),r(Zt,{"fixed-header":h.fixedHeader},null,8,["fixed-header"])])):(d(),E(L,{key:1},{default:v(()=>[r(y,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:v(()=>[r(n(Ft))]),_:1}),r(n(_)),r(Zt,{"fixed-header":h.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),r(nl)],2)}}});const ns=fe(Rl,[["__scopeId","data-v-203a800b"]]);export{ns as default};
|