import './bootstrap';

import Alpine from 'alpinejs';

window.Alpine = Alpine;

Alpine.start();

const revenueRoot = document.getElementById('revenue-chart-root');
if (revenueRoot) {
    import('./dashboard-revenue-chart.js')
        .then(({ mountRevenueChart }) => mountRevenueChart(revenueRoot))
        .catch(() => {});
}
