@redneckz/wildless-cms-uni-blocks 0.13.23 → 0.14.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/bin/migration-scripts/0.13.15.js +25 -0
- package/bin/migration-scripts/0.13.22.js +28 -0
- package/bin/migration-scripts/0.14.0.js +26 -0
- package/bundle/EventBus/defaultEventBus.d.ts +3 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +612 -470
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
- package/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
- package/bundle/components/ApplicationForm/CreditFormState.d.ts +1 -1
- package/bundle/components/ApplicationForm/WedFormState.d.ts +5 -4
- package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.mobile.d.ts +4 -0
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.mobile.d.ts +4 -0
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
- package/bundle/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
- package/bundle/components/Bonus/BonusContent.d.ts +2 -0
- package/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
- package/bundle/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/bundle/components/ComparisonTable/constants.d.ts +4 -4
- package/bundle/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
- package/bundle/components/DepositFiltration/getPeriod.d.ts +9 -0
- package/bundle/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
- package/bundle/components/Footer/FooterContent.d.ts +4 -1
- package/bundle/components/Footer/FooterDataProps.d.ts +4 -10
- package/bundle/components/Footer/MediaButton.d.ts +2 -3
- package/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
- package/bundle/components/MobileAppTile/renderList.d.ts +2 -1
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/bundle/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +4 -4
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +0 -3
- package/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
- package/bundle/components/TariffsTable/constants.d.ts +2 -2
- package/bundle/components/TariffsTable/headlineAlign.d.ts +1 -0
- package/bundle/components/TariffsTable/headlineAlign.mobile.d.ts +1 -0
- package/bundle/model/AlignStyles.d.ts +1 -0
- package/bundle/model/AlignStyles.mobile.d.ts +1 -0
- package/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
- package/bundle/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
- package/bundle/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/bundle/ui-kit/InnerTable/InnerTableBodyItem.mobile.d.ts +5 -0
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/bundle/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
- package/bundle/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
- package/bundle/ui-kit/InnerTable/linkButtonVersion.mobile.d.ts +1 -0
- package/bundle/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
- package/bundle/ui-kit/PopupManager/PopupAction.d.ts +14 -0
- package/bundle/ui-kit/PopupManager/PopupManager.d.ts +2 -0
- package/bundle/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
- package/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/bundle/ui-kit/Select/Option.d.ts +4 -0
- package/bundle/ui-kit/Select/Select.d.ts +2 -5
- package/bundle/ui-kit/Select/SelectPopup.d.ts +11 -0
- package/bundle/ui-kit/Select/filterOptions.d.ts +2 -0
- package/bundle/ui-kit/Select/formatOption.d.ts +2 -0
- package/bundle/ui-kit/Select/useSelectPopup.d.ts +9 -0
- package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
- package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/bundle/utils/fetchMultitudeJSON.d.ts +1 -0
- package/cosmos-static/icons/MailIcon.svg +1 -1
- package/cosmos-static/icons/PhoneIcon.svg +1 -1
- package/cosmos-static/icons/RutubeIcon.svg +1 -1
- package/dist/EventBus/defaultEventBus.d.ts +3 -1
- package/dist/EventBus/defaultEventBus.js.map +1 -1
- package/dist/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -6
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +35 -16
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
- package/dist/components/ApplicationForm/CreditFormState.d.ts +1 -1
- package/dist/components/ApplicationForm/WedFormState.d.ts +5 -4
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.mobile.d.ts +4 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js +10 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js.map +1 -0
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.mobile.d.ts +4 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.mobile.js +10 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.mobile.js.map +1 -0
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +3 -3
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +5 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
- package/dist/components/ApplicationForm/renderWedTextarea.js +12 -0
- package/dist/components/ApplicationForm/renderWedTextarea.js.map +1 -0
- package/dist/components/Bonus/Bonus.js +4 -3
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Bonus/BonusContent.d.ts +2 -0
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.mobile.js +1 -1
- package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.js +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/Carousel/Carousel.js +3 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/visibleItemCount.d.ts +1 -0
- package/dist/components/Carousel/visibleItemCount.js +4 -0
- package/dist/components/Carousel/visibleItemCount.js.map +1 -0
- package/dist/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
- package/dist/components/Carousel/visibleItemCount.mobile.js +4 -0
- package/dist/components/Carousel/visibleItemCount.mobile.js.map +1 -0
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinkButton.js +5 -5
- package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +4 -4
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +2 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +4 -3
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +4 -6
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +3 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.js +2 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ComparisonTable/constants.d.ts +4 -4
- package/dist/components/ComparisonTable/constants.js +5 -5
- package/dist/components/ComparisonTable/constants.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.js +16 -13
- package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/dist/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
- package/dist/components/DepositFiltration/getChildSourceBook.js +6 -0
- package/dist/components/DepositFiltration/getChildSourceBook.js.map +1 -0
- package/dist/components/DepositFiltration/getPeriod.d.ts +9 -0
- package/dist/components/DepositFiltration/getPeriod.js +7 -0
- package/dist/components/DepositFiltration/getPeriod.js.map +1 -0
- package/dist/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
- package/dist/components/DepositFiltration/useDepositsPeriods.js +24 -0
- package/dist/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
- package/dist/components/ErrorBlock/ErrorBlock.js +2 -2
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/Footer/Footer.js +4 -3
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +4 -1
- package/dist/components/Footer/FooterDataProps.d.ts +4 -10
- package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.d.ts +2 -3
- package/dist/components/Footer/MediaButton.js +5 -4
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/{lib/components/Footer/buttonSizeStyles.d.ts → dist/components/Footer/buttonSizeStyle.d.ts} +1 -1
- package/dist/components/Footer/{buttonSizeStyles.js → buttonSizeStyle.js} +3 -3
- package/dist/components/Footer/buttonSizeStyle.js.map +1 -0
- package/dist/components/Header/DropdownMenu.js +1 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
- package/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/dist/components/MobileAppTile/renderDescription.js.map +1 -1
- package/dist/components/MobileAppTile/renderList.d.ts +2 -1
- package/dist/components/MobileAppTile/renderList.js +2 -2
- package/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.js +3 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
- package/dist/components/RollupItem/PrimaryFoldButton.js +12 -0
- package/dist/components/RollupItem/PrimaryFoldButton.js.map +1 -0
- package/dist/components/RollupItem/RollupItem.js +3 -14
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -1
- package/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +4 -4
- package/dist/components/TariffsTable/EmbeddableCellData.js +8 -6
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +3 -10
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +0 -3
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +10 -10
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +2 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
- package/dist/components/TariffsTable/TariffsTableWrapper.js +14 -0
- package/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
- package/dist/components/TariffsTable/constants.d.ts +2 -2
- package/dist/components/TariffsTable/constants.js +3 -3
- package/dist/components/TariffsTable/constants.js.map +1 -1
- package/dist/components/TariffsTable/headlineAlign.d.ts +1 -0
- package/dist/components/TariffsTable/headlineAlign.js +4 -0
- package/dist/components/TariffsTable/headlineAlign.js.map +1 -0
- package/dist/components/TariffsTable/headlineAlign.mobile.d.ts +1 -0
- package/dist/components/TariffsTable/headlineAlign.mobile.js +4 -0
- package/dist/components/TariffsTable/headlineAlign.mobile.js.map +1 -0
- package/dist/content-page-repository/transformContentPage.js +5 -6
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/icons/IconName.js +1 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/AlignStyles.d.ts +1 -0
- package/dist/model/AlignStyles.js +4 -0
- package/dist/model/AlignStyles.js.map +1 -0
- package/dist/model/AlignStyles.mobile.d.ts +1 -0
- package/dist/model/AlignStyles.mobile.js +4 -0
- package/dist/model/AlignStyles.mobile.js.map +1 -0
- package/dist/services/search/search.js +1 -1
- package/dist/services/search/search.js.map +1 -1
- package/dist/services/search/textRank.js +1 -1
- package/dist/services/search/textRank.js.map +1 -1
- package/dist/services/search/useSearch.js +1 -1
- package/dist/services/search/useSearch.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
- package/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
- package/dist/ui-kit/BaseFiltration/getBlocksToRender.js +7 -0
- package/dist/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
- package/dist/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
- package/{mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js → dist/ui-kit/BaseFiltration/shouldRenderBlock.js} +8 -5
- package/dist/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +7 -3
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/DialogManager/DialogManager.js +7 -11
- package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/dist/ui-kit/DialogManager/useDialogsList.js +1 -1
- package/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +7 -8
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -5
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +2 -18
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.mobile.d.ts +5 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.mobile.js +8 -0
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.mobile.js.map +1 -0
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/dist/ui-kit/InnerTable/InnerTableButton.js +2 -4
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +2 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/dist/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
- package/dist/ui-kit/InnerTable/getHorizontalShift.js +7 -0
- package/dist/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
- package/dist/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
- package/dist/ui-kit/InnerTable/linkButtonVersion.js +4 -0
- package/dist/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
- package/dist/ui-kit/InnerTable/linkButtonVersion.mobile.d.ts +1 -0
- package/dist/ui-kit/InnerTable/linkButtonVersion.mobile.js +4 -0
- package/dist/ui-kit/InnerTable/linkButtonVersion.mobile.js.map +1 -0
- package/dist/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js +18 -0
- package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
- package/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.js +1 -1
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/PopupManager/PopupAction.d.ts +14 -0
- package/dist/ui-kit/PopupManager/PopupAction.js +2 -0
- package/dist/ui-kit/PopupManager/PopupAction.js.map +1 -0
- package/dist/ui-kit/PopupManager/PopupManager.d.ts +2 -0
- package/dist/ui-kit/PopupManager/PopupManager.js +39 -0
- package/dist/ui-kit/PopupManager/PopupManager.js.map +1 -0
- package/dist/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
- package/dist/ui-kit/PopupManager/usePopupManager.js +10 -0
- package/dist/ui-kit/PopupManager/usePopupManager.js.map +1 -0
- package/dist/ui-kit/RichText/RichText.js +2 -1
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/dist/ui-kit/RichText/getHtmlText.js +5 -0
- package/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/dist/ui-kit/Select/Option.d.ts +4 -0
- package/dist/ui-kit/Select/Option.js +2 -0
- package/dist/ui-kit/Select/Option.js.map +1 -0
- package/dist/ui-kit/Select/Select.d.ts +2 -5
- package/dist/ui-kit/Select/Select.js +18 -25
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.d.ts +11 -0
- package/dist/ui-kit/Select/SelectPopup.js +10 -0
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -0
- package/dist/ui-kit/Select/filterOptions.d.ts +2 -0
- package/dist/ui-kit/Select/filterOptions.js +19 -0
- package/dist/ui-kit/Select/filterOptions.js.map +1 -0
- package/dist/ui-kit/Select/formatOption.d.ts +2 -0
- package/dist/ui-kit/Select/formatOption.js +5 -0
- package/dist/ui-kit/Select/formatOption.js.map +1 -0
- package/dist/ui-kit/Select/useSelectPopup.d.ts +9 -0
- package/dist/ui-kit/Select/useSelectPopup.js +35 -0
- package/dist/ui-kit/Select/useSelectPopup.js.map +1 -0
- package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
- package/dist/ui-kit/TextWithIcon/TextWithIcon.js +10 -0
- package/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
- package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +6 -7
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/dist/utils/fetchMultitudeJSON.d.ts +1 -0
- package/dist/utils/fetchMultitudeJSON.js +9 -0
- package/dist/utils/fetchMultitudeJSON.js.map +1 -0
- package/dist/utils/jaroWinklerDistance.js.map +1 -0
- package/fonts/mohave/Mohave-Regular.ttf +0 -0
- package/fonts/mohave/Mohave-Regular.woff2 +0 -0
- package/fonts/mohave/mohave.css +2 -1
- package/lib/EventBus/defaultEventBus.d.ts +3 -1
- package/lib/EventBus/defaultEventBus.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -6
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +36 -17
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
- package/lib/components/ApplicationForm/CreditFormState.d.ts +1 -1
- package/lib/components/ApplicationForm/WedFormState.d.ts +5 -4
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +1 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.mobile.d.ts +3 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js +7 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js.map +1 -0
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.mobile.d.ts +3 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.mobile.js +7 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.mobile.js.map +1 -0
- package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +3 -3
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +6 -2
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedTextarea.d.ts +3 -0
- package/lib/components/ApplicationForm/renderWedTextarea.js +9 -0
- package/lib/components/ApplicationForm/renderWedTextarea.js.map +1 -0
- package/lib/components/Bonus/Bonus.js +4 -3
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +2 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.mobile.js +1 -1
- package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.js +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/Carousel/Carousel.js +3 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/visibleItemCount.d.ts +1 -0
- package/lib/components/Carousel/visibleItemCount.js +2 -0
- package/lib/components/Carousel/visibleItemCount.js.map +1 -0
- package/lib/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
- package/lib/components/Carousel/visibleItemCount.mobile.js +2 -0
- package/lib/components/Carousel/visibleItemCount.mobile.js.map +1 -0
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +16 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +16 -0
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.js +5 -5
- package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +4 -4
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +3 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +5 -4
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +5 -7
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +4 -3
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.js +3 -2
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ComparisonTable/constants.d.ts +4 -4
- package/lib/components/ComparisonTable/constants.js +4 -4
- package/lib/components/ComparisonTable/constants.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.js +16 -13
- package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/lib/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
- package/lib/components/DepositFiltration/getChildSourceBook.js +3 -0
- package/lib/components/DepositFiltration/getChildSourceBook.js.map +1 -0
- package/lib/components/DepositFiltration/getPeriod.d.ts +9 -0
- package/lib/components/DepositFiltration/getPeriod.js +4 -0
- package/lib/components/DepositFiltration/getPeriod.js.map +1 -0
- package/lib/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
- package/lib/components/DepositFiltration/useDepositsPeriods.js +21 -0
- package/lib/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
- package/lib/components/ErrorBlock/ErrorBlock.js +2 -2
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/Footer/Footer.js +4 -3
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +4 -1
- package/lib/components/Footer/FooterDataProps.d.ts +4 -10
- package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.d.ts +2 -3
- package/lib/components/Footer/MediaButton.js +5 -4
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/{mobile/bundle/components/Footer/buttonSizeStyles.d.ts → lib/components/Footer/buttonSizeStyle.d.ts} +1 -1
- package/lib/components/Footer/buttonSizeStyle.js +5 -0
- package/lib/components/Footer/buttonSizeStyle.js.map +1 -0
- package/lib/components/Header/DropdownMenu.js +1 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
- package/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/lib/components/MobileAppTile/renderDescription.js.map +1 -1
- package/lib/components/MobileAppTile/renderList.d.ts +2 -1
- package/lib/components/MobileAppTile/renderList.js +2 -2
- package/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.js +3 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
- package/lib/components/RollupItem/PrimaryFoldButton.js +10 -0
- package/lib/components/RollupItem/PrimaryFoldButton.js.map +1 -0
- package/lib/components/RollupItem/RollupItem.js +4 -15
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -1
- package/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +4 -5
- package/lib/components/TariffsTable/EmbeddableCellData.js +8 -6
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -2
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +3 -10
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +0 -3
- package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +11 -11
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +3 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.js +3 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
- package/lib/components/TariffsTable/TariffsTableWrapper.js +12 -0
- package/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
- package/lib/components/TariffsTable/constants.d.ts +2 -2
- package/lib/components/TariffsTable/constants.js +2 -2
- package/lib/components/TariffsTable/constants.js.map +1 -1
- package/lib/components/TariffsTable/headlineAlign.d.ts +1 -0
- package/lib/components/TariffsTable/headlineAlign.js +2 -0
- package/lib/components/TariffsTable/headlineAlign.js.map +1 -0
- package/lib/components/TariffsTable/headlineAlign.mobile.d.ts +1 -0
- package/lib/components/TariffsTable/headlineAlign.mobile.js +2 -0
- package/lib/components/TariffsTable/headlineAlign.mobile.js.map +1 -0
- package/lib/components/Tile/Tile.fixture.mobile.d.ts +9 -0
- package/lib/content-page-repository/transformContentPage.js +5 -6
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/icons/IconName.js +1 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/AlignStyles.d.ts +1 -0
- package/lib/model/AlignStyles.js +2 -0
- package/lib/model/AlignStyles.js.map +1 -0
- package/lib/model/AlignStyles.mobile.d.ts +1 -0
- package/lib/model/AlignStyles.mobile.js +2 -0
- package/lib/model/AlignStyles.mobile.js.map +1 -0
- package/lib/services/search/search.js +1 -1
- package/lib/services/search/search.js.map +1 -1
- package/lib/services/search/textRank.js +1 -1
- package/lib/services/search/textRank.js.map +1 -1
- package/lib/services/search/useSearch.js +1 -1
- package/lib/services/search/useSearch.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
- package/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
- package/lib/ui-kit/BaseFiltration/getBlocksToRender.js +4 -0
- package/lib/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
- package/lib/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
- package/{mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js → lib/ui-kit/BaseFiltration/shouldRenderBlock.js} +6 -3
- package/lib/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +7 -3
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/DialogManager/DialogManager.js +7 -11
- package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/lib/ui-kit/DialogManager/useDialogsList.js +1 -1
- package/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +8 -9
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.fixture.d.ts +6 -0
- package/lib/ui-kit/InnerTable/InnerTable.fixture.mobile.d.ts +6 -0
- package/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -5
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -19
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.mobile.d.ts +5 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.mobile.js +6 -0
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.mobile.js.map +1 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/lib/ui-kit/InnerTable/InnerTableButton.fixture.mobile.d.ts +6 -0
- package/lib/ui-kit/InnerTable/InnerTableButton.js +3 -5
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +2 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/lib/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
- package/lib/ui-kit/InnerTable/getHorizontalShift.js +4 -0
- package/lib/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
- package/lib/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
- package/lib/ui-kit/InnerTable/linkButtonVersion.js +2 -0
- package/lib/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
- package/lib/ui-kit/InnerTable/linkButtonVersion.mobile.d.ts +1 -0
- package/lib/ui-kit/InnerTable/linkButtonVersion.mobile.js +2 -0
- package/lib/ui-kit/InnerTable/linkButtonVersion.mobile.js.map +1 -0
- package/lib/ui-kit/InnerTable/renderInnerTableRow.d.ts +2 -0
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js +15 -0
- package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
- package/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.js +1 -1
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/PopupManager/PopupAction.d.ts +14 -0
- package/lib/ui-kit/PopupManager/PopupAction.js +2 -0
- package/lib/ui-kit/PopupManager/PopupAction.js.map +1 -0
- package/lib/ui-kit/PopupManager/PopupManager.d.ts +2 -0
- package/lib/ui-kit/PopupManager/PopupManager.js +37 -0
- package/lib/ui-kit/PopupManager/PopupManager.js.map +1 -0
- package/lib/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
- package/lib/ui-kit/PopupManager/usePopupManager.js +7 -0
- package/lib/ui-kit/PopupManager/usePopupManager.js.map +1 -0
- package/lib/ui-kit/RichText/RichText.js +2 -1
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/lib/ui-kit/RichText/getHtmlText.js +2 -0
- package/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/lib/ui-kit/Select/Option.d.ts +4 -0
- package/lib/ui-kit/Select/Option.js +2 -0
- package/lib/ui-kit/Select/Option.js.map +1 -0
- package/lib/ui-kit/Select/Select.d.ts +2 -5
- package/lib/ui-kit/Select/Select.fixture.d.ts +1 -0
- package/lib/ui-kit/Select/Select.js +18 -25
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.d.ts +11 -0
- package/lib/ui-kit/Select/SelectPopup.js +8 -0
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -0
- package/lib/ui-kit/Select/filterOptions.d.ts +2 -0
- package/lib/ui-kit/Select/filterOptions.js +16 -0
- package/lib/ui-kit/Select/filterOptions.js.map +1 -0
- package/lib/ui-kit/Select/formatOption.d.ts +2 -0
- package/lib/ui-kit/Select/formatOption.js +2 -0
- package/lib/ui-kit/Select/formatOption.js.map +1 -0
- package/lib/ui-kit/Select/useSelectPopup.d.ts +9 -0
- package/lib/ui-kit/Select/useSelectPopup.js +32 -0
- package/lib/ui-kit/Select/useSelectPopup.js.map +1 -0
- package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
- package/lib/ui-kit/TextWithIcon/TextWithIcon.js +8 -0
- package/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
- package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +6 -7
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/utils/fetchMultitudeJSON.d.ts +1 -0
- package/lib/utils/fetchMultitudeJSON.js +6 -0
- package/lib/utils/fetchMultitudeJSON.js.map +1 -0
- package/lib/utils/jaroWinklerDistance.js.map +1 -0
- package/mobile/bundle/EventBus/defaultEventBus.d.ts +3 -1
- package/mobile/bundle/bundle.umd.js +702 -441
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/WedFormState.d.ts +5 -4
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
- package/mobile/bundle/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +2 -0
- package/mobile/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/mobile/bundle/components/ComparisonTable/constants.d.ts +4 -4
- package/mobile/bundle/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
- package/mobile/bundle/components/DepositFiltration/getPeriod.d.ts +9 -0
- package/mobile/bundle/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
- package/mobile/bundle/components/Footer/FooterContent.d.ts +4 -1
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -10
- package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -3
- package/{dist/components/Footer/buttonSizeStyles.d.ts → mobile/bundle/components/Footer/buttonSizeStyle.d.ts} +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
- package/mobile/bundle/components/MobileAppTile/renderList.d.ts +2 -1
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/bundle/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
- package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +9 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +0 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
- package/mobile/bundle/components/TariffsTable/constants.d.ts +2 -2
- package/mobile/bundle/components/TariffsTable/headlineAlign.d.ts +1 -0
- package/mobile/bundle/model/AlignStyles.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
- package/mobile/bundle/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
- package/mobile/bundle/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/bundle/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
- package/mobile/bundle/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
- package/mobile/bundle/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
- package/mobile/bundle/ui-kit/PopupManager/PopupAction.d.ts +14 -0
- package/mobile/bundle/ui-kit/PopupManager/PopupManager.d.ts +2 -0
- package/mobile/bundle/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
- package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/mobile/bundle/ui-kit/Select/Option.d.ts +4 -0
- package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -5
- package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +11 -0
- package/mobile/bundle/ui-kit/Select/filterOptions.d.ts +2 -0
- package/mobile/bundle/ui-kit/Select/formatOption.d.ts +2 -0
- package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +9 -0
- package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
- package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/bundle/utils/fetchMultitudeJSON.d.ts +1 -0
- package/mobile/dist/EventBus/defaultEventBus.d.ts +3 -1
- package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -6
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +35 -16
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/WedFormState.d.ts +5 -4
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +3 -3
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +5 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
- package/mobile/dist/components/ApplicationForm/renderWedTextarea.js +12 -0
- package/mobile/dist/components/ApplicationForm/renderWedTextarea.js.map +1 -0
- package/mobile/dist/components/Bonus/Bonus.js +4 -3
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Bonus/BonusContent.d.ts +2 -0
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +3 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/visibleItemCount.d.ts +1 -0
- package/mobile/dist/components/Carousel/visibleItemCount.js +4 -0
- package/mobile/dist/components/Carousel/visibleItemCount.js.map +1 -0
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +5 -5
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +4 -4
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +4 -6
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +3 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +2 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/constants.d.ts +4 -4
- package/mobile/dist/components/ComparisonTable/constants.js +5 -5
- package/mobile/dist/components/ComparisonTable/constants.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js +16 -13
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/dist/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
- package/mobile/dist/components/DepositFiltration/getChildSourceBook.js +6 -0
- package/mobile/dist/components/DepositFiltration/getChildSourceBook.js.map +1 -0
- package/mobile/dist/components/DepositFiltration/getPeriod.d.ts +9 -0
- package/mobile/dist/components/DepositFiltration/getPeriod.js +7 -0
- package/mobile/dist/components/DepositFiltration/getPeriod.js.map +1 -0
- package/mobile/dist/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
- package/mobile/dist/components/DepositFiltration/useDepositsPeriods.js +24 -0
- package/mobile/dist/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -2
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +4 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -10
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +2 -3
- package/mobile/dist/components/Footer/MediaButton.js +5 -4
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js +1 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +4 -0
- package/mobile/dist/components/Footer/{buttonSizeStyles.js → buttonSizeStyle.js} +3 -3
- package/mobile/dist/components/Footer/buttonSizeStyle.js.map +1 -0
- package/mobile/dist/components/Header/DropdownMenu.js +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -3
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
- package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/dist/components/MobileAppTile/renderDescription.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/renderList.d.ts +2 -1
- package/mobile/dist/components/MobileAppTile/renderList.js +2 -2
- package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +3 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
- package/mobile/dist/components/RollupItem/PrimaryFoldButton.js +12 -0
- package/mobile/dist/components/RollupItem/PrimaryFoldButton.js.map +1 -0
- package/mobile/dist/components/RollupItem/RollupItem.js +3 -14
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +9 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +10 -5
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +24 -11
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +0 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +10 -10
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
- package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js +14 -0
- package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
- package/mobile/dist/components/TariffsTable/constants.d.ts +2 -2
- package/mobile/dist/components/TariffsTable/constants.js +3 -3
- package/mobile/dist/components/TariffsTable/constants.js.map +1 -1
- package/mobile/dist/components/TariffsTable/headlineAlign.d.ts +1 -0
- package/mobile/dist/components/TariffsTable/headlineAlign.js +4 -0
- package/mobile/dist/components/TariffsTable/headlineAlign.js.map +1 -0
- package/mobile/dist/content-page-repository/transformContentPage.js +5 -6
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/icons/IconName.js +1 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/AlignStyles.d.ts +1 -0
- package/mobile/dist/model/AlignStyles.js +4 -0
- package/mobile/dist/model/AlignStyles.js.map +1 -0
- package/mobile/dist/services/search/search.js +1 -1
- package/mobile/dist/services/search/search.js.map +1 -1
- package/mobile/dist/services/search/textRank.js +1 -1
- package/mobile/dist/services/search/textRank.js.map +1 -1
- package/mobile/dist/services/search/useSearch.js +1 -1
- package/mobile/dist/services/search/useSearch.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
- package/mobile/dist/ui-kit/BaseFiltration/getBlocksToRender.js +7 -0
- package/mobile/dist/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
- package/mobile/dist/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
- package/{dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js → mobile/dist/ui-kit/BaseFiltration/shouldRenderBlock.js} +8 -5
- package/mobile/dist/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +7 -3
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/DialogManager.js +7 -11
- package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/useDialogsList.js +1 -1
- package/mobile/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +7 -8
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -5
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -32
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +2 -4
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +2 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
- package/mobile/dist/ui-kit/InnerTable/getHorizontalShift.js +7 -0
- package/mobile/dist/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
- package/mobile/dist/ui-kit/InnerTable/linkButtonVersion.js +4 -0
- package/mobile/dist/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +18 -0
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/PopupManager/PopupAction.d.ts +14 -0
- package/mobile/dist/ui-kit/PopupManager/PopupAction.js +2 -0
- package/mobile/dist/ui-kit/PopupManager/PopupAction.js.map +1 -0
- package/mobile/dist/ui-kit/PopupManager/PopupManager.d.ts +2 -0
- package/mobile/dist/ui-kit/PopupManager/PopupManager.js +39 -0
- package/mobile/dist/ui-kit/PopupManager/PopupManager.js.map +1 -0
- package/mobile/dist/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
- package/mobile/dist/ui-kit/PopupManager/usePopupManager.js +10 -0
- package/mobile/dist/ui-kit/PopupManager/usePopupManager.js.map +1 -0
- package/mobile/dist/ui-kit/RichText/RichText.js +2 -1
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/mobile/dist/ui-kit/RichText/getHtmlText.js +5 -0
- package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/mobile/dist/ui-kit/Select/Option.d.ts +4 -0
- package/mobile/dist/ui-kit/Select/Option.js +2 -0
- package/mobile/dist/ui-kit/Select/Option.js.map +1 -0
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -5
- package/mobile/dist/ui-kit/Select/Select.js +18 -25
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +11 -0
- package/mobile/dist/ui-kit/Select/SelectPopup.js +10 -0
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -0
- package/mobile/dist/ui-kit/Select/filterOptions.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/filterOptions.js +19 -0
- package/mobile/dist/ui-kit/Select/filterOptions.js.map +1 -0
- package/mobile/dist/ui-kit/Select/formatOption.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/formatOption.js +5 -0
- package/mobile/dist/ui-kit/Select/formatOption.js.map +1 -0
- package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +9 -0
- package/mobile/dist/ui-kit/Select/useSelectPopup.js +35 -0
- package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -0
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js +10 -0
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +6 -7
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/dist/utils/fetchMultitudeJSON.d.ts +1 -0
- package/mobile/dist/utils/fetchMultitudeJSON.js +9 -0
- package/mobile/dist/utils/fetchMultitudeJSON.js.map +1 -0
- package/mobile/dist/utils/jaroWinklerDistance.js.map +1 -0
- package/mobile/fonts/mohave/Mohave-Regular.ttf +0 -0
- package/mobile/fonts/mohave/Mohave-Regular.woff2 +0 -0
- package/mobile/fonts/mohave/mohave.css +2 -1
- package/mobile/lib/EventBus/defaultEventBus.d.ts +3 -1
- package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -6
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +36 -17
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/WedFormState.d.ts +5 -4
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +3 -3
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +6 -2
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
- package/mobile/lib/components/ApplicationForm/renderWedTextarea.js +9 -0
- package/mobile/lib/components/ApplicationForm/renderWedTextarea.js.map +1 -0
- package/mobile/lib/components/Bonus/Bonus.js +4 -3
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Bonus/BonusContent.d.ts +2 -0
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +3 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/visibleItemCount.d.ts +1 -0
- package/mobile/lib/components/Carousel/visibleItemCount.js +2 -0
- package/mobile/lib/components/Carousel/visibleItemCount.js.map +1 -0
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +5 -5
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +4 -4
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +5 -7
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +4 -3
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +3 -2
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/constants.d.ts +4 -4
- package/mobile/lib/components/ComparisonTable/constants.js +4 -4
- package/mobile/lib/components/ComparisonTable/constants.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js +16 -13
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/lib/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
- package/mobile/lib/components/DepositFiltration/getChildSourceBook.js +3 -0
- package/mobile/lib/components/DepositFiltration/getChildSourceBook.js.map +1 -0
- package/mobile/lib/components/DepositFiltration/getPeriod.d.ts +9 -0
- package/mobile/lib/components/DepositFiltration/getPeriod.js +4 -0
- package/mobile/lib/components/DepositFiltration/getPeriod.js.map +1 -0
- package/mobile/lib/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
- package/mobile/lib/components/DepositFiltration/useDepositsPeriods.js +21 -0
- package/mobile/lib/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -2
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +4 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -10
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +2 -3
- package/mobile/lib/components/Footer/MediaButton.js +5 -4
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js +1 -1
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +4 -0
- package/mobile/lib/components/Footer/buttonSizeStyle.js +5 -0
- package/mobile/lib/components/Footer/buttonSizeStyle.js.map +1 -0
- package/mobile/lib/components/Header/DropdownMenu.js +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -3
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
- package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/renderList.d.ts +2 -1
- package/mobile/lib/components/MobileAppTile/renderList.js +2 -2
- package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +3 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
- package/mobile/lib/components/RollupItem/PrimaryFoldButton.js +10 -0
- package/mobile/lib/components/RollupItem/PrimaryFoldButton.js.map +1 -0
- package/mobile/lib/components/RollupItem/RollupItem.js +4 -15
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
- package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +9 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +10 -5
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +24 -11
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +0 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +11 -11
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +3 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +3 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
- package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js +12 -0
- package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
- package/mobile/lib/components/TariffsTable/constants.d.ts +2 -2
- package/mobile/lib/components/TariffsTable/constants.js +2 -2
- package/mobile/lib/components/TariffsTable/constants.js.map +1 -1
- package/mobile/lib/components/TariffsTable/headlineAlign.d.ts +1 -0
- package/mobile/lib/components/TariffsTable/headlineAlign.js +2 -0
- package/mobile/lib/components/TariffsTable/headlineAlign.js.map +1 -0
- package/mobile/lib/content-page-repository/transformContentPage.js +5 -6
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/icons/IconName.js +1 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/AlignStyles.d.ts +1 -0
- package/mobile/lib/model/AlignStyles.js +2 -0
- package/mobile/lib/model/AlignStyles.js.map +1 -0
- package/mobile/lib/services/search/search.js +1 -1
- package/mobile/lib/services/search/search.js.map +1 -1
- package/mobile/lib/services/search/textRank.js +1 -1
- package/mobile/lib/services/search/textRank.js.map +1 -1
- package/mobile/lib/services/search/useSearch.js +1 -1
- package/mobile/lib/services/search/useSearch.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
- package/mobile/lib/ui-kit/BaseFiltration/getBlocksToRender.js +4 -0
- package/mobile/lib/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
- package/mobile/lib/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
- package/{lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js → mobile/lib/ui-kit/BaseFiltration/shouldRenderBlock.js} +6 -3
- package/mobile/lib/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
- package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +7 -3
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/DialogManager.js +7 -11
- package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/useDialogsList.js +1 -1
- package/mobile/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +8 -9
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -5
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +4 -33
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +3 -5
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +2 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
- package/mobile/lib/ui-kit/InnerTable/getHorizontalShift.js +4 -0
- package/mobile/lib/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
- package/mobile/lib/ui-kit/InnerTable/linkButtonVersion.js +2 -0
- package/mobile/lib/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +15 -0
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/PopupManager/PopupAction.d.ts +14 -0
- package/mobile/lib/ui-kit/PopupManager/PopupAction.js +2 -0
- package/mobile/lib/ui-kit/PopupManager/PopupAction.js.map +1 -0
- package/mobile/lib/ui-kit/PopupManager/PopupManager.d.ts +2 -0
- package/mobile/lib/ui-kit/PopupManager/PopupManager.js +37 -0
- package/mobile/lib/ui-kit/PopupManager/PopupManager.js.map +1 -0
- package/mobile/lib/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
- package/mobile/lib/ui-kit/PopupManager/usePopupManager.js +7 -0
- package/mobile/lib/ui-kit/PopupManager/usePopupManager.js.map +1 -0
- package/mobile/lib/ui-kit/RichText/RichText.js +2 -1
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
- package/mobile/lib/ui-kit/RichText/getHtmlText.js +2 -0
- package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
- package/mobile/lib/ui-kit/Select/Option.d.ts +4 -0
- package/mobile/lib/ui-kit/Select/Option.js +2 -0
- package/mobile/lib/ui-kit/Select/Option.js.map +1 -0
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -5
- package/mobile/lib/ui-kit/Select/Select.js +18 -25
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +11 -0
- package/mobile/lib/ui-kit/Select/SelectPopup.js +8 -0
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -0
- package/mobile/lib/ui-kit/Select/filterOptions.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/filterOptions.js +16 -0
- package/mobile/lib/ui-kit/Select/filterOptions.js.map +1 -0
- package/mobile/lib/ui-kit/Select/formatOption.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/formatOption.js +2 -0
- package/mobile/lib/ui-kit/Select/formatOption.js.map +1 -0
- package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +9 -0
- package/mobile/lib/ui-kit/Select/useSelectPopup.js +32 -0
- package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -0
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js +8 -0
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +6 -7
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/utils/fetchMultitudeJSON.d.ts +1 -0
- package/mobile/lib/utils/fetchMultitudeJSON.js +6 -0
- package/mobile/lib/utils/fetchMultitudeJSON.js.map +1 -0
- package/mobile/lib/utils/jaroWinklerDistance.js.map +1 -0
- package/mobile/src/EventBus/defaultEventBus.ts +3 -1
- package/mobile/src/components/ApplicationForm/AcquiringFormState.ts +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -10
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +44 -27
- package/mobile/src/components/ApplicationForm/BusinessCardFormState.ts +1 -1
- package/mobile/src/components/ApplicationForm/CreditFormState.ts +1 -1
- package/mobile/src/components/ApplicationForm/WedFormState.ts +6 -4
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +21 -25
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +11 -13
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +35 -15
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +4 -4
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +41 -23
- package/mobile/src/components/ApplicationForm/renderWedTextarea.tsx +32 -0
- package/mobile/src/components/Bonus/Bonus.tsx +7 -3
- package/mobile/src/components/Bonus/BonusContent.ts +2 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -6
- package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +3 -3
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +2 -2
- package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/mobile/src/components/Carousel/Carousel.example.json +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +3 -1
- package/mobile/src/components/Carousel/visibleItemCount.ts +1 -0
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +49 -25
- package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +23 -21
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +24 -22
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
- package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +2 -2
- package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableCell.tsx +14 -12
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +7 -3
- package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -4
- package/mobile/src/components/ComparisonTable/constants.ts +4 -4
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -0
- package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +6 -2
- package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +22 -17
- package/mobile/src/components/DepositFiltration/getChildSourceBook.ts +7 -0
- package/mobile/src/components/DepositFiltration/getPeriod.ts +10 -0
- package/mobile/src/components/DepositFiltration/useDepositsPeriods.ts +34 -0
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +13 -3
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/Footer/FooterContent.ts +5 -1
- package/mobile/src/components/Footer/FooterDataProps.ts +4 -10
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +34 -39
- package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
- package/mobile/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +2 -2
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +0 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +4 -4
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +0 -5
- package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/mobile/src/components/MobileAppTile/renderList.tsx +3 -2
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.example.json +9 -2
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +5 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
- package/mobile/src/components/RollupItem/PrimaryFoldButton.tsx +44 -0
- package/mobile/src/components/RollupItem/RollupItem.tsx +10 -48
- package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +8 -8
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +2 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -1
- package/mobile/src/components/StickyBottomMenu/RenderMenuItems.tsx +4 -1
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +43 -10
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +0 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +50 -31
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -4
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +0 -3
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -5
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +10 -4
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +10 -1
- package/mobile/src/components/TariffsTable/TariffsTableWrapper.tsx +27 -0
- package/mobile/src/components/TariffsTable/constants.ts +2 -2
- package/mobile/src/components/TariffsTable/headlineAlign.tsx +1 -0
- package/mobile/src/content-page-repository/transformContentPage.ts +12 -10
- package/mobile/src/icons/IconName.ts +1 -1
- package/mobile/src/icons/MailIcon.svg +4 -1
- package/mobile/src/icons/PhoneIcon.svg +3 -1
- package/mobile/src/icons/RutubeIcon.svg +1 -1
- package/mobile/src/model/AlignStyles.ts +1 -0
- package/mobile/src/services/search/search.ts +1 -1
- package/mobile/src/services/search/textRank.ts +1 -1
- package/mobile/src/services/search/useSearch.ts +1 -1
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -8
- package/mobile/src/ui-kit/BaseFiltration/getBadgeCount.ts +2 -2
- package/mobile/src/ui-kit/BaseFiltration/getBlocksToRender.ts +8 -0
- package/mobile/src/ui-kit/BaseFiltration/{checkShouldRenderBlock.ts → shouldRenderBlock.ts} +9 -2
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
- package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +9 -3
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +2 -2
- package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +8 -13
- package/mobile/src/ui-kit/DialogManager/useDialogsList.ts +1 -1
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +23 -21
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +2 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -25
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +7 -82
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +15 -19
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +5 -3
- package/mobile/src/ui-kit/InnerTable/getHorizontalShift.tsx +7 -0
- package/mobile/src/ui-kit/InnerTable/linkButtonVersion.tsx +1 -0
- package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +54 -0
- package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +2 -2
- package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
- package/mobile/src/ui-kit/PopupManager/PopupAction.ts +18 -0
- package/mobile/src/ui-kit/PopupManager/PopupManager.tsx +57 -0
- package/mobile/src/ui-kit/PopupManager/usePopupManager.tsx +11 -0
- package/mobile/src/ui-kit/RichText/RichText.tsx +3 -2
- package/mobile/src/ui-kit/RichText/getHtmlText.tsx +1 -0
- package/mobile/src/ui-kit/Select/Option.ts +4 -0
- package/mobile/src/ui-kit/Select/Select.tsx +36 -88
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +42 -0
- package/mobile/src/ui-kit/Select/filterOptions.ts +19 -0
- package/mobile/src/ui-kit/Select/formatOption.ts +3 -0
- package/mobile/src/ui-kit/Select/useSelectPopup.tsx +63 -0
- package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +35 -0
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +7 -8
- package/mobile/src/utils/fetchMultitudeJSON.ts +9 -0
- package/package.json +4 -3
- package/src/EventBus/defaultEventBus.ts +3 -1
- package/src/components/ApplicationForm/AcquiringFormState.ts +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +7 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +7 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +2 -10
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +44 -27
- package/src/components/ApplicationForm/BusinessCardFormState.ts +1 -1
- package/src/components/ApplicationForm/CreditFormState.ts +1 -1
- package/src/components/ApplicationForm/WedFormState.ts +6 -4
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.mobile.tsx +31 -0
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderCreditDataOrganization.mobile.tsx +39 -0
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +3 -3
- package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +35 -15
- package/src/components/ApplicationForm/renderRegion.tsx +1 -1
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +4 -4
- package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +41 -23
- package/src/components/ApplicationForm/renderWedTextarea.tsx +32 -0
- package/src/components/Bonus/Bonus.tsx +7 -3
- package/src/components/Bonus/BonusContent.ts +2 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -6
- package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +3 -3
- package/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +2 -2
- package/src/components/Calculator/Calculator.mobile.tsx +1 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
- package/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +2 -2
- package/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
- package/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/src/components/Carousel/Carousel.example.json +1 -1
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +16 -6
- package/src/components/Carousel/Carousel.fixture.tsx +18 -5
- package/src/components/Carousel/Carousel.tsx +3 -1
- package/src/components/Carousel/visibleItemCount.mobile.ts +1 -0
- package/src/components/Carousel/visibleItemCount.ts +1 -0
- package/src/components/CarouselCard/CarouselCard.tsx +4 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.tsx +30 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +30 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +49 -25
- package/src/components/CarouselLinks/CarouselLinkButton.tsx +23 -21
- package/src/components/CarouselLinks/CarouselLinks.tsx +24 -22
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +4 -18
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
- package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
- package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +2 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +7 -2
- package/src/components/ComparisonTable/TableCarouselContainer.tsx +1 -1
- package/src/components/ComparisonTable/TableCell.mobile.tsx +14 -12
- package/src/components/ComparisonTable/TableCell.tsx +16 -9
- package/src/components/ComparisonTable/TableColumn.tsx +7 -3
- package/src/components/ComparisonTable/TableRow.tsx +3 -4
- package/src/components/ComparisonTable/constants.ts +4 -4
- package/src/components/ContentPage/ContentPage.tsx +2 -0
- package/src/components/DepositFiltration/DepositFiltration.example.json +6 -2
- package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +13 -40
- package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +14 -41
- package/src/components/DepositFiltration/DepositFiltration.tsx +22 -17
- package/src/components/DepositFiltration/getChildSourceBook.ts +7 -0
- package/src/components/DepositFiltration/getPeriod.ts +10 -0
- package/src/components/DepositFiltration/useDepositsPeriods.ts +34 -0
- package/src/components/ErrorBlock/ErrorBlock.tsx +13 -3
- package/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/Footer.tsx +4 -3
- package/src/components/Footer/FooterContent.ts +5 -1
- package/src/components/Footer/FooterDataProps.ts +4 -10
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +34 -39
- package/src/components/Footer/SocialMedia.tsx +2 -2
- package/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
- package/src/components/Header/DropdownMenu.tsx +2 -2
- package/src/components/Header/HeaderChatBotButton.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.example.json +0 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +4 -4
- package/src/components/MobileAppTile/MobileAppTileContent.ts +0 -5
- package/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/src/components/MobileAppTile/renderList.tsx +3 -2
- package/src/components/MortgageFiltration/MortgageFiltration.example.json +9 -2
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +5 -2
- package/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +3 -3
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
- package/src/components/RollupItem/PrimaryFoldButton.tsx +44 -0
- package/src/components/RollupItem/RollupItem.tsx +10 -48
- package/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
- package/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +8 -8
- package/src/components/SafeDepositRental/WrapperSelect.tsx +2 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -1
- package/src/components/StickyBottomMenu/RenderMenuItems.tsx +4 -1
- package/src/components/TariffsTable/EmbeddableCellData.tsx +30 -19
- package/src/components/TariffsTable/TariffsTable.example.json +0 -1
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +8 -4
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +8 -18
- package/src/components/TariffsTable/TariffsTable.tsx +25 -41
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -4
- package/src/components/TariffsTable/TariffsTableContent.ts +0 -3
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -5
- package/src/components/TariffsTable/TariffsTableRow.tsx +10 -4
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +10 -1
- package/src/components/TariffsTable/TariffsTableWrapper.tsx +27 -0
- package/src/components/TariffsTable/constants.ts +2 -2
- package/src/components/TariffsTable/headlineAlign.mobile.tsx +1 -0
- package/src/components/TariffsTable/headlineAlign.tsx +1 -0
- package/src/components/Tile/Tile.fixture.mobile.tsx +48 -0
- package/src/content-page-repository/transformContentPage.ts +12 -10
- package/src/icons/IconName.ts +5 -424
- package/src/icons/MailIcon.svg +4 -1
- package/src/icons/PhoneIcon.svg +3 -1
- package/src/icons/RutubeIcon.svg +1 -1
- package/src/model/AlignStyles.mobile.ts +1 -0
- package/src/model/AlignStyles.ts +1 -0
- package/src/services/search/search.ts +1 -1
- package/src/services/search/textRank.ts +1 -1
- package/src/services/search/useSearch.ts +1 -1
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -8
- package/src/ui-kit/BaseFiltration/getBadgeCount.ts +2 -2
- package/src/ui-kit/BaseFiltration/getBlocksToRender.ts +8 -0
- package/src/ui-kit/BaseFiltration/{checkShouldRenderBlock.ts → shouldRenderBlock.ts} +9 -2
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
- package/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
- package/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +9 -3
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +2 -2
- package/src/ui-kit/DialogManager/DialogManager.tsx +8 -13
- package/src/ui-kit/DialogManager/useDialogsList.ts +1 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +23 -21
- package/src/ui-kit/InnerTable/InnerTable.fixture.mobile.tsx +11 -0
- package/src/ui-kit/InnerTable/InnerTable.fixture.tsx +11 -0
- package/src/ui-kit/InnerTable/InnerTable.tsx +2 -2
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -25
- package/src/ui-kit/InnerTable/InnerTableBodyItem.mobile.tsx +14 -0
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +2 -62
- package/src/ui-kit/InnerTable/InnerTableButton.fixture.mobile.tsx +11 -0
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +15 -19
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +5 -3
- package/src/ui-kit/InnerTable/getHorizontalShift.tsx +7 -0
- package/src/ui-kit/InnerTable/linkButtonVersion.mobile.tsx +1 -0
- package/src/ui-kit/InnerTable/linkButtonVersion.tsx +1 -0
- package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +54 -0
- package/src/ui-kit/LocationDialog/LocationDialog.tsx +2 -2
- package/src/ui-kit/Logo/Logo.tsx +1 -1
- package/src/ui-kit/PopupManager/PopupAction.ts +18 -0
- package/src/ui-kit/PopupManager/PopupManager.tsx +57 -0
- package/src/ui-kit/PopupManager/usePopupManager.tsx +11 -0
- package/src/ui-kit/RichText/RichText.tsx +3 -2
- package/src/ui-kit/RichText/getHtmlText.tsx +1 -0
- package/src/ui-kit/Select/Option.ts +4 -0
- package/src/ui-kit/Select/Select.fixture.tsx +22 -4
- package/src/ui-kit/Select/Select.tsx +36 -88
- package/src/ui-kit/Select/SelectPopup.tsx +42 -0
- package/src/ui-kit/Select/filterOptions.ts +19 -0
- package/src/ui-kit/Select/formatOption.ts +3 -0
- package/src/ui-kit/Select/useSelectPopup.tsx +63 -0
- package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +35 -0
- package/src/ui-kit/YandexMap/YandexMap.tsx +7 -8
- package/src/utils/fetchMultitudeJSON.ts +9 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
- package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +0 -1
- package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
- package/bundle/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
- package/bundle/components/CarouselProductCard/alignTextStyle.mobile.d.ts +0 -1
- package/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/bundle/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -13
- package/bundle/components/TariffsTable/TariffsTable.mobile.d.ts +0 -5
- package/bundle/hooks/useBool.d.ts +0 -9
- package/bundle/hooks/useList.d.ts +0 -10
- package/bundle/hooks/useOutsideClick.d.ts +0 -3
- package/bundle/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
- package/bundle/utils/useDebouncedEffect.d.ts +0 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -4
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +0 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +0 -4
- package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +0 -1
- package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
- package/dist/components/CarouselCatalogCard/CatalogCard.js +0 -20
- package/dist/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
- package/dist/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
- package/dist/components/CarouselProductCard/alignTextStyle.js +0 -4
- package/dist/components/CarouselProductCard/alignTextStyle.js.map +0 -1
- package/dist/components/CarouselProductCard/alignTextStyle.mobile.d.ts +0 -1
- package/dist/components/CarouselProductCard/alignTextStyle.mobile.js +0 -4
- package/dist/components/CarouselProductCard/alignTextStyle.mobile.js.map +0 -1
- package/dist/components/Footer/buttonSizeStyles.js.map +0 -1
- package/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/dist/components/Footer/buttonStylesWithText.js +0 -9
- package/dist/components/Footer/buttonStylesWithText.js.map +0 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -13
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +0 -20
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +0 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.d.ts +0 -5
- package/dist/components/TariffsTable/TariffsTable.mobile.js +0 -18
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +0 -1
- package/dist/hooks/useBool.d.ts +0 -9
- package/dist/hooks/useBool.js +0 -12
- package/dist/hooks/useBool.js.map +0 -1
- package/dist/hooks/useList.d.ts +0 -10
- package/dist/hooks/useList.js +0 -13
- package/dist/hooks/useList.js.map +0 -1
- package/dist/hooks/useOutsideClick.d.ts +0 -3
- package/dist/hooks/useOutsideClick.js +0 -23
- package/dist/hooks/useOutsideClick.js.map +0 -1
- package/dist/services/search/jaroWinklerDistance.js.map +0 -1
- package/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
- package/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
- package/dist/utils/useDebouncedEffect.d.ts +0 -1
- package/dist/utils/useDebouncedEffect.js +0 -11
- package/dist/utils/useDebouncedEffect.js.map +0 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -2
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +0 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +0 -2
- package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +0 -1
- package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
- package/lib/components/CarouselCatalogCard/CatalogCard.js +0 -18
- package/lib/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
- package/lib/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
- package/lib/components/CarouselProductCard/alignTextStyle.js +0 -2
- package/lib/components/CarouselProductCard/alignTextStyle.js.map +0 -1
- package/lib/components/CarouselProductCard/alignTextStyle.mobile.d.ts +0 -1
- package/lib/components/CarouselProductCard/alignTextStyle.mobile.js +0 -2
- package/lib/components/CarouselProductCard/alignTextStyle.mobile.js.map +0 -1
- package/lib/components/Footer/buttonSizeStyles.js +0 -5
- package/lib/components/Footer/buttonSizeStyles.js.map +0 -1
- package/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/lib/components/Footer/buttonStylesWithText.js +0 -6
- package/lib/components/Footer/buttonStylesWithText.js.map +0 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -12
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +0 -18
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +0 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.d.ts +0 -5
- package/lib/components/TariffsTable/TariffsTable.mobile.js +0 -16
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +0 -1
- package/lib/hooks/useBool.d.ts +0 -9
- package/lib/hooks/useBool.js +0 -9
- package/lib/hooks/useBool.js.map +0 -1
- package/lib/hooks/useList.d.ts +0 -10
- package/lib/hooks/useList.js +0 -10
- package/lib/hooks/useList.js.map +0 -1
- package/lib/hooks/useOutsideClick.d.ts +0 -3
- package/lib/hooks/useOutsideClick.js +0 -20
- package/lib/hooks/useOutsideClick.js.map +0 -1
- package/lib/services/search/jaroWinklerDistance.js.map +0 -1
- package/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
- package/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
- package/lib/utils/useDebouncedEffect.d.ts +0 -1
- package/lib/utils/useDebouncedEffect.js +0 -8
- package/lib/utils/useDebouncedEffect.js.map +0 -1
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
- package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
- package/mobile/bundle/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
- package/mobile/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/mobile/bundle/hooks/useBool.d.ts +0 -9
- package/mobile/bundle/hooks/useList.d.ts +0 -10
- package/mobile/bundle/hooks/useOutsideClick.d.ts +0 -3
- package/mobile/bundle/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
- package/mobile/bundle/utils/useDebouncedEffect.d.ts +0 -1
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -4
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js +0 -20
- package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
- package/mobile/dist/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
- package/mobile/dist/components/CarouselProductCard/alignTextStyle.js +0 -4
- package/mobile/dist/components/CarouselProductCard/alignTextStyle.js.map +0 -1
- package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +0 -4
- package/mobile/dist/components/Footer/buttonSizeStyles.js.map +0 -1
- package/mobile/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/mobile/dist/components/Footer/buttonStylesWithText.js +0 -9
- package/mobile/dist/components/Footer/buttonStylesWithText.js.map +0 -1
- package/mobile/dist/hooks/useBool.d.ts +0 -9
- package/mobile/dist/hooks/useBool.js +0 -12
- package/mobile/dist/hooks/useBool.js.map +0 -1
- package/mobile/dist/hooks/useList.d.ts +0 -10
- package/mobile/dist/hooks/useList.js +0 -13
- package/mobile/dist/hooks/useList.js.map +0 -1
- package/mobile/dist/hooks/useOutsideClick.d.ts +0 -3
- package/mobile/dist/hooks/useOutsideClick.js +0 -23
- package/mobile/dist/hooks/useOutsideClick.js.map +0 -1
- package/mobile/dist/services/search/jaroWinklerDistance.js.map +0 -1
- package/mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
- package/mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
- package/mobile/dist/utils/useDebouncedEffect.d.ts +0 -1
- package/mobile/dist/utils/useDebouncedEffect.js +0 -11
- package/mobile/dist/utils/useDebouncedEffect.js.map +0 -1
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -2
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js +0 -18
- package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
- package/mobile/lib/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
- package/mobile/lib/components/CarouselProductCard/alignTextStyle.js +0 -2
- package/mobile/lib/components/CarouselProductCard/alignTextStyle.js.map +0 -1
- package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +0 -4
- package/mobile/lib/components/Footer/buttonSizeStyles.js +0 -5
- package/mobile/lib/components/Footer/buttonSizeStyles.js.map +0 -1
- package/mobile/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
- package/mobile/lib/components/Footer/buttonStylesWithText.js +0 -6
- package/mobile/lib/components/Footer/buttonStylesWithText.js.map +0 -1
- package/mobile/lib/hooks/useBool.d.ts +0 -9
- package/mobile/lib/hooks/useBool.js +0 -9
- package/mobile/lib/hooks/useBool.js.map +0 -1
- package/mobile/lib/hooks/useList.d.ts +0 -10
- package/mobile/lib/hooks/useList.js +0 -10
- package/mobile/lib/hooks/useList.js.map +0 -1
- package/mobile/lib/hooks/useOutsideClick.d.ts +0 -3
- package/mobile/lib/hooks/useOutsideClick.js +0 -20
- package/mobile/lib/hooks/useOutsideClick.js.map +0 -1
- package/mobile/lib/services/search/jaroWinklerDistance.js.map +0 -1
- package/mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
- package/mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
- package/mobile/lib/utils/useDebouncedEffect.d.ts +0 -1
- package/mobile/lib/utils/useDebouncedEffect.js +0 -8
- package/mobile/lib/utils/useDebouncedEffect.js.map +0 -1
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +0 -1
- package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +0 -22
- package/mobile/src/components/CarouselProductCard/alignTextStyle.tsx +0 -1
- package/mobile/src/components/Footer/buttonStylesWithText.ts +0 -11
- package/mobile/src/hooks/useBool.ts +0 -19
- package/mobile/src/hooks/useList.ts +0 -24
- package/mobile/src/hooks/useOutsideClick.ts +0 -25
- package/mobile/src/utils/useDebouncedEffect.ts +0 -14
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.ts +0 -1
- package/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +0 -1
- package/src/components/CarouselCatalogCard/CatalogCard.ts +0 -22
- package/src/components/CarouselProductCard/alignTextStyle.mobile.tsx +0 -1
- package/src/components/CarouselProductCard/alignTextStyle.tsx +0 -1
- package/src/components/Footer/buttonStylesWithText.ts +0 -11
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +0 -45
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +0 -56
- package/src/hooks/useBool.ts +0 -19
- package/src/hooks/useList.ts +0 -24
- package/src/hooks/useOutsideClick.ts +0 -25
- package/src/utils/useDebouncedEffect.ts +0 -14
- /package/bundle/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
- /package/dist/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
- /package/dist/{services/search → utils}/jaroWinklerDistance.js +0 -0
- /package/lib/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
- /package/lib/{services/search → utils}/jaroWinklerDistance.js +0 -0
- /package/mobile/bundle/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
- /package/mobile/dist/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
- /package/mobile/dist/{services/search → utils}/jaroWinklerDistance.js +0 -0
- /package/mobile/lib/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
- /package/mobile/lib/{services/search → utils}/jaroWinklerDistance.js +0 -0
- /package/mobile/src/{services/search → utils}/jaroWinklerDistance.ts +0 -0
- /package/src/{services/search → utils}/jaroWinklerDistance.ts +0 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniBlocks = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
-
let _hooks;
|
|
8
|
-
const setupHooks = (_) => {
|
|
9
|
-
_hooks = _;
|
|
10
|
-
};
|
|
11
|
-
const lazyHook = (name) => (...args) => _hooks[name](...args);
|
|
12
|
-
const useState = lazyHook('useState');
|
|
13
|
-
const useEffect = lazyHook('useEffect');
|
|
14
|
-
const useCallback = lazyHook('useCallback');
|
|
15
|
-
const useMemo = lazyHook('useMemo');
|
|
7
|
+
let _hooks;
|
|
8
|
+
const setupHooks = (_) => {
|
|
9
|
+
_hooks = _;
|
|
10
|
+
};
|
|
11
|
+
const lazyHook = (name) => (...args) => _hooks[name](...args);
|
|
12
|
+
const useState = lazyHook('useState');
|
|
13
|
+
const useEffect = lazyHook('useEffect');
|
|
14
|
+
const useCallback = lazyHook('useCallback');
|
|
15
|
+
const useMemo = lazyHook('useMemo');
|
|
16
16
|
const useRef = lazyHook('useRef');
|
|
17
17
|
|
|
18
|
-
const setup = (_jsx, _jsxs) => {
|
|
19
|
-
globalThis._uni = {
|
|
20
|
-
_jsx,
|
|
21
|
-
_jsxs: _jsxs || _jsx
|
|
22
|
-
};
|
|
18
|
+
const setup = (_jsx, _jsxs) => {
|
|
19
|
+
globalThis._uni = {
|
|
20
|
+
_jsx,
|
|
21
|
+
_jsxs: _jsxs || _jsx
|
|
22
|
+
};
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const getGeolocation = async () => new Promise((resolve) => navigator.geolocation.getCurrentPosition(({ coords }) => resolve(coords)));
|
|
@@ -225,22 +225,22 @@
|
|
|
225
225
|
const jsx = (...args) => globalThis._uni._jsx(...args);
|
|
226
226
|
const jsxs = (...args) => globalThis._uni._jsxs(...args);
|
|
227
227
|
|
|
228
|
-
const JSX = (Component) => {
|
|
229
|
-
const Internal = Component;
|
|
230
|
-
if (!Internal._tmpl) {
|
|
231
|
-
Internal._tmpl = globalThis.__UNI_REACT__ ? Component : VueTmpl(Component);
|
|
232
|
-
}
|
|
233
|
-
return Internal._tmpl;
|
|
234
|
-
};
|
|
235
|
-
const VueTmpl = (Component) => {
|
|
236
|
-
function JSXTmpl(rawProps, context) {
|
|
237
|
-
const { children: rawChildren, ...props } = rawProps || {};
|
|
238
|
-
const defaultSlot = context?.slots?.default; // Vue
|
|
239
|
-
const children = rawChildren || (defaultSlot && defaultSlot());
|
|
240
|
-
return Component(Object.assign(props, children && { children }), context);
|
|
241
|
-
}
|
|
242
|
-
JSXTmpl.inheritAttrs = false;
|
|
243
|
-
return JSXTmpl;
|
|
228
|
+
const JSX = (Component) => {
|
|
229
|
+
const Internal = Component;
|
|
230
|
+
if (!Internal._tmpl) {
|
|
231
|
+
Internal._tmpl = globalThis.__UNI_REACT__ ? Component : VueTmpl(Component);
|
|
232
|
+
}
|
|
233
|
+
return Internal._tmpl;
|
|
234
|
+
};
|
|
235
|
+
const VueTmpl = (Component) => {
|
|
236
|
+
function JSXTmpl(rawProps, context) {
|
|
237
|
+
const { children: rawChildren, ...props } = rawProps || {};
|
|
238
|
+
const defaultSlot = context?.slots?.default; // Vue
|
|
239
|
+
const children = rawChildren || (defaultSlot && defaultSlot());
|
|
240
|
+
return Component(Object.assign(props, children && { children }), context);
|
|
241
|
+
}
|
|
242
|
+
JSXTmpl.inheritAttrs = false;
|
|
243
|
+
return JSXTmpl;
|
|
244
244
|
};
|
|
245
245
|
|
|
246
246
|
function CorporateLeadAPI() {
|
|
@@ -427,65 +427,69 @@
|
|
|
427
427
|
|
|
428
428
|
const isFilled = (_) => _ !== null && _ !== undefined;
|
|
429
429
|
|
|
430
|
-
const defaultCache = new Map();
|
|
431
|
-
const applyCache = (fetcher, cache = defaultCache) => (key) => {
|
|
432
|
-
const cachedData = cache.get(key);
|
|
433
|
-
if (isFilled(cachedData)) {
|
|
434
|
-
return cachedData;
|
|
435
|
-
}
|
|
436
|
-
const data = fetcher(key);
|
|
437
|
-
if (isFilled(data)) {
|
|
438
|
-
cache.set(key, Promise.resolve(data));
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
cache.delete(key);
|
|
442
|
-
}
|
|
443
|
-
return data;
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
const isSimpleKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
|
|
447
|
-
function useAsyncData(key, fetcher, { fallback, cache } = {}) {
|
|
448
|
-
const args = useMemo(() => keyToArgs(key), [key]);
|
|
449
|
-
const [simpleKey] = isSimpleKey(args) ? args : [];
|
|
450
|
-
const [data, setData] = useState(undefined);
|
|
451
|
-
const [error, setError] = useState(undefined);
|
|
452
|
-
useEffect(() => {
|
|
453
|
-
const isEmptyKey = !args.some(isFilled);
|
|
454
|
-
if (isEmptyKey) {
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
430
|
+
const defaultCache = new Map();
|
|
431
|
+
const applyCache = (fetcher, cache = defaultCache) => (key) => {
|
|
432
|
+
const cachedData = cache.get(key);
|
|
433
|
+
if (isFilled(cachedData)) {
|
|
434
|
+
return cachedData;
|
|
435
|
+
}
|
|
436
|
+
const data = fetcher(key);
|
|
437
|
+
if (isFilled(data)) {
|
|
438
|
+
cache.set(key, Promise.resolve(data));
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
cache.delete(key);
|
|
442
|
+
}
|
|
443
|
+
return data;
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
const isSimpleKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
|
|
447
|
+
function useAsyncData(key, fetcher, { fallback, cache } = {}) {
|
|
448
|
+
const args = useMemo(() => keyToArgs(key), [key]);
|
|
449
|
+
const [simpleKey] = isSimpleKey(args) ? args : [];
|
|
450
|
+
const [data, setData] = useState(undefined);
|
|
451
|
+
const [error, setError] = useState(undefined);
|
|
452
|
+
useEffect(() => {
|
|
453
|
+
const isEmptyKey = !args.some(isFilled);
|
|
454
|
+
if (isEmptyKey) {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
let canceled = false;
|
|
458
|
+
const setResult = (newData, err) => {
|
|
459
|
+
if (!canceled) {
|
|
460
|
+
setData(newData);
|
|
461
|
+
setError(err);
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
(async () => {
|
|
465
|
+
try {
|
|
466
|
+
setResult(await (simpleKey ? applyCache(fetcher, cache)(simpleKey) : fetcher(...args)));
|
|
467
|
+
}
|
|
468
|
+
catch (err) {
|
|
469
|
+
setResult(undefined, err);
|
|
470
|
+
}
|
|
471
|
+
})();
|
|
472
|
+
return () => {
|
|
473
|
+
canceled = true;
|
|
474
|
+
};
|
|
475
|
+
}, [fetcher, cache, args]);
|
|
476
|
+
const fallbackData = fallback && simpleKey && fallback[simpleKey];
|
|
477
|
+
return {
|
|
478
|
+
data: !data && fallbackData ? fallbackData : data,
|
|
479
|
+
error,
|
|
480
|
+
mutate: () => Promise.resolve(undefined) // TODO Clean up cache
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
function keyToArgs(key) {
|
|
484
|
+
if (Array.isArray(key)) {
|
|
485
|
+
return key;
|
|
486
|
+
}
|
|
487
|
+
else if (key instanceof Function) {
|
|
488
|
+
return keyToArgs(key());
|
|
489
|
+
}
|
|
490
|
+
else {
|
|
491
|
+
return [key];
|
|
492
|
+
}
|
|
489
493
|
}
|
|
490
494
|
|
|
491
495
|
async function fetchJSON(url, options) {
|
|
@@ -606,7 +610,7 @@
|
|
|
606
610
|
primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
|
|
607
611
|
secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
608
612
|
white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
|
|
609
|
-
link: '',
|
|
613
|
+
link: 'text-primary-main',
|
|
610
614
|
transparent: '',
|
|
611
615
|
gray: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
|
|
612
616
|
'': '',
|
|
@@ -626,7 +630,7 @@
|
|
|
626
630
|
primary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
627
631
|
secondary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
628
632
|
white: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
629
|
-
link: '',
|
|
633
|
+
link: 'text-primary-main',
|
|
630
634
|
transparent: '',
|
|
631
635
|
gray: 'group-hover/btn:brightness-0 group-hover/btn:invert',
|
|
632
636
|
'': '',
|
|
@@ -731,7 +735,7 @@
|
|
|
731
735
|
const innValidator = validator((_) => typeof _ === 'string' && (_.length === 10 || _.length === 12))(ERROR_MESSAGE);
|
|
732
736
|
const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
|
|
733
737
|
|
|
734
|
-
const renderAcquiringDataOrganization = (field) => (jsxs("div", { className: "
|
|
738
|
+
const renderAcquiringDataOrganization = (field) => (jsxs("div", { className: "@xl:flex @xl:justify-between @xl:gap-lg", children: [jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] })] }));
|
|
735
739
|
|
|
736
740
|
const ACQUIRING_TYPES = [
|
|
737
741
|
{
|
|
@@ -751,33 +755,73 @@
|
|
|
751
755
|
},
|
|
752
756
|
];
|
|
753
757
|
|
|
754
|
-
function useBool(defaultValue = false) {
|
|
755
|
-
const [value, setValue] = useState(defaultValue);
|
|
756
|
-
const setTrue = useCallback(() => setValue(true), []);
|
|
757
|
-
const setFalse = useCallback(() => setValue(false), []);
|
|
758
|
-
const toggle = useCallback(() => setValue(
|
|
759
|
-
return [value, { setValue, setTrue, setFalse, toggle }];
|
|
758
|
+
function useBool(defaultValue = false) {
|
|
759
|
+
const [value, setValue] = useState(defaultValue);
|
|
760
|
+
const setTrue = useCallback(() => setValue(true), []);
|
|
761
|
+
const setFalse = useCallback(() => setValue(false), []);
|
|
762
|
+
const toggle = useCallback(() => setValue(_ => !_), []);
|
|
763
|
+
return [value, { setValue, setTrue, setFalse, toggle }];
|
|
760
764
|
}
|
|
761
765
|
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
return ()
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
766
|
+
const isOnlyDigits = (str) => str && !/\D/.test(str);
|
|
767
|
+
|
|
768
|
+
const svgUseStyleMap = {
|
|
769
|
+
normal: '',
|
|
770
|
+
color: 'text-primary-main',
|
|
771
|
+
black: 'text-black',
|
|
772
|
+
white: 'text-black',
|
|
773
|
+
};
|
|
774
|
+
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', width, height, }) => {
|
|
775
|
+
const router = useRouter();
|
|
776
|
+
const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
|
|
777
|
+
if (iconVersion !== 'normal') {
|
|
778
|
+
return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), width: width, height: height, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
|
|
779
|
+
}
|
|
780
|
+
return (jsx("img", { className: className, src: href, alt: alt, title: title, "aria-hidden": "true", width: width, height: height, style: getInlineStyle(className, height) }));
|
|
781
|
+
});
|
|
782
|
+
const getInlineStyle = (className, height) => {
|
|
783
|
+
if (className?.includes('h-')) {
|
|
784
|
+
return {};
|
|
785
|
+
}
|
|
786
|
+
return { height: isOnlyDigits(height) ? `${height}px` : height };
|
|
787
|
+
};
|
|
788
|
+
const getSvgSize = (width) => (width ? '' : 'w-full h-full');
|
|
789
|
+
const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
|
|
790
|
+
|
|
791
|
+
const formatOption = (_) => _?.text || _?.key || '';
|
|
792
|
+
|
|
793
|
+
function useEventListener(target, type, listener, options) {
|
|
794
|
+
useEffect(() => {
|
|
795
|
+
if (!target || !listener) {
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
798
|
+
target.addEventListener(type, listener, options);
|
|
799
|
+
return () => {
|
|
800
|
+
target.removeEventListener(type, listener, options);
|
|
801
|
+
};
|
|
802
|
+
}, [target, type, listener]);
|
|
779
803
|
}
|
|
780
804
|
|
|
805
|
+
function useOutsideClick(onClick) {
|
|
806
|
+
const targetRef = useRef(null);
|
|
807
|
+
const handleClickOutside = useCallback((event) => {
|
|
808
|
+
if (targetRef && targetRef.current && event.target instanceof Node && !targetRef.current.contains(event.target)) {
|
|
809
|
+
onClick();
|
|
810
|
+
}
|
|
811
|
+
}, [onClick]);
|
|
812
|
+
useEventListener(globalThis.document, 'click', handleClickOutside);
|
|
813
|
+
return targetRef;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
const usePopupManager = () => ({
|
|
817
|
+
open: (popup, options) => defaultEventBus.fire('popup', { type: 'open', popup, ...options }),
|
|
818
|
+
update: (popup, options) => defaultEventBus.fire('popup', { type: 'update', popup, ...options }),
|
|
819
|
+
close: () => defaultEventBus.fire('popup', { type: 'close' }),
|
|
820
|
+
});
|
|
821
|
+
|
|
822
|
+
const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
|
|
823
|
+
const desc = (cmp) => (a, b) => -cmp(a, b);
|
|
824
|
+
|
|
781
825
|
const JARO_WINKLER_P = 0.1;
|
|
782
826
|
const JARO_WINKLER_MAX_L = 4;
|
|
783
827
|
const jaroWinklerDistance = (s1) => (s2) => {
|
|
@@ -842,62 +886,76 @@
|
|
|
842
886
|
return prefixL;
|
|
843
887
|
}
|
|
844
888
|
|
|
845
|
-
|
|
889
|
+
function zip(firstCol, ...restCols) {
|
|
890
|
+
return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
|
|
891
|
+
}
|
|
846
892
|
|
|
847
|
-
const
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
black: 'text-black',
|
|
851
|
-
white: 'text-black',
|
|
852
|
-
};
|
|
853
|
-
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', width, height, }) => {
|
|
854
|
-
const router = useRouter();
|
|
855
|
-
const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
|
|
856
|
-
if (iconVersion !== 'normal') {
|
|
857
|
-
return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), width: width, height: height, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
|
|
893
|
+
const filterOptions = (options, query) => {
|
|
894
|
+
if (!options?.length || !query?.trim()) {
|
|
895
|
+
return options;
|
|
858
896
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
897
|
+
const ranking = options
|
|
898
|
+
.map((_) => _.text?.toLowerCase())
|
|
899
|
+
.map(jaroWinklerDistance(query?.trim().toLowerCase()));
|
|
900
|
+
return zip(options, ranking)
|
|
901
|
+
.filter(([, rank]) => rank >= 0.5)
|
|
902
|
+
.sort(desc(compareBy(([, rank]) => rank)))
|
|
903
|
+
.map(([option]) => option);
|
|
866
904
|
};
|
|
867
|
-
const getSvgSize = (width) => (width ? '' : 'w-full h-full');
|
|
868
|
-
const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
|
|
869
905
|
|
|
870
|
-
const
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
const
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
906
|
+
const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: () => onChange && onChange(option), children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
|
|
907
|
+
|
|
908
|
+
function useSelectPopup({ isOpen, options, value, query, onChange, onClose, }) {
|
|
909
|
+
const popup = usePopupManager();
|
|
910
|
+
const close = useCallback(() => {
|
|
911
|
+
popup.close();
|
|
912
|
+
onClose && onClose();
|
|
913
|
+
}, [onClose]);
|
|
878
914
|
const handleChange = useCallback((option) => {
|
|
879
|
-
|
|
915
|
+
close();
|
|
880
916
|
onChange && onChange(option);
|
|
881
|
-
}, [onChange]);
|
|
882
|
-
const
|
|
883
|
-
|
|
917
|
+
}, [close, onChange]);
|
|
918
|
+
const inputRef = useRef(null);
|
|
919
|
+
const popupRef = useOutsideClick(close);
|
|
920
|
+
useEffect(() => {
|
|
921
|
+
if (!isOpen || !inputRef.current) {
|
|
922
|
+
return;
|
|
923
|
+
}
|
|
924
|
+
const inputElement = inputRef.current;
|
|
925
|
+
const { top, left, width, height } = inputElement.getBoundingClientRect();
|
|
926
|
+
popup.update(jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange }), {
|
|
927
|
+
top: top + window.scrollY + height,
|
|
928
|
+
left,
|
|
929
|
+
width,
|
|
930
|
+
});
|
|
931
|
+
}, [isOpen, options, value, query, handleChange]);
|
|
932
|
+
return inputRef;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
const Select = JSX(({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, onChange, }) => {
|
|
936
|
+
const [isOpen, { setFalse: close, setTrue: open }] = useBool();
|
|
937
|
+
const [query, setQuery] = useState('');
|
|
938
|
+
const handleClose = useCallback(() => {
|
|
939
|
+
setQuery('');
|
|
940
|
+
close();
|
|
941
|
+
}, []);
|
|
942
|
+
const inputRef = useSelectPopup({
|
|
943
|
+
isOpen,
|
|
944
|
+
options,
|
|
945
|
+
value,
|
|
946
|
+
query,
|
|
947
|
+
onChange,
|
|
948
|
+
onClose: handleClose,
|
|
949
|
+
});
|
|
950
|
+
return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
|
|
884
951
|
});
|
|
885
952
|
const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
|
|
886
|
-
const
|
|
887
|
-
return searchValue
|
|
888
|
-
? options.filter((_) => jaroWinklerDistance(_.text?.toLowerCase())(searchValue.toLowerCase()) >= 0.6)
|
|
889
|
-
: options;
|
|
890
|
-
};
|
|
891
|
-
const renderSearch = (isOpen, searchValue, setSearchValue) => isOpen ? (jsx("div", { className: style('absolute top-0 w-full h-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: searchValue, onChange: setSearchValue }) })) : null;
|
|
892
|
-
const renderOption = (handleChange, isOpen, isSelected) => (option, i) => (jsxs("div", { onClick: () => {
|
|
893
|
-
handleChange(option);
|
|
894
|
-
}, className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', isSelected(option) && isOpen ? '' : 'hidden') })] }, String(i)));
|
|
895
|
-
const formatOption = (_) => _?.text || _?.key || '';
|
|
953
|
+
const renderIcon$1 = (isOpen) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), name: "ArrowUpIcon", width: "16", height: "16" }));
|
|
896
954
|
const getBorderStyle = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
|
|
897
955
|
|
|
898
956
|
const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
|
|
899
957
|
|
|
900
|
-
const renderAcquiringRegion = ({ regions, field }) => (jsxs("div", { className: "border-b border-b-main-divider
|
|
958
|
+
const renderAcquiringRegion = ({ regions, field }) => (jsxs("div", { className: "border-b border-b-main-divider @xl:border-none @xl:flex @xl:justify-between gap-lg ", children: [jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { 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", options: ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), defaultValidator) }) }), jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) })] }));
|
|
901
959
|
|
|
902
960
|
const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })] })));
|
|
903
961
|
|
|
@@ -908,7 +966,7 @@
|
|
|
908
966
|
className: 'text-white',
|
|
909
967
|
version: button?.version,
|
|
910
968
|
});
|
|
911
|
-
return (jsx("button", { type: "submit", className: style('p-m w-full
|
|
969
|
+
return (jsx("button", { type: "submit", className: style('p-m w-full @xl:w-auto', buttonStyle, className), children: button?.text ? button.text : 'Отправить заявку' }));
|
|
912
970
|
};
|
|
913
971
|
|
|
914
972
|
const initialFormState$4 = {
|
|
@@ -945,10 +1003,10 @@
|
|
|
945
1003
|
}, [onSubmit]);
|
|
946
1004
|
const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
|
|
947
1005
|
const regions = useGetRegions();
|
|
948
|
-
return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, 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: "
|
|
1006
|
+
return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, 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: "@xl:text-center" }), renderAcquiringRegion({ regions, field }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderAcquiringDataOrganization(field), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
949
1007
|
});
|
|
950
1008
|
|
|
951
|
-
const renderBusinessCardDataOrganization = (field) => (jsxs("div", { className: "
|
|
1009
|
+
const renderBusinessCardDataOrganization = (field) => (jsxs("div", { className: "@xl:flex @xl:justify-between @xl:gap-lg", children: [jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
|
|
952
1010
|
|
|
953
1011
|
const renderRegion$1 = ({ regions, field }) => (jsx(SelectControl, { className: "w-full", label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
|
|
954
1012
|
|
|
@@ -1002,7 +1060,7 @@
|
|
|
1002
1060
|
const MAX_CREDIT_TERM = 180;
|
|
1003
1061
|
const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
|
|
1004
1062
|
|
|
1005
|
-
const renderCreditDataOrganization = (field) => (jsxs("div", { className: "pb-2xs border-b border-b-main-divider
|
|
1063
|
+
const renderCreditDataOrganization = (field) => (jsxs("div", { className: "pb-2xs border-b border-b-main-divider @xl:flex @xl:justify-between @xl:gap-lg @xl:border-none @xl:pb-0", children: [jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...withValidator(field('annualRevenue'), defaultValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...field('mail') })] })] }));
|
|
1006
1064
|
|
|
1007
1065
|
const useNormalizedInput = (props, { normalize, format }) => {
|
|
1008
1066
|
const { value, onFocus, onBlur, onChange } = props;
|
|
@@ -1066,9 +1124,9 @@
|
|
|
1066
1124
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
1067
1125
|
const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
1068
1126
|
|
|
1069
|
-
const renderCreditParameters = (field) => (jsxs("div", { className: "border-b border-b-main-divider
|
|
1127
|
+
const renderCreditParameters = (field) => (jsxs("div", { className: "border-b border-b-main-divider @xl:border-none @xl:flex @xl:justify-between gap-lg", children: [jsxs("div", { className: "@xl:w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0443\u043C\u043C\u0430, \u20BD" }) }), jsx(InputRange, { items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })] }), jsxs("div", { className: "@xl:w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432" }) }), jsx(InputRange, { items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') })] })] }));
|
|
1070
1128
|
|
|
1071
|
-
const renderRegionDepartment = ({ regions, branches, field }) => (jsxs("div", { className: "
|
|
1129
|
+
const renderRegionDepartment = ({ regions, branches, field }) => (jsxs("div", { className: "@xl:flex @xl:justify-between @xl:gap-lg @xl:mb-2xl @xl:border-none @xl:pb-0", children: [jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }), jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
|
|
1072
1130
|
key: branchCode,
|
|
1073
1131
|
text: address,
|
|
1074
1132
|
})), ...withValidator(field('department'), defaultValidator) }) })] }));
|
|
@@ -1111,7 +1169,7 @@
|
|
|
1111
1169
|
const [formState, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
|
|
1112
1170
|
const regions = useGetRegions();
|
|
1113
1171
|
const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
|
|
1114
|
-
return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B", className: "
|
|
1172
|
+
return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B", className: "@xl:text-center" }), renderCreditParameters(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderCreditDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "@xl:text-center" }), renderRegionDepartment({ regions, branches, field }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
|
|
1115
1173
|
});
|
|
1116
1174
|
|
|
1117
1175
|
const initialFormState$1 = {
|
|
@@ -1134,7 +1192,7 @@
|
|
|
1134
1192
|
});
|
|
1135
1193
|
}, [onSubmit]);
|
|
1136
1194
|
const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
|
|
1137
|
-
return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, 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: "
|
|
1195
|
+
return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, 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: "@xl:text-center mb-m" }), jsxs("div", { className: "max-w-[560px] m-auto space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse @xl:items-center @xl:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
|
|
1138
1196
|
});
|
|
1139
1197
|
|
|
1140
1198
|
const EMPTY_VALUE$1 = {};
|
|
@@ -1157,7 +1215,7 @@
|
|
|
1157
1215
|
version: button?.version,
|
|
1158
1216
|
});
|
|
1159
1217
|
const regionHref = regions?.find((_) => _.name === region.key)?.href;
|
|
1160
|
-
return (jsxs("div", { className: "container space-y-s
|
|
1218
|
+
return (jsxs("div", { className: "container space-y-s @xl:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions.map(({ name = '' }) => ({ key: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
|
|
1161
1219
|
});
|
|
1162
1220
|
|
|
1163
1221
|
const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
|
|
@@ -1188,70 +1246,73 @@
|
|
|
1188
1246
|
|
|
1189
1247
|
const renderContacts = () => (jsxs("div", { className: "flex gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] }));
|
|
1190
1248
|
|
|
1191
|
-
const
|
|
1192
|
-
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
1193
|
-
});
|
|
1194
|
-
|
|
1195
|
-
const CHECK_PATHS = [
|
|
1196
|
-
{
|
|
1197
|
-
d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
|
|
1198
|
-
fillRule: 'evenodd',
|
|
1199
|
-
clipRule: 'evenodd',
|
|
1200
|
-
fill: 'white',
|
|
1201
|
-
},
|
|
1202
|
-
];
|
|
1203
|
-
const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
|
|
1204
|
-
const handleChange = useCallback((e) => {
|
|
1205
|
-
if (disabled) {
|
|
1206
|
-
return;
|
|
1207
|
-
}
|
|
1208
|
-
e.preventDefault();
|
|
1209
|
-
onChange && onChange(!value);
|
|
1210
|
-
}, [onChange, disabled, value]);
|
|
1211
|
-
const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
|
|
1212
|
-
return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
|
|
1213
|
-
});
|
|
1214
|
-
const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
|
|
1249
|
+
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange(_.target.value) }), text ? jsx("span", { className: "text-primary-text cursor-pointer", children: text }) : null] }) })));
|
|
1215
1250
|
|
|
1216
1251
|
const renderQuestionsInterested = (field) => {
|
|
1217
|
-
const
|
|
1218
|
-
return (
|
|
1252
|
+
const { value, onChange } = field('vedTypes');
|
|
1253
|
+
return (jsx("div", { className: "space-y-m", children: jsxs("div", { className: "@xl:flex @xl:items-center @xl:gap-xl", children: [jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: (_) => onChange && onChange(_) })] }) }));
|
|
1219
1254
|
};
|
|
1220
1255
|
|
|
1221
|
-
const renderWedDataOrganization = (field
|
|
1256
|
+
const renderWedDataOrganization = (field, regions) => {
|
|
1257
|
+
const isCurrencyControl = field('vedTypes').value === 'currencyControl';
|
|
1258
|
+
return (jsxs("div", { children: [regions.length && isCurrencyControl ? (jsx(SelectControl, { className: "mb-s", label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) })) : null, jsxs("div", { className: "@xl:grid @xl:grid-cols-2 @xl:gap-x-lg", children: [isCurrencyControl ? (jsx(InputControl, { className: "w-full mb-s", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })) : null, jsx(InputControl, { className: "w-full mb-s", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { className: "w-full mb-s", label: "\u0424\u0418\u041E", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "w-full mb-s", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), !isCurrencyControl ? (jsx(InputControl, { className: "w-full mb-s", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })) : null] })] }));
|
|
1259
|
+
};
|
|
1260
|
+
|
|
1261
|
+
const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
|
|
1262
|
+
const renderWedTextarea = (field) => {
|
|
1263
|
+
const textField = field('text');
|
|
1264
|
+
return (jsxs("label", { children: [jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: "\u041E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435" }) }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\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: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }));
|
|
1265
|
+
};
|
|
1222
1266
|
|
|
1223
1267
|
const initialFormState = {
|
|
1224
1268
|
fullName: '',
|
|
1225
1269
|
name: '',
|
|
1226
1270
|
phone: '',
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
documentaryOperations: false,
|
|
1230
|
-
conversionOperations: false,
|
|
1271
|
+
inn: '',
|
|
1272
|
+
vedTypes: 'currencyControl',
|
|
1231
1273
|
text: '',
|
|
1232
1274
|
};
|
|
1233
|
-
const
|
|
1275
|
+
const defaultValidators = {
|
|
1234
1276
|
fullName: defaultValidator,
|
|
1235
1277
|
name: nameValidator,
|
|
1236
1278
|
phone: phoneValidator,
|
|
1279
|
+
};
|
|
1280
|
+
const wedValidator = objectValidator({
|
|
1281
|
+
...defaultValidators,
|
|
1237
1282
|
mail: defaultValidator,
|
|
1238
1283
|
});
|
|
1284
|
+
const wedValidatorCurrencyControl = objectValidator({
|
|
1285
|
+
...defaultValidators,
|
|
1286
|
+
inn: innValidator,
|
|
1287
|
+
region: defaultValidator,
|
|
1288
|
+
});
|
|
1289
|
+
const isCurrencyControl = (vedTypes) => vedTypes === 'currencyControl';
|
|
1290
|
+
const getValidator = (vedTypes) => isCurrencyControl(vedTypes) ? wedValidatorCurrencyControl : wedValidator;
|
|
1291
|
+
const getVedTypes = (vedTypes) => ({
|
|
1292
|
+
currencyControl: vedTypes === 'currencyControl',
|
|
1293
|
+
documentOperations: vedTypes === 'documentOperations',
|
|
1294
|
+
conversionTransactions: vedTypes === 'conversionTransactions',
|
|
1295
|
+
otherIssues: vedTypes === 'otherIssues',
|
|
1296
|
+
});
|
|
1239
1297
|
const ApplicationFormWed = JSX((props) => {
|
|
1240
1298
|
const { button, link, onSubmit } = props;
|
|
1241
1299
|
const handleSubmit = useCallback((formState) => {
|
|
1242
|
-
const { fullName, name, phone, mail,
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
})
|
|
1300
|
+
const { fullName, name, phone, mail, inn, region, vedTypes, text } = formState;
|
|
1301
|
+
const data = {
|
|
1302
|
+
typeForm: 'KVED',
|
|
1303
|
+
fullName,
|
|
1304
|
+
name,
|
|
1305
|
+
phone,
|
|
1306
|
+
text,
|
|
1307
|
+
vedTypes: getVedTypes(vedTypes),
|
|
1308
|
+
PartnerComments: text,
|
|
1309
|
+
...(!isCurrencyControl(vedTypes) ? { mail } : { inn, region: region?.text || '' }),
|
|
1310
|
+
};
|
|
1311
|
+
isValidationSuccess(getValidator(vedTypes)(formState)) && onSubmit(data);
|
|
1252
1312
|
}, [onSubmit]);
|
|
1253
1313
|
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
1254
|
-
|
|
1314
|
+
const regions = useGetRegions();
|
|
1315
|
+
return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [renderQuestionsInterested(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderWedDataOrganization(field, regions), renderWedTextarea(field), jsxs("div", { className: "flex flex-col gap-m border-b border-main-divider pb-lg @xl:items-center @xl:flex-row @xl:pb-4xl", children: [renderSubmitButton(button), jsx(Footnote, { link: link })] }), jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), renderContacts()] }));
|
|
1255
1316
|
});
|
|
1256
1317
|
|
|
1257
1318
|
const EmbeddableForms = {
|
|
@@ -1272,18 +1333,13 @@
|
|
|
1272
1333
|
const API = CorporateLeadAPI();
|
|
1273
1334
|
const ApplicationForm = JSX((props) => {
|
|
1274
1335
|
const { className, formBlock, ...rest } = props;
|
|
1275
|
-
// const type = formBlock?.formType;
|
|
1276
|
-
// if (!type || !(type in EmbeddableForms)) {
|
|
1277
|
-
// return null;
|
|
1278
|
-
// }
|
|
1279
|
-
// const EmbeddedForm = EmbeddableForms[type];
|
|
1280
1336
|
const [responseType, setResponseType] = useState('');
|
|
1281
1337
|
const handleSubmit = useCallback(async (data) => {
|
|
1282
1338
|
const status = (await API.send(data)) ? 'OK' : 'Fail';
|
|
1283
1339
|
setResponseType(status);
|
|
1284
1340
|
return status;
|
|
1285
1341
|
}, []);
|
|
1286
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-lg", children: [formBlock?.title ? (jsx(Heading, { headingType: "h3", title: formBlock.title, className: "
|
|
1342
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-lg", children: [formBlock?.title ? (jsx(Heading, { headingType: "h3", title: formBlock.title, className: "@xl:text-center" })) : null, formBlock ? renderEmbeddedForm(formBlock, handleSubmit) : null, responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
|
|
1287
1343
|
});
|
|
1288
1344
|
const renderEmbeddedForm = (formBlock, handleSubmit) => {
|
|
1289
1345
|
const type = formBlock?.formType;
|
|
@@ -1327,11 +1383,15 @@
|
|
|
1327
1383
|
const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
1328
1384
|
const renderButton = (buttonClassName = '') => (button, index) => {
|
|
1329
1385
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
1330
|
-
const
|
|
1331
|
-
const
|
|
1332
|
-
return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1386
|
+
const iconVersion = getIconVersion(icon, version);
|
|
1387
|
+
const iconRightVersion = getIconVersion(iconRight, version);
|
|
1388
|
+
return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1333
1389
|
};
|
|
1334
1390
|
const DEFAULT_ICON_W = 24;
|
|
1391
|
+
const getIconVersion = (icon, version = 'secondary') => {
|
|
1392
|
+
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
1393
|
+
return icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
|
|
1394
|
+
};
|
|
1335
1395
|
const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
|
|
1336
1396
|
|
|
1337
1397
|
const headlineVersionStyles = {
|
|
@@ -1390,8 +1450,10 @@
|
|
|
1390
1450
|
return (jsxs(BlockWrapper, { className: style(isEmbedded ? '@container-normal' : '', className), defaultPadding: isEmbedded ? '' : 'p-6xl', version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { size: versionStyle.descriptionSize, font: versionStyle.descriptionWeight, align: align, ...descriptionStyle, children: description })) : null] }));
|
|
1391
1451
|
});
|
|
1392
1452
|
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1453
|
+
const AlignStyles = 'text-center';
|
|
1454
|
+
|
|
1455
|
+
const Bonus = JSX(({ className = '', title, description, bonusItems = [], align = AlignStyles, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M", align: align }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
|
|
1456
|
+
? bonusItems.map((_, i) => (jsxs("div", { className: "mb-3xl last:mb-0 sm:space-y-xs flex flex-col grow w-full p-4xl sm:p-m @xl:w-[49%] border border-gray", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
|
|
1395
1457
|
? renderBonusItemContent(_.bonusItemContent)
|
|
1396
1458
|
: null] })] }, String(i))))
|
|
1397
1459
|
: null })] }) })));
|
|
@@ -1400,7 +1462,7 @@
|
|
|
1400
1462
|
: renderBonusImage(bonusItemContent);
|
|
1401
1463
|
const renderBonusCount = (_) => (jsxs("div", { className: "w-full pt-default mt-s flex justify-center sm:justify-end items-end", children: [_.bonusCount ? (
|
|
1402
1464
|
// -mb-10 добавлен для выравнивания bonusCount относительно bonusName, тк шрифт font-mohave неправильно высчитывает line-height
|
|
1403
|
-
jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
|
|
1465
|
+
jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
|
|
1404
1466
|
const renderBonusImage = (_) => _.image ? jsx(Img, { className: "min-w-12 p-xs rounded-icon shrink-0", image: _.image }) : null;
|
|
1405
1467
|
|
|
1406
1468
|
/**
|
|
@@ -1412,11 +1474,9 @@
|
|
|
1412
1474
|
right: 'text-right',
|
|
1413
1475
|
};
|
|
1414
1476
|
|
|
1415
|
-
const bonusBenefitAlign = 'text-center';
|
|
1416
|
-
|
|
1417
1477
|
const bonusBenefitStyles = 'items-center';
|
|
1418
1478
|
|
|
1419
|
-
const renderBonusBenefit = ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align:
|
|
1479
|
+
const renderBonusBenefit = ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align: AlignStyles, children: title })) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? (jsx(Text, { size: "text-h6", font: "font-normal", align: AlignStyles, children: description })) : null] }, String(i)));
|
|
1420
1480
|
|
|
1421
1481
|
const renderBonusBenefits = (bonusBenefits, columnsCount, cardTextAlign) => (jsx("div", { className: `grid gap-2xs ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) }));
|
|
1422
1482
|
const getElementsColsValue = (colValue) => {
|
|
@@ -1432,7 +1492,7 @@
|
|
|
1432
1492
|
}
|
|
1433
1493
|
};
|
|
1434
1494
|
|
|
1435
|
-
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, {
|
|
1495
|
+
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
|
|
1436
1496
|
? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
|
|
1437
1497
|
: null] })));
|
|
1438
1498
|
|
|
@@ -1504,11 +1564,11 @@
|
|
|
1504
1564
|
const REFINANCING_EXTRA_MIN_SUM = 0;
|
|
1505
1565
|
const REFINANCING_EXTRA_MAX_SUM = 500000;
|
|
1506
1566
|
const DEPOSIT_DEFAULT_SUM = 20000;
|
|
1507
|
-
const DEFAULT_MIN_MONTHS
|
|
1567
|
+
const DEFAULT_MIN_MONTHS = 13;
|
|
1508
1568
|
const DEFAULT_REFINANCING_MIN_MONTHS = 13;
|
|
1509
1569
|
const DEFAULT_REFINANCING_MONTHS = 48;
|
|
1510
|
-
const DEFAULT_MAX_MONTHS
|
|
1511
|
-
const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS
|
|
1570
|
+
const DEFAULT_MAX_MONTHS = 60;
|
|
1571
|
+
const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS - DEFAULT_MIN_MONTHS) / 2);
|
|
1512
1572
|
const BUSINESS_DEFAULT_SUM = 100000;
|
|
1513
1573
|
const BUSINESS_MIN_DAYS = 1;
|
|
1514
1574
|
const BUSINESS_MAX_DAYS = 1095;
|
|
@@ -1521,8 +1581,8 @@
|
|
|
1521
1581
|
const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
1522
1582
|
minSum: DEFAULT_MIN_SUM$1,
|
|
1523
1583
|
maxSum: DEFAULT_MAX_SUM$1,
|
|
1524
|
-
minMonths: DEFAULT_MIN_MONTHS
|
|
1525
|
-
maxMonths: DEFAULT_MAX_MONTHS
|
|
1584
|
+
minMonths: DEFAULT_MIN_MONTHS,
|
|
1585
|
+
maxMonths: DEFAULT_MAX_MONTHS,
|
|
1526
1586
|
rate: 0,
|
|
1527
1587
|
isSalaryClient: false,
|
|
1528
1588
|
isPensionClient: false,
|
|
@@ -1537,7 +1597,7 @@
|
|
|
1537
1597
|
minSumExtra: REFINANCING_EXTRA_MIN_SUM,
|
|
1538
1598
|
maxSumExtra: REFINANCING_EXTRA_MAX_SUM,
|
|
1539
1599
|
minMonths: DEFAULT_REFINANCING_MIN_MONTHS,
|
|
1540
|
-
maxMonths: DEFAULT_MAX_MONTHS
|
|
1600
|
+
maxMonths: DEFAULT_MAX_MONTHS,
|
|
1541
1601
|
rate: 0,
|
|
1542
1602
|
isExtraMoney: false,
|
|
1543
1603
|
isSalaryClient: false,
|
|
@@ -1633,7 +1693,7 @@
|
|
|
1633
1693
|
restExpenseValue: DEFAULT_REST_MIN_SUM,
|
|
1634
1694
|
});
|
|
1635
1695
|
const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } = useBonusCalculatorParams(userInputParams, sourceBookDir);
|
|
1636
|
-
return (jsxs("section", { className: style('flex flex-col justify-between
|
|
1696
|
+
return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
|
|
1637
1697
|
title: 'Сумма покупок в категории путешествия, ₽',
|
|
1638
1698
|
min: minSumTravel,
|
|
1639
1699
|
max: maxSumTravel,
|
|
@@ -1650,6 +1710,31 @@
|
|
|
1650
1710
|
})] }), monthBonus >= 0 ? (jsx(Rate, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u043C\u0435\u0441\u044F\u0446", rate: monthBonus, rateBlockClassName: "tracking-[-14px]", fractionDigits: 0 })) : null, jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
|
|
1651
1711
|
});
|
|
1652
1712
|
|
|
1713
|
+
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
1714
|
+
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
1715
|
+
});
|
|
1716
|
+
|
|
1717
|
+
const CHECK_PATHS = [
|
|
1718
|
+
{
|
|
1719
|
+
d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
|
|
1720
|
+
fillRule: 'evenodd',
|
|
1721
|
+
clipRule: 'evenodd',
|
|
1722
|
+
fill: 'white',
|
|
1723
|
+
},
|
|
1724
|
+
];
|
|
1725
|
+
const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
|
|
1726
|
+
const handleChange = useCallback((e) => {
|
|
1727
|
+
if (disabled) {
|
|
1728
|
+
return;
|
|
1729
|
+
}
|
|
1730
|
+
e.preventDefault();
|
|
1731
|
+
onChange && onChange(!value);
|
|
1732
|
+
}, [onChange, disabled, value]);
|
|
1733
|
+
const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
|
|
1734
|
+
return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
|
|
1735
|
+
});
|
|
1736
|
+
const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
|
|
1737
|
+
|
|
1653
1738
|
const STEP_DAYS = 1;
|
|
1654
1739
|
const renderDaysInput = (props) => (jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
|
|
1655
1740
|
const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
|
|
@@ -1782,7 +1867,7 @@
|
|
|
1782
1867
|
});
|
|
1783
1868
|
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
|
|
1784
1869
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
1785
|
-
return (jsxs("section", { className: style('flex flex-col justify-between
|
|
1870
|
+
return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
|
|
1786
1871
|
title: 'Сумма, ₽',
|
|
1787
1872
|
min: calculatorParams.minSum,
|
|
1788
1873
|
max: calculatorParams.maxSum,
|
|
@@ -1934,7 +2019,7 @@
|
|
|
1934
2019
|
orientation: 'vertical',
|
|
1935
2020
|
...field('isAnnuity'),
|
|
1936
2021
|
});
|
|
1937
|
-
return (jsxs("section", { className: style('flex flex-col justify-between
|
|
2022
|
+
return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
|
|
1938
2023
|
title: 'Сумма кредита, ₽',
|
|
1939
2024
|
step: 500,
|
|
1940
2025
|
min: calculatorParams.minSum,
|
|
@@ -2028,7 +2113,7 @@
|
|
|
2028
2113
|
useEffect(() => {
|
|
2029
2114
|
setMonthsValue && setMonthsValue(defaultMonth);
|
|
2030
2115
|
}, [defaultMonth]);
|
|
2031
|
-
return (jsxs("section", { className: style('flex flex-col justify-between
|
|
2116
|
+
return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
|
|
2032
2117
|
title: 'Сумма, ₽',
|
|
2033
2118
|
min: calculatorParams.minSum,
|
|
2034
2119
|
max: calculatorParams.maxSum,
|
|
@@ -2101,7 +2186,6 @@
|
|
|
2101
2186
|
paramsViewSettings,
|
|
2102
2187
|
});
|
|
2103
2188
|
const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], sourceBookLimitParams, rateRows);
|
|
2104
|
-
const { minSumOld, maxSumOld } = getLimitRangeByKeys(['minSumOld', 'maxSumOld'], sourceBookLimitParams, rateRows);
|
|
2105
2189
|
const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], sourceBookLimitParams, rateRows);
|
|
2106
2190
|
const refinancingCalculatorSourceBookRateParams = getRefinancingCalculatorRateParams({
|
|
2107
2191
|
rateRows,
|
|
@@ -2120,8 +2204,6 @@
|
|
|
2120
2204
|
...userInputParams,
|
|
2121
2205
|
minSum,
|
|
2122
2206
|
maxSum,
|
|
2123
|
-
minSumOld,
|
|
2124
|
-
maxSumOld,
|
|
2125
2207
|
minMonths,
|
|
2126
2208
|
maxMonths,
|
|
2127
2209
|
moneyValue,
|
|
@@ -2145,7 +2227,7 @@
|
|
|
2145
2227
|
moneyExtra: REFINANCING_OLD_DEFAULT_SUM,
|
|
2146
2228
|
});
|
|
2147
2229
|
const calculatorParams = useRefinancingCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
|
|
2148
|
-
return (jsxs("section", { className: style('flex flex-col justify-between
|
|
2230
|
+
return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
|
|
2149
2231
|
title: 'Остаток долга в других банках, ₽ ',
|
|
2150
2232
|
step: 500,
|
|
2151
2233
|
min: calculatorParams.minSum,
|
|
@@ -2275,7 +2357,7 @@
|
|
|
2275
2357
|
? getDisabledButtonClasses({ version: button?.version })
|
|
2276
2358
|
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
2277
2359
|
const link = useLink();
|
|
2278
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "
|
|
2360
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { name: "_amount", valid: !isDisabled, placeholder: placeholder, label: label, ...field('_amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: _amount }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-m mt-lg', buttonStyle), disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
|
|
2279
2361
|
});
|
|
2280
2362
|
|
|
2281
2363
|
const mapChildren = (mapper) => (children) => {
|
|
@@ -2545,7 +2627,9 @@
|
|
|
2545
2627
|
'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider');
|
|
2546
2628
|
const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
|
|
2547
2629
|
|
|
2548
|
-
const
|
|
2630
|
+
const VISIBLE_ITEM_COUNT = 1;
|
|
2631
|
+
|
|
2632
|
+
const Carousel = JSX(({ className, itemCount, visibleItemCount = VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
|
|
2549
2633
|
const { blocks: childBlocks = [] } = rest.block || {};
|
|
2550
2634
|
const count = itemCount || childBlocks?.length;
|
|
2551
2635
|
const [activeIndex, { inc: increaseActiveIndex, dec: decreaseActiveIndex }] = useCarouselControls({
|
|
@@ -2570,6 +2654,7 @@
|
|
|
2570
2654
|
'CarouselRichTextCard',
|
|
2571
2655
|
'CarouselInvestmentCard',
|
|
2572
2656
|
'CarouselEventCard',
|
|
2657
|
+
'ProductBlock',
|
|
2573
2658
|
];
|
|
2574
2659
|
Carousel.childSchema = () => ({
|
|
2575
2660
|
isHighlighting: {
|
|
@@ -2590,16 +2675,27 @@
|
|
|
2590
2675
|
|
|
2591
2676
|
const layerBaseStyle = 'z-10 border border-solid w-full h-full';
|
|
2592
2677
|
const layerStyle = style(layerBaseStyle, 'absolute hidden sm:block border-transparent');
|
|
2593
|
-
const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
|
|
2678
|
+
const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
|
|
2594
2679
|
className: 'mt-m sm:mt-6xl sm:justify-center',
|
|
2595
2680
|
isVertical: true,
|
|
2596
2681
|
})] })] }) })));
|
|
2597
2682
|
|
|
2683
|
+
const imageAlignmentMap = {
|
|
2684
|
+
start: '@lg:self-start',
|
|
2685
|
+
center: '@lg:self-center',
|
|
2686
|
+
end: '@lg:self-end',
|
|
2687
|
+
};
|
|
2688
|
+
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex justify-around @lg:justify-between items-stretch gap-3xl', isImageAlwaysOnRight ? 'flex-row' : 'flex-col @lg:flex-row'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
|
|
2689
|
+
className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
|
|
2690
|
+
imageAlign,
|
|
2691
|
+
})] })] })));
|
|
2692
|
+
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2693
|
+
|
|
2598
2694
|
const cardStyleMap = {
|
|
2599
2695
|
black: 'bg-black',
|
|
2600
2696
|
white: 'bg-white',
|
|
2601
2697
|
};
|
|
2602
|
-
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (
|
|
2698
|
+
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full mt-lg' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
|
|
2603
2699
|
const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
2604
2700
|
|
|
2605
2701
|
const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
|
|
@@ -2613,17 +2709,6 @@
|
|
|
2613
2709
|
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("div", { className: "p-s", children: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
|
|
2614
2710
|
});
|
|
2615
2711
|
|
|
2616
|
-
const imageAlignmentMap = {
|
|
2617
|
-
start: '@lg:self-start',
|
|
2618
|
-
center: '@lg:self-center',
|
|
2619
|
-
end: '@lg:self-end',
|
|
2620
|
-
};
|
|
2621
|
-
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-col @lg:flex-row justify-around @lg:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
|
|
2622
|
-
className: '-order-1 @xl:order-1',
|
|
2623
|
-
imageAlign,
|
|
2624
|
-
})] })] })));
|
|
2625
|
-
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2626
|
-
|
|
2627
2712
|
const cardColumnsModeStyleMap = {
|
|
2628
2713
|
1: 'grid-cols-1',
|
|
2629
2714
|
2: 'grid-cols-2',
|
|
@@ -2631,24 +2716,23 @@
|
|
|
2631
2716
|
const CarouselInvestmentCard = JSX(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('text-left', className), padding: "p-0", ...rest, children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, title: title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-m z-10", title: title }) : null, backImage: image?.src ? jsx(Img, { image: image }) : null, children: [jsxs("div", { className: "flex justify-between mb-m", children: [description ? (jsx("div", { className: "w-1/3", children: jsx(Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? (jsx("ul", { className: style('list-none m-0 p-0 grid gap-xs', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList) })) : null] }) })));
|
|
2632
2717
|
const renderCardList = (cardsList) => cardsList.map((item, i) => (jsxs("li", { children: [item?.parameter ? jsx(Text, { size: "text-h6", children: item.parameter }) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
|
|
2633
2718
|
|
|
2634
|
-
const LINK_CLASS_NAME = `absolute border
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
const LINK_BORDER_CLASS_NAME = 'bg-transparent border-white border h-[70px] absolute w-80 top-0';
|
|
2719
|
+
const LINK_CLASS_NAME = `absolute border
|
|
2720
|
+
bg-white flex justify-between group-hover/link:text-primary-main`;
|
|
2721
|
+
const LINK_BORDER_CLASS_NAME = 'hidden xl:block absolute w-full h-full border border-white';
|
|
2638
2722
|
const CarouselLinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
|
|
2639
2723
|
const link = useLink();
|
|
2640
2724
|
const adjustedProps = link({ href, target });
|
|
2641
|
-
return text ? (
|
|
2725
|
+
return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap'), role: "link", ...adjustedProps, children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }), jsx(Img, { className: "group-hover/link:brightness-100 hidden xl:block ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main hidden xl:block", width: "24", height: "24" })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1.5 -left-1.5') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-3 -left-3') })] }) })) : null;
|
|
2642
2726
|
});
|
|
2643
2727
|
|
|
2644
2728
|
const MAX_LINKS_COUNT = 10;
|
|
2645
2729
|
|
|
2646
|
-
const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (
|
|
2647
|
-
const renderLinks = (links) => {
|
|
2730
|
+
const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col @6xl:flex-row gap-m", children: [jsxs("div", { children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })) : null] }), links?.length ? renderLinks(links, '@6xl:min-w-[672px] p-0 justify-self-end') : null] }) })));
|
|
2731
|
+
const renderLinks = (links, className = '') => {
|
|
2648
2732
|
const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
|
|
2649
|
-
return (jsx(Carousel, { className:
|
|
2733
|
+
return (jsx(Carousel, { className: className, version: "secondary", itemCount: itemCount, arrowsPadded: false, padding: "p-0", children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap gap-2xs self-start xl:justify-center @5xl:grid @5xl:grid-cols-2'), children: links
|
|
2650
2734
|
.slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
|
|
2651
|
-
.map((link, index) => (jsx(CarouselLinkButton, {
|
|
2735
|
+
.map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
|
|
2652
2736
|
};
|
|
2653
2737
|
|
|
2654
2738
|
const DOT_SIZE_MAP = {
|
|
@@ -2673,9 +2757,7 @@
|
|
|
2673
2757
|
};
|
|
2674
2758
|
const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2675
2759
|
|
|
2676
|
-
const
|
|
2677
|
-
|
|
2678
|
-
const CarouselProductCard = JSX(({ additionalDescription, align = alignTextStyle, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
|
|
2760
|
+
const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
|
|
2679
2761
|
return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', align, className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title), renderDescription$2(description), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
|
|
2680
2762
|
className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
2681
2763
|
isVertical: isButtonFullWidth,
|
|
@@ -2697,9 +2779,11 @@
|
|
|
2697
2779
|
? 'bg-secondary-light text-primary-main'
|
|
2698
2780
|
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
|
|
2699
2781
|
|
|
2782
|
+
const getHtmlText = (html) => html.replace(/<\/?[^>]+\/?>/g, '').trim();
|
|
2783
|
+
|
|
2700
2784
|
const RichText = JSX((props) => {
|
|
2701
2785
|
const { __html = '', richVersion = '' } = props;
|
|
2702
|
-
return (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }));
|
|
2786
|
+
return getHtmlText(__html) ? (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } })) : null;
|
|
2703
2787
|
});
|
|
2704
2788
|
|
|
2705
2789
|
const renderBenefitDescription = (description, i) => description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description }, `description-${i}`)) : null;
|
|
@@ -2729,11 +2813,11 @@
|
|
|
2729
2813
|
const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
|
|
2730
2814
|
const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
|
|
2731
2815
|
|
|
2732
|
-
const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
|
|
2816
|
+
const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground, isImageAlwaysOnRight, } = {}, children, }) => {
|
|
2733
2817
|
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
2734
2818
|
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
|
|
2735
2819
|
const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
|
|
2736
|
-
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
|
|
2820
|
+
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
|
|
2737
2821
|
});
|
|
2738
2822
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
2739
2823
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
@@ -2744,15 +2828,11 @@
|
|
|
2744
2828
|
description: _.description,
|
|
2745
2829
|
})) }) }) })));
|
|
2746
2830
|
|
|
2747
|
-
const
|
|
2831
|
+
const buttonSizeStyle = {
|
|
2748
2832
|
default: 'w-14 h-14',
|
|
2749
2833
|
stretched: 'flex-1 h-14',
|
|
2750
2834
|
};
|
|
2751
2835
|
|
|
2752
|
-
const buttonStylesWithText = (text, buttonSize) => text
|
|
2753
|
-
? ''
|
|
2754
|
-
: style('py-m group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
|
|
2755
|
-
|
|
2756
2836
|
const ICONS_MAP = [
|
|
2757
2837
|
{
|
|
2758
2838
|
origins: ['t.me', 'telegram.org'],
|
|
@@ -2793,18 +2873,20 @@
|
|
|
2793
2873
|
|
|
2794
2874
|
const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
|
|
2795
2875
|
|
|
2796
|
-
|
|
2797
|
-
|
|
2876
|
+
//TODO: Refactor this.
|
|
2877
|
+
const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
|
|
2878
|
+
const { href } = rest;
|
|
2798
2879
|
const { iconMapped, label } = findIconByHref(href);
|
|
2799
2880
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
2800
|
-
return (jsx(Button, { className: style(
|
|
2881
|
+
return (jsx(Button, { className: style('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', 'p-m min-h-14 group/media flex items-center justify-center box-border', buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
|
|
2801
2882
|
});
|
|
2802
2883
|
const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
|
|
2803
2884
|
|
|
2804
2885
|
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
|
|
2805
2886
|
|
|
2806
|
-
|
|
2807
|
-
|
|
2887
|
+
//TODO: replace SocialMedia with renderButtonSection
|
|
2888
|
+
const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', ...rest }) => {
|
|
2889
|
+
return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
|
|
2808
2890
|
});
|
|
2809
2891
|
|
|
2810
2892
|
const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
|
|
@@ -2846,35 +2928,35 @@
|
|
|
2846
2928
|
const renderIconBlock$1 = (icon) => (jsx("div", { className: "self-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
|
|
2847
2929
|
const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
2848
2930
|
|
|
2849
|
-
const
|
|
2850
|
-
const
|
|
2851
|
-
const
|
|
2852
|
-
const
|
|
2931
|
+
const gradientStyle = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
2932
|
+
const borderStyle = 'border-gray border-solid border';
|
|
2933
|
+
const dividerStyle$1 = 'border-main-divider border-b';
|
|
2934
|
+
const firstCellStyle$1 = 'w-52';
|
|
2853
2935
|
const COLS_LENGTH_FOR_SCROLL$1 = 3;
|
|
2854
2936
|
const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
|
|
2855
2937
|
|
|
2856
|
-
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className:
|
|
2938
|
+
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
|
|
2857
2939
|
|
|
2858
2940
|
const carouselContainerClassesMap = {
|
|
2859
2941
|
comparison: 'flex gap-m duration-1000',
|
|
2860
|
-
tariff: 'flex flex-grow duration-1000',
|
|
2942
|
+
tariff: 'flex gap-5xl flex-grow duration-1000',
|
|
2861
2943
|
};
|
|
2862
2944
|
const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
|
|
2863
2945
|
|
|
2864
2946
|
const TableRowContainer = JSX(({ children }) => (jsx("div", { className: "self-start flex flex-col", role: "row", children: jsx("div", { className: "flex gap-xl", children: children }) })));
|
|
2865
2947
|
|
|
2866
|
-
const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeIndex }) => (jsxs(TableRowContainer, { children: [jsx("div", { className:
|
|
2948
|
+
const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeIndex }) => (jsxs(TableRowContainer, { children: [jsx("div", { className: firstCellStyle$1, role: "columnheader" }), jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$2, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header }, String(i)))) })] })));
|
|
2867
2949
|
|
|
2868
2950
|
const TableCell = JSX(({ cell, isFirstRow, isLastRow, isFillGradient }) => {
|
|
2869
|
-
const
|
|
2870
|
-
const
|
|
2871
|
-
return (jsx("div", { className:
|
|
2951
|
+
const cellWrapperStyle = style('w-80 box-border flex flex-col', borderStyle, !isLastRow ? 'border-y-0' : 'border-t-0 rounded-b-md', isFillGradient ? gradientStyle : '');
|
|
2952
|
+
const cellStyle = style('mx-2xl h-full', dividerStyle$1, isFillGradient && isFirstRow ? 'border-t' : '', !isLastRow ? 'border-solid' : 'border-b-0');
|
|
2953
|
+
return (jsx("div", { className: cellWrapperStyle, role: "cell", children: jsx("div", { className: cellStyle, children: cell.map((item, i) => renderCellInner$1(item, i, isFillGradient)) }) }));
|
|
2872
2954
|
});
|
|
2873
2955
|
const labelStyle = (isFillGradient = false) => `text-xl m-0 ${isFillGradient ? 'text-white' : ''}`;
|
|
2874
2956
|
const descriptionStyle = (isFillGradient = false) => `text-s opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`;
|
|
2875
2957
|
const renderCellInner$1 = ({ label, description }, i, isFillGradient) => (jsxs("div", { className: "first:pt-2xl pt-xl last:pb-2xl", children: [label ? jsx("h4", { className: labelStyle(isFillGradient), children: label }) : null, description ? jsx("div", { className: descriptionStyle(isFillGradient), children: description }) : null] }, String(i)));
|
|
2876
2958
|
|
|
2877
|
-
const titleStyle = (isLastRow = false) =>
|
|
2959
|
+
const titleStyle = (isLastRow = false) => style('text-s py-2xl', dividerStyle$1, firstCellStyle$1, isLastRow ? 'border-b-0' : 'border-solid');
|
|
2878
2960
|
const TableRow = JSX(({ row: { header, data }, activeIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? jsx("div", { className: titleStyle(isLastRow), children: header.title }) : null, data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$2, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
|
|
2879
2961
|
|
|
2880
2962
|
const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn, activeIndex, controls }) => {
|
|
@@ -2913,12 +2995,43 @@
|
|
|
2913
2995
|
? renderShowMoreToggleButton({ isShowAllRow, onClick: handleToggle })
|
|
2914
2996
|
: null] }));
|
|
2915
2997
|
});
|
|
2916
|
-
const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => (jsx("div", { className: "pr-6xl", children: jsxs("div", { className: "flex gap-m w-full", children: [jsx("div", { className:
|
|
2998
|
+
const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => (jsx("div", { className: "pr-6xl", children: jsxs("div", { className: "flex gap-m w-full", children: [jsx("div", { className: firstCellStyle$1 }), jsx("button", { onClick: onClick, className: "py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx(Text, { size: "text-xs", font: "font-medium", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
|
|
2917
2999
|
|
|
2918
3000
|
const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-6xl", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
|
|
2919
3001
|
const renderBlocks = (info) => (jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index })) }));
|
|
2920
3002
|
const renderBlocksColumn = ({ column, index }) => column ? (jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (jsx("div", { className: "mt-xs opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, button?.href ? jsx(Button, { className: "mt-xl", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
|
|
2921
3003
|
|
|
3004
|
+
const TextWithIcon = JSX(({ textNode, iconNode, tag, onClick, justifyContent = 'between', className, ...rest }) => {
|
|
3005
|
+
const Tag = tag;
|
|
3006
|
+
return (jsxs(Tag, { tag: tag, className: style('flex items-center w-full gap-1', justifyContent === 'between' ? 'justify-between' : 'justify-center', className), onClick: onClick, ...rest, children: [textNode ? jsx("div", { children: textNode }) : null, iconNode ? jsx("div", { children: iconNode }) : null] }));
|
|
3007
|
+
});
|
|
3008
|
+
|
|
3009
|
+
const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => (jsx(TextWithIcon, { tag: "button", onClick: onClick, disabled: disabled, "data-theme": dataTheme, justifyContent: "center", className: style('py-4 border border-transparent outline-none focus:border-primary-text', disabled
|
|
3010
|
+
? 'bg-main-divider text-main-disabled hover:bg-main-divider'
|
|
3011
|
+
: 'bg-primary-main text-white hover:bg-primary-hove', className), textNode: jsx("span", { className: "text-h4 pr-s", children: label }), iconNode: icon ? (jsx(Img, { image: {
|
|
3012
|
+
icon,
|
|
3013
|
+
iconVersion: 'white',
|
|
3014
|
+
}, className: "my-auto", width: "20", height: "20" })) : null })));
|
|
3015
|
+
const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
|
|
3016
|
+
const labels = ['Развернуть', 'Скрыть'];
|
|
3017
|
+
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
3018
|
+
return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
|
|
3019
|
+
};
|
|
3020
|
+
|
|
3021
|
+
const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
3022
|
+
const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
|
|
3023
|
+
const BaseFiltrationInner = JSX(({ label = '', blocksToRender = [], topItemsCount = 0, block, notFound, ...rest }) => {
|
|
3024
|
+
const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
|
|
3025
|
+
? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
|
|
3026
|
+
: [blocksToRender, []];
|
|
3027
|
+
return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
|
|
3028
|
+
return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
3029
|
+
}, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
3030
|
+
});
|
|
3031
|
+
function renderNotFound({ title, description }) {
|
|
3032
|
+
return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
|
|
3033
|
+
}
|
|
3034
|
+
|
|
2922
3035
|
const isEmpty = (v) => v === null ||
|
|
2923
3036
|
v === undefined ||
|
|
2924
3037
|
v === '' ||
|
|
@@ -2932,14 +3045,17 @@
|
|
|
2932
3045
|
const isNumberFieldMatch = (key, pattern) => (target) => isEmpty(pattern[key]) ||
|
|
2933
3046
|
isEmpty(target[key]) ||
|
|
2934
3047
|
naturalNumber(pattern[key]) <= naturalNumber(target[key]);
|
|
3048
|
+
const isMultipleNumberFieldMatch = (key, pattern) => (target) => isEmpty(pattern[key]) || isEmpty(target[key]) || target[key]?.includes(pattern[key]);
|
|
2935
3049
|
const isValueInRange = (key, pattern) => (target) => isEmpty(pattern[key]) ||
|
|
2936
3050
|
isEmpty(target[key]) ||
|
|
2937
3051
|
(naturalNumber(pattern[key]?.min) >= naturalNumber(target[key]?.min) &&
|
|
2938
3052
|
naturalNumber(pattern[key]?.min) <= naturalNumber(target[key]?.max));
|
|
2939
|
-
const
|
|
3053
|
+
const shouldRenderBlock = (pattern, target) => Object.entries(pattern)
|
|
2940
3054
|
.map(([key, subPattern]) => {
|
|
2941
3055
|
if (typeof subPattern === 'number') {
|
|
2942
|
-
return
|
|
3056
|
+
return Array.isArray(target[key])
|
|
3057
|
+
? isMultipleNumberFieldMatch(key, pattern)
|
|
3058
|
+
: isNumberFieldMatch(key, pattern);
|
|
2943
3059
|
}
|
|
2944
3060
|
if (typeof subPattern === 'object' && 'min' in subPattern && 'max' in subPattern) {
|
|
2945
3061
|
return isValueInRange(key, pattern);
|
|
@@ -2951,34 +3067,7 @@
|
|
|
2951
3067
|
.every((predicate) => predicate(target));
|
|
2952
3068
|
const naturalNumber = (n) => Number(n || 0);
|
|
2953
3069
|
|
|
2954
|
-
const
|
|
2955
|
-
return (jsxs("button", { className: style('flex justify-center w-full py-4 border border-transparent outline-none focus:border-primary-text', disabled
|
|
2956
|
-
? 'bg-main-divider text-main-disabled hover:bg-main-divider'
|
|
2957
|
-
: 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [jsx("span", { className: "text-h4 pr-s", children: label }), icon ? (jsx(Img, { image: {
|
|
2958
|
-
icon,
|
|
2959
|
-
iconVersion: 'white',
|
|
2960
|
-
}, className: "flex-shrink-0 my-auto", width: "20", height: "20" })) : null] }));
|
|
2961
|
-
});
|
|
2962
|
-
const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
|
|
2963
|
-
const labels = ['Развернуть', 'Скрыть'];
|
|
2964
|
-
const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
2965
|
-
return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
|
|
2966
|
-
};
|
|
2967
|
-
|
|
2968
|
-
const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
|
|
2969
|
-
const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
|
|
2970
|
-
const BaseFiltrationInner = JSX(({ label = '', filtrationState = {}, topItemsCount = 0, block, notFound, ...rest }) => {
|
|
2971
|
-
const blocksToRender = block?.blocks?.filter((b) => checkShouldRenderBlock(filtrationState, b.content || {})) || [];
|
|
2972
|
-
const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
|
|
2973
|
-
? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
|
|
2974
|
-
: [blocksToRender, []];
|
|
2975
|
-
return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
|
|
2976
|
-
return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
|
|
2977
|
-
}, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
|
|
2978
|
-
});
|
|
2979
|
-
function renderNotFound({ title, description }) {
|
|
2980
|
-
return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
|
|
2981
|
-
}
|
|
3070
|
+
const getBlocksToRender = (blocks, filtrationState) => (normalize = identity) => blocks && blocks.filter((b) => shouldRenderBlock(filtrationState, normalize(b.content || {})));
|
|
2982
3071
|
|
|
2983
3072
|
const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
|
|
2984
3073
|
const handleChange = (newValue) => {
|
|
@@ -3012,8 +3101,35 @@
|
|
|
3012
3101
|
return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple: true, ...field(key) })] }, key));
|
|
3013
3102
|
};
|
|
3014
3103
|
|
|
3015
|
-
const
|
|
3016
|
-
|
|
3104
|
+
const getPeriod = (source, content) => source[content?.sourceBook]?.rateRows
|
|
3105
|
+
.map((el) => el.minMonths)
|
|
3106
|
+
.filter((minMonths) => minMonths !== undefined);
|
|
3107
|
+
|
|
3108
|
+
async function fetchMultitudeJSON(...urls) {
|
|
3109
|
+
const fetchPromises = urls.map((url) => fetchJSON(url));
|
|
3110
|
+
return await Promise.all(fetchPromises);
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3113
|
+
const unique = (list) => [...new Set(list)];
|
|
3114
|
+
|
|
3115
|
+
const getChildSourceBook = (blocks) => blocks?.filter(hasSourceBook).map(({ content: { sourceBook } }) => sourceBook);
|
|
3116
|
+
const hasSourceBook = (block) => Boolean(block && block.content && typeof block.content.sourceBook === 'string');
|
|
3117
|
+
|
|
3118
|
+
function useDepositsPeriods(blocks) {
|
|
3119
|
+
const { dirs = [], source = [] } = useMemo(() => {
|
|
3120
|
+
const sourceBooks = getChildSourceBook(blocks);
|
|
3121
|
+
return { dirs: sourceBooks?.map((url) => `/wcms-resources/${url}.json`), source: sourceBooks };
|
|
3122
|
+
}, [blocks]);
|
|
3123
|
+
const { data = [] } = useAsyncData(dirs, fetchMultitudeJSON);
|
|
3124
|
+
return {
|
|
3125
|
+
source: Object.fromEntries(zip(source, data).filter(([, sourceData]) => Boolean(sourceData))),
|
|
3126
|
+
months: unique(data
|
|
3127
|
+
.flatMap((item) => item?.rateRows || [])
|
|
3128
|
+
.filter((row) => typeof row.minMonths === 'number' && row.minMonths === row.maxMonths)
|
|
3129
|
+
.map((row) => row.minMonths)).sort((a, b) => a - b) || [],
|
|
3130
|
+
};
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3017
3133
|
const DEFAULT_MIN_SUM = 500;
|
|
3018
3134
|
const DEFAULT_MAX_SUM = 1000000000;
|
|
3019
3135
|
const initialFiltrationState$1 = {
|
|
@@ -3021,36 +3137,38 @@
|
|
|
3021
3137
|
min: 10000,
|
|
3022
3138
|
max: DEFAULT_MAX_SUM,
|
|
3023
3139
|
},
|
|
3024
|
-
period:
|
|
3025
|
-
min: 3,
|
|
3026
|
-
max: 36,
|
|
3027
|
-
},
|
|
3140
|
+
period: 3,
|
|
3028
3141
|
};
|
|
3029
3142
|
const DepositFiltration = JSX(({ className, filtrationSchema = {}, resetButton, sumInput, periodInput, ...rest }) => {
|
|
3143
|
+
const { source, months } = useDepositsPeriods(rest.block?.blocks);
|
|
3030
3144
|
const [filtrationState, { field, reset }] = useForm(initialFiltrationState$1);
|
|
3031
|
-
const
|
|
3145
|
+
const blocksToRender = getBlocksToRender(rest.block?.blocks, filtrationState)((content) => ({ ...content, period: getPeriod(source, content || {}) || [] }));
|
|
3032
3146
|
const Inputs = (jsxs("div", { children: [jsx(CurrencyInput, { label: sumInput?.title, min: DEFAULT_MIN_SUM, max: DEFAULT_MAX_SUM, ...field('sum', {
|
|
3033
3147
|
parse: (min) => ({ min: Number(min), max: DEFAULT_MAX_SUM }),
|
|
3034
3148
|
format: ({ min }) => String(min),
|
|
3035
|
-
}) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 5 лет'],
|
|
3036
|
-
|
|
3037
|
-
format: ({ min }) => min,
|
|
3038
|
-
}) })] }));
|
|
3039
|
-
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
3149
|
+
}) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 5 лет'], list: months, ...field('period') })] }));
|
|
3150
|
+
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
|
|
3040
3151
|
});
|
|
3152
|
+
const sourceBookSchema = {
|
|
3153
|
+
type: 'string',
|
|
3154
|
+
title: 'Адрес справочника',
|
|
3155
|
+
};
|
|
3041
3156
|
DepositFiltration.childrenTypes = ['ProductTile'];
|
|
3042
|
-
DepositFiltration.childSchema = (content) =>
|
|
3157
|
+
DepositFiltration.childSchema = (content) => ({
|
|
3158
|
+
...(content?.filtrationSchema || {}),
|
|
3159
|
+
sourceBook: sourceBookSchema,
|
|
3160
|
+
});
|
|
3043
3161
|
|
|
3044
3162
|
const renderErrorContent = (error) => {
|
|
3045
3163
|
if (error?.contentType === 'Image' && error?.image) {
|
|
3046
3164
|
return jsx(Img, { image: error.image });
|
|
3047
3165
|
}
|
|
3048
3166
|
if (error?.contentType === 'Code' && error.code) {
|
|
3049
|
-
return jsx("div", { className: "font-mohave text-title-extra gradient-color-text", children: error.code });
|
|
3167
|
+
return (jsx("div", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: error.code }));
|
|
3050
3168
|
}
|
|
3051
3169
|
return null;
|
|
3052
3170
|
};
|
|
3053
|
-
const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col
|
|
3171
|
+
const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true, className: "mb-2xl last:mb-0" }), button?.text ? jsx(Button, { version: button?.version, text: button?.text, ...button }) : null] })));
|
|
3054
3172
|
|
|
3055
3173
|
var Currencies;
|
|
3056
3174
|
(function (Currencies) {
|
|
@@ -3296,7 +3414,7 @@
|
|
|
3296
3414
|
transparent: 'text-white',
|
|
3297
3415
|
};
|
|
3298
3416
|
const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$1(bgColor, logo?.image, ICON_SIZE), showTitle
|
|
3299
|
-
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title }) }))
|
|
3417
|
+
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title || 'Россельхозбанк' }) }))
|
|
3300
3418
|
: null] })));
|
|
3301
3419
|
|
|
3302
3420
|
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
|
|
@@ -3308,18 +3426,13 @@
|
|
|
3308
3426
|
return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 w-full px-10 text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
|
|
3309
3427
|
});
|
|
3310
3428
|
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
|
|
3319
|
-
const desc = (cmp) => (a, b) => -cmp(a, b);
|
|
3320
|
-
|
|
3321
|
-
function zip(firstCol, ...restCols) {
|
|
3322
|
-
return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
|
|
3429
|
+
function useDebouncedEffect(effect, deps, delay = 300) {
|
|
3430
|
+
useEffect(() => {
|
|
3431
|
+
const timerId = globalThis.setTimeout(effect, delay);
|
|
3432
|
+
return () => {
|
|
3433
|
+
globalThis.clearTimeout(timerId);
|
|
3434
|
+
};
|
|
3435
|
+
}, deps);
|
|
3323
3436
|
}
|
|
3324
3437
|
|
|
3325
3438
|
const joinMaps = (aggregate, emptyVal) => (acc, map) => {
|
|
@@ -3503,11 +3616,11 @@
|
|
|
3503
3616
|
|
|
3504
3617
|
const LEFT_COL_WIDTH = 'w-52';
|
|
3505
3618
|
const Footer = JSX(({ className, ...rest }) => {
|
|
3506
|
-
const { topItems } = useSitemap(rest.options?.page?.fallback);
|
|
3507
|
-
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps
|
|
3619
|
+
const { topItems, logo } = useSitemap(rest.options?.page?.fallback);
|
|
3620
|
+
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
|
|
3508
3621
|
fallback: rest.options?.page?.fallback,
|
|
3509
3622
|
});
|
|
3510
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className:
|
|
3623
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3511
3624
|
});
|
|
3512
3625
|
|
|
3513
3626
|
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
|
|
@@ -3608,6 +3721,11 @@
|
|
|
3608
3721
|
return result;
|
|
3609
3722
|
};
|
|
3610
3723
|
|
|
3724
|
+
const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
|
|
3725
|
+
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-m w-full peer text-l text-black border border-solid rounded-md box-border
|
|
3726
|
+
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
|
|
3727
|
+
});
|
|
3728
|
+
|
|
3611
3729
|
const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
|
|
3612
3730
|
const ForeignOffice = JSX(({ icon, ...rest }) => {
|
|
3613
3731
|
const link = useLink();
|
|
@@ -3621,11 +3739,6 @@
|
|
|
3621
3739
|
|
|
3622
3740
|
const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
|
|
3623
3741
|
|
|
3624
|
-
const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
|
|
3625
|
-
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-m w-full peer text-l text-black border border-solid rounded-md box-border
|
|
3626
|
-
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
|
|
3627
|
-
});
|
|
3628
|
-
|
|
3629
3742
|
const SEARCH_TERM_MIN_LENGTH = 3;
|
|
3630
3743
|
const LocationDialog = JSX(() => {
|
|
3631
3744
|
const { defaultLocation, foreignOffices } = useSitemap();
|
|
@@ -3991,17 +4104,17 @@
|
|
|
3991
4104
|
return (jsx("div", { role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
|
|
3992
4105
|
};
|
|
3993
4106
|
|
|
3994
|
-
const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
|
|
4107
|
+
const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description }) })) : null;
|
|
3995
4108
|
|
|
3996
|
-
const renderList$1 = (items) => {
|
|
3997
|
-
return items?.length ? (jsx(List, { items: items, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
|
|
4109
|
+
const renderList$1 = (items, listItemSize) => {
|
|
4110
|
+
return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
|
|
3998
4111
|
};
|
|
3999
4112
|
|
|
4000
4113
|
const buttonsConditionStyle = (buttons) => renderButtonsSection(buttons, { isVertical: false });
|
|
4001
4114
|
|
|
4002
|
-
const MobileAppTile = JSX(({ className, padding,
|
|
4115
|
+
const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
4003
4116
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
4004
|
-
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap',
|
|
4117
|
+
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null, buttons: buttonsConditionStyle(buttons), children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList$1(items, listItemSize), image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
4005
4118
|
});
|
|
4006
4119
|
|
|
4007
4120
|
const badgeBgStyleMap = {
|
|
@@ -4016,7 +4129,7 @@
|
|
|
4016
4129
|
return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyleMap[version]), children: jsx(Text, { size: "text-xs", color: badgeTextColorStyleMap[version], children: count }) }));
|
|
4017
4130
|
});
|
|
4018
4131
|
|
|
4019
|
-
const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) =>
|
|
4132
|
+
const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) => shouldRenderBlock(filter, content)).length;
|
|
4020
4133
|
|
|
4021
4134
|
const scalarCmp = (a, b) => a === b;
|
|
4022
4135
|
const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
|
|
@@ -4105,6 +4218,7 @@
|
|
|
4105
4218
|
};
|
|
4106
4219
|
const MortgageFiltration = JSX(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
4107
4220
|
const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
|
|
4221
|
+
const blocksToRender = getBlocksToRender(rest.block?.blocks, filtrationState)();
|
|
4108
4222
|
const handleFiltrationStateChange = useCallback((_ = initialFiltrationState) => replaceFiltrationState(_), []);
|
|
4109
4223
|
const tabsControlProps = useHotFilters({
|
|
4110
4224
|
hotFilters,
|
|
@@ -4112,7 +4226,7 @@
|
|
|
4112
4226
|
blocks: rest.block?.blocks,
|
|
4113
4227
|
onFiltrationStateChange: handleFiltrationStateChange,
|
|
4114
4228
|
});
|
|
4115
|
-
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, {
|
|
4229
|
+
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
|
|
4116
4230
|
});
|
|
4117
4231
|
MortgageFiltration.childrenTypes = ['ProductTile'];
|
|
4118
4232
|
MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
@@ -4284,8 +4398,7 @@
|
|
|
4284
4398
|
const map = useRef(null);
|
|
4285
4399
|
const yandexMaps = useYandexMaps();
|
|
4286
4400
|
const [isFullScreen, setIsFullScreen] = useState();
|
|
4287
|
-
const
|
|
4288
|
-
const pointsCenter = getCenterPoint(points);
|
|
4401
|
+
const pointsCenter = points ? getCenterPoint(points) : [55.753995, 37.614069];
|
|
4289
4402
|
useEffect(() => {
|
|
4290
4403
|
if (!map?.current) {
|
|
4291
4404
|
yandexMaps?.ready(() => {
|
|
@@ -4295,16 +4408,16 @@
|
|
|
4295
4408
|
controls: [],
|
|
4296
4409
|
suppressMapOpenBlock: true,
|
|
4297
4410
|
});
|
|
4298
|
-
renderClusterer(yandexMaps, map.current,
|
|
4411
|
+
renderClusterer(yandexMaps, map.current, points);
|
|
4299
4412
|
});
|
|
4300
4413
|
}
|
|
4301
|
-
}, [yandexMaps, map,
|
|
4414
|
+
}, [yandexMaps, map, points]);
|
|
4302
4415
|
useEffect(() => {
|
|
4303
|
-
if (map.current &&
|
|
4304
|
-
const newPoints =
|
|
4416
|
+
if (map.current && points?.length && yandexMaps) {
|
|
4417
|
+
const newPoints = points.length < 1 ? normalizePoints(mockPoints) : points;
|
|
4305
4418
|
renderClusterer(yandexMaps, map.current, newPoints);
|
|
4306
4419
|
}
|
|
4307
|
-
}, [map,
|
|
4420
|
+
}, [map, points, yandexMaps]);
|
|
4308
4421
|
if (!yandexMaps) {
|
|
4309
4422
|
return null;
|
|
4310
4423
|
}
|
|
@@ -4492,7 +4605,7 @@
|
|
|
4492
4605
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
4493
4606
|
const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
|
|
4494
4607
|
const text = 'Вернуться назад';
|
|
4495
|
-
return (jsxs("div", { className: "flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
4608
|
+
return (jsxs("div", { className: "hidden sm:flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
4496
4609
|
icon: 'ArrowLeftIcon',
|
|
4497
4610
|
iconVersion: iconVersion,
|
|
4498
4611
|
} }) }), jsx(Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
|
|
@@ -4540,10 +4653,19 @@
|
|
|
4540
4653
|
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
4541
4654
|
}
|
|
4542
4655
|
|
|
4543
|
-
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "
|
|
4656
|
+
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
|
|
4657
|
+
label: 'Адрес',
|
|
4658
|
+
data: address,
|
|
4659
|
+
iconName: 'GeolocationIcon',
|
|
4660
|
+
}), renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' }), renderBlock({
|
|
4661
|
+
label: 'E-mail',
|
|
4662
|
+
data: email,
|
|
4663
|
+
iconName: 'MailIcon',
|
|
4664
|
+
dataColor: 'text-primary-main',
|
|
4665
|
+
}), button?.text ? renderButtonsSection([button]) : null] })] })));
|
|
4544
4666
|
const renderIconBlock = (icon) => (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
|
|
4545
|
-
const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider", children: jsx(RichText, { __html: __html }) }));
|
|
4546
|
-
const renderBlock = (
|
|
4667
|
+
const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { __html: __html }) }));
|
|
4668
|
+
const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
|
|
4547
4669
|
|
|
4548
4670
|
const RichTextBlock = JSX((props) => {
|
|
4549
4671
|
const { __html, richVersion, ...rest } = props;
|
|
@@ -4554,13 +4676,15 @@
|
|
|
4554
4676
|
|
|
4555
4677
|
const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
4556
4678
|
|
|
4557
|
-
const rollupIconVersion = 'color';
|
|
4558
|
-
|
|
4559
4679
|
const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
|
|
4560
4680
|
|
|
4561
4681
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4562
4682
|
const renderRoundedIcon = (_icon, _iconBgVersion) => null;
|
|
4563
4683
|
|
|
4684
|
+
const rollupIconVersion = 'color';
|
|
4685
|
+
|
|
4686
|
+
const PrimaryFoldButton = JSX(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => (jsx(TextWithIcon, { tag: "button", className: style('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null })));
|
|
4687
|
+
|
|
4564
4688
|
const RollupItem = JSX(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), defaultPadding: "p-0", tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren({
|
|
4565
4689
|
...rest,
|
|
4566
4690
|
extraProps: { className: 'w-full', padding: 'p-0' },
|
|
@@ -4577,16 +4701,8 @@
|
|
|
4577
4701
|
};
|
|
4578
4702
|
const renderFoldButton = ({ version, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
|
|
4579
4703
|
const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
|
|
4580
|
-
|
|
4581
|
-
|
|
4582
|
-
labelIcon,
|
|
4583
|
-
labelIconBgVersion,
|
|
4584
|
-
icon: getIconName(isUnfolded),
|
|
4585
|
-
onToggle,
|
|
4586
|
-
})) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
4587
|
-
};
|
|
4588
|
-
const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
|
|
4589
|
-
return (jsxs("button", { className: style('border-none bg-transparent flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
|
|
4704
|
+
const icon = getIconName(isUnfolded);
|
|
4705
|
+
return version === 'primary' ? (jsx(PrimaryFoldButton, { label: label, labelIcon: labelIcon, labelIconBgVersion: labelIconBgVersion, icon: icon, onToggle: onToggle })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
4590
4706
|
};
|
|
4591
4707
|
|
|
4592
4708
|
const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
|
|
@@ -4597,9 +4713,7 @@
|
|
|
4597
4713
|
return (jsx(Select, { options: dataFormat, label: label, placeholder: placeholder || selected, onChange: (_) => setSelected(_.key), value: selectedObj }));
|
|
4598
4714
|
});
|
|
4599
4715
|
|
|
4600
|
-
const RegionsAndBranches = JSX(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => (jsxs("div", { className: "flex flex-col
|
|
4601
|
-
|
|
4602
|
-
const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange(_.target.value) }), text ? jsx("span", { className: "text-primary-text cursor-pointer", children: text }) : null] }) })));
|
|
4716
|
+
const RegionsAndBranches = JSX(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => (jsxs("div", { className: "flex flex-col @xl:flex-row gap-m order-1", children: [jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] })));
|
|
4603
4717
|
|
|
4604
4718
|
const RadioButtons = JSX(({ className = '' }) => {
|
|
4605
4719
|
const [selectedOption, setSelectedOption] = useState('option2');
|
|
@@ -4613,11 +4727,11 @@
|
|
|
4613
4727
|
const RentalPeriod = JSX(({ days, setDays }) => (jsxs("div", { className: "order-1", children: [jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0440\u043E\u043A \u0430\u0440\u0435\u043D\u0434\u044B" }), jsx(InputRange, { min: MIN, max: MAX, value: days, items: ITEMS, onChange: setDays })] })));
|
|
4614
4728
|
|
|
4615
4729
|
const SafeBoxCases = JSX(({ caseVolumes = [], selectedCaseVolume, onSelectedCaseVolume, safeBoxCases = [], selectedBoxSize, onSelectedBoxSize, }) => {
|
|
4616
|
-
return (jsxs("div", { className: "flex flex-col
|
|
4730
|
+
return (jsxs("div", { className: "flex flex-col @xl:flex-row gap-m order-1", children: [jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] }));
|
|
4617
4731
|
});
|
|
4618
4732
|
|
|
4619
4733
|
const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onClick, }) => {
|
|
4620
|
-
return (jsxs("div", { className: "contents
|
|
4734
|
+
return (jsxs("div", { className: "contents @xl:block flex-1 space-y-xl", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("div", { className: "order-4", children: jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }) }), jsxs("div", { className: "contents @md:flex justify-between items-center gap-m", children: [jsx(RadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onClick, className: "order-6" })] })] }));
|
|
4621
4735
|
});
|
|
4622
4736
|
const onSelectedBranch = (onChange) => (value) => {
|
|
4623
4737
|
onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
|
|
@@ -4629,10 +4743,10 @@
|
|
|
4629
4743
|
const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
|
|
4630
4744
|
const price = calculatePrice(days, tariffs);
|
|
4631
4745
|
const imageDescription = 'На рисунке изображена пачка листов\nформата А4';
|
|
4632
|
-
return (jsxs("div", { className: "contents
|
|
4746
|
+
return (jsxs("div", { className: "contents @xl:flex flex-col justify-between gap-xl order-2", children: [jsxs("div", { className: "flex flex-col @xl:flex-row gap-x-6xl gap-y-2xl order-5 @xl:order-none py-2xl @xl:py-0 border-t border-main-divider @xl:border-none", children: [renderTotal('Аренда за', days), renderTotal('Цена', price + ' ₽')] }), jsx("span", { className: "@xl:hidden order-3 mb-xs text-s font-light text-secondary-text", children: imageDescription }), jsxs("div", { className: "flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, className: "@xl:h-60" }), jsx("span", { className: "hidden @xl:inline text-s font-light text-white opacity-80 whitespace-pre-line", children: imageDescription })] })] }));
|
|
4633
4747
|
});
|
|
4634
4748
|
const renderTotal = (label, total) => {
|
|
4635
|
-
return (jsxs("div", { className: "flex justify-between items-center gap-y-xs
|
|
4749
|
+
return (jsxs("div", { className: "flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start", children: [jsx("div", { className: "text-l font-light text-secondary-text", children: label }), jsx("span", { className: "text-l @xl:text-h3 text-primary-text", children: total })] }));
|
|
4636
4750
|
};
|
|
4637
4751
|
const calculatePrice = (days, tariffs) => {
|
|
4638
4752
|
const tariffType = getTariffType(days);
|
|
@@ -4679,7 +4793,7 @@
|
|
|
4679
4793
|
const caseVolumes = getCaseVolumes(branch?.safeBoxCaseVolumes);
|
|
4680
4794
|
const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes, data.selectedCaseVolume)?.safeBoxCases;
|
|
4681
4795
|
const tariffs = getTariffs(safeBoxCases, data.selectedBoxSize);
|
|
4682
|
-
return (jsxs("div", { className: "flex flex-col
|
|
4796
|
+
return (jsxs("div", { className: "flex flex-col @4xl:flex-row gap-4xl align-top", children: [jsx(SafeDepositRentalFields, { ...data, regions: regions, onClick: onClick, branches: branches, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: onChange }), jsx(SafeDepositRentalTotal, { days: data.days, tariffs: tariffs })] }));
|
|
4683
4797
|
});
|
|
4684
4798
|
const getCaseVolumes = (safeBoxCaseVolumes) => safeBoxCaseVolumes?.length ? safeBoxCaseVolumes?.filter((_) => _?.safeBoxCases?.length) : [];
|
|
4685
4799
|
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
@@ -4846,28 +4960,28 @@
|
|
|
4846
4960
|
};
|
|
4847
4961
|
const normalizeTab = (_) => (_?.type === 'group' ? { text: _.title } : _);
|
|
4848
4962
|
|
|
4849
|
-
const
|
|
4850
|
-
const
|
|
4963
|
+
const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
|
|
4964
|
+
const firstCellStyle = 'w-80 flex-shrink-0';
|
|
4851
4965
|
const COLS_LENGTH_FOR_SCROLL = 2;
|
|
4852
4966
|
const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
4853
4967
|
|
|
4854
|
-
const TableInnerButton = JSX(({ isOpen, onClick }) => {
|
|
4855
|
-
return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-lg", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-s", iconVersion: "white", width: "20", height: "20" })] }));
|
|
4856
|
-
});
|
|
4968
|
+
const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(Button, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
|
|
4857
4969
|
|
|
4858
|
-
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons
|
|
4859
|
-
|
|
4970
|
+
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
|
|
4971
|
+
buttonClassName: 'basis-0',
|
|
4972
|
+
});
|
|
4973
|
+
const renderLabelDescriptionCellData = ({ label, description }) => (jsxs("div", { className: "space-y-2xs", children: [label ? jsx("div", { children: label }) : null, description ? (jsx("div", { children: jsx(Text, { size: "text-s", color: "text-secondary-text", children: description }) })) : null] }));
|
|
4860
4974
|
const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
|
|
4861
4975
|
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
|
|
4862
|
-
const
|
|
4976
|
+
const renderInnerTableCellData = ({ isVisible, displayTable, dataUrl, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
|
|
4863
4977
|
displayTable({ dataUrl, pdfUrl });
|
|
4864
|
-
} })) : null
|
|
4978
|
+
} })) : null;
|
|
4865
4979
|
const EmbeddableCellData = {
|
|
4866
4980
|
Buttons: renderButtonsCellData,
|
|
4867
4981
|
Img: renderImgCellData,
|
|
4868
4982
|
List: renderListCellData,
|
|
4869
4983
|
LabelDescription: renderLabelDescriptionCellData,
|
|
4870
|
-
Table:
|
|
4984
|
+
Table: renderInnerTableCellData,
|
|
4871
4985
|
};
|
|
4872
4986
|
|
|
4873
4987
|
const renderCellInner = ({ rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => (cell, i) => {
|
|
@@ -4882,16 +4996,16 @@
|
|
|
4882
4996
|
setOpenTableInnerIdx(cellIdx);
|
|
4883
4997
|
setTableInner(props);
|
|
4884
4998
|
};
|
|
4885
|
-
return (
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4999
|
+
return (jsx("div", { children: renderCell({
|
|
5000
|
+
cell,
|
|
5001
|
+
cellProps: {
|
|
5002
|
+
rowIdx,
|
|
5003
|
+
cellIdx,
|
|
5004
|
+
fieldIdx: i,
|
|
5005
|
+
displayTable,
|
|
5006
|
+
isVisible,
|
|
5007
|
+
},
|
|
5008
|
+
}) }, String(i)));
|
|
4895
5009
|
};
|
|
4896
5010
|
const renderCell = ({ cell, cellProps }) => {
|
|
4897
5011
|
if (!cell) {
|
|
@@ -4906,7 +5020,7 @@
|
|
|
4906
5020
|
};
|
|
4907
5021
|
|
|
4908
5022
|
const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
4909
|
-
return (jsx("div", { className: "w-80 flex-grow flex flex-col
|
|
5023
|
+
return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
|
|
4910
5024
|
? cells.map(renderCellInner({
|
|
4911
5025
|
rowIdx,
|
|
4912
5026
|
cellIdx,
|
|
@@ -4919,6 +5033,20 @@
|
|
|
4919
5033
|
});
|
|
4920
5034
|
|
|
4921
5035
|
const COLUMN_WIDTH = 140;
|
|
5036
|
+
const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
|
|
5037
|
+
|
|
5038
|
+
const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
5039
|
+
if (!rowData?.length) {
|
|
5040
|
+
return null;
|
|
5041
|
+
}
|
|
5042
|
+
const [headerColumn, ...columns] = rowData;
|
|
5043
|
+
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
5044
|
+
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "text-xl font-light min-w-56 py-lg", children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
5045
|
+
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
5046
|
+
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl font-light", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
5047
|
+
};
|
|
5048
|
+
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 text-h6 mx-lg", children: data }, String(i)))) })) : null;
|
|
5049
|
+
|
|
4922
5050
|
const InnerTableBodyItem = JSX(({ rows }) => {
|
|
4923
5051
|
const rowsLength = rows?.[0]?.length ?? 0;
|
|
4924
5052
|
const CARD_VIEW_COUNT = 5;
|
|
@@ -4926,38 +5054,23 @@
|
|
|
4926
5054
|
itemCount: rowsLength,
|
|
4927
5055
|
visibleItemCount: CARD_VIEW_COUNT,
|
|
4928
5056
|
});
|
|
4929
|
-
return (jsxs("div", { children: [rows?.map(
|
|
5057
|
+
return (jsxs("div", { children: [rows?.map(renderInnerTableRow(activeIndex)), renderArrows({
|
|
4930
5058
|
...controls,
|
|
4931
5059
|
btnClass: ['left-3 top-20', 'right-3 top-20'],
|
|
4932
5060
|
className: '',
|
|
4933
5061
|
})] }));
|
|
4934
5062
|
});
|
|
4935
|
-
const renderRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
4936
|
-
if (!rowData?.length) {
|
|
4937
|
-
return null;
|
|
4938
|
-
}
|
|
4939
|
-
const [headerColumn, ...columns] = rowData;
|
|
4940
|
-
const transform = [...Array(activeColumnIndex).keys()].reduce((res, i) => (columns?.[i]?.cols?.length ?? 1) * COLUMN_WIDTH + res, 0);
|
|
4941
|
-
const columnsClassName = [
|
|
4942
|
-
'flex duration-1000 text-center',
|
|
4943
|
-
rowIdx !== 0 ? 'font-normal' : 'font-light',
|
|
4944
|
-
].join(' ');
|
|
4945
|
-
return (jsxs("div", { className: "flex border-main-divider border border-t-0 border-x-0 border-solid", children: [headerColumn?.data ? (jsx("div", { className: `text-xl font-light w-52 py-lg `, children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsClassName, style: {
|
|
4946
|
-
transform: `translateX(-${transform}px)`,
|
|
4947
|
-
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl font-light", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
4948
|
-
};
|
|
4949
|
-
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: `w-20 text-h6 mx-lg`, children: data }, String(i)))) })) : null;
|
|
4950
5063
|
|
|
4951
5064
|
const InnerTableBody = JSX(({ activeTabIndex, items }) => {
|
|
4952
|
-
const [hiddenTables, setHiddenTables] = useState({});
|
|
4953
|
-
const toggleTables = useCallback((key) => setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] })), []);
|
|
4954
5065
|
return (jsx("div", { children: items.map((_, tableIdx) => {
|
|
4955
5066
|
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
4956
|
-
return (jsxs("div", { className: "w-full", children: [
|
|
5067
|
+
return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex p-m bg-white @4xl:bg-gray text-center justify-center relative", children: jsx(Text, { size: "text-xl", font: "font-light", children: _.title }) }), jsx("div", { className: "w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
4957
5068
|
}) }));
|
|
4958
5069
|
});
|
|
4959
5070
|
|
|
4960
|
-
const
|
|
5071
|
+
const linkButtonVersion = 'secondary';
|
|
5072
|
+
|
|
5073
|
+
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between items-center w-full py-lg", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl font-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
4961
5074
|
|
|
4962
5075
|
function useTariffsInnerTableData(directoryName) {
|
|
4963
5076
|
const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
|
|
@@ -4978,10 +5091,10 @@
|
|
|
4978
5091
|
const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
|
|
4979
5092
|
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
4980
5093
|
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
4981
|
-
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg text-h6 text-center", children: [jsx("p", { children: EMPTY_DATA }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
|
|
5094
|
+
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { className: "mt-xl", onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg space-y-m text-h6 text-center", children: [jsx("p", { children: EMPTY_DATA }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
|
|
4982
5095
|
});
|
|
4983
5096
|
|
|
4984
|
-
const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className:
|
|
5097
|
+
const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: style(dividerStyle, 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
|
|
4985
5098
|
|
|
4986
5099
|
const TariffsTableRow = JSX(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
|
|
4987
5100
|
const [tableInner, setTableInner] = useState(undefined);
|
|
@@ -4989,9 +5102,20 @@
|
|
|
4989
5102
|
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
4990
5103
|
const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
|
|
4991
5104
|
const onHideContentClick = () => setTableInner(undefined);
|
|
4992
|
-
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className:
|
|
5105
|
+
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6", image: header.icon, width: "24", height: "24" })) : null, header?.title ? jsx("div", { className: "text-m font-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
5106
|
+
});
|
|
5107
|
+
|
|
5108
|
+
const TariffsTableWrapper = JSX(({ children, controls }) => {
|
|
5109
|
+
const { isScrollAvailable } = controls;
|
|
5110
|
+
return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative space-y-xs", children: [children, renderArrows({
|
|
5111
|
+
...controls,
|
|
5112
|
+
btnClass: ['top-28', 'top-11'],
|
|
5113
|
+
className: 'right-7',
|
|
5114
|
+
})] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
|
|
4993
5115
|
});
|
|
4994
5116
|
|
|
5117
|
+
const headlineAlign = 'text-center';
|
|
5118
|
+
|
|
4995
5119
|
const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
4996
5120
|
const colData = columns?.map(({ data }) => data) || [];
|
|
4997
5121
|
const rowData = rowHeaders?.map((header, i) => ({
|
|
@@ -5005,15 +5129,7 @@
|
|
|
5005
5129
|
});
|
|
5006
5130
|
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
5007
5131
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
5008
|
-
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(
|
|
5009
|
-
});
|
|
5010
|
-
const Wrapper = JSX(({ children, controls }) => {
|
|
5011
|
-
const { isScrollAvailable } = controls;
|
|
5012
|
-
return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children, renderArrows({
|
|
5013
|
-
...controls,
|
|
5014
|
-
btnClass: ['top-28', 'top-11'],
|
|
5015
|
-
className: 'right-7',
|
|
5016
|
-
})] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
|
|
5132
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-0 @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: headlineAlign }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
|
|
5017
5133
|
});
|
|
5018
5134
|
|
|
5019
5135
|
const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
|
|
@@ -5181,13 +5297,13 @@
|
|
|
5181
5297
|
});
|
|
5182
5298
|
const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
|
|
5183
5299
|
|
|
5184
|
-
function useList(initialList = []) {
|
|
5185
|
-
const [list, setList] = useState(initialList);
|
|
5186
|
-
const push = useCallback((item) => setList(
|
|
5187
|
-
const pop = useCallback(() => setList(
|
|
5188
|
-
const remove = useCallback((item) => setList(
|
|
5189
|
-
const clear = useCallback(() => setList([]), []);
|
|
5190
|
-
return [list, { setList, push, pop, remove, clear }];
|
|
5300
|
+
function useList(initialList = []) {
|
|
5301
|
+
const [list, setList] = useState(initialList);
|
|
5302
|
+
const push = useCallback((item) => setList(_ => [..._, item]), []);
|
|
5303
|
+
const pop = useCallback(() => setList(_ => _.slice(0, -1)), []);
|
|
5304
|
+
const remove = useCallback((item) => setList(_ => _.filter(currentItem => currentItem !== item)), []);
|
|
5305
|
+
const clear = useCallback(() => setList([]), []);
|
|
5306
|
+
return [list, { setList, push, pop, remove, clear }];
|
|
5191
5307
|
}
|
|
5192
5308
|
|
|
5193
5309
|
function assertUnreachable(x) {
|
|
@@ -5235,17 +5351,12 @@
|
|
|
5235
5351
|
}, []);
|
|
5236
5352
|
const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
|
|
5237
5353
|
const { close } = useDialogManager();
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
globalThis.document?.addEventListener('keydown', handleEscape);
|
|
5245
|
-
return () => {
|
|
5246
|
-
globalThis.document?.removeEventListener('keydown', handleEscape);
|
|
5247
|
-
};
|
|
5248
|
-
}, [close]);
|
|
5354
|
+
const escapeHandler = useCallback(({ key }) => {
|
|
5355
|
+
if (key === 'Escape') {
|
|
5356
|
+
close();
|
|
5357
|
+
}
|
|
5358
|
+
}, []);
|
|
5359
|
+
useEventListener(globalThis.document, 'keydown', escapeHandler);
|
|
5249
5360
|
useEffect(() => {
|
|
5250
5361
|
if (dialogs.length) {
|
|
5251
5362
|
globalThis.document?.body.classList.add('no-scrollbar');
|
|
@@ -5259,6 +5370,37 @@
|
|
|
5259
5370
|
return dialogs.length ? (jsx("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar', i === dialogs.length - 1 ? '' : 'hidden'), children: dialog }, String(id || i)))) })) : null;
|
|
5260
5371
|
});
|
|
5261
5372
|
|
|
5373
|
+
const PopupManager = JSX(() => {
|
|
5374
|
+
const [popup, setPopup] = useState(null);
|
|
5375
|
+
const close = useCallback(() => {
|
|
5376
|
+
setPopup(null);
|
|
5377
|
+
}, []);
|
|
5378
|
+
useEffect(() => defaultEventBus.subscribe('popup', (action) => {
|
|
5379
|
+
switch (action.type) {
|
|
5380
|
+
case 'open':
|
|
5381
|
+
case 'update':
|
|
5382
|
+
setPopup(action);
|
|
5383
|
+
break;
|
|
5384
|
+
case 'close':
|
|
5385
|
+
close();
|
|
5386
|
+
break;
|
|
5387
|
+
default:
|
|
5388
|
+
assertUnreachable(action);
|
|
5389
|
+
}
|
|
5390
|
+
}), []);
|
|
5391
|
+
const escapeHandler = useCallback(({ key }) => {
|
|
5392
|
+
if (key === 'Escape') {
|
|
5393
|
+
close();
|
|
5394
|
+
}
|
|
5395
|
+
}, [close]);
|
|
5396
|
+
useEventListener(globalThis.document, 'keydown', escapeHandler);
|
|
5397
|
+
return popup ? (jsx("div", { className: "absolute z-50", style: {
|
|
5398
|
+
left: `${popup.left}px`,
|
|
5399
|
+
top: `${popup.top}px`,
|
|
5400
|
+
...(popup.width ? { width: `${popup.width}px` } : {}),
|
|
5401
|
+
}, role: "dialog", children: popup.popup })) : null;
|
|
5402
|
+
});
|
|
5403
|
+
|
|
5262
5404
|
const api = LikeAPI();
|
|
5263
5405
|
function useLikeService(pagePath) {
|
|
5264
5406
|
const [likeCount, setLikeCount] = useState(0);
|
|
@@ -5310,7 +5452,7 @@
|
|
|
5310
5452
|
parent: data,
|
|
5311
5453
|
};
|
|
5312
5454
|
useBlockRouterProvider();
|
|
5313
|
-
return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('relative @container', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
5455
|
+
return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('relative @container', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
5314
5456
|
});
|
|
5315
5457
|
ContentPage.childrenTypes = [];
|
|
5316
5458
|
ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
|
|
@@ -5318,7 +5460,7 @@
|
|
|
5318
5460
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5319
5461
|
}
|
|
5320
5462
|
|
|
5321
|
-
const packageVersion = "0.
|
|
5463
|
+
const packageVersion = "0.14.0";
|
|
5322
5464
|
|
|
5323
5465
|
exports.Blocks = Blocks;
|
|
5324
5466
|
exports.ContentPage = ContentPage;
|