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

35 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 11559
// Function ID: 11560
2026-07-20 16:05:17 +00:00
// Name: onTapCheckpointCard
2026-10-09 10:00:15 +00:00
// Dependencies: [2064, 1085, 1265, 5106, 2]
2026-07-20 16:05:17 +00:00
// Exports: onTapCheckpointCard
2026-10-09 10:00:15 +00:00
// Module 11559 (onTapCheckpointCard)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1265 */;
import AppAnalyticsUtils from "AppAnalyticsUtils" /* 5106 */;
import ChannelStore from "ChannelStore" /* 2064 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
const result = size.fileFinishedImporting("modules/checkpoint/native/onTapCheckpointCard.tsx");
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +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));
2026-07-20 16:05:17 +00:00
let guild_id;
2026-10-03 08:58:59 +00:00
const collectGuildAnalyticsMetadata = AppAnalyticsUtils.collectGuildAnalyticsMetadata;
AppAnalyticsUtils;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
guild_id = channel.guild_id;
}
2026-10-03 08:58:59 +00:00
const merged1 = Object.assign(collectGuildAnalyticsMetadata(guild_id));
track(CHECKPOINT_CARD_CLICKED, obj);
2026-07-20 16:05:17 +00:00
};