// Module ID: 9008 // Function ID: 70901 // Name: getActivityStatusText // Dependencies: [653, 9009, 5972, 9010, 1212, 9011, 9012, 8117, 2] // Exports: default // Module 9008 (getActivityStatusText) import { ActivityTypes } from "ME"; const result = require("isEmbeddedActivity").fileFinishedImporting("modules/activity_status/getActivityStatusText.tsx"); export default function getActivityStatusText(name) { let flag = arg1; if (arg1 === undefined) { flag = false; } name = undefined; if (null != name) { name = name.name; } let tmp2 = null; if ("" !== name) { let name1; if (null != name) { name1 = name.name; } tmp2 = name1; } let details; if (null != name) { details = name.details; } let tmp5 = null; if ("" !== details) { let details1; if (null != name) { details1 = name.details; } tmp5 = details1; } let state; if (null != name) { state = name.state; } let tmp8 = null; if ("" !== state) { let state1; if (null != name) { state1 = name.state; } tmp8 = state1; } let type; if (null != name) { type = name.type; } let tmp11 = tmp2; if (type === ActivityTypes.STREAMING) { tmp11 = tmp2; if (null != tmp5) { tmp11 = tmp5; } } let status_display_type; if (null != name) { status_display_type = name.status_display_type; } if (status_display_type !== require(9009) /* StatusDisplayTypes */.StatusDisplayTypes.NAME) { let status_display_type1; if (null != name) { status_display_type1 = name.status_display_type; } if (status_display_type1 !== require(9009) /* StatusDisplayTypes */.StatusDisplayTypes.STATE) { let status_display_type2; if (null != name) { status_display_type2 = name.status_display_type; } let tmp13 = tmp11; if (tmp20) { tmp13 = tmp5; } tmp20 = status_display_type2 === require(9009) /* StatusDisplayTypes */.StatusDisplayTypes.DETAILS && null != tmp5; } else { tmp13 = tmp8; } } else { tmp13 = tmp2; } if (importDefault(5972)(name)) { const tmp56 = importDefault(9010)(tmp2); let obj = { text: tmp56, tooltip: tmp56 }; return obj; } else { let type1; if (null != name) { type1 = name.type; } if (type1 === ActivityTypes.PLAYING) { if (null != tmp13) { obj = { text: tmp13 }; const intl8 = require(1212) /* getSystemLocale */.intl; const obj1 = { game: tmp13 }; obj.tooltip = intl8.formatToPlainString(require(1212) /* getSystemLocale */.t.lFApmz, obj1); return obj; } } if (importDefault(9011)(name)) { if (flag) { if (null != tmp8) { const parts = tmp8.split("; "); let joined; if (null != parts) { joined = parts.join(", "); } const obj2 = { text: joined }; const intl7 = require(1212) /* getSystemLocale */.intl; const obj3 = { name: joined }; obj2.tooltip = intl7.formatToPlainString(require(1212) /* getSystemLocale */.t.Vnuxue, obj3); return obj2; } } } obj = require(9012) /* unpackStageChannelParty */; if (obj.isStageActivity(name)) { if (null != tmp2) { const obj4 = { text: tmp2 }; const intl6 = require(1212) /* getSystemLocale */.intl; const obj5 = { name: tmp2 }; obj4.tooltip = intl6.formatToPlainString(require(1212) /* getSystemLocale */.t.pW3Ip3, obj5); let obj16 = obj4; } return obj16; } let type2; if (null != name) { type2 = name.type; } if (type2 === ActivityTypes.LISTENING) { if (null != tmp13) { const obj6 = { text: tmp13 }; const intl5 = require(1212) /* getSystemLocale */.intl; const obj7 = { name: tmp13 }; obj6.tooltip = intl5.formatToPlainString(require(1212) /* getSystemLocale */.t.Vnuxue, obj7); obj16 = obj6; } } if (importDefault(8117)(name)) { if (flag) { if (null != tmp5) { const obj8 = { text: tmp5 }; const intl4 = require(1212) /* getSystemLocale */.intl; const obj9 = { name: tmp5 }; obj8.tooltip = intl4.formatToPlainString(require(1212) /* getSystemLocale */.t.pW3Ip3, obj9); obj16 = obj8; } } } let type3; if (null != name) { type3 = name.type; } if (type3 === ActivityTypes.WATCHING) { if (null != tmp13) { const obj10 = { text: tmp13 }; const intl3 = require(1212) /* getSystemLocale */.intl; const obj11 = { name: tmp13 }; obj10.tooltip = intl3.formatToPlainString(require(1212) /* getSystemLocale */.t.pW3Ip3, obj11); obj16 = obj10; } } let type4; if (null != name) { type4 = name.type; } if (type4 === ActivityTypes.COMPETING) { if (null != tmp13) { const obj12 = { text: tmp13 }; const intl2 = require(1212) /* getSystemLocale */.intl; const obj13 = { name: tmp13 }; obj12.tooltip = intl2.formatToPlainString(require(1212) /* getSystemLocale */.t.QQ2wVE, obj13); obj16 = obj12; } } let type5; if (null != name) { type5 = name.type; } if (type5 === ActivityTypes.STREAMING) { if (null != tmp13) { const obj14 = { text: tmp13 }; const intl = require(1212) /* getSystemLocale */.intl; const obj15 = { name: tmp13 }; obj14.tooltip = intl.formatToPlainString(require(1212) /* getSystemLocale */.t["0wJXSh"], obj15); obj16 = obj14; } } obj16 = {}; } };