(()=>{var e={368:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ALLOW_EMPTY_TARGET:()=>i,wpseoCreateRedirect:()=>u,wpseoDeleteRedirect:()=>a,wpseoRemoveNotification:()=>s,wpseoUndoRedirect:()=>c,wpseoUndoRedirectByObjectId:()=>p,wpseoUndoRedirectForObject:()=>d});var o=r(455),n=r.n(o);const i=[410,451];function a(e,t,r,o="plain"){return n()({method:"POST",url:wpApiSettings.root+"yoast/v1/redirects/delete",headers:{"X-WP-Nonce":wpApiSettings.nonce},data:{origin:e,target:t,type:r,format:o}})}function d(e,t){return n()({method:"POST",url:wpApiSettings.root+"yoast/v1/redirects/undo-for-object",headers:{"X-WP-Nonce":wpApiSettings.nonce},data:{obj_id:e,obj_type:t}})}function s(e){jQuery(e).closest(".yoast-notification").fadeOut("slow")}function c(e,t,r,o,n){a(e,t,r).then((e=>{!0===e.success&&s(n)}))}function p(e,t,r){d(e,t).then((e=>{!0===e.success&&s(r)}))}function u(e,t,r,o){var n="";410===parseInt(t,10)||""!==(n=window.prompt(wpseoPremiumStrings.enter_new_url.replace("%s",e)))?jQuery.post(ajaxurl,{action:"wpseo_add_redirect_plain",ajax_nonce:r,redirect:{origin:e,target:n,type:t}},(function(e){var r=jQuery(o).closest(".yoast-notification");if(jQuery(r).removeClass("updated").removeClass("error"),jQuery(r).find(".redirect_error").remove(),e.error)jQuery(r).addClass("error").prepend('
'+e.error.message+"
");else{var n="";n=(n=410===parseInt(t,10)?_.escape(wpseoPremiumStrings.redirect_saved_no_target):wpseoPremiumStrings.redirect_saved.replace("%2$s",""+_.escape(e.target)+"")).replace("%1$s",""+_.escape(e.origin)+""),jQuery(r).addClass("updated").html(""+n+"
")}}),"json"):window.alert(wpseoPremiumStrings.error_new_url)}},455:e=>{"use strict";e.exports=window.wp.apiFetch}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e=r(368),t=0;function o(){jQuery.post(ajaxurl,{action:"yoast_get_notifications"},(function(e){if(""!==e){var r=jQuery(".wrap").children().eq(0);jQuery(e).insertAfter(r),t=0}t<20&&""===e&&(t++,setTimeout(o,500))}))}function n(){return jQuery(location).attr("pathname").split("/").pop()}function i(e){return"edit-tags.php"===(e=e||n())?"slug":"post_name"}function a(){return jQuery("tr.inline-editor")}function d(){var e=a();return 0===e.length||""===e?"":e.attr("id").replace("edit-","")}function s(){var e=d(),t=i();return jQuery("#inline_"+e).find("."+t).html()}function c(){var e=a(),t=i();return s()!==e.find("input[name="+t+"]").val()}function p(e){13===e.which&&c()&&o()}function u(e){"save-order"!==jQuery(e.target).attr("id")&&c()&&o()}window.wpseoShowNotification=o,window.wpseoGetCurrentPage=n,window.wpseoGetActiveEditor=a,window.wpseoGetItemId=d,window.wpseoGetCurrentSlug=s,window.wpseoSlugChanged=c,window.wpseoHandleKeyEvents=p,window.wpseoHandleButtonEvents=u,window.wpseoUndoRedirect=e.wpseoUndoRedirect,window.wpseoUndoRedirectByObjectId=e.wpseoUndoRedirectByObjectId,window.wpseoCreateRedirect=e.wpseoCreateRedirect,window.wpseoRemoveNotification=e.wpseoRemoveNotification,jQuery((function(){var e=n();["edit.php","edit-tags.php"].includes(e)&&(jQuery("#inline-edit input").on("keydown",(function(e){p(e)})),jQuery(".button-primary").on("click",(function(e){u(e)}))),"edit-tags.php"===e&&jQuery(document).on("ajaxComplete",(function(e,t,r){"string"==typeof r.data&&r.data.indexOf("action=delete-tag")>-1&&o()}))}))})()})();