decord/alpha/source/modules/themes/experiments/MobileVisualRefreshExperiment.tsx

65 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 11895
// Function ID: 11896
// Name: MobileVisualRefreshExperiment
2026-10-09 10:00:15 +00:00
// Dependencies: [1454, 558, 576, 2]
2026-10-03 08:58:59 +00:00
// Exports: isMobileVisualRefreshEnabled, resolveRefreshToken
2026-07-20 16:05:17 +00:00
2026-10-12 06:59:38 +00:00
// Module 11895 (MobileVisualRefreshExperiment)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
2026-10-09 10:00:15 +00:00
import apex_ApexExperimentDefault from "apex/ApexExperiment" /* 1454 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating_mod from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-10-03 08:58:59 +00:00
let obj = { kind: "user", name: "2026-02-mobile-visual-refresh", defaultConfig: { enabled: false, chatInputFloating: false, chatInputLegacySendButton: false }, variations: { 0: { enabled: false, chatInputFloating: false, chatInputLegacySendButton: false }, 1: { enabled: true, chatInputFloating: false, chatInputLegacySendButton: false }, 2: { enabled: true, chatInputFloating: true, chatInputLegacySendButton: false }, 3: { enabled: true, chatInputFloating: true, chatInputLegacySendButton: false }, 4: { enabled: true, chatInputFloating: true, chatInputLegacySendButton: true } } };
let tmp2 = apex_ApexExperimentDefault(obj);
let closure_2 = tmp2;
let ReactCompilerGating = ReactCompilerGating_mod;
2026-10-08 09:57:35 +00:00
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsMobileVisualRefreshExperimentEnabled(location) {
2026-10-03 08:58:59 +00:00
let tmp2;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
tmp2 = obj2;
} else {
tmp2 = cResult[1];
}
return closure_2.useConfig(tmp2).enabled;
2026-10-08 09:57:35 +00:00
}) : (function useIsMobileVisualRefreshExperimentEnabled(location) {
2026-10-03 08:58:59 +00:00
const obj = { location };
return closure_2.useConfig(obj).enabled;
});
ReactCompilerGating = ReactCompilerGating_mod;
2026-10-08 09:57:35 +00:00
const tmp4 = ReactCompilerGating.isReactCompilerEnabled() ? (function useMobileVisualRefreshConfig(location) {
2026-10-03 08:58:59 +00:00
let tmp2;
const obj = react;
const cResult = obj.c(2);
const _location = location.location;
if (cResult[0] !== _location) {
const obj2 = { location: _location };
cResult[0] = _location;
cResult[1] = obj2;
tmp2 = obj2;
} else {
tmp2 = cResult[1];
}
return closure_2.useConfig(tmp2);
2026-10-08 09:57:35 +00:00
}) : (function useMobileVisualRefreshConfig(location) {
2026-10-03 08:58:59 +00:00
const obj = { location: location.location };
return closure_2.useConfig(obj);
});
const result = size.fileFinishedImporting("modules/themes/experiments/MobileVisualRefreshExperiment.tsx");
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
export default tmp3;
2026-07-20 16:05:17 +00:00
export const MobileVisualRefreshExperiment = tmp2;
2026-10-03 08:58:59 +00:00
export const useMobileVisualRefreshConfig = tmp4;
2026-08-31 15:47:37 +00:00
export const isMobileVisualRefreshEnabled = function isMobileVisualRefreshEnabled(location) {
2026-10-03 08:58:59 +00:00
const obj = { location };
return closure_2.getConfig(obj).enabled;
2026-07-20 16:05:17 +00:00
};
2026-09-01 10:26:29 +00:00
export const resolveRefreshToken = function resolveRefreshToken(MESSAGES_HEADER_PADDING_BOTTOM) {
return MESSAGES_HEADER_PADDING_BOTTOM.resolve({ enabledExperiments: ["mobile-visual-refresh"] });
2026-07-20 16:05:17 +00:00
};