188 lines
8.7 KiB
TypeScript
188 lines
8.7 KiB
TypeScript
// Module ID: 7750
|
|
// Function ID: 7751
|
|
// Name: GetStartedScreen
|
|
// Dependencies: [5, 19, 17, 7709, 676, 7716, 21, 4255, 712, 1581, 4471, 7751, 5926, 4251, 5620, 7752, 1236, 7708, 1945, 7710, 4666, 7753, 2]
|
|
// Exports: default
|
|
|
|
// Module 7750 (GetStartedScreen)
|
|
import SafetyHubView from "SafetyHubView";
|
|
import "AgeVerificationModalEntryPoint";
|
|
import get_ActivityIndicator from "openIncodeAgeVerificationModal";
|
|
import { getAgeVerificationGetStartedSteps as closure_6 } from "set";
|
|
import { HelpdeskArticles } from "ME";
|
|
import { SafetyHubLinks } from "SafetyHubView";
|
|
import jsxProd from "LinkExternalSmallIcon";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
let c10;
|
|
let c4;
|
|
let c5;
|
|
let c9;
|
|
let unpackModuleId;
|
|
const require = arg1;
|
|
({ 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 };
|
|
createCacheKey = { paddingHorizontal: require("Themes").space.PX_16, gap: require("Themes").space.PX_16, flex: 1 };
|
|
createCacheKey[0] = createCacheKey;
|
|
createCacheKey[1] = { alignItems: "center", gap: require("Themes").space.PX_8 };
|
|
let obj1 = { alignItems: "center", gap: require("Themes").space.PX_8 };
|
|
createCacheKey[2] = { alignItems: "center", marginTop: -require("Themes").space.PX_8 };
|
|
createCacheKey[3] = { textAlign: "center" };
|
|
createCacheKey[4] = { alignItems: "center" };
|
|
let obj2 = { alignItems: "center", marginTop: -require("Themes").space.PX_8 };
|
|
createCacheKey[5] = { paddingHorizontal: require("Themes").space.PX_16, paddingTop: require("Themes").space.PX_48 };
|
|
let obj3 = { paddingHorizontal: require("Themes").space.PX_16, paddingTop: require("Themes").space.PX_48 };
|
|
createCacheKey[6] = { textAlign: "center", marginBottom: require("Themes").space.PX_16 };
|
|
let obj4 = { textAlign: "center", marginBottom: require("Themes").space.PX_16 };
|
|
createCacheKey[7] = { gap: require("Themes").space.PX_8 };
|
|
createCacheKey = createCacheKey.createStyles(createCacheKey);
|
|
let obj5 = { gap: require("Themes").space.PX_8 };
|
|
let result = require("get ActivityIndicator").fileFinishedImporting("modules/age_assurance/native/AgeVerificationIntroScreen.tsx");
|
|
|
|
export default function GetStartedScreen(onComplete) {
|
|
let c1;
|
|
let loading;
|
|
const modalSessionId = onComplete.modalSessionId;
|
|
const entryPoint = onComplete.entryPoint;
|
|
let importDefault;
|
|
const tmp = createCacheKey();
|
|
let obj = modalSessionId(4471);
|
|
const initiateAgeVerification = obj.useInitiateAgeVerification({ onComplete: onComplete.onClose, entryPoint });
|
|
({ initiateAgeVerification: c1, loading } = initiateAgeVerification);
|
|
let obj1 = modalSessionId(7751);
|
|
const isManualAgeVerificationHidden = obj1.useIsManualAgeVerificationHidden("age_verification_get_started_modal");
|
|
obj = { children: null };
|
|
obj = { style: tmp.getStartedContainer, children: null };
|
|
obj1 = { style: tmp.getStartedHeaderContainer, children: null };
|
|
const items = [callback3(modalSessionId(5926).ShieldSpotIllustration, {}), , ];
|
|
let obj2 = { variant: "heading-xl/bold", color: "mobile-text-heading-primary", style: tmp.getStartedHeaderText, children: null };
|
|
let obj6 = modalSessionId(4471);
|
|
obj2[3] = obj6.getAgeVerificationGetStartedTitle(entryPoint);
|
|
items[1] = callback3(modalSessionId(4251).Text, obj2);
|
|
const obj3 = { variant: "heading-md/medium", color: "text-default", style: tmp.getStartedHeaderText, children: null };
|
|
let obj8 = modalSessionId(4471);
|
|
obj3[3] = obj8.getAgeVerificationGetStartedSubtitle(entryPoint);
|
|
items[2] = callback3(modalSessionId(4251).Text, obj3);
|
|
obj1[1] = items;
|
|
const items1 = [callback4(closure_5, obj1), , ];
|
|
const obj4 = { hasIcons: true, children: null };
|
|
obj4[1] = callback2(modalSessionId).map((children) => {
|
|
const description = children.description;
|
|
let obj = { index: arg1 + 1, tip: null, description: null };
|
|
obj[1] = callback(modalSessionId(4251).Text, { variant: "text-md/medium", color: "mobile-text-heading-primary", children: children.title });
|
|
let tmpResult = null;
|
|
if (null != description) {
|
|
obj = { variant: "text-xs/medium", color: "text-subtle", children: null };
|
|
obj[2] = description;
|
|
tmpResult = tmp(modalSessionId(4251).Text, obj);
|
|
}
|
|
obj[2] = tmpResult;
|
|
return callback(_undefined(7752), obj, arg1);
|
|
});
|
|
items1[1] = callback3(modalSessionId(5620).TableRowGroup, obj4);
|
|
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"], {
|
|
handleOnHelpUrlHook() {
|
|
const obj = _undefined(outer1_2[17]);
|
|
obj.openUrl(_undefined(outer1_2[18]).getArticleURL(outer1_7.TIGGER_PAWTECT_LEARN_MORE));
|
|
const obj2 = _undefined(outer1_2[18]);
|
|
const result = modalSessionId(outer1_2[19]).trackAgeVerificationModalClicked(modalSessionId, modalSessionId(outer1_2[19]).AgeVerificationModalVersion.PRIMARY, modalSessionId(outer1_2[19]).AgeVerificationModalCta.LEARN_MORE);
|
|
}
|
|
});
|
|
obj5[1] = callback3(modalSessionId(4251).Text, obj6);
|
|
items1[2] = callback3(closure_5, obj5);
|
|
obj[1] = items1;
|
|
obj[0] = callback4(closure_5, obj);
|
|
const items2 = [callback3(closure_4, obj), ];
|
|
obj8 = { style: items3, children: null };
|
|
items3 = [tmp.getStartedFooterContainer, { paddingBottom: importDefault(1581)().bottom }];
|
|
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() {
|
|
_undefined(outer1_2[17]).openUrl(outer1_8.APPEALS_LINK);
|
|
const obj = _undefined(outer1_2[17]);
|
|
const result = modalSessionId(outer1_2[19]).trackAgeVerificationModalClicked(modalSessionId, modalSessionId(outer1_2[19]).AgeVerificationModalVersion.PRIMARY, modalSessionId(outer1_2[19]).AgeVerificationModalCta.MANUAL_REVIEW_REQUEST);
|
|
};
|
|
obj10[3] = intl2.format(tmp4(1236).t.pJAxgQ, obj11);
|
|
obj9[1] = tmp9(tmp4(4251).Text, obj10);
|
|
tmp9Result = tmp9(tmp10, obj9);
|
|
}
|
|
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 {
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} 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 {
|
|
let obj1 = v0(outer1_2[19]);
|
|
const result = obj1.trackAgeVerificationModalClicked(v0, v0(outer1_2[19]).AgeVerificationModalVersion.PRIMARY, v0(outer1_2[19]).AgeVerificationModalCta.GET_STARTED);
|
|
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;
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} catch (tmp10) {
|
|
v0 = tmp;
|
|
throw tmp10;
|
|
}
|
|
}
|
|
});
|
|
const obj15 = { color: null };
|
|
obj15[0] = importDefault(712).colors.WHITE;
|
|
obj14[4] = callback3(modalSessionId(7753).LinkExternalSmallIcon, obj15);
|
|
obj14[5] = loading;
|
|
obj13[1] = callback3(modalSessionId(4666).Button, obj14);
|
|
items4[1] = callback3(closure_5, obj13);
|
|
obj8[1] = items4;
|
|
items2[1] = callback4(closure_5, obj8);
|
|
obj12[0] = items2;
|
|
return callback4(closure_11, obj12);
|
|
};
|