mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 09:27:19 +08:00
11 lines
75 KiB
JavaScript
11 lines
75 KiB
JavaScript
import{b2 as fe,aE as an,aH as Je,aI as sn,o as d,i as V,e as m,d as le,Z as ln,r as H,C as N,b3 as mt,k as je,F as be,p as Ce,E as te,c as E,S as He,u as t,t as Q,h as r,a9 as Zt,_ as ve,a as k,f as oe,ad as Y,a1 as at,aY as rn,A as cn,I as ye,b4 as ht,w as v,aA as Dt,K as ke,aU as Pt,am as Rt,n as Ne,a_ as xe,D as qe,b as _t,g as me,aq as ce,ar as Se,b5 as gt,b6 as nt,b1 as yt,b7 as Ve,ap as un,ak as Ge,b8 as Be,aF as We,aG as Ke,ai as bt,b9 as _e,ba as Ye,bb as dn,bc as hn,bd as tt,au as Pe,be as ot,bf as pn,l as wt,bg as kt,bh as pt,bi as fn,bj as At,bk as jt,bl as xt,bm as Ht,M as Xe,bn as vn,ac as mn,q as st,s as lt,a8 as qt,ao as Bt,bo as _n,bp as gn,bq as yn,P as Fe,$ as bn,R as wn,al as kn}from"./index-26258e10.js";import{d as xn}from"./menu-a4fe64fb.js";import{d as Cn}from"./set-up-e6942411.js";import{d as Sn}from"./home-filled-05cc090c.js";import{d as $n}from"./admin-line-92b9acda.js";import{d as In}from"./git-branch-line-aa4cb38f.js";import{u as Te,a as Ct,g as St,e as ge,b as Nt,t as Mn,d as Tn,c as Vn,f as zn}from"./dark-3954ca64.js";import{u as Re}from"./app-a30a538f.js";import{u as Ln}from"./epTheme-2c427bff.js";import{u as Ae}from"./hooks-0d4388e8.js";import{d as An}from"./search-cc37b371.js";import{d as Ue}from"./check-3815600c.js";import{d as Hn}from"./refresh-right-6177e75c.js";import{d as En}from"./arrow-right-s-line-2977cc7e.js";import{b as Ut}from"./back_top-0799dc68.js";const On={width:24,height:24,body:'<path fill="currentColor" d="M22.001 12c0 5.522-4.477 10-10 10s-10-4.478-10-10c0-5.523 4.477-10 10-10s10 4.477 10 10Zm-16.8-1.336a1.335 1.335 0 1 0 0 2.67a1.335 1.335 0 0 0 0-2.67Zm9.533 6.069a1.334 1.334 0 1 0 1.334 2.31a1.334 1.334 0 0 0-1.334-2.31ZM8.1 12c0-1.32.656-2.485 1.659-3.19l-.977-1.636a5.813 5.813 0 0 0-2.398 3.371a1.875 1.875 0 0 1 0 2.91a5.812 5.812 0 0 0 2.398 3.371l.977-1.636A3.892 3.892 0 0 1 8.1 12ZM12 8.1a3.9 3.9 0 0 1 3.884 3.554l1.903-.028a5.781 5.781 0 0 0-1.724-3.762A1.872 1.872 0 0 1 13.55 6.41a5.829 5.829 0 0 0-4.12.39l.927 1.663A3.885 3.885 0 0 1 12 8.1Zm0 7.8c-.587 0-1.143-.13-1.643-.363l-.927 1.662a5.774 5.774 0 0 0 4.12.39a1.872 1.872 0 0 1 2.514-1.454a5.782 5.782 0 0 0 1.723-3.762l-1.903-.027A3.898 3.898 0 0 1 12 15.9Zm2.732-8.633a1.335 1.335 0 1 0 1.335-2.312a1.335 1.335 0 0 0-1.335 2.312Z"/>'},Zn={width:1024,height:1024,body:'<path fill="currentColor" d="M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"/><path fill="currentColor" d="m469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"/>'},Dn={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16ZM11 7h2v2h-2V7Zm0 4h2v6h-2v-6Z"/>'},Pn={width:24,height:24,body:'<path fill="currentColor" d="M20 9V5H4v4h16Zm0 2H4v8h16v-8ZM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm2 9h3v5H5v-5Zm0-6h2v2H5V6Zm4 0h2v2H9V6Z"/>'},Rn={width:1024,height:1024,body:'<path fill="currentColor" d="M640 608h-64V416h64v192zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768h64zM384 608V416h64v192h-64zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32v160z"/><path fill="currentColor" d="m220.8 256l-71.232 80l71.168 80H768V256H220.8zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192zm678.784 496l-71.104 80H266.816V608h547.2l71.168 80zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"/>'},jn={width:24,height:24,body:'<path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm17 8h-16v8h16v-8Zm0-2V5h-16v4h16Zm-6 6h4v2h-4v-2Z"/>'},qn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Bn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},Nn={width:24,height:24,body:'<path fill="currentColor" d="m2.859 2.878l12.57-1.796a.5.5 0 0 1 .571.495v20.847a.5.5 0 0 1-.57.495L2.858 21.123a1 1 0 0 1-.859-.99V3.868a1 1 0 0 1 .859-.99ZM4 4.735v14.53l10 1.43V3.305L4 4.735ZM17 19h3V5h-3V3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4v-2ZM5 8h8v6H7v2H5V8Zm2 2v2h4v-2H7Z"/>'},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"/>'},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"/>'},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"/>'},Wn={width:1024,height:1024,body:'<path fill="currentColor" d="M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0h1.28zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696zm105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744zm-54.464-36.032a321.92 321.92 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"/>'},Gn={width:1024,height:1024,body:'<path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"/>'};fe("ubuntuFill",On);fe("menu",xn);fe("edit",Zn);fe("informationLine",Dn);fe("setUp",Cn);fe("terminalWindowLine",Pn);fe("guide",Rn);fe("homeFilled",Sn);fe("card",jn);fe("listCheck",qn);fe("histogram",Bn);fe("ppt",Nn);fe("checkboxCircleLine",Un);fe("flUser",$n);fe("role",Fn);fe("setting",rt);fe("dept",In);fe("lollipop",Wn);fe("monitor",Gn);const Kn=an({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 Kn(sn)}const Xn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Jn=m("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"},null,-1),Yn=[Jn];function Qn(n,e){return d(),V("svg",Xn,Yn)}const Ft={render:Qn},eo={width:24,height:24,body:'<path fill="currentColor" d="M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1Zm13 2H6v15.432l6-3.761l6 3.761V4ZM8 9h8v2H8V9Z"/>'},to=["onMouseenter"],no={class:"result-item-title"},oo=le({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(n,{expose:e,emit:o}){const a=n,{t:u}=ln(),i=H(),p=H(),h=Zt(),g=N(()=>b=>({background:(b==null?void 0:b.path)===x.value?Ln().epThemeColor:"",color:b.path===x.value?"#fff":"",fontSize:b.path===x.value?"16px":"14px"})),x=N({get(){return a.value},set(b){o("update:value",b)}});async function f(b){x.value=b.path}function _(){o("enter")}function I(){p.value=window.innerHeight-window.innerHeight/10-140}mt(i,()=>{I()});function w(b){var G;const L=(G=h==null?void 0:h.proxy)==null?void 0:G.$refs[`resultItemRef${b}`];if(!L)return 0;const z=L[0].offsetTop+128;return z>p.value?z-p.value:0}return je(()=>{I()}),e({handleScroll:w}),(b,L)=>(d(),V("div",{ref_key:"resultRef",ref:i,class:"result"},[(d(!0),V(be,null,Ce(b.options,(M,z)=>{var G,P;return d(),V("div",{key:M.path,ref_for:!0,ref:"resultItemRef"+z,class:"result-item dark:bg-[#1d1d1d]",style:te(g.value(M)),onClick:_,onMouseenter:T=>f(M)},[(d(),E(He(t(Ae)(((G=M.meta)==null?void 0:G.icon)??t(eo))))),m("span",no,Q(t(u)((P=M.meta)==null?void 0:P.title)),1),r(t(Ft))],44,to)}),128))],512))}});const ao=ve(oo,[["__scopeId","data-v-a3562d68"]]),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"/>'},lo={width:24,height:24,body:'<path fill="currentColor" d="m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2v12.172Z"/>'},ro={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},io=m("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2Z"},null,-1),co=[io];function uo(n,e){return d(),V("svg",ro,co)}const ho={render:uo},po={class:"search-footer text-[#333] dark:text-white"},fo={class:"search-footer-item"},vo={class:"search-footer-item"},mo={class:"search-footer-item"},_o={key:0,class:"search-footer-total"},go=le({__name:"SearchFooter",props:{total:{default:0}},setup(n){const e=n,{device:o}=Te();return(a,u)=>{const i=k("IconifyIconOffline");return d(),V("div",po,[m("span",fo,[r(t(Ft),{class:"icon"}),oe(" 确认 ")]),m("span",vo,[r(i,{icon:t(so),class:"icon"},null,8,["icon"]),r(i,{icon:t(lo),class:"icon"},null,8,["icon"]),oe(" 切换 ")]),m("span",mo,[r(t(ho),{class:"icon"}),oe(" 关闭 ")]),t(o)!=="mobile"&&e.total>0?(d(),V("p",_o," 共"+Q(e.total)+"项 ",1)):Y("",!0)])}}});const yo=ve(go,[["__scopeId","data-v-d2a25abb"]]),bo={width:24,height:24,body:'<path fill="currentColor" d="m18.031 16.617l4.283 4.282l-1.415 1.415l-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9s9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617Zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.867-3.133-7-7-7s-7 3.133-7 7s3.133 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15Z"/>'},wo={class:"search-result-container"},ko=le({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(n,{emit:e}){const o=n,{device:a}=Te(),u=at(),i=H(""),p=H(),h=H(),g=H(""),x=H(null),f=rn([]),_=Dt(L,300),I=N(()=>cn(ye().wholeMenus)),w=N({get(){return o.value},set(y){e("update:value",y)}});function b(y){const C=[];function R(U){U.forEach($=>{C.push($),$.children&&R($.children)})}return R(y),C}function L(){var C;const y=b(I.value);f.value=y.filter(R=>{var U;return i.value&&ke((U=R.meta)==null?void 0:U.title).toLocaleLowerCase().includes(i.value.toLocaleLowerCase().trim())}),((C=f.value)==null?void 0:C.length)>0?g.value=f.value[0].path:g.value=""}function M(){w.value=!1,setTimeout(()=>{f.value=[],i.value=""},200)}function z(y){const C=h.value.handleScroll(y);p.value.setScrollTop(C)}function G(){const{length:y}=f.value;if(y===0)return;const C=f.value.findIndex(R=>R.path===g.value);C===0?(g.value=f.value[y-1].path,z(f.value.length-1)):(g.value=f.value[C-1].path,z(C-1))}function P(){const{length:y}=f.value;if(y===0)return;const C=f.value.findIndex(R=>R.path===g.value);C+1===y?g.value=f.value[0].path:g.value=f.value[C+1].path,z(C+1)}function T(){const{length:y}=f.value;y===0||g.value===""||(u.push(g.value),M())}return ht("Enter",T),ht("ArrowUp",G),ht("ArrowDown",P),(y,C)=>{const R=k("IconifyIconOffline"),U=k("el-input"),$=k("el-empty"),Z=k("el-scrollbar"),he=k("el-dialog");return d(),E(he,{top:"5vh",class:"pure-search-dialog",modelValue:w.value,"onUpdate:modelValue":C[2]||(C[2]=J=>w.value=J),"show-close":!1,width:t(a)==="mobile"?"80vw":"40vw","before-close":M,style:{borderRadius:"6px"},"append-to-body":"",onOpened:C[3]||(C[3]=J=>x.value.focus()),onClosed:C[4]||(C[4]=J=>x.value.blur())},{footer:v(()=>[r(yo,{total:f.value.length},null,8,["total"])]),default:v(()=>[r(U,{ref_key:"inputRef",ref:x,size:"large",modelValue:i.value,"onUpdate:modelValue":C[0]||(C[0]=J=>i.value=J),clearable:"",placeholder:"搜索菜单",onInput:t(_)},{prefix:v(()=>[r(R,{icon:t(bo),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),m("div",wo,[r(Z,{ref_key:"scrollbarRef",ref:p,"max-height":"calc(90vh - 140px)"},{default:v(()=>[f.value.length===0?(d(),E($,{key:0,description:"暂无搜索结果"})):(d(),E(ao,{key:1,ref_key:"resultRef",ref:h,value:g.value,"onUpdate:value":C[1]||(C[1]=J=>g.value=J),options:f.value,onClick:T},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}});const xo=ve(ko,[["__scopeId","data-v-b133b6c9"]]);function Co(n=!1){const e=H(n);function o(p){e.value=p}function a(){o(!0)}function u(){o(!1)}function i(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:u,toggle:i}}const It=le({__name:"index",setup(n){const{bool:e,toggle:o}=Co();function a(){o()}return(u,i)=>{const p=k("IconifyIconOffline");return d(),V(be,null,[m("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[r(p,{icon:t(An)},null,8,["icon"])]),r(t(xo),{value:t(e),"onUpdate:value":i[0]||(i[0]=h=>Pt(e)?e.value=h:null)},null,8,["value"])],64)}}}),Et=[{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]"},$o={class:"notice-container-text"},Io={class:"notice-text-title text-[#000000d9] dark:text-white"},Mo={class:"notice-text-datetime text-[#00000073] dark:text-white"},To=le({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(n){const e=n,o=H(null),a=H(!1),u=H(null),i=H(!1),{tooltipEffect:p}=Te(),h=Rt();function g(){Ne(()=>{var f,_;((f=o.value)==null?void 0:f.scrollWidth)>((_=o.value)==null?void 0:_.clientWidth)?a.value=!0:a.value=!1})}function x(f,_){const I=document.createElement("span");I.innerText=_,I.className="getDescriptionWidth",document.querySelector("body").appendChild(I);const w=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const b=f.target.offsetWidth;w>2*b?i.value=!0:i.value=!1}return(f,_)=>{var L,M;const I=k("el-avatar"),w=k("el-tooltip"),b=k("el-tag");return d(),V("div",So,[e.noticeItem.avatar?(d(),E(I,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),m("div",$o,[m("div",Io,[r(w,{"popper-class":"notice-title-popper",effect:t(p),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!t(h)},{default:v(()=>[m("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:g},Q(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(d(),E(b,{key:0,type:(M=e.noticeItem)==null?void 0:M.status,size:"small",class:"notice-title-extra"},{default:v(()=>{var z;return[oe(Q((z=e.noticeItem)==null?void 0:z.extra),1)]}),_:1},8,["type"])):Y("",!0)]),r(w,{"popper-class":"notice-title-popper",effect:t(p),disabled:!i.value,content:e.noticeItem.description,placement:"top-start"},{default:v(()=>[m("div",{ref_key:"descriptionRef",ref:u,class:"notice-text-description",onMouseover:_[0]||(_[0]=z=>x(z,e.noticeItem.description))},Q(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),m("div",Mo,Q(e.noticeItem.datetime),1)])])}}});const Vo=ve(To,[["__scopeId","data-v-2a7dbc48"]]),zo={key:0},Lo=le({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(n){const e=n;return(o,a)=>{const u=k("el-empty");return e.list.length?(d(),V("div",zo,[(d(!0),V(be,null,Ce(e.list,(i,p)=>(d(),E(Vo,{noticeItem:i,key:p},null,8,["noticeItem"]))),128))])):(d(),E(u,{key:1,description:"暂无数据"}))}}}),Ao={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64z"/><path fill="currentColor" d="M256 768h512V448a256 256 0 1 0-512 0v320zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320z"/><path fill="currentColor" d="M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm352 128h128a64 64 0 0 1-128 0z"/>'},Ho={class:"dropdown-badge navbar-bg-hover select-none"},Eo={class:"header-notice-icon"},Oo={key:1},Zo={class:"noticeList-container"},Do=le({__name:"index",setup(n){const e=H(0),o=H(Et),a=H(Et[0].key);return o.value.map(u=>e.value+=u.list.length),(u,i)=>{const p=k("IconifyIconOffline"),h=k("el-badge"),g=k("el-empty"),x=k("el-scrollbar"),f=k("el-tab-pane"),_=k("el-tabs"),I=k("el-dropdown-menu"),w=k("el-dropdown");return d(),E(w,{trigger:"click",placement:"bottom-end"},{dropdown:v(()=>[r(I,null,{default:v(()=>[r(_,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=b=>a.value=b),class:"dropdown-tabs",style:te({width:o.value.length===0?"200px":"330px"})},{default:v(()=>[o.value.length===0?(d(),E(g,{key:0,description:"暂无消息","image-size":60})):(d(),V("span",Oo,[(d(!0),V(be,null,Ce(o.value,b=>(d(),E(f,{key:b.key,label:`${b.name}(${b.list.length})`,name:`${b.key}`},{default:v(()=>[r(x,{"max-height":"330px"},{default:v(()=>[m("div",Zo,[r(Lo,{list:b.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:v(()=>[m("span",Ho,[r(h,{value:e.value,max:99},{default:v(()=>[m("span",Eo,[r(p,{icon:t(Ao)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const Mt=ve(Do,[["__scopeId","data-v-f8beaa07"]]),Po={key:0,class:"flex justify-center items-center"},ft=le({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(n){const e=n;return(o,a)=>e.extraIcon?(d(),V("div",Po,[(d(),E(He(t(Ae)(xe(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!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"/>'},Ro={key:0,class:"horizontal-header"},jo={class:"select-none"},qo={class:"horizontal-header-right"},Bo={class:"check-zh"},No={class:"check-en"},Uo={class:"el-dropdown-link navbar-bg-hover select-none"},Fo=["src"],Wo={key:0,class:"dark:text-white"},Go=["title"],Ko=le({__name:"mixNav",setup(n){const e=H(),o=H(null),{t:a,route:u,locale:i,translationCh:p,translationEn:h}=Ct(e),{device:g,routers:x,logout:f,onPanel:_,menuSelect:I,resolvePath:w,username:b,userAvatar:L,getDivStyle:M,avatarsStyle:z,getDropdownItemStyle:G,getDropdownItemClass:P}=Te();function T(y){var U,$;const C=ye().wholeMenus,R=gt(y,C)[0];o.value=($=(U=nt(R,C))==null?void 0:U.children[0])==null?void 0:$.path}return je(()=>{T(u.path)}),Ne(()=>{var y;(y=e.value)==null||y.handleResize()}),qe(()=>[u.path,ye().wholeMenus],()=>{T(u.path)}),(y,C)=>{const R=k("el-menu-item"),U=k("el-menu"),$=k("IconifyIconOffline"),Z=k("el-dropdown-item"),he=k("el-dropdown-menu"),J=k("el-dropdown"),re=_t("loading");return t(g)!=="mobile"?me((d(),V("div",Ro,[r(U,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value,onSelect:C[0]||(C[0]=ae=>t(I)(ae,t(x)))},{default:v(()=>[(d(!0),V(be,null,Ce(t(ye)().wholeMenus,ae=>(d(),E(R,{key:ae.path,index:t(w)(ae)||ae.redirect},{title:v(()=>[xe(ae.meta.icon)?(d(),V("div",{key:0,class:ce(["sub-menu-icon",ae.meta.icon])},[(d(),E(He(t(Ae)(ae.meta&&xe(ae.meta.icon)))))],2)):Y("",!0),m("div",{style:te(t(M))},[m("span",jo,Q(t(ke)(ae.meta.title)),1),r(ft,{extraIcon:ae.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),m("div",qo,[r(It),r(Mt,{id:"header-notice"}),r(J,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[r(he,{class:"translation"},{default:v(()=>[r(Z,{style:te(t(G)(t(i),"zh")),class:ce(["dark:!text-white",t(P)(t(i),"zh")]),onClick:t(p)},{default:v(()=>[me(m("span",Bo,[r($,{icon:t(Ue)},null,8,["icon"])],512),[[Se,t(i)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),r(Z,{style:te(t(G)(t(i),"en")),class:ce(["dark:!text-white",t(P)(t(i),"en")]),onClick:t(h)},{default:v(()=>[me(m("span",No,[r($,{icon:t(Ue)},null,8,["icon"])],512),[[Se,t(i)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[r(t(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),r(J,{trigger:"click"},{dropdown:v(()=>[r(he,{class:"logout"},{default:v(()=>[r(Z,{onClick:t(f)},{default:v(()=>[r($,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",Uo,[m("img",{src:t(L),style:te(t(z))},null,12,Fo),t(b)?(d(),V("p",Wo,Q(t(b)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(a)("buttons.hssystemSet"),onClick:C[1]||(C[1]=(...ae)=>t(_)&&t(_)(...ae))},[r($,{icon:t(rt)},null,8,["icon"])],8,Go)])])),[[re,t(ye)().wholeMenus.length===0]]):Y("",!0)}}});const Xo=ve(Ko,[["__scopeId","data-v-59cf1b62"]]),Jo=["onClick"],Yo=le({__name:"breadCrumb",setup(n){const e=yt(),o=H([]),a=at(),u=a.options.routes,i=Ve().multiTags,p=()=>{let g;Object.keys(e.query).length>0?i.forEach(_=>{Be(e.query,_==null?void 0:_.query)&&(g=xe(_))}):Object.keys(e.params).length>0?i.forEach(_=>{Be(e.params,_==null?void 0:_.params)&&(g=xe(_))}):g=nt(a.currentRoute.value.path,u);const x=gt(a.currentRoute.value.name,u,"name"),f=[];x.forEach(_=>{_!=="/"&&f.push(nt(_,u))}),f.push(g),f.forEach((_,I)=>{g!=null&&g.query||g!=null&&g.params||_!=null&&_.children&&_.children.forEach(w=>{var b,L;((b=w==null?void 0:w.meta)==null?void 0:b.title)===((L=_==null?void 0:_.meta)==null?void 0:L.title)&&f.splice(I,1)})}),o.value=f.filter(_=>(_==null?void 0:_.meta)&&(_==null?void 0:_.meta.title)!==!1)},h=g=>{const{redirect:x,path:f}=g;x?a.push(x):a.push(f)};return je(()=>{p()}),qe(()=>e.path,()=>{p()},{deep:!0}),(g,x)=>{const f=k("el-breadcrumb-item"),_=k("el-breadcrumb");return d(),E(_,{class:"!leading-[50px] select-none",separator:"/"},{default:v(()=>[r(un,{name:"breadcrumb"},{default:v(()=>[(d(!0),V(be,null,Ce(o.value,I=>(d(),E(f,{class:"!inline !items-stretch",key:I.path},{default:v(()=>[m("a",{onClick:Ge(w=>h(I),["prevent"])},Q(t(ke)(I.meta.title)),9,Jo)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Wt={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM6.95 3.55v9.9L2 8.5l4.95-4.95ZM21 11v2h-9v-2h9Zm0-7v2h-9V4h9Z"/>'},Qo={width:24,height:24,body:'<path fill="currentColor" d="M21 18v2H3v-2h18ZM17.05 3.55L22 8.5l-4.95 4.95v-9.9ZM12 11v2H3v-2h9Zm0-7v2H3V4h9Z"/>'},ea=["title"],ta=le({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=()=>{e("toggleClick")};return(u,i)=>{const p=k("IconifyIconOffline");return d(),V("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[r(p,{icon:o.isActive?t(Wt):t(Qo),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,ea)}}}),na={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},oa={key:3,class:"vertical-header-right"},aa={class:"check-en"},sa={class:"el-dropdown-link navbar-bg-hover select-none"},la=["src"],ra={key:0,class:"dark:text-white"},ia=["title"],ca=le({__name:"navbar",setup(n){const{layout:e,device:o,logout:a,onPanel:u,pureApp:i,username:p,userAvatar:h,avatarsStyle:g,toggleSideBar:x,getDropdownItemStyle:f,getDropdownItemClass:_}=Te(),{t:I,locale:w,translationCh:b,translationEn:L}=Ct();return(M,z)=>{const G=k("IconifyIconOffline"),P=k("el-dropdown-item"),T=k("el-dropdown-menu"),y=k("el-dropdown");return d(),V("div",na,[t(o)==="mobile"?(d(),E(ta,{key:0,class:"hamburger-container","is-active":t(i).sidebar.opened,onToggleClick:t(x)},null,8,["is-active","onToggleClick"])):Y("",!0),t(e)!=="mix"&&t(o)!=="mobile"?(d(),E(Yo,{key:1,class:"breadcrumb-container"})):Y("",!0),t(e)==="mix"?(d(),E(Xo,{key:2})):Y("",!0),t(e)==="vertical"?(d(),V("div",oa,[r(It),r(Mt,{id:"header-notice"}),r(y,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[r(T,{class:"translation"},{default:v(()=>[r(P,{style:te(t(f)(t(w),"zh")),class:ce(["dark:!text-white",t(_)(t(w),"zh")]),onClick:t(b)},{default:v(()=>[me(r(G,{class:"check-zh",icon:t(Ue)},null,8,["icon"]),[[Se,t(w)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),r(P,{style:te(t(f)(t(w),"en")),class:ce(["dark:!text-white",t(_)(t(w),"en")]),onClick:t(L)},{default:v(()=>[me(m("span",aa,[r(G,{icon:t(Ue)},null,8,["icon"])],512),[[Se,t(w)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[r(t(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),r(y,{trigger:"click"},{dropdown:v(()=>[r(T,{class:"logout"},{default:v(()=>[r(P,{onClick:t(a)},{default:v(()=>[r(G,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(I)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",sa,[m("img",{src:t(h),style:te(t(g))},null,12,la),t(p)?(d(),V("p",ra,Q(t(p)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(I)("buttons.hssystemSet"),onClick:z[0]||(z[0]=(...C)=>t(u)&&t(u)(...C))},[r(G,{icon:t(rt)},null,8,["icon"])],8,ia)])):Y("",!0)])}}});const ua=ve(ca,[["__scopeId","data-v-fc735608"]]),da={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ha={width:24,height:24,body:'<path fill="currentColor" d="M7 17h10v-2.5l3.5 3.5l-3.5 3.5V19H7v2.5L3.5 18L7 14.5V17Zm6-11v9h-2V6H5V4h14v2h-6Z"/>'},pa={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5Zm8 12v-2.5l4 3.5l-4 3.5V19H5v-2h12Z"/>'},fa={width:24,height:24,body:'<path fill="currentColor" d="M11 5v10H9v-4a4 4 0 1 1 0-8h8v2h-2v10h-2V5h-2ZM9 5a2 2 0 1 0 0 4V5ZM7 17h12v2H7v2.5L3 18l4-3.5V17Z"/>'},Gt={width:1024,height:1024,body:'<path fill="currentColor" d="M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"/>'};function va(){var U;const n=yt(),e=at(),o=Zt(),a=$t(),u=H(0),i=H(0),p=H(0),h=H(!1),g=H(-1),x=H({}),f=H(((U=We().getItem(`${Ke()}configure`))==null?void 0:U.showModel)||"smart"),_=H(We().getItem(`${Ke()}configure`).hideTabs)??H("false"),I=N(()=>Ve().multiTags),w=bt([{icon:Hn,text:_e("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Gt,text:_e("buttons.hscloseCurrentTab"),divided:!1,disabled:!(I.value.length>1),show:!0},{icon:fa,text:_e("buttons.hscloseLeftTabs"),divided:!0,disabled:!(I.value.length>1),show:!0},{icon:pa,text:_e("buttons.hscloseRightTabs"),divided:!1,disabled:!(I.value.length>1),show:!0},{icon:ha,text:_e("buttons.hscloseOtherTabs"),divided:!0,disabled:!(I.value.length>2),show:!0},{icon:da,text:_e("buttons.hscloseAllTabs"),divided:!1,disabled:!(I.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 b($,Z,he){var J,re;return hn((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?Be(n.query,$.query)?Z:he:Be(n.params,$.params)?Z:he:n.path===$.path?Z:he}const L=N(()=>($,Z)=>{if(Z!==0)return b($,!0,!1)}),M=N(()=>$=>b($,"is-active","")),z=N(()=>$=>b($,"schedule-active","")),G=N(()=>({transform:`translateX(${p.value}px)`})),P=N(()=>({left:i.value+"px",top:u.value+"px"})),T=()=>{h.value=!1};function y($){if($&&(g.value=$),t(f)==="smart"){if(tt(o.refs["schedule"+$][0],"schedule-active"))return;Pe(!0,"schedule-in",o.refs["schedule"+$][0]),Pe(!1,"schedule-out",o.refs["schedule"+$][0])}else{if(tt(o.refs["dynamic"+$][0],"card-active"))return;Pe(!0,"card-in",o.refs["dynamic"+$][0]),Pe(!1,"card-out",o.refs["dynamic"+$][0])}}function C($){if(g.value=-1,t(f)==="smart"){if(tt(o.refs["schedule"+$][0],"schedule-active"))return;Pe(!1,"schedule-in",o.refs["schedule"+$][0]),Pe(!0,"schedule-out",o.refs["schedule"+$][0])}else{if(tt(o.refs["dynamic"+$][0],"card-active"))return;Pe(!1,"card-in",o.refs["dynamic"+$][0]),Pe(!0,"card-out",o.refs["dynamic"+$][0])}}function R(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return je(()=>{if(!f.value){const $=We().getItem(`${Ke()}configure`);$.showModel="card",We().setItem(`${Ke()}configure`,$)}}),qe(()=>h.value,()=>{dn(document,"click",T)}),{route:n,router:e,visible:h,showTags:_,instance:o,multiTags:I,showModel:f,tagsViews:w,buttonTop:u,buttonLeft:i,translateX:p,pureSetting:a,activeIndex:g,getTabStyle:G,iconIsActive:L,linkIsActive:M,currentSelect:x,scheduleIsActive:z,getContextMenuStyle:P,$t:_e,closeMenu:T,onMounted:je,onMouseenter:y,onMouseleave:C,transformI18n:ke,onContentFullScreen:R}}const ma={width:24,height:24,body:'<path fill="currentColor" d="m12 13.171l4.95-4.95l1.414 1.415L12 16L5.636 9.636L7.05 8.222l4.95 4.95Z"/>'},_a={width:24,height:24,body:'<path fill="currentColor" d="m10.828 12l4.95 4.95l-1.414 1.415L8 12l6.364-6.364l1.414 1.414l-4.95 4.95Z"/>'},ga={width:1024,height:1024,body:'<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'},ya={class:"arrow-left"},ba=["onContextmenu","onMouseenter","onMouseleave","onClick"],wa=["onClick"],ka={class:"arrow-right"},xa=["onClick"],Ca={class:"arrow-down"},Sa=le({__name:"index",setup(n){var Lt;const{route:e,router:o,visible:a,showTags:u,instance:i,multiTags:p,tagsViews:h,buttonTop:g,buttonLeft:x,showModel:f,translateX:_,pureSetting:I,activeIndex:w,getTabStyle:b,iconIsActive:L,linkIsActive:M,currentSelect:z,scheduleIsActive:G,getContextMenuStyle:P,closeMenu:T,onMounted:y,onMouseenter:C,onMouseleave:R,transformI18n:U,onContentFullScreen:$}=va(),Z=H(),he=H(),J=H(),re=H(!1),ae=(Lt=ot())==null?void 0:Lt.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}=pn(),s=()=>{const S=p.value.findIndex(A=>A.query?Be(e.query,A.query):A.params?Be(e.params,A.params):A.path===e.path);c(S)},c=async S=>{var B,ie;if(!i.refs["dynamic"+S])return;const D=i.refs["dynamic"+S][0],X=D==null?void 0:D.offsetLeft,pe=D==null?void 0:D.offsetWidth,j=J.value?(B=J.value)==null?void 0:B.offsetWidth:0;await Ne();const ne=Z.value?(ie=Z.value)==null?void 0:ie.offsetWidth:0;j<=ne?re.value=!0:re.value=!1,ne<j||X===0?_.value=0:X<-_.value?_.value=-X+10:X>-_.value&&X+pe<-_.value+j?_.value=Math.min(0,j-pe-X-10):_.value=-(X-(j-10-pe))},O=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?_.value=Math.min(0,_.value+S):A<D?_.value>=-(D-A)&&(_.value=Math.max(_.value+S,A-D)):_.value=0};function F(S,A){const D=p.value.some(pe=>pe.path===S);function X(pe,j,ne){D||pe.forEach(B=>{const ie=ne+B.path;B.path===j||ie===j?Ve().handleTags("push",{path:j,parentPath:`/${ne.split("/")[1]}`,meta:B.meta,name:B.name}):B.children&&B.children.length>0&&X(B.children,j,ne)})}X(o.options.routes,S,A)}function q(){const{fullPath:S,query:A}=t(e);o.replace({path:"/redirect"+S,query:A}),pt(e,"refresh")}function W(S,A,D){var ne,B,ie,Le;const X=p.value.findIndex(Ie=>{if(Ie.query){if(Ie.path===S.path)return Ie.query===S.query}else if(Ie.params){if(Ie.path===S.path)return Ie.params===S.params}else return Ie.path===S.path}),pe=(Ie,nn,on)=>{on?Ve().handleTags("equal",[Ee==="false"?jt[0]:xe(ot()),S]):Ve().handleTags("splice","",{startIndex:Ie,length:nn}),s()};D==="other"?pe(1,1,!0):D==="left"?pe(1,X-1):D==="right"?pe(X+1,p.value.length):pe(X,1);const j=Ve().handleTags("slice");if(A===e.path){if(D==="left")return;(ne=j[0])!=null&&ne.query?o.push({name:j[0].name,query:j[0].query}):(B=j[0])!=null&&B.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}else{if(!p.value.length||p.value.some(Ie=>Ie.path===e.path))return;(ie=j[0])!=null&&ie.query?o.push({name:j[0].name,query:j[0].query}):(Le=j[0])!=null&&Le.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}}function K(S,A){W(S,S.path,A),pt(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:q();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:Ve().handleTags("splice","",{startIndex:1,length:p.value.length}),o.push(ae),pt(e);break;case 6:l(),setTimeout(()=>{Oe.value?(h[6].icon=At,h[6].text=_e("buttons.hswholeExitFullScreen")):(h[6].icon=Ye,h[6].text=_e("buttons.hswholeFullScreen"))},100);break;case 7:$(),setTimeout(()=>{I.hiddenSideBar?(h[7].icon=At,h[7].text=_e("buttons.hscontentExitFullScreen")):(h[7].icon=Ye,h[7].text=_e("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{De(e.fullPath,e.query)})}function we(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=>{h[A].show=S})}function ze(S){Array.of(1,2,3,4,5).forEach(A=>{h[A].disabled=S})}function De(S,A={},D=!1){const X=p.value,pe=p.value.length;let j=-1;fn(A)?j=X.findIndex(ne=>ne.path===S):j=X.findIndex(ne=>Be(ne.query,A)),ee(!0),D&&(h[0].show=!0),j===1&&pe!==2?(h[2].show=!1,Array.of(1,3,4,5).forEach(ne=>{h[ne].disabled=!1}),h[2].disabled=!0):j===1&&pe===2?(ze(!1),Array.of(2,3,4).forEach(ne=>{h[ne].show=!1,h[ne].disabled=!0})):pe-1===j&&j!==0?(h[3].show=!1,Array.of(1,2,4,5).forEach(ne=>{h[ne].disabled=!1}),h[3].disabled=!0):j===0||S===`/redirect${ae}`?ze(!0):ze(!1)}function en(S,A){T(),S.path===ae?(ee(!1),h[0].show=!0):e.path!==S.path&&e.name!==S.name?(h[0].show=!1,De(S.path,S.query)):p.value.length===2&&e.path!==S.path?(ee(!0),h[4].show=!1):e.path===S.path&&De(S.path,S.query,!0),z.value=S;const D=105,X=t(he).getBoundingClientRect().left,j=t(he).offsetWidth-D,ne=A.clientX-X+5;ne>j?x.value=j:x.value=ne,$t().hiddenSideBar?g.value=A.clientY:g.value=A.clientY-40,Ne(()=>{a.value=!0})}function tn(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 qe([e],()=>{w.value=-1,s()}),qe(Oe,()=>{h[6].icon=Ye,h[6].text=_e("buttons.hswholeFullScreen")}),y(()=>{i&&(De(e.fullPath),ge.on("tagViewsChange",S=>{t(u)!==S&&(u.value=S)}),ge.on("tagViewsShowModel",S=>{f.value=S}),ge.on("changLayoutRoute",({indexPath:S,parentPath:A})=>{F(S,A),setTimeout(()=>{De(S)})}),mt(J,Dt(()=>{s()},200)))}),wt(()=>{ge.off("tagViewsChange"),ge.off("tagViewsShowModel"),ge.off("changLayoutRoute")}),(S,A)=>{const D=k("IconifyIconOffline"),X=k("router-link"),pe=k("el-dropdown-item"),j=k("el-dropdown-menu"),ne=k("el-dropdown");return t(u)?Y("",!0):(d(),V("div",{key:0,ref_key:"containerDom",ref:he,class:"tags-view"},[me(m("span",ya,[r(D,{icon:t(_a),onClick:A[0]||(A[0]=B=>O(200))},null,8,["icon"])],512),[[Se,re.value]]),m("div",{ref_key:"scrollbarDom",ref:J,class:"scroll-container"},[m("div",{class:"tab select-none",ref_key:"tabDom",ref:Z,style:te(t(b))},[(d(!0),V(be,null,Ce(t(p),(B,ie)=>(d(),V("div",{ref_for:!0,ref:"dynamic"+ie,key:ie,class:ce(["scroll-item is-closable",t(M)(B),t(e).path===B.path&&t(f)==="card"?"card-active":""]),onContextmenu:Ge(Le=>en(B,Le),["prevent"]),onMouseenter:Ge(Le=>t(C)(ie),["prevent"]),onMouseleave:Ge(Le=>t(R)(ie),["prevent"]),onClick:Le=>tn(B)},[r(X,{to:B.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:v(()=>[oe(Q(t(U)(B.meta.title)),1)]),_:2},1032,["to"]),t(L)(B,ie)||ie===t(w)&&ie!==0?(d(),V("span",{key:0,class:"el-icon-close",onClick:Ge(Le=>K(B),["stop"])},[r(D,{icon:t(ga)},null,8,["icon"])],8,wa)):Y("",!0),t(f)!=="card"?(d(),V("div",{key:1,ref_for:!0,ref:"schedule"+ie,class:ce([t(G)(B)])},null,2)):Y("",!0)],42,ba))),128))],4)],512),me(m("span",ka,[r(D,{icon:t(En),onClick:A[1]||(A[1]=B=>O(-200))},null,8,["icon"])],512),[[Se,re.value]]),r(kt,{name:"el-zoom-in-top"},{default:v(()=>[me((d(),V("ul",{key:Math.random(),style:te(t(P)),class:"contextmenu"},[(d(!0),V(be,null,Ce(t(h).slice(0,6),(B,ie)=>(d(),V("div",{key:ie,style:{display:"flex","align-items":"center"}},[B.show?(d(),V("li",{key:0,onClick:Le=>Ze(ie,B)},[r(D,{icon:B.icon},null,8,["icon"]),oe(" "+Q(t(U)(B.text)),1)],8,xa)):Y("",!0)]))),128))],4)),[[Se,t(a)]])]),_:1}),r(ne,{trigger:"click",placement:"bottom-end",onCommand:we},{dropdown:v(()=>[r(j,null,{default:v(()=>[(d(!0),V(be,null,Ce(t(h),(B,ie)=>(d(),E(pe,{key:ie,command:{key:ie,item:B},divided:B.divided,disabled:B.disabled},{default:v(()=>[r(D,{icon:B.icon},null,8,["icon"]),oe(" "+Q(t(U)(B.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:v(()=>[m("span",Ca,[r(D,{icon:t(ma),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const $a=ve(Sa,[["__scopeId","data-v-b706d8e5"]]),Ia={key:1},Ma=le({__name:"appMain",props:{fixedHeader:Boolean},setup(n){const e=n,{$storage:o,$config:a}=xt(),u=N(()=>a==null?void 0:a.KeepAlive),i=N(()=>f=>f.meta.transition),p=N(()=>o==null?void 0:o.configure.hideTabs),h=N(()=>(o==null?void 0:o.layout.layout)==="vertical"),g=N(()=>[p.value&&h?"padding-top: 48px;":"",!p.value&&h?"padding-top: 85px;":"",p.value&&!h.value?"padding-top: 48px":"",!p.value&&!h.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),x=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(f,_)=>{const I=k("el-backtop"),w=k("el-scrollbar"),b=k("router-view");return d(),V("section",{class:ce([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:te(g.value)},[r(b,null,{default:v(({Component:L,route:M})=>[e.fixedHeader?(d(),E(w,{key:0},{default:v(()=>[r(I,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:v(()=>[r(t(Ut))]),_:1}),r(t(x),{route:M},{default:v(()=>[u.value?(d(),E(Ht,{key:0,include:t(ye)().cachePageList},[(d(),E(He(L),{key:M.fullPath,class:"main-content"}))],1032,["include"])):(d(),E(He(L),{key:M.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(d(),V("div",Ia,[r(t(x),{route:M},{default:v(()=>[u.value?(d(),E(Ht,{key:0,include:t(ye)().cachePageList},[(d(),E(He(L),{key:M.fullPath,class:"main-content"}))],1032,["include"])):(d(),E(He(L),{key:M.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Ot=ve(Ma,[["__scopeId","data-v-ac212d1d"]]),Tt=n=>(st("data-v-1b3eb871"),n=n(),lt(),n),Ta=Tt(()=>m("div",{class:"right-panel-background"},null,-1)),Va={class:"right-panel-items"},za={class:"project-configuration"},La=Tt(()=>m("h4",{class:"dark:text-white"},"项目配置",-1)),Aa=Tt(()=>m("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),Ha=le({__name:"index",setup(n){const e=H(null),o=H(!1),a=N(()=>["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,u=>{u.clientX>e.value.offsetLeft||(o.value=!1)}),je(()=>{ge.on("openPanel",()=>{o.value=!0})}),wt(()=>{ge.off("openPanel")}),(u,i)=>{const p=k("IconifyIconOffline");return d(),V("div",{class:ce([{show:o.value},"right-panel-container"])},[Ta,m("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[m("div",Va,[m("div",za,[La,m("span",{title:"关闭配置",class:ce(a.value)},[r(p,{class:"dark:text-white",width:"20px",height:"20px",icon:t(Gt),onClick:i[0]||(i[0]=h=>o.value=!o.value)},null,8,["icon"])],2)]),Aa,mn(u.$slots,"default",{},void 0,!0)])],512)],2)}}});const Ea=ve(Ha,[["__scopeId","data-v-1b3eb871"]]),$e=n=>(st("data-v-1ae80617"),n=n(),lt(),n),Oa={class:"pure-theme"},Za=$e(()=>m("div",null,null,-1)),Da=$e(()=>m("div",null,null,-1)),Pa=[Za,Da],Ra=$e(()=>m("div",null,null,-1)),ja=$e(()=>m("div",null,null,-1)),qa=[Ra,ja],Ba=$e(()=>m("div",null,null,-1)),Na=$e(()=>m("div",null,null,-1)),Ua=[Ba,Na],Fa={class:"theme-color"},Wa=["onClick"],Ga={class:"setting"},Ka=$e(()=>m("span",{class:"dark:text-white"},"灰色模式",-1)),Xa=$e(()=>m("span",{class:"dark:text-white"},"色弱模式",-1)),Ja=$e(()=>m("span",{class:"dark:text-white"},"隐藏标签页",-1)),Ya=$e(()=>m("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Qa=$e(()=>m("span",{class:"dark:text-white"},"标签页持久化",-1)),es=$e(()=>m("span",{class:"dark:text-white"},"标签风格",-1)),ts=le({__name:"index",setup(n){var Oe,l;const e=at(),{isDark:o}=qt(),{device:a,tooltipEffect:u}=Te(),{$storage:i}=xt(),p=H(),h=H(),g=H(),{dataTheme:x,layoutTheme:f,themeColors:_,dataThemeChange:I,setEpThemeColor:w,setLayoutThemeColor:b}=Nt();if(t(f)){const s=t(f).layout,c=t(f).theme;Mn({scopeName:`layout-theme-${c}`}),Ee(s)}const L=H(((Oe=i.configure)==null?void 0:Oe.showModel)??"smart"),M=H(((l=i.configure)==null?void 0:l.showLogo)??!0),z=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=N(()=>s=>({background:s})),P=N(()=>s=>!(s==="light"&&o.value));function T(s,c){const O=i.configure;O[s]=c,i.configure=O}function y(s,c,O){const F=O||document.body;let{className:q}=F;q=q.replace(c,"").trim(),F.className=s?`${q} ${c} `:q}const C=s=>{y(z.greyVal,"html-grey",document.querySelector("html")),T("grey",s)},R=s=>{y(z.weakVal,"html-weakness",document.querySelector("html")),T("weak",s)},U=()=>{const s=z.tabsVal;T("hideTabs",s),ge.emit("tagViewsChange",s)},$=()=>{const s=z.multiTagsCache;T("multiTagsCache",s),Ve().multiTagsCacheChange(s)};function Z(){_n(),We().clear(),gn().clear();const{Grey:s,Weak:c,MultiTagsCache:O,EpThemeColor:F,Layout:q}=Je();Re().setLayout(q),w(F),Ve().multiTagsCacheChange(O),y(s,"html-grey",document.querySelector("html")),y(c,"html-weakness",document.querySelector("html")),e.push("/login"),Ve().handleTags("equal",[...jt]),yn()}function he(s){T("showModel",s),ge.emit("tagViewsShowModel",s)}function J(){t(M)?T("showLogo",!0):T("showLogo",!1),ge.emit("logoChange",t(M))}function re(s){s.forEach(c=>{y(!1,"is-select",t(c))})}const ae=N(()=>s=>s===f.value.theme&&f.value.theme!=="light"?"#fff":s===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent");function Ee(s){var c,O,F;f.value.layout=s,window.document.body.setAttribute("layout",s),i.layout={layout:s,theme:f.value.theme,darkMode:(c=i.layout)==null?void 0:c.darkMode,sidebarStatus:(O=i.layout)==null?void 0:O.sidebarStatus,epThemeColor:(F=i.layout)==null?void 0:F.epThemeColor},Re().setLayout(s)}return qe(i,({layout:s})=>{switch(s.layout){case"vertical":y(!0,"is-select",t(h)),Fe(re([g]),50),Fe(re([p]),50);break;case"horizontal":y(!0,"is-select",t(g)),Fe(re([h]),50),Fe(re([p]),50);break;case"mix":y(!0,"is-select",t(p)),Fe(re([h]),50),Fe(re([g]),50);break}}),Bt(()=>{Ne(()=>{var s,c;z.greyVal&&((s=document.querySelector("html"))==null||s.setAttribute("class","html-grey")),z.weakVal&&((c=document.querySelector("html"))==null||c.setAttribute("class","html-weakness")),z.tabsVal&&U()})}),(s,c)=>{const O=k("el-divider"),F=k("el-switch"),q=k("el-tooltip"),W=k("IconifyIconOffline"),K=k("el-icon"),se=k("el-radio"),we=k("el-radio-group"),Ze=k("el-button");return d(),E(Ea,null,{default:v(()=>[r(O,null,{default:v(()=>[oe("主题")]),_:1}),r(F,{modelValue:t(x),"onUpdate:modelValue":c[0]||(c[0]=ee=>Pt(x)?x.value=ee:null),"inline-prompt":"",class:"pure-datatheme","active-icon":t(Tn),"inactive-icon":t(Vn),onChange:t(I)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),r(O,null,{default:v(()=>[oe("导航栏模式")]),_:1}),m("ul",Oa,[r(q,{effect:t(u),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:ce(t(f).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:h,onClick:c[1]||(c[1]=ee=>Ee("vertical"))},Pa,2)]),_:1},8,["effect"]),t(a)!=="mobile"?(d(),E(q,{key:0,effect:t(u),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:ce(t(f).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:g,onClick:c[2]||(c[2]=ee=>Ee("horizontal"))},qa,2)]),_:1},8,["effect"])):Y("",!0),t(a)!=="mobile"?(d(),E(q,{key:1,effect:t(u),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:ce(t(f).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:p,onClick:c[3]||(c[3]=ee=>Ee("mix"))},Ua,2)]),_:1},8,["effect"])):Y("",!0)]),r(O,null,{default:v(()=>[oe("主题色")]),_:1}),m("ul",Fa,[(d(!0),V(be,null,Ce(t(_),(ee,ze)=>me((d(),V("li",{key:ze,style:te(G.value(ee.color)),onClick:De=>t(b)(ee.themeColor)},[r(K,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:ae.value(ee.themeColor)},{default:v(()=>[r(W,{icon:t(Ue)},null,8,["icon"])]),_:2},1032,["color"])],12,Wa)),[[Se,P.value(ee.themeColor)]])),128))]),r(O,null,{default:v(()=>[oe("界面显示")]),_:1}),m("ul",Ga,[m("li",null,[Ka,r(F,{modelValue:z.greyVal,"onUpdate:modelValue":c[4]||(c[4]=ee=>z.greyVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:C},null,8,["modelValue"])]),m("li",null,[Xa,r(F,{modelValue:z.weakVal,"onUpdate:modelValue":c[5]||(c[5]=ee=>z.weakVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:R},null,8,["modelValue"])]),m("li",null,[Ja,r(F,{modelValue:z.tabsVal,"onUpdate:modelValue":c[6]||(c[6]=ee=>z.tabsVal=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:U},null,8,["modelValue"])]),m("li",null,[Ya,r(F,{modelValue:M.value,"onUpdate:modelValue":c[7]||(c[7]=ee=>M.value=ee),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:J},null,8,["modelValue"])]),m("li",null,[Qa,r(F,{modelValue:z.multiTagsCache,"onUpdate:modelValue":c[8]||(c[8]=ee=>z.multiTagsCache=ee),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:$},null,8,["modelValue"])]),m("li",null,[es,r(we,{modelValue:L.value,"onUpdate:modelValue":c[9]||(c[9]=ee=>L.value=ee),size:"small",onChange:he},{default:v(()=>[r(se,{label:"card"},{default:v(()=>[oe("卡片")]),_:1}),r(se,{label:"smart"},{default:v(()=>[oe("灵动")]),_:1})]),_:1},8,["modelValue"])])]),r(O),r(Ze,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:Z},{default:v(()=>[r(W,{icon:t(it),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),oe(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const ns=ve(ts,[["__scopeId","data-v-1ae80617"]]),Vt="/vue-pure-admin/logo.svg",Kt=n=>(st("data-v-79ec1141"),n=n(),lt(),n),os=Kt(()=>m("img",{src:Vt,alt:"logo"},null,-1)),as={class:"sidebar-title"},ss=Kt(()=>m("img",{src:Vt,alt:"logo"},null,-1)),ls={class:"sidebar-title"},rs=le({__name:"logo",props:{collapse:Boolean},setup(n){const e=n,{title:o}=Te();return(a,u)=>{const i=k("router-link");return d(),V("div",{class:ce(["sidebar-logo-container",{collapses:e.collapse}])},[r(kt,{name:"sidebarLogoFade"},{default:v(()=>{var p,h;return[e.collapse?(d(),E(i,{key:"props.collapse",title:t(o),class:"sidebar-logo-link",to:((p=t(ot)())==null?void 0:p.path)??"/"},{default:v(()=>[os,m("span",as,Q(t(o)),1)]),_:1},8,["title","to"])):(d(),E(i,{key:"expand",title:t(o),class:"sidebar-logo-link",to:((h=t(ot)())==null?void 0:h.path)??"/"},{default:v(()=>[ss,m("span",ls,Q(t(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}});const is=ve(rs,[["__scopeId","data-v-79ec1141"]]);var et={exports:{}},Xt={},cs=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 us=vt.exports;(function(n){var e=/%[sdj%]/g;n.format=function(l){if(!P(l)){for(var s=[],c=0;c<arguments.length;c++)s.push(u(arguments[c]));return s.join(" ")}for(var c=1,O=arguments,F=O.length,q=String(l).replace(e,function(K){if(K==="%%")return"%";if(c>=F)return K;switch(K){case"%s":return String(O[c++]);case"%d":return Number(O[c++]);case"%j":try{return JSON.stringify(O[c++])}catch{return"[Circular]"}default:return K}}),W=O[c];c<F;W=O[++c])M(W)||!R(W)?q+=" "+W:q+=" "+u(W);return q},n.deprecate=function(l,s){if(y(bn.process))return function(){return n.deprecate(l,s).apply(this,arguments)};if(process.noDeprecation===!0)return l;var c=!1;function O(){if(!c){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),c=!0}return l.apply(this,arguments)}return O};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 c=n.format.apply(n,arguments);console.error("%s %d: %s",l,s,c)}}else o[l]=function(){};return o[l]};function u(l,s){var c={seen:[],stylize:p};return arguments.length>=3&&(c.depth=arguments[2]),arguments.length>=4&&(c.colors=arguments[3]),L(s)?c.showHidden=s:s&&n._extend(c,s),y(c.showHidden)&&(c.showHidden=!1),y(c.depth)&&(c.depth=2),y(c.colors)&&(c.colors=!1),y(c.customInspect)&&(c.customInspect=!0),c.colors&&(c.stylize=i),g(c,l,c.depth)}n.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(l,s){var c=u.styles[s];return c?"\x1B["+u.colors[c][0]+"m"+l+"\x1B["+u.colors[c][1]+"m":l}function p(l,s){return l}function h(l){var s={};return l.forEach(function(c,O){s[c]=!0}),s}function g(l,s,c){if(l.customInspect&&s&&Z(s.inspect)&&s.inspect!==n.inspect&&!(s.constructor&&s.constructor.prototype===s)){var O=s.inspect(c,l);return P(O)||(O=g(l,O,c)),O}var F=x(l,s);if(F)return F;var q=Object.keys(s),W=h(q);if(l.showHidden&&(q=Object.getOwnPropertyNames(s)),$(s)&&(q.indexOf("message")>=0||q.indexOf("description")>=0))return f(s);if(q.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(U(s))return l.stylize(Date.prototype.toString.call(s),"date");if($(s))return f(s)}var se="",we=!1,Ze=["{","}"];if(b(s)&&(we=!0,Ze=["[","]"]),Z(s)){var ee=s.name?": "+s.name:"";se=" [Function"+ee+"]"}if(C(s)&&(se=" "+RegExp.prototype.toString.call(s)),U(s)&&(se=" "+Date.prototype.toUTCString.call(s)),$(s)&&(se=" "+f(s)),q.length===0&&(!we||s.length==0))return Ze[0]+se+Ze[1];if(c<0)return C(s)?l.stylize(RegExp.prototype.toString.call(s),"regexp"):l.stylize("[Object]","special");l.seen.push(s);var ze;return we?ze=_(l,s,c,W,q):ze=q.map(function(De){return I(l,s,c,W,De,we)}),l.seen.pop(),w(ze,se,Ze)}function x(l,s){if(y(s))return l.stylize("undefined","undefined");if(P(s)){var c="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(c,"string")}if(G(s))return l.stylize(""+s,"number");if(L(s))return l.stylize(""+s,"boolean");if(M(s))return l.stylize("null","null")}function f(l){return"["+Error.prototype.toString.call(l)+"]"}function _(l,s,c,O,F){for(var q=[],W=0,K=s.length;W<K;++W)Oe(s,String(W))?q.push(I(l,s,c,O,String(W),!0)):q.push("");return F.forEach(function(se){se.match(/^\d+$/)||q.push(I(l,s,c,O,se,!0))}),q}function I(l,s,c,O,F,q){var W,K,se;if(se=Object.getOwnPropertyDescriptor(s,F)||{value:s[F]},se.get?se.set?K=l.stylize("[Getter/Setter]","special"):K=l.stylize("[Getter]","special"):se.set&&(K=l.stylize("[Setter]","special")),Oe(O,F)||(W="["+F+"]"),K||(l.seen.indexOf(se.value)<0?(M(c)?K=g(l,se.value,null):K=g(l,se.value,c-1),K.indexOf(`
|
||
`)>-1&&(q?K=K.split(`
|
||
`).map(function(we){return" "+we}).join(`
|
||
`).substr(2):K=`
|
||
`+K.split(`
|
||
`).map(function(we){return" "+we}).join(`
|
||
`))):K=l.stylize("[Circular]","special")),y(W)){if(q&&F.match(/^\d+$/))return K;W=JSON.stringify(""+F),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 w(l,s,c){var O=l.reduce(function(F,q){return q.indexOf(`
|
||
`)>=0,F+q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return O>60?c[0]+(s===""?"":s+`
|
||
`)+" "+l.join(`,
|
||
`)+" "+c[1]:c[0]+s+" "+l.join(", ")+" "+c[1]}function b(l){return Array.isArray(l)}n.isArray=b;function L(l){return typeof l=="boolean"}n.isBoolean=L;function M(l){return l===null}n.isNull=M;function z(l){return l==null}n.isNullOrUndefined=z;function G(l){return typeof l=="number"}n.isNumber=G;function P(l){return typeof l=="string"}n.isString=P;function T(l){return typeof l=="symbol"}n.isSymbol=T;function y(l){return l===void 0}n.isUndefined=y;function C(l){return R(l)&&J(l)==="[object RegExp]"}n.isRegExp=C;function R(l){return typeof l=="object"&&l!==null}n.isObject=R;function U(l){return R(l)&&J(l)==="[object Date]"}n.isDate=U;function $(l){return R(l)&&(J(l)==="[object Error]"||l instanceof Error)}n.isError=$;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=cs;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=us,n._extend=function(l,s){if(!s||!R(s))return l;for(var c=Object.keys(s),O=c.length;O--;)l[c[O]]=s[c[O]];return l};function Oe(l,s){return Object.prototype.hasOwnProperty.call(l,s)}})(Xt);var ds=process.platform==="win32",Me=Xt;function ct(n,e){for(var o=[],a=0;a<n.length;a++){var u=n[a];!u||u==="."||(u===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(u))}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 Jt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,hs=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ue={};function ut(n){var e=Jt.exec(n),o=(e[1]||"")+(e[2]||""),a=e[3]||"",u=hs.exec(a),i=u[1],p=u[2],h=u[3];return[o,i,p,h]}function zt(n){var e=Jt.exec(n),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Yt(n){return"\\\\"+n.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ue.resolve=function(){for(var n="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var u;if(a>=0?u=arguments[a]:n?(u=process.env["="+n],(!u||u.substr(0,3).toLowerCase()!==n.toLowerCase()+"\\")&&(u=n+"\\")):u=process.cwd(),Me.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var i=zt(u),p=i.device,h=i.isUnc,g=i.isAbsolute,x=i.tail;if(!(p&&n&&p.toLowerCase()!==n.toLowerCase())&&(n||(n=p),o||(e=x+"\\"+e,o=g),n&&o))break}return h&&(n=Yt(n)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),n+(o?"\\":"")+e||"."};ue.normalize=function(n){var e=zt(n),o=e.device,a=e.isUnc,u=e.isAbsolute,i=e.tail,p=/[\\\/]$/.test(i);return i=ct(i.split(/[\\\/]+/),!u).join("\\"),!i&&!u&&(i="."),i&&p&&(i+="\\"),a&&(o=Yt(o)),o+(u?"\\":"")+i};ue.isAbsolute=function(n){return zt(n).isAbsolute};ue.join=function(){for(var n=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Me.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(),u=Qe(e.split("\\")),i=Qe(o.split("\\")),p=Qe(a.split("\\")),h=Math.min(i.length,p.length),g=h,x=0;x<h;x++)if(i[x]!==p[x]){g=x;break}if(g==0)return e;for(var f=[],x=g;x<i.length;x++)f.push("..");return f=f.concat(u.slice(g)),f.join("\\")};ue._makeLong=function(n){if(!Me.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=ut(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=ut(n)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};ue.extname=function(n){return ut(n)[3]};ue.format=function(n){if(!Me.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Me.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(!Me.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=ut(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 ps=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,de={};function dt(n){return ps.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(Me.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");n=a+"/"+n,e=a[0]==="/"}return n=ct(n.split("/"),!e).join("/"),(e?"/":"")+n||"."};de.normalize=function(n){var e=de.isAbsolute(n),o=n&&n[n.length-1]==="/";return n=ct(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(!Me.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("/")),u=Math.min(o.length,a.length),i=u,p=0;p<u;p++)if(o[p]!==a[p]){i=p;break}for(var h=[],p=i;p<o.length;p++)h.push("..");return h=h.concat(a.slice(i)),h.join("/")};de._makeLong=function(n){return n};de.dirname=function(n){var e=dt(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=dt(n)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};de.extname=function(n){return dt(n)[3]};de.format=function(n){if(!Me.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Me.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(!Me.isString(n))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=dt(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=":";ds?et.exports=ue:et.exports=de;et.exports.posix=de;et.exports.win32=ue;var fs=et.exports;const vs=wn(fs),ms={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"/>'},_s={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"/>'},gs={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"/>'},ys={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"/>'},bs={key:0},ws={key:1},Qt=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:u,getDivStyle:i}=Te(),p=N(()=>({width:"100%",textAlign:"center"})),h=N(()=>({display:"flex",alignItems:"center"})),g=N(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),x=N(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),f=N(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),_=N(()=>T=>{var y;return a.value?{width:"100%",textAlign:(T==null?void 0:T.parentId)===null||o.value==="mix"&&((y=T==null?void 0:T.pathList)==null?void 0:y.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),I=N(()=>{var T;return(T=Je())!=null&&T.MenuArrowIconNoTransition?{"expand-close-icon":Ae(_s),"expand-open-icon":Ae(ms),"collapse-close-icon":Ae(ys),"collapse-open-icon":Ae(gs)}:""}),w=H(null),b=new WeakMap,L=H(null);function M(T){b.get(T)||Ne(()=>{var y,C;((y=L.value)==null?void 0:y.scrollWidth)>((C=L.value)==null?void 0:C.clientWidth)?Object.assign(T,{showTooltip:!0}):Object.assign(T,{showTooltip:!1}),b.set(T,!0)})}function z(T,y){var R;const C=((T==null?void 0:T.length)>1?T.toString().slice(0,1):T)+"...";return y&&!(a.value&&(y==null?void 0:y.parentId)===null)?o.value==="mix"&&((R=y==null?void 0:y.pathList)==null?void 0:R.length)===2&&a.value?C:T:C}function G(T=[],y){var R,U;const C=T.filter($=>(w.value=$,!0));return(U=(R=C[0])==null?void 0:R.meta)!=null&&U.showParent?!1:C.length===1?!0:C.length===0?(w.value={...y,path:"",noShowingChildren:!0},!0):!1}function P(T){const y=/^http(s?):\/\//;return y.test(T)||y.test(e.basePath)?T||e.basePath:vs.posix.resolve(e.basePath,T)}return(T,y)=>{const C=k("el-tooltip"),R=k("el-menu-item"),U=k("sidebar-item",!0),$=k("el-sub-menu");return G(e.item.children,e.item)&&(!w.value.children||w.value.noShowingChildren)?(d(),E(R,{key:0,index:P(w.value.path),class:ce({"submenu-title-noDropdown":!n.isNest}),style:te(h.value)},{title:v(()=>[m("div",{style:te(t(i))},[t(o)==="horizontal"?(d(),V("span",bs,Q(t(ke)(w.value.meta.title)),1)):(d(),E(C,{key:1,placement:"top",effect:t(u),offset:-10,disabled:!w.value.showTooltip},{content:v(()=>[oe(Q(t(ke)(w.value.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:te(g.value),onMouseover:y[0]||(y[0]=Z=>M(w.value))},Q(t(ke)(w.value.meta.title)),37)]),_:1},8,["effect","disabled"])),r(ft,{extraIcon:w.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:v(()=>{var Z,he,J,re,ae;return[xe(e.item.meta.icon)?(d(),V("div",{key:0,class:"sub-menu-icon",style:te(x.value)},[(d(),E(He(t(Ae)(xe(w.value.meta.icon)||e.item.meta&&xe(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?(d(),V("span",{key:1,style:te(p.value)},Q(z(t(ke)(w.value.meta.title))),5)):Y("",!0),!w.value.meta.icon&&t(a)&&t(o)==="mix"&&((ae=(re=e.item)==null?void 0:re.pathList)==null?void 0:ae.length)===2?(d(),V("span",{key:2,style:te(p.value)},Q(z(t(ke)(w.value.meta.title))),5)):Y("",!0)]}),_:1},8,["index","class","style"])):(d(),E($,kn({key:1,ref:"subMenu"},I.value,{index:P(e.item.path)}),{title:v(()=>[xe(e.item.meta.icon)?(d(),V("div",{key:0,style:te(x.value),class:"sub-menu-icon"},[(d(),E(He(t(Ae)(e.item.meta&&xe(e.item.meta.icon)))))],4)):Y("",!0),t(o)==="horizontal"?(d(),V("span",ws,Q(t(ke)(e.item.meta.title)),1)):Y("",!0),t(a)&&xe(e.item.meta.icon)&&e.item.parentId===null?Y("",!0):(d(),V("div",{key:2,style:te(_.value(e.item))},[t(o)!=="horizontal"?(d(),E(C,{key:0,placement:"top",effect:t(u),offset:-10,disabled:!e.item.showTooltip},{content:v(()=>[oe(Q(t(ke)(e.item.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:te(f.value),onMouseover:y[1]||(y[1]=Z=>M(e.item))},Q(z(t(ke)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Y("",!0),t(a)?Y("",!0):(d(),E(ft,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:v(()=>[(d(!0),V(be,null,Ce(e.item.children,Z=>(d(),E(U,{key:Z.path,"is-nest":!0,item:Z,"base-path":P(Z.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),ks={class:"container"},xs=le({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=H(!1),{tooltipEffect:u}=Te(),i=N(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[100ms]","hover:text-primary","dark:hover:!text-white"]),p=()=>{e("toggleClick")};return(h,g)=>{const x=k("IconifyIconOffline"),f=k("el-tooltip");return d(),V("div",ks,[r(f,{placement:"right",visible:a.value,effect:t(u),content:o.isActive?"点击折叠":"点击展开"},{default:v(()=>[r(x,{icon:t(Wt),class:ce(i.value),style:te({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:p,onMouseenter:g[0]||(g[0]=_=>a.value=!0),onMouseleave:g[1]||(g[1]=_=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Cs=ve(xs,[["__scopeId","data-v-ed074d28"]]),Ss=le({__name:"vertical",setup(n){var w;const e=yt(),o=H(((w=We().getItem(`${Ke()}configure`))==null?void 0:w.showLogo)??!0),{routers:a,device:u,pureApp:i,isCollapse:p,menuSelect:h,toggleSideBar:g}=Te(),x=H([]),f=N(()=>i.layout==="mix"&&u.value!=="mobile"?x.value:ye().wholeMenus),_=N(()=>i.layout==="mix"?!1:f.value.length===0);function I(b){x.value=[];const L=gt(b,ye().wholeMenus),M=nt(L[0]||b,ye().wholeMenus);M!=null&&M.children&&(x.value=M==null?void 0:M.children)}return I(e.path),qe(()=>[e.path,ye().wholeMenus],()=>{e.path.includes("/redirect")||(I(e.path),h(e.path,a))}),je(()=>{ge.on("logoChange",b=>{o.value=b})}),wt(()=>{ge.off("logoChange")}),(b,L)=>{const M=k("el-menu"),z=k("el-scrollbar"),G=_t("loading");return me((d(),V("div",{class:ce(["sidebar-container",o.value?"has-logo":""])},[o.value?(d(),E(is,{key:0,collapse:t(p)},null,8,["collapse"])):Y("",!0),r(z,{"wrap-class":"scrollbar-wrapper",class:ce([t(u)==="mobile"?"mobile":"pc"])},{default:v(()=>[r(M,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:t(p),"default-active":t(e).path,"collapse-transition":!1,onSelect:L[0]||(L[0]=P=>t(h)(P,t(a)))},{default:v(()=>[(d(!0),V(be,null,Ce(f.value,P=>(d(),E(Qt,{key:P.path,item:P,"base-path":P.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),t(u)!=="mobile"?(d(),E(Cs,{key:1,"is-active":t(i).sidebar.opened,onToggleClick:t(g)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[G,_.value]])}}});const $s=ve(Ss,[["__scopeId","data-v-0b98d1ac"]]),Is=n=>(st("data-v-01984c7c"),n=n(),lt(),n),Ms={class:"horizontal-header"},Ts=Is(()=>m("img",{src:Vt,alt:"logo"},null,-1)),Vs={class:"horizontal-header-right"},zs={class:"check-zh"},Ls={class:"check-en"},As={class:"el-dropdown-link navbar-bg-hover"},Hs=["src"],Es={key:0,class:"dark:text-white"},Os=["title"],Zs=le({__name:"horizontal",setup(n){const e=H(),{t:o,route:a,locale:u,translationCh:i,translationEn:p}=Ct(e),{title:h,routers:g,logout:x,backTopMenu:f,onPanel:_,menuSelect:I,username:w,userAvatar:b,avatarsStyle:L,getDropdownItemStyle:M,getDropdownItemClass:z}=Te();return Ne(()=>{var G;(G=e.value)==null||G.handleResize()}),qe(()=>a.path,()=>{I(a.path,g)}),(G,P)=>{const T=k("el-menu"),y=k("IconifyIconOffline"),C=k("el-dropdown-item"),R=k("el-dropdown-menu"),U=k("el-dropdown"),$=_t("loading");return me((d(),V("div",Ms,[m("div",{class:"horizontal-header-left",onClick:P[0]||(P[0]=(...Z)=>t(f)&&t(f)(...Z))},[Ts,m("span",null,Q(t(h)),1)]),r(T,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":t(a).path,onSelect:P[1]||(P[1]=Z=>t(I)(Z,t(g)))},{default:v(()=>[(d(!0),V(be,null,Ce(t(ye)().wholeMenus,Z=>(d(),E(Qt,{key:Z.path,item:Z,"base-path":Z.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),m("div",Vs,[r(It),r(Mt,{id:"header-notice"}),r(U,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[r(R,{class:"translation"},{default:v(()=>[r(C,{style:te(t(M)(t(u),"zh")),class:ce(["dark:!text-white",t(z)(t(u),"zh")]),onClick:t(i)},{default:v(()=>[me(m("span",zs,[r(y,{icon:t(Ue)},null,8,["icon"])],512),[[Se,t(u)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),r(C,{style:te(t(M)(t(u),"en")),class:ce(["dark:!text-white",t(z)(t(u),"en")]),onClick:t(p)},{default:v(()=>[me(m("span",Ls,[r(y,{icon:t(Ue)},null,8,["icon"])],512),[[Se,t(u)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[r(t(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),r(U,{trigger:"click"},{dropdown:v(()=>[r(R,{class:"logout"},{default:v(()=>[r(C,{onClick:t(x)},{default:v(()=>[r(y,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+Q(t(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",As,[m("img",{src:t(b),style:te(t(L))},null,12,Hs),t(w)?(d(),V("p",Es,Q(t(w)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(o)("buttons.hssystemSet"),onClick:P[2]||(P[2]=(...Z)=>t(_)&&t(_)(...Z))},[r(y,{icon:t(rt)},null,8,["icon"])],8,Os)])])),[[$,t(ye)().wholeMenus.length===0]])}}});const Ds=ve(Zs,[["__scopeId","data-v-01984c7c"]]),Ps={key:0},Rs=le({__name:"index",setup(n){const e=H(),{isDark:o}=qt(),{layout:a}=zn(),u=Rt(),i=$t(),{$storage:p}=xt(),h=bt({sidebar:N(()=>Re().sidebar),device:N(()=>Re().device),fixedHeader:N(()=>i.fixedHeader),classes:N(()=>({hideSidebar:!h.sidebar.opened,openSidebar:h.sidebar.opened,withoutAnimation:h.sidebar.withoutAnimation,mobile:h.device==="mobile"})),hideTabs:N(()=>p==null?void 0:p.configure.hideTabs)});function g(I){var w,b,L,M;window.document.body.setAttribute("layout",I),p.layout={layout:`${I}`,theme:(w=p.layout)==null?void 0:w.theme,darkMode:(b=p.layout)==null?void 0:b.darkMode,sidebarStatus:(L=p.layout)==null?void 0:L.sidebarStatus,epThemeColor:(M=p.layout)==null?void 0:M.epThemeColor}}function x(I,w){Re().toggleDevice(I),Re().toggleSideBar(w,"resize")}let f=!0;mt(e,I=>{if(u)return;const w=I[0],{width:b}=w.contentRect;b<=760?g("vertical"):g(Re().layout),b>0&&b<=760?(x("mobile",!1),f=!0):b>760&&b<=990?f&&(x("desktop",!1),f=!1):b>990&&!h.sidebar.isClickCollapse?(x("desktop",!0),f=!0):(x("desktop",!1),f=!1)}),je(()=>{u&&x("mobile",!1)}),Bt(()=>{Nt().dataThemeChange()});const _=le({render(){return Xe("div",{class:{"fixed-header":h.fixedHeader},style:[h.hideTabs&&a.value.includes("horizontal")?o.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!i.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?Xe(ua):null,!i.hiddenSideBar&&a.value.includes("horizontal")?Xe(Ds):null,Xe($a)]})}});return(I,w)=>{const b=k("el-backtop"),L=k("el-scrollbar");return d(),V("div",{ref_key:"appWrapperRef",ref:e,class:ce(["app-wrapper",h.classes])},[me(m("div",{class:"app-mask",onClick:w[0]||(w[0]=M=>t(Re)().toggleSideBar())},null,512),[[Se,h.device==="mobile"&&h.sidebar.opened&&t(a).includes("vertical")]]),me(r($s,null,null,512),[[Se,!t(i).hiddenSideBar&&(t(a).includes("vertical")||t(a).includes("mix"))]]),m("div",{class:ce(["main-container",t(i).hiddenSideBar?"main-hidden":""])},[h.fixedHeader?(d(),V("div",Ps,[r(t(_)),r(Ot,{"fixed-header":h.fixedHeader},null,8,["fixed-header"])])):(d(),E(L,{key:1},{default:v(()=>[r(b,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:v(()=>[r(t(Ut))]),_:1}),r(t(_)),r(Ot,{"fixed-header":h.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),r(ns)],2)}}});const nl=ve(Rs,[["__scopeId","data-v-203a800b"]]);export{nl as default};
|