{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\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); }; }\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; } }\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nimport { BaseGesture } from \"./gesture\";\nexport var NativeGesture = function (_BaseGesture) {\n _inherits(NativeGesture, _BaseGesture);\n var _super = _createSuper(NativeGesture);\n function NativeGesture() {\n var _this;\n _classCallCheck(this, NativeGesture);\n _this = _super.call(this);\n _defineProperty(_assertThisInitialized(_this), \"config\", {});\n _this.handlerName = 'NativeViewGestureHandler';\n return _this;\n }\n _createClass(NativeGesture, [{\n key: \"shouldActivateOnStart\",\n value: function shouldActivateOnStart(value) {\n this.config.shouldActivateOnStart = value;\n return this;\n }\n }, {\n key: \"disallowInterruption\",\n value: function disallowInterruption(value) {\n this.config.disallowInterruption = value;\n return this;\n }\n }]);\n return NativeGesture;\n}(BaseGesture);","map":{"version":3,"sources":["nativeGesture.ts"],"names":["BaseGesture","NativeGesture","constructor","handlerName","shouldActivateOnStart","value","config","disallowInterruption"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,SAA4BA,WAA5B;AAMA,WAAaC,aAAN;EAAA;EAAA;EAGLC,yBAAc;IAAA;IAAA;IACZ;IADY,eAAA,gCAAA,QAAA,EAF+C,CAAA,CAE/C,CAAA;IAGZ,MAAKC,WAAL,GAAmB,0BAAnB;IAAA;EACD;EAAA;IAAA;IAAA,OAEDC,+BAAsBC,KAAD,EAAiB;MACpC,IAAA,CAAKC,MAAL,CAAYF,qBAAZ,GAAoCC,KAApC;MACA,OAAO,IAAP;IACD;EAAA;IAAA;IAAA,OAEDE,8BAAqBF,KAAD,EAAiB;MACnC,IAAA,CAAKC,MAAL,CAAYC,oBAAZ,GAAmCF,KAAnC;MACA,OAAO,IAAP;IACD;EAAA;EAAA;AAAA,EAjBgCL,WAA5B","sourcesContent":["import { BaseGestureConfig, BaseGesture } from './gesture';\nimport {\n NativeViewGestureConfig,\n NativeViewGestureHandlerPayload,\n} from '../NativeViewGestureHandler';\n\nexport class NativeGesture extends BaseGesture {\n public config: BaseGestureConfig & NativeViewGestureConfig = {};\n\n constructor() {\n super();\n\n this.handlerName = 'NativeViewGestureHandler';\n }\n\n shouldActivateOnStart(value: boolean) {\n this.config.shouldActivateOnStart = value;\n return this;\n }\n\n disallowInterruption(value: boolean) {\n this.config.disallowInterruption = value;\n return this;\n }\n}\n\nexport type NativeGestureType = InstanceType;\n"]},"metadata":{},"sourceType":"module"}