decord/beta/source/modules/ads/AdTopicOptOutClientExperiment.tsx

40 lines
1.7 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 16267
// Function ID: 16268
// Name: AdTopicOptOutClientExperiment
2026-10-12 16:32:48 +00:00
// Dependencies: [1453, 558, 576, 2]
2026-10-02 13:37:24 +00:00
// Exports: isAdTopicOptOutClientEnabled
2026-10-12 16:32:48 +00:00
// Module 16267 (AdTopicOptOutClientExperiment)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-12 16:32:48 +00:00
import ApexExperiment from "ApexExperiment" /* 1453 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
let obj2;
2026-10-02 13:37:24 +00:00
let obj = { kind: "user", name: "2026-08-ad-topic-opt-out-client", defaultConfig: { enabled: false }, variations: obj2 };
2026-10-01 14:13:23 +00:00
obj2 = { 1: null, 2: { enabled: false }, 3: { enabled: true }, 4: { enabled: true }, 5: { enabled: true } };
obj2[5] = { enabled: true };
const apexExperiment = ApexExperiment.createApexExperiment(obj);
2026-10-12 16:32:48 +00:00
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsAdTopicOptOutClientEnabled() {
2026-10-02 13:37:24 +00:00
let first;
const obj = react;
const cResult = obj.c(1);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const obj2 = { location: "useIsAdTopicOptOutClientEnabled" };
cResult[0] = obj2;
first = obj2;
} else {
first = cResult[0];
}
return apexExperiment.useConfig(first).enabled;
2026-10-12 16:32:48 +00:00
}) : (function useIsAdTopicOptOutClientEnabled() {
return apexExperiment.useConfig({ location: "useIsAdTopicOptOutClientEnabled" }).enabled;
});
const result = size.fileFinishedImporting("modules/ads/AdTopicOptOutClientExperiment.tsx");
export const AdTopicOptOutClientExperiment = apexExperiment;
2026-10-02 13:37:24 +00:00
export const useIsAdTopicOptOutClientEnabled = tmp3;
export const isAdTopicOptOutClientEnabled = function isAdTopicOptOutClientEnabled() {
return apexExperiment.getConfig({ location: "isAdTopicOptOutClientEnabled" }).enabled;
};