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

63 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 15936
// Function ID: 122939
2026-07-20 16:05:17 +00:00
// Name: ActivitiesDebugOverlay
2026-07-28 08:39:19 +00:00
// Dependencies: [31, 27, 33, 4165, 4009, 689, 10605, 1557, 4161, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 15936 (ActivitiesDebugOverlay)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import hexToRgb from "hexToRgb";
let closure_4;
let closure_5;
const require = arg1;
({ jsxs: closure_4, jsx: closure_5 } = jsxProd);
_createForOfIteratorHelperLoose = {};
_createForOfIteratorHelperLoose = { position: "absolute", top: 0, left: 0, backgroundColor: null, paddingRight: 16, paddingBottom: 16 };
_createForOfIteratorHelperLoose.backgroundColor = hexToRgb.hexWithOpacity(require("_createForOfIteratorHelperLoose").unsafe_rawColors.BLACK, 0.7);
_createForOfIteratorHelperLoose.container = _createForOfIteratorHelperLoose;
_createForOfIteratorHelperLoose.row = { flexDirection: "row" };
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
const result = require("jsxProd").fileFinishedImporting("modules/activities/native/ActivitiesDebugOverlay.tsx");
2026-07-20 16:05:17 +00:00
export default function ActivitiesDebugOverlay() {
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose();
2026-07-28 08:39:19 +00:00
const tmp2 = importDefault(10605)();
2026-07-20 16:05:17 +00:00
let str = "";
let str2 = "text-overlay-light";
2026-07-28 08:39:19 +00:00
if (require(10605) /* _getThermalState */.ThermalStates.UNHANDLED !== tmp2) {
2026-07-20 16:05:17 +00:00
str = "nominal";
str2 = "text-feedback-positive";
2026-07-28 08:39:19 +00:00
if (require(10605) /* _getThermalState */.ThermalStates.NOMINAL !== tmp2) {
2026-07-20 16:05:17 +00:00
str = "fair";
str2 = "text-feedback-warning";
2026-07-28 08:39:19 +00:00
if (require(10605) /* _getThermalState */.ThermalStates.FAIR !== tmp2) {
2026-07-20 16:05:17 +00:00
str = "serious";
str2 = "text-feedback-critical";
2026-07-28 08:39:19 +00:00
if (require(10605) /* _getThermalState */.ThermalStates.SERIOUS !== tmp2) {
if (require(10605) /* _getThermalState */.ThermalStates.CRITICAL === tmp2) {
2026-07-20 16:05:17 +00:00
str = "critical";
str2 = "text-feedback-critical";
}
}
}
}
}
2026-07-23 10:11:24 +00:00
const rect = importDefault(1557)();
2026-07-20 16:05:17 +00:00
let obj = { style: items, pointerEvents: "none" };
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;
obj = { style: tmp.row };
2026-07-23 10:11:24 +00:00
const obj1 = { variant: "text-md/normal", color: "text-overlay-light", children: ["thermal state:", " "] };
2026-07-28 08:39:19 +00:00
const items1 = [callback(require(4161) /* Text */.Text, obj1), ];
2026-07-22 07:54:56 +00:00
const obj2 = { variant: "text-md/normal", color: str2, children: str };
2026-07-28 08:39:19 +00:00
items1[1] = callback2(require(4161) /* Text */.Text, obj2);
2026-07-20 16:05:17 +00:00
obj.children = items1;
obj.children = callback(View, obj);
return callback2(View, obj);
};