176 lines
11 KiB
TypeScript
176 lines
11 KiB
TypeScript
/* 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]);
|
|
}
|
|
|