@redneckz/wildless-cms-uni-blocks 0.15.338 → 0.15.340
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.14.213.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +199 -135
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/bundle/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
- package/bundle/content-page-repository/copy.d.ts +1 -0
- package/bundle/data/FooterData.d.ts +0 -1
- package/bundle/data/SitemapData.d.ts +1 -10
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/model/Fallback.d.ts +0 -1
- package/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/bundle/utils/getVersion.d.ts +1 -0
- package/cosmos-static/icons/MapMarkerClusterYellowIcon.svg +1 -0
- package/cosmos-static/icons/sprites.svg +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
- package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
- package/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
- package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/dist/components/ContentPage/computeAPIFallback.js +2 -16
- package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -9
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -9
- package/dist/components/Footer/Footer.mobile.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/MobileAppTileContent.d.ts +2 -2
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/dist/components/OfficesAtmsMap/useOffices.js +4 -2
- package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +12 -5
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/TabsLayout/TabsLayout.js +17 -11
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/components/TabsLayout/renderTabsLayout.js +14 -12
- package/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/dist/content-page-repository/ContentPageRepository.js +27 -5
- package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/dist/content-page-repository/TransformationOptions.d.ts +1 -0
- package/dist/content-page-repository/copy.d.ts +1 -0
- package/dist/content-page-repository/copy.js +16 -0
- package/dist/content-page-repository/copy.js.map +1 -0
- package/dist/content-page-repository/transformAttachmentLink.js +8 -7
- package/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/dist/content-page-repository/transformDocument.js +3 -5
- package/dist/content-page-repository/transformDocument.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +4 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/data/FooterData.d.ts +0 -1
- package/dist/data/SitemapData.d.ts +1 -10
- 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/model/Fallback.d.ts +0 -1
- package/dist/ui-kit/Badge/Badge.js +1 -3
- package/dist/ui-kit/Badge/Badge.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
- package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/dist/utils/getVersion.d.ts +1 -0
- package/dist/utils/getVersion.js +5 -0
- package/dist/utils/getVersion.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
- package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
- package/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
- package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/lib/components/ContentPage/computeAPIFallback.js +2 -16
- package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -9
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -9
- package/lib/components/Footer/Footer.mobile.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/MobileAppTileContent.d.ts +2 -2
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +2 -0
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +6 -0
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/lib/components/OfficesAtmsMap/useOffices.js +4 -2
- package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +12 -5
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +4 -3
- package/lib/components/TabsLayout/TabsLayout.fixture.mobile.d.ts +4 -2
- package/lib/components/TabsLayout/TabsLayout.js +17 -11
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/components/TabsLayout/renderTabsLayout.js +14 -12
- package/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/lib/content-page-repository/ContentPageRepository.js +26 -4
- package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/lib/content-page-repository/TransformationOptions.d.ts +1 -0
- package/lib/content-page-repository/copy.d.ts +1 -0
- package/lib/content-page-repository/copy.js +10 -0
- package/lib/content-page-repository/copy.js.map +1 -0
- package/lib/content-page-repository/transformAttachmentLink.js +8 -7
- package/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/lib/content-page-repository/transformDocument.js +3 -5
- package/lib/content-page-repository/transformDocument.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +4 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/data/FooterData.d.ts +0 -1
- package/lib/data/SitemapData.d.ts +1 -10
- 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/model/Fallback.d.ts +0 -1
- package/lib/ui-kit/Badge/Badge.js +1 -3
- package/lib/ui-kit/Badge/Badge.js.map +1 -1
- package/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
- package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/lib/utils/getVersion.d.ts +1 -0
- package/lib/utils/getVersion.js +2 -0
- package/lib/utils/getVersion.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +194 -128
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/mobile/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/mobile/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/mobile/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/mobile/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/mobile/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/mobile/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
- package/mobile/bundle/content-page-repository/copy.d.ts +1 -0
- package/mobile/bundle/data/FooterData.d.ts +0 -1
- package/mobile/bundle/data/SitemapData.d.ts +1 -10
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/model/Fallback.d.ts +0 -1
- package/mobile/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/mobile/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/mobile/bundle/utils/getVersion.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/mobile/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
- package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
- package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/mobile/dist/components/ContentPage/computeAPIFallback.js +2 -16
- package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -9
- package/mobile/dist/components/Footer/Footer.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/MobileAppTileContent.d.ts +2 -2
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/mobile/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js +4 -2
- package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js +17 -11
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/components/TabsLayout/renderTabsLayout.js +14 -12
- package/mobile/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/mobile/dist/content-page-repository/ContentPageRepository.js +27 -5
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/dist/content-page-repository/TransformationOptions.d.ts +1 -0
- package/mobile/dist/content-page-repository/copy.d.ts +1 -0
- package/mobile/dist/content-page-repository/copy.js +16 -0
- package/mobile/dist/content-page-repository/copy.js.map +1 -0
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +8 -7
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js +3 -5
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +4 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/data/FooterData.d.ts +0 -1
- package/mobile/dist/data/SitemapData.d.ts +1 -10
- 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/model/Fallback.d.ts +0 -1
- package/mobile/dist/ui-kit/Badge/Badge.js +1 -3
- package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/mobile/dist/utils/getVersion.d.ts +1 -0
- package/mobile/dist/utils/getVersion.js +5 -0
- package/mobile/dist/utils/getVersion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
- package/mobile/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
- package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
- package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
- package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
- package/mobile/lib/components/ContentPage/computeAPIFallback.js +2 -16
- package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -9
- package/mobile/lib/components/Footer/Footer.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/MobileAppTileContent.d.ts +2 -2
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
- package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
- package/mobile/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js +4 -2
- package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js +17 -11
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/components/TabsLayout/renderTabsLayout.js +14 -12
- package/mobile/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
- package/mobile/lib/content-page-repository/ContentPageRepository.js +26 -4
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
- package/mobile/lib/content-page-repository/TransformationOptions.d.ts +1 -0
- package/mobile/lib/content-page-repository/copy.d.ts +1 -0
- package/mobile/lib/content-page-repository/copy.js +10 -0
- package/mobile/lib/content-page-repository/copy.js.map +1 -0
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +8 -7
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js +3 -5
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +4 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/data/FooterData.d.ts +0 -1
- package/mobile/lib/data/SitemapData.d.ts +1 -10
- 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/model/Fallback.d.ts +0 -1
- package/mobile/lib/ui-kit/Badge/Badge.js +1 -3
- package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
- package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
- package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
- package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
- package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
- package/mobile/lib/utils/getVersion.d.ts +1 -0
- package/mobile/lib/utils/getVersion.js +2 -0
- package/mobile/lib/utils/getVersion.js.map +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
- package/mobile/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
- package/mobile/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
- package/mobile/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
- package/mobile/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
- package/mobile/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
- package/mobile/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
- package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +1 -0
- package/mobile/src/components/ContentPage/computeAPIFallback.ts +3 -35
- package/mobile/src/components/Footer/Footer.tsx +0 -16
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
- package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
- package/mobile/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
- package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
- package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
- package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
- package/mobile/src/components/OfficesAtmsMap/useOffices.ts +11 -4
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +21 -11
- package/mobile/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
- package/mobile/src/content-page-repository/ContentPageRepository.ts +36 -4
- package/mobile/src/content-page-repository/TransformationOptions.ts +1 -0
- package/mobile/src/content-page-repository/copy.ts +11 -0
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +7 -8
- package/mobile/src/content-page-repository/transformDocument.ts +3 -5
- package/mobile/src/content-page-repository/transformImg.ts +6 -1
- package/mobile/src/data/FooterData.ts +0 -1
- package/mobile/src/data/SitemapData.ts +1 -11
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
- package/mobile/src/model/Fallback.ts +0 -1
- package/mobile/src/ui-kit/Badge/Badge.tsx +13 -15
- package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
- package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
- package/mobile/src/ui-kit/Heading/HeadingProps.ts +1 -3
- package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
- package/mobile/src/ui-kit/TabsControl/TabItem.tsx +1 -2
- package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
- package/mobile/src/utils/getVersion.ts +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
- package/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
- package/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
- package/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
- package/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
- package/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
- package/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
- package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
- package/src/components/ContentPage/ContentPage.tsx +1 -0
- package/src/components/ContentPage/computeAPIFallback.ts +3 -35
- package/src/components/Footer/Footer.mobile.tsx +0 -16
- package/src/components/Footer/Footer.tsx +0 -19
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
- package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
- package/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
- package/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
- package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
- package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
- package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
- package/src/components/OfficesAtmsMap/useOffices.ts +11 -4
- package/src/components/ProductGallery/ProductGallery.tsx +37 -7
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
- package/src/components/TabsLayout/TabsLayout.fixture.mobile.tsx +70 -24
- package/src/components/TabsLayout/TabsLayout.fixture.tsx +33 -29
- package/src/components/TabsLayout/TabsLayout.tsx +21 -11
- package/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
- package/src/content-page-repository/ContentPageRepository.ts +36 -4
- package/src/content-page-repository/TransformationOptions.ts +1 -0
- package/src/content-page-repository/copy.ts +11 -0
- package/src/content-page-repository/transformAttachmentLink.ts +7 -8
- package/src/content-page-repository/transformDocument.ts +3 -5
- package/src/content-page-repository/transformImg.ts +6 -1
- package/src/data/FooterData.ts +0 -1
- package/src/data/SitemapData.ts +1 -11
- package/src/icons/IconName.ts +5 -5
- package/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
- package/src/model/Fallback.ts +0 -1
- package/src/ui-kit/Badge/Badge.tsx +13 -15
- package/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
- package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
- package/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
- package/src/ui-kit/Heading/HeadingProps.ts +1 -3
- package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
- package/src/ui-kit/TabsControl/TabItem.tsx +1 -2
- package/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
- package/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
- package/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
- package/src/utils/getVersion.ts +1 -0
- package/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/src/components/ContentPage/loadModuleFallback.ts +0 -11
- package/src/components/ContentPage/loadModuleFallback.ts +0 -11
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
|
|
587
587
|
const deviation = (items) => items?.length ? Math.sqrt(Math.abs(avg(items.map((_) => _ ** 2)) - avg(items) ** 2)) : 0;
|
|
588
588
|
|
|
589
|
-
const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon ? (jsx("div", { className: style('sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
|
|
589
|
+
const renderBenefitIcon = (icon, benefitsVersion = 'normal') => icon?.icon || icon?.src ? (jsx("div", { className: style('sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 box-border flex items-center justify-center rounded-icon', benefitsVersion === 'normal'
|
|
590
590
|
? 'bg-secondary-light text-primary-main'
|
|
591
591
|
: '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;
|
|
592
592
|
|
|
@@ -2830,6 +2830,20 @@
|
|
|
2830
2830
|
}
|
|
2831
2831
|
};
|
|
2832
2832
|
|
|
2833
|
+
const DEFAULT_MIN_SUM$2 = 10000;
|
|
2834
|
+
const DEFAULT_MAX_SUM$1 = 5000000;
|
|
2835
|
+
const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
2836
|
+
minSum: DEFAULT_MIN_SUM$2,
|
|
2837
|
+
maxSum: DEFAULT_MAX_SUM$1,
|
|
2838
|
+
minMonths: DEFAULT_MIN_MONTHS,
|
|
2839
|
+
maxMonths: DEFAULT_MAX_MONTHS,
|
|
2840
|
+
rate: 0,
|
|
2841
|
+
isSalaryClient: false,
|
|
2842
|
+
isPensionClient: false,
|
|
2843
|
+
isStateEmployee: false,
|
|
2844
|
+
isInsurance: true,
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2833
2847
|
const checkCreditSourceBookRowCommonParams = (props) => checkRowParam$1({
|
|
2834
2848
|
...props,
|
|
2835
2849
|
fieldKey: 'isSalaryClient',
|
|
@@ -2869,19 +2883,6 @@
|
|
|
2869
2883
|
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
2870
2884
|
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
2871
2885
|
|
|
2872
|
-
const DEFAULT_MIN_SUM$2 = 10000;
|
|
2873
|
-
const DEFAULT_MAX_SUM$1 = 5000000;
|
|
2874
|
-
const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
2875
|
-
minSum: DEFAULT_MIN_SUM$2,
|
|
2876
|
-
maxSum: DEFAULT_MAX_SUM$1,
|
|
2877
|
-
minMonths: DEFAULT_MIN_MONTHS,
|
|
2878
|
-
maxMonths: DEFAULT_MAX_MONTHS,
|
|
2879
|
-
rate: 0,
|
|
2880
|
-
isSalaryClient: false,
|
|
2881
|
-
isPensionClient: false,
|
|
2882
|
-
isStateEmployee: false,
|
|
2883
|
-
isInsurance: true,
|
|
2884
|
-
};
|
|
2885
2886
|
const getCreditCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
|
|
2886
2887
|
const { moneyValue, monthsValue } = userInputParams;
|
|
2887
2888
|
const rateRows = calcSource?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
@@ -3727,14 +3728,6 @@
|
|
|
3727
3728
|
return currencies?.filter((_) => [1, 2, 3].includes(_?.currency?.id)) || [];
|
|
3728
3729
|
};
|
|
3729
3730
|
|
|
3730
|
-
const mapCookie = (name, mapper) => {
|
|
3731
|
-
const cookies = globalThis.document?.cookie.split(';') ?? [];
|
|
3732
|
-
const [, value] = cookies.map((_) => _.split('=')).find(([key]) => key.trim() === name) || [];
|
|
3733
|
-
if (mapper(value)) {
|
|
3734
|
-
globalThis.document.cookie = `${name}=${mapper(value)}`;
|
|
3735
|
-
}
|
|
3736
|
-
};
|
|
3737
|
-
|
|
3738
3731
|
const renderRoundedIcon = (icon, iconBgVersion) => (jsx(RoundedIcon, { ...icon, iconBgVersion: iconBgVersion, className: "shrink-0" }));
|
|
3739
3732
|
|
|
3740
3733
|
const rollupIconVersion = 'black';
|
|
@@ -3783,8 +3776,6 @@
|
|
|
3783
3776
|
};
|
|
3784
3777
|
const formatTel = (s) => s.replaceAll(/\D/g, '');
|
|
3785
3778
|
|
|
3786
|
-
const COOKIE_REPLACE = ['split_version', 'New', 'Old'];
|
|
3787
|
-
|
|
3788
3779
|
const horizontalNavigationLinkStyles = '';
|
|
3789
3780
|
|
|
3790
3781
|
const HorizontalNavigationLink = JSX(({ className = '', index, text, ...rest }) => {
|
|
@@ -3818,11 +3809,7 @@
|
|
|
3818
3809
|
const Footer = UniBlock(({ className, footer, ...rest }) => {
|
|
3819
3810
|
const { topItems } = rest.options?.page?.sitemap ?? {};
|
|
3820
3811
|
const { relatedEnterprises, contacts, mediaLinks = [], horizontalNavigationTitle, documents, feedbackButton, license, } = footer || {};
|
|
3821
|
-
|
|
3822
|
-
const [name, oldValue, newValue] = COOKIE_REPLACE;
|
|
3823
|
-
mapCookie(name, (value) => value?.replace(oldValue, newValue));
|
|
3824
|
-
}, []);
|
|
3825
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: style('space-y-lg', className), defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { role: "menu", children: renderTopItems(topItems) }), jsx("div", { className: borderStyle }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], stretched: true, showButtonText: false, children: _?.title }, String(i)))), jsx("div", { className: borderStyle }), jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "flex text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: handleOnClick }), jsx("div", { className: borderStyle }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx("div", { className: borderStyle }), jsx(TextInformation, { links: documents, license: license })] }));
|
|
3812
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: style('space-y-lg', className), defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { role: "menu", children: renderTopItems(topItems) }), jsx("div", { className: borderStyle }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], stretched: true, showButtonText: false, children: _?.title }, String(i)))), jsx("div", { className: borderStyle }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx("div", { className: borderStyle }), jsx(TextInformation, { links: documents, license: license })] }));
|
|
3826
3813
|
});
|
|
3827
3814
|
const renderTopItems = (topItems) => topItems
|
|
3828
3815
|
?.filter((_) => _.icon?.icon)
|
|
@@ -3981,23 +3968,13 @@
|
|
|
3981
3968
|
return docFormat.includes('/') ? docFormat.replace(regexp, '') : docFormat;
|
|
3982
3969
|
};
|
|
3983
3970
|
|
|
3984
|
-
const MobileAppTile = UniBlock(({ className, padding, align = 'text-left', buttons = [], description, image, items,
|
|
3971
|
+
const MobileAppTile = UniBlock(({ className, padding, align = 'text-left', buttons = [], description, image, items, headingType, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
3985
3972
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
3986
3973
|
const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
|
|
3987
3974
|
return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) }), rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [jsx(List, { items: items, listItemSize: "M" }), jsx(Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
3988
3975
|
});
|
|
3989
3976
|
|
|
3990
|
-
const
|
|
3991
|
-
primary: 'bg-white/30',
|
|
3992
|
-
secondary: 'bg-main-divider',
|
|
3993
|
-
};
|
|
3994
|
-
const badgeTextColorStyleMap = {
|
|
3995
|
-
primary: 'text-white',
|
|
3996
|
-
secondary: 'text-secondary-text',
|
|
3997
|
-
};
|
|
3998
|
-
const Badge$1 = JSX(({ count, version = 'secondary' }) => {
|
|
3999
|
-
return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyleMap[version]), role: "status", children: jsx(Text, { size: "text-xs", color: badgeTextColorStyleMap[version], children: count }) }));
|
|
4000
|
-
});
|
|
3977
|
+
const getVersion = (isPrimary) => (isPrimary ? 'primary' : 'secondary');
|
|
4001
3978
|
|
|
4002
3979
|
const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) => targetMatchPattern(filter, content)).length;
|
|
4003
3980
|
|
|
@@ -4020,7 +3997,8 @@
|
|
|
4020
3997
|
const activeItemIndex = useMemo(() => Math.max(0, hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState))), [hotFilters, filtrationState]);
|
|
4021
3998
|
const items = useMemo(() => hotFilters.map((_) => ({
|
|
4022
3999
|
text: _.text,
|
|
4023
|
-
|
|
4000
|
+
count: getBadgeCount(blocks, _.filter),
|
|
4001
|
+
version: getVersion(_ === hotFilters[activeItemIndex]),
|
|
4024
4002
|
})), [hotFilters, blocks, activeItemIndex]);
|
|
4025
4003
|
const handleChange = useCallback((_) => {
|
|
4026
4004
|
onFiltrationStateChange(hotFilters[items.indexOf(_)].filter);
|
|
@@ -4032,6 +4010,16 @@
|
|
|
4032
4010
|
};
|
|
4033
4011
|
};
|
|
4034
4012
|
|
|
4013
|
+
const badgeBgStyleMap = {
|
|
4014
|
+
primary: 'bg-white/30',
|
|
4015
|
+
secondary: 'bg-main-divider',
|
|
4016
|
+
};
|
|
4017
|
+
const badgeTextColorStyleMap = {
|
|
4018
|
+
primary: 'text-white',
|
|
4019
|
+
secondary: 'text-secondary-text',
|
|
4020
|
+
};
|
|
4021
|
+
const Badge$1 = JSX(({ count, version = 'secondary' }) => (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyleMap[version]), role: "status", children: jsx(Text, { size: "text-xs", color: badgeTextColorStyleMap[version], children: count }) })));
|
|
4022
|
+
|
|
4035
4023
|
const getButtonClassNames = (isActive) => ({
|
|
4036
4024
|
btn: `w-96 ${isActive ? 'p-m border-none bg-primary-main text-white' : 'p-s ease-in duration-300 bg-white'}`,
|
|
4037
4025
|
text: isActive ? 'mb-xs text-xl' : 'mb-2xs text-l text-primary-text',
|
|
@@ -4072,14 +4060,14 @@
|
|
|
4072
4060
|
};
|
|
4073
4061
|
const TabItemInner = JSX(({ tag = 'div', item = {}, isActive = false, type = 'default', onClick }) => {
|
|
4074
4062
|
const Tag = tag;
|
|
4075
|
-
const { text, description, icon,
|
|
4063
|
+
const { text, description, icon, count, ...link } = item;
|
|
4076
4064
|
return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tablist", onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: [renderTabItemInner({
|
|
4077
4065
|
text,
|
|
4078
4066
|
description,
|
|
4079
4067
|
icon,
|
|
4080
4068
|
isActive,
|
|
4081
4069
|
type,
|
|
4082
|
-
}),
|
|
4070
|
+
}), Number.isInteger(count) ? (jsx("div", { className: "ml-xs", children: jsx(Badge$1, { count: count, version: getVersion(isActive) }) })) : null] }) }));
|
|
4083
4071
|
});
|
|
4084
4072
|
|
|
4085
4073
|
const TabItem = JSX((props) => props?.item?.href ? jsx(LinkTabItem, { ...props }) : jsx(ButtonTabItem, { ...props }));
|
|
@@ -4127,13 +4115,37 @@
|
|
|
4127
4115
|
childSchema: (content) => content?.filtrationSchema || {},
|
|
4128
4116
|
});
|
|
4129
4117
|
|
|
4130
|
-
|
|
4118
|
+
const MapMarkerClusterIcon = '/icons/MapMarkerClusterIcon.svg';
|
|
4119
|
+
const MapMarkerClusterYellowIcon = '/icons/MapMarkerClusterYellowIcon.svg';
|
|
4120
|
+
function renderClusterer({ yandexMaps, map, points, }) {
|
|
4131
4121
|
map.geoObjects.removeAll();
|
|
4132
4122
|
const clusterIconContentLayout = yandexMaps.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>');
|
|
4133
|
-
const
|
|
4123
|
+
const officeClusterer = defineClusterer('offices', yandexMaps, clusterIconContentLayout);
|
|
4124
|
+
if (points.length && points.every((_) => 'type' in _)) {
|
|
4125
|
+
const remoteWorkplaceClusterer = defineClusterer('workplaces', yandexMaps, clusterIconContentLayout);
|
|
4126
|
+
const remoteWorkplaceGeoObjects = defineGeoObjects(points.filter((_) => _.type === 'workplaces'), 'workplaces', yandexMaps);
|
|
4127
|
+
const officesGeoObjects = defineGeoObjects(points.filter((_) => _.type === 'offices'), 'offices', yandexMaps);
|
|
4128
|
+
officeClusterer.add(officesGeoObjects);
|
|
4129
|
+
remoteWorkplaceClusterer.add(remoteWorkplaceGeoObjects);
|
|
4130
|
+
map.geoObjects.add(remoteWorkplaceClusterer);
|
|
4131
|
+
map.geoObjects.add(officeClusterer);
|
|
4132
|
+
}
|
|
4133
|
+
else {
|
|
4134
|
+
const geoObjects = defineGeoObjects(points, 'offices', yandexMaps);
|
|
4135
|
+
officeClusterer.add(geoObjects);
|
|
4136
|
+
map.geoObjects.add(officeClusterer);
|
|
4137
|
+
}
|
|
4138
|
+
map.setBounds(yandexMaps.util.bounds.fromPoints(points.map((_) => _.coords))).then(() => {
|
|
4139
|
+
if (map.getZoom() > 10) {
|
|
4140
|
+
map.setZoom(10);
|
|
4141
|
+
}
|
|
4142
|
+
});
|
|
4143
|
+
}
|
|
4144
|
+
const defineClusterer = (type, yandexMaps, clusterIconContentLayout) => {
|
|
4145
|
+
return new yandexMaps.Clusterer({
|
|
4134
4146
|
clusterIcons: [
|
|
4135
4147
|
{
|
|
4136
|
-
href: '
|
|
4148
|
+
href: type === 'offices' ? MapMarkerClusterIcon : MapMarkerClusterYellowIcon,
|
|
4137
4149
|
size: [78, 84],
|
|
4138
4150
|
offset: [-35, -50],
|
|
4139
4151
|
},
|
|
@@ -4142,25 +4154,20 @@
|
|
|
4142
4154
|
clusterHideIconOnBalloonOpen: false,
|
|
4143
4155
|
geoObjectHideIconOnBalloonOpen: false,
|
|
4144
4156
|
});
|
|
4145
|
-
|
|
4157
|
+
};
|
|
4158
|
+
const defineGeoObjects = (pointArr, type, yandexMaps) => {
|
|
4159
|
+
return pointArr.map(({ coords, content }) => new yandexMaps.Placemark(coords, {
|
|
4146
4160
|
balloonContentHeader: content?.header,
|
|
4147
4161
|
balloonContentBody: content?.body,
|
|
4148
4162
|
balloonContentFooter: content?.footer,
|
|
4149
4163
|
hintContent: content?.hint,
|
|
4150
4164
|
}, {
|
|
4151
4165
|
iconLayout: 'default#image',
|
|
4152
|
-
iconImageHref: '
|
|
4166
|
+
iconImageHref: type === 'offices' ? MapMarkerClusterIcon : MapMarkerClusterYellowIcon,
|
|
4153
4167
|
iconImageSize: [78, 84],
|
|
4154
4168
|
iconImageOffset: [-35, -50],
|
|
4155
4169
|
}));
|
|
4156
|
-
|
|
4157
|
-
map.geoObjects.add(clusterer);
|
|
4158
|
-
map.setBounds(yandexMaps.util.bounds.fromPoints(points.map((_) => _.coords))).then(() => {
|
|
4159
|
-
if (map.getZoom() > 10) {
|
|
4160
|
-
map.setZoom(10);
|
|
4161
|
-
}
|
|
4162
|
-
});
|
|
4163
|
-
}
|
|
4170
|
+
};
|
|
4164
4171
|
|
|
4165
4172
|
const styles$1 = {
|
|
4166
4173
|
focus: 'focus:border-primary-text focus:border',
|
|
@@ -4292,11 +4299,11 @@
|
|
|
4292
4299
|
controls: [],
|
|
4293
4300
|
suppressMapOpenBlock: true,
|
|
4294
4301
|
});
|
|
4295
|
-
renderClusterer(yandexMaps, map.current, points);
|
|
4302
|
+
renderClusterer({ yandexMaps, map: map.current, points });
|
|
4296
4303
|
});
|
|
4297
4304
|
}
|
|
4298
4305
|
else if (yandexMaps) {
|
|
4299
|
-
renderClusterer(yandexMaps, map.current, points);
|
|
4306
|
+
renderClusterer({ yandexMaps, map: map.current, points });
|
|
4300
4307
|
if (!points?.length) {
|
|
4301
4308
|
map.current.setCenter(DEFAULT_CENTER_COORDS);
|
|
4302
4309
|
}
|
|
@@ -4315,6 +4322,8 @@
|
|
|
4315
4322
|
const mapByIndex = (points, index) => points.map((_) => _.coords[index]);
|
|
4316
4323
|
const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
|
|
4317
4324
|
|
|
4325
|
+
const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
4326
|
+
|
|
4318
4327
|
const FILTRATION_LABELS = {
|
|
4319
4328
|
safeBoxCaseVolumes: 'Аренда индивидуальных сейфовых ячеек',
|
|
4320
4329
|
workingSaturday: 'Открыты по субботам',
|
|
@@ -4329,14 +4338,14 @@
|
|
|
4329
4338
|
bullionOperations: 'Операции со слитками',
|
|
4330
4339
|
preciousMetalsOperations: 'Операции с драгоценными металлами',
|
|
4331
4340
|
transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
|
|
4341
|
+
remoteWorkplace: 'Удаленное рабочее место',
|
|
4332
4342
|
};
|
|
4333
4343
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
4334
4344
|
const renderFiltrationForm = (filters, { field, reset }, onlyOffice) => {
|
|
4335
|
-
const visibleFiltersNum =
|
|
4345
|
+
const visibleFiltersNum = 4;
|
|
4336
4346
|
const filtersCheckbox = (filters || []).map((key) => (jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key)));
|
|
4337
|
-
const [visibleFilters, hiddenFilters] = visibleFiltersNum
|
|
4338
|
-
|
|
4339
|
-
: [filtersCheckbox, []];
|
|
4347
|
+
const [visibleFilters, hiddenFilters] = [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
|
|
4348
|
+
;
|
|
4340
4349
|
return (jsx("div", { children: filters?.length ? (jsx("div", { children: jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [jsx("div", { className: COMMON_FILTERS_STYLES, children: visibleFilters }), jsx(FoldableSection, { className: COMMON_FILTERS_STYLES, isUnfolded: isUnfolded, children: hiddenFilters })] })), renderFoldButton: renderFoldButton$1(reset, onlyOffice) }) })) : null }));
|
|
4341
4350
|
};
|
|
4342
4351
|
const renderFoldButton$1 = (reset, onlyOffice) => ({ isUnfolded, onToggle }) => {
|
|
@@ -4348,37 +4357,47 @@
|
|
|
4348
4357
|
const defaultEmptyFunction = () => void 0;
|
|
4349
4358
|
const defaultFilterItems = () => [];
|
|
4350
4359
|
const filtersVisibleStyles = (activeButton) => activeButton === 'all' ? 'block' : 'hidden';
|
|
4351
|
-
const OfficesAtmsMapLayout = JSX(({ className, data = [], renderCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
|
|
4360
|
+
const OfficesAtmsMapLayout = JSX(({ className, data = [], remoteWorkplaces = [], renderCard = defaultEmptyFunction, renderRemoteWorkplaceCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, getBalloonRemoteWorkplaces = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
|
|
4352
4361
|
const onlyOffice = title?.includes('Офис');
|
|
4353
4362
|
const [filtrationState, { field, reset }] = useForm(initFilterState);
|
|
4354
|
-
const [filteredItems, points, lengthItems] = useMemo(() => {
|
|
4363
|
+
const [filteredItems, points, filteredRemoteWorkplaces, lengthItems] = useMemo(() => {
|
|
4355
4364
|
const _filteredItems = filterItems(data, filtrationState);
|
|
4356
|
-
const
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4365
|
+
const _filteredRemoteWorkplaces = filterItems(remoteWorkplaces, filtrationState);
|
|
4366
|
+
const _points = [
|
|
4367
|
+
..._filteredItems.map((_) => ({
|
|
4368
|
+
type: 'offices',
|
|
4369
|
+
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
4370
|
+
content: getBalloon(_),
|
|
4371
|
+
})),
|
|
4372
|
+
..._filteredRemoteWorkplaces.map((_) => ({
|
|
4373
|
+
type: 'workplaces',
|
|
4374
|
+
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
4375
|
+
content: getBalloonRemoteWorkplaces({
|
|
4376
|
+
address: _.address,
|
|
4377
|
+
workScheduleDescription: _.workScheduleDescription,
|
|
4378
|
+
}),
|
|
4379
|
+
})),
|
|
4380
|
+
].filter((_) => _.coords && _.coords.length === 2);
|
|
4381
|
+
const itemsLength = _filteredItems.length + _filteredRemoteWorkplaces?.length;
|
|
4382
|
+
return [_filteredItems, _points, _filteredRemoteWorkplaces, itemsLength];
|
|
4383
|
+
}, [data, remoteWorkplaces, filtrationState]);
|
|
4364
4384
|
const [activeButton, setActiveButton] = useState('all');
|
|
4365
|
-
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h2", children: [title, lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: ` (${lengthItems})` })) : null] }) }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
4385
|
+
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "p-6xl pb-0", children: [jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: jsxs(Heading, { headingType: "h2", children: [title, lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: ` (${lengthItems})` })) : null] }) }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] }));
|
|
4366
4386
|
});
|
|
4367
|
-
const renderButtonsGroup = (data, activeButton,
|
|
4368
|
-
const allButtonVersion = activeButton === 'all'
|
|
4369
|
-
const businessButtonVersion = activeButton === 'business'
|
|
4370
|
-
const
|
|
4387
|
+
const renderButtonsGroup = (data, activeButton, onButtonClick) => {
|
|
4388
|
+
const allButtonVersion = getVersion(activeButton === 'all');
|
|
4389
|
+
const businessButtonVersion = getVersion(activeButton === 'business');
|
|
4390
|
+
const handleClick = (e, key, branches) => {
|
|
4371
4391
|
if (e.currentTarget === e.target && key === 'business') {
|
|
4372
4392
|
branches.filter((branch) => branch.workSchedule &&
|
|
4373
4393
|
branch.workSchedule.businessScheduleVisibleTag &&
|
|
4374
4394
|
!branch.workSchedule.businessScheduleDescription);
|
|
4375
4395
|
}
|
|
4376
|
-
|
|
4396
|
+
onButtonClick(key);
|
|
4377
4397
|
return branches;
|
|
4378
4398
|
};
|
|
4379
|
-
return (jsxs("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [jsx(Button, { "data-id": "all", onClick: (e) =>
|
|
4380
|
-
};
|
|
4381
|
-
const renderDescriptionBlock$1 = ({ __html, list }) => __html || list?.length ? (jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (jsx("div", { className: "mb-2xl", children: jsx(RichText, { __html: __html }) })) : null, list?.length ? (jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
4399
|
+
return (jsxs("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [jsx(Button, { "data-id": "all", onClick: (e) => handleClick(e, 'all', data), version: allButtonVersion, children: "\u0414\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" }), jsx(Button, { "data-id": "business", onClick: (e) => handleClick(e, 'business', data), version: businessButtonVersion, children: "\u0414\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" })] }));
|
|
4400
|
+
};
|
|
4382
4401
|
|
|
4383
4402
|
const colorStyle = {
|
|
4384
4403
|
yellow: { border: 'border-yellow-light', text: 'text-yellow' },
|
|
@@ -4602,7 +4621,7 @@
|
|
|
4602
4621
|
return null;
|
|
4603
4622
|
}
|
|
4604
4623
|
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
4605
|
-
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: name }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), renderCurrentDaySchedule(workScheduleWeek)] }), jsx("div", { className: "hidden sm:block", children: renderCardContent({
|
|
4624
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsxs("div", { className: "sm:flex sm:justify-between", children: [jsxs("div", { children: [jsx(Text, { size: "text-h4", children: name }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }), renderCurrentDaySchedule(workScheduleWeek)] }), jsx("div", { className: "hidden sm:block", children: renderCardContent$1({
|
|
4606
4625
|
phone,
|
|
4607
4626
|
fax,
|
|
4608
4627
|
phoneBusiness,
|
|
@@ -4612,7 +4631,7 @@
|
|
|
4612
4631
|
workSchedule,
|
|
4613
4632
|
exchangeRate,
|
|
4614
4633
|
}) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
|
|
4615
|
-
return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent({
|
|
4634
|
+
return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent$1({
|
|
4616
4635
|
phone,
|
|
4617
4636
|
fax,
|
|
4618
4637
|
phoneBusiness,
|
|
@@ -4626,7 +4645,7 @@
|
|
|
4626
4645
|
//** TODO: remove styles with refactoring DefaultFoldButton*/
|
|
4627
4646
|
renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle }) })] }, String(index)));
|
|
4628
4647
|
};
|
|
4629
|
-
const renderCardContent = ({ phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }) => {
|
|
4648
|
+
const renderCardContent$1 = ({ phone, fax, phoneBusiness, phoneNatural, phoneCallCentre, phoneCurrencyControl, workSchedule, exchangeRate, }) => {
|
|
4630
4649
|
const workScheduleWeek = getWorkScheduleWeek(workSchedule);
|
|
4631
4650
|
const labelSchedule = workSchedule?.businessScheduleVisibleTag
|
|
4632
4651
|
? 'Для физических лиц'
|
|
@@ -4642,13 +4661,38 @@
|
|
|
4642
4661
|
return { header, body };
|
|
4643
4662
|
};
|
|
4644
4663
|
|
|
4664
|
+
const renderRemoteWorkplaceCard = ({ address, workScheduleDescription }, index) => {
|
|
4665
|
+
if (!workScheduleDescription) {
|
|
4666
|
+
return null;
|
|
4667
|
+
}
|
|
4668
|
+
return (jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [jsx("div", { className: "sm:flex sm:justify-between", children: jsxs("div", { children: [jsx(Text, { size: "text-h4", children: "\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u043E\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043C\u0435\u0441\u0442\u043E" }), address ? (jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), jsx(Text, { size: "text-l", children: address })] })) : null] }) }), jsx("div", { className: "hidden sm:block", children: renderCardContent({
|
|
4669
|
+
workScheduleDescription,
|
|
4670
|
+
}) }), jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
|
|
4671
|
+
return (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent({
|
|
4672
|
+
workScheduleDescription,
|
|
4673
|
+
}) }));
|
|
4674
|
+
},
|
|
4675
|
+
//** TODO: remove styles with refactoring DefaultFoldButton*/
|
|
4676
|
+
renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle }) })] }, String(index)));
|
|
4677
|
+
};
|
|
4678
|
+
const renderCardContent = ({ workScheduleDescription }) => {
|
|
4679
|
+
return (jsxs("div", { children: [jsxs(CardRow, { className: "flex", children: [jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432, \u0441\u0447\u0435\u0442\u043E\u0432, \u0432\u043A\u043B\u0430\u0434\u043E\u0432" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u043E\u0432\u0441\u043A\u0438\u0445 \u043A\u0430\u0440\u0442" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u0418\u043D\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u0438 \u043D\u0430\u043A\u043E\u043F\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435" }) }), jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: jsx(Text, { children: "\u0411\u0435\u0437\u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0440\u0443\u0431\u043B\u044F\u0445, \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B \u0431\u0435\u0437 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0441\u0447\u0451\u0442\u0430" }) })] }), jsx(CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", className: "max-w-none", children: jsx(Text, { children: workScheduleDescription }) })] }));
|
|
4680
|
+
};
|
|
4681
|
+
const getRemoteWorkplacePoint = ({ address = '', workScheduleDescription, }) => {
|
|
4682
|
+
const header = 'Удаленное рабочее место';
|
|
4683
|
+
const body = `${address} ${workScheduleDescription}`;
|
|
4684
|
+
return { header, body };
|
|
4685
|
+
};
|
|
4686
|
+
|
|
4645
4687
|
const EMPTY_VALUE$1 = [];
|
|
4646
4688
|
function useOffices(regionCode) {
|
|
4647
|
-
const { data = EMPTY_VALUE$1 } = useAsyncData(`/api/v1/
|
|
4689
|
+
const { data = EMPTY_VALUE$1 } = useAsyncData(`/api/v1/branchesAndRemoteWorkplaces?regionCode=${regionCode}`, fetchMap);
|
|
4648
4690
|
return data;
|
|
4649
4691
|
}
|
|
4650
4692
|
const fetchMap = async (url) => {
|
|
4651
|
-
const result = await fetchJSON(url, {
|
|
4693
|
+
const result = await fetchJSON(url, {
|
|
4694
|
+
method: 'GET',
|
|
4695
|
+
});
|
|
4652
4696
|
return Array.isArray(result) ? result : EMPTY_VALUE$1;
|
|
4653
4697
|
};
|
|
4654
4698
|
|
|
@@ -4656,6 +4700,7 @@
|
|
|
4656
4700
|
workingSaturday: false,
|
|
4657
4701
|
premiumService: false,
|
|
4658
4702
|
privateBanking: false,
|
|
4703
|
+
remoteWorkplace: false,
|
|
4659
4704
|
sellingCoins: false,
|
|
4660
4705
|
buyingCoins: false,
|
|
4661
4706
|
bullionOperations: false,
|
|
@@ -4663,20 +4708,21 @@
|
|
|
4663
4708
|
transferringDataToBiometricSystem: false,
|
|
4664
4709
|
};
|
|
4665
4710
|
const FILTRATION_PREDICATES = {
|
|
4666
|
-
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
4667
|
-
premiumService: (item) => Boolean(item.premiumService),
|
|
4668
|
-
privateBanking: (item) => Boolean(item.privateBanking),
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4711
|
+
workingSaturday: (item) => Boolean('workSchedule' in item && item.workSchedule?.workingSaturday),
|
|
4712
|
+
premiumService: (item) => Boolean('premiumService' in item && item.premiumService),
|
|
4713
|
+
privateBanking: (item) => Boolean('privateBanking' in item && item.privateBanking),
|
|
4714
|
+
remoteWorkplace: (item) => Boolean('workScheduleDescription' in item),
|
|
4715
|
+
sellingCoins: (item) => Boolean('sellingCoins' in item && item.sellingCoins),
|
|
4716
|
+
buyingCoins: (item) => Boolean('buyingCoins' in item && item.buyingCoins),
|
|
4717
|
+
bullionOperations: (item) => Boolean('bullionOperations' in item && item.bullionOperations),
|
|
4718
|
+
preciousMetalsOperations: (item) => Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
|
|
4719
|
+
transferringDataToBiometricSystem: (item) => Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
|
|
4674
4720
|
};
|
|
4675
4721
|
const OfficesMap = JSX(({ className }) => {
|
|
4676
4722
|
const [currentLocation] = useLocation();
|
|
4677
4723
|
const regionCode = currentLocation?.code ?? '000';
|
|
4678
4724
|
const officesData = useOffices(regionCode);
|
|
4679
|
-
return (jsx(OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard, getBalloon: getOfficePoint, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
4725
|
+
return (jsx(OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData[0]?.branches, remoteWorkplaces: officesData[0]?.remoteWorkplaces, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard, renderRemoteWorkplaceCard: renderRemoteWorkplaceCard, getBalloon: getOfficePoint, getBalloonRemoteWorkplaces: getRemoteWorkplacePoint, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
4680
4726
|
});
|
|
4681
4727
|
const filterItems = (data, filtrationState) => {
|
|
4682
4728
|
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
@@ -5100,14 +5146,20 @@
|
|
|
5100
5146
|
|
|
5101
5147
|
const BurgerMenuDialog = JSX(({ menuRef, menuItem, locationDialogProps, closeAll }) => {
|
|
5102
5148
|
const locationDialog = useLocationDialog(locationDialogProps || {});
|
|
5149
|
+
const [{ name: location }] = useLocation();
|
|
5103
5150
|
const menuDimensions = menuRef?.current?.getBoundingClientRect();
|
|
5104
5151
|
const handleIframeLoad = useCallback(() => {
|
|
5105
5152
|
const iframeWindow = globalThis?.frames['burger-menu-iframe'];
|
|
5106
5153
|
const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
|
|
5107
5154
|
ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
|
|
5108
5155
|
const [, basePath] = globalThis?.location?.pathname?.split('/') || [];
|
|
5109
|
-
iframeWindow.postMessage(basePath, '*');
|
|
5156
|
+
iframeWindow.postMessage({ type: 'currentTab', data: basePath }, '*');
|
|
5157
|
+
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
5110
5158
|
}, []);
|
|
5159
|
+
useEffect(() => {
|
|
5160
|
+
const iframeWindow = globalThis.frames['burger-menu-iframe'];
|
|
5161
|
+
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
5162
|
+
}, [location]);
|
|
5111
5163
|
useEffect(() => {
|
|
5112
5164
|
const onMessage = (e) => {
|
|
5113
5165
|
if (e.data.type === 'location') {
|
|
@@ -5207,14 +5259,19 @@
|
|
|
5207
5259
|
};
|
|
5208
5260
|
|
|
5209
5261
|
const scrollButtonStyle = 'hidden sm:flex absolute z-40';
|
|
5210
|
-
const
|
|
5262
|
+
const scrollStyle = {
|
|
5263
|
+
default: {
|
|
5264
|
+
item: 'flex-1',
|
|
5265
|
+
gap: 0,
|
|
5266
|
+
buttonTop: 'top-0',
|
|
5267
|
+
},
|
|
5211
5268
|
animated: {
|
|
5212
|
-
|
|
5269
|
+
item: 'flex',
|
|
5213
5270
|
gap: 8,
|
|
5214
5271
|
buttonTop: 'top-5',
|
|
5215
5272
|
},
|
|
5216
5273
|
underlined: {
|
|
5217
|
-
|
|
5274
|
+
item: '',
|
|
5218
5275
|
gap: 0,
|
|
5219
5276
|
buttonTop: 'top-0',
|
|
5220
5277
|
},
|
|
@@ -5223,7 +5280,7 @@
|
|
|
5223
5280
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
5224
5281
|
itemCount: items?.length || 0,
|
|
5225
5282
|
});
|
|
5226
|
-
return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName:
|
|
5283
|
+
return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName: scrollStyle[tabsType].item, gap: scrollStyle[tabsType].gap, children: items.map(renderTab(value, onChange, tabsType)) }), scroll.canScrollLeft ? (jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle, scrollStyle[tabsType].buttonTop), onClick: scroll.scrollRight })) : null] }));
|
|
5227
5284
|
});
|
|
5228
5285
|
|
|
5229
5286
|
const renderTabs = ({ tabsMode, ...props }) => {
|
|
@@ -5300,32 +5357,41 @@
|
|
|
5300
5357
|
};
|
|
5301
5358
|
const normalizeTab = (_) => _?.type === 'group' ? { text: _.title, name: _.ref } : _;
|
|
5302
5359
|
|
|
5303
|
-
const
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5360
|
+
const tabsStyle = {
|
|
5361
|
+
default: {
|
|
5362
|
+
wrapper: '',
|
|
5363
|
+
component: '',
|
|
5364
|
+
},
|
|
5365
|
+
animated: {
|
|
5366
|
+
wrapper: 'border-b-8 border-primary-main bg-white',
|
|
5367
|
+
component: 'm-auto',
|
|
5368
|
+
},
|
|
5369
|
+
underlined: {
|
|
5370
|
+
wrapper: 'flex',
|
|
5371
|
+
component: 'm-auto',
|
|
5372
|
+
},
|
|
5373
|
+
};
|
|
5374
|
+
const renderTabsLayout = ({ tabsType = 'animated', ...props }) => tabsType ? (jsx("div", { className: tabsStyle[tabsType].wrapper, children: jsx(ScrollableTabsControl, { className: tabsStyle[tabsType].component, tabsType: tabsType, ...props }) })) : null;
|
|
5315
5375
|
|
|
5316
5376
|
const TAB_QUERY_PARAM_KEY = 'tab';
|
|
5317
|
-
const TabsLayout = UniBlock(({ className = '', tabs = [], block, tabsType, ...rest }) => {
|
|
5377
|
+
const TabsLayout = UniBlock(({ className = '', tabs = [], block, tabsType, showCounter = false, ...rest }) => {
|
|
5318
5378
|
const router = useRouter();
|
|
5319
|
-
const
|
|
5320
|
-
|
|
5379
|
+
const tabsCounted = showCounter
|
|
5380
|
+
? tabs.map((_) => ({
|
|
5381
|
+
..._,
|
|
5382
|
+
count: block?.slots?.[_?.text ?? '']?.length ?? 0,
|
|
5383
|
+
}))
|
|
5384
|
+
: tabs;
|
|
5385
|
+
const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabsCounted));
|
|
5386
|
+
const defaultSelectedTab = tabsCounted.findIndex((_) => Boolean(_.selected));
|
|
5321
5387
|
useEffect(() => {
|
|
5322
|
-
const query = new URLSearchParams(globalThis?.location?.search
|
|
5388
|
+
const query = new URLSearchParams(globalThis?.location?.search);
|
|
5323
5389
|
const defaultTabIndex = query.get(TAB_QUERY_PARAM_KEY)
|
|
5324
|
-
?
|
|
5390
|
+
? tabsCounted.findIndex((_, index) => _.type === 'group' && String(index) === query.get(TAB_QUERY_PARAM_KEY))
|
|
5325
5391
|
: defaultSelectedTab;
|
|
5326
5392
|
setActiveTabIndex(defaultTabIndex === -1 ? 0 : defaultTabIndex);
|
|
5327
5393
|
}, [defaultSelectedTab]);
|
|
5328
|
-
const slotName = getSlotName(
|
|
5394
|
+
const slotName = getSlotName(tabsCounted[activeTabIndex], activeTabIndex);
|
|
5329
5395
|
const updateUrlSearchTabParam = (_, index) => {
|
|
5330
5396
|
const searchParams = new URLSearchParams(globalThis?.location?.search || '');
|
|
5331
5397
|
if (_.text) {
|
|
@@ -5337,16 +5403,16 @@
|
|
|
5337
5403
|
router.replace(`${router.pathname}?${searchParams}`, { scroll: false });
|
|
5338
5404
|
};
|
|
5339
5405
|
const handleChange = useCallback((_) => {
|
|
5340
|
-
const index =
|
|
5341
|
-
const tab =
|
|
5406
|
+
const index = tabsCounted.indexOf(_);
|
|
5407
|
+
const tab = tabsCounted[index];
|
|
5342
5408
|
setActiveTabIndex(index);
|
|
5343
5409
|
if (tab.type === 'group') {
|
|
5344
5410
|
updateUrlSearchTabParam(_, index);
|
|
5345
5411
|
}
|
|
5346
|
-
}, [
|
|
5412
|
+
}, [tabsCounted]);
|
|
5347
5413
|
return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", ...rest, children: [renderTabsLayout({
|
|
5348
|
-
items:
|
|
5349
|
-
value:
|
|
5414
|
+
items: tabsCounted,
|
|
5415
|
+
value: tabsCounted[activeTabIndex],
|
|
5350
5416
|
tabsType,
|
|
5351
5417
|
onChange: handleChange,
|
|
5352
5418
|
}), jsx("div", { className: "space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: renderBlocksList(block?.slots?.[slotName], {
|
|
@@ -5624,7 +5690,7 @@
|
|
|
5624
5690
|
|
|
5625
5691
|
const COOKIE_DIALOG_ID = 'cookie';
|
|
5626
5692
|
const DIALOG_INITIAL_DELAY = 3 * 1000;
|
|
5627
|
-
const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
|
|
5693
|
+
const CookiePopup = JSX(({ termLink, personalDataPolicyLink, recommendationLink }) => {
|
|
5628
5694
|
const [opened, { setTrue: open, setFalse: close }] = useBool();
|
|
5629
5695
|
useDebouncedEffect(() => {
|
|
5630
5696
|
if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
|
|
@@ -5635,7 +5701,7 @@
|
|
|
5635
5701
|
globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
|
|
5636
5702
|
close();
|
|
5637
5703
|
}, []);
|
|
5638
|
-
return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", role: "dialog", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm: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: linkWrapperStyle(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: linkWrapperStyle(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: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
5704
|
+
return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", role: "dialog", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm: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: linkWrapperStyle(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: linkWrapperStyle(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. \u041D\u0430 \u0441\u0430\u0439\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u043E", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(recommendationLink?.href), ...recommendationLink, children: "\u041F\u0440\u0430\u0432\u0438\u043B\u0430\u043C \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0439." })] }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
5639
5705
|
});
|
|
5640
5706
|
const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
|
|
5641
5707
|
|
|
@@ -5722,14 +5788,14 @@
|
|
|
5722
5788
|
}), renderBlocksList(slots?.[FOOTER_SLOT], { ...options, slotName: FOOTER_SLOT })] })] }), slots?.[STICKY_FOOTER_SLOT]?.length ? (jsx("div", { className: "fixed w-full bottom-0 left-0 z-[100]", children: renderBlocksList(slots?.[STICKY_FOOTER_SLOT], {
|
|
5723
5789
|
...options,
|
|
5724
5790
|
slotName: STICKY_FOOTER_SLOT,
|
|
5725
|
-
}) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
5791
|
+
}) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, recommendationLink: { href: '/recommendation', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
5726
5792
|
});
|
|
5727
5793
|
Object.assign(ContentPage, {
|
|
5728
5794
|
childrenTypes: [],
|
|
5729
5795
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
5730
5796
|
});
|
|
5731
5797
|
|
|
5732
|
-
const packageVersion = "0.15.
|
|
5798
|
+
const packageVersion = "0.15.340";
|
|
5733
5799
|
|
|
5734
5800
|
exports.Blocks = Blocks;
|
|
5735
5801
|
exports.ContentPage = ContentPage;
|