917 lines
28 KiB
TypeScript
917 lines
28 KiB
TypeScript
/* Metro module 5196; source: modules/user_profile/WidgetActionCreators.tsx; dependencies: [5, 1878, 661, 694, 507, 1216, 2] */
|
|
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
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
object2 = {setPendingWidgets: setPendingWidgets, savePendingWidgets: savePendingWidgets,
|
|
clearPendingWidgets: clearPendingWidgets, fetchSuggestedGames: fetchSuggestedGames,
|
|
removeGameFromSuggestedGames: removeGameFromSuggestedGames};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/WidgetActionCreators.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
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
|
|
(importDefault(694) /* metro dependency 694: 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 env0_3(_fun45877)();
|
|
}
|
|
|
|
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
|
|
(importDefault(694) /* metro dependency 694: 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 env0_3(_fun45882)();
|
|
}
|
|
|
|
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
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WIDGET_SUGGESTED_REMOVE_GAME',
|
|
applicationId: a0});
|
|
}
|
|
|
|
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 object4;
|
|
var binding2;
|
|
var property;
|
|
var value8;
|
|
var HTTP;
|
|
var put;
|
|
var USER_PROFILE_WIDGETS;
|
|
var object3;
|
|
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 {
|
|
object4 = {};
|
|
} 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 {
|
|
object4.url = USER_PROFILE_WIDGETS;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.widgets = value7;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.body = object3;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.oldFormErrors = true;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.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, [object4]);
|
|
} 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 {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
value = binding(env2_2[3]);
|
|
value.dispatch({type: 'WIDGET_PENDING_SAVE_FAILURE'});
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.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 {
|
|
object4.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 {
|
|
object4.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, [object4]);
|
|
} 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* _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 object2;
|
|
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 {
|
|
object2 = {};
|
|
} 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 {
|
|
object2.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 {
|
|
object2.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, [object2]);
|
|
} 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 {
|
|
object2 = {};
|
|
} 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 {
|
|
object2.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 {
|
|
object2.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 {
|
|
object2.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, [object2]);
|
|
} 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;
|
|
}
|
|
|