jQuery(document).ready(function(l){function e(){var e=l("#av_cronjob_enable"),a=e.parents("fieldset").find(":text, :checkbox").not(e);"function"==typeof l.fn.prop?a.prop("disabled",!e.prop("checked")):a.attr("disabled",!e.attr("checked"))}av_nonce=av_settings.nonce,av_theme=av_settings.theme,av_msg_1=av_settings.msg_1,av_msg_2=av_settings.msg_2,av_msg_3=av_settings.msg_3,l("#av_manual_scan a.button").click(function(){return l.post(ajaxurl,{action:"get_ajax_response",_ajax_nonce:av_nonce,_action_request:"get_theme_files"},function(e){if(e&&e.nonce&&e.nonce==av_nonce){var n="";av_files=e.data,av_files_total=av_files.length,av_files_loaded=0,jQuery.each(av_files,function(e,a){n+='
'+a+"
"}),l("#av_manual_scan .alert").empty(),l("#av_manual_scan .output").empty().append(n),function c(e){var i=parseInt(e||0),a=av_files[i];l.post(ajaxurl,{action:"get_ajax_response",_ajax_nonce:av_nonce,_theme_file:a,_action_request:"check_theme_file"},function(e){var a=l("#av_template_"+i);if(e){if(!e.nonce||e.nonce!=av_nonce)return;a.addClass("danger");var n,t=e.data,_=t.length;for(n=0;n<_;n+=3){parseInt(t[n]);var o=t[n+2],s=t[n+1].replace(/@span@/g,"").replace(/@\/span@/g,"");a.text(),a.append(''+av_msg_1+" "+s+"
"),l("#"+o).click(function(){return l.post(ajaxurl,{action:"get_ajax_response",_ajax_nonce:av_nonce,_file_md5:l(this).attr("id"),_action_request:"update_white_list"},function(e){if(e&&e.nonce&&e.nonce==av_nonce){var a=l("#"+e.data[0]).parent();a.parent().children().length<=1&&a.parent().hide("slow").remove(),a.hide("slow").remove()}}),!1})}}else a.addClass("done");av_files_loaded++,av_files_loaded>=av_files_total?l("#av_manual_scan .alert").text(av_msg_3).fadeIn().fadeOut().fadeIn().fadeOut().fadeIn().animate({opacity:1},500).fadeOut("slow",function(){l(this).empty()}):c(i+1)})}()}}),!1}),l("#av_cronjob_enable").click(e),e()});