decord/source/actions/native/EmailVerificationModalActionCreators.tsx

35 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 5635
// Function ID: 5636
// Name: EmailVerificationModalActionCreators
// Dependencies: [1074, 1242, 4777, 5636, 1896, 573, 2]
2026-07-20 16:05:17 +00:00
// Module 5635 (EmailVerificationModalActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4777 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
2026-07-29 08:29:29 +00:00
const EMAIL_VERIFICATION_MODAL_KEY = "EMAIL_VERIFICATION_MODAL_KEY";
const result = size.fileFinishedImporting("actions/native/EmailVerificationModalActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
open() {
let flag = arg0;
if (arg0 === undefined) {
flag = false;
}
if (flag) {
AnalyticsUtilsDefault.track(AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_ATTEMPTED);
2026-07-20 16:05:17 +00:00
}
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(5636, dependencyMap.paths), { isChangeEmail: flag }, EMAIL_VERIFICATION_MODAL_KEY);
2026-07-20 16:05:17 +00:00
},
close() {
DispatcherDefault.wait(() => {
ModalActionCreatorsDefault.popWithKey(EMAIL_VERIFICATION_MODAL_KEY);
2026-07-20 16:05:17 +00:00
});
}
};