decord/source/modules/verification/native/components/ConfirmEmailChangeCode.tsx
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

105 lines
3.4 KiB
TypeScript

// Module ID: 6714
// Function ID: 6715
// Name: ConfirmEmailChangeCode
// Dependencies: [5, 19, 5711, 21, 1484, 1094, 6715, 6712, 1115, 2]
// Exports: default
// Module 6714 (ConfirmEmailChangeCode)
import ConstantsIOS from "ConstantsIOS" /* 1094 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
import noop from "module_19" /* 19 */;
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");
export default function ConfirmEmailChangeCode(isChangeEmail) {
isChangeEmail = isChangeEmail.isChangeEmail;
const navigation = isChangeEmail(1484).useNavigation();
const items = [isChangeEmail, navigation];
const callback = noop.useCallback((arg0) => {
let tmp = arg0;
if (arg0 == null) {
tmp = null;
}
setEmailToken(tmp);
const push = navigation.push;
const VerificationModalScenes = ConstantsIOS.VerificationModalScenes;
if (isChangeEmail) {
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;
});
obj2.onFormSubmit = function() {
const self = this;
const apply = isChangeEmail.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};
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");
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj3 = { value, done: true };
return obj3;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
v3 = 2;
if (0 === c1) {
if (arg0 === 1) {
v3 = 3;
throw value;
} else if (arg0 === 2) {
v3 = 3;
const obj4 = { value, done: true };
return obj4;
} else {
c1 = 1;
v3 = 1;
const obj5 = { value: v3(dependencyMap[7]).sendConfirmationCode(), done: false };
return obj5;
}
} else if (arg0 === 1) {
v3 = 3;
throw value;
} else if (arg0 === 2) {
v3 = 3;
const obj = { value, done: true };
return obj;
} else {
v3 = 3;
return { value: "HermesInternal", done: null };
}
} catch (tmp7) {
v3 = tmp;
throw tmp7;
}
}
});
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 });
};