decord/source/5048__isNativeReflectConstruct.js

86 lines
3 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 5048
2026-07-21 22:01:30 +00:00
// Function ID: 43092
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
// Dependencies: []
// Module 5048 (_isNativeReflectConstruct)
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
let closure_0 = importDefault(dependencyMap[0]);
let closure_1 = importDefault(dependencyMap[1]);
let closure_2 = importDefault(dependencyMap[2]);
let closure_3 = importDefault(dependencyMap[3]);
let closure_4 = importDefault(dependencyMap[4]);
2026-07-21 06:55:02 +00:00
let closure_5 = importDefault(dependencyMap[5]);
2026-07-21 22:01:30 +00:00
let closure_6 = { code: "function changeEventCalculator_Pnpm_rotationGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}" };
2026-07-21 06:55:02 +00:00
let closure_7 = () => {
2026-07-21 22:01:30 +00:00
function changeEventCalculator(rotation, rotation2) {
if (undefined === rotation2) {
let obj = { rotationChange: rotation.rotation };
2026-07-21 06:55:02 +00:00
} else {
2026-07-21 22:01:30 +00:00
obj = { rotationChange: rotation.rotation - rotation2.rotation };
2026-07-21 06:55:02 +00:00
}
2026-07-21 22:01:30 +00:00
return Object.assign({}, rotation, obj);
2026-07-21 06:55:02 +00:00
}
changeEventCalculator.__closure = {};
2026-07-21 22:01:30 +00:00
changeEventCalculator.__workletHash = 11988645380499;
2026-07-21 06:55:02 +00:00
changeEventCalculator.__initData = closure_6;
return changeEventCalculator;
}();
2026-07-20 16:05:17 +00:00
2026-07-21 22:01:30 +00:00
export const RotationGesture = (ContinousBaseGesture) => {
class RotationGesture {
2026-07-20 16:05:17 +00:00
constructor() {
self = this;
2026-07-21 22:01:30 +00:00
tmp = RotationGesture(this, RotationGesture);
obj = closure_3(RotationGesture);
2026-07-20 16:05:17 +00:00
tmp2 = closure_2;
2026-07-21 06:55:02 +00:00
if (closure_8()) {
2026-07-20 16:05:17 +00:00
tmp4 = globalThis;
_Reflect = Reflect;
tmp5 = closure_3;
constructResult = Reflect.construct(obj, [], closure_3(self).constructor);
} else {
constructResult = obj.apply(self, undefined);
}
tmp2Result = tmp2(self, constructResult);
2026-07-21 22:01:30 +00:00
tmp2Result.handlerName = "RotationGestureHandler";
2026-07-20 16:05:17 +00:00
return tmp2Result;
}
}
2026-07-21 22:01:30 +00:00
let closure_0 = RotationGesture;
callback2(RotationGesture, ContinousBaseGesture);
2026-07-21 06:55:02 +00:00
const items = [
{
key: "onChange",
value: function onChange(arg0) {
this.handlers.changeEventCalculator = closure_7;
const items = [arg0];
2026-07-21 22:01:30 +00:00
return function _superPropGet(RotationGesture, onChange, arg2, arg3) {
let prototype = RotationGesture;
2026-07-21 06:55:02 +00:00
if (1) {
2026-07-21 22:01:30 +00:00
prototype = RotationGesture.prototype;
2026-07-21 06:55:02 +00:00
}
const tmpResult = closure_4(closure_3(prototype), "onChange", arg2);
let fn = tmpResult;
if (2) {
fn = tmpResult;
if ("function" === typeof tmpResult) {
fn = (arg0) => tmpResult.apply(arg2, arg0);
}
}
return fn;
2026-07-21 22:01:30 +00:00
}(RotationGesture, "onChange", this, 3)(items);
2026-07-21 06:55:02 +00:00
}
2026-07-20 16:05:17 +00:00
}
2026-07-21 06:55:02 +00:00
];
2026-07-21 22:01:30 +00:00
return callback(RotationGesture, items);
2026-07-21 06:55:02 +00:00
}(arg1(dependencyMap[6]).ContinousBaseGesture);