index.66cffdfe.js 40 KB

12345678910
  1. import{d as ft,g as Te,s as pt,a as K,r as ee,o as je,w as Se,b as w,u as o,c as u,e as I,f as _,h as v,F as ve,i as ye,j as z,t as de,n as Y,k as he,l as V,m as h,p as W,q as se,v as ue,x as Q,y as Z,z as He,A as Ae,_ as ie,B as Ke,C as Xe,D as Ie,E as mt,T as ht,G as We,H as Ne,I as R,J as ze,K as Qe,L as Je,M as _t,N as _e,O as Ye,P as gt,Q as et,R as tt,S as Re,U as vt,V as De,W as nt,X as me,Y as ot,Z as Ee,$ as Ve,a0 as yt,a1 as rt,a2 as bt,a3 as wt,a4 as kt,a5 as xt,a6 as Ct,a7 as St}from"./index.4d061c66.js";import{u as Ue,a as $t,t as Tt,b as It}from"./useDataThemeChange.e560d3fe.js";import{u as fe,a as le}from"./useNav.5e73c372.js";import{u as st}from"./hooks.9f8f44e2.js";const zt=ft({id:"pure-setting",state:()=>({title:Te().Title,fixedHeader:Te().FixedHeader,hiddenSideBar:Te().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 Et(){return zt(pt)}const ge="/assets/avatars.596f7aa0.jpg",At={key:0,class:"horizontal-header"},Ft={class:"select-none"},Mt={class:"horizontal-header-right"},Pt={class:"el-dropdown-link navbar-bg-hover"},Ot=["src"],Bt={key:1,class:"dark:text-white"},Dt=K({__name:"mixNav",setup(t){const e=ee();let n=ee(null);const{t:s,route:l,locale:a,translationCh:c,translationEn:C}=Ue(e),{device:$,routers:g,logout:y,onPanel:b,menuSelect:d,resolvePath:F,username:A,avatarsStyle:E,getDropdownItemStyle:S,getDropdownItemClass:B}=fe();function k(q){var L,D;const J=ue().wholeMenus,O=He(q,J)[0];n.value=(D=(L=Ae(O,J))==null?void 0:L.children[0])==null?void 0:D.path}return je(()=>{k(l.path)}),Se(()=>l.path,()=>{k(l.path)}),(q,J)=>{const O=w("FontIcon"),L=w("el-menu-item"),D=w("el-menu"),X=w("IconifyIconOffline"),N=w("el-dropdown-item"),ne=w("el-dropdown-menu"),be=w("el-dropdown");return o($)!=="mobile"?(u(),I("div",At,[_(D,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o(n),onSelect:J[0]||(J[0]=G=>o(d)(G,o(g)))},{default:v(()=>[(u(!0),I(ve,null,ye(o(ue)().wholeMenus,G=>(u(),z(L,{key:G.path,index:o(F)(G)||G.redirect},{title:v(()=>[de(G.meta.icon)?(u(),I("div",{key:0,class:Y(["sub-menu-icon",G.meta.icon])},[(u(),z(he(o(st)(G.meta&&de(G.meta.icon)))))],2)):V("",!0),h("span",Ft,W(o(se)(G.meta.title)),1),G.meta.extraIcon?(u(),z(O,{key:1,width:"30px",height:"30px",style:{position:"absolute",right:"10px"},icon:G.meta.extraIcon.name,svg:!!G.meta.extraIcon.svg},null,8,["icon","svg"])):V("",!0)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),h("div",Mt,[_(be,{trigger:"click"},{dropdown:v(()=>[_(ne,{class:"logout"},{default:v(()=>[_(N,{onClick:o(y)},{default:v(()=>[_(X,{icon:"logout-circle-r-line",style:{margin:"5px"}}),Q(" "+W(o(s)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[h("span",Pt,[o(ge)?(u(),I("img",{key:0,src:o(ge),style:Z(o(E))},null,12,Ot)):V("",!0),o(A)?(u(),I("p",Bt,W(o(A)),1)):V("",!0)])]),_:1})])])):V("",!0)}}});const Vt=ie(Dt,[["__scopeId","data-v-3ba348c8"]]),Lt=["onClick"],jt=K({__name:"breadCrumb",setup(t){const e=Ke(),n=ee([]),s=Xe(),l=s.options.routes,a=Ie().multiTags,c=g=>{const y=g&&g.name;return y?y.trim().toLocaleLowerCase()==="Welcome".toLocaleLowerCase():!1},C=()=>{let g;Object.keys(e.query).length>0?a.forEach(d=>{We(e.query,d==null?void 0:d.query)&&(g=de(d))}):Object.keys(e.params).length>0?a.forEach(d=>{We(e.params,d==null?void 0:d.params)&&(g=de(d))}):g=Ae(s.currentRoute.value.path,a);const y=He(s.currentRoute.value.path,l);let b=[];y.forEach(d=>{d!=="/"&&b.push(Ae(d,l))}),(g==null?void 0:g.path)!=="/welcome"&&b.push(g),c(b[0])||(b=[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome"}}].concat(b)),b.forEach((d,F)=>{(g==null?void 0:g.query)||(g==null?void 0:g.params)||d!=null&&d.children&&d.children.forEach(A=>{var E,S;((E=A==null?void 0:A.meta)==null?void 0:E.title)===((S=d==null?void 0:d.meta)==null?void 0:S.title)&&b.splice(F,1)})}),n.value=b.filter(d=>(d==null?void 0:d.meta)&&(d==null?void 0:d.meta.title)!==!1)},$=g=>{const{redirect:y,path:b}=g;y?s.push(y):s.push(b)};return je(()=>{C()}),Se(()=>e.path,()=>{C()}),(g,y)=>{const b=w("el-breadcrumb-item"),d=w("el-breadcrumb");return u(),z(d,{class:"!leading-[50px] select-none",separator:"/"},{default:v(()=>[_(ht,{appear:"",name:"breadcrumb"},{default:v(()=>[(u(!0),I(ve,null,ye(n.value,F=>(u(),z(b,{key:F.path},{default:v(()=>[h("a",{onClick:mt(A=>$(F),["prevent"])},W(o(se)(F.meta.title)),9,Lt)]),_:2},1024))),128))]),_:1})]),_:1})}}}),Ht=["title"],Nt=K({__name:"topCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,s=()=>{e("toggleClick")};return(l,a)=>{const c=w("IconifyIconOffline");return u(),I("div",{class:"px-3 mr-1 navbar-bg-hover",title:n.isActive?"\u70B9\u51FB\u6298\u53E0":"\u70B9\u51FB\u5C55\u5F00",onClick:s},[_(c,{icon:n.isActive?"menu-fold":"menu-unfold",class:"inline-block align-middle hover:text-primary dark:hover:!text-white"},null,8,["icon"])],8,Ht)}}}),Rt={class:"navbar bg-[#fff] shadow-sm shadow-[rgba(0, 21, 41, 0.08)] dark:shadow-[#0d0d0d]"},Ut={key:3,class:"vertical-header-right"},qt={class:"el-dropdown-link navbar-bg-hover"},Gt=["src"],Wt={key:1,class:"dark:text-white"},Jt=K({__name:"navbar",setup(t){const{layout:e,device:n,logout:s,onPanel:l,pureApp:a,username:c,avatarsStyle:C,toggleSideBar:$,getDropdownItemStyle:g,getDropdownItemClass:y}=fe(),{t:b,locale:d,translationCh:F,translationEn:A}=Ue();return(E,S)=>{const B=w("IconifyIconOffline"),k=w("el-dropdown-item"),q=w("el-dropdown-menu"),J=w("el-dropdown");return u(),I("div",Rt,[o(n)==="mobile"?(u(),z(Nt,{key:0,class:"hamburger-container","is-active":o(a).sidebar.opened,onToggleClick:o($)},null,8,["is-active","onToggleClick"])):V("",!0),o(e)!=="mix"&&o(n)!=="mobile"?(u(),z(jt,{key:1,class:"breadcrumb-container"})):V("",!0),o(e)==="mix"?(u(),z(Vt,{key:2})):V("",!0),o(e)==="vertical"?(u(),I("div",Ut,[_(J,{trigger:"click"},{dropdown:v(()=>[_(q,{class:"logout"},{default:v(()=>[_(k,{onClick:o(s)},{default:v(()=>[_(B,{icon:"logout-circle-r-line",style:{margin:"5px"}}),Q(" "+W(o(b)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[h("span",qt,[o(ge)?(u(),I("img",{key:0,src:o(ge),style:Z(o(C))},null,12,Gt)):V("",!0),o(c)?(u(),I("p",Wt,W(o(c)),1)):V("",!0)])]),_:1})])):V("",!0)])}}});const Zt=ie(Jt,[["__scopeId","data-v-ef14e991"]]),Kt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},Xt=h("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),Qt=h("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),Yt=[Xt,Qt];function en(t,e){return u(),I("svg",Kt,Yt)}const it={render:en},tn={key:1},nn=K({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:n,$config:s}=Ne(),l=R(()=>s==null?void 0:s.KeepAlive),a=R(()=>y=>y.meta.transition),c=R(()=>n==null?void 0:n.configure.hideTabs),C=R(()=>(n==null?void 0:n.layout.layout)==="vertical"),$=R(()=>[c.value&&C?"padding-top: 48px;":"",!c.value&&C?"padding-top: 85px;":"",c.value&&!C.value?"padding-top: 48px":"",!c.value&&!C.value?"padding-top: 85px;":"",e.fixedHeader?"":"padding-top: 0;"]),g=K({render(){return ze(Qe,{name:a.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":a.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:a.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:a.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(y,b)=>{const d=w("el-backtop"),F=w("el-scrollbar"),A=w("router-view");return u(),I("section",{class:Y([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:Z(o($))},[_(A,null,{default:v(({Component:E,route:S})=>[e.fixedHeader?(u(),z(F,{key:0},{default:v(()=>[_(d,{title:"\u56DE\u5230\u9876\u90E8",target:".app-main .el-scrollbar__wrap"},{default:v(()=>[_(o(it))]),_:1}),_(o(g),{route:S},{default:v(()=>[h("div",null,[o(l)?(u(),z(Je,{key:0,include:o(ue)().cachePageList},[(u(),z(he(E),{key:S.fullPath,class:"main-content"}))],1032,["include"])):(u(),z(he(E),{key:S.fullPath,class:"main-content"}))])]),_:2},1032,["route"])]),_:2},1024)):(u(),I("div",tn,[_(o(g),{route:S},{default:v(()=>[h("div",null,[o(l)?(u(),z(Je,{key:0,include:o(ue)().cachePageList},[(u(),z(he(E),{key:S.fullPath,class:"main-content"}))],1032,["include"])):(u(),z(he(E),{key:S.fullPath,class:"main-content"}))])]),_:2},1032,["route"])]))]),_:1})],6)}}});const Ze=ie(nn,[["__scopeId","data-v-23af9b3d"]]),qe=t=>(et("data-v-3beb0381"),t=t(),tt(),t),on=qe(()=>h("div",{class:"right-panel-background"},null,-1)),rn={class:"right-panel-items"},sn={class:"project-configuration"},an=qe(()=>h("h3",{class:"dark:text-white"},"\u9879\u76EE\u914D\u7F6E",-1)),ln={title:"\u5173\u95ED\u914D\u7F6E"},un=qe(()=>h("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),cn=K({__name:"index",setup(t){let e=ee(!1);const n=ee(null);return _t(n,s=>{s.clientX>n.value.offsetLeft||(e.value=!1)}),_e.on("openPanel",()=>{e.value=!0}),(s,l)=>{const a=w("IconifyIconOffline");return u(),I("div",{class:Y([{show:o(e)},"right-panel-container"])},[on,h("div",{ref_key:"target",ref:n,class:"right-panel bg-bg_color"},[h("div",rn,[h("div",sn,[an,h("span",ln,[_(a,{class:"dark:text-white",icon:"close",onClick:l[0]||(l[0]=c=>Ye(e)?e.value=!o(e):e=!o(e))})])]),un,gt(s.$slots,"default",{},void 0,!0)])],512)],2)}}});const dn=ie(cn,[["__scopeId","data-v-3beb0381"]]),fn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16"},pn=h("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),mn=h("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),hn=[pn,mn];function _n(t,e){return u(),I("svg",fn,hn)}const gn={render:_n},vn={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16"},yn=h("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),bn=h("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),wn=[yn,bn];function kn(t,e){return u(),I("svg",vn,wn)}const xn={render:kn},te=t=>(et("data-v-52d6c844"),t=t(),tt(),t),Cn={class:"pure-theme"},Sn=te(()=>h("div",null,null,-1)),$n=te(()=>h("div",null,null,-1)),Tn=[Sn,$n],In=te(()=>h("div",null,null,-1)),zn=te(()=>h("div",null,null,-1)),En=[In,zn],An=te(()=>h("div",null,null,-1)),Fn=te(()=>h("div",null,null,-1)),Mn=[An,Fn],Pn={class:"theme-color"},On=["onClick"],Bn={class:"setting"},Dn=te(()=>h("span",{class:"dark:text-white"},"\u7070\u8272\u6A21\u5F0F",-1)),Vn=te(()=>h("span",{class:"dark:text-white"},"\u8272\u5F31\u6A21\u5F0F",-1)),Ln=te(()=>h("span",{class:"dark:text-white"},"\u9690\u85CF\u6807\u7B7E\u9875",-1)),jn=te(()=>h("span",{class:"dark:text-white"},"\u4FA7\u8FB9\u680FLogo",-1)),Hn=te(()=>h("span",{class:"dark:text-white"},"\u6807\u7B7E\u9875\u6301\u4E45\u5316",-1)),Nn=te(()=>h("span",{class:"dark:text-white"},"\u6807\u7B7E\u98CE\u683C",-1)),Rn=K({__name:"index",setup(t){var r,i,f,P;const e=Xe(),{device:n}=fe(),{isDark:s}=Re(),{isSelect:l}=vt(),{$storage:a}=Ne(),c=De("mixRef",null),C=De("verticalRef",null),$=De("horizontalRef",null),{body:g,dataTheme:y,layoutTheme:b,themeColors:d,dataThemeChange:F,setEpThemeColor:A,setLayoutThemeColor:E}=$t();if(o(b)){let p=o(b).layout,m=o(b).theme;Tt({scopeName:`layout-theme-${m}`}),ce(p)}const S=ee((i=(r=a.configure)==null?void 0:r.showModel)!=null?i:"smart"),B=ee((P=(f=a.configure)==null?void 0:f.showLogo)!=null?P:!0),k=nt({greyVal:a.configure.grey,weakVal:a.configure.weak,tabsVal:a.configure.hideTabs,showLogo:a.configure.showLogo,showModel:a.configure.showModel,multiTagsCache:a.configure.multiTagsCache}),q=R(()=>p=>({background:p})),J=R(()=>p=>!(p==="light"&&s.value));function O(p,m){const x=a.configure;x[p]=m,a.configure=x}function L(p,m,x){const T=x||document.body;let{className:M}=T;M=M.replace(m,"").trim(),T.className=p?`${M} ${m} `:M}const D=p=>{L(k.greyVal,"html-grey",document.querySelector("html")),O("grey",p)},X=p=>{L(k.weakVal,"html-weakness",document.querySelector("html")),O("weak",p)},N=()=>{let p=k.tabsVal;O("hideTabs",p),_e.emit("tagViewsChange",p)},ne=()=>{let p=k.multiTagsCache;O("multiTagsCache",p),Ie().multiTagsCacheChange(p)};function be(){e.push("/login");const{Grey:p,Weak:m,MultiTagsCache:x,EpThemeColor:T,Layout:M}=Te();le().setLayout(M),A(T),Ie().multiTagsCacheChange(x),L(p,"html-grey",document.querySelector("html")),L(m,"html-weakness",document.querySelector("html")),Ie().handleTags("equal",[...yt]),rt.clear(),bt.clear(),wt()}function G(p){O("showModel",p),_e.emit("tagViewsShowModel",p)}function we(){o(B)?O("showLogo",!0):O("showLogo",!1),_e.emit("logoChange",o(B))}function ae(p){p.forEach(m=>{L(!1,l,o(m))})}Se(a,({layout:p})=>{switch(g.style.setProperty("--w-e-toolbar-active-color",p.epThemeColor),p.layout){case"vertical":L(!0,l,o(C)),me(ae([$]),50),me(ae([c]),50);break;case"horizontal":L(!0,l,o($)),me(ae([C]),50),me(ae([c]),50);break;case"mix":L(!0,l,o(c)),me(ae([C]),50),me(ae([$]),50);break}});const Oe=R(()=>p=>p===b.value.theme&&b.value.theme!=="light"?"#fff":p===b.value.theme&&b.value.theme==="light"?"#1d2b45":"transparent");function ce(p){var m,x,T;b.value.layout=p,window.document.body.setAttribute("layout",p),a.layout={layout:p,theme:b.value.theme,darkMode:(m=a.layout)==null?void 0:m.darkMode,sidebarStatus:(x=a.layout)==null?void 0:x.sidebarStatus,epThemeColor:(T=a.layout)==null?void 0:T.epThemeColor},le().setLayout(p)}return ot(()=>{var p,m;k.greyVal&&((p=document.querySelector("html"))==null||p.setAttribute("class","html-grey")),k.weakVal&&((m=document.querySelector("html"))==null||m.setAttribute("class","html-weakness")),k.tabsVal&&N(),F()}),(p,m)=>{const x=w("el-divider"),T=w("el-switch"),M=w("el-tooltip"),oe=w("IconifyIconOffline"),pe=w("el-icon"),$e=w("el-radio"),ke=w("el-radio-group"),Be=w("el-button");return u(),z(dn,null,{default:v(()=>[_(x,null,{default:v(()=>[Q("\u4E3B\u9898")]),_:1}),_(T,{modelValue:o(y),"onUpdate:modelValue":m[0]||(m[0]=j=>Ye(y)?y.value=j:null),"inline-prompt":"",class:"pure-datatheme","active-icon":o(gn),"inactive-icon":o(xn),onChange:o(F)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),_(x,null,{default:v(()=>[Q("\u5BFC\u822A\u680F\u6A21\u5F0F")]),_:1}),h("ul",Cn,[_(M,{class:"item",content:"\u5DE6\u4FA7\u6A21\u5F0F",placement:"bottom"},{default:v(()=>[h("li",{class:Y(o(b).layout==="vertical"?p.$style.isSelect:""),ref_key:"verticalRef",ref:C,onClick:m[1]||(m[1]=j=>ce("vertical"))},Tn,2)]),_:1}),o(n)!=="mobile"?(u(),z(M,{key:0,class:"item",content:"\u9876\u90E8\u6A21\u5F0F",placement:"bottom"},{default:v(()=>[h("li",{class:Y(o(b).layout==="horizontal"?p.$style.isSelect:""),ref_key:"horizontalRef",ref:$,onClick:m[2]||(m[2]=j=>ce("horizontal"))},En,2)]),_:1})):V("",!0),o(n)!=="mobile"?(u(),z(M,{key:1,class:"item",content:"\u6DF7\u5408\u6A21\u5F0F",placement:"bottom"},{default:v(()=>[h("li",{class:Y(o(b).layout==="mix"?p.$style.isSelect:""),ref_key:"mixRef",ref:c,onClick:m[3]||(m[3]=j=>ce("mix"))},Mn,2)]),_:1})):V("",!0)]),_(x,null,{default:v(()=>[Q("\u4E3B\u9898\u8272")]),_:1}),h("ul",Pn,[(u(!0),I(ve,null,ye(o(d),(j,dt)=>Ee((u(),I("li",{key:dt,style:Z(o(q)(j.color)),onClick:bo=>o(E)(j.themeColor)},[_(pe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:o(Oe)(j.themeColor)},{default:v(()=>[_(oe,{icon:"check"})]),_:2},1032,["color"])],12,On)),[[Ve,o(J)(j.themeColor)]])),128))]),_(x,null,{default:v(()=>[Q("\u754C\u9762\u663E\u793A")]),_:1}),h("ul",Bn,[h("li",null,[Dn,_(T,{modelValue:k.greyVal,"onUpdate:modelValue":m[4]||(m[4]=j=>k.greyVal=j),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:D},null,8,["modelValue"])]),h("li",null,[Vn,_(T,{modelValue:k.weakVal,"onUpdate:modelValue":m[5]||(m[5]=j=>k.weakVal=j),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:X},null,8,["modelValue"])]),h("li",null,[Ln,_(T,{modelValue:k.tabsVal,"onUpdate:modelValue":m[6]||(m[6]=j=>k.tabsVal=j),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:N},null,8,["modelValue"])]),h("li",null,[jn,_(T,{modelValue:B.value,"onUpdate:modelValue":m[7]||(m[7]=j=>B.value=j),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:we},null,8,["modelValue"])]),h("li",null,[Hn,_(T,{modelValue:k.multiTagsCache,"onUpdate:modelValue":m[8]||(m[8]=j=>k.multiTagsCache=j),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"\u5F00","inactive-text":"\u5173",onChange:ne},null,8,["modelValue"])]),h("li",null,[Nn,_(ke,{modelValue:S.value,"onUpdate:modelValue":m[9]||(m[9]=j=>S.value=j),size:"small",onChange:G},{default:v(()=>[_($e,{label:"card"},{default:v(()=>[Q("\u5361\u7247")]),_:1}),_($e,{label:"smart"},{default:v(()=>[Q("\u7075\u52A8")]),_:1})]),_:1},8,["modelValue"])])]),_(x),_(Be,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:be},{default:v(()=>[_(oe,{icon:"fa-sign-out",width:"15",height:"15",style:{"margin-right":"4px"}}),Q(" \u6E05\u7A7A\u7F13\u5B58\u5E76\u8FD4\u56DE\u767B\u5F55\u9875 ")]),_:1})]),_:1})}}}),Un="_isSelect_u6e2z_3",qn={isSelect:Un};const Gn={$style:qn},Wn=ie(Rn,[["__cssModules",Gn],["__scopeId","data-v-52d6c844"]]),Jn={class:"sidebar-title"},Zn={class:"sidebar-title"},Kn=K({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:n}=fe();return(s,l)=>{const a=w("FontIcon"),c=w("router-link");return u(),I("div",{class:Y(["sidebar-logo-container",{collapse:e.collapse}])},[_(Qe,{name:"sidebarLogoFade"},{default:v(()=>[e.collapse?(u(),z(c,{key:"props.collapse",title:o(n),class:"sidebar-logo-link",to:"/"},{default:v(()=>[_(a,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),h("span",Jn,W(o(n)),1)]),_:1},8,["title"])):(u(),z(c,{key:"expand",title:o(n),class:"sidebar-logo-link",to:"/"},{default:v(()=>[_(a,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),h("span",Zn,W(o(n)),1)]),_:1},8,["title"]))]),_:1})],2)}}});const Xn=ie(Kn,[["__scopeId","data-v-2e39b412"]]);var Ce={exports:{}},at={},Qn=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Le={exports:{}};typeof Object.create=="function"?Le.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Le.exports=function(e,n){e.super_=n;var s=function(){};s.prototype=n.prototype,e.prototype=new s,e.prototype.constructor=e};(function(t){var e=/%[sdj%]/g;t.format=function(r){if(!q(r)){for(var i=[],f=0;f<arguments.length;f++)i.push(l(arguments[f]));return i.join(" ")}for(var f=1,P=arguments,p=P.length,m=String(r).replace(e,function(T){if(T==="%%")return"%";if(f>=p)return T;switch(T){case"%s":return String(P[f++]);case"%d":return Number(P[f++]);case"%j":try{return JSON.stringify(P[f++])}catch{return"[Circular]"}default:return T}}),x=P[f];f<p;x=P[++f])S(x)||!D(x)?m+=" "+x:m+=" "+l(x);return m},t.deprecate=function(r,i){if(O(kt.process))return function(){return t.deprecate(r,i).apply(this,arguments)};if(process.noDeprecation===!0)return r;var f=!1;function P(){if(!f){if(process.throwDeprecation)throw new Error(i);process.traceDeprecation?console.trace(i):console.error(i),f=!0}return r.apply(this,arguments)}return P};var n={},s;t.debuglog=function(r){if(O(s)&&(s=process.env.NODE_DEBUG||""),r=r.toUpperCase(),!n[r])if(new RegExp("\\b"+r+"\\b","i").test(s)){var i=process.pid;n[r]=function(){var f=t.format.apply(t,arguments);console.error("%s %d: %s",r,i,f)}}else n[r]=function(){};return n[r]};function l(r,i){var f={seen:[],stylize:c};return arguments.length>=3&&(f.depth=arguments[2]),arguments.length>=4&&(f.colors=arguments[3]),E(i)?f.showHidden=i:i&&t._extend(f,i),O(f.showHidden)&&(f.showHidden=!1),O(f.depth)&&(f.depth=2),O(f.colors)&&(f.colors=!1),O(f.customInspect)&&(f.customInspect=!0),f.colors&&(f.stylize=a),$(f,r,f.depth)}t.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function a(r,i){var f=l.styles[i];return f?"\x1B["+l.colors[f][0]+"m"+r+"\x1B["+l.colors[f][1]+"m":r}function c(r,i){return r}function C(r){var i={};return r.forEach(function(f,P){i[f]=!0}),i}function $(r,i,f){if(r.customInspect&&i&&ne(i.inspect)&&i.inspect!==t.inspect&&!(i.constructor&&i.constructor.prototype===i)){var P=i.inspect(f,r);return q(P)||(P=$(r,P,f)),P}var p=g(r,i);if(p)return p;var m=Object.keys(i),x=C(m);if(r.showHidden&&(m=Object.getOwnPropertyNames(i)),N(i)&&(m.indexOf("message")>=0||m.indexOf("description")>=0))return y(i);if(m.length===0){if(ne(i)){var T=i.name?": "+i.name:"";return r.stylize("[Function"+T+"]","special")}if(L(i))return r.stylize(RegExp.prototype.toString.call(i),"regexp");if(X(i))return r.stylize(Date.prototype.toString.call(i),"date");if(N(i))return y(i)}var M="",oe=!1,pe=["{","}"];if(A(i)&&(oe=!0,pe=["[","]"]),ne(i)){var $e=i.name?": "+i.name:"";M=" [Function"+$e+"]"}if(L(i)&&(M=" "+RegExp.prototype.toString.call(i)),X(i)&&(M=" "+Date.prototype.toUTCString.call(i)),N(i)&&(M=" "+y(i)),m.length===0&&(!oe||i.length==0))return pe[0]+M+pe[1];if(f<0)return L(i)?r.stylize(RegExp.prototype.toString.call(i),"regexp"):r.stylize("[Object]","special");r.seen.push(i);var ke;return oe?ke=b(r,i,f,x,m):ke=m.map(function(Be){return d(r,i,f,x,Be,oe)}),r.seen.pop(),F(ke,M,pe)}function g(r,i){if(O(i))return r.stylize("undefined","undefined");if(q(i)){var f="'"+JSON.stringify(i).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(f,"string")}if(k(i))return r.stylize(""+i,"number");if(E(i))return r.stylize(""+i,"boolean");if(S(i))return r.stylize("null","null")}function y(r){return"["+Error.prototype.toString.call(r)+"]"}function b(r,i,f,P,p){for(var m=[],x=0,T=i.length;x<T;++x)ce(i,String(x))?m.push(d(r,i,f,P,String(x),!0)):m.push("");return p.forEach(function(M){M.match(/^\d+$/)||m.push(d(r,i,f,P,M,!0))}),m}function d(r,i,f,P,p,m){var x,T,M;if(M=Object.getOwnPropertyDescriptor(i,p)||{value:i[p]},M.get?M.set?T=r.stylize("[Getter/Setter]","special"):T=r.stylize("[Getter]","special"):M.set&&(T=r.stylize("[Setter]","special")),ce(P,p)||(x="["+p+"]"),T||(r.seen.indexOf(M.value)<0?(S(f)?T=$(r,M.value,null):T=$(r,M.value,f-1),T.indexOf(`
  2. `)>-1&&(m?T=T.split(`
  3. `).map(function(oe){return" "+oe}).join(`
  4. `).substr(2):T=`
  5. `+T.split(`
  6. `).map(function(oe){return" "+oe}).join(`
  7. `))):T=r.stylize("[Circular]","special")),O(x)){if(m&&p.match(/^\d+$/))return T;x=JSON.stringify(""+p),x.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(x=x.substr(1,x.length-2),x=r.stylize(x,"name")):(x=x.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),x=r.stylize(x,"string"))}return x+": "+T}function F(r,i,f){var P=r.reduce(function(p,m){return m.indexOf(`
  8. `)>=0,p+m.replace(/\u001b\[\d\d?m/g,"").length+1},0);return P>60?f[0]+(i===""?"":i+`
  9. `)+" "+r.join(`,
  10. `)+" "+f[1]:f[0]+i+" "+r.join(", ")+" "+f[1]}function A(r){return Array.isArray(r)}t.isArray=A;function E(r){return typeof r=="boolean"}t.isBoolean=E;function S(r){return r===null}t.isNull=S;function B(r){return r==null}t.isNullOrUndefined=B;function k(r){return typeof r=="number"}t.isNumber=k;function q(r){return typeof r=="string"}t.isString=q;function J(r){return typeof r=="symbol"}t.isSymbol=J;function O(r){return r===void 0}t.isUndefined=O;function L(r){return D(r)&&G(r)==="[object RegExp]"}t.isRegExp=L;function D(r){return typeof r=="object"&&r!==null}t.isObject=D;function X(r){return D(r)&&G(r)==="[object Date]"}t.isDate=X;function N(r){return D(r)&&(G(r)==="[object Error]"||r instanceof Error)}t.isError=N;function ne(r){return typeof r=="function"}t.isFunction=ne;function be(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}t.isPrimitive=be,t.isBuffer=Qn;function G(r){return Object.prototype.toString.call(r)}function we(r){return r<10?"0"+r.toString(10):r.toString(10)}var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oe(){var r=new Date,i=[we(r.getHours()),we(r.getMinutes()),we(r.getSeconds())].join(":");return[r.getDate(),ae[r.getMonth()],i].join(" ")}t.log=function(){console.log("%s - %s",Oe(),t.format.apply(t,arguments))},t.inherits=Le.exports,t._extend=function(r,i){if(!i||!D(i))return r;for(var f=Object.keys(i),P=f.length;P--;)r[f[P]]=i[f[P]];return r};function ce(r,i){return Object.prototype.hasOwnProperty.call(r,i)}})(at);var Yn=process.platform==="win32",re=at;function Fe(t,e){for(var n=[],s=0;s<t.length;s++){var l=t[s];!l||l==="."||(l===".."?n.length&&n[n.length-1]!==".."?n.pop():e&&n.push(".."):n.push(l))}return n}function xe(t){for(var e=t.length-1,n=0;n<=e&&!t[n];n++);for(var s=e;s>=0&&!t[s];s--);return n===0&&s===e?t:n>s?[]:t.slice(n,s+1)}var lt=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,eo=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,H={};function Me(t){var e=lt.exec(t),n=(e[1]||"")+(e[2]||""),s=e[3]||"",l=eo.exec(s),a=l[1],c=l[2],C=l[3];return[n,a,c,C]}function Ge(t){var e=lt.exec(t),n=e[1]||"",s=!!n&&n[1]!==":";return{device:n,isUnc:s,isAbsolute:s||!!e[2],tail:e[3]}}function ut(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}H.resolve=function(){for(var t="",e="",n=!1,s=arguments.length-1;s>=-1;s--){var l;if(s>=0?l=arguments[s]:t?(l=process.env["="+t],(!l||l.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(l=t+"\\")):l=process.cwd(),re.isString(l)){if(!l)continue}else throw new TypeError("Arguments to path.resolve must be strings");var a=Ge(l),c=a.device,C=a.isUnc,$=a.isAbsolute,g=a.tail;if(!(c&&t&&c.toLowerCase()!==t.toLowerCase())&&(t||(t=c),n||(e=g+"\\"+e,n=$),t&&n))break}return C&&(t=ut(t)),e=Fe(e.split(/[\\\/]+/),!n).join("\\"),t+(n?"\\":"")+e||"."};H.normalize=function(t){var e=Ge(t),n=e.device,s=e.isUnc,l=e.isAbsolute,a=e.tail,c=/[\\\/]$/.test(a);return a=Fe(a.split(/[\\\/]+/),!l).join("\\"),!a&&!l&&(a="."),a&&c&&(a+="\\"),s&&(n=ut(n)),n+(l?"\\":"")+a};H.isAbsolute=function(t){return Ge(t).isAbsolute};H.join=function(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(!re.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&t.push(n)}var s=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(s=s.replace(/^[\\\/]{2,}/,"\\")),H.normalize(s)};H.relative=function(t,e){t=H.resolve(t),e=H.resolve(e);for(var n=t.toLowerCase(),s=e.toLowerCase(),l=xe(e.split("\\")),a=xe(n.split("\\")),c=xe(s.split("\\")),C=Math.min(a.length,c.length),$=C,g=0;g<C;g++)if(a[g]!==c[g]){$=g;break}if($==0)return e;for(var y=[],g=$;g<a.length;g++)y.push("..");return y=y.concat(l.slice($)),y.join("\\")};H._makeLong=function(t){if(!re.isString(t))return t;if(!t)return"";var e=H.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t};H.dirname=function(t){var e=Me(t),n=e[0],s=e[1];return!n&&!s?".":(s&&(s=s.substr(0,s.length-1)),n+s)};H.basename=function(t,e){var n=Me(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};H.extname=function(t){return Me(t)[3]};H.format=function(t){if(!re.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!re.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir,s=t.base||"";return n?n[n.length-1]===H.sep?n+s:n+H.sep+s:s};H.parse=function(t){if(!re.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=Me(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)}};H.sep="\\";H.delimiter=";";var to=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,U={};function Pe(t){return to.exec(t).slice(1)}U.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var s=n>=0?arguments[n]:process.cwd();if(re.isString(s)){if(!s)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=s+"/"+t,e=s[0]==="/"}return t=Fe(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};U.normalize=function(t){var e=U.isAbsolute(t),n=t&&t[t.length-1]==="/";return t=Fe(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&n&&(t+="/"),(e?"/":"")+t};U.isAbsolute=function(t){return t.charAt(0)==="/"};U.join=function(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];if(!re.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(t?t+="/"+n:t+=n)}return U.normalize(t)};U.relative=function(t,e){t=U.resolve(t).substr(1),e=U.resolve(e).substr(1);for(var n=xe(t.split("/")),s=xe(e.split("/")),l=Math.min(n.length,s.length),a=l,c=0;c<l;c++)if(n[c]!==s[c]){a=c;break}for(var C=[],c=a;c<n.length;c++)C.push("..");return C=C.concat(s.slice(a)),C.join("/")};U._makeLong=function(t){return t};U.dirname=function(t){var e=Pe(t),n=e[0],s=e[1];return!n&&!s?".":(s&&(s=s.substr(0,s.length-1)),n+s)};U.basename=function(t,e){var n=Pe(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n};U.extname=function(t){return Pe(t)[3]};U.format=function(t){if(!re.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!re.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var n=t.dir?t.dir+U.sep:"",s=t.base||"";return n+s};U.parse=function(t){if(!re.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=Pe(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)}};U.sep="/";U.delimiter=":";Yn?Ce.exports=H:Ce.exports=U;Ce.exports.posix=U;Ce.exports.win32=H;const no={key:0,class:"sub-menu-icon"},oo={key:0},ro={key:0,class:"sub-menu-icon"},so={key:1},ct=K({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const e=t,{layout:n,isCollapse:s}=fe(),l=R(()=>s.value?{position:"static"}:{position:"absolute",right:"10px"}),a=R(()=>({display:"flex",alignItems:"center"})),c=R(()=>({width:s.value?"100%":"",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),C=R(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),$=R(()=>({width:s.value?"":"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"})),g=R(()=>({overflow:"hidden",textOverflow:"ellipsis"})),y=ee(null),b=new WeakMap,d=ee(null);function F(S){b.get(S)||ot(()=>{var B,k;((B=d.value)==null?void 0:B.scrollWidth)>((k=d.value)==null?void 0:k.clientWidth)?Object.assign(S,{showTooltip:!0}):Object.assign(S,{showTooltip:!1}),b.set(S,!0)})}function A(S=[],B){var q,J;const k=S.filter(O=>(y.value=O,!0));return(J=(q=k[0])==null?void 0:q.meta)!=null&&J.showParent?!1:k.length===1?!0:k.length===0?(y.value={...B,path:"",noShowingChildren:!0},!0):!1}function E(S){const B=/^http(s?):\/\//;return B.test(S)||B.test(e.basePath)?S||e.basePath:Ce.exports.resolve(e.basePath,S)}return(S,B)=>{const k=w("el-tooltip"),q=w("FontIcon"),J=w("el-menu-item"),O=w("sidebar-item",!0),L=w("el-sub-menu");return A(e.item.children,e.item)&&(!y.value.children||y.value.noShowingChildren)?(u(),z(J,{key:0,index:E(y.value.path),class:Y({"submenu-title-noDropdown":!t.isNest}),style:Z(o(a))},{title:v(()=>[h("div",{style:Z(o(c))},[o(n)==="horizontal"?(u(),I("span",oo,W(o(se)(y.value.meta.title)),1)):(u(),z(k,{key:1,placement:"top",offset:-10,disabled:!y.value.showTooltip},{content:v(()=>[Q(W(o(se)(y.value.meta.title)),1)]),default:v(()=>[h("span",{ref_key:"menuTextRef",ref:d,style:Z(o(C)),onMouseover:B[0]||(B[0]=D=>F(y.value))},W(o(se)(y.value.meta.title)),37)]),_:1},8,["disabled"])),y.value.meta.extraIcon?(u(),z(q,{key:2,width:"30px",height:"30px",style:Z(o(l)),icon:y.value.meta.extraIcon.name,svg:!!y.value.meta.extraIcon.svg},null,8,["style","icon","svg"])):V("",!0)],4)]),default:v(()=>{var D,X,N,ne;return[de(e.item.meta.icon)?(u(),I("div",no)):V("",!0),o(s)&&o(n)==="vertical"&&((X=(D=e.item)==null?void 0:D.pathList)==null?void 0:X.length)===1?(u(),I("div",{key:1,style:Z(o(c))},[h("span",{style:Z(o(C))},W(o(se)(y.value.meta.title)),5)],4)):V("",!0),o(s)&&o(n)==="mix"&&((ne=(N=e.item)==null?void 0:N.pathList)==null?void 0:ne.length)===2?(u(),I("div",{key:2,style:Z(o(c))},[h("span",{style:Z(o(C))},W(o(se)(y.value.meta.title)),5)],4)):V("",!0)]}),_:1},8,["index","class","style"])):(u(),z(L,{key:1,ref:"subMenu",index:E(e.item.path)},{title:v(()=>[de(e.item.meta.icon)?(u(),I("div",ro,[(u(),z(he(o(st)(e.item.meta&&de(e.item.meta.icon)))))])):V("",!0),o(n)==="horizontal"?(u(),I("span",so,W(o(se)(e.item.meta.title)),1)):(u(),z(k,{key:2,placement:"top",offset:-10,disabled:!o(s)||!e.item.showTooltip},{content:v(()=>[Q(W(o(se)(e.item.meta.title)),1)]),default:v(()=>[h("div",{ref_key:"menuTextRef",ref:d,style:Z(o($)),onMouseover:B[1]||(B[1]=D=>F(e.item))},[h("span",{style:Z(o(g))},W(o(se)(e.item.meta.title)),5)],36)]),_:1},8,["disabled"])),e.item.meta.extraIcon?(u(),z(q,{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"])):V("",!0)]),default:v(()=>[(u(!0),I(ve,null,ye(e.item.children,D=>(u(),z(O,{key:D.path,"is-nest":!0,item:D,"base-path":E(D.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},8,["index"]))}}}),io={class:"container"},ao=K({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const n=t,{isDark:s}=Re(),l=()=>{e("toggleClick")};return(a,c)=>{const C=w("IconifyIconOffline"),$=w("el-tooltip");return u(),I("div",io,[_($,{placement:"right",effect:o(s)?"dark":"light",content:n.isActive?"\u70B9\u51FB\u6298\u53E0":"\u70B9\u51FB\u5C55\u5F00"},{default:v(()=>[_(C,{icon:n.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:l},null,8,["icon"])]),_:1},8,["effect","content"])])}}});const lo=ie(ao,[["__scopeId","data-v-dee8b8f8"]]),uo=K({__name:"vertical",setup(t){var d,F;const e=Ke(),n=ee((F=(d=rt.getItem("responsive-configure"))==null?void 0:d.showLogo)!=null?F:!0),{routers:s,device:l,pureApp:a,isCollapse:c,menuSelect:C,toggleSideBar:$}=fe();let g=ee([]);const y=R(()=>a.layout==="mix"&&l.value!=="mobile"?g.value:ue().wholeMenus);function b(A){const E=He(A,ue().wholeMenus),S=Ae(E[0]||A,ue().wholeMenus);!(S!=null&&S.children)||(g.value=S==null?void 0:S.children)}return b(e.path),xt(()=>{_e.on("logoChange",A=>{n.value=A})}),Se(()=>e.path,()=>{b(e.path),C(e.path,s)}),(A,E)=>{const S=w("el-menu"),B=w("el-scrollbar");return u(),I("div",{class:Y(["sidebar-container",n.value?"has-logo":""])},[n.value?(u(),z(Xn,{key:0,collapse:o(c)},null,8,["collapse"])):V("",!0),_(B,{"wrap-class":"scrollbar-wrapper",class:Y([o(l)==="mobile"?"mobile":"pc"])},{default:v(()=>[_(S,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:o(c),"default-active":o(e).path,"collapse-transition":!0,onSelect:E[0]||(E[0]=k=>o(C)(k,o(s)))},{default:v(()=>[(u(!0),I(ve,null,ye(o(y),k=>(u(),z(ct,{key:k.path,item:k,"base-path":k.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),o(l)!=="mobile"?(u(),z(lo,{key:1,"is-active":o(a).sidebar.opened,onToggleClick:o($)},null,8,["is-active","onToggleClick"])):V("",!0)],2)}}}),co={class:"horizontal-header"},fo={class:"horizontal-header-right"},po={class:"el-dropdown-link navbar-bg-hover"},mo=["src"],ho={key:1,class:"dark:text-white"},_o=K({__name:"horizontal",setup(t){const e=ee(),{t:n,route:s,locale:l,translationCh:a,translationEn:c}=Ue(e),{title:C,routers:$,logout:g,backHome:y,onPanel:b,menuSelect:d,username:F,avatarsStyle:A,getDropdownItemStyle:E,getDropdownItemClass:S}=fe();return Se(()=>s.path,()=>{d(s.path,$)}),(B,k)=>{const q=w("FontIcon"),J=w("el-menu"),O=w("IconifyIconOffline"),L=w("el-dropdown-item"),D=w("el-dropdown-menu"),X=w("el-dropdown");return u(),I("div",co,[h("div",{class:"horizontal-header-left",onClick:k[0]||(k[0]=(...N)=>o(y)&&o(y)(...N))},[_(q,{icon:"team-iconlogo",svg:"",style:{width:"35px",height:"35px"}}),h("h4",null,W(o(C)),1)]),_(J,{router:"",ref_key:"menuRef",ref:e,mode:"horizontal",class:"horizontal-header-menu","default-active":o(s).path,onSelect:k[1]||(k[1]=N=>o(d)(N,o($)))},{default:v(()=>[(u(!0),I(ve,null,ye(o(ue)().wholeMenus,N=>(u(),z(ct,{key:N.path,item:N,"base-path":N.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),h("div",fo,[_(X,{trigger:"click"},{dropdown:v(()=>[_(D,{class:"logout"},{default:v(()=>[_(L,{onClick:o(g)},{default:v(()=>[_(O,{icon:"logout-circle-r-line",style:{margin:"5px"}}),Q(" "+W(o(n)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:v(()=>[h("span",po,[o(ge)?(u(),I("img",{key:0,src:o(ge),style:Z(o(A))},null,12,mo)):V("",!0),o(F)?(u(),I("p",ho,W(o(F)),1)):V("",!0)])]),_:1})])])}}});const go=ie(_o,[["__scopeId","data-v-afb6515b"]]),vo={key:0},yo=K({__name:"index",setup(t){const{isDark:e}=Re(),{layout:n}=It(),s=Ct(),l=Et(),{$storage:a}=Ne(),c=nt({sidebar:R(()=>le().sidebar),device:R(()=>le().device),fixedHeader:R(()=>l.fixedHeader),classes:R(()=>({hideSidebar:!c.sidebar.opened,openSidebar:c.sidebar.opened,withoutAnimation:c.sidebar.withoutAnimation,mobile:c.device==="mobile"})),hideTabs:R(()=>a==null?void 0:a.configure.hideTabs)});function C(b){var d,F,A,E;window.document.body.setAttribute("layout",b),a.layout={layout:`${b}`,theme:(d=a.layout)==null?void 0:d.theme,darkMode:(F=a.layout)==null?void 0:F.darkMode,sidebarStatus:(A=a.layout)==null?void 0:A.sidebarStatus,epThemeColor:(E=a.layout)==null?void 0:E.epThemeColor}}function $(b,d){le().toggleDevice(b),le().toggleSideBar(d,"resize")}let g=!0;_e.on("resize",({detail:b})=>{if(s)return;let{width:d}=b;d<=760?C("vertical"):C(le().layout),d>0&&d<=760?($("mobile",!1),g=!0):d>760&&d<=990?g&&($("desktop",!1),g=!1):d>990&&(c.sidebar.isClickCollapse||($("desktop",!0),g=!0))}),je(()=>{s&&$("mobile",!1)});const y=K({render(){return ze("div",{class:{"fixed-header":c.fixedHeader},style:[c.hideTabs&&n.value.includes("horizontal")?e.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!l.hiddenSideBar&&(n.value.includes("vertical")||n.value.includes("mix"))?ze(Zt):null,!l.hiddenSideBar&&n.value.includes("horizontal")?ze(go):null]})}});return(b,d)=>{const F=w("el-backtop"),A=w("el-scrollbar"),E=St("resize");return Ee((u(),I("div",{class:Y(["app-wrapper",c.classes])},[Ee(h("div",{class:"app-mask",onClick:d[0]||(d[0]=S=>o(le)().toggleSideBar())},null,512),[[Ve,c.device==="mobile"&&c.sidebar.opened&&o(n).includes("vertical")]]),Ee(_(uo,null,null,512),[[Ve,!o(l).hiddenSideBar&&(o(n).includes("vertical")||o(n).includes("mix"))]]),h("div",{class:Y(["main-container",o(l).hiddenSideBar?"main-hidden":""])},[c.fixedHeader?(u(),I("div",vo,[_(o(y)),_(Ze,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])])):(u(),z(A,{key:1},{default:v(()=>[_(F,{title:"\u56DE\u5230\u9876\u90E8",target:".main-container .el-scrollbar__wrap"},{default:v(()=>[_(o(it))]),_:1}),_(o(y)),_(Ze,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),_(Wn)],2)),[[E]])}}});const So=ie(yo,[["__scopeId","data-v-8656013d"]]);export{So as default};