@redneckz/wildless-cms-uni-blocks 0.14.840 → 0.14.841
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.832.js +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +47 -325
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +20 -226
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/src/components/Blocks.ts +0 -4
- package/package.json +2 -2
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -6
- package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/bundle/ui-kit/Rating/Rating.d.ts +0 -1
- package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
- package/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/dist/components/CarouselLinks/CarouselLinks.js +0 -11
- package/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
- package/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/dist/components/ExchangeRateTile/calculateResult.js +0 -11
- package/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
- package/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/dist/components/ExchangeRateTile/renderInput.js +0 -16
- package/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
- package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/dist/ui-kit/Rating/Rating.d.ts +0 -1
- package/dist/ui-kit/Rating/Rating.js +0 -21
- package/dist/ui-kit/Rating/Rating.js.map +0 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
- package/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +0 -5
- package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +0 -5
- package/lib/components/CarouselLinks/CarouselLinks.js +0 -9
- package/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
- package/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +0 -5
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +0 -5
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/lib/components/ExchangeRateTile/calculateResult.js +0 -7
- package/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
- package/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/lib/components/ExchangeRateTile/renderInput.js +0 -13
- package/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
- package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +0 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/lib/ui-kit/Rating/Rating.d.ts +0 -1
- package/lib/ui-kit/Rating/Rating.fixture.d.ts +0 -5
- package/lib/ui-kit/Rating/Rating.js +0 -18
- package/lib/ui-kit/Rating/Rating.js.map +0 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/mobile/bundle/ui-kit/Rating/Rating.d.ts +0 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +0 -11
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js +0 -11
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +0 -16
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
- package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/mobile/dist/ui-kit/Rating/Rating.d.ts +0 -1
- package/mobile/dist/ui-kit/Rating/Rating.js +0 -21
- package/mobile/dist/ui-kit/Rating/Rating.js.map +0 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +0 -9
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js +0 -7
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +0 -13
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
- package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
- package/mobile/lib/ui-kit/Rating/Rating.d.ts +0 -1
- package/mobile/lib/ui-kit/Rating/Rating.js +0 -18
- package/mobile/lib/ui-kit/Rating/Rating.js.map +0 -1
- package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
- package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
- package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
- package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
- package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/mobile/src/components/ExchangeRateTile/calculateResult.ts +0 -9
- package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
- package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +0 -43
- package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
- package/mobile/src/ui-kit/Rating/Rating.tsx +0 -39
- package/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
- package/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
- package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +0 -83
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +0 -40
- package/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
- package/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
- package/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
- package/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
- package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.tsx +0 -19
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +0 -21
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
- package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/src/components/ExchangeRateTile/calculateResult.ts +0 -9
- package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
- package/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
- package/src/components/ExchangeRateTile/renderInput.tsx +0 -43
- package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -62
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
- package/src/ui-kit/Rating/Rating.fixture.tsx +0 -7
- package/src/ui-kit/Rating/Rating.tsx +0 -39
|
@@ -759,10 +759,10 @@
|
|
|
759
759
|
const and = (a, b) => (...args) => a(...args) && b(...args);
|
|
760
760
|
|
|
761
761
|
const table = (...table) => (...input) => {
|
|
762
|
-
const [, unit] = assertNonEmpty
|
|
762
|
+
const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(...input)));
|
|
763
763
|
return unit(...input);
|
|
764
764
|
};
|
|
765
|
-
function assertNonEmpty
|
|
765
|
+
function assertNonEmpty(value) {
|
|
766
766
|
if (!value) {
|
|
767
767
|
throw new Error('Value should be fulfilled');
|
|
768
768
|
}
|
|
@@ -7459,19 +7459,6 @@
|
|
|
7459
7459
|
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align, className: "min-h-24" }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
|
|
7460
7460
|
const renderColorOption = (color, i) => (jsx("figure", { className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
7461
7461
|
|
|
7462
|
-
const CarouselLinkButton = JSX(({ icon, ...linkProps }) => {
|
|
7463
|
-
const link = useLink();
|
|
7464
|
-
const { text, href, target, onClick } = link(linkProps);
|
|
7465
|
-
const textStyle = 'font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap';
|
|
7466
|
-
return text ? (jsx("div", { className: style('p-3 rounded-lg bg-white text-secondary-text flex justify-center'), children: jsx("a", { role: "link", href: href, target: target, onClick: onClick, children: jsxs("div", { className: "flex flex-col items-center gap-3 break-words max-w-[150px]", children: [icon ? (jsx(Img, { className: "w-7 h-7 md:w-12 md:h-12", image: {
|
|
7467
|
-
...icon,
|
|
7468
|
-
iconVersion: icon?.iconVersion,
|
|
7469
|
-
}, alt: text })) : null, jsx("div", { className: textStyle, children: text })] }) }) })) : null;
|
|
7470
|
-
});
|
|
7471
|
-
|
|
7472
|
-
const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { defaultPadding: "p-5xl", className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col lg:flex-row gap-5 justify-between", children: [jsxs("div", { className: "flex-1", children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left", headlineVersion: "XL" }), jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })] }), links?.length ? renderLinks(links) : null] }) })));
|
|
7473
|
-
const renderLinks = (links) => (jsx("div", { className: style('lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3', 'lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6', 'grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2', 'grid gap-3 lg:gap-5'), children: links.map((link, i) => (jsx(CarouselLinkButton, { ...link }, String(i)))) }));
|
|
7474
|
-
|
|
7475
7462
|
const LinkWrapper = JSX(({ className = '', href, target, onClick, data, children }) => {
|
|
7476
7463
|
const link = useLink();
|
|
7477
7464
|
const linkProps = link({ href, target, onClick });
|
|
@@ -9135,214 +9122,6 @@
|
|
|
9135
9122
|
};
|
|
9136
9123
|
const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true, className: "mb-2xl last:mb-0" }), button?.text ? (jsx(LinkButton, { version: button?.version, text: button?.text, ...button })) : null] })));
|
|
9137
9124
|
|
|
9138
|
-
const REGION_URL = `${API_BASE_URI$1}/region`;
|
|
9139
|
-
function useLocation(defaultLocation = 'Москва') {
|
|
9140
|
-
const locationStore = useLocalStore();
|
|
9141
|
-
return locationStore.location ?? { name: defaultLocation };
|
|
9142
|
-
}
|
|
9143
|
-
function useDefaultLocation(defaultLocation = 'Москва') {
|
|
9144
|
-
const locationStore = useLocalStore();
|
|
9145
|
-
const preselectLocation = useCallback(async () => {
|
|
9146
|
-
if (!locationStore.location) {
|
|
9147
|
-
const region = await fetchJSON(REGION_URL);
|
|
9148
|
-
locationStore.location = region ?? { name: defaultLocation };
|
|
9149
|
-
}
|
|
9150
|
-
}, [locationStore, defaultLocation]);
|
|
9151
|
-
useAsyncData(REGION_URL, preselectLocation);
|
|
9152
|
-
return locationStore;
|
|
9153
|
-
}
|
|
9154
|
-
|
|
9155
|
-
var Currency;
|
|
9156
|
-
(function (Currency) {
|
|
9157
|
-
Currency["RUB"] = "RUB";
|
|
9158
|
-
Currency["EUR"] = "EUR";
|
|
9159
|
-
Currency["USD"] = "USD";
|
|
9160
|
-
Currency["CNY"] = "CNY";
|
|
9161
|
-
})(Currency || (Currency = {}));
|
|
9162
|
-
|
|
9163
|
-
const currencyNumberFormat = new Intl.NumberFormat('ru', {
|
|
9164
|
-
style: 'currency',
|
|
9165
|
-
currency: Currency.RUB,
|
|
9166
|
-
});
|
|
9167
|
-
const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
|
|
9168
|
-
|
|
9169
|
-
const TABLE_STYLE_BASE = 'text-m font-light text-secondary-text ';
|
|
9170
|
-
const TABLE_HEAD_STYLE = `${TABLE_STYLE_BASE} text-left`;
|
|
9171
|
-
const TABLE_HEAD_STYLE_CENTER = `${TABLE_STYLE_BASE} pl-5xl text-center`;
|
|
9172
|
-
const TABLE_HEAD_STYLE_RIGHT = `${TABLE_STYLE_BASE} pl-5xl text-right`;
|
|
9173
|
-
const CURRENCY_ICONS_MAP = {
|
|
9174
|
-
USD: 'DollarIcon',
|
|
9175
|
-
EUR: 'EuroIcon',
|
|
9176
|
-
CNY: 'ChineseYuanRenminbiIcon',
|
|
9177
|
-
};
|
|
9178
|
-
const CurrencyTable = JSX(({ className, exchangeCurrencyItems }) => (jsxs("table", { className: style('h-fit w-full', className), children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { className: TABLE_HEAD_STYLE, children: jsx(Text, { size: "text-m", children: "\u0412\u0430\u043B\u044E\u0442\u0430" }) }), jsx("th", { className: TABLE_HEAD_STYLE_CENTER, children: jsx(Text, { size: "text-m", children: "\u041A\u0443\u043F\u0438\u0442\u044C" }) }), jsx("th", { className: TABLE_HEAD_STYLE_RIGHT, children: jsx(Text, { size: "text-m", children: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C" }) })] }) }), jsx("tbody", { children: exchangeCurrencyItems.map(renderCurrencyRow) })] })));
|
|
9179
|
-
const renderCurrencyRow = (exchangeCurrencyItem) => {
|
|
9180
|
-
const currency = exchangeCurrencyItem?.currency?.currency;
|
|
9181
|
-
return (jsxs("tr", { className: "pb-2xs text-h6", children: [jsx("td", { className: "pt-m m-auto flex text-left", children: jsxs("div", { className: "flex items-center gap-xs", children: [currency ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx(Text, { size: "text-h6", children: currency })] }) }), jsx("td", { className: "pt-m pl-5xl text-center", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }) }), jsx("td", { className: "pt-m pl-5xl text-right", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) }) })] }, currency));
|
|
9182
|
-
};
|
|
9183
|
-
|
|
9184
|
-
const icon = { icon: 'GpsIcon' };
|
|
9185
|
-
const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: style('flex gap-s w-full justify-between @sm:justify-center', className), children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
|
|
9186
|
-
|
|
9187
|
-
const roundTo = (value, precision = 2) => {
|
|
9188
|
-
const factor = 10 ** precision;
|
|
9189
|
-
return Math.round(parseFloat(String(value)) * factor) / factor;
|
|
9190
|
-
};
|
|
9191
|
-
|
|
9192
|
-
const calculateResult = (value, rate, precision) => {
|
|
9193
|
-
const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
|
|
9194
|
-
return Number.isInteger(result) ? result : roundTo(result);
|
|
9195
|
-
};
|
|
9196
|
-
const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
|
|
9197
|
-
|
|
9198
|
-
function assertNonEmpty(value) {
|
|
9199
|
-
if (!value) {
|
|
9200
|
-
throw new Error('Value should be fulfilled');
|
|
9201
|
-
}
|
|
9202
|
-
return value;
|
|
9203
|
-
}
|
|
9204
|
-
|
|
9205
|
-
const baseTableFunc = (table) => (input) => {
|
|
9206
|
-
const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
|
|
9207
|
-
return unit(input);
|
|
9208
|
-
};
|
|
9209
|
-
const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
|
|
9210
|
-
tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
|
|
9211
|
-
class TableFuncBuilder {
|
|
9212
|
-
parent;
|
|
9213
|
-
predicate;
|
|
9214
|
-
unit;
|
|
9215
|
-
get entry() {
|
|
9216
|
-
return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
|
|
9217
|
-
}
|
|
9218
|
-
constructor(parent, predicate, unit) {
|
|
9219
|
-
this.parent = parent;
|
|
9220
|
-
this.predicate = predicate;
|
|
9221
|
-
this.unit = unit;
|
|
9222
|
-
}
|
|
9223
|
-
if(predicate) {
|
|
9224
|
-
return new TableFuncBuilder(this, predicate);
|
|
9225
|
-
}
|
|
9226
|
-
then(unit) {
|
|
9227
|
-
return new TableFuncBuilder(this.parent, this.predicate, unit);
|
|
9228
|
-
}
|
|
9229
|
-
else(unit) {
|
|
9230
|
-
return baseTableFunc([...buildTable(this), [() => true, unit]]);
|
|
9231
|
-
}
|
|
9232
|
-
}
|
|
9233
|
-
const buildTable = (builder) => [
|
|
9234
|
-
...(builder?.parent ? buildTable(builder.parent) : []),
|
|
9235
|
-
builder.entry,
|
|
9236
|
-
];
|
|
9237
|
-
|
|
9238
|
-
const callbackCurrencySelect = (props) => tableFunc([
|
|
9239
|
-
[
|
|
9240
|
-
(_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
|
|
9241
|
-
() => props.handleConvert(props.value, Currency.RUB),
|
|
9242
|
-
],
|
|
9243
|
-
[
|
|
9244
|
-
(_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
|
|
9245
|
-
() => props.handleConvert(props.value, Currency.USD),
|
|
9246
|
-
],
|
|
9247
|
-
[
|
|
9248
|
-
(_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
|
|
9249
|
-
() => props.handleConvert(props.value, Currency.CNY),
|
|
9250
|
-
],
|
|
9251
|
-
[() => true, () => props.handleConvert(props.value)],
|
|
9252
|
-
])(props)?.();
|
|
9253
|
-
|
|
9254
|
-
function renderInput(props) {
|
|
9255
|
-
const { placeholder, rates, selected, value, onChange, setSelected } = props;
|
|
9256
|
-
const ratesOptions = rates.map((_) => ({
|
|
9257
|
-
key: _?.currency?.currency ?? '',
|
|
9258
|
-
text: _?.currency?.currency ?? '',
|
|
9259
|
-
}));
|
|
9260
|
-
const selectedValue = { key: selected, text: selected };
|
|
9261
|
-
return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none -mr-20", placeholder: placeholder, type: "text", value: value, onChange: onChange }), ratesOptions.length ? (jsx(Select, { className: "absolute right-0", isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
|
|
9262
|
-
}
|
|
9263
|
-
|
|
9264
|
-
const ExchangeCurrencyCalculator = JSX(({ className = '', currencyRatesBuy, currencyRatesSell, button }) => {
|
|
9265
|
-
const [calcState, setCalcState] = useState({
|
|
9266
|
-
inputSell: '',
|
|
9267
|
-
inputBuy: '',
|
|
9268
|
-
selectSell: currencyRatesBuy?.[0]?.currency?.currency || Currency.RUB,
|
|
9269
|
-
selectBuy: currencyRatesSell?.[0]?.currency?.currency || Currency.USD,
|
|
9270
|
-
});
|
|
9271
|
-
const handleSetCalcState = useCallback((newState) => setCalcState((oldState) => ({ ...oldState, ...newState })), []);
|
|
9272
|
-
return (jsxs("div", { className: `flex flex-col gap-m pt-2xl ${className}`, children: [currencyRatesBuy && currencyRatesSell ? (jsxs("div", { className: "grid gap-m", children: [renderInput({
|
|
9273
|
-
placeholder: 'Хочу продать',
|
|
9274
|
-
rates: currencyRatesSell,
|
|
9275
|
-
selected: calcState.selectSell,
|
|
9276
|
-
setSelected: handleSelectSell(calcState, handleSetCalcState, currencyRatesSell),
|
|
9277
|
-
value: calcState.inputSell,
|
|
9278
|
-
onChange: (value) => handleInputSell(handleSetCalcState, currencyRatesSell)(value, calcState.selectSell, calcState.selectBuy),
|
|
9279
|
-
}), renderInput({
|
|
9280
|
-
placeholder: 'Получу',
|
|
9281
|
-
rates: currencyRatesBuy,
|
|
9282
|
-
selected: calcState.selectBuy,
|
|
9283
|
-
setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
|
|
9284
|
-
value: calcState.inputBuy,
|
|
9285
|
-
onChange: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
|
|
9286
|
-
})] })) : null, button?.text ? (jsx(LinkButton, { text: button.text, version: button?.version, ...button })) : null] }));
|
|
9287
|
-
});
|
|
9288
|
-
const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
|
|
9289
|
-
setCalcState({ selectSell: value });
|
|
9290
|
-
callbackCurrencySelect({
|
|
9291
|
-
value,
|
|
9292
|
-
oppositeValue: calcState.selectBuy,
|
|
9293
|
-
handleConvert: (currencyFrom = calcState.selectSell, currencyTo = calcState.selectBuy) => {
|
|
9294
|
-
handleInputSell(setCalcState, currencyRatesSell)(calcState.inputSell, currencyFrom, currencyTo);
|
|
9295
|
-
},
|
|
9296
|
-
});
|
|
9297
|
-
};
|
|
9298
|
-
const handleSelectBuy = (calcState, setCalcState, currencyRatesBuy) => (value) => {
|
|
9299
|
-
setCalcState({ selectBuy: value });
|
|
9300
|
-
callbackCurrencySelect({
|
|
9301
|
-
value,
|
|
9302
|
-
oppositeValue: calcState.selectSell,
|
|
9303
|
-
handleConvert: (currencyTo = calcState.selectBuy, currencyFrom = calcState.selectSell) => handleInputBuy(setCalcState, currencyRatesBuy)(calcState.inputBuy, currencyTo, currencyFrom),
|
|
9304
|
-
});
|
|
9305
|
-
};
|
|
9306
|
-
const handleInputSell = (setCalcState, currencyRatesSell) => (value, currencyFrom, currencyTo) => {
|
|
9307
|
-
setCalcState({ inputSell: formatValue(value), selectBuy: currencyTo });
|
|
9308
|
-
const rate = currencyRatesSell.find((_) => _.currency?.currency === currencyTo)?.buyExchangeRate ||
|
|
9309
|
-
currencyRatesSell.find((_) => _.currency?.currency === currencyFrom)?.buyExchangeRate;
|
|
9310
|
-
if (rate) {
|
|
9311
|
-
setCalcState({
|
|
9312
|
-
inputBuy: String(calculateResult(value, rate, currencyFrom === Currency.RUB) || ''),
|
|
9313
|
-
});
|
|
9314
|
-
}
|
|
9315
|
-
};
|
|
9316
|
-
const handleInputBuy = (setCalcState, currencyRatesBuy) => (value, currencyTo, currencyFrom) => {
|
|
9317
|
-
setCalcState({ inputBuy: formatValue(value), selectSell: currencyFrom });
|
|
9318
|
-
const rate = currencyRatesBuy.find((_) => _.currency?.currency === currencyFrom)?.saleExchangeRate ||
|
|
9319
|
-
currencyRatesBuy.find((_) => _.currency?.currency === currencyTo)?.saleExchangeRate;
|
|
9320
|
-
if (rate) {
|
|
9321
|
-
setCalcState({
|
|
9322
|
-
inputSell: String(calculateResult(value, rate, currencyTo === Currency.RUB) || ''),
|
|
9323
|
-
});
|
|
9324
|
-
}
|
|
9325
|
-
};
|
|
9326
|
-
|
|
9327
|
-
const EXCHANGE_RATES_URL = `${API_BASE_URI$1}/exchangerates`;
|
|
9328
|
-
function useFetchExchangeRateData(currentRegion) {
|
|
9329
|
-
const regionCode = currentRegion?.code || '000';
|
|
9330
|
-
const { data } = useAsyncData(EXCHANGE_RATES_URL + `?regionCode=${regionCode}`, fetchJSONUnsafe);
|
|
9331
|
-
return data || {};
|
|
9332
|
-
}
|
|
9333
|
-
|
|
9334
|
-
const ExchangeRateTile = JSX(({ className = '', title = 'Курсы обмена валют', button, ...rest }) => {
|
|
9335
|
-
const currentLocation = useLocation();
|
|
9336
|
-
const exchangeRates = useFetchExchangeRateData(currentLocation);
|
|
9337
|
-
const currencyRates = getCurrencyRates(exchangeRates?.exchangeRate?.currencies);
|
|
9338
|
-
const currencyRatesBuy = currencyRates.filter((_) => _.buyExchangeRate);
|
|
9339
|
-
currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
|
|
9340
|
-
const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
|
|
9341
|
-
currencyRatesSell.push({ currency: { currency: Currency.RUB } });
|
|
9342
|
-
return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex w-full gap-6xl flex-wrap @lg:flex-nowrap", children: [jsxs("div", { className: "w-full @2xl:w-auto @5xl:w-1/2", children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { address: exchangeRates?.address })] }), jsx(ExchangeCurrencyCalculator, { className: "grow w-1/2", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })] }) }) }));
|
|
9343
|
-
});
|
|
9344
|
-
const getCurrencyRates = (currencies) => currencies?.filter((_) => [1, 2, 3].includes(_?.currency?.id)) || [];
|
|
9345
|
-
|
|
9346
9125
|
const LinkList = JSX(({ className = '', items }) => {
|
|
9347
9126
|
const link = useLink();
|
|
9348
9127
|
return (jsx("ul", { className: style('flex flex-col gap-s w-full', className), children: items?.map(renderLinkListItem(link)) }));
|
|
@@ -9732,6 +9511,23 @@
|
|
|
9732
9511
|
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: [__html ? jsx(RichText, { __html: __html, itemSize: "list-m" }) : null, 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] })] }) }));
|
|
9733
9512
|
});
|
|
9734
9513
|
|
|
9514
|
+
const REGION_URL = `${API_BASE_URI$1}/region`;
|
|
9515
|
+
function useLocation(defaultLocation = 'Москва') {
|
|
9516
|
+
const locationStore = useLocalStore();
|
|
9517
|
+
return locationStore.location ?? { name: defaultLocation };
|
|
9518
|
+
}
|
|
9519
|
+
function useDefaultLocation(defaultLocation = 'Москва') {
|
|
9520
|
+
const locationStore = useLocalStore();
|
|
9521
|
+
const preselectLocation = useCallback(async () => {
|
|
9522
|
+
if (!locationStore.location) {
|
|
9523
|
+
const region = await fetchJSON(REGION_URL);
|
|
9524
|
+
locationStore.location = region ?? { name: defaultLocation };
|
|
9525
|
+
}
|
|
9526
|
+
}, [locationStore, defaultLocation]);
|
|
9527
|
+
useAsyncData(REGION_URL, preselectLocation);
|
|
9528
|
+
return locationStore;
|
|
9529
|
+
}
|
|
9530
|
+
|
|
9735
9531
|
const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
|
|
9736
9532
|
const FiltrationForm = JSX(({ filters, field: { field, reset }, onlyOffice, labels }) => {
|
|
9737
9533
|
const visibleFiltersNum = onlyOffice ? 5 : 6;
|
|
@@ -10628,13 +10424,11 @@
|
|
|
10628
10424
|
Carousel,
|
|
10629
10425
|
CarouselCard,
|
|
10630
10426
|
CarouselCatalogCard,
|
|
10631
|
-
CarouselLinks,
|
|
10632
10427
|
CarouselRecommendationCard,
|
|
10633
10428
|
CarouselTariffsCard,
|
|
10634
10429
|
DepositFiltration,
|
|
10635
10430
|
Depository,
|
|
10636
10431
|
ErrorBlock,
|
|
10637
|
-
ExchangeRateTile,
|
|
10638
10432
|
Footer,
|
|
10639
10433
|
GalleryLayout,
|
|
10640
10434
|
GrantSupport,
|
|
@@ -10778,7 +10572,7 @@
|
|
|
10778
10572
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10779
10573
|
});
|
|
10780
10574
|
|
|
10781
|
-
const packageVersion = "0.14.
|
|
10575
|
+
const packageVersion = "0.14.840";
|
|
10782
10576
|
|
|
10783
10577
|
exports.Blocks = Blocks;
|
|
10784
10578
|
exports.ContentPage = ContentPage;
|