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SAAgB,GACrB,KAAK,MAAM,OAAO,SAAU,EAC9B,GACC,CACD,IAAK,UACL,MAAO,SAAiB,GACtB,KAAK,MAAM,OAAO,UAAW,EAC/B,GACC,CACD,IAAK,QACL,MAAO,WACL,KAAK,MAAM,OAAO,QACpB,GACC,CACD,IAAK,QACL,MAAO,WACL,KAAK,MAAM,OAAO,QACpB,GACC,CACD,IAAK,UACL,MAAO,WACL,KAAK,MAAM,OAAO,UACpB,GACC,CACD,IAAK,SACL,MAAO,WACL,KAAK,MAAM,OAAO,SACpB,IACE,CAAC,CACH,IAAK,YACL,MAAO,SAAS,CAAC,EAAG,sBAAuB,qBAAsB,CAC/D,aAAc,OAAO,UAAU,SAEjC,YAAY,KAGP,CACR,CAzFgB,GA2FjB,QAAiB,QAAI,WACrB,OAAO,QAAU,QAAiB","file":"/npm/react-bootstrap-star-rating@3.5.5-alpha.0.3/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-bootstrap-star-rating@3.5.5-alpha.0.3/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n  value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nvar _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _immutable = require('immutable');\n\n/* http://plugins.krajee.com/star-rating#options */\nrequire('bootstrap-star-rating/js/star-rating');\nvar pluginOptionPropTypes = {\n  stars: _react.PropTypes.number,\n  glyphicon: _react.PropTypes.bool,\n  symbol: _react.PropTypes.string,\n  ratingClass: _react.PropTypes.string,\n  min: _react.PropTypes.number,\n  max: _react.PropTypes.number,\n  step: _react.PropTypes.number,\n  disabled: _react.PropTypes.bool,\n  readonly: _react.PropTypes.bool,\n  rtl: _react.PropTypes.bool,\n  showClear: _react.PropTypes.bool,\n  showCaption: _react.PropTypes.bool,\n  size: _react.PropTypes.string,\n  defaultCaption: _react.PropTypes.string,\n  starCaptions: _react.PropTypes.oneOfType([_react.PropTypes.object, _react.PropTypes.func]),\n  starCaptionClasses: _react.PropTypes.oneOfType([_react.PropTypes.object, _react.PropTypes.func]),\n  clearButton: _react.PropTypes.string,\n  clearButtonTitle: _react.PropTypes.string,\n  clearButtonBaseClass: _react.PropTypes.string,\n  clearButtonActiveClass: _react.PropTypes.string,\n  clearValue: _react.PropTypes.string,\n  clearCaption: _react.PropTypes.string,\n  clearCaptionClass: _react.PropTypes.string,\n  captionElement: _react.PropTypes.string,\n  clearElement: _react.PropTypes.string,\n  hoverEnabled: _react.PropTypes.bool,\n  hoverChangeCaption: _react.PropTypes.bool,\n  hoverChangeStars: _react.PropTypes.bool,\n  hoverOnClear: _react.PropTypes.bool\n};\n\n/* http://plugins.krajee.com/star-rating#events */\nvar pluginEvents = {\n  'rating.change': 'onRatingChange',\n  'rating.clear': 'onRatingClear',\n  'rating.reset': 'onRatingReset',\n  'rating.hover': 'onRatingHover',\n  'rating.hoverleave': 'onRatingHoverleave'\n};\n\nvar pluginEventPropTypes = (0, _immutable.Seq)(pluginEvents).map(function (_) {\n  return _react.PropTypes.func;\n}).toJS();\n\nvar StarRating = (function (_Component) {\n  _inherits(StarRating, _Component);\n\n  function StarRating() {\n    _classCallCheck(this, StarRating);\n\n    _get(Object.getPrototypeOf(StarRating.prototype), 'constructor', this).apply(this, arguments);\n  }\n\n  _createClass(StarRating, [{\n    key: 'componentDidMount',\n    value: function componentDidMount() {\n      var _this = this;\n\n      var options = (0, _immutable.Seq)(pluginOptionPropTypes).map(function (_, key) {\n        return _this.props[key];\n      }).filter(function (value) {\n        if (typeof value != 'undefined') return true;\n        return false;\n      }).toJS();\n      this.$node.rating(options);\n      (0, _immutable.Seq)(pluginEvents).forEach(function (key, name) {\n        if (_this.props[key]) _this.$node.on(name, _this.props[key]);\n        return true;\n      });\n    }\n  }, {\n    key: 'componentWillUnmount',\n    value: function componentWillUnmount() {\n      var _this2 = this;\n\n      (0, _immutable.Seq)(pluginEvents).forEach(function (key, name) {\n        if (_this2.props[key]) _this2.$node.off(name, _this2.props[key]);\n        return true;\n      });\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var _this3 = this;\n\n      return _react2['default'].createElement('input', {\n        ref: function (node) {\n          _this3.$node = (0, _jquery2['default'])(node);\n        },\n        defaultValue: this.props.defaultValue });\n    }\n\n    /* http://plugins.krajee.com/star-rating#methods */\n\n  }, {\n    key: 'update',\n    value: function update(value) {\n      this.$node.rating('update', value);\n    }\n  }, {\n    key: 'refresh',\n    value: function refresh(options) {\n      this.$node.rating('refresh', options);\n    }\n  }, {\n    key: 'reset',\n    value: function reset() {\n      this.$node.rating('reset');\n    }\n  }, {\n    key: 'clear',\n    value: function clear() {\n      this.$node.rating('clear');\n    }\n  }, {\n    key: 'destroy',\n    value: function destroy() {\n      this.$node.rating('destroy');\n    }\n  }, {\n    key: 'create',\n    value: function create() {\n      this.$node.rating('create');\n    }\n  }], [{\n    key: 'propTypes',\n    value: _extends({}, pluginOptionPropTypes, pluginEventPropTypes, {\n      defaultValue: _react.PropTypes.number\n    }),\n    enumerable: true\n  }]);\n\n  return StarRating;\n})(_react.Component);\n\nexports['default'] = StarRating;\nmodule.exports = exports['default'];"]}