// Metro module 11065 (f11066). import { AnalyticEvents } from "../../Constants"; import AnalyticsUtils from "../../utils/AnalyticsUtils"; export function logMediaAttachmentPlaybackStarted(a0, a1, a2, a3, a4, a5) { let r10 = a2; const MEDIA_ATTACHMENT_PLAYBACK_STARTED = AnalyticEvents.MEDIA_ATTACHMENT_PLAYBACK_STARTED; const r24 = Math; if (a2 == null) { r10 = a4; } AnalyticsUtils.track(MEDIA_ATTACHMENT_PLAYBACK_STARTED, { guild_id: a0.guild_id, channel_id: a0.id, channel_type: a0.type, type: a1.content_type, flags: a1.flags, size: a1.size, duration: a2, message_id: a3, attachment_id: a1.id, start_duration_secs: r24.min(r10, a4), sender_user_id: a5 }); } export function logMediaAttachmentPlaybackEnded(a0, a1, a2, a3, a4, a5) { let r12 = a1; const MEDIA_ATTACHMENT_PLAYBACK_ENDED = AnalyticEvents.MEDIA_ATTACHMENT_PLAYBACK_ENDED; const r10 = Math; if (a1 == null) { r12 = a2; } AnalyticsUtils.track(MEDIA_ATTACHMENT_PLAYBACK_ENDED, { message_id: a0, total_duration_secs: a1, end_duration_secs: r10.min(r12, a2), sender_user_id: a3, duration_listening_secs: a4, type: a5.content_type }); }