import{_ as u,e as l,l as S,a0 as B,p,c as m,o as c,s as i,v as _,i as r,j as d,z as g,aq as f,A as C,q as z,w as h,b as v}from"./U452nBqE.js";import H from"./Bg2omrtv.js";import{_ as N}from"./DlAUqK2U.js";import"./DE5B-gGd.js";import"./CgfJOAvg.js";import"./NU7oMSf5.js";import"./Cy_xIfGg.js";import"./DiheWXON.js";import"./BIrjlBoq.js";const V=l({name:"ElContainer",__name:"container",props:S({direction:{type:String,values:["horizontal","vertical"]}}),setup(n){const e=n,t=B(),s=p("container"),a=d(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:t&&t.default?t.default().some(k=>{const y=k.type.name;return y==="ElHeader"||y==="ElFooter"}):!1);return(o,k)=>(c(),m("section",{class:_([r(s).b(),r(s).is("vertical",a.value)])},[i(o.$slots,"default")],2))}});var x=u(V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const A=l({name:"ElAside",__name:"aside",props:{width:{type:String,default:null}},setup(n){const e=n,t=p("aside"),s=d(()=>e.width?t.cssVarBlock({width:e.width}):{});return(a,o)=>(c(),m("aside",{class:_(r(t).b()),style:g(s.value)},[i(a.$slots,"default")],6))}});var w=u(A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const F=l({name:"ElFooter",__name:"footer",props:{height:{type:String,default:null}},setup(n){const e=n,t=p("footer"),s=d(()=>e.height?t.cssVarBlock({height:e.height}):{});return(a,o)=>(c(),m("footer",{class:_(r(t).b()),style:g(s.value)},[i(a.$slots,"default")],6))}});var $=u(F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const I=l({name:"ElHeader",__name:"header",props:{height:{type:String,default:null}},setup(n){const e=n,t=p("header"),s=d(()=>e.height?t.cssVarBlock({height:e.height}):{});return(a,o)=>(c(),m("header",{class:_(r(t).b()),style:g(s.value)},[i(a.$slots,"default")],6))}});var E=u(I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const M=l({name:"ElMain",__name:"main",setup(n){const e=p("main");return(t,s)=>(c(),m("main",{class:_(r(e).b())},[i(t.$slots,"default")],2))}});var b=u(M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const q=C(x,{Aside:w,Footer:$,Header:E,Main:b});f(w);f($);const j=f(E),L=f(b),P=l({__name:"default",setup(n){return(e,t)=>{const s=j,a=L,o=q;return c(),z(o,{class:"app-container"},{default:h(()=>[v(s,{class:"layout-header"},{default:h(()=>[v(H)]),_:1}),v(a,{class:"layout-main"},{default:h(()=>[i(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})}}}),W=N(P,[["__scopeId","data-v-1887420b"]]);export{W as default};
