This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,61 +1,121 @@
/* 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});
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 */;
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 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const PX_16 = (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');
(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 = (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>
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-xs/medium"
color="text-muted"
style={styles.helpLink}
variant="text-md/medium"
color="text-strong"
style={styles.header}
>
{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).lG69e1,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[17]).openUrl(importDefault(dependencyMap[18]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
}})}
{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint,
undefined, value2)}
</Text>
</ModalContent>
</ModalScreen>
);
</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] */;
@@ -1,145 +1,157 @@
/* Metro module 5470; source: modules/age_assurance/native/AgeVerificationGetStartedModal.tsx; dependencies: [31, 33, 4501, 697, 5080, 5282, 5471, 6251, 6252, 6262, 491, 5074, 5280, 1244, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import AgeVerificationIntroScreen from './AgeVerificationIntroScreen.tsx'; /* Metro dependency 5471 */
import AgeVerificationRetryScreen from './AgeVerificationRetryScreen.tsx'; /* Metro dependency 6251 */
import AgeVerificationEmbeddedIntroScreen from './AgeVerificationEmbeddedIntroScreen.tsx'; /* Metro dependency 6252 */
import GoogleWalletVerificationScreen from './GoogleWalletVerificationScreen.tsx'; /* Metro dependency 6262 */
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 Module00491Module from '../../../by-id/module-00491.js'; /* Metro dependency 491 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
function _fun48062(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:6, offset: 0x011d8ae4, size: 272 bytes, params: 8, frame: 21
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(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_5 = Reflect.apply(createStyles, createStylesModule,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule,
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER, shadowColor: 'transparent'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationGetStartedModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationGetStartedModal.tsx');
exports.default = AgeVerificationGetStartedModal;
exports.AgeVerificationGetStartedModalScenes = {INTRO: 'INTRO', RETRY: 'RETRY',
EXPRESSIVE_INTRO: 'EXPRESSIVE_INTRO', GOOGLE_WALLET_VERIFICATION: 'GOOGLE_WALLET_VERIFICATION'};
}
function getInitialRouteName(a0, a1) { // fn#48063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:395, offset: 0x011d8bf4, size: 43 bytes, params: 3, frame: 3
const binding = env0_6;
return a1 ? binding.EXPRESSIVE_INTRO : a0 ? binding.RETRY : binding.INTRO;
}
function AgeVerificationGetStartedModal({entryPoint, isRetry, useEmbeddedMethods, classificationId, onComplete}) { // fn#48064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:583, offset: 0x011d8c1f, size: 334 bytes, params: 2, frame: 22
useEmbeddedMethods = !(useEmbeddedMethods === undefined) && useEmbeddedMethods;
const env0_3 = classificationId;
const styles = useStyles();
const binding = env0_3;
const value2 = binding.useMemo(_fun48065, []);
const value3 = binding.useMemo(_fun48066, [styles, value2, classificationId, onComplete, entryPoint]);
binding.useEffect(_fun48079, [value2, entryPoint, binding.useMemo(function() {
var r0;
var isRetryBinding;
var property;
if (useEmbeddedMethods) {
r0 = require(dependencyMap[11]).AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
} else {
isRetryBinding = isRetry;
property = require(dependencyMap[11]).AgeVerificationModalVersion;
r0 = isRetryBinding ? property.RETRY : property.PRIMARY;
}
return r0;
}, [useEmbeddedMethods, isRetry])]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const navigatorProps = {screens: value3, initialRouteName: getInitialRouteName(isRetry, useEmbeddedMethods)};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
navigatorProps.headerBackTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
return <Navigator {...navigatorProps} />;
}
function _fun48065() { // fn#48065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:728, offset: 0x011d8d6d, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(491) /* metro dependency 491 */).v4();
}
function _fun48066() { // fn#48066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:764, offset: 0x011d8d92, size: 38 bytes, params: 1, frame: 19
return getScreens_48067(styles, env0_6, entryPoint, classificationId, onComplete);
}
function _fun48079() { // fn#48079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1910, offset: 0x011d90df, size: 55 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
value.trackAgeVerificationModalViewed(env0_6, env0_7, entryPoint);
}
function getScreens_48067(a0, a1, a2, a3, a4) { // fn#48067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:768, offset: 0x011d8db8, size: 362 bytes, params: 6, frame: 21
var environment;
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const env0_3 = a4;
const closure = getScreens_48067CloseModal;
const object6 = {};
const value = environment.__proto__.__proto__;
const INTRO = env2_6.INTRO;
const object7 = {};
object7.headerStyle = a0.headerStyle;
object7.headerTitle = function() {
return null;
};
object7.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object7.render = render_48071;
object6[INTRO] = object7;
const RETRY = env2_6.RETRY;
const object8 = {};
object8.headerStyle = a0.headerStyle;
object8.headerTitle = function() {
return null;
};
object8.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object8.render = render_48073;
object6[RETRY] = object8;
const EXPRESSIVE_INTRO = env2_6.EXPRESSIVE_INTRO;
const object9 = {};
object9.headerStyle = a0.headerStyle;
object9.headerTitle = function() {
return null;
};
object9.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object9.render = render_48075;
object6[EXPRESSIVE_INTRO] = object9;
const GOOGLE_WALLET_VERIFICATION = env2_6.GOOGLE_WALLET_VERIFICATION;
const object10 = {};
object10.headerStyle = a0.headerStyle;
object10.headerTitle = function() {
return null;
};
object10.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object10.render = render_48077;
object6[GOOGLE_WALLET_VERIFICATION] = object10;
return object6;
}
function getScreens_48067CloseModal() { // fn#48068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:814, owner: getScreens_48067.closeModal, offset: 0x011d8f22, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function closeModalWithOnComplete() { // fn#48069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:857, owner: getScreens_48067.closeModalWithOnComplete, offset: 0x011d8f47, size: 33 bytes, params: 1, frame: 11
getScreens_48067CloseModal();
if (env0_3 != null) {
env0_3();
function getInitialRouteName(a0, a1) { // fn#48063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:395, offset: 0x011d8bf4, size: 43 bytes, params: 3, frame: 3
const binding = env0_6;
return a1 ? binding.EXPRESSIVE_INTRO : a0 ? binding.RETRY : binding.INTRO;
}
function AgeVerificationGetStartedModal({entryPoint, isRetry, useEmbeddedMethods, classificationId, onComplete}) { // fn#48064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:583, offset: 0x011d8c1f, size: 334 bytes, params: 2, frame: 22
useEmbeddedMethods = !(useEmbeddedMethods === undefined) && useEmbeddedMethods;
const classificationId2 = classificationId;
const styles = useStyles();
const binding = classificationId2;
const value2 = binding.useMemo(_fun48065, []);
const value3 = binding.useMemo(_fun48066, [styles, value2, classificationId, onComplete, entryPoint]);
binding.useEffect(_fun48079, [value2, entryPoint, binding.useMemo(function() {
var r0;
var isRetryBinding;
var property;
if (useEmbeddedMethods) {
r0 = require(dependencyMap[11]).AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
} else {
isRetryBinding = isRetry;
property = require(dependencyMap[11]).AgeVerificationModalVersion;
r0 = isRetryBinding ? property.RETRY : property.PRIMARY;
}
return r0;
}, [useEmbeddedMethods, isRetry])]);
const Navigator = (NavigatorNativeModule).Navigator;
const navigatorProps = {screens: value3, initialRouteName: getInitialRouteName(isRetry, useEmbeddedMethods)};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
navigatorProps.headerBackTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX']);
return <Navigator {...navigatorProps} />;
function _fun48065() { // fn#48065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:728, offset: 0x011d8d6d, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (Module00491Module).v4();
}
function _fun48066() { // fn#48066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:764, offset: 0x011d8d92, size: 38 bytes, params: 1, frame: 19
return getScreens_48067(styles, env0_6, entryPoint, classificationId, onComplete);
function getScreens_48067(a0, a1, a2, a3, a4) { // fn#48067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:768, offset: 0x011d8db8, size: 362 bytes, params: 6, frame: 21
var environment;
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const env0_3 = a4;
const closeModal2 = closeModal;
const object = {};
const value = environment.__proto__.__proto__;
const INTRO = env2_6.INTRO;
const object2 = {};
object2.headerStyle = a0.headerStyle;
object2.headerTitle = function() {
return null;
};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closeModal2);
object2.render = render_48071;
object[INTRO] = object2;
const RETRY = env2_6.RETRY;
const object3 = {};
object3.headerStyle = a0.headerStyle;
object3.headerTitle = function() {
return null;
};
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closeModal2);
object3.render = render_48073;
object[RETRY] = object3;
const EXPRESSIVE_INTRO = env2_6.EXPRESSIVE_INTRO;
const object4 = {};
object4.headerStyle = a0.headerStyle;
object4.headerTitle = function() {
return null;
};
object4.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closeModal2);
object4.render = render_48075;
object[EXPRESSIVE_INTRO] = object4;
const GOOGLE_WALLET_VERIFICATION = env2_6.GOOGLE_WALLET_VERIFICATION;
const object5 = {};
object5.headerStyle = a0.headerStyle;
object5.headerTitle = function() {
return null;
};
object5.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object5.render = render_48077;
object[GOOGLE_WALLET_VERIFICATION] = object5;
return object;
function closeModal() { // fn#48068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:814, owner: getScreens_48067.closeModal, offset: 0x011d8f22, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (ModalActionCreators).pop();
}
function closeModalWithOnComplete() { // fn#48069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:857, owner: getScreens_48067.closeModalWithOnComplete, offset: 0x011d8f47, size: 33 bytes, params: 1, frame: 11
closeModal();
if (env0_3 != null) {
env0_3();
}
}
function getScreens_48067Render() { // fn#48071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1013, owner: getScreens_48067.render, offset: 0x011d8f68, size: 69 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModal} modalSessionId={require} entryPoint={importDefault} />)(AgeVerificationIntroScreen);
}
function getScreens_48067Render_48073() { // fn#48073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1197, owner: getScreens_48067.render, offset: 0x011d8fad, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModal} modalSessionId={require} />)(AgeVerificationRetryScreen);
}
function getScreens_48067Render_48075(a0, a1) { // fn#48075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1379, owner: getScreens_48067.render, offset: 0x011d8fe9, size: 86 bytes, params: 3, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} classificationId={importAll} entryPoint={importDefault} navigation={a1} />)(AgeVerificationEmbeddedIntroScreen);
}
function getScreens_48067Render_48077() { // fn#48077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1622, owner: getScreens_48067.render, offset: 0x011d903f, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} />)(GoogleWalletVerificationScreen);
}
}
}
function _fun48079() { // fn#48079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1910, offset: 0x011d90df, size: 55 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
value.trackAgeVerificationModalViewed(env0_6, env0_7, entryPoint);
}
}
}
function getScreens_48067Render() { // fn#48071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1013, owner: getScreens_48067.render, offset: 0x011d8f68, size: 69 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_48067CloseModal} modalSessionId={require} entryPoint={importDefault} />)(importDefault(5471) /* metro dependency 5471: AgeVerificationIntroScreen */);
}
function getScreens_48067Render_48073() { // fn#48073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1197, owner: getScreens_48067.render, offset: 0x011d8fad, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_48067CloseModal} modalSessionId={require} />)(importDefault(6251) /* metro dependency 6251: AgeVerificationRetryScreen */);
}
function getScreens_48067Render_48075(a0, a1) { // fn#48075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1379, owner: getScreens_48067.render, offset: 0x011d8fe9, size: 86 bytes, params: 3, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} classificationId={importAll} entryPoint={importDefault} navigation={a1} />)(importDefault(6252) /* metro dependency 6252: AgeVerificationEmbeddedIntroScreen */);
}
function getScreens_48067Render_48077() { // fn#48077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5648:1622, owner: getScreens_48067.render, offset: 0x011d903f, size: 60 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={closeModalWithOnComplete} modalSessionId={require} />)(importDefault(6262) /* metro dependency 6262: GoogleWalletVerificationScreen */);
}
global.__d(_fun48062, 5470, [31, 33, 4501, 697, 5080, 5282, 5471, 6251, 6252, 6262, 491, 5074, 5280, 1244,
2]) /* metro module 5470, dependencies: [31, 33, 4501, 697, 5080, 5282, 5471, 6251, 6252, 6262, 491, 5074, 5280, 1244, 2] */;
@@ -1,157 +1,211 @@
/* Metro module 5471; source: modules/age_assurance/native/AgeVerificationIntroScreen.tsx; dependencies: [5, 31, 27, 5262, 661, 5267, 33, 4501, 697, 1585, 4813, 5472, 5473, 4573, 6231, 6237, 1244, 5263, 1948, 5074, 4578, 6249, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import AgeVerificationActionCreatorsNative from '../AgeVerificationActionCreators.native.tsx'; /* Metro dependency 5263 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as AgeVerificationConstantsModule from '../AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
import * as SafetyHubConstantsModule from '../../safety_hub/SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as HideManualAgeVerificationExperimentModule from '../HideManualAgeVerificationExperiment.tsx'; /* Metro dependency 5472 */
import * as NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as LinkExternalSmallIconModule from '../../../design/components/Icon/native/redesign/generated/LinkExternalSmallIcon.tsx'; /* Metro dependency 6249 */
function _fun48080(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:6, offset: 0x011d9116, size: 572 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_4 = value.ScrollView;
const env0_5 = value.View;
const env0_6 = (require(5262) /* metro dependency 5262: AgeVerificationConstants */).getAgeVerificationGetStartedSteps;
const env0_7 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_8 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
const env0_11 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
object = {};
const object2 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
object2.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.gap = PX_16;
object4.flex = 1;
object3.getStartedContainer = object4;
object2.gap = PX_16;
object2.flex = 1;
object.getStartedContainer = object2;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.getStartedHeaderContainer = {alignItems: 'center', gap: PX_8};
object.getStartedHeaderContainer = {alignItems: 'center', gap: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.ageGroupLearnMoreContainer = {alignItems: 'center', marginTop: -PX_8};
object3.getStartedHeaderText = {textAlign: 'center'};
object3.getStartedRequestTextContainer = {alignItems: 'center'};
const object5 = {};
object.ageGroupLearnMoreContainer = {alignItems: 'center', marginTop: -PX_8};
object.getStartedHeaderText = {textAlign: 'center'};
object.getStartedRequestTextContainer = {alignItems: 'center'};
const object6 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
object6.paddingHorizontal = PX_16;
const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48;
object5.paddingTop = PX_48;
object3.getStartedFooterContainer = object5;
object6.paddingTop = PX_48;
object.getStartedFooterContainer = object6;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.getStartedRequestText = {textAlign: 'center', marginBottom: PX_16};
object.getStartedRequestText = {textAlign: 'center', marginBottom: PX_16};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.getStartedFooterButtonsContainer = {gap: PX_8};
const env0_12 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationIntroScreen.tsx');
object.getStartedFooterButtonsContainer = {gap: PX_8};
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationIntroScreen.tsx');
exports.default = GetStartedScreen;
}
function GetStartedScreen({modalSessionId, onClose, entryPoint}) { // fn#48081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:983, offset: 0x011d9352, size: 1052 bytes, params: 2, frame: 36
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value2 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useInitiateAgeVerification({onComplete: onClose,
entryPoint: entryPoint});
const loading = value2.loading;
const env0_1 = value2.initiateAgeVerification;
const value3 = (require(5472) /* metro dependency 5472: HideManualAgeVerificationExperiment */).useIsManualAgeVerificationHidden('age_verification_get_started_modal');
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
const items3 = [<ShieldSpotIllustration />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let getStartedHeaderText = styles.getStartedHeaderText;
items3[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={getStartedHeaderText}>{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedTitle(entryPoint)}</Text>;
getStartedHeaderText = styles.getStartedHeaderText;
items3[2] = <Text variant="heading-md/medium" color="text-default" style={getStartedHeaderText}>{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint)}</Text>;
const items2 = [<View style={styles.getStartedHeaderContainer}>{items3}</View>];
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items2[1] = <TableRowGroup hasIcons>{getAgeVerificationGetStartedSteps(modalSessionId).map(_fun48082)}</TableRowGroup>;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = <View style={styles.ageGroupLearnMoreContainer}><Text variant="text-xs/medium" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook})}</Text></View>;
const scrollView = <ScrollView><View style={styles.getStartedContainer}>{items2}</View></ScrollView>;
const getStartedFooterContainer = styles.getStartedFooterContainer;
const items4 = [getStartedFooterContainer];
items4[1] = {paddingBottom: bottom};
const r8 = !value3 && <View style={styles.getStartedRequestTextContainer}><Text variant="text-xs/medium" color="text-muted" style={styles.getStartedRequestText}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.pJAxgQ,
{handleOnRequestHook: handleOnRequestHook})}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const object = {'variant': 'primary', 'size': 'lg'};
const string = intl.string;
const SJMnkX = (require(1244) /* metro dependency 1244: indexNative */).t.SJMnkX;
object.text = Reflect.apply(string, intl, [SJMnkX]);
object.onPress = env0_3(_fun48086);
const LinkExternalSmallIcon = (require(6249) /* metro dependency 6249: LinkExternalSmallIcon */).LinkExternalSmallIcon;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
object.icon = <LinkExternalSmallIcon color={WHITE} />;
object.loading = loading;
object.iconPosition = 'end';
return (
<>
{scrollView}
<View style={items4}>
{r8}
<View style={styles.getStartedFooterButtonsContainer}>
<Button {...object} />
</View>
function GetStartedScreen({modalSessionId, onClose, entryPoint}) { // fn#48081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:983, offset: 0x011d9352, size: 1052 bytes, params: 2, frame: 36
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value2 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useInitiateAgeVerification({onComplete: onClose,
entryPoint: entryPoint});
const loading = value2.loading;
const env0_1 = value2.initiateAgeVerification;
const value3 = (HideManualAgeVerificationExperimentModule).useIsManualAgeVerificationHidden('age_verification_get_started_modal');
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const ShieldSpotIllustration = (NativeModule).ShieldSpotIllustration;
const items3 = [
<ShieldSpotIllustration />,
];
const Text = (TextModule).Text;
let getStartedHeaderText = styles.getStartedHeaderText;
items3[1] = (
<Text
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={getStartedHeaderText}
>
{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedTitle(entryPoint)}
</Text>
);
getStartedHeaderText = styles.getStartedHeaderText;
items3[2] = (
<Text
variant="heading-md/medium"
color="text-default"
style={getStartedHeaderText}
>
{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint)}
</Text>
);
const items2 = [
<View style={styles.getStartedHeaderContainer}>
{items3}
</View>,
];
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
items2[1] = (
<TableRowGroup hasIcons>
{getAgeVerificationGetStartedSteps(modalSessionId).map(_fun48082)}
</TableRowGroup>
);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[2] = (
<View style={styles.ageGroupLearnMoreContainer}>
<Text variant="text-xs/medium" color="text-muted">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook_48083})}
</Text>
</View>
</>
);
}
);
const scrollView = (
<ScrollView>
<View style={styles.getStartedContainer}>
{items2}
</View>
</ScrollView>
);
const getStartedFooterContainer = styles.getStartedFooterContainer;
const items4 = [getStartedFooterContainer];
items4[1] = {paddingBottom: bottom};
const r8 = !value3 && <View style={styles.getStartedRequestTextContainer}><Text variant="text-xs/medium" color="text-muted" style={styles.getStartedRequestText}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.pJAxgQ,
{handleOnRequestHook: handleOnRequestHook})}</Text></View>;
const Button = (ButtonNativeModule).Button;
const object2 = {'variant': 'primary', 'size': 'lg'};
const string = intl.string;
const SJMnkX = (require(1244) /* metro dependency 1244: indexNative */).t.SJMnkX;
object2.text = Reflect.apply(string, intl, [SJMnkX]);
object2.onPress = Module00005(_fun48086);
const LinkExternalSmallIcon = (LinkExternalSmallIconModule).LinkExternalSmallIcon;
const WHITE = (Native).colors.WHITE;
object2.icon = <LinkExternalSmallIcon color={WHITE} />;
object2.loading = loading;
object2.iconPosition = 'end';
return (
<>
{scrollView}
<View style={items4}>
{r8}
<View style={styles.getStartedFooterButtonsContainer}>
<Button {...object2} />
</View>
</View>
</>
);
function _fun48082({title, description}, a1) { // fn#48082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:1816, offset: 0x011d976e, size: 176 bytes, params: 3, frame: 21
const Text = (TextModule).Text;
const value = environment.__proto__;
return ((Component) => <Component index={a1 + 1} tip={<Text variant="text-md/medium" color="mobile-text-heading-primary">{title}</Text>} description={description != null ? <Text variant="text-xs/medium" color="text-subtle">{description}</Text> : null} key={a1} />)(importDefault(6237) /* metro dependency 6237: SafetyTipsRow */);
}
function _fun48082({title, description}, a1) { // fn#48082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:1816, offset: 0x011d976e, size: 176 bytes, params: 3, frame: 21
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const value = environment.__proto__;
return ((Component) => <Component index={a1 + 1} tip={<Text variant="text-md/medium" color="mobile-text-heading-primary">{title}</Text>} description={description != null ? <Text variant="text-xs/medium" color="text-subtle">{description}</Text> : null} key={a1} />)(importDefault(6237) /* metro dependency 6237: SafetyTipsRow */);
}
function GetStartedScreenHandleOnHelpUrlHook() { // fn#48083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2252, owner: GetStartedScreen.handleOnHelpUrlHook, offset: 0x011d981e, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const defaultImport2 = HelpdeskUtils;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, LEARN_MORE]);
}
function GetStartedScreenHandleOnHelpUrlHook() { // fn#48083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2252, owner: GetStartedScreen.handleOnHelpUrlHook, offset: 0x011d981e, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, LEARN_MORE]);
}
function handleOnRequestHook() { // fn#48084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2759, owner: GetStartedScreen.handleOnRequestHook, offset: 0x011d98b3, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, MANUAL_REVIEW_REQUEST]);
}
function handleOnRequestHook() { // fn#48084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:2759, owner: GetStartedScreen.handleOnRequestHook, offset: 0x011d98b3, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const PRIMARY = AgeVerificationModalVersion.PRIMARY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, PRIMARY, MANUAL_REVIEW_REQUEST]);
}
function* _fun48086() { // fn#48086, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:3107, offset: 0x011d993a, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
value = binding(binding2[19]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[19]).AgeVerificationModalVersion;
var PRIMARY = AgeVerificationModalVersion.PRIMARY;
var AgeVerificationModalCta = binding(binding2[19]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, PRIMARY, GET_STARTED]);
yield importDefault();
}
}
function* _fun48086() { // fn#48086, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5649:3107, offset: 0x011d993a, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
value = binding(binding2[19]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[19]).AgeVerificationModalVersion;
var PRIMARY = AgeVerificationModalVersion.PRIMARY;
var AgeVerificationModalCta = binding(binding2[19]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, PRIMARY, GET_STARTED]);
yield importDefault();
}
}
global.__d(_fun48080, 5471, [5, 31, 27, 5262, 661, 5267, 33, 4501, 697, 1585, 4813, 5472, 5473, 4573, 6231, 6237,
1244, 5263, 1948, 5074, 4578, 6249,
2]) /* metro module 5471, dependencies: [5, 31, 27, 5262, 661, 5267, 33, 4501, 697, 1585, 4813, 5472, 5473, 4573, 6231, 6237, 1244, 5263, 1948, 5074, 4578, 6249, 2] */;
@@ -1,118 +1,181 @@
/* Metro module 6260; source: modules/age_assurance/native/AgeVerificationMethodsContainer.tsx; dependencies: [31, 5262, 5267, 33, 4501, 697, 5266, 4826, 4831, 4572, 1305, 1244, 6231, 4573, 2742, 6261, 4578, 6257, 6238, 5263, 2] */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
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 ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as AgeVerificationConstantsModule from '../AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
import * as SafetyHubUtilsModule from '../../safety_hub/SafetyHubUtils.tsx'; /* Metro dependency 5266 */
import * as SafetyHubConstantsModule from '../../safety_hub/SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
function _fun49428(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:6, offset: 0x011f9060, size: 359 bytes, params: 8, frame: 23
var object2;
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(5262) /* metro dependency 5262: AgeVerificationConstants */).VerificationMethod;
const env0_5 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.content = {marginTop: PX_8};
const object4 = {};
object.content = {marginTop: PX_8};
const object3 = {};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginTop = PX_24;
object3.marginTop = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginBottom = PX_24;
object2.errorContainer = object4;
object3.marginBottom = PX_24;
object.errorContainer = object3;
const PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object2.noMethodsText = {paddingHorizontal: PX_40, textAlign: 'center'};
object2.buttonGroup = {paddingVertical: 0};
const env0_8 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationMethodsContainer.tsx');
object.noMethodsText = {paddingHorizontal: PX_40, textAlign: 'center'};
object.buttonGroup = {paddingVertical: 0};
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationMethodsContainer.tsx');
exports.AgeVerificationMethodsContainer = AgeVerificationMethodsContainer;
}
function AgeVerificationMethodsContainer({ageVerificationMethods, modalSessionId}) { // fn#49429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:570, offset: 0x011f91c7, size: 840 bytes, params: 2, frame: 39
var r14;
const Stack3 = (StackNativeModule).Stack;
const Text = (TextModule).Text;
var items2;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
const styles = useStyles();
const value2 = (SafetyHubUtilsModule).useIsSuspendedUser();
ReactModule.useEffect(_fun49430, [ageVerificationMethods]);
const Stack = (StackNativeModule).Stack;
const Stack2 = (StackNativeModule).Stack;
const HelpMessage = (NativeModule).HelpMessage;
const HelpMessageTypes = (NativeModule).HelpMessageTypes;
const INFO = HelpMessageTypes.INFO;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const El4aXl = (IndexNativeModule).t.El4aXl;
const helpMessage = (
<HelpMessage
messageType={INFO}
textColor="text-feedback-info"
textVariant="text-sm/medium"
>
{Reflect.apply(string, intl, [El4aXl])}
</HelpMessage>
);
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
if (ageVerificationMethods == null) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [
<Text
variant="text-sm/medium"
color="text-subtle"
style={styles.noMethodsText}
>
{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}
</Text>,
];
items2[1] = (
<ButtonGroup style={styles.buttonGroup}>
<Button
variant="primary"
size="lg"
text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)}
onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods}
/>
</ButtonGroup>
);
r14 = (
<Stack3 {...stack3Props}>
{items2}
</Stack3>
);
} else if (ageVerificationMethods.length === 0) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [
<Text
variant="text-sm/medium"
color="text-subtle"
style={styles.noMethodsText}
>
{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}
</Text>,
];
items2[1] = (
<ButtonGroup style={styles.buttonGroup}>
<Button
variant="primary"
size="lg"
text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)}
onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods}
/>
</ButtonGroup>
);
r14 = (
<Stack3 {...stack3Props}>
{items2}
</Stack3>
);
} else {
r14 = ageVerificationMethods.map(_fun49432);
}
return (
<Stack spacing={8} align="center">
<Stack2 spacing={16} style={styles.content}>
{helpMessage}
<TableRowGroup hasIcons={false}>
{r14}
</TableRowGroup>
</Stack2>
{value2 && <Text variant="text-xs/medium">{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).htWh1G,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[19]).openUrl(SafetyHubLinks.LEARN_MORE_UU_APPEAL_LINK);
}})}</Text>}
</Stack>
);
function _fun49430() { // fn#49430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:717, offset: 0x011f950f, size: 115 bytes, params: 1, frame: 15
var environment;
var defaultImport;
var increment;
var object;
var value;
if (ageVerificationMethods != null && ageVerificationMethods.some(function({id}) {
return id === VerificationMethod.GOOGLE_WALLET;
})) {
value = environment.__proto__;
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
increment = defaultImport.increment;
object = {};
object.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.GOOGLE_WALLET_METHOD_IMPRESSION;
Reflect.apply(increment, defaultImport, [object]);
}
}
function _fun49432(a0) { // fn#49432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1637, offset: 0x011f959d, size: 95 bytes, params: 2, frame: 17
const env0_0 = a0;
const TableRow = (TableRowNativeModule).TableRow;
return (
<TableRow
label={a0.title}
subLabel={a0.description}
onPress={onPress_49433}
arrow
key={a0.id}
/>
);
function onPress_49433() { // fn#49433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1706, offset: 0x011f95fc, size: 27 bytes, params: 1, frame: 11
const binding = env0_0;
return binding.onClick(modalSessionId);
}
}
function AgeVerificationMethodsContainer({ageVerificationMethods, modalSessionId}) { // fn#49429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:570, offset: 0x011f91c7, size: 840 bytes, params: 2, frame: 39
var r14;
const Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items2;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const styles = useStyles();
const value2 = (require(5266) /* metro dependency 5266: SafetyHubUtils */).useIsSuspendedUser();
env0_3.useEffect(_fun49430, [ageVerificationMethods]);
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const HelpMessage = (require(1305) /* metro dependency 1305: native */).HelpMessage;
const HelpMessageTypes = (require(1305) /* metro dependency 1305: native */).HelpMessageTypes;
const INFO = HelpMessageTypes.INFO;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const El4aXl = (require(1244) /* metro dependency 1244: indexNative */).t.El4aXl;
const helpMessage = <HelpMessage messageType={INFO} textColor="text-feedback-info" textVariant="text-sm/medium">{Reflect.apply(string,
intl, [El4aXl])}</HelpMessage>;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
if (ageVerificationMethods == null) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [<Text variant="text-sm/medium" color="text-subtle" style={styles.noMethodsText}>{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}</Text>];
items2[1] = <ButtonGroup style={styles.buttonGroup}><Button variant="primary" size="lg" text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)} onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods} /></ButtonGroup>;
r14 = <Stack3 {...stack3Props}>{items2}</Stack3>;
} else if (ageVerificationMethods.length === 0) {
var stack3Props = {'direction': 'vertical', 'align': 'center', 'spacing': 16, style: styles.errorContainer};
items2 = [<Text variant="text-sm/medium" color="text-subtle" style={styles.noMethodsText}>{intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).cR6336)}</Text>];
items2[1] = <ButtonGroup style={styles.buttonGroup}><Button variant="primary" size="lg" text={intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).hDvmYP)} onPress={(require(6257) /* metro dependency 6257: AgeVerificationURLActionCreators */).getAgeVerificationMethods} /></ButtonGroup>;
r14 = <Stack3 {...stack3Props}>{items2}</Stack3>;
} else {
r14 = ageVerificationMethods.map(_fun49432);
}
return (
<Stack spacing={8} align="center">
<Stack2 spacing={16} style={styles.content}>
{helpMessage}
<TableRowGroup hasIcons={false}>
{r14}
</TableRowGroup>
</Stack2>
{value2 && <Text variant="text-xs/medium">{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).htWh1G,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[19]).openUrl(SafetyHubLinks.LEARN_MORE_UU_APPEAL_LINK);
}})}</Text>}
</Stack>
);
}
function _fun49430() { // fn#49430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:717, offset: 0x011f950f, size: 115 bytes, params: 1, frame: 15
var environment;
var defaultImport;
var increment;
var object2;
var value;
if (ageVerificationMethods != null && ageVerificationMethods.some(function({id}) {
return id === VerificationMethod.GOOGLE_WALLET;
})) {
value = environment.__proto__;
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
increment = defaultImport.increment;
object2 = {};
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.GOOGLE_WALLET_METHOD_IMPRESSION;
Reflect.apply(increment, defaultImport, [object2]);
}
}
function _fun49432(a0) { // fn#49432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1637, offset: 0x011f959d, size: 95 bytes, params: 2, frame: 17
const env0_0 = a0;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
label={a0.title}
subLabel={a0.description}
onPress={onPress_49433}
arrow
key={a0.id}
/>
);
}
function onPress_49433() { // fn#49433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6438:1706, offset: 0x011f95fc, size: 27 bytes, params: 1, frame: 11
const binding = env0_0;
return binding.onClick(modalSessionId);
}
global.__d(_fun49428, 6260, [31, 5262, 5267, 33, 4501, 697, 5266, 4826, 4831, 4572, 1305, 1244, 6231, 4573, 2742,
6261, 4578, 6257, 6238, 5263,
2]) /* metro module 6260, dependencies: [31, 5262, 5267, 33, 4501, 697, 5266, 4826, 4831, 4572, 1305, 1244, 6231, 4573, 2742, 6261, 4578, 6257, 6238, 5263, 2] */;
@@ -1,152 +1,162 @@
/* Metro module 5265; source: modules/age_assurance/native/AgeVerificationModal.tsx; dependencies: [31, 5262, 33, 5266, 4007, 4813, 5269, 4501, 697, 5080, 5277, 1244, 5280, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import Module05269 from '../../../by-id/module-05269.js'; /* Metro dependency 5269 */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NavigationRouteUtilsNativeModule from '../../main_tabs_v2/helpers/NavigationRouteUtils.native.tsx'; /* Metro dependency 4007 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as AgeVerificationUtilsModule from '../AgeVerificationUtils.tsx'; /* Metro dependency 4813 */
import * as AgeVerificationConstantsModule from '../AgeVerificationConstants.tsx'; /* Metro dependency 5262 */
import * as SafetyHubUtilsModule from '../../safety_hub/SafetyHubUtils.tsx'; /* Metro dependency 5266 */
import * as HeaderActionButtonNativeModule from '../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
function _fun46822(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:6, offset: 0x011afb0a, size: 258 bytes, params: 8, frame: 21
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(5262) /* metro dependency 5262: AgeVerificationConstants */).AGE_VERIFICATION_MODAL_KEY;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
object = {VERIFY_AGE: 'VERIFY_AGE'};
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_8 = Reflect.apply(createStyles, createStylesModule,
const createStyles = CreateStylesModule.createStyles;
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
const env0_8 = Reflect.apply(createStyles, CreateStylesModule,
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationModal.tsx');
exports.default = AgeVerificationModal;
}
function getScreens({headerStyle}, a1, a2, a3, a4) { // fn#46823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1022, offset: 0x011afc0c, size: 98 bytes, params: 6, frame: 5
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return {[VERIFY_AGE]: {headerStyle: headerStyle, headerTitle: a4, headerLeft: headerLeft_46825,
render: render_46826}};
}
function AgeVerifyScreen({webviewUrl, onComplete, onClose}) { // fn#46827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:232, offset: 0x011afd3e, size: 241 bytes, params: 2, frame: 21
const value2 = (require(5266) /* metro dependency 5266: SafetyHubUtils */).useIsSuspendedUser();
const binding = env0_3;
let useCallback = binding.useCallback;
const value3 = Reflect.apply(useCallback, binding, [function() {
onComplete();
onClose();
}, [onComplete, onClose]]);
useCallback = binding.useCallback;
(require(4813) /* metro dependency 4813: AgeVerificationUtils */).useWatchAgeVerificationStatusChange(Reflect.apply(useCallback,
binding, [_fun46829, [value3]]));
return ((Component) => <Component allowsInlineMediaPlayback javaScriptEnabled source={{uri: webviewUrl}} onMessage={binding.useCallback(_fun46830,
[value3,
value2])} injectedJavaScript={"\n window.addEventListener('message', function(event) {\n window.ReactNativeWebView.postMessage(event.data);\n }, true);\n"} />)(importDefault(5269) /* metro dependency 5269 */);
}
function AgeVerificationModal({webviewUrl, onComplete, onClose}) { // fn#46831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1448, offset: 0x011aff09, size: 258 bytes, params: 2, frame: 23
const styles = useStyles();
const env0_3 = styles;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value3 = env0_3.useMemo(_fun46832, [styles, webviewUrl, onComplete, onClose,
intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wJVyYR)]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return (
<Navigator
screens={value3}
initialRouteName={VERIFY_AGE}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function getScreensHandleClose() { // fn#46824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1069, owner: getScreens.handleClose, offset: 0x011afc6e, size: 48 bytes, params: 1, frame: 12
importAll();
const value = environment.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function getScreensHeaderLeft() { // fn#46825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1167, owner: getScreens.headerLeft, offset: 0x011afc9e, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const getScreensHandleCloseBinding = getScreensHandleClose;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
onPress={getScreensHandleCloseBinding}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
/>
);
}
function getScreensRender() { // fn#46826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1276, owner: getScreens.render, offset: 0x011afd09, size: 53 bytes, params: 1, frame: 14
return (
<AgeVerifyScreen
webviewUrl={require}
onComplete={importDefault}
onClose={getScreensHandleClose}
/>
);
}
function _fun46829() { // fn#46829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:365, offset: 0x011afe2f, size: 56 bytes, params: 1, frame: 12
const navigationRouteUtilsNativeModule = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
if (navigationRouteUtilsNativeModule.isModalOpen(AGE_VERIFICATION_MODAL_KEY)) {
env0_3();
}
}
function _fun46830(a0) { // fn#46830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:473, offset: 0x011afe67, size: 162 bytes, params: 2, frame: 15
var r1;
var eventType;
var r2;
var value2;
var JSON;
var parse;
var value3;
var value4;
var binding;
var value5;
var value6;
var error;
const value = undefined;
let nativeEvent = a0.nativeEvent;
let data = nativeEvent.data;
if (data != null) {
try {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value2 = typeof data === 'string';
if (value2) {
JSON = global.JSON;
parse = JSON.parse;
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value3 = Reflect.apply(parse, JSON, [data]);
r1 = value3;
} else {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
r1 = data;
}
value4 = environment;
binding = env0_2;
if (binding) {
value5 = r1 == null;
eventType = value5 ? value : r1.eventType;
value6 = eventType === 'Verification.Result';
r2 = value6;
} else {
r2 = binding;
}
if (r2) {
binding = env0_3;
binding();
}
} catch (error) {
function getScreens({headerStyle}, a1, a2, a3, a4) { // fn#46823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1022, offset: 0x011afc0c, size: 98 bytes, params: 6, frame: 5
const env0_0 = a1;
const env0_1 = a2;
const env0_2 = a3;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return {[VERIFY_AGE]: {headerStyle: headerStyle, headerTitle: a4, headerLeft: headerLeft, render: render_46826}};
function handleClose() { // fn#46824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1069, owner: getScreens.handleClose, offset: 0x011afc6e, size: 48 bytes, params: 1, frame: 12
importAll();
const value = environment.__proto__;
(ModalActionCreators).pop();
}
function headerLeft() { // fn#46825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1167, owner: getScreens.headerLeft, offset: 0x011afc9e, size: 107 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const handleCloseBinding = handleClose;
const intl = (IndexNativeModule).intl;
return (
<HeaderActionButton
onPress={handleCloseBinding}
text={intl.string((IndexNativeModule).t.cpT0Cq)}
/>
);
}
function getScreensRender() { // fn#46826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1276, owner: getScreens.render, offset: 0x011afd09, size: 53 bytes, params: 1, frame: 14
return (
<AgeVerifyScreen
webviewUrl={require}
onComplete={importDefault}
onClose={handleClose}
/>
);
}
}
function AgeVerifyScreen({webviewUrl, onComplete, onClose}) { // fn#46827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:232, offset: 0x011afd3e, size: 241 bytes, params: 2, frame: 21
const value2 = (SafetyHubUtilsModule).useIsSuspendedUser();
let useCallback = ReactModule.useCallback;
const value3 = Reflect.apply(useCallback, ReactModule, [function() {
onComplete();
onClose();
}, [onComplete, onClose]]);
useCallback = ReactModule.useCallback;
(AgeVerificationUtilsModule).useWatchAgeVerificationStatusChange(Reflect.apply(useCallback,
ReactModule, [_fun46829, [value3]]));
return ((Component) => <Component allowsInlineMediaPlayback javaScriptEnabled source={{uri: webviewUrl}} onMessage={ReactModule.useCallback(_fun46830,
[value3,
value2])} injectedJavaScript={"\n window.addEventListener('message', function(event) {\n window.ReactNativeWebView.postMessage(event.data);\n }, true);\n"} />)(Module05269);
function _fun46829() { // fn#46829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:365, offset: 0x011afe2f, size: 56 bytes, params: 1, frame: 12
if (NavigationRouteUtilsNativeModule.isModalOpen(AGE_VERIFICATION_MODAL_KEY)) {
ReactModule();
}
}
function _fun46830(a0) { // fn#46830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:473, offset: 0x011afe67, size: 162 bytes, params: 2, frame: 15
var r1;
var eventType;
var r2;
var value2;
var JSON;
var parse;
var value3;
var value4;
var binding;
var value5;
var value6;
var error;
const value = undefined;
let nativeEvent = a0.nativeEvent;
let data = nativeEvent.data;
if (data != null) {
try {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value2 = typeof data === 'string';
if (value2) {
JSON = global.JSON;
parse = JSON.parse;
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
value3 = Reflect.apply(parse, JSON, [data]);
r1 = value3;
} else {
nativeEvent = a0.nativeEvent;
data = nativeEvent.data;
r1 = data;
}
value4 = environment;
binding = env0_2;
if (binding) {
value5 = r1 == null;
eventType = value5 ? value : r1.eventType;
value6 = eventType === 'Verification.Result';
r2 = value6;
} else {
r2 = binding;
}
if (r2) {
binding = ReactModule;
binding();
}
} catch (error) {
}
}
return value;
}
}
function AgeVerificationModal({webviewUrl, onComplete, onClose}) { // fn#46831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1448, offset: 0x011aff09, size: 258 bytes, params: 2, frame: 23
const styles = useStyles();
const styles2 = styles;
const intl = (IndexNativeModule).intl;
const value3 = styles2.useMemo(_fun46832, [styles, webviewUrl, onComplete, onClose,
intl.string((IndexNativeModule).t.wJVyYR)]);
const Navigator = (NavigatorNativeModule).Navigator;
const VERIFY_AGE = env0_6.VERIFY_AGE;
return (
<Navigator
screens={value3}
initialRouteName={VERIFY_AGE}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun46832() { // fn#46832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1582, offset: 0x011b000b, size: 38 bytes, params: 1, frame: 19
return getScreens(styles, webviewUrl, onComplete, onClose, AgeVerificationConstantsModule.AGE_VERIFICATION_MODAL_KEY);
}
}
return value;
}
function _fun46832() { // fn#46832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5443:1582, offset: 0x011b000b, size: 38 bytes, params: 1, frame: 19
return getScreens(styles, webviewUrl, onComplete, onClose, env0_4);
}
global.__d(_fun46822, 5265, [31, 5262, 33, 5266, 4007, 4813, 5269, 4501, 697, 5080, 5277, 1244, 5280,
2]) /* metro module 5265, dependencies: [31, 5262, 33, 5266, 4007, 4813, 5269, 4501, 697, 5080, 5277, 1244, 5280, 2] */;
@@ -1,23 +1,36 @@
/* Metro module 5264; source: modules/age_assurance/native/AgeVerificationQuestUnsupportedAlertModal.tsx; dependencies: [31, 33, 4500, 1244, 2742, 4500, 2] */
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 AlertModalNativeModule from '../../../design/components/AlertModal/native/AlertModal.native.tsx'; /* Metro dependency 4500 */
function _fun46820(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5442:6, offset: 0x011af980, size: 136 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationQuestUnsupportedAlertModal.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationQuestUnsupportedAlertModal.tsx');
exports.default = AgeVerificationQuestUnsupportedAlertModal;
function AgeVerificationQuestUnsupportedAlertModal() { // fn#46821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5442:236, offset: 0x011afa08, size: 258 bytes, params: 1, frame: 23
const AlertModal = (AlertModalNativeModule).AlertModal;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).gUqXQN);
object.content = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).yBHwMy);
const AlertActions = (AlertModalNativeModule).AlertActions;
const AlertActionButton = (AlertModalNativeModule).AlertActionButton;
object.actions = (
<AlertActions>
<AlertActionButton
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])}
key="got-it"
/>
</AlertActions>
);
return <AlertModal {...object} />;
}
}
function AgeVerificationQuestUnsupportedAlertModal() { // fn#46821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5442:236, offset: 0x011afa08, size: 258 bytes, params: 1, frame: 23
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).gUqXQN);
object2.content = intl.string((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).yBHwMy);
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
object2.actions = <AlertActions><AlertActionButton text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN'])} key="got-it" /></AlertActions>;
return <AlertModal {...object2} />;
}
global.__d(_fun46820, 5264, [31, 33, 4500, 1244, 2742, 4500,
2]) /* metro module 5264, dependencies: [31, 33, 4500, 1244, 2742, 4500, 2] */;
@@ -1,175 +1,226 @@
/* Metro module 6251; source: modules/age_assurance/native/AgeVerificationRetryScreen.tsx; dependencies: [5, 31, 27, 661, 5267, 33, 4501, 697, 4813, 5074, 5472, 1244, 5263, 477, 5473, 4573, 6231, 6238, 1948, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import AgeVerificationActionCreatorsNative from '../AgeVerificationActionCreators.native.tsx'; /* Metro dependency 5263 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as AgeVerificationUtilsModule from '../AgeVerificationUtils.tsx'; /* Metro dependency 4813 */
import * as AgeVerificationAnalyticsUtilsModule from '../AgeVerificationAnalyticsUtils.tsx'; /* Metro dependency 5074 */
import * as SafetyHubConstantsModule from '../../safety_hub/SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as HideManualAgeVerificationExperimentModule from '../HideManualAgeVerificationExperiment.tsx'; /* Metro dependency 5472 */
import * as NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
function _fun49354(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:6, offset: 0x011f7175, size: 446 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.ActivityIndicator;
const env0_6 = value.ScrollView;
const env0_7 = value.View;
const env0_8 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_9 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
const env0_12 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {loadingIndicator: {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0, 'zIndex': 1}};
object = {loadingIndicator: {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0, 'zIndex': 1}};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {paddingHorizontal: PX_16, flex: 1};
const object4 = {};
object.container = {paddingHorizontal: PX_16, flex: 1};
const object3 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingVertical = PX_16;
object4.alignItems = 'center';
object3.paddingVertical = PX_16;
object3.alignItems = 'center';
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
object2.headerContainer = object4;
object2.centerText = {textAlign: 'center'};
object3.gap = PX_8;
object.headerContainer = object3;
object.centerText = {textAlign: 'center'};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.helpLink = {marginTop: PX_8};
const env0_13 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationRetryScreen.tsx');
object.helpLink = {marginTop: PX_8};
const env0_13 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/AgeVerificationRetryScreen.tsx');
exports.default = GetStartedScreen_49355;
}
function GetStartedScreen_49355({onClose, modalSessionId}) { // fn#49355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:698, offset: 0x011f7333, size: 871 bytes, params: 2, frame: 33
var r5;
var moduleValue3;
const styles = useStyles();
const useInitiateAgeVerification = AgeVerificationUtilsModule.useInitiateAgeVerification;
const object = {onComplete: onClose};
const AgeVerificationModalEntryPoint = (AgeVerificationAnalyticsUtilsModule).AgeVerificationModalEntryPoint;
const RETRY_MODAL = AgeVerificationModalEntryPoint.RETRY_MODAL;
object.entryPoint = RETRY_MODAL;
const {loading, initiateAgeVerification} = Reflect.apply(useInitiateAgeVerification, AgeVerificationUtilsModule,
[object]);
const value4 = (HideManualAgeVerificationExperimentModule).useIsManualAgeVerificationHidden('age_verification_retry_modal');
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JSdbBe = (require(1244) /* metro dependency 1244: indexNative */).t.JSdbBe;
const value5 = Reflect.apply(string, intl, [JSdbBe]);
string = intl.string;
const JNK1ue = (require(1244) /* metro dependency 1244: indexNative */).t.JNK1ue;
const value6 = Reflect.apply(string, intl, [JNK1ue]);
const value8 = ReactModule.useMemo(_fun49356, [initiateAgeVerification, modalSessionId, value4,
intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mFvt9M)]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
if (loading) {
var activityIndicatorBindingProps = {style: styles.loadingIndicator, size: 'small'};
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
activityIndicatorBindingProps.color = moduleValue3.isAndroid() ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE : undefined;
r5 = <ActivityIndicator {...activityIndicatorBindingProps} />;
} else {
r5 = loading;
}
const ShieldSpotIllustration = (NativeModule).ShieldSpotIllustration;
const items2 = [
<ShieldSpotIllustration />,
];
const Text = (TextModule).Text;
items2[1] = (
<Text
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={styles.centerText}
>
{value5}
</Text>
);
items2[2] = (
<Text
variant="heading-md/medium"
color="text-strong"
style={styles.centerText}
>
{value6}
</Text>
);
const items3 = [
<View style={styles.headerContainer}>
{items2}
</View>,
];
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
items3[1] = (
<TableRowGroup hasIcons={false}>
{value8.map(_fun49361)}
</TableRowGroup>
);
items3[2] = (
<Text
variant="text-xs/medium"
color="text-muted"
style={[styles.centerText, styles.helpLink]}
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook_49362})}
</Text>
);
return (
<>
{r5}
<ScrollView style={styles.container}>
{items3}
</ScrollView>
</>
);
function _fun49356() { // fn#49356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1134, offset: 0x011f769a, size: 257 bytes, params: 1, frame: 19
var push;
let object = {};
object.title = Module00005;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
object.description = Reflect.apply(string, intl, [t.ecdUKD]);
const env0_0 = env1_3(_fun49358);
object.onPress = onPress_49359;
const items2 = [object];
if (!env0_2) {
push = items2.push;
object = {};
object.title = intl.string(t['LZO+Hd']);
object.description = intl.string(t['ty+iWP']);
object.onPress = onPress_49360;
Reflect.apply(push, items2, [object]);
}
return items2;
function* _fun49358() { // fn#49358, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1223, offset: 0x011f77a4, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__.__proto__;
var binding = env3_0;
var binding2 = env3_2;
value = binding(binding2[9]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[9]).AgeVerificationModalVersion;
var RETRY = AgeVerificationModalVersion.RETRY;
var AgeVerificationModalCta = binding(binding2[9]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, RETRY, GET_STARTED]);
yield importDefault();
}
}
function onPress_49359() { // fn#49359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1378, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function onPress_49360() { // fn#49360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1554, offset: 0x011f781d, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, MANUAL_REVIEW_REQUEST]);
}
}
function _fun49361({title, description, onPress}, a1) { // fn#49361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2260, offset: 0x011f789b, size: 87 bytes, params: 3, frame: 18
const TableRow = (TableRowNativeModule).TableRow;
return (
<TableRow
arrow
label={title}
subLabel={description}
onPress={onPress}
key={a1}
/>
);
}
function GetStartedScreen_49355HandleOnHelpUrlHook() { // fn#49362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2531, owner: GetStartedScreen_49355.handleOnHelpUrlHook, offset: 0x011f78f2, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = AgeVerificationActionCreatorsNative;
const openUrl = defaultImport.openUrl;
const defaultImport2 = HelpdeskUtils;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, LEARN_MORE]);
}
function GetStartedScreen_49355({onClose, modalSessionId}) { // fn#49355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:698, offset: 0x011f7333, size: 871 bytes, params: 2, frame: 33
var r5;
var moduleValue3;
const styles = useStyles();
const ageVerificationUtilsModule = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
const useInitiateAgeVerification = ageVerificationUtilsModule.useInitiateAgeVerification;
const object2 = {onComplete: onClose};
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const RETRY_MODAL = AgeVerificationModalEntryPoint.RETRY_MODAL;
object2.entryPoint = RETRY_MODAL;
const {loading, initiateAgeVerification} = Reflect.apply(useInitiateAgeVerification, ageVerificationUtilsModule,
[object2]);
const value4 = (require(5472) /* metro dependency 5472: HideManualAgeVerificationExperiment */).useIsManualAgeVerificationHidden('age_verification_retry_modal');
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JSdbBe = (require(1244) /* metro dependency 1244: indexNative */).t.JSdbBe;
const value5 = Reflect.apply(string, intl, [JSdbBe]);
string = intl.string;
const JNK1ue = (require(1244) /* metro dependency 1244: indexNative */).t.JNK1ue;
const value6 = Reflect.apply(string, intl, [JNK1ue]);
const value8 = env0_4.useMemo(_fun49356, [initiateAgeVerification, modalSessionId, value4,
intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mFvt9M)]);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
if (loading) {
var activityIndicatorBindingProps = {style: styles.loadingIndicator, size: 'small'};
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
activityIndicatorBindingProps.color = moduleValue3.isAndroid() ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE : undefined;
r5 = <ActivityIndicator {...activityIndicatorBindingProps} />;
} else {
r5 = loading;
}
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
const items2 = [<ShieldSpotIllustration />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.centerText}>{value5}</Text>;
items2[2] = <Text variant="heading-md/medium" color="text-strong" style={styles.centerText}>{value6}</Text>;
const items3 = [<View style={styles.headerContainer}>{items2}</View>];
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items3[1] = <TableRowGroup hasIcons={false}>{value8.map(_fun49361)}</TableRowGroup>;
items3[2] = <Text variant="text-xs/medium" color="text-muted" style={[styles.centerText,
styles.helpLink]}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['L+FgkZ'],
{handleOnHelpUrlHook: handleOnHelpUrlHook})}</Text>;
return (
<>
{r5}
<ScrollView style={styles.container}>
{items3}
</ScrollView>
</>
);
}
function _fun49356() { // fn#49356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1134, offset: 0x011f769a, size: 257 bytes, params: 1, frame: 19
var push;
let object2 = {};
object2.title = env0_3;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.description = Reflect.apply(string, intl, [t.ecdUKD]);
const env0_0 = env1_3(_fun49358);
object2.onPress = onPress_49359;
const items2 = [object2];
if (!env0_2) {
push = items2.push;
object2 = {};
object2.title = intl.string(t['LZO+Hd']);
object2.description = intl.string(t['ty+iWP']);
object2.onPress = onPress_49360;
Reflect.apply(push, items2, [object2]);
}
return items2;
}
function _fun49361({title, description, onPress}, a1) { // fn#49361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2260, offset: 0x011f789b, size: 87 bytes, params: 3, frame: 18
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
arrow
label={title}
subLabel={description}
onPress={onPress}
key={a1}
/>
);
}
function GetStartedScreen_49355HandleOnHelpUrlHook() { // fn#49362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:2531, owner: GetStartedScreen_49355.handleOnHelpUrlHook, offset: 0x011f78f2, size: 149 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const TIGGER_PAWTECT_LEARN_MORE = HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE;
Reflect.apply(openUrl, defaultImport, [Reflect.apply(getArticleURL, defaultImport2, [TIGGER_PAWTECT_LEARN_MORE])]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const LEARN_MORE = AgeVerificationModalCta.LEARN_MORE;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, LEARN_MORE]);
}
function* _fun49358() { // fn#49358, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1223, offset: 0x011f77a4, size: 121 bytes, params: 1, frame: 20
if (true) {
value = environment.__proto__.__proto__.__proto__;
var binding = env3_0;
var binding2 = env3_2;
value = binding(binding2[9]);
var trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
var AgeVerificationModalVersion = binding(binding2[9]).AgeVerificationModalVersion;
var RETRY = AgeVerificationModalVersion.RETRY;
var AgeVerificationModalCta = binding(binding2[9]).AgeVerificationModalCta;
var GET_STARTED = AgeVerificationModalCta.GET_STARTED;
Reflect.apply(trackAgeVerificationModalClicked, value, [require, RETRY, GET_STARTED]);
yield importDefault();
}
}
function onPress_49360() { // fn#49360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6429:1554, offset: 0x011f781d, size: 126 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(5263) /* metro dependency 5263: AgeVerificationActionCreatorsNative */;
const openUrl = defaultImport.openUrl;
const APPEALS_LINK = SafetyHubLinks.APPEALS_LINK;
Reflect.apply(openUrl, defaultImport, [APPEALS_LINK]);
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalClicked = value.trackAgeVerificationModalClicked;
const modalSessionIdBinding = modalSessionId;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const RETRY = AgeVerificationModalVersion.RETRY;
const AgeVerificationModalCta = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalCta;
const MANUAL_REVIEW_REQUEST = AgeVerificationModalCta.MANUAL_REVIEW_REQUEST;
Reflect.apply(trackAgeVerificationModalClicked, value, [modalSessionIdBinding, RETRY, MANUAL_REVIEW_REQUEST]);
}
global.__d(_fun49354, 6251, [5, 31, 27, 661, 5267, 33, 4501, 697, 4813, 5074, 5472, 1244, 5263, 477, 5473, 4573,
6231, 6238, 1948,
2]) /* metro module 6251, dependencies: [5, 31, 27, 661, 5267, 33, 4501, 697, 4813, 5074, 5472, 1244, 5263, 477, 5473, 4573, 6231, 6238, 1948, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,11 +1,21 @@
/* Metro module 15805; source: modules/age_assurance/native/ParentalConsentExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun121466(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16013:6, offset: 0x02548e7e, size: 158 bytes, params: 8, frame: 21
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'kind': 'user',
const env0_0 = (ApexModule).createApexExperiment({'kind': 'user',
'name': '2026-01-age-and-parental-consent-check', defaultConfig: {enabled: false},
variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/ParentalConsentExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/age_assurance/native/ParentalConsentExperiment.tsx');
exports.isParentalConsentCheckEnabled = isParentalConsentCheckEnabled;
function isParentalConsentCheckEnabled(a0) { // fn#121467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16013:367, offset: 0x00e3651f, size: 34 bytes, params: 2, frame: 12
const binding = env0_0;
const getConfig = binding.getConfig;
return Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
}
global.__d(_fun121466, 15805, [1854, 2]) /* metro module 15805, dependencies: [1854, 2] */;
File diff suppressed because it is too large. Load diff