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