@redneckz/wildless-cms-uni-blocks 0.6.16 → 0.6.18
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.6.16.js +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +309 -168
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Bonus/BonusContent.d.ts +1 -0
- package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
- package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
- package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
- package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
- package/bundle/components/OfficeMap/nearbyOffices.d.ts +2 -0
- package/bundle/components/OfficeMap/renderFunctions.d.ts +1 -1
- package/bundle/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
- package/bundle/icons/IconName.d.ts +6 -2
- package/bundle/ui-kit/Button/ButtonProps.d.ts +5 -1
- package/bundle/ui-kit/Button/ButtonSection.d.ts +9 -1
- package/bundle/{components/OfficeMap → ui-kit/YandexMap}/YandexMap.d.ts +4 -1
- package/bundle/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
- package/bundle/ui-kit/YandexMap/mockPoints.d.ts +5 -0
- package/bundle/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
- package/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
- package/bundle/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
- package/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
- package/bundle/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
- package/cosmos-static/icons/FullScreenIcon.svg +1 -0
- package/cosmos-static/icons/UserGeoLocationIcon.svg +1 -0
- package/dist/components/Bonus/BonusContent.d.ts +1 -0
- package/dist/components/Catalog/CatalogCard.js +2 -2
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +4 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +43 -0
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
- package/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +2 -2
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +1 -1
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.js +16 -11
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMap.js +6 -10
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/dist/components/OfficeMap/nearbyOffices.d.ts +2 -0
- package/dist/components/OfficeMap/nearbyOffices.js +9 -0
- package/dist/components/OfficeMap/nearbyOffices.js.map +1 -0
- package/dist/components/OfficeMap/renderFunctions.d.ts +1 -1
- package/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/dist/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
- package/{mobile/dist/hooks → dist/components/OfficeMap}/useOfficeMap.js +1 -1
- package/dist/components/OfficeMap/useOfficeMap.js.map +1 -0
- package/dist/components/PictureText/PictureText.js +1 -1
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +5 -2
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +5 -2
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/dataFixture.js +2 -4
- package/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/dist/icons/IconName.d.ts +6 -2
- package/dist/icons/IconName.js +5 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/BlockWrapper.js +4 -3
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +5 -1
- package/dist/ui-kit/Button/ButtonSection.d.ts +9 -1
- package/dist/ui-kit/Button/ButtonSection.js +18 -6
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/IntersectionObserverTag.js +10 -10
- package/dist/ui-kit/IntersectionObserverTag.js.map +1 -1
- package/{lib/components/OfficeMap → dist/ui-kit/YandexMap}/YandexMap.d.ts +4 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +86 -0
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -0
- package/dist/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
- package/dist/ui-kit/YandexMap/ZoomButton.js +26 -0
- package/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -0
- package/dist/ui-kit/YandexMap/mockPoints.d.ts +5 -0
- package/dist/ui-kit/YandexMap/mockPoints.js +28 -0
- package/dist/ui-kit/YandexMap/mockPoints.js.map +1 -0
- package/dist/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
- package/dist/ui-kit/YandexMap/renderClusterer.js +35 -0
- package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -0
- package/dist/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
- package/dist/ui-kit/YandexMap/renderOpenMap.js +19 -0
- package/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
- package/dist/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
- package/dist/ui-kit/YandexMap/renderSearchField.js +31 -0
- package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -0
- package/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js +31 -0
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
- package/dist/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
- package/dist/ui-kit/YandexMap/useYandexMaps.js +11 -0
- package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Bonus/BonusContent.d.ts +1 -0
- package/lib/components/Catalog/CatalogCard.js +2 -2
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +4 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +39 -0
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
- package/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +2 -2
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +1 -1
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.js +17 -12
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.js +6 -10
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/lib/components/OfficeMap/nearbyOffices.d.ts +2 -0
- package/lib/components/OfficeMap/nearbyOffices.js +7 -0
- package/lib/components/OfficeMap/nearbyOffices.js.map +1 -0
- package/lib/components/OfficeMap/renderFunctions.d.ts +1 -1
- package/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/lib/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
- package/{mobile/lib/hooks → lib/components/OfficeMap}/useOfficeMap.js +1 -1
- package/lib/components/OfficeMap/useOfficeMap.js.map +1 -0
- package/lib/components/PictureText/PictureText.js +1 -1
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +5 -2
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +5 -2
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/dataFixture.js +2 -4
- package/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/lib/icons/IconName.d.ts +6 -2
- package/lib/icons/IconName.js +5 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/BlockWrapper.js +4 -3
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +5 -1
- package/lib/ui-kit/Button/ButtonSection.d.ts +9 -1
- package/lib/ui-kit/Button/ButtonSection.js +16 -5
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/IntersectionObserverTag.js +11 -11
- package/lib/ui-kit/IntersectionObserverTag.js.map +1 -1
- package/{mobile/bundle/components/OfficeMap → lib/ui-kit/YandexMap}/YandexMap.d.ts +4 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +84 -0
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -0
- package/lib/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
- package/lib/ui-kit/YandexMap/ZoomButton.js +24 -0
- package/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -0
- package/lib/ui-kit/YandexMap/mockPoints.d.ts +5 -0
- package/lib/ui-kit/YandexMap/mockPoints.js +26 -0
- package/lib/ui-kit/YandexMap/mockPoints.js.map +1 -0
- package/lib/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
- package/lib/ui-kit/YandexMap/renderClusterer.js +32 -0
- package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -0
- package/lib/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
- package/lib/ui-kit/YandexMap/renderOpenMap.js +16 -0
- package/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
- package/lib/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
- package/lib/ui-kit/YandexMap/renderSearchField.js +28 -0
- package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -0
- package/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js +28 -0
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
- package/lib/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
- package/lib/ui-kit/YandexMap/useYandexMaps.js +8 -0
- package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +36 -22
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
- package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
- package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
- package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
- package/mobile/bundle/components/OfficeMap/nearbyOffices.d.ts +2 -0
- package/mobile/bundle/components/OfficeMap/renderFunctions.d.ts +1 -1
- package/mobile/bundle/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
- package/mobile/bundle/icons/IconName.d.ts +6 -2
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +5 -1
- package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +9 -1
- package/{dist/components/OfficeMap → mobile/bundle/ui-kit/YandexMap}/YandexMap.d.ts +4 -1
- package/mobile/bundle/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
- package/mobile/bundle/ui-kit/YandexMap/mockPoints.d.ts +5 -0
- package/mobile/bundle/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
- package/mobile/bundle/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
- package/mobile/bundle/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
- package/mobile/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
- package/mobile/bundle/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
- package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/dist/components/Catalog/CatalogCard.js +2 -2
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +4 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +43 -0
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
- package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +16 -11
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js +6 -10
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/dist/components/OfficeMap/nearbyOffices.d.ts +2 -0
- package/mobile/dist/components/OfficeMap/nearbyOffices.js +9 -0
- package/mobile/dist/components/OfficeMap/nearbyOffices.js.map +1 -0
- package/mobile/dist/components/OfficeMap/renderFunctions.d.ts +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/dist/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
- package/{dist/hooks → mobile/dist/components/OfficeMap}/useOfficeMap.js +1 -1
- package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -0
- package/mobile/dist/components/PictureText/PictureText.js +1 -1
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +5 -2
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/dataFixture.js +2 -4
- package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +6 -2
- package/mobile/dist/icons/IconName.js +5 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.js +4 -3
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +5 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +9 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +18 -6
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/IntersectionObserverTag.js +10 -10
- package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +8 -0
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +86 -0
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js +26 -0
- package/mobile/dist/ui-kit/YandexMap/ZoomButton.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/mockPoints.d.ts +5 -0
- package/mobile/dist/ui-kit/YandexMap/mockPoints.js +28 -0
- package/mobile/dist/ui-kit/YandexMap/mockPoints.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +35 -0
- package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +19 -0
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +31 -0
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +31 -0
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +11 -0
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
- package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -0
- package/mobile/lib/components/Catalog/CatalogCard.js +2 -2
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +7 -3
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +15 -15
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +11 -11
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +4 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +17 -0
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +39 -0
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +1 -0
- package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +2 -2
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +17 -12
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js +6 -10
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/lib/components/OfficeMap/nearbyOffices.d.ts +2 -0
- package/mobile/lib/components/OfficeMap/nearbyOffices.js +7 -0
- package/mobile/lib/components/OfficeMap/nearbyOffices.js.map +1 -0
- package/mobile/lib/components/OfficeMap/renderFunctions.d.ts +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/lib/{hooks → components/OfficeMap}/useOfficeMap.d.ts +0 -0
- package/{lib/hooks → mobile/lib/components/OfficeMap}/useOfficeMap.js +1 -1
- package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -0
- package/mobile/lib/components/PictureText/PictureText.js +1 -1
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +5 -2
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/dataFixture.js +2 -4
- package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +6 -2
- package/mobile/lib/icons/IconName.js +5 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.js +4 -3
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +5 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +9 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +16 -5
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/IntersectionObserverTag.js +11 -11
- package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +8 -0
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +84 -0
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.d.ts +7 -0
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js +24 -0
- package/mobile/lib/ui-kit/YandexMap/ZoomButton.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/mockPoints.d.ts +5 -0
- package/mobile/lib/ui-kit/YandexMap/mockPoints.js +26 -0
- package/mobile/lib/ui-kit/YandexMap/mockPoints.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.d.ts +2 -0
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +32 -0
- package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.d.ts +2 -0
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +16 -0
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.d.ts +4 -0
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +28 -0
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +3 -0
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +28 -0
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js.map +1 -0
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.d.ts +2 -0
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +8 -0
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -0
- package/mobile/src/common.css +9 -0
- package/mobile/src/components/Bonus/Bonus.example.json +1 -6
- package/mobile/src/components/Bonus/BonusContent.ts +1 -0
- package/mobile/src/components/Catalog/CatalogCard.tsx +2 -2
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +8 -6
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +8 -15
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +31 -19
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -13
- package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +1 -1
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +5 -2
- package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +71 -0
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryInner.tsx +2 -2
- package/mobile/src/components/Header/DropdownMenu.tsx +5 -5
- package/mobile/src/components/Header/HeaderSubMenu.tsx +36 -20
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +10 -17
- package/mobile/src/components/OfficeMap/nearbyOffices.ts +8 -0
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +5 -2
- package/mobile/src/{hooks → components/OfficeMap}/useOfficeMap.ts +1 -1
- package/mobile/src/components/PictureText/PictureText.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +7 -11
- package/mobile/src/components/TariffsTable/dataFixture.tsx +2 -3
- package/mobile/src/icons/FullScreenIcon.svg +8 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/UserGeoLocationIcon.svg +3 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +5 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +5 -1
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +41 -16
- package/mobile/src/ui-kit/IntersectionObserverTag.tsx +13 -17
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +128 -0
- package/mobile/src/ui-kit/YandexMap/ZoomButton.tsx +38 -0
- package/mobile/src/ui-kit/YandexMap/mockPoints.ts +30 -0
- package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +51 -0
- package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +26 -0
- package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +51 -0
- package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +43 -0
- package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +11 -0
- package/package.json +1 -1
- package/src/common.css +9 -0
- package/src/components/Bonus/Bonus.example.json +1 -6
- package/src/components/Bonus/BonusContent.ts +1 -0
- package/src/components/Catalog/Catalog.fixture.tsx +3 -10
- package/src/components/Catalog/CatalogCard.tsx +2 -2
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +8 -6
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +8 -15
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +31 -19
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -13
- package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +1 -1
- package/src/components/ExchangeRateTile/renderInput.tsx +5 -2
- package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +71 -0
- package/src/components/Gallery/Gallery.fixture.tsx +1 -2
- package/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/src/components/Gallery/GalleryInner.tsx +2 -2
- package/src/components/Header/DropdownMenu.tsx +5 -5
- package/src/components/Header/HeaderSubMenu.tsx +36 -20
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +3 -14
- package/src/components/OfficeMap/OfficeMap.tsx +10 -17
- package/src/components/OfficeMap/nearbyOffices.ts +8 -0
- package/src/components/OfficeMap/renderFunctions.tsx +5 -2
- package/src/{hooks → components/OfficeMap}/useOfficeMap.ts +1 -1
- package/src/components/PictureText/PictureText.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +2 -0
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +7 -11
- package/src/components/TariffsTable/EmbeddableCellData.tsx +7 -9
- package/src/components/TariffsTable/dataFixture.tsx +2 -3
- package/src/icons/FullScreenIcon.svg +8 -0
- package/src/icons/IconName.ts +9 -1
- package/src/icons/UserGeoLocationIcon.svg +3 -0
- package/src/ui-kit/BlockWrapper.tsx +5 -3
- package/src/ui-kit/Button/ButtonProps.ts +5 -1
- package/src/ui-kit/Button/ButtonSection.tsx +41 -16
- package/src/ui-kit/IntersectionObserverTag.tsx +13 -17
- package/src/ui-kit/YandexMap/YandexMap.tsx +128 -0
- package/src/ui-kit/YandexMap/ZoomButton.tsx +38 -0
- package/src/ui-kit/YandexMap/mockPoints.ts +30 -0
- package/src/ui-kit/YandexMap/renderClusterer.ts +51 -0
- package/src/ui-kit/YandexMap/renderOpenMap.tsx +26 -0
- package/src/ui-kit/YandexMap/renderSearchField.tsx +51 -0
- package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +43 -0
- package/src/ui-kit/YandexMap/useYandexMaps.ts +11 -0
- package/bundle/hooks/useExchangeRates.d.ts +0 -2
- package/dist/components/OfficeMap/YandexMap.js +0 -30
- package/dist/components/OfficeMap/YandexMap.js.map +0 -1
- package/dist/hooks/useExchangeRates.d.ts +0 -2
- package/dist/hooks/useExchangeRates.js +0 -57
- package/dist/hooks/useExchangeRates.js.map +0 -1
- package/dist/hooks/useOfficeMap.js.map +0 -1
- package/lib/components/OfficeMap/YandexMap.js +0 -28
- package/lib/components/OfficeMap/YandexMap.js.map +0 -1
- package/lib/hooks/useExchangeRates.d.ts +0 -2
- package/lib/hooks/useExchangeRates.js +0 -54
- package/lib/hooks/useExchangeRates.js.map +0 -1
- package/lib/hooks/useOfficeMap.js.map +0 -1
- package/mobile/bundle/hooks/useExchangeRates.d.ts +0 -2
- package/mobile/dist/components/OfficeMap/YandexMap.d.ts +0 -5
- package/mobile/dist/components/OfficeMap/YandexMap.js +0 -30
- package/mobile/dist/components/OfficeMap/YandexMap.js.map +0 -1
- package/mobile/dist/hooks/useExchangeRates.d.ts +0 -2
- package/mobile/dist/hooks/useExchangeRates.js +0 -57
- package/mobile/dist/hooks/useExchangeRates.js.map +0 -1
- package/mobile/dist/hooks/useOfficeMap.js.map +0 -1
- package/mobile/lib/components/OfficeMap/YandexMap.d.ts +0 -5
- package/mobile/lib/components/OfficeMap/YandexMap.js +0 -28
- package/mobile/lib/components/OfficeMap/YandexMap.js.map +0 -1
- package/mobile/lib/hooks/useExchangeRates.d.ts +0 -2
- package/mobile/lib/hooks/useExchangeRates.js +0 -54
- package/mobile/lib/hooks/useExchangeRates.js.map +0 -1
- package/mobile/lib/hooks/useOfficeMap.js.map +0 -1
- package/mobile/src/components/OfficeMap/YandexMap.tsx +0 -41
- package/mobile/src/hooks/useExchangeRates.ts +0 -76
- package/src/components/OfficeMap/YandexMap.tsx +0 -41
- package/src/hooks/useExchangeRates.ts +0 -76
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Icon } from '../Icon/Icon';
|
|
2
|
+
import type { MockPoints } from './mockPoints';
|
|
3
|
+
import ymaps from 'yandex-maps';
|
|
4
|
+
const styles = {
|
|
5
|
+
border: 'border border-transparent rounded-md',
|
|
6
|
+
position: 'relative flex items-center',
|
|
7
|
+
font: 'text-center font-sans',
|
|
8
|
+
shadow: 'shadow-[0_4px_25px_rgba(0,0,0,0.07)]',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const renderSearchField = (
|
|
12
|
+
points: MockPoints[],
|
|
13
|
+
yandexMaps: ymaps.Map,
|
|
14
|
+
updatePointsToRender: (any: MockPoints[] | null) => void,
|
|
15
|
+
) => {
|
|
16
|
+
const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
17
|
+
const value: string = e.target?.value ? e.target?.value.toLowerCase() : '';
|
|
18
|
+
if (value) {
|
|
19
|
+
const searchResult = points.filter((_: MockPoints) => {
|
|
20
|
+
const textLowerCase = _.text.toLowerCase();
|
|
21
|
+
if (textLowerCase.indexOf(value) > -1) {
|
|
22
|
+
return _;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return null;
|
|
26
|
+
});
|
|
27
|
+
updatePointsToRender(searchResult);
|
|
28
|
+
} else {
|
|
29
|
+
updatePointsToRender(null);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<div className={`${Object.values(styles).join(' ')} bg-white py-3 pl-11 pr-4 w-full`}>
|
|
35
|
+
<Icon
|
|
36
|
+
name="LoupeIcon"
|
|
37
|
+
iconVersion="black"
|
|
38
|
+
width="20"
|
|
39
|
+
height="20"
|
|
40
|
+
asSVG
|
|
41
|
+
className="absolute left-4"
|
|
42
|
+
/>
|
|
43
|
+
<input
|
|
44
|
+
type="text"
|
|
45
|
+
placeholder="Введите адрес или метро"
|
|
46
|
+
onChange={onChange}
|
|
47
|
+
className="border-0 focus:border-0 outline-0 w-full"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
);
|
|
51
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
2
|
+
import { Icon } from '../Icon/Icon';
|
|
3
|
+
import ymaps from 'yandex-maps';
|
|
4
|
+
|
|
5
|
+
const styles = {
|
|
6
|
+
focus: 'focus:border-primary-focus focus:border',
|
|
7
|
+
hover: 'hover:bg-primary-hover',
|
|
8
|
+
active: 'active:bg-primary-active',
|
|
9
|
+
border: 'border border-transparent rounded-md',
|
|
10
|
+
position: 'absolute flex items-center justify-center',
|
|
11
|
+
font: 'text-center font-sans',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const renderUserGeolocation = (
|
|
15
|
+
map: ymaps.Map,
|
|
16
|
+
yandexMaps: typeof ymaps,
|
|
17
|
+
className: string,
|
|
18
|
+
) => {
|
|
19
|
+
const setUserGeoLocation = () => {
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
yandexMaps.geolocation
|
|
23
|
+
.get({
|
|
24
|
+
provider: 'yandex',
|
|
25
|
+
autoReverseGeocode: true,
|
|
26
|
+
mapStateAutoApply: true,
|
|
27
|
+
})
|
|
28
|
+
.then(function (result) {
|
|
29
|
+
map.geoObjects.add(result.geoObjects);
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<div
|
|
35
|
+
className={`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(styles).join(
|
|
36
|
+
' ',
|
|
37
|
+
)} ${className}`}
|
|
38
|
+
onClick={setUserGeoLocation}
|
|
39
|
+
>
|
|
40
|
+
<Icon name="UserGeoLocationIcon" width="20" height="16" />
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ymaps from 'yandex-maps';
|
|
2
|
+
import { useExternalNS } from '../../hooks/useExternalNS';
|
|
3
|
+
import { projectSettings } from '../../ProjectSettings';
|
|
4
|
+
|
|
5
|
+
const YMAPS_NAMESPACE = 'ymaps';
|
|
6
|
+
|
|
7
|
+
export const useYandexMaps = () => {
|
|
8
|
+
const url = `https://api-maps.yandex.ru/2.1/?apikey=${projectSettings.YANDEX_MAP_API_KEY}&lang=ru_RU`;
|
|
9
|
+
|
|
10
|
+
return useExternalNS<typeof ymaps>(YMAPS_NAMESPACE, url);
|
|
11
|
+
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.YandexMap = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const renderClusterer_1 = require("../SafeDepositRental/renderClusterer");
|
|
7
|
-
const useYandexMaps_1 = require("../SafeDepositRental/useYandexMaps");
|
|
8
|
-
exports.YandexMap = (0, uni_jsx_1.JSX)(({ point }) => {
|
|
9
|
-
const map = (0, hooks_1.useRef)(null);
|
|
10
|
-
const yandexMaps = (0, useYandexMaps_1.useYandexMaps)();
|
|
11
|
-
(0, hooks_1.useEffect)(() => {
|
|
12
|
-
yandexMaps?.ready(() => {
|
|
13
|
-
map.current = new yandexMaps.Map('map', {
|
|
14
|
-
center: point,
|
|
15
|
-
zoom: 10,
|
|
16
|
-
});
|
|
17
|
-
(0, renderClusterer_1.renderClusterer)(yandexMaps, map.current, [point]);
|
|
18
|
-
});
|
|
19
|
-
}, [map, point, yandexMaps]);
|
|
20
|
-
(0, hooks_1.useEffect)(() => {
|
|
21
|
-
if (map.current && point && yandexMaps) {
|
|
22
|
-
(0, renderClusterer_1.renderClusterer)(yandexMaps, map.current, [point]);
|
|
23
|
-
}
|
|
24
|
-
}, [map, point, yandexMaps]);
|
|
25
|
-
if (!yandexMaps) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "bg-white", children: (0, jsx_runtime_1.jsx)("div", { id: "map", className: "h-[560px]" }) }));
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=YandexMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/components/OfficeMap/YandexMap.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAgE;AAEhE,0EAAuE;AACvE,sEAAmE;AAMtD,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACzD,MAAM,GAAG,GAAG,IAAA,cAAM,EAAmB,IAAI,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,IAAA,6BAAa,GAAE,CAAC;IAEnC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE;YACrB,GAAG,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE;gBACtC,MAAM,EAAE,KAAK;gBACb,IAAI,EAAE,EAAE;aACT,CAAC,CAAC;YACH,IAAA,iCAAe,EAAC,UAAU,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,GAAG,CAAC,OAAO,IAAI,KAAK,IAAI,UAAU,EAAE;YACtC,IAAA,iCAAe,EAAC,UAAU,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;SACnD;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,gCAAK,SAAS,EAAC,UAAU,YACvB,gCAAK,EAAE,EAAC,KAAK,EAAC,SAAS,EAAC,WAAW,GAAG,GAClC,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useExchangeRates = void 0;
|
|
3
|
-
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
|
-
const fetchJSON_1 = require("../utils/fetchJSON");
|
|
5
|
-
const roundTo_1 = require("../utils/roundTo");
|
|
6
|
-
function useExchangeRates() {
|
|
7
|
-
const { data } = (0, useAsyncData_1.useAsyncData)(EXCHANGE_RATES_URL, fetchExchangeRates);
|
|
8
|
-
const result = data?.hits?.hits?.map((_) => _._source) || [];
|
|
9
|
-
return result.length ? getCurrencyListByRate(result) : result;
|
|
10
|
-
}
|
|
11
|
-
exports.useExchangeRates = useExchangeRates;
|
|
12
|
-
function fetchExchangeRates() {
|
|
13
|
-
return (0, fetchJSON_1.fetchJSON)(EXCHANGE_RATES_URL, {
|
|
14
|
-
method: 'POST',
|
|
15
|
-
body: JSON.stringify(EXCHANGE_RATES_BODY),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const EXCHANGE_RATES_URL = 'https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000';
|
|
19
|
-
const EXCHANGE_RATES_BODY = {
|
|
20
|
-
query: {
|
|
21
|
-
bool: {
|
|
22
|
-
must: [
|
|
23
|
-
{
|
|
24
|
-
term: {
|
|
25
|
-
// eslint-disable-next-line camelcase
|
|
26
|
-
russian_region_code: '77',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
term: {
|
|
31
|
-
// eslint-disable-next-line camelcase
|
|
32
|
-
from_volume: '0',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
terms: {
|
|
37
|
-
// eslint-disable-next-line camelcase
|
|
38
|
-
currency_pair: ['USD/RUB', 'EUR/RUB'],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
const getCurrencyListByRate = (currencyRates) => currencyRates.reduce((result, _) => {
|
|
46
|
-
const currencyInfo = _['currency_first'];
|
|
47
|
-
const currencyCode = currencyInfo?.code;
|
|
48
|
-
if (!result.some((i) => i.code === currencyCode)) {
|
|
49
|
-
result.push({
|
|
50
|
-
code: currencyCode,
|
|
51
|
-
buy: (0, roundTo_1.roundTo)(Number(_.rate_buy), 3),
|
|
52
|
-
sell: (0, roundTo_1.roundTo)(Number(_.rate_sell), 3),
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
return result;
|
|
56
|
-
}, []);
|
|
57
|
-
//# sourceMappingURL=useExchangeRates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExchangeRates.js","sourceRoot":"","sources":["../../src/hooks/useExchangeRates.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AA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xC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,EAAE;QAChD,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YACnC,IAAI,EAAE,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;SACtC,CAAC,CAAC;KACJ;IAED,OAAO,MAAM,CAAC;AAChB,CAAC,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOfficeMap.js","sourceRoot":"","sources":["../../src/hooks/useOfficeMap.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,kDAA+C;AAE/C,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAE1C,4GAA4G;AAC5G,4DAA4D;AAC5D,SAAgB,YAAY,CAAC,UAAmB;IAC9C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,UAAU,CAAC,CAAC,CAAC,GAAG,cAAc,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,EACrE,cAAc,CACf,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC;AAPD,oCAOC;AAED,MAAM,cAAc,GAAG,CAAC,GAAY,EAAE,EAAE;IACtC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,EAAE,CAAC;KACX;IAED,OAAO,IAAA,qBAAS,EAAC,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
import { renderClusterer } from '../SafeDepositRental/renderClusterer.js';
|
|
5
|
-
import { useYandexMaps } from '../SafeDepositRental/useYandexMaps.js';
|
|
6
|
-
export const YandexMap = JSX(({ point }) => {
|
|
7
|
-
const map = useRef(null);
|
|
8
|
-
const yandexMaps = useYandexMaps();
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
yandexMaps?.ready(() => {
|
|
11
|
-
map.current = new yandexMaps.Map('map', {
|
|
12
|
-
center: point,
|
|
13
|
-
zoom: 10,
|
|
14
|
-
});
|
|
15
|
-
renderClusterer(yandexMaps, map.current, [point]);
|
|
16
|
-
});
|
|
17
|
-
}, [map, point, yandexMaps]);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (map.current && point && yandexMaps) {
|
|
20
|
-
renderClusterer(yandexMaps, map.current, [point]);
|
|
21
|
-
}
|
|
22
|
-
}, [map, point, yandexMaps]);
|
|
23
|
-
if (!yandexMaps) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return (_jsx("div", { className: "bg-white", children: _jsx("div", { id: "map", className: "h-[560px]" }) }));
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=YandexMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/components/OfficeMap/YandexMap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAMnE,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACzD,MAAM,GAAG,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE;YACrB,GAAG,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE;gBACtC,MAAM,EAAE,KAAK;gBACb,IAAI,EAAE,EAAE;aACT,CAAC,CAAC;YACH,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,GAAG,CAAC,OAAO,IAAI,KAAK,IAAI,UAAU,EAAE;YACtC,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;SACnD;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,cAAK,SAAS,EAAC,UAAU,YACvB,cAAK,EAAE,EAAC,KAAK,EAAC,SAAS,EAAC,WAAW,GAAG,GAClC,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
-
import { fetchJSON } from '../utils/fetchJSON.js';
|
|
3
|
-
import { roundTo } from '../utils/roundTo.js';
|
|
4
|
-
export function useExchangeRates() {
|
|
5
|
-
const { data } = useAsyncData(EXCHANGE_RATES_URL, fetchExchangeRates);
|
|
6
|
-
const result = data?.hits?.hits?.map((_) => _._source) || [];
|
|
7
|
-
return result.length ? getCurrencyListByRate(result) : result;
|
|
8
|
-
}
|
|
9
|
-
function fetchExchangeRates() {
|
|
10
|
-
return fetchJSON(EXCHANGE_RATES_URL, {
|
|
11
|
-
method: 'POST',
|
|
12
|
-
body: JSON.stringify(EXCHANGE_RATES_BODY),
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
const EXCHANGE_RATES_URL = 'https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000';
|
|
16
|
-
const EXCHANGE_RATES_BODY = {
|
|
17
|
-
query: {
|
|
18
|
-
bool: {
|
|
19
|
-
must: [
|
|
20
|
-
{
|
|
21
|
-
term: {
|
|
22
|
-
// eslint-disable-next-line camelcase
|
|
23
|
-
russian_region_code: '77',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
term: {
|
|
28
|
-
// eslint-disable-next-line camelcase
|
|
29
|
-
from_volume: '0',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
terms: {
|
|
34
|
-
// eslint-disable-next-line camelcase
|
|
35
|
-
currency_pair: ['USD/RUB', 'EUR/RUB'],
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const getCurrencyListByRate = (currencyRates) => currencyRates.reduce((result, _) => {
|
|
43
|
-
const currencyInfo = _['currency_first'];
|
|
44
|
-
const currencyCode = currencyInfo?.code;
|
|
45
|
-
if (!result.some((i) => i.code === currencyCode)) {
|
|
46
|
-
result.push({
|
|
47
|
-
code: currencyCode,
|
|
48
|
-
buy: roundTo(Number(_.rate_buy), 3),
|
|
49
|
-
sell: roundTo(Number(_.rate_sell), 3),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
}, []);
|
|
54
|
-
//# sourceMappingURL=useExchangeRates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"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AG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.YandexMap = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
-
const renderClusterer_1 = require("../SafeDepositRental/renderClusterer");
|
|
7
|
-
const useYandexMaps_1 = require("../SafeDepositRental/useYandexMaps");
|
|
8
|
-
exports.YandexMap = (0, uni_jsx_1.JSX)(({ point }) => {
|
|
9
|
-
const map = (0, hooks_1.useRef)(null);
|
|
10
|
-
const yandexMaps = (0, useYandexMaps_1.useYandexMaps)();
|
|
11
|
-
(0, hooks_1.useEffect)(() => {
|
|
12
|
-
yandexMaps?.ready(() => {
|
|
13
|
-
map.current = new yandexMaps.Map('map', {
|
|
14
|
-
center: point,
|
|
15
|
-
zoom: 10,
|
|
16
|
-
});
|
|
17
|
-
(0, renderClusterer_1.renderClusterer)(yandexMaps, map.current, [point]);
|
|
18
|
-
});
|
|
19
|
-
}, [map, point, yandexMaps]);
|
|
20
|
-
(0, hooks_1.useEffect)(() => {
|
|
21
|
-
if (map.current && point && yandexMaps) {
|
|
22
|
-
(0, renderClusterer_1.renderClusterer)(yandexMaps, map.current, [point]);
|
|
23
|
-
}
|
|
24
|
-
}, [map, point, yandexMaps]);
|
|
25
|
-
if (!yandexMaps) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "bg-white", children: (0, jsx_runtime_1.jsx)("div", { id: "map", className: "h-[560px]" }) }));
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=YandexMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version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
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.useExchangeRates = void 0;
|
|
3
|
-
const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
4
|
-
const fetchJSON_1 = require("../utils/fetchJSON");
|
|
5
|
-
const roundTo_1 = require("../utils/roundTo");
|
|
6
|
-
function useExchangeRates() {
|
|
7
|
-
const { data } = (0, useAsyncData_1.useAsyncData)(EXCHANGE_RATES_URL, fetchExchangeRates);
|
|
8
|
-
const result = data?.hits?.hits?.map((_) => _._source) || [];
|
|
9
|
-
return result.length ? getCurrencyListByRate(result) : result;
|
|
10
|
-
}
|
|
11
|
-
exports.useExchangeRates = useExchangeRates;
|
|
12
|
-
function fetchExchangeRates() {
|
|
13
|
-
return (0, fetchJSON_1.fetchJSON)(EXCHANGE_RATES_URL, {
|
|
14
|
-
method: 'POST',
|
|
15
|
-
body: JSON.stringify(EXCHANGE_RATES_BODY),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const EXCHANGE_RATES_URL = 'https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000';
|
|
19
|
-
const EXCHANGE_RATES_BODY = {
|
|
20
|
-
query: {
|
|
21
|
-
bool: {
|
|
22
|
-
must: [
|
|
23
|
-
{
|
|
24
|
-
term: {
|
|
25
|
-
// eslint-disable-next-line camelcase
|
|
26
|
-
russian_region_code: '77',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
term: {
|
|
31
|
-
// eslint-disable-next-line camelcase
|
|
32
|
-
from_volume: '0',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
terms: {
|
|
37
|
-
// eslint-disable-next-line camelcase
|
|
38
|
-
currency_pair: ['USD/RUB', 'EUR/RUB'],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
const getCurrencyListByRate = (currencyRates) => currencyRates.reduce((result, _) => {
|
|
46
|
-
const currencyInfo = _['currency_first'];
|
|
47
|
-
const currencyCode = currencyInfo?.code;
|
|
48
|
-
if (!result.some((i) => i.code === currencyCode)) {
|
|
49
|
-
result.push({
|
|
50
|
-
code: currencyCode,
|
|
51
|
-
buy: (0, roundTo_1.roundTo)(Number(_.rate_buy), 3),
|
|
52
|
-
sell: (0, roundTo_1.roundTo)(Number(_.rate_sell), 3),
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
return result;
|
|
56
|
-
}, []);
|
|
57
|
-
//# sourceMappingURL=useExchangeRates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExchangeRates.js","sourceRoot":"","sources":["../../src/hooks/useExchangeRates.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,kDAA+C;AAC/C,8CAA2C;AAQ3C,SAAgB,gBAAgB;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAEtE,MAAM,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAE7D,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAqB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAC/E,CAAC;AAND,4CAMC;AAED,SAAS,kBAAkB;IACzB,OAAO,IAAA,qBAAS,EAAC,kBAAkB,EAAE;QACnC,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC;KAC1C,CAAC,CAAC;AACL,CAAC;AAED,MAAM,kBAAkB,GACtB,6HAA6H,CAAC;AAEhI,MAAM,mBAAmB,GAAG;IAC1B,KAAK,EAAE;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IAC9C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,UAAU,CAAC,CAAC,CAAC,GAAG,cAAc,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,EACrE,cAAc,CACf,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC;AAPD,oCAOC;AAED,MAAM,cAAc,GAAG,CAAC,GAAY,EAAE,EAAE;IACtC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,EAAE,CAAC;KACX;IAED,OAAO,IAAA,qBAAS,EAAC,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
-
import { renderClusterer } from '../SafeDepositRental/renderClusterer.js';
|
|
5
|
-
import { useYandexMaps } from '../SafeDepositRental/useYandexMaps.js';
|
|
6
|
-
export const YandexMap = JSX(({ point }) => {
|
|
7
|
-
const map = useRef(null);
|
|
8
|
-
const yandexMaps = useYandexMaps();
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
yandexMaps?.ready(() => {
|
|
11
|
-
map.current = new yandexMaps.Map('map', {
|
|
12
|
-
center: point,
|
|
13
|
-
zoom: 10,
|
|
14
|
-
});
|
|
15
|
-
renderClusterer(yandexMaps, map.current, [point]);
|
|
16
|
-
});
|
|
17
|
-
}, [map, point, yandexMaps]);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (map.current && point && yandexMaps) {
|
|
20
|
-
renderClusterer(yandexMaps, map.current, [point]);
|
|
21
|
-
}
|
|
22
|
-
}, [map, point, yandexMaps]);
|
|
23
|
-
if (!yandexMaps) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
return (_jsx("div", { className: "bg-white", children: _jsx("div", { id: "map", className: "h-[560px]" }) }));
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=YandexMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"YandexMap.js","sourceRoot":"","sources":["../../../src/components/OfficeMap/YandexMap.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAMnE,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACzD,MAAM,GAAG,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,EAAE,KAAK,CAAC,GAAG,EAAE;YACrB,GAAG,CAAC,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE;gBACtC,MAAM,EAAE,KAAK;gBACb,IAAI,EAAE,EAAE;aACT,CAAC,CAAC;YACH,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,GAAG,CAAC,OAAO,IAAI,KAAK,IAAI,UAAU,EAAE;YACtC,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;SACnD;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,cAAK,SAAS,EAAC,UAAU,YACvB,cAAK,EAAE,EAAC,KAAK,EAAC,SAAS,EAAC,WAAW,GAAG,GAClC,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
2
|
-
import { fetchJSON } from '../utils/fetchJSON.js';
|
|
3
|
-
import { roundTo } from '../utils/roundTo.js';
|
|
4
|
-
export function useExchangeRates() {
|
|
5
|
-
const { data } = useAsyncData(EXCHANGE_RATES_URL, fetchExchangeRates);
|
|
6
|
-
const result = data?.hits?.hits?.map((_) => _._source) || [];
|
|
7
|
-
return result.length ? getCurrencyListByRate(result) : result;
|
|
8
|
-
}
|
|
9
|
-
function fetchExchangeRates() {
|
|
10
|
-
return fetchJSON(EXCHANGE_RATES_URL, {
|
|
11
|
-
method: 'POST',
|
|
12
|
-
body: JSON.stringify(EXCHANGE_RATES_BODY),
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
const EXCHANGE_RATES_URL = 'https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000';
|
|
16
|
-
const EXCHANGE_RATES_BODY = {
|
|
17
|
-
query: {
|
|
18
|
-
bool: {
|
|
19
|
-
must: [
|
|
20
|
-
{
|
|
21
|
-
term: {
|
|
22
|
-
// eslint-disable-next-line camelcase
|
|
23
|
-
russian_region_code: '77',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
term: {
|
|
28
|
-
// eslint-disable-next-line camelcase
|
|
29
|
-
from_volume: '0',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
terms: {
|
|
34
|
-
// eslint-disable-next-line camelcase
|
|
35
|
-
currency_pair: ['USD/RUB', 'EUR/RUB'],
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const getCurrencyListByRate = (currencyRates) => currencyRates.reduce((result, _) => {
|
|
43
|
-
const currencyInfo = _['currency_first'];
|
|
44
|
-
const currencyCode = currencyInfo?.code;
|
|
45
|
-
if (!result.some((i) => i.code === currencyCode)) {
|
|
46
|
-
result.push({
|
|
47
|
-
code: currencyCode,
|
|
48
|
-
buy: roundTo(Number(_.rate_buy), 3),
|
|
49
|
-
sell: roundTo(Number(_.rate_sell), 3),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
}, []);
|
|
54
|
-
//# sourceMappingURL=useExchangeRates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExchangeRates.js","sourceRoot":"","sources":["../../src/hooks/useExchangeRates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQ3C,MAAM,UAAU,gBAAgB;IAC9B,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAEtE,MAAM,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAE7D,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,MAAqB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AAC/E,CAAC;AAED,SAAS,kBAAkB;IACzB,OAAO,SAAS,CAAC,kBAAkB,EAAE;QACnC,MAAM,EAAE,MAAM;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eMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAE1C,4GAA4G;AAC5G,4DAA4D;AAC5D,MAAM,UAAU,YAAY,CAAC,UAAmB;IAC9C,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAC3B,UAAU,CAAC,CAAC,CAAC,GAAG,cAAc,eAAe,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,EACrE,cAAc,CACf,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,cAAc,GAAG,CAAC,GAAY,EAAE,EAAE;IACtC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,EAAE,CAAC;KACX;IAED,OAAO,SAAS,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;AAC3C,CAAC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { useEffect, useRef } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import ymaps from 'yandex-maps';
|
|
4
|
-
import { renderClusterer } from '../SafeDepositRental/renderClusterer';
|
|
5
|
-
import { useYandexMaps } from '../SafeDepositRental/useYandexMaps';
|
|
6
|
-
|
|
7
|
-
interface YandexMapProps {
|
|
8
|
-
point: number[];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const YandexMap = JSX<YandexMapProps>(({ point }) => {
|
|
12
|
-
const map = useRef<ymaps.Map | null>(null);
|
|
13
|
-
|
|
14
|
-
const yandexMaps = useYandexMaps();
|
|
15
|
-
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
yandexMaps?.ready(() => {
|
|
18
|
-
map.current = new yandexMaps.Map('map', {
|
|
19
|
-
center: point,
|
|
20
|
-
zoom: 10,
|
|
21
|
-
});
|
|
22
|
-
renderClusterer(yandexMaps, map.current, [point]);
|
|
23
|
-
});
|
|
24
|
-
}, [map, point, yandexMaps]);
|
|
25
|
-
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
if (map.current && point && yandexMaps) {
|
|
28
|
-
renderClusterer(yandexMaps, map.current, [point]);
|
|
29
|
-
}
|
|
30
|
-
}, [map, point, yandexMaps]);
|
|
31
|
-
|
|
32
|
-
if (!yandexMaps) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<div className="bg-white">
|
|
38
|
-
<div id="map" className="h-[560px]" />
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
});
|