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GK,CACT,CA3CA,GA6CI,SAAW,UACf,QAAQ,QAAU","file":"/npm/react-image-lazy-load-component@0.2.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-image-lazy-load-component@0.2.0/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});\nexports.default = void 0;\n\nvar _react = _interopRequireWildcard(require(\"react\"));\n\nrequire(\"./style.css\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } 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\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nvar IMAGE_FADE_IN_CLASS = \"iron-image--fade-in\";\n\nvar IronImage =\n/*#__PURE__*/\nfunction (_Component) {\n  _inherits(IronImage, _Component);\n\n  function IronImage(props) {\n    var _this;\n\n    _classCallCheck(this, IronImage);\n\n    _this = _possibleConstructorReturn(this, (IronImage.__proto__ || Object.getPrototypeOf(IronImage)).call(this, props));\n    _this.state = {\n      imageLoadFinishedClass: \"\",\n      placeholderStyle: {\n        backgroundImage: \"url(\".concat(props.placeholder, \")\")\n      }\n    };\n    _this.imageLoadHandler = _this.imageLoadHandler.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n\n  _createClass(IronImage, [{\n    key: \"imageLoadHandler\",\n    value: function imageLoadHandler() {\n      this.setState({\n        imageLoadFinishedClass: IMAGE_FADE_IN_CLASS\n      });\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return _react.default.createElement(\"div\", {\n        className: \"iron-image__container\",\n        style: this.state.placeholderStyle\n      }, _react.default.createElement(\"img\", {\n        className: \"iron-image \".concat(this.state.imageLoadFinishedClass),\n        alt: this.props.alt,\n        src: this.props.src,\n        style: this.state.imageStyle,\n        onLoad: this.imageLoadHandler\n      }));\n    }\n  }]);\n\n  return IronImage;\n}(_react.Component);\n\nvar _default = IronImage;\nexports.default = _default;"]}