-a.value&&U+t2<-a.value+H?a.value=Math.min(0,H-t2-U-E):a.value=-(U-(H-E-t2))},d=v=>{var U;const E=e2.value?(U=e2.value)==null?void 0:U.offsetWidth:0,P=_.value?_.value.offsetWidth:0;v>0?a.value=Math.min(0,a.value+v):E=-(P-E)&&(a.value=Math.max(a.value+v,E-P)):a.value=0};function V(v){const E=t.value.some(U=>U.path===v);function P(U,t2){E||U.forEach(H=>{H.path===t2||H.path===t2?L2().handleTags("push",{path:t2,meta:H.meta,name:H.name}):H.children&&H.children.length>0&&P(H.children,t2)})}P(h.options.routes,v)}function W(){const{fullPath:v,query:E}=o(n);h.replace({path:"/redirect"+v,query:E}),r3(n,"refresh")}function F(v,E,P){var g2,Y,o2,$2;const U=t.value.findIndex(k2=>{if(k2.query){if(k2.path===v.path)return k2.query===v.query}else if(k2.params){if(k2.path===v.path)return k2.params===v.params}else return k2.path===v.path}),t2=(k2,kn,_n)=>{_n?L2().handleTags("equal",[P2==="false"?nn[0]:T2(d3()),v]):L2().handleTags("splice","",{startIndex:k2,length:kn}),c()};P==="other"?t2(1,1,!0):P==="left"?t2(1,U-1):P==="right"?t2(U+1,t.value.length):t2(U,1);const H=L2().handleTags("slice");if(E===n.path){if(P==="left")return;(g2=H[0])!=null&&g2.query?h.push({name:H[0].name,query:H[0].query}):(Y=H[0])!=null&&Y.params?h.push({name:H[0].name,params:H[0].params}):h.push({path:H[0].path})}else{if(!t.value.length||t.value.some(k2=>k2.path===n.path))return;(o2=H[0])!=null&&o2.query?h.push({name:H[0].name,query:H[0].query}):($2=H[0])!=null&&$2.params?h.push({name:H[0].name,params:H[0].params}):h.push({path:H[0].path})}}function N(v,E){F(v,v.path,E),r3(n)}function K(v,E,P){if(E&&E.disabled)return;let U;switch(P?U={path:P.path,meta:P.meta,name:P.name,query:P==null?void 0:P.query,params:P==null?void 0:P.params}:U={path:n.path,meta:n.meta},v){case 0:W();break;case 1:N(U);break;case 2:N(U,"left");break;case 3:N(U,"right");break;case 4:N(U,"other");break;case 5:L2().handleTags("splice","",{startIndex:1,length:t.value.length}),h.push(G),r3(n);break;case 6:H2(),setTimeout(()=>{M2.value?(s[6].icon=P3,s[6].text="退出全屏"):(s[6].icon=Q2,s[6].text="全屏")},100);break;case 7:M(),setTimeout(()=>{b.hiddenSideBar?(s[7].icon=P3,s[7].text="内容区退出全屏"):(s[7].icon=Q2,s[7].text="内容区全屏")},100);break}setTimeout(()=>{v2(n.fullPath,n.query)})}function n2(v){const{key:E,item:P}=v;K(E,P)}function x2(v,E){K(v,E,$.value)}function C2(v){Array.of(1,2,3,4,5).forEach(E=>{s[E].show=v})}function J(v){Array.of(1,2,3,4,5).forEach(E=>{s[E].disabled=v})}function v2(v,E={},P=!1){const U=t.value,t2=t.value.length;let H=-1;N2(E)?H=U.findIndex(g2=>g2.path===v):H=U.findIndex(g2=>X2(g2.query,E)),C2(!0),P&&(s[0].show=!0),H===1&&t2!==2?(s[2].show=!1,Array.of(1,3,4,5).forEach(g2=>{s[g2].disabled=!1}),s[2].disabled=!0):H===1&&t2===2?(J(!1),Array.of(2,3,4).forEach(g2=>{s[g2].show=!1,s[g2].disabled=!0})):t2-1===H&&H!==0?(s[3].show=!1,Array.of(1,2,4,5).forEach(g2=>{s[g2].disabled=!1}),s[3].disabled=!0):H===0||v===`/redirect${G}`?J(!0):J(!1)}function n3(v,E){I(),v.path===G?(C2(!1),s[0].show=!0):n.path!==v.path&&n.name!==v.name?(s[0].show=!1,v2(v.path,v.query)):t.value.length===2&&n.path!==v.path?(C2(!0),s[4].show=!1):n.path===v.path&&v2(v.path,v.query,!0),$.value=v;const P=105,U=o(R).getBoundingClientRect().left,H=o(R).offsetWidth-P,g2=E.clientX-U+5;g2>H?z.value=H:z.value=g2,T3().hiddenSideBar?m.value=E.clientY:m.value=E.clientY-40,D2(()=>{e.value=!0})}function vn(v){const{name:E,path:P}=v;E?v.query?h.push({name:E,query:v.query}):v.params?h.push({name:E,params:v.params}):h.push({name:E}):h.push({path:P})}return F2(n,()=>{x.value=-1,c()}),F2(M2,()=>{s[6].icon=Q2,s[6].text="全屏"}),S(()=>{g&&(v2(n.fullPath),a2.on("tagViewsChange",v=>{o(u)!==v&&(u.value=v)}),a2.on("tagViewsShowModel",v=>{r.value=v}),a2.on("changLayoutRoute",v=>{V(v),setTimeout(()=>{v2(v)})}),x3(e2,R2(()=>c())))}),k3(()=>{a2.off("tagViewsChange"),a2.off("tagViewsShowModel"),a2.off("changLayoutRoute")}),(v,E)=>{const P=q("IconifyIconOffline"),U=q("router-link"),t2=q("el-dropdown-item"),H=q("el-dropdown-menu"),g2=q("el-dropdown");return o(u)?X("",!0):(y(),C("div",{key:0,ref_key:"containerDom",ref:R,class:"tags-view"},[O2(j("span",n1,[f(P,{icon:o(Y4),onClick:E[0]||(E[0]=Y=>d(200))},null,8,["icon"])],512),[[Z2,r2.value]]),j("div",{ref_key:"scrollbarDom",ref:e2,class:"scroll-container"},[j("div",{class:"tab select-none",ref_key:"tabDom",ref:_,style:s2(o(p))},[(y(!0),C(b2,null,w2(o(t),(Y,o2)=>(y(),C("div",{ref_for:!0,ref:"dynamic"+o2,key:o2,class:f2(["scroll-item is-closable",o(k)(Y),o(n).path===Y.path&&o(r)==="card"?"card-active":""]),onContextmenu:W2($2=>n3(Y,$2),["prevent"]),onMouseenter:W2($2=>o(T)(o2),["prevent"]),onMouseleave:W2($2=>o(A)(o2),["prevent"]),onClick:$2=>vn(Y)},[f(U,{to:Y.path,class:"dark:!text-text_color_primary dark:hover:!text-primary"},{default:w(()=>[c2(i2(Y.meta.title),1)]),_:2},1032,["to"]),o(L)(Y,o2)||o2===o(x)&&o2!==0?(y(),C("span",{key:0,class:"el-icon-close",onClick:W2($2=>N(Y),["stop"])},[f(P,{icon:o(J4)},null,8,["icon"])],8,h1)):X("",!0),o(r)!=="card"?(y(),C("div",{key:1,ref_for:!0,ref:"schedule"+o2,class:f2([o(Q)(Y)])},null,2)):X("",!0)],42,i1))),128))],4)],512),O2(j("span",e1,[f(P,{icon:o(K4),onClick:E[1]||(E[1]=Y=>d(-200))},null,8,["icon"])],512),[[Z2,r2.value]]),f(J3,{name:"el-zoom-in-top"},{default:w(()=>[O2((y(),C("ul",{key:Math.random(),style:s2(o(Z)),class:"contextmenu"},[(y(!0),C(b2,null,w2(o(s).slice(0,6),(Y,o2)=>(y(),C("div",{key:o2,style:{display:"flex","align-items":"center"}},[Y.show?(y(),C("li",{key:0,onClick:$2=>x2(o2,Y)},[f(P,{icon:Y.icon},null,8,["icon"]),c2(" "+i2(Y.text),1)],8,g1)):X("",!0)]))),128))],4)),[[Z2,o(e)]])]),_:1}),f(g2,{trigger:"click",placement:"bottom-end",onCommand:n2},{dropdown:w(()=>[f(H,null,{default:w(()=>[(y(!0),C(b2,null,w2(o(s),(Y,o2)=>(y(),B(t2,{key:o2,command:{key:o2,item:Y},divided:Y.divided,disabled:Y.disabled},{default:w(()=>[f(P,{icon:Y.icon},null,8,["icon"]),c2(" "+i2(Y.text),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:w(()=>[j("span",u1,[f(P,{icon:o(G4),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}});const o1=d2(t1,[["__scopeId","data-v-e399e3c7"]]),s1={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},l1=j("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),c1=j("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),r1=[l1,c1];function a1(i,n){return y(),C("svg",s1,r1)}const bn={render:a1},d1={key:1},y1=h2({__name:"appMain",props:{fixedHeader:Boolean},setup(i){const n=i,{$storage:h,$config:e}=Y2(),u=D(()=>e==null?void 0:e.KeepAlive),g=D(()=>r=>r.meta.transition),t=D(()=>h==null?void 0:h.configure.hideTabs),s=D(()=>(h==null?void 0:h.layout.layout)==="vertical"),m=D(()=>[t.value&&s?"padding-top: 48px;":"",!t.value&&s?"padding-top: 85px;":"",t.value&&!s.value?"padding-top: 48px":"",!t.value&&!s.value?"padding-top: 85px;":"",n.fixedHeader?"":"padding-top: 0;"]),z=h2({render(){return U2(J3,{name:g.value(this.route)&&this.route.meta.transition.enterTransition?"pure-classes-transition":g.value(this.route)&&this.route.meta.transition.name||"fade-transform",enterActiveClass:g.value(this.route)&&`animate__animated ${this.route.meta.transition.enterTransition}`,leaveActiveClass:g.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(r,a)=>{const b=q("el-backtop"),x=q("el-scrollbar"),p=q("router-view");return y(),C("section",{class:f2([n.fixedHeader?"app-main":"app-main-nofixed-header"]),style:s2(m.value)},[f(p,null,{default:w(({Component:L,route:k})=>[n.fixedHeader?(y(),B(x,{key:0},{default:w(()=>[f(b,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:w(()=>[f(o(bn))]),_:1}),f(o(z),{route:k},{default:w(()=>[u.value?(y(),B(V3,{key:0,include:o(z2)().cachePageList},[(y(),B(E2(L),{key:k.fullPath,class:"main-content"}))],1032,["include"])):(y(),B(E2(L),{key:k.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),_:2},1024)):(y(),C("div",d1,[f(o(z),{route:k},{default:w(()=>[u.value?(y(),B(V3,{key:0,include:o(z2)().cachePageList},[(y(),B(E2(L),{key:k.fullPath,class:"main-content"}))],1032,["include"])):(y(),B(E2(L),{key:k.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1})],6)}}});const X3=d2(y1,[["__scopeId","data-v-42be6378"]]),L3=i=>(_3("data-v-e23adae8"),i=i(),C3(),i),z1=L3(()=>j("div",{class:"right-panel-background"},null,-1)),f1={class:"right-panel-items"},m1={class:"project-configuration"},p1=L3(()=>j("h4",{class:"dark:text-white"},"项目配置",-1)),b1=L3(()=>j("div",{class:"border-b-[1px] border-solid border-[#dcdfe6] dark:border-[#303030]"},null,-1)),j1=h2({__name:"index",setup(i){const n=O(null),h=O(!1),e=D(()=>["mr-[20px]","outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]);return Pn(n,u=>{u.clientX>n.value.offsetLeft||(h.value=!1)}),B2(()=>{a2.on("openPanel",()=>{h.value=!0})}),k3(()=>{a2.off("openPanel")}),(u,g)=>{const t=q("IconifyIconOffline");return y(),C("div",{class:f2([{show:h.value},"right-panel-container"])},[z1,j("div",{ref_key:"target",ref:n,class:"right-panel bg-bg_color"},[j("div",f1,[j("div",m1,[p1,j("span",{title:"关闭配置",class:f2(e.value)},[f(t,{class:"dark:text-white",width:"20px",height:"20px",icon:o(pn),onClick:g[0]||(g[0]=s=>h.value=!h.value)},null,8,["icon"])],2)]),b1,Vn(u.$slots,"default",{},void 0,!0)])],512)],2)}}});const x1=d2(j1,[["__scopeId","data-v-e23adae8"]]),w1={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},q1=j("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),v1=j("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),k1=[q1,v1];function _1(i,n){return y(),C("svg",w1,k1)}const C1={render:_1},T1={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},S1=j("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),M1=j("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),$1=[S1,M1];function I1(i,n){return y(),C("svg",T1,$1)}const A1={render:I1},L1={width:1024,height:1024,body:''},q2=i=>(_3("data-v-b2e088d9"),i=i(),C3(),i),E1={class:"pure-theme"},O1=q2(()=>j("div",null,null,-1)),P1=q2(()=>j("div",null,null,-1)),V1=[O1,P1],D1=q2(()=>j("div",null,null,-1)),B1=q2(()=>j("div",null,null,-1)),H1=[D1,B1],R1=q2(()=>j("div",null,null,-1)),N1=q2(()=>j("div",null,null,-1)),F1=[R1,N1],Z1={class:"theme-color"},W1=["onClick"],U1={class:"setting"},Q1=q2(()=>j("span",{class:"dark:text-white"},"灰色模式",-1)),X1=q2(()=>j("span",{class:"dark:text-white"},"色弱模式",-1)),G1=q2(()=>j("span",{class:"dark:text-white"},"隐藏标签页",-1)),K1=q2(()=>j("span",{class:"dark:text-white"},"侧边栏Logo",-1)),Y1=q2(()=>j("span",{class:"dark:text-white"},"标签页持久化",-1)),J1=q2(()=>j("span",{class:"dark:text-white"},"标签风格",-1)),n8=h2({__name:"index",setup(i){var H2,c;const n=J2(),{isDark:h}=hn(),{device:e,tooltipEffect:u}=S2(),{$storage:g}=Y2(),t=O(),s=O(),m=O(),{dataTheme:z,layoutTheme:r,themeColors:a,dataThemeChange:b,setEpThemeColor:x,setLayoutThemeColor:p}=sn();if(o(r)){const l=o(r).layout,d=o(r).theme;on({scopeName:`layout-theme-${d}`}),M2(l)}const L=O(((H2=g.configure)==null?void 0:H2.showModel)??"smart"),k=O(((c=g.configure)==null?void 0:c.showLogo)??!0),$=v3({greyVal:g.configure.grey,weakVal:g.configure.weak,tabsVal:g.configure.hideTabs,showLogo:g.configure.showLogo,showModel:g.configure.showModel,multiTagsCache:g.configure.multiTagsCache}),Q=D(()=>l=>({background:l})),Z=D(()=>l=>!(l==="light"&&h.value));function I(l,d){const V=g.configure;V[l]=d,g.configure=V}function S(l,d,V){const W=V||document.body;let{className:F}=W;F=F.replace(d,"").trim(),W.className=l?`${F} ${d} `:F}const T=l=>{S($.greyVal,"html-grey",document.querySelector("html")),I("grey",l)},A=l=>{S($.weakVal,"html-weakness",document.querySelector("html")),I("weak",l)},M=()=>{const l=$.tabsVal;I("hideTabs",l),a2.emit("tagViewsChange",l)},_=()=>{const l=$.multiTagsCache;I("multiTagsCache",l),L2().multiTagsCacheChange(l)};function R(){Dn(),y2().clear(),Bn().clear();const{Grey:l,Weak:d,MultiTagsCache:V,EpThemeColor:W,Layout:F}=p2();A2().setLayout(F),x(W),L2().multiTagsCacheChange(V),S(l,"html-grey",document.querySelector("html")),S(d,"html-weakness",document.querySelector("html")),n.push("/login"),L2().handleTags("equal",[...nn]),Hn()}function e2(l){I("showModel",l),a2.emit("tagViewsShowModel",l)}function r2(){o(k)?I("showLogo",!0):I("showLogo",!1),a2.emit("logoChange",o(k))}function G(l){l.forEach(d=>{S(!1,"is-select",o(d))})}const P2=D(()=>l=>l===r.value.theme&&r.value.theme!=="light"?"#fff":l===r.value.theme&&r.value.theme==="light"?"#1d2b45":"transparent");function M2(l){var d,V,W;r.value.layout=l,window.document.body.setAttribute("layout",l),g.layout={layout:l,theme:r.value.theme,darkMode:(d=g.layout)==null?void 0:d.darkMode,sidebarStatus:(V=g.layout)==null?void 0:V.sidebarStatus,epThemeColor:(W=g.layout)==null?void 0:W.epThemeColor},A2().setLayout(l)}return F2(g,({layout:l})=>{switch(l.layout){case"vertical":S(!0,"is-select",o(s)),R2(G([m]),50),R2(G([t]),50);break;case"horizontal":S(!0,"is-select",o(m)),R2(G([s]),50),R2(G([t]),50);break;case"mix":S(!0,"is-select",o(t)),R2(G([s]),50),R2(G([m]),50);break}}),en(()=>{D2(()=>{var l,d;$.greyVal&&((l=document.querySelector("html"))==null||l.setAttribute("class","html-grey")),$.weakVal&&((d=document.querySelector("html"))==null||d.setAttribute("class","html-weakness")),$.tabsVal&&M()})}),(l,d)=>{const V=q("el-divider"),W=q("el-switch"),F=q("el-tooltip"),N=q("IconifyIconOffline"),K=q("el-icon"),n2=q("el-radio"),x2=q("el-radio-group"),C2=q("el-button");return y(),B(x1,null,{default:w(()=>[f(V,null,{default:w(()=>[c2("主题")]),_:1}),f(W,{modelValue:o(z),"onUpdate:modelValue":d[0]||(d[0]=J=>Y3(z)?z.value=J:null),"inline-prompt":"",class:"pure-datatheme","active-icon":o(C1),"inactive-icon":o(A1),onChange:o(b)},null,8,["modelValue","active-icon","inactive-icon","onChange"]),f(V,null,{default:w(()=>[c2("导航栏模式")]),_:1}),j("ul",E1,[f(F,{effect:o(u),class:"item",content:"左侧模式",placement:"bottom","popper-class":"pure-tooltip"},{default:w(()=>[j("li",{class:f2(o(r).layout==="vertical"?"is-select":""),ref_key:"verticalRef",ref:s,onClick:d[1]||(d[1]=J=>M2("vertical"))},V1,2)]),_:1},8,["effect"]),o(e)!=="mobile"?(y(),B(F,{key:0,effect:o(u),class:"item",content:"顶部模式",placement:"bottom","popper-class":"pure-tooltip"},{default:w(()=>[j("li",{class:f2(o(r).layout==="horizontal"?"is-select":""),ref_key:"horizontalRef",ref:m,onClick:d[2]||(d[2]=J=>M2("horizontal"))},H1,2)]),_:1},8,["effect"])):X("",!0),o(e)!=="mobile"?(y(),B(F,{key:1,effect:o(u),class:"item",content:"混合模式",placement:"bottom","popper-class":"pure-tooltip"},{default:w(()=>[j("li",{class:f2(o(r).layout==="mix"?"is-select":""),ref_key:"mixRef",ref:t,onClick:d[3]||(d[3]=J=>M2("mix"))},F1,2)]),_:1},8,["effect"])):X("",!0)]),f(V,null,{default:w(()=>[c2("主题色")]),_:1}),j("ul",Z1,[(y(!0),C(b2,null,w2(o(a),(J,v2)=>O2((y(),C("li",{key:v2,style:s2(Q.value(J.color)),onClick:n3=>o(p)(J.themeColor)},[f(K,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:P2.value(J.themeColor)},{default:w(()=>[f(N,{icon:o(L1)},null,8,["icon"])]),_:2},1032,["color"])],12,W1)),[[Z2,Z.value(J.themeColor)]])),128))]),f(V,null,{default:w(()=>[c2("界面显示")]),_:1}),j("ul",U1,[j("li",null,[Q1,f(W,{modelValue:$.greyVal,"onUpdate:modelValue":d[4]||(d[4]=J=>$.greyVal=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:T},null,8,["modelValue"])]),j("li",null,[X1,f(W,{modelValue:$.weakVal,"onUpdate:modelValue":d[5]||(d[5]=J=>$.weakVal=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:A},null,8,["modelValue"])]),j("li",null,[G1,f(W,{modelValue:$.tabsVal,"onUpdate:modelValue":d[6]||(d[6]=J=>$.tabsVal=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:M},null,8,["modelValue"])]),j("li",null,[K1,f(W,{modelValue:k.value,"onUpdate:modelValue":d[7]||(d[7]=J=>k.value=J),"inline-prompt":"","active-value":!0,"inactive-value":!1,"inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:r2},null,8,["modelValue"])]),j("li",null,[Y1,f(W,{modelValue:$.multiTagsCache,"onUpdate:modelValue":d[8]||(d[8]=J=>$.multiTagsCache=J),"inline-prompt":"","inactive-color":"#a6a6a6","active-text":"开","inactive-text":"关",onChange:_},null,8,["modelValue"])]),j("li",null,[J1,f(x2,{modelValue:L.value,"onUpdate:modelValue":d[9]||(d[9]=J=>L.value=J),size:"small",onChange:e2},{default:w(()=>[f(n2,{label:"card"},{default:w(()=>[c2("卡片")]),_:1}),f(n2,{label:"smart"},{default:w(()=>[c2("灵动")]),_:1})]),_:1},8,["modelValue"])])]),f(V),f(C2,{type:"danger",style:{width:"90%",margin:"24px 15px"},onClick:R},{default:w(()=>[f(N,{icon:o(A3),width:"15",height:"15",style:{"margin-right":"4px"}},null,8,["icon"]),c2(" 清空缓存并返回登录页 ")]),_:1})]),_:1})}}});const i8=d2(n8,[["__scopeId","data-v-b2e088d9"]]);var K2={exports:{}},jn={},h8=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},m3={exports:{}};typeof Object.create=="function"?m3.exports=function(n,h){n.super_=h,n.prototype=Object.create(h.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:m3.exports=function(n,h){n.super_=h;var e=function(){};e.prototype=h.prototype,n.prototype=new e,n.prototype.constructor=n};var e8=m3.exports;(function(i){var n=/%[sdj%]/g;i.format=function(c){if(!Z(c)){for(var l=[],d=0;d=W)return K;switch(K){case"%s":return String(V[d++]);case"%d":return Number(V[d++]);case"%j":try{return JSON.stringify(V[d++])}catch{return"[Circular]"}default:return K}}),N=V[d];d=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),L(l)?d.showHidden=l:l&&i._extend(d,l),S(d.showHidden)&&(d.showHidden=!1),S(d.depth)&&(d.depth=2),S(d.colors)&&(d.colors=!1),S(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=g),m(d,c,d.depth)}i.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function g(c,l){var d=u.styles[l];return d?"\x1B["+u.colors[d][0]+"m"+c+"\x1B["+u.colors[d][1]+"m":c}function t(c,l){return c}function s(c){var l={};return c.forEach(function(d,V){l[d]=!0}),l}function m(c,l,d){if(c.customInspect&&l&&R(l.inspect)&&l.inspect!==i.inspect&&!(l.constructor&&l.constructor.prototype===l)){var V=l.inspect(d,c);return Z(V)||(V=m(c,V,d)),V}var W=z(c,l);if(W)return W;var F=Object.keys(l),N=s(F);if(c.showHidden&&(F=Object.getOwnPropertyNames(l)),_(l)&&(F.indexOf("message")>=0||F.indexOf("description")>=0))return r(l);if(F.length===0){if(R(l)){var K=l.name?": "+l.name:"";return c.stylize("[Function"+K+"]","special")}if(T(l))return c.stylize(RegExp.prototype.toString.call(l),"regexp");if(M(l))return c.stylize(Date.prototype.toString.call(l),"date");if(_(l))return r(l)}var n2="",x2=!1,C2=["{","}"];if(p(l)&&(x2=!0,C2=["[","]"]),R(l)){var J=l.name?": "+l.name:"";n2=" [Function"+J+"]"}if(T(l)&&(n2=" "+RegExp.prototype.toString.call(l)),M(l)&&(n2=" "+Date.prototype.toUTCString.call(l)),_(l)&&(n2=" "+r(l)),F.length===0&&(!x2||l.length==0))return C2[0]+n2+C2[1];if(d<0)return T(l)?c.stylize(RegExp.prototype.toString.call(l),"regexp"):c.stylize("[Object]","special");c.seen.push(l);var v2;return x2?v2=a(c,l,d,N,F):v2=F.map(function(n3){return b(c,l,d,N,n3,x2)}),c.seen.pop(),x(v2,n2,C2)}function z(c,l){if(S(l))return c.stylize("undefined","undefined");if(Z(l)){var d="'"+JSON.stringify(l).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c.stylize(d,"string")}if(Q(l))return c.stylize(""+l,"number");if(L(l))return c.stylize(""+l,"boolean");if(k(l))return c.stylize("null","null")}function r(c){return"["+Error.prototype.toString.call(c)+"]"}function a(c,l,d,V,W){for(var F=[],N=0,K=l.length;N-1&&(F?K=K.split(`
`).map(function(x2){return" "+x2}).join(`
`).substr(2):K=`
`+K.split(`
`).map(function(x2){return" "+x2}).join(`
`))):K=c.stylize("[Circular]","special")),S(N)){if(F&&W.match(/^\d+$/))return K;N=JSON.stringify(""+W),N.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(N=N.substr(1,N.length-2),N=c.stylize(N,"name")):(N=N.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),N=c.stylize(N,"string"))}return N+": "+K}function x(c,l,d){var V=c.reduce(function(W,F){return F.indexOf(`
`)>=0,W+F.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?d[0]+(l===""?"":l+`
`)+" "+c.join(`,
`)+" "+d[1]:d[0]+l+" "+c.join(", ")+" "+d[1]}function p(c){return Array.isArray(c)}i.isArray=p;function L(c){return typeof c=="boolean"}i.isBoolean=L;function k(c){return c===null}i.isNull=k;function $(c){return c==null}i.isNullOrUndefined=$;function Q(c){return typeof c=="number"}i.isNumber=Q;function Z(c){return typeof c=="string"}i.isString=Z;function I(c){return typeof c=="symbol"}i.isSymbol=I;function S(c){return c===void 0}i.isUndefined=S;function T(c){return A(c)&&r2(c)==="[object RegExp]"}i.isRegExp=T;function A(c){return typeof c=="object"&&c!==null}i.isObject=A;function M(c){return A(c)&&r2(c)==="[object Date]"}i.isDate=M;function _(c){return A(c)&&(r2(c)==="[object Error]"||c instanceof Error)}i.isError=_;function R(c){return typeof c=="function"}i.isFunction=R;function e2(c){return c===null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||typeof c=="symbol"||typeof c>"u"}i.isPrimitive=e2,i.isBuffer=h8;function r2(c){return Object.prototype.toString.call(c)}function G(c){return c<10?"0"+c.toString(10):c.toString(10)}var P2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M2(){var c=new Date,l=[G(c.getHours()),G(c.getMinutes()),G(c.getSeconds())].join(":");return[c.getDate(),P2[c.getMonth()],l].join(" ")}i.log=function(){console.log("%s - %s",M2(),i.format.apply(i,arguments))},i.inherits=e8,i._extend=function(c,l){if(!l||!A(l))return c;for(var d=Object.keys(l),V=d.length;V--;)c[d[V]]=l[d[V]];return c};function H2(c,l){return Object.prototype.hasOwnProperty.call(c,l)}})(jn);var g8=process.platform==="win32",_2=jn;function o3(i,n){for(var h=[],e=0;e=0&&!i[e];e--);return h===0&&e===n?i:h>e?[]:i.slice(h,e+1)}var xn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,u8=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,u2={};function s3(i){var n=xn.exec(i),h=(n[1]||"")+(n[2]||""),e=n[3]||"",u=u8.exec(e),g=u[1],t=u[2],s=u[3];return[h,g,t,s]}function E3(i){var n=xn.exec(i),h=n[1]||"",e=!!h&&h[1]!==":";return{device:h,isUnc:e,isAbsolute:e||!!n[2],tail:n[3]}}function wn(i){return"\\\\"+i.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}u2.resolve=function(){for(var i="",n="",h=!1,e=arguments.length-1;e>=-1;e--){var u;if(e>=0?u=arguments[e]:i?(u=process.env["="+i],(!u||u.substr(0,3).toLowerCase()!==i.toLowerCase()+"\\")&&(u=i+"\\")):u=process.cwd(),_2.isString(u)){if(!u)continue}else throw new TypeError("Arguments to path.resolve must be strings");var g=E3(u),t=g.device,s=g.isUnc,m=g.isAbsolute,z=g.tail;if(!(t&&i&&t.toLowerCase()!==i.toLowerCase())&&(i||(i=t),h||(n=z+"\\"+n,h=m),i&&h))break}return s&&(i=wn(i)),n=o3(n.split(/[\\\/]+/),!h).join("\\"),i+(h?"\\":"")+n||"."};u2.normalize=function(i){var n=E3(i),h=n.device,e=n.isUnc,u=n.isAbsolute,g=n.tail,t=/[\\\/]$/.test(g);return g=o3(g.split(/[\\\/]+/),!u).join("\\"),!g&&!u&&(g="."),g&&t&&(g+="\\"),e&&(h=wn(h)),h+(u?"\\":"")+g};u2.isAbsolute=function(i){return E3(i).isAbsolute};u2.join=function(){for(var i=[],n=0;n=-1&&!n;h--){var e=h>=0?arguments[h]:process.cwd();if(_2.isString(e)){if(!e)continue}else throw new TypeError("Arguments to path.resolve must be strings");i=e+"/"+i,n=e[0]==="/"}return i=o3(i.split("/"),!n).join("/"),(n?"/":"")+i||"."};l2.normalize=function(i){var n=l2.isAbsolute(i),h=i&&i[i.length-1]==="/";return i=o3(i.split("/"),!n).join("/"),!i&&!n&&(i="."),i&&h&&(i+="/"),(n?"/":"")+i};l2.isAbsolute=function(i){return i.charAt(0)==="/"};l2.join=function(){for(var i="",n=0;n'},c8={width:1024,height:1024,body:''},r8={width:1024,height:1024,body:''},a8={width:1024,height:1024,body:''},d8={key:0},y8={key:1},qn=h2({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(i){const{layout:n,isCollapse:h,tooltipEffect:e,getDivStyle:u}=S2(),g=i,t=D(()=>({width:"100%",textAlign:"center"})),s=D(()=>({display:"flex",alignItems:"center"})),m=D(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),z=D(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:n.value==="horizontal"?"0 5px 0 0":h.value?"0 auto":"0 5px 0 0"})),r=D(()=>h.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),a=D(()=>I=>{var S;return h.value?{width:"100%",textAlign:(I==null?void 0:I.parentId)===null||n.value==="mix"&&((S=I==null?void 0:I.pathList)==null?void 0:S.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),b=D(()=>{var I;return(I=p2())!=null&&I.MenuArrowIconNoTransition?{"expand-close-icon":I2(c8),"expand-open-icon":I2(l8),"collapse-close-icon":I2(a8),"collapse-open-icon":I2(r8)}:""}),x=O(null),p=new WeakMap,L=O(null);function k(I){p.get(I)||D2(()=>{var S,T;((S=L.value)==null?void 0:S.scrollWidth)>((T=L.value)==null?void 0:T.clientWidth)?Object.assign(I,{showTooltip:!0}):Object.assign(I,{showTooltip:!1}),p.set(I,!0)})}function $(I,S){var A;const T=((I==null?void 0:I.length)>1?I.toString().slice(0,1):I)+"...";return S&&!(h.value&&(S==null?void 0:S.parentId)===null)?n.value==="mix"&&((A=S==null?void 0:S.pathList)==null?void 0:A.length)===2&&h.value?T:I:T}function Q(I=[],S){var A,M;const T=I.filter(_=>(x.value=_,!0));return(M=(A=T[0])==null?void 0:A.meta)!=null&&M.showParent?!1:T.length===1?!0:T.length===0?(x.value={...S,path:"",noShowingChildren:!0},!0):!1}function Z(I){const S=/^http(s?):\/\//;return S.test(I)||S.test(g.basePath)?I||g.basePath:s8.posix.resolve(g.basePath,I)}return(I,S)=>{const T=q("el-tooltip"),A=q("el-menu-item"),M=q("sidebar-item",!0),_=q("el-sub-menu");return Q(g.item.children,g.item)&&(!x.value.children||x.value.noShowingChildren)?(y(),B(A,{key:0,index:Z(x.value.path),class:f2({"submenu-title-noDropdown":!i.isNest}),style:s2(s.value)},{title:w(()=>[j("div",{style:s2(o(u))},[o(n)==="horizontal"?(y(),C("span",d8,i2(x.value.meta.title),1)):(y(),B(T,{key:1,placement:"top",effect:o(e),offset:-10,disabled:!x.value.showTooltip},{content:w(()=>[c2(i2(x.value.meta.title),1)]),default:w(()=>[j("span",{ref_key:"menuTextRef",ref:L,style:s2(m.value),onMouseover:S[0]||(S[0]=R=>k(x.value))},i2(x.value.meta.title),37)]),_:1},8,["effect","disabled"])),f(z3,{extraIcon:x.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:w(()=>{var R,e2,r2,G,P2;return[T2(g.item.meta.icon)?(y(),C("div",{key:0,class:"sub-menu-icon",style:s2(z.value)},[(y(),B(E2(o(I2)(T2(x.value.meta.icon)||g.item.meta&&T2(g.item.meta.icon)))))],4)):X("",!0),!((R=g.item)!=null&&R.meta.icon)&&o(h)&&o(n)==="vertical"&&((r2=(e2=g.item)==null?void 0:e2.pathList)==null?void 0:r2.length)===1?(y(),C("span",{key:1,style:s2(t.value)},i2($(x.value.meta.title)),5)):X("",!0),!x.value.meta.icon&&o(h)&&o(n)==="mix"&&((P2=(G=g.item)==null?void 0:G.pathList)==null?void 0:P2.length)===2?(y(),C("span",{key:2,style:s2(t.value)},i2($(x.value.meta.title)),5)):X("",!0)]}),_:1},8,["index","class","style"])):(y(),B(_,Fn({key:1,ref:"subMenu"},b.value,{index:Z(g.item.path)}),{title:w(()=>[T2(g.item.meta.icon)?(y(),C("div",{key:0,style:s2(z.value),class:"sub-menu-icon"},[(y(),B(E2(o(I2)(g.item.meta&&T2(g.item.meta.icon)))))],4)):X("",!0),o(n)==="horizontal"?(y(),C("span",y8,i2(g.item.meta.title),1)):X("",!0),o(h)&&T2(g.item.meta.icon)&&g.item.parentId===null?X("",!0):(y(),C("div",{key:2,style:s2(a.value(g.item))},[o(n)!=="horizontal"?(y(),B(T,{key:0,placement:"top",effect:o(e),offset:-10,disabled:!g.item.showTooltip},{content:w(()=>[c2(i2(g.item.meta.title),1)]),default:w(()=>[j("span",{ref_key:"menuTextRef",ref:L,style:s2(r.value),onMouseover:S[1]||(S[1]=R=>k(g.item))},i2($(g.item.meta.title,g.item)),37)]),_:1},8,["effect","disabled"])):X("",!0),o(h)?X("",!0):(y(),B(z3,{key:1,extraIcon:g.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:w(()=>[(y(!0),C(b2,null,w2(g.item.children,R=>(y(),B(M,{key:R.path,"is-nest":!0,item:R,"base-path":Z(R.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),z8={class:"container"},f8=h2({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(i,{emit:n}){const h=i,e=O(!1),{tooltipEffect:u}=S2(),g=D(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","text-primary","cursor-pointer","duration-[100ms]","hover:text-primary","dark:hover:!text-white"]),t=n,s=()=>{t("toggleClick")};return(m,z)=>{const r=q("IconifyIconOffline"),a=q("el-tooltip");return y(),C("div",z8,[f(a,{placement:"right",visible:e.value,effect:o(u),content:h.isActive?"点击折叠":"点击展开"},{default:w(()=>[f(r,{icon:o(mn),class:f2(g.value),style:s2({transform:h.isActive?"none":"rotateY(180deg)"}),onClick:s,onMouseenter:z[0]||(z[0]=b=>e.value=!0),onMouseleave:z[1]||(z[1]=b=>e.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}});const m8=d2(f8,[["__scopeId","data-v-3f2910be"]]),p8=h2({__name:"vertical",setup(i){var x;const n=t3(),h=O(((x=y2().getItem(`${m2()}configure`))==null?void 0:x.showLogo)??!0),{device:e,pureApp:u,isCollapse:g,menuSelect:t,toggleSideBar:s}=S2(),m=O([]),z=D(()=>z2().wholeMenus),r=D(()=>u.layout==="mix"?!1:z.value.length===0),a=D(()=>{var p;return N2((p=n.meta)==null?void 0:p.activePath)?n.path:n.meta.activePath});function b(){let p="";p=a.value,m.value=[];const L=q3(p,z2().wholeMenus),k=g3(L[0]||p,z2().wholeMenus);k!=null&&k.children&&(m.value=k==null?void 0:k.children)}return F2(()=>[n.path,z2().wholeMenus],()=>{n.path.includes("/redirect")||(b(),t(n.path))}),B2(()=>{b(),a2.on("logoChange",p=>{h.value=p})}),k3(()=>{a2.off("logoChange")}),(p,L)=>{const k=q("el-menu"),$=q("el-scrollbar"),Q=w3("loading");return O2((y(),C("div",{class:f2(["sidebar-container",h.value?"has-logo":""])},[f($,{"wrap-class":"scrollbar-wrapper",class:"pc"},{default:w(()=>[f(k,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:o(g),"default-active":a.value,"collapse-transition":!1},{default:w(()=>[(y(!0),C(b2,null,w2(z.value,Z=>(y(),B(qn,{key:Z.path,item:Z,"base-path":Z.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1}),o(e)!=="mobile"?(y(),B(m8,{key:0,"is-active":o(u).sidebar.opened,onToggleClick:o(s)},null,8,["is-active","onToggleClick"])):X("",!0)],2)),[[Q,r.value]])}}});const b8=d2(p8,[["__scopeId","data-v-b5c1d6ad"]]),j8=""+new URL("../../logo.svg",import.meta.url).href,G3=[{key:"1",name:"通知",list:[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"你收到了 12 份新周报",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"你推荐的 前端高手 已通过第三轮面试",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png",title:"这种模板可以区分多种通知类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"展示标题内容超过一行后的处理方式,如果内容超过1行将自动截断并支持tooltip显示完整标题。",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png",title:"左侧图标用于区分不同的类型",datetime:"一年前",description:"",type:"1"}]}],x8={class:"notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"},w8={class:"notice-container-text"},q8={class:"notice-text-title text-[#000000d9] dark:text-white"},v8={class:"notice-text-datetime text-[#00000073] dark:text-white"},k8=h2({__name:"noticeItem",props:{noticeItem:{type:Object,default:()=>{}}},setup(i){const n=i,h=O(null),e=O(!1),u=O(null),g=O(!1),{tooltipEffect:t}=S2(),s=b3();function m(){D2(()=>{var r,a;((r=h.value)==null?void 0:r.scrollWidth)>((a=h.value)==null?void 0:a.clientWidth)?e.value=!0:e.value=!1})}function z(r,a){const b=document.createElement("span");b.innerText=a,b.className="getDescriptionWidth",document.querySelector("body").appendChild(b);const x=document.querySelector(".getDescriptionWidth").offsetWidth;document.querySelector(".getDescriptionWidth").remove();const p=r.target.offsetWidth;x>2*p?g.value=!0:g.value=!1}return(r,a)=>{var L,k;const b=q("el-avatar"),x=q("el-tooltip"),p=q("el-tag");return y(),C("div",x8,[n.noticeItem.avatar?(y(),B(b,{key:0,size:30,src:n.noticeItem.avatar,class:"notice-container-avatar"},null,8,["src"])):X("",!0),j("div",w8,[j("div",q8,[f(x,{"popper-class":"notice-title-popper",effect:o(t),disabled:!e.value,content:n.noticeItem.title,placement:"top-start",enterable:!o(s)},{default:w(()=>[j("div",{ref_key:"titleRef",ref:h,class:"notice-title-content",onMouseover:m},i2(n.noticeItem.title),545)]),_:1},8,["effect","disabled","content","enterable"]),(L=n.noticeItem)!=null&&L.extra?(y(),B(p,{key:0,type:(k=n.noticeItem)==null?void 0:k.status,size:"small",class:"notice-title-extra"},{default:w(()=>{var $;return[c2(i2(($=n.noticeItem)==null?void 0:$.extra),1)]}),_:1},8,["type"])):X("",!0)]),f(x,{"popper-class":"notice-title-popper",effect:o(t),disabled:!g.value,content:n.noticeItem.description,placement:"top-start"},{default:w(()=>[j("div",{ref_key:"descriptionRef",ref:u,class:"notice-text-description",onMouseover:a[0]||(a[0]=$=>z($,n.noticeItem.description))},i2(n.noticeItem.description),545)]),_:1},8,["effect","disabled","content"]),j("div",v8,i2(n.noticeItem.datetime),1)])])}}});const _8=d2(k8,[["__scopeId","data-v-8dd11b04"]]),C8={key:0},T8=h2({__name:"noticeList",props:{list:{type:Array,default:()=>[]}},setup(i){const n=i;return(h,e)=>{const u=q("el-empty");return n.list.length?(y(),C("div",C8,[(y(!0),C(b2,null,w2(n.list,(g,t)=>(y(),B(_8,{noticeItem:g,key:t},null,8,["noticeItem"]))),128))])):(y(),B(u,{key:1,description:"暂无数据"}))}}}),S8={width:1024,height:1024,body:''},M8={class:"dropdown-badge navbar-bg-hover select-none"},$8={class:"header-notice-icon"},I8={key:1},A8={class:"noticeList-container"},L8=h2({__name:"index",setup(i){const n=O(0),h=O(G3),e=O(G3[0].key);return h.value.map(u=>n.value+=u.list.length),(u,g)=>{const t=q("IconifyIconOffline"),s=q("el-badge"),m=q("el-empty"),z=q("el-scrollbar"),r=q("el-tab-pane"),a=q("el-tabs"),b=q("el-dropdown-menu"),x=q("el-dropdown");return y(),B(x,{trigger:"click",placement:"bottom-end"},{dropdown:w(()=>[f(b,null,{default:w(()=>[f(a,{stretch:!0,modelValue:e.value,"onUpdate:modelValue":g[0]||(g[0]=p=>e.value=p),class:"dropdown-tabs",style:s2({width:h.value.length===0?"200px":"330px"})},{default:w(()=>[h.value.length===0?(y(),B(m,{key:0,description:"暂无消息","image-size":60})):(y(),C("span",I8,[(y(!0),C(b2,null,w2(h.value,p=>(y(),B(r,{key:p.key,label:`${p.name}(${p.list.length})`,name:`${p.key}`},{default:w(()=>[f(z,{"max-height":"330px"},{default:w(()=>[j("div",A8,[f(T8,{list:p.list},null,8,["list"])])]),_:2},1024)]),_:2},1032,["label","name"]))),128))]))]),_:1},8,["modelValue","style"])]),_:1})]),default:w(()=>[j("span",M8,[f(s,{value:n.value,max:99},{default:w(()=>[j("span",$8,[f(t,{icon:o(S8)},null,8,["icon"])])]),_:1},8,["value"])])]),_:1})}}});const E8=d2(L8,[["__scopeId","data-v-018a87e3"]]),O8=i=>(_3("data-v-3e9274a6"),i=i(),C3(),i),P8={class:"horizontal-header"},V8=O8(()=>j("img",{src:j8,alt:"logo"},null,-1)),D8={class:"horizontal-header-right"},B8={class:"el-dropdown-link navbar-bg-hover"},H8=["src"],R8={key:0,class:"dark:text-white"},N8=h2({__name:"horizontal",setup(i){const n=O(),{route:h,title:e,logout:u,backTopMenu:g,onPanel:t,username:s,userAvatar:m,avatarsStyle:z}=S2(),r=D(()=>{var a;return N2((a=h.meta)==null?void 0:a.activePath)?h.path:h.meta.activePath});return D2(()=>{var a;(a=n.value)==null||a.handleResize()}),(a,b)=>{const x=q("el-menu"),p=q("IconifyIconOffline"),L=q("el-dropdown-item"),k=q("el-dropdown-menu"),$=q("el-dropdown"),Q=w3("loading");return O2((y(),C("div",P8,[j("div",{class:"horizontal-header-left",onClick:b[0]||(b[0]=(...Z)=>o(g)&&o(g)(...Z))},[V8,j("span",null,i2(o(e)),1)]),f(x,{router:"",ref_key:"menuRef",ref:n,mode:"horizontal",class:"horizontal-header-menu","default-active":r.value},{default:w(()=>[(y(!0),C(b2,null,w2(o(z2)().wholeMenus,Z=>(y(),B(qn,{key:Z.path,item:Z,"base-path":Z.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),j("div",D8,[f(zn),f(E8,{id:"header-notice"}),f($,{trigger:"click"},{dropdown:w(()=>[f(k,{class:"logout"},{default:w(()=>[f(L,{onClick:o(u)},{default:w(()=>[f(p,{icon:o(A3),style:{margin:"5px"}},null,8,["icon"]),c2(" 退出系统 ")]),_:1},8,["onClick"])]),_:1})]),default:w(()=>[j("span",B8,[j("img",{src:o(m),style:s2(o(z))},null,12,H8),o(s)?(y(),C("p",R8,i2(o(s)),1)):X("",!0)])]),_:1}),j("span",{class:"set-icon navbar-bg-hover",title:"打开项目配置",onClick:b[1]||(b[1]=(...Z)=>o(t)&&o(t)(...Z))},[f(p,{icon:o(fn)},null,8,["icon"])])])])),[[Q,o(z2)().wholeMenus.length===0]])}}});const F8=d2(N8,[["__scopeId","data-v-3e9274a6"]]),Z8={key:0},W8=h2({__name:"index",setup(i){const n=O(),{isDark:h}=hn(),{layout:e}=gn(),u=b3(),g=T3(),{$storage:t}=Y2(),s=v3({sidebar:D(()=>A2().sidebar),device:D(()=>A2().device),fixedHeader:D(()=>g.fixedHeader),classes:D(()=>({hideSidebar:!s.sidebar.opened,openSidebar:s.sidebar.opened,withoutAnimation:s.sidebar.withoutAnimation,mobile:s.device==="mobile"})),hideTabs:D(()=>t==null?void 0:t.configure.hideTabs)});function m(b){var x,p,L,k;window.document.body.setAttribute("layout",b),t.layout={layout:`${b}`,theme:(x=t.layout)==null?void 0:x.theme,darkMode:(p=t.layout)==null?void 0:p.darkMode,sidebarStatus:(L=t.layout)==null?void 0:L.sidebarStatus,epThemeColor:(k=t.layout)==null?void 0:k.epThemeColor}}function z(b,x){A2().toggleDevice(b),A2().toggleSideBar(x,"resize")}let r=!0;x3(n,b=>{if(u)return;const x=b[0],{width:p}=x.contentRect;p<=760?m("vertical"):m(A2().layout),p>0&&p<=760?(z("mobile",!1),r=!0):p>760&&p<=990?r&&(z("desktop",!1),r=!1):p>990&&!s.sidebar.isClickCollapse?(z("desktop",!0),r=!0):(z("desktop",!1),r=!1)}),B2(()=>{u&&z("mobile",!1)}),en(()=>{sn().dataThemeChange()});const a=h2({render(){return U2("div",{class:{"fixed-header":s.fixedHeader},style:[s.hideTabs&&e.value.includes("horizontal")?h.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!g.hiddenSideBar&&(e.value.includes("vertical")||e.value.includes("mix"))?U2(N4):null,!g.hiddenSideBar&&e.value.includes("horizontal")?U2(F8):null,U2(o1)]})}});return(b,x)=>{const p=q("el-backtop"),L=q("el-scrollbar");return y(),C("div",{ref_key:"appWrapperRef",ref:n,class:f2(["app-wrapper",s.classes])},[O2(j("div",{class:"app-mask",onClick:x[0]||(x[0]=k=>o(A2)().toggleSideBar())},null,512),[[Z2,s.device==="mobile"&&s.sidebar.opened&&o(e).includes("vertical")]]),O2(f(b8,null,null,512),[[Z2,!o(g).hiddenSideBar&&(o(e).includes("vertical")||o(e).includes("mix"))]]),j("div",{class:f2(["main-container",o(g).hiddenSideBar?"main-hidden":""])},[s.fixedHeader?(y(),C("div",Z8,[f(o(a)),f(X3,{"fixed-header":s.fixedHeader},null,8,["fixed-header"])])):(y(),B(L,{key:1},{default:w(()=>[f(p,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:w(()=>[f(o(bn))]),_:1}),f(o(a)),f(X3,{"fixed-header":s.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),f(i8)],2)}}});const K8=d2(W8,[["__scopeId","data-v-58ce028c"]]);export{K8 as default};