!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=367)}({367:function(e,t){var n;(n=jQuery)((function(){n("#bulk-action-selector-top, #bulk-action-selector-bottom").change((function(e){var t=n(this),i=t.closest(".tablenav").find(".redirection-category-filter"),r=t.closest(".tablenav").find(".category-filter-submit");"bulk_add_redirection_category"===t.val()?(i.data("oldval",i.val()).val("none").insertAfter(t),r.addClass("hidden")):(i.insertBefore(r),i.data("oldval")&&(i.val(i.data("oldval")),i.data("oldval","")),r.removeClass("hidden"))})),n(".add-redirection-category-button").on("click",(function(){var e=n(this),t=e.siblings(".add-redirection-category-input");e.addClass("disabled"),t.prop("disabled",!0),n.ajax({url:ajaxurl,type:"POST",dataType:"xml",data:{action:"add-rank_math_redirection_category","_ajax_nonce-add-rank_math_redirection_category":rankMath.add_redirection_category_nonce,newrank_math_redirection_category:t.val(),newrank_math_redirection_category_parent:-1}}).always((function(i){t.val(""),e.removeClass("disabled"),t.prop("disabled",!1);var r=i.getElementsByTagName("response_data")[0].innerHTML.slice(9,-3);n(r).appendTo(e.siblings(".cmb2-checkbox-list")).find("input").prop("name","redirection_category[]")}))})),n(".add-redirection-category-input").on("keydown",(function(e){if(13==e.keyCode)return e.preventDefault(),e.stopPropagation(),n(this).siblings(".add-redirection-category-button").trigger("click"),!1})),n("#rank-math-contextual-help-link").on("click",(function(e){e.preventDefault(),n("#contextual-help-link").click()})),n("#csv-panel-export-redirections").on("submit",(function(){var e=n(this);e.find('button[type="submit"]').prop("disabled",!0).siblings(".input-loading").css("visibility","visible"),setTimeout((function(){e.find('button[type="submit"]').prop("disabled",!1).siblings(".input-loading").css("visibility","hidden")}),5e3)})),n("#panel-import").on("submit",(function(){return confirm(rankMath.confirmRedirectionsCsvImport)})),n("#csv-import-redirections-cancel").on("click",(function(){return confirm(rankMath.confirmRedirectionsCsvCancel)})),n("#csv-import-redirections-progress-details").length&&setTimeout((function e(){n.ajax({url:ajaxurl,type:"GET",dataType:"html",data:{action:"csv_import_redirections_progress",_ajax_nonce:rankMath.csvProgressNonce}}).done((function(t){n("#csv-import-redirections-progress-details").html(t),n(t).find("#csv-import-progress-value").length?setTimeout(e,3e3):n("#csv-import-cancel").addClass("disabled").prop("disabled",!0).siblings(".input-loading").hide()}))}),3e3)}))}});