@redneckz/wildless-cms-uni-blocks 0.7.8 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/ProjectSettings.d.ts +4 -4
- package/bundle/api/CorporateLeadAPI.d.ts +15 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +565 -324
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
- package/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/bundle/components/ApplicationForm/models.d.ts +6 -0
- package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/bundle/icons/IconName.d.ts +10 -2
- package/bundle/services/sitemap/isHrefActive.d.ts +1 -2
- package/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/bundle/utils/adjustHref.d.ts +1 -4
- package/bundle/utils/url.d.ts +4 -2
- package/cosmos-static/icons/MailIcon.svg +1 -0
- package/cosmos-static/icons/PhoneIcon.svg +1 -0
- package/cosmos-static/icons/ResponceFailIcon.svg +1 -0
- package/cosmos-static/icons/ResponceOKIcon.svg +1 -0
- package/dist/ProjectSettings.d.ts +4 -4
- package/dist/ProjectSettings.js +3 -5
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/api/CorporateLeadAPI.d.ts +15 -0
- package/dist/api/CorporateLeadAPI.js +24 -0
- package/dist/api/CorporateLeadAPI.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +30 -0
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/dist/components/ApplicationForm/Footnote.d.ts +6 -0
- package/dist/components/ApplicationForm/Footnote.js +9 -0
- package/dist/components/ApplicationForm/Footnote.js.map +1 -0
- package/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/dist/components/ApplicationForm/ResponseNotification.js +13 -0
- package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/dist/components/ApplicationForm/WrapperSelect.js +13 -0
- package/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/dist/components/ApplicationForm/acquiringTypes.js +25 -0
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +6 -0
- package/dist/components/ApplicationForm/models.js +2 -0
- package/dist/components/ApplicationForm/models.js.map +1 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/dist/components/ApplicationForm/renderBankOffices.js +7 -0
- package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/dist/components/ApplicationForm/renderContacts.js +7 -0
- package/dist/components/ApplicationForm/renderContacts.js.map +1 -0
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
- package/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/dist/components/ApplicationForm/renderSelects.js +8 -0
- package/dist/components/ApplicationForm/renderSelects.js.map +1 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/dist/components/ApplicationForm/useFormHandlers.js +16 -0
- package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +3 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +4 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +1 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.js +2 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/dist/hooks/useLink.js +16 -12
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/icons/IconName.d.ts +10 -2
- package/dist/icons/IconName.js +9 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/services/sitemap/isHrefActive.d.ts +1 -2
- package/dist/services/sitemap/isHrefActive.js +2 -2
- package/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/dist/services/sitemap/isSubItemActive.d.ts +3 -2
- package/dist/services/sitemap/isSubItemActive.js.map +1 -1
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -6
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/setup-fixture.js +13 -6
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/adjustHref.d.ts +1 -4
- package/dist/utils/adjustHref.js +4 -8
- package/dist/utils/adjustHref.js.map +1 -1
- package/dist/utils/url.d.ts +4 -2
- package/dist/utils/url.js +15 -28
- package/dist/utils/url.js.map +1 -1
- package/lib/ProjectSettings.d.ts +4 -4
- package/lib/ProjectSettings.js +3 -5
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/api/CorporateLeadAPI.d.ts +15 -0
- package/lib/api/CorporateLeadAPI.js +21 -0
- package/lib/api/CorporateLeadAPI.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +28 -0
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/lib/components/ApplicationForm/Footnote.d.ts +6 -0
- package/lib/components/ApplicationForm/Footnote.js +7 -0
- package/lib/components/ApplicationForm/Footnote.js.map +1 -0
- package/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/lib/components/ApplicationForm/ResponseNotification.js +11 -0
- package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/lib/components/ApplicationForm/WrapperSelect.js +11 -0
- package/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/lib/components/ApplicationForm/acquiringTypes.js +23 -0
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +6 -0
- package/lib/components/ApplicationForm/models.js +2 -0
- package/lib/components/ApplicationForm/models.js.map +1 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/lib/components/ApplicationForm/renderBankOffices.js +4 -0
- package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/lib/components/ApplicationForm/renderContacts.js +4 -0
- package/lib/components/ApplicationForm/renderContacts.js.map +1 -0
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
- package/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/lib/components/ApplicationForm/renderSelects.js +5 -0
- package/lib/components/ApplicationForm/renderSelects.js.map +1 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/lib/components/ApplicationForm/useFormHandlers.js +13 -0
- package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +3 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +4 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.js +1 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.js +2 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
- package/lib/hooks/useLink.js +17 -13
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/icons/IconName.d.ts +10 -2
- package/lib/icons/IconName.js +9 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/services/sitemap/isHrefActive.d.ts +1 -2
- package/lib/services/sitemap/isHrefActive.js +2 -2
- package/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/lib/services/sitemap/isSubItemActive.d.ts +3 -2
- package/lib/services/sitemap/isSubItemActive.js.map +1 -1
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -6
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/setup-fixture.js +14 -7
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +5 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/adjustHref.d.ts +1 -4
- package/lib/utils/adjustHref.js +5 -9
- package/lib/utils/adjustHref.js.map +1 -1
- package/lib/utils/url.d.ts +4 -2
- package/lib/utils/url.js +12 -26
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/ProjectSettings.d.ts +4 -4
- package/mobile/bundle/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/bundle/bundle.umd.js +41 -71
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/bundle/icons/IconName.d.ts +10 -2
- package/mobile/bundle/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/bundle/utils/adjustHref.d.ts +1 -4
- package/mobile/bundle/utils/url.d.ts +4 -2
- package/mobile/dist/ProjectSettings.d.ts +4 -4
- package/mobile/dist/ProjectSettings.js +3 -5
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/dist/api/CorporateLeadAPI.js +24 -0
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +30 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js +9 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +13 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js +13 -0
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +25 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/models.js +2 -0
- package/mobile/dist/components/ApplicationForm/models.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderSelects.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +16 -0
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +4 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/dist/hooks/useLink.js +16 -12
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +10 -2
- package/mobile/dist/icons/IconName.js +9 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/dist/services/sitemap/isHrefActive.js +2 -2
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -6
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/setup-fixture.js +13 -6
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/adjustHref.d.ts +1 -4
- package/mobile/dist/utils/adjustHref.js +4 -8
- package/mobile/dist/utils/adjustHref.js.map +1 -1
- package/mobile/dist/utils/url.d.ts +4 -2
- package/mobile/dist/utils/url.js +15 -28
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/ProjectSettings.d.ts +4 -4
- package/mobile/lib/ProjectSettings.js +3 -5
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +15 -0
- package/mobile/lib/api/CorporateLeadAPI.js +21 -0
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +28 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js +7 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +11 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js +11 -0
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +23 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/models.js +2 -0
- package/mobile/lib/components/ApplicationForm/models.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderSelects.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +13 -0
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +4 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
- package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
- package/mobile/lib/hooks/useLink.js +17 -13
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +10 -2
- package/mobile/lib/icons/IconName.js +9 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -2
- package/mobile/lib/services/sitemap/isHrefActive.js +2 -2
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -6
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/setup-fixture.js +14 -7
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/adjustHref.d.ts +1 -4
- package/mobile/lib/utils/adjustHref.js +5 -9
- package/mobile/lib/utils/adjustHref.js.map +1 -1
- package/mobile/lib/utils/url.d.ts +4 -2
- package/mobile/lib/utils/url.js +12 -26
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/ProjectSettings.ts +6 -7
- package/mobile/src/api/CorporateLeadAPI.ts +36 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
- package/mobile/src/components/ApplicationForm/Footnote.tsx +25 -0
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +24 -0
- package/mobile/src/components/ApplicationForm/models.ts +7 -0
- package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
- package/mobile/src/components/ApplicationForm/renderContacts.tsx +22 -0
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
- package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
- package/mobile/src/components/ApplicationForm/renderSelects.tsx +38 -0
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +32 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +16 -12
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
- package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
- package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
- package/mobile/src/hooks/useLink.ts +19 -15
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MailIcon.svg +1 -0
- package/mobile/src/icons/PhoneIcon.svg +1 -0
- package/mobile/src/icons/ResponceFailIcon.svg +1 -0
- package/mobile/src/icons/ResponceOKIcon.svg +1 -0
- package/mobile/src/services/sitemap/isHrefActive.ts +4 -10
- package/mobile/src/services/sitemap/isSubItemActive.ts +1 -2
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -8
- package/mobile/src/setup-fixture.ts +19 -7
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +16 -19
- package/mobile/src/utils/adjustHref.ts +6 -14
- package/mobile/src/utils/url.ts +18 -33
- package/package.json +2 -2
- package/src/ProjectSettings.ts +6 -7
- package/src/api/CorporateLeadAPI.ts +36 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +43 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
- package/src/components/ApplicationForm/Footnote.tsx +25 -0
- package/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
- package/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
- package/src/components/ApplicationForm/acquiringTypes.ts +24 -0
- package/src/components/ApplicationForm/models.ts +7 -0
- package/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
- package/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
- package/src/components/ApplicationForm/renderContacts.tsx +22 -0
- package/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
- package/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
- package/src/components/ApplicationForm/renderSelects.tsx +38 -0
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
- package/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
- package/src/components/ApplicationForm/useFormHandlers.ts +32 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +1 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
- package/src/components/Header/DropdownMenu.tsx +16 -12
- package/src/components/Header/Header.tsx +3 -5
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
- package/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -4
- package/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
- package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +17 -0
- package/src/hooks/useLink.ts +19 -15
- package/src/icons/IconName.ts +5 -5
- package/src/icons/MailIcon.svg +1 -0
- package/src/icons/PhoneIcon.svg +1 -0
- package/src/icons/ResponceFailIcon.svg +1 -0
- package/src/icons/ResponceOKIcon.svg +1 -0
- package/src/services/sitemap/isHrefActive.ts +4 -10
- package/src/services/sitemap/isSubItemActive.ts +1 -2
- package/src/services/sitemap/isTopItemActive.ts +2 -8
- package/src/setup-fixture.ts +19 -7
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +7 -8
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.fixture.tsx +9 -0
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +16 -19
- package/src/utils/adjustHref.ts +6 -14
- package/src/utils/url.ts +18 -33
- package/tailwind.config.cjs +5 -0
- package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/bundle/utils/normalizeURLPath.d.ts +0 -1
- package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
- package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/dist/utils/normalizeURLPath.d.ts +0 -1
- package/dist/utils/normalizeURLPath.js +0 -12
- package/dist/utils/normalizeURLPath.js.map +0 -1
- package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
- package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/lib/utils/normalizeURLPath.d.ts +0 -1
- package/lib/utils/normalizeURLPath.js +0 -9
- package/lib/utils/normalizeURLPath.js.map +0 -1
- package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/bundle/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
- package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/mobile/dist/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/dist/utils/normalizeURLPath.js +0 -12
- package/mobile/dist/utils/normalizeURLPath.js.map +0 -1
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
- package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
- package/mobile/lib/utils/normalizeURLPath.d.ts +0 -1
- package/mobile/lib/utils/normalizeURLPath.js +0 -9
- package/mobile/lib/utils/normalizeURLPath.js.map +0 -1
- package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
- package/mobile/src/utils/normalizeURLPath.ts +0 -10
- package/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
- package/src/utils/normalizeURLPath.ts +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg title="Ошибка" xmlns="http://www.w3.org/2000/svg" width="38" height="34" fill="none"><mask id="a" width="38" height="34" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#898989" d="M20.494.178h-2.987C8.144.178.557 7.706.557 16.999c0 9.293 7.587 16.822 16.95 16.822h2.987c9.363 0 16.949-7.529 16.949-16.822S29.85.178 20.493.178Z"/></mask><g mask="url(#a)"><path fill="#FA552D" d="M20.494.178h-2.987C8.144.178.557 7.706.557 16.999c0 9.293 7.587 16.822 16.95 16.822h2.987c9.363 0 16.949-7.529 16.949-16.822S29.85.178 20.493.178Z"/><path fill="#542C4B" d="M37.447.178H15.39V33.82h22.057V.178Z"/><path fill="url(#b)" d="M37.447.178H15.39V33.82h22.057V.178Z"/></g><path fill="#FFECEC" d="M17.502 33.82c9.36 0 16.949-7.531 16.949-16.822C34.45 7.708 26.862.177 17.5.177 8.142.177.554 7.708.554 16.998c0 9.29 7.588 16.822 16.949 16.822Z"/><mask id="c" width="35" height="33" x="0" y="1" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#898989" d="M34.445 16.997c0-1.14-.115-2.254-.332-3.33-2.05-7-8.56-12.115-16.273-12.115C8.477 1.552.89 9.08.89 18.373c0 1.14.115 2.255.332 3.331 2.05 7 8.56 12.115 16.274 12.115 9.363-.006 16.949-7.535 16.949-16.822Z"/></mask><g mask="url(#c)"><path fill="#FA552D" d="M34.445 16.997c0-1.14-.115-2.254-.332-3.33-2.05-7-8.56-12.115-16.273-12.115C8.477 1.552.89 9.08.89 18.373c0 1.14.115 2.255.332 3.331 2.05 7 8.56 12.115 16.274 12.115 9.363-.006 16.949-7.535 16.949-16.822Z"/><path fill="url(#d)" d="M34.445 16.997c0-1.14-.115-2.254-.332-3.33-2.05-7-8.56-12.115-16.273-12.115C8.477 1.552.89 9.08.89 18.373c0 1.14.115 2.255.332 3.331 2.05 7 8.56 12.115 16.274 12.115 9.363-.006 16.949-7.535 16.949-16.822Z"/></g><path fill="#542C4B" d="m21.56 17.679 4.777-4.777c.63-.63.63-1.656 0-2.293a1.602 1.602 0 0 0-1.096-.472h-2.267a1.591 1.591 0 0 0-1.21.472l-3.638 3.637-3.637-3.637a1.602 1.602 0 0 0-1.159-.472h-2.267c-.414 0-.828.16-1.147.472-.63.63-.63 1.656 0 2.293l4.777 4.777-4.777 4.777c-.63.63-.63 1.656 0 2.293a1.61 1.61 0 0 0 1.147.471h2.28c.414 0 .828-.16 1.146-.471l3.637-3.637 3.637 3.637a1.61 1.61 0 0 0 1.147.471h.064l2.267-.006c.395-.013.79-.166 1.096-.472.63-.63.63-1.656 0-2.293l-4.777-4.77Z"/><path fill="url(#e)" d="m21.56 17.679 4.777-4.777c.63-.63.63-1.656 0-2.293a1.602 1.602 0 0 0-1.096-.472h-2.267a1.591 1.591 0 0 0-1.21.472l-3.638 3.637-3.637-3.637a1.602 1.602 0 0 0-1.159-.472h-2.267c-.414 0-.828.16-1.147.472-.63.63-.63 1.656 0 2.293l4.777 4.777-4.777 4.777c-.63.63-.63 1.656 0 2.293a1.61 1.61 0 0 0 1.147.471h2.28c.414 0 .828-.16 1.146-.471l3.637-3.637 3.637 3.637a1.61 1.61 0 0 0 1.147.471h.064l2.267-.006c.395-.013.79-.166 1.096-.472.63-.63.63-1.656 0-2.293l-4.777-4.77Z"/><path fill="#fff" d="m19.28 17.679 4.776-4.777c.63-.63.63-1.656 0-2.293a1.626 1.626 0 0 0-2.293 0l-4.777 4.777-4.777-4.777a1.626 1.626 0 0 0-2.293 0c-.63.63-.63 1.656 0 2.293l4.777 4.777-4.777 4.777c-.63.63-.63 1.656 0 2.293a1.61 1.61 0 0 0 1.147.471c.414 0 .828-.16 1.146-.471l4.777-4.777 4.777 4.777a1.61 1.61 0 0 0 1.147.471c.414 0 .828-.16 1.146-.471.63-.63.63-1.656 0-2.293l-4.777-4.777Z"/><defs><linearGradient id="b" x1="31.96" x2="31.96" y1="33.821" y2="16.999" gradientUnits="userSpaceOnUse"><stop stop-color="#FA552D"/><stop offset=".472" stop-color="#0057D6"/><stop offset="1" stop-color="#0057D6" stop-opacity="0"/></linearGradient><linearGradient id="d" x1="6.357" x2="17.668" y1="5.974" y2="17.685" gradientUnits="userSpaceOnUse"><stop stop-color="#FFB571"/><stop offset="1" stop-color="#FFB571" stop-opacity="0"/></linearGradient><linearGradient id="e" x1="25.214" x2="25.214" y1="25.22" y2="22.692" gradientUnits="userSpaceOnUse"><stop stop-color="#0057D6"/><stop offset="1" stop-color="#0057D6" stop-opacity="0"/></linearGradient></defs></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg title="Ок" xmlns="http://www.w3.org/2000/svg" width="42" height="42" fill="none"><mask id="a" width="38" height="34" x="2" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#fff" d="M22.507.254h-2.988c-9.363 0-16.954 7.533-16.954 16.82 0 9.287 7.59 16.821 16.954 16.821h2.988c9.363 0 16.953-7.534 16.953-16.82C39.46 7.786 31.87.253 22.507.253Z"/></mask><g mask="url(#a)"><path fill="#42AB44" d="M22.507.254h-2.988c-9.363 0-16.954 7.533-16.954 16.82 0 9.287 7.59 16.821 16.954 16.821h2.988c9.363 0 16.953-7.534 16.953-16.82C39.46 7.786 31.87.253 22.507.253Z"/><path fill="#44384D" d="M39.45.356H17.393V34H39.45V.356Z"/><path fill="url(#b)" d="M39.45.356H17.393V34H39.45V.356Z"/></g><path fill="#E2F6E2" d="M19.518 33.897c9.363 0 16.953-7.53 16.953-16.82S28.881.255 19.518.255 2.564 7.786 2.564 17.076s7.59 16.82 16.954 16.82Z"/><mask id="c" width="35" height="33" x="2" y="1" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#fff" d="M36.478 17.07c0-1.14-.114-2.254-.335-3.33-2.051-7.002-8.56-12.117-16.276-12.117-9.364 0-16.954 7.534-16.954 16.82 0 1.14.114 2.254.336 3.337 2.05 7.002 8.559 12.117 16.276 12.117 9.363-.007 16.953-7.54 16.953-16.827Z"/></mask><g mask="url(#c)"><path fill="#7DC15D" d="M36.478 17.07c0-1.14-.114-2.254-.335-3.33-2.051-7.002-8.56-12.117-16.276-12.117-9.364 0-16.954 7.534-16.954 16.82 0 1.14.114 2.254.336 3.337 2.05 7.002 8.559 12.117 16.276 12.117 9.363-.007 16.953-7.54 16.953-16.827Z"/><path fill="url(#d)" d="M36.478 17.07c0-1.14-.114-2.254-.335-3.33-2.051-7.002-8.56-12.117-16.276-12.117-9.364 0-16.954 7.534-16.954 16.82 0 1.14.114 2.254.336 3.337 2.05 7.002 8.559 12.117 16.276 12.117 9.363-.007 16.953-7.54 16.953-16.827Z"/></g><path fill="#44384D" d="M30.659 10.89a1.502 1.502 0 0 0-.918-.323h-2.298c-.45-.007-.906.17-1.241.506l-8.857 8.933-4.59-4.654a1.567 1.567 0 0 0-1.152-.468H9.337c-.45 0-.893.19-1.21.57-.531.64-.423 1.595.16 2.184l7.457 7.565c.12.12.272.177.43.184l2.298.006a.628.628 0 0 0 .45-.19l11.863-11.971a1.572 1.572 0 0 0-.126-2.343Z"/><path fill="#fff" d="m15.744 25.2-7.458-7.564c-.582-.589-.69-1.545-.158-2.184a1.579 1.579 0 0 1 2.348-.102l5.546 5.622c.101.101.26.101.361 0l9.819-9.908c.582-.588 1.538-.702 2.177-.183.741.601.786 1.69.133 2.349L16.65 25.2a.634.634 0 0 1-.905 0Z"/><path fill="#582B4C" d="M36.386 38.591c0-.11-.105-.22-.31-.324-1.88-.689-7.86-1.187-14.946-1.187-8.598 0-15.571.741-15.571 1.65 0 .11.105.22.309.325 1.888.689 7.861 1.187 14.946 1.187 8.599 0 15.572-.741 15.572-1.65Z"/><path fill="url(#e)" d="M36.386 38.591c0-.11-.105-.22-.31-.324-1.88-.689-7.86-1.187-14.946-1.187-8.598 0-15.571.741-15.571 1.65 0 .11.105.22.309.325 1.888.689 7.861 1.187 14.946 1.187 8.599 0 15.572-.741 15.572-1.65Z"/><defs><linearGradient id="b" x1="33.963" x2="33.963" y1="33.999" y2="17.178" gradientUnits="userSpaceOnUse"><stop stop-color="#42AB44"/><stop offset=".472" stop-color="#0057D6"/><stop offset="1" stop-color="#0057D6" stop-opacity="0"/></linearGradient><linearGradient id="d" x1="6.863" x2="19.696" y1="4.815" y2="17.76" gradientUnits="userSpaceOnUse"><stop stop-color="#FFCA42"/><stop offset="1" stop-color="#FFCA42" stop-opacity="0"/></linearGradient><linearGradient id="e" x1="5.559" x2="36.386" y1="38.661" y2="38.661" gradientUnits="userSpaceOnUse"><stop stop-color="#FA552D"/><stop offset=".31" stop-color="#FA552D" stop-opacity="0"/><stop offset=".666" stop-color="#7DC15D" stop-opacity="0"/><stop offset="1" stop-color="#7DC15D"/></linearGradient></defs></svg>
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { adjustHref } from '../../utils/adjustHref';
|
|
2
2
|
import { getPathname, isURL, withoutQuery } from '../../utils/url';
|
|
3
3
|
|
|
4
|
-
export const isHrefActive = (
|
|
5
|
-
href
|
|
6
|
-
|
|
7
|
-
cmp: (targetHref: string, baseHref: string) => boolean = (targetHref, baseHref) =>
|
|
8
|
-
baseHref.startsWith(targetHref),
|
|
9
|
-
) =>
|
|
10
|
-
cmp(
|
|
11
|
-
withoutQuery(normalizeURLPath(href)),
|
|
12
|
-
withoutQuery(isURL(href) ? router.href : getPathname(router.href)),
|
|
4
|
+
export const isHrefActive = (href: string | undefined, router: { href?: string }) =>
|
|
5
|
+
withoutQuery(isURL(href) ? router.href : getPathname(router.href)).startsWith(
|
|
6
|
+
withoutQuery(adjustHref(href)),
|
|
13
7
|
);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { Router } from '../../hooks/useRouter';
|
|
2
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
3
2
|
import { isHrefActive } from './isHrefActive';
|
|
4
3
|
|
|
5
4
|
export const isSubItemActive =
|
|
6
|
-
(router:
|
|
5
|
+
(router: { href?: string }) =>
|
|
7
6
|
(subItem: LinkProps): boolean =>
|
|
8
7
|
isHrefActive(subItem.href, router);
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import type { Router } from '../../hooks/useRouter';
|
|
2
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
3
|
-
import { checkIsHrefSameOrigin } from './checkIsHrefSameOrigin';
|
|
4
1
|
import { isHrefActive } from './isHrefActive';
|
|
5
2
|
import { isSubItemActive } from './isSubItemActive';
|
|
6
3
|
import { TopMenuItem } from './SitemapProps';
|
|
7
4
|
|
|
8
5
|
export const isTopItemActive =
|
|
9
|
-
(router:
|
|
6
|
+
(router: { href?: string }) =>
|
|
10
7
|
(topItem: TopMenuItem): boolean =>
|
|
11
|
-
topItem.items?.some(isSubItemActive(router)) ||
|
|
12
|
-
isHrefActive(topItem.href, router) ||
|
|
13
|
-
checkIsHrefSameOrigin(topItem.href, router) ||
|
|
14
|
-
Boolean(projectSettings.BASE_PATH?.startsWith(topItem.href || '/'));
|
|
8
|
+
topItem.items?.some(isSubItemActive(router)) || isHrefActive(topItem.href, router);
|
package/src/setup-fixture.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@redneckz/uni-jsx/lib/setup.react';
|
|
2
|
-
import { useState } from 'react';
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
3
|
import { handlerDecorator } from './hooks/handlerDecorator';
|
|
4
4
|
import { useRouter } from './hooks/useRouter';
|
|
5
5
|
import { projectSettings } from './ProjectSettings';
|
|
@@ -8,24 +8,36 @@ import wlc from './wlc.json';
|
|
|
8
8
|
projectSettings.setup(wlc);
|
|
9
9
|
|
|
10
10
|
useRouter.setup(() => {
|
|
11
|
-
const [, setHref] = useState<string>(
|
|
11
|
+
const [href, setHref] = useState<string>(
|
|
12
|
+
`${globalThis.location.origin}${projectSettings.BASE_PATH}cards-credit`,
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
const handleHistoryChange = () => {
|
|
17
|
+
setHref(globalThis.location.href);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
globalThis.addEventListener('popstate', handleHistoryChange);
|
|
21
|
+
|
|
22
|
+
return () => {
|
|
23
|
+
globalThis.removeEventListener('popstate', handleHistoryChange);
|
|
24
|
+
};
|
|
25
|
+
}, []);
|
|
12
26
|
|
|
13
27
|
return {
|
|
14
|
-
href
|
|
15
|
-
pathname: '
|
|
28
|
+
href,
|
|
29
|
+
pathname: '',
|
|
16
30
|
query: {},
|
|
17
31
|
push: (url: string) => {
|
|
18
32
|
globalThis.history.pushState(null, '', url);
|
|
19
|
-
setHref(globalThis.location.href);
|
|
20
33
|
},
|
|
21
34
|
replace: (url: string) => {
|
|
22
35
|
globalThis.history.replaceState(null, '', url);
|
|
23
|
-
setHref(globalThis.location.href);
|
|
24
36
|
},
|
|
25
37
|
};
|
|
26
38
|
});
|
|
27
39
|
|
|
28
|
-
handlerDecorator.setup((handler
|
|
40
|
+
handlerDecorator.setup((handler): any => (ev) => {
|
|
29
41
|
ev.preventDefault();
|
|
30
42
|
handler(ev);
|
|
31
43
|
});
|
|
@@ -12,14 +12,19 @@ export const HeaderItem = JSX<TopItemProps>(
|
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
14
|
<a
|
|
15
|
-
className={
|
|
15
|
+
className={style(
|
|
16
|
+
'relative inline-block bg-transparent text-center no-underline',
|
|
17
|
+
className,
|
|
18
|
+
)}
|
|
16
19
|
href={href}
|
|
17
20
|
target={target}
|
|
18
21
|
data-item-name={dataItemName}
|
|
19
22
|
onClick={onClick}
|
|
20
23
|
>
|
|
21
24
|
<span className={getTextStyle(active)}>{text || children}</span>
|
|
22
|
-
{active ?
|
|
25
|
+
{active ? (
|
|
26
|
+
<div className="absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent" />
|
|
27
|
+
) : null}
|
|
23
28
|
</a>
|
|
24
29
|
);
|
|
25
30
|
},
|
|
@@ -31,9 +36,3 @@ const getTextStyle = (active = false) =>
|
|
|
31
36
|
active ? 'text-primary-main' : 'text-secondary-text hover:text-primary-main',
|
|
32
37
|
'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover',
|
|
33
38
|
);
|
|
34
|
-
|
|
35
|
-
const getBorderStyle = (active = false) =>
|
|
36
|
-
style(
|
|
37
|
-
'absolute left-0 -bottom-3 w-full h-0.5',
|
|
38
|
-
active ? 'bg-primary-main group-data-transparent:bg-transparent' : '',
|
|
39
|
-
);
|
|
@@ -10,14 +10,19 @@ export const HeaderItem = JSX<TopItemProps>(
|
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
12
|
<a
|
|
13
|
-
className={
|
|
13
|
+
className={style(
|
|
14
|
+
'relative inline-block bg-transparent text-center no-underline',
|
|
15
|
+
className,
|
|
16
|
+
)}
|
|
14
17
|
href={href}
|
|
15
18
|
target={target}
|
|
16
19
|
data-item-name={dataItemName}
|
|
17
20
|
onClick={onClick}
|
|
18
21
|
>
|
|
19
22
|
<span className={getTextStyle(active)}>{text || children}</span>
|
|
20
|
-
{active ?
|
|
23
|
+
{active ? (
|
|
24
|
+
<div className="absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" />
|
|
25
|
+
) : null}
|
|
21
26
|
</a>
|
|
22
27
|
);
|
|
23
28
|
},
|
|
@@ -29,9 +34,3 @@ const getTextStyle = (active = false) =>
|
|
|
29
34
|
active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main',
|
|
30
35
|
'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover',
|
|
31
36
|
);
|
|
32
|
-
|
|
33
|
-
const getBorderStyle = (active = false) =>
|
|
34
|
-
style(
|
|
35
|
-
'absolute left-0 -bottom-3 w-full h-0.5',
|
|
36
|
-
active ? 'bg-primary-main group-data-transparent:bg-transparent' : '',
|
|
37
|
-
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { Text } from '../../ui-kit/Text/Text';
|
|
3
|
+
|
|
4
|
+
interface SlideCheckboxProps {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
text?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export const SlideCheckbox = JSX<SlideCheckboxProps>(({ checked, text, onClick }) => (
|
|
10
|
+
<div
|
|
11
|
+
role="checkbox"
|
|
12
|
+
aria-checked={checked}
|
|
13
|
+
className="flex justify-start items-center w-full cursor-pointer mb-4"
|
|
14
|
+
onClick={() => onClick && onClick()}
|
|
15
|
+
>
|
|
16
|
+
<div
|
|
17
|
+
className={`relative duration-300 w-9 h-5 mr-3 rounded rounded-2xl ${
|
|
18
|
+
checked ? 'bg-primary-main' : 'bg-main-divider'
|
|
19
|
+
}`}
|
|
20
|
+
>
|
|
21
|
+
<div
|
|
22
|
+
className={`absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded rounded-full ${
|
|
23
|
+
checked ? 'left-[50%]' : 'left-[5%]'
|
|
24
|
+
}`}
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
<div>
|
|
28
|
+
<Text size="text-m" font="font-light" color="text-primary-text">
|
|
29
|
+
{text}
|
|
30
|
+
</Text>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
));
|
|
@@ -12,7 +12,7 @@ const activeDotStyles: Record<SwipeListControlType, string> = {
|
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const dotStyle =
|
|
15
|
-
'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white';
|
|
15
|
+
'cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
16
16
|
|
|
17
17
|
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
18
18
|
|
|
@@ -10,30 +10,27 @@ export interface TopItemContent extends LinkProps {
|
|
|
10
10
|
export interface TopItemProps extends TopItemContent {
|
|
11
11
|
className?: string;
|
|
12
12
|
flat?: boolean;
|
|
13
|
-
ariaLabel?: string;
|
|
14
13
|
dataItemName?: string;
|
|
15
14
|
onClick?: () => void;
|
|
16
15
|
}
|
|
17
16
|
|
|
18
|
-
export const TopItem = JSX<TopItemProps>(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const { href, target, text, onClick } = link(rest);
|
|
17
|
+
export const TopItem = JSX<TopItemProps>(({ className = '', active, flat, children, ...rest }) => {
|
|
18
|
+
const link = useLink();
|
|
19
|
+
const { href, target, text, onClick } = link(rest);
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
);
|
|
21
|
+
return (
|
|
22
|
+
<a
|
|
23
|
+
className={style(getLinkStyle(active, flat), className)}
|
|
24
|
+
href={href}
|
|
25
|
+
target={target}
|
|
26
|
+
onClick={onClick}
|
|
27
|
+
rel="noopener noreferrer"
|
|
28
|
+
aria-label={text}
|
|
29
|
+
>
|
|
30
|
+
<span className={getTextStyle(active, flat)}>{text || children}</span>
|
|
31
|
+
</a>
|
|
32
|
+
);
|
|
33
|
+
});
|
|
37
34
|
|
|
38
35
|
const getLinkStyle = (active = false, flat = false) =>
|
|
39
36
|
style(
|
package/src/utils/adjustHref.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { projectSettings } from '../ProjectSettings';
|
|
2
|
+
import { isURL } from './url';
|
|
2
3
|
|
|
3
|
-
export const adjustHref = (
|
|
4
|
-
href
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (!href) {
|
|
8
|
-
return href;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const origin = getOrigin(router?.href);
|
|
12
|
-
|
|
13
|
-
// Relative URL
|
|
14
|
-
return origin ? href.replace(origin, '') || '/' : href;
|
|
15
|
-
};
|
|
4
|
+
export const adjustHref = (href: string | undefined) =>
|
|
5
|
+
href && projectSettings.BASE_PATH && !(isURL(href) || href.startsWith('/'))
|
|
6
|
+
? `${projectSettings.BASE_PATH}${href}`
|
|
7
|
+
: href;
|
package/src/utils/url.ts
CHANGED
|
@@ -1,38 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Target } from '../model/LinkProps';
|
|
2
|
+
import { projectSettings } from '../ProjectSettings';
|
|
2
3
|
|
|
3
|
-
export const
|
|
4
|
+
export const isURL = (href?: string): href is `${string}//${string}` =>
|
|
5
|
+
Boolean(href?.includes('//'));
|
|
4
6
|
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export const isLocalURL = (href: string | undefined, target?: Target) =>
|
|
8
|
+
Boolean(
|
|
9
|
+
href &&
|
|
10
|
+
!isURL(href) &&
|
|
11
|
+
(projectSettings.BASE_PATH
|
|
12
|
+
? href.startsWith(projectSettings.BASE_PATH)
|
|
13
|
+
: !href.startsWith('/')) &&
|
|
14
|
+
(!target || target === '_self'),
|
|
15
|
+
);
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
const protoSeparator = '//';
|
|
12
|
-
const endOfProto = url.indexOf(protoSeparator);
|
|
13
|
-
const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
|
|
17
|
+
export const isHash = (href?: string): href is `#${string}` => Boolean(href?.startsWith('#'));
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
};
|
|
19
|
+
export const withoutQuery = (href?: string): string => (href || '').replace(/\/?\?.*/, '');
|
|
17
20
|
|
|
18
|
-
export const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const url = new URL(href);
|
|
24
|
-
|
|
25
|
-
return url.pathname;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const getHash = (href?: string) => {
|
|
29
|
-
if (!href || !isURL(href)) {
|
|
30
|
-
return undefined;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const hashIndex = href.indexOf('#');
|
|
34
|
-
|
|
35
|
-
return hashIndex !== -1 ? href.substring(hashIndex, href.length) : undefined;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const isHash = (href?: string) => href?.startsWith('#');
|
|
21
|
+
export const getOrigin = (href?: string) => (isURL(href) ? new URL(href).origin : undefined);
|
|
22
|
+
export const getPathname = (href?: string) => (isURL(href) ? new URL(href).pathname : undefined);
|
|
23
|
+
export const getHash = (href?: string) => (isURL(href) ? new URL(href).hash : undefined);
|
package/tailwind.config.cjs
CHANGED
|
@@ -35,6 +35,11 @@ module.exports = {
|
|
|
35
35
|
transitionProperty: {
|
|
36
36
|
height: 'height',
|
|
37
37
|
},
|
|
38
|
+
backgroundColor: {
|
|
39
|
+
'white/10': 'rgba(255,255,255,0.1);',
|
|
40
|
+
'responce-ok': 'rgb(237,245,225);',
|
|
41
|
+
'responce-fail': 'rgb(255,235,235);',
|
|
42
|
+
},
|
|
38
43
|
backgroundImage: {
|
|
39
44
|
'opacity-to-white':
|
|
40
45
|
'linear-gradient(270deg, #FFFFFF 34.89%, rgba(255, 255, 255, 0) 92.52%);',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeURLPath: (href?: string) => string | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.checkIsHrefSameOrigin = void 0;
|
|
3
|
-
const url_1 = require("../../utils/url");
|
|
4
|
-
const checkIsHrefSameOrigin = (href, router) => [(0, url_1.getOrigin)(href), (0, url_1.getOrigin)(router.href)].every((link, _, arr) => Boolean(link) && link === arr[0]);
|
|
5
|
-
exports.checkIsHrefSameOrigin = checkIsHrefSameOrigin;
|
|
6
|
-
//# sourceMappingURL=checkIsHrefSameOrigin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsHrefSameOrigin.js","sourceRoot":"","sources":["../../../src/services/sitemap/checkIsHrefSameOrigin.ts"],"names":[],"mappings":";;AACA,yCAA4C;AAErC,MAAM,qBAAqB,GAAG,CAAC,IAAwB,EAAE,MAAc,EAAE,EAAE,CAChF,CAAC,IAAA,eAAS,EAAC,IAAI,CAAC,EAAE,IAAA,eAAS,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAC7C,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CACnD,CAAC;AAHS,QAAA,qBAAqB,yBAG9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeURLPath: (href?: string) => string | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.normalizeURLPath = void 0;
|
|
3
|
-
const ProjectSettings_1 = require("../ProjectSettings");
|
|
4
|
-
const url_1 = require("./url");
|
|
5
|
-
const normalizeURLPath = (href) => {
|
|
6
|
-
if ((0, url_1.isURL)(href) || href?.startsWith('/')) {
|
|
7
|
-
return href;
|
|
8
|
-
}
|
|
9
|
-
return `${ProjectSettings_1.projectSettings.BASE_PATH || ''}${href}`;
|
|
10
|
-
};
|
|
11
|
-
exports.normalizeURLPath = normalizeURLPath;
|
|
12
|
-
//# sourceMappingURL=normalizeURLPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeURLPath.js","sourceRoot":"","sources":["../../src/utils/normalizeURLPath.ts"],"names":[],"mappings":";;AAAA,wDAAqD;AACrD,+BAA8B;AAEvB,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE;IAChD,IAAI,IAAA,WAAK,EAAC,IAAI,CAAC,IAAI,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,GAAG,iCAAe,CAAC,SAAS,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC;AACrD,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsHrefSameOrigin.js","sourceRoot":"","sources":["../../../src/services/sitemap/checkIsHrefSameOrigin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAwB,EAAE,MAAc,EAAE,EAAE,CAChF,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAC7C,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CACnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeURLPath: (href?: string) => string | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { projectSettings } from '../ProjectSettings.js';
|
|
2
|
-
import { isURL } from './url.js';
|
|
3
|
-
export const normalizeURLPath = (href) => {
|
|
4
|
-
if (isURL(href) || href?.startsWith('/')) {
|
|
5
|
-
return href;
|
|
6
|
-
}
|
|
7
|
-
return `${projectSettings.BASE_PATH || ''}${href}`;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=normalizeURLPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeURLPath.js","sourceRoot":"","sources":["../../src/utils/normalizeURLPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE;IAChD,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,GAAG,eAAe,CAAC,SAAS,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC;AACrD,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeURLPath: (href?: string) => string | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.checkIsHrefSameOrigin = void 0;
|
|
3
|
-
const url_1 = require("../../utils/url");
|
|
4
|
-
const checkIsHrefSameOrigin = (href, router) => [(0, url_1.getOrigin)(href), (0, url_1.getOrigin)(router.href)].every((link, _, arr) => Boolean(link) && link === arr[0]);
|
|
5
|
-
exports.checkIsHrefSameOrigin = checkIsHrefSameOrigin;
|
|
6
|
-
//# sourceMappingURL=checkIsHrefSameOrigin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsHrefSameOrigin.js","sourceRoot":"","sources":["../../../src/services/sitemap/checkIsHrefSameOrigin.ts"],"names":[],"mappings":";;AACA,yCAA4C;AAErC,MAAM,qBAAqB,GAAG,CAAC,IAAwB,EAAE,MAAc,EAAE,EAAE,CAChF,CAAC,IAAA,eAAS,EAAC,IAAI,CAAC,EAAE,IAAA,eAAS,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAC7C,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CACnD,CAAC;AAHS,QAAA,qBAAqB,yBAG9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeURLPath: (href?: string) => string | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.normalizeURLPath = void 0;
|
|
3
|
-
const ProjectSettings_1 = require("../ProjectSettings");
|
|
4
|
-
const url_1 = require("./url");
|
|
5
|
-
const normalizeURLPath = (href) => {
|
|
6
|
-
if ((0, url_1.isURL)(href) || href?.startsWith('/')) {
|
|
7
|
-
return href;
|
|
8
|
-
}
|
|
9
|
-
return `${ProjectSettings_1.projectSettings.BASE_PATH || ''}${href}`;
|
|
10
|
-
};
|
|
11
|
-
exports.normalizeURLPath = normalizeURLPath;
|
|
12
|
-
//# sourceMappingURL=normalizeURLPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeURLPath.js","sourceRoot":"","sources":["../../src/utils/normalizeURLPath.ts"],"names":[],"mappings":";;AAAA,wDAAqD;AACrD,+BAA8B;AAEvB,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE;IAChD,IAAI,IAAA,WAAK,EAAC,IAAI,CAAC,IAAI,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,GAAG,iCAAe,CAAC,SAAS,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC;AACrD,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsHrefSameOrigin.js","sourceRoot":"","sources":["../../../src/services/sitemap/checkIsHrefSameOrigin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAwB,EAAE,MAAc,EAAE,EAAE,CAChF,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAC7C,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CACnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeURLPath: (href?: string) => string | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { projectSettings } from '../ProjectSettings.js';
|
|
2
|
-
import { isURL } from './url.js';
|
|
3
|
-
export const normalizeURLPath = (href) => {
|
|
4
|
-
if (isURL(href) || href?.startsWith('/')) {
|
|
5
|
-
return href;
|
|
6
|
-
}
|
|
7
|
-
return `${projectSettings.BASE_PATH || ''}${href}`;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=normalizeURLPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeURLPath.js","sourceRoot":"","sources":["../../src/utils/normalizeURLPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAa,EAAE,EAAE;IAChD,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,GAAG,eAAe,CAAC,SAAS,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC;AACrD,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Router } from '../../hooks/useRouter';
|
|
2
|
-
import { getOrigin } from '../../utils/url';
|
|
3
|
-
|
|
4
|
-
export const checkIsHrefSameOrigin = (href: string | undefined, router: Router) =>
|
|
5
|
-
[getOrigin(href), getOrigin(router.href)].every(
|
|
6
|
-
(link, _, arr) => Boolean(link) && link === arr[0],
|
|
7
|
-
);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { projectSettings } from '../ProjectSettings';
|
|
2
|
-
import { isURL } from './url';
|
|
3
|
-
|
|
4
|
-
export const normalizeURLPath = (href?: string) => {
|
|
5
|
-
if (isURL(href) || href?.startsWith('/')) {
|
|
6
|
-
return href;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
return `${projectSettings.BASE_PATH || ''}${href}`;
|
|
10
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Router } from '../../hooks/useRouter';
|
|
2
|
-
import { getOrigin } from '../../utils/url';
|
|
3
|
-
|
|
4
|
-
export const checkIsHrefSameOrigin = (href: string | undefined, router: Router) =>
|
|
5
|
-
[getOrigin(href), getOrigin(router.href)].every(
|
|
6
|
-
(link, _, arr) => Boolean(link) && link === arr[0],
|
|
7
|
-
);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { projectSettings } from '../ProjectSettings';
|
|
2
|
-
import { isURL } from './url';
|
|
3
|
-
|
|
4
|
-
export const normalizeURLPath = (href?: string) => {
|
|
5
|
-
if (isURL(href) || href?.startsWith('/')) {
|
|
6
|
-
return href;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
return `${projectSettings.BASE_PATH || ''}${href}`;
|
|
10
|
-
};
|