decord/source/modules/messages/native/emoji/MessageEmojiActionSheet.tsx
2026-08-24 06:08:38 +00:00

89 lines
3.4 KiB
TypeScript

// Module ID: 9437
// Function ID: 9438
// Name: MessageStandardEmojiActionSheet
// Dependencies: [19, 17, 676, 21, 4668, 500, 514, 6988, 698, 9438, 9444, 9445, 2]
// Exports: default
// Module 9437 (MessageStandardEmojiActionSheet)
import noopAll from "noop" /* 19 */;
import EmojiDefault from "Emoji" /* 9438 */;
import CustomEmojiContentDefault from "CustomEmojiContent" /* 9445 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { AnalyticEvents } from "ME" /* 676 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
import set from "set" /* 500 */;
const require = arg1;
function MessageStandardEmojiActionSheet(emojiNode) {
let _require;
let obj = _require(514);
const v4Result = obj.v4();
_require = v4Result;
obj = {
startExpanded: true,
onDismiss() {
let obj = closure_1_1(closure_1_2[8]);
obj = { nonce: c0 };
obj.track(closure_1_4.CLOSE_POPOUT, obj);
},
children: null
};
obj = { style: callback().contentWrapper, children: jsx(EmojiDefault, { emojiNode: emojiNode.emojiNode, nonce: v4Result }) };
obj[2] = <View style={callback().contentWrapper}>{jsx(EmojiDefault, { emojiNode: arg0.emojiNode, nonce: v4Result })}</View>;
return jsx(_require(6988).BottomSheet, { style: callback().contentWrapper, children: jsx(EmojiDefault, { emojiNode: emojiNode.emojiNode, nonce: v4Result }) });
}
function MessageCustomEmojiActionSheet(emojiNode) {
emojiNode = emojiNode.emojiNode;
let _require;
let obj = _require(9444);
obj = { emojiId: emojiNode.id };
const emojiAndSource = obj.useEmojiAndSource(obj);
if (emojiAndSource.isFetching) {
return null;
} else {
const v4Result = tmp2(514).v4();
_require = v4Result;
obj = { startExpanded: true, onDismiss: null, children: null };
obj[1] = function onDismiss() {
let obj = closure_1_1(closure_1_2[8]);
obj = { nonce: c0 };
obj.track(closure_1_4.CLOSE_POPOUT, obj);
};
obj1 = { style: null, children: null };
obj1[0] = tmp.contentWrapper;
const obj2 = { emojiNode: null, sourceType: null, expressionSourceApplication: null, expressionSourceGuild: null, customEmojiFromJoinedGuild: null, hasJoinedEmojiSourceGuild: null, nonce: null };
obj2[0] = emojiNode;
obj2[1] = tmp5;
obj2[2] = tmp7;
obj2[3] = tmp6;
obj2[4] = tmp9;
obj2[5] = tmp8;
obj2[6] = v4Result;
obj1[1] = jsx(CustomEmojiContentDefault, { emojiNode: null, sourceType: null, expressionSourceApplication: null, expressionSourceGuild: null, customEmojiFromJoinedGuild: null, hasJoinedEmojiSourceGuild: null, nonce: null });
obj[2] = <View style={null}>{null}</View>;
return jsx(tmp2(6988).BottomSheet, { startExpanded: true, onDismiss: null, children: null });
}
tmp = callback();
}
noopAll;
let num = 0;
if (set.isAndroid()) {
num = 16;
}
let closure_6 = createCacheKey.createStyles({ contentWrapper: { paddingHorizontal: 16, paddingBottom: num } });
const result = set.fileFinishedImporting("modules/messages/native/emoji/MessageEmojiActionSheet.tsx");
export default function MessageEmojiActionSheet(emojiNode) {
emojiNode = emojiNode.emojiNode;
if ("surrogate" in emojiNode) {
let obj = { emojiNode: null };
obj[0] = emojiNode;
let tmpResult = tmp(MessageStandardEmojiActionSheet, obj);
} else {
obj = { emojiNode: null };
obj[0] = emojiNode;
tmpResult = tmp(MessageCustomEmojiActionSheet, obj);
}
return tmpResult;
};