import{a8 as d,bh as u,au as r,X as y,at as g,aR as R,ah as n,cb as h,b0 as b,b1 as O,bs as v,al as w,ct as $,bC as _,bl as j,bj as N,bF as C,cv as x,bv as S}from"./index-BVAEVuZQ.js";const k=d({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:r([Number,Object]),default:()=>u({})},sm:{type:r([Number,Object]),default:()=>u({})},md:{type:r([Number,Object]),default:()=>u({})},lg:{type:r([Number,Object]),default:()=>u({})},xl:{type:r([Number,Object]),default:()=>u({})}}),E=Symbol("rowContextKey"),K=g({name:"ElCol",__name:"col",props:k,setup(c){const t=c,{gutter:l}=R(E,{gutter:n(()=>0)}),a=h("col"),p=n(()=>{const e={};return l.value&&(e.paddingLeft=e.paddingRight=`${l.value/2}px`),e}),i=n(()=>{const e=[];return["span","offset","pull","push"].forEach(s=>{const o=t[s];b(o)&&(s==="span"?e.push(a.b(`${t[s]}`)):o>0&&e.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{b(t[s])?e.push(a.b(`${s}-${t[s]}`)):O(t[s])&&Object.entries(t[s]).forEach(([o,m])=>{e.push(o!=="span"?a.b(`${s}-${o}-${m}`):a.b(`${s}-${m}`))})}),l.value&&e.push(a.is("guttered")),[a.b(),e]});return(e,f)=>(v(),w(C(e.tag),{class:N(i.value),style:j(p.value)},{default:$(()=>[_(e.$slots,"default")]),_:3},8,["class","style"]))}});var P=y(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"],A=d({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:B,default:"start"},align:{type:String,values:L}}),D=g({name:"ElRow",__name:"row",props:A,setup(c){const t=c,l=h("row"),a=n(()=>t.gutter);S(E,{gutter:a});const p=n(()=>{const e={};return t.gutter&&(e.marginRight=e.marginLeft=`-${t.gutter/2}px`),e}),i=n(()=>[l.b(),l.is(`justify-${t.justify}`,t.justify!=="start"),l.is(`align-${t.align}`,!!t.align)]);return(e,f)=>(v(),w(C(e.tag),{class:N(i.value),style:j(p.value)},{default:$(()=>[_(e.$slots,"default")]),_:3},8,["class","style"]))}});var F=y(D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const X=x(F);export{T as E,X as a};
