"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends2=require("babel-runtime/helpers/extends"),_extends3=_interopRequireDefault(_extends2),_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),_rcSteps=require("rc-steps"),_rcSteps2=_interopRequireDefault(_rcSteps);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 cloneElement=React.cloneElement,Steps=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=(0,_extends3.default)({},this.props),r=e.progressDot,o=e.prefixCls;return"poor"===r?(e.progressDot=function(e){return cloneElement(e,{className:o+"-icon-dot "+o+"-icon-dot-poor"})},e.className=o+"-poor"):"outstanding"===r&&(e.progressDot=function(e,r){var t=r.status,s=r.index,n=null;return"wait"===t&&(n=React.createElement("span",{className:o+"-title-inner"},s+1)),cloneElement(e,{className:o+"-icon-dot "+o+"-icon-dot-outstanding"},n)},e.className=o+"-outstanding"),React.createElement(_rcSteps2.default,e)}}]),r}(React.Component);(exports.default=Steps).Step=_rcSteps2.default.Step,Steps.defaultProps={prefixCls:"dt-steps",iconPrefix:"",current:0},Steps.propTypes={prefixCls:PropTypes.string,iconPrefix:PropTypes.string,current:PropTypes.number},module.exports=exports.default;