'use strict'
var _extends =
  Object.assign ||
  function(a) {
    for (var b, c = 1; c < arguments.length; c++)
      for (var d in ((b = arguments[c]), b))
        Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d])
    return a
  }
!(function(require, directRequire) {
  function a(a) {
    let b = []
    for (let c in a) 'version' != c && b.push({ name: a[c], value: c })
    return b
  }
  const b = require('lodash'),
    { REHYDRATE: c } = require('redux-persist/lib/constants'),
    d = require('./0634ee2ebd3e560d9d4804ecc960160f.js'),
    e = require('./fb65fe0edb2920692c36e675e79d61c1.js'),
    f = () => {
      return {
        sceneMap: e,
        sceneList: a(e),
        searchQuery: { serviceList: [] },
        bbsLogConfig: []
      }
    }
  module.exports = function(e = f(), g) {
    switch (g.type) {
      case d.CONFIG_SYNC_STORE: {
        let a = _extends({}, e)
        return (a = b.merge(a, g.data.config)), a
      }
      case d.CONFIG_UPDATE_SCENE_INFO: {
        let b = e.sceneMap
        return (
          g.data.version > e.sceneMap.version && (b = g.data),
          _extends({}, e, { sceneMap: b, sceneList: a(b) })
        )
      }
      case d.CONFIG_UPDATE_SEARCH_QUERY:
        return _extends({}, e, {
          searchQuery: _extends({}, e.searchQuery, {
            serviceList: g.data || []
          })
        })
      case d.CONFIG_UPDATE_BBS_LOG_CONFIG:
        return _extends({}, e, { bbsLogConfig: g.data || [] })
      case c:
        return b.merge(b.cloneDeep(e), g.payload.config || {})
      default:
        return e
    }
  }
})(require('lazyload'), require)
