decord/source/modules/chat_input/native/ChatInputNativeComponent.tsx

75 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 12041
// Function ID: 12042
2026-07-20 16:05:17 +00:00
// Name: ChatInputNativeComponent
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 4297, 21, 4478, 709, 1233, 4413, 1362, 4326, 1234, 11826, 11784, 2]
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
// Module 12041 (ChatInputNativeComponent)
import ThemesDefault from "Themes" /* 709 */;
import getSystemLocale from "getSystemLocale" /* 1233 */;
import set from "set" /* 1234 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1362 */;
2026-09-01 10:26:29 +00:00
import hexToRgba from "hexToRgba" /* 4326 */;
import useTheme from "useTheme" /* 4413 */;
2026-09-02 09:53:35 +00:00
import __INTERNAL_VIEW_CONFIG from "__INTERNAL_VIEW_CONFIG" /* 11784 */;
2026-09-01 10:26:29 +00:00
import closure_3 from "reset" /* 4297 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
let obj = { style: { flex: 1 }, textColor: null, placeholderColor: null };
2026-08-24 06:08:38 +00:00
obj = { color: ThemesDefault.colors.TEXT_DEFAULT };
2026-07-29 08:29:29 +00:00
obj[1] = obj;
2026-08-24 06:08:38 +00:00
createCacheKey = { color: ThemesDefault.colors.TEXT_MUTED };
2026-07-29 08:29:29 +00:00
obj[2] = createCacheKey;
2026-08-11 06:20:06 +00:00
let closure_5 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
const forwardRefResult = importAllResult.forwardRef((markAsSpoilerTitle, ref) => {
2026-07-20 16:05:17 +00:00
markAsSpoilerTitle = markAsSpoilerTitle.markAsSpoilerTitle;
2026-08-27 22:34:12 +00:00
({ accessible, accessibilityLabel, customKeyboard, placeholder, editable } = markAsSpoilerTitle);
2026-07-20 16:05:17 +00:00
if (markAsSpoilerTitle === undefined) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
markAsSpoilerTitle = intl.string(getSystemLocale.t["gsI+xC"]);
2026-07-20 16:05:17 +00:00
}
({ setNoExtractUI, shouldShowCursor, onBeginFocus, onEndBlur, onChangeContentSize, onMaxHeightChanged, onSelectionOrTextChange, onTextFlushed, onPasteImage, onPasteCommand, onTapAction, onRequestSend, verticalInset } = markAsSpoilerTitle);
2026-08-11 06:20:06 +00:00
const tmp3 = callback();
2026-08-24 06:08:38 +00:00
let obj = useTheme;
2026-07-20 16:05:17 +00:00
const theme = obj.useTheme();
2026-08-24 06:08:38 +00:00
const isThemeDarkResult = AccessibilityAnnouncer.isThemeDark(theme);
const obj2 = AccessibilityAnnouncer;
const unsafe_rawColors = ThemesDefault.unsafe_rawColors;
2026-07-29 08:29:29 +00:00
if (isThemeDarkResult) {
let PRIMARY_500 = unsafe_rawColors.WHITE;
let tmp9 = tmp8;
} else {
PRIMARY_500 = unsafe_rawColors.PRIMARY_500;
tmp9 = tmp8;
}
let num = 0.6;
2026-07-20 16:05:17 +00:00
if (null != gradientPreset.gradientPreset) {
2026-07-29 08:29:29 +00:00
num = 0.8;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const obj3 = hexToRgba;
2026-09-02 09:53:35 +00:00
let tmp4Result = tmp4(1234);
2026-07-29 08:29:29 +00:00
let tmp11;
if (!tmp4Result.isAndroid()) {
tmp11 = accessibilityLabel;
2026-07-20 16:05:17 +00:00
}
2026-09-02 09:53:35 +00:00
tmp4Result = tmp4(1234);
2026-07-29 08:29:29 +00:00
let tmp12;
if (!tmp4Result.isAndroid()) {
tmp12 = customKeyboard;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const hexWithOpacityResult = hexToRgba.hexWithOpacity(PRIMARY_500, num);
2026-07-29 08:29:29 +00:00
let num2 = 2;
2026-07-20 16:05:17 +00:00
if (isThemeDarkResult) {
2026-07-29 08:29:29 +00:00
num2 = 1;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const tmp4Result1 = set;
2026-09-02 09:53:35 +00:00
obj = { accessible, accessibilityLabel: tmp11, children: tmp12, editable, keyboardAppearance: num2, keyboardType: str, markAsSpoilerTitle, maxHeight: tmp9(11826)(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(11826)(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 });
2026-07-20 16:05:17 +00:00
});
forwardRefResult.displayName = "ChatInputNativeComponent";
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/chat_input/native/ChatInputNativeComponent.tsx");
2026-07-20 16:05:17 +00:00
export default forwardRefResult;