import{__exports as e}from"../../../_virtual/Col.js";import t from"react";import{p as r}from"../../prop-types/index.js";import{c as o}from"../../classnames/index.js";import"./utils.js";import{__exports as a}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getColumnClasses=e.default=void 0;var s=c(t),l=c(r),n=c(o),u=a,f=["className","cssModule","widths","tag"];function c(e){return e&&e.__esModule?e:{default:e}}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},i.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,o,a=function(e,t){if(null==e)return{};var r,o,a={},s=Object.keys(e);for(o=0;o<s.length;o++)r=s[o],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=["xs","sm","md","lg","xl","xxl"],b=l.default.oneOfType([l.default.number,l.default.string]),g=l.default.oneOfType([l.default.bool,l.default.number,l.default.string,l.default.shape({size:l.default.oneOfType([l.default.bool,l.default.number,l.default.string]),order:b,offset:b})]),v={tag:u.tagPropType,xs:g,sm:g,md:g,lg:g,xl:g,xxl:g,className:l.default.string,cssModule:l.default.object,widths:l.default.array},y={tag:"div",widths:m},O=function(e,t,r){return!0===r||""===r?e?"col":"col-".concat(t):"auto"===r?e?"col-auto":"col-".concat(t,"-auto"):e?"col-".concat(r):"col-".concat(t,"-").concat(r)},h=function(e,t){var r=e,o=[];return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:m).forEach((function(e,a){var s=r[e];if(delete r[e],s||""===s){var l=!a;if((0,u.isObject)(s)){var f,c=l?"-":"-".concat(e,"-"),i=O(l,e,s.size);o.push((0,u.mapToCssModules)((0,n.default)((p(f={},i,s.size||""===s.size),p(f,"order".concat(c).concat(s.order),s.order||0===s.order),p(f,"offset".concat(c).concat(s.offset),s.offset||0===s.offset),f)),t))}else{var d=O(l,e,s);o.push(d)}}})),{colClasses:o,modifiedAttributes:r}};function j(e){var t=e.className,r=e.cssModule,o=e.widths,a=e.tag,l=d(e,f),c=h(l,r,o),p=c.modifiedAttributes,m=c.colClasses;m.length||m.push("col");var b=(0,u.mapToCssModules)((0,n.default)(t,m),r);return s.default.createElement(a,i({},p,{className:b}))}e.getColumnClasses=h,j.propTypes=v,j.defaultProps=y;var x=j;e.default=x}(e);
//# sourceMappingURL=Col.js.map
