12345678910 |
- import{d as gt,g as De,s as yt,o as d,c as F,a as p,b as J,u as bt,e as U,F as re,r as de,n as W,f as n,h as D,i as me,t as R,j as i,_ as te,k as C,l as K,m as Re,p as q,q as wt,v as kt,w as ue,x as Ce,y as Te,z as He,A as _,B as Me,C as Ct,D as ae,E as H,G as Ie,H as Ue,I as ve,J as ee,K as ie,L as ce,M as qe,N as ze,O as at,P as Be,Q as xt,T as Et,R as tt,S as Ge,U as Ae,V as lt,W as nt,X as Ft,Y as we,Z as St,$ as it,a0 as rt,a1 as We,a2 as $t,a3 as ut,a4 as be,a5 as Dt,a6 as ct,a7 as It,a8 as Bt,a9 as At,aa as zt,ab as Tt,ac as Mt}from"./index.4d3e3847.js";import{u as Ke,a as Ot,t as jt,b as Vt}from"./useDataThemeChange.7eceaded.js";import{u as Pt,a as _e,b as fe}from"./useNav.afbe69e0.js";import{u as Je}from"./hooks.428ba1c3.js";import{d as Lt,c as Ht}from"./index.0b460150.js";import{a as ke}from"./avatars.000f50cc.js";const Nt=gt({id:"pure-setting",state:()=>({title:De().Title,fixedHeader:De().FixedHeader,hiddenSideBar:De().HiddenSideBar}),getters:{getTitle(){return this.title},getFixedHeader(){return this.fixedHeader},getHiddenSideBar(){return this.HiddenSideBar}},actions:{CHANGE_SETTING({key:t,value:e}){this.hasOwnProperty(t)&&(this[t]=e)},changeSetting(t){this.CHANGE_SETTING(t)}}});function Rt(){return Nt(yt)}const Ut={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--ant-design",width:"20",height:"20",viewBox:"0 0 1024 1024"},qt=p("path",{fill:"currentColor",d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"},null,-1),Gt=[qt];function Wt(t,e){return d(),F("svg",Ut,Gt)}const dt={render:Wt},Kt={class:"result"},Jt=["onMouseenter"],Zt={class:"result-item-title"},Xt=J({__name:"SearchResult",props:{value:null,options:null},emits:["update:value","enter"],setup(t,{emit:e}){const o=t,{t:s}=bt(),r=U(()=>h=>({background:(h==null?void 0:h.path)===l.value?Pt().epThemeColor:"",color:h.path===l.value?"#fff":"",fontSize:h.path===l.value?"16px":"14px"})),l=U({get(){return o.value},set(h){e("update:value",h)}});async function u(h){l.value=h.path}function x(){e("enter")}return(h,v)=>(d(),F("div",Kt,[(d(!0),F(re,null,de(t.options,m=>{var g,f,S;return d(),F("div",{key:m.path,class:"result-item dark:bg-[#1d1d1d]",style:W(n(r)(m)),onClick:x,onMouseenter:z=>u(m)},[(d(),D(me(n(Je)((f=(g=m.meta)==null?void 0:g.icon)!=null?f:"bookmark-2-line")))),p("span",Zt,R(n(s)((S=m.meta)==null?void 0:S.title)),1),i(n(dt))],44,Jt)}),128))]))}});const Yt=te(Xt,[["__scopeId","data-v-cb730eae"]]),Qt={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"iconify iconify--mdi",width:"20",height:"20",viewBox:"0 0 24 24"},en=p("path",{fill:"currentColor",d:"M1 7h6v2H3v2h4v2H3v2h4v2H1V7m10 0h4v2h-4v2h2a2 2 0 0 1 2 2v2c0 1.11-.89 2-2 2H9v-2h4v-2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2m8 0h2a2 2 0 0 1 2 2v1h-2V9h-2v6h2v-1h2v1c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2V9c0-1.1.9-2 2-2Z"},null,-1),tn=[en];function nn(t,e){return d(),F("svg",Qt,tn)}const on={render:nn},sn={class:"search-footer text-[#333] dark:text-white"},an={class:"search-footer-item"},ln={class:"search-footer-item"},rn={class:"search-footer-item"},un=J({__name:"SearchFooter",setup(t){return(e,o)=>{const s=C("IconifyIconOffline");return d(),F("div",sn,[p("span",an,[i(n(dt),{class:"icon"}),K(" \u786E\u8BA4 ")]),p("span",ln,[i(s,{icon:"arrow-up-line",class:"icon"}),i(s,{icon:"arrow-down-line",class:"icon"}),K(" \u5207\u6362 ")]),p("span",rn,[i(n(on),{class:"icon"}),K(" \u5173\u95ED ")])])}}});const cn=te(un,[["__scopeId","data-v-1102314b"]]),dn={class:"el-input__icon"},pn={class:"search-result-container"},fn=J({__name:"SearchModal",props:{value:{type:Boolean}},emits:["update:value"],setup(t,{emit:e}){const o=t,{device:s}=_e(),r=Re(),l=q(""),u=q(""),x=q(null),h=wt([]),v=Ct(S,300),m=U(()=>kt(ue().menusTree)),g=U({get(){return o.value},set(y){e("update:value",y)}});Ce(g,async y=>{var I;y&&(await Te(),(I=x.value)==null||I.focus())});function f(y){const I=[];function O(A){A.forEach(j=>{I.push(j),j.children&&O(j.children)})}return O(y),I}function S(){var I;const y=f(m.value);h.value=y.filter(O=>{var A;return l.value&&ae((A=O.meta)==null?void 0:A.title).toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim())}),((I=h.value)==null?void 0:I.length)>0?u.value=h.value[0].path:u.value=""}function z(){g.value=!1,setTimeout(()=>{h.value=[],l.value=""},200)}function B(){const{length:y}=h.value;if(y===0)return;const I=h.value.findIndex(O=>O.path===u.value);I===0?u.value=h.value[y-1].path:u.value=h.value[I-1].path}function E(){const{length:y}=h.value;if(y===0)return;const I=h.value.findIndex(O=>O.path===u.value);I+1===y?u.value=h.value[0].path:u.value=h.value[I+1].path}function M(){const{length:y}=h.value;y===0||u.value===""||(r.push(u.value),z())}return He("Enter",M),He("ArrowUp",B),He("ArrowDown",E),(y,I)=>{const O=C("IconifyIconOffline"),A=C("el-input"),j=C("el-empty"),L=C("el-dialog");return d(),D(L,{top:"5vh",width:n(s)==="mobile"?"80vw":"50vw",modelValue:n(g),"onUpdate:modelValue":I[2]||(I[2]=G=>Me(g)?g.value=G:null),"before-close":z},{footer:_(()=>[i(cn)]),default:_(()=>[i(A,{ref_key:"inputRef",ref:x,modelValue:l.value,"onUpdate:modelValue":I[0]||(I[0]=G=>l.value=G),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",onInput:n(v)},{prefix:_(()=>[p("span",dn,[i(O,{icon:"search"})])]),_:1},8,["modelValue","onInput"]),p("div",pn,[n(h).length===0?(d(),D(j,{key:0,description:"\u6682\u65E0\u641C\u7D22\u7ED3\u679C"})):(d(),D(Yt,{key:1,value:u.value,"onUpdate:value":I[1]||(I[1]=G=>u.value=G),options:n(h),onClick:M},null,8,["value","options"]))])]),_:1},8,["width","modelValue"])}}});const _n=te(fn,[["__scopeId","data-v-a2ac271f"]]);function hn(t=!1){const e=q(t);function o(u){e.value=u}function s(){o(!0)}function r(){o(!1)}function l(){o(!e.value)}return{bool:e,setBool:o,setTrue:s,setFalse:r,toggle:l}}const Ze=J({__name:"index",setup(t){const{bool:e,toggle:o}=hn();function s(){o()}return(r,l)=>{const u=C("IconifyIconOffline");return d(),F(re,null,[p("div",{class:"search-container w-[40px] h-[48px] flex-c cursor-pointer navbar-bg-hover",onClick:s},[i(u,{icon:"search"})]),i(n(_n),{value:n(e),"onUpdate:value":l[0]||(l[0]=x=>Me(e)?e.value=x:null)},null,8,["value"])],64)}}}),ot=[{key:"1",name:"\u901A\u77E5",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"\u4F60\u6536\u5230\u4E86 12 \u4EFD\u65B0\u5468\u62A5",datetime:"\u4E00\u5E74\u524D",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"\u4F60\u63A8\u8350\u7684 \u524D\u7AEF\u9AD8\u624B \u5DF2\u901A\u8FC7\u7B2C\u4E09\u8F6E\u9762\u8BD5",datetime:"\u4E00\u5E74\u524D",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"\u8FD9\u79CD\u6A21\u677F\u53EF\u4EE5\u533A\u5206\u591A\u79CD\u901A\u77E5\u7C7B\u578B",datetime:"\u4E00\u5E74\u524D",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"\u5C55\u793A\u6807\u9898\u5185\u5BB9\u8D85\u8FC7\u4E00\u884C\u540E\u7684\u5904\u7406\u65B9\u5F0F\uFF0C\u5982\u679C\u5185\u5BB9\u8D85\u8FC71\u884C\u5C06\u81EA\u52A8\u622A\u65AD\u5E76\u652F\u6301tooltip\u663E\u793A\u5B8C\u6574\u6807\u9898\u3002",datetime:"\u4E00\u5E74\u524D",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"\u5DE6\u4FA7\u56FE\u6807\u7528\u4E8E\u533A\u5206\u4E0D\u540C\u7684\u7C7B\u578B",datetime:"\u4E00\u5E74\u524D",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"\u5DE6\u4FA7\u56FE\u6807\u7528\u4E8E\u533A\u5206\u4E0D\u540C\u7684\u7C7B\u578B",datetime:"\u4E00\u5E74\u524D",description:"",type:"1"}]},{key:"2",name:"\u6D88\u606F",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"\u674E\u767D \u8BC4\u8BBA\u4E86\u4F60",description:"\u957F\u98CE\u7834\u6D6A\u4F1A\u6709\u65F6,\u76F4\u6302\u4E91\u5E06\u6D4E\u6CA7\u6D77",datetime:"\u4E00\u5E74\u524D",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"\u674E\u767D \u56DE\u590D\u4E86\u4F60",description:"\u884C\u8DEF\u96BE\uFF0C\u884C\u8DEF\u96BE\uFF0C\u591A\u6B67\u8DEF\uFF0C\u4ECA\u5B89\u5728\u3002",datetime:"\u4E00\u5E74\u524D",type:"2"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg",title:"\u6807\u9898",description:"\u8BF7\u5C06\u9F20\u6807\u79FB\u52A8\u5230\u6B64\u5904\uFF0C\u4EE5\u4FBF\u6D4B\u8BD5\u8D85\u957F\u7684\u6D88\u606F\u5728\u6B64\u5904\u5C06\u5982\u4F55\u5904\u7406\u3002\u672C\u4F8B\u4E2D\u8BBE\u7F6E\u7684\u63CF\u8FF0\u6700\u5927\u884C\u6570\u4E3A2\uFF0C\u8D85\u8FC72\u884C\u7684\u63CF\u8FF0\u5185\u5BB9\u5C06\u88AB\u7701\u7565\u5E76\u4E14\u53EF\u4EE5\u901A\u8FC7tooltip\u67E5\u770B\u5B8C\u6574\u5185\u5BB9",datetime:"\u4E00\u5E74\u524D",type:"2"}]},{key:"3",name:"\u4EE3\u529E",list:[{avatar:"",title:"\u4EFB\u52A1\u540D\u79F0",description:"\u4EFB\u52A1\u9700\u8981\u5728 2022-11-16 20:00 \u524D\u542F\u52A8",datetime:"",extra:"\u672A\u5F00\u59CB",status:"info",type:"3"},{avatar:"",title:"\u7B2C\u4E09\u65B9\u7D27\u6025\u4EE3\u7801\u53D8\u66F4",description:"\u4E00\u62F3\u63D0\u4EA4\u4E8E 2022-11-16\uFF0C\u9700\u5728 2022-11-18 \u524D\u5B8C\u6210\u4EE3\u7801\u53D8\u66F4\u4EFB\u52A1",datetime:"",extra:"\u9A6C\u4E0A\u5230\u671F",status:"danger",type:"3"},{avatar:"",title:"\u4FE1\u606F\u5B89\u5168\u8003\u8BD5",description:"\u6307\u6D3E\u5C0F\u4ED9\u4E8E 2022-12-12 \u524D\u5B8C\u6210\u66F4\u65B0\u5E76\u53D1\u5E03",datetime:"",extra:"\u5DF2\u8017\u65F6 8 \u5929",status:"warning",type:"3"},{avatar:"",title:"vue-pure-admin \u7248\u672C\u53D1\u5E03",description:"vue-pure-admin \u7248\u672C\u53D1\u5E03",datetime:"",extra:"\u8FDB\u884C\u4E2D",type:"3"}]}],mn={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},vn={class:"notice-container-text"},gn={class:"notice-text-title text-[#000000d9] dark:text-white"},yn={class:"notice-text-datetime text-[#00000073] dark:text-white"},bn=J({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(t){const e=t,o=q(null),s=q(!1),r=q(null),l=q(!1);function u(){Te(()=>{var h,v;((h=o.value)==null?void 0:h.scrollWidth)>((v=o.value)==null?void 0:v.clientWidth)?s.value=!0:s.value=!1})}function x(h,v){let m=document.createElement("span");m.innerText=v,m.className="getDescriptionWidth",document.querySelector("body").appendChild(m);let g=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const f=h.target.offsetWidth;g>2*f?l.value=!0:l.value=!1}return(h,v)=>{var S,z;const m=C("el-avatar"),g=C("el-tooltip"),f=C("el-tag");return d(),F("div",mn,[e.noticeItem.avatar?(d(),D(m,{key:0,size:30,src:e.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):H("",!0),p("div",vn,[p("div",gn,[i(g,{"popper-class":"notice-title-popper",disabled:!s.value,content:e.noticeItem.title,placement:"top-start"},{default:_(()=>[p("div",{ref_key:"titleRef",ref:o,class:"notice-title-content",onMouseover:u},R(e.noticeItem.title),545)]),_:1},8,["disabled","content"]),(S=e.noticeItem)!=null&&S.extra?(d(),D(f,{key:0,type:(z=e.noticeItem)==null?void 0:z.status,size:"small",class:"notice-title-extra"},{default:_(()=>{var B;return[K(R((B=e.noticeItem)==null?void 0:B.extra),1)]}),_:1},8,["type"])):H("",!0)]),i(g,{"popper-class":"notice-title-popper",disabled:!l.value,content:e.noticeItem.description,placement:"top-start"},{default:_(()=>[p("div",{ref_key:"descriptionRef",ref:r,class:"notice-text-description",onMouseover:v[0]||(v[0]=B=>x(B,e.noticeItem.description))},R(e.noticeItem.description),545)]),_:1},8,["disabled","content"]),p("div",yn,R(e.noticeItem.datetime),1)])])}}});const wn=te(bn,[["__scopeId","data-v-add9acad"]]),kn={key:0},Cn=J({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(t){const e=t;return(o,s)=>{const r=C("el-empty");return e.list.length?(d(),F("div",kn,[(d(!0),F(re,null,de(e.list,(l,u)=>(d(),D(wn,{noticeItem:l,key:u},null,8,["noticeItem"]))),128))])):(d(),D(r,{key:1,description:"\u6682\u65E0\u6570\u636E"}))}}}),xn={class:"dropdown-badge navbar-bg-hover select-none"},En={class:"header-notice-icon"},Fn={class:"noticeList-container"},Sn=J({__name:"index",setup(t){const e=Ie("dropdownDom",null),o=q(ot[0].name),s=q(ot);let r=q(0);s.value.forEach(u=>{r.value+=u.list.length});function l(){e.value.handleOpen()}return(u,x)=>{const h=C("IconifyIconOffline"),v=C("el-badge"),m=C("el-scrollbar"),g=C("el-dropdown-menu"),f=C("el-dropdown");return d(),D(f,{ref_key:"dropdownDom",ref:e,trigger:"click",placement:"bottom-end"},{dropdown:_(()=>[i(g,null,{default:_(()=>[i(n(Lt),{centered:"",class:"dropdown-tabs",activeName:o.value,"onUpdate:activeName":x[0]||(x[0]=S=>o.value=S),onTabClick:l},{default:_(()=>[(d(!0),F(re,null,de(s.value,S=>(d(),D(n(Ht),{key:S.key,tab:`${S.name}(${S.list.length})`},{default:_(()=>[i(m,{"max-height":"330px"},{default:_(()=>[p("div",Fn,[i(Cn,{list:S.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["tab"]))),128))]),_:1},8,["activeName"])]),_:1})]),default:_(()=>[p("span",xn,[i(v,{value:n(r),max:99},{default:_(()=>[p("span",En,[i(h,{icon:"bell"})])]),_:1},8,["value"])])]),_:1},512)}}});const Xe=te(Sn,[["__scopeId","data-v-a519a3cd"]]),$n={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",class:"globalization",width:"1em",height:"1em",viewBox:"0 0 512 512"},Dn=p("path",{d:"m478.33 433.6-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362 368 281.65 401.17 362zM267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73 39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93.92 1.19 1.83 2.35 2.74 3.51-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59 22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z",fill:"currentColor"},null,-1),In=[Dn];function Bn(t,e){return d(),F("svg",$n,In)}const Ye={render:Bn},An={key:0,class:"horizontal-header"},zn={class:"select-none"},Tn={class:"horizontal-header-right"},Mn={class:"check-zh"},On={class:"check-en"},jn={class:"el-dropdown-link navbar-bg-hover"},Vn=["src"],Pn={key:1,class:"dark:text-white"},Ln=["title"],Hn=J({__name:"mixNav",setup(t){const e=q();let o=q(null);const{t:s,route:r,locale:l,translationCh:u,translationEn:x}=Ke(e),{device:h,routers:v,logout:m,onPanel:g,menuSelect:f,resolvePath:S,username:z,avatarsStyle:B,getDropdownItemStyle:E,getDropdownItemClass:M}=_e();function y(I){var j,L;const O=ue().wholeMenus,A=qe(I,O)[0];o.value=(L=(j=ze(A,O))==null?void 0:j.children[0])==null?void 0:L.path}return Ue(()=>{y(r.path)}),Ce(()=>r.path,()=>{y(r.path)}),(I,O)=>{const A=C("FontIcon"),j=C("el-menu-item"),L=C("el-menu"),G=C("IconifyIconOffline"),N=C("el-dropdown-item"),ne=C("el-dropdown-menu"),ge=C("el-dropdown");return n(h)!=="mobile"?(d(),F("div",An,[i(L,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":n(o),onSelect:O[0]||(O[0]=Z=>n(f)(Z,n(v)))},{default:_(()=>[(d(!0),F(re,null,de(n(ue)().wholeMenus,Z=>(d(),D(j,{key:Z.path,index:n(S)(Z)||Z.redirect},{title:_(()=>[ve(Z.meta.icon)?(d(),F("div",{key:0,class:ee(["sub-menu-icon",Z.meta.icon])},[(d(),D(me(n(Je)(Z.meta&&ve(Z.meta.icon)))))],2)):H("",!0),p("span",zn,R(n(ae)(Z.meta.title)),1),Z.meta.extraIcon?(d(),D(A,{key:1,width:"30px",height:"30px",style:{position:"absolute",right:"10px"},icon:Z.meta.extraIcon.name,svg:!!Z.meta.extraIcon.svg},null,8,["icon","svg"])):H("",!0)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),p("div",Tn,[i(Ze),i(Xe,{id:"header-notice"}),i(ge,{id:"header-translation",trigger:"click"},{dropdown:_(()=>[i(ne,{class:"translation"},{default:_(()=>[i(N,{style:W(n(E)(n(l),"zh")),class:ee(["dark:!text-white",n(M)(n(l),"zh")]),onClick:n(u)},{default:_(()=>[ie(p("span",Mn,[i(G,{icon:"check"})],512),[[ce,n(l)==="zh"]]),K(" \u7B80\u4F53\u4E2D\u6587 ")]),_:1},8,["style","class","onClick"]),i(N,{style:W(n(E)(n(l),"en")),class:ee(["dark:!text-white",n(M)(n(l),"en")]),onClick:n(x)},{default:_(()=>[ie(p("span",On,[i(G,{icon:"check"})],512),[[ce,n(l)==="en"]]),K(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:_(()=>[i(n(Ye),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(ge,{trigger:"click"},{dropdown:_(()=>[i(ne,{class:"logout"},{default:_(()=>[i(N,{onClick:n(m)},{default:_(()=>[i(G,{icon:"logout-circle-r-line",style:{margin:"5px"}}),K(" "+R(n(s)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:_(()=>[p("span",jn,[n(ke)?(d(),F("img",{key:0,src:n(ke),style:W(n(B))},null,12,Vn)):H("",!0),n(z)?(d(),F("p",Pn,R(n(z)),1)):H("",!0)])]),_:1}),p("span",{class:"set-icon navbar-bg-hover",title:n(s)("buttons.hssystemSet"),onClick:O[1]||(O[1]=(...Z)=>n(g)&&n(g)(...Z))},[i(G,{icon:"setting"})],8,Ln)])])):H("",!0)}}});const Nn=te(Hn,[["__scopeId","data-v-0d22213f"]]),Rn=["onClick"],Un=J({__name:"breadCrumb",setup(t){const e=at(),o=q([]),s=Re(),r=s.options.routes,l=Be().multiTags,u=v=>{const m=v&&v.name;return m?m.trim().toLocaleLowerCase()==="Welcome".toLocaleLowerCase():!1},x=()=>{let v;Object.keys(e.query).length>0?l.forEach(f=>{tt(e.query,f==null?void 0:f.query)&&(v=ve(f))}):Object.keys(e.params).length>0?l.forEach(f=>{tt(e.params,f==null?void 0:f.params)&&(v=ve(f))}):v=ze(s.currentRoute.value.path,l);const m=qe(s.currentRoute.value.path,r);let g=[];m.forEach(f=>{f!=="/"&&g.push(ze(f,r))}),(v==null?void 0:v.path)!=="/welcome"&&g.push(v),u(g[0])||(g=[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome"}}].concat(g)),g.forEach((f,S)=>{(v==null?void 0:v.query)||(v==null?void 0:v.params)||f!=null&&f.children&&f.children.forEach(z=>{var B,E;((B=z==null?void 0:z.meta)==null?void 0:B.title)===((E=f==null?void 0:f.meta)==null?void 0:E.title)&&g.splice(S,1)})}),o.value=g.filter(f=>(f==null?void 0:f.meta)&&(f==null?void 0:f.meta.title)!==!1)},h=v=>{const{redirect:m,path:g}=v;m?s.push(m):s.push(g)};return Ue(()=>{x()}),Ce(()=>e.path,()=>{x()}),(v,m)=>{const g=C("el-breadcrumb-item"),f=C("el-breadcrumb");return d(),D(f,{class:"!leading-[50px] select-none",separator:"/"},{default:_(()=>[i(Et,{appear:"",name:"breadcrumb"},{default:_(()=>[(d(!0),F(re,null,de(o.value,S=>(d(),D(g,{key:S.path},{default:_(()=>[p("a",{onClick:xt(z=>h(S),["prevent"])},R(n(ae)(S.meta.title)),9,Rn)]),_:2},1024))),128))]),_:1})]),_:1})}}}),qn=["title"],Gn=J({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,s=()=>{e("toggleClick")};return(r,l)=>{const u=C("IconifyIconOffline");return d(),F("div",{class:"px-3 mr-1 navbar-bg-hover",title:o.isActive?"\u70B9\u51FB\u6298\u53E0":"\u70B9\u51FB\u5C55\u5F00",onClick:s},[i(u,{icon:o.isActive?"menu-fold":"menu-unfold",class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,qn)}}}),Wn={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},Kn={key:3,class:"vertical-header-right"},Jn={class:"check-en"},Zn={class:"el-dropdown-link navbar-bg-hover"},Xn=["src"],Yn={key:1,class:"dark:text-white"},Qn=["title"],eo=J({__name:"navbar",setup(t){const{layout:e,device:o,logout:s,onPanel:r,pureApp:l,username:u,avatarsStyle:x,toggleSideBar:h,getDropdownItemStyle:v,getDropdownItemClass:m}=_e(),{t:g,locale:f,translationCh:S,translationEn:z}=Ke();return(B,E)=>{const M=C("IconifyIconOffline"),y=C("el-dropdown-item"),I=C("el-dropdown-menu"),O=C("el-dropdown");return d(),F("div",Wn,[n(o)==="mobile"?(d(),D(Gn,{key:0,class:"hamburger-container","is-active":n(l).sidebar.opened,onToggleClick:n(h)},null,8,["is-active","onToggleClick"])):H("",!0),n(e)!=="mix"&&n(o)!=="mobile"?(d(),D(Un,{key:1,class:"breadcrumb-container"})):H("",!0),n(e)==="mix"?(d(),D(Nn,{key:2})):H("",!0),n(e)==="vertical"?(d(),F("div",Kn,[i(Ze),i(Xe,{id:"header-notice"}),i(O,{id:"header-translation",trigger:"click"},{dropdown:_(()=>[i(I,{class:"translation"},{default:_(()=>[i(y,{style:W(n(v)(n(f),"zh")),class:ee(["dark:!text-white",n(m)(n(f),"zh")]),onClick:n(S)},{default:_(()=>[ie(i(M,{class:"check-zh",icon:"check"},null,512),[[ce,n(f)==="zh"]]),K(" \u7B80\u4F53\u4E2D\u6587 ")]),_:1},8,["style","class","onClick"]),i(y,{style:W(n(v)(n(f),"en")),class:ee(["dark:!text-white",n(m)(n(f),"en")]),onClick:n(z)},{default:_(()=>[ie(p("span",Jn,[i(M,{icon:"check"})],512),[[ce,n(f)==="en"]]),K(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:_(()=>[i(n(Ye),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(O,{trigger:"click"},{dropdown:_(()=>[i(I,{class:"logout"},{default:_(()=>[i(y,{onClick:n(s)},{default:_(()=>[i(M,{icon:"logout-circle-r-line",style:{margin:"5px"}}),K(" "+R(n(g)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:_(()=>[p("span",Zn,[n(ke)?(d(),F("img",{key:0,src:n(ke),style:W(n(x))},null,12,Xn)):H("",!0),n(u)?(d(),F("p",Yn,R(n(u)),1)):H("",!0)])]),_:1}),p("span",{class:"set-icon navbar-bg-hover",title:n(g)("buttons.hssystemSet"),onClick:E[0]||(E[0]=(...A)=>n(r)&&n(r)(...A))},[i(M,{icon:"setting"})],8,Qn)])):H("",!0)])}}});const to=te(eo,[["__scopeId","data-v-e29a56c9"]]),no={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},oo=p("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),so=p("path",{d:"M2.88 18.054a35.897 35.897 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0c.166.18.304.332.413.455a35.897 35.897 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44.019 44.019 0 0 1-6.584-.874zm6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42.137 42.137 0 0 0 4.227-.454A33.913 33.913 0 0 0 12 4.09a33.913 33.913 0 0 0-6.649 12.387c1.395.222 2.805.374 4.227.454zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"},null,-1),ao=[oo,so];function lo(t,e){return d(),F("svg",no,ao)}const pt={render:lo},io={key:1},ro=J({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:s}=Ge(),r=U(()=>s==null?void 0:s.KeepAlive),l=U(()=>m=>m.meta.transition),u=U(()=>o==null?void 0:o.configure.hideTabs),x=U(()=>(o==null?void 0:o.layout.layout)==="vertical"),h=U(()=>[u.value&&x?"padding-top: 48px;":"",!u.value&&x?"padding-top: 85px;":"",u.value&&!x.value?"padding-top: 48px":"",!u.value&&!x.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),v=J({render(){return Ae(lt,{name:l.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":l.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:l.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:l.value(this.route)&&`animate__animated ${this.route.meta.transition.leaveTransition}`,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})},props:{route:{type:void 0,required:!0}}});return(m,g)=>{const f=C("el-backtop"),S=C("el-scrollbar"),z=C("router-view");return d(),F("section",{class:ee([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:W(n(h))},[i(z,null,{default:_(({Component:B,route:E})=>[e.fixedHeader?(d(),D(S,{key:0},{default:_(()=>[i(f,{title:"\u56DE\u5230\u9876\u90E8",target:".app-main .el-scrollbar__wrap"},{default:_(()=>[i(n(pt))]),_:1}),i(n(v),{route:E},{default:_(()=>[p("div",null,[n(r)?(d(),D(nt,{key:0,include:n(ue)().cachePageList},[(d(),D(me(B),{key:E.fullPath,class:"main-content"}))],1032,["include"])):(d(),D(me(B),{key:E.fullPath,class:"main-content"}))])]),_:2},1032,["route"])]),_:2},1024)):(d(),F("div",io,[i(n(v),{route:E},{default:_(()=>[p("div",null,[n(r)?(d(),D(nt,{key:0,include:n(ue)().cachePageList},[(d(),D(me(B),{key:E.fullPath,class:"main-content"}))],1032,["include"])):(d(),D(me(B),{key:E.fullPath,class:"main-content"}))])]),_:2},1032,["route"])]))]),_:1})],6)}}});const st=te(ro,[["__scopeId","data-v-60950824"]]),Qe=t=>(it("data-v-3beb0381"),t=t(),rt(),t),uo=Qe(()=>p("div",{class:"right-panel-background"},null,-1)),co={class:"right-panel-items"},po={class:"project-configuration"},fo=Qe(()=>p("h3",{class:"dark:text-white"},"\u9879\u76EE\u914D\u7F6E",-1)),_o={title:"\u5173\u95ED\u914D\u7F6E"},ho=Qe(()=>p("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),mo=J({__name:"index",setup(t){let e=q(!1);const o=q(null);return Ft(o,s=>{s.clientX>o.value.offsetLeft||(e.value=!1)}),we.on("openPanel",()=>{e.value=!0}),(s,r)=>{const l=C("IconifyIconOffline");return d(),F("div",{class:ee([{show:n(e)},"right-panel-container"])},[uo,p("div",{ref_key:"target",ref:o,class:"right-panel bg-bg_color"},[p("div",co,[p("div",po,[fo,p("span",_o,[i(l,{class:"dark:text-white",icon:"close",onClick:r[0]||(r[0]=u=>Me(e)?e.value=!n(e):e=!n(e))})])]),ho,St(s.$slots,"default",{},void 0,!0)])],512)],2)}}});const vo=te(mo,[["__scopeId","data-v-3beb0381"]]),go={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16"},yo=p("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),bo=p("path",{d:"M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12zM11 1h2v3h-2V1zm0 19h2v3h-2v-3zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05 3.515 4.93zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414-2.121-2.121zm2.121-14.85 1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414 2.121-2.121zM23 11v2h-3v-2h3zM4 11v2H1v-2h3z"},null,-1),wo=[yo,bo];function ko(t,e){return d(),F("svg",go,wo)}const Co={render:ko},xo={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16"},Eo=p("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Fo=p("path",{d:"M11.38 2.019a7.5 7.5 0 1 0 10.6 10.6C21.662 17.854 17.316 22 12.001 22 6.477 22 2 17.523 2 12c0-5.315 4.146-9.661 9.38-9.981z"},null,-1),So=[Eo,Fo];function $o(t,e){return d(),F("svg",xo,So)}const Do={render:$o},oe=t=>(it("data-v-52d6c844"),t=t(),rt(),t),Io={class:"pure-theme"},Bo=oe(()=>p("div",null,null,-1)),Ao=oe(()=>p("div",null,null,-1)),zo=[Bo,Ao],To=oe(()=>p("div",null,null,-1)),Mo=oe(()=>p("div",null,null,-1)),Oo=[To,Mo],jo=oe(()=>p("div",null,null,-1)),Vo=oe(()=>p("div",null,null,-1)),Po=[jo,Vo],Lo={class:"theme-color"},Ho=["onClick"],No={class:"setting"},Ro=oe(()=>p("span",{class:"dark:text-white"},"\u7070\u8272\u6A21\u5F0F",-1)),Uo=oe(()=>p("span",{class:"dark:text-white"},"\u8272\u5F31\u6A21\u5F0F",-1)),qo=oe(()=>p("span",{class:"dark:text-white"},"\u9690\u85CF\u6807\u7B7E\u9875",-1)),Go=oe(()=>p("span",{class:"dark:text-white"},"\u4FA7\u8FB9\u680FLogo",-1)),Wo=oe(()=>p("span",{class:"dark:text-white"},"\u6807\u7B7E\u9875\u6301\u4E45\u5316",-1)),Ko=oe(()=>p("span",{class:"dark:text-white"},"\u6807\u7B7E\u98CE\u683C",-1)),Jo=J({__name:"index",setup(t){var a,c,b,P;const e=Re(),{device:o}=_e(),{isDark:s}=We(),{isSelect:r}=$t(),{$storage:l}=Ge(),u=Ie("mixRef",null),x=Ie("verticalRef",null),h=Ie("horizontalRef",null),{body:v,dataTheme:m,layoutTheme:g,themeColors:f,dataThemeChange:S,setEpThemeColor:z,setLayoutThemeColor:B}=Ot();if(n(g)){let w=n(g).layout,k=n(g).theme;jt({scopeName:`layout-theme-${k}`}),he(w)}const E=q((c=(a=l.configure)==null?void 0:a.showModel)!=null?c:"smart"),M=q((P=(b=l.configure)==null?void 0:b.showLogo)!=null?P:!0),y=ut({greyVal:l.configure.grey,weakVal:l.configure.weak,tabsVal:l.configure.hideTabs,showLogo:l.configure.showLogo,showModel:l.configure.showModel,multiTagsCache:l.configure.multiTagsCache}),I=U(()=>w=>({background:w})),O=U(()=>w=>!(w==="light"&&s.value));function A(w,k){const $=l.configure;$[w]=k,l.configure=$}function j(w,k,$){const T=$||document.body;let{className:V}=T;V=V.replace(k,"").trim(),T.className=w?`${V} ${k} `:V}const L=w=>{j(y.greyVal,"html-grey",document.querySelector("html")),A("grey",w)},G=w=>{j(y.weakVal,"html-weakness",document.querySelector("html")),A("weak",w)},N=()=>{let w=y.tabsVal;A("hideTabs",w),we.emit("tagViewsChange",w)},ne=()=>{let w=y.multiTagsCache;A("multiTagsCache",w),Be().multiTagsCacheChange(w)};function ge(){e.push("/login");const{Grey:w,Weak:k,MultiTagsCache:$,EpThemeColor:T,Layout:V}=De();fe().setLayout(V),z(T),Be().multiTagsCacheChange($),j(w,"html-grey",document.querySelector("html")),j(k,"html-weakness",document.querySelector("html")),Be().handleTags("equal",[...Dt]),ct.clear(),It.clear(),Bt()}function Z(w){A("showModel",w),we.emit("tagViewsShowModel",w)}function xe(){n(M)?A("showLogo",!0):A("showLogo",!1),we.emit("logoChange",n(M))}function pe(w){w.forEach(k=>{j(!1,r,n(k))})}Ce(l,({layout:w})=>{switch(v.style.setProperty("--w-e-toolbar-active-color",w.epThemeColor),w.layout){case"vertical":j(!0,r,n(x)),be(pe([h]),50),be(pe([u]),50);break;case"horizontal":j(!0,r,n(h)),be(pe([x]),50),be(pe([u]),50);break;case"mix":j(!0,r,n(u)),be(pe([x]),50),be(pe([h]),50);break}});const Pe=U(()=>w=>w===g.value.theme&&g.value.theme!=="light"?"#fff":w===g.value.theme&&g.value.theme==="light"?"#1d2b45":"transparent");function he(w){var k,$,T;g.value.layout=w,window.document.body.setAttribute("layout",w),l.layout={layout:w,theme:g.value.theme,darkMode:(k=l.layout)==null?void 0:k.darkMode,sidebarStatus:($=l.layout)==null?void 0:$.sidebarStatus,epThemeColor:(T=l.layout)==null?void 0:T.epThemeColor},fe().setLayout(w)}return Te(()=>{var w,k;y.greyVal&&((w=document.querySelector("html"))==null||w.setAttribute("class","html-grey")),y.weakVal&&((k=document.querySelector("html"))==null||k.setAttribute("class","html-weakness")),y.tabsVal&&N(),S()}),(w,k)=>{const $=C("el-divider"),T=C("el-switch"),V=C("el-tooltip"),se=C("IconifyIconOffline"),ye=C("el-icon"),$e=C("el-radio"),Ee=C("el-radio-group"),Le=C("el-button");return d(),D(vo,null,{default:_(()=>[i($,null,{default:_(()=>[K("\u4E3B\u9898")]),_:1}),i(T,{modelValue:n(m),"onUpdate:modelValue":k[0]||(k[0]=X=>Me(m)?m.value=X:null),"inline-prompt":"",class:"pure-datatheme","active-icon":n(Co),"inactive-icon":n(Do),onChange:n(S)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),i($,null,{default:_(()=>[K("\u5BFC\u822A\u680F\u6A21\u5F0F")]),_:1}),p("ul",Io,[i(V,{class:"item",content:"\u5DE6\u4FA7\u6A21\u5F0F",placement:"bottom"},{default:_(()=>[p("li",{class:ee(n(g).layout==="vertical"?w.$style.isSelect:""),ref_key:"verticalRef",ref:x,onClick:k[1]||(k[1]=X=>he("vertical"))},zo,2)]),_:1}),n(o)!=="mobile"?(d(),D(V,{key:0,class:"item",content:"\u9876\u90E8\u6A21\u5F0F",placement:"bottom"},{default:_(()=>[p("li",{class:ee(n(g).layout==="horizontal"?w.$style.isSelect:""),ref_key:"horizontalRef",ref:h,onClick:k[2]||(k[2]=X=>he("horizontal"))},Oo,2)]),_:1})):H("",!0),n(o)!=="mobile"?(d(),D(V,{key:1,class:"item",content:"\u6DF7\u5408\u6A21\u5F0F",placement:"bottom"},{default:_(()=>[p("li",{class:ee(n(g).layout==="mix"?w.$style.isSelect:""),ref_key:"mixRef",ref:u,onClick:k[3]||(k[3]=X=>he("mix"))},Po,2)]),_:1})):H("",!0)]),i($,null,{default:_(()=>[K("\u4E3B\u9898\u8272")]),_:1}),p("ul",Lo,[(d(!0),F(re,null,de(n(f),(X,vt)=>ie((d(),F("li",{key:vt,style:W(n(I)(X.color)),onClick:$s=>n(B)(X.themeColor)},[i(ye,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:n(Pe)(X.themeColor)},{default:_(()=>[i(se,{icon:"check"})]),_:2},1032,["color"])],12,Ho)),[[ce,n(O)(X.themeColor)]])),128))]),i($,null,{default:_(()=>[K("\u754C\u9762\u663E\u793A")]),_:1}),p("ul",No,[p("li",null,[Ro,i(T,{modelValue:y.greyVal,"onUpdate:modelValue":k[4]||(k[4]=X=>y.greyVal=X),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:L},null,8,["modelValue"])]),p("li",null,[Uo,i(T,{modelValue:y.weakVal,"onUpdate:modelValue":k[5]||(k[5]=X=>y.weakVal=X),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:G},null,8,["modelValue"])]),p("li",null,[qo,i(T,{modelValue:y.tabsVal,"onUpdate:modelValue":k[6]||(k[6]=X=>y.tabsVal=X),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:N},null,8,["modelValue"])]),p("li",null,[Go,i(T,{modelValue:M.value,"onUpdate:modelValue":k[7]||(k[7]=X=>M.value=X),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:xe},null,8,["modelValue"])]),p("li",null,[Wo,i(T,{modelValue:y.multiTagsCache,"onUpdate:modelValue":k[8]||(k[8]=X=>y.multiTagsCache=X),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:ne},null,8,["modelValue"])]),p("li",null,[Ko,i(Ee,{modelValue:E.value,"onUpdate:modelValue":k[9]||(k[9]=X=>E.value=X),size:"small",onChange:Z},{default:_(()=>[i($e,{label:"card"},{default:_(()=>[K("\u5361\u7247")]),_:1}),i($e,{label:"smart"},{default:_(()=>[K("\u7075\u52A8")]),_:1})]),_:1},8,["modelValue"])])]),i($),i(Le,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:ge},{default:_(()=>[i(se,{icon:"fa-sign-out",width:"15",height:"15",style:{"margin-right":"4px"}}),K(" \u6E05\u7A7A\u7F13\u5B58\u5E76\u8FD4\u56DE\u767B\u5F55\u9875 ")]),_:1})]),_:1})}}}),Zo="_isSelect_u6e2z_3",Xo={isSelect:Zo};const Yo={$style:Xo},Qo=te(Jo,[["__cssModules",Yo],["__scopeId","data-v-52d6c844"]]),es={class:"sidebar-title"},ts={class:"sidebar-title"},ns=J({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o}=_e();return(s,r)=>{const l=C("FontIcon"),u=C("router-link");return d(),F("div",{class:ee(["sidebar-logo-container",{collapse:e.collapse}])},[i(lt,{name:"sidebarLogoFade"},{default:_(()=>[e.collapse?(d(),D(u,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:"/"},{default:_(()=>[i(l,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),p("span",es,R(n(o)),1)]),_:1},8,["title"])):(d(),D(u,{key:"expand",title:n(o),class:"sidebar-logo-link",to:"/"},{default:_(()=>[i(l,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),p("span",ts,R(n(o)),1)]),_:1},8,["title"]))]),_:1})],2)}}});const os=te(ns,[["__scopeId","data-v-2e39b412"]]);var Se={exports:{}},ft={},ss=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Ne={exports:{}};typeof Object.create=="function"?Ne.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Ne.exports=function(e,o){e.super_=o;var s=function(){};s.prototype=o.prototype,e.prototype=new s,e.prototype.constructor=e};(function(t){var e=/%[sdj%]/g;t.format=function(a){if(!I(a)){for(var c=[],b=0;b<arguments.length;b++)c.push(r(arguments[b]));return c.join(" ")}for(var b=1,P=arguments,w=P.length,k=String(a).replace(e,function(T){if(T==="%%")return"%";if(b>=w)return T;switch(T){case"%s":return String(P[b++]);case"%d":return Number(P[b++]);case"%j":try{return JSON.stringify(P[b++])}catch{return"[Circular]"}default:return T}}),$=P[b];b<w;$=P[++b])E($)||!L($)?k+=" "+$:k+=" "+r($);return k},t.deprecate=function(a,c){if(A(At.process))return function(){return t.deprecate(a,c).apply(this,arguments)};if(process.noDeprecation===!0)return a;var b=!1;function P(){if(!b){if(process.throwDeprecation)throw new Error(c);process.traceDeprecation?console.trace(c):console.error(c),b=!0}return a.apply(this,arguments)}return P};var o={},s;t.debuglog=function(a){if(A(s)&&(s=process.env.NODE_DEBUG||""),a=a.toUpperCase(),!o[a])if(new RegExp("\\b"+a+"\\b","i").test(s)){var c=process.pid;o[a]=function(){var b=t.format.apply(t,arguments);console.error("%s %d: %s",a,c,b)}}else o[a]=function(){};return o[a]};function r(a,c){var b={seen:[],stylize:u};return arguments.length>=3&&(b.depth=arguments[2]),arguments.length>=4&&(b.colors=arguments[3]),B(c)?b.showHidden=c:c&&t._extend(b,c),A(b.showHidden)&&(b.showHidden=!1),A(b.depth)&&(b.depth=2),A(b.colors)&&(b.colors=!1),A(b.customInspect)&&(b.customInspect=!0),b.colors&&(b.stylize=l),h(b,a,b.depth)}t.inspect=r,r.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]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(a,c){var b=r.styles[c];return b?"\x1B["+r.colors[b][0]+"m"+a+"\x1B["+r.colors[b][1]+"m":a}function u(a,c){return a}function x(a){var c={};return a.forEach(function(b,P){c[b]=!0}),c}function h(a,c,b){if(a.customInspect&&c&&ne(c.inspect)&&c.inspect!==t.inspect&&!(c.constructor&&c.constructor.prototype===c)){var P=c.inspect(b,a);return I(P)||(P=h(a,P,b)),P}var w=v(a,c);if(w)return w;var k=Object.keys(c),$=x(k);if(a.showHidden&&(k=Object.getOwnPropertyNames(c)),N(c)&&(k.indexOf("message")>=0||k.indexOf("description")>=0))return m(c);if(k.length===0){if(ne(c)){var T=c.name?": "+c.name:"";return a.stylize("[Function"+T+"]","special")}if(j(c))return a.stylize(RegExp.prototype.toString.call(c),"regexp");if(G(c))return a.stylize(Date.prototype.toString.call(c),"date");if(N(c))return m(c)}var V="",se=!1,ye=["{","}"];if(z(c)&&(se=!0,ye=["[","]"]),ne(c)){var $e=c.name?": "+c.name:"";V=" [Function"+$e+"]"}if(j(c)&&(V=" "+RegExp.prototype.toString.call(c)),G(c)&&(V=" "+Date.prototype.toUTCString.call(c)),N(c)&&(V=" "+m(c)),k.length===0&&(!se||c.length==0))return ye[0]+V+ye[1];if(b<0)return j(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special");a.seen.push(c);var Ee;return se?Ee=g(a,c,b,$,k):Ee=k.map(function(Le){return f(a,c,b,$,Le,se)}),a.seen.pop(),S(Ee,V,ye)}function v(a,c){if(A(c))return a.stylize("undefined","undefined");if(I(c)){var b="'"+JSON.stringify(c).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(b,"string")}if(y(c))return a.stylize(""+c,"number");if(B(c))return a.stylize(""+c,"boolean");if(E(c))return a.stylize("null","null")}function m(a){return"["+Error.prototype.toString.call(a)+"]"}function g(a,c,b,P,w){for(var k=[],$=0,T=c.length;$<T;++$)he(c,String($))?k.push(f(a,c,b,P,String($),!0)):k.push("");return w.forEach(function(V){V.match(/^\d+$/)||k.push(f(a,c,b,P,V,!0))}),k}function f(a,c,b,P,w,k){var $,T,V;if(V=Object.getOwnPropertyDescriptor(c,w)||{value:c[w]},V.get?V.set?T=a.stylize("[Getter/Setter]","special"):T=a.stylize("[Getter]","special"):V.set&&(T=a.stylize("[Setter]","special")),he(P,w)||($="["+w+"]"),T||(a.seen.indexOf(V.value)<0?(E(b)?T=h(a,V.value,null):T=h(a,V.value,b-1),T.indexOf(`
- `)>-1&&(k?T=T.split(`
- `).map(function(se){return" "+se}).join(`
- `).substr(2):T=`
- `+T.split(`
- `).map(function(se){return" "+se}).join(`
- `))):T=a.stylize("[Circular]","special")),A($)){if(k&&w.match(/^\d+$/))return T;$=JSON.stringify(""+w),$.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?($=$.substr(1,$.length-2),$=a.stylize($,"name")):($=$.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),$=a.stylize($,"string"))}return $+": "+T}function S(a,c,b){var P=a.reduce(function(w,k){return k.indexOf(`
- `)>=0,w+k.replace(/\u001b\[\d\d?m/g,"").length+1},0);return P>60?b[0]+(c===""?"":c+`
- `)+" "+a.join(`,
- `)+" "+b[1]:b[0]+c+" "+a.join(", ")+" "+b[1]}function z(a){return Array.isArray(a)}t.isArray=z;function B(a){return typeof a=="boolean"}t.isBoolean=B;function E(a){return a===null}t.isNull=E;function M(a){return a==null}t.isNullOrUndefined=M;function y(a){return typeof a=="number"}t.isNumber=y;function I(a){return typeof a=="string"}t.isString=I;function O(a){return typeof a=="symbol"}t.isSymbol=O;function A(a){return a===void 0}t.isUndefined=A;function j(a){return L(a)&&Z(a)==="[object RegExp]"}t.isRegExp=j;function L(a){return typeof a=="object"&&a!==null}t.isObject=L;function G(a){return L(a)&&Z(a)==="[object Date]"}t.isDate=G;function N(a){return L(a)&&(Z(a)==="[object Error]"||a instanceof Error)}t.isError=N;function ne(a){return typeof a=="function"}t.isFunction=ne;function ge(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||typeof a>"u"}t.isPrimitive=ge,t.isBuffer=ss;function Z(a){return Object.prototype.toString.call(a)}function xe(a){return a<10?"0"+a.toString(10):a.toString(10)}var pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Pe(){var a=new Date,c=[xe(a.getHours()),xe(a.getMinutes()),xe(a.getSeconds())].join(":");return[a.getDate(),pe[a.getMonth()],c].join(" ")}t.log=function(){console.log("%s - %s",Pe(),t.format.apply(t,arguments))},t.inherits=Ne.exports,t._extend=function(a,c){if(!c||!L(c))return a;for(var b=Object.keys(c),P=b.length;P--;)a[b[P]]=c[b[P]];return a};function he(a,c){return Object.prototype.hasOwnProperty.call(a,c)}})(ft);var as=process.platform==="win32",le=ft;function Oe(t,e){for(var o=[],s=0;s<t.length;s++){var r=t[s];!r||r==="."||(r===".."?o.length&&o[o.length-1]!==".."?o.pop():e&&o.push(".."):o.push(r))}return o}function Fe(t){for(var e=t.length-1,o=0;o<=e&&!t[o];o++);for(var s=e;s>=0&&!t[s];s--);return o===0&&s===e?t:o>s?[]:t.slice(o,s+1)}var _t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,ls=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,Y={};function je(t){var e=_t.exec(t),o=(e[1]||"")+(e[2]||""),s=e[3]||"",r=ls.exec(s),l=r[1],u=r[2],x=r[3];return[o,l,u,x]}function et(t){var e=_t.exec(t),o=e[1]||"",s=!!o&&o[1]!==":";return{device:o,isUnc:s,isAbsolute:s||!!e[2],tail:e[3]}}function ht(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}Y.resolve=function(){for(var t="",e="",o=!1,s=arguments.length-1;s>=-1;s--){var r;if(s>=0?r=arguments[s]:t?(r=process.env["="+t],(!r||r.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(r=t+"\\")):r=process.cwd(),le.isString(r)){if(!r)continue}else throw new TypeError("Arguments to path.resolve must be strings");var l=et(r),u=l.device,x=l.isUnc,h=l.isAbsolute,v=l.tail;if(!(u&&t&&u.toLowerCase()!==t.toLowerCase())&&(t||(t=u),o||(e=v+"\\"+e,o=h),t&&o))break}return x&&(t=ht(t)),e=Oe(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};Y.normalize=function(t){var e=et(t),o=e.device,s=e.isUnc,r=e.isAbsolute,l=e.tail,u=/[\\\/]$/.test(l);return l=Oe(l.split(/[\\\/]+/),!r).join("\\"),!l&&!r&&(l="."),l&&u&&(l+="\\"),s&&(o=ht(o)),o+(r?"\\":"")+l};Y.isAbsolute=function(t){return et(t).isAbsolute};Y.join=function(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(!le.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&t.push(o)}var s=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(s=s.replace(/^[\\\/]{2,}/,"\\")),Y.normalize(s)};Y.relative=function(t,e){t=Y.resolve(t),e=Y.resolve(e);for(var o=t.toLowerCase(),s=e.toLowerCase(),r=Fe(e.split("\\")),l=Fe(o.split("\\")),u=Fe(s.split("\\")),x=Math.min(l.length,u.length),h=x,v=0;v<x;v++)if(l[v]!==u[v]){h=v;break}if(h==0)return e;for(var m=[],v=h;v<l.length;v++)m.push("..");return m=m.concat(r.slice(h)),m.join("\\")};Y._makeLong=function(t){if(!le.isString(t))return t;if(!t)return"";var e=Y.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};Y.dirname=function(t){var e=je(t),o=e[0],s=e[1];return!o&&!s?".":(s&&(s=s.substr(0,s.length-1)),o+s)};Y.basename=function(t,e){var o=je(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};Y.extname=function(t){return je(t)[3]};Y.format=function(t){if(!le.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!le.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir,s=t.base||"";return o?o[o.length-1]===Y.sep?o+s:o+Y.sep+s:s};Y.parse=function(t){if(!le.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=je(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};Y.sep="\\";Y.delimiter=";";var is=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Q={};function Ve(t){return is.exec(t).slice(1)}Q.resolve=function(){for(var t="",e=!1,o=arguments.length-1;o>=-1&&!e;o--){var s=o>=0?arguments[o]:process.cwd();if(le.isString(s)){if(!s)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=s+"/"+t,e=s[0]==="/"}return t=Oe(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};Q.normalize=function(t){var e=Q.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=Oe(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};Q.isAbsolute=function(t){return t.charAt(0)==="/"};Q.join=function(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];if(!le.isString(o))throw new TypeError("Arguments to path.join must be strings");o&&(t?t+="/"+o:t+=o)}return Q.normalize(t)};Q.relative=function(t,e){t=Q.resolve(t).substr(1),e=Q.resolve(e).substr(1);for(var o=Fe(t.split("/")),s=Fe(e.split("/")),r=Math.min(o.length,s.length),l=r,u=0;u<r;u++)if(o[u]!==s[u]){l=u;break}for(var x=[],u=l;u<o.length;u++)x.push("..");return x=x.concat(s.slice(l)),x.join("/")};Q._makeLong=function(t){return t};Q.dirname=function(t){var e=Ve(t),o=e[0],s=e[1];return!o&&!s?".":(s&&(s=s.substr(0,s.length-1)),o+s)};Q.basename=function(t,e){var o=Ve(t)[2];return e&&o.substr(-1*e.length)===e&&(o=o.substr(0,o.length-e.length)),o};Q.extname=function(t){return Ve(t)[3]};Q.format=function(t){if(!le.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!le.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var o=t.dir?t.dir+Q.sep:"",s=t.base||"";return o+s};Q.parse=function(t){if(!le.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=Ve(t);if(!e||e.length!==4)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}};Q.sep="/";Q.delimiter=":";as?Se.exports=Y:Se.exports=Q;Se.exports.posix=Q;Se.exports.win32=Y;const rs={key:0,class:"sub-menu-icon"},us={key:0},cs={key:0,class:"sub-menu-icon"},ds={key:1},mt=J({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=t,{layout:o,isCollapse:s}=_e(),r=U(()=>s.value?{position:"static"}:{position:"absolute",right:"10px"}),l=U(()=>({display:"flex",alignItems:"center"})),u=U(()=>({width:s.value?"100%":"",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),x=U(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),h=U(()=>({width:s.value?"":"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"})),v=U(()=>({overflow:"hidden",textOverflow:"ellipsis"})),m=q(null),g=new WeakMap,f=q(null);function S(E){g.get(E)||Te(()=>{var M,y;((M=f.value)==null?void 0:M.scrollWidth)>((y=f.value)==null?void 0:y.clientWidth)?Object.assign(E,{showTooltip:!0}):Object.assign(E,{showTooltip:!1}),g.set(E,!0)})}function z(E=[],M){var I,O;const y=E.filter(A=>(m.value=A,!0));return(O=(I=y[0])==null?void 0:I.meta)!=null&&O.showParent?!1:y.length===1?!0:y.length===0?(m.value={...M,path:"",noShowingChildren:!0},!0):!1}function B(E){const M=/^http(s?):\/\//;return M.test(E)||M.test(e.basePath)?E||e.basePath:Se.exports.resolve(e.basePath,E)}return(E,M)=>{const y=C("el-tooltip"),I=C("FontIcon"),O=C("el-menu-item"),A=C("sidebar-item",!0),j=C("el-sub-menu");return z(e.item.children,e.item)&&(!m.value.children||m.value.noShowingChildren)?(d(),D(O,{key:0,index:B(m.value.path),class:ee({"submenu-title-noDropdown":!t.isNest}),style:W(n(l))},{title:_(()=>[p("div",{style:W(n(u))},[n(o)==="horizontal"?(d(),F("span",us,R(n(ae)(m.value.meta.title)),1)):(d(),D(y,{key:1,placement:"top",offset:-10,disabled:!m.value.showTooltip},{content:_(()=>[K(R(n(ae)(m.value.meta.title)),1)]),default:_(()=>[p("span",{ref_key:"menuTextRef",ref:f,style:W(n(x)),onMouseover:M[0]||(M[0]=L=>S(m.value))},R(n(ae)(m.value.meta.title)),37)]),_:1},8,["disabled"])),m.value.meta.extraIcon?(d(),D(I,{key:2,width:"30px",height:"30px",style:W(n(r)),icon:m.value.meta.extraIcon.name,svg:!!m.value.meta.extraIcon.svg},null,8,["style","icon","svg"])):H("",!0)],4)]),default:_(()=>{var L,G,N,ne;return[ve(e.item.meta.icon)?(d(),F("div",rs)):H("",!0),n(s)&&n(o)==="vertical"&&((G=(L=e.item)==null?void 0:L.pathList)==null?void 0:G.length)===1?(d(),F("div",{key:1,style:W(n(u))},[p("span",{style:W(n(x))},R(n(ae)(m.value.meta.title)),5)],4)):H("",!0),n(s)&&n(o)==="mix"&&((ne=(N=e.item)==null?void 0:N.pathList)==null?void 0:ne.length)===2?(d(),F("div",{key:2,style:W(n(u))},[p("span",{style:W(n(x))},R(n(ae)(m.value.meta.title)),5)],4)):H("",!0)]}),_:1},8,["index","class","style"])):(d(),D(j,{key:1,ref:"subMenu",index:B(e.item.path)},{title:_(()=>[ve(e.item.meta.icon)?(d(),F("div",cs,[(d(),D(me(n(Je)(e.item.meta&&ve(e.item.meta.icon)))))])):H("",!0),n(o)==="horizontal"?(d(),F("span",ds,R(n(ae)(e.item.meta.title)),1)):(d(),D(y,{key:2,placement:"top",offset:-10,disabled:!n(s)||!e.item.showTooltip},{content:_(()=>[K(R(n(ae)(e.item.meta.title)),1)]),default:_(()=>[p("div",{ref_key:"menuTextRef",ref:f,style:W(n(h)),onMouseover:M[1]||(M[1]=L=>S(e.item))},[p("span",{style:W(n(v))},R(n(ae)(e.item.meta.title)),5)],36)]),_:1},8,["disabled"])),e.item.meta.extraIcon?(d(),D(I,{key:3,width:"30px",height:"30px",style:{position:"absolute",right:"10px"},icon:e.item.meta.extraIcon.name,svg:!!e.item.meta.extraIcon.svg},null,8,["icon","svg"])):H("",!0)]),default:_(()=>[(d(!0),F(re,null,de(e.item.children,L=>(d(),D(A,{key:L.path,"is-nest":!0,item:L,"base-path":B(L.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},8,["index"]))}}}),ps={class:"container"},fs=J({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,{isDark:s}=We(),r=()=>{e("toggleClick")};return(l,u)=>{const x=C("IconifyIconOffline"),h=C("el-tooltip");return d(),F("div",ps,[i(h,{placement:"right",effect:n(s)?"dark":"light",content:o.isActive?"\u70B9\u51FB\u6298\u53E0":"\u70B9\u51FB\u5C55\u5F00"},{default:_(()=>[i(x,{icon:o.isActive?"menu-fold":"menu-unfold",class:"cursor-pointer inline-block align-middle text-primary hover:text-primary dark:hover:!text-white w-[16px] h-[16px] ml-4 mb-1",onClick:r},null,8,["icon"])]),_:1},8,["effect","content"])])}}});const _s=te(fs,[["__scopeId","data-v-dee8b8f8"]]),hs=J({__name:"vertical",setup(t){var f,S;const e=at(),o=q((S=(f=ct.getItem("responsive-configure"))==null?void 0:f.showLogo)!=null?S:!0),{routers:s,device:r,pureApp:l,isCollapse:u,menuSelect:x,toggleSideBar:h}=_e();let v=q([]);const m=U(()=>l.layout==="mix"&&r.value!=="mobile"?v.value:ue().wholeMenus);function g(z){const B=qe(z,ue().wholeMenus),E=ze(B[0]||z,ue().wholeMenus);!(E!=null&&E.children)||(v.value=E==null?void 0:E.children)}return g(e.path),zt(()=>{we.on("logoChange",z=>{o.value=z})}),Ce(()=>e.path,()=>{g(e.path),x(e.path,s)}),(z,B)=>{const E=C("el-menu"),M=C("el-scrollbar");return d(),F("div",{class:ee(["sidebar-container",o.value?"has-logo":""])},[o.value?(d(),D(os,{key:0,collapse:n(u)},null,8,["collapse"])):H("",!0),i(M,{"wrap-class":"scrollbar-wrapper",class:ee([n(r)==="mobile"?"mobile":"pc"])},{default:_(()=>[i(E,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:n(u),"default-active":n(e).path,"collapse-transition":!0,onSelect:B[0]||(B[0]=y=>n(x)(y,n(s)))},{default:_(()=>[(d(!0),F(re,null,de(n(m),y=>(d(),D(mt,{key:y.path,item:y,"base-path":y.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),n(r)!=="mobile"?(d(),D(_s,{key:1,"is-active":n(l).sidebar.opened,onToggleClick:n(h)},null,8,["is-active","onToggleClick"])):H("",!0)],2)}}}),ms={class:"horizontal-header"},vs={class:"horizontal-header-right"},gs={class:"check-zh"},ys={class:"check-en"},bs={class:"el-dropdown-link navbar-bg-hover"},ws=["src"],ks={key:1,class:"dark:text-white"},Cs=["title"],xs=J({__name:"horizontal",setup(t){const e=q(),{t:o,route:s,locale:r,translationCh:l,translationEn:u}=Ke(e),{title:x,routers:h,logout:v,backHome:m,onPanel:g,menuSelect:f,username:S,avatarsStyle:z,getDropdownItemStyle:B,getDropdownItemClass:E}=_e();return Ce(()=>s.path,()=>{f(s.path,h)}),(M,y)=>{const I=C("FontIcon"),O=C("el-menu"),A=C("IconifyIconOffline"),j=C("el-dropdown-item"),L=C("el-dropdown-menu"),G=C("el-dropdown");return d(),F("div",ms,[p("div",{class:"horizontal-header-left",onClick:y[0]||(y[0]=(...N)=>n(m)&&n(m)(...N))},[i(I,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),p("h4",null,R(n(x)),1)]),i(O,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":n(s).path,onSelect:y[1]||(y[1]=N=>n(f)(N,n(h)))},{default:_(()=>[(d(!0),F(re,null,de(n(ue)().wholeMenus,N=>(d(),D(mt,{key:N.path,item:N,"base-path":N.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),p("div",vs,[i(Ze),i(Xe,{id:"header-notice"}),i(G,{id:"header-translation",trigger:"click"},{dropdown:_(()=>[i(L,{class:"translation"},{default:_(()=>[i(j,{style:W(n(B)(n(r),"zh")),class:ee(["dark:!text-white",n(E)(n(r),"zh")]),onClick:n(l)},{default:_(()=>[ie(p("span",gs,[i(A,{icon:"check"})],512),[[ce,n(r)==="zh"]]),K(" \u7B80\u4F53\u4E2D\u6587 ")]),_:1},8,["style","class","onClick"]),i(j,{style:W(n(B)(n(r),"en")),class:ee(["dark:!text-white",n(E)(n(r),"en")]),onClick:n(u)},{default:_(()=>[ie(p("span",ys,[i(A,{icon:"check"})],512),[[ce,n(r)==="en"]]),K(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:_(()=>[i(n(Ye),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(G,{trigger:"click"},{dropdown:_(()=>[i(L,{class:"logout"},{default:_(()=>[i(j,{onClick:n(v)},{default:_(()=>[i(A,{icon:"logout-circle-r-line",style:{margin:"5px"}}),K(" "+R(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:_(()=>[p("span",bs,[n(ke)?(d(),F("img",{key:0,src:n(ke),style:W(n(z))},null,12,ws)):H("",!0),n(S)?(d(),F("p",ks,R(n(S)),1)):H("",!0)])]),_:1}),p("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:y[2]||(y[2]=(...N)=>n(g)&&n(g)(...N))},[i(A,{icon:"setting"})],8,Cs)])])}}});const Es=te(xs,[["__scopeId","data-v-ea19f844"]]),Fs={key:0},Ss=J({__name:"index",setup(t){const{isDark:e}=We(),{layout:o}=Vt(),s=Tt(),r=Rt(),{$storage:l}=Ge(),u=ut({sidebar:U(()=>fe().sidebar),device:U(()=>fe().device),fixedHeader:U(()=>r.fixedHeader),classes:U(()=>({hideSidebar:!u.sidebar.opened,openSidebar:u.sidebar.opened,withoutAnimation:u.sidebar.withoutAnimation,mobile:u.device==="mobile"})),hideTabs:U(()=>l==null?void 0:l.configure.hideTabs)});function x(g){var f,S,z,B;window.document.body.setAttribute("layout",g),l.layout={layout:`${g}`,theme:(f=l.layout)==null?void 0:f.theme,darkMode:(S=l.layout)==null?void 0:S.darkMode,sidebarStatus:(z=l.layout)==null?void 0:z.sidebarStatus,epThemeColor:(B=l.layout)==null?void 0:B.epThemeColor}}function h(g,f){fe().toggleDevice(g),fe().toggleSideBar(f,"resize")}let v=!0;we.on("resize",({detail:g})=>{if(s)return;let{width:f}=g;f<=760?x("vertical"):x(fe().layout),f>0&&f<=760?(h("mobile",!1),v=!0):f>760&&f<=990?v&&(h("desktop",!1),v=!1):f>990&&(u.sidebar.isClickCollapse||(h("desktop",!0),v=!0))}),Ue(()=>{s&&h("mobile",!1)});const m=J({render(){return Ae("div",{class:{"fixed-header":u.fixedHeader},style:[u.hideTabs&&o.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!r.hiddenSideBar&&(o.value.includes("vertical")||o.value.includes("mix"))?Ae(to):null,!r.hiddenSideBar&&o.value.includes("horizontal")?Ae(Es):null]})}});return(g,f)=>{const S=C("el-backtop"),z=C("el-scrollbar"),B=Mt("resize");return ie((d(),F("div",{class:ee(["app-wrapper",u.classes])},[ie(p("div",{class:"app-mask",onClick:f[0]||(f[0]=E=>n(fe)().toggleSideBar())},null,512),[[ce,u.device==="mobile"&&u.sidebar.opened&&n(o).includes("vertical")]]),ie(i(hs,null,null,512),[[ce,!n(r).hiddenSideBar&&(n(o).includes("vertical")||n(o).includes("mix"))]]),p("div",{class:ee(["main-container",n(r).hiddenSideBar?"main-hidden":""])},[u.fixedHeader?(d(),F("div",Fs,[i(n(m)),i(st,{"fixed-header":u.fixedHeader},null,8,["fixed-header"])])):(d(),D(z,{key:1},{default:_(()=>[i(S,{title:"\u56DE\u5230\u9876\u90E8",target:".main-container .el-scrollbar__wrap"},{default:_(()=>[i(n(pt))]),_:1}),i(n(m)),i(st,{"fixed-header":u.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),i(Qo)],2)),[[B]])}}});const Ms=te(Ss,[["__scopeId","data-v-8656013d"]]);export{Ms as default};
|