@redneckz/wildless-cms-uni-blocks 0.12.9 → 0.12.11
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.12.9.js +30 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +349 -180
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/bundle/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/bundle/components/Calculator/CalculatorContent.d.ts +20 -1
- package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
- package/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
- package/bundle/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
- package/bundle/components/Calculator/constants.d.ts +12 -0
- package/bundle/components/Calculator/getMonthlyPayment.d.ts +8 -2
- package/bundle/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
- package/bundle/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
- package/bundle/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
- package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
- package/bundle/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
- package/bundle/components/CarouselProductCard/alignTextStyle.mobile.d.ts +1 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -2
- package/bundle/model/Attachment.d.ts +2 -0
- package/bundle/model/ContentPageDef.d.ts +0 -2
- package/bundle/model/JSXBlock.d.ts +2 -2
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +7 -6
- package/bundle/utils/formatBytes.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js +4 -0
- package/dist/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/dist/components/Bonus/Bonus.js +2 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +5 -5
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +20 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +2 -2
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -0
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
- package/dist/components/Calculator/RefinancingCalculatorForm.js +63 -0
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
- package/dist/components/Calculator/UnknownRate.js +1 -1
- package/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
- package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +23 -0
- package/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
- package/dist/components/Calculator/constants.d.ts +12 -0
- package/dist/components/Calculator/constants.js +25 -1
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/getMonthlyPayment.d.ts +8 -2
- package/dist/components/Calculator/getMonthlyPayment.js +7 -2
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/dist/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
- package/dist/components/Calculator/getRefinancingCalculatorLimitParams.js +10 -0
- package/dist/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
- package/dist/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
- package/dist/components/Calculator/getRefinancingCalculatorRateParams.js +16 -0
- package/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
- package/dist/components/Calculator/rangeHelpers.js +7 -3
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
- package/dist/components/Calculator/useRefinancingCalculatorParams.js +57 -0
- package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +10 -9
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
- package/dist/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
- package/dist/components/CarouselProductCard/alignTextStyle.js +4 -0
- package/dist/components/CarouselProductCard/alignTextStyle.js.map +1 -0
- package/dist/components/CarouselProductCard/alignTextStyle.mobile.d.ts +1 -0
- package/dist/components/CarouselProductCard/alignTextStyle.mobile.js +4 -0
- package/dist/components/CarouselProductCard/alignTextStyle.mobile.js.map +1 -0
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +1 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +2 -2
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/dist/components/ExchangeRateOffice/renderCurrencies.js +3 -3
- package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/dist/components/ExchangeRateOffice/renderTableHeader.js +1 -1
- package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/dist/components/Footer/Contacts.js +4 -3
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- 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/GracePeriod/GracePeriod.js +1 -1
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +1 -1
- package/dist/components/Header/HeaderSubMenu.js +1 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.js +4 -4
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/gapStyles.js +6 -6
- package/dist/components/HorizontalLayout/gapStyles.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +7 -9
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +6 -2
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -2
- package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/dist/components/MobileAppTile/renderList.js +1 -1
- package/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/renderInsuranceSumMonth.js +1 -1
- package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +2 -2
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +1 -1
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +1 -1
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
- package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +5 -5
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/renderStep.js +2 -2
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/dist/components/Tabs/renderGroupTab.js +1 -1
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TableTileHeader.js +1 -1
- package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +2 -8
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/content-page-repository/transformDocument.js +3 -0
- package/dist/content-page-repository/transformDocument.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +1 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/model/Attachment.d.ts +2 -0
- package/dist/model/ContentPageDef.d.ts +0 -2
- package/dist/model/JSXBlock.d.ts +2 -2
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/dist/ui-kit/BlockWrapper.js +1 -1
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +1 -1
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/LinkButton/LinkButton.js +2 -2
- package/dist/ui-kit/List/List.js +4 -4
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListItem.js +3 -3
- package/dist/ui-kit/List/ListItem.js.map +1 -1
- package/dist/ui-kit/LocationDialog/LocationDialog.js +3 -3
- package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/dist/ui-kit/Logo/renderTitle.js +1 -1
- package/dist/ui-kit/Logo/renderTitle.js.map +1 -1
- package/dist/ui-kit/RichText/RichTextProps.d.ts +7 -6
- package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/dist/utils/formatBytes.d.ts +1 -0
- package/dist/utils/formatBytes.js +13 -0
- package/dist/utils/formatBytes.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.d.ts +1 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js +2 -0
- package/lib/components/BenefitsBlock/benefitImageStyles.mobile.js.map +1 -0
- package/lib/components/Bonus/Bonus.js +2 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +2 -2
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.fixture.d.ts +1 -0
- package/lib/components/Calculator/Calculator.js +5 -5
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +20 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +2 -2
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +3 -3
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -0
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
- package/lib/components/Calculator/RefinancingCalculatorForm.js +61 -0
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
- package/lib/components/Calculator/UnknownRate.js +1 -1
- package/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
- package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +20 -0
- package/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
- package/lib/components/Calculator/constants.d.ts +12 -0
- package/lib/components/Calculator/constants.js +24 -0
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/getMonthlyPayment.d.ts +8 -2
- package/lib/components/Calculator/getMonthlyPayment.js +7 -2
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/lib/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
- package/lib/components/Calculator/getRefinancingCalculatorLimitParams.js +7 -0
- package/lib/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
- package/lib/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
- package/lib/components/Calculator/getRefinancingCalculatorRateParams.js +13 -0
- package/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
- package/lib/components/Calculator/rangeHelpers.js +7 -3
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
- package/lib/components/Calculator/useRefinancingCalculatorParams.js +54 -0
- package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +10 -9
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
- package/lib/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
- package/lib/components/CarouselProductCard/alignTextStyle.js +2 -0
- package/lib/components/CarouselProductCard/alignTextStyle.js.map +1 -0
- package/lib/components/CarouselProductCard/alignTextStyle.mobile.d.ts +1 -0
- package/lib/components/CarouselProductCard/alignTextStyle.mobile.js +2 -0
- package/lib/components/CarouselProductCard/alignTextStyle.mobile.js.map +1 -0
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +1 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +2 -2
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/lib/components/ExchangeRateOffice/renderCurrencies.js +3 -3
- package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/lib/components/ExchangeRateOffice/renderTableHeader.js +1 -1
- package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/lib/components/Footer/Contacts.js +4 -3
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- 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/GracePeriod/GracePeriod.js +1 -1
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +1 -1
- package/lib/components/Header/HeaderSubMenu.js +1 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.js +4 -4
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/gapStyles.js +6 -6
- package/lib/components/HorizontalLayout/gapStyles.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +7 -9
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +6 -2
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -2
- package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/lib/components/MobileAppTile/renderList.js +1 -1
- package/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/renderInsuranceSumMonth.js +1 -1
- package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +2 -2
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +1 -1
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +1 -1
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/SafeDepositRental/RenderRadioButtons.js +1 -1
- package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +5 -5
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/renderStep.js +2 -2
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/Tabs/renderGroupTab.js +1 -1
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TableTileHeader.js +1 -1
- package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +2 -8
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/content-page-repository/transformDocument.js +3 -0
- package/lib/content-page-repository/transformDocument.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +1 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/model/Attachment.d.ts +2 -0
- package/lib/model/ContentPageDef.d.ts +0 -2
- package/lib/model/JSXBlock.d.ts +2 -2
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/lib/ui-kit/BlockWrapper.js +1 -1
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +1 -1
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/LinkButton/LinkButton.js +2 -2
- package/lib/ui-kit/List/List.js +4 -4
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListItem.js +3 -3
- package/lib/ui-kit/List/ListItem.js.map +1 -1
- package/lib/ui-kit/LocationDialog/LocationDialog.js +3 -3
- package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/lib/ui-kit/Logo/renderTitle.js +1 -1
- package/lib/ui-kit/Logo/renderTitle.js.map +1 -1
- package/lib/ui-kit/RichText/RichTextProps.d.ts +7 -6
- package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/lib/utils/formatBytes.d.ts +1 -0
- package/lib/utils/formatBytes.js +10 -0
- package/lib/utils/formatBytes.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +103 -88
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +20 -1
- package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
- package/mobile/bundle/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
- package/mobile/bundle/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/constants.d.ts +12 -0
- package/mobile/bundle/components/Calculator/getMonthlyPayment.d.ts +8 -2
- package/mobile/bundle/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
- package/mobile/bundle/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
- package/mobile/bundle/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -2
- package/mobile/bundle/model/Attachment.d.ts +2 -0
- package/mobile/bundle/model/ContentPageDef.d.ts +0 -2
- package/mobile/bundle/model/JSXBlock.d.ts +2 -2
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +7 -6
- package/mobile/bundle/utils/formatBytes.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js +4 -0
- package/mobile/dist/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/dist/components/Bonus/Bonus.js +2 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +5 -5
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +20 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -0
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +63 -0
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
- package/mobile/dist/components/Calculator/UnknownRate.js +1 -1
- package/mobile/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +23 -0
- package/mobile/dist/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
- package/mobile/dist/components/Calculator/constants.d.ts +12 -0
- package/mobile/dist/components/Calculator/constants.js +25 -1
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +8 -2
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +7 -2
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/getRefinancingCalculatorLimitParams.js +10 -0
- package/mobile/dist/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
- package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js +16 -0
- package/mobile/dist/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
- package/mobile/dist/components/Calculator/rangeHelpers.js +7 -3
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +57 -0
- package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +10 -9
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
- package/mobile/dist/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
- package/mobile/dist/components/CarouselProductCard/alignTextStyle.js +4 -0
- package/mobile/dist/components/CarouselProductCard/alignTextStyle.js.map +1 -0
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +2 -2
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +3 -3
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +1 -1
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js +4 -3
- package/mobile/dist/components/Footer/Contacts.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/GracePeriod/GracePeriod.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js +4 -4
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/gapStyles.js +6 -6
- package/mobile/dist/components/HorizontalLayout/gapStyles.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +7 -9
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +6 -2
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/dist/components/MobileAppTile/renderList.js +1 -1
- package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +1 -1
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
- package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js +2 -2
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -1
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +1 -1
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js +3 -0
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +1 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/model/Attachment.d.ts +2 -0
- package/mobile/dist/model/ContentPageDef.d.ts +0 -2
- package/mobile/dist/model/JSXBlock.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +1 -1
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +2 -2
- package/mobile/dist/ui-kit/List/List.js +4 -4
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListItem.js +3 -3
- package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +3 -3
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/renderTitle.js +1 -1
- package/mobile/dist/ui-kit/Logo/renderTitle.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +7 -6
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/dist/utils/formatBytes.d.ts +1 -0
- package/mobile/dist/utils/formatBytes.js +13 -0
- package/mobile/dist/utils/formatBytes.js.map +1 -0
- package/mobile/fonts/mohave/Mohave-Regular.otf +0 -0
- package/mobile/fonts/mohave/Mohave-Regular.ttf +0 -0
- package/mobile/fonts/mohave/mohave.css +7 -0
- package/mobile/fonts/ubuntu/ubuntu.css +67 -0
- package/mobile/fonts/ubuntu/ubuntu.eot +0 -0
- package/mobile/fonts/ubuntu/ubuntu.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntu.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntu.woff2 +0 -0
- package/mobile/fonts/ubuntu/ubuntubold.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntubold.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntubold.woff2 +0 -0
- package/mobile/fonts/ubuntu/ubuntubolditalic.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntubolditalic.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntubolditalic.woff2 +0 -0
- package/mobile/fonts/ubuntu/ubuntuitalic.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntuitalic.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntuitalic.woff2 +0 -0
- package/mobile/fonts/ubuntu/ubuntulight.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntulight.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntulight.woff2 +0 -0
- package/mobile/fonts/ubuntu/ubuntulightitalic.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntulightitalic.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntulightitalic.woff2 +0 -0
- package/mobile/fonts/ubuntu/ubuntumedium.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntumedium.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntumedium.woff2 +0 -0
- package/mobile/fonts/ubuntu/ubuntumediumitalic.ttf +0 -0
- package/mobile/fonts/ubuntu/ubuntumediumitalic.woff +0 -0
- package/mobile/fonts/ubuntu/ubuntumediumitalic.woff2 +0 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +4 -4
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.d.ts +1 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js +2 -0
- package/mobile/lib/components/BenefitsBlock/benefitImageStyles.js.map +1 -0
- package/mobile/lib/components/Bonus/Bonus.js +2 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +5 -5
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +20 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -3
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +3 -1
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -0
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.d.ts +5 -0
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +61 -0
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -0
- package/mobile/lib/components/Calculator/UnknownRate.js +1 -1
- package/mobile/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js +20 -0
- package/mobile/lib/components/Calculator/checkRefinancingSourceBookRowCommonParams.js.map +1 -0
- package/mobile/lib/components/Calculator/constants.d.ts +12 -0
- package/mobile/lib/components/Calculator/constants.js +24 -0
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +8 -2
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +7 -2
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/getRefinancingCalculatorLimitParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/getRefinancingCalculatorLimitParams.js +7 -0
- package/mobile/lib/components/Calculator/getRefinancingCalculatorLimitParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.d.ts +13 -0
- package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js +13 -0
- package/mobile/lib/components/Calculator/getRefinancingCalculatorRateParams.js.map +1 -0
- package/mobile/lib/components/Calculator/rangeHelpers.js +7 -3
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.d.ts +43 -0
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +54 -0
- package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -0
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -3
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +10 -9
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +6 -4
- package/mobile/lib/components/CarouselProductCard/alignTextStyle.d.ts +1 -0
- package/mobile/lib/components/CarouselProductCard/alignTextStyle.js +2 -0
- package/mobile/lib/components/CarouselProductCard/alignTextStyle.js.map +1 -0
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +2 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +2 -2
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -2
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +1 -1
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +3 -3
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +1 -1
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js +4 -3
- package/mobile/lib/components/Footer/Contacts.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/GracePeriod/GracePeriod.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js +4 -4
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/gapStyles.js +6 -6
- package/mobile/lib/components/HorizontalLayout/gapStyles.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +7 -9
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +6 -2
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/lib/components/MobileAppTile/renderList.js +1 -1
- package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +1 -1
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +1 -1
- package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js +2 -2
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -1
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +1 -1
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js +3 -0
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +1 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/model/Attachment.d.ts +2 -0
- package/mobile/lib/model/ContentPageDef.d.ts +0 -2
- package/mobile/lib/model/JSXBlock.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -3
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +1 -1
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +2 -2
- package/mobile/lib/ui-kit/List/List.js +4 -4
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListItem.js +3 -3
- package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +3 -3
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/renderTitle.js +1 -1
- package/mobile/lib/ui-kit/Logo/renderTitle.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +7 -6
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/lib/utils/formatBytes.d.ts +1 -0
- package/mobile/lib/utils/formatBytes.js +10 -0
- package/mobile/lib/utils/formatBytes.js.map +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +4 -4
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
- package/mobile/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/mobile/src/components/Bonus/Bonus.tsx +2 -2
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -3
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +2 -2
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +9 -7
- 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 +7 -7
- package/mobile/src/components/Calculator/CalculatorContent.ts +25 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +5 -5
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +4 -1
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +147 -0
- package/mobile/src/components/Calculator/UnknownRate.tsx +2 -2
- package/mobile/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +45 -0
- package/mobile/src/components/Calculator/constants.ts +26 -0
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +14 -4
- package/mobile/src/components/Calculator/getRefinancingCalculatorLimitParams.ts +25 -0
- package/mobile/src/components/Calculator/getRefinancingCalculatorRateParams.ts +40 -0
- package/mobile/src/components/Calculator/rangeHelpers.ts +7 -3
- package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +136 -0
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +13 -17
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +2 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +36 -32
- package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +6 -4
- package/mobile/src/components/CarouselProductCard/alignTextStyle.tsx +1 -0
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +5 -5
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
- package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +1 -1
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +4 -9
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +2 -2
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +4 -4
- package/mobile/src/components/ContentPage/ContentPage.tsx +1 -1
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +5 -5
- package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +3 -3
- package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +6 -6
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +4 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/mobile/src/components/Footer/Contacts.tsx +7 -6
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderBurger.tsx +1 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +3 -3
- package/mobile/src/components/Headline/Headline.tsx +1 -1
- package/mobile/src/components/Headline/headlineVersionStyles.ts +4 -4
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
- package/mobile/src/components/HorizontalLayout/gapStyles.ts +6 -6
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +4 -4
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +10 -19
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +8 -1
- package/mobile/src/components/LinkDocs/LinkDocs.ui.json +3 -0
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +0 -2
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
- package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/mobile/src/components/MobileAppTile/renderList.tsx +1 -1
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.ui.json +3 -0
- package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +1 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlock.ui.json +10 -0
- package/mobile/src/components/ProductTile/ProductTile.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTile.ui.json +3 -0
- package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +5 -5
- package/mobile/src/components/StepsBlock/renderStep.tsx +7 -7
- package/mobile/src/components/Tabs/renderGroupTab.tsx +1 -1
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +1 -1
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -2
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/mobile/src/components/Tile/Tile.tsx +1 -1
- package/mobile/src/components/Tile/Tile.ui.json +10 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/mobile/src/content-page-repository/transformDocument.ts +3 -0
- package/mobile/src/content-page-repository/transformImg.ts +1 -1
- package/mobile/src/model/Attachment.ts +2 -0
- package/mobile/src/model/ContentPageDef.ts +1 -4
- package/mobile/src/model/JSXBlock.ts +2 -2
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
- package/mobile/src/ui-kit/BlockWrapper.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +3 -3
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +4 -6
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -4
- package/mobile/src/ui-kit/Input/Input.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +2 -2
- package/mobile/src/ui-kit/List/List.tsx +4 -4
- package/mobile/src/ui-kit/List/ListItem.tsx +3 -3
- package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -5
- package/mobile/src/ui-kit/Logo/renderTitle.tsx +1 -1
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +8 -6
- package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
- package/mobile/src/utils/formatBytes.ts +12 -0
- package/package.json +5 -3
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +4 -4
- package/src/components/ApplicationForm/ResponseNotification.tsx +3 -3
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +6 -6
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +0 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +5 -5
- package/src/components/BenefitsBlock/benefitImageStyles.mobile.tsx +1 -0
- package/src/components/BenefitsBlock/benefitImageStyles.tsx +1 -0
- package/src/components/Bonus/Bonus.tsx +2 -2
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -3
- package/src/components/BusinessBlock/BusinessBlock.tsx +2 -2
- package/src/components/BusinessBlock/BusinessCard.tsx +9 -7
- package/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +2 -2
- package/src/components/Calculator/Calculator.fixture.tsx +40 -0
- package/src/components/Calculator/Calculator.tsx +7 -7
- package/src/components/Calculator/CalculatorContent.ts +25 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/src/components/Calculator/DepositCalculatorForm.tsx +5 -5
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +4 -1
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +147 -0
- package/src/components/Calculator/UnknownRate.tsx +2 -2
- package/src/components/Calculator/checkRefinancingSourceBookRowCommonParams.ts +45 -0
- package/src/components/Calculator/constants.ts +26 -0
- package/src/components/Calculator/getMonthlyPayment.ts +14 -4
- package/src/components/Calculator/getRefinancingCalculatorLimitParams.ts +25 -0
- package/src/components/Calculator/getRefinancingCalculatorRateParams.ts +40 -0
- package/src/components/Calculator/rangeHelpers.ts +7 -3
- package/src/components/Calculator/useRefinancingCalculatorParams.ts +136 -0
- package/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -1
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +2 -2
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +13 -17
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/src/components/CarouselLinks/CarouselLinks.tsx +2 -2
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +2 -2
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +36 -32
- package/src/components/CarouselProductCard/CarouselProductCardContent.ts +6 -4
- package/src/components/CarouselProductCard/alignTextStyle.mobile.tsx +1 -0
- package/src/components/CarouselProductCard/alignTextStyle.tsx +1 -0
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +5 -5
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +4 -9
- package/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +2 -2
- package/src/components/ContactsBlock/ContactsBlock.tsx +4 -4
- package/src/components/ContentPage/ContentPage.tsx +1 -1
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +5 -5
- package/src/components/ExchangeRateOffice/renderCurrencies.tsx +3 -3
- package/src/components/ExchangeRateOffice/renderTableHeader.tsx +1 -1
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +6 -6
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +4 -4
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/src/components/Footer/Contacts.tsx +7 -6
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/Footer.tsx +7 -7
- package/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/Header.tsx +4 -4
- package/src/components/Header/HeaderBurger.tsx +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +3 -3
- package/src/components/Headline/Headline.tsx +1 -1
- package/src/components/Headline/headlineVersionStyles.ts +4 -4
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
- package/src/components/HorizontalLayout/gapStyles.ts +6 -6
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +4 -4
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +10 -19
- package/src/components/LinkDocs/LinkDocs.tsx +8 -1
- package/src/components/LinkDocs/LinkDocs.ui.json +3 -0
- package/src/components/LinkDocs/LinkDocsContent.ts +0 -2
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +3 -0
- package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
- package/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/src/components/MobileAppTile/renderList.tsx +1 -1
- package/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/PictureText/PictureText.ui.json +3 -0
- package/src/components/PictureText/renderInsuranceSumMonth.tsx +1 -1
- package/src/components/Placeholder/Placeholder.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.ui.json +10 -0
- package/src/components/ProductGallery/ProductGallery.tsx +2 -2
- package/src/components/ProductTile/ProductTile.tsx +1 -1
- package/src/components/ProductTile/ProductTile.ui.json +3 -0
- package/src/components/PromoTile/PromoTile.tsx +1 -1
- package/src/components/RollupItem/RollupItem.tsx +2 -2
- package/src/components/SafeDepositRental/RenderRadioButtons.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +5 -5
- package/src/components/StepsBlock/StepsBlock.tsx +20 -20
- package/src/components/StepsBlock/renderStep.tsx +7 -7
- package/src/components/Tabs/renderGroupTab.tsx +1 -1
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +1 -1
- package/src/components/TariffsTable/TableTileHeader.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -2
- package/src/components/TariffsTable/TariffsTable.tsx +4 -19
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +2 -2
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/src/components/Tile/Tile.tsx +1 -1
- package/src/components/Tile/Tile.ui.json +10 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/src/content-page-repository/transformDocument.ts +3 -0
- package/src/content-page-repository/transformImg.ts +1 -1
- package/src/model/Attachment.ts +2 -0
- package/src/model/ContentPageDef.ts +1 -4
- package/src/model/JSXBlock.ts +2 -2
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +3 -3
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
- package/src/ui-kit/BlockWrapper.tsx +1 -1
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
- package/src/ui-kit/Dialog/Dialog.tsx +3 -3
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +4 -6
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -4
- package/src/ui-kit/Input/Input.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/LinkButton/LinkButton.tsx +2 -2
- package/src/ui-kit/List/List.fixture.tsx +4 -4
- package/src/ui-kit/List/List.tsx +4 -4
- package/src/ui-kit/List/ListItem.tsx +3 -3
- package/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -5
- package/src/ui-kit/Logo/renderTitle.tsx +1 -1
- package/src/ui-kit/NumberInput/NumberInput.fixture.tsx +1 -1
- package/src/ui-kit/RichText/RichText.fixture.tsx +1 -1
- package/src/ui-kit/RichText/RichTextProps.ts +8 -6
- package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/ui-kit/Tags/Tags.fixture.tsx +1 -1
- package/src/ui-kit/YandexMap/renderSearchField.tsx +2 -1
- package/src/utils/formatBytes.ts +12 -0
- package/tailwind.config.cjs +15 -12
package/bundle/bundle.umd.js
CHANGED
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
transparent: 'bg-transparent text-primary-text',
|
|
338
338
|
'': '',
|
|
339
339
|
};
|
|
340
|
-
const BlockWrapper = JSX(({ className, version = 'primary', isTheme = true, defaultPadding = 'p-
|
|
340
|
+
const BlockWrapper = JSX(({ className, version = 'primary', isTheme = true, defaultPadding = 'p-xl', padding, block, tag = 'section', role, children, }) => {
|
|
341
341
|
const Tag = tag;
|
|
342
342
|
const ref = useBlockIntersectionObserver(block);
|
|
343
343
|
const [isHidden, setHidden] = useState(false);
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
|
|
623
623
|
const ButtonInner = JSX((props) => {
|
|
624
624
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
625
|
-
return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-2'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-
|
|
625
|
+
return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-2'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
626
626
|
});
|
|
627
627
|
const getButtonStyle = (props) => {
|
|
628
628
|
const { version, aboveText, rounded } = props;
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
const validStyle = valid
|
|
688
688
|
? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
|
|
689
689
|
: 'border-error';
|
|
690
|
-
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-
|
|
690
|
+
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx("input", { className: style('w-full border rounded-md text-primary-text outline-none p-4', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
|
|
691
691
|
});
|
|
692
692
|
|
|
693
693
|
const InputControl = JSX(({ className, label, value = '', error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(Input, { type: "text", "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
|
|
@@ -798,7 +798,7 @@
|
|
|
798
798
|
onChange && onChange(option);
|
|
799
799
|
}, [onChange]);
|
|
800
800
|
const isSelected = (option) => option.key === value?.key;
|
|
801
|
-
return (jsxs("div", { className: className, ref: wrapperRef, children: [label ? (jsx("div", { className: "mb-
|
|
801
|
+
return (jsxs("div", { className: className, ref: wrapperRef, children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null, jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), children: [jsxs("div", { className: style('text-l flex justify-between items-center text-primary-text cursor-pointer', getBorderStyle(isBorder, valid)), onClick: toggle, children: [jsx("p", { className: "p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), name: "ArrowUpIcon", width: "16", height: "16" })] }), options?.length ? (jsx("div", { className: style('h-0', isOpen ? '' : 'overflow-hidden'), children: 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)]", children: options.map(renderOption(handleChange, isOpen, isSelected)) }) })) : null] })] }));
|
|
802
802
|
});
|
|
803
803
|
const renderOption = (handleChange, isOpen, isSelected) => (option, i) => (jsxs("div", { onClick: () => {
|
|
804
804
|
handleChange(option);
|
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
const handleChange = useCallback((e) => {
|
|
972
972
|
onChange && onChange(parseDecimal(e.target?.value));
|
|
973
973
|
}, [onChange]);
|
|
974
|
-
return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('m-0 mt-
|
|
974
|
+
return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('m-0 mt-xs font-sans text-h3 w-full h-14', 'border border-solid border-gray rounded-md outline-none', 'p-0 pl-4 box-border', 'text-primary-text hover:border-primary-hover focus:border-primary-text', DISABLED_INPUT_CLASSES), disabled: disabled, onInput: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
|
|
975
975
|
});
|
|
976
976
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
977
977
|
const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-2", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
@@ -1104,7 +1104,7 @@
|
|
|
1104
1104
|
return (jsxs("div", { className: "mb-3 sm:mb-6", children: [jsxs("div", { className: "mb-4 sm:flex sm:items-center sm:gap-6", children: [jsx(Checkbox, { className: "mb-3 sm:mb-0", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", ...field('currencyControl') }), jsx(Checkbox, { className: "mb-3 sm:mb-0", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", ...field('documentaryOperations') }), jsx(Checkbox, { className: "mb-3 sm:mb-0", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", ...field('conversionOperations') })] }), 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: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text", value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }));
|
|
1105
1105
|
};
|
|
1106
1106
|
|
|
1107
|
-
const renderWedDataOrganization = (field) => (jsxs("div", { children: [jsxs("div", { className: "sm:flex sm:justify-between sm:gap-
|
|
1107
|
+
const renderWedDataOrganization = (field) => (jsxs("div", { children: [jsxs("div", { className: "sm:flex sm:justify-between sm:gap-lg", children: [jsx("div", { className: "sm:w-1/2", children: jsx(InputControl, { className: "shrink-0 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("div", { className: "sm:w-1/2", children: jsx(InputControl, { className: "shrink-0 w-full mb-s", label: "\u0424\u0418\u041E", ...withValidator(field('name'), nameValidator) }) })] }), jsxs("div", { className: "sm:flex sm:justify-between sm:gap-lg sm:mb-2xl", children: [jsx("div", { className: "sm:w-1/2", children: jsx(PhoneInputControl, { className: "shrink-0 w-full mb-s", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }) }), jsx("div", { className: "sm:w-1/2", children: jsx(InputControl, { className: "shrink-0 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) }) })] })] }));
|
|
1108
1108
|
|
|
1109
1109
|
const initialFormState = {
|
|
1110
1110
|
fullName: '',
|
|
@@ -1137,13 +1137,13 @@
|
|
|
1137
1137
|
});
|
|
1138
1138
|
}, [onSubmit]);
|
|
1139
1139
|
const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
|
|
1140
|
-
return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "sm:text-center mb-
|
|
1140
|
+
return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "sm:text-center mb-m" }), renderWedDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "sm:text-center mb-m" }), renderQuestionsInterested(field), jsxs("div", { className: "flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9", children: [renderSubmitButton(button, 'mb-m sm:mr-lg sm:mb-0'), 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: "sm:text-center mb-m" }), renderContacts()] }));
|
|
1141
1141
|
});
|
|
1142
1142
|
|
|
1143
1143
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
1144
1144
|
const responseOK = responseType === 'OK';
|
|
1145
1145
|
const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
|
|
1146
|
-
return (jsxs("div", { className: `flex items-center mt-
|
|
1146
|
+
return (jsxs("div", { className: `flex items-center mt-lg p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponceOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponceFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-1" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
|
|
1147
1147
|
});
|
|
1148
1148
|
|
|
1149
1149
|
const COMPONENTS_MAP = {
|
|
@@ -1162,7 +1162,7 @@
|
|
|
1162
1162
|
setResponseType(status);
|
|
1163
1163
|
return status;
|
|
1164
1164
|
}, []);
|
|
1165
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-
|
|
1165
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [title ? (jsx(Heading, { headingType: "h3", title: title, className: "mb-4 sm:mb-8 sm:text-center" })) : null, COMPONENTS_MAP[typeForm]({ button, link, onSubmit: handleSubmit }), responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
|
|
1166
1166
|
});
|
|
1167
1167
|
|
|
1168
1168
|
const iconBgStyles = {
|
|
@@ -1181,21 +1181,21 @@
|
|
|
1181
1181
|
|
|
1182
1182
|
const defaultIconSize = 44;
|
|
1183
1183
|
|
|
1184
|
-
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-
|
|
1185
|
-
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-
|
|
1186
|
-
const renderDescription$
|
|
1184
|
+
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: "text-center", title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full sm:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
1185
|
+
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center md:basis-1/2 md:max-w-[400px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
|
|
1186
|
+
const renderDescription$3 = (description) => {
|
|
1187
1187
|
const benefitType = description?.benefitType || null;
|
|
1188
|
-
return description && benefitType ? (jsx("div", { className: "mt-
|
|
1188
|
+
return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
1189
1189
|
? renderListBenefit(description)
|
|
1190
1190
|
: renderTextBenefit(description) })) : null;
|
|
1191
1191
|
};
|
|
1192
1192
|
const renderTextBenefit = (description) => description?.name || null;
|
|
1193
1193
|
const renderListBenefit = (description) => {
|
|
1194
|
-
const listStyleType = description?.bullets ? 'list-disc pl-
|
|
1194
|
+
const listStyleType = description?.bullets ? 'list-disc pl-3xl' : '';
|
|
1195
1195
|
return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: _ }, `benefitListItem-${i}`))) })) : null;
|
|
1196
1196
|
};
|
|
1197
1197
|
|
|
1198
|
-
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-
|
|
1198
|
+
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;
|
|
1199
1199
|
const renderButton = (buttonClassName = '') => (button, index) => {
|
|
1200
1200
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
1201
1201
|
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
@@ -1210,25 +1210,25 @@
|
|
|
1210
1210
|
title: { headingType: 'h0', as: 'h1' },
|
|
1211
1211
|
descriptionSize: 'text-h5',
|
|
1212
1212
|
descriptionWeight: 'font-normal',
|
|
1213
|
-
descriptionStyle: 'mt-
|
|
1213
|
+
descriptionStyle: 'mt-xl',
|
|
1214
1214
|
},
|
|
1215
1215
|
XL: {
|
|
1216
1216
|
title: { headingType: 'h1', as: 'h1' },
|
|
1217
1217
|
descriptionSize: 'text-xl',
|
|
1218
1218
|
descriptionWeight: 'font-light',
|
|
1219
|
-
descriptionStyle: 'mt-
|
|
1219
|
+
descriptionStyle: 'mt-m',
|
|
1220
1220
|
},
|
|
1221
1221
|
L: {
|
|
1222
1222
|
title: { headingType: 'h2', as: 'h2' },
|
|
1223
1223
|
descriptionSize: 'text-xl',
|
|
1224
1224
|
descriptionWeight: 'font-light',
|
|
1225
|
-
descriptionStyle: 'mt-
|
|
1225
|
+
descriptionStyle: 'mt-m',
|
|
1226
1226
|
},
|
|
1227
1227
|
M: {
|
|
1228
1228
|
title: { headingType: 'h3', as: 'h2' },
|
|
1229
1229
|
descriptionSize: 'text-xl',
|
|
1230
1230
|
descriptionWeight: 'font-light',
|
|
1231
|
-
descriptionStyle: 'mt-
|
|
1231
|
+
descriptionStyle: 'mt-s',
|
|
1232
1232
|
},
|
|
1233
1233
|
S: {
|
|
1234
1234
|
title: { headingType: 'h4', as: 'h2' },
|
|
@@ -1258,13 +1258,13 @@
|
|
|
1258
1258
|
const Headline = JSX(({ className, version = '', headlineVersion = 'XL', title, description, align = 'text-center', as, isPadding = true, isTheme = false, ...rest }) => {
|
|
1259
1259
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
1260
1260
|
const descriptionStyle = { marginTop: versionStyle.descriptionStyle };
|
|
1261
|
-
return (jsxs(BlockWrapper, { className: className, defaultPadding: isPadding ? 'p-
|
|
1261
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: isPadding ? '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] }));
|
|
1262
1262
|
});
|
|
1263
1263
|
|
|
1264
1264
|
const Bonus = JSX((props) => {
|
|
1265
1265
|
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
1266
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-
|
|
1267
|
-
? bonusItems.map((_, i) => (jsxs("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: [_?.title ? jsx(Text, { size: "text-h4", children: _.title }) : null, _?.description ? (jsx("div", { className: "mt-
|
|
1266
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M" }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
|
|
1267
|
+
? bonusItems.map((_, i) => (jsxs("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: [_?.title ? jsx(Text, { size: "text-h4", children: _.title }) : null, _?.description ? (jsx("div", { className: "mt-xs", children: jsx(Paragraph, { size: "text-xl", font: "font-light", children: _.description }) })) : null, jsxs("div", { className: "flex justify-between items-end mt-3", children: [renderButtonsSection(_?.buttons), _.bonusItemContent?.bonusType
|
|
1268
1268
|
? renderBonusItemContent(_.bonusItemContent)
|
|
1269
1269
|
: null] })] }, String(i))))
|
|
1270
1270
|
: null })] }) }));
|
|
@@ -1304,20 +1304,20 @@
|
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
1306
|
|
|
1307
|
-
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className:
|
|
1307
|
+
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { className: "mb-4 sm:mb-3xl", isPadding: false, title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
|
|
1308
1308
|
? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
|
|
1309
1309
|
: null] })));
|
|
1310
1310
|
|
|
1311
1311
|
const BusinessCard = JSX((props) => {
|
|
1312
1312
|
const { title, image, cardItems, button } = props;
|
|
1313
|
-
return (jsxs("div", { className: "border-gray border p-
|
|
1313
|
+
return (jsxs("div", { className: "border-gray border p-4xl w-1/2 space-y-lg", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? jsx(Img, { image: image }) : null] })) : null, title ? jsx(Heading, { headingType: "h4", title: title }) : null, cardItems?.length ? (jsx("ul", { className: "space-y-s", children: cardItems.map((_, i) => renderItem(_, String(i))) })) : null, renderButtonsSection([button])] }));
|
|
1314
1314
|
});
|
|
1315
1315
|
const renderItem = (item, key) => {
|
|
1316
1316
|
const { icon, text } = item;
|
|
1317
|
-
return (jsxs("li", { className: "flex items-center gap-
|
|
1317
|
+
return (jsxs("li", { className: "flex items-center gap-s last:mb-0", children: [icon?.icon ? (jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider" })) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx(Text, { size: "text-xl", font: "font-light", children: text })] }, key));
|
|
1318
1318
|
};
|
|
1319
1319
|
|
|
1320
|
-
const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-
|
|
1320
|
+
const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-5", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
1321
1321
|
|
|
1322
1322
|
const ButtonsBlock = JSX(({ buttons, className, ...rest }) => (jsx(BlockWrapper, { className: style('!bg-transparent', className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) })));
|
|
1323
1323
|
|
|
@@ -1360,8 +1360,17 @@
|
|
|
1360
1360
|
const DEFAULT_MIN_SUM$1 = 10000;
|
|
1361
1361
|
const DEFAULT_MAX_SUM$1 = 5000000;
|
|
1362
1362
|
const CREDIT_DEFAULT_SUM = 200000;
|
|
1363
|
+
const REFINANCING_DEFAULT_SUM = 700000;
|
|
1364
|
+
const REFINANCING_DEFAULT_MAX_SUM = 3000000;
|
|
1365
|
+
const REFINANCING_OLD_MIN_SUM = 0;
|
|
1366
|
+
const REFINANCING_OLD_DEFAULT_SUM = 0;
|
|
1367
|
+
const REFINANCING_OLD_MAX_SUM = 2500000;
|
|
1368
|
+
const REFINANCING_EXTRA_MIN_SUM = 0;
|
|
1369
|
+
const REFINANCING_EXTRA_MAX_SUM = 500000;
|
|
1363
1370
|
const DEPOSIT_DEFAULT_SUM = 20000;
|
|
1364
1371
|
const DEFAULT_MIN_MONTHS$1 = 13;
|
|
1372
|
+
const DEFAULT_REFINANCING_MIN_MONTHS = 13;
|
|
1373
|
+
const DEFAULT_REFINANCING_MONTHS = 48;
|
|
1365
1374
|
const DEFAULT_MAX_MONTHS$1 = 60;
|
|
1366
1375
|
const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS$1 - DEFAULT_MIN_MONTHS$1) / 2);
|
|
1367
1376
|
const BUSINESS_DEFAULT_SUM = 100000;
|
|
@@ -1384,6 +1393,20 @@
|
|
|
1384
1393
|
isStateEmployee: false,
|
|
1385
1394
|
isInsurance: true,
|
|
1386
1395
|
};
|
|
1396
|
+
const DEFAULT_REFINANCING_CALCULATOR_PARAMS = {
|
|
1397
|
+
minSum: DEFAULT_MIN_SUM$1,
|
|
1398
|
+
maxSum: REFINANCING_DEFAULT_MAX_SUM,
|
|
1399
|
+
minSumOld: REFINANCING_OLD_MIN_SUM,
|
|
1400
|
+
maxSumOld: REFINANCING_OLD_MAX_SUM,
|
|
1401
|
+
minSumExtra: REFINANCING_EXTRA_MIN_SUM,
|
|
1402
|
+
maxSumExtra: REFINANCING_EXTRA_MAX_SUM,
|
|
1403
|
+
minMonths: DEFAULT_REFINANCING_MIN_MONTHS,
|
|
1404
|
+
maxMonths: DEFAULT_MAX_MONTHS$1,
|
|
1405
|
+
rate: 7.5,
|
|
1406
|
+
isExtraMoney: false,
|
|
1407
|
+
isSalaryClient: false,
|
|
1408
|
+
isInsurance: true,
|
|
1409
|
+
};
|
|
1387
1410
|
const DEFAULT_TRAVEL_MIN_SUM = 6000;
|
|
1388
1411
|
const DEFAULT_REST_MIN_SUM = 6000;
|
|
1389
1412
|
const DEFAULT_BONUS_CALCULATOR_PARAMS = {
|
|
@@ -1423,6 +1446,7 @@
|
|
|
1423
1446
|
const BONUS_CALC_DEFAULT_DIR = 'bonus-calculator-data';
|
|
1424
1447
|
const DEPOSIT_CALC_DEFAULT_DIR = 'deposit-calculator-data';
|
|
1425
1448
|
const BUSINESS_DEPOSIT_CALC_DEFAULT_DIR = 'business-calculator-data';
|
|
1449
|
+
const REFINANCING_CALC_DEFAULT_DIR = 'refinancing-calculator-data';
|
|
1426
1450
|
|
|
1427
1451
|
const Rate = JSX(({ rate, title = 'Ставка', unit, depositeName, isShowDepositeName, rateBlockClassName, fractionDigits = 2, }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex justify-start gradient-color-text", children: [jsx("span", { className: style('font-mohave text-title-huge pr-6 -mt-4', rateBlockClassName), children: String(rate.toFixed(fractionDigits)).replace('.', ',') }), unit ? jsx("span", { className: "text-7xl", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-7 w-full text-center whitespace-nowrap", children: depositeName })) : null] })] })));
|
|
1428
1452
|
|
|
@@ -1473,7 +1497,7 @@
|
|
|
1473
1497
|
restExpenseValue: DEFAULT_REST_MIN_SUM,
|
|
1474
1498
|
});
|
|
1475
1499
|
const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } = useBonusCalculatorParams(userInputParams, sourceBookDir);
|
|
1476
|
-
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-
|
|
1500
|
+
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-2/5", children: [renderWantedSumInput({
|
|
1477
1501
|
title: 'Сумма покупок в категории путешествия, ₽',
|
|
1478
1502
|
min: minSumTravel,
|
|
1479
1503
|
max: maxSumTravel,
|
|
@@ -1488,7 +1512,7 @@
|
|
|
1488
1512
|
step: 500,
|
|
1489
1513
|
isShowItems: false,
|
|
1490
1514
|
...field('restExpenseValue'),
|
|
1491
|
-
})] }), jsx("div", { children: 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: "w-
|
|
1515
|
+
})] }), jsx("div", { children: 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: "w-96", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
|
|
1492
1516
|
});
|
|
1493
1517
|
|
|
1494
1518
|
const STEP_DAYS = 1;
|
|
@@ -1511,12 +1535,15 @@
|
|
|
1511
1535
|
],
|
|
1512
1536
|
});
|
|
1513
1537
|
|
|
1514
|
-
const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx("div", { className: "mt-
|
|
1538
|
+
const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx("div", { className: "mt-2xs pt-2xs pl-lg pb-xs", children: jsx(Icon, { name: "PercentIcon", width: "90", height: "85" }) }), jsx("div", { className: "w-[250px] mt-m", children: jsxs(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] }) })] })));
|
|
1515
1539
|
|
|
1516
1540
|
const defaultDiscriminator = (_) => _;
|
|
1517
1541
|
const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
1518
1542
|
const max = maxBy();
|
|
1519
1543
|
|
|
1544
|
+
const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
|
|
1545
|
+
const min = minBy();
|
|
1546
|
+
|
|
1520
1547
|
const mergeIntervals = (intervals) => {
|
|
1521
1548
|
const result = [...intervals];
|
|
1522
1549
|
result.sort(([a], [c]) => a - c);
|
|
@@ -1534,9 +1561,6 @@
|
|
|
1534
1561
|
return result;
|
|
1535
1562
|
};
|
|
1536
1563
|
|
|
1537
|
-
const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
|
|
1538
|
-
const min = minBy();
|
|
1539
|
-
|
|
1540
1564
|
const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
|
|
1541
1565
|
? {
|
|
1542
1566
|
[minKey]: limitParams[minKey],
|
|
@@ -1544,8 +1568,12 @@
|
|
|
1544
1568
|
}
|
|
1545
1569
|
: getRangeByKeys([minKey, maxKey], rateRows);
|
|
1546
1570
|
const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
1547
|
-
[minKey]: rows.length
|
|
1548
|
-
|
|
1571
|
+
[minKey]: rows.length
|
|
1572
|
+
? min(rows.filter((row) => typeof row[minKey] === 'number').map((row) => row[minKey]))
|
|
1573
|
+
: 0,
|
|
1574
|
+
[maxKey]: rows.length
|
|
1575
|
+
? max(rows.filter((row) => typeof row[minKey] === 'number').map((row) => row[maxKey]))
|
|
1576
|
+
: 0,
|
|
1549
1577
|
});
|
|
1550
1578
|
const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
1551
1579
|
|
|
@@ -1610,7 +1638,7 @@
|
|
|
1610
1638
|
});
|
|
1611
1639
|
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
|
|
1612
1640
|
const { income, finalSum, rate, depositeName, isShowUnknownRate } = calculatorParams;
|
|
1613
|
-
return (jsxs("section", { className: className, children: [jsxs("div", { className: "flex justify-between", children: [jsxs("div", { className: "w-
|
|
1641
|
+
return (jsxs("section", { className: className, children: [jsxs("div", { className: "flex justify-between", children: [jsxs("div", { className: "w-2/5", children: [renderWantedSumInput({
|
|
1614
1642
|
title: 'Сумма вклада, ₽',
|
|
1615
1643
|
min: calculatorParams.minSum,
|
|
1616
1644
|
max: calculatorParams.maxSum,
|
|
@@ -1626,7 +1654,7 @@
|
|
|
1626
1654
|
title: 'Выплата процентов',
|
|
1627
1655
|
orientation: 'vertical',
|
|
1628
1656
|
...field('isMonthlyInterestPayment'),
|
|
1629
|
-
})] })] }), isShowUnknownRate ? (jsx(UnknownRate, {})) : (jsx(Rate, { rate: rate, depositeName: depositeName, isShowDepositeName: isShowDepositeName, rateBlockClassName: "tracking-[-25px]", unit: "%" })), jsxs("div", { className: "w-
|
|
1657
|
+
})] })] }), isShowUnknownRate ? (jsx(UnknownRate, {})) : (jsx(Rate, { rate: rate, depositeName: depositeName, isShowDepositeName: isShowDepositeName, rateBlockClassName: "tracking-[-25px]", unit: "%" })), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), jsx("div", { className: "mt-7", children: renderFootnote(footnote) })] })] }), jsx("div", { className: "mt-5", children: renderFootnote(bottomFootnote) })] }));
|
|
1630
1658
|
});
|
|
1631
1659
|
const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { className: "mt-3", disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal }), jsx(Checkbox, { className: "mt-3", text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043C\u0430\u043B\u044B\u043C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435\u043C", ...field('isSmallBusiness'), value: calculatorParams.isSmallBusiness })] }));
|
|
1632
1660
|
|
|
@@ -1642,27 +1670,27 @@
|
|
|
1642
1670
|
],
|
|
1643
1671
|
});
|
|
1644
1672
|
|
|
1645
|
-
const checkCreditSourceBookRowCommonParams = (props) => checkRowParam({
|
|
1673
|
+
const checkCreditSourceBookRowCommonParams = (props) => checkRowParam$1({
|
|
1646
1674
|
...props,
|
|
1647
1675
|
fieldKey: 'isSalaryClient',
|
|
1648
1676
|
viewSettingFieldKey: 'isShowSalaryClient',
|
|
1649
1677
|
}) &&
|
|
1650
|
-
checkRowParam({
|
|
1678
|
+
checkRowParam$1({
|
|
1651
1679
|
...props,
|
|
1652
1680
|
fieldKey: 'isStateEmployee',
|
|
1653
1681
|
viewSettingFieldKey: 'isShowStateEmployee',
|
|
1654
1682
|
}) &&
|
|
1655
|
-
checkRowParam({
|
|
1683
|
+
checkRowParam$1({
|
|
1656
1684
|
...props,
|
|
1657
1685
|
fieldKey: 'isPensionClient',
|
|
1658
1686
|
viewSettingFieldKey: 'isShowPensionClient',
|
|
1659
1687
|
}) &&
|
|
1660
|
-
checkRowParam({
|
|
1688
|
+
checkRowParam$1({
|
|
1661
1689
|
...props,
|
|
1662
1690
|
fieldKey: 'isInsurance',
|
|
1663
1691
|
viewSettingFieldKey: 'isShowInsurance',
|
|
1664
1692
|
});
|
|
1665
|
-
const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
|
|
1693
|
+
const checkRowParam$1 = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
|
|
1666
1694
|
const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
|
|
1667
1695
|
return isExclude || userInputParams[fieldKey] === row[fieldKey];
|
|
1668
1696
|
};
|
|
@@ -1686,13 +1714,18 @@
|
|
|
1686
1714
|
* https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
|
|
1687
1715
|
*/
|
|
1688
1716
|
const getMonthlyPayment = (rate, params) => {
|
|
1689
|
-
const { isAnnuity, moneyValue, monthsValue } = params;
|
|
1717
|
+
const { isAnnuity, moneyValue, monthsValue, moneyExtra } = params;
|
|
1690
1718
|
if (rate === 0) {
|
|
1691
1719
|
return 0;
|
|
1692
1720
|
}
|
|
1693
1721
|
else if (isAnnuity) {
|
|
1694
1722
|
const i = rate / MONTHLY_INTEREST_RATE; // Используется значение ставки в процентах
|
|
1695
|
-
|
|
1723
|
+
if (moneyExtra) {
|
|
1724
|
+
return (moneyValue + moneyExtra) * (i + i / (Math.pow(1 + i, monthsValue) - 1));
|
|
1725
|
+
}
|
|
1726
|
+
else {
|
|
1727
|
+
return moneyValue * (i + i / (Math.pow(1 + i, monthsValue) - 1));
|
|
1728
|
+
}
|
|
1696
1729
|
}
|
|
1697
1730
|
else {
|
|
1698
1731
|
return Math.round(moneyValue / monthsValue) + moneyValue * (rate / (MONTHS_IN_YEAR * 100)); // Используется значение ставки (rate) в процентах, делённое на сто.
|
|
@@ -1746,7 +1779,7 @@
|
|
|
1746
1779
|
monthsValue: DEFAULT_MONTHS,
|
|
1747
1780
|
});
|
|
1748
1781
|
const calculatorParams = useCreditCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
|
|
1749
|
-
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-
|
|
1782
|
+
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-2/5", children: [renderWantedSumInput({
|
|
1750
1783
|
title: 'Сумма кредита, ₽',
|
|
1751
1784
|
step: 500,
|
|
1752
1785
|
min: calculatorParams.minSum,
|
|
@@ -1759,9 +1792,9 @@
|
|
|
1759
1792
|
max: calculatorParams.maxMonths,
|
|
1760
1793
|
...field('monthsValue'),
|
|
1761
1794
|
value: calculatorParams.monthsValue,
|
|
1762
|
-
}), jsx("div", { className: "mt-
|
|
1795
|
+
}), jsx("div", { className: "mt-2xl", children: renderCreditParamsForm$1({ ...calculatorParams, ...paramsViewSettings }, field) })] }), jsx(Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), renderPaymentType({ orientation: 'vertical', ...field('isAnnuity') }), renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true }), renderFootnote(footnote)] })] }));
|
|
1763
1796
|
});
|
|
1764
|
-
const renderCreditParamsForm = (params, field) => (jsxs("div", { children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(Checkbox, { className: "mt-3", text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null] }));
|
|
1797
|
+
const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(Checkbox, { className: "mt-3", text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null] }));
|
|
1765
1798
|
|
|
1766
1799
|
const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
|
|
1767
1800
|
...props,
|
|
@@ -1838,7 +1871,7 @@
|
|
|
1838
1871
|
useEffect(() => {
|
|
1839
1872
|
setMonthsValue && setMonthsValue(defaultMonth);
|
|
1840
1873
|
}, [defaultMonth]);
|
|
1841
|
-
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-
|
|
1874
|
+
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-2/5", children: [renderWantedSumInput({
|
|
1842
1875
|
title: 'Сумма вклада, ₽',
|
|
1843
1876
|
min: calculatorParams.minSum,
|
|
1844
1877
|
max: calculatorParams.maxSum,
|
|
@@ -1851,9 +1884,9 @@
|
|
|
1851
1884
|
availableMonths: calculatorParams.availableMonths,
|
|
1852
1885
|
...field('monthsValue'),
|
|
1853
1886
|
value: calculatorParams.monthsValue,
|
|
1854
|
-
}), jsx("div", { className: "mt-
|
|
1887
|
+
}), jsx("div", { className: "mt-2xl", children: renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) })] }), jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true }), renderFootnote(footnote)] })] }));
|
|
1855
1888
|
});
|
|
1856
|
-
const renderDepositParamsForm = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-
|
|
1889
|
+
const renderDepositParamsForm = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
|
|
1857
1890
|
? renderInterestPayment({
|
|
1858
1891
|
title: 'Выплата процентов',
|
|
1859
1892
|
...field('isMonthlyInterestPayment'),
|
|
@@ -1867,11 +1900,140 @@
|
|
|
1867
1900
|
})
|
|
1868
1901
|
: null] }));
|
|
1869
1902
|
|
|
1903
|
+
const checkRefinancingSourceBookRowCommonParams = (props) => checkRowParam({
|
|
1904
|
+
...props,
|
|
1905
|
+
fieldKey: 'isSalaryClient',
|
|
1906
|
+
viewSettingFieldKey: 'isShowSalaryClient',
|
|
1907
|
+
}) &&
|
|
1908
|
+
checkRowParam({
|
|
1909
|
+
...props,
|
|
1910
|
+
fieldKey: 'isInsurance',
|
|
1911
|
+
viewSettingFieldKey: 'isShowInsurance',
|
|
1912
|
+
}) &&
|
|
1913
|
+
checkRowParam({
|
|
1914
|
+
...props,
|
|
1915
|
+
fieldKey: 'isExtraMoney',
|
|
1916
|
+
viewSettingFieldKey: 'isShowExtraMoney',
|
|
1917
|
+
});
|
|
1918
|
+
const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
|
|
1919
|
+
const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
|
|
1920
|
+
return isExclude || userInputParams[fieldKey] === row[fieldKey];
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
const getRefinancingCalculatorLimitParams = ({ limitRows, userInputParams, paramsViewSettings, }) => limitRows?.find((row) => checkRefinancingSourceBookRowCommonParams({
|
|
1924
|
+
row,
|
|
1925
|
+
userInputParams,
|
|
1926
|
+
paramsViewSettings,
|
|
1927
|
+
}));
|
|
1928
|
+
|
|
1929
|
+
const getRefinancingCalculatorRateParams = ({ rateRows = [], userInputParams, paramsViewSettings, moneyValue, monthsValue, oldMonthlyPayment, moneyExtra, }) => rateRows?.find((row) => checkRefinancingSourceBookRowCommonParams({
|
|
1930
|
+
row,
|
|
1931
|
+
userInputParams,
|
|
1932
|
+
paramsViewSettings,
|
|
1933
|
+
}) &&
|
|
1934
|
+
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
1935
|
+
checkRangeByKeys(oldMonthlyPayment, ['minSumOld', 'maxSumOld'], row) &&
|
|
1936
|
+
checkRangeByKeys(moneyExtra, ['minSumExtra', 'maxSumExtra'], row) &&
|
|
1937
|
+
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_REFINANCING_CALCULATOR_PARAMS;
|
|
1938
|
+
|
|
1939
|
+
const useRefinancingCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
1940
|
+
let { moneyValue, monthsValue, oldMonthlyPayment, moneyExtra } = userInputParams;
|
|
1941
|
+
const data = useCalculatorParams(sourceBookDir || REFINANCING_CALC_DEFAULT_DIR);
|
|
1942
|
+
const rateRows = data?.rateRows || [DEFAULT_REFINANCING_CALCULATOR_PARAMS];
|
|
1943
|
+
const limitRows = data?.limitRows || [];
|
|
1944
|
+
const sourceBookLimitParams = getRefinancingCalculatorLimitParams({
|
|
1945
|
+
limitRows,
|
|
1946
|
+
userInputParams,
|
|
1947
|
+
paramsViewSettings,
|
|
1948
|
+
});
|
|
1949
|
+
const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], sourceBookLimitParams, rateRows);
|
|
1950
|
+
const { minSumOld, maxSumOld } = getLimitRangeByKeys(['minSumOld', 'maxSumOld'], sourceBookLimitParams, rateRows);
|
|
1951
|
+
const { minSumExtra, maxSumExtra } = getLimitRangeByKeys(['minSumExtra', 'maxSumExtra'], sourceBookLimitParams, rateRows);
|
|
1952
|
+
const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], sourceBookLimitParams, rateRows);
|
|
1953
|
+
moneyValue = clamp(moneyValue, minSum, maxSum);
|
|
1954
|
+
oldMonthlyPayment = clamp(oldMonthlyPayment, minSumOld, maxSumOld);
|
|
1955
|
+
moneyExtra = clamp(moneyExtra, minSumExtra, maxSumExtra);
|
|
1956
|
+
monthsValue = clamp(monthsValue, minMonths, maxMonths);
|
|
1957
|
+
const refinancingCalculatorSourceBookRateParams = getRefinancingCalculatorRateParams({
|
|
1958
|
+
rateRows,
|
|
1959
|
+
userInputParams,
|
|
1960
|
+
paramsViewSettings,
|
|
1961
|
+
moneyValue,
|
|
1962
|
+
monthsValue,
|
|
1963
|
+
oldMonthlyPayment,
|
|
1964
|
+
moneyExtra,
|
|
1965
|
+
});
|
|
1966
|
+
const { rate } = refinancingCalculatorSourceBookRateParams;
|
|
1967
|
+
const monthlyPayment = getMonthlyPayment(rate, userInputParams);
|
|
1968
|
+
const benefit = userInputParams.oldMonthlyPayment - monthlyPayment;
|
|
1969
|
+
return useMemo(() => ({
|
|
1970
|
+
...refinancingCalculatorSourceBookRateParams,
|
|
1971
|
+
...userInputParams,
|
|
1972
|
+
minSum,
|
|
1973
|
+
maxSum,
|
|
1974
|
+
minMonths,
|
|
1975
|
+
maxMonths,
|
|
1976
|
+
moneyValue,
|
|
1977
|
+
monthsValue,
|
|
1978
|
+
oldMonthlyPayment,
|
|
1979
|
+
moneyExtra,
|
|
1980
|
+
monthlyPayment,
|
|
1981
|
+
benefit,
|
|
1982
|
+
}), [userInputParams, data]);
|
|
1983
|
+
};
|
|
1984
|
+
|
|
1985
|
+
const RefinancingCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
1986
|
+
const [userInputParams, { field }] = useForm({
|
|
1987
|
+
isAnnuity: true,
|
|
1988
|
+
isInsurance: true,
|
|
1989
|
+
isSalaryClient: false,
|
|
1990
|
+
isExtraMoney: false,
|
|
1991
|
+
moneyValue: REFINANCING_DEFAULT_SUM,
|
|
1992
|
+
oldMonthlyPayment: REFINANCING_OLD_DEFAULT_SUM,
|
|
1993
|
+
monthsValue: DEFAULT_REFINANCING_MONTHS,
|
|
1994
|
+
moneyExtra: REFINANCING_OLD_DEFAULT_SUM,
|
|
1995
|
+
});
|
|
1996
|
+
const calculatorParams = useRefinancingCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
|
|
1997
|
+
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-2/5", children: [renderWantedSumInput({
|
|
1998
|
+
title: 'Остаток долга в других банках, ₽ ',
|
|
1999
|
+
step: 500,
|
|
2000
|
+
min: calculatorParams.minSum,
|
|
2001
|
+
max: calculatorParams.maxSum,
|
|
2002
|
+
...field('moneyValue'),
|
|
2003
|
+
value: calculatorParams.moneyValue,
|
|
2004
|
+
}), renderWantedSumInput({
|
|
2005
|
+
title: 'Ежемесячный платеж в других банках, ₽',
|
|
2006
|
+
isShowItems: false,
|
|
2007
|
+
step: 500,
|
|
2008
|
+
min: calculatorParams.minSumOld,
|
|
2009
|
+
max: calculatorParams.maxSumOld,
|
|
2010
|
+
...field('oldMonthlyPayment'),
|
|
2011
|
+
value: calculatorParams.oldMonthlyPayment,
|
|
2012
|
+
}), renderMonthsInput({
|
|
2013
|
+
title: 'Новый срок кредита, месяцев',
|
|
2014
|
+
min: calculatorParams.minMonths,
|
|
2015
|
+
max: calculatorParams.maxMonths,
|
|
2016
|
+
...field('monthsValue'),
|
|
2017
|
+
value: calculatorParams.monthsValue,
|
|
2018
|
+
}), jsx("div", { className: style('mt-7', calculatorParams.isExtraMoney ? 'mb-3' : ''), children: renderCreditParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) }), calculatorParams.isExtraMoney
|
|
2019
|
+
? renderWantedSumInput({
|
|
2020
|
+
title: 'Дополнительная сумма, ₽ ',
|
|
2021
|
+
step: 500,
|
|
2022
|
+
min: calculatorParams.minSumExtra,
|
|
2023
|
+
max: calculatorParams.maxSumExtra,
|
|
2024
|
+
...field('moneyExtra'),
|
|
2025
|
+
value: calculatorParams.moneyExtra,
|
|
2026
|
+
})
|
|
2027
|
+
: null] }), jsx(Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.rate, fractionDigits: 1, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), calculatorParams.benefit > 0 ? (jsx(CalculatorValueBlock, { title: 'Выгода в месяц', value: calculatorParams.benefit, postfix: "\u20BD" })) : null, renderPaymentType({ orientation: 'vertical', ...field('isAnnuity') }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
|
|
2028
|
+
});
|
|
2029
|
+
const renderCreditParamsForm = (params, field) => (jsxs("div", { children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, params.isShowExtraMoney ? (jsx(Checkbox, { className: "mt-3", text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })) : null] }));
|
|
2030
|
+
|
|
1870
2031
|
const EmbeddableCalcBlocks = {
|
|
1871
2032
|
CreditCalculatorForm,
|
|
1872
2033
|
DepositCalculatorForm,
|
|
1873
2034
|
BusinessDepositCalculatorForm,
|
|
1874
2035
|
BonusCalculatorForm,
|
|
2036
|
+
RefinancingCalculatorForm,
|
|
1875
2037
|
};
|
|
1876
2038
|
|
|
1877
2039
|
const renderCalculatorBlock = (block, i) => {
|
|
@@ -1903,23 +2065,23 @@
|
|
|
1903
2065
|
});
|
|
1904
2066
|
function renderNavButton$3({ tab, i, isActive, onClick }) {
|
|
1905
2067
|
const btnClassName = isActive
|
|
1906
|
-
? 'h-
|
|
1907
|
-
: `h-
|
|
1908
|
-
const btnTitleClassName = isActive ? 'text-xl mb-
|
|
2068
|
+
? 'h-20 w-96 p-xl border-none bg-primary-main text-white'
|
|
2069
|
+
: `h-20 w-96 px-lg ease-in duration-300 bg-white text-primary-text`;
|
|
2070
|
+
const btnTitleClassName = isActive ? 'text-xl mb-xs' : `text-l mb-2xs`;
|
|
1909
2071
|
const btnDescClassName = isActive
|
|
1910
2072
|
? 'text-l font-light text-white'
|
|
1911
2073
|
: `text-m font-light text-secondary-text`;
|
|
1912
2074
|
const iconClassName = isActive ? '' : `text-primary-main`;
|
|
1913
2075
|
const iconVersion = tab?.icon?.iconVersion;
|
|
1914
2076
|
const activeIconStyle = isActive ? 'white' : 'normal';
|
|
1915
|
-
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-
|
|
2077
|
+
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-20 space-x-m', btnClassName), children: [jsx(Img, { className: style('h-6 w-6 min-w-6 min-h-6', iconClassName), image: {
|
|
1916
2078
|
...tab?.icon,
|
|
1917
2079
|
iconVersion: iconVersion ?? activeIconStyle,
|
|
1918
2080
|
}, width: "24", height: "24" }), jsxs("div", { className: "border-0", children: [jsx("div", { className: btnTitleClassName, children: tab?.title }), jsx("div", { className: btnDescClassName, children: tab.description })] })] }, String(i)));
|
|
1919
2081
|
}
|
|
1920
2082
|
function renderTabs$1({ activeIndex, tabsNav, slideIndexShift, onClick }) {
|
|
1921
2083
|
const CARD_SHIFT = 388;
|
|
1922
|
-
return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-
|
|
2084
|
+
return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${activeIndex * CARD_SHIFT}px)` }, className: "flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000", children: jsx("div", { className: "w-full flex flex-nowrap items-end gap-xs", children: tabsNav.map((tab, i) => renderNavButton$3({
|
|
1923
2085
|
tab,
|
|
1924
2086
|
i,
|
|
1925
2087
|
isActive: Boolean(i === slideIndexShift),
|
|
@@ -1957,7 +2119,7 @@
|
|
|
1957
2119
|
? getDisabledButtonClasses({ version: button?.version })
|
|
1958
2120
|
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
1959
2121
|
const link = useLink();
|
|
1960
|
-
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-
|
|
2122
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-5 xl:pb-9 self-start xl:self-center", headingType: "h2", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, valid: !isDisabled, placeholder: placeholder, label: label, ...field(AMOUNT_KEY, { parse: Number, format: String }) }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-4 mt-5 xl:mt-6', buttonStyle), disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
|
|
1961
2123
|
});
|
|
1962
2124
|
|
|
1963
2125
|
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
@@ -2237,13 +2399,13 @@
|
|
|
2237
2399
|
'CarouselInvestmentCard',
|
|
2238
2400
|
'CarouselEventCard',
|
|
2239
2401
|
];
|
|
2240
|
-
const getPaddingStyle$1 = (isPadding) => (isPadding ? 'p-
|
|
2402
|
+
const getPaddingStyle$1 = (isPadding) => (isPadding ? 'p-6xl' : '');
|
|
2241
2403
|
const getAlignStyle = (isAlignCenter) => isAlignCenter ? 'flex justify-center' : '';
|
|
2242
2404
|
|
|
2243
2405
|
const CarouselBankHistoryCard = JSX(({ title, description, blocksLength = 0, activeIndex, options }) => {
|
|
2244
2406
|
const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
|
|
2245
2407
|
const isActive = orderNumber === activeIndex;
|
|
2246
|
-
return (jsx(BlockWrapper, { className: "flex h-[485px]", defaultPadding: "p-0", children: isActive ? (jsx("div", { className: "relative flex items-center w-full", children: jsx(Headline, { headlineVersion: "M", title: title, description: description, align: "text-left", className: style('absolute z-10 h-[385px] w-[440px] p-
|
|
2408
|
+
return (jsx(BlockWrapper, { className: "flex h-[485px]", defaultPadding: "p-0", children: isActive ? (jsx("div", { className: "relative flex items-center w-full", children: jsx(Headline, { headlineVersion: "M", title: title, description: description, align: "text-left", className: style('absolute z-10 h-[385px] w-[440px] p-3xl text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : (jsx("div", { className: "flex w-full items-center justify-center", children: jsx("div", { className: style('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: jsx("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
|
|
2247
2409
|
});
|
|
2248
2410
|
const getBackgroundColor = (orderNumber) => {
|
|
2249
2411
|
const division = orderNumber % 3;
|
|
@@ -2303,8 +2465,8 @@
|
|
|
2303
2465
|
|
|
2304
2466
|
const titleSize = 'L';
|
|
2305
2467
|
|
|
2306
|
-
const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full sm:
|
|
2307
|
-
const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal', version = '' }) => (jsx("section", { className: style('flex
|
|
2468
|
+
const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full hidden sm:block';
|
|
2469
|
+
const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal', version = '' }) => (jsx("section", { className: style('flex pl-6xl sm:p-lg border-box h-full sm:max-w-[375px]', getCardWidth(className, carouselVersion), className), children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative h-full bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: titleSize, align: "text-left", version: version }), renderButtonsSection([button], {
|
|
2308
2470
|
className: 'mt-14 sm:justify-center',
|
|
2309
2471
|
isVertical: true,
|
|
2310
2472
|
})] })] }) })));
|
|
@@ -2313,7 +2475,7 @@
|
|
|
2313
2475
|
black: 'bg-black',
|
|
2314
2476
|
white: 'bg-white',
|
|
2315
2477
|
};
|
|
2316
|
-
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('border box-border border-gray p-
|
|
2478
|
+
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('border box-border border-gray p-6xl sm:p-7 h-full flex flex-col justify-left gap-m', className), ...rest, children: [image?.src ? jsx(Img, { className: "flex justify-center", image: image }) : null, jsx(Headline, { title: title, description: description, headlineVersion: "XS", isPadding: false, align: "text-left" }), colors?.length ? (jsxs("div", { className: "flex text-secondary-text", 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, renderButtonsSection([button], { buttonClassName: 'w-full' })] })));
|
|
2317
2479
|
const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
2318
2480
|
|
|
2319
2481
|
const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
|
|
@@ -2324,7 +2486,7 @@
|
|
|
2324
2486
|
});
|
|
2325
2487
|
|
|
2326
2488
|
const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
|
|
2327
|
-
return (jsx(BlockWrapper, { className: style('w-[365px]', 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, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left pt-
|
|
2489
|
+
return (jsx(BlockWrapper, { className: style('w-[365px]', 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, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left pt-s mb-xs", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
|
|
2328
2490
|
});
|
|
2329
2491
|
|
|
2330
2492
|
const imageAlignmentMap = {
|
|
@@ -2332,7 +2494,7 @@
|
|
|
2332
2494
|
center: 'self-center',
|
|
2333
2495
|
end: 'self-end',
|
|
2334
2496
|
};
|
|
2335
|
-
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-
|
|
2497
|
+
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: [backImage ? jsx("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-wrap sm:flex-nowrap 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 }), buttons] }), renderImageContainer(rightImage, { className: '-order-1 sm:order-1', imageAlign })] })] })));
|
|
2336
2498
|
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2337
2499
|
|
|
2338
2500
|
const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
|
|
@@ -2340,25 +2502,25 @@
|
|
|
2340
2502
|
1: 'flex-col',
|
|
2341
2503
|
2: 'gap-x-10 flex-wrap',
|
|
2342
2504
|
};
|
|
2343
|
-
const CarouselInvestmentCard = JSX(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('box-border text-left w-[697px]', 'border border-solid border-gray group-data-secondary:border-white/50', className), padding: "p-0", ...rest, children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-
|
|
2505
|
+
const CarouselInvestmentCard = JSX(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('box-border text-left w-[697px]', 'border border-solid border-gray group-data-secondary:border-white/50', 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-4", 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 flex gap-y-2', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList, columnsMode) })) : null] }) })));
|
|
2344
2506
|
const renderCardList = (cardsList, columnsMode) => {
|
|
2345
2507
|
const CARDS_COUNT_MAP = [4, 9];
|
|
2346
2508
|
const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
|
|
2347
2509
|
return visibleCardsList.map((item, i) => (jsxs("li", { className: columnsMode === 2 ? 'basis-[calc(50%-20px)]' : '', children: [item?.parameter ? (jsx("div", { className: "pr-2.5", children: jsx(Text, { size: getItemListFontSize(columnsMode), children: item.parameter }) })) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
|
|
2348
2510
|
};
|
|
2349
2511
|
|
|
2350
|
-
const LINK_CLASS_NAME = `absolute border border-primary-main ml-
|
|
2512
|
+
const LINK_CLASS_NAME = `absolute border border-primary-main ml-s px-xl py-lg
|
|
2351
2513
|
text-l font-light bg-white text-primary-text flex w-[316px]
|
|
2352
2514
|
justify-between items-center group-hover/link:text-primary-main z-10`;
|
|
2353
2515
|
const LINK_BORDER_CLASS_NAME = 'bg-transparent border-white border h-[70px] absolute w-[316px] top-0';
|
|
2354
2516
|
const LinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
|
|
2355
2517
|
const link = useLink();
|
|
2356
2518
|
const adjustedProps = link({ href, target });
|
|
2357
|
-
return text ? (jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [jsx("div", { className: "p-
|
|
2519
|
+
return text ? (jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [jsx("div", { className: "p-3xs", children: text }), jsx("div", { className: "w-6 h-6", children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24" }) })] }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mx-1.5 mt-1.5` }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mt-3 mr-3` })] })) : null;
|
|
2358
2520
|
});
|
|
2359
2521
|
|
|
2360
2522
|
const MAX_LINKS_COUNT = 10;
|
|
2361
|
-
const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsxs(BlockWrapper, { className: style('flex w-full overflow-hidden justify-between', className), ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-
|
|
2523
|
+
const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsxs(BlockWrapper, { className: style('flex w-full overflow-hidden justify-between', className), ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-xl text-white text-xl font-light", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isPadding: false })) : null] }), links?.length ? renderLinks(links) : null] })));
|
|
2362
2524
|
const renderLinks = (links) => {
|
|
2363
2525
|
const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
|
|
2364
2526
|
return (jsx(Carousel, { className: "min-w-[832px] w-[832px]", version: "", isBlur: false, isCyclic: true, itemCount: itemCount, arrowsPadded: false, showDots: true, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: "w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start", children: links
|
|
@@ -2367,9 +2529,9 @@
|
|
|
2367
2529
|
};
|
|
2368
2530
|
|
|
2369
2531
|
const DOT_SIZE_MAP = {
|
|
2370
|
-
L: 'w-1.5 h-1.5 mr-
|
|
2371
|
-
M: 'w-1.5 h-1.5 mr-
|
|
2372
|
-
S: 'w-1 h-1 mr-
|
|
2532
|
+
L: 'w-1.5 h-1.5 mr-m',
|
|
2533
|
+
M: 'w-1.5 h-1.5 mr-s',
|
|
2534
|
+
S: 'w-1 h-1 mr-xs',
|
|
2373
2535
|
};
|
|
2374
2536
|
const ListItem = JSX(({ className, isDotted = true, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
|
|
2375
2537
|
|
|
@@ -2379,31 +2541,33 @@
|
|
|
2379
2541
|
L: 'text-h5',
|
|
2380
2542
|
};
|
|
2381
2543
|
const ITEM_INDENT_MAP = {
|
|
2382
|
-
S: 'ml-
|
|
2383
|
-
M: 'ml-
|
|
2384
|
-
L: 'ml-
|
|
2544
|
+
S: 'ml-xs',
|
|
2545
|
+
M: 'ml-s',
|
|
2546
|
+
L: 'ml-m',
|
|
2385
2547
|
};
|
|
2386
|
-
const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-
|
|
2548
|
+
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);
|
|
2549
|
+
|
|
2550
|
+
const alignTextStyle = 'text-center';
|
|
2387
2551
|
|
|
2388
|
-
const CarouselProductCard = JSX(({ additionalDescription, align =
|
|
2389
|
-
return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-
|
|
2390
|
-
className: style('p-
|
|
2391
|
-
isVertical:
|
|
2552
|
+
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 }) => {
|
|
2553
|
+
return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', 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], {
|
|
2554
|
+
className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
|
|
2555
|
+
isVertical: isButtonFullWidth,
|
|
2392
2556
|
})] }));
|
|
2393
2557
|
});
|
|
2394
|
-
const renderImage$2 = (image) => (jsxs("div", { className:
|
|
2395
|
-
const renderCardTitle = (headlineSmallVersion, title) => title ?
|
|
2396
|
-
const renderDescription$
|
|
2397
|
-
const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx(
|
|
2398
|
-
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('
|
|
2558
|
+
const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-lg', isTopPosition ? 'order-first' : 'order-last', !isImageFullWidth ? 'justify-center' : ''), children: [image?.src ? jsx(Img, { className: "shrink-0", image: image }) : null, image?.icon ? (jsx(Img, { className: style('shrink-0', !isImageFullWidth ? 'w-8 h-8 min-w-8' : ''), image: image })) : null] }));
|
|
2559
|
+
const renderCardTitle = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
|
|
2560
|
+
const renderDescription$2 = (description) => description ? jsx(Paragraph, { size: "text-l", children: description }) : null;
|
|
2561
|
+
const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription })) : null;
|
|
2562
|
+
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
|
|
2399
2563
|
|
|
2400
2564
|
const cardTitleFont = 'font-normal';
|
|
2401
2565
|
const cardDescriptionColor = 'text-secondary-text';
|
|
2402
2566
|
|
|
2403
2567
|
const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
2404
|
-
return (jsx(BlockWrapper, { className: style('border border-gray', className), defaultPadding: "p-
|
|
2568
|
+
return (jsx(BlockWrapper, { className: style('border border-gray', className), defaultPadding: "p-3xl sm:p-0", ...rest, children: jsxs(LinkWrapper, { className: "sm:flex sm:items-center", href: href, target: target, children: [jsx("div", { className: "min-w-[200px] flex justify-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }), jsxs("div", { className: "sm:px-s p-5xl", children: [title ? jsx(Heading, { className: "mb-xs sm:mb-m", headingType: "h6", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-xs sm:gap-s", children: list?.map(renderList$2) })) : null] })] }) }));
|
|
2405
2569
|
});
|
|
2406
|
-
const renderList$2 = (_, i) => (jsxs("div", { className: "flex flex-row-reverse justify-between gap-y-
|
|
2570
|
+
const renderList$2 = (_, i) => (jsxs("div", { className: "flex flex-row-reverse justify-between gap-y-2xs sm:flex-col", children: [_.title ? (jsx(Text, { size: "text-l", font: cardTitleFont, children: _.title })) : null, _.description ? (jsx(Paragraph, { size: "text-l", font: "font-light", color: cardDescriptionColor, children: _.description })) : null] }, String(i)));
|
|
2407
2571
|
|
|
2408
2572
|
const buttonSizeStyles = {
|
|
2409
2573
|
default: 'w-14 h-14',
|
|
@@ -2461,7 +2625,7 @@
|
|
|
2461
2625
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
2462
2626
|
|
|
2463
2627
|
const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', version = 'primary', ...rest }) => {
|
|
2464
|
-
return (jsx(BlockWrapper, { className: style('relative min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), defaultPadding: "p-
|
|
2628
|
+
return (jsx(BlockWrapper, { className: style('relative min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), defaultPadding: "p-m", version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? jsx(List, { items: items, listItemSize: "S" }) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$2(icon)] }) }));
|
|
2465
2629
|
});
|
|
2466
2630
|
const renderIconBlock$2 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null] }));
|
|
2467
2631
|
|
|
@@ -2538,7 +2702,7 @@
|
|
|
2538
2702
|
});
|
|
2539
2703
|
const labelStyle = (isFillGradient = false) => `text-xl m-0 ${isFillGradient ? 'text-white' : ''}`;
|
|
2540
2704
|
const descriptionStyle = (isFillGradient = false) => `text-s opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`;
|
|
2541
|
-
const renderCellInner$1 = ({ label, description }, i, isFillGradient) => (jsxs("div", { className: "first:pt-
|
|
2705
|
+
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)));
|
|
2542
2706
|
|
|
2543
2707
|
const titleStyle = (isLastRow = false) => `text-s py-7 ${DIVIDER_CLASSES$1} ${FIRST_CELL_CLASSES$1} ${isLastRow ? 'border-b-0' : 'border-solid'}`;
|
|
2544
2708
|
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] })));
|
|
@@ -2575,15 +2739,15 @@
|
|
|
2575
2739
|
const ComparisonTable = JSX(({ className = '', title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, ...rest }) => {
|
|
2576
2740
|
const [isShowAllRow, setIsShowAllRow] = useState(!visibleRowLength);
|
|
2577
2741
|
const handleToggle = useCallback(() => setIsShowAllRow((_) => !_), []);
|
|
2578
|
-
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative', className), defaultPadding: "p-
|
|
2742
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", title: title }), jsx(ComparisonTableBody, { columns: columns, rowHeaders: rowHeaders, isShowAllRow: isShowAllRow, isColoredFirstColumn: isColoredFirstColumn, visibleRowLength: visibleRowLength }), visibleRowLength
|
|
2579
2743
|
? renderShowMoreToggleButton({ isShowAllRow, onClick: handleToggle })
|
|
2580
2744
|
: null] }));
|
|
2581
2745
|
});
|
|
2582
2746
|
const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => (jsx("div", { className: "pr-12", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "mt-m 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 ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
|
|
2583
2747
|
|
|
2584
|
-
const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-
|
|
2748
|
+
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] })));
|
|
2585
2749
|
const renderBlocks = (info) => (jsx("div", { className: "flex grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index })) }));
|
|
2586
|
-
const renderBlocksColumn = ({ column, index }) => column ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { className: "mt-
|
|
2750
|
+
const renderBlocksColumn = ({ column, index }) => column ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { className: "mt-xl first:mt-0", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "text-left" }), 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;
|
|
2587
2751
|
|
|
2588
2752
|
const isEmpty = (v) => v === null ||
|
|
2589
2753
|
v === undefined ||
|
|
@@ -2645,7 +2809,7 @@
|
|
|
2645
2809
|
}, 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 })) })] })] }));
|
|
2646
2810
|
});
|
|
2647
2811
|
function renderNotFound({ title, description }) {
|
|
2648
|
-
return (jsxs("div", { className: "bg-white py-20", children: [title ? (jsx("div", { className: "mb-
|
|
2812
|
+
return (jsxs("div", { className: "bg-white py-20", children: [title ? (jsx("div", { className: "mb-xs", children: jsx(Paragraph, { align: "text-center", children: jsx(Text, { size: "text-h4", children: title }) }) })) : null, description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", align: "text-center", children: description })) : null] }));
|
|
2649
2813
|
}
|
|
2650
2814
|
|
|
2651
2815
|
const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
|
|
@@ -2734,14 +2898,14 @@
|
|
|
2734
2898
|
RUB: 'RoundRubleIcon',
|
|
2735
2899
|
};
|
|
2736
2900
|
const renderCurrencyRow$1 = ({ title, buyPrice, buyDifference, sellPrice, sellDifference, buyOfficeName, sellOfficeName, }) => {
|
|
2737
|
-
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [title ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP$1[title] }, width: "24", height: "24" })) : null, jsx("span", { className: "ml-
|
|
2901
|
+
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [title ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP$1[title] }, width: "24", height: "24" })) : null, jsx("span", { className: "ml-xs", children: title })] }) }), renderCurrency(buyPrice, buyDifference), renderCurrency(sellPrice, sellDifference), renderOffice(buyPrice, buyOfficeName), renderOffice(sellPrice, sellOfficeName)] }, title));
|
|
2738
2902
|
};
|
|
2739
2903
|
const formatCurrency$1 = (value) => (value ? currencyNumberFormat$1.format(value) : '');
|
|
2740
2904
|
const renderCurrency = (price, difference) => {
|
|
2741
|
-
return (jsxs("td", { className: "pt-
|
|
2905
|
+
return (jsxs("td", { className: "pt-m pl-5xl", children: [jsx("div", { children: formatCurrency$1(price) }), jsx("div", { className: style('font-normal text-sm text-secondary-text', (difference || 0) >= 0 ? 'text-green' : 'text-red'), children: formatCurrency$1(difference) })] }));
|
|
2742
2906
|
};
|
|
2743
2907
|
const renderOffice = (price, officeName = '') => {
|
|
2744
|
-
return (jsxs("td", { className: "pt-
|
|
2908
|
+
return (jsxs("td", { className: "pt-m pl-5xl", children: [jsx("div", { children: formatCurrency$1(price) }), jsx("div", { className: "font-normal text-sm text-green", children: officeName })] }));
|
|
2745
2909
|
};
|
|
2746
2910
|
const currencyNumberFormat$1 = new Intl.NumberFormat('ru', {
|
|
2747
2911
|
style: 'currency',
|
|
@@ -2749,12 +2913,12 @@
|
|
|
2749
2913
|
});
|
|
2750
2914
|
|
|
2751
2915
|
const renderTableHeader = (title) => {
|
|
2752
|
-
return (jsx("th", { className: "pl-
|
|
2916
|
+
return (jsx("th", { className: "pl-5xl", children: jsx(Text, { size: "text-m", font: "font-light", align: "text-left", color: "text-secondary-text", children: title }) }));
|
|
2753
2917
|
};
|
|
2754
2918
|
|
|
2755
2919
|
const ExchangeRateOffice = JSX(({ className, currencies = [], actuality = '', officeName = '', ...rest }) => {
|
|
2756
2920
|
const fourRates = topNRates(currencies, 4);
|
|
2757
|
-
return (jsxs(BlockWrapper, { className: className, ...rest, children: [jsxs("div", { className: "flex flex-row flex-grow-0 justify-between
|
|
2921
|
+
return (jsxs(BlockWrapper, { className: style('space-y-3xl', className), ...rest, children: [jsxs("div", { className: "flex flex-row flex-grow-0 justify-between space-y-lg", children: [jsx(Heading, { headingType: "h4", title: 'Курс обмена валют в ' + officeName, className: "whitespace-pre-wrap text-h4" }), jsx("div", { className: "pl-6xl", children: jsx(Text, { size: "text-m", font: "font-light", align: "text-left", color: "text-secondary-text", children: actuality }) })] }), jsx("div", { className: "flex flex-row pt-m text-left", children: fourRates.length > 0 ? (jsxs("table", { className: style('h-fit w-fit', className), children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { children: jsx(Text, { size: "text-m", font: "font-light", align: "text-left", color: "text-secondary-text", children: "\u0412\u0430\u043B\u044E\u0442\u0430" }) }), renderTableHeader('Купить'), renderTableHeader('Продать'), renderTableHeader('Лучшая покупка'), renderTableHeader('Лучшая продажа')] }) }), jsx("tbody", { children: fourRates.map((item) => renderCurrencyRow$1(item)) })] })) : null })] }));
|
|
2758
2922
|
});
|
|
2759
2923
|
const topNRates = (rates, n) => rates.sort((a, b) => Number(a.id) - Number(b.id)).slice(0, n);
|
|
2760
2924
|
|
|
@@ -2772,7 +2936,7 @@
|
|
|
2772
2936
|
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
2773
2937
|
|
|
2774
2938
|
const TABLE_HEAD_STYLE = 'text-left text-m font-light text-secondary-text';
|
|
2775
|
-
const TABLE_HEAD_STYLE_WITH_PL = `${TABLE_HEAD_STYLE} pl-
|
|
2939
|
+
const TABLE_HEAD_STYLE_WITH_PL = `${TABLE_HEAD_STYLE} pl-5xl`;
|
|
2776
2940
|
const CURRENCY_ICONS_MAP = {
|
|
2777
2941
|
USD: 'DollarIcon',
|
|
2778
2942
|
EUR: 'EuroIcon',
|
|
@@ -2780,10 +2944,10 @@
|
|
|
2780
2944
|
const CurrencyTable = JSX(({ className, exchangeCurrencyItems }) => (jsxs("table", { className: `h-fit w-fit ${className}`, children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { className: TABLE_HEAD_STYLE, children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), jsx("th", { className: TABLE_HEAD_STYLE_WITH_PL, children: "\u041A\u0443\u043F\u0438\u0442\u044C" }), jsx("th", { className: TABLE_HEAD_STYLE_WITH_PL, children: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C" })] }) }), jsx("tbody", { children: exchangeCurrencyItems.map(renderCurrencyRow) })] })));
|
|
2781
2945
|
const renderCurrencyRow = (exchangeCurrencyItem) => {
|
|
2782
2946
|
const currency = exchangeCurrencyItem?.currency?.currency;
|
|
2783
|
-
return (jsxs("tr", { className: "pb-
|
|
2947
|
+
return (jsxs("tr", { className: "pb-2xs text-h6", children: [jsx("td", { className: "pt-m", children: jsxs("div", { className: "flex items-center", children: [currency ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx("span", { className: "ml-xs", children: currency })] }) }), jsx("td", { className: "pt-m pl-5xl", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }), jsx("td", { className: "pt-m pl-5xl", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) })] }, currency));
|
|
2784
2948
|
};
|
|
2785
2949
|
|
|
2786
|
-
const CurrentLocation$1 = JSX(({ className = '', address }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24" }), jsxs("div", { className: "
|
|
2950
|
+
const CurrentLocation$1 = JSX(({ className = '', address }) => (jsxs("div", { className: `flex gap-s ${className}`, children: [jsx(Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24" }), jsxs("div", { className: "space-y-2xs", children: [address ? jsx("p", { className: "text-primary-main text-l", children: address }) : null, jsx("p", { className: "text-secondary-text text-m", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
|
|
2787
2951
|
|
|
2788
2952
|
const roundTo = (value, precision = 2) => {
|
|
2789
2953
|
const factor = 10 ** precision;
|
|
@@ -2926,7 +3090,7 @@
|
|
|
2926
3090
|
currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
|
|
2927
3091
|
const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
|
|
2928
3092
|
currencyRatesSell.push({ currency: { currency: Currency.RUB } });
|
|
2929
|
-
return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex gap-
|
|
3093
|
+
return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex gap-6xl", children: [jsxs("div", { children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation$1, { address: exchangeRates?.address })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
|
|
2930
3094
|
});
|
|
2931
3095
|
const getCurrencyRates = (currencies) => {
|
|
2932
3096
|
return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
|
|
@@ -2959,11 +3123,11 @@
|
|
|
2959
3123
|
'bg-white': 'text-primary-text',
|
|
2960
3124
|
transparent: 'text-white',
|
|
2961
3125
|
};
|
|
2962
|
-
const renderTitle
|
|
2963
|
-
return (jsx("span", { className: `${TEXT_COLOR[bgColor]} ml-
|
|
3126
|
+
const renderTitle = (title, bgColor, className) => {
|
|
3127
|
+
return (jsx("span", { className: `${TEXT_COLOR[bgColor]} ml-s font-medium ${className || ''}`, children: title || 'Россельхозбанк' }));
|
|
2964
3128
|
};
|
|
2965
3129
|
|
|
2966
|
-
const Logo = JSX(({ className = '', href = '/', logo, children = logo?.title, 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, { width: '40', height: '45' }), showTitle ? renderTitle
|
|
3130
|
+
const Logo = JSX(({ className = '', href = '/', logo, children = logo?.title, 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, { width: '40', height: '45' }), showTitle ? renderTitle(children || logo?.title, bgColor) : null] })));
|
|
2967
3131
|
|
|
2968
3132
|
const CloseButton = JSX(({ className, onClick }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClick, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
|
|
2969
3133
|
|
|
@@ -3150,7 +3314,7 @@
|
|
|
3150
3314
|
globalThis.document?.removeEventListener('keydown', handleEscape);
|
|
3151
3315
|
};
|
|
3152
3316
|
}, [onClose]);
|
|
3153
|
-
return isOpened ? (jsx("div", { className: style('fixed inset-0 bg-white text-l font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar', className), role: "dialog", children: jsxs("div", { className: "relative container pb-
|
|
3317
|
+
return isOpened ? (jsx("div", { className: style('fixed inset-0 bg-white text-l font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar', className), role: "dialog", children: jsxs("div", { className: "relative container pb-6xl min-h-full", children: [jsxs("div", { className: "sticky bg-white pt-xl top-0", children: [jsx(CloseButton, { className: "absolute top-0 -right-6xl", onClick: onClose }), head] }), children] }) })) : null;
|
|
3154
3318
|
});
|
|
3155
3319
|
|
|
3156
3320
|
function useDialogProps(id, isOpenedOnInit = false) {
|
|
@@ -3204,7 +3368,7 @@
|
|
|
3204
3368
|
const handleChange = useCallback((ev) => {
|
|
3205
3369
|
onChange && onChange(ev.target?.value || '');
|
|
3206
3370
|
}, [onChange]);
|
|
3207
|
-
return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-
|
|
3371
|
+
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' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 pl-12 w-full 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 })] }));
|
|
3208
3372
|
});
|
|
3209
3373
|
|
|
3210
3374
|
const SEARCH_DIALOG_ID = 'search';
|
|
@@ -3251,9 +3415,9 @@
|
|
|
3251
3415
|
});
|
|
3252
3416
|
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
3253
3417
|
|
|
3254
|
-
const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
|
|
3255
|
-
const renderContactsGroup = (item, i) => (jsxs("div", { className: "
|
|
3256
|
-
const renderContact = (item, index) => (jsxs("div", { className: "
|
|
3418
|
+
const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: style('space-y-xl', className), children: [items?.length ? items.map(renderContactsGroup) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
|
|
3419
|
+
const renderContactsGroup = (item, i) => (jsxs("div", { className: "space-y-m", children: [jsx("div", { className: "", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { className: "space-y-m", children: item.items?.map(renderContact) })] }, String(i)));
|
|
3420
|
+
const renderContact = (item, index) => (jsxs("div", { className: "space-y-2xs", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "text-s font-light text-secondary-text", children: item.description })] }, String(index)));
|
|
3257
3421
|
const renderText = (type, text = '') => {
|
|
3258
3422
|
switch (type) {
|
|
3259
3423
|
case 'tel':
|
|
@@ -3291,10 +3455,10 @@
|
|
|
3291
3455
|
const fallback = rest.options?.page?.fallback;
|
|
3292
3456
|
const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
|
|
3293
3457
|
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
|
|
3294
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-
|
|
3458
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-6xl xl:gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH_FULL_HD, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl xl:gap-3xl", children: [jsxs("div", { className: `${LEFT_COL_WIDTH_FULL_HD} flex flex-col shrink-0 overflow-hidden space-y-xl`, children: [jsx(Contacts, { items: contacts, hasButton: true }), 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: sitemap?.topItems })] }), jsx(HorizontalNavigation, { className: "mt-24", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3295
3459
|
});
|
|
3296
3460
|
|
|
3297
|
-
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-
|
|
3461
|
+
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { className: "!p-0 mb-4", title: title, description: description, headlineVersion: "M" }), calendar ? renderCalendar(calendar) : null] })));
|
|
3298
3462
|
const renderCalendar = (calendar) => {
|
|
3299
3463
|
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
3300
3464
|
const colSize = 100 / colCount;
|
|
@@ -3404,11 +3568,11 @@
|
|
|
3404
3568
|
const CurrentLocation = JSX(({ currentLocation, onChangeLocation }) => currentLocation ? (jsxs("div", { className: "mb-4", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { className: "cursor-pointer", onClick: () => {
|
|
3405
3569
|
onChangeLocation && onChangeLocation(currentLocation);
|
|
3406
3570
|
}, children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null);
|
|
3407
|
-
const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-
|
|
3408
|
-
const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-
|
|
3571
|
+
const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-[224px]", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
|
|
3572
|
+
const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
|
|
3409
3573
|
onChangeLocation && onChangeLocation(region);
|
|
3410
3574
|
}, children: region.name || '' }) }, region.id));
|
|
3411
|
-
const ForeignOffices = JSX(({ foreignOffices }) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-
|
|
3575
|
+
const ForeignOffices = JSX(({ 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-10", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null);
|
|
3412
3576
|
const ForeignOffice = JSX(({ icon, ...rest }) => {
|
|
3413
3577
|
const link = useLink();
|
|
3414
3578
|
const { text, target, href, onClick } = link(rest);
|
|
@@ -3559,7 +3723,7 @@
|
|
|
3559
3723
|
? handleIntersectionActivation(index)
|
|
3560
3724
|
: handleIntersectionDeactivation(index));
|
|
3561
3725
|
}), [subItems]);
|
|
3562
|
-
return (jsxs("nav", { className: "relative mt-
|
|
3726
|
+
return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: style('ml-3xl first:ml-0', visibleItemsCount - 1 < i ? 'invisible' : ''), active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-9", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] }));
|
|
3563
3727
|
});
|
|
3564
3728
|
const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
|
|
3565
3729
|
const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
|
|
@@ -3573,20 +3737,20 @@
|
|
|
3573
3737
|
const { topItems, logo, defaultLocation, foreignOffices, officesLink, internetBankUrl } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
|
|
3574
3738
|
const activeTopItem = topItems?.find(isTopItemActive(router));
|
|
3575
3739
|
const [location, onChangeLocation] = useLocation(defaultLocation);
|
|
3576
|
-
return (jsxs(BlockWrapper, { tag: "header", className: style('pt-
|
|
3740
|
+
return (jsxs(BlockWrapper, { tag: "header", className: style('pt-3xl px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: [jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", locationName: location.name, officesLink: officesLink })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }), jsx(SearchDialog, { topItems: topItems }), jsx(LocationDialog, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation })] }));
|
|
3577
3741
|
});
|
|
3578
3742
|
|
|
3579
3743
|
const gapStyles = {
|
|
3580
|
-
XXL: 'gap-
|
|
3581
|
-
XL: 'gap-
|
|
3582
|
-
L: 'gap-
|
|
3583
|
-
M: 'gap-
|
|
3584
|
-
S: 'gap-
|
|
3585
|
-
XS: 'gap-
|
|
3744
|
+
XXL: 'gap-6xl',
|
|
3745
|
+
XL: 'gap-5xl',
|
|
3746
|
+
L: 'gap-3xl',
|
|
3747
|
+
M: 'gap-m',
|
|
3748
|
+
S: 'gap-xs',
|
|
3749
|
+
XS: 'gap-2xs',
|
|
3586
3750
|
'': '',
|
|
3587
3751
|
};
|
|
3588
3752
|
|
|
3589
|
-
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-
|
|
3753
|
+
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren(rest) })));
|
|
3590
3754
|
HorizontalLayout.childrenTypes = {
|
|
3591
3755
|
exclude: ['HorizontalLayout'],
|
|
3592
3756
|
};
|
|
@@ -3623,7 +3787,7 @@
|
|
|
3623
3787
|
function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }) {
|
|
3624
3788
|
const tabsShiftWidth = activeIndex * 460;
|
|
3625
3789
|
const cardsAlignStyle = cards.length > 2 ? 'justify-start' : 'justify-center';
|
|
3626
|
-
return (jsx("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000 px-
|
|
3790
|
+
return (jsx("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000 px-6xl", children: jsx("div", { className: `w-full flex flex-nowrap gap-3.5 pb-6xl ${cardsAlignStyle}`, children: cards.map((slide, i) => renderNavButton$2({
|
|
3627
3791
|
slide,
|
|
3628
3792
|
i,
|
|
3629
3793
|
isActive: Boolean(i === selectedCardIndex),
|
|
@@ -3646,7 +3810,7 @@
|
|
|
3646
3810
|
const InsuranceAmountBlock = JSX(({ className = '', title, insuranceTabs = [], button, ...rest }) => {
|
|
3647
3811
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
3648
3812
|
const handleActiveSlideIndex = useCallback((_) => setActiveSlideIndex(_), []);
|
|
3649
|
-
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative px-0', className), defaultPadding: "p-
|
|
3813
|
+
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative px-0 space-y-2xl', className), defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title, headingType: "h3" }) : null, insuranceTabs?.length > 1 ? (jsx("div", { className: "p-xs bg-secondary-light w-fit mx-auto rounded-md", children: insuranceTabs.map((item, i) => renderNavButton$1({
|
|
3650
3814
|
title: item?.title,
|
|
3651
3815
|
i,
|
|
3652
3816
|
isActive: Boolean(i === activeSlideIndex),
|
|
@@ -3688,27 +3852,35 @@
|
|
|
3688
3852
|
if (investmentZeroColumn) {
|
|
3689
3853
|
columns.unshift(investmentZeroColumn);
|
|
3690
3854
|
}
|
|
3691
|
-
return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { className: "container text-m font-light", children: [columns?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-
|
|
3855
|
+
return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { className: "container text-m font-light", children: [columns?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-3xl pr-lg text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-3xl w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-xs mx-3xl" }), jsx("div", { className: "flex justify-between text-primary-text mt-s -mx-5xl", children: columns.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "mt-9 max-w-[657px]", items: items, isDotted: isDotted, listItemSize: "M" })) : null] }) }));
|
|
3692
3856
|
});
|
|
3693
3857
|
const renderInvestmentColumn = (column, i, arr) => {
|
|
3694
3858
|
const isSecondColumn = i === 1;
|
|
3695
3859
|
const isLastColumn = i === arr.length - 1;
|
|
3696
|
-
return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-
|
|
3860
|
+
return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-[290px]' : ''}`, children: column.cells.reverse().map(renderInvestmentCell) })) : null }, `column_${i}`));
|
|
3697
3861
|
};
|
|
3698
3862
|
const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
|
|
3699
3863
|
cells.length ? 'flex-1' : 'flex-0',
|
|
3700
|
-
cells.length && !isSecondColumn && !isLastColumn ? 'pl-
|
|
3701
|
-
cells.length && !isLastColumn ? 'pr-
|
|
3864
|
+
cells.length && !isSecondColumn && !isLastColumn ? 'pl-s' : '',
|
|
3865
|
+
cells.length && !isLastColumn ? 'pr-s pb-3xl' : 'pb-xl',
|
|
3702
3866
|
].join(' ');
|
|
3703
3867
|
const renderInvestmentCell = (cell, i) => {
|
|
3704
3868
|
const cellSize = cell.cellSize || 'XS';
|
|
3705
3869
|
const cellColor = cell.cellColor || 'green';
|
|
3706
|
-
return cell.text ? (jsx("div", { className: `flex-1 flex items-center justify-center relative py-
|
|
3870
|
+
return cell.text ? (jsx("div", { className: `flex-1 flex items-center justify-center relative py-xs ${investmentCellSizeMap[cellSize]} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-s' : 'px-5xl'}`, children: jsx("div", { className: "text-center", children: cell.text }) }, `cell_${i}`)) : null;
|
|
3707
3871
|
};
|
|
3708
|
-
const renderInvestmentColumnTitle = (column, i
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3872
|
+
const renderInvestmentColumnTitle = (column, i) => {
|
|
3873
|
+
return (jsx("div", { className: `flex-1 max-w-[180px] text-center px-xs last:pr-3xl`, children: column.title }, `title_${i}`));
|
|
3874
|
+
};
|
|
3875
|
+
|
|
3876
|
+
const KILO = 1024;
|
|
3877
|
+
const KILO_SIZES = ['байт', 'Кб', 'Мб', 'Гб', 'Тб', 'Пб'];
|
|
3878
|
+
const formatBytes = (bytes, decimals = 2) => {
|
|
3879
|
+
if (bytes === 0) {
|
|
3880
|
+
return '';
|
|
3881
|
+
}
|
|
3882
|
+
const i = Math.floor(Math.log(bytes) / Math.log(KILO));
|
|
3883
|
+
return `${parseFloat((bytes / Math.pow(KILO, i)).toFixed(decimals))} ${KILO_SIZES[i]}`;
|
|
3712
3884
|
};
|
|
3713
3885
|
|
|
3714
3886
|
const LinkDocItem = JSX(({ icon, text, fileSize, ...linkProps }) => (jsxs("a", { className: "flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", ...linkProps, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] })));
|
|
@@ -3734,24 +3906,27 @@
|
|
|
3734
3906
|
};
|
|
3735
3907
|
const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => {
|
|
3736
3908
|
const router = useRouter();
|
|
3737
|
-
return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-
|
|
3909
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2" }), documents?.length ? (jsx("div", { className: style('mt-5 sm:mt-8 flex flex-col gap-6', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map(renderLinkDocItem(router, columnsMode, icon)) })) : null] }));
|
|
3738
3910
|
});
|
|
3739
3911
|
const renderLinkDocItem = (router, columnsMode, icon) => (docBlockDef, i) => {
|
|
3740
3912
|
const href = docBlockDef?.docType === 'Attachment'
|
|
3741
3913
|
? adjustHref(router)(docBlockDef?.attachment?.src)
|
|
3742
3914
|
: docBlockDef?.href;
|
|
3743
|
-
|
|
3915
|
+
const fileSize = docBlockDef?.docType === 'Attachment'
|
|
3916
|
+
? formatBytes(docBlockDef?.attachment?.fileSize || 0)
|
|
3917
|
+
: docBlockDef?.fileSize;
|
|
3918
|
+
return (jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: jsx(LinkDocItem, { ...docBlockDef, href: href, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
|
|
3744
3919
|
};
|
|
3745
3920
|
|
|
3746
|
-
const renderDescription$
|
|
3921
|
+
const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-5 pt-3xs sm:mb-0 sm:pt-0", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
|
|
3747
3922
|
|
|
3748
3923
|
const renderList$1 = (items) => {
|
|
3749
|
-
return items?.length ? (jsx(List, { items: items, className: "text-l font-light mb-
|
|
3924
|
+
return items?.length ? (jsx(List, { items: items, className: "text-l font-light mb-xs last:mb-0" })) : (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" }));
|
|
3750
3925
|
};
|
|
3751
3926
|
|
|
3752
3927
|
const MobileAppTile = JSX(({ className, padding, alignTitle = 'left', buttons = [], description, headingType = 'h4', image, items, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
3753
|
-
const containerStyle = version === 'secondary' ? 'p-
|
|
3754
|
-
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-
|
|
3928
|
+
const containerStyle = version === 'secondary' ? 'p-m min-w-[120px]' : 'min-w-[92px]';
|
|
3929
|
+
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', AlignText[alignTitle]) })) : null, buttons: renderButtonsSection(buttons, { isVertical: buttons.length > 4 }), 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), image?.src ? jsx(Img, { image: image }) : null] })] }) }));
|
|
3755
3930
|
});
|
|
3756
3931
|
|
|
3757
3932
|
const initialFiltrationState = {};
|
|
@@ -3858,7 +4033,7 @@
|
|
|
3858
4033
|
updatePointsToRender(null);
|
|
3859
4034
|
}
|
|
3860
4035
|
};
|
|
3861
|
-
return (jsxs("div", { className: `${Object.values(styles$2).join(' ')} bg-white py-
|
|
4036
|
+
return (jsxs("div", { className: `${Object.values(styles$2).join(' ')} bg-white py-s pl-5xl pr-m w-full`, children: [jsx(Icon, { name: "LoupeIcon", iconVersion: "black", width: "20", height: "20", className: "absolute left-4" }), jsx("input", { type: "text", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0438\u043B\u0438 \u043C\u0435\u0442\u0440\u043E", onChange: onChange, className: "border-0 focus:border-0 outline-0 w-full" })] }));
|
|
3862
4037
|
};
|
|
3863
4038
|
|
|
3864
4039
|
const styles$1 = {
|
|
@@ -4112,7 +4287,7 @@
|
|
|
4112
4287
|
];
|
|
4113
4288
|
const currentWeekDayInd = new Date().getDay();
|
|
4114
4289
|
const currentWeekDay = currentWeekDayInd > 0 ? workScheduleWeek[currentWeekDayInd - 1] : workScheduleWeek[6];
|
|
4115
|
-
return (jsxs("div", { className: `flex flex-col font-sans bg-white w-full ${className}`, children: [jsxs("div", { className: "flex flex-col px-12 pt-12", children: [jsxs("div", { className: "flex justify-between", children: [jsx("div", { className: "text-h2", children: name }), renderCurrentDaySchedule(currentWeekDay)] }), jsxs("div", { className: "flex text-l font-light pt-4", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24", className: "pr-1" }), address] }), jsx("div", { className: "flex pt-4", children: nearbyOffices.map(renderNearbyOffice) })] }), jsxs("div", { className: "flex justify-between pt-
|
|
4290
|
+
return (jsxs("div", { className: `flex flex-col font-sans bg-white w-full ${className}`, children: [jsxs("div", { className: "flex flex-col px-12 pt-12", children: [jsxs("div", { className: "flex justify-between", children: [jsx("div", { className: "text-h2", children: name }), renderCurrentDaySchedule(currentWeekDay)] }), jsxs("div", { className: "flex text-l font-light pt-4", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24", className: "pr-1" }), address] }), jsx("div", { className: "flex pt-4", children: nearbyOffices.map(renderNearbyOffice) })] }), jsxs("div", { className: "flex justify-between pt-3xl", children: [jsx("div", { className: "flex-grow h-full w-full overflow-hidden", children: point ? jsx(YandexMap, { points: [point], className: "h-full" }) : null }), jsx("div", { className: "w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col", children: workScheduleWeek.map(renderDay) })] })] }));
|
|
4116
4291
|
});
|
|
4117
4292
|
|
|
4118
4293
|
const OfficeServicesBlock = JSX(({ className = '', title, servicesList, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col', className), ...rest, children: [title ? jsx(Heading, { headingType: "h5", className: "mb-5", title: title }) : null, servicesList?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: servicesList.map(renderListItems) })) : null] })));
|
|
@@ -4137,7 +4312,7 @@
|
|
|
4137
4312
|
'description' in _ ? renderBenefitDescription(_.description, i) : null,
|
|
4138
4313
|
]);
|
|
4139
4314
|
|
|
4140
|
-
const BenefitItem = JSX(({ className, benefitsVersion, ..._ }) => (jsxs("div", { className: style('flex gap-
|
|
4315
|
+
const BenefitItem = JSX(({ className, benefitsVersion, ..._ }) => (jsxs("div", { className: style('flex gap-m', 'description' in _ && _.description ? 'items-start' : 'items-center', className), children: ['icon' in _ ? renderBenefitIcon(_.icon, benefitsVersion) : null, jsx("div", { children: renderBenefitText(_) })] })));
|
|
4141
4316
|
|
|
4142
4317
|
const MAX_BENEFITS_LEN_DEVIATION = 16;
|
|
4143
4318
|
const benefitLength = (_) => _.type === 'rte'
|
|
@@ -4156,21 +4331,21 @@
|
|
|
4156
4331
|
const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', isInsetTitle = true, benefitsVersion, isTabularBenefits, benefits, __html, items, isDotted = true, listItemSize, tags, buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
|
|
4157
4332
|
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
4158
4333
|
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isPadding: false }));
|
|
4159
|
-
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isInsetTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-
|
|
4334
|
+
return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isInsetTitle ? { 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: [jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: benefits }), __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, tags?.length ? jsx(Tags, { tags: tags }) : null] }) }));
|
|
4160
4335
|
});
|
|
4161
4336
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
4162
4337
|
|
|
4163
|
-
const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-
|
|
4338
|
+
const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit) : null] })) : null;
|
|
4164
4339
|
const renderValueBlock = (title, value = 0) => (jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre", children: [jsx(Text, { font: "font-light", size: "text-l", children: title }), jsxs(Text, { size: "text-h6", color: "text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
|
|
4165
4340
|
|
|
4166
|
-
const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-
|
|
4341
|
+
const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isInsetTitle: false, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
|
|
4167
4342
|
|
|
4168
4343
|
const GOLDEN_RATIO = 1.618;
|
|
4169
|
-
const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border', className), ...rest, children: [jsx(Headline, { className: "max-w-[600px]", title: title, description: description, headlineVersion: "L", align: "text-left", isPadding: false }), jsx("figure", { className: "m-0 mt-
|
|
4344
|
+
const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border', className), ...rest, children: [jsx(Headline, { className: "max-w-[600px]", title: title, description: description, headlineVersion: "L", align: "text-left", isPadding: false }), jsx("figure", { className: "m-0 mt-xl min-w-[80%]", children: renderShimmer() })] })));
|
|
4170
4345
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
4171
4346
|
.map((_) => Math.floor(_))
|
|
4172
4347
|
.map(renderShimmerItem);
|
|
4173
|
-
const renderShimmerItem = (width, index) => (jsx("div", { style: { width: `${width || 100}%` }, className: "h-4 mt-
|
|
4348
|
+
const renderShimmerItem = (width, index) => (jsx("div", { style: { width: `${width || 100}%` }, className: "h-4 mt-xs bg-secondary-light" }, String(index)));
|
|
4174
4349
|
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
4175
4350
|
|
|
4176
4351
|
function renderBackwardButton({ text, href, target, icon }, version) {
|
|
@@ -4183,13 +4358,13 @@
|
|
|
4183
4358
|
} }) }), jsx(Button, { version: "link", ...commonProps })] }));
|
|
4184
4359
|
}
|
|
4185
4360
|
|
|
4186
|
-
const ProductBlock = JSX(({ className, padding, backwardButton, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-
|
|
4361
|
+
const ProductBlock = JSX(({ className, padding, backwardButton, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton?.text
|
|
4187
4362
|
? renderBackwardButton(backwardButton, !rest.version || rest.version === 'primary' ? 'primary' : 'white')
|
|
4188
4363
|
: null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] })));
|
|
4189
4364
|
|
|
4190
4365
|
const ProductGallery = JSX(({ className = '', padding, slides = [], ...rest }) => {
|
|
4191
4366
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
4192
|
-
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-
|
|
4367
|
+
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "XXL", ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
|
|
4193
4368
|
});
|
|
4194
4369
|
const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
|
|
4195
4370
|
const isActive = i === activeSlideIndex;
|
|
@@ -4205,9 +4380,9 @@
|
|
|
4205
4380
|
return (jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50', btnClassName), children: [jsx("div", { className: btnTitleClassName, children: nav?.title }), jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
|
|
4206
4381
|
};
|
|
4207
4382
|
|
|
4208
|
-
const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-
|
|
4383
|
+
const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isBackground: true, ...imageOptions }, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
|
|
4209
4384
|
|
|
4210
|
-
const PromoTile = JSX(({ className, title = 'Акции и спецпредложения', description, headlineVersion = 'S', date, buttons = [], ...rest }) => (jsx(BlockWrapper, { className: style('box-border', className), ...rest, children: jsxs(BaseTile, { className: "h-full", title: title ? (jsx(Headline, { title: title, headlineVersion: headlineVersion, align: "text-left", isPadding: false })) : null, buttons: renderButtonsSection(buttons), children: [date ? jsx("div", { className: "text-s mb-
|
|
4385
|
+
const PromoTile = JSX(({ className, title = 'Акции и спецпредложения', description, headlineVersion = 'S', date, buttons = [], ...rest }) => (jsx(BlockWrapper, { className: style('box-border', className), ...rest, children: jsxs(BaseTile, { className: "h-full", title: title ? (jsx(Headline, { title: title, headlineVersion: headlineVersion, align: "text-left", isPadding: false })) : null, buttons: renderButtonsSection(buttons), children: [date ? jsx("div", { className: "text-s mb-xs", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) })));
|
|
4211
4386
|
function formatDate(date) {
|
|
4212
4387
|
const dateObj = new Date(date);
|
|
4213
4388
|
const dateFormat = {
|
|
@@ -4267,7 +4442,7 @@
|
|
|
4267
4442
|
})) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
4268
4443
|
};
|
|
4269
4444
|
const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
|
|
4270
|
-
return (jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-
|
|
4445
|
+
return (jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center 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] }));
|
|
4271
4446
|
};
|
|
4272
4447
|
|
|
4273
4448
|
const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
|
|
@@ -4285,7 +4460,7 @@
|
|
|
4285
4460
|
const RenderRadioButtons = JSX(() => {
|
|
4286
4461
|
const [selectedOption, setSelectedOption] = useState('option2');
|
|
4287
4462
|
const onChange = useCallback((_) => setSelectedOption(_), []);
|
|
4288
|
-
return (jsxs("div", { children: [jsx(Radio, { className: "mb-
|
|
4463
|
+
return (jsxs("div", { children: [jsx(Radio, { className: "mb-xs", name: "contractType", text: "\u041F\u0440\u043E\u0441\u0442\u043E\u0435 \u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435", value: "option1", checked: selectedOption === 'option1', onChange: onChange }), jsx(Radio, { name: "contractType", text: "\u0421\u0434\u0435\u043B\u043A\u0430 \u0441 \u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u044C\u044E", value: "option2", checked: selectedOption === 'option2', onChange: onChange })] }));
|
|
4289
4464
|
});
|
|
4290
4465
|
|
|
4291
4466
|
const ITEMS = ['От 1 дня', 'До 365 дней'];
|
|
@@ -4309,7 +4484,7 @@
|
|
|
4309
4484
|
|
|
4310
4485
|
const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
|
|
4311
4486
|
const price = calculatePrice(days, tariffs);
|
|
4312
|
-
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, width: "290", height: "257" }), jsxs("span", { className: "text-s font-light text-white opacity-80 mt-
|
|
4487
|
+
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, width: "290", height: "257" }), jsxs("span", { className: "text-s font-light text-white opacity-80 mt-xs inline-block", children: ["\u041D\u0430 \u0440\u0438\u0441\u0443\u043D\u043A\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0430 \u043F\u0430\u0447\u043A\u0430", jsx("br", {}), " \u043B\u0438\u0441\u0442\u043E\u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u04104"] })] })] }));
|
|
4313
4488
|
});
|
|
4314
4489
|
const renderTotal = (label, total, className = '') => {
|
|
4315
4490
|
return (jsxs("div", { className: className, children: [jsx("div", { className: "text-m font-light text-secondary-text mb-1", children: label }), jsx("span", { className: "text-h3 text-primary-text", children: total })] }));
|
|
@@ -4392,7 +4567,7 @@
|
|
|
4392
4567
|
const branches = useSafeBoxes(selectedRegion);
|
|
4393
4568
|
const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
4394
4569
|
const points = getCoordinates(getBranch(branches, safeDepositState.selectedBranch) || branches);
|
|
4395
|
-
return (jsxs(BlockWrapper, { className: className, defaultPadding: "", ...rest, children: [jsxs("div", { className: "
|
|
4570
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: "", ...rest, children: [jsxs("div", { className: "p-4xl", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-s text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onClick: handleShowMap, onChange: handleChangeSafeDepositState }), footnote ? (jsx(Paragraph, { size: "text-s", font: "font-light", children: footnote })) : null] }), points.length && showMap ? jsx(YandexMap, { points: points, className: "h-[640px]" }) : null] }));
|
|
4396
4571
|
});
|
|
4397
4572
|
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
4398
4573
|
|
|
@@ -4415,9 +4590,9 @@
|
|
|
4415
4590
|
};
|
|
4416
4591
|
const renderDefaultStep = ({ styleMap, isMainButton, version }) => (step, i, arr) => {
|
|
4417
4592
|
const { label, description, button, items, isDotted } = step;
|
|
4418
|
-
return (jsxs("div", { className: style('relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden', getContainerWidth(arr.length)), children: [jsxs("div", { className:
|
|
4593
|
+
return (jsxs("div", { className: style('relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden space-y-3xl', getContainerWidth(arr.length)), children: [jsxs("div", { className: "text-center space-y-xs", children: [label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null, jsxs("div", { className: "flex flex-col items-center gap-3xs", children: [description ? jsx("div", { className: styleMap.description, children: description }) : null, jsx(List, { className: styleMap.description, items: items, listItemSize: "M", isDotted: isDotted })] })] }), button?.text && !isMainButton ? (jsx(Button, { className: "box-border py-s h-12 w-full max-w-[240px] mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
|
|
4419
4594
|
};
|
|
4420
|
-
const getContainerWidth = (length) => (length < 5 ? 'w-[276px]' : 'w-[
|
|
4595
|
+
const getContainerWidth = (length) => (length < 5 ? 'w-[276px]' : 'w-[200px]');
|
|
4421
4596
|
|
|
4422
4597
|
const STEPS_BLOCK_STYLE = {
|
|
4423
4598
|
description: 'text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text',
|
|
@@ -4428,21 +4603,21 @@
|
|
|
4428
4603
|
};
|
|
4429
4604
|
|
|
4430
4605
|
const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
|
|
4431
|
-
const getPaddingX = (steps) => (steps < 5 ? 'px-
|
|
4606
|
+
const getPaddingX = (steps) => (steps < 5 ? 'px-24' : 'px-16');
|
|
4432
4607
|
const StepsBlock = JSX(({ className = '', showLines = true, steps = [], buttons, size = 'normal', version = 'primary', stepVersion = 'gray', title, ...rest }) => {
|
|
4433
4608
|
const shortGaps = steps.length > 3;
|
|
4434
4609
|
const styleMap = STEPS_BLOCK_STYLE;
|
|
4435
4610
|
const lineOpacity = getLineOpacity(showLines);
|
|
4436
4611
|
const paddingX = getPaddingX(steps.length);
|
|
4437
4612
|
const isMainButton = Boolean(buttons?.every((b) => b?.text));
|
|
4438
|
-
return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden', className), defaultPadding: "p-
|
|
4613
|
+
return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [title ? jsx(Heading, { headingType: "h4", className: "text-center", title: title }) : null, steps?.length ? (jsxs("div", { className: "box-border space-y-lg", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-3' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
|
|
4439
4614
|
});
|
|
4440
4615
|
const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
|
|
4441
|
-
const styleStepIconSize = size === 'normal' ? 'h-[100px] w-[100px]' : 'h-[63px] w-[63px]';
|
|
4442
|
-
const stepVersionIconTextStyles = stepVersion === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
|
|
4443
4616
|
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
4444
|
-
return (jsx(BlockWrapper, { className: `${
|
|
4617
|
+
return (jsx(BlockWrapper, { defaultPadding: "", className: `${getIconSizeStyle(size)} flex justify-center items-center text-center rounded-full box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(Img, { image: { ...icon, iconVersion: icon.iconVersion || iconVersion }, width: "48", height: "48" })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : getIconTextStyle(stepVersion)), children: i + 1 })) }, String(i)));
|
|
4445
4618
|
};
|
|
4619
|
+
const getIconSizeStyle = (size) => (size === 'normal' ? 'h-24 w-24' : 'h-16 w-16');
|
|
4620
|
+
const getIconTextStyle = (version) => version === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
|
|
4446
4621
|
|
|
4447
4622
|
const DEFAULT_GAP = 14;
|
|
4448
4623
|
/*
|
|
@@ -4521,7 +4696,7 @@
|
|
|
4521
4696
|
return (jsx("div", { className: getTabClassName('block', active, tabsMode), role: "tab", "aria-selected": active, onClick: () => onClick(tab), children: jsx("a", { role: "tab", className: style('flex flex-1 items-center justify-center h-full', getTabClassName('text', active, tabsMode)), target: tab.target, href: adjustedProps.href, onClick: handleClick, children: jsx("span", { children: tab.text }) }) }));
|
|
4522
4697
|
});
|
|
4523
4698
|
|
|
4524
|
-
const BADGE_CLASSES = 'bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-
|
|
4699
|
+
const BADGE_CLASSES = 'bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-xs flex justify-center items-center';
|
|
4525
4700
|
const LIGHT_BADGE_CLASSES = 'bg-white/30 text-white';
|
|
4526
4701
|
const DARK_BADGE_CLASSES = 'text-secondary-text group-hover/btn:text-primary-main';
|
|
4527
4702
|
const renderGroupTab = ({ page, currentTab, showCounter, onClick, tabsMode }) => (tab, i) => {
|
|
@@ -4610,7 +4785,7 @@
|
|
|
4610
4785
|
const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
4611
4786
|
|
|
4612
4787
|
const TableInnerButton = JSX(({ isOpen, onClick }) => {
|
|
4613
|
-
return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-
|
|
4788
|
+
return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-s", iconVersion: "white", width: "20", height: "20" })] }));
|
|
4614
4789
|
});
|
|
4615
4790
|
|
|
4616
4791
|
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons);
|
|
@@ -4643,7 +4818,7 @@
|
|
|
4643
4818
|
setOpenTableInnerIdx(cellIdx);
|
|
4644
4819
|
setTableInner(props);
|
|
4645
4820
|
};
|
|
4646
|
-
return (jsxs("div", { className: cell?.tableCellType === 'Table' ? 'ml-
|
|
4821
|
+
return (jsxs("div", { className: cell?.tableCellType === 'Table' ? 'ml-5xl' : `first:pt-lg last:pb-lg pl-5xl`, children: [i > 0 ? jsx("div", { className: "h-5" }) : null, renderCell({
|
|
4647
4822
|
cell,
|
|
4648
4823
|
cellProps: {
|
|
4649
4824
|
rowIdx,
|
|
@@ -4703,11 +4878,11 @@
|
|
|
4703
4878
|
'flex duration-1000 text-center',
|
|
4704
4879
|
rowIdx !== 0 ? 'font-normal' : 'font-light',
|
|
4705
4880
|
].join(' ');
|
|
4706
|
-
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
|
|
4881
|
+
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-[214px] py-lg `, children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsClassName, style: {
|
|
4707
4882
|
transform: `translateX(-${transform}px)`,
|
|
4708
|
-
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow justify-center
|
|
4883
|
+
}, 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)));
|
|
4709
4884
|
};
|
|
4710
|
-
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: `flex ${rowIndex} ${rowIndex === 0 ? 'text-secondary-text' : ''} last:mr-3`, children: cols.map((data, i) => (jsx("div", { className: `w-
|
|
4885
|
+
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: `flex ${rowIndex} ${rowIndex === 0 ? 'text-secondary-text' : ''} last:mr-3`, children: cols.map((data, i) => (jsx("div", { className: `w-20 text-h6 mr-lg first:ml-3xl`, children: data }, String(i)))) })) : null;
|
|
4711
4886
|
|
|
4712
4887
|
const InnerTableBody = JSX(({ activeTabIndex, items }) => {
|
|
4713
4888
|
const [hiddenTables, setHiddenTables] = useState({});
|
|
@@ -4718,7 +4893,7 @@
|
|
|
4718
4893
|
}) }));
|
|
4719
4894
|
});
|
|
4720
4895
|
|
|
4721
|
-
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full
|
|
4896
|
+
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full px-s", 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-m py-s cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { href: linkToPDF, version: "secondary", 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] })));
|
|
4722
4897
|
|
|
4723
4898
|
function useTariffsInnerTableData(directoryName) {
|
|
4724
4899
|
const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
|
|
@@ -4750,7 +4925,7 @@
|
|
|
4750
4925
|
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
4751
4926
|
const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
|
|
4752
4927
|
const onHideContentClick = () => setTableInner(undefined);
|
|
4753
|
-
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-
|
|
4928
|
+
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-lg ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "mr-m 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] }));
|
|
4754
4929
|
});
|
|
4755
4930
|
|
|
4756
4931
|
const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
@@ -4766,14 +4941,8 @@
|
|
|
4766
4941
|
});
|
|
4767
4942
|
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
4768
4943
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
4769
|
-
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative', className), defaultPadding: style('p-
|
|
4944
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-xl', className), defaultPadding: style('p-6xl', itemCount > 1 ? 'pr-0' : ''), ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isPadding: false }), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(Wrapper, { controls: controls, children: rows }))] }));
|
|
4770
4945
|
});
|
|
4771
|
-
function renderTitle({ title, description }) {
|
|
4772
|
-
return title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
|
|
4773
|
-
}
|
|
4774
|
-
function renderDescription$1(description) {
|
|
4775
|
-
return description ? jsx("div", { className: "mb-9 text-center text-l", children: description }) : null;
|
|
4776
|
-
}
|
|
4777
4946
|
const Wrapper = JSX(({ children, controls }) => {
|
|
4778
4947
|
const { isScrollAvailable } = controls;
|
|
4779
4948
|
return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children, renderArrows({
|
|
@@ -4792,7 +4961,7 @@
|
|
|
4792
4961
|
return (jsx("ul", { className: style('text-secondary-text group-data-secondary:text-white/80', listStyle), children: items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-s", font: "font-light", children: _ }) }, `listItem-${i}`))) }));
|
|
4793
4962
|
};
|
|
4794
4963
|
|
|
4795
|
-
const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-
|
|
4964
|
+
const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, ...rest }) })));
|
|
4796
4965
|
|
|
4797
4966
|
const alignStyle = {
|
|
4798
4967
|
stretch: 'items-stretch',
|
|
@@ -4802,7 +4971,7 @@
|
|
|
4802
4971
|
};
|
|
4803
4972
|
const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, ...rest }) => {
|
|
4804
4973
|
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
4805
|
-
return (jsx(BlockWrapper, { className: style('relative', 'flex flex-col [&>*]:max-w-full', gapStyles[gap], align && alignStyle[align], className), defaultPadding: isPadding ? 'p-
|
|
4974
|
+
return (jsx(BlockWrapper, { className: style('relative', 'flex flex-col [&>*]:max-w-full', gapStyles[gap], align && alignStyle[align], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
4806
4975
|
...rest,
|
|
4807
4976
|
renderProps: (block, options) => renderBlock$1(block, options, { className: innerPaddingStyle }),
|
|
4808
4977
|
}) }));
|
|
@@ -5020,10 +5189,10 @@
|
|
|
5020
5189
|
ContentPage.childrenTypes = [];
|
|
5021
5190
|
ContentPage.slots = () => ['header', 'footer'];
|
|
5022
5191
|
function renderLikeControl() {
|
|
5023
|
-
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-
|
|
5192
|
+
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" }) }));
|
|
5024
5193
|
}
|
|
5025
5194
|
|
|
5026
|
-
const packageVersion = "0.12.
|
|
5195
|
+
const packageVersion = "0.12.11";
|
|
5027
5196
|
|
|
5028
5197
|
exports.Blocks = Blocks;
|
|
5029
5198
|
exports.ContentPage = ContentPage;
|