jQuery(document).ready((function(t){"use strict";t(document).on("click","#revoke_zoho",(function(){let o=t("#revoke_zoho").attr("data-zoho-nonce"),a=t("#revoke_zoho").attr("data-admin-url");t.ajax({url:a,type:"post",data:{action:"zoho_revoke_token",nonce:o},dataType:"json",success:function(t){location.reload()},error:function(t){}})})),t(document).on("change","#mf_zoho_data_center",(function(){var o=t(this).val(),a=t("#zoho_connect_btn").attr("href");if(a){var n=a.split("&data_center=");if(n.length>1){var e=n[0],c=n[1].split("&");c.shift();var r=e+"&data_center="+o;c.length>0&&(r+="&"+c.join("&")),t("#zoho_connect_btn").attr("href",r)}}t.ajax({url:ajaxurl,type:"POST",data:{action:"save_zoho_data_center",data_center:o,nonce:t("#mf_zoho_data_center").attr("data-nonce")},dataType:"json",success:function(t){},error:function(t){}})}))}));