window.addEventListener("load",function(){function e(){var e=!0,r=document.querySelector(".footer-newsletter-input");return e=t(r.value),e||(r.classList.add("form-erro"),document.querySelector(".footer-newsletter-button").classList.add("form-erro")),e}function t(e){var t=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return t.test(e)}var r=document.querySelector(".footer-newsletter-form");r.onsubmit=e});