decord/source/modules/chat/native/placeholder/ChatPlaceholderRow.tsx

66 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11861
// Function ID: 11862
// Dependencies: [19, 17, 21, 1297, 4668, 712, 11860, 11557, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 11861
import ThemesDefault from "Themes" /* 712 */;
import getChatPlaceholderRowWidthDefault from "getChatPlaceholderRowWidth" /* 11557 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
2026-07-23 10:11:24 +00:00
const tmp3 = require("Button").AVATAR_SIZE_MAP[require("Button").AvatarSizes.NORMAL];
2026-07-29 08:29:29 +00:00
let obj = { row: null, rowInner: null, placeholderAvatar: null, placeholderText: null, placeholderBody: null };
2026-08-24 06:08:38 +00:00
obj = { paddingLeft: ThemesDefault.space.PX_12, paddingTop: require("PX_24").CHAT_PLACEHOLDER_ROW_MARGIN_TOP, flexDirection: "row" };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
createCacheKey = { marginHorizontal: ThemesDefault.space.PX_12, flex: 1 };
2026-07-29 08:29:29 +00:00
obj[1] = createCacheKey;
2026-08-24 06:08:38 +00:00
obj[2] = { backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_MUTED, height: tmp3, width: tmp3, borderRadius: ThemesDefault.radii.round };
let obj2 = { backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_MUTED, height: tmp3, width: tmp3, borderRadius: ThemesDefault.radii.round };
obj[3] = { backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_MUTED, height: require("PX_24").CHAT_PLACEHOLDER_ROW_LINE_HEIGHT, borderRadius: ThemesDefault.radii.sm };
let obj3 = { backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_MUTED, height: require("PX_24").CHAT_PLACEHOLDER_ROW_LINE_HEIGHT, borderRadius: ThemesDefault.radii.sm };
2026-07-29 08:29:29 +00:00
obj[4] = { marginTop: require("PX_24").CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP, width: "100%" };
let closure_5 = createCacheKey.createStyles(obj);
2026-07-23 10:11:24 +00:00
const obj4 = { marginTop: require("PX_24").CHAT_PLACEHOLDER_ROW_LINE_MARGIN_TOP, width: "100%" };
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function ChatPlaceholderRow(lines) {
lines = lines.lines;
const tmp = callback3();
const rounded = Math.floor(10 * Math.random());
const items = [];
let num = 0;
const sum = Math.floor(50 * Math.random()) + 10;
if (0 < lines) {
do {
2026-07-23 10:11:24 +00:00
let tmp4 = importDefault;
let tmp5 = dependencyMap;
let tmp6 = callback;
let tmp7 = View;
2026-07-29 08:29:29 +00:00
let obj = { style: null };
2026-07-20 16:05:17 +00:00
let items1 = [tmp.placeholderText, tmp.placeholderBody, ];
2026-07-29 08:29:29 +00:00
obj = { width: null };
2026-07-20 16:05:17 +00:00
let _HermesInternal = HermesInternal;
2026-08-24 06:08:38 +00:00
obj[0] = "" + getChatPlaceholderRowWidthDefault(rounded + num) + "%";
2026-07-20 16:05:17 +00:00
items1[2] = obj;
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-07-23 10:11:24 +00:00
let arr = items.push(callback(View, obj, num));
2026-07-20 16:05:17 +00:00
num = num + 1;
} while (num < lines);
}
2026-07-29 08:29:29 +00:00
obj = { style: tmp.row, children: null };
2026-07-20 16:05:17 +00:00
const items2 = [callback(View, { style: tmp.placeholderAvatar }), ];
2026-07-29 08:29:29 +00:00
const obj2 = { style: tmp.rowInner, children: null };
const obj3 = { style: null };
2026-07-20 16:05:17 +00:00
const items3 = [tmp.placeholderText, { width: "" + sum + "%" }];
2026-07-29 08:29:29 +00:00
obj3[0] = items3;
2026-07-20 16:05:17 +00:00
const items4 = [callback(View, obj3), items];
2026-07-29 08:29:29 +00:00
obj2[1] = items4;
2026-07-20 16:05:17 +00:00
items2[1] = callback2(View, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = items2;
2026-07-20 16:05:17 +00:00
return callback2(View, obj);
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/chat/native/placeholder/ChatPlaceholderRow.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;