// Module ID: 373 // Function ID: 374 // Name: _isNativeReflectConstruct // Dependencies: [41, 42, 93, 95, 96, 98, 356, 38, 366] // Module 373 (_isNativeReflectConstruct) import _inheritsDefault from "_inherits" /* 98 */; import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 366 */; import closure_2 from "_classCallCheck" /* 41 */; import closure_3 from "_possibleConstructorReturn" /* 93 */; import closure_4 from "_getPrototypeOf" /* 95 */; import closure_5 from "_get" /* 96 */; import importDefaultResult from "_createClass" /* 42 */; const AnimatedValueXY = importDefault; 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) { } } let c7 = 1; class AnimatedValueXY { constructor(arg0, arg1) { self = this; tmp = closure_2(this, AnimatedValueXY); items = []; items[0] = arg1; tmp2 = closure_4; obj = closure_4(AnimatedValueXY); tmp3 = closure_3; if (_isNativeReflectConstruct()) { tmp5 = globalThis; _Reflect = Reflect; constructResult = Reflect.construct(obj, items, tmp2(self).constructor); } else { constructResult = obj.apply(self, items); } point = global; tmp3Result = tmp3(self, constructResult); if (!global) { point = { x: 0, y: 0 }; } if (typeof point.x === "number") { if (typeof point.y === "number") { tmp11 = AnimatedValueXY; tmp12 = closure_1; tmp13 = new.target; tmp14 = new.target; tmp15 = new require("_isNativeReflectConstruct")(point.x); tmp16 = tmp15; tmp3Result.x = tmp15; tmp17 = new.target; tmp18 = new.target; tmp19 = new require("_isNativeReflectConstruct")(point.y); tmp20 = tmp19; tmp3Result.y = tmp19; } tmp3Result._listeners = {}; useNativeDriver = arg1; if (arg1) { useNativeDriver = arg1.useNativeDriver; } if (useNativeDriver) { __makeNativeResult = tmp3Result.__makeNative(); } return tmp3Result; } tmp6 = AnimatedValueXY; tmp7 = closure_1; tmp8 = require("module_38"); tmp9 = point.x instanceof require("_isNativeReflectConstruct"); if (tmp9) { tmp9 = point.y instanceof require("_isNativeReflectConstruct"); } tmp8Result = tmp8(tmp9, "AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."); ({ x: obj2.x, y: obj2.y } = point); return; } } _inheritsDefault(AnimatedValueXY, _isNativeReflectConstructDefault); let items = [ { key: "setValue", value: function setValue(arg0) { const x = this.x; x.setValue(arg0.x); const y = this.y; y.setValue(arg0.y); } }, { key: "setOffset", value: function setOffset(arg0) { const x = this.x; x.setOffset(arg0.x); const y = this.y; y.setOffset(arg0.y); } }, { key: "flattenOffset", value: function flattenOffset() { const x = this.x; x.flattenOffset(); const y = this.y; y.flattenOffset(); } }, { key: "extractOffset", value: function extractOffset() { const x = this.x; x.extractOffset(); const y = this.y; y.extractOffset(); } }, { key: "__getValue", value: function __getValue() { ({ x, y } = this); return { x: x.__getValue(), y: y.__getValue() }; } }, { 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()); } } }, { 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()); } } }, { key: "addListener", value: function addListener(arg0) { const self = this; closure_0 = arg0; closure_7 = tmp + 1; const StringResult = String(+closure_7); function jointCallback(arg0) { callback(self.__getValue()); } ({ x, _listeners, y } = this); _listeners[StringResult] = { x: x.addListener(jointCallback), y: y.addListener(jointCallback) }; return StringResult; } }, { 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 tmp[tmp2]; } }, { key: "removeAllListeners", value: function removeAllListeners() { const x = this.x; x.removeAllListeners(); const y = this.y; y.removeAllListeners(); this._listeners = {}; } }, { key: "getLayout", value: function getLayout() { return { left: this.x, top: this.y }; } }, { key: "getTranslateTransform", value: function getTranslateTransform() { const items = [{ translateX: this.x }, { translateY: this.y }]; return items; } }, { key: "__attach", value: function __attach() { const x = this.x; x.__addChild(this); const y = this.y; y.__addChild(this); const self = this; let fn; fn = callback3(callback2(self.prototype), "__attach", this); if (typeof fn === "function") { fn = (items) => fn.apply(self, items); } fn([]); } }, { key: "__detach", value: function __detach() { const x = this.x; x.__removeChild(this); const y = this.y; y.__removeChild(this); const self = this; let fn; fn = callback3(callback2(self.prototype), "__detach", this); if (typeof fn === "function") { fn = (items) => fn.apply(self, items); } fn([]); } }, { key: "__makeNative", value: function __makeNative(arg0) { const x = this.x; x.__makeNative(arg0); const y = this.y; y.__makeNative(arg0); const self = this; let fn; fn = callback3(callback2(self.prototype), "__makeNative", this); if (typeof fn === "function") { fn = (items) => fn.apply(self, items); } const items = [arg0]; fn(items); } } ]; export default importDefaultResult(AnimatedValueXY, items);