@redneckz/wildless-cms-uni-blocks 0.12.5 → 0.12.7
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.7.js +20 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +183 -197
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Carousel/CarouselContent.d.ts +4 -0
- package/bundle/components/Carousel/CarouselScrollButtons.d.ts +1 -2
- package/bundle/components/Carousel/itemsGap.d.ts +1 -1
- package/bundle/components/Carousel/renderControlButtons.d.ts +11 -0
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +6 -0
- package/bundle/components/Headline/HeadlineContent.d.ts +1 -2
- package/bundle/components/Headline/headlineVersionStyles.d.ts +2 -1
- package/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/bundle/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/bundle/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/bundle/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/bundle/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -2
- package/bundle/ui-kit/Text/TextProps.d.ts +2 -2
- package/cosmos-static/icons/BelarusianFlag.svg +1 -0
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/ApplicationForm/InputControl.js +1 -1
- package/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.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/SelectControl.js +1 -1
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.mobile.js +8 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +2 -1
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +2 -2
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/dist/components/Calculator/Rate.js +1 -1
- package/dist/components/Calculator/Rate.js.map +1 -1
- package/dist/components/Calculator/UnknownRate.js +1 -1
- package/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/dist/components/Calculator/renderFootnote.js +1 -1
- package/dist/components/Calculator/renderFootnote.js.map +1 -1
- package/dist/components/Calculator/renderProposal.js +2 -1
- package/dist/components/Calculator/renderProposal.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +19 -7
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +4 -0
- package/dist/components/Carousel/CarouselScrollButtons.d.ts +1 -2
- package/dist/components/Carousel/itemsGap.d.ts +1 -1
- package/dist/components/Carousel/itemsGap.js +1 -1
- package/dist/components/Carousel/itemsGap.js.map +1 -1
- package/dist/components/Carousel/renderControlButtons.d.ts +11 -0
- package/dist/components/Carousel/renderControlButtons.js +13 -0
- package/dist/components/Carousel/renderControlButtons.js.map +1 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +6 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +9 -0
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -0
- 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/ComparisonTable/ComparisonTable.js +2 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +2 -1
- package/dist/components/ErrorBlock/ErrorBlock.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/renderTableHeader.js +1 -1
- package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/Footer/Contacts.js +2 -2
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/SocialMedia.js +1 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -2
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.js +1 -1
- package/dist/components/Footer/TextInformationLink.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/DropdownMenu.js +1 -1
- package/dist/components/Header/DropdownMenu.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/HeadlineContent.d.ts +1 -2
- package/dist/components/Headline/headlineVersionStyles.d.ts +2 -1
- package/dist/components/Headline/headlineVersionStyles.js +11 -5
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +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/OfficeMap/renderFunctions.js +4 -3
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +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 +4 -4
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +3 -17
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -3
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/SafeDepositRental/RentalPeriod.js +1 -1
- package/dist/components/SafeDepositRental/RentalPeriod.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js +16 -16
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +1 -1
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.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/TariffsTableRow.js +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +1 -1
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.js +7 -0
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +10 -0
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.js +7 -0
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.js +12 -0
- package/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/dist/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/dist/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/dist/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/dist/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +14 -0
- package/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.js +8 -0
- package/dist/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +2 -1
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/dist/ui-kit/CookiePopup/CookiePopup.js +14 -8
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +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/Dialog/useDialogProps.d.ts +3 -1
- package/dist/ui-kit/Dialog/useDialogProps.js +9 -7
- package/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +2 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +2 -2
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +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/InputRange/InputRange.js +1 -1
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/LinkButton/LinkButton.js +1 -1
- package/dist/ui-kit/List/List.js +1 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/Paragraph/Paragraph.js +2 -1
- package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -2
- package/dist/ui-kit/Tags/Tags.js +1 -1
- package/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/dist/ui-kit/Text/Text.js +2 -1
- package/dist/ui-kit/Text/Text.js.map +1 -1
- package/dist/ui-kit/Text/TextProps.d.ts +2 -2
- package/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/ApplicationForm/InputControl.js +1 -1
- package/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.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/SelectControl.js +1 -1
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.mobile.js +8 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +2 -1
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +2 -2
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/lib/components/Calculator/Rate.js +1 -1
- package/lib/components/Calculator/Rate.js.map +1 -1
- package/lib/components/Calculator/UnknownRate.js +1 -1
- package/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/lib/components/Calculator/renderFootnote.js +1 -1
- package/lib/components/Calculator/renderFootnote.js.map +1 -1
- package/lib/components/Calculator/renderProposal.js +2 -1
- package/lib/components/Calculator/renderProposal.js.map +1 -1
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +7 -4
- package/lib/components/Carousel/Carousel.js +19 -7
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +4 -0
- package/lib/components/Carousel/CarouselScrollButtons.d.ts +1 -2
- package/lib/components/Carousel/itemsGap.d.ts +1 -1
- package/lib/components/Carousel/itemsGap.js +1 -1
- package/lib/components/Carousel/itemsGap.js.map +1 -1
- package/lib/components/Carousel/renderControlButtons.d.ts +10 -0
- package/lib/components/Carousel/renderControlButtons.js +10 -0
- package/lib/components/Carousel/renderControlButtons.js.map +1 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.d.ts +1 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.mobile.d.ts +8 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +6 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +7 -0
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -0
- 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/ComparisonTable/ComparisonTable.js +2 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +2 -1
- package/lib/components/ErrorBlock/ErrorBlock.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/renderTableHeader.js +1 -1
- package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/Footer/Contacts.js +2 -2
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/SocialMedia.js +1 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -2
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.js +1 -1
- package/lib/components/Footer/TextInformationLink.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/DropdownMenu.js +1 -1
- package/lib/components/Header/DropdownMenu.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/HeadlineContent.d.ts +1 -2
- package/lib/components/Headline/headlineVersionStyles.d.ts +2 -1
- package/lib/components/Headline/headlineVersionStyles.js +11 -5
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +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/OfficeMap/renderFunctions.js +4 -3
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +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 +4 -4
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -18
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/lib/{ui-kit/Heading/Heading.fixture.mobile.d.ts → components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts} +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -3
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/SafeDepositRental/RentalPeriod.js +1 -1
- package/lib/components/SafeDepositRental/RentalPeriod.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.d.ts +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js +16 -16
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +1 -1
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.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/TariffsTableRow.js +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +1 -1
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.js +4 -0
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +3 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +7 -0
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.js +4 -0
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +2 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.js +9 -0
- package/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/lib/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/lib/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/lib/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/lib/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +12 -0
- package/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.js +6 -0
- package/lib/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +2 -1
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/lib/ui-kit/CookiePopup/CookiePopup.js +13 -7
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +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/Dialog/useDialogProps.d.ts +3 -1
- package/lib/ui-kit/Dialog/useDialogProps.js +9 -7
- package/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +2 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +2 -2
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +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/InputRange/InputRange.js +1 -1
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/LinkButton/LinkButton.js +1 -1
- package/lib/ui-kit/List/List.js +1 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/Paragraph/Paragraph.js +2 -1
- package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -2
- package/lib/ui-kit/Tags/Tags.js +1 -1
- package/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/lib/ui-kit/Text/Text.js +2 -1
- package/lib/ui-kit/Text/Text.js.map +1 -1
- package/lib/ui-kit/Text/TextProps.d.ts +2 -2
- package/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +183 -81
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +4 -0
- package/mobile/bundle/components/Carousel/CarouselScrollButtons.d.ts +1 -2
- package/mobile/bundle/components/Carousel/renderControlButtons.d.ts +11 -0
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -3
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +1 -2
- package/mobile/bundle/components/Headline/headlineVersionStyles.d.ts +2 -1
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +1 -1
- package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/bundle/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/bundle/ui-kit/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -2
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.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/SelectControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +8 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +2 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +2 -2
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Rate.js +1 -1
- package/mobile/dist/components/Calculator/Rate.js.map +1 -1
- package/mobile/dist/components/Calculator/UnknownRate.js +1 -1
- package/mobile/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/dist/components/Calculator/renderFootnote.js +1 -1
- package/mobile/dist/components/Calculator/renderFootnote.js.map +1 -1
- package/mobile/dist/components/Calculator/renderProposal.js +2 -1
- package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +19 -7
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +4 -0
- package/mobile/dist/components/Carousel/CarouselScrollButtons.d.ts +1 -2
- package/mobile/dist/components/Carousel/renderControlButtons.d.ts +11 -0
- package/mobile/dist/components/Carousel/renderControlButtons.js +13 -0
- package/mobile/dist/components/Carousel/renderControlButtons.js.map +1 -0
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -3
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -40
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.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/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.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/renderTableHeader.js +1 -1
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +2 -2
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -2
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.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/DropdownMenu.js +1 -1
- package/mobile/dist/components/Header/DropdownMenu.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/HeadlineContent.d.ts +1 -2
- package/mobile/dist/components/Headline/headlineVersionStyles.d.ts +2 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js +11 -5
- package/mobile/dist/components/Headline/headlineVersionStyles.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/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +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/OfficeMap/renderFunctions.js +4 -3
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.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/ProductBlock/ProductBlock.d.ts +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/ProductGallery/ProductGallery.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +3 -17
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -3
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js +1 -1
- package/mobile/dist/components/SafeDepositRental/RentalPeriod.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js +16 -16
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.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/TariffsTableRow.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.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/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.js +7 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +10 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.js +7 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js +12 -0
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js +14 -0
- package/mobile/dist/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.js +8 -0
- package/mobile/dist/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +14 -8
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +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/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js +9 -7
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +2 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +2 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +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/InputRange/InputRange.js +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js +2 -1
- package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -2
- package/mobile/dist/ui-kit/Tags/Tags.js +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/dist/ui-kit/Text/Text.js +2 -1
- package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +2 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.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/SelectControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +8 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +2 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +2 -2
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Rate.js +1 -1
- package/mobile/lib/components/Calculator/Rate.js.map +1 -1
- package/mobile/lib/components/Calculator/UnknownRate.js +1 -1
- package/mobile/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/lib/components/Calculator/renderFootnote.js +1 -1
- package/mobile/lib/components/Calculator/renderFootnote.js.map +1 -1
- package/mobile/lib/components/Calculator/renderProposal.js +2 -1
- package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +19 -7
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +4 -0
- package/mobile/lib/components/Carousel/CarouselScrollButtons.d.ts +1 -2
- package/mobile/lib/components/Carousel/renderControlButtons.d.ts +11 -0
- package/mobile/lib/components/Carousel/renderControlButtons.js +10 -0
- package/mobile/lib/components/Carousel/renderControlButtons.js.map +1 -0
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -3
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -40
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.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/ErrorBlock/ErrorBlock.js +2 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.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/renderTableHeader.js +1 -1
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +2 -2
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -2
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.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/DropdownMenu.js +1 -1
- package/mobile/lib/components/Header/DropdownMenu.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/HeadlineContent.d.ts +1 -2
- package/mobile/lib/components/Headline/headlineVersionStyles.d.ts +2 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js +11 -5
- package/mobile/lib/components/Headline/headlineVersionStyles.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/InvestmentInfo/InvestmentInfo.js +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +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/OfficeMap/renderFunctions.js +4 -3
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.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/ProductBlock/ProductBlock.d.ts +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/ProductGallery/ProductGallery.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -18
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +3 -26
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -3
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js +1 -1
- package/mobile/lib/components/SafeDepositRental/RentalPeriod.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js +16 -16
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.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/TariffsTableRow.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.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/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +2 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +3 -2
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +3 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.d.ts +4 -4
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -11
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.js +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +7 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.js +4 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +3 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js +9 -0
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.d.ts +1 -5
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js +3 -9
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +3 -1
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.d.ts +4 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.js +2 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListProps.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js +12 -0
- package/mobile/lib/ui-kit/BenefitsList/DefaultBenefitsList.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.d.ts +2 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.js +6 -0
- package/mobile/lib/ui-kit/BenefitsList/TabularBenefitsList.js.map +1 -0
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +2 -3
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +13 -7
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +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/Dialog/useDialogProps.d.ts +3 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js +9 -7
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +2 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +2 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +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/InputRange/InputRange.js +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +1 -1
- package/mobile/lib/ui-kit/List/List.js +1 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js +2 -1
- package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -2
- package/mobile/lib/ui-kit/Tags/Tags.js +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/lib/ui-kit/Text/Text.js +2 -1
- package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +2 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/mobile/src/components/ApplicationForm/InputControl.tsx +1 -1
- package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +1 -1
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +6 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +8 -0
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +4 -1
- package/mobile/src/components/Calculator/Calculator.tsx +2 -2
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/mobile/src/components/Calculator/Rate.tsx +1 -1
- package/mobile/src/components/Calculator/UnknownRate.tsx +2 -2
- package/mobile/src/components/Calculator/renderFootnote.tsx +1 -1
- package/mobile/src/components/Calculator/renderProposal.tsx +6 -1
- package/mobile/src/components/Carousel/Carousel.tsx +21 -29
- package/mobile/src/components/Carousel/CarouselContent.ts +4 -0
- package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +1 -1
- package/mobile/src/components/Carousel/renderControlButtons.tsx +24 -0
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +14 -76
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +6 -1
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +7 -2
- package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -1
- package/mobile/src/components/Footer/Contacts.tsx +2 -2
- package/mobile/src/components/Footer/TextInformation.tsx +1 -2
- package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +1 -1
- package/mobile/src/components/Headline/Headline.example.json +1 -11
- package/mobile/src/components/Headline/Headline.tsx +1 -0
- package/mobile/src/components/Headline/HeadlineContent.ts +1 -3
- package/mobile/src/components/Headline/headlineVersionStyles.ts +13 -6
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/MobileAppTile/renderList.tsx +2 -2
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +8 -7
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +6 -1
- package/mobile/src/components/PictureText/PictureText.example.json +7 -2
- package/mobile/src/components/PictureText/PictureText.tsx +14 -3
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +4 -2
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +20 -16
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +19 -17
- package/mobile/src/components/ProductTile/ProductTile.example.json +4 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +23 -58
- package/mobile/src/components/ProductTile/ProductTileContent.ts +4 -35
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -4
- package/mobile/src/components/SafeDepositRental/RentalPeriod.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +50 -49
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +1 -1
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +5 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/components/TextBlock/TextBlock.tsx +1 -1
- package/mobile/src/components/Tile/Tile.example.json +6 -2
- package/mobile/src/components/Tile/Tile.tsx +4 -3
- package/mobile/src/icons/BelarusianFlag.svg +4 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +19 -6
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -1
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -49
- package/mobile/src/ui-kit/BenefitItem/renderBenefitDescription.tsx +13 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +24 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitLabel.tsx +12 -0
- package/mobile/src/ui-kit/BenefitItem/renderBenefitText.tsx +14 -0
- package/mobile/src/ui-kit/BenefitsList/BenefitsList.tsx +5 -32
- package/mobile/src/ui-kit/BenefitsList/BenefitsListContent.ts +3 -1
- package/mobile/src/ui-kit/BenefitsList/BenefitsListProps.ts +5 -0
- package/mobile/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +33 -0
- package/mobile/src/ui-kit/BenefitsList/TabularBenefitsList.tsx +17 -0
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +8 -1
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +18 -10
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +2 -2
- package/mobile/src/ui-kit/Dialog/useDialogProps.ts +11 -9
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +5 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +2 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +1 -1
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +3 -2
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/Tags/Tags.tsx +3 -1
- package/mobile/src/ui-kit/Text/Text.tsx +3 -2
- package/mobile/src/ui-kit/Text/TextProps.ts +1 -15
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/Footnote.tsx +1 -1
- package/src/components/ApplicationForm/InputControl.tsx +1 -1
- package/src/components/ApplicationForm/PhoneInputControl.tsx +1 -1
- package/src/components/ApplicationForm/ResponseNotification.tsx +1 -1
- package/src/components/ApplicationForm/SelectControl.tsx +1 -1
- package/src/components/ApplicationForm/renderCreditParameters.tsx +6 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +8 -0
- package/src/components/BusinessBlock/BusinessCard.tsx +4 -1
- package/src/components/Calculator/Calculator.tsx +2 -2
- package/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/src/components/Calculator/Rate.tsx +1 -1
- package/src/components/Calculator/UnknownRate.tsx +2 -2
- package/src/components/Calculator/renderFootnote.tsx +1 -1
- package/src/components/Calculator/renderProposal.tsx +6 -1
- package/src/components/Carousel/Carousel.fixture.mobile.tsx +173 -35
- package/src/components/Carousel/Carousel.fixture.tsx +6 -1
- package/src/components/Carousel/Carousel.tsx +21 -29
- package/src/components/Carousel/CarouselContent.ts +4 -0
- package/src/components/Carousel/CarouselScrollButtons.tsx +1 -1
- package/src/components/Carousel/itemsGap.ts +1 -1
- package/src/components/Carousel/renderControlButtons.tsx +24 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.mobile.tsx +18 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +8 -0
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +23 -0
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +2 -2
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +4 -3
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +6 -1
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +7 -2
- package/src/components/ExchangeRateOffice/renderTableHeader.tsx +1 -1
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +1 -1
- package/src/components/Footer/Contacts.tsx +2 -2
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/SocialMedia.tsx +1 -1
- package/src/components/Footer/TextInformation.tsx +1 -2
- package/src/components/Footer/TextInformationLink.tsx +1 -1
- package/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/src/components/Header/DropdownMenu.tsx +1 -1
- package/src/components/Headline/Headline.example.json +1 -11
- package/src/components/Headline/Headline.tsx +1 -0
- package/src/components/Headline/HeadlineContent.ts +1 -3
- package/src/components/Headline/headlineVersionStyles.ts +13 -6
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/MobileAppTile/renderList.tsx +2 -2
- package/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/src/components/OfficeMap/renderFunctions.tsx +8 -7
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +6 -1
- package/src/components/PictureText/PictureText.example.json +7 -2
- package/src/components/PictureText/PictureText.tsx +14 -3
- package/src/components/ProductBlock/ProductBlock.example.json +4 -2
- package/src/components/ProductBlock/ProductBlock.tsx +20 -16
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +19 -17
- package/src/components/ProductGallery/ProductGallery.tsx +4 -3
- package/src/components/ProductTile/ProductTile.example.json +4 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +13 -14
- package/src/components/ProductTile/ProductTile.tsx +23 -58
- package/src/components/ProductTile/ProductTileContent.ts +4 -35
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +47 -0
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +18 -9
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -4
- package/src/components/SafeDepositRental/RentalPeriod.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +6 -1
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -1
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +16 -8
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +50 -49
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +1 -1
- package/src/components/TariffsTable/EmbeddableCellData.tsx +3 -1
- package/src/components/TariffsTable/TableTileHeader.tsx +5 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/Tile/Tile.example.json +6 -2
- package/src/components/Tile/Tile.fixture.tsx +1 -1
- package/src/components/Tile/Tile.tsx +4 -3
- package/src/icons/BelarusianFlag.svg +4 -0
- package/src/icons/IconName.ts +5 -5
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +19 -6
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +3 -1
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -49
- package/src/ui-kit/BenefitItem/renderBenefitDescription.tsx +13 -0
- package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +24 -0
- package/src/ui-kit/BenefitItem/renderBenefitLabel.tsx +12 -0
- package/src/ui-kit/BenefitItem/renderBenefitText.tsx +14 -0
- package/src/ui-kit/BenefitsList/BenefitsList.tsx +5 -32
- package/src/ui-kit/BenefitsList/BenefitsListContent.ts +3 -1
- package/src/ui-kit/BenefitsList/BenefitsListProps.ts +5 -0
- package/src/ui-kit/BenefitsList/DefaultBenefitsList.tsx +33 -0
- package/src/ui-kit/BenefitsList/TabularBenefitsList.tsx +17 -0
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +8 -1
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +18 -10
- package/src/ui-kit/Dialog/Dialog.tsx +2 -2
- package/src/ui-kit/Dialog/useDialogProps.ts +11 -9
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +5 -2
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +2 -2
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
- package/src/ui-kit/InputRange/InputRange.tsx +1 -1
- package/src/ui-kit/LinkButton/LinkButton.tsx +1 -1
- package/src/ui-kit/List/List.tsx +1 -1
- package/src/ui-kit/Paragraph/Paragraph.tsx +3 -2
- package/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/Tags/Tags.tsx +3 -1
- package/src/ui-kit/Text/Text.tsx +3 -2
- package/src/ui-kit/Text/TextProps.ts +1 -15
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/tailwind.config.cjs +0 -3
- package/bundle/components/Carousel/itemsGap.mobile.d.ts +0 -1
- package/bundle/components/Footer/textInformationTextSize.d.ts +0 -1
- package/bundle/components/Footer/textInformationTextSize.mobile.d.ts +0 -1
- package/bundle/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/bundle/components/ProductTile/renderBenefit.d.ts +0 -3
- package/bundle/components/ProductTile/renderImage.d.ts +0 -3
- package/bundle/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/bundle/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/bundle/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/dist/components/Carousel/itemsGap.mobile.d.ts +0 -1
- package/dist/components/Carousel/itemsGap.mobile.js +0 -4
- package/dist/components/Carousel/itemsGap.mobile.js.map +0 -1
- package/dist/components/Footer/textInformationTextSize.d.ts +0 -1
- package/dist/components/Footer/textInformationTextSize.js +0 -4
- package/dist/components/Footer/textInformationTextSize.js.map +0 -1
- package/dist/components/Footer/textInformationTextSize.mobile.d.ts +0 -1
- package/dist/components/Footer/textInformationTextSize.mobile.js +0 -4
- package/dist/components/Footer/textInformationTextSize.mobile.js.map +0 -1
- package/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/dist/components/MobileAppTile/renderButtonSection.js +0 -1
- package/dist/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/dist/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/dist/components/ProductTile/renderAdditionalDescription.js +0 -14
- package/dist/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/dist/components/ProductTile/renderBenefit.d.ts +0 -3
- package/dist/components/ProductTile/renderBenefit.js +0 -29
- package/dist/components/ProductTile/renderBenefit.js.map +0 -1
- package/dist/components/ProductTile/renderImage.d.ts +0 -3
- package/dist/components/ProductTile/renderImage.js +0 -13
- package/dist/components/ProductTile/renderImage.js.map +0 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js +0 -4
- package/dist/ui-kit/BenefitItem/borderRadius.mobile.js.map +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.js +0 -4
- package/dist/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js +0 -4
- package/dist/ui-kit/BenefitItem/labelSize.mobile.js.map +0 -1
- package/dist/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/dist/ui-kit/BenefitsList/renderBenefit.js +0 -13
- package/dist/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/lib/components/Carousel/itemsGap.mobile.d.ts +0 -1
- package/lib/components/Carousel/itemsGap.mobile.js +0 -2
- package/lib/components/Carousel/itemsGap.mobile.js.map +0 -1
- package/lib/components/Footer/textInformationTextSize.d.ts +0 -1
- package/lib/components/Footer/textInformationTextSize.js +0 -2
- package/lib/components/Footer/textInformationTextSize.js.map +0 -1
- package/lib/components/Footer/textInformationTextSize.mobile.d.ts +0 -1
- package/lib/components/Footer/textInformationTextSize.mobile.js +0 -2
- package/lib/components/Footer/textInformationTextSize.mobile.js.map +0 -1
- package/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/lib/components/MobileAppTile/renderButtonSection.js +0 -1
- package/lib/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/lib/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/lib/components/ProductTile/renderAdditionalDescription.js +0 -11
- package/lib/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/lib/components/ProductTile/renderBenefit.d.ts +0 -2
- package/lib/components/ProductTile/renderBenefit.js +0 -26
- package/lib/components/ProductTile/renderBenefit.js.map +0 -1
- package/lib/components/ProductTile/renderImage.d.ts +0 -3
- package/lib/components/ProductTile/renderImage.js +0 -10
- package/lib/components/ProductTile/renderImage.js.map +0 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js +0 -2
- package/lib/ui-kit/BenefitItem/borderRadius.mobile.js.map +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.js +0 -2
- package/lib/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.mobile.d.ts +0 -1
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js +0 -2
- package/lib/ui-kit/BenefitItem/labelSize.mobile.js.map +0 -1
- package/lib/ui-kit/BenefitsList/renderBenefit.d.ts +0 -3
- package/lib/ui-kit/BenefitsList/renderBenefit.js +0 -10
- package/lib/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/bundle/components/Footer/textInformationTextSize.d.ts +0 -1
- package/mobile/bundle/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/bundle/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/bundle/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/bundle/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/dist/components/Footer/textInformationTextSize.d.ts +0 -1
- package/mobile/dist/components/Footer/textInformationTextSize.js +0 -4
- package/mobile/dist/components/Footer/textInformationTextSize.js.map +0 -1
- package/mobile/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js +0 -1
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js +0 -14
- package/mobile/dist/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderBenefit.js +0 -29
- package/mobile/dist/components/ProductTile/renderBenefit.js.map +0 -1
- package/mobile/dist/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/dist/components/ProductTile/renderImage.js +0 -13
- package/mobile/dist/components/ProductTile/renderImage.js.map +0 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js +0 -4
- package/mobile/dist/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js +0 -13
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/lib/components/Footer/textInformationTextSize.d.ts +0 -1
- package/mobile/lib/components/Footer/textInformationTextSize.js +0 -2
- package/mobile/lib/components/Footer/textInformationTextSize.js.map +0 -1
- package/mobile/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js +0 -1
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js +0 -11
- package/mobile/lib/components/ProductTile/renderAdditionalDescription.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderBenefit.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderBenefit.js +0 -26
- package/mobile/lib/components/ProductTile/renderBenefit.js.map +0 -1
- package/mobile/lib/components/ProductTile/renderImage.d.ts +0 -3
- package/mobile/lib/components/ProductTile/renderImage.js +0 -10
- package/mobile/lib/components/ProductTile/renderImage.js.map +0 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.d.ts +0 -1
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js +0 -2
- package/mobile/lib/ui-kit/BenefitItem/labelSize.js.map +0 -1
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.d.ts +0 -4
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js +0 -10
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js.map +0 -1
- package/mobile/src/components/Footer/textInformationTextSize.ts +0 -1
- package/mobile/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/mobile/src/components/ProductTile/renderAdditionalDescription.tsx +0 -19
- package/mobile/src/components/ProductTile/renderBenefit.tsx +0 -41
- package/mobile/src/components/ProductTile/renderImage.tsx +0 -16
- package/mobile/src/ui-kit/BenefitItem/labelSize.tsx +0 -1
- package/mobile/src/ui-kit/BenefitsList/renderBenefit.tsx +0 -14
- package/src/components/Carousel/itemsGap.mobile.ts +0 -1
- package/src/components/Footer/textInformationTextSize.mobile.ts +0 -1
- package/src/components/Footer/textInformationTextSize.ts +0 -1
- package/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/src/components/ProductTile/renderAdditionalDescription.tsx +0 -19
- package/src/components/ProductTile/renderBenefit.tsx +0 -41
- package/src/components/ProductTile/renderImage.tsx +0 -16
- package/src/ui-kit/BenefitItem/borderRadius.mobile.tsx +0 -1
- package/src/ui-kit/BenefitItem/labelSize.mobile.tsx +0 -1
- package/src/ui-kit/BenefitItem/labelSize.tsx +0 -1
- package/src/ui-kit/BenefitsList/renderBenefit.tsx +0 -14
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +0 -30
package/bundle/bundle.umd.js
CHANGED
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
|
|
620
620
|
const ButtonInner = JSX((props) => {
|
|
621
621
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
622
|
-
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-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
622
|
+
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-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
623
623
|
});
|
|
624
624
|
const getButtonStyle = (props) => {
|
|
625
625
|
const { version, aboveText, rounded } = props;
|
|
@@ -660,11 +660,11 @@
|
|
|
660
660
|
const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, children }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel, role: href ? 'link' : 'button', onClick: onClick, children: children })));
|
|
661
661
|
const DisabledButton = JSX(({ className, ariaLabel, version, rounded, children }) => (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children })));
|
|
662
662
|
|
|
663
|
-
const Paragraph = JSX(({ children, ...
|
|
663
|
+
const Paragraph = JSX(({ children, ...styleProps }) => (jsx("p", { className: style('font-sans', Object.values(styleProps)), children: children })));
|
|
664
664
|
|
|
665
|
-
const Text = JSX(({ children, ...
|
|
665
|
+
const Text = JSX(({ children, ...styleProps }) => (jsx("span", { className: style('font-sans', Object.values(styleProps)), children: children })));
|
|
666
666
|
|
|
667
|
-
const Footnote = JSX(({ link }) => (jsxs(Paragraph, { size: "text-s-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443, \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
|
|
667
|
+
const Footnote = JSX(({ link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443, \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
|
|
668
668
|
|
|
669
669
|
const withValidator = (props, validator) => {
|
|
670
670
|
const { value, isDirty } = props;
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-2", 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] }));
|
|
688
688
|
});
|
|
689
689
|
|
|
690
|
-
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-light", color: "text-error", children: error })) : null })] })));
|
|
690
|
+
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 })] })));
|
|
691
691
|
|
|
692
692
|
const isPlaceholder = (_) => _ === '_';
|
|
693
693
|
const isDigit = (_) => /\d/.test(_);
|
|
@@ -708,7 +708,7 @@
|
|
|
708
708
|
return (jsx(Input, { onChange: handleChange, onFocus: (event) => handleChange(event?.target?.value || ''), ...inputProps, children: children }));
|
|
709
709
|
});
|
|
710
710
|
|
|
711
|
-
const PhoneInputControl = JSX(({ className, label, value, error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(PhoneInput, { "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-light", color: "text-error", children: error })) : null })] })));
|
|
711
|
+
const PhoneInputControl = JSX(({ className, label, value, error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(PhoneInput, { "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 })] })));
|
|
712
712
|
|
|
713
713
|
const pattern = (regexp) => validator((_) => typeof _ === 'string' && regexp.test(_));
|
|
714
714
|
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
const formatOption = (_) => _?.text || _?.key || '';
|
|
804
804
|
const getBorderStyle = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
|
|
805
805
|
|
|
806
|
-
const SelectControl = JSX((props) => (jsxs("div", { children: [jsx(Select, { ...props, valid: !props.error }), jsx("div", { className: "h-2", children: props.error ? (jsx(Text, { size: "text-xs-light", color: "text-error", children: props.error })) : null })] })));
|
|
806
|
+
const SelectControl = JSX((props) => (jsxs("div", { children: [jsx(Select, { ...props, valid: !props.error }), jsx("div", { className: "h-2", children: props.error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: props.error })) : null })] })));
|
|
807
807
|
|
|
808
808
|
const renderAcquiringRegion = ({ regions, field }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), defaultValidator) }) }), jsx("div", { className: "w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) })] }));
|
|
809
809
|
|
|
@@ -971,9 +971,9 @@
|
|
|
971
971
|
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-2 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)] }));
|
|
972
972
|
});
|
|
973
973
|
const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
|
|
974
|
-
const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-2", children: items.map((item, i) => (jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: item }, String(i)))) }));
|
|
974
|
+
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)))) }));
|
|
975
975
|
|
|
976
|
-
const renderCreditParameters = (field) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m-light", children: "\u0421\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u20BD" }) }), jsx(InputRange, { items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })] }), jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m-light", children: "\u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u043C\u0435\u0441\u044F\u0446\u0435\u0432" }) }), jsx(InputRange, { items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') })] })] }));
|
|
976
|
+
const renderCreditParameters = (field) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u20BD" }) }), jsx(InputRange, { items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })] }), jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u043C\u0435\u0441\u044F\u0446\u0435\u0432" }) }), jsx(InputRange, { items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') })] })] }));
|
|
977
977
|
|
|
978
978
|
const renderRegionDepartment = ({ regions, branches, field }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }), jsx("div", { className: "w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
|
|
979
979
|
key: branchCode,
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
onChange && onChange(!value);
|
|
1093
1093
|
}, [onChange, disabled, value]);
|
|
1094
1094
|
const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
|
|
1095
|
-
return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? jsx("
|
|
1095
|
+
return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-3", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
|
|
1096
1096
|
});
|
|
1097
1097
|
const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
|
|
1098
1098
|
|
|
@@ -1140,7 +1140,7 @@
|
|
|
1140
1140
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
1141
1141
|
const responseOK = responseType === 'OK';
|
|
1142
1142
|
const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
|
|
1143
|
-
return (jsxs("div", { className: `flex items-center mt-5 p-5 rounded-md ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponceOKIcon' }, width: "42", height: "42", className: "mr-4" })) : (jsx(Img, { image: { icon: 'ResponceFailIcon' }, width: "37", height: "34", className: "mr-4" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-1" }), jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
|
|
1143
|
+
return (jsxs("div", { className: `flex items-center mt-5 p-5 rounded-md ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponceOKIcon' }, width: "42", height: "42", className: "mr-4" })) : (jsx(Img, { image: { icon: 'ResponceFailIcon' }, width: "37", height: "34", className: "mr-4" })), 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 ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
|
|
1144
1144
|
});
|
|
1145
1145
|
|
|
1146
1146
|
const COMPONENTS_MAP = {
|
|
@@ -1164,11 +1164,11 @@
|
|
|
1164
1164
|
|
|
1165
1165
|
const benefitImageStyles = 'w-12 h-12 min-w-12 rounded-full';
|
|
1166
1166
|
|
|
1167
|
-
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: "text-center", title: title }) : null, benefitList?.length ? (jsx("div", { className: "sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8", role: "list", children: benefitList.map(renderBenefit
|
|
1168
|
-
const renderBenefit
|
|
1167
|
+
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: "text-center", title: title }) : null, benefitList?.length ? (jsx("div", { className: "sm:flex sm:flex-wrap w-full sm:justify-center sm:gap-x-m gap-y-lg sm:gap-y-0 mt-8", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
|
|
1168
|
+
const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex items-center sm:basis-1/2 sm:max-w-[400px] mb-14", role: "listitem", children: [benefit?.icon?.icon ? (jsx(Img, { className: style('p-3 mr-5 shrink-0 bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black', benefitImageStyles), image: benefit.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "mr-5 shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$4(benefit.description)] })) : null] }, String(i)));
|
|
1169
1169
|
const renderDescription$4 = (description) => {
|
|
1170
1170
|
const benefitType = description?.benefitType || null;
|
|
1171
|
-
return description && benefitType ? (jsx("div", { className: "mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
1171
|
+
return description && benefitType ? (jsx("div", { className: "mt-2 text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
|
|
1172
1172
|
? renderListBenefit(description)
|
|
1173
1173
|
: renderTextBenefit(description) })) : null;
|
|
1174
1174
|
};
|
|
@@ -1192,31 +1192,37 @@
|
|
|
1192
1192
|
XXL: {
|
|
1193
1193
|
title: { headingType: 'h0', as: 'h1' },
|
|
1194
1194
|
descriptionSize: 'text-h5',
|
|
1195
|
+
descriptionWeight: 'font-normal',
|
|
1195
1196
|
descriptionStyle: 'mt-m',
|
|
1196
1197
|
},
|
|
1197
1198
|
XL: {
|
|
1198
1199
|
title: { headingType: 'h1', as: 'h1' },
|
|
1199
|
-
descriptionSize: 'text-xl
|
|
1200
|
+
descriptionSize: 'text-xl',
|
|
1201
|
+
descriptionWeight: 'font-light',
|
|
1200
1202
|
descriptionStyle: 'mt-s',
|
|
1201
1203
|
},
|
|
1202
1204
|
L: {
|
|
1203
1205
|
title: { headingType: 'h2', as: 'h2' },
|
|
1204
|
-
descriptionSize: 'text-xl
|
|
1206
|
+
descriptionSize: 'text-xl',
|
|
1207
|
+
descriptionWeight: 'font-light',
|
|
1205
1208
|
descriptionStyle: 'mt-s',
|
|
1206
1209
|
},
|
|
1207
1210
|
M: {
|
|
1208
1211
|
title: { headingType: 'h3', as: 'h2' },
|
|
1209
|
-
descriptionSize: 'text-xl
|
|
1212
|
+
descriptionSize: 'text-xl',
|
|
1213
|
+
descriptionWeight: 'font-light',
|
|
1210
1214
|
descriptionStyle: 'mt-text',
|
|
1211
1215
|
},
|
|
1212
1216
|
S: {
|
|
1213
1217
|
title: { headingType: 'h4', as: 'h2' },
|
|
1214
|
-
descriptionSize: 'text-xl
|
|
1218
|
+
descriptionSize: 'text-xl',
|
|
1219
|
+
descriptionWeight: 'font-light',
|
|
1215
1220
|
descriptionStyle: 'mt-xs',
|
|
1216
1221
|
},
|
|
1217
1222
|
XS: {
|
|
1218
1223
|
title: { headingType: 'h5', as: 'h2' },
|
|
1219
|
-
descriptionSize: 'text-l
|
|
1224
|
+
descriptionSize: 'text-l',
|
|
1225
|
+
descriptionWeight: 'font-light',
|
|
1220
1226
|
descriptionStyle: 'mt-xs',
|
|
1221
1227
|
},
|
|
1222
1228
|
};
|
|
@@ -1235,7 +1241,7 @@
|
|
|
1235
1241
|
const Headline = JSX(({ className, version = '', headlineVersion = 'XL', title, description, align = 'text-center', as, isPadding = true, isTheme = false, ...rest }) => {
|
|
1236
1242
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
1237
1243
|
const descriptionStyle = { marginTop: versionStyle.descriptionStyle };
|
|
1238
|
-
return (jsxs(BlockWrapper, { className: className, defaultPadding: isPadding ? 'p-default' : '', 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, align: align, ...descriptionStyle, children: description })) : null] }));
|
|
1244
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: isPadding ? 'p-default' : '', 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] }));
|
|
1239
1245
|
});
|
|
1240
1246
|
|
|
1241
1247
|
const Bonus = JSX((props) => {
|
|
@@ -1291,7 +1297,7 @@
|
|
|
1291
1297
|
});
|
|
1292
1298
|
const renderItem = (item, key) => {
|
|
1293
1299
|
const { icon, text } = item;
|
|
1294
|
-
return (jsxs("li", { className: "flex items-center gap-3.5 mb-3 last:mb-0", children: [icon?.icon ? (jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider" })) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx(
|
|
1300
|
+
return (jsxs("li", { className: "flex items-center gap-3.5 mb-3 last:mb-0", children: [icon?.icon ? (jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider" })) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx(Text, { size: "text-xl", font: "font-light", children: text })] }, key));
|
|
1295
1301
|
};
|
|
1296
1302
|
|
|
1297
1303
|
const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center mb-8" }), jsx("div", { className: "flex gap-5", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
@@ -1332,7 +1338,7 @@
|
|
|
1332
1338
|
return isVisible ? (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: `absolute z-40 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: `absolute z-40 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
|
|
1333
1339
|
}
|
|
1334
1340
|
|
|
1335
|
-
const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => (jsxs("div", { className: style('mb-7', className), children: [title ? (jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsxs(Text, { size: "text-h3", children: [prefix, " ", toLocalNumberFormat(2)(Math.round(value)), " ", postfix] }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
|
|
1341
|
+
const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => (jsxs("div", { className: style('mb-7', className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsxs(Text, { size: "text-h3", children: [prefix, " ", toLocalNumberFormat(2)(Math.round(value)), " ", postfix] }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
|
|
1336
1342
|
|
|
1337
1343
|
const DEFAULT_MIN_SUM$1 = 10000;
|
|
1338
1344
|
const DEFAULT_MAX_SUM$1 = 5000000;
|
|
@@ -1401,9 +1407,9 @@
|
|
|
1401
1407
|
const DEPOSIT_CALC_DEFAULT_DIR = 'deposit-calculator-data';
|
|
1402
1408
|
const BUSINESS_DEPOSIT_CALC_DEFAULT_DIR = 'business-calculator-data';
|
|
1403
1409
|
|
|
1404
|
-
const Rate = JSX(({ rate, title = 'Ставка', unit, depositeName, isShowDepositeName, rateBlockClassName, fractionDigits = 2, }) => (jsxs("div", { children: [jsx(Text, { size: "text-l-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] })] })));
|
|
1410
|
+
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] })] })));
|
|
1405
1411
|
|
|
1406
|
-
const renderFootnote = (text) => text ? (jsx(Paragraph, { size: "text-s-light", color: "text-secondary-text", children: text })) : null;
|
|
1412
|
+
const renderFootnote = (text) => text ? (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: text })) : null;
|
|
1407
1413
|
|
|
1408
1414
|
const DEFAULT_MONEY_STEP = 1000;
|
|
1409
1415
|
function renderWantedSumInput({ isShowItems = true, step = DEFAULT_MONEY_STEP, ...rest }) {
|
|
@@ -1488,7 +1494,7 @@
|
|
|
1488
1494
|
],
|
|
1489
1495
|
});
|
|
1490
1496
|
|
|
1491
|
-
const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { children: [jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: title }), jsx("div", { className: "mt-1 pt-1 pl-5 pb-1.5", children: jsx(Icon, { name: "PercentIcon", width: "90", height: "85" }) }), jsx("div", { className: "w-[250px] mt-3.5", children: jsxs(Paragraph, { size: "text-xl-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"] }) })] })));
|
|
1497
|
+
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-1 pt-1 pl-5 pb-1.5", children: jsx(Icon, { name: "PercentIcon", width: "90", height: "85" }) }), jsx("div", { className: "w-[250px] mt-3.5", 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"] }) })] })));
|
|
1492
1498
|
|
|
1493
1499
|
const defaultDiscriminator = (_) => _;
|
|
1494
1500
|
const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
@@ -1884,8 +1890,8 @@
|
|
|
1884
1890
|
: `h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text`;
|
|
1885
1891
|
const btnTitleClassName = isActive ? 'text-xl mb-1.5' : `text-l mb-[3px]`;
|
|
1886
1892
|
const btnDescClassName = isActive
|
|
1887
|
-
? 'text-l-light text-white'
|
|
1888
|
-
: `text-m-light text-secondary-text`;
|
|
1893
|
+
? 'text-l font-light text-white'
|
|
1894
|
+
: `text-m font-light text-secondary-text`;
|
|
1889
1895
|
const iconClassName = isActive ? '' : `text-primary-main`;
|
|
1890
1896
|
const iconVersion = tab?.icon?.iconVersion;
|
|
1891
1897
|
const activeIconStyle = isActive ? 'white' : 'normal';
|
|
@@ -2044,28 +2050,6 @@
|
|
|
2044
2050
|
.filter(([_]) => _ && _.intersectionRatio >= 0.9)
|
|
2045
2051
|
.map(([, i]) => i);
|
|
2046
2052
|
|
|
2047
|
-
const containerStyles = {
|
|
2048
|
-
'horizontal-list': 'mx-auto mt-5 w-fit',
|
|
2049
|
-
'vertical-list': 'absolute flex-col justify-center h-full top-0 left-4',
|
|
2050
|
-
};
|
|
2051
|
-
const activeDotStyles = {
|
|
2052
|
-
'horizontal-list': 'w-6',
|
|
2053
|
-
'vertical-list': 'h-6',
|
|
2054
|
-
};
|
|
2055
|
-
const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
2056
|
-
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
2057
|
-
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
2058
|
-
const handleClick = (idx) => {
|
|
2059
|
-
if (idx !== activeIndex && containerRef?.current) {
|
|
2060
|
-
containerRef.current.children[idx]?.scrollIntoView({
|
|
2061
|
-
behavior: 'smooth',
|
|
2062
|
-
block: 'nearest',
|
|
2063
|
-
});
|
|
2064
|
-
}
|
|
2065
|
-
};
|
|
2066
|
-
return dotCount ? (jsx("div", { className: style('flex gap-2', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
|
|
2067
|
-
});
|
|
2068
|
-
|
|
2069
2053
|
const areArraysEqual = (as, bs) => as === bs || Boolean(as && bs && as?.length === bs?.length && as.every((_, i) => _ === bs[i]));
|
|
2070
2054
|
|
|
2071
2055
|
const getItemWidth = (container) => (itemCount) => container.scrollWidth / itemCount;
|
|
@@ -2128,6 +2112,8 @@
|
|
|
2128
2112
|
];
|
|
2129
2113
|
};
|
|
2130
2114
|
|
|
2115
|
+
const ITEMS_GAP = 16;
|
|
2116
|
+
|
|
2131
2117
|
const scrollButtonStyle$1 = 'absolute top-[calc(50%-24px)] z-40';
|
|
2132
2118
|
const blurBaseStyle = 'absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none';
|
|
2133
2119
|
const CarouselScrollButtons = JSX(({ scroll, arrowsPadded, isBlur, onScrollLeft, onScrollRight, hasEdgeBlocks, activeIndex, itemCount, }) => {
|
|
@@ -2156,12 +2142,39 @@
|
|
|
2156
2142
|
});
|
|
2157
2143
|
const renderBlur = (isBlur, scroll) => isBlur ? (jsxs("div", { children: [scroll.canScrollLeft ? (jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white') })) : null, scroll.canScrollRight ? (jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white') })) : null] })) : null;
|
|
2158
2144
|
|
|
2159
|
-
const
|
|
2145
|
+
const containerStyles = {
|
|
2146
|
+
'horizontal-list': 'mx-auto mt-5 w-fit',
|
|
2147
|
+
'vertical-list': 'absolute flex-col justify-center h-full top-0 left-4',
|
|
2148
|
+
};
|
|
2149
|
+
const activeDotStyles = {
|
|
2150
|
+
'horizontal-list': 'w-6',
|
|
2151
|
+
'vertical-list': 'h-6',
|
|
2152
|
+
};
|
|
2153
|
+
const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
|
|
2154
|
+
const inactiveDotStyle = 'w-2 h-2 opacity-30';
|
|
2155
|
+
const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
|
|
2156
|
+
const handleClick = (idx) => {
|
|
2157
|
+
if (idx !== activeIndex && containerRef?.current) {
|
|
2158
|
+
containerRef.current.children[idx]?.scrollIntoView({
|
|
2159
|
+
behavior: 'smooth',
|
|
2160
|
+
block: 'nearest',
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
};
|
|
2164
|
+
return dotCount ? (jsx("div", { className: style('flex gap-2', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
|
|
2165
|
+
});
|
|
2166
|
+
|
|
2167
|
+
const renderControlButtons = ({ showArrows, showDots, scrollButtonsProps, dotsProps, }) => {
|
|
2168
|
+
return [
|
|
2169
|
+
showArrows ? jsx(CarouselScrollButtons, { ...scrollButtonsProps }, "0") : null,
|
|
2170
|
+
showDots ? jsx(SwipeListControlDots, { ...dotsProps, listType: "horizontal-list" }, "1") : null,
|
|
2171
|
+
];
|
|
2172
|
+
};
|
|
2160
2173
|
|
|
2161
|
-
const Carousel = JSX(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, showDots = false, isAlignCenter = false, ...rest }) => {
|
|
2174
|
+
const Carousel = JSX(({ className = '', itemCount, visibleItemCount = 0, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, showDots = false, isAlignCenter = false, showArrows = true, isGap = true, ...rest }) => {
|
|
2162
2175
|
const { blocks: childBlocks = [] } = rest.block || {};
|
|
2163
2176
|
const count = itemCount || childBlocks?.length;
|
|
2164
|
-
const [activeIndex, setActiveIndex] = useState(Math.floor(
|
|
2177
|
+
const [activeIndex, setActiveIndex] = useState(Math.floor(visibleItemCount / 2));
|
|
2165
2178
|
const increaseActiveIndex = useCallback(() => setActiveIndex((_) => _ + 1), []);
|
|
2166
2179
|
const decreaseActiveIndex = useCallback(() => setActiveIndex((_) => _ - 1), []);
|
|
2167
2180
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
@@ -2170,7 +2183,7 @@
|
|
|
2170
2183
|
});
|
|
2171
2184
|
const [dotsActiveIndex] = scroll.visibleIndicesRange;
|
|
2172
2185
|
const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
|
|
2173
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: getPaddingStyle$1(isPadding), ...rest, children: jsxs("div", { className: style(getAlignStyle(isAlignCenter), 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren({
|
|
2186
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: getPaddingStyle$1(isPadding), ...rest, children: jsxs("div", { className: style(getAlignStyle(isAlignCenter), 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren({
|
|
2174
2187
|
...rest,
|
|
2175
2188
|
renderProps: isBankHistoryCarousel
|
|
2176
2189
|
? (block, options) => renderBlock$1(block, options, {
|
|
@@ -2178,7 +2191,21 @@
|
|
|
2178
2191
|
activeIndex: activeIndex,
|
|
2179
2192
|
})
|
|
2180
2193
|
: renderBlock$1,
|
|
2181
|
-
}) }),
|
|
2194
|
+
}) }), renderControlButtons({
|
|
2195
|
+
showArrows,
|
|
2196
|
+
showDots,
|
|
2197
|
+
scrollButtonsProps: {
|
|
2198
|
+
scroll,
|
|
2199
|
+
arrowsPadded,
|
|
2200
|
+
isBlur,
|
|
2201
|
+
onScrollLeft: decreaseActiveIndex,
|
|
2202
|
+
onScrollRight: increaseActiveIndex,
|
|
2203
|
+
hasEdgeBlocks: isBankHistoryCarousel,
|
|
2204
|
+
activeIndex,
|
|
2205
|
+
itemCount: count,
|
|
2206
|
+
},
|
|
2207
|
+
dotsProps: { containerRef, activeIndex: dotsActiveIndex, dotCount: count },
|
|
2208
|
+
})] }) }));
|
|
2182
2209
|
});
|
|
2183
2210
|
Carousel.childrenTypes = [
|
|
2184
2211
|
'CarouselCard',
|
|
@@ -2195,7 +2222,6 @@
|
|
|
2195
2222
|
];
|
|
2196
2223
|
const getPaddingStyle$1 = (isPadding) => (isPadding ? 'p-default' : '');
|
|
2197
2224
|
const getAlignStyle = (isAlignCenter) => isAlignCenter ? 'flex justify-center' : '';
|
|
2198
|
-
const renderDots = (containerRef, dotsActiveIndex, itemCount) => (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: itemCount, listType: 'horizontal-list' }));
|
|
2199
2225
|
|
|
2200
2226
|
const CarouselBankHistoryCard = JSX(({ title, description, blocksLength = 0, activeIndex, options }) => {
|
|
2201
2227
|
const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
|
|
@@ -2297,7 +2323,7 @@
|
|
|
2297
2323
|
1: 'flex-col',
|
|
2298
2324
|
2: 'gap-x-10 flex-wrap',
|
|
2299
2325
|
};
|
|
2300
|
-
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),
|
|
2326
|
+
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-m", padding: padding, title: title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 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] }) })));
|
|
2301
2327
|
const renderCardList = (cardsList, columnsMode) => {
|
|
2302
2328
|
const CARDS_COUNT_MAP = [4, 9];
|
|
2303
2329
|
const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
|
|
@@ -2305,7 +2331,7 @@
|
|
|
2305
2331
|
};
|
|
2306
2332
|
|
|
2307
2333
|
const LINK_CLASS_NAME = `absolute border border-primary-main ml-3 px-6 py-5
|
|
2308
|
-
text-l-light bg-white text-primary-text flex w-[316px]
|
|
2334
|
+
text-l font-light bg-white text-primary-text flex w-[316px]
|
|
2309
2335
|
justify-between items-center group-hover/link:text-primary-main z-10`;
|
|
2310
2336
|
const LINK_BORDER_CLASS_NAME = 'bg-transparent border-white border h-[70px] absolute w-[316px] top-0';
|
|
2311
2337
|
const LinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
|
|
@@ -2315,7 +2341,7 @@
|
|
|
2315
2341
|
});
|
|
2316
2342
|
|
|
2317
2343
|
const MAX_LINKS_COUNT = 10;
|
|
2318
|
-
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-m text-white text-xl-light", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-s", description: additionalDescription, align: "text-left", isPadding: false })) : null] }), links?.length ? renderLinks(links) : null] })));
|
|
2344
|
+
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-m 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-s", description: additionalDescription, align: "text-left", isPadding: false })) : null] }), links?.length ? renderLinks(links) : null] })));
|
|
2319
2345
|
const renderLinks = (links) => {
|
|
2320
2346
|
const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
|
|
2321
2347
|
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
|
|
@@ -2331,7 +2357,7 @@
|
|
|
2331
2357
|
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 })] })));
|
|
2332
2358
|
|
|
2333
2359
|
const TEXT_SIZE_MAP = {
|
|
2334
|
-
S: 'text-l-light',
|
|
2360
|
+
S: 'text-l font-light',
|
|
2335
2361
|
M: 'text-h6',
|
|
2336
2362
|
L: 'text-h5',
|
|
2337
2363
|
};
|
|
@@ -2343,15 +2369,15 @@
|
|
|
2343
2369
|
const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-2 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);
|
|
2344
2370
|
|
|
2345
2371
|
const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isFullWidth = true, items = [], target, title, version = 'primary', ...rest }) => {
|
|
2346
|
-
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-s", href: href, target: target, children: [renderImage$
|
|
2372
|
+
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-s", href: href, target: target, children: [renderImage$2(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription)] }), renderButtonsSection([button], {
|
|
2347
2373
|
className: style('p-s pt-0', isFullWidth ? '' : 'self-center min-w-[158px]'),
|
|
2348
2374
|
isVertical: isFullWidth,
|
|
2349
2375
|
})] }));
|
|
2350
2376
|
});
|
|
2351
|
-
const renderImage$
|
|
2377
|
+
const renderImage$2 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? jsx(Img, { className: `w-8 h-8 min-w-8 mb-5`, image: image }) : null] }));
|
|
2352
2378
|
const renderCardTitle = (headlineSmallVersion, title) => title ? (jsx("div", { children: jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
|
|
2353
2379
|
const renderDescription$3 = (description, title) => description ? (jsx("div", { className: title ? 'mt-2' : '', children: jsx(Paragraph, { size: "text-l", children: description }) })) : null;
|
|
2354
|
-
const renderAdditionalDescription
|
|
2380
|
+
const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
|
|
2355
2381
|
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('max-w-[308px] mt-2 text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
|
|
2356
2382
|
|
|
2357
2383
|
const cardTitleFont = 'font-normal';
|
|
@@ -2410,7 +2436,7 @@
|
|
|
2410
2436
|
});
|
|
2411
2437
|
const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
|
|
2412
2438
|
|
|
2413
|
-
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-1 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
|
|
2439
|
+
const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-1 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })] })));
|
|
2414
2440
|
|
|
2415
2441
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
2416
2442
|
|
|
@@ -2475,7 +2501,7 @@
|
|
|
2475
2501
|
const COLS_LENGTH_FOR_SCROLL$1 = 3;
|
|
2476
2502
|
const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
|
|
2477
2503
|
|
|
2478
|
-
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(Img, { className: "mb-[18px]", image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs-light font-medium py-[11px]", children: link.text }) }) }))] })));
|
|
2504
|
+
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(Img, { className: "mb-[18px]", image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-[11px]", children: link.text }) }) }))] })));
|
|
2479
2505
|
|
|
2480
2506
|
const carouselContainerClassesMap = {
|
|
2481
2507
|
comparison: 'flex gap-4 duration-1000',
|
|
@@ -2535,7 +2561,7 @@
|
|
|
2535
2561
|
? renderShowMoreToggleButton({ isShowAllRow, onClick: handleToggle })
|
|
2536
2562
|
: null] }));
|
|
2537
2563
|
});
|
|
2538
|
-
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-
|
|
2564
|
+
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 ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
|
|
2539
2565
|
|
|
2540
2566
|
const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-default", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
|
|
2541
2567
|
const renderBlocks = (info) => (jsx("div", { className: "flex grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index })) }));
|
|
@@ -2669,7 +2695,7 @@
|
|
|
2669
2695
|
return null;
|
|
2670
2696
|
};
|
|
2671
2697
|
const getErrorBlockStyle = (text) => (text ? 'py-20 pt-3 pb-1' : 'mb-16 pb-2 mt-24 pt-3');
|
|
2672
|
-
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: getErrorBlockStyle(button?.text), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "
|
|
2698
|
+
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: getErrorBlockStyle(button?.text), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "mb-7 max-w-[613px] text-center", children: jsx(Text, { size: "text-xl", font: "font-light", children: subtitle }) })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
|
|
2673
2699
|
|
|
2674
2700
|
var Currencies;
|
|
2675
2701
|
(function (Currencies) {
|
|
@@ -2705,12 +2731,12 @@
|
|
|
2705
2731
|
});
|
|
2706
2732
|
|
|
2707
2733
|
const renderTableHeader = (title) => {
|
|
2708
|
-
return (jsx("th", { className: "pl-11", children: jsx(Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: title }) }));
|
|
2734
|
+
return (jsx("th", { className: "pl-11", children: jsx(Text, { size: "text-m", font: "font-light", align: "text-left", color: "text-secondary-text", children: title }) }));
|
|
2709
2735
|
};
|
|
2710
2736
|
|
|
2711
2737
|
const ExchangeRateOffice = JSX(({ className, currencies = [], actuality = '', officeName = '', ...rest }) => {
|
|
2712
2738
|
const fourRates = topNRates(currencies, 4);
|
|
2713
|
-
return (jsxs(BlockWrapper, { className: className, ...rest, children: [jsxs("div", { className: "flex flex-row flex-grow-0 justify-between mb-8", children: [jsx(Heading, { headingType: "h4", title: 'Курс обмена валют в ' + officeName, className: "whitespace-pre-wrap text-h4 mb-5" }), jsx("div", { className: "pl-11", children: jsx(Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: actuality }) })] }), jsx("div", { className: "flex flex-row pt-4 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-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 })] }));
|
|
2739
|
+
return (jsxs(BlockWrapper, { className: className, ...rest, children: [jsxs("div", { className: "flex flex-row flex-grow-0 justify-between mb-8", children: [jsx(Heading, { headingType: "h4", title: 'Курс обмена валют в ' + officeName, className: "whitespace-pre-wrap text-h4 mb-5" }), jsx("div", { className: "pl-11", 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-4 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 })] }));
|
|
2714
2740
|
});
|
|
2715
2741
|
const topNRates = (rates, n) => rates.sort((a, b) => Number(a.id) - Number(b.id)).slice(0, n);
|
|
2716
2742
|
|
|
@@ -2727,7 +2753,7 @@
|
|
|
2727
2753
|
});
|
|
2728
2754
|
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
2729
2755
|
|
|
2730
|
-
const TABLE_HEAD_STYLE = 'text-left text-m-light text-secondary-text';
|
|
2756
|
+
const TABLE_HEAD_STYLE = 'text-left text-m font-light text-secondary-text';
|
|
2731
2757
|
const TABLE_HEAD_STYLE_WITH_PL = `${TABLE_HEAD_STYLE} pl-11`;
|
|
2732
2758
|
const CURRENCY_ICONS_MAP = {
|
|
2733
2759
|
USD: 'DollarIcon',
|
|
@@ -2904,7 +2930,7 @@
|
|
|
2904
2930
|
'bg-white': 'text-primary-main',
|
|
2905
2931
|
transparent: 'text-white',
|
|
2906
2932
|
};
|
|
2907
|
-
const renderImage$
|
|
2933
|
+
const renderImage$1 = (bgColor, image, size) => {
|
|
2908
2934
|
return image?.src ? (jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, pathPrefix: "/wcms-resources/" })) : (jsx(Img, { image: {
|
|
2909
2935
|
icon: image?.icon || 'LogoIcon',
|
|
2910
2936
|
iconVersion: ICON_VERSION_MAP[bgColor],
|
|
@@ -2920,7 +2946,7 @@
|
|
|
2920
2946
|
};
|
|
2921
2947
|
|
|
2922
2948
|
const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
|
|
2923
|
-
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$
|
|
2949
|
+
return (jsxs("a", { className: `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$1(children || logo?.title, bgColor) : null] }));
|
|
2924
2950
|
});
|
|
2925
2951
|
|
|
2926
2952
|
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" }) })));
|
|
@@ -3108,11 +3134,11 @@
|
|
|
3108
3134
|
globalThis.document?.removeEventListener('keydown', handleEscape);
|
|
3109
3135
|
};
|
|
3110
3136
|
}, [onClose]);
|
|
3111
|
-
return isOpened ? (jsx("div", { className: style('fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar', className), role: "dialog", children: jsxs("div", { className: "relative container pb-12 min-h-full", children: [jsxs("div", { className: "sticky bg-white pt-6 top-0", children: [jsx(CloseButton, { className: "absolute top-
|
|
3137
|
+
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-12 min-h-full", children: [jsxs("div", { className: "sticky bg-white pt-6 top-0", children: [jsx(CloseButton, { className: "absolute top-0 -right-12", onClick: onClose }), head] }), children] }) })) : null;
|
|
3112
3138
|
});
|
|
3113
3139
|
|
|
3114
|
-
function useDialogProps(id,
|
|
3115
|
-
const [isOpened, { setTrue: open, setFalse: close }] = useBool(
|
|
3140
|
+
function useDialogProps(id, isOpenedOnInit = false) {
|
|
3141
|
+
const [isOpened, { setTrue: open, setFalse: close }] = useBool(isOpenedOnInit);
|
|
3116
3142
|
const [params, setParams] = useState({ id });
|
|
3117
3143
|
const wasOpened = useRef(isOpened);
|
|
3118
3144
|
wasOpened.current ||= isOpened;
|
|
@@ -3125,19 +3151,21 @@
|
|
|
3125
3151
|
close();
|
|
3126
3152
|
}
|
|
3127
3153
|
}, [id]);
|
|
3154
|
+
const handleClose = useCallback(() => {
|
|
3155
|
+
close();
|
|
3156
|
+
defaultEventBus.fire('dialog', { type: 'close' });
|
|
3157
|
+
}, []);
|
|
3128
3158
|
useDialogHandlers({
|
|
3129
3159
|
onOpen: handleOpen,
|
|
3130
3160
|
onClose: close,
|
|
3131
3161
|
});
|
|
3132
|
-
const handleCloseAsEventSource = useCallback(() => {
|
|
3133
|
-
close();
|
|
3134
|
-
defaultEventBus.fire('dialog', { type: 'close' });
|
|
3135
|
-
}, []);
|
|
3136
3162
|
return {
|
|
3137
3163
|
...params,
|
|
3138
3164
|
isOpened,
|
|
3139
3165
|
wasOpened: wasOpened.current,
|
|
3140
|
-
|
|
3166
|
+
open,
|
|
3167
|
+
close,
|
|
3168
|
+
onClose: handleClose,
|
|
3141
3169
|
};
|
|
3142
3170
|
}
|
|
3143
3171
|
|
|
@@ -3153,7 +3181,7 @@
|
|
|
3153
3181
|
const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
3154
3182
|
const link = useLink({ isRemote: isAnotherPortal, basePath });
|
|
3155
3183
|
const { href, target, onClick } = link(rest);
|
|
3156
|
-
return (jsx("a", { className: style('text-l-light text-secondary-text hover:text-primary-main no-underline', 'overflow-x-hidden overflow-ellipsis whitespace-nowrap'), href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
3184
|
+
return (jsx("a", { className: style('text-l font-light text-secondary-text hover:text-primary-main no-underline', 'overflow-x-hidden overflow-ellipsis whitespace-nowrap'), href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
3157
3185
|
});
|
|
3158
3186
|
|
|
3159
3187
|
const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus }) => {
|
|
@@ -3209,13 +3237,13 @@
|
|
|
3209
3237
|
|
|
3210
3238
|
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] })));
|
|
3211
3239
|
const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-6", children: [jsx("div", { className: "mb-4", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { children: item.items?.map(renderContact) })] }, String(i)));
|
|
3212
|
-
const renderContact = (item, index) => (jsxs("div", { className: "mb-4", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "mt-1 text-s-light text-secondary-text", children: item.description })] }, String(index)));
|
|
3240
|
+
const renderContact = (item, index) => (jsxs("div", { className: "mb-4", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "mt-1 text-s font-light text-secondary-text", children: item.description })] }, String(index)));
|
|
3213
3241
|
const renderText = (type, text = '') => {
|
|
3214
3242
|
switch (type) {
|
|
3215
3243
|
case 'tel':
|
|
3216
3244
|
return (jsx("a", { className: "text-h6 text-primary-text hover:text-primary-main no-underline", href: `tel:${formatTel(text)}`, children: text }));
|
|
3217
3245
|
case 'email':
|
|
3218
|
-
return (jsx("a", { className: "text-xl-light text-primary-text no-underline", href: `mailto:${text}`, children: text }));
|
|
3246
|
+
return (jsx("a", { className: "text-xl font-light text-primary-text no-underline", href: `mailto:${text}`, children: text }));
|
|
3219
3247
|
default:
|
|
3220
3248
|
return jsx("span", { children: text });
|
|
3221
3249
|
}
|
|
@@ -3231,18 +3259,16 @@
|
|
|
3231
3259
|
});
|
|
3232
3260
|
|
|
3233
3261
|
const HorizontalNavigation = JSX(({ className = '', links }) => {
|
|
3234
|
-
return (jsx("div", { className: className, children: links?.length ? (jsx("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l-light max-w-[292px]", ..._ }, String(i)))) })) : null }));
|
|
3262
|
+
return (jsx("div", { className: className, children: links?.length ? (jsx("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light max-w-[292px]", ..._ }, String(i)))) })) : null }));
|
|
3235
3263
|
});
|
|
3236
3264
|
|
|
3237
3265
|
const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
|
|
3238
3266
|
const link = useLink({ isRemote: true });
|
|
3239
3267
|
const { href, target, text, onClick } = link(rest);
|
|
3240
|
-
return (jsx("a", { className: `text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
3268
|
+
return (jsx("a", { className: `text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
3241
3269
|
});
|
|
3242
3270
|
|
|
3243
|
-
const
|
|
3244
|
-
|
|
3245
|
-
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-4 xl:pt-5", children: jsx(Text, { size: textInformationTextSize, color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-4", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
3271
|
+
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-4 xl:pt-5", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-4", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
3246
3272
|
|
|
3247
3273
|
const LEFT_COL_WIDTH_FULL_HD = 'w-[204px]';
|
|
3248
3274
|
const Footer = JSX(({ className = '', ...rest }) => {
|
|
@@ -3263,7 +3289,7 @@
|
|
|
3263
3289
|
// Condition lower is always true, TS does not understand this, notice filter above
|
|
3264
3290
|
flexBasis: `${_?.month?.length ? _.month.length * colSize : ''}%`,
|
|
3265
3291
|
}));
|
|
3266
|
-
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-13", children: [jsx("div", { className: "flex w-full mb-3 text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "text-s-light text-primary-text mt-3", children: [jsx("span", { children: _.text }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
3292
|
+
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-13", children: [jsx("div", { className: "flex w-full mb-3 text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "text-s font-light text-primary-text mt-3", children: [jsx("span", { children: _.text }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
3267
3293
|
};
|
|
3268
3294
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
3269
3295
|
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
@@ -3381,7 +3407,7 @@
|
|
|
3381
3407
|
const getLinkStyle = (active = false, flat = false) => style('inline-block border border-solid bg-transparent text-center no-underline', active
|
|
3382
3408
|
? 'rounded-md border-primary-main group-data-transparent:border-white'
|
|
3383
3409
|
: 'border-transparent', flat ? '' : 'px-4 py-2');
|
|
3384
|
-
const getTextStyle$1 = (active = false, flat = false) => style('font-sans text-s-light', active
|
|
3410
|
+
const getTextStyle$1 = (active = false, flat = false) => style('font-sans text-s font-light', active
|
|
3385
3411
|
? 'text-primary-main'
|
|
3386
3412
|
: style(flat ? 'text-primary-text' : 'text-secondary-text', 'hover:text-primary-main'), 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3387
3413
|
|
|
@@ -3419,7 +3445,7 @@
|
|
|
3419
3445
|
.fill(null)
|
|
3420
3446
|
.map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('absolute flex flex-col rounded-md bg-white p-6 pb-2', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
|
|
3421
3447
|
const { text, ...linkProps } = item;
|
|
3422
|
-
return (jsx("a", { className: style('text-l-light pb-4 hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), ...link(linkProps), children: text }, item.href || String(i)));
|
|
3448
|
+
return (jsx("a", { className: style('text-l font-light pb-4 hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), ...link(linkProps), children: text }, item.href || String(i)));
|
|
3423
3449
|
}) })] }));
|
|
3424
3450
|
});
|
|
3425
3451
|
|
|
@@ -3428,7 +3454,7 @@
|
|
|
3428
3454
|
const { href, target, text, onClick } = link(rest);
|
|
3429
3455
|
return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
|
|
3430
3456
|
});
|
|
3431
|
-
const getTextStyle = (active = false) => style('font-sans text-l-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3457
|
+
const getTextStyle = (active = false) => style('font-sans text-l font-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3432
3458
|
|
|
3433
3459
|
const HeaderSubMenuItem = JSX(({ observerOptions, onVisibilityChange, children, className, ...rest }) => {
|
|
3434
3460
|
const observerCallback = useCallback((entries) => {
|
|
@@ -3622,7 +3648,7 @@
|
|
|
3622
3648
|
};
|
|
3623
3649
|
function renderNavButton$1({ title, i, isActive, onClick }) {
|
|
3624
3650
|
const btnClassName = isActive ? 'bg-primary-main text-white rounded-md' : `text-secondary-text`;
|
|
3625
|
-
return (jsx("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m-light ${btnClassName}`, children: title }, String(i)));
|
|
3651
|
+
return (jsx("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m font-light ${btnClassName}`, children: title }, String(i)));
|
|
3626
3652
|
}
|
|
3627
3653
|
|
|
3628
3654
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
@@ -3646,7 +3672,7 @@
|
|
|
3646
3672
|
if (investmentZeroColumn) {
|
|
3647
3673
|
columns.unshift(investmentZeroColumn);
|
|
3648
3674
|
}
|
|
3649
|
-
return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { className: "container text-m-light", children: [columns?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-9 pr-5 text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-[30px] w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-2 ml-9 mr-8" }), jsx("div", { className: "flex justify-between text-primary-text mt-3 -mx-10", children: columns.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "mt-9 max-w-[657px]", items: items, isDotted: isDotted, listItemSize: "M" })) : null] }) }));
|
|
3675
|
+
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-9 pr-5 text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-[30px] w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-2 ml-9 mr-8" }), jsx("div", { className: "flex justify-between text-primary-text mt-3 -mx-10", children: columns.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "mt-9 max-w-[657px]", items: items, isDotted: isDotted, listItemSize: "M" })) : null] }) }));
|
|
3650
3676
|
});
|
|
3651
3677
|
const renderInvestmentColumn = (column, i, arr) => {
|
|
3652
3678
|
const isSecondColumn = i === 1;
|
|
@@ -3696,12 +3722,12 @@
|
|
|
3696
3722
|
const renderDescription$2 = (description) => description ? (jsx("div", { className: "mb-5 pt-0.5 sm:mb-0 sm:pt-0", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
|
|
3697
3723
|
|
|
3698
3724
|
const renderList$1 = (items) => {
|
|
3699
|
-
return items?.length ? (jsx(List, { items: items, className: "text-l-light mb-2 last:mb-0" })) : (jsx("span", { className: "text-m-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" }));
|
|
3725
|
+
return items?.length ? (jsx(List, { items: items, className: "text-l font-light mb-2 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" }));
|
|
3700
3726
|
};
|
|
3701
3727
|
|
|
3702
3728
|
const MobileAppTile = JSX(({ className, padding, alignTitle = 'left', buttons = [], description, headingType = 'h4', image, items, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
3703
3729
|
const containerStyle = version === 'secondary' ? 'p-3.5 min-w-[120px]' : 'min-w-[92px]';
|
|
3704
|
-
return (jsx(BlockWrapper, { className: style('min-h-80', className),
|
|
3730
|
+
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-default", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', AlignText[alignTitle]) })) : null, backImage: image?.src ? jsx(Img, { image: image }) : null, buttons: renderButtonsSection(buttons, { isVertical: buttons.length > 3 }), children: [renderDescription$2(description), jsxs("div", { className: "flex flex-1 gap-s 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)] })] }) }));
|
|
3705
3731
|
});
|
|
3706
3732
|
|
|
3707
3733
|
const initialFiltrationState = {};
|
|
@@ -4024,11 +4050,11 @@
|
|
|
4024
4050
|
const lunchHourText = hasTime ? `Перерыв ${lunchHour}` : lunchHour;
|
|
4025
4051
|
return status ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4", children: workTime ? workTime : null }), jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden", children: lunchHour ? lunchHourText : null })] })) : (jsx("div", { className: "flex", children: jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }) }));
|
|
4026
4052
|
};
|
|
4027
|
-
const renderNearbyOffice = ({ icon, title, distance, time }, index) => (jsxs("div", { className: "flex mr-4", children: [jsx(Icon, { name: icon, width: "16", height: "16", className: "mr-1" }), title ? jsxs(
|
|
4028
|
-
const renderDay = ({ title, status, workTime, lunchHour, description }, inx) => (jsxs("div", { className: "flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0", children: [jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-l text-primary-text", children: [jsx("div", { children: title }), status ? null : jsx("div", { className: "text-m-light text-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }), status && workTime ? jsx("div", { children: workTime }) : null] }), status && lunchHour ? renderLunchHour(lunchHour) : null, description ? (jsx("div", { className: "pb-1 text-s-light text-secondary-text", children: description })) : null] }, `day${inx}`));
|
|
4053
|
+
const renderNearbyOffice = ({ icon, title, distance, time }, index) => (jsxs("div", { className: "flex mr-4", children: [jsx(Icon, { name: icon, width: "16", height: "16", className: "mr-1" }), title ? jsxs(Text, { size: "text-m", children: [title, "\u00A0"] }) : null, jsxs(Text, { size: "text-m", font: "font-light", children: [distance ? ` (${distance})` : null, time ? `, ${time}` : null] })] }, `nearbyOffice${index}`));
|
|
4054
|
+
const renderDay = ({ title, status, workTime, lunchHour, description }, inx) => (jsxs("div", { className: "flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0", children: [jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-l text-primary-text", children: [jsx("div", { children: title }), status ? null : jsx("div", { className: "text-m font-light text-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }), status && workTime ? jsx("div", { children: workTime }) : null] }), status && lunchHour ? renderLunchHour(lunchHour) : null, description ? (jsx("div", { className: "pb-1 text-s font-light text-secondary-text", children: description })) : null] }, `day${inx}`));
|
|
4029
4055
|
const renderLunchHour = (lunchHour) => {
|
|
4030
4056
|
const hasTime = /\d+/gi.test(lunchHour);
|
|
4031
|
-
return hasTime ? (jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-m-light text-error", children: [jsx("div", { children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }), jsx("div", { children: lunchHour })] })) : (jsx("div", { className: "flex justify-between items-center w-full pb-1 text-m-light text-primary-main", children: jsx("div", { children: lunchHour }) }));
|
|
4057
|
+
return hasTime ? (jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-m font-light text-error", children: [jsx("div", { children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }), jsx("div", { children: lunchHour })] })) : (jsx("div", { className: "flex justify-between items-center w-full pb-1 text-m font-light text-primary-main", children: jsx("div", { children: lunchHour }) }));
|
|
4032
4058
|
};
|
|
4033
4059
|
|
|
4034
4060
|
const OfficeMap = JSX(({ className = '' }) => {
|
|
@@ -4062,11 +4088,11 @@
|
|
|
4062
4088
|
];
|
|
4063
4089
|
const currentWeekDayInd = new Date().getDay();
|
|
4064
4090
|
const currentWeekDay = currentWeekDayInd > 0 ? workScheduleWeek[currentWeekDayInd - 1] : workScheduleWeek[6];
|
|
4065
|
-
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-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-8", 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) })] })] }));
|
|
4091
|
+
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-8", 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) })] })] }));
|
|
4066
4092
|
});
|
|
4067
4093
|
|
|
4068
4094
|
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] })));
|
|
4069
|
-
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(Img, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", image: itemList.icon })) : null, itemList.label ? jsx(
|
|
4095
|
+
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(Img, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", image: itemList.icon })) : null, itemList.label ? (jsx(Text, { size: "text-l", font: "font-light", children: itemList.label })) : null] }, `list_item_${String(i)}`));
|
|
4070
4096
|
|
|
4071
4097
|
const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
|
|
4072
4098
|
|
|
@@ -4074,43 +4100,46 @@
|
|
|
4074
4100
|
|
|
4075
4101
|
const deviation = (items) => items?.length ? Math.sqrt(Math.abs(avg(items.map((_) => _ ** 2)) - avg(items) ** 2)) : 0;
|
|
4076
4102
|
|
|
4077
|
-
const
|
|
4078
|
-
|
|
4079
|
-
const BenefitItem = JSX(({ className, icon, label, description, benefitsVersion = 'normal' }) => (jsxs("div", { className: style('flex gap-s', description ? 'items-start' : 'items-center', className), children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? (jsx(Text, { color: "text-primary-text group-data-secondary:text-white", size: labelSize$1, children: label })) : null, description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] })));
|
|
4080
|
-
function getBenefitIconBgStyle(benefitsVersion) {
|
|
4081
|
-
const bgColorStyle = benefitsVersion === 'normal'
|
|
4103
|
+
const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? (jsx("div", { className: style('w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
|
|
4082
4104
|
? 'bg-secondary-light text-primary-main'
|
|
4083
|
-
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black';
|
|
4084
|
-
return style('w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon', bgColorStyle);
|
|
4085
|
-
}
|
|
4105
|
+
: 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
|
|
4086
4106
|
|
|
4087
|
-
const
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4107
|
+
const renderBenefitDescription = (description, i) => description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description }, `description-${i}`)) : null;
|
|
4108
|
+
|
|
4109
|
+
const renderBenefitLabel = (label, i) => label ? (jsx(Text, { color: "text-primary-text group-data-secondary:text-white", size: "text-h6", children: label }, `label-${i}`)) : null;
|
|
4110
|
+
|
|
4111
|
+
const renderBenefitText = (_, i) => _.type === 'rte' && '__html' in _ && _.__html ? (jsx(RichText, { ..._ }, `rte-${i}`)) : ([
|
|
4112
|
+
'label' in _ ? renderBenefitLabel(_.label, i) : null,
|
|
4113
|
+
'description' in _ ? renderBenefitDescription(_.description, i) : null,
|
|
4114
|
+
]);
|
|
4115
|
+
|
|
4116
|
+
const BenefitItem = JSX(({ className, benefitsVersion, ..._ }) => (jsxs("div", { className: style('flex gap-s', 'description' in _ && _.description ? 'items-start' : 'items-center', className), children: ['icon' in _ ? renderBenefitIcon(_.icon, benefitsVersion) : null, jsx("div", { children: renderBenefitText(_) })] })));
|
|
4093
4117
|
|
|
4094
4118
|
const MAX_BENEFITS_LEN_DEVIATION = 16;
|
|
4095
4119
|
const benefitLength = (_) => _.type === 'rte'
|
|
4096
4120
|
? _.__html?.length || 0
|
|
4097
4121
|
: Math.max(_.label?.length || 0, _.description?.length || 0);
|
|
4098
4122
|
const isDistortedBenefits = (benefits) => deviation(benefits.map(benefitLength)) > MAX_BENEFITS_LEN_DEVIATION;
|
|
4099
|
-
const
|
|
4123
|
+
const DefaultBenefitsList = JSX(({ className, benefitsVersion = 'normal', benefits }) => benefits?.length ? (jsx("div", { className: style('flex gap-x-m gap-y-s', isDistortedBenefits(benefits) ? 'flex-col' : 'flex-wrap', className), children: benefits.map((_, i) => (jsx(BenefitItem, { benefitsVersion: benefitsVersion, ..._ }, String(i)))) })) : null);
|
|
4124
|
+
|
|
4125
|
+
const TabularBenefitsList = JSX(({ className, benefits }) => benefits?.length ? (jsx("div", { className: style('grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs', className), children: benefits.flatMap(renderBenefitText) })) : null);
|
|
4126
|
+
|
|
4127
|
+
const BenefitsList = JSX(({ isTabularBenefits, ...rest }) => isTabularBenefits ? jsx(TabularBenefitsList, { ...rest }) : jsx(DefaultBenefitsList, { ...rest }));
|
|
4100
4128
|
|
|
4101
4129
|
const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
|
|
4102
|
-
const renderTag = (tag, key) => (jsx("div", { className: "py-2 px-2.5 border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m-light", children: tag }) }, String(key)));
|
|
4130
|
+
const renderTag = (tag, key) => (jsx("div", { className: "py-2 px-2.5 border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
|
|
4103
4131
|
|
|
4104
|
-
const BaseProductTile = JSX(({ className, title, description, headlineVersion = 'L', align = 'text-left', isInsetTitle = true,
|
|
4132
|
+
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, }) => {
|
|
4105
4133
|
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
4106
4134
|
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isPadding: false }));
|
|
4107
|
-
return (jsx(BaseTile, { className: className, ...(isInsetTitle ? { insetTitle: headline } : { title: headline }), ...(
|
|
4135
|
+
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-m", 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] }) }));
|
|
4108
4136
|
});
|
|
4137
|
+
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
4109
4138
|
|
|
4110
4139
|
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-m", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit) : null] })) : null;
|
|
4111
4140
|
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"] })] }));
|
|
4112
4141
|
|
|
4113
|
-
const PictureText = JSX(({ className, headlineVersion = 'M', align = 'text-center', sum, monthLimit, ...rest }) => (jsx(BlockWrapper, { className: className,
|
|
4142
|
+
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-default", padding: padding, headlineVersion: headlineVersion, align: align, isInsetTitle: false, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
|
|
4114
4143
|
|
|
4115
4144
|
const GOLDEN_RATIO = 1.618;
|
|
4116
4145
|
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-m min-w-[80%]", children: renderShimmer() })] })));
|
|
@@ -4130,13 +4159,13 @@
|
|
|
4130
4159
|
} }) }), jsx(Button, { version: "link", ...commonProps })] }));
|
|
4131
4160
|
}
|
|
4132
4161
|
|
|
4133
|
-
const ProductBlock = JSX(({ className, backwardButton, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-lg box-border', className), defaultPadding: "p-default", ...rest, children: [backwardButton?.text
|
|
4162
|
+
const ProductBlock = JSX(({ className, padding, backwardButton, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-lg box-border', className), defaultPadding: "p-default", padding: padding, ...rest, children: [backwardButton?.text
|
|
4134
4163
|
? renderBackwardButton(backwardButton, !rest.version || rest.version === 'primary' ? 'primary' : 'white')
|
|
4135
4164
|
: null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] })));
|
|
4136
4165
|
|
|
4137
|
-
const ProductGallery = JSX(({ className = '', slides = [], ...rest }) => {
|
|
4166
|
+
const ProductGallery = JSX(({ className = '', padding, slides = [], ...rest }) => {
|
|
4138
4167
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
4139
|
-
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-default", ...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-default 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 })) })] }));
|
|
4168
|
+
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-default", 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-default 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 })) })] }));
|
|
4140
4169
|
});
|
|
4141
4170
|
const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
|
|
4142
4171
|
const isActive = i === activeSlideIndex;
|
|
@@ -4147,60 +4176,12 @@
|
|
|
4147
4176
|
? 'text-primary-text text-h6 py-2'
|
|
4148
4177
|
: 'text-l pb-1 text-secondary-text group-data-secondary:text-white';
|
|
4149
4178
|
const btnDescClassName = isActive
|
|
4150
|
-
? 'text-secondary-text text-l-light'
|
|
4151
|
-
: 'text-
|
|
4179
|
+
? 'text-secondary-text text-l font-light'
|
|
4180
|
+
: 'text-secondary-text text-m font-light group-data-secondary:text-white/80';
|
|
4152
4181
|
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)));
|
|
4153
4182
|
};
|
|
4154
4183
|
|
|
4155
|
-
|
|
4156
|
-
if (!additionalDescription) {
|
|
4157
|
-
return null;
|
|
4158
|
-
}
|
|
4159
|
-
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
4160
|
-
const descriptionWidth = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
4161
|
-
return (jsx("div", { className: `mt-2.5 z-10 ${descriptionWidth}`, children: jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription }) }));
|
|
4162
|
-
}
|
|
4163
|
-
|
|
4164
|
-
// TODO: Create universal function for this case
|
|
4165
|
-
const renderBenefit =
|
|
4166
|
-
// Linter doesn't understand that switch processes all cases
|
|
4167
|
-
// eslint-disable-next-line consistent-return
|
|
4168
|
-
(benefit, i) => {
|
|
4169
|
-
const { type } = benefit;
|
|
4170
|
-
if (!(type === 'default' || type === 'rte')) {
|
|
4171
|
-
return null;
|
|
4172
|
-
}
|
|
4173
|
-
switch (type) {
|
|
4174
|
-
case 'default':
|
|
4175
|
-
return [
|
|
4176
|
-
jsx(Text, { size: "text-h6", children: benefit.label }, `label-${i}`),
|
|
4177
|
-
jsx(Text, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: benefit.description }, `desc-${i}`),
|
|
4178
|
-
];
|
|
4179
|
-
case 'rte':
|
|
4180
|
-
return (jsx("div", { className: "col-span-2", children: jsx(RichText, { __html: benefit.__html }) }));
|
|
4181
|
-
default:
|
|
4182
|
-
assertUnreachable(benefit);
|
|
4183
|
-
}
|
|
4184
|
-
};
|
|
4185
|
-
|
|
4186
|
-
function renderImage$1(image, directionRight) {
|
|
4187
|
-
if (!image?.src) {
|
|
4188
|
-
return null;
|
|
4189
|
-
}
|
|
4190
|
-
return (jsx(Img, { className: style('absolute', directionRight ? 'right-0' : 'left-0', 'bottom-0'), image: image }));
|
|
4191
|
-
}
|
|
4192
|
-
|
|
4193
|
-
const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, directionRight = true, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden box-border relative min-h-[364px] flex flex-col justify-between', className), ...rest, children: [jsxs("div", { className: style('flex flex-col', directionRight ? '' : 'items-end'), children: [jsx(Headline, { className: style('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), renderAdditionalDescription(additionalDescription, image)] }), renderButtonsSection(buttons, {
|
|
4194
|
-
className: style('mt-5 text-l', directionRight ? '' : 'justify-end'),
|
|
4195
|
-
}), renderImage$1(image, directionRight)] })));
|
|
4196
|
-
function renderBenefits(benefits, image) {
|
|
4197
|
-
if (!benefits.length) {
|
|
4198
|
-
return null;
|
|
4199
|
-
}
|
|
4200
|
-
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
4201
|
-
const benefitsWidth = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
4202
|
-
return (jsx("div", { className: style('z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline', benefitsWidth), children: benefits.length ? benefits.map(renderBenefit) : null }));
|
|
4203
|
-
}
|
|
4184
|
+
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-m", 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 }) })));
|
|
4204
4185
|
|
|
4205
4186
|
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-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) })));
|
|
4206
4187
|
function formatDate(date) {
|
|
@@ -4213,14 +4194,14 @@
|
|
|
4213
4194
|
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
4214
4195
|
}
|
|
4215
4196
|
|
|
4216
|
-
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between", children: [title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null
|
|
4197
|
+
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left', className), version: version, ...rest, children: [jsxs("div", { className: "w-full sm:flex sm:justify-between sm:flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3 sm:mb-6", title: title }) : null] }), jsxs("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
|
|
4217
4198
|
? renderButtonsSection([button], {
|
|
4218
4199
|
className: 'mb-6',
|
|
4219
4200
|
})
|
|
4220
4201
|
: null] })] })));
|
|
4221
|
-
const renderIconBlock = (icon) => (jsxs("div", { className:
|
|
4202
|
+
const renderIconBlock = (icon) => (jsxs("div", { className: 'w-10 h-7 sm:w-24 sm:h-16 mb-3 sm:mb-0 sm:mt-3', children: [icon?.src ? jsx(Img, { image: icon }) : null, icon?.icon ? jsx(Img, { image: icon }) : null] }));
|
|
4222
4203
|
const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-5 my-5", children: jsx(RichText, { __html: __html }) }));
|
|
4223
|
-
const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col first:pb-1", children: [jsx(Text, { size: "text-m-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
|
|
4204
|
+
const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col first:pb-1", children: [jsx(Text, { size: "text-m", font: "font-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
|
|
4224
4205
|
|
|
4225
4206
|
const RichTextBlock = JSX((props) => {
|
|
4226
4207
|
const { __html, richVersion, ...rest } = props;
|
|
@@ -4288,14 +4269,14 @@
|
|
|
4288
4269
|
const ITEMS = ['От 1 дня', 'До 365 дней'];
|
|
4289
4270
|
const MIN = 1;
|
|
4290
4271
|
const MAX = 365;
|
|
4291
|
-
const RentalPeriod = JSX(({ days, setDays }) => (jsxs("div", { className: "mb-6", children: [jsx("span", { className: "block text-m-light mb-
|
|
4272
|
+
const RentalPeriod = JSX(({ days, setDays }) => (jsxs("div", { className: "mb-6", children: [jsx("span", { className: "block text-m font-light mb-1", children: "\u0421\u0440\u043E\u043A \u0430\u0440\u0435\u043D\u0434\u044B" }), jsx(InputRange, { min: MIN, max: MAX, value: days, items: ITEMS, onChange: setDays })] })));
|
|
4292
4273
|
|
|
4293
4274
|
const SafeBoxCases = JSX(({ caseVolumes = [], selectedCaseVolume, onSelectedCaseVolume, safeBoxCases = [], selectedBoxSize, onSelectedBoxSize, }) => {
|
|
4294
4275
|
return (jsxs("div", { className: "flex justify-between mb-6", children: [jsx("div", { className: "mr-4 w-full", children: jsx(WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), jsx("div", { className: "w-full", children: jsx(WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] }));
|
|
4295
4276
|
});
|
|
4296
4277
|
|
|
4297
4278
|
const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onClick, }) => {
|
|
4298
|
-
return (jsxs("div", { className: "flex-1 mr-9", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx(
|
|
4279
|
+
return (jsxs("div", { className: "flex-1 mr-9", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }), jsxs("div", { className: "flex justify-between items-center mt-5", children: [jsx(RenderRadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onClick })] })] }));
|
|
4299
4280
|
});
|
|
4300
4281
|
const onSelectedBranch = (onChange) => (value) => {
|
|
4301
4282
|
onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
|
|
@@ -4306,10 +4287,10 @@
|
|
|
4306
4287
|
|
|
4307
4288
|
const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
|
|
4308
4289
|
const price = calculatePrice(days, tariffs);
|
|
4309
|
-
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-light text-white opacity-80 mt-2 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"] })] })] }));
|
|
4290
|
+
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-2 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"] })] })] }));
|
|
4310
4291
|
});
|
|
4311
4292
|
const renderTotal = (label, total, className = '') => {
|
|
4312
|
-
return (jsxs("div", { className: className, children: [jsx("div", { className: "text-m-light text-secondary-text mb-1", children: label }), jsx("span", { className: "text-h3 text-primary-text", children: total })] }));
|
|
4293
|
+
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 })] }));
|
|
4313
4294
|
};
|
|
4314
4295
|
const calculatePrice = (days, tariffs) => {
|
|
4315
4296
|
const tariffType = getTariffType(days);
|
|
@@ -4389,7 +4370,7 @@
|
|
|
4389
4370
|
const branches = useSafeBoxes(selectedRegion);
|
|
4390
4371
|
const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
4391
4372
|
const points = getCoordinates(getBranch(branches, safeDepositState.selectedBranch) || branches);
|
|
4392
|
-
return (jsxs(BlockWrapper, { className: className, defaultPadding: "", ...rest, children: [jsxs("div", { className: "px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onClick: handleShowMap, onChange: handleChangeSafeDepositState }), footnote ? jsx(
|
|
4373
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: "", ...rest, children: [jsxs("div", { className: "px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-2.5 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] }));
|
|
4393
4374
|
});
|
|
4394
4375
|
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
4395
4376
|
|
|
@@ -4417,7 +4398,7 @@
|
|
|
4417
4398
|
const getContainerWidth = (length) => (length < 5 ? 'w-[276px]' : 'w-[210px]');
|
|
4418
4399
|
|
|
4419
4400
|
const STEPS_BLOCK_STYLE = {
|
|
4420
|
-
description: 'text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text',
|
|
4401
|
+
description: 'text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text',
|
|
4421
4402
|
iconText: 'text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text',
|
|
4422
4403
|
iconBackground: 'bg-white/30 group-data-primary:bg-main-divider',
|
|
4423
4404
|
iconConnector: 'bg-white group-data-primary:bg-secondary-light',
|
|
@@ -4613,7 +4594,7 @@
|
|
|
4613
4594
|
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons);
|
|
4614
4595
|
const renderLabelDescriptionCellData = ({ label, description }) => {
|
|
4615
4596
|
const labelClassName = `text-h6 m-0 ${description ? 'mb-1' : ''}`;
|
|
4616
|
-
return (jsxs("div", { children: [label ? jsx("div", { className: labelClassName, children: label }) : null, description ? jsx("div", { className: "text-secondary-text text-l-light", children: description }) : null] }));
|
|
4597
|
+
return (jsxs("div", { children: [label ? jsx("div", { className: labelClassName, children: label }) : null, description ? (jsx("div", { className: "text-secondary-text text-l font-light", children: description })) : null] }));
|
|
4617
4598
|
};
|
|
4618
4599
|
const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
|
|
4619
4600
|
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
|
|
@@ -4700,9 +4681,9 @@
|
|
|
4700
4681
|
'flex duration-1000 text-center',
|
|
4701
4682
|
rowIdx !== 0 ? 'font-normal' : 'font-light',
|
|
4702
4683
|
].join(' ');
|
|
4703
|
-
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-light w-[214px] pb-5 ${rowIdx === 0 ? 'pt-8' : 'pt-6'}`, children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsClassName, style: {
|
|
4684
|
+
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 fontd-light w-[214px] pb-5 ${rowIdx === 0 ? 'pt-8' : 'pt-6'}`, children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsClassName, style: {
|
|
4704
4685
|
transform: `translateX(-${transform}px)`,
|
|
4705
|
-
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl-light mb-3", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
4686
|
+
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl font-light mb-3", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
4706
4687
|
};
|
|
4707
4688
|
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-[76px] text-h6 mr-5 first:ml-8`, children: data }, String(i)))) })) : null;
|
|
4708
4689
|
|
|
@@ -4711,11 +4692,11 @@
|
|
|
4711
4692
|
const toggleTables = useCallback((key) => setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] })), []);
|
|
4712
4693
|
return (jsx("div", { children: items.map((_, tableIdx) => {
|
|
4713
4694
|
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
4714
|
-
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-gray text-
|
|
4695
|
+
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-gray text-center justify-center cursor-pointer relative", onClick: () => toggleTables(key), children: [jsx(Text, { size: "text-xl", font: "font-light", children: _.title }), jsx(Img, { image: { icon: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon' }, className: "absolute right-[22px]", width: "24", height: "24" })] }), jsx("div", { className: `w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : ''}`, children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
4715
4696
|
}) }));
|
|
4716
4697
|
});
|
|
4717
4698
|
|
|
4718
|
-
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1.5 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { href: linkToPDF, version: "secondary", target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-0.5", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
4699
|
+
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1.5 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl font-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { href: linkToPDF, version: "secondary", target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-0.5", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
4719
4700
|
|
|
4720
4701
|
function useTariffsInnerTableData(directoryName) {
|
|
4721
4702
|
const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
|
|
@@ -4747,7 +4728,7 @@
|
|
|
4747
4728
|
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
4748
4729
|
const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
|
|
4749
4730
|
const onHideContentClick = () => setTableInner(undefined);
|
|
4750
|
-
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "mr-3.5 max-w-6", image: header.icon, width: "24", height: "24" })) : null, header?.title ? jsx("div", { className: "text-m-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] }));
|
|
4731
|
+
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "mr-3.5 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] }));
|
|
4751
4732
|
});
|
|
4752
4733
|
|
|
4753
4734
|
const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
@@ -4781,7 +4762,7 @@
|
|
|
4781
4762
|
});
|
|
4782
4763
|
|
|
4783
4764
|
const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-3 bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? jsx("div", { className: "mt-1", children: renderIcon() }) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "flex flex-col w-fit gap-3", children: [title ? (jsx(Text, { size: "text-l", font: "font-medium", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
|
|
4784
|
-
const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
|
|
4765
|
+
const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
|
|
4785
4766
|
const renderImage = (image) => image?.src ? jsx(Img, { className: "h-fit", image: image }) : null;
|
|
4786
4767
|
const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
4787
4768
|
const renderList = (items, bullets) => {
|
|
@@ -4789,7 +4770,7 @@
|
|
|
4789
4770
|
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}`))) }));
|
|
4790
4771
|
};
|
|
4791
4772
|
|
|
4792
|
-
const Tile = JSX(({ className, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(BaseProductTile, { className: "h-full",
|
|
4773
|
+
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-m", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, ...rest }) })));
|
|
4793
4774
|
|
|
4794
4775
|
const alignStyle = {
|
|
4795
4776
|
stretch: 'items-stretch',
|
|
@@ -4931,14 +4912,19 @@
|
|
|
4931
4912
|
}
|
|
4932
4913
|
|
|
4933
4914
|
const COOKIE_DIALOG_ID = 'cookie';
|
|
4934
|
-
const
|
|
4915
|
+
const DIALOG_INITIAL_DELAY = 3 * 1000;
|
|
4935
4916
|
const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
|
|
4936
|
-
const { isOpened,
|
|
4917
|
+
const { isOpened, open, close } = useDialogProps(COOKIE_DIALOG_ID);
|
|
4918
|
+
useDebouncedEffect(() => {
|
|
4919
|
+
if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
|
|
4920
|
+
open();
|
|
4921
|
+
}
|
|
4922
|
+
}, [], DIALOG_INITIAL_DELAY);
|
|
4937
4923
|
const handleClose = useCallback(() => {
|
|
4938
|
-
globalThis.localStorage?.setItem(
|
|
4939
|
-
|
|
4940
|
-
}, [
|
|
4941
|
-
return isOpened ? (jsx("div", { className: "container z-40 fixed bottom-0 left-0 right-0 pointer-events-none", children: jsxs("div", { className: "bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [jsx("div", { className: "flex-1", children: jsxs(Paragraph, { size: "text-s-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: style(getStyleLinkWrapper(termLink?.href)), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: style(getStyleLinkWrapper(personalDataPolicyLink?.href)), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClick: handleClose }) })] }) })) : null;
|
|
4924
|
+
globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
|
|
4925
|
+
close();
|
|
4926
|
+
}, [close]);
|
|
4927
|
+
return isOpened ? (jsx("div", { className: "container z-40 fixed bottom-0 left-0 right-0 pointer-events-none", children: jsxs("div", { className: "bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [jsx("div", { className: "flex-1", children: jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: style(getStyleLinkWrapper(termLink?.href)), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: style(getStyleLinkWrapper(personalDataPolicyLink?.href)), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClick: handleClose }) })] }) })) : null;
|
|
4942
4928
|
});
|
|
4943
4929
|
const getStyleLinkWrapper = (href) => ['inline mx-1', href ? 'text-green-dark' : ''];
|
|
4944
4930
|
|
|
@@ -5015,7 +5001,7 @@
|
|
|
5015
5001
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
5016
5002
|
}
|
|
5017
5003
|
|
|
5018
|
-
const packageVersion = "0.12.
|
|
5004
|
+
const packageVersion = "0.12.7";
|
|
5019
5005
|
|
|
5020
5006
|
exports.Blocks = Blocks;
|
|
5021
5007
|
exports.ContentPage = ContentPage;
|