@churchapps/apphelper 0.6.25 → 0.7.1
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 +64 -16
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
paypal?: any;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export interface PayPalHostedFieldsHandle {
|
|
7
|
+
submit: () => Promise<any>;
|
|
8
|
+
isReady: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface Props {
|
|
11
|
+
clientId: string;
|
|
12
|
+
createOrder: () => Promise<string>;
|
|
13
|
+
getClientToken?: () => Promise<string>;
|
|
14
|
+
onValidityChange?: (valid: boolean) => void;
|
|
15
|
+
onIneligible?: (reason: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const PayPalHostedFields: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<PayPalHostedFieldsHandle>>;
|
|
18
|
+
export default PayPalHostedFields;
|
|
19
|
+
//# sourceMappingURL=PayPalHostedFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayPalHostedFields.d.ts","sourceRoot":"","sources":["../../../src/donations/components/PayPalHostedFields.tsx"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QAAG,MAAM,CAAC,EAAE,GAAG,CAAA;KAAE;CAClC;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,KAAK;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AA2BD,eAAO,MAAM,kBAAkB,4GAqG7B,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useRef, useState, forwardRef, useImperativeHandle } from "react";
|
|
4
|
+
// Lightweight loader for the PayPal JS SDK with hosted-fields component
|
|
5
|
+
function loadPayPalSdk(clientId, clientToken) {
|
|
6
|
+
return new Promise((resolve, reject) => {
|
|
7
|
+
if (typeof window === "undefined") {
|
|
8
|
+
reject(new Error("Window not available"));
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (window.paypal && window.paypal.HostedFields) {
|
|
12
|
+
resolve(window.paypal);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
// Avoid adding script multiple times
|
|
16
|
+
const existing = document.querySelector('script[data-apphelper-paypal-sdk="true"]');
|
|
17
|
+
if (existing) {
|
|
18
|
+
existing.addEventListener("load", () => resolve(window.paypal));
|
|
19
|
+
existing.addEventListener("error", (e) => reject(e));
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const script = document.createElement("script");
|
|
23
|
+
script.src = `https://www.paypal.com/sdk/js?client-id=${encodeURIComponent(clientId)}&components=hosted-fields&intent=capture&commit=true`;
|
|
24
|
+
script.async = true;
|
|
25
|
+
script.dataset.apphelperPaypalSdk = "true";
|
|
26
|
+
if (clientToken)
|
|
27
|
+
script.dataset.clientToken = clientToken;
|
|
28
|
+
script.addEventListener("load", () => resolve(window.paypal));
|
|
29
|
+
script.addEventListener("error", (e) => reject(e));
|
|
30
|
+
document.body.appendChild(script);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export const PayPalHostedFields = forwardRef((props, ref) => {
|
|
34
|
+
const containerRef = useRef(null);
|
|
35
|
+
const hostedFieldsRef = useRef(null);
|
|
36
|
+
const [isReady, setIsReady] = useState(false);
|
|
37
|
+
const [isValid, setIsValid] = useState(false);
|
|
38
|
+
useImperativeHandle(ref, () => ({
|
|
39
|
+
submit: async () => {
|
|
40
|
+
if (!hostedFieldsRef.current)
|
|
41
|
+
throw new Error("Hosted Fields not ready");
|
|
42
|
+
const result = await hostedFieldsRef.current.submit({ contingencies: ["3D_SECURE"] });
|
|
43
|
+
return result;
|
|
44
|
+
},
|
|
45
|
+
isReady
|
|
46
|
+
}), [isReady]);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
let cancelled = false;
|
|
49
|
+
(async () => {
|
|
50
|
+
try {
|
|
51
|
+
// Require HTTPS (allow localhost for development). Hosted Fields won't function over plain HTTP.
|
|
52
|
+
if (typeof window !== "undefined") {
|
|
53
|
+
const isHttps = window.location.protocol === "https:" || window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1";
|
|
54
|
+
if (!isHttps) {
|
|
55
|
+
props.onIneligible?.("PayPal HostedFields requires HTTPS");
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
let clientToken;
|
|
60
|
+
if (props.getClientToken) {
|
|
61
|
+
try {
|
|
62
|
+
clientToken = await props.getClientToken();
|
|
63
|
+
}
|
|
64
|
+
catch { /* ignore */ }
|
|
65
|
+
}
|
|
66
|
+
const paypal = await loadPayPalSdk(props.clientId, clientToken);
|
|
67
|
+
if (cancelled)
|
|
68
|
+
return;
|
|
69
|
+
if (!paypal || !paypal.HostedFields) {
|
|
70
|
+
throw new Error("PayPal HostedFields unavailable");
|
|
71
|
+
}
|
|
72
|
+
if (!paypal.HostedFields.isEligible()) {
|
|
73
|
+
props.onIneligible?.("PayPal HostedFields not eligible (missing client token or merchant not enabled)");
|
|
74
|
+
// Do not throw to allow parent to render a fallback
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const hf = await paypal.HostedFields.render({
|
|
78
|
+
createOrder: async () => {
|
|
79
|
+
const orderId = await props.createOrder();
|
|
80
|
+
return orderId;
|
|
81
|
+
},
|
|
82
|
+
styles: {
|
|
83
|
+
"input": { "font-size": "16px" },
|
|
84
|
+
":focus": { "color": "black" },
|
|
85
|
+
".invalid": { "color": "red" },
|
|
86
|
+
".valid": { "color": "green" }
|
|
87
|
+
},
|
|
88
|
+
fields: {
|
|
89
|
+
number: { selector: "#pp-hf-number", placeholder: "4111 1111 1111 1111" },
|
|
90
|
+
cvv: { selector: "#pp-hf-cvv", placeholder: "123" },
|
|
91
|
+
expirationDate: { selector: "#pp-hf-expiry", placeholder: "MM/YY" }
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
hostedFieldsRef.current = hf;
|
|
95
|
+
setIsReady(true);
|
|
96
|
+
hf.on("validityChange", (event) => {
|
|
97
|
+
const allValid = Object.values(event.fields || {}).every((f) => f.isValid);
|
|
98
|
+
setIsValid(allValid);
|
|
99
|
+
props.onValidityChange?.(allValid);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
catch (e) {
|
|
103
|
+
console.error("Failed to initialize PayPal Hosted Fields:", e);
|
|
104
|
+
setIsReady(false);
|
|
105
|
+
props.onValidityChange?.(false);
|
|
106
|
+
props.onIneligible?.(e?.message || "Initialization failed");
|
|
107
|
+
}
|
|
108
|
+
})();
|
|
109
|
+
return () => { cancelled = true; };
|
|
110
|
+
}, [props.clientId]);
|
|
111
|
+
return (_jsxs("div", { ref: containerRef, children: [_jsxs("div", { style: { padding: 10, border: "1px solid #CCC", borderRadius: 5, backgroundColor: "white" }, children: [_jsx("label", { htmlFor: "pp-hf-number", style: { display: "block", fontWeight: 600 }, children: "Card Number" }), _jsx("div", { id: "pp-hf-number", style: { padding: 8, border: "1px solid #eee", borderRadius: 4, marginBottom: 8 } }), _jsxs("div", { style: { display: "flex", gap: 8 }, children: [_jsxs("div", { style: { flex: 1 }, children: [_jsx("label", { htmlFor: "pp-hf-expiry", style: { display: "block", fontWeight: 600 }, children: "Expiry" }), _jsx("div", { id: "pp-hf-expiry", style: { padding: 8, border: "1px solid #eee", borderRadius: 4 } })] }), _jsxs("div", { style: { width: 120 }, children: [_jsx("label", { htmlFor: "pp-hf-cvv", style: { display: "block", fontWeight: 600 }, children: "CVV" }), _jsx("div", { id: "pp-hf-cvv", style: { padding: 8, border: "1px solid #eee", borderRadius: 4 } })] })] })] }), !isReady && _jsx("div", { style: { marginTop: 8, color: "#666" }, children: "Loading PayPal secure card fields\u2026" }), isReady && !isValid && _jsx("div", { style: { marginTop: 8, color: "#666" }, children: "Enter full card details to continue." })] }));
|
|
112
|
+
});
|
|
113
|
+
export default PayPalHostedFields;
|
|
114
|
+
//# sourceMappingURL=PayPalHostedFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayPalHostedFields.js","sourceRoot":"","sources":["../../../src/donations/components/PayPalHostedFields.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAmBrF,wEAAwE;AACxE,SAAS,aAAa,CAAC,QAAgB,EAAE,WAAoB;IAC3D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAAC,MAAM,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;YAAC,OAAO;QAAC,CAAC;QACzF,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAAC,OAAO;QAAC,CAAC;QAEpF,qCAAqC;QACrC,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAoB,0CAA0C,CAAC,CAAC;QACvG,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;YAChE,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACrD,OAAO;QACT,CAAC;QAED,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAA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AE,aACxB,gBAAO,OAAO,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,oBAAa,EACpF,cAAK,EAAE,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC,EAAE,GAAQ,IACxF,IACF,IACF,EACL,CAAC,OAAO,IAAI,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,wDAA0C,EACjG,OAAO,IAAI,CAAC,OAAO,IAAI,cAAK,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,qDAA4C,IAC3G,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,kBAAkB,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 PayPalNonAuthDonation: React.FC<Props>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=PayPalNonAuthDonation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayPalNonAuthDonation.d.ts","sourceRoot":"","sources":["../../../src/donations/components/PayPalNonAuthDonation.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,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,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwBjD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
|
+
import { ApiHelper } from "@churchapps/helpers";
|
|
5
|
+
import { PayPalNonAuthDonationInner } from "./PayPalNonAuthDonationInner";
|
|
6
|
+
import { DonationHelper } from "../helpers";
|
|
7
|
+
export const PayPalNonAuthDonation = ({ mainContainerCssProps, showHeader, ...props }) => {
|
|
8
|
+
const [paypalClientId, setPaypalClientId] = useState(null);
|
|
9
|
+
const init = () => {
|
|
10
|
+
ApiHelper.get("/gateways/churchId/" + props.churchId, "GivingApi").then((data) => {
|
|
11
|
+
const paypalGateway = DonationHelper.findGatewayByProvider(data, "paypal");
|
|
12
|
+
if (paypalGateway?.publicKey) {
|
|
13
|
+
setPaypalClientId(paypalGateway.publicKey);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
useEffect(init, []);
|
|
18
|
+
return (_jsx(PayPalNonAuthDonationInner, { churchId: props.churchId, mainContainerCssProps: mainContainerCssProps, showHeader: showHeader, recaptchaSiteKey: props.recaptchaSiteKey, churchLogo: props?.churchLogo, paypalClientId: paypalClientId }));
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=PayPalNonAuthDonation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayPalNonAuthDonation.js","sourceRoot":"","sources":["../../../src/donations/components/PayPalNonAuthDonation.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAW5C,MAAM,CAAC,MAAM,qBAAqB,GAAoB,CAAC,EAAE,qBAAqB,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACxG,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1E,MAAM,IAAI,GAAG,GAAG,EAAE;QAChB,SAAS,CAAC,GAAG,CAAC,qBAAqB,GAAG,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,IAAS,EAAE,EAAE;YACpF,MAAM,aAAa,GAAG,cAAc,CAAC,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YAC3E,IAAI,aAAa,EAAE,SAAS,EAAE,CAAC;gBAC7B,iBAAiB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAEpB,OAAO,CACL,KAAC,0BAA0B,IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,qBAAqB,EAAE,qBAAqB,EAC5C,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,EACxC,UAAU,EAAE,KAAK,EAAE,UAAU,EAC7B,cAAc,EAAE,cAAc,GAC9B,CACH,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
|
+
paypalClientId: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const PayPalNonAuthDonationInner: React.FC<Props>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=PayPalNonAuthDonationInner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayPalNonAuthDonationInner.d.ts","sourceRoot":"","sources":["../../../src/donations/components/PayPalNonAuthDonationInner.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAU3D,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,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8XtD,CAAC"}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useRef, useEffect } from "react";
|
|
4
|
+
import ReCAPTCHA from "react-google-recaptcha";
|
|
5
|
+
import { ErrorMessages, InputBox } from "../..";
|
|
6
|
+
import { FundDonations } from ".";
|
|
7
|
+
// PayPal Hosted Fields for secure card entry
|
|
8
|
+
import { PayPalHostedFields } from "./PayPalHostedFields";
|
|
9
|
+
import { ApiHelper, DateHelper, CurrencyHelper } from "@churchapps/helpers";
|
|
10
|
+
import { Locale, DonationHelper } from "../helpers";
|
|
11
|
+
import { Grid, Alert, TextField, Button, FormControl, InputLabel, Select, MenuItem, FormGroup, FormControlLabel, Checkbox, Typography } from "@mui/material";
|
|
12
|
+
export const PayPalNonAuthDonationInner = ({ mainContainerCssProps, showHeader = true, ...props }) => {
|
|
13
|
+
const [firstName, setFirstName] = useState("");
|
|
14
|
+
const [lastName, setLastName] = useState("");
|
|
15
|
+
const [email, setEmail] = useState("");
|
|
16
|
+
const [fundsTotal, setFundsTotal] = useState(0);
|
|
17
|
+
const [transactionFee, setTransactionFee] = useState(0);
|
|
18
|
+
const [total, setTotal] = useState(0);
|
|
19
|
+
const [errors, setErrors] = useState([]);
|
|
20
|
+
const [fundDonations, setFundDonations] = useState([]);
|
|
21
|
+
const [funds, setFunds] = useState([]);
|
|
22
|
+
const [donationComplete, setDonationComplete] = useState(false);
|
|
23
|
+
const [processing, setProcessing] = useState(false);
|
|
24
|
+
const [donationType, setDonationType] = useState("once");
|
|
25
|
+
const [interval, setInterval] = useState("one_month");
|
|
26
|
+
const [startDate, setStartDate] = useState(new Date().toDateString());
|
|
27
|
+
const [_captchaResponse, setCaptchaResponse] = useState("");
|
|
28
|
+
// Keep church for potential future metadata usage
|
|
29
|
+
const [_church, _setChurch] = useState();
|
|
30
|
+
const [gateway, setGateway] = useState(null);
|
|
31
|
+
const [searchParams, setSearchParams] = useState(null);
|
|
32
|
+
const [notes, setNotes] = useState("");
|
|
33
|
+
const [coverFees, setCoverFees] = useState(false);
|
|
34
|
+
const hostedFieldsRef = useRef(null);
|
|
35
|
+
const [hostedValid, setHostedValid] = useState(false);
|
|
36
|
+
const [useHostedFields, setUseHostedFields] = useState(true);
|
|
37
|
+
const captchaRef = useRef(null);
|
|
38
|
+
const getUrlParam = (param) => {
|
|
39
|
+
if (typeof window === "undefined")
|
|
40
|
+
return null;
|
|
41
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
42
|
+
return urlParams.get(param);
|
|
43
|
+
};
|
|
44
|
+
const init = () => {
|
|
45
|
+
const fundId = getUrlParam("fundId");
|
|
46
|
+
const amount = getUrlParam("amount");
|
|
47
|
+
setSearchParams({ fundId, amount });
|
|
48
|
+
ApiHelper.get("/funds/churchId/" + props.churchId, "GivingApi").then((data) => {
|
|
49
|
+
setFunds(data);
|
|
50
|
+
if (fundId && fundId !== "") {
|
|
51
|
+
const selectedFund = data.find((f) => f.id === fundId);
|
|
52
|
+
if (selectedFund) {
|
|
53
|
+
setFundDonations([{ fundId: selectedFund.id, amount: (amount && amount !== "") ? parseFloat(amount) : 0 }]);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
else if (data.length) {
|
|
57
|
+
setFundDonations([{ fundId: data[0].id }]);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
ApiHelper.get("/churches/" + props.churchId, "MembershipApi").then((_data) => {
|
|
61
|
+
_setChurch(_data);
|
|
62
|
+
});
|
|
63
|
+
ApiHelper.get(`/donate/gateways/${props.churchId}`, "GivingApi").then((response) => {
|
|
64
|
+
const gateways = Array.isArray(response?.gateways) ? response.gateways : [];
|
|
65
|
+
const paypalGateway = DonationHelper.findGatewayByProvider(gateways, "paypal");
|
|
66
|
+
if (paypalGateway)
|
|
67
|
+
setGateway(paypalGateway);
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
const handleCaptchaChange = (value) => {
|
|
71
|
+
if (value) {
|
|
72
|
+
ApiHelper.postAnonymous("/donate/captcha-verify", { token: value }, "GivingApi")
|
|
73
|
+
.then((data) => {
|
|
74
|
+
// Check for various success indicators
|
|
75
|
+
if (data.response === "success" || data.response === "human" || data.success === true || data.score >= 0.5) {
|
|
76
|
+
setCaptchaResponse("success");
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
setCaptchaResponse(data.response || "robot");
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
.catch((error) => {
|
|
83
|
+
console.error("Error verifying captcha:", error);
|
|
84
|
+
setCaptchaResponse("error");
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
setCaptchaResponse("");
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const handleCheckChange = (_e, checked) => {
|
|
92
|
+
setCoverFees(checked);
|
|
93
|
+
const totalPayAmount = checked ? fundsTotal + transactionFee : fundsTotal;
|
|
94
|
+
setTotal(totalPayAmount);
|
|
95
|
+
};
|
|
96
|
+
const handleSave = async () => {
|
|
97
|
+
if (validate()) {
|
|
98
|
+
// CAPTCHA TEMPORARILY DISABLED - Remove this bypass in production
|
|
99
|
+
setProcessing(true);
|
|
100
|
+
ApiHelper.post("/users/loadOrCreate", { userEmail: email, firstName, lastName }, "MembershipApi")
|
|
101
|
+
.catch((ex) => { setErrors([ex.toString()]); setProcessing(false); })
|
|
102
|
+
.then(async (userData) => {
|
|
103
|
+
const personData = { churchId: props.churchId, firstName, lastName, email };
|
|
104
|
+
const person = await ApiHelper.post("/people/loadOrCreate", personData, "MembershipApi");
|
|
105
|
+
await savePayPalDonation(userData, person);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const savePayPalDonation = async (_user, person) => {
|
|
110
|
+
// Try Hosted Fields first if client ID provided
|
|
111
|
+
let hostedOrderId;
|
|
112
|
+
if (props.paypalClientId && useHostedFields) {
|
|
113
|
+
try {
|
|
114
|
+
const payload = await hostedFieldsRef.current?.submit();
|
|
115
|
+
hostedOrderId = payload?.orderId || payload?.id;
|
|
116
|
+
}
|
|
117
|
+
catch (e) {
|
|
118
|
+
console.warn("PayPal Hosted Fields submit failed or not ready. Falling back to manual card.", e);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (!hostedOrderId) {
|
|
122
|
+
setErrors(["PayPal card fields are unavailable. Ensure HTTPS and that PayPal Hosted Fields are enabled."]);
|
|
123
|
+
setProcessing(false);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const donation = {
|
|
127
|
+
id: "", // PayPal will generate this
|
|
128
|
+
customerId: "", // Will be set by backend
|
|
129
|
+
type: "paypal",
|
|
130
|
+
provider: "paypal",
|
|
131
|
+
gatewayId: gateway?.id,
|
|
132
|
+
churchId: props.churchId,
|
|
133
|
+
amount: total,
|
|
134
|
+
funds: [],
|
|
135
|
+
person: {
|
|
136
|
+
id: person?.id || "",
|
|
137
|
+
email: person?.contactInfo?.email || "",
|
|
138
|
+
name: person?.name?.display || ""
|
|
139
|
+
},
|
|
140
|
+
notes: notes
|
|
141
|
+
};
|
|
142
|
+
// Attach hosted order id when available for backend capture
|
|
143
|
+
if (hostedOrderId)
|
|
144
|
+
donation.paypalOrderId = hostedOrderId;
|
|
145
|
+
if (donationType === "recurring") {
|
|
146
|
+
donation.billing_cycle_anchor = startDate ? +new Date(startDate) : +new Date();
|
|
147
|
+
donation.interval = DonationHelper.getInterval(interval);
|
|
148
|
+
}
|
|
149
|
+
for (const fundDonation of fundDonations) {
|
|
150
|
+
if (donation.funds) {
|
|
151
|
+
donation.funds.push({ id: fundDonation.fundId || "", amount: fundDonation.amount || 0 });
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
// Church object is no longer required for unified PayPal capture.
|
|
155
|
+
// Capture via existing /donate/charge endpoint (PayPal)
|
|
156
|
+
const compactFunds = (donation.funds || []).map(f => ({ id: f.id, amount: f.amount }));
|
|
157
|
+
const results = await ApiHelper.post("/donate/charge", {
|
|
158
|
+
provider: "paypal",
|
|
159
|
+
gatewayId: gateway?.id,
|
|
160
|
+
id: hostedOrderId,
|
|
161
|
+
churchId: props.churchId,
|
|
162
|
+
amount: total,
|
|
163
|
+
funds: compactFunds,
|
|
164
|
+
person: donation.person,
|
|
165
|
+
notes
|
|
166
|
+
}, "GivingApi");
|
|
167
|
+
if (results?.status === "COMPLETED" || results?.status === "APPROVED" || results?.status === "CREATED") {
|
|
168
|
+
setDonationComplete(true);
|
|
169
|
+
}
|
|
170
|
+
if (results?.message || results?.error) {
|
|
171
|
+
setErrors([results?.message || results?.error || "Payment processing failed"]);
|
|
172
|
+
setProcessing(false);
|
|
173
|
+
}
|
|
174
|
+
setProcessing(false);
|
|
175
|
+
};
|
|
176
|
+
const validate = () => {
|
|
177
|
+
const result = [];
|
|
178
|
+
if (!firstName)
|
|
179
|
+
result.push(Locale.label("donation.donationForm.validate.firstName"));
|
|
180
|
+
if (!lastName)
|
|
181
|
+
result.push(Locale.label("donation.donationForm.validate.lastName"));
|
|
182
|
+
if (!email)
|
|
183
|
+
result.push(Locale.label("donation.donationForm.validate.email"));
|
|
184
|
+
if (fundsTotal === 0)
|
|
185
|
+
result.push(Locale.label("donation.donationForm.validate.amount"));
|
|
186
|
+
if (props.paypalClientId && useHostedFields) {
|
|
187
|
+
if (!hostedValid)
|
|
188
|
+
result.push("Please provide valid card information");
|
|
189
|
+
}
|
|
190
|
+
else
|
|
191
|
+
result.push("PayPal Hosted Fields not available");
|
|
192
|
+
if (result.length === 0) {
|
|
193
|
+
if (!email.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/))
|
|
194
|
+
result.push(Locale.label("donation.donationForm.validate.validEmail"));
|
|
195
|
+
}
|
|
196
|
+
setErrors(result);
|
|
197
|
+
return result.length === 0;
|
|
198
|
+
};
|
|
199
|
+
const handleChange = (e) => {
|
|
200
|
+
const val = e.currentTarget.value;
|
|
201
|
+
switch (e.currentTarget.name) {
|
|
202
|
+
case "firstName":
|
|
203
|
+
setFirstName(val);
|
|
204
|
+
break;
|
|
205
|
+
case "lastName":
|
|
206
|
+
setLastName(val);
|
|
207
|
+
break;
|
|
208
|
+
case "email":
|
|
209
|
+
setEmail(val);
|
|
210
|
+
break;
|
|
211
|
+
case "startDate":
|
|
212
|
+
setStartDate(val);
|
|
213
|
+
break;
|
|
214
|
+
case "interval":
|
|
215
|
+
setInterval(val);
|
|
216
|
+
break;
|
|
217
|
+
case "notes":
|
|
218
|
+
setNotes(val);
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
const handleFundDonationsChange = async (fd) => {
|
|
223
|
+
setFundDonations(fd);
|
|
224
|
+
let totalAmount = 0;
|
|
225
|
+
const selectedFunds = [];
|
|
226
|
+
for (const fundDonation of fd) {
|
|
227
|
+
totalAmount += fundDonation.amount || 0;
|
|
228
|
+
const fund = funds.find((fund) => fund.id === fundDonation.fundId);
|
|
229
|
+
selectedFunds.push({ id: fundDonation.fundId, amount: fundDonation.amount || 0, name: fund?.name || "" });
|
|
230
|
+
}
|
|
231
|
+
setFundsTotal(totalAmount);
|
|
232
|
+
const fee = await getTransactionFee(totalAmount);
|
|
233
|
+
setTransactionFee(fee);
|
|
234
|
+
if (gateway?.payFees === true) {
|
|
235
|
+
setTotal(totalAmount + fee);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
// If the checkbox is checked, include the fee in the total
|
|
239
|
+
setTotal(coverFees ? totalAmount + fee : totalAmount);
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
const getTransactionFee = async (amount) => {
|
|
243
|
+
if (amount > 0) {
|
|
244
|
+
try {
|
|
245
|
+
const response = await ApiHelper.post("/donate/fee?churchId=" + props.churchId, { amount, provider: "paypal", gatewayId: gateway?.id }, "GivingApi");
|
|
246
|
+
return response.calculatedFee;
|
|
247
|
+
}
|
|
248
|
+
catch (error) {
|
|
249
|
+
console.log("Error calculating transaction fee: ", error);
|
|
250
|
+
return 0;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
else {
|
|
254
|
+
return 0;
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
const getFundList = () => {
|
|
258
|
+
if (funds) {
|
|
259
|
+
return (_jsxs(_Fragment, { children: [_jsx("hr", {}), _jsx("h4", { children: Locale.label("donation.donationForm.funds") }), _jsx(FundDonations, { fundDonations: fundDonations, funds: funds, params: searchParams, updatedFunction: handleFundDonationsChange })] }));
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
useEffect(init, []);
|
|
263
|
+
if (donationComplete)
|
|
264
|
+
return _jsx(Alert, { severity: "success", children: Locale.label("donation.donationForm.thankYou") });
|
|
265
|
+
else {
|
|
266
|
+
return (_jsxs(InputBox, { headerIcon: showHeader ? "volunteer_activism" : "", headerText: showHeader ? "Donate with PayPal" : "", saveFunction: handleSave, saveText: "Donate", isSubmitting: processing, mainContainerCssProps: mainContainerCssProps, children: [_jsx(ErrorMessages, { errors: errors }), _jsxs(Grid, { container: true, spacing: 3, children: [_jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(Button, { "aria-label": "single-donation", size: "small", fullWidth: true, style: { minHeight: "50px" }, variant: donationType === "once" ? "contained" : "outlined", onClick: () => setDonationType("once"), children: Locale.label("donation.donationForm.make") }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(Button, { "aria-label": "recurring-donation", size: "small", fullWidth: true, style: { minHeight: "50px" }, variant: donationType === "recurring" ? "contained" : "outlined", onClick: () => setDonationType("recurring"), children: Locale.label("donation.donationForm.makeRecurring") }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(TextField, { fullWidth: true, label: Locale.label("person.firstName"), name: "firstName", value: firstName, onChange: handleChange }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(TextField, { fullWidth: true, label: Locale.label("person.lastName"), name: "lastName", value: lastName, onChange: handleChange }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(TextField, { fullWidth: true, label: Locale.label("person.email"), name: "email", value: email, onChange: handleChange }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(ReCAPTCHA, { sitekey: props.recaptchaSiteKey, ref: captchaRef, onChange: handleCaptchaChange, onExpired: () => {
|
|
267
|
+
console.log("Captcha expired");
|
|
268
|
+
setCaptchaResponse("");
|
|
269
|
+
}, onErrored: () => {
|
|
270
|
+
console.log("Captcha error");
|
|
271
|
+
setCaptchaResponse("error");
|
|
272
|
+
} }) })] }), props.paypalClientId && useHostedFields ? (_jsx(PayPalHostedFields, { ref: hostedFieldsRef, clientId: props.paypalClientId, getClientToken: async () => {
|
|
273
|
+
try {
|
|
274
|
+
const resp = await ApiHelper.post("/donate/client-token", { churchId: props.churchId, provider: "paypal", gatewayId: gateway?.id }, "GivingApi");
|
|
275
|
+
const token = resp?.clientToken || resp?.token || resp?.result || resp;
|
|
276
|
+
return typeof token === "string" && token.length > 0 ? token : "";
|
|
277
|
+
}
|
|
278
|
+
catch {
|
|
279
|
+
return "";
|
|
280
|
+
}
|
|
281
|
+
}, onValidityChange: setHostedValid, onIneligible: () => setUseHostedFields(false), createOrder: async () => {
|
|
282
|
+
// Create order on backend if supported; fallback to simple legacy flow
|
|
283
|
+
try {
|
|
284
|
+
const fundsPayload = (fundDonations || [])
|
|
285
|
+
.filter(fd => (fd.amount || 0) > 0 && fd.fundId)
|
|
286
|
+
.map(fd => ({ id: fd.fundId, amount: fd.amount || 0 }));
|
|
287
|
+
const response = await ApiHelper.post("/donate/create-order", {
|
|
288
|
+
churchId: props.churchId,
|
|
289
|
+
provider: "paypal",
|
|
290
|
+
gatewayId: gateway?.id,
|
|
291
|
+
amount: total,
|
|
292
|
+
currency: "USD",
|
|
293
|
+
funds: fundsPayload,
|
|
294
|
+
notes
|
|
295
|
+
}, "GivingApi");
|
|
296
|
+
return response?.id || response?.orderId || "";
|
|
297
|
+
}
|
|
298
|
+
catch (e) {
|
|
299
|
+
console.warn("Create PayPal order failed; Hosted Fields may not be enabled on backend.", e);
|
|
300
|
+
return "";
|
|
301
|
+
}
|
|
302
|
+
} })) : (_jsx(Alert, { severity: "error", sx: { mb: 1 }, children: "PayPal card fields are unavailable. This requires HTTPS and an enabled PayPal merchant." })), donationType === "recurring"
|
|
303
|
+
&& _jsxs(Grid, { container: true, spacing: 3, style: { marginTop: 0 }, children: [_jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: Locale.label("donation.donationForm.frequency") }), _jsxs(Select, { label: "Frequency", name: "interval", "aria-label": "interval", value: interval, onChange: (e) => { setInterval(e.target.value); }, 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") })] })] }) }), _jsx(Grid, { size: { xs: 12, md: 6 }, children: _jsx(TextField, { fullWidth: true, name: "startDate", type: "date", "aria-label": "startDate", label: Locale.label("donation.donationForm.startDate"), value: DateHelper.formatHtml5Date(startDate ? new Date(startDate) : new Date()), onChange: handleChange }) })] }), getFundList(), _jsx(TextField, { fullWidth: true, label: "Memo (optional)", multiline: true, "aria-label": "note", name: "notes", value: notes, onChange: handleChange, style: { marginTop: 10, marginBottom: 10 } }), _jsx("div", { children: fundsTotal > 0
|
|
304
|
+
&& _jsxs(_Fragment, { children: [(gateway?.payFees === true)
|
|
305
|
+
? _jsxs(Typography, { fontSize: 14, fontStyle: "italic", children: ["*", Locale.label("donation.donationForm.fees").replace("{}", CurrencyHelper.formatCurrency(transactionFee))] })
|
|
306
|
+
: (_jsx(FormGroup, { children: _jsx(FormControlLabel, { control: _jsx(Checkbox, { checked: coverFees }), name: "transaction-fee", label: Locale.label("donation.donationForm.cover").replace("{}", CurrencyHelper.formatCurrency(transactionFee)), onChange: handleCheckChange }) })), _jsxs("p", { children: ["Total Donation Amount: $", total] })] }) })] }));
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
//# sourceMappingURL=PayPalNonAuthDonationInner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayPalNonAuthDonationInner.js","sourceRoot":"","sources":["../../../src/donations/components/PayPalNonAuthDonationInner.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,SAAS,MAAM,wBAAwB,CAA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IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,YAAY,GAAI,GACvO,IACF,EAER,WAAW,EAAE,EACd,KAAC,SAAS,IAAC,SAAS,QAAC,KAAK,EAAC,iBAAiB,EAAC,SAAS,sBAAY,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,GAAI,EAC1K,wBACG,UAAU,GAAG,CAAC;2BACV,8BACA,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;oCAC1B,CAAC,CAAC,MAAC,UAAU,IAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAC,QAAQ,kBAAG,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,IAAc;oCACtK,CAAC,CAAC,CACA,KAAC,SAAS,cACR,KAAC,gBAAgB,IAAC,OAAO,EAAE,KAAC,QAAQ,IAAC,OAAO,EAAE,SAAS,GAAI,EAAE,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,GAAI,GAC1N,CACb,EACH,oDAA4B,KAAK,IAAK,IACrC,GAED,IACG,CACZ,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { Stripe } from "@stripe/stripe-js";
|
|
3
|
+
import { StripePaymentMethod } from "../helpers";
|
|
4
|
+
import { PersonInterface } from "@churchapps/helpers";
|
|
5
|
+
interface Props {
|
|
6
|
+
person: PersonInterface;
|
|
7
|
+
customerId: string;
|
|
8
|
+
paymentMethods: StripePaymentMethod[];
|
|
9
|
+
stripePromise: Promise<Stripe | null> | null;
|
|
10
|
+
appName: string;
|
|
11
|
+
dataUpdate: (message?: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const PaymentMethods: React.FC<Props>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=PaymentMethods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMethods.d.ts","sourceRoot":"","sources":["../../../src/donations/components/PaymentMethods.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKhD,OAAO,EAAU,mBAAmB,EAAkB,MAAM,YAAY,CAAC;AACzE,OAAO,EAAE,eAAe,EAAe,MAAM,qBAAqB,CAAC;AAGnE,UAAU,KAAK;IAAG,MAAM,EAAE,eAAe,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,mBAAmB,EAAE,CAAC;IAAC,aAAa,EAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE;AAE7M,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2K1C,CAAC"}
|