@redneckz/wildless-cms-uni-blocks 0.3.84 → 0.3.86
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 +495 -394
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/Logo.svg +1 -0
- package/dist/components/Accordion/useActiveHandler.d.ts +1 -1
- package/dist/components/Accordion/useActiveHandler.js +4 -4
- package/dist/components/Accordion/useActiveHandler.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/BaseTile/BaseTileProps.d.ts +7 -26
- package/dist/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/dist/components/BaseTile/getTileHeadingType.js +3 -3
- package/dist/components/BaseTile/getTileHeadingType.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/dist/components/Bonus/BonusContent.d.ts +2 -3
- 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/Catalog/CatalogContent.d.ts +3 -4
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +1 -2
- 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/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/dist/components/GroupBlock/GroupBlock.js +1 -1
- package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
- package/dist/components/GroupBlock/GroupBlockTabs.js +10 -8
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/dist/components/Header/DropdownMenu.d.ts +1 -0
- package/dist/components/Header/DropdownMenu.js +6 -3
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/HeaderSubMenu.js +1 -1
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Headline/Headline.js +4 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/Headline.mobile.js +1 -1
- package/dist/components/Headline/Headline.mobile.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -4
- package/dist/components/Headline/constants.d.ts +9 -0
- package/dist/components/Headline/constants.js +33 -1
- package/dist/components/Headline/constants.js.map +1 -1
- package/dist/components/Insurance/Insurance.js +5 -5
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
- 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 +2 -2
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -6
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
- package/dist/components/NavigatorTabs/NavigatorTabItem.js +3 -3
- package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/dist/components/OtherProducts/OtherProductsItem.js +1 -1
- package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +2 -2
- package/dist/components/Placeholder/Placeholder.js +2 -4
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/dist/components/ProductBlock/ProductBlock.js +3 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -5
- package/dist/components/ProductBlock/ProductBlockInner.js +3 -8
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +3 -4
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +2 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +4 -5
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/ProductTile/ProductTileContent.d.ts +2 -3
- package/dist/components/PromoTile/PromoTile.js +2 -2
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +3 -3
- package/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/dist/components/StepsBlock/StepsBlock.js +5 -3
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/dist/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
- package/dist/components/StepsBlock/StepsBlockStyleMaps.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/TariffsTable/TariffsTableContent.d.ts +3 -4
- 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/components/Tile/TileContent.d.ts +3 -3
- 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/hooks/useLink.d.ts +3 -1
- package/dist/hooks/useLink.js +1 -1
- package/dist/hooks/useLink.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/HeadlineType.d.ts +17 -0
- package/dist/{ui-kit/Heading/HeadingContent.js → model/HeadlineType.js} +1 -1
- package/dist/model/HeadlineType.js.map +1 -0
- package/dist/model/Picture.d.ts +4 -3
- package/dist/model/VNode.d.ts +1 -1
- package/dist/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/dist/services/sitemap/findActiveSubItem.js +2 -3
- package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/dist/ui-kit/Breadcrumb.d.ts +1 -1
- package/dist/ui-kit/Button/Button.d.ts +0 -1
- package/dist/ui-kit/Button/Button.js +4 -4
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/Button.mobile.js +1 -1
- package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +3 -1
- package/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Button/LikeButton.d.ts +1 -1
- package/dist/ui-kit/Button/renderArrows.d.ts +2 -4
- package/dist/ui-kit/Button/renderArrows.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/Description/Description.d.ts +2 -2
- package/dist/ui-kit/Description/Description.js +1 -1
- package/dist/ui-kit/Description/Description.js.map +1 -1
- package/dist/ui-kit/Foldable/Foldable.js +4 -2
- package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
- package/dist/ui-kit/Foldable/useActiveHandler.d.ts +1 -1
- package/dist/ui-kit/Foldable/useActiveHandler.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.d.ts +1 -5
- package/dist/ui-kit/Heading/Heading.js +8 -11
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.mobile.d.ts +1 -5
- package/dist/ui-kit/Heading/Heading.mobile.js +2 -5
- package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/dist/ui-kit/Heading/HeadingProps.d.ts +20 -0
- package/{mobile/dist/ui-kit/Heading/HeadingContent.js → dist/ui-kit/Heading/HeadingProps.js} +1 -1
- package/dist/ui-kit/Heading/HeadingProps.js.map +1 -0
- 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/InputRange/InputRangeProps.d.ts +1 -2
- 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/SVG.d.ts +2 -2
- 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/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
- package/dist/ui-kit/Tabs/TabsProps.d.ts +1 -2
- package/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/dist/utils/url.d.ts +1 -0
- package/dist/utils/url.js +3 -1
- package/dist/utils/url.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/useActiveHandler.d.ts +1 -1
- package/lib/components/Accordion/useActiveHandler.js +4 -4
- package/lib/components/Accordion/useActiveHandler.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BaseTile/BaseTileProps.d.ts +7 -26
- package/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/lib/components/BaseTile/getTileHeadingType.js +3 -3
- package/lib/components/BaseTile/getTileHeadingType.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/lib/components/Bonus/BonusContent.d.ts +2 -3
- 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/Catalog/CatalogContent.d.ts +3 -4
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +1 -2
- 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/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/lib/components/GroupBlock/GroupBlock.js +1 -1
- package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
- package/lib/components/GroupBlock/GroupBlockTabs.js +10 -8
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
- package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
- package/lib/components/Header/DropdownMenu.d.ts +1 -0
- package/lib/components/Header/DropdownMenu.js +6 -3
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/HeaderSubMenu.js +1 -1
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +5 -0
- package/lib/components/Headline/Headline.js +5 -3
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/Headline.mobile.js +1 -1
- package/lib/components/Headline/Headline.mobile.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -4
- package/lib/components/Headline/constants.d.ts +9 -0
- package/lib/components/Headline/constants.js +32 -0
- package/lib/components/Headline/constants.js.map +1 -1
- package/lib/components/Insurance/Insurance.js +5 -5
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
- 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 +2 -2
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -6
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
- package/lib/components/NavigatorTabs/NavigatorTabItem.js +3 -3
- package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/lib/components/OtherProducts/OtherProductsItem.js +1 -1
- package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +2 -2
- package/lib/components/Placeholder/Placeholder.js +2 -4
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/lib/components/ProductBlock/ProductBlock.js +3 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -5
- package/lib/components/ProductBlock/ProductBlockInner.js +3 -8
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +3 -4
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
- package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +4 -5
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/ProductTile/ProductTileContent.d.ts +2 -3
- package/lib/components/PromoTile/PromoTile.js +2 -2
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +3 -3
- package/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/lib/components/StepsBlock/StepsBlock.js +5 -3
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
- package/lib/components/StepsBlock/StepsBlockStyleMaps.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/TariffsTable/TariffsTableContent.d.ts +3 -4
- 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/components/Tile/TileContent.d.ts +3 -3
- 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/hooks/useLink.d.ts +3 -1
- package/lib/hooks/useLink.js +1 -1
- package/lib/hooks/useLink.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/HeadlineType.d.ts +17 -0
- package/lib/model/HeadlineType.js +2 -0
- package/lib/model/HeadlineType.js.map +1 -0
- package/lib/model/Picture.d.ts +4 -3
- package/lib/model/VNode.d.ts +1 -1
- package/lib/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/lib/services/sitemap/findActiveSubItem.js +2 -3
- package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/lib/types.d.ts +0 -1
- package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
- package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
- package/lib/ui-kit/Breadcrumb.d.ts +1 -1
- package/lib/ui-kit/Button/Button.d.ts +0 -1
- package/lib/ui-kit/Button/Button.js +2 -2
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/Button.mobile.js +1 -1
- package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +3 -1
- package/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Button/LikeButton.d.ts +1 -1
- package/lib/ui-kit/Button/renderArrows.d.ts +2 -4
- package/lib/ui-kit/Button/renderArrows.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/Description/Description.d.ts +2 -2
- package/lib/ui-kit/Description/Description.js +1 -1
- package/lib/ui-kit/Description/Description.js.map +1 -1
- package/lib/ui-kit/Foldable/Foldable.js +4 -2
- package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
- package/lib/ui-kit/Foldable/useActiveHandler.d.ts +1 -1
- package/lib/ui-kit/Foldable/useActiveHandler.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.d.ts +1 -5
- package/lib/ui-kit/Heading/Heading.js +8 -11
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.mobile.d.ts +1 -5
- package/lib/ui-kit/Heading/Heading.mobile.js +2 -5
- package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
- package/lib/ui-kit/Heading/HeadingProps.d.ts +20 -0
- package/lib/ui-kit/Heading/HeadingProps.js +2 -0
- package/lib/ui-kit/Heading/HeadingProps.js.map +1 -0
- 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/InputRange/InputRangeProps.d.ts +1 -2
- 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/SVG.d.ts +2 -2
- 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/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
- package/lib/ui-kit/Tabs/TabsProps.d.ts +1 -2
- package/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/lib/utils/url.d.ts +1 -0
- package/lib/utils/url.js +1 -0
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +143 -123
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/useActiveHandler.d.ts +1 -1
- package/mobile/dist/components/Accordion/useActiveHandler.js +4 -4
- package/mobile/dist/components/Accordion/useActiveHandler.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +7 -26
- package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/mobile/dist/components/BaseTile/getTileHeadingType.js +3 -3
- package/mobile/dist/components/BaseTile/getTileHeadingType.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/dist/components/Bonus/BonusContent.d.ts +2 -3
- 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/Catalog/CatalogContent.d.ts +3 -4
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +1 -2
- 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/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/mobile/dist/components/GroupBlock/GroupBlock.js +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +10 -8
- 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/GroupBlocksItem.js +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +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/Header/DropdownMenu.d.ts +1 -0
- package/mobile/dist/components/Header/DropdownMenu.js +6 -3
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -4
- package/mobile/dist/components/Headline/constants.d.ts +9 -0
- package/mobile/dist/components/Headline/constants.js +33 -1
- package/mobile/dist/components/Headline/constants.js.map +1 -1
- package/mobile/dist/components/Insurance/Insurance.js +5 -5
- package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
- package/mobile/dist/components/Insurance/InsuranceContent.d.ts +2 -5
- 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/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -6
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +3 -3
- package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js +1 -1
- package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +2 -2
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -4
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -5
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +3 -4
- package/mobile/dist/components/ProductBlock/ProductBlockInner.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/ProductBlock/renderBenefit.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +4 -5
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -3
- package/mobile/dist/components/PromoTile/PromoTile.js +2 -2
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +3 -3
- package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
- package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.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/TariffsTable/TariffsTableContent.d.ts +3 -4
- 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/components/Tile/TileContent.d.ts +3 -3
- 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/hooks/useLink.d.ts +3 -1
- package/mobile/dist/hooks/useLink.js +1 -1
- package/mobile/dist/hooks/useLink.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/HeadlineType.d.ts +17 -0
- package/{dist/ui-kit/Description/DescriptionContent.js → mobile/dist/model/HeadlineType.js} +1 -1
- package/mobile/dist/model/HeadlineType.js.map +1 -0
- package/mobile/dist/model/Picture.d.ts +4 -3
- package/mobile/dist/model/VNode.d.ts +1 -1
- package/mobile/dist/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/mobile/dist/services/sitemap/findActiveSubItem.js +2 -3
- package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/dist/types.d.ts +0 -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/Breadcrumb.d.ts +1 -1
- package/mobile/dist/ui-kit/Button/Button.js +1 -1
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +3 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Button/LikeButton.d.ts +1 -1
- package/mobile/dist/ui-kit/Button/renderArrows.d.ts +2 -4
- package/mobile/dist/ui-kit/Button/renderArrows.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/Description/Description.d.ts +2 -2
- package/mobile/dist/ui-kit/Description/Description.js +1 -1
- package/mobile/dist/ui-kit/Description/Description.js.map +1 -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/Foldable/useActiveHandler.d.ts +1 -1
- package/mobile/dist/ui-kit/Foldable/useActiveHandler.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.d.ts +1 -5
- package/mobile/dist/ui-kit/Heading/Heading.js +2 -5
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +20 -0
- package/mobile/dist/ui-kit/{Description/DescriptionContent.js → Heading/HeadingProps.js} +1 -1
- package/mobile/dist/ui-kit/Heading/HeadingProps.js.map +1 -0
- 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/InputRange/InputRangeProps.d.ts +1 -2
- 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/SVG.d.ts +2 -2
- 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/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
- package/mobile/dist/ui-kit/Tabs/TabsProps.d.ts +1 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/dist/utils/url.d.ts +1 -0
- package/mobile/dist/utils/url.js +3 -1
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/components/Accordion/useActiveHandler.d.ts +1 -1
- package/mobile/lib/components/Accordion/useActiveHandler.js +4 -4
- package/mobile/lib/components/Accordion/useActiveHandler.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +7 -26
- package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +1 -1
- package/mobile/lib/components/BaseTile/getTileHeadingType.js +3 -3
- package/mobile/lib/components/BaseTile/getTileHeadingType.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +2 -2
- package/mobile/lib/components/Bonus/BonusContent.d.ts +2 -3
- 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/Catalog/CatalogContent.d.ts +3 -4
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +4 -4
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +2 -2
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +1 -2
- 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/GracePeriod/GracePeriodContent.d.ts +2 -2
- package/mobile/lib/components/GroupBlock/GroupBlock.js +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.d.ts +2 -3
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +10 -8
- 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/GroupBlocksItem.js +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +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/Header/DropdownMenu.d.ts +1 -0
- package/mobile/lib/components/Header/DropdownMenu.js +6 -3
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -4
- package/mobile/lib/components/Headline/constants.d.ts +9 -0
- package/mobile/lib/components/Headline/constants.js +32 -0
- package/mobile/lib/components/Headline/constants.js.map +1 -1
- package/mobile/lib/components/Insurance/Insurance.js +5 -5
- package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
- package/mobile/lib/components/Insurance/InsuranceContent.d.ts +2 -5
- 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/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -6
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -3
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +1 -1
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +3 -3
- package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js +1 -1
- package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +2 -2
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -4
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +2 -3
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -5
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +3 -4
- package/mobile/lib/components/ProductBlock/ProductBlockInner.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/ProductBlock/renderBenefit.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +3 -3
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +2 -2
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -5
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -3
- package/mobile/lib/components/PromoTile/PromoTile.js +2 -2
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +3 -3
- package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +4 -4
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +3 -1
- package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.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/TariffsTable/TariffsTableContent.d.ts +3 -4
- 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/components/Tile/TileContent.d.ts +3 -3
- 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/hooks/useLink.d.ts +3 -1
- package/mobile/lib/hooks/useLink.js +1 -1
- package/mobile/lib/hooks/useLink.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/HeadlineType.d.ts +17 -0
- package/mobile/lib/model/HeadlineType.js +2 -0
- package/mobile/lib/model/HeadlineType.js.map +1 -0
- package/mobile/lib/model/Picture.d.ts +4 -3
- package/mobile/lib/model/VNode.d.ts +1 -1
- package/mobile/lib/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/mobile/lib/services/sitemap/findActiveSubItem.js +2 -3
- package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
- package/mobile/lib/types.d.ts +0 -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/Breadcrumb.d.ts +1 -1
- package/mobile/lib/ui-kit/Button/Button.js +1 -1
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +3 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Button/LikeButton.d.ts +1 -1
- package/mobile/lib/ui-kit/Button/renderArrows.d.ts +2 -4
- package/mobile/lib/ui-kit/Button/renderArrows.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/Description/Description.d.ts +2 -2
- package/mobile/lib/ui-kit/Description/Description.js +1 -1
- package/mobile/lib/ui-kit/Description/Description.js.map +1 -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/Foldable/useActiveHandler.d.ts +1 -1
- package/mobile/lib/ui-kit/Foldable/useActiveHandler.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.d.ts +1 -5
- package/mobile/lib/ui-kit/Heading/Heading.js +2 -5
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +20 -0
- package/mobile/lib/ui-kit/Heading/HeadingProps.js +2 -0
- package/mobile/lib/ui-kit/Heading/HeadingProps.js.map +1 -0
- 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/InputRange/InputRangeProps.d.ts +1 -2
- 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/SVG.d.ts +2 -2
- 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/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -3
- package/mobile/lib/ui-kit/Tabs/TabsProps.d.ts +1 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +1 -1
- package/mobile/lib/utils/url.d.ts +1 -0
- package/mobile/lib/utils/url.js +1 -0
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/components/Accordion/useActiveHandler.ts +5 -5
- package/mobile/src/components/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/components/BaseTile/BaseTileProps.ts +7 -30
- package/mobile/src/components/BaseTile/getTileHeadingType.ts +3 -3
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -9
- package/mobile/src/components/Blocks.spec.tsx +74 -0
- package/mobile/src/components/Bonus/BonusContent.ts +5 -7
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
- package/mobile/src/components/Calculator/Calculator.tsx +10 -10
- 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/Catalog/CatalogContent.ts +6 -8
- package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +6 -6
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +2 -2
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +1 -2
- 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 +10 -8
- 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 +21 -0
- package/mobile/src/components/Gallery/Gallery.tsx +3 -5
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +2 -2
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +5 -3
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +24 -25
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +3 -3
- package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
- package/mobile/src/components/Header/DropdownMenu.tsx +23 -10
- package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/mobile/src/components/Headline/Headline.example.json +1 -0
- package/mobile/src/components/Headline/Headline.tsx +1 -1
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -5
- package/mobile/src/components/Headline/constants.ts +42 -0
- package/mobile/src/components/Insurance/Insurance.tsx +15 -10
- package/mobile/src/components/Insurance/InsuranceContent.ts +2 -5
- 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 +15 -10
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +1 -0
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +0 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -6
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -3
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +2 -4
- package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
- package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +2 -2
- package/mobile/src/components/PictureText/PictureTextContent.ts +2 -2
- package/mobile/src/components/Placeholder/Placeholder.tsx +8 -19
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +2 -3
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -7
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +10 -21
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -6
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -5
- package/mobile/src/components/ProductTile/ProductTile.example.json +1 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +10 -15
- package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -5
- package/mobile/src/components/PromoTile/PromoTile.tsx +10 -6
- package/mobile/src/components/PromoTile/PromoTileContent.ts +4 -4
- package/mobile/src/components/Recommendation/RecommendationContent.ts +4 -8
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -9
- package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +4 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +12 -14
- 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 +9 -10
- package/mobile/src/components/Tile/TileContent.ts +4 -5
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +755 -0
- package/mobile/src/content-page-repository/transformPicture.ts +7 -5
- package/mobile/src/hooks/useExchangeRates.ts +6 -7
- package/mobile/src/hooks/useLink.ts +2 -2
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/icons/Logo.svg +7 -0
- package/mobile/src/model/HeadlineType.ts +21 -0
- package/mobile/src/model/Picture.ts +5 -3
- package/mobile/src/model/VNode.ts +1 -1
- package/mobile/src/services/sitemap/findActiveSubItem.ts +4 -5
- package/mobile/src/types.ts +0 -2
- package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/mobile/src/ui-kit/Breadcrumb.tsx +1 -1
- package/mobile/src/ui-kit/Button/Button.tsx +2 -2
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +3 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +1 -1
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +2 -2
- package/mobile/src/ui-kit/Button/LikeButton.tsx +1 -1
- package/mobile/src/ui-kit/Button/renderArrows.tsx +2 -3
- 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/Description/Description.tsx +3 -3
- package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
- package/mobile/src/ui-kit/Foldable/useActiveHandler.ts +1 -1
- package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
- package/mobile/src/ui-kit/Heading/Heading.tsx +3 -13
- package/mobile/src/ui-kit/Heading/HeadingProps.ts +24 -0
- 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/InputRange/InputRangeProps.ts +1 -3
- 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/SVG.tsx +2 -2
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
- package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -4
- package/mobile/src/ui-kit/Tabs/TabsProps.ts +1 -2
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/mobile/src/utils/url.ts +2 -0
- package/package.json +4 -1
- package/src/components/Accordion/useActiveHandler.ts +5 -5
- package/src/components/BaseTile/BaseTile.tsx +1 -1
- package/src/components/BaseTile/BaseTileProps.ts +7 -30
- package/src/components/BaseTile/getTileHeadingType.ts +3 -3
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +8 -9
- package/src/components/Blocks.spec.tsx +74 -0
- package/src/components/Bonus/BonusContent.ts +5 -7
- package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
- package/src/components/Calculator/Calculator.fixture.tsx +2 -14
- package/src/components/Calculator/Calculator.tsx +10 -10
- 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/Catalog/CatalogContent.ts +6 -8
- package/src/components/ComparisonTable/ComparisonTable.tsx +4 -6
- package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +6 -6
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +2 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +0 -1
- package/src/components/ContentPage/ContentPageContext.tsx +1 -2
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +10 -8
- 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 +21 -0
- package/src/components/Gallery/Gallery.mobile.tsx +3 -5
- package/src/components/GracePeriod/GracePeriodContent.ts +2 -2
- package/src/components/GroupBlock/GroupBlock.tsx +5 -3
- package/src/components/GroupBlock/GroupBlockTabs.tsx +24 -25
- package/src/components/GroupBlock/GroupBlocksItem.tsx +3 -3
- package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
- package/src/components/Header/DropdownMenu.tsx +23 -10
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +2 -1
- package/src/components/Headline/Headline.example.json +1 -0
- package/src/components/Headline/Headline.fixture.tsx +25 -0
- package/src/components/Headline/Headline.mobile.tsx +1 -1
- package/src/components/Headline/Headline.tsx +13 -7
- package/src/components/Headline/HeadlineContent.ts +2 -5
- package/src/components/Headline/constants.ts +42 -0
- package/src/components/Insurance/Insurance.tsx +15 -10
- package/src/components/Insurance/InsuranceContent.ts +2 -5
- 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 +15 -10
- package/src/components/LinkDocs/LinkDocs.example.json +1 -0
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -1
- package/src/components/LinkDocs/LinkDocs.tsx +5 -4
- package/src/components/LinkDocs/LinkDocsContent.ts +3 -6
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -3
- package/src/components/MobileAppTile/MobileAppTile.tsx +4 -3
- package/src/components/MobileAppTile/MobileAppTileContent.ts +2 -4
- package/src/components/NavigatorTabs/NavigatorTabItem.tsx +4 -4
- package/src/components/OtherProducts/OtherProductsItem.tsx +2 -2
- package/src/components/PictureText/PictureTextContent.ts +2 -2
- package/src/components/Placeholder/Placeholder.tsx +8 -19
- package/src/components/Placeholder/PlaceholderContent.ts +2 -3
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +5 -5
- package/src/components/ProductBlock/ProductBlock.tsx +8 -2
- package/src/components/ProductBlock/ProductBlockContent.ts +4 -7
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +10 -21
- package/src/components/ProductBlock/ProductBlockInner.tsx +11 -26
- package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
- package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -6
- package/src/components/ProductBlock/renderBenefit.tsx +2 -4
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +8 -8
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +7 -12
- package/src/components/ProductTile/ProductTile.example.json +1 -1
- package/src/components/ProductTile/ProductTile.fixture.tsx +2 -6
- package/src/components/ProductTile/ProductTile.tsx +10 -15
- package/src/components/ProductTile/ProductTileContent.ts +2 -5
- package/src/components/PromoTile/PromoTile.tsx +10 -6
- package/src/components/PromoTile/PromoTileContent.ts +4 -4
- package/src/components/Recommendation/RecommendationContent.ts +4 -8
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -9
- package/src/components/StepsBlock/StepsBlock.tsx +22 -19
- package/src/components/StepsBlock/StepsBlockStyleMaps.ts +4 -1
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
- package/src/components/TariffsTable/TariffsTableContent.ts +12 -14
- 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 +9 -10
- package/src/components/Tile/TileContent.ts +4 -5
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +755 -0
- package/src/content-page-repository/transformPicture.ts +7 -5
- package/src/hooks/useExchangeRates.ts +6 -7
- package/src/hooks/useLink.ts +2 -2
- package/src/icons/IconName.ts +4 -1
- package/src/icons/Logo.svg +7 -0
- package/src/model/HeadlineType.ts +21 -0
- package/src/model/Picture.ts +5 -3
- package/src/model/VNode.ts +1 -1
- package/src/services/sitemap/findActiveSubItem.ts +4 -5
- package/src/types.ts +0 -2
- package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
- package/src/ui-kit/Breadcrumb.tsx +1 -1
- package/src/ui-kit/Button/Button.mobile.tsx +2 -2
- package/src/ui-kit/Button/Button.tsx +2 -2
- package/src/ui-kit/Button/ButtonInner.tsx +3 -3
- package/src/ui-kit/Button/ButtonProps.ts +1 -1
- package/src/ui-kit/Button/ButtonSection.tsx +2 -2
- package/src/ui-kit/Button/LikeButton.tsx +1 -1
- package/src/ui-kit/Button/renderArrows.tsx +2 -3
- package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
- package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
- package/src/ui-kit/Description/Description.tsx +3 -3
- package/src/ui-kit/Foldable/Foldable.tsx +7 -5
- package/src/ui-kit/Foldable/useActiveHandler.ts +1 -1
- 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 +3 -13
- package/src/ui-kit/Heading/Heading.tsx +9 -19
- package/src/ui-kit/Heading/HeadingProps.ts +24 -0
- 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/InputRange/InputRangeProps.ts +1 -3
- 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/SVG.tsx +2 -2
- 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/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -4
- package/src/ui-kit/Tabs/TabsProps.ts +1 -2
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/src/utils/url.ts +2 -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/Description/DescriptionContent.d.ts +0 -4
- package/dist/ui-kit/Description/DescriptionContent.js.map +0 -1
- package/dist/ui-kit/Heading/HeadingContent.d.ts +0 -15
- package/dist/ui-kit/Heading/HeadingContent.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/Description/DescriptionContent.d.ts +0 -4
- package/lib/ui-kit/Description/DescriptionContent.js +0 -2
- package/lib/ui-kit/Description/DescriptionContent.js.map +0 -1
- package/lib/ui-kit/Heading/HeadingContent.d.ts +0 -15
- package/lib/ui-kit/Heading/HeadingContent.js +0 -2
- package/lib/ui-kit/Heading/HeadingContent.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/dist/ui-kit/Description/DescriptionContent.d.ts +0 -4
- package/mobile/dist/ui-kit/Description/DescriptionContent.js.map +0 -1
- package/mobile/dist/ui-kit/Heading/HeadingContent.d.ts +0 -15
- package/mobile/dist/ui-kit/Heading/HeadingContent.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/lib/ui-kit/Description/DescriptionContent.d.ts +0 -4
- package/mobile/lib/ui-kit/Description/DescriptionContent.js +0 -2
- package/mobile/lib/ui-kit/Description/DescriptionContent.js.map +0 -1
- package/mobile/lib/ui-kit/Heading/HeadingContent.d.ts +0 -15
- package/mobile/lib/ui-kit/Heading/HeadingContent.js +0 -2
- package/mobile/lib/ui-kit/Heading/HeadingContent.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/mobile/src/ui-kit/Description/DescriptionContent.ts +0 -4
- package/mobile/src/ui-kit/Heading/HeadingContent.ts +0 -17
- 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/Description/DescriptionContent.ts +0 -4
- package/src/ui-kit/Heading/HeadingContent.ts +0 -17
- package/src/ui-kit/SearchBar.mobile.tsx +0 -45
|
@@ -1,49 +1,35 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.MortgageCalculatorForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
// TEMP
|
|
4
5
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useCreditCalculatorData_1 = require("../../hooks/useCreditCalculatorData");
|
|
6
6
|
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
7
|
+
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
7
8
|
const constants_1 = require("./constants");
|
|
8
|
-
const renderRealEstateValue_1 = require("./renderRealEstateValue");
|
|
9
|
-
const renderInitialFeeInput_1 = require("./renderInitialFeeInput");
|
|
10
9
|
const getCreditRate_1 = require("./getCreditRate");
|
|
11
|
-
const
|
|
12
|
-
const getDefaultSum_1 = require("./getDefaultSum");
|
|
13
|
-
const getDefaultMonths_1 = require("./getDefaultMonths");
|
|
14
|
-
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
10
|
+
const Rate_1 = require("./Rate");
|
|
15
11
|
const renderButtonSection_1 = require("./renderButtonSection");
|
|
12
|
+
const renderInitialFeeInput_1 = require("./renderInitialFeeInput");
|
|
13
|
+
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
16
14
|
const renderProposalMortgage_1 = require("./renderProposalMortgage");
|
|
17
|
-
const
|
|
18
|
-
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
15
|
+
const renderRealEstateValue_1 = require("./renderRealEstateValue");
|
|
19
16
|
exports.MortgageCalculatorForm = (0, uni_jsx_1.JSX)(({ context, className = '', buttons }) => {
|
|
20
|
-
const [moneyValue, setMoneyValue] = context.useState(
|
|
21
|
-
const [monthsValue, setMonthsValue] = context.useState(
|
|
17
|
+
const [moneyValue, setMoneyValue] = context.useState(1000000);
|
|
18
|
+
const [monthsValue, setMonthsValue] = context.useState(12);
|
|
22
19
|
const [isInsurance, toggleIsInsurance] = context.useState(false);
|
|
23
20
|
const [isFullInsurance, toggleIsFullInsurance] = context.useState(false);
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const defaultMonths = (0, getDefaultMonths_1.getDefaultMonths)(calculatorParams);
|
|
28
|
-
const minMonths = calculatorParams?.minMonths || constants_1.DEFAULT_MIN_MONTHS;
|
|
29
|
-
const maxMonths = calculatorParams?.maxMonths || constants_1.DEFAULT_MAX_MONTHS;
|
|
21
|
+
const calculatorParams = {}; // getCalculatorParams(context, { isAnnuity: isInsurance });
|
|
22
|
+
const minMonths = /*calculatorParams?.minMonths ||*/ constants_1.DEFAULT_MIN_MONTHS;
|
|
23
|
+
const maxMonths = /* calculatorParams?.maxMonths || */ constants_1.DEFAULT_MAX_MONTHS;
|
|
30
24
|
const rate = (0, getCreditRate_1.getCreditRate)({ calculatorParams, isInsurance: isInsurance });
|
|
31
25
|
const monthlyPayment = 777777; // TODO: hardcode
|
|
32
26
|
const proposalMortgageValue = { credit: 3892000, period: 15, taxRefund: 650000 }; // TODO: hardcode
|
|
33
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: className, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderRealEstateValue_1.renderRealEstateValue)(
|
|
34
|
-
calculatorParams,
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: className, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderRealEstateValue_1.renderRealEstateValue)('Стоимость недвижимости, ₽', { moneyValue }, setMoneyValue), (0, renderInitialFeeInput_1.renderInitialFeeInput)('Первоначальный взнос, ₽', {
|
|
35
28
|
moneyValue,
|
|
36
|
-
|
|
37
|
-
setMoneyValue,
|
|
38
|
-
}), (0, renderMonthsInput_1.renderMonthsInput)({
|
|
39
|
-
title: 'Срок ипотеки, месяцев',
|
|
29
|
+
}, setMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок ипотеки, месяцев', {
|
|
40
30
|
minMonths,
|
|
41
31
|
maxMonths,
|
|
42
32
|
monthsValue,
|
|
43
|
-
|
|
44
|
-
setMonthsValue,
|
|
45
|
-
}), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438", checked: isInsurance, onChange: toggleIsInsurance }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-4", text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438, \u0437\u043B\u043E\u0440\u043E\u0432\u044C\u044F \u0438 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0443\u0442\u0440\u0430\u0442\u044B \u0442\u0440\u0443\u0434\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438", checked: isFullInsurance, onChange: toggleIsFullInsurance })] })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { children: rate
|
|
46
|
-
? (0, renderRate_1.renderRate)({ rate: rate, title: 'Ставка', sup: '%', className: 'tracking-[-25px]' })
|
|
47
|
-
: null }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0435\u0436", value: monthlyPayment, postfix: "\u20BD" })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "w-[351px]", children: (0, renderProposalMortgage_1.renderProposalMortgage)(proposalMortgageValue) }), (0, renderButtonSection_1.renderButtonSection)(context, buttons)] })] }));
|
|
33
|
+
}, setMonthsValue), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438", checked: isInsurance, onChange: toggleIsInsurance }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-4", text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438, \u0437\u043B\u043E\u0440\u043E\u0432\u044C\u044F \u0438 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0443\u0442\u0440\u0430\u0442\u044B \u0442\u0440\u0443\u0434\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438", checked: isFullInsurance, onChange: toggleIsFullInsurance })] })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0435\u0436", value: monthlyPayment, postfix: "\u20BD" })] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "w-[351px]", children: (0, renderProposalMortgage_1.renderProposalMortgage)(proposalMortgageValue) }), (0, renderButtonSection_1.renderButtonSection)(context, buttons)] })] }));
|
|
48
34
|
});
|
|
49
35
|
//# sourceMappingURL=MortgageCalculatorForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MortgageCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/MortgageCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"MortgageCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/MortgageCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AACP,+CAAwC;AAExC,6DAA0D;AAE1D,iEAA8D;AAC9D,2CAAqE;AACrE,mDAAgD;AAChD,iCAA8B;AAC9B,+DAA4D;AAC5D,mEAAgE;AAChE,2DAAwD;AACxD,qEAAkE;AAClE,mEAAgE;AAOnD,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACvC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAS,OAAO,CAAC,CAAC;IACtE,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAS,EAAE,CAAC,CAAC;IACnE,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjE,MAAM,CAAC,eAAe,EAAE,qBAAqB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEzE,MAAM,gBAAgB,GAAG,EAAE,CAAC,CAAC,4DAA4D;IAEzF,MAAM,SAAS,GAAG,kCAAkC,CAAC,8BAAkB,CAAC;IACxE,MAAM,SAAS,GAAG,oCAAoC,CAAC,8BAAkB,CAAC;IAE1E,MAAM,IAAI,GAAG,IAAA,6BAAa,EAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC;IAE3E,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,iBAAiB;IAChD,MAAM,qBAAqB,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC,iBAAiB;IAEnG,OAAO,CACL,qCAAS,SAAS,EAAE,SAAS,aAC3B,iCAAK,SAAS,EAAC,WAAW,aACvB,IAAA,6CAAqB,EAAC,2BAA2B,EAAE,EAAE,UAAU,EAAE,EAAE,aAAa,CAAC,EACjF,IAAA,6CAAqB,EACpB,yBAAyB,EACzB;wBACE,UAAU;qBACX,EACD,aAAa,CACd,EACA,IAAA,qCAAiB,EAChB,uBAAuB,EACvB;wBACE,SAAS;wBACT,SAAS;wBACT,WAAW;qBACZ,EACD,cAAc,CACf,EACD,iCAAK,SAAS,EAAC,MAAM,aACnB,uBAAC,mBAAQ,IAAC,IAAI,EAAC,mGAAmB,EAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,GAAI,EACxF,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,yVAAiE,EACtE,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,qBAAqB,GAC/B,IACE,IACF,EACN,4CACE,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAC,kBAAkB,EAAC,IAAI,EAAC,GAAG,GAAG,EAEnE,uBAAC,2CAAoB,IAAC,KAAK,EAAC,yGAAoB,EAAC,KAAK,EAAE,cAAc,EAAE,OAAO,EAAC,QAAG,GAAG,IAClF,EACN,4CACE,gCAAK,SAAS,EAAC,WAAW,YAAE,IAAA,+CAAsB,EAAC,qBAAqB,CAAC,GAAO,EAC/E,IAAA,yCAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,IAClC,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.Rate = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
exports.Rate = (0, uni_jsx_1.JSX)(({ rate, title = 'Ставка', unit, rateBlockClassName }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: "text-sm font-light ml-3", children: title }), (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-start", children: [(0, jsx_runtime_1.jsx)("span", { className: `block calc-rate-text font-mohave text-title-huge pr-6 -mt-4 ${rateBlockClassName}`, children: String(rate).replace('.', ',') }), unit ? (0, jsx_runtime_1.jsx)("span", { className: "calc-rate-text text-[65px] leading-[75px]", children: unit }) : ''] })] })));
|
|
6
|
+
//# sourceMappingURL=Rate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rate.js","sourceRoot":"","sources":["../../../src/components/Calculator/Rate.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAC3F,4CACE,gCAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAO,EACtD,iCAAK,SAAS,EAAC,oBAAoB,aACjC,iCACE,SAAS,EAAE,+DAA+D,kBAAkB,EAAE,YAE7F,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GAC1B,EACN,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,2CAA2C,YAAE,IAAI,GAAQ,CAAC,CAAC,CAAC,EAAE,IAClF,IACF,CACP,CAAC,CAAC"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
|
|
2
|
+
import { CreditCalculatorSourceBookParams } from './useCreditCalculatorParams';
|
|
3
|
+
export declare const DEFAULT_MIN_SUM = 60000;
|
|
4
|
+
export declare const DEFAULT_MAX_SUM = 2000000;
|
|
3
5
|
export declare const DEFAULT_SUM: number;
|
|
4
|
-
export declare const DEFAULT_MIN_MONTHS =
|
|
5
|
-
export declare const DEFAULT_MAX_MONTHS =
|
|
6
|
+
export declare const DEFAULT_MIN_MONTHS = 13;
|
|
7
|
+
export declare const DEFAULT_MAX_MONTHS = 60;
|
|
6
8
|
export declare const DEFAULT_MONTHS: number;
|
|
7
9
|
export declare const MONTHS_IN_YEAR = 12;
|
|
10
|
+
export declare const MONTHLY_INTEREST_RATE: number;
|
|
11
|
+
export declare const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookParams;
|
|
12
|
+
export declare const DEFAULT_TRAVEL_MIN_SUM = 6000;
|
|
13
|
+
export declare const DEFAULT_REST_MIN_SUM = 6000;
|
|
14
|
+
export declare const DEFAULT_BONUS_CALCULATOR_PARAMS: BonusCalculatorSourceBookParams;
|
|
15
|
+
export declare const CREDIT_CALC_DEFAULT_DIR = "credit-calculator-data";
|
|
16
|
+
export declare const BONUS_CALC_DEFAULT_DIR = "bonus-calculator-data";
|
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.MONTHS_IN_YEAR = exports.DEFAULT_MONTHS = exports.DEFAULT_MAX_MONTHS = exports.DEFAULT_MIN_MONTHS = exports.DEFAULT_SUM = exports.DEFAULT_MAX_SUM = exports.DEFAULT_MIN_SUM = void 0;
|
|
3
|
-
exports.DEFAULT_MIN_SUM =
|
|
4
|
-
exports.DEFAULT_MAX_SUM =
|
|
2
|
+
exports.BONUS_CALC_DEFAULT_DIR = exports.CREDIT_CALC_DEFAULT_DIR = exports.DEFAULT_BONUS_CALCULATOR_PARAMS = exports.DEFAULT_REST_MIN_SUM = exports.DEFAULT_TRAVEL_MIN_SUM = exports.DEFAULT_CREDIT_CALCULATOR_PARAMS = exports.MONTHLY_INTEREST_RATE = exports.MONTHS_IN_YEAR = exports.DEFAULT_MONTHS = exports.DEFAULT_MAX_MONTHS = exports.DEFAULT_MIN_MONTHS = exports.DEFAULT_SUM = exports.DEFAULT_MAX_SUM = exports.DEFAULT_MIN_SUM = void 0;
|
|
3
|
+
exports.DEFAULT_MIN_SUM = 60000;
|
|
4
|
+
exports.DEFAULT_MAX_SUM = 2000000;
|
|
5
5
|
exports.DEFAULT_SUM = (exports.DEFAULT_MAX_SUM - exports.DEFAULT_MIN_SUM) / 2;
|
|
6
|
-
exports.DEFAULT_MIN_MONTHS =
|
|
7
|
-
exports.DEFAULT_MAX_MONTHS =
|
|
6
|
+
exports.DEFAULT_MIN_MONTHS = 13;
|
|
7
|
+
exports.DEFAULT_MAX_MONTHS = 60;
|
|
8
8
|
exports.DEFAULT_MONTHS = Math.round((exports.DEFAULT_MAX_MONTHS - exports.DEFAULT_MIN_MONTHS) / 2);
|
|
9
9
|
exports.MONTHS_IN_YEAR = 12;
|
|
10
|
+
exports.MONTHLY_INTEREST_RATE = exports.MONTHS_IN_YEAR * 100;
|
|
11
|
+
exports.DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
12
|
+
minSum: exports.DEFAULT_MIN_SUM,
|
|
13
|
+
maxSum: exports.DEFAULT_MAX_SUM,
|
|
14
|
+
minMonths: exports.DEFAULT_MIN_MONTHS,
|
|
15
|
+
maxMonths: exports.DEFAULT_MAX_MONTHS,
|
|
16
|
+
rateBottomRange: 10,
|
|
17
|
+
rateTopRange: 7,
|
|
18
|
+
isSalaryClient: true,
|
|
19
|
+
isStateEmployee: true,
|
|
20
|
+
isInsurance: true,
|
|
21
|
+
sumBorder: 999999,
|
|
22
|
+
};
|
|
23
|
+
exports.DEFAULT_TRAVEL_MIN_SUM = 6000;
|
|
24
|
+
exports.DEFAULT_REST_MIN_SUM = 6000;
|
|
25
|
+
exports.DEFAULT_BONUS_CALCULATOR_PARAMS = {
|
|
26
|
+
minSumTravel: 6000,
|
|
27
|
+
maxSumTravel: 200000,
|
|
28
|
+
minSumOther: 6000,
|
|
29
|
+
maxSumOther: 200000,
|
|
30
|
+
maxBonus: 5000,
|
|
31
|
+
prefMonthsNum: 2,
|
|
32
|
+
prefTravelBonusRate: 0.015,
|
|
33
|
+
prefRestBonusRate: 0.01,
|
|
34
|
+
travelBonusRate: 0.015,
|
|
35
|
+
restBonusRate: 0.01,
|
|
36
|
+
};
|
|
37
|
+
exports.CREDIT_CALC_DEFAULT_DIR = 'credit-calculator-data';
|
|
38
|
+
exports.BONUS_CALC_DEFAULT_DIR = 'bonus-calculator-data';
|
|
10
39
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Calculator/constants.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Calculator/constants.ts"],"names":[],"mappings":";;AAGa,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,WAAW,GAAG,CAAC,uBAAe,GAAG,uBAAe,CAAC,GAAG,CAAC,CAAC;AACtD,QAAA,kBAAkB,GAAG,EAAE,CAAC;AACxB,QAAA,kBAAkB,GAAG,EAAE,CAAC;AACxB,QAAA,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,0BAAkB,GAAG,0BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;AAE3E,QAAA,cAAc,GAAG,EAAE,CAAC;AAEpB,QAAA,qBAAqB,GAAG,sBAAc,GAAG,GAAG,CAAC;AAE7C,QAAA,gCAAgC,GAAqC;IAChF,MAAM,EAAE,uBAAe;IACvB,MAAM,EAAE,uBAAe;IACvB,SAAS,EAAE,0BAAkB;IAC7B,SAAS,EAAE,0BAAkB;IAC7B,eAAe,EAAE,EAAE;IACnB,YAAY,EAAE,CAAC;IACf,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,MAAM;CAClB,CAAC;AAEW,QAAA,sBAAsB,GAAG,IAAI,CAAC;AAC9B,QAAA,oBAAoB,GAAG,IAAI,CAAC;AAE5B,QAAA,+BAA+B,GAAoC;IAC9E,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,CAAC;IAChB,mBAAmB,EAAE,KAAK;IAC1B,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEW,QAAA,uBAAuB,GAAG,wBAAwB,CAAC;AACnD,QAAA,sBAAsB,GAAG,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.getBonus = void 0;
|
|
3
|
+
const constants_1 = require("./constants");
|
|
4
|
+
const getBonus = (params, bonusTravelValue, bonusOtherValue) => {
|
|
5
|
+
const { minSumTravel, minSumOther, maxBonus, prefMonthsNum, prefTravelBonusRate, prefRestBonusRate, travelBonusRate, restBonusRate, } = params;
|
|
6
|
+
if (bonusTravelValue === minSumTravel && bonusOtherValue === minSumOther) {
|
|
7
|
+
return [0, 0];
|
|
8
|
+
}
|
|
9
|
+
const prefBonus = Math.min(Math.round(prefTravelBonusRate * bonusTravelValue) +
|
|
10
|
+
Math.round(prefRestBonusRate * bonusOtherValue), maxBonus);
|
|
11
|
+
const bonus = Math.min(Math.round(travelBonusRate * bonusTravelValue) + Math.round(restBonusRate * bonusOtherValue), maxBonus);
|
|
12
|
+
const yearBonus = prefBonus * prefMonthsNum + bonus * (constants_1.MONTHS_IN_YEAR - prefMonthsNum);
|
|
13
|
+
return [prefBonus, yearBonus];
|
|
14
|
+
};
|
|
15
|
+
exports.getBonus = getBonus;
|
|
16
|
+
//# sourceMappingURL=getBonus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBonus.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonus.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAGtC,MAAM,QAAQ,GAAG,CACtB,MAAuC,EACvC,gBAAwB,EACxB,eAAuB,EACvB,EAAE;IACF,MAAM,EACJ,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,GAAG,MAAM,CAAC;IAEX,IAAI,gBAAgB,KAAK,YAAY,IAAI,eAAe,KAAK,WAAW,EAAE;QACxE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACf;IAED,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CACxB,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;QAChD,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,eAAe,CAAC,EACjD,QAAQ,CACT,CAAC;IAEF,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CACpB,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC,EAC5F,QAAQ,CACT,CAAC;IAEF,MAAM,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,CAAC,0BAAc,GAAG,aAAa,CAAC,CAAC;IAEvF,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC;AAlCW,QAAA,QAAQ,YAkCnB"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getDefaultMonths: (calculatorParams: CalculatorParams) => number;
|
|
1
|
+
export declare const getDefaultMonths: (minMonths: number, maxMonths: number) => number;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getDefaultMonths = void 0;
|
|
3
|
-
const
|
|
4
|
-
const getDefaultMonths = (calculatorParams) => calculatorParams.maxMonths && calculatorParams.minMonths
|
|
5
|
-
? Math.round((calculatorParams.maxMonths - calculatorParams.minMonths) / 2)
|
|
6
|
-
: constants_1.DEFAULT_MONTHS;
|
|
3
|
+
const getDefaultMonths = (minMonths, maxMonths) => Math.round((maxMonths - minMonths) / 2);
|
|
7
4
|
exports.getDefaultMonths = getDefaultMonths;
|
|
8
5
|
//# sourceMappingURL=getDefaultMonths.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultMonths.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultMonths.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getDefaultMonths.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultMonths.ts"],"names":[],"mappings":";;AAAO,MAAM,gBAAgB,GAAG,CAAC,SAAiB,EAAE,SAAiB,EAAE,EAAE,CACvE,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAD7B,QAAA,gBAAgB,oBACa"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getDefaultSum: (calculatorParams: CalculatorParams) => number;
|
|
1
|
+
export declare const getDefaultSum: (minSum?: number, maxSum?: number) => number;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getDefaultSum = void 0;
|
|
3
3
|
const constants_1 = require("./constants");
|
|
4
|
-
const getDefaultSum = (
|
|
5
|
-
? (calculatorParams.maxSum - calculatorParams.minSum) / 2
|
|
6
|
-
: constants_1.DEFAULT_SUM;
|
|
4
|
+
const getDefaultSum = (minSum, maxSum) => maxSum && minSum ? (maxSum - minSum) / 2 : constants_1.DEFAULT_SUM;
|
|
7
5
|
exports.getDefaultSum = getDefaultSum;
|
|
8
6
|
//# sourceMappingURL=getDefaultSum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultSum.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultSum.ts"],"names":[],"mappings":";;AAAA,2CAA0C;
|
|
1
|
+
{"version":3,"file":"getDefaultSum.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultSum.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAEnC,MAAM,aAAa,GAAG,CAAC,MAAe,EAAE,MAAe,EAAE,EAAE,CAChE,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,uBAAW,CAAC;AAD5C,QAAA,aAAa,iBAC+B"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
sum: number;
|
|
8
|
-
months: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const getMonthlyPayment: (params: GetMonthlyPaymentParams) => number;
|
|
11
|
-
export {};
|
|
1
|
+
/**
|
|
2
|
+
* Формулы расчёта аннуитетных и дифференцированных платежей:
|
|
3
|
+
* https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
|
|
4
|
+
*/
|
|
5
|
+
import type { CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
6
|
+
export declare const getMonthlyPayment: (rate: number, params: CreditCalculatorUserInputParams) => number;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Формулы расчёта аннуитетных и дифференцированных платежей:
|
|
3
|
+
* https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
|
|
4
|
+
*/
|
|
1
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
6
|
exports.getMonthlyPayment = void 0;
|
|
3
|
-
const clamp_1 = require("../../utils/clamp");
|
|
4
7
|
const constants_1 = require("./constants");
|
|
5
|
-
const getMonthlyPayment = (params) => {
|
|
6
|
-
const {
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const finalSum = (0, clamp_1.clamp)(sum, calculatorParams.minSum || constants_1.DEFAULT_MIN_SUM, calculatorParams.maxSum || constants_1.DEFAULT_MAX_SUM);
|
|
11
|
-
if (paymentType === 'annuity') {
|
|
12
|
-
const annuityCoef = Number(rate) / (constants_1.MONTHS_IN_YEAR * 100);
|
|
13
|
-
return finalSum * (annuityCoef + annuityCoef / (Math.pow(1 + annuityCoef, months) - 1));
|
|
8
|
+
const getMonthlyPayment = (rate, params) => {
|
|
9
|
+
const { isAnnuity, moneyValue, monthsValue } = params;
|
|
10
|
+
if (isAnnuity) {
|
|
11
|
+
const i = rate / constants_1.MONTHLY_INTEREST_RATE; // Используется значение ставки в процентах
|
|
12
|
+
return moneyValue * (i + i / (Math.pow(1 + i, monthsValue) - 1));
|
|
14
13
|
}
|
|
15
14
|
else {
|
|
16
|
-
return
|
|
15
|
+
return Math.round(moneyValue / monthsValue) + moneyValue * (rate / (constants_1.MONTHS_IN_YEAR * 100)); // Используется значение ставки (rate) в процентах, делённое на сто.
|
|
17
16
|
}
|
|
18
17
|
};
|
|
19
18
|
exports.getMonthlyPayment = getMonthlyPayment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMonthlyPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/getMonthlyPayment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getMonthlyPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/getMonthlyPayment.ts"],"names":[],"mappings":"AAAA;;;GAGG;;;AAEH,2CAAoE;AAG7D,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,MAAuC,EAAE,EAAE;IACzF,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEtD,IAAI,SAAS,EAAE;QACb,MAAM,CAAC,GAAG,IAAI,GAAG,iCAAqB,CAAC,CAAC,2CAA2C;QAEnF,OAAO,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAClE;SAAM;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,WAAW,CAAC,GAAG,UAAU,GAAG,CAAC,IAAI,GAAG,CAAC,0BAAc,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,oEAAoE;KACjK;AACH,CAAC,CAAC;AAVW,QAAA,iBAAiB,qBAU5B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { CalculatorBlockDef } from './CalculatorContent';
|
|
2
|
-
export declare const renderCalculatorBlock: ({ context, className }: any) => (
|
|
2
|
+
export declare const renderCalculatorBlock: ({ context, className }: any) => (block: CalculatorBlockDef, i: number) => any;
|
|
@@ -2,13 +2,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderCalculatorBlock = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const EmbeddableCalcBlocks_1 = require("./EmbeddableCalcBlocks");
|
|
5
|
-
const renderCalculatorBlock = ({ context, className }) => (
|
|
6
|
-
const type =
|
|
5
|
+
const renderCalculatorBlock = ({ context, className }) => (block, i) => {
|
|
6
|
+
const type = block?.calcType;
|
|
7
7
|
if (!type || !(type in EmbeddableCalcBlocks_1.EmbeddableCalcBlocks)) {
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
10
|
const EmbeddedBlock = EmbeddableCalcBlocks_1.EmbeddableCalcBlocks[type];
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: `box-border relative flex shrink-0 basis-full ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "box-border p-9 w-full", children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("section", { className: `box-border relative flex shrink-0 basis-full ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)("div", { className: "box-border p-9 w-full", children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...block, className: "flex justify-between" }) }) }, String(i)));
|
|
12
12
|
};
|
|
13
13
|
exports.renderCalculatorBlock = renderCalculatorBlock;
|
|
14
14
|
//# sourceMappingURL=renderCalculatorBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderCalculatorBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorBlock.tsx"],"names":[],"mappings":";;;AAEA,iEAAmF;AAE5E,MAAM,qBAAqB,GAChC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,
|
|
1
|
+
{"version":3,"file":"renderCalculatorBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorBlock.tsx"],"names":[],"mappings":";;;AAEA,iEAAmF;AAE5E,MAAM,qBAAqB,GAChC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,KAAyB,EAAE,CAAS,EAAE,EAAE;IACvC,MAAM,IAAI,GAAG,KAAK,EAAE,QAAQ,CAAC;IAC7B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,2CAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,2CAAoB,CAAC,IAAI,CAAC,CAAC;IAEhF,OAAO,CACL,oCAEE,SAAS,EAAE,gDAAgD,SAAS,EAAE,EACtE,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAC,uBAAuB,YACpC,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAC,sBAAsB,GAAG,GAC3E,IAND,MAAM,CAAC,CAAC,CAAC,CAON,CACX,CAAC;AACJ,CAAC,CAAC;AApBS,QAAA,qBAAqB,yBAoB9B"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
interface RenderWantedSumInputProps {
|
|
4
|
-
calculatorParams: CalculatorParams;
|
|
5
|
-
moneyValue: number | undefined;
|
|
6
|
-
defaultSum: number;
|
|
7
|
-
setMoneyValue: InputRangeProps['onChange'];
|
|
1
|
+
interface RenderWantedSumInputParams {
|
|
2
|
+
moneyValue: number;
|
|
8
3
|
}
|
|
9
|
-
export declare function renderInitialFeeInput(props:
|
|
4
|
+
export declare function renderInitialFeeInput(title: any, props: RenderWantedSumInputParams, callback: any): any;
|
|
10
5
|
export {};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderInitialFeeInput = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
// TEMP
|
|
4
5
|
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
6
|
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
6
7
|
const constants_1 = require("./constants");
|
|
7
8
|
const STEP_MONEY = 1000;
|
|
8
|
-
function renderInitialFeeInput(props) {
|
|
9
|
-
const {
|
|
10
|
-
const minSum =
|
|
11
|
-
const maxSum =
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-6", title:
|
|
9
|
+
function renderInitialFeeInput(title, props, callback) {
|
|
10
|
+
const { moneyValue } = props;
|
|
11
|
+
const minSum = constants_1.DEFAULT_MIN_SUM;
|
|
12
|
+
const maxSum = constants_1.DEFAULT_MAX_SUM;
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-6", title: title, items: [
|
|
13
14
|
`От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(minSum)} рублей`,
|
|
14
15
|
`До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(maxSum)} рублей`,
|
|
15
|
-
], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue
|
|
16
|
+
], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue, onChange: callback }));
|
|
16
17
|
}
|
|
17
18
|
exports.renderInitialFeeInput = renderInitialFeeInput;
|
|
18
19
|
//# sourceMappingURL=renderInitialFeeInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInitialFeeInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInitialFeeInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;
|
|
1
|
+
{"version":3,"file":"renderInitialFeeInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInitialFeeInput.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AACP,mEAAgE;AAChE,iFAA8E;AAC9E,2CAA+D;AAE/D,MAAM,UAAU,GAAG,IAAI,CAAC;AAMxB,SAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAiC,EAAE,QAAQ;IACtF,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,MAAM,MAAM,GAAG,2BAAe,CAAC;IAC/B,MAAM,MAAM,GAAG,2BAAe,CAAC;IAE/B,OAAO,CACL,uBAAC,uBAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE;YACL,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,SAAS;YAC9C,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,SAAS;SAC/C,EACD,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC;AArBD,sDAqBC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
interface RenderMonthsInputProps {
|
|
3
|
-
title: string;
|
|
1
|
+
interface RenderMonthsInputParams {
|
|
4
2
|
minMonths: number;
|
|
5
3
|
maxMonths: number;
|
|
6
|
-
monthsValue: number
|
|
7
|
-
defaultMonths: number;
|
|
8
|
-
setMonthsValue: InputRangeProps['onChange'];
|
|
4
|
+
monthsValue: number;
|
|
9
5
|
}
|
|
10
|
-
export declare function renderMonthsInput(
|
|
6
|
+
export declare function renderMonthsInput(title: string, params: RenderMonthsInputParams, callback: any): any;
|
|
11
7
|
export {};
|
|
@@ -2,14 +2,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderMonthsInput = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
|
+
const clamp_1 = require("../../utils/clamp");
|
|
5
6
|
const STEP_MONTHS = 1;
|
|
6
|
-
function renderMonthsInput(
|
|
7
|
-
const {
|
|
7
|
+
function renderMonthsInput(title, params, callback) {
|
|
8
|
+
const { minMonths, maxMonths, monthsValue } = params;
|
|
8
9
|
const monthText = (month) => {
|
|
9
10
|
const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
|
|
10
11
|
return `${month} ${text}`;
|
|
11
12
|
};
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-6", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: monthsValue
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-6", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: (0, clamp_1.clamp)(monthsValue, minMonths, maxMonths), onChange: callback }));
|
|
13
14
|
}
|
|
14
15
|
exports.renderMonthsInput = renderMonthsInput;
|
|
15
16
|
//# sourceMappingURL=renderMonthsInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;
|
|
1
|
+
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,6CAA0C;AAE1C,MAAM,WAAW,GAAG,CAAC,CAAC;AAQtB,SAAgB,iBAAiB,CAAC,KAAa,EAAE,MAA+B,EAAE,QAAQ;IACxF,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IACrD,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAE7D,OAAO,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACL,uBAAC,uBAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EACnE,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC,EAC/C,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC;AApBD,8CAoBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderPaymentTypeSelector = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
|
|
5
|
+
function renderPaymentTypeSelector(context, { items, checkedItem, onChange }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { context: context, items: items, checkedItem: checkedItem, onChangeCheckedItem: onChange }));
|
|
7
|
+
}
|
|
8
|
+
exports.renderPaymentTypeSelector = renderPaymentTypeSelector;
|
|
9
|
+
//# sourceMappingURL=renderPaymentTypeSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderPaymentTypeSelector.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentTypeSelector.tsx"],"names":[],"mappings":";;;AAAA,qFAAkF;AAElF,SAAgB,yBAAyB,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE;IACjF,OAAO,CACL,uBAAC,mCAAgB,IACf,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,QAAQ,GAC7B,CACH,CAAC;AACJ,CAAC;AATD,8DASC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
2
|
-
import type { CalculatorParams } from './CalculatorContent';
|
|
3
1
|
interface RenderRealEstateValueInputProps {
|
|
4
|
-
|
|
5
|
-
moneyValue: number | undefined;
|
|
6
|
-
defaultSum: number;
|
|
7
|
-
setMoneyValue: InputRangeProps['onChange'];
|
|
2
|
+
moneyValue: number;
|
|
8
3
|
}
|
|
9
|
-
export declare function renderRealEstateValue(props: RenderRealEstateValueInputProps): any;
|
|
4
|
+
export declare function renderRealEstateValue(title: any, props: RenderRealEstateValueInputProps, callback: any): any;
|
|
10
5
|
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderRealEstateValue = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
// TEMP
|
|
4
5
|
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
6
|
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
6
7
|
const constants_1 = require("./constants");
|
|
7
8
|
const STEP_MONEY = 1000;
|
|
8
|
-
function renderRealEstateValue(props) {
|
|
9
|
-
const {
|
|
10
|
-
const minSum =
|
|
11
|
-
const maxSum =
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { title:
|
|
9
|
+
function renderRealEstateValue(title, props, callback) {
|
|
10
|
+
const { moneyValue } = props;
|
|
11
|
+
const minSum = constants_1.DEFAULT_MIN_SUM;
|
|
12
|
+
const maxSum = constants_1.DEFAULT_MAX_SUM;
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { title: title, items: [`От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(minSum)} ₽`, `До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(maxSum)} ₽`], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue, onChange: callback }));
|
|
13
14
|
}
|
|
14
15
|
exports.renderRealEstateValue = renderRealEstateValue;
|
|
15
16
|
//# sourceMappingURL=renderRealEstateValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderRealEstateValue.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRealEstateValue.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;
|
|
1
|
+
{"version":3,"file":"renderRealEstateValue.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRealEstateValue.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AACP,mEAAgE;AAChE,iFAA8E;AAC9E,2CAA+D;AAE/D,MAAM,UAAU,GAAG,IAAI,CAAC;AAMxB,SAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAsC,EAAE,QAAQ;IAC3F,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,MAAM,MAAM,GAAG,2BAAe,CAAC;IAC/B,MAAM,MAAM,GAAG,2BAAe,CAAC;IAE/B,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,EAAE,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,CAAC,EAC7F,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC;AAjBD,sDAiBC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
interface RenderWantedSumParams {
|
|
2
|
+
minSum: number;
|
|
3
|
+
maxSum: number;
|
|
4
|
+
moneyValue: number;
|
|
4
5
|
className?: string;
|
|
5
|
-
|
|
6
|
+
step?: number;
|
|
6
7
|
isShowItems?: boolean;
|
|
7
|
-
calculatorParams: CalculatorParams;
|
|
8
|
-
moneyValue: number | undefined;
|
|
9
|
-
defaultSum: number;
|
|
10
|
-
setMoneyValue: InputRangeProps['onChange'];
|
|
11
8
|
}
|
|
12
|
-
export declare function renderWantedSumInput(
|
|
9
|
+
export declare function renderWantedSumInput(title: string, params: RenderWantedSumParams, callback: any): any;
|
|
13
10
|
export {};
|
|
@@ -3,17 +3,15 @@ exports.renderWantedSumInput = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
5
|
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
function renderWantedSumInput(
|
|
9
|
-
const {
|
|
10
|
-
const minSum = calculatorParams?.minSum || constants_1.DEFAULT_MIN_SUM;
|
|
11
|
-
const maxSum = calculatorParams?.maxSum || constants_1.DEFAULT_MAX_SUM;
|
|
6
|
+
const clamp_1 = require("../../utils/clamp");
|
|
7
|
+
const DEFAULT_MONEY_STEP = 1000;
|
|
8
|
+
function renderWantedSumInput(title, params, callback) {
|
|
9
|
+
const { moneyValue, minSum, maxSum, step = DEFAULT_MONEY_STEP, isShowItems = true } = params;
|
|
12
10
|
const items = [
|
|
13
11
|
`От ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(minSum)} ₽`,
|
|
14
12
|
`До ${(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(maxSum)} ₽`,
|
|
15
13
|
];
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, {
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { title: title, items: isShowItems ? items : [], min: minSum, max: maxSum, step: step, value: (0, clamp_1.clamp)(moneyValue, minSum, maxSum), onChange: callback }));
|
|
17
15
|
}
|
|
18
16
|
exports.renderWantedSumInput = renderWantedSumInput;
|
|
19
17
|
//# sourceMappingURL=renderWantedSumInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;
|
|
1
|
+
{"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,iFAA8E;AAC9E,6CAA0C;AAE1C,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAWhC,SAAgB,oBAAoB,CAAC,KAAa,EAAE,MAA6B,EAAE,QAAQ;IACzF,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,kBAAkB,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAE7F,MAAM,KAAK,GAAG;QACZ,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI;QACzC,MAAM,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI;KAC1C,CAAC;IAEF,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAC/B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EACxC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC;AAnBD,oDAmBC"}
|