// Metro module 11565 (f11566). import Module589 from "../_bundle/Module589"; import Dispatcher from "../Dispatcher"; let c7889_0; const handlePopAllLayers = function handlePopAllLayers() { c7889_0 = []; }; c7889_0 = []; class LayerStore extends Module589.Store { static displayName = "LayerStore"; hasLayers() { return c7889_0.length > 0; } getLayers() { return c7889_0; } } const layerStore = new LayerStore(Dispatcher, { LAYER_PUSH: function handleAddLayer({ component }) { if (c7889_0.indexOf(component) >= 0) { return false; } c7889_0 = [...c7889_0, component]; }, LAYER_POP: function handleRemoveLayer() { if (c7889_0.length === 0) { return false; } c7889_0 = c7889_0.slice(0, -1); }, LAYER_POP_ALL: handlePopAllLayers, LOGOUT: handlePopAllLayers, NOTIFICATION_CLICK: handlePopAllLayers }); export default layerStore;