decord/alpha/source/modules/checkpoint/CheckpointFlows.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

41 lines
1.5 KiB
TypeScript

// Module ID: 16047
// Function ID: 16048
// Name: CheckpointFlows
// Dependencies: [16048, 16049, 16050, 2]
// Exports: getAdjacentCheckpointRoute, getCheckpointFlow, getCheckpointRoutes
// Module 16047 (CheckpointFlows)
import CheckpointNavigation from "CheckpointNavigation" /* 16048 */;
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) {
if (arg0 === CheckpointNavigation.CheckpointFlow.SHARED_DATA) {
let CHECKPOINT_NO_SHARED_DATA_FLOW = tmp(16049).CHECKPOINT_SHARED_DATA_FLOW;
} else {
CHECKPOINT_NO_SHARED_DATA_FLOW = tmp(16050).CHECKPOINT_NO_SHARED_DATA_FLOW;
}
return CHECKPOINT_NO_SHARED_DATA_FLOW;
};
export const getAdjacentCheckpointRoute = function getAdjacentCheckpointRoute(checkpointFlow, arg1, arg2) {
if (checkpointFlow === CheckpointNavigation.CheckpointFlow.SHARED_DATA) {
let prop = tmp(16049).CHECKPOINT_SHARED_DATA_FLOW;
} else {
prop = tmp(16050).CHECKPOINT_NO_SHARED_DATA_FLOW;
}
const index = prop.indexOf(arg1);
if (-1 === index) {
let INTRODUCTION = tmp(16048).CheckpointRoute.INTRODUCTION;
} else {
INTRODUCTION = prop[index + arg2];
if (INTRODUCTION == null) {
INTRODUCTION = null;
}
}
return INTRODUCTION;
};