var t;(t=jQuery)(()=>{t(document).on("click",".rl-deactivate-plugin-cancel",t=>(tb_remove(),!1)),t(document).on("click",".rl-deactivate-plugin-simple",e=>{t("#rl-deactivation-footer .spinner").addClass("is-active")}),t(document).on("click",".rl-deactivate-plugin-data",e=>{const a=t("#rl-deactivation-footer .spinner"),n=t(e.currentTarget).attr("href");return a.addClass("is-active"),t.post(ajaxurl,{action:"rl-deactivate-plugin",option_id:t('input[name="rl_deactivation_option"]:checked').val(),other:t('textarea[name="rl_deactivation_other"]').val(),nonce:rlArgsPlugins.nonce}).done(t=>{window.location.href=n}).fail(()=>{window.location.href=n}),!1}),t(document).on("click",".rl-deactivate-plugin-modal",e=>(tb_show(rlArgsPlugins.deactivate,"#TB_inline?inlineId=rl-deactivation-modal&modal=false"),setTimeout(()=>{const e=t("#rl-deactivation-container").closest("#TB_window");e.length>0&&(t(e).addClass("rl-deactivation-modal"),t(e).find("#TB_closeWindowButton").on("blur"))},0),!1)),t(document).on("change",'input[name="rl_deactivation_option"]',e=>{const a=t('input[name="rl_deactivation_option"]').last().get(0);t(e.currentTarget).get(0)===a?t(".rl-deactivation-textarea textarea").prop("disabled",!1):t(".rl-deactivation-textarea textarea").prop("disabled",!0)})});
