Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,61 @@
/* Metro module 6252; source: modules/age_assurance/native/AgeVerificationEmbeddedIntroScreen.tsx; dependencies: [31, 661, 33, 4501, 697, 5266, 5470, 6253, 6258, 6259, 4572, 5473, 4573, 4813, 6260, 1244, 2742, 5263, 1948, 2] */
function _fun49363(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6430:6, offset: 0x011f7987, size: 250 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
let value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const env0_7 = Reflect.apply(createStyles, value, [{header: {textAlign: 'center'}, helpLink: {marginTop: PX_16,
textAlign: 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/AgeVerificationEmbeddedIntroScreen.tsx');
exports.default = AgeVerificationEmbeddedIntroScreen;
}
function AgeVerificationEmbeddedIntroScreen({onClose, modalSessionId, classificationId, entryPoint, navigation}) { // fn#49364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6430:386, offset: 0x011f7a81, size: 699 bytes, params: 2, frame: 40
const styles = useStyles();
const value2 = (require(5266) /* metro dependency 5266: SafetyHubUtils */).useIsSuspendedUser();
const ageVerificationMethods = (importDefault(6253) /* metro dependency 6253: useAgeVerificationMethods */)({onClose: onClose,
classificationId: classificationId, onGoogleWalletSelect: env0_3.useCallback(function() {
navigation.navigate(require(dependencyMap[6]).AgeVerificationGetStartedModalScenes.GOOGLE_WALLET_VERIFICATION);
}, [navigation])}).ageVerificationMethods;
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
const items2 = [<ShieldSpotIllustration height={100} width={177} />];
const Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let value = require(4813) /* metro dependency 4813: AgeVerificationUtils */;
value = <Text accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary">{value.getAgeVerificationGetStartedTitle(entryPoint)}</Text>;
items2[1] = <Stack3 align="center" justify="center" spacing={8}>{value}<Text variant="text-md/medium" color="text-strong" style={styles.header}>{(require(4813) /* metro dependency 4813: AgeVerificationUtils */).getAgeVerificationGetStartedSubtitle(entryPoint,
undefined, value2)}</Text></Stack3>;
value = <Stack2 align="center" justify="center" spacing={16}>{items2}</Stack2>;
const AgeVerificationMethodsContainer = (require(6260) /* metro dependency 6260: AgeVerificationMethodsContainer */).AgeVerificationMethodsContainer;
value = <Stack align="center" justify="center" spacing={24}>{value}<AgeVerificationMethodsContainer ageVerificationMethods={ageVerificationMethods} modalSessionId={modalSessionId} /></Stack>;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ModalScreen>
<ModalContent>
{value}
<Text
variant="text-xs/medium"
color="text-muted"
style={styles.helpLink}
>
{intl.format((importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).lG69e1,
{handleOnHelpUrlHook: function() {
importDefault(dependencyMap[17]).openUrl(importDefault(dependencyMap[18]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
}})}
</Text>
</ModalContent>
</ModalScreen>
);
}
@@ -0,0 +1,145 @@
/* 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] */
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,
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER, shadowColor: 'transparent'}}]);
(require(2) /* metro dependency 2 */).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 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 */);
}
@@ -0,0 +1,157 @@
/* 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] */
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 */;
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 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.gap = PX_16;
object4.flex = 1;
object3.getStartedContainer = object4;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.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 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.paddingHorizontal = PX_16;
const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48;
object5.paddingTop = PX_48;
object3.getStartedFooterContainer = object5;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.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');
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>
</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 = (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 = 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 = 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();
}
}
@@ -0,0 +1,118 @@
/* 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] */
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 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.content = {marginTop: PX_8};
const object4 = {};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginTop = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginBottom = PX_24;
object2.errorContainer = object4;
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');
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 = (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);
}
@@ -0,0 +1,152 @@
/* 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] */
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,
[{headerStyle: {backgroundColor: BACKGROUND_BASE_LOWER}}]);
(require(2) /* metro dependency 2 */).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) {
}
}
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);
}
@@ -0,0 +1,23 @@
/* Metro module 5264; source: modules/age_assurance/native/AgeVerificationQuestUnsupportedAlertModal.tsx; dependencies: [31, 33, 4500, 1244, 2742, 4500, 2] */
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');
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 = (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} />;
}
@@ -0,0 +1,175 @@
/* 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] */
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 */;
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}};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.container = {paddingHorizontal: PX_16, flex: 1};
const object4 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.paddingVertical = PX_16;
object4.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'};
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');
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 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]);
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,11 @@
/* Metro module 15805; source: modules/age_assurance/native/ParentalConsentExperiment.tsx; dependencies: [1854, 2] */
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',
'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');
exports.isParentalConsentCheckEnabled = isParentalConsentCheckEnabled;
}
@@ -0,0 +1,962 @@
/* Metro module 15804; source: modules/age_assurance/native/ParentalConsentManager.tsx; dependencies: [5, 6, 7, 15, 17, 18, 1878, 661, 4092, 477, 15805, 15806, 507, 683, 1216, 4860, 2] */
function _fun121453(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:6, offset: 0x025488fe, size: 284 bytes, params: 8, frame: 19
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 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(7) /* metro dependency 7 */;
const env0_6 = importDefault(15) /* metro dependency 15 */;
const env0_7 = importDefault(17) /* metro dependency 17 */;
const env0_8 = importDefault(18) /* metro dependency 18 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
value = _fun121457(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/age_assurance/native/ParentalConsentManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_121454() { // fn#121454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:193, offset: 0x02548a1a, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_121454_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun121457(a0) { // fn#121457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:405, offset: 0x02548a7c, size: 135 bytes, params: 2, frame: 17
const closure = ParentalConsentManager;
env0_8(closure, a0);
const binding = env0_5;
const binding2 = env0_3;
const env0_1 = binding2(_fun121461);
const items2 = [{key: 'onPostConnectionOpen', value: value_121462}];
const env0_0 = binding2(_fun121464);
items2[1] = {key: 'performAgeCheck', value: value_121465};
return binding(closure, items2);
}
function ParentalConsentManager(a0) { // fn#121458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:417, offset: 0x02548b03, size: 152 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, ParentalConsentManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_7(ParentalConsentManager);
binding = env1_6;
if (_isNativeReflectConstruct_121454()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_7(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value.actions = {POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_121459};
return value;
}
function* _fun121461() { // fn#121461, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:834, offset: 0x02548ba6, size: 331 bytes, params: 1, frame: 21
var r1;
var r4;
var value11;
var parseInt;
var int;
var int2;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
r1 = binding(env2_2[10]).isParentalConsentCheckEnabled('ParentalConsentManager') && env2_9.getCurrentUser() != null;
if (r1) {
binding = env2_0;
if (binding(env2_2[8]).getIsRunningOnSimulator()) {
r4 = false;
} else {
binding = env2_0;
value11 = binding(env2_2[8]).getSystemVersion().split('.');
parseInt = global.parseInt;
int = parseInt(value11[0], 10);
parseInt = global.parseInt;
int2 = parseInt(value11[1] ?? '0', 10);
binding = env2_0;
value = binding(env2_2[9]);
r4 = value.isIOS() ? int > 26 || int === 26 && int2 >= 2 : int >= 35;
}
r1 = r4;
}
if (r1) {
yield this.performAgeCheck();
return undefined;
}
}
}
function* _fun121464() { // fn#121464, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16012:1306, offset: 0x02548cfc, size: 386 bytes, params: 1, frame: 22
var binding;
var binding2;
var property;
var value3;
var setAgeRangeThresholds;
var getIsConsideredOlderThan;
var value4;
var isIOS;
var isIOS2;
var object;
var isConsideredOlderThan;
var value6;
var value7;
var binding3;
var value8;
var HTTP;
var post;
var object3;
var value9;
var getNativePlatform;
var value10;
var value11;
var value12;
var value13;
var body;
var should_block;
var binding4;
var value14;
var track;
var PARENTAL_CONSENT_CHECKED;
var value15;
var value16;
var error;
if (true) {
value = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding2[11];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
value3 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
setAgeRangeThresholds = value3.setAgeRangeThresholds;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
getIsConsideredOlderThan = value3.getIsConsideredOlderThan;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding2[9];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
value4 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
isIOS = value4.isIOS;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
try {
isIOS2 = Reflect.apply(isIOS, value4, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager', 'step': 'perform_age_check'}});
return undefined;
}
if (isIOS2) {
try {
object = [18];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
setAgeRangeThresholds(object);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
isConsideredOlderThan = getIsConsideredOlderThan(18);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
yield isConsideredOlderThan;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
if (value7) {
return value6;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding3[12];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value8 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
HTTP = value8.HTTP;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
post = HTTP.post;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object = {'url': '/users/@me/parental-consent-status', 'body': null, 'rejectWithError': true};
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object3 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding3[9];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value9 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
getNativePlatform = value9.getNativePlatform;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value10 = Reflect.apply(getNativePlatform, value9, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object3.platform = value10;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object3.parental_consent = value6;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.body = object3;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value11 = Reflect.apply(post, HTTP, [object]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
yield value11;
try {
value12 = undefined;
value13 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
if (value13) {
return value12;
}
try {
body = value12.body;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
should_block = body.should_block;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding4 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding4[13];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value14 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
track = value14.track;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding = env2_10;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
PARENTAL_CONSENT_CHECKED = binding.PARENTAL_CONSENT_CHECKED;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.eligible = value6;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.should_block = should_block;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding4[9];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value15 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
getNativePlatform = value15.getNativePlatform;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value16 = Reflect.apply(getNativePlatform, value15, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.platform = value16;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
Reflect.apply(track, value14, [PARENTAL_CONSENT_CHECKED, object]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
}
} else {
try {
isConsideredOlderThan = getIsConsideredOlderThan(18);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
yield isConsideredOlderThan;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
if (value7) {
return value6;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding3[12];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value8 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
HTTP = value8.HTTP;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
post = HTTP.post;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object = {'url': '/users/@me/parental-consent-status', 'body': null, 'rejectWithError': true};
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object3 = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding3[9];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value9 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
getNativePlatform = value9.getNativePlatform;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value10 = Reflect.apply(getNativePlatform, value9, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object3.platform = value10;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object3.parental_consent = value6;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.body = object3;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value11 = Reflect.apply(post, HTTP, [object]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
yield value11;
try {
value12 = undefined;
value13 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
if (value13) {
return value12;
}
try {
body = value12.body;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
should_block = body.should_block;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding4 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding4[13];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value14 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
track = value14.track;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding = env2_10;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
PARENTAL_CONSENT_CHECKED = binding.PARENTAL_CONSENT_CHECKED;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object = {};
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.eligible = value6;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.should_block = should_block;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
binding = env2_0;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
property = binding4[9];
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value15 = binding(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
getNativePlatform = value15.getNativePlatform;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
value16 = Reflect.apply(getNativePlatform, value15, []);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
object.platform = value16;
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
return undefined;
}
try {
Reflect.apply(track, value14, [PARENTAL_CONSENT_CHECKED, object]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[14]);
value.captureException(error, {tags: {'source': 'parental_consent_manager',
'step': 'perform_age_check'}});
}
}
}
}