Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
75 lines
2 KiB
TypeScript
75 lines
2 KiB
TypeScript
// Module ID: 15246
|
|
// Function ID: 15247
|
|
// Name: CheckpointStore
|
|
// Dependencies: [504, 573, 2]
|
|
|
|
// Module 15246 (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 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, "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(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 size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/checkpoint/CheckpointStore.tsx");
|
|
|
|
export default checkpointStore;
|
|
export const CheckpointFetchStates = obj;
|