decord/source/modules/age_assurance/native/AgeVerificationIncodeMethodSelectScreen.tsx

221 lines
7.9 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 7843
// Function ID: 7844
2026-07-20 16:05:17 +00:00
// Name: AgeVerificationIncodeMethodSelectScreen
2026-08-12 06:57:52 +00:00
// Dependencies: [5, 32, 19, 1302, 7839, 7841, 21, 4344, 7844, 7848, 7849, 4752, 5862, 6068, 4340, 1236, 2821, 5806, 5413, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-12 06:57:52 +00:00
// Module 7843 (AgeVerificationIncodeMethodSelectScreen)
2026-08-06 08:05:19 +00:00
import AGE_VERIFICATION_INCODE_PATH from "AGE_VERIFICATION_INCODE_PATH";
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-08-06 08:05:19 +00:00
import set from "set";
2026-07-29 08:29:29 +00:00
import handleThemeChange from "handleThemeChange";
2026-07-23 10:11:24 +00:00
import { VerificationMethod } from "set";
2026-08-06 08:05:19 +00:00
import { buildIncodeParamsInjection as closure_8 } from "AGE_VERIFICATION_INCODE_PATH";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-21 22:01:30 +00:00
2026-07-29 08:29:29 +00:00
let c10;
2026-08-06 08:05:19 +00:00
let c9;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-06 08:05:19 +00:00
({ jsx: c9, jsxs: c10 } = jsxProd);
let closure_11 = createCacheKey.createStyles({ container: { alignSelf: "stretch" }, header: { textAlign: "center" }, loadingContainer: { flex: 1, alignSelf: "stretch" } });
2026-07-29 08:29:29 +00:00
const result = require("noop").fileFinishedImporting("modules/age_assurance/native/AgeVerificationIncodeMethodSelectScreen.tsx");
2026-07-20 16:05:17 +00:00
export default function AgeVerificationIncodeMethodSelectScreen(onMethodSelected) {
2026-07-29 08:29:29 +00:00
let c2;
let c3;
2026-07-20 16:05:17 +00:00
let tmp2;
let tmp4;
onMethodSelected = onMethodSelected.onMethodSelected;
2026-07-29 08:29:29 +00:00
let _require = onMethodSelected;
2026-07-20 16:05:17 +00:00
const trustedOrigin = onMethodSelected.trustedOrigin;
2026-07-29 08:29:29 +00:00
let dependencyMap;
let callback;
let callback2;
[tmp2, c2] = callback2(React.useState(false), 2);
const tmp = callback2(React.useState(false), 2);
[tmp4, c3] = callback2(React.useState(false), 2);
2026-08-06 08:05:19 +00:00
const tmp5 = callback4();
2026-07-29 08:29:29 +00:00
_require = undefined;
_require = callback((arg0) => {
let closure_0 = arg0;
let c5 = 0;
let c6 = 0;
let c4 = 0;
return (function*(arg0) {
if (c6 === 2) {
c6 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-08 06:10:11 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
try {
c6 = 2;
if (0 === c5) {
if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
let closure_2 = tmp4;
let closure_1 = tmp8;
closure_1 = undefined;
closure_2 = undefined;
outer1_2(true);
outer1_3(false);
let c4 = 2;
2026-08-06 08:05:19 +00:00
let obj2 = callback(table[8]);
2026-07-29 08:29:29 +00:00
c5 = 3;
c6 = 1;
const obj1 = { value: null, done: false };
obj1[0] = obj2.requestIncodeMethodSession(callback);
return obj1;
}
} else if (1 === tmp8) {
c4 = 0;
outer1_2(false);
2026-08-06 08:05:19 +00:00
throw AGE_VERIFICATION_INCODE_PATH;
2026-07-29 08:29:29 +00:00
} else {
if (2 === tmp8) {
c4 = 1;
outer1_3(true);
c4 = 0;
outer1_2(false);
c6 = 3;
} else if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 0;
outer1_2(false);
c6 = 3;
obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
closure_1 = arg1;
if (null != closure_1) {
const obj3 = { apiUrl: null, sessionToken: null, consentId: null, interviewId: null, theme: null, method: null };
obj3[0] = closure_1.apiUrl;
obj3[1] = closure_1.sessionToken;
obj3[2] = closure_1.consentId;
obj3[3] = closure_1.interviewId;
2026-08-06 08:05:19 +00:00
obj3[4] = outer2_6.theme;
2026-07-29 08:29:29 +00:00
obj3[5] = callback;
2026-08-06 08:05:19 +00:00
closure_2 = outer2_8(obj3, outer1_1);
2026-07-29 08:29:29 +00:00
callback(closure_2);
c4 = 1;
}
}
outer1_3(true);
c4 = 0;
outer1_2(false);
c6 = 3;
obj = { value: null, done: true };
obj[0] = undefined;
return obj;
}
} catch (tmp36) {
2026-08-06 08:05:19 +00:00
AGE_VERIFICATION_INCODE_PATH = tmp36;
2026-07-29 08:29:29 +00:00
if (tmp5 === c4) {
c6 = tmp3;
throw tmp36;
} else if (tmp2 === tmp38) {
c5 = tmp2;
} else {
c5 = tmp;
}
}
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
})();
});
const items = [onMethodSelected, trustedOrigin];
callback2 = React.useCallback(function() {
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-08-12 06:57:52 +00:00
const ModalContent = _require(7849).ModalContent;
2026-08-06 08:05:19 +00:00
obj = { children: null };
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-08-06 08:05:19 +00:00
obj = { align: "center", justify: "center", spacing: 16, style: null, children: null };
obj[3] = tmp5.loadingContainer;
2026-08-12 06:57:52 +00:00
obj[4] = tmp6(tmp7(5862).ActivityIndicator, { size: "large" });
obj[0] = tmp6(tmp7(4752).Stack, obj);
2026-08-06 08:05:19 +00:00
obj[0] = tmp6(ModalContent, obj);
let tmp11 = obj;
2026-07-20 16:05:17 +00:00
} else {
2026-08-06 08:05:19 +00:00
let obj1 = { align: "stretch", spacing: 24, style: null, children: null };
obj1[2] = tmp5.container;
let obj2 = { align: "center", justify: "center", spacing: 16, children: null };
2026-08-12 06:57:52 +00:00
const items1 = [tmp6(tmp7(6068).ShieldSpotIllustration, { height: 100, width: 177 }), ];
2026-08-06 08:05:19 +00:00
let obj3 = { align: "center", justify: "center", spacing: 8, children: null };
const obj4 = { accessibilityRole: "header", variant: "heading-xl/bold", color: "mobile-text-heading-primary", style: null, children: null };
obj4[3] = tmp5.header;
const intl = tmp7(1236).intl;
2026-08-11 06:20:06 +00:00
obj4[4] = intl.string(trustedOrigin(2821).eZvwAe);
2026-08-12 06:57:52 +00:00
const items2 = [tmp6(tmp7(4340).Text, obj4), ];
2026-08-06 08:05:19 +00:00
const obj5 = { variant: "text-md/medium", color: "text-strong", style: null, children: null };
obj5[2] = tmp5.header;
const intl2 = tmp7(1236).intl;
2026-08-11 06:20:06 +00:00
obj5[3] = intl2.string(trustedOrigin(2821)["5yWXmT"]);
2026-08-12 06:57:52 +00:00
items2[1] = tmp6(tmp7(4340).Text, obj5);
2026-08-06 08:05:19 +00:00
obj3[3] = items2;
2026-08-12 06:57:52 +00:00
items1[1] = callback3(tmp7(4752).Stack, obj3);
2026-08-06 08:05:19 +00:00
obj2[3] = items1;
2026-08-12 06:57:52 +00:00
const items3 = [callback3(tmp7(4752).Stack, obj2), , ];
2026-07-29 08:29:29 +00:00
if (tmp6Result) {
2026-08-06 08:05:19 +00:00
const obj6 = { variant: "text-sm/medium", color: "text-feedback-critical", style: null, children: null };
obj6[2] = tmp5.header;
const intl3 = tmp7(1236).intl;
obj6[3] = intl3.string(tmp7(1236).t.c6kn6F);
2026-08-12 06:57:52 +00:00
tmp6Result = tmp6(tmp7(4340).Text, obj6);
2026-07-20 16:05:17 +00:00
}
2026-08-06 08:05:19 +00:00
items3[1] = tmp6Result;
const obj7 = { hasIcons: false, children: null };
const obj8 = { arrow: true, label: null, subLabel: null, onPress: null };
const intl4 = tmp7(1236).intl;
2026-08-11 06:20:06 +00:00
obj8[1] = intl4.string(trustedOrigin(2821).rgXXcW);
2026-08-06 08:05:19 +00:00
const intl5 = tmp7(1236).intl;
2026-08-11 06:20:06 +00:00
obj8[2] = intl5.string(trustedOrigin(2821).fm7qBC);
2026-08-06 08:05:19 +00:00
obj8[3] = function onPress() {
callback(outer1_7.FACIAL_AGE_ESTIMATION);
2026-07-20 16:05:17 +00:00
};
2026-08-12 06:57:52 +00:00
const items4 = [tmp6(tmp7(5413).TableRow, obj8), ];
2026-08-06 08:05:19 +00:00
const obj9 = { arrow: true, label: null, subLabel: null, onPress: null };
const intl6 = tmp7(1236).intl;
2026-08-11 06:20:06 +00:00
obj9[1] = intl6.string(trustedOrigin(2821)["NeVlw/"]);
2026-08-06 08:05:19 +00:00
const intl7 = tmp7(1236).intl;
2026-08-11 06:20:06 +00:00
obj9[2] = intl7.string(trustedOrigin(2821).ARmJ0M);
2026-08-06 08:05:19 +00:00
obj9[3] = function onPress() {
callback(outer1_7.ID_VERIFICATION);
2026-07-20 16:05:17 +00:00
};
2026-08-12 06:57:52 +00:00
items4[1] = tmp6(tmp7(5413).TableRow, obj9);
2026-08-06 08:05:19 +00:00
obj7[1] = items4;
2026-08-12 06:57:52 +00:00
items3[2] = callback3(tmp7(5806).TableRowGroup, obj7);
2026-08-06 08:05:19 +00:00
obj1[3] = items3;
2026-08-12 06:57:52 +00:00
obj[0] = callback3(tmp7(4752).Stack, obj1);
2026-08-06 08:05:19 +00:00
obj[0] = tmp6(ModalContent, obj);
tmp11 = obj;
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
return closure_9(_require(7848).ModalScreen, tmp11);
2026-07-20 16:05:17 +00:00
};