Current File : /home/n742ef5/royalanteam.com/wp-content/plugins/security-malware-firewall/js/spbc-common.min.js
function spbcTimestamp(){return Math.floor(+new Date/1e3)}function spbcHighlightElement(e,r){r=r-1||0,jQuery("html, body").animate({scrollTop:jQuery(jQuery("#"+e)).offset().top-100},"slow"),jQuery("#"+e).addClass("spbc_highlighted"),jQuery("#"+e).animate({outlineColor:"rgba(255, 0, 0, 1.0)"},400,"linear",function(){jQuery("#"+e).animate({outlineColor:"rgba(255, 0, 0, 0.0)"},400,"linear",function(){0<r?spbcHighlightElement(e,r):jQuery("#"+e).removeClass("spbc_highlighted")})})}function spbcSendAJAXRequest(n,t,s){var e=t.notJson?"text":"json";let l=t.button||null,i=t.spinner||null,a=t.progressbar||null,u=t.callback||null,c=t.notJson||null;var r=t.timeout||15e3,o=(s=s||null,t.context||this),y=(l&&(l.setAttribute("disabled","disabled"),l.style.cursor="not-allowed"),i&&(Array.isArray(i)?i.forEach(function(e){jQuery(e).css("display","inline")}):jQuery(i).css("display","inline")),n.security=spbcSettings.ajax_nonce,n.no_cache=Math.random(),t.success||function(e){var r,o;l&&(l.removeAttribute("disabled"),l.style.cursor="pointer"),i&&(Array.isArray(i)?i.forEach(function(e){jQuery(e).css("display","none")}):jQuery(i).css("display","none")),(e=c||"object"==typeof e?e:JSON.parse(e)).error?(setTimeout(function(){a&&a.fadeOut("slow")},1e3),r=void 0!==e.error_comment?e.error_comment:null,o=void 0!==e.hide_support_link,d(e.error,r,o),jQuery(".tbl-preloader--in_button").css("display","none")):u&&u(e,n,t,s)}),d=t.errorOutput||function(e){};jQuery.ajax({context:o,type:"POST",url:spbcSettings.ajaxurl,data:n,dataType:e,success:y,error:t.error||function(e,r,o){l&&(l.removeAttribute("disabled"),l.style.cursor="pointer"),i&&(Array.isArray(i)?i.forEach(function(e){jQuery(e).css("display","none")}):jQuery(i).css("display","none")),console.log("%c APBCT_AJAX_ERROR","color: red;"),console.log(r),console.log(o),console.log(e),d(r)},timeout:r})}
//# sourceMappingURL=spbc-common.min.js.map