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

81 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 9642
// Function ID: 9643
2026-07-20 16:05:17 +00:00
// Name: ApplicationStreamActivityStatus
2026-08-08 06:10:11 +00:00
// Dependencies: [19, 21, 1236, 9643, 9644, 9646, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 9642 (ApplicationStreamActivityStatus)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c3, Fragment: c4, jsxs: c5 } = jsxProd);
2026-07-23 10:11:24 +00:00
const result = require("getSystemLocale").fileFinishedImporting("modules/activity_status/native/ApplicationStreamActivityStatus.tsx");
2026-07-20 16:05:17 +00:00
export default function ApplicationStreamActivityStatus(hideText) {
let game;
let hideIcon;
let iconStyle;
let maxFontSizeMultiplier;
let textStyle;
({ 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-07-29 08:29:29 +00:00
const intl2 = require(1236) /* getSystemLocale */.intl;
let obj = { name: null };
obj[0] = tmp2;
let formatResult = intl2.format(require(1236) /* getSystemLocale */.t["0wJXSh"], obj);
let tmp7 = require;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const intl = require(1236) /* getSystemLocale */.intl;
formatResult = intl.string(require(1236) /* getSystemLocale */.t.eXan7B);
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-08-08 06:10:11 +00:00
obj[0] = tmp7(9644).TvIcon;
2026-07-29 08:29:29 +00:00
obj[1] = iconStyle;
2026-08-08 06:10:11 +00:00
tmp12 = callback(importDefault(9643), obj);
const tmp15 = importDefault(9643);
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-08 06:10:11 +00:00
tmp16 = callback(importDefault(9646), 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
};