This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,4 +1,8 @@
/* Metro module 10277; source: modules/user_profile/utils/UserProfileStackedActivityCardUtils.tsx; dependencies: [661, 22, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00022Module from '../../../by-id/module-00022.js'; /* Metro dependency 22 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun79742(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:6, offset: 0x01e607ac, size: 154 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_79745 = function(a0, a1) {
@@ -46,176 +50,180 @@ function _fun79742(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/UserProfileStackedActivityCardUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/UserProfileStackedActivityCardUtils.tsx');
exports.getUserProfileLiveActivities = getUserProfileLiveActivities;
exports.getUserProfileStackedActivityCards = getUserProfileStackedActivityCards;
}
function _createForOfIteratorHelperLoose_79743(a0, a1) { // fn#79743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:125, offset: 0x01e60846, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_79743(a0, a1) { // fn#79743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:125, offset: 0x01e60846, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun79744;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_79745(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun79744;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_79745(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_79745(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_79745(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun79744;
}
return _fun79744;
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun79744() { // fn#79744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:696, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function getUserProfileLiveActivities(a0) { // fn#79746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:1168, offset: 0x01e609ba, size: 68 bytes, params: 2, frame: 15
const value = require(22) /* metro dependency 22 */;
return value.uniqWith(a0.filter(_fun79747), function(a0, a1) {
var r0;
var r1;
r0 = a0.application_id != null && a1.application_id != null && a0.application_id === a1.application_id;
if (!r0) {
r1 = a0.name != null && a1.name != null;
r1 = r1 && a0.name === a1.name;
r0 = r1;
function getUserProfileLiveActivities(a0) { // fn#79746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:1168, offset: 0x01e609ba, size: 68 bytes, params: 2, frame: 15
return Module00022Module.uniqWith(a0.filter(_fun79747), function(a0, a1) {
var r0;
var r1;
r0 = a0.application_id != null && a1.application_id != null && a0.application_id === a1.application_id;
if (!r0) {
r1 = a0.name != null && a1.name != null;
r1 = r1 && a0.name === a1.name;
r0 = r1;
}
return r0;
});
function _fun79747({type}) { // fn#79747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:1244, offset: 0x01e609fe, size: 44 bytes, params: 2, frame: 4
const value = environment.__proto__;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
return type !== CUSTOM_STATUS && type !== ActivityTypes.HANG_STATUS;
}
return r0;
});
}
function getUserProfileStackedActivityCards({stream, live, voiceChannel, voiceActivity, isPrivate}) { // fn#79749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:1475, offset: 0x01e60a8a, size: 204 bytes, params: 2, frame: 22
var r7;
var r1;
var value;
var push;
var value3;
var value4;
reducibleJoin2: while (true) {
if (live !== undefined) {
r7 = live;
}
function getUserProfileStackedActivityCards({stream, live, voiceChannel, voiceActivity, isPrivate}) { // fn#79749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:1475, offset: 0x01e60a8a, size: 204 bytes, params: 2, frame: 22
var r7;
var r1;
var value;
var push;
var value3;
var value4;
reducibleJoin2: while (true) {
if (live !== undefined) {
r7 = live;
break reducibleJoin2;
}
r7 = [];
break reducibleJoin2;
}
r7 = [];
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (isPrivate !== undefined) {
reducibleJoin4: while (true) {
if (isPrivate !== undefined) {
break reducibleJoin4;
}
value = false;
isPrivate = value;
break reducibleJoin4;
}
value = false;
isPrivate = value;
break reducibleJoin4;
}
const items2 = [];
reducibleJoin6: while (true) {
if (stream == null) {
const items2 = [];
reducibleJoin6: while (true) {
if (stream == null) {
break reducibleJoin6;
}
push = items2.push;
Reflect.apply(push, items2, [{type: 'stream', stream: stream}]);
break reducibleJoin6;
}
push = items2.push;
Reflect.apply(push, items2, [{type: 'stream', stream: stream}]);
break reducibleJoin6;
}
value = _createForOfIteratorHelperLoose_79743(r7);
const value2 = value();
let done = value2.done;
if (!done) {
r7 = value2;
reducibleLoop7: while (true) {
value3 = r7.value;
push = items2.push;
Reflect.apply(push, items2, [{type: 'live', activity: value3}]);
value4 = value();
done = value4.done;
if (done) {
break reducibleLoop7;
value = _createForOfIteratorHelperLoose_79743(r7);
const value2 = value();
let done = value2.done;
if (!done) {
r7 = value2;
reducibleLoop7: while (true) {
value3 = r7.value;
push = items2.push;
Reflect.apply(push, items2, [{type: 'live', activity: value3}]);
value4 = value();
done = value4.done;
if (done) {
break reducibleLoop7;
}
r7 = value4;
continue reducibleLoop7;
}
r7 = value4;
continue reducibleLoop7;
}
}
reducibleJoin10: while (true) {
if (isPrivate) {
r1 = isPrivate;
reducibleJoin10: while (true) {
if (isPrivate) {
r1 = isPrivate;
break reducibleJoin10;
}
value = stream != null;
r1 = value;
break reducibleJoin10;
}
value = stream != null;
r1 = value;
break reducibleJoin10;
}
reducibleJoin12: while (true) {
if (r1) {
reducibleJoin12: while (true) {
if (r1) {
break reducibleJoin12;
}
value = voiceActivity != null;
r1 = value;
break reducibleJoin12;
}
value = voiceActivity != null;
r1 = value;
break reducibleJoin12;
}
reducibleJoin14: while (true) {
if (r1) {
reducibleJoin14: while (true) {
if (r1) {
break reducibleJoin14;
}
value = voiceChannel == null;
r1 = value;
break reducibleJoin14;
}
value = voiceChannel == null;
r1 = value;
break reducibleJoin14;
}
reducibleJoin16: while (true) {
if (r1) {
reducibleJoin16: while (true) {
if (r1) {
break reducibleJoin16;
}
push = items2.push;
Reflect.apply(push, items2, [{type: 'voice', voiceChannel: voiceChannel}]);
break reducibleJoin16;
}
push = items2.push;
Reflect.apply(push, items2, [{type: 'voice', voiceChannel: voiceChannel}]);
break reducibleJoin16;
return items2;
}
return items2;
}
function _fun79747({type}) { // fn#79747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10463:1244, offset: 0x01e609fe, size: 44 bytes, params: 2, frame: 4
const value = environment.__proto__;
const CUSTOM_STATUS = ActivityTypes.CUSTOM_STATUS;
return type !== CUSTOM_STATUS && type !== ActivityTypes.HANG_STATUS;
}
global.__d(_fun79742, 10277, [661, 22, 2]) /* metro module 10277, dependencies: [661, 22, 2] */;
@@ -1,361 +1,365 @@
/* Metro module 10238; source: modules/user_profile/utils/getActivityHeader.tsx; dependencies: [661, 10239, 10240, 1244, 10242, 10243, 6880, 2] */
import ParseProviderRouteHeadlessSessionId from './parseProviderRouteHeadlessSessionId.tsx'; /* Metro dependency 10239 */
import GetActivityPlatform from './getActivityPlatform.tsx'; /* Metro dependency 10240 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun79557(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10424:6, offset: 0x01e576f0, size: 134 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.ActivityTypes;
const env0_4 = constantsModule.PlatformTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/getActivityHeader.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/getActivityHeader.tsx');
exports.default = getActivityHeader;
}
function getActivityHeader(a0) { // fn#79558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10424:234, offset: 0x01e57776, size: 2590 bytes, params: 2, frame: 25
var icon;
var name;
var r7;
var r0;
var r8;
var value6;
var LISTENING;
var COMPETING;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var Dzgz4u;
var ENbTKQ;
var A17aM8;
var moduleValue;
var details;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
var OzCsIA;
var formatToPlainString;
var oHF7Ch;
var GpNXjC;
var mqdfDc;
var dBISa6;
var property;
var intl2;
var intl3;
var value7;
var intl4;
var value8;
var intl5;
var intl6;
var intl7;
const value = environment;
const value2 = undefined;
const value3 = (importDefault(10239) /* metro dependency 10239: parseProviderRouteHeadlessSessionId */)(a0.session_id);
const value4 = (importDefault(10240) /* metro dependency 10240: getActivityPlatform */)(a0);
reducibleJoin2: while (true) {
if (value4 == null) {
icon = value2;
function getActivityHeader(a0) { // fn#79558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10424:234, offset: 0x01e57776, size: 2590 bytes, params: 2, frame: 25
var icon;
var name;
var r7;
var r0;
var r8;
var value6;
var LISTENING;
var COMPETING;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var Dzgz4u;
var ENbTKQ;
var A17aM8;
var moduleValue;
var details;
var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
var OzCsIA;
var formatToPlainString;
var oHF7Ch;
var GpNXjC;
var mqdfDc;
var dBISa6;
var property;
var intl2;
var intl3;
var value7;
var intl4;
var value8;
var intl5;
var intl6;
var intl7;
const value = environment;
const value2 = undefined;
const value3 = (ParseProviderRouteHeadlessSessionId)(a0.session_id);
const value4 = (GetActivityPlatform)(a0);
reducibleJoin2: while (true) {
if (value4 == null) {
icon = value2;
break reducibleJoin2;
}
icon = value4.icon;
break reducibleJoin2;
}
icon = value4.icon;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (value4 == null) {
name = value2;
reducibleJoin4: while (true) {
if (value4 == null) {
name = value2;
break reducibleJoin4;
}
name = value4.name;
break reducibleJoin4;
}
name = value4.name;
break reducibleJoin4;
}
const r1 = name ?? '';
let type = a0.type;
let PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin8: while (true) {
if (value4 == null) {
type = value2;
const r1 = name ?? '';
let type = a0.type;
let PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin8: while (true) {
if (value4 == null) {
type = value2;
break reducibleJoin8;
}
type = value4.type;
break reducibleJoin8;
}
type = value4.type;
break reducibleJoin8;
}
reducibleJoin9: while (true) {
if (type === PlatformTypes.XBOX) {
formatToPlainString = intl.formatToPlainString;
A17aM8 = t.A17aM8;
intl7 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [A17aM8, {platform: intl7.string(t.Nfvo72)}]),
platformIcon: icon, platformLabel: r1};
reducibleJoin9: while (true) {
if (type === PlatformTypes.XBOX) {
formatToPlainString = intl.formatToPlainString;
A17aM8 = t.A17aM8;
intl7 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [A17aM8, {platform: intl7.string(t.Nfvo72)}]),
platformIcon: icon, platformLabel: r1};
}
break reducibleJoin9;
}
break reducibleJoin9;
}
}
type = a0.type;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin12: while (true) {
if (value4 == null) {
type = value2;
type = a0.type;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin12: while (true) {
if (value4 == null) {
type = value2;
break reducibleJoin12;
}
type = value4.type;
break reducibleJoin12;
}
type = value4.type;
break reducibleJoin12;
}
reducibleJoin13: while (true) {
if (type === PlatformTypes.PLAYSTATION) {
formatToPlainString = intl.formatToPlainString;
A17aM8 = t.A17aM8;
intl6 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [A17aM8, {platform: intl6.string(t.fFl4jo)}]),
platformIcon: icon, platformLabel: r1};
reducibleJoin13: while (true) {
if (type === PlatformTypes.PLAYSTATION) {
formatToPlainString = intl.formatToPlainString;
A17aM8 = t.A17aM8;
intl6 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [A17aM8, {platform: intl6.string(t.fFl4jo)}]),
platformIcon: icon, platformLabel: r1};
}
break reducibleJoin13;
}
break reducibleJoin13;
}
}
type = a0.type;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin16: while (true) {
if (value4 == null) {
type = value2;
type = a0.type;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin16: while (true) {
if (value4 == null) {
type = value2;
break reducibleJoin16;
}
type = value4.type;
break reducibleJoin16;
}
type = value4.type;
break reducibleJoin16;
}
reducibleJoin17: while (true) {
if (type === PlatformTypes.META_QUEST_OR_HORIZON) {
formatToPlainString = intl.formatToPlainString;
A17aM8 = t.A17aM8;
value8 = (importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a0);
intl5 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl5.string;
if (value8) {
r8 = Reflect.apply(string, intl5, [t.BrHQaq]);
} else {
r8 = Reflect.apply(string, intl5, [t.p6vL0e]);
reducibleJoin17: while (true) {
if (type === PlatformTypes.META_QUEST_OR_HORIZON) {
formatToPlainString = intl.formatToPlainString;
A17aM8 = t.A17aM8;
value8 = (importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a0);
intl5 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl5.string;
if (value8) {
r8 = Reflect.apply(string, intl5, [t.BrHQaq]);
} else {
r8 = Reflect.apply(string, intl5, [t.p6vL0e]);
}
return {text: Reflect.apply(formatToPlainString, intl, [A17aM8, {platform: r8}]), platformIcon: icon,
platformLabel: r1};
}
return {text: Reflect.apply(formatToPlainString, intl, [A17aM8, {platform: r8}]), platformIcon: icon,
platformLabel: r1};
break reducibleJoin17;
}
break reducibleJoin17;
}
}
type = a0.type;
let WATCHING = ActivityTypes.WATCHING;
if (type === WATCHING) {
reducibleJoin20: while (true) {
if (value4 == null) {
type = value2;
type = a0.type;
let WATCHING = ActivityTypes.WATCHING;
if (type === WATCHING) {
reducibleJoin20: while (true) {
if (value4 == null) {
type = value2;
break reducibleJoin20;
}
type = value4.type;
break reducibleJoin20;
}
type = value4.type;
break reducibleJoin20;
}
reducibleJoin21: while (true) {
if (type === PlatformTypes.META_QUEST_OR_HORIZON) {
formatToPlainString = intl.formatToPlainString;
ENbTKQ = t.ENbTKQ;
value7 = (importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a0);
intl4 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl4.string;
if (value7) {
r8 = Reflect.apply(string, intl4, [t.BrHQaq]);
} else {
r8 = Reflect.apply(string, intl4, [t.p6vL0e]);
reducibleJoin21: while (true) {
if (type === PlatformTypes.META_QUEST_OR_HORIZON) {
formatToPlainString = intl.formatToPlainString;
ENbTKQ = t.ENbTKQ;
value7 = (importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a0);
intl4 = (require(1244) /* metro dependency 1244: indexNative */).intl;
string = intl4.string;
if (value7) {
r8 = Reflect.apply(string, intl4, [t.BrHQaq]);
} else {
r8 = Reflect.apply(string, intl4, [t.p6vL0e]);
}
return {text: Reflect.apply(formatToPlainString, intl, [ENbTKQ, {platform: r8}]), platformIcon: icon,
platformLabel: r1};
}
return {text: Reflect.apply(formatToPlainString, intl, [ENbTKQ, {platform: r8}]), platformIcon: icon,
platformLabel: r1};
break reducibleJoin21;
}
break reducibleJoin21;
}
}
type = a0.type;
let STREAMING = ActivityTypes.STREAMING;
if (type === STREAMING) {
reducibleJoin24: while (true) {
if (value4 == null) {
type = value2;
type = a0.type;
let STREAMING = ActivityTypes.STREAMING;
if (type === STREAMING) {
reducibleJoin24: while (true) {
if (value4 == null) {
type = value2;
break reducibleJoin24;
}
type = value4.type;
break reducibleJoin24;
}
type = value4.type;
break reducibleJoin24;
}
reducibleJoin25: while (true) {
if (type === PlatformTypes.TWITCH) {
formatToPlainString = intl.formatToPlainString;
property = t['4CQq9Q'];
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [property, {name: intl3.string(t.q4pBG3)}]),
platformIcon: icon, platformLabel: r1};
reducibleJoin25: while (true) {
if (type === PlatformTypes.TWITCH) {
formatToPlainString = intl.formatToPlainString;
property = t['4CQq9Q'];
intl3 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [property, {name: intl3.string(t.q4pBG3)}]),
platformIcon: icon, platformLabel: r1};
}
break reducibleJoin25;
}
break reducibleJoin25;
}
}
type = a0.type;
STREAMING = ActivityTypes.STREAMING;
if (type === STREAMING) {
reducibleJoin28: while (true) {
if (value4 == null) {
type = value2;
type = a0.type;
STREAMING = ActivityTypes.STREAMING;
if (type === STREAMING) {
reducibleJoin28: while (true) {
if (value4 == null) {
type = value2;
break reducibleJoin28;
}
type = value4.type;
break reducibleJoin28;
}
type = value4.type;
break reducibleJoin28;
}
reducibleJoin29: while (true) {
if (type === PlatformTypes.YOUTUBE) {
formatToPlainString = intl.formatToPlainString;
property = t['4CQq9Q'];
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [property, {name: intl2.string(t.aS6cK4)}]),
platformIcon: icon, platformLabel: r1};
reducibleJoin29: while (true) {
if (type === PlatformTypes.YOUTUBE) {
formatToPlainString = intl.formatToPlainString;
property = t['4CQq9Q'];
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
return {text: Reflect.apply(formatToPlainString, intl, [property, {name: intl2.string(t.aS6cK4)}]),
platformIcon: icon, platformLabel: r1};
}
break reducibleJoin29;
}
break reducibleJoin29;
}
}
if (value3 != null) {
value6 = (importDefault(10243) /* metro dependency 10243: getActivityPlatformDisplayName */)(value3, a0);
type = a0.type;
if (ActivityTypes.PLAYING === type) {
r7 = t.A17aM8;
} else {
WATCHING = ActivityTypes.WATCHING;
if (WATCHING === type) {
r7 = t.ENbTKQ;
} else if (ActivityTypes.LISTENING === type) {
r7 = t.EcHzWI;
if (value3 != null) {
value6 = (importDefault(10243) /* metro dependency 10243: getActivityPlatformDisplayName */)(value3, a0);
type = a0.type;
if (ActivityTypes.PLAYING === type) {
r7 = t.A17aM8;
} else {
COMPETING = ActivityTypes.COMPETING;
if (COMPETING === type) {
r7 = t.ikpHeS;
WATCHING = ActivityTypes.WATCHING;
if (WATCHING === type) {
r7 = t.ENbTKQ;
} else if (ActivityTypes.LISTENING === type) {
r7 = t.EcHzWI;
} else {
reducibleJoin40: while (true) {
if (ActivityTypes.STREAMING !== type) {
r7 = value2;
COMPETING = ActivityTypes.COMPETING;
if (COMPETING === type) {
r7 = t.ikpHeS;
} else {
reducibleJoin40: while (true) {
if (ActivityTypes.STREAMING !== type) {
r7 = value2;
break reducibleJoin40;
}
Dzgz4u = t.Dzgz4u;
r7 = Dzgz4u;
break reducibleJoin40;
}
Dzgz4u = t.Dzgz4u;
r7 = Dzgz4u;
break reducibleJoin40;
}
}
}
}
reducibleJoin41: while (true) {
if (value2 !== r7) {
return {text: intl.formatToPlainString(r7, {platform: value6}), platformIcon: icon, platformLabel: r1};
reducibleJoin41: while (true) {
if (value2 !== r7) {
return {text: intl.formatToPlainString(r7, {platform: value6}), platformIcon: icon, platformLabel: r1};
}
break reducibleJoin41;
}
break reducibleJoin41;
}
}
type = a0.type;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
r0 = {text: intl.string(t.BMTj28), platformIcon: icon, platformLabel: r1};
} else {
type = a0.type;
if (type === ActivityTypes.STREAMING) {
object2 = {};
object2.text = intl.string(t['Jpkr/q']);
object2.platformIcon = icon;
object2.platformLabel = r1;
r0 = object2;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
r0 = {text: intl.string(t.BMTj28), platformIcon: icon, platformLabel: r1};
} else {
moduleValue = require(6880) /* metro dependency 6880: StageChannelRichPresenceUtils */;
if (moduleValue.isStageActivity(a0)) {
r0 = {text: intl.formatToPlainString(t.pW3Ip3, {name: a0.name})};
type = a0.type;
if (type === ActivityTypes.STREAMING) {
object = {};
object.text = intl.string(t['Jpkr/q']);
object.platformIcon = icon;
object.platformLabel = r1;
r0 = object;
} else {
type = a0.type;
LISTENING = ActivityTypes.LISTENING;
reducibleJoin65: while (true) {
reducibleJoin46: while (true) {
if (type !== LISTENING) {
break reducibleJoin46;
}
details = a0.details;
if (details != null) {
formatToPlainString = intl.formatToPlainString;
property = t['b+lA5+'];
name = a0.name;
r0 = {text: Reflect.apply(formatToPlainString, intl, [property, {name: name}]),
platformIcon: icon,
platformLabel: r1};
break reducibleJoin65;
}
break reducibleJoin46;
}
moduleValue = require(6880) /* metro dependency 6880: StageChannelRichPresenceUtils */;
if (moduleValue.isStageActivity(a0)) {
r0 = {text: intl.formatToPlainString(t.pW3Ip3, {name: a0.name})};
} else {
type = a0.type;
LISTENING = ActivityTypes.LISTENING;
if (type === LISTENING) {
string = intl.string;
dBISa6 = t.dBISa6;
r0 = {text: Reflect.apply(string, intl, [dBISa6]), platformIcon: icon, platformLabel: r1};
} else {
type = a0.type;
WATCHING = ActivityTypes.WATCHING;
reducibleJoin61: while (true) {
reducibleJoin49: while (true) {
if (type !== WATCHING) {
break reducibleJoin49;
}
details = a0.details;
if (details != null) {
formatToPlainString = intl.formatToPlainString;
mqdfDc = t.mqdfDc;
name = a0.name;
r0 = {text: Reflect.apply(formatToPlainString, intl, [mqdfDc, {name: name}]),
platformIcon: icon,
platformLabel: r1};
break reducibleJoin61;
}
break reducibleJoin49;
reducibleJoin65: while (true) {
reducibleJoin46: while (true) {
if (type !== LISTENING) {
break reducibleJoin46;
}
details = a0.details;
if (details != null) {
formatToPlainString = intl.formatToPlainString;
property = t['b+lA5+'];
name = a0.name;
r0 = {text: Reflect.apply(formatToPlainString, intl, [property, {name: name}]),
platformIcon: icon,
platformLabel: r1};
break reducibleJoin65;
}
break reducibleJoin46;
}
type = a0.type;
LISTENING = ActivityTypes.LISTENING;
if (type === LISTENING) {
string = intl.string;
dBISa6 = t.dBISa6;
r0 = {text: Reflect.apply(string, intl, [dBISa6]), platformIcon: icon, platformLabel: r1};
} else {
type = a0.type;
WATCHING = ActivityTypes.WATCHING;
if (type === WATCHING) {
string = intl.string;
GpNXjC = t.GpNXjC;
r0 = {text: Reflect.apply(string, intl, [GpNXjC]), platformIcon: icon,
platformLabel: r1};
} else {
type = a0.type;
COMPETING = ActivityTypes.COMPETING;
reducibleJoin57: while (true) {
reducibleJoin52: while (true) {
if (type !== COMPETING) {
break reducibleJoin52;
}
details = a0.details;
if (details != null) {
formatToPlainString = intl.formatToPlainString;
oHF7Ch = t.oHF7Ch;
name = a0.name;
r0 = {text: Reflect.apply(formatToPlainString, intl, [oHF7Ch,
{name: name}]),
platformIcon: icon,
platformLabel: r1};
break reducibleJoin57;
}
break reducibleJoin52;
reducibleJoin61: while (true) {
reducibleJoin49: while (true) {
if (type !== WATCHING) {
break reducibleJoin49;
}
details = a0.details;
if (details != null) {
formatToPlainString = intl.formatToPlainString;
mqdfDc = t.mqdfDc;
name = a0.name;
r0 = {text: Reflect.apply(formatToPlainString, intl, [mqdfDc, {name: name}]),
platformIcon: icon,
platformLabel: r1};
break reducibleJoin61;
}
break reducibleJoin49;
}
type = a0.type;
WATCHING = ActivityTypes.WATCHING;
if (type === WATCHING) {
string = intl.string;
GpNXjC = t.GpNXjC;
r0 = {text: Reflect.apply(string, intl, [GpNXjC]), platformIcon: icon,
platformLabel: r1};
} else {
type = a0.type;
COMPETING = ActivityTypes.COMPETING;
if (type === COMPETING) {
string = intl.string;
OzCsIA = t.OzCsIA;
r0 = {text: Reflect.apply(string, intl, [OzCsIA]), platformIcon: icon,
platformLabel: r1};
} else {
r0 = {text: value2, platformIcon: icon, platformLabel: r1};
reducibleJoin57: while (true) {
reducibleJoin52: while (true) {
if (type !== COMPETING) {
break reducibleJoin52;
}
details = a0.details;
if (details != null) {
formatToPlainString = intl.formatToPlainString;
oHF7Ch = t.oHF7Ch;
name = a0.name;
r0 = {text: Reflect.apply(formatToPlainString, intl, [oHF7Ch,
{name: name}]),
platformIcon: icon,
platformLabel: r1};
break reducibleJoin57;
}
break reducibleJoin52;
}
type = a0.type;
COMPETING = ActivityTypes.COMPETING;
if (type === COMPETING) {
string = intl.string;
OzCsIA = t.OzCsIA;
r0 = {text: Reflect.apply(string, intl, [OzCsIA]), platformIcon: icon,
platformLabel: r1};
} else {
r0 = {text: value2, platformIcon: icon, platformLabel: r1};
}
break reducibleJoin57;
}
break reducibleJoin57;
}
break reducibleJoin61;
}
break reducibleJoin61;
}
break reducibleJoin65;
}
break reducibleJoin65;
}
}
}
return r0;
}
return r0;
}
global.__d(_fun79557, 10238, [661, 10239, 10240, 1244, 10242, 10243, 6880,
2]) /* metro module 10238, dependencies: [661, 10239, 10240, 1244, 10242, 10243, 6880, 2] */;
@@ -1,55 +1,65 @@
/* Metro module 10240; source: modules/user_profile/utils/getActivityPlatform.tsx; dependencies: [661, 10239, 6887, 4915, 8846, 10214, 10215, 10241, 10242, 2] */
import ParseProviderRouteHeadlessSessionId from './parseProviderRouteHeadlessSessionId.tsx'; /* Metro dependency 10239 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun79561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10426:6, offset: 0x01e582ab, size: 197 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PlatformTypes = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const PlatformTypes = (ConstantsModule).PlatformTypes;
const Set = global.Set;
const LEAGUE_OF_LEGENDS = PlatformTypes.LEAGUE_OF_LEGENDS;
const ROBLOX = PlatformTypes.ROBLOX;
const TWITCH = PlatformTypes.TWITCH;
const YOUTUBE = PlatformTypes.YOUTUBE;
const set = new Set([LEAGUE_OF_LEGENDS, ROBLOX, TWITCH, YOUTUBE]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/getActivityPlatform.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/getActivityPlatform.tsx');
exports.default = getActivityPlatform;
function getActivityPlatform(a0) { // fn#79562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10426:275, offset: 0x01e58370, size: 490 bytes, params: 2, frame: 25
var defaultImport3;
var defaultImport4;
var defaultImport5;
var defaultImport6;
var defaultImport7;
const env0_0 = a0;
const value2 = (ParseProviderRouteHeadlessSessionId)(a0.session_id);
const value3 = null;
if (value3 != value2) {
return value2;
}
if ((importDefault(6887) /* metro dependency 6887: isListeningOnSpotify */)(a0)) {
defaultImport7 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport7.get(PlatformTypes.SPOTIFY);
}
if ((importDefault(8846) /* metro dependency 8846: isCrunchyrollActivity */)(a0)) {
defaultImport6 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport6.get(PlatformTypes.CRUNCHYROLL);
}
if ((importDefault(10214) /* metro dependency 10214: isOnXbox */)(a0)) {
defaultImport5 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport5.get(PlatformTypes.XBOX);
}
if ((importDefault(10215) /* metro dependency 10215: isOnPlayStation */)(a0)) {
defaultImport4 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport4.get(PlatformTypes.PLAYSTATION);
}
if ((importDefault(10241) /* metro dependency 10241: isOnMetaQuest */)(a0)) {
defaultImport3 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport3.get(PlatformTypes.META_QUEST_OR_HORIZON);
}
if ((importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a0)) {
defaultImport3 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport3.get(PlatformTypes.META_QUEST_OR_HORIZON);
}
const value8 = (importDefault(4915) /* metro dependency 4915: Platforms */).find(_fun79563);
return value3 != value8 && env0_3.has(value8.type) ? value8 : value3;
function _fun79563({name}) { // fn#79563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10426:626, offset: 0x01b940c1, size: 26 bytes, params: 2, frame: 2
return name === env0_0.name;
}
}
}
function getActivityPlatform(a0) { // fn#79562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10426:275, offset: 0x01e58370, size: 490 bytes, params: 2, frame: 25
var defaultImport3;
var defaultImport4;
var defaultImport5;
var defaultImport6;
var defaultImport7;
const env0_0 = a0;
const value2 = (importDefault(10239) /* metro dependency 10239: parseProviderRouteHeadlessSessionId */)(a0.session_id);
const value3 = null;
if (value3 != value2) {
return value2;
}
if ((importDefault(6887) /* metro dependency 6887: isListeningOnSpotify */)(a0)) {
defaultImport7 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport7.get(PlatformTypes.SPOTIFY);
}
if ((importDefault(8846) /* metro dependency 8846: isCrunchyrollActivity */)(a0)) {
defaultImport6 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport6.get(PlatformTypes.CRUNCHYROLL);
}
if ((importDefault(10214) /* metro dependency 10214: isOnXbox */)(a0)) {
defaultImport5 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport5.get(PlatformTypes.XBOX);
}
if ((importDefault(10215) /* metro dependency 10215: isOnPlayStation */)(a0)) {
defaultImport4 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport4.get(PlatformTypes.PLAYSTATION);
}
if ((importDefault(10241) /* metro dependency 10241: isOnMetaQuest */)(a0)) {
defaultImport3 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport3.get(PlatformTypes.META_QUEST_OR_HORIZON);
}
if ((importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a0)) {
defaultImport3 = importDefault(4915) /* metro dependency 4915: Platforms */;
return defaultImport3.get(PlatformTypes.META_QUEST_OR_HORIZON);
}
const value8 = (importDefault(4915) /* metro dependency 4915: Platforms */).find(_fun79563);
return value3 != value8 && env0_3.has(value8.type) ? value8 : value3;
}
global.__d(_fun79561, 10240, [661, 10239, 6887, 4915, 8846, 10214, 10215, 10241, 10242,
2]) /* metro module 10240, dependencies: [661, 10239, 6887, 4915, 8846, 10214, 10215, 10241, 10242, 2] */;
@@ -1,33 +1,37 @@
/* Metro module 10243; source: modules/user_profile/utils/getActivityPlatformDisplayName.tsx; dependencies: [661, 1244, 10242, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun79568(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10429:6, offset: 0x01e586d5, size: 124 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/getActivityPlatformDisplayName.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/getActivityPlatformDisplayName.tsx');
exports.default = getActivityPlatformDisplayName;
function getActivityPlatformDisplayName(a0, a1) { // fn#79569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10429:225, offset: 0x01e58751, size: 287 bytes, params: 3, frame: 16
var value2;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
const type = a0.type;
const XBOX = PlatformTypes.XBOX;
if (XBOX === type) {
return intl.string(t.Nfvo72);
}
const PLAYSTATION = PlatformTypes.PLAYSTATION;
if (PLAYSTATION === type) {
return intl.string(t.fFl4jo);
}
const META_QUEST_OR_HORIZON = PlatformTypes.META_QUEST_OR_HORIZON;
if (META_QUEST_OR_HORIZON === type) {
value2 = (importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a1);
string = intl.string;
return value2 ? Reflect.apply(string, intl, [t.BrHQaq]) : Reflect.apply(string, intl, [t.p6vL0e]);
}
return a0.name;
}
}
function getActivityPlatformDisplayName(a0, a1) { // fn#79569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10429:225, offset: 0x01e58751, size: 287 bytes, params: 3, frame: 16
var value2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const type = a0.type;
const XBOX = PlatformTypes.XBOX;
if (XBOX === type) {
return intl.string(t.Nfvo72);
}
const PLAYSTATION = PlatformTypes.PLAYSTATION;
if (PLAYSTATION === type) {
return intl.string(t.fFl4jo);
}
const META_QUEST_OR_HORIZON = PlatformTypes.META_QUEST_OR_HORIZON;
if (META_QUEST_OR_HORIZON === type) {
value2 = (importDefault(10242) /* metro dependency 10242: isOnMetaHorizon */)(a1);
string = intl.string;
return value2 ? Reflect.apply(string, intl, [t.BrHQaq]) : Reflect.apply(string, intl, [t.p6vL0e]);
}
return a0.name;
}
global.__d(_fun79568, 10243, [661, 1244, 10242, 2]) /* metro module 10243, dependencies: [661, 1244, 10242, 2] */;
@@ -1,17 +1,20 @@
/* Metro module 7612; source: modules/user_profile/utils/getCurrentUserProfile.tsx; dependencies: [1878, 5189, 2] */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UserProfileStore from '../UserProfileStore.tsx'; /* Metro dependency 5189 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun60983(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7790:6, offset: 0x0171723d, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const userProfileStore = importDefault(5189) /* metro dependency 5189: UserProfileStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/getCurrentUserProfile.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/getCurrentUserProfile.tsx');
exports.default = getCurrentUserProfile;
function getCurrentUserProfile(a0) { // fn#60984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7790:212, offset: 0x017172b5, size: 82 bytes, params: 2, frame: 16
const currentUser = UserStore.getCurrentUser();
const value3 = null;
return value3 == currentUser ? value3 : value3 != a0 ? UserProfileStore.getGuildMemberProfile(currentUser.id,
a0) : UserProfileStore.getUserProfile(currentUser.id);
}
}
function getCurrentUserProfile(a0) { // fn#60984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7790:212, offset: 0x017172b5, size: 82 bytes, params: 2, frame: 16
const currentUser = UserStore.getCurrentUser();
const value3 = null;
return value3 == currentUser ? value3 : value3 != a0 ? UserProfileStore.getGuildMemberProfile(currentUser.id,
a0) : UserProfileStore.getUserProfile(currentUser.id);
}
global.__d(_fun60983, 7612, [1878, 5189, 2]) /* metro module 7612, dependencies: [1878, 5189, 2] */;
@@ -1,25 +1,28 @@
/* Metro module 6813; source: modules/user_profile/utils/getHigherContrastColor.tsx; dependencies: [57, 673, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun53580(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6991:6, offset: 0x013500c5, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/getHigherContrastColor.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/getHigherContrastColor.tsx');
exports.getHigherContrastColor = getHigherContrastColor;
function getHigherContrastColor({backgroundColor, colors}) { // fn#53581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6991:218, offset: 0x01350135, size: 221 bytes, params: 2, frame: 20
const value2 = Module00057(colors, 2);
const property = value2[0];
const property2 = value2[1];
const r6 = typeof backgroundColor !== 'string' ? backgroundColor : (require(673) /* metro dependency 673: ColorUtils */).hex2int(backgroundColor);
const r10 = typeof property !== 'string' ? property : (require(673) /* metro dependency 673: ColorUtils */).hex2int(property);
const r5 = typeof property2 !== 'string' ? property2 : (require(673) /* metro dependency 673: ColorUtils */).hex2int(property2);
let value = require(673) /* metro dependency 673: ColorUtils */;
let getContrast = value.getContrast;
value = Reflect.apply(getContrast, value, [r6, r10]);
const colorUtilsModule = require(673) /* metro dependency 673: ColorUtils */;
getContrast = colorUtilsModule.getContrast;
return value > Reflect.apply(getContrast, colorUtilsModule, [r6, r5]) ? property : property2;
}
}
function getHigherContrastColor({backgroundColor, colors}) { // fn#53581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6991:218, offset: 0x01350135, size: 221 bytes, params: 2, frame: 20
const value2 = env0_2(colors, 2);
const property = value2[0];
const property2 = value2[1];
const r6 = typeof backgroundColor !== 'string' ? backgroundColor : (require(673) /* metro dependency 673: ColorUtils */).hex2int(backgroundColor);
const r10 = typeof property !== 'string' ? property : (require(673) /* metro dependency 673: ColorUtils */).hex2int(property);
const r5 = typeof property2 !== 'string' ? property2 : (require(673) /* metro dependency 673: ColorUtils */).hex2int(property2);
let value = require(673) /* metro dependency 673: ColorUtils */;
let getContrast = value.getContrast;
value = Reflect.apply(getContrast, value, [r6, r10]);
const colorUtilsModule = require(673) /* metro dependency 673: ColorUtils */;
getContrast = colorUtilsModule.getContrast;
return value > Reflect.apply(getContrast, colorUtilsModule, [r6, r5]) ? property : property2;
}
global.__d(_fun53580, 6813, [57, 673, 2]) /* metro module 6813, dependencies: [57, 673, 2] */;
@@ -1,17 +1,21 @@
/* Metro module 8854; source: modules/user_profile/utils/getMutualFriendsLabel.tsx; dependencies: [1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun69041(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9039:6, offset: 0x01c662d1, size: 96 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/getMutualFriendsLabel.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/getMutualFriendsLabel.tsx');
exports.default = getMutualFriendsLabel;
function getMutualFriendsLabel(a0) { // fn#69042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9039:188, offset: 0x01c66331, size: 220 bytes, params: 2, frame: 18
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const value = a0;
return value === undefined ? intl.string(t['0mTJ3j']) : value === 0 ? intl.string(t.n9g3ay) : intl.formatToPlainString(t['5s9jl+'],
{count: value ?? ''});
}
}
function getMutualFriendsLabel(a0) { // fn#69042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9039:188, offset: 0x01c66331, size: 220 bytes, params: 2, frame: 18
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value = a0;
return value === undefined ? intl.string(t['0mTJ3j']) : value === 0 ? intl.string(t.n9g3ay) : intl.formatToPlainString(t['5s9jl+'],
{count: value ?? ''});
}
global.__d(_fun69041, 8854, [1244, 2]) /* metro module 8854, dependencies: [1244, 2] */;
@@ -1,16 +1,20 @@
/* Metro module 8823; source: modules/user_profile/utils/getMutualGuildsLabel.tsx; dependencies: [1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun68950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9008:6, offset: 0x01c627e2, size: 96 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/getMutualGuildsLabel.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/getMutualGuildsLabel.tsx');
exports.default = getMutualGuildsLabel;
function getMutualGuildsLabel(a0) { // fn#68951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9008:187, offset: 0x01c62842, size: 200 bytes, params: 2, frame: 16
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
return a0 === undefined ? intl.string(t['4lTDZq']) : a0 === 0 ? intl.string(t.jpY0X5) : intl.formatToPlainString(t.eE3oep,
{count: a0});
}
}
function getMutualGuildsLabel(a0) { // fn#68951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9008:187, offset: 0x01c62842, size: 200 bytes, params: 2, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return a0 === undefined ? intl.string(t['4lTDZq']) : a0 === 0 ? intl.string(t.jpY0X5) : intl.formatToPlainString(t.eE3oep,
{count: a0});
}
global.__d(_fun68950, 8823, [1244, 2]) /* metro module 8823, dependencies: [1244, 2] */;
@@ -1,29 +1,33 @@
/* Metro module 10334; source: modules/user_profile/utils/native/openEditNoteModal.tsx; dependencies: [5176, 5080, 10335, 1962, 478, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun80102(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10520:6, offset: 0x01e6c86b, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/native/openEditNoteModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/native/openEditNoteModal.tsx');
exports.default = openEditNoteModal;
}
function openEditNoteModal(a0) { // fn#80103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10520:191, offset: 0x01e6c8d2, size: 182 bytes, params: 2, frame: 19
var r2;
var moduleValue;
const value2 = undefined;
const YouBarExperiment = require(dependencyMap[0]).YouBarExperiment;
const getConfig = YouBarExperiment.getConfig;
const enabled = Reflect.apply(getConfig, YouBarExperiment, [{location: 'open-edit-note-modal'}]).enabled;
const defaultImport = importDefault(dependencyMap[1]);
const pushLazy = defaultImport.pushLazy;
const value3 = require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
if (enabled) {
r2 = {presentation: 'modal'};
} else {
moduleValue = require(dependencyMap[4]);
r2 = moduleValue.isAndroid() ? {presentation: 'modal'} : value2;
function openEditNoteModal(a0) { // fn#80103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10520:191, offset: 0x01e6c8d2, size: 182 bytes, params: 2, frame: 19
var r2;
var moduleValue;
const value2 = undefined;
const YouBarExperiment = require(dependencyMap[0]).YouBarExperiment;
const getConfig = YouBarExperiment.getConfig;
const enabled = Reflect.apply(getConfig, YouBarExperiment, [{location: 'open-edit-note-modal'}]).enabled;
const defaultImport = importDefault(dependencyMap[1]);
const pushLazy = defaultImport.pushLazy;
const value3 = require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
if (enabled) {
r2 = {presentation: 'modal'};
} else {
moduleValue = require(dependencyMap[4]);
r2 = moduleValue.isAndroid() ? {presentation: 'modal'} : value2;
}
Reflect.apply(pushLazy, defaultImport, [value3, a0, value2, r2]);
return value2;
}
Reflect.apply(pushLazy, defaultImport, [value3, a0, value2, r2]);
return value2;
}
global.__d(_fun80102, 10334, [5176, 5080, 10335, 1962, 478,
2]) /* metro module 10334, dependencies: [5176, 5080, 10335, 1962, 478, 2] */;
@@ -1,30 +1,33 @@
/* Metro module 10239; source: modules/user_profile/utils/parseProviderRouteHeadlessSessionId.tsx; dependencies: [57, 4915, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun79559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10425:6, offset: 0x01e58194, size: 128 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/parseProviderRouteHeadlessSessionId.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/parseProviderRouteHeadlessSessionId.tsx');
exports.default = parseProviderRouteHeadlessSessionId;
exports.HEADLESS_SESSION_ID_PREFIX = 'h:';
}
function parseProviderRouteHeadlessSessionId(a0) { // fn#79560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10425:223, offset: 0x01e58214, size: 151 bytes, params: 2, frame: 16
var property;
var value6;
const value = null;
if (value != a0) {
if (a0.startsWith('h:')) {
property = env0_2(a0.slice(2).split(','), 1)[0];
if (value == property) {
return value;
function parseProviderRouteHeadlessSessionId(a0) { // fn#79560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10425:223, offset: 0x01e58214, size: 151 bytes, params: 2, frame: 16
var property;
var value6;
const value = null;
if (value != a0) {
if (a0.startsWith('h:')) {
property = Module00057(a0.slice(2).split(','), 1)[0];
if (value == property) {
return value;
}
if (property.length === 0) {
return value;
}
value6 = (importDefault(4915) /* metro dependency 4915: Platforms */).get(property);
return value != value6 && value6.enabled ? value6 : value;
}
if (property.length === 0) {
return value;
}
value6 = (importDefault(4915) /* metro dependency 4915: Platforms */).get(property);
return value != value6 && value6.enabled ? value6 : value;
}
return value;
}
return value;
}
global.__d(_fun79559, 10239, [57, 4915, 2]) /* metro module 10239, dependencies: [57, 4915, 2] */;
@@ -1,4 +1,7 @@
/* Metro module 5212; source: modules/user_profile/utils/parseUserProfileCollectibles.tsx; dependencies: [1904, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CollectiblesItemTypeModule from '../../../external/discord_common/js/shared/shared-constants/CollectiblesItemType.tsx'; /* Metro dependency 1904 */
function _fun45976(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5390:6, offset: 0x0119cdf1, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_45979 = function(a0, a1) {
@@ -46,202 +49,208 @@ function _fun45976(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/parseUserProfileCollectibles.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/parseUserProfileCollectibles.tsx');
exports.default = parseUserProfileCollectibles;
}
function _createForOfIteratorHelperLoose_45977(a0, a1) { // fn#45977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5390:46, offset: 0x0119ce61, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_45977(a0, a1) { // fn#45977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5390:46, offset: 0x0119ce61, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun45978;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_45979(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun45978;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_45979(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_45979(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_45979(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun45978;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function parseUserProfileCollectibles(a0) { // fn#45980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5390:1111, offset: 0x0119cfd3, size: 537 bytes, params: 2, frame: 30
var r5;
var r6;
var r7;
var r15;
var r16;
var r14;
var r2;
var r3;
var value5;
var push;
var object5;
var sku_id;
var type;
var expires_at;
var Date;
var prototype;
var date;
const CollectiblesItemType = (require(1904) /* metro dependency 1904: CollectiblesItemType */).CollectiblesItemType;
var PROFILE_EFFECT;
var PROFILE_FRAME;
var object6;
var value8;
var value9;
var object7;
var Math;
var floor;
var value10;
var value11;
var getTime;
var value12;
var value13;
const value = undefined;
if ((a0 == null ? value : a0.collectibles) == null) {
return {collectibles: value, profileEffect: value, profileFrame: value};
}
const items = [];
const value3 = _createForOfIteratorHelperLoose_45977(a0.collectibles);
const value4 = value3();
let done = value4.done;
if (done) {
r2 = value;
r3 = value;
} else {
r5 = value4;
r6 = value;
r7 = value;
while (true) {
value5 = r5.value;
push = items.push;
object5 = {};
sku_id = value5.sku_id;
object5.skuId = sku_id;
type = value5.type;
object5.type = type;
expires_at = value5.expires_at;
if (expires_at != null) {
Date = global.Date;
expires_at = value5.expires_at;
r15 = new Date();
} else {
r15 = value;
if (r5) {
}
object5.expiresAt = r15;
Reflect.apply(push, items, [object5]);
type = value5.type;
PROFILE_EFFECT = CollectiblesItemType.PROFILE_EFFECT;
if (type === PROFILE_EFFECT) {
object7 = {};
return _fun45978;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun45978() { // fn#45978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5390:617, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function parseUserProfileCollectibles(a0) { // fn#45980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5390:1111, offset: 0x0119cfd3, size: 537 bytes, params: 2, frame: 30
var r5;
var r6;
var r7;
var r15;
var r16;
var r14;
var r2;
var r3;
var value5;
var push;
var object;
var sku_id;
var type;
var expires_at;
var Date;
var prototype;
var date;
const CollectiblesItemType = (CollectiblesItemTypeModule).CollectiblesItemType;
var PROFILE_EFFECT;
var PROFILE_FRAME;
var object2;
var value8;
var value9;
var object3;
var Math;
var floor;
var value10;
var value11;
var getTime;
var value12;
var value13;
const value = undefined;
if ((a0 == null ? value : a0.collectibles) == null) {
return {collectibles: value, profileEffect: value, profileFrame: value};
}
const items2 = [];
const value3 = _createForOfIteratorHelperLoose_45977(a0.collectibles);
const value4 = value3();
let done = value4.done;
if (done) {
r2 = value;
r3 = value;
} else {
r5 = value4;
r6 = value;
r7 = value;
while (true) {
value5 = r5.value;
push = items2.push;
object = {};
sku_id = value5.sku_id;
object7.skuId = sku_id;
expires_at = value5.expires_at;
if (expires_at == null) {
r16 = value;
continue;
}
Math = global.Math;
floor = Math.floor;
Date = global.Date;
expires_at = value5.expires_at;
prototype = Date.prototype;
value10 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value11 = date instanceof Object ? date : value10;
getTime = value11.getTime;
value12 = Reflect.apply(floor, Math, [Reflect.apply(getTime, value11, []) / 1000]);
r16 = value12;
object7.expiresAt = r16;
r14 = r6;
r15 = object7;
} else {
object.skuId = sku_id;
type = value5.type;
PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
if (type !== PROFILE_FRAME) {
object.type = type;
expires_at = value5.expires_at;
if (expires_at != null) {
Date = global.Date;
expires_at = value5.expires_at;
r15 = new Date();
} else {
r15 = value;
}
object.expiresAt = r15;
Reflect.apply(push, items2, [object]);
type = value5.type;
PROFILE_EFFECT = CollectiblesItemType.PROFILE_EFFECT;
if (type === PROFILE_EFFECT) {
object3 = {};
sku_id = value5.sku_id;
object3.skuId = sku_id;
expires_at = value5.expires_at;
if (expires_at == null) {
r16 = value;
continue;
}
Math = global.Math;
floor = Math.floor;
Date = global.Date;
expires_at = value5.expires_at;
prototype = Date.prototype;
value10 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value11 = date instanceof Object ? date : value10;
getTime = value11.getTime;
value12 = Reflect.apply(floor, Math, [Reflect.apply(getTime, value11, []) / 1000]);
r16 = value12;
object3.expiresAt = r16;
r14 = r6;
r15 = object3;
} else {
type = value5.type;
PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
if (type !== PROFILE_FRAME) {
r14 = r6;
r15 = r7;
continue;
}
object2 = {};
sku_id = value5.sku_id;
object2.skuId = sku_id;
PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
object2.type = PROFILE_FRAME;
expires_at = value5.expires_at;
if (expires_at == null) {
r16 = value;
continue;
}
Date = global.Date;
expires_at = value5.expires_at;
prototype = Date.prototype;
value8 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value9 = date instanceof Object ? date : value8;
r16 = value9;
object2.expiresAt = r16;
r14 = object2;
r15 = r7;
continue;
}
object6 = {};
sku_id = value5.sku_id;
object6.skuId = sku_id;
PROFILE_FRAME = CollectiblesItemType.PROFILE_FRAME;
object6.type = PROFILE_FRAME;
expires_at = value5.expires_at;
if (expires_at == null) {
r16 = value;
continue;
value13 = value3();
done = value13.done;
if (done) {
r2 = r14;
r3 = r15;
break;
}
Date = global.Date;
expires_at = value5.expires_at;
prototype = Date.prototype;
value8 = Object.create(prototype, {constructor: {value: Date}});
date = new Date();
value9 = date instanceof Object ? date : value8;
r16 = value9;
object6.expiresAt = r16;
r14 = object6;
r15 = r7;
r5 = value13;
r6 = r14;
r7 = r15;
continue;
}
value13 = value3();
done = value13.done;
if (done) {
r2 = r14;
r3 = r15;
break;
}
r5 = value13;
r6 = r14;
r7 = r15;
continue;
}
return {collectibles: items2, profileEffect: r3, profileFrame: r2};
}
return {collectibles: items, profileEffect: r3, profileFrame: r2};
}
global.__d(_fun45976, 5212, [1904, 2]) /* metro module 5212, dependencies: [1904, 2] */;
@@ -1,25 +1,28 @@
/* Metro module 10225; source: modules/user_profile/utils/shouldShowActivityTimeBar.tsx; dependencies: [661, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun79525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10411:6, offset: 0x01e566a1, size: 109 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/shouldShowActivityTimeBar.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/shouldShowActivityTimeBar.tsx');
exports.default = shouldShowActivityTimeBar;
}
function shouldShowActivityTimeBar(a0) { // fn#79526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10411:220, offset: 0x01e5670e, size: 98 bytes, params: 2, frame: 6
var timestamps;
const type = a0.type;
var value;
const LISTENING = ActivityTypes.LISTENING;
let r0 = type === LISTENING || a0.type === ActivityTypes.WATCHING;
if (r0) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.start) != null;
r0 = value;
function shouldShowActivityTimeBar(a0) { // fn#79526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10411:220, offset: 0x01e5670e, size: 98 bytes, params: 2, frame: 6
var timestamps;
const type = a0.type;
var value;
const LISTENING = ActivityTypes.LISTENING;
let r0 = type === LISTENING || a0.type === ActivityTypes.WATCHING;
if (r0) {
timestamps = a0.timestamps;
value = undefined;
value = (timestamps == null ? value : timestamps.start) != null;
r0 = value;
}
r0 = r0 && a0.timestamps.end != null;
return r0;
}
r0 = r0 && a0.timestamps.end != null;
return r0;
}
global.__d(_fun79525, 10225, [661, 2]) /* metro module 10225, dependencies: [661, 2] */;
@@ -1,27 +1,33 @@
/* Metro module 7621; source: modules/user_profile/utils/trackUserAvatarUpdated.tsx; dependencies: [661, 7611, 683, 1423, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as RecentAvatarsTypesModule from '../../recent_avatars/RecentAvatarsTypes.tsx'; /* Metro dependency 7611 */
function _fun61056(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7799:6, offset: 0x01719561, size: 122 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/utils/trackUserAvatarUpdated.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_profile/utils/trackUserAvatarUpdated.tsx');
exports.trackUserAvatarUpdated = trackUserAvatarUpdated;
function trackUserAvatarUpdated({avatarHash, avatarId, isGuildProfile, avatarAssetOrigin}) { // fn#61057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7799:233, offset: 0x017195db, size: 249 bytes, params: 2, frame: 23
const AssetOriginTypes = (RecentAvatarsTypesModule).AssetOriginTypes;
isGuildProfile = !(isGuildProfile === undefined) && isGuildProfile;
const r6 = avatarAssetOrigin !== undefined ? avatarAssetOrigin : AssetOriginTypes.NEW_ASSET;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const USER_AVATAR_UPDATED = AnalyticEvents.USER_AVATAR_UPDATED;
const object = {};
object.animated = (require(1423) /* metro dependency 1423: AvatarUtils */).isAnimatedIconHash(avatarHash);
object.is_guild_profile = isGuildProfile;
const ARCHIVED_ASSET = AssetOriginTypes.ARCHIVED_ASSET;
object.recent_avatar_id = r6 !== ARCHIVED_ASSET ? undefined : global.Number(avatarId);
const EDITED_ARCHIVED_ASSET = AssetOriginTypes.EDITED_ARCHIVED_ASSET;
object.is_edited_recent_avatar = r6 === EDITED_ARCHIVED_ASSET;
Reflect.apply(track, defaultImport, [USER_AVATAR_UPDATED, object]);
}
}
function trackUserAvatarUpdated({avatarHash, avatarId, isGuildProfile, avatarAssetOrigin}) { // fn#61057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7799:233, offset: 0x017195db, size: 249 bytes, params: 2, frame: 23
const AssetOriginTypes = (require(7611) /* metro dependency 7611: RecentAvatarsTypes */).AssetOriginTypes;
isGuildProfile = !(isGuildProfile === undefined) && isGuildProfile;
const r6 = avatarAssetOrigin !== undefined ? avatarAssetOrigin : AssetOriginTypes.NEW_ASSET;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const USER_AVATAR_UPDATED = AnalyticEvents.USER_AVATAR_UPDATED;
const object2 = {};
object2.animated = (require(1423) /* metro dependency 1423: AvatarUtils */).isAnimatedIconHash(avatarHash);
object2.is_guild_profile = isGuildProfile;
const ARCHIVED_ASSET = AssetOriginTypes.ARCHIVED_ASSET;
object2.recent_avatar_id = r6 !== ARCHIVED_ASSET ? undefined : global.Number(avatarId);
const EDITED_ARCHIVED_ASSET = AssetOriginTypes.EDITED_ARCHIVED_ASSET;
object2.is_edited_recent_avatar = r6 === EDITED_ARCHIVED_ASSET;
Reflect.apply(track, defaultImport, [USER_AVATAR_UPDATED, object2]);
}
global.__d(_fun61056, 7621, [661, 7611, 683, 1423,
2]) /* metro module 7621, dependencies: [661, 7611, 683, 1423, 2] */;