199 lines
8.6 KiB
JavaScript
199 lines
8.6 KiB
JavaScript
/* Metro module 359; source: unknown; dependencies: [98, 44, 360, 63, 79, 361] */
|
|
import Module00098 from './module-00098.js'; /* Metro dependency 98 */
|
|
import * as Module00044Module from './module-00044.js'; /* Metro dependency 44 */
|
|
import * as Module00360Module from './module-00360.js'; /* Metro dependency 360 */
|
|
|
|
function _fun5323(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:6, offset: 0x00cd9c12, size: 403 bytes, params: 8, frame: 22
|
|
let env0_0 = require;
|
|
const onMoreTasks2 = onMoreTasks;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = Module00098;
|
|
value = new value();
|
|
object = {Events: {'interactionStart': 'interactionStart', 'interactionComplete': 'interactionComplete'},
|
|
runAfterInteractions: function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = [];
|
|
var value2 = new global.Promise(_fun5329);
|
|
var object = {};
|
|
object.then = value2.then.bind(value2);
|
|
object.cancel = _fun5330;
|
|
return object;
|
|
}, createInteractionHandle: createInteractionHandle, clearInteractionHandle: clearInteractionHandle};
|
|
object.addListener = value.addListener.bind(value);
|
|
object.setDeadline = function(a0) {
|
|
env0_9 = a0;
|
|
};
|
|
let Set = global.Set;
|
|
let set = new Set();
|
|
Set = global.Set;
|
|
set = new Set();
|
|
Set = global.Set;
|
|
set = new Set();
|
|
let value3 = new (Module00360Module).default({onMoreTasks: onMoreTasks2});
|
|
value3 = importAll(79) /* metro dependency 79 */;
|
|
exports.default = value3.disableInteractionManager() ? (require(361) /* metro dependency 361 */).default : object;
|
|
function onMoreTasks() { // fn#5324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:908, offset: 0x00cd9da5, size: 69 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var value3;
|
|
if (!env0_7) {
|
|
if (env0_9 > 0) {
|
|
value3 = global.setTimeout(_processUpdate, 0);
|
|
} else {
|
|
value2 = global.setImmediate(_processUpdate);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _processUpdate() { // fn#5325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:1004, offset: 0x00cd9dea, size: 300 bytes, params: 1, frame: 15
|
|
var r2;
|
|
var value2;
|
|
var value3;
|
|
var emit;
|
|
var Events;
|
|
var interactionStart;
|
|
var interactionComplete;
|
|
var hasTasksToProcess;
|
|
var hasTasksToProcess2;
|
|
var processNext;
|
|
var property;
|
|
var getEventLoopRunningTime;
|
|
var value4;
|
|
const size = env0_3.size;
|
|
let binding = env0_4;
|
|
binding.forEach(_fun5326);
|
|
env0_5.forEach(_fun5327);
|
|
const size2 = env0_3.size;
|
|
reducibleJoin7: while (true) {
|
|
reducibleJoin4: while (true) {
|
|
if (size === 0) {
|
|
value2 = size === 0;
|
|
if (value2) {
|
|
value3 = size2 !== 0;
|
|
r2 = value3;
|
|
break reducibleJoin4;
|
|
}
|
|
r2 = value2;
|
|
break reducibleJoin4;
|
|
}
|
|
if (size2 === 0) {
|
|
binding = env0_2;
|
|
emit = binding.emit;
|
|
Events = env0_10.Events;
|
|
interactionComplete = Events.interactionComplete;
|
|
Reflect.apply(emit, binding, [interactionComplete]);
|
|
break reducibleJoin7;
|
|
}
|
|
value2 = size === 0;
|
|
if (value2) {
|
|
value3 = size2 !== 0;
|
|
r2 = value3;
|
|
break reducibleJoin4;
|
|
}
|
|
r2 = value2;
|
|
break reducibleJoin4;
|
|
}
|
|
if (r2) {
|
|
binding = env0_2;
|
|
emit = binding.emit;
|
|
Events = env0_10.Events;
|
|
interactionStart = Events.interactionStart;
|
|
Reflect.apply(emit, binding, [interactionStart]);
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (size2 !== 0) {
|
|
break reducibleJoin13;
|
|
}
|
|
binding = env0_6;
|
|
hasTasksToProcess = binding.hasTasksToProcess;
|
|
hasTasksToProcess2 = Reflect.apply(hasTasksToProcess, binding, []);
|
|
if (!hasTasksToProcess2) {
|
|
break reducibleJoin13;
|
|
}
|
|
reducibleLoop9: while (true) {
|
|
binding = env0_6;
|
|
processNext = binding.processNext;
|
|
Reflect.apply(processNext, binding, []);
|
|
if (env0_9 > 0) {
|
|
property = (require(63) /* metro dependency 63 */).default;
|
|
getEventLoopRunningTime = property.getEventLoopRunningTime;
|
|
value4 = Reflect.apply(getEventLoopRunningTime, property, []);
|
|
reducibleJoin11: while (true) {
|
|
if (value4 >= env0_9) {
|
|
onMoreTasks();
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
}
|
|
binding = env0_6;
|
|
hasTasksToProcess = binding.hasTasksToProcess;
|
|
if (Reflect.apply(hasTasksToProcess, binding, [])) {
|
|
continue reducibleLoop9;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
}
|
|
env0_4.clear();
|
|
env0_5.clear();
|
|
function _fun5326(a0) { // fn#5326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:1058, offset: 0x00cd9f16, size: 22 bytes, params: 2, frame: 11
|
|
return env1_3.add(a0);
|
|
}
|
|
|
|
function _fun5327(a0) { // fn#5327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:1100, offset: 0x00cd9f2c, size: 22 bytes, params: 2, frame: 11
|
|
return env1_3.delete(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function runAfterInteractions(a0) { // fn#5328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:222, offset: 0x00cd9f42, size: 83 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_1 = [];
|
|
const Promise = global.Promise;
|
|
const promise = new Promise(_fun5329);
|
|
const object = {};
|
|
object.then = promise.then.bind(promise);
|
|
object.cancel = cancel_5330;
|
|
return object;
|
|
function _fun5329(a0) { // fn#5329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:279, offset: 0x00cd9f95, size: 125 bytes, params: 2, frame: 16
|
|
onMoreTasks();
|
|
if (env0_0) {
|
|
env0_1.push(env0_0);
|
|
}
|
|
const binding = env0_1;
|
|
const push = binding.push;
|
|
let r7 = env0_0 && env0_0.name;
|
|
r7 = !r7 ? '?' : r7;
|
|
Reflect.apply(push, binding, [{run: a0, name: 'resolve ' + r7}]);
|
|
env1_6.enqueueTasks(env0_1);
|
|
}
|
|
|
|
function runAfterInteractionsCancel() { // fn#5330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:426, owner: runAfterInteractions.cancel, offset: 0x00cda012, size: 29 bytes, params: 1, frame: 11
|
|
env1_6.cancelTasks(env0_1);
|
|
}
|
|
|
|
}
|
|
|
|
function createInteractionHandle() { // fn#5331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:488, offset: 0x00cda02f, size: 40 bytes, params: 1, frame: 11
|
|
onMoreTasks();
|
|
const binding = env0_8;
|
|
const value2 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
env0_4.add(value2);
|
|
return value2;
|
|
}
|
|
|
|
function clearInteractionHandle(a0) { // fn#5332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:400:593, offset: 0x00cda057, size: 84 bytes, params: 2, frame: 15
|
|
(Module00044Module)(!!a0, 'InteractionManager: Must provide a handle to clear.');
|
|
onMoreTasks();
|
|
env0_4.delete(a0);
|
|
env0_5.add(a0);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun5323, 359, [98, 44, 360, 63, 79,
|
|
361]) /* metro module 359, dependencies: [98, 44, 360, 63, 79, 361] */;
|