34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
// Module ID: 5791
|
|
// Function ID: 5792
|
|
// Name: EmailVerificationModalActionCreators
|
|
// Dependencies: [1074, 1241, 4925, 5792, 1897, 573, 2]
|
|
|
|
// Module 5791 (EmailVerificationModalActionCreators)
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import Constants from "Constants" /* 1074 */;
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
|
|
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4925 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
|
const EMAIL_VERIFICATION_MODAL_KEY = "EMAIL_VERIFICATION_MODAL_KEY";
|
|
const result = size.fileFinishedImporting("actions/native/EmailVerificationModalActionCreators.tsx");
|
|
|
|
export default {
|
|
open() {
|
|
let flag = arg0;
|
|
if (arg0 === undefined) {
|
|
flag = false;
|
|
}
|
|
if (flag) {
|
|
AnalyticsUtilsDefault.track(AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_ATTEMPTED);
|
|
}
|
|
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(5792, dependencyMap.paths), { isChangeEmail: flag }, EMAIL_VERIFICATION_MODAL_KEY);
|
|
},
|
|
close() {
|
|
DispatcherDefault.wait(() => {
|
|
ModalActionCreatorsDefault.popWithKey(EMAIL_VERIFICATION_MODAL_KEY);
|
|
});
|
|
}
|
|
};
|