/**
 * Configuración global de SweetAlert2
 *
 * Deshabilita la integración automática con jQuery para evitar errores
 * cuando jQuery no está presente en el proyecto.
 */

import Swal from 'sweetalert2';

// Configurar SweetAlert2 para NO usar jQuery
if (typeof window !== 'undefined') {
    // @ts-ignore - Deshabilitar integración con jQuery
    if (Swal.jquery) {
        // @ts-ignore
        Swal.jquery = undefined;
    }

    // Configuración global por defecto
    Swal.mixin({
        // Configuraciones por defecto
        confirmButtonColor: '#3085d6',
        cancelButtonColor: '#d33',
    });
}

export default Swal;
