@redneckz/wildless-cms-uni-blocks 0.8.16 → 0.8.18
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/bin/migration-scripts/0.8.8.js +9 -6
- package/bundle/ProjectSettings.d.ts +2 -0
- package/bundle/api/CorporateLeadAPI.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +157 -81
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/bundle/components/Header/useChatBot.d.ts +1 -2
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/bundle/components/Video/VideoContent.d.ts +19 -4
- package/bundle/hooks/useLink.d.ts +1 -3
- package/bundle/model/AlignType.d.ts +10 -0
- package/bundle/model/PreventableEvent.d.ts +3 -0
- package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/ProjectSettings.d.ts +2 -0
- package/dist/ProjectSettings.js +3 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/dist/api/CorporateLeadAPI.js +1 -1
- package/dist/api/CorporateLeadAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -0
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/dist/components/CarouselCard/constants.d.ts +3 -3
- package/dist/components/CarouselCard/constants.js +2 -2
- package/dist/components/CarouselCard/constants.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/dist/components/Footer/MediaButton.js +13 -10
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +0 -6
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/useChatBot.d.ts +1 -2
- package/dist/components/Header/useChatBot.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/dist/components/Video/Video.js +6 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +19 -4
- package/dist/hooks/useLink.d.ts +1 -3
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/model/AlignType.d.ts +10 -0
- package/dist/model/PreventableEvent.d.ts +3 -0
- package/{mobile/dist/model/CarouselCardVersion.js → dist/model/PreventableEvent.js} +1 -1
- package/dist/model/PreventableEvent.js.map +1 -0
- package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/dist/services/sitemap/isTopItemActive.js +1 -3
- package/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/dist/wlc.json +3 -1
- package/lib/ProjectSettings.d.ts +2 -0
- package/lib/ProjectSettings.js +3 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/lib/api/CorporateLeadAPI.js +1 -1
- package/lib/api/CorporateLeadAPI.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -2
- package/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
- package/lib/components/Carousel/Carousel.js +1 -0
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/lib/components/CarouselCard/constants.d.ts +3 -3
- package/lib/components/CarouselCard/constants.js +2 -2
- package/lib/components/CarouselCard/constants.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/lib/components/Footer/MediaButton.js +13 -10
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +0 -6
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/useChatBot.d.ts +1 -2
- package/lib/components/Header/useChatBot.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/lib/components/Video/Video.js +6 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +19 -4
- package/lib/hooks/useLink.d.ts +1 -3
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/model/AlignType.d.ts +10 -0
- package/lib/model/PreventableEvent.d.ts +3 -0
- package/lib/model/PreventableEvent.js +2 -0
- package/lib/model/PreventableEvent.js.map +1 -0
- package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/lib/services/sitemap/isTopItemActive.js +1 -3
- package/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/lib/wlc.json +3 -1
- package/mobile/bundle/ProjectSettings.d.ts +2 -0
- package/mobile/bundle/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +18 -14
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/bundle/components/Video/VideoContent.d.ts +19 -4
- package/mobile/bundle/hooks/useLink.d.ts +1 -3
- package/mobile/bundle/model/AlignType.d.ts +10 -0
- package/mobile/bundle/model/PreventableEvent.d.ts +3 -0
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/ProjectSettings.d.ts +2 -0
- package/mobile/dist/ProjectSettings.js +3 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js +1 -1
- package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js +9 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -0
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/dist/components/CarouselCard/constants.js +2 -2
- package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/dist/components/Footer/MediaButton.js +13 -10
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
- package/mobile/dist/components/Header/useChatBot.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/dist/components/Video/Video.js +6 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +19 -4
- package/mobile/dist/hooks/useLink.d.ts +1 -3
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/model/AlignType.d.ts +10 -0
- package/mobile/dist/model/PreventableEvent.d.ts +3 -0
- package/{dist/model/CarouselCardVersion.js → mobile/dist/model/PreventableEvent.js} +1 -1
- package/mobile/dist/model/PreventableEvent.js.map +1 -0
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/dist/wlc.json +3 -1
- package/mobile/lib/ProjectSettings.d.ts +2 -0
- package/mobile/lib/ProjectSettings.js +3 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/api/CorporateLeadAPI.d.ts +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js +1 -1
- package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js +7 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js +0 -5
- package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSelects.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +1 -6
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -0
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
- package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
- package/mobile/lib/components/CarouselCard/constants.js +2 -2
- package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
- package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
- package/mobile/lib/components/Footer/MediaButton.js +13 -10
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
- package/mobile/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
- package/mobile/lib/components/Video/Video.js +6 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +19 -4
- package/mobile/lib/hooks/useLink.d.ts +1 -3
- package/mobile/lib/hooks/useLink.js +1 -1
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/model/AlignType.d.ts +10 -0
- package/mobile/lib/model/PreventableEvent.d.ts +3 -0
- package/mobile/lib/model/PreventableEvent.js +2 -0
- package/mobile/lib/model/PreventableEvent.js.map +1 -0
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
- package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
- package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
- package/mobile/lib/wlc.json +3 -1
- package/mobile/src/ProjectSettings.ts +4 -0
- package/mobile/src/api/CorporateLeadAPI.ts +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/mobile/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/mobile/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/mobile/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/mobile/src/components/Carousel/Carousel.tsx +1 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/mobile/src/components/CarouselCard/constants.ts +5 -5
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/mobile/src/components/Footer/MediaButton.tsx +19 -14
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/mobile/src/components/Header/HeaderContent.ts +0 -7
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/mobile/src/components/Header/useChatBot.ts +2 -3
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/mobile/src/components/Video/Video.example.json +5 -0
- package/mobile/src/components/Video/Video.tsx +23 -17
- package/mobile/src/components/Video/Video.ui.json +1 -1
- package/mobile/src/components/Video/VideoContent.ts +19 -4
- package/mobile/src/hooks/useLink.ts +2 -5
- package/mobile/src/model/AlignType.ts +11 -0
- package/mobile/src/model/PreventableEvent.ts +3 -0
- package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
- package/mobile/src/wlc.json +3 -1
- package/package.json +1 -1
- package/src/ProjectSettings.ts +4 -0
- package/src/api/CorporateLeadAPI.ts +2 -2
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
- package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/src/components/ApplicationForm/CreditParameters.ts +7 -0
- package/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
- package/src/components/ApplicationForm/acquiringTypes.ts +0 -5
- package/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
- package/src/components/ApplicationForm/renderInputRange.tsx +20 -0
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
- package/src/components/ApplicationForm/renderSelects.tsx +2 -2
- package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/src/components/ApplicationForm/useFormHandlers.ts +1 -15
- package/src/components/Blocks.ts +2 -0
- package/src/components/Carousel/Carousel.fixture.tsx +19 -0
- package/src/components/Carousel/Carousel.tsx +1 -0
- package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +4 -4
- package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
- package/src/components/CarouselCard/constants.ts +5 -5
- package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
- package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
- package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
- package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
- package/src/components/Footer/MediaButton.tsx +19 -14
- package/src/components/Header/Header.fixture.tsx +3 -3
- package/src/components/Header/Header.tsx +0 -2
- package/src/components/Header/HeaderChatBotButton.tsx +1 -4
- package/src/components/Header/HeaderContent.ts +0 -7
- package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
- package/src/components/Header/useChatBot.ts +2 -3
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
- package/src/components/ProductGallery/ProductGallery.example.json +2 -3
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.example.json +3 -0
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
- package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
- package/src/components/Video/Video.example.json +5 -0
- package/src/components/Video/Video.fixture.tsx +1 -1
- package/src/components/Video/Video.tsx +23 -17
- package/src/components/Video/Video.ui.json +1 -1
- package/src/components/Video/VideoContent.ts +19 -4
- package/src/hooks/useLink.ts +2 -5
- package/src/model/AlignType.ts +11 -0
- package/src/model/PreventableEvent.ts +3 -0
- package/src/services/sitemap/isTopItemActive.ts +2 -7
- package/src/wlc.json +3 -1
- package/bundle/model/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.d.ts +0 -1
- package/dist/model/CarouselCardVersion.js.map +0 -1
- package/lib/model/CarouselCardVersion.d.ts +0 -1
- package/lib/model/CarouselCardVersion.js +0 -2
- package/lib/model/CarouselCardVersion.js.map +0 -1
- package/mobile/bundle/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/dist/model/CarouselCardVersion.js.map +0 -1
- package/mobile/lib/model/CarouselCardVersion.d.ts +0 -1
- package/mobile/lib/model/CarouselCardVersion.js +0 -2
- package/mobile/lib/model/CarouselCardVersion.js.map +0 -1
- package/mobile/src/model/CarouselCardVersion.ts +0 -1
- package/src/model/CarouselCardVersion.ts +0 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -80,6 +80,9 @@
|
|
|
80
80
|
get FOOTER() {
|
|
81
81
|
return this._.FOOTER;
|
|
82
82
|
}
|
|
83
|
+
get CHAT_BOT() {
|
|
84
|
+
return this._.CHAT_BOT;
|
|
85
|
+
}
|
|
83
86
|
get CDN() {
|
|
84
87
|
return appendSlash(this._.CDN);
|
|
85
88
|
}
|
|
@@ -515,6 +518,27 @@
|
|
|
515
518
|
AccordionItem.childrenTypes = [];
|
|
516
519
|
const FoldButton = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer", onClick: onClick, children: [jsx(Text, { size: "text-xl", font: "font-medium", children: label }), jsx(ImgInner, { image: { icon }, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })] })));
|
|
517
520
|
|
|
521
|
+
function CorporateLeadAPI() {
|
|
522
|
+
async function send(body) {
|
|
523
|
+
try {
|
|
524
|
+
const response = await fetch('/api/v1/sendCorporateLead', {
|
|
525
|
+
method: 'POST',
|
|
526
|
+
headers: { 'Content-Type': 'application/json' },
|
|
527
|
+
mode: 'cors',
|
|
528
|
+
body: JSON.stringify(body),
|
|
529
|
+
});
|
|
530
|
+
const data = await response.json();
|
|
531
|
+
return data;
|
|
532
|
+
}
|
|
533
|
+
catch (e) {
|
|
534
|
+
return null;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
return {
|
|
538
|
+
send,
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
|
|
518
542
|
const Input = JSX(({ className = '', inputClassName = '', id, name, type = 'text', label, value = '', valid = true, children, onChange, onBlur, ...inputProps }) => {
|
|
519
543
|
const handleChange = useCallback((e) => {
|
|
520
544
|
const validInputValue = e.target.validity.valid ? e.target.value : value;
|
|
@@ -622,23 +646,18 @@
|
|
|
622
646
|
|
|
623
647
|
const ACQUIRING_TYPES = [
|
|
624
648
|
{
|
|
625
|
-
code: '1',
|
|
626
649
|
name: 'Торговый эквайринг',
|
|
627
650
|
},
|
|
628
651
|
{
|
|
629
|
-
code: '2',
|
|
630
652
|
name: 'Мобильный эквайринг',
|
|
631
653
|
},
|
|
632
654
|
{
|
|
633
|
-
code: '3',
|
|
634
655
|
name: 'Интернет-эквайринг',
|
|
635
656
|
},
|
|
636
657
|
{
|
|
637
|
-
code: '4',
|
|
638
658
|
name: 'QR-эквайринг (СБП)',
|
|
639
659
|
},
|
|
640
660
|
{
|
|
641
|
-
code: '5',
|
|
642
661
|
name: 'Все виды эквайринга',
|
|
643
662
|
},
|
|
644
663
|
];
|
|
@@ -652,7 +671,7 @@
|
|
|
652
671
|
handlerDecorator._impl = impl;
|
|
653
672
|
};
|
|
654
673
|
|
|
655
|
-
function useLink(isRemote) {
|
|
674
|
+
function useLink(isRemote = false) {
|
|
656
675
|
const router = useRouter();
|
|
657
676
|
return (props) => ({
|
|
658
677
|
...props,
|
|
@@ -803,7 +822,7 @@
|
|
|
803
822
|
return (jsx(Select, { options: dataFormat, label: label, placeholder: placeholder || selected, onChange: (_) => setSelected(_.key), value: selectedObj }));
|
|
804
823
|
});
|
|
805
824
|
|
|
806
|
-
const renderSelects = ({ acquiringType, regions, region, handleChange }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: ACQUIRING_TYPES, fieldValue: "
|
|
825
|
+
const renderSelects = ({ acquiringType, regions, region, handleChange }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: ACQUIRING_TYPES, fieldValue: "name", fieldLabel: "name", selected: acquiringType, setSelected: (value) => handleChange({ acquiringType: value }), label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433" }) }), jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
|
|
807
826
|
|
|
808
827
|
const SlideCheckbox = JSX(({ checked, text, onClick }) => (jsxs("div", { role: "checkbox", "aria-checked": checked, className: "flex justify-start items-center w-full cursor-pointer mb-4", onClick: () => onClick && onClick(), children: [jsx("div", { className: `relative duration-300 w-9 h-5 mr-3 rounded rounded-2xl ${checked ? 'bg-primary-main' : 'bg-main-divider'}`, children: jsx("div", { className: `absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded rounded-full ${checked ? 'left-[50%]' : 'left-[5%]'}` }) }), jsx("div", { children: jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: text }) })] })));
|
|
809
828
|
|
|
@@ -817,15 +836,10 @@
|
|
|
817
836
|
return (jsx("button", { type: "submit", className: `p-4 ${buttonStyle} ${className}`, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
818
837
|
};
|
|
819
838
|
|
|
820
|
-
const useFormHandlers = ({
|
|
839
|
+
const useFormHandlers = ({ setFormState }) => {
|
|
821
840
|
const handleChange = useCallback((state) => setFormState((oldState) => ({ ...oldState, ...state })), []);
|
|
822
|
-
const onSubmit = useCallback(async (e) => {
|
|
823
|
-
e.preventDefault();
|
|
824
|
-
handleSubmit && (await handleSubmit({ ...formState, typeForm }));
|
|
825
|
-
}, []);
|
|
826
841
|
return {
|
|
827
842
|
handleChange,
|
|
828
|
-
onSubmit,
|
|
829
843
|
};
|
|
830
844
|
};
|
|
831
845
|
|
|
@@ -843,19 +857,30 @@
|
|
|
843
857
|
});
|
|
844
858
|
const { acquiringType, region, fullName, inn, name, phone, onlineСheckout, posTerminal } = formState;
|
|
845
859
|
const regions = useGetRegions();
|
|
846
|
-
const { handleChange
|
|
847
|
-
formState,
|
|
848
|
-
handleSubmit,
|
|
860
|
+
const { handleChange } = useFormHandlers({
|
|
849
861
|
setFormState,
|
|
850
|
-
typeForm: 'acqr',
|
|
851
862
|
});
|
|
852
863
|
const selectedRegion = normalizeSelectedRegion$1(region, regions);
|
|
853
864
|
useEffect(() => {
|
|
854
865
|
setFormState((oldState) => ({
|
|
855
866
|
...oldState,
|
|
856
|
-
acquiringType: ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.
|
|
867
|
+
acquiringType: ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.name ? ACQUIRING_TYPES[0].name : '',
|
|
857
868
|
}));
|
|
858
869
|
}, []);
|
|
870
|
+
const onSubmit = async (e) => {
|
|
871
|
+
e.preventDefault();
|
|
872
|
+
const PartnerComments = `Вид эквайринга=${acquiringType}/Онлайн касса=${onlineСheckout}/POS-терминал=${posTerminal}`;
|
|
873
|
+
handleSubmit &&
|
|
874
|
+
(await handleSubmit({
|
|
875
|
+
typeForm: 'acqr',
|
|
876
|
+
region,
|
|
877
|
+
PartnerComments,
|
|
878
|
+
fullName,
|
|
879
|
+
inn,
|
|
880
|
+
name,
|
|
881
|
+
phone,
|
|
882
|
+
}));
|
|
883
|
+
};
|
|
859
884
|
return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430 \u0438 \u0440\u0435\u0433\u0438\u043E\u043D", className: "text-center mb-4" }), renderSelects({
|
|
860
885
|
acquiringType,
|
|
861
886
|
regions,
|
|
@@ -878,15 +903,24 @@
|
|
|
878
903
|
inn: '',
|
|
879
904
|
mail: '',
|
|
880
905
|
});
|
|
881
|
-
const { name, phone, inn, mail } = formState;
|
|
906
|
+
const { region, name, phone, inn, mail } = formState;
|
|
882
907
|
const regions = useGetRegions();
|
|
883
|
-
const { handleChange
|
|
884
|
-
formState,
|
|
885
|
-
handleSubmit,
|
|
908
|
+
const { handleChange } = useFormHandlers({
|
|
886
909
|
setFormState,
|
|
887
|
-
typeForm: 'bcrd',
|
|
888
910
|
});
|
|
889
|
-
const selectedRegion = normalizeSelectedRegion$1(
|
|
911
|
+
const selectedRegion = normalizeSelectedRegion$1(region, regions);
|
|
912
|
+
const onSubmit = async (e) => {
|
|
913
|
+
e.preventDefault();
|
|
914
|
+
handleSubmit &&
|
|
915
|
+
(await handleSubmit({
|
|
916
|
+
typeForm: 'bcrd',
|
|
917
|
+
region,
|
|
918
|
+
name,
|
|
919
|
+
phone,
|
|
920
|
+
inn,
|
|
921
|
+
mail,
|
|
922
|
+
}));
|
|
923
|
+
};
|
|
890
924
|
return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [renderRegion$1({
|
|
891
925
|
regions,
|
|
892
926
|
region: selectedRegion,
|
|
@@ -894,7 +928,7 @@
|
|
|
894
928
|
}), renderDataOrganization$3({ name, phone, inn, mail, handleChange }), renderSubmitButton(button, 'mb-4'), jsx(Footnote, { link: link })] }));
|
|
895
929
|
});
|
|
896
930
|
const renderDataOrganization$3 = ({ name, phone, mail, inn, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5", children: [jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", value: name, onChange: (value) => handleChange({ name: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0418\u041D\u041D", label: "\u0418\u041D\u041D", value: inn, onChange: (value) => handleChange({ inn: value }) })] }), jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", value: phone, onChange: (value) => handleChange({ phone: value }) }), jsx(Input, { className: "shrink-0 text-l w-full ", type: "text", "aria-label": "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", value: mail, onChange: (value) => handleChange({ mail: value }) })] })] }));
|
|
897
|
-
const renderRegion$1 = ({ regions, region, handleChange }) => (jsx("div", { className: "flex justify-between gap-5 mb-5", children: jsx("div", { className: "w-full", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "
|
|
931
|
+
const renderRegion$1 = ({ regions, region, handleChange }) => (jsx("div", { className: "flex justify-between gap-5 mb-5", children: jsx("div", { className: "w-full", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }) }));
|
|
898
932
|
|
|
899
933
|
const SAFEBOXES_URL = '/api/v1/safeboxes';
|
|
900
934
|
const EMPTY_VALUE = [];
|
|
@@ -907,7 +941,14 @@
|
|
|
907
941
|
return result || EMPTY_VALUE;
|
|
908
942
|
};
|
|
909
943
|
|
|
910
|
-
const
|
|
944
|
+
const MIN_CREDIT_AMOUNT = 50000;
|
|
945
|
+
const MAX_CREDIT_AMOUNT = 3000000;
|
|
946
|
+
const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
|
|
947
|
+
const MIN_CREDIT_TERM = 1;
|
|
948
|
+
const MAX_CREDIT_TERM = 60;
|
|
949
|
+
const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
|
|
950
|
+
|
|
951
|
+
const renderBankOffices = ({ regions, region, branches, department, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: department, setSelected: (value) => handleChange({ department: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
|
|
911
952
|
|
|
912
953
|
const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', {}).format(number);
|
|
913
954
|
|
|
@@ -933,6 +974,8 @@
|
|
|
933
974
|
return (jsx("div", { className: "flex justify-between my-2", children: items.map((item, i) => (jsx("span", { className: "text-s-light text-secondary-text", children: item }, String(i)))) }));
|
|
934
975
|
}
|
|
935
976
|
|
|
977
|
+
const renderInputRange = (props) => (jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m-light", children: props.label }) }), jsx(InputRange, { ...props })] }));
|
|
978
|
+
|
|
936
979
|
const renderCreditParameters = ({ amount, term, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [renderInputRange({
|
|
937
980
|
label: 'Сумма кредита, ₽',
|
|
938
981
|
value: amount,
|
|
@@ -948,16 +991,9 @@
|
|
|
948
991
|
max: MAX_CREDIT_TERM,
|
|
949
992
|
items: ITEMS_CREDIT_TERM,
|
|
950
993
|
})] }));
|
|
951
|
-
const renderInputRange = (props) => (jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m-light", children: props.label }) }), jsx(InputRange, { ...props })] }));
|
|
952
994
|
|
|
953
995
|
const renderDataOrganization$2 = ({ fullName, inn, name, phone, mail, annualRevenue, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", value: fullName, onChange: (value) => handleChange({ fullName: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0418\u041D\u041D", label: "\u0418\u041D\u041D", value: inn, onChange: (value) => handleChange({ inn: value }) }), jsx(Input, { className: "shrink-0 text-l w-full ", type: "text", "aria-label": "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", value: phone, onChange: (value) => handleChange({ phone: value }) })] }), jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", value: annualRevenue, onChange: (value) => handleChange({ annualRevenue: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", value: name, onChange: (value) => handleChange({ name: value }) }), jsx(Input, { className: "shrink-0 text-l w-full ", type: "text", "aria-label": "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", value: mail, onChange: (value) => handleChange({ mail: value }) })] })] }));
|
|
954
996
|
|
|
955
|
-
const MIN_CREDIT_AMOUNT = 50000;
|
|
956
|
-
const MAX_CREDIT_AMOUNT = 3000000;
|
|
957
|
-
const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
|
|
958
|
-
const MIN_CREDIT_TERM = 1;
|
|
959
|
-
const MAX_CREDIT_TERM = 60;
|
|
960
|
-
const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
|
|
961
997
|
const ApplicationFormCredit = JSX((props) => {
|
|
962
998
|
const { button, link, handleSubmit } = props;
|
|
963
999
|
const [formState, setFormState] = useState({
|
|
@@ -974,11 +1010,8 @@
|
|
|
974
1010
|
});
|
|
975
1011
|
const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } = formState;
|
|
976
1012
|
const regions = useGetRegions();
|
|
977
|
-
const { handleChange
|
|
978
|
-
formState,
|
|
979
|
-
handleSubmit,
|
|
1013
|
+
const { handleChange } = useFormHandlers({
|
|
980
1014
|
setFormState,
|
|
981
|
-
typeForm: 'cred',
|
|
982
1015
|
});
|
|
983
1016
|
const selectedRegion = normalizeSelectedRegion$1(formState.region, regions);
|
|
984
1017
|
const branches = useSafeBoxes(region);
|
|
@@ -987,6 +1020,22 @@
|
|
|
987
1020
|
department: '',
|
|
988
1021
|
});
|
|
989
1022
|
}, [formState.region, handleChange]);
|
|
1023
|
+
const onSubmit = async (e) => {
|
|
1024
|
+
e.preventDefault();
|
|
1025
|
+
const PartnerComments = `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`;
|
|
1026
|
+
handleSubmit &&
|
|
1027
|
+
(await handleSubmit({
|
|
1028
|
+
typeForm: 'cred',
|
|
1029
|
+
fullName,
|
|
1030
|
+
inn,
|
|
1031
|
+
name,
|
|
1032
|
+
phone,
|
|
1033
|
+
mail,
|
|
1034
|
+
region,
|
|
1035
|
+
department,
|
|
1036
|
+
PartnerComments,
|
|
1037
|
+
}));
|
|
1038
|
+
};
|
|
990
1039
|
return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u0440\u0435\u0434\u0438\u0442\u0430", className: "text-center mb-4" }), renderCreditParameters({ amount, term, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization$2({ fullName, inn, name, phone, mail, annualRevenue, handleChange }), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "text-center mb-4" }), renderBankOffices({
|
|
991
1040
|
regions,
|
|
992
1041
|
region: selectedRegion,
|
|
@@ -1002,12 +1051,19 @@
|
|
|
1002
1051
|
name: '',
|
|
1003
1052
|
phone: '',
|
|
1004
1053
|
});
|
|
1005
|
-
const {
|
|
1006
|
-
|
|
1007
|
-
handleSubmit,
|
|
1054
|
+
const { name, phone } = formState;
|
|
1055
|
+
const { handleChange } = useFormHandlers({
|
|
1008
1056
|
setFormState,
|
|
1009
|
-
typeForm: 'dpst',
|
|
1010
1057
|
});
|
|
1058
|
+
const onSubmit = async (e) => {
|
|
1059
|
+
e.preventDefault();
|
|
1060
|
+
handleSubmit &&
|
|
1061
|
+
(await handleSubmit({
|
|
1062
|
+
typeForm: 'dpst',
|
|
1063
|
+
name,
|
|
1064
|
+
phone,
|
|
1065
|
+
}));
|
|
1066
|
+
};
|
|
1011
1067
|
return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "text-center mb-4" }), renderDataOrganization$1({ name: formState.name, phone: formState.phone, handleChange }), jsxs("div", { className: "flex justify-between items-center max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
|
|
1012
1068
|
});
|
|
1013
1069
|
const renderDataOrganization$1 = ({ name, phone, handleChange }) => (jsxs("div", { className: "max-w-[560px] m-auto", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0418\u043C\u044F", label: "\u0418\u043C\u044F", value: name, onChange: (value) => handleChange({ name: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", value: phone, onChange: (value) => handleChange({ phone: value }) })] }));
|
|
@@ -1032,7 +1088,7 @@
|
|
|
1032
1088
|
: 'rounded checked:bg-primary-main disabled:bg-main-disabled border', checked ? 'border-black' : 'border-gray', disabled ? '' : 'group-hover/box:border-primary-hover'), type: "checkbox", onChange: (e) => onChange && onChange(e.target.checked), checked: checked, disabled: disabled }), isRadio ? (jsx("div", { className: "left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" })), text ? jsx("span", { className: "font-sans ml-3 text-l-light", children: text }) : null] }) }));
|
|
1033
1089
|
});
|
|
1034
1090
|
|
|
1035
|
-
const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (jsxs("div", { className: "mb-6", children: [jsxs("div", { className: "flex items-center mb-4 gap-6", children: [jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0412\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:
|
|
1091
|
+
const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (jsxs("div", { className: "mb-6", children: [jsxs("div", { className: "flex items-center mb-4 gap-6", children: [jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0412\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text", value: text, onChange: (e) => handleChange({ text: e.target.value }) })] }));
|
|
1036
1092
|
|
|
1037
1093
|
const ApplicationFormWed = JSX((props) => {
|
|
1038
1094
|
const { button, link, handleSubmit } = props;
|
|
@@ -1047,12 +1103,22 @@
|
|
|
1047
1103
|
text: '',
|
|
1048
1104
|
});
|
|
1049
1105
|
const { fullName, name, phone, mail, currencyControl, documentaryOperations, conversionOperations, text, } = formState;
|
|
1050
|
-
const { handleChange
|
|
1051
|
-
formState,
|
|
1052
|
-
handleSubmit,
|
|
1106
|
+
const { handleChange } = useFormHandlers({
|
|
1053
1107
|
setFormState,
|
|
1054
|
-
typeForm: 'kved',
|
|
1055
1108
|
});
|
|
1109
|
+
const onSubmit = async (e) => {
|
|
1110
|
+
e.preventDefault();
|
|
1111
|
+
const PartnerComments = `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`;
|
|
1112
|
+
handleSubmit &&
|
|
1113
|
+
(await handleSubmit({
|
|
1114
|
+
typeForm: 'kved',
|
|
1115
|
+
fullName,
|
|
1116
|
+
name,
|
|
1117
|
+
phone,
|
|
1118
|
+
mail,
|
|
1119
|
+
PartnerComments,
|
|
1120
|
+
}));
|
|
1121
|
+
};
|
|
1056
1122
|
return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization({ fullName, name, phone, mail, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "text-center mb-4" }), renderQuestionsInterested({
|
|
1057
1123
|
currencyControl,
|
|
1058
1124
|
documentaryOperations,
|
|
@@ -1076,11 +1142,13 @@
|
|
|
1076
1142
|
deposit: (props) => jsx(ApplicationFormDeposit, { ...props }),
|
|
1077
1143
|
wed: (props) => jsx(ApplicationFormWed, { ...props }),
|
|
1078
1144
|
};
|
|
1145
|
+
const API = CorporateLeadAPI();
|
|
1079
1146
|
const ApplicationForm = JSX((props) => {
|
|
1080
1147
|
const { className = '', title, typeForm = 'credit', button, link, ...rest } = props;
|
|
1081
|
-
const [responceType,
|
|
1082
|
-
const handleSubmit = useCallback(() => {
|
|
1083
|
-
|
|
1148
|
+
const [responceType, setResponseType] = useState('');
|
|
1149
|
+
const handleSubmit = useCallback(async (data) => {
|
|
1150
|
+
const status = await API.send(data);
|
|
1151
|
+
setResponseType(status ? 'OK' : 'Fail');
|
|
1084
1152
|
return 'OK';
|
|
1085
1153
|
}, []);
|
|
1086
1154
|
return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "text-center mb-8" }) : null, COMPONENTS_MAP[typeForm]({ button, link, handleSubmit }), responceType ? jsx(ResponseNotification, { responceType: responceType }) : null] }) }));
|
|
@@ -1940,6 +2008,7 @@
|
|
|
1940
2008
|
'CarouselRecommendationCard',
|
|
1941
2009
|
'CarouselTariffsCard',
|
|
1942
2010
|
'CarouselInvestmentCard',
|
|
2011
|
+
'CarouselEventCard',
|
|
1943
2012
|
];
|
|
1944
2013
|
const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
|
|
1945
2014
|
|
|
@@ -1987,7 +2056,7 @@
|
|
|
1987
2056
|
const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
|
|
1988
2057
|
const CARD_WIDTH_MAP = {
|
|
1989
2058
|
normal: 'min-w-[970px]',
|
|
1990
|
-
|
|
2059
|
+
small: 'min-w-[355px]',
|
|
1991
2060
|
};
|
|
1992
2061
|
const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 border-box h-full ${CARD_WIDTH_MAP[carouselVersion]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative h-full bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left" }), renderButtonsSection([button], { className: 'mt-14' })] })] }) })));
|
|
1993
2062
|
|
|
@@ -1998,6 +2067,13 @@
|
|
|
1998
2067
|
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
|
|
1999
2068
|
const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
2000
2069
|
|
|
2070
|
+
const getIconWithVersion = (icon, version = 'primary') => ({
|
|
2071
|
+
...icon,
|
|
2072
|
+
iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
|
|
2073
|
+
});
|
|
2074
|
+
|
|
2075
|
+
const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col w-[365px]', className), ...rest, children: jsxs("a", { href: href, target: target, role: "link", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) })));
|
|
2076
|
+
|
|
2001
2077
|
const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
|
|
2002
2078
|
|
|
2003
2079
|
const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
|
|
@@ -2070,43 +2146,38 @@
|
|
|
2070
2146
|
const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
|
|
2071
2147
|
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
|
|
2072
2148
|
|
|
2073
|
-
const getIconWithVersion = (icon, version = 'primary') => ({
|
|
2074
|
-
...icon,
|
|
2075
|
-
iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
|
|
2076
|
-
});
|
|
2077
|
-
|
|
2078
2149
|
const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], ...rest }) => (jsxs(BlockWrapper, { className: `border border-gray flex min-w-[536px] ${className}`, ...rest, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) }) : null] })] })));
|
|
2079
2150
|
const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: `text-h6`, children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
|
|
2080
2151
|
|
|
2081
2152
|
const ICONS_MAP = [
|
|
2082
2153
|
{
|
|
2083
2154
|
origins: ['t.me', 'telegram.org'],
|
|
2084
|
-
|
|
2155
|
+
iconMapped: { icon: 'TelegramIcon' },
|
|
2085
2156
|
label: 'Телеграм',
|
|
2086
2157
|
},
|
|
2087
2158
|
{
|
|
2088
2159
|
origins: ['vk.com'],
|
|
2089
|
-
|
|
2160
|
+
iconMapped: { icon: 'VKIcon' },
|
|
2090
2161
|
label: 'ВКонтакте',
|
|
2091
2162
|
},
|
|
2092
2163
|
{
|
|
2093
2164
|
origins: ['ok.ru'],
|
|
2094
|
-
|
|
2165
|
+
iconMapped: { icon: 'OkIcon' },
|
|
2095
2166
|
label: 'Одноклассники',
|
|
2096
2167
|
},
|
|
2097
2168
|
{
|
|
2098
2169
|
origins: ['apps.apple.com'],
|
|
2099
|
-
|
|
2170
|
+
iconMapped: { icon: 'AppleIcon' },
|
|
2100
2171
|
label: 'App Store',
|
|
2101
2172
|
},
|
|
2102
2173
|
{
|
|
2103
2174
|
origins: ['play.google.com'],
|
|
2104
|
-
|
|
2175
|
+
iconMapped: { icon: 'PlayMarketIcon' },
|
|
2105
2176
|
label: 'Google Play',
|
|
2106
2177
|
},
|
|
2107
2178
|
{
|
|
2108
2179
|
origins: ['youtube.com'],
|
|
2109
|
-
|
|
2180
|
+
iconMapped: { icon: 'YoutubeIcon' },
|
|
2110
2181
|
label: 'Youtube',
|
|
2111
2182
|
},
|
|
2112
2183
|
];
|
|
@@ -2114,20 +2185,23 @@
|
|
|
2114
2185
|
default: 'w-14 h-14',
|
|
2115
2186
|
small: 'w-12 h-12',
|
|
2116
2187
|
};
|
|
2117
|
-
const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, ...rest }) => {
|
|
2188
|
+
const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
|
|
2118
2189
|
const { href, version } = rest;
|
|
2119
|
-
const {
|
|
2120
|
-
const
|
|
2190
|
+
const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
2191
|
+
const iconCustom = icon ?? iconMapped;
|
|
2192
|
+
const iconWithVersion = iconCustom
|
|
2193
|
+
? { ...getIconWithVersion(iconCustom), iconVersion }
|
|
2194
|
+
: undefined;
|
|
2121
2195
|
return (jsx(Button, { className: style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize], rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonSizeStyles[buttonSize]), "aria-label": label, target: "_blank", rel: "noopener noreferrer", version: version, ...rest, children: iconWithVersion ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
2122
2196
|
});
|
|
2123
2197
|
|
|
2124
2198
|
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, version: _.version, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
|
|
2125
2199
|
|
|
2126
|
-
const CarouselRecommendationCard = JSX(({
|
|
2200
|
+
const CarouselRecommendationCard = JSX(({ className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
|
|
2127
2201
|
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
2128
2202
|
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
2129
2203
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
2130
|
-
return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null
|
|
2204
|
+
return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null] }) }) }));
|
|
2131
2205
|
});
|
|
2132
2206
|
|
|
2133
2207
|
const VISIBLE_CELLS_COUNT = 1;
|
|
@@ -2537,9 +2611,7 @@
|
|
|
2537
2611
|
|
|
2538
2612
|
const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
|
|
2539
2613
|
|
|
2540
|
-
const isTopItemActive = (router) => (
|
|
2541
|
-
? isHrefActive({ pathname: projectSettings.BASE_PATH })(topItem)
|
|
2542
|
-
: topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
|
|
2614
|
+
const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
|
|
2543
2615
|
|
|
2544
2616
|
const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
|
|
2545
2617
|
const link = useLink(true);
|
|
@@ -2719,11 +2791,11 @@
|
|
|
2719
2791
|
});
|
|
2720
2792
|
const renderChatBotButton = ({ className, iconVersion, onClick }) => (jsx(HeaderSecondaryMenuButton, { className: style(CHAT_BUTTON_EXTERNAL_NAME, className), image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: "\u0427\u0430\u0442", onClick: onClick }));
|
|
2721
2793
|
|
|
2722
|
-
const HeaderSecondaryMenu = JSX(({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices
|
|
2794
|
+
const HeaderSecondaryMenu = JSX(({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices }) => {
|
|
2723
2795
|
const [isShowLocationModal, { setTrue: showLocationModal, setFalse: hideLocationModal }] = useBool();
|
|
2724
2796
|
const [location, onChangeLocation] = useLocation(defaultLocation);
|
|
2725
2797
|
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
2726
|
-
return (jsxs("div", { className: style('flex items-center', className), children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? (jsx(TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null,
|
|
2798
|
+
return (jsxs("div", { className: style('flex items-center', className), children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? (jsx(TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "mr-5", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, isShowLocationModal ? (jsx(Location, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation, close: hideLocationModal })) : null] }));
|
|
2727
2799
|
});
|
|
2728
2800
|
|
|
2729
2801
|
const findActiveSubItem = (router) => (items = []) => {
|
|
@@ -2788,11 +2860,11 @@
|
|
|
2788
2860
|
'bg-white': 'primary',
|
|
2789
2861
|
transparent: 'transparent',
|
|
2790
2862
|
};
|
|
2791
|
-
const Header = JSX(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor],
|
|
2863
|
+
const Header = JSX(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
2792
2864
|
const router = useRouter();
|
|
2793
2865
|
const { topItems, logo, defaultLocation, foreignOffices, officesLink } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
|
|
2794
2866
|
const activeTopItem = topItems?.find(isTopItemActive(router));
|
|
2795
|
-
return (jsx(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink
|
|
2867
|
+
return (jsx(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items })) : null] }) }));
|
|
2796
2868
|
});
|
|
2797
2869
|
|
|
2798
2870
|
const gapStyles = {
|
|
@@ -3509,18 +3581,17 @@
|
|
|
3509
3581
|
const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
|
|
3510
3582
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
3511
3583
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
|
|
3512
|
-
return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits
|
|
3584
|
+
return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits?.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
|
|
3513
3585
|
});
|
|
3514
3586
|
const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
|
|
3515
3587
|
? 'inline-grid grid-cols-[auto_auto_auto]'
|
|
3516
3588
|
: 'inline-grid grid-cols-[auto_auto]'}`;
|
|
3517
3589
|
|
|
3518
3590
|
function renderBackwardButton(button, version, className) {
|
|
3519
|
-
const { text, href, target
|
|
3591
|
+
const { text, href, target } = button;
|
|
3520
3592
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
3521
3593
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
3522
|
-
|
|
3523
|
-
return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? jsx("span", { className: "text-m", children: text }) : null] }));
|
|
3594
|
+
return (jsxs("div", { className: style('flex items-center', className), children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? (jsx(Button, { version: "link", text: text, href: href, target: target, ariaLabel: text })) : null] }));
|
|
3524
3595
|
}
|
|
3525
3596
|
|
|
3526
3597
|
const breadcrumbStyle = 'text-secondary-text group-data-secondary:text-white/80';
|
|
@@ -3545,7 +3616,7 @@
|
|
|
3545
3616
|
})) })] }));
|
|
3546
3617
|
});
|
|
3547
3618
|
function renderProductBlock(block, i) {
|
|
3548
|
-
return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: "pl-12 z-10
|
|
3619
|
+
return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: "pl-12 z-10 group-data-secondary:text-white", textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
|
|
3549
3620
|
}
|
|
3550
3621
|
function renderNavButton({ slide, i, isActive, onClick }) {
|
|
3551
3622
|
const btnClassName = isActive
|
|
@@ -4249,11 +4320,12 @@
|
|
|
4249
4320
|
}), image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })));
|
|
4250
4321
|
|
|
4251
4322
|
const alignStyle = {
|
|
4323
|
+
stretch: 'items-stretch',
|
|
4252
4324
|
left: 'items-start',
|
|
4253
4325
|
center: 'items-center',
|
|
4254
4326
|
right: 'items-end',
|
|
4255
4327
|
};
|
|
4256
|
-
const VerticalLayout = JSX(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
|
|
4328
|
+
const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
|
|
4257
4329
|
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
4258
4330
|
return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
|
|
4259
4331
|
});
|
|
@@ -4262,7 +4334,10 @@
|
|
|
4262
4334
|
const MIN_COL_SPAN = 10;
|
|
4263
4335
|
const getPaddings = (className) => getColSpan(className) < MIN_COL_SPAN ? 'py-6 px-11' : 'py-12 px-32';
|
|
4264
4336
|
|
|
4265
|
-
const Video = JSX(({ className, title,
|
|
4337
|
+
const Video = JSX(({ className, title, url, previewImg, ...rest }) => {
|
|
4338
|
+
const router = useRouter();
|
|
4339
|
+
return (jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [jsx(Headline, { title: title, headlineVersion: "M" }), url ? (jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: adjustHref(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: jsx("source", { src: adjustHref(router)(url) }) })) : null] }));
|
|
4340
|
+
});
|
|
4266
4341
|
|
|
4267
4342
|
const Blocks = {
|
|
4268
4343
|
Accordion,
|
|
@@ -4279,6 +4354,7 @@
|
|
|
4279
4354
|
CarouselBankHistoryCard,
|
|
4280
4355
|
CarouselCard,
|
|
4281
4356
|
CarouselCatalogCard,
|
|
4357
|
+
CarouselEventCard,
|
|
4282
4358
|
CarouselInvestmentCard,
|
|
4283
4359
|
CarouselLinks,
|
|
4284
4360
|
CarouselProductCard,
|
|
@@ -4447,7 +4523,7 @@
|
|
|
4447
4523
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
4448
4524
|
}
|
|
4449
4525
|
|
|
4450
|
-
const packageVersion = "0.8.
|
|
4526
|
+
const packageVersion = "0.8.18";
|
|
4451
4527
|
|
|
4452
4528
|
exports.Blocks = Blocks;
|
|
4453
4529
|
exports.ContentPage = ContentPage;
|