!function(e){e(document).ready((function(){e(".wfdp-btn").on("click",(function(t){var d=e(this).data("target");e("body").addClass("wfdp-modal-opened"),e("#"+d).toggleClass("opened"),Number(e("#"+d).find(".wfdp-modal-inner").outerHeight())>=e(window).outerHeight()?e("#"+d).addClass("wfdp-bigger"):e("#"+d).removeClass("wfdp-bigger")})),e(".wfdp-modal").on("click",".xs-btn-close",(function(t){e("body").removeClass("wfdp-modal-opened"),e(this).closest(".wfdp-modal").removeClass("opened")})),e(document).keyup((function(t){27==t.keyCode&&e(".wfdp-modal").removeClass("opened")})),e(".xs_donate_switch_button").on("change",(function(){var t=e(this),d=t.closest("tr").find(".wfdp-btn");t.is(":checked")?d.removeAttr("disabled"):d.attr("disabled","disabled")})),e(".payment-gateway-info").on("click",".xs_donate_switch_button_label, .payment-gateway-label",(function(){var t=e(this).closest(".payment-gateway-info").find(".xs_donate_switch_button");t.is(":checked")?t.removeAttr("checked"):t.attr("checked","checked")}))}))}(jQuery);