"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _defineProperty2=require("babel-runtime/helpers/defineProperty"),_defineProperty3=_interopRequireDefault(_defineProperty2),_extends3=require("babel-runtime/helpers/extends"),_extends4=_interopRequireDefault(_extends3),_typeof2=require("babel-runtime/helpers/typeof"),_typeof3=_interopRequireDefault(_typeof2),_classCallCheck2=require("babel-runtime/helpers/classCallCheck"),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=require("babel-runtime/helpers/createClass"),_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=require("babel-runtime/helpers/possibleConstructorReturn"),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=require("babel-runtime/helpers/inherits"),_inherits3=_interopRequireDefault(_inherits2),_react=require("react"),React=_interopRequireWildcard(_react),_propTypes=require("prop-types"),PropTypes=_interopRequireWildcard(_propTypes),_classnames=require("classnames"),_classnames2=_interopRequireDefault(_classnames);function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var __rest=function(e,r){var t={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.indexOf(s)<0&&(t[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)r.indexOf(s[o])<0&&(t[s[o]]=e[s[o]])}return t},stringOrNumber=PropTypes.oneOfType([PropTypes.string,PropTypes.number]),objectOrNumber=PropTypes.oneOfType([PropTypes.object,PropTypes.number]),Col=function(e){function r(){return(0,_classCallCheck3.default)(this,r),(0,_possibleConstructorReturn3.default)(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return(0,_inherits3.default)(r,e),(0,_createClass3.default)(r,[{key:"render",value:function(){var e,s=this.props,r=s.span,t=s.order,o=s.offset,l=s.push,u=s.pull,n=s.className,p=s.children,i=s.prefixCls,a=void 0===i?"dt-col":i,f=__rest(s,["span","order","offset","push","pull","className","children","prefixCls"]),d={};["xs","sm","md","lg","xl","xxl"].forEach(function(e){var r,t={};"number"==typeof s[e]?t.span=s[e]:"object"===(0,_typeof3.default)(s[e])&&(t=s[e]||{}),delete f[e],d=(0,_extends4.default)({},d,(r={},(0,_defineProperty3.default)(r,a+"-"+e+"-"+t.span,void 0!==t.span),(0,_defineProperty3.default)(r,a+"-"+e+"-order-"+t.order,t.order||0===t.order),(0,_defineProperty3.default)(r,a+"-"+e+"-offset-"+t.offset,t.offset||0===t.offset),(0,_defineProperty3.default)(r,a+"-"+e+"-push-"+t.push,t.push||0===t.push),(0,_defineProperty3.default)(r,a+"-"+e+"-pull-"+t.pull,t.pull||0===t.pull),r))});var _=(0,_classnames2.default)((e={},(0,_defineProperty3.default)(e,a+"-"+r,void 0!==r),(0,_defineProperty3.default)(e,a+"-order-"+t,t),(0,_defineProperty3.default)(e,a+"-offset-"+o,o),(0,_defineProperty3.default)(e,a+"-push-"+l,l),(0,_defineProperty3.default)(e,a+"-pull-"+u,u),e),n,d);return React.createElement("div",(0,_extends4.default)({},f,{className:_}),p)}}]),r}(React.Component);(exports.default=Col).propTypes={span:stringOrNumber,order:stringOrNumber,offset:stringOrNumber,push:stringOrNumber,pull:stringOrNumber,className:PropTypes.string,children:PropTypes.node,xs:objectOrNumber,sm:objectOrNumber,md:objectOrNumber,lg:objectOrNumber,xl:objectOrNumber,xxl:objectOrNumber},module.exports=exports.default;