@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCreditCalculatorLimitParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getCreditCalculatorLimitParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts"],"names":[],"mappings":";;AAKA,iGAA8F;AAOvF,MAAM,8BAA8B,GAAG,CAAC,EAC7C,SAAS,EACT,eAAe,EACf,kBAAkB,GACkB,EAAE,EAAE,CACxC,SAAS,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CACtB,IAAA,2EAAoC,EAAC;IACnC,GAAG;IACH,eAAe;IACf,kBAAkB;CACnB,CAAC,CACH,CAAC;AAXS,QAAA,8BAA8B,kCAWvC"}
|
|
@@ -1,25 +1,2 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type CreditCalculatorParamsViewSettings } from './CalculatorCreditContent';
|
|
3
|
-
export declare const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookRateParams;
|
|
4
|
-
export interface CommonCreditParams {
|
|
5
|
-
isInsurance: boolean;
|
|
6
|
-
isSalaryClient: boolean;
|
|
7
|
-
isPensionClient: boolean;
|
|
8
|
-
isStateEmployee: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface CreditCalculatorSourceBookRateParams extends CommonCreditParams, LimitParamsProps {
|
|
11
|
-
rate: number;
|
|
12
|
-
}
|
|
13
|
-
export interface CreditCalculatorSourceBookLimitParams extends CommonCreditParams, LimitParamsProps {
|
|
14
|
-
}
|
|
15
|
-
export interface CreditCalculatorUserInputParams extends CommonCreditParams, CalcValueProps {
|
|
16
|
-
isAnnuity: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface CreditCalculatorParams extends CreditCalculatorSourceBookRateParams, CreditCalculatorUserInputParams {
|
|
19
|
-
monthlyPayment: number;
|
|
20
|
-
}
|
|
21
|
-
export declare type CreditCalculatorData = {
|
|
22
|
-
rateRows?: CreditCalculatorSourceBookRateParams[];
|
|
23
|
-
limitRows?: CreditCalculatorSourceBookLimitParams[];
|
|
24
|
-
};
|
|
1
|
+
import { type CreditCalculatorData, type CreditCalculatorParams, type CreditCalculatorParamsViewSettings, type CreditCalculatorUserInputParams } from './CalculatorCreditContent';
|
|
25
2
|
export declare const getCreditCalculatorParams: (userInputParams: CreditCalculatorUserInputParams, calcSource?: CreditCalculatorData, paramsViewSettings?: CreditCalculatorParamsViewSettings) => CreditCalculatorParams;
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getCreditCalculatorParams =
|
|
3
|
-
const calculatorConstants_1 = require("../../ui-kit/Calculator/calculatorConstants");
|
|
2
|
+
exports.getCreditCalculatorParams = void 0;
|
|
4
3
|
const getMonthlyPayment_1 = require("../../ui-kit/Calculator/getMonthlyPayment");
|
|
5
4
|
const rangeHelpers_1 = require("../../ui-kit/Calculator/rangeHelpers");
|
|
5
|
+
const defaultCreditCalculatorParams_1 = require("./defaultCreditCalculatorParams");
|
|
6
6
|
const getCreditCalculatorLimitParams_1 = require("./getCreditCalculatorLimitParams");
|
|
7
7
|
const getCreditCalculatorRateParams_1 = require("./getCreditCalculatorRateParams");
|
|
8
|
-
const DEFAULT_MIN_SUM = 10000;
|
|
9
|
-
const DEFAULT_MAX_SUM = 5000000;
|
|
10
|
-
exports.DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
11
|
-
minSum: DEFAULT_MIN_SUM,
|
|
12
|
-
maxSum: DEFAULT_MAX_SUM,
|
|
13
|
-
minMonths: calculatorConstants_1.DEFAULT_MIN_MONTHS,
|
|
14
|
-
maxMonths: calculatorConstants_1.DEFAULT_MAX_MONTHS,
|
|
15
|
-
rate: 0,
|
|
16
|
-
isSalaryClient: false,
|
|
17
|
-
isPensionClient: false,
|
|
18
|
-
isStateEmployee: false,
|
|
19
|
-
isInsurance: true,
|
|
20
|
-
};
|
|
21
8
|
const getCreditCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
|
|
22
9
|
const { moneyValue, monthsValue } = userInputParams;
|
|
23
|
-
const rateRows = calcSource?.rateRows || [
|
|
10
|
+
const rateRows = calcSource?.rateRows || [defaultCreditCalculatorParams_1.DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
24
11
|
const limitRows = calcSource?.limitRows || [];
|
|
25
12
|
const creditCalculatorSourceBookLimitParams = (0, getCreditCalculatorLimitParams_1.getCreditCalculatorLimitParams)({
|
|
26
13
|
limitRows,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorParams.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"getCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorParams.ts"],"names":[],"mappings":";;AAAA,iFAA8E;AAC9E,uEAA2E;AAO3E,mFAAmF;AACnF,qFAAkF;AAClF,mFAAgF;AAEzE,MAAM,yBAAyB,GAAG,CACvC,eAAgD,EAChD,UAAiC,EACjC,kBAAuD,EAC/B,EAAE;IAC1B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IACpD,MAAM,QAAQ,GAAG,UAAU,EAAE,QAAQ,IAAI,CAAC,gEAAgC,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,UAAU,EAAE,SAAS,IAAI,EAAE,CAAC;IAC9C,MAAM,qCAAqC,GAAG,IAAA,+DAA8B,EAAC;QAC3E,SAAS;QACT,eAAe;QACf,kBAAkB;KACnB,CAAC,CAAC;IAEH,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kCAAmB,EAC5C,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACpB,qCAAqC,EACrC,QAAQ,CACT,CAAC;IACF,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAA,kCAAmB,EAClD,CAAC,WAAW,EAAE,WAAW,CAAC,EAC1B,qCAAqC,EACrC,QAAQ,CACT,CAAC;IAEF,MAAM,0BAA0B,GAAG,IAAA,6DAA6B,EAAC;QAC/D,QAAQ;QACR,eAAe;QACf,kBAAkB;QAClB,UAAU;QACV,WAAW;KACZ,CAAC,CAAC;IACH,MAAM,EAAE,IAAI,EAAE,GAAG,0BAA0B,CAAC;IAC5C,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAEhE,OAAO;QACL,GAAG,0BAA0B;QAC7B,GAAG,eAAe;QAClB,MAAM;QACN,MAAM;QACN,SAAS;QACT,SAAS;QACT,UAAU;QACV,WAAW;QACX,cAAc;KACf,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,yBAAyB,6BA8CpC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type CalcValueProps } from '../../ui-kit/Calculator/CalculatorProps';
|
|
2
|
-
import { type CreditCalculatorParamsViewSettings } from './CalculatorCreditContent';
|
|
3
|
-
import { type CreditCalculatorSourceBookRateParams, type CreditCalculatorUserInputParams } from './getCreditCalculatorParams';
|
|
2
|
+
import { type CreditCalculatorParamsViewSettings, type CreditCalculatorSourceBookRateParams, type CreditCalculatorUserInputParams } from './CalculatorCreditContent';
|
|
4
3
|
interface GetCreditCalculatorRateParamsProps extends CalcValueProps {
|
|
5
4
|
rateRows: CreditCalculatorSourceBookRateParams[];
|
|
6
5
|
userInputParams: CreditCalculatorUserInputParams;
|
|
@@ -2,13 +2,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.getCreditCalculatorRateParams = void 0;
|
|
3
3
|
const rangeHelpers_1 = require("../../ui-kit/Calculator/rangeHelpers");
|
|
4
4
|
const checkCreditSourceBookRowCommonParams_1 = require("./checkCreditSourceBookRowCommonParams");
|
|
5
|
-
const
|
|
5
|
+
const defaultCreditCalculatorParams_1 = require("./defaultCreditCalculatorParams");
|
|
6
6
|
const getCreditCalculatorRateParams = ({ rateRows = [], userInputParams, paramsViewSettings, moneyValue, monthsValue, }) => rateRows?.find((row) => (0, checkCreditSourceBookRowCommonParams_1.checkCreditSourceBookRowCommonParams)({
|
|
7
7
|
row,
|
|
8
8
|
userInputParams,
|
|
9
9
|
paramsViewSettings,
|
|
10
10
|
}) &&
|
|
11
11
|
(0, rangeHelpers_1.checkRangeByKeys)(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
12
|
-
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue, ['minMonths', 'maxMonths'], row)) ||
|
|
12
|
+
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue, ['minMonths', 'maxMonths'], row)) || defaultCreditCalculatorParams_1.DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
13
13
|
exports.getCreditCalculatorRateParams = getCreditCalculatorRateParams;
|
|
14
14
|
//# sourceMappingURL=getCreditCalculatorRateParams.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCreditCalculatorRateParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorRateParams.ts"],"names":[],"mappings":";;AACA,uEAAwE;
|
|
1
|
+
{"version":3,"file":"getCreditCalculatorRateParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorCredit/getCreditCalculatorRateParams.ts"],"names":[],"mappings":";;AACA,uEAAwE;AAMxE,iGAA8F;AAC9F,mFAAmF;AAO5E,MAAM,6BAA6B,GAAG,CAAC,EAC5C,QAAQ,GAAG,EAAE,EACb,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,WAAW,GACwB,EAAE,EAAE,CACvC,QAAQ,EAAE,IAAI,CACZ,CAAC,GAAG,EAAE,EAAE,CACN,IAAA,2EAAoC,EAAC;IACnC,GAAG;IACH,eAAe;IACf,kBAAkB;CACnB,CAAC;IACF,IAAA,+BAAgB,EAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC;IACvD,IAAA,+BAAgB,EAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,CACjE,IAAI,gEAAgC,CAAC;AAhB3B,QAAA,6BAA6B,iCAgBF"}
|
|
@@ -19,7 +19,7 @@ export interface DepositDefaultParams extends CommonDefaultParams {
|
|
|
19
19
|
isRemoteRegistration?: boolean;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* @title Калькулятор
|
|
22
|
+
* @title Калькулятор вкладов
|
|
23
23
|
*/
|
|
24
24
|
export declare type CalculatorDepositContent = UniBlockContent & CommonCalculatorProps & {
|
|
25
25
|
/** @title Настройка отображения радио */
|
|
@@ -9,5 +9,5 @@ const style_1 = require("../../utils/style");
|
|
|
9
9
|
const Headline_1 = require("../Headline/Headline");
|
|
10
10
|
exports.ContactsBlock = (0, uni_jsx_1.JSX)(({ className, contacts, info, version = 'secondary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('flex', className), defaultPadding: "p-6xl", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
|
|
11
11
|
const renderBlocks = (info) => ((0, jsx_runtime_1.jsx)("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index })) }));
|
|
12
|
-
const renderBlocksColumn = ({ column, index }) => column ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-xs opacity-80", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, button?.
|
|
12
|
+
const renderBlocksColumn = ({ column, index }) => column ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-xs opacity-80", children: (0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, button?.text ? (0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { className: "mt-xl", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
|
|
13
13
|
//# sourceMappingURL=ContactsBlock.js.map
|
|
@@ -32,7 +32,7 @@ exports.ContentPage = (0, uni_jsx_1.JSX)(({ className, data = EMPTY_DATA, blocks
|
|
|
32
32
|
}), (0, renderBlockList_1.renderBlocksList)(slots?.[FOOTER_SLOT], { ...options, slotName: FOOTER_SLOT })] })] }), slots?.[STICKY_FOOTER_SLOT]?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "fixed w-full bottom-0 left-0 z-[100]", children: (0, renderBlockList_1.renderBlocksList)(slots?.[STICKY_FOOTER_SLOT], {
|
|
33
33
|
...options,
|
|
34
34
|
slotName: STICKY_FOOTER_SLOT,
|
|
35
|
-
}) })) : null, (0, jsx_runtime_1.jsx)(DialogManager_1.DialogManager, {}), (0, jsx_runtime_1.jsx)(PopupManager_1.PopupManager, {}), (0, jsx_runtime_1.jsx)(CookiePopup_1.CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
35
|
+
}) })) : null, (0, jsx_runtime_1.jsx)(DialogManager_1.DialogManager, {}), (0, jsx_runtime_1.jsx)(PopupManager_1.PopupManager, {}), (0, jsx_runtime_1.jsx)(CookiePopup_1.CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, recommendationLink: { href: '/recommendation', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
36
36
|
});
|
|
37
37
|
Object.assign(exports.ContentPage, {
|
|
38
38
|
childrenTypes: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,yEAAuE;AACvE,uEAAoE;AACpE,iEAA8D;AAC9D,kEAA+D;AAI/D,sEAAmE;AACnE,4EAAyE;AACzE,yEAAsE;AAEtE,6CAA0C;AAS1C,MAAM,WAAW,GAAG,QAAQ,CAAC;AAC7B,MAAM,WAAW,GAAG,QAAQ,CAAC;AAC7B,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAC3C,MAAM,UAAU,GAAG,EAAoB,CAAC;AAE3B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,EAAE,IAAI,GAAG,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,EAAE,EAAE;IACnE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,GAAG,IAAI,CAAC;IACzD,MAAM,mBAAmB,GAAG,IAAA,uBAAU,EAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAE9D,IAAA,iCAAe,GAAE,CAAC;IAElB,MAAM,OAAO,GAAyB;QACpC,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,EAAE;QACzD,cAAc;QACd,cAAc;QACd,MAAM,EAAE,IAAI;KACb,CAAC;IAEF,OAAO,CACL,+CAAiB,IAAI,CAAC,YAAY,IAAI,IAAI,aACxC,qCAAS,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,aACpE,KAAK,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,C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,CAAC,CAAC,CAAC,IAAI,EACR,iCAAK,SAAS,EAAC,8EAA8E,aAC1F,IAAA,+BAAc,EAAC;gCACd,KAAK,EAAE,IAAI;gCACX,OAAO;gCACP,UAAU,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE;6BAC1C,CAAC,EACD,IAAA,kCAAgB,EAAC,KAAK,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,IAC1E,IACE,EACT,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CACrC,gCAAK,SAAS,EAAC,sCAAsC,YAClD,IAAA,kCAAgB,EAAC,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE;oBAC7C,GAAG,OAAO;oBACV,QAAQ,EAAE,kBAAkB;iBAC7B,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,6BAAa,KAAG,EACjB,uBAAC,2BAAY,KAAG,EAChB,uBAAC,yBAAW,IACV,QAAQ,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,EACzD,kBAAkB,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,EACjE,sBAAsB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,GAChE,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,mBAAW,EAAE;IACzB,aAAa,EAAE,EAAE;IACjB,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,kBAAkB,CAAC;CAC5C,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type BlocksRegistry } from '../../model/BlocksRegistry';
|
|
2
1
|
import { type ContentPageDef } from '../../model/ContentPageDef';
|
|
3
2
|
import { type Fallback } from '../../model/Fallback';
|
|
4
|
-
export declare const computeAPIFallback: (
|
|
3
|
+
export declare const computeAPIFallback: (contentPageData: ContentPageDef) => Promise<Fallback>;
|
|
@@ -4,25 +4,11 @@ const json_ref_1 = require("@redneckz/json-ref");
|
|
|
4
4
|
const promises_1 = require("fs/promises");
|
|
5
5
|
const unique_1 = require("../../utils/unique");
|
|
6
6
|
const url_1 = require("../../utils/url");
|
|
7
|
-
const loadModuleFallback_1 = require("./loadModuleFallback");
|
|
8
7
|
const BASE_DIR = 'content';
|
|
9
|
-
const computeAPIFallback = async (
|
|
10
|
-
return Object.fromEntries((await
|
|
11
|
-
computeFallbackFromModules(blocksRegistry),
|
|
12
|
-
computeFallbackFromContentRefs(contentPageData),
|
|
13
|
-
]))
|
|
14
|
-
.flatMap((_) => _)
|
|
15
|
-
.filter(([key, data]) => key && data));
|
|
8
|
+
const computeAPIFallback = async (contentPageData) => {
|
|
9
|
+
return Object.fromEntries((await computeFallbackFromContentRefs(contentPageData)).filter(([key, data]) => key && data));
|
|
16
10
|
};
|
|
17
11
|
exports.computeAPIFallback = computeAPIFallback;
|
|
18
|
-
const computeFallbackFromModules = async (blocksRegistry) => {
|
|
19
|
-
const fallbackMap = (await Promise.all(Object.keys(blocksRegistry).map(loadModuleFallback_1.loadModuleFallback)))
|
|
20
|
-
.filter((_) => Boolean(_))
|
|
21
|
-
.reduce((acc, _) => ({ ...acc, ..._ }), {});
|
|
22
|
-
return (await Promise.allSettled(Object.entries(fallbackMap).map(async ([key, fetcher]) => [key, await fetcher()])))
|
|
23
|
-
.filter((_) => _.status === 'fulfilled')
|
|
24
|
-
.map(({ value }) => value);
|
|
25
|
-
};
|
|
26
12
|
const computeFallbackFromContentRefs = async (contentPageData) => {
|
|
27
13
|
const refs = (0, unique_1.unique)((0, json_ref_1.collectRef)(contentPageData));
|
|
28
14
|
return (await Promise.allSettled(refs.map(async (_) => [_, JSON.parse(await (0, promises_1.readFile)((0, url_1.joinPath)(BASE_DIR, _), 'utf-8'))])))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeAPIFallback.js","sourceRoot":"","sources":["../../../src/components/ContentPage/computeAPIFallback.ts"],"names":[],"mappings":";;AAAA,iDAAgF;AAChF,0CAAuC;
|
|
1
|
+
{"version":3,"file":"computeAPIFallback.js","sourceRoot":"","sources":["../../../src/components/ContentPage/computeAPIFallback.ts"],"names":[],"mappings":";;AAAA,iDAAgF;AAChF,0CAAuC;AAGvC,+CAA4C;AAC5C,yCAA2C;AAI3C,MAAM,QAAQ,GAAG,SAAS,CAAC;AAEpB,MAAM,kBAAkB,GAAG,KAAK,EAAE,eAA+B,EAAqB,EAAE;IAC7F,OAAO,MAAM,CAAC,WAAW,CACvB,CAAC,MAAM,8BAA8B,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,CAAC,CAC7F,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AAEF,MAAM,8BAA8B,GAAG,KAAK,EAC1C,eAA+B,EACL,EAAE;IAC5B,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,IAAA,qBAAU,EAAC,eAA2B,CAAC,CAAC,CAAC;IAE7D,OAAO,CACL,MAAM,OAAO,CAAC,UAAU,CACtB,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,IAAA,mBAAQ,EAAC,IAAA,cAAQ,EAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CACvF,CACF;SACE,MAAM,CAAC,CAAC,CAAC,EAA8C,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC;SACnF,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC;SACzB,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,IAAA,0BAAe,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.Footer = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
5
4
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
5
|
const LinkButton_1 = require("../../ui-kit/LinkButton/LinkButton");
|
|
7
6
|
const Logo_1 = require("../../ui-kit/Logo/Logo");
|
|
8
7
|
const SearchBar_1 = require("../../ui-kit/SearchBar/SearchBar");
|
|
9
8
|
const Sitemap_1 = require("../../ui-kit/Sitemap/Sitemap");
|
|
10
9
|
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
11
|
-
const mapCookie_1 = require("../../utils/mapCookie");
|
|
12
10
|
const style_1 = require("../../utils/style");
|
|
13
11
|
const Contacts_1 = require("./Contacts");
|
|
14
|
-
const cookieReplaceData_1 = require("./cookieReplaceData");
|
|
15
12
|
const HorizontalNavigation_1 = require("./HorizontalNavigation");
|
|
16
13
|
const SocialMedia_1 = require("./SocialMedia");
|
|
17
14
|
const TextInformation_1 = require("./TextInformation");
|
|
@@ -20,12 +17,8 @@ exports.Footer = (0, UniBlock_1.UniBlock)(({ className, footer, ...rest }) => {
|
|
|
20
17
|
const sitemap = rest.options?.page?.sitemap ?? {};
|
|
21
18
|
const { logo } = sitemap;
|
|
22
19
|
const { dataFooter, ...logoProps } = logo ?? {};
|
|
23
|
-
const { documents, relatedEnterprises, contacts, mediaLinks = [], feedbackButton,
|
|
24
|
-
const handleOnClick = (0, hooks_1.useCallback)(() => {
|
|
25
|
-
const [name, oldValue, newValue] = cookieReplaceData_1.COOKIE_REPLACE;
|
|
26
|
-
(0, mapCookie_1.mapCookie)(name, (value) => value?.replace(oldValue, newValue));
|
|
27
|
-
}, []);
|
|
20
|
+
const { documents, relatedEnterprises, contacts, mediaLinks = [], feedbackButton, license, otherLinks = [], } = footer ?? {};
|
|
28
21
|
const linkStyle = '!text-left text-s font-light';
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: (0, style_1.style)('space-y-xl', className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-3xl", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: LEFT_COL_WIDTH, logo: logoProps, data: dataFooter }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { className: "grow", ...sitemap })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center @lg:items-stretch gap-6xl flex-col @lg:flex-row", children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { items: contacts }), feedbackButton ? ((0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: _?.links ?? [], showButtonText: false, children: _?.title }, String(i)))),
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: (0, style_1.style)('space-y-xl', className), ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-3xl", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: LEFT_COL_WIDTH, logo: logoProps, data: dataFooter }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { className: "grow", ...sitemap })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center @lg:items-stretch gap-6xl flex-col @lg:flex-row", children: [(0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { items: contacts }), feedbackButton ? ((0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: _?.links ?? [], showButtonText: false, children: _?.title }, String(i)))), otherLinks.map((_, i) => ((0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { className: linkStyle, version: "link", ..._, children: _?.text }, String(i))))] }), (0, jsx_runtime_1.jsx)(Sitemap_1.Sitemap, { className: "flex-grow flex-wrap", ...sitemap })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, license: license })] }));
|
|
30
23
|
});
|
|
31
24
|
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,4DAAyD;AACzD,mEAAgE;AAChE,iDAA8C;AAC9C,gEAA6D;AAC7D,0DAAuD;AACvD,sDAAmD;AACnD,6CAA0C;AAC1C,yCAAsC;AAEtC,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAM,cAAc,GAAG,MAAM,CAAC;AAEjB,QAAA,MAAM,GAAG,IAAA,mBAAQ,EAAc,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC7E,MAAM,OAAO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C,CAAC,CAEb,CACf,CAAC,EACD,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACxB,uBAAC,uBAAU,IAAiB,SAAS,EAAE,SAAS,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC,YACnE,CAAC,EAAE,IAAI,IADO,MAAM,CAAC,CAAC,CAAC,CAEb,CACd,CAAC,IACE,EACN,uBAAC,iBAAO,IAAC,SAAS,EAAC,qBAAqB,KAAK,OAAO,GAAI,IACpD,EACN,uBAAC,2CAAoB,IAAC,KAAK,EAAE,kBAAkB,GAAI,EACnD,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAC1C,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.Footer = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
5
4
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
5
|
const LinkButton_1 = require("../../ui-kit/LinkButton/LinkButton");
|
|
7
6
|
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
8
7
|
const appendSlash_1 = require("../../utils/appendSlash");
|
|
9
|
-
const mapCookie_1 = require("../../utils/mapCookie");
|
|
10
8
|
const style_1 = require("../../utils/style");
|
|
11
9
|
const RollupItem_1 = require("../RollupItem/RollupItem");
|
|
12
10
|
const Contacts_1 = require("./Contacts");
|
|
13
|
-
const cookieReplaceData_1 = require("./cookieReplaceData");
|
|
14
11
|
const HorizontalNavigation_1 = require("./HorizontalNavigation");
|
|
15
|
-
const HorizontalNavigationLink_1 = require("./HorizontalNavigationLink");
|
|
16
12
|
const LinkList_1 = require("./LinkList");
|
|
17
13
|
const SocialMedia_1 = require("./SocialMedia");
|
|
18
14
|
const TextInformation_1 = require("./TextInformation");
|
|
@@ -20,11 +16,7 @@ const borderStyle = 'border-t border-main-divider';
|
|
|
20
16
|
exports.Footer = (0, UniBlock_1.UniBlock)(({ className, footer, ...rest }) => {
|
|
21
17
|
const { topItems } = rest.options?.page?.sitemap ?? {};
|
|
22
18
|
const { relatedEnterprises, contacts, mediaLinks = [], horizontalNavigationTitle, documents, feedbackButton, license, } = footer || {};
|
|
23
|
-
|
|
24
|
-
const [name, oldValue, newValue] = cookieReplaceData_1.COOKIE_REPLACE;
|
|
25
|
-
(0, mapCookie_1.mapCookie)(name, (value) => value?.replace(oldValue, newValue));
|
|
26
|
-
}, []);
|
|
27
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: (0, style_1.style)('space-y-lg', className), defaultPadding: "p-4xl pb-24", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { role: "menu", children: renderTopItems(topItems) }), (0, jsx_runtime_1.jsx)("div", { className: borderStyle }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), feedbackButton ? ((0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: _?.links ?? [], stretched: true, showButtonText: false, children: _?.title }, String(i)))), (0, jsx_runtime_1.jsx)("div", { className: borderStyle }), (0, jsx_runtime_1.jsx)(HorizontalNavigationLink_1.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 }), (0, jsx_runtime_1.jsx)("div", { className: borderStyle }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)("div", { className: borderStyle }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, license: license })] }));
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: (0, style_1.style)('space-y-lg', className), defaultPadding: "p-4xl pb-24", ...rest, children: [(0, jsx_runtime_1.jsx)("div", { role: "menu", children: renderTopItems(topItems) }), (0, jsx_runtime_1.jsx)("div", { className: borderStyle }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), feedbackButton ? ((0, jsx_runtime_1.jsx)(LinkButton_1.LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: _?.links ?? [], stretched: true, showButtonText: false, children: _?.title }, String(i)))), (0, jsx_runtime_1.jsx)("div", { className: borderStyle }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)("div", { className: borderStyle }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, license: license })] }));
|
|
28
20
|
});
|
|
29
21
|
const renderTopItems = (topItems) => topItems
|
|
30
22
|
?.filter((_) => _.icon?.icon)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Footer.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"],"names":[],"mappings":";;;AACA,4DAAyD;AACzD,mEAAgE;AAChE,sDAAmD;AACnD,yDAAsD;AACtD,6CAA0C;AAC1C,yDAAsD;AACtD,yCAAsC;AAEtC,iEA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,uBAAC,2CAAoB,IAAC,KAAK,EAAE,yBAAyB,EAAE,KAAK,EAAE,kBAAkB,GAAI,EACrF,gCAAK,SAAS,EAAE,WAAW,GAAI,EAC/B,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAI,IAC1C,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,QAAwC,EAAE,EAAE,CAClE,QAAQ;IACN,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC;KAC5B,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAChB,uBAAC,uBAAU,IAET,iBAAiB,EAAC,WAAW,EAC7B,KAAK,EAAE,IAAI,EAAE,IAAI,EACjB,SAAS,EAAE,IAAI,EAAE,IAAI,EACrB,IAAI,EAAC,UAAU,YAEd,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,uBAAC,mBAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAA,yBAAW,EAAC,IAAI,CAAC,IAAI,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,IANjF,MAAM,CAAC,CAAC,CAAC,CAOH,CACd,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ const List_1 = require("../../ui-kit/List/List");
|
|
|
10
10
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
11
11
|
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
12
12
|
const style_1 = require("../../utils/style");
|
|
13
|
-
exports.MobileAppTile = (0, UniBlock_1.UniBlock)(({ className, padding, align = 'text-left', buttons = [], description, image, items,
|
|
13
|
+
exports.MobileAppTile = (0, UniBlock_1.UniBlock)(({ className, padding, align = 'text-left', buttons = [], description, image, items, headingType, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
14
14
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
15
15
|
const img = image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden lg:block", image: image }) : null;
|
|
16
16
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('min-h-80', className), padding: "p-0", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: (0, style_1.style)('whitespace-pre-wrap', align) }), rightImage: img, buttons: (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'flex-wrap' }), children: [description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [(0, jsx_runtime_1.jsx)(List_1.List, { items: items, listItemSize: "M" }), (0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }), qr?.src ? ((0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-fit", image: qr }) })) : null, image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,6DAA0D;AAC1D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uFAAoF;AACpF,iDAA8C;AAC9C,iDAA8C;AAC9C,sDAAmD;AAEnD,6CAA0C;AAI7B,QAAA,aAAa,GAAG,IAAA,mBAAQ,EACnC,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,GAAG,WAAW,EACnB,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,KAAK,EACL,KAAK,EACL,EAAE,EACF,
|
|
1
|
+
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";;;AAAA,6DAA0D;AAC1D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uFAAoF;AACpF,iDAA8C;AAC9C,iDAA8C;AAC9C,sDAAmD;AAEnD,6CAA0C;AAI7B,QAAA,aAAa,GAAG,IAAA,mBAAQ,EACnC,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,GAAG,WAAW,EACnB,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,KAAK,EACL,KAAK,EACL,WAAW,EACX,EAAE,EACF,qBAAqB,GAAG,EAAE,EAC1B,KAAK,GAAG,sBAAsB,EAC9B,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,cAAc,GAAG,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC;IAE7E,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IAElF,OAAO,CACL,uBAAC,2BAAY,IACX,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,SAAS,CAAC,EACvC,OAAO,EAAC,KAAK,EACb,OAAO,EAAE,OAAO,KACZ,IAAI,YAER,wBAAC,mBAAQ,IACP,SAAS,EAAC,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,cAAc,EAAC,OAAO,EACtB,KAAK,EACH,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,KAAK,CAAC,GAC9C,EAEJ,UAAU,EAAE,GAAG,EACf,OAAO,EAAE,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,aAEjE,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,iBAAa,YAAY,YAC1C,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,EACR,iCACE,SAAS,EAAE,IAAA,aAAK,EACd,OAAO,EACP,sBAAsB,EACtB,oDAAoD,CACrD,aAED,uBAAC,WAAI,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,GAAG,GAAG,EACvC,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,iBAAa,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACrE,qBAAqB,GACjB,EACN,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CACT,gCACE,SAAS,EAAE,IAAA,aAAK,EACd,sDAAsD,EACtD,cAAc,CACf,YAED,uBAAC,SAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,IAC5D,IACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AdditionalDescriptionProps, type
|
|
1
|
+
import { type AdditionalDescriptionProps, type HeadlineCommonProps } from '../../model/HeadlineType';
|
|
2
2
|
import { type Picture } from '../../model/Picture';
|
|
3
3
|
import { type HeadingType } from '../../ui-kit/Heading/HeadingProps';
|
|
4
4
|
import { type ImageContent } from '../../ui-kit/Img/ImgProps';
|
|
@@ -8,7 +8,7 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
|
8
8
|
/**
|
|
9
9
|
* @title Мобильное приложение
|
|
10
10
|
*/
|
|
11
|
-
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps &
|
|
11
|
+
export declare type MobileAppTileContent = UniBlockContent & AdditionalDescriptionProps & HeadlineCommonProps & ButtonsSectionContent & ListContent & ImageContent & {
|
|
12
12
|
/** @title QR-код */
|
|
13
13
|
qr?: Picture;
|
|
14
14
|
headingType?: HeadingType;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { type VNode } from '../../model/VNode';
|
|
2
2
|
import { type AtmsDef } from './OfficesAtmsMapContent';
|
|
3
|
-
import { type Atm, type Branch } from './OfficesAtmsMapProps';
|
|
3
|
+
import { type Atm, type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
4
4
|
import { type BalloonContent } from './YandexMapProps';
|
|
5
5
|
export declare type InitFilterState = Record<string, boolean>;
|
|
6
6
|
export interface OfficesAtmsMapLayoutProps<T> {
|
|
7
7
|
className?: string;
|
|
8
8
|
data?: T[];
|
|
9
|
+
remoteWorkplaces?: T[];
|
|
9
10
|
renderCard?: (item: T, index: number) => VNode;
|
|
11
|
+
renderRemoteWorkplaceCard?: (item: T, index: number) => VNode;
|
|
10
12
|
filterItems?: (data: T[], filtrationState: InitFilterState) => T[];
|
|
11
13
|
getBalloon?: (item: T) => BalloonContent;
|
|
14
|
+
getBalloonRemoteWorkplaces?: (item: T) => BalloonContent;
|
|
12
15
|
initFilterState?: InitFilterState;
|
|
13
16
|
descriptionData?: AtmsDef;
|
|
14
17
|
title?: string;
|
|
15
18
|
}
|
|
16
|
-
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Branch | Atm>, any, any>;
|
|
19
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Branch | RemoteWorkplace | Atm>, any, any>;
|
|
@@ -7,44 +7,54 @@ const useForm_1 = require("../../hooks/useForm");
|
|
|
7
7
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
8
8
|
const ClientOnly_1 = require("../../ui-kit/ClientOnly");
|
|
9
9
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
10
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
11
|
-
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
12
10
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
13
11
|
const YandexMap_1 = require("../../ui-kit/YandexMap/YandexMap");
|
|
12
|
+
const getVersion_1 = require("../../utils/getVersion");
|
|
14
13
|
const style_1 = require("../../utils/style");
|
|
14
|
+
const renderDescriptionBlock_1 = require("./renderDescriptionBlock");
|
|
15
15
|
const renderFiltrationForm_1 = require("./renderFiltrationForm");
|
|
16
16
|
const defaultEmptyFunction = () => void 0;
|
|
17
17
|
const defaultFilterItems = () => [];
|
|
18
18
|
const filtersVisibleStyles = (activeButton) => activeButton === 'all' ? 'block' : 'hidden';
|
|
19
|
-
exports.OfficesAtmsMapLayout = (0, uni_jsx_1.JSX)(({ className, data = [], renderCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
|
|
19
|
+
exports.OfficesAtmsMapLayout = (0, uni_jsx_1.JSX)(({ className, data = [], remoteWorkplaces = [], renderCard = defaultEmptyFunction, renderRemoteWorkplaceCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, getBalloonRemoteWorkplaces = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
|
|
20
20
|
const onlyOffice = title?.includes('Офис');
|
|
21
21
|
const [filtrationState, { field, reset }] = (0, useForm_1.useForm)(initFilterState);
|
|
22
|
-
const [filteredItems, points, lengthItems] = (0, hooks_1.useMemo)(() => {
|
|
22
|
+
const [filteredItems, points, filteredRemoteWorkplaces, lengthItems] = (0, hooks_1.useMemo)(() => {
|
|
23
23
|
const _filteredItems = filterItems(data, filtrationState);
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
const _filteredRemoteWorkplaces = filterItems(remoteWorkplaces, filtrationState);
|
|
25
|
+
const _points = [
|
|
26
|
+
..._filteredItems.map((_) => ({
|
|
27
|
+
type: 'offices',
|
|
28
|
+
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
29
|
+
content: getBalloon(_),
|
|
30
|
+
})),
|
|
31
|
+
..._filteredRemoteWorkplaces.map((_) => ({
|
|
32
|
+
type: 'workplaces',
|
|
33
|
+
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
34
|
+
content: getBalloonRemoteWorkplaces({
|
|
35
|
+
address: _.address,
|
|
36
|
+
workScheduleDescription: _.workScheduleDescription,
|
|
37
|
+
}),
|
|
38
|
+
})),
|
|
39
|
+
].filter((_) => _.coords && _.coords.length === 2);
|
|
40
|
+
const itemsLength = _filteredItems.length + _filteredRemoteWorkplaces?.length;
|
|
41
|
+
return [_filteredItems, _points, _filteredRemoteWorkplaces, itemsLength];
|
|
42
|
+
}, [data, remoteWorkplaces, filtrationState]);
|
|
32
43
|
const [activeButton, setActiveButton] = (0, hooks_1.useState)('all');
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('space-y-1', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "p-6xl pb-0", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: (0, jsx_runtime_1.jsxs)(Heading_1.Heading, { headingType: "h2", children: [title, lengthItems ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: ` (${lengthItems})` })) : null] }) }), descriptionData ? renderDescriptionBlock(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('pb-2xl', filtersVisibleStyles(activeButton)), children: (0, renderFiltrationForm_1.renderFiltrationForm)(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('space-y-1', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "bg-white", children: [(0, jsx_runtime_1.jsxs)("div", { className: "p-6xl pb-0", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: (0, jsx_runtime_1.jsxs)(Heading_1.Heading, { headingType: "h2", children: [title, lengthItems ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h2", color: "text-secondary-text", children: ` (${lengthItems})` })) : null] }) }), descriptionData ? (0, renderDescriptionBlock_1.renderDescriptionBlock)(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('pb-2xl', filtersVisibleStyles(activeButton)), children: (0, renderFiltrationForm_1.renderFiltrationForm)(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), (0, jsx_runtime_1.jsx)("div", { className: "h-[600px]", children: (0, jsx_runtime_1.jsx)(ClientOnly_1.ClientOnly, { children: (0, jsx_runtime_1.jsx)(YandexMap_1.YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] }));
|
|
34
45
|
});
|
|
35
|
-
const renderButtonsGroup = (data, activeButton,
|
|
36
|
-
const allButtonVersion = activeButton === 'all'
|
|
37
|
-
const businessButtonVersion = activeButton === 'business'
|
|
38
|
-
const
|
|
46
|
+
const renderButtonsGroup = (data, activeButton, onButtonClick) => {
|
|
47
|
+
const allButtonVersion = (0, getVersion_1.getVersion)(activeButton === 'all');
|
|
48
|
+
const businessButtonVersion = (0, getVersion_1.getVersion)(activeButton === 'business');
|
|
49
|
+
const handleClick = (e, key, branches) => {
|
|
39
50
|
if (e.currentTarget === e.target && key === 'business') {
|
|
40
51
|
branches.filter((branch) => branch.workSchedule &&
|
|
41
52
|
branch.workSchedule.businessScheduleVisibleTag &&
|
|
42
53
|
!branch.workSchedule.businessScheduleDescription);
|
|
43
54
|
}
|
|
44
|
-
|
|
55
|
+
onButtonClick(key);
|
|
45
56
|
return branches;
|
|
46
57
|
};
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { "data-id": "all", onClick: (e) =>
|
|
58
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [(0, jsx_runtime_1.jsx)(Button_1.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" }), (0, jsx_runtime_1.jsx)(Button_1.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" })] }));
|
|
48
59
|
};
|
|
49
|
-
const renderDescriptionBlock = ({ __html, list }) => __html || list?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-2xl", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
50
60
|
//# sourceMappingURL=OfficesAtmsMapLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficesAtmsMapLayout.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAgE;AAChE,iDAA8C;AAE9C,uDAAoD;AACpD,wDAAqD;AACrD,0DAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMapLayout.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAgE;AAChE,iDAA8C;AAE9C,uDAAoD;AACpD,wDAAqD;AACrD,0DAAuD;AACvD,iDAA8C;AAC9C,gEAA6D;AAC7D,uDAAoD;AACpD,6CAA0C;AAG1C,qEAAkE;AAClE,iEAA8D;AAG9D,MAAM,oBAAoB,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AAC1C,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC;AAkBpC,MAAM,oBAAoB,GAAG,CAAC,YAAoB,EAAE,EAAE,CACpD,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AAEjC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W,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,gBAAgB,mHAEnF,EACT,uBAAC,eAAM,eACG,UAAU,EAClB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,EAChD,OAAO,EAAE,qBAAqB,yHAGvB,IACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -74,6 +74,21 @@ export interface Branch {
|
|
|
74
74
|
preciousMetalsOperations?: false;
|
|
75
75
|
transferringDataToBiometricSystem?: false;
|
|
76
76
|
}
|
|
77
|
+
export interface RemoteWorkplace {
|
|
78
|
+
id?: number;
|
|
79
|
+
region?: {
|
|
80
|
+
id?: number;
|
|
81
|
+
code?: string;
|
|
82
|
+
name?: string;
|
|
83
|
+
slug?: string;
|
|
84
|
+
};
|
|
85
|
+
landmark?: string;
|
|
86
|
+
workScheduleDescription?: string;
|
|
87
|
+
description?: string;
|
|
88
|
+
gpsLatitude?: number;
|
|
89
|
+
gpsLongitude?: number;
|
|
90
|
+
address?: string;
|
|
91
|
+
}
|
|
77
92
|
export interface Atm {
|
|
78
93
|
location?: string;
|
|
79
94
|
address?: string;
|
|
@@ -5,11 +5,13 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const useLocation_1 = require("../../hooks/useLocation");
|
|
6
6
|
const OfficesAtmsMapLayout_1 = require("./OfficesAtmsMapLayout");
|
|
7
7
|
const renderOfficeCard_1 = require("./renderOfficeCard");
|
|
8
|
+
const renderRemoteWorkplaceCard_1 = require("./renderRemoteWorkplaceCard");
|
|
8
9
|
const useOffices_1 = require("./useOffices");
|
|
9
10
|
const INITIAL_FILTRATION_STATE = {
|
|
10
11
|
workingSaturday: false,
|
|
11
12
|
premiumService: false,
|
|
12
13
|
privateBanking: false,
|
|
14
|
+
remoteWorkplace: false,
|
|
13
15
|
sellingCoins: false,
|
|
14
16
|
buyingCoins: false,
|
|
15
17
|
bullionOperations: false,
|
|
@@ -17,20 +19,21 @@ const INITIAL_FILTRATION_STATE = {
|
|
|
17
19
|
transferringDataToBiometricSystem: false,
|
|
18
20
|
};
|
|
19
21
|
const FILTRATION_PREDICATES = {
|
|
20
|
-
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
21
|
-
premiumService: (item) => Boolean(item.premiumService),
|
|
22
|
-
privateBanking: (item) => Boolean(item.privateBanking),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
workingSaturday: (item) => Boolean('workSchedule' in item && item.workSchedule?.workingSaturday),
|
|
23
|
+
premiumService: (item) => Boolean('premiumService' in item && item.premiumService),
|
|
24
|
+
privateBanking: (item) => Boolean('privateBanking' in item && item.privateBanking),
|
|
25
|
+
remoteWorkplace: (item) => Boolean('workScheduleDescription' in item),
|
|
26
|
+
sellingCoins: (item) => Boolean('sellingCoins' in item && item.sellingCoins),
|
|
27
|
+
buyingCoins: (item) => Boolean('buyingCoins' in item && item.buyingCoins),
|
|
28
|
+
bullionOperations: (item) => Boolean('bullionOperations' in item && item.bullionOperations),
|
|
29
|
+
preciousMetalsOperations: (item) => Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
|
|
30
|
+
transferringDataToBiometricSystem: (item) => Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
|
|
28
31
|
};
|
|
29
32
|
exports.OfficesMap = (0, uni_jsx_1.JSX)(({ className }) => {
|
|
30
33
|
const [currentLocation] = (0, useLocation_1.useLocation)();
|
|
31
34
|
const regionCode = currentLocation?.code ?? '000';
|
|
32
35
|
const officesData = (0, useOffices_1.useOffices)(regionCode);
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(OfficesAtmsMapLayout_1.OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard_1.renderOfficeCard, getBalloon: renderOfficeCard_1.getOfficePoint, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(OfficesAtmsMapLayout_1.OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData[0]?.branches, remoteWorkplaces: officesData[0]?.remoteWorkplaces, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard_1.renderOfficeCard, renderRemoteWorkplaceCard: renderRemoteWorkplaceCard_1.renderRemoteWorkplaceCard, getBalloon: renderOfficeCard_1.getOfficePoint, getBalloonRemoteWorkplaces: renderRemoteWorkplaceCard_1.getRemoteWorkplacePoint, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
34
37
|
});
|
|
35
38
|
const filterItems = (data, filtrationState) => {
|
|
36
39
|
const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficesMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AACtD,iEAA8D;AAE9D,yDAAsE;AACtE,6CAA0C;AAE1C,MAAM,wBAAwB,GAAG;IAC/B,eAAe,EAAE,KAAK;IACtB,cAAc,EAAE,KAAK;IACrB,cAAc,EAAE,KAAK;IACrB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,iBAAiB,EAAE,KAAK;IACxB,wBAAwB,EAAE,KAAK;IAC/B,iCAAiC,EAAE,KAAK;CACzC,CAAC;AAEF,MAAM,qBAAqB,GAAG;IAC5B,eAAe,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"OfficesMap.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AACtD,iEAA8D;AAE9D,yDAAsE;AACtE,2EAAiG;AACjG,6CAA0C;AAE1C,MAAM,wBAAwB,GAA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|
2
|
+
exports.renderDescriptionBlock = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
|
+
const RichText_1 = require("../../ui-kit/RichText/RichText");
|
|
6
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
7
|
+
const renderDescriptionBlock = ({ __html, list }) => __html || list?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-2xl", children: (0, jsx_runtime_1.jsx)(RichText_1.RichText, { __html: __html }) })) : null, list?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-xs items-center", children: [item?.image ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: item.image }) : null, item?.text ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
8
|
+
exports.renderDescriptionBlock = renderDescriptionBlock;
|
|
9
|
+
//# sourceMappingURL=renderDescriptionBlock.js.map
|