// Module ID: 357 // Function ID: 5288 // Name: _isNativeReflectConstruct // Dependencies: [6, 7, 15, 17, 102, 18, 348, 358] // Module 357 (_isNativeReflectConstruct) import set from "set"; import _assertNativeAnimatedModule from "_assertNativeAnimatedModule"; import _possibleConstructorReturn from "_possibleConstructorReturn"; import _getPrototypeOf from "_getPrototypeOf"; import _get from "_get"; import _inherits from "_inherits"; function _isNativeReflectConstruct() { let set = !valueOf.call(Reflect.construct(Boolean, [], () => { })); function _isNativeReflectConstruct() { return set; } const result = _isNativeReflectConstruct(); } function _superPropGet(arg0, arg1, arg2, arg3) { let set = arg2; let prototype = arg0; if (1) { prototype = arg0.prototype; } const tmpResult = _get(_getPrototypeOf(prototype), arg1, arg2); let _assertNativeAnimatedModule = tmpResult; let fn = tmpResult; if (2) { fn = tmpResult; if ("function" === typeof tmpResult) { fn = (arg0) => tmpResult.apply(set, arg0); } } return fn; } const connectAnimatedNodes = require("set").API.connectAnimatedNodes; const disconnectAnimatedNodes = require("set").API.disconnectAnimatedNodes; export default ((arg0) => { class AnimatedWithChildren { constructor() { self = this; tmp = AnimatedWithChildren(this, AnimatedWithChildren); length = arguments.length; array = new Array(length); for (let num = 0; num < length; num = num + 1) { array[num] = arguments[num]; } items = []; combined = items.concat(array); obj = outer1_3(AnimatedWithChildren); tmp3 = outer1_2; if (outer1_8()) { if (!combined) { combined = []; } tmp5 = outer1_3; constructResult = Reflect.construct(obj, combined, outer1_3(self).constructor); } else { constructResult = obj.apply(self, combined); } tmp3Result = tmp3(self, constructResult); tmp3Result._children = []; return tmp3Result; } } callback2(AnimatedWithChildren, arg0); let obj = { key: "__makeNative", value: function __makeNative(arg0) { const self = this; if (!this.__isNative) { self.__isNative = true; const _children = self._children; if (_children.length > 0) { for (let num2 = 0; num2 < length; num2 = num2 + 1) { let obj = _children[num2]; let __makeNativeResult = obj.__makeNative(arg0); let tmp2 = outer1_6; let __getNativeTagResult = self.__getNativeTag(); let tmp4 = outer1_6(__getNativeTagResult, obj.__getNativeTag()); } } } const items = [arg0]; outer1_9(AnimatedWithChildren, "__makeNative", self, 3)(items); } }; let items = [obj, , , , ]; obj = { key: "__addChild", value: function __addChild(__makeNative) { const self = this; if (0 === this._children.length) { self.__attach(); } const _children = self._children; _children.push(__makeNative); if (self.__isNative) { __makeNative.__makeNative(self.__getPlatformConfig()); outer1_6(self.__getNativeTag(), __makeNative.__getNativeTag()); const __getNativeTagResult = self.__getNativeTag(); } } }; items[1] = obj; obj = { key: "__removeChild", value: function __removeChild(__isNative) { const self = this; const _children = this._children; const index = _children.indexOf(__isNative); if (-1 !== index) { if (tmp4) { outer1_7(self.__getNativeTag(), __isNative.__getNativeTag()); const __getNativeTagResult = self.__getNativeTag(); } const _children1 = self._children; _children1.splice(index, 1); if (0 === self._children.length) { self.__detach(); } tmp4 = self.__isNative && __isNative.__isNative; } else { const _console = console; console.warn("Trying to remove a child that doesn't exist"); } } }; items[2] = obj; items[3] = { key: "__getChildren", value: function __getChildren() { return this._children; } }; items[4] = { key: "__callListeners", value: function __callListeners(arg0) { const items = [arg0]; outer1_9(AnimatedWithChildren, "__callListeners", this, 3)(items); if (!this.__isNative) { const _children = this._children; for (let num = 0; num < length; num = num + 1) { let obj = _children[num]; if (obj.__getValue) { let __callListenersResult = obj.__callListeners(obj.__getValue()); } } length = _children.length; } } }; return callback(AnimatedWithChildren, items); })(require("_assertNativeAnimatedModule"));