/* Metro module 9026; source: modules/phone/native/CodeField.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 1305, 7981, 1244, 4578, 4573, 5467, 2] */ import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */ import KeyboardAwareView from '../../keyboard/native/KeyboardAwareView.tsx'; /* Metro dependency 5467 */ 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 NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */ 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 TextInputNativeModule from '../../../design/components/TextInput/native/TextInput.native.tsx'; /* Metro dependency 7981 */ function _fun70213(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:6, offset: 0x01cf2a09, size: 601 bytes, params: 8, frame: 25 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactNativeModule; const env0_5 = value.View; const env0_6 = value.ScrollView; value = require(33) /* metro dependency 33 */; const env0_7 = value.jsx; const env0_8 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const object2 = {}; object2.viewWrapper = {flex: 1}; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; object2.background = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1}; object2.backgroundFlex = {'flex': 1, 'justifyContent': 'space-between'}; object2.container = {padding: 16}; object2.title = {textAlign: 'center'}; object2.subtitle = {'marginTop': 8, 'lineHeight': 18, 'textAlign': 'center'}; object2.inputContainer = {'marginTop': 20, 'width': '100%', 'alignItems': 'center'}; object2.codeContainer = {'maxWidth': 336, 'width': '100%', 'flexDirection': 'row', 'justifyContent': 'space-around'}; object2.spacer = {width: 4}; const object4 = {'borderWidth': 1, 'borderRadius': 5, 'alignItems': 'center'}; let BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST; object4.backgroundColor = BACKGROUND_BASE_LOWEST; BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST; object4.borderColor = BACKGROUND_BASE_LOWEST; object2.inputWrapper = object4; const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400; object2.inputWrapperError = {borderColor: RED_400}; object2.input = {textAlign: 'center'}; object2.singleInputWrapper = {width: '100%'}; object2.singleInputButton = {'marginTop': 8, 'justifyContent': 'flex-end'}; const env0_10 = Reflect.apply(createStyles, value, [object2]); (FileImportTrackerModule).fileFinishedImporting('modules/phone/native/CodeField.tsx'); exports.default = CodeField; exports.CodeType = {NUMERIC: 'numeric', ALPHANUMERIC: 'alphanumeric'}; exports.CodeBlocks = CodeBlocks; function SingleCodeInput({loading, error, count, codeType = env0_9.NUMERIC, onCodeEntered, disabled, code, setCode}) { // fn#70214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9211:1066, offset: 0x01cf2c62, size: 500 bytes, params: 2, frame: 29 loading = !(loading === undefined) && loading; count = count === undefined ? 6 : count; const styles = useStyles(); const TextInput = (TextInputNativeModule).TextInput; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; const NUMERIC = env0_9.NUMERIC; const textInput = ( ); const Button = (ButtonNativeModule).Button; return ( {textInput}