Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
// Module ID: 11446
|
|
// Function ID: 11447
|
|
// Name: BadgeManagementExperiment
|
|
// Dependencies: [1438, 558, 568, 2]
|
|
|
|
// Module 11446 (BadgeManagementExperiment)
|
|
import c from "c" /* 568 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1438 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const obj = { name: "2026-08-badge-management", kind: "user", defaultConfig: { enabled: false, tenureBadgeHideable: false }, variations: null };
|
|
let obj2 = { 1: null, 2: { enabled: true, tenureBadgeHideable: true } };
|
|
obj2[2] = { enabled: true, tenureBadgeHideable: false };
|
|
obj.variations = obj2;
|
|
const apexExperiment = ApexExperiment.createApexExperiment(obj);
|
|
const result = size.fileFinishedImporting("modules/badges/BadgeManagementExperiment.tsx");
|
|
|
|
export default apexExperiment;
|
|
export const useIsBadgeManagementEnabled = ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
|
|
const cResult = c.c(2);
|
|
const _location = location.location;
|
|
if (cResult[0] !== _location) {
|
|
const obj2 = { location: _location };
|
|
cResult[0] = _location;
|
|
cResult[1] = obj2;
|
|
let tmp2 = obj2;
|
|
} else {
|
|
tmp2 = cResult[1];
|
|
}
|
|
return apexExperiment.useConfig(tmp2).enabled;
|
|
}) : ((location) => apexExperiment.useConfig({ location: location.location }).enabled);
|