decord/source/6533__isNativeReflectConstruct.js

71 lines
1.9 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6533
// Function ID: 6534
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-24 06:08:38 +00:00
// Dependencies: [41, 42, 93, 95, 98, 6429]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 6533 (_isNativeReflectConstruct)
import _inheritsDefault from "_inherits" /* 98 */;
import FlingGesture from "_classCallCheck" /* 41 */;
import closure_1 from "_possibleConstructorReturn" /* 93 */;
import closure_2 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
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);
}
2026-08-24 06:08:38 +00:00
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-13 07:00:46 +00:00
class FlingGesture {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-13 07:00:46 +00:00
tmp = FlingGesture(this, FlingGesture);
2026-08-24 06:08:38 +00:00
tmp2 = closure_2;
obj = closure_2(FlingGesture);
tmp3 = closure_1;
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-13 07:00:46 +00:00
tmp3Result.handlerName = "FlingGestureHandler";
2026-07-29 08:29:29 +00:00
return tmp3Result;
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(FlingGesture, require("_isNativeReflectConstruct").BaseGesture);
2026-07-31 08:44:05 +00:00
const items = [
2026-07-29 08:29:29 +00:00
{
2026-08-13 07:00:46 +00:00
key: "numberOfPointers",
value: function numberOfPointers(numberOfPointers) {
this.config.numberOfPointers = numberOfPointers;
2026-07-31 08:44:05 +00:00
return this;
2026-07-29 08:29:29 +00:00
}
},
{
2026-08-13 07:00:46 +00:00
key: "direction",
value: function direction(DOWN) {
this.config.direction = DOWN;
2026-07-31 08:44:05 +00:00
return this;
2026-07-29 08:29:29 +00:00
}
}
];
2026-08-13 07:00:46 +00:00
export const FlingGesture = importDefaultResult(FlingGesture, items);