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P,GACC,CACD,IAAK,aACL,MAAO,SAAoB,GACzB,KAAK,MAAM,OAAS,KAAK,MAAM,MAAM,EACvC,GACC,CACD,IAAK,WACL,MAAO,WACL,MAAO,CACL,aAAc,KAAK,WAAW,KAAK,MACnC,YAAa,KAAK,UAAU,KAAK,MACjC,WAAY,KAAK,SAAS,KAAK,MAC/B,cAAe,KAAK,YAAY,KAAK,MACrC,QAAS,KAAK,aAAa,KAAK,MAEpC,KAGK,CACT,CA/M4B,GAiN5B,QAAiB,QAAI,SAErB,gBAAgB,SAAU,YAAa,CACrC,UAAW,WAAoB,QAAE,IACjC,MAAO,WAAoB,QAAE,KAC7B,SAAU,WAAoB,QAAE,KAChC,YAAa,WAAoB,QAAE,KACnC,eAAgB,WAAoB,QAAE,KACtC,cAAe,WAAoB,QAAE,KACrC,cAAe,WAAoB,QAAE,KACrC,WAAY,WAAoB,QAAE,KAClC,cAAe,WAAoB,QAAE,KACrC,aAAc,WAAoB,QAAE,KACpC,aAAc,WAAoB,QAAE,KACpC,eAAgB,WAAoB,QAAE,OACtC,MAAO,WAAoB,QAAE,SAG/B,gBAAgB,SAAU,eAAgB,CACxC,UAAW,MACX,eAAgB,GAChB,MAAO","file":"/npm/react-tapper@0.1.23/lib/tappable.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/react-tapper@0.1.23/lib/tappable.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\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; 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\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 _touchSupport = _interopRequireDefault(require(\"./touch-support\"));\n\nvar _touchStyles = _interopRequireDefault(require(\"./touch-styles\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\n\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\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 _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, writable: true, configurable: true } }); 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 _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\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 _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar _extends = Object.assign || function (target) {\n  for (var i = 1; i < arguments.length; i++) {\n    var source = arguments[i];\n\n    for (var key in source) {\n      if (Object.prototype.hasOwnProperty.call(source, key)) {\n        target[key] = source[key];\n      }\n    }\n  }\n\n  return target;\n};\n\nvar Tappable = /*#__PURE__*/function (_Component) {\n  _inherits(Tappable, _Component);\n\n  var _super = _createSuper(Tappable);\n\n  function Tappable(props, context) {\n    var _this;\n\n    _classCallCheck(this, Tappable);\n\n    _this = _super.call(this, props, context);\n    _this.state = _this.getInitialState();\n    _this.touchable = (0, _touchSupport[\"default\"])();\n    return _this;\n  }\n\n  _createClass(Tappable, [{\n    key: \"getInitialState\",\n    value: function getInitialState() {\n      return {\n        x: null,\n        y: null,\n        swiping: false,\n        start: 0\n      };\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var props = this.props,\n          style = {};\n\n      _extends(style, _touchStyles[\"default\"], props.style);\n\n      var newComponentProps = _extends({}, props, {\n        style: style,\n        className: props.className,\n        disabled: props.disabled //, handlers: this.handlers\n\n      }, this.handlers());\n\n      delete newComponentProps.onTap;\n      delete newComponentProps.onPress;\n      delete newComponentProps.onPinchStart;\n      delete newComponentProps.onPinchMove;\n      delete newComponentProps.onPinchEnd;\n      delete newComponentProps.moveThreshold;\n      delete newComponentProps.pressDelay;\n      delete newComponentProps.pressMoveThreshold;\n      delete newComponentProps.preventDefault;\n      delete newComponentProps.stopPropagation;\n      delete newComponentProps.component;\n      delete newComponentProps.flickThreshold;\n      delete newComponentProps.delta; //delete newComponentProps.handlers\n\n      return /*#__PURE__*/(0, _react.createElement)(props.component, newComponentProps, props.children);\n    }\n  }, {\n    key: \"calculatePos\",\n    value: function calculatePos(e) {\n      var x = e.changedTouches[0].clientX;\n      var y = e.changedTouches[0].clientY;\n      var xd = this.state.x - x;\n      var yd = this.state.y - y;\n      var axd = Math.abs(xd);\n      var ayd = Math.abs(yd);\n      return {\n        deltaX: xd,\n        deltaY: yd,\n        absX: axd,\n        absY: ayd\n      };\n    }\n  }, {\n    key: \"touchStart\",\n    value: function touchStart(e) {\n      if (e.touches.length > 1) {\n        return;\n      }\n\n      if (!this.touchable) {\n        console.debug('Damn! You are using a non-touchable browser simulating touch events!');\n        this.touchable = true;\n      }\n\n      this.setState({\n        start: Date.now(),\n        x: e.touches[0].clientX,\n        y: e.touches[0].clientY,\n        swiping: false\n      });\n    }\n  }, {\n    key: \"touchMove\",\n    value: function touchMove(e) {\n      if (!this.state.x || !this.state.y || e.touches.length > 1) {\n        return;\n      }\n\n      var cancelPageSwipe = false;\n      var pos = this.calculatePos(e);\n\n      if (pos.absX < this.props.delta && pos.absY < this.props.delta) {\n        return;\n      }\n\n      if (pos.absX > pos.absY) {\n        if (pos.deltaX > 0) {\n          if (this.props.onSwipingLeft) {\n            this.props.onSwipingLeft(e, pos.absX);\n            cancelPageSwipe = true;\n          }\n        } else {\n          if (this.props.onSwipingRight) {\n            this.props.onSwipingRight(e, pos.absX);\n            cancelPageSwipe = true;\n          }\n        }\n      } else {\n        if (pos.deltaY > 0) {\n          if (this.props.onSwipingUp) {\n            this.props.onSwipingUp(e, pos.absY);\n            cancelPageSwipe = true;\n          }\n        } else {\n          if (this.props.onSwipingDown) {\n            this.props.onSwipingDown(e, pos.absY);\n            cancelPageSwipe = true;\n          }\n        }\n      }\n\n      this.setState({\n        swiping: true\n      });\n\n      if (cancelPageSwipe) {\n        e.preventDefault();\n      }\n    }\n  }, {\n    key: \"touchEnd\",\n    value: function touchEnd(ev) {\n      if (this.state.swiping) {\n        var pos = this.calculatePos(ev);\n        var time = Date.now() - this.state.start;\n        var velocity = Math.sqrt(pos.absX * pos.absX + pos.absY * pos.absY) / time;\n        var isFlick = velocity > this.props.flickThreshold;\n        this.props.onSwiped && this.props.onSwiped(ev, pos.deltaX, pos.deltaY, isFlick);\n\n        if (pos.absX > pos.absY) {\n          if (pos.deltaX > 0) {\n            this.props.onSwipedLeft && this.props.onSwipedLeft(ev, pos.deltaX);\n          } else {\n            this.props.onSwipedRight && this.props.onSwipedRight(ev, pos.deltaX);\n          }\n        } else {\n          if (pos.deltaY > 0) {\n            this.props.onSwipedUp && this.props.onSwipedUp(ev, pos.deltaY);\n          } else {\n            this.props.onSwipedDown && this.props.onSwipedDown(ev, pos.deltaY);\n          }\n        }\n      } else {\n        this._handleTap(ev);\n      }\n\n      this.setState(this.getInitialState());\n    }\n  }, {\n    key: \"touchCancel\",\n    value: function touchCancel(ev) {\n      this.setState(this.getInitialState());\n    }\n  }, {\n    key: \"_handleClick\",\n    value: function _handleClick(ev) {\n      var _this2 = this;\n\n      //!this.touchable && this._handleTap(ev)\n      if (this.state.start === 0) {\n        this._handleTap(ev);\n      } else {\n        setTimeout(function () {\n          _this2.state.start === 0 && _this2._handleTap(ev);\n        }, 300);\n      }\n    }\n  }, {\n    key: \"_handleTap\",\n    value: function _handleTap(ev) {\n      this.props.onTap && this.props.onTap(ev);\n    }\n  }, {\n    key: \"handlers\",\n    value: function handlers() {\n      return {\n        onTouchStart: this.touchStart.bind(this),\n        onTouchMove: this.touchMove.bind(this),\n        onTouchEnd: this.touchEnd.bind(this),\n        onTouchCancel: this.touchCancel.bind(this),\n        onClick: this._handleClick.bind(this)\n      };\n    }\n  }]);\n\n  return Tappable;\n}(_react.Component);\n\nexports[\"default\"] = Tappable;\n\n_defineProperty(Tappable, \"propTypes\", {\n  component: _propTypes[\"default\"].any,\n  onTap: _propTypes[\"default\"].func,\n  onSwiped: _propTypes[\"default\"].func,\n  onSwipingUp: _propTypes[\"default\"].func,\n  onSwipingRight: _propTypes[\"default\"].func,\n  onSwipingDown: _propTypes[\"default\"].func,\n  onSwipingLeft: _propTypes[\"default\"].func,\n  onSwipedUp: _propTypes[\"default\"].func,\n  onSwipedRight: _propTypes[\"default\"].func,\n  onSwipedDown: _propTypes[\"default\"].func,\n  onSwipedLeft: _propTypes[\"default\"].func,\n  flickThreshold: _propTypes[\"default\"].number,\n  delta: _propTypes[\"default\"].number\n});\n\n_defineProperty(Tappable, \"defaultProps\", {\n  component: 'div',\n  flickThreshold: 0.6,\n  delta: 10\n});\n"]}