235 lines
9.0 KiB
React
235 lines
9.0 KiB
React
/* Metro module 357; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 348, 358] */
|
|
function _fun5285(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:6, offset: 0x00cd90d0, size: 241 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(102) /* metro dependency 102 */;
|
|
const env0_5 = importDefault(18) /* metro dependency 18 */;
|
|
let API = (importDefault(348) /* metro dependency 348 */).API;
|
|
const env0_6 = API.connectAnimatedNodes;
|
|
API = (importDefault(348) /* metro dependency 348 */).API;
|
|
const env0_7 = API.disconnectAnimatedNodes;
|
|
exports.default = _fun5291(importDefault(358) /* metro dependency 358 */);
|
|
}
|
|
|
|
function _isNativeReflectConstruct_5286() { // fn#5286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:159, offset: 0x00cd91c1, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_5286_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _superPropGet_5289(a0, a1, a2, a3) { // fn#5289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:378, offset: 0x00cd921f, size: 99 bytes, params: 5, frame: 18
|
|
let value = a0;
|
|
const env0_0 = a2;
|
|
const binding = env0_4;
|
|
value = env0_3(1 & 3 ? value.prototype : value);
|
|
value = binding(value, a1, a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun5290 : value;
|
|
}
|
|
|
|
function _fun5291(a0) { // fn#5291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:591, offset: 0x00cd9282, size: 160 bytes, params: 2, frame: 16
|
|
const closure = AnimatedWithChildren;
|
|
env0_5(closure, a0);
|
|
return env0_1(closure, [{key: '__makeNative', value: value_5293}, {key: '__addChild', value: value_5294},
|
|
{key: '__removeChild', value: value_5295}, {key: '__getChildren', value: function() {
|
|
return this._children;
|
|
}}, {key: '__callListeners', value: value_5297}]);
|
|
}
|
|
|
|
function AnimatedWithChildren() { // fn#5292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:603, offset: 0x00cd9322, size: 197 bytes, params: 1, frame: 20
|
|
var r1;
|
|
var r5;
|
|
var r0;
|
|
var value7;
|
|
var Reflect;
|
|
var construct;
|
|
let value = environment.__proto__;
|
|
let binding = env1_0;
|
|
binding(this, AnimatedWithChildren);
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value6 = 0;
|
|
if (value6 < length) {
|
|
r1 = value6;
|
|
reducibleLoop1: while (true) {
|
|
array[r1] = arguments[r1];
|
|
value7 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value7 < length) {
|
|
r1 = value7;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value8 = [].concat(array);
|
|
const value9 = env1_3(AnimatedWithChildren);
|
|
binding = env1_2;
|
|
if (_isNativeReflectConstruct_5286()) {
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
reducibleJoin6: while (true) {
|
|
if (value8) {
|
|
r5 = value8;
|
|
break reducibleJoin6;
|
|
}
|
|
r5 = [];
|
|
break reducibleJoin6;
|
|
}
|
|
r0 = Reflect.apply(construct, Reflect, [value9, r5, env1_3(this).constructor]);
|
|
} else {
|
|
r0 = value9.apply(this, value8);
|
|
}
|
|
value = binding(this, r0);
|
|
value._children = [];
|
|
return value;
|
|
}
|
|
|
|
function value_5293(a0) { // fn#5293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:1022, offset: 0x00cd93e7, size: 153 bytes, params: 2, frame: 22
|
|
var r2;
|
|
var _children;
|
|
var length;
|
|
var value;
|
|
var value2;
|
|
var property;
|
|
var __makeNative;
|
|
var connectAnimatedNodesBinding;
|
|
var __getNativeTag;
|
|
reducibleJoin4: while (true) {
|
|
if (this.__isNative) {
|
|
break reducibleJoin4;
|
|
}
|
|
this.__isNative = true;
|
|
_children = this._children;
|
|
length = _children.length;
|
|
value = 0;
|
|
if (!(length > value)) {
|
|
break reducibleJoin4;
|
|
}
|
|
value2 = environment.__proto__;
|
|
if (!(value < length)) {
|
|
break reducibleJoin4;
|
|
}
|
|
r2 = value;
|
|
reducibleLoop3: while (true) {
|
|
property = _children[r2];
|
|
__makeNative = property.__makeNative;
|
|
Reflect.apply(__makeNative, property, [a0]);
|
|
connectAnimatedNodesBinding = connectAnimatedNodes;
|
|
__getNativeTag = this.__getNativeTag;
|
|
value = Reflect.apply(__getNativeTag, this, []);
|
|
__getNativeTag = property.__getNativeTag;
|
|
connectAnimatedNodesBinding(value, Reflect.apply(__getNativeTag, property, []));
|
|
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value < length) {
|
|
r2 = value;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
value = environment.__proto__;
|
|
_superPropGet_5289(AnimatedWithChildren, '__makeNative', this, 3)([a0]);
|
|
}
|
|
|
|
function value_5294(a0) { // fn#5294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:1310, offset: 0x00cd9480, size: 118 bytes, params: 2, frame: 13
|
|
var value;
|
|
var connectAnimatedNodesBinding;
|
|
if (this._children.length === 0) {
|
|
this.__attach();
|
|
}
|
|
this._children.push(a0);
|
|
if (this.__isNative) {
|
|
a0.__makeNative(this.__getPlatformConfig());
|
|
value = environment.__proto__;
|
|
connectAnimatedNodesBinding = connectAnimatedNodes;
|
|
value = this.__getNativeTag();
|
|
connectAnimatedNodesBinding(value, a0.__getNativeTag());
|
|
}
|
|
}
|
|
|
|
function value_5295(a0) { // fn#5295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:1534, offset: 0x00cd94f6, size: 164 bytes, params: 2, frame: 15
|
|
var __isNative;
|
|
var value2;
|
|
let _children = this._children;
|
|
const value = _children.indexOf(a0);
|
|
if (value !== -1) {
|
|
__isNative = this.__isNative;
|
|
__isNative = __isNative && a0.__isNative;
|
|
if (__isNative) {
|
|
value2 = environment.__proto__;
|
|
disconnectAnimatedNodes(this.__getNativeTag(), a0.__getNativeTag());
|
|
}
|
|
_children = this._children;
|
|
_children.splice(value, 1);
|
|
_children = this._children;
|
|
if (_children.length === 0) {
|
|
this.__detach();
|
|
}
|
|
} else {
|
|
global.console.warn("Trying to remove a child that doesn't exist");
|
|
}
|
|
}
|
|
|
|
function value_5297(a0) { // fn#5297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:1913, offset: 0x00cd95a5, size: 123 bytes, params: 2, frame: 18
|
|
var r1;
|
|
var _children;
|
|
var length;
|
|
var property;
|
|
var __getValue;
|
|
var __callListeners;
|
|
let value = environment.__proto__;
|
|
_superPropGet_5289(AnimatedWithChildren, '__callListeners', this, 3)([a0]);
|
|
if (!this.__isNative) {
|
|
_children = this._children;
|
|
length = _children.length;
|
|
value = 0;
|
|
if (value < length) {
|
|
r1 = value;
|
|
while (true) {
|
|
property = _children[r1];
|
|
__getValue = property.__getValue;
|
|
if (__getValue) {
|
|
__callListeners = property.__callListeners;
|
|
__getValue = property.__getValue;
|
|
Reflect.apply(__callListeners, property, [Reflect.apply(__getValue, property, [])]);
|
|
}
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value < length) {
|
|
r1 = value;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|