/* Metro module 9959; source: modules/game_profile/GameProfileActionCreators.native.tsx; dependencies: [44, 4080, 9960, 1962, 694, 2] */ import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun77958(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10145:6, offset: 0x01e13f1c, size: 150 bytes, params: 8, frame: 19 const env0_0 = require; const clearGameProfilePendingReturn2 = clearGameProfilePendingReturn; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {openGameProfileModal: openGameProfileModal, returnToGameProfile: returnToGameProfile, setGameProfilePendingReturn: setGameProfilePendingReturn, clearGameProfilePendingReturn: clearGameProfilePendingReturn2}; (FileImportTrackerModule).fileFinishedImporting('modules/game_profile/GameProfileActionCreators.native.tsx'); exports.default = object; function clearGameProfilePendingReturn(a0) { // fn#77959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10145:43, offset: 0x01e13fb2, size: 57 bytes, params: 2, frame: 13 (Dispatcher).dispatch({type: 'GAME_PROFILE_CLEAR_PENDING_RETURN', gameId: a0}); } function openGameProfileModal({gameId, gameProfileModalChecks, source, sourceUserId}) { // fn#77960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10145:232, offset: 0x01e13feb, size: 200 bytes, params: 2, frame: 22 importDefault(dependencyMap[0])(gameProfileModalChecks.shouldOpenGameProfile, 'Passed a false value for [gameProfileModalChecks]. Are you using the useShouldOpenGameProfile hook correctly?'); importDefault(dependencyMap[0])(gameProfileModalChecks.gameId === gameId, 'Passed an unexpected [gameId]. Are you passing a different one than you passed to useShouldOpenGameProfileModal?'); const defaultImport3 = importDefault(dependencyMap[1]); const openLazy = defaultImport3.openLazy; let value = require(dependencyMap[3]); value = value(dependencyMap[2], dependencyMap.paths); Reflect.apply(openLazy, defaultImport3, [value, 'game-profile-' + gameId, {gameId: gameId, source: source, sourceUserId: sourceUserId}]); } function returnToGameProfile({gameId, source, initialScrollOffset}) { // fn#77961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10145:721, offset: 0x01e140b3, size: 143 bytes, params: 2, frame: 19 clearGameProfilePendingReturn(gameId); const defaultImport = importDefault(dependencyMap[1]); const openLazy = defaultImport.openLazy; let value = require(dependencyMap[3]); value = value(dependencyMap[2], dependencyMap.paths); Reflect.apply(openLazy, defaultImport, [value, 'game-profile-' + gameId, {gameId: gameId, source: source, initialScrollOffset: initialScrollOffset}]); } function setGameProfilePendingReturn({gameId, channelId, initialScrollOffset}) { // fn#77962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10145:957, offset: 0x01e14142, size: 83 bytes, params: 2, frame: 16 Dispatcher.dispatch({type: 'GAME_PROFILE_SET_PENDING_RETURN', gameId: gameId, channelId: channelId, initialScrollOffset: initialScrollOffset}); } } global.__d(_fun77958, 9959, [44, 4080, 9960, 1962, 694, 2]) /* metro module 9959, dependencies: [44, 4080, 9960, 1962, 694, 2] */;