import './bootstrap';

// Importar Bootstrap de forma síncrona
import * as bootstrap from 'bootstrap';

// Expor Bootstrap globalmente
window.bootstrap = bootstrap;

// Inicializar dropdowns quando o DOM estiver pronto
document.addEventListener('DOMContentLoaded', function() {
    // Inicializar todos os dropdowns
    var dropdownElementList = document.querySelectorAll('[data-bs-toggle="dropdown"]');
    dropdownElementList.forEach(function(dropdownToggleEl) {
        new bootstrap.Dropdown(dropdownToggleEl);
    });
});
