920 lines
35 KiB
TypeScript
920 lines
35 KiB
TypeScript
/* Metro module 5196; source: modules/user_profile/WidgetActionCreators.tsx; dependencies: [5, 1878, 661, 694, 507, 1216, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun45873(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:6, offset: 0x0119a073, size: 209 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
object = {setPendingWidgets: setPendingWidgets, savePendingWidgets: savePendingWidgets,
|
|
clearPendingWidgets: clearPendingWidgets, fetchSuggestedGames: fetchSuggestedGames,
|
|
removeGameFromSuggestedGames: removeGameFromSuggestedGames};
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/WidgetActionCreators.tsx');
|
|
exports.default = object;
|
|
function setPendingWidgets(a0) { // fn#45874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:139, offset: 0x0119a144, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'WIDGET_PENDING_SET', widgets: a0});
|
|
}
|
|
|
|
function savePendingWidgets(a0) { // fn#45875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:236, offset: 0x0119a17d, size: 34 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return Module00005(_fun45877)();
|
|
function* _fun45877() { // fn#45877, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:242, offset: 0x0119a1a8, size: 322 bytes, params: 1, frame: 18
|
|
var object2;
|
|
var binding2;
|
|
var property;
|
|
var value8;
|
|
var HTTP;
|
|
var put;
|
|
var USER_PROFILE_WIDGETS;
|
|
var object;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var binding3;
|
|
var value12;
|
|
var body;
|
|
var widgets;
|
|
var error;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
let binding = env2_4;
|
|
const currentUser = binding.getCurrentUser();
|
|
const id = currentUser == null ? value : currentUser.id;
|
|
if (id == null) {
|
|
return value;
|
|
}
|
|
env2_1(env2_2[3]).dispatch({type: 'WIDGET_PENDING_SAVE_START'});
|
|
const value7 = require.map(function(a0) {
|
|
return a0.toSubmission();
|
|
});
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value8.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
put = HTTP.put;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
USER_PROFILE_WIDGETS = binding.USER_PROFILE_WIDGETS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.url = USER_PROFILE_WIDGETS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.widgets = value7;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.body = object;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.oldFormErrors = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(put, HTTP, [object2]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
yield value9;
|
|
try {
|
|
value10 = undefined;
|
|
value11 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
dispatch = value12.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.type = 'WIDGET_PENDING_SAVE_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.userId = id;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
body = value10.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
widgets = body.widgets;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.widgets = widgets;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value12, [object2]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
body = value10.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
return body;
|
|
}
|
|
|
|
}
|
|
|
|
function clearPendingWidgets() { // fn#45879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:699, offset: 0x0119a2fb, size: 49 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'WIDGET_PENDING_CLEAR'});
|
|
}
|
|
|
|
function fetchSuggestedGames() { // fn#45880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:790, offset: 0x0119a32c, size: 27 bytes, params: 1, frame: 11
|
|
return Module00005(_fun45882)();
|
|
function* _fun45882() { // fn#45882, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:797, offset: 0x0119a350, size: 454 bytes, params: 1, frame: 24
|
|
var suggested_games;
|
|
var suggested_wishlist_games;
|
|
var r3;
|
|
var r12;
|
|
var r8;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var get;
|
|
var USER_PROFILE_SUGGESTED_GAMES;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var body;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var binding3;
|
|
var value13;
|
|
var captureMessage;
|
|
var binding4;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var items3;
|
|
var value17;
|
|
var value18;
|
|
var items2;
|
|
var error;
|
|
var binding5;
|
|
var value19;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
let binding = env2_1;
|
|
binding(env2_2[3]).dispatch({type: 'WIDGET_SUGGESTED_FETCH_START'});
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
USER_PROFILE_SUGGESTED_GAMES = binding.USER_PROFILE_SUGGESTED_GAMES;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
object.url = USER_PROFILE_SUGGESTED_GAMES;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(get, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = body == null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
suggested_games = value;
|
|
} else {
|
|
try {
|
|
suggested_games = body.suggested_games;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value10 = suggested_games != null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value10) {
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = body == null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value11) {
|
|
suggested_wishlist_games = value;
|
|
} else {
|
|
try {
|
|
suggested_wishlist_games = body.suggested_wishlist_games;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value12 = suggested_wishlist_games != null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
r3 = value12;
|
|
} else {
|
|
r3 = value10;
|
|
}
|
|
if (!r3) {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[5];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
captureMessage = value13.captureMessage;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(captureMessage, value13, ['Suggested games or wishlist games not found']);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding4[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value14 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
dispatch = value14.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
object.type = 'WIDGET_SUGGESTED_FETCH_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value15 = body == null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value15) {
|
|
suggested_games = value;
|
|
} else {
|
|
try {
|
|
suggested_games = body.suggested_games;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value16 = suggested_games != null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value16) {
|
|
r12 = suggested_games;
|
|
} else {
|
|
try {
|
|
items3 = [];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
r12 = items3;
|
|
}
|
|
try {
|
|
object.suggestedGamesIds = r12;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
body = value7.body;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
value17 = body == null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value17) {
|
|
suggested_wishlist_games = value;
|
|
} else {
|
|
try {
|
|
suggested_wishlist_games = body.suggested_wishlist_games;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value18 = suggested_wishlist_games != null;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
if (value18) {
|
|
r8 = suggested_wishlist_games;
|
|
} else {
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
r8 = items2;
|
|
}
|
|
try {
|
|
object.suggestedWishlistGamesIds = r8;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value14, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value19 = binding(binding5[3]);
|
|
value19.dispatch({type: 'WIDGET_SUGGESTED_FETCH_FAILURE'});
|
|
value = binding(binding5[5]);
|
|
value.captureException(error);
|
|
throw error;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function removeGameFromSuggestedGames(a0) { // fn#45883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5374:1482, offset: 0x0119a516, size: 56 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'WIDGET_SUGGESTED_REMOVE_GAME',
|
|
applicationId: a0});
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun45873, 5196, [5, 1878, 661, 694, 507, 1216,
|
|
2]) /* metro module 5196, dependencies: [5, 1878, 661, 694, 507, 1216, 2] */;
|