'use strict';

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

require('./packages/hooks/index.js');
require('./packages/constants/index.js');
var version = require('./version.js');
var key = require('./packages/constants/key.js');
var index = require('./packages/hooks/use-global-config/index.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) {
      index.provideGlobalConfig({ datePickerLimit: 365, ...options }, app, true);
    } else {
      index.provideGlobalConfig({ datePickerLimit: 365 }, app, true);
    }
  };
  return {
    version: version.version,
    install
  };
};

exports.makeInstaller = makeInstaller;
//# sourceMappingURL=make-installer.js.map
