@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,245 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ApiHelper } from "@churchapps/helpers";
|
|
5
|
+
import { AnalyticsHelper, Locale } from "../helpers";
|
|
6
|
+
import { TextField, Card, CardContent, Typography, Button, Alert } from "@mui/material";
|
|
7
|
+
import { VerificationCodeInput } from "./VerificationCodeInput";
|
|
8
|
+
const RESEND_COOLDOWN_SECONDS = 30;
|
|
9
|
+
export const Register = (props) => {
|
|
10
|
+
const cleanAppUrl = () => {
|
|
11
|
+
if (!props.appUrl)
|
|
12
|
+
return null;
|
|
13
|
+
else {
|
|
14
|
+
const index = props.appUrl.indexOf("/", 9);
|
|
15
|
+
if (index === -1)
|
|
16
|
+
return props.appUrl;
|
|
17
|
+
else
|
|
18
|
+
return props.appUrl.substring(0, index);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const [registered, setRegistered] = React.useState(false);
|
|
22
|
+
const [user, setUser] = React.useState({ firstName: props.defaultFirstName || "", lastName: props.defaultLastName || "", email: props.defaultEmail || "", appName: props.appName, appUrl: cleanAppUrl(), churchId: props.defaultChurchId || undefined });
|
|
23
|
+
const [errors, setErrors] = React.useState([]);
|
|
24
|
+
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
25
|
+
const [matchedChurchName, setMatchedChurchName] = React.useState(props.defaultChurchName || "");
|
|
26
|
+
const [code, setCode] = React.useState("");
|
|
27
|
+
const [resendCooldown, setResendCooldown] = React.useState(0);
|
|
28
|
+
React.useEffect(() => {
|
|
29
|
+
if (resendCooldown <= 0)
|
|
30
|
+
return;
|
|
31
|
+
const t = setTimeout(() => setResendCooldown(resendCooldown - 1), 1000);
|
|
32
|
+
return () => clearTimeout(t);
|
|
33
|
+
}, [resendCooldown]);
|
|
34
|
+
const checkEmailForMatch = async (emailToCheck) => {
|
|
35
|
+
if (!emailToCheck || !validateEmail(emailToCheck))
|
|
36
|
+
return;
|
|
37
|
+
try {
|
|
38
|
+
const resp = await ApiHelper.postAnonymous("/users/checkEmail", { email: emailToCheck }, "MembershipApi");
|
|
39
|
+
if (resp.exists) {
|
|
40
|
+
props.updateErrors(["An account already exists for this email. Please sign in instead."]);
|
|
41
|
+
}
|
|
42
|
+
else if (resp.peopleMatches.length > 0) {
|
|
43
|
+
const match = resp.peopleMatches[0];
|
|
44
|
+
const u = { ...user, email: emailToCheck };
|
|
45
|
+
if (!u.firstName)
|
|
46
|
+
u.firstName = match.firstName;
|
|
47
|
+
if (!u.lastName)
|
|
48
|
+
u.lastName = match.lastName;
|
|
49
|
+
if (resp.peopleMatches.length === 1) {
|
|
50
|
+
u.churchId = match.churchId;
|
|
51
|
+
setMatchedChurchName(match.churchName);
|
|
52
|
+
}
|
|
53
|
+
setUser(u);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
catch { /* silently ignore lookup failures */ }
|
|
57
|
+
};
|
|
58
|
+
const handleRegisterErrors = (errs) => {
|
|
59
|
+
props.updateErrors(errs);
|
|
60
|
+
};
|
|
61
|
+
const handleRegisterSuccess = (resp) => {
|
|
62
|
+
setRegistered(true);
|
|
63
|
+
setResendCooldown(RESEND_COOLDOWN_SECONDS);
|
|
64
|
+
AnalyticsHelper.logEvent("User", "Register");
|
|
65
|
+
if (props.userRegisteredCallback)
|
|
66
|
+
props.userRegisteredCallback(resp.user);
|
|
67
|
+
};
|
|
68
|
+
const validateEmail = (email) => (/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(.\w{2,3})+$/.test(email));
|
|
69
|
+
const handleChange = (e) => {
|
|
70
|
+
const u = { ...user };
|
|
71
|
+
switch (e.target.name) {
|
|
72
|
+
case "firstName":
|
|
73
|
+
u.firstName = e.target.value;
|
|
74
|
+
break;
|
|
75
|
+
case "lastName":
|
|
76
|
+
u.lastName = e.target.value;
|
|
77
|
+
break;
|
|
78
|
+
case "email":
|
|
79
|
+
u.email = e.target.value;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
setUser(u);
|
|
83
|
+
};
|
|
84
|
+
const validate = () => {
|
|
85
|
+
const errs = [];
|
|
86
|
+
if (!user.email?.trim())
|
|
87
|
+
errs.push(Locale.label("login.validate.email"));
|
|
88
|
+
else if (!validateEmail(user.email))
|
|
89
|
+
errs.push(Locale.label("login.validate.email"));
|
|
90
|
+
if (!user.firstName?.trim())
|
|
91
|
+
errs.push(Locale.label("login.validate.firstName"));
|
|
92
|
+
if (!user.lastName?.trim())
|
|
93
|
+
errs.push(Locale.label("login.validate.lastName"));
|
|
94
|
+
setErrors(errs);
|
|
95
|
+
return errs.length === 0;
|
|
96
|
+
};
|
|
97
|
+
const register = (e) => {
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
props.updateErrors([]);
|
|
100
|
+
if (validate()) {
|
|
101
|
+
setIsSubmitting(true);
|
|
102
|
+
ApiHelper.postAnonymous("/users/register", user, "MembershipApi")
|
|
103
|
+
.then((resp) => {
|
|
104
|
+
if (resp.errors)
|
|
105
|
+
handleRegisterErrors(resp.errors);
|
|
106
|
+
else
|
|
107
|
+
handleRegisterSuccess(resp);
|
|
108
|
+
})
|
|
109
|
+
.catch((e) => { props.updateErrors([e.toString()]); throw e; })
|
|
110
|
+
.finally(() => {
|
|
111
|
+
setIsSubmitting(false);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const resend = async () => {
|
|
116
|
+
if (resendCooldown > 0 || isSubmitting)
|
|
117
|
+
return;
|
|
118
|
+
setIsSubmitting(true);
|
|
119
|
+
setCode("");
|
|
120
|
+
try {
|
|
121
|
+
await ApiHelper.postAnonymous("/users/forgot", { userEmail: user.email }, "MembershipApi");
|
|
122
|
+
setErrors([]);
|
|
123
|
+
setResendCooldown(RESEND_COOLDOWN_SECONDS);
|
|
124
|
+
}
|
|
125
|
+
catch (err) {
|
|
126
|
+
setErrors([err?.toString() || "Failed to resend code"]);
|
|
127
|
+
}
|
|
128
|
+
finally {
|
|
129
|
+
setIsSubmitting(false);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
const verify = async (submittedCode) => {
|
|
133
|
+
if (submittedCode.length !== 6) {
|
|
134
|
+
setErrors([Locale.label("login.validate.code")]);
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
setErrors([]);
|
|
138
|
+
setIsSubmitting(true);
|
|
139
|
+
try {
|
|
140
|
+
const resp = await ApiHelper.postAnonymous("/users/verifyCode", { email: user.email, code: submittedCode }, "MembershipApi");
|
|
141
|
+
if (resp.errors) {
|
|
142
|
+
setErrors(resp.errors.map((err) => typeof err === "string" ? err : err.msg || "Invalid code"));
|
|
143
|
+
}
|
|
144
|
+
else if (resp.authGuid && props.onVerified) {
|
|
145
|
+
props.onVerified(resp.authGuid, user.email);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
catch (err) {
|
|
149
|
+
setErrors([err?.toString() || "Invalid code"]);
|
|
150
|
+
}
|
|
151
|
+
finally {
|
|
152
|
+
setIsSubmitting(false);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const submitCode = (e) => {
|
|
156
|
+
e.preventDefault();
|
|
157
|
+
verify(code);
|
|
158
|
+
};
|
|
159
|
+
if (registered) {
|
|
160
|
+
return (_jsx(Card, { sx: {
|
|
161
|
+
width: "100%",
|
|
162
|
+
maxWidth: { xs: "400px", sm: "500px" },
|
|
163
|
+
backgroundColor: "white",
|
|
164
|
+
border: "1px solid #e5e7eb",
|
|
165
|
+
boxShadow: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
166
|
+
}, children: _jsxs(CardContent, { sx: { textAlign: "center", padding: "32px" }, children: [_jsx("div", { style: { marginBottom: "32px" }, children: _jsx("img", { src: "/images/logo-login.png", alt: "Church Logo", style: { maxWidth: "100%", width: "auto", height: "auto", maxHeight: "80px", marginBottom: "16px", objectFit: "contain" } }) }), _jsx(Typography, { component: "h1", sx: { fontSize: "24px", fontWeight: "bold", color: "#111827", marginBottom: "8px" }, children: Locale.label("login.enterCode") }), _jsxs(Typography, { sx: { color: "#6b7280", marginBottom: "24px" }, children: ["We emailed a 6-digit code to ", _jsx("b", { children: user.email }), "."] }), errors.length > 0 && (_jsx("div", { style: {
|
|
167
|
+
backgroundColor: "#fef2f2",
|
|
168
|
+
border: "1px solid #fecaca",
|
|
169
|
+
borderRadius: "6px",
|
|
170
|
+
padding: "12px",
|
|
171
|
+
textAlign: "left",
|
|
172
|
+
marginBottom: "16px"
|
|
173
|
+
}, children: errors.map((error) => (_jsx("div", { style: { color: "#dc2626", fontSize: "14px" }, children: error }, error))) })), _jsxs("form", { onSubmit: submitCode, style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [_jsx(VerificationCodeInput, { value: code, onChange: setCode, onComplete: verify, disabled: isSubmitting, autoFocus: true }), _jsx(Button, { type: "submit", variant: "contained", fullWidth: true, disabled: isSubmitting || code.length !== 6, sx: {
|
|
174
|
+
backgroundColor: "hsl(218, 85%, 55%)",
|
|
175
|
+
color: "white",
|
|
176
|
+
padding: "12px",
|
|
177
|
+
textTransform: "none",
|
|
178
|
+
fontSize: "16px",
|
|
179
|
+
fontWeight: 500,
|
|
180
|
+
borderRadius: "6px",
|
|
181
|
+
"&:hover": { backgroundColor: "hsl(218, 85%, 50%)" },
|
|
182
|
+
"&:disabled": { backgroundColor: "#9ca3af" }
|
|
183
|
+
}, children: isSubmitting ? Locale.label("common.pleaseWait") : Locale.label("login.verifyCode") }), _jsxs("div", { style: { textAlign: "center", display: "flex", justifyContent: "center", alignItems: "center", gap: "8px" }, children: [_jsx("button", { type: "button", disabled: resendCooldown > 0 || isSubmitting, onClick: resend, style: {
|
|
184
|
+
background: "none",
|
|
185
|
+
border: "none",
|
|
186
|
+
color: resendCooldown > 0 ? "#9ca3af" : "#3b82f6",
|
|
187
|
+
fontSize: "14px",
|
|
188
|
+
cursor: resendCooldown > 0 ? "default" : "pointer",
|
|
189
|
+
textDecoration: "none"
|
|
190
|
+
}, children: resendCooldown > 0 ? `Resend code in ${resendCooldown}s` : Locale.label("login.resendCode") }), _jsx("span", { style: { fontSize: "14px", color: "#6b7280" }, children: "|" }), _jsx("button", { type: "button", onClick: (e) => { e.preventDefault(); if (props.loginCallback)
|
|
191
|
+
props.loginCallback(); }, style: { background: "none", border: "none", color: "#3b82f6", fontSize: "14px", cursor: "pointer", textDecoration: "none" }, children: "Back to sign in" })] })] })] }) }));
|
|
192
|
+
}
|
|
193
|
+
return (_jsx(Card, { sx: {
|
|
194
|
+
width: "100%",
|
|
195
|
+
maxWidth: { xs: "400px", sm: "500px" },
|
|
196
|
+
backgroundColor: "white",
|
|
197
|
+
border: "1px solid #e5e7eb",
|
|
198
|
+
boxShadow: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
199
|
+
}, children: _jsxs(CardContent, { sx: { textAlign: "center", padding: "32px" }, children: [_jsx("div", { style: { marginBottom: "32px" }, children: _jsx("img", { src: "/images/logo-login.png", alt: "Church Logo", style: { maxWidth: "100%", width: "auto", height: "auto", maxHeight: "80px", marginBottom: "16px", objectFit: "contain" } }) }), _jsx(Typography, { component: "h1", sx: { fontSize: "24px", fontWeight: "bold", color: "#111827", marginBottom: "8px" }, children: "Create Account" }), _jsx(Typography, { sx: { color: "#6b7280", marginBottom: "32px" }, children: "Create a new account to access your church" }), _jsxs("form", { onSubmit: register, style: { display: "flex", flexDirection: "column", gap: "16px" }, children: [matchedChurchName && (_jsxs(Alert, { severity: "info", sx: { textAlign: "left" }, children: ["We found your record at ", _jsx("b", { children: matchedChurchName }), ". Complete registration to link your account."] })), errors.length > 0 && (_jsx("div", { style: {
|
|
200
|
+
backgroundColor: "#fef2f2",
|
|
201
|
+
border: "1px solid #fecaca",
|
|
202
|
+
borderRadius: "6px",
|
|
203
|
+
padding: "12px",
|
|
204
|
+
textAlign: "left"
|
|
205
|
+
}, children: errors.map((error) => (_jsx("div", { style: { color: "#dc2626", fontSize: "14px" }, children: error }, error))) })), _jsxs("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "8px" }, children: [_jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [_jsx("label", { htmlFor: "firstName", style: { fontSize: "14px", fontWeight: 500, color: "#374151", textAlign: "left" }, children: "First Name" }), _jsx(TextField, { id: "firstName", name: "firstName", type: "text", placeholder: "First Name", value: user.firstName, onChange: handleChange, required: true, autoComplete: "given-name", variant: "outlined", fullWidth: true, sx: {
|
|
206
|
+
"& .MuiOutlinedInput-root": {
|
|
207
|
+
backgroundColor: "white",
|
|
208
|
+
"& fieldset": { borderColor: "#d1d5db" },
|
|
209
|
+
"&:hover fieldset": { borderColor: "#d1d5db" },
|
|
210
|
+
"&.Mui-focused fieldset": { borderColor: "#3b82f6" },
|
|
211
|
+
"& input": { color: "#111827", fontSize: "16px" }
|
|
212
|
+
},
|
|
213
|
+
"& .MuiInputLabel-root": { display: "none" }
|
|
214
|
+
} })] }), _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [_jsx("label", { htmlFor: "lastName", style: { fontSize: "14px", fontWeight: 500, color: "#374151", textAlign: "left" }, children: "Last Name" }), _jsx(TextField, { id: "lastName", name: "lastName", type: "text", placeholder: "Last Name", value: user.lastName, onChange: handleChange, required: true, autoComplete: "family-name", variant: "outlined", fullWidth: true, sx: {
|
|
215
|
+
"& .MuiOutlinedInput-root": {
|
|
216
|
+
backgroundColor: "white",
|
|
217
|
+
"& fieldset": { borderColor: "#d1d5db" },
|
|
218
|
+
"&:hover fieldset": { borderColor: "#d1d5db" },
|
|
219
|
+
"&.Mui-focused fieldset": { borderColor: "#3b82f6" },
|
|
220
|
+
"& input": { color: "#111827", fontSize: "16px" }
|
|
221
|
+
},
|
|
222
|
+
"& .MuiInputLabel-root": { display: "none" }
|
|
223
|
+
} })] })] }), _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [_jsx("label", { htmlFor: "email", style: { fontSize: "14px", fontWeight: 500, color: "#374151", textAlign: "left" }, children: "Email" }), _jsx(TextField, { id: "email", name: "email", type: "email", placeholder: "Email", value: user.email, onChange: handleChange, onBlur: (e) => checkEmailForMatch(e.target.value), required: true, autoComplete: "email", variant: "outlined", fullWidth: true, sx: {
|
|
224
|
+
"& .MuiOutlinedInput-root": {
|
|
225
|
+
backgroundColor: "white",
|
|
226
|
+
"& fieldset": { borderColor: "#d1d5db" },
|
|
227
|
+
"&:hover fieldset": { borderColor: "#d1d5db" },
|
|
228
|
+
"&.Mui-focused fieldset": { borderColor: "#3b82f6" },
|
|
229
|
+
"& input": { color: "#111827", fontSize: "16px" }
|
|
230
|
+
},
|
|
231
|
+
"& .MuiInputLabel-root": { display: "none" }
|
|
232
|
+
} })] }), _jsx(Button, { type: "submit", variant: "contained", fullWidth: true, disabled: isSubmitting, sx: {
|
|
233
|
+
backgroundColor: "hsl(218, 85%, 55%)",
|
|
234
|
+
color: "white",
|
|
235
|
+
padding: "12px",
|
|
236
|
+
textTransform: "none",
|
|
237
|
+
fontSize: "16px",
|
|
238
|
+
fontWeight: 500,
|
|
239
|
+
borderRadius: "6px",
|
|
240
|
+
"&:hover": { backgroundColor: "hsl(218, 85%, 50%)" },
|
|
241
|
+
"&:disabled": { backgroundColor: "#9ca3af" }
|
|
242
|
+
}, children: isSubmitting ? "Please wait..." : "Register" }), _jsx("div", { style: { textAlign: "center" }, children: _jsxs("div", { style: { fontSize: "14px", color: "#6b7280" }, children: ["Already have an account?", " ", _jsx("button", { type: "button", onClick: (e) => { e.preventDefault(); if (props.loginCallback)
|
|
243
|
+
props.loginCallback(); }, style: { background: "none", border: "none", color: "#3b82f6", fontSize: "14px", cursor: "pointer", textDecoration: "none" }, children: "Sign in" })] }) })] })] }) }));
|
|
244
|
+
};
|
|
245
|
+
//# sourceMappingURL=Register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Register.js","sourceRoot":"","sources":["../../../src/login/components/Register.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM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C,EACvF,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,wBAGrH,IACL,GACF,IACD,IACK,GACT,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChurchInterface, LoginUserChurchInterface } from "@churchapps/helpers";
|
|
3
|
+
interface Props {
|
|
4
|
+
appName: string;
|
|
5
|
+
show: boolean;
|
|
6
|
+
userChurches?: LoginUserChurchInterface[];
|
|
7
|
+
selectChurch: (churchId: string) => void;
|
|
8
|
+
registeredChurchCallback?: (church: ChurchInterface) => void;
|
|
9
|
+
errors?: string[];
|
|
10
|
+
handleRedirect?: (url: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const SelectChurchModal: React.FC<Props>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=SelectChurchModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchModal.d.ts","sourceRoot":"","sources":["../../../src/login/components/SelectChurchModal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAQhF,UAAU,KAAK;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAC1C,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoE7C,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { SelectChurchSearch } from "./SelectChurchSearch";
|
|
5
|
+
import { SelectableChurch } from "./SelectableChurch";
|
|
6
|
+
import { ErrorMessages } from "../..";
|
|
7
|
+
import { Dialog, DialogContent, DialogTitle, IconButton, Tooltip, Box } from "@mui/material";
|
|
8
|
+
import { Logout } from "@mui/icons-material";
|
|
9
|
+
import { Locale } from "../helpers";
|
|
10
|
+
export const SelectChurchModal = (props) => {
|
|
11
|
+
const [showSearch, setShowSearch] = React.useState(false);
|
|
12
|
+
const handleClose = () => {
|
|
13
|
+
window.location.reload();
|
|
14
|
+
};
|
|
15
|
+
const getContents = () => {
|
|
16
|
+
if (showSearch || props.userChurches?.length === 0)
|
|
17
|
+
return _jsx(SelectChurchSearch, { selectChurch: props.selectChurch, registeredChurchCallback: props.registeredChurchCallback, appName: props.appName });
|
|
18
|
+
else {
|
|
19
|
+
return (_jsxs(_Fragment, { children: [props.userChurches?.map(uc => (_jsx(SelectableChurch, { church: uc.church, selectChurch: props.selectChurch }, uc.church.id))), _jsx(Box, { sx: { textAlign: "center", mt: 3 }, children: _jsx("button", { type: "button", style: {
|
|
20
|
+
display: "inline-block",
|
|
21
|
+
background: "none",
|
|
22
|
+
border: "none",
|
|
23
|
+
color: "#3b82f6",
|
|
24
|
+
cursor: "pointer",
|
|
25
|
+
textDecoration: "none",
|
|
26
|
+
fontSize: "1rem",
|
|
27
|
+
transition: "all 0.2s ease"
|
|
28
|
+
}, onClick: (e) => { e.preventDefault(); setShowSearch(true); }, onMouseEnter: (e) => e.currentTarget.style.textDecoration = "underline", onMouseLeave: (e) => e.currentTarget.style.textDecoration = "none", children: Locale.label("selectChurch.another") }) })] }));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return (_jsxs(Dialog, { open: props.show, onClose: handleClose, "aria-labelledby": "select-church-title", "aria-describedby": "select-church-content", children: [_jsx(DialogTitle, { id: "select-church-title", sx: { fontSize: "1.5rem", fontWeight: 600 }, children: Locale.label("selectChurch.selectChurch") }), _jsx(Tooltip, { title: "Logout", arrow: true, children: _jsx(IconButton, { sx: { position: "absolute", right: 8, top: 8 }, color: "error", "aria-label": "Logout", onClick: () => {
|
|
32
|
+
// Use handleRedirect function if available, otherwise fallback to window.location
|
|
33
|
+
if (props.handleRedirect) {
|
|
34
|
+
props.handleRedirect("/logout");
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
window.location.href = "/logout";
|
|
38
|
+
}
|
|
39
|
+
}, children: _jsx(Logout, {}) }) }), _jsxs(DialogContent, { id: "select-church-content", sx: { width: 700, maxWidth: "100%", px: 2, py: 2 }, children: [_jsx(ErrorMessages, { errors: props.errors }), getContents()] })] }));
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=SelectChurchModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchModal.js","sourceRoot":"","sources":["../../../src/login/components/SelectChurchModal.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAA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AAM,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,aAC3F,KAAC,aAAa,IAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAI,EACtC,WAAW,EAAE,IACC,IACR,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChurchInterface } from "@churchapps/helpers";
|
|
3
|
+
interface Props {
|
|
4
|
+
initialChurchName: string;
|
|
5
|
+
registeredChurchCallback?: (church: ChurchInterface) => void;
|
|
6
|
+
selectChurch: (churchId: string) => void;
|
|
7
|
+
appName: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SelectChurchRegister: React.FC<Props>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=SelectChurchRegister.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchRegister.d.ts","sourceRoot":"","sources":["../../../src/login/components/SelectChurchRegister.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAkC,MAAM,qBAAqB,CAAC;AAItF,UAAU,KAAK;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4EhD,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ApiHelper } from "@churchapps/helpers";
|
|
5
|
+
import { Locale } from "../helpers";
|
|
6
|
+
import { ErrorMessages, InputBox } from "../..";
|
|
7
|
+
import { Grid, TextField } from "@mui/material";
|
|
8
|
+
export const SelectChurchRegister = (props) => {
|
|
9
|
+
const suggestSubDomain = (name) => {
|
|
10
|
+
const result = name.toLowerCase().replaceAll("christian", "").replaceAll("church", "").replaceAll(" ", "");
|
|
11
|
+
return result;
|
|
12
|
+
};
|
|
13
|
+
const [church, setChurch] = React.useState({ name: props.initialChurchName, appName: props.appName, subDomain: suggestSubDomain(props.initialChurchName) });
|
|
14
|
+
const [errors, setErrors] = React.useState([]);
|
|
15
|
+
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
16
|
+
const handleChange = (e) => {
|
|
17
|
+
const c = { ...church };
|
|
18
|
+
switch (e.target.name) {
|
|
19
|
+
case "churchName":
|
|
20
|
+
c.name = e.target.value;
|
|
21
|
+
break;
|
|
22
|
+
case "subDomain":
|
|
23
|
+
c.subDomain = e.target.value;
|
|
24
|
+
break;
|
|
25
|
+
case "address1":
|
|
26
|
+
c.address1 = e.target.value;
|
|
27
|
+
break;
|
|
28
|
+
case "address2":
|
|
29
|
+
c.address2 = e.target.value;
|
|
30
|
+
break;
|
|
31
|
+
case "city":
|
|
32
|
+
c.city = e.target.value;
|
|
33
|
+
break;
|
|
34
|
+
case "state":
|
|
35
|
+
c.state = e.target.value;
|
|
36
|
+
break;
|
|
37
|
+
case "zip":
|
|
38
|
+
c.zip = e.target.value;
|
|
39
|
+
break;
|
|
40
|
+
case "country":
|
|
41
|
+
c.country = e.target.value;
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
setChurch(c);
|
|
45
|
+
};
|
|
46
|
+
const validate = () => {
|
|
47
|
+
const errors = [];
|
|
48
|
+
if (!church.name?.trim())
|
|
49
|
+
errors.push(Locale.label("selectChurch.validate.name"));
|
|
50
|
+
if (!church.address1?.trim())
|
|
51
|
+
errors.push(Locale.label("selectChurch.validate.address"));
|
|
52
|
+
if (!church.city?.trim())
|
|
53
|
+
errors.push(Locale.label("selectChurch.validate.city"));
|
|
54
|
+
if (!church.state?.trim())
|
|
55
|
+
errors.push(Locale.label("selectChurch.validate.state"));
|
|
56
|
+
if (!church.zip?.trim())
|
|
57
|
+
errors.push(Locale.label("selectChurch.validate.zip"));
|
|
58
|
+
if (!church.country?.trim())
|
|
59
|
+
errors.push(Locale.label("selectChurch.validate.country"));
|
|
60
|
+
setErrors(errors);
|
|
61
|
+
return errors.length === 0;
|
|
62
|
+
};
|
|
63
|
+
const handleSave = () => {
|
|
64
|
+
if (validate()) {
|
|
65
|
+
setIsSubmitting(true);
|
|
66
|
+
const c = { ...church };
|
|
67
|
+
if (!c.subDomain)
|
|
68
|
+
c.subDomain = suggestSubDomain(c.name);
|
|
69
|
+
ApiHelper.post("/churches/add", church, "MembershipApi")
|
|
70
|
+
.then(async (resp) => {
|
|
71
|
+
if (resp.errors !== undefined)
|
|
72
|
+
setErrors(resp.errors);
|
|
73
|
+
else {
|
|
74
|
+
if (props.registeredChurchCallback)
|
|
75
|
+
props.registeredChurchCallback(resp);
|
|
76
|
+
props.selectChurch(resp.id);
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
.catch((e) => {
|
|
80
|
+
setErrors([e.toString()]);
|
|
81
|
+
})
|
|
82
|
+
.finally(() => {
|
|
83
|
+
setIsSubmitting(false);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
return (_jsxs(InputBox, { id: "churchBox", saveFunction: handleSave, headerText: Locale.label("selectChurch.register"), headerIcon: "church", isSubmitting: isSubmitting, saveTextSubmitting: Locale.label("common.pleaseWait"), children: [_jsx(ErrorMessages, { errors: errors }), _jsx(TextField, { required: true, fullWidth: true, name: "churchName", label: Locale.label("selectChurch.name"), value: church.name, onChange: handleChange }), _jsx(TextField, { required: true, fullWidth: true, name: "address1", label: Locale.label("selectChurch.address1"), value: church.address1, onChange: handleChange }), _jsxs(Grid, { container: true, spacing: 3, children: [_jsx(Grid, { size: 6, children: _jsx(TextField, { fullWidth: true, name: "address2", label: Locale.label("selectChurch.address2"), value: church.address2, onChange: handleChange }) }), _jsx(Grid, { size: 6, children: _jsx(TextField, { required: true, fullWidth: true, name: "city", label: Locale.label("selectChurch.city"), value: church.city, onChange: handleChange }) })] }), _jsxs(Grid, { container: true, spacing: 3, children: [_jsx(Grid, { size: 6, children: _jsx(TextField, { required: true, fullWidth: true, name: "state", label: Locale.label("selectChurch.state"), value: church.state, onChange: handleChange }) }), _jsx(Grid, { size: 6, children: _jsx(TextField, { required: true, fullWidth: true, name: "zip", label: Locale.label("selectChurch.zip"), value: church.zip, onChange: handleChange }) })] }), _jsx(TextField, { required: true, fullWidth: true, name: "country", label: Locale.label("selectChurch.country"), value: church.country, onChange: handleChange })] }));
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=SelectChurchRegister.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchRegister.js","sourceRoot":"","sources":["../../../src/login/components/SelectChurchRegister.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAShD,MAAM,CAAC,MAAM,oBAAoB,GAAoB,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE;QACxC,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC3G,OAAO,MAAM,CAAC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AQ,QAAC,SAAS,QAAC,IAAI,EAAC,KAAK,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,QAAQ,EAAE,YAAY,GAAI,GAAO,IAChJ,EACP,KAAC,SAAS,IAAC,QAAQ,QAAC,SAAS,QAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,GAAI,IAClI,CACZ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChurchInterface } from "@churchapps/helpers";
|
|
3
|
+
interface Props {
|
|
4
|
+
selectChurch: (churchId: string) => void;
|
|
5
|
+
registeredChurchCallback?: (church: ChurchInterface) => void;
|
|
6
|
+
appName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SelectChurchSearch: React.FC<Props>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SelectChurchSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchSearch.d.ts","sourceRoot":"","sources":["../../../src/login/components/SelectChurchSearch.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD,UAAU,KAAK;IACd,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsE9C,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Button, TextField } from "@mui/material";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { ApiHelper } from "@churchapps/helpers";
|
|
6
|
+
import { Locale } from "../helpers";
|
|
7
|
+
import { SelectableChurch } from "./SelectableChurch";
|
|
8
|
+
import { SelectChurchRegister } from "./SelectChurchRegister";
|
|
9
|
+
export const SelectChurchSearch = (props) => {
|
|
10
|
+
const [searchText, setSearchText] = React.useState("");
|
|
11
|
+
const [churches, setChurches] = React.useState(null);
|
|
12
|
+
const [showRegister, setShowRegister] = React.useState(false);
|
|
13
|
+
const handleSubmit = (e) => {
|
|
14
|
+
if (e !== null)
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
const term = searchText.trim();
|
|
17
|
+
ApiHelper.post("/churches/search", { name: term }, "MembershipApi").then((data) => setChurches(data));
|
|
18
|
+
};
|
|
19
|
+
const handleChange = (e) => setSearchText(e.currentTarget.value);
|
|
20
|
+
const handleKeyDown = (e) => { if (e.key === "Enter") {
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
handleSubmit(null);
|
|
23
|
+
} };
|
|
24
|
+
const handleRegisterClick = (e) => {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
if (window.confirm(Locale.label("selectChurch.confirmRegister"))) {
|
|
27
|
+
setShowRegister(true);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const getRegisterLink = () => (_jsx("div", { children: _jsx("button", { type: "button", style: {
|
|
31
|
+
display: "block",
|
|
32
|
+
textAlign: "center",
|
|
33
|
+
background: "none",
|
|
34
|
+
border: "none",
|
|
35
|
+
color: "#3b82f6",
|
|
36
|
+
cursor: "pointer",
|
|
37
|
+
textDecoration: "underline",
|
|
38
|
+
width: "100%"
|
|
39
|
+
}, onClick: handleRegisterClick, children: Locale.label("selectChurch.register") }) }));
|
|
40
|
+
const getChurches = () => {
|
|
41
|
+
const result = [];
|
|
42
|
+
churches.forEach(church => {
|
|
43
|
+
result.push(_jsx(SelectableChurch, { church: church, selectChurch: props.selectChurch }));
|
|
44
|
+
});
|
|
45
|
+
result.push(getRegisterLink());
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
const getResults = () => {
|
|
49
|
+
if (churches === null)
|
|
50
|
+
return;
|
|
51
|
+
else if (churches.length === 0)
|
|
52
|
+
return _jsxs(_Fragment, { children: [_jsx("p", { children: Locale.label("selectChurch.noMatches") }), getRegisterLink()] });
|
|
53
|
+
else
|
|
54
|
+
return getChurches();
|
|
55
|
+
};
|
|
56
|
+
if (showRegister)
|
|
57
|
+
return (_jsx(SelectChurchRegister, { selectChurch: props.selectChurch, registeredChurchCallback: props.registeredChurchCallback, appName: props.appName, initialChurchName: searchText }));
|
|
58
|
+
else {
|
|
59
|
+
return (_jsxs(_Fragment, { children: [_jsx(TextField, { fullWidth: true, name: "searchText", label: "Name", value: searchText, onChange: handleChange, onKeyDown: handleKeyDown, InputProps: { endAdornment: _jsx(Button, { variant: "contained", id: "searchButton", "data-testid": "search-button", onClick: handleSubmit, children: Locale.label("common.search") }) } }), getResults()] }));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=SelectChurchSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchSearch.js","sourceRoot":"","sources":["../../../src/login/components/SelectChurchSearch.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wB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AAO,EAAE,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,UAAU,GAAI,CAAC,CAAC;SAClM,CAAC;QACJ,OAAO,CACT,8BACC,KAAC,SAAS,IAAC,SAAS,QAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EACtH,UAAU,EAAE,EAAE,YAAY,EAAE,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,EAAE,EAAC,cAAc,iBAAa,eAAe,EAAC,OAAO,EAAE,YAAY,YAAG,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,GAAU,EAAE,GACtK,EACD,UAAU,EAAE,IACX,CAEA,CAAC;IACJ,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChurchInterface } from "@churchapps/helpers";
|
|
3
|
+
interface Props {
|
|
4
|
+
selectChurch: (churchId: string) => void;
|
|
5
|
+
church: ChurchInterface;
|
|
6
|
+
}
|
|
7
|
+
export declare const SelectableChurch: React.FC<Props>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=SelectableChurch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectableChurch.d.ts","sourceRoot":"","sources":["../../../src/login/components/SelectableChurch.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAA2B,MAAM,qBAAqB,CAAC;AAG/E,UAAU,KAAK;IACb,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoG5C,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Grid, Paper, Box, Typography } from "@mui/material";
|
|
4
|
+
import { ArrayHelper } from "@churchapps/helpers";
|
|
5
|
+
import { LocationOn, Church } from "@mui/icons-material";
|
|
6
|
+
export const SelectableChurch = (props) => {
|
|
7
|
+
let logo = null;
|
|
8
|
+
if (props.church.settings) {
|
|
9
|
+
const l = ArrayHelper.getOne(props.church.settings, "keyName", "logoLight");
|
|
10
|
+
if (l?.value)
|
|
11
|
+
logo = l.value;
|
|
12
|
+
}
|
|
13
|
+
return (_jsx(Paper, { elevation: 0, sx: {
|
|
14
|
+
p: 1,
|
|
15
|
+
mb: 0.75,
|
|
16
|
+
cursor: "pointer",
|
|
17
|
+
transition: "all 0.2s ease",
|
|
18
|
+
border: "1px solid transparent",
|
|
19
|
+
borderRadius: 2,
|
|
20
|
+
"&:hover": {
|
|
21
|
+
borderColor: "primary.main",
|
|
22
|
+
boxShadow: 2,
|
|
23
|
+
transform: "translateY(-2px)"
|
|
24
|
+
}
|
|
25
|
+
}, onClick: () => props.selectChurch(props.church.id), children: _jsxs(Grid, { container: true, spacing: 2, alignItems: "center", children: [_jsx(Grid, { size: { xs: 12, sm: 5, md: 5 }, children: _jsx(Box, { sx: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
justifyContent: "center",
|
|
28
|
+
alignItems: "center",
|
|
29
|
+
height: { xs: 60, sm: 80 },
|
|
30
|
+
p: 0.5
|
|
31
|
+
}, children: logo ? (_jsx("img", { src: logo, alt: `${props.church.name} logo`, style: {
|
|
32
|
+
width: "100%",
|
|
33
|
+
height: "100%",
|
|
34
|
+
objectFit: "contain"
|
|
35
|
+
} })) : (_jsx(Box, { sx: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
justifyContent: "center",
|
|
39
|
+
width: "100%",
|
|
40
|
+
height: "100%",
|
|
41
|
+
backgroundColor: "grey.100",
|
|
42
|
+
borderRadius: 2
|
|
43
|
+
}, children: _jsx(Church, { sx: { fontSize: { xs: 40, sm: 50 }, color: "grey.400" } }) })) }) }), _jsx(Grid, { size: { xs: 12, sm: 7, md: 7 }, children: _jsxs(Box, { children: [_jsx(Typography, { variant: "h6", component: "h3", sx: {
|
|
44
|
+
color: "primary.main",
|
|
45
|
+
fontWeight: 600,
|
|
46
|
+
mb: 0.5
|
|
47
|
+
}, children: props.church.name }), (props.church.address1 || props.church.city || props.church.state) && (_jsxs(Box, { sx: { display: "flex", alignItems: "flex-start", color: "text.secondary" }, children: [_jsx(LocationOn, { sx: { fontSize: 18, mr: 0.5, mt: 0.3 } }), _jsxs(Box, { children: [props.church.address1 && (_jsx(Typography, { variant: "body2", children: props.church.address1 })), (props.church.city || props.church.state) && (_jsxs(Typography, { variant: "body2", children: [props.church.city && props.church.city, props.church.city && props.church.state && ", ", props.church.state] }))] })] }))] }) })] }) }));
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=SelectableChurch.js.map
|