/* Metro module 7945; source: modules/premium/premium_group/PremiumGroupUtils.native.tsx; dependencies: [1878, 3816, 3995, 1244, 2806, 2, 7946] */ import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as PremiumGroupConstantsModule from './PremiumGroupConstants.tsx'; /* Metro dependency 3816 */ import * as UserUtilsModule from '../../../utils/UserUtils.tsx'; /* Metro dependency 3995 */ function _fun63399(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8123:6, offset: 0x01b7e234, size: 264 bytes, params: 8, frame: 23 var propertyName; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/premium/premium_group/PremiumGroupUtils.native.tsx'); for (propertyName in require(7946) /* metro dependency 7946: PremiumGroupUtilsShared */) { exports[propertyName] = (require(7946) /* metro dependency 7946: PremiumGroupUtilsShared */)[propertyName]; } exports.getPremiumGroupInviteEmbedText = getPremiumGroupInviteEmbedText; exports.shouldShowPrimaryReminderNagbar = function() { return false; }; exports.useIsEligibleForPremiumGroupPurchase = function() { return false; }; exports.useCheckoutInstancePremiumGroupPurchaseEligibility = function(a0) { a0.isGift; return false; }; exports.useIsEligibleForPremiumGroupMarketingMaterials = function() { return false; }; exports.useIsEligibleForPremiumGroupNitroTabMarketingMaterials = function() { return false; }; function getPremiumGroupInviteEmbedText({sender, channel, isSender}) { // fn#63400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8123:330, offset: 0x01b7e33c, size: 468 bytes, params: 2, frame: 26 var r0; var object; const intl = (IndexNativeModule).intl; var property; var formatToPlainString; var value4; var value5; const premiumGroupProductName = getPremiumGroupProductName(); if (isSender) { value4 = ((a0, a1) => { var r1; var env0_0 = a0; var value = null; if (value == a1) { return value; } var recipients = a1.recipients; var value5 = UserStore.getUser(value == recipients ? undefined : recipients.find(_fun63402)); if (value == value5) { r1 = value; } else { value = UserUtilsModule; value = value.nameFromUser(value5); r1 = value; } return r1; })(sender, channel); value5 = null; if (value5 == value4) { r0 = value5; } else { object = {}; object.message = intl.format((importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */).MkcFjx, {receiverName: value4, premiumGroupProductName: premiumGroupProductName}); formatToPlainString = intl.formatToPlainString; property = (importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */)['5uwv8J']; object.header = Reflect.apply(formatToPlainString, intl, [property, {premiumGroupProductName: premiumGroupProductName}]); formatToPlainString = intl.formatToPlainString; property = (importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */)['AmE0B/']; object.body = Reflect.apply(formatToPlainString, intl, [property, {receiverName: value4}]); r0 = object; } return r0; } const value3 = (UserUtilsModule).nameFromUser(sender); object = {}; object.message = intl.format((importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */)['51Kv/4'], {senderName: value3, premiumGroupProductName: premiumGroupProductName, helpCenterLink: HELP_CENTER_LINK}); object.header = intl.string((importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */).ssge1y); object.body = intl.formatToPlainString((importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */).tej76V, {senderName: value3, premiumGroupProductName: premiumGroupProductName}); return object; function _fun63401(a0, a1) { // fn#63401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8123:389, offset: 0x01b7e510, size: 113 bytes, params: 3, frame: 15 var r1; const env0_0 = a0; let value = null; if (value == a1) { return value; } const recipients = a1.recipients; const user = UserStore.getUser(value == recipients ? undefined : recipients.find(_fun63402)); if (value == user) { r1 = value; } else { value = require(3995) /* metro dependency 3995: UserUtils */; value = value.nameFromUser(user); r1 = value; } return r1; function _fun63402(a0) { // fn#63402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8123:470, offset: 0x01b7e581, size: 21 bytes, params: 2, frame: 2 return a0 !== env0_0.id; } } } } global.__d(_fun63399, 7945, [1878, 3816, 3995, 1244, 2806, 2, 7946]) /* metro module 7945, dependencies: [1878, 3816, 3995, 1244, 2806, 2, 7946] */;