52 lines
3.1 KiB
TypeScript
52 lines
3.1 KiB
TypeScript
/* Metro module 15367; source: modules/activities/utils/native/useHandleOAuthNavigation.tsx; dependencies: [31, 661, 8871, 5080, 10206, 1962, 1239, 2] */
|
|
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});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).ComponentActions;
|
|
const env0_5 = (require(8871) /* metro dependency 8871: Constants */).OAUTH2_AUTHORIZE_MODAL_KEY;
|
|
(require(2) /* metro dependency 2 */).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
|
|
env0_3.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 closure = showOAuth2Modal_117475;
|
|
let ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
|
const subscribe = ComponentDispatch.subscribe;
|
|
let SHOW_OAUTH2_MODAL = ComponentActions.SHOW_OAUTH2_MODAL;
|
|
Reflect.apply(subscribe, ComponentDispatch, [SHOW_OAUTH2_MODAL, closure]);
|
|
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 object2 = {};
|
|
copyDataProperties(object2, a0, undefined);
|
|
object2['dismissOAuthModal'] = function() {
|
|
importDefault(dependencyMap[3]).popWithKey(OAUTH2_AUTHORIZE_MODAL_KEY);
|
|
};
|
|
Reflect.apply(pushLazy, defaultImport2, [value, object2, OAUTH2_AUTHORIZE_MODAL_KEY]);
|
|
}
|
|
|