Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,607 @@
|
||||
/* Metro module 4235; source: records/ApplicationRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 4236, 1885, 4237, 4238, 4239, 4240, 1423, 4241, 483, 21, 2] */
|
||||
function _fun35003(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:6, offset: 0x010680c8, size: 350 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var object = {os: a0.os, name: a0.name};
|
||||
if (a0.arguments != null) {
|
||||
object.arguments = a0.arguments;
|
||||
}
|
||||
if (a0.is_launcher != null) {
|
||||
object.isLauncher = a0.is_launcher;
|
||||
}
|
||||
return object;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const companyRecord = importDefault(4236) /* metro dependency 4236: CompanyRecord */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
const {END_GAME_APPLICATION_ID, POKER_NIGHT_APPLICATION_ID} = require(4237) /* metro dependency 4237: Constants */;
|
||||
const env0_11 = (require(4238) /* metro dependency 4238: ApplicationConstants */).ApplicationTypes;
|
||||
object2 = {};
|
||||
object2[POKER_NIGHT_APPLICATION_ID] = 7;
|
||||
object2[END_GAME_APPLICATION_ID] = 12;
|
||||
value = _fun35009(value);
|
||||
const value3 = _fun35017(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/ApplicationRecord.tsx');
|
||||
exports.default = value3;
|
||||
exports.createExecutable = closure;
|
||||
exports.BasicApplicationRecord = value;
|
||||
}
|
||||
|
||||
function _callSuper_35004(a0, a1, a2) { // fn#35004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:275, offset: 0x01068226, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_7(a1);
|
||||
const binding = env0_6;
|
||||
if (_isNativeReflectConstruct_35005()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_7(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_35005() { // fn#35005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:406, offset: 0x0106828a, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_35005_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun35009(a0) { // fn#35009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:787, offset: 0x01068331, size: 190 bytes, params: 2, frame: 17
|
||||
const closure = BasicApplicationRecord;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'connectionEntrypointUrl', get: get_35011}, {key: 'getIconURL', value: value_35012},
|
||||
{key: 'getIconSource', value: value_35013}, {key: 'getSplashURL', value: value_35014}, {key: 'getCoverImageURL',
|
||||
value: value_35015}], [{key: 'createFromServer', value: value_35016}]);
|
||||
}
|
||||
|
||||
function _fun35017(a0) { // fn#35017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:3113, offset: 0x010687ef, size: 238 bytes, params: 2, frame: 18
|
||||
const closure = ApplicationRecord;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'getCanonicalGameId', value: value_35020}, {key: 'mergeFromApplicationUpdate',
|
||||
value: value_35022}, {key: 'getMaxParticipants', value: value_35025}, {key: 'supportsIntegrationTypes',
|
||||
value: function(a0) {
|
||||
var r3;
|
||||
var r0;
|
||||
var value = copyRestArgs(0, r3);
|
||||
var integrationTypesConfig = this.integrationTypesConfig;
|
||||
var env0_0 = integrationTypesConfig;
|
||||
var value2 = integrationTypesConfig != null;
|
||||
if (value2) {
|
||||
value = value.every(_fun35027);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}}, {key: 'destinationSkuId', get: function() {
|
||||
return this.storeListingSkuId ?? this.primarySkuId;
|
||||
}}, {key: 'supportsOutOfProcessOverlay', get: function() {
|
||||
return ApplicationRecord.supportsOutOfProcessOverlay(this.overlayMethods);
|
||||
}}], [{key: 'createFromServer', value: value_35030}, {key: 'supportsOutOfProcessOverlay', value: value_35033}]);
|
||||
}
|
||||
|
||||
function BasicApplicationRecord(a0) { // fn#35010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:799, offset: 0x010683ef, size: 299 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, BasicApplicationRecord);
|
||||
value = _callSuper_35004(this, BasicApplicationRecord);
|
||||
value.id = a0.id;
|
||||
value.name = a0.name;
|
||||
value.icon = a0.icon;
|
||||
value.splash = a0.splash;
|
||||
value.primarySkuId = a0.primarySkuId;
|
||||
value.thirdPartySkus = a0.thirdPartySkus ?? [];
|
||||
value.description = a0.description;
|
||||
value.bot = a0.bot;
|
||||
value.coverImage = a0.coverImage;
|
||||
value.type = a0.type;
|
||||
value.isMonetized = a0.is_monetized ?? a0.isMonetized;
|
||||
value.isVerified = a0.is_verified ?? a0.isVerified;
|
||||
value.roleConnectionsVerificationUrl = a0.role_connections_verification_url ?? a0.roleConnectionsVerificationUrl;
|
||||
value.parentId = a0.parent_id ?? a0.parentId;
|
||||
value._connectionEntrypointUrl = a0.connection_entrypoint_url ?? a0._connectionEntrypointUrl;
|
||||
value.contentClassification = a0.content_classification ?? a0.contentClassification;
|
||||
return value;
|
||||
}
|
||||
|
||||
function get_35011() { // fn#35011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:1693, offset: 0x0106851a, size: 149 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const getIsRiotSocialSDKMigrationEnabled = (require(4239) /* metro dependency 4239: riotSocialSDKMigration */).getIsRiotSocialSDKMigrationEnabled;
|
||||
const getIsValorantSocialSDKEnabled = (require(4240) /* metro dependency 4240: valorantSocialSDKExperiment */).getIsValorantSocialSDKEnabled;
|
||||
const items = ['1443349464290168976', '1443350165678198935', '1443033465766281327'];
|
||||
return items.includes(this.id) && (this.id !== '1443350165678198935' || getIsValorantSocialSDKEnabled({location: 'ApplicationRecord'})) && getIsRiotSocialSDKMigrationEnabled({location: 'ApplicationRecord'}) ? 'https://aes.sgp.pvp.net/providers/discord/link/v1?origin=Discord' : this._connectionEntrypointUrl;
|
||||
}
|
||||
|
||||
function value_35012(a0, a1) { // fn#35012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:2115, offset: 0x010685af, size: 89 bytes, params: 3, frame: 14
|
||||
var r0;
|
||||
const icon = this.icon;
|
||||
let value = null;
|
||||
if (value != icon) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getGameAssetURL({id: this.id, hash: this.icon, size: a0, format: a1});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_35013(a0, a1) { // fn#35013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:2256, offset: 0x01068608, size: 89 bytes, params: 3, frame: 14
|
||||
var r0;
|
||||
const icon = this.icon;
|
||||
let value = null;
|
||||
if (value != icon) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getGameAssetSource({id: this.id, hash: this.icon, size: a0, format: a1});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_35014(a0, a1) { // fn#35014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:2399, offset: 0x01068661, size: 98 bytes, params: 3, frame: 14
|
||||
var r0;
|
||||
const splash = this.splash;
|
||||
let value = null;
|
||||
if (value != splash) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getGameAssetURL({id: this.id, hash: this.splash, size: a0, keepAspectRatio: true, format: a1});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_35015(a0) { // fn#35015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:2566, offset: 0x010686c3, size: 91 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
const coverImage = this.coverImage;
|
||||
let value = null;
|
||||
if (value != coverImage) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getApplicationIconURL({id: this.id, icon: this.coverImage, size: a0, keepAspectRatio: true});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_35016(a0) { // fn#35016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:2738, offset: 0x0106871e, size: 209 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['coverImage'] = a0.cover_image;
|
||||
object2['primarySkuId'] = a0.primary_sku_id;
|
||||
const bot = a0.bot;
|
||||
let value = null;
|
||||
object2['bot'] = value != bot ? new UserRecord(a0.bot) : value;
|
||||
object2['thirdPartySkus'] = a0.third_party_skus;
|
||||
object2['roleConnectionsVerificationUrl'] = a0.role_connections_verification_url;
|
||||
object2['parentId'] = a0.parent_id;
|
||||
object2['_connectionEntrypointUrl'] = a0.connection_entrypoint_url;
|
||||
object2['contentClassification'] = a0.content_classification;
|
||||
value = Object.create(BasicApplicationRecord.prototype, {constructor: {value: BasicApplicationRecord}});
|
||||
const basicApplicationRecord = new BasicApplicationRecord(object2);
|
||||
return basicApplicationRecord instanceof Object ? basicApplicationRecord : value;
|
||||
}
|
||||
|
||||
function ApplicationRecord(a0) { // fn#35018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:3125, offset: 0x010688dd, size: 741 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
const value3 = undefined;
|
||||
binding(this, ApplicationRecord);
|
||||
const value4 = _callSuper_35004(this, ApplicationRecord, [a0]);
|
||||
const overlay = a0.overlay;
|
||||
value4.overlay = overlay != null && overlay;
|
||||
const overlayWarn = a0.overlayWarn;
|
||||
value4.overlayWarn = overlayWarn != null && overlayWarn;
|
||||
const overlayCompatibilityHook = a0.overlayCompatibilityHook;
|
||||
value4.overlayCompatibilityHook = overlayCompatibilityHook != null && overlayCompatibilityHook;
|
||||
value4.overlayMethods = a0.overlayMethods ?? (require(4241) /* metro dependency 4241: ApplicationOverlayMethodFlags */).ApplicationOverlayMethodFlags.DEFAULT;
|
||||
const hook = a0.hook;
|
||||
value4.hook = hook == null || hook;
|
||||
value4.aliases = a0.aliases ?? [];
|
||||
value4.publishers = a0.publishers ?? [];
|
||||
value4.developers = a0.developers ?? [];
|
||||
value4.storeListingSkuId = a0.storeListingSkuId;
|
||||
value4.guildId = a0.guildId;
|
||||
value4.guild = a0.guild;
|
||||
const r7 = a0.executables ?? [];
|
||||
value4.executables = r7.map(createExecutable);
|
||||
value4.hashes = a0.hashes ?? [];
|
||||
value4.eulaId = a0.eulaId;
|
||||
value4.slug = a0.slug;
|
||||
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
value4.flags = value.deserialize(a0.flags ?? 0);
|
||||
value4.tags = a0.tags ?? [];
|
||||
value4.maxParticipants = a0.maxParticipants;
|
||||
value4.embeddedActivityConfig = a0.embedded_activity_config ?? a0.embeddedActivityConfig;
|
||||
value4.team = a0.team;
|
||||
value4.integrationTypesConfig = a0.integrationTypesConfig;
|
||||
value4.storefront_available = a0.storefront_available;
|
||||
value4.termsOfServiceUrl = a0.termsOfServiceUrl;
|
||||
value4.privacyPolicyUrl = a0.privacyPolicyUrl;
|
||||
value4.isDiscoverable = a0.is_discoverable ?? a0.isDiscoverable;
|
||||
value4.customInstallUrl = a0.custom_install_url ?? a0.customInstallUrl;
|
||||
value4.installParams = a0.install_params ?? a0.installParams;
|
||||
value4.directoryEntry = a0.directory_entry ?? a0.directoryEntry;
|
||||
value4.categories = a0.categories;
|
||||
const linked_games = a0.linked_games;
|
||||
let r1 = linked_games == null ? value3 : linked_games.map(_fun35019);
|
||||
r1 = r1 ?? a0.linkedGames;
|
||||
value4.linkedGames = r1;
|
||||
value4.deepLinkUri = a0.deepLinkUri ?? a0.deeplink_uri;
|
||||
value4.applicationAccountLinkBenefitConfig = a0.applicationAccountLinkBenefitConfig ?? a0.application_account_link_benefit_config;
|
||||
value4.parentId = a0.parentId ?? a0.parent_id;
|
||||
return value4;
|
||||
}
|
||||
|
||||
function value_35020() { // fn#35020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:5043, offset: 0x01068c03, size: 128 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var id;
|
||||
var r0;
|
||||
var linkedGames;
|
||||
var value2;
|
||||
var value3;
|
||||
const type = this.type;
|
||||
let value = environment.__proto__;
|
||||
const GAME = ApplicationTypes.GAME;
|
||||
if (type === GAME) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.cast(this.id);
|
||||
r0 = value;
|
||||
} else {
|
||||
linkedGames = this.linkedGames;
|
||||
value = null;
|
||||
value2 = undefined;
|
||||
if (value == linkedGames) {
|
||||
id = value2;
|
||||
} else {
|
||||
value3 = linkedGames.find(_fun35021);
|
||||
id = value == value3 ? value2 : value3.id;
|
||||
}
|
||||
r0 = value != id ? id : value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_35022({id, name, icon, splash, overlay, overlayWarn, overlayCompatibilityHook, overlayMethods, hook, aliases, publishers, developers, primarySkuId, storeListingSkuId, thirdPartySkus, guildId, guild, executables, hashes, description, eulaId, slug, coverImage, bot, flags, maxParticipants, tags, embeddedActivityConfig, type, team, roleConnectionsVerificationUrl, _connectionEntrypointUrl, integrationTypesConfig, isMonetized, storefront_available, termsOfServiceUrl, privacyPolicyUrl, isVerified, customInstallUrl, installParams, isDiscoverable, directoryEntry, categories, linkedGames, deepLinkUri, applicationAccountLinkBenefitConfig, contentClassification, parentId}) { // fn#35022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:5296, offset: 0x01068cae, size: 1090 bytes, params: 2, frame: 19
|
||||
var r6;
|
||||
var r5;
|
||||
var object3;
|
||||
const object4 = {};
|
||||
id = id ?? this.id;
|
||||
object4.id = id;
|
||||
name = name ?? this.name;
|
||||
object4.name = name;
|
||||
icon = icon ?? this.icon;
|
||||
object4.icon = icon;
|
||||
splash = splash ?? this.splash;
|
||||
object4.splash = splash;
|
||||
overlay = overlay ?? this.overlay;
|
||||
object4.overlay = overlay;
|
||||
overlayWarn = overlayWarn ?? this.overlayWarn;
|
||||
object4.overlayWarn = overlayWarn;
|
||||
overlayCompatibilityHook = overlayCompatibilityHook ?? this.overlayCompatibilityHook;
|
||||
object4.overlayCompatibilityHook = overlayCompatibilityHook;
|
||||
overlayMethods = overlayMethods ?? this.overlayMethods;
|
||||
object4.overlayMethods = overlayMethods;
|
||||
hook = hook ?? this.hook;
|
||||
object4.hook = hook;
|
||||
aliases = aliases ?? this.aliases;
|
||||
object4.aliases = aliases;
|
||||
publishers = publishers ?? this.publishers;
|
||||
object4.publishers = publishers;
|
||||
developers = developers ?? this.developers;
|
||||
object4.developers = developers;
|
||||
primarySkuId = primarySkuId ?? this.primarySkuId;
|
||||
object4.primarySkuId = primarySkuId;
|
||||
storeListingSkuId = storeListingSkuId ?? this.storeListingSkuId;
|
||||
object4.storeListingSkuId = storeListingSkuId;
|
||||
thirdPartySkus = thirdPartySkus ?? this.thirdPartySkus;
|
||||
object4.thirdPartySkus = thirdPartySkus;
|
||||
guildId = guildId ?? this.guildId;
|
||||
object4.guildId = guildId;
|
||||
guild = guild ?? this.guild;
|
||||
object4.guild = guild;
|
||||
executables = executables ?? this.executables;
|
||||
object4.executables = executables;
|
||||
hashes = hashes ?? this.hashes;
|
||||
object4.hashes = hashes;
|
||||
description = description ?? this.description;
|
||||
object4.description = description;
|
||||
eulaId = eulaId ?? this.eulaId;
|
||||
object4.eulaId = eulaId;
|
||||
slug = slug ?? this.slug;
|
||||
object4.slug = slug;
|
||||
coverImage = coverImage ?? this.coverImage;
|
||||
object4.coverImage = coverImage;
|
||||
bot = bot ?? this.bot;
|
||||
object4.bot = bot;
|
||||
flags = flags ?? this.flags;
|
||||
object4.flags = flags;
|
||||
maxParticipants = maxParticipants ?? this.maxParticipants;
|
||||
object4.maxParticipants = maxParticipants;
|
||||
tags = tags ?? this.tags;
|
||||
object4.tags = tags;
|
||||
if (embeddedActivityConfig != null) {
|
||||
r5 = embeddedActivityConfig;
|
||||
} else {
|
||||
if (this.embeddedActivityConfig != null) {
|
||||
object3 = {};
|
||||
copyDataProperties(object3, this.embeddedActivityConfig, undefined);
|
||||
r6 = object3;
|
||||
} else {
|
||||
r6 = undefined;
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
object4.embeddedActivityConfig = r5;
|
||||
type = type ?? this.type;
|
||||
object4.type = type;
|
||||
team = team ?? this.team;
|
||||
object4.team = team;
|
||||
roleConnectionsVerificationUrl = roleConnectionsVerificationUrl ?? this.roleConnectionsVerificationUrl;
|
||||
object4.roleConnectionsVerificationUrl = roleConnectionsVerificationUrl;
|
||||
_connectionEntrypointUrl = _connectionEntrypointUrl ?? this._connectionEntrypointUrl;
|
||||
object4._connectionEntrypointUrl = _connectionEntrypointUrl;
|
||||
integrationTypesConfig = integrationTypesConfig ?? this.integrationTypesConfig;
|
||||
object4.integrationTypesConfig = integrationTypesConfig;
|
||||
isMonetized = isMonetized ?? this.isMonetized;
|
||||
object4.isMonetized = isMonetized;
|
||||
storefront_available = storefront_available ?? this.storefront_available;
|
||||
object4.storefront_available = storefront_available;
|
||||
termsOfServiceUrl = termsOfServiceUrl ?? this.termsOfServiceUrl;
|
||||
object4.termsOfServiceUrl = termsOfServiceUrl;
|
||||
privacyPolicyUrl = privacyPolicyUrl ?? this.privacyPolicyUrl;
|
||||
object4.privacyPolicyUrl = privacyPolicyUrl;
|
||||
isVerified = isVerified ?? this.isVerified;
|
||||
object4.isVerified = isVerified;
|
||||
customInstallUrl = customInstallUrl ?? this.customInstallUrl;
|
||||
object4.customInstallUrl = customInstallUrl;
|
||||
installParams = installParams ?? this.installParams;
|
||||
object4.installParams = installParams;
|
||||
isDiscoverable = isDiscoverable ?? this.isDiscoverable;
|
||||
object4.isDiscoverable = isDiscoverable;
|
||||
directoryEntry = directoryEntry ?? this.directoryEntry;
|
||||
object4.directoryEntry = directoryEntry;
|
||||
categories = categories ?? this.categories;
|
||||
object4.categories = categories;
|
||||
const linkedGames2 = this.linkedGames;
|
||||
object4.linkedGames = linkedGames == null ? linkedGames2 : linkedGames2 == null ? linkedGames : linkedGames.map(function(a0) {
|
||||
var r1;
|
||||
var object;
|
||||
var value = a0;
|
||||
var env0_0 = value;
|
||||
if (value.application != null) {
|
||||
return value;
|
||||
}
|
||||
var value3 = linkedGames.find(_fun35024);
|
||||
if (value3?.application == null) {
|
||||
r1 = value;
|
||||
} else {
|
||||
object = {};
|
||||
copyDataProperties(object, value, null);
|
||||
object['application'] = value3.application;
|
||||
r1 = object;
|
||||
}
|
||||
return r1;
|
||||
});
|
||||
deepLinkUri = deepLinkUri ?? this.deepLinkUri;
|
||||
object4.deepLinkUri = deepLinkUri;
|
||||
applicationAccountLinkBenefitConfig = applicationAccountLinkBenefitConfig ?? this.applicationAccountLinkBenefitConfig;
|
||||
object4.applicationAccountLinkBenefitConfig = applicationAccountLinkBenefitConfig;
|
||||
contentClassification = contentClassification ?? this.contentClassification;
|
||||
object4.contentClassification = contentClassification;
|
||||
parentId = parentId ?? this.parentId;
|
||||
object4.parentId = parentId;
|
||||
let value = Object.create(ApplicationRecord.prototype, {constructor: {value: ApplicationRecord}});
|
||||
const applicationRecord = new ApplicationRecord(object4);
|
||||
return applicationRecord instanceof Object ? applicationRecord : value;
|
||||
}
|
||||
|
||||
function value_35025() { // fn#35025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:8451, offset: 0x01069151, size: 45 bytes, params: 1, frame: 4
|
||||
return this.maxParticipants ?? env1_12[this.id] ?? 0;
|
||||
}
|
||||
|
||||
function value_35026(a0) { // fn#35026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:8575, offset: 0x0106917e, size: 48 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
const value2 = this.integrationTypesConfig != null;
|
||||
if (value2) {
|
||||
value = value.every(function(a0) {
|
||||
return a0 in integrationTypesConfig;
|
||||
});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_35030(a0) { // fn#35030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:8939, offset: 0x010691fa, size: 811 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
var r6;
|
||||
var value2;
|
||||
var userRecord;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['coverImage'] = a0.cover_image;
|
||||
object2['primarySkuId'] = a0.primary_sku_id;
|
||||
const bot = a0.bot;
|
||||
let value = null;
|
||||
if (value != bot) {
|
||||
value2 = environment.__proto__;
|
||||
userRecord = new UserRecord(a0.bot);
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
object2['bot'] = r6;
|
||||
object2['thirdPartySkus'] = a0.third_party_skus;
|
||||
object2['roleConnectionsVerificationUrl'] = a0.role_connections_verification_url;
|
||||
object2['overlayWarn'] = a0.overlay_warn;
|
||||
object2['overlayCompatibilityHook'] = a0.overlay_compatibility_hook;
|
||||
const overlay_methods = a0.overlay_methods;
|
||||
object2['overlayMethods'] = value != overlay_methods ? overlay_methods : (require(4241) /* metro dependency 4241: ApplicationOverlayMethodFlags */).ApplicationOverlayMethodFlags.DEFAULT;
|
||||
object2['hook'] = a0.hook;
|
||||
object2['storeListingSkuId'] = a0.store_listing_sku_id;
|
||||
object2['guildId'] = a0.guild_id;
|
||||
object2['guild'] = a0.guild;
|
||||
object2['publishers'] = value != a0.publishers ? a0.publishers.map(CompanyRecord.createFromServer) : [];
|
||||
object2['developers'] = value != a0.developers ? a0.developers.map(CompanyRecord.createFromServer) : [];
|
||||
object2['eulaId'] = a0.eula_id;
|
||||
object2['slug'] = a0.slug;
|
||||
const value11 = undefined;
|
||||
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
const deserialize = bigFlagUtilsModule.deserialize;
|
||||
const flags_new = a0.flags_new;
|
||||
const r9 = value != flags_new ? flags_new : a0.flags;
|
||||
object2['flags'] = Reflect.apply(deserialize, bigFlagUtilsModule, [value != r9 ? r9 : 0]);
|
||||
object2['maxParticipants'] = a0.max_participants;
|
||||
object2['tags'] = a0.tags;
|
||||
object2['embeddedActivityConfig'] = a0.embedded_activity_config;
|
||||
object2['integrationTypesConfig'] = value != a0.integration_types_config ? global.Object.fromEntries(global.Object.entries(a0.integration_types_config).map(function(a0) {
|
||||
var r0;
|
||||
var r2;
|
||||
var r3;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r1 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r2 = value;
|
||||
r3 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r2 = value;
|
||||
r3 = value3;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r2 = item;
|
||||
r3 = value3;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r0.return();
|
||||
}
|
||||
r2 = r2 ?? ({});
|
||||
return [r1, {oauth2InstallParams: r2.oauth2_install_params}];
|
||||
})) : value11;
|
||||
object2['termsOfServiceUrl'] = a0.terms_of_service_url;
|
||||
object2['privacyPolicyUrl'] = a0.privacy_policy_url;
|
||||
object2['isDiscoverable'] = a0.is_discoverable;
|
||||
object2['directoryEntry'] = a0.directory_entry;
|
||||
object2['categories'] = a0.categories;
|
||||
const linked_games = a0.linked_games;
|
||||
object2['linkedGames'] = value == linked_games ? value11 : linked_games.map(_fun35032);
|
||||
object2['deepLinkUri'] = a0.deeplink_uri;
|
||||
object2['applicationAccountLinkBenefitConfig'] = a0.application_account_link_benefit_config;
|
||||
object2['parentId'] = a0.parent_id;
|
||||
value = Object.create(ApplicationRecord.prototype, {constructor: {value: ApplicationRecord}});
|
||||
const applicationRecord = new ApplicationRecord(object2);
|
||||
return applicationRecord instanceof Object ? applicationRecord : value;
|
||||
}
|
||||
|
||||
function value_35033(a0) { // fn#35033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:10486, offset: 0x01069587, size: 59 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const ApplicationOverlayMethodFlags = (require(4241) /* metro dependency 4241: ApplicationOverlayMethodFlags */).ApplicationOverlayMethodFlags;
|
||||
const OUT_OF_PROCESS = ApplicationOverlayMethodFlags.OUT_OF_PROCESS;
|
||||
return a0 != null && (a0 & OUT_OF_PROCESS) === OUT_OF_PROCESS;
|
||||
}
|
||||
|
||||
function _fun35019(a0) { // fn#35019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:4607, offset: 0x01068bc2, size: 65 bytes, params: 2, frame: 14
|
||||
var r2;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const application = a0.application;
|
||||
let value = undefined;
|
||||
if (application != null) {
|
||||
value = environment.__proto__;
|
||||
value = ApplicationRecord.createFromServer(a0.application);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
object2['application'] = r2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun35021({application}) { // fn#35021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:5165, offset: 0x01068c83, size: 43 bytes, params: 2, frame: 3
|
||||
const type = application?.type;
|
||||
value = environment.__proto__.__proto__;
|
||||
const GAME = ApplicationTypes.GAME;
|
||||
return type === GAME;
|
||||
}
|
||||
|
||||
function _fun35023(a0) { // fn#35023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4406:7951, offset: 0x010690f0, size: 97 bytes, params: 2, frame: 14
|
||||
var r1;
|
||||
var object2;
|
||||
const value = a0;
|
||||
if (value.application != null) {
|
||||
return value;
|
||||
}
|
||||
const value3 = linkedGames.find(_fun35024);
|
||||
if (value3?.application == null) {
|
||||
r1 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value, null);
|
||||
object2['application'] = value3.application;
|
||||
r1 = object2;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/* Metro module 8252; source: records/AppliedGuildBoostRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
|
||||
function _fun65994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8437:6, offset: 0x01be8900, size: 198 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun65998(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/AppliedGuildBoostRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_65995() { // fn#65995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8437:148, offset: 0x01be89c6, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_65995_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun65998(a0) { // fn#65998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8437:347, offset: 0x01be8a28, size: 75 bytes, params: 2, frame: 16
|
||||
const closure = AppliedGuildBoostRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, null, [{key: 'createFromServer', value: value_66000}]);
|
||||
}
|
||||
|
||||
function AppliedGuildBoostRecord(a0) { // fn#65999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8437:359, offset: 0x01be8a73, size: 194 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, AppliedGuildBoostRecord);
|
||||
const value3 = env1_3(AppliedGuildBoostRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_65995() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = a0.id;
|
||||
value.guildId = a0.guildId;
|
||||
const userId = a0.userId;
|
||||
value.userId = userId;
|
||||
const user = a0.user;
|
||||
value.user = user;
|
||||
value.ended = a0.ended;
|
||||
let endsAt = a0.endsAt;
|
||||
const value4 = null;
|
||||
endsAt = value4 != endsAt ? a0.endsAt : value4;
|
||||
value.endsAt = endsAt;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_66000(a0) { // fn#66000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8437:820, offset: 0x01be8b35, size: 178 bytes, params: 2, frame: 15
|
||||
var value;
|
||||
const object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.guildId = a0.guild_id;
|
||||
let user = a0.user;
|
||||
object2.userId = user != null ? a0.user.id : a0.user_id;
|
||||
user = a0.user;
|
||||
object2.user = user;
|
||||
object2.ended = a0.ended;
|
||||
object2.endsAt = value != a0.ends_at ? a0.ends_at === '' ? value : new global.Date(a0.ends_at) : value;
|
||||
value = Object.create(AppliedGuildBoostRecord.prototype, {constructor: {value: AppliedGuildBoostRecord}});
|
||||
const appliedGuildBoostRecord = new AppliedGuildBoostRecord(object2);
|
||||
return appliedGuildBoostRecord instanceof Object ? appliedGuildBoostRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,504 @@
|
||||
/* Metro module 15879; source: records/AuditLogRecord.tsx; dependencies: [15, 17, 18, 7, 6, 1886, 661, 1216, 3738, 21, 2] */
|
||||
function _fun122282(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16087:6, offset: 0x025604d4, size: 304 bytes, params: 8, frame: 21
|
||||
const closure = getTargetType;
|
||||
const closure2 = getActionType;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(6) /* metro dependency 6 */;
|
||||
const record = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = constantsModule.AuditLogTargetTypes;
|
||||
const env0_8 = constantsModule.AuditLogActions;
|
||||
const env0_9 = constantsModule.AuditLogActionTypes;
|
||||
value = value(AuditLogChange);
|
||||
const value4 = _fun122289(record);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/AuditLogRecord.tsx');
|
||||
exports.default = value4;
|
||||
exports.getTargetType = closure;
|
||||
exports.getActionType = closure2;
|
||||
exports.AuditLogChange = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_122283() { // fn#122283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16087:236, offset: 0x02560604, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_122283_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function getTargetType(a0) { // fn#122286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16087:429, offset: 0x02560666, size: 1029 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
const ALL = AuditLogActions.ALL;
|
||||
if (a0 === ALL) {
|
||||
r0 = AuditLogTargetTypes.ALL;
|
||||
} else if (a0 <= AuditLogActions.GUILD_UPDATE) {
|
||||
r0 = AuditLogTargetTypes.GUILD;
|
||||
} else if (a0 <= AuditLogActions.CHANNEL_DELETE) {
|
||||
r0 = AuditLogTargetTypes.CHANNEL;
|
||||
} else if (a0 === AuditLogActions.MESSAGE_BULK_DELETE) {
|
||||
r0 = AuditLogTargetTypes.CHANNEL;
|
||||
} else if (a0 <= AuditLogActions.CHANNEL_OVERWRITE_DELETE) {
|
||||
r0 = AuditLogTargetTypes.CHANNEL_OVERWRITE;
|
||||
} else if (a0 <= AuditLogActions.BOT_ADD) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 === AuditLogActions.MESSAGE_DELETE) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 === AuditLogActions.MESSAGE_PIN) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 === AuditLogActions.MESSAGE_UNPIN) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 <= AuditLogActions.ROLE_DELETE) {
|
||||
r0 = AuditLogTargetTypes.ROLE;
|
||||
} else if (a0 <= AuditLogActions.INVITE_DELETE) {
|
||||
r0 = AuditLogTargetTypes.INVITE;
|
||||
} else if (a0 <= AuditLogActions.WEBHOOK_DELETE) {
|
||||
r0 = AuditLogTargetTypes.WEBHOOK;
|
||||
} else if (a0 <= AuditLogActions.EMOJI_DELETE) {
|
||||
r0 = AuditLogTargetTypes.EMOJI;
|
||||
} else if (a0 <= AuditLogActions.INTEGRATION_DELETE) {
|
||||
r0 = AuditLogTargetTypes.INTEGRATION;
|
||||
} else if (a0 <= AuditLogActions.STAGE_INSTANCE_DELETE) {
|
||||
r0 = AuditLogTargetTypes.STAGE_INSTANCE;
|
||||
} else if (a0 <= AuditLogActions.STICKER_DELETE) {
|
||||
r0 = AuditLogTargetTypes.STICKER;
|
||||
} else if (a0 <= AuditLogActions.GUILD_SCHEDULED_EVENT_DELETE) {
|
||||
r0 = AuditLogTargetTypes.GUILD_SCHEDULED_EVENT;
|
||||
} else if (a0 <= AuditLogActions.THREAD_DELETE) {
|
||||
r0 = AuditLogTargetTypes.THREAD;
|
||||
} else if (a0 === AuditLogActions.APPLICATION_COMMAND_PERMISSION_UPDATE) {
|
||||
r0 = AuditLogTargetTypes.APPLICATION_COMMAND;
|
||||
} else if (a0 <= AuditLogActions.SOUNDBOARD_SOUND_DELETE) {
|
||||
r0 = AuditLogTargetTypes.GUILD_SOUNDBOARD;
|
||||
} else if (a0 < AuditLogActions.AUTO_MODERATION_BLOCK_MESSAGE) {
|
||||
r0 = AuditLogTargetTypes.AUTO_MODERATION_RULE;
|
||||
} else if (a0 === AuditLogActions.AUTO_MODERATION_BLOCK_MESSAGE) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 === AuditLogActions.AUTO_MODERATION_FLAG_TO_CHANNEL) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 === AuditLogActions.AUTO_MODERATION_USER_COMMUNICATION_DISABLED) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 === AuditLogActions.AUTO_MODERATION_QUARANTINE_USER) {
|
||||
r0 = AuditLogTargetTypes.USER;
|
||||
} else if (a0 <= AuditLogActions.CREATOR_MONETIZATION_TERMS_ACCEPTED) {
|
||||
r0 = AuditLogTargetTypes.GUILD;
|
||||
} else if (a0 <= AuditLogActions.ONBOARDING_PROMPT_DELETE) {
|
||||
r0 = AuditLogTargetTypes.ONBOARDING_PROMPT;
|
||||
} else if (a0 <= AuditLogActions.ONBOARDING_UPDATE) {
|
||||
r0 = AuditLogTargetTypes.GUILD_ONBOARDING;
|
||||
} else if (a0 <= AuditLogActions.GUILD_HOME_REMOVE_ITEM) {
|
||||
r0 = AuditLogTargetTypes.GUILD_HOME;
|
||||
} else if (a0 <= AuditLogActions.HARMFUL_LINKS_BLOCKED_MESSAGE) {
|
||||
r0 = AuditLogTargetTypes.GUILD;
|
||||
} else if (a0 <= AuditLogActions.HOME_SETTINGS_UPDATE) {
|
||||
r0 = AuditLogTargetTypes.HOME_SETTINGS;
|
||||
} else if (a0 <= AuditLogActions.VOICE_CHANNEL_STATUS_DELETE) {
|
||||
r0 = AuditLogTargetTypes.VOICE_CHANNEL_STATUS;
|
||||
} else if (a0 <= AuditLogActions.GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE) {
|
||||
r0 = AuditLogTargetTypes.GUILD_SCHEDULED_EVENT_EXCEPTION;
|
||||
} else if (a0 <= AuditLogActions.GUILD_MEMBER_VERIFICATION_UPDATE) {
|
||||
r0 = AuditLogTargetTypes.GUILD_MEMBER_VERIFICATION;
|
||||
} else if (a0 <= AuditLogActions.GUILD_PROFILE_UPDATE) {
|
||||
r0 = AuditLogTargetTypes.GUILD_PROFILE;
|
||||
} else if (a0 <= AuditLogActions.GUILD_MIGRATE_BYPASS_SLOWMODE_PERMISSION) {
|
||||
r0 = AuditLogTargetTypes.GUILD;
|
||||
} else {
|
||||
(importDefault(1216) /* metro dependency 1216: SentryUtilsNative */).captureMessage('Unknown target type for: ' + a0);
|
||||
r0 = AuditLogTargetTypes.UNKNOWN;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getActionType(a0) { // fn#122287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16087:1973, offset: 0x02560a6b, size: 1356 bytes, params: 2, frame: 3
|
||||
const CHANNEL_CREATE = AuditLogActions.CHANNEL_CREATE;
|
||||
if (CHANNEL_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const CHANNEL_OVERWRITE_CREATE = AuditLogActions.CHANNEL_OVERWRITE_CREATE;
|
||||
if (CHANNEL_OVERWRITE_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const MEMBER_BAN_REMOVE = AuditLogActions.MEMBER_BAN_REMOVE;
|
||||
if (MEMBER_BAN_REMOVE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const ROLE_CREATE = AuditLogActions.ROLE_CREATE;
|
||||
if (ROLE_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const INVITE_CREATE = AuditLogActions.INVITE_CREATE;
|
||||
if (INVITE_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const WEBHOOK_CREATE = AuditLogActions.WEBHOOK_CREATE;
|
||||
if (WEBHOOK_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const EMOJI_CREATE = AuditLogActions.EMOJI_CREATE;
|
||||
if (EMOJI_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const STICKER_CREATE = AuditLogActions.STICKER_CREATE;
|
||||
if (STICKER_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const MESSAGE_PIN = AuditLogActions.MESSAGE_PIN;
|
||||
if (MESSAGE_PIN === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const BOT_ADD = AuditLogActions.BOT_ADD;
|
||||
if (BOT_ADD === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const INTEGRATION_CREATE = AuditLogActions.INTEGRATION_CREATE;
|
||||
if (INTEGRATION_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const STAGE_INSTANCE_CREATE = AuditLogActions.STAGE_INSTANCE_CREATE;
|
||||
if (STAGE_INSTANCE_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const GUILD_SCHEDULED_EVENT_CREATE = AuditLogActions.GUILD_SCHEDULED_EVENT_CREATE;
|
||||
if (GUILD_SCHEDULED_EVENT_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const THREAD_CREATE = AuditLogActions.THREAD_CREATE;
|
||||
if (THREAD_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const AUTO_MODERATION_RULE_CREATE = AuditLogActions.AUTO_MODERATION_RULE_CREATE;
|
||||
if (AUTO_MODERATION_RULE_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const CREATOR_MONETIZATION_REQUEST_CREATED = AuditLogActions.CREATOR_MONETIZATION_REQUEST_CREATED;
|
||||
if (CREATOR_MONETIZATION_REQUEST_CREATED === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const ONBOARDING_PROMPT_CREATE = AuditLogActions.ONBOARDING_PROMPT_CREATE;
|
||||
if (ONBOARDING_PROMPT_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const ONBOARDING_CREATE = AuditLogActions.ONBOARDING_CREATE;
|
||||
if (ONBOARDING_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const GUILD_HOME_FEATURE_ITEM = AuditLogActions.GUILD_HOME_FEATURE_ITEM;
|
||||
if (GUILD_HOME_FEATURE_ITEM === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const SOUNDBOARD_SOUND_CREATE = AuditLogActions.SOUNDBOARD_SOUND_CREATE;
|
||||
if (SOUNDBOARD_SOUND_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const HOME_SETTINGS_CREATE = AuditLogActions.HOME_SETTINGS_CREATE;
|
||||
if (HOME_SETTINGS_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const VOICE_CHANNEL_STATUS_CREATE = AuditLogActions.VOICE_CHANNEL_STATUS_CREATE;
|
||||
if (VOICE_CHANNEL_STATUS_CREATE === a0) {
|
||||
return AuditLogActionTypes.CREATE;
|
||||
}
|
||||
const CHANNEL_DELETE = AuditLogActions.CHANNEL_DELETE;
|
||||
if (CHANNEL_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const CHANNEL_OVERWRITE_DELETE = AuditLogActions.CHANNEL_OVERWRITE_DELETE;
|
||||
if (CHANNEL_OVERWRITE_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const MEMBER_KICK = AuditLogActions.MEMBER_KICK;
|
||||
if (MEMBER_KICK === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const MEMBER_PRUNE = AuditLogActions.MEMBER_PRUNE;
|
||||
if (MEMBER_PRUNE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const MEMBER_BAN_ADD = AuditLogActions.MEMBER_BAN_ADD;
|
||||
if (MEMBER_BAN_ADD === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const ROLE_DELETE = AuditLogActions.ROLE_DELETE;
|
||||
if (ROLE_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const INVITE_DELETE = AuditLogActions.INVITE_DELETE;
|
||||
if (INVITE_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const WEBHOOK_DELETE = AuditLogActions.WEBHOOK_DELETE;
|
||||
if (WEBHOOK_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const EMOJI_DELETE = AuditLogActions.EMOJI_DELETE;
|
||||
if (EMOJI_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const STICKER_DELETE = AuditLogActions.STICKER_DELETE;
|
||||
if (STICKER_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const MESSAGE_DELETE = AuditLogActions.MESSAGE_DELETE;
|
||||
if (MESSAGE_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const MESSAGE_BULK_DELETE = AuditLogActions.MESSAGE_BULK_DELETE;
|
||||
if (MESSAGE_BULK_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const MESSAGE_UNPIN = AuditLogActions.MESSAGE_UNPIN;
|
||||
if (MESSAGE_UNPIN === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const INTEGRATION_DELETE = AuditLogActions.INTEGRATION_DELETE;
|
||||
if (INTEGRATION_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const MEMBER_DISCONNECT = AuditLogActions.MEMBER_DISCONNECT;
|
||||
if (MEMBER_DISCONNECT === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const STAGE_INSTANCE_DELETE = AuditLogActions.STAGE_INSTANCE_DELETE;
|
||||
if (STAGE_INSTANCE_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const GUILD_SCHEDULED_EVENT_DELETE = AuditLogActions.GUILD_SCHEDULED_EVENT_DELETE;
|
||||
if (GUILD_SCHEDULED_EVENT_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE = AuditLogActions.GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE;
|
||||
if (GUILD_SCHEDULED_EVENT_EXCEPTION_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const THREAD_DELETE = AuditLogActions.THREAD_DELETE;
|
||||
if (THREAD_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const AUTO_MODERATION_BLOCK_MESSAGE = AuditLogActions.AUTO_MODERATION_BLOCK_MESSAGE;
|
||||
if (AUTO_MODERATION_BLOCK_MESSAGE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const AUTO_MODERATION_RULE_DELETE = AuditLogActions.AUTO_MODERATION_RULE_DELETE;
|
||||
if (AUTO_MODERATION_RULE_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const ONBOARDING_PROMPT_DELETE = AuditLogActions.ONBOARDING_PROMPT_DELETE;
|
||||
if (ONBOARDING_PROMPT_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const GUILD_HOME_REMOVE_ITEM = AuditLogActions.GUILD_HOME_REMOVE_ITEM;
|
||||
if (GUILD_HOME_REMOVE_ITEM === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const SOUNDBOARD_SOUND_DELETE = AuditLogActions.SOUNDBOARD_SOUND_DELETE;
|
||||
if (SOUNDBOARD_SOUND_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const VOICE_CHANNEL_STATUS_DELETE = AuditLogActions.VOICE_CHANNEL_STATUS_DELETE;
|
||||
if (VOICE_CHANNEL_STATUS_DELETE === a0) {
|
||||
return AuditLogActionTypes.DELETE;
|
||||
}
|
||||
const GUILD_UPDATE = AuditLogActions.GUILD_UPDATE;
|
||||
if (GUILD_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const CHANNEL_UPDATE = AuditLogActions.CHANNEL_UPDATE;
|
||||
if (CHANNEL_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const CHANNEL_OVERWRITE_UPDATE = AuditLogActions.CHANNEL_OVERWRITE_UPDATE;
|
||||
if (CHANNEL_OVERWRITE_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const MEMBER_UPDATE = AuditLogActions.MEMBER_UPDATE;
|
||||
if (MEMBER_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const MEMBER_ROLE_UPDATE = AuditLogActions.MEMBER_ROLE_UPDATE;
|
||||
if (MEMBER_ROLE_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const ROLE_UPDATE = AuditLogActions.ROLE_UPDATE;
|
||||
if (ROLE_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const INVITE_UPDATE = AuditLogActions.INVITE_UPDATE;
|
||||
if (INVITE_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const WEBHOOK_UPDATE = AuditLogActions.WEBHOOK_UPDATE;
|
||||
if (WEBHOOK_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const EMOJI_UPDATE = AuditLogActions.EMOJI_UPDATE;
|
||||
if (EMOJI_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const STICKER_UPDATE = AuditLogActions.STICKER_UPDATE;
|
||||
if (STICKER_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const INTEGRATION_UPDATE = AuditLogActions.INTEGRATION_UPDATE;
|
||||
if (INTEGRATION_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const MEMBER_MOVE = AuditLogActions.MEMBER_MOVE;
|
||||
if (MEMBER_MOVE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const STAGE_INSTANCE_UPDATE = AuditLogActions.STAGE_INSTANCE_UPDATE;
|
||||
if (STAGE_INSTANCE_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const GUILD_SCHEDULED_EVENT_UPDATE = AuditLogActions.GUILD_SCHEDULED_EVENT_UPDATE;
|
||||
if (GUILD_SCHEDULED_EVENT_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const GUILD_SCHEDULED_EVENT_EXCEPTION_CREATE = AuditLogActions.GUILD_SCHEDULED_EVENT_EXCEPTION_CREATE;
|
||||
if (GUILD_SCHEDULED_EVENT_EXCEPTION_CREATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE = AuditLogActions.GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE;
|
||||
if (GUILD_SCHEDULED_EVENT_EXCEPTION_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const THREAD_UPDATE = AuditLogActions.THREAD_UPDATE;
|
||||
if (THREAD_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const APPLICATION_COMMAND_PERMISSION_UPDATE = AuditLogActions.APPLICATION_COMMAND_PERMISSION_UPDATE;
|
||||
if (APPLICATION_COMMAND_PERMISSION_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const CREATOR_MONETIZATION_TERMS_ACCEPTED = AuditLogActions.CREATOR_MONETIZATION_TERMS_ACCEPTED;
|
||||
if (CREATOR_MONETIZATION_TERMS_ACCEPTED === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const AUTO_MODERATION_RULE_UPDATE = AuditLogActions.AUTO_MODERATION_RULE_UPDATE;
|
||||
if (AUTO_MODERATION_RULE_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const AUTO_MODERATION_FLAG_TO_CHANNEL = AuditLogActions.AUTO_MODERATION_FLAG_TO_CHANNEL;
|
||||
if (AUTO_MODERATION_FLAG_TO_CHANNEL === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const AUTO_MODERATION_USER_COMMUNICATION_DISABLED = AuditLogActions.AUTO_MODERATION_USER_COMMUNICATION_DISABLED;
|
||||
if (AUTO_MODERATION_USER_COMMUNICATION_DISABLED === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const AUTO_MODERATION_QUARANTINE_USER = AuditLogActions.AUTO_MODERATION_QUARANTINE_USER;
|
||||
if (AUTO_MODERATION_QUARANTINE_USER === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const ONBOARDING_PROMPT_UPDATE = AuditLogActions.ONBOARDING_PROMPT_UPDATE;
|
||||
if (ONBOARDING_PROMPT_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const ONBOARDING_UPDATE = AuditLogActions.ONBOARDING_UPDATE;
|
||||
if (ONBOARDING_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const SOUNDBOARD_SOUND_UPDATE = AuditLogActions.SOUNDBOARD_SOUND_UPDATE;
|
||||
if (SOUNDBOARD_SOUND_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const HOME_SETTINGS_UPDATE = AuditLogActions.HOME_SETTINGS_UPDATE;
|
||||
if (HOME_SETTINGS_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const GUILD_MEMBER_VERIFICATION_UPDATE = AuditLogActions.GUILD_MEMBER_VERIFICATION_UPDATE;
|
||||
if (GUILD_MEMBER_VERIFICATION_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const GUILD_PROFILE_UPDATE = AuditLogActions.GUILD_PROFILE_UPDATE;
|
||||
if (GUILD_PROFILE_UPDATE === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const GUILD_MIGRATE_PIN_PERMISSION = AuditLogActions.GUILD_MIGRATE_PIN_PERMISSION;
|
||||
if (GUILD_MIGRATE_PIN_PERMISSION === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
const GUILD_MIGRATE_BYPASS_SLOWMODE_PERMISSION = AuditLogActions.GUILD_MIGRATE_BYPASS_SLOWMODE_PERMISSION;
|
||||
if (GUILD_MIGRATE_BYPASS_SLOWMODE_PERMISSION === a0) {
|
||||
return AuditLogActionTypes.UPDATE;
|
||||
}
|
||||
return AuditLogActionTypes.ALL;
|
||||
}
|
||||
|
||||
function AuditLogChange(a0, a1, a2) { // fn#122288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16087:4309, offset: 0x02560fb7, size: 51 bytes, params: 4, frame: 13
|
||||
env0_6(this, AuditLogChange);
|
||||
this.key = a0;
|
||||
this.oldValue = a1;
|
||||
this.newValue = a2;
|
||||
}
|
||||
|
||||
function _fun122289(a0) { // fn#122289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16087:4411, offset: 0x02560fea, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = AuditLogRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_5(closure);
|
||||
}
|
||||
|
||||
function AuditLogRecord(a0) { // fn#122290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16087:4423, offset: 0x02561014, size: 370 bytes, params: 2, frame: 21
|
||||
var r4;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
env1_6(this, AuditLogRecord);
|
||||
const value3 = env1_3(AuditLogRecord);
|
||||
const value6 = env1_2(this, _isNativeReflectConstruct_122283() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value6.id = a0.id;
|
||||
value6.action = a0.action;
|
||||
value6.actionType = getActionType(value6.action);
|
||||
value6.targetId = a0.targetId;
|
||||
const timestampStart = a0.timestampStart;
|
||||
const value7 = null;
|
||||
if (value7 != timestampStart) {
|
||||
r4 = timestampStart;
|
||||
} else {
|
||||
defaultImport = importDefault(3738) /* metro dependency 3738 */;
|
||||
defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
r4 = defaultImport(defaultImport2.extractTimestamp(value6.id));
|
||||
}
|
||||
value6.timestampStart = r4;
|
||||
const timestampEnd = a0.timestampEnd;
|
||||
value6.timestampEnd = value7 != timestampEnd ? timestampEnd : value6.timestampStart;
|
||||
const userId = a0.userId;
|
||||
value6.userId = userId;
|
||||
const changes = a0.changes;
|
||||
value6.changes = value7 != changes ? changes : [];
|
||||
value6.targetType = getTargetType(value6.action);
|
||||
const options = a0.options;
|
||||
value6.options = value7 != options ? options : {};
|
||||
const target = a0.target;
|
||||
value6.target = value7 != target ? target : a0.id;
|
||||
const user = a0.user;
|
||||
value6.user = value7 != user ? user : value7;
|
||||
return value6;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,62 @@
|
||||
/* Metro module 4236; source: records/CompanyRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
|
||||
function _fun35034(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4407:6, offset: 0x010695c2, size: 194 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun35038(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/CompanyRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_35035() { // fn#35035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4407:148, offset: 0x01069684, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_35035_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun35038(a0) { // fn#35038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4407:347, offset: 0x010696e2, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = CompanyRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, null, [{key: 'createFromServer', value: value_35040}]);
|
||||
}
|
||||
|
||||
function CompanyRecord({id, name}) { // fn#35039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4407:359, offset: 0x01069729, size: 133 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, CompanyRecord);
|
||||
const value3 = env1_3(CompanyRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_35035() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.name = name;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/* Metro module 5041; source: records/ConnectedAccountRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
|
||||
function _fun43637(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:6, offset: 0x01157b78, size: 194 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun43641(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/ConnectedAccountRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_43638() { // fn#43638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:148, offset: 0x01157c3a, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_43638_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun43641(a0) { // fn#43641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:347, offset: 0x01157c98, size: 68 bytes, params: 2, frame: 15
|
||||
const closure = ConnectedAccountRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'toString', value: function() {
|
||||
return this.name;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function ConnectedAccountRecord({id, type, name, revoked, integrations, visibility, friend_sync, show_activity, verified, access_token, two_way_link, metadata, metadata_visibility}) { // fn#43642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5219:359, offset: 0x01157cdc, size: 318 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, ConnectedAccountRecord);
|
||||
const value3 = env1_3(ConnectedAccountRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_43638() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.type = type;
|
||||
value.name = name;
|
||||
revoked = !!revoked && revoked;
|
||||
value.revoked = revoked;
|
||||
value.integrations = integrations || [];
|
||||
visibility = !visibility ? 0 : visibility;
|
||||
value.visibility = visibility;
|
||||
friend_sync = !!friend_sync && friend_sync;
|
||||
value.friendSync = friend_sync;
|
||||
show_activity = !!show_activity && show_activity;
|
||||
value.showActivity = show_activity;
|
||||
verified = !!verified && verified;
|
||||
value.verified = verified;
|
||||
access_token = !access_token ? null : access_token;
|
||||
value.accessToken = access_token;
|
||||
two_way_link = !!two_way_link && two_way_link;
|
||||
value.twoWayLink = two_way_link;
|
||||
metadata = !metadata ? null : metadata;
|
||||
value.metadata = metadata;
|
||||
metadata_visibility = !metadata_visibility ? 0 : metadata_visibility;
|
||||
value.metadataVisibility = metadata_visibility;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 15905; source: records/EmojiRecord.tsx; dependencies: [7, 6, 15, 17, 18, 1886, 1885, 2] */
|
||||
function _fun122727(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16113:6, offset: 0x025723dd, size: 214 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_1 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
value = _fun122731(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/EmojiRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_122728() { // fn#122728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16113:168, offset: 0x025724b3, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_122728_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun122731(a0) { // fn#122731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16113:367, offset: 0x02572515, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = EmojiRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_0(closure);
|
||||
}
|
||||
|
||||
function EmojiRecord({id, name, managed, roles, requiredColons, user, animated, available}) { // fn#122732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16113:379, offset: 0x0257253f, size: 228 bytes, params: 2, frame: 21
|
||||
const value = environment.__proto__;
|
||||
env1_1(this, EmojiRecord);
|
||||
const value3 = env1_3(EmojiRecord);
|
||||
const value6 = env1_2(this, _isNativeReflectConstruct_122728() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value6.id = id;
|
||||
value6.name = name;
|
||||
value6.managed = managed;
|
||||
value6.roles = roles;
|
||||
value6.requiredColons = requiredColons;
|
||||
const userRecord = new UserRecord(user);
|
||||
value6.user = userRecord;
|
||||
value6.animated = animated;
|
||||
value6.available = available;
|
||||
return value6;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,432 @@
|
||||
/* Metro module 4272; source: records/EntitlementRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 4273, 1885, 661, 3802, 4277, 2] */
|
||||
function _fun36216(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4444:6, offset: 0x010854fa, size: 260 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const skuRecord = importDefault(4273) /* metro dependency 4273: SKURecord */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).EntitlementTypes;
|
||||
value = _fun36220(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/EntitlementRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_36217() { // fn#36217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4444:205, offset: 0x010855fe, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_36217_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun36220(a0) { // fn#36220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4444:404, offset: 0x0108565c, size: 144 bytes, params: 2, frame: 17
|
||||
const closure = EntitlementRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'isGiftable', get: get_36222}, {key: 'isValid', value: value_36223},
|
||||
{key: 'isFulfilled', value: function() {
|
||||
return this.fulfillmentStatus === require(dependencyMap[10]).EntitlementTenantFulfillmentStatus.FULFILLED;
|
||||
}}], [{key: 'createFromServer', value: value_36225}]);
|
||||
}
|
||||
|
||||
function EntitlementRecord({id, skuId, applicationId, user, userId, gifterId, type, branches, startsAt, endsAt, subscriptionId, subscriptionPlanId, parentId, consumed, giftCodeBatchId, giftStyle, guildId, deleted, sourceType, fulfillmentStatus}) { // fn#36221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4444:416, offset: 0x010856ec, size: 344 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, EntitlementRecord);
|
||||
const value3 = env1_6(EntitlementRecord);
|
||||
value = env1_5(this, _isNativeReflectConstruct_36217() ? global.Reflect.construct(value3, [],
|
||||
env1_6(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.skuId = skuId;
|
||||
value.applicationId = applicationId;
|
||||
value.user = user;
|
||||
value.userId = userId;
|
||||
value.gifterId = gifterId;
|
||||
value.type = type;
|
||||
value.branches = branches;
|
||||
value.startsAt = startsAt;
|
||||
value.endsAt = endsAt;
|
||||
value.subscriptionId = subscriptionId;
|
||||
value.subscriptionPlanId = subscriptionPlanId;
|
||||
value.parentId = parentId;
|
||||
value.consumed = consumed;
|
||||
value.giftCodeBatchId = giftCodeBatchId;
|
||||
value.giftStyle = giftStyle;
|
||||
value.guildId = guildId;
|
||||
value.deleted = deleted;
|
||||
value.sourceType = sourceType;
|
||||
value.fulfillmentStatus = fulfillmentStatus;
|
||||
return value;
|
||||
}
|
||||
|
||||
function get_36222() { // fn#36222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4444:1192, offset: 0x01085844, size: 42 bytes, params: 1, frame: 3
|
||||
const type = this.type;
|
||||
const value = environment.__proto__;
|
||||
const USER_GIFT = EntitlementTypes.USER_GIFT;
|
||||
return type === USER_GIFT && this.gifterId == null;
|
||||
}
|
||||
|
||||
function value_36223(a0, a1) { // fn#36223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4444:1278, offset: 0x0108586e, size: 283 bytes, params: 3, frame: 15
|
||||
var date;
|
||||
var startsAt;
|
||||
var endsAt;
|
||||
var branches;
|
||||
let value = a2;
|
||||
const r1 = value !== undefined ? value : null;
|
||||
if (!this.isGiftable) {
|
||||
if (this.deleted) {
|
||||
return false;
|
||||
}
|
||||
var type = this.type;
|
||||
value = environment.__proto__;
|
||||
var PREMIUM_SUBSCRIPTION = EntitlementTypes.PREMIUM_SUBSCRIPTION;
|
||||
if (type !== PREMIUM_SUBSCRIPTION) {
|
||||
date = new global.Date();
|
||||
startsAt = this.startsAt;
|
||||
if (startsAt == null) {
|
||||
endsAt = this.endsAt;
|
||||
if (endsAt == null) {
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (date >= endsAt) {
|
||||
return false;
|
||||
}
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
startsAt = this.startsAt;
|
||||
if (date < startsAt) {
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (endsAt == null) {
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (date >= endsAt) {
|
||||
return false;
|
||||
}
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var value2 = a1.get(this.skuId);
|
||||
if (value2 == null) {
|
||||
value = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
if (value.canInstallPremiumApplications(a0)) {
|
||||
date = new global.Date();
|
||||
startsAt = this.startsAt;
|
||||
if (startsAt == null) {
|
||||
endsAt = this.endsAt;
|
||||
if (endsAt == null) {
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (date >= endsAt) {
|
||||
return false;
|
||||
}
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
startsAt = this.startsAt;
|
||||
if (date < startsAt) {
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (endsAt == null) {
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (date >= endsAt) {
|
||||
return false;
|
||||
}
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (value2.premium) {
|
||||
value = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
if (value.canInstallPremiumApplications(a0)) {
|
||||
date = new global.Date();
|
||||
startsAt = this.startsAt;
|
||||
if (startsAt == null) {
|
||||
endsAt = this.endsAt;
|
||||
if (endsAt == null) {
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (date >= endsAt) {
|
||||
return false;
|
||||
}
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
startsAt = this.startsAt;
|
||||
if (date < startsAt) {
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (endsAt == null) {
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
endsAt = this.endsAt;
|
||||
if (date >= endsAt) {
|
||||
return false;
|
||||
}
|
||||
if (r1 == null) {
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.length === 0) {
|
||||
if (this.applicationId !== r1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
branches = this.branches;
|
||||
if (branches.includes(r1)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_36225(a0) { // fn#36225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4444:1886, offset: 0x010859bd, size: 519 bytes, params: 2, frame: 16
|
||||
var r4;
|
||||
var value2;
|
||||
var userRecord;
|
||||
var date;
|
||||
const object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.skuId = a0.sku_id;
|
||||
object2.applicationId = a0.application_id;
|
||||
const user = a0.user;
|
||||
let value = null;
|
||||
if (value != user) {
|
||||
value2 = environment.__proto__;
|
||||
userRecord = new UserRecord(a0.user);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object2.user = r4;
|
||||
const user_id = a0.user_id;
|
||||
object2.userId = user_id;
|
||||
object2.gifterId = a0.gifter_user_id;
|
||||
object2.type = a0.type;
|
||||
const branches = a0.branches;
|
||||
object2.branches = value != branches ? branches : [];
|
||||
if (value != a0.starts_at) {
|
||||
date = new global.Date(a0.starts_at);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object2.startsAt = r4;
|
||||
if (value != a0.ends_at) {
|
||||
date = new global.Date(a0.ends_at);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object2.endsAt = r4;
|
||||
object2.subscriptionId = a0.subscription_id;
|
||||
object2.subscriptionPlanId = value != a0.subscription_plan ? a0.subscription_plan.id : value;
|
||||
let parent_id = a0.parent_id;
|
||||
parent_id = value != parent_id ? a0.parent_id : value;
|
||||
object2.parentId = parent_id;
|
||||
let consumed = a0.consumed;
|
||||
consumed = value != consumed ? a0.consumed : value;
|
||||
object2.consumed = consumed;
|
||||
const gift_code_batch_id = a0.gift_code_batch_id;
|
||||
object2.giftCodeBatchId = value != gift_code_batch_id ? gift_code_batch_id : value;
|
||||
object2.giftStyle = a0.gift_style;
|
||||
object2.guildId = a0.guild_id;
|
||||
object2.deleted = a0.deleted;
|
||||
object2.sku = value != a0.sku ? SKURecord.createFromServer(a0.sku) : value;
|
||||
const source_type = a0.source_type;
|
||||
object2.sourceType = value != source_type ? source_type : value;
|
||||
const fulfillment_status = a0.fulfillment_status;
|
||||
object2.fulfillmentStatus = value != fulfillment_status ? fulfillment_status : value;
|
||||
value = Object.create(EntitlementRecord.prototype, {constructor: {value: EntitlementRecord}});
|
||||
const entitlementRecord = new EntitlementRecord(object2);
|
||||
return entitlementRecord instanceof Object ? entitlementRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
/* Metro module 7671; source: records/GiftCodeRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 7262, 3803, 1880, 3738, 1391, 2] */
|
||||
function _fun61286(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:6, offset: 0x01b3a52b, size: 303 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const promotionRecord = importDefault(7262) /* metro dependency 7262: PromotionRecord */;
|
||||
const subscriptionPlanRecord = importDefault(3803) /* metro dependency 3803: SubscriptionPlanRecord */;
|
||||
const env0_10 = (require(1880) /* metro dependency 1880: PremiumConstants */).PremiumSubscriptionSKUToPremiumType;
|
||||
Object = global.Object;
|
||||
const value2 = Object.freeze({'PAYMENT_SOURCE_REQUIRED': 1, 'EXISTING_PREMIUM_SUBSCRIPTION_DISALLOWED': 2,
|
||||
'NOT_SELF_REDEEMABLE': 4});
|
||||
value = _fun61290(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/GiftCodeRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.GiftCodeFlags = value2;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_61287() { // fn#61287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:224, offset: 0x01b3a65a, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_61287_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun61290(a0) { // fn#61290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:533, offset: 0x01b3a6b8, size: 311 bytes, params: 2, frame: 17
|
||||
const closure = GiftCodeRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'isExpired', value: value_61292}, {key: 'hasMultipleCopies', get: function() {
|
||||
return this.maxUses > 1;
|
||||
}}, {key: 'isClaimed', get: function() {
|
||||
var uses = this.uses;
|
||||
return uses >= this.maxUses;
|
||||
}}, {key: 'remainingUses', get: function() {
|
||||
return this.maxUses - this.uses;
|
||||
}}, {key: 'isSubscription', get: function() {
|
||||
return this.subscriptionPlanId != null;
|
||||
}}, {key: 'premiumSubscriptionType', get: function() {
|
||||
var value = null;
|
||||
return this.isSubscription && value != PremiumSubscriptionSKUToPremiumType[this.skuId] ? PremiumSubscriptionSKUToPremiumType[this.skuId] : value;
|
||||
}}, {key: 'isSelfRedeemable', get: get_61298}, {key: 'isExistingPremiumSubscriptionDisallowed', get: get_61299},
|
||||
{key: 'analyticsData', get: function() {
|
||||
return {gift_code: this.code, gift_code_max_uses: this.maxUses};
|
||||
}}, {key: 'toString', value: function() {
|
||||
return this.code;
|
||||
}}], [{key: 'createFromServer', value: value_61302}]);
|
||||
}
|
||||
|
||||
function GiftCodeRecord({userId, code, skuId, applicationId, uses, maxUses, expiresAt, redeemed, storeListingId, subscriptionPlanId, subscriptionPlan, revoked, entitlementBranches, flags, subscriptionTrial, promotion, giftStyle}) { // fn#61291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:545, offset: 0x01b3a7ef, size: 310 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, GiftCodeRecord);
|
||||
const value3 = env1_6(GiftCodeRecord);
|
||||
value = env1_5(this, _isNativeReflectConstruct_61287() ? global.Reflect.construct(value3, [],
|
||||
env1_6(this).constructor) : value3.apply(this, undefined));
|
||||
value.userId = userId;
|
||||
value.code = code;
|
||||
value.skuId = skuId;
|
||||
value.applicationId = applicationId;
|
||||
value.uses = uses;
|
||||
value.maxUses = maxUses;
|
||||
value.expiresAt = expiresAt;
|
||||
value.redeemed = redeemed;
|
||||
value.storeListingId = storeListingId;
|
||||
value.subscriptionPlanId = subscriptionPlanId;
|
||||
value.subscriptionPlan = subscriptionPlan;
|
||||
value.revoked = revoked;
|
||||
value.entitlementBranches = entitlementBranches;
|
||||
value.flags = flags;
|
||||
value.subscriptionTrial = subscriptionTrial;
|
||||
value.promotion = promotion;
|
||||
value.giftStyle = giftStyle;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_61292() { // fn#61292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:1275, offset: 0x01b3a925, size: 60 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
const expiresAt = this.expiresAt;
|
||||
let value = expiresAt != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = (importDefault(3738) /* metro dependency 3738 */)();
|
||||
value = value.isAfter(expiresAt);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function get_61298() { // fn#61298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:1760, offset: 0x01b3a9dc, size: 60 bytes, params: 1, frame: 13
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const hasFlag = flagUtilsModule.hasFlag;
|
||||
const flags = this.flags;
|
||||
const NOT_SELF_REDEEMABLE = env1_11.NOT_SELF_REDEEMABLE;
|
||||
return !Reflect.apply(hasFlag, flagUtilsModule, [flags, NOT_SELF_REDEEMABLE]);
|
||||
}
|
||||
|
||||
function get_61299() { // fn#61299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:1882, offset: 0x01b3aa18, size: 57 bytes, params: 1, frame: 13
|
||||
const flagUtilsModule = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
const hasFlag = flagUtilsModule.hasFlag;
|
||||
const flags = this.flags;
|
||||
const EXISTING_PREMIUM_SUBSCRIPTION_DISALLOWED = env1_11.EXISTING_PREMIUM_SUBSCRIPTION_DISALLOWED;
|
||||
return Reflect.apply(hasFlag, flagUtilsModule, [flags, EXISTING_PREMIUM_SUBSCRIPTION_DISALLOWED]);
|
||||
}
|
||||
|
||||
function value_61302(a0) { // fn#61302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7849:2156, offset: 0x01b3aa77, size: 495 bytes, params: 2, frame: 16
|
||||
var r4;
|
||||
var r1;
|
||||
var object3;
|
||||
const object4 = {};
|
||||
const user = a0.user;
|
||||
let value = null;
|
||||
object4.userId = value != user ? a0.user.id : value;
|
||||
object4.code = a0.code;
|
||||
object4.skuId = a0.sku_id;
|
||||
object4.applicationId = a0.application_id;
|
||||
const uses = a0.uses;
|
||||
object4.uses = uses;
|
||||
object4.maxUses = a0.max_uses;
|
||||
object4.storeListingId = value != a0.store_listing ? a0.store_listing.id : value;
|
||||
object4.expiresAt = value != a0.expires_at ? (importDefault(3738) /* metro dependency 3738 */)(a0.expires_at) : value;
|
||||
object4.redeemed = a0.redeemed;
|
||||
object4.subscriptionPlanId = value != a0.subscription_plan ? a0.subscription_plan.id : a0.subscription_plan_id;
|
||||
object4.subscriptionPlan = value != a0.subscription_plan ? SubscriptionPlanRecord.createFromServer(a0.subscription_plan) : value;
|
||||
object4.revoked = false;
|
||||
let entitlement_branches = a0.entitlement_branches;
|
||||
entitlement_branches = value != entitlement_branches ? a0.entitlement_branches : value;
|
||||
object4.entitlementBranches = entitlement_branches;
|
||||
let flags = a0.flags;
|
||||
flags = value != flags ? a0.flags : 0;
|
||||
object4.flags = flags;
|
||||
object4.giftStyle = a0.gift_style;
|
||||
let subscription_trial = a0.subscription_trial;
|
||||
if (value != subscription_trial) {
|
||||
object3 = {};
|
||||
subscription_trial = a0.subscription_trial;
|
||||
object3.id = subscription_trial.id;
|
||||
subscription_trial = a0.subscription_trial;
|
||||
object3.interval = subscription_trial.interval;
|
||||
subscription_trial = a0.subscription_trial;
|
||||
object3.intervalCount = subscription_trial.interval_count;
|
||||
subscription_trial = a0.subscription_trial;
|
||||
object3.skuId = subscription_trial.sku_id;
|
||||
r4 = object3;
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object4.subscriptionTrial = r4;
|
||||
if (value != a0.promotion) {
|
||||
value = environment.__proto__;
|
||||
value = PromotionRecord.createFromServer(a0.promotion);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
object4.promotion = r1;
|
||||
value = Object.create(GiftCodeRecord.prototype, {constructor: {value: GiftCodeRecord}});
|
||||
const giftCodeRecord = new GiftCodeRecord(object4);
|
||||
return giftCodeRecord instanceof Object ? giftCodeRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Metro module 8253; source: records/GuildBoostSlotRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
|
||||
function _fun66001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8438:6, offset: 0x01be8be7, size: 198 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun66005(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/GuildBoostSlotRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_66002() { // fn#66002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8438:148, offset: 0x01be8cad, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_66002_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun66005(a0) { // fn#66005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8438:347, offset: 0x01be8d0f, size: 127 bytes, params: 2, frame: 17
|
||||
const closure = GuildBoostSlotRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'isOnCooldown', value: function() {
|
||||
var r0;
|
||||
var Date;
|
||||
var cooldownEndsAt;
|
||||
var value2;
|
||||
var value = this.cooldownEndsAt != null;
|
||||
if (value) {
|
||||
Date = global.Date;
|
||||
cooldownEndsAt = this.cooldownEndsAt;
|
||||
value2 = new Date();
|
||||
value2 = value2.getTime();
|
||||
Date = global.Date;
|
||||
value2 = value2 >= Date.now();
|
||||
r0 = value2;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}}, {key: 'isAvailable', value: function() {
|
||||
return this.premiumGuildSubscription == null && !this.isOnCooldown();
|
||||
}}], [{key: 'createFromServer', value: value_66009}]);
|
||||
}
|
||||
|
||||
function GuildBoostSlotRecord({id, subscriptionId, premiumGuildSubscription, canceled, cooldownEndsAt, subscription}) { // fn#66006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8438:359, offset: 0x01be8d8e, size: 182 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, GuildBoostSlotRecord);
|
||||
const value3 = env1_3(GuildBoostSlotRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_66002() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.subscriptionId = subscriptionId;
|
||||
value.premiumGuildSubscription = premiumGuildSubscription;
|
||||
value.canceled = canceled;
|
||||
value.cooldownEndsAt = cooldownEndsAt;
|
||||
value.subscription = subscription;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_66009(a0, a1) { // fn#66009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8438:1098, offset: 0x01be8eb8, size: 144 bytes, params: 3, frame: 14
|
||||
var r3;
|
||||
var object3;
|
||||
const object4 = {};
|
||||
object4.id = a0.id;
|
||||
object4.subscriptionId = a0.subscription_id;
|
||||
let premium_guild_subscription = a0.premium_guild_subscription;
|
||||
let value = null;
|
||||
if (value != premium_guild_subscription) {
|
||||
object3 = {};
|
||||
premium_guild_subscription = a0.premium_guild_subscription;
|
||||
object3.id = premium_guild_subscription.id;
|
||||
premium_guild_subscription = a0.premium_guild_subscription;
|
||||
object3.guildId = premium_guild_subscription.guild_id;
|
||||
r3 = object3;
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
object4.premiumGuildSubscription = r3;
|
||||
object4.canceled = a0.canceled;
|
||||
object4.cooldownEndsAt = a0.cooldown_ends_at;
|
||||
object4.subscription = a1;
|
||||
value = Object.create(GuildBoostSlotRecord.prototype, {constructor: {value: GuildBoostSlotRecord}});
|
||||
const guildBoostSlotRecord = new GuildBoostSlotRecord(object4);
|
||||
return guildBoostSlotRecord instanceof Object ? guildBoostSlotRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,167 @@
|
||||
/* Metro module 1422; source: records/GuildRecord.tsx; dependencies: [1419, 661, 1423, 1861, 21, 1865, 2] */
|
||||
function _fun16591(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:6, offset: 0x00e54685, size: 660 bytes, params: 8, frame: 28
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = function(a0, a1) {
|
||||
var value = a1;
|
||||
return a0.ownerId === (typeof value === 'string' ? value : value != null ? value.id : null);
|
||||
};
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1419) /* metro dependency 1419: PlainRecord */;
|
||||
let set = value.set;
|
||||
value.TypeTag;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const BoostedGuildTiers = value.BoostedGuildTiers;
|
||||
const GuildExplicitContentFilterTypes = value.GuildExplicitContentFilterTypes;
|
||||
const GuildNSFWContentLevel = value.GuildNSFWContentLevel;
|
||||
const MFALevels = value.MFALevels;
|
||||
const UserNotificationSettings = value.UserNotificationSettings;
|
||||
const VerificationLevels = value.VerificationLevels;
|
||||
let Set = global.Set;
|
||||
const EXPLICIT = GuildNSFWContentLevel.EXPLICIT;
|
||||
const AGE_RESTRICTED = GuildNSFWContentLevel.AGE_RESTRICTED;
|
||||
set = new Set([EXPLICIT, AGE_RESTRICTED]);
|
||||
Object = global.Object;
|
||||
const freeze = Object.freeze;
|
||||
object2 = {'mfaLevel': null, 'preferredLocale': 'en-US', 'afkTimeout': 0};
|
||||
let NONE = MFALevels.NONE;
|
||||
object2.mfaLevel = NONE;
|
||||
const ALL_MESSAGES = UserNotificationSettings.ALL_MESSAGES;
|
||||
object2.defaultMessageNotifications = ALL_MESSAGES;
|
||||
NONE = VerificationLevels.NONE;
|
||||
object2.verificationLevel = NONE;
|
||||
const DISABLED = GuildExplicitContentFilterTypes.DISABLED;
|
||||
object2.explicitContentFilter = DISABLED;
|
||||
object2.premiumProgressBarEnabled = false;
|
||||
object2.premiumProgressBarEnabledUserUpdatedAt = null;
|
||||
object2.systemChannelFlags = 0;
|
||||
object2.maxStageVideoChannelUsers = -1;
|
||||
object2.maxVideoChannelUsers = -1;
|
||||
object2.maxMembers = -1;
|
||||
NONE = BoostedGuildTiers.NONE;
|
||||
object2.premiumTier = NONE;
|
||||
const DEFAULT = GuildNSFWContentLevel.DEFAULT;
|
||||
object2.nsfwLevel = DEFAULT;
|
||||
object2.premiumSubscriberCount = 0;
|
||||
Set = global.Set;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
object2.features = set instanceof Object ? set : value2;
|
||||
object2.description = null;
|
||||
object2.icon = null;
|
||||
object2.ownerId = null;
|
||||
object2.systemChannelId = null;
|
||||
object2.joinedAt = null;
|
||||
object2.discoverySplash = null;
|
||||
object2.splash = null;
|
||||
object2.banner = null;
|
||||
object2.homeHeader = null;
|
||||
object2.afkChannelId = null;
|
||||
object2.application_id = null;
|
||||
object2.vanityURLCode = null;
|
||||
object2.rulesChannelId = null;
|
||||
object2.safetyAlertsChannelId = null;
|
||||
object2.publicUpdatesChannelId = null;
|
||||
object2.ownerConfiguredContentLevel = null;
|
||||
object2.hubType = null;
|
||||
object2.latestOnboardingQuestionId = null;
|
||||
object2.profile = null;
|
||||
object2.guildTheme = null;
|
||||
object2.premiumFeatures = null;
|
||||
object2.moderatorReporting = null;
|
||||
object2.verificationRoleId = null;
|
||||
object2.gameApplicationIds = null;
|
||||
object2.officialMessageColor = null;
|
||||
const value4 = Reflect.apply(freeze, Object, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/GuildRecord.tsx');
|
||||
exports.GuildRecordTypeTag = 'Guild';
|
||||
exports.RESTRICTED_CONTENT_LEVELS = set;
|
||||
exports.GUILD_DEFAULT_PROPERTY_VALUES = value4;
|
||||
exports.getGuildIconURL = getGuildIconURL;
|
||||
exports.getGuildIconSource = getGuildIconSource;
|
||||
exports.getGuildAcronym = getGuildAcronym;
|
||||
exports.isGuildOwner = closure;
|
||||
exports.isGuildOwnerWithRequiredMfaLevel = isGuildOwnerWithRequiredMfaLevel;
|
||||
exports.isGuildLurker = function(a0) {
|
||||
return a0.joinedAt == null;
|
||||
};
|
||||
exports.getGuildEveryoneRoleId = getGuildEveryoneRoleId;
|
||||
exports.updateJoinedAt = function(a0, a1) {
|
||||
var r3;
|
||||
var value = a1;
|
||||
var setBinding = set;
|
||||
if (typeof value !== 'string') {
|
||||
r3 = value;
|
||||
} else {
|
||||
value = new global.Date(value);
|
||||
r3 = value;
|
||||
}
|
||||
return setBinding(a0, 'joinedAt', r3);
|
||||
};
|
||||
exports.updateGameApplications = function(a0, a1) {
|
||||
return set(a0, 'gameApplicationIds', a1);
|
||||
};
|
||||
exports.isGuildNSFW = isGuildNSFW;
|
||||
}
|
||||
|
||||
function getGuildIconURL({id, icon}, a1) { // fn#16593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:1497, offset: 0x00e5494a, size: 96 bytes, params: 3, frame: 15
|
||||
const value = a2;
|
||||
const value2 = a3;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: id, size: a1, icon: icon,
|
||||
canAnimate: value !== undefined ? value : false, lossless: value2 !== undefined ? value2 : false});
|
||||
}
|
||||
|
||||
function getGuildIconSource(a0, a1) { // fn#16594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:1644, offset: 0x00e549aa, size: 69 bytes, params: 3, frame: 15
|
||||
const value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getAnimatableSourceWithFallback(value !== undefined ? value : false,
|
||||
_fun16595);
|
||||
}
|
||||
|
||||
function getGuildAcronym({name}) { // fn#16596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:1826, offset: 0x00e54a40, size: 46 bytes, params: 2, frame: 11
|
||||
return (require(1861) /* metro dependency 1861: StringUtils */).getAcronym(name);
|
||||
}
|
||||
|
||||
function isGuildOwnerWithRequiredMfaLevel(a0, a1) { // fn#16597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:1952, offset: 0x00e54a6e, size: 64 bytes, params: 3, frame: 14
|
||||
return !(!a1.mfaEnabled && a0.mfaLevel === MFALevels.ELEVATED) && isGuildOwner(a0, a1);
|
||||
}
|
||||
|
||||
function getGuildEveryoneRoleId({id}) { // fn#16599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:2159, offset: 0x00e54abf, size: 46 bytes, params: 2, frame: 11
|
||||
return (importDefault(21) /* metro dependency 21: SnowflakeUtils */).castGuildIdAsEveryoneGuildRoleId(id);
|
||||
}
|
||||
|
||||
function isGuildNSFW(a0) { // fn#16602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:2464, offset: 0x00e54b52, size: 109 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var r0;
|
||||
var isServerNSFWLevelEnabled2;
|
||||
var binding;
|
||||
var has;
|
||||
const value = a0 != null;
|
||||
if (value) {
|
||||
isServerNSFWLevelEnabled2 = (require(1865) /* metro dependency 1865: ServerNSFWLevelExperiment */).isServerNSFWLevelEnabled('guild_record');
|
||||
binding = env0_6;
|
||||
has = binding.has;
|
||||
if (isServerNSFWLevelEnabled2) {
|
||||
r1 = Reflect.apply(has, binding, [a0.nsfwLevel]);
|
||||
} else {
|
||||
r1 = a0.ownerConfiguredContentLevel ?? GuildNSFWContentLevel.DEFAULT;
|
||||
r1 = Reflect.apply(has, binding, [r1]);
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun16595(a0) { // fn#16595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1549:1732, offset: 0x00e549ef, size: 81 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getGuildIconSource = value.getGuildIconSource;
|
||||
const binding = env0_0;
|
||||
return Reflect.apply(getGuildIconSource, value, [{id: binding.id, size: require, icon: binding.icon,
|
||||
canAnimate: a0}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 1939; source: records/GuildRoleRecord.tsx; dependencies: [1419, 483, 2] */
|
||||
function _fun21551(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2066:6, offset: 0x00ef3673, size: 145 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(1419) /* metro dependency 1419: PlainRecord */).TypeTag;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/GuildRoleRecord.tsx');
|
||||
exports.GuildRoleRecordTypeTag = 'GuildRole';
|
||||
exports.isEveryoneRole = function(a0) {
|
||||
return a0.id === a0.guildId;
|
||||
};
|
||||
exports.hasPermission = hasPermission;
|
||||
exports.hasAnyPermission = hasAnyPermission;
|
||||
}
|
||||
|
||||
function hasPermission({permissions}, a1) { // fn#21553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2066:291, offset: 0x00ef3717, size: 50 bytes, params: 3, frame: 13
|
||||
return (require(483) /* metro dependency 483: BigFlagUtils */).has(permissions, a1);
|
||||
}
|
||||
|
||||
function hasAnyPermission({permissions}, a1) { // fn#21554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2066:375, offset: 0x00ef3749, size: 51 bytes, params: 3, frame: 13
|
||||
return (require(483) /* metro dependency 483: BigFlagUtils */).hasAny(permissions, a1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 4626; source: records/InteractionRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 1885, 2] */
|
||||
function _fun39793(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#39793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:6, offset: 0x010eafd1, size: 210 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
value = _fun39797(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/InteractionRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_39794() { // fn#39794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:168, offset: 0x010eb0a3, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_39794_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun39797(a0) { // fn#39797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:367, offset: 0x010eb101, size: 71 bytes, params: 2, frame: 16
|
||||
const closure = InteractionRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, null, [{key: 'createFromServer', value: value_39799}]);
|
||||
}
|
||||
|
||||
function InteractionRecord(a0) { // fn#39798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:379, offset: 0x010eb148, size: 178 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, InteractionRecord);
|
||||
const value3 = env1_3(InteractionRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_39794() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = a0.id;
|
||||
value.name = a0.name;
|
||||
value.type = a0.type;
|
||||
const user = a0.user;
|
||||
value.user = user;
|
||||
value.displayName = a0.name_localized ?? a0.name;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_39799(a0) { // fn#39799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4804:798, offset: 0x010eb1fa, size: 88 bytes, params: 2, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const value = environment.__proto__;
|
||||
const user = a0.user;
|
||||
let userRecord = new UserRecord(user);
|
||||
object2['user'] = userRecord;
|
||||
userRecord = Object.create(InteractionRecord.prototype, {constructor: {value: InteractionRecord}});
|
||||
const interactionRecord = new InteractionRecord(object2);
|
||||
return interactionRecord instanceof Object ? interactionRecord : userRecord;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
/* Metro module 8150; source: records/InviteRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 3738, 2] */
|
||||
function _fun65348(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:6, offset: 0x01bccb38, size: 202 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun65352(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/InviteRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_65349() { // fn#65349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:148, offset: 0x01bccc02, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_65349_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun65352(a0) { // fn#65352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:347, offset: 0x01bccc60, size: 142 bytes, params: 2, frame: 17
|
||||
const closure = InviteRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'isExpired', value: value_65354}, {key: 'getExpiresAt', value: value_65355},
|
||||
{key: 'toString', value: function() {
|
||||
return this.code;
|
||||
}}], [{key: 'createFromServer', value: value_65357}]);
|
||||
}
|
||||
|
||||
function InviteRecord({code, temporary, revoked, uses, maxUses, maxAge, createdAt, channel, guild, inviter, targetType, targetUser, targetApplication, type, flags, roles}) { // fn#65353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:359, offset: 0x01bcccee, size: 398 bytes, params: 2, frame: 20
|
||||
var r2;
|
||||
var date;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, InviteRecord);
|
||||
const value3 = env1_5(InviteRecord);
|
||||
value = env1_4(this, _isNativeReflectConstruct_65349() ? global.Reflect.construct(value3, [],
|
||||
env1_5(this).constructor) : value3.apply(this, undefined));
|
||||
code = !code ? '' : code;
|
||||
value.code = code;
|
||||
temporary = !!temporary && temporary;
|
||||
value.temporary = temporary;
|
||||
revoked = !!revoked && revoked;
|
||||
value.revoked = revoked;
|
||||
uses = !uses ? 0 : uses;
|
||||
value.uses = uses;
|
||||
maxUses = !maxUses ? 0 : maxUses;
|
||||
value.maxUses = maxUses;
|
||||
maxAge = !maxAge ? 0 : maxAge;
|
||||
value.maxAge = maxAge;
|
||||
if (createdAt) {
|
||||
r2 = createdAt;
|
||||
} else {
|
||||
date = new global.Date();
|
||||
}
|
||||
value.createdAt = r2;
|
||||
value.channel = channel;
|
||||
value.guild = guild;
|
||||
inviter = !inviter ? null : inviter;
|
||||
value.inviter = inviter;
|
||||
targetType = !targetType ? null : targetType;
|
||||
value.targetType = targetType;
|
||||
targetUser = !targetUser ? null : targetUser;
|
||||
value.targetUser = targetUser;
|
||||
targetApplication = !targetApplication ? null : targetApplication;
|
||||
value.targetApplication = targetApplication;
|
||||
type = !type ? null : type;
|
||||
value.type = type;
|
||||
flags = !flags ? 0 : flags;
|
||||
value.flags = flags;
|
||||
value.roles = roles || [];
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_65354() { // fn#65354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:1033, offset: 0x01bcce7c, size: 105 bytes, params: 1, frame: 14
|
||||
var value;
|
||||
var isBefore;
|
||||
var Date;
|
||||
const maxAge = this.maxAge;
|
||||
if (maxAge > 0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(3738) /* metro dependency 3738 */;
|
||||
value = value(this.createdAt);
|
||||
value = value.add(maxAge, 'seconds');
|
||||
isBefore = value.isBefore;
|
||||
Date = global.Date;
|
||||
if (Reflect.apply(isBefore, value, [Date.now()])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_65355() { // fn#65355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:1178, offset: 0x01bccee5, size: 97 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
const maxAge = this.maxAge;
|
||||
let value = Infinity;
|
||||
if (maxAge > 0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(3738) /* metro dependency 3738 */;
|
||||
value = value(this.createdAt);
|
||||
value = value.add(this.maxAge, 'seconds');
|
||||
value = value.toDate();
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_65357(a0) { // fn#65357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8335:1360, offset: 0x01bccf46, size: 181 bytes, params: 2, frame: 17
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
object2['maxUses'] = a0.max_uses;
|
||||
object2['maxAge'] = a0.max_age;
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
value = (importDefault(3738) /* metro dependency 3738 */)(a0.created_at ?? value);
|
||||
object2['createdAt'] = value;
|
||||
object2['targetType'] = a0.target_type;
|
||||
object2['targetUser'] = a0.target_user;
|
||||
object2['targetApplication'] = a0.target_application;
|
||||
value = Object.create(InviteRecord.prototype, {constructor: {value: InviteRecord}});
|
||||
const inviteRecord = new InviteRecord(object2);
|
||||
return inviteRecord instanceof Object ? inviteRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
/* Metro module 3811; source: records/InvoiceRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 3812, 2] */
|
||||
function _fun29475(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:6, offset: 0x00fc2e62, size: 227 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun29480(value);
|
||||
const value2 = _fun29489(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/InvoiceRecord.tsx');
|
||||
exports.default = value2;
|
||||
exports.BaseInvoiceRecord = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_29477() { // fn#29477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:279, offset: 0x00fc2fa9, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_29477_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun29480(a0) { // fn#29480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:478, offset: 0x00fc3007, size: 125 bytes, params: 2, frame: 17
|
||||
const closure = BaseInvoiceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'getInvoicePreviewLineItemForSku', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
var value = this.invoiceItems.find(_fun29483);
|
||||
var value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}}, {key: 'getInvoicePreviewLineItemUnitPriceForSku', value: function(a0) {
|
||||
var value = this.getInvoicePreviewLineItemForSku(a0);
|
||||
var value2 = null;
|
||||
return value2 == value || value2 == value.unitPrice ? value2 : value.unitPrice.amount;
|
||||
}}], [{key: 'createInvoiceFromOrder', value: value_29485}]);
|
||||
}
|
||||
|
||||
function _fun29489(a0) { // fn#29489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:1554, offset: 0x00fc32a3, size: 148 bytes, params: 2, frame: 18
|
||||
const closure = InvoiceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'findInvoiceItemByPlanId', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
var value = this.invoiceItems.find(_fun29492);
|
||||
var value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}}, {key: 'getDiscountIdIfExists', value: function() {
|
||||
var property = this.invoiceItems;
|
||||
var value = property.find(_fun29494);
|
||||
if (value != null) {
|
||||
if (value.discounts.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
property = value.discounts[0];
|
||||
if (property != null) {
|
||||
return property.discount_id;
|
||||
}
|
||||
}
|
||||
}}], [{key: 'createInvoiceFromServer', value: value_29495}, {key: 'createFromOTPPreview', value: value_29496}]);
|
||||
}
|
||||
|
||||
function BaseInvoiceRecord({total, subtotal, tax, currency, invoiceItems}) { // fn#29481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:490, offset: 0x00fc3084, size: 110 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, BaseInvoiceRecord);
|
||||
value = _callSuper_29476(this, BaseInvoiceRecord);
|
||||
value.total = total;
|
||||
value.subtotal = subtotal;
|
||||
value.tax = tax;
|
||||
value.currency = currency;
|
||||
value.invoiceItems = invoiceItems ?? [];
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_29482(a0) { // fn#29482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:813, offset: 0x00fc30f2, size: 48 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const value = this.invoiceItems.find(_fun29483);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function value_29485(a0) { // fn#29485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:1108, offset: 0x00fc3172, size: 168 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
const billing_facet = a0.billing_facet;
|
||||
let value = null;
|
||||
const invoice_preview = value != billing_facet ? billing_facet.invoice_preview : value;
|
||||
if (value == invoice_preview) {
|
||||
return value;
|
||||
}
|
||||
value = invoice_preview.line_items.map(function(a0) {
|
||||
var value2 = a0.order_line_items.find(_fun29487);
|
||||
var value3 = null;
|
||||
return value3 == value2 ? value3 : {skuId: value2.sku_id, unitPrice: {amount: a0.unit_price,
|
||||
currency: invoice_preview.currency}, quantity: a0.quantity};
|
||||
});
|
||||
value = value.filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
const object2 = {};
|
||||
object2.total = invoice_preview.total;
|
||||
object2.subtotal = invoice_preview.subtotal;
|
||||
object2.tax = invoice_preview.tax;
|
||||
object2.currency = invoice_preview.currency;
|
||||
object2.invoiceItems = value;
|
||||
value = Object.create(BaseInvoiceRecord.prototype, {constructor: {value: BaseInvoiceRecord}});
|
||||
const baseInvoiceRecord = new BaseInvoiceRecord(object2);
|
||||
return baseInvoiceRecord instanceof Object ? baseInvoiceRecord : value;
|
||||
}
|
||||
|
||||
function InvoiceRecord(a0) { // fn#29490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:1566, offset: 0x00fc3337, size: 153 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, InvoiceRecord);
|
||||
value = _callSuper_29476(this, InvoiceRecord, [a0]);
|
||||
value.id = a0.id;
|
||||
value.invoiceItems = a0.invoiceItems ?? [];
|
||||
value.taxInclusive = a0.taxInclusive;
|
||||
value.subscriptionPeriodStart = a0.subscriptionPeriodStart;
|
||||
value.subscriptionPeriodEnd = a0.subscriptionPeriodEnd;
|
||||
value.status = a0.status;
|
||||
value.orbsReward = a0.orbsReward;
|
||||
value.checkoutContext = a0.checkoutContext;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_29491(a0) { // fn#29491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:2013, offset: 0x00fc33d0, size: 48 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
const value = this.invoiceItems.find(_fun29492);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function value_29493() { // fn#29493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:2146, offset: 0x00fc3416, size: 76 bytes, params: 1, frame: 12
|
||||
const value = this.invoiceItems.find(function(a0) {
|
||||
return a0.discounts.length > 0;
|
||||
});
|
||||
if (value != null) {
|
||||
var discounts = value.discounts;
|
||||
if (discounts.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
discounts = value.discounts;
|
||||
var property = discounts[0];
|
||||
if (property != null) {
|
||||
return property.discount_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_29495({id, invoice_items, total, subtotal, currency, tax, tax_inclusive, subscription_period_start, subscription_period_end, status, orbs_reward, checkout_context}) { // fn#29495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:2344, offset: 0x00fc3478, size: 275 bytes, params: 2, frame: 18
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.invoiceItems = invoice_items?.map((require(3812) /* metro dependency 3812: PremiumSubscriptionInvoiceItem */).createInvoiceItemFromServer);
|
||||
object2.total = total;
|
||||
object2.subtotal = subtotal;
|
||||
object2.currency = currency;
|
||||
object2.tax = tax;
|
||||
object2.taxInclusive = tax_inclusive;
|
||||
let Date = global.Date;
|
||||
let date = new Date(subscription_period_start);
|
||||
object2.subscriptionPeriodStart = date;
|
||||
Date = global.Date;
|
||||
object2.subscriptionPeriodEnd = new Date(subscription_period_end);
|
||||
object2.status = status;
|
||||
object2.orbsReward = orbs_reward;
|
||||
object2.checkoutContext = checkout_context;
|
||||
date = Object.create(InvoiceRecord.prototype, {constructor: {value: InvoiceRecord}});
|
||||
const invoiceRecord = new InvoiceRecord(object2);
|
||||
return invoiceRecord instanceof Object ? invoiceRecord : date;
|
||||
}
|
||||
|
||||
function value_29496({invoice_items, amount, subtotal, currency, tax, tax_inclusive, orbs_reward, checkout_context}) { // fn#29496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:2812, offset: 0x00fc358b, size: 251 bytes, params: 2, frame: 18
|
||||
const object2 = {id: ''};
|
||||
object2.invoiceItems = invoice_items?.map((require(3812) /* metro dependency 3812: PremiumSubscriptionInvoiceItem */).createInvoiceItemFromServer);
|
||||
object2.total = amount;
|
||||
object2.subtotal = subtotal;
|
||||
object2.currency = currency;
|
||||
object2.tax = tax;
|
||||
object2.taxInclusive = tax_inclusive;
|
||||
let Date = global.Date;
|
||||
let date = new Date(0);
|
||||
object2.subscriptionPeriodStart = date;
|
||||
Date = global.Date;
|
||||
object2.subscriptionPeriodEnd = new Date(0);
|
||||
object2.orbsReward = orbs_reward;
|
||||
object2.checkoutContext = checkout_context;
|
||||
date = Object.create(InvoiceRecord.prototype, {constructor: {value: InvoiceRecord}});
|
||||
const invoiceRecord = new InvoiceRecord(object2);
|
||||
return invoiceRecord instanceof Object ? invoiceRecord : date;
|
||||
}
|
||||
|
||||
function _fun29486(a0) { // fn#29486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:1222, offset: 0x00fc321a, size: 108 bytes, params: 2, frame: 14
|
||||
const value2 = a0.order_line_items.find(_fun29487);
|
||||
const value3 = null;
|
||||
return value3 == value2 ? value3 : {skuId: value2.sku_id, unitPrice: {amount: a0.unit_price,
|
||||
currency: invoice_preview.currency}, quantity: a0.quantity};
|
||||
}
|
||||
|
||||
function _fun29492({subscriptionPlanId}) { // fn#29492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:2071, offset: 0x00fc3400, size: 22 bytes, params: 2, frame: 2
|
||||
return subscriptionPlanId === env0_0;
|
||||
}
|
||||
|
||||
function _fun29487({id}) { // fn#29487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3938:1257, offset: 0x00fc3286, size: 29 bytes, params: 2, frame: 2
|
||||
return id === env0_0.ref_order_line_item_id;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
/* Metro module 4271; source: records/LibraryApplicationRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 4234, 4272, 661, 1391, 3738, 2] */
|
||||
function _fun36191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:6, offset: 0x01084c95, size: 283 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
||||
const entitlementRecord = importDefault(4272) /* metro dependency 4272: EntitlementRecord */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_10 = constantsModule.LibraryApplicationFlags;
|
||||
const env0_11 = constantsModule.Distributors;
|
||||
const env0_12 = constantsModule.SKUTypes;
|
||||
value = _fun36195(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/LibraryApplicationRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_36192() { // fn#36192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:246, offset: 0x01084db0, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_36192_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun36195(a0) { // fn#36195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:445, offset: 0x01084e0e, size: 467 bytes, params: 2, frame: 18
|
||||
const closure = LibraryApplicationRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'getFlags', value: function() {
|
||||
return this.flags;
|
||||
}}, {key: 'hasFlag', value: value_36198}, {key: 'isHidden', value: function() {
|
||||
return this.hasFlag(LibraryApplicationFlags.HIDDEN);
|
||||
}}, {key: 'isLegacyOverlayEnabled', value: function() {
|
||||
return !this.hasFlag(LibraryApplicationFlags.OVERLAY_DISABLED);
|
||||
}}, {key: 'isOverlayV3Enabled', value: function() {
|
||||
return !this.hasFlag(LibraryApplicationFlags.OVERLAY_V3_DISABLED);
|
||||
}}, {key: 'isOverlayEnabled', value: function() {
|
||||
return this.isLegacyOverlayEnabled() || this.isOverlayV3Enabled();
|
||||
}}, {key: 'isMasterBranch', value: function() {
|
||||
return this.branchId === this.id;
|
||||
}}, {key: 'isDiscordApplication', value: function() {
|
||||
return true;
|
||||
}}, {key: 'isEntitled', value: function(a0, a1) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
var env0_2 = a1;
|
||||
var property = this.isTestMode;
|
||||
return property ? !!property : this.entitlements.some(_fun36206);
|
||||
}}, {key: 'isPreorder', value: function() {
|
||||
return this.sku.preorderReleaseAt != null || this.sku.preorderApproximateReleaseDate != null;
|
||||
}}, {key: 'getDistributor', value: function() {
|
||||
return Distributors.DISCORD;
|
||||
}}, {key: 'getBranchName', value: function() {
|
||||
return this.branch != null ? this.branch.name : 'master';
|
||||
}}, {key: 'getBranchedName', value: function(a0) {
|
||||
return this.isMasterBranch() || this.branch == null ? a0.name : '' + a0.name + ' (' + this.branch.name + ')';
|
||||
}}, {key: 'getSkuIdForAnalytics', value: function() {
|
||||
return this.sku.id;
|
||||
}}, {key: 'getAnalyticsData', value: value_36212}], [{key: 'createFromServer', value: value_36213},
|
||||
{key: 'createForTestMode', value: value_36215}]);
|
||||
}
|
||||
|
||||
function LibraryApplicationRecord({id, createdAt, flags, branchId, entitlements, branch, sku, isTestMode}) { // fn#36196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:457, offset: 0x01084fe1, size: 210 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, LibraryApplicationRecord);
|
||||
const value3 = env1_6(LibraryApplicationRecord);
|
||||
value = env1_5(this, _isNativeReflectConstruct_36192() ? global.Reflect.construct(value3, [],
|
||||
env1_6(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.createdAt = createdAt;
|
||||
value.flags = flags;
|
||||
value.branchId = branchId;
|
||||
value.entitlements = entitlements;
|
||||
value.branch = branch;
|
||||
value.sku = sku;
|
||||
isTestMode = !!isTestMode && isTestMode;
|
||||
value.isTestMode = isTestMode;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_36198(a0) { // fn#36198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:1008, offset: 0x010850bd, size: 50 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = importAll(1391) /* metro dependency 1391: FlagUtils */;
|
||||
return value.hasFlag(this.flags, a0);
|
||||
}
|
||||
|
||||
function value_36205(a0, a1) { // fn#36205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:1560, offset: 0x01085180, size: 62 bytes, params: 3, frame: 12
|
||||
const env0_1 = a0;
|
||||
const env0_2 = a1;
|
||||
const isTestMode = this.isTestMode;
|
||||
return isTestMode ? !!isTestMode : this.entitlements.some(_fun36206);
|
||||
}
|
||||
|
||||
function value_36212() { // fn#36212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:2160, offset: 0x010852ae, size: 106 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = ApplicationStore.getApplication(this.id);
|
||||
const object2 = {};
|
||||
const value2 = null;
|
||||
object2.application_id = value2 != value ? value.id : value2;
|
||||
object2.application_name = value2 != value ? value.name : value2;
|
||||
object2.sku_id = this.getSkuIdForAnalytics();
|
||||
object2.launcher_platform = this.getDistributor();
|
||||
return object2;
|
||||
}
|
||||
|
||||
function value_36213(a0) { // fn#36213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:2390, offset: 0x01085318, size: 299 bytes, params: 2, frame: 17
|
||||
const object3 = {};
|
||||
object3.id = a0.application.id;
|
||||
object3.branchId = a0.branch_id;
|
||||
const entitlements = a0.entitlements;
|
||||
let value = null;
|
||||
object3.entitlements = value != entitlements ? a0.entitlements.map(function(a0) {
|
||||
return EntitlementRecord.createFromServer(a0);
|
||||
}) : [];
|
||||
object3.branch = a0.branch;
|
||||
object3.flags = a0.flags;
|
||||
object3.createdAt = a0.created_at;
|
||||
const object4 = {};
|
||||
object4.id = a0.sku.id;
|
||||
object4.type = a0.sku.type;
|
||||
object4.premium = a0.sku.premium;
|
||||
object4.preorderReleaseAt = value != a0.sku.preorder_release_at ? (importDefault(3738) /* metro dependency 3738 */)(a0.sku.preorder_release_at) : value;
|
||||
let preorder_approximate_release_date = a0.sku.preorder_approximate_release_date;
|
||||
preorder_approximate_release_date = value != preorder_approximate_release_date ? a0.sku.preorder_approximate_release_date : value;
|
||||
object4.preorderApproximateReleaseDate = preorder_approximate_release_date;
|
||||
object3.sku = object4;
|
||||
value = Object.create(LibraryApplicationRecord.prototype, {constructor: {value: LibraryApplicationRecord}});
|
||||
const libraryApplicationRecord = new LibraryApplicationRecord(object3);
|
||||
return libraryApplicationRecord instanceof Object ? libraryApplicationRecord : value;
|
||||
}
|
||||
|
||||
function value_36215(a0) { // fn#36215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:2921, offset: 0x0108545a, size: 160 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.entitlements = [];
|
||||
object2.branchId = a0.branch.id;
|
||||
object2.branch = a0.branch;
|
||||
let value = environment.__proto__;
|
||||
const ENTITLED = LibraryApplicationFlags.ENTITLED;
|
||||
object2.flags = ENTITLED;
|
||||
object2.createdAt = a0.branch.created_at;
|
||||
const DURABLE_PRIMARY = SKUTypes.DURABLE_PRIMARY;
|
||||
object2.sku = {id: a0.skuId, type: DURABLE_PRIMARY, premium: false};
|
||||
object2.isTestMode = true;
|
||||
value = Object.create(LibraryApplicationRecord.prototype, {constructor: {value: LibraryApplicationRecord}});
|
||||
const libraryApplicationRecord = new LibraryApplicationRecord(object2);
|
||||
return libraryApplicationRecord instanceof Object ? libraryApplicationRecord : value;
|
||||
}
|
||||
|
||||
function _fun36206(a0) { // fn#36206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4443:1623, offset: 0x010851be, size: 39 bytes, params: 2, frame: 15
|
||||
return a0.isValid(env0_1, require, env0_0.branchId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* Metro module 7237; source: records/LinkRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 2] */
|
||||
function _fun58095(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:6, offset: 0x016bf872, size: 224 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).Routes;
|
||||
value = _fun58099(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/LinkRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.LinkRecord = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_58096() { // fn#58096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:175, offset: 0x016bf952, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_58096_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun58099(a0) { // fn#58099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:374, offset: 0x016bf9b0, size: 98 bytes, params: 2, frame: 17
|
||||
const closure = LinkRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, null, [{key: 'fromPath', value: value_58101}, {key: 'fromInviteCode', value: value_58102}]);
|
||||
}
|
||||
|
||||
function LinkRecord({id, path, inviteCode}) { // fn#58100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:386, offset: 0x016bfa12, size: 146 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, LinkRecord);
|
||||
const value3 = env1_3(LinkRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_58096() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.path = path;
|
||||
value.inviteCode = inviteCode;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_58101(a0) { // fn#58101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:708, offset: 0x016bfaa4, size: 46 bytes, params: 2, frame: 12
|
||||
const value = Object.create(LinkRecord.prototype, {constructor: {value: LinkRecord}});
|
||||
const linkRecord = new LinkRecord({id: a0, path: a0});
|
||||
return linkRecord instanceof Object ? linkRecord : value;
|
||||
}
|
||||
|
||||
function value_58102(a0) { // fn#58102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7415:787, offset: 0x016bfad2, size: 93 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
object2.id = 'invite:' + a0;
|
||||
let value = environment.__proto__;
|
||||
object2.path = Routes.INVITE(a0);
|
||||
object2.inviteCode = a0;
|
||||
value = Object.create(LinkRecord.prototype, {constructor: {value: LinkRecord}});
|
||||
const linkRecord = new LinkRecord(object2);
|
||||
return linkRecord instanceof Object ? linkRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,604 @@
|
||||
/* Metro module 3794; source: records/MessageRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 1391, 3795, 4845, 7152, 8042, 2] */
|
||||
function _fun28892(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:6, offset: 0x00f8605d, size: 326 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
let value = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const record = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = constantsModule.MessageFlags;
|
||||
const env0_9 = constantsModule.MessageStates;
|
||||
const env0_10 = constantsModule.MessageTypes;
|
||||
const value4 = _fun28897(record);
|
||||
value = value(ModeratorReport);
|
||||
const value5 = _fun28901(record);
|
||||
const value6 = _fun28903(value4);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/MessageRecord.tsx');
|
||||
exports.default = value6;
|
||||
exports.MinimalMessageRecord = value4;
|
||||
exports.ModeratorReport = value;
|
||||
exports.MessageSnapshotRecord = value5;
|
||||
exports.isMessageComponentsV2 = function(a0) {
|
||||
return require(dependencyMap[7]).hasFlag(a0.flags, MessageFlags.IS_COMPONENTS_V2);
|
||||
};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_28894() { // fn#28894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:359, offset: 0x00f861a3, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_28894_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun28897(a0) { // fn#28897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:558, offset: 0x00f86201, size: 68 bytes, params: 2, frame: 15
|
||||
const closure = MinimalMessageRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'hasFlag', value: value_28899}]);
|
||||
}
|
||||
|
||||
function ModeratorReport({reporting_user_id, reported_user_id, reporting_member, reported_member}) { // fn#28900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:1390, offset: 0x00f863c6, size: 75 bytes, params: 2, frame: 14
|
||||
env0_3(this, ModeratorReport);
|
||||
this.reporting_user_id = reporting_user_id;
|
||||
this.reported_user_id = reported_user_id;
|
||||
this.reporting_member = reporting_member;
|
||||
this.reported_member = reported_member;
|
||||
}
|
||||
|
||||
function _fun28901(a0) { // fn#28901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:1611, offset: 0x00f86411, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = MessageSnapshotRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure);
|
||||
}
|
||||
|
||||
function _fun28903(a0) { // fn#28903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:1895, offset: 0x00f8649c, size: 421 bytes, params: 2, frame: 16
|
||||
const closure = MessageRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'isEdited', value: function() {
|
||||
return this.editedTimestamp != null;
|
||||
}}, {key: 'getChannelId', value: function() {
|
||||
return this.channel_id;
|
||||
}}, {key: 'getReaction', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return this.reactions.find(_fun28909);
|
||||
}}, {key: 'getContentMessage', value: function() {
|
||||
var value = this;
|
||||
return importDefault(dependencyMap[9])(value) ? value.messageSnapshots[0].message : value;
|
||||
}}, {key: 'userHasReactedWithEmoji', value: function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return this.reactions.some(_fun28912);
|
||||
}}, {key: 'addReaction', value: value_28913}, {key: 'addReactionBatch', value: function(a0, a1) {
|
||||
var env0_0 = a1;
|
||||
return a0.reduce(_fun28916, this);
|
||||
}}, {key: 'removeReaction', value: value_28918}, {key: 'removeReactionsForEmoji', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return this.set('reactions', this.reactions.filter(_fun28921));
|
||||
}}, {key: 'isSystemDM', value: function() {
|
||||
return this.author.isSystemUser();
|
||||
}}, {key: 'isCommandType', value: value_28923}, {key: 'isPoll', value: function() {
|
||||
return this.poll != null;
|
||||
}}, {key: 'isInteractionPlaceholder', value: function() {
|
||||
return this.interaction != null && this.author.isNonUserBot();
|
||||
}}, {key: 'canDeleteOwnMessage', value: value_28926}, {key: 'toJS', value: function() {
|
||||
var r4;
|
||||
var r5;
|
||||
var object = {};
|
||||
copyDataProperties(object, this, r5);
|
||||
var value = this.mentionGames.values();
|
||||
var items = [];
|
||||
arraySpread(items, value, 0, r4);
|
||||
object['mentionGames'] = items;
|
||||
object['webkhook_id'] = this.webhookId;
|
||||
object['edited_timestamp'] = this.editedTimestamp;
|
||||
object['mention_everyone'] = this.mentionEveryone;
|
||||
return object;
|
||||
}}, {key: 'isFirstMessageInForumPost', value: function(a0) {
|
||||
return this.id === this.channel_id && a0.isForumPost();
|
||||
}}]);
|
||||
}
|
||||
|
||||
function MinimalMessageRecord(a0) { // fn#28898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:570, offset: 0x00f86245, size: 335 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, MinimalMessageRecord);
|
||||
const value3 = _callSuper_28893(this, MinimalMessageRecord);
|
||||
const type = a0.type;
|
||||
const value4 = null;
|
||||
let r1 = value4 != type ? type : MessageTypes.DEFAULT;
|
||||
value3.type = r1;
|
||||
const content = a0.content;
|
||||
value3.content = value4 != content ? content : '';
|
||||
const attachments = a0.attachments;
|
||||
value3.attachments = value4 != attachments ? attachments : [];
|
||||
const embeds = a0.embeds;
|
||||
value3.embeds = value4 != embeds ? embeds : [];
|
||||
const timestamp = a0.timestamp;
|
||||
value3.timestamp = value4 != timestamp ? timestamp : new global.Date();
|
||||
const editedTimestamp = a0.editedTimestamp;
|
||||
value3.editedTimestamp = value4 != editedTimestamp ? editedTimestamp : value4;
|
||||
const flags = a0.flags;
|
||||
value3.flags = value4 != flags ? flags : 0;
|
||||
const components = a0.components;
|
||||
value3.components = value4 != components ? components : [];
|
||||
const codedLinks = a0.codedLinks;
|
||||
value3.codedLinks = value4 != codedLinks ? codedLinks : [];
|
||||
const stickers = a0.stickers;
|
||||
value3.stickers = value4 != stickers ? stickers : [];
|
||||
const sticker_items = a0.sticker_items;
|
||||
r1 = value4 != sticker_items ? sticker_items : a0.stickerItems;
|
||||
r1 = value4 == r1 ? [] : r1;
|
||||
value3.stickerItems = r1;
|
||||
const soundboard_sounds = a0.soundboard_sounds;
|
||||
value3.soundboardSounds = value4 != soundboard_sounds ? soundboard_sounds : a0.soundboardSounds;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function value_28899(a0) { // fn#28899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:1328, offset: 0x00f86394, size: 50 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
return value.hasFlag(this.flags, a0);
|
||||
}
|
||||
|
||||
function MessageSnapshotRecord({message, moderator_report}) { // fn#28902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:1623, offset: 0x00f86439, size: 99 bytes, params: 2, frame: 15
|
||||
var value4;
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, MessageSnapshotRecord);
|
||||
const value3 = _callSuper_28893(this, MessageSnapshotRecord);
|
||||
value3.message = new env1_11(message);
|
||||
value4 = null;
|
||||
value3.moderatorReport = value4 != moderator_report ? moderator_report : value4;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function MessageRecord(a0) { // fn#28904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:1907, offset: 0x00f86641, size: 971 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
var changelogId;
|
||||
var map;
|
||||
var value5;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_3;
|
||||
const value3 = undefined;
|
||||
binding(this, MessageRecord);
|
||||
const value4 = _callSuper_28893(this, MessageRecord, [a0]);
|
||||
value4.id = a0.id;
|
||||
value4.channel_id = a0.channel_id;
|
||||
value4.author = a0.author;
|
||||
value4.customRenderedContent = a0.customRenderedContent;
|
||||
let r1 = a0.mentions || [];
|
||||
value4.mentions = r1;
|
||||
value4.mentionRoles = a0.mentionRoles || [];
|
||||
value4.mentionChannels = a0.mentionChannels || [];
|
||||
const mentionGames = a0.mentionGames;
|
||||
let Map = global.Map;
|
||||
if (mentionGames instanceof Map) {
|
||||
r1 = a0.mentionGames;
|
||||
} else {
|
||||
Map = global.Map;
|
||||
value5 = (a0.mentionGames ?? []).map(function(a0) {
|
||||
return [a0.id, a0];
|
||||
});
|
||||
map = new Map();
|
||||
}
|
||||
value4.mentionGames = r1;
|
||||
let mentioned = a0.mentioned;
|
||||
mentioned = !!mentioned && mentioned;
|
||||
value4.mentioned = mentioned;
|
||||
let pinned = a0.pinned;
|
||||
pinned = !!pinned && pinned;
|
||||
value4.pinned = pinned;
|
||||
let mentionEveryone = a0.mentionEveryone;
|
||||
mentionEveryone = !!mentionEveryone && mentionEveryone;
|
||||
value4.mentionEveryone = mentionEveryone;
|
||||
let tts = a0.tts;
|
||||
tts = !!tts && tts;
|
||||
value4.tts = tts;
|
||||
value4.giftCodes = a0.giftCodes || [];
|
||||
value4.state = a0.state || MessageStates.SENT;
|
||||
const nonce = a0.nonce;
|
||||
value = null;
|
||||
let r2 = value != nonce ? nonce : value3;
|
||||
value4.nonce = r2;
|
||||
let blocked = a0.blocked;
|
||||
blocked = !!blocked && blocked;
|
||||
value4.blocked = blocked;
|
||||
let ignored = a0.ignored;
|
||||
ignored = !!ignored && ignored;
|
||||
value4.ignored = ignored;
|
||||
let call = a0.call;
|
||||
call = !call ? value : call;
|
||||
value4.call = call;
|
||||
let bot = a0.bot;
|
||||
bot = !!bot && bot;
|
||||
value4.bot = bot;
|
||||
let webhookId = a0.webhookId;
|
||||
webhookId = !webhookId ? value : webhookId;
|
||||
value4.webhookId = webhookId;
|
||||
value4.reactions = a0.reactions || [];
|
||||
r2 = a0.application_id || a0.applicationId;
|
||||
r2 = !r2 ? value : r2;
|
||||
value4.applicationId = r2;
|
||||
let application = a0.application;
|
||||
application = !application ? value : application;
|
||||
value4.application = application;
|
||||
let activity = a0.activity;
|
||||
activity = !activity ? value : activity;
|
||||
value4.activity = activity;
|
||||
r2 = a0.activity_instance || a0.activityInstance;
|
||||
r2 = !r2 ? value : r2;
|
||||
value4.activityInstance = r2;
|
||||
let messageReference = a0.messageReference;
|
||||
messageReference = !messageReference ? value : messageReference;
|
||||
value4.messageReference = messageReference;
|
||||
r2 = a0.hit || a0.isSearchHit;
|
||||
r2 = !!r2 && r2;
|
||||
value4.isSearchHit = r2;
|
||||
let loggingName = a0.loggingName;
|
||||
loggingName = !loggingName ? value : loggingName;
|
||||
value4.loggingName = loggingName;
|
||||
value4.colorString = a0.colorString;
|
||||
value4.nick = a0.nick;
|
||||
let interaction = a0.interaction;
|
||||
interaction = !interaction ? value : interaction;
|
||||
value4.interaction = interaction;
|
||||
let interactionData = a0.interactionData;
|
||||
interactionData = !interactionData ? value : interactionData;
|
||||
value4.interactionData = interactionData;
|
||||
let interactionMetadata = a0.interactionMetadata;
|
||||
interactionMetadata = !interactionMetadata ? value : interactionMetadata;
|
||||
value4.interactionMetadata = interactionMetadata;
|
||||
let interactionError = a0.interactionError;
|
||||
interactionError = !interactionError ? value : interactionError;
|
||||
value4.interactionError = interactionError;
|
||||
value4.roleSubscriptionData = a0.roleSubscriptionData;
|
||||
value4.purchaseNotification = a0.purchaseNotification;
|
||||
value4.poll = a0.poll;
|
||||
value4.sharedClientTheme = a0.shared_client_theme || a0.sharedClientTheme;
|
||||
let referralTrialOfferId = a0.referralTrialOfferId;
|
||||
referralTrialOfferId = !referralTrialOfferId ? value : referralTrialOfferId;
|
||||
value4.referralTrialOfferId = referralTrialOfferId;
|
||||
let premiumGroupInviteId = a0.premiumGroupInviteId;
|
||||
premiumGroupInviteId = !premiumGroupInviteId ? value : premiumGroupInviteId;
|
||||
value4.premiumGroupInviteId = premiumGroupInviteId;
|
||||
const gift_info = a0.gift_info;
|
||||
value4.giftInfo = value != gift_info ? gift_info : a0.giftInfo;
|
||||
let giftingPrompt = a0.giftingPrompt;
|
||||
giftingPrompt = !giftingPrompt ? value : giftingPrompt;
|
||||
value4.giftingPrompt = giftingPrompt;
|
||||
let boostingPrompt = a0.boostingPrompt;
|
||||
boostingPrompt = !boostingPrompt ? value : boostingPrompt;
|
||||
value4.boostingPrompt = boostingPrompt;
|
||||
value4.messageSnapshots = a0.messageSnapshots || [];
|
||||
let isUnsupported = a0.isUnsupported;
|
||||
isUnsupported = !!isUnsupported && isUnsupported;
|
||||
value4.isUnsupported = isUnsupported;
|
||||
const changelog_id = a0.changelog_id;
|
||||
if (value != changelog_id) {
|
||||
r2 = changelog_id;
|
||||
} else {
|
||||
changelogId = a0.changelogId;
|
||||
changelogId = !changelogId ? value : changelogId;
|
||||
r2 = changelogId;
|
||||
}
|
||||
value4.changelogId = r2;
|
||||
const media_mention = a0.media_mention;
|
||||
r2 = value != media_mention ? media_mention : a0.mediaMention;
|
||||
value4.mediaMention = value != r2 ? r2 : value;
|
||||
return value4;
|
||||
}
|
||||
|
||||
function value_28908(a0) { // fn#28908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:3998, offset: 0x00f86a27, size: 36 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return this.reactions.find(_fun28909);
|
||||
}
|
||||
|
||||
function value_28911(a0, a1) { // fn#28911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:4217, offset: 0x00f86abc, size: 43 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return this.reactions.some(_fun28912);
|
||||
}
|
||||
|
||||
function value_28913(a0) { // fn#28913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:4358, offset: 0x00f86b46, size: 412 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
const ReactionTypes = (require(7152) /* metro dependency 7152: MessageReactionsTypes */).ReactionTypes;
|
||||
var value4;
|
||||
let value = a1;
|
||||
const value2 = a2;
|
||||
const value3 = a3;
|
||||
const env0_0 = a0;
|
||||
const r5 = value !== undefined ? value : false;
|
||||
const r4 = value2 !== undefined ? value2 : [];
|
||||
const r1 = value3 !== undefined ? value3 : ReactionTypes.NORMAL;
|
||||
const env0_4 = -1;
|
||||
value = this.reactions.map(_fun28914);
|
||||
if (env0_4 === -1) {
|
||||
value4 = environment.__proto__;
|
||||
if (r1 === ReactionTypes.BURST) {
|
||||
value.push({'emoji': null, 'me': false, 'me_burst': null, 'count': 0, 'count_details': null,
|
||||
'burst_count': 1,
|
||||
emoji: a0, me_burst: r5, count_details: {'burst': 1, 'normal': 0}, burst_colors: r4});
|
||||
} else if (r1 === ReactionTypes.VOTE) {
|
||||
value.push({'emoji': null, 'me': false, 'me_burst': false, 'me_vote': null, 'count': 0,
|
||||
'count_details': null,
|
||||
'burst_count': 0, emoji: a0, me_vote: r5, count_details: {'burst': 0, 'normal': 0, 'vote': 1},
|
||||
burst_colors: []});
|
||||
} else {
|
||||
value.push({'emoji': null, 'me': null, 'me_burst': false, 'count': 1, 'count_details': null,
|
||||
'burst_count': 0,
|
||||
emoji: a0, me: r5, count_details: {'burst': 0, 'normal': 1}, burst_colors: []});
|
||||
}
|
||||
}
|
||||
return this.set('reactions', value);
|
||||
}
|
||||
|
||||
function value_28915(a0, a1) { // fn#28915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:5544, offset: 0x00f86f28, size: 34 bytes, params: 3, frame: 13
|
||||
const env0_0 = a1;
|
||||
return a0.reduce(function(a0, {users, emoji, reactionType}) {
|
||||
return users.reduce(_fun28917, a0);
|
||||
}, this);
|
||||
}
|
||||
|
||||
function value_28918(a0) { // fn#28918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:5718, offset: 0x00f86fae, size: 302 bytes, params: 2, frame: 23
|
||||
var environment;
|
||||
var NORMAL;
|
||||
let value = a1;
|
||||
const value2 = a2;
|
||||
const env0_0 = a0;
|
||||
const value3 = undefined;
|
||||
let r4 = value !== value3 ? value : false;
|
||||
if (value2 === value3) {
|
||||
value = environment.__proto__;
|
||||
NORMAL = (require(7152) /* metro dependency 7152: MessageReactionsTypes */).ReactionTypes.NORMAL;
|
||||
}
|
||||
const env0_3 = -1;
|
||||
value = this.reactions.map(_fun28919);
|
||||
const {count, burst_count, count_details} = value[env0_3] ?? ({});
|
||||
const normal = count_details == null ? value3 : count_details.normal;
|
||||
const value4 = 0;
|
||||
const r7 = normal ?? value4;
|
||||
const r6 = (count_details == null ? value3 : count_details.burst) ?? value4;
|
||||
r4 = (count_details == null ? value3 : count_details.vote) ?? value4;
|
||||
let r1 = env0_3 !== -1 && count <= value4 && burst_count <= value4;
|
||||
r1 = r1 && r7 <= value4 && r6 <= value4 && r4 <= value4;
|
||||
if (r1) {
|
||||
value.splice(env0_3, 1);
|
||||
}
|
||||
return this.set('reactions', value);
|
||||
}
|
||||
|
||||
function value_28920(a0) { // fn#28920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:6658, offset: 0x00f872ec, size: 50 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return this.set('reactions', this.reactions.filter(_fun28921));
|
||||
}
|
||||
|
||||
function value_28923() { // fn#28923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:6859, offset: 0x00f8736d, size: 49 bytes, params: 1, frame: 4
|
||||
const type = this.type;
|
||||
const value = environment.__proto__;
|
||||
const CHAT_INPUT_COMMAND = MessageTypes.CHAT_INPUT_COMMAND;
|
||||
return type === CHAT_INPUT_COMMAND || this.type === MessageTypes.CONTEXT_MENU_COMMAND;
|
||||
}
|
||||
|
||||
function value_28926(a0) { // fn#28926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:7146, offset: 0x00f873d3, size: 165 bytes, params: 2, frame: 15
|
||||
if (this.author.id === a0) {
|
||||
return true;
|
||||
}
|
||||
let interactionMetadata = this.interactionMetadata;
|
||||
const value = undefined;
|
||||
const r2 = (interactionMetadata == null ? value : interactionMetadata.authorizing_integration_owners) ?? ({});
|
||||
interactionMetadata = this.interactionMetadata;
|
||||
return (interactionMetadata == null ? value : interactionMetadata.user.id) === a0 && global.Object.keys(r2).length === 1 && (require(8042) /* metro dependency 8042: ApplicationIntegrationType */).ApplicationIntegrationType.USER_INSTALL in r2;
|
||||
}
|
||||
|
||||
function _fun28909({emoji}) { // fn#28909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:4038, offset: 0x00f86a4b, size: 55 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (require(3795) /* metro dependency 3795: ReactionUtils */).emojiEquals(emoji, env0_0);
|
||||
}
|
||||
|
||||
function _fun28912(a0) { // fn#28912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:4259, offset: 0x00f86ae7, size: 95 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(3795) /* metro dependency 3795: ReactionUtils */;
|
||||
if (value.emojiEquals(a0.emoji, env0_0)) {
|
||||
r0 = require && a0.me;
|
||||
r0 = !r0 ? !require && a0.me_burst : r0;
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun28914(a0, a1) { // fn#28914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:4443, offset: 0x00f86ce2, size: 582 bytes, params: 3, frame: 18
|
||||
var r6;
|
||||
var r4;
|
||||
var binding;
|
||||
const ReactionTypes = (require(7152) /* metro dependency 7152: MessageReactionsTypes */).ReactionTypes;
|
||||
var value5;
|
||||
var object5;
|
||||
var object6;
|
||||
var count_details;
|
||||
var object7;
|
||||
var value10;
|
||||
var object8;
|
||||
const value = a0;
|
||||
const value3 = undefined;
|
||||
const reactionUtilsModule = require(3795) /* metro dependency 3795: ReactionUtils */;
|
||||
if (reactionUtilsModule.emojiEquals(value.emoji, env0_0)) {
|
||||
env0_4 = a1;
|
||||
binding = env0_3;
|
||||
if (binding === ReactionTypes.BURST) {
|
||||
if (env0_1) {
|
||||
if (value.me_burst) {
|
||||
return value;
|
||||
}
|
||||
value10 = value.burst_count + 1;
|
||||
r4 = value.burst_colors == null ? env0_2 : value.burst_colors.length > 0 ? value.burst_colors : env0_2;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
binding = env0_1;
|
||||
object5['me_burst'] = binding ? !!binding : value.me_burst;
|
||||
object5['burst_count'] = value10;
|
||||
object8 = {};
|
||||
copyDataProperties(object8, value.count_details, require);
|
||||
object8['burst'] = value10;
|
||||
object5['count_details'] = object8;
|
||||
object5['burst_colors'] = r4;
|
||||
return object5;
|
||||
}
|
||||
value10 = value.burst_count + 1;
|
||||
r4 = value.burst_colors == null ? env0_2 : value.burst_colors.length > 0 ? value.burst_colors : env0_2;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
binding = env0_1;
|
||||
object5['me_burst'] = binding ? !!binding : value.me_burst;
|
||||
object5['burst_count'] = value10;
|
||||
object8 = {};
|
||||
copyDataProperties(object8, value.count_details, require);
|
||||
object8['burst'] = value10;
|
||||
object5['count_details'] = object8;
|
||||
object5['burst_colors'] = r4;
|
||||
return object5;
|
||||
}
|
||||
binding = env0_3;
|
||||
if (binding === ReactionTypes.VOTE) {
|
||||
count_details = value.count_details;
|
||||
r4 = (count_details == null ? value3 : count_details.vote) ?? 0;
|
||||
r6 = env0_1 && value.me_vote ? r4 : r4 + 1;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
object7 = {};
|
||||
count_details = value.count_details;
|
||||
copyDataProperties(object7, count_details, require);
|
||||
object7['vote'] = r6;
|
||||
object5['count_details'] = object7;
|
||||
binding = env0_1;
|
||||
object5['me_vote'] = binding ? !!binding : value.me_vote;
|
||||
return object5;
|
||||
}
|
||||
if (env0_1) {
|
||||
if (value.me) {
|
||||
return value;
|
||||
}
|
||||
value5 = value.count + 1;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
object5['count'] = value5;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, value.count_details, require);
|
||||
object6['normal'] = value5;
|
||||
object5['count_details'] = object6;
|
||||
binding = env0_1;
|
||||
object5['me'] = binding ? !!binding : value.me;
|
||||
return object5;
|
||||
}
|
||||
value5 = value.count + 1;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
object5['count'] = value5;
|
||||
object6 = {};
|
||||
count_details = value.count_details;
|
||||
copyDataProperties(object6, count_details, require);
|
||||
object6['normal'] = value5;
|
||||
object5['count_details'] = object6;
|
||||
binding = env0_1;
|
||||
r6 = binding ? !!binding : value.me;
|
||||
object5['me'] = r6;
|
||||
return object5;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun28916(a0, {users, emoji, reactionType}) { // fn#28916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:5575, offset: 0x00f86f4a, size: 53 bytes, params: 3, frame: 13
|
||||
return users.reduce(function(a0, a1) {
|
||||
return a0.addReaction(emoji, a1 === require, [], reactionType);
|
||||
}, a0);
|
||||
}
|
||||
|
||||
function _fun28919(a0, a1) { // fn#28919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:5806, offset: 0x00f870dc, size: 528 bytes, params: 3, frame: 18
|
||||
var r7;
|
||||
var r6;
|
||||
var r5;
|
||||
var r1;
|
||||
var r0;
|
||||
const ReactionTypes = (require(7152) /* metro dependency 7152: MessageReactionsTypes */).ReactionTypes;
|
||||
var object5;
|
||||
var object6;
|
||||
var count_details;
|
||||
var object7;
|
||||
var object8;
|
||||
const value = a0;
|
||||
const value3 = undefined;
|
||||
const reactionUtilsModule = require(3795) /* metro dependency 3795: ReactionUtils */;
|
||||
if (reactionUtilsModule.emojiEquals(value.emoji, env0_0)) {
|
||||
if (env0_2 === ReactionTypes.BURST) {
|
||||
r6 = env0_1 ? value.me_burst ? value.burst_count - 1 : value.burst_count : value.burst_count - 1;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
object5['burst_count'] = r6;
|
||||
object5['me_burst'] = !env0_1 && value.me_burst;
|
||||
object8 = {};
|
||||
copyDataProperties(object8, value.count_details, require);
|
||||
object8['burst'] = r6;
|
||||
object5['count_details'] = object8;
|
||||
r1 = object5;
|
||||
} else if (env0_2 === ReactionTypes.VOTE) {
|
||||
count_details = value.count_details;
|
||||
r5 = (count_details == null ? value3 : count_details.vote) ?? 0;
|
||||
r7 = env0_1 ? value.me_vote ? r5 - 1 : r5 : r5 - 1;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
object7 = {};
|
||||
count_details = value.count_details;
|
||||
copyDataProperties(object7, count_details, require);
|
||||
object7['vote'] = r7;
|
||||
object5['count_details'] = object7;
|
||||
object5['me_vote'] = !env0_1 && value.me_vote;
|
||||
r1 = object5;
|
||||
} else {
|
||||
r7 = env0_1 ? value.me ? value.count - 1 : value.count : value.count - 1;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value, require);
|
||||
object5['count'] = r7;
|
||||
object5['me'] = !env0_1 && value.me;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, value.count_details, require);
|
||||
object6['normal'] = r7;
|
||||
object5['count_details'] = object6;
|
||||
r1 = object5;
|
||||
}
|
||||
env0_3 = a1;
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun28921({emoji}) { // fn#28921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3921:6721, offset: 0x00f8731e, size: 58 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(3795) /* metro dependency 3795: ReactionUtils */;
|
||||
return !value.emojiEquals(emoji, env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,920 @@
|
||||
/* Metro module 3806; source: records/PaymentSourceRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 1391, 1360, 2] */
|
||||
function _fun29280(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6, offset: 0x00fbe1bc, size: 667 bytes, params: 8, frame: 35
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = constantsModule.IRREDEEMABLE_PAYMENT_SOURCES;
|
||||
const env0_8 = constantsModule.PaymentGateways;
|
||||
const env0_9 = constantsModule.PaymentSourceTypes;
|
||||
value = _fun29285(value);
|
||||
const value3 = _fun29292(value);
|
||||
const value4 = _fun29294(value);
|
||||
const value5 = _fun29296(value);
|
||||
const value6 = _fun29298(value);
|
||||
const value7 = _fun29300(value);
|
||||
const value8 = _fun29302(value);
|
||||
const value9 = _fun29304(value);
|
||||
const value10 = _fun29306(value);
|
||||
const value11 = _fun29308(value);
|
||||
const value12 = _fun29310(value);
|
||||
const value13 = _fun29312(value);
|
||||
const value14 = _fun29314(value);
|
||||
const value15 = _fun29316(value);
|
||||
const value16 = _fun29318(value);
|
||||
const value17 = _fun29320(value);
|
||||
const value18 = _fun29322(value);
|
||||
const value19 = _fun29324(value);
|
||||
const value20 = _fun29326(value);
|
||||
const value21 = _fun29328(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/PaymentSourceRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.CreditCardSourceRecord = value3;
|
||||
exports.PaypalSourceRecord = value4;
|
||||
exports.SofortSourceRecord = value5;
|
||||
exports.GiropaySourceRecord = value6;
|
||||
exports.Przelewy24SourceRecord = value7;
|
||||
exports.EPSSourceRecord = value8;
|
||||
exports.IdealSourceRecord = value9;
|
||||
exports.PaysafeSourceRecord = value10;
|
||||
exports.GcashSourceRecord = value11;
|
||||
exports.GrabPayMySourceRecord = value12;
|
||||
exports.MomoWalletSourceRecord = value13;
|
||||
exports.VenmoSourceRecord = value14;
|
||||
exports.KaKaoPaySourceRecord = value15;
|
||||
exports.GoPayWalletSourceRecord = value16;
|
||||
exports.BancontactSourceRecord = value17;
|
||||
exports.CashAppSourceRecord = value18;
|
||||
exports.AppleSourceRecord = value19;
|
||||
exports.TDSWalletSourceRecord = value20;
|
||||
exports.PixSourceRecord = value21;
|
||||
}
|
||||
|
||||
function _callSuper_29281(a0, a1, a2) { // fn#29281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:244, offset: 0x00fbe457, size: 100 bytes, params: 4, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = a2;
|
||||
const value3 = env0_5(a1);
|
||||
const binding = env0_4;
|
||||
if (_isNativeReflectConstruct_29282()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value3, value || [], env0_5(a0).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value3.apply(a0, value);
|
||||
r0 = value;
|
||||
}
|
||||
return binding(a0, r0);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_29282() { // fn#29282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:375, offset: 0x00fbe4bb, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_29282_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun29285(a0) { // fn#29285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:574, offset: 0x00fbe519, size: 171 bytes, params: 2, frame: 18
|
||||
const closure = PaymentSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'hasFlag', value: value_29287}, {key: 'paymentMethodCountry', get: function() {
|
||||
return this.country == null ? this.billingAddress.country : this.country !== '' ? this.country : this.billingAddress.country;
|
||||
}}, {key: 'canRedeemTrial', value: function() {
|
||||
return !IRREDEEMABLE_PAYMENT_SOURCES.has(this.type);
|
||||
}}], [{key: 'createFromServer', value: value_29290}, {key: 'createFromSerialized', value: value_29291}]);
|
||||
}
|
||||
|
||||
function _fun29292(a0) { // fn#29292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3323, offset: 0x00fbf073, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = CreditCardSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29294(a0) { // fn#29294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3805, offset: 0x00fbf18f, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = PaypalSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29296(a0) { // fn#29296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4131, offset: 0x00fbf259, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = SofortSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29298(a0) { // fn#29298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4497, offset: 0x00fbf343, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = GiropaySourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29300(a0) { // fn#29300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4811, offset: 0x00fbf3fa, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = Przelewy24SourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29302(a0) { // fn#29302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5183, offset: 0x00fbf4d0, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = EPSSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29304(a0) { // fn#29304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5479, offset: 0x00fbf593, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = IdealSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29306(a0) { // fn#29306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5791, offset: 0x00fbf656, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = PaysafeSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29308(a0) { // fn#29308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6115, offset: 0x00fbf70d, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = GcashSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29310(a0) { // fn#29310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6413, offset: 0x00fbf7c4, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = GrabPayMySourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29312(a0) { // fn#29312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6745, offset: 0x00fbf87b, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = MomoWalletSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29314(a0) { // fn#29314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7085, offset: 0x00fbf932, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = VenmoSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29316(a0) { // fn#29316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7409, offset: 0x00fbf9fc, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = KaKaoPaySourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29318(a0) { // fn#29318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7731, offset: 0x00fbfab3, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = GoPayWalletSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29320(a0) { // fn#29320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8079, offset: 0x00fbfb6a, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = BancontactSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29322(a0) { // fn#29322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8417, offset: 0x00fbfc21, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = CashAppSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29324(a0) { // fn#29324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8747, offset: 0x00fbfceb, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = AppleSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29326(a0) { // fn#29326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9172, offset: 0x00fbfdec, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = TDSWalletSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun29328(a0) { // fn#29328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9504, offset: 0x00fbfea3, size: 40 bytes, params: 2, frame: 14
|
||||
const closure = PixSourceRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function PaymentSourceRecord(a0) { // fn#29286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:586, offset: 0x00fbe5c4, size: 272 bytes, params: 2, frame: 15
|
||||
var r3;
|
||||
var invalid;
|
||||
var flags;
|
||||
var country;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, PaymentSourceRecord);
|
||||
const value3 = _callSuper_29281(this, PaymentSourceRecord);
|
||||
const Object = global.Object;
|
||||
if (Reflect.apply(Object.values(PaymentSourceTypes).includes, value, [a0.type])) {
|
||||
value3.id = a0.id;
|
||||
value3.type = a0.type;
|
||||
value3.paymentGateway = a0.paymentGateway;
|
||||
invalid = a0.invalid;
|
||||
value = invalid != null;
|
||||
r3 = value && invalid;
|
||||
value3.invalid = r3;
|
||||
r3 = a0.billingAddress ?? ({});
|
||||
value3.billingAddress = r3;
|
||||
value3.isDefault = a0.isDefault;
|
||||
flags = a0.flags;
|
||||
value = 0;
|
||||
r3 = flags ?? value;
|
||||
value3.flags = r3;
|
||||
country = a0.country;
|
||||
value = '';
|
||||
value3.country = country ?? value;
|
||||
return value3;
|
||||
}
|
||||
const Error = global.Error;
|
||||
value = 'Unrecognized payment source type ' + a0.type;
|
||||
const value4 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error(value);
|
||||
throw error instanceof Object ? error : value4;
|
||||
}
|
||||
|
||||
function value_29287(a0) { // fn#29287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:1113, offset: 0x00fbe6d4, size: 50 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
return value.hasFlag(this.flags, a0);
|
||||
}
|
||||
|
||||
function value_29290(a0) { // fn#29290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:1392, offset: 0x00fbe757, size: 1447 bytes, params: 2, frame: 16
|
||||
var binding;
|
||||
var binding2;
|
||||
var binding3;
|
||||
var object2;
|
||||
var binding4;
|
||||
var object3;
|
||||
var binding5;
|
||||
var binding6;
|
||||
var binding7;
|
||||
var binding8;
|
||||
var binding9;
|
||||
var binding10;
|
||||
var binding11;
|
||||
var binding12;
|
||||
var object4;
|
||||
var binding13;
|
||||
var object7;
|
||||
var binding14;
|
||||
var binding15;
|
||||
var object8;
|
||||
var binding16;
|
||||
var object9;
|
||||
var binding17;
|
||||
var object10;
|
||||
var binding18;
|
||||
var object11;
|
||||
var binding19;
|
||||
const r2 = a0.billing_address ?? ({});
|
||||
const object12 = {};
|
||||
object12.id = a0.id;
|
||||
let type = a0.type;
|
||||
object12.type = type;
|
||||
object12.paymentGateway = a0.payment_gateway;
|
||||
object12.invalid = a0.invalid;
|
||||
object12.isDefault = a0.default;
|
||||
object12.billingAddress = {name: r2.name, line1: r2.line_1, line2: r2.line_2, city: r2.city,
|
||||
postalCode: r2.postal_code, state: r2.state, country: r2.country};
|
||||
object12.country = a0.country;
|
||||
object12.flags = a0.flags;
|
||||
type = a0.type;
|
||||
let value = environment.__proto__;
|
||||
const CARD = PaymentSourceTypes.CARD;
|
||||
if (CARD === type) {
|
||||
binding = env1_10;
|
||||
object11 = {};
|
||||
copyDataProperties(object11, object12, undefined);
|
||||
object11['brand'] = a0.brand;
|
||||
object11['last4'] = a0.last_4;
|
||||
object11['expiresMonth'] = a0.expires_month;
|
||||
object11['expiresYear'] = a0.expires_year;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding19 = new binding();
|
||||
return binding19 instanceof Object ? binding19 : value;
|
||||
}
|
||||
const PAYPAL = PaymentSourceTypes.PAYPAL;
|
||||
if (PAYPAL === type) {
|
||||
binding = env1_11;
|
||||
object10 = {};
|
||||
copyDataProperties(object10, object12, undefined);
|
||||
object10['email'] = a0.email;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding18 = new binding();
|
||||
return binding18 instanceof Object ? binding18 : value;
|
||||
}
|
||||
const VENMO = PaymentSourceTypes.VENMO;
|
||||
if (VENMO === type) {
|
||||
binding = env1_21;
|
||||
object9 = {};
|
||||
copyDataProperties(object9, object12, undefined);
|
||||
object9['username'] = a0.username;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding17 = new binding();
|
||||
return binding17 instanceof Object ? binding17 : value;
|
||||
}
|
||||
const SEPA_DEBIT = PaymentSourceTypes.SEPA_DEBIT;
|
||||
if (SEPA_DEBIT === type) {
|
||||
binding = env1_12;
|
||||
object8 = {};
|
||||
copyDataProperties(object8, object12, undefined);
|
||||
object8['email'] = a0.email;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding16 = new binding();
|
||||
return binding16 instanceof Object ? binding16 : value;
|
||||
}
|
||||
const SOFORT = PaymentSourceTypes.SOFORT;
|
||||
if (SOFORT === type) {
|
||||
binding = env1_12;
|
||||
object8 = {};
|
||||
copyDataProperties(object8, object12, undefined);
|
||||
object8['email'] = a0.email;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding16 = new binding();
|
||||
return binding16 instanceof Object ? binding16 : value;
|
||||
}
|
||||
const GIROPAY = PaymentSourceTypes.GIROPAY;
|
||||
if (GIROPAY === type) {
|
||||
binding = env1_13;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding15 = new binding();
|
||||
return binding15 instanceof Object ? binding15 : value;
|
||||
}
|
||||
const PRZELEWY24 = PaymentSourceTypes.PRZELEWY24;
|
||||
if (PRZELEWY24 === type) {
|
||||
binding = env1_14;
|
||||
object7 = {};
|
||||
copyDataProperties(object7, object12, undefined);
|
||||
object7['email'] = a0.email;
|
||||
object7['bank'] = a0.bank;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding14 = new binding();
|
||||
return binding14 instanceof Object ? binding14 : value;
|
||||
}
|
||||
const EPS = PaymentSourceTypes.EPS;
|
||||
if (EPS === type) {
|
||||
binding = env1_15;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object12, undefined);
|
||||
object4['bank'] = a0.bank;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding13 = new binding();
|
||||
return binding13 instanceof Object ? binding13 : value;
|
||||
}
|
||||
const PAYSAFE_CARD = PaymentSourceTypes.PAYSAFE_CARD;
|
||||
if (PAYSAFE_CARD === type) {
|
||||
binding = env1_17;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding12 = new binding();
|
||||
return binding12 instanceof Object ? binding12 : value;
|
||||
}
|
||||
const GCASH = PaymentSourceTypes.GCASH;
|
||||
if (GCASH === type) {
|
||||
binding = env1_18;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding11 = new binding();
|
||||
return binding11 instanceof Object ? binding11 : value;
|
||||
}
|
||||
const GRABPAY_MY = PaymentSourceTypes.GRABPAY_MY;
|
||||
if (GRABPAY_MY === type) {
|
||||
binding = env1_19;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding10 = new binding();
|
||||
return binding10 instanceof Object ? binding10 : value;
|
||||
}
|
||||
const MOMO_WALLET = PaymentSourceTypes.MOMO_WALLET;
|
||||
if (MOMO_WALLET === type) {
|
||||
binding = env1_20;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding9 = new binding();
|
||||
return binding9 instanceof Object ? binding9 : value;
|
||||
}
|
||||
const KAKAOPAY = PaymentSourceTypes.KAKAOPAY;
|
||||
if (KAKAOPAY === type) {
|
||||
binding = env1_22;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding8 = new binding();
|
||||
return binding8 instanceof Object ? binding8 : value;
|
||||
}
|
||||
const GOPAY_WALLET = PaymentSourceTypes.GOPAY_WALLET;
|
||||
if (GOPAY_WALLET === type) {
|
||||
binding = env1_23;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding7 = new binding();
|
||||
return binding7 instanceof Object ? binding7 : value;
|
||||
}
|
||||
const BANCONTACT = PaymentSourceTypes.BANCONTACT;
|
||||
if (BANCONTACT === type) {
|
||||
binding = env1_24;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding6 = new binding();
|
||||
return binding6 instanceof Object ? binding6 : value;
|
||||
}
|
||||
const IDEAL = PaymentSourceTypes.IDEAL;
|
||||
if (IDEAL === type) {
|
||||
binding = env1_16;
|
||||
object3 = {};
|
||||
copyDataProperties(object3, object12, undefined);
|
||||
object3['bank'] = a0.bank;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding5 = new binding();
|
||||
return binding5 instanceof Object ? binding5 : value;
|
||||
}
|
||||
const CASH_APP = PaymentSourceTypes.CASH_APP;
|
||||
if (CASH_APP === type) {
|
||||
binding = env1_25;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, object12, undefined);
|
||||
object2['username'] = a0.username;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding4 = new binding();
|
||||
return binding4 instanceof Object ? binding4 : value;
|
||||
}
|
||||
const TDS_WALLET = PaymentSourceTypes.TDS_WALLET;
|
||||
if (TDS_WALLET === type) {
|
||||
binding = env1_26;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding3 = new binding();
|
||||
return binding3 instanceof Object ? binding3 : value;
|
||||
}
|
||||
const PIX = PaymentSourceTypes.PIX;
|
||||
if (PIX === type) {
|
||||
binding = env1_27;
|
||||
copyDataProperties({}, object12, undefined);
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding2 = new binding();
|
||||
return binding2 instanceof Object ? binding2 : value;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(a0);
|
||||
}
|
||||
|
||||
function value_29291(a0) { // fn#29291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:2661, offset: 0x00fbecfe, size: 885 bytes, params: 2, frame: 14
|
||||
var binding;
|
||||
var binding2;
|
||||
var binding3;
|
||||
var binding4;
|
||||
var binding5;
|
||||
var binding6;
|
||||
var binding7;
|
||||
var binding8;
|
||||
var binding9;
|
||||
var binding10;
|
||||
var binding11;
|
||||
var binding12;
|
||||
var binding13;
|
||||
var binding14;
|
||||
var binding15;
|
||||
var binding16;
|
||||
var binding17;
|
||||
var binding18;
|
||||
var binding19;
|
||||
const type = a0.type;
|
||||
let value = environment.__proto__;
|
||||
const CARD = PaymentSourceTypes.CARD;
|
||||
if (CARD === type) {
|
||||
binding = env1_10;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding19 = new binding(a0);
|
||||
return binding19 instanceof Object ? binding19 : value;
|
||||
}
|
||||
const PAYPAL = PaymentSourceTypes.PAYPAL;
|
||||
if (PAYPAL === type) {
|
||||
binding = env1_11;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding18 = new binding(a0);
|
||||
return binding18 instanceof Object ? binding18 : value;
|
||||
}
|
||||
const SOFORT = PaymentSourceTypes.SOFORT;
|
||||
if (SOFORT === type) {
|
||||
binding = env1_12;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding17 = new binding(a0);
|
||||
return binding17 instanceof Object ? binding17 : value;
|
||||
}
|
||||
const SEPA_DEBIT = PaymentSourceTypes.SEPA_DEBIT;
|
||||
if (SEPA_DEBIT === type) {
|
||||
binding = env1_12;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding17 = new binding(a0);
|
||||
return binding17 instanceof Object ? binding17 : value;
|
||||
}
|
||||
const GIROPAY = PaymentSourceTypes.GIROPAY;
|
||||
if (GIROPAY === type) {
|
||||
binding = env1_13;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding16 = new binding(a0);
|
||||
return binding16 instanceof Object ? binding16 : value;
|
||||
}
|
||||
const PRZELEWY24 = PaymentSourceTypes.PRZELEWY24;
|
||||
if (PRZELEWY24 === type) {
|
||||
binding = env1_14;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding15 = new binding(a0);
|
||||
return binding15 instanceof Object ? binding15 : value;
|
||||
}
|
||||
const PAYSAFE_CARD = PaymentSourceTypes.PAYSAFE_CARD;
|
||||
if (PAYSAFE_CARD === type) {
|
||||
binding = env1_17;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding14 = new binding(a0);
|
||||
return binding14 instanceof Object ? binding14 : value;
|
||||
}
|
||||
const GCASH = PaymentSourceTypes.GCASH;
|
||||
if (GCASH === type) {
|
||||
binding = env1_18;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding13 = new binding(a0);
|
||||
return binding13 instanceof Object ? binding13 : value;
|
||||
}
|
||||
const GRABPAY_MY = PaymentSourceTypes.GRABPAY_MY;
|
||||
if (GRABPAY_MY === type) {
|
||||
binding = env1_19;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding12 = new binding(a0);
|
||||
return binding12 instanceof Object ? binding12 : value;
|
||||
}
|
||||
const MOMO_WALLET = PaymentSourceTypes.MOMO_WALLET;
|
||||
if (MOMO_WALLET === type) {
|
||||
binding = env1_20;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding11 = new binding(a0);
|
||||
return binding11 instanceof Object ? binding11 : value;
|
||||
}
|
||||
const VENMO = PaymentSourceTypes.VENMO;
|
||||
if (VENMO === type) {
|
||||
binding = env1_21;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding10 = new binding(a0);
|
||||
return binding10 instanceof Object ? binding10 : value;
|
||||
}
|
||||
const KAKAOPAY = PaymentSourceTypes.KAKAOPAY;
|
||||
if (KAKAOPAY === type) {
|
||||
binding = env1_22;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding9 = new binding(a0);
|
||||
return binding9 instanceof Object ? binding9 : value;
|
||||
}
|
||||
const GOPAY_WALLET = PaymentSourceTypes.GOPAY_WALLET;
|
||||
if (GOPAY_WALLET === type) {
|
||||
binding = env1_23;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding8 = new binding(a0);
|
||||
return binding8 instanceof Object ? binding8 : value;
|
||||
}
|
||||
const BANCONTACT = PaymentSourceTypes.BANCONTACT;
|
||||
if (BANCONTACT === type) {
|
||||
binding = env1_24;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding7 = new binding(a0);
|
||||
return binding7 instanceof Object ? binding7 : value;
|
||||
}
|
||||
const EPS = PaymentSourceTypes.EPS;
|
||||
if (EPS === type) {
|
||||
binding = env1_15;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding6 = new binding(a0);
|
||||
return binding6 instanceof Object ? binding6 : value;
|
||||
}
|
||||
const IDEAL = PaymentSourceTypes.IDEAL;
|
||||
if (IDEAL === type) {
|
||||
binding = env1_16;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding5 = new binding(a0);
|
||||
return binding5 instanceof Object ? binding5 : value;
|
||||
}
|
||||
const CASH_APP = PaymentSourceTypes.CASH_APP;
|
||||
if (CASH_APP === type) {
|
||||
binding = env1_25;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding4 = new binding(a0);
|
||||
return binding4 instanceof Object ? binding4 : value;
|
||||
}
|
||||
const TDS_WALLET = PaymentSourceTypes.TDS_WALLET;
|
||||
if (TDS_WALLET === type) {
|
||||
binding = env1_26;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding3 = new binding(a0);
|
||||
return binding3 instanceof Object ? binding3 : value;
|
||||
}
|
||||
const PIX = PaymentSourceTypes.PIX;
|
||||
if (PIX === type) {
|
||||
binding = env1_27;
|
||||
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
||||
binding2 = new binding(a0);
|
||||
return binding2 instanceof Object ? binding2 : value;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(type);
|
||||
}
|
||||
|
||||
function CreditCardSourceRecord(a0) { // fn#29293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3335, offset: 0x00fbf09b, size: 244 bytes, params: 2, frame: 18
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, CreditCardSourceRecord);
|
||||
const value3 = _callSuper_29281(this, CreditCardSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const CARD = PaymentSourceTypes.CARD;
|
||||
if (type !== CARD) {
|
||||
throw new global.Error('Cannot instantiate CreditCardSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.CARD);
|
||||
}
|
||||
const brand = a0.brand;
|
||||
value = '';
|
||||
value3.brand = brand ?? value;
|
||||
value3.last4 = a0.last4 ?? value;
|
||||
const expiresMonth = a0.expiresMonth;
|
||||
value = 0;
|
||||
value3.expiresMonth = expiresMonth ?? value;
|
||||
value3.expiresYear = a0.expiresYear ?? value;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function PaypalSourceRecord(a0) { // fn#29295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:3817, offset: 0x00fbf1b7, size: 162 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, PaypalSourceRecord);
|
||||
const value3 = _callSuper_29281(this, PaypalSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const PAYPAL = PaymentSourceTypes.PAYPAL;
|
||||
if (type !== PAYPAL) {
|
||||
throw new global.Error('Cannot instantiate PaypalSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PAYPAL);
|
||||
}
|
||||
let email = a0.email;
|
||||
email = !email ? '' : email;
|
||||
value3.email = email;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function SofortSourceRecord(a0) { // fn#29297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4143, offset: 0x00fbf281, size: 194 bytes, params: 2, frame: 19
|
||||
var Error;
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, SofortSourceRecord);
|
||||
const value3 = _callSuper_29281(this, SofortSourceRecord, [a0]);
|
||||
let type = a0.type;
|
||||
const SOFORT = PaymentSourceTypes.SOFORT;
|
||||
if (type !== SOFORT) {
|
||||
type = a0.type;
|
||||
var SEPA_DEBIT = PaymentSourceTypes.SEPA_DEBIT;
|
||||
if (type !== SEPA_DEBIT) {
|
||||
Error = global.Error;
|
||||
value = 'Cannot instantiate SofortSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.SOFORT + ' or ';
|
||||
value += PaymentSourceTypes.SEPA_DEBIT;
|
||||
throw new Error(value);
|
||||
}
|
||||
}
|
||||
let email = a0.email;
|
||||
email = !email ? '' : email;
|
||||
value3.email = email;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function GiropaySourceRecord(a0) { // fn#29299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4509, offset: 0x00fbf36b, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, GiropaySourceRecord);
|
||||
const value3 = _callSuper_29281(this, GiropaySourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const GIROPAY = PaymentSourceTypes.GIROPAY;
|
||||
if (type !== GIROPAY) {
|
||||
throw new global.Error('Cannot instantiate GiropaySourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GIROPAY);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function Przelewy24SourceRecord(a0) { // fn#29301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:4823, offset: 0x00fbf422, size: 174 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, Przelewy24SourceRecord);
|
||||
const value3 = _callSuper_29281(this, Przelewy24SourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const PRZELEWY24 = PaymentSourceTypes.PRZELEWY24;
|
||||
if (type !== PRZELEWY24) {
|
||||
throw new global.Error('Cannot instantiate Przelewy24SourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PRZELEWY24);
|
||||
}
|
||||
let email = a0.email;
|
||||
email = !email ? '' : email;
|
||||
value3.email = email;
|
||||
value3.bank = a0.bank;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function EPSSourceRecord(a0) { // fn#29303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5195, offset: 0x00fbf4f8, size: 155 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, EPSSourceRecord);
|
||||
const value3 = _callSuper_29281(this, EPSSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const EPS = PaymentSourceTypes.EPS;
|
||||
if (type !== EPS) {
|
||||
throw new global.Error('Cannot instantiate EPSSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.EPS);
|
||||
}
|
||||
value3.bank = a0.bank;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function IdealSourceRecord(a0) { // fn#29305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5491, offset: 0x00fbf5bb, size: 155 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, IdealSourceRecord);
|
||||
const value3 = _callSuper_29281(this, IdealSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const IDEAL = PaymentSourceTypes.IDEAL;
|
||||
if (type !== IDEAL) {
|
||||
throw new global.Error('Cannot instantiate IdealSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.IDEAL);
|
||||
}
|
||||
value3.bank = a0.bank;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function PaysafeSourceRecord(a0) { // fn#29307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:5803, offset: 0x00fbf67e, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, PaysafeSourceRecord);
|
||||
const value3 = _callSuper_29281(this, PaysafeSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const PAYSAFE_CARD = PaymentSourceTypes.PAYSAFE_CARD;
|
||||
if (type !== PAYSAFE_CARD) {
|
||||
throw new global.Error('Cannot instantiate PaysafeSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PAYSAFE_CARD);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function GcashSourceRecord(a0) { // fn#29309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6127, offset: 0x00fbf735, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, GcashSourceRecord);
|
||||
const value3 = _callSuper_29281(this, GcashSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const GCASH = PaymentSourceTypes.GCASH;
|
||||
if (type !== GCASH) {
|
||||
throw new global.Error('Cannot instantiate GcashSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GCASH);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function GrabPayMySourceRecord(a0) { // fn#29311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6425, offset: 0x00fbf7ec, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, GrabPayMySourceRecord);
|
||||
const value3 = _callSuper_29281(this, GrabPayMySourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const GRABPAY_MY = PaymentSourceTypes.GRABPAY_MY;
|
||||
if (type !== GRABPAY_MY) {
|
||||
throw new global.Error('Cannot instantiate GrabPayMySourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GRABPAY_MY);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function MomoWalletSourceRecord(a0) { // fn#29313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:6757, offset: 0x00fbf8a3, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, MomoWalletSourceRecord);
|
||||
const value3 = _callSuper_29281(this, MomoWalletSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const MOMO_WALLET = PaymentSourceTypes.MOMO_WALLET;
|
||||
if (type !== MOMO_WALLET) {
|
||||
throw new global.Error('Cannot instantiate MomoWalletSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.MOMO_WALLET);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function VenmoSourceRecord(a0) { // fn#29315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7097, offset: 0x00fbf95a, size: 162 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, VenmoSourceRecord);
|
||||
const value3 = _callSuper_29281(this, VenmoSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const VENMO = PaymentSourceTypes.VENMO;
|
||||
if (type !== VENMO) {
|
||||
throw new global.Error('Cannot instantiate VenmoSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.VENMO);
|
||||
}
|
||||
let username = a0.username;
|
||||
username = !username ? '' : username;
|
||||
value3.username = username;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function KaKaoPaySourceRecord(a0) { // fn#29317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7421, offset: 0x00fbfa24, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, KaKaoPaySourceRecord);
|
||||
const value3 = _callSuper_29281(this, KaKaoPaySourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const KAKAOPAY = PaymentSourceTypes.KAKAOPAY;
|
||||
if (type !== KAKAOPAY) {
|
||||
throw new global.Error('Cannot instantiate KaKaoPaySourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.KAKAOPAY);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function GoPayWalletSourceRecord(a0) { // fn#29319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:7743, offset: 0x00fbfadb, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, GoPayWalletSourceRecord);
|
||||
const value3 = _callSuper_29281(this, GoPayWalletSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const GOPAY_WALLET = PaymentSourceTypes.GOPAY_WALLET;
|
||||
if (type !== GOPAY_WALLET) {
|
||||
throw new global.Error('Cannot instantiate GoPayWalletSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.GOPAY_WALLET);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function BancontactSourceRecord(a0) { // fn#29321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8091, offset: 0x00fbfb92, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, BancontactSourceRecord);
|
||||
const value3 = _callSuper_29281(this, BancontactSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const BANCONTACT = PaymentSourceTypes.BANCONTACT;
|
||||
if (type !== BANCONTACT) {
|
||||
throw new global.Error('Cannot instantiate BancontactSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.BANCONTACT);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function CashAppSourceRecord(a0) { // fn#29323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8429, offset: 0x00fbfc49, size: 162 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, CashAppSourceRecord);
|
||||
const value3 = _callSuper_29281(this, CashAppSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const CASH_APP = PaymentSourceTypes.CASH_APP;
|
||||
if (type !== CASH_APP) {
|
||||
throw new global.Error('Cannot instantiate Cashapp with type: ' + a0.type + ', must be ' + PaymentSourceTypes.CASH_APP);
|
||||
}
|
||||
let username = a0.username;
|
||||
username = !username ? '' : username;
|
||||
value3.username = username;
|
||||
return value3;
|
||||
}
|
||||
|
||||
function AppleSourceRecord(a0) { // fn#29325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:8759, offset: 0x00fbfd13, size: 217 bytes, params: 2, frame: 19
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, AppleSourceRecord);
|
||||
a0.id = '';
|
||||
const APPLE_PARTNER = PaymentGateways.APPLE_PARTNER;
|
||||
a0.paymentGateway = APPLE_PARTNER;
|
||||
let APPLE = PaymentSourceTypes.APPLE;
|
||||
a0.type = APPLE;
|
||||
a0.billingAddress = {};
|
||||
a0.country = '';
|
||||
a0.invalid = false;
|
||||
a0.isDefault = false;
|
||||
a0.flags = 0;
|
||||
const value3 = _callSuper_29281(this, AppleSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
APPLE = PaymentSourceTypes.APPLE;
|
||||
if (type !== APPLE) {
|
||||
throw new global.Error('Cannot instantiate AppleSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.APPLE);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function TDSWalletSourceRecord(a0) { // fn#29327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9184, offset: 0x00fbfe14, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, TDSWalletSourceRecord);
|
||||
const value3 = _callSuper_29281(this, TDSWalletSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const TDS_WALLET = PaymentSourceTypes.TDS_WALLET;
|
||||
if (type !== TDS_WALLET) {
|
||||
throw new global.Error('Cannot instantiate TDSWalletSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.TDS_WALLET);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function PixSourceRecord(a0) { // fn#29329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3933:9516, offset: 0x00fbfecb, size: 143 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
env1_2(this, PixSourceRecord);
|
||||
const value3 = _callSuper_29281(this, PixSourceRecord, [a0]);
|
||||
const type = a0.type;
|
||||
const PIX = PaymentSourceTypes.PIX;
|
||||
if (type !== PIX) {
|
||||
throw new global.Error('Cannot instantiate PixSourceRecord with type: ' + a0.type + ', must be ' + PaymentSourceTypes.PIX);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
/* Metro module 7262; source: records/PromotionRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 1880, 7263, 1391, 2] */
|
||||
function _fun58384(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7440:6, offset: 0x016c62b6, size: 224 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const env0_7 = (require(1880) /* metro dependency 1880: PremiumConstants */).PromotionFlags;
|
||||
value = _fun58388(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/PromotionRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_58385() { // fn#58385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7440:183, offset: 0x016c6396, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_58385_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun58388(a0) { // fn#58388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7440:382, offset: 0x016c63f4, size: 194 bytes, params: 2, frame: 17
|
||||
const closure = PromotionRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'isBogo', get: function() {
|
||||
return this.promotionType === require(dependencyMap[7]).PromotionTypes.BOGO;
|
||||
}}, {key: 'isMarketingMoment', get: function() {
|
||||
return this.promotionType === require(dependencyMap[7]).PromotionTypes.MARKETING_MOMENT;
|
||||
}}, {key: 'hasFlag', value: value_58392}, {key: 'isCountryRestricted', value: value_58393},
|
||||
{key: 'isRedeemableByTrialUsers', value: function() {
|
||||
return this.hasFlag(PromotionFlags.IS_OUTBOUND_REDEEMABLE_BY_TRIAL_USERS);
|
||||
}}], [{key: 'createFromServer', value: value_58395}]);
|
||||
}
|
||||
|
||||
function PromotionRecord({id, trialId, startDate, endDate, outboundRedemptionEndDate, inboundHeaderText, inboundBodyText, inboundHelpCenterLink, outboundTitle, outboundRedemptionModalBody, outboundTermsAndConditions, outboundRedemptionPageLink, outboundRedemptionUrlFormat, flags, inboundRestrictedCountries, outboundRestrictedCountries, allowedCountries, countryListMode, promotionType, partnerId, marketingComponents, rewardSkuIds, promotionKey}) { // fn#58389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7440:394, offset: 0x016c64b6, size: 459 bytes, params: 2, frame: 21
|
||||
env1_2(this, PromotionRecord);
|
||||
const value3 = env1_5(PromotionRecord);
|
||||
const value6 = env1_4(this, _isNativeReflectConstruct_58385() ? global.Reflect.construct(value3, [],
|
||||
env1_5(this).constructor) : value3.apply(this, undefined));
|
||||
value6.id = id;
|
||||
value6.trialId = trialId;
|
||||
value6.startDate = startDate;
|
||||
value6.endDate = endDate;
|
||||
value6.outboundRedemptionEndDate = outboundRedemptionEndDate;
|
||||
value6.inboundHeaderText = inboundHeaderText;
|
||||
value6.inboundBodyText = inboundBodyText;
|
||||
value6.inboundHelpCenterLink = inboundHelpCenterLink;
|
||||
value6.outboundTitle = outboundTitle;
|
||||
value6.outboundRedemptionModalBody = outboundRedemptionModalBody;
|
||||
value6.outboundTermsAndConditions = outboundTermsAndConditions;
|
||||
value6.outboundRedemptionPageLink = outboundRedemptionPageLink;
|
||||
value6.outboundRedemptionUrlFormat = outboundRedemptionUrlFormat;
|
||||
value6.flags = flags ?? 0;
|
||||
value6.inboundRestrictedCountries = inboundRestrictedCountries ?? [];
|
||||
value6.outboundRestrictedCountries = outboundRestrictedCountries ?? [];
|
||||
value6.allowedCountries = allowedCountries ?? [];
|
||||
value6.countryListMode = countryListMode ?? (require(7263) /* metro dependency 7263: constants */).CountryListMode.BLOCKLIST;
|
||||
value6.promotionType = promotionType;
|
||||
value6.partnerId = partnerId;
|
||||
value6.marketingComponents = marketingComponents;
|
||||
value6.rewardSkuIds = rewardSkuIds;
|
||||
value6.promotionKey = promotionKey;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_58392(a0) { // fn#58392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7440:1887, offset: 0x016c66e9, size: 50 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
return value.hasFlag(this.flags, a0);
|
||||
}
|
||||
|
||||
function value_58393(a0) { // fn#58393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7440:1971, offset: 0x016c671b, size: 258 bytes, params: 2, frame: 16
|
||||
var allowedCountries;
|
||||
const countryListMode = this.countryListMode;
|
||||
const CountryListMode = (require(7263) /* metro dependency 7263: constants */).CountryListMode;
|
||||
const ALLOWLIST = CountryListMode.ALLOWLIST;
|
||||
if (countryListMode === ALLOWLIST) {
|
||||
allowedCountries = this.allowedCountries;
|
||||
return !allowedCountries.includes(a0);
|
||||
}
|
||||
const promotionType = this.promotionType;
|
||||
const PromotionTypes = (require(7263) /* metro dependency 7263: constants */).PromotionTypes;
|
||||
const THIRD_PARTY_INBOUND = PromotionTypes.THIRD_PARTY_INBOUND;
|
||||
if (THIRD_PARTY_INBOUND === promotionType) {
|
||||
return this.inboundRestrictedCountries.includes(a0);
|
||||
}
|
||||
const THIRD_PARTY_DIRECT_FULFILLMENT = PromotionTypes.THIRD_PARTY_DIRECT_FULFILLMENT;
|
||||
if (THIRD_PARTY_DIRECT_FULFILLMENT === promotionType) {
|
||||
return this.inboundRestrictedCountries.includes(a0);
|
||||
}
|
||||
const THIRD_PARTY_OUTBOUND = PromotionTypes.THIRD_PARTY_OUTBOUND;
|
||||
if (THIRD_PARTY_OUTBOUND === promotionType) {
|
||||
return this.outboundRestrictedCountries.includes(a0);
|
||||
}
|
||||
const THIRD_PARTY_OUTBOUND_RECURRING = PromotionTypes.THIRD_PARTY_OUTBOUND_RECURRING;
|
||||
if (THIRD_PARTY_OUTBOUND_RECURRING === promotionType) {
|
||||
return this.outboundRestrictedCountries.includes(a0);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_58395(a0) { // fn#58395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7440:2593, offset: 0x016c683a, size: 687 bytes, params: 2, frame: 18
|
||||
var r1;
|
||||
const object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.trialId = a0.trial_id;
|
||||
let Date = global.Date;
|
||||
let date = new Date(a0.start_date);
|
||||
object2.startDate = date;
|
||||
Date = global.Date;
|
||||
object2.endDate = new Date(a0.end_date);
|
||||
const outbound_redemption_end_date = a0.outbound_redemption_end_date;
|
||||
date = null;
|
||||
if (date != outbound_redemption_end_date) {
|
||||
date = new global.Date(a0.outbound_redemption_end_date);
|
||||
} else {
|
||||
r1 = date;
|
||||
}
|
||||
object2.outboundRedemptionEndDate = r1;
|
||||
const inbound_header_text = a0.inbound_header_text;
|
||||
const value4 = '';
|
||||
let r5 = date != inbound_header_text ? inbound_header_text : value4;
|
||||
object2.inboundHeaderText = r5;
|
||||
const inbound_body_text = a0.inbound_body_text;
|
||||
object2.inboundBodyText = date != inbound_body_text ? inbound_body_text : value4;
|
||||
const inbound_help_center_link = a0.inbound_help_center_link;
|
||||
object2.inboundHelpCenterLink = date != inbound_help_center_link ? inbound_help_center_link : value4;
|
||||
const outbound_title = a0.outbound_title;
|
||||
object2.outboundTitle = date != outbound_title ? outbound_title : value4;
|
||||
const outbound_redemption_modal_body = a0.outbound_redemption_modal_body;
|
||||
object2.outboundRedemptionModalBody = date != outbound_redemption_modal_body ? outbound_redemption_modal_body : value4;
|
||||
const outbound_terms_and_conditions = a0.outbound_terms_and_conditions;
|
||||
object2.outboundTermsAndConditions = date != outbound_terms_and_conditions ? outbound_terms_and_conditions : value4;
|
||||
const outbound_redemption_page_link = a0.outbound_redemption_page_link;
|
||||
object2.outboundRedemptionPageLink = date != outbound_redemption_page_link ? outbound_redemption_page_link : value4;
|
||||
const outbound_redemption_url_format = a0.outbound_redemption_url_format;
|
||||
object2.outboundRedemptionUrlFormat = date != outbound_redemption_url_format ? outbound_redemption_url_format : value4;
|
||||
object2.flags = a0.flags;
|
||||
object2.inboundRestrictedCountries = a0.inbound_restricted_countries;
|
||||
object2.outboundRestrictedCountries = a0.outbound_restricted_countries;
|
||||
const allowed_countries = a0.allowed_countries;
|
||||
object2.allowedCountries = date != allowed_countries ? allowed_countries : [];
|
||||
const country_list_mode = a0.country_list_mode;
|
||||
object2.countryListMode = date != country_list_mode ? country_list_mode : (require(7263) /* metro dependency 7263: constants */).CountryListMode.BLOCKLIST;
|
||||
object2.promotionType = a0.promotion_type;
|
||||
const partner_id = a0.partner_id;
|
||||
object2.partnerId = date != partner_id ? partner_id : date;
|
||||
const marketing_components = a0.marketing_components;
|
||||
object2.marketingComponents = date != marketing_components ? marketing_components : [];
|
||||
const metadata = a0.metadata;
|
||||
const value6 = undefined;
|
||||
const reward_sku_ids = date == metadata || date == metadata.premium_promotion ? value6 : metadata.premium_promotion.reward_sku_ids;
|
||||
r5 = date != reward_sku_ids ? reward_sku_ids : date == a0.metadata || date == a0.metadata.gift_promotion ? value6 : a0.metadata.gift_promotion.reward_sku_ids;
|
||||
r5 = date == r5 ? [] : r5;
|
||||
object2.rewardSkuIds = r5;
|
||||
const promotion_key = a0.promotion_key;
|
||||
object2.promotionKey = date != promotion_key ? promotion_key : value4;
|
||||
date = Object.create(PromotionRecord.prototype, {constructor: {value: PromotionRecord}});
|
||||
const promotionRecord = new PromotionRecord(object2);
|
||||
return promotionRecord instanceof Object ? promotionRecord : date;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/* Metro module 10579; source: records/SpotifyApplicationRecord.tsx; dependencies: [6, 7, 15, 17, 18, 4235, 4915, 2] */
|
||||
function _fun81599(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10765:6, offset: 0x01ed78c1, size: 262 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
const env0_5 = (importDefault(4915) /* metro dependency 4915: Platforms */).get('spotify');
|
||||
value = _fun81603(value);
|
||||
const value4 = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/SpotifyApplicationRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.SPOTIFY_APPLICATION_ID = 'spotify';
|
||||
exports.SpotifyApplication = value4;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_81600() { // fn#81600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10765:158, offset: 0x01ed79c7, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_81600_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun81603(a0) { // fn#81603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10765:386, offset: 0x01ed7a29, size: 99 bytes, params: 2, frame: 16
|
||||
const closure = SpotifyApplicationRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getIconURL', value: value_81605}, {key: 'getWhiteIconURL', value: value_81606}]);
|
||||
}
|
||||
|
||||
function SpotifyApplicationRecord() { // fn#81604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10765:398, offset: 0x01ed7a8c, size: 139 bytes, params: 1, frame: 20
|
||||
env1_0(this, SpotifyApplicationRecord);
|
||||
const items2 = [{}];
|
||||
const value3 = env1_3(SpotifyApplicationRecord);
|
||||
const value6 = env1_2(this, _isNativeReflectConstruct_81600() ? global.Reflect.construct(value3, items2,
|
||||
env1_3(this).constructor) : value3.apply(this, items2));
|
||||
value6.id = 'spotify';
|
||||
value6.name = env1_5.name;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_81605() { // fn#81605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10765:762, offset: 0x01ed7b17, size: 20 bytes, params: 1, frame: 1
|
||||
return env1_5.icon.lightPNG;
|
||||
}
|
||||
|
||||
function value_81606() { // fn#81606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10765:827, offset: 0x01ed7b2b, size: 20 bytes, params: 1, frame: 1
|
||||
return env1_5.icon.whitePNG;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,244 @@
|
||||
/* Metro module 13047; source: records/StoreListingRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 1885, 13048, 2] */
|
||||
function _fun99644(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13237:6, offset: 0x021cfcfa, size: 222 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
value = _fun99648(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/StoreListingRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_99645() { // fn#99645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13237:168, offset: 0x021cfdd8, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_99645_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun99648(a0) { // fn#99648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13237:367, offset: 0x021cfe3a, size: 102 bytes, params: 2, frame: 17
|
||||
const closure = StoreListingRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'isSlimDirectoryVersion', value: function() {
|
||||
return this.description == null;
|
||||
}}], [{key: 'createFromServer', value: value_99651}]);
|
||||
}
|
||||
|
||||
function StoreListingRecord({id, applicationId, skuId, skuFlags, summary, tagline, flavorText, description, carouselItems, childSkuIds, alternativeSkuIds, assets, staffNotes, guild, thumbnail, boxArt, previewVideo, headerBackground, headerLogoDarkTheme, headerLogoLightTheme, heroBackground, heroVideo, entitlementBranchId, benefits, published}) { // fn#99649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13237:379, offset: 0x021cfea0, size: 561 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, StoreListingRecord);
|
||||
const value3 = env1_5(StoreListingRecord);
|
||||
value = env1_4(this, _isNativeReflectConstruct_99645() ? global.Reflect.construct(value3, [],
|
||||
env1_5(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.applicationId = applicationId;
|
||||
value.skuId = skuId;
|
||||
value.skuFlags = skuFlags;
|
||||
value.summary = summary;
|
||||
value.tagline = tagline;
|
||||
value.flavorText = flavorText;
|
||||
value.description = description;
|
||||
value.carouselItems = carouselItems ?? [];
|
||||
value.childSkuIds = childSkuIds ?? [];
|
||||
value.alternativeSkuIds = alternativeSkuIds ?? [];
|
||||
value.assets = assets ?? [];
|
||||
value.staffNotes = staffNotes;
|
||||
value.guild = guild;
|
||||
value.thumbnail = thumbnail ?? null;
|
||||
value.boxArt = boxArt ?? null;
|
||||
value.previewVideo = previewVideo ?? null;
|
||||
value.headerBackground = headerBackground ?? null;
|
||||
value.headerLogoDarkTheme = headerLogoDarkTheme ?? null;
|
||||
value.headerLogoLightTheme = headerLogoLightTheme ?? null;
|
||||
value.heroBackground = heroBackground ?? null;
|
||||
value.heroVideo = heroVideo ?? null;
|
||||
value.entitlementBranchId = entitlementBranchId ?? null;
|
||||
value.benefits = benefits;
|
||||
const Boolean = global.Boolean;
|
||||
value.published = Boolean(published);
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_99651(a0) { // fn#99651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13237:1705, offset: 0x021d00e1, size: 1051 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var r4;
|
||||
var r6;
|
||||
var r3;
|
||||
var object4;
|
||||
var user;
|
||||
var value7;
|
||||
var userRecord;
|
||||
var object5;
|
||||
var value10;
|
||||
var moduleValue;
|
||||
var value12;
|
||||
var moduleValue2;
|
||||
var value14;
|
||||
var moduleValue3;
|
||||
var value16;
|
||||
var moduleValue4;
|
||||
var value18;
|
||||
var moduleValue5;
|
||||
var value20;
|
||||
var moduleValue6;
|
||||
var value22;
|
||||
var moduleValue7;
|
||||
const staff_notes = a0.staff_notes;
|
||||
const object6 = {};
|
||||
object6.id = a0.id;
|
||||
object6.applicationId = a0.sku.application_id;
|
||||
object6.skuId = a0.sku.id;
|
||||
object6.skuFlags = a0.sku.flags;
|
||||
object6.summary = a0.summary;
|
||||
object6.tagline = a0.tagline;
|
||||
object6.flavorText = a0.flavor_text;
|
||||
object6.description = a0.description;
|
||||
const child_skus = a0.child_skus;
|
||||
let value = null;
|
||||
object6.childSkuIds = value != child_skus ? a0.child_skus.map(function(a0) {
|
||||
return a0.id;
|
||||
}) : value;
|
||||
object6.alternativeSkuIds = value != a0.alternative_skus ? a0.alternative_skus.map(function(a0) {
|
||||
return a0.id;
|
||||
}) : value;
|
||||
object6.carouselItems = value != a0.carousel_items ? a0.carousel_items.map(function(a0) {
|
||||
return {assetId: a0.asset_id, youtubeVideoId: a0.youtube_video_id};
|
||||
}) : value;
|
||||
object6.assets = value != a0.assets ? a0.assets.map((require(13048) /* metro dependency 13048: GameStoreAsset */).transformStoreAssetFromServer) : value;
|
||||
if (value != staff_notes) {
|
||||
object4 = {};
|
||||
object4.content = staff_notes.content;
|
||||
user = staff_notes.user;
|
||||
if (value != user) {
|
||||
value7 = environment.__proto__;
|
||||
user = staff_notes.user;
|
||||
userRecord = new UserRecord();
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
object4.user = r6;
|
||||
r4 = object4;
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.staffNotes = r4;
|
||||
let guild = a0.guild;
|
||||
if (value != guild) {
|
||||
object5 = {};
|
||||
guild = a0.guild;
|
||||
object5.id = guild.id;
|
||||
guild = a0.guild;
|
||||
object5.name = guild.name;
|
||||
guild = a0.guild;
|
||||
object5.icon = guild.icon;
|
||||
guild = a0.guild;
|
||||
object5.approximateMemberCount = guild.approximate_member_count;
|
||||
guild = a0.guild;
|
||||
object5.approximatePresenceCount = guild.approximate_presence_count;
|
||||
r4 = object5;
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.guild = r4;
|
||||
if (value != a0.thumbnail) {
|
||||
value10 = environment.__proto__;
|
||||
moduleValue = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
r4 = moduleValue.transformStoreAssetFromServer(a0.thumbnail);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.thumbnail = r4;
|
||||
if (value != a0.preview_video) {
|
||||
value12 = environment.__proto__;
|
||||
moduleValue2 = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
r4 = moduleValue2.transformStoreAssetFromServer(a0.preview_video);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.previewVideo = r4;
|
||||
if (value != a0.header_background) {
|
||||
value14 = environment.__proto__;
|
||||
moduleValue3 = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
r4 = moduleValue3.transformStoreAssetFromServer(a0.header_background);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.headerBackground = r4;
|
||||
if (value != a0.header_logo_dark_theme) {
|
||||
value16 = environment.__proto__;
|
||||
moduleValue4 = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
r4 = moduleValue4.transformStoreAssetFromServer(a0.header_logo_dark_theme);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.headerLogoDarkTheme = r4;
|
||||
if (value != a0.header_logo_light_theme) {
|
||||
value18 = environment.__proto__;
|
||||
moduleValue5 = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
r4 = moduleValue5.transformStoreAssetFromServer(a0.header_logo_light_theme);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.headerLogoLightTheme = r4;
|
||||
if (value != a0.box_art) {
|
||||
value20 = environment.__proto__;
|
||||
moduleValue6 = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
r4 = moduleValue6.transformStoreAssetFromServer(a0.box_art);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.boxArt = r4;
|
||||
if (value != a0.hero_background) {
|
||||
value22 = environment.__proto__;
|
||||
moduleValue7 = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
r4 = moduleValue7.transformStoreAssetFromServer(a0.hero_background);
|
||||
} else {
|
||||
r4 = value;
|
||||
}
|
||||
object6.heroBackground = r4;
|
||||
if (value != a0.hero_video) {
|
||||
value = environment.__proto__;
|
||||
value = require(13048) /* metro dependency 13048: GameStoreAsset */;
|
||||
value = value.transformStoreAssetFromServer(a0.hero_video);
|
||||
r3 = value;
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
object6.heroVideo = r3;
|
||||
object6.entitlementBranchId = a0.entitlement_branch_id;
|
||||
object6.benefits = a0.benefits;
|
||||
object6.published = a0.published;
|
||||
value = Object.create(StoreListingRecord.prototype, {constructor: {value: StoreListingRecord}});
|
||||
const storeListingRecord = new StoreListingRecord(object6);
|
||||
return storeListingRecord instanceof Object ? storeListingRecord : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,246 @@
|
||||
/* Metro module 3803; source: records/SubscriptionPlanRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 1880, 2] */
|
||||
function _fun29196(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:6, offset: 0x00fbcd98, size: 262 bytes, params: 8, frame: 20
|
||||
const closure = function(a0, a1) {
|
||||
return {amount: a0.amount, currency: a0.currency, tax: 0, taxInclusive: a1};
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_5 = premiumConstantsModule.PremiumSubscriptionSKUs;
|
||||
const env0_6 = premiumConstantsModule.PremiumTypes;
|
||||
const env0_7 = premiumConstantsModule.SubscriptionPlans;
|
||||
value = _fun29201(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/SubscriptionPlanRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.getPriceFromServer = closure;
|
||||
exports.isNoneSubscription = function(a0) {
|
||||
var NONE_MONTH = SubscriptionPlans.NONE_MONTH;
|
||||
return [NONE_MONTH, SubscriptionPlans.NONE_3_MONTH, SubscriptionPlans.NONE_6_MONTH,
|
||||
SubscriptionPlans.NONE_YEAR].includes(a0);
|
||||
};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_29197() { // fn#29197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:235, offset: 0x00fbce9e, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_29197_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun29201(a0) { // fn#29201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:532, offset: 0x00fbcf28, size: 121 bytes, params: 2, frame: 17
|
||||
const closure = SubscriptionPlanRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'premiumSubscriptionType', get: function() {
|
||||
var skuId = this.skuId;
|
||||
if (PremiumSubscriptionSKUs.LEGACY === skuId) {
|
||||
return PremiumTypes.TIER_2;
|
||||
}
|
||||
if (PremiumSubscriptionSKUs.TIER_2 === skuId) {
|
||||
return PremiumTypes.TIER_2;
|
||||
}
|
||||
if (PremiumSubscriptionSKUs.TIER_1 === skuId) {
|
||||
return PremiumTypes.TIER_1;
|
||||
}
|
||||
if (PremiumSubscriptionSKUs.TIER_0 === skuId) {
|
||||
return PremiumTypes.TIER_0;
|
||||
}
|
||||
return null;
|
||||
}}, {key: 'toServerData', value: value_29204}], [{key: 'createFromServer', value: value_29206}]);
|
||||
}
|
||||
|
||||
function SubscriptionPlanRecord({id, name, interval, intervalCount, taxInclusive, skuId, currency, price, prices}) { // fn#29202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:544, offset: 0x00fbcfa1, size: 216 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, SubscriptionPlanRecord);
|
||||
const value3 = env1_3(SubscriptionPlanRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_29197() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
value.id = id;
|
||||
value.name = name;
|
||||
value.interval = interval;
|
||||
value.intervalCount = intervalCount;
|
||||
value.taxInclusive = taxInclusive;
|
||||
value.skuId = skuId;
|
||||
value.currency = currency;
|
||||
value.price = price;
|
||||
value.prices = prices;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_29204() { // fn#29204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:1247, offset: 0x00fbd0e4, size: 157 bytes, params: 1, frame: 14
|
||||
const Object = global.Object;
|
||||
Object.keys(this.prices).forEach(_fun29205);
|
||||
return {id: this.id, name: this.name, sku_id: this.skuId, interval: this.interval,
|
||||
interval_count: this.intervalCount, tax_inclusive: this.taxInclusive, currency: this.currency,
|
||||
price: this.price, prices: {}, price_tier: this.price};
|
||||
}
|
||||
|
||||
function value_29206(a0) { // fn#29206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:1715, offset: 0x00fbd1d7, size: 188 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var Object;
|
||||
var value;
|
||||
const env0_0 = a0;
|
||||
let object2 = {};
|
||||
if (a0.prices == null) {
|
||||
r1 = object2;
|
||||
} else {
|
||||
Object = global.Object;
|
||||
value = Object.keys(a0.prices);
|
||||
value = value.reduce(_fun29207, {});
|
||||
r1 = value;
|
||||
}
|
||||
object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.name = a0.name;
|
||||
object2.interval = a0.interval;
|
||||
object2.intervalCount = a0.interval_count;
|
||||
object2.taxInclusive = a0.tax_inclusive;
|
||||
object2.skuId = a0.sku_id;
|
||||
object2.currency = a0.currency;
|
||||
object2.price = a0.price;
|
||||
object2.prices = r1;
|
||||
value = Object.create(SubscriptionPlanRecord.prototype, {constructor: {value: SubscriptionPlanRecord}});
|
||||
const subscriptionPlanRecord = new SubscriptionPlanRecord(object2);
|
||||
return subscriptionPlanRecord instanceof Object ? subscriptionPlanRecord : value;
|
||||
}
|
||||
|
||||
function _fun29205(a0) { // fn#29205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:1308, offset: 0x00fbd181, size: 86 bytes, params: 2, frame: 6
|
||||
const property = env0_0.prices[a0];
|
||||
env0_1[a0] = {country_prices: {country_code: property.countryPrices.countryCode,
|
||||
prices: property.countryPrices.prices}, payment_source_prices: property.paymentSourcePrices};
|
||||
}
|
||||
|
||||
function _fun29207(a0, a1) { // fn#29207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:1792, offset: 0x00fbd293, size: 159 bytes, params: 3, frame: 18
|
||||
let prices = env0_0.prices;
|
||||
if (prices != null) {
|
||||
prices = env0_0.prices;
|
||||
var property = prices[a1];
|
||||
var object3 = {};
|
||||
var object4 = {};
|
||||
var country_prices = property.country_prices;
|
||||
object4.countryCode = country_prices.country_code;
|
||||
country_prices = property.country_prices;
|
||||
prices = country_prices.prices;
|
||||
object4.prices = prices.map(_fun29208);
|
||||
object3.countryPrices = object4;
|
||||
var Object = global.Object;
|
||||
object3.paymentSourcePrices = Object.entries(property.payment_source_prices).reduce(function(a0, a1) {
|
||||
var r1;
|
||||
var r3;
|
||||
var r4;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a1[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r3 = value2;
|
||||
r4 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r3 = value3;
|
||||
r4 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r3 = value3;
|
||||
r4 = item;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r1.return();
|
||||
}
|
||||
a0[r2] = r4.map(_fun29210);
|
||||
return a0;
|
||||
}, {});
|
||||
a0[a1] = object3;
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun29208(a0) { // fn#29208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:1951, offset: 0x00fbd332, size: 33 bytes, params: 2, frame: 13
|
||||
return getPriceFromServer(a0, env1_0.tax_inclusive);
|
||||
}
|
||||
|
||||
function _fun29209(a0, a1) { // fn#29209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:2063, offset: 0x00fbd353, size: 89 bytes, params: 3, frame: 16
|
||||
var r1;
|
||||
var r3;
|
||||
var r4;
|
||||
var item3;
|
||||
var value3;
|
||||
const iterator = a1[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value = undefined;
|
||||
const value2 = item2 === value;
|
||||
const r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r3 = value2;
|
||||
r4 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r3 = value3;
|
||||
r4 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r3 = value3;
|
||||
r4 = item;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r1.return();
|
||||
}
|
||||
a0[r2] = r4.map(_fun29210);
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun29210(a0) { // fn#29210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3930:2087, offset: 0x00fbd3ac, size: 33 bytes, params: 2, frame: 13
|
||||
return getPriceFromServer(a0, env2_0.tax_inclusive);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,462 @@
|
||||
/* Metro module 3809; source: records/SubscriptionRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 3810, 3811, 661, 3813, 1880, 3814, 44, 477, 3815, 1900, 2] */
|
||||
function _fun29418(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#29418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:6, offset: 0x00fc18ee, size: 379 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const createSubscriptionItemFromServer = function(a0) {
|
||||
return {id: a0.id, planId: a0.plan_id, quantity: a0.quantity};
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const googlePlayPriceChangeRecord = importDefault(3810) /* metro dependency 3810: GooglePlayPriceChangeRecord */;
|
||||
const invoiceRecord = importDefault(3811) /* metro dependency 3811: InvoiceRecord */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_10 = constantsModule.PaymentGateways;
|
||||
const env0_11 = constantsModule.SubscriptionStatusTypes;
|
||||
const env0_12 = constantsModule.SubscriptionStatusTypesSets;
|
||||
const env0_13 = constantsModule.SubscriptionTypes;
|
||||
const billingConstantsModule = require(3813) /* metro dependency 3813: BillingConstants */;
|
||||
const env0_14 = billingConstantsModule.SubscriptionPauseReason;
|
||||
const env0_15 = billingConstantsModule.SubscriptionPauseReasonSets;
|
||||
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_16 = premiumConstantsModule.PREMIUM_PLANS;
|
||||
const env0_17 = premiumConstantsModule.SubscriptionPlanInfo;
|
||||
const env0_18 = premiumConstantsModule.SubscriptionPlans;
|
||||
value = _fun29423(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/SubscriptionRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.SubscriptionRecord = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_29419() { // fn#29419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:436, offset: 0x00fc1a69, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_29419_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun29423(a0) { // fn#29423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:733, offset: 0x00fc1aed, size: 785 bytes, params: 2, frame: 17
|
||||
const closure = SubscriptionRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'getCurrentSubscriptionPlanIdForGroup', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
return this.items.find(_fun29428)?.planId;
|
||||
}}, {key: 'isPremium', get: function() {
|
||||
return this.type === SubscriptionTypes.PREMIUM;
|
||||
}}, {key: 'isACOM', get: function() {
|
||||
return this.paymentGateway === PaymentGateways.APPLE_ADVANCED_COMMERCE;
|
||||
}}, {key: 'planIdForCurrencies', get: get_29431}, {key: 'planIdFromItems', get: function() {
|
||||
var Object = global.Object;
|
||||
return this.getCurrentSubscriptionPlanIdForGroup(Object.values(SubscriptionPlans));
|
||||
}}, {key: 'premiumPlanIdFromItems', get: function() {
|
||||
var r4;
|
||||
var items = [];
|
||||
arraySpread(items, PREMIUM_PLANS, 0, r4);
|
||||
return this.getCurrentSubscriptionPlanIdForGroup(items);
|
||||
}}, {key: 'isPurchasedViaDesktop', get: function() {
|
||||
return this.paymentGateway == null;
|
||||
}}, {key: 'isPurchasedViaAppleGeneric', get: get_29435}, {key: 'isPurchasedViaApple', get: get_29436},
|
||||
{key: 'isPurchasedViaGoogle', get: function() {
|
||||
return this.paymentGateway === PaymentGateways.GOOGLE;
|
||||
}}, {key: 'isPurchasedExternally', get: function() {
|
||||
return this.isPurchasedViaApple || this.isPurchasedViaGoogle;
|
||||
}}, {key: 'isOnPlatformMatchingExternalPaymentGateway', get: get_29439}, {key: 'hasExternalPlanChange',
|
||||
get: function() {
|
||||
return this.isPurchasedExternally && this.renewalMutations != null && this.paymentGatewayPlanId !== this.renewalMutations.paymentGatewayPlanId;
|
||||
}}, {key: 'hasPremiumNitroMonthly', get: function() {
|
||||
return this.items.find(_fun29442) != null;
|
||||
}}, {key: 'isBoostOnly', get: function() {
|
||||
return this.items.every(_fun29444);
|
||||
}}, {key: 'isPausedOrPausePending', get: function() {
|
||||
var ALL_PAUSE = SubscriptionStatusTypesSets.ALL_PAUSE;
|
||||
return ALL_PAUSE.has(this.status);
|
||||
}}, {key: 'isPaused', get: function() {
|
||||
return this.status === SubscriptionStatusTypes.PAUSED;
|
||||
}}, {key: 'isPausedForFractionalPremium', get: get_29447}, {key: 'isPausedAllowsUpdatesButNotResume',
|
||||
get: get_29448}, {key: 'isPausedAllowsResumeButNotUpdates', get: get_29449}, {key: 'isEnded', get: function() {
|
||||
return this.status === SubscriptionStatusTypes.ENDED;
|
||||
}}, {key: 'endedAt', get: get_29451}, {key: 'isActive', get: function() {
|
||||
return this.status === SubscriptionStatusTypes.ACTIVE;
|
||||
}}, {key: 'statusAllowsPerks', get: function() {
|
||||
var ALLOW_PERKS = SubscriptionStatusTypesSets.ALLOW_PERKS;
|
||||
return ALLOW_PERKS.has(this.status);
|
||||
}}, {key: 'hasActiveTrial', get: function() {
|
||||
var r0;
|
||||
var value2;
|
||||
r0 = this.trialId != null && this.trialEndsAt != null;
|
||||
if (r0) {
|
||||
value2 = new global.Date();
|
||||
value2 = value2 < this.trialEndsAt;
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}}, {key: 'hasActiveDiscount', get: function() {
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
if (this.metadata == null) {
|
||||
return false;
|
||||
}
|
||||
var property = this.metadata.active_discount_id;
|
||||
var active_discount_expires_at = this.metadata.active_discount_expires_at;
|
||||
r0 = property != null && active_discount_expires_at != null;
|
||||
if (r0) {
|
||||
property = global.Date;
|
||||
value2 = new property();
|
||||
property = global.Date;
|
||||
value3 = Object.create(property.prototype, {constructor: {value: property}});
|
||||
value4 = new property(active_discount_expires_at);
|
||||
value2 = value2 <= (value4 instanceof Object ? value4 : value3);
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}}, {key: 'premiumSince', get: function() {
|
||||
return this.streakStartedAt ?? this.createdAt;
|
||||
}}, {key: 'hasAnyPremiumNitro', get: function() {
|
||||
return this.items.some(_fun29458);
|
||||
}}, {key: 'hasAnyPremiumGroup', get: function() {
|
||||
return this.items.some(_fun29460);
|
||||
}}, {key: 'hasPremiumAtLeast', value: function(a0) {
|
||||
var env0_0 = a0;
|
||||
var property = this.isPremium;
|
||||
return property ? this.items.some(_fun29462) : !!property;
|
||||
}}], [{key: 'createFromServer', value: value_29463}]);
|
||||
}
|
||||
|
||||
function SubscriptionRecord(a0) { // fn#29424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:745, offset: 0x00fc1dfe, size: 755 bytes, params: 2, frame: 25
|
||||
var environment;
|
||||
var r3;
|
||||
var r6;
|
||||
var property;
|
||||
var interval;
|
||||
var intervalCount;
|
||||
var moduleValue;
|
||||
var getBasePlanIdForSubscriptionItems;
|
||||
var value8;
|
||||
let value = environment.__proto__;
|
||||
env1_3(this, SubscriptionRecord);
|
||||
const value3 = env1_6(SubscriptionRecord);
|
||||
const value6 = env1_5(this, _isNativeReflectConstruct_29419() ? global.Reflect.construct(value3, [],
|
||||
env1_6(this).constructor) : value3.apply(this, undefined));
|
||||
value6.id = a0.id;
|
||||
let type = a0.type;
|
||||
value6.type = type;
|
||||
let items2 = a0.items;
|
||||
value6.items = items2;
|
||||
value6.createdAt = a0.createdAt;
|
||||
value6.canceledAt = a0.canceledAt;
|
||||
value6.currentPeriodStart = a0.currentPeriodStart;
|
||||
value6.currentPeriodEnd = a0.currentPeriodEnd;
|
||||
value6.status = a0.status;
|
||||
value6.paymentSourceId = a0.paymentSourceId;
|
||||
value6.paymentGateway = a0.paymentGateway;
|
||||
value6.paymentGatewayPlanId = a0.paymentGatewayPlanId;
|
||||
value6.paymentGatewaySubscriptionId = a0.paymentGatewaySubscriptionId;
|
||||
value6.trialId = a0.trialId;
|
||||
value6.trialEndsAt = a0.trialEndsAt;
|
||||
let renewalMutations = a0.renewalMutations;
|
||||
value6.renewalMutations = renewalMutations;
|
||||
value6.currency = a0.currency;
|
||||
value6.pauseEndsAt = a0.pauseEndsAt;
|
||||
value6.pauseReason = a0.pauseReason;
|
||||
value6.metadata = a0.metadata;
|
||||
value6.latestInvoice = a0.latestInvoice;
|
||||
const useStorekitResubscribe = a0.useStorekitResubscribe;
|
||||
value6.useStorekitResubscribe = useStorekitResubscribe;
|
||||
value6.price = a0.price;
|
||||
const userId = a0.userId;
|
||||
value6.userId = userId;
|
||||
value6.streakStartedAt = a0.streakStartedAt;
|
||||
value6.eligiblePaymentGateways = a0.eligiblePaymentGateways;
|
||||
value6.priceChange = a0.priceChange;
|
||||
renewalMutations = value6.renewalMutations;
|
||||
const planId = a0.items[0].planId;
|
||||
const value7 = null;
|
||||
type = a0.type;
|
||||
const PREMIUM = SubscriptionTypes.PREMIUM;
|
||||
if (type === PREMIUM) {
|
||||
items2 = a0.items;
|
||||
property = SubscriptionPlanInfo[items2[0].planId];
|
||||
interval = property.interval;
|
||||
intervalCount = property.intervalCount;
|
||||
moduleValue = require(3814) /* metro dependency 3814: PremiumSubscription */;
|
||||
getBasePlanIdForSubscriptionItems = moduleValue.getBasePlanIdForSubscriptionItems;
|
||||
items2 = a0.items;
|
||||
value8 = Reflect.apply(getBasePlanIdForSubscriptionItems, moduleValue, [items2, interval, intervalCount]);
|
||||
if (value7 != renewalMutations) {
|
||||
value = require(3814) /* metro dependency 3814: PremiumSubscription */;
|
||||
value = value.getBasePlanIdForSubscriptionItems(renewalMutations.items, interval, intervalCount);
|
||||
r3 = value;
|
||||
r6 = value8;
|
||||
} else {
|
||||
r3 = value7;
|
||||
r6 = value8;
|
||||
}
|
||||
} else if (value7 != renewalMutations && renewalMutations.items.length > 0) {
|
||||
r3 = renewalMutations.items[0].planId;
|
||||
r6 = planId;
|
||||
} else {
|
||||
r3 = value7;
|
||||
r6 = planId;
|
||||
}
|
||||
value6.planId = r6;
|
||||
value6.additionalPlans = a0.items.filter(function({planId}) {
|
||||
return planId !== planId;
|
||||
});
|
||||
if (value7 != renewalMutations && value7 != r3) {
|
||||
renewalMutations.planId = r3;
|
||||
renewalMutations.additionalPlans = renewalMutations.items.filter(function({planId}) {
|
||||
return planId !== planId;
|
||||
});
|
||||
}
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_29427(a0) { // fn#29427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:2324, offset: 0x00fc211d, size: 53 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return this.items.find(_fun29428)?.planId;
|
||||
}
|
||||
|
||||
function get_29431() { // fn#29431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:2600, offset: 0x00fc21a5, size: 71 bytes, params: 1, frame: 15
|
||||
var r0;
|
||||
var value;
|
||||
var planIdFromItems;
|
||||
if (this.isPremium) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(44) /* metro dependency 44 */;
|
||||
planIdFromItems = this.planIdFromItems;
|
||||
value(planIdFromItems, 'Premium subscription has no planId for currencies');
|
||||
planIdFromItems = this.planIdFromItems;
|
||||
r0 = planIdFromItems;
|
||||
} else {
|
||||
r0 = this.planId;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function get_29435() { // fn#29435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:3093, offset: 0x00fc224a, size: 37 bytes, params: 1, frame: 3
|
||||
const paymentGateway = this.paymentGateway;
|
||||
const value = environment.__proto__;
|
||||
const APPLE_PARTNER = PaymentGateways.APPLE_PARTNER;
|
||||
return paymentGateway === APPLE_PARTNER || this.isACOM;
|
||||
}
|
||||
|
||||
function get_29436() { // fn#29436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:3195, offset: 0x00fc226f, size: 37 bytes, params: 1, frame: 3
|
||||
const paymentGateway = this.paymentGateway;
|
||||
const value = environment.__proto__;
|
||||
const APPLE = PaymentGateways.APPLE;
|
||||
return paymentGateway === APPLE || this.isACOM;
|
||||
}
|
||||
|
||||
function get_29439() { // fn#29439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:3500, offset: 0x00fc22c4, size: 99 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var r1;
|
||||
var value;
|
||||
var isPurchasedViaGoogle;
|
||||
const isPurchasedViaApple = this.isPurchasedViaApple;
|
||||
if (isPurchasedViaApple) {
|
||||
value = environment.__proto__;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
value = value.isIOS();
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = isPurchasedViaApple;
|
||||
}
|
||||
if (!r0) {
|
||||
isPurchasedViaGoogle = this.isPurchasedViaGoogle;
|
||||
if (isPurchasedViaGoogle) {
|
||||
value = environment.__proto__;
|
||||
value = require(3815) /* metro dependency 3815: BillingPlatformUtils */;
|
||||
value = value.isGooglePlayBillingSupported();
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = isPurchasedViaGoogle;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function get_29441() { // fn#29441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:3846, offset: 0x00fc235a, size: 35 bytes, params: 1, frame: 11
|
||||
return this.items.find(function({planId}) {
|
||||
return planId === SubscriptionPlans.PREMIUM_MONTH_TIER_2;
|
||||
}) != null;
|
||||
}
|
||||
|
||||
function get_29443() { // fn#29443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:3951, offset: 0x00fc2399, size: 29 bytes, params: 1, frame: 11
|
||||
return this.items.every(function(a0) {
|
||||
var PREMIUM_MONTH_GUILD = SubscriptionPlans.PREMIUM_MONTH_GUILD;
|
||||
return [PREMIUM_MONTH_GUILD, SubscriptionPlans.PREMIUM_YEAR_GUILD].includes(a0.planId);
|
||||
});
|
||||
}
|
||||
|
||||
function get_29447() { // fn#29447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:4244, offset: 0x00fc2426, size: 50 bytes, params: 1, frame: 4
|
||||
const status = this.status;
|
||||
const value = environment.__proto__;
|
||||
const PAUSED = SubscriptionStatusTypes.PAUSED;
|
||||
return status === PAUSED && this.pauseReason === SubscriptionPauseReason.FRACTIONAL_PREMIUM;
|
||||
}
|
||||
|
||||
function get_29448() { // fn#29448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:4373, offset: 0x00fc2458, size: 56 bytes, params: 1, frame: 12
|
||||
const status = this.status;
|
||||
const value = environment.__proto__;
|
||||
const PAUSED = SubscriptionStatusTypes.PAUSED;
|
||||
return status === PAUSED && SubscriptionPauseReasonSets.CAN_MAKE_SUBSCRIPTION_UPDATES.has(this.pauseReason);
|
||||
}
|
||||
|
||||
function get_29449() { // fn#29449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:4516, offset: 0x00fc2490, size: 77 bytes, params: 1, frame: 13
|
||||
const status = this.status;
|
||||
const value = environment.__proto__;
|
||||
const PAUSED = SubscriptionStatusTypes.PAUSED;
|
||||
return status === PAUSED && (this.pauseReason === null || !SubscriptionPauseReasonSets.CAN_MAKE_SUBSCRIPTION_UPDATES.has(this.pauseReason));
|
||||
}
|
||||
|
||||
function get_29451() { // fn#29451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:4722, offset: 0x00fc24f8, size: 107 bytes, params: 1, frame: 14
|
||||
const status = this.status;
|
||||
let value = environment.__proto__;
|
||||
const ENDED = SubscriptionStatusTypes.ENDED;
|
||||
value = null;
|
||||
return status !== ENDED ? value : value != (value == this.metadata ? undefined : this.metadata.ended_at) ? new global.Date() : this.currentPeriodEnd;
|
||||
}
|
||||
|
||||
function get_29457() { // fn#29457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:5470, offset: 0x00fc2675, size: 29 bytes, params: 1, frame: 11
|
||||
return this.items.some(function(a0) {
|
||||
return PREMIUM_PLANS.has(a0.planId);
|
||||
});
|
||||
}
|
||||
|
||||
function get_29459() { // fn#29459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:5558, offset: 0x00fc26ae, size: 29 bytes, params: 1, frame: 11
|
||||
return this.items.some(function({planId}) {
|
||||
return planId === SubscriptionPlans.PREMIUM_GROUP_MONTH;
|
||||
});
|
||||
}
|
||||
|
||||
function value_29461(a0) { // fn#29461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:5664, offset: 0x00fc26e7, size: 51 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
const isPremium = this.isPremium;
|
||||
return isPremium ? this.items.some(_fun29462) : !!isPremium;
|
||||
}
|
||||
|
||||
function value_29463(a0) { // fn#29463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:5826, offset: 0x00fc275f, size: 741 bytes, params: 2, frame: 20
|
||||
var r10;
|
||||
var r4;
|
||||
var r5;
|
||||
const object2 = {};
|
||||
object2.id = a0.id;
|
||||
object2.type = a0.type;
|
||||
let Date = global.Date;
|
||||
let date = new Date(a0.created_at);
|
||||
object2.createdAt = date;
|
||||
const canceled_at = a0.canceled_at;
|
||||
date = null;
|
||||
if (date != canceled_at) {
|
||||
date = new global.Date(a0.canceled_at);
|
||||
} else {
|
||||
r4 = date;
|
||||
}
|
||||
object2.canceledAt = r4;
|
||||
Date = global.Date;
|
||||
const current_period_start = a0.current_period_start;
|
||||
const value4 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date(current_period_start);
|
||||
object2.currentPeriodStart = date instanceof Object ? date : value4;
|
||||
Date = global.Date;
|
||||
const current_period_end = a0.current_period_end;
|
||||
const value6 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
date = new Date(current_period_end);
|
||||
object2.currentPeriodEnd = date instanceof Object ? date : value6;
|
||||
object2.status = a0.status;
|
||||
object2.paymentSourceId = a0.payment_source_id;
|
||||
object2.paymentGateway = a0.payment_gateway;
|
||||
object2.paymentGatewayPlanId = a0.payment_gateway_plan_id;
|
||||
object2.paymentGatewaySubscriptionId = a0.payment_gateway_subscription_id;
|
||||
object2.trialId = a0.trial_id;
|
||||
if (date != a0.trial_ends_at) {
|
||||
date = new global.Date(a0.trial_ends_at);
|
||||
} else {
|
||||
r4 = date;
|
||||
}
|
||||
object2.trialEndsAt = r4;
|
||||
let items2 = a0.items;
|
||||
object2.items = items2.map(createSubscriptionItemFromServer);
|
||||
let renewal_mutations = a0.renewal_mutations;
|
||||
if (date != renewal_mutations) {
|
||||
renewal_mutations = a0.renewal_mutations;
|
||||
items2 = renewal_mutations.items;
|
||||
renewal_mutations = a0.renewal_mutations;
|
||||
r5 = {items: items2.map(createSubscriptionItemFromServer),
|
||||
paymentGatewayPlanId: renewal_mutations.payment_gateway_plan_id};
|
||||
r10 = items2;
|
||||
} else {
|
||||
r5 = date;
|
||||
}
|
||||
object2.renewalMutations = r5;
|
||||
if (date != a0.streak_started_at) {
|
||||
date = new global.Date(a0.streak_started_at);
|
||||
} else {
|
||||
r5 = date;
|
||||
}
|
||||
object2.streakStartedAt = r5;
|
||||
object2.currency = a0.currency;
|
||||
if (date != a0.pause_ends_at) {
|
||||
date = new global.Date(a0.pause_ends_at);
|
||||
} else {
|
||||
r5 = date;
|
||||
}
|
||||
object2.pauseEndsAt = r5;
|
||||
object2.pauseReason = a0.pause_reason;
|
||||
object2.metadata = a0.metadata;
|
||||
const use_storekit_resubscribe = a0.use_storekit_resubscribe;
|
||||
object2.useStorekitResubscribe = use_storekit_resubscribe;
|
||||
object2.price = a0.price;
|
||||
const user_id = a0.user_id;
|
||||
object2.userId = user_id;
|
||||
copyDataProperties(object2,
|
||||
date != a0.latest_invoice ? {latestInvoice: InvoiceRecord.createInvoiceFromServer(a0.latest_invoice)} : {}, r10);
|
||||
const eligible_payment_gateways = a0.eligible_payment_gateways;
|
||||
object2['eligiblePaymentGateways'] = date != eligible_payment_gateways ? eligible_payment_gateways : date;
|
||||
object2['priceChange'] = date != a0.price_change ? GooglePlayPriceChangeRecord.createFromServer(a0.price_change) : date;
|
||||
date = Object.create(SubscriptionRecord.prototype, {constructor: {value: SubscriptionRecord}});
|
||||
const subscriptionRecord = new SubscriptionRecord(object2);
|
||||
return subscriptionRecord instanceof Object ? subscriptionRecord : date;
|
||||
}
|
||||
|
||||
function _fun29428({planId}) { // fn#29428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:2375, offset: 0x00fc2152, size: 28 bytes, params: 2, frame: 11
|
||||
return env0_0.includes(planId);
|
||||
}
|
||||
|
||||
function _fun29462({planId}) { // fn#29462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3936:5717, offset: 0x00fc271a, size: 69 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
const property = SubscriptionPlanInfo[planId];
|
||||
value = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
|
||||
return value.isPremiumAtLeast(property.premiumType, env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/* Metro module 12596; source: records/TwitchApplicationRecord.tsx; dependencies: [6, 7, 15, 17, 18, 4235, 1244, 4915, 2] */
|
||||
function _fun96559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:6, offset: 0x021608a6, size: 222 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
value = _fun96563(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/TwitchApplicationRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.TWITCH_APPLICATION_ID_PREFIX = 'twitch:';
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96560() { // fn#96560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:158, offset: 0x02160984, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_96560_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun96563(a0) { // fn#96563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:369, offset: 0x021609e6, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = TwitchApplicationRecord;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'getIconURL', value: value_96565}]);
|
||||
}
|
||||
|
||||
function TwitchApplicationRecord(a0) { // fn#96564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:381, offset: 0x02160a2e, size: 218 bytes, params: 2, frame: 21
|
||||
env1_3(this, TwitchApplicationRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_6(TwitchApplicationRecord);
|
||||
const value6 = env1_5(this, _isNativeReflectConstruct_96560() ? global.Reflect.construct(value3, items2,
|
||||
env1_6(this).constructor) : value3.apply(this, items2));
|
||||
value6.id = '' + 'twitch:' + a0.url;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const JIPtgq = (require(1244) /* metro dependency 1244: indexNative */).t.JIPtgq;
|
||||
value6.name = Reflect.apply(string, intl, [JIPtgq]);
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_96565() { // fn#96565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12786:784, offset: 0x02160b08, size: 52 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(4915) /* metro dependency 4915: Platforms */;
|
||||
const get = value.get;
|
||||
return Reflect.apply(get, value, ['twitch']).icon.lightPNG;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,604 @@
|
||||
/* Metro module 1885; source: records/UserRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 661, 1880, 1887, 1888, 1892, 1893, 1898, 1899, 483, 21, 1423, 1391, 1900, 1895, 1857, 1901, 2] */
|
||||
function _fun20442(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:6, offset: 0x00ec911e, size: 350 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = constantsModule.LOCAL_BOT_ID;
|
||||
const env0_10 = constantsModule.NON_USER_BOT_DISCRIMINATOR;
|
||||
const env0_11 = constantsModule.PREMIUM_TYPE_NONE;
|
||||
const env0_12 = constantsModule.UserFlags;
|
||||
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_13 = premiumConstantsModule.SKU_ID_PURCHASED_FLAGS;
|
||||
const env0_14 = premiumConstantsModule.PremiumTypes;
|
||||
const env0_15 = premiumConstantsModule.PurchasedFlags;
|
||||
value = _fun20446(value);
|
||||
const value5 = new value({id: '0'});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/UserRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.PLACEHOLDER_USER_RECORD = value5;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_20443() { // fn#20443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:325, offset: 0x00ec927c, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_20443_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun20446(a0) { // fn#20446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:524, offset: 0x00ec92da, size: 881 bytes, params: 2, frame: 16
|
||||
const closure = UserRecord;
|
||||
env0_8(closure, a0);
|
||||
return env0_5(closure, [{key: 'createdAt', get: get_20456}, {key: 'hasVerifiedEmailOrPhone', value: function() {
|
||||
return this.verified === true || this.phone != null;
|
||||
}}, {key: 'getAvatarURL', value: value_20458}, {key: 'addGuildAvatarHash', value: function(a0, a1) {
|
||||
var r4;
|
||||
if (this.guildMemberAvatars[a0] === a1) {
|
||||
return this;
|
||||
}
|
||||
var object = {};
|
||||
copyDataProperties(object, this.guildMemberAvatars, r4);
|
||||
object[a0] = a1;
|
||||
return this.merge({guildMemberAvatars: object});
|
||||
}}, {key: 'removeGuildAvatarHash', value: function(a0) {
|
||||
var r4;
|
||||
if (this.guildMemberAvatars[a0] === undefined) {
|
||||
return this;
|
||||
}
|
||||
var object = {};
|
||||
copyDataProperties(object, this.guildMemberAvatars, r4);
|
||||
object[a0] = undefined;
|
||||
return this.merge({guildMemberAvatars: object});
|
||||
}}, {key: 'getAvatarSource', value: value_20461}, {key: 'isClaimed', value: function() {
|
||||
return this.email != null || this.phone != null;
|
||||
}}, {key: 'isPhoneVerified', value: function() {
|
||||
return this.phone != null;
|
||||
}}, {key: 'toString', value: function() {
|
||||
return this.username === '' ? '???' : this.username;
|
||||
}}, {key: 'tag', get: function() {
|
||||
var username = this.username;
|
||||
var value = '' + this.discriminator;
|
||||
value = value.padStart(4, '0');
|
||||
return '' + username + '#' + value;
|
||||
}}, {key: 'hasPurchasedFlag', value: value_20468}, {key: 'hasPremiumUsageFlag', value: value_20469},
|
||||
{key: 'hasHadSKU', value: value_20470}, {key: 'hasHadPremium', value: value_20471},
|
||||
{key: 'hadPremiumSubscription', value: value_20472}, {key: 'hasFreePremium', value: value_20473},
|
||||
{key: 'isOnReverseTrial', value: value_20474}, {key: 'isPremiumWithPremiumGroup', value: value_20475},
|
||||
{key: 'hasPaidTier2Subscription', value: value_20476}, {key: 'isPremiumWithFractionalPremiumOnly',
|
||||
value: value_20477}, {key: 'isFractionalPremiumWithNoStandardSub', value: value_20478},
|
||||
{key: 'isFractionalPremium', value: value_20479}, {key: 'hasUrgentMessages', value: function() {
|
||||
return this.hasFlag(UserFlags.HAS_UNREAD_URGENT_MESSAGES);
|
||||
}}, {key: 'isNonUserBot', value: value_20481}, {key: 'isLocalBot', value: value_20482}, {key: 'isVerifiedBot',
|
||||
value: value_20483}, {key: 'isSystemUser', value: function() {
|
||||
return this.system === true;
|
||||
}}, {key: 'hasAvatarForGuild', value: function(a0) {
|
||||
return a0 != null && this.guildMemberAvatars[a0] != null;
|
||||
}}, {key: 'hasUniqueUsername', value: function() {
|
||||
return this.discriminator === '0';
|
||||
}}, {key: 'isPremiumGroupMember', value: value_20487}, {key: 'isPremiumGroupPrimary', value: value_20488},
|
||||
{key: 'isProvisional', get: function() {
|
||||
return this.hasFlag(UserFlags.PROVISIONAL_ACCOUNT);
|
||||
}}, {key: 'avatarDecoration', get: function() {
|
||||
return this.avatarDecorationData;
|
||||
}, set: set_20491}, {key: 'nameplate', get: get_20492}, {key: 'premiumGroupRole', get: function() {
|
||||
var r0;
|
||||
r0 = this.premiumState?.premiumSubscriptionGroupRole;
|
||||
r0 = r0 ?? require(dependencyMap[19]).PremiumSubscriptionGroupRole.UNSPECIFIED;
|
||||
return r0;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function UserRecord(a0) { // fn#20447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:536, offset: 0x00ec964b, size: 1329 bytes, params: 2, frame: 22
|
||||
var environment;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
const value3 = undefined;
|
||||
binding(this, UserRecord);
|
||||
const value4 = env1_7(UserRecord);
|
||||
const value7 = env1_6(this, _isNativeReflectConstruct_20443() ? global.Reflect.construct(value4, [],
|
||||
env1_7(this).constructor) : value4.apply(this, value3));
|
||||
value7.hasFlag = function() {
|
||||
return false;
|
||||
};
|
||||
value7.isStaff = function() {
|
||||
return false;
|
||||
};
|
||||
value7.isStaffPersonal = function() {
|
||||
return false;
|
||||
};
|
||||
value7.hasAnyStaffLevel = function() {
|
||||
return false;
|
||||
};
|
||||
const premium_type = a0.premium_type;
|
||||
const value8 = null;
|
||||
let r5 = value8 != premium_type ? premium_type : a0.premiumType;
|
||||
value7.id = a0.id;
|
||||
const username = a0.username;
|
||||
value7.username = value8 != username ? username : '';
|
||||
const discriminator = a0.discriminator;
|
||||
value7.discriminator = value8 != discriminator ? discriminator : NON_USER_BOT_DISCRIMINATOR;
|
||||
const avatar = a0.avatar;
|
||||
value7.avatar = value8 != avatar ? avatar : value8;
|
||||
const avatar_decoration_data = a0.avatar_decoration_data;
|
||||
value7.avatarDecoration = value8 != avatar_decoration_data ? avatar_decoration_data : a0.avatarDecorationData;
|
||||
const email = a0.email;
|
||||
value7.email = value8 != email ? email : value8;
|
||||
const verified = a0.verified;
|
||||
value7.verified = value8 != verified && verified;
|
||||
const bot = a0.bot;
|
||||
value7.bot = value8 != bot && bot;
|
||||
const system = a0.system;
|
||||
value7.system = value8 != system && system;
|
||||
const mfa_enabled = a0.mfa_enabled;
|
||||
let r6 = value8 != mfa_enabled ? mfa_enabled : a0.mfaEnabled;
|
||||
value7.mfaEnabled = value8 != r6 && r6;
|
||||
const mobile = a0.mobile;
|
||||
value7.mobile = value8 != mobile && mobile;
|
||||
const desktop = a0.desktop;
|
||||
value7.desktop = value8 != desktop && desktop;
|
||||
value7.premiumType = r5 === PREMIUM_TYPE_NONE ? value8 : r5;
|
||||
const flags = a0.flags;
|
||||
const value16 = 0;
|
||||
value7.flags = value8 != flags ? flags : value16;
|
||||
const public_flags = a0.public_flags;
|
||||
r6 = value8 != public_flags ? public_flags : a0.publicFlags;
|
||||
value7.publicFlags = value8 != r6 ? r6 : value16;
|
||||
const purchased_flags = a0.purchased_flags;
|
||||
r6 = value8 != purchased_flags ? purchased_flags : a0.purchasedFlags;
|
||||
value7.purchasedFlags = value8 != r6 ? r6 : value16;
|
||||
const premium_usage_flags = a0.premium_usage_flags;
|
||||
r6 = value8 != premium_usage_flags ? premium_usage_flags : a0.premiumUsageFlags;
|
||||
value7.premiumUsageFlags = value8 != r6 ? r6 : value16;
|
||||
const phone = a0.phone;
|
||||
value7.phone = value8 != phone ? phone : value8;
|
||||
const nsfw_allowed = a0.nsfw_allowed;
|
||||
value7.nsfwAllowed = value8 != nsfw_allowed ? nsfw_allowed : a0.nsfwAllowed;
|
||||
const age_verification_status = a0.age_verification_status;
|
||||
value7.ageVerificationStatus = value8 != age_verification_status ? age_verification_status : a0.ageVerificationStatus;
|
||||
const guildMemberAvatars = a0.guildMemberAvatars;
|
||||
value7.guildMemberAvatars = value8 != guildMemberAvatars ? guildMemberAvatars : {};
|
||||
const has_bounced_email = a0.has_bounced_email;
|
||||
r6 = value8 != has_bounced_email ? has_bounced_email : a0.hasBouncedEmail;
|
||||
value7.hasBouncedEmail = value8 != r6 && r6;
|
||||
const personal_connection_id = a0.personal_connection_id;
|
||||
r6 = value8 != personal_connection_id ? personal_connection_id : a0.personalConnectionId;
|
||||
value7.personalConnectionId = value8 != r6 ? r6 : value8;
|
||||
const global_name = a0.global_name;
|
||||
value7.globalName = value8 != global_name ? global_name : a0.globalName;
|
||||
value7.banner = a0.banner;
|
||||
const primaryGuildUtilsModule = require(1887) /* metro dependency 1887: PrimaryGuildUtils */;
|
||||
const ensureUserPrimaryGuild = primaryGuildUtilsModule.ensureUserPrimaryGuild;
|
||||
const primary_guild = a0.primary_guild;
|
||||
const r10 = value8 != primary_guild ? primary_guild : a0.primaryGuild;
|
||||
value7.primaryGuild = Reflect.apply(ensureUserPrimaryGuild, primaryGuildUtilsModule, [value8 != r10 ? r10 : value8]);
|
||||
value7.collectibles = a0.collectibles;
|
||||
const displayNameStyles = a0.displayNameStyles;
|
||||
if (value8 != displayNameStyles) {
|
||||
r5 = displayNameStyles;
|
||||
} else {
|
||||
moduleValue2 = require(1888) /* metro dependency 1888: DisplayNameStylesUtils */;
|
||||
r5 = moduleValue2.parseServerDisplayNameStyles(a0.display_name_styles);
|
||||
}
|
||||
value7.displayNameStyles = r5;
|
||||
const premiumState = a0.premiumState;
|
||||
if (value8 != premiumState) {
|
||||
r5 = premiumState;
|
||||
} else {
|
||||
moduleValue3 = require(1892) /* metro dependency 1892: PremiumStateUtils */;
|
||||
r5 = moduleValue3.parseServerPremiumState(a0.premium_state);
|
||||
}
|
||||
value7.premiumState = r5;
|
||||
const perks = a0.perks;
|
||||
if (value8 != (value8 == perks ? value3 : perks.activePerksBitmask)) {
|
||||
r5 = a0.perks;
|
||||
} else {
|
||||
moduleValue4 = require(1893) /* metro dependency 1893: PerksStateUtils */;
|
||||
r5 = moduleValue4.parseServerPerks(a0.perks);
|
||||
}
|
||||
value7.perks = r5;
|
||||
const familyCenterModelsModule = require(1898) /* metro dependency 1898: FamilyCenterModels */;
|
||||
const ensureRestrictedScheduleRecord = familyCenterModelsModule.ensureRestrictedScheduleRecord;
|
||||
const restricted_schedule = a0.restricted_schedule;
|
||||
value7.restrictedSchedule = Reflect.apply(ensureRestrictedScheduleRecord, familyCenterModelsModule,
|
||||
[value8 != restricted_schedule ? restricted_schedule : a0.restrictedSchedule]);
|
||||
const appTransactionIds = a0.appTransactionIds;
|
||||
r6 = value8 != appTransactionIds ? appTransactionIds : a0.app_transaction_ids;
|
||||
value7.appTransactionIds = value8 != r6 ? r6 : value8;
|
||||
value = require(1899) /* metro dependency 1899: StoreCountryUtils */;
|
||||
const parseStoreCountry = value.parseStoreCountry;
|
||||
const store_country = a0.store_country;
|
||||
value7.storeCountry = Reflect.apply(parseStoreCountry, value,
|
||||
[value8 != store_country ? store_country : a0.storeCountry]);
|
||||
const Object = global.Object;
|
||||
Object.defineProperties(value7, {hasFlag: {'writable': false, 'configurable': false, 'enumerable': false,
|
||||
value: value_20452}, isStaff: {'writable': false, 'configurable': false, 'enumerable': false,
|
||||
value: value_20453}, isStaffPersonal: {'writable': false, 'configurable': false, 'enumerable': false,
|
||||
value: value_20454}, hasAnyStaffLevel: {'writable': false, 'configurable': false, 'enumerable': false,
|
||||
value: value_20455}});
|
||||
const globalName = value7.globalName;
|
||||
if (value16 === (value8 == globalName ? value3 : globalName.length)) {
|
||||
value7.globalName = value8;
|
||||
}
|
||||
return value7;
|
||||
}
|
||||
|
||||
function get_20456() { // fn#20456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:3700, offset: 0x00ec9ce6, size: 74 bytes, params: 1, frame: 12
|
||||
const Date = global.Date;
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((importDefault(21) /* metro dependency 21: SnowflakeUtils */).extractTimestamp, value,
|
||||
[this.id]);
|
||||
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
const date = new Date(value);
|
||||
return date instanceof Object ? date : value2;
|
||||
}
|
||||
|
||||
function value_20458(a0, a1) { // fn#20458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:3884, offset: 0x00ec9d50, size: 207 bytes, params: 3, frame: 23
|
||||
var r4;
|
||||
var r0;
|
||||
let value = a2;
|
||||
const value2 = a3;
|
||||
const value3 = undefined;
|
||||
const r6 = value !== value3 ? value : false;
|
||||
if (value2 !== value3) {
|
||||
r4 = value2;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
r4 = (require(1423) /* metro dependency 1423: AvatarUtils */).SUPPORTS_WEBP;
|
||||
}
|
||||
const r8 = a0 != null ? this.guildMemberAvatars[a0] : value3;
|
||||
if (r8 == null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarURL(this, r6, a1, null, r4);
|
||||
r0 = value;
|
||||
} else if (a0 != null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getGuildMemberAvatarURLSimple({guildId: a0, avatar: r8, userId: this.id, canAnimate: r6, size: a1,
|
||||
canWebP: r4});
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarURL(this, r6, a1, null, r4);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_20461(a0) { // fn#20461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:4545, offset: 0x00ec9ea0, size: 146 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
let value = a1;
|
||||
const env0_1 = a0;
|
||||
const r3 = value !== undefined ? value : false;
|
||||
const env0_2 = a2;
|
||||
if (a0 == null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
return value.getAnimatableSourceWithFallback(r3, _fun20463);
|
||||
}
|
||||
if (this.guildMemberAvatars[a0] != null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
return value.getAnimatableSourceWithFallback(r3, _fun20462);
|
||||
}
|
||||
value = environment.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getAnimatableSourceWithFallback(r3, _fun20463);
|
||||
}
|
||||
|
||||
function value_20468(a0) { // fn#20468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:5240, offset: 0x00eca075, size: 51 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
return value.hasFlag(this.purchasedFlags, a0);
|
||||
}
|
||||
|
||||
function value_20469(a0) { // fn#20469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:5334, offset: 0x00eca0a8, size: 51 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
return value.hasFlag(this.premiumUsageFlags, a0);
|
||||
}
|
||||
|
||||
function value_20470(a0) { // fn#20470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:5421, offset: 0x00eca0db, size: 39 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const property = SKU_ID_PURCHASED_FLAGS[a0];
|
||||
return property != null && this.hasPurchasedFlag(property);
|
||||
}
|
||||
|
||||
function value_20471() { // fn#20471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:5514, offset: 0x00eca102, size: 137 bytes, params: 1, frame: 15
|
||||
let value = a0;
|
||||
const r4 = value !== undefined ? value : null;
|
||||
let hasPurchasedFlag = this.hasPurchasedFlag;
|
||||
value = environment.__proto__;
|
||||
const PREMIUM_TIER_0 = PurchasedFlags.PREMIUM_TIER_0;
|
||||
const hasPurchasedFlag2 = Reflect.apply(hasPurchasedFlag, this, [PREMIUM_TIER_0]);
|
||||
hasPurchasedFlag = this.hasPurchasedFlag;
|
||||
const PREMIUM_TIER_1 = PurchasedFlags.PREMIUM_TIER_1;
|
||||
const hasPurchasedFlag3 = Reflect.apply(hasPurchasedFlag, this, [PREMIUM_TIER_1]);
|
||||
hasPurchasedFlag = this.hasPurchasedFlag;
|
||||
const PREMIUM_TIER_2 = PurchasedFlags.PREMIUM_TIER_2;
|
||||
const hasPurchasedFlag4 = Reflect.apply(hasPurchasedFlag, this, [PREMIUM_TIER_2]);
|
||||
const TIER_0 = PremiumTypes.TIER_0;
|
||||
if (TIER_0 === r4) {
|
||||
return hasPurchasedFlag2;
|
||||
}
|
||||
const TIER_1 = PremiumTypes.TIER_1;
|
||||
if (TIER_1 === r4) {
|
||||
return hasPurchasedFlag3;
|
||||
}
|
||||
const TIER_2 = PremiumTypes.TIER_2;
|
||||
if (TIER_2 === r4) {
|
||||
return hasPurchasedFlag4;
|
||||
}
|
||||
let r3 = hasPurchasedFlag2 || hasPurchasedFlag3;
|
||||
r3 = !r3 ? hasPurchasedFlag4 : r3;
|
||||
return r3;
|
||||
}
|
||||
|
||||
function value_20472() { // fn#20472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:5802, offset: 0x00eca18b, size: 67 bytes, params: 1, frame: 14
|
||||
let value = a0;
|
||||
const r3 = value !== undefined ? value : null;
|
||||
value = environment.__proto__;
|
||||
value = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
|
||||
value = value.isPremium(this);
|
||||
return !value && this.hasHadPremium(r3);
|
||||
}
|
||||
|
||||
function value_20473() { // fn#20473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:5904, offset: 0x00eca1ce, size: 55 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
var hasFlag;
|
||||
let value = this.isStaff();
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
hasFlag = this.hasFlag;
|
||||
value = environment.__proto__;
|
||||
value = Reflect.apply(hasFlag, this, [UserFlags.PARTNER]);
|
||||
r0 = value;
|
||||
}
|
||||
r0 = !r0 ? this.isStaffPersonal() : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_20474() { // fn#20474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:6018, offset: 0x00eca205, size: 103 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return (require(1900) /* metro dependency 1900: PremiumTypeUtils */).isPremium(this) && this.premiumState?.premiumSource === (require(1895) /* metro dependency 1895: user */).PremiumSource.REVERSE_TRIAL;
|
||||
}
|
||||
|
||||
function value_20475() { // fn#20475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:6201, offset: 0x00eca26c, size: 114 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const premiumTypeUtilsModule = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
|
||||
const isPremium = premiumTypeUtilsModule.isPremium;
|
||||
const TIER_2 = PremiumTypes.TIER_2;
|
||||
return Reflect.apply(isPremium, premiumTypeUtilsModule, [this,
|
||||
TIER_2]) && (this.premiumState == null ? value2 : this.premiumState.premiumSource) === (require(1895) /* metro dependency 1895: user */).PremiumSource.SUBSCRIPTION_GROUP;
|
||||
}
|
||||
|
||||
function value_20476() { // fn#20476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:6397, offset: 0x00eca2de, size: 114 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const premiumTypeUtilsModule = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
|
||||
const isPremium = premiumTypeUtilsModule.isPremium;
|
||||
const TIER_2 = PremiumTypes.TIER_2;
|
||||
return Reflect.apply(isPremium, premiumTypeUtilsModule, [this,
|
||||
TIER_2]) && (this.premiumState == null ? value2 : this.premiumState.premiumSubscriptionType) === (require(1895) /* metro dependency 1895: user */).PremiumSubscriptionType.TIER_2;
|
||||
}
|
||||
|
||||
function value_20477() { // fn#20477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:6611, offset: 0x00eca350, size: 236 bytes, params: 1, frame: 18
|
||||
const PremiumSubscriptionType = (require(1895) /* metro dependency 1895: user */).PremiumSubscriptionType;
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const premiumTypeUtilsModule = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
|
||||
const isPremium = premiumTypeUtilsModule.isPremium;
|
||||
const TIER_2 = PremiumTypes.TIER_2;
|
||||
return Reflect.apply(isPremium, premiumTypeUtilsModule, [this,
|
||||
TIER_2]) && ((this.premiumState == null ? value2 : this.premiumState.premiumSubscriptionType) === PremiumSubscriptionType.NONE_UNSPECIFIED || (this.premiumState == null ? value2 : this.premiumState.premiumSubscriptionType) === PremiumSubscriptionType.BOOST_ONLY) && (this.premiumState == null ? value2 : this.premiumState.premiumSource) === (require(1895) /* metro dependency 1895: user */).PremiumSource.FRACTIONAL_NITRO;
|
||||
}
|
||||
|
||||
function value_20478() { // fn#20478, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:7049, offset: 0x00eca43c, size: 165 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const premiumTypeUtilsModule = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
|
||||
const isPremium = premiumTypeUtilsModule.isPremium;
|
||||
const TIER_2 = PremiumTypes.TIER_2;
|
||||
return Reflect.apply(isPremium, premiumTypeUtilsModule, [this,
|
||||
TIER_2]) && (this.premiumState == null ? value2 : this.premiumState.premiumSource) === (require(1895) /* metro dependency 1895: user */).PremiumSource.FRACTIONAL_NITRO && this.premiumState.premiumSubscriptionType !== (require(1895) /* metro dependency 1895: user */).PremiumSubscriptionType.TIER_2;
|
||||
}
|
||||
|
||||
function value_20479() { // fn#20479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:7323, offset: 0x00eca4e1, size: 114 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const premiumTypeUtilsModule = require(1900) /* metro dependency 1900: PremiumTypeUtils */;
|
||||
const isPremium = premiumTypeUtilsModule.isPremium;
|
||||
const TIER_2 = PremiumTypes.TIER_2;
|
||||
return Reflect.apply(isPremium, premiumTypeUtilsModule, [this,
|
||||
TIER_2]) && (this.premiumState == null ? value2 : this.premiumState.premiumSource) === (require(1895) /* metro dependency 1895: user */).PremiumSource.FRACTIONAL_NITRO;
|
||||
}
|
||||
|
||||
function value_20481() { // fn#20481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:7599, offset: 0x00eca570, size: 47 bytes, params: 1, frame: 11
|
||||
var r1;
|
||||
var r0;
|
||||
var bot;
|
||||
var discriminator;
|
||||
let value = this.isSystemUser();
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
bot = this.bot;
|
||||
if (bot) {
|
||||
discriminator = this.discriminator;
|
||||
value = environment.__proto__;
|
||||
value = discriminator === NON_USER_BOT_DISCRIMINATOR;
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = bot;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_20482() { // fn#20482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:7697, offset: 0x00eca59f, size: 30 bytes, params: 1, frame: 3
|
||||
var r0;
|
||||
var id;
|
||||
var value;
|
||||
const bot = this.bot;
|
||||
if (bot) {
|
||||
id = this.id;
|
||||
value = environment.__proto__;
|
||||
value = id === LOCAL_BOT_ID;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = bot;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_20483() { // fn#20483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:7766, offset: 0x00eca5bd, size: 57 bytes, params: 1, frame: 12
|
||||
var hasFlag;
|
||||
let value = this.isSystemUser();
|
||||
let r0 = value || this.isLocalBot();
|
||||
if (!r0) {
|
||||
hasFlag = this.hasFlag;
|
||||
value = environment.__proto__;
|
||||
value = Reflect.apply(hasFlag, this, [UserFlags.VERIFIED_BOT]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_20487() { // fn#20487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:8120, offset: 0x00eca63b, size: 65 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var premiumGroupRole;
|
||||
let value = this.isPremiumWithPremiumGroup();
|
||||
if (value) {
|
||||
premiumGroupRole = this.premiumGroupRole;
|
||||
value = environment.__proto__;
|
||||
value = premiumGroupRole === (require(1895) /* metro dependency 1895: user */).PremiumSubscriptionGroupRole.MEMBER;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_20488() { // fn#20488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:8278, offset: 0x00eca67c, size: 65 bytes, params: 1, frame: 13
|
||||
var r0;
|
||||
var premiumGroupRole;
|
||||
let value = this.isPremiumWithPremiumGroup();
|
||||
if (value) {
|
||||
premiumGroupRole = this.premiumGroupRole;
|
||||
value = environment.__proto__;
|
||||
value = premiumGroupRole === (require(1895) /* metro dependency 1895: user */).PremiumSubscriptionGroupRole.PRIMARY;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function set_20491(a0) { // fn#20491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:8560, offset: 0x00eca6e5, size: 50 bytes, params: 2, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = require(1857) /* metro dependency 1857: AvatarDecorationUtils */;
|
||||
value = value.parseAvatarDecorationData(a0);
|
||||
this.avatarDecorationData = value;
|
||||
}
|
||||
|
||||
function get_20492() { // fn#20492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:8659, offset: 0x00eca717, size: 62 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const utilsModule = require(1901) /* metro dependency 1901: utils */;
|
||||
const getNameplateData = utilsModule.getNameplateData;
|
||||
const collectibles = this.collectibles;
|
||||
return Reflect.apply(getNameplateData, utilsModule, [collectibles == null ? value : collectibles.nameplate]);
|
||||
}
|
||||
|
||||
function UserRecordValue(a0) { // fn#20452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:3010, owner: UserRecord.value, offset: 0x00ec9b7c, size: 185 bytes, params: 2, frame: 19
|
||||
var binding;
|
||||
if (a0 <= 1073741824) {
|
||||
binding = env0_0;
|
||||
return ((binding.flags | binding.publicFlags) & a0) === a0;
|
||||
}
|
||||
let value = environment.__proto__.__proto__;
|
||||
const deserialize = (importAll(483) /* metro dependency 483: BigFlagUtils */).deserialize;
|
||||
binding = env0_0;
|
||||
value = Reflect.apply(deserialize, value, [binding.flags]);
|
||||
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
|
||||
const value3 = bigFlagUtilsModule.deserialize(binding.publicFlags);
|
||||
const value4 = bigFlagUtilsModule.deserialize(a0);
|
||||
const moduleValue3 = bigFlagUtilsModule;
|
||||
const has = moduleValue3.has;
|
||||
const moduleValue4 = bigFlagUtilsModule;
|
||||
return Reflect.apply(has, moduleValue3, [moduleValue4.combine(value, value3), value4]);
|
||||
}
|
||||
|
||||
function UserRecordValue_20453() { // fn#20453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:3273, owner: UserRecord.value, offset: 0x00ec9c35, size: 33 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const hasFlag = binding.hasFlag;
|
||||
const STAFF = UserFlags.STAFF;
|
||||
return Reflect.apply(hasFlag, binding, [STAFF]);
|
||||
}
|
||||
|
||||
function UserRecordValue_20454() { // fn#20454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:3362, owner: UserRecord.value, offset: 0x00ec9c56, size: 55 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
const hasFlag = binding.hasFlag;
|
||||
const STAFF = UserFlags.STAFF;
|
||||
return !Reflect.apply(hasFlag, binding, [STAFF]) && env0_0.personalConnectionId != null;
|
||||
}
|
||||
|
||||
function UserRecordValue_20455() { // fn#20455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:3483, owner: UserRecord.value, offset: 0x00ec9c8d, size: 89 bytes, params: 1, frame: 14
|
||||
const binding = env0_0;
|
||||
const hasFlag = binding.hasFlag;
|
||||
const STAFF = UserFlags.STAFF;
|
||||
let r0 = Reflect.apply(hasFlag, binding, [STAFF]) || env0_0.hasFlag(UserFlags.COLLABORATOR);
|
||||
r0 = !r0 ? env0_0.hasFlag(UserFlags.RESTRICTED_COLLABORATOR) : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun20462(a0) { // fn#20462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:4671, offset: 0x00ec9f32, size: 109 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const makeSource = value.makeSource;
|
||||
const defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getGuildMemberAvatarURLSimple = defaultImport.getGuildMemberAvatarURLSimple;
|
||||
return Reflect.apply(makeSource, value, [Reflect.apply(getGuildMemberAvatarURLSimple, defaultImport,
|
||||
[{guildId: env0_1, avatar: env0_3, userId: env0_0.id, canAnimate: a0, size: importDefault}])]);
|
||||
}
|
||||
|
||||
function _fun20463(a0) { // fn#20463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2012:4844, offset: 0x00ec9f9f, size: 54 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(env0_0, a0, importDefault);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
/* Metro module 4298; source: records/VoiceStateRecord.tsx; dependencies: [6, 7, 15, 17, 18, 1886, 2] */
|
||||
function _fun36582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:6, offset: 0x0108ecae, size: 194 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(1886) /* metro dependency 1886: Record */;
|
||||
value = _fun36586(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/VoiceStateRecord.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_36583() { // fn#36583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:148, offset: 0x0108ed70, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_36583_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun36586(a0) { // fn#36586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:347, offset: 0x0108edce, size: 91 bytes, params: 2, frame: 16
|
||||
const closure = VoiceStateRecord;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'isVoiceMuted', value: function() {
|
||||
var r0;
|
||||
r0 = this.selfMute || this.mute;
|
||||
r0 = !r0 ? this.suppress : r0;
|
||||
r0 = !r0 ? this.requestToSpeakTimestamp != null : r0;
|
||||
return r0;
|
||||
}}, {key: 'isVoiceDeafened', value: function() {
|
||||
return this.selfDeaf || this.deaf;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function VoiceStateRecord({userId, channelId, sessionId, mute, deaf, selfMute, selfDeaf, selfVideo, selfStream, suppress, requestToSpeakTimestamp, discoverable, connectedAt}) { // fn#36587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4470:359, offset: 0x0108ee29, size: 329 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_0(this, VoiceStateRecord);
|
||||
const value3 = env1_3(VoiceStateRecord);
|
||||
value = env1_2(this, _isNativeReflectConstruct_36583() ? global.Reflect.construct(value3, [],
|
||||
env1_3(this).constructor) : value3.apply(this, undefined));
|
||||
userId = !userId ? '' : userId;
|
||||
value.userId = userId;
|
||||
channelId = !channelId ? null : channelId;
|
||||
value.channelId = channelId;
|
||||
sessionId = !sessionId ? null : sessionId;
|
||||
value.sessionId = sessionId;
|
||||
mute = !!mute && mute;
|
||||
value.mute = mute;
|
||||
deaf = !!deaf && deaf;
|
||||
value.deaf = deaf;
|
||||
selfMute = !!selfMute && selfMute;
|
||||
value.selfMute = selfMute;
|
||||
selfDeaf = !!selfDeaf && selfDeaf;
|
||||
value.selfDeaf = selfDeaf;
|
||||
selfVideo = !!selfVideo && selfVideo;
|
||||
value.selfVideo = selfVideo;
|
||||
selfStream = !!selfStream && selfStream;
|
||||
value.selfStream = selfStream;
|
||||
suppress = !!suppress && suppress;
|
||||
value.suppress = suppress;
|
||||
value.requestToSpeakTimestamp = requestToSpeakTimestamp;
|
||||
value.discoverable = discoverable == null || discoverable;
|
||||
value.connectedAt = connectedAt;
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/* Metro module 12597; source: records/XboxApplicationRecord.tsx; dependencies: [6, 7, 15, 17, 18, 4235, 4915, 2] */
|
||||
function _fun96566(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12787:6, offset: 0x02160b3c, size: 218 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
||||
value = _fun96570(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('records/XboxApplicationRecord.tsx');
|
||||
exports.default = value;
|
||||
exports.XBOX_APPLICATION_ID_PREFIX = 'xbox:';
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96567() { // fn#96567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12787:158, offset: 0x02160c16, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_96567_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun96570(a0) { // fn#96570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12787:367, offset: 0x02160c78, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = XboxApplicationRecord;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'getIconURL', value: value_96572}]);
|
||||
}
|
||||
|
||||
function XboxApplicationRecord(a0) { // fn#96571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12787:379, offset: 0x02160cc0, size: 166 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
env1_2(this, XboxApplicationRecord);
|
||||
const items2 = [a0];
|
||||
const value3 = env1_5(XboxApplicationRecord);
|
||||
value = env1_4(this, _isNativeReflectConstruct_96567() ? global.Reflect.construct(value3, items2,
|
||||
env1_5(this).constructor) : value3.apply(this, items2));
|
||||
value.id = '' + 'xbox:' + a0.name;
|
||||
value.name = a0.name;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_96572() { // fn#96572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12787:742, offset: 0x02160d66, size: 52 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(4915) /* metro dependency 4915: Platforms */;
|
||||
const get = value.get;
|
||||
return Reflect.apply(get, value, ['xbox']).icon.lightPNG;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user