import * as index from './components/index.mjs';
import { cssinjs } from './theme/cssinjs/index.mjs';
import './version/index.mjs';
import { message } from './components/message/index.mjs';
import api from './components/notification/src/Notification.mjs';
import { Modal } from './components/modal/index.mjs';
import { version } from './version/version.mjs';

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(cssinjs.StyleProvider);
  app.config.globalProperties.$message = message;
  app.config.globalProperties.$notification = api;
  app.config.globalProperties.$info = Modal.info;
  app.config.globalProperties.$success = Modal.success;
  app.config.globalProperties.$error = Modal.error;
  app.config.globalProperties.$warning = Modal.warning;
  app.config.globalProperties.$confirm = Modal.confirm;
  app.config.globalProperties.$destroyAll = Modal.destroyAll;
  return app;
};
var installer = {
  version,
  install
};

export { installer as default, install };
//# sourceMappingURL=install.mjs.map
