decord/source/modules/activity_status/native/ActivityEmoji.tsx

93 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9673
// Function ID: 9674
2026-07-20 16:05:17 +00:00
// Name: ActivityEmoji
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 21, 4380, 4070, 1435, 7800, 5466, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 9673 (ActivityEmoji)
import EmojiDefault from "Emoji" /* 5466 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let closure_5 = createCacheKey.createStyles({ emoji: { flexShrink: 0, width: "100%", height: "100%" }, text: { textAlign: "center", fontFamily: "System" } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/activity_status/native/ActivityEmoji.tsx");
2026-07-20 16:05:17 +00:00
export default function ActivityEmoji(emoji) {
emoji = emoji.emoji;
({ size, style, withPlaceholder } = emoji);
if (withPlaceholder === undefined) {
withPlaceholder = false;
}
let flag = emoji.animate;
if (flag === undefined) {
flag = true;
}
2026-08-24 06:08:38 +00:00
importDefault = undefined;
2026-07-20 16:05:17 +00:00
const tmp = callback();
2026-07-29 08:29:29 +00:00
let ReactionIcon = emoji;
let obj = dependencyMap;
2026-08-25 06:04:03 +00:00
const AnimateEmoji = emoji(4070).AnimateEmoji;
2026-07-20 16:05:17 +00:00
let animated;
const setting = AnimateEmoji.useSetting();
2026-07-29 08:29:29 +00:00
if (emoji != null) {
2026-07-20 16:05:17 +00:00
animated = emoji.animated;
}
if (animated) {
animated = setting;
}
if (animated) {
animated = flag;
}
const BooleanResult = Boolean(animated);
importDefault = BooleanResult;
let id;
2026-07-29 08:29:29 +00:00
if (emoji != null) {
2026-07-20 16:05:17 +00:00
id = emoji.id;
}
const items = [id, BooleanResult];
const memo = React.useMemo(() => {
let id;
2026-07-29 08:29:29 +00:00
if (emoji != null) {
id = tmp.id;
2026-07-20 16:05:17 +00:00
}
if (null != id) {
2026-08-24 06:08:38 +00:00
let obj = _undefined(closure_1_2[4]);
2026-07-29 08:29:29 +00:00
obj = { id: null, size: 48, animated: null };
obj[0] = tmp.id;
obj[2] = _undefined;
2026-07-20 16:05:17 +00:00
return obj.getEmojiURL(obj);
}
}, items);
if (null == emoji) {
if (!withPlaceholder) {
return null;
}
}
if (null == emoji) {
2026-08-25 06:04:03 +00:00
ReactionIcon = ReactionIcon(7800).ReactionIcon;
2026-07-29 08:29:29 +00:00
obj = { style: null, size: "sm" };
obj[0] = style;
<ReactionIcon style={null} size="sm" />;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj = { src: null, name: null, style: null, textEmojiStyle: null, fastImageStyle: null, adjustsFontSizeToFit: true };
obj[0] = memo;
obj[1] = emoji.name;
2026-07-20 16:05:17 +00:00
const items1 = [style, ];
2026-07-29 08:29:29 +00:00
obj = { width: null, height: null };
obj[0] = size;
obj[1] = size;
2026-07-20 16:05:17 +00:00
items1[1] = obj;
2026-07-29 08:29:29 +00:00
obj[2] = items1;
2026-07-20 16:05:17 +00:00
const items2 = [, , ];
({ emoji: arr3[0], text: arr3[1] } = tmp);
2026-08-24 06:08:38 +00:00
obj1 = { fontSize: null };
2026-07-29 08:29:29 +00:00
obj1[0] = size;
2026-07-20 16:05:17 +00:00
items2[2] = obj1;
2026-07-29 08:29:29 +00:00
obj[3] = items2;
obj[4] = tmp.emoji;
2026-08-24 06:08:38 +00:00
jsx(EmojiDefault, { width: null, height: null });
2026-07-20 16:05:17 +00:00
}
};