@churchapps/apphelper 0.6.25 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/donations/components/BankForm.d.ts +17 -0
- package/dist/donations/components/BankForm.d.ts.map +1 -0
- package/dist/donations/components/BankForm.js +268 -0
- package/dist/donations/components/BankForm.js.map +1 -0
- package/dist/donations/components/CardForm.d.ts +15 -0
- package/dist/donations/components/CardForm.d.ts.map +1 -0
- package/dist/donations/components/CardForm.js +132 -0
- package/dist/donations/components/CardForm.js.map +1 -0
- package/dist/donations/components/DonationForm.d.ts +17 -0
- package/dist/donations/components/DonationForm.d.ts.map +1 -0
- package/dist/donations/components/DonationForm.js +225 -0
- package/dist/donations/components/DonationForm.js.map +1 -0
- package/dist/donations/components/FormCardPayment.d.ts +8 -0
- package/dist/donations/components/FormCardPayment.d.ts.map +1 -0
- package/dist/donations/components/FormCardPayment.js +159 -0
- package/dist/donations/components/FormCardPayment.js.map +1 -0
- package/dist/donations/components/FundDonation.d.ts +13 -0
- package/dist/donations/components/FundDonation.d.ts.map +1 -0
- package/dist/donations/components/FundDonation.js +29 -0
- package/dist/donations/components/FundDonation.js.map +1 -0
- package/dist/donations/components/FundDonations.d.ts +12 -0
- package/dist/donations/components/FundDonations.d.ts.map +1 -0
- package/dist/donations/components/FundDonations.js +37 -0
- package/dist/donations/components/FundDonations.js.map +1 -0
- package/dist/donations/components/MultiGatewayDonationForm.d.ts +17 -0
- package/dist/donations/components/MultiGatewayDonationForm.d.ts.map +1 -0
- package/dist/donations/components/MultiGatewayDonationForm.js +375 -0
- package/dist/donations/components/MultiGatewayDonationForm.js.map +1 -0
- package/dist/donations/components/NonAuthDonation.d.ts +12 -0
- package/dist/donations/components/NonAuthDonation.d.ts.map +1 -0
- package/dist/donations/components/NonAuthDonation.js +68 -0
- package/dist/donations/components/NonAuthDonation.js.map +1 -0
- package/dist/donations/components/NonAuthDonationInner.d.ts +13 -0
- package/dist/donations/components/NonAuthDonationInner.d.ts.map +1 -0
- package/dist/donations/components/NonAuthDonationInner.js +431 -0
- package/dist/donations/components/NonAuthDonationInner.js.map +1 -0
- package/dist/donations/components/PayPalCardForm.d.ts +17 -0
- package/dist/donations/components/PayPalCardForm.d.ts.map +1 -0
- package/dist/donations/components/PayPalCardForm.js +118 -0
- package/dist/donations/components/PayPalCardForm.js.map +1 -0
- package/dist/donations/components/PayPalHostedFields.d.ts +19 -0
- package/dist/donations/components/PayPalHostedFields.d.ts.map +1 -0
- package/dist/donations/components/PayPalHostedFields.js +114 -0
- package/dist/donations/components/PayPalHostedFields.js.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonation.d.ts +12 -0
- package/dist/donations/components/PayPalNonAuthDonation.d.ts.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonation.js +20 -0
- package/dist/donations/components/PayPalNonAuthDonation.js.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.d.ts +13 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.d.ts.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.js +309 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.js.map +1 -0
- package/dist/donations/components/PaymentMethods.d.ts +15 -0
- package/dist/donations/components/PaymentMethods.d.ts.map +1 -0
- package/dist/donations/components/PaymentMethods.js +97 -0
- package/dist/donations/components/PaymentMethods.js.map +1 -0
- package/dist/donations/components/RecurringDonations.d.ts +10 -0
- package/dist/donations/components/RecurringDonations.d.ts.map +1 -0
- package/dist/donations/components/RecurringDonations.js +106 -0
- package/dist/donations/components/RecurringDonations.js.map +1 -0
- package/dist/donations/components/RecurringDonationsEdit.d.ts +12 -0
- package/dist/donations/components/RecurringDonationsEdit.d.ts.map +1 -0
- package/dist/donations/components/RecurringDonationsEdit.js +67 -0
- package/dist/donations/components/RecurringDonationsEdit.js.map +1 -0
- package/dist/donations/components/index.d.ts +17 -0
- package/dist/donations/components/index.d.ts.map +1 -0
- package/dist/donations/components/index.js +16 -0
- package/dist/donations/components/index.js.map +1 -0
- package/dist/donations/helpers/DonationHelper.d.ts +19 -0
- package/dist/donations/helpers/DonationHelper.d.ts.map +1 -0
- package/dist/donations/helpers/DonationHelper.js +62 -0
- package/dist/donations/helpers/DonationHelper.js.map +1 -0
- package/dist/donations/helpers/DonationInterface.d.ts +23 -0
- package/dist/donations/helpers/DonationInterface.d.ts.map +1 -0
- package/dist/donations/helpers/DonationInterface.js +2 -0
- package/dist/donations/helpers/DonationInterface.js.map +1 -0
- package/dist/donations/helpers/Locale.d.ts +14 -0
- package/dist/donations/helpers/Locale.d.ts.map +1 -0
- package/dist/donations/helpers/Locale.js +276 -0
- package/dist/donations/helpers/Locale.js.map +1 -0
- package/dist/donations/helpers/PayPalDonationInterface.d.ts +33 -0
- package/dist/donations/helpers/PayPalDonationInterface.d.ts.map +1 -0
- package/dist/donations/helpers/PayPalDonationInterface.js +2 -0
- package/dist/donations/helpers/PayPalDonationInterface.js.map +1 -0
- package/dist/donations/helpers/PayPalPaymentMethod.d.ts +8 -0
- package/dist/donations/helpers/PayPalPaymentMethod.d.ts.map +1 -0
- package/dist/donations/helpers/PayPalPaymentMethod.js +2 -0
- package/dist/donations/helpers/PayPalPaymentMethod.js.map +1 -0
- package/dist/donations/helpers/PaymentMethod.d.ts +19 -0
- package/dist/donations/helpers/PaymentMethod.d.ts.map +1 -0
- package/dist/donations/helpers/PaymentMethod.js +2 -0
- package/dist/donations/helpers/PaymentMethod.js.map +1 -0
- package/dist/donations/helpers/StripePaymentMethod.d.ts +16 -0
- package/dist/donations/helpers/StripePaymentMethod.d.ts.map +1 -0
- package/dist/donations/helpers/StripePaymentMethod.js +17 -0
- package/dist/donations/helpers/StripePaymentMethod.js.map +1 -0
- package/dist/donations/helpers/index.d.ts +9 -0
- package/dist/donations/helpers/index.d.ts.map +1 -0
- package/dist/donations/helpers/index.js +4 -0
- package/dist/donations/helpers/index.js.map +1 -0
- package/dist/donations/index.d.ts +5 -0
- package/dist/donations/index.d.ts.map +1 -0
- package/dist/donations/index.js +4 -0
- package/dist/donations/index.js.map +1 -0
- package/dist/donations/modals/DonationPreviewModal.d.ts +15 -0
- package/dist/donations/modals/DonationPreviewModal.d.ts.map +1 -0
- package/dist/donations/modals/DonationPreviewModal.js +27 -0
- package/dist/donations/modals/DonationPreviewModal.js.map +1 -0
- package/dist/forms/components/ErrorMessages.d.ts +7 -0
- package/dist/forms/components/ErrorMessages.d.ts.map +1 -0
- package/dist/forms/components/ErrorMessages.js +21 -0
- package/dist/forms/components/ErrorMessages.js.map +1 -0
- package/dist/forms/components/FormSubmissionEdit.d.ts +19 -0
- package/dist/forms/components/FormSubmissionEdit.d.ts.map +1 -0
- package/dist/forms/components/FormSubmissionEdit.js +141 -0
- package/dist/forms/components/FormSubmissionEdit.js.map +1 -0
- package/dist/forms/components/HelpIcon.d.ts +6 -0
- package/dist/forms/components/HelpIcon.d.ts.map +1 -0
- package/dist/forms/components/HelpIcon.js +6 -0
- package/dist/forms/components/HelpIcon.js.map +1 -0
- package/dist/forms/components/InputBox.d.ts +38 -0
- package/dist/forms/components/InputBox.d.ts.map +1 -0
- package/dist/forms/components/InputBox.js +38 -0
- package/dist/forms/components/InputBox.js.map +1 -0
- package/dist/forms/components/QuestionEdit.d.ts +14 -0
- package/dist/forms/components/QuestionEdit.d.ts.map +1 -0
- package/dist/forms/components/QuestionEdit.js +77 -0
- package/dist/forms/components/QuestionEdit.js.map +1 -0
- package/dist/forms/components/SmallButton.d.ts +15 -0
- package/dist/forms/components/SmallButton.d.ts.map +1 -0
- package/dist/forms/components/SmallButton.js +25 -0
- package/dist/forms/components/SmallButton.js.map +1 -0
- package/dist/forms/components/index.d.ts +7 -0
- package/dist/forms/components/index.d.ts.map +1 -0
- package/dist/forms/components/index.js +7 -0
- package/dist/forms/components/index.js.map +1 -0
- package/dist/forms/helpers/Locale.d.ts +14 -0
- package/dist/forms/helpers/Locale.d.ts.map +1 -0
- package/dist/forms/helpers/Locale.js +201 -0
- package/dist/forms/helpers/Locale.js.map +1 -0
- package/dist/forms/helpers/index.d.ts +2 -0
- package/dist/forms/helpers/index.d.ts.map +1 -0
- package/dist/forms/helpers/index.js +2 -0
- package/dist/forms/helpers/index.js.map +1 -0
- package/dist/forms/index.d.ts +3 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +3 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/helpers/AppearanceHelper.d.ts +4 -0
- package/dist/helpers/AppearanceHelper.d.ts.map +1 -1
- package/dist/login/LoginPage.d.ts +26 -0
- package/dist/login/LoginPage.d.ts.map +1 -0
- package/dist/login/LoginPage.js +315 -0
- package/dist/login/LoginPage.js.map +1 -0
- package/dist/login/LogoutPage.d.ts +9 -0
- package/dist/login/LogoutPage.d.ts.map +1 -0
- package/dist/login/LogoutPage.js +33 -0
- package/dist/login/LogoutPage.js.map +1 -0
- package/dist/login/components/Forgot.d.ts +9 -0
- package/dist/login/components/Forgot.d.ts.map +1 -0
- package/dist/login/components/Forgot.js +140 -0
- package/dist/login/components/Forgot.js.map +1 -0
- package/dist/login/components/Login.d.ts +17 -0
- package/dist/login/components/Login.d.ts.map +1 -0
- package/dist/login/components/Login.js +134 -0
- package/dist/login/components/Login.js.map +1 -0
- package/dist/login/components/LoginSetPassword.d.ts +13 -0
- package/dist/login/components/LoginSetPassword.d.ts.map +1 -0
- package/dist/login/components/LoginSetPassword.js +126 -0
- package/dist/login/components/LoginSetPassword.js.map +1 -0
- package/dist/login/components/Register.d.ts +18 -0
- package/dist/login/components/Register.d.ts.map +1 -0
- package/dist/login/components/Register.js +245 -0
- package/dist/login/components/Register.js.map +1 -0
- package/dist/login/components/SelectChurchModal.d.ts +14 -0
- package/dist/login/components/SelectChurchModal.d.ts.map +1 -0
- package/dist/login/components/SelectChurchModal.js +41 -0
- package/dist/login/components/SelectChurchModal.js.map +1 -0
- package/dist/login/components/SelectChurchRegister.d.ts +11 -0
- package/dist/login/components/SelectChurchRegister.d.ts.map +1 -0
- package/dist/login/components/SelectChurchRegister.js +89 -0
- package/dist/login/components/SelectChurchRegister.js.map +1 -0
- package/dist/login/components/SelectChurchSearch.d.ts +10 -0
- package/dist/login/components/SelectChurchSearch.d.ts.map +1 -0
- package/dist/login/components/SelectChurchSearch.js +62 -0
- package/dist/login/components/SelectChurchSearch.js.map +1 -0
- package/dist/login/components/SelectableChurch.d.ts +9 -0
- package/dist/login/components/SelectableChurch.d.ts.map +1 -0
- package/dist/login/components/SelectableChurch.js +49 -0
- package/dist/login/components/SelectableChurch.js.map +1 -0
- package/dist/login/components/VerificationCodeInput.d.ts +11 -0
- package/dist/login/components/VerificationCodeInput.d.ts.map +1 -0
- package/dist/login/components/VerificationCodeInput.js +90 -0
- package/dist/login/components/VerificationCodeInput.js.map +1 -0
- package/dist/login/helpers/AnalyticsHelper.d.ts +7 -0
- package/dist/login/helpers/AnalyticsHelper.d.ts.map +1 -0
- package/dist/login/helpers/AnalyticsHelper.js +45 -0
- package/dist/login/helpers/AnalyticsHelper.js.map +1 -0
- package/dist/login/helpers/Locale.d.ts +14 -0
- package/dist/login/helpers/Locale.d.ts.map +1 -0
- package/dist/login/helpers/Locale.js +220 -0
- package/dist/login/helpers/Locale.js.map +1 -0
- package/dist/login/helpers/index.d.ts +3 -0
- package/dist/login/helpers/index.d.ts.map +1 -0
- package/dist/login/helpers/index.js +3 -0
- package/dist/login/helpers/index.js.map +1 -0
- package/dist/login/index.d.ts +13 -0
- package/dist/login/index.d.ts.map +1 -0
- package/dist/login/index.js +13 -0
- package/dist/login/index.js.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.d.ts +11 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.js +8 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.js.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.d.ts +12 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.js +89 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.js.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.d.ts +14 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.js +71 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.js.map +1 -0
- package/dist/markdown/components/htmlEditor/editor.css +831 -0
- package/dist/markdown/components/htmlEditor/images/emoji/1F600.png +0 -0
- package/dist/markdown/components/htmlEditor/images/emoji/1F641.png +0 -0
- package/dist/markdown/components/htmlEditor/images/emoji/1F642.png +0 -0
- package/dist/markdown/components/htmlEditor/images/emoji/2764.png +0 -0
- package/dist/markdown/components/htmlEditor/images/icons/arrow-clockwise.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/arrow-counterclockwise.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/chat-square-quote.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/chevron-down.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/code.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/journal-code.svg +5 -0
- package/dist/markdown/components/htmlEditor/images/icons/journal-text.svg +5 -0
- package/dist/markdown/components/htmlEditor/images/icons/justify.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/link.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/list-ol.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/list-ul.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/pencil-fill.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-center.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-left.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-paragraph.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-right.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-bold.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h1.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h2.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h3.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h4.svg +13 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-italic.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-strikethrough.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-underline.svg +3 -0
- package/dist/markdown/components/htmlEditor/index.d.ts +3 -0
- package/dist/markdown/components/htmlEditor/index.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/index.js +3 -0
- package/dist/markdown/components/htmlEditor/index.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.d.ts +2 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.js +28 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.js +30 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.d.ts +8 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.js +280 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.d.ts +4 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.js +188 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.js +85 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.d.ts +8 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.js +249 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.d.ts +4 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.js +41 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.js +10 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.d.ts +69 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.js +175 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.d.ts +4 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.js +19 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.d.ts +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.js +8 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.d.ts +10 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.js +26 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.d.ts +12 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.js +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.js +8 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.d.ts +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.js +68 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.d.ts +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.js +9 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.d.ts +14 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.js +8 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/theme.d.ts +77 -0
- package/dist/markdown/components/htmlEditor/theme.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/theme.js +75 -0
- package/dist/markdown/components/htmlEditor/theme.js.map +1 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.js +69 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.js.map +1 -0
- package/dist/markdown/components/markdownEditor/Editor.d.ts +14 -0
- package/dist/markdown/components/markdownEditor/Editor.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/Editor.js +86 -0
- package/dist/markdown/components/markdownEditor/Editor.js.map +1 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.d.ts +3 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.js +59 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.d.ts +10 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.js +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.d.ts +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.js +20 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.d.ts +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.js +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.d.ts +7 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.js +50 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.js.map +1 -0
- package/dist/markdown/components/markdownEditor/editor.css +787 -0
- package/dist/markdown/components/markdownEditor/images/emoji/1F600.png +0 -0
- package/dist/markdown/components/markdownEditor/images/emoji/1F641.png +0 -0
- package/dist/markdown/components/markdownEditor/images/emoji/1F642.png +0 -0
- package/dist/markdown/components/markdownEditor/images/emoji/2764.png +0 -0
- package/dist/markdown/components/markdownEditor/images/icons/arrow-clockwise.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/arrow-counterclockwise.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/chat-square-quote.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/chevron-down.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/code.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/journal-code.svg +5 -0
- package/dist/markdown/components/markdownEditor/images/icons/journal-text.svg +5 -0
- package/dist/markdown/components/markdownEditor/images/icons/justify.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/link.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/list-ol.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/list-ul.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/pencil-fill.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-center.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-left.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-paragraph.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-right.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-bold.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h1.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h2.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h3.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h4.svg +13 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-italic.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-strikethrough.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-underline.svg +3 -0
- package/dist/markdown/components/markdownEditor/index.d.ts +4 -0
- package/dist/markdown/components/markdownEditor/index.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/index.js +4 -0
- package/dist/markdown/components/markdownEditor/index.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.js +28 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts +8 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.js +16 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.d.ts +6 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.js +296 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.js +16 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.js +18 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.js +26 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js +42 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.d.ts +12 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.js +82 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts +6 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.js +9 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.d.ts +7 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.js +280 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts +58 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.js +158 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts +4 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js +19 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts +3 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js +91 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts +5 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js +190 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts +11 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js +2 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.d.ts +24 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.js +59 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts +4 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js +29 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts +9 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js +62 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts +10 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.js +53 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/index.d.ts +7 -0
- package/dist/markdown/components/markdownEditor/plugins/index.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/index.js +7 -0
- package/dist/markdown/components/markdownEditor/plugins/index.js.map +1 -0
- package/dist/markdown/components/markdownEditor/theme.d.ts +66 -0
- package/dist/markdown/components/markdownEditor/theme.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/theme.js +64 -0
- package/dist/markdown/components/markdownEditor/theme.js.map +1 -0
- package/dist/markdown/index.d.ts +7 -0
- package/dist/markdown/index.d.ts.map +1 -0
- package/dist/markdown/index.js +7 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/markdown/stubs/stripe.d.ts +8 -0
- package/dist/markdown/stubs/stripe.d.ts.map +1 -0
- package/dist/markdown/stubs/stripe.js +9 -0
- package/dist/markdown/stubs/stripe.js.map +1 -0
- package/dist/website/components/Animate.d.ts +2 -0
- package/dist/website/components/Animate.d.ts.map +1 -0
- package/dist/website/components/Animate.js +11 -0
- package/dist/website/components/Animate.js.map +1 -0
- package/dist/website/components/Element.d.ts +15 -0
- package/dist/website/components/Element.d.ts.map +1 -0
- package/dist/website/components/Element.js +214 -0
- package/dist/website/components/Element.js.map +1 -0
- package/dist/website/components/Theme.d.ts +9 -0
- package/dist/website/components/Theme.d.ts.map +1 -0
- package/dist/website/components/Theme.js +107 -0
- package/dist/website/components/Theme.js.map +1 -0
- package/dist/website/components/YoutubeBackground.d.ts +13 -0
- package/dist/website/components/YoutubeBackground.d.ts.map +1 -0
- package/dist/website/components/YoutubeBackground.js +86 -0
- package/dist/website/components/YoutubeBackground.js.map +1 -0
- package/dist/website/components/admin/DraggableWrapper.d.ts +11 -0
- package/dist/website/components/admin/DraggableWrapper.d.ts.map +1 -0
- package/dist/website/components/admin/DraggableWrapper.js +13 -0
- package/dist/website/components/admin/DraggableWrapper.js.map +1 -0
- package/dist/website/components/admin/DroppableArea.d.ts +13 -0
- package/dist/website/components/admin/DroppableArea.d.ts.map +1 -0
- package/dist/website/components/admin/DroppableArea.js +112 -0
- package/dist/website/components/admin/DroppableArea.js.map +1 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.d.ts +10 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.js +22 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.js.map +1 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.d.ts +12 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.js +99 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.js.map +1 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.d.ts +10 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.js +42 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.js.map +1 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.d.ts +9 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.js +101 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.js.map +1 -0
- package/dist/website/components/admin/calendar/index.d.ts +5 -0
- package/dist/website/components/admin/calendar/index.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/index.js +5 -0
- package/dist/website/components/admin/calendar/index.js.map +1 -0
- package/dist/website/components/admin/index.d.ts +4 -0
- package/dist/website/components/admin/index.d.ts.map +1 -0
- package/dist/website/components/admin/index.js +4 -0
- package/dist/website/components/admin/index.js.map +1 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.d.ts +11 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.d.ts.map +1 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.js +25 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.js.map +1 -0
- package/dist/website/components/donate/index.d.ts +2 -0
- package/dist/website/components/donate/index.d.ts.map +1 -0
- package/dist/website/components/donate/index.js +2 -0
- package/dist/website/components/donate/index.js.map +1 -0
- package/dist/website/components/elementTypes/BoxElement.d.ts +11 -0
- package/dist/website/components/elementTypes/BoxElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/BoxElement.js +68 -0
- package/dist/website/components/elementTypes/BoxElement.js.map +1 -0
- package/dist/website/components/elementTypes/ButtonLink.d.ts +7 -0
- package/dist/website/components/elementTypes/ButtonLink.d.ts.map +1 -0
- package/dist/website/components/elementTypes/ButtonLink.js +6 -0
- package/dist/website/components/elementTypes/ButtonLink.js.map +1 -0
- package/dist/website/components/elementTypes/CalendarElement.d.ts +14 -0
- package/dist/website/components/elementTypes/CalendarElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/CalendarElement.js +21 -0
- package/dist/website/components/elementTypes/CalendarElement.js.map +1 -0
- package/dist/website/components/elementTypes/CardElement.d.ts +9 -0
- package/dist/website/components/elementTypes/CardElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/CardElement.js +31 -0
- package/dist/website/components/elementTypes/CardElement.js.map +1 -0
- package/dist/website/components/elementTypes/CarouselElement.d.ts +11 -0
- package/dist/website/components/elementTypes/CarouselElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/CarouselElement.js +120 -0
- package/dist/website/components/elementTypes/CarouselElement.js.map +1 -0
- package/dist/website/components/elementTypes/DonateLinkElement.d.ts +7 -0
- package/dist/website/components/elementTypes/DonateLinkElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/DonateLinkElement.js +15 -0
- package/dist/website/components/elementTypes/DonateLinkElement.js.map +1 -0
- package/dist/website/components/elementTypes/ElementBlock.d.ts +10 -0
- package/dist/website/components/elementTypes/ElementBlock.d.ts.map +1 -0
- package/dist/website/components/elementTypes/ElementBlock.js +14 -0
- package/dist/website/components/elementTypes/ElementBlock.js.map +1 -0
- package/dist/website/components/elementTypes/FaqElement.d.ts +8 -0
- package/dist/website/components/elementTypes/FaqElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/FaqElement.js +38 -0
- package/dist/website/components/elementTypes/FaqElement.js.map +1 -0
- package/dist/website/components/elementTypes/FormElement.d.ts +20 -0
- package/dist/website/components/elementTypes/FormElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/FormElement.js +39 -0
- package/dist/website/components/elementTypes/FormElement.js.map +1 -0
- package/dist/website/components/elementTypes/GroupListElement.d.ts +8 -0
- package/dist/website/components/elementTypes/GroupListElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/GroupListElement.js +4 -0
- package/dist/website/components/elementTypes/GroupListElement.js.map +1 -0
- package/dist/website/components/elementTypes/HtmlPreview.d.ts +12 -0
- package/dist/website/components/elementTypes/HtmlPreview.d.ts.map +1 -0
- package/dist/website/components/elementTypes/HtmlPreview.js +8 -0
- package/dist/website/components/elementTypes/HtmlPreview.js.map +1 -0
- package/dist/website/components/elementTypes/IframeElement.d.ts +7 -0
- package/dist/website/components/elementTypes/IframeElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/IframeElement.js +6 -0
- package/dist/website/components/elementTypes/IframeElement.js.map +1 -0
- package/dist/website/components/elementTypes/ImageElement.d.ts +8 -0
- package/dist/website/components/elementTypes/ImageElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/ImageElement.js +67 -0
- package/dist/website/components/elementTypes/ImageElement.js.map +1 -0
- package/dist/website/components/elementTypes/LogoElement.d.ts +10 -0
- package/dist/website/components/elementTypes/LogoElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/LogoElement.js +11 -0
- package/dist/website/components/elementTypes/LogoElement.js.map +1 -0
- package/dist/website/components/elementTypes/MapElement.d.ts +7 -0
- package/dist/website/components/elementTypes/MapElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/MapElement.js +33 -0
- package/dist/website/components/elementTypes/MapElement.js.map +1 -0
- package/dist/website/components/elementTypes/RawHTMLElement.d.ts +8 -0
- package/dist/website/components/elementTypes/RawHTMLElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/RawHTMLElement.js +22 -0
- package/dist/website/components/elementTypes/RawHTMLElement.js.map +1 -0
- package/dist/website/components/elementTypes/RowElement.d.ts +13 -0
- package/dist/website/components/elementTypes/RowElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/RowElement.js +60 -0
- package/dist/website/components/elementTypes/RowElement.js.map +1 -0
- package/dist/website/components/elementTypes/SermonElement.d.ts +7 -0
- package/dist/website/components/elementTypes/SermonElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/SermonElement.js +53 -0
- package/dist/website/components/elementTypes/SermonElement.js.map +1 -0
- package/dist/website/components/elementTypes/StreamElement.d.ts +11 -0
- package/dist/website/components/elementTypes/StreamElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/StreamElement.js +14 -0
- package/dist/website/components/elementTypes/StreamElement.js.map +1 -0
- package/dist/website/components/elementTypes/TableElement.d.ts +7 -0
- package/dist/website/components/elementTypes/TableElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/TableElement.js +33 -0
- package/dist/website/components/elementTypes/TableElement.js.map +1 -0
- package/dist/website/components/elementTypes/TextOnly.d.ts +8 -0
- package/dist/website/components/elementTypes/TextOnly.d.ts.map +1 -0
- package/dist/website/components/elementTypes/TextOnly.js +13 -0
- package/dist/website/components/elementTypes/TextOnly.js.map +1 -0
- package/dist/website/components/elementTypes/TextWithPhoto.d.ts +8 -0
- package/dist/website/components/elementTypes/TextWithPhoto.d.ts.map +1 -0
- package/dist/website/components/elementTypes/TextWithPhoto.js +28 -0
- package/dist/website/components/elementTypes/TextWithPhoto.js.map +1 -0
- package/dist/website/components/elementTypes/VideoElement.d.ts +7 -0
- package/dist/website/components/elementTypes/VideoElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/VideoElement.js +9 -0
- package/dist/website/components/elementTypes/VideoElement.js.map +1 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.d.ts +8 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.js +8 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.js.map +1 -0
- package/dist/website/components/elementTypes/index.d.ts +25 -0
- package/dist/website/components/elementTypes/index.d.ts.map +1 -0
- package/dist/website/components/elementTypes/index.js +25 -0
- package/dist/website/components/elementTypes/index.js.map +1 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.d.ts +11 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.js +37 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.js.map +1 -0
- package/dist/website/components/eventCalendar/EditEventModal.d.ts +9 -0
- package/dist/website/components/eventCalendar/EditEventModal.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/EditEventModal.js +133 -0
- package/dist/website/components/eventCalendar/EditEventModal.js.map +1 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.d.ts +8 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.js +12 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.js.map +1 -0
- package/dist/website/components/eventCalendar/EventCalendar.d.ts +11 -0
- package/dist/website/components/eventCalendar/EventCalendar.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/EventCalendar.js +91 -0
- package/dist/website/components/eventCalendar/EventCalendar.js.map +1 -0
- package/dist/website/components/eventCalendar/GroupCalendar.d.ts +9 -0
- package/dist/website/components/eventCalendar/GroupCalendar.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/GroupCalendar.js +22 -0
- package/dist/website/components/eventCalendar/GroupCalendar.js.map +1 -0
- package/dist/website/components/eventCalendar/RRuleEditor.d.ts +9 -0
- package/dist/website/components/eventCalendar/RRuleEditor.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/RRuleEditor.js +147 -0
- package/dist/website/components/eventCalendar/RRuleEditor.js.map +1 -0
- package/dist/website/components/eventCalendar/index.d.ts +7 -0
- package/dist/website/components/eventCalendar/index.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/index.js +7 -0
- package/dist/website/components/eventCalendar/index.js.map +1 -0
- package/dist/website/components/groups/GroupCard.d.ts +7 -0
- package/dist/website/components/groups/GroupCard.d.ts.map +1 -0
- package/dist/website/components/groups/GroupCard.js +43 -0
- package/dist/website/components/groups/GroupCard.js.map +1 -0
- package/dist/website/components/groups/GroupList.d.ts +7 -0
- package/dist/website/components/groups/GroupList.d.ts.map +1 -0
- package/dist/website/components/groups/GroupList.js +26 -0
- package/dist/website/components/groups/GroupList.js.map +1 -0
- package/dist/website/components/index.d.ts +9 -0
- package/dist/website/components/index.d.ts.map +1 -0
- package/dist/website/components/index.js +9 -0
- package/dist/website/components/index.js.map +1 -0
- package/dist/website/components/video/LiveStream.d.ts +12 -0
- package/dist/website/components/video/LiveStream.d.ts.map +1 -0
- package/dist/website/components/video/LiveStream.js +44 -0
- package/dist/website/components/video/LiveStream.js.map +1 -0
- package/dist/website/components/video/VideoContainer.d.ts +11 -0
- package/dist/website/components/video/VideoContainer.d.ts.map +1 -0
- package/dist/website/components/video/VideoContainer.js +118 -0
- package/dist/website/components/video/VideoContainer.js.map +1 -0
- package/dist/website/helpers/AnimationHelper.d.ts +8 -0
- package/dist/website/helpers/AnimationHelper.d.ts.map +1 -0
- package/dist/website/helpers/AnimationHelper.js +46 -0
- package/dist/website/helpers/AnimationHelper.js.map +1 -0
- package/dist/website/helpers/EnvironmentHelper.d.ts +10 -0
- package/dist/website/helpers/EnvironmentHelper.d.ts.map +1 -0
- package/dist/website/helpers/EnvironmentHelper.js +43 -0
- package/dist/website/helpers/EnvironmentHelper.js.map +1 -0
- package/dist/website/helpers/StreamingServiceHelper.d.ts +13 -0
- package/dist/website/helpers/StreamingServiceHelper.d.ts.map +1 -0
- package/dist/website/helpers/StreamingServiceHelper.js +64 -0
- package/dist/website/helpers/StreamingServiceHelper.js.map +1 -0
- package/dist/website/helpers/StyleHelper.d.ts +23 -0
- package/dist/website/helpers/StyleHelper.d.ts.map +1 -0
- package/dist/website/helpers/StyleHelper.js +171 -0
- package/dist/website/helpers/StyleHelper.js.map +1 -0
- package/dist/website/helpers/index.d.ts +36 -0
- package/dist/website/helpers/index.d.ts.map +1 -0
- package/dist/website/helpers/index.js +6 -0
- package/dist/website/helpers/index.js.map +1 -0
- package/dist/website/helpers/interfaces.d.ts +58 -0
- package/dist/website/helpers/interfaces.d.ts.map +1 -0
- package/dist/website/helpers/interfaces.js +2 -0
- package/dist/website/helpers/interfaces.js.map +1 -0
- package/dist/website/index.d.ts +3 -0
- package/dist/website/index.d.ts.map +1 -0
- package/dist/website/index.js +3 -0
- package/dist/website/index.js.map +1 -0
- package/dist/website/styles/animations.css +65 -0
- package/dist/website/styles/pages.css +797 -0
- package/package.json +157 -109
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useState, useEffect, useMemo, useRef } from "react";
|
|
4
|
+
import { useStripe } from "@stripe/react-stripe-js";
|
|
5
|
+
import { InputBox, ErrorMessages } from "../..";
|
|
6
|
+
import { FundDonations } from ".";
|
|
7
|
+
import { PayPalHostedFields } from "./PayPalHostedFields";
|
|
8
|
+
import { DonationPreviewModal } from "../modals/DonationPreviewModal";
|
|
9
|
+
import { ApiHelper, CurrencyHelper, DateHelper } from "@churchapps/helpers";
|
|
10
|
+
import { Locale, DonationHelper } from "../helpers";
|
|
11
|
+
import { Grid, InputLabel, MenuItem, Select, TextField, FormControl, Button, FormControlLabel, Checkbox, FormGroup, Typography, Alert } from "@mui/material";
|
|
12
|
+
export const MultiGatewayDonationForm = (props) => {
|
|
13
|
+
const stripe = useStripe();
|
|
14
|
+
const [errorMessage, setErrorMessage] = useState();
|
|
15
|
+
const [fundDonations, setFundDonations] = useState();
|
|
16
|
+
const [funds, setFunds] = useState([]);
|
|
17
|
+
const [fundsLoaded, setFundsLoaded] = useState(false);
|
|
18
|
+
const [fundsTotal, setFundsTotal] = useState(0);
|
|
19
|
+
const [transactionFee, setTransactionFee] = useState(0);
|
|
20
|
+
const [payFee, setPayFee] = useState(0);
|
|
21
|
+
const [total, setTotal] = useState(0);
|
|
22
|
+
const [paymentMethodName, setPaymentMethodName] = useState(props?.paymentMethods?.length > 0 ? `${props.paymentMethods[0].name} ${props.paymentMethods[0].last4 ? `****${props.paymentMethods[0].last4}` : props.paymentMethods[0].email || ''}` : "");
|
|
23
|
+
const [selectedGateway, setSelectedGateway] = useState(DonationHelper.normalizeProvider(props?.paymentGateways?.find(g => g.enabled !== false)?.provider || "stripe"));
|
|
24
|
+
const selectedGatewayObj = useMemo(() => {
|
|
25
|
+
return (props.paymentGateways.find((g) => DonationHelper.normalizeProvider(g.provider) === selectedGateway) || null);
|
|
26
|
+
}, [props.paymentGateways, selectedGateway]);
|
|
27
|
+
const [donationType, setDonationType] = useState("once");
|
|
28
|
+
const [showDonationPreviewModal, setShowDonationPreviewModal] = useState(false);
|
|
29
|
+
const [interval, setInterval] = useState("one_month");
|
|
30
|
+
const [gateway, setGateway] = useState(selectedGatewayObj);
|
|
31
|
+
const paypalClientId = useMemo(() => {
|
|
32
|
+
const gw = props.paymentGateways.find(g => DonationHelper.isProvider(g.provider, "paypal"));
|
|
33
|
+
return gw?.publicKey || "";
|
|
34
|
+
}, [props.paymentGateways]);
|
|
35
|
+
const hostedRef = useRef(null);
|
|
36
|
+
const feeTimeoutRef = useRef(null);
|
|
37
|
+
const [donation, setDonation] = useState({
|
|
38
|
+
id: props?.paymentMethods?.length > 0 ? props.paymentMethods[0].id : "",
|
|
39
|
+
type: props?.paymentMethods?.length > 0 ? props.paymentMethods[0].type : "card",
|
|
40
|
+
provider: props?.paymentMethods?.length > 0
|
|
41
|
+
? DonationHelper.normalizeProvider(props.paymentMethods[0].provider)
|
|
42
|
+
: selectedGateway,
|
|
43
|
+
customerId: props.customerId,
|
|
44
|
+
person: {
|
|
45
|
+
id: props.person?.id || "",
|
|
46
|
+
email: props.person?.contactInfo?.email || "",
|
|
47
|
+
name: props.person?.name?.display || ""
|
|
48
|
+
},
|
|
49
|
+
amount: 0,
|
|
50
|
+
billing_cycle_anchor: +new Date(),
|
|
51
|
+
interval: {
|
|
52
|
+
interval_count: 1,
|
|
53
|
+
interval: "month"
|
|
54
|
+
},
|
|
55
|
+
funds: [],
|
|
56
|
+
gatewayId: props?.paymentMethods?.length > 0 ? props.paymentMethods[0].gatewayId : selectedGatewayObj?.id,
|
|
57
|
+
currency: selectedGatewayObj?.currency || "usd"
|
|
58
|
+
});
|
|
59
|
+
const loadFunds = useCallback(async () => {
|
|
60
|
+
setFundsLoaded(false);
|
|
61
|
+
try {
|
|
62
|
+
const data = await ApiHelper.get("/funds", "GivingApi");
|
|
63
|
+
const fundList = Array.isArray(data) ? data : [];
|
|
64
|
+
setFunds(fundList);
|
|
65
|
+
if (fundList.length)
|
|
66
|
+
setFundDonations([{ fundId: fundList[0].id }]);
|
|
67
|
+
else
|
|
68
|
+
setFundDonations([]);
|
|
69
|
+
}
|
|
70
|
+
catch (_error) {
|
|
71
|
+
setFunds([]);
|
|
72
|
+
setFundDonations([]);
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
setFundsLoaded(true);
|
|
76
|
+
}
|
|
77
|
+
}, []);
|
|
78
|
+
const loadGateway = useCallback(async () => {
|
|
79
|
+
try {
|
|
80
|
+
const response = await ApiHelper.get(`/donate/gateways/${props?.church?.id || ""}`, "GivingApi");
|
|
81
|
+
const gateways = Array.isArray(response?.gateways) ? response.gateways : [];
|
|
82
|
+
const primaryGateway = gateways.find((g) => DonationHelper.normalizeProvider(g.provider) === selectedGateway);
|
|
83
|
+
if (primaryGateway)
|
|
84
|
+
setGateway(primaryGateway);
|
|
85
|
+
}
|
|
86
|
+
catch (_error) {
|
|
87
|
+
// ignore gateway load errors; component will handle gracefully
|
|
88
|
+
}
|
|
89
|
+
}, [props?.church?.id, selectedGateway]);
|
|
90
|
+
const handleSave = useCallback(() => {
|
|
91
|
+
if (donation.amount < .5)
|
|
92
|
+
setErrorMessage(Locale.label("donation.donationForm.tooLow"));
|
|
93
|
+
else
|
|
94
|
+
setShowDonationPreviewModal(true);
|
|
95
|
+
}, [donation.amount]);
|
|
96
|
+
const handleKeyDown = useCallback((e) => { if (e.key === "Enter") {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
handleSave();
|
|
99
|
+
} }, [handleSave]);
|
|
100
|
+
const handleCheckChange = useCallback((_e, checked) => {
|
|
101
|
+
const d = { ...donation };
|
|
102
|
+
d.amount = checked ? fundsTotal + transactionFee : fundsTotal;
|
|
103
|
+
const showFee = checked ? transactionFee : 0;
|
|
104
|
+
setTotal(d.amount);
|
|
105
|
+
setPayFee(showFee);
|
|
106
|
+
setDonation(d);
|
|
107
|
+
}, [donation, fundsTotal, transactionFee]);
|
|
108
|
+
const handleChange = useCallback((e) => {
|
|
109
|
+
setErrorMessage(undefined);
|
|
110
|
+
const d = { ...donation };
|
|
111
|
+
const value = e.target.value;
|
|
112
|
+
switch (e.target.name) {
|
|
113
|
+
case "gateway":
|
|
114
|
+
setSelectedGateway(value);
|
|
115
|
+
d.provider = value;
|
|
116
|
+
const matchedGateway = props.paymentGateways.find(g => DonationHelper.normalizeProvider(g.provider) === value);
|
|
117
|
+
d.gatewayId = matchedGateway?.id;
|
|
118
|
+
d.currency = matchedGateway?.currency || "usd";
|
|
119
|
+
// Reset payment method when changing gateways
|
|
120
|
+
const availableMethods = props.paymentMethods.filter(pm => DonationHelper.normalizeProvider(pm.provider) === value);
|
|
121
|
+
if (availableMethods.length > 0) {
|
|
122
|
+
d.id = availableMethods[0].id;
|
|
123
|
+
d.type = availableMethods[0].type;
|
|
124
|
+
setPaymentMethodName(`${availableMethods[0].name} ${availableMethods[0].last4 ? `****${availableMethods[0].last4}` : availableMethods[0].email || ''}`);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
d.id = "";
|
|
128
|
+
if (value === "paypal")
|
|
129
|
+
d.type = "paypal";
|
|
130
|
+
}
|
|
131
|
+
break;
|
|
132
|
+
case "method":
|
|
133
|
+
d.id = value;
|
|
134
|
+
const pm = props.paymentMethods.find(pm => pm.id === value);
|
|
135
|
+
if (pm) {
|
|
136
|
+
d.type = pm.type;
|
|
137
|
+
d.provider = DonationHelper.normalizeProvider(pm.provider);
|
|
138
|
+
d.gatewayId = pm.gatewayId || gateway?.id || selectedGatewayObj?.id;
|
|
139
|
+
setPaymentMethodName(`${pm.name} ${pm.last4 ? `****${pm.last4}` : pm.email || ''}`);
|
|
140
|
+
}
|
|
141
|
+
break;
|
|
142
|
+
case "type":
|
|
143
|
+
setDonationType(value);
|
|
144
|
+
break;
|
|
145
|
+
case "date":
|
|
146
|
+
d.billing_cycle_anchor = value ? +new Date(value) : +new Date();
|
|
147
|
+
break;
|
|
148
|
+
case "interval":
|
|
149
|
+
setInterval(value);
|
|
150
|
+
d.interval = DonationHelper.getInterval(value);
|
|
151
|
+
break;
|
|
152
|
+
case "notes":
|
|
153
|
+
d.notes = value;
|
|
154
|
+
break;
|
|
155
|
+
case "transaction-fee":
|
|
156
|
+
const element = e.target;
|
|
157
|
+
d.amount = element.checked ? fundsTotal + transactionFee : fundsTotal;
|
|
158
|
+
const showFee = element.checked ? transactionFee : 0;
|
|
159
|
+
setTotal(d.amount);
|
|
160
|
+
setPayFee(showFee);
|
|
161
|
+
}
|
|
162
|
+
setDonation(d);
|
|
163
|
+
}, [donation, props.paymentMethods, fundsTotal, transactionFee, gateway?.id, props.paymentGateways, selectedGatewayObj?.id]);
|
|
164
|
+
const handleCancel = useCallback(() => { setDonationType(undefined); }, []);
|
|
165
|
+
const handleDonationSelect = useCallback((type) => {
|
|
166
|
+
const dt = donationType === type ? undefined : type;
|
|
167
|
+
setDonationType(dt);
|
|
168
|
+
}, [donationType]);
|
|
169
|
+
const handleSingleDonationClick = useCallback(() => handleDonationSelect("once"), [handleDonationSelect]);
|
|
170
|
+
const handleRecurringDonationClick = useCallback(() => handleDonationSelect("recurring"), [handleDonationSelect]);
|
|
171
|
+
const makeDonation = useCallback(async (message) => {
|
|
172
|
+
let results;
|
|
173
|
+
const churchObj = {
|
|
174
|
+
name: props?.church?.name || "",
|
|
175
|
+
subDomain: props?.church?.subDomain || "",
|
|
176
|
+
churchURL: typeof window !== "undefined" ? window.location.origin : "",
|
|
177
|
+
logo: props?.churchLogo || ""
|
|
178
|
+
};
|
|
179
|
+
// If using PayPal without a saved method, try Hosted Fields
|
|
180
|
+
if (selectedGateway === "paypal" && (!donation.id || donation.id === "") && paypalClientId) {
|
|
181
|
+
try {
|
|
182
|
+
const payload = await hostedRef.current?.submit();
|
|
183
|
+
const orderId = payload?.orderId || payload?.id || "";
|
|
184
|
+
if (orderId) {
|
|
185
|
+
// Capture and persist via unified /donate/charge endpoint for PayPal
|
|
186
|
+
const compactFunds = (donation.funds || []).map((f) => ({ id: f.id, amount: f.amount }));
|
|
187
|
+
results = await ApiHelper.post("/donate/charge", {
|
|
188
|
+
provider: "paypal",
|
|
189
|
+
gatewayId: selectedGatewayObj?.id,
|
|
190
|
+
id: orderId,
|
|
191
|
+
churchId: props?.church?.id || "",
|
|
192
|
+
amount: total,
|
|
193
|
+
funds: compactFunds,
|
|
194
|
+
person: donation.person,
|
|
195
|
+
notes: donation?.notes || ""
|
|
196
|
+
}, "GivingApi");
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
catch (e) {
|
|
200
|
+
console.warn("Hosted Fields submit failed, falling back to standard flow.", e);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
// Standard flow (Stripe or saved payment method)
|
|
204
|
+
if (!results) {
|
|
205
|
+
const payload = {
|
|
206
|
+
...donation,
|
|
207
|
+
provider: donation.provider || selectedGateway,
|
|
208
|
+
gatewayId: donation.gatewayId || gateway?.id || selectedGatewayObj?.id,
|
|
209
|
+
church: churchObj
|
|
210
|
+
};
|
|
211
|
+
if (donationType === "once")
|
|
212
|
+
results = await ApiHelper.post("/donate/charge", payload, "GivingApi");
|
|
213
|
+
if (donationType === "recurring")
|
|
214
|
+
results = await ApiHelper.post("/donate/subscribe", payload, "GivingApi");
|
|
215
|
+
}
|
|
216
|
+
// Handle 3D Secure authentication if required (Stripe only)
|
|
217
|
+
if (selectedGateway === "stripe") {
|
|
218
|
+
const threeDSResult = await DonationHelper.handle3DSIfRequired(results, stripe);
|
|
219
|
+
if (threeDSResult.requiresAction) {
|
|
220
|
+
setShowDonationPreviewModal(false);
|
|
221
|
+
if (threeDSResult.success) {
|
|
222
|
+
setDonationType(undefined);
|
|
223
|
+
props.donationSuccess(message);
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
setErrorMessage(Locale.label("donation.common.error") + ": " + threeDSResult.error);
|
|
227
|
+
}
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
if (results?.status === "succeeded" || results?.status === "pending" || results?.status === "active" || results?.status === "processing" || results?.status === "CREATED") {
|
|
232
|
+
setShowDonationPreviewModal(false);
|
|
233
|
+
setDonationType(undefined);
|
|
234
|
+
props.donationSuccess(message);
|
|
235
|
+
}
|
|
236
|
+
if (results?.raw?.message || results?.message) {
|
|
237
|
+
setShowDonationPreviewModal(false);
|
|
238
|
+
setErrorMessage(Locale.label("donation.common.error") + ": " + (results?.raw?.message || results?.message));
|
|
239
|
+
}
|
|
240
|
+
}, [donation, donationType, gateway?.id, paypalClientId, props.church?.name, props.church?.subDomain, props.churchLogo, props.donationSuccess, selectedGateway, selectedGatewayObj?.id, total, stripe]);
|
|
241
|
+
const getTransactionFee = useCallback(async (amount, activeGatewayId, provider = "stripe", paymentMethodType) => {
|
|
242
|
+
if (amount > 0) {
|
|
243
|
+
try {
|
|
244
|
+
const payload = { amount, provider, gatewayId: activeGatewayId, currency: gateway?.currency || "USD" };
|
|
245
|
+
if (paymentMethodType === "bank")
|
|
246
|
+
payload.type = "ach";
|
|
247
|
+
const response = await ApiHelper.post("/donate/fee?churchId=" + (props?.church?.id || ""), payload, "GivingApi");
|
|
248
|
+
return response.calculatedFee;
|
|
249
|
+
}
|
|
250
|
+
catch (error) {
|
|
251
|
+
console.log("Error calculating transaction fee: ", error);
|
|
252
|
+
return 0;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
return 0;
|
|
257
|
+
}
|
|
258
|
+
}, [props?.church?.id]);
|
|
259
|
+
const handleFundDonationsChange = useCallback((fd) => {
|
|
260
|
+
setErrorMessage(undefined);
|
|
261
|
+
setFundDonations(fd);
|
|
262
|
+
let totalAmount = 0;
|
|
263
|
+
const selectedFunds = [];
|
|
264
|
+
for (const fundDonation of fd) {
|
|
265
|
+
totalAmount += fundDonation.amount || 0;
|
|
266
|
+
const fund = funds.find((fund) => fund.id === fundDonation.fundId);
|
|
267
|
+
if (fund) {
|
|
268
|
+
selectedFunds.push({ id: fundDonation.fundId, amount: fundDonation.amount || 0, name: fund.name });
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
const d = { ...donation };
|
|
272
|
+
d.amount = totalAmount;
|
|
273
|
+
d.funds = selectedFunds;
|
|
274
|
+
setFundsTotal(totalAmount);
|
|
275
|
+
// Clear existing timeout
|
|
276
|
+
if (feeTimeoutRef.current) {
|
|
277
|
+
window.clearTimeout(feeTimeoutRef.current);
|
|
278
|
+
}
|
|
279
|
+
// Set initial totals without fee for immediate UI update
|
|
280
|
+
setTotal(totalAmount);
|
|
281
|
+
setDonation(d);
|
|
282
|
+
// Debounce fee calculation to prevent excessive API calls
|
|
283
|
+
feeTimeoutRef.current = window.setTimeout(async () => {
|
|
284
|
+
const fee = await getTransactionFee(totalAmount, d.gatewayId || gateway?.id || selectedGatewayObj?.id, d.provider || selectedGateway, d.type);
|
|
285
|
+
setTransactionFee(fee);
|
|
286
|
+
if (gateway && gateway.payFees === true) {
|
|
287
|
+
const updatedAmount = totalAmount + fee;
|
|
288
|
+
setTotal(updatedAmount);
|
|
289
|
+
setPayFee(fee);
|
|
290
|
+
setDonation(prev => ({ ...prev, amount: updatedAmount }));
|
|
291
|
+
}
|
|
292
|
+
}, 500);
|
|
293
|
+
}, [donation, funds, gateway, selectedGatewayObj?.id, selectedGateway, getTransactionFee]);
|
|
294
|
+
useEffect(() => {
|
|
295
|
+
loadFunds();
|
|
296
|
+
}, [loadFunds]);
|
|
297
|
+
useEffect(() => {
|
|
298
|
+
if (props?.church?.id) {
|
|
299
|
+
loadGateway();
|
|
300
|
+
}
|
|
301
|
+
}, [loadGateway]);
|
|
302
|
+
useEffect(() => {
|
|
303
|
+
if (selectedGatewayObj && (gateway?.id !== selectedGatewayObj.id)) {
|
|
304
|
+
setGateway(selectedGatewayObj);
|
|
305
|
+
}
|
|
306
|
+
}, [selectedGatewayObj, gateway?.id]);
|
|
307
|
+
useEffect(() => {
|
|
308
|
+
setDonation((prev) => {
|
|
309
|
+
const nextProvider = prev.provider || selectedGateway;
|
|
310
|
+
const nextGatewayId = selectedGatewayObj?.id || prev.gatewayId;
|
|
311
|
+
if (nextProvider === prev.provider && nextGatewayId === prev.gatewayId)
|
|
312
|
+
return prev;
|
|
313
|
+
return { ...prev, provider: nextProvider, gatewayId: nextGatewayId, currency: selectedGatewayObj?.currency || "usd" };
|
|
314
|
+
});
|
|
315
|
+
}, [selectedGateway, selectedGatewayObj?.id, selectedGatewayObj?.currency]);
|
|
316
|
+
// Cleanup timeout on unmount
|
|
317
|
+
useEffect(() => {
|
|
318
|
+
return () => {
|
|
319
|
+
if (feeTimeoutRef.current) {
|
|
320
|
+
window.clearTimeout(feeTimeoutRef.current);
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
}, []);
|
|
324
|
+
const availablePaymentMethods = props.paymentMethods.filter(pm => DonationHelper.normalizeProvider(pm.provider) === selectedGateway);
|
|
325
|
+
const availableGateways = props.paymentGateways.filter(g => g.enabled !== false);
|
|
326
|
+
if (!fundsLoaded) {
|
|
327
|
+
return _jsx(Alert, { severity: "info", children: "Loading donation settings\u2026" });
|
|
328
|
+
}
|
|
329
|
+
if (!funds.length) {
|
|
330
|
+
return (_jsx(Alert, { severity: "warning", children: "No donation funds have been configured for this church. Please contact your administrator." }));
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
return (_jsxs(_Fragment, { children: [_jsx(DonationPreviewModal, { show: showDonationPreviewModal, onHide: () => setShowDonationPreviewModal(false), handleDonate: makeDonation, donation: {
|
|
334
|
+
...donation,
|
|
335
|
+
person: {
|
|
336
|
+
id: donation.person?.id || "",
|
|
337
|
+
email: donation.person?.email || "",
|
|
338
|
+
name: donation.person?.name || ""
|
|
339
|
+
}
|
|
340
|
+
}, donationType: donationType || "", payFee: payFee, paymentMethodName: paymentMethodName, funds: funds }), _jsxs(InputBox, { id: "donation-form", "aria-label": "donation-box", headerIcon: "volunteer_activism", headerText: Locale.label("donation.donationForm.donate"), ariaLabelSave: "save-button", cancelFunction: donationType ? handleCancel : undefined, saveFunction: donationType ? handleSave : undefined, saveText: Locale.label("donation.donationForm.preview"), children: [_jsxs(Grid, { id: "donation-type-selector", container: true, spacing: 3, children: [_jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(Button, { id: "single-donation-button", "aria-label": "single-donation", size: "small", fullWidth: true, style: { minHeight: "50px" }, variant: donationType === "once" ? "contained" : "outlined", onClick: handleSingleDonationClick, children: Locale.label("donation.donationForm.make") }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(Button, { id: "recurring-donation-button", "aria-label": "recurring-donation", size: "small", fullWidth: true, style: { minHeight: "50px" }, variant: donationType === "recurring" ? "contained" : "outlined", onClick: handleRecurringDonationClick, children: Locale.label("donation.donationForm.makeRecurring") }) })] }), donationType && (_jsxs("div", { id: "donation-details", style: { marginTop: "20px" }, children: [_jsxs(Grid, { container: true, spacing: 3, children: [availableGateways.length > 1 && (_jsx(Grid, { size: { xs: 12 }, children: _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: "Payment Provider" }), _jsx(Select, { id: "gateway-select", label: "Payment Provider", name: "gateway", "aria-label": "gateway", value: selectedGateway, onChange: handleChange, children: availableGateways.map((gw) => (_jsx(MenuItem, { value: DonationHelper.normalizeProvider(gw.provider), children: DonationHelper.isProvider(gw.provider, "stripe") ? "Stripe" : "PayPal" }, gw.provider))) })] }) })), selectedGateway !== "paypal" || availablePaymentMethods.length > 0 ? (_jsx(Grid, { size: { xs: 12 }, children: _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: Locale.label("donation.donationForm.method") }), _jsx(Select, { id: "payment-method-select", label: Locale.label("donation.donationForm.method"), name: "method", "aria-label": "method", value: donation.id, className: "capitalize", onChange: handleChange, children: availablePaymentMethods.map((paymentMethod) => (_jsxs(MenuItem, { value: paymentMethod.id, children: [paymentMethod.name, " ", paymentMethod.last4 ? `****${paymentMethod.last4}` : paymentMethod.email || ''] }, paymentMethod.id))) })] }) })) : (_jsxs(Grid, { size: { xs: 12 }, children: [_jsx(Typography, { variant: "subtitle1", sx: { mb: 1 }, children: "Enter card details (PayPal Hosted Fields)" }), _jsx(PayPalHostedFields, { ref: hostedRef, clientId: paypalClientId, getClientToken: async () => {
|
|
341
|
+
try {
|
|
342
|
+
const resp = await ApiHelper.post("/donate/client-token", {
|
|
343
|
+
churchId: props?.church?.id || "",
|
|
344
|
+
provider: "paypal",
|
|
345
|
+
gatewayId: selectedGatewayObj?.id || gateway?.id
|
|
346
|
+
}, "GivingApi");
|
|
347
|
+
const token = resp?.clientToken || resp?.token || resp?.result || resp;
|
|
348
|
+
return typeof token === "string" && token.length > 0 ? token : "";
|
|
349
|
+
}
|
|
350
|
+
catch {
|
|
351
|
+
return "";
|
|
352
|
+
}
|
|
353
|
+
}, createOrder: async () => {
|
|
354
|
+
try {
|
|
355
|
+
const fundsPayload = (donation?.funds || [])
|
|
356
|
+
.filter((f) => (f.amount || 0) > 0 && f.id)
|
|
357
|
+
.map((f) => ({ id: f.id, amount: f.amount || 0 }));
|
|
358
|
+
const response = await ApiHelper.post("/donate/create-order", {
|
|
359
|
+
churchId: props?.church?.id || "",
|
|
360
|
+
provider: "paypal",
|
|
361
|
+
gatewayId: selectedGatewayObj?.id || gateway?.id,
|
|
362
|
+
amount: total,
|
|
363
|
+
currency: "USD",
|
|
364
|
+
funds: fundsPayload,
|
|
365
|
+
notes: donation?.notes || ""
|
|
366
|
+
}, "GivingApi");
|
|
367
|
+
return response?.id || response?.orderId || "";
|
|
368
|
+
}
|
|
369
|
+
catch (_e) {
|
|
370
|
+
return "";
|
|
371
|
+
}
|
|
372
|
+
} })] }))] }), donationType === "recurring" && (_jsxs(Grid, { container: true, spacing: 3, style: { marginTop: 10 }, children: [_jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(TextField, { id: "start-date-field", fullWidth: true, name: "date", type: "date", "aria-label": "date", label: Locale.label("donation.donationForm.startDate"), value: DateHelper.formatHtml5Date(new Date(donation.billing_cycle_anchor || Date.now())), onChange: handleChange, onKeyDown: handleKeyDown }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: Locale.label("donation.donationForm.frequency") }), _jsxs(Select, { id: "frequency-select", label: Locale.label("donation.donationForm.frequency"), name: "interval", "aria-label": "interval", value: interval, onChange: handleChange, children: [_jsx(MenuItem, { value: "one_week", children: Locale.label("donation.donationForm.weekly") }), _jsx(MenuItem, { value: "two_week", children: Locale.label("donation.donationForm.biWeekly") }), _jsx(MenuItem, { value: "one_month", children: Locale.label("donation.donationForm.monthly") }), _jsx(MenuItem, { value: "three_month", children: Locale.label("donation.donationForm.quarterly") }), _jsx(MenuItem, { value: "one_year", children: Locale.label("donation.donationForm.annually") })] })] }) })] })), _jsxs("div", { id: "fund-selection", className: "form-group", children: [funds && fundDonations && (_jsxs(_Fragment, { children: [_jsx("h4", { children: Locale.label("donation.donationForm.fund") }), _jsx(FundDonations, { fundDonations: fundDonations, funds: funds, updatedFunction: handleFundDonationsChange, currency: gateway?.currency })] })), fundsTotal > 0 && (_jsxs(_Fragment, { children: [(gateway?.payFees === true) ? (_jsxs(Typography, { fontSize: 14, fontStyle: "italic", children: ["*", Locale.label("donation.donationForm.fees").replace("{}", CurrencyHelper.formatCurrencyWithLocale(transactionFee, gateway?.currency || "USD"))] })) : (_jsx(FormGroup, { children: _jsx(FormControlLabel, { control: _jsx(Checkbox, {}), name: "transaction-fee", label: Locale.label("donation.donationForm.cover").replace("{}", CurrencyHelper.formatCurrencyWithLocale(transactionFee, gateway?.currency || "USD")), onChange: handleCheckChange }) })), _jsxs("p", { children: [Locale.label("donation.donationForm.total"), ": ", CurrencyHelper.formatCurrencyWithLocale(total, gateway?.currency || "USD")] })] })), _jsx(TextField, { id: "donation-notes", fullWidth: true, label: "Memo (optional)", multiline: true, "aria-label": "note", name: "notes", value: donation.notes || "", onChange: handleChange, onKeyDown: handleKeyDown })] }), errorMessage && _jsx(ErrorMessages, { errors: [errorMessage] })] }))] })] }));
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
//# sourceMappingURL=MultiGatewayDonationForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PaperProps } from "@mui/material/Paper";
|
|
3
|
+
interface Props {
|
|
4
|
+
churchId: string;
|
|
5
|
+
mainContainerCssProps?: PaperProps;
|
|
6
|
+
showHeader?: boolean;
|
|
7
|
+
recaptchaSiteKey: string;
|
|
8
|
+
churchLogo?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const NonAuthDonation: React.FC<Props>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=NonAuthDonation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NonAuthDonation.d.ts","sourceRoot":"","sources":["../../../src/donations/components/NonAuthDonation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,UAAU,KAAK;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,UAAU,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwI3C,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
|
+
import { Elements } from "@stripe/react-stripe-js";
|
|
5
|
+
import { loadStripe } from "@stripe/stripe-js";
|
|
6
|
+
import { ApiHelper } from "@churchapps/helpers";
|
|
7
|
+
import { NonAuthDonationInner } from "./NonAuthDonationInner";
|
|
8
|
+
import { PayPalNonAuthDonationInner } from "./PayPalNonAuthDonationInner";
|
|
9
|
+
import { DonationHelper } from "../helpers";
|
|
10
|
+
import { FormControl, InputLabel, Select, MenuItem, Box, Typography, ToggleButtonGroup, ToggleButton } from "@mui/material";
|
|
11
|
+
export const NonAuthDonation = ({ mainContainerCssProps, showHeader, ...props }) => {
|
|
12
|
+
const [stripePromise, setStripe] = useState(null);
|
|
13
|
+
const [availableGateways, setAvailableGateways] = useState([]);
|
|
14
|
+
const [selectedGateway, setSelectedGateway] = useState("stripe");
|
|
15
|
+
const [paymentType, setPaymentType] = useState("card");
|
|
16
|
+
const [loading, setLoading] = useState(true);
|
|
17
|
+
const init = () => {
|
|
18
|
+
ApiHelper.get(`/donate/gateways/${props.churchId}`, "GivingApi").then((response) => {
|
|
19
|
+
const gateways = Array.isArray(response?.gateways) ? response.gateways : [];
|
|
20
|
+
const enabledGateways = gateways.filter((gateway) => gateway && gateway.enabled !== false);
|
|
21
|
+
setAvailableGateways(enabledGateways);
|
|
22
|
+
if (enabledGateways.length > 0) {
|
|
23
|
+
const defaultGateway = DonationHelper.findGatewayByProvider(enabledGateways, "stripe") || enabledGateways[0];
|
|
24
|
+
setSelectedGateway(DonationHelper.normalizeProvider(defaultGateway?.provider));
|
|
25
|
+
const stripeGateway = DonationHelper.findGatewayByProvider(enabledGateways, "stripe");
|
|
26
|
+
if (stripeGateway?.publicKey) {
|
|
27
|
+
setStripe(loadStripe(stripeGateway.publicKey));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
setLoading(false);
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const handleGatewayChange = (event) => {
|
|
34
|
+
setSelectedGateway(event.target.value);
|
|
35
|
+
};
|
|
36
|
+
useEffect(init, []); //eslint-disable-line
|
|
37
|
+
if (loading) {
|
|
38
|
+
return _jsx(Box, { sx: { p: 3 }, children: _jsx(Typography, { children: "Loading payment options..." }) });
|
|
39
|
+
}
|
|
40
|
+
if (availableGateways.length === 0) {
|
|
41
|
+
return _jsx(Box, { sx: { p: 3 }, children: _jsx(Typography, { children: "No payment gateways available for this church." }) });
|
|
42
|
+
}
|
|
43
|
+
const renderGatewaySelector = () => {
|
|
44
|
+
if (availableGateways.length <= 1)
|
|
45
|
+
return null;
|
|
46
|
+
return (_jsx(Box, { sx: { mb: 3 }, children: _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: "Payment Method" }), _jsx(Select, { value: selectedGateway, label: "Payment Method", onChange: handleGatewayChange, children: availableGateways.map((gateway) => (_jsx(MenuItem, { value: DonationHelper.normalizeProvider(gateway.provider), children: DonationHelper.isProvider(gateway.provider, "stripe") ? "Credit Card (Stripe)" : "Credit Card (PayPal)" }, gateway.id))) })] }) }));
|
|
47
|
+
};
|
|
48
|
+
const renderPaymentTypeSelector = () => {
|
|
49
|
+
// Only show if Stripe is available (ACH requires Stripe)
|
|
50
|
+
// Only show ACH if the currency is USD
|
|
51
|
+
const stripeGateway = DonationHelper.findGatewayByProvider(availableGateways, "stripe");
|
|
52
|
+
const currency = stripeGateway?.currency || "usd";
|
|
53
|
+
if (!stripeGateway || selectedGateway !== "stripe")
|
|
54
|
+
return null;
|
|
55
|
+
return (_jsx(Box, { sx: { mb: 3 }, children: _jsxs(ToggleButtonGroup, { value: paymentType, exclusive: true, onChange: (_, value) => value && setPaymentType(value), fullWidth: true, size: "small", sx: { backgroundColor: "#FFFFFF", borderRadius: 1 }, children: [_jsx(ToggleButton, { value: "card", sx: { backgroundColor: "#FFFFFF", color: "#333", "&.Mui-selected": { backgroundColor: "#1976d2", color: "#FFFFFF" }, "&:hover": { backgroundColor: "#f5f5f5" }, "&.Mui-selected:hover": { backgroundColor: "#1565c0" } }, children: "Credit/Debit Card" }), currency === "usd" && _jsx(ToggleButton, { value: "bank", sx: { backgroundColor: "#FFFFFF", color: "#333", "&.Mui-selected": { backgroundColor: "#1976d2", color: "#FFFFFF" }, "&:hover": { backgroundColor: "#f5f5f5" }, "&.Mui-selected:hover": { backgroundColor: "#1565c0" } }, children: "Bank Account (ACH)" })] }) }));
|
|
56
|
+
};
|
|
57
|
+
const renderDonationForm = () => {
|
|
58
|
+
if (selectedGateway === "paypal") {
|
|
59
|
+
const paypalGateway = DonationHelper.findGatewayByProvider(availableGateways, "paypal");
|
|
60
|
+
return (_jsx(PayPalNonAuthDonationInner, { churchId: props.churchId, mainContainerCssProps: mainContainerCssProps, showHeader: false, recaptchaSiteKey: props.recaptchaSiteKey, churchLogo: props?.churchLogo, paypalClientId: paypalGateway?.publicKey || null }));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return (_jsx(Elements, { stripe: stripePromise, children: _jsx(NonAuthDonationInner, { churchId: props.churchId, mainContainerCssProps: mainContainerCssProps, showHeader: false, recaptchaSiteKey: props.recaptchaSiteKey, churchLogo: props?.churchLogo, paymentType: paymentType }) }));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return (_jsxs(Box, { children: [showHeader && (_jsx(Box, { sx: { mb: 2 }, children: _jsx(Typography, { variant: "h5", component: "h2", gutterBottom: true, children: "Donate" }) })), renderGatewaySelector(), renderPaymentTypeSelector(), renderDonationForm(), _jsx(Box, { sx: { marginTop: "15px", fontSize: "14px" }, children: _jsx("a", { href: "/mobile/donate", style: { color: "#1976d2" }, children: "Login to manage existing donations" }) })] }));
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=NonAuthDonation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NonAuthDonation.js","sourceRoot":"","sources":["../../../src/donations/components/NonAuthDonation.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAw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KAAK,EACjB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,EACxC,UAAU,EAAE,KAAK,EAAE,UAAU,EAC7B,WAAW,EAAE,WAAW,GACxB,GACO,CACZ,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,GAAG,eACD,UAAU,IAAI,CACb,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,YAChB,KAAC,UAAU,IAAC,OAAO,EAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,YAAY,6BAEvC,GACT,CACP,EACA,qBAAqB,EAAE,EACvB,yBAAyB,EAAE,EAC3B,kBAAkB,EAAE,EACrB,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,YAC9C,YAAG,IAAI,EAAC,gBAAgB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,mDAEhD,GACA,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PaperProps } from "@mui/material/Paper";
|
|
3
|
+
interface Props {
|
|
4
|
+
churchId: string;
|
|
5
|
+
mainContainerCssProps?: PaperProps;
|
|
6
|
+
showHeader?: boolean;
|
|
7
|
+
recaptchaSiteKey: string;
|
|
8
|
+
churchLogo?: string;
|
|
9
|
+
paymentType?: "card" | "bank";
|
|
10
|
+
}
|
|
11
|
+
export declare const NonAuthDonationInner: React.FC<Props>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=NonAuthDonationInner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NonAuthDonationInner.d.ts","sourceRoot":"","sources":["../../../src/donations/components/NonAuthDonationInner.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,UAAU,KAAK;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,UAAU,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA0hBhD,CAAC"}
|