decord/beta/source/modules/harvester/DataHarvestStore.tsx

53 lines
1.4 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 14005
// Function ID: 14006
// Name: DataHarvestStore
2026-10-07 22:43:51 +00:00
// Dependencies: [504, 584, 2]
2026-10-12 16:32:48 +00:00
// Module 14005 (DataHarvestStore)
2026-10-01 14:13:23 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
2026-10-07 22:43:51 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
let c0 = false;
let c1;
2026-10-01 14:13:23 +00:00
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";
2026-10-01 14:13:23 +00:00
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;
}
2026-10-01 14:13:23 +00:00
};
const dataHarvestStore = new DataHarvestStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("modules/harvester/DataHarvestStore.tsx");
export default dataHarvestStore;