/* Metro module 9953; source: modules/game_profile/hooks/useOpenGameProfileModal.tsx; dependencies: [9954, 9959, 2] */ function _fun77942(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10139:6, offset: 0x01e1348e, size: 99 bytes, params: 8, frame: 17 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_profile/hooks/useOpenGameProfileModal.tsx'); exports.default = useOpenGameProfileModal; } function useOpenGameProfileModal(a0) { // fn#77943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10139:193, offset: 0x01e134f1, size: 112 bytes, params: 2, frame: 14 let value = a1; const env0_0 = a0; const value2 = undefined; const env0_1 = (value !== value2 ? value : {}).onOpened; value = (importDefault(9954) /* metro dependency 9954: useShouldOpenGameProfileModal */)(a0); return value.shouldOpenGameProfile && value.gameId != null ? _fun77944 : value2; } function _fun77944(a0) { // fn#77944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10139:313, offset: 0x01e13561, size: 129 bytes, params: 2, frame: 17 if (a0 != null) { a0.stopPropagation(); } if (a0 != null) { a0.preventDefault(); } let value = environment.__proto__; value = importDefault(9959) /* metro dependency 9959: GameProfileActionCreatorsNative */; const openGameProfileModal = value.openGameProfileModal; const object2 = {}; copyDataProperties(object2, env0_0, undefined); object2['gameId'] = gameId; object2['gameProfileModalChecks'] = env0_2; Reflect.apply(openGameProfileModal, value, [object2]); if (onOpened != null) { onOpened(); } }