2026-09-10 19:12:31 +00:00
|
|
|
// Module ID: 8481
|
|
|
|
|
// Function ID: 8482
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: AgeVerificationIncodeMethodSelectScreen
|
2026-09-10 19:12:31 +00:00
|
|
|
// Dependencies: [5, 32, 19, 1183, 8477, 8479, 21, 4605, 8482, 8486, 8487, 5023, 5627, 5742, 4601, 1114, 2946, 5737, 5655, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 19:12:31 +00:00
|
|
|
// Module 8481 (AgeVerificationIncodeMethodSelectScreen)
|
2026-09-10 05:38:07 +00:00
|
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
|
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import ThemeStore from "ThemeStore" /* 1183 */;
|
2026-07-21 22:01:30 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const require = fn;
|
2026-09-10 19:12:31 +00:00
|
|
|
const VerificationMethod = fn(8477).VerificationMethod;
|
|
|
|
|
let closure_8 = fn(8479).buildIncodeParamsInjection;
|
2026-09-10 05:38:07 +00:00
|
|
|
const jsxProd = fn(21);
|
|
|
|
|
({ jsx: closure_9, jsxs: c10 } = jsxProd);
|
2026-09-10 19:12:31 +00:00
|
|
|
const createStyles = fn(4605);
|
2026-09-10 05:38:07 +00:00
|
|
|
let closure_11 = createStyles.createStyles({ container: { alignSelf: "stretch" }, header: { textAlign: "center" }, loadingContainer: { flex: 1, alignSelf: "stretch" } });
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/age_assurance/native/AgeVerificationIncodeMethodSelectScreen.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function AgeVerificationIncodeMethodSelectScreen(onMethodSelected) {
|
|
|
|
|
onMethodSelected = onMethodSelected.onMethodSelected;
|
|
|
|
|
const trustedOrigin = onMethodSelected.trustedOrigin;
|
2026-08-24 06:08:38 +00:00
|
|
|
dependencyMap = undefined;
|
2026-09-10 05:38:07 +00:00
|
|
|
asyncGeneratorStep = undefined;
|
|
|
|
|
_slicedToArray = undefined;
|
|
|
|
|
[tmp2, c2] = noop.useState(false);
|
|
|
|
|
const tmp = _slicedToArray(noop.useState(false), 2);
|
|
|
|
|
[tmp4, c3] = noop.useState(false);
|
|
|
|
|
const tmp5 = closure_11();
|
|
|
|
|
_require = asyncGeneratorStep(async (arg0, value) => {
|
|
|
|
|
if (c6 === 2) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
|
|
|
} else if (tmp7 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
const obj2 = { value, done: true };
|
|
|
|
|
return obj2;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
c6 = 2;
|
|
|
|
|
if (0 === c5) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
const obj4 = { value, done: true };
|
|
|
|
|
return obj4;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_1 = tmp8;
|
|
|
|
|
closure_129_0 = closure_0;
|
|
|
|
|
closure_129_1 = undefined;
|
|
|
|
|
closure_129_2 = undefined;
|
|
|
|
|
tmp4(true);
|
|
|
|
|
tmp36(false);
|
|
|
|
|
c4 = 2;
|
|
|
|
|
c5 = 3;
|
|
|
|
|
c6 = 1;
|
|
|
|
|
const obj5 = { value: closure_0(tmp4[8]).requestIncodeMethodSession(closure_0), done: false };
|
|
|
|
|
return obj5;
|
|
|
|
|
}
|
|
|
|
|
} else if (1 === tmp8) {
|
|
|
|
|
c4 = 0;
|
|
|
|
|
tmp4(false);
|
|
|
|
|
throw tmp36;
|
|
|
|
|
} else {
|
|
|
|
|
if (2 === tmp8) {
|
|
|
|
|
c4 = 1;
|
|
|
|
|
tmp36(true);
|
2026-07-29 08:29:29 +00:00
|
|
|
c4 = 0;
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp4(false);
|
2026-07-29 08:29:29 +00:00
|
|
|
c6 = 3;
|
2026-09-10 05:38:07 +00:00
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c4 = 0;
|
|
|
|
|
tmp4(false);
|
|
|
|
|
c6 = 3;
|
|
|
|
|
const obj6 = { value, done: true };
|
|
|
|
|
return obj6;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_129_1 = value;
|
|
|
|
|
if (null != closure_129_1) {
|
|
|
|
|
const obj7 = { apiUrl: closure_129_1.apiUrl, sessionToken: closure_129_1.sessionToken, consentId: closure_129_1.consentId, interviewId: closure_129_1.interviewId, theme: theme.theme, method: closure_129_0 };
|
|
|
|
|
closure_129_2 = closure_2_8(obj7, closure_1);
|
|
|
|
|
closure_0(closure_129_2);
|
|
|
|
|
c4 = 1;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
tmp36(true);
|
|
|
|
|
c4 = 0;
|
|
|
|
|
tmp4(false);
|
|
|
|
|
c6 = 3;
|
|
|
|
|
const obj = { value: undefined, done: true };
|
|
|
|
|
return obj;
|
|
|
|
|
}
|
|
|
|
|
} catch (tmp36) {
|
|
|
|
|
if (tmp5 === c4) {
|
|
|
|
|
c6 = tmp3;
|
|
|
|
|
throw tmp36;
|
|
|
|
|
} else if (tmp2 === tmp38) {
|
|
|
|
|
c5 = tmp2;
|
|
|
|
|
} else {
|
|
|
|
|
c5 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
});
|
|
|
|
|
const items = [onMethodSelected, trustedOrigin];
|
2026-09-10 05:38:07 +00:00
|
|
|
_slicedToArray = noop.useCallback(function() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = closure_0.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}, items);
|
2026-08-06 08:05:19 +00:00
|
|
|
let obj = { children: null };
|
2026-09-10 05:38:07 +00:00
|
|
|
const ModalContent = require("ModalContent").ModalContent;
|
|
|
|
|
let obj2 = { children: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
if (tmp2) {
|
2026-09-10 19:12:31 +00:00
|
|
|
const obj3 = { align: "center", justify: "center", spacing: 16, style: tmp5.loadingContainer, children: tmp6(tmp7(5627).ActivityIndicator, { size: "large" }) };
|
|
|
|
|
obj2.children = tmp6(tmp7(5023).Stack, obj3);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj.children = tmp6(ModalContent, obj2);
|
2026-08-06 08:05:19 +00:00
|
|
|
let tmp11 = obj;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj4 = { align: "stretch", spacing: 24, style: tmp5.container, children: null };
|
|
|
|
|
let obj5 = { align: "center", justify: "center", spacing: 16, children: null };
|
2026-09-10 19:12:31 +00:00
|
|
|
const items1 = [tmp6(tmp7(5742).ShieldSpotIllustration, { height: 100, width: 177 }), ];
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj6 = { align: "center", justify: "center", spacing: 8, children: null };
|
|
|
|
|
let obj7 = { accessibilityRole: "header", variant: "heading-xl/bold", color: "mobile-text-heading-primary", style: tmp5.header, children: null };
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl = tmp7(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj7.children = intl.string(trustedOrigin(2946).eZvwAe);
|
2026-09-10 19:12:31 +00:00
|
|
|
const items2 = [tmp6(tmp7(4601).Text, obj7), ];
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj8 = { variant: "text-md/medium", color: "text-strong", style: tmp5.header, children: null };
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl2 = tmp7(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj8.children = intl2.string(trustedOrigin(2946)["5yWXmT"]);
|
2026-09-10 19:12:31 +00:00
|
|
|
items2[1] = tmp6(tmp7(4601).Text, obj8);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj6.children = items2;
|
2026-09-10 19:12:31 +00:00
|
|
|
items1[1] = closure_10(tmp7(5023).Stack, obj6);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj5.children = items1;
|
2026-09-10 19:12:31 +00:00
|
|
|
const items3 = [closure_10(tmp7(5023).Stack, obj5), , ];
|
2026-07-29 08:29:29 +00:00
|
|
|
if (tmp6Result) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj9 = { variant: "text-sm/medium", color: "text-feedback-critical", style: tmp5.header, children: null };
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl3 = tmp7(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj9.children = intl3.string(tmp7(1114).t.c6kn6F);
|
2026-09-10 19:12:31 +00:00
|
|
|
tmp6Result = tmp6(tmp7(4601).Text, obj9);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-06 08:05:19 +00:00
|
|
|
items3[1] = tmp6Result;
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj10 = { hasIcons: false, children: null };
|
|
|
|
|
const obj11 = { arrow: true, label: null, subLabel: null, onPress: null };
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl4 = tmp7(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj11.label = intl4.string(trustedOrigin(2946).rgXXcW);
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl5 = tmp7(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj11.subLabel = intl5.string(trustedOrigin(2946).fm7qBC);
|
|
|
|
|
obj11.onPress = function onPress() {
|
|
|
|
|
closure_4(VerificationMethod.FACIAL_AGE_ESTIMATION);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-09-10 19:12:31 +00:00
|
|
|
const items4 = [tmp6(tmp7(5655).TableRow, obj11), ];
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj12 = { arrow: true, label: null, subLabel: null, onPress: null };
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl6 = tmp7(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj12.label = intl6.string(trustedOrigin(2946)["NeVlw/"]);
|
2026-09-05 10:56:28 +00:00
|
|
|
const intl7 = tmp7(1114).intl;
|
2026-09-10 05:38:07 +00:00
|
|
|
obj12.subLabel = intl7.string(trustedOrigin(2946).ARmJ0M);
|
|
|
|
|
obj12.onPress = function onPress() {
|
|
|
|
|
closure_4(VerificationMethod.ID_VERIFICATION);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-09-10 19:12:31 +00:00
|
|
|
items4[1] = tmp6(tmp7(5655).TableRow, obj12);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj10.children = items4;
|
2026-09-10 19:12:31 +00:00
|
|
|
items3[2] = closure_10(tmp7(5737).TableRowGroup, obj10);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj4.children = items3;
|
2026-09-10 19:12:31 +00:00
|
|
|
obj2.children = closure_10(tmp7(5023).Stack, obj4);
|
2026-09-10 05:38:07 +00:00
|
|
|
obj.children = tmp6(ModalContent, obj2);
|
2026-08-06 08:05:19 +00:00
|
|
|
tmp11 = obj;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
return closure_9(require("ModalScreen").ModalScreen, tmp11);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|