77 lines
2.1 KiB
TypeScript
77 lines
2.1 KiB
TypeScript
// Module ID: 15234
|
|
// Function ID: 15235
|
|
// Name: CheckpointStore
|
|
// Dependencies: [504, 585, 2]
|
|
|
|
// Module 15234 (CheckpointStore)
|
|
import get_initializedDefault from "get initialized" /* 504 */;
|
|
import DispatcherDefault from "Dispatcher" /* 585 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let obj = { INIT: 0, [0]: "INIT", FETCHING: 1, [1]: "FETCHING", SUCCESS: 2, [2]: "SUCCESS", ERROR: 3, [3]: "ERROR" };
|
|
const obj2 = { isMuted: false };
|
|
const obj3 = {};
|
|
let merged = Object.assign(obj2);
|
|
obj = obj3;
|
|
let c3 = null;
|
|
let INIT = obj.INIT;
|
|
const PersistedStore = get_initializedDefault.PersistedStore;
|
|
class CheckpointStore extends PersistedStore {
|
|
getState() {
|
|
return obj;
|
|
}
|
|
initialize(arg0) {
|
|
if (null != arg0) {
|
|
obj = {};
|
|
const merged = Object.assign(obj);
|
|
const merged1 = Object.assign(arg0);
|
|
}
|
|
}
|
|
}
|
|
const prototype = CheckpointStore.prototype;
|
|
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, "fetchState", {
|
|
get: function fetchState() {
|
|
return INIT;
|
|
},
|
|
set: undefined
|
|
});
|
|
CheckpointStore.displayName = "Checkpoint2026Store";
|
|
CheckpointStore.persistKey = "Checkpoint2026Store";
|
|
const obj4 = {
|
|
CHECKPOINT_TOGGLE_MUTE: function handleToggleMute() {
|
|
obj.isMuted = !obj.isMuted;
|
|
},
|
|
CHECKPOINT_FETCH_START: function handleFetchStart() {
|
|
INIT = obj.FETCHING;
|
|
},
|
|
CHECKPOINT_FETCH_SUCCESS: function handleFetchSuccess(stats) {
|
|
stats = stats.stats;
|
|
INIT = obj.SUCCESS;
|
|
},
|
|
CHECKPOINT_FETCH_FAILED: function handleFetchFailed() {
|
|
INIT = obj.ERROR;
|
|
},
|
|
LOGOUT: function handleLogout() {
|
|
obj = {};
|
|
const merged = Object.assign(obj2);
|
|
c3 = null;
|
|
INIT = obj.INIT;
|
|
}
|
|
};
|
|
const checkpointStore = new CheckpointStore(DispatcherDefault, obj4);
|
|
const result = size.fileFinishedImporting("modules/checkpoint/CheckpointStore.tsx");
|
|
|
|
export default checkpointStore;
|
|
export const CheckpointFetchStates = obj;
|