/* Metro module 14379; source: modules/reply_nudge/trackReplyNudgesShown.tsx; dependencies: [1379, 3793, 5219, 5220, 661, 683, 2] */ import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */ import PrivateChannelSortStore from '../../stores/views/PrivateChannelSortStore.tsx'; /* Metro dependency 5219 */ import ReplyNudgeStore from './ReplyNudgeStore.tsx'; /* Metro dependency 5220 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ function _fun108823(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:6, offset: 0x0232fa5b, size: 184 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/reply_nudge/trackReplyNudgesShown.tsx'); exports.default = trackReplyNudgesShown; function trackReplyNudgesShown() { // fn#108824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:250, offset: 0x0232fb13, size: 300 bytes, params: 1, frame: 18 var value7; var defaultImport; var track; var REPLY_NUDGES_SHOWN; var object; const value3 = PrivateChannelSortStore.getPrivateChannelIds().map(function(a0) { return ChannelStore.getChannel(a0); }); const filter = value3.filter; const Boolean = global.Boolean; const value6 = Reflect.apply(filter, value3, [Boolean]).map(function(a0, a1) { var object = {channelId: a0.id, index: a1}; object.isNudged = ReplyNudgeStore.isChannelNudged(a0.id); return object; }).filter(function(a0) { return a0.isNudged; }); if (value6.length > 0) { value7 = value6.map(function(a0) { return ReplyNudgeStore.getChannelNudge(a0.channelId); }); defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; track = defaultImport.track; REPLY_NUDGES_SHOWN = AnalyticEvents.REPLY_NUDGES_SHOWN; object = {}; object.channel_ids = value6.map(_fun108829); object.channel_dm_list_indexes = value6.map(_fun108830); object.nudge_author_affinities = value7.map(_fun108831); object.nudge_author_is_friend = value7.map(_fun108832); object.nudge_author_ids = value7.map(_fun108833); object.nudge_message_ids = value7.map(_fun108834); Reflect.apply(track, defaultImport, [REPLY_NUDGES_SHOWN, object]); } function _fun108832(a0) { // fn#108832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:756, offset: 0x0232fcdf, size: 53 bytes, params: 2, frame: 12 var r0; var relationshipStoreBinding; value = a0?.authorId != null; if (value) { value = environment.__proto__; relationshipStoreBinding = RelationshipStore; value = relationshipStoreBinding.isFriend(a0.authorId); r0 = value; } else { r0 = value; } return r0; } } } function _fun108829(a0) { // fn#108829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:573, offset: 0x0119ee7e, size: 10 bytes, params: 2, frame: 1 return a0.channelId; } function _fun108830(a0) { // fn#108830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:621, offset: 0x0232fcaf, size: 10 bytes, params: 2, frame: 1 return a0.index; } function _fun108831(a0) { // fn#108831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:665, offset: 0x0232fcb9, size: 38 bytes, params: 2, frame: 4 return a0?.affinity ?? -2; } function _fun108833(a0) { // fn#108833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:843, offset: 0x0232fd14, size: 38 bytes, params: 2, frame: 4 return a0?.authorId ?? '0'; } function _fun108834(a0) { // fn#108834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14576:930, offset: 0x0232fd3a, size: 38 bytes, params: 2, frame: 4 return a0?.lastMessageId ?? '0'; } global.__d(_fun108823, 14379, [1379, 3793, 5219, 5220, 661, 683, 2]) /* metro module 14379, dependencies: [1379, 3793, 5219, 5220, 661, 683, 2] */;