Files
2026-07-28 01:06:53 +03:00

599 lines
35 KiB
TypeScript

/* 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] */
import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import AvatarUtils from '../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import Record from '../lib/Record.tsx'; /* Metro dependency 1886 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BigFlagUtilsModule from '../external/discord_common/js/shared/utils/BigFlagUtils.tsx'; /* Metro dependency 483 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as PremiumConstantsModule from '../modules/premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as PrimaryGuildUtilsModule from '../modules/guild_tag/PrimaryGuildUtils.tsx'; /* Metro dependency 1887 */
import * as FamilyCenterModelsModule from '../modules/parent_tools/FamilyCenterModels.tsx'; /* Metro dependency 1898 */
import * as PremiumTypeUtilsModule from '../utils/PremiumTypeUtils.tsx'; /* Metro dependency 1900 */
import * as UtilsModule from '../modules/collectibles/nameplates/utils.tsx'; /* Metro dependency 1901 */
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});
let value = Record;
value = _fun20446(value);
const value5 = new value({id: '0'});
(FileImportTrackerModule).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 UserRecord2 = UserRecord;
Inherits(UserRecord2, a0);
return CreateClass(UserRecord2, [{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 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 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 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 = (BigFlagUtilsModule).deserialize;
binding = env0_0;
value = Reflect.apply(deserialize, value, [binding.flags]);
const value3 = BigFlagUtilsModule.deserialize(binding.publicFlags);
const value4 = BigFlagUtilsModule.deserialize(a0);
const has = BigFlagUtilsModule.has;
return Reflect.apply(has, BigFlagUtilsModule, [BigFlagUtilsModule.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 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 _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 (AvatarUtils).getUserAvatarSource(env0_0, a0, importDefault);
}
}
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 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 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 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 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 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 getNameplateData = UtilsModule.getNameplateData;
const collectibles = this.collectibles;
return Reflect.apply(getNameplateData, UtilsModule, [collectibles == null ? value : collectibles.nameplate]);
}
}
}
global.__d(_fun20442, 1885, [6, 7, 15, 17, 18, 1886, 661, 1880, 1887, 1888, 1892, 1893, 1898, 1899, 483, 21, 1423,
1391, 1900, 1895, 1857, 1901,
2]) /* metro module 1885, dependencies: [6, 7, 15, 17, 18, 1886, 661, 1880, 1887, 1888, 1892, 1893, 1898, 1899, 483, 21, 1423, 1391, 1900, 1895, 1857, 1901, 2] */;