$(document).ready(function(){$(".msg--error").hide(),$("#desktop-footer-mailing-list-form").submit(function(s){s.preventDefault();var e=window.location.origin,r=e+"/"+DEFAULT_SUBSCRIBE_LANG+"/subscribe",o=$(this).serialize();return $(".subscribe-form").addClass("progress"),$(".msg--success").text(DEFAULT_SUBSCRIBE_LOADING),$.ajax({url:r,type:"POST",data:o,headers:{"X-CSRF-TOKEN":$('input[name="_token"]').val()},success:function(s,e){console.log(e),0==s.status?($(".subscribe-form").removeClass("progress"),$(".subscribe-form").removeClass("finish"),$(".msg--error").show(),$(".msg--error").text(s.email)):($(".msg--error").hide(),setTimeout(function(){$(".subscribe-form").removeClass("progress").addClass("finish"),$(".msg--success").text("Successfully subscribed.")},3e3),$(".subscribe-input").val(""),console.log("Thank You For Subscribing"))},error:function(s,e,r){$(".msg--error").show(),console.log(e,r)}}),!1})});