'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('react'),
    b = require('./3b5f8e2469c474c8d433c1c6926d8999.js'),
    c = require('classnames'),
    d = require('./d3976cc01aeebc5b09e11c4135b6bd8d.js'),
    e = require('./c4190a2430506f3602ca550e1e75d620.js'),
    { connect: f } = require('react-redux')
  class g extends a.Component {
    constructor(a) {
      super(a), (this.state = { mouseIn: !1 })
    }
    onSelectClick(a, b) {
      b.stopPropagation()
      let c = this.props.list[a]
      this.props.debuggerActions.setUrl(c),
        this.props.debuggerActions.setUrlComplete({ show: !1 })
    }
    onMouseEnter() {
      this.setState({ mouseIn: !0 })
    }
    onMouseLeave() {
      this.setState({ mouseIn: !1 })
    }
    render() {
      let b = this.props,
        d = b.list || [],
        e = b.current,
        f = d.map((b, d) => {
          return a.createElement(
            'div',
            {
              key: b,
              onClick: this.onSelectClick.bind(this, d),
              className: c('ui-dropdown-item', {
                'ui-dropdown-item-active': !this.state.mouseIn && e === d
              })
            },
            a.createElement('p', null, b)
          )
        }),
        g = {
          position: 'fixed',
          left: b.left,
          top: b.top,
          width: b.width,
          display: d.length && b.show ? '' : 'none'
        }
      return a.createElement(
        'div',
        {
          className: 'ui-popover',
          style: g,
          onMouseEnter: this.onMouseEnter.bind(this),
          onMouseLeave: this.onMouseLeave.bind(this)
        },
        a.createElement('div', { className: 'ui-dropdown' }, f)
      )
    }
  }
  module.exports = f(
    a => {
      let b = a.webdebugger || {},
        c = b.urlcomplete
      return _extends({}, c)
    },
    a => {
      return { debuggerActions: d.bindActionCreators(e, a) }
    }
  )(g)
})(require('lazyload'), require)
