'use strict';(function(c,a){a.body.on("submit.tb_option",".tb_optin_form",function(a){a.preventDefault();const b=c(this);b.hasClass("processing")||(b.addClass("processing"),c.ajax({url:b.attr("action"),type:"POST",data:b.serialize(),success:function(a){a.success?"s1"===b.data("success")?window.location.href=a.data.redirect:b.fadeOut().closest(".module").find(".tb_optin_success_message").fadeIn():window.console&&console.log(a.data.error)},complete:function(){b.removeClass("processing")}}))})})(jQuery,
Themify);
