decord/source/modules/activities/native/ActivitiesDebugOverlay.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

63 lines
2.5 KiB
TypeScript

// Module ID: 17067
// Function ID: 17068
// Name: ActivitiesDebugOverlay
// Dependencies: [19, 17, 21, 4481, 4329, 709, 9494, 1627, 4477, 2]
// Exports: default
// Module 17067 (ActivitiesDebugOverlay)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 709 */;
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1627 */;
import Text from "Text" /* 4477 */;
import useThermalState from "useThermalState" /* 9494 */;
import useThermalStateDefault from "useThermalState" /* 9494 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4481 */;
import hexToRgba from "hexToRgba" /* 4329 */;
require = arg1;
noopAll;
({ 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(ThemesDefault.unsafe_rawColors.BLACK, 0.7);
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flexDirection: "row" };
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/activities/native/ActivitiesDebugOverlay.tsx");
export default function ActivitiesDebugOverlay() {
const tmp = callback3();
const tmp4 = useThermalStateDefault();
let str = "text-overlay-light";
let str2 = "";
if (useThermalState.ThermalStates.UNHANDLED !== tmp4) {
str = "text-feedback-positive";
str2 = "nominal";
if (tmp5(9494).ThermalStates.NOMINAL !== tmp4) {
str = "text-feedback-warning";
str2 = "fair";
if (tmp5(9494).ThermalStates.FAIR !== tmp4) {
str2 = "serious";
str = "text-feedback-critical";
if (tmp5(9494).ThermalStates.SERIOUS !== tmp4) {
if (tmp5(9494).ThermalStates.CRITICAL === tmp4) {
str2 = "critical";
str = "text-feedback-critical";
}
}
}
}
}
const rect = useSafeAreaInsetsDefault();
let obj = { style: items, pointerEvents: "none", children: null };
items = [tmp.container, ];
obj = { paddingTop: rect.top + 16, paddingLeft: rect.left + 16 };
items[1] = obj;
obj = { style: tmp.row, children: null };
const items1 = [callback(Text.Text, { variant: "text-md/normal", color: "text-overlay-light", children: ["thermal state:", " "] }), callback2(Text.Text, { variant: "text-md/normal", color: str, children: str2 })];
obj[1] = items1;
obj[2] = callback(View, obj);
return callback2(View, obj);
};