/* Metro module 10017; source: modules/game_profile/GameProfileHttpUtils.tsx; dependencies: [5, 1949, 661, 694, 4141, 507, 4131, 10012, 2] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import LocaleStore from '../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ function _fun78233(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:6, offset: 0x01e220f0, size: 196 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const value = _fun78234(); const value2 = _fun78239(); const value3 = _fun78244(); (FileImportTrackerModule).fileFinishedImporting('modules/game_profile/GameProfileHttpUtils.tsx'); exports.getShopCollection = value; exports.getSimilarGames = value2; exports.getGameAnnouncements = value3; function _fun78234() { // fn#78234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:142, offset: 0x01e221b4, size: 36 bytes, params: 1, frame: 12 const env0_0 = Module00005(_fun78236); return _fun78238; function* _fun78236(a0) { // fn#78236, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:162, offset: 0x01e221e3, size: 309 bytes, params: 2, frame: 19 var object2; var environment; var binding2; var property; var value4; var httpGetWithCountryCodeQuery; var STOREFRONT_COLLECTION_WITH_PRODUCTS; var value5; var object; var locale; var value6; var value7; var value8; var body; var products; var flatMap; var closure; var value9; var binding3; var value10; var error; if (true) { value = environment.__proto__.__proto__; var binding = env2_1; var value3 = binding(env2_2[3]); var dispatch = value3.dispatch; Reflect.apply(dispatch, value3, [{type: 'GAME_PROFILE_GET_SHOP_COLLECTION_START', collectionId: a0}]); reducibleJoin3: while (true) { reduciblePort47: while (true) { exceptionLanding46: while (true) { try { binding = env2_0; } catch (error) { break exceptionLanding46; } break reducibleJoin3; } binding = env2_1; value = binding(env2_2[3]); dispatch = value.dispatch; Reflect.apply(dispatch, value, [{type: 'GAME_PROFILE_GET_SHOP_COLLECTION_ERROR', collectionId: a0}]); break reduciblePort47; } return undefined; } try { binding2 = env2_2; } catch (error) { break exceptionLanding46; } try { property = binding2[4]; } catch (error) { break exceptionLanding46; } try { value4 = binding(property); } catch (error) { break exceptionLanding46; } try { httpGetWithCountryCodeQuery = value4.httpGetWithCountryCodeQuery; } catch (error) { break exceptionLanding46; } try { object2 = {}; } catch (error) { break exceptionLanding46; } try { binding = env2_5; } catch (error) { break exceptionLanding46; } try { STOREFRONT_COLLECTION_WITH_PRODUCTS = binding.STOREFRONT_COLLECTION_WITH_PRODUCTS; } catch (error) { break exceptionLanding46; } try { value5 = Reflect.apply(STOREFRONT_COLLECTION_WITH_PRODUCTS, binding, [a0]); } catch (error) { break exceptionLanding46; } try { object2.url = value5; } catch (error) { break exceptionLanding46; } try { object = {}; } catch (error) { break exceptionLanding46; } try { binding = env2_4; } catch (error) { break exceptionLanding46; } try { locale = binding.locale; } catch (error) { break exceptionLanding46; } try { object.locale = locale; } catch (error) { break exceptionLanding46; } try { object2.query = object; } catch (error) { break exceptionLanding46; } try { object2.rejectWithError = false; } catch (error) { break exceptionLanding46; } try { object2.retries = 2; } catch (error) { break exceptionLanding46; } try { value6 = Reflect.apply(httpGetWithCountryCodeQuery, value4, [object2]); } catch (error) { break exceptionLanding46; } yield value6; try { value7 = undefined; value8 = false; } catch (error) { break exceptionLanding46; } if (value8) { return value7; } try { body = value7.body; } catch (error) { break exceptionLanding46; } try { products = body.products; } catch (error) { break exceptionLanding46; } try { flatMap = products.flatMap; } catch (error) { break exceptionLanding46; } try { } catch (error) { break exceptionLanding46; } try { closure = function(a0) { return a0.sku_ids; }; } catch (error) { break exceptionLanding46; } try { value9 = Reflect.apply(flatMap, products, [closure]); } catch (error) { break exceptionLanding46; } try { binding = env2_1; } catch (error) { break exceptionLanding46; } try { binding3 = env2_2; } catch (error) { break exceptionLanding46; } try { property = binding3[3]; } catch (error) { break exceptionLanding46; } try { value10 = binding(property); } catch (error) { break exceptionLanding46; } try { dispatch = value10.dispatch; } catch (error) { break exceptionLanding46; } try { object2 = {}; } catch (error) { break exceptionLanding46; } try { object2.type = 'GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS'; } catch (error) { break exceptionLanding46; } try { object2.collectionId = a0; } catch (error) { break exceptionLanding46; } try { object2.skuIds = value9; } catch (error) { break exceptionLanding46; } try { Reflect.apply(dispatch, value10, [object2]); } catch (error) { break exceptionLanding46; } } } function _fun78238() { // fn#78238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:642, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } function _fun78239() { // fn#78239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:690, offset: 0x01e22323, size: 36 bytes, params: 1, frame: 12 const env0_0 = Module00005(_fun78241); return _fun78243; function* _fun78241(a0) { // fn#78241, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:710, offset: 0x01e22352, size: 267 bytes, params: 2, frame: 20 var environment; var r6; var binding; var binding2; var property; var value3; var HTTP; var get; var object; var SIMILAR_GAMES; var value4; var value5; var value6; var value7; var body; var similar_games; var value8; var filter; var closure; var value9; var binding3; var value10; var dispatch; var error; var APIError; var prototype; var aPIError; if (true) { var env0_0 = a0; value = environment.__proto__.__proto__; try { binding = env2_0; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { binding2 = env2_2; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { property = binding2[5]; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { value3 = binding(property); } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { HTTP = value3.HTTP; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { get = HTTP.get; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { object = {}; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { binding = env2_5; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { SIMILAR_GAMES = binding.SIMILAR_GAMES; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { value4 = Reflect.apply(SIMILAR_GAMES, binding, [a0]); } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { object.url = value4; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { object.rejectWithError = false; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { value5 = Reflect.apply(get, HTTP, [object]); } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } yield value5; try { value6 = undefined; value7 = false; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } if (value7) { return value6; } try { body = value6.body; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { similar_games = body.similar_games; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { value8 = similar_games != null; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } if (value8) { r6 = similar_games; } else { try { object = []; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } r6 = object; } try { filter = r6.filter; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { closure = _fun78242; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { value9 = Reflect.apply(filter, r6, [closure]); } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { binding = env2_1; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { binding3 = env2_2; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { property = binding3[3]; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { value10 = binding(property); } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { dispatch = value10.dispatch; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { object = {}; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { object.type = 'GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS'; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { object.gameId = a0; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { object.games = value9; } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } try { Reflect.apply(dispatch, value10, [object]); } catch (error) { binding = env2_0; APIError = binding(env2_2[6]).APIError; prototype = APIError.prototype; value = Object.create(prototype, {constructor: {value: APIError}}); aPIError = new APIError(); value = aPIError instanceof Object ? aPIError : value; throw value; } } function _fun78242(a0) { // fn#78242, offset: 0x00ce1772, size: 16 bytes, params: 2, frame: 2 return a0 !== env0_0; } } function _fun78243() { // fn#78243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:994, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } function _fun78244() { // fn#78244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:1042, offset: 0x01e2245d, size: 36 bytes, params: 1, frame: 12 const env0_0 = Module00005(_fun78246); return _fun78247; function* _fun78246(a0, a1) { // fn#78246, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:1062, offset: 0x01e2248c, size: 402 bytes, params: 3, frame: 25 var object2; var limit; var r12; var r9; var value5; var value6; var binding2; var property; var value7; var HTTP; var get; var object; var GAME_ANNOUNCEMENTS; var value8; var value9; var value10; var value11; var body; var binding3; var value12; var value13; var toAnnouncementMessages; var messages; var value14; var channel_id; var value15; var guild_id; var value16; var error; var value17; if (false) { return undefined; } value = undefined; let binding = env2_1; const value4 = binding(env2_2[3]); let dispatch = value4.dispatch; Reflect.apply(dispatch, value4, [{type: 'GAME_PROFILE_GET_ANNOUNCEMENTS_START', gameId: a0}]); reducibleJoin3: while (true) { reduciblePort67: while (true) { exceptionLanding66: while (true) { try { object2 = {}; } catch (error) { break exceptionLanding66; } break reducibleJoin3; } binding = env2_1; value17 = binding(env2_2[3]); dispatch = value17.dispatch; Reflect.apply(dispatch, value17, [{type: 'GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR', gameId: a0}]); break reduciblePort67; } return value; } try { value5 = a1 == null; } catch (error) { break exceptionLanding66; } reducibleJoin8: while (true) { if (value5) { limit = value; break reducibleJoin8; } try { limit = a1.limit; } catch (error) { break exceptionLanding66; } break reducibleJoin8; } try { value6 = limit == null; } catch (error) { break exceptionLanding66; } reducibleJoin12: while (true) { if (value6) { break reducibleJoin12; } try { limit = a1.limit; } catch (error) { break exceptionLanding66; } try { object2.limit = limit; } catch (error) { break exceptionLanding66; } break reducibleJoin12; } try { binding = env2_0; } catch (error) { break exceptionLanding66; } try { binding2 = env2_2; } catch (error) { break exceptionLanding66; } try { property = binding2[5]; } catch (error) { break exceptionLanding66; } try { value7 = binding(property); } catch (error) { break exceptionLanding66; } try { HTTP = value7.HTTP; } catch (error) { break exceptionLanding66; } try { get = HTTP.get; } catch (error) { break exceptionLanding66; } try { object = {}; } catch (error) { break exceptionLanding66; } try { binding = env2_5; } catch (error) { break exceptionLanding66; } try { GAME_ANNOUNCEMENTS = binding.GAME_ANNOUNCEMENTS; } catch (error) { break exceptionLanding66; } try { value8 = Reflect.apply(GAME_ANNOUNCEMENTS, binding, [a0]); } catch (error) { break exceptionLanding66; } try { object.url = value8; } catch (error) { break exceptionLanding66; } try { object.query = object2; } catch (error) { break exceptionLanding66; } try { object.rejectWithError = false; } catch (error) { break exceptionLanding66; } try { value9 = Reflect.apply(get, HTTP, [object]); } catch (error) { break exceptionLanding66; } yield value9; try { value10 = undefined; value11 = false; } catch (error) { break exceptionLanding66; } if (value11) { return value10; } try { body = value10.body; } catch (error) { break exceptionLanding66; } try { binding = env2_1; } catch (error) { break exceptionLanding66; } try { binding3 = env2_2; } catch (error) { break exceptionLanding66; } try { property = binding3[3]; } catch (error) { break exceptionLanding66; } try { value12 = binding(property); } catch (error) { break exceptionLanding66; } try { dispatch = value12.dispatch; } catch (error) { break exceptionLanding66; } try { object2 = {}; } catch (error) { break exceptionLanding66; } try { object2.type = 'GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS'; } catch (error) { break exceptionLanding66; } try { object2.gameId = a0; } catch (error) { break exceptionLanding66; } try { binding = env2_0; } catch (error) { break exceptionLanding66; } try { property = binding3[7]; } catch (error) { break exceptionLanding66; } try { value13 = binding(property); } catch (error) { break exceptionLanding66; } try { toAnnouncementMessages = value13.toAnnouncementMessages; } catch (error) { break exceptionLanding66; } try { messages = body.messages; } catch (error) { break exceptionLanding66; } try { value14 = Reflect.apply(toAnnouncementMessages, value13, [messages]); } catch (error) { break exceptionLanding66; } try { object2.messages = value14; } catch (error) { break exceptionLanding66; } try { channel_id = body.channel_id; } catch (error) { break exceptionLanding66; } try { value15 = channel_id != null; } catch (error) { break exceptionLanding66; } reducibleJoin57: while (true) { if (value15) { r12 = channel_id; break reducibleJoin57; } r12 = value; break reducibleJoin57; } try { object2.channelId = r12; } catch (error) { break exceptionLanding66; } try { guild_id = body.guild_id; } catch (error) { break exceptionLanding66; } try { value16 = guild_id != null; } catch (error) { break exceptionLanding66; } reducibleJoin63: while (true) { if (value16) { r9 = guild_id; break reducibleJoin63; } r9 = value; break reducibleJoin63; } try { object2.guildId = r9; } catch (error) { break exceptionLanding66; } try { Reflect.apply(dispatch, value12, [object2]); } catch (error) { break exceptionLanding66; } return value; } function _fun78247() { // fn#78247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10203:1611, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } } global.__d(_fun78233, 10017, [5, 1949, 661, 694, 4141, 507, 4131, 10012, 2]) /* metro module 10017, dependencies: [5, 1949, 661, 694, 4141, 507, 4131, 10012, 2] */;