90 lines
5.4 KiB
TypeScript
90 lines
5.4 KiB
TypeScript
/* Metro module 9446; source: modules/hub/native/components/HubEmailConnectionStudentPrompt.tsx; dependencies: [31, 27, 9445, 661, 33, 4501, 6597, 697, 1484, 9444, 1305, 1244, 6746, 9447, 683, 9448, 2] */
|
|
function _fun73486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9632:6, offset: 0x01d6e2c4, size: 422 bytes, params: 8, frame: 27
|
|
var object4;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
const env0_3 = value.View;
|
|
const env0_4 = value.Image;
|
|
const env0_5 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
|
|
value = require(661) /* metro dependency 661: Constants */;
|
|
const Fonts = value.Fonts;
|
|
const env0_6 = value.AnalyticEvents;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_7 = value.jsx;
|
|
const env0_8 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object4 = {container: {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'padding': 16}};
|
|
const object5 = {};
|
|
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
|
|
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
|
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
|
copyDataProperties(object5, textStyles(PRIMARY_BOLD, MOBILE_TEXT_HEADING_PRIMARY, 24), undefined);
|
|
object5['textAlign'] = 'center';
|
|
object5['marginBottom'] = 24;
|
|
object4.header = object5;
|
|
const object6 = {};
|
|
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
|
object6.marginBottom = 8;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object4.row = object6;
|
|
const env0_9 = Reflect.apply(createStyles, value, [object4]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionStudentPrompt.tsx');
|
|
exports.default = HubEmailConnectionStudentPrompt;
|
|
}
|
|
|
|
function HubEmailConnectionStudentPrompt({onClose, invite}) { // fn#73487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9632:674, offset: 0x01d6e46a, size: 572 bytes, params: 2, frame: 31
|
|
const styles = useStyles();
|
|
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
|
const HubEmailConnectionScreen = (require(9444) /* metro dependency 9444: HubEmailConnectionModal */).HubEmailConnectionScreen;
|
|
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const items2 = [<LegacyText style={styles.header}>{Reflect.apply(string, intl,
|
|
[(require(1244) /* metro dependency 1244: indexNative */).t['+/Pv0h']])}</LegacyText>];
|
|
const FormRow = importDefault(6746) /* metro dependency 6746: FormRow */;
|
|
const formRowProps = {DEPRECATED_style: styles.row,
|
|
leading: <Image source={importDefault(9447) /* metro dependency 9447 */} />};
|
|
let Arrow = FormRow.Arrow;
|
|
formRowProps.trailing = Arrow;
|
|
formRowProps.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['a7a/D+']);
|
|
string = intl.string;
|
|
const Gsegk8 = (require(1244) /* metro dependency 1244: indexNative */).t.Gsegk8;
|
|
formRowProps.subLabel = Reflect.apply(string, intl, [Gsegk8]);
|
|
formRowProps.onPress = onPress_73488;
|
|
items2[1] = <FormRow {...formRowProps} />;
|
|
const value = FormRow;
|
|
const valueProps = {DEPRECATED_style: styles.row,
|
|
leading: <Image source={importDefault(9448) /* metro dependency 9448 */} />};
|
|
Arrow = FormRow.Arrow;
|
|
valueProps.trailing = Arrow;
|
|
string = intl.string;
|
|
const GLG9n4 = (require(1244) /* metro dependency 1244: indexNative */).t.GLG9n4;
|
|
valueProps.label = Reflect.apply(string, intl, [GLG9n4]);
|
|
valueProps.onPress = onClose;
|
|
items2[2] = ((Component) => <Component {...valueProps} />)(value);
|
|
return (
|
|
<HubEmailConnectionScreen>
|
|
<View style={styles.container}>
|
|
{items2}
|
|
</View>
|
|
</HubEmailConnectionScreen>
|
|
);
|
|
}
|
|
|
|
function HubEmailConnectionStudentPromptOnPress() { // fn#73488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9632:1146, owner: HubEmailConnectionStudentPrompt.onPress, offset: 0x01d6e6a6, size: 95 bytes, params: 1, frame: 16
|
|
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
const track = defaultImport.track;
|
|
const HUB_STUDENT_PROMPT_CLICKED = AnalyticEvents.HUB_STUDENT_PROMPT_CLICKED;
|
|
Reflect.apply(track, defaultImport, [HUB_STUDENT_PROMPT_CLICKED]);
|
|
const binding = env0_2;
|
|
const push = binding.push;
|
|
const VERIFY_EMAIL = HubEmailConnectionSteps.VERIFY_EMAIL;
|
|
Reflect.apply(push, binding, [VERIFY_EMAIL, {onClose: onClose, invite: invite}]);
|
|
}
|
|
|