!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=1)}([function(e,t){e.exports=jQuery},function(e,t,n){"use strict";n.r(t);var i,r=n(0),a=n.n(r),o=function(e,t,n){return a.a.ajax({url:rankMath.ajaxurl,type:n||"POST",dataType:"json",data:a.a.extend(!0,{action:"rank_math_"+e,security:rankMath.security},t)})},s=function(e,t,n,i){t=t||"error",i=i||!1;var r=a()('<div class="notice notice-'+t+' is-dismissible"><p>'+e+"</p></div>").hide();n.next(".notice").remove(),n.after(r),r.slideDown(),a()(document).trigger("wp-updates-notice-added"),i&&setTimeout((function(){r.fadeOut((function(){r.remove()}))}),i)};(i=jQuery)((function(){var e=i("#bing_instant_indexing_urls"),t=i("#bing_api_submit"),n=i("#bing_api_spinner"),r=i("#bing_api_limit"),a=function(){t.addClass("disabled"),n.addClass("is-active"),o("instant_indexing_bing_get_daily_quota",{},"GET").always((function(){n.removeClass("is-active")})).done((function(e){var n=0;"ok"===e.status&&void 0!==e.daily_quota?n=e.daily_quota:s(e.message,"error",i(".bing-api-limit")),n&&t.removeClass("disabled"),r.text(n)}))};rankMath.is_instant_indexing_configured?(t.on("click",(function(r){r.preventDefault();var u=e.val();return t.addClass("disabled"),n.addClass("is-active"),o("instant_indexing_bing_submit_urls",{urls:u},"POST").always((function(){t.removeClass("disabled"),n.removeClass("is-active")})).done((function(e){s(e.message,"ok"===e.status?"success":"error",i(".bing-api-limit")),"ok"===e.status&&a()})),!1})),a()):n.removeClass("is-active")}))}]);