jQuery(document).ajaxComplete(function(){var s="";jQuery(".wpcf7-form .fusion-slider-loading").hide(),jQuery(".wpcf7-response-output").each(function(){var e=jQuery(this).closest(".wpcf7-form");(e.hasClass("invalid")||e.hasClass("unaccepted")||e.hasClass("spam")||e.hasClass("failed"))&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert error fusion-danger"),jQuery(this).hasClass("alert-dismissable")&&(s='<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button>'),s+='<div class="fusion-alert-content-wrapper"><span class="alert-icon"><i class="fa-lg fa fa-exclamation-triangle" aria-hidden="true"></i></span><span class="fusion-alert-content">'+jQuery(this).html()+"</span>",jQuery(this).html(s)),e.hasClass("sent")&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert success fusion-success"),jQuery(this).hasClass("alert-dismissable")&&(s='<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button>'),s+='<div class="fusion-alert-content-wrapper"><span class="alert-icon"><i class="fa-lg fa fa-check-circle" aria-hidden="true"></i></span><span class="fusion-alert-content">'+jQuery(this).html()+"</span>",jQuery(this).html(s))}),jQuery(".wpcf7-response-output.fusion-alert .close").click(function(s){s.preventDefault(),jQuery(this).parent().slideUp()})}),jQuery(document).ready(function(){jQuery('<div class="fusion-slider-loading"></div>').insertAfter(".wpcf7 .ajax-loader"),jQuery(".wpcf7 .ajax-loader").remove(),jQuery(".wpcf7-form .wpcf7-submit").on("click",function(){jQuery(this).parents(".wpcf7-form").find(".fusion-slider-loading").show()})});