Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
122 lines
6 KiB
TypeScript
122 lines
6 KiB
TypeScript
// Module ID: 17628
|
|
// Function ID: 17629
|
|
// Name: Overview
|
|
// Dependencies: [19, 17, 1951, 1371, 1074, 21, 4636, 576, 2024, 504, 6693, 1483, 5053, 5056, 1114, 17401, 1272, 7087, 1484, 4632, 15622, 2]
|
|
// Exports: default
|
|
|
|
// Module 17628 (Overview)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import UserRequiredActionStore from "UserRequiredActionStore" /* 1951 */;
|
|
import UserStore from "UserStore" /* 1371 */;
|
|
import HelpdeskUtils from "HelpdeskUtils" /* 2024 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const View = fn(17).View;
|
|
const Constants = fn(1074);
|
|
({ Endpoints: closure_7, VerificationModalScenes: closure_8, VerificationTypes: closure_9, HelpdeskArticles } = Constants);
|
|
const jsxProd = fn(21);
|
|
({ jsx: c10, Fragment: closure_11, jsxs: closure_12 } = jsxProd);
|
|
const createStyles = fn(4636);
|
|
let obj2 = { container: { flex: 1, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW }, containerInner: { flex: 1, padding: 20, justifyContent: "center", alignItems: "center" }, title: null, body: null, blocks: null, verificationType: null, button: null };
|
|
let obj3 = { flex: 1, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
|
|
obj2.title = { marginTop: 20, fontSize: 17, textAlign: "center", color: nativeDefault.colors.MOBILE_TEXT_HEADING_PRIMARY };
|
|
let obj4 = { marginTop: 20, fontSize: 17, textAlign: "center", color: nativeDefault.colors.MOBILE_TEXT_HEADING_PRIMARY };
|
|
obj2.body = { marginTop: 4, marginBottom: 20, fontSize: 14, textAlign: "center", color: nativeDefault.unsafe_rawColors.PRIMARY_400 };
|
|
obj2.blocks = { width: "60%", justifyContent: "center" };
|
|
obj2.verificationType = { marginBottom: 20 };
|
|
obj2.button = { marginBottom: 20, marginHorizontal: 20, alignSelf: "center" };
|
|
let closure_13 = createStyles.createStyles(obj2);
|
|
const helpCenterURL = HelpdeskUtils.getArticleURL(HelpdeskArticles.VERIFICATION_FAQ);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/verification/native/components/Overview.tsx");
|
|
|
|
export default function Overview() {
|
|
const tmp = closure_13();
|
|
_require = tmp;
|
|
const items = [UserRequiredActionStore];
|
|
stateFromStores = require("initialize").useStateFromStores(items, () => {
|
|
action = action.getAction();
|
|
return stateFromStores(navigation[10]).getVerificationTypes(action);
|
|
}, [], stateFromStores(navigation[10]).areVerificationTypesEqual);
|
|
let obj = require("initialize");
|
|
navigation = require("useNavigation").useNavigation();
|
|
let obj2 = require("useNavigation");
|
|
stateFromStores(navigation[12])(require("useBackPressHandler").BackPressHandler.minimize);
|
|
const items1 = [navigation, stateFromStores, tmp.verificationType];
|
|
let obj3 = { style: tmp.container, children: null };
|
|
let obj4 = { style: tmp.containerInner, children: null };
|
|
const callback = noop.useCallback(() => closure_2_10(closure_2_11, {
|
|
children: stateFromStores.map((item) => {
|
|
if (item === constants.CAPTCHA) {
|
|
let obj = { text: null, onPress: null, grow: true };
|
|
const intl = closure_1_0(navigation[14]).intl;
|
|
obj.text = intl.string(closure_1_0(navigation[14]).t["3413d0"]);
|
|
obj.onPress = function onPress() {
|
|
const obj = closure_1_1(dependencyMap[15]);
|
|
closure_1_1(dependencyMap[15]).showCaptcha().then((captcha_key) => {
|
|
const HTTP = item(dependencyMap[16]).HTTP;
|
|
const request = { url: constants.CAPTCHA, body: { captcha_key }, oldFormErrors: true, rejectWithError: true };
|
|
HTTP.post(request);
|
|
});
|
|
};
|
|
let tmp4 = closure_1_10(closure_1_0(navigation[13]).Button, obj, item);
|
|
} else {
|
|
const obj2 = { style: item.verificationType, children: null };
|
|
const obj3 = {
|
|
text: stateFromStores(navigation[10]).getButtonTitle(item),
|
|
onPress() {
|
|
let tmp4 = item !== constants2.EMAIL_OR_PHONE;
|
|
if (tmp4) {
|
|
tmp4 = tmp2 !== tmp3.EMAIL;
|
|
}
|
|
if (tmp4) {
|
|
tmp4 = tmp2 !== tmp3.REVERIFY_EMAIL;
|
|
}
|
|
if (tmp4) {
|
|
const StackActions = item(navigation[18]).StackActions;
|
|
closure_2_2.dispatch(StackActions.push(constants.ADD_PHONE));
|
|
} else {
|
|
item(navigation[17]).accountDetailsInit();
|
|
currentUser = currentUser.getCurrentUser();
|
|
let email;
|
|
if (currentUser != null) {
|
|
email = currentUser.email;
|
|
}
|
|
const obj = item(navigation[17]);
|
|
}
|
|
},
|
|
grow: true
|
|
};
|
|
obj2.children = closure_1_10(closure_1_0(navigation[13]).Button, obj3);
|
|
tmp4 = closure_1_10(closure_1_4, obj2, item);
|
|
const obj4 = stateFromStores(navigation[10]);
|
|
}
|
|
return tmp4;
|
|
})
|
|
}), items1);
|
|
const obj5 = { variant: "heading-lg/semibold", style: tmp.title, accessibilityRole: "header", children: null };
|
|
let intl = require("util").intl;
|
|
obj5.children = intl.string(require("util").t.Iz0kDg);
|
|
const items2 = [closure_10(require("Text/Text").Text, obj5), , ];
|
|
const obj6 = { variant: "text-sm/medium", style: tmp.body, children: null };
|
|
const intl2 = require("util").intl;
|
|
obj6.children = intl2.format(require("util").t["0rqMV5"], { helpCenterURL });
|
|
items2[1] = closure_10(require("Text/Text").Text, obj6);
|
|
const obj7 = { helpCenterURL };
|
|
let tmp4 = stateFromStores(navigation[12]);
|
|
items2[2] = closure_10(View, { style: tmp.blocks, children: callback() });
|
|
obj4.children = items2;
|
|
const items3 = [closure_12(View, obj4), ];
|
|
const obj9 = { style: tmp.button, accessibilityRole: "link", children: null };
|
|
const obj10 = { variant: "secondary", text: null, onPress: null };
|
|
const intl3 = require("util").intl;
|
|
obj10.text = intl3.string(require("util").t["Yl/Riu"]);
|
|
obj10.onPress = require("SupportUtils").emailSupport;
|
|
obj9.children = closure_10(require("components/Button/Button").Button, obj10);
|
|
items3[1] = closure_10(View, obj9);
|
|
obj3.children = items3;
|
|
return closure_12(View, obj3);
|
|
};
|