'use strict'
!(function(require, directRequire) {
  const a = require('react'),
    b = require('./eadce02c750c875a10680bcfedadec88.js'),
    c = require('./fc137838572a83604db39acff8e909e0.js'),
    d = require('./d3976cc01aeebc5b09e11c4135b6bd8d.js'),
    e = require('./a8c87029da0fa06e986298d447ab0fe2.js'),
    { connect: f } = require('react-redux')
  class g extends a.Component {
    onManageClick() {
      this.props.setToolbarConfigWnd({ show: !0 })
    }
    onTitleShowClick(a) {
      this.props.setToolbarConfig({ title: a })
    }
    render() {
      let b = this.props,
        c = b.project.isMiniCode
      return a.createElement(
        'div',
        {
          className: 'ui-popover',
          style: { top: b.top, left: b.left, display: b.show ? '' : 'none' }
        },
        a.createElement(
          'div',
          { className: 'ui-dropdown' },
          a.createElement(
            'div',
            {
              className: 'ui-dropdown-item',
              onClick: this.onTitleShowClick.bind(this, !1)
            },
            a.createElement(
              'div',
              { className: 'ui-dropdown-item-hd' },
              b.titleShow
                ? null
                : a.createElement('i', { className: 'ui-icon-tick' })
            ),
            a.createElement(
              'div',
              { className: 'ui-dropdown-item-bd' },
              a.createElement('span', null, '\u53EA\u663E\u793A\u56FE\u6807')
            )
          ),
          a.createElement(
            'div',
            {
              className: 'ui-dropdown-item',
              onClick: this.onTitleShowClick.bind(this, !0)
            },
            a.createElement(
              'div',
              { className: 'ui-dropdown-item-hd' },
              b.titleShow
                ? a.createElement('i', { className: 'ui-icon-tick' })
                : null
            ),
            a.createElement(
              'div',
              { className: 'ui-dropdown-item-bd' },
              a.createElement(
                'span',
                null,
                '\u56FE\u6807\u4E0E\u6587\u5B57\u8BF4\u660E'
              )
            )
          ),
          a.createElement('div', {
            className: 'ui-dropdown-divider',
            style: { display: c ? 'none' : '' }
          }),
          a.createElement(
            'div',
            {
              className: 'ui-dropdown-item',
              onClick: this.onManageClick.bind(this),
              style: { display: c ? 'none' : '' }
            },
            a.createElement('div', { className: 'ui-dropdown-item-hd' }),
            a.createElement(
              'div',
              { className: 'ui-dropdown-item-bd' },
              a.createElement(
                'span',
                null,
                '\u81EA\u5B9A\u4E49\u5DE5\u5177\u7BA1\u7406'
              )
            )
          )
        )
      )
    }
  }
  module.exports = f(
    a => {
      let c = a.project.current || {},
        d = a.toolbar.clickKey == b.TOOLBARCONFIGLIST,
        e = a.toolbar.config
      return { show: d, titleShow: e.title, project: c }
    },
    a => {
      return {
        setToolbarConfig: d.bindActionCreators(c.setToolbarConfig, a),
        setToolbarConfigWnd: d.bindActionCreators(e.setToolbarConfig, a)
      }
    }
  )(g)
})(require('lazyload'), require)
