187 lines
9.9 KiB
JavaScript
187 lines
9.9 KiB
JavaScript
/* Metro module 52; source: unknown; dependencies: [53, 48, 50, 56, 72] */
|
|
import Module00053 from './module-00053.js'; /* Metro dependency 53 */
|
|
import * as Module00050Module from './module-00050.js'; /* Metro dependency 50 */
|
|
import * as Module00056Module from './module-00056.js'; /* Metro dependency 56 */
|
|
import * as Module00072Module from './module-00072.js'; /* Metro dependency 72 */
|
|
|
|
function _fun1363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:6, offset: 0x00c5a634, size: 336 bytes, params: 8, frame: 24
|
|
var value3;
|
|
const env0_1 = require;
|
|
const _getConstants2 = _getConstants;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_4 = {};
|
|
const Set = global.Set;
|
|
let set = new Set();
|
|
const env0_6 = {};
|
|
Object = global.Object;
|
|
const assign = Object.assign;
|
|
set = importDefault(53) /* metro dependency 53 */;
|
|
set = Reflect.apply(assign, Object, [{}, set, {createView: createView_1371, getConstants: function() {
|
|
return _getConstants();
|
|
}, getViewManagerConfig: function(a0) {
|
|
return _getViewManagerConfig(a0);
|
|
}, hasViewManagerConfig: hasViewManagerConfig_1374}]);
|
|
const value2 = importDefault(53) /* metro dependency 53 */;
|
|
const getViewManagerConfig = set.getViewManagerConfig;
|
|
value2.getViewManagerConfig = getViewManagerConfig;
|
|
const ViewManagerNames = _getConstants2().ViewManagerNames;
|
|
if (ViewManagerNames) {
|
|
value3 = value2;
|
|
value3.getConstants().ViewManagerNames.forEach(_fun1375);
|
|
}
|
|
if (!global.nativeCallSyncHook) {
|
|
global.Object.keys(_getConstants2()).forEach(_fun1377);
|
|
}
|
|
exports.default = set;
|
|
function _getConstants() { // fn#1364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:123, offset: 0x00c5a784, size: 57 bytes, params: 1, frame: 12
|
|
env0_6 = !env0_7 ? (importDefault(53) /* metro dependency 53 */).getConstants() : env0_6;
|
|
return env0_6;
|
|
}
|
|
|
|
function _getViewManagerConfig(a0) { // fn#1365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:192, offset: 0x00c5a7bd, size: 361 bytes, params: 2, frame: 18
|
|
var binding;
|
|
var property;
|
|
var defaultImport;
|
|
var constantsForViewManager;
|
|
var error;
|
|
var console;
|
|
var value3;
|
|
if (env0_4[a0] === undefined) {
|
|
if (importDefault(dependencyMap[0]).getConstantsForViewManager) {
|
|
try {
|
|
binding = env0_4;
|
|
property = dependencyMap[0];
|
|
defaultImport = importDefault(property);
|
|
constantsForViewManager = defaultImport.getConstantsForViewManager(a0);
|
|
binding[a0] = constantsForViewManager;
|
|
} catch (error) {
|
|
console = global.console;
|
|
console.error("NativeUIManager.getConstantsForViewManager('" + a0 + "') threw an exception.", error);
|
|
env0_4[a0] = null;
|
|
}
|
|
}
|
|
}
|
|
property = env0_4[a0];
|
|
if (!property) {
|
|
if (env0_0.nativeCallSyncHook) {
|
|
if (importDefault(dependencyMap[0]).lazilyLoadView) {
|
|
binding = env0_5;
|
|
if (!binding.has(a0)) {
|
|
value3 = importDefault(dependencyMap[1])(importDefault(dependencyMap[0]).lazilyLoadView)(a0);
|
|
env0_5.add(a0);
|
|
if (value3 != null && value3.viewConfig != null) {
|
|
_getConstants()[a0] = value3.viewConfig;
|
|
lazifyViewManagerConfig(a0);
|
|
}
|
|
}
|
|
}
|
|
return env0_4[a0];
|
|
}
|
|
}
|
|
return property;
|
|
function lazifyViewManagerConfig(a0) { // fn#1366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:645, owner: _getViewManagerConfig.lazifyViewManagerConfig, offset: 0x00c5a926, size: 128 bytes, params: 2, frame: 20
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
const property = _getConstants()[a0];
|
|
env1_4[a0] = property;
|
|
if (property.Manager) {
|
|
value = require(50) /* metro dependency 50 */;
|
|
value.default(property, 'Constants', {get: get_1367});
|
|
value = require(50) /* metro dependency 50 */;
|
|
value.default(property, 'Commands', {get: get_1369});
|
|
}
|
|
function lazifyViewManagerConfigGet() { // fn#1367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:760, owner: _getViewManagerConfig.lazifyViewManagerConfig.get, offset: 0x00c5a9a6, size: 97 bytes, params: 1, frame: 13
|
|
var environment;
|
|
const value = environment.__proto__.__proto__;
|
|
let property = (Module00056Module).default;
|
|
const Manager = env0_0.Manager;
|
|
property = property[Manager];
|
|
if (property) {
|
|
global.Object.keys(property).forEach(_fun1368);
|
|
}
|
|
return {};
|
|
function _fun1368(a0) { // fn#1368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:847, offset: 0x00c5aa07, size: 37 bytes, params: 2, frame: 5
|
|
const property = env0_0[a0];
|
|
if (typeof property !== 'function') {
|
|
env0_1[a0] = property;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function lazifyViewManagerConfigGet_1369() { // fn#1369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:943, owner: _getViewManagerConfig.lazifyViewManagerConfig.get, offset: 0x00c5aa2c, size: 103 bytes, params: 1, frame: 13
|
|
var environment;
|
|
const value = environment.__proto__.__proto__;
|
|
let property = (Module00056Module).default;
|
|
const Manager = env0_0.Manager;
|
|
property = property[Manager];
|
|
if (property) {
|
|
global.Object.keys(property).forEach(_fun1370);
|
|
}
|
|
return {};
|
|
function _fun1370(a0) { // fn#1370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:1034, offset: 0x00c5aa93, size: 51 bytes, params: 2, frame: 5
|
|
var binding;
|
|
var binding2;
|
|
var value2;
|
|
if (typeof env0_0[a0] === 'function') {
|
|
binding = env0_1;
|
|
binding2 = env0_2;
|
|
value2 = typeof binding2 === 'bigint' ? binding2 : +binding2;
|
|
env0_2 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
|
|
binding[a0] = value2;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createView_1371(a0, a1, a2, a3) { // fn#1371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:1151, offset: 0x00c5aac6, size: 51 bytes, params: 5, frame: 18
|
|
(Module00053).createView(a0, a1, a2, a3);
|
|
}
|
|
|
|
function hasViewManagerConfig_1374(a0) { // fn#1374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:1378, offset: 0x00c5ab1b, size: 25 bytes, params: 2, frame: 11
|
|
return _getViewManagerConfig(a0) != null;
|
|
}
|
|
|
|
function _fun1375(a0) { // fn#1375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:1587, offset: 0x00c5ab34, size: 74 bytes, params: 2, frame: 18
|
|
const env0_0 = a0;
|
|
(Module00050Module).default(Module00053, a0, {get: get_1376});
|
|
function get_1376() { // fn#1376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:1630, offset: 0x00c5ab7e, size: 61 bytes, params: 1, frame: 13
|
|
let value = environment.__proto__;
|
|
value = importDefault(48) /* metro dependency 48 */;
|
|
const getConstantsForViewManager = (Module00053).getConstantsForViewManager;
|
|
value = value(getConstantsForViewManager);
|
|
return value(env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun1377(a0) { // fn#1377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:1765, offset: 0x00c5abbb, size: 143 bytes, params: 2, frame: 18
|
|
const env0_0 = a0;
|
|
const property = (Module00072Module).default;
|
|
if (!property.includes(a0)) {
|
|
if (!env0_4[a0]) {
|
|
env0_4[a0] = _getConstants()[a0];
|
|
}
|
|
(require(50) /* metro dependency 50 */).default(importDefault(53) /* metro dependency 53 */, a0,
|
|
{get: get_1378});
|
|
}
|
|
function get_1378() { // fn#1378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:77:1870, offset: 0x00c5ac4a, size: 84 bytes, params: 1, frame: 18
|
|
const console = global.console;
|
|
const warn = console.warn;
|
|
const binding = env0_0;
|
|
Reflect.apply(warn, console,
|
|
["Accessing view manager configs directly off UIManager via UIManager['" + binding + "'] is no longer supported. Use UIManager.getViewManagerConfig('" + binding + "') instead."]);
|
|
return env1_8.getViewManagerConfig(binding);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun1363, 52, [53, 48, 50, 56, 72]) /* metro module 52, dependencies: [53, 48, 50, 56, 72] */;
|