70 lines
2 KiB
JavaScript
70 lines
2 KiB
JavaScript
// Module ID: 5661
|
|
// Function ID: 5662
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 5554]
|
|
|
|
// Module 5661 (_isNativeReflectConstruct)
|
|
import _inheritsDefault from "_inherits" /* 98 */;
|
|
import NativeGesture from "_classCallCheck" /* 41 */;
|
|
import closure_1 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_2 from "_getPrototypeOf" /* 95 */;
|
|
import importDefaultResult from "_createClass" /* 42 */;
|
|
|
|
function _isNativeReflectConstruct() {
|
|
try {
|
|
const _Boolean = Boolean;
|
|
const call = valueOf.call;
|
|
const _Reflect = Reflect;
|
|
const _Boolean2 = Boolean;
|
|
if (typeof call === "unknown") {
|
|
let callResult = valueOf();
|
|
} else {
|
|
callResult = call(constructResult);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
class NativeGesture {
|
|
constructor() {
|
|
self = this;
|
|
tmp = NativeGesture(this, NativeGesture);
|
|
tmp2 = closure_2;
|
|
obj = closure_2(NativeGesture);
|
|
tmp3 = closure_1;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, [], tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, undefined);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
tmp3Result.config = {};
|
|
tmp3Result.handlerName = "NativeViewGestureHandler";
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_inheritsDefault(NativeGesture, require("_isNativeReflectConstruct").BaseGesture);
|
|
const items = [
|
|
{
|
|
key: "shouldActivateOnStart",
|
|
value: function shouldActivateOnStart(shouldActivateOnStart) {
|
|
this.config.shouldActivateOnStart = shouldActivateOnStart;
|
|
return this;
|
|
}
|
|
},
|
|
{
|
|
key: "disallowInterruption",
|
|
value: function disallowInterruption(disallowInterruption) {
|
|
this.config.disallowInterruption = disallowInterruption;
|
|
return this;
|
|
}
|
|
}
|
|
];
|
|
|
|
export const NativeGesture = importDefaultResult(NativeGesture, items);
|