decord/beta/source/modules/checkpoint/CheckpointExperiment.tsx

39 lines
1.4 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 5460
// Function ID: 5461
// Name: CheckpointExperiment
2026-10-12 16:32:48 +00:00
// Dependencies: [1453, 558, 576, 2]
2026-10-02 13:37:24 +00:00
// Exports: getIsCheckpointEnabled
2026-10-12 16:32:48 +00:00
// Module 5460 (CheckpointExperiment)
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 obj = { name: "2026-09-build-a-bear", kind: "user", defaultConfig: { enabled: false }, variations: { 0: { enabled: false }, 1: { enabled: true } } };
2026-10-02 13:37:24 +00:00
let closure_2 = ApexExperiment.createApexExperiment(obj);
2026-10-12 16:32:48 +00:00
let tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsCheckpointEnabled(location) {
2026-10-02 13:37:24 +00:00
let tmp2;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] !== location) {
const obj2 = { location };
cResult[0] = location;
cResult[1] = obj2;
tmp2 = obj2;
} else {
tmp2 = cResult[1];
}
return closure_2.useConfig(tmp2).enabled;
2026-10-12 16:32:48 +00:00
}) : (function useIsCheckpointEnabled(location) {
2026-10-02 13:37:24 +00:00
const obj = { location };
return closure_2.useConfig(obj).enabled;
});
const result = size.fileFinishedImporting("modules/checkpoint/CheckpointExperiment.tsx");
2026-10-02 13:37:24 +00:00
export const useIsCheckpointEnabled = tmp2;
export const getIsCheckpointEnabled = function getIsCheckpointEnabled(transformCheckpoint2026CardComponent) {
2026-10-01 14:13:23 +00:00
const obj = { location: transformCheckpoint2026CardComponent };
2026-10-02 13:37:24 +00:00
return closure_2.getConfig(obj).enabled;
};