/* Metro module 9024; source: modules/verification/native/components/VerifyPhone.tsx; dependencies: [5, 57, 31, 33, 9016, 9025, 9026, 1244, 2] */ import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */ import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */ import UseSmsAutofillAndroid from '../hooks/useSmsAutofill.android.tsx'; /* Metro dependency 9025 */ import CodeField from '../../../phone/native/CodeField.tsx'; /* Metro dependency 9026 */ 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 CodeFieldModule from '../../../phone/native/CodeField.tsx'; /* Metro dependency 9026 */ function _fun70198(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:6, offset: 0x01cf24f6, size: 174 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/verification/native/components/VerifyPhone.tsx'); exports.default = VerifyPhone; function VerifyPhone({phone, loading, error, onCodeEnteredIntercept, onVerified, backgroundStyle, disableKeyboardAvoidingView}) { // fn#70199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:241, offset: 0x01cf25a4, size: 456 bytes, params: 2, frame: 29 loading = !(loading === undefined) && loading; let env0_4 = undefined; const binding = undefined; let useState = binding.useState; const value2 = Reflect.apply(useState, binding, [null]); const binding2 = env0_4; const value3 = binding2(value2, 2); const property = value3[0]; const env0_3 = value3[1]; useState = binding.useState; const value4 = binding2(Reflect.apply(useState, binding, [false]), 2); const property2 = value4[0]; env0_4 = value4[1]; const value6 = binding.useCallback(_fun70200(), [onCodeEnteredIntercept, onVerified, phone]); (UseSmsAutofillAndroid)(binding.useCallback(_fun70204(), [value6])); object = {}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const Xclkxp = (require(1244) /* metro dependency 1244: indexNative */).t.Xclkxp; object.title = Reflect.apply(string, intl, [Xclkxp]); object.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4qMI6A']); object.error = error ?? property; object.backgroundStyle = backgroundStyle; object.loading = loading; object.onCodeEntered = value6; const CodeType = (CodeFieldModule).CodeType; const NUMERIC = CodeType.NUMERIC; object.codeType = NUMERIC; object.disabled = property2; object.disableKeyboardAvoidingView = disableKeyboardAvoidingView; return ; function _fun70200() { // fn#70200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:482, offset: 0x01cf276c, size: 36 bytes, params: 1, frame: 12 const env0_0 = env1_3(_fun70202); return _fun70203; function* _fun70202(a0) { // fn#70202, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:502, offset: 0x01cf279b, size: 180 bytes, params: 2, frame: 20 var message; var value4; var defaultImport; var value5; var value6; var binding; var binding2; var property; var value8; var verifyPhone; var value9; var value10; var value11; var token; var error; var body; let value = undefined; if (true) { value = undefined; reducibleJoin4: while (true) { reduciblePort35: while (true) { exceptionLanding32: while (true) { try { } catch (error) { break exceptionLanding32; } break reducibleJoin4; } binding = env2_3; body = error.body; reducibleJoin34: while (true) { if (body == null) { message = value; break reducibleJoin34; } message = body.message; break reducibleJoin34; } binding(message); break reduciblePort35; } return value; } try { value4 = importDefault == null; } catch (error) { break exceptionLanding32; } if (!value4) { try { } catch (error) { break exceptionLanding32; } try { defaultImport = importDefault(a0); } catch (error) { break exceptionLanding32; } yield defaultImport; try { value5 = undefined; value6 = false; } catch (error) { break exceptionLanding32; } if (value6) { return value5; } reducibleJoin13: while (true) { if (value5) { return value; } break reducibleJoin13; } } try { binding = env3_1; } catch (error) { break exceptionLanding32; } try { binding2 = env3_2; } catch (error) { break exceptionLanding32; } try { property = binding2[4]; } catch (error) { break exceptionLanding32; } try { value8 = binding(property); } catch (error) { break exceptionLanding32; } try { verifyPhone = value8.verifyPhone; } catch (error) { break exceptionLanding32; } try { } catch (error) { break exceptionLanding32; } try { value9 = Reflect.apply(verifyPhone, value8, [require, a0, false]); } catch (error) { break exceptionLanding32; } yield value9; try { value10 = undefined; value11 = false; } catch (error) { break exceptionLanding32; } if (value11) { return value10; } try { token = value10.token; } catch (error) { break exceptionLanding32; } try { } catch (error) { break exceptionLanding32; } try { dependencyMap(token); } catch (error) { break exceptionLanding32; } } return value; } function _fun70203() { // fn#70203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:667, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } function _fun70204() { // fn#70204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:738, offset: 0x01cf284f, size: 36 bytes, params: 1, frame: 12 const env0_0 = env1_3(_fun70206); return _fun70207; function* _fun70206(a0) { // fn#70206, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:758, offset: 0x01cf287e, size: 65 bytes, params: 2, frame: 13 if (true) { value = environment.__proto__.__proto__; env2_4(true); yield env2_5(a0); if (false) { return undefined; } env2_4(false); } } function _fun70207() { // fn#70207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9209:804, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } } } global.__d(_fun70198, 9024, [5, 57, 31, 33, 9016, 9025, 9026, 1244, 2]) /* metro module 9024, dependencies: [5, 57, 31, 33, 9016, 9025, 9026, 1244, 2] */;