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