
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * https://fantastic-admin.github.io
 */

import{d as C,N as S,u as y,a7 as M,a8 as x,n as V,X as c,a as L,a9 as a,O as $,p as A,g as n,c as B,e as i,b as o,Q as f,i as s,w as _,aa as D,z as m,y as N,M as R,ab as P,ac as T,A as b,l as z}from"./index-nGFMSQGw.js";import H from"./index-BhavOP4W.js";import I from"./index-Bb_mj7fg.js";import K from"./index-CFd9RQbU.js";import E from"./index-apzNn83J.js";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang-zkYlqh7B.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-DBGFR6b9.js";/* empty css                                                              */import U from"./link-BkZGdTQk.js";import X from"./index-BEgl-D5h.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang-BJqXE6JQ.js";import{u as q}from"./useMainPage-C9MASyfo.js";import{u as F}from"./useMenu-CjAI3aXu.js";import"./index.vue_vue_type_script_setup_true_lang-irk5Dcs5.js";import"./rightSide.vue_vue_type_script_setup_true_lang-oHdyjiaC.js";import"./HDropdownMenu.vue_vue_type_script_setup_true_lang-Dgz-jknv.js";import"./index.vue_vue_type_script_setup_true_lang-1hGRIBXM.js";import"./HDropdown-BjwO9ikd.js";import"./HTabList.vue_vue_type_script_setup_true_lang-P9EIXJZ1.js";import"./use-resolve-button-type-CVaAVCZ2.js";import"./index.vue_vue_type_script_setup_true_lang-BWhJNsuM.js";import"./index-CyI3Kccs.js";import"./index.vue_vue_type_script_setup_true_lang-CXCJ8paG.js";import"./HKbd-By3ZrrUU.js";import"./index.vue_vue_type_script_setup_true_lang-DwWyQI_t.js";import"./index.vue_vue_type_script_setup_true_lang-rI-Pc7n4.js";import"./sub.vue_vue_type_script_setup_true_lang-OSUVSBng.js";import"./item.vue_vue_type_script_setup_true_lang-DFSQ8avw.js";import"./HTooltip.vue_vue_type_script_setup_true_lang-BEZk-UXU.js";import"./index-DYuViJCA.js";import"./index-DilPWwlM.js";import"./leftSide.vue_vue_type_script_setup_true_lang-CY8It3ua.js";import"./index-D5jQENXK.js";import"./index-CeCYhShg.js";import"./item.vue_vue_type_script_setup_true_lang-B8QwDp3s.js";import"./HDialog.vue_vue_type_script_setup_true_lang-BZ2dbV3K.js";import"./index.vue_vue_type_script_setup_true_lang-DpYLhOHb.js";const G={class:"layout"},J={id:"app-main"},W={class:"wrapper"},Y={class:"main-container"},Z={class:"main"},ee=C({name:"Layout",__name:"index",setup(oe){const p=S(),e=y(),v=M(),r=x(),h=q(),g=F(),l=V(()=>!!p.meta.link);return c(()=>e.settings.menu.subMenuCollapse,t=>{e.mode==="mobile"&&(t?document.body.classList.remove("overflow-hidden"):document.body.classList.add("overflow-hidden"))}),c(()=>p.path,()=>{e.mode==="mobile"&&e.$patch(t=>{t.settings.menu.subMenuCollapse=!0})}),L(()=>{a("f5",t=>{e.settings.toolbar.pageReload&&(t.preventDefault(),h.reload())}),a("alt+`",t=>{e.settings.menu.enableHotkeys&&(t.preventDefault(),g.switchTo(r.actived+1<r.allMenus.length?r.actived+1:0))})}),$(()=>{a.unbind("f5"),a.unbind("alt+`")}),(t,u)=>{const w=A("RouterView");return n(),B("div",G,[i("div",J,[o(H),i("div",W,[i("div",{class:f(["sidebar-container",{show:s(e).mode==="mobile"&&!s(e).settings.menu.subMenuCollapse}])},[o(I),o(K)],2),i("div",{class:f(["sidebar-mask",{show:s(e).mode==="mobile"&&!s(e).settings.menu.subMenuCollapse}]),onClick:u[0]||(u[0]=d=>s(e).toggleSidebarCollapse())},null,2),i("div",Y,[o(E),i("div",Z,[o(w,null,{default:_(({Component:d,route:k})=>[o(D,{name:"slide-right",mode:"out-in",appear:""},{default:_(()=>[(n(),m(T,{include:s(v).list},[N((n(),m(P(d),{key:k.fullPath})),[[R,!s(l)]])],1032,["include"]))]),_:2},1024)]),_:1}),s(l)?(n(),m(U,{key:0})):b("",!0)]),o(X)])])]),o(O),o(Q),b("",!0),o(j)])}}}),Ie=z(ee,[["__scopeId","data-v-8e390700"]]);export{Ie as default};
