'use strict';

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

var config = require('../../utils/config.js');
require('../../composables/index.js');
var index = require('./src/index.js');
var useLog = require('../../composables/private/use-log.js');
var version = require('../../version.js');
var index$1 = require('../../composables/use-locale/index.js');

const logger = useLog["default"](void 0);
index["default"].install = (app, opts) => {
  const defaultInstallOpt = {
    cesiumPath: "https://cdn.jsdelivr.net/npm/cesium@latest/Build/Cesium/Cesium.js",
    accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI5Y2U0ZTk2Ni1jNzdkLTQ3OWYtYjVmYS0yMGM3YTk3NjgzMmUiLCJpZCI6Njk5Nywic2NvcGVzIjpbImFzciIsImdjIl0sImlhdCI6MTU0ODA1MTc0OH0.Csy6yyAnv6JSBppH0Ou3ahshqcHFEhP27iOz5gjQMEo"
  };
  const option = Object.assign(defaultInstallOpt, opts);
  if (option.locale) {
    const localeProvides = index$1.localeProviderMaker(opts.locale);
    localeProvides && app.provide(index$1.LocaleInjectionKey, localeProvides);
  }
  app.config.globalProperties.$VueCesium = option;
  config.setConfig(option);
  app.component(index["default"].name, index["default"]);
  if (process.env.NODE_ENV === "development") {
    logger.capsule("VueCesium", `v${version.version}`);
    logger.success("VueCesium  https://github.com/zouyaoji/vue-cesium");
    logger.success("Document  https://zouyaoji.top/vue-cesium");
    logger.success(`If you like it, give it a star reward, ^_^`);
    logger.success(`\u8868\u793A\u8D5E\uFF0C\u7ED9\u5B83\u4E00\u4E2A\u661F\u661F\u5956\u52B1\uFF0C^_^`);
  }
};
const _Viewer = index["default"];
const VcViewer = _Viewer;

exports.VcViewer = VcViewer;
exports["default"] = _Viewer;
//# sourceMappingURL=index.js.map
