122 lines
6.6 KiB
TypeScript
122 lines
6.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] */
|
|
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as SafetyHubUtilsModule from '../../safety_hub/SafetyHubUtils.tsx'; /* Metro dependency 5266 */
|
|
import * as NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
|
|
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
|
|
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
|
|
import * as AgeVerificationMethodsContainerModule from './AgeVerificationMethodsContainer.tsx'; /* Metro dependency 6260 */
|
|
|
|
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});
|
|
let value = JsxRuntimeModule;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const PX_16 = (Native).space.PX_16;
|
|
const env0_7 = Reflect.apply(createStyles, value, [{header: {textAlign: 'center'}, helpLink: {marginTop: PX_16,
|
|
textAlign: 'center'}}]);
|
|
(FileImportTrackerModule).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 = (SafetyHubUtilsModule).useIsSuspendedUser();
|
|
const ageVerificationMethods = (importDefault(6253) /* metro dependency 6253: useAgeVerificationMethods */)({onClose: onClose,
|
|
classificationId: classificationId, onGoogleWalletSelect: ReactModule.useCallback(function() {
|
|
navigation.navigate(require(dependencyMap[6]).AgeVerificationGetStartedModalScenes.GOOGLE_WALLET_VERIFICATION);
|
|
}, [navigation])}).ageVerificationMethods;
|
|
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
|
|
const ModalContent = (ModalContentNativeModule).ModalContent;
|
|
const Stack = (StackNativeModule).Stack;
|
|
const Stack2 = (StackNativeModule).Stack;
|
|
const ShieldSpotIllustration = (NativeModule).ShieldSpotIllustration;
|
|
const items2 = [
|
|
<ShieldSpotIllustration height={100} width={177} />,
|
|
];
|
|
const Stack3 = (StackNativeModule).Stack;
|
|
const Text = (TextModule).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 = (AgeVerificationMethodsContainerModule).AgeVerificationMethodsContainer;
|
|
value = (
|
|
<Stack
|
|
align="center"
|
|
justify="center"
|
|
spacing={24}
|
|
>
|
|
{value}
|
|
<AgeVerificationMethodsContainer
|
|
ageVerificationMethods={ageVerificationMethods}
|
|
modalSessionId={modalSessionId}
|
|
/>
|
|
</Stack>
|
|
);
|
|
const intl = (IndexNativeModule).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>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun49363, 6252, [31, 661, 33, 4501, 697, 5266, 5470, 6253, 6258, 6259, 4572, 5473, 4573, 4813, 6260,
|
|
1244, 2742, 5263, 1948,
|
|
2]) /* metro module 6252, dependencies: [31, 661, 33, 4501, 697, 5266, 5470, 6253, 6258, 6259, 4572, 5473, 4573, 4813, 6260, 1244, 2742, 5263, 1948, 2] */;
|