PageSourceSearch

https://www.gcactravel.org/wp-content/plugins/charitable-recurring…/js/charitable-recurring.min.js?ver=1.5.7

js gcactravel.org collected 2026-10-10 00:24:48 UTC 13,224 bytes, 1 lines download raw bytes

1CHARITABLE_RECURRING=function(e){return{init:function(){e("html").addClass("js"),e(".recurring-donation").find("input:checked").each(function(){e(this).addClass("selected")}),e(".recurring-donation-amounts").on("click change","input[name=donation_amount]",function(){var n=e(this),t=n.closest("form").find('input[name=donation_amount_fallback][data-recurring="true"]');t.length&&n.val()&&"recurring-custom"!==n.val()&&(t.val(n.val()),"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&CHARITABLE_RECURRING_VARS.form_debug&&"undefined"!=typeof console&&console.log&&console.log("[Charitable Recurring] Updated fallback to:",n.val()))}),e(".recurring-donation-options").on("change","input[name=recurring_donation]",function(n){CHARITABLE_RECURRING.toggle_tabs(e(this))}),e(".charitable-recurring-donation-options .recurring-donation-period [name=recurring_donation_period][value=once]").parent().addClass("one-time-donation-period").hide(),e(".recurring-donation-option").on("change","input[name=recurring_donation]",function(n){e(this).is(":checked")?CHARITABLE_RECURRING.toggle_gateways():CHARITABLE_RECURRING.toggle_gateways(!0)}),e(".recurring-donation-options [name=recurring_donation]").change(),CHARITABLE_RECURRING.init_stripe_payment_method_filtering()},toggle_tabs:function(n){var t=n.closest("form");t.find(".recurring-donation-option").removeClass("selected"),e("input[name=recurring_donation]:checked",t).closest("li").addClass("selected"),"once"==e("input[name=recurring_donation]:checked",t).val()?(t.find(".charitable-recurring-donation-options").hide().removeClass("active"),t.find(".charitable-donation-options:not(.charitable-recurring-donation-options)").show().addClass("active"),t.find(".charitable-recurring-donation-options .recurring-donation-period .one-time-donation-period input").prop("checked",!0),CHARITABLE_RECURRING.toggle_gateways(!0),CHARITABLE_RECURRING.enable_all_stripe_payment_methods()):(t.find(".charitable-recurring-donation-options").show().addClass("active"),t.find(".charitable-donation-options:not(.charitable-recurring-donation-options)").hide().removeClass("active"),CHARITABLE_RECURRING.toggle_gateways(),CHARITABLE_RECURRING.disable_incompatible_stripe_payment_methods())},toggle_gateways:function(n){void 0===n&&(n=!1),1==n?e("#charitable-gateway-selector li").show():e("#charitable-gateway-selector").find("input").each(function(){-1!==e.inArray(e(this).val(),Charitable_Recurring.supported_gateways)?e(this).parent().show():e(this).prop("checked",!1).parent().hide()})},init_stripe_payment_method_filtering:function(){e(document).on("change","input[name=recurring_donation]",function(){CHARITABLE_RECURRING.handle_recurring_donation_change(e(this))}),e(document).on("change","input[name=recurring_donation_period]",function(){CHARITABLE_RECURRING.handle_recurring_donation_change(e(this))}),e(document).on("change",'input[name="gateway"]',function(){CHARITABLE_RECURRING.validate_donate_button_state()}),e(document).on("charitable:gateway:changed",function(e,n){CHARITABLE_RECURRING.validate_donate_button_state()}),e(document).on("submit",".charitable-donation-form",function(e){if(CHARITABLE_RECURRING.is_donate_button_disabled())return e.preventDefault(),CHARITABLE_RECURRING.show_submission_alert(),!1}),e(document).on("click",'button[type="submit"], input[type="submit"], .donate-button',function(e){if(CHARITABLE_RECURRING.is_donate_button_disabled())return e.preventDefault(),CHARITABLE_RECURRING.show_submission_alert(),!1}),CHARITABLE_RECURRING.check_recurring_donation_state(),setTimeout(function(){CHARITABLE_RECURRING.check_recurring_donation_state()},500)},handle_recurring_donation_change:function(e){var n=e.closest("form"),t=CHARITABLE_RECURRING.is_recurring_donation_selected(n);"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&(console.log("Recurring donation change detected"),console.log("Input value:",e.val()),console.log("Is recurring:",t)),t?(CHARITABLE_RECURRING.disable_incompatible_stripe_payment_methods(),CHARITABLE_RECURRING.show_recurring_warning_message()):(CHARITABLE_RECURRING.enable_all_stripe_payment_methods(),CHARITABLE_RECURRING.hide_recurring_warning_message()),CHARITABLE_RECURRING.validate_donate_button_state()},is_recurring_donation_selected:function(e){var n=e.find("input[name=recurring_donation]:checked");if(0===n.length)return!1;var t=n.val();return"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Recurring donation value:",t),"once"!=t&&""!=t&&null!=t},check_recurring_donation_state:function(){var n=e(".charitable-donation-form");0!==n.length&&(CHARITABLE_RECURRING.is_recurring_donation_selected(n)?(CHARITABLE_RECURRING.disable_incompatible_str
1ipe_payment_methods(),CHARITABLE_RECURRING.show_recurring_warning_message()):(CHARITABLE_RECURRING.enable_all_stripe_payment_methods(),CHARITABLE_RECURRING.hide_recurring_warning_message()),CHARITABLE_RECURRING.validate_donate_button_state())},disable_incompatible_stripe_payment_methods:function(){var n=["stripe_ach_direct_debit","stripe_sepa_direct_debit","stripe_becs_direct_debit","stripe_cash_app"];"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.disable_offline_for_recurring&&n.push("offline"),n.forEach(function(n){var t=e('.charitable-gateway-tab[data-gateway-id="'+n+'"]'),o=e('input[value="'+n+'"]');t.length>0&&(t.addClass("disabled-for-recurring"),t.attr("title","This payment method is not available for recurring donations"),o.is(":checked")&&o.prop("checked",!1).trigger("change"))}),e("#charitable-gateway-selector li").each(function(){var t=e(this),o=t.find('input[type="radio"]'),a=o.val();-1!==n.indexOf(a)&&(t.addClass("disabled-for-recurring"),t.attr("title","This payment method is not available for recurring donations"),o.is(":checked")&&o.prop("checked",!1).trigger("change"))})},enable_all_stripe_payment_methods:function(){e(".charitable-gateway-tab.disabled-for-recurring").removeClass("disabled-for-recurring").removeAttr("title"),e("#charitable-gateway-selector li.disabled-for-recurring").removeClass("disabled-for-recurring").removeAttr("title")},show_recurring_warning_message:function(){"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Showing recurring payment warning message");var n=e(".charitable-recurring-payment-method-warning");if(0===n.length){var t=CHARITABLE_RECURRING.get_warning_message();n=e('<div class="charitable-recurring-payment-method-warning charitable-notice charitable-notice-warning"><p><strong>Note:</strong> '+t+"</p></div>");var o=e("#charitable-gateway-tabs");if(o.length>0)o.before(n);else{var a=e("#charitable-gateway-selector");a.length>0?a.before(n):e("#charitable-gateway-fields").prepend(n)}}n.show(),n.css({width:"100%",display:"block","box-sizing":"border-box"})},hide_recurring_warning_message:function(){"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&(console.log("Hiding recurring payment warning message"),console.log("Warning elements found:",e(".charitable-recurring-payment-method-warning").length)),e(".charitable-recurring-payment-method-warning").remove()},validate_donate_button_state:function(){var n=e(".charitable-donation-form"),t=this.is_recurring_donation_selected(n),o=n.find('button[type="submit"], input[type="submit"], .donate-button');if("undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&(console.log("validate_donate_button_state called"),console.log("Form found:",n.length),console.log("Submit button found:",o.length),console.log("Is recurring:",t),console.log("Submit button disabled:",o.prop("disabled")),console.log("Submit button classes:",o.attr("class"))),t){var a=this.get_selected_gateway(n),i=["stripe_ach_direct_debit","stripe_sepa_direct_debit","stripe_becs_direct_debit","stripe_cash_app"];"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.disable_offline_for_recurring&&i.push("offline"),"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&(console.log("Selected gateway:",a),console.log("Incompatible methods:",i),console.log("Is incompatible:",-1!==i.indexOf(a))),-1!==i.indexOf(a)?(o.prop("disabled",!0).addClass("disabled-for-recurring"),this.show_donate_button_error(),"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Button disabled and error shown")):(o.prop("disabled",!1).removeClass("disabled-for-recurring"),this.hide_donate_button_error(),"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Button enabled and error hidden"))}else o.prop("disabled",!1).removeClass("disabled-for-recurring"),this.hide_donate_button_error(),"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Not recurring - button enabled")},get_selected_gateway:function(e){"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&(console.log("=== Gateway Detection Debug ==="),console.log("All gateway inputs:",e.find('input[name="gateway"]').length),console.log("All gateway fields:",e.find(".charitable-gateway-fields").length),console.log("All gateway tabs:",e.find(".charitable-gateway-tab").length),console.log("Visible gateway fields:",e.find(".charitable-gateway-fields:visible").length));var n=e.find('input[name="gateway"]:checked');if(n.length)return"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log('Gateway found via input[name="gateway"]:',n.val()),n.val();var t=e.find(".charitable-gateway-fields[data-gateway]");if(t.length){var o=t.filter(":visible").first().attr("data-gateway");return"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Gateway found via data-gateway attribute:",o),o}var a=e.find(".charitable-gateway-tab.active, .charitable-gateway-tab.selected");if(a.length){o=a.attr("data-gateway-id")||a.attr("id");return"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Gateway found via active tab:",o),o}var i=e.find(".charitable-gateway-fields:visible");if(i.length){o=i.first().attr("data-gateway");return"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Gateway found via visible fields:",o),o}var r=e.find('input[name*="gateway"], input[name*="payment"], input[name*="stripe"]');return r.length&&"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("Found input
1s with gateway-related names:",r.map(function(){return this.name+"="+this.value}).get()),"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.debug_enabled&&"undefined"!=typeof console&&console.log&&console.log("No gateway detected"),""},is_donate_button_disabled:function(){var n=e(".charitable-donation-form").find('button[type="submit"], input[type="submit"], .donate-button');return n.hasClass("disabled-for-recurring")||n.prop("disabled")},show_submission_alert:function(){alert("The selected payment method is not available with recurring donations at this time. Please choose a different payment method.")},show_donate_button_error:function(){if(!e(".charitable-recurring-payment-method-error").length){var n=e('<div class="charitable-recurring-payment-method-error charitable-notice charitable-notice-error"><p>The selected payment method is not available with recurring donations at this time. Please choose a different payment method.</p></div>');e(".charitable-donation-form").find('button[type="submit"], input[type="submit"], .donate-button').after(n)}},hide_donate_button_error:function(){e(".charitable-recurring-payment-method-error").remove()},get_warning_message:function(){return"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.warning_message?CHARITABLE_RECURRING_VARS.warning_message:"undefined"!=typeof CHARITABLE_RECURRING_VARS&&CHARITABLE_RECURRING_VARS.disable_offline_for_recurring?"Some payment methods (ACH, SEPA, BECS, Cash App, and offline/check payments) are not available for recurring donations only. Please select a different payment method to continue.":"Some payment methods (ACH, SEPA, BECS, and Cash App) are not available for recurring donations only. Please select a different payment method to continue."}}}(jQuery),jQuery("body").on("charitable:form:initialize",function(){CHARITABLE_RECURRING.init()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.