vue-pure-admin/dist/static/js/index-25627407.js
2023-06-07 11:06:35 +08:00

11 lines
75 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

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