Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,361 @@
/* Metro module 10238; source: modules/user_profile/utils/getActivityHeader.tsx; dependencies: [661, 10239, 10240, 1244, 10242, 10243, 6880, 2] */
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');
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;
break reducibleJoin2;
}
icon = value4.icon;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (value4 == null) {
name = value2;
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;
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};
}
break reducibleJoin9;
}
}
type = a0.type;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin12: while (true) {
if (value4 == null) {
type = value2;
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};
}
break reducibleJoin13;
}
}
type = a0.type;
PLAYING = ActivityTypes.PLAYING;
if (type === PLAYING) {
reducibleJoin16: while (true) {
if (value4 == null) {
type = value2;
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]);
}
return {text: Reflect.apply(formatToPlainString, intl, [A17aM8, {platform: r8}]), platformIcon: icon,
platformLabel: r1};
}
break reducibleJoin17;
}
}
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;
}
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};
}
break reducibleJoin21;
}
}
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;
}
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;
}
}
type = a0.type;
STREAMING = ActivityTypes.STREAMING;
if (type === STREAMING) {
reducibleJoin28: while (true) {
if (value4 == null) {
type = value2;
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};
}
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;
} else {
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;
}
}
}
}
reducibleJoin41: while (true) {
if (value2 !== r7) {
return {text: intl.formatToPlainString(r7, {platform: value6}), platformIcon: icon, platformLabel: r1};
}
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;
} else {
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;
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;
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;
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 reducibleJoin61;
}
}
break reducibleJoin65;
}
}
}
}
return r0;
}