86 lines
4.5 KiB
JavaScript
86 lines
4.5 KiB
JavaScript
/* Metro module 1161; source: unknown; dependencies: [1010, 826, 1005, 1162] */
|
|
import * as ReactNativeLibrariesModule from './module-01005-ReactNativeLibraries.js'; /* Metro dependency 1005 */
|
|
import * as Module01010Module from './module-01010.js'; /* Metro dependency 1010 */
|
|
|
|
function _fun12926(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1288:6, offset: 0x00ddb39f, size: 104 bytes, params: 8, frame: 16
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const patchAppRegistryRunApplication2 = patchAppRegistryRunApplication;
|
|
exports.INTEGRATION_NAME = 'AppRegistry';
|
|
exports.appRegistryIntegration = function() {
|
|
var env0_0 = [];
|
|
return {name: 'AppRegistry', setupOnce: _fun12932, onRunApplication: _fun12933};
|
|
};
|
|
exports.patchAppRegistryRunApplication = patchAppRegistryRunApplication2;
|
|
exports.getAppRegistryIntegration = getAppRegistryIntegration;
|
|
function patchAppRegistryRunApplication(a0) { // fn#12927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1288:114, offset: 0x00ddb407, size: 93 bytes, params: 2, frame: 16
|
|
let env0_0 = a0;
|
|
const ReactNativeLibraries = (ReactNativeLibrariesModule).ReactNativeLibraries;
|
|
const AppRegistry = ReactNativeLibraries.AppRegistry;
|
|
if (AppRegistry) {
|
|
(require(1162) /* metro dependency 1162 */).fillTyped(AppRegistry, 'runApplication', function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun12929;
|
|
});
|
|
}
|
|
function _fun12928(a0) { // fn#12928, offset: 0x00ddb464, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun12929;
|
|
function _fun12929() { // fn#12929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1288:264, offset: 0x00ddb474, size: 50 bytes, params: 1, frame: 14
|
|
env1_0.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
return env0_0.apply(undefined, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function appRegistryIntegration() { // fn#12931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1288:396, offset: 0x00ddb4a6, size: 42 bytes, params: 1, frame: 3
|
|
const env0_0 = [];
|
|
return {name: 'AppRegistry', setupOnce: setupOnce_12932, onRunApplication: onRunApplication};
|
|
function appRegistryIntegrationSetupOnce() { // fn#12932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1288:463, owner: appRegistryIntegration.setupOnce, offset: 0x00ddb4d0, size: 55 bytes, params: 1, frame: 12
|
|
if (!Module01010Module.isWeb()) {
|
|
patchAppRegistryRunApplication(env0_0);
|
|
}
|
|
}
|
|
|
|
function onRunApplication(a0) { // fn#12933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1288:524, owner: appRegistryIntegration.onRunApplication, offset: 0x00ddb507, size: 91 bytes, params: 2, frame: 12
|
|
const binding = env0_0;
|
|
if (binding.includes(a0)) {
|
|
value = environment.__proto__;
|
|
(require(826) /* metro dependency 826 */).debug.log('[AppRegistryIntegration] Callback already registered.');
|
|
} else {
|
|
env0_0.push(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function getAppRegistryIntegration() { // fn#12934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1288:718, offset: 0x00ddb562, size: 82 bytes, params: 1, frame: 14
|
|
var r2;
|
|
var value;
|
|
if (arguments.length > 0) {
|
|
if (arguments[0] !== undefined) {
|
|
r2 = arguments[0];
|
|
} else {
|
|
value = require(826) /* metro dependency 826 */;
|
|
value = value.getClient();
|
|
r2 = value;
|
|
}
|
|
} else {
|
|
value = require(826) /* metro dependency 826 */;
|
|
value = value.getClient();
|
|
r2 = value;
|
|
}
|
|
if (r2) {
|
|
return r2.getIntegrationByName('AppRegistry');
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun12926, 1161, [1010, 826, 1005, 1162]) /* metro module 1161, dependencies: [1010, 826, 1005, 1162] */;
|