2100 lines
84 KiB
TypeScript
2100 lines
84 KiB
TypeScript
/* Metro module 9580; source: modules/icymi/ICYMIActionCreators.tsx; dependencies: [5, 661, 507, 694, 1216, 9579, 3829, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as ICYMIUtilsModule from './ICYMIUtils.tsx'; /* Metro dependency 9579 */
|
|
|
|
function _fun75009(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:6, offset: 0x01da02f7, size: 489 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {fetchPopularGuildsFromCategories: fetchPopularGuildsFromCategories, fetchDehydrated: fetchDehydrated,
|
|
gravityJoinGuild: gravityJoinGuild, fetchForNotification: fetchForNotification,
|
|
fetchForStatusNotification: fetchForStatusNotification, fetchHydrated: fetchHydrated,
|
|
getGuildChannelScores: getGuildChannelScores, getRecommendedGuilds: getRecommendedGuilds,
|
|
getMediaForCurrentStatus: getMediaForCurrentStatus, reloadICYMITab: reloadICYMITab,
|
|
loadHydratedAttempt: loadHydratedAttempt, openICYMITab: openICYMITab, closeICYMITab: closeICYMITab,
|
|
startItemsDwell: startItemsDwell, triggerItemsLongImpression: triggerItemsLongImpression,
|
|
ackGravityItems: ackGravityItems, gravityScrollEvent: gravityScrollEvent, setFilters: setFilters,
|
|
giveFeedback: giveFeedback, clearReadStates: clearReadStates, addedRecommendedGuild: addedRecommendedGuild,
|
|
setVideosMuted: setVideosMuted, setTabFocused: setTabFocused, setCardHeight: setCardHeight,
|
|
takeSurvey: takeSurvey, itemInteracted: itemInteracted, feedItemActioned: feedItemActioned,
|
|
feedFilterActioned: feedFilterActioned, feedPageActioned: feedPageActioned};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIActionCreators.tsx');
|
|
exports.default = object;
|
|
function fetchPopularGuildsFromCategories(a0, a1) { // fn#75010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:162, offset: 0x01da04e0, size: 43 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return Module00005(_fun75012)();
|
|
function* _fun75012() { // fn#75012, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:172, offset: 0x01da0516, size: 240 bytes, params: 1, frame: 17
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var HTTP;
|
|
var post;
|
|
var object;
|
|
var GRAVITY_TOPIC_GUILDS;
|
|
var object2;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var body;
|
|
var guilds;
|
|
var binding3;
|
|
var value8;
|
|
var dispatch;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
HTTP = value3.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
GRAVITY_TOPIC_GUILDS = binding.GRAVITY_TOPIC_GUILDS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_TOPIC_GUILDS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object2.category_ids = require;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object2.offset = importDefault;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
body = value6.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
guilds = body.guilds;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
dispatch = value8.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_ICYMI_POPULAR_GUILDS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.categoryIds = require;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.guilds = guilds;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.offset = importDefault;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value8, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
function fetchDehydrated() { // fn#75013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:474, offset: 0x01da0606, size: 68 bytes, params: 1, frame: 12
|
|
const value = a0;
|
|
const r2 = value !== undefined ? value : {};
|
|
const env0_0 = r2.isInitialLoad;
|
|
const env0_1 = r2.isReloading;
|
|
const env0_2 = r2.forceRefresh;
|
|
return Module00005(_fun75015)();
|
|
function* _fun75015() { // fn#75015, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:530, offset: 0x01da0655, size: 364 bytes, params: 1, frame: 18
|
|
var value4;
|
|
var dispatch;
|
|
var Date;
|
|
var now;
|
|
var value6;
|
|
var binding2;
|
|
var property;
|
|
var value7;
|
|
var HTTP;
|
|
var get;
|
|
var object;
|
|
var GRAVITY_ITEMS_DEHYDRATED;
|
|
var object2;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var binding3;
|
|
var value11;
|
|
var body;
|
|
var items2;
|
|
var load_id;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_0;
|
|
var value3 = binding(env2_2[5]);
|
|
if (value3.icymiEnabled('fetchDehydrated')) {
|
|
value4 = environment.__proto__;
|
|
if (importDefault) {
|
|
binding = env2_1;
|
|
binding(env2_2[3]).dispatch({'type': 'ICYMI_SET_REFRESHING', 'refreshing': true});
|
|
}
|
|
try {
|
|
Date = global.Date;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
now = Date.now;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(now, Date, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
HTTP = value7.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
GRAVITY_ITEMS_DEHYDRATED = binding.GRAVITY_ITEMS_DEHYDRATED;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_ITEMS_DEHYDRATED;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object2.refresh = dependencyMap;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.query = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
yield value8;
|
|
try {
|
|
value9 = undefined;
|
|
value10 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
if (value10) {
|
|
return value9;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value11.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_ICYMI_DEHYDRATED';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
body = value9.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
items2 = body.items;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.items = items2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
body = value9.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
load_id = body.load_id;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.loadId = load_id;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.startTime = value6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.isReloading = importDefault;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.isInitialLoad = require;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(dispatch, value11, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
yield value12;
|
|
try {
|
|
value13 = undefined;
|
|
value14 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return undefined;
|
|
}
|
|
return value14 ? value13 : undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function gravityJoinGuild(a0, a1) { // fn#75016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:967, offset: 0x01da07c1, size: 43 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return Module00005(_fun75018)();
|
|
function* _fun75018() { // fn#75018, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:977, offset: 0x01da07f7, size: 214 bytes, params: 1, frame: 17
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var post;
|
|
var object;
|
|
var GRAVITY_JOIN_GUILD;
|
|
var object2;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_0;
|
|
const value3 = binding(env2_2[5]);
|
|
if (!value3.icymiEnabled('gravityJoinGuild')) {
|
|
return undefined;
|
|
}
|
|
if (require.length === 0) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
GRAVITY_JOIN_GUILD = binding.GRAVITY_JOIN_GUILD;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_JOIN_GUILD;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object2.guild_ids = require;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object2.location = importDefault;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
value.captureException(error);
|
|
return false;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
function fetchForNotification(a0, a1) { // fn#75019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:1236, offset: 0x01da08cd, size: 43 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return Module00005(_fun75021)();
|
|
function* _fun75021() { // fn#75021, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:1246, offset: 0x01da0903, size: 312 bytes, params: 1, frame: 19
|
|
var binding;
|
|
var value3;
|
|
var icymiEnabled;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var HTTP;
|
|
var post;
|
|
var object;
|
|
var GRAVITY_ITEMS_HYDRATE;
|
|
var object2;
|
|
var object3;
|
|
var value5;
|
|
var items3;
|
|
var items2;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var body;
|
|
var message_items;
|
|
var length;
|
|
var value9;
|
|
var binding3;
|
|
var value10;
|
|
var dispatch;
|
|
var error;
|
|
var captureException;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reduciblePort55: while (true) {
|
|
exceptionLanding54: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value3 = binding(env2_2[5]);
|
|
icymiEnabled = value3.icymiEnabled;
|
|
if (Reflect.apply(icymiEnabled, value3, ['fetchInitial'])) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
HTTP = value4.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
GRAVITY_ITEMS_HYDRATE = binding.GRAVITY_ITEMS_HYDRATE;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_ITEMS_HYDRATE;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
value5 = environment.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object3.channel_id = require;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object3.message_id = importDefault;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
items3 = [];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
items3[0] = object3;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object2.message_items = items3;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object2.activity_items = items2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
message_items = body.message_items;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
length = message_items.length;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value9 = length === 0;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
if (value9) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_ICYMI_FROM_NOTIFICATION';
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
message_items = body.message_items;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = message_items[0];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object.messageItem = property;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value10, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
break reduciblePort55;
|
|
}
|
|
break reduciblePort55;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
captureException = value.captureException;
|
|
Reflect.apply(captureException, value, [error]);
|
|
break reduciblePort55;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function fetchForStatusNotification(a0) { // fn#75022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:1628, offset: 0x01da0a3b, size: 97 bytes, params: 2, frame: 13
|
|
if (ICYMIUtilsModule.icymiEnabled('fetchInitialStatus')) {
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_ICYMI_FROM_NOTIFICATION',
|
|
customStatusItem: a0});
|
|
}
|
|
}
|
|
|
|
function fetchHydrated(a0, a1, a2) { // fn#75023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:1792, offset: 0x01da0a9c, size: 50 bytes, params: 4, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
return Module00005(_fun75025)();
|
|
function* _fun75025() { // fn#75025, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:1804, offset: 0x01da0ad9, size: 510 bytes, params: 1, frame: 21
|
|
var binding;
|
|
var value3;
|
|
var icymiEnabled;
|
|
var value4;
|
|
var messageItems;
|
|
var activityItems;
|
|
var length;
|
|
var dispatch;
|
|
var object;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var post;
|
|
var GRAVITY_ITEMS_HYDRATE;
|
|
var object2;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var binding3;
|
|
var value9;
|
|
var body;
|
|
var message_items;
|
|
var activity_items;
|
|
var error;
|
|
var binding4;
|
|
var value10;
|
|
var captureException;
|
|
var binding5;
|
|
var generateHydrationId;
|
|
var value11;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reduciblePort52: while (true) {
|
|
exceptionLanding51: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value3 = binding(env2_2[5]);
|
|
icymiEnabled = value3.icymiEnabled;
|
|
if (Reflect.apply(icymiEnabled, value3, ['fetchHydrated'])) {
|
|
value4 = environment.__proto__;
|
|
messageItems = dependencyMap.messageItems;
|
|
activityItems = dependencyMap.activityItems;
|
|
length = messageItems.length;
|
|
if (length === 0) {
|
|
length = activityItems.length;
|
|
reducibleJoin5: while (true) {
|
|
if (length !== 0) {
|
|
break reducibleJoin5;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
dispatch = value.dispatch;
|
|
Reflect.apply(dispatch, value, [{type: 'LOAD_ICYMI_HYDRATED', requestMessageItems: [],
|
|
requestActivityItems: [],
|
|
messageItems: [], activityItems: [], startingIndex: require, endingIndex: importDefault}]);
|
|
break reduciblePort52;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
GRAVITY_ITEMS_HYDRATE = binding.GRAVITY_ITEMS_HYDRATE;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_ITEMS_HYDRATE;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object2.message_items = messageItems;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object2.activity_items = activityItems;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
dispatch = value9.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_ICYMI_HYDRATED';
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.requestMessageItems = messageItems;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.requestActivityItems = activityItems;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
message_items = body.message_items;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.messageItems = message_items;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
activity_items = body.activity_items;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.activityItems = activity_items;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.startingIndex = require;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
object.endingIndex = importDefault;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value9, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
break reduciblePort52;
|
|
}
|
|
break reduciblePort52;
|
|
}
|
|
binding = env2_1;
|
|
binding4 = env2_2;
|
|
value10 = binding(binding4[4]);
|
|
captureException = value10.captureException;
|
|
Reflect.apply(captureException, value10, [error]);
|
|
binding5 = env2_0;
|
|
value = binding5(binding4[5]);
|
|
generateHydrationId = value.generateHydrationId;
|
|
value = Reflect.apply(generateHydrationId, value, [require, importDefault]);
|
|
value11 = binding(binding4[3]);
|
|
dispatch = value11.dispatch;
|
|
Reflect.apply(dispatch, value11, [{type: 'LOAD_ICYMI_HYDRATED_FAILED', hydrationId: value}]);
|
|
break reduciblePort52;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function getGuildChannelScores() { // fn#75026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:2577, offset: 0x01da0cd7, size: 29 bytes, params: 1, frame: 11
|
|
return Module00005(_fun75028)();
|
|
function* _fun75028() { // fn#75028, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:2584, offset: 0x01da0cff, size: 221 bytes, params: 1, frame: 16
|
|
var binding;
|
|
var value3;
|
|
var icymiEnabled;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var HTTP;
|
|
var get;
|
|
var object;
|
|
var GRAVITY_CUSTOM_SCORES;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var binding3;
|
|
var value8;
|
|
var dispatch;
|
|
var body;
|
|
var error;
|
|
var captureException;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reduciblePort33: while (true) {
|
|
exceptionLanding32: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value3 = binding(env2_2[5]);
|
|
icymiEnabled = value3.icymiEnabled;
|
|
if (Reflect.apply(icymiEnabled, value3, ['guildChannelScores'])) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
HTTP = value4.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
GRAVITY_CUSTOM_SCORES = binding.GRAVITY_CUSTOM_SCORES;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_CUSTOM_SCORES;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
dispatch = value8.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_ICYMI_CUSTOM_SCORES';
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
body = value6.body;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
object.scores = body;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value8, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
break reduciblePort33;
|
|
}
|
|
break reduciblePort33;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
captureException = value.captureException;
|
|
Reflect.apply(captureException, value, [error]);
|
|
break reduciblePort33;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function getRecommendedGuilds() { // fn#75029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:2855, offset: 0x01da0ddc, size: 29 bytes, params: 1, frame: 11
|
|
return Module00005(_fun75031)();
|
|
function* _fun75031() { // fn#75031, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:2862, offset: 0x01da0e04, size: 227 bytes, params: 1, frame: 16
|
|
var binding;
|
|
var value3;
|
|
var icymiEnabled;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var HTTP;
|
|
var get;
|
|
var object;
|
|
var GRAVITY_RECOMMENDED_GUILDS;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var binding3;
|
|
var value8;
|
|
var dispatch;
|
|
var body;
|
|
var guilds;
|
|
var error;
|
|
var captureException;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reduciblePort34: while (true) {
|
|
exceptionLanding33: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value3 = binding(env2_2[5]);
|
|
icymiEnabled = value3.icymiEnabled;
|
|
if (Reflect.apply(icymiEnabled, value3, ['recommendedGuilds'])) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
HTTP = value4.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
GRAVITY_RECOMMENDED_GUILDS = binding.GRAVITY_RECOMMENDED_GUILDS;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_RECOMMENDED_GUILDS;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
dispatch = value8.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_ICYMI_RECOMMENDED_GUILDS';
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
body = value6.body;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
guilds = body.guilds;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
object.guilds = guilds;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value8, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
break reduciblePort34;
|
|
}
|
|
break reduciblePort34;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
captureException = value.captureException;
|
|
Reflect.apply(captureException, value, [error]);
|
|
break reduciblePort34;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function getMediaForCurrentStatus() { // fn#75032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3153, offset: 0x01da0ee7, size: 29 bytes, params: 1, frame: 11
|
|
return Module00005(_fun75034)();
|
|
function* _fun75034() { // fn#75034, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3160, offset: 0x01da0f0f, size: 317 bytes, params: 1, frame: 17
|
|
var binding;
|
|
var value3;
|
|
var icymiEnabled;
|
|
var CustomStatusSetting;
|
|
var getSetting;
|
|
var value4;
|
|
var createdAtMs;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var get;
|
|
var object;
|
|
var GRAVITY_ATTACHMENTS;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var binding3;
|
|
var value9;
|
|
var dispatch;
|
|
var body;
|
|
var attachments;
|
|
var Number;
|
|
var value10;
|
|
var error;
|
|
var captureException;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reduciblePort41: while (true) {
|
|
exceptionLanding40: while (true) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value3 = binding(env2_2[5]);
|
|
icymiEnabled = value3.icymiEnabled;
|
|
if (Reflect.apply(icymiEnabled, value3, ['mediaForCurrentStatus'])) {
|
|
binding = env2_0;
|
|
CustomStatusSetting = binding(env2_2[6]).CustomStatusSetting;
|
|
getSetting = CustomStatusSetting.getSetting;
|
|
value4 = Reflect.apply(getSetting, CustomStatusSetting, []);
|
|
if (value4 == null) {
|
|
break reduciblePort41;
|
|
}
|
|
createdAtMs = value4.createdAtMs;
|
|
if (createdAtMs == null) {
|
|
break reduciblePort41;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
property = binding2[2];
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
GRAVITY_ATTACHMENTS = binding.GRAVITY_ATTACHMENTS;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object.url = GRAVITY_ATTACHMENTS;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
dispatch = value9.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object.type = 'LOAD_ICYMI_CURRENT_STATUS_MEDIA';
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
attachments = body.attachments;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object.attachments = attachments;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
Number = global.Number;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
createdAtMs = value4.createdAtMs;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
value10 = Number(createdAtMs);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
object.createdAtMs = value10;
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value9, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding40;
|
|
}
|
|
break reduciblePort41;
|
|
}
|
|
break reduciblePort41;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[4]);
|
|
captureException = value.captureException;
|
|
Reflect.apply(captureException, value, [error]);
|
|
break reduciblePort41;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function reloadICYMITab() { // fn#75035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3550, offset: 0x01da104c, size: 47 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'RELOAD_ICYMI'});
|
|
}
|
|
|
|
function loadHydratedAttempt(a0) { // fn#75036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3608, offset: 0x01da107b, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'LOAD_ICYMI_HYDRATED_ATTEMPT',
|
|
hydrationId: a0});
|
|
}
|
|
|
|
function openICYMITab() { // fn#75037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3701, offset: 0x01da10b4, size: 47 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_TAB_OPENED'});
|
|
}
|
|
|
|
function closeICYMITab() { // fn#75038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3761, offset: 0x01da10e3, size: 49 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_TAB_CLOSED'});
|
|
}
|
|
|
|
function startItemsDwell(a0) { // fn#75039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3822, offset: 0x01da1114, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_ITEMS_DWELL_START', items: a0});
|
|
}
|
|
|
|
function triggerItemsLongImpression(a0) { // fn#75040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:3901, offset: 0x01da114d, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_ITEMS_LONG_IMPRESSION',
|
|
items: a0});
|
|
}
|
|
|
|
function ackGravityItems(a0, a1) { // fn#75041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4011, offset: 0x01da1186, size: 65 bytes, params: 3, frame: 12
|
|
return (Dispatcher).dispatch({type: 'ICYMI_ACK_ITEMS', items: a0,
|
|
override: a1});
|
|
}
|
|
|
|
function gravityScrollEvent(a0) { // fn#75042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4099, offset: 0x01da11c7, size: 57 bytes, params: 2, frame: 12
|
|
return (Dispatcher).dispatch({type: 'ICYMI_SCROLL_EVENT',
|
|
timestamp: a0});
|
|
}
|
|
|
|
function setFilters(a0) { // fn#75043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4171, offset: 0x01da1200, size: 57 bytes, params: 2, frame: 12
|
|
return (Dispatcher).dispatch({type: 'SET_ICYMI_FILTERS',
|
|
filters: a0});
|
|
}
|
|
|
|
function giveFeedback() { // fn#75044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4242, offset: 0x01da1239, size: 49 bytes, params: 1, frame: 12
|
|
return (Dispatcher).dispatch({type: 'ICYMI_FEEDBACK_GIVEN'});
|
|
}
|
|
|
|
function clearReadStates() { // fn#75045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4310, offset: 0x01da126a, size: 49 bytes, params: 1, frame: 12
|
|
return (Dispatcher).dispatch({type: 'CLEAR_ICYMI_READ_STATES'});
|
|
}
|
|
|
|
function addedRecommendedGuild() { // fn#75046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4387, offset: 0x01da129b, size: 49 bytes, params: 1, frame: 12
|
|
return (Dispatcher).dispatch({type: 'ICYMI_JOINED_RECOMMENDED_GUILD'});
|
|
}
|
|
|
|
function setVideosMuted(a0) { // fn#75047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4449, offset: 0x01da12cc, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_SET_VIDEOS_MUTED', muted: a0});
|
|
}
|
|
|
|
function setTabFocused(a0) { // fn#75048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4526, offset: 0x01da1305, size: 55 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_SET_FOCUSED_TAB', focused: a0});
|
|
}
|
|
|
|
function setCardHeight(a0, a1) { // fn#75049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4603, offset: 0x01da133c, size: 64 bytes, params: 3, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_SET_CARD_HEIGHT', itemId: a0,
|
|
height: a1});
|
|
}
|
|
|
|
function takeSurvey() { // fn#75050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4690, offset: 0x01da137c, size: 78 bytes, params: 1, frame: 14
|
|
let value = a0;
|
|
const r4 = value !== undefined ? value : global.Date.now();
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'ICYMI_TAKE_SURVEY', takenAt: r4});
|
|
}
|
|
|
|
function itemInteracted(a0, a1, a2) { // fn#75051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4771, offset: 0x01da13ca, size: 73 bytes, params: 4, frame: 13
|
|
(Dispatcher).dispatch({type: 'ICYMI_ITEM_INTERACTED', itemId: a0,
|
|
itemType: a1, actionType: a2});
|
|
}
|
|
|
|
function feedItemActioned(a0) { // fn#75052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4876, offset: 0x01da1413, size: 59 bytes, params: 2, frame: 14
|
|
const dispatch = Dispatcher.dispatch;
|
|
const object = {type: 'ICYMI_FEED_ITEM_ACTIONED'};
|
|
copyDataProperties(object, a0, 'ICYMI_FEED_ITEM_ACTIONED');
|
|
Reflect.apply(dispatch, Dispatcher, [object]);
|
|
}
|
|
|
|
function feedFilterActioned(a0) { // fn#75053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:4954, offset: 0x01da144e, size: 59 bytes, params: 2, frame: 14
|
|
const dispatch = Dispatcher.dispatch;
|
|
const object = {type: 'ICYMI_FEED_FILTER_ACTIONED'};
|
|
copyDataProperties(object, a0, 'ICYMI_FEED_FILTER_ACTIONED');
|
|
Reflect.apply(dispatch, Dispatcher, [object]);
|
|
}
|
|
|
|
function feedPageActioned(a0) { // fn#75054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9766:5036, offset: 0x01da1489, size: 59 bytes, params: 2, frame: 14
|
|
const dispatch = Dispatcher.dispatch;
|
|
const object = {type: 'ICYMI_FEED_PAGE_ACTIONED'};
|
|
copyDataProperties(object, a0, 'ICYMI_FEED_PAGE_ACTIONED');
|
|
Reflect.apply(dispatch, Dispatcher, [object]);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun75009, 9580, [5, 661, 507, 694, 1216, 9579, 3829,
|
|
2]) /* metro module 9580, dependencies: [5, 661, 507, 694, 1216, 9579, 3829, 2] */;
|