'use strict'
!(function(require, directRequire) {
  const a = require('react'),
    b = require('redux'),
    c = require('./ActionSheet.js'),
    d = require('./ba23d8b47b1f4ea08b9fd49939b9443f.js'),
    e = require('./d3976cc01aeebc5b09e11c4135b6bd8d.js'),
    { connect: f } = require('react-redux')
  class g extends a.Component {
    onSelect(a) {
      this.props.hideActionSheet({
        callbackID: this.props.callbackID,
        res: { errMsg: 'showActionSheet:ok', tapIndex: a }
      })
    }
    onCancel() {
      this.props.hideActionSheet({
        callbackID: this.props.callbackID,
        res: { errMsg: 'showActionSheet:cancel' }
      })
    }
    render() {
      let b = this.props
      return a.createElement(c, {
        show: b.show,
        itemList: b.itemList,
        cancelColor: b.cancelColor,
        cancelText: b.cancelText,
        itemColor: b.itemColor,
        alertIndex: b.alertIndex,
        onSelect: this.onSelect.bind(this),
        onCancel: this.onCancel.bind(this),
        onMaskClick: this.onCancel.bind(this)
      })
    }
  }
  module.exports = f(
    a => {
      let b = a.simulator.actionsheetInfo,
        c = a.simulator.currentWebviewID,
        d = b.show && c == b.showOnWebviewID
      return {
        show: d,
        itemList: b.itemList || [],
        callbackID: b.callbackID,
        cancelText: b.cancelText || '\u53D6\u6D88',
        cancelColor: b.cancelColor || '#000000',
        itemColor: b.itemColor || '#000000',
        alertIndex: b.alertIndex
      }
    },
    a => {
      return { hideActionSheet: e.bindActionCreators(d.hideActionSheet, a) }
    }
  )(g)
})(require('lazyload'), require)
