/* Metro module 9965; source: modules/game_profile/GameProfileStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun78015(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:6, offset: 0x01e160e0, size: 447 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_5 = {}; const env0_6 = {}; const env0_7 = {}; const env0_8 = {}; const env0_9 = {}; const env0_10 = {}; const env0_11 = {}; const env0_12 = {}; const Store = (Flux).Store; let value = _fun78019(Store); value.displayName = 'GameProfileStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS: GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS, GAME_PROFILE_GET_SIMILAR_GAMES_ERROR: GAME_PROFILE_GET_SIMILAR_GAMES_ERROR, GAME_PROFILE_GET_SHOP_COLLECTION_START: GAME_PROFILE_GET_SHOP_COLLECTION_START, GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS: GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS, GAME_PROFILE_GET_SHOP_COLLECTION_ERROR: GAME_PROFILE_GET_SHOP_COLLECTION_ERROR, GAME_PROFILE_GET_ANNOUNCEMENTS_START: GAME_PROFILE_GET_ANNOUNCEMENTS_START, GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS: GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS, GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR: GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR, GAME_PROFILE_SET_PENDING_RETURN: GAME_PROFILE_SET_PENDING_RETURN, GAME_PROFILE_CLEAR_PENDING_RETURN: GAME_PROFILE_CLEAR_PENDING_RETURN}); (FileImportTrackerModule).fileFinishedImporting('modules/game_profile/GameProfileStore.tsx'); exports.default = value; function _isNativeReflectConstruct_78016() { // fn#78016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:148, offset: 0x01e1629f, size: 98 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_78016_isNativeReflectConstruct = function() { return !!result; })(); } function _fun78019(a0) { // fn#78019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:398, offset: 0x01e16301, size: 286 bytes, params: 2, frame: 16 const GameProfileStore2 = GameProfileStore; Inherits(GameProfileStore2, a0); return CreateClass(GameProfileStore2, [{key: 'getSimilarGames', value: value_78021}, {key: 'getSimilarGamesError', value: value_78022}, {key: 'getShopCollectionSkuIds', value: value_78023}, {key: 'hasShopCollectionBeenFetched', value: value_78024}, {key: 'isShopCollectionFetching', value: value_78025}, {key: 'getAnnouncements', value: value_78026}, {key: 'hasAnnouncementsBeenFetched', value: value_78027}, {key: 'isAnnouncementsFetching', value: value_78028}, {key: 'getPendingReturn', value: value_78029}]); function GameProfileStore() { // fn#78020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:410, offset: 0x0108d31d, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_0(this, GameProfileStore); const value3 = env1_3(GameProfileStore); return env1_2(this, _isNativeReflectConstruct_78016() ? global.Reflect.construct(value3, arguments, env1_3(this).constructor) : value3.apply(this, arguments)); } function value_78021(a0) { // fn#78021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:713, offset: 0x01e1641f, size: 16 bytes, params: 2, frame: 2 return env1_5[a0]; } function value_78022(a0) { // fn#78022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:773, offset: 0x00fbe09c, size: 16 bytes, params: 2, frame: 2 return env1_6[a0]; } function value_78023(a0) { // fn#78023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:836, offset: 0x0103ab8e, size: 16 bytes, params: 2, frame: 2 return env1_7[a0]; } function value_78024(a0) { // fn#78024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:904, offset: 0x01e1642f, size: 28 bytes, params: 2, frame: 3 const value = environment.__proto__; const property = env1_8[a0]; return property != null && property; } function value_78025(a0) { // fn#78025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:987, offset: 0x01e1644b, size: 28 bytes, params: 2, frame: 3 const value = environment.__proto__; const property = env1_9[a0]; return property != null && property; } function value_78026(a0) { // fn#78026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1062, offset: 0x010353e1, size: 16 bytes, params: 2, frame: 2 return env1_10[a0]; } function value_78027(a0) { // fn#78027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1129, offset: 0x01e16467, size: 28 bytes, params: 2, frame: 3 const value = environment.__proto__; const property = env1_11[a0]; return property != null && property; } function value_78028(a0) { // fn#78028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1211, offset: 0x01e16483, size: 28 bytes, params: 2, frame: 3 const value = environment.__proto__; const property = env1_12[a0]; return property != null && property; } function value_78029() { // fn#78029, offset: 0x00e2f9d5, size: 9 bytes, params: 1, frame: 1 return env1_13; } } function GAME_PROFILE_GET_SIMILAR_GAMES_SUCCESS({gameId, games}) { // fn#78030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1419, offset: 0x01e1649f, size: 30 bytes, params: 2, frame: 3 env0_5[gameId] = games; } function GAME_PROFILE_GET_SIMILAR_GAMES_ERROR({gameId, error}) { // fn#78031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1522, offset: 0x01e164bd, size: 29 bytes, params: 2, frame: 3 env0_6[gameId] = error; } function GAME_PROFILE_GET_SHOP_COLLECTION_START({collectionId}) { // fn#78032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1625, offset: 0x01e164da, size: 26 bytes, params: 2, frame: 3 env0_9[collectionId] = true; } function GAME_PROFILE_GET_SHOP_COLLECTION_SUCCESS({collectionId, skuIds}) { // fn#78033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1731, offset: 0x01e164f4, size: 50 bytes, params: 2, frame: 4 env0_7[collectionId] = skuIds; env0_8[collectionId] = true; env0_9[collectionId] = false; } function GAME_PROFILE_GET_SHOP_COLLECTION_ERROR({collectionId}) { // fn#78034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1861, offset: 0x01e16526, size: 36 bytes, params: 2, frame: 4 env0_8[collectionId] = true; env0_9[collectionId] = false; } function GAME_PROFILE_GET_ANNOUNCEMENTS_START({gameId}) { // fn#78035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:1971, offset: 0x01e1654a, size: 26 bytes, params: 2, frame: 3 env0_12[gameId] = true; } function GAME_PROFILE_GET_ANNOUNCEMENTS_SUCCESS({gameId, messages, channelId, guildId}) { // fn#78036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2068, offset: 0x01e16564, size: 75 bytes, params: 2, frame: 7 env0_10[gameId] = {messages: messages, channelId: channelId, guildId: guildId}; env0_11[gameId] = true; env0_12[gameId] = false; } function GAME_PROFILE_GET_ANNOUNCEMENTS_ERROR({gameId}) { // fn#78037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2246, offset: 0x01e165af, size: 36 bytes, params: 2, frame: 4 env0_11[gameId] = true; env0_12[gameId] = false; } function GAME_PROFILE_SET_PENDING_RETURN({gameId, channelId, initialScrollOffset}) { // fn#78038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2344, offset: 0x01e165d3, size: 121 bytes, params: 2, frame: 9 var object3; var object; let binding = object3; const gameId = binding?.gameId; if (gameId !== gameId) { object3 = {gameId: gameId, channelId: channelId, initialScrollOffset: initialScrollOffset}; } else { binding = object3; var channelId = binding?.channelId; if (channelId !== channelId) { object3 = {gameId: gameId, channelId: channelId, initialScrollOffset: initialScrollOffset}; return undefined; } binding = object3; var initialScrollOffset = binding?.initialScrollOffset; if (initialScrollOffset === initialScrollOffset) { return false; } object = {gameId: gameId, channelId: channelId, initialScrollOffset: initialScrollOffset}; } } function GAME_PROFILE_CLEAR_PENDING_RETURN({gameId}) { // fn#78039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10151:2646, offset: 0x01e1664c, size: 48 bytes, params: 2, frame: 4 if (env0_13 == null) { return false; } if (env0_13.gameId !== gameId) { return false; } } } global.__d(_fun78015, 9965, [6, 7, 15, 17, 18, 566, 694, 2]) /* metro module 9965, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;