import{U as X,x as be,y as vt,_ as Y,n as Qe,K as _t,u as ee,t as ne,L as et,W as Ze,Y as Ee,$ as le,a0 as ge,s as ke,w as Ce,a1 as Q,a2 as gt,a3 as Be,V as ve,a4 as Ae,a5 as Ve,a6 as De,a7 as yt,a8 as tt,a9 as Re,B as nt,E as we,aa as wt,ab as kt,ac as Ct,c as bt,g as xt}from"./index-9893edff.js";import{d as Nt}from"./menu-a4fe64fb.js";import{E as St}from"./edit-542ce8b5.js";import{S as Bt}from"./set-up-729eb907.js";import{d as Et}from"./admin-line-92b9acda.js";import{d as $t}from"./git-branch-line-aa4cb38f.js";import{u as se,a as Pe,g as je,b as Mt,t as Tt,d as zt,c as It,e as Dt}from"./dark-9ac8153f.js";import{u as _e}from"./app-50c22a82.js";import{u as Lt}from"./epTheme-7f2364e9.js";import{u as de}from"./hooks-61dae283.js";import{o as Le,u as At,a as Ht,b as Ot,c as Zt}from"./index-5ce2e68d.js";import{S as ot}from"./search-4b9e88d3.js";import{C as ye}from"./check-f53d8364.js";import{d as Rt}from"./refresh-right-6177e75c.js";import{A as Pt}from"./arrow-right-s-line-bcf0e8c6.js";const jt={width:24,height:24,body:''},Ft={width:24,height:24,body:''},qt={width:24,height:24,body:''},Ut={width:1024,height:1024,body:''},Wt={width:1024,height:1024,body:''},Gt={width:24,height:24,body:''},Kt={width:24,height:24,body:''},Xt={width:1024,height:1024,body:''},Jt={width:24,height:24,body:''},Yt={width:24,height:24,body:''},Qt={width:24,height:24,body:''},en={width:24,height:24,body:''},$e=en,tn={width:1024,height:1024,body:''},nn={width:1024,height:1024,body:''};X("ubuntuFill",jt);X("menu",Nt);X("edit",St);X("informationLine",Ft);X("setUp",Bt);X("terminalWindowLine",qt);X("guide",Ut);X("homeFilled",Wt);X("card",Gt);X("listCheck",Kt);X("histogram",Xt);X("ppt",Jt);X("checkboxCircleLine",Yt);X("flUser",Et);X("role",Qt);X("setting",$e);X("dept",$t);X("lollipop",tn);X("monitor",nn);const on=Pinia.defineStore({id:"pure-setting",state:()=>({title:be().Title,fixedHeader:be().FixedHeader,hiddenSideBar:be().HiddenSideBar}),getters:{getTitle(t){return t.title},getFixedHeader(t){return t.fixedHeader},getHiddenSideBar(t){return t.hiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){Reflect.has(this,t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Fe(){return on(vt)}const rn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},an=Vue.createElementVNode("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),un=[an];function ln(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",rn,un)}const rt={render:ln},sn={width:24,height:24,body:''},cn=sn,dn={class:"result"},Vn=["onMouseenter"],fn={class:"result-item-title"},pn=Vue.defineComponent({__name:"SearchResult",props:{value:null,options:null},emits:["update:value","enter"],setup(t,{emit:e}){const n=t,{t:o}=VueI18n.useI18n(),s=Vue.computed(()=>c=>({background:(c==null?void 0:c.path)===u.value?Lt().epThemeColor:"",color:c.path===u.value?"#fff":"",fontSize:c.path===u.value?"16px":"14px"})),u=Vue.computed({get(){return n.value},set(c){e("update:value",c)}});async function l(c){u.value=c.path}function V(){e("enter")}return(c,g)=>(Vue.openBlock(),Vue.createElementBlock("div",dn,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.options,f=>{var d,p;return Vue.openBlock(),Vue.createElementBlock("div",{key:f.path,class:"result-item dark:bg-[#1d1d1d]",style:Vue.normalizeStyle(Vue.unref(s)(f)),onClick:V,onMouseenter:_=>l(f)},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(((d=f.meta)==null?void 0:d.icon)??Vue.unref(cn))))),Vue.createElementVNode("span",fn,Vue.toDisplayString(Vue.unref(o)((p=f.meta)==null?void 0:p.title)),1),Vue.createVNode(Vue.unref(rt))],44,Vn)}),128))]))}});const hn=Y(pn,[["__scopeId","data-v-2bcad0d6"]]),mn={width:24,height:24,body:''},vn=mn,_n={width:24,height:24,body:''},gn=_n,yn={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},wn=Vue.createElementVNode("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),kn=[wn];function Cn(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",yn,kn)}const bn={render:Cn},xn={class:"search-footer text-[#333] dark:text-white"},Nn={class:"search-footer-item"},Sn={class:"search-footer-item"},Bn={class:"search-footer-item"},En=Vue.defineComponent({__name:"SearchFooter",setup(t){return(e,n)=>{const o=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock("div",xn,[Vue.createElementVNode("span",Nn,[Vue.createVNode(Vue.unref(rt),{class:"icon"}),Vue.createTextVNode(" 确认 ")]),Vue.createElementVNode("span",Sn,[Vue.createVNode(o,{icon:Vue.unref(vn),class:"icon"},null,8,["icon"]),Vue.createVNode(o,{icon:Vue.unref(gn),class:"icon"},null,8,["icon"]),Vue.createTextVNode(" 切换 ")]),Vue.createElementVNode("span",Bn,[Vue.createVNode(Vue.unref(bn),{class:"icon"}),Vue.createTextVNode(" 关闭 ")])])}}});const $n=Y(En,[["__scopeId","data-v-8f46a26f"]]),Mn={class:"el-input__icon"},Tn={class:"search-result-container"},zn=Vue.defineComponent({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const n=t,{device:o}=se(),s=VueRouter.useRouter(),u=Vue.ref(""),l=Vue.ref(""),V=Vue.ref(null),c=Vue.shallowRef([]),g=Qe(_,300),f=Vue.computed(()=>_t(ee().wholeMenus)),d=Vue.computed({get(){return n.value},set(E){e("update:value",E)}});function p(E){const w=[];function h(m){m.forEach(M=>{w.push(M),M.children&&h(M.children)})}return h(E),w}function _(){var w;const E=p(f.value);c.value=E.filter(h=>{var m;return u.value&&ne((m=h.meta)==null?void 0:m.title).toLocaleLowerCase().includes(u.value.toLocaleLowerCase().trim())}),((w=c.value)==null?void 0:w.length)>0?l.value=c.value[0].path:l.value=""}function S(){d.value=!1,setTimeout(()=>{c.value=[],u.value=""},200)}function x(){const{length:E}=c.value;if(E===0)return;const w=c.value.findIndex(h=>h.path===l.value);w===0?l.value=c.value[E-1].path:l.value=c.value[w-1].path}function b(){const{length:E}=c.value;if(E===0)return;const w=c.value.findIndex(h=>h.path===l.value);w+1===E?l.value=c.value[0].path:l.value=c.value[w+1].path}function k(){const{length:E}=c.value;E===0||l.value===""||(s.push(l.value),S())}return Le("Enter",k),Le("ArrowUp",x),Le("ArrowDown",b),(E,w)=>{const h=Vue.resolveComponent("IconifyIconOffline"),m=Vue.resolveComponent("el-input"),M=Vue.resolveComponent("el-empty"),Z=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(Z,{top:"5vh",modelValue:Vue.unref(d),"onUpdate:modelValue":w[2]||(w[2]=T=>Vue.isRef(d)?d.value=T:null),width:Vue.unref(o)==="mobile"?"80vw":"50vw","before-close":S,onOpened:w[3]||(w[3]=T=>V.value.focus()),onClosed:w[4]||(w[4]=T=>V.value.blur())},{footer:Vue.withCtx(()=>[Vue.createVNode($n)]),default:Vue.withCtx(()=>[Vue.createVNode(m,{ref_key:"inputRef",ref:V,modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=T=>u.value=T),clearable:"",placeholder:"请输入关键词搜索",onInput:Vue.unref(g)},{prefix:Vue.withCtx(()=>[Vue.createElementVNode("span",Mn,[Vue.createVNode(h,{icon:Vue.unref(ot)},null,8,["icon"])])]),_:1},8,["modelValue","onInput"]),Vue.createElementVNode("div",Tn,[Vue.unref(c).length===0?(Vue.openBlock(),Vue.createBlock(M,{key:0,description:"暂无搜索结果"})):(Vue.openBlock(),Vue.createBlock(hn,{key:1,value:l.value,"onUpdate:value":w[1]||(w[1]=T=>l.value=T),options:Vue.unref(c),onClick:k},null,8,["value","options"]))])]),_:1},8,["modelValue","width"])}}});const In=Y(zn,[["__scopeId","data-v-24e9bf4c"]]);function Dn(t=!1){const e=Vue.ref(t);function n(l){e.value=l}function o(){n(!0)}function s(){n(!1)}function u(){n(!e.value)}return{bool:e,setBool:n,setTrue:o,setFalse:s,toggle:u}}const qe=Vue.defineComponent({__name:"index",setup(t){const{bool:e,toggle:n}=Dn();function o(){n()}return(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.createElementVNode("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:o},[Vue.createVNode(l,{icon:Vue.unref(ot)},null,8,["icon"])]),Vue.createVNode(Vue.unref(In),{value:Vue.unref(e),"onUpdate:value":u[0]||(u[0]=V=>Vue.isRef(e)?e.value=V:null)},null,8,["value"])],64)}}}),Xe=[{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"}]}],Ln={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},An={class:"notice-container-text"},Hn={class:"notice-text-title text-[#000000d9] dark:text-white"},On={class:"notice-text-datetime text-[#00000073] dark:text-white"},Zn=Vue.defineComponent({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,n=Vue.ref(null),o=Vue.ref(!1),s=Vue.ref(null),u=Vue.ref(!1),{tooltipEffect:l}=se(),V=et();function c(){Vue.nextTick(()=>{var f,d;((f=n.value)==null?void 0:f.scrollWidth)>((d=n.value)==null?void 0:d.clientWidth)?o.value=!0:o.value=!1})}function g(f,d){const p=document.createElement("span");p.innerText=d,p.className="getDescriptionWidth",document.querySelector("body").appendChild(p);const _=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const S=f.target.offsetWidth;_>2*S?u.value=!0:u.value=!1}return(f,d)=>{var x,b;const p=Vue.resolveComponent("el-avatar"),_=Vue.resolveComponent("el-tooltip"),S=Vue.resolveComponent("el-tag");return Vue.openBlock(),Vue.createElementBlock("div",Ln,[e.noticeItem.avatar?(Vue.openBlock(),Vue.createBlock(p,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Vue.createCommentVNode("",!0),Vue.createElementVNode("div",An,[Vue.createElementVNode("div",Hn,[Vue.createVNode(_,{"popper-class":"notice-title-popper",effect:Vue.unref(l),disabled:!o.value,content:e.noticeItem.title,placement:"top-start",enterable:!Vue.unref(V)},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref_key:"titleRef",ref:n,class:"notice-title-content",onMouseover:c},Vue.toDisplayString(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(x=e.noticeItem)!=null&&x.extra?(Vue.openBlock(),Vue.createBlock(S,{key:0,type:(b=e.noticeItem)==null?void 0:b.status,size:"small",class:"notice-title-extra"},{default:Vue.withCtx(()=>{var k;return[Vue.createTextVNode(Vue.toDisplayString((k=e.noticeItem)==null?void 0:k.extra),1)]}),_:1},8,["type"])):Vue.createCommentVNode("",!0)]),Vue.createVNode(_,{"popper-class":"notice-title-popper",effect:Vue.unref(l),disabled:!u.value,content:e.noticeItem.description,placement:"top-start"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",{ref_key:"descriptionRef",ref:s,class:"notice-text-description",onMouseover:d[0]||(d[0]=k=>g(k,e.noticeItem.description))},Vue.toDisplayString(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),Vue.createElementVNode("div",On,Vue.toDisplayString(e.noticeItem.datetime),1)])])}}});const Rn=Y(Zn,[["__scopeId","data-v-2a7dbc48"]]),Pn={key:0},jn=Vue.defineComponent({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(n,o)=>{const s=Vue.resolveComponent("el-empty");return e.list.length?(Vue.openBlock(),Vue.createElementBlock("div",Pn,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.list,(u,l)=>(Vue.openBlock(),Vue.createBlock(Rn,{noticeItem:u,key:l},null,8,["noticeItem"]))),128))])):(Vue.openBlock(),Vue.createBlock(s,{key:1,description:"暂无数据"}))}}}),Fn={width:1024,height:1024,body:''},qn=Fn,Un={class:"dropdown-badge navbar-bg-hover select-none"},Wn={class:"header-notice-icon"},Gn={class:"noticeList-container"},Kn=Vue.defineComponent({__name:"index",setup(t){const e=Vue.ref(0),n=Vue.ref(Xe),o=Vue.ref(Xe[0].key);return n.value.map(s=>e.value+=s.list.length),(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline"),V=Vue.resolveComponent("el-badge"),c=Vue.resolveComponent("el-scrollbar"),g=Vue.resolveComponent("el-tab-pane"),f=Vue.resolveComponent("el-tabs"),d=Vue.resolveComponent("el-dropdown-menu"),p=Vue.resolveComponent("el-dropdown");return Vue.openBlock(),Vue.createBlock(p,{trigger:"click",placement:"bottom-end"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(d,null,{default:Vue.withCtx(()=>[Vue.createVNode(f,{stretch:!0,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=_=>o.value=_),class:"dropdown-tabs"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,_=>(Vue.openBlock(),Vue.createBlock(g,{key:_.key,label:`${_.name}(${_.list.length})`,name:`${_.key}`},{default:Vue.withCtx(()=>[Vue.createVNode(c,{"max-height":"330px"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",Gn,[Vue.createVNode(jn,{list:_.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",Un,[Vue.createVNode(V,{value:e.value,max:99},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",Wn,[Vue.createVNode(l,{icon:Vue.unref(qn)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const Ue=Y(Kn,[["__scopeId","data-v-4e7fe581"]]),Xn={key:0,class:"flex justify-center items-center"},He=Vue.defineComponent({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(n,o)=>e.extraIcon?(Vue.openBlock(),Vue.createElementBlock("div",Xn,[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(Vue.toRaw(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Vue.createCommentVNode("",!0)}}),Jn={width:24,height:24,body:''},Me=Jn,Yn={key:0,class:"horizontal-header"},Qn={class:"select-none"},eo={class:"horizontal-header-right"},to={class:"check-zh"},no={class:"check-en"},oo={class:"el-dropdown-link navbar-bg-hover select-none"},ro={key:0,class:"dark:text-white"},ao=["title"],uo=Vue.defineComponent({__name:"mixNav",setup(t){const e=Vue.ref(),n=Vue.ref(null),{t:o,route:s,locale:u,translationCh:l,translationEn:V}=Pe(e),{device:c,routers:g,logout:f,onPanel:d,menuSelect:p,resolvePath:_,username:S,getDivStyle:x,avatarsStyle:b,getDropdownItemStyle:k,getDropdownItemClass:E}=se();function w(h){var Z,T;const m=ee().wholeMenus,M=Ze(h,m)[0];n.value=(T=(Z=Ee(M,m))==null?void 0:Z.children[0])==null?void 0:T.path}return Vue.onMounted(()=>{w(s.path)}),Vue.nextTick(()=>{var h;(h=e.value)==null||h.handleResize()}),Vue.watch(()=>[s.path,ee().wholeMenus],()=>{w(s.path)}),(h,m)=>{const M=Vue.resolveComponent("el-menu-item"),Z=Vue.resolveComponent("el-menu"),T=Vue.resolveComponent("IconifyIconOffline"),y=Vue.resolveComponent("el-dropdown-item"),R=Vue.resolveComponent("el-dropdown-menu"),J=Vue.resolveComponent("el-dropdown"),W=Vue.resolveDirective("loading");return Vue.unref(c)!=="mobile"?Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",Yn,[Vue.createVNode(Z,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":n.value,onSelect:m[0]||(m[0]=D=>Vue.unref(p)(D,Vue.unref(g)))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(ee)().wholeMenus,D=>(Vue.openBlock(),Vue.createBlock(M,{key:D.path,index:Vue.unref(_)(D)||D.redirect},{title:Vue.withCtx(()=>[Vue.toRaw(D.meta.icon)?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:Vue.normalizeClass(["sub-menu-icon",D.meta.icon])},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(D.meta&&Vue.toRaw(D.meta.icon)))))],2)):Vue.createCommentVNode("",!0),Vue.createElementVNode("div",{style:Vue.normalizeStyle(Vue.unref(x))},[Vue.createElementVNode("span",Qn,Vue.toDisplayString(Vue.unref(ne)(D.meta.title)),1),Vue.createVNode(He,{extraIcon:D.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),Vue.createElementVNode("div",eo,[Vue.createVNode(qe),Vue.createVNode(Ue,{id:"header-notice"}),Vue.createVNode(J,{id:"header-translation",trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(R,{class:"translation"},{default:Vue.withCtx(()=>[Vue.createVNode(y,{style:Vue.normalizeStyle(Vue.unref(k)(Vue.unref(u),"zh")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(E)(Vue.unref(u),"zh")]),onClick:Vue.unref(l)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",to,[Vue.createVNode(T,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(u)==="zh"]]),Vue.createTextVNode(" 简体中文 ")]),_:1},8,["style","class","onClick"]),Vue.createVNode(y,{style:Vue.normalizeStyle(Vue.unref(k)(Vue.unref(u),"en")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(E)(Vue.unref(u),"en")]),onClick:Vue.unref(V)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",no,[Vue.createVNode(T,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(u)==="en"]]),Vue.createTextVNode(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(je),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),Vue.createVNode(J,{trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(R,{class:"logout"},{default:Vue.withCtx(()=>[Vue.createVNode(y,{onClick:Vue.unref(f)},{default:Vue.withCtx(()=>[Vue.createVNode(T,{icon:Vue.unref(Me),style:{margin:"5px"}},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",oo,[Vue.createElementVNode("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:Vue.normalizeStyle(Vue.unref(b))},null,4),Vue.unref(S)?(Vue.openBlock(),Vue.createElementBlock("p",ro,Vue.toDisplayString(Vue.unref(S)),1)):Vue.createCommentVNode("",!0)])]),_:1}),Vue.createElementVNode("span",{class:"set-icon navbar-bg-hover",title:Vue.unref(o)("buttons.hssystemSet"),onClick:m[1]||(m[1]=(...D)=>Vue.unref(d)&&Vue.unref(d)(...D))},[Vue.createVNode(T,{icon:Vue.unref($e)},null,8,["icon"])],8,ao)])])),[[W,Vue.unref(ee)().wholeMenus.length===0]]):Vue.createCommentVNode("",!0)}}});const lo=Y(uo,[["__scopeId","data-v-316fde2f"]]),so=["onClick"],io=Vue.defineComponent({__name:"breadCrumb",setup(t){const e=VueRouter.useRoute(),n=Vue.ref([]),o=VueRouter.useRouter(),s=o.options.routes,u=le().multiTags,l=()=>{let c;Object.keys(e.query).length>0?u.forEach(d=>{ge(e.query,d==null?void 0:d.query)&&(c=Vue.toRaw(d))}):Object.keys(e.params).length>0?u.forEach(d=>{ge(e.params,d==null?void 0:d.params)&&(c=Vue.toRaw(d))}):c=Ee(o.currentRoute.value.path,s);const g=Ze(o.currentRoute.value.name,s,"name"),f=[];g.forEach(d=>{d!=="/"&&f.push(Ee(d,s))}),f.push(c),f.forEach((d,p)=>{c!=null&&c.query||c!=null&&c.params||d!=null&&d.children&&d.children.forEach(_=>{var S,x;((S=_==null?void 0:_.meta)==null?void 0:S.title)===((x=d==null?void 0:d.meta)==null?void 0:x.title)&&f.splice(p,1)})}),n.value=f.filter(d=>(d==null?void 0:d.meta)&&(d==null?void 0:d.meta.title)!==!1)},V=c=>{const{redirect:g,path:f}=c;g?o.push(g):o.push(f)};return Vue.onMounted(()=>{l()}),Vue.watch(()=>e.path,()=>{l()},{deep:!0}),(c,g)=>{const f=Vue.resolveComponent("el-breadcrumb-item"),d=Vue.resolveComponent("el-breadcrumb");return Vue.openBlock(),Vue.createBlock(d,{class:"!leading-[50px] select-none",separator:"/"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.TransitionGroup,{name:"breadcrumb"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,p=>(Vue.openBlock(),Vue.createBlock(f,{class:"!inline !items-stretch",key:p.path},{default:Vue.withCtx(()=>[Vue.createElementVNode("a",{onClick:Vue.withModifiers(_=>V(p),["prevent"])},Vue.toDisplayString(Vue.unref(ne)(p.meta.title)),9,so)]),_:2},1024))),128))]),_:1})]),_:1})}}}),co={width:24,height:24,body:''},at=co,Vo={width:24,height:24,body:''},fo=Vo,po=["title"],ho=Vue.defineComponent({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,o=()=>{e("toggleClick")};return(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"点击折叠":"点击展开",onClick:o},[Vue.createVNode(l,{icon:n.isActive?Vue.unref(at):Vue.unref(fo),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,po)}}}),mo={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},vo={key:3,class:"vertical-header-right"},_o={class:"check-en"},go={class:"el-dropdown-link navbar-bg-hover select-none"},yo={key:0,class:"dark:text-white"},wo=["title"],ko=Vue.defineComponent({__name:"navbar",setup(t){const{layout:e,device:n,logout:o,onPanel:s,pureApp:u,username:l,avatarsStyle:V,toggleSideBar:c,getDropdownItemStyle:g,getDropdownItemClass:f}=se(),{t:d,locale:p,translationCh:_,translationEn:S}=Pe();return(x,b)=>{const k=Vue.resolveComponent("IconifyIconOffline"),E=Vue.resolveComponent("el-dropdown-item"),w=Vue.resolveComponent("el-dropdown-menu"),h=Vue.resolveComponent("el-dropdown");return Vue.openBlock(),Vue.createElementBlock("div",mo,[Vue.unref(n)==="mobile"?(Vue.openBlock(),Vue.createBlock(ho,{key:0,class:"hamburger-container","is-active":Vue.unref(u).sidebar.opened,onToggleClick:Vue.unref(c)},null,8,["is-active","onToggleClick"])):Vue.createCommentVNode("",!0),Vue.unref(e)!=="mix"&&Vue.unref(n)!=="mobile"?(Vue.openBlock(),Vue.createBlock(io,{key:1,class:"breadcrumb-container"})):Vue.createCommentVNode("",!0),Vue.unref(e)==="mix"?(Vue.openBlock(),Vue.createBlock(lo,{key:2})):Vue.createCommentVNode("",!0),Vue.unref(e)==="vertical"?(Vue.openBlock(),Vue.createElementBlock("div",vo,[Vue.createVNode(qe),Vue.createVNode(Ue,{id:"header-notice"}),Vue.createVNode(h,{id:"header-translation",trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(w,{class:"translation"},{default:Vue.withCtx(()=>[Vue.createVNode(E,{style:Vue.normalizeStyle(Vue.unref(g)(Vue.unref(p),"zh")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(f)(Vue.unref(p),"zh")]),onClick:Vue.unref(_)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(k,{class:"check-zh",icon:Vue.unref(ye)},null,8,["icon"]),[[Vue.vShow,Vue.unref(p)==="zh"]]),Vue.createTextVNode(" 简体中文 ")]),_:1},8,["style","class","onClick"]),Vue.createVNode(E,{style:Vue.normalizeStyle(Vue.unref(g)(Vue.unref(p),"en")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(f)(Vue.unref(p),"en")]),onClick:Vue.unref(S)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",_o,[Vue.createVNode(k,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(p)==="en"]]),Vue.createTextVNode(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(je),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),Vue.createVNode(h,{trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(w,{class:"logout"},{default:Vue.withCtx(()=>[Vue.createVNode(E,{onClick:Vue.unref(o)},{default:Vue.withCtx(()=>[Vue.createVNode(k,{icon:Vue.unref(Me),style:{margin:"5px"}},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(d)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",go,[Vue.createElementVNode("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:Vue.normalizeStyle(Vue.unref(V))},null,4),Vue.unref(l)?(Vue.openBlock(),Vue.createElementBlock("p",yo,Vue.toDisplayString(Vue.unref(l)),1)):Vue.createCommentVNode("",!0)])]),_:1}),Vue.createElementVNode("span",{class:"set-icon navbar-bg-hover",title:Vue.unref(d)("buttons.hssystemSet"),onClick:b[0]||(b[0]=(...m)=>Vue.unref(s)&&Vue.unref(s)(...m))},[Vue.createVNode(k,{icon:Vue.unref($e)},null,8,["icon"])],8,wo)])):Vue.createCommentVNode("",!0)])}}});const Co=Y(ko,[["__scopeId","data-v-b44add8f"]]),bo={width:24,height:24,body:''},xe=bo,xo={width:24,height:24,body:''},No={width:24,height:24,body:''},So={width:24,height:24,body:''},Bo={width:24,height:24,body:''},Eo={width:1024,height:1024,body:''},ut=Eo;function $o(){var T;const t=VueRouter.useRoute(),e=VueRouter.useRouter(),n=Vue.getCurrentInstance(),o=Fe(),s=Vue.ref(0),u=Vue.ref(0),l=Vue.ref(0),V=Vue.ref(!1),c=Vue.ref(-1),g=Vue.ref({}),f=Vue.ref(((T=ke().getItem(`${Ce()}configure`))==null?void 0:T.showModel)||"smart"),d=Vue.ref(ke().getItem(`${Ce()}configure`).hideTabs)??Vue.ref("false"),p=Vue.computed(()=>le().multiTags),_=Vue.reactive([{icon:Rt,text:Q("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:ut,text:Q("buttons.hscloseCurrentTab"),divided:!1,disabled:!(p.value.length>1),show:!0},{icon:Bo,text:Q("buttons.hscloseLeftTabs"),divided:!0,disabled:!(p.value.length>1),show:!0},{icon:So,text:Q("buttons.hscloseRightTabs"),divided:!1,disabled:!(p.value.length>1),show:!0},{icon:No,text:Q("buttons.hscloseOtherTabs"),divided:!0,disabled:!(p.value.length>2),show:!0},{icon:xo,text:Q("buttons.hscloseAllTabs"),divided:!1,disabled:!(p.value.length>1),show:!0},{icon:xe,text:Q("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:xe,text:Q("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function S(y,R,J){var W,D;return gt((W=t==null?void 0:t.meta)==null?void 0:W.showLink)&&((D=t==null?void 0:t.meta)==null?void 0:D.showLink)===!1?Object.keys(t.query).length>0?ge(t.query,y.query)?R:J:ge(t.params,y.params)?R:J:t.path===y.path?R:J}const x=Vue.computed(()=>(y,R)=>{if(R!==0)return S(y,!0,!1)}),b=Vue.computed(()=>y=>S(y,"is-active","")),k=Vue.computed(()=>y=>S(y,"schedule-active","")),E=Vue.computed(()=>({transform:`translateX(${l.value}px)`})),w=Vue.computed(()=>({left:u.value+"px",top:s.value+"px"})),h=()=>{V.value=!1};function m(y){if(y&&(c.value=y),Vue.unref(f)==="smart"){if(Be(n.refs["schedule"+y][0],"schedule-active"))return;ve(!0,"schedule-in",n.refs["schedule"+y][0]),ve(!1,"schedule-out",n.refs["schedule"+y][0])}else{if(Be(n.refs["dynamic"+y][0],"card-active"))return;ve(!0,"card-in",n.refs["dynamic"+y][0]),ve(!1,"card-out",n.refs["dynamic"+y][0])}}function M(y){if(c.value=-1,Vue.unref(f)==="smart"){if(Be(n.refs["schedule"+y][0],"schedule-active"))return;ve(!1,"schedule-in",n.refs["schedule"+y][0]),ve(!0,"schedule-out",n.refs["schedule"+y][0])}else{if(Be(n.refs["dynamic"+y][0],"card-active"))return;ve(!1,"card-in",n.refs["dynamic"+y][0]),ve(!0,"card-out",n.refs["dynamic"+y][0])}}function Z(){o.hiddenSideBar?o.changeSetting({key:"hiddenSideBar",value:!1}):o.changeSetting({key:"hiddenSideBar",value:!0})}return Vue.onMounted(()=>{if(!f.value){const y=ke().getItem(`${Ce()}configure`);y.showModel="card",ke().setItem(`${Ce()}configure`,y)}}),Vue.watch(()=>V.value,()=>{At(document,"click",h)}),{route:t,router:e,visible:V,showTags:d,instance:n,multiTags:p,showModel:f,tagsViews:_,buttonTop:s,buttonLeft:u,translateX:l,pureSetting:o,activeIndex:c,getTabStyle:E,iconIsActive:x,linkIsActive:b,currentSelect:g,scheduleIsActive:k,getContextMenuStyle:w,$t:Q,closeMenu:h,onMounted:Vue.onMounted,onMouseenter:m,onMouseleave:M,transformI18n:ne,onContentFullScreen:Z}}const Je={width:24,height:24,body:''},Mo={width:24,height:24,body:''},To=Mo,zo={width:24,height:24,body:''},Io=zo,Do={width:1024,height:1024,body:''},Lo=Do,Ao={class:"arrow-left"},Ho=["onContextmenu","onMouseenter","onMouseleave","onClick"],Oo=["onClick"],Zo={class:"arrow-right"},Ro=["onClick"],Po={class:"arrow-down"},jo=Vue.defineComponent({__name:"index",setup(t){const{route:e,router:n,visible:o,showTags:s,instance:u,multiTags:l,tagsViews:V,buttonTop:c,buttonLeft:g,showModel:f,translateX:d,pureSetting:p,activeIndex:_,getTabStyle:S,iconIsActive:x,linkIsActive:b,currentSelect:k,scheduleIsActive:E,getContextMenuStyle:w,closeMenu:h,onMounted:m,onMouseenter:M,onMouseleave:Z,transformI18n:T,onContentFullScreen:y}=$o(),R=Vue.ref(),J=Vue.ref(),W=Vue.ref(),D=Vue.ref(!1),ue=Ae().path,{VITE_HIDE_HOME:fe}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"true",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},{isFullscreen:pe,toggle:a}=Ht(),r=()=>{const v=l.value.findIndex(C=>C.query?ge(e.query,C.query):C.params?ge(e.params,C.params):C.path===e.path);i(v)},i=async v=>{var I,q;if(!u.refs["dynamic"+v])return;const B=u.refs["dynamic"+v][0],O=B==null?void 0:B.offsetLeft,K=B==null?void 0:B.offsetWidth,$=W.value?(I=W.value)==null?void 0:I.offsetWidth:0;await Vue.nextTick();const j=R.value?(q=R.value)==null?void 0:q.offsetWidth:0;$<=j?D.value=!0:D.value=!1,j<$||O===0?d.value=0:O<-d.value?d.value=-O+10:O>-d.value&&O+K<-d.value+$?d.value=Math.min(0,$-K-O-10):d.value=-(O-($-10-K))},N=v=>{var O;const C=W.value?(O=W.value)==null?void 0:O.offsetWidth:0,B=R.value?R.value.offsetWidth:0;v>0?d.value=Math.min(0,d.value+v):C=-(B-C)&&(d.value=Math.max(d.value+v,C-B)):d.value=0};function L(v,C){const B=l.value.some(K=>K.path===v);function O(K,$,j){B||K.forEach(I=>{const q=j+I.path;I.path===$||q===$?le().handleTags("push",{path:$,parentPath:`/${j.split("/")[1]}`,meta:I.meta,name:I.name}):I.children&&I.children.length>0&&O(I.children,$,j)})}O(n.options.routes,v,C)}function z(){const{fullPath:v,query:C}=Vue.unref(e);n.replace({path:"/redirect"+v,query:C}),De(e,"refresh")}function A(v,C,B){var j,I,q,ce;const O=l.value.findIndex(re=>{if(re.query){if(re.path===v.path)return re.query===v.query}else if(re.params){if(re.path===v.path)return re.params===v.params}else return re.path===v.path}),K=(re,ht,mt)=>{mt?le().handleTags("equal",[fe==="false"?tt[0]:Vue.toRaw(Ae()),v]):le().handleTags("splice","",{startIndex:re,length:ht}),r()};B==="other"?K(1,1,!0):B==="left"?K(1,O-1):B==="right"?K(O+1,l.value.length):K(O,1);const $=le().handleTags("slice");if(C===e.path){if(B==="left")return;(j=$[0])!=null&&j.query?n.push({name:$[0].name,query:$[0].query}):(I=$[0])!=null&&I.params?n.push({name:$[0].name,params:$[0].params}):n.push({path:$[0].path})}else{if(!l.value.length||l.value.some(re=>re.path===e.path))return;(q=$[0])!=null&&q.query?n.push({name:$[0].name,query:$[0].query}):(ce=$[0])!=null&&ce.params?n.push({name:$[0].name,params:$[0].params}):n.push({path:$[0].path})}}function H(v,C){A(v,v.path,C),De(e)}function F(v,C,B){if(C&&C.disabled)return;let O;switch(B?O={path:B.path,meta:B.meta,name:B.name,query:B==null?void 0:B.query,params:B==null?void 0:B.params}:O={path:e.path,meta:e.meta},v){case 0:z();break;case 1:H(O);break;case 2:H(O,"left");break;case 3:H(O,"right");break;case 4:H(O,"other");break;case 5:le().handleTags("splice","",{startIndex:1,length:l.value.length}),n.push(ue),De(e);break;case 6:a(),setTimeout(()=>{pe.value?(V[6].icon=Je,V[6].text=Q("buttons.hswholeExitFullScreen")):(V[6].icon=xe,V[6].text=Q("buttons.hswholeFullScreen"))},100);break;case 7:y(),setTimeout(()=>{p.hiddenSideBar?(V[7].icon=Je,V[7].text=Q("buttons.hscontentExitFullScreen")):(V[7].icon=xe,V[7].text=Q("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{me(e.fullPath,e.query)})}function te(v){const{key:C,item:B}=v;F(C,B)}function he(v,C){F(v,C,k.value)}function P(v){Array.of(1,2,3,4,5).forEach(C=>{V[C].show=v})}function ie(v){Array.of(1,2,3,4,5).forEach(C=>{V[C].disabled=v})}function me(v,C={},B=!1){const O=l.value,K=l.value.length;let $=-1;yt(C)?$=O.findIndex(j=>j.path===v):$=O.findIndex(j=>ge(j.query,C)),P(!0),B&&(V[0].show=!0),$===1&&K!==2?(V[2].show=!1,Array.of(1,3,4,5).forEach(j=>{V[j].disabled=!1}),V[2].disabled=!0):$===1&&K===2?(ie(!1),Array.of(2,3,4).forEach(j=>{V[j].show=!1,V[j].disabled=!0})):K-1===$&&$!==0?(V[3].show=!1,Array.of(1,2,4,5).forEach(j=>{V[j].disabled=!1}),V[3].disabled=!0):$===0||v===`/redirect${ue}`?ie(!0):ie(!1)}function ft(v,C){h(),v.path===ue?(P(!1),V[0].show=!0):e.path!==v.path&&e.name!==v.name?(V[0].show=!1,me(v.path,v.query)):l.value.length===2&&e.path!==v.path?(P(!0),V[4].show=!1):e.path===v.path&&me(v.path,v.query,!0),k.value=v;const B=105,O=Vue.unref(J).getBoundingClientRect().left,$=Vue.unref(J).offsetWidth-B,j=C.clientX-O+5;j>$?g.value=$:g.value=j,Fe().hiddenSideBar?c.value=C.clientY:c.value=C.clientY-40,Vue.nextTick(()=>{o.value=!0})}function pt(v){const{name:C,path:B}=v;C?v.query?n.push({name:C,query:v.query}):v.params?n.push({name:C,params:v.params}):n.push({name:C}):n.push({path:B})}return Vue.onBeforeMount(()=>{u&&(me(e.fullPath),Ve.on("tagViewsChange",v=>{Vue.unref(s)!==v&&(s.value=v)}),Ve.on("tagViewsShowModel",v=>{f.value=v}),Ve.on("changLayoutRoute",({indexPath:v,parentPath:C})=>{L(v,C),setTimeout(()=>{me(v)})}))}),Vue.watch([e],()=>{_.value=-1,r()}),Vue.watch(pe,()=>{V[6].icon=xe,V[6].text=Q("buttons.hswholeFullScreen")}),m(()=>{Ot(W,Qe(()=>{r()},200))}),(v,C)=>{const B=Vue.resolveComponent("IconifyIconOffline"),O=Vue.resolveComponent("router-link"),K=Vue.resolveComponent("el-dropdown-item"),$=Vue.resolveComponent("el-dropdown-menu"),j=Vue.resolveComponent("el-dropdown");return Vue.unref(s)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",{key:0,ref_key:"containerDom",ref:J,class:"tags-view"},[Vue.withDirectives(Vue.createElementVNode("span",Ao,[Vue.createVNode(B,{icon:Vue.unref(Io),onClick:C[0]||(C[0]=I=>N(200))},null,8,["icon"])],512),[[Vue.vShow,D.value]]),Vue.createElementVNode("div",{ref_key:"scrollbarDom",ref:W,class:"scroll-container"},[Vue.createElementVNode("div",{class:"tab select-none",ref_key:"tabDom",ref:R,style:Vue.normalizeStyle(Vue.unref(S))},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(l),(I,q)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_for:!0,ref:"dynamic"+q,key:q,class:Vue.normalizeClass(["scroll-item is-closable",Vue.unref(b)(I),v.$route.path===I.path&&Vue.unref(f)==="card"?"card-active":""]),onContextmenu:Vue.withModifiers(ce=>ft(I,ce),["prevent"]),onMouseenter:Vue.withModifiers(ce=>Vue.unref(M)(q),["prevent"]),onMouseleave:Vue.withModifiers(ce=>Vue.unref(Z)(q),["prevent"]),onClick:ce=>pt(I)},[Vue.createVNode(O,{to:I.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(Vue.unref(T)(I.meta.title)),1)]),_:2},1032,["to"]),Vue.unref(x)(I,q)||q===Vue.unref(_)&&q!==0?(Vue.openBlock(),Vue.createElementBlock("span",{key:0,class:"el-icon-close",onClick:Vue.withModifiers(ce=>H(I),["stop"])},[Vue.createVNode(B,{icon:Vue.unref(Lo)},null,8,["icon"])],8,Oo)):Vue.createCommentVNode("",!0),Vue.unref(f)!=="card"?(Vue.openBlock(),Vue.createElementBlock("div",{key:1,ref_for:!0,ref:"schedule"+q,class:Vue.normalizeClass([Vue.unref(E)(I)])},null,2)):Vue.createCommentVNode("",!0)],42,Ho))),128))],4)],512),Vue.withDirectives(Vue.createElementVNode("span",Zo,[Vue.createVNode(B,{icon:Vue.unref(Pt),onClick:C[1]||(C[1]=I=>N(-200))},null,8,["icon"])],512),[[Vue.vShow,D.value]]),Vue.createVNode(Vue.Transition,{name:"el-zoom-in-top"},{default:Vue.withCtx(()=>[Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("ul",{key:Math.random(),style:Vue.normalizeStyle(Vue.unref(w)),class:"contextmenu"},[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(V).slice(0,6),(I,q)=>(Vue.openBlock(),Vue.createElementBlock("div",{key:q,style:{display:"flex","align-items":"center"}},[I.show?(Vue.openBlock(),Vue.createElementBlock("li",{key:0,onClick:ce=>he(q,I)},[Vue.createVNode(B,{icon:I.icon},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(T)(I.text)),1)],8,Ro)):Vue.createCommentVNode("",!0)]))),128))],4)),[[Vue.vShow,Vue.unref(o)]])]),_:1}),Vue.createVNode(j,{trigger:"click",placement:"bottom-end",onCommand:te},{dropdown:Vue.withCtx(()=>[Vue.createVNode($,null,{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(V),(I,q)=>(Vue.openBlock(),Vue.createBlock(K,{key:q,command:{key:q,item:I},divided:I.divided,disabled:I.disabled},{default:Vue.withCtx(()=>[Vue.createVNode(B,{icon:I.icon},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(T)(I.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",Po,[Vue.createVNode(B,{icon:Vue.unref(To),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const Fo=Y(jo,[["__scopeId","data-v-62893417"]]),qo={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Uo=Vue.createElementVNode("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Wo=Vue.createElementVNode("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),Go=[Uo,Wo];function Ko(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",qo,Go)}const lt={render:Ko},Xo={key:1},Jo=Vue.defineComponent({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:o}=Re(),s=Vue.computed(()=>o==null?void 0:o.KeepAlive),u=Vue.computed(()=>f=>f.meta.transition),l=Vue.computed(()=>n==null?void 0:n.configure.hideTabs),V=Vue.computed(()=>(n==null?void 0:n.layout.layout)==="vertical"),c=Vue.computed(()=>[l.value&&V?"padding-top: 48px;":"",!l.value&&V?"padding-top: 85px;":"",l.value&&!V.value?"padding-top: 48px":"",!l.value&&!V.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),g=Vue.defineComponent({render(){return Vue.h(Vue.Transition,{name:u.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":u.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:u.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:u.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,d)=>{const p=Vue.resolveComponent("el-backtop"),_=Vue.resolveComponent("el-scrollbar"),S=Vue.resolveComponent("router-view");return Vue.openBlock(),Vue.createElementBlock("section",{class:Vue.normalizeClass([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:Vue.normalizeStyle(Vue.unref(c))},[Vue.createVNode(S,null,{default:Vue.withCtx(({Component:x,route:b})=>[e.fixedHeader?(Vue.openBlock(),Vue.createBlock(_,{key:0},{default:Vue.withCtx(()=>[Vue.createVNode(p,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(lt))]),_:1}),Vue.createVNode(Vue.unref(g),{route:b},{default:Vue.withCtx(()=>[Vue.unref(s)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,include:Vue.unref(ee)().cachePageList},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))],1032,["include"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(Vue.openBlock(),Vue.createElementBlock("div",Xo,[Vue.createVNode(Vue.unref(g),{route:b},{default:Vue.withCtx(()=>[Vue.unref(s)?(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{key:0,include:Vue.unref(ee)().cachePageList},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))],1032,["include"])):(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(x),{key:b.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const Ye=Y(Jo,[["__scopeId","data-v-ac212d1d"]]),We=t=>(Vue.pushScopeId("data-v-2fe46f27"),t=t(),Vue.popScopeId(),t),Yo=We(()=>Vue.createElementVNode("div",{class:"right-panel-background"},null,-1)),Qo={class:"right-panel-items"},er={class:"project-configuration"},tr=We(()=>Vue.createElementVNode("h4",{class:"dark:text-white"},"项目配置",-1)),nr=We(()=>Vue.createElementVNode("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),or=Vue.defineComponent({__name:"index",setup(t){const e=Vue.ref(null),n=Vue.ref(!1),o=Vue.computed(()=>["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 Zt(e,s=>{s.clientX>e.value.offsetLeft||(n.value=!1)}),Ve.on("openPanel",()=>{n.value=!0}),(s,u)=>{const l=Vue.resolveComponent("IconifyIconOffline");return Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass([{show:n.value},"right-panel-container"])},[Yo,Vue.createElementVNode("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[Vue.createElementVNode("div",Qo,[Vue.createElementVNode("div",er,[tr,Vue.createElementVNode("span",{title:"关闭配置",class:Vue.normalizeClass(Vue.unref(o))},[Vue.createVNode(l,{class:"dark:text-white",width:"20px",height:"20px",icon:Vue.unref(ut),onClick:u[0]||(u[0]=V=>n.value=!n.value)},null,8,["icon"])],2)]),nr,Vue.renderSlot(s.$slots,"default",{},void 0,!0)])],512)],2)}}});const rr=Y(or,[["__scopeId","data-v-2fe46f27"]]),oe=t=>(Vue.pushScopeId("data-v-5945f667"),t=t(),Vue.popScopeId(),t),ar={class:"pure-theme"},ur=oe(()=>Vue.createElementVNode("div",null,null,-1)),lr=oe(()=>Vue.createElementVNode("div",null,null,-1)),sr=[ur,lr],ir=oe(()=>Vue.createElementVNode("div",null,null,-1)),cr=oe(()=>Vue.createElementVNode("div",null,null,-1)),dr=[ir,cr],Vr=oe(()=>Vue.createElementVNode("div",null,null,-1)),fr=oe(()=>Vue.createElementVNode("div",null,null,-1)),pr=[Vr,fr],hr={class:"theme-color"},mr=["onClick"],vr={class:"setting"},_r=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"灰色模式",-1)),gr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"色弱模式",-1)),yr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"隐藏标签页",-1)),wr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"侧边栏Logo",-1)),kr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"标签页持久化",-1)),Cr=oe(()=>Vue.createElementVNode("span",{class:"dark:text-white"},"标签风格",-1)),br=Vue.defineComponent({__name:"index",setup(t){var pe,a;const e=VueRouter.useRouter(),{isDark:n}=nt(),{device:o,tooltipEffect:s}=se(),{$storage:u}=Re(),l=Vue.ref(),V=Vue.ref(),c=Vue.ref(),{dataTheme:g,layoutTheme:f,themeColors:d,dataThemeChange:p,setEpThemeColor:_,setLayoutThemeColor:S}=Mt();if(Vue.unref(f)){const r=Vue.unref(f).layout,i=Vue.unref(f).theme;Tt({scopeName:`layout-theme-${i}`}),fe(r)}const x=Vue.ref(((pe=u.configure)==null?void 0:pe.showModel)??"smart"),b=Vue.ref(((a=u.configure)==null?void 0:a.showLogo)??!0),k=Vue.reactive({greyVal:u.configure.grey,weakVal:u.configure.weak,tabsVal:u.configure.hideTabs,showLogo:u.configure.showLogo,showModel:u.configure.showModel,multiTagsCache:u.configure.multiTagsCache}),E=Vue.computed(()=>r=>({background:r})),w=Vue.computed(()=>r=>!(r==="light"&&n.value));function h(r,i){const N=u.configure;N[r]=i,u.configure=N}function m(r,i,N){const L=N||document.body;let{className:z}=L;z=z.replace(i,"").trim(),L.className=r?`${z} ${i} `:z}const M=r=>{m(k.greyVal,"html-grey",document.querySelector("html")),h("grey",r)},Z=r=>{m(k.weakVal,"html-weakness",document.querySelector("html")),h("weak",r)},T=()=>{const r=k.tabsVal;h("hideTabs",r),Ve.emit("tagViewsChange",r)},y=()=>{const r=k.multiTagsCache;h("multiTagsCache",r),le().multiTagsCacheChange(r)};function R(){wt(),ke().clear(),kt().clear();const{Grey:r,Weak:i,MultiTagsCache:N,EpThemeColor:L,Layout:z}=be();_e().setLayout(z),_(L),le().multiTagsCacheChange(N),m(r,"html-grey",document.querySelector("html")),m(i,"html-weakness",document.querySelector("html")),e.push("/login"),le().handleTags("equal",[...tt]),Ct()}function J(r){h("showModel",r),Ve.emit("tagViewsShowModel",r)}function W(){Vue.unref(b)?h("showLogo",!0):h("showLogo",!1),Ve.emit("logoChange",Vue.unref(b))}function D(r){r.forEach(i=>{m(!1,"is-select",Vue.unref(i))})}const ue=Vue.computed(()=>r=>r===f.value.theme&&f.value.theme!=="light"?"#fff":r===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent");function fe(r){var i,N,L;f.value.layout=r,window.document.body.setAttribute("layout",r),u.layout={layout:r,theme:f.value.theme,darkMode:(i=u.layout)==null?void 0:i.darkMode,sidebarStatus:(N=u.layout)==null?void 0:N.sidebarStatus,epThemeColor:(L=u.layout)==null?void 0:L.epThemeColor},_e().setLayout(r)}return Vue.watch(u,({layout:r})=>{switch(r.layout){case"vertical":m(!0,"is-select",Vue.unref(V)),we(D([c]),50),we(D([l]),50);break;case"horizontal":m(!0,"is-select",Vue.unref(c)),we(D([V]),50),we(D([l]),50);break;case"mix":m(!0,"is-select",Vue.unref(l)),we(D([V]),50),we(D([c]),50);break}}),Vue.onBeforeMount(()=>{p(),Vue.nextTick(()=>{var r,i;k.greyVal&&((r=document.querySelector("html"))==null||r.setAttribute("class","html-grey")),k.weakVal&&((i=document.querySelector("html"))==null||i.setAttribute("class","html-weakness")),k.tabsVal&&T()})}),(r,i)=>{const N=Vue.resolveComponent("el-divider"),L=Vue.resolveComponent("el-switch"),z=Vue.resolveComponent("el-tooltip"),A=Vue.resolveComponent("IconifyIconOffline"),H=Vue.resolveComponent("el-icon"),F=Vue.resolveComponent("el-radio"),te=Vue.resolveComponent("el-radio-group"),he=Vue.resolveComponent("el-button");return Vue.openBlock(),Vue.createBlock(rr,null,{default:Vue.withCtx(()=>[Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("主题")]),_:1}),Vue.createVNode(L,{modelValue:Vue.unref(g),"onUpdate:modelValue":i[0]||(i[0]=P=>Vue.isRef(g)?g.value=P:null),"inline-prompt":"",class:"pure-datatheme","active-icon":Vue.unref(zt),"inactive-icon":Vue.unref(It),onChange:Vue.unref(p)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("导航栏模式")]),_:1}),Vue.createElementVNode("ul",ar,[Vue.createVNode(z,{effect:Vue.unref(s),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:Vue.withCtx(()=>[Vue.createElementVNode("li",{class:Vue.normalizeClass(Vue.unref(f).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:V,onClick:i[1]||(i[1]=P=>fe("vertical"))},sr,2)]),_:1},8,["effect"]),Vue.unref(o)!=="mobile"?(Vue.openBlock(),Vue.createBlock(z,{key:0,effect:Vue.unref(s),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:Vue.withCtx(()=>[Vue.createElementVNode("li",{class:Vue.normalizeClass(Vue.unref(f).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:c,onClick:i[2]||(i[2]=P=>fe("horizontal"))},dr,2)]),_:1},8,["effect"])):Vue.createCommentVNode("",!0),Vue.unref(o)!=="mobile"?(Vue.openBlock(),Vue.createBlock(z,{key:1,effect:Vue.unref(s),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:Vue.withCtx(()=>[Vue.createElementVNode("li",{class:Vue.normalizeClass(Vue.unref(f).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:l,onClick:i[3]||(i[3]=P=>fe("mix"))},pr,2)]),_:1},8,["effect"])):Vue.createCommentVNode("",!0)]),Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("主题色")]),_:1}),Vue.createElementVNode("ul",hr,[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(d),(P,ie)=>Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("li",{key:ie,style:Vue.normalizeStyle(Vue.unref(E)(P.color)),onClick:me=>Vue.unref(S)(P.themeColor)},[Vue.createVNode(H,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:Vue.unref(ue)(P.themeColor)},{default:Vue.withCtx(()=>[Vue.createVNode(A,{icon:Vue.unref(ye)},null,8,["icon"])]),_:2},1032,["color"])],12,mr)),[[Vue.vShow,Vue.unref(w)(P.themeColor)]])),128))]),Vue.createVNode(N,null,{default:Vue.withCtx(()=>[Vue.createTextVNode("界面显示")]),_:1}),Vue.createElementVNode("ul",vr,[Vue.createElementVNode("li",null,[_r,Vue.createVNode(L,{modelValue:k.greyVal,"onUpdate:modelValue":i[4]||(i[4]=P=>k.greyVal=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[gr,Vue.createVNode(L,{modelValue:k.weakVal,"onUpdate:modelValue":i[5]||(i[5]=P=>k.weakVal=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:Z},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[yr,Vue.createVNode(L,{modelValue:k.tabsVal,"onUpdate:modelValue":i[6]||(i[6]=P=>k.tabsVal=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:T},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[wr,Vue.createVNode(L,{modelValue:b.value,"onUpdate:modelValue":i[7]||(i[7]=P=>b.value=P),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:W},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[kr,Vue.createVNode(L,{modelValue:k.multiTagsCache,"onUpdate:modelValue":i[8]||(i[8]=P=>k.multiTagsCache=P),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:y},null,8,["modelValue"])]),Vue.createElementVNode("li",null,[Cr,Vue.createVNode(te,{modelValue:x.value,"onUpdate:modelValue":i[9]||(i[9]=P=>x.value=P),size:"small",onChange:J},{default:Vue.withCtx(()=>[Vue.createVNode(F,{label:"card"},{default:Vue.withCtx(()=>[Vue.createTextVNode("卡片")]),_:1}),Vue.createVNode(F,{label:"smart"},{default:Vue.withCtx(()=>[Vue.createTextVNode("灵动")]),_:1})]),_:1},8,["modelValue"])])]),Vue.createVNode(N),Vue.createVNode(he,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:R},{default:Vue.withCtx(()=>[Vue.createVNode(A,{icon:Vue.unref(Me),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),Vue.createTextVNode(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const xr=Y(br,[["__scopeId","data-v-5945f667"]]),Ge="/vue-pure-admin/logo.svg",st=t=>(Vue.pushScopeId("data-v-4cc9900f"),t=t(),Vue.popScopeId(),t),Nr=st(()=>Vue.createElementVNode("img",{src:Ge,alt:"logo"},null,-1)),Sr={class:"sidebar-title"},Br=st(()=>Vue.createElementVNode("img",{src:Ge,alt:"logo"},null,-1)),Er={class:"sidebar-title"},$r=Vue.defineComponent({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n}=se(),o=Ae().path;return(s,u)=>{const l=Vue.resolveComponent("router-link");return Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["sidebar-logo-container",{collapses:e.collapse}])},[Vue.createVNode(Vue.Transition,{name:"sidebarLogoFade"},{default:Vue.withCtx(()=>[e.collapse?(Vue.openBlock(),Vue.createBlock(l,{key:"props.collapse",title:Vue.unref(n),class:"sidebar-logo-link",to:Vue.unref(o)},{default:Vue.withCtx(()=>[Nr,Vue.createElementVNode("span",Sr,Vue.toDisplayString(Vue.unref(n)),1)]),_:1},8,["title","to"])):(Vue.openBlock(),Vue.createBlock(l,{key:"expand",title:Vue.unref(n),class:"sidebar-logo-link",to:Vue.unref(o)},{default:Vue.withCtx(()=>[Br,Vue.createElementVNode("span",Er,Vue.toDisplayString(Vue.unref(n)),1)]),_:1},8,["title","to"]))]),_:1})],2)}}});const Mr=Y($r,[["__scopeId","data-v-4cc9900f"]]);var Se={exports:{}},it={},Tr=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Oe={exports:{}};typeof Object.create=="function"?Oe.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Oe.exports=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var zr=Oe.exports;(function(t){var e=/%[sdj%]/g;t.format=function(a){if(!w(a)){for(var r=[],i=0;i=L)return H;switch(H){case"%s":return String(N[i++]);case"%d":return Number(N[i++]);case"%j":try{return JSON.stringify(N[i++])}catch{return"[Circular]"}default:return H}}),A=N[i];i=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),x(r)?i.showHidden=r:r&&t._extend(i,r),m(i.showHidden)&&(i.showHidden=!1),m(i.depth)&&(i.depth=2),m(i.colors)&&(i.colors=!1),m(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),c(i,a,i.depth)}t.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(a,r){var i=s.styles[r];return i?"\x1B["+s.colors[i][0]+"m"+a+"\x1B["+s.colors[i][1]+"m":a}function l(a,r){return a}function V(a){var r={};return a.forEach(function(i,N){r[i]=!0}),r}function c(a,r,i){if(a.customInspect&&r&&R(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var N=r.inspect(i,a);return w(N)||(N=c(a,N,i)),N}var L=g(a,r);if(L)return L;var z=Object.keys(r),A=V(z);if(a.showHidden&&(z=Object.getOwnPropertyNames(r)),y(r)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return f(r);if(z.length===0){if(R(r)){var H=r.name?": "+r.name:"";return a.stylize("[Function"+H+"]","special")}if(M(r))return a.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return a.stylize(Date.prototype.toString.call(r),"date");if(y(r))return f(r)}var F="",te=!1,he=["{","}"];if(S(r)&&(te=!0,he=["[","]"]),R(r)){var P=r.name?": "+r.name:"";F=" [Function"+P+"]"}if(M(r)&&(F=" "+RegExp.prototype.toString.call(r)),T(r)&&(F=" "+Date.prototype.toUTCString.call(r)),y(r)&&(F=" "+f(r)),z.length===0&&(!te||r.length==0))return he[0]+F+he[1];if(i<0)return M(r)?a.stylize(RegExp.prototype.toString.call(r),"regexp"):a.stylize("[Object]","special");a.seen.push(r);var ie;return te?ie=d(a,r,i,A,z):ie=z.map(function(me){return p(a,r,i,A,me,te)}),a.seen.pop(),_(ie,F,he)}function g(a,r){if(m(r))return a.stylize("undefined","undefined");if(w(r)){var i="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(i,"string")}if(E(r))return a.stylize(""+r,"number");if(x(r))return a.stylize(""+r,"boolean");if(b(r))return a.stylize("null","null")}function f(a){return"["+Error.prototype.toString.call(a)+"]"}function d(a,r,i,N,L){for(var z=[],A=0,H=r.length;A-1&&(z?H=H.split(`
`).map(function(te){return" "+te}).join(`
`).substr(2):H=`
`+H.split(`
`).map(function(te){return" "+te}).join(`
`))):H=a.stylize("[Circular]","special")),m(A)){if(z&&L.match(/^\d+$/))return H;A=JSON.stringify(""+L),A.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(A=A.substr(1,A.length-2),A=a.stylize(A,"name")):(A=A.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),A=a.stylize(A,"string"))}return A+": "+H}function _(a,r,i){var N=a.reduce(function(L,z){return z.indexOf(`
`)>=0,L+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return N>60?i[0]+(r===""?"":r+`
`)+" "+a.join(`,
`)+" "+i[1]:i[0]+r+" "+a.join(", ")+" "+i[1]}function S(a){return Array.isArray(a)}t.isArray=S;function x(a){return typeof a=="boolean"}t.isBoolean=x;function b(a){return a===null}t.isNull=b;function k(a){return a==null}t.isNullOrUndefined=k;function E(a){return typeof a=="number"}t.isNumber=E;function w(a){return typeof a=="string"}t.isString=w;function h(a){return typeof a=="symbol"}t.isSymbol=h;function m(a){return a===void 0}t.isUndefined=m;function M(a){return Z(a)&&W(a)==="[object RegExp]"}t.isRegExp=M;function Z(a){return typeof a=="object"&&a!==null}t.isObject=Z;function T(a){return Z(a)&&W(a)==="[object Date]"}t.isDate=T;function y(a){return Z(a)&&(W(a)==="[object Error]"||a instanceof Error)}t.isError=y;function R(a){return typeof a=="function"}t.isFunction=R;function J(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||typeof a>"u"}t.isPrimitive=J,t.isBuffer=Tr;function W(a){return Object.prototype.toString.call(a)}function D(a){return a<10?"0"+a.toString(10):a.toString(10)}var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fe(){var a=new Date,r=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),ue[a.getMonth()],r].join(" ")}t.log=function(){console.log("%s - %s",fe(),t.format.apply(t,arguments))},t.inherits=zr,t._extend=function(a,r){if(!r||!Z(r))return a;for(var i=Object.keys(r),N=i.length;N--;)a[i[N]]=r[i[N]];return a};function pe(a,r){return Object.prototype.hasOwnProperty.call(a,r)}})(it);var Ir=process.platform==="win32",ae=it;function Te(t,e){for(var n=[],o=0;o=0&&!t[o];o--);return n===0&&o===e?t:n>o?[]:t.slice(n,o+1)}var ct=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Dr=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,U={};function ze(t){var e=ct.exec(t),n=(e[1]||"")+(e[2]||""),o=e[3]||"",s=Dr.exec(o),u=s[1],l=s[2],V=s[3];return[n,u,l,V]}function Ke(t){var e=ct.exec(t),n=e[1]||"",o=!!n&&n[1]!==":";return{device:n,isUnc:o,isAbsolute:o||!!e[2],tail:e[3]}}function dt(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}U.resolve=function(){for(var t="",e="",n=!1,o=arguments.length-1;o>=-1;o--){var s;if(o>=0?s=arguments[o]:t?(s=process.env["="+t],(!s||s.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(s=t+"\\")):s=process.cwd(),ae.isString(s)){if(!s)continue}else throw new TypeError("Arguments to path.resolve must be strings");var u=Ke(s),l=u.device,V=u.isUnc,c=u.isAbsolute,g=u.tail;if(!(l&&t&&l.toLowerCase()!==t.toLowerCase())&&(t||(t=l),n||(e=g+"\\"+e,n=c),t&&n))break}return V&&(t=dt(t)),e=Te(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};U.normalize=function(t){var e=Ke(t),n=e.device,o=e.isUnc,s=e.isAbsolute,u=e.tail,l=/[\\\/]$/.test(u);return u=Te(u.split(/[\\\/]+/),!s).join("\\"),!u&&!s&&(u="."),u&&l&&(u+="\\"),o&&(n=dt(n)),n+(s?"\\":"")+u};U.isAbsolute=function(t){return Ke(t).isAbsolute};U.join=function(){for(var t=[],e=0;e=-1&&!e;n--){var o=n>=0?arguments[n]:process.cwd();if(ae.isString(o)){if(!o)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=o+"/"+t,e=o[0]==="/"}return t=Te(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};G.normalize=function(t){var e=G.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=Te(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};G.isAbsolute=function(t){return t.charAt(0)==="/"};G.join=function(){for(var t="",e=0;e'},Zr=Or,Rr={width:1024,height:1024,body:''},Pr=Rr,jr={width:1024,height:1024,body:''},Fr=jr,qr={width:1024,height:1024,body:''},Ur=qr,Wr={key:0},Gr={key:1},Vt=Vue.defineComponent({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=t,{layout:n,isCollapse:o,tooltipEffect:s,getDivStyle:u}=se(),l=Vue.computed(()=>({width:"100%",textAlign:"center"})),V=Vue.computed(()=>({display:"flex",alignItems:"center"})),c=Vue.computed(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),g=Vue.computed(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),f=Vue.computed(()=>o.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),d=Vue.computed(()=>h=>{var m;return o.value?{width:"100%",textAlign:(h==null?void 0:h.parentId)===null||n.value==="mix"&&((m=h==null?void 0:h.pathList)==null?void 0:m.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),p=Vue.computed(()=>{var h;return(h=be())!=null&&h.MenuArrowIconNoTransition?{"expand-close-icon":de(Pr),"expand-open-icon":de(Zr),"collapse-close-icon":de(Ur),"collapse-open-icon":de(Fr)}:""}),_=Vue.ref(null),S=new WeakMap,x=Vue.ref(null);function b(h){S.get(h)||Vue.nextTick(()=>{var m,M;((m=x.value)==null?void 0:m.scrollWidth)>((M=x.value)==null?void 0:M.clientWidth)?Object.assign(h,{showTooltip:!0}):Object.assign(h,{showTooltip:!1}),S.set(h,!0)})}function k(h,m){var Z;const M=((h==null?void 0:h.length)>1?h.toString().slice(0,1):h)+"...";return m&&!(o.value&&(m==null?void 0:m.parentId)===null)?n.value==="mix"&&((Z=m==null?void 0:m.pathList)==null?void 0:Z.length)===2&&o.value?M:h:M}function E(h=[],m){var Z,T;const M=h.filter(y=>(_.value=y,!0));return(T=(Z=M[0])==null?void 0:Z.meta)!=null&&T.showParent?!1:M.length===1?!0:M.length===0?(_.value={...m,path:"",noShowingChildren:!0},!0):!1}function w(h){const m=/^http(s?):\/\//;return m.test(h)||m.test(e.basePath)?h||e.basePath:Hr.posix.resolve(e.basePath,h)}return(h,m)=>{const M=Vue.resolveComponent("el-tooltip"),Z=Vue.resolveComponent("el-menu-item"),T=Vue.resolveComponent("sidebar-item",!0),y=Vue.resolveComponent("el-sub-menu");return E(e.item.children,e.item)&&(!_.value.children||_.value.noShowingChildren)?(Vue.openBlock(),Vue.createBlock(Z,{key:0,index:w(_.value.path),class:Vue.normalizeClass({"submenu-title-noDropdown":!t.isNest}),style:Vue.normalizeStyle(Vue.unref(V))},{title:Vue.withCtx(()=>[Vue.createElementVNode("div",{style:Vue.normalizeStyle(Vue.unref(u))},[Vue.unref(n)==="horizontal"?(Vue.openBlock(),Vue.createElementBlock("span",Wr,Vue.toDisplayString(Vue.unref(ne)(_.value.meta.title)),1)):(Vue.openBlock(),Vue.createBlock(M,{key:1,placement:"top",effect:Vue.unref(s),offset:-10,disabled:!_.value.showTooltip},{content:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(Vue.unref(ne)(_.value.meta.title)),1)]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",{ref_key:"menuTextRef",ref:x,style:Vue.normalizeStyle(Vue.unref(c)),onMouseover:m[0]||(m[0]=R=>b(_.value))},Vue.toDisplayString(Vue.unref(ne)(_.value.meta.title)),37)]),_:1},8,["effect","disabled"])),Vue.createVNode(He,{extraIcon:_.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:Vue.withCtx(()=>{var R,J,W,D,ue;return[Vue.toRaw(e.item.meta.icon)?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"sub-menu-icon",style:Vue.normalizeStyle(Vue.unref(g))},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(Vue.toRaw(_.value.meta.icon)||e.item.meta&&Vue.toRaw(e.item.meta.icon)))))],4)):Vue.createCommentVNode("",!0),!((R=e.item)!=null&&R.meta.icon)&&Vue.unref(o)&&Vue.unref(n)==="vertical"&&((W=(J=e.item)==null?void 0:J.pathList)==null?void 0:W.length)===1?(Vue.openBlock(),Vue.createElementBlock("span",{key:1,style:Vue.normalizeStyle(Vue.unref(l))},Vue.toDisplayString(k(Vue.unref(ne)(_.value.meta.title))),5)):Vue.createCommentVNode("",!0),!_.value.meta.icon&&Vue.unref(o)&&Vue.unref(n)==="mix"&&((ue=(D=e.item)==null?void 0:D.pathList)==null?void 0:ue.length)===2?(Vue.openBlock(),Vue.createElementBlock("span",{key:2,style:Vue.normalizeStyle(Vue.unref(l))},Vue.toDisplayString(k(Vue.unref(ne)(_.value.meta.title))),5)):Vue.createCommentVNode("",!0)]}),_:1},8,["index","class","style"])):(Vue.openBlock(),Vue.createBlock(y,Vue.mergeProps({key:1,ref:"subMenu"},Vue.unref(p),{index:w(e.item.path)}),{title:Vue.withCtx(()=>[Vue.toRaw(e.item.meta.icon)?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,style:Vue.normalizeStyle(Vue.unref(g)),class:"sub-menu-icon"},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(de)(e.item.meta&&Vue.toRaw(e.item.meta.icon)))))],4)):Vue.createCommentVNode("",!0),Vue.unref(n)==="horizontal"?(Vue.openBlock(),Vue.createElementBlock("span",Gr,Vue.toDisplayString(Vue.unref(ne)(e.item.meta.title)),1)):Vue.createCommentVNode("",!0),Vue.unref(o)&&Vue.toRaw(e.item.meta.icon)&&e.item.parentId===null?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createElementBlock("div",{key:2,style:Vue.normalizeStyle(Vue.unref(d)(e.item))},[Vue.unref(n)!=="horizontal"?(Vue.openBlock(),Vue.createBlock(M,{key:0,placement:"top",effect:Vue.unref(s),offset:-10,disabled:!e.item.showTooltip},{content:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(Vue.unref(ne)(e.item.meta.title)),1)]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",{ref_key:"menuTextRef",ref:x,style:Vue.normalizeStyle(Vue.unref(f)),onMouseover:m[1]||(m[1]=R=>b(e.item))},Vue.toDisplayString(k(Vue.unref(ne)(e.item.meta.title),e.item)),37)]),_:1},8,["effect","disabled"])):Vue.createCommentVNode("",!0),Vue.unref(o)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(He,{key:1,extraIcon:e.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.item.children,R=>(Vue.openBlock(),Vue.createBlock(T,{key:R.path,"is-nest":!0,item:R,"base-path":w(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Kr={class:"container"},Xr=Vue.defineComponent({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,o=Vue.ref(!1),{tooltipEffect:s}=se(),u=Vue.computed(()=>["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"]),l=()=>{e("toggleClick")};return(V,c)=>{const g=Vue.resolveComponent("IconifyIconOffline"),f=Vue.resolveComponent("el-tooltip");return Vue.openBlock(),Vue.createElementBlock("div",Kr,[Vue.createVNode(f,{placement:"right",visible:o.value,effect:Vue.unref(s),content:n.isActive?"点击折叠":"点击展开"},{default:Vue.withCtx(()=>[Vue.createVNode(g,{icon:Vue.unref(at),class:Vue.normalizeClass(Vue.unref(u)),style:Vue.normalizeStyle({transform:n.isActive?"none":"rotateY(180deg)"}),onClick:l,onMouseenter:c[0]||(c[0]=d=>o.value=!0),onMouseleave:c[1]||(c[1]=d=>o.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const Jr=Y(Xr,[["__scopeId","data-v-ed074d28"]]),Yr=Vue.defineComponent({__name:"vertical",setup(t){var _;const e=VueRouter.useRoute(),n=Vue.ref(((_=ke().getItem(`${Ce()}configure`))==null?void 0:_.showLogo)??!0),{routers:o,device:s,pureApp:u,isCollapse:l,menuSelect:V,toggleSideBar:c}=se(),g=Vue.ref([]),f=Vue.computed(()=>u.layout==="mix"&&s.value!=="mobile"?g.value:ee().wholeMenus),d=Vue.computed(()=>u.layout==="mix"?!1:f.value.length===0);function p(S){g.value=[];const x=Ze(S,ee().wholeMenus),b=Ee(x[0]||S,ee().wholeMenus);b!=null&&b.children&&(g.value=b==null?void 0:b.children)}return p(e.path),Vue.onBeforeMount(()=>{Ve.on("logoChange",S=>{n.value=S})}),Vue.watch(()=>[e.path,ee().wholeMenus],()=>{e.path.includes("/redirect")||(p(e.path),V(e.path,o))}),(S,x)=>{const b=Vue.resolveComponent("el-menu"),k=Vue.resolveComponent("el-scrollbar"),E=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["sidebar-container",n.value?"has-logo":""])},[n.value?(Vue.openBlock(),Vue.createBlock(Mr,{key:0,collapse:Vue.unref(l)},null,8,["collapse"])):Vue.createCommentVNode("",!0),Vue.createVNode(k,{"wrap-class":"scrollbar-wrapper",class:Vue.normalizeClass([Vue.unref(s)==="mobile"?"mobile":"pc"])},{default:Vue.withCtx(()=>[Vue.createVNode(b,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:Vue.unref(l),"default-active":Vue.unref(e).path,"collapse-transition":!1,onSelect:x[0]||(x[0]=w=>Vue.unref(V)(w,Vue.unref(o)))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(f),w=>(Vue.openBlock(),Vue.createBlock(Vt,{key:w.path,item:w,"base-path":w.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),Vue.unref(s)!=="mobile"?(Vue.openBlock(),Vue.createBlock(Jr,{key:1,"is-active":Vue.unref(u).sidebar.opened,onToggleClick:Vue.unref(c)},null,8,["is-active","onToggleClick"])):Vue.createCommentVNode("",!0)],2)),[[E,Vue.unref(d)]])}}});const Qr=Y(Yr,[["__scopeId","data-v-f5a1735a"]]),ea=t=>(Vue.pushScopeId("data-v-adc37727"),t=t(),Vue.popScopeId(),t),ta={class:"horizontal-header"},na=ea(()=>Vue.createElementVNode("img",{src:Ge,alt:"logo"},null,-1)),oa={class:"horizontal-header-right"},ra={class:"check-zh"},aa={class:"check-en"},ua={class:"el-dropdown-link navbar-bg-hover"},la={key:0,class:"dark:text-white"},sa=["title"],ia=Vue.defineComponent({__name:"horizontal",setup(t){const e=Vue.ref(),{t:n,route:o,locale:s,translationCh:u,translationEn:l}=Pe(e),{title:V,routers:c,logout:g,backTopMenu:f,onPanel:d,menuSelect:p,username:_,avatarsStyle:S,getDropdownItemStyle:x,getDropdownItemClass:b}=se();return Vue.nextTick(()=>{var k;(k=e.value)==null||k.handleResize()}),Vue.watch(()=>o.path,()=>{p(o.path,c)}),(k,E)=>{const w=Vue.resolveComponent("el-menu"),h=Vue.resolveComponent("IconifyIconOffline"),m=Vue.resolveComponent("el-dropdown-item"),M=Vue.resolveComponent("el-dropdown-menu"),Z=Vue.resolveComponent("el-dropdown"),T=Vue.resolveDirective("loading");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",ta,[Vue.createElementVNode("div",{class:"horizontal-header-left",onClick:E[0]||(E[0]=(...y)=>Vue.unref(f)&&Vue.unref(f)(...y))},[na,Vue.createElementVNode("span",null,Vue.toDisplayString(Vue.unref(V)),1)]),Vue.createVNode(w,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":Vue.unref(o).path,onSelect:E[1]||(E[1]=y=>Vue.unref(p)(y,Vue.unref(c)))},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(ee)().wholeMenus,y=>(Vue.openBlock(),Vue.createBlock(Vt,{key:y.path,item:y,"base-path":y.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),Vue.createElementVNode("div",oa,[Vue.createVNode(qe),Vue.createVNode(Ue,{id:"header-notice"}),Vue.createVNode(Z,{id:"header-translation",trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(M,{class:"translation"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{style:Vue.normalizeStyle(Vue.unref(x)(Vue.unref(s),"zh")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(b)(Vue.unref(s),"zh")]),onClick:Vue.unref(u)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",ra,[Vue.createVNode(h,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(s)==="zh"]]),Vue.createTextVNode(" 简体中文 ")]),_:1},8,["style","class","onClick"]),Vue.createVNode(m,{style:Vue.normalizeStyle(Vue.unref(x)(Vue.unref(s),"en")),class:Vue.normalizeClass(["dark:!text-white",Vue.unref(b)(Vue.unref(s),"en")]),onClick:Vue.unref(l)},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createElementVNode("span",aa,[Vue.createVNode(h,{icon:Vue.unref(ye)},null,8,["icon"])],512),[[Vue.vShow,Vue.unref(s)==="en"]]),Vue.createTextVNode(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(je),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),Vue.createVNode(Z,{trigger:"click"},{dropdown:Vue.withCtx(()=>[Vue.createVNode(M,{class:"logout"},{default:Vue.withCtx(()=>[Vue.createVNode(m,{onClick:Vue.unref(g)},{default:Vue.withCtx(()=>[Vue.createVNode(h,{icon:Vue.unref(Me),style:{margin:"5px"}},null,8,["icon"]),Vue.createTextVNode(" "+Vue.toDisplayString(Vue.unref(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:Vue.withCtx(()=>[Vue.createElementVNode("span",ua,[Vue.createElementVNode("img",{src:"https://avatars.githubusercontent.com/u/44761321?v=4",style:Vue.normalizeStyle(Vue.unref(S))},null,4),Vue.unref(_)?(Vue.openBlock(),Vue.createElementBlock("p",la,Vue.toDisplayString(Vue.unref(_)),1)):Vue.createCommentVNode("",!0)])]),_:1}),Vue.createElementVNode("span",{class:"set-icon navbar-bg-hover",title:Vue.unref(n)("buttons.hssystemSet"),onClick:E[2]||(E[2]=(...y)=>Vue.unref(d)&&Vue.unref(d)(...y))},[Vue.createVNode(h,{icon:Vue.unref($e)},null,8,["icon"])],8,sa)])])),[[T,Vue.unref(ee)().wholeMenus.length===0]])}}});const ca=Y(ia,[["__scopeId","data-v-adc37727"]]),da={key:0},Va=Vue.defineComponent({__name:"index",setup(t){const{isDark:e}=nt(),{layout:n}=Dt(),o=et(),s=Fe(),{$storage:u}=Re(),l=Vue.reactive({sidebar:Vue.computed(()=>_e().sidebar),device:Vue.computed(()=>_e().device),fixedHeader:Vue.computed(()=>s.fixedHeader),classes:Vue.computed(()=>({hideSidebar:!l.sidebar.opened,openSidebar:l.sidebar.opened,withoutAnimation:l.sidebar.withoutAnimation,mobile:l.device==="mobile"})),hideTabs:Vue.computed(()=>u==null?void 0:u.configure.hideTabs)});function V(d){var p,_,S,x;window.document.body.setAttribute("layout",d),u.layout={layout:`${d}`,theme:(p=u.layout)==null?void 0:p.theme,darkMode:(_=u.layout)==null?void 0:_.darkMode,sidebarStatus:(S=u.layout)==null?void 0:S.sidebarStatus,epThemeColor:(x=u.layout)==null?void 0:x.epThemeColor}}function c(d,p){_e().toggleDevice(d),_e().toggleSideBar(p,"resize")}let g=!0;Ve.on("resize",({detail:d})=>{if(o)return;const{width:p}=d;p<=760?V("vertical"):V(_e().layout),p>0&&p<=760?(c("mobile",!1),g=!0):p>760&&p<=990?g&&(c("desktop",!1),g=!1):p>990&&(l.sidebar.isClickCollapse||(c("desktop",!0),g=!0))}),Vue.onMounted(()=>{o&&c("mobile",!1)});const f=Vue.defineComponent({render(){return Vue.h("div",{class:{"fixed-header":l.fixedHeader},style:[l.hideTabs&&n.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!s.hiddenSideBar&&(n.value.includes("vertical")||n.value.includes("mix"))?Vue.h(Co):null,!s.hiddenSideBar&&n.value.includes("horizontal")?Vue.h(ca):null,Vue.h(Fo)]})}});return(d,p)=>{const _=Vue.resolveComponent("el-backtop"),S=Vue.resolveComponent("el-scrollbar"),x=Vue.resolveDirective("resize");return Vue.withDirectives((Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["app-wrapper",l.classes])},[Vue.withDirectives(Vue.createElementVNode("div",{class:"app-mask",onClick:p[0]||(p[0]=b=>Vue.unref(_e)().toggleSideBar())},null,512),[[Vue.vShow,l.device==="mobile"&&l.sidebar.opened&&Vue.unref(n).includes("vertical")]]),Vue.withDirectives(Vue.createVNode(Qr,null,null,512),[[Vue.vShow,!Vue.unref(s).hiddenSideBar&&(Vue.unref(n).includes("vertical")||Vue.unref(n).includes("mix"))]]),Vue.createElementVNode("div",{class:Vue.normalizeClass(["main-container",Vue.unref(s).hiddenSideBar?"main-hidden":""])},[l.fixedHeader?(Vue.openBlock(),Vue.createElementBlock("div",da,[Vue.createVNode(Vue.unref(f)),Vue.createVNode(Ye,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])])):(Vue.openBlock(),Vue.createBlock(S,{key:1},{default:Vue.withCtx(()=>[Vue.createVNode(_,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(lt))]),_:1}),Vue.createVNode(Vue.unref(f)),Vue.createVNode(Ye,{"fixed-header":l.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),Vue.createVNode(xr)],2)),[[x]])}}});const Ba=Y(Va,[["__scopeId","data-v-f13df477"]]);export{Ba as default};