decord/source/modules/activity_status/getActivityStatusText.tsx

223 lines
5.8 KiB
TypeScript
Raw Normal View History

// Module ID: 10819
// Function ID: 10820
2026-07-20 16:05:17 +00:00
// Name: getActivityStatusText
// Dependencies: [673, 10820, 7672, 10821, 1233, 10822, 10823, 8274, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 10819 (getActivityStatusText)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import ME from "ME" /* 673 */;
import isEmbeddedActivityDefault from "isEmbeddedActivity" /* 7672 */;
import StatusDisplayTypes from "StatusDisplayTypes" /* 10820 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const ActivityTypes = ME.ActivityTypes;
const result = set.fileFinishedImporting("modules/activity_status/getActivityStatusText.tsx");
2026-07-20 16:05:17 +00:00
export default function getActivityStatusText(name) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
name = undefined;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
name = name.name;
}
let tmp2 = null;
if ("" !== name) {
let name1;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
name1 = name.name;
}
tmp2 = name1;
}
let details;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
details = name.details;
}
let tmp5 = null;
if ("" !== details) {
let details1;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
details1 = name.details;
}
tmp5 = details1;
}
let state;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
state = name.state;
}
let tmp8 = null;
if ("" !== state) {
let state1;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
state1 = name.state;
}
tmp8 = state1;
}
let type;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
type = name.type;
}
2026-07-29 08:29:29 +00:00
let tmp12 = tmp2;
2026-07-20 16:05:17 +00:00
if (type === ActivityTypes.STREAMING) {
2026-07-29 08:29:29 +00:00
let tmp13 = tmp5;
if (tmp5 == null) {
tmp13 = tmp2;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp12 = tmp13;
2026-07-20 16:05:17 +00:00
}
let status_display_type;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
status_display_type = name.status_display_type;
}
2026-08-24 06:08:38 +00:00
if (status_display_type !== StatusDisplayTypes.StatusDisplayTypes.NAME) {
2026-07-20 16:05:17 +00:00
let status_display_type1;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
status_display_type1 = name.status_display_type;
}
if (status_display_type1 !== tmp15(10820).StatusDisplayTypes.STATE) {
2026-07-20 16:05:17 +00:00
let status_display_type2;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
status_display_type2 = name.status_display_type;
}
2026-07-29 08:29:29 +00:00
let tmp17 = tmp12;
2026-07-20 16:05:17 +00:00
if (tmp20) {
2026-07-29 08:29:29 +00:00
tmp17 = tmp5;
2026-07-20 16:05:17 +00:00
}
tmp20 = status_display_type2 === tmp15(10820).StatusDisplayTypes.DETAILS && null != tmp5;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp17 = tmp8;
2026-07-20 16:05:17 +00:00
}
} else {
2026-07-29 08:29:29 +00:00
tmp17 = tmp2;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
if (isEmbeddedActivityDefault(name)) {
const tmp28 = tmp21(10821)(tmp2);
2026-07-29 08:29:29 +00:00
let obj = { text: null, tooltip: null };
obj[0] = tmp28;
obj[1] = tmp28;
2026-07-20 16:05:17 +00:00
return obj;
} else {
let type1;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
type1 = name.type;
}
2026-07-29 08:29:29 +00:00
if (type1 === tmp11.PLAYING) {
if (null != tmp17) {
obj = { text: null, tooltip: null };
obj[0] = tmp17;
2026-09-02 09:53:35 +00:00
const intl8 = tmp15(1233).intl;
2026-08-24 06:08:38 +00:00
obj1 = { game: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp17;
2026-09-02 09:53:35 +00:00
obj[1] = intl8.formatToPlainString(tmp15(1233).t.lFApmz, obj1);
2026-07-20 16:05:17 +00:00
return obj;
}
}
if (tmp21(10822)(name)) {
2026-07-20 16:05:17 +00:00
if (flag) {
if (null != tmp8) {
const parts = tmp8.split("; ");
let joined;
2026-07-29 08:29:29 +00:00
if (parts != null) {
2026-07-20 16:05:17 +00:00
joined = parts.join(", ");
}
2026-07-29 08:29:29 +00:00
const obj2 = { text: null, tooltip: null };
obj2[0] = joined;
2026-09-02 09:53:35 +00:00
const intl7 = tmp15(1233).intl;
2026-07-29 08:29:29 +00:00
const obj3 = { name: null };
obj3[0] = joined;
2026-09-02 09:53:35 +00:00
obj2[1] = intl7.formatToPlainString(tmp15(1233).t.Vnuxue, obj3);
2026-07-20 16:05:17 +00:00
return obj2;
}
}
}
2026-07-29 08:29:29 +00:00
if (tmp15Result.isStageActivity(name)) {
2026-07-20 16:05:17 +00:00
if (null != tmp2) {
2026-07-29 08:29:29 +00:00
const obj4 = { text: null, tooltip: null };
obj4[0] = tmp2;
2026-09-02 09:53:35 +00:00
const intl6 = tmp15(1233).intl;
2026-07-29 08:29:29 +00:00
const obj5 = { name: null };
obj5[0] = tmp2;
2026-09-02 09:53:35 +00:00
obj4[1] = intl6.formatToPlainString(tmp15(1233).t.pW3Ip3, obj5);
2026-07-20 16:05:17 +00:00
let obj16 = obj4;
}
return obj16;
}
let type2;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
type2 = name.type;
}
2026-07-29 08:29:29 +00:00
if (type2 === tmp11.LISTENING) {
if (null != tmp17) {
const obj6 = { text: null, tooltip: null };
obj6[0] = tmp17;
2026-09-02 09:53:35 +00:00
const intl5 = tmp15(1233).intl;
2026-07-29 08:29:29 +00:00
const obj7 = { name: null };
obj7[0] = tmp17;
2026-09-02 09:53:35 +00:00
obj6[1] = intl5.formatToPlainString(tmp15(1233).t.Vnuxue, obj7);
2026-07-20 16:05:17 +00:00
obj16 = obj6;
}
}
if (tmp21(8274)(name)) {
2026-07-20 16:05:17 +00:00
if (flag) {
if (null != tmp5) {
2026-07-29 08:29:29 +00:00
const obj8 = { text: null, tooltip: null };
obj8[0] = tmp5;
2026-09-02 09:53:35 +00:00
const intl4 = tmp15(1233).intl;
2026-07-29 08:29:29 +00:00
const obj9 = { name: null };
obj9[0] = tmp5;
2026-09-02 09:53:35 +00:00
obj8[1] = intl4.formatToPlainString(tmp15(1233).t.pW3Ip3, obj9);
2026-07-20 16:05:17 +00:00
obj16 = obj8;
}
}
}
let type3;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
type3 = name.type;
}
2026-07-29 08:29:29 +00:00
if (type3 === tmp11.WATCHING) {
if (null != tmp17) {
const obj10 = { text: null, tooltip: null };
obj10[0] = tmp17;
2026-09-02 09:53:35 +00:00
const intl3 = tmp15(1233).intl;
2026-07-29 08:29:29 +00:00
const obj11 = { name: null };
obj11[0] = tmp17;
2026-09-02 09:53:35 +00:00
obj10[1] = intl3.formatToPlainString(tmp15(1233).t.pW3Ip3, obj11);
2026-07-20 16:05:17 +00:00
obj16 = obj10;
}
}
let type4;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
type4 = name.type;
}
2026-07-29 08:29:29 +00:00
if (type4 === tmp11.COMPETING) {
if (null != tmp17) {
const obj12 = { text: null, tooltip: null };
obj12[0] = tmp17;
2026-09-02 09:53:35 +00:00
const intl2 = tmp15(1233).intl;
2026-07-29 08:29:29 +00:00
const obj13 = { name: null };
obj13[0] = tmp17;
2026-09-02 09:53:35 +00:00
obj12[1] = intl2.formatToPlainString(tmp15(1233).t.QQ2wVE, obj13);
2026-07-20 16:05:17 +00:00
obj16 = obj12;
}
}
let type5;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
type5 = name.type;
}
2026-07-29 08:29:29 +00:00
if (type5 === tmp11.STREAMING) {
if (null != tmp17) {
const obj14 = { text: null, tooltip: null };
obj14[0] = tmp17;
2026-09-02 09:53:35 +00:00
const intl = tmp15(1233).intl;
2026-07-29 08:29:29 +00:00
const obj15 = { name: null };
obj15[0] = tmp17;
2026-09-02 09:53:35 +00:00
obj14[1] = intl.formatToPlainString(tmp15(1233).t["0wJXSh"], obj15);
2026-07-20 16:05:17 +00:00
obj16 = obj14;
}
}
obj16 = {};
tmp15Result = tmp15(10823);
2026-07-20 16:05:17 +00:00
}
};