decord/stable/source/modules/emojis/useTrackOpenPopout.tsx
github-actions 528a3dd5ba chore: update source for stable 345.9
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
2026-09-18 20:18:48 +00:00

43 lines
1.8 KiB
TypeScript

// Module ID: 10337
// Function ID: 10338
// Name: useTrackOpenPopout
// Dependencies: [19, 1957, 2011, 1374, 1074, 4740, 4992, 10338, 1242, 2]
// Exports: useTrackOpenPopout
// Module 10337 (useTrackOpenPopout)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */;
import AppAnalyticsUtils from "AppAnalyticsUtils" /* 4740 */;
import useMountEffectDefault from "useMountEffect" /* 4992 */;
import emojis_EmojiActionCreators from "emojis/EmojiActionCreators" /* 10338 */;
import noop from "module_19" /* 19 */;
import ChannelStore from "ChannelStore" /* 1957 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2011 */;
require = fn;
const EmojiInteractionPoint = fn(1374).EmojiInteractionPoint;
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
let result = size.fileFinishedImporting("modules/emojis/useTrackOpenPopout.tsx");
export const useTrackOpenPopout = (emojiId) => {
({ currentGuildId, popoutData: require, nonce: importDefault, demoMode: dependencyMap } = emojiId);
let current;
let merged = Object.assign(AppAnalyticsUtils.collectChannelAnalyticsMetadata(ChannelStore.getChannel(SelectedChannelStore.getChannelId(currentGuildId))));
current = current.useRef({ guild_id: currentGuildId, emoji_id: emojiId.emojiId }).current;
useMountEffectDefault(() => {
const result = emojis_EmojiActionCreators.initiateEmojiInteraction(EmojiInteractionPoint.TrackOpenPopoutUsed);
if (!dependencyMap) {
let str;
if (analyticsType != null) {
str = analyticsType.analyticsType;
}
if (str == null) {
str = "Standard Emoji Popout";
}
const obj3 = { type: str, nonce };
const merged = Object.assign(current);
AnalyticsUtilsDefault.track(AnalyticEvents.OPEN_POPOUT, obj3);
}
});
return current;
};