2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 11419
|
|
|
|
|
// Function ID: 11420
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: onTapCheckpointCard
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [2045, 1074, 1241, 5016, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: onTapCheckpointCard
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 11419 (onTapCheckpointCard)
|
2026-10-01 14:13:23 +00:00
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
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-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
const AnalyticEvents = Constants.AnalyticEvents;
|
2026-09-18 19:45:33 +00:00
|
|
|
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));
|
2026-09-18 19:45:33 +00:00
|
|
|
let guild_id;
|
2026-10-01 14:13:23 +00:00
|
|
|
const collectGuildAnalyticsMetadata = AppAnalyticsUtils.collectGuildAnalyticsMetadata;
|
|
|
|
|
AppAnalyticsUtils;
|
2026-09-18 19:45:33 +00:00
|
|
|
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);
|
2026-09-18 19:45:33 +00:00
|
|
|
};
|