var _createReducer;
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
//./selectionLayer.js
import { createReducer, createAction } from "redux-act";
// ------------------------------------
// Actions
// ------------------------------------
export var createYourOwnEnzymeUpdate = createAction("CREATE_YOUR_OWN_ENZYME_UPDATE");
export var createYourOwnEnzymeReset = createAction("CREATE_YOUR_OWN_ENZYME_RESET");
export var createYourOwnEnzymeClose = createAction("CREATE_YOUR_OWN_ENZYME_CLOSE");

// ------------------------------------
// Reducer
// ------------------------------------
var initialValues = {
  name: "例子： Enzyme",
  sequence: "ggatcc",
  chop_top_index: 1,
  chop_bottom_index: 5,
  isOpen: false
};
export default createReducer((_createReducer = {}, _createReducer[createYourOwnEnzymeClose] = function () {
  return _extends({}, initialValues, {
    isOpen: false
  });
}, _createReducer[createYourOwnEnzymeReset] = function (state, payload) {
  if (payload === void 0) {
    payload = {};
  }
  return _extends({}, initialValues, payload);
}, _createReducer[createYourOwnEnzymeUpdate] = function (state, payload) {
  return payload;
}, _createReducer), initialValues);