decord/source/modules/messages/native/emoji/MessageEmojiActionSheet.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

89 lines
3.4 KiB
TypeScript

// Module ID: 10334
// Function ID: 10335
// Name: MessageStandardEmojiActionSheet
// Dependencies: [19, 17, 1074, 21, 4560, 1115, 1256, 7150, 1242, 10335, 10342, 10343, 2]
// Exports: default
// Module 10334 (MessageStandardEmojiActionSheet)
import noopAll from "noop" /* 19 */;
import EmojiDefault from "Emoji" /* 10335 */;
import CustomEmojiContentDefault from "CustomEmojiContent" /* 10343 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { AnalyticEvents } from "ME" /* 1074 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
import set from "set" /* 1115 */;
const require = arg1;
function MessageStandardEmojiActionSheet(emojiNode) {
let _require;
let obj = _require(1256);
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(7150).BottomSheet, { style: callback().contentWrapper, children: jsx(EmojiDefault, { emojiNode: emojiNode.emojiNode, nonce: v4Result }) });
}
function MessageCustomEmojiActionSheet(emojiNode) {
emojiNode = emojiNode.emojiNode;
let _require;
let obj = _require(10342);
obj = { emojiId: emojiNode.id };
const emojiAndSource = obj.useEmojiAndSource(obj);
if (emojiAndSource.isFetching) {
return null;
} else {
const v4Result = tmp2(1256).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(7150).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;
};