/* Metro module 15367; source: modules/activities/utils/native/useHandleOAuthNavigation.tsx; dependencies: [31, 661, 8871, 5080, 10206, 1962, 1239, 2] */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */ import * as ComponentDispatchUtilsModule from '../../../../utils/ComponentDispatchUtils.tsx'; /* Metro dependency 1239 */ import * as ConstantsModule2 from '../../../oauth2/native/Constants.tsx'; /* Metro dependency 8871 */ function _fun117472(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15564:6, offset: 0x024b3e41, size: 165 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/activities/utils/native/useHandleOAuthNavigation.tsx'); exports.default = useHandleOAuthNavigation; function useHandleOAuthNavigation() { // fn#117473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15564:274, offset: 0x024b3ee6, size: 35 bytes, params: 1, frame: 13 ReactModule.useEffect(function() { var closure = _fun117475; var env0_0 = closure; var ComponentDispatch = require(dependencyMap[6]).ComponentDispatch; ComponentDispatch.subscribe(ComponentActions.SHOW_OAUTH2_MODAL, closure); return _fun117477; }, []); function _fun117474() { // fn#117474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15564:323, offset: 0x024b3f09, size: 75 bytes, params: 1, frame: 15 const showOAuth2Modal_1174752 = showOAuth2Modal_117475; let ComponentDispatch = (ComponentDispatchUtilsModule).ComponentDispatch; const subscribe = ComponentDispatch.subscribe; let SHOW_OAUTH2_MODAL = ComponentActions.SHOW_OAUTH2_MODAL; Reflect.apply(subscribe, ComponentDispatch, [SHOW_OAUTH2_MODAL, showOAuth2Modal_1174752]); return function() { var ComponentDispatch = require(dependencyMap[6]).ComponentDispatch; var SHOW_OAUTH2_MODAL = ComponentActions.SHOW_OAUTH2_MODAL; ComponentDispatch.unsubscribe(SHOW_OAUTH2_MODAL, showOAuth2Modal_117475); }; function showOAuth2Modal_117475(a0) { // fn#117475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15564:328, offset: 0x024b3f54, size: 128 bytes, params: 2, frame: 18 var environment; let value = environment.__proto__.__proto__; importDefault(dependencyMap[3]).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY); const defaultImport2 = importDefault(dependencyMap[3]); const pushLazy = defaultImport2.pushLazy; value = require(dependencyMap[5]); value = value(dependencyMap[4], dependencyMap.paths); const object = {}; copyDataProperties(object, a0, undefined); object['dismissOAuthModal'] = function() { importDefault(dependencyMap[3]).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY); }; Reflect.apply(pushLazy, defaultImport2, [value, object, OAUTH2_AUTHORIZE_MODAL_KEY]); } function _fun117477() { // fn#117477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15564:553, offset: 0x024b3ffe, size: 62 bytes, params: 1, frame: 14 const ComponentDispatch = (ComponentDispatchUtilsModule).ComponentDispatch; const unsubscribe = ComponentDispatch.unsubscribe; const SHOW_OAUTH2_MODAL = ComponentActions.SHOW_OAUTH2_MODAL; Reflect.apply(unsubscribe, ComponentDispatch, [SHOW_OAUTH2_MODAL, showOAuth2Modal_117475]); } } } } global.__d(_fun117472, 15367, [31, 661, 8871, 5080, 10206, 1962, 1239, 2]) /* metro module 15367, dependencies: [31, 661, 8871, 5080, 10206, 1962, 1239, 2] */;