decord/source/modules/harvester/DataHarvestStore.tsx

51 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13315
// Function ID: 13316
2026-07-29 08:29:29 +00:00
// Name: harvestType
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 13315 (harvestType)
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
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";
2026-08-24 06:08:38 +00:00
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
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").fileFinishedImporting("modules/harvester/DataHarvestStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default dataHarvestStore;