mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
11 lines
74 KiB
JavaScript
11 lines
74 KiB
JavaScript
import{a_ as he,ar as en,au as Xe,av as tn,f as h,k as I,i as m,d as se,Y as nn,x as F,F as ge,l as ke,A as ne,e as H,Q as Ae,u as t,C as ee,g as i,_ as ve,c as x,h as oe,a$ as ot,r as D,aV as on,K as an,D as _e,w as v,am as Et,G as be,aS as Ot,a4 as Zt,ae as Y,n as Re,aW as we,a as Qe,y as Ne,j as at,m as pe,ab as re,ac as xe,b0 as _t,b1 as nt,aZ as gt,b2 as Me,aa as sn,aY as We,b3 as Be,a6 as ln,as as Ue,at as Ge,a7 as yt,b4 as me,b5 as rn,b6 as tt,ag as Pe,b7 as pt,a8 as bt,b8 as He,b9 as wt,ba as ht,bb as cn,bc as Dt,bd as kt,be as zt,L as Ke,al as un,p as st,q as lt,an as Pt,bf as dn,bg as hn,bh as fn,N as Fe,Z as pn,O as vn,aD as mn}from"./index-0dd8d5e4.js";import{d as _n}from"./menu-a4fe64fb.js";import{d as gn}from"./edit-d219f0c6.js";import{d as yn}from"./set-up-e6942411.js";import{d as bn}from"./admin-line-92b9acda.js";import{d as wn}from"./git-branch-line-aa4cb38f.js";import{u as Te,a as xt,g as Ct,b as kn,t as xn,d as Cn,c as $n,e as Sn}from"./dark-8da7fda0.js";import{u as je}from"./app-9580cee8.js";import{u as In}from"./epTheme-ec99570c.js";import{u as Le}from"./hooks-62079556.js";import{o as ft,u as Mn,a as Tn,b as Vn,c as zn}from"./index-95b65695.js";import{d as jt}from"./search-cc37b371.js";import{d as qe}from"./check-3815600c.js";import{d as Ln}from"./refresh-right-6177e75c.js";import{d as An}from"./arrow-right-s-line-2977cc7e.js";const Hn={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"/>'},En={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"/>'},On={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"/>'},Zn={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"/>'},Dn={width:1024,height:1024,body:'<path fill="currentColor" d="M512 128L128 447.936V896h255.936V640H640v256h255.936V447.936z"/>'},Pn={width:24,height:24,body:'<path fill="currentColor" d="M3.005 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm17 8h-16v8h16v-8Zm0-2V5h-16v4h16Zm-6 6h4v2h-4v-2Z"/>'},jn={width:24,height:24,body:'<path fill="currentColor" d="M8 4h13v2H8V4Zm-5-.5h3v3H3v-3Zm0 7h3v3H3v-3Zm0 7h3v3H3v-3ZM8 11h13v2H8v-2Zm0 7h13v2H8v-2Z"/>'},Nn={width:1024,height:1024,body:'<path fill="currentColor" d="M416 896V128h192v768H416zm-288 0V448h192v448H128zm576 0V320h192v576H704z"/>'},Bn={width:24,height:24,body:'<path fill="currentColor" d="m2.859 2.878l12.57-1.796a.5.5 0 0 1 .571.495v20.847a.5.5 0 0 1-.57.495L2.858 21.123a1 1 0 0 1-.859-.99V3.868a1 1 0 0 1 .859-.99ZM4 4.735v14.53l10 1.43V3.305L4 4.735ZM17 19h3V5h-3V3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4v-2ZM5 8h8v6H7v2H5V8Zm2 2v2h4v-2H7Z"/>'},Rn={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"/>'},qn={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"/>'},Fn={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"/>'},Un={width:1024,height:1024,body:'<path fill="currentColor" d="M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H544zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H192z"/>'};he("ubuntuFill",Hn);he("menu",_n);he("edit",gn);he("informationLine",En);he("setUp",yn);he("terminalWindowLine",On);he("guide",Zn);he("homeFilled",Dn);he("card",Pn);he("listCheck",jn);he("histogram",Nn);he("ppt",Bn);he("checkboxCircleLine",Rn);he("flUser",bn);he("role",qn);he("setting",rt);he("dept",wn);he("lollipop",Fn);he("monitor",Un);const Wn=en({id:"pure-setting",state:()=>({title:Xe().Title,fixedHeader:Xe().FixedHeader,hiddenSideBar:Xe().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 Wn(tn)}const Gn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},Kn=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),Xn=[Kn];function Jn(n,e){return h(),I("svg",Gn,Xn)}const Nt={render:Jn},Yn={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"/>'},Qn={class:"result"},eo=["onMouseenter"],to={class:"result-item-title"},no=se({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(n,{emit:e}){const o=n,{t:a}=nn(),u=F(()=>f=>({background:(f==null?void 0:f.path)===r.value?In().epThemeColor:"",color:f.path===r.value?"#fff":"",fontSize:f.path===r.value?"16px":"14px"})),r=F({get(){return o.value},set(f){e("update:value",f)}});async function c(f){r.value=f.path}function _(){e("enter")}return(f,$)=>(h(),I("div",Qn,[(h(!0),I(ge,null,ke(f.options,g=>{var p,y;return h(),I("div",{key:g.path,class:"result-item dark:bg-[#1d1d1d]",style:ne(u.value(g)),onClick:_,onMouseenter:C=>c(g)},[(h(),H(Ae(t(Le)(((p=g.meta)==null?void 0:p.icon)??t(Yn))))),m("span",to,ee(t(a)((y=g.meta)==null?void 0:y.title)),1),i(t(Nt))],44,eo)}),128))]))}});const oo=ve(no,[["__scopeId","data-v-2bcad0d6"]]),ao={width:24,height:24,body:'<path fill="currentColor" d="M13 7.828V20h-2V7.828l-5.364 5.364l-1.414-1.414L12 4l7.778 7.778l-1.414 1.414L13 7.828Z"/>'},so={width:24,height:24,body:'<path fill="currentColor" d="m13 16.172l5.364-5.364l1.414 1.414L12 20l-7.778-7.778l1.414-1.414L11 16.172V4h2v12.172Z"/>'},lo={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},ro=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),io=[ro];function co(n,e){return h(),I("svg",lo,io)}const uo={render:co},ho={class:"search-footer text-[#333] dark:text-white"},fo={class:"search-footer-item"},po={class:"search-footer-item"},vo={class:"search-footer-item"},mo=se({__name:"SearchFooter",setup(n){return(e,o)=>{const a=x("IconifyIconOffline");return h(),I("div",ho,[m("span",fo,[i(t(Nt),{class:"icon"}),oe(" 确认 ")]),m("span",po,[i(a,{icon:t(ao),class:"icon"},null,8,["icon"]),i(a,{icon:t(so),class:"icon"},null,8,["icon"]),oe(" 切换 ")]),m("span",vo,[i(t(uo),{class:"icon"}),oe(" 关闭 ")])])}}});const _o=ve(mo,[["__scopeId","data-v-8f46a26f"]]),go={class:"el-input__icon"},yo={class:"search-result-container"},bo=se({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(n,{emit:e}){const o=n,{device:a}=Te(),u=ot(),r=D(""),c=D(""),_=D(null),f=on([]),$=Et(C,300),g=F(()=>an(_e().wholeMenus)),p=F({get(){return o.value},set(Z){e("update:value",Z)}});function y(Z){const M=[];function b(w){w.forEach(j=>{M.push(j),j.children&&b(j.children)})}return b(Z),M}function C(){var M;const Z=y(g.value);f.value=Z.filter(b=>{var w;return r.value&&be((w=b.meta)==null?void 0:w.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())}),((M=f.value)==null?void 0:M.length)>0?c.value=f.value[0].path:c.value=""}function E(){p.value=!1,setTimeout(()=>{f.value=[],r.value=""},200)}function L(){const{length:Z}=f.value;if(Z===0)return;const M=f.value.findIndex(b=>b.path===c.value);M===0?c.value=f.value[Z-1].path:c.value=f.value[M-1].path}function z(){const{length:Z}=f.value;if(Z===0)return;const M=f.value.findIndex(b=>b.path===c.value);M+1===Z?c.value=f.value[0].path:c.value=f.value[M+1].path}function T(){const{length:Z}=f.value;Z===0||c.value===""||(u.push(c.value),E())}return ft("Enter",T),ft("ArrowUp",L),ft("ArrowDown",z),(Z,M)=>{const b=x("IconifyIconOffline"),w=x("el-input"),j=x("el-empty"),X=x("el-dialog");return h(),H(X,{top:"5vh",modelValue:p.value,"onUpdate:modelValue":M[2]||(M[2]=N=>p.value=N),width:t(a)==="mobile"?"80vw":"50vw","before-close":E,onOpened:M[3]||(M[3]=N=>_.value.focus()),onClosed:M[4]||(M[4]=N=>_.value.blur())},{footer:v(()=>[i(_o)]),default:v(()=>[i(w,{ref_key:"inputRef",ref:_,modelValue:r.value,"onUpdate:modelValue":M[0]||(M[0]=N=>r.value=N),clearable:"",placeholder:"请输入关键词搜索",onInput:t($)},{prefix:v(()=>[m("span",go,[i(b,{icon:t(jt)},null,8,["icon"])])]),_:1},8,["modelValue","onInput"]),m("div",yo,[f.value.length===0?(h(),H(j,{key:0,description:"暂无搜索结果"})):(h(),H(oo,{key:1,value:c.value,"onUpdate:value":M[1]||(M[1]=N=>c.value=N),options:f.value,onClick:T},null,8,["value","options"]))])]),_:1},8,["modelValue","width"])}}});const wo=ve(bo,[["__scopeId","data-v-24e9bf4c"]]);function ko(n=!1){const e=D(n);function o(c){e.value=c}function a(){o(!0)}function u(){o(!1)}function r(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:u,toggle:r}}const St=se({__name:"index",setup(n){const{bool:e,toggle:o}=ko();function a(){o()}return(u,r)=>{const c=x("IconifyIconOffline");return h(),I(ge,null,[m("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[i(c,{icon:t(jt)},null,8,["icon"])]),i(t(wo),{value:t(e),"onUpdate:value":r[0]||(r[0]=_=>Ot(e)?e.value=_:null)},null,8,["value"])],64)}}}),Lt=[{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"}]}],xo={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Co={class:"notice-container-text"},$o={class:"notice-text-title text-[#000000d9] dark:text-white"},So={class:"notice-text-datetime text-[#00000073] dark:text-white"},Io=se({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(n){const e=n,o=D(null),a=D(!1),u=D(null),r=D(!1),{tooltipEffect:c}=Te(),_=Zt();function f(){Re(()=>{var g,p;((g=o.value)==null?void 0:g.scrollWidth)>((p=o.value)==null?void 0:p.clientWidth)?a.value=!0:a.value=!1})}function $(g,p){const y=document.createElement("span");y.innerText=p,y.className="getDescriptionWidth",document.querySelector("body").appendChild(y);const C=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const E=g.target.offsetWidth;C>2*E?r.value=!0:r.value=!1}return(g,p)=>{var L,z;const y=x("el-avatar"),C=x("el-tooltip"),E=x("el-tag");return h(),I("div",xo,[e.noticeItem.avatar?(h(),H(y,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),m("div",Co,[m("div",$o,[i(C,{"popper-class":"notice-title-popper",effect:t(c),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!t(_)},{default:v(()=>[m("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:f},ee(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=e.noticeItem)!=null&&L.extra?(h(),H(E,{key:0,type:(z=e.noticeItem)==null?void 0:z.status,size:"small",class:"notice-title-extra"},{default:v(()=>{var T;return[oe(ee((T=e.noticeItem)==null?void 0:T.extra),1)]}),_:1},8,["type"])):Y("",!0)]),i(C,{"popper-class":"notice-title-popper",effect:t(c),disabled:!r.value,content:e.noticeItem.description,placement:"top-start"},{default:v(()=>[m("div",{ref_key:"descriptionRef",ref:u,class:"notice-text-description",onMouseover:p[0]||(p[0]=T=>$(T,e.noticeItem.description))},ee(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),m("div",So,ee(e.noticeItem.datetime),1)])])}}});const Mo=ve(Io,[["__scopeId","data-v-2a7dbc48"]]),To={key:0},Vo=se({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(n){const e=n;return(o,a)=>{const u=x("el-empty");return e.list.length?(h(),I("div",To,[(h(!0),I(ge,null,ke(e.list,(r,c)=>(h(),H(Mo,{noticeItem:r,key:c},null,8,["noticeItem"]))),128))])):(h(),H(u,{key:1,description:"暂无数据"}))}}}),zo={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"/>'},Lo={class:"dropdown-badge navbar-bg-hover select-none"},Ao={class:"header-notice-icon"},Ho={class:"noticeList-container"},Eo=se({__name:"index",setup(n){const e=D(0),o=D(Lt),a=D(Lt[0].key);return o.value.map(u=>e.value+=u.list.length),(u,r)=>{const c=x("IconifyIconOffline"),_=x("el-badge"),f=x("el-scrollbar"),$=x("el-tab-pane"),g=x("el-tabs"),p=x("el-dropdown-menu"),y=x("el-dropdown");return h(),H(y,{trigger:"click",placement:"bottom-end"},{dropdown:v(()=>[i(p,null,{default:v(()=>[i(g,{stretch:!0,modelValue:a.value,"onUpdate:modelValue":r[0]||(r[0]=C=>a.value=C),class:"dropdown-tabs"},{default:v(()=>[(h(!0),I(ge,null,ke(o.value,C=>(h(),H($,{key:C.key,label:`${C.name}(${C.list.length})`,name:`${C.key}`},{default:v(()=>[i(f,{"max-height":"330px"},{default:v(()=>[m("div",Ho,[i(Vo,{list:C.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:v(()=>[m("span",Lo,[i(_,{value:e.value,max:99},{default:v(()=>[m("span",Ao,[i(c,{icon:t(zo)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const It=ve(Eo,[["__scopeId","data-v-4e7fe581"]]),Oo={key:0,class:"flex justify-center items-center"},vt=se({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(n){const e=n;return(o,a)=>e.extraIcon?(h(),I("div",Oo,[(h(),H(Ae(t(Le)(we(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"/>'},Zo={key:0,class:"horizontal-header"},Do={class:"select-none"},Po={class:"horizontal-header-right"},jo={class:"check-zh"},No={class:"check-en"},Bo={class:"el-dropdown-link navbar-bg-hover select-none"},Ro={key:0,class:"dark:text-white"},qo=["title"],Fo=se({__name:"mixNav",setup(n){const e=D(),o=D(null),{t:a,route:u,locale:r,translationCh:c,translationEn:_}=xt(e),{device:f,routers:$,logout:g,onPanel:p,menuSelect:y,resolvePath:C,username:E,getDivStyle:L,avatarsStyle:z,getDropdownItemStyle:T,getDropdownItemClass:Z}=Te();function M(b){var X,N;const w=_e().wholeMenus,j=_t(b,w)[0];o.value=(N=(X=nt(j,w))==null?void 0:X.children[0])==null?void 0:N.path}return Qe(()=>{M(u.path)}),Re(()=>{var b;(b=e.value)==null||b.handleResize()}),Ne(()=>[u.path,_e().wholeMenus],()=>{M(u.path)}),(b,w)=>{const j=x("el-menu-item"),X=x("el-menu"),N=x("IconifyIconOffline"),S=x("el-dropdown-item"),J=x("el-dropdown-menu"),fe=x("el-dropdown"),ce=at("loading");return t(f)!=="mobile"?pe((h(),I("div",Zo,[i(X,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o.value,onSelect:w[0]||(w[0]=q=>t(y)(q,t($)))},{default:v(()=>[(h(!0),I(ge,null,ke(t(_e)().wholeMenus,q=>(h(),H(j,{key:q.path,index:t(C)(q)||q.redirect},{title:v(()=>[we(q.meta.icon)?(h(),I("div",{key:0,class:re(["sub-menu-icon",q.meta.icon])},[(h(),H(Ae(t(Le)(q.meta&&we(q.meta.icon)))))],2)):Y("",!0),m("div",{style:ne(t(L))},[m("span",Do,ee(t(be)(q.meta.title)),1),i(vt,{extraIcon:q.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),m("div",Po,[i(St),i(It,{id:"header-notice"}),i(fe,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(J,{class:"translation"},{default:v(()=>[i(S,{style:ne(t(T)(t(r),"zh")),class:re(["dark:!text-white",t(Z)(t(r),"zh")]),onClick:t(c)},{default:v(()=>[pe(m("span",jo,[i(N,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(r)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(S,{style:ne(t(T)(t(r),"en")),class:re(["dark:!text-white",t(Z)(t(r),"en")]),onClick:t(_)},{default:v(()=>[pe(m("span",No,[i(N,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(r)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(fe,{trigger:"click"},{dropdown:v(()=>[i(J,{class:"logout"},{default:v(()=>[i(S,{onClick:t(g)},{default:v(()=>[i(N,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+ee(t(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",Bo,[m("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ne(t(z))},null,4),t(E)?(h(),I("p",Ro,ee(t(E)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(a)("buttons.hssystemSet"),onClick:w[1]||(w[1]=(...q)=>t(p)&&t(p)(...q))},[i(N,{icon:t(rt)},null,8,["icon"])],8,qo)])])),[[ce,t(_e)().wholeMenus.length===0]]):Y("",!0)}}});const Uo=ve(Fo,[["__scopeId","data-v-316fde2f"]]),Wo=["onClick"],Go=se({__name:"breadCrumb",setup(n){const e=gt(),o=D([]),a=ot(),u=a.options.routes,r=Me().multiTags,c=()=>{let f;Object.keys(e.query).length>0?r.forEach(p=>{Be(e.query,p==null?void 0:p.query)&&(f=we(p))}):Object.keys(e.params).length>0?r.forEach(p=>{Be(e.params,p==null?void 0:p.params)&&(f=we(p))}):f=nt(a.currentRoute.value.path,u);const $=_t(a.currentRoute.value.name,u,"name"),g=[];$.forEach(p=>{p!=="/"&&g.push(nt(p,u))}),g.push(f),g.forEach((p,y)=>{f!=null&&f.query||f!=null&&f.params||p!=null&&p.children&&p.children.forEach(C=>{var E,L;((E=C==null?void 0:C.meta)==null?void 0:E.title)===((L=p==null?void 0:p.meta)==null?void 0:L.title)&&g.splice(y,1)})}),o.value=g.filter(p=>(p==null?void 0:p.meta)&&(p==null?void 0:p.meta.title)!==!1)},_=f=>{const{redirect:$,path:g}=f;$?a.push($):a.push(g)};return Qe(()=>{c()}),Ne(()=>e.path,()=>{c()},{deep:!0}),(f,$)=>{const g=x("el-breadcrumb-item"),p=x("el-breadcrumb");return h(),H(p,{class:"!leading-[50px] select-none",separator:"/"},{default:v(()=>[i(sn,{name:"breadcrumb"},{default:v(()=>[(h(!0),I(ge,null,ke(o.value,y=>(h(),H(g,{class:"!inline !items-stretch",key:y.path},{default:v(()=>[m("a",{onClick:We(C=>_(y),["prevent"])},ee(t(be)(y.meta.title)),9,Wo)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Bt={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"/>'},Ko={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"/>'},Xo=["title"],Jo=se({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=()=>{e("toggleClick")};return(u,r)=>{const c=x("IconifyIconOffline");return h(),I("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:a},[i(c,{icon:o.isActive?t(Bt):t(Ko),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Xo)}}}),Yo={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},Qo={key:3,class:"vertical-header-right"},ea={class:"check-en"},ta={class:"el-dropdown-link navbar-bg-hover select-none"},na={key:0,class:"dark:text-white"},oa=["title"],aa=se({__name:"navbar",setup(n){const{layout:e,device:o,logout:a,onPanel:u,pureApp:r,username:c,avatarsStyle:_,toggleSideBar:f,getDropdownItemStyle:$,getDropdownItemClass:g}=Te(),{t:p,locale:y,translationCh:C,translationEn:E}=xt();return(L,z)=>{const T=x("IconifyIconOffline"),Z=x("el-dropdown-item"),M=x("el-dropdown-menu"),b=x("el-dropdown");return h(),I("div",Yo,[t(o)==="mobile"?(h(),H(Jo,{key:0,class:"hamburger-container","is-active":t(r).sidebar.opened,onToggleClick:t(f)},null,8,["is-active","onToggleClick"])):Y("",!0),t(e)!=="mix"&&t(o)!=="mobile"?(h(),H(Go,{key:1,class:"breadcrumb-container"})):Y("",!0),t(e)==="mix"?(h(),H(Uo,{key:2})):Y("",!0),t(e)==="vertical"?(h(),I("div",Qo,[i(St),i(It,{id:"header-notice"}),i(b,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(M,{class:"translation"},{default:v(()=>[i(Z,{style:ne(t($)(t(y),"zh")),class:re(["dark:!text-white",t(g)(t(y),"zh")]),onClick:t(C)},{default:v(()=>[pe(i(T,{class:"check-zh",icon:t(qe)},null,8,["icon"]),[[xe,t(y)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(Z,{style:ne(t($)(t(y),"en")),class:re(["dark:!text-white",t(g)(t(y),"en")]),onClick:t(E)},{default:v(()=>[pe(m("span",ea,[i(T,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(y)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(b,{trigger:"click"},{dropdown:v(()=>[i(M,{class:"logout"},{default:v(()=>[i(Z,{onClick:t(a)},{default:v(()=>[i(T,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+ee(t(p)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",ta,[m("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ne(t(_))},null,4),t(c)?(h(),I("p",na,ee(t(c)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(p)("buttons.hssystemSet"),onClick:z[0]||(z[0]=(...w)=>t(u)&&t(u)(...w))},[i(T,{icon:t(rt)},null,8,["icon"])],8,oa)])):Y("",!0)])}}});const sa=ve(aa,[["__scopeId","data-v-b44add8f"]]),Je={width:24,height:24,body:'<path fill="currentColor" d="M16 3h6v6h-2V5h-4V3ZM2 3h6v2H4v4H2V3Zm18 16v-4h2v6h-6v-2h4ZM4 19h4v2H2v-6h2v4Z"/>'},la={width:24,height:24,body:'<path fill="currentColor" d="M5 11v2h14v-2H5Z"/>'},ra={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"/>'},ia={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"/>'},ca={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"/>'},Rt={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 ua(){var N;const n=gt(),e=ot(),o=ln(),a=$t(),u=D(0),r=D(0),c=D(0),_=D(!1),f=D(-1),$=D({}),g=D(((N=Ue().getItem(`${Ge()}configure`))==null?void 0:N.showModel)||"smart"),p=D(Ue().getItem(`${Ge()}configure`).hideTabs)??D("false"),y=F(()=>Me().multiTags),C=yt([{icon:Ln,text:me("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:Rt,text:me("buttons.hscloseCurrentTab"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ca,text:me("buttons.hscloseLeftTabs"),divided:!0,disabled:!(y.value.length>1),show:!0},{icon:ia,text:me("buttons.hscloseRightTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:ra,text:me("buttons.hscloseOtherTabs"),divided:!0,disabled:!(y.value.length>2),show:!0},{icon:la,text:me("buttons.hscloseAllTabs"),divided:!1,disabled:!(y.value.length>1),show:!0},{icon:Je,text:me("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:Je,text:me("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function E(S,J,fe){var ce,q;return rn((ce=n==null?void 0:n.meta)==null?void 0:ce.showLink)&&((q=n==null?void 0:n.meta)==null?void 0:q.showLink)===!1?Object.keys(n.query).length>0?Be(n.query,S.query)?J:fe:Be(n.params,S.params)?J:fe:n.path===S.path?J:fe}const L=F(()=>(S,J)=>{if(J!==0)return E(S,!0,!1)}),z=F(()=>S=>E(S,"is-active","")),T=F(()=>S=>E(S,"schedule-active","")),Z=F(()=>({transform:`translateX(${c.value}px)`})),M=F(()=>({left:r.value+"px",top:u.value+"px"})),b=()=>{_.value=!1};function w(S){if(S&&(f.value=S),t(g)==="smart"){if(tt(o.refs["schedule"+S][0],"schedule-active"))return;Pe(!0,"schedule-in",o.refs["schedule"+S][0]),Pe(!1,"schedule-out",o.refs["schedule"+S][0])}else{if(tt(o.refs["dynamic"+S][0],"card-active"))return;Pe(!0,"card-in",o.refs["dynamic"+S][0]),Pe(!1,"card-out",o.refs["dynamic"+S][0])}}function j(S){if(f.value=-1,t(g)==="smart"){if(tt(o.refs["schedule"+S][0],"schedule-active"))return;Pe(!1,"schedule-in",o.refs["schedule"+S][0]),Pe(!0,"schedule-out",o.refs["schedule"+S][0])}else{if(tt(o.refs["dynamic"+S][0],"card-active"))return;Pe(!1,"card-in",o.refs["dynamic"+S][0]),Pe(!0,"card-out",o.refs["dynamic"+S][0])}}function X(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Qe(()=>{if(!g.value){const S=Ue().getItem(`${Ge()}configure`);S.showModel="card",Ue().setItem(`${Ge()}configure`,S)}}),Ne(()=>_.value,()=>{Mn(document,"click",b)}),{route:n,router:e,visible:_,showTags:p,instance:o,multiTags:y,showModel:g,tagsViews:C,buttonTop:u,buttonLeft:r,translateX:c,pureSetting:a,activeIndex:f,getTabStyle:Z,iconIsActive:L,linkIsActive:z,currentSelect:$,scheduleIsActive:T,getContextMenuStyle:M,$t:me,closeMenu:b,onMounted:Qe,onMouseenter:w,onMouseleave:j,transformI18n:be,onContentFullScreen:X}}const At={width:24,height:24,body:'<path fill="currentColor" d="M18 7h4v2h-6V3h2v4ZM8 9H2V7h4V3h2v6Zm10 8v4h-2v-6h6v2h-4ZM8 15v6H6v-4H2v-2h6Z"/>'},da={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"/>'},ha={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"/>'},fa={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"/>'},pa={class:"arrow-left"},va=["onContextmenu","onMouseenter","onMouseleave","onClick"],ma=["onClick"],_a={class:"arrow-right"},ga=["onClick"],ya={class:"arrow-down"},ba=se({__name:"index",setup(n){const{route:e,router:o,visible:a,showTags:u,instance:r,multiTags:c,tagsViews:_,buttonTop:f,buttonLeft:$,showModel:g,translateX:p,pureSetting:y,activeIndex:C,getTabStyle:E,iconIsActive:L,linkIsActive:z,currentSelect:T,scheduleIsActive:Z,getContextMenuStyle:M,closeMenu:b,onMounted:w,onMouseenter:j,onMouseleave:X,transformI18n:N,onContentFullScreen:S}=ua(),J=D(),fe=D(),ce=D(),q=D(!1),Ie=pt().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}=Tn(),s=()=>{const k=c.value.findIndex(V=>V.query?Be(e.query,V.query):V.params?Be(e.params,V.params):V.path===e.path);d(k)},d=async k=>{var R,le;if(!r.refs["dynamic"+k])return;const O=r.refs["dynamic"+k][0],K=O==null?void 0:O.offsetLeft,de=O==null?void 0:O.offsetWidth,P=ce.value?(R=ce.value)==null?void 0:R.offsetWidth:0;await Re();const te=J.value?(le=J.value)==null?void 0:le.offsetWidth:0;P<=te?q.value=!0:q.value=!1,te<P||K===0?p.value=0:K<-p.value?p.value=-K+10:K>-p.value&&K+de<-p.value+P?p.value=Math.min(0,P-de-K-10):p.value=-(K-(P-10-de))},A=k=>{var K;const V=ce.value?(K=ce.value)==null?void 0:K.offsetWidth:0,O=J.value?J.value.offsetWidth:0;k>0?p.value=Math.min(0,p.value+k):V<O?p.value>=-(O-V)&&(p.value=Math.max(p.value+k,V-O)):p.value=0};function U(k,V){const O=c.value.some(de=>de.path===k);function K(de,P,te){O||de.forEach(R=>{const le=te+R.path;R.path===P||le===P?Me().handleTags("push",{path:P,parentPath:`/${te.split("/")[1]}`,meta:R.meta,name:R.name}):R.children&&R.children.length>0&&K(R.children,P,te)})}K(o.options.routes,k,V)}function B(){const{fullPath:k,query:V}=t(e);o.replace({path:"/redirect"+k,query:V}),ht(e,"refresh")}function W(k,V,O){var te,R,le,ze;const K=c.value.findIndex($e=>{if($e.query){if($e.path===k.path)return $e.query===k.query}else if($e.params){if($e.path===k.path)return $e.params===k.params}else return $e.path===k.path}),de=($e,Yt,Qt)=>{Qt?Me().handleTags("equal",[Ee==="false"?Dt[0]:we(pt()),k]):Me().handleTags("splice","",{startIndex:$e,length:Yt}),s()};O==="other"?de(1,1,!0):O==="left"?de(1,K-1):O==="right"?de(K+1,c.value.length):de(K,1);const P=Me().handleTags("slice");if(V===e.path){if(O==="left")return;(te=P[0])!=null&&te.query?o.push({name:P[0].name,query:P[0].query}):(R=P[0])!=null&&R.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}else{if(!c.value.length||c.value.some($e=>$e.path===e.path))return;(le=P[0])!=null&&le.query?o.push({name:P[0].name,query:P[0].query}):(ze=P[0])!=null&&ze.params?o.push({name:P[0].name,params:P[0].params}):o.push({path:P[0].path})}}function G(k,V){W(k,k.path,V),ht(e)}function ae(k,V,O){if(V&&V.disabled)return;let K;switch(O?K={path:O.path,meta:O.meta,name:O.name,query:O==null?void 0:O.query,params:O==null?void 0:O.params}:K={path:e.path,meta:e.meta},k){case 0:B();break;case 1:G(K);break;case 2:G(K,"left");break;case 3:G(K,"right");break;case 4:G(K,"other");break;case 5:Me().handleTags("splice","",{startIndex:1,length:c.value.length}),o.push(Ie),ht(e);break;case 6:l(),setTimeout(()=>{Oe.value?(_[6].icon=At,_[6].text=me("buttons.hswholeExitFullScreen")):(_[6].icon=Je,_[6].text=me("buttons.hswholeFullScreen"))},100);break;case 7:S(),setTimeout(()=>{y.hiddenSideBar?(_[7].icon=At,_[7].text=me("buttons.hscontentExitFullScreen")):(_[7].icon=Je,_[7].text=me("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{De(e.fullPath,e.query)})}function ye(k){const{key:V,item:O}=k;ae(V,O)}function Ze(k,V){ae(k,V,T.value)}function Q(k){Array.of(1,2,3,4,5).forEach(V=>{_[V].show=k})}function Ve(k){Array.of(1,2,3,4,5).forEach(V=>{_[V].disabled=k})}function De(k,V={},O=!1){const K=c.value,de=c.value.length;let P=-1;cn(V)?P=K.findIndex(te=>te.path===k):P=K.findIndex(te=>Be(te.query,V)),Q(!0),O&&(_[0].show=!0),P===1&&de!==2?(_[2].show=!1,Array.of(1,3,4,5).forEach(te=>{_[te].disabled=!1}),_[2].disabled=!0):P===1&&de===2?(Ve(!1),Array.of(2,3,4).forEach(te=>{_[te].show=!1,_[te].disabled=!0})):de-1===P&&P!==0?(_[3].show=!1,Array.of(1,2,4,5).forEach(te=>{_[te].disabled=!1}),_[3].disabled=!0):P===0||k===`/redirect${Ie}`?Ve(!0):Ve(!1)}function Xt(k,V){b(),k.path===Ie?(Q(!1),_[0].show=!0):e.path!==k.path&&e.name!==k.name?(_[0].show=!1,De(k.path,k.query)):c.value.length===2&&e.path!==k.path?(Q(!0),_[4].show=!1):e.path===k.path&&De(k.path,k.query,!0),T.value=k;const O=105,K=t(fe).getBoundingClientRect().left,P=t(fe).offsetWidth-O,te=V.clientX-K+5;te>P?$.value=P:$.value=te,$t().hiddenSideBar?f.value=V.clientY:f.value=V.clientY-40,Re(()=>{a.value=!0})}function Jt(k){const{name:V,path:O}=k;V?k.query?o.push({name:V,query:k.query}):k.params?o.push({name:V,params:k.params}):o.push({name:V}):o.push({path:O})}return bt(()=>{r&&(De(e.fullPath),He.on("tagViewsChange",k=>{t(u)!==k&&(u.value=k)}),He.on("tagViewsShowModel",k=>{g.value=k}),He.on("changLayoutRoute",({indexPath:k,parentPath:V})=>{U(k,V),setTimeout(()=>{De(k)})}))}),Ne([e],()=>{C.value=-1,s()}),Ne(Oe,()=>{_[6].icon=Je,_[6].text=me("buttons.hswholeFullScreen")}),w(()=>{Vn(ce,Et(()=>{s()},200))}),(k,V)=>{const O=x("IconifyIconOffline"),K=x("router-link"),de=x("el-dropdown-item"),P=x("el-dropdown-menu"),te=x("el-dropdown");return t(u)?Y("",!0):(h(),I("div",{key:0,ref_key:"containerDom",ref:fe,class:"tags-view"},[pe(m("span",pa,[i(O,{icon:t(ha),onClick:V[0]||(V[0]=R=>A(200))},null,8,["icon"])],512),[[xe,q.value]]),m("div",{ref_key:"scrollbarDom",ref:ce,class:"scroll-container"},[m("div",{class:"tab select-none",ref_key:"tabDom",ref:J,style:ne(t(E))},[(h(!0),I(ge,null,ke(t(c),(R,le)=>(h(),I("div",{ref_for:!0,ref:"dynamic"+le,key:le,class:re(["scroll-item is-closable",t(z)(R),k.$route.path===R.path&&t(g)==="card"?"card-active":""]),onContextmenu:We(ze=>Xt(R,ze),["prevent"]),onMouseenter:We(ze=>t(j)(le),["prevent"]),onMouseleave:We(ze=>t(X)(le),["prevent"]),onClick:ze=>Jt(R)},[i(K,{to:R.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:v(()=>[oe(ee(t(N)(R.meta.title)),1)]),_:2},1032,["to"]),t(L)(R,le)||le===t(C)&&le!==0?(h(),I("span",{key:0,class:"el-icon-close",onClick:We(ze=>G(R),["stop"])},[i(O,{icon:t(fa)},null,8,["icon"])],8,ma)):Y("",!0),t(g)!=="card"?(h(),I("div",{key:1,ref_for:!0,ref:"schedule"+le,class:re([t(Z)(R)])},null,2)):Y("",!0)],42,va))),128))],4)],512),pe(m("span",_a,[i(O,{icon:t(An),onClick:V[1]||(V[1]=R=>A(-200))},null,8,["icon"])],512),[[xe,q.value]]),i(wt,{name:"el-zoom-in-top"},{default:v(()=>[pe((h(),I("ul",{key:Math.random(),style:ne(t(M)),class:"contextmenu"},[(h(!0),I(ge,null,ke(t(_).slice(0,6),(R,le)=>(h(),I("div",{key:le,style:{display:"flex","align-items":"center"}},[R.show?(h(),I("li",{key:0,onClick:ze=>Ze(le,R)},[i(O,{icon:R.icon},null,8,["icon"]),oe(" "+ee(t(N)(R.text)),1)],8,ga)):Y("",!0)]))),128))],4)),[[xe,t(a)]])]),_:1}),i(te,{trigger:"click",placement:"bottom-end",onCommand:ye},{dropdown:v(()=>[i(P,null,{default:v(()=>[(h(!0),I(ge,null,ke(t(_),(R,le)=>(h(),H(de,{key:le,command:{key:le,item:R},divided:R.divided,disabled:R.disabled},{default:v(()=>[i(O,{icon:R.icon},null,8,["icon"]),oe(" "+ee(t(N)(R.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:v(()=>[m("span",ya,[i(O,{icon:t(da),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const wa=ve(ba,[["__scopeId","data-v-62893417"]]),ka={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},xa=m("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Ca=m("path",{d:"M2.88 18.054a35.897 35.897 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0c.166.18.304.332.413.455a35.897 35.897 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44.019 44.019 0 0 1-6.584-.874zm6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42.137 42.137 0 0 0 4.227-.454A33.913 33.913 0 0 0 12 4.09a33.913 33.913 0 0 0-6.649 12.387c1.395.222 2.805.374 4.227.454zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"},null,-1),$a=[xa,Ca];function Sa(n,e){return h(),I("svg",ka,$a)}const qt={render:Sa},Ia={key:1},Ma=se({__name:"appMain",props:{fixedHeader:Boolean},setup(n){const e=n,{$storage:o,$config:a}=kt(),u=F(()=>a==null?void 0:a.KeepAlive),r=F(()=>g=>g.meta.transition),c=F(()=>o==null?void 0:o.configure.hideTabs),_=F(()=>(o==null?void 0:o.layout.layout)==="vertical"),f=F(()=>[c.value&&_?"padding-top: 48px;":"",!c.value&&_?"padding-top: 85px;":"",c.value&&!_.value?"padding-top: 48px":"",!c.value&&!_.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),$=se({render(){return Ke(wt,{name:r.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":r.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:r.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(g,p)=>{const y=x("el-backtop"),C=x("el-scrollbar"),E=x("router-view");return h(),I("section",{class:re([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ne(f.value)},[i(E,null,{default:v(({Component:L,route:z})=>[e.fixedHeader?(h(),H(C,{key:0},{default:v(()=>[i(y,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:v(()=>[i(t(qt))]),_:1}),i(t($),{route:z},{default:v(()=>[u.value?(h(),H(zt,{key:0,include:t(_e)().cachePageList},[(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))],1032,["include"])):(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(h(),I("div",Ia,[i(t($),{route:z},{default:v(()=>[u.value?(h(),H(zt,{key:0,include:t(_e)().cachePageList},[(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))],1032,["include"])):(h(),H(Ae(L),{key:z.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Ht=ve(Ma,[["__scopeId","data-v-ac212d1d"]]),Mt=n=>(st("data-v-2fe46f27"),n=n(),lt(),n),Ta=Mt(()=>m("div",{class:"right-panel-background"},null,-1)),Va={class:"right-panel-items"},za={class:"project-configuration"},La=Mt(()=>m("h4",{class:"dark:text-white"},"项目配置",-1)),Aa=Mt(()=>m("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),Ha=se({__name:"index",setup(n){const e=D(null),o=D(!1),a=F(()=>["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 zn(e,u=>{u.clientX>e.value.offsetLeft||(o.value=!1)}),He.on("openPanel",()=>{o.value=!0}),(u,r)=>{const c=x("IconifyIconOffline");return h(),I("div",{class:re([{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:re(a.value)},[i(c,{class:"dark:text-white",width:"20px",height:"20px",icon:t(Rt),onClick:r[0]||(r[0]=_=>o.value=!o.value)},null,8,["icon"])],2)]),Aa,un(u.$slots,"default",{},void 0,!0)])],512)],2)}}});const Ea=ve(Ha,[["__scopeId","data-v-2fe46f27"]]),Ce=n=>(st("data-v-5945f667"),n=n(),lt(),n),Oa={class:"pure-theme"},Za=Ce(()=>m("div",null,null,-1)),Da=Ce(()=>m("div",null,null,-1)),Pa=[Za,Da],ja=Ce(()=>m("div",null,null,-1)),Na=Ce(()=>m("div",null,null,-1)),Ba=[ja,Na],Ra=Ce(()=>m("div",null,null,-1)),qa=Ce(()=>m("div",null,null,-1)),Fa=[Ra,qa],Ua={class:"theme-color"},Wa=["onClick"],Ga={class:"setting"},Ka=Ce(()=>m("span",{class:"dark:text-white"},"灰色模式",-1)),Xa=Ce(()=>m("span",{class:"dark:text-white"},"色弱模式",-1)),Ja=Ce(()=>m("span",{class:"dark:text-white"},"隐藏标签页",-1)),Ya=Ce(()=>m("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Qa=Ce(()=>m("span",{class:"dark:text-white"},"标签页持久化",-1)),es=Ce(()=>m("span",{class:"dark:text-white"},"标签风格",-1)),ts=se({__name:"index",setup(n){var Oe,l;const e=ot(),{isDark:o}=Pt(),{device:a,tooltipEffect:u}=Te(),{$storage:r}=kt(),c=D(),_=D(),f=D(),{dataTheme:$,layoutTheme:g,themeColors:p,dataThemeChange:y,setEpThemeColor:C,setLayoutThemeColor:E}=kn();if(t(g)){const s=t(g).layout,d=t(g).theme;xn({scopeName:`layout-theme-${d}`}),Ee(s)}const L=D(((Oe=r.configure)==null?void 0:Oe.showModel)??"smart"),z=D(((l=r.configure)==null?void 0:l.showLogo)??!0),T=yt({greyVal:r.configure.grey,weakVal:r.configure.weak,tabsVal:r.configure.hideTabs,showLogo:r.configure.showLogo,showModel:r.configure.showModel,multiTagsCache:r.configure.multiTagsCache}),Z=F(()=>s=>({background:s})),M=F(()=>s=>!(s==="light"&&o.value));function b(s,d){const A=r.configure;A[s]=d,r.configure=A}function w(s,d,A){const U=A||document.body;let{className:B}=U;B=B.replace(d,"").trim(),U.className=s?`${B} ${d} `:B}const j=s=>{w(T.greyVal,"html-grey",document.querySelector("html")),b("grey",s)},X=s=>{w(T.weakVal,"html-weakness",document.querySelector("html")),b("weak",s)},N=()=>{const s=T.tabsVal;b("hideTabs",s),He.emit("tagViewsChange",s)},S=()=>{const s=T.multiTagsCache;b("multiTagsCache",s),Me().multiTagsCacheChange(s)};function J(){dn(),Ue().clear(),hn().clear();const{Grey:s,Weak:d,MultiTagsCache:A,EpThemeColor:U,Layout:B}=Xe();je().setLayout(B),C(U),Me().multiTagsCacheChange(A),w(s,"html-grey",document.querySelector("html")),w(d,"html-weakness",document.querySelector("html")),e.push("/login"),Me().handleTags("equal",[...Dt]),fn()}function fe(s){b("showModel",s),He.emit("tagViewsShowModel",s)}function ce(){t(z)?b("showLogo",!0):b("showLogo",!1),He.emit("logoChange",t(z))}function q(s){s.forEach(d=>{w(!1,"is-select",t(d))})}const Ie=F(()=>s=>s===g.value.theme&&g.value.theme!=="light"?"#fff":s===g.value.theme&&g.value.theme==="light"?"#1d2b45":"transparent");function Ee(s){var d,A,U;g.value.layout=s,window.document.body.setAttribute("layout",s),r.layout={layout:s,theme:g.value.theme,darkMode:(d=r.layout)==null?void 0:d.darkMode,sidebarStatus:(A=r.layout)==null?void 0:A.sidebarStatus,epThemeColor:(U=r.layout)==null?void 0:U.epThemeColor},je().setLayout(s)}return Ne(r,({layout:s})=>{switch(s.layout){case"vertical":w(!0,"is-select",t(_)),Fe(q([f]),50),Fe(q([c]),50);break;case"horizontal":w(!0,"is-select",t(f)),Fe(q([_]),50),Fe(q([c]),50);break;case"mix":w(!0,"is-select",t(c)),Fe(q([_]),50),Fe(q([f]),50);break}}),bt(()=>{y(),Re(()=>{var s,d;T.greyVal&&((s=document.querySelector("html"))==null||s.setAttribute("class","html-grey")),T.weakVal&&((d=document.querySelector("html"))==null||d.setAttribute("class","html-weakness")),T.tabsVal&&N()})}),(s,d)=>{const A=x("el-divider"),U=x("el-switch"),B=x("el-tooltip"),W=x("IconifyIconOffline"),G=x("el-icon"),ae=x("el-radio"),ye=x("el-radio-group"),Ze=x("el-button");return h(),H(Ea,null,{default:v(()=>[i(A,null,{default:v(()=>[oe("主题")]),_:1}),i(U,{modelValue:t($),"onUpdate:modelValue":d[0]||(d[0]=Q=>Ot($)?$.value=Q:null),"inline-prompt":"",class:"pure-datatheme","active-icon":t(Cn),"inactive-icon":t($n),onChange:t(y)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),i(A,null,{default:v(()=>[oe("导航栏模式")]),_:1}),m("ul",Oa,[i(B,{effect:t(u),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:re(t(g).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:_,onClick:d[1]||(d[1]=Q=>Ee("vertical"))},Pa,2)]),_:1},8,["effect"]),t(a)!=="mobile"?(h(),H(B,{key:0,effect:t(u),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:re(t(g).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:f,onClick:d[2]||(d[2]=Q=>Ee("horizontal"))},Ba,2)]),_:1},8,["effect"])):Y("",!0),t(a)!=="mobile"?(h(),H(B,{key:1,effect:t(u),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:v(()=>[m("li",{class:re(t(g).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:c,onClick:d[3]||(d[3]=Q=>Ee("mix"))},Fa,2)]),_:1},8,["effect"])):Y("",!0)]),i(A,null,{default:v(()=>[oe("主题色")]),_:1}),m("ul",Ua,[(h(!0),I(ge,null,ke(t(p),(Q,Ve)=>pe((h(),I("li",{key:Ve,style:ne(Z.value(Q.color)),onClick:De=>t(E)(Q.themeColor)},[i(G,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Ie.value(Q.themeColor)},{default:v(()=>[i(W,{icon:t(qe)},null,8,["icon"])]),_:2},1032,["color"])],12,Wa)),[[xe,M.value(Q.themeColor)]])),128))]),i(A,null,{default:v(()=>[oe("界面显示")]),_:1}),m("ul",Ga,[m("li",null,[Ka,i(U,{modelValue:T.greyVal,"onUpdate:modelValue":d[4]||(d[4]=Q=>T.greyVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:j},null,8,["modelValue"])]),m("li",null,[Xa,i(U,{modelValue:T.weakVal,"onUpdate:modelValue":d[5]||(d[5]=Q=>T.weakVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:X},null,8,["modelValue"])]),m("li",null,[Ja,i(U,{modelValue:T.tabsVal,"onUpdate:modelValue":d[6]||(d[6]=Q=>T.tabsVal=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:N},null,8,["modelValue"])]),m("li",null,[Ya,i(U,{modelValue:z.value,"onUpdate:modelValue":d[7]||(d[7]=Q=>z.value=Q),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:ce},null,8,["modelValue"])]),m("li",null,[Qa,i(U,{modelValue:T.multiTagsCache,"onUpdate:modelValue":d[8]||(d[8]=Q=>T.multiTagsCache=Q),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:S},null,8,["modelValue"])]),m("li",null,[es,i(ye,{modelValue:L.value,"onUpdate:modelValue":d[9]||(d[9]=Q=>L.value=Q),size:"small",onChange:fe},{default:v(()=>[i(ae,{label:"card"},{default:v(()=>[oe("卡片")]),_:1}),i(ae,{label:"smart"},{default:v(()=>[oe("灵动")]),_:1})]),_:1},8,["modelValue"])])]),i(A),i(Ze,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:J},{default:v(()=>[i(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-5945f667"]]),Tt="/vue-pure-admin/logo.svg",Ft=n=>(st("data-v-4cc9900f"),n=n(),lt(),n),os=Ft(()=>m("img",{src:Tt,alt:"logo"},null,-1)),as={class:"sidebar-title"},ss=Ft(()=>m("img",{src:Tt,alt:"logo"},null,-1)),ls={class:"sidebar-title"},rs=se({__name:"logo",props:{collapse:Boolean},setup(n){const e=n,{title:o}=Te(),a=pt().path;return(u,r)=>{const c=x("router-link");return h(),I("div",{class:re(["sidebar-logo-container",{collapses:e.collapse}])},[i(wt,{name:"sidebarLogoFade"},{default:v(()=>[e.collapse?(h(),H(c,{key:"props.collapse",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[os,m("span",as,ee(t(o)),1)]),_:1},8,["title","to"])):(h(),H(c,{key:"expand",title:t(o),class:"sidebar-logo-link",to:t(a)},{default:v(()=>[ss,m("span",ls,ee(t(o)),1)]),_:1},8,["title","to"]))]),_:1})],2)}}});const is=ve(rs,[["__scopeId","data-v-4cc9900f"]]);var et={exports:{}},Ut={},cs=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},mt={exports:{}};typeof Object.create=="function"?mt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:mt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var us=mt.exports;(function(n){var e=/%[sdj%]/g;n.format=function(l){if(!M(l)){for(var s=[],d=0;d<arguments.length;d++)s.push(u(arguments[d]));return s.join(" ")}for(var d=1,A=arguments,U=A.length,B=String(l).replace(e,function(G){if(G==="%%")return"%";if(d>=U)return G;switch(G){case"%s":return String(A[d++]);case"%d":return Number(A[d++]);case"%j":try{return JSON.stringify(A[d++])}catch{return"[Circular]"}default:return G}}),W=A[d];d<U;W=A[++d])z(W)||!X(W)?B+=" "+W:B+=" "+u(W);return B},n.deprecate=function(l,s){if(w(pn.process))return function(){return n.deprecate(l,s).apply(this,arguments)};if(process.noDeprecation===!0)return l;var d=!1;function A(){if(!d){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),d=!0}return l.apply(this,arguments)}return A};var o={},a;n.debuglog=function(l){if(w(a)&&(a={}.NODE_DEBUG||""),l=l.toUpperCase(),!o[l])if(new RegExp("\\b"+l+"\\b","i").test(a)){var s=process.pid;o[l]=function(){var d=n.format.apply(n,arguments);console.error("%s %d: %s",l,s,d)}}else o[l]=function(){};return o[l]};function u(l,s){var d={seen:[],stylize:c};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),L(s)?d.showHidden=s:s&&n._extend(d,s),w(d.showHidden)&&(d.showHidden=!1),w(d.depth)&&(d.depth=2),w(d.colors)&&(d.colors=!1),w(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=r),f(d,l,d.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 r(l,s){var d=u.styles[s];return d?"\x1B["+u.colors[d][0]+"m"+l+"\x1B["+u.colors[d][1]+"m":l}function c(l,s){return l}function _(l){var s={};return l.forEach(function(d,A){s[d]=!0}),s}function f(l,s,d){if(l.customInspect&&s&&J(s.inspect)&&s.inspect!==n.inspect&&!(s.constructor&&s.constructor.prototype===s)){var A=s.inspect(d,l);return M(A)||(A=f(l,A,d)),A}var U=$(l,s);if(U)return U;var B=Object.keys(s),W=_(B);if(l.showHidden&&(B=Object.getOwnPropertyNames(s)),S(s)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return g(s);if(B.length===0){if(J(s)){var G=s.name?": "+s.name:"";return l.stylize("[Function"+G+"]","special")}if(j(s))return l.stylize(RegExp.prototype.toString.call(s),"regexp");if(N(s))return l.stylize(Date.prototype.toString.call(s),"date");if(S(s))return g(s)}var ae="",ye=!1,Ze=["{","}"];if(E(s)&&(ye=!0,Ze=["[","]"]),J(s)){var Q=s.name?": "+s.name:"";ae=" [Function"+Q+"]"}if(j(s)&&(ae=" "+RegExp.prototype.toString.call(s)),N(s)&&(ae=" "+Date.prototype.toUTCString.call(s)),S(s)&&(ae=" "+g(s)),B.length===0&&(!ye||s.length==0))return Ze[0]+ae+Ze[1];if(d<0)return j(s)?l.stylize(RegExp.prototype.toString.call(s),"regexp"):l.stylize("[Object]","special");l.seen.push(s);var Ve;return ye?Ve=p(l,s,d,W,B):Ve=B.map(function(De){return y(l,s,d,W,De,ye)}),l.seen.pop(),C(Ve,ae,Ze)}function $(l,s){if(w(s))return l.stylize("undefined","undefined");if(M(s)){var d="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize(d,"string")}if(Z(s))return l.stylize(""+s,"number");if(L(s))return l.stylize(""+s,"boolean");if(z(s))return l.stylize("null","null")}function g(l){return"["+Error.prototype.toString.call(l)+"]"}function p(l,s,d,A,U){for(var B=[],W=0,G=s.length;W<G;++W)Oe(s,String(W))?B.push(y(l,s,d,A,String(W),!0)):B.push("");return U.forEach(function(ae){ae.match(/^\d+$/)||B.push(y(l,s,d,A,ae,!0))}),B}function y(l,s,d,A,U,B){var W,G,ae;if(ae=Object.getOwnPropertyDescriptor(s,U)||{value:s[U]},ae.get?ae.set?G=l.stylize("[Getter/Setter]","special"):G=l.stylize("[Getter]","special"):ae.set&&(G=l.stylize("[Setter]","special")),Oe(A,U)||(W="["+U+"]"),G||(l.seen.indexOf(ae.value)<0?(z(d)?G=f(l,ae.value,null):G=f(l,ae.value,d-1),G.indexOf(`
|
||
`)>-1&&(B?G=G.split(`
|
||
`).map(function(ye){return" "+ye}).join(`
|
||
`).substr(2):G=`
|
||
`+G.split(`
|
||
`).map(function(ye){return" "+ye}).join(`
|
||
`))):G=l.stylize("[Circular]","special")),w(W)){if(B&&U.match(/^\d+$/))return G;W=JSON.stringify(""+U),W.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.substr(1,W.length-2),W=l.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=l.stylize(W,"string"))}return W+": "+G}function C(l,s,d){var A=l.reduce(function(U,B){return B.indexOf(`
|
||
`)>=0,U+B.replace(/\u001b\[\d\d?m/g,"").length+1},0);return A>60?d[0]+(s===""?"":s+`
|
||
`)+" "+l.join(`,
|
||
`)+" "+d[1]:d[0]+s+" "+l.join(", ")+" "+d[1]}function E(l){return Array.isArray(l)}n.isArray=E;function L(l){return typeof l=="boolean"}n.isBoolean=L;function z(l){return l===null}n.isNull=z;function T(l){return l==null}n.isNullOrUndefined=T;function Z(l){return typeof l=="number"}n.isNumber=Z;function M(l){return typeof l=="string"}n.isString=M;function b(l){return typeof l=="symbol"}n.isSymbol=b;function w(l){return l===void 0}n.isUndefined=w;function j(l){return X(l)&&ce(l)==="[object RegExp]"}n.isRegExp=j;function X(l){return typeof l=="object"&&l!==null}n.isObject=X;function N(l){return X(l)&&ce(l)==="[object Date]"}n.isDate=N;function S(l){return X(l)&&(ce(l)==="[object Error]"||l instanceof Error)}n.isError=S;function J(l){return typeof l=="function"}n.isFunction=J;function fe(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l>"u"}n.isPrimitive=fe,n.isBuffer=cs;function ce(l){return Object.prototype.toString.call(l)}function q(l){return l<10?"0"+l.toString(10):l.toString(10)}var Ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(){var l=new Date,s=[q(l.getHours()),q(l.getMinutes()),q(l.getSeconds())].join(":");return[l.getDate(),Ie[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||!X(s))return l;for(var d=Object.keys(s),A=d.length;A--;)l[d[A]]=s[d[A]];return l};function Oe(l,s){return Object.prototype.hasOwnProperty.call(l,s)}})(Ut);var ds=process.platform==="win32",Se=Ut;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 Ye(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 Wt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,hs=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ie={};function ut(n){var e=Wt.exec(n),o=(e[1]||"")+(e[2]||""),a=e[3]||"",u=hs.exec(a),r=u[1],c=u[2],_=u[3];return[o,r,c,_]}function Vt(n){var e=Wt.exec(n),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function Gt(n){return"\\\\"+n.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ie.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(),Se.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var r=Vt(u),c=r.device,_=r.isUnc,f=r.isAbsolute,$=r.tail;if(!(c&&n&&c.toLowerCase()!==n.toLowerCase())&&(n||(n=c),o||(e=$+"\\"+e,o=f),n&&o))break}return _&&(n=Gt(n)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),n+(o?"\\":"")+e||"."};ie.normalize=function(n){var e=Vt(n),o=e.device,a=e.isUnc,u=e.isAbsolute,r=e.tail,c=/[\\\/]$/.test(r);return r=ct(r.split(/[\\\/]+/),!u).join("\\"),!r&&!u&&(r="."),r&&c&&(r+="\\"),a&&(o=Gt(o)),o+(u?"\\":"")+r};ie.isAbsolute=function(n){return Vt(n).isAbsolute};ie.join=function(){for(var n=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!Se.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,}/,"\\")),ie.normalize(a)};ie.relative=function(n,e){n=ie.resolve(n),e=ie.resolve(e);for(var o=n.toLowerCase(),a=e.toLowerCase(),u=Ye(e.split("\\")),r=Ye(o.split("\\")),c=Ye(a.split("\\")),_=Math.min(r.length,c.length),f=_,$=0;$<_;$++)if(r[$]!==c[$]){f=$;break}if(f==0)return e;for(var g=[],$=f;$<r.length;$++)g.push("..");return g=g.concat(u.slice(f)),g.join("\\")};ie._makeLong=function(n){if(!Se.isString(n))return n;if(!n)return"";var e=ie.resolve(n);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):n};ie.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)};ie.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};ie.extname=function(n){return ut(n)[3]};ie.format=function(n){if(!Se.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Se.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]===ie.sep?o+a:o+ie.sep+a:a};ie.parse=function(n){if(!Se.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)}};ie.sep="\\";ie.delimiter=";";var fs=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ue={};function dt(n){return fs.exec(n).slice(1)}ue.resolve=function(){for(var n="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Se.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||"."};ue.normalize=function(n){var e=ue.isAbsolute(n),o=n&&n[n.length-1]==="/";return n=ct(n.split("/"),!e).join("/"),!n&&!e&&(n="."),n&&o&&(n+="/"),(e?"/":"")+n};ue.isAbsolute=function(n){return n.charAt(0)==="/"};ue.join=function(){for(var n="",e=0;e<arguments.length;e++){var o=arguments[e];if(!Se.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(n?n+="/"+o:n+=o)}return ue.normalize(n)};ue.relative=function(n,e){n=ue.resolve(n).substr(1),e=ue.resolve(e).substr(1);for(var o=Ye(n.split("/")),a=Ye(e.split("/")),u=Math.min(o.length,a.length),r=u,c=0;c<u;c++)if(o[c]!==a[c]){r=c;break}for(var _=[],c=r;c<o.length;c++)_.push("..");return _=_.concat(a.slice(r)),_.join("/")};ue._makeLong=function(n){return n};ue.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)};ue.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};ue.extname=function(n){return dt(n)[3]};ue.format=function(n){if(!Se.isObject(n))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof n);var e=n.root||"";if(!Se.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof n.root);var o=n.dir?n.dir+ue.sep:"",a=n.base||"";return o+a};ue.parse=function(n){if(!Se.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)}};ue.sep="/";ue.delimiter=":";ds?et.exports=ie:et.exports=ue;et.exports.posix=ue;et.exports.win32=ie;var ps=et.exports;const vs=vn(ps),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},Kt=se({__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:r}=Te(),c=F(()=>({width:"100%",textAlign:"center"})),_=F(()=>({display:"flex",alignItems:"center"})),f=F(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),$=F(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:o.value==="horizontal"?"0 5px 0 0":a.value?"0 auto":"0 5px 0 0"})),g=F(()=>a.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),p=F(()=>b=>{var w;return a.value?{width:"100%",textAlign:(b==null?void 0:b.parentId)===null||o.value==="mix"&&((w=b==null?void 0:b.pathList)==null?void 0:w.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),y=F(()=>{var b;return(b=Xe())!=null&&b.MenuArrowIconNoTransition?{"expand-close-icon":Le(_s),"expand-open-icon":Le(ms),"collapse-close-icon":Le(ys),"collapse-open-icon":Le(gs)}:""}),C=D(null),E=new WeakMap,L=D(null);function z(b){E.get(b)||Re(()=>{var w,j;((w=L.value)==null?void 0:w.scrollWidth)>((j=L.value)==null?void 0:j.clientWidth)?Object.assign(b,{showTooltip:!0}):Object.assign(b,{showTooltip:!1}),E.set(b,!0)})}function T(b,w){var X;const j=((b==null?void 0:b.length)>1?b.toString().slice(0,1):b)+"...";return w&&!(a.value&&(w==null?void 0:w.parentId)===null)?o.value==="mix"&&((X=w==null?void 0:w.pathList)==null?void 0:X.length)===2&&a.value?j:b:j}function Z(b=[],w){var X,N;const j=b.filter(S=>(C.value=S,!0));return(N=(X=j[0])==null?void 0:X.meta)!=null&&N.showParent?!1:j.length===1?!0:j.length===0?(C.value={...w,path:"",noShowingChildren:!0},!0):!1}function M(b){const w=/^http(s?):\/\//;return w.test(b)||w.test(e.basePath)?b||e.basePath:vs.posix.resolve(e.basePath,b)}return(b,w)=>{const j=x("el-tooltip"),X=x("el-menu-item"),N=x("sidebar-item",!0),S=x("el-sub-menu");return Z(e.item.children,e.item)&&(!C.value.children||C.value.noShowingChildren)?(h(),H(X,{key:0,index:M(C.value.path),class:re({"submenu-title-noDropdown":!n.isNest}),style:ne(_.value)},{title:v(()=>[m("div",{style:ne(t(r))},[t(o)==="horizontal"?(h(),I("span",bs,ee(t(be)(C.value.meta.title)),1)):(h(),H(j,{key:1,placement:"top",effect:t(u),offset:-10,disabled:!C.value.showTooltip},{content:v(()=>[oe(ee(t(be)(C.value.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:ne(f.value),onMouseover:w[0]||(w[0]=J=>z(C.value))},ee(t(be)(C.value.meta.title)),37)]),_:1},8,["effect","disabled"])),i(vt,{extraIcon:C.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:v(()=>{var J,fe,ce,q,Ie;return[we(e.item.meta.icon)?(h(),I("div",{key:0,class:"sub-menu-icon",style:ne($.value)},[(h(),H(Ae(t(Le)(we(C.value.meta.icon)||e.item.meta&&we(e.item.meta.icon)))))],4)):Y("",!0),!((J=e.item)!=null&&J.meta.icon)&&t(a)&&t(o)==="vertical"&&((ce=(fe=e.item)==null?void 0:fe.pathList)==null?void 0:ce.length)===1?(h(),I("span",{key:1,style:ne(c.value)},ee(T(t(be)(C.value.meta.title))),5)):Y("",!0),!C.value.meta.icon&&t(a)&&t(o)==="mix"&&((Ie=(q=e.item)==null?void 0:q.pathList)==null?void 0:Ie.length)===2?(h(),I("span",{key:2,style:ne(c.value)},ee(T(t(be)(C.value.meta.title))),5)):Y("",!0)]}),_:1},8,["index","class","style"])):(h(),H(S,mn({key:1,ref:"subMenu"},y.value,{index:M(e.item.path)}),{title:v(()=>[we(e.item.meta.icon)?(h(),I("div",{key:0,style:ne($.value),class:"sub-menu-icon"},[(h(),H(Ae(t(Le)(e.item.meta&&we(e.item.meta.icon)))))],4)):Y("",!0),t(o)==="horizontal"?(h(),I("span",ws,ee(t(be)(e.item.meta.title)),1)):Y("",!0),t(a)&&we(e.item.meta.icon)&&e.item.parentId===null?Y("",!0):(h(),I("div",{key:2,style:ne(p.value(e.item))},[t(o)!=="horizontal"?(h(),H(j,{key:0,placement:"top",effect:t(u),offset:-10,disabled:!e.item.showTooltip},{content:v(()=>[oe(ee(t(be)(e.item.meta.title)),1)]),default:v(()=>[m("span",{ref_key:"menuTextRef",ref:L,style:ne(g.value),onMouseover:w[1]||(w[1]=J=>z(e.item))},ee(T(t(be)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Y("",!0),t(a)?Y("",!0):(h(),H(vt,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:v(()=>[(h(!0),I(ge,null,ke(e.item.children,J=>(h(),H(N,{key:J.path,"is-nest":!0,item:J,"base-path":M(J.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),ks={class:"container"},xs=se({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const o=n,a=D(!1),{tooltipEffect:u}=Te(),r=F(()=>["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"]),c=()=>{e("toggleClick")};return(_,f)=>{const $=x("IconifyIconOffline"),g=x("el-tooltip");return h(),I("div",ks,[i(g,{placement:"right",visible:a.value,effect:t(u),content:o.isActive?"点击折叠":"点击展开"},{default:v(()=>[i($,{icon:t(Bt),class:re(r.value),style:ne({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:c,onMouseenter:f[0]||(f[0]=p=>a.value=!0),onMouseleave:f[1]||(f[1]=p=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Cs=ve(xs,[["__scopeId","data-v-ed074d28"]]),$s=se({__name:"vertical",setup(n){var C;const e=gt(),o=D(((C=Ue().getItem(`${Ge()}configure`))==null?void 0:C.showLogo)??!0),{routers:a,device:u,pureApp:r,isCollapse:c,menuSelect:_,toggleSideBar:f}=Te(),$=D([]),g=F(()=>r.layout==="mix"&&u.value!=="mobile"?$.value:_e().wholeMenus),p=F(()=>r.layout==="mix"?!1:g.value.length===0);function y(E){$.value=[];const L=_t(E,_e().wholeMenus),z=nt(L[0]||E,_e().wholeMenus);z!=null&&z.children&&($.value=z==null?void 0:z.children)}return y(e.path),bt(()=>{He.on("logoChange",E=>{o.value=E})}),Ne(()=>[e.path,_e().wholeMenus],()=>{e.path.includes("/redirect")||(y(e.path),_(e.path,a))}),(E,L)=>{const z=x("el-menu"),T=x("el-scrollbar"),Z=at("loading");return pe((h(),I("div",{class:re(["sidebar-container",o.value?"has-logo":""])},[o.value?(h(),H(is,{key:0,collapse:t(c)},null,8,["collapse"])):Y("",!0),i(T,{"wrap-class":"scrollbar-wrapper",class:re([t(u)==="mobile"?"mobile":"pc"])},{default:v(()=>[i(z,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:t(c),"default-active":t(e).path,"collapse-transition":!1,onSelect:L[0]||(L[0]=M=>t(_)(M,t(a)))},{default:v(()=>[(h(!0),I(ge,null,ke(g.value,M=>(h(),H(Kt,{key:M.path,item:M,"base-path":M.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),t(u)!=="mobile"?(h(),H(Cs,{key:1,"is-active":t(r).sidebar.opened,onToggleClick:t(f)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[Z,p.value]])}}});const Ss=ve($s,[["__scopeId","data-v-f5a1735a"]]),Is=n=>(st("data-v-adc37727"),n=n(),lt(),n),Ms={class:"horizontal-header"},Ts=Is(()=>m("img",{src:Tt,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={key:0,class:"dark:text-white"},Es=["title"],Os=se({__name:"horizontal",setup(n){const e=D(),{t:o,route:a,locale:u,translationCh:r,translationEn:c}=xt(e),{title:_,routers:f,logout:$,backTopMenu:g,onPanel:p,menuSelect:y,username:C,avatarsStyle:E,getDropdownItemStyle:L,getDropdownItemClass:z}=Te();return Re(()=>{var T;(T=e.value)==null||T.handleResize()}),Ne(()=>a.path,()=>{y(a.path,f)}),(T,Z)=>{const M=x("el-menu"),b=x("IconifyIconOffline"),w=x("el-dropdown-item"),j=x("el-dropdown-menu"),X=x("el-dropdown"),N=at("loading");return pe((h(),I("div",Ms,[m("div",{class:"horizontal-header-left",onClick:Z[0]||(Z[0]=(...S)=>t(g)&&t(g)(...S))},[Ts,m("span",null,ee(t(_)),1)]),i(M,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":t(a).path,onSelect:Z[1]||(Z[1]=S=>t(y)(S,t(f)))},{default:v(()=>[(h(!0),I(ge,null,ke(t(_e)().wholeMenus,S=>(h(),H(Kt,{key:S.path,item:S,"base-path":S.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),m("div",Vs,[i(St),i(It,{id:"header-notice"}),i(X,{id:"header-translation",trigger:"click"},{dropdown:v(()=>[i(j,{class:"translation"},{default:v(()=>[i(w,{style:ne(t(L)(t(u),"zh")),class:re(["dark:!text-white",t(z)(t(u),"zh")]),onClick:t(r)},{default:v(()=>[pe(m("span",zs,[i(b,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(u)==="zh"]]),oe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(w,{style:ne(t(L)(t(u),"en")),class:re(["dark:!text-white",t(z)(t(u),"en")]),onClick:t(c)},{default:v(()=>[pe(m("span",Ls,[i(b,{icon:t(qe)},null,8,["icon"])],512),[[xe,t(u)==="en"]]),oe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:v(()=>[i(t(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(X,{trigger:"click"},{dropdown:v(()=>[i(j,{class:"logout"},{default:v(()=>[i(w,{onClick:t($)},{default:v(()=>[i(b,{icon:t(it),style:{margin:"5px"}},null,8,["icon"]),oe(" "+ee(t(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[m("span",As,[m("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:ne(t(E))},null,4),t(C)?(h(),I("p",Hs,ee(t(C)),1)):Y("",!0)])]),_:1}),m("span",{class:"set-icon navbar-bg-hover",title:t(o)("buttons.hssystemSet"),onClick:Z[2]||(Z[2]=(...S)=>t(p)&&t(p)(...S))},[i(b,{icon:t(rt)},null,8,["icon"])],8,Es)])])),[[N,t(_e)().wholeMenus.length===0]])}}});const Zs=ve(Os,[["__scopeId","data-v-adc37727"]]),Ds={key:0},Ps=se({__name:"index",setup(n){const{isDark:e}=Pt(),{layout:o}=Sn(),a=Zt(),u=$t(),{$storage:r}=kt(),c=yt({sidebar:F(()=>je().sidebar),device:F(()=>je().device),fixedHeader:F(()=>u.fixedHeader),classes:F(()=>({hideSidebar:!c.sidebar.opened,openSidebar:c.sidebar.opened,withoutAnimation:c.sidebar.withoutAnimation,mobile:c.device==="mobile"})),hideTabs:F(()=>r==null?void 0:r.configure.hideTabs)});function _(p){var y,C,E,L;window.document.body.setAttribute("layout",p),r.layout={layout:`${p}`,theme:(y=r.layout)==null?void 0:y.theme,darkMode:(C=r.layout)==null?void 0:C.darkMode,sidebarStatus:(E=r.layout)==null?void 0:E.sidebarStatus,epThemeColor:(L=r.layout)==null?void 0:L.epThemeColor}}function f(p,y){je().toggleDevice(p),je().toggleSideBar(y,"resize")}let $=!0;He.on("resize",({detail:p})=>{if(a)return;const{width:y}=p;y<=760?_("vertical"):_(je().layout),y>0&&y<=760?(f("mobile",!1),$=!0):y>760&&y<=990?$&&(f("desktop",!1),$=!1):y>990&&(c.sidebar.isClickCollapse||(f("desktop",!0),$=!0))}),Qe(()=>{a&&f("mobile",!1)});const g=se({render(){return Ke("div",{class:{"fixed-header":c.fixedHeader},style:[c.hideTabs&&o.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!u.hiddenSideBar&&(o.value.includes("vertical")||o.value.includes("mix"))?Ke(sa):null,!u.hiddenSideBar&&o.value.includes("horizontal")?Ke(Zs):null,Ke(wa)]})}});return(p,y)=>{const C=x("el-backtop"),E=x("el-scrollbar"),L=at("resize");return pe((h(),I("div",{class:re(["app-wrapper",c.classes])},[pe(m("div",{class:"app-mask",onClick:y[0]||(y[0]=z=>t(je)().toggleSideBar())},null,512),[[xe,c.device==="mobile"&&c.sidebar.opened&&t(o).includes("vertical")]]),pe(i(Ss,null,null,512),[[xe,!t(u).hiddenSideBar&&(t(o).includes("vertical")||t(o).includes("mix"))]]),m("div",{class:re(["main-container",t(u).hiddenSideBar?"main-hidden":""])},[c.fixedHeader?(h(),I("div",Ds,[i(t(g)),i(Ht,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])])):(h(),H(E,{key:1},{default:v(()=>[i(C,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:v(()=>[i(t(qt))]),_:1}),i(t(g)),i(Ht,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),i(ns)],2)),[[L]])}}});const tl=ve(Ps,[["__scopeId","data-v-f13df477"]]);export{tl as default};
|