decord/source/modules/devtools/design_toggles/HeaderDebugOverlay.native.tsx

66 lines
3 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 5224
// Function ID: 5225
2026-07-20 16:05:17 +00:00
// Name: useHeaderDebugOverlay
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 21, 4255, 712, 5225, 4251, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 5224 (useHeaderDebugOverlay)
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";
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
let closure_6;
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c4, Fragment: c5, jsxs: closure_6 } = jsxProd);
2026-07-23 10:11:24 +00:00
let closure_7 = { "os-drawn": "OS-Drawn", "custom-drawn": "Custom-Drawn", "js-stack": "JS Stack", sheet: "Sheet", bespoke: "Bespoke" };
2026-07-29 08:29:29 +00:00
createCacheKey = { tintWash: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, pointerEvents: "none", opacity: 0.15 }, badgeContainer: { position: "absolute", bottom: 2, right: 4, pointerEvents: "none" }, badge: null, "color-os-drawn": null, "color-custom-drawn": null, "color-js-stack": null, "color-sheet": null, "color-bespoke": null };
createCacheKey = { paddingHorizontal: 4, paddingVertical: 1, borderRadius: require("Themes").radii.xs };
createCacheKey[2] = createCacheKey;
createCacheKey[3] = { backgroundColor: require("Themes").colors.TEXT_LINK };
let obj1 = { backgroundColor: require("Themes").colors.TEXT_LINK };
createCacheKey[4] = { backgroundColor: require("Themes").colors.STATUS_DANGER };
let obj2 = { backgroundColor: require("Themes").colors.STATUS_DANGER };
createCacheKey[5] = { backgroundColor: require("Themes").colors.BACKGROUND_BRAND };
const obj3 = { backgroundColor: require("Themes").colors.BACKGROUND_BRAND };
createCacheKey[6] = { backgroundColor: require("Themes").colors.STATUS_POSITIVE };
const obj4 = { backgroundColor: require("Themes").colors.STATUS_POSITIVE };
createCacheKey[7] = { backgroundColor: require("Themes").colors.STATUS_WARNING };
createCacheKey = createCacheKey.createStyles(createCacheKey);
const obj5 = { backgroundColor: require("Themes").colors.STATUS_WARNING };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/devtools/design_toggles/HeaderDebugOverlay.native.tsx");
2026-07-20 16:05:17 +00:00
export default function useHeaderDebugOverlay(arg0, arg1) {
2026-07-29 08:29:29 +00:00
const tmp3 = createCacheKey();
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-07-29 08:29:29 +00:00
let tmp6 = arg1;
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
const tmp8 = tmp3["color-" + arg0];
if (arg1 == null) {
tmp6 = table[arg0];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj = { children: null };
obj = { style: null };
const items = [tmp3.tintWash, tmp8];
obj[0] = items;
2026-07-20 16:05:17 +00:00
const items1 = [callback(View, obj), ];
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp3.badgeContainer;
const obj1 = { style: null, children: null };
const items2 = [tmp3.badge, tmp8];
obj1[0] = items2;
const obj2 = { variant: "text-xs/bold", color: "text-overlay-light", children: null };
obj2[2] = tmp6;
2026-08-05 07:35:12 +00:00
obj1[1] = callback(require(4251) /* Text */.Text, obj2);
2026-07-29 08:29:29 +00:00
obj[1] = callback(View, obj1);
2026-07-20 16:05:17 +00:00
items1[1] = callback(View, obj);
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-07-20 16:05:17 +00:00
return callback2(closure_5, obj);
} else {
return null;
}
2026-08-05 07:35:12 +00:00
tmp2 = importDefault(5225)("show_header_debug_info");
2026-07-20 16:05:17 +00:00
};