2026-08-05 07:35:12 +00:00
|
|
|
// Module ID: 15939
|
|
|
|
|
// Function ID: 15940
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useHandleOAuthNavigation
|
2026-08-05 07:35:12 +00:00
|
|
|
// Dependencies: [19, 676, 10622, 4460, 10824, 1959, 1231, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-05 07:35:12 +00:00
|
|
|
// Module 15939 (useHandleOAuthNavigation)
|
2026-07-29 08:29:29 +00:00
|
|
|
import noop from "noop";
|
2026-07-23 10:11:24 +00:00
|
|
|
import { ComponentActions } from "ME";
|
|
|
|
|
import { OAUTH2_AUTHORIZE_MODAL_KEY as closure_5 } from "OAUTH2_AUTHORIZE_MODAL_KEY";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("OAUTH2_AUTHORIZE_MODAL_KEY").fileFinishedImporting("modules/activities/utils/native/useHandleOAuthNavigation.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useHandleOAuthNavigation() {
|
|
|
|
|
const effect = React.useEffect(() => {
|
|
|
|
|
function showOAuth2Modal(arg0) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = callback(paths[3]);
|
|
|
|
|
obj.popWithKey(closure_5);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = {};
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj2 = callback(paths[3]);
|
2026-07-20 16:05:17 +00:00
|
|
|
const merged = Object.assign(arg0);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj.dismissOAuthModal = function dismissOAuthModal() {
|
|
|
|
|
callback(table[3]).popWithKey(closure_5);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-07-29 08:29:29 +00:00
|
|
|
obj2.pushLazy(showOAuth2Modal(paths[5])(paths[4], paths.paths), obj, closure_5);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
let ComponentDispatch = showOAuth2Modal(table[6]).ComponentDispatch;
|
|
|
|
|
const subscription = ComponentDispatch.subscribe(SHOW_OAUTH2_MODAL.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
2026-07-20 16:05:17 +00:00
|
|
|
return () => {
|
2026-07-29 08:29:29 +00:00
|
|
|
const ComponentDispatch = showOAuth2Modal(outer1_2[6]).ComponentDispatch;
|
|
|
|
|
ComponentDispatch.unsubscribe(outer1_4.SHOW_OAUTH2_MODAL, showOAuth2Modal);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
};
|