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

103 lines
4.5 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8111
// Function ID: 8112
2026-07-20 16:05:17 +00:00
// Name: AgeVerificationMethodsContainer
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 7943, 7950, 21, 4380, 712, 7949, 7208, 7213, 4813, 1297, 1236, 5873, 4376, 2855, 5257, 4815, 7948, 5480, 7942, 2]
2026-07-20 16:05:17 +00:00
// Exports: AgeVerificationMethodsContainer
2026-08-25 06:04:03 +00:00
// Module 8111 (AgeVerificationMethodsContainer)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import { VerificationMethod } from "set" /* 7943 */;
import { SafetyHubLinks } from "SafetyHubView" /* 7950 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { content: null, errorContainer: null, noMethodsText: null, buttonGroup: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { marginTop: ThemesDefault.space.PX_8 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { marginTop: ThemesDefault.space.PX_24, marginBottom: ThemesDefault.space.PX_24 };
let obj1 = { marginTop: ThemesDefault.space.PX_24, marginBottom: ThemesDefault.space.PX_24 };
createCacheKey[2] = { paddingHorizontal: ThemesDefault.space.PX_40, textAlign: "center" };
2026-07-29 08:29:29 +00:00
createCacheKey[3] = { paddingVertical: 0 };
2026-08-24 06:08:38 +00:00
let closure_8 = createCacheKey.createStyles(createCacheKey);
let obj2 = { paddingHorizontal: ThemesDefault.space.PX_40, textAlign: "center" };
const result = require("set").fileFinishedImporting("modules/age_assurance/native/AgeVerificationMethodsContainer.tsx");
2026-07-20 16:05:17 +00:00
export const AgeVerificationMethodsContainer = function AgeVerificationMethodsContainer(ageVerificationMethods) {
const prop = ageVerificationMethods.ageVerificationMethods;
2026-07-23 10:11:24 +00:00
const modalSessionId = ageVerificationMethods.modalSessionId;
2026-08-24 06:08:38 +00:00
const tmp = callback2();
2026-08-25 06:04:03 +00:00
let obj = prop(7949);
2026-07-29 08:29:29 +00:00
const isSuspendedUser = obj.useIsSuspendedUser();
2026-07-20 16:05:17 +00:00
const items = [prop];
const effect = React.useEffect(() => {
2026-07-29 08:29:29 +00:00
let obj = prop;
let someResult;
if (prop != null) {
someResult = obj.some((id) => id.id === constants.GOOGLE_WALLET);
2026-07-20 16:05:17 +00:00
}
if (someResult) {
2026-07-29 08:29:29 +00:00
obj = { name: null };
2026-08-24 06:08:38 +00:00
obj[0] = prop(closure_1_2[8]).MetricEvents.GOOGLE_WALLET_METHOD_IMPRESSION;
modalSessionId(closure_1_2[7]).increment(obj);
const obj2 = modalSessionId(closure_1_2[7]);
2026-07-20 16:05:17 +00:00
}
}, items);
2026-07-29 08:29:29 +00:00
obj = { spacing: 16, style: tmp.content, children: null };
2026-08-24 06:08:38 +00:00
obj = { messageType: prop(1297).HelpMessageTypes.INFO, textColor: "text-feedback-info", textVariant: "text-sm/medium", children: null };
2026-07-29 08:29:29 +00:00
const intl = prop(1236).intl;
obj[3] = intl.string(prop(1236).t.El4aXl);
const items1 = [callback(prop(1297).HelpMessage, obj), ];
2026-07-20 16:05:17 +00:00
if (null != prop) {
if (0 !== prop.length) {
let mapped = prop.map((label) => {
2026-08-24 06:08:38 +00:00
closure_0 = label;
return closure_1_6(prop(closure_1_2[18]).TableRow, {
2026-07-20 16:05:17 +00:00
label: label.title,
subLabel: label.description,
onPress() {
2026-08-24 06:08:38 +00:00
return label.onClick(closure_1_1);
2026-07-20 16:05:17 +00:00
},
arrow: true
}, label.id);
});
}
2026-08-24 06:08:38 +00:00
obj1 = { hasIcons: false, children: null };
2026-07-29 08:29:29 +00:00
obj1[1] = mapped;
items1[1] = tmp7(tmp8, obj1);
obj[2] = items1;
2026-08-25 06:04:03 +00:00
const items2 = [tmp6(prop(4813).Stack, obj), ];
2026-07-29 08:29:29 +00:00
let tmp7Result = isSuspendedUser;
2026-07-20 16:05:17 +00:00
if (isSuspendedUser) {
2026-07-29 08:29:29 +00:00
let obj2 = { variant: "text-xs/medium", children: null };
const intl4 = tmp2(1236).intl;
const obj3 = { handleOnHelpUrlHook: null };
obj3[0] = function handleOnHelpUrlHook() {
modalSessionId(table[19]).openUrl(constants.LEARN_MORE_UU_APPEAL_LINK);
2026-07-20 16:05:17 +00:00
};
2026-08-25 06:04:03 +00:00
obj2[1] = intl4.format(modalSessionId(2855).htWh1G, obj3);
tmp7Result = tmp7(tmp2(4376).Text, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj4 = { spacing: 8, align: "center", children: null };
items2[1] = tmp7Result;
obj4[2] = items2;
2026-08-25 06:04:03 +00:00
return tmp6(prop(4813).Stack, obj4);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj5 = { direction: "vertical", align: "center", spacing: 16, style: tmp.errorContainer, children: null };
const obj6 = { variant: "text-sm/medium", color: "text-subtle", style: tmp.noMethodsText, children: null };
const intl2 = tmp2(1236).intl;
2026-08-25 06:04:03 +00:00
obj6[3] = intl2.string(modalSessionId(2855).cR6336);
const items3 = [callback(prop(4376).Text, obj6), ];
2026-07-29 08:29:29 +00:00
const obj7 = { style: tmp.buttonGroup, children: null };
const obj8 = { variant: "primary", size: "lg", text: null, onPress: null };
const intl3 = tmp2(1236).intl;
2026-08-25 06:04:03 +00:00
obj8[2] = intl3.string(modalSessionId(2855).hDvmYP);
obj8[3] = prop(7948).getAgeVerificationMethods;
obj7[1] = callback(prop(4815).Button, obj8);
items3[1] = callback(prop(5257).ButtonGroup, obj7);
2026-07-29 08:29:29 +00:00
obj5[4] = items3;
2026-08-25 06:04:03 +00:00
mapped = tmp6(tmp2(4813).Stack, obj5);
2026-07-20 16:05:17 +00:00
};