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