/* Metro module 15816; source: utils/RelationshipUtils.tsx; dependencies: [661, 13914, 1423, 1244, 15817, 4603, 2] */ import AvatarUtils from './AvatarUtils.tsx'; /* Metro dependency 1423 */ import ChannelActionCreators from '../actions/ChannelActionCreators.tsx'; /* Metro dependency 4603 */ import NotificationActionCreators from '../actions/NotificationActionCreators.tsx'; /* Metro dependency 13914 */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */ function _fun121553(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16024:6, offset: 0x0254aba3, size: 148 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('utils/RelationshipUtils.tsx'); exports.showPendingNotification = showPendingNotification; exports.showAcceptedNotification = showAcceptedNotification; function showNotification_121554(a0, a1, a2) { // fn#121554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16024:122, offset: 0x0254ac37, size: 114 bytes, params: 4, frame: 20 const showNotification = NotificationActionCreators.showNotification; const userAvatarURL = (AvatarUtils).getUserAvatarURL(a0); const username = a0.username; Reflect.apply(showNotification, NotificationActionCreators, [userAvatarURL, username, a1, {}, {'omitViewTracking': true, 'omitClickTracking': true, 'tag': null, 'onClick': null, 'isUserAvatar': true, tag: a0.id, onClick: a2}]); } function showPendingNotification(a0) { // fn#121555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16024:390, offset: 0x0254aca9, size: 87 bytes, params: 2, frame: 17 const showNotification_121554Binding = showNotification_121554; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; showNotification_121554Binding(a0, intl.string((require(1244) /* metro dependency 1244: indexNative */).t['t3+Af3']), function() { var defaultImport = importDefault(dependencyMap[4]); var PENDING = FriendsSections.PENDING; defaultImport.transitionToSection(PENDING, {explicit: true}); }); } function showAcceptedNotification(a0) { // fn#121557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16024:576, offset: 0x0254ad3a, size: 91 bytes, params: 2, frame: 19 const env0_0 = a0; const showNotification_121554Binding = showNotification_121554; const intl = (IndexNativeModule).intl; const string = intl.string; const MYr3Ka = (IndexNativeModule).t.MYr3Ka; showNotification_121554Binding(a0, Reflect.apply(string, intl, [MYr3Ka]), _fun121558); function _fun121558() { // fn#121558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16024:671, offset: 0x0254ad95, size: 57 bytes, params: 1, frame: 13 const value = environment.__proto__; (ChannelActionCreators).openPrivateChannel({recipientIds: env0_0.id}); } } } global.__d(_fun121553, 15816, [661, 13914, 1423, 1244, 15817, 4603, 2]) /* metro module 15816, dependencies: [661, 13914, 1423, 1244, 15817, 4603, 2] */;