'use strict'
!(function(require, directRequire) {
  const a = require('./bc78839ccca8df9e5ceeb7fae11b7be2.js'),
    {
      BROADCAST_CHANNEL_NAME: b,
      SERVER: c,
      CLIENT: d,
      ACTION_SWITCH_TO_MINI_PROGRAM_DEV: e,
      ACTION_SWITCH_TO_WEB_DEV: f
    } = require('./2a5f467fee8074e6717476c4358ed82b.js'),
    g = require('./cc2c2970ff81ae4a83123e81ee123da2.js'),
    h = require('./a8c87029da0fa06e986298d447ab0fe2.js'),
    i = require('./eb1fe4da47d7ed10884f8b039b058c5b.js'),
    j = require('./84858de8a097c9cf84ff2c2e3d86e2a9.js'),
    k = require('./0634ee2ebd3e560d9d4804ecc960160f.js'),
    l = require('./56c390e04c10e91a4aa2a2c19d9a885d.js')
  let m
  module.exports = {
    init: () => {
      ;(m = new BroadcastChannel(b)),
        (m.onmessage = b => {
          const { data: c } = b
          switch (c.action) {
            case k.PROJECT_OPEN_PROJECT: {
              a.dispatch(g.openProject(c.id))
              break
            }
            case k.PROJECT_CREATE_PROJECT_OPEN: {
              global.Win.show(),
                a.dispatch(g.createProjectRequest((c || {}).options))
              break
            }
            case k.PROJECT_CREATE_MINICODE_OPEN: {
              global.Win.show()
              let b, d
              c && ((b = c.type), (d = c.data)),
                a.dispatch(g.createMiniCodeRequest(b, d))
              break
            }
            case k.PROJECT_SELECT_PROJECT_OPEN:
            case e: {
              global.Win.show(),
                a.dispatch(h.setMainWindow(l.MAIN_WINDOW_TYPE.SELECT_PROJECT))
              break
            }
            case f: {
              i.openWebDebugger()
              break
            }
            default:
          }
        })
    }
  }
})(require('lazyload'), require)
