/* Metro module 14379; source: modules/reply_nudge/trackReplyNudgesShown.tsx; dependencies: [1379, 3793, 5219, 5220, 661, 683, 2] */ 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}); const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */; const privateChannelSortStore = importDefault(5219) /* metro dependency 5219: PrivateChannelSortStore */; const replyNudgeStore = importDefault(5220) /* metro dependency 5220: ReplyNudgeStore */; const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents; (require(2) /* metro dependency 2 */).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 object2; 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; object2 = {}; object2.channel_ids = value6.map(_fun108829); object2.channel_dm_list_indexes = value6.map(_fun108830); object2.nudge_author_affinities = value7.map(_fun108831); object2.nudge_author_is_friend = value7.map(_fun108832); object2.nudge_author_ids = value7.map(_fun108833); object2.nudge_message_ids = value7.map(_fun108834); Reflect.apply(track, defaultImport, [REPLY_NUDGES_SHOWN, object2]); } } 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 _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; value = a0?.authorId != null; if (value) { value = environment.__proto__; value = RelationshipStore.isFriend(a0.authorId); r0 = value; } else { r0 = value; } return r0; }