import{r as u,_ as g,R as y,c as d,P as e}from"./index-sga-FecS.js";const $=["xxl","xl","lg","md","sm","xs"],x=u.forwardRef((l,p)=>{var{children:c,className:i}=l,n=g(l,["children","className"]);const o=[];return $.forEach(r=>{const s=n[r];delete n[r];const t=r==="xs"?"":`-${r}`;(typeof s=="number"||typeof s=="string")&&o.push(`col${t}-${s}`),typeof s=="boolean"&&o.push(`col${t}`),s&&typeof s=="object"&&((typeof s.span=="number"||typeof s.span=="string")&&o.push(`col${t}-${s.span}`),typeof s.span=="boolean"&&o.push(`col${t}`),(typeof s.order=="number"||typeof s.order=="string")&&o.push(`order${t}-${s.order}`),typeof s.offset=="number"&&o.push(`offset${t}-${s.offset}`))}),y.createElement("div",Object.assign({className:d(o.length>0?o:"col",i)},n,{ref:p}),c)}),m=e.oneOfType([e.bool,e.number,e.string,e.oneOf(["auto"])]),a=e.oneOfType([m,e.shape({span:m,offset:e.oneOfType([e.number,e.string]),order:e.oneOfType([e.oneOf(["first","last"]),e.number,e.string])})]);x.propTypes={children:e.node,className:e.string,xs:a,sm:a,md:a,lg:a,xl:a,xxl:a};x.displayName="CCol";const b=["xxl","xl","lg","md","sm","xs"],h=u.forwardRef((l,p)=>{var{children:c,className:i}=l,n=g(l,["children","className"]);const o=[];return b.forEach(r=>{const s=n[r];delete n[r];const t=r==="xs"?"":`-${r}`;typeof s=="object"&&(s.cols&&o.push(`row-cols${t}-${s.cols}`),typeof s.gutter=="number"&&o.push(`g${t}-${s.gutter}`),typeof s.gutterX=="number"&&o.push(`gx${t}-${s.gutterX}`),typeof s.gutterY=="number"&&o.push(`gy${t}-${s.gutterY}`))}),y.createElement("div",Object.assign({className:d("row",o,i)},n,{ref:p}),c)}),f=e.shape({cols:e.oneOfType([e.oneOf(["auto"]),e.number,e.string]),gutter:e.oneOfType([e.string,e.number]),gutterX:e.oneOfType([e.string,e.number]),gutterY:e.oneOfType([e.string,e.number])});h.propTypes={children:e.node,className:e.string,xs:f,sm:f,md:f,lg:f,xl:f,xxl:f};h.displayName="CRow";export{h as C,x as a};
