import _extends from"babel-runtime/helpers/extends";import _classCallCheck from"babel-runtime/helpers/classCallCheck";import _createClass from"babel-runtime/helpers/createClass";import _possibleConstructorReturn from"babel-runtime/helpers/possibleConstructorReturn";import _inherits from"babel-runtime/helpers/inherits";import*as React from"react";import*as PropTypes from"prop-types";import RcSteps from"rc-steps";var cloneElement=React.cloneElement,Steps=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=_extends({},this.props),t=e.progressDot,r=e.prefixCls;return"poor"===t?(e.progressDot=function(e){return cloneElement(e,{className:r+"-icon-dot "+r+"-icon-dot-poor"})},e.className=r+"-poor"):"outstanding"===t&&(e.progressDot=function(e,t){var s=t.status,o=t.index,n=null;return"wait"===s&&(n=React.createElement("span",{className:r+"-title-inner"},o+1)),cloneElement(e,{className:r+"-icon-dot "+r+"-icon-dot-outstanding"},n)},e.className=r+"-outstanding"),React.createElement(RcSteps,e)}}]),t}(React.Component);export default Steps;Steps.Step=RcSteps.Step,Steps.defaultProps={prefixCls:"dt-steps",iconPrefix:"",current:0},Steps.propTypes={prefixCls:PropTypes.string,iconPrefix:PropTypes.string,current:PropTypes.number};