import{d as l,u as _,s as m,O as o,_ as s,P as d,b as c,f,M as p,N as y,e as v,L as a,F as n}from"./index.3a30a18d.js";const L=l({name:"layout"}),T=l({...L,setup(E){const r=_(),{themeConfig:e}=m(r),u={defaults:o(()=>s(()=>import("./defaults.74033fdc.js"),["defaults.74033fdc.js","index.3a30a18d.js","index.dbc27bcc.css"],import.meta.url)),classic:o(()=>s(()=>import("./classic.58f64d16.js"),["classic.58f64d16.js","index.3a30a18d.js","index.dbc27bcc.css"],import.meta.url)),transverse:o(()=>s(()=>import("./transverse.47097caf.js"),["transverse.47097caf.js","index.3a30a18d.js","index.dbc27bcc.css"],import.meta.url)),columns:o(()=>s(()=>import("./columns.ddfff827.js"),["columns.ddfff827.js","index.3a30a18d.js","index.dbc27bcc.css"],import.meta.url))},i=()=>{a.get("oldLayout")||a.set("oldLayout",e.value.layout);const t=document.body.clientWidth;t<1e3?(e.value.isCollapse=!1,n.emit("layoutMobileResize",{layout:"defaults",clientWidth:t})):n.emit("layoutMobileResize",{layout:a.get("oldLayout")?a.get("oldLayout"):e.value.layout,clientWidth:t})};return d(()=>{i(),window.addEventListener("resize",i)}),c(()=>{window.removeEventListener("resize",i)}),(t,R)=>(f(),p(y(u[v(e).layout])))}});export{T as default};
