Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,426 @@
|
||||
/* 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] */
|
||||
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
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.ScrollView;
|
||||
const env0_8 = (require(9445) /* metro dependency 9445: HubConstants */).HubEmailConnectionSteps;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).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;
|
||||
object2 = {};
|
||||
object2.container = {paddingHorizontal: 16};
|
||||
const object4 = {'fontFamily': null, 'color': null, 'fontSize': 24, 'textAlign': 'center', 'marginBottom': 8};
|
||||
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
|
||||
object4.fontFamily = PRIMARY_BOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object4.color = MOBILE_TEXT_HEADING_PRIMARY;
|
||||
object2.title = object4;
|
||||
object2.description = {'textAlign': 'center', 'marginBottom': 24};
|
||||
object2.scrollViewContainer = {flexGrow: 2};
|
||||
object2.input = {marginBottom: 8};
|
||||
const object5 = {};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.redesignTextInput = object5;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.redesignGrowSpacing = {flexGrow: 2, minHeight: PX_24};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.redesignSubmit = {paddingHorizontal: PX_16};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).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 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_4;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
const env0_3 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value5[0];
|
||||
var env0_4 = value5[1];
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
|
||||
const value6 = binding.useRef(null);
|
||||
useState = binding.useState;
|
||||
const value7 = binding2(Reflect.apply(useState, binding, ['']), 2);
|
||||
const property3 = value7[0];
|
||||
const property4 = value7[1];
|
||||
const value8 = _fun73524();
|
||||
const HubEmailConnectionScreen = (require(9444) /* metro dependency 9444: HubEmailConnectionModal */).HubEmailConnectionScreen;
|
||||
const items4 = [styles.scrollViewContainer];
|
||||
const bottom = insets.bottom;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items4[1] = {paddingBottom: bottom + PX_16};
|
||||
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.title} accessibilityRole="header">{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['2FNWBG']])}</LegacyText>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).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 FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
|
||||
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 = (require(1305) /* metro dependency 1305: native */).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 = (require(4578) /* metro dependency 4578: ButtonNative */).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 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 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* _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 object2;
|
||||
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 {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.school = View;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object2.onClose = require;
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
Reflect.apply(push, dependencyMap, [EMAIL_WAITLIST, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding30;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding46;
|
||||
}
|
||||
env2_3(false);
|
||||
return undefined;
|
||||
}
|
||||
env2_3(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user