import{V as i,W as u,X as o,f as y,l as h,Z as $,h as g,o as N,w as j,ae as x,G as v,n as C,q as c,au as O,ac as p,br as E,aj as w}from"./index-Dyf_FKwG.js";const S=i({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:o([Number,Object]),default:()=>u({})},sm:{type:o([Number,Object]),default:()=>u({})},md:{type:o([Number,Object]),default:()=>u({})},lg:{type:o([Number,Object]),default:()=>u({})},xl:{type:o([Number,Object]),default:()=>u({})}}),_=Symbol("rowContextKey");var K=y({name:"ElCol",__name:"col",props:S,setup(r){const s=r,{gutter:n}=h(_,{gutter:c(()=>0)}),a=$("col"),m=c(()=>{const t={};return n.value&&(t.paddingLeft=t.paddingRight=`${n.value/2}px`),t}),b=c(()=>{const t=[];return["span","offset","pull","push"].forEach(e=>{const l=s[e];p(l)&&(e==="span"?t.push(a.b(`${s[e]}`)):l>0&&t.push(a.b(`${e}-${s[e]}`)))}),["xs","sm","md","lg","xl"].forEach(e=>{p(s[e])?t.push(a.b(`${e}-${s[e]}`)):E(s[e])&&Object.entries(s[e]).forEach(([l,f])=>{t.push(l!=="span"?a.b(`${e}-${l}-${f}`):a.b(`${e}-${f}`))})}),n.value&&t.push(a.is("guttered")),[a.b(),t]});return(t,d)=>(N(),g(O(r.tag),{class:C(b.value),style:v(m.value)},{default:j(()=>[x(t.$slots,"default")]),_:3},8,["class","style"]))}});const P=w(K);export{P as E,_ as r};
