window.showAlertWithResult = async (title, text, icon, confirmButtonText, cancelButtonText, confirmButtonColor) => {
    const result = await Swal.fire({
        title: title,
        text: text,
        icon: icon,
        showCancelButton: true,
        confirmButtonText: confirmButtonText,
        cancelButtonText: cancelButtonText,
        confirmButtonColor: confirmButtonColor
    });
    return result.isConfirmed;
};