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

117 lines
5 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 6732
// Function ID: 59193
2026-07-20 16:05:17 +00:00
// Name: AgeVerificationIncodeMethodSelectScreen
2026-07-28 08:39:19 +00:00
// Dependencies: [5, 57, 31, 27, 1278, 6727, 6729, 33, 4165, 689, 6733, 5619, 4576, 4161, 1212, 2717, 5536, 5198, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 6732 (AgeVerificationIncodeMethodSelectScreen)
2026-07-21 22:01:30 +00:00
import set from "set";
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import { View } from "get ActivityIndicator";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { VerificationMethod } from "set";
import { buildIncodeParamsInjection as closure_9 } from "postToNativeWebView";
import jsxProd from "jsxProd";
2026-07-21 22:01:30 +00:00
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
2026-07-23 10:11:24 +00:00
let closure_10;
let closure_11;
const require = arg1;
({ jsx: closure_10, jsxs: closure_11 } = jsxProd);
2026-07-21 22:01:30 +00:00
_createForOfIteratorHelperLoose = {};
2026-07-23 10:11:24 +00:00
_createForOfIteratorHelperLoose = { flex: 1, backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BASE_LOWEST };
2026-07-21 22:01:30 +00:00
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
2026-07-23 10:11:24 +00:00
_createForOfIteratorHelperLoose.content = { padding: require("_createForOfIteratorHelperLoose").space.PX_16 };
let obj2 = { flex: 1, alignItems: "center", justifyContent: "center", backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BASE_LOWEST };
_createForOfIteratorHelperLoose.loadingOverlay = obj2;
2026-07-21 22:01:30 +00:00
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
2026-07-23 10:11:24 +00:00
let obj1 = { padding: require("_createForOfIteratorHelperLoose").space.PX_16 };
const result = require("result").fileFinishedImporting("modules/age_assurance/native/AgeVerificationIncodeMethodSelectScreen.tsx");
2026-07-20 16:05:17 +00:00
export default function AgeVerificationIncodeMethodSelectScreen(onMethodSelected) {
2026-07-23 10:11:24 +00:00
let set;
let dependencyMap;
2026-07-20 16:05:17 +00:00
let tmp2;
let tmp4;
onMethodSelected = onMethodSelected.onMethodSelected;
const trustedOrigin = onMethodSelected.trustedOrigin;
2026-07-23 10:11:24 +00:00
[tmp2, dependencyMap] = callback(React.useState(false), 2);
2026-07-20 16:05:17 +00:00
const tmp = callback(React.useState(false), 2);
2026-07-23 10:11:24 +00:00
[tmp4, set] = callback(React.useState(false), 2);
2026-07-21 22:01:30 +00:00
const tmp5 = _createForOfIteratorHelperLoose();
2026-07-20 16:05:17 +00:00
const items = [onMethodSelected, trustedOrigin];
2026-07-23 10:11:24 +00:00
callback = React.useCallback((() => {
let closure_0 = outer1_3(async (arg0) => {
outer2_2(true);
outer2_3(false);
let obj = onMethodSelected(outer3_2[10]);
2026-07-20 16:05:17 +00:00
const tmp3 = yield obj.requestIncodeMethodSession(arg0);
if (null == tmp3) {
2026-07-23 10:11:24 +00:00
outer2_3(true);
outer2_2(false);
2026-07-20 16:05:17 +00:00
} else {
obj = {};
({ apiUrl: obj2.apiUrl, sessionToken: obj2.sessionToken, consentId: obj2.consentId, interviewId: obj2.interviewId } = tmp3);
2026-07-23 10:11:24 +00:00
obj.theme = outer3_7.theme;
2026-07-20 16:05:17 +00:00
obj.method = arg0;
2026-07-23 10:11:24 +00:00
callback(outer3_9(obj, outer2_1));
outer2_2(false);
2026-07-20 16:05:17 +00:00
}
});
return function() {
return callback(...arguments);
};
2026-07-23 10:11:24 +00:00
})(), items);
2026-07-20 16:05:17 +00:00
let obj = {};
if (tmp2) {
obj.style = tmp5.loadingOverlay;
2026-07-28 08:39:19 +00:00
obj.children = callback2(onMethodSelected(5619).ActivityIndicator, {});
2026-07-20 16:05:17 +00:00
let tmp21 = obj;
} else {
obj.style = tmp5.container;
obj = { spacing: 16, style: tmp5.content };
2026-07-23 10:11:24 +00:00
obj = { variant: "heading-lg/bold", color: "text-strong" };
const intl = onMethodSelected(1212).intl;
2026-07-25 08:10:48 +00:00
obj.children = intl.string(trustedOrigin(2717).eZvwAe);
2026-07-28 08:39:19 +00:00
const items1 = [callback2(onMethodSelected(4161).Heading, obj), , , ];
2026-07-23 10:11:24 +00:00
const obj1 = { variant: "text-md/normal", color: "text-muted" };
const intl2 = onMethodSelected(1212).intl;
2026-07-25 08:10:48 +00:00
obj1.children = intl2.string(trustedOrigin(2717)["5yWXmT"]);
2026-07-28 08:39:19 +00:00
items1[1] = callback2(onMethodSelected(4161).Text, obj1);
2026-07-20 16:05:17 +00:00
if (tmp4) {
2026-07-23 10:11:24 +00:00
const obj2 = { variant: "text-sm/medium", color: "text-feedback-critical" };
const intl3 = onMethodSelected(1212).intl;
obj2.children = intl3.string(onMethodSelected(1212).t.c6kn6F);
2026-07-28 08:39:19 +00:00
tmp4 = callback2(onMethodSelected(4161).Text, obj2);
2026-07-20 16:05:17 +00:00
}
items1[2] = tmp4;
const obj3 = { hasIcons: false };
const obj4 = { arrow: true };
2026-07-23 10:11:24 +00:00
const intl4 = onMethodSelected(1212).intl;
2026-07-25 08:10:48 +00:00
obj4.label = intl4.string(trustedOrigin(2717).rgXXcW);
2026-07-23 10:11:24 +00:00
const intl5 = onMethodSelected(1212).intl;
2026-07-25 08:10:48 +00:00
obj4.subLabel = intl5.string(trustedOrigin(2717).fm7qBC);
2026-07-20 16:05:17 +00:00
obj4.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
callback(outer1_8.FACIAL_AGE_ESTIMATION);
2026-07-20 16:05:17 +00:00
};
2026-07-28 08:39:19 +00:00
const items2 = [callback2(onMethodSelected(5198).TableRow, obj4), ];
2026-07-20 16:05:17 +00:00
const obj5 = { arrow: true };
2026-07-23 10:11:24 +00:00
const intl6 = onMethodSelected(1212).intl;
2026-07-25 08:10:48 +00:00
obj5.label = intl6.string(trustedOrigin(2717)["NeVlw/"]);
2026-07-23 10:11:24 +00:00
const intl7 = onMethodSelected(1212).intl;
2026-07-25 08:10:48 +00:00
obj5.subLabel = intl7.string(trustedOrigin(2717).ARmJ0M);
2026-07-20 16:05:17 +00:00
obj5.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
callback(outer1_8.ID_VERIFICATION);
2026-07-20 16:05:17 +00:00
};
2026-07-28 08:39:19 +00:00
items2[1] = callback2(onMethodSelected(5198).TableRow, obj5);
2026-07-20 16:05:17 +00:00
obj3.children = items2;
2026-07-28 08:39:19 +00:00
items1[3] = callback3(onMethodSelected(5536).TableRowGroup, obj3);
2026-07-20 16:05:17 +00:00
obj.children = items1;
2026-07-28 08:39:19 +00:00
obj.children = callback3(onMethodSelected(4576).Stack, obj);
2026-07-20 16:05:17 +00:00
tmp21 = obj;
const tmp8 = callback3;
}
return callback2(View, tmp21);
};