import './style.css'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faSearch, faPaperPlane, faCheck, faCog, faSpinner, faChevronUp, faChevronDown, faSlidersH, faBell, faTimes, faExclamationTriangle, faInfoCircle } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { createApp } from 'vue'
import App from './App.vue'
import Toast from 'vue-toastification';
import 'vue-toastification/dist/index.css';
import { initializeMagentoUser } from './globals/user.js';

library.add(faSearch, faPaperPlane, faCheck, faCog, faSpinner, faChevronUp, faChevronDown, faSlidersH, faBell, faTimes, faExclamationTriangle, faInfoCircle)

// Initialize Magento user data before mounting Vue app
initializeMagentoUser();

const app = createApp(App)
app.component('font-awesome-icon', FontAwesomeIcon)
app.use(Toast);
app.mount('#app')


