77 lines
3.0 KiB
React
77 lines
3.0 KiB
React
/* Metro module 880; source: unknown; dependencies: [836, 881, 832, 833] */
|
|
function _fun9494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1007:6, offset: 0x00d69245, size: 87 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.notifyEventProcessors = notifyEventProcessors;
|
|
}
|
|
|
|
function _notifyEventProcessors(a0, a1, a2, a3) { // fn#9495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1007:30, offset: 0x00d6929c, size: 266 bytes, params: 5, frame: 24
|
|
var id;
|
|
var r0;
|
|
var value;
|
|
var debug;
|
|
var log;
|
|
var moduleValue;
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const env0_2 = a3;
|
|
const property = a2[a3];
|
|
if (a0) {
|
|
if (property) {
|
|
value = global.Object.assign({}, a0);
|
|
value = property(value, a1);
|
|
if ((require(832) /* metro dependency 832 */).DEBUG_BUILD && value === null) {
|
|
debug = (require(833) /* metro dependency 833 */).debug;
|
|
log = debug.log;
|
|
id = property.id;
|
|
id = !id ? '?' : id;
|
|
Reflect.apply(log, debug, ['Event processor "' + id + '" dropped event']);
|
|
}
|
|
moduleValue = require(836) /* metro dependency 836 */;
|
|
if (moduleValue.isThenable(value)) {
|
|
value = value.then(function(a0) {
|
|
return _notifyEventProcessors(a0, require, importDefault, importAll + 1);
|
|
});
|
|
r0 = value;
|
|
} else {
|
|
value = _notifyEventProcessors(value, a1, a2, a3 + 1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function notifyEventProcessors(a0, a1, a2) { // fn#9497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1007:441, offset: 0x00d693ce, size: 189 bytes, params: 4, frame: 22
|
|
var value3;
|
|
var value4;
|
|
var property;
|
|
var error;
|
|
let value = 0;
|
|
let r0 = arguments.length > 3 ? arguments[3] === undefined ? value : arguments[3] : value;
|
|
try {
|
|
value3 = environment;
|
|
value4 = _notifyEventProcessors(a1, a2, a0, r0);
|
|
property = dependencyMap[value];
|
|
value = require(property);
|
|
value = value.isThenable(value4);
|
|
if (value) {
|
|
r0 = value4;
|
|
} else {
|
|
property = dependencyMap[1];
|
|
value = require(property);
|
|
value = value.resolvedSyncPromise(value4);
|
|
r0 = value;
|
|
}
|
|
} catch (error) {
|
|
value = require(dependencyMap[1]);
|
|
return value.rejectedSyncPromise(error);
|
|
}
|
|
return r0;
|
|
}
|
|
|