2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 4670
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 40556
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClipsV3Enabled
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [1428, 2]
|
2026-07-22 07:54:56 +00:00
|
|
|
// Exports: getClipsRuntime, isClipsV3MLEnabled, setActiveClipsRuntime, useIsClipsV3Enabled, useIsClipsV3MLEnabled
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 4670 (isClipsV3Enabled)
|
2026-07-23 10:11:24 +00:00
|
|
|
import ApexExperiment from "ApexExperiment";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
function isClipsV3Enabled(location) {
|
|
|
|
|
return apexExperiment.getConfig({ location }).enableClipsV3;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj = { kind: "user", name: "2026-04-clips-v3-runtime", defaultConfig: { enableClipsV3: false, enableClipsV3ML: false }, variations: { [1]: { enableClipsV3: true, enableClipsV3ML: false }, [2]: { enableClipsV3: true, enableClipsV3ML: true } } };
|
|
|
|
|
const apexExperiment = ApexExperiment.createApexExperiment(obj);
|
|
|
|
|
let c1 = null;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/clips/ClipsV3RuntimeExperiment.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const ClipsV3RuntimeExperiment = apexExperiment;
|
|
|
|
|
export { isClipsV3Enabled };
|
2026-07-22 07:54:56 +00:00
|
|
|
export const useIsClipsV3Enabled = function useIsClipsV3Enabled(location) {
|
|
|
|
|
return apexExperiment.useConfig({ location }).enableClipsV3;
|
|
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export function setActiveClipsRuntime(arg0) {
|
|
|
|
|
let closure_1 = arg0;
|
|
|
|
|
}
|
|
|
|
|
export const getClipsRuntime = function getClipsRuntime(classifyHardwareAndTrack) {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (null != c1) {
|
|
|
|
|
let str = c1;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
str = "v1";
|
|
|
|
|
if (isClipsV3Enabled(classifyHardwareAndTrack)) {
|
|
|
|
|
str = "v3";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
};
|
|
|
|
|
export const isClipsV3MLEnabled = function isClipsV3MLEnabled(location) {
|
|
|
|
|
const config = apexExperiment.getConfig({ location });
|
|
|
|
|
return config.enableClipsV3 && config.enableClipsV3ML;
|
|
|
|
|
};
|
|
|
|
|
export const useIsClipsV3MLEnabled = function useIsClipsV3MLEnabled(location) {
|
|
|
|
|
const config = apexExperiment.useConfig({ location });
|
|
|
|
|
return config.enableClipsV3 && config.enableClipsV3ML;
|
|
|
|
|
};
|