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,OAAO,eAAe,IAAe,KAAK,KAAM,IAGxH,OADA,EAAM,MAAQ,CAAC,EACR,CACT,CAgDA,OAzDA,UAAU,EA0DV,OAAO,WA/CP,aAAa,EAAc,CAAC,CAC1B,IAAK,oBACL,MAAO,SAA2B,GAChC,IAAI,EAAS,KAEb,KAAK,OACL,aAAY,WACV,OAAO,EAAO,MAChB,GAAG,KAAK,MAAM,SAChB,GACC,CACD,IAAK,OACL,MAAO,WAUL,IATA,IAAI,EAAS,KAET,EAAQ,SAAe,GACzB,IAAI,EAAM,EAAO,MAAM,KAAK,GAC5B,YAAW,WACT,OAAO,EAAO,SAAS,CAAE,IAAK,GAChC,GAAG,EAAI,EAAO,MAAM,SACtB,EAES,EAAI,EAAG,EAAI,KAAK,MAAM,KAAK,OAAQ,IAC1C,EAAM,EAEV,GACC,CACD,IAAK,SACL,MAAO,WACL,OAAO,QAAQ,QAAQ,cACrB,MACA,CAAE,MAAO,CACL,MAAyB,IAAlB,KAAK,MAAM,KAClB,OAA0B,IAAlB,KAAK,MAAM,KACnB,QAAS,OACT,eAAgB,SAChB,WAAY,SACZ,gBAAiB,OAAS,KAAK,MAAM,WAAa,IAClD,eAAgB,UAGpB,QAAQ,QAAQ,cAAc,MAAO,CAAE,MAAO,CAAE,MAAO,QAAS,OAAQ,KAAK,MAAM,MAAQ,IAAK,KAAK,MAAM,IAAK,IAAK,iBAEzH,KAGK,CACT,CA3DmB,GA6DnB,QAAQ,QAAU","file":"/npm/infinite-loop-animation@1.0.5/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/infinite-loop-animation@1.0.5/dist/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 _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\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 InfiniteLoop = function (_Component) {\n  _inherits(InfiniteLoop, _Component);\n\n  function InfiniteLoop(props) {\n    _classCallCheck(this, InfiniteLoop);\n\n    var _this = _possibleConstructorReturn(this, (InfiniteLoop.__proto__ || Object.getPrototypeOf(InfiniteLoop)).call(this, props));\n\n    _this.state = {};\n    return _this;\n  }\n\n  _createClass(InfiniteLoop, [{\n    key: 'componentDidMount',\n    value: function componentDidMount(props) {\n      var _this2 = this;\n\n      this.loop();\n      setInterval(function () {\n        return _this2.loop();\n      }, this.props.duration);\n    }\n  }, {\n    key: 'loop',\n    value: function loop() {\n      var _this3 = this;\n\n      var _loop = function _loop(i) {\n        var img = _this3.props.data[i];\n        setTimeout(function () {\n          return _this3.setState({ img: img });\n        }, i * _this3.props.duration);\n      };\n\n      for (var i = 0; i < this.props.data.length; i++) {\n        _loop(i);\n      }\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      return _react2.default.createElement(\n        'div',\n        { style: {\n            width: this.props.size * 2.2,\n            height: this.props.size * 2.2,\n            display: 'flex',\n            justifyContent: 'center',\n            alignItems: 'center',\n            backgroundImage: 'url(' + this.props.background + ')',\n            backgroundSize: 'cover'\n          }\n        },\n        _react2.default.createElement('img', { style: { width: '100vh', height: this.props.size }, src: this.state.img, alt: 'infiniteLoop' })\n      );\n    }\n  }]);\n\n  return InfiniteLoop;\n}(_react.Component);\n\nexports.default = InfiniteLoop;"]}