36 lines
1002 B
TypeScript
36 lines
1002 B
TypeScript
// Metro module 12761 (f12762).
|
|
import Module589 from "../../_bundle/Module589";
|
|
import Dispatcher from "../../Dispatcher";
|
|
let harvestType2;
|
|
let c8793_0 = false;
|
|
harvestType2 = void 0;
|
|
class DataHarvestStore extends Module589.Store {
|
|
static displayName = "DataHarvestStore";
|
|
get harvestType() {
|
|
return harvestType2;
|
|
}
|
|
get requestingHarvest() {
|
|
return c8793_0;
|
|
}
|
|
}
|
|
const dataHarvestStore = new DataHarvestStore(Dispatcher, {
|
|
CONNECTION_OPEN: function handleConnectionOpen() {
|
|
harvestType2 = void 0;
|
|
},
|
|
UPDATE_DATA_HARVEST_TYPE: function handleUpdateHarvestType({ harvestType: harvestType3 }) {
|
|
c8793_0 = false;
|
|
harvestType2 = harvestType3;
|
|
},
|
|
LOAD_DATA_HARVEST_TYPE_START: function handleRequestingHarvest() {
|
|
c8793_0 = true;
|
|
},
|
|
LOAD_DATA_HARVEST_TYPE_FAILURE: function handleRequestingHarvestFailure() {
|
|
c8793_0 = false;
|
|
},
|
|
LOGOUT: function handleLogout() {
|
|
c8793_0 = false;
|
|
harvestType2 = null;
|
|
}
|
|
});
|
|
export default dataHarvestStore;
|