decord/source/modules/verification/native/components/ConfirmEmailChangeCode.tsx

106 lines
3.4 KiB
TypeScript
Raw Normal View History

// Module ID: 6714
// Function ID: 6715
2026-07-20 16:05:17 +00:00
// Name: ConfirmEmailChangeCode
// Dependencies: [5, 19, 5711, 21, 1484, 1094, 6715, 6712, 1115, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 6714 (ConfirmEmailChangeCode)
import ConstantsIOS from "ConstantsIOS" /* 1094 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const setEmailToken = fn(5711).setEmailToken;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/verification/native/components/ConfirmEmailChangeCode.tsx");
2026-07-20 16:05:17 +00:00
export default function ConfirmEmailChangeCode(isChangeEmail) {
isChangeEmail = isChangeEmail.isChangeEmail;
const navigation = isChangeEmail(1484).useNavigation();
2026-07-20 16:05:17 +00:00
const items = [isChangeEmail, navigation];
const callback = noop.useCallback((arg0) => {
2026-07-29 08:29:29 +00:00
let tmp = arg0;
if (arg0 == null) {
tmp = null;
2026-07-20 16:05:17 +00:00
}
setEmailToken(tmp);
2026-07-20 16:05:17 +00:00
const push = navigation.push;
const VerificationModalScenes = ConstantsIOS.VerificationModalScenes;
if (isChangeEmail) {
2026-07-20 16:05:17 +00:00
push(VerificationModalScenes.CHANGE_EMAIL_COLLECT_REASONS);
} else {
push(VerificationModalScenes.ENTER_EMAIL);
}
}, items);
const obj2 = { onFormSubmit: null, onSuccess: null, onResend: null, headerText: null, confirmButtonText: null };
let obj = isChangeEmail(1484);
closure_129_0 = asyncGeneratorStep(async (arg0) => {
await closure_0(c2[7]).confirmEmailChange(closure_0);
return arg1;
2026-07-29 08:29:29 +00:00
});
obj2.onFormSubmit = function() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = isChangeEmail.apply;
2026-07-29 08:29:29 +00:00
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};
obj2.onSuccess = callback;
obj2.onResend = asyncGeneratorStep(async (arg0, value) => {
if (v3 === 2) {
v3 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
2026-07-29 08:29:29 +00:00
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
const obj3 = { value, done: true };
return obj3;
2026-07-29 08:29:29 +00:00
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
v3 = 2;
2026-07-29 08:29:29 +00:00
if (0 === c1) {
if (arg0 === 1) {
v3 = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
v3 = 3;
const obj4 = { value, done: true };
return obj4;
2026-07-29 08:29:29 +00:00
} else {
c1 = 1;
v3 = 1;
const obj5 = { value: v3(dependencyMap[7]).sendConfirmationCode(), done: false };
return obj5;
2026-07-29 08:29:29 +00:00
}
} else if (arg0 === 1) {
v3 = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
v3 = 3;
const obj = { value, done: true };
2026-07-29 08:29:29 +00:00
return obj;
} else {
v3 = 3;
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp7) {
v3 = tmp;
2026-07-29 08:29:29 +00:00
throw tmp7;
}
}
2026-07-23 10:11:24 +00:00
});
const intl = isChangeEmail(1115).intl;
obj2.headerText = intl.string(isChangeEmail(1115).t["2x/2Uo"]);
const intl2 = isChangeEmail(1115).intl;
obj2.confirmButtonText = intl2.string(isChangeEmail(1115).t.PDTjLN);
return jsx(navigation(6715), { onFormSubmit: null, onSuccess: null, onResend: null, headerText: null, confirmButtonText: null });
2026-07-20 16:05:17 +00:00
};