// Module ID: 8568 // Function ID: 8569 // Name: ResendEmail // Dependencies: [32, 19, 17, 1385, 1922, 676, 21, 4661, 1500, 589, 38, 8569, 8561, 5447, 4734, 1236, 4745, 5256, 4094, 2] // Exports: default // Module 8568 (ResendEmail) import _slicedToArray from "_slicedToArray"; import set from "set"; import { View } from "handleLogout"; import handleRequiredAction from "handleRequiredAction"; import mergeGuildAvatar from "mergeGuildAvatar"; import { VerificationModalScenes } from "ME"; import jsxProd from "jsxProd"; import createCacheKey from "createCacheKey"; let c10; let c9; const require = arg1; ({ 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"); export default function ResendEmail() { let dependencyMap; let tmp10; let tmp = callback3(); let obj = navigation(1500); navigation = obj.useNavigation(); let obj1 = navigation(589); const items = [mergeGuildAvatar]; const stateFromStores = obj1.useStateFromStores(items, () => { currentUser = currentUser.getCurrentUser(); verified(38)(null != currentUser, "ResendEmail: user cannot be undefined"); return currentUser; }); const verified = stateFromStores.verified; let obj2 = navigation(589); const items1 = [handleRequiredAction]; const stateFromStores1 = obj2.useStateFromStores(items1, () => action.getAction()); let obj3 = verified(8569); const result = obj3.isEmailReverification(stateFromStores1); let tmp16Result = !result; [tmp10, dependencyMap] = callback(React.useState(false), 2); callback = React.useRef(verified); const items2 = [verified]; const effect = React.useEffect(() => { let tmp = verified; if (verified) { tmp = false === ref.current; } if (tmp) { verified(outer1_2[12]).close(); const obj = verified(outer1_2[12]); } }, items2); const effect1 = React.useEffect(() => { _slicedToArray.current = verified; }); const items3 = [navigation]; obj = { style: tmp.container, children: null }; callback = React.useCallback(() => { navigation.push(outer1_8.ENTER_EMAIL); }, items3); const items4 = [callback2(navigation(5447).EnvelopeOpenSpotIllustration, { scale: 0.75 }), , , , ]; 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); items4[1] = callback2(navigation(4734).Text, obj); 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); } else { formatResult = intl2.string(tmp2(1236).t.tSXg8O); } obj1[3] = formatResult; items4[2] = callback2(navigation(4734).Text, obj1); 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); let obj = verified(outer1_2[17]); obj.verifyResend(); obj = { key: "USER_SETTINGS_ACCOUNT_CHANGE_EMAIL_CONFIRM_CODE_SENT", content: null }; const intl = navigation(outer1_2[15]).intl; obj[1] = intl.string(navigation(outer1_2[15]).t["84yeoz"]); verified(outer1_2[18]).open(obj); }; obj3[1] = callback2(navigation(4745).Button, obj4); items4[3] = callback2(View, obj3); 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; obj5[1] = tmp16(tmp2(4745).Button, obj6); tmp16Result = tmp16(tmp15, obj5); } items4[4] = tmp16Result; obj[1] = items4; return closure_10(View, obj); };