decord/stable/source/modules/notifications/DeclarativeNotificationSettingsRedesignExperiment.tsx

39 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 14015
// Function ID: 14016
// Name: DeclarativeNotificationSettingsRedesignExperiment
2026-10-06 22:12:49 +00:00
// Dependencies: [1441, 558, 576, 2]
// Exports: isDeclarativeNotificationSettingsRedesignEnabled
2026-10-06 22:12:49 +00:00
// Module 14015 (DeclarativeNotificationSettingsRedesignExperiment)
import react from "react" /* 576 */;
import ApexExperiment from "ApexExperiment" /* 1441 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-06 22:12:49 +00:00
let obj = { name: "2026-09-declarative-notification-settings-redesign", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } };
let closure_2 = ApexExperiment.createApexExperiment(obj);
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
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;
}) : ((location) => {
const obj = { location };
return closure_2.useConfig(obj).enabled;
});
const result = size.fileFinishedImporting("modules/notifications/DeclarativeNotificationSettingsRedesignExperiment.tsx");
export const isDeclarativeNotificationSettingsRedesignEnabled = function isDeclarativeNotificationSettingsRedesignEnabled(getAssignedNotifSettingsAndMappings) {
2026-10-06 22:12:49 +00:00
const obj = { location: getAssignedNotifSettingsAndMappings };
return closure_2.getConfig(obj).enabled;
};
2026-10-06 22:12:49 +00:00
export const useIsDeclarativeNotificationSettingsRedesignEnabled = tmp2;