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

124 lines
6.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16828
// Function ID: 16829
2026-07-20 16:05:17 +00:00
// Name: Overview
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 1385, 1922, 676, 21, 4668, 712, 1994, 589, 8608, 1500, 4737, 4750, 1236, 16597, 530, 8657, 1501, 4739, 14909, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 16828 (Overview)
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_5 from "handleRequiredAction" /* 1385 */;
import closure_6 from "mergeGuildAvatar" /* 1922 */;
import ME from "ME" /* 676 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
import importDefaultResult from "combined" /* 1994 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const require = arg1;
({ Endpoints: error, VerificationModalScenes: closure_8, VerificationTypes: c9, HelpdeskArticles } = ME);
2026-07-29 08:29:29 +00:00
({ jsx: c10, Fragment: unpackModuleId, jsxs: closure_12 } = jsxProd);
createCacheKey = { container: null, containerInner: null, title: null, body: null, blocks: null, verificationType: null, button: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flex: 1, padding: 20, justifyContent: "center", alignItems: "center" };
2026-08-24 06:08:38 +00:00
createCacheKey[2] = { marginTop: 20, fontSize: 17, textAlign: "center", color: ThemesDefault.colors.MOBILE_TEXT_HEADING_PRIMARY };
let obj1 = { marginTop: 20, fontSize: 17, textAlign: "center", color: ThemesDefault.colors.MOBILE_TEXT_HEADING_PRIMARY };
createCacheKey[3] = { marginTop: 4, marginBottom: 20, fontSize: 14, textAlign: "center", color: ThemesDefault.unsafe_rawColors.PRIMARY_400 };
2026-07-29 08:29:29 +00:00
createCacheKey[4] = { width: "60%", justifyContent: "center" };
createCacheKey[5] = { marginBottom: 20 };
createCacheKey[6] = { marginBottom: 20, marginHorizontal: 20, alignSelf: "center" };
2026-08-24 06:08:38 +00:00
let closure_13 = createCacheKey.createStyles(createCacheKey);
let obj2 = { marginTop: 4, marginBottom: 20, fontSize: 14, textAlign: "center", color: ThemesDefault.unsafe_rawColors.PRIMARY_400 };
const articleURL = importDefaultResult.getArticleURL(HelpdeskArticles.VERIFICATION_FAQ);
const result = require("set").fileFinishedImporting("modules/verification/native/components/Overview.tsx");
2026-07-20 16:05:17 +00:00
export default function Overview() {
2026-08-24 06:08:38 +00:00
const tmp = callback3();
const _require = tmp;
let obj = _require(navigation[9]);
const items = [closure_5];
2026-07-23 10:11:24 +00:00
stateFromStores = obj.useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
action = action.getAction();
2026-07-20 16:05:17 +00:00
return stateFromStores(navigation[10]).getVerificationTypes(action);
2026-07-23 10:11:24 +00:00
}, [], stateFromStores(navigation[10]).areVerificationTypesEqual);
2026-08-24 06:08:38 +00:00
obj1 = _require(navigation[11]);
2026-07-23 10:11:24 +00:00
navigation = obj1.useNavigation();
2026-08-24 06:08:38 +00:00
stateFromStores(navigation[12])(_require(navigation[12]).BackPressHandler.minimize);
2026-07-20 16:05:17 +00:00
const items1 = [navigation, stateFromStores, tmp.verificationType];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, children: null };
obj = { style: tmp.containerInner, children: null };
2026-08-24 06:08:38 +00:00
const callback = React.useCallback(() => closure_1_10(closure_1_11, {
2026-07-20 16:05:17 +00:00
children: stateFromStores.map((arg0) => {
2026-07-29 08:29:29 +00:00
const verificationType = arg0;
2026-08-24 06:08:38 +00:00
if (arg0 === closure_1_9.CAPTCHA) {
2026-07-29 08:29:29 +00:00
let obj = { text: null, onPress: null, grow: true };
2026-08-24 06:08:38 +00:00
const intl = closure_1_0(closure_1_2[14]).intl;
obj[0] = intl.string(closure_1_0(closure_1_2[14]).t["3413d0"]);
2026-07-29 08:29:29 +00:00
obj[1] = function onPress() {
let obj = callback(table[15]);
callback(table[15]).showCaptcha().then((captcha_key) => {
const HTTP = callback(table[16]).HTTP;
obj = { url: constants.CAPTCHA, body: obj, oldFormErrors: true, rejectWithError: true };
2026-07-20 16:05:17 +00:00
obj = { captcha_key };
HTTP.post(obj);
});
};
2026-08-24 06:08:38 +00:00
let tmp4 = closure_1_10(closure_1_0(closure_1_2[13]).Button, obj, arg0);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = verificationType.verificationType;
obj = { text: null, onPress: null, grow: true };
2026-08-24 06:08:38 +00:00
obj[0] = closure_1_1(closure_1_2[10]).getButtonTitle(arg0);
2026-07-29 08:29:29 +00:00
obj[1] = function onPress() {
2026-08-24 06:08:38 +00:00
let tmp4 = closure_0 !== closure_2_9.EMAIL_OR_PHONE;
2026-07-29 08:29:29 +00:00
if (tmp4) {
tmp4 = tmp2 !== tmp3.EMAIL;
}
if (tmp4) {
tmp4 = tmp2 !== tmp3.REVERIFY_EMAIL;
}
if (tmp4) {
2026-08-24 06:08:38 +00:00
const StackActions = closure_2_0(closure_2_2[18]).StackActions;
closure_1_2.dispatch(StackActions.push(closure_2_8.ADD_PHONE));
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
closure_2_0(closure_2_2[17]).accountDetailsInit();
const currentUser = closure_2_6.getCurrentUser();
2026-07-29 08:29:29 +00:00
let email;
if (currentUser != null) {
email = currentUser.email;
}
2026-08-24 06:08:38 +00:00
const obj = closure_2_0(closure_2_2[17]);
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj[1] = closure_1_10(closure_1_0(closure_1_2[13]).Button, obj);
tmp4 = closure_1_10(closure_1_4, obj, arg0);
const obj4 = closure_1_1(closure_1_2[10]);
2026-07-20 16:05:17 +00:00
}
return tmp4;
})
}), items1);
2026-07-29 08:29:29 +00:00
obj1 = { variant: "heading-lg/semibold", style: tmp.title, accessibilityRole: "header", children: null };
2026-08-24 06:08:38 +00:00
let intl = _require(navigation[14]).intl;
obj1[3] = intl.string(_require(navigation[14]).t.Iz0kDg);
const items2 = [callback(_require(navigation[19]).Text, obj1), , ];
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "text-sm/medium", style: tmp.body, children: null };
2026-08-24 06:08:38 +00:00
const intl2 = _require(navigation[14]).intl;
obj2[2] = intl2.format(_require(navigation[14]).t["0rqMV5"], { helpCenterURL: closure_14 });
items2[1] = callback(_require(navigation[19]).Text, obj2);
2026-07-20 16:05:17 +00:00
const obj3 = { helpCenterURL: closure_14 };
2026-07-23 10:11:24 +00:00
let tmp4 = stateFromStores(navigation[12]);
2026-07-20 16:05:17 +00:00
items2[2] = callback(View, { style: tmp.blocks, children: callback() });
2026-07-29 08:29:29 +00:00
obj[1] = items2;
2026-07-20 16:05:17 +00:00
const items3 = [callback2(View, obj), ];
2026-07-29 08:29:29 +00:00
const obj5 = { style: tmp.button, accessibilityRole: "link", children: null };
const obj6 = { variant: "secondary", text: null, onPress: null };
2026-08-24 06:08:38 +00:00
const intl3 = _require(navigation[14]).intl;
obj6[1] = intl3.string(_require(navigation[14]).t["Yl/Riu"]);
obj6[2] = _require(navigation[20]).emailSupport;
obj5[2] = callback(_require(navigation[13]).Button, obj6);
2026-07-20 16:05:17 +00:00
items3[1] = callback(View, obj5);
2026-07-29 08:29:29 +00:00
obj[1] = items3;
2026-07-20 16:05:17 +00:00
return callback2(View, obj);
};