'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('./0634ee2ebd3e560d9d4804ecc960160f.js'),
    b = require('uuid/v4')
  module.exports = {
    setProjectInfo: b => {
      return { type: a.INFO_SET_PROJECT, data: b }
    },
    setUploadInfo: b => {
      return { type: a.INFO_SET_UPLOAD, data: b }
    },
    setConfirmInfo: b => {
      return { type: a.INFO_SET_CONFIRM, data: b }
    },
    setShareInfo: b => {
      return { type: a.INFO_SET_SHARE, data: b }
    },
    setUploadPluginDocInfo: b => {
      return { type: a.INFO_SET_UPLOAD_PLUGIN_DOC, data: b }
    },
    showConfirmPopup: c => d =>
      new Promise(e => {
        const f = c.id || b()
        d({
          type: a.INFO_SHOW_CONFIRM_POPUP,
          data: _extends({}, c, {
            id: f,
            resolve: b => {
              d({ type: a.INFO_CLOSE_CONFIRM_POPUP, id: f }), e(b)
            }
          })
        })
      }),
    showError: b => {
      return c => {
        c({ type: a.INFO_SHOW_ERROR, data: { message: b.toString() } })
      }
    },
    showSuccessTip: b => {
      return { type: a.INFO_SHOW_SUCCESS, data: b }
    },
    openEditorFile: b => {
      return { type: a.INFO_OPEN_EDITOR_FILE, data: b }
    },
    setAddDevicePopUp: b => {
      return { type: a.INFO_ADD_DEVICE_POPUP, data: b }
    }
  }
})(require('lazyload'), require)
