771 lines
34 KiB
TypeScript
771 lines
34 KiB
TypeScript
/* Metro module 9036; source: modules/guild_scheduled_events/GuildScheduledEventManager.tsx; dependencies: [6, 7, 15, 17, 18, 5, 3969, 4117, 9037, 4860, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import SelectedGuildStore from '../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
|
|
import GuildScheduledEventStore from './GuildScheduledEventStore.tsx'; /* Metro dependency 4117 */
|
|
import GuildScheduledEventsActionCreators from './GuildScheduledEventsActionCreators.tsx'; /* Metro dependency 9037 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun70265(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:6, offset: 0x01cf4bde, size: 377 bytes, params: 8, frame: 19
|
|
const _arrayLikeToArray_70268 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_10 = {};
|
|
let Set = global.Set;
|
|
let set = new Set();
|
|
Set = global.Set;
|
|
set = new Set();
|
|
const env0_13 = _fun70272();
|
|
set = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
set = _fun70276(set);
|
|
set = new set();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/guild_scheduled_events/GuildScheduledEventManager.tsx');
|
|
exports.default = set;
|
|
function _createForOfIteratorHelperLoose_70266(a0, a1) { // fn#70266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:180, offset: 0x01cf4d57, size: 372 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun70267;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_70268(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_70268(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_70268(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun70267;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
function _fun70267() { // fn#70267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:751, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
|
|
return env0_1 >= env0_0.length ? {done: true} : {done: false,
|
|
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
|
|
}
|
|
|
|
}
|
|
|
|
function _isNativeReflectConstruct_70269() { // fn#70269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1090, offset: 0x01cf4ecb, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_70269_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun70272() { // fn#70272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1321, offset: 0x01cf4f2d, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = Module00005(_fun70274);
|
|
return _fun70275;
|
|
function* _fun70274(a0) { // fn#70274, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1341, offset: 0x01cf4f5c, size: 194 bytes, params: 2, frame: 15
|
|
var binding;
|
|
var getGuildScheduledEventsForGuild;
|
|
var length;
|
|
var has;
|
|
var add;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var getGuildEventsForCurrentUser;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var error;
|
|
if (true) {
|
|
reduciblePort25: while (true) {
|
|
exceptionLanding24: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_9;
|
|
getGuildScheduledEventsForGuild = binding.getGuildScheduledEventsForGuild;
|
|
length = Reflect.apply(getGuildScheduledEventsForGuild, binding, [a0]).length;
|
|
if (length === 0) {
|
|
break reduciblePort25;
|
|
}
|
|
binding = env2_11;
|
|
has = binding.has;
|
|
if (Reflect.apply(has, binding, [a0])) {
|
|
break reduciblePort25;
|
|
}
|
|
binding = env2_12;
|
|
has = binding.has;
|
|
if (Reflect.apply(has, binding, [a0])) {
|
|
break reduciblePort25;
|
|
}
|
|
try {
|
|
binding = env2_11;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
add = binding.add;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
Reflect.apply(add, binding, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
property = binding2[8];
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
getGuildEventsForCurrentUser = value3.getGuildEventsForCurrentUser;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(getGuildEventsForCurrentUser, value3, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
binding = env2_12;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
add = binding.add;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
Reflect.apply(add, binding, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
break reduciblePort25;
|
|
}
|
|
binding = env2_11;
|
|
binding.delete(a0);
|
|
break reduciblePort25;
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun70275() { // fn#70275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1527, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70276(a0) { // fn#70276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1575, offset: 0x01cf501e, size: 305 bytes, params: 2, frame: 17
|
|
const GuildScheduledEventManager2 = GuildScheduledEventManager;
|
|
Inherits(GuildScheduledEventManager2, a0);
|
|
const env0_2 = Module00005(_fun70284);
|
|
const items2 = [{key: 'getGuildEventUserCounts', value: value_70287}];
|
|
items2[1] = {key: 'getGuildEventUsers', value: value_70288};
|
|
items2[2] = {key: 'getGuildEventsForCurrentUser', value: value_70289};
|
|
const env0_1 = Module00005(_fun70291);
|
|
items2[3] = {key: 'handleConnectionOpen', value: value_70293};
|
|
items2[4] = {key: 'handleGuildUnavailable', value: value_70294};
|
|
items2[5] = {key: 'handleGuildDelete', value: value_70295};
|
|
items2[6] = {key: 'handleInviteResolveSuccess', value: value_70296};
|
|
const env0_0 = Module00005(_fun70298);
|
|
items2[7] = {key: 'handleChannelSelect', value: value_70302};
|
|
return CreateClass(GuildScheduledEventManager2, items2);
|
|
function GuildScheduledEventManager(a0) { // fn#70277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1587, offset: 0x01cf514f, size: 200 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_2;
|
|
binding(this, GuildScheduledEventManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(GuildScheduledEventManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_70269()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_70278, GUILD_DELETE: GUILD_DELETE_70279,
|
|
GUILD_UNAVAILABLE: GUILD_UNAVAILABLE_70280, INVITE_RESOLVE_SUCCESS: INVITE_RESOLVE_SUCCESS_70281,
|
|
CHANNEL_SELECT: CHANNEL_SELECT_70282};
|
|
return value;
|
|
function GuildScheduledEventManagerPOST_CONNECTION_OPEN() { // fn#70278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1883, owner: GuildScheduledEventManager.POST_CONNECTION_OPEN, offset: 0x00eed68e, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0.handleConnectionOpen();
|
|
}
|
|
|
|
function GuildScheduledEventManagerGUILD_DELETE(a0) { // fn#70279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1925, owner: GuildScheduledEventManager.GUILD_DELETE, offset: 0x00e46ef2, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0.handleGuildDelete(a0);
|
|
}
|
|
|
|
function GuildScheduledEventManagerGUILD_UNAVAILABLE(a0) { // fn#70280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:1969, owner: GuildScheduledEventManager.GUILD_UNAVAILABLE, offset: 0x01cf5217, size: 25 bytes, params: 2, frame: 11
|
|
return env0_0.handleGuildUnavailable(a0);
|
|
}
|
|
|
|
function GuildScheduledEventManagerINVITE_RESOLVE_SUCCESS(a0) { // fn#70281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2023, owner: GuildScheduledEventManager.INVITE_RESOLVE_SUCCESS, offset: 0x01cf5230, size: 25 bytes, params: 2, frame: 11
|
|
return env0_0.handleInviteResolveSuccess(a0);
|
|
}
|
|
|
|
function GuildScheduledEventManagerCHANNEL_SELECT(a0) { // fn#70282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2073, owner: GuildScheduledEventManager.CHANNEL_SELECT, offset: 0x013e6c11, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0.handleChannelSelect(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function* _fun70284(a0, a1, a2) { // fn#70284, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2216, offset: 0x01cf5254, size: 261 bytes, params: 4, frame: 25
|
|
var environment;
|
|
var filter;
|
|
var Date;
|
|
var now;
|
|
var value3;
|
|
var value4;
|
|
var binding;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value5;
|
|
var length;
|
|
var binding2;
|
|
var property;
|
|
var value7;
|
|
var fetchGuildEventUserCounts;
|
|
var value8;
|
|
var error;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort16: while (true) {
|
|
exceptionLanding15: while (true) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
filter = a2.filter;
|
|
value = Reflect.apply(filter, a2, [_fun70285]);
|
|
Date = global.Date;
|
|
now = Date.now;
|
|
value3 = Reflect.apply(now, Date, []);
|
|
value4 = environment.__proto__.__proto__;
|
|
binding = env2_10;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
value5 = value3 - binding['' + a0 + '-' + a1];
|
|
if (value5 < 1800000) {
|
|
length = value.length;
|
|
if (length === 0) {
|
|
break reduciblePort16;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reduciblePort16;
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env2_10;
|
|
HermesInternal = global.HermesInternal;
|
|
const value6 = '' + a0 + '-' + a1;
|
|
Date = global.Date;
|
|
binding[value6] = Date.now();
|
|
value.forEach(_fun70286);
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
try {
|
|
property = binding2[8];
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
try {
|
|
fetchGuildEventUserCounts = value7.fetchGuildEventUserCounts;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
try {
|
|
value = Reflect.apply(fetchGuildEventUserCounts, value7, [a0, a1, value]);
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding15;
|
|
}
|
|
return value8 ? value : undefined;
|
|
function _fun70285(a0) { // fn#70285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2249, offset: 0x01cf5359, size: 145 bytes, params: 2, frame: 22
|
|
var r0;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
const value3 = env3_10['' + env0_0 + '-' + require + '-' + a0] == null;
|
|
if (value3) {
|
|
r0 = value3;
|
|
} else {
|
|
value = global.Date.now() - env3_10['' + env0_0 + '-' + require + '-' + a0];
|
|
value = value > 1800000;
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun70286(a0) { // fn#70286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2400, offset: 0x01cf53ea, size: 73 bytes, params: 2, frame: 20
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
const binding = env3_10;
|
|
value = '' + env0_0 + '-' + require + '-' + a0;
|
|
const Date = global.Date;
|
|
const value2 = Date.now();
|
|
binding[value] = value2;
|
|
return value2;
|
|
}
|
|
|
|
}
|
|
|
|
function value_70287() { // fn#70287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2502, offset: 0x00d6b059, size: 30 bytes, params: 1, frame: 13
|
|
return env0_2.apply(this, arguments);
|
|
}
|
|
|
|
function value_70288(a0, a1, a2) { // fn#70288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2603, offset: 0x01cf5433, size: 49 bytes, params: 4, frame: 15
|
|
const value = environment.__proto__;
|
|
return (GuildScheduledEventsActionCreators).fetchUsersForGuildEvent(a0,
|
|
a1, a2);
|
|
}
|
|
|
|
function value_70289(a0) { // fn#70289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2709, offset: 0x01c6c336, size: 19 bytes, params: 2, frame: 11
|
|
return env1_13(a0);
|
|
}
|
|
|
|
function* _fun70291() { // fn#70291, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:2775, offset: 0x01cf546f, size: 229 bytes, params: 1, frame: 22
|
|
var environment;
|
|
var r4;
|
|
var value4;
|
|
var done;
|
|
var value5;
|
|
var getGuildEventUserCounts;
|
|
var id;
|
|
var value6;
|
|
var value7;
|
|
var Promise;
|
|
var prototype;
|
|
var value8;
|
|
var closure;
|
|
var promise;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_11;
|
|
binding.clear();
|
|
env2_12.clear();
|
|
env2_10 = {};
|
|
var lastSelectedGuildId = env2_8.getLastSelectedGuildId();
|
|
if (lastSelectedGuildId != null) {
|
|
binding = env2_14;
|
|
value = env2_9.getGuildScheduledEventsForGuild(lastSelectedGuildId);
|
|
value = binding(value);
|
|
value4 = value();
|
|
done = value4.done;
|
|
reducibleJoin10: while (true) {
|
|
if (done) {
|
|
break reducibleJoin10;
|
|
}
|
|
r4 = value4;
|
|
reducibleLoop3: while (true) {
|
|
value5 = r4.value;
|
|
getGuildEventUserCounts = this.getGuildEventUserCounts;
|
|
id = value5.id;
|
|
yield Reflect.apply(getGuildEventUserCounts, this, [lastSelectedGuildId, id, []]);
|
|
value6 = undefined;
|
|
value7 = false;
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value8 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = function(a0) {
|
|
var setTimeout = global.setTimeout;
|
|
var Math = global.Math;
|
|
return setTimeout(a0, 200 * Math.random() + 50);
|
|
};
|
|
promise = new Promise();
|
|
value9 = promise instanceof Object ? promise : value8;
|
|
yield value9;
|
|
value10 = undefined;
|
|
value11 = false;
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
value12 = value();
|
|
done = value12.done;
|
|
if (done) {
|
|
break reducibleJoin10;
|
|
}
|
|
r4 = value12;
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_70293() { // fn#70293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3077, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
|
|
return env0_1.apply(this, arguments);
|
|
}
|
|
|
|
function value_70294({guildId}) { // fn#70294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3179, offset: 0x01cf5587, size: 51 bytes, params: 2, frame: 12
|
|
env1_11.delete(guildId);
|
|
env1_12.delete(guildId);
|
|
delete env1_10[guildId];
|
|
}
|
|
|
|
function value_70295({guild}) { // fn#70295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3270, offset: 0x01cf55ba, size: 56 bytes, params: 2, frame: 12
|
|
const id = guild.id;
|
|
env1_11.delete(id);
|
|
env1_12.delete(id);
|
|
delete env1_10[id];
|
|
}
|
|
|
|
function value_70296({invite}) { // fn#70296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3379, offset: 0x01cf55f2, size: 66 bytes, params: 2, frame: 14
|
|
var value4;
|
|
const guild_scheduled_event = invite.guild_scheduled_event;
|
|
const id = invite.guild?.id;
|
|
if (guild_scheduled_event != null && id != null) {
|
|
value4 = environment.__proto__;
|
|
env1_13(id);
|
|
}
|
|
}
|
|
|
|
async function _fun70298({guildId}) { // fn#70298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3528, offset: 0x01cf5648, size: 329 bytes, params: 2, frame: 24
|
|
var environment;
|
|
var getGuildEventUserCounts;
|
|
var id;
|
|
var items2;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var Promise;
|
|
var prototype;
|
|
var value9;
|
|
var closure;
|
|
var promise;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var error;
|
|
var value15;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (guildId == null) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_14;
|
|
const binding2 = env2_9;
|
|
const getGuildScheduledEventsForGuild = binding2.getGuildScheduledEventsForGuild;
|
|
const value4 = binding(Reflect.apply(getGuildScheduledEventsForGuild, binding2, [guildId]))();
|
|
let done = value4.done;
|
|
if (done) {
|
|
return undefined;
|
|
}
|
|
let r9 = value4;
|
|
let value5 = r9.value;
|
|
reducibleLoop6: while (true) {
|
|
try {
|
|
getGuildEventUserCounts = this.getGuildEventUserCounts;
|
|
} catch (error) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = function(a0) {
|
|
var setTimeout = global.setTimeout;
|
|
var Math = global.Math;
|
|
return setTimeout(a0, 200 * Math.random() + 50);
|
|
};
|
|
promise = new Promise();
|
|
value = promise instanceof Object ? promise : value;
|
|
await value;
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
id = value5.id;
|
|
} catch (error) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun70301;
|
|
promise = new Promise();
|
|
value = promise instanceof Object ? promise : value;
|
|
await value;
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun70301;
|
|
promise = new Promise();
|
|
value = promise instanceof Object ? promise : value;
|
|
await value;
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(getGuildEventUserCounts, this, [guildId, id, items2]);
|
|
} catch (error) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun70301;
|
|
promise = new Promise();
|
|
value = promise instanceof Object ? promise : value;
|
|
await value;
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
await value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun70301;
|
|
promise = new Promise();
|
|
value = promise instanceof Object ? promise : value;
|
|
await value;
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
break reducibleLoop6;
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value9 = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun70300;
|
|
promise = new Promise();
|
|
value10 = promise instanceof Object ? promise : value9;
|
|
await value10;
|
|
value11 = undefined;
|
|
value12 = false;
|
|
if (value12) {
|
|
return value11;
|
|
}
|
|
value13 = value();
|
|
done = value13.done;
|
|
if (done) {
|
|
return undefined;
|
|
}
|
|
r9 = value13;
|
|
value5 = r9.value;
|
|
continue reducibleLoop6;
|
|
}
|
|
Promise = global.Promise;
|
|
await new Promise(function(a0) {
|
|
var setTimeout = global.setTimeout;
|
|
var Math = global.Math;
|
|
return setTimeout(a0, 200 * Math.random() + 50);
|
|
});
|
|
return value7;
|
|
}
|
|
|
|
function value_70302() { // fn#70302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3796, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun70300(a0) { // fn#70300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3751, offset: 0x01cf5554, size: 51 bytes, params: 2, frame: 14
|
|
const setTimeout = global.setTimeout;
|
|
const Math = global.Math;
|
|
return setTimeout(a0, 200 * Math.random() + 50);
|
|
}
|
|
|
|
function _fun70301(a0) { // fn#70301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9221:3751, offset: 0x01cf5554, size: 51 bytes, params: 2, frame: 14
|
|
const setTimeout = global.setTimeout;
|
|
const Math = global.Math;
|
|
return setTimeout(a0, 200 * Math.random() + 50);
|
|
}
|
|
|
|
global.__d(_fun70265, 9036, [6, 7, 15, 17, 18, 5, 3969, 4117, 9037, 4860,
|
|
2]) /* metro module 9036, dependencies: [6, 7, 15, 17, 18, 5, 3969, 4117, 9037, 4860, 2] */;
|