743 lines
44 KiB
TypeScript
743 lines
44 KiB
TypeScript
/* Metro module 12622; source: modules/parent_tools/native/FamilyCenterModalRequest.tsx; dependencies: [5, 31, 27, 1878, 5117, 33, 4501, 697, 1484, 632, 5118, 12623, 5187, 12624, 6258, 6259, 1305, 1423, 1244, 2224, 4573, 12625, 12626, 10120, 6261, 4578, 5080, 5473, 8171, 44, 11365, 8160, 5461, 6266, 1909, 5263, 5074, 4813, 12620, 5282, 12632, 10121, 2] */
|
|
function _fun96804(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6, offset: 0x02167681, size: 1610 bytes, params: 8, frame: 29
|
|
var object3;
|
|
const env0_0 = require;
|
|
const closure = FamilyCenterModalRequestConfirm;
|
|
const closure2 = FamilyCenterModalRequestSuccess;
|
|
const closure3 = FamilyCenterModalRequestError;
|
|
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.Image;
|
|
const env0_6 = value.View;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
value = require(5117) /* metro dependency 5117: FamilyCenterConstants */;
|
|
const env0_8 = value.FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT;
|
|
const env0_9 = value.FAMILY_CENTER_LINK_REQUEST_ERROR_EXPERIENCES;
|
|
const env0_10 = value.FamilyCenterFailureCode;
|
|
const env0_11 = value.FamilyCenterIconType;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_12 = value.jsx;
|
|
const env0_13 = value.jsxs;
|
|
const env0_14 = value.Fragment;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
let createStyles = value.createStyles;
|
|
object3 = {};
|
|
const object5 = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object5.marginTop = PX_16;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object5.marginBottom = PX_16;
|
|
object3.headerText = object5;
|
|
object3.art = {'width': 165, 'height': 119};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.connectionHeader = {alignItems: 'center', marginBottom: PX_16};
|
|
const object7 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center', 'alignSelf': 'center'};
|
|
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object7.padding = PX_8;
|
|
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object7.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object7.marginBottom = PX_24;
|
|
object3.headerIcons = object7;
|
|
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object3.ellipseGroup = {flexDirection: 'row', marginHorizontal: PX_12};
|
|
const object8 = {'width': 4, 'height': 4, 'marginHorizontal': 2};
|
|
const ICON_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED;
|
|
object8.backgroundColor = ICON_MUTED;
|
|
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
object3.ellipse = object8;
|
|
object3.title = {textAlign: 'center'};
|
|
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
|
object3.teenName = {marginTop: PX_4, textAlign: 'center'};
|
|
const object10 = {};
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object10.marginTop = PX_8;
|
|
object10.textAlign = 'center';
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object10.paddingHorizontal = PX_16;
|
|
object3.consent = object10;
|
|
const env0_15 = Reflect.apply(createStyles, value, [object3]);
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
createStyles = value.createStyles;
|
|
object3 = {};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.content = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'center', 'justifyContent': 'center',
|
|
paddingHorizontal: PX_16};
|
|
object3.textWrapper = {alignItems: 'center'};
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object3.header = {marginBottom: PX_8};
|
|
object3.description = {textAlign: 'center'};
|
|
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object3.illustration = {'position': 'absolute', 'bottom': '100%', 'left': 0, 'right': 0, 'alignItems': 'center',
|
|
paddingBottom: PX_24};
|
|
const env0_16 = Reflect.apply(createStyles, value, [object3]);
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
createStyles = value.createStyles;
|
|
object3 = {header: {'marginBottom': 8, 'textAlign': 'center'}};
|
|
object3.description = {textAlign: 'center'};
|
|
const object11 = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'height': 64, 'width': 64,
|
|
'borderRadius': null, 'backgroundColor': null, 'marginBottom': 24};
|
|
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object11.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object3.ring = object11;
|
|
const object12 = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'height': 48, 'width': 48};
|
|
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
|
let STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
|
|
object12.backgroundColor = STATUS_POSITIVE;
|
|
object3.iconContainer = object12;
|
|
STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
|
|
object3.positive = {backgroundColor: STATUS_POSITIVE};
|
|
const BACKGROUND_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_CRITICAL;
|
|
object3.negative = {backgroundColor: BACKGROUND_FEEDBACK_CRITICAL};
|
|
const env0_17 = Reflect.apply(createStyles, value, [object3]);
|
|
const env0_18 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flex': 1,
|
|
'justifyContent': 'center', 'alignItems': 'center'}});
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
createStyles = value.createStyles;
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
const env0_19 = Reflect.apply(createStyles, value, [{content: {'flex': 1, 'flexDirection': 'column',
|
|
'alignItems': 'center', 'justifyContent': 'center', 'paddingHorizontal': 32}, title: {textAlign: 'center',
|
|
marginBottom: PX_8}, description: {textAlign: 'center'}}]);
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
createStyles = value.createStyles;
|
|
object3 = {content: {'flex': 1, 'flexDirection': 'column', 'alignItems': 'center', 'justifyContent': 'center',
|
|
'paddingHorizontal': 32}};
|
|
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object3.art = {'width': 165, 'height': 119, marginBottom: PX_24};
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object3.title = {textAlign: 'center', marginBottom: PX_8};
|
|
object3.description = {textAlign: 'center'};
|
|
const env0_20 = Reflect.apply(createStyles, value, [object3]);
|
|
object3 = {headerShown: true};
|
|
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
|
object3.headerTitle = function() {
|
|
return null;
|
|
};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/native/FamilyCenterModalRequest.tsx');
|
|
exports.default = FamilyCenterRequestModal;
|
|
exports.FamilyCenterModalRequestConfirm = closure;
|
|
exports.FamilyCenterModalRequestSuccess = closure2;
|
|
exports.FamilyCenterModalRequestError = closure3;
|
|
}
|
|
|
|
function FamilyCenterModalRequestConfirm({userId, linkCode, teenIdentity}) { // fn#96805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:1178, offset: 0x02167ccb, size: 1841 bytes, params: 2, frame: 43
|
|
var r30;
|
|
var r8;
|
|
var jsxRuntimeEnv0_14Binding;
|
|
var items5;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
|
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
|
var LARGE;
|
|
var formatToPlainString;
|
|
var kFj4h1;
|
|
var items2;
|
|
var ellipse;
|
|
var items3;
|
|
var object14;
|
|
var global_name;
|
|
var items4;
|
|
var format;
|
|
var yiUJNU;
|
|
const styles = useStyles();
|
|
const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
|
function() {
|
|
return UserStore.getCurrentUser();
|
|
});
|
|
const {requestLink,
|
|
isRequestingLink} = (require(12624) /* metro dependency 12624: useFamilyCenterActions */).useFamilyCenterActions({onSuccess: env0_4.useCallback(_fun96807,
|
|
[value3]), onError: env0_4.useCallback(_fun96808, [value3])});
|
|
const value7 = env0_4.useCallback(function() {
|
|
requestLink(userId, linkCode);
|
|
}, [requestLink, userId, linkCode]);
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
|
if (teenIdentity != null) {
|
|
var viewBindingProps = {style: styles.connectionHeader};
|
|
var viewBinding2Props = {style: styles.headerIcons};
|
|
var avatarProps = {source: currentUser != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser) : undefined};
|
|
LARGE = AvatarSizes.LARGE;
|
|
avatarProps.size = LARGE;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
kFj4h1 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kFj4h1;
|
|
r30 = currentUser?.globalName ?? currentUser?.username ?? '';
|
|
avatarProps.accessibilityLabel = Reflect.apply(formatToPlainString, intl, [kFj4h1, {name: r30}]);
|
|
items2 = [<Avatar {...avatarProps} />];
|
|
var viewBinding3Props = {style: styles.ellipseGroup};
|
|
ellipse = styles.ellipse;
|
|
items3 = [<View style={ellipse} />];
|
|
ellipse = styles.ellipse;
|
|
items3[1] = <View style={ellipse} />;
|
|
ellipse = styles.ellipse;
|
|
items3[2] = <View style={ellipse} />;
|
|
items2[1] = <View {...viewBinding3Props}>{items3}</View>;
|
|
var avatarProps2 = {source: (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource({id: teenIdentity.id,
|
|
|
|
avatar: teenIdentity.avatar, discriminator: '0'})};
|
|
LARGE = AvatarSizes.LARGE;
|
|
avatarProps2.size = LARGE;
|
|
formatToPlainString = intl.formatToPlainString;
|
|
kFj4h1 = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).kFj4h1;
|
|
global_name = teenIdentity.global_name;
|
|
r30 = global_name ?? teenIdentity.username;
|
|
avatarProps2.accessibilityLabel = Reflect.apply(formatToPlainString, intl, [kFj4h1, {name: r30}]);
|
|
items2[2] = <Avatar {...avatarProps2} />;
|
|
items4 = [<View {...viewBinding2Props}>{items2}</View>];
|
|
items4[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).sMmIbm)}</Text>;
|
|
global_name = teenIdentity.global_name;
|
|
items4[2] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.teenName}>{global_name ?? teenIdentity.username}</Text>;
|
|
var textProps2 = {'variant': 'text-sm/medium', 'color': 'text-muted', style: styles.consent};
|
|
format = intl.format;
|
|
yiUJNU = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).yiUJNU;
|
|
global_name = teenIdentity.global_name;
|
|
items4[3] = <Text {...textProps2}>{Reflect.apply(format, intl, [yiUJNU,
|
|
{username: global_name ?? teenIdentity.username}])}</Text>;
|
|
r8 = <View {...viewBindingProps}>{items4}</View>;
|
|
} else {
|
|
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
|
items5 = [<Image style={styles.art} source={importDefault(12625) /* metro dependency 12625 */} />];
|
|
items5[1] = <Text style={styles.headerText} variant="text-lg/bold">{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).GH11eI)}</Text>;
|
|
r8 = <>{items5}</>;
|
|
}
|
|
const modalContent = <ModalContent>{r8}{((Component) => <Component source="request-modal" />)(importDefault(12626) /* metro dependency 12626: FamilyCenterDataConfirmation */)}</ModalContent>;
|
|
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
|
|
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
const string = intl.string;
|
|
const ISg34l = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ISg34l;
|
|
return (
|
|
<ModalScreen>
|
|
{modalContent}
|
|
<ModalFooter>
|
|
<ButtonGroup>
|
|
<Button
|
|
variant="primary"
|
|
size="lg"
|
|
disabled={isRequestingLink}
|
|
loading={isRequestingLink}
|
|
text={Reflect.apply(string, intl, [ISg34l])}
|
|
onPress={value7}
|
|
/>
|
|
<Button
|
|
variant="secondary"
|
|
size="lg"
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
|
|
onPress={(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop}
|
|
/>
|
|
</ButtonGroup>
|
|
</ModalFooter>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterModalRequestSuccess() { // fn#96810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:3903, offset: 0x021684c1, size: 718 bytes, params: 1, frame: 40
|
|
const value2 = undefined;
|
|
const styles = useStyles();
|
|
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
|
function() {
|
|
return UserStore.getCurrentUser();
|
|
});
|
|
const value3 = env0_4.useCallback(_fun96812, []);
|
|
if (currentUser === null) {
|
|
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
|
}
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
|
const EnvelopeSpotIllustration = (require(5473) /* metro dependency 5473: native */).EnvelopeSpotIllustration;
|
|
const items2 = [<View style={styles.illustration}><EnvelopeSpotIllustration scale={0.7} /></View>];
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const EpwfZl = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).EpwfZl;
|
|
items2[1] = <Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.header}>{Reflect.apply(string,
|
|
intl, [EpwfZl])}</Text>;
|
|
items2[2] = <Text variant="text-sm/medium" color="text-muted" style={styles.description}>{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).dVtWId,
|
|
{email: currentUser == null ? value2 : currentUser.email})}</Text>;
|
|
const modalContent = <ModalContent><View style={styles.content}><View style={styles.textWrapper}>{items2}</View></View></ModalContent>;
|
|
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
return (
|
|
<ModalScreen>
|
|
{modalContent}
|
|
<ModalFooter>
|
|
<Button
|
|
size="lg"
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
|
onPress={value3}
|
|
/>
|
|
</ModalFooter>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterModalRequestError({failureCode}) { // fn#96813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:5341, offset: 0x021687b4, size: 856 bytes, params: 2, frame: 34
|
|
var object2;
|
|
const styles = useStyles();
|
|
const currentUser = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
|
function() {
|
|
return UserStore.getCurrentUser();
|
|
});
|
|
const value3 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
|
|
const nativeModule = require(1305) /* metro dependency 1305: native */;
|
|
const generateBoxShadowStyle = nativeModule.generateBoxShadowStyle;
|
|
const FOUR_DP_ELEVATION_SHADOW_PARAMS = nativeModule.FOUR_DP_ELEVATION_SHADOW_PARAMS;
|
|
const value4 = Reflect.apply(generateBoxShadowStyle, nativeModule, [FOUR_DP_ELEVATION_SHADOW_PARAMS]);
|
|
const value5 = env0_4.useCallback(_fun96815, []);
|
|
(importDefault(44) /* metro dependency 44 */)(currentUser != null, 'User must be logged in to see this modal.');
|
|
const property = FAMILY_CENTER_LINK_REQUEST_ERROR_EXPERIENCES[failureCode];
|
|
object2 = {isAdult: value3 ?? undefined, email: currentUser.email ?? undefined};
|
|
const value6 = property.header(object2);
|
|
const value7 = property.description(object2);
|
|
const icon = property.icon;
|
|
let CHECK = FamilyCenterIconType.CHECK;
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
|
|
const items4 = [styles.ring, value4];
|
|
const items2 = [styles.iconContainer];
|
|
items2[1] = icon === CHECK ? styles.positive : styles.negative;
|
|
CHECK = FamilyCenterIconType.CHECK;
|
|
const items3 = [<View style={items4}><View style={items2}>{icon === CHECK ? <nativeModule.Icon source={importDefault(11365) /* metro dependency 11365 */} color="#FFF" /> : <nativeModule.Icon source={importDefault(8160) /* metro dependency 8160 */} color="#FFF" />}</View></View>];
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
items3[1] = <Text variant="heading-lg/bold" color="mobile-text-heading-primary" style={styles.header}>{value6}</Text>;
|
|
items3[2] = <Text variant="text-sm/medium" color="text-muted" style={styles.description}>{value7}</Text>;
|
|
const modalContent = <ModalContent>{items3}</ModalContent>;
|
|
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
return (
|
|
<ModalScreen>
|
|
{modalContent}
|
|
<ModalFooter>
|
|
<Button
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
|
|
onPress={value5}
|
|
/>
|
|
</ModalFooter>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterPrereqLoading({userId, linkCode}) { // fn#96816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6483, offset: 0x02168b0c, size: 192 bytes, params: 2, frame: 20
|
|
const styles = useStyles();
|
|
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
env0_4.useEffect(function() {
|
|
var env0_0 = false;
|
|
_fun96818()();
|
|
return _fun96822;
|
|
}, []);
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const ActivityIndicator = (require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator;
|
|
return (
|
|
<ModalScreen>
|
|
<View style={styles.container}>
|
|
<ActivityIndicator />
|
|
</View>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterPrereqScreen({title, description, primaryButton}) { // fn#96823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:7293, offset: 0x02168cf9, size: 315 bytes, params: 2, frame: 28
|
|
const styles = useStyles();
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const view = <View style={styles.content}><Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{title}</Text><Text variant="text-sm/medium" color="text-muted" style={styles.description}>{description}</Text></View>;
|
|
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
return (
|
|
<ModalScreen>
|
|
{view}
|
|
<ModalFooter>
|
|
<Button text={primaryButton.text} onPress={primaryButton.onPress} />
|
|
</ModalFooter>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|
|
function useNavigateToVerifyingOnPending() { // fn#96824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8029, offset: 0x02168e34, size: 152 bytes, params: 1, frame: 18
|
|
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
|
_fun96825);
|
|
env0_4.useEffect(_fun96826, [value3, (importDefault(6266) /* metro dependency 6266: usePrevious */)(value3),
|
|
value2]);
|
|
}
|
|
|
|
function FamilyCenterConfirmAgeScreen() { // fn#96827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8407, offset: 0x02168f80, size: 662 bytes, params: 1, frame: 34
|
|
const styles = useStyles();
|
|
useNavigateToVerifyingOnPending();
|
|
const value2 = env0_4.useCallback(function() {
|
|
var defaultImport = importDefault(dependencyMap[35]);
|
|
var object = {};
|
|
object.entryPoint = require(dependencyMap[36]).AgeVerificationModalEntryPoint.FAMILY_CENTER_CONNECTION;
|
|
defaultImport.showAgeVerificationGetStartedModal(object);
|
|
}, []);
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const items2 = [<Image style={styles.art} source={importDefault(12625) /* metro dependency 12625 */} />];
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).pQQMJ7)}</Text>;
|
|
items2[2] = <Text variant="text-sm/medium" color="text-muted" style={styles.description}>{intl.format((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['0o3yg8'],
|
|
{link: 'https://support.discord.com/hc/articles/14155060633623'})}</Text>;
|
|
const view = <View style={styles.content}>{items2}</View>;
|
|
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
|
|
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
return (
|
|
<ModalScreen>
|
|
{view}
|
|
<ModalFooter>
|
|
<ButtonGroup>
|
|
<Button
|
|
variant="primary"
|
|
text={(require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */)['3oUE4o'])}
|
|
onPress={value2}
|
|
/>
|
|
<Button
|
|
variant="tertiary"
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oEAioF)}
|
|
onPress={onPress_96829}
|
|
/>
|
|
</ButtonGroup>
|
|
</ModalFooter>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterVerifyingScreen() { // fn#96830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9377, offset: 0x02169284, size: 304 bytes, params: 1, frame: 21
|
|
const styles = useStyles();
|
|
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
const value3 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useIsAgeVerified();
|
|
const value4 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([UserStore],
|
|
_fun96831);
|
|
const env0_3 = env0_4.useRef(false);
|
|
env0_4.useEffect(_fun96832, [value3, value4, value2]);
|
|
env0_4.useEffect(function() {
|
|
var env0_0 = global.setTimeout(_fun96834, FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT);
|
|
return _fun96835;
|
|
}, [value2]);
|
|
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
|
|
const ActivityIndicator = (require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator;
|
|
return (
|
|
<ModalScreen>
|
|
<View style={styles.container}>
|
|
<ActivityIndicator />
|
|
</View>
|
|
</ModalScreen>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterPrereqInvalidCodeScreen() { // fn#96836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:10248, offset: 0x0216952a, size: 208 bytes, params: 1, frame: 21
|
|
const object3 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
object3.title = Reflect.apply(string, intl,
|
|
[(importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).ewSb6o]);
|
|
object3.description = intl.string((importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).jcUN2F);
|
|
const object4 = {};
|
|
string = intl.string;
|
|
const WAI6xu = (require(1244) /* metro dependency 1244: indexNative */).t.WAI6xu;
|
|
object4.text = Reflect.apply(string, intl, [WAI6xu]);
|
|
object4.onPress = (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop;
|
|
object3.primaryButton = object4;
|
|
return <FamilyCenterPrereqScreen {...object3} />;
|
|
}
|
|
|
|
function FamilyCenterPrereqMustBeAdultScreen() { // fn#96837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:10508, offset: 0x021695fa, size: 259 bytes, params: 1, frame: 23
|
|
useNavigateToVerifyingOnPending();
|
|
const value2 = env0_4.useCallback(function() {
|
|
var defaultImport = importDefault(dependencyMap[35]);
|
|
var object = {};
|
|
object.entryPoint = require(dependencyMap[36]).AgeVerificationModalEntryPoint.FAMILY_CENTER_CONNECTION;
|
|
defaultImport.showAgeVerificationGetStartedModal(object);
|
|
}, []);
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const BQFHXW = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).BQFHXW;
|
|
const format = intl.format;
|
|
const WDjaKn = (importDefault(2224) /* metro dependency 2224: FamilyCenterMessages */).WDjaKn;
|
|
let object = {};
|
|
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['NX+WJN']);
|
|
object.onPress = (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop;
|
|
return (
|
|
<FamilyCenterPrereqScreen
|
|
title={Reflect.apply(string, intl, [BQFHXW])}
|
|
description={Reflect.apply(format, intl, [WDjaKn, {link: {onClick: value2}}])}
|
|
primaryButton={object}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function FamilyCenterRequestModal({userId, linkCode}) { // fn#96840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11179, offset: 0x021696fd, size: 293 bytes, params: 2, frame: 19
|
|
const value2 = (importDefault(8171) /* metro dependency 8171: useIsInAdultAgeGroup */)();
|
|
const FamilyCenterConnectionPrereqExperiment = (require(12632) /* metro dependency 12632: FamilyCenterConnectionPrereqExperiment */).FamilyCenterConnectionPrereqExperiment;
|
|
const useConfig = FamilyCenterConnectionPrereqExperiment.useConfig;
|
|
const enabled = Reflect.apply(useConfig, FamilyCenterConnectionPrereqExperiment,
|
|
[{location: 'FamilyCenterRequestModal'}]).enabled;
|
|
const value3 = env0_4.useMemo(function() {
|
|
return _fun96842(userId, linkCode);
|
|
}, [linkCode, userId]);
|
|
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
|
const r5 = enabled ? FamilyCenterModalRequestSections.PREREQ_LOADING : value2 ? FamilyCenterModalRequestSections.REQUEST : FamilyCenterModalRequestSections.TEEN_SCAN;
|
|
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
return (
|
|
<Modal
|
|
initialRouteName={r5}
|
|
screens={value3}
|
|
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function _fun96807() { // fn#96807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:1379, offset: 0x021683fc, size: 82 bytes, params: 1, frame: 14
|
|
(importDefault(5118) /* metro dependency 5118: FamilyCenterActionCreators */).clearPendingConnection();
|
|
const binding = env0_2;
|
|
const push = binding.push;
|
|
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
|
const SENT = FamilyCenterModalRequestSections.SENT;
|
|
Reflect.apply(push, binding, [SENT]);
|
|
}
|
|
|
|
function _fun96808(a0) { // fn#96808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:1497, offset: 0x0216844e, size: 90 bytes, params: 2, frame: 16
|
|
let value = environment.__proto__;
|
|
value = require(5187) /* metro dependency 5187: FamilyCenterUtils */;
|
|
value = value.getFailureCodeForAPIError(a0);
|
|
const binding = env0_2;
|
|
const push = binding.push;
|
|
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
|
const ERROR = FamilyCenterModalRequestSections.ERROR;
|
|
Reflect.apply(push, binding, [ERROR, {failureCode: value}]);
|
|
}
|
|
|
|
function _fun96812() { // fn#96812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:4032, offset: 0x0216878f, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
|
}
|
|
|
|
function _fun96817() { // fn#96817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6597, offset: 0x02168bcc, size: 34 bytes, params: 1, frame: 10
|
|
_fun96818()();
|
|
return function() {
|
|
env0_0 = true;
|
|
};
|
|
}
|
|
|
|
function _fun96825() { // fn#96825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8136, offset: 0x02168ecc, size: 35 bytes, params: 1, frame: 10
|
|
const value = environment.__proto__;
|
|
return UserStore.getCurrentUser()?.ageVerificationStatus;
|
|
}
|
|
|
|
function _fun96826() { // fn#96826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:8244, offset: 0x02168eef, size: 145 bytes, params: 1, frame: 14
|
|
var binding;
|
|
var value5;
|
|
var replace;
|
|
let r1 = env0_2 != null && env0_2 !== env0_1 && env0_1 != null;
|
|
if (r1) {
|
|
binding = env0_1;
|
|
value5 = environment.__proto__;
|
|
r1 = binding !== (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly.UNVERIFIED;
|
|
}
|
|
if (r1) {
|
|
binding = env0_0;
|
|
replace = binding.replace;
|
|
value = environment.__proto__;
|
|
Reflect.apply(replace, binding,
|
|
[(require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections.VERIFYING]);
|
|
}
|
|
}
|
|
|
|
function FamilyCenterConfirmAgeScreenOnPress() { // fn#96829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9348, owner: FamilyCenterConfirmAgeScreen.onPress, offset: 0x0216925f, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
|
}
|
|
|
|
function _fun96832() { // fn#96832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9632, offset: 0x021693b4, size: 255 bytes, params: 1, frame: 17
|
|
var binding;
|
|
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
|
var value3;
|
|
var moduleValue;
|
|
if (env0_1) {
|
|
if (env0_3.current) {
|
|
return undefined;
|
|
}
|
|
env0_3.current = true;
|
|
value3 = environment.__proto__;
|
|
moduleValue = require(12620) /* metro dependency 12620: FamilyCenterNativeUtils */;
|
|
if (!moduleValue.resumeFamilyCenterConnection()) {
|
|
binding = env0_0;
|
|
binding.replace(FamilyCenterModalRequestSections.ERROR,
|
|
{failureCode: FamilyCenterFailureCode.GENERIC_ERROR});
|
|
}
|
|
} else {
|
|
binding = env0_2;
|
|
var AgeVerificationStatusUkAndAusOnly = (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly;
|
|
var UNVERIFIED = AgeVerificationStatusUkAndAusOnly.UNVERIFIED;
|
|
if (binding === UNVERIFIED) {
|
|
binding = env0_0;
|
|
binding.replace(FamilyCenterModalRequestSections.ERROR,
|
|
{failureCode: FamilyCenterFailureCode.GENERIC_ERROR});
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun96833() { // fn#96833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:9991, offset: 0x021694b3, size: 45 bytes, params: 1, frame: 14
|
|
const env0_0 = global.setTimeout(_fun96834, FAMILY_CENTER_AGE_VERIFICATION_RESUME_TIMEOUT);
|
|
return _fun96835;
|
|
}
|
|
|
|
function _fun96841() { // fn#96841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11375, offset: 0x02169822, size: 30 bytes, params: 1, frame: 13
|
|
return getScreens_96842(userId, linkCode);
|
|
}
|
|
|
|
function _fun96818() { // fn#96818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6613, offset: 0x02168bee, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env2_3(_fun96820);
|
|
return _fun96821;
|
|
}
|
|
|
|
function _fun96834() { // fn#96834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:10014, offset: 0x021694e0, size: 74 bytes, params: 1, frame: 15
|
|
const binding = env1_0;
|
|
const replace = binding.replace;
|
|
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
|
const ERROR = FamilyCenterModalRequestSections.ERROR;
|
|
const GENERIC_ERROR = FamilyCenterFailureCode.GENERIC_ERROR;
|
|
Reflect.apply(replace, binding, [ERROR, {failureCode: GENERIC_ERROR}]);
|
|
}
|
|
|
|
function getScreens_96842(a0, a1) { // fn#96842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11379, offset: 0x02169840, size: 682 bytes, params: 3, frame: 25
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const object11 = {};
|
|
const value = environment.__proto__.__proto__;
|
|
const FamilyCenterModalRequestSections = (require(12623) /* metro dependency 12623: FamilyCenterModalRequestRouting */).FamilyCenterModalRequestSections;
|
|
const PREREQ_LOADING = FamilyCenterModalRequestSections.PREREQ_LOADING;
|
|
const object12 = {};
|
|
const binding = env2_21;
|
|
copyDataProperties(object12, binding, undefined);
|
|
object12['render'] = getScreens_96842Render;
|
|
object11[PREREQ_LOADING] = object12;
|
|
const CONFIRM_AGE = FamilyCenterModalRequestSections.CONFIRM_AGE;
|
|
const object13 = {};
|
|
copyDataProperties(object13, binding, undefined);
|
|
object13['render'] = getScreens_96842Render_96844;
|
|
object11[CONFIRM_AGE] = object13;
|
|
const VERIFYING = FamilyCenterModalRequestSections.VERIFYING;
|
|
const object14 = {};
|
|
copyDataProperties(object14, binding, undefined);
|
|
object14['render'] = getScreens_96842Render_96845;
|
|
object11[VERIFYING] = object14;
|
|
const REQUEST = FamilyCenterModalRequestSections.REQUEST;
|
|
const object15 = {};
|
|
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
|
|
object15.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
|
object15.headerShown = true;
|
|
object15.headerTitle = function() {
|
|
return null;
|
|
};
|
|
object15.render = render_96847;
|
|
object11[REQUEST] = object15;
|
|
const INVALID_CODE = FamilyCenterModalRequestSections.INVALID_CODE;
|
|
const object16 = {};
|
|
copyDataProperties(object16, binding, navigatorHeaderNativeModule);
|
|
object16['render'] = getScreens_96842Render_96848;
|
|
object11[INVALID_CODE] = object16;
|
|
const MUST_BE_ADULT = FamilyCenterModalRequestSections.MUST_BE_ADULT;
|
|
const object17 = {};
|
|
copyDataProperties(object17, binding, navigatorHeaderNativeModule);
|
|
object17['render'] = getScreens_96842Render_96849;
|
|
object11[MUST_BE_ADULT] = object17;
|
|
const SENT = FamilyCenterModalRequestSections.SENT;
|
|
const object18 = {headerShown: true};
|
|
object18.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
|
object18.headerTitle = function() {
|
|
return null;
|
|
};
|
|
object18.render = render_96851;
|
|
object11[SENT] = object18;
|
|
const ERROR = FamilyCenterModalRequestSections.ERROR;
|
|
const object19 = {headerShown: true};
|
|
object19.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
|
object19.headerTitle = function() {
|
|
return null;
|
|
};
|
|
object19.render = render_96853;
|
|
object11[ERROR] = object19;
|
|
const TEEN_SCAN = FamilyCenterModalRequestSections.TEEN_SCAN;
|
|
const object20 = {fullscreen: true};
|
|
object20.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton((importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop);
|
|
object20.render = render_96854;
|
|
object11[TEEN_SCAN] = object20;
|
|
return object11;
|
|
}
|
|
|
|
function* _fun96820() { // fn#96820, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:6633, offset: 0x02168c1d, size: 220 bytes, params: 1, frame: 18
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
var value3 = env4_0(env4_2[11]);
|
|
yield value3.resolveConnectionPrereqTarget(require, importDefault);
|
|
var value5 = undefined;
|
|
if (false) {
|
|
return value5;
|
|
}
|
|
if (!userId) {
|
|
if (value5.section === env4_0(env4_2[11]).FamilyCenterModalRequestSections.ERROR) {
|
|
dependencyMap.replace(value5.section, value5.params);
|
|
} else if (value5.section === env4_0(env4_2[11]).FamilyCenterModalRequestSections.REQUEST) {
|
|
dependencyMap.replace(value5.section, value5.params);
|
|
} else {
|
|
dependencyMap.replace(value5.section);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function getScreens_96842Render() { // fn#96843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11483, owner: getScreens_96842.render, offset: 0x02169aea, size: 43 bytes, params: 1, frame: 14
|
|
return <FamilyCenterPrereqLoading userId={env0_0} linkCode={require} />;
|
|
}
|
|
|
|
function getScreens_96842Render_96844() { // fn#96844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11608, owner: getScreens_96842.render, offset: 0x02169b15, size: 23 bytes, params: 1, frame: 13
|
|
return <FamilyCenterConfirmAgeScreen />;
|
|
}
|
|
|
|
function getScreens_96842Render_96845() { // fn#96845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11715, owner: getScreens_96842.render, offset: 0x02169b2c, size: 23 bytes, params: 1, frame: 13
|
|
return <FamilyCenterVerifyingScreen />;
|
|
}
|
|
|
|
function getScreens_96842Render_96847(a0) { // fn#96847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:11905, owner: getScreens_96842.render, offset: 0x02169b43, size: 68 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
return (
|
|
<FamilyCenterModalRequestConfirm
|
|
userId={env0_0}
|
|
linkCode={require}
|
|
teenIdentity={a0?.teenIdentity}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function getScreens_96842Render_96848() { // fn#96848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12079, owner: getScreens_96842.render, offset: 0x02169b87, size: 23 bytes, params: 1, frame: 13
|
|
return <FamilyCenterPrereqInvalidCodeScreen />;
|
|
}
|
|
|
|
function getScreens_96842Render_96849() { // fn#96849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12197, owner: getScreens_96842.render, offset: 0x02169b9e, size: 23 bytes, params: 1, frame: 13
|
|
return <FamilyCenterPrereqMustBeAdultScreen />;
|
|
}
|
|
|
|
function getScreens_96842Render_96851() { // fn#96851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12392, owner: getScreens_96842.render, offset: 0x02169bb5, size: 23 bytes, params: 1, frame: 13
|
|
return <FamilyCenterModalRequestSuccess />;
|
|
}
|
|
|
|
function getScreens_96842Render_96853({failureCode}) { // fn#96853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12584, owner: getScreens_96842.render, offset: 0x02169bcc, size: 37 bytes, params: 2, frame: 13
|
|
return <FamilyCenterModalRequestError failureCode={failureCode} />;
|
|
}
|
|
|
|
function getScreens_96842Render_96854() { // fn#96854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12812:12784, owner: getScreens_96842.render, offset: 0x02169bf1, size: 38 bytes, params: 1, frame: 13
|
|
const INELIGIBLE_FOR_FAMILY_CENTER = FamilyCenterFailureCode.INELIGIBLE_FOR_FAMILY_CENTER;
|
|
return <FamilyCenterModalRequestError failureCode={INELIGIBLE_FOR_FAMILY_CENTER} />;
|
|
}
|
|
|