2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 17123
|
|
|
|
|
// Function ID: 17124
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useHandleOAuthNavigation
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [19, 1074, 9704, 4839, 9708, 1896, 1109, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 17123 (useHandleOAuthNavigation)
|
2026-09-10 05:38:07 +00:00
|
|
|
import ComponentDispatchUtils from "ComponentDispatchUtils" /* 1109 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const ComponentActions = fn(1074).ComponentActions;
|
2026-09-12 13:45:10 +00:00
|
|
|
let closure_5 = fn(9704).OAUTH2_AUTHORIZE_MODAL_KEY;
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/native/useHandleOAuthNavigation.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useHandleOAuthNavigation() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const effect = noop.useEffect(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
function showOAuth2Modal(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_1_1(paths[3]).popWithKey(closure_1_5);
|
|
|
|
|
const obj = closure_1_1(paths[3]);
|
|
|
|
|
const obj3 = {};
|
|
|
|
|
const obj2 = closure_1_1(paths[3]);
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj3.dismissOAuthModal = function dismissOAuthModal() {
|
|
|
|
|
closure_1_1(paths[3]).popWithKey(closure_1_5);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj3, closure_1_5);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
let ComponentDispatch = showOAuth2Modal(1109).ComponentDispatch;
|
2026-07-29 08:29:29 +00:00
|
|
|
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
2026-07-20 16:05:17 +00:00
|
|
|
return () => {
|
2026-09-10 05:38:07 +00:00
|
|
|
const ComponentDispatch = ComponentDispatchUtils.ComponentDispatch;
|
|
|
|
|
ComponentDispatch.unsubscribe(ComponentActions.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
};
|