import{y as g,aw as u,ac as r,B as _,C as f,ax as R,I as n,G as $,aI as b,bu as S,M as h,o as w,w as v,Q as j,n as N,h as x,O as c,R as C,W as E,aL as K}from"./index-D-77647g.js";const B=g({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({})}}),O=Symbol("rowContextKey"),I=f({name:"ElCol"}),L=f({...I,props:B,setup(p){const e=p,{gutter:l}=R(O,{gutter:n(()=>0)}),a=$("col"),i=n(()=>{const t={};return l.value&&(t.paddingLeft=t.paddingRight=`${l.value/2}px`),t}),d=n(()=>{const t=[];return["span","offset","pull","push"].forEach(s=>{const o=e[s];b(o)&&(s==="span"?t.push(a.b(`${e[s]}`)):o>0&&t.push(a.b(`${s}-${e[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{b(e[s])?t.push(a.b(`${s}-${e[s]}`)):S(e[s])&&Object.entries(e[s]).forEach(([o,m])=>{t.push(o!=="span"?a.b(`${s}-${o}-${m}`):a.b(`${s}-${m}`))})}),l.value&&t.push(a.is("guttered")),[a.b(),t]});return(t,y)=>(w(),h(C(t.tag),{class:x(c(d)),style:N(c(i))},{default:v(()=>[j(t.$slots,"default")]),_:3},8,["class","style"]))}});var P=_(L,[["__file","col.vue"]]);const W=E(P),k=["start","center","end","space-around","space-between","space-evenly"],A=["top","middle","bottom"],D=g({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:k,default:"start"},align:{type:String,values:A}}),G=f({name:"ElRow"}),J=f({...G,props:D,setup(p){const e=p,l=$("row"),a=n(()=>e.gutter);K(O,{gutter:a});const i=n(()=>{const t={};return e.gutter&&(t.marginRight=t.marginLeft=`-${e.gutter/2}px`),t}),d=n(()=>[l.b(),l.is(`justify-${e.justify}`,e.justify!=="start"),l.is(`align-${e.align}`,!!e.align)]);return(t,y)=>(w(),h(C(t.tag),{class:x(c(d)),style:N(c(i))},{default:v(()=>[j(t.$slots,"default")]),_:3},8,["class","style"]))}});var M=_(J,[["__file","row.vue"]]);const q=E(M);export{W as E,q as a};
