/* 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] */ 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_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importDefault(57) /* metro dependency 57 */; const env0_5 = importAll(31) /* metro dependency 31 */; const env0_6 = (require(27) /* metro dependency 27 */).View; const phoneStore = importDefault(8972) /* metro dependency 8972: PhoneStore */; const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */; const env0_9 = (require(661) /* metro dependency 661: Constants */).AuthStates; const value = require(33) /* metro dependency 33 */; const env0_10 = value.jsx; const env0_11 = value.jsxs; 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 closure = LinkButton_69924; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/auth/native/components/Login.tsx'); exports.default = Login; exports.LinkButton = closure; } 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 = importDefault(4496) /* metro dependency 4496: AlertActionCreators */; const show = defaultImport.show; const object2 = {}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; object2.title = Reflect.apply(string, intl, [t.lzsy7t]); object2.body = intl.string(t['TYqh/t']); object2.confirmText = intl.string(t['9x0iKe']); object2.cancelText = intl.string(t['ETE/oC']); object2.onConfirm = onConfirm; Reflect.apply(show, defaultImport, [object2]); } 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 = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; const items2 = [containerStyle]; const Text = (require(4573) /* metro dependency 4573: Text */).Text; return ( {text} ); } 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((importDefault(8973) /* metro dependency 8973: useWideAuthView */)()); const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation(); const fluxModule = require(566) /* metro dependency 566: flux */; 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 moduleValue3 = require(1487) /* metro dependency 1487 */; 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]); (importDefault(8983) /* metro dependency 8983: useLoginReset */)(); (importDefault(8984) /* metro dependency 8984: 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} = (importDefault(8987) /* metro dependency 8987: 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 =