Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
84 lines
2.5 KiB
TypeScript
84 lines
2.5 KiB
TypeScript
// Module ID: 11049
|
|
// Function ID: 11050
|
|
// Name: ActivityEmoji
|
|
// Dependencies: [19, 21, 4640, 1936, 1397, 8913, 7244, 2]
|
|
// Exports: default
|
|
|
|
// Module 11049 (ActivityEmoji)
|
|
import AvatarUtilsDefault from "AvatarUtils" /* 1397 */;
|
|
import EmojiDefault from "Emoji" /* 7244 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4640);
|
|
let closure_5 = createStyles.createStyles({ emoji: { flexShrink: 0, width: "100%", height: "100%" }, text: { textAlign: "center", fontFamily: "System" } });
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/activity_status/native/ActivityEmoji.tsx");
|
|
|
|
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;
|
|
}
|
|
importDefault = undefined;
|
|
const tmp = closure_5();
|
|
let ReactionIcon = emoji;
|
|
const AnimateEmoji = emoji(1936).AnimateEmoji;
|
|
let animated;
|
|
const setting = AnimateEmoji.useSetting();
|
|
if (emoji != null) {
|
|
animated = emoji.animated;
|
|
}
|
|
if (animated) {
|
|
animated = setting;
|
|
}
|
|
if (animated) {
|
|
animated = flag;
|
|
}
|
|
const BooleanResult = Boolean(animated);
|
|
importDefault = BooleanResult;
|
|
let id;
|
|
if (emoji != null) {
|
|
id = emoji.id;
|
|
}
|
|
const items = [id, BooleanResult];
|
|
const memo = noop.useMemo(() => {
|
|
let id;
|
|
if (emoji != null) {
|
|
id = tmp.id;
|
|
}
|
|
if (null != id) {
|
|
const obj2 = { id: tmp.id, size: 48, animated };
|
|
return AvatarUtilsDefault.getEmojiURL(obj2);
|
|
}
|
|
}, items);
|
|
if (null == emoji) {
|
|
if (!withPlaceholder) {
|
|
return null;
|
|
}
|
|
}
|
|
if (null == emoji) {
|
|
ReactionIcon = ReactionIcon(8913).ReactionIcon;
|
|
const obj = { style, size: "sm" };
|
|
<ReactionIcon style={style} size="sm" />;
|
|
} else {
|
|
let obj2 = { src: memo, name: emoji.name, style: null, textEmojiStyle: null, fastImageStyle: null, adjustsFontSizeToFit: true };
|
|
const items1 = [style, ];
|
|
const size1 = { width: size, height: size };
|
|
items1[1] = size1;
|
|
obj2.style = items1;
|
|
const items2 = [, , ];
|
|
({ emoji: arr3[0], text: arr3[1] } = tmp);
|
|
const obj3 = { fontSize: size };
|
|
items2[2] = obj3;
|
|
obj2.textEmojiStyle = items2;
|
|
obj2.fastImageStyle = tmp.emoji;
|
|
jsx(EmojiDefault, { src: memo, name: emoji.name, style: null, textEmojiStyle: null, fastImageStyle: null, adjustsFontSizeToFit: true });
|
|
}
|
|
};
|