Files
2026-07-28 01:06:53 +03:00

171 lines
12 KiB
TypeScript

/* 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] */
import UseInitialValue from '../../../../hooks/useInitialValue.tsx'; /* Metro dependency 6518 */
import HubEmailConnectionStudentPrompt from './HubEmailConnectionStudentPrompt.tsx'; /* Metro dependency 9446 */
import HubEmailConnectionContent from './HubEmailConnectionContent.tsx'; /* Metro dependency 9449 */
import HubEmailConnectionWaitlist from './HubEmailConnectionWaitlist.tsx'; /* Metro dependency 9452 */
import HubEmailConnectionSubmitSchool from './HubEmailConnectionSubmitSchool.tsx'; /* Metro dependency 9454 */
import HubEmailConnectionGuildSelect from './HubEmailConnectionGuildSelect.tsx'; /* Metro dependency 9455 */
import HubEmailConnectionPinVerify from './HubEmailConnectionPinVerify.tsx'; /* Metro dependency 9456 */
import HubEmailConnectionGuildSelectSearch from './HubEmailConnectionGuildSelectSearch.tsx'; /* Metro dependency 9459 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AnalyticsUtilsModule from '../../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as NavigatorHeaderNativeModule from '../../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as NavigatorConstantsNativeModule from '../../../../design/components/Navigator/native/NavigatorConstants.native.tsx'; /* Metro dependency 5314 */
import * as SafeAreaViewModule from '../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as HubConstantsModule from '../../HubConstants.tsx'; /* Metro dependency 9445 */
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});
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const NAV_BAR_HEIGHT = (NavigatorConstantsNativeModule).NAV_BAR_HEIGHT;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{safeArea: {marginTop: NAV_BAR_HEIGHT, flex: 1}}]);
(FileImportTrackerModule).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 r6 = a1 ? NavigatorHeaderNativeModule.getHeaderBackButton(a0) : NavigatorHeaderNativeModule.getHeaderCloseButton(a0);
const object = {};
const STUDENT_PROMPT = HubEmailConnectionSteps.STUDENT_PROMPT;
object[STUDENT_PROMPT] = {fullscreen: true, headerLeft: r6, headerTitle: function() {
return null;
}, render: render_73468};
const VERIFY_EMAIL = HubEmailConnectionSteps.VERIFY_EMAIL;
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const HUB_EMAIL_SIGNUP = ImpressionNames.HUB_EMAIL_SIGNUP;
object[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;
object[EMAIL_WAITLIST] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73473};
const SUBMIT_SCHOOL = HubEmailConnectionSteps.SUBMIT_SCHOOL;
object[SUBMIT_SCHOOL] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73475};
const SELECT_SCHOOL = HubEmailConnectionSteps.SELECT_SCHOOL;
object[SELECT_SCHOOL] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73477};
const VERIFY_PIN = HubEmailConnectionSteps.VERIFY_PIN;
object[VERIFY_PIN] = {fullscreen: true, headerTitle: function() {
return null;
}, render: render_73479};
const SELECT_SCHOOL_SEARCH = HubEmailConnectionSteps.SELECT_SCHOOL_SEARCH;
object[SELECT_SCHOOL_SEARCH] = {'fullscreen': true, 'headerShown': false, render: render_73480};
return object;
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) => <Component {...a0} />)(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) => <Component {...a0} />)(HubEmailConnectionContent);
}
function getScreens_73466Render_73473(a0) { // fn#73473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9630:700, owner: getScreens_73466.render, offset: 0x01d6deff, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => <Component {...a0} />)(HubEmailConnectionWaitlist);
}
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) => <Component {...a0} />)(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) => <Component {...a0} />)(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) => <Component {...a0} />)(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) => <Component {...a0} />)(HubEmailConnectionGuildSelectSearch);
}
}
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 = (UseNavigationNativeModule).useNavigation();
const {screens, initialRouteStack} = (UseInitialValue)(_fun73482);
const Navigator = (NavigatorNativeModule).Navigator;
const intl = (IndexNativeModule).intl;
return (
<Navigator
screens={screens}
initialRouteStack={initialRouteStack}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
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 onClose_734832 = onClose_73483;
const items2 = [];
const displayStudentPromptBinding = displayStudentPrompt;
const push = items2.push;
const object = {};
if (displayStudentPromptBinding) {
object.name = HubEmailConnectionSteps.STUDENT_PROMPT;
object.params = {onClose: onClose_734832};
Reflect.apply(push, items2, [object]);
} else {
object.name = HubEmailConnectionSteps.VERIFY_EMAIL;
object.params = {invite: invite, onClose: onClose_734832};
Reflect.apply(push, items2, [object]);
}
const object4 = {};
object4.screens = getScreens_73466(onClose_734832, isNestedNavigator);
object4.initialRouteStack = items2;
return object4;
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();
}
}
}
}
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 = (SafeAreaViewModule).SafeAreaPaddingView;
return (
<SafeAreaPaddingView top style={styles.safeArea}>
{children}
</SafeAreaPaddingView>
);
}
}
global.__d(_fun73465, 9444, [31, 9445, 33, 4501, 5314, 5282, 9446, 480, 9449, 9452, 9454, 9455, 9456, 9459, 6618,
1484, 6518, 9443, 5280, 1244,
2]) /* metro module 9444, dependencies: [31, 9445, 33, 4501, 5314, 5282, 9446, 480, 9449, 9452, 9454, 9455, 9456, 9459, 6618, 1484, 6518, 9443, 5280, 1244, 2] */;