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U,GAEb,CACT,CA1EA,CA0EE,OAAO,eAET,QAAQ,QAAU,SAClB,SAAS,UAAY,CACnB,GAAI,WAAW,QAAQ,OACvB,OAAQ,WAAW,QAAQ,KAC3B,WAAY,WAAW,QAAQ,KAC/B,OAAQ,WAAW,QAAQ,KAC3B,WAAY,WAAW,QAAQ,OAC/B,MAAO,WAAW,QAAQ,OAC1B,OAAQ,WAAW,QAAQ,QAE7B,SAAS,aAAe,CACtB,GAAI","file":"/npm/kota-react-rellax@1.0.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/kota-react-rellax@1.0.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\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _rellax = _interopRequireDefault(require(\"rellax\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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 _extends() { _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; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\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\"); } _setPrototypeOf(subClass.prototype, superClass && superClass.prototype); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\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; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.getPrototypeOf || function _getPrototypeOf(o) { return o.__proto__; }; return _getPrototypeOf(o); }\n\nvar Parallax =\n/*#__PURE__*/\nfunction (_PureComponent) {\n  function Parallax() {\n    _classCallCheck(this, Parallax);\n\n    return _possibleConstructorReturn(this, _getPrototypeOf(Parallax).apply(this, arguments));\n  }\n\n  _createClass(Parallax, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      if (this.el) {\n        var _this$props = this.props,\n            center = _this$props.center,\n            horizontal = _this$props.horizontal,\n            onMove = _this$props.onMove,\n            wrapper = _this$props.wrapper;\n        var config = {};\n\n        if (center) {\n          config.center = true;\n        }\n\n        if (horizontal) {\n          config.horizontal = true;\n        }\n\n        if (wrapper) {\n          config.wrapper = wrapper;\n        }\n\n        if (typeof onMove === 'function') {\n          config.callback = onMove.bind(this);\n        }\n\n        this.rellax = new _rellax.default(this.el, config);\n      }\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      if (this.rellax) {\n        this.rellax.destroy();\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this = this;\n\n      var _this$props2 = this.props,\n          as = _this$props2.as,\n          center = _this$props2.center,\n          horizontal = _this$props2.horizontal,\n          onMove = _this$props2.onMove,\n          percentage = _this$props2.percentage,\n          speed = _this$props2.speed,\n          zIndex = _this$props2.zIndex,\n          props = _objectWithoutProperties(_this$props2, [\"as\", \"center\", \"horizontal\", \"onMove\", \"percentage\", \"speed\", \"zIndex\"]);\n\n      var Tag = as;\n      return _react.default.createElement(Tag, _extends({\n        ref: function ref(el) {\n          _this.el = el;\n        },\n        \"data-rellax-percentage\": percentage,\n        \"data-rellax-speed\": speed,\n        \"data-rellax-zindex\": zIndex\n      }, props));\n    }\n  }]);\n\n  _inherits(Parallax, _PureComponent);\n\n  return Parallax;\n}(_react.PureComponent);\n\nexports.default = Parallax;\nParallax.propTypes = {\n  as: _propTypes.default.string,\n  center: _propTypes.default.bool,\n  horizontal: _propTypes.default.bool,\n  onMove: _propTypes.default.func,\n  percentage: _propTypes.default.number,\n  speed: _propTypes.default.number,\n  zIndex: _propTypes.default.number\n};\nParallax.defaultProps = {\n  as: 'div'\n};"]}