decord/source/modules/media_engine/BrowserInvertedWantsExperiment.tsx

28 lines
982 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13135
// Function ID: 13136
2026-07-20 16:05:17 +00:00
// Name: getBrowserInvertedWantsConfig
2026-08-15 05:55:55 +00:00
// Dependencies: [1472, 501, 2]
2026-07-20 16:05:17 +00:00
// Exports: getBrowserInvertedWantsConfig
2026-08-24 06:08:38 +00:00
// Module 13135 (getBrowserInvertedWantsConfig)
import set from "set" /* 2 */;
import PlatformTypes from "PlatformTypes" /* 501 */;
import ApexExperiment from "ApexExperiment" /* 1472 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let obj = { 1: null };
obj[1] = { invertWants: true };
let closure_2 = ApexExperiment.createApexExperiment({ kind: "user", name: "2026-03-browser-inverted-wants", defaultConfig: { invertWants: false }, variations: obj });
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/media_engine/BrowserInvertedWantsExperiment.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const getBrowserInvertedWantsConfig = function getBrowserInvertedWantsConfig(arg0) {
2026-08-24 06:08:38 +00:00
let config = PlatformTypes;
2026-07-29 08:29:29 +00:00
if (config.isDesktop()) {
config = { invertWants: false };
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj = { location: null };
obj[0] = arg0;
2026-07-20 16:05:17 +00:00
config = config.getConfig(obj);
}
return config;
};