"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const key = require("./constants/key.js");
const useGlobalConfig = require("./components/config-provider/src/hooks/use-global-config.js");
const version = require("./version.js");
const makeInstaller = (components = []) => {
  const install = (app, options) => {
    if (app[key.INSTALLED_KEY]) return;
    app[key.INSTALLED_KEY] = true;
    components.forEach((c) => app.use(c));
    if (options) useGlobalConfig.provideGlobalConfig(options, app, true);
  };
  return {
    version: version.version,
    install
  };
};
exports.makeInstaller = makeInstaller;
