decord/alpha/source/modules/checkpoint/CheckpointFlows.tsx

45 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 15916
// Function ID: 15917
// Name: CheckpointFlows
2026-10-09 10:00:15 +00:00
// Dependencies: [15917, 15918, 15919, 2]
// Exports: getAdjacentCheckpointRoute, getCheckpointFlow, getCheckpointRoutes
2026-10-09 10:00:15 +00:00
// Module 15916 (CheckpointFlows)
import CheckpointNavigation from "CheckpointNavigation" /* 15917 */;
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) {
2026-10-03 08:58:59 +00:00
let CHECKPOINT_NO_SHARED_DATA_FLOW;
if (arg0 === CheckpointNavigation.CheckpointFlow.SHARED_DATA) {
2026-10-09 10:00:15 +00:00
CHECKPOINT_NO_SHARED_DATA_FLOW = tmp(15918).CHECKPOINT_SHARED_DATA_FLOW;
} else {
2026-10-09 10:00:15 +00:00
CHECKPOINT_NO_SHARED_DATA_FLOW = tmp(15919).CHECKPOINT_NO_SHARED_DATA_FLOW;
}
return CHECKPOINT_NO_SHARED_DATA_FLOW;
};
2026-10-08 09:57:35 +00:00
export const getAdjacentCheckpointRoute = function getAdjacentCheckpointRoute(arg0, arg1, arg2) {
2026-10-03 08:58:59 +00:00
let INTRODUCTION;
let prop;
2026-10-08 09:57:35 +00:00
if (arg0 === CheckpointNavigation.CheckpointFlow.SHARED_DATA) {
2026-10-09 10:00:15 +00:00
prop = tmp(15918).CHECKPOINT_SHARED_DATA_FLOW;
} else {
2026-10-09 10:00:15 +00:00
prop = tmp(15919).CHECKPOINT_NO_SHARED_DATA_FLOW;
}
const index = prop.indexOf(arg1);
if (-1 === index) {
2026-10-09 10:00:15 +00:00
INTRODUCTION = tmp(15917).CheckpointRoute.INTRODUCTION;
} else {
INTRODUCTION = prop[index + arg2];
if (INTRODUCTION == null) {
INTRODUCTION = null;
}
}
return INTRODUCTION;
};