decord/source/modules/conversations/components/native/ConversationPreviewSkeleton.tsx

68 lines
3.6 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 8366
// Function ID: 8367
2026-07-20 16:05:17 +00:00
// Name: ConversationPreviewSkeleton
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 6951, 21, 4255, 712, 4116, 4256, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 8366 (ConversationPreviewSkeleton)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { MOBILE_PREVIEW_MESSAGE_COUNT as closure_5 } from "CONVERSATION_COLORS";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { row: null, rowSpacing: null, avatar: null, lines: null, lineName: null, lineText: null };
createCacheKey = { flexDirection: "row", alignItems: "center", gap: require("Themes").space.PX_8, marginTop: require("Themes").space.PX_4 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { marginTop: require("Themes").space.PX_26 };
const obj1 = { marginTop: require("Themes").space.PX_26 };
createCacheKey[2] = { width: 24, height: 24, borderRadius: require("Themes").radii.round, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG };
const obj2 = { width: 24, height: 24, borderRadius: require("Themes").radii.round, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG };
createCacheKey[3] = { flex: 1, gap: require("Themes").space.PX_4 };
const obj3 = { flex: 1, gap: require("Themes").space.PX_4 };
createCacheKey[4] = { height: 10, width: "35%", borderRadius: require("Themes").radii.xs, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG };
const obj4 = { height: 10, width: "35%", borderRadius: require("Themes").radii.xs, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG };
createCacheKey[5] = { height: 10, borderRadius: require("Themes").radii.xs, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-20 16:05:17 +00:00
let closure_9 = { code: "function ConversationPreviewSkeletonTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
2026-07-29 08:29:29 +00:00
const obj5 = { height: 10, borderRadius: require("Themes").radii.xs, backgroundColor: require("Themes").colors.BACKGROUND_MOD_STRONG };
2026-07-23 10:11:24 +00:00
let result = require("CONVERSATION_COLORS").fileFinishedImporting("modules/conversations/components/native/ConversationPreviewSkeleton.tsx");
2026-07-20 16:05:17 +00:00
export default function ConversationPreviewSkeleton() {
2026-07-29 08:29:29 +00:00
const _require = createCacheKey();
2026-08-05 07:35:12 +00:00
let obj = _require(4116);
2026-07-20 16:05:17 +00:00
const sharedValue = obj.useSharedValue(0.4);
2026-07-23 10:11:24 +00:00
let items = [sharedValue];
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
2026-07-23 10:11:24 +00:00
const obj = lib(outer1_2[6]);
const result = sharedValue.set(obj.withRepeat(lib(outer1_2[7]).withTiming(1, { duration: 700 }), -1, true));
2026-07-20 16:05:17 +00:00
}, items);
const fn = function p() {
return { opacity: sharedValue.get() };
};
fn.__closure = { opacity: sharedValue };
fn.__workletHash = 11432452203963;
fn.__initData = closure_9;
2026-08-05 07:35:12 +00:00
const animatedStyle = _require(4116).useAnimatedStyle(fn);
2026-07-29 08:29:29 +00:00
obj = { style: animatedStyle, "aria-hidden": true, children: null };
2026-07-20 16:05:17 +00:00
obj = { length: closure_5 };
2026-07-29 08:29:29 +00:00
obj[2] = Array.from(obj, (arg0, arg1) => {
2026-07-20 16:05:17 +00:00
const items = [lib.row, ];
2026-07-29 08:29:29 +00:00
let obj = { style: items, children: null };
items[1] = arg1 > 0 && lib.rowSpacing;
obj = { style: tmp3.avatar };
2026-07-23 10:11:24 +00:00
const items1 = [outer1_6(outer1_4, obj), ];
2026-07-29 08:29:29 +00:00
obj = { style: tmp3.lines, children: null };
2026-07-23 10:11:24 +00:00
const items2 = [outer1_6(outer1_4, { style: lib.lineName }), outer1_6(outer1_4, { style: lib.lineText })];
2026-07-29 08:29:29 +00:00
obj[1] = items2;
2026-07-23 10:11:24 +00:00
items1[1] = outer1_7(outer1_4, obj);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
2026-07-23 10:11:24 +00:00
return outer1_7(outer1_4, obj, arg1);
2026-07-20 16:05:17 +00:00
});
2026-08-05 07:35:12 +00:00
return callback(sharedValue(4116).View, obj);
2026-07-20 16:05:17 +00:00
};