/* Metro module 11466; source: modules/media/MediaAnalytics.tsx; dependencies: [661, 683, 2] */ function _fun87784(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11652:6, offset: 0x01fcb279, size: 133 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media/MediaAnalytics.tsx'); exports.logMediaAttachmentPlaybackStarted = logMediaAttachmentPlaybackStarted; exports.logMediaAttachmentPlaybackEnded = logMediaAttachmentPlaybackEnded; } function logMediaAttachmentPlaybackStarted({guild_id, id, type}, {content_type, flags, size, id}, a2, a3, a4, a5) { // fn#87785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11652:223, offset: 0x01fcb2fe, size: 184 bytes, params: 7, frame: 20 const value = a2; const value2 = a4; const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const track = defaultImport.track; const MEDIA_ATTACHMENT_PLAYBACK_STARTED = AnalyticEvents.MEDIA_ATTACHMENT_PLAYBACK_STARTED; const Math = global.Math; Reflect.apply(track, defaultImport, [MEDIA_ATTACHMENT_PLAYBACK_STARTED, {guild_id: guild_id, channel_id: id, channel_type: type, type: content_type, flags: flags, size: size, duration: value, message_id: a3, attachment_id: id, start_duration_secs: Math.min(value ?? value2, value2), sender_user_id: a5}]); } function logMediaAttachmentPlaybackEnded(a0, a1, a2, a3, a4, {content_type}) { // fn#87786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11652:573, offset: 0x01fcb3b6, size: 134 bytes, params: 7, frame: 20 const value = a1; const value2 = a2; const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const track = defaultImport.track; const MEDIA_ATTACHMENT_PLAYBACK_ENDED = AnalyticEvents.MEDIA_ATTACHMENT_PLAYBACK_ENDED; const Math = global.Math; Reflect.apply(track, defaultImport, [MEDIA_ATTACHMENT_PLAYBACK_ENDED, {message_id: a0, total_duration_secs: value, end_duration_secs: Math.min(value ?? value2, value2), sender_user_id: a3, duration_listening_secs: a4, type: content_type}]); }