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

195 lines
9.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6726
// Function ID: 6727
2026-07-20 16:05:17 +00:00
// Name: GetStartedScreen
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 19, 17, 5432, 676, 5443, 21, 4668, 712, 1629, 4997, 6727, 5452, 4739, 6317, 6728, 1236, 5433, 1994, 5259, 4750, 6729, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 6726 (GetStartedScreen)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1629 */;
import closure_3 from "asyncGeneratorStep" /* 5 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { getAgeVerificationGetStartedSteps as closure_6 } from "set" /* 5432 */;
import { HelpdeskArticles } from "ME" /* 676 */;
import { SafetyHubLinks } from "SafetyHubView" /* 5443 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ ScrollView: c4, View: c5 } = get_ActivityIndicator);
({ jsx: c9, jsxs: c10, Fragment: unpackModuleId } = jsxProd);
createCacheKey = { getStartedContainer: null, getStartedHeaderContainer: null, ageGroupLearnMoreContainer: null, getStartedHeaderText: null, getStartedRequestTextContainer: null, getStartedFooterContainer: null, getStartedRequestText: null, getStartedFooterButtonsContainer: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { paddingHorizontal: ThemesDefault.space.PX_16, gap: ThemesDefault.space.PX_16, flex: 1 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { alignItems: "center", gap: ThemesDefault.space.PX_8 };
let obj1 = { alignItems: "center", gap: ThemesDefault.space.PX_8 };
createCacheKey[2] = { alignItems: "center", marginTop: -ThemesDefault.space.PX_8 };
2026-07-29 08:29:29 +00:00
createCacheKey[3] = { textAlign: "center" };
createCacheKey[4] = { alignItems: "center" };
2026-08-24 06:08:38 +00:00
let obj2 = { alignItems: "center", marginTop: -ThemesDefault.space.PX_8 };
createCacheKey[5] = { paddingHorizontal: ThemesDefault.space.PX_16, paddingTop: ThemesDefault.space.PX_48 };
let obj3 = { paddingHorizontal: ThemesDefault.space.PX_16, paddingTop: ThemesDefault.space.PX_48 };
createCacheKey[6] = { textAlign: "center", marginBottom: ThemesDefault.space.PX_16 };
let obj4 = { textAlign: "center", marginBottom: ThemesDefault.space.PX_16 };
createCacheKey[7] = { gap: ThemesDefault.space.PX_8 };
let closure_12 = createCacheKey.createStyles(createCacheKey);
let obj5 = { gap: ThemesDefault.space.PX_8 };
let result = require("set").fileFinishedImporting("modules/age_assurance/native/AgeVerificationIntroScreen.tsx");
2026-07-20 16:05:17 +00:00
export default function GetStartedScreen(onComplete) {
const modalSessionId = onComplete.modalSessionId;
const entryPoint = onComplete.entryPoint;
2026-08-24 06:08:38 +00:00
importDefault = undefined;
const tmp = callback5();
let obj = modalSessionId(4997);
2026-07-29 08:29:29 +00:00
const initiateAgeVerification = obj.useInitiateAgeVerification({ onComplete: onComplete.onClose, entryPoint });
({ initiateAgeVerification: c1, loading } = initiateAgeVerification);
2026-08-24 06:08:38 +00:00
obj1 = modalSessionId(6727);
2026-07-20 16:05:17 +00:00
const isManualAgeVerificationHidden = obj1.useIsManualAgeVerificationHidden("age_verification_get_started_modal");
2026-07-29 08:29:29 +00:00
obj = { children: null };
obj = { style: tmp.getStartedContainer, children: null };
obj1 = { style: tmp.getStartedHeaderContainer, children: null };
2026-08-24 06:08:38 +00:00
const items = [callback3(modalSessionId(5452).ShieldSpotIllustration, {}), , ];
2026-07-29 08:29:29 +00:00
let obj2 = { variant: "heading-xl/bold", color: "mobile-text-heading-primary", style: tmp.getStartedHeaderText, children: null };
2026-08-24 06:08:38 +00:00
let obj6 = modalSessionId(4997);
2026-07-29 08:29:29 +00:00
obj2[3] = obj6.getAgeVerificationGetStartedTitle(entryPoint);
2026-08-24 06:08:38 +00:00
items[1] = callback3(modalSessionId(4739).Text, obj2);
2026-07-29 08:29:29 +00:00
const obj3 = { variant: "heading-md/medium", color: "text-default", style: tmp.getStartedHeaderText, children: null };
2026-08-24 06:08:38 +00:00
let obj8 = modalSessionId(4997);
2026-07-29 08:29:29 +00:00
obj3[3] = obj8.getAgeVerificationGetStartedSubtitle(entryPoint);
2026-08-24 06:08:38 +00:00
items[2] = callback3(modalSessionId(4739).Text, obj3);
2026-07-29 08:29:29 +00:00
obj1[1] = items;
const items1 = [callback4(closure_5, obj1), , ];
2026-08-24 06:08:38 +00:00
const obj4 = {
hasIcons: true,
children: callback2(modalSessionId).map((children) => {
const description = children.description;
let obj = { index: arg1 + 1, tip: callback(modalSessionId(4739).Text, { variant: "text-md/medium", color: "mobile-text-heading-primary", children: children.title }), description: null };
let tmpResult = null;
if (null != description) {
obj = { variant: "text-xs/medium", color: "text-subtle", children: null };
obj[2] = description;
tmpResult = tmp(modalSessionId(4739).Text, obj);
}
obj[2] = tmpResult;
return callback(_undefined(6728), obj, arg1);
})
};
items1[1] = callback3(modalSessionId(6317).TableRowGroup, obj4);
2026-07-29 08:29:29 +00:00
const obj5 = { style: tmp.ageGroupLearnMoreContainer, children: null };
obj6 = { variant: "text-xs/medium", color: "text-muted", children: null };
const intl = modalSessionId(1236).intl;
obj6[2] = intl.format(modalSessionId(1236).t["L+FgkZ"], {
2026-07-20 16:05:17 +00:00
handleOnHelpUrlHook() {
2026-08-24 06:08:38 +00:00
const obj = _undefined(closure_1_2[17]);
obj.openUrl(_undefined(closure_1_2[18]).getArticleURL(closure_1_7.TIGGER_PAWTECT_LEARN_MORE));
const obj2 = _undefined(closure_1_2[18]);
const result = modalSessionId(closure_1_2[19]).trackAgeVerificationModalClicked(modalSessionId, modalSessionId(closure_1_2[19]).AgeVerificationModalVersion.PRIMARY, modalSessionId(closure_1_2[19]).AgeVerificationModalCta.LEARN_MORE);
2026-07-20 16:05:17 +00:00
}
});
2026-08-24 06:08:38 +00:00
obj5[1] = callback3(modalSessionId(4739).Text, obj6);
2026-07-29 08:29:29 +00:00
items1[2] = callback3(closure_5, obj5);
obj[1] = items1;
obj[0] = callback4(closure_5, obj);
2026-07-20 16:05:17 +00:00
const items2 = [callback3(closure_4, obj), ];
2026-07-29 08:29:29 +00:00
obj8 = { style: items3, children: null };
2026-08-24 06:08:38 +00:00
items3 = [tmp.getStartedFooterContainer, { paddingBottom: useSafeAreaInsetsDefault().bottom }];
2026-07-29 08:29:29 +00:00
let tmp9Result = !isManualAgeVerificationHidden;
if (!isManualAgeVerificationHidden) {
const obj9 = { style: null, children: null };
obj9[0] = tmp.getStartedRequestTextContainer;
const obj10 = { variant: "text-xs/medium", color: "text-muted", style: null, children: null };
obj10[2] = tmp.getStartedRequestText;
const intl2 = tmp4(1236).intl;
const obj11 = { handleOnRequestHook: null };
obj11[0] = function handleOnRequestHook() {
2026-08-24 06:08:38 +00:00
_undefined(closure_1_2[17]).openUrl(closure_1_8.APPEALS_LINK);
const obj = _undefined(closure_1_2[17]);
const result = modalSessionId(closure_1_2[19]).trackAgeVerificationModalClicked(modalSessionId, modalSessionId(closure_1_2[19]).AgeVerificationModalVersion.PRIMARY, modalSessionId(closure_1_2[19]).AgeVerificationModalCta.MANUAL_REVIEW_REQUEST);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj10[3] = intl2.format(tmp4(1236).t.pJAxgQ, obj11);
2026-08-24 06:08:38 +00:00
obj9[1] = tmp9(tmp4(4739).Text, obj10);
2026-07-29 08:29:29 +00:00
tmp9Result = tmp9(tmp10, obj9);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj12 = { children: null };
const items4 = [tmp9Result, ];
const obj13 = { style: tmp.getStartedFooterButtonsContainer, children: null };
const obj14 = { variant: "primary", size: "lg", text: null, onPress: null, icon: null, loading: null, iconPosition: "end" };
const intl3 = tmp4(1236).intl;
obj14[2] = intl3.string(modalSessionId(1236).t.SJMnkX);
obj14[3] = callback(function*() {
if (v0 === 2) {
v0 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
v0 = 2;
if (0 === v02) {
if (arg0 === 1) {
v0 = 3;
throw arg1;
} else if (arg0 === 2) {
v0 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
obj1 = v0(closure_1_2[19]);
const result = obj1.trackAgeVerificationModalClicked(v0, v0(closure_1_2[19]).AgeVerificationModalVersion.PRIMARY, v0(closure_1_2[19]).AgeVerificationModalCta.GET_STARTED);
2026-07-29 08:29:29 +00:00
v02 = 1;
v0 = 1;
obj1 = { value: null, done: false };
obj1[0] = v02();
return obj1;
}
} else if (arg0 === 1) {
v0 = 3;
throw arg1;
} else if (arg0 === 2) {
v0 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
v0 = 3;
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp10) {
v0 = tmp;
throw tmp10;
}
}
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const arr3 = callback2(modalSessionId);
const obj7 = {
handleOnHelpUrlHook() {
const obj = _undefined(closure_1_2[17]);
obj.openUrl(_undefined(closure_1_2[18]).getArticleURL(closure_1_7.TIGGER_PAWTECT_LEARN_MORE));
const obj2 = _undefined(closure_1_2[18]);
const result = modalSessionId(closure_1_2[19]).trackAgeVerificationModalClicked(modalSessionId, modalSessionId(closure_1_2[19]).AgeVerificationModalVersion.PRIMARY, modalSessionId(closure_1_2[19]).AgeVerificationModalCta.LEARN_MORE);
}
};
const tmp2 = importDefault;
const tmp8 = closure_11;
obj14[4] = callback3(modalSessionId(6729).LinkExternalSmallIcon, { color: ThemesDefault.colors.WHITE });
2026-07-29 08:29:29 +00:00
obj14[5] = loading;
2026-08-24 06:08:38 +00:00
obj13[1] = callback3(modalSessionId(4750).Button, obj14);
2026-07-20 16:05:17 +00:00
items4[1] = callback3(closure_5, obj13);
2026-07-29 08:29:29 +00:00
obj8[1] = items4;
items2[1] = callback4(closure_5, obj8);
obj12[0] = items2;
2026-08-24 06:08:38 +00:00
return callback4(tmp8, obj12);
2026-07-20 16:05:17 +00:00
};