reakpoints
  };
}

function update(state = initialEventListenerState(), action) {
  switch (action.type) {
    case "UPDATE_EVENT_LISTENERS":
      return { ...state,
        active: action.active
      };

    case "RECEIVE_EVENT_LISTENER_TYPES":
      return { ...state,
        categories: action.categories
      };

    case "UPDATE_EVENT_LISTENER_EXPANDED":
      return { ...state,
        expanded: action.expanded
      };

    case "TOGGLE_EVENT_LISTENERS":
      {
        const {
          logEventBreakpoints
        } = action;
        _prefs.prefs.logEventBreakpoints = logEventBreakpoints;
        return { ...state,
          logEventBreakpoints
        };
      }

    default:
      return state;
  }
}

function getActiveEventListeners(state) {
  return state.eventListenerBreakpoints.active;
}

function getEventListenerBreakpointTypes(state) {
  return state.eventListenerBreakpoints.categories;
}

function getEventListenerExpanded(state) {
  return state.eventListenerBreakpoints.expanded;
}

function shouldLogEventBreakpoints(state) {
  return state.eventListenerBreakpoints.logEventBreakpoints;
}

var _default = update;
exports.default = _default;PK