Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
38 lines
1.9 KiB
TypeScript
38 lines
1.9 KiB
TypeScript
// Module ID: 8803
|
|
// Function ID: 8804
|
|
// Name: GameProfileActionCreators
|
|
// Dependencies: [38, 4603, 8804, 1896, 573, 2]
|
|
|
|
// Module 8803 (GameProfileActionCreators)
|
|
import _modDef38 from "module_38" /* 38 */;
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4603 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/game_profile/GameProfileActionCreators.native.tsx");
|
|
|
|
export default {
|
|
openGameProfileModal(arg0) {
|
|
({ gameId, gameProfileModalChecks } = arg0);
|
|
({ source, sourceUserId, stackingBehavior } = arg0);
|
|
_modDef38(gameProfileModalChecks.shouldOpenGameProfile, "Passed a false value for [gameProfileModalChecks]. Are you using the useShouldOpenGameProfile hook correctly?");
|
|
_modDef38(gameProfileModalChecks.gameId === gameId, "Passed an unexpected [gameId]. Are you passing a different one than you passed to useShouldOpenGameProfileModal?");
|
|
const obj = ActionSheetActionCreatorsDefault;
|
|
obj.openLazy(asyncRequireImpl(8804, dependencyMap.paths), "game-profile-" + gameId, { gameId, source, sourceUserId }, stackingBehavior);
|
|
},
|
|
returnToGameProfile(gameId) {
|
|
gameId = gameId.gameId;
|
|
({ source, initialScrollOffset } = gameId);
|
|
DispatcherDefault.dispatch({ type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId });
|
|
const obj2 = ActionSheetActionCreatorsDefault;
|
|
obj2.openLazy(asyncRequireImpl(8804, dependencyMap.paths), "game-profile-" + gameId, { gameId, source, initialScrollOffset });
|
|
},
|
|
setGameProfilePendingReturn(arg0) {
|
|
({ gameId, channelId, initialScrollOffset } = arg0);
|
|
DispatcherDefault.dispatch({ type: "GAME_PROFILE_SET_PENDING_RETURN", gameId, channelId, initialScrollOffset });
|
|
},
|
|
clearGameProfilePendingReturn(id) {
|
|
DispatcherDefault.dispatch({ type: "GAME_PROFILE_CLEAR_PENDING_RETURN", gameId: id });
|
|
}
|
|
};
|