decord/alpha/source/modules/billing/experiments/GiftCardsExperiment.tsx

39 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 7099
// Function ID: 7100
// Name: GiftCardsExperiment
2026-10-09 10:00:15 +00:00
// Dependencies: [1453, 558, 576, 2]
2026-07-20 16:05:17 +00:00
2026-10-12 06:59:38 +00:00
// Module 7099 (GiftCardsExperiment)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
2026-10-09 10:00:15 +00:00
import ApexExperiment from "ApexExperiment" /* 1453 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let obj2;
let obj = { name: "2026-02-gift-cards", kind: "user", defaultConfig: { enabled: false }, variations: obj2 };
obj2 = { 1: null };
obj2[1] = { enabled: true };
const apexExperiment = ApexExperiment.createApexExperiment(obj);
2026-10-08 09:57:35 +00:00
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useGiftCardsExperimentConfig(cResult) {
2026-10-03 08:58:59 +00:00
let tmp3;
const obj = react;
cResult = obj.c(2);
const config = apexExperiment.useConfig(cResult);
if (cResult[0] !== config.enabled) {
const obj2 = { enabled: config.enabled };
cResult[0] = config.enabled;
cResult[1] = obj2;
tmp3 = obj2;
} else {
tmp3 = cResult[1];
}
return tmp3;
2026-10-08 09:57:35 +00:00
}) : (function useGiftCardsExperimentConfig(cResult) {
2026-10-03 08:58:59 +00:00
const obj = { enabled: apexExperiment.useConfig(cResult).enabled };
return obj;
});
const result = size.fileFinishedImporting("modules/billing/experiments/GiftCardsExperiment.tsx");
2026-07-20 16:05:17 +00:00
export default apexExperiment;
2026-10-03 08:58:59 +00:00
export const useGiftCardsExperimentConfig = tmp3;