62 lines
4.6 KiB
TypeScript
62 lines
4.6 KiB
TypeScript
/* Metro module 6252; source: modules/age_assurance/native/AgeVerificationEmbeddedIntroScreen.tsx; dependencies: [31, 661, 33, 4501, 697, 5266, 5470, 6253, 6258, 6259, 4572, 5473, 4573, 4813, 6260, 1244, 2742, 5263, 1948, 2] */
|
|
function _fun49363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6430:6, offset: 0x011f7987, size: 250 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
const env0_7 = Reflect.apply(createStyles, value, [{header: {textAlign: 'center'}, helpLink: {marginTop: PX_16,
|
|
textAlign: 'center'}}]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationEmbeddedIntroScreen.tsx');
|
|
exports.default = AgeVerificationEmbeddedIntroScreen;
|
|
}
|
|
|
|
function AgeVerificationEmbeddedIntroScreen({onClose, modalSessionId, classificationId, entryPoint, navigation}) { // fn#49364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6430:386, offset: 0x011f7a81, size: 699 bytes, params: 2, frame: 40
|
|
const styles = useStyles();
|
|
const value2 = (require(5266) /* metro dependency 5266: SafetyHubUtils */).useIsSuspendedUser();
|
|
const ageVerificationMethods = (importDefault(6253) /* metro dependency 6253: useAgeVerificationMethods */)({onClose: onClose,
|
|
classificationId: classificationId, onGoogleWalletSelect: env0_3.useCallback(function() {
|
|
navigation.navigate(require(dependencyMap[6]).AgeVerificationGetStartedModalScenes.GOOGLE_WALLET_VERIFICATION);
|
|
}, [navigation])}).ageVerificationMethods;
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
|
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
|
|
const items2 = [<ShieldSpotIllustration height={100} width={177} />];
|
|
const Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
let value = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
|
|
value = <Text accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary">{value.getAgeVerificationGetStartedTitle(entryPoint)}</Text>;
|
|
items2[1] = <Stack3 align="center" justify="center" spacing={8}>{value}<Text variant="text-md/medium" color="text-strong" style={styles.header}>{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint,
|
|
undefined, value2)}</Text></Stack3>;
|
|
value = <Stack2 align="center" justify="center" spacing={16}>{items2}</Stack2>;
|
|
const AgeVerificationMethodsContainer = (require(6260) /* metro dependency 6260: AgeVerificationMethodsContainer */).AgeVerificationMethodsContainer;
|
|
value = <Stack align="center" justify="center" spacing={24}>{value}<AgeVerificationMethodsContainer ageVerificationMethods={ageVerificationMethods} modalSessionId={modalSessionId} /></Stack>;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
return (
|
|
<ModalScreen>
|
|
<ModalContent>
|
|
{value}
|
|
<Text
|
|
variant="text-xs/medium"
|
|
color="text-muted"
|
|
style={styles.helpLink}
|
|
>
|
|
{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).lG69e1,
|
|
{handleOnHelpUrlHook: function() {
|
|
importDefault(dependencyMap[17]).openUrl(importDefault(dependencyMap[18]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
|
|
}})}
|
|
</Text>
|
|
</ModalContent>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|