1504 lines
67 KiB
TypeScript
1504 lines
67 KiB
TypeScript
/* Metro module 8971; source: modules/auth/native/components/Login.tsx; dependencies: [5, 57, 31, 27, 8972, 1226, 661, 33, 4501, 5278, 4573, 4496, 1244, 477, 4671, 8973, 1484, 566, 1487, 5076, 8975, 4497, 8976, 8977, 8978, 4131, 8979, 8983, 8984, 8986, 8987, 8980, 4578, 8988, 1305, 1581, 8990, 8992, 7981, 8998, 8999, 9001, 4572, 9005, 8970, 2] */
|
|
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import AuthenticationStore from '../../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import AlertActionCreators from '../../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
|
|
import PhoneStore from '../../../phone/PhoneStore.tsx'; /* Metro dependency 8972 */
|
|
import UseWideAuthView from '../useWideAuthView.tsx'; /* Metro dependency 8973 */
|
|
import UseLoginReset from '../useLoginReset.tsx'; /* Metro dependency 8983 */
|
|
import UseWithPostLoginRouting from './utils/useWithPostLoginRouting.tsx'; /* Metro dependency 8984 */
|
|
import PasskeyButtonUpdateExperiment from '../PasskeyButtonUpdateExperiment.tsx'; /* Metro dependency 8987 */
|
|
import PhoneOrEmailInput from '../../../phone/native/PhoneOrEmailInput.tsx'; /* Metro dependency 8992 */
|
|
import AuthFormView from './AuthFormView.tsx'; /* Metro dependency 9001 */
|
|
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
|
|
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 moduleValue3 from '../../../../by-id/module-01487.js'; /* Metro dependency 1487 */
|
|
import * as MetaQuestUtilsAndroidModule from '../../../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
|
|
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
|
|
import * as TextInputNativeModule from '../../../../design/components/TextInput/native/TextInput.native.tsx'; /* Metro dependency 7981 */
|
|
|
|
function _fun69920(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:6, offset: 0x01ce8672, size: 319 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0) {
|
|
return {password: {marginTop: 24}, button: {'width': '100%', 'marginTop': 16}, hint: {marginTop: 4},
|
|
link: {'alignSelf': 'flex-start', 'paddingVertical': 4}, separator: {'paddingHorizontal': 16,
|
|
'paddingVertical': 4}, content: {marginTop: 32, marginBottom: a0 ? 12 : 0}};
|
|
});
|
|
const LinkButton_699242 = LinkButton_69924;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/auth/native/components/Login.tsx');
|
|
exports.default = Login;
|
|
exports.LinkButton = LinkButton_699242;
|
|
function handlePressPasswordManagerHint() { // fn#69921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:752, offset: 0x01ce87b1, size: 261 bytes, params: 1, frame: 18
|
|
const defaultImport = AlertActionCreators;
|
|
const show = defaultImport.show;
|
|
const object = {};
|
|
const intl = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const t = (IndexNativeModule).t;
|
|
object.title = Reflect.apply(string, intl, [t.lzsy7t]);
|
|
object.body = intl.string(t['TYqh/t']);
|
|
object.confirmText = intl.string(t['9x0iKe']);
|
|
object.cancelText = intl.string(t['ETE/oC']);
|
|
object.onConfirm = onConfirm_69922;
|
|
Reflect.apply(show, defaultImport, [object]);
|
|
function handlePressPasswordManagerHintOnConfirm() { // fn#69922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:1012, owner: handlePressPasswordManagerHint.onConfirm, offset: 0x01ce88b6, size: 72 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
if (PlatformUtilsModule.isAndroid()) {
|
|
(importDefault(4671) /* metro dependency 4671: NativeDeviceSettingsModule */).openAccessibilitySettings();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function LinkButton_69924({onPress, text, containerStyle, textStyle, variant, textColor}) { // fn#69924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:475, offset: 0x01ce8973, size: 189 bytes, params: 2, frame: 22
|
|
variant = variant === undefined ? 'text-xs/medium' : variant;
|
|
textColor = textColor === undefined ? 'text-link' : textColor;
|
|
const PressableOpacity = (PressablesModule).PressableOpacity;
|
|
const items2 = [containerStyle];
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<PressableOpacity
|
|
style={items2}
|
|
hitSlop={{
|
|
'top': 8,
|
|
'right': 8,
|
|
'bottom': 8,
|
|
}}
|
|
accessibilityRole="button"
|
|
onPress={onPress}
|
|
>
|
|
<Text
|
|
style={textStyle}
|
|
variant={variant}
|
|
color={textColor}
|
|
>
|
|
{text}
|
|
</Text>
|
|
</PressableOpacity>
|
|
);
|
|
}
|
|
|
|
function Login({isMultiAccount}) { // fn#69925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:1172, offset: 0x01ce8a30, size: 2897 bytes, params: 2, frame: 41
|
|
var button;
|
|
var r8;
|
|
var r5;
|
|
var Button;
|
|
var LINK;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var moduleValue6;
|
|
isMultiAccount = !(isMultiAccount === undefined) && isMultiAccount;
|
|
let env0_4 = undefined;
|
|
let env0_5 = undefined;
|
|
var value;
|
|
const styles = useStyles((UseWideAuthView)());
|
|
const value3 = (UseNavigationNativeModule).useNavigation();
|
|
const useStateFromStores = FluxModule.useStateFromStores;
|
|
let object = [PhoneStore];
|
|
const countryCode = Reflect.apply(useStateFromStores, FluxModule, [object, function() {
|
|
return PhoneStore.getCountryCode();
|
|
}]);
|
|
const value4 = countryCode.code.split(' ');
|
|
let binding = env0_4;
|
|
const property = binding(value4, 1)[0];
|
|
const binding2 = env0_5;
|
|
const value7 = binding2.useRef(null);
|
|
let useState = binding2.useState;
|
|
const value9 = binding(Reflect.apply(useState, binding2, [false]), 2);
|
|
const property2 = value9[0];
|
|
const env0_3 = value9[1];
|
|
useState = binding2.useState;
|
|
const value10 = binding(Reflect.apply(useState, binding2, [false]), 2);
|
|
const property3 = value10[0];
|
|
env0_4 = value10[1];
|
|
useState = binding2.useState;
|
|
const value11 = binding(Reflect.apply(useState, binding2, [{}]), 2);
|
|
const property4 = value11[0];
|
|
env0_5 = value11[1];
|
|
useState = binding2.useState;
|
|
const value12 = binding(Reflect.apply(useState, binding2, ['']), 2);
|
|
const property5 = value12[0];
|
|
const env0_7 = value12[1];
|
|
useState = binding2.useState;
|
|
const value13 = binding(Reflect.apply(useState, binding2, ['']), 2);
|
|
const env0_8 = value13[0];
|
|
const property6 = value13[1];
|
|
useState = binding2.useState;
|
|
const value14 = binding(Reflect.apply(useState, binding2, [false]), 2);
|
|
const property7 = value14[0];
|
|
const env0_10 = value14[1];
|
|
const env0_11 = binding2.useRef(undefined);
|
|
binding2.useEffect(function() {
|
|
return _fun69928;
|
|
}, []);
|
|
let useCallback = binding2.useCallback;
|
|
const value15 = Reflect.apply(useCallback, binding2, [_fun69929, []]);
|
|
const useFocusEffect = moduleValue3.useFocusEffect;
|
|
useCallback = binding2.useCallback;
|
|
Reflect.apply(useFocusEffect, moduleValue3, [Reflect.apply(useCallback, binding2, [_fun69931, []])]);
|
|
useCallback = binding2.useCallback;
|
|
binding = env0_3;
|
|
const env0_13 = Reflect.apply(useCallback, binding2, [binding(_fun69933), [value15, property5]]);
|
|
const value18 = binding2.useCallback(_fun69934(), [value15, isMultiAccount]);
|
|
const value20 = binding2.useCallback(binding(_fun69939), [value15, property7]);
|
|
(UseLoginReset)();
|
|
(UseWithPostLoginRouting)(value3, value18);
|
|
const r28 = (importDefault(8986) /* metro dependency 8986: getError */)('login',
|
|
property4) ?? (importDefault(8986) /* metro dependency 8986: getError */)('email', property4);
|
|
const value23 = (importDefault(8986) /* metro dependency 8986: getError */)('password', property4);
|
|
const {newButton,
|
|
canDisable} = (PasskeyButtonUpdateExperiment).useConfig({location: 'Login'});
|
|
const r10 = canDisable && (property3 || property7);
|
|
if ((require(8980) /* metro dependency 8980: MFAUtils */).hasWebAuthn) {
|
|
if (newButton) {
|
|
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
button = (
|
|
<Button
|
|
icon={((KeyIcon) => <KeyIcon />)((require(8988) /* metro dependency 8988: KeyIcon */).KeyIcon)}
|
|
size="lg"
|
|
variant="tertiary"
|
|
disabled={r10}
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.EiwJkN)}
|
|
onPress={value20}
|
|
/>
|
|
);
|
|
} else {
|
|
Button = (require(1305) /* metro dependency 1305: native */).Button;
|
|
object = {shrink: true};
|
|
LINK = (require(1305) /* metro dependency 1305: native */).Button.Looks.LINK;
|
|
object.look = LINK;
|
|
LINK = (require(1305) /* metro dependency 1305: native */).Button.Colors.LINK;
|
|
object.color = LINK;
|
|
object.size = (require(1305) /* metro dependency 1305: native */).Button.Sizes.MEDIUM;
|
|
object.style = styles.button;
|
|
object.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/kpMDt']);
|
|
object.onPress = value20;
|
|
object.disabled = r10;
|
|
button = <Button {...object} />;
|
|
}
|
|
r8 = button;
|
|
} else {
|
|
r8 = null;
|
|
}
|
|
if (MetaQuestUtilsAndroidModule.isMetaQuest()) {
|
|
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
r8 = (
|
|
<Button
|
|
icon={((MobilePhoneIcon) => <MobilePhoneIcon color="control-primary-text-default" />)((require(8990) /* metro dependency 8990: MobilePhoneIcon */).MobilePhoneIcon)}
|
|
size="lg"
|
|
variant="primary"
|
|
disabled={property3}
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Cc4Mc9)}
|
|
onPress={onPress_69940}
|
|
/>
|
|
);
|
|
}
|
|
const items3 = [
|
|
<PhoneOrEmailInput
|
|
autoFocus
|
|
textContentType="emailAddress"
|
|
keyboardType="email-address"
|
|
alpha2={countryCode.alpha2}
|
|
countryCode={property}
|
|
onChange={onChange_69941}
|
|
onSubmitEditing={onSubmitEditing}
|
|
returnKeyType="next"
|
|
autoCapitalize="none"
|
|
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tUjnxr)}
|
|
errorMessage={r28}
|
|
testID="login_login_input"
|
|
onPressCountrySelector={onPressCountrySelector}
|
|
isClearable
|
|
autoComplete="username"
|
|
/>,
|
|
];
|
|
const TextInput = (TextInputNativeModule).TextInput;
|
|
const textInputProps2 = {containerStyle: styles.password, ref: value7, textContentType: 'password',
|
|
secureTextEntry: !property2, onChange: property6, autoCapitalize: 'none',
|
|
onSubmitEditing: onSubmitEditing_69944,
|
|
label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['CIGa+7']),
|
|
trailingIcon: property2 ? (require(8998) /* metro dependency 8998: EyeSlashIcon */).EyeSlashIcon : (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon};
|
|
const string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
textInputProps2.trailingPressableProps = {accessibilityLabel: property2 ? Reflect.apply(string, intl,
|
|
[t.Nusip4]) : Reflect.apply(string, intl, [t.nFzpM5]), onPress: onPress_69945, hitSlop: {'top': 8, 'bottom': 8}};
|
|
textInputProps2.returnKeyType = 'done';
|
|
textInputProps2.errorMessage = value23;
|
|
textInputProps2.testID = 'login_password_input';
|
|
textInputProps2.autoComplete = 'current-password';
|
|
items3[1] = <TextInput {...textInputProps2} />;
|
|
items3[2] = (
|
|
<LinkButton_69924
|
|
containerStyle={styles.link}
|
|
onPress={onPress_69947}
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wWIufs)}
|
|
/>
|
|
);
|
|
if (PlatformUtilsModule.isAndroid()) {
|
|
moduleValue6 = MetaQuestUtilsAndroidModule;
|
|
if (moduleValue6.isMetaQuest()) {
|
|
r5 = null;
|
|
} else {
|
|
r5 = (
|
|
<LinkButton_69924
|
|
containerStyle={styles.link}
|
|
onPress={handlePressPasswordManagerHint}
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.RL5Fy2)}
|
|
textColor="text-link"
|
|
/>
|
|
);
|
|
}
|
|
} else {
|
|
r5 = null;
|
|
}
|
|
items3[3] = r5;
|
|
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
items3[4] = (
|
|
<View style={styles.button}>
|
|
<Button
|
|
size="lg"
|
|
variant={MetaQuestUtilsAndroidModule.isMetaQuest() ? 'tertiary' : 'primary'}
|
|
disabled={property7}
|
|
loading={property3}
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dKhVQN)}
|
|
onPress={onPress_69948}
|
|
/>
|
|
</View>
|
|
);
|
|
const view = (
|
|
<View>
|
|
{items3}
|
|
</View>
|
|
);
|
|
const authFormViewProps = {headerText: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7fNJgA'])};
|
|
const Text = (TextModule).Text;
|
|
authFormViewProps.subHeader = (
|
|
<Text variant="text-sm/medium" color="text-default">
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.euS7r4)}
|
|
</Text>
|
|
);
|
|
const items2 = [MetaQuestUtilsAndroidModule.isMetaQuest() ? r8 : view];
|
|
items2[1] = (
|
|
MetaQuestUtilsAndroidModule.isMetaQuest() || newButton
|
|
? ((Stack) => <Stack style={styles.separator}>{((OrSeparator) => <OrSeparator />)((require(9005) /* metro dependency 9005: JoinServer */).OrSeparator)}</Stack>)((require(4572) /* metro dependency 4572: StackNative */).Stack)
|
|
: null
|
|
);
|
|
r8 = MetaQuestUtilsAndroidModule.isMetaQuest() ? view : r8;
|
|
items2[2] = r8;
|
|
if (property4.message != null) {
|
|
if (property4.message === '') {
|
|
r8 = null;
|
|
} else {
|
|
value = importDefault(8970) /* metro dependency 8970: FreeFormErrorLabel */;
|
|
value = ((Component) => <Component style={styles.hint}>{property4.message}</Component>)(value);
|
|
r8 = value;
|
|
}
|
|
} else {
|
|
r8 = null;
|
|
}
|
|
items2[3] = r8;
|
|
return (
|
|
<AuthFormView {...authFormViewProps}>
|
|
<View style={styles.content}>
|
|
{items2}
|
|
</View>
|
|
</AuthFormView>
|
|
);
|
|
function _fun69927() { // fn#69927, offset: 0x01ce9594, size: 11 bytes, params: 1, frame: 1
|
|
return _fun69928;
|
|
function _fun69928() { // fn#69928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:1648, offset: 0x01ce959f, size: 29 bytes, params: 1, frame: 11
|
|
global.clearTimeout(env1_11.current);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun69929(a0) { // fn#69929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:1704, offset: 0x01ce95bc, size: 111 bytes, params: 2, frame: 15
|
|
env0_5(a0);
|
|
if (a0.retry_after != null) {
|
|
global.clearTimeout(env0_11.current);
|
|
env0_10(true);
|
|
env0_11.current = global.setTimeout(_fun69930, 1000 * a0.retry_after);
|
|
}
|
|
function _fun69930() { // fn#69930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:1787, offset: 0x01ce962b, size: 18 bytes, params: 1, frame: 11
|
|
env1_10(false);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun69931() { // fn#69931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:1865, offset: 0x01ce963d, size: 18 bytes, params: 1, frame: 11
|
|
env0_4(false);
|
|
}
|
|
|
|
function* _fun69933() { // fn#69933, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:1906, offset: 0x01ce965a, size: 469 bytes, params: 1, frame: 24
|
|
var value;
|
|
var value2;
|
|
var binding;
|
|
var value3;
|
|
var binding2;
|
|
var property;
|
|
var value4;
|
|
var forgotPassword;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var binding3;
|
|
var value9;
|
|
var PasswordResetMethods;
|
|
var ONE_TIME_LOGIN;
|
|
var value10;
|
|
var binding4;
|
|
var value11;
|
|
var show;
|
|
var object;
|
|
var value12;
|
|
var intl;
|
|
var string;
|
|
var value13;
|
|
var t;
|
|
var f5Pi7A;
|
|
var value14;
|
|
var value15;
|
|
var format;
|
|
var value16;
|
|
var object2;
|
|
var value17;
|
|
var binding5;
|
|
var value18;
|
|
var openAlert;
|
|
var binding6;
|
|
var value19;
|
|
var value20;
|
|
var error;
|
|
var binding7;
|
|
var value21;
|
|
var getAuthenticationErrorsFromV6OrEarlierAPIError;
|
|
var value22;
|
|
exceptionLanding89: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__;
|
|
env1_4(true);
|
|
binding = env1_5;
|
|
binding({});
|
|
value3 = environment.__proto__.__proto__;
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort88: while (true) {
|
|
exceptionLanding77: while (true) {
|
|
try {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
binding7 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
property = binding7[23];
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
value21 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
getAuthenticationErrorsFromV6OrEarlierAPIError = value21.getAuthenticationErrorsFromV6OrEarlierAPIError;
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
value22 = Reflect.apply(getAuthenticationErrorsFromV6OrEarlierAPIError, value21, [error]);
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
useStyles(value22);
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
break reduciblePort88;
|
|
}
|
|
env1_4(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[19];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
forgotPassword = value4.forgotPassword;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = Reflect.apply(forgotPassword, value4, [View]);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
yield value5;
|
|
try {
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
if (value7) {
|
|
env1_4(false);
|
|
return value6;
|
|
}
|
|
try {
|
|
try {
|
|
value8 = value6 === false;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
if (value8) {
|
|
env1_4(false);
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding3[20];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
PasswordResetMethods = value9.PasswordResetMethods;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
ONE_TIME_LOGIN = PasswordResetMethods.ONE_TIME_LOGIN;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value10 = value6 === ONE_TIME_LOGIN;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
if (value10) {
|
|
try {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
binding5 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding5[21];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value18 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
openAlert = value18.openAlert;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
binding6 = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding5[22];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value19 = binding6(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value20 = binding(value19, object);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(openAlert, value18, ['one-time-login-forgot-password-confirm', value20]);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
} else {
|
|
try {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding4[11];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
show = value11.show;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding4[12];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value12 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
intl = value12.intl;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
string = intl.string;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding4[12];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value13 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
t = value13.t;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
f5Pi7A = t.f5Pi7A;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value14 = Reflect.apply(string, intl, [f5Pi7A]);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
object.title = value14;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding4[12];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
intl = value15.intl;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
format = intl.format;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding4[12];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value16 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
t = value16.t;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
property = t['6u5hQ9'];
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
object2.email = View;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
value17 = Reflect.apply(format, intl, [property, object2]);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
object.body = value17;
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(show, value11, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding77;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding89;
|
|
}
|
|
}
|
|
env1_4(false);
|
|
return undefined;
|
|
}
|
|
env1_4(false);
|
|
throw error;
|
|
}
|
|
|
|
function _fun69934() { // fn#69934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:2356, offset: 0x01ce982f, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_3(_fun69936);
|
|
return _fun69937;
|
|
async function _fun69936(a0, a1) { // fn#69936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:2376, offset: 0x01ce9867, size: 208 bytes, params: 3, frame: 18
|
|
var binding2;
|
|
var property;
|
|
var value6;
|
|
var login;
|
|
var object;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var error;
|
|
var value10;
|
|
var authenticationErrorsFromV6OrEarlierAPIError;
|
|
let value = a2;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const r1 = value !== undefined ? value : false;
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
env2_4(true);
|
|
let binding = env2_5;
|
|
binding({});
|
|
try {
|
|
binding = env3_1;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env3_2;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[19];
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value6 = binding(property);
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
login = value6.login;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.login = a0;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.password = a1;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.undelete = r1;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.isMultiAccount = require;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(login, value6, [object]);
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
await value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
env2_4(false);
|
|
binding = env3_0;
|
|
value10 = binding(env3_2[23]);
|
|
authenticationErrorsFromV6OrEarlierAPIError = value10.getAuthenticationErrorsFromV6OrEarlierAPIError(error);
|
|
useStyles(authenticationErrorsFromV6OrEarlierAPIError);
|
|
return undefined;
|
|
}
|
|
return value9 ? value8 : undefined;
|
|
}
|
|
|
|
function _fun69937() { // fn#69937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:2579, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function* _fun69939() { // fn#69939, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:2651, offset: 0x01ce9942, size: 344 bytes, params: 1, frame: 17
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var getIsPasswordlessActive;
|
|
var value4;
|
|
var getPasskeyAuthenticator;
|
|
var value5;
|
|
var binding2;
|
|
var property;
|
|
var value6;
|
|
var authenticatePasswordless;
|
|
var object;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var error;
|
|
var binding3;
|
|
var value10;
|
|
var APIError;
|
|
var value11;
|
|
var binding4;
|
|
var value12;
|
|
var IgnorableWebAuthnError;
|
|
var value13;
|
|
var message;
|
|
var binding5;
|
|
var value14;
|
|
var getAuthenticationErrorsFromAPIError;
|
|
var value15;
|
|
exceptionLanding54: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__;
|
|
if (!AuthStates) {
|
|
value3 = environment.__proto__.__proto__;
|
|
binding = env2_8;
|
|
getIsPasswordlessActive = binding.getIsPasswordlessActive;
|
|
reducibleJoin55: while (true) {
|
|
if (Reflect.apply(getIsPasswordlessActive, binding, [])) {
|
|
break reducibleJoin55;
|
|
}
|
|
binding = env2_1;
|
|
value4 = binding(env2_2[24]);
|
|
getPasskeyAuthenticator = value4.getPasskeyAuthenticator;
|
|
value5 = Reflect.apply(getPasskeyAuthenticator, value4, []);
|
|
env1_4(true);
|
|
binding = env1_5;
|
|
binding({});
|
|
reducibleJoin5: while (true) {
|
|
reduciblePort53: while (true) {
|
|
exceptionLanding18: while (true) {
|
|
try {
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
break reducibleJoin5;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = binding3[25];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
APIError = value10.APIError;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value11 = error instanceof APIError;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
if (value11) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding5 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = binding5[23];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value14 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
getAuthenticationErrorsFromAPIError = value14.getAuthenticationErrorsFromAPIError;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(getAuthenticationErrorsFromAPIError, value14, [error]);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
useStyles(value15);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
} else {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
property = binding4[26];
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value12 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
IgnorableWebAuthnError = value12.IgnorableWebAuthnError;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
value13 = error instanceof IgnorableWebAuthnError;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
reducibleJoin53: while (true) {
|
|
if (value13) {
|
|
break reducibleJoin53;
|
|
}
|
|
try {
|
|
binding = env1_5;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
message = error.message;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
object.message = message;
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
break reducibleJoin53;
|
|
}
|
|
}
|
|
break reduciblePort53;
|
|
}
|
|
env1_4(false);
|
|
break reducibleJoin55;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[19];
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
try {
|
|
value6 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
try {
|
|
authenticatePasswordless = value6.authenticatePasswordless;
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
try {
|
|
object.authenticateFunc = value5;
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
try {
|
|
try {
|
|
value7 = Reflect.apply(authenticatePasswordless, value6, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
yield value7;
|
|
try {
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
break exceptionLanding18;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding54;
|
|
}
|
|
if (value9) {
|
|
env1_4(false);
|
|
return value8;
|
|
}
|
|
env1_4(false);
|
|
break reducibleJoin55;
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
env1_4(false);
|
|
throw error;
|
|
}
|
|
|
|
function LoginOnPress() { // fn#69940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:3817, owner: Login.onPress, offset: 0x01ce9a9a, size: 32 bytes, params: 1, frame: 11
|
|
const binding = env0_1;
|
|
const push = binding.push;
|
|
const COMPANION_REMOTE_AUTH = AuthStates.COMPANION_REMOTE_AUTH;
|
|
return Reflect.apply(push, binding, [COMPANION_REMOTE_AUTH]);
|
|
}
|
|
|
|
function LoginOnChange(a0, a1) { // fn#69941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:4000, owner: Login.onChange, offset: 0x01ce9aba, size: 26 bytes, params: 3, frame: 11
|
|
env0_7(a1 + a0);
|
|
}
|
|
|
|
function LoginOnSubmitEditing() { // fn#69942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:4032, owner: Login.onSubmitEditing, offset: 0x01ce9ad4, size: 35 bytes, params: 1, frame: 10
|
|
return env0_2.current?.focus();
|
|
}
|
|
|
|
function onPressCountrySelector() { // fn#69943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:4243, owner: Login.onPressCountrySelector, offset: 0x01ce9af7, size: 32 bytes, params: 1, frame: 11
|
|
const binding = env0_1;
|
|
const push = binding.push;
|
|
const COUNTRY_SELECT = AuthStates.COUNTRY_SELECT;
|
|
return Reflect.apply(push, binding, [COUNTRY_SELECT]);
|
|
}
|
|
|
|
function LoginOnSubmitEditing_69944() { // fn#69944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:4462, owner: Login.onSubmitEditing, offset: 0x01ce9b17, size: 25 bytes, params: 1, frame: 13
|
|
return env0_14(ReactNativeModule.View, env0_8);
|
|
}
|
|
|
|
function LoginOnPress_69945() { // fn#69945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:4709, owner: Login.onPress, offset: 0x01ce9b30, size: 25 bytes, params: 1, frame: 11
|
|
return env0_3(function(a0) {
|
|
return !a0;
|
|
});
|
|
}
|
|
|
|
function LoginOnPress_69947() { // fn#69947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:4895, owner: Login.onPress, offset: 0x00e719ed, size: 15 bytes, params: 1, frame: 9
|
|
return env0_13();
|
|
}
|
|
|
|
function LoginOnPress_69948() { // fn#69948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9156:5329, owner: Login.onPress, offset: 0x01ce9b17, size: 25 bytes, params: 1, frame: 13
|
|
return env0_14(ReactNativeModule.View, env0_8);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun69920, 8971, [5, 57, 31, 27, 8972, 1226, 661, 33, 4501, 5278, 4573, 4496, 1244, 477, 4671, 8973,
|
|
1484, 566, 1487, 5076, 8975, 4497, 8976, 8977, 8978, 4131, 8979, 8983, 8984, 8986, 8987, 8980, 4578, 8988, 1305,
|
|
1581, 8990, 8992, 7981, 8998, 8999, 9001, 4572, 9005, 8970,
|
|
2]) /* metro module 8971, dependencies: [5, 57, 31, 27, 8972, 1226, 661, 33, 4501, 5278, 4573, 4496, 1244, 477, 4671, 8973, 1484, 566, 1487, 5076, 8975, 4497, 8976, 8977, 8978, 4131, 8979, 8983, 8984, 8986, 8987, 8980, 4578, 8988, 1305, 1581, 8990, 8992, 7981, 8998, 8999, 9001, 4572, 9005, 8970, 2] */;
|