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