decord/source/modules/harvester/DataHarvestStore.tsx

52 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 13765
// Function ID: 13766
// Name: DataHarvestStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 13765 (DataHarvestStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c0 = false;
let c1;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class DataHarvestStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
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 dataHarvestStore = new DataHarvestStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN: function handleConnectionOpen() {
2026-08-24 06:08:38 +00:00
c1 = undefined;
2026-07-20 16:05:17 +00:00
},
UPDATE_DATA_HARVEST_TYPE: function handleUpdateHarvestType(harvestType) {
2026-08-24 06:08:38 +00:00
c0 = false;
2026-07-20 16:05:17 +00:00
harvestType = harvestType.harvestType;
},
LOAD_DATA_HARVEST_TYPE_START: function handleRequestingHarvest() {
2026-08-24 06:08:38 +00:00
c0 = true;
2026-07-20 16:05:17 +00:00
},
LOAD_DATA_HARVEST_TYPE_FAILURE: function handleRequestingHarvestFailure() {
2026-08-24 06:08:38 +00:00
c0 = false;
2026-07-20 16:05:17 +00:00
},
LOGOUT: function handleLogout() {
2026-08-24 06:08:38 +00:00
c0 = false;
c1 = null;
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/harvester/DataHarvestStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default dataHarvestStore;