264 lines
6.8 KiB
JavaScript
264 lines
6.8 KiB
JavaScript
// Module ID: 367
|
|
// Function ID: 5436
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: []
|
|
|
|
// Module 367 (_isNativeReflectConstruct)
|
|
function _isNativeReflectConstruct() {
|
|
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
|
|
|
|
}));
|
|
function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
}
|
|
const result = _isNativeReflectConstruct();
|
|
}
|
|
function _superPropGet(arg0, arg1, arg2, arg3) {
|
|
const importDefault = arg2;
|
|
let prototype = arg0;
|
|
if (1) {
|
|
prototype = arg0.prototype;
|
|
}
|
|
const tmpResult = closure_6(closure_5(prototype), arg1, arg2);
|
|
const dependencyMap = tmpResult;
|
|
let fn = tmpResult;
|
|
if (2) {
|
|
fn = tmpResult;
|
|
if ("function" === typeof tmpResult) {
|
|
fn = (arg0) => tmpResult.apply(arg2, arg0);
|
|
}
|
|
}
|
|
return fn;
|
|
}
|
|
let closure_2 = importDefault(dependencyMap[0]);
|
|
let closure_3 = importDefault(dependencyMap[1]);
|
|
let closure_4 = importDefault(dependencyMap[2]);
|
|
let closure_5 = importDefault(dependencyMap[3]);
|
|
let closure_6 = importDefault(dependencyMap[4]);
|
|
let closure_7 = importDefault(dependencyMap[5]);
|
|
let closure_8 = 1;
|
|
|
|
export default (arg0) => {
|
|
class AnimatedValueXY {
|
|
constructor(arg0, arg1) {
|
|
point = arg0;
|
|
self = this;
|
|
tmp = closure_2(this, AnimatedValueXY);
|
|
items = [];
|
|
items[0] = arg1;
|
|
obj = closure_5(AnimatedValueXY);
|
|
tmp2 = closure_4;
|
|
if (closure_9()) {
|
|
tmp4 = globalThis;
|
|
_Reflect = Reflect;
|
|
tmp5 = closure_5;
|
|
constructResult = Reflect.construct(obj, items, closure_5(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, items);
|
|
}
|
|
tmp2Result = tmp2(self, constructResult);
|
|
if (!point) {
|
|
point = {};
|
|
}
|
|
if ("number" === typeof point.x) {
|
|
if ("number" === typeof point.y) {
|
|
tmp11 = AnimatedValueXY;
|
|
tmp12 = closure_1;
|
|
num = 6;
|
|
tmp13 = AnimatedValueXY(closure_1[6]);
|
|
prototype = tmp13.prototype;
|
|
tmp14 = new.target;
|
|
tmp15 = new.target;
|
|
tmp13 = new tmp13(point.x);
|
|
tmp17 = tmp13;
|
|
tmp2Result.x = tmp13;
|
|
tmp18 = AnimatedValueXY(closure_1[6]);
|
|
prototype2 = tmp18.prototype;
|
|
tmp19 = new.target;
|
|
tmp20 = new.target;
|
|
tmp18 = new tmp18(point.y);
|
|
tmp22 = tmp18;
|
|
tmp2Result.y = tmp18;
|
|
}
|
|
tmp2Result._listeners = {};
|
|
useNativeDriver = arg1;
|
|
if (arg1) {
|
|
useNativeDriver = arg1.useNativeDriver;
|
|
}
|
|
if (useNativeDriver) {
|
|
__makeNativeResult = tmp2Result.__makeNative();
|
|
}
|
|
return tmp2Result;
|
|
}
|
|
tmp6 = AnimatedValueXY(closure_1[7]);
|
|
tmp7 = point.x instanceof AnimatedValueXY(closure_1[6]);
|
|
if (tmp7) {
|
|
tmp8 = AnimatedValueXY;
|
|
tmp9 = closure_1;
|
|
tmp7 = point.y instanceof AnimatedValueXY(closure_1[6]);
|
|
}
|
|
tmp6Result = tmp6(tmp7, "AnimatedValueXY must be initialized with an object of numbers or AnimatedValues.");
|
|
({ x: obj2.x, y: obj2.y } = point);
|
|
return;
|
|
}
|
|
}
|
|
const importDefault = AnimatedValueXY;
|
|
callback2(AnimatedValueXY, arg0);
|
|
let obj = {
|
|
key: "setValue",
|
|
value: function setValue(arg0) {
|
|
const x = this.x;
|
|
x.setValue(arg0.x);
|
|
const y = this.y;
|
|
y.setValue(arg0.y);
|
|
}
|
|
};
|
|
const items = [obj, , , , , , , , , , , , , , ];
|
|
obj = {
|
|
key: "setOffset",
|
|
value: function setOffset(arg0) {
|
|
const x = this.x;
|
|
x.setOffset(arg0.x);
|
|
const y = this.y;
|
|
y.setOffset(arg0.y);
|
|
}
|
|
};
|
|
items[1] = obj;
|
|
obj = {
|
|
key: "flattenOffset",
|
|
value: function flattenOffset() {
|
|
const x = this.x;
|
|
x.flattenOffset();
|
|
const y = this.y;
|
|
y.flattenOffset();
|
|
}
|
|
};
|
|
items[2] = obj;
|
|
items[3] = {
|
|
key: "extractOffset",
|
|
value: function extractOffset() {
|
|
const x = this.x;
|
|
x.extractOffset();
|
|
const y = this.y;
|
|
y.extractOffset();
|
|
}
|
|
};
|
|
items[4] = {
|
|
key: "__getValue",
|
|
value: function __getValue() {
|
|
let x;
|
|
let y;
|
|
({ x, y } = this);
|
|
return { x: x.__getValue(), y: y.__getValue() };
|
|
}
|
|
};
|
|
items[5] = {
|
|
key: "resetAnimation",
|
|
value: function resetAnimation(arg0) {
|
|
const self = this;
|
|
const x = this.x;
|
|
x.resetAnimation();
|
|
const y = this.y;
|
|
y.resetAnimation();
|
|
if (arg0) {
|
|
arg0(self.__getValue());
|
|
}
|
|
}
|
|
};
|
|
items[6] = {
|
|
key: "stopAnimation",
|
|
value: function stopAnimation(arg0) {
|
|
const self = this;
|
|
const x = this.x;
|
|
x.stopAnimation();
|
|
const y = this.y;
|
|
y.stopAnimation();
|
|
if (arg0) {
|
|
arg0(self.__getValue());
|
|
}
|
|
}
|
|
};
|
|
items[7] = {
|
|
key: "addListener",
|
|
value: function addListener(arg0) {
|
|
let _listeners;
|
|
let x;
|
|
let y;
|
|
const AnimatedValueXY = arg0;
|
|
const self = this;
|
|
let closure_8 = tmp + 1;
|
|
const StringResult = String(+closure_8);
|
|
function jointCallback(arg0) {
|
|
arg0(self.__getValue());
|
|
}
|
|
({ x, _listeners, y } = this);
|
|
_listeners[StringResult] = { x: x.addListener(jointCallback), y: y.addListener(jointCallback) };
|
|
return StringResult;
|
|
}
|
|
};
|
|
items[8] = {
|
|
key: "removeListener",
|
|
value: function removeListener(arg0) {
|
|
const x = this.x;
|
|
x.removeListener(this._listeners[arg0].x);
|
|
const y = this.y;
|
|
y.removeListener(this._listeners[arg0].y);
|
|
delete r0[r1];
|
|
}
|
|
};
|
|
items[9] = {
|
|
key: "removeAllListeners",
|
|
value: function removeAllListeners() {
|
|
const x = this.x;
|
|
x.removeAllListeners();
|
|
const y = this.y;
|
|
y.removeAllListeners();
|
|
this._listeners = {};
|
|
}
|
|
};
|
|
items[10] = {
|
|
key: "getLayout",
|
|
value: function getLayout() {
|
|
return { left: this.x, top: this.y };
|
|
}
|
|
};
|
|
items[11] = {
|
|
key: "getTranslateTransform",
|
|
value: function getTranslateTransform() {
|
|
const items = [{ translateX: this.x }, { translateY: this.y }];
|
|
return items;
|
|
}
|
|
};
|
|
items[12] = {
|
|
key: "__attach",
|
|
value: function __attach() {
|
|
const x = this.x;
|
|
x.__addChild(this);
|
|
const y = this.y;
|
|
y.__addChild(this);
|
|
callback4(AnimatedValueXY, "__attach", this, 3)([]);
|
|
}
|
|
};
|
|
items[13] = {
|
|
key: "__detach",
|
|
value: function __detach() {
|
|
const x = this.x;
|
|
x.__removeChild(this);
|
|
const y = this.y;
|
|
y.__removeChild(this);
|
|
callback4(AnimatedValueXY, "__detach", this, 3)([]);
|
|
}
|
|
};
|
|
items[14] = {
|
|
key: "__makeNative",
|
|
value: function __makeNative(arg0) {
|
|
const x = this.x;
|
|
x.__makeNative(arg0);
|
|
const y = this.y;
|
|
y.__makeNative(arg0);
|
|
const items = [arg0];
|
|
callback4(AnimatedValueXY, "__makeNative", this, 3)(items);
|
|
}
|
|
};
|
|
return callback(AnimatedValueXY, items);
|
|
}(importDefault(dependencyMap[8]));
|