decord/source/modules/checkpoint/native/onTapCheckpointCard.tsx

29 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 12081
// Function ID: 12082
2026-07-20 16:05:17 +00:00
// Name: onTapCheckpointCard
// Dependencies: [1958, 1074, 1241, 4818, 2]
2026-07-20 16:05:17 +00:00
// Exports: onTapCheckpointCard
// Module 12081 (onTapCheckpointCard)
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import AppAnalyticsUtils from "AppAnalyticsUtils" /* 4818 */;
import ChannelStore from "ChannelStore" /* 1958 */;
2026-07-23 10:11:24 +00:00
require = fn;
const AnalyticEvents = fn(1074).AnalyticEvents;
const size = fn(2);
const result = size.fileFinishedImporting("modules/checkpoint/native/onTapCheckpointCard.tsx");
2026-07-20 16:05:17 +00:00
export const onTapCheckpointCard = function onTapCheckpointCard(message) {
const channel = ChannelStore.getChannel(message.message.channel_id);
const obj = AnalyticsUtilsDefault;
const obj2 = { other_user_id: message.authorId };
const merged = Object.assign(AppAnalyticsUtils.collectChannelAnalyticsMetadata(channel));
2026-07-20 16:05:17 +00:00
let guild_id;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
guild_id = channel.guild_id;
}
const merged1 = Object.assign(AppAnalyticsUtils.collectGuildAnalyticsMetadata(guild_id));
obj.track(AnalyticEvents.CHECKPOINT_CARD_CLICKED, obj2);
2026-07-20 16:05:17 +00:00
};