decord/source/modules/user_profile/utils/getActivityHeader.tsx

263 lines
9.3 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 12173
// Function ID: 12174
2026-07-20 16:05:17 +00:00
// Name: getActivityHeader
2026-08-05 07:35:12 +00:00
// Dependencies: [676, 12174, 12175, 1236, 12177, 12178, 9545, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 12173 (getActivityHeader)
2026-07-23 10:11:24 +00:00
import ME from "ME";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
({ ActivityTypes: c3, PlatformTypes: c4 } = ME);
2026-07-23 10:11:24 +00:00
const result = require("PlatformTypes").fileFinishedImporting("modules/user_profile/utils/getActivityHeader.tsx");
2026-07-20 16:05:17 +00:00
export default function getActivityHeader(session_id) {
2026-08-05 07:35:12 +00:00
const tmp3 = importDefault(12174)(session_id.session_id);
const tmp4 = importDefault(12175)(session_id);
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
const icon = tmp4.icon;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let str;
if (tmp4 != null) {
str = tmp4.name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
if (session_id.type === constants.PLAYING) {
let type;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
type = tmp4.type;
2026-07-20 16:05:17 +00:00
}
if (type === constants2.XBOX) {
2026-07-29 08:29:29 +00:00
let obj = { text: null, platformIcon: null, platformLabel: null };
const intl21 = require(1236) /* getSystemLocale */.intl;
obj = { platform: null };
const intl22 = require(1236) /* getSystemLocale */.intl;
obj[0] = intl22.string(require(1236) /* getSystemLocale */.t.Nfvo72);
obj[0] = intl21.formatToPlainString(require(1236) /* getSystemLocale */.t.A17aM8, obj);
obj[1] = icon;
obj[2] = str;
2026-07-20 16:05:17 +00:00
return obj;
}
}
if (session_id.type === constants.PLAYING) {
let type1;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
type1 = tmp4.type;
2026-07-20 16:05:17 +00:00
}
if (type1 === constants2.PLAYSTATION) {
2026-07-29 08:29:29 +00:00
const obj1 = { text: null, platformIcon: null, platformLabel: null };
const intl19 = require(1236) /* getSystemLocale */.intl;
const obj2 = { platform: null };
const intl20 = require(1236) /* getSystemLocale */.intl;
obj2[0] = intl20.string(require(1236) /* getSystemLocale */.t.fFl4jo);
obj1[0] = intl19.formatToPlainString(require(1236) /* getSystemLocale */.t.A17aM8, obj2);
obj1[1] = icon;
obj1[2] = str;
2026-07-20 16:05:17 +00:00
return obj1;
}
}
if (session_id.type === constants.PLAYING) {
let type2;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
type2 = tmp4.type;
2026-07-20 16:05:17 +00:00
}
if (type2 === constants2.META_QUEST_OR_HORIZON) {
2026-07-29 08:29:29 +00:00
const intl17 = require(1236) /* getSystemLocale */.intl;
const intl18 = require(1236) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const string2 = intl18.string;
2026-07-29 08:29:29 +00:00
const t2 = require(1236) /* getSystemLocale */.t;
if (tmp31) {
2026-07-20 16:05:17 +00:00
let string2Result = string2(t2.BrHQaq);
} else {
string2Result = string2(t2.p6vL0e);
}
2026-07-29 08:29:29 +00:00
const obj3 = { text: null, platformIcon: null, platformLabel: null };
const obj4 = { platform: null };
obj4[0] = string2Result;
obj3[0] = intl17.formatToPlainString(require(1236) /* getSystemLocale */.t.A17aM8, obj4);
obj3[1] = icon;
obj3[2] = str;
2026-07-20 16:05:17 +00:00
return obj3;
}
}
if (session_id.type === constants.WATCHING) {
let type3;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
type3 = tmp4.type;
2026-07-20 16:05:17 +00:00
}
if (type3 === constants2.META_QUEST_OR_HORIZON) {
2026-07-29 08:29:29 +00:00
const intl15 = require(1236) /* getSystemLocale */.intl;
const intl16 = require(1236) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const string = intl16.string;
2026-07-29 08:29:29 +00:00
const t = require(1236) /* getSystemLocale */.t;
if (tmp28) {
2026-07-20 16:05:17 +00:00
let stringResult = string(t.BrHQaq);
} else {
stringResult = string(t.p6vL0e);
}
2026-07-29 08:29:29 +00:00
const obj5 = { text: null, platformIcon: null, platformLabel: null };
const obj6 = { platform: null };
obj6[0] = stringResult;
obj5[0] = intl15.formatToPlainString(require(1236) /* getSystemLocale */.t.ENbTKQ, obj6);
obj5[1] = icon;
obj5[2] = str;
2026-07-20 16:05:17 +00:00
return obj5;
}
}
if (session_id.type === constants.STREAMING) {
let type4;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
type4 = tmp4.type;
2026-07-20 16:05:17 +00:00
}
if (type4 === constants2.TWITCH) {
2026-07-29 08:29:29 +00:00
const obj7 = { text: null, platformIcon: null, platformLabel: null };
const intl13 = require(1236) /* getSystemLocale */.intl;
const obj8 = { name: null };
const intl14 = require(1236) /* getSystemLocale */.intl;
obj8[0] = intl14.string(require(1236) /* getSystemLocale */.t.q4pBG3);
obj7[0] = intl13.formatToPlainString(require(1236) /* getSystemLocale */.t["4CQq9Q"], obj8);
obj7[1] = icon;
obj7[2] = str;
2026-07-20 16:05:17 +00:00
return obj7;
}
}
if (session_id.type === constants.STREAMING) {
let type5;
2026-07-29 08:29:29 +00:00
if (tmp4 != null) {
type5 = tmp4.type;
2026-07-20 16:05:17 +00:00
}
if (type5 === constants2.YOUTUBE) {
2026-07-29 08:29:29 +00:00
const obj9 = { text: null, platformIcon: null, platformLabel: null };
const intl11 = require(1236) /* getSystemLocale */.intl;
const obj10 = { name: null };
const intl12 = require(1236) /* getSystemLocale */.intl;
obj10[0] = intl12.string(require(1236) /* getSystemLocale */.t.aS6cK4);
obj9[0] = intl11.formatToPlainString(require(1236) /* getSystemLocale */.t["4CQq9Q"], obj10);
obj9[1] = icon;
obj9[2] = str;
2026-07-20 16:05:17 +00:00
return obj9;
}
}
2026-07-29 08:29:29 +00:00
if (null != tmp3) {
2026-07-20 16:05:17 +00:00
type = session_id.type;
2026-07-29 08:29:29 +00:00
if (tmp5.PLAYING === type) {
let Dzgz4u = require(1236) /* getSystemLocale */.t.A17aM8;
} else if (tmp5.WATCHING === type) {
Dzgz4u = require(1236) /* getSystemLocale */.t.ENbTKQ;
} else if (tmp5.LISTENING === type) {
Dzgz4u = require(1236) /* getSystemLocale */.t.EcHzWI;
} else if (tmp5.COMPETING === type) {
Dzgz4u = require(1236) /* getSystemLocale */.t.ikpHeS;
} else if (tmp5.STREAMING === type) {
Dzgz4u = require(1236) /* getSystemLocale */.t.Dzgz4u;
2026-07-20 16:05:17 +00:00
}
if (undefined !== Dzgz4u) {
2026-07-29 08:29:29 +00:00
const obj11 = { text: null, platformIcon: null, platformLabel: null };
const intl10 = require(1236) /* getSystemLocale */.intl;
const obj12 = { platform: null };
obj12[0] = tmp35;
obj11[0] = intl10.formatToPlainString(Dzgz4u, obj12);
obj11[1] = icon;
obj11[2] = str;
2026-07-20 16:05:17 +00:00
return obj11;
}
2026-08-05 07:35:12 +00:00
tmp35 = tmp(12178)(tmp3, session_id);
2026-07-20 16:05:17 +00:00
}
if (session_id.type === constants.PLAYING) {
2026-07-29 08:29:29 +00:00
const obj13 = { text: null, platformIcon: null, platformLabel: null };
const intl9 = require(1236) /* getSystemLocale */.intl;
obj13[0] = intl9.string(require(1236) /* getSystemLocale */.t.BMTj28);
obj13[1] = icon;
obj13[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj13;
2026-07-29 08:29:29 +00:00
} else if (session_id.type === tmp5.STREAMING) {
const obj14 = { text: null, platformIcon: null, platformLabel: null };
const intl8 = require(1236) /* getSystemLocale */.intl;
obj14[0] = intl8.string(require(1236) /* getSystemLocale */.t["Jpkr/q"]);
obj14[1] = icon;
obj14[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj14;
} else {
if (obj29.isStageActivity(session_id)) {
2026-07-29 08:29:29 +00:00
const obj15 = { text: null };
const intl7 = tmp37(1236).intl;
const obj16 = { name: null };
obj16[0] = session_id.name;
obj15[0] = intl7.formatToPlainString(tmp37(1236).t.pW3Ip3, obj16);
2026-07-20 16:05:17 +00:00
obj = obj15;
} else {
2026-07-29 08:29:29 +00:00
if (session_id.type === tmp5.LISTENING) {
2026-07-20 16:05:17 +00:00
if (null != session_id.details) {
2026-07-29 08:29:29 +00:00
const obj17 = { text: null, platformIcon: null, platformLabel: null };
const intl6 = tmp37(1236).intl;
const obj18 = { name: null };
obj18[0] = session_id.name;
obj17[0] = intl6.formatToPlainString(tmp37(1236).t["b+lA5+"], obj18);
obj17[1] = icon;
obj17[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj17;
}
}
2026-07-29 08:29:29 +00:00
if (session_id.type === tmp5.LISTENING) {
const obj19 = { text: null, platformIcon: null, platformLabel: null };
const intl5 = tmp37(1236).intl;
obj19[0] = intl5.string(tmp37(1236).t.dBISa6);
obj19[1] = icon;
obj19[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj19;
} else {
2026-07-29 08:29:29 +00:00
if (session_id.type === tmp5.WATCHING) {
2026-07-20 16:05:17 +00:00
if (null != session_id.details) {
2026-07-29 08:29:29 +00:00
const obj20 = { text: null, platformIcon: null, platformLabel: null };
const intl4 = tmp37(1236).intl;
const obj21 = { name: null };
obj21[0] = session_id.name;
obj20[0] = intl4.formatToPlainString(tmp37(1236).t.mqdfDc, obj21);
obj20[1] = icon;
obj20[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj20;
}
}
2026-07-29 08:29:29 +00:00
if (session_id.type === tmp5.WATCHING) {
const obj22 = { text: null, platformIcon: null, platformLabel: null };
const intl3 = tmp37(1236).intl;
obj22[0] = intl3.string(tmp37(1236).t.GpNXjC);
obj22[1] = icon;
obj22[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj22;
} else {
2026-07-29 08:29:29 +00:00
if (session_id.type === tmp5.COMPETING) {
2026-07-20 16:05:17 +00:00
if (null != session_id.details) {
2026-07-29 08:29:29 +00:00
const obj23 = { text: null, platformIcon: null, platformLabel: null };
const intl2 = tmp37(1236).intl;
const obj24 = { name: null };
obj24[0] = session_id.name;
obj23[0] = intl2.formatToPlainString(tmp37(1236).t.oHF7Ch, obj24);
obj23[1] = icon;
obj23[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj23;
}
}
2026-07-29 08:29:29 +00:00
if (session_id.type === tmp5.COMPETING) {
const obj25 = { text: null, platformIcon: null, platformLabel: null };
const intl = tmp37(1236).intl;
obj25[0] = intl.string(tmp37(1236).t.OzCsIA);
obj25[1] = icon;
obj25[2] = str;
2026-07-20 16:05:17 +00:00
obj = obj25;
} else {
2026-08-05 07:35:12 +00:00
obj = { text: "r", platformIcon: "Path", platformLabel: "TRANSPARENT" };
2026-07-29 08:29:29 +00:00
obj[1] = icon;
obj[2] = str;
2026-07-20 16:05:17 +00:00
}
}
}
}
2026-08-05 07:35:12 +00:00
obj29 = require(9545) /* unpackStageChannelParty */;
2026-07-20 16:05:17 +00:00
}
return obj;
};