'use strict'
!(function(require, directRequire) {
  const a = require('react'),
    b = require('./d3976cc01aeebc5b09e11c4135b6bd8d.js'),
    c = require('./137588fc97010af6b33c2be1d533447b.js'),
    d = require('./ModalConnected.js'),
    e = require('./ActionSheetConnected.js'),
    f = require('./ToastConnected.js'),
    g = require('./a1b9e6fb17fda6e4b961ef97ab1371f8.js'),
    h = require('./84eac15ddafa077aa832c98b6c2290bd.js'),
    i = require('./9a1630c7db7597f338c9319bfc8571c5.js'),
    j = require('./8e7fed729e9f11f30d63365586719bf0.js'),
    k = require('./504ae46dc4a72502ee836b22913fbe81.js'),
    l = require('./b6a2a0af8ea41ee5132948d45a0a6677.js'),
    m = require('./a03c8e76d4fe0178cd6a28a2fbc16ddd.js'),
    n = require('./195285e5284f78e12cb71042e95b9566.js'),
    o = require('./PreviewImageConnected.js'),
    p = require('./PaymentConnected.js'),
    q = require('./10279410b7cf7ea9409d42a7eb37225c.js'),
    r = require('./b6dd6ba0b853899c69527eaf93a58f7b.js'),
    s = require('./413e1df0d2a135fa20cefc4c23f8e8e1.js'),
    t = require('./d03a90fbd796428c64e8c47eef5f4e71.js'),
    u = require('./f094f1d16fffcac4d74949e4fc6b09ac.js'),
    v = require('./dc4889188702c881b1432b490a2a4850.js'),
    w = require('./03f56b6c971ec6f7813234d685a2fa8c.js'),
    x = require('./b86cb96a5caed2b5ae72ef2e6a5d13ef.js'),
    y = require('./0cecfd7c413f06c788a4d6b7972cdf96.js'),
    z = require('./e452f0d072800b8203d233682d37d71a.js'),
    A = require('./b48002774455efab18dc3db5bf976df2.js'),
    { connect: B } = require('react-redux')
  class C extends a.Component {
    constructor(a) {
      super(a), (this.state = { show: a.show })
    }
    getWindowComponents() {
      let b = this.props,
        c = []
      return (
        b.window.groupShow && c.push(a.createElement(k, { key: 'grouplist' })),
        b.window.settingShow && c.push(a.createElement(i, { key: 'setting' })),
        b.window.addCardShow && c.push(a.createElement(v, { key: 'addcard' })),
        b.window.viewCardShow &&
          c.push(a.createElement(w, { key: 'viewcard' })),
        b.window.h5AddCardShow &&
          c.push(a.createElement(x, { key: 'h5addcard' })),
        b.window.h5ViewCardShow &&
          c.push(a.createElement(y, { key: 'h5viewcard' })),
        b.window.h5ChooseCardShow &&
          c.push(a.createElement(z, { key: 'h5choosecard' })),
        b.window.locationShow &&
          c.push(a.createElement(u, { key: 'location' })),
        b.window.addPhoneContactShow &&
          c.push(a.createElement(l, { key: 'addPhoneContact' })),
        b.window.chooseAddressShow &&
          c.push(a.createElement(m, { key: 'chooseAddress' })),
        b.window.chooseInvoiceTitleShow &&
          c.push(a.createElement(n, { key: 'chooseInvoiceTitle' })),
        c
      )
    }
    render() {
      return a.createElement('div', null, this.getWindowComponents())
    }
  }
  module.exports = B(
    a => {
      let b = a.simulator.currentWebviewID,
        c = a.toolbar.deviceInfo,
        d = a.window.simulator || {},
        e = a.simulator.pickerInfo || {},
        f = a.simulator.groupInfo || {},
        g = a.simulator.cardInfo,
        h = a.simulator.location || {},
        i = (a.webdebugger && a.webdebugger.cardInfo) || {},
        j =
          a.simulator.orientation &&
          'landscape' == a.simulator.orientation.value,
        k = a.simulator.previewImage || {},
        l = a.simulator.keyboard || {},
        m = a.simulator.shareInfo || {},
        n = a.simulator.actionsheetInfo || {},
        o = n.show && b == n.showOnWebviewID,
        p = a.simulator.toastInfo || {},
        q = p.show && b == p.showOnWebviewID,
        r = a.simulator.modalInfo || {},
        s = r.show && b == r.showOnWebviewID,
        t = {
          screenWidth: j ? c.screenHeight : c.screenWidth,
          screenHeight: j ? c.screenWidth : c.screenHeight,
          deviceScale: a.toolbar.deviceScale,
          window: {
            locationShow: h.show,
            groupShow: f.show,
            settingShow: a.simulator.setting.show,
            addPhoneContactShow: a.simulator.addPhoneContact.show,
            chooseAddressShow: a.simulator.chooseAddress.show,
            chooseInvoiceTitleShow: a.simulator.chooseInvoiceTitle.show,
            addCardShow: 'addcard' == g.show,
            viewCardShow: 'viewcard' == g.show,
            h5AddCardShow: 'addcard' == i.show,
            h5ViewCardShow: 'viewcard' == i.show,
            h5ChooseCardShow: 'choosecard' == i.show
          }
        },
        u = !1
      for (let b in t.window) u = u || t.window[b]
      return (t.show = u), t
    },
    () => {
      return {}
    }
  )(C)
})(require('lazyload'), require)
