decord/source/modules/age_assurance/native/AgeVerificationMethodsContainer.tsx
2026-08-27 16:17:25 +00:00

102 lines
4.5 KiB
TypeScript

// Module ID: 8659
// Function ID: 8660
// Name: AgeVerificationMethodsContainer
// Dependencies: [19, 8614, 8621, 21, 4445, 712, 8620, 7280, 7285, 4878, 1297, 1236, 5944, 4441, 2887, 5328, 4880, 8619, 5551, 8613, 2]
// Exports: AgeVerificationMethodsContainer
// Module 8659 (AgeVerificationMethodsContainer)
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "noop" /* 19 */;
import { VerificationMethod } from "set" /* 8614 */;
import { SafetyHubLinks } from "SafetyHubView" /* 8621 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4445 */;
const require = arg1;
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { content: null, errorContainer: null, noMethodsText: null, buttonGroup: null };
createCacheKey = { marginTop: ThemesDefault.space.PX_8 };
createCacheKey[0] = createCacheKey;
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" };
createCacheKey[3] = { paddingVertical: 0 };
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");
export const AgeVerificationMethodsContainer = function AgeVerificationMethodsContainer(ageVerificationMethods) {
const prop = ageVerificationMethods.ageVerificationMethods;
const modalSessionId = ageVerificationMethods.modalSessionId;
const tmp = callback2();
let obj = prop(8620);
const isSuspendedUser = obj.useIsSuspendedUser();
const items = [prop];
const effect = React.useEffect(() => {
let obj = prop;
let someResult;
if (prop != null) {
someResult = obj.some((id) => id.id === constants.GOOGLE_WALLET);
}
if (someResult) {
obj = { name: null };
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]);
}
}, items);
obj = { spacing: 16, style: tmp.content, children: null };
obj = { messageType: prop(1297).HelpMessageTypes.INFO, textColor: "text-feedback-info", textVariant: "text-sm/medium", children: null };
const intl = prop(1236).intl;
obj[3] = intl.string(prop(1236).t.El4aXl);
const items1 = [callback(prop(1297).HelpMessage, obj), ];
if (null != prop) {
if (0 !== prop.length) {
let mapped = prop.map((label) => {
closure_0 = label;
return closure_1_6(prop(closure_1_2[18]).TableRow, {
label: label.title,
subLabel: label.description,
onPress() {
return label.onClick(closure_1_1);
},
arrow: true
}, label.id);
});
}
obj1 = { hasIcons: false, children: null };
obj1[1] = mapped;
items1[1] = tmp7(tmp8, obj1);
obj[2] = items1;
const items2 = [tmp6(prop(4878).Stack, obj), ];
let tmp7Result = isSuspendedUser;
if (isSuspendedUser) {
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);
};
obj2[1] = intl4.format(modalSessionId(2887).htWh1G, obj3);
tmp7Result = tmp7(tmp2(4441).Text, obj2);
}
const obj4 = { spacing: 8, align: "center", children: null };
items2[1] = tmp7Result;
obj4[2] = items2;
return tmp6(prop(4878).Stack, obj4);
}
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;
obj6[3] = intl2.string(modalSessionId(2887).cR6336);
const items3 = [callback(prop(4441).Text, obj6), ];
const obj7 = { style: tmp.buttonGroup, children: null };
const obj8 = { variant: "primary", size: "lg", text: null, onPress: null };
const intl3 = tmp2(1236).intl;
obj8[2] = intl3.string(modalSessionId(2887).hDvmYP);
obj8[3] = prop(8619).getAgeVerificationMethods;
obj7[1] = callback(prop(4880).Button, obj8);
items3[1] = callback(prop(5328).ButtonGroup, obj7);
obj5[4] = items3;
mapped = tmp6(tmp2(4878).Stack, obj5);
};