@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":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
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IAC1C,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
2
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
3
|
import { LinkButton } from '../../ui-kit/LinkButton/LinkButton.js';
|
|
5
4
|
import { UniBlock } from '../../UniBlock/UniBlock.js';
|
|
6
5
|
import { appendSlash } from '../../utils/appendSlash.js';
|
|
7
|
-
import { mapCookie } from '../../utils/mapCookie.js';
|
|
8
6
|
import { style } from '../../utils/style.js';
|
|
9
7
|
import { RollupItem } from '../RollupItem/RollupItem.js';
|
|
10
8
|
import { Contacts } from './Contacts.js';
|
|
11
|
-
import { COOKIE_REPLACE } from './cookieReplaceData.js';
|
|
12
9
|
import { HorizontalNavigation } from './HorizontalNavigation.js';
|
|
13
|
-
import { HorizontalNavigationLink } from './HorizontalNavigationLink.js';
|
|
14
10
|
import { LinkList } from './LinkList.js';
|
|
15
11
|
import { SocialMedia } from './SocialMedia.js';
|
|
16
12
|
import { TextInformation } from './TextInformation.js';
|
|
@@ -18,11 +14,7 @@ const borderStyle = 'border-t border-main-divider';
|
|
|
18
14
|
export const Footer = UniBlock(({ className, footer, ...rest }) => {
|
|
19
15
|
const { topItems } = rest.options?.page?.sitemap ?? {};
|
|
20
16
|
const { relatedEnterprises, contacts, mediaLinks = [], horizontalNavigationTitle, documents, feedbackButton, license, } = footer || {};
|
|
21
|
-
|
|
22
|
-
const [name, oldValue, newValue] = COOKIE_REPLACE;
|
|
23
|
-
mapCookie(name, (value) => value?.replace(oldValue, newValue));
|
|
24
|
-
}, []);
|
|
25
|
-
return (_jsxs(BlockWrapper, { tag: "footer", className: style('space-y-lg', className), defaultPadding: "p-4xl pb-24", ...rest, children: [_jsx("div", { role: "menu", children: renderTopItems(topItems) }), _jsx("div", { className: borderStyle }), _jsx(Contacts, { className: "overflow-hidden", items: contacts }), feedbackButton ? (_jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (_jsx(SocialMedia, { media: _?.links ?? [], stretched: true, showButtonText: false, children: _?.title }, String(i)))), _jsx("div", { className: borderStyle }), _jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "flex text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: handleOnClick }), _jsx("div", { className: borderStyle }), _jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), _jsx("div", { className: borderStyle }), _jsx(TextInformation, { links: documents, license: license })] }));
|
|
17
|
+
return (_jsxs(BlockWrapper, { tag: "footer", className: style('space-y-lg', className), defaultPadding: "p-4xl pb-24", ...rest, children: [_jsx("div", { role: "menu", children: renderTopItems(topItems) }), _jsx("div", { className: borderStyle }), _jsx(Contacts, { className: "overflow-hidden", items: contacts }), feedbackButton ? (_jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (_jsx(SocialMedia, { media: _?.links ?? [], stretched: true, showButtonText: false, children: _?.title }, String(i)))), _jsx("div", { className: borderStyle }), _jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), _jsx("div", { className: borderStyle }), _jsx(TextInformation, { links: documents, license: license })] }));
|
|
26
18
|
});
|
|
27
19
|
const renderTopItems = (topItems) => topItems
|
|
28
20
|
?.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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AE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,IANjF,MAAM,CAAC,CAAC,CAAC,CAOH,CACd,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { List } from '../../ui-kit/List/List.js';
|
|
|
8
8
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
9
9
|
import { UniBlock } from '../../UniBlock/UniBlock.js';
|
|
10
10
|
import { style } from '../../utils/style.js';
|
|
11
|
-
export const MobileAppTile = UniBlock(({ className, padding, align = 'text-left', buttons = [], description, image, items,
|
|
11
|
+
export const MobileAppTile = UniBlock(({ className, padding, align = 'text-left', buttons = [], description, image, items, headingType, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
12
12
|
const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
|
|
13
13
|
const img = image?.src ? _jsx(Img, { className: "hidden lg:block", image: image }) : null;
|
|
14
14
|
return (_jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: _jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: _jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) }), rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (_jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, _jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [_jsx(List, { items: items, listItemSize: "M" }), _jsx(Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }), qr?.src ? (_jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: _jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? _jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileAppTile.js","sourceRoot":"","sources":["../../../src/components/MobileAppTile/MobileAppTile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CACnC,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,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,KAAK,EA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EACtB,oDAAoD,CACrD,aAED,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAC,GAAG,GAAG,EACvC,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,iBAAa,YAAY,EAAC,KAAK,EAAC,qBAAqB,YACrE,qBAAqB,GACjB,EACN,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CACT,cACE,SAAS,EAAE,KAAK,CACd,sDAAsD,EACtD,cAAc,CACf,YAED,KAAC,GAAG,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,GAAI,GAChC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,KAAC,GAAG,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<Atm | Branch>, any, any>;
|
|
19
|
+
export declare const OfficesAtmsMapLayout: import("@redneckz/uni-jsx").UNIComponent<OfficesAtmsMapLayoutProps<Atm | Branch | RemoteWorkplace>, any, any>;
|
|
@@ -5,44 +5,54 @@ import { useForm } from '../../hooks/useForm.js';
|
|
|
5
5
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
6
6
|
import { ClientOnly } from '../../ui-kit/ClientOnly.js';
|
|
7
7
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
8
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
9
|
-
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
10
8
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
11
9
|
import { YandexMap } from '../../ui-kit/YandexMap/YandexMap.js';
|
|
10
|
+
import { getVersion } from '../../utils/getVersion.js';
|
|
12
11
|
import { style } from '../../utils/style.js';
|
|
12
|
+
import { renderDescriptionBlock } from './renderDescriptionBlock.js';
|
|
13
13
|
import { renderFiltrationForm } from './renderFiltrationForm.js';
|
|
14
14
|
const defaultEmptyFunction = () => void 0;
|
|
15
15
|
const defaultFilterItems = () => [];
|
|
16
16
|
const filtersVisibleStyles = (activeButton) => activeButton === 'all' ? 'block' : 'hidden';
|
|
17
|
-
export const OfficesAtmsMapLayout = JSX(({ className, data = [], renderCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
|
|
17
|
+
export const OfficesAtmsMapLayout = JSX(({ className, data = [], remoteWorkplaces = [], renderCard = defaultEmptyFunction, renderRemoteWorkplaceCard = defaultEmptyFunction, filterItems = defaultFilterItems, getBalloon = defaultEmptyFunction, getBalloonRemoteWorkplaces = defaultEmptyFunction, initFilterState = {}, descriptionData, title, }) => {
|
|
18
18
|
const onlyOffice = title?.includes('Офис');
|
|
19
19
|
const [filtrationState, { field, reset }] = useForm(initFilterState);
|
|
20
|
-
const [filteredItems, points, lengthItems] = useMemo(() => {
|
|
20
|
+
const [filteredItems, points, filteredRemoteWorkplaces, lengthItems] = useMemo(() => {
|
|
21
21
|
const _filteredItems = filterItems(data, filtrationState);
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
const _filteredRemoteWorkplaces = filterItems(remoteWorkplaces, filtrationState);
|
|
23
|
+
const _points = [
|
|
24
|
+
..._filteredItems.map((_) => ({
|
|
25
|
+
type: 'offices',
|
|
26
|
+
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
27
|
+
content: getBalloon(_),
|
|
28
|
+
})),
|
|
29
|
+
..._filteredRemoteWorkplaces.map((_) => ({
|
|
30
|
+
type: 'workplaces',
|
|
31
|
+
coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
|
|
32
|
+
content: getBalloonRemoteWorkplaces({
|
|
33
|
+
address: _.address,
|
|
34
|
+
workScheduleDescription: _.workScheduleDescription,
|
|
35
|
+
}),
|
|
36
|
+
})),
|
|
37
|
+
].filter((_) => _.coords && _.coords.length === 2);
|
|
38
|
+
const itemsLength = _filteredItems.length + _filteredRemoteWorkplaces?.length;
|
|
39
|
+
return [_filteredItems, _points, _filteredRemoteWorkplaces, itemsLength];
|
|
40
|
+
}, [data, remoteWorkplaces, filtrationState]);
|
|
30
41
|
const [activeButton, setActiveButton] = useState('all');
|
|
31
|
-
return (_jsxs("div", { className: style('space-y-1', className), children: [_jsxs("div", { className: "bg-white", children: [_jsxs("div", { className: "p-6xl pb-0", children: [_jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: _jsxs(Heading, { headingType: "h2", children: [title, lengthItems ? (_jsx(Text, { size: "text-h2", color: "text-secondary-text", children: ` (${lengthItems})` })) : null] }) }), descriptionData ? renderDescriptionBlock(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), _jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), _jsx("div", { className: "h-[600px]", children: _jsx(ClientOnly, { children: _jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
42
|
+
return (_jsxs("div", { className: style('space-y-1', className), children: [_jsxs("div", { className: "bg-white", children: [_jsxs("div", { className: "p-6xl pb-0", children: [_jsx("div", { className: "flex flex-col sm:flex-row gap-xs mb-2xl", children: _jsxs(Heading, { headingType: "h2", children: [title, lengthItems ? (_jsx(Text, { size: "text-h2", color: "text-secondary-text", children: ` (${lengthItems})` })) : null] }) }), descriptionData ? renderDescriptionBlock(descriptionData) : null, onlyOffice && renderButtonsGroup(data, activeButton, setActiveButton), _jsx("div", { className: style('pb-2xl', filtersVisibleStyles(activeButton)), children: renderFiltrationForm(Object.keys(initFilterState), { field, reset }, onlyOffice) })] }), _jsx("div", { className: "h-[600px]", children: _jsx(ClientOnly, { children: _jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard), filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)] }));
|
|
32
43
|
});
|
|
33
|
-
const renderButtonsGroup = (data, activeButton,
|
|
34
|
-
const allButtonVersion = activeButton === 'all'
|
|
35
|
-
const businessButtonVersion = activeButton === 'business'
|
|
36
|
-
const
|
|
44
|
+
const renderButtonsGroup = (data, activeButton, onButtonClick) => {
|
|
45
|
+
const allButtonVersion = getVersion(activeButton === 'all');
|
|
46
|
+
const businessButtonVersion = getVersion(activeButton === 'business');
|
|
47
|
+
const handleClick = (e, key, branches) => {
|
|
37
48
|
if (e.currentTarget === e.target && key === 'business') {
|
|
38
49
|
branches.filter((branch) => branch.workSchedule &&
|
|
39
50
|
branch.workSchedule.businessScheduleVisibleTag &&
|
|
40
51
|
!branch.workSchedule.businessScheduleDescription);
|
|
41
52
|
}
|
|
42
|
-
|
|
53
|
+
onButtonClick(key);
|
|
43
54
|
return branches;
|
|
44
55
|
};
|
|
45
|
-
return (_jsxs("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [_jsx(Button, { "data-id": "all", onClick: (e) =>
|
|
56
|
+
return (_jsxs("div", { className: "flex gap-lg flex-col sm:flex-row pb-lg", children: [_jsx(Button, { "data-id": "all", onClick: (e) => handleClick(e, 'all', data), version: allButtonVersion, children: "\u0414\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" }), _jsx(Button, { "data-id": "business", onClick: (e) => handleClick(e, 'business', data), version: businessButtonVersion, children: "\u0414\u043B\u044F \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446" })] }));
|
|
46
57
|
};
|
|
47
|
-
const renderDescriptionBlock = ({ __html, list }) => __html || list?.length ? (_jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (_jsx("div", { className: "mb-2xl", children: _jsx(RichText, { __html: __html }) })) : null, list?.length ? (_jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (_jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? _jsx(Img, { image: item.image }) : null, item?.text ? (_jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
48
58
|
//# sourceMappingURL=OfficesAtmsMapLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OfficesAtmsMapLayout.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"OfficesAtmsMapLayout.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE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AC,CAAC;IAE5D,MAAM,qBAAqB,GAAG,UAAU,CAAC,YAAY,KAAK,UAAU,CAAC,CAAC;IAEtE,MAAM,WAAW,GAAG,CAAC,CAAM,EAAE,GAAW,EAAE,QAAkB,EAAE,EAAE;QAC9D,IAAI,CAAC,CAAC,aAAa,KAAK,CAAC,CAAC,MAAM,IAAI,GAAG,KAAK,UAAU,EAAE;YACtD,QAAQ,CAAC,MAAM,CACb,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,YAAY;gBACnB,MAAM,CAAC,YAAY,CAAC,0BAA0B;gBAC9C,CAAC,MAAM,CAAC,YAAY,CAAC,2BAA2B,CACnD,CAAC;SACH;QAED,aAAa,CAAC,GAAG,CAAC,CAAC;QAEnB,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO,CACL,eAAK,SAAS,EAAC,wCAAwC,aACrD,KAAC,MAAM,eAAS,KAAK,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,gBAAgB,mHAEnF,EACT,KAAC,MAAM,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;
|
|
@@ -3,11 +3,13 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { useLocation } from '../../hooks/useLocation.js';
|
|
4
4
|
import { OfficesAtmsMapLayout } from './OfficesAtmsMapLayout.js';
|
|
5
5
|
import { getOfficePoint, renderOfficeCard } from './renderOfficeCard.js';
|
|
6
|
+
import { getRemoteWorkplacePoint, renderRemoteWorkplaceCard } from './renderRemoteWorkplaceCard.js';
|
|
6
7
|
import { useOffices } from './useOffices.js';
|
|
7
8
|
const INITIAL_FILTRATION_STATE = {
|
|
8
9
|
workingSaturday: false,
|
|
9
10
|
premiumService: false,
|
|
10
11
|
privateBanking: false,
|
|
12
|
+
remoteWorkplace: false,
|
|
11
13
|
sellingCoins: false,
|
|
12
14
|
buyingCoins: false,
|
|
13
15
|
bullionOperations: false,
|
|
@@ -15,20 +17,21 @@ const INITIAL_FILTRATION_STATE = {
|
|
|
15
17
|
transferringDataToBiometricSystem: false,
|
|
16
18
|
};
|
|
17
19
|
const FILTRATION_PREDICATES = {
|
|
18
|
-
workingSaturday: (item) => Boolean(item.workSchedule?.workingSaturday),
|
|
19
|
-
premiumService: (item) => Boolean(item.premiumService),
|
|
20
|
-
privateBanking: (item) => Boolean(item.privateBanking),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
workingSaturday: (item) => Boolean('workSchedule' in item && item.workSchedule?.workingSaturday),
|
|
21
|
+
premiumService: (item) => Boolean('premiumService' in item && item.premiumService),
|
|
22
|
+
privateBanking: (item) => Boolean('privateBanking' in item && item.privateBanking),
|
|
23
|
+
remoteWorkplace: (item) => Boolean('workScheduleDescription' in item),
|
|
24
|
+
sellingCoins: (item) => Boolean('sellingCoins' in item && item.sellingCoins),
|
|
25
|
+
buyingCoins: (item) => Boolean('buyingCoins' in item && item.buyingCoins),
|
|
26
|
+
bullionOperations: (item) => Boolean('bullionOperations' in item && item.bullionOperations),
|
|
27
|
+
preciousMetalsOperations: (item) => Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
|
|
28
|
+
transferringDataToBiometricSystem: (item) => Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
|
|
26
29
|
};
|
|
27
30
|
export const OfficesMap = JSX(({ className }) => {
|
|
28
31
|
const [currentLocation] = useLocation();
|
|
29
32
|
const regionCode = currentLocation?.code ?? '000';
|
|
30
33
|
const officesData = useOffices(regionCode);
|
|
31
|
-
return (_jsx(OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard, getBalloon: getOfficePoint, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
34
|
+
return (_jsx(OfficesAtmsMapLayout, { className: className, filterItems: filterItems, data: officesData[0]?.branches, remoteWorkplaces: officesData[0]?.remoteWorkplaces, initFilterState: INITIAL_FILTRATION_STATE, renderCard: renderOfficeCard, renderRemoteWorkplaceCard: renderRemoteWorkplaceCard, getBalloon: getOfficePoint, getBalloonRemoteWorkplaces: getRemoteWorkplacePoint, title: `Офисы филиала ${currentLocation?.name}` }));
|
|
32
35
|
});
|
|
33
36
|
const filterItems = (data, filtrationState) => {
|
|
34
37
|
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,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;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E,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,EAC9B,gBAAgB,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAClD,eAAe,EAAE,wBAAwB,EACzC,UAAU,EAAE,gBAAgB,EAC5B,yBAAyB,EAAE,yBAAyB,EACpD,UAAU,EAAE,cAAc,EAC1B,0BAA0B,EAAE,uBAAuB,EACnD,KAAK,EAAE,iBAAiB,eAAe,EAAE,IAAI,EAAE,GAC/C,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,CAClB,IAAkC,EAClC,eAAwC,EACxC,EAAE;IACF,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IAEzF,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { Img } from '../../ui-kit/Img/Img.js';
|
|
3
|
+
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
4
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
5
|
+
export const renderDescriptionBlock = ({ __html, list }) => __html || list?.length ? (_jsxs("div", { className: "mb-2xl border-b sm:border border-main-divider sm:rounded-md", children: [__html ? (_jsx("div", { className: "mb-2xl", children: _jsx(RichText, { __html: __html }) })) : null, list?.length ? (_jsx("div", { className: "flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl", children: list.map((item, i) => (_jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? _jsx(Img, { image: item.image }) : null, item?.text ? (_jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
6
|
+
//# sourceMappingURL=renderDescriptionBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderDescriptionBlock.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderDescriptionBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAW,EAAE,EAAE,CAClE,MAAM,IAAI,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACvB,eAAK,SAAS,EAAC,6DAA6D,aACzE,MAAM,CAAC,CAAC,CAAC,CACR,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,QAAQ,IAAC,MAAM,EAAE,MAAM,GAAI,GACxB,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,cAAK,SAAS,EAAC,gEAAgE,YAC5E,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,eAAqB,SAAS,EAAC,0BAA0B,aACtD,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CACZ,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,YAClC,IAAI,CAAC,IAAI,GACL,CACR,CAAC,CAAC,CAAC,IAAI,KANA,MAAM,CAAC,CAAC,CAAC,CAOb,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -18,10 +18,11 @@ const FILTRATION_LABELS = {
|
|
|
18
18
|
bullionOperations: 'Операции со слитками',
|
|
19
19
|
preciousMetalsOperations: 'Операции с драгоценными металлами',
|
|
20
20
|
transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
|
|
21
|
+
remoteWorkplace: 'Удаленное рабочее место',
|
|
21
22
|
};
|
|
22
23
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
23
24
|
export const renderFiltrationForm = (filters, { field, reset }, onlyOffice) => {
|
|
24
|
-
const visibleFiltersNum =
|
|
25
|
+
const visibleFiltersNum = 4;
|
|
25
26
|
const filtersCheckbox = (filters || []).map((key) => (_jsx(Checkbox, { text: FILTRATION_LABELS[key], ...field(key) }, key)));
|
|
26
27
|
const [visibleFilters, hiddenFilters] = visibleFiltersNum > 0
|
|
27
28
|
? [filtersCheckbox.slice(0, visibleFiltersNum), filtersCheckbox.slice(visibleFiltersNum)]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderFiltrationForm.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderFiltrationForm.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,MAAM,iBAAiB,GAAG;IACxB,kBAAkB,EAAE,s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GAAe,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAE3D,OAAO,CACL,eAAK,SAAS,EAAC,iBAAiB,aAC7B,UAAU,CAAC,CAAC,CAAC,CACZ,KAAC,UAAU,IACT,OAAO,EAAC,aAAa,EACrB,SAAS,EAAC,+BAA+B,EACzC,WAAW,EAAE,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,EAC7E,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAChC,OAAO,EAAE,QAAQ,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,UAAU,IACT,OAAO,EAAC,aAAa,EACrB,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,KAAK,EACd,IAAI,EAAC,uFAAiB,EACtB,WAAW,EAAE,KAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,GAC7D,IACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
2
|
+
export declare const renderRemoteWorkplaceCard: ({ address, workScheduleDescription }: RemoteWorkplace, index: number) => JSX.Element | null;
|
|
3
|
+
export declare const getRemoteWorkplacePoint: ({ address, workScheduleDescription, }: RemoteWorkplace) => {
|
|
4
|
+
header: string;
|
|
5
|
+
body: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { Foldable } from '../../ui-kit/Foldable/Foldable.js';
|
|
3
|
+
import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection.js';
|
|
4
|
+
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
5
|
+
import { Text } from '../../ui-kit/Text/Text.js';
|
|
6
|
+
import { CardCell } from './CardCell.js';
|
|
7
|
+
import { CardRow } from './CardRow.js';
|
|
8
|
+
import { renderFoldButton } from './renderFoldButton.js';
|
|
9
|
+
export const renderRemoteWorkplaceCard = ({ address, workScheduleDescription }, index) => {
|
|
10
|
+
if (!workScheduleDescription) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return (_jsxs("div", { className: "bg-white col-span-12 p-3xl sm:border-green sm:border", children: [_jsx("div", { className: "sm:flex sm:justify-between", children: _jsxs("div", { children: [_jsx(Text, { size: "text-h4", children: "\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u043E\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043C\u0435\u0441\u0442\u043E" }), address ? (_jsxs("div", { className: "flex pb-xl pt-xs gap-2xs", children: [_jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24" }), _jsx(Text, { size: "text-l", children: address })] })) : null] }) }), _jsx("div", { className: "hidden sm:block", children: renderCardContent({
|
|
14
|
+
workScheduleDescription,
|
|
15
|
+
}) }), _jsx(Foldable, { className: "block sm:hidden", renderFoldableSection: ({ isUnfolded }) => {
|
|
16
|
+
return (_jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCardContent({
|
|
17
|
+
workScheduleDescription,
|
|
18
|
+
}) }));
|
|
19
|
+
},
|
|
20
|
+
//** TODO: remove styles with refactoring DefaultFoldButton*/
|
|
21
|
+
renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle }) })] }, String(index)));
|
|
22
|
+
};
|
|
23
|
+
const renderCardContent = ({ workScheduleDescription }) => {
|
|
24
|
+
return (_jsxs("div", { children: [_jsxs(CardRow, { className: "flex", children: [_jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: _jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u043E\u0432, \u0441\u0447\u0435\u0442\u043E\u0432, \u0432\u043A\u043B\u0430\u0434\u043E\u0432" }) }), _jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: _jsx(Text, { children: "\u041E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u043E\u0432\u0441\u043A\u0438\u0445 \u043A\u0430\u0440\u0442" }) }), _jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: _jsx(Text, { children: "\u0418\u043D\u0432\u0435\u0441\u0442\u0438\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u0438 \u043D\u0430\u043A\u043E\u043F\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435" }) }), _jsx(CardCell, { label: "\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0438\u0446", children: _jsx(Text, { children: "\u0411\u0435\u0437\u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0440\u0443\u0431\u043B\u044F\u0445, \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B \u0431\u0435\u0437 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u0441\u0447\u0451\u0442\u0430" }) })] }), _jsx(CardCell, { label: "\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u0431\u043E\u0442\u044B", className: "max-w-none", children: _jsx(Text, { children: workScheduleDescription }) })] }));
|
|
25
|
+
};
|
|
26
|
+
export const getRemoteWorkplacePoint = ({ address = '', workScheduleDescription, }) => {
|
|
27
|
+
const header = 'Удаленное рабочее место';
|
|
28
|
+
const body = `${address} ${workScheduleDescription}`;
|
|
29
|
+
return { header, body };
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=renderRemoteWorkplaceCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRemoteWorkplaceCard.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,EAAE,OAAO,EAAE,uBAAuB,EAAmB,EACrD,KAAa,EACb,EAAE;IACF,IAAI,CAAC,uBAAuB,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,eAAyB,SAAS,EAAC,sDAAsD,aACvF,cAAK,SAAS,EAAC,4BAA4B,YACzC,0BACE,KAAC,IAAI,IAAC,IA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,qJAA6B,YAC3C,KAAC,IAAI,uUAAkE,GAC9D,IACH,EACV,KAAC,QAAQ,IAAC,KAAK,EAAC,qEAAc,EAAC,SAAS,EAAC,YAAY,YACnD,KAAC,IAAI,cAAE,uBAAuB,GAAQ,GAC7B,IACP,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,OAAO,GAAG,EAAE,EACZ,uBAAuB,GACP,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,yBAAyB,CAAC;IACzC,MAAM,IAAI,GAAG,GAAG,OAAO,IAAI,uBAAuB,EAAE,CAAC;IAErD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import { type Branch } from './OfficesAtmsMapProps';
|
|
2
|
-
export declare function useOffices(regionCode?: string):
|
|
1
|
+
import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
|
|
2
|
+
export declare function useOffices(regionCode?: string): {
|
|
3
|
+
branches: Branch[];
|
|
4
|
+
remoteWorkplaces: RemoteWorkplace[];
|
|
5
|
+
}[];
|
|
@@ -2,11 +2,13 @@ import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
|
2
2
|
import { fetchJSON } from '../../utils/fetchJSON.js';
|
|
3
3
|
const EMPTY_VALUE = [];
|
|
4
4
|
export function useOffices(regionCode) {
|
|
5
|
-
const { data = EMPTY_VALUE } = useAsyncData(`/api/v1/
|
|
5
|
+
const { data = EMPTY_VALUE } = useAsyncData(`/api/v1/branchesAndRemoteWorkplaces?regionCode=${regionCode}`, fetchMap);
|
|
6
6
|
return data;
|
|
7
7
|
}
|
|
8
8
|
const fetchMap = async (url) => {
|
|
9
|
-
const result = await fetchJSON(url, {
|
|
9
|
+
const result = await fetchJSON(url, {
|
|
10
|
+
method: 'GET',
|
|
11
|
+
});
|
|
10
12
|
return Array.isArray(result) ? result : EMPTY_VALUE;
|
|
11
13
|
};
|
|
12
14
|
//# sourceMappingURL=useOffices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOffices.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/useOffices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,MAAM,UAAU,UAAU,CAAC,UAAmB;IAC5C,MAAM,EAAE,IAAI,GAAG,WAAW,EAAE,GAAG,YAAY,CACzC
|
|
1
|
+
{"version":3,"file":"useOffices.js","sourceRoot":"","sources":["../../../src/components/OfficesAtmsMap/useOffices.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGlD,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,MAAM,UAAU,UAAU,CAAC,UAAmB;IAC5C,MAAM,EAAE,IAAI,GAAG,WAAW,EAAE,GAAG,YAAY,CACzC,kDAAkD,UAAU,EAAE,EAC9D,QAAQ,CACT,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,QAAQ,GAAG,KAAK,EACpB,GAAW,EAC6D,EAAE;IAC1E,MAAM,MAAM,GAAG,MAAM,SAAS,CAC5B,GAAG,EACH;QACE,MAAM,EAAE,KAAK;KACd,CACF,CAAC;IAEF,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC;AACtD,CAAC,CAAC"}
|
|
@@ -2,4 +2,4 @@ import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
|
2
2
|
import { type ProductGalleryContent } from './ProductGalleryContent';
|
|
3
3
|
export interface ProductGalleryProps extends ProductGalleryContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const ProductGallery: import("
|
|
5
|
+
export declare const ProductGallery: import("../../UniBlock/UniBlock").UniBlockComponent<ProductGalleryProps>;
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
2
|
import { useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
3
|
import { BaseProductTile } from '../../ui-kit/BaseProductTile/BaseProductTile.js';
|
|
5
4
|
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
5
|
+
import { ScrollLeftButton, ScrollRightButton } from '../../ui-kit/LinkButton/ArrowButton.js';
|
|
6
|
+
import { SwipeListContainer } from '../../ui-kit/SwipeListControl/SwipeListContainer.js';
|
|
7
|
+
import { useSwipeListScroll } from '../../ui-kit/SwipeListControl/useSwipeListScroll.js';
|
|
8
|
+
import { UniBlock } from '../../UniBlock/UniBlock.js';
|
|
6
9
|
import { style } from '../../utils/style.js';
|
|
7
|
-
|
|
10
|
+
const scrollButtonStyle = 'hidden sm:flex absolute z-40 top-10';
|
|
11
|
+
export const ProductGallery = UniBlock(({ className = '', padding, slides = [], ...rest }) => {
|
|
8
12
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
9
|
-
|
|
13
|
+
const [containerRef, scroll] = useSwipeListScroll({
|
|
14
|
+
itemCount: slides?.length || 0,
|
|
15
|
+
});
|
|
16
|
+
return (_jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "pt-6xl", padding: padding, ...rest, children: [_jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (_jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: _jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "M", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), _jsxs("div", { className: "relative pr-xs mt-m -mb-m flex gap-xs box-border", children: [_jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, itemClassName: 'h-40 flex items-stretch w-screen', gap: 8, children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) }), scroll.canScrollLeft ? (_jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (_jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle), onClick: scroll.scrollRight })) : null] })] }));
|
|
10
17
|
});
|
|
11
18
|
const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
|
|
12
19
|
const isActive = i === activeSlideIndex;
|
|
13
20
|
const btnClassName = isActive
|
|
14
21
|
? 'min-w-[350px] bg-white shadow-dark-blue border-none p-6'
|
|
15
|
-
: 'min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:
|
|
22
|
+
: 'min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur';
|
|
16
23
|
const btnTitleClassName = isActive
|
|
17
24
|
? 'text-primary-text text-h6 py-xs'
|
|
18
25
|
: 'text-l pb-2xs text-secondary-text group-data-secondary:text-white';
|
|
19
26
|
const btnDescClassName = isActive
|
|
20
27
|
? 'text-secondary-text text-l font-light'
|
|
21
28
|
: 'text-secondary-text text-m font-light group-data-secondary:text-white/80';
|
|
22
|
-
return (_jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50', btnClassName), children: [_jsx("div", { className: btnTitleClassName, children: nav?.title }), _jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
|
|
29
|
+
return (_jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('max-h-28 mt-xs ml-xs relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50 whitespace-nowrap', btnClassName), children: [_jsx("div", { className: btnTitleClassName, children: nav?.title }), _jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
|
|
23
30
|
};
|
|
24
31
|
//# sourceMappingURL=ProductGallery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ProductGallery.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGallery.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,MAAM,iBAAiB,GAAG,qCAAqC,CAAC;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACpD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE5D,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,kBAAkB,CAAiB;QAChE,SA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AAC,SAAS,EAAE,iBAAiB,CAAC,EAC9C,OAAO,EAAE,MAAM,CAAC,WAAW,GAC3B,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAOF,MAAM,eAAe,GACnB,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAkB,EAAE,EAAE,CAClD,CAAC,EAAE,GAAG,EAAgB,EAAE,CAAS,EAAE,EAAE;IACnC,MAAM,QAAQ,GAAG,CAAC,KAAK,gBAAgB,CAAC;IACxC,MAAM,YAAY,GAAG,QAAQ;QAC3B,CAAC,CAAC,yDAAyD;QAC3D,CAAC,CAAC,2EAA2E,CAAC;IAChF,MAAM,iBAAiB,GAAG,QAAQ;QAChC,CAAC,CAAC,iCAAiC;QACnC,CAAC,CAAC,mEAAmE,CAAC;IACxE,MAAM,gBAAgB,GAAG,QAAQ;QAC/B,CAAC,CAAC,uCAAuC;QACzC,CAAC,CAAC,0EAA0E,CAAC;IAE/E,OAAO,CACL,kBACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,gBACb,GAAG,EAAE,KAAK,EACtB,SAAS,EAAE,KAAK,CACd,iKAAiK,EACjK,YAAY,CACb,aAED,cAAK,SAAS,EAAE,iBAAiB,YAAG,GAAG,EAAE,KAAK,GAAO,EACrD,cAAK,SAAS,EAAE,gBAAgB,YAAG,GAAG,EAAE,WAAW,GAAO,KATrD,MAAM,CAAC,CAAC,CAAC,CAUP,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { useLocation } from '../../hooks/useLocation.js';
|
|
4
5
|
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
6
|
import { useLocationDialog } from '../../ui-kit/LocationDialog/useLocationDialog.js';
|
|
6
7
|
import { StickyBottomMenuDialog } from './StickyBottomMenuDialog.js';
|
|
7
8
|
export const BurgerMenuDialog = JSX(({ menuRef, menuItem, locationDialogProps, closeAll }) => {
|
|
8
9
|
const locationDialog = useLocationDialog(locationDialogProps || {});
|
|
10
|
+
const [{ name: location }] = useLocation();
|
|
9
11
|
const menuDimensions = menuRef?.current?.getBoundingClientRect();
|
|
10
12
|
const handleIframeLoad = useCallback(() => {
|
|
11
13
|
const iframeWindow = globalThis?.frames['burger-menu-iframe'];
|
|
12
14
|
const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
|
|
13
15
|
ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
|
|
14
16
|
const [, basePath] = globalThis?.location?.pathname?.split('/') || [];
|
|
15
|
-
iframeWindow.postMessage(basePath, '*');
|
|
17
|
+
iframeWindow.postMessage({ type: 'currentTab', data: basePath }, '*');
|
|
18
|
+
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
16
19
|
}, []);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
const iframeWindow = globalThis.frames['burger-menu-iframe'];
|
|
22
|
+
iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
|
|
23
|
+
}, [location]);
|
|
17
24
|
useEffect(() => {
|
|
18
25
|
const onMessage = (e) => {
|
|
19
26
|
if (e.data.type === 'location') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BurgerMenuDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/BurgerMenuDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAIrE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAA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EAAE,KAAK,GAAI,GACvC,YAGR,cAAK,SAAS,EAAC,4BAA4B,YACzC,iBACE,EAAE,EAAC,eAAe,EAClB,IAAI,EAAC,oBAAoB,EACzB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,QAAQ,EAAE,GAAG,EAClB,KAAK,EAAE,cAAc,EAAE,KAAK,IAAI,CAAC,GACjC,GACE,GACiB,CAC1B,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import '../../setup-fixture';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
default: JSX.Element;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
animated: JSX.Element;
|
|
6
|
+
underlined: JSX.Element;
|
|
7
|
+
animatedIcons: JSX.Element;
|
|
8
|
+
defaultCounter: JSX.Element;
|
|
8
9
|
};
|
|
9
10
|
export default _default;
|