import f from"./AppTopbar.6214b6b3.js";import k from"./AppSidebar.214a4c83.js";import{u as b}from"./iconify.f8f64a59.js";import{r as h,K as g,H as M,c as A,a as i,b as s,A as C,F as L,g as n,o as S}from"./entry.126c240b.js";import"./AppMenuItem.1d0deb40.js";const E={class:"layout-sidebar"},w={class:"layout-main-container"},N={class:"layout-main"},T=i("div",{class:"layout-mask"},null,-1),V={__name:"AppLayout",setup(B){const{layoutConfig:t,layoutState:a,isSidebarActive:u}=b(),o=h(null);g(u,e=>{e?m():v()});const r=M(()=>({"layout-theme-light":t.darkTheme.value==="light","layout-theme-dark":t.darkTheme.value==="dark","layout-overlay":t.menuMode.value==="overlay","layout-static":t.menuMode.value==="static","layout-static-inactive":a.staticMenuDesktopInactive.value&&t.menuMode.value==="static","layout-overlay-active":a.overlayMenuActive.value,"layout-mobile-active":a.staticMenuMobileActive.value,"p-ripple-disabled":t.ripple.value===!1})),m=()=>{o.value||(o.value=e=>{d(e)&&(a.overlayMenuActive.value=!1,a.staticMenuMobileActive.value=!1,a.menuHoverActive.value=!1)},document.addEventListener("click",o.value))},v=()=>{o.value&&(document.removeEventListener("click",o),o.value=null)},d=e=>{const c=document.querySelector(".layout-sidebar"),l=document.querySelector(".layout-menu-button");return!(c.isSameNode(e.target)||c.contains(e.target)||l.isSameNode(e.target)||l.contains(e.target))};return(e,c)=>{const l=n("router-view"),p=n("app-footer"),_=n("app-config"),y=n("Toast");return S(),A(L,null,[i("div",{class:C(["layout-wrapper",r.value])},[s(f),i("div",E,[s(k)]),i("div",w,[i("div",N,[s(l)]),s(p)]),s(_),T],2),s(y)],64)}}};export{V as default};
