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

110 lines
4.3 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 8458
// Function ID: 8459
2026-07-20 16:05:17 +00:00
// Name: ResendEmail
2026-08-08 06:10:11 +00:00
// Dependencies: [32, 19, 17, 1366, 1903, 676, 21, 4303, 1480, 589, 38, 8459, 8451, 6027, 4299, 1236, 4714, 5827, 4002, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 8458 (ResendEmail)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import set from "set";
import { View } from "handleLogout";
import handleRequiredAction from "handleRequiredAction";
import mergeGuildAvatar from "mergeGuildAvatar";
2026-07-23 10:11:24 +00:00
import { VerificationModalScenes } from "ME";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c10;
let c9;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c9, jsxs: c10 } = jsxProd);
let closure_11 = createCacheKey.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%" } });
let 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-29 08:29:29 +00:00
let tmp10;
2026-07-23 10:11:24 +00:00
let tmp = callback3();
2026-07-29 08:29:29 +00:00
let obj = navigation(1480);
2026-07-23 10:11:24 +00:00
navigation = obj.useNavigation();
2026-07-29 08:29:29 +00:00
let obj1 = navigation(589);
const items = [mergeGuildAvatar];
2026-07-20 16:05:17 +00:00
const stateFromStores = obj1.useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
currentUser = currentUser.getCurrentUser();
verified(38)(null != currentUser, "ResendEmail: user cannot be undefined");
2026-07-20 16:05:17 +00:00
return currentUser;
});
const verified = stateFromStores.verified;
2026-07-29 08:29:29 +00:00
let obj2 = navigation(589);
const items1 = [handleRequiredAction];
const stateFromStores1 = obj2.useStateFromStores(items1, () => action.getAction());
2026-08-08 06:10:11 +00:00
let obj3 = verified(8459);
2026-07-29 08:29:29 +00:00
const result = obj3.isEmailReverification(stateFromStores1);
let tmp16Result = !result;
[tmp10, dependencyMap] = callback(React.useState(false), 2);
2026-07-23 10:11:24 +00:00
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];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, children: null };
2026-07-20 16:05:17 +00:00
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-08-08 06:10:11 +00:00
const items4 = [callback2(navigation(6027).EnvelopeOpenSpotIllustration, { scale: 0.75 }), , , , ];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.title, accessibilityRole: "header", variant: "heading-xl/extrabold", color: "mobile-text-heading-primary", children: null };
let intl = navigation(1236).intl;
obj[4] = intl.string(navigation(1236).t.fUtddV);
2026-08-08 06:10:11 +00:00
items4[1] = callback2(navigation(4299).Text, obj);
2026-07-29 08:29:29 +00:00
obj1 = { style: tmp.body, variant: "text-sm/medium", color: "text-default", children: null };
const intl2 = navigation(1236).intl;
if (tmp10) {
obj2 = { email: null };
obj2[0] = stateFromStores.email;
let formatResult = intl2.format(tmp2(1236).t.JqLgQL, obj2);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
formatResult = intl2.string(tmp2(1236).t.tSXg8O);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj1[3] = formatResult;
2026-08-08 06:10:11 +00:00
items4[2] = callback2(navigation(4299).Text, obj1);
2026-07-29 08:29:29 +00:00
obj3 = { style: tmp.resend, children: null };
const obj4 = { text: null, variant: "primary", onPress: null, grow: true };
const intl3 = tmp2(1236).intl;
obj4[0] = intl3.string(navigation(1236).t.WnX4J2);
obj4[2] = function onPress() {
dependencyMap(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();
2026-07-29 08:29:29 +00:00
obj = { key: "USER_SETTINGS_ACCOUNT_CHANGE_EMAIL_CONFIRM_CODE_SENT", content: null };
2026-07-23 10:11:24 +00:00
const intl = navigation(outer1_2[15]).intl;
2026-07-29 08:29:29 +00:00
obj[1] = intl.string(navigation(outer1_2[15]).t["84yeoz"]);
2026-07-23 10:11:24 +00:00
verified(outer1_2[18]).open(obj);
2026-07-20 16:05:17 +00:00
};
2026-08-08 06:10:11 +00:00
obj3[1] = callback2(navigation(4714).Button, obj4);
2026-07-20 16:05:17 +00:00
items4[3] = callback2(View, obj3);
2026-07-29 08:29:29 +00:00
if (!result) {
const obj5 = { style: null, children: null };
obj5[0] = tmp.change;
const obj6 = { text: null, variant: "secondary", onPress: null, grow: true };
const intl4 = tmp2(1236).intl;
obj6[0] = intl4.string(tmp2(1236).t.Vm8akB);
obj6[2] = callback;
2026-08-08 06:10:11 +00:00
obj5[1] = tmp16(tmp2(4714).Button, obj6);
2026-07-29 08:29:29 +00:00
tmp16Result = tmp16(tmp15, obj5);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items4[4] = tmp16Result;
obj[1] = items4;
2026-07-20 16:05:17 +00:00
return closure_10(View, obj);
};