import{a2 as y,a3 as u,a4 as r,a5 as b,a6 as O,Z as o,a7 as g,a8 as d,a9 as R,o as w,y as h,q as v,aa as $,N as _,O as N,ab as j,ac as C,ad as x,ae as S}from"./index.8d733f79.js";const k=y({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:u([Number,Object]),default:()=>r({})},sm:{type:u([Number,Object]),default:()=>r({})},md:{type:u([Number,Object]),default:()=>r({})},lg:{type:u([Number,Object]),default:()=>r({})},xl:{type:u([Number,Object]),default:()=>r({})}}),E=Symbol("rowContextKey"),K=b({name:"ElCol",__name:"col",props:k,setup(c){const t=c,{gutter:l}=O(E,{gutter:o(()=>0)}),a=g("col"),p=o(()=>{const e={};return l.value&&(e.paddingLeft=e.paddingRight=`${l.value/2}px`),e}),i=o(()=>{const e=[];return["span","offset","pull","push"].forEach(s=>{const n=t[s];d(n)&&(s==="span"?e.push(a.b(`${t[s]}`)):n>0&&e.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{d(t[s])?e.push(a.b(`${s}-${t[s]}`)):R(t[s])&&Object.entries(t[s]).forEach(([n,m])=>{e.push(n!=="span"?a.b(`${s}-${n}-${m}`):a.b(`${s}-${m}`))})}),l.value&&e.push(a.is("guttered")),[a.b(),e]});return(e,f)=>(w(),h(j(e.tag),{class:_(i.value),style:N(p.value)},{default:v(()=>[$(e.$slots,"default")]),_:3},8,["class","style"]))}});var P=C(K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const T=x(P),B=["start","center","end","space-around","space-between","space-evenly"],L=["top","middle","bottom"],q=y({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:B,default:"start"},align:{type:String,values:L}}),A=b({name:"ElRow",__name:"row",props:q,setup(c){const t=c,l=g("row"),a=o(()=>t.gutter);S(E,{gutter:a});const p=o(()=>{const e={};return t.gutter&&(e.marginRight=e.marginLeft=`-${t.gutter/2}px`),e}),i=o(()=>[l.b(),l.is(`justify-${t.justify}`,t.justify!=="start"),l.is(`align-${t.align}`,!!t.align)]);return(e,f)=>(w(),h(j(e.tag),{class:_(i.value),style:N(p.value)},{default:v(()=>[$(e.$slots,"default")]),_:3},8,["class","style"]))}});var D=C(A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Z=x(D);export{T as E,Z as a};
