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,GAEtB,IAAI,EAAQ,2BAA2B,MAAO,EAAS,WAAa,OAAO,eAAe,IAAW,KAAK,KAAM,IAGhH,OADA,EAAM,OAAS,EAAM,OAAO,KAAK,GAC1B,CACT,CAqBA,OA9BA,UAAU,EA+BV,OAAO,WApBP,aAAa,EAAU,CAAC,CACtB,IAAK,qBACL,MAAO,SAA4B,IAC5B,EAAU,QAAU,KAAK,MAAM,SAClC,EAAI,aAAa,UAAU,KAAK,UAAW,KAAK,MAAM,OAE1D,GACC,CACD,IAAK,SACL,MAAO,SAAgB,GACrB,KAAK,UAAY,CACnB,GACC,CACD,IAAK,SACL,MAAO,WACL,OAAO,QAAQ,QAAQ,cAAc,MAAO,CAAE,UAAW,KAAK,MAAM,UAAW,MAAO,MAAO,IAAK,KAAK,QACzG,KAGK,CACT,CAhCe,GAkCf,QAAQ,QAAU","file":"/npm/react-dom-confetti@0.2.0/lib/confetti.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-dom-confetti@0.2.0/lib/confetti.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 _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 _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _domConfetti = require(\"dom-confetti\");\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 _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\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 style = {\n  position: \"relative\"\n};\n\nvar Confetti = function (_Component) {\n  _inherits(Confetti, _Component);\n\n  function Confetti(props) {\n    _classCallCheck(this, Confetti);\n\n    var _this = _possibleConstructorReturn(this, (Confetti.__proto__ || Object.getPrototypeOf(Confetti)).call(this, props));\n\n    _this.setRef = _this.setRef.bind(_this);\n    return _this;\n  }\n\n  _createClass(Confetti, [{\n    key: \"componentDidUpdate\",\n    value: function componentDidUpdate(prevProps) {\n      if (!prevProps.active && this.props.active) {\n        (0, _domConfetti.confetti)(this.container, this.props.config);\n      }\n    }\n  }, {\n    key: \"setRef\",\n    value: function setRef(ref) {\n      this.container = ref;\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return _react2.default.createElement(\"div\", { className: this.props.className, style: style, ref: this.setRef });\n    }\n  }]);\n\n  return Confetti;\n}(_react.Component);\n\nexports.default = Confetti;"]}