-p.value&&G+re<-p.value+j?p.value=Math.min(0,j-re-G-A):p.value=-(G-(j-A-re))}),F=$=>{var G;const A=Y.value?(G=Y.value)==null?void 0:G.offsetWidth:0,P=k.value?k.value.offsetWidth:0;$>0?p.value=Math.min(0,p.value+$):A=-(P-A)&&(p.value=Math.max(p.value+$,A-P)):p.value=0};function oe($){const A=f.value.some(G=>G.path===$);function P(G,re){A||G.forEach(j=>{j.path===re||j.path===re?He().handleTags("push",{path:re,meta:j.meta,name:j.name}):j.children&&j.children.length>0&&P(j.children,re)})}P(o.options.routes,$)}function W(){const{fullPath:$,query:A}=n(e);o.replace({path:"/redirect"+$,query:A}),ft(e,"refresh")}function U($,A,P){var B,ie,we,Lt;const G=f.value.findIndex(Se=>{if(Se.query){if(Se.path===$.path)return Se.query===$.query}else if(Se.params){if(Se.path===$.path)return Se.params===$.params}else return Se.path===$.path}),re=(Se,rn,cn)=>{cn?He().handleTags("equal",[qe==="false"?$n[0]:ke(lt()),$]):He().handleTags("splice","",{startIndex:Se,length:rn}),s()};P==="other"?re(1,1,!0):P==="left"?re(1,G-1):P==="right"?re(G+1,f.value.length):re(G,1);const j=He().handleTags("slice");if(A===e.path){if(P==="left")return;(B=j[0])!=null&&B.query?o.push({name:j[0].name,query:j[0].query}):(ie=j[0])!=null&&ie.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}else{if(!f.value.length||f.value.some(Se=>Se.path===e.path))return;(we=j[0])!=null&&we.query?o.push({name:j[0].name,query:j[0].query}):(Lt=j[0])!=null&&Lt.params?o.push({name:j[0].name,params:j[0].params}):o.push({path:j[0].path})}}function z($,A){U($,$.path,A),ft(e)}function ae($,A,P){if(A&&A.disabled)return;let G;switch(P?G={path:P.path,meta:P.meta,name:P.name,query:P==null?void 0:P.query,params:P==null?void 0:P.params}:G={path:e.path,meta:e.meta},$){case 0:W();break;case 1:z(G);break;case 2:z(G,"left");break;case 3:z(G,"right");break;case 4:z(G,"other");break;case 5:He().handleTags("splice","",{startIndex:1,length:f.value.length}),o.push(ze),ft(e);break;case 6:r(),setTimeout(()=>{Le.value?(c[6].icon=Dt,c[6].text=ve("buttons.hswholeExitFullScreen")):(c[6].icon=Qe,c[6].text=ve("buttons.hswholeFullScreen"))},100);break;case 7:X(),setTimeout(()=>{y.hiddenSideBar?(c[7].icon=Dt,c[7].text=ve("buttons.hscontentExitFullScreen")):(c[7].icon=Qe,c[7].text=ve("buttons.hscontentFullScreen"))},100);break}setTimeout(()=>{Pe(e.fullPath,e.query)})}function $e($){const{key:A,item:P}=$;ae(A,P)}function Fe($,A){S(),ae($,A,V.value)}function We($){Array.of(1,2,3,4,5).forEach(A=>{c[A].show=$})}function De($){Array.of(1,2,3,4,5).forEach(A=>{c[A].disabled=$})}function Pe($,A={},P=!1){const G=f.value,re=f.value.length;let j=-1;je(A)?j=G.findIndex(B=>B.path===$):j=G.findIndex(B=>Be(B.query,A)),We(!0),P&&(c[0].show=!0),j===1&&re!==2?(c[2].show=!1,Array.of(1,3,4,5).forEach(B=>{c[B].disabled=!1}),c[2].disabled=!0):j===1&&re===2?(De(!1),Array.of(2,3,4).forEach(B=>{c[B].show=!1,c[B].disabled=!0})):re-1===j&&j!==0?(c[3].show=!1,Array.of(1,2,4,5).forEach(B=>{c[B].disabled=!1}),c[3].disabled=!0):j===0||$===`/redirect${ze}`?De(!0):De(!1)}function sn($,A){S(),$.path===ze?(We(!1),c[0].show=!0):e.path!==$.path&&e.name!==$.name?(c[0].show=!1,Pe($.path,$.query)):f.value.length===2&&e.path!==$.path?(We(!0),c[4].show=!1):e.path===$.path&&Pe($.path,$.query,!0),V.value=$;const P=105,G=n(J).getBoundingClientRect().left,j=n(J).offsetWidth-P,B=A.clientX-G+5;B>j?x.value=j:x.value=B,St().hiddenSideBar?m.value=A.clientY:m.value=A.clientY-40,Ee(()=>{a.value=!0})}function ln($){const{name:A,path:P}=$;A?$.query?o.push({name:A,query:$.query}):$.params?o.push({name:A,params:$.params}):o.push({name:A}):o.push({path:P})}return Ft(me,S,{detectIframe:!0}),Ue(e,()=>{b.value=-1,s()}),Ue(Le,()=>{c[6].icon=Qe,c[6].text=ve("buttons.hswholeFullScreen")}),L(()=>{l&&(Pe(e.fullPath),ye.on("tagViewsChange",$=>{n(d)!==$&&(d.value=$)}),ye.on("tagViewsShowModel",$=>{v.value=$}),ye.on("changLayoutRoute",$=>{oe($),setTimeout(()=>{Pe($)})}),vt(Y,Ze(()=>s())))}),wt(()=>{ye.off("tagViewsChange"),ye.off("tagViewsShowModel"),ye.off("changLayoutRoute")}),($,A)=>{const P=T("IconifyIconOffline"),G=T("el-dropdown-item"),re=T("el-dropdown-menu"),j=T("el-dropdown");return n(d)?K("",!0):(u(),I("div",{key:0,ref_key:"containerDom",ref:J,class:"tags-view"},[ce(_("span",Ta,[i(P,{icon:n($a),onClick:A[0]||(A[0]=B=>F(200))},null,8,["icon"])],512),[[Ce,ee.value]]),_("div",{ref_key:"scrollbarDom",ref:Y,class:"scroll-container"},[_("div",{ref_key:"tabDom",ref:k,class:"tab select-none",style:te(n(w))},[(u(!0),I(ge,null,xe(n(f),(B,ie)=>(u(),I("div",{ref_for:!0,ref:"dynamic"+ie,key:ie,class:se(["scroll-item is-closable",n(H)(B)]),onContextmenu:Ge(we=>sn(B,we),["prevent"]),onMouseenter:Ge(we=>n(Z)(ie),["prevent"]),onMouseleave:Ge(we=>n(E)(ie),["prevent"]),onClick:we=>ln(B)},[_("span",Va,Q(n(M)(B.meta.title)),1),n(C)(B,ie)||ie===n(b)&&ie!==0?(u(),I("span",{key:0,class:"el-icon-close",onClick:Ge(we=>z(B),["stop"])},[i(P,{icon:n(Sa)},null,8,["icon"])],8,za)):K("",!0),n(v)!=="card"?(u(),I("div",{key:1,ref_for:!0,ref:"schedule"+ie,class:se([n(R)(B)])},null,2)):K("",!0)],42,Ma))),128))],4)],512),ce(_("span",La,[i(P,{icon:n(qn),onClick:A[1]||(A[1]=B=>F(-200))},null,8,["icon"])],512),[[Ce,ee.value]]),i(kt,{name:"el-zoom-in-top"},{default:g(()=>[ce((u(),I("ul",{ref_key:"contextmenuRef",ref:me,key:Math.random(),style:te(n(q)),class:"contextmenu"},[(u(!0),I(ge,null,xe(n(c).slice(0,6),(B,ie)=>(u(),I("div",{key:ie,style:{display:"flex","align-items":"center"}},[B.show?(u(),I("li",{key:0,onClick:we=>Fe(ie,B)},[i(P,{icon:B.icon},null,8,["icon"]),de(" "+Q(n(M)(B.text)),1)],8,Aa)):K("",!0)]))),128))],4)),[[Ce,n(a)]])]),_:1}),i(j,{trigger:"click",placement:"bottom-end",onCommand:$e},{dropdown:g(()=>[i(re,null,{default:g(()=>[(u(!0),I(ge,null,xe(n(c),(B,ie)=>(u(),D(G,{key:ie,command:{key:ie,item:B},divided:B.divided,disabled:B.disabled},{default:g(()=>[i(P,{icon:B.icon},null,8,["icon"]),de(" "+Q(n(M)(B.text)),1)]),_:2},1032,["command","divided","disabled"]))),128))]),_:1})]),default:g(()=>[_("span",Ha,[i(P,{icon:n(Ca),class:"dark:text-white"},null,8,["icon"])])]),_:1})],512))}}}),Oa=fe(Ea,[["__scopeId","data-v-cb8cde78"]]),Da={class:"layout-footer"},Pa={class:"ml-1 hover:text-primary",href:"https://github.com/pure-admin",target:"_blank"},Za=ne({__name:"index",setup(t){const e=Je("Title");return(o,a)=>(u(),I("footer",Da,[de(" MIT © 2020-PRESENT "),_("a",Pa,Q(n(e)),1)]))}}),jt=fe(Za,[["__scopeId","data-v-7e9cc56a"]]),Ra={class:"grow"},ja={key:1,class:"grow"},Ba=ne({__name:"appMain",props:{fixedHeader:Boolean},setup(t){const e=t,{$storage:o,$config:a}=rt(),d=N(()=>a==null?void 0:a.KeepAlive),l=N(()=>p=>p.meta.transition),f=N(()=>o==null?void 0:o.configure.hideTabs),c=N(()=>o==null?void 0:o.configure.hideFooter),m=N(()=>(o==null?void 0:o.layout.layout)==="vertical"),x=N(()=>[f.value&&m?"padding-top: 48px;":"",!f.value&&m?"padding-top: 85px;":"",f.value&&!m.value?"padding-top: 48px;":"",!f.value&&!m.value?"padding-top: 85px;":"",e.fixedHeader?"":`padding-top: 0;${f.value?"min-height: calc(100vh - 48px);":"min-height: calc(100vh - 86px);"}`]),v=ne({props:{route:{type:void 0,required:!0}},render(){var w,C,H;const p=((w=l.value(this.route))==null?void 0:w.name)||"fade-transform",y=(C=l.value(this.route))==null?void 0:C.enterTransition,b=(H=l.value(this.route))==null?void 0:H.leaveTransition;return Ye(kt,{name:y?"pure-classes-transition":p,enterActiveClass:y?`animate__animated ${y}`:void 0,leaveActiveClass:b?`animate__animated ${b}`:void 0,mode:"out-in",appear:!0},{default:()=>[this.$slots.default()]})}});return(p,y)=>{const b=T("el-backtop"),w=T("el-scrollbar"),C=T("router-view");return u(),I("section",{class:se([e.fixedHeader?"app-main":"app-main-nofixed-header"]),style:te(x.value)},[i(C,null,{default:g(({Component:H,route:V})=>[e.fixedHeader?(u(),D(w,{key:0,"wrap-style":{display:"flex","flex-wrap":"wrap"},"view-style":{display:"flex",flex:"auto",overflow:"auto","flex-direction":"column"}},{default:g(()=>[i(b,{title:"回到顶部",target:".app-main .el-scrollbar__wrap"},{default:g(()=>[i(n(Xt))]),_:1}),_("div",Ra,[i(n(v),{route:V},{default:g(()=>[d.value?(u(),D(Pt,{key:0,include:n(be)().cachePageList},[(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]),c.value?K("",!0):(u(),D(jt,{key:0}))]),_:2},1024)):(u(),I("div",ja,[i(n(v),{route:V},{default:g(()=>[d.value?(u(),D(Pt,{key:0,include:n(be)().cachePageList},[(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))],1032,["include"])):(u(),D(Ve(H),{key:V.fullPath,class:"main-content"}))]),_:2},1032,["route"])]))]),_:1}),!c.value&&!e.fixedHeader?(u(),D(jt,{key:0})):K("",!0)],6)}}}),Bt=fe(Ba,[["__scopeId","data-v-14e5d547"]]),en=t=>(Ut("data-v-fbc6ff94"),t=t(),Wt(),t),Na=en(()=>_("div",{class:"right-panel-background"},null,-1)),qa={class:"project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"},Fa=en(()=>_("h4",{class:"dark:text-white"},"项目配置",-1)),Ua={class:"flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"},Wa=ne({__name:"index",setup(t){const e=O(null),o=O(!1),a=N(()=>["outline-none","width-[20px]","height-[20px]","rounded-[4px]","cursor-pointer","transition-colors","hover:bg-[#0000000f]","dark:hover:bg-[#ffffff1f]","dark:hover:text-[#ffffffd9]"]),{onReset:d}=$t();return Ft(e,l=>{l.clientX>e.value.offsetLeft||(o.value=!1)}),Oe(()=>{ye.on("openPanel",()=>{o.value=!0})}),wt(()=>{ye.off("openPanel")}),(l,f)=>{const c=T("IconifyIconOffline"),m=T("el-scrollbar"),x=T("el-button"),v=nt("tippy");return u(),I("div",{class:se([{show:o.value},"right-panel-container"])},[Na,_("div",{ref_key:"target",ref:e,class:"right-panel bg-bg_color"},[_("div",qa,[Fa,ce((u(),I("span",{class:se(a.value)},[i(c,{class:"dark:text-white",width:"20px",height:"20px",icon:n(Qt),onClick:f[0]||(f[0]=p=>o.value=!o.value)},null,8,["icon"])],2)),[[v,{content:"关闭配置",placement:"bottom-start",zIndex:41e3}]])]),i(m,null,{default:g(()=>[Sn(l.$slots,"default",{},void 0,!0)]),_:3}),_("div",Ua,[ce((u(),D(x,{type:"danger",text:"",bg:"",onClick:n(d)},{default:g(()=>[de(" 清空缓存 ")]),_:1},8,["onClick"])),[[v,{content:"清空缓存并返回登录页",placement:"left-start",zIndex:41e3}]])])],512)],2)}}}),Ga=fe(Wa,[["__scopeId","data-v-fbc6ff94"]]),pe=t=>(Ut("data-v-b0a3d069"),t=t(),Wt(),t),Ka={class:"p-6"},Xa=pe(()=>_("p",{class:"mb-3 font-medium text-sm dark:text-white"},"整体风格",-1)),Ya=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"主题色",-1)),Ja={class:"theme-color"},Qa=["onClick"],es=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-sm dark:text-white"},"导航模式",-1)),ts={class:"pure-theme"},ns=pe(()=>_("div",null,null,-1)),os=pe(()=>_("div",null,null,-1)),as=[ns,os],ss=pe(()=>_("div",null,null,-1)),ls=pe(()=>_("div",null,null,-1)),rs=[ss,ls],is=pe(()=>_("div",null,null,-1)),cs=pe(()=>_("div",null,null,-1)),us=[is,cs],ds=pe(()=>_("p",{class:"mt-5 mb-3 font-medium text-base dark:text-white"},"页签风格",-1)),hs=pe(()=>_("p",{class:"mt-5 mb-1 font-medium text-sm dark:text-white"},"界面显示",-1)),fs={class:"setting"},ps=pe(()=>_("span",{class:"dark:text-white"},"灰色模式",-1)),ms=pe(()=>_("span",{class:"dark:text-white"},"色弱模式",-1)),vs=pe(()=>_("span",{class:"dark:text-white"},"隐藏标签页",-1)),_s=pe(()=>_("span",{class:"dark:text-white"},"隐藏页脚",-1)),gs=pe(()=>_("span",{class:"dark:text-white"},"Logo",-1)),ys=pe(()=>_("span",{class:"dark:text-white"},"页签持久化",-1)),bs=ne({__name:"index",setup(t){var ze,qe,Le,r;const{device:e}=Te(),{isDark:o}=Gt(),{$storage:a}=rt(),d=O(),l=O(),f=O(),{dataTheme:c,layoutTheme:m,themeColors:x,toggleClass:v,dataThemeChange:p,setLayoutThemeColor:y}=$t();if(n(m)){const s=n(m).layout,h=n(m).theme;Ln({scopeName:`layout-theme-${h}`}),ee(s)}const b=O((qe=(ze=a.configure)==null?void 0:ze.showModel)!=null?qe:"smart"),w=O((r=(Le=a.configure)==null?void 0:Le.showLogo)!=null?r:!0),C=bt({greyVal:a.configure.grey,weakVal:a.configure.weak,tabsVal:a.configure.hideTabs,showLogo:a.configure.showLogo,showModel:a.configure.showModel,hideFooter:a.configure.hideFooter,multiTagsCache:a.configure.multiTagsCache}),H=N(()=>s=>({background:s})),V=N(()=>s=>!(s==="light"&&o.value));function R(s,h){const F=a.configure;F[s]=h,a.configure=F}const q=s=>{v(C.greyVal,"html-grey",document.querySelector("html")),R("grey",s)},S=s=>{v(C.weakVal,"html-weakness",document.querySelector("html")),R("weak",s)},L=()=>{const s=C.tabsVal;R("hideTabs",s),ye.emit("tagViewsChange",s)},Z=()=>{const s=C.hideFooter;R("hideFooter",s)},E=()=>{const s=C.multiTagsCache;R("multiTagsCache",s),He().multiTagsCacheChange(s)};function M({option:s}){const{value:h}=s;b.value=h,R("showModel",h),ye.emit("tagViewsShowModel",h)}function X(){n(w)?R("showLogo",!0):R("showLogo",!1),ye.emit("logoChange",n(w))}function k(s){s.forEach(h=>{v(!1,"is-select",n(h))})}const J=N(()=>s=>s===m.value.theme&&m.value.theme!=="light"?"#fff":s===m.value.theme&&m.value.theme==="light"?"#1d2b45":"transparent"),Y=N(()=>[{label:"亮色",icon:An,iconAttrs:{fill:o.value?"#fff":"#000"}},{label:"暗色",icon:Hn,iconAttrs:{fill:o.value?"#fff":"#000"}}]),me=[{label:"灵动",value:"smart"},{label:"卡片",value:"card"}];function ee(s){var h,F,oe;m.value.layout=s,window.document.body.setAttribute("layout",s),a.layout={layout:s,theme:m.value.theme,darkMode:(h=a.layout)==null?void 0:h.darkMode,sidebarStatus:(F=a.layout)==null?void 0:F.sidebarStatus,epThemeColor:(oe=a.layout)==null?void 0:oe.epThemeColor,themeColor:m.value.theme},Re().setLayout(s)}return Ue(a,({layout:s})=>{switch(s.layout){case"vertical":v(!0,"is-select",n(l)),Ze(k([f]),50),Ze(k([d]),50);break;case"horizontal":v(!0,"is-select",n(f)),Ze(k([l]),50),Ze(k([d]),50);break;case"mix":v(!0,"is-select",n(d)),Ze(k([l]),50),Ze(k([f]),50);break}}),Kt(()=>{Ee(()=>{var s,h;C.greyVal&&((s=document.querySelector("html"))==null||s.setAttribute("class","html-grey")),C.weakVal&&((h=document.querySelector("html"))==null||h.setAttribute("class","html-weakness")),C.tabsVal&&L(),C.hideFooter&&Z()})}),(s,h)=>{const F=T("IconifyIconOffline"),oe=T("el-icon"),W=T("el-switch"),U=nt("tippy");return u(),D(Ga,null,{default:g(()=>[_("div",Ka,[Xa,i(n(Zt),{modelValue:n(c)?1:0,options:Y.value,onChange:h[0]||(h[0]=z=>{c.value=!n(c),n(p)()})},null,8,["modelValue","options"]),Ya,_("ul",Ja,[(u(!0),I(ge,null,xe(n(x),(z,ae)=>ce((u(),I("li",{key:ae,style:te(H.value(z.color)),onClick:$e=>n(y)(z.themeColor)},[i(oe,{style:{margin:"0.1em 0.1em 0 0"},size:17,color:J.value(z.themeColor)},{default:g(()=>[i(F,{icon:n(Ne)},null,8,["icon"])]),_:2},1032,["color"])],12,Qa)),[[Ce,V.value(z.themeColor)]])),128))]),es,_("ul",ts,[ce((u(),I("li",{ref_key:"verticalRef",ref:l,class:se(n(m).layout==="vertical"?"is-select":""),onClick:h[1]||(h[1]=z=>ee("vertical"))},as,2)),[[U,{content:"左侧菜单",zIndex:41e3}]]),n(e)!=="mobile"?ce((u(),I("li",{key:0,ref_key:"horizontalRef",ref:f,class:se(n(m).layout==="horizontal"?"is-select":""),onClick:h[2]||(h[2]=z=>ee("horizontal"))},rs,2)),[[U,{content:"顶部菜单",zIndex:41e3}]]):K("",!0),n(e)!=="mobile"?ce((u(),I("li",{key:1,ref_key:"mixRef",ref:d,class:se(n(m).layout==="mix"?"is-select":""),onClick:h[3]||(h[3]=z=>ee("mix"))},us,2)),[[U,{content:"混合菜单",zIndex:41e3}]]):K("",!0)]),ds,i(n(Zt),{modelValue:b.value==="smart"?0:1,options:me,onChange:M},null,8,["modelValue"]),hs,_("ul",fs,[_("li",null,[ps,i(W,{modelValue:C.greyVal,"onUpdate:modelValue":h[4]||(h[4]=z=>C.greyVal=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:q},null,8,["modelValue"])]),_("li",null,[ms,i(W,{modelValue:C.weakVal,"onUpdate:modelValue":h[5]||(h[5]=z=>C.weakVal=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:S},null,8,["modelValue"])]),_("li",null,[vs,i(W,{modelValue:C.tabsVal,"onUpdate:modelValue":h[6]||(h[6]=z=>C.tabsVal=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:L},null,8,["modelValue"])]),_("li",null,[_s,i(W,{modelValue:C.hideFooter,"onUpdate:modelValue":h[7]||(h[7]=z=>C.hideFooter=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:Z},null,8,["modelValue"])]),_("li",null,[gs,i(W,{modelValue:w.value,"onUpdate:modelValue":h[8]||(h[8]=z=>w.value=z),"inline-prompt":"","active-value":!0,"inactive-value":!1,"active-text":"开","inactive-text":"关",onChange:X},null,8,["modelValue"])]),_("li",null,[ys,i(W,{modelValue:C.multiTagsCache,"onUpdate:modelValue":h[9]||(h[9]=z=>C.multiTagsCache=z),"inline-prompt":"","active-text":"开","inactive-text":"关",onChange:E},null,8,["modelValue"])])])])]),_:1})}}}),ws=fe(bs,[["__scopeId","data-v-b0a3d069"]]),ks=["src"],xs={class:"sidebar-title"},Cs=["src"],$s={class:"sidebar-title"},Ss=ne({__name:"logo",props:{collapse:Boolean},setup(t){const e=t,{title:o,getLogo:a}=Te();return(d,l)=>{const f=T("router-link");return u(),I("div",{class:se(["sidebar-logo-container",{collapses:e.collapse}])},[i(kt,{name:"sidebarLogoFade"},{default:g(()=>{var c,m,x,v;return[e.collapse?(u(),D(f,{key:"props.collapse",title:n(o),class:"sidebar-logo-link",to:(m=(c=n(lt)())==null?void 0:c.path)!=null?m:"/"},{default:g(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,ks),_("span",xs,Q(n(o)),1)]),_:1},8,["title","to"])):(u(),D(f,{key:"expand",title:n(o),class:"sidebar-logo-link",to:(v=(x=n(lt)())==null?void 0:x.path)!=null?v:"/"},{default:g(()=>[_("img",{src:n(a)(),alt:"logo"},null,8,Cs),_("span",$s,Q(n(o)),1)]),_:1},8,["title","to"]))]}),_:1})],2)}}}),Is=fe(Ss,[["__scopeId","data-v-8d7f2c36"]]);var tt={exports:{}},tn={},Ts=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},mt={exports:{}};typeof Object.create=="function"?mt.exports=function(e,o){e.super_=o,e.prototype=Object.create(o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:mt.exports=function(e,o){e.super_=o;var a=function(){};a.prototype=o.prototype,e.prototype=new a,e.prototype.constructor=e};var Ms=mt.exports;(function(t){var e={},o=/%[sdj%]/g;t.format=function(r){if(!S(r)){for(var s=[],h=0;h=oe)return z;switch(z){case"%s":return String(F[h++]);case"%d":return Number(F[h++]);case"%j":try{return JSON.stringify(F[h++])}catch(ae){return"[Circular]"}default:return z}}),U=F[h];h=3&&(h.depth=arguments[2]),arguments.length>=4&&(h.colors=arguments[3]),H(s)?h.showHidden=s:s&&t._extend(h,s),Z(h.showHidden)&&(h.showHidden=!1),Z(h.depth)&&(h.depth=2),Z(h.colors)&&(h.colors=!1),Z(h.customInspect)&&(h.customInspect=!0),h.colors&&(h.stylize=f),x(h,r,h.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 f(r,s){var h=l.styles[s];return h?"\x1B["+l.colors[h][0]+"m"+r+"\x1B["+l.colors[h][1]+"m":r}function c(r,s){return r}function m(r){var s={};return r.forEach(function(h,F){s[h]=!0}),s}function x(r,s,h){if(r.customInspect&&s&&J(s.inspect)&&s.inspect!==t.inspect&&!(s.constructor&&s.constructor.prototype===s)){var F=s.inspect(h,r);return S(F)||(F=x(r,F,h)),F}var oe=v(r,s);if(oe)return oe;var W=Object.keys(s),U=m(W);if(r.showHidden&&(W=Object.getOwnPropertyNames(s)),k(s)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return p(s);if(W.length===0){if(J(s)){var z=s.name?": "+s.name:"";return r.stylize("[Function"+z+"]","special")}if(E(s))return r.stylize(RegExp.prototype.toString.call(s),"regexp");if(X(s))return r.stylize(Date.prototype.toString.call(s),"date");if(k(s))return p(s)}var ae="",$e=!1,Fe=["{","}"];if(C(s)&&($e=!0,Fe=["[","]"]),J(s)){var We=s.name?": "+s.name:"";ae=" [Function"+We+"]"}if(E(s)&&(ae=" "+RegExp.prototype.toString.call(s)),X(s)&&(ae=" "+Date.prototype.toUTCString.call(s)),k(s)&&(ae=" "+p(s)),W.length===0&&(!$e||s.length==0))return Fe[0]+ae+Fe[1];if(h<0)return E(s)?r.stylize(RegExp.prototype.toString.call(s),"regexp"):r.stylize("[Object]","special");r.seen.push(s);var De;return $e?De=y(r,s,h,U,W):De=W.map(function(Pe){return b(r,s,h,U,Pe,$e)}),r.seen.pop(),w(De,ae,Fe)}function v(r,s){if(Z(s))return r.stylize("undefined","undefined");if(S(s)){var h="'"+JSON.stringify(s).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(h,"string")}if(q(s))return r.stylize(""+s,"number");if(H(s))return r.stylize(""+s,"boolean");if(V(s))return r.stylize("null","null")}function p(r){return"["+Error.prototype.toString.call(r)+"]"}function y(r,s,h,F,oe){for(var W=[],U=0,z=s.length;U-1&&(W?z=z.split(`
`).map(function($e){return" "+$e}).join(`
`).substr(2):z=`
`+z.split(`
`).map(function($e){return" "+$e}).join(`
`))):z=r.stylize("[Circular]","special")),Z(U)){if(W&&oe.match(/^\d+$/))return z;U=JSON.stringify(""+oe),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.substr(1,U.length-2),U=r.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=r.stylize(U,"string"))}return U+": "+z}function w(r,s,h){var F=r.reduce(function(oe,W){return W.indexOf(`
`)>=0,oe+W.replace(/\u001b\[\d\d?m/g,"").length+1},0);return F>60?h[0]+(s===""?"":s+`
`)+" "+r.join(`,
`)+" "+h[1]:h[0]+s+" "+r.join(", ")+" "+h[1]}function C(r){return Array.isArray(r)}t.isArray=C;function H(r){return typeof r=="boolean"}t.isBoolean=H;function V(r){return r===null}t.isNull=V;function R(r){return r==null}t.isNullOrUndefined=R;function q(r){return typeof r=="number"}t.isNumber=q;function S(r){return typeof r=="string"}t.isString=S;function L(r){return typeof r=="symbol"}t.isSymbol=L;function Z(r){return r===void 0}t.isUndefined=Z;function E(r){return M(r)&&me(r)==="[object RegExp]"}t.isRegExp=E;function M(r){return typeof r=="object"&&r!==null}t.isObject=M;function X(r){return M(r)&&me(r)==="[object Date]"}t.isDate=X;function k(r){return M(r)&&(me(r)==="[object Error]"||r instanceof Error)}t.isError=k;function J(r){return typeof r=="function"}t.isFunction=J;function Y(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r=="undefined"}t.isPrimitive=Y,t.isBuffer=Ts;function me(r){return Object.prototype.toString.call(r)}function ee(r){return r<10?"0"+r.toString(10):r.toString(10)}var ze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qe(){var r=new Date,s=[ee(r.getHours()),ee(r.getMinutes()),ee(r.getSeconds())].join(":");return[r.getDate(),ze[r.getMonth()],s].join(" ")}t.log=function(){console.log("%s - %s",qe(),t.format.apply(t,arguments))},t.inherits=Ms,t._extend=function(r,s){if(!s||!M(s))return r;for(var h=Object.keys(s),F=h.length;F--;)r[h[F]]=s[h[F]];return r};function Le(r,s){return Object.prototype.hasOwnProperty.call(r,s)}})(tn);var Vs={},zs=process.platform==="win32",Ie=tn;function ct(t,e){for(var o=[],a=0;a=0&&!t[a];a--);return o===0&&a===e?t:o>a?[]:t.slice(o,a+1)}var nn=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,Ls=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,le={};function ut(t){var e=nn.exec(t),o=(e[1]||"")+(e[2]||""),a=e[3]||"",d=Ls.exec(a),l=d[1],f=d[2],c=d[3];return[o,l,f,c]}function Vt(t){var e=nn.exec(t),o=e[1]||"",a=!!o&&o[1]!==":";return{device:o,isUnc:a,isAbsolute:a||!!e[2],tail:e[3]}}function on(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}le.resolve=function(){for(var t="",e="",o=!1,a=arguments.length-1;a>=-1;a--){var d;if(a>=0?d=arguments[a]:t?(d=Vs["="+t],(!d||d.substr(0,3).toLowerCase()!==t.toLowerCase()+"\\")&&(d=t+"\\")):d=process.cwd(),Ie.isString(d)){if(!d)continue}else throw new TypeError("Arguments to path.resolve must be strings");var l=Vt(d),f=l.device,c=l.isUnc,m=l.isAbsolute,x=l.tail;if(!(f&&t&&f.toLowerCase()!==t.toLowerCase())&&(t||(t=f),o||(e=x+"\\"+e,o=m),t&&o))break}return c&&(t=on(t)),e=ct(e.split(/[\\\/]+/),!o).join("\\"),t+(o?"\\":"")+e||"."};le.normalize=function(t){var e=Vt(t),o=e.device,a=e.isUnc,d=e.isAbsolute,l=e.tail,f=/[\\\/]$/.test(l);return l=ct(l.split(/[\\\/]+/),!d).join("\\"),!l&&!d&&(l="."),l&&f&&(l+="\\"),a&&(o=on(o)),o+(d?"\\":"")+l};le.isAbsolute=function(t){return Vt(t).isAbsolute};le.join=function(){for(var t=[],e=0;e=-1&&!e;o--){var a=o>=0?arguments[o]:process.cwd();if(Ie.isString(a)){if(!a)continue}else throw new TypeError("Arguments to path.resolve must be strings");t=a+"/"+t,e=a[0]==="/"}return t=ct(t.split("/"),!e).join("/"),(e?"/":"")+t||"."};ue.normalize=function(t){var e=ue.isAbsolute(t),o=t&&t[t.length-1]==="/";return t=ct(t.split("/"),!e).join("/"),!t&&!e&&(t="."),t&&o&&(t+="/"),(e?"/":"")+t};ue.isAbsolute=function(t){return t.charAt(0)==="/"};ue.join=function(){for(var t="",e=0;e'},Ds={width:1024,height:1024,body:''},Ps={width:1024,height:1024,body:''},Zs={width:1024,height:1024,body:''},Rs={key:0},js={key:1},an=ne({__name:"sidebarItem",props:{item:{type:Object},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},setup(t){const{layout:e,isCollapse:o,tooltipEffect:a,getDivStyle:d}=Te(),l=t,f=N(()=>({width:"100%",textAlign:"center"})),c=N(()=>({display:"flex",alignItems:"center"})),m=N(()=>({overflow:"hidden",textOverflow:"ellipsis",outline:"none"})),x=N(()=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.value==="horizontal"?"0 5px 0 0":o.value?"0 auto":"0 5px 0 0"})),v=N(()=>o.value?{width:""}:{width:"210px",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis"}),p=N(()=>S=>{var L;return o.value?{width:"100%",textAlign:(S==null?void 0:S.parentId)===null||e.value==="mix"&&((L=S==null?void 0:S.pathList)==null?void 0:L.length)===2?"center":""}:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"}}),y=N(()=>{var S;return(S=Je())!=null&&S.MenuArrowIconNoTransition?{"expand-close-icon":Me(Ds),"expand-open-icon":Me(Os),"collapse-close-icon":Me(Zs),"collapse-open-icon":Me(Ps)}:""}),b=O(null),w=new WeakMap,C=O(null);function H(S){w.get(S)||Ee(()=>{var L,Z;((L=C.value)==null?void 0:L.scrollWidth)>((Z=C.value)==null?void 0:Z.clientWidth)?Object.assign(S,{showTooltip:!0}):Object.assign(S,{showTooltip:!1}),w.set(S,!0)})}function V(S,L){var E;const Z=((S==null?void 0:S.length)>1?S.toString().slice(0,1):S)+"...";return L&&!(o.value&&(L==null?void 0:L.parentId)===null)?e.value==="mix"&&((E=L==null?void 0:L.pathList)==null?void 0:E.length)===2&&o.value?Z:S:Z}function R(S=[],L){var E,M;const Z=S.filter(X=>(b.value=X,!0));return(M=(E=Z[0])==null?void 0:E.meta)!=null&&M.showParent?!1:Z.length===1?!0:Z.length===0?(b.value=Ot(Et({},L),{path:"",noShowingChildren:!0}),!0):!1}function q(S){const L=/^http(s?):\/\//;return L.test(S)||L.test(l.basePath)?S||l.basePath:Es.posix.resolve(l.basePath,S)}return(S,L)=>{const Z=T("el-tooltip"),E=T("el-menu-item"),M=T("sidebar-item",!0),X=T("el-sub-menu");return R(l.item.children,l.item)&&(!b.value.children||b.value.noShowingChildren)?(u(),D(E,{key:0,index:q(b.value.path),class:se({"submenu-title-noDropdown":!t.isNest}),style:te(c.value)},{title:g(()=>[_("div",{style:te(n(d))},[n(e)==="horizontal"?(u(),I("span",Rs,Q(n(_e)(b.value.meta.title)),1)):(u(),D(Z,{key:1,placement:"top",effect:n(a),offset:-10,disabled:!b.value.showTooltip},{content:g(()=>[de(Q(n(_e)(b.value.meta.title)),1)]),default:g(()=>[_("span",{ref_key:"menuTextRef",ref:C,style:te(m.value),onMouseover:L[0]||(L[0]=k=>H(b.value))},Q(n(_e)(b.value.meta.title)),37)]),_:1},8,["effect","disabled"])),i(pt,{extraIcon:b.value.meta.extraIcon},null,8,["extraIcon"])],4)]),default:g(()=>{var k,J,Y,me,ee;return[ke(l.item.meta.icon)?(u(),I("div",{key:0,class:"sub-menu-icon",style:te(x.value)},[(u(),D(Ve(n(Me)(ke(b.value.meta.icon)||l.item.meta&&ke(l.item.meta.icon)))))],4)):K("",!0),!((k=l.item)!=null&&k.meta.icon)&&n(o)&&n(e)==="vertical"&&((Y=(J=l.item)==null?void 0:J.pathList)==null?void 0:Y.length)===1?(u(),I("span",{key:1,style:te(f.value)},Q(V(n(_e)(b.value.meta.title))),5)):K("",!0),!b.value.meta.icon&&n(o)&&n(e)==="mix"&&((ee=(me=l.item)==null?void 0:me.pathList)==null?void 0:ee.length)===2?(u(),I("span",{key:2,style:te(f.value)},Q(V(n(_e)(b.value.meta.title))),5)):K("",!0)]}),_:1},8,["index","class","style"])):(u(),D(X,Mn({key:1,ref:"subMenu"},y.value,{index:q(l.item.path)}),{title:g(()=>[ke(l.item.meta.icon)?(u(),I("div",{key:0,style:te(x.value),class:"sub-menu-icon"},[(u(),D(Ve(n(Me)(l.item.meta&&ke(l.item.meta.icon)))))],4)):K("",!0),n(e)==="horizontal"?(u(),I("span",js,Q(n(_e)(l.item.meta.title)),1)):K("",!0),n(o)&&ke(l.item.meta.icon)&&l.item.parentId===null?K("",!0):(u(),I("div",{key:2,style:te(p.value(l.item))},[n(e)!=="horizontal"?(u(),D(Z,{key:0,placement:"top",effect:n(a),offset:-10,disabled:!l.item.showTooltip},{content:g(()=>[de(Q(n(_e)(l.item.meta.title)),1)]),default:g(()=>[_("span",{ref_key:"menuTextRef",ref:C,style:te(v.value),onMouseover:L[1]||(L[1]=k=>H(l.item))},Q(V(n(_e)(l.item.meta.title),l.item)),37)]),_:1},8,["effect","disabled"])):K("",!0),n(o)?K("",!0):(u(),D(pt,{key:1,extraIcon:l.item.meta.extraIcon},null,8,["extraIcon"]))],4))]),default:g(()=>[(u(!0),I(ge,null,xe(l.item.children,k=>(u(),D(M,{key:k.path,"is-nest":!0,item:k,"base-path":q(k.path),class:"nest-menu"},null,8,["item","base-path"]))),128))]),_:1},16,["index"]))}}}),Bs={class:"collapse-container"},Ns=ne({__name:"leftCollapse",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(t,{emit:e}){const o=t,a=O(!1),{tooltipEffect:d}=Te(),l=N(()=>["ml-4","mb-1","w-[16px]","h-[16px]","inline-block","align-middle","cursor-pointer","duration-[100ms]"]),{$storage:f}=rt(),c=N(()=>{var v;return(v=f.layout)==null?void 0:v.themeColor}),m=e,x=()=>{m("toggleClick")};return(v,p)=>{const y=T("IconifyIconOffline"),b=T("el-tooltip");return u(),I("div",Bs,[i(b,{placement:"right",visible:a.value,effect:n(d),content:o.isActive?"点击折叠":"点击展开"},{default:g(()=>[i(y,{icon:n(Jt),class:se([l.value,c.value==="light"?"":"text-primary"]),style:te({transform:o.isActive?"none":"rotateY(180deg)"}),onClick:x,onMouseenter:p[0]||(p[0]=w=>a.value=!0),onMouseleave:p[1]||(p[1]=w=>a.value=!1)},null,8,["icon","class","style"])]),_:1},8,["visible","effect","content"])])}}}),qs=fe(Ns,[["__scopeId","data-v-57c78e02"]]),Fs=ne({__name:"vertical",setup(t){var b,w;const e=yt(),o=O((w=(b=Ke().getItem(`${Xe()}configure`))==null?void 0:b.showLogo)!=null?w:!0),{device:a,pureApp:d,isCollapse:l,menuSelect:f,toggleSideBar:c}=Te(),m=O([]),x=N(()=>d.layout==="mix"&&a.value!=="mobile"?m.value:be().wholeMenus),v=N(()=>d.layout==="mix"?!1:x.value.length===0),p=N(()=>{var C;return je((C=e.meta)==null?void 0:C.activePath)?e.path:e.meta.activePath});function y(){let C="";C=p.value,m.value=[];const H=gt(C,be().wholeMenus),V=st(H[0]||C,be().wholeMenus);V!=null&&V.children&&(m.value=V==null?void 0:V.children)}return Ue(()=>[e.path,be().wholeMenus],()=>{e.path.includes("/redirect")||(y(),f(e.path))}),Oe(()=>{y(),ye.on("logoChange",C=>{o.value=C})}),wt(()=>{ye.off("logoChange")}),(C,H)=>{const V=T("el-menu"),R=T("el-scrollbar"),q=nt("loading");return ce((u(),I("div",{class:se(["sidebar-container",o.value?"has-logo":"no-logo"])},[o.value?(u(),D(Is,{key:0,collapse:n(l)},null,8,["collapse"])):K("",!0),i(R,{"wrap-class":"scrollbar-wrapper",class:se([n(a)==="mobile"?"mobile":"pc"])},{default:g(()=>[i(V,{router:"","unique-opened":"",mode:"vertical",class:"outer-most select-none",collapse:n(l),"default-active":p.value,"collapse-transition":!1},{default:g(()=>[(u(!0),I(ge,null,xe(x.value,S=>(u(),D(an,{key:S.path,item:S,"base-path":S.path,class:"outer-most select-none"},null,8,["item","base-path"]))),128))]),_:1},8,["collapse","default-active"])]),_:1},8,["class"]),n(a)!=="mobile"?(u(),D(qs,{key:1,"is-active":n(d).sidebar.opened,onToggleClick:n(c)},null,8,["is-active","onToggleClick"])):K("",!0)],2)),[[q,v.value]])}}}),Us=fe(Fs,[["__scopeId","data-v-e2ffffe3"]]),Ws={class:"horizontal-header"},Gs=["src"],Ks={class:"horizontal-header-right"},Xs={class:"check-zh"},Ys={class:"check-en"},Js={class:"el-dropdown-link navbar-bg-hover"},Qs=["src"],el={key:0,class:"dark:text-white"},tl=["title"],nl=ne({__name:"horizontal",setup(t){const e=O(),{t:o,route:a,locale:d,translationCh:l,translationEn:f}=xt(e),{title:c,logout:m,backTopMenu:x,onPanel:v,getLogo:p,username:y,userAvatar:b,avatarsStyle:w,getDropdownItemStyle:C,getDropdownItemClass:H}=Te(),V=N(()=>{var R;return je((R=a.meta)==null?void 0:R.activePath)?a.path:a.meta.activePath});return Ee(()=>{var R;(R=e.value)==null||R.handleResize()}),(R,q)=>{const S=T("el-menu"),L=T("IconifyIconOffline"),Z=T("el-dropdown-item"),E=T("el-dropdown-menu"),M=T("el-dropdown"),X=nt("loading");return ce((u(),I("div",Ws,[_("div",{class:"horizontal-header-left",onClick:q[0]||(q[0]=(...k)=>n(x)&&n(x)(...k))},[_("img",{src:n(p)(),alt:"logo"},null,8,Gs),_("span",null,Q(n(c)),1)]),i(S,{ref_key:"menuRef",ref:e,router:"",mode:"horizontal",class:"horizontal-header-menu","default-active":V.value},{default:g(()=>[(u(!0),I(ge,null,xe(n(be)().wholeMenus,k=>(u(),D(an,{key:k.path,item:k,"base-path":k.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active"]),_("div",Ks,[i(It),i(Tt,{id:"header-notice"}),i(M,{id:"header-translation",trigger:"click"},{dropdown:g(()=>[i(E,{class:"translation"},{default:g(()=>[i(Z,{style:te(n(C)(n(d),"zh")),class:se(["dark:!text-white",n(H)(n(d),"zh")]),onClick:n(l)},{default:g(()=>[ce(_("span",Xs,[i(L,{icon:n(Ne)},null,8,["icon"])],512),[[Ce,n(d)==="zh"]]),de(" 简体中文 ")]),_:1},8,["style","class","onClick"]),i(Z,{style:te(n(C)(n(d),"en")),class:se(["dark:!text-white",n(H)(n(d),"en")]),onClick:n(f)},{default:g(()=>[ce(_("span",Ys,[i(L,{icon:n(Ne)},null,8,["icon"])],512),[[Ce,n(d)==="en"]]),de(" English ")]),_:1},8,["style","class","onClick"])]),_:1})]),default:g(()=>[i(n(Ct),{class:"navbar-bg-hover w-[40px] h-[48px] p-[11px] cursor-pointer outline-none"})]),_:1}),i(M,{trigger:"click"},{dropdown:g(()=>[i(E,{class:"logout"},{default:g(()=>[i(Z,{onClick:n(m)},{default:g(()=>[i(L,{icon:n(Mt),style:{margin:"5px"}},null,8,["icon"]),de(" "+Q(n(o)("buttons.hsLoginOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:g(()=>[_("span",Js,[_("img",{src:n(b),style:te(n(w))},null,12,Qs),n(y)?(u(),I("p",el,Q(n(y)),1)):K("",!0)])]),_:1}),_("span",{class:"set-icon navbar-bg-hover",title:n(o)("buttons.hssystemSet"),onClick:q[1]||(q[1]=(...k)=>n(v)&&n(v)(...k))},[i(L,{icon:n(it)},null,8,["icon"])],8,tl)])])),[[X,n(be)().wholeMenus.length===0]])}}}),ol=fe(nl,[["__scopeId","data-v-1c18c7cc"]]),al={key:0},sl=ne({__name:"index",setup(t){const e=O(),{isDark:o}=Gt(),{layout:a}=En(),d=qt(),l=St(),{$storage:f}=rt(),c=bt({sidebar:N(()=>Re().sidebar),device:N(()=>Re().device),fixedHeader:N(()=>l.fixedHeader),classes:N(()=>({hideSidebar:!c.sidebar.opened,openSidebar:c.sidebar.opened,withoutAnimation:c.sidebar.withoutAnimation,mobile:c.device==="mobile"})),hideTabs:N(()=>f==null?void 0:f.configure.hideTabs)});function m(y){var b,w,C,H,V;window.document.body.setAttribute("layout",y),f.layout={layout:`${y}`,theme:(b=f.layout)==null?void 0:b.theme,darkMode:(w=f.layout)==null?void 0:w.darkMode,sidebarStatus:(C=f.layout)==null?void 0:C.sidebarStatus,epThemeColor:(H=f.layout)==null?void 0:H.epThemeColor,themeColor:(V=f.layout)==null?void 0:V.themeColor}}function x(y,b){Re().toggleDevice(y),Re().toggleSideBar(b,"resize")}let v=!0;vt(e,y=>{if(d)return;const b=y[0],{width:w}=b.contentRect;w<=760?m("vertical"):m(Re().layout),w>0&&w<=760?(x("mobile",!1),v=!0):w>760&&w<=990?v&&(x("desktop",!1),v=!1):w>990&&!c.sidebar.isClickCollapse?(x("desktop",!0),v=!0):(x("desktop",!1),v=!1)}),Oe(()=>{d&&x("mobile",!1)}),Kt(()=>{$t().dataThemeChange()});const p=ne({render(){return Ye("div",{class:{"fixed-header":c.fixedHeader},style:[c.hideTabs&&a.value.includes("horizontal")?o.value?"box-shadow: 0 1px 4px #0d0d0d":"box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08)":""]},{default:()=>[!l.hiddenSideBar&&(a.value.includes("vertical")||a.value.includes("mix"))?Ye(ga):null,!l.hiddenSideBar&&a.value.includes("horizontal")?Ye(ol):null,Ye(Oa)]})}});return(y,b)=>{const w=T("el-backtop"),C=T("el-scrollbar");return u(),I("div",{ref_key:"appWrapperRef",ref:e,class:se(["app-wrapper",c.classes])},[ce(_("div",{class:"app-mask",onClick:b[0]||(b[0]=H=>n(Re)().toggleSideBar())},null,512),[[Ce,c.device==="mobile"&&c.sidebar.opened&&n(a).includes("vertical")]]),ce(i(Us,null,null,512),[[Ce,!n(l).hiddenSideBar&&(n(a).includes("vertical")||n(a).includes("mix"))]]),_("div",{class:se(["main-container",n(l).hiddenSideBar?"main-hidden":""])},[c.fixedHeader?(u(),I("div",al,[i(n(p)),i(Bt,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])])):(u(),D(C,{key:1},{default:g(()=>[i(w,{title:"回到顶部",target:".main-container .el-scrollbar__wrap"},{default:g(()=>[i(n(Xt))]),_:1}),i(n(p)),i(Bt,{"fixed-header":c.fixedHeader},null,8,["fixed-header"])]),_:1}))],2),i(ws)],2)}}}),Cl=fe(sl,[["__scopeId","data-v-2a7f955a"]]);export{Cl as default};