Ubuntu
function secupressDisableAjaxButton(a,b,c){var d,e=a.attr("data-loading-i18n"),f=a.get(0).nodeName.toLowerCase();c=void 0!==c?c:"global",SecuPress.doingAjax[c]=!0,f="button"===f||"input"===f,void 0!==e&&e&&(f?(d=a.val(),void 0!==d&&d?a.val(e):a.find(".text").length?a.find(".text").text(e):a.text(e)):a.find(".text").length?a.find(".text").text(e):a.text(e),void 0!==b&&b||(b=e)),f?a.addClass("working").attr({disabled:"disabled","aria-disabled":"true"}):a.addClass("disabled working").attr("aria-disabled","true"),wp.a11y&&wp.a11y.speak&&void 0!==b&&b&&wp.a11y.speak(b)}function secupressEnableAjaxButton(a,b,c){var d,e,f;void 0!==a&&a&&a.length&&(d=a.attr("data-original-i18n"),e=a.get(0).nodeName.toLowerCase(),e="button"===e||"input"===e,void 0!==d&&d&&(e?(f=a.val(),void 0!==f&&f?a.val(d):a.find(".text").length?a.find(".text").text(d):a.text(d)):a.find(".text").length?a.find(".text").text(d):a.text(d)),e?a.removeClass("working").removeAttr("disabled aria-disabled"):a.removeClass("disabled working").removeAttr("aria-disabled")),wp.a11y&&wp.a11y.speak&&void 0!==b&&b&&wp.a11y.speak(b),c=void 0!==c?c:"global",SecuPress.doingAjax[c]=!1}function secupressPreAjaxCall(a,b,c){return b.preventDefault(),!(void 0===a||!a)&&(!("keyup"===b.type&&!secupressIsSpaceOrEnterKey(b))&&(c=void 0!==c?c:"global",void 0===SecuPress.doingAjax[c]&&(SecuPress.doingAjax[c]=!1),!SecuPress.doingAjax[c]&&a.replace("admin-post.php","admin-ajax.php")))}function secupressDisplayAjaxError(a,b,c){void 0===b&&(b=SecuPressi18nModules.unknownError),swal2(jQuery.extend({},SecuPress.swal2Defaults,{title:SecuPressi18nModules.error,html:b,type:"error"})),c=void 0!==c?c:"global",secupressEnableAjaxButton(a,b,c)}function secupressDisplayAjaxSuccess(a,b,c){void 0===b&&(b=null),swal2(jQuery.extend({},SecuPress.swal2Defaults,{title:SecuPressi18nModules.done,html:b,type:"success",timer:4e3})),c=void 0!==c?c:"global",secupressEnableAjaxButton(a,b,c)}var SecuPress={doingAjax:{},deletedRowColor:"#FF9966",addedRowColor:"#CCEEBB",swal2Defaults:{title:SecuPressi18nModules.confirmTitle,confirmButtonText:SecuPressi18nModules.confirmText,cancelButtonText:SecuPressi18nModules.cancelText,type:"warning",allowOutsideClick:!0,customClass:"wpmedia-swal2 secupress-swal2"},swal2ConfirmDefaults:{showCancelButton:!0,closeOnConfirm:!1},expandButton:''};if(0===SecuPressi18nModules.alreadyScanned){var modal_title='',modal_content;modal_content='',modal_content+=SecuPressi18nModules.firstScanTitle,modal_content+="
",modal_content+='',modal_content+=SecuPressi18nModules.firstScanText,modal_content+="
",modal_content+='',modal_content+='',modal_content+='',modal_content+='',modal_content+="",modal_content+='',modal_content+=SecuPressi18nModules.firstScanButton,modal_content+="",modal_content+="",modal_content+="
",swal2(jQuery.extend({},SecuPress.swal2Defaults,{title:modal_title,html:modal_content,type:null,width:400,showConfirmButton:!1,showCloseButton:!0,showCancelButton:!1,customClass:"wpmedia-swal2 secupress-swal2 secupress-swal-dark-header secupress-text-center"}))}!function(a,b,c,d){"function"==typeof document.createElement("input").checkValidity?a(".affected-role-row :checkbox").on("click.secupress",function(){this.setCustomValidity(""),0===a('[name="'+this.name+'"]:checked').length&&(this.setCustomValidity(SecuPressi18nModules.selectOneRoleMinimum),a("#secupress-module-form-settings [type='submit']").first().trigger("click.secupress"))}):a(".affected-role-row p.warning").removeClass("hide-if-js")}(jQuery,document,window),function(a,b,c,d){a(".radiobox").on("click.secupress",function(){a('[name="'+this.name+'"]:checked').not(this).removeAttr("checked").trigger("change")})}(jQuery,document,window),function(a,b,c,d){var e=a("#wpbody-content").find('[class*="depends-"]'),f={},g={};a(".secupress-setting-row_move-login_slug-login").on("secupressbeforeshow secupressinitshow",function(){a("#move-login_slug-login").attr({required:"required","aria-required":"true"})}).on("secupressafterhide secupressinithide",function(){a("#move-login_slug-login").removeAttr("required aria-required")}),e.each(function(){var b=a(this).attr("class").replace(/^\s+|\s+$/g,"").replace(/\s+/," ").split(" ");a.each(b,function(b,c){var d,e,h,i,j=!1;if(0!==c.indexOf("depends-"))return!0;if(c=c.substr(8),void 0!==f[c])return!0;if(f[c]=1,d=a("#"+c),!d.length)return!0;if(e=d.get(0).nodeName.toLowerCase(),"input"===e?"checkbox"!==(h=d.attr("type").toLowerCase())&&"radio"!==h||(j=!0):"button"===e&&(j=!0),!j)return!0;if("button"===e)d.on("click.secupress",function(){var b=a(this).attr("id");a(this).toggleClass("open"),a(".depends-"+b).toggle(250)});else if("radio"===h){if(i=d.attr("name"),void 0!==g[i])return!0;g[i]=1,a('[name="'+i+'"]').on("change init.secupress",function(b){var c=a(this),d=a(".depends-"+c.attr("id")),e=[],f="init"===b.type&&"secupress"===b.namespace?0:250;d.not(":visible").trigger("secupressbeforeshow").show(f,function(){a(this).trigger("secupressaftershow")}),a('[name="'+c.attr("name")+'"]').not(c).each(function(){e.push(".depends-"+a(this).attr("id").replace(/^\s+|\s+$/g,""))}),a(e.join(",")).not(d).filter(":visible").trigger("secupressbeforehide").hide(f,function(){a(this).trigger("secupressafterhide")})}).filter(":checked").trigger("init.secupress")}else"checkbox"===h&&(d.on("change init.secupress",function(b){var c=a(this),d=c.attr("id"),e=a(".depends-"+d),f="init"===b.type&&"secupress"===b.namespace?0:250;if(!e.length)return!0;c.is(":checked")?e.not(":visible").trigger("secupressbeforeshow").show(f,function(){a(this).trigger("secupressaftershow")}):e.filter(":visible").each(function(){var b=a(this),c=b.attr("class").replace(/^\s+|\s+$/g,"").replace(/\s+/," ").split(" "),e=[];a.each(c,function(a,b){"depends-"+d!==b&&0===b.indexOf("depends-")&&e.push("#"+b.substr(8)+":checked")}),e=e.join(","),a(e).length||b.trigger("secupressbeforehide").hide(f,function(){a(this).trigger("secupressafterhide")})})}).filter(":checked").trigger("init.secupress"),d.is(":checked")?a(".depends-"+c).filter(":visible").trigger("secupressinitshow"):a(".depends-"+c).not(":visible").trigger("secupressinithide"))})})}(jQuery,document,window),function(a,b,c,d){function e(b,c){a(c).closest(".secupress-text-label").find(".dynamic-login-url-slug").text(b)}var f={},g={};SecuPressi18nModules.moveLoginNonce&&a(".dynamic-login-url-slug").closest(".secupress-text-label").find('[type="text"]').on("keyup",function(b){var d,h,i,j=[16,17,18,224,27];return-1===a.inArray(b.which,j)&&(d=this,h=d.value.replace(/^\s+|\s+$/g,""),i=d.id.replace("move-login_slug-",""),void 0!==typeof g[d.id]&&c.clearTimeout(g[d.id]),"login"!==i&&(h=""===h?i:h),"string"==typeof f[h]?(e(f[h],d),!0):void(g[d.id]=c.setTimeout(function(){var b=a(d).addClass("ui-autocomplete-loading"),c={action:"sanitize_move_login_slug",slug:h,default:i,_wpnonce:SecuPressi18nModules.moveLoginNonce};a.getJSON(ajaxurl,c).done(function(c){a.isPlainObject(c)&&c.success?(f[h]=c.data,e(c.data,b)):e("--"+SecuPressi18nModules.error+"--",b)}).fail(function(){e("--"+SecuPressi18nModules.error+"--",b)}).always(function(){b.removeClass("ui-autocomplete-loading")})},300)))})}(jQuery,document,window),function(a,b,c,d){function e(b){a("#secupress-available-backups").text(b.data.countText)}function f(){0===a("#form-delete-backups").find(".secupress-large-row").length?(a("#form-delete-backups").hide(),a("#secupress-no-backups").show()):(a("#secupress-no-backups").hide(),a("#form-delete-backups").show())}function g(b,c){secupressDisableAjaxButton(b,SecuPressi18nModules.deletingAllText,"backup"),a.getJSON(c).done(function(c){var d,e;a.isPlainObject(c)&&c.success?(swal2.close(),d=b.closest("form").find("fieldset"),e=d.children("legend"),d.text("").prepend(e),f(),secupressEnableAjaxButton(b,SecuPressi18nModules.deletedAllText,"backup")):secupressDisplayAjaxError(b,SecuPressi18nModules.deleteAllImpossible,"backup")}).fail(function(){secupressDisplayAjaxError(b,null,"backup")})}function h(b,c){secupressDisableAjaxButton(b,SecuPressi18nModules.deletingOneText,"backup"),a.getJSON(c).done(function(c){a.isPlainObject(c)&&c.success?(swal2.close(),b.closest(".secupress-large-row").css("backgroundColor",SecuPress.deletedRowColor).hide("normal",function(){a(this).remove(),e(c),f(),SecuPress.doingAjax.backup=!1}),wp.a11y&&wp.a11y.speak&&wp.a11y.speak(SecuPressi18nModules.deletedOneText)):secupressDisplayAjaxError(b,SecuPressi18nModules.deleteOneImpossible,"backup")}).fail(function(){secupressDisplayAjaxError(b,null,"backup")})}function i(b,c){secupressDisableAjaxButton(b,SecuPressi18nModules.backupingText,"backup"),a.post(c,b.closest("form").serializeArray()).done(function(c){a.isPlainObject(c)?c.success?(a(c.data.elemRow).addClass("hidden").css("backgroundColor",SecuPress.addedRowColor).insertAfter("#form-delete-backups legend").show("normal",function(){a(this).css("backgroundColor","")}),e(c),f(),secupressEnableAjaxButton(b,SecuPressi18nModules.backupedText,"backup")):(c.data=c.data?c.data:SecuPressi18nModules.backupImpossible,secupressDisplayAjaxError(b,c.data,"backup")):secupressDisplayAjaxError(b,SecuPressi18nModules.backupImpossible,"backup")}).fail(function(){secupressDisplayAjaxError(b,null,"backup")})}function j(b,c){secupressDisableAjaxButton(b,SecuPressi18nModules.backupingText,"backup"),a.post(c,b.closest("form").serializeArray()).done(function(c){a.isPlainObject(c)?c.success?(a(c.data.elemRow).addClass("hidden").css("backgroundColor",SecuPress.addedRowColor).insertAfter("#form-delete-backups legend").show("normal",function(){a(this).css("backgroundColor","")}),e(c),f(),a("#ignored_directories").val(c.data.ignoredFiles),secupressEnableAjaxButton(b,SecuPressi18nModules.backupedText,"backup")):(c.data=c.data?c.data:SecuPressi18nModules.backupImpossible,secupressDisplayAjaxError(b,c.data,"backup")):secupressDisplayAjaxError(b,SecuPressi18nModules.backupImpossible,"backup")}).fail(function(){secupressDisplayAjaxError(b,null,"backup")})}a("#submit-delete-backups").on("click.secupress",function(b){var d=a(this),e=secupressPreAjaxCall(d.closest("form").attr("action"),b);e&&("function"==typeof c.swal2?swal2(a.extend({},SecuPress.swal2Defaults,SecuPress.swal2ConfirmDefaults,{text:SecuPressi18nModules.confirmDeleteBackups,confirmButtonText:SecuPressi18nModules.yesDeleteAll,type:"question",reverseButtons:!0})).then(function(a){a&&(swal2.enableLoading(),g(d,e))}):c.confirm(SecuPressi18nModules.confirmTitle+"\n"+SecuPressi18nModules.confirmDeleteBackups)&&g(d,e))}).removeAttr("disabled aria-disabled"),a("body").on("click.secupress keyup",".a-delete-backup",function(b){var d=a(this),e=secupressPreAjaxCall(d.attr("href"),b);e&&("function"==typeof c.swal2?swal2(a.extend({},SecuPress.swal2Defaults,SecuPress.swal2ConfirmDefaults,{text:SecuPressi18nModules.confirmDeleteBackup,confirmButtonText:SecuPressi18nModules.yesDeleteOne,type:"question",reverseButtons:!0})).then(function(a){a&&(swal2.enableLoading(),h(d,e))}):c.confirm(SecuPressi18nModules.confirmTitle+"\n"+SecuPressi18nModules.confirmDeleteBackup)&&h(d,e))}),a("#submit-backup-db").on("click.secupress",function(b){var c=a(this),d=secupressPreAjaxCall(c.closest("form").attr("action"),b);d&&i(c,d)}).removeAttr("disabled aria-disabled"),a("#submit-backup-files").on("click.secupress",function(b){var c=a(this),d=secupressPreAjaxCall(c.closest("form").attr("action"),b);d&&j(c,d)}).removeAttr("disabled aria-disabled")}(jQuery,document,window),function(a,b,c,d){function e(b){var c=a("[data-code-country='"+b+"']").length,d=a("[data-code-country='"+b+"']:checked").length;d===c?a("[value='continent-"+b+"']").prop({checked:!0,indeterminate:!1}).css("-webkit-appearance","none"):0===d?a("[value='continent-"+b+"']").prop({checked:!1,indeterminate:!1}).css("-webkit-appearance","none"):a("[value='continent-"+b+"']").prop({checked:!1,indeterminate:!0}).css("-webkit-appearance","checkbox")}a(".continent input").on("click.secupress",function(b){var c=a(this),d=c.css("-webkit-appearance","none").val().replace("continent-","");a(".depends-geoip-system_type_blacklist.depends-geoip-system_type_whitelist [data-code-country='"+d+"']").prop("checked",c.is(":checked"))}),a("[data-code-country]").on("click.secupress",function(b){e(a(this).data("code-country"))}),a(".continent input").each(function(b){e(a(this).val().replace("continent-",""))}),a(".expand_country").on("click.secupress",function(b){a(this).next("fieldset").toggleClass("hide-if-js")})}(jQuery,document,window),function(a,b,c,d){function e(a,b){var c;d!==a&&a||(a=SecuPressi18nModules.noBannedIPs),k.find("#secupress-banned-ips-list").html(''+a+""),(d===b||b)&&(k.find("#secupress-clear-ips-button").next().addBack().addClass("hidden"),c=k.find("#form-search-ip").addClass("hidden"),c.find("#reset-banned-ips-list").next().addBack().addClass("hidden"),c.find("#secupress-search-banned-ip").val(""))}function f(b,c){var f=k.find("#secupress-banned-ips-list"),g='%ip% (%time%)'+SecuPressi18nModules.delete+' ',h=!a("#reset-banned-ips-list").hasClass("hidden"),i="";if((d===c||c)&&(c=!0,f.html("")),d===b||!b.length)return void(c&&("string"==typeof c?e(c):h?e(SecuPressi18nModules.IPnotFound,!1):e()));a.each(b,function(a,b){i+=g.replace(/%ip%/g,b.ip).replace(/%time%/g,b.time).replace(/%unban_url%/g,b.unban_url)}),f.append(i)}function g(b,c){var d={ip:a("#secupress-ban-ip").val()};if(!d.ip)return void h(b,c);secupressDisableAjaxButton(b,null,"ban-ip"),a.getJSON(c,d).done(function(c){var d;return a.isPlainObject(c)&&c.data&&a.isPlainObject(c.data)?c.success?(k.find("#secupress-banned-ips-list").children("#no-ips").remove(),f(c.data.tmplValues,!1),k.find("#form-search-ip").removeClass("hidden"),k.find("#secupress-clear-ips-button").next().addBack().removeClass("hidden"),void secupressDisplayAjaxSuccess(b,c.data.message,"ban-ip")):(d=c.data.message?c.data.message:null,void secupressDisplayAjaxError(b,d,"ban-ip")):void secupressDisplayAjaxError(b,SecuPressi18nModules.error,"ban-ip")}).fail(function(){secupressDisplayAjaxError(b,null,"ban-ip")})}function h(b,c){swal2(a.extend({},SecuPress.swal2Defaults,SecuPress.swal2ConfirmDefaults,{title:i.find('[for="secupress-ban-ip"]').text(),confirmButtonText:b.data("original-i18n"),html:i,type:"info"})).then(function(a){a&&(swal2.enableLoading(),g(b,c))})}var i,j,k=a("#banned-ips-row");k.length&&(k.find("button").removeAttr("disabled aria-disabled"),i=k.find("#form-ban-ip").remove(),j=i.attr("action"),i=i.children().wrapAll("").parent(),i.find("[type='submit']").remove(),k.on("submit","#form-search-ip",function(c){var d,e,f=a(this),g=f.find("#secupress-search-banned-ip"),h=secupressPreAjaxCall(b.location.href,c,"ban-ip"),i=g.val();h&&i&&(d=g.next(),e=f.serializeArray(),secupressDisableAjaxButton(d,null,"ban-ip"),k.load(h+" #banned-ips-row > th, #banned-ips-row > td",e,function(){k.find("#form-ban-ip").remove(),k.find("#secupress-search-banned-ip").focus(),secupressEnableAjaxButton(k.find("#secupress-search-banned-ip"),SecuPressi18nModules.searchResults,"ban-ip")}))}),k.on("click.secupress keyup","#reset-banned-ips-list",function(c){var d=a(this),e=secupressPreAjaxCall(b.location.href,c,"ban-ip");e&&(secupressDisableAjaxButton(d,null,"ban-ip"),k.load(e+" #banned-ips-row > th, #banned-ips-row > td",function(){k.find("#form-ban-ip").remove(),k.find("#secupress-search-banned-ip").focus(),secupressEnableAjaxButton(d,SecuPressi18nModules.searchReset,"ban-ip")}))}),k.on("click.secupress keyup","#secupress-ban-ip-button",function(b){var c=a(this),d=secupressPreAjaxCall(j,b,"ban-ip");d&&h(c,d)}),k.on("click.secupress keyup",".a-unban-ip",function(b){var c=a(this),d=secupressPreAjaxCall(c.attr("href"),b,"ban-ip");d&&(secupressDisableAjaxButton(c,null,"ban-ip"),a.getJSON(d).done(function(b){var d,f,g;return a.isPlainObject(b)&&b.data&&a.isPlainObject(b.data)?b.success?(f=c.closest(".secupress-large-row"),d=f.parent(),f.remove(),d.children().length||(a("#reset-banned-ips-list").hasClass("hidden")?e():e(SecuPressi18nModules.IPremoved,!1)),void secupressDisplayAjaxSuccess(c,b.data.message,"ban-ip")):(g=b.data.message?b.data.message:null,void secupressDisplayAjaxError(c,g,"ban-ip")):void secupressDisplayAjaxError(c,SecuPressi18nModules.error,"ban-ip")}).fail(function(){secupressDisplayAjaxError(c,null,"ban-ip")}))}),k.on("click.secupress keyup","#secupress-clear-ips-button",function(b){var c=a(this),d=secupressPreAjaxCall(c.attr("href"),b,"ban-ip");d&&(secupressDisableAjaxButton(c,null,"ban-ip"),a.getJSON(d).done(function(b){var d;c.siblings("#secupress-banned-ips-list");return a.isPlainObject(b)&&b.data&&a.isPlainObject(b.data)?b.success?(e(),void secupressDisplayAjaxSuccess(c,b.data.message,"ban-ip")):(d=b.data.message?b.data.message:null,void secupressDisplayAjaxError(c,d,"ban-ip")):void secupressDisplayAjaxError(c,SecuPressi18nModules.error,"ban-ip")}).fail(function(){secupressDisplayAjaxError(c,null,"ban-ip")}))}))}(jQuery,document,window),function(a){var b,c={},d={},e=a(".secupress-textarea-container");d.msie=/msie/.test(navigator.userAgent.toLowerCase()),d.opera=/opera/.test(navigator.userAgent.toLowerCase()),b=!(d.msie||d.opera),c.resize=function(d,e){var f,g,h,i,j;return d=d.target||d,f=d.value.length,g=d.offsetWidth,f===d.valLength&&g===d.boxWidth||(b&&(fj.height()&&j.next()?c.handleExpandButton(j,!0):d.scrollHeight<=j.height()&&0===j.next(".secupress-expand-trigger-container").find(".open").length&&c.handleExpandButton(j,!1)),!0},c.textareaParentHeight=function(a,b){return a.css("height",b.outerHeight()+a.outerHeight()-a.height()),!0},c.handleExpandButton=function(a,b){!a.next(".secupress-expand-trigger-container").length&&b?a.after(SecuPress.expandButton).attr("spellcheck",!1):a.next(".secupress-expand-trigger-container").length&&!1===b&&a.next(".secupress-expand-trigger-container").remove()},a.fn.AutoSized=function(b,d){return this.each(function(){"textarea"===this.nodeName.toLowerCase()&&(this.expandMin=b||0,this.expandMax=d||99999,c.resize(this,this.Initialized),this.Initialized||(this.Initialized=!0,a(this).css({"padding-top":"0","padding-bottom":"0"}).on("keyup.secupress focus.secupress",c.resize)))}),this},a.fn.focusToEnd=function(){return this.each(function(){var b=a(this).val();a(this).focus().val("").val(b)})},e.filter(":visible").find("textarea").AutoSized().on("focus.secupress",function(){a(this).parent().addClass("textarea-focused")}).on("blur.secupress",function(){a(this).parent().removeClass("textarea-focused")}),a("#wpbody-content").find(".secupress-setting-row").on("secupressaftershow",function(){a(this).find(".secupress-textarea-container").find("textarea").AutoSized().on("focus.secupress",function(){a(this).parent().addClass("textarea-focused")}).on("blur.secupress",function(){a(this).parent().removeClass("textarea-focused")})}),e.closest("label, .secupress-setting-content-col").on("click.secupress",".secupress-expand-trigger",function(){var b=a(this),d=b.closest(".secupress-expand-trigger-container").prev(".secupress-textarea-container"),e=d.find("textarea");return b.hasClass("open")?(d.css("height","200px"),b.removeClass("open"),b.find(".secupress-expand-txt").text(SecuPressi18nModules.expandTextOpen),b.find("i").removeClass("secupress-icon-angle-up").addClass("secupress-icon-angle-down"),a("html, body").animate({scrollTop:d.offset().top-80},275)):(c.textareaParentHeight(d,e),e.focusToEnd(),b.addClass("open"),b.find(".secupress-expand-txt").text(SecuPressi18nModules.expandTextClose),b.find("i").removeClass("secupress-icon-angle-down").addClass("secupress-icon-angle-up")),!1})}(jQuery),function(a){a("fieldset.secupress-boxed-group").each(function(){var b=a(this);b.data("height",b.outerHeight()).css("height",200).after(SecuPress.expandButton),b.next(".secupress-expand-trigger-container").on("click.secupress",function(){var c=a(this);return c.hasClass("open")?(b.css("height",200),c.removeClass("open"),c.find(".secupress-expand-txt").text(SecuPressi18nModules.expandTextOpen),c.find("i").removeClass("secupress-icon-angle-up").addClass("secupress-icon-angle-down"),a("html, body").animate({scrollTop:b.offset().top-80},275)):(b.css("height",b.data("height")),c.addClass("open"),c.find(".secupress-expand-txt").text(SecuPressi18nModules.expandTextClose),c.find("i").removeClass("secupress-icon-angle-down").addClass("secupress-icon-angle-up")),!1})})}(jQuery),function(a,b,c,d){void 0!==SecuPressi18nModules&&"on"===SecuPressi18nModules.malwareScanStatus&&a(b).on("heartbeat-send",function(a,b){b.secupress_heartbeat_malware_scan="malwareScanStatus"}).on("heartbeat-tick",function(a,b){b.malwareScanStatus&&(c.location.href=SecuPressi18nModules.MalwareScanURI)})}(jQuery,document,window),function(a,b,c,d){var e=c.propHooks.checked;c.propHooks.checked={set:function(a,b,d){var f;return f=void 0===e?a[d]=b:e(a,b,d),c(a).trigger("change.secupress"),f}},c(".secupress-check-group .secupress-row-check").on("click",function(a){var b=c(this).closest(".secupress-check-group"),d=0===b.find(".secupress-row-check").filter(":visible:enabled").not(":checked").length;b.find(".secupress-toggle-check").prop("checked",d)}).first().trigger("change.secupress"),c(".secupress-check-group .secupress-toggle-check").on("click.wp-toggle-checkboxes",function(a){var b=c(this),d=b.closest(".secupress-check-group"),e=b.prop("checked"),f=a.shiftKey||b.data("wp-toggle");d.find(".secupress-toggle-check").prop("checked",function(){var a=c(this);return!a.is(":hidden,:disabled")&&(f?!a.prop("checked"):!!e)}),d.find(".secupress-row-check").prop("checked",function(){return!f&&!!e})})}(window,document,jQuery),function(a,b,c,d){a(".secupress-fieldset-item-checkboxes").each(function(){var b=a(this).find("input"),c=b.closest("label");b.filter(":checked").length&&c.addClass("is-checked"),b.on("change",function(){b.filter(":checked").length?c.addClass("is-checked"):c.removeClass("is-checked")})})}(jQuery,document,window);