Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,113 @@
|
||||
/* Metro module 7945; source: modules/premium/premium_group/PremiumGroupUtils.native.tsx; dependencies: [1878, 3816, 3995, 1244, 2806, 2, 7946] */
|
||||
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});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const premiumGroupConstantsModule = require(3816) /* metro dependency 3816: PremiumGroupConstants */;
|
||||
const env0_4 = premiumGroupConstantsModule.getPremiumGroupProductName;
|
||||
const env0_5 = premiumGroupConstantsModule.HELP_CENTER_LINK;
|
||||
(require(2) /* metro dependency 2 */).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 object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).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 = require(3995) /* metro dependency 3995: UserUtils */;
|
||||
value = value.nameFromUser(value5);
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
})(sender, channel);
|
||||
value5 = null;
|
||||
if (value5 == value4) {
|
||||
r0 = value5;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.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'];
|
||||
object2.header = Reflect.apply(formatToPlainString, intl, [property,
|
||||
{premiumGroupProductName: premiumGroupProductName}]);
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */)['AmE0B/'];
|
||||
object2.body = Reflect.apply(formatToPlainString, intl, [property, {receiverName: value4}]);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
const value3 = (require(3995) /* metro dependency 3995: UserUtils */).nameFromUser(sender);
|
||||
object2 = {};
|
||||
object2.message = intl.format((importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */)['51Kv/4'],
|
||||
{senderName: value3, premiumGroupProductName: premiumGroupProductName, helpCenterLink: HELP_CENTER_LINK});
|
||||
object2.header = intl.string((importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */).ssge1y);
|
||||
object2.body = intl.formatToPlainString((importDefault(2806) /* metro dependency 2806: PremiumGroupMessages */).tej76V,
|
||||
{senderName: value3, premiumGroupProductName: premiumGroupProductName});
|
||||
return object2;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user