decord/source/5405__isNativeReflectConstruct.js

106 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 5405
// Function ID: 5406
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-05 07:35:12 +00:00
// Dependencies: [41, 42, 93, 95, 98, 5392]
2026-07-29 08:29:29 +00:00
2026-08-05 07:35:12 +00:00
// Module 5405 (_isNativeReflectConstruct)
import TapGesture from "_classCallCheck";
2026-07-29 08:29:29 +00:00
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
2026-07-31 08:44:05 +00:00
import importDefaultResult from "_createClass";
2026-07-29 08:29:29 +00:00
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);
}
let closure_0 = !callResult;
function _isNativeReflectConstruct() {
return closure_0;
}
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-05 07:35:12 +00:00
class TapGesture {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-05 07:35:12 +00:00
tmp = TapGesture(this, TapGesture);
2026-07-31 08:44:05 +00:00
tmp2 = __esModule;
2026-08-05 07:35:12 +00:00
obj = __esModule(TapGesture);
2026-07-31 08:44:05 +00:00
tmp3 = __esModule;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, [], tmp2(self).constructor);
} else {
constructResult = obj.apply(self, undefined);
}
tmp3Result = tmp3(self, constructResult);
2026-07-31 08:44:05 +00:00
tmp3Result.config = {};
2026-08-05 07:35:12 +00:00
tmp3Result.handlerName = "TapGestureHandler";
2026-07-31 08:44:05 +00:00
result = tmp3Result.shouldCancelWhenOutside(true);
2026-07-29 08:29:29 +00:00
return tmp3Result;
}
}
2026-08-05 07:35:12 +00:00
require("_inherits")(TapGesture, require("_isNativeReflectConstruct").BaseGesture);
2026-07-31 08:44:05 +00:00
const items = [
2026-07-29 08:29:29 +00:00
{
2026-08-05 07:35:12 +00:00
key: "minPointers",
value: function minPointers(minPointers) {
this.config.minPointers = minPointers;
return this;
}
},
{
key: "numberOfTaps",
value: function numberOfTaps(numberOfTaps) {
this.config.numberOfTaps = numberOfTaps;
2026-07-31 08:44:05 +00:00
return this;
2026-07-29 08:29:29 +00:00
}
},
{
2026-07-31 08:44:05 +00:00
key: "maxDistance",
value: function maxDistance(maxDist) {
this.config.maxDist = maxDist;
return this;
2026-07-29 08:29:29 +00:00
}
},
{
2026-08-05 07:35:12 +00:00
key: "maxDuration",
value: function maxDuration(maxDurationMs) {
this.config.maxDurationMs = maxDurationMs;
return this;
}
},
{
key: "maxDelay",
value: function maxDelay(maxDelayMs) {
this.config.maxDelayMs = maxDelayMs;
return this;
}
},
{
key: "maxDeltaX",
value: function maxDeltaX(maxDeltaX) {
this.config.maxDeltaX = maxDeltaX;
return this;
}
},
{
key: "maxDeltaY",
value: function maxDeltaY(maxDeltaY) {
this.config.maxDeltaY = maxDeltaY;
2026-07-31 08:44:05 +00:00
return this;
2026-07-29 08:29:29 +00:00
}
}
];
2026-08-05 07:35:12 +00:00
export const TapGesture = importDefaultResult(TapGesture, items);