'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('./6620a0cf7dad1b400d60f0fdae40f524.js'),
    c = require('./4e33a8fe024ce7f99e1485ccd721d89d.js'),
    d = require('./56c390e04c10e91a4aa2a2c19d9a885d.js'),
    e = require('./5dc59f418d85e854c1a12d402d29e2d7.js'),
    f = require('./35a5c665bbd039baf968211c3ff216fc.js'),
    { connect: g } = require('react-redux')
  class h extends a.Component {
    constructor(a) {
      super(a)
    }
    componentWillReceiveProps() {}
    onMusicClose() {
      f.stopMusic()
    }
    render() {
      return a.createElement(
        b,
        {
          title: '\u97F3\u4E50\u64AD\u653E\u5668',
          registryId: d.WINDOW_REGISTRY.SETTINGS,
          width: d.SIZE.MUSIC.WIDTH,
          height: d.SIZE.MUSIC.HEIGHT,
          resizable: !1,
          always_on_top: !0,
          onWindowClose: this.onMusicClose.bind(this),
          templateHTML: 'html/music.html'
        },
        a.createElement(c, null)
      )
    }
  }
  module.exports = g(
    a => {
      const b = a.simulator.music || {},
        c = b.status
      return _extends(
        { show: c == e.MUSIC_STATE_PLAY || c == e.MUSIC_STATE_PAUSE },
        b
      )
    },
    () => {
      return {}
    }
  )(h)
})(require('lazyload'), require)
