103 lines
6.5 KiB
TypeScript
103 lines
6.5 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] */
|
|
import AnalyticsUtils from '../../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
|
|
import TextStyles from '../../../rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */
|
|
import FormRow from '../../../../design/void/Form/native/FormRow.tsx'; /* Metro dependency 6746 */
|
|
import Module09447 from '../../../../by-id/module-09447.js'; /* Metro dependency 9447 */
|
|
import Module09448 from '../../../../by-id/module-09448.js'; /* Metro dependency 9448 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
|
|
import * as HubEmailConnectionModalModule from './HubEmailConnectionModal.tsx'; /* Metro dependency 9444 */
|
|
import * as HubConstantsModule from '../../HubConstants.tsx'; /* Metro dependency 9445 */
|
|
|
|
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
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = ReactNativeModule;
|
|
const env0_3 = value.View;
|
|
const env0_4 = value.Image;
|
|
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;
|
|
object = {container: {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'padding': 16}};
|
|
const object2 = {};
|
|
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
|
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
|
copyDataProperties(object2, TextStyles(PRIMARY_BOLD, MOBILE_TEXT_HEADING_PRIMARY, 24), undefined);
|
|
object2['textAlign'] = 'center';
|
|
object2['marginBottom'] = 24;
|
|
object.header = object2;
|
|
const object3 = {};
|
|
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
|
object3.marginBottom = 8;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object3.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object.row = object3;
|
|
const env0_9 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).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 = (UseNavigationNativeModule).useNavigation();
|
|
const HubEmailConnectionScreen = (HubEmailConnectionModalModule).HubEmailConnectionScreen;
|
|
const LegacyText = (NativeModule).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 formRowProps = {DEPRECATED_style: styles.row,
|
|
leading: <Image source={Module09447} />};
|
|
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 valueProps = {DEPRECATED_style: styles.row,
|
|
leading: <Image source={Module09448} />};
|
|
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} />)(FormRow);
|
|
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 = 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}]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun73486, 9446, [31, 27, 9445, 661, 33, 4501, 6597, 697, 1484, 9444, 1305, 1244, 6746, 9447, 683, 9448,
|
|
2]) /* metro module 9446, dependencies: [31, 27, 9445, 661, 33, 4501, 6597, 697, 1484, 9444, 1305, 1244, 6746, 9447, 683, 9448, 2] */;
|