decord/beta/source/modules/harvester/DataHarvestStore.tsx
2026-10-12 16:32:48 +00:00

52 lines
1.4 KiB
TypeScript

// Module ID: 14005
// Function ID: 14006
// Name: DataHarvestStore
// Dependencies: [504, 584, 2]
// Module 14005 (DataHarvestStore)
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 584 */;
import size from "module_2" /* 2 */;
let c0 = false;
let c1;
const Store = get_initializedDefault.Store;
class DataHarvestStore extends Store {
}
const prototype = DataHarvestStore.prototype;
Object.defineProperty(prototype, "harvestType", {
get: function harvestType() {
return c1;
},
set: undefined
});
Object.defineProperty(prototype, "requestingHarvest", {
get: function requestingHarvest() {
return c0;
},
set: undefined
});
DataHarvestStore.displayName = "DataHarvestStore";
const obj = {
CONNECTION_OPEN: function handleConnectionOpen() {
c1 = undefined;
},
UPDATE_DATA_HARVEST_TYPE: function handleUpdateHarvestType(harvestType) {
c0 = false;
harvestType = harvestType.harvestType;
},
LOAD_DATA_HARVEST_TYPE_START: function handleRequestingHarvest() {
c0 = true;
},
LOAD_DATA_HARVEST_TYPE_FAILURE: function handleRequestingHarvestFailure() {
c0 = false;
},
LOGOUT: function handleLogout() {
c0 = false;
c1 = null;
}
};
const dataHarvestStore = new DataHarvestStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("modules/harvester/DataHarvestStore.tsx");
export default dataHarvestStore;