import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf } from './inherits-6cb67931.js'; import { Component } from 'react'; var WatnedPublishBase = /*#__PURE__*/ function (_Component) { _inherits(WatnedPublishBase, _Component); function WatnedPublishBase() { var _this; _classCallCheck(this, WatnedPublishBase); _this = _possibleConstructorReturn(this, _getPrototypeOf(WatnedPublishBase).apply(this, arguments)); _this.formatCurrentWanted = function (value) { var _this$props$inputWant = _this.props.inputWantedRange, inputWantedRange = _this$props$inputWant === void 0 ? [5, 10000] : _this$props$inputWant; if (!value) return null; var result; result = value; if (parseInt("".concat(value), 10) === value) { result = Number(value); } if (!result) return null; if (result > inputWantedRange[1]) result = inputWantedRange[1]; if (result < inputWantedRange[0]) result = inputWantedRange[0]; return result; }; _this.formatResult = function (value) { if (!value) return null; return Number(value).toFixed(2); }; return _this; } return WatnedPublishBase; }(Component); export { WatnedPublishBase as W }; //# sourceMappingURL=WantedPublish-b91e67a7.js.map