/* Metro module 9788; source: modules/share/native/ShareChatInput.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 477, 7875, 7980, 1244, 5278, 7950, 2] */ function _fun76730(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9974:6, offset: 0x01de27d9, size: 560 bytes, params: 8, frame: 26 var object3; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const value = 0; importAll(dependencyMap[value]); const env0_3 = (require(27) /* metro dependency 27 */).View; const value2 = 2; const Fonts = require(dependencyMap[value2]).Fonts; const value3 = require(33) /* metro dependency 33 */; const env0_4 = value3.jsx; const env0_5 = value3.jsxs; const createStylesModule = require(4501) /* metro dependency 4501: createStyles */; const createStyles = createStylesModule.createStyles; object3 = {}; const object5 = {'flex': 1, 'flexDirection': 'row', 'backgroundColor': null, 'borderRadius': 20}; const REDESIGN_CHAT_INPUT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHAT_INPUT_BACKGROUND; object5.backgroundColor = REDESIGN_CHAT_INPUT_BACKGROUND; const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12; object5.paddingHorizontal = PX_12; object3.container = object5; const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object3.chatInput = {'flex': 1, 'paddingVertical': 0, 'paddingHorizontal': null, 'maxHeight': 80, paddingHorizontal: PX_4}; const object7 = {'fontSize': 16, 'lineHeight': 20}; const PRIMARY_NORMAL = Fonts.PRIMARY_NORMAL; object7.fontFamily = PRIMARY_NORMAL; const TEXT_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STRONG; object7.color = TEXT_STRONG; let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */; object7.paddingTop = PX_8 + (platformUtilsModule.isAndroid() ? value : value2); PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object7.paddingBottom = PX_8; object3.chatText = object7; const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED; object3.inputPlaceholder = {color: TEXT_MUTED}; const object8 = {}; PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object8.paddingTop = PX_8; PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object8.paddingBottom = PX_8; object8.alignSelf = 'flex-end'; object3.emojiButton = object8; const env0_6 = Reflect.apply(createStyles, createStylesModule, [object3]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/share/native/ShareChatInput.tsx'); exports.default = ShareChatInput; } function ShareChatInput({text, inputRef, onChange, onSelectionChange, onFocus, onBlur, onPressEmoji, onSend, disabled}) { // fn#76731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9974:850, offset: 0x01de2a09, size: 522 bytes, params: 2, frame: 31 disabled = !(disabled === undefined) && disabled; const styles = useStyles(); const value2 = (importDefault(7875) /* metro dependency 7875: useMessageMaxLength */)(); const FormInput = importDefault(7980) /* metro dependency 7980: FormInput */; const object = {ref: inputRef, maxLength: value2}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; const ZroO3G = (require(1244) /* metro dependency 1244: indexNative */).t.ZroO3G; object.placeholder = Reflect.apply(string, intl, [ZroO3G]); object.placeholderTextColor = styles.inputPlaceholder.color; object.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/+MXmw']); object.onSubmitEditing = onSend; object.onSelectionChange = onSelectionChange; object.style = styles.chatInput; object.value = text; object.onChange = onChange; object.onFocus = onFocus; object.onBlur = onBlur; object.multiline = true; object.showBorder = false; object.showTopContainer = false; object.textAlignVertical = 'center'; object.inputTextStyle = styles.chatText; object.editable = !disabled; const formInput = ; const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; string = intl.string; const iZ7Mz9 = (require(1244) /* metro dependency 1244: indexNative */).t.iZ7Mz9; const ReactionIcon = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon; return ( {formInput} ); }