'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.preload = exports.install = exports.version = exports.Map = exports.Base = undefined;

var _base = require('./base');

var _base2 = _interopRequireDefault(_base);

var _map = require('./map');

var _map2 = _interopRequireDefault(_map);

var _version = require('./version');

var _version2 = _interopRequireDefault(_version);

var _preload = require('./preload');

var _preload2 = _interopRequireDefault(_preload);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

/* @remove-on-es-build-begin */
// this file is not used if use https://github.com/ant-design/babel-plugin-import
var ENV = process.env.NODE_ENV;
if (ENV !== 'production' && ENV !== 'test' && typeof console !== 'undefined' && console.warn && typeof window !== 'undefined') {
  console.warn('You are using a whole package of pjtools, ' + 'please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.');
}
/* @remove-on-es-build-end */

var components = [_base2['default'], _map2['default']];

var install = function install(Vue) {
  components.map(function (component) {
    Vue.use(component);
  });

  Vue.prototype.$preload = _preload2['default'];
};

/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue);
}

exports.Base = _base2['default'];
exports.Map = _map2['default'];
exports.version = _version2['default'];
exports.install = install;
exports.preload = _preload2['default'];
exports['default'] = {
  version: _version2['default'],
  install: install
};