decord/source/modules/activity_status/native/ApplicationStreamActivityStatus.tsx

77 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 9243
// Function ID: 9244
2026-07-20 16:05:17 +00:00
// Name: ApplicationStreamActivityStatus
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 21, 1236, 9244, 9245, 9247, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 9243 (ApplicationStreamActivityStatus)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-09-01 10:26:29 +00:00
import ActivityStatusIconDefault from "ActivityStatusIcon" /* 9244 */;
import ActivityStatusTextDefault from "ActivityStatusText" /* 9247 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c3, Fragment: c4, jsxs: c5 } = jsxProd);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/activity_status/native/ApplicationStreamActivityStatus.tsx");
2026-07-20 16:05:17 +00:00
export default function ApplicationStreamActivityStatus(hideText) {
({ game, hideIcon } = hideText);
({ iconStyle, textStyle, maxFontSizeMultiplier } = hideText);
if (hideIcon === undefined) {
hideIcon = false;
}
let flag = hideText.hideText;
if (flag === undefined) {
flag = false;
}
if (hideIcon) {
if (flag) {
return null;
}
}
let name;
2026-07-29 08:29:29 +00:00
if (game != null) {
2026-07-20 16:05:17 +00:00
name = game.name;
}
let tmp2 = null;
if ("" !== name) {
let name1;
2026-07-29 08:29:29 +00:00
if (game != null) {
2026-07-20 16:05:17 +00:00
name1 = game.name;
}
tmp2 = name1;
}
if (null != tmp2) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { name: null };
obj[0] = tmp2;
2026-08-24 06:08:38 +00:00
let formatResult = intl2.format(getSystemLocale.t["0wJXSh"], obj);
2026-07-29 08:29:29 +00:00
let tmp7 = require;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
formatResult = intl.string(getSystemLocale.t.eXan7B);
2026-07-29 08:29:29 +00:00
tmp7 = require;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp12 = !hideIcon;
if (!hideIcon) {
obj = { icon: null, style: null };
2026-09-01 10:26:29 +00:00
obj[0] = tmp7(9245).TvIcon;
2026-07-29 08:29:29 +00:00
obj[1] = iconStyle;
2026-08-24 06:08:38 +00:00
tmp12 = callback(ActivityStatusIconDefault, obj);
const tmp15 = ActivityStatusIconDefault;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const children = [tmp12, ];
let tmp16 = !flag;
if (!flag) {
obj = { style: null, maxFontSizeMultiplier: null, children: null };
obj[0] = textStyle;
obj[1] = maxFontSizeMultiplier;
obj[2] = formatResult;
2026-08-24 06:08:38 +00:00
tmp16 = callback(ActivityStatusTextDefault, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
children[1] = tmp16;
return closure_5(closure_4, { children });
2026-07-20 16:05:17 +00:00
};