104 lines
4.3 KiB
JavaScript
104 lines
4.3 KiB
JavaScript
/* Metro module 43; source: unknown; dependencies: [44] */
|
|
import Module00044 from './module-00044.js'; /* Metro dependency 44 */
|
|
|
|
function _fun1300(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:68:6, offset: 0x00c58c55, size: 161 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let Map = global.Map;
|
|
let map = new Map();
|
|
Map = global.Map;
|
|
map = new Map();
|
|
exports.customBubblingEventTypes = {};
|
|
exports.customDirectEventTypes = {};
|
|
exports.register = register;
|
|
exports.get = get_1302;
|
|
function register(a0, a1) { // fn#1301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:68:193, offset: 0x00c58cf6, size: 128 bytes, params: 3, frame: 21
|
|
const defaultImport = Module00044;
|
|
const binding = env0_4;
|
|
defaultImport(!binding.has(a0), 'Tried to register two views with the same name %s', a0);
|
|
const defaultImport2 = defaultImport;
|
|
const value3 = typeof a1;
|
|
defaultImport2(value3 === 'function',
|
|
'View config getter callback for component `%s` must be a function (received `%s`)', a0,
|
|
a1 === null ? 'null' : value3);
|
|
env0_4.set(a0, a1);
|
|
return a0;
|
|
}
|
|
|
|
function get_1302(a0) { // fn#1302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:68:457, offset: 0x00c58d76, size: 362 bytes, params: 2, frame: 27
|
|
var r8;
|
|
var r7;
|
|
var r0;
|
|
var value3;
|
|
var value4;
|
|
var defaultImport;
|
|
var value6;
|
|
var regexp;
|
|
var value8;
|
|
var bubblingEventTypes;
|
|
var directEventTypes;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var propertyName3;
|
|
let binding = env0_5;
|
|
const value2 = binding.get(a0);
|
|
if (value2 != null) {
|
|
r0 = value2;
|
|
} else {
|
|
binding = env0_4;
|
|
value3 = binding.get(a0);
|
|
value4 = typeof value3;
|
|
if (value4 !== 'function') {
|
|
defaultImport = importDefault(44) /* metro dependency 44 */;
|
|
r8 = value3 === null ? 'null' : value4;
|
|
value6 = '';
|
|
if (typeof a0[0] !== 'string') {
|
|
r7 = value6;
|
|
} else {
|
|
regexp = RegExp('[a-z]', '');
|
|
r7 = regexp.test(a0[0]) ? ' Make sure to start component names with a capital letter.' : value6;
|
|
}
|
|
defaultImport(false, 'View config getter callback for component `%s` must be a function (received `%s`).%s',
|
|
a0,
|
|
r8,
|
|
r7);
|
|
}
|
|
value8 = value3();
|
|
(importDefault(44) /* metro dependency 44 */)(value8, 'View config not found for component `%s`', a0);
|
|
bubblingEventTypes = value8.bubblingEventTypes;
|
|
directEventTypes = value8.directEventTypes;
|
|
if (bubblingEventTypes != null) {
|
|
for (propertyName in bubblingEventTypes) {
|
|
if (env0_2[propertyName] != null) {
|
|
r7 = propertyName2;
|
|
continue;
|
|
}
|
|
binding = env0_2;
|
|
binding[propertyName] = bubblingEventTypes[propertyName];
|
|
r7 = propertyName2;
|
|
}
|
|
}
|
|
if (directEventTypes != null) {
|
|
for (propertyName in directEventTypes) {
|
|
if (env0_3[propertyName] != null) {
|
|
r7 = propertyName3;
|
|
continue;
|
|
}
|
|
binding = env0_3;
|
|
binding[propertyName] = directEventTypes[propertyName];
|
|
r7 = propertyName3;
|
|
}
|
|
}
|
|
binding = env0_5;
|
|
binding.set(a0, value8);
|
|
binding = env0_4;
|
|
binding.set(a0, null);
|
|
r0 = value8;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun1300, 43, [44]) /* metro module 43, dependencies: [44] */;
|