var wpzinc_deactivation_url;jQuery(document).ready(function(a){a("span.deactivate a").on("click",function(i){var n=a(this).closest("tr").data("slug");if(typeof n==="undefined"){return true}if(n!=wpzinc_dashboard.plugin.name){return true}i.preventDefault();wpzinc_deactivation_url=a(this).attr("href");a("#wpzinc-deactivation-modal, #wpzinc-deactivation-modal-overlay").show();a("#wpzinc-deactivation-modal").css("margin-top","-210px");a("#wpzinc-deactivation-modal").outerHeight(420)});a("form#wpzinc-deactivation-modal-form").on("submit",function(i){i.preventDefault();var n=a("input[name=reason]:checked",a(this)).val(),t=a("input[name=reason_text]",a(this)).val(),e=a("input[name=reason_email]",a(this)).val();if(typeof n!=="undefined"){a.ajax({url:ajaxurl,type:"POST",async:true,data:{action:"wpzinc_dashboard_deactivation_modal_submit",product:wpzinc_dashboard.plugin.name,version:wpzinc_dashboard.plugin.version,reason:n,reason_text:t,reason_email:e},error:function(a,i,n){},success:function(a){}})}a("#wpzinc-deactivation-modal, #wpzinc-deactivation-modal-overlay").hide();window.location.href=wpzinc_deactivation_url})});