74 lines
3.8 KiB
TypeScript
74 lines
3.8 KiB
TypeScript
// Module ID: 12183
|
|
// Function ID: 12184
|
|
// Name: ChatInputNativeComponent
|
|
// Dependencies: [19, 4300, 21, 4481, 709, 1233, 4416, 1362, 4329, 1234, 11963, 11921, 2]
|
|
|
|
// Module 12183 (ChatInputNativeComponent)
|
|
import ThemesDefault from "Themes" /* 709 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1233 */;
|
|
import set from "set" /* 1234 */;
|
|
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1362 */;
|
|
import hexToRgba from "hexToRgba" /* 4329 */;
|
|
import useTheme from "useTheme" /* 4416 */;
|
|
import __INTERNAL_VIEW_CONFIG from "__INTERNAL_VIEW_CONFIG" /* 11921 */;
|
|
import closure_3 from "reset" /* 4300 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4481 */;
|
|
import importAllResult from "noop" /* 19 */;
|
|
|
|
require = arg1;
|
|
let obj = { style: { flex: 1 }, textColor: null, placeholderColor: null };
|
|
obj = { color: ThemesDefault.colors.TEXT_DEFAULT };
|
|
obj[1] = obj;
|
|
createCacheKey = { color: ThemesDefault.colors.TEXT_MUTED };
|
|
obj[2] = createCacheKey;
|
|
let closure_5 = createCacheKey.createStyles(obj);
|
|
const forwardRefResult = importAllResult.forwardRef((markAsSpoilerTitle, ref) => {
|
|
markAsSpoilerTitle = markAsSpoilerTitle.markAsSpoilerTitle;
|
|
({ accessible, accessibilityLabel, customKeyboard, placeholder, editable } = markAsSpoilerTitle);
|
|
if (markAsSpoilerTitle === undefined) {
|
|
const intl = getSystemLocale.intl;
|
|
markAsSpoilerTitle = intl.string(getSystemLocale.t["gsI+xC"]);
|
|
}
|
|
({ setNoExtractUI, shouldShowCursor, onBeginFocus, onEndBlur, onChangeContentSize, onMaxHeightChanged, onSelectionOrTextChange, onTextFlushed, onPasteImage, onPasteCommand, onTapAction, onRequestSend, verticalInset } = markAsSpoilerTitle);
|
|
const tmp3 = callback();
|
|
let obj = useTheme;
|
|
const theme = obj.useTheme();
|
|
const isThemeDarkResult = AccessibilityAnnouncer.isThemeDark(theme);
|
|
const obj2 = AccessibilityAnnouncer;
|
|
const unsafe_rawColors = ThemesDefault.unsafe_rawColors;
|
|
if (isThemeDarkResult) {
|
|
let PRIMARY_500 = unsafe_rawColors.WHITE;
|
|
let tmp9 = tmp8;
|
|
} else {
|
|
PRIMARY_500 = unsafe_rawColors.PRIMARY_500;
|
|
tmp9 = tmp8;
|
|
}
|
|
let num = 0.6;
|
|
if (null != gradientPreset.gradientPreset) {
|
|
num = 0.8;
|
|
}
|
|
const obj3 = hexToRgba;
|
|
let tmp4Result = tmp4(1234);
|
|
let tmp11;
|
|
if (!tmp4Result.isAndroid()) {
|
|
tmp11 = accessibilityLabel;
|
|
}
|
|
tmp4Result = tmp4(1234);
|
|
let tmp12;
|
|
if (!tmp4Result.isAndroid()) {
|
|
tmp12 = customKeyboard;
|
|
}
|
|
const hexWithOpacityResult = hexToRgba.hexWithOpacity(PRIMARY_500, num);
|
|
let num2 = 2;
|
|
if (isThemeDarkResult) {
|
|
num2 = 1;
|
|
}
|
|
const tmp4Result1 = set;
|
|
obj = { accessible, accessibilityLabel: tmp11, children: tmp12, editable, keyboardAppearance: num2, keyboardType: str, markAsSpoilerTitle, maxHeight: tmp9(11963)(onMaxHeightChanged), onBeginFocus, onEndBlur, onChangeContentSize, onSelectionOrTextChange, onTextFlushed, onPasteImage, onPasteCommand, onTapAction, onRequestSend, placeholder, placeholderColor: tmp3.placeholderColor.color, ref, selectionColor: hexWithOpacityResult, setNoExtractUI, shouldShowCursor, style: tmp3.style, textColor: tmp3.textColor.color, verticalInset };
|
|
return jsx(__INTERNAL_VIEW_CONFIG.default, { accessible, accessibilityLabel: tmp11, children: tmp12, editable, keyboardAppearance: num2, keyboardType: str, markAsSpoilerTitle, maxHeight: tmp9(11963)(onMaxHeightChanged), onBeginFocus, onEndBlur, onChangeContentSize, onSelectionOrTextChange, onTextFlushed, onPasteImage, onPasteCommand, onTapAction, onRequestSend, placeholder, placeholderColor: tmp3.placeholderColor.color, ref, selectionColor: hexWithOpacityResult, setNoExtractUI, shouldShowCursor, style: tmp3.style, textColor: tmp3.textColor.color, verticalInset });
|
|
});
|
|
forwardRefResult.displayName = "ChatInputNativeComponent";
|
|
const result = require("set").fileFinishedImporting("modules/chat_input/native/ChatInputNativeComponent.tsx");
|
|
|
|
export default forwardRefResult;
|