decord/alpha/source/modules/checkpoint/CheckpointStore.tsx
github-actions f95a0071ef chore: update source for alpha 349.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-29 09:27:02 +00:00

89 lines
2.4 KiB
TypeScript

// Module ID: 15421
// Function ID: 15422
// Name: CheckpointStore
// Dependencies: [504, 573, 2]
// Module 15421 (CheckpointStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
let obj = { INIT: 0, [0]: "INIT", FETCHING: 1, [1]: "FETCHING", SUCCESS: 2, [2]: "SUCCESS", ERROR: 3, [3]: "ERROR" };
const obj2 = { isMuted: false };
let merged = Object.assign(obj2);
obj = {};
let c3 = null;
let c4 = null;
let INIT = obj.INIT;
const PersistedStore = initializeDefault.PersistedStore;
class CheckpointStore extends PersistedStore {
}
const prototype = CheckpointStore.prototype;
prototype["getState"] = function getState() {
return obj;
};
prototype["initialize"] = function initialize(arg0) {
if (null != arg0) {
obj = {};
const merged = Object.assign(obj);
const merged1 = Object.assign(arg0);
}
};
Object.defineProperty(prototype, "isMuted", {
get: function isMuted() {
return obj.isMuted;
},
set: undefined
});
Object.defineProperty(prototype, "stats", {
get: function stats() {
return c3;
},
set: undefined
});
Object.defineProperty(prototype, "character", {
get: function character() {
return c4;
},
set: undefined
});
Object.defineProperty(prototype, "fetchState", {
get: function fetchState() {
return INIT;
},
set: undefined
});
CheckpointStore.displayName = "Checkpoint2026Store";
CheckpointStore.persistKey = "Checkpoint2026Store";
const checkpointStore = new CheckpointStore(DispatcherDefault, {
CHECKPOINT_TOGGLE_MUTE: function handleToggleMute() {
obj.isMuted = !obj.isMuted;
},
CHECKPOINT_FETCH_START: function handleFetchStart() {
INIT = obj.FETCHING;
},
CHECKPOINT_FETCH_SUCCESS: function handleFetchSuccess(arg0) {
({ stats: c3, character: c4 } = arg0);
INIT = obj.SUCCESS;
},
CHECKPOINT_FETCH_FAILED: function handleFetchFailed() {
INIT = obj.ERROR;
},
CHECKPOINT_COMPLETE_SUCCESS: function handleCompleteSuccess(character) {
character = character.character;
},
CHECKPOINT_RESET_SUCCESS: function handleResetSuccess() {
c4 = null;
},
LOGOUT: function handleLogout() {
obj = {};
const merged = Object.assign(obj2);
c3 = null;
c4 = null;
INIT = obj.INIT;
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/checkpoint/CheckpointStore.tsx");
export default checkpointStore;
export const CheckpointFetchStates = obj;