import{Q as b,c8 as u,R as o,d as i,X as y,W as h,o as g,a0 as $,p as v,a6 as N,O as _,K as x,aH as j,T as c,bx as f,bz as O,aq as C}from"./index-XuO881sr.js";import{r as E}from"./el-row-eghH2z0a.js";const w=b({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({})}});var K=i({name:"ElCol",__name:"col",props:w,setup(n){const s=n,{gutter:r}=y(E,{gutter:c(()=>0)}),a=h("col"),d=c(()=>{const t={};return r.value&&(t.paddingLeft=t.paddingRight=`${r.value/2}px`),t}),m=c(()=>{const t=[];return["span","offset","pull","push"].forEach(e=>{const l=s[e];f(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=>{f(s[e])?t.push(a.b(`${e}-${s[e]}`)):O(s[e])&&Object.entries(s[e]).forEach(([l,p])=>{t.push(l!=="span"?a.b(`${e}-${l}-${p}`):a.b(`${e}-${p}`))})}),r.value&&t.push(a.is("guttered")),[a.b(),t]});return(t,e)=>(g(),$(j(n.tag),{class:x(m.value),style:_(d.value)},{default:v(()=>[N(t.$slots,"default")]),_:3},8,["class","style"]))}}),S=K;const P=C(S);export{P as E};
