/* Metro module 9326; source: modules/video_calls/native/useOnConnectToConsole.tsx; dependencies: [31, 661, 3968, 1365, 9327, 9355, 9421, 2] */ function _fun72829(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9512:6, offset: 0x01d551f3, size: 170 bytes, params: 8, frame: 19 const env0_0 = require; const closure = onConnectToConsole; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importAll(31) /* metro dependency 31 */; const constantsModule = require(661) /* metro dependency 661: Constants */; const env0_4 = constantsModule.AnalyticsLocations; const env0_5 = constantsModule.PlatformTypes; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_calls/native/useOnConnectToConsole.tsx'); exports.onConnectToConsole = closure; exports.useOnConnectToConsole = useOnConnectToConsole; } function onConnectToConsole(a0, a1) { // fn#72830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9512:157, offset: 0x01d5529d, size: 280 bytes, params: 3, frame: 17 var beginConsoleTransfer; var type; var defaultImport; var defaultImport2; var value; const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */; const UNSAFE_markDismissibleContentAsDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_markDismissibleContentAsDismissed; const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent; const DONUT_MOBILE_NUX = DismissibleContent.DONUT_MOBILE_NUX; Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, dismissibleContentUnsafeUtilsModule, [DONUT_MOBILE_NUX]); if (a1.twoWayLink) { if (a1.revoked) { type = a1.type; if (PlatformTypes.XBOX === type) { defaultImport2 = importDefault(9327) /* metro dependency 9327: XboxLinkModalActionCreators */; return defaultImport2.showModal([AnalyticsLocations.CHANNEL_CALL]); } if (PlatformTypes.PLAYSTATION === type) { defaultImport = importDefault(9355) /* metro dependency 9355: PlayStationLinkModalActionCreators */; return defaultImport.showModal([AnalyticsLocations.CHANNEL_CALL], a1.type); } if (PlatformTypes.PLAYSTATION_STAGING === type) { defaultImport = importDefault(9355) /* metro dependency 9355: PlayStationLinkModalActionCreators */; return defaultImport.showModal([AnalyticsLocations.CHANNEL_CALL], a1.type); } return undefined; } value = require(9421) /* metro dependency 9421: beginConsoleTransfer */; beginConsoleTransfer = value.beginConsoleTransfer; type = a1.type; Reflect.apply(beginConsoleTransfer, value, [a0, type]); } else { type = a1.type; if (PlatformTypes.XBOX === type) { defaultImport2 = importDefault(9327) /* metro dependency 9327: XboxLinkModalActionCreators */; return defaultImport2.showModal([AnalyticsLocations.CHANNEL_CALL]); } if (PlatformTypes.PLAYSTATION === type) { defaultImport = importDefault(9355) /* metro dependency 9355: PlayStationLinkModalActionCreators */; return defaultImport.showModal([AnalyticsLocations.CHANNEL_CALL], a1.type); } if (PlatformTypes.PLAYSTATION_STAGING === type) { defaultImport = importDefault(9355) /* metro dependency 9355: PlayStationLinkModalActionCreators */; return defaultImport.showModal([AnalyticsLocations.CHANNEL_CALL], a1.type); } } } function useOnConnectToConsole(a0, a1) { // fn#72831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9512:682, offset: 0x01d553b5, size: 55 bytes, params: 3, frame: 15 const env0_0 = a0; const env0_1 = a1; return env0_3.useCallback(_fun72832, [a0, a1]); } function _fun72832() { // fn#72832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9512:740, offset: 0x01d553ec, size: 28 bytes, params: 1, frame: 13 onConnectToConsole(env0_0, require); }