decord/beta/source/modules/checkpoint/CheckpointFlows.tsx
2026-10-07 22:43:51 +00:00

44 lines
1.6 KiB
TypeScript

// Module ID: 15525
// Function ID: 15526
// Name: CheckpointFlows
// Dependencies: [15526, 15527, 15528, 2]
// Exports: getAdjacentCheckpointRoute, getCheckpointFlow, getCheckpointRoutes
// Module 15525 (CheckpointFlows)
import CheckpointNavigation from "CheckpointNavigation" /* 15526 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/checkpoint/CheckpointFlows.tsx");
export const getCheckpointFlow = function getCheckpointFlow(flag) {
const CheckpointFlow = CheckpointNavigation.CheckpointFlow;
return flag ? CheckpointFlow.SHARED_DATA : CheckpointFlow.NO_SHARED_DATA;
};
export const getCheckpointRoutes = function getCheckpointRoutes(arg0) {
let CHECKPOINT_NO_SHARED_DATA_FLOW;
if (arg0 === CheckpointNavigation.CheckpointFlow.SHARED_DATA) {
CHECKPOINT_NO_SHARED_DATA_FLOW = tmp(15527).CHECKPOINT_SHARED_DATA_FLOW;
} else {
CHECKPOINT_NO_SHARED_DATA_FLOW = tmp(15528).CHECKPOINT_NO_SHARED_DATA_FLOW;
}
return CHECKPOINT_NO_SHARED_DATA_FLOW;
};
export const getAdjacentCheckpointRoute = function getAdjacentCheckpointRoute(checkpointFlow, arg1, arg2) {
let INTRODUCTION;
let prop;
if (checkpointFlow === CheckpointNavigation.CheckpointFlow.SHARED_DATA) {
prop = tmp(15527).CHECKPOINT_SHARED_DATA_FLOW;
} else {
prop = tmp(15528).CHECKPOINT_NO_SHARED_DATA_FLOW;
}
const index = prop.indexOf(arg1);
if (-1 === index) {
INTRODUCTION = tmp(15526).CheckpointRoute.INTRODUCTION;
} else {
INTRODUCTION = prop[index + arg2];
if (INTRODUCTION == null) {
INTRODUCTION = null;
}
}
return INTRODUCTION;
};