text: /*
   * Copyright (c) 2020 Tobias Briones.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  import Vue from 'vue';
  import VueRouter from 'vue-router';
  import App from './App.vue';
  import store from './store';
  import router from './routes';
  import { auth } from './firebase';
  import { BootstrapVue, IconsPlugin } from 'bootstrap-vue';
  import 'bootstrap/dist/css/bootstrap.css';
  import 'bootstrap-vue/dist/bootstrap-vue.css';
  
  let app = null;
  
  Vue.use(VueRouter);
  
  // Install BootstrapVue
  Vue.use(BootstrapVue);
  
  // Optionally install the BootstrapVue icon components plugin
  Vue.use(IconsPlugin);
  
  Vue.config.productionTip = false;
  
  auth.onAuthStateChanged(() => {
    if (!app) {
      app = new Vue(
        {
          router,
          store,
          render: h => h(App)
        }
      ).$mount('#app');
    }
  });