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

35 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 11294
// Function ID: 11295
// Name: onTapCheckpointCard
2026-10-02 13:37:24 +00:00
// Dependencies: [2051, 1086, 1253, 5017, 2]
// Exports: onTapCheckpointCard
2026-10-02 13:37:24 +00:00
// Module 11294 (onTapCheckpointCard)
import Constants from "Constants" /* 1086 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1253 */;
import AppAnalyticsUtils from "AppAnalyticsUtils" /* 5017 */;
import ChannelStore from "ChannelStore" /* 2051 */;
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);
};