'use strict'
!(function(require, directRequire) {
  const { connect: a } = require('react-redux'),
    b = require('react'),
    c = require('redux'),
    d = require('./8ab881d8aa70b1621a66128d5a4a0e01.js'),
    e = require('./cc2c2970ff81ae4a83123e81ee123da2.js'),
    f = require('./a8c87029da0fa06e986298d447ab0fe2.js'),
    g = require('./1fcc6bd55b687d154a4247e57fe3011d.js'),
    h = require('./6620a0cf7dad1b400d60f0fdae40f524.js'),
    i = require('./56c390e04c10e91a4aa2a2c19d9a885d.js'),
    j = a(
      a => {
        return {
          current: a.project.current,
          list: a.project.list,
          mainWindow: a.window.mainWindow,
          projectManagementWindow: a.window.projectManagement
        }
      },
      a => {
        return {
          confirm: b => a(g.showConfirmPopup(b)),
          removeProject: b => a(e.removeProject(b)),
          async closeProjectManagement() {
            return a(f.setProjectManagement({ show: !1 }))
          },
          createMiniCodeRequest() {
            a(e.createMiniCodeRequest())
          },
          createProjectRequest() {
            a(e.createProjectRequest())
          },
          createProjectOpen() {
            a(e.createProjectOpen())
          }
        }
      }
    )(d),
    k = i.SIZE.PROJECT_MANAGEMENT.WIDTH,
    l = i.SIZE.PROJECT_MANAGEMENT.HEIGHT
  class m extends b.Component {
    constructor(a) {
      super(a)
    }
    componentWillUnmount() {
      this.props.closeProjectManagement()
    }
    render() {
      return b.createElement(h, {
        title: this.props.title || '\u9879\u76EE\u7BA1\u7406',
        width: k,
        height: l,
        min_width: k,
        min_height: l,
        resizable: !1,
        registryId: i.WINDOW_REGISTRY.PROJECT_MANAGEMENT,
        onWindowClose: this.props.closeProjectManagement,
        templateHTML: 'html/popup.html',
        renderClass: j
      })
    }
  }
  const n = a(
    a => {
      return {
        title:
          a.window.projectManagement &&
          'minicode' === a.window.projectManagement.type
            ? '\u4EE3\u7801\u7247\u6BB5\u7BA1\u7406'
            : '\u9879\u76EE\u7BA1\u7406'
      }
    },
    a => ({
      async closeProjectManagement() {
        return a(f.setProjectManagement({ show: !1 }))
      }
    })
  )(m)
  module.exports = n
})(require('lazyload'), require)
