jQuery(document).ajaxComplete(function(){jQuery(".wpcf7-form .fusion-slider-loading").hide(),jQuery(".wpcf7-response-output").each(function(){jQuery(this).hasClass("wpcf7-mail-sent-ng")&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert"),jQuery("body").hasClass("rtl")?jQuery(this).append('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-exclamation-triangle"></i></span>'):jQuery(this).prepend('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-exclamation-triangle"></i></span>')),jQuery(this).hasClass("wpcf7-validation-errors")&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert"),jQuery("body").hasClass("rtl")?jQuery(this).append('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-exclamation-triangle"></i></span>'):jQuery(this).prepend('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-exclamation-triangle"></i></span>')),jQuery(this).hasClass("wpcf7-mail-sent-ok")&&!jQuery(this).find(".alert-icon").length&&(jQuery(this).addClass("fusion-alert"),jQuery("body").hasClass("rtl")?jQuery(this).append('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-check-circle"></i></span>'):jQuery(this).prepend('<button class="close toggle-alert" aria-hidden="true" data-dismiss="alert" type="button">&times;</button><span class="alert-icon"><i class="fa fa-lg fa-check-circle"></i></span>'))}),jQuery(".wpcf7-response-output.fusion-alert .close").click(function(a){a.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()})});