import{z as g,ay as u,ab as r,C as _,D as f,az as S,J as n,H as $,aK as b,bu as O,N as h,o as w,w as v,R as N,n as j,i as C,P as c,S as x,X as E,aN as K}from"./index-BBQST1e4.js";const P=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({})}}),R=Symbol("rowContextKey"),k=f({name:"ElCol"}),B=f({...k,props:P,setup(p){const e=p,{gutter:l}=S(R,{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]}`)):O(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(x(t.tag),{class:C(c(d)),style:j(c(i))},{default:v(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var D=_(B,[["__file","col.vue"]]);const z=E(D),J=["start","center","end","space-around","space-between","space-evenly"],L=["top","middle","bottom"],A=g({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:J,default:"start"},align:{type:String,values:L}}),H=f({name:"ElRow"}),I=f({...H,props:A,setup(p){const e=p,l=$("row"),a=n(()=>e.gutter);K(R,{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(x(t.tag),{class:C(c(d)),style:j(c(i))},{default:v(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}});var T=_(I,[["__file","row.vue"]]);const F=E(T);export{z as E,F as a};
