473 lines
22 KiB
TypeScript
473 lines
22 KiB
TypeScript
/* Metro module 9454; source: modules/hub/native/components/HubEmailConnectionSubmitSchool.tsx; dependencies: [5, 57, 31, 27, 9445, 661, 33, 4501, 697, 1484, 5463, 9450, 4131, 9444, 1305, 1244, 4573, 8967, 4578, 2] */
|
|
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import UseSafeAreaInsetsKeyboardAwareNative from '../../../safe_area/useSafeAreaInsetsKeyboardAware.native.tsx'; /* Metro dependency 5463 */
|
|
import FreeFormInputGroup from '../../../../design/void/Form/native/FreeFormInputGroup.tsx'; /* Metro dependency 8967 */
|
|
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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
|
|
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 TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
|
|
import * as HubEmailConnectionModalModule from './HubEmailConnectionModal.tsx'; /* Metro dependency 9444 */
|
|
import * as HubConstantsModule from '../../HubConstants.tsx'; /* Metro dependency 9445 */
|
|
|
|
function _fun73522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:6, offset: 0x01d6fe83, size: 493 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactNativeModule;
|
|
const env0_6 = value.View;
|
|
const env0_7 = value.ScrollView;
|
|
const Fonts = (ConstantsModule).Fonts;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_9 = value.jsx;
|
|
const env0_10 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
object.container = {paddingHorizontal: 16};
|
|
const object3 = {'fontFamily': null, 'color': null, 'fontSize': 24, 'textAlign': 'center', 'marginBottom': 8};
|
|
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
|
object3.fontFamily = PRIMARY_BOLD;
|
|
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
|
object3.color = MOBILE_TEXT_HEADING_PRIMARY;
|
|
object.title = object3;
|
|
object.description = {'textAlign': 'center', 'marginBottom': 24};
|
|
object.scrollViewContainer = {flexGrow: 2};
|
|
object.input = {marginBottom: 8};
|
|
const object6 = {};
|
|
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
|
object.redesignTextInput = object6;
|
|
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
|
object.redesignGrowSpacing = {flexGrow: 2, minHeight: PX_24};
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.redesignSubmit = {paddingHorizontal: PX_16};
|
|
const env0_11 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/hub/native/components/HubEmailConnectionSubmitSchool.tsx');
|
|
exports.default = HubEmailConnectionSubmitSchool;
|
|
function HubEmailConnectionSubmitSchool({onClose, email}) { // fn#73523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:807, offset: 0x01d70070, size: 975 bytes, params: 2, frame: 38
|
|
const styles = useStyles();
|
|
const env0_2 = (UseNavigationNativeModule).useNavigation();
|
|
let useState = ReactModule.useState;
|
|
const value3 = Reflect.apply(useState, ReactModule, [false]);
|
|
const binding2 = env0_4;
|
|
const value4 = binding2(value3, 2);
|
|
const property = value4[0];
|
|
const env0_3 = value4[1];
|
|
useState = ReactModule.useState;
|
|
const value5 = binding2(Reflect.apply(useState, ReactModule, [null]), 2);
|
|
const property2 = value5[0];
|
|
var env0_4 = value5[1];
|
|
const insets = (UseSafeAreaInsetsKeyboardAwareNative)().insets;
|
|
const value6 = ReactModule.useRef(null);
|
|
useState = ReactModule.useState;
|
|
const value7 = binding2(Reflect.apply(useState, ReactModule, ['']), 2);
|
|
const property3 = value7[0];
|
|
const property4 = value7[1];
|
|
const value8 = _fun73524();
|
|
const HubEmailConnectionScreen = (HubEmailConnectionModalModule).HubEmailConnectionScreen;
|
|
const items4 = [styles.scrollViewContainer];
|
|
const bottom = insets.bottom;
|
|
const PX_16 = (Native).space.PX_16;
|
|
items4[1] = {paddingBottom: bottom + PX_16};
|
|
const LegacyText = (NativeModule).LegacyText;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const items2 = [
|
|
<LegacyText style={styles.title} accessibilityRole="header">
|
|
{Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['2FNWBG']])}
|
|
</LegacyText>,
|
|
];
|
|
const Text = (TextModule).Text;
|
|
items2[1] = (
|
|
<Text
|
|
style={styles.description}
|
|
variant="text-sm/medium"
|
|
color="text-default"
|
|
>
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/4y6ox'])}
|
|
</Text>
|
|
);
|
|
const freeFormInputGroupProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['L+AfJr'])};
|
|
string = intl.string;
|
|
const Y1btJd = (require(1244) /* metro dependency 1244: indexNative */).t.Y1btJd;
|
|
freeFormInputGroupProps.placeholder = Reflect.apply(string, intl, [Y1btJd]);
|
|
freeFormInputGroupProps.value = property3;
|
|
freeFormInputGroupProps.onChangeText = property4;
|
|
freeFormInputGroupProps.style = styles.input;
|
|
freeFormInputGroupProps.textStyle = styles.redesignTextInput;
|
|
const ClearButtonVisibility = (NativeModule).ClearButtonVisibility;
|
|
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
|
|
freeFormInputGroupProps.clearButtonVisibility = WITH_CONTENT;
|
|
freeFormInputGroupProps.error = property2?.getAnyErrorMessage();
|
|
freeFormInputGroupProps.onFocus = function() {
|
|
global.setTimeout(_fun73529, 100);
|
|
};
|
|
freeFormInputGroupProps.onBlur = function() {
|
|
global.setTimeout(_fun73531, 100);
|
|
};
|
|
items2[2] = <FreeFormInputGroup {...freeFormInputGroupProps} />;
|
|
const items3 = [
|
|
<View style={styles.container}>
|
|
{items2}
|
|
</View>,
|
|
];
|
|
items3[1] = <View style={styles.redesignGrowSpacing} />;
|
|
const Button = (ButtonNativeModule).Button;
|
|
string = intl.string;
|
|
const PDsYAo = (require(1244) /* metro dependency 1244: indexNative */).t.PDsYAo;
|
|
items3[2] = (
|
|
<View style={styles.redesignSubmit}>
|
|
<Button
|
|
size="lg"
|
|
loading={property}
|
|
text={Reflect.apply(string, intl, [PDsYAo])}
|
|
onPress={value8}
|
|
/>
|
|
</View>
|
|
);
|
|
return (
|
|
<HubEmailConnectionScreen>
|
|
<ScrollView ref={value6} contentContainerStyle={items4}>
|
|
{items3}
|
|
</ScrollView>
|
|
</HubEmailConnectionScreen>
|
|
);
|
|
function _fun73524() { // fn#73524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:1065, offset: 0x01d7043f, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_3(_fun73526);
|
|
return _fun73527;
|
|
function* _fun73526() { // fn#73526, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:1085, offset: 0x01d7046e, size: 246 bytes, params: 1, frame: 18
|
|
var value;
|
|
var value2;
|
|
var binding;
|
|
var value3;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var signup;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var push;
|
|
var EMAIL_WAITLIST;
|
|
var object;
|
|
var error;
|
|
var value8;
|
|
var binding3;
|
|
var binding4;
|
|
var value9;
|
|
var APIError;
|
|
var prototype;
|
|
var aPIError;
|
|
var value11;
|
|
exceptionLanding46: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
env2_4(null);
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort45: while (true) {
|
|
exceptionLanding30: while (true) {
|
|
try {
|
|
try {
|
|
binding = env2_3;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
value8 = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding3 = env3_0;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
binding4 = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
property = binding4[12];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value9 = binding3(property);
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
APIError = value9.APIError;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
prototype = APIError.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
aPIError = new APIError();
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value11 = aPIError instanceof Object ? aPIError : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
binding(value11);
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
break reduciblePort45;
|
|
}
|
|
env2_3(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding(true);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
try {
|
|
binding = env3_1;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env3_2;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[11];
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
signup = value4.signup;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(signup, value4, [importDefault, View]);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value7) {
|
|
env2_3(false);
|
|
return value6;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
push = dependencyMap.push;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env3_8;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
EMAIL_WAITLIST = binding.EMAIL_WAITLIST;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
object.school = View;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
object.onClose = require;
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(push, dependencyMap, [EMAIL_WAITLIST, object]);
|
|
} catch (error) {
|
|
break exceptionLanding30;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
env2_3(false);
|
|
return undefined;
|
|
}
|
|
env2_3(false);
|
|
throw error;
|
|
}
|
|
|
|
function _fun73527() { // fn#73527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:1251, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function HubEmailConnectionSubmitSchoolOnFocus() { // fn#73528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:2048, owner: HubEmailConnectionSubmitSchool.onFocus, offset: 0x01d70564, size: 30 bytes, params: 1, frame: 13
|
|
global.setTimeout(_fun73529, 100);
|
|
function _fun73529() { // fn#73529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:2065, offset: 0x01d70582, size: 32 bytes, params: 1, frame: 9
|
|
const current = env1_5.current;
|
|
if (current != null) {
|
|
current.scrollToEnd();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function HubEmailConnectionSubmitSchoolOnBlur() { // fn#73530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:2128, owner: HubEmailConnectionSubmitSchool.onBlur, offset: 0x01d705a2, size: 30 bytes, params: 1, frame: 13
|
|
global.setTimeout(_fun73531, 100);
|
|
function _fun73531() { // fn#73531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9640:2145, offset: 0x01d70582, size: 32 bytes, params: 1, frame: 9
|
|
const current = env1_5.current;
|
|
if (current != null) {
|
|
current.scrollToEnd();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun73522, 9454, [5, 57, 31, 27, 9445, 661, 33, 4501, 697, 1484, 5463, 9450, 4131, 9444, 1305, 1244,
|
|
4573, 8967, 4578,
|
|
2]) /* metro module 9454, dependencies: [5, 57, 31, 27, 9445, 661, 33, 4501, 697, 1484, 5463, 9450, 4131, 9444, 1305, 1244, 4573, 8967, 4578, 2] */;
|