decord/source/modules/activities/native/ActivitiesDebugOverlay.tsx

60 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 16070
// Function ID: 16071
2026-07-20 16:05:17 +00:00
// Name: ActivitiesDebugOverlay
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 21, 4255, 4099, 712, 10526, 1581, 4251, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 16070 (ActivitiesDebugOverlay)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
import hexToRgba from "hexToRgba";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsxs: c4, jsx: c5 } = jsxProd);
createCacheKey = { container: null, row: null };
createCacheKey = { position: "absolute", top: 0, left: 0, backgroundColor: null, paddingRight: 16, paddingBottom: 16 };
createCacheKey[3] = hexToRgba.hexWithOpacity(require("Themes").unsafe_rawColors.BLACK, 0.7);
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flexDirection: "row" };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/activities/native/ActivitiesDebugOverlay.tsx");
2026-07-20 16:05:17 +00:00
export default function ActivitiesDebugOverlay() {
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
2026-08-05 07:35:12 +00:00
const tmp4 = importDefault(10526)();
2026-07-29 08:29:29 +00:00
let str = "text-overlay-light";
let str2 = "";
2026-08-05 07:35:12 +00:00
if (require(10526) /* useThermalState */.ThermalStates.UNHANDLED !== tmp4) {
2026-07-29 08:29:29 +00:00
str = "text-feedback-positive";
str2 = "nominal";
2026-08-05 07:35:12 +00:00
if (tmp5(10526).ThermalStates.NOMINAL !== tmp4) {
2026-07-29 08:29:29 +00:00
str = "text-feedback-warning";
str2 = "fair";
2026-08-05 07:35:12 +00:00
if (tmp5(10526).ThermalStates.FAIR !== tmp4) {
2026-07-29 08:29:29 +00:00
str2 = "serious";
str = "text-feedback-critical";
2026-08-05 07:35:12 +00:00
if (tmp5(10526).ThermalStates.SERIOUS !== tmp4) {
if (tmp5(10526).ThermalStates.CRITICAL === tmp4) {
2026-07-29 08:29:29 +00:00
str2 = "critical";
str = "text-feedback-critical";
2026-07-20 16:05:17 +00:00
}
}
}
}
}
2026-07-29 08:29:29 +00:00
const rect = importDefault(1581)();
let obj = { style: items, pointerEvents: "none", children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.container, ];
2026-07-20 16:05:17 +00:00
obj = { paddingTop: rect.top + 16, paddingLeft: rect.left + 16 };
items[1] = obj;
2026-07-29 08:29:29 +00:00
obj = { style: tmp.row, children: null };
2026-08-05 07:35:12 +00:00
const items1 = [callback(require(4251) /* Text */.Text, { variant: "text-md/normal", color: "text-overlay-light", children: ["thermal state:", " "] }), callback2(require(4251) /* Text */.Text, { variant: "text-md/normal", color: str, children: str2 })];
2026-07-29 08:29:29 +00:00
obj[1] = items1;
obj[2] = callback(View, obj);
2026-07-20 16:05:17 +00:00
return callback2(View, obj);
};