Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
30 lines
1.5 KiB
TypeScript
30 lines
1.5 KiB
TypeScript
// Module ID: 14735
|
|
// Function ID: 14736
|
|
// Name: DeclarativeNotificationSettingsRedesignExperiment
|
|
// Dependencies: [1438, 558, 568, 2]
|
|
// Exports: isDeclarativeNotificationSettingsRedesignEnabled
|
|
|
|
// Module 14735 (DeclarativeNotificationSettingsRedesignExperiment)
|
|
import c from "c" /* 568 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1438 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let closure_2 = ApexExperiment.createApexExperiment({ name: "2026-09-declarative-notification-settings-redesign", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } });
|
|
const result = size.fileFinishedImporting("modules/notifications/DeclarativeNotificationSettingsRedesignExperiment.tsx");
|
|
|
|
export const isDeclarativeNotificationSettingsRedesignEnabled = function isDeclarativeNotificationSettingsRedesignEnabled(getAssignedNotifSettingsAndMappings) {
|
|
return closure_2.getConfig({ location: getAssignedNotifSettingsAndMappings }).enabled;
|
|
};
|
|
export const useIsDeclarativeNotificationSettingsRedesignEnabled = ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
|
|
const cResult = c.c(2);
|
|
if (cResult[0] !== location) {
|
|
const obj2 = { location };
|
|
cResult[0] = location;
|
|
cResult[1] = obj2;
|
|
let tmp2 = obj2;
|
|
} else {
|
|
tmp2 = cResult[1];
|
|
}
|
|
return closure_2.useConfig(tmp2).enabled;
|
|
}) : ((location) => closure_2.useConfig({ location }).enabled);
|