2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 16969
|
|
|
|
|
// Function ID: 16970
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: ActivitiesDebugOverlay
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [19, 17, 21, 4836, 4683, 576, 8781, 1613, 4832, 2]
|
2026-09-26 17:57:22 +00:00
|
|
|
// Exports: default
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 16969 (ActivitiesDebugOverlay)
|
2026-10-01 14:13:23 +00:00
|
|
|
import react_native from "react-native" /* 17 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import nativeDefault from "native" /* 576 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import Text_Text from "Text/Text" /* 4832 */;
|
|
|
|
|
import useThermalState from "useThermalState" /* 8781 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import Fragment from "Fragment" /* 21 */;
|
|
|
|
|
import createStyles_mod from "createStyles" /* 4836 */;
|
|
|
|
|
import ColorUtils_mod from "ColorUtils" /* 4683 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const useThermalStateDefault = useThermalState;
|
|
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let ColorUtils;
|
|
|
|
|
let closure_4;
|
|
|
|
|
let hasOwnProperty;
|
|
|
|
|
let rect;
|
|
|
|
|
let tmp2;
|
|
|
|
|
const useSafeAreaInsetsDefault = tmp2(1613);
|
|
|
|
|
const View = react_native.View;
|
|
|
|
|
({ jsxs: closure_4, jsx: hasOwnProperty } = Fragment);
|
|
|
|
|
let createStyles = createStyles_mod;
|
|
|
|
|
let obj = { container: rect, row: { flexDirection: "row" } };
|
|
|
|
|
rect = { position: "absolute", top: 0, left: 0, backgroundColor: ColorUtils.hexWithOpacity(nativeDefault.unsafe_rawColors.BLACK, 0.7), paddingRight: 16, paddingBottom: 16 };
|
|
|
|
|
createStyles = createStyles.createStyles;
|
|
|
|
|
ColorUtils = ColorUtils_mod;
|
|
|
|
|
let closure_6 = createStyles(obj);
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/activities/native/ActivitiesDebugOverlay.tsx");
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
export default function ActivitiesDebugOverlay() {
|
2026-10-01 14:13:23 +00:00
|
|
|
let items;
|
|
|
|
|
let items1;
|
|
|
|
|
let obj3;
|
2026-09-26 17:57:22 +00:00
|
|
|
const tmp = closure_6();
|
2026-09-18 19:45:33 +00:00
|
|
|
const tmp4 = useThermalStateDefault();
|
|
|
|
|
let str = "text-overlay-light";
|
|
|
|
|
let str2 = "";
|
|
|
|
|
if (useThermalState.ThermalStates.UNHANDLED !== tmp4) {
|
|
|
|
|
str = "text-feedback-positive";
|
|
|
|
|
str2 = "nominal";
|
2026-10-01 14:13:23 +00:00
|
|
|
if (useThermalState.ThermalStates.NOMINAL !== tmp4) {
|
2026-09-18 19:45:33 +00:00
|
|
|
str = "text-feedback-warning";
|
|
|
|
|
str2 = "fair";
|
2026-10-01 14:13:23 +00:00
|
|
|
if (useThermalState.ThermalStates.FAIR !== tmp4) {
|
2026-09-18 19:45:33 +00:00
|
|
|
str2 = "serious";
|
|
|
|
|
str = "text-feedback-critical";
|
2026-10-01 14:13:23 +00:00
|
|
|
if (useThermalState.ThermalStates.SERIOUS !== tmp4) {
|
|
|
|
|
if (useThermalState.ThermalStates.CRITICAL === tmp4) {
|
2026-09-18 19:45:33 +00:00
|
|
|
str2 = "critical";
|
|
|
|
|
str = "text-feedback-critical";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const rect = useSafeAreaInsetsDefault();
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = { style: items, pointerEvents: "none", children: React3(View, obj3) };
|
|
|
|
|
items = [tmp.container, ];
|
|
|
|
|
const obj2 = { paddingTop: rect.top + 16, paddingLeft: rect.left + 16 };
|
|
|
|
|
items[1] = obj2;
|
|
|
|
|
obj3 = { style: tmp.row, children: items1 };
|
|
|
|
|
items1 = [React3(Text_Text.Text, { variant: "text-md/normal", color: "text-overlay-light", children: ["thermal state:", " "] }), hasOwnProperty(Text_Text.Text, { variant: "text-md/normal", color: str, children: str2 })];
|
2026-09-18 19:45:33 +00:00
|
|
|
return hasOwnProperty(View, obj);
|
2026-09-26 17:57:22 +00:00
|
|
|
};
|