@redneckz/wildless-cms-uni-blocks 0.3.84 → 0.3.85
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +388 -322
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/Logo.svg +1 -0
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/dist/components/Calculator/BonusCalculatorForm.js +23 -29
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +7 -7
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +14 -4
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/dist/components/Calculator/CreditCalculatorForm.js +38 -41
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +14 -28
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Rate.d.ts +7 -0
- package/dist/components/Calculator/Rate.js +6 -0
- package/dist/components/Calculator/Rate.js.map +1 -0
- package/dist/components/Calculator/constants.d.ts +13 -4
- package/dist/components/Calculator/constants.js +34 -5
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/getBonus.d.ts +2 -0
- package/dist/components/Calculator/getBonus.js +16 -0
- package/dist/components/Calculator/getBonus.js.map +1 -0
- package/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/dist/components/Calculator/getDefaultMonths.js +1 -4
- package/dist/components/Calculator/getDefaultMonths.js.map +1 -1
- package/dist/components/Calculator/getDefaultSum.d.ts +1 -2
- package/dist/components/Calculator/getDefaultSum.js +1 -3
- package/dist/components/Calculator/getDefaultSum.js.map +1 -1
- package/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/dist/components/Calculator/getMonthlyPayment.js +10 -11
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js +3 -3
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/dist/components/Calculator/renderInitialFeeInput.js +7 -6
- package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/dist/components/Calculator/renderMonthsInput.js +4 -3
- package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
- package/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/dist/components/Calculator/renderRealEstateValue.js +6 -5
- package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/dist/components/Calculator/renderWantedSumInput.js +5 -7
- package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
- package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/dist/components/Calculator/useCalculatorParams.js +12 -0
- package/dist/components/Calculator/useCalculatorParams.js.map +1 -0
- package/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -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 +2 -0
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/dist/components/ExchangeRateTile/renderButton.js +2 -2
- package/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +2 -2
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -2
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/dist/components/Footer/HorizontalNavigationLink.js +6 -0
- package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/dist/components/Footer/MediaButton.js +2 -1
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +2 -2
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/TextInformation.mobile.js +2 -2
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.d.ts +8 -0
- package/dist/components/Footer/TextInformationLink.js +6 -0
- package/dist/components/Footer/TextInformationLink.js.map +1 -0
- package/dist/components/Gallery/Gallery.mobile.js +2 -1
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +3 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +2 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +3 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +3 -2
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.mobile.js +2 -1
- package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/dist/components/Tile/Tile.js +4 -3
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +7 -3
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/hooks/useExchangeRates.js +5 -7
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +2 -0
- package/dist/icons/IconName.js.map +1 -1
- package/dist/model/Picture.d.ts +4 -3
- package/dist/services/sitemap/findActiveSubItem.js +1 -2
- package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.js +1 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/dist/ui-kit/Foldable/Foldable.js +4 -2
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
- package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +1 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/dist/ui-kit/Img/Img.d.ts +0 -3
- package/dist/ui-kit/Img/Img.js +4 -30
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
- package/dist/ui-kit/Img/Img.mobile.js +4 -31
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
- package/dist/ui-kit/Img/ImgInner.js +19 -0
- package/dist/ui-kit/Img/ImgInner.js.map +1 -0
- package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
- package/dist/ui-kit/Logo/Logo.js +1 -9
- package/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
- package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
- package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +7 -7
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Rate.d.ts +7 -0
- package/lib/components/Calculator/Rate.js +4 -0
- package/lib/components/Calculator/Rate.js.map +1 -0
- package/lib/components/Calculator/constants.d.ts +13 -4
- package/lib/components/Calculator/constants.js +33 -4
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/getBonus.d.ts +2 -0
- package/lib/components/Calculator/getBonus.js +13 -0
- package/lib/components/Calculator/getBonus.js.map +1 -0
- package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/lib/components/Calculator/getDefaultMonths.js +1 -4
- package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
- package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
- package/lib/components/Calculator/getDefaultSum.js +1 -3
- package/lib/components/Calculator/getDefaultSum.js.map +1 -1
- package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/lib/components/Calculator/getMonthlyPayment.js +11 -12
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
- package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/lib/components/Calculator/renderMonthsInput.js +4 -3
- package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
- package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/lib/components/Calculator/renderRealEstateValue.js +6 -5
- package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/lib/components/Calculator/renderWantedSumInput.js +5 -7
- package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
- package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/lib/components/Calculator/useCalculatorParams.js +9 -0
- package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
- package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -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 +2 -0
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/lib/components/ExchangeRateTile/renderButton.js +2 -2
- package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +2 -2
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
- package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/lib/components/Footer/MediaButton.js +2 -1
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +2 -2
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/TextInformation.mobile.js +2 -2
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.d.ts +8 -0
- package/lib/components/Footer/TextInformationLink.js +4 -0
- package/lib/components/Footer/TextInformationLink.js.map +1 -0
- package/lib/components/Gallery/Gallery.mobile.js +2 -1
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +3 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +3 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
- package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
- package/lib/components/Tile/Tile.js +4 -3
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +7 -3
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/hooks/useExchangeRates.js +5 -7
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +2 -0
- package/lib/icons/IconName.js.map +1 -1
- package/lib/model/Picture.d.ts +4 -3
- package/lib/services/sitemap/findActiveSubItem.js +1 -2
- package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.js +1 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/lib/ui-kit/Foldable/Foldable.js +4 -2
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
- package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +1 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/lib/ui-kit/Img/Img.d.ts +0 -3
- package/lib/ui-kit/Img/Img.js +4 -29
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
- package/lib/ui-kit/Img/Img.mobile.js +4 -30
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
- package/lib/ui-kit/Img/ImgInner.js +17 -0
- package/lib/ui-kit/Img/ImgInner.js.map +1 -0
- package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
- package/lib/ui-kit/Logo/Logo.js +1 -9
- package/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
- package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
- package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +115 -91
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +7 -7
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
- package/mobile/dist/components/Calculator/Rate.js +6 -0
- package/mobile/dist/components/Calculator/Rate.js.map +1 -0
- package/mobile/dist/components/Calculator/constants.d.ts +13 -4
- package/mobile/dist/components/Calculator/constants.js +34 -5
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
- package/mobile/dist/components/Calculator/getBonus.js +16 -0
- package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
- package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
- package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
- package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
- package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
- package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
- package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
- package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
- package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- 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.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/mobile/dist/components/Footer/MediaButton.js +2 -1
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +2 -2
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
- package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
- package/mobile/dist/components/Gallery/Gallery.js +2 -1
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +4 -3
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +7 -3
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.js +5 -7
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +2 -0
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/model/Picture.d.ts +4 -3
- package/mobile/dist/services/sitemap/findActiveSubItem.js +1 -2
- package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
- package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
- package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
- package/mobile/dist/ui-kit/Img/Img.js +4 -31
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
- package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
- package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
- package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +7 -7
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
- package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
- package/mobile/lib/components/Calculator/Rate.js +4 -0
- package/mobile/lib/components/Calculator/Rate.js.map +1 -0
- package/mobile/lib/components/Calculator/constants.d.ts +13 -4
- package/mobile/lib/components/Calculator/constants.js +33 -4
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
- package/mobile/lib/components/Calculator/getBonus.js +13 -0
- package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
- package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
- package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
- package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
- package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
- package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
- package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
- package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
- package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
- package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
- package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
- package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
- package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
- package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
- package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
- package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
- 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.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
- package/mobile/lib/components/Footer/MediaButton.js +2 -1
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +2 -2
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
- package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
- package/mobile/lib/components/Gallery/Gallery.js +2 -1
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +4 -3
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +7 -3
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.js +5 -7
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +2 -0
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/model/Picture.d.ts +4 -3
- package/mobile/lib/services/sitemap/findActiveSubItem.js +1 -2
- package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
- package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
- package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
- package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
- package/mobile/lib/ui-kit/Img/Img.js +4 -30
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
- package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
- package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
- package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
- package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
- package/mobile/src/components/Calculator/Calculator.tsx +8 -8
- package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
- package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
- package/mobile/src/components/Calculator/Rate.tsx +22 -0
- package/mobile/src/components/Calculator/constants.ts +41 -4
- package/mobile/src/components/Calculator/getBonus.ts +38 -0
- package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
- package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
- package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
- package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
- package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
- package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
- package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
- package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
- package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
- package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
- package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
- package/mobile/src/components/Footer/MediaButton.tsx +2 -7
- package/mobile/src/components/Footer/TextInformation.tsx +2 -22
- package/mobile/src/components/Footer/TextInformationLink.tsx +23 -0
- package/mobile/src/components/Gallery/Gallery.tsx +3 -5
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -3
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
- package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
- package/mobile/src/components/Tile/Tile.example.json +0 -1
- package/mobile/src/components/Tile/Tile.tsx +6 -3
- package/mobile/src/content-page-repository/transformPicture.ts +7 -5
- package/mobile/src/hooks/useExchangeRates.ts +6 -7
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/Logo.svg +7 -0
- package/mobile/src/model/Picture.ts +5 -3
- package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -3
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
- package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
- package/mobile/src/ui-kit/Img/Img.tsx +4 -71
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
- package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
- package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
- package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
- package/package.json +2 -1
- package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
- package/src/components/Calculator/Calculator.fixture.tsx +2 -14
- package/src/components/Calculator/Calculator.tsx +8 -8
- package/src/components/Calculator/CalculatorContent.ts +14 -4
- package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
- package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
- package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
- package/src/components/Calculator/Rate.tsx +22 -0
- package/src/components/Calculator/constants.ts +41 -4
- package/src/components/Calculator/getBonus.ts +38 -0
- package/src/components/Calculator/getDefaultMonths.ts +2 -7
- package/src/components/Calculator/getDefaultSum.ts +2 -5
- package/src/components/Calculator/getMonthlyPayment.ts +12 -28
- package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
- package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
- package/src/components/Calculator/renderMonthsInput.tsx +7 -10
- package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
- package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
- package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
- package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
- package/src/components/Calculator/useCalculatorParams.ts +16 -0
- package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
- package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
- package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
- package/src/components/Footer/HorizontalNavigation.tsx +2 -20
- package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
- package/src/components/Footer/MediaButton.tsx +2 -7
- package/src/components/Footer/TextInformation.mobile.tsx +2 -22
- package/src/components/Footer/TextInformation.tsx +2 -22
- package/src/components/Footer/TextInformationLink.tsx +23 -0
- package/src/components/Gallery/Gallery.mobile.tsx +3 -5
- package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
- package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.tsx +8 -2
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -11
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
- package/src/components/StepsBlock/StepsBlock.tsx +10 -8
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
- package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/Tile/Tile.example.json +0 -1
- package/src/components/Tile/Tile.tsx +6 -3
- package/src/content-page-repository/transformPicture.ts +7 -5
- package/src/hooks/useExchangeRates.ts +6 -7
- package/src/icons/IconName.ts +4 -1
- package/src/icons/Logo.svg +7 -0
- package/src/model/Picture.ts +5 -3
- package/src/services/sitemap/findActiveSubItem.ts +2 -3
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/src/ui-kit/Button/ButtonSection.tsx +1 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
- package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
- package/src/ui-kit/Foldable/Foldable.tsx +7 -5
- package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
- package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
- package/src/ui-kit/Heading/Heading.tsx +1 -1
- package/src/ui-kit/Img/Img.mobile.tsx +4 -71
- package/src/ui-kit/Img/Img.tsx +6 -60
- package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
- package/src/ui-kit/Img/ImgInner.tsx +37 -0
- package/src/ui-kit/Img/ImgProps.ts +1 -0
- package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
- package/src/ui-kit/Logo/Logo.tsx +5 -11
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
- package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
- package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
- package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/dist/components/Calculator/getCalculatorParams.js +0 -12
- package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
- package/dist/components/Calculator/renderRate.d.ts +0 -8
- package/dist/components/Calculator/renderRate.js +0 -9
- package/dist/components/Calculator/renderRate.js.map +0 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
- package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
- package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
- package/dist/hooks/useCreditCalculatorData.js +0 -15
- package/dist/hooks/useCreditCalculatorData.js.map +0 -1
- package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
- package/dist/ui-kit/SearchBar.mobile.js +0 -14
- package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
- package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/lib/components/Calculator/getCalculatorParams.js +0 -9
- package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
- package/lib/components/Calculator/renderRate.d.ts +0 -8
- package/lib/components/Calculator/renderRate.js +0 -6
- package/lib/components/Calculator/renderRate.js.map +0 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
- package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
- package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
- package/lib/hooks/useCreditCalculatorData.js +0 -12
- package/lib/hooks/useCreditCalculatorData.js.map +0 -1
- package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
- package/lib/ui-kit/SearchBar.mobile.js +0 -12
- package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
- package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
- package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
- package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
- package/mobile/dist/components/Calculator/renderRate.js +0 -9
- package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
- package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
- package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
- package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
- package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
- package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
- package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
- package/mobile/lib/components/Calculator/renderRate.js +0 -6
- package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
- package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
- package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
- package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
- package/mobile/src/components/Calculator/renderRate.tsx +0 -22
- package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
- package/src/components/Calculator/getCalculatorParams.ts +0 -18
- package/src/components/Calculator/renderRate.tsx +0 -22
- package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
- package/src/hooks/useCreditCalculatorData.ts +0 -20
- package/src/ui-kit/SearchBar.mobile.tsx +0 -45
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
interface HorizontalNavigationLinkProps extends LinkProps {
|
|
3
|
+
className: string;
|
|
4
|
+
index: number;
|
|
5
|
+
onClick: (ev: MouseEvent) => any;
|
|
6
|
+
}
|
|
7
|
+
export declare const HorizontalNavigationLink: (props: import("@redneckz/uni-jsx").PropsWithChildren<Partial<HorizontalNavigationLinkProps>, any>, context?: any) => any;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.HorizontalNavigationLink = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.HorizontalNavigationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
6
|
+
//# sourceMappingURL=HorizontalNavigationLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalNavigationLink.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigationLink.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,mFAAmF,SAAS,EAAE,EACzG,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
|
|
@@ -39,6 +39,7 @@ exports.MediaButton = (0, uni_jsx_1.JSX)(({ href, version = 'primary' }) => {
|
|
|
39
39
|
? 'bg-secondary-light hover:bg-secondary-hover'
|
|
40
40
|
: 'border-main-divider border-solid border-[1px] hover:bg-primary-main';
|
|
41
41
|
const isPrimary = version === 'primary';
|
|
42
|
-
|
|
42
|
+
const imageClassName = isPrimary ? 'group-hover:text-white' : '';
|
|
43
|
+
return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, imageClassName: imageClassName, width: "24", height: "24", asSVG: true })) : null }));
|
|
43
44
|
});
|
|
44
45
|
//# sourceMappingURL=MediaButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAE3C,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD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AE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,YAExB,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAClF,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -3,10 +3,10 @@ exports.TextInformation = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const useLink_1 = require("../../hooks/useLink");
|
|
6
|
+
const TextInformationLink_1 = require("./TextInformationLink");
|
|
6
7
|
exports.TextInformation = (0, uni_jsx_1.JSX)(({ className, links, context }) => {
|
|
7
8
|
const router = context.useRouter();
|
|
8
9
|
const { handlerDecorator } = context;
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "py-6", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-normal text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `flex flex-col justify-start items-start gap-2`, children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "py-6", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-normal text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `flex flex-col justify-start items-start gap-2`, children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink_1.TextInformationLink, { index: i, className: "font-normal", ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
|
|
10
11
|
});
|
|
11
|
-
const TextInformationLink = (0, uni_jsx_1.JSX)(({ className, index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className || ''}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
12
12
|
//# sourceMappingURL=TextInformation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;
|
|
1
|
+
{"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,+DAA4D;AAE/C,QAAA,eAAe,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aAClC,gCAAK,SAAS,EAAC,MAAM,YACnB,iCAAM,SAAS,EAAC,mDAAmD,YAChE,oBAAoB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,mHAAmH,GAC3J,GACH,EACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,+CAA+C,YAC5D,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,yCAAmB,IAElB,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,aAAa,KACnB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
+
interface TextInformationLinkProps extends LinkProps {
|
|
3
|
+
className: string;
|
|
4
|
+
index: number;
|
|
5
|
+
onClick: (ev: MouseEvent) => any;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextInformationLink: (props: import("@redneckz/uni-jsx").PropsWithChildren<Partial<TextInformationLinkProps>, any>, context?: any) => any;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.TextInformationLink = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.TextInformationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
|
|
6
|
+
//# sourceMappingURL=TextInformationLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInformationLink.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformationLink.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,qIACT,SACF,EAAE,EACF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
|
|
@@ -12,7 +12,8 @@ const blockStyle = {
|
|
|
12
12
|
secondary: 'bg-primary-main text-white',
|
|
13
13
|
};
|
|
14
14
|
exports.Gallery = (0, uni_jsx_1.JSX)(({ context, title, description, cards = [], className, orientation = 'horizontal' }) => {
|
|
15
|
-
|
|
15
|
+
const headingClassName = description ? 'mb-2' : 'mb-5';
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-5", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${headingClassName}`, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards, context)] }));
|
|
16
17
|
});
|
|
17
18
|
function renderCardsLayout(orientation, cards, context) {
|
|
18
19
|
return orientation === 'horizontal' ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { context: context, children: cards?.map(renderCard) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAC3C,yDAA0D;AAC1D,qFAAkF;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,qCACE,SAAS,EAAE,2EAA2E,SAAS,EAAE,aAEjG,iCAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,
|
|
1
|
+
{"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAC3C,yDAA0D;AAC1D,qFAAkF;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE;IACrF,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAEvD,OAAO,CACL,qCACE,SAAS,EAAE,2EAA2E,SAAS,EAAE,aAEjG,iCAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE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AC,EAAE,EAAE,YACpF,IAAI,CAAC,IAAI,GACL,KALC,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -3,15 +3,15 @@ exports.GroupBlockTabs = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
exports.GroupBlockTabs = (0, uni_jsx_1.JSX)((props) => {
|
|
6
|
-
const { tabs, currentTag, onTabClick, className = '', isShowCounter } = props;
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: `mb-2 box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab(onTabClick,
|
|
6
|
+
const { tabs, currentTag, onTabClick, className = '', isShowCounter = false } = props;
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `mb-2 box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab(onTabClick, currentTag, isShowCounter)) }));
|
|
8
8
|
});
|
|
9
9
|
const badgeStyle = 'min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm';
|
|
10
|
-
const renderTab = (onTabClick,
|
|
10
|
+
const renderTab = (onTabClick, currentTag, isShowCounter = false) => (tab, i) => {
|
|
11
11
|
const isActive = currentTag === tab.tag;
|
|
12
12
|
const tabBg = isActive ? 'bg-primary-main' : 'group bg-white';
|
|
13
13
|
const tabText = isActive ? 'text-white' : 'text-secondary-text group-hover:text-primary-main';
|
|
14
|
-
const counterBlockStyle = `${badgeStyle}
|
|
14
|
+
const counterBlockStyle = `${badgeStyle}
|
|
15
15
|
${isActive ? 'bg-white/30 text-white' : 'bg-secondary-light text-secondary-text'}`;
|
|
16
16
|
return ((0, jsx_runtime_1.jsx)("div", { className: `flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${tabBg}`, role: "tab", onClick: () => onTabClick(tab.tag), "aria-selected": String(isActive), tag: tab?.tag, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 items-center justify-center", children: [tab?.title ? (0, jsx_runtime_1.jsx)("h3", { className: tabText, children: tab?.title }) : null, isShowCounter ? ((0, jsx_runtime_1.jsx)("div", { className: `flex items-center justify-center ml-8 text-s-bold ${counterBlockStyle}`, children: (0, jsx_runtime_1.jsx)("span", { children: tab.count }) })) : null] }) }, String(i)));
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroupBlockTabs.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlockTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAa3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"GroupBlockTabs.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlockTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAa3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,gCAAK,SAAS,EAAE,gCAAgC,SAAS,EAAE,EAAE,IAAI,EAAC,SAAS,YACxE,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC,GACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,uDAAuD,CAAC;AAE3E,MAAM,SAAS,GACb,CAAC,UAA2B,EAAE,UAAmB,EAAE,aAAa,GAAG,KAAK,EAAE,EAAE,CAC5E,CAAC,GAAkB,EAAE,CAAS,EAAE,EAAE;IAChC,MAAM,QAAQ,GAAG,UAAU,KAAK,GAAG,CAAC,GAAG,CAAC;IACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAC9D,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,mDAAmD,CAAC;IAC9F,MAAM,iBAAiB,GAAG,GAAG,UAAU;QACnC,QAAQ,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,wCAAwC,EAAE,CAAC;IAErF,OAAO,CACL,gCAEE,SAAS,EAAE,4EAA4E,KAAK,EAAE,EAC9F,IAAI,EAAC,KAAK,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,mBACnB,MAAM,CAAC,QAAQ,CAAC,EAC/B,GAAG,EAAE,GAAG,EAAE,GAAG,YAEb,iCAAK,SAAS,EAAC,yCAAyC,aACrD,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,+BAAI,SAAS,EAAE,OAAO,YAAG,GAAG,EAAE,KAAK,GAAM,CAAC,CAAC,CAAC,IAAI,EAC7D,aAAa,CAAC,CAAC,CAAC,CACf,gCACE,SAAS,EAAE,qDAAqD,iBAAiB,EAAE,YAEnF,2CAAO,GAAG,CAAC,KAAK,GAAQ,GACpB,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IAhBD,MAAM,CAAC,CAAC,CAAC,CAiBV,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContentPageContext } from '
|
|
1
|
+
import type { ContentPageContext } from '../ContentPage/ContentPageContext';
|
|
2
2
|
import type { UniBlockProps } from '../../types';
|
|
3
3
|
import type { GroupBlockDef } from './BlocksTypeProps';
|
|
4
4
|
import { GroupBlockContent } from './GroupBlockContent';
|
|
@@ -4,11 +4,13 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const style2className_1 = require("../../utils/style2className");
|
|
5
5
|
const EmbeddableGroupBlocks_1 = require("./EmbeddableGroupBlocks");
|
|
6
6
|
const renderBlock = ({ context, className }) => (block, i) => {
|
|
7
|
-
|
|
7
|
+
if (!block) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
const { style, blockType: type, ...rest } = block;
|
|
8
11
|
if (!type || !(type in EmbeddableGroupBlocks_1.EmbeddableGroupBlocks)) {
|
|
9
12
|
return null;
|
|
10
13
|
}
|
|
11
|
-
const { style, ...rest } = block;
|
|
12
14
|
const classNameBlock = (0, style2className_1.style2className)(style);
|
|
13
15
|
const EmbeddedBlock = EmbeddableGroupBlocks_1.EmbeddableGroupBlocks[type];
|
|
14
16
|
return ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...rest, className: classNameBlock }) }, `block_${i}`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";;;AAEA,iEAA8D;AAE9D,mEAAgE;AAQzD,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,
|
|
1
|
+
{"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";;;AAEA,iEAA8D;AAE9D,mEAAgE;AAQzD,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,EAAE,CAAS,EAAE,EAAE;IAClC,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAElD,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,6CAAqB,CAAC,EAAE;QAC7C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,cAAc,GAAG,IAAA,iCAAe,EAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,aAAa,GAAa,6CAAqB,CAAC,IAAI,CAAC,CAAC;IAE5D,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,YACvB,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,IAD1C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC;AArBS,QAAA,WAAW,eAqBpB"}
|
|
@@ -3,26 +3,25 @@ exports.InsuranceAmountBlock = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
|
|
6
|
-
const Button_1 = require("../../ui-kit/Button/Button");
|
|
7
6
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
8
7
|
const InsuranceAmountBlockInner_1 = require("./InsuranceAmountBlockInner");
|
|
9
|
-
exports.InsuranceAmountBlock = (0, uni_jsx_1.JSX)(({ className = '', context, title, insuranceTabs = [],
|
|
8
|
+
exports.InsuranceAmountBlock = (0, uni_jsx_1.JSX)(({ className = '', context, title, insuranceTabs = [], ...rest }) => {
|
|
10
9
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center", title: title, headingType: "h3" }) : null, (0, jsx_runtime_1.jsx)("div", { className: "p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]", children: insuranceTabs.map((item, i) => renderNavButton({
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center", title: title, headingType: "h3" }) : null, insuranceTabs?.length > 1 ? ((0, jsx_runtime_1.jsx)("div", { className: "p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]", children: insuranceTabs.map((item, i) => renderNavButton({
|
|
12
11
|
title: item?.title,
|
|
13
12
|
i,
|
|
14
13
|
activeSlideIndex,
|
|
15
14
|
onClick: () => setActiveSlideIndex(i),
|
|
16
|
-
})) }), (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
|
|
15
|
+
})) })) : null, (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
|
|
17
16
|
context,
|
|
18
17
|
className,
|
|
19
18
|
insuranceTabs,
|
|
20
|
-
}) })
|
|
19
|
+
}) })] }));
|
|
21
20
|
});
|
|
22
21
|
const renderInsuranceGalleries = ({ insuranceTabs, context, className = '', }) => {
|
|
23
22
|
const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
|
|
24
23
|
return insuranceGalleries?.length
|
|
25
|
-
? insuranceGalleries.map((cards) => ((0, jsx_runtime_1.jsx)(InsuranceAmountBlockInner_1.InsuranceAmountBlockInner, { context: context, className: className, cards: cards })))
|
|
24
|
+
? insuranceGalleries.map((cards, i) => ((0, jsx_runtime_1.jsx)(InsuranceAmountBlockInner_1.InsuranceAmountBlockInner, { context: context, className: className, cards: cards }, String(i))))
|
|
26
25
|
: null;
|
|
27
26
|
};
|
|
28
27
|
function renderNavButton({ title, i, activeSlideIndex, onClick }) {
|
|
@@ -30,6 +29,6 @@ function renderNavButton({ title, i, activeSlideIndex, onClick }) {
|
|
|
30
29
|
const btnClassName = isActiveBtn
|
|
31
30
|
? 'bg-primary-main text-white rounded-md'
|
|
32
31
|
: `text-secondary-text`;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m ${btnClassName}`, children: title }, String(i)));
|
|
34
33
|
}
|
|
35
34
|
//# sourceMappingURL=InsuranceAmountBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsuranceAmountBlock.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"InsuranceAmountBlock.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,4DAAyD;AACzD,0DAAuD;AACvD,2EAAwE;AAI3D,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,0EAA0E,SAAS,EAAE,KAC5F,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,I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AAK,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE;IAC9D,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,uCAAuC;QACzC,CAAC,CAAC,qBAAqB,CAAC;IAE1B,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EACjB,SAAS,EAAE,+BAA+B,YAAY,EAAE,YAEvD,KAAK,IALD,MAAM,CAAC,CAAC,CAAC,CAMP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Picture } from '../../model/Picture';
|
|
2
|
-
import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
|
|
3
2
|
/**
|
|
4
3
|
* @title Кнопка выбора программы
|
|
5
4
|
*/
|
|
@@ -10,6 +9,8 @@ export declare type CardItem = {
|
|
|
10
9
|
fee?: number;
|
|
11
10
|
/** @title Страховая сумма */
|
|
12
11
|
sum?: number;
|
|
12
|
+
/** @title Ссылка на программу*/
|
|
13
|
+
href?: string;
|
|
13
14
|
};
|
|
14
15
|
/**
|
|
15
16
|
* @title Вкладка
|
|
@@ -28,5 +29,4 @@ export interface InsuranceAmountBlockContent {
|
|
|
28
29
|
title?: string;
|
|
29
30
|
/** @title Список вкладок */
|
|
30
31
|
insuranceTabs?: InsuranceAmountBlockTabs[];
|
|
31
|
-
button?: ButtonProps;
|
|
32
32
|
}
|
|
@@ -4,6 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
|
|
6
6
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
7
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
7
8
|
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
8
9
|
exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, cards = [] }) => {
|
|
9
10
|
const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
|
|
@@ -15,20 +16,21 @@ exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', contex
|
|
|
15
16
|
const showNextButton = isGalleryScrollAvailable && galleryLength > tabsShift + 2;
|
|
16
17
|
const isLastShift = galleryLength === tabsShift + 2;
|
|
17
18
|
const showPrevButton = tabsShift > 0;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
const activeHref = cards[activeSlideIndex]?.href;
|
|
20
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `min-w-full text-center ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative mt-7 overflow-hidden", children: [galleryLength
|
|
21
|
+
? renderGallery({
|
|
22
|
+
tabsShift,
|
|
23
|
+
cards,
|
|
24
|
+
activeSlideIndex,
|
|
25
|
+
isLastShift,
|
|
26
|
+
setActiveSlideIndex,
|
|
27
|
+
})
|
|
28
|
+
: null, (0, renderArrows_1.renderArrows)({
|
|
29
|
+
handler: [handlePrevClick, handleNextClick],
|
|
30
|
+
isShown: [showPrevButton, showNextButton],
|
|
31
|
+
btnClass: ['left-[50px]', 'right-[50px]'],
|
|
32
|
+
className: 'top-[62px]',
|
|
33
|
+
}), showPrevButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white" })) : null, showNextButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white" })) : null] }), (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-[240px] p-4 text-center", version: "primary", href: activeHref, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0443" })] }));
|
|
32
34
|
});
|
|
33
35
|
function renderGallery({ tabsShift, cards, activeSlideIndex, isLastShift, setActiveSlideIndex, }) {
|
|
34
36
|
const tabsShiftWidth = isLastShift ? tabsShift * 460 - 240 : tabsShift * 460;
|
|
@@ -44,10 +46,10 @@ function renderSlide({ slide, i, activeSlideIndex, onClick }) {
|
|
|
44
46
|
const btnClassName = isActiveBtn
|
|
45
47
|
? 'shadow-dark-blue/42 border-primary-main'
|
|
46
48
|
: `ease-in duration-300 border-main-stroke`;
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className:
|
|
49
|
+
return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "p-3 rounded-full bg-secondary-light mr-[30px]", image: slide.icon, width: "70", height: "70" })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActiveBtn)] }, String(i)));
|
|
48
50
|
}
|
|
49
51
|
function renderValueBlock(title, sum) {
|
|
50
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col text-left", children: [(0, jsx_runtime_1.jsxs)("span", { className: "
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col text-left whitespace-pre", children: [(0, jsx_runtime_1.jsxs)("span", { className: "text-h6", children: [(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(sum), " \u20BD"] }), (0, jsx_runtime_1.jsx)("span", { className: "text-secondary-text text-l mt-1", children: title })] }));
|
|
51
53
|
}
|
|
52
54
|
function renderDoneIcon(isActive) {
|
|
53
55
|
return isActive ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `h-[24px] w-[24px] min-w-[24px] min-h-[24px] absolute right-4 top-4`, image: "DoneIcon", width: "24", height: "24" })) : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsuranceAmountBlockInner.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,mEAAgE;AAChE,8CAA2C;AAC3C,iFAA8E;AAoBjE,QAAA,yBAAyB,GAAG,IAAA,aAAG,EAC1C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,GAAG,EAAE,EAAE,EAAE,EAAE;IAC1C,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtD,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAC1D,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAE1D,MAAM,aAAa,GAAG,KAAK,EAAE,MAAM,IAAI,CAAC,CAAC;IAEzC,MAAM,wBAAwB,GAAG,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;IACnD,MAAM,cAAc,GAAG,wBAAwB,IAAI,aAAa,GAAG,SAAS,GAAG,CAAC,CAAC;IACjF,MAAM,WAAW,GAAG,aAAa,KAAK,SAAS,GAAG,CAAC,CAAC;IACpD,MAAM,cAAc,GA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B,uBAAC,SAAG,IACF,SAAS,EAAE,oEAAoE,EAC/E,KAAK,EAAC,UAAU,EAChB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -5,11 +5,11 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const TEXT_CLASSES = 'font-sans font-normal text-m-md';
|
|
6
6
|
const LINK_CLASSES = 'flex-1 flex items-center justify-center cursor-pointer';
|
|
7
7
|
exports.NavigatorTabItem = (0, uni_jsx_1.JSX)(({ className = '', text, active, onClick, href, target = '_self', children }) => ((0, jsx_runtime_1.jsx)("a", { className: getLinkClasses(className, active), target: target, href: href, onClick: onClick, children: (0, jsx_runtime_1.jsx)("span", { className: getTextClasses(active), children: text || children }) })));
|
|
8
|
-
const getLinkClasses = (className, active) => {
|
|
8
|
+
const getLinkClasses = (className, active = false) => {
|
|
9
9
|
const classes = active ? 'bg-primary-main' : 'group bg-white';
|
|
10
10
|
return `${classes} ${LINK_CLASSES} ${className}`;
|
|
11
11
|
};
|
|
12
|
-
const getTextClasses = (active) => {
|
|
12
|
+
const getTextClasses = (active = false) => {
|
|
13
13
|
const classes = active ? 'text-white' : 'text-secondary-text group-hover:text-primary-main ';
|
|
14
14
|
return `${classes} ${TEXT_CLASSES}`;
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigatorTabItem.js","sourceRoot":"","sources":["../../../src/components/NavigatorTabs/NavigatorTabItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AASxC,MAAM,YAAY,GAAG,iCAAiC,CAAC;AACvD,MAAM,YAAY,GAAG,wDAAwD,CAAC;AAEjE,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,EAA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EAAE,EAAE;IACxC,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,oDAAoD,CAAC;IAE7F,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC"}
|
|
@@ -4,9 +4,10 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
5
5
|
const Img_1 = require("../../ui-kit/Img/Img");
|
|
6
6
|
function renderBackwardButton(button, version, className) {
|
|
7
|
+
const { text, href, target, onClick } = button;
|
|
7
8
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
8
9
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-center ${className}`, children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel:
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: `flex items-center ${className}`, children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, onClick: onClick, children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion }, asSVG: true }) }), text ? (0, jsx_runtime_1.jsx)("span", { className: "text-m-md font-light", children: text }) : null] }));
|
|
10
11
|
}
|
|
11
12
|
exports.renderBackwardButton = renderBackwardButton;
|
|
12
13
|
//# sourceMappingURL=renderBackwardButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAE3C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAqB,EACrB,SAAiB;IAEjB,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,qBAAqB,SAAS,EAAE,aAC9C,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"renderBackwardButton.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/renderBackwardButton.tsx"],"names":[],"mappings":";;;AACA,uDAAoD;AAEpD,8CAA2C;AAE3C,SAAgB,oBAAoB,CAClC,MAA2B,EAC3B,OAAqB,EACrB,SAAiB;IAEjB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC/C,MAAM,WAAW,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC9D,MAAM,YAAY,GAAG,MAAM,EAAE,IAAI,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;IAE/D,OAAO,CACL,iCAAK,SAAS,EAAE,qBAAqB,SAAS,EAAE,aAC9C,uBAAC,eAAM,IACL,OAAO,EAAE,OAAO,EAChB,OAAO,QACP,SAAS,EAAC,mEAAmE,EAC7E,SAAS,EAAE,IAAI,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEhB,uBAAC,SAAG,IAAC,SAAS,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,WAAW,EAAE,EAAE,KAAK,SAAG,GACnE,EACR,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,sBAAsB,YAAE,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,IAC/D,CACP,CAAC;AACJ,CAAC;AAzBD,oDAyBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { UniBlockProps } from '../../types';
|
|
1
2
|
import { HeadingType } from '../../ui-kit/Heading/HeadingContent';
|
|
2
3
|
import type { ProductBlockInnerContent } from '../ProductBlock/ProductBlockContent';
|
|
3
|
-
import type { UniBlockProps } from '../../types';
|
|
4
4
|
export interface ProductGalleryBlockProps extends UniBlockProps {
|
|
5
5
|
headingType?: HeadingType;
|
|
6
6
|
block?: ProductBlockInnerContent;
|
|
@@ -9,6 +9,6 @@ const productGalleryStyleMap = {
|
|
|
9
9
|
};
|
|
10
10
|
exports.ProductGalleryBlock = (0, uni_jsx_1.JSX)(({ block, headingType, context, className = '' }) => {
|
|
11
11
|
const version = block?.version ?? 'primary';
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: `flex grow-0 shrink-0 basis-full px-4 pt-6 ${productGalleryStyleMap[version]} ${className}`, children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `flex grow-0 shrink-0 basis-full px-4 pt-6 ${productGalleryStyleMap[version]} ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "flex grow", children: (0, jsx_runtime_1.jsx)(ProductBlockInner_1.ProductBlockInner, { context: context, headingType: headingType || 'h2', ...block }) }) }));
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=ProductGalleryBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductGalleryBlock.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"ProductGalleryBlock.js","sourceRoot":"","sources":["../../../src/components/ProductGallery/ProductGalleryBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,yEAAsE;AAEtE,MAAM,sBAAsB,GAAiC;IAC3D,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAOW,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAClD,MAAM,OAAO,GAAG,KAAK,EAAE,OAAO,IAAI,SAAS,CAAC;IAE5C,OAAO,CACL,oCACE,SAAS,EAAE,6CAA6C,sBAAsB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EACtG,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAC,WAAW,YACxB,uBAAC,qCAAiB,IAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,IAAI,KAAM,KAAK,GAAI,GAChF,GACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -23,7 +23,7 @@ const renderStepTitle = (size, version, showLines) => (step, i, steps) => {
|
|
|
23
23
|
const isLastStep = steps.length - 1 === i;
|
|
24
24
|
const margin = size === 'normal' ? 'ml-[34px]' : 'ml-6';
|
|
25
25
|
const styleMap = (0, StepsBlockStyleMaps_1.getStyleMap)(version);
|
|
26
|
-
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "overflow-hidden", children: [renderIconArea(size, version), isLastStep ? null : ((0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] ${showLines ? styleMap.iconConnector : ''} ${margin}` }))] }), (0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label ? ((0, jsx_runtime_1.jsx)("div", { className: "font-medium text-m-title-xs m-0 text-left", children: step.label })) : null, step.description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${styleMap.description} text-left
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row text-center relative", children: [(0, jsx_runtime_1.jsxs)("div", { className: "overflow-hidden", children: [renderIconArea(size, version), isLastStep ? null : ((0, jsx_runtime_1.jsx)("div", { className: `min-h-8 h-full w-[2px] ${showLines ? styleMap.iconConnector : ''} ${margin}` }))] }), (0, jsx_runtime_1.jsxs)("div", { className: `flex flex-col justify-center h-fit ${STEPS_TILE_DESCRIPTION_HEIGHT_MAP[size]}`, children: [step.label ? ((0, jsx_runtime_1.jsx)("div", { className: "font-medium text-m-title-xs m-0 text-left mb-1", children: step.label })) : null, step.description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${styleMap.description} text-left`, children: step.description })) : null] })] }) }, String(i)));
|
|
27
27
|
};
|
|
28
28
|
const renderIconArea = (size, version) => (step, i) => {
|
|
29
29
|
const styleMap = (0, StepsBlockStyleMaps_1.getStyleMap)(version);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsBlock.js","sourceRoot":"","sources":["../../../src/components/StepsBlock/StepsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,0DAAuD;AACvD,8CAA2C;AAE3C,6EAA0E;AAC1E,+DAAoD;AAIpD,MAAM,cAAc,GAAgC;IAClD,MAAM,EAAE,6CAA6C;IACrD,KAAK,EAAE,6CAA6C;CACrD,CAAC;AAEF,MAAM,iCAAiC,GAAgC;IACrE,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,cAAc;CACtB,CAAC;AAEW,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EACC,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAS,GAAG,IA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M,EAAE,QAAQ,EAAE,KAAK,SAAG,CACnE,CAAC,CAAC,CAAC,CACF,2CAAO,CAAC,GAAG,CAAC,GAAQ,CACrB,GACI,GACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,12 +3,13 @@ exports.TariffsTable = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
|
-
const TariffsTableVertical_1 = require("./TariffsTableVertical");
|
|
7
6
|
const TariffsTableHorizontal_1 = require("./TariffsTableHorizontal");
|
|
7
|
+
const TariffsTableVertical_1 = require("./TariffsTableVertical");
|
|
8
8
|
exports.TariffsTable = (0, uni_jsx_1.JSX)(({ className, context, title, description, columns, rowHeaders, orientation = 'vertical' }) => {
|
|
9
9
|
const colData = getColData(columns);
|
|
10
10
|
const tiles = getTiles(rowHeaders, colData);
|
|
11
|
-
|
|
11
|
+
const headingMargin = description ? 'mb-2' : 'mb-5';
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${className}`, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: `text-center ${headingMargin}`, title: title })) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: "mb-5 text-center text-m-md", children: description }) : null, tiles?.length ? renderOrientationTable(orientation, tiles, context) : null] }));
|
|
12
13
|
});
|
|
13
14
|
function renderOrientationTable(orientation, tiles, context) {
|
|
14
15
|
return orientation === 'vertical' ? ((0, jsx_runtime_1.jsx)(TariffsTableVertical_1.TariffsTableVertical, { tiles: tiles })) : ((0, jsx_runtime_1.jsx)(TariffsTableHorizontal_1.TariffsTableHorizontal, { context: context, tiles: tiles }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"TariffsTable.js","sourceRoot":"","sources":["../../../src/components/TariffsTable/TariffsTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAOvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,GAAG,UAAU,EAAE,EAAE,EAAE;IAC5F,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5C,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpD,OAAO,CACL,qCACE,SAAS,EAAE,oEAAoE,SAAS,EAAE,aAEzF,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,eAAe,aAAa,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACtF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,4BAA4B,YAAE,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,EACpF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IACnE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,sBAAsB,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO;IACzD,OAAO,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,CAClC,uBAAC,2CAAoB,IAAC,KAAK,EAAE,KAAK,GAAI,CACvC,CAAC,CAAC,CAAC,CACF,uBAAC,+CAAsB,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAI,CAC3D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,OAAyC,EAAE,EAAE,CAC/D,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AAE3C,MAAM,QAAQ,GAAG,CACf,UAA+C,EAC/C,OAAiC,EACjC,EAAE,CACF,UAAU,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,MAAM;IACN,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;CAC3B,CAAC,CAAC,CAAC"}
|
|
@@ -26,7 +26,8 @@ const textBlockStyleMaps = {
|
|
|
26
26
|
};
|
|
27
27
|
exports.TextBlock = (0, uni_jsx_1.JSX)(({ title, description, blockVersion = 'primary', iconVersion, image, className = '', items, isDotted = true, }) => {
|
|
28
28
|
const textBlockStyleMap = textBlockStyleMaps[blockVersion];
|
|
29
|
-
|
|
29
|
+
const listBlockVersion = blockVersion === 'secondary' ? 'secondary' : 'gray';
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans px-4 py-[18px] flex flex-col ${textBlockStyleMap.background} ${className}`, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, (0, jsx_runtime_1.jsxs)("div", { className: "py-0.5", children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: `font-medium text-base mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-sm ${textBlockStyleMap.description}`, children: description })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-1 text-m-md", items: items, isDotted: isDotted, version: listBlockVersion })) : null] })] }));
|
|
30
31
|
});
|
|
31
32
|
function renderIcon(className) {
|
|
32
33
|
return ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)("div", { className: `rounded-full h-4 w-4 text-center text-xs ${className}`, children: "i" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAC3C,iDAA8C;AAK9C,MAAM,kBAAkB,GAAqD;IAC3E,OAAO,EAAE;QACP,UAAU,EAAE,UAAU;QACtB,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;KACnC;IACD,SAAS,EAAE;QACT,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,YAAY;KAC1B;IACD,iBAAiB,EAAE;QACjB,UAAU,EAAE,oBAAoB;QAChC,IAAI,EAAE,4BAA4B;QAClC,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,qBAAqB;KACnC;CACF,CAAC;AAEW,QAAA,SAAS,GAAG,IAAA,aAAG,EAC1B,CAAC,EACC,KAAK,EACL,WAAW,EACX,YAAY,GAAG,SAAS,EACxB,WAAW,EACX,KAAK,EACL,SAAS,GAAG,EAAE,EACd,KAAK,EACL,QAAQ,GAAG,IAAI,GAChB,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"TextBlock.js","sourceRoot":"","sources":["../../../src/components/TextBlock/TextBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAC3C,iDAA8C;AAK9C,MAAM,kBAAkB,GAAqD;IAC3E,OAAO,EAAE;Q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W,iBAAiB,CAAC,WAAW,EAAE,YAAG,WAAW,GAAO,CAChF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,gBAAgB,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,UAAU,CAAC,SAAiB;IACnC,OAAO,CACL,gCAAK,SAAS,EAAC,MAAM,YACnB,gCAAK,SAAS,EAAE,4CAA4C,SAAS,EAAE,kBAAS,GAC5E,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAe;IAClC,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC5E,CAAC"}
|
|
@@ -17,10 +17,11 @@ const tileStyleMap = {
|
|
|
17
17
|
};
|
|
18
18
|
exports.Tile = (0, uni_jsx_1.JSX)((props) => {
|
|
19
19
|
const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, className = '', version = 'primary', ...rest } = props;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const headingTextClassName = version === 'primary' ? 'text-primary-text' : '';
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${tileStyleMap[version]} ${(0, getTileRightPadding_1.getTileRightPadding)(className)} ${(0, getTileMinHeight_1.getTileMinHeight)(className)} `, ...rest, children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[600px] mb-3 ${headingTextClassName}` })) : null, buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-9 gap-3" })) : null, image: image?.src && (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mt-auto ml-7", image: image }), children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "max-w-[600px] text-title-new-sm font-light", description: description })) : null, children, renderList(items, version, isDotted)] }) }));
|
|
22
22
|
});
|
|
23
23
|
function renderList(items, version, isDotted) {
|
|
24
|
-
|
|
24
|
+
const listVersion = version === 'primary' ? 'tile' : 'tile-white';
|
|
25
|
+
return items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { items: items, isDotted: isDotted, itemClassName: "text-title-2xs font-light mt-2", version: listVersion })) : null;
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AAEzD,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAChD,mEAAgE;AAChE,yEAAsE;AAOtE,MAAM,YAAY,GAAiC;IACjD,OAAO,EAAE,4BAA4B;IACrC,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EACJ,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,EACP,KAAK,EACL,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,SAAS,EACnB,GAAG,IAAI,EACR,GAAG,KAAK,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AI,IACH,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAC,gCAAgC,EAC9C,OAAO,EAAE,WAAW,GACpB,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC"}
|
|
@@ -24,7 +24,8 @@ async function transformPicture(pagePath, picture, options) {
|
|
|
24
24
|
exports.transformPicture = transformPicture;
|
|
25
25
|
async function transformImg(pagePath, src, transformationOptions) {
|
|
26
26
|
const { contentDir, publicDir, format, options, size } = transformationOptions;
|
|
27
|
-
const
|
|
27
|
+
const pageDir = path_1.default.dirname(pagePath);
|
|
28
|
+
const imgPath = `${pageDir}/${src}`;
|
|
28
29
|
let chain = (0, sharp_1.default)(imgPath);
|
|
29
30
|
if (size) {
|
|
30
31
|
chain = chain.resize(size?.width, size?.height, {
|
|
@@ -51,7 +52,10 @@ function transformSrc(src, { format, size }) {
|
|
|
51
52
|
if (noTransform) {
|
|
52
53
|
return src;
|
|
53
54
|
}
|
|
54
|
-
const
|
|
55
|
-
|
|
55
|
+
const fileName = path_1.default.basename(src, path_1.default.extname(src));
|
|
56
|
+
const fileSizes = [size?.width, size?.height].filter(Boolean);
|
|
57
|
+
const suffix = fileSizes.length ? `-${fileSizes.join('-')}` : '';
|
|
58
|
+
const ext = String(format) || path_1.default.extname(src);
|
|
59
|
+
return `${fileName}${suffix}.${ext}`;
|
|
56
60
|
}
|
|
57
61
|
//# sourceMappingURL=transformPicture.js.map
|