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

35 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 11419
// Function ID: 11420
// Name: onTapCheckpointCard
// Dependencies: [2045, 1074, 1241, 5016, 2]
// Exports: onTapCheckpointCard
// Module 11419 (onTapCheckpointCard)
2026-10-01 14:13:23 +00:00
import Constants from "Constants" /* 1074 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import AppAnalyticsUtils from "AppAnalyticsUtils" /* 5016 */;
import ChannelStore from "ChannelStore" /* 2045 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/checkpoint/native/onTapCheckpointCard.tsx");
2026-10-01 14:13:23 +00:00
export const onTapCheckpointCard = function onTapCheckpointCard(authorId) {
authorId = authorId.authorId;
const channel = ChannelStore.getChannel(authorId.message.channel_id);
const track = AnalyticsUtilsDefault.track;
const CHECKPOINT_CARD_CLICKED = AnalyticEvents.CHECKPOINT_CARD_CLICKED;
const obj = { other_user_id: authorId };
AnalyticsUtilsDefault;
const obj2 = AppAnalyticsUtils;
const merged = Object.assign(obj2.collectChannelAnalyticsMetadata(channel));
let guild_id;
2026-10-01 14:13:23 +00:00
const collectGuildAnalyticsMetadata = AppAnalyticsUtils.collectGuildAnalyticsMetadata;
AppAnalyticsUtils;
if (channel != null) {
guild_id = channel.guild_id;
}
2026-10-01 14:13:23 +00:00
const merged1 = Object.assign(collectGuildAnalyticsMetadata(guild_id));
track(CHECKPOINT_CARD_CLICKED, obj);
};