| 1 |
const feeRecoverySettings = document.querySelector('[name="give-fee-recovery-settings"]')?.value; |
| 2 |
export const IS_FEE_RECOVERY_ACTIVE = |
| 3 |
'give_fee_recovery_object' in window && feeRecoverySettings && JSON.parse(feeRecoverySettings)?.fee_recovery; |
| 4 |
|
| 5 |
export const IS_RECURRING_ACTIVE = 'Give_Recurring_Vars' in window; |
| 6 |
|
| 7 |
export const IS_DONATION_SUMMARY_ACTIVE = |
| 8 |
window.classicTemplateOptions.payment_information.donation_summary_enabled === 'enabled'; |
| 9 |
|
| 10 |
export const IS_CURRENCY_SWITCHING_ACTIVE = window?.give_cs_json_obj?.length > 20; |
| 11 |
|
| 12 |
export const IS_STRIPE_ACTIVE = 'give_stripe_vars' in window; |
| 13 |
|