decord/source/modules/themes/RootThemeContextProvider.native.tsx

58 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 13556
// Function ID: 104296
2026-07-20 16:05:17 +00:00
// Name: RootThemeContextProvider
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 4123, 1278, 482, 33, 566, 3978, 1324, 13557, 3843, 10804, 2]
2026-07-20 16:05:17 +00:00
// Exports: RootThemeContextProvider
2026-07-27 11:26:19 +00:00
// Module 13556 (RootThemeContextProvider)
2026-07-23 10:11:24 +00:00
import result from "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_5 from "_isNativeReflectConstruct";
import { ThemeTypes } from "sum";
import { jsx } from "jsxProd";
const require = arg1;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/themes/RootThemeContextProvider.native.tsx");
2026-07-20 16:05:17 +00:00
export const RootThemeContextProvider = function RootThemeContextProvider(children) {
let contrast;
let saturation;
2026-07-23 10:11:24 +00:00
let obj = enabled(chatInputLegacySendButton[5]);
let items = [_isNativeReflectConstruct, closure_5];
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ saturation: outer1_4.saturation, contrast: outer1_4.contrast, theme: outer1_5.theme }));
2026-07-20 16:05:17 +00:00
({ saturation, contrast } = stateFromStoresObject);
2026-07-23 10:11:24 +00:00
const tmp2 = chatInputFloating(chatInputLegacySendButton[6])();
const mobileVisualRefreshConfig = enabled(chatInputLegacySendButton[7]).useMobileVisualRefreshConfig({ location: "RootThemeContextProvider" });
enabled = mobileVisualRefreshConfig.enabled;
chatInputFloating = mobileVisualRefreshConfig.chatInputFloating;
chatInputLegacySendButton = mobileVisualRefreshConfig.chatInputLegacySendButton;
const obj2 = enabled(chatInputLegacySendButton[7]);
const manaTypeConsolidationExperiment = enabled(chatInputLegacySendButton[8]).useManaTypeConsolidationExperiment("RootThemeContextProvider");
2026-07-20 16:05:17 +00:00
const items1 = [enabled, chatInputFloating, chatInputLegacySendButton, manaTypeConsolidationExperiment];
if (null == tmp2) {
let num4 = 0;
if (1 !== saturation) {
2026-07-23 10:11:24 +00:00
num4 = enabled(chatInputLegacySendButton[9]).setThemeFlag(0, enabled(chatInputLegacySendButton[9]).ThemeContextFlags.REDUCE_SATURATION_ENABLED);
const obj6 = enabled(chatInputLegacySendButton[9]);
2026-07-20 16:05:17 +00:00
}
if (1 === contrast) {
obj = { theme: stateFromStoresObject.theme, flags: num4, saturation, contrast, enabledExperiments: tmp5, children: children.children };
2026-07-23 10:11:24 +00:00
return jsx(enabled(chatInputLegacySendButton[10]).RootThemeContextProvider, { theme: stateFromStoresObject.theme, flags: num4, saturation, contrast, enabledExperiments: tmp5, children: children.children });
2026-07-20 16:05:17 +00:00
} else {
if (contrast > 1) {
2026-07-23 10:11:24 +00:00
let REDUCED_CONTRAST_ENABLED = enabled(chatInputLegacySendButton[9]).ThemeContextFlags.INCREASED_CONTRAST_ENABLED;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
REDUCED_CONTRAST_ENABLED = enabled(chatInputLegacySendButton[9]).ThemeContextFlags.REDUCED_CONTRAST_ENABLED;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
enabled(chatInputLegacySendButton[9]).setThemeFlag(num4, REDUCED_CONTRAST_ENABLED);
const obj7 = enabled(chatInputLegacySendButton[9]);
2026-07-20 16:05:17 +00:00
}
} else if (tmp2.theme === ThemeTypes.LIGHT) {
2026-07-23 10:11:24 +00:00
let setThemeFlagResult1 = enabled(chatInputLegacySendButton[9]).setThemeFlag(0, enabled(chatInputLegacySendButton[9]).ThemeContextFlags.MOBILE_LIGHT_GRADIENT_THEME_ENABLED);
const obj5 = enabled(chatInputLegacySendButton[9]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
setThemeFlagResult1 = enabled(chatInputLegacySendButton[9]).setThemeFlag(0, enabled(chatInputLegacySendButton[9]).ThemeContextFlags.MOBILE_DARK_GRADIENT_THEME_ENABLED);
const obj4 = enabled(chatInputLegacySendButton[9]);
2026-07-20 16:05:17 +00:00
}
};