Files
2026-07-28 01:06:53 +03:00

241 lines
11 KiB
JavaScript

/* Metro module 357; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 348, 358] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from './module-00102.js'; /* Metro dependency 102 */
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});
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;
value = Module00017(1 & 3 ? value.prototype : value);
value = Module00102(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun5290 : value;
function _fun5290(a0) { // fn#5290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:398:477, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return CreateClass.apply(importDefault, a0);
}
}
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 AnimatedWithChildren2 = AnimatedWithChildren;
Inherits(AnimatedWithChildren2, a0);
return CreateClass(AnimatedWithChildren2, [{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;
}
}
}
}
}
}
global.__d(_fun5285, 357, [6, 7, 15, 17, 102, 18, 348,
358]) /* metro module 357, dependencies: [6, 7, 15, 17, 102, 18, 348, 358] */;