'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) {
  const a = require('./4389a88e405d1d37f36c16fc0ec96540.js'),
    b = require('./5b7e808cbfe14a62c21959fb1771749d.js'),
    { connect: c } = require('react-redux')
  module.exports = c(
    a => {
      let c,
        d = a.simulator.currentWebviewID,
        e = a.simulator.webviewInfos[d],
        f = (e && e.navigationBar) || {},
        g = a.toolbar.deviceInfo || {},
        h = a.simulator.appConfig || {},
        i = (a.project.current || {}).libVersion,
        j = i && 170 <= parseInt(i.replace(/\./g, '')),
        k = ((h.global || {}).window || {}).navigationStyle || 'default',
        l = ((h.global || {}).window || {}).enableFullScreen || !1,
        m = 'rgba(255,255,255,1)'
      try {
        ;(c = b.fromHex(f.backgroundColor || '#ffffff')),
          (c.a = null == f.alpha || f.alpha == void 0 ? 1 : f.alpha),
          l || 'custom' === k || (c.a = 1),
          (m = c.toRGBA())
      } catch (a) {
        m = 'rgba(255,255,255,1)'
      }
      return _extends({}, f, {
        customNavigationBar: j && 'custom' === k,
        useCapsuleNavigationBar: j,
        titleStyle: f.titleStyle || 'white',
        height: g.statusbarHeight,
        backgroundColor: m,
        networkType: a.toolbar.network.list[a.toolbar.network.current],
        iphoneX: 'iPhone X' == g.model
      })
    },
    () => {
      return {}
    }
  )(a)
})(require('lazyload'), require)
