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

111 lines
4.3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9224
// Function ID: 72166
2026-07-20 16:05:17 +00:00
// Name: ResendEmail
2026-07-24 07:16:23 +00:00
// Dependencies: [57, 31, 27, 1342, 1849, 653, 33, 4130, 1456, 566, 44, 9225, 9217, 5807, 4126, 1212, 4543, 5588, 3831, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 9224 (ResendEmail)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import { View } from "get ActivityIndicator";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_7 from "_isNativeReflectConstruct";
import { VerificationModalScenes } from "ME";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_10;
let closure_9;
const require = arg1;
({ jsx: closure_9, jsxs: closure_10 } = jsxProd);
let closure_11 = _createForOfIteratorHelperLoose.createStyles({ container: { flex: 1, padding: 16, justifyContent: "center", alignItems: "center" }, title: { marginTop: 16, textAlign: "center" }, body: { marginTop: 8, lineHeight: 18, textAlign: "center" }, resend: { marginTop: 16, width: "100%" }, change: { marginTop: 8, width: "100%" } });
const result = require("get ActivityIndicator").fileFinishedImporting("modules/verification/native/components/ResendEmail.tsx");
2026-07-20 16:05:17 +00:00
export default function ResendEmail() {
2026-07-23 10:11:24 +00:00
let dependencyMap;
2026-07-20 16:05:17 +00:00
let tmp7;
2026-07-23 10:11:24 +00:00
let tmp = callback3();
let obj = navigation(1456);
navigation = obj.useNavigation();
let obj1 = navigation(566);
2026-07-20 16:05:17 +00:00
const items = [closure_7];
const stateFromStores = obj1.useStateFromStores(items, () => {
2026-07-23 10:11:24 +00:00
const currentUser = outer1_7.getCurrentUser();
verified(outer1_2[10])(null != currentUser, "ResendEmail: user cannot be undefined");
2026-07-20 16:05:17 +00:00
return currentUser;
});
const verified = stateFromStores.verified;
2026-07-23 10:11:24 +00:00
let obj2 = navigation(566);
const items1 = [_isNativeReflectConstruct];
const stateFromStores1 = obj2.useStateFromStores(items1, () => outer1_6.getAction());
2026-07-24 07:16:23 +00:00
let obj3 = verified(9225);
2026-07-20 16:05:17 +00:00
let tmp5 = !obj3.isEmailReverification(stateFromStores1);
2026-07-23 10:11:24 +00:00
[tmp7, dependencyMap] = callback(React.useState(false), 2);
callback = React.useRef(verified);
2026-07-20 16:05:17 +00:00
const items2 = [verified];
const effect = React.useEffect(() => {
let tmp = verified;
if (verified) {
tmp = false === ref.current;
}
if (tmp) {
2026-07-23 10:11:24 +00:00
verified(outer1_2[12]).close();
const obj = verified(outer1_2[12]);
2026-07-20 16:05:17 +00:00
}
}, items2);
const effect1 = React.useEffect(() => {
2026-07-23 10:11:24 +00:00
_slicedToArray.current = verified;
2026-07-20 16:05:17 +00:00
});
const items3 = [navigation];
obj = { style: tmp.container };
callback = React.useCallback(() => {
2026-07-23 10:11:24 +00:00
navigation.push(outer1_8.ENTER_EMAIL);
2026-07-20 16:05:17 +00:00
}, items3);
2026-07-23 10:11:24 +00:00
const items4 = [callback2(navigation(5807).EnvelopeOpenSpotIllustration, { scale: 0.75 }), , , , ];
obj = { style: tmp.title, accessibilityRole: "header", variant: "heading-xl/extrabold", color: "mobile-text-heading-primary" };
let intl = navigation(1212).intl;
obj.children = intl.string(navigation(1212).t.fUtddV);
items4[1] = callback2(navigation(4126).Text, obj);
obj1 = { style: tmp.body, variant: "text-sm/medium", color: "text-default" };
const intl2 = navigation(1212).intl;
2026-07-20 16:05:17 +00:00
if (tmp7) {
obj2 = { email: stateFromStores.email };
2026-07-23 10:11:24 +00:00
let formatResult = intl2.format(tmp14(1212).t.JqLgQL, obj2);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
formatResult = intl2.string(tmp14(1212).t.tSXg8O);
2026-07-20 16:05:17 +00:00
}
obj1.children = formatResult;
2026-07-23 10:11:24 +00:00
items4[2] = callback2(navigation(4126).Text, obj1);
2026-07-20 16:05:17 +00:00
obj3 = { style: tmp.resend };
const obj4 = {};
2026-07-23 10:11:24 +00:00
const intl3 = navigation(1212).intl;
obj4.text = intl3.string(navigation(1212).t.WnX4J2);
2026-07-20 16:05:17 +00:00
obj4.variant = "primary";
obj4.onPress = function onPress() {
callback(true);
2026-07-23 10:11:24 +00:00
let obj = verified(outer1_2[17]);
2026-07-20 16:05:17 +00:00
obj.verifyResend();
obj = { key: "USER_SETTINGS_ACCOUNT_CHANGE_EMAIL_CONFIRM_CODE_SENT" };
2026-07-23 10:11:24 +00:00
const intl = navigation(outer1_2[15]).intl;
obj.content = intl.string(navigation(outer1_2[15]).t["84yeoz"]);
verified(outer1_2[18]).open(obj);
2026-07-20 16:05:17 +00:00
};
obj4.grow = true;
2026-07-23 10:11:24 +00:00
obj3.children = callback2(navigation(4543).Button, obj4);
2026-07-20 16:05:17 +00:00
items4[3] = callback2(View, obj3);
if (tmp5) {
const obj5 = { style: tmp.change };
const obj6 = {};
2026-07-23 10:11:24 +00:00
const intl4 = navigation(1212).intl;
obj6.text = intl4.string(navigation(1212).t.Vm8akB);
2026-07-20 16:05:17 +00:00
obj6.variant = "secondary";
obj6.onPress = callback;
obj6.grow = true;
2026-07-23 10:11:24 +00:00
obj5.children = callback2(navigation(4543).Button, obj6);
2026-07-20 16:05:17 +00:00
tmp5 = callback2(View, obj5);
}
items4[4] = tmp5;
obj.children = items4;
return closure_10(View, obj);
};