"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")),_createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass")),_possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")),_getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")),_inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits")),_defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty")),React=_interopRequireWildcard(require("react")),_propTypes=_interopRequireDefault(require("prop-types")),_rcProgress=require("rc-progress"),_withStyles=_interopRequireDefault(require("../../hoc/withStyles")),_ErrorBoundary=_interopRequireDefault(require("../../hoc/ErrorBoundary")),_styles=_interopRequireDefault(require("./styles")),CircularProgressBar=/*#__PURE__*/function(_React$Component){function CircularProgressBar(){return(0,_classCallCheck2.default)(this,CircularProgressBar),(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(CircularProgressBar).apply(this,arguments))}return(0,_inherits2.default)(CircularProgressBar,_React$Component),(0,_createClass2.default)(CircularProgressBar,[{key:"render",value:function render(){var _this$props=this.props,classes=_this$props.classes,value=_this$props.value,filledColor=_this$props.filledColor,unfilledColor=_this$props.unfilledColor,strokeWidth=_this$props.strokeWidth,lineShape=_this$props.lineShape,children=_this$props.children;return React.createElement(_ErrorBoundary.default,null,React.createElement("div",{className:classes.component},React.createElement(_rcProgress.Circle,{strokeWidth:strokeWidth,strokeColor:filledColor,trailColor:unfilledColor,trailWidth:strokeWidth,strokeLinecap:lineShape,percent:value}),children&&React.createElement("div",{className:classes.children},children)))}}]),CircularProgressBar}(React.Component);(0,_defineProperty2.default)(CircularProgressBar,"propTypes",{filledColor:_propTypes.default.string,unfilledColor:_propTypes.default.string,value:_propTypes.default.number,width:_propTypes.default.number,strokeWidth:_propTypes.default.number,lineShape:_propTypes.default.oneOf(["square","round","butt"]),children:_propTypes.default.node,classes:_propTypes.default.object}),(0,_defineProperty2.default)(CircularProgressBar,"defaultProps",{unfilledColor:"#DEDEDE",filledColor:"#f4a22a",width:150,strokeWidth:10,lineShape:"square"});var _default=(0,_withStyles.default)(_styles.default)(CircularProgressBar);exports.default=_default;