import{d as l,u as r,s as d,O as t,_ as s,W as c,b as m,f,M as y,N as p,e as v,L as a,F as i}from"./index.2c7321ca.js";const L=l({name:"layout"}),T=l({...L,setup(E){const u=r(),{themeConfig:e}=d(u),_={defaults:t(()=>s(()=>import("./defaults.da7964de.js"),["assets/defaults.da7964de.js","assets/index.2c7321ca.js","assets/index.319ce9dc.css"])),classic:t(()=>s(()=>import("./classic.a22542e2.js"),["assets/classic.a22542e2.js","assets/index.2c7321ca.js","assets/index.319ce9dc.css"])),transverse:t(()=>s(()=>import("./transverse.2464e6e0.js"),["assets/transverse.2464e6e0.js","assets/index.2c7321ca.js","assets/index.319ce9dc.css"])),columns:t(()=>s(()=>import("./columns.b93b7878.js"),["assets/columns.b93b7878.js","assets/index.2c7321ca.js","assets/index.319ce9dc.css"]))},n=()=>{a.get("oldLayout")||a.set("oldLayout",e.value.layout);const o=document.body.clientWidth;o<1e3?(e.value.isCollapse=!1,i.emit("layoutMobileResize",{layout:"defaults",clientWidth:o})):i.emit("layoutMobileResize",{layout:a.get("oldLayout")?a.get("oldLayout"):e.value.layout,clientWidth:o})};return c(()=>{n(),window.addEventListener("resize",n)}),m(()=>{window.removeEventListener("resize",n)}),(o,R)=>(f(),y(p(_[v(e).layout])))}});export{T as default};
