Files
discord-decomp/sources/by-id/module-01502.jsx
T
2026-07-27 16:20:00 +03:00

137 lines
6.3 KiB
React

/* Metro module 1502; source: unknown; dependencies: [57, 65, 1489] */
function _fun17135(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:6, offset: 0x00e650a7, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importDefault(65) /* metro dependency 65 */;
exports.default = createNavigationContainerRef;
exports.NOT_INITIALIZED_ERROR = "The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.";
}
function createNavigationContainerRef() { // fn#17136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:400, offset: 0x00e65117, size: 176 bytes, params: 1, frame: 19
let object = [];
const concat = object.concat;
const binding = env0_3;
let Object = global.Object;
const keys = Object.keys;
const CommonActions = (require(1489) /* metro dependency 1489 */).CommonActions;
let value = binding(Reflect.apply(keys, Object, [CommonActions]));
value = Reflect.apply(concat, object, [value, ['addListener', 'removeListener', 'resetRoot', 'dispatch',
'isFocused', 'canGoBack', 'getRootState', 'getState', 'getParent', 'getCurrentRoute', 'getCurrentOptions']]);
let env0_0 = {};
Object = global.Object;
const assign = Object.assign;
object = {};
Object.defineProperty(object, 'current', {get: _fun17139, set: _fun17140, enumerable: true, configurable: true});
object.isReady = isReady;
return Reflect.apply(assign, Object, [object, value.reduce(function(a0, a1) {
var env0_0 = a1;
a0[a1] = _fun17145;
return a0;
}, {})]);
}
function createNavigationContainerRefRemoveListener(a0, a1) { // fn#17137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:658, owner: createNavigationContainerRef.removeListener, offset: 0x00e651c7, size: 57 bytes, params: 3, frame: 13
var binding;
var property;
const env0_0 = a1;
if (env0_0[a0]) {
binding = env0_0;
property = binding[a0];
binding[a0] = property.filter(function(a0) {
return a0 !== require;
});
}
}
function _fun17140(a0) { // fn#17140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:790, offset: 0x00e65200, size: 64 bytes, params: 2, frame: 12
const env0_0 = a0;
env0_2 = a0;
if (a0 != null) {
global.Object.entries(env0_0).forEach(_fun17141);
}
}
function isReady() { // fn#17143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:937, owner: createNavigationContainerRef.isReady, offset: 0x00e6529a, size: 32 bytes, params: 1, frame: 10
return env0_2 != null && env0_2.isReady();
}
function _fun17144(a0, a1) { // fn#17144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:996, offset: 0x00e652ba, size: 23 bytes, params: 3, frame: 4
const env0_0 = a1;
a0[a1] = _fun17145;
return a0;
}
function _fun17141(a0) { // fn#17141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:845, offset: 0x00e65240, size: 57 bytes, params: 2, frame: 14
var environment;
let value = environment.__proto__.__proto__;
value = env2_2(a0, 2);
const env0_0 = value[0];
value[1].forEach(_fun17142);
}
function _fun17145() { // fn#17145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:1022, offset: 0x00e652d1, size: 243 bytes, params: 1, frame: 18
var environment;
var r0;
var r2;
var value5;
var property;
var property3;
var binding;
var property4;
let value = arguments.length;
const Array = global.Array;
const array = new Array(value);
const value4 = 0;
if (value4 < value) {
r0 = value4;
reducibleLoop1: while (true) {
array[r0] = arguments[r0];
value5 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (value5 < value) {
r0 = value5;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
value = environment.__proto__;
if (env1_2 != null) {
binding = env1_2;
return binding[require].apply(binding, array);
}
if (require === 'addListener') {
property = array[value4];
property3 = array[1];
binding = env1_0;
property4 = binding[property];
reducibleJoin10: while (true) {
if (property4) {
r2 = property4;
break reducibleJoin10;
}
r2 = [];
break reducibleJoin10;
}
binding[property] = r2;
property = env1_0[property];
property.push(property3);
return _fun17146;
}
if (require === 'removeListener') {
createNavigationContainerRefRemoveListener(array[value4], array[1]);
} else {
global.console.error("The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details.");
}
}
function _fun17142(a0) { // fn#17142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:891, offset: 0x00e65279, size: 33 bytes, params: 2, frame: 13
env1_0.addListener(env0_0, a0);
}
function _fun17146() { // fn#17146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1629:1228, offset: 0x00e653c4, size: 28 bytes, params: 1, frame: 13
createNavigationContainerRefRemoveListener(env0_0, env0_1);
}