var mn=Object.defineProperty,vn=Object.defineProperties;var _n=Object.getOwnPropertyDescriptors;var Ot=Object.getOwnPropertySymbols;var gn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable;var Zt=(t,e,o)=>e in t?mn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Rt=(t,e)=>{for(var o in e||(e={}))gn.call(e,o)&&Zt(t,o,e[o]);if(Ot)for(var o of Ot(e))yn.call(e,o)&&Zt(t,o,e[o]);return t},Dt=(t,e)=>vn(t,_n(e));var at=(t,e,o)=>new Promise((a,u)=>{var s=g=>{try{r(o.next(g))}catch(f){u(f)}},h=g=>{try{r(o.throw(g))}catch(f){u(f)}},r=g=>g.done?a(g.value):Promise.resolve(g.value).then(s,h);r((o=o.apply(t,e)).next())});import{d9 as se,ao as bn,ar as Ge,as as wn,e as c,k as M,f as _,d as oe,r as R,V as q,aG as gt,o as Pe,F as we,l as $e,al as ne,c as D,I as Ze,u as n,B as ee,a3 as be,i as d,P as Ut,_ as pe,b as V,h as fe,C as Y,a9 as yt,H as kn,bf as Wt,a8 as xn,a1 as Ce,da as ft,w as b,bb as Cn,aQ as Fe,aC as $n,L as Gt,n as De,bh as Me,a7 as je,j as ot,m as le,E as re,R as ke,db as bt,dc as lt,a6 as wt,dd as Le,T as Sn,af as Xe,de as Ne,ap as Je,aq as Ye,K as kt,df as ye,dg as et,dh as In,di as st,aU as Re,dj as rt,dk as Mn,dl as Kt,aH as Tn,a as xt,dm as Ct,dn as pt,dp as Pt,dq as Vn,U as mt,dr as it,ds as jt,D as Qe,p as Xt,q as Jt,am as Yt,N as Qt,O as zn,Y as We,J as An,G as Ln,X as Hn}from"./index-2abGzBFj.js";import{d as En}from"./menu-_OwpKHc3.js";import{d as On,u as ze,a as $t,g as St,b as It,t as Zn,c as Rn,e as Dn,f as Pn}from"./dark-MYu-bC_g.js";import{d as jn}from"./home-filled-ZzezfvKu.js";import{d as Bn}from"./admin-line-8g4DVr6a.js";import{d as qn}from"./git-branch-line-zmPAFode.js";import{u as qe}from"./app-EJKhZfNV.js";import{m as Fn}from"./index-uKKdWOxm.js";import{u as Nn}from"./epTheme--LMgq1hx.js";import{u as Oe}from"./hooks-OdGZ-AeP.js";import{d as Ue}from"./check-f0nOH8pf.js";import{e as xe}from"./mitt-y5r8hZta.js";import{d as Un}from"./refresh-right-y-X3zYf8.js";import{d as Wn}from"./arrow-right-s-line-xoI-mVSn.js";import{b as en}from"./back_top-K7DixdfE.js";import{R as Bt}from"./index-Hl5UgsuV.js";const Gn={width:24,height:24,body:''},Kn={width:1024,height:1024,body:''},Xn={width:1024,height:1024,body:''},Jn={width:24,height:24,body:''},Yn={width:1024,height:1024,body:''},Qn={width:24,height:24,body:''},eo={width:24,height:24,body:''},to={width:1024,height:1024,body:''},no={width:24,height:24,body:''},oo={width:24,height:24,body:''},ao={width:24,height:24,body:''},ct={width:24,height:24,body:''},tn={width:24,height:24,body:''},so={width:1024,height:1024,body:''},lo={width:1024,height:1024,body:''},nn={width:24,height:24,body:''},ro={width:24,height:24,body:''},io={width:24,height:24,body:''},co={width:24,height:24,body:''};se("ubuntuFill",Gn);se("menu",En);se("edit",Kn);se("informationLine",On);se("setUp",Xn);se("terminalWindowLine",Jn);se("guide",Yn);se("homeFilled",jn);se("card",Qn);se("listCheck",eo);se("histogram",to);se("ppt",no);se("checkboxCircleLine",oo);se("flUser",Bn);se("role",ao);se("setting",ct);se("dept",qn);se("search",tn);se("lollipop",so);se("monitor",lo);se("tag",nn);se("table",ro);se("info",io);se("artboard",co);const uo=bn({id:"pure-setting",state:()=>({title:Ge().Title,fixedHeader:Ge().FixedHeader,hiddenSideBar:Ge().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 Mt(){return uo(wn)}const ho={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--ant-design",viewBox:"0 0 1024 1024"},fo=_("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-8"},null,-1),po=[fo];function mo(t,e){return c(),M("svg",ho,[...po])}const on={render:mo},vo=["onMouseenter"],_o={class:"result-item-title"},go=oe({__name:"SearchResult",props:{value:{},options:{}},emits:["update:value","enter"],setup(t,{expose:e,emit:o}){const a=R(),u=R(),s=t,h=o,r=Ut(),g=q(()=>w=>({background:(w==null?void 0:w.path)===f.value?Nn().epThemeColor:"",color:w.path===f.value?"#fff":"",fontSize:w.path===f.value?"16px":"14px"})),f=q({get(){return s.value},set(w){h("update:value",w)}});function m(w){return at(this,null,function*(){f.value=w.path})}function i(){h("enter")}function v(){u.value=window.innerHeight-window.innerHeight/10-140}gt(a,v);function y(w){var L;const A=(L=r==null?void 0:r.proxy)==null?void 0:L.$refs[`resultItemRef${w}`];if(!A)return 0;const P=A[0].offsetTop+128;return P>u.value?P-u.value:0}return Pe(()=>{v()}),e({handleScroll:y}),(w,A)=>(c(),M("div",{ref_key:"resultRef",ref:a,class:"result"},[(c(!0),M(we,null,$e(w.options,(k,P)=>{var L,E,I;return c(),M("div",{key:k.path,ref_for:!0,ref:"resultItemRef"+P,class:"result-item dark:bg-[#1d1d1d]",style:ne(g.value(k)),onClick:i,onMouseenter:H=>m(k)},[(c(),D(Ze(n(Oe)((E=(L=k.meta)==null?void 0:L.icon)!=null?E:n(nn))))),_("span",_o,ee(n(be)((I=k.meta)==null?void 0:I.title)),1),d(n(on))],44,vo)}),128))],512))}}),yo=pe(go,[["__scopeId","data-v-4fa8bd61"]]),bo={width:24,height:24,body:''},wo={width:24,height:24,body:''},ko={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20","aria-hidden":"true",class:"iconify iconify--mdi",viewBox:"0 0 24 24"},xo=_("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1zm10 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-2"},null,-1),Co=[xo];function $o(t,e){return c(),M("svg",ko,[...Co])}const So={render:$o},Io={class:"search-footer text-[#333] dark:text-white"},Mo={class:"search-footer-item"},To={class:"search-footer-item"},Vo={class:"search-footer-item"},zo={key:0,class:"search-footer-total"},Ao=oe({__name:"SearchFooter",props:{total:{default:0}},setup(t){const e=t,{device:o}=ze();return(a,u)=>{const s=V("IconifyIconOffline");return c(),M("div",Io,[_("span",Mo,[d(n(on),{class:"icon"}),fe(" 确认 ")]),_("span",To,[d(s,{icon:n(bo),class:"icon"},null,8,["icon"]),d(s,{icon:n(wo),class:"icon"},null,8,["icon"]),fe(" 切换 ")]),_("span",Vo,[d(n(So),{class:"icon"}),fe(" 关闭 ")]),n(o)!=="mobile"&&e.total>0?(c(),M("p",zo," 共"+ee(e.total)+"项 ",1)):Y("",!0)])}}}),Lo=pe(Ao,[["__scopeId","data-v-6f31f47e"]]),Ho={class:"search-result-container"},Eo=oe({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const{device:o}=ze(),a=e,u=t,s=yt(),{locale:h}=kn(),r=R(""),g=R(),f=R(),m=R(""),i=R(null),v=Wt([]),y=Cn(P,300),w=q(()=>xn(Ce().wholeMenus)),A=q({get(){return u.value},set(O){a("update:value",O)}});function k(O){const z=[];function K(x){x.forEach(U=>{z.push(U),U.children&&K(U.children)})}return K(O),z}function P(){var z;const O=k(w.value);v.value=O.filter(K=>{var x,U;return r.value?be((x=K.meta)==null?void 0:x.title).toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim())||h.value==="zh"&&!Fe(Fn(be((U=K.meta)==null?void 0:U.title).toLocaleLowerCase(),r.value.toLocaleLowerCase().trim())):!1}),((z=v.value)==null?void 0:z.length)>0?m.value=v.value[0].path:m.value=""}function L(){A.value=!1,setTimeout(()=>{v.value=[],r.value=""},200)}function E(O){const z=f.value.handleScroll(O);g.value.setScrollTop(z)}function I(){const{length:O}=v.value;if(O===0)return;const z=v.value.findIndex(K=>K.path===m.value);z===0?(m.value=v.value[O-1].path,E(v.value.length-1)):(m.value=v.value[z-1].path,E(z-1))}function H(){const{length:O}=v.value;if(O===0)return;const z=v.value.findIndex(K=>K.path===m.value);z+1===O?m.value=v.value[0].path:m.value=v.value[z+1].path,E(z+1)}function B(){const{length:O}=v.value;O===0||m.value===""||(s.push(m.value),L())}return ft("Enter",B),ft("ArrowUp",I),ft("ArrowDown",H),(O,z)=>{const K=V("IconifyIconOffline"),x=V("el-input"),U=V("el-empty"),X=V("el-scrollbar"),ve=V("el-dialog");return c(),D(ve,{modelValue:A.value,"onUpdate:modelValue":z[2]||(z[2]=ae=>A.value=ae),top:"5vh",class:"pure-search-dialog","show-close":!1,width:n(o)==="mobile"?"80vw":"40vw","before-close":L,style:{borderRadius:"6px"},"append-to-body":"",onOpened:z[3]||(z[3]=ae=>i.value.focus()),onClosed:z[4]||(z[4]=ae=>i.value.blur())},{footer:b(()=>[d(Lo,{total:v.value.length},null,8,["total"])]),default:b(()=>[d(x,{ref_key:"inputRef",ref:i,modelValue:r.value,"onUpdate:modelValue":z[0]||(z[0]=ae=>r.value=ae),size:"large",clearable:"",placeholder:"搜索菜单(中文模式下支持拼音搜索)",onInput:n(y)},{prefix:b(()=>[d(K,{icon:n(tn),class:"text-primary w-[24px] h-[24px]"},null,8,["icon"])]),_:1},8,["modelValue","onInput"]),_("div",Ho,[d(X,{ref_key:"scrollbarRef",ref:g,"max-height":"calc(90vh - 140px)"},{default:b(()=>[v.value.length===0?(c(),D(U,{key:0,description:"暂无搜索结果"})):(c(),D(yo,{key:1,ref_key:"resultRef",ref:f,value:m.value,"onUpdate:value":z[1]||(z[1]=ae=>m.value=ae),options:v.value,onClick:B},null,8,["value","options"]))]),_:1},512)])]),_:1},8,["modelValue","width"])}}}),Oo=pe(Eo,[["__scopeId","data-v-b82d1ace"]]);function Zo(t=!1){const e=R(t);function o(h){e.value=h}function a(){o(!0)}function u(){o(!1)}function s(){o(!e.value)}return{bool:e,setBool:o,setTrue:a,setFalse:u,toggle:s}}const Tt=oe({__name:"index",setup(t){const{bool:e,toggle:o}=Zo();function a(){o()}return(u,s)=>{const h=V("IconifyIconOffline");return c(),M("div",null,[_("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:a},[d(h,{icon:"search"})]),d(n(Oo),{value:n(e),"onUpdate:value":s[0]||(s[0]=r=>$n(e)?e.value=r:null)},null,8,["value"])])}}}),qt=[{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"}]}],Ro={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},Do={class:"notice-container-text"},Po={class:"notice-text-title text-[#000000d9] dark:text-white"},jo={class:"notice-text-datetime text-[#00000073] dark:text-white"},Bo=oe({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=R(null),a=R(!1),u=R(null),s=R(!1),{tooltipEffect:h}=ze(),r=Gt();function g(){De(()=>{var m,i;((m=o.value)==null?void 0:m.scrollWidth)>((i=o.value)==null?void 0:i.clientWidth)?a.value=!0:a.value=!1})}function f(m,i){const v=document.createElement("span");v.innerText=i,v.className="getDescriptionWidth",document.querySelector("body").appendChild(v);const y=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const w=m.target.offsetWidth;y>2*w?s.value=!0:s.value=!1}return(m,i)=>{var A,k;const v=V("el-avatar"),y=V("el-tooltip"),w=V("el-tag");return c(),M("div",Ro,[e.noticeItem.avatar?(c(),D(v,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):Y("",!0),_("div",Do,[_("div",Po,[d(y,{"popper-class":"notice-title-popper",effect:n(h),disabled:!a.value,content:e.noticeItem.title,placement:"top-start",enterable:!n(r)},{default:b(()=>[_("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:g},ee(e.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(A=e.noticeItem)!=null&&A.extra?(c(),D(w,{key:0,type:(k=e.noticeItem)==null?void 0:k.status,size:"small",class:"notice-title-extra"},{default:b(()=>{var P;return[fe(ee((P=e.noticeItem)==null?void 0:P.extra),1)]}),_:1},8,["type"])):Y("",!0)]),d(y,{"popper-class":"notice-title-popper",effect:n(h),disabled:!s.value,content:e.noticeItem.description,placement:"top-start"},{default:b(()=>[_("div",{ref_key:"descriptionRef",ref:u,class:"notice-text-description",onMouseover:i[0]||(i[0]=P=>f(P,e.noticeItem.description))},ee(e.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),_("div",jo,ee(e.noticeItem.datetime),1)])])}}}),qo=pe(Bo,[["__scopeId","data-v-2a7dbc48"]]),Fo={key:0},No=oe({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,a)=>{const u=V("el-empty");return e.list.length?(c(),M("div",Fo,[(c(!0),M(we,null,$e(e.list,(s,h)=>(c(),D(qo,{key:h,noticeItem:s},null,8,["noticeItem"]))),128))])):(c(),D(u,{key:1,description:"暂无消息"}))}}}),Uo={width:1024,height:1024,body:''},Wo={class:"dropdown-badge navbar-bg-hover select-none"},Go={class:"header-notice-icon"},Ko={key:1},Xo={class:"noticeList-container"},Jo=oe({__name:"index",setup(t){const e=R(0),o=R(qt),a=R(qt[0].key);return o.value.map(u=>e.value+=u.list.length),(u,s)=>{const h=V("IconifyIconOffline"),r=V("el-badge"),g=V("el-empty"),f=V("el-scrollbar"),m=V("el-tab-pane"),i=V("el-tabs"),v=V("el-dropdown-menu"),y=V("el-dropdown");return c(),D(y,{trigger:"click",placement:"bottom-end"},{dropdown:b(()=>[d(v,null,{default:b(()=>[d(i,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=w=>a.value=w),stretch:!0,class:"dropdown-tabs",style:ne({width:o.value.length===0?"200px":"330px"})},{default:b(()=>[o.value.length===0?(c(),D(g,{key:0,description:"暂无消息","image-size":60})):(c(),M("span",Ko,[(c(!0),M(we,null,$e(o.value,w=>(c(),D(m,{key:w.key,label:`${w.name}(${w.list.length})`,name:`${w.key}`},{default:b(()=>[d(f,{"max-height":"330px"},{default:b(()=>[_("div",Xo,[d(No,{list:w.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:b(()=>[_("span",Wo,[d(r,{value:e.value,max:99},{default:b(()=>[_("span",Go,[d(h,{icon:n(Uo)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}}),Vt=pe(Jo,[["__scopeId","data-v-33dc6db9"]]),Yo={key:0,class:"flex justify-center items-center"},vt=oe({__name:"extraIcon",props:{extraIcon:{type:String,default:""}},setup(t){const e=t;return(o,a)=>e.extraIcon?(c(),M("div",Yo,[(c(),D(Ze(n(Oe)(Me(e.extraIcon))),{class:"w-[30px] h-[30px]"}))])):Y("",!0)}}),zt={width:24,height:24,body:''},Qo={key:0,class:"horizontal-header"},ea={class:"select-none"},ta={class:"horizontal-header-right"},na={class:"check-zh"},oa={class:"check-en"},aa={class:"el-dropdown-link navbar-bg-hover select-none"},sa=["src"],la={key:0,class:"dark:text-white"},ra=["title"],ia=oe({__name:"mixNav",setup(t){const e=R(),o=R(null),{t:a,route:u,locale:s,translationCh:h,translationEn:r}=$t(e),{device:g,logout:f,onPanel:m,resolvePath:i,username:v,userAvatar:y,getDivStyle:w,avatarsStyle:A,getDropdownItemStyle:k,getDropdownItemClass:P}=ze();function L(E){var B,O,z;const I=Ce().wholeMenus,H=bt(E,I)[0];o.value=Fe((B=u.meta)==null?void 0:B.activePath)?(z=(O=lt(H,I))==null?void 0:O.children[0])==null?void 0:z.path:u.meta.activePath}return Pe(()=>{L(u.path)}),De(()=>{var E;(E=e.value)==null||E.handleResize()}),je(()=>[u.path,Ce().wholeMenus],()=>{L(u.path)}),(E,I)=>{const H=V("el-menu-item"),B=V("el-menu"),O=V("IconifyIconOffline"),z=V("el-dropdown-item"),K=V("el-dropdown-menu"),x=V("el-dropdown"),U=ot("loading");return n(g)!=="mobile"?le((c(),M("div",Qo,[d(B,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":o.value},{default:b(()=>[(c(!0),M(we,null,$e(n(Ce)().wholeMenus,X=>(c(),D(H,{key:X.path,index:n(i)(X)||X.redirect},{title:b(()=>[Me(X.meta.icon)?(c(),M("div",{key:0,class:re(["sub-menu-icon",X.meta.icon])},[(c(),D(Ze(n(Oe)(X.meta&&Me(X.meta.icon)))))],2)):Y("",!0),_("div",{style:ne(n(w))},[_("span",ea,ee(n(be)(X.meta.title)),1),d(vt,{extraIcon:X.meta.extraIcon},null,8,["extraIcon"])],4)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),_("div",ta,[d(Tt,{id:"header-search"}),d(Vt,{id:"header-notice"}),d(x,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[d(K,{class:"translation"},{default:b(()=>[d(z,{style:ne(n(k)(n(s),"zh")),class:re(["dark:!text-white",n(P)(n(s),"zh")]),onClick:n(h)},{default:b(()=>[le(_("span",na,[d(O,{icon:n(Ue)},null,8,["icon"])],512),[[ke,n(s)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(z,{style:ne(n(k)(n(s),"en")),class:re(["dark:!text-white",n(P)(n(s),"en")]),onClick:n(r)},{default:b(()=>[le(_("span",oa,[d(O,{icon:n(Ue)},null,8,["icon"])],512),[[ke,n(s)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[d(n(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(x,{trigger:"click"},{dropdown:b(()=>[d(K,{class:"logout"},{default:b(()=>[d(z,{onClick:n(f)},{default:b(()=>[d(O,{icon:n(zt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ee(n(a)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[_("span",aa,[_("img",{src:n(y),style:ne(n(A))},null,12,sa),n(v)?(c(),M("p",la,ee(n(v)),1)):Y("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(a)("buttons.hssystemSet"),onClick:I[0]||(I[0]=(...X)=>n(m)&&n(m)(...X))},[d(O,{icon:n(ct)},null,8,["icon"])],8,ra)])])),[[U,n(Ce)().wholeMenus.length===0]]):Y("",!0)}}}),ca=pe(ia,[["__scopeId","data-v-63778524"]]),ua=["onClick"],da=oe({__name:"breadCrumb",setup(t){const e=wt(),o=R([]),a=yt(),u=a.options.routes,s=Le().multiTags,h=()=>{let g;Object.keys(e.query).length>0?s.forEach(i=>{Ne(e.query,i==null?void 0:i.query)&&(g=Me(i))}):Object.keys(e.params).length>0?s.forEach(i=>{Ne(e.params,i==null?void 0:i.params)&&(g=Me(i))}):g=lt(a.currentRoute.value.path,u);const f=bt(a.currentRoute.value.name,u,"name"),m=[];f.forEach(i=>{i!=="/"&&m.push(lt(i,u))}),m.push(g),m.forEach((i,v)=>{g!=null&&g.query||g!=null&&g.params||i!=null&&i.children&&i.children.forEach(y=>{var w,A;((w=y==null?void 0:y.meta)==null?void 0:w.title)===((A=i==null?void 0:i.meta)==null?void 0:A.title)&&m.splice(v,1)})}),o.value=m.filter(i=>(i==null?void 0:i.meta)&&(i==null?void 0:i.meta.title)!==!1)},r=g=>{const{redirect:f,name:m,path:i}=g;f?a.push(f):m?g.query?a.push({name:m,query:g.query}):g.params?a.push({name:m,params:g.params}):a.push({name:m}):a.push({path:i})};return Pe(()=>{h()}),je(()=>e.path,()=>{h()},{deep:!0}),(g,f)=>{const m=V("el-breadcrumb-item"),i=V("el-breadcrumb");return c(),D(i,{class:"!leading-[50px] select-none",separator:"/"},{default:b(()=>[d(Sn,{name:"breadcrumb"},{default:b(()=>[(c(!0),M(we,null,$e(o.value,v=>(c(),D(m,{key:v.path,class:"!inline !items-stretch"},{default:b(()=>[_("a",{onClick:Xe(y=>r(v),["prevent"])},ee(n(be)(v.meta.title)),9,ua)]),_:2},1024))),128))]),_:1})]),_:1})}}}),an={width:24,height:24,body:''},ha={width:24,height:24,body:''},fa=["title"],pa=oe({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=e,u=()=>{a("toggleClick")};return(s,h)=>{const r=V("IconifyIconOffline");return c(),M("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"点击折叠":"点击展开",onClick:u},[d(r,{icon:o.isActive?n(an):n(ha),class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,fa)}}}),ma={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0,21,41,0.08)]"},va={key:3,class:"vertical-header-right"},_a={class:"check-en"},ga={class:"el-dropdown-link navbar-bg-hover select-none"},ya=["src"],ba={key:0,class:"dark:text-white"},wa=["title"],ka=oe({__name:"navbar",setup(t){const{layout:e,device:o,logout:a,onPanel:u,pureApp:s,username:h,userAvatar:r,avatarsStyle:g,toggleSideBar:f,getDropdownItemStyle:m,getDropdownItemClass:i}=ze(),{t:v,locale:y,translationCh:w,translationEn:A}=$t();return(k,P)=>{const L=V("IconifyIconOffline"),E=V("el-dropdown-item"),I=V("el-dropdown-menu"),H=V("el-dropdown");return c(),M("div",ma,[n(o)==="mobile"?(c(),D(pa,{key:0,class:"hamburger-container","is-active":n(s).sidebar.opened,onToggleClick:n(f)},null,8,["is-active","onToggleClick"])):Y("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(c(),D(da,{key:1,class:"breadcrumb-container"})):Y("",!0),n(e)==="mix"?(c(),D(ca,{key:2})):Y("",!0),n(e)==="vertical"?(c(),M("div",va,[d(Tt,{id:"header-search"}),d(Vt,{id:"header-notice"}),d(H,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[d(I,{class:"translation"},{default:b(()=>[d(E,{style:ne(n(m)(n(y),"zh")),class:re(["dark:!text-white",n(i)(n(y),"zh")]),onClick:n(w)},{default:b(()=>[le(d(L,{class:"check-zh",icon:n(Ue)},null,8,["icon"]),[[ke,n(y)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(E,{style:ne(n(m)(n(y),"en")),class:re(["dark:!text-white",n(i)(n(y),"en")]),onClick:n(A)},{default:b(()=>[le(_("span",_a,[d(L,{icon:n(Ue)},null,8,["icon"])],512),[[ke,n(y)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[d(n(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(H,{trigger:"click"},{dropdown:b(()=>[d(I,{class:"logout"},{default:b(()=>[d(E,{onClick:n(a)},{default:b(()=>[d(L,{icon:n(zt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ee(n(v)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[_("span",ga,[_("img",{src:n(r),style:ne(n(g))},null,12,ya),n(h)?(c(),M("p",ba,ee(n(h)),1)):Y("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(v)("buttons.hssystemSet"),onClick:P[0]||(P[0]=(...B)=>n(u)&&n(u)(...B))},[d(L,{icon:n(ct)},null,8,["icon"])],8,wa)])):Y("",!0)])}}}),xa=pe(ka,[["__scopeId","data-v-0617a10c"]]),Ca={width:24,height:24,body:''},$a={width:24,height:24,body:''},Sa={width:24,height:24,body:''},Ia={width:24,height:24,body:''},sn={width:1024,height:1024,body:''};function Ma(){var z,K;const t=wt(),e=yt(),o=Ut(),a=Mt(),u=R(0),s=R(0),h=R(0),r=R(!1),g=R(-1),f=R({}),m=R(((z=Je().getItem(`${Ye()}configure`))==null?void 0:z.showModel)||"smart"),i=(K=R(Je().getItem(`${Ye()}configure`).hideTabs))!=null?K:R("false"),v=q(()=>Le().multiTags),y=kt([{icon:Un,text:ye("buttons.hsreload"),divided:!1,disabled:!1,show:!0},{icon:sn,text:ye("buttons.hscloseCurrentTab"),divided:!1,disabled:!(v.value.length>1),show:!0},{icon:Ia,text:ye("buttons.hscloseLeftTabs"),divided:!0,disabled:!(v.value.length>1),show:!0},{icon:Sa,text:ye("buttons.hscloseRightTabs"),divided:!1,disabled:!(v.value.length>1),show:!0},{icon:$a,text:ye("buttons.hscloseOtherTabs"),divided:!0,disabled:!(v.value.length>2),show:!0},{icon:Ca,text:ye("buttons.hscloseAllTabs"),divided:!1,disabled:!(v.value.length>1),show:!0},{icon:et,text:ye("buttons.hswholeFullScreen"),divided:!0,disabled:!1,show:!0},{icon:et,text:ye("buttons.hscontentFullScreen"),divided:!1,disabled:!1,show:!0}]);function w(x,U,X){var ve,ae;return In((ve=t==null?void 0:t.meta)==null?void 0:ve.showLink)&&((ae=t==null?void 0:t.meta)==null?void 0:ae.showLink)===!1?Object.keys(t.query).length>0?Ne(t.query,x.query)?U:X:Ne(t.params,x.params)?U:X:t.path===x.path?U:X}const A=q(()=>(x,U)=>{if(U!==0)return w(x,!0,!1)}),k=q(()=>x=>w(x,"is-active","")),P=q(()=>x=>w(x,"schedule-active","")),L=q(()=>({transform:`translateX(${h.value}px)`})),E=q(()=>({left:s.value+"px",top:u.value+"px"})),I=()=>{r.value=!1};function H(x){if(x&&(g.value=x),n(m)==="smart"){if(st(o.refs["schedule"+x][0],"schedule-active"))return;Re(!0,"schedule-in",o.refs["schedule"+x][0]),Re(!1,"schedule-out",o.refs["schedule"+x][0])}else{if(st(o.refs["dynamic"+x][0],"is-active"))return;Re(!0,"card-in",o.refs["dynamic"+x][0]),Re(!1,"card-out",o.refs["dynamic"+x][0])}}function B(x){if(g.value=-1,n(m)==="smart"){if(st(o.refs["schedule"+x][0],"schedule-active"))return;Re(!1,"schedule-in",o.refs["schedule"+x][0]),Re(!0,"schedule-out",o.refs["schedule"+x][0])}else{if(st(o.refs["dynamic"+x][0],"is-active"))return;Re(!1,"card-in",o.refs["dynamic"+x][0]),Re(!0,"card-out",o.refs["dynamic"+x][0])}}function O(){a.hiddenSideBar?a.changeSetting({key:"hiddenSideBar",value:!1}):a.changeSetting({key:"hiddenSideBar",value:!0})}return Pe(()=>{if(!m.value){const x=Je().getItem(`${Ye()}configure`);x.showModel="card",Je().setItem(`${Ye()}configure`,x)}}),{route:t,router:e,visible:r,showTags:i,instance:o,multiTags:v,showModel:m,tagsViews:y,buttonTop:u,buttonLeft:s,translateX:h,pureSetting:a,activeIndex:g,getTabStyle:L,iconIsActive:A,linkIsActive:k,currentSelect:f,scheduleIsActive:P,getContextMenuStyle:E,$t:ye,closeMenu:I,onMounted:Pe,onMouseenter:H,onMouseleave:B,transformI18n:be,onContentFullScreen:O}}const Ta={width:24,height:24,body:''},Va={width:24,height:24,body:''},za={width:1024,height:1024,body:''};var Aa={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};const La={class:"arrow-left"},Ha=["onContextmenu","onMouseenter","onMouseleave","onClick"],Ea={class:"tag-title dark:!text-text_color_primary dark:hover:!text-primary"},Oa=["onClick"],Za={class:"arrow-right"},Ra=["onClick"],Da={class:"arrow-down"},Pa=oe({__name:"index",setup(t){var Ht;const{route:e,router:o,visible:a,showTags:u,instance:s,multiTags:h,tagsViews:r,buttonTop:g,buttonLeft:f,showModel:m,translateX:i,pureSetting:v,activeIndex:y,getTabStyle:w,iconIsActive:A,linkIsActive:k,currentSelect:P,scheduleIsActive:L,getContextMenuStyle:E,closeMenu:I,onMounted:H,onMouseenter:B,onMouseleave:O,transformI18n:z,onContentFullScreen:K}=Ma(),x=R(),U=R(),X=R(),ve=R(),ae=R(!1),Ae=(Ht=rt())==null?void 0:Ht.path,{VITE_HIDE_HOME:Be}=Aa,{isFullscreen:He,toggle:l}=Mn(),p=()=>at(this,null,function*(){yield De();const T=h.value.findIndex(Z=>Fe(e.query)?Fe(e.params)?e.path===Z.path:Ne(e.params,Z.params):Ne(e.query,Z.query));$(T)}),$=T=>at(this,null,function*(){var ue,Ie;yield De();const Z=10;if(!s.refs["dynamic"+T])return;const j=s.refs["dynamic"+T][0],G=j==null?void 0:j.offsetLeft,he=j==null?void 0:j.offsetWidth,F=X.value?(ue=X.value)==null?void 0:ue.offsetWidth:0,N=x.value?(Ie=x.value)==null?void 0:Ie.offsetWidth:0;F<=N?ae.value=!0:ae.value=!1,N-i.value&&G+he<-i.value+F?i.value=Math.min(0,F-he-G-Z):i.value=-(G-(F-Z-he))}),J=T=>{var G;const Z=X.value?(G=X.value)==null?void 0:G.offsetWidth:0,j=x.value?x.value.offsetWidth:0;T>0?i.value=Math.min(0,i.value+T):Z=-(j-Z)&&(i.value=Math.max(i.value+T,Z-j)):i.value=0};function ie(T){const Z=h.value.some(G=>G.path===T);function j(G,he){Z||G.forEach(F=>{F.path===he?Le().handleTags("push",{path:he,meta:F.meta,name:F.name}):F.children&&F.children.length>0&&j(F.children,he)})}j(o.options.routes,T)}function te(){const{fullPath:T,query:Z}=n(e);o.replace({path:"/redirect"+T,query:Z}),pt(e,"refresh")}function C(T,Z,j){var N,ue,Ie,Et;const G=h.value.findIndex(Te=>{if(Te.query){if(Te.path===T.path)return Te.query===T.query}else if(Te.params){if(Te.path===T.path)return Te.params===T.params}else return Te.path===T.path}),he=(Te,fn,pn)=>{pn?Le().handleTags("equal",[Be==="false"?Vn[0]:Me(rt()),T]):Le().handleTags("splice","",{startIndex:Te,length:fn}),p()};j==="other"?he(1,1,!0):j==="left"?he(1,G-1):j==="right"?he(G+1,h.value.length):he(G,1);const F=Le().handleTags("slice");if(Z===e.path){if(j==="left")return;(N=F[0])!=null&&N.query?o.push({name:F[0].name,query:F[0].query}):(ue=F[0])!=null&&ue.params?o.push({name:F[0].name,params:F[0].params}):o.push({path:F[0].path})}else{if(!h.value.length||h.value.some(Te=>Te.path===e.path))return;(Ie=F[0])!=null&&Ie.query?o.push({name:F[0].name,query:F[0].query}):(Et=F[0])!=null&&Et.params?o.push({name:F[0].name,params:F[0].params}):o.push({path:F[0].path})}}function S(T,Z){C(T,T.path,Z),pt(e)}function Q(T,Z,j){if(Z&&Z.disabled)return;let G;switch(j?G={path:j.path,meta:j.meta,name:j.name,query:j==null?void 0:j.query,params:j==null?void 0:j.params}:G={path:e.path,meta:e.meta},T){case 0:te();break;case 1:S(G);break;case 2:S(G,"left");break;case 3:S(G,"right");break;case 4:S(G,"other");break;case 5:Le().handleTags("splice","",{startIndex:1,length:h.value.length}),o.push(Ae),pt(e);break;case 6:l(),setTimeout(()=>{He.value?(r[6].icon=Pt,r[6].text=ye("buttons.hswholeExitFullScreen")):(r[6].icon=et,r[6].text=ye("buttons.hswholeFullScreen"))},100);break;case 7:K(),setTimeout(()=>{v.hiddenSideBar?(r[7].icon=Pt,r[7].text=ye("buttons.hscontentExitFullScreen")):(r[7].icon=et,r[7].text=ye("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Ee(e.fullPath,e.query)})}function ge(T){const{key:Z,item:j}=T;Q(Z,j)}function _e(T,Z){I(),Q(T,Z,P.value)}function Se(T){Array.of(1,2,3,4,5).forEach(Z=>{r[Z].show=T})}function W(T){Array.of(1,2,3,4,5).forEach(Z=>{r[Z].disabled=T})}function Ee(T,Z={},j=!1){const G=h.value,he=h.value.length;let F=-1;Fe(Z)?F=G.findIndex(N=>N.path===T):F=G.findIndex(N=>Ne(N.query,Z)),Se(!0),j&&(r[0].show=!0),F===1&&he!==2?(r[2].show=!1,Array.of(1,3,4,5).forEach(N=>{r[N].disabled=!1}),r[2].disabled=!0):F===1&&he===2?(W(!1),Array.of(2,3,4).forEach(N=>{r[N].show=!1,r[N].disabled=!0})):he-1===F&&F!==0?(r[3].show=!1,Array.of(1,2,4,5).forEach(N=>{r[N].disabled=!1}),r[3].disabled=!0):F===0||T===`/redirect${Ae}`?W(!0):W(!1)}function Lt(T,Z){I(),T.path===Ae?(Se(!1),r[0].show=!0):e.path!==T.path&&e.name!==T.name?(r[0].show=!1,Ee(T.path,T.query)):h.value.length===2&&e.path!==T.path?(Se(!0),r[4].show=!1):e.path===T.path&&Ee(T.path,T.query,!0),P.value=T;const j=140,G=n(U).getBoundingClientRect().left,F=n(U).offsetWidth-j,N=Z.clientX-G+5;N>F?f.value=F:f.value=N,Mt().hiddenSideBar?g.value=Z.clientY:g.value=Z.clientY-40,De(()=>{a.value=!0})}function hn(T){const{name:Z,path:j}=T;Z?T.query?o.push({name:Z,query:T.query}):T.params?o.push({name:Z,params:T.params}):o.push({name:Z}):o.push({path:j})}return Kt(ve,I,{detectIframe:!0}),je(e,()=>{y.value=-1,p()}),je(He,()=>{r[6].icon=et,r[6].text=ye("buttons.hswholeFullScreen")}),H(()=>{s&&(Ee(e.fullPath),xe.on("tagViewsChange",T=>{n(u)!==T&&(u.value=T)}),xe.on("tagViewsShowModel",T=>{m.value=T}),xe.on("changLayoutRoute",T=>{ie(T),setTimeout(()=>{Ee(T)})}),gt(X,p),Tn().then(()=>p()))}),xt(()=>{xe.off("tagViewsChange"),xe.off("tagViewsShowModel"),xe.off("changLayoutRoute")}),(T,Z)=>{const j=V("IconifyIconOffline"),G=V("el-dropdown-item"),he=V("el-dropdown-menu"),F=V("el-dropdown");return n(u)?Y("",!0):(c(),M("div",{key:0,ref_key:"containerDom",ref:U,class:"tags-view"},[le(_("span",La,[d(j,{icon:n(Va),onClick:Z[0]||(Z[0]=N=>J(200))},null,8,["icon"])],512),[[ke,ae.value]]),_("div",{ref_key:"scrollbarDom",ref:X,class:"scroll-container"},[_("div",{ref_key:"tabDom",ref:x,class:"tab select-none",style:ne(n(w))},[(c(!0),M(we,null,$e(n(h),(N,ue)=>(c(),M("div",{ref_for:!0,ref:"dynamic"+ue,key:ue,class:re(["scroll-item is-closable",n(k)(N)]),onContextmenu:Xe(Ie=>Lt(N,Ie),["prevent"]),onMouseenter:Xe(Ie=>n(B)(ue),["prevent"]),onMouseleave:Xe(Ie=>n(O)(ue),["prevent"]),onClick:Ie=>hn(N)},[_("span",Ea,ee(n(z)(N.meta.title)),1),n(A)(N,ue)||ue===n(y)&&ue!==0?(c(),M("span",{key:0,class:"el-icon-close",onClick:Xe(Ie=>S(N),["stop"])},[d(j,{icon:n(za)},null,8,["icon"])],8,Oa)):Y("",!0),n(m)!=="card"?(c(),M("div",{key:1,ref_for:!0,ref:"schedule"+ue,class:re([n(L)(N)])},null,2)):Y("",!0)],42,Ha))),128))],4)],512),le(_("span",Za,[d(j,{icon:n(Wn),onClick:Z[1]||(Z[1]=N=>J(-200))},null,8,["icon"])],512),[[ke,ae.value]]),d(Ct,{name:"el-zoom-in-top"},{default:b(()=>[le((c(),M("ul",{ref_key:"contextmenuRef",ref:ve,key:Math.random(),style:ne(n(E)),class:"contextmenu"},[(c(!0),M(we,null,$e(n(r).slice(0,6),(N,ue)=>(c(),M("div",{key:ue,style:{display:"flex","align-items":"center"}},[N.show?(c(),M("li",{key:0,onClick:Ie=>_e(ue,N)},[d(j,{icon:N.icon},null,8,["icon"]),fe(" "+ee(n(z)(N.text)),1)],8,Ra)):Y("",!0)]))),128))],4)),[[ke,n(a)]])]),_:1}),d(F,{trigger:"click",placement:"bottom-end",onCommand:ge},{dropdown:b(()=>[d(he,null,{default:b(()=>[(c(!0),M(we,null,$e(n(r),(N,ue)=>(c(),D(G,{key:ue,command:{key:ue,item:N},divided:N.divided,disabled:N.disabled},{default:b(()=>[d(j,{icon:N.icon},null,8,["icon"]),fe(" "+ee(n(z)(N.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:b(()=>[_("span",Da,[d(j,{icon:n(Ta),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),ja=pe(Pa,[["__scopeId","data-v-6f8259a2"]]),Ba={class:"layout-footer"},qa={class:"ml-1 hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Fa=oe({__name:"index",setup(t){const e=Ge("Title");return(o,a)=>(c(),M("footer",Ba,[fe(" MIT © 2020-PRESENT "),_("a",qa,ee(n(e)),1)]))}}),Ft=pe(Fa,[["__scopeId","data-v-7e9cc56a"]]),Ke=new Map,Na=()=>{function t(a,u){Ke.set(a,u)}function e(a){return a?Ke.get(a):[...Ke.entries()]}function o(a){Ke.delete(a)}return{setMap:t,getMap:e,delMap:o,MAP:Ke}},Ua={class:"w-full h-full"},Wa=oe({__name:"index",props:{currRoute:{},currComp:{}},setup(t){const e=t,o=Wt([]),{setMap:a,getMap:u,MAP:s,delMap:h}=Na(),r=q(()=>{var f,m;return Ge().KeepAlive&&((f=e.currRoute.meta)==null?void 0:f.keepAlive)&&!!((m=e.currRoute.meta)!=null&&m.frameSrc)}),g=q(()=>!r.value&&e.currComp);return je(Le().multiTags,f=>{if(!Array.isArray(f)||!r.value)return;if(f.filter(i=>{var v;return(v=i.meta)==null?void 0:v.frameSrc}).lengthv.path===i)||(h(i),o.value=u())}),je(()=>e.currRoute.fullPath,f=>{const i=Le().multiTags.filter(v=>{var y;return(y=v.meta)==null?void 0:y.frameSrc});r.value&&i.length!==s.size&&([...s.keys()].find(y=>f===y)||a(f,e.currComp)),s.size>0&&(o.value=u())},{immediate:!0}),(f,m)=>(c(),M(we,null,[(c(!0),M(we,null,$e(o.value,([i,v])=>{var y;return le((c(),M("div",{key:i,class:"w-full h-full"},[mt(f.$slots,"default",{fullPath:i,Comp:v,frameInfo:{frameSrc:(y=f.currRoute.meta)==null?void 0:y.frameSrc,fullPath:i}})],512)),[[ke,i===e.currRoute.fullPath]])}),128)),le(_("div",Ua,[mt(f.$slots,"default",{Comp:g.value,fullPath:e.currRoute.fullPath})],512),[[ke,!r.value]])],64))}}),Ga={class:"grow"},Ka={key:1,class:"grow"},Xa=oe({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=it(),u=q(()=>a==null?void 0:a.KeepAlive),s=q(()=>i=>i.meta.transition),h=q(()=>o==null?void 0:o.configure.hideTabs),r=q(()=>o==null?void 0:o.configure.hideFooter),g=q(()=>(o==null?void 0:o.layout.layout)==="vertical"),f=q(()=>[h.value&&g?"padding-top: 48px;":"",!h.value&&g?"padding-top: 85px;":"",h.value&&!g.value?"padding-top: 48px;":"",!h.value&&!g.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${h.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),m=oe({props:{route:{type:void 0,required:!0}},render(){var w,A,k;const i=((w=s.value(this.route))==null?void 0:w.name)||"fade-transform",v=(A=s.value(this.route))==null?void 0:A.enterTransition,y=(k=s.value(this.route))==null?void 0:k.leaveTransition;return Qe(Ct,{name:v?"pure-classes-transition":i,enterActiveClass:v?`animate__animated ${v}`:void 0,leaveActiveClass:y?`animate__animated ${y}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(i,v)=>{const y=V("el-backtop"),w=V("el-scrollbar"),A=V("router-view");return c(),M("section",{class:re([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:ne(f.value)},[d(A,null,{default:b(({Component:k,route:P})=>[d(Wa,{currComp:k,currRoute:P},{default:b(({Comp:L,fullPath:E,frameInfo:I})=>[e.fixedHeader?(c(),D(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:b(()=>[d(y,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:b(()=>[d(n(en))]),_:1}),_("div",Ga,[d(n(m),{route:P},{default:b(()=>[u.value?(c(),D(jt,{key:0,include:n(Ce)().cachePageList},[(c(),D(Ze(L),{key:E,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ze(L),{key:E,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]),r.value?Y("",!0):(c(),D(Ft,{key:0}))]),_:2},1024)):(c(),M("div",Ka,[d(n(m),{route:P},{default:b(()=>[u.value?(c(),D(jt,{key:0,include:n(Ce)().cachePageList},[(c(),D(Ze(L),{key:E,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))],1032,["include"])):(c(),D(Ze(L),{key:E,frameInfo:I,class:"main-content"},null,8,["frameInfo"]))]),_:2},1032,["route"])]))]),_:2},1032,["currComp","currRoute"])]),_:1}),!r.value&&!e.fixedHeader?(c(),D(Ft,{key:0})):Y("",!0)],6)}}}),Nt=pe(Xa,[["__scopeId","data-v-ca0a972a"]]),ln=t=>(Xt("data-v-fbc6ff94"),t=t(),Jt(),t),Ja=ln(()=>_("div",{class:"right-panel-background"},null,-1)),Ya={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Qa=ln(()=>_("h4",{class:"dark:text-white"},"项目配置",-1)),es={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},ts=oe({__name:"index",setup(t){const e=R(null),o=R(!1),a=q(()=>["outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{onReset:u}=It();return Kt(e,s=>{s.clientX>e.value.offsetLeft||(o.value=!1)}),Pe(()=>{xe.on("openPanel",()=>{o.value=!0})}),xt(()=>{xe.off("openPanel")}),(s,h)=>{const r=V("IconifyIconOffline"),g=V("el-scrollbar"),f=V("el-button"),m=ot("tippy");return c(),M("div",{class:re([{show:o.value},"right-panel-container"])},[Ja,_("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[_("div",Ya,[Qa,le((c(),M("span",{class:re(a.value)},[d(r,{class:"dark:text-white",width:"20px",height:"20px",icon:n(sn),onClick:h[0]||(h[0]=i=>o.value=!o.value)},null,8,["icon"])],2)),[[m,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),d(g,null,{default:b(()=>[mt(s.$slots,"default",{},void 0,!0)]),_:3}),_("div",es,[le((c(),D(f,{type:"danger",text:"",bg:"",onClick:n(u)},{default:b(()=>[fe(" 清空缓存 ")]),_:1},8,["onClick"])),[[m,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),ns=pe(ts,[["__scopeId","data-v-fbc6ff94"]]),os={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",class:"icon",viewBox:"0 0 1024 1024"},as=_("path",{d:"M554 849.574c0 23.365-18.635 42.307-42 42.307s-42-18.941-42-42.307V662.719c0-23.365 18.635-42.307 42-42.307v-7.051c23.365 0 42 25.993 42 49.358z"},null,-1),ss=_("path",{d:"M893 888.5c0 17.397-14.103 31.5-31.5 31.5h-700c-17.397 0-31.5-14.103-31.5-31.5s14.103-31.5 31.5-31.5h700c17.397 0 31.5 14.103 31.5 31.5m33-714.074C926 135.484 894.686 105 855.744 105H168.256C129.314 105 98 135.484 98 174.426V533h828zM98 630.988C98 669.931 129.314 702 168.256 702h687.488C894.686 702 926 669.931 926 630.988V596H98z"},null,-1),ls=[as,ss];function rs(t,e){return c(),M("svg",os,[...ls])}const is={render:rs},me=t=>(Xt("data-v-3586024f"),t=t(),Jt(),t),cs={class:"p-6"},us=me(()=>_("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),ds=me(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),hs={class:"theme-color"},fs=["onClick"],ps=me(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),ms={class:"pure-theme"},vs=me(()=>_("div",null,null,-1)),_s=me(()=>_("div",null,null,-1)),gs=[vs,_s],ys=me(()=>_("div",null,null,-1)),bs=me(()=>_("div",null,null,-1)),ws=[ys,bs],ks=me(()=>_("div",null,null,-1)),xs=me(()=>_("div",null,null,-1)),Cs=[ks,xs],$s=me(()=>_("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),Ss=me(()=>_("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),Is={class:"setting"},Ms=me(()=>_("span",{class:"dark:text-white"},"灰色模式",-1)),Ts=me(()=>_("span",{class:"dark:text-white"},"色弱模式",-1)),Vs=me(()=>_("span",{class:"dark:text-white"},"隐藏标签页",-1)),zs=me(()=>_("span",{class:"dark:text-white"},"隐藏页脚",-1)),As=me(()=>_("span",{class:"dark:text-white"},"Logo",-1)),Ls=me(()=>_("span",{class:"dark:text-white"},"页签持久化",-1)),Hs=oe({__name:"index",setup(t){var $,J,ie,te;const{device:e}=ze(),{isDark:o}=Yt(),{$storage:a}=it(),u=R(),s=R(),h=R(),{dataTheme:r,overallStyle:g,layoutTheme:f,themeColors:m,toggleClass:i,dataThemeChange:v,setLayoutThemeColor:y}=It();if(n(f)){const C=n(f).layout,S=n(f).theme;Zn({scopeName:`layout-theme-${S}`}),Ae(C)}const w=R((J=($=a.configure)==null?void 0:$.showModel)!=null?J:"smart"),A=R((te=(ie=a.configure)==null?void 0:ie.showLogo)!=null?te:!0),k=kt({greyVal:a.configure.grey,weakVal:a.configure.weak,tabsVal:a.configure.hideTabs,showLogo:a.configure.showLogo,showModel:a.configure.showModel,hideFooter:a.configure.hideFooter,multiTagsCache:a.configure.multiTagsCache}),P=q(()=>C=>({background:C})),L=q(()=>C=>!(C==="light"&&o.value));function E(C,S){const Q=a.configure;Q[C]=S,a.configure=Q}const I=C=>{i(k.greyVal,"html-grey",document.querySelector("html")),E("grey",C)},H=C=>{i(k.weakVal,"html-weakness",document.querySelector("html")),E("weak",C)},B=()=>{const C=k.tabsVal;E("hideTabs",C),xe.emit("tagViewsChange",C)},O=()=>{const C=k.hideFooter;E("hideFooter",C)},z=()=>{const C=k.multiTagsCache;E("multiTagsCache",C),Le().multiTagsCacheChange(C)};function K({option:C}){const{value:S}=C;w.value=S,E("showModel",S),xe.emit("tagViewsShowModel",S)}function x(){n(A)?E("showLogo",!0):E("showLogo",!1),xe.emit("logoChange",n(A))}function U(C){C.forEach(S=>{i(!1,"is-select",n(S))})}const X=q(()=>C=>C===f.value.theme&&f.value.theme!=="light"?"#fff":C===f.value.theme&&f.value.theme==="light"?"#1d2b45":"transparent"),ve=q(()=>[{label:"浅色",icon:Rn,theme:"light",tip:"清新启航,点亮舒适的工作界面",iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"深色",icon:Dn,theme:"dark",tip:"月光序曲,沉醉于夜的静谧雅致",iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"自动",icon:is,theme:"system",tip:"同步时光,界面随晨昏自然呼应",iconAttrs:{fill:o.value?"#fff":"#000"}}]),ae=[{label:"灵动",tip:"灵动标签,添趣生辉",value:"smart"},{label:"卡片",tip:"卡片标签,高效浏览",value:"card"}];function Ae(C){var S,Q,ge,_e,Se;f.value.layout=C,window.document.body.setAttribute("layout",C),a.layout={layout:C,theme:f.value.theme,darkMode:(S=a.layout)==null?void 0:S.darkMode,sidebarStatus:(Q=a.layout)==null?void 0:Q.sidebarStatus,epThemeColor:(ge=a.layout)==null?void 0:ge.epThemeColor,themeColor:(_e=a.layout)==null?void 0:_e.themeColor,overallStyle:(Se=a.layout)==null?void 0:Se.overallStyle},qe().setLayout(C)}je(a,({layout:C})=>{switch(C.layout){case"vertical":i(!0,"is-select",n(s)),We(U([h]),50),We(U([u]),50);break;case"horizontal":i(!0,"is-select",n(h)),We(U([s]),50),We(U([u]),50);break;case"mix":i(!0,"is-select",n(u)),We(U([s]),50),We(U([h]),50);break}});const Be=window.matchMedia("(prefers-color-scheme: dark)");function He(){g.value==="system"&&(Be.matches?r.value=!0:r.value=!1,v(g.value))}function l(){Be.removeEventListener("change",He)}function p(){He(),l(),Be.addEventListener("change",He)}return Qt(()=>{De(()=>{var C,S;p(),k.greyVal&&((C=document.querySelector("html"))==null||C.setAttribute("class","html-grey")),k.weakVal&&((S=document.querySelector("html"))==null||S.setAttribute("class","html-weakness")),k.tabsVal&&B(),k.hideFooter&&O()})}),zn(()=>l),(C,S)=>{const Q=V("IconifyIconOffline"),ge=V("el-icon"),_e=V("el-switch"),Se=ot("tippy");return c(),D(ns,null,{default:b(()=>[_("div",cs,[us,d(n(Bt),{class:"select-none",modelValue:n(g)==="system"?2:n(r)?1:0,options:ve.value,onChange:S[0]||(S[0]=W=>{W.index===1&&W.index!==2?r.value=!0:r.value=!1,g.value=W.option.theme,n(v)(W.option.theme),W.index===2&&p()})},null,8,["modelValue","options"]),ds,_("ul",hs,[(c(!0),M(we,null,$e(n(m),(W,Ee)=>le((c(),M("li",{key:Ee,style:ne(P.value(W.color)),onClick:Lt=>n(y)(W.themeColor)},[d(ge,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:X.value(W.themeColor)},{default:b(()=>[d(Q,{icon:n(Ue)},null,8,["icon"])]),_:2},1032,["color"])],12,fs)),[[ke,L.value(W.themeColor)]])),128))]),ps,_("ul",ms,[le((c(),M("li",{ref_key:"verticalRef",ref:s,class:re(n(f).layout==="vertical"?"is-select":""),onClick:S[1]||(S[1]=W=>Ae("vertical"))},gs,2)),[[Se,{content:"左侧菜单,亲切熟悉",zIndex:41e3}]]),n(e)!=="mobile"?le((c(),M("li",{key:0,ref_key:"horizontalRef",ref:h,class:re(n(f).layout==="horizontal"?"is-select":""),onClick:S[2]||(S[2]=W=>Ae("horizontal"))},ws,2)),[[Se,{content:"顶部菜单,简洁概览",zIndex:41e3}]]):Y("",!0),n(e)!=="mobile"?le((c(),M("li",{key:1,ref_key:"mixRef",ref:u,class:re(n(f).layout==="mix"?"is-select":""),onClick:S[3]||(S[3]=W=>Ae("mix"))},Cs,2)),[[Se,{content:"混合菜单,灵活多变",zIndex:41e3}]]):Y("",!0)]),$s,d(n(Bt),{class:"select-none",modelValue:w.value==="smart"?0:1,options:ae,onChange:K},null,8,["modelValue"]),Ss,_("ul",Is,[_("li",null,[Ms,d(_e,{modelValue:k.greyVal,"onUpdate:modelValue":S[4]||(S[4]=W=>k.greyVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:I},null,8,["modelValue"])]),_("li",null,[Ts,d(_e,{modelValue:k.weakVal,"onUpdate:modelValue":S[5]||(S[5]=W=>k.weakVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:H},null,8,["modelValue"])]),_("li",null,[Vs,d(_e,{modelValue:k.tabsVal,"onUpdate:modelValue":S[6]||(S[6]=W=>k.tabsVal=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:B},null,8,["modelValue"])]),_("li",null,[zs,d(_e,{modelValue:k.hideFooter,"onUpdate:modelValue":S[7]||(S[7]=W=>k.hideFooter=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:O},null,8,["modelValue"])]),_("li",null,[As,d(_e,{modelValue:A.value,"onUpdate:modelValue":S[8]||(S[8]=W=>A.value=W),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:x},null,8,["modelValue"])]),_("li",null,[Ls,d(_e,{modelValue:k.multiTagsCache,"onUpdate:modelValue":S[9]||(S[9]=W=>k.multiTagsCache=W),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:z},null,8,["modelValue"])])])])]),_:1})}}}),Es=pe(Hs,[["__scopeId","data-v-3586024f"]]),Os=["src"],Zs={class:"sidebar-title"},Rs=["src"],Ds={class:"sidebar-title"},Ps=oe({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o,getLogo:a}=ze();return(u,s)=>{const h=V("router-link");return c(),M("div",{class:re(["sidebar-logo-container",{collapses:e.collapse}])},[d(Ct,{name:"sidebarLogoFade"},{default:b(()=>{var r,g,f,m;return[e.collapse?(c(),D(h,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:(g=(r=n(rt)())==null?void 0:r.path)!=null?g:"/"},{default:b(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,Os),_("span",Zs,ee(n(o)),1)]),_:1},8,["title","to"])):(c(),D(h,{key:"expand",title:n(o),class:"sidebar-logo-link",to:(m=(f=n(rt)())==null?void 0:f.path)!=null?m:"/"},{default:b(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,Rs),_("span",Ds,ee(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),js=pe(Ps,[["__scopeId","data-v-8d7f2c36"]]);var nt={exports:{}},rn={},Bs=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},_t={exports:{}};typeof Object.create=="function"?_t.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:_t.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var qs=_t.exports;(function(t){var e={},o=/%[sdj%]/g;t.format=function(l){if(!I(l)){for(var p=[],$=0;$=ie)return S;switch(S){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch(Q){return"[Circular]"}default:return S}}),C=J[$];$=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),k(p)?$.showHidden=p:p&&t._extend($,p),B($.showHidden)&&($.showHidden=!1),B($.depth)&&($.depth=2),B($.colors)&&($.colors=!1),B($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=h),f($,l,$.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 h(l,p){var $=s.styles[p];return $?"\x1B["+s.colors[$][0]+"m"+l+"\x1B["+s.colors[$][1]+"m":l}function r(l,p){return l}function g(l){var p={};return l.forEach(function($,J){p[$]=!0}),p}function f(l,p,$){if(l.customInspect&&p&&U(p.inspect)&&p.inspect!==t.inspect&&!(p.constructor&&p.constructor.prototype===p)){var J=p.inspect($,l);return I(J)||(J=f(l,J,$)),J}var ie=m(l,p);if(ie)return ie;var te=Object.keys(p),C=g(te);if(l.showHidden&&(te=Object.getOwnPropertyNames(p)),x(p)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return i(p);if(te.length===0){if(U(p)){var S=p.name?": "+p.name:"";return l.stylize("[Function"+S+"]","special")}if(O(p))return l.stylize(RegExp.prototype.toString.call(p),"regexp");if(K(p))return l.stylize(Date.prototype.toString.call(p),"date");if(x(p))return i(p)}var Q="",ge=!1,_e=["{","}"];if(A(p)&&(ge=!0,_e=["[","]"]),U(p)){var Se=p.name?": "+p.name:"";Q=" [Function"+Se+"]"}if(O(p)&&(Q=" "+RegExp.prototype.toString.call(p)),K(p)&&(Q=" "+Date.prototype.toUTCString.call(p)),x(p)&&(Q=" "+i(p)),te.length===0&&(!ge||p.length==0))return _e[0]+Q+_e[1];if($<0)return O(p)?l.stylize(RegExp.prototype.toString.call(p),"regexp"):l.stylize("[Object]","special");l.seen.push(p);var W;return ge?W=v(l,p,$,C,te):W=te.map(function(Ee){return y(l,p,$,C,Ee,ge)}),l.seen.pop(),w(W,Q,_e)}function m(l,p){if(B(p))return l.stylize("undefined","undefined");if(I(p)){var $="'"+JSON.stringify(p).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return l.stylize($,"string")}if(E(p))return l.stylize(""+p,"number");if(k(p))return l.stylize(""+p,"boolean");if(P(p))return l.stylize("null","null")}function i(l){return"["+Error.prototype.toString.call(l)+"]"}function v(l,p,$,J,ie){for(var te=[],C=0,S=p.length;C-1&&(te?S=S.split(`
`).map(function(ge){return" "+ge}).join(`
`).substr(2):S=`
`+S.split(`
`).map(function(ge){return" "+ge}).join(`
`))):S=l.stylize("[Circular]","special")),B(C)){if(te&&ie.match(/^\d+$/))return S;C=JSON.stringify(""+ie),C.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(C=C.substr(1,C.length-2),C=l.stylize(C,"name")):(C=C.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),C=l.stylize(C,"string"))}return C+": "+S}function w(l,p,$){var J=l.reduce(function(ie,te){return te.indexOf(`
`)>=0,ie+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?$[0]+(p===""?"":p+`
`)+" "+l.join(`,
`)+" "+$[1]:$[0]+p+" "+l.join(", ")+" "+$[1]}function A(l){return Array.isArray(l)}t.isArray=A;function k(l){return typeof l=="boolean"}t.isBoolean=k;function P(l){return l===null}t.isNull=P;function L(l){return l==null}t.isNullOrUndefined=L;function E(l){return typeof l=="number"}t.isNumber=E;function I(l){return typeof l=="string"}t.isString=I;function H(l){return typeof l=="symbol"}t.isSymbol=H;function B(l){return l===void 0}t.isUndefined=B;function O(l){return z(l)&&ve(l)==="[object RegExp]"}t.isRegExp=O;function z(l){return typeof l=="object"&&l!==null}t.isObject=z;function K(l){return z(l)&&ve(l)==="[object Date]"}t.isDate=K;function x(l){return z(l)&&(ve(l)==="[object Error]"||l instanceof Error)}t.isError=x;function U(l){return typeof l=="function"}t.isFunction=U;function X(l){return l===null||typeof l=="boolean"||typeof l=="number"||typeof l=="string"||typeof l=="symbol"||typeof l=="undefined"}t.isPrimitive=X,t.isBuffer=Bs;function ve(l){return Object.prototype.toString.call(l)}function ae(l){return l<10?"0"+l.toString(10):l.toString(10)}var Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Be(){var l=new Date,p=[ae(l.getHours()),ae(l.getMinutes()),ae(l.getSeconds())].join(":");return[l.getDate(),Ae[l.getMonth()],p].join(" ")}t.log=function(){console.log("%s - %s",Be(),t.format.apply(t,arguments))},t.inherits=qs,t._extend=function(l,p){if(!p||!z(p))return l;for(var $=Object.keys(p),J=$.length;J--;)l[$[J]]=p[$[J]];return l};function He(l,p){return Object.prototype.hasOwnProperty.call(l,p)}})(rn);var Fs={},Ns=process.platform==="win32",Ve=rn;function ut(t,e){for(var o=[],a=0;a=0&&!t[a];a--);return o===0&&a===e?t:o>a?[]:t.slice(o,a+1)}var cn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Us=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,ce={};function dt(t){var e=cn.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",u=Us.exec(a),s=u[1],h=u[2],r=u[3];return[o,s,h,r]}function At(t){var e=cn.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function un(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}ce.resolve=function(){for(var t="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var u;if(a>=0?u=arguments[a]:t?(u=Fs["="+t],(!u||u.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(u=t+"\\")):u=process.cwd(),Ve.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var s=At(u),h=s.device,r=s.isUnc,g=s.isAbsolute,f=s.tail;if(!(h&&t&&h.toLowerCase()!==t.toLowerCase())&&(t||(t=h),o||(e=f+"\\"+e,o=g),t&&o))break}return r&&(t=un(t)),e=ut(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};ce.normalize=function(t){var e=At(t),o=e.device,a=e.isUnc,u=e.isAbsolute,s=e.tail,h=/[\\\/]$/.test(s);return s=ut(s.split(/[\\\/]+/),!u).join("\\"),!s&&!u&&(s="."),s&&h&&(s+="\\"),a&&(o=un(o)),o+(u?"\\":"")+s};ce.isAbsolute=function(t){return At(t).isAbsolute};ce.join=function(){for(var t=[],e=0;e=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ve.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=ut(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};de.normalize=function(t){var e=de.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=ut(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};de.isAbsolute=function(t){return t.charAt(0)==="/"};de.join=function(){for(var t="",e=0;e'},Js={width:1024,height:1024,body:''},Ys={width:1024,height:1024,body:''},Qs={width:1024,height:1024,body:''},el={key:0},tl={key:1},dn=oe({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const{layout:e,isCollapse:o,tooltipEffect:a,getDivStyle:u}=ze(),s=t,h=q(()=>({width:"100%",textAlign:"center"})),r=q(()=>({display:"flex",alignItems:"center"})),g=q(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),f=q(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),m=q(()=>o.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),i=q(()=>I=>{var H;return o.value?{width:"100%",textAlign:(I==null?void 0:I.parentId)===null||e.value==="mix"&&((H=I==null?void 0:I.pathList)==null?void 0:H.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),v=q(()=>{var I;return(I=Ge())!=null&&I.MenuArrowIconNoTransition?{"expand-close-icon":Oe(Js),"expand-open-icon":Oe(Xs),"collapse-close-icon":Oe(Qs),"collapse-open-icon":Oe(Ys)}:""}),y=R(null),w=new WeakMap,A=R(null);function k(I){w.get(I)||De(()=>{var H,B;((H=A.value)==null?void 0:H.scrollWidth)>((B=A.value)==null?void 0:B.clientWidth)?Object.assign(I,{showTooltip:!0}):Object.assign(I,{showTooltip:!1}),w.set(I,!0)})}function P(I,H){var O;const B=((I==null?void 0:I.length)>1?I.toString().slice(0,1):I)+"...";return H&&!(o.value&&(H==null?void 0:H.parentId)===null)?e.value==="mix"&&((O=H==null?void 0:H.pathList)==null?void 0:O.length)===2&&o.value?B:I:B}function L(I=[],H){var O,z;const B=I.filter(K=>(y.value=K,!0));return(z=(O=B[0])==null?void 0:O.meta)!=null&&z.showParent?!1:B.length===1?!0:B.length===0?(y.value=Dt(Rt({},H),{path:"",noShowingChildren:!0}),!0):!1}function E(I){const H=/^http(s?):\/\//;return H.test(I)||H.test(s.basePath)?I||s.basePath:Ks.posix.resolve(s.basePath,I)}return(I,H)=>{const B=V("el-tooltip"),O=V("el-menu-item"),z=V("sidebar-item",!0),K=V("el-sub-menu");return L(s.item.children,s.item)&&(!y.value.children||y.value.noShowingChildren)?(c(),D(O,{key:0,index:E(y.value.path),class:re({"submenu-title-noDropdown":!t.isNest}),style:ne(r.value)},{title:b(()=>[_("div",{style:ne(n(u))},[n(e)==="horizontal"?(c(),M("span",el,ee(n(be)(y.value.meta.title)),1)):(c(),D(B,{key:1,placement:"top",effect:n(a),offset:-10,disabled:!y.value.showTooltip},{content:b(()=>[fe(ee(n(be)(y.value.meta.title)),1)]),default:b(()=>[_("span",{ref_key:"menuTextRef",ref:A,style:ne(g.value),onMouseover:H[0]||(H[0]=x=>k(y.value))},ee(n(be)(y.value.meta.title)),37)]),_:1},8,["effect","disabled"])),d(vt,{extraIcon:y.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:b(()=>{var x,U,X,ve,ae;return[Me(s.item.meta.icon)?(c(),M("div",{key:0,class:"sub-menu-icon",style:ne(f.value)},[(c(),D(Ze(n(Oe)(Me(y.value.meta.icon)||s.item.meta&&Me(s.item.meta.icon)))))],4)):Y("",!0),!((x=s.item)!=null&&x.meta.icon)&&n(o)&&n(e)==="vertical"&&((X=(U=s.item)==null?void 0:U.pathList)==null?void 0:X.length)===1?(c(),M("span",{key:1,style:ne(h.value)},ee(P(n(be)(y.value.meta.title))),5)):Y("",!0),!y.value.meta.icon&&n(o)&&n(e)==="mix"&&((ae=(ve=s.item)==null?void 0:ve.pathList)==null?void 0:ae.length)===2?(c(),M("span",{key:2,style:ne(h.value)},ee(P(n(be)(y.value.meta.title))),5)):Y("",!0)]}),_:1},8,["index","class","style"])):(c(),D(K,Hn({key:1,ref:"subMenu",teleported:"",index:E(s.item.path)},v.value),{title:b(()=>[Me(s.item.meta.icon)?(c(),M("div",{key:0,style:ne(f.value),class:"sub-menu-icon"},[(c(),D(Ze(n(Oe)(s.item.meta&&Me(s.item.meta.icon)))))],4)):Y("",!0),n(e)==="horizontal"?(c(),M("span",tl,ee(n(be)(s.item.meta.title)),1)):Y("",!0),n(o)&&Me(s.item.meta.icon)&&s.item.parentId===null?Y("",!0):(c(),M("div",{key:2,style:ne(i.value(s.item))},[n(e)!=="horizontal"?(c(),D(B,{key:0,placement:"top",effect:n(a),offset:-10,disabled:!s.item.showTooltip},{content:b(()=>[fe(ee(n(be)(s.item.meta.title)),1)]),default:b(()=>[_("span",{ref_key:"menuTextRef",ref:A,style:ne(m.value),onMouseover:H[1]||(H[1]=x=>k(s.item))},ee(P(n(be)(s.item.meta.title),s.item)),37)]),_:1},8,["effect","disabled"])):Y("",!0),n(o)?Y("",!0):(c(),D(vt,{key:1,extraIcon:s.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:b(()=>[(c(!0),M(we,null,$e(s.item.children,x=>(c(),D(z,{key:x.path,"is-nest":!0,item:x,"base-path":E(x.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),nl={class:"collapse-container"},ol=oe({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=R(!1),{tooltipEffect:u}=ze(),s=q(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:h}=it(),r=q(()=>{var m;return(m=h.layout)==null?void 0:m.themeColor}),g=e,f=()=>{g("toggleClick")};return(m,i)=>{const v=V("IconifyIconOffline"),y=V("el-tooltip");return c(),M("div",nl,[d(y,{placement:"right",visible:a.value,effect:n(u),content:o.isActive?"点击折叠":"点击展开"},{default:b(()=>[d(v,{icon:n(an),class:re([s.value,r.value==="light"?"":"text-primary"]),style:ne({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:f,onMouseenter:i[0]||(i[0]=w=>a.value=!0),onMouseleave:i[1]||(i[1]=w=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}}),al=pe(ol,[["__scopeId","data-v-57c78e02"]]),sl=oe({__name:"vertical",setup(t){var w,A;const e=wt(),o=R((A=(w=Je().getItem(`${Ye()}configure`))==null?void 0:w.showLogo)!=null?A:!0),{device:a,pureApp:u,isCollapse:s,tooltipEffect:h,menuSelect:r,toggleSideBar:g}=ze(),f=R([]),m=q(()=>u.layout==="mix"&&a.value!=="mobile"?f.value:Ce().wholeMenus),i=q(()=>u.layout==="mix"?!1:m.value.length===0),v=q(()=>{var k;return Fe((k=e.meta)==null?void 0:k.activePath)?e.path:e.meta.activePath});function y(){let k="";k=v.value,f.value=[];const P=bt(k,Ce().wholeMenus),L=lt(P[0]||k,Ce().wholeMenus);L!=null&&L.children&&(f.value=L==null?void 0:L.children)}return je(()=>[e.path,Ce().wholeMenus],()=>{e.path.includes("/redirect")||(y(),r(e.path))}),Pe(()=>{y(),xe.on("logoChange",k=>{o.value=k})}),xt(()=>{xe.off("logoChange")}),(k,P)=>{const L=V("el-menu"),E=V("el-scrollbar"),I=ot("loading");return le((c(),M("div",{class:re(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(c(),D(js,{key:0,collapse:n(s)},null,8,["collapse"])):Y("",!0),d(E,{"wrap-class":"scrollbar-wrapper",class:re([n(a)==="mobile"?"mobile":"pc"])},{default:b(()=>[d(L,{router:"","unique-opened":"",mode:"vertical","popper-class":"pure-scrollbar",class:"outer-most select-none",collapse:n(s),"collapse-transition":!1,"popper-effect":n(h),"default-active":v.value},{default:b(()=>[(c(!0),M(we,null,$e(m.value,H=>(c(),D(dn,{key:H.path,item:H,"base-path":H.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","popper-effect","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(c(),D(al,{key:1,"is-active":n(u).sidebar.opened,onToggleClick:n(g)},null,8,["is-active","onToggleClick"])):Y("",!0)],2)),[[I,i.value]])}}}),ll=pe(sl,[["__scopeId","data-v-3752e90e"]]),rl={class:"horizontal-header"},il=["src"],cl={class:"horizontal-header-right"},ul={class:"check-zh"},dl={class:"check-en"},hl={class:"el-dropdown-link navbar-bg-hover"},fl=["src"],pl={key:0,class:"dark:text-white"},ml=["title"],vl=oe({__name:"horizontal",setup(t){const e=R(),{t:o,route:a,locale:u,translationCh:s,translationEn:h}=$t(e),{title:r,logout:g,backTopMenu:f,onPanel:m,getLogo:i,username:v,userAvatar:y,avatarsStyle:w,getDropdownItemStyle:A,getDropdownItemClass:k}=ze(),P=q(()=>{var L;return Fe((L=a.meta)==null?void 0:L.activePath)?a.path:a.meta.activePath});return De(()=>{var L;(L=e.value)==null||L.handleResize()}),(L,E)=>{const I=V("el-menu"),H=V("IconifyIconOffline"),B=V("el-dropdown-item"),O=V("el-dropdown-menu"),z=V("el-dropdown"),K=ot("loading");return le((c(),M("div",rl,[_("div",{class:"horizontal-header-left",onClick:E[0]||(E[0]=(...x)=>n(f)&&n(f)(...x))},[_("img",{src:n(i)(),alt:"logo"},null,8,il),_("span",null,ee(n(r)),1)]),d(I,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal","popper-class":"pure-scrollbar",class:"horizontal-header-menu","default-active":P.value},{default:b(()=>[(c(!0),M(we,null,$e(n(Ce)().wholeMenus,x=>(c(),D(dn,{key:x.path,item:x,"base-path":x.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),_("div",cl,[d(Tt,{id:"header-search"}),d(Vt,{id:"header-notice"}),d(z,{id:"header-translation",trigger:"click"},{dropdown:b(()=>[d(O,{class:"translation"},{default:b(()=>[d(B,{style:ne(n(A)(n(u),"zh")),class:re(["dark:!text-white",n(k)(n(u),"zh")]),onClick:n(s)},{default:b(()=>[le(_("span",ul,[d(H,{icon:n(Ue)},null,8,["icon"])],512),[[ke,n(u)==="zh"]]),fe(" 简体中文 ")]),_:1},8,["style","class","onClick"]),d(B,{style:ne(n(A)(n(u),"en")),class:re(["dark:!text-white",n(k)(n(u),"en")]),onClick:n(h)},{default:b(()=>[le(_("span",dl,[d(H,{icon:n(Ue)},null,8,["icon"])],512),[[ke,n(u)==="en"]]),fe(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:b(()=>[d(n(St),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),d(z,{trigger:"click"},{dropdown:b(()=>[d(O,{class:"logout"},{default:b(()=>[d(B,{onClick:n(g)},{default:b(()=>[d(H,{icon:n(zt),style:{margin:"5px"}},null,8,["icon"]),fe(" "+ee(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:b(()=>[_("span",hl,[_("img",{src:n(y),style:ne(n(w))},null,12,fl),n(v)?(c(),M("p",pl,ee(n(v)),1)):Y("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:E[1]||(E[1]=(...x)=>n(m)&&n(m)(...x))},[d(H,{icon:n(ct)},null,8,["icon"])],8,ml)])])),[[K,n(Ce)().wholeMenus.length===0]])}}}),_l=pe(vl,[["__scopeId","data-v-bb9dfcbc"]]),gl={key:0},yl=oe({__name:"index",setup(t){const e=R(),{isDark:o}=Yt(),{layout:a}=Pn(),u=Gt(),s=Mt(),{$storage:h}=it(),r=kt({sidebar:q(()=>qe().sidebar),device:q(()=>qe().device),fixedHeader:q(()=>s.fixedHeader),classes:q(()=>({hideSidebar:!r.sidebar.opened,openSidebar:r.sidebar.opened,withoutAnimation:r.sidebar.withoutAnimation,mobile:r.device==="mobile"})),hideTabs:q(()=>h==null?void 0:h.configure.hideTabs)});function g(v){var y,w,A,k,P,L;window.document.body.setAttribute("layout",v),h.layout={layout:`${v}`,theme:(y=h.layout)==null?void 0:y.theme,darkMode:(w=h.layout)==null?void 0:w.darkMode,sidebarStatus:(A=h.layout)==null?void 0:A.sidebarStatus,epThemeColor:(k=h.layout)==null?void 0:k.epThemeColor,themeColor:(P=h.layout)==null?void 0:P.themeColor,overallStyle:(L=h.layout)==null?void 0:L.overallStyle}}function f(v,y){qe().toggleDevice(v),qe().toggleSideBar(y,"resize")}let m=!0;gt(e,v=>{if(u)return;const y=v[0],[{inlineSize:w}]=y.borderBoxSize;w<=760?g("vertical"):g(qe().layout),w>0&&w<=760?(f("mobile",!1),m=!0):w>760&&w<=990?m&&(f("desktop",!1),m=!1):w>990&&!r.sidebar.isClickCollapse?(f("desktop",!0),m=!0):(f("desktop",!1),m=!1)}),Pe(()=>{u&&f("mobile",!1)}),Qt(()=>{var v;It().dataThemeChange((v=h.layout)==null?void 0:v.overallStyle)});const i=oe({render(){return Qe("div",{class:{"fixed-header":r.fixedHeader},style:[r.hideTabs&&a.value.includes("horizontal")?o.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!s.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?Qe(xa):null,!s.hiddenSideBar&&a.value.includes("horizontal")?Qe(_l):null,Qe(ja)]})}});return(v,y)=>{const w=V("el-backtop"),A=V("el-scrollbar");return c(),M("div",{ref_key:"appWrapperRef",ref:e,class:re(["app-wrapper",r.classes])},[le(_("div",{class:"app-mask",onClick:y[0]||(y[0]=k=>n(qe)().toggleSideBar())},null,512),[[ke,r.device==="mobile"&&r.sidebar.opened&&n(a).includes("vertical")]]),le(d(ll,null,null,512),[[ke,!n(s).hiddenSideBar&&(n(a).includes("vertical")||n(a).includes("mix"))]]),_("div",{class:re(["main-container",n(s).hiddenSideBar?"main-hidden":""])},[r.fixedHeader?(c(),M("div",gl,[d(n(i)),d(Nt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])])):(c(),D(A,{key:1},{default:b(()=>[d(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:b(()=>[d(n(en))]),_:1}),d(n(i)),d(Nt,{"fixed-header":r.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),d(Es)],2)}}}),Zl=pe(yl,[["__scopeId","data-v-e1cc1ddb"]]);export{Zl as default};