/* Metro module 9444; source: modules/hub/native/components/HubEmailConnectionModal.tsx; dependencies: [31, 9445, 33, 4501, 5314, 5282, 9446, 480, 9449, 9452, 9454, 9455, 9456, 9459, 6618, 1484, 6518, 9443, 5280, 1244, 2] */
function _fun73465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:6, offset: 0x01d6dbd4, size: 245 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{safeArea: {marginTop: NAV_BAR_HEIGHT, flex: 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionModal.tsx');
exports.default = HubEmailConnectionModal;
exports.HubEmailConnectionScreen = HubEmailConnectionScreen;
}
function getScreens_73466(a0, a1) { // fn#73466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:229, offset: 0x01d6dcc9, size: 442 bytes, params: 3, frame: 19
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
const r6 = a1 ? navigatorHeaderNativeModule.getHeaderBackButton(a0) : navigatorHeaderNativeModule.getHeaderCloseButton(a0);
const object2 = {};
const STUDENT_PROMPT = HubEmailConnectionSteps.STUDENT_PROMPT;
object2[STUDENT_PROMPT] = {fullscreen: true, headerLeft: r6, headerTitle: function() {
return null;
}, render: render_73468};
const VERIFY_EMAIL = HubEmailConnectionSteps.VERIFY_EMAIL;
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const HUB_EMAIL_SIGNUP = ImpressionNames.HUB_EMAIL_SIGNUP;
object2[VERIFY_EMAIL] = {impressionName: HUB_EMAIL_SIGNUP, impressionProperties: function({invite}) {
return {has_invite: invite != null};
}, fullscreen: true, headerLeft: r6, headerTitle: function() {
return null;
}, render: render_73471};
const EMAIL_WAITLIST = HubEmailConnectionSteps.EMAIL_WAITLIST;
object2[EMAIL_WAITLIST] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73473};
const SUBMIT_SCHOOL = HubEmailConnectionSteps.SUBMIT_SCHOOL;
object2[SUBMIT_SCHOOL] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73475};
const SELECT_SCHOOL = HubEmailConnectionSteps.SELECT_SCHOOL;
object2[SELECT_SCHOOL] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73477};
const VERIFY_PIN = HubEmailConnectionSteps.VERIFY_PIN;
object2[VERIFY_PIN] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73479};
const SELECT_SCHOOL_SEARCH = HubEmailConnectionSteps.SELECT_SCHOOL_SEARCH;
object2[SELECT_SCHOOL_SEARCH] = {'fullscreen': true, 'headerShown': false, render: render_73480};
return object2;
}
function HubEmailConnectionModal({isNestedNavigator, onCloseExtra, invite, displayStudentPrompt}) { // fn#73481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1159, offset: 0x01d6dff4, size: 218 bytes, params: 2, frame: 18
const env0_4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const {screens, initialRouteStack} = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun73482);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
);
}
function HubEmailConnectionScreen({children}) { // fn#73484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1769, offset: 0x01d6e1b3, size: 81 bytes, params: 2, frame: 16
const styles = useStyles();
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
return (
{children}
);
}
function getScreens_73466Render(a0) { // fn#73468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:407, owner: getScreens_73466.render, offset: 0x01d6de83, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => )(importDefault(9446) /* metro dependency 9446: HubEmailConnectionStudentPrompt */);
}
function getScreens_73466Render_73471(a0) { // fn#73471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:616, owner: getScreens_73466.render, offset: 0x01d6dece, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => )(importDefault(9449) /* metro dependency 9449: HubEmailConnectionContent */);
}
function getScreens_73466Render_73475(a0) { // fn#73475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:783, owner: getScreens_73466.render, offset: 0x01d6df30, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => )(importDefault(9454) /* metro dependency 9454: HubEmailConnectionSubmitSchool */);
}
function getScreens_73466Render_73477(a0) { // fn#73477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:867, owner: getScreens_73466.render, offset: 0x01d6df61, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => )(importDefault(9455) /* metro dependency 9455: HubEmailConnectionGuildSelect */);
}
function getScreens_73466Render_73479(a0) { // fn#73479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:948, owner: getScreens_73466.render, offset: 0x01d6df92, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => )(importDefault(9456) /* metro dependency 9456: HubEmailConnectionPinVerify */);
}
function getScreens_73466Render_73480(a0) { // fn#73480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1033, owner: getScreens_73466.render, offset: 0x01d6dfc3, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => )(importDefault(9459) /* metro dependency 9459: HubEmailConnectionGuildSelectSearch */);
}
function _fun73482() { // fn#73482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1305, offset: 0x01d6e0ce, size: 132 bytes, params: 1, frame: 18
const closure = onClose_73483;
const items2 = [];
const displayStudentPromptBinding = displayStudentPrompt;
const push = items2.push;
const object2 = {};
if (displayStudentPromptBinding) {
object2.name = HubEmailConnectionSteps.STUDENT_PROMPT;
object2.params = {onClose: closure};
Reflect.apply(push, items2, [object2]);
} else {
object2.name = HubEmailConnectionSteps.VERIFY_EMAIL;
object2.params = {invite: invite, onClose: closure};
Reflect.apply(push, items2, [object2]);
}
const object3 = {};
object3.screens = getScreens_73466(closure, isNestedNavigator);
object3.initialRouteStack = items2;
return object3;
}
function onClose_73483() { // fn#73483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:1326, offset: 0x01d6e152, size: 97 bytes, params: 1, frame: 13
let value = a0;
const r4 = value !== undefined ? value : false;
value = environment.__proto__;
if (onCloseExtra != null) {
onCloseExtra(r4 === true);
}
if (isNestedNavigator) {
env1_4.goBack();
} else {
value = environment.__proto__.__proto__;
value = importDefault(9443) /* metro dependency 9443: HubEmailConnectionModalActionCreators */;
value.close();
}
}