'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var index = require('./components/index.cjs');
var index$1 = require('./theme/cssinjs/index.cjs');
require('./version/index.cjs');
var index$2 = require('./components/message/index.cjs');
var Notification = require('./components/notification/src/Notification.cjs');
var index$3 = require('./components/modal/index.cjs');
var version = require('./version/version.cjs');

const install = function(app) {
  Object.keys(index).forEach((key) => {
    if (key === "theme")
      return;
    const component = index[key];
    if (component.install)
      app.use(component);
  });
  app.use(index$1.cssinjs.StyleProvider);
  app.config.globalProperties.$message = index$2.message;
  app.config.globalProperties.$notification = Notification.default;
  app.config.globalProperties.$info = index$3.Modal.info;
  app.config.globalProperties.$success = index$3.Modal.success;
  app.config.globalProperties.$error = index$3.Modal.error;
  app.config.globalProperties.$warning = index$3.Modal.warning;
  app.config.globalProperties.$confirm = index$3.Modal.confirm;
  app.config.globalProperties.$destroyAll = index$3.Modal.destroyAll;
  return app;
};
var installer = {
  version: version.version,
  install
};

exports.default = installer;
exports.install = install;
//# sourceMappingURL=install.cjs.map
