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

75 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-08-27 16:17:25 +00:00
// Module ID: 11735
// Function ID: 11736
2026-07-20 16:05:17 +00:00
// Name: ChatInputNativeComponent
2026-08-27 16:17:25 +00:00
// Dependencies: [19, 4265, 21, 4445, 712, 1236, 4380, 1363, 4293, 500, 11475, 11483, 2]
2026-07-20 16:05:17 +00:00
2026-08-27 16:17:25 +00:00
// Module 11735 (ChatInputNativeComponent)
2026-08-24 06:08:38 +00:00
import set from "set" /* 500 */;
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1363 */;
2026-08-27 16:17:25 +00:00
import hexToRgba from "hexToRgba" /* 4293 */;
import useTheme from "useTheme" /* 4380 */;
import __INTERNAL_VIEW_CONFIG from "__INTERNAL_VIEW_CONFIG" /* 11483 */;
import closure_3 from "isSyncedModeThemesEnabled" /* 4265 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-08-27 16:17:25 +00:00
import createCacheKey from "createCacheKey" /* 4445 */;
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;
({ accessibilityLabel, customKeyboard, placeholder, editable } = markAsSpoilerTitle);
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-07-29 08:29:29 +00:00
let tmp4Result = tmp4(500);
let tmp11;
if (!tmp4Result.isAndroid()) {
tmp11 = accessibilityLabel;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp4Result = tmp4(500);
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-08-27 16:17:25 +00:00
obj = { accessibilityLabel: tmp11, children: tmp12, editable, keyboardAppearance: num2, keyboardType: str, markAsSpoilerTitle, maxHeight: tmp9(11475)(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, { accessibilityLabel: tmp11, children: tmp12, editable, keyboardAppearance: num2, keyboardType: str, markAsSpoilerTitle, maxHeight: tmp9(11475)(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;