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