38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
// Module ID: 10642
|
|
// Function ID: 10643
|
|
// Name: BadgeManagementExperiment
|
|
// Dependencies: [1441, 558, 576, 2]
|
|
|
|
// Module 10642 (BadgeManagementExperiment)
|
|
import react from "react" /* 576 */;
|
|
import ApexExperiment from "ApexExperiment" /* 1441 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let obj2;
|
|
let obj = { name: "2026-08-badge-management", kind: "user", defaultConfig: { enabled: false, tenureBadgeHideable: false }, variations: obj2 };
|
|
obj2 = { 1: null, 2: { enabled: true, tenureBadgeHideable: true } };
|
|
obj2[2] = { enabled: true, tenureBadgeHideable: false };
|
|
const apexExperiment = ApexExperiment.createApexExperiment(obj);
|
|
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? ((location) => {
|
|
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 apexExperiment.useConfig(tmp2).enabled;
|
|
}) : ((location) => {
|
|
const obj = { location: location.location };
|
|
return apexExperiment.useConfig(obj).enabled;
|
|
});
|
|
const result = size.fileFinishedImporting("modules/badges/BadgeManagementExperiment.tsx");
|
|
|
|
export default apexExperiment;
|
|
export const useIsBadgeManagementEnabled = tmp3;
|