@redneckz/wildless-cms-uni-blocks 0.3.69 → 0.3.71
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 +467 -423
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/DoneIcon.svg +1 -0
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/BlockContent.d.ts +3 -1
- package/dist/components/Blocks.d.ts +1 -1
- package/dist/components/Blocks.js +2 -2
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +7 -3
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/getCalculatorParams.js +2 -1
- package/dist/components/Calculator/getCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/getCreditRate.js +2 -1
- package/dist/components/Calculator/getCreditRate.js.map +1 -1
- package/dist/components/Calculator/getMonthlyPayment.js +2 -1
- package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.mobile.js +4 -2
- package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.js +3 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +3 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.js +2 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
- package/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/dist/components/ExchangeRateTile/calculateResult.js +11 -0
- package/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
- package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/dist/components/ExchangeRateTile/renderButton.js +9 -0
- package/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/dist/components/ExchangeRateTile/renderInput.js +12 -0
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +4 -13
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Gallery/Gallery.mobile.js +2 -2
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryInner.js +7 -2
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/dist/components/GroupBlock/GroupBlock.js +3 -3
- package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/dist/components/Header/DropdownMenu.d.ts +13 -0
- package/dist/components/Header/DropdownMenu.js +18 -0
- package/dist/components/Header/DropdownMenu.js.map +1 -0
- package/dist/components/Header/HeaderSubMenu.js +19 -32
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Insurance/Insurance.js +4 -6
- package/dist/components/Insurance/Insurance.js.map +1 -1
- package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +2 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +7 -2
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +4 -4
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +5 -0
- package/dist/content-page-repository/mapJSON.d.ts +1 -1
- package/dist/content-page-repository/mapJSON.js +9 -7
- package/dist/content-page-repository/mapJSON.js.map +1 -1
- package/dist/content-page-repository/transformMarkdown.js +2 -1
- package/dist/content-page-repository/transformMarkdown.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +6 -3
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/hooks/useCreditCalculatorData.d.ts +1 -2
- package/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/dist/hooks/useExchangeRates.d.ts +2 -8
- package/dist/hooks/useExchangeRates.js +52 -3
- package/dist/hooks/useExchangeRates.js.map +1 -1
- package/dist/hooks/useTableArrowScrollControl.js +3 -3
- package/dist/hooks/useTableArrowScrollControl.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/Insurance.d.ts +6 -0
- package/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
- package/dist/model/Insurance.js.map +1 -0
- package/dist/react/IntersectionObserverTag.d.ts +3 -0
- package/dist/react/IntersectionObserverTag.js +17 -0
- package/dist/react/IntersectionObserverTag.js.map +1 -0
- package/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{mobile/dist → dist/react}/setup-fixture.js +3 -1
- package/dist/react/setup-fixture.js.map +1 -0
- package/dist/services/sitemap/isHrefActive.d.ts +1 -1
- package/dist/services/sitemap/isHrefActive.js +1 -1
- package/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.js +2 -1
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Button/renderArrows.d.ts +10 -0
- package/dist/ui-kit/Button/renderArrows.js +9 -0
- package/dist/ui-kit/Button/renderArrows.js.map +1 -0
- package/dist/ui-kit/Img/Img.mobile.js +1 -1
- package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +6 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +3 -0
- package/dist/ui-kit/InputRange/InputRange.js +10 -6
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/SVG.js +1 -1
- package/dist/ui-kit/SVG.js.map +1 -1
- package/dist/ui-kit/SearchBar.mobile.js +1 -1
- package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
- package/dist/ui-kit/Select/Select.d.ts +2 -0
- package/dist/ui-kit/Select/Select.js +2 -2
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/dist/ui-kit/Tabs/Tabs.js +2 -1
- package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +6 -8
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/changeHashOnScroll.js +2 -1
- package/dist/utils/changeHashOnScroll.js.map +1 -1
- package/dist/utils/getCurrentDate.js +1 -1
- package/dist/utils/roundTo.d.ts +1 -0
- package/dist/utils/roundTo.js +8 -0
- package/dist/utils/roundTo.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/BlockContent.d.ts +3 -1
- package/lib/components/Blocks.d.ts +1 -1
- package/lib/components/Blocks.js +2 -2
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +8 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/getCalculatorParams.js +2 -1
- package/lib/components/Calculator/getCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/getCreditRate.js +2 -1
- package/lib/components/Calculator/getCreditRate.js.map +1 -1
- package/lib/components/Calculator/getMonthlyPayment.js +2 -1
- package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.mobile.js +4 -2
- package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.js +3 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +3 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.js +2 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
- package/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/lib/components/ExchangeRateTile/calculateResult.js +7 -0
- package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
- package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/lib/components/ExchangeRateTile/renderButton.js +6 -0
- package/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/lib/components/ExchangeRateTile/renderInput.js +9 -0
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +4 -13
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Gallery/Gallery.mobile.js +2 -2
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryInner.js +7 -2
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +1 -0
- package/lib/components/GroupBlock/GroupBlock.js +3 -3
- package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
- package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
- package/lib/components/Header/DropdownMenu.d.ts +13 -0
- package/lib/components/Header/DropdownMenu.js +16 -0
- package/lib/components/Header/DropdownMenu.js.map +1 -0
- package/lib/components/Header/HeaderSubMenu.js +19 -32
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +9 -3
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +13 -3
- package/lib/components/Insurance/Insurance.fixture.d.ts +2 -1
- package/lib/components/Insurance/Insurance.js +4 -6
- package/lib/components/Insurance/Insurance.js.map +1 -1
- package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
- package/lib/components/{CreditCalculator/CreditCalculator.fixture.d.ts → InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts} +0 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +1 -1
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +10 -2
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.js +2 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -0
- package/lib/components/Recommendation/Recommendation.js +7 -2
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +7 -1
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
- package/lib/components/Tile/Tile.js +4 -4
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +5 -0
- package/lib/content-page-repository/mapJSON.d.ts +1 -1
- package/lib/content-page-repository/mapJSON.js +9 -7
- package/lib/content-page-repository/mapJSON.js.map +1 -1
- package/lib/content-page-repository/transformMarkdown.js +2 -1
- package/lib/content-page-repository/transformMarkdown.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +6 -3
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/hooks/useCreditCalculatorData.d.ts +1 -2
- package/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/lib/hooks/useExchangeRates.d.ts +2 -8
- package/lib/hooks/useExchangeRates.js +52 -3
- package/lib/hooks/useExchangeRates.js.map +1 -1
- package/lib/hooks/useTableArrowScrollControl.js +3 -3
- package/lib/hooks/useTableArrowScrollControl.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/Insurance.d.ts +6 -0
- package/lib/model/Insurance.js +2 -0
- package/lib/model/Insurance.js.map +1 -0
- package/lib/react/IntersectionObserverTag.d.ts +3 -0
- package/lib/react/IntersectionObserverTag.js +14 -0
- package/lib/react/IntersectionObserverTag.js.map +1 -0
- package/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{mobile/lib → lib/react}/setup-fixture.js +3 -1
- package/lib/react/setup-fixture.js.map +1 -0
- package/lib/services/sitemap/isHrefActive.d.ts +1 -1
- package/lib/services/sitemap/isHrefActive.js +1 -1
- package/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
- package/lib/ui-kit/Button/Button.fixture.mobile.d.ts +1 -1
- package/lib/ui-kit/Button/ButtonSection.js +2 -1
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Button/renderArrows.d.ts +10 -0
- package/lib/ui-kit/Button/renderArrows.js +6 -0
- package/lib/ui-kit/Button/renderArrows.js.map +1 -0
- package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
- package/lib/ui-kit/Img/Img.mobile.js +1 -1
- package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +6 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +3 -0
- package/lib/ui-kit/InputRange/InputRange.js +10 -6
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/List/List.fixture.d.ts +1 -1
- package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
- package/lib/ui-kit/SVG.js +1 -1
- package/lib/ui-kit/SVG.js.map +1 -1
- package/lib/ui-kit/SearchBar.mobile.js +1 -1
- package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/Select/Select.d.ts +2 -0
- package/lib/ui-kit/Select/Select.js +2 -2
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/lib/ui-kit/Tabs/Tabs.js +2 -1
- package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +6 -8
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/changeHashOnScroll.js +2 -1
- package/lib/utils/changeHashOnScroll.js.map +1 -1
- package/lib/utils/getCurrentDate.js +1 -1
- package/lib/utils/roundTo.d.ts +1 -0
- package/lib/utils/roundTo.js +5 -0
- package/lib/utils/roundTo.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +216 -69
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/BlockContent.d.ts +3 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +7 -3
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/getCalculatorParams.js +2 -1
- package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/getCreditRate.js +2 -1
- package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.js +2 -1
- package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/HeaderCell.js +4 -2
- package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +3 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +2 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js +11 -0
- package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
- package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/mobile/dist/components/ExchangeRateTile/renderButton.js +9 -0
- package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +12 -0
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/mobile/dist/components/Footer/MediaButton.js +4 -13
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Gallery/Gallery.js +2 -2
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +7 -2
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/mobile/dist/components/GroupBlock/GroupBlock.js +3 -3
- package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +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/Header/DropdownMenu.d.ts +13 -0
- package/mobile/dist/components/Header/DropdownMenu.js +18 -0
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js +19 -32
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Insurance/Insurance.js +4 -6
- 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.d.ts +5 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +7 -2
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +4 -4
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +5 -0
- package/mobile/dist/content-page-repository/mapJSON.d.ts +1 -1
- package/mobile/dist/content-page-repository/mapJSON.js +9 -7
- package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/dist/content-page-repository/transformMarkdown.js +2 -1
- package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +6 -3
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/hooks/useCreditCalculatorData.d.ts +1 -2
- package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/dist/hooks/useExchangeRates.d.ts +2 -8
- package/mobile/dist/hooks/useExchangeRates.js +52 -3
- package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
- package/mobile/dist/hooks/useTableArrowScrollControl.js +3 -3
- package/mobile/dist/hooks/useTableArrowScrollControl.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/Insurance.d.ts +6 -0
- package/mobile/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
- package/mobile/dist/model/Insurance.js.map +1 -0
- package/mobile/dist/react/IntersectionObserverTag.d.ts +3 -0
- package/mobile/dist/react/IntersectionObserverTag.js +17 -0
- package/mobile/dist/react/IntersectionObserverTag.js.map +1 -0
- package/mobile/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{dist → mobile/dist/react}/setup-fixture.js +3 -1
- package/mobile/dist/react/setup-fixture.js.map +1 -0
- package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.js +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderArrows.d.ts +10 -0
- package/mobile/dist/ui-kit/Button/renderArrows.js +9 -0
- package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -0
- package/mobile/dist/ui-kit/Img/Img.js +1 -1
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +6 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +3 -0
- package/mobile/dist/ui-kit/InputRange/InputRange.js +10 -6
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/SVG.js +1 -1
- package/mobile/dist/ui-kit/SVG.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/Select.js +2 -2
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/mobile/dist/ui-kit/Tabs/Tabs.js +2 -1
- package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +6 -8
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/changeHashOnScroll.js +2 -1
- package/mobile/dist/utils/changeHashOnScroll.js.map +1 -1
- package/mobile/dist/utils/getCurrentDate.js +1 -1
- package/mobile/dist/utils/roundTo.d.ts +1 -0
- package/mobile/dist/utils/roundTo.js +8 -0
- package/mobile/dist/utils/roundTo.js.map +1 -0
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/BlockContent.d.ts +3 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +8 -4
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/getCalculatorParams.js +2 -1
- package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/getCreditRate.js +2 -1
- package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.js +2 -1
- package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/HeaderCell.js +4 -2
- package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +3 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +2 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
- package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js +7 -0
- package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
- package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
- package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
- package/mobile/lib/components/ExchangeRateTile/renderButton.js +6 -0
- package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
- package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +9 -0
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
- package/mobile/lib/components/Footer/MediaButton.js +4 -13
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Gallery/Gallery.js +2 -2
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -2
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +7 -2
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
- package/mobile/lib/components/GroupBlock/GroupBlock.js +3 -3
- package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
- package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +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/Header/DropdownMenu.d.ts +13 -0
- package/mobile/lib/components/Header/DropdownMenu.js +16 -0
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js +19 -32
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Insurance/Insurance.js +4 -6
- 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.d.ts +5 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +7 -2
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +4 -4
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +5 -0
- package/mobile/lib/content-page-repository/mapJSON.d.ts +1 -1
- package/mobile/lib/content-page-repository/mapJSON.js +9 -7
- package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
- package/mobile/lib/content-page-repository/transformMarkdown.js +2 -1
- package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +6 -3
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/hooks/useCreditCalculatorData.d.ts +1 -2
- package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
- package/mobile/lib/hooks/useExchangeRates.d.ts +2 -8
- package/mobile/lib/hooks/useExchangeRates.js +52 -3
- package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
- package/mobile/lib/hooks/useTableArrowScrollControl.js +3 -3
- package/mobile/lib/hooks/useTableArrowScrollControl.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/Insurance.d.ts +6 -0
- package/mobile/lib/model/Insurance.js +2 -0
- package/mobile/lib/model/Insurance.js.map +1 -0
- package/mobile/lib/react/IntersectionObserverTag.d.ts +3 -0
- package/mobile/lib/react/IntersectionObserverTag.js +14 -0
- package/mobile/lib/react/IntersectionObserverTag.js.map +1 -0
- package/mobile/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
- package/{lib → mobile/lib/react}/setup-fixture.js +3 -1
- package/mobile/lib/react/setup-fixture.js.map +1 -0
- package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.js +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderArrows.d.ts +10 -0
- package/mobile/lib/ui-kit/Button/renderArrows.js +6 -0
- package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -0
- package/mobile/lib/ui-kit/Img/Img.js +1 -1
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +6 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +3 -0
- package/mobile/lib/ui-kit/InputRange/InputRange.js +10 -6
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/SVG.js +1 -1
- package/mobile/lib/ui-kit/SVG.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/Select.js +2 -2
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
- package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
- package/mobile/lib/ui-kit/Tabs/Tabs.js +2 -1
- package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +6 -8
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/changeHashOnScroll.js +2 -1
- package/mobile/lib/utils/changeHashOnScroll.js.map +1 -1
- package/mobile/lib/utils/getCurrentDate.js +1 -1
- package/mobile/lib/utils/roundTo.d.ts +1 -0
- package/mobile/lib/utils/roundTo.js +5 -0
- package/mobile/lib/utils/roundTo.js.map +1 -0
- package/mobile/src/components/Accordion/Accordion.tsx +1 -3
- package/mobile/src/components/BlockContent.ts +5 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
- package/mobile/src/components/Calculator/Calculator.tsx +8 -22
- package/mobile/src/components/Calculator/getCalculatorParams.ts +3 -1
- package/mobile/src/components/Calculator/getCreditRate.ts +3 -1
- package/mobile/src/components/Calculator/getMonthlyPayment.ts +3 -1
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
- package/mobile/src/components/ComparisonTable/HeaderCell.tsx +7 -13
- package/mobile/src/components/ComparisonTable/TableCell.tsx +7 -8
- package/mobile/src/components/ComparisonTable/TableRow.tsx +6 -9
- package/mobile/src/components/ContentPage/ContentPage.page.json +50 -6
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +20 -4
- package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/mobile/src/components/ExchangeRateTile/calculateResult.ts +8 -0
- package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
- package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
- package/mobile/src/components/ExchangeRateTile/renderButton.tsx +14 -0
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +43 -0
- package/mobile/src/components/Footer/MediaButton.tsx +7 -17
- package/mobile/src/components/Gallery/Gallery.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/mobile/src/components/Gallery/GalleryInner.tsx +10 -20
- package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
- package/mobile/src/components/GroupBlock/GroupBlock.example.json +8 -7
- package/mobile/src/components/GroupBlock/GroupBlock.tsx +9 -4
- package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
- package/mobile/src/components/Header/DropdownMenu.tsx +72 -0
- package/mobile/src/components/Header/HeaderSubMenu.tsx +45 -87
- package/mobile/src/components/Insurance/Insurance.example.json +21 -0
- package/mobile/src/components/Insurance/Insurance.tsx +10 -9
- package/mobile/src/components/Insurance/InsuranceContent.ts +9 -11
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +6 -2
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -5
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
- package/mobile/src/components/Recommendation/Recommendation.tsx +7 -15
- package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -5
- package/mobile/src/components/Tile/Tile.example.json +1 -0
- package/mobile/src/components/Tile/Tile.tsx +4 -2
- package/mobile/src/components/Tile/TileContent.ts +5 -0
- package/mobile/src/content-page-repository/mapJSON.ts +11 -7
- package/mobile/src/content-page-repository/transformMarkdown.ts +3 -1
- package/mobile/src/content-page-repository/transformPicture.ts +8 -3
- package/mobile/src/hooks/useCreditCalculatorData.ts +2 -3
- package/mobile/src/hooks/useExchangeRates.ts +70 -10
- package/mobile/src/hooks/useTableArrowScrollControl.ts +3 -3
- package/mobile/src/icons/DoneIcon.svg +4 -0
- package/mobile/src/icons/IconName.ts +4 -4
- package/mobile/src/model/Insurance.ts +6 -0
- package/mobile/src/react/IntersectionObserverTag.tsx +23 -0
- package/mobile/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
- package/mobile/src/services/sitemap/isHrefActive.ts +2 -1
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +3 -1
- package/mobile/src/ui-kit/Button/renderArrows.tsx +41 -0
- package/mobile/src/ui-kit/Img/Img.tsx +1 -0
- package/mobile/src/ui-kit/Input/Input.tsx +21 -5
- package/mobile/src/ui-kit/Input/InputProps.ts +3 -0
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +14 -6
- package/mobile/src/ui-kit/SVG.tsx +2 -2
- package/mobile/src/ui-kit/Select/Select.tsx +17 -7
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
- package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
- package/mobile/src/ui-kit/Tabs/Tabs.tsx +4 -3
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +8 -9
- package/mobile/src/utils/changeHashOnScroll.ts +3 -1
- package/mobile/src/utils/getCurrentDate.ts +1 -1
- package/mobile/src/utils/roundTo.ts +4 -0
- package/package.json +3 -3
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +1 -1
- package/src/components/Accordion/Accordion.fixture.tsx +11 -11
- package/src/components/Accordion/Accordion.mobile.tsx +1 -3
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
- package/src/components/BlockContent.ts +5 -1
- package/src/components/Blocks.ts +2 -2
- package/src/components/Bonus/Bonus.fixture.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
- package/src/components/Calculator/Calculator.fixture.tsx +4 -4
- package/src/components/Calculator/Calculator.tsx +8 -22
- package/src/components/Calculator/getCalculatorParams.ts +3 -1
- package/src/components/Calculator/getCreditRate.ts +3 -1
- package/src/components/Calculator/getMonthlyPayment.ts +3 -1
- package/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +2 -26
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -1
- package/src/components/ComparisonTable/HeaderCell.mobile.tsx +7 -13
- package/src/components/ComparisonTable/TableCell.mobile.tsx +7 -8
- package/src/components/ComparisonTable/TableCell.tsx +7 -10
- package/src/components/ComparisonTable/TableRow.tsx +6 -9
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
- package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
- package/src/components/ContentPage/ContentPage.page.json +50 -6
- package/src/components/ContentPage/ContentPageContext.tsx +20 -4
- package/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
- package/src/components/ExchangeRateTile/calculateResult.ts +8 -0
- package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
- package/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
- package/src/components/ExchangeRateTile/renderButton.tsx +14 -0
- package/src/components/ExchangeRateTile/renderInput.tsx +43 -0
- package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
- package/src/components/Footer/Footer.fixture.tsx +1 -1
- package/src/components/Footer/Footer.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +7 -17
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +2 -24
- package/src/components/Gallery/Gallery.fixture.tsx +1 -1
- package/src/components/Gallery/Gallery.mobile.tsx +2 -2
- package/src/components/Gallery/GalleryCardInner.tsx +2 -2
- package/src/components/Gallery/GalleryInner.tsx +10 -20
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
- package/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
- package/src/components/GroupBlock/GroupBlock.example.json +8 -7
- package/src/components/GroupBlock/GroupBlock.fixture.tsx +19 -3
- package/src/components/GroupBlock/GroupBlock.tsx +9 -4
- package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
- package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
- package/src/components/Header/DropdownMenu.tsx +72 -0
- package/src/components/Header/Header.fixture.mobile.tsx +1 -1
- package/src/components/Header/Header.fixture.tsx +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +45 -87
- package/src/components/Headline/Headline.fixture.mobile.tsx +45 -4
- package/src/components/Headline/Headline.fixture.tsx +31 -7
- package/src/components/Insurance/Insurance.example.json +21 -0
- package/src/components/Insurance/Insurance.fixture.tsx +11 -6
- package/src/components/Insurance/Insurance.tsx +10 -9
- package/src/components/Insurance/InsuranceContent.ts +9 -11
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +52 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
- package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +2 -2
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +2 -2
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
- package/src/components/LinkList/LinkList.fixture.tsx +1 -1
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
- package/src/components/Navigation/Navigation.fixture.tsx +1 -1
- package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +1 -1
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +1 -1
- package/src/components/PictureText/PictureText.fixture.tsx +1 -1
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
- package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
- package/src/components/Placeholder/Placeholder.tsx +6 -2
- package/src/components/ProductBlock/ProductBlock.example.json +1 -5
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -2
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +35 -5
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -2
- package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
- package/src/components/ProductTile/ProductTile.tsx +2 -2
- package/src/components/PromoTile/PromoTile.fixture.tsx +2 -2
- package/src/components/Recommendation/Recommendation.fixture.tsx +18 -13
- package/src/components/Recommendation/Recommendation.tsx +7 -15
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +38 -3
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +4 -4
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.example.json +1 -5
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +2 -30
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +106 -103
- package/src/components/TextBlock/TextBlock.fixture.tsx +65 -87
- package/src/components/Tile/Tile.example.json +1 -0
- package/src/components/Tile/Tile.fixture.tsx +2 -1
- package/src/components/Tile/Tile.tsx +4 -2
- package/src/components/Tile/TileContent.ts +5 -0
- package/src/content-page-repository/mapJSON.ts +11 -7
- package/src/content-page-repository/transformMarkdown.ts +3 -1
- package/src/content-page-repository/transformPicture.ts +8 -3
- package/src/hooks/useCreditCalculatorData.ts +2 -3
- package/src/hooks/useExchangeRates.ts +70 -10
- package/src/hooks/useTableArrowScrollControl.ts +3 -3
- package/src/icons/DoneIcon.svg +4 -0
- package/src/icons/IconName.ts +4 -1
- package/src/model/Insurance.ts +6 -0
- package/src/react/IntersectionObserverTag.tsx +23 -0
- package/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
- package/src/services/sitemap/isHrefActive.ts +2 -1
- package/src/ui-kit/Button/ArrowButton.tsx +1 -1
- package/src/ui-kit/Button/Button.fixture.mobile.tsx +1 -1
- package/src/ui-kit/Button/Button.fixture.tsx +1 -1
- package/src/ui-kit/Button/ButtonSection.tsx +3 -1
- package/src/ui-kit/Button/renderArrows.tsx +41 -0
- package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
- package/src/ui-kit/Icon/Icon.fixture.tsx +2 -2
- package/src/ui-kit/Img/Img.mobile.tsx +1 -0
- package/src/ui-kit/Input/Input.tsx +21 -5
- package/src/ui-kit/Input/InputProps.ts +3 -0
- package/src/ui-kit/InputRange/InputRange.tsx +14 -6
- package/src/ui-kit/List/List.fixture.tsx +1 -1
- package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
- package/src/ui-kit/SVG.tsx +2 -2
- package/src/ui-kit/SearchBar.mobile.tsx +1 -3
- package/src/ui-kit/Select/Select.tsx +17 -7
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
- package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
- package/src/ui-kit/Tabs/Tabs.tsx +4 -3
- package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +8 -9
- package/src/utils/changeHashOnScroll.ts +3 -1
- package/src/utils/getCurrentDate.ts +1 -1
- package/src/utils/roundTo.ts +4 -0
- package/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/dist/components/CreditCalculator/CreditCalculator.js +0 -14
- package/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
- package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/dist/components/CreditCalculator/constants.d.ts +0 -7
- package/dist/components/CreditCalculator/constants.js +0 -10
- package/dist/components/CreditCalculator/constants.js.map +0 -1
- package/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/dist/components/CreditCalculator/defaultTabs.js +0 -23
- package/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
- package/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/dist/components/CreditCalculator/getCreditRate.js +0 -13
- package/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
- package/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
- package/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/dist/components/CreditCalculator/getDefaultSum.js +0 -8
- package/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
- package/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/dist/components/CreditCalculator/renderButton.d.ts +0 -1
- package/dist/components/CreditCalculator/renderButton.js +0 -15
- package/dist/components/CreditCalculator/renderButton.js.map +0 -1
- package/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
- package/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/dist/components/CreditCalculator/renderProposal.js +0 -9
- package/dist/components/CreditCalculator/renderProposal.js.map +0 -1
- package/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/dist/components/CreditCalculator/renderTermsButton.js +0 -9
- package/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
- package/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/dist/components/Header/HeaderSubMenuObserver.js +0 -36
- package/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/dist/setup-fixture.js.map +0 -1
- package/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/lib/components/CreditCalculator/CreditCalculator.js +0 -12
- package/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
- package/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
- package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/lib/components/CreditCalculator/constants.d.ts +0 -7
- package/lib/components/CreditCalculator/constants.js +0 -8
- package/lib/components/CreditCalculator/constants.js.map +0 -1
- package/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/lib/components/CreditCalculator/defaultTabs.js +0 -21
- package/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
- package/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/lib/components/CreditCalculator/getCreditRate.js +0 -10
- package/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
- package/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
- package/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/lib/components/CreditCalculator/getDefaultSum.js +0 -5
- package/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
- package/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/lib/components/CreditCalculator/renderButton.d.ts +0 -1
- package/lib/components/CreditCalculator/renderButton.js +0 -12
- package/lib/components/CreditCalculator/renderButton.js.map +0 -1
- package/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
- package/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/lib/components/CreditCalculator/renderProposal.js +0 -6
- package/lib/components/CreditCalculator/renderProposal.js.map +0 -1
- package/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/lib/components/CreditCalculator/renderTermsButton.js +0 -6
- package/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
- package/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/lib/components/Header/HeaderSubMenuObserver.js +0 -34
- package/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/lib/setup-fixture.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js +0 -14
- package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
- package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/constants.d.ts +0 -7
- package/mobile/dist/components/CreditCalculator/constants.js +0 -10
- package/mobile/dist/components/CreditCalculator/constants.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/mobile/dist/components/CreditCalculator/defaultTabs.js +0 -23
- package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
- package/mobile/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/mobile/dist/components/CreditCalculator/getCreditRate.js +0 -13
- package/mobile/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
- package/mobile/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
- package/mobile/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js +0 -8
- package/mobile/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
- package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderButton.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/renderButton.js +0 -15
- package/mobile/dist/components/CreditCalculator/renderButton.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
- package/mobile/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/renderProposal.js +0 -9
- package/mobile/dist/components/CreditCalculator/renderProposal.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js +0 -9
- package/mobile/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
- package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/mobile/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/mobile/dist/components/Header/HeaderSubMenuObserver.js +0 -36
- package/mobile/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/mobile/dist/setup-fixture.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js +0 -12
- package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
- package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
- package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/constants.d.ts +0 -7
- package/mobile/lib/components/CreditCalculator/constants.js +0 -8
- package/mobile/lib/components/CreditCalculator/constants.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
- package/mobile/lib/components/CreditCalculator/defaultTabs.js +0 -21
- package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
- package/mobile/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
- package/mobile/lib/components/CreditCalculator/getCreditRate.js +0 -10
- package/mobile/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
- package/mobile/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
- package/mobile/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js +0 -5
- package/mobile/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
- package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderButton.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/renderButton.js +0 -12
- package/mobile/lib/components/CreditCalculator/renderButton.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
- package/mobile/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/renderProposal.js +0 -6
- package/mobile/lib/components/CreditCalculator/renderProposal.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js +0 -6
- package/mobile/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
- package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
- package/mobile/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
- package/mobile/lib/components/Header/HeaderSubMenuObserver.js +0 -34
- package/mobile/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
- package/mobile/lib/setup-fixture.js.map +0 -1
- package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
- package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
- package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
- package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
- package/mobile/src/components/CreditCalculator/constants.ts +0 -8
- package/mobile/src/components/CreditCalculator/defaultTabs.ts +0 -22
- package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
- package/mobile/src/components/CreditCalculator/getCreditRate.ts +0 -18
- package/mobile/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
- package/mobile/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
- package/mobile/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
- package/mobile/src/components/CreditCalculator/getDefaultSum.ts +0 -7
- package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
- package/mobile/src/components/CreditCalculator/renderButton.tsx +0 -23
- package/mobile/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
- package/mobile/src/components/CreditCalculator/renderProposal.tsx +0 -13
- package/mobile/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
- package/mobile/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
- package/mobile/src/components/Header/HeaderSubMenuObserver.ts +0 -48
- package/mobile/src/components/Insurance/Insuranse.example.json +0 -36
- package/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
- package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +0 -32
- package/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
- package/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
- package/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
- package/src/components/CreditCalculator/constants.ts +0 -8
- package/src/components/CreditCalculator/defaultTabs.ts +0 -22
- package/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
- package/src/components/CreditCalculator/getCreditRate.ts +0 -18
- package/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
- package/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
- package/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
- package/src/components/CreditCalculator/getDefaultSum.ts +0 -7
- package/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
- package/src/components/CreditCalculator/renderButton.tsx +0 -23
- package/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
- package/src/components/CreditCalculator/renderProposal.tsx +0 -13
- package/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
- package/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
- package/src/components/Header/HeaderSubMenuObserver.ts +0 -48
- package/src/components/Insurance/Insuranse.example.json +0 -36
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { tableFunc } from '../../utils/tableFunc.js';
|
|
3
|
-
const func = tableFunc([
|
|
4
|
-
[(_) => _ === 1, 'год'],
|
|
5
|
-
[(_) => _ <= 4, 'года'],
|
|
6
|
-
[() => true, 'лет'],
|
|
7
|
-
]);
|
|
8
|
-
export function renderButton(number, i, handleClick) {
|
|
9
|
-
const string = func(number);
|
|
10
|
-
return (_jsx("button", { className: "bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none", onClick: () => handleClick(number), children: _jsxs("span", { className: "font-semibold text-sm", children: [number, " ", string] }) }, String(i)));
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=renderButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,MAAM,IAAI,GAAG,SAAS,CAAiB;IACrC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,UAAU,YAAY,CAAC,MAAc,EAAE,CAAS,EAAE,WAAqC;IAC3F,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,OAAO,CACL,iBAEE,SAAS,EAAC,0HAA0H,EACpI,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,YAElC,gBAAM,SAAS,EAAC,uBAAuB,aACpC,MAAM,OAAG,MAAM,IACX,IANF,MAAM,CAAC,CAAC,CAAC,CAOP,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
2
|
-
interface RenderMonthsInputProps {
|
|
3
|
-
minMonths: number;
|
|
4
|
-
maxMonths: number;
|
|
5
|
-
monthsValue: number | undefined;
|
|
6
|
-
defaultMonths: number;
|
|
7
|
-
setMonthsValue: InputRangeProps['onChange'];
|
|
8
|
-
}
|
|
9
|
-
export declare function renderMonthsInput(props: RenderMonthsInputProps): any;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
|
|
3
|
-
const STEP_MONTHS = 1;
|
|
4
|
-
export function renderMonthsInput(props) {
|
|
5
|
-
const { minMonths, maxMonths, monthsValue, defaultMonths, setMonthsValue } = props;
|
|
6
|
-
return (_jsx(InputRange, { className: "mt-[23px]", title: "\u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ['Или выберите из предложенных вариантов ниже'], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: monthsValue || defaultMonths, onChange: setMonthsValue }));
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=renderMonthsInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderMonthsInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAGhE,MAAM,WAAW,GAAG,CAAC,CAAC;AAUtB,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,CACL,KAAC,UAAU,IACT,SAAS,EAAC,WAAW,EACrB,KAAK,EAAC,iHAAuB,EAC7B,KAAK,EAAE,CAAC,6CAA6C,CAAC,EACtD,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,IAAI,aAAa,EACnC,QAAQ,EAAE,cAAc,GACxB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renderProposal(monthlyPayment: number, rate: number): any;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers.js';
|
|
3
|
-
export function renderProposal(monthlyPayment, rate) {
|
|
4
|
-
return (_jsxs("div", { className: "box-border h-fit p-9 bg-primary-main rounded-md text-white", children: [_jsx("div", { className: "text-base mb-[18px]", children: "\u041D\u0430\u0448\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), _jsx("div", { className: "text-sm opacity-60", children: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436" }), _jsxs("div", { className: "text-lg mb-3", children: [addSpacesBetweenNumbers(Math.round(monthlyPayment)), " \u20BD"] }), _jsx("div", { className: "text-sm opacity-60", children: "\u0421\u0442\u0430\u0432\u043A\u0430" }), _jsxs("div", { className: "text-lg", children: [rate, " %"] })] }));
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=renderProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderProposal.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderProposal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,MAAM,UAAU,cAAc,CAAC,cAAsB,EAAE,IAAY;IACjE,OAAO,CACL,eAAK,SAAS,EAAC,4DAA4D,aACzE,cAAK,SAAS,EAAC,qBAAqB,4GAAuB,EAC3D,cAAK,SAAS,EAAC,oBAAoB,wHAAyB,EAC5D,eAAK,SAAS,EAAC,cAAc,aAAE,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,eAAS,EAC3F,cAAK,SAAS,EAAC,oBAAoB,qDAAa,EAChD,eAAK,SAAS,EAAC,SAAS,aAAE,IAAI,UAAS,IACnC,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renderTermsButton(): any;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { Button } from '../../ui-kit/Button/Button.js';
|
|
3
|
-
export function renderTermsButton() {
|
|
4
|
-
return (_jsxs("div", { className: "flex items-center", children: [_jsx(Button, { className: "mr-3", text: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443", version: "primary", href: "#" }), _jsx("div", { className: "w-80 text-2xs leading-4 text-secondary-text", "aria-label": "\u0421\u043E\u0433\u043B\u0430\u0448\u0435\u043D\u0438\u0435 \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445", children: "\u041E\u0442\u043F\u0440\u0430\u0432\u043B\u044F\u044F \u0437\u0430\u044F\u0432\u043A\u0443, \u0432\u044B \u0441\u043E\u0433\u043B\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044C \u043D\u0430 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0443 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043D\u043D\u043E \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0424\u0417 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB" })] }));
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=renderTermsButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderTermsButton.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderTermsButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,MAAM,UAAU,iBAAiB;IAC/B,OAAO,CACL,eAAK,SAAS,EAAC,mBAAmB,aAChC,KAAC,MAAM,IAAC,SAAS,EAAC,MAAM,EAAC,IAAI,EAAC,6FAAkB,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,GAAG,GAAG,EAC9E,cACE,SAAS,EAAC,6CAA6C,gBAC5C,gPAA6C,2pBAIpD,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
2
|
-
import type { CalculatorParams } from './CreditCalculatorContent';
|
|
3
|
-
interface RenderWantedSumInputProps {
|
|
4
|
-
calculatorParams: CalculatorParams;
|
|
5
|
-
moneyValue: number | undefined;
|
|
6
|
-
defaultSum: number;
|
|
7
|
-
setMoneyValue: InputRangeProps['onChange'];
|
|
8
|
-
}
|
|
9
|
-
export declare function renderWantedSumInput(props: RenderWantedSumInputProps): any;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
|
|
3
|
-
import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers.js';
|
|
4
|
-
import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM } from './constants.js';
|
|
5
|
-
const STEP_MONEY = 1000;
|
|
6
|
-
export function renderWantedSumInput(props) {
|
|
7
|
-
const { calculatorParams, moneyValue, defaultSum, setMoneyValue } = props;
|
|
8
|
-
const minSum = calculatorParams?.minSum || DEFAULT_MIN_SUM;
|
|
9
|
-
const maxSum = calculatorParams?.maxSum || DEFAULT_MAX_SUM;
|
|
10
|
-
return (_jsx(InputRange, { title: "\u0416\u0435\u043B\u0430\u0435\u043C\u0430\u044F \u0441\u0443\u043C\u043C\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u20BD", items: [
|
|
11
|
-
`От ${addSpacesBetweenNumbers(minSum)} рублей`,
|
|
12
|
-
`До ${addSpacesBetweenNumbers(maxSum)} рублей`,
|
|
13
|
-
], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }));
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=renderWantedSumInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderWantedSumInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG/D,MAAM,UAAU,GAAG,IAAI,CAAC;AASxB,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE1E,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,eAAe,CAAC;IAC3D,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,eAAe,CAAC;IAE3D,OAAO,CACL,KAAC,UAAU,IACT,KAAK,EAAC,oIAA2B,EACjC,KAAK,EAAE;YACL,MAAM,uBAAuB,CAAC,MAAM,CAAC,SAAS;YAC9C,MAAM,uBAAuB,CAAC,MAAM,CAAC,SAAS;SAC/C,EACD,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,IAAI,UAAU,EAC/B,QAAQ,EAAE,aAAa,GACvB,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const headerSubMenuObserver: IntersectionObserver | undefined;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { isSSR } from '../../utils/isSSR.js';
|
|
2
|
-
const isClient = !isSSR();
|
|
3
|
-
export const headerSubMenuObserver = isClient
|
|
4
|
-
? new IntersectionObserver((entries) => {
|
|
5
|
-
const createArrays = (selectors) => selectors.map((_) => Array.from(window.document.querySelectorAll(_)));
|
|
6
|
-
const headerSubMenuButtonElement = window.document.querySelector('[data-header-submenu-visible=toggled]');
|
|
7
|
-
const [headerSubMenuItems, dotsHeaderSubMenuItems] = createArrays([
|
|
8
|
-
'[data-item-name=header-submenu]',
|
|
9
|
-
'[data-item-name=dots-header-submenu]',
|
|
10
|
-
]);
|
|
11
|
-
const visibilityList = {};
|
|
12
|
-
entries.forEach((_) => {
|
|
13
|
-
visibilityList[_.target.toString()] = _.isIntersecting;
|
|
14
|
-
});
|
|
15
|
-
const isHeaderSubMenuButtonShow = toggleVisibilityInItems(visibilityList, dotsHeaderSubMenuItems, 'hidden');
|
|
16
|
-
toggleVisibilityInItems(visibilityList, headerSubMenuItems, 'invisible');
|
|
17
|
-
if (headerSubMenuButtonElement) {
|
|
18
|
-
isHeaderSubMenuButtonShow
|
|
19
|
-
? headerSubMenuButtonElement.classList.remove('hidden')
|
|
20
|
-
: headerSubMenuButtonElement.classList.add('hidden');
|
|
21
|
-
}
|
|
22
|
-
}, { root: window.document, threshold: 1.0 })
|
|
23
|
-
: undefined;
|
|
24
|
-
// TODO: add types
|
|
25
|
-
const toggleVisibilityInItems = (visibilityList, items, className) => {
|
|
26
|
-
const isReversed = className !== 'hidden';
|
|
27
|
-
return items.some((_) => {
|
|
28
|
-
const key = _.toString();
|
|
29
|
-
const option = isReversed ? !visibilityList[key] : visibilityList[key];
|
|
30
|
-
key in visibilityList ? _.classList.toggle(className, option) : null;
|
|
31
|
-
return isReversed ? _.classList.contains('hidden') : !_.classList.contains('hidden');
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=HeaderSubMenuObserver.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderSubMenuObserver.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderSubMenuObserver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,CAAC;AAE1B,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ;IAC3C,CAAC,CAAC,IAAI,oBAAoB,CACtB,CAAC,OAAO,EAAE,EAAE;QACV,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,EAAE,CACjC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAExE,MAAM,0BAA0B,GAAG,MAAM,CAAC,QAAQ,CAAC,aAAa,CAC9D,uCAAuC,CACxC,CAAC;QACF,MAAM,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAG,YAAY,CAAC;YAChE,iCAAiC;YACjC,sCAAsC;SACvC,CAAC,CAAC;QAEH,MAAM,cAAc,GAAG,EAAE,CAAC;QAC1B,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACpB,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC;QACzD,CAAC,CAAC,CAAC;QACH,MAAM,yBAAyB,GAAG,uBAAuB,CACvD,cAAc,EACd,sBAAsB,EACtB,QAAQ,CACT,CAAC;QACF,uBAAuB,CAAC,cAAc,EAAE,kBAAkB,EAAE,WAAW,CAAC,CAAC;QACzE,IAAI,0BAA0B,EAAE;YAC9B,yBAAyB;gBACvB,CAAC,CAAC,0BAA0B,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;gBACvD,CAAC,CAAC,0BAA0B,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SACxD;IACH,CAAC,EACD,EAAE,IAAI,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,CAC1C;IACH,CAAC,CAAC,SAAS,CAAC;AAEd,kBAAkB;AAClB,MAAM,uBAAuB,GAAG,CAAC,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IACnE,MAAM,UAAU,GAAG,SAAS,KAAK,QAAQ,CAAC;IAC1C,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACtB,MAAM,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;QACzB,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;QACvE,GAAG,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACrE,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/lib/setup-fixture.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-fixture.js","sourceRoot":"","sources":["../src/setup-fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAEjB,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAE5C,MAAM,MAAM,GAAG,SAAS,CAAC,mBAAmB,CAAC,CAAC;AAE9C,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAS,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEnE,OAAO;QACL,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE;YACpB,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAC5C,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;QACD,OAAO,EAAE,CAAC,GAAW,EAAE,EAAE;YACvB,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;YAC/C,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAuB;IACzC,QAAQ;IACR,SAAS,EAAE,MAAM;IACjB,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAC7B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,EAAE,CAAC;QACnC,SAAS,CAAC,GAAG,EAAE;YACb,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;gBACtB,OAAO,CAAC,CAAC,CAAC,CAAC;YACb,CAAC,CAAC,CAAC;QACL,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;QACnB,OAAO,EAAE,IAAI,EAAE,CAAC;IAClB,CAAC;IACD,cAAc,EAAE,CAAC,eAAe,EAAE,EAAE;QAClC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAC9B,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,eAAe,CAC/D,CAAC;QAEF,MAAM,OAAO,GAAG,GAAG,EAAE;YACnB,MAAM,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;gBACpC,MAAM,QAAQ,GAAG,CAAC,IAAI,eAAe,CAAC;gBACtC,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;gBACtD,OAAO,CAAC,QAAQ,CAAC,CAAC;YACpB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzB,CAAC;IACD,cAAc,EAAE,GAAG,EAAE,CAAC,CAAC;QACrB,SAAS,EAAE,CAAC;QACZ,IAAI,EAAE,GAAG,EAAE;YACT,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,CAAC;QACD,OAAO,EAAE,GAAG,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACzB,CAAC;KACF,CAAC;IACF,gBAAgB,EACd,CAAC,OAAO,EAAE,aAAa,EAAO,EAAE,CAChC,CAAC,EAAE,EAAE,EAAE;QACL,EAAE,CAAC,cAAc,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;IAC5C,CAAC;IACH,SAAS,EAAE,GAAG,EAAE;QACd,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;QAErC,OAAO;YACL,IAAI;YACJ,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;SACzC,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,GAAG,OAAO;IACV,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;QAChB,IAAI,EAAE,GAAG,WAAW,iBAAiB;QACrC,QAAQ,EAAE,iBAAiB;QAC3B,KAAK,EAAE,EAAE;QACT,IAAI,EAAE,CAAC,GAAW,EAAE,EAAE;YACpB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;QACD,OAAO,EAAE,CAAC,GAAW,EAAE,EAAE;YACvB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC;CACH,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { UniBlockProps } from '../../types';
|
|
2
|
-
import type { CreditCalculatorContent } from './CreditCalculatorContent';
|
|
3
|
-
export interface CreditCalculatorProps extends CreditCalculatorContent, UniBlockProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const CreditCalculator: (props: import("@redneckz/uni-jsx").PropsWithChildren<CreditCalculatorProps, any>, context?: any) => any;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.CreditCalculator = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const Heading_1 = require("../../ui-kit/Heading/Heading");
|
|
6
|
-
const Tabs_1 = require("../../ui-kit/Tabs/Tabs");
|
|
7
|
-
const getTileHeadingType_1 = require("../BaseTile/getTileHeadingType");
|
|
8
|
-
const CreditCalculatorForm_1 = require("./CreditCalculatorForm");
|
|
9
|
-
const defaultTabs_1 = require("./defaultTabs");
|
|
10
|
-
exports.CreditCalculator = (0, uni_jsx_1.JSX)(({ className = '', context, tabs = defaultTabs_1.DEFAULT_TABS, anchor = null }) => {
|
|
11
|
-
const [currentTabIndex, setCurrentTabIndex] = context.useState(0);
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text py-10 bg-white ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "w-full text-center mb-8", headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: "\u041A\u0430\u043B\u044C\u043A\u0443\u043B\u044F\u0442\u043E\u0440" }), (0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { tabs: tabs, currentTabIndex: currentTabIndex, onTabClick: setCurrentTabIndex }), (0, jsx_runtime_1.jsx)(CreditCalculatorForm_1.CreditCalculatorForm, { context: context, directoryName: tabs[currentTabIndex]?.directoryName })] }));
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=CreditCalculator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculator.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/CreditCalculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,iDAA8C;AAC9C,uEAAoE;AAEpE,iEAA8D;AAC9D,+CAA6C;AAIhC,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,GAAG,0BAAY,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElE,OAAO,CACL,qCAAS,SAAS,EAAE,8CAA8C,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,aACvF,uBAAC,iBAAO,IACN,SAAS,EAAC,yBAAyB,EACnC,WAAW,EAAE,IAAA,uCAAkB,EAAC,SAAS,CAAC,EAC1C,KAAK,EAAC,oEAAa,GACnB,EACF,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,kBAAkB,GAAI,EACtF,uBAAC,2CAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,EAAE,aAAa,GACnD,IACM,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Tab } from '../../ui-kit/Tabs/TabsProps';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export interface CalculatorParams {
|
|
6
|
-
isAnnuity?: boolean;
|
|
7
|
-
minSum?: number;
|
|
8
|
-
maxSum?: number;
|
|
9
|
-
minMonths?: number;
|
|
10
|
-
maxMonths?: number;
|
|
11
|
-
rateWithInsurance?: number;
|
|
12
|
-
rateWithoutInsurance?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface CreditCalculatorData {
|
|
15
|
-
rows?: CalculatorParams[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @title Вкладка
|
|
19
|
-
*/
|
|
20
|
-
export interface CreditCalculatorTab extends Tab {
|
|
21
|
-
/** @title Справочник */
|
|
22
|
-
directoryName?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @title Кредитный калькулятор
|
|
26
|
-
*/
|
|
27
|
-
export interface CreditCalculatorContent {
|
|
28
|
-
/** @title Вкладки */
|
|
29
|
-
tabs?: CreditCalculatorTab[];
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculatorContent.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/CreditCalculatorContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UniBlockProps } from '../../types';
|
|
2
|
-
export interface CreditCalculatorFormProps extends UniBlockProps {
|
|
3
|
-
directoryName?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const CreditCalculatorForm: (props: import("@redneckz/uni-jsx").PropsWithChildren<CreditCalculatorFormProps, any>, context?: any) => any;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.CreditCalculatorForm = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const useCreditCalculatorData_1 = require("../../hooks/useCreditCalculatorData");
|
|
6
|
-
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
7
|
-
const clamp_1 = require("../../utils/clamp");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const getCalculatorParams_1 = require("./getCalculatorParams");
|
|
10
|
-
const getCreditRate_1 = require("./getCreditRate");
|
|
11
|
-
const getCreditTermYears_1 = require("./getCreditTermYears");
|
|
12
|
-
const getDefaultMonths_1 = require("./getDefaultMonths");
|
|
13
|
-
const getDefaultSum_1 = require("./getDefaultSum");
|
|
14
|
-
const getMonthlyPayment_1 = require("./getMonthlyPayment");
|
|
15
|
-
const renderButton_1 = require("./renderButton");
|
|
16
|
-
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
17
|
-
const renderProposal_1 = require("./renderProposal");
|
|
18
|
-
const renderTermsButton_1 = require("./renderTermsButton");
|
|
19
|
-
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
20
|
-
const DEFAULT_PAYMENT_TYPE = 'annuity';
|
|
21
|
-
const BORDER_STYLE = 'border-solid border-[3px] border-primary-main rounded-md';
|
|
22
|
-
exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ context, directoryName }) => {
|
|
23
|
-
const [moneyValue, setMoneyValue] = context.useState(undefined);
|
|
24
|
-
const [monthsValue, setMonthsValue] = context.useState(undefined);
|
|
25
|
-
const [isAnnuityChecked, setIsAnnuityChecked] = context.useState(true);
|
|
26
|
-
const [isInsuranceChecked, setIsInsuranceChecked] = context.useState(true);
|
|
27
|
-
const tableRows = (0, useCreditCalculatorData_1.useCreditCalculatorData)(context.useAsyncData, directoryName).rows;
|
|
28
|
-
const calculatorParams = (0, getCalculatorParams_1.getCalculatorParams)({ tableRows, isAnnuity: isAnnuityChecked });
|
|
29
|
-
const defaultSum = (0, getDefaultSum_1.getDefaultSum)(calculatorParams);
|
|
30
|
-
const defaultMonths = (0, getDefaultMonths_1.getDefaultMonths)(calculatorParams);
|
|
31
|
-
const minMonths = calculatorParams?.minMonths || constants_1.DEFAULT_MIN_MONTHS;
|
|
32
|
-
const maxMonths = calculatorParams?.maxMonths || constants_1.DEFAULT_MAX_MONTHS;
|
|
33
|
-
const rate = (0, getCreditRate_1.getCreditRate)({ calculatorParams, isInsurance: isInsuranceChecked });
|
|
34
|
-
const monthlyPayment = (0, getMonthlyPayment_1.getMonthlyPayment)({
|
|
35
|
-
calculatorParams,
|
|
36
|
-
paymentType: DEFAULT_PAYMENT_TYPE,
|
|
37
|
-
rate,
|
|
38
|
-
sum: moneyValue || defaultSum,
|
|
39
|
-
months: monthsValue || defaultMonths,
|
|
40
|
-
});
|
|
41
|
-
const creditTermYears = (0, getCreditTermYears_1.getCreditTermYears)(minMonths, maxMonths);
|
|
42
|
-
function handleButtonClick(value) {
|
|
43
|
-
setMonthsValue((0, clamp_1.clamp)(value * constants_1.MONTHS_IN_YEAR, minMonths, maxMonths));
|
|
44
|
-
}
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)("section", { className: "mt-7", children: (0, jsx_runtime_1.jsxs)("div", { className: `box-border p-[49px] pr-[56px] mx-auto w-max ${BORDER_STYLE}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-[42px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)({ calculatorParams, moneyValue, defaultSum, setMoneyValue }), (0, renderMonthsInput_1.renderMonthsInput)({
|
|
46
|
-
minMonths,
|
|
47
|
-
maxMonths,
|
|
48
|
-
monthsValue,
|
|
49
|
-
defaultMonths,
|
|
50
|
-
setMonthsValue,
|
|
51
|
-
}), (0, jsx_runtime_1.jsx)("div", { className: "flex mb-7", children: creditTermYears.map((number, i) => (0, renderButton_1.renderButton)(number, i, handleButtonClick)) }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", checked: isAnnuityChecked, onChange: setIsAnnuityChecked }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3 mb-7", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsuranceChecked, onChange: setIsInsuranceChecked })] }), (0, renderProposal_1.renderProposal)(monthlyPayment, rate)] }), (0, renderTermsButton_1.renderTermsButton)()] }) }));
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=CreditCalculatorForm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iFAA8E;AAE9E,6DAA0D;AAC1D,6CAA0C;AAC1C,2CAAqF;AACrF,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAC1D,yDAAsD;AACtD,mDAAgD;AAChD,2DAAwD;AACxD,iDAA8C;AAC9C,2DAAwD;AACxD,qDAAkD;AAClD,2DAAwD;AACxD,iEAA8D;AAE9D,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC,MAAM,YAAY,GAAG,0DAA0D,CAAC;AAMnE,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAA4B,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;IAChG,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAqB,SAAS,CAAC,CAAC;IACpF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAqB,SAAS,CAAC,CAAC;IACtF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvE,MAAM,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3E,MAAM,SAAS,GAAG,IAAA,iDAAuB,EAAC,OAAO,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC;IACpF,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAEzF,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,gBAAgB,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG,IAAA,mCAAgB,EAAC,gBAAgB,CAAC,CAAC;IAEzD,MAAM,SAAS,GAAG,gBAAgB,EAAE,SAAS,IAAI,8BAAkB,CAAC;IACpE,MAAM,SAAS,GAAG,gBAAgB,EAAE,SAAS,IAAI,8BAAkB,CAAC;IAEpE,MAAM,IAAI,GAAG,IAAA,6BAAa,EAAC,EAAE,gBAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAElF,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC;QACvC,gBAAgB;QAChB,WAAW,EAAE,oBAAoB;QACjC,IAAI;QACJ,GAAG,EAAE,UAAU,IAAI,UAAU;QAC7B,MAAM,EAAE,WAAW,IAAI,aAAa;KACrC,CAAC,CAAC;IAEH,MAAM,eAAe,GAAG,IAAA,uCAAkB,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAEjE,SAAS,iBAAiB,CAAC,KAAa;QACtC,cAAc,CAAC,IAAA,aAAK,EAAC,KAAK,GAAG,0BAAc,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IACtE,CAAC;IAED,OAAO,CACL,oCAAS,SAAS,EAAC,MAAM,YACvB,iCAAK,SAAS,EAAE,+CAA+C,YAAY,EAAE,aAC3E,iCAAK,SAAS,EAAC,sBAAsB,aACnC,iCAAK,SAAS,EAAC,WAAW,aACvB,IAAA,2CAAoB,EAAC,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,EACjF,IAAA,qCAAiB,EAAC;oCACjB,SAAS;oCACT,SAAS;oCACT,WAAW;oCACX,aAAa;oCACb,cAAc;iCACf,CAAC,EACF,gCAAK,SAAS,EAAC,WAAW,YACvB,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,2BAAY,EAAC,MAAM,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC,GAC3E,EACN,uBAAC,mBAAQ,IACP,IAAI,EAAC,wNAAyC,EAC9C,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,mBAAmB,GAC7B,EACF,uBAAC,mBAAQ,IACP,SAAS,EAAC,WAAW,EACrB,IAAI,EAAC,gKAA8B,EACnC,OAAO,EAAE,kBAAkB,EAC3B,QAAQ,EAAE,qBAAqB,GAC/B,IACE,EACL,IAAA,+BAAc,EAAC,cAAc,EAAE,IAAI,CAAC,IACjC,EACL,IAAA,qCAAiB,GAAE,IAChB,GACE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_MIN_SUM = 30000;
|
|
2
|
-
export declare const DEFAULT_MAX_SUM = 3000000;
|
|
3
|
-
export declare const DEFAULT_SUM: number;
|
|
4
|
-
export declare const DEFAULT_MIN_MONTHS = 1;
|
|
5
|
-
export declare const DEFAULT_MAX_MONTHS = 84;
|
|
6
|
-
export declare const DEFAULT_MONTHS: number;
|
|
7
|
-
export declare const MONTHS_IN_YEAR = 12;
|
|
@@ -1,10 +0,0 @@
|
|
|
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 = 30000;
|
|
4
|
-
exports.DEFAULT_MAX_SUM = 3000000;
|
|
5
|
-
exports.DEFAULT_SUM = (exports.DEFAULT_MAX_SUM - exports.DEFAULT_MIN_SUM) / 2;
|
|
6
|
-
exports.DEFAULT_MIN_MONTHS = 1;
|
|
7
|
-
exports.DEFAULT_MAX_MONTHS = 84;
|
|
8
|
-
exports.DEFAULT_MONTHS = Math.round((exports.DEFAULT_MAX_MONTHS - exports.DEFAULT_MIN_MONTHS) / 2);
|
|
9
|
-
exports.MONTHS_IN_YEAR = 12;
|
|
10
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/constants.ts"],"names":[],"mappings":";;AAAa,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,CAAC,CAAC;AACvB,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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.DEFAULT_TABS = void 0;
|
|
3
|
-
exports.DEFAULT_TABS = [
|
|
4
|
-
{
|
|
5
|
-
title: 'Кредит',
|
|
6
|
-
description: 'Ставка от 6% до 7 лет',
|
|
7
|
-
directoryName: 'credit-calculator-data',
|
|
8
|
-
icon: { icon: 'CardIcon' },
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
title: 'Кредит',
|
|
12
|
-
description: 'Ставка от 4% до 7 лет',
|
|
13
|
-
directoryName: 'credit-calculator-data1',
|
|
14
|
-
icon: { icon: 'ChartSquareIcon' },
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
title: 'Кредит',
|
|
18
|
-
description: 'Ставка от 3% до 6 лет',
|
|
19
|
-
directoryName: 'credit-calculator-data2',
|
|
20
|
-
icon: { icon: 'DiscountShapeIcon' },
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
//# sourceMappingURL=defaultTabs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultTabs.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/defaultTabs.ts"],"names":[],"mappings":";;AAEa,QAAA,YAAY,GAA0B;IACjD;QACE,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,wBAAwB;QACvC,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;KAC3B;IACD;QACE,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,yBAAyB;QACxC,IAAI,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;KAClC;IACD;QACE,KAAK,EAAE,QAAQ;QACf,WAAW,EAAE,uBAAuB;QACpC,aAAa,EAAE,yBAAyB;QACxC,IAAI,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;KACpC;CACF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CalculatorParams } from './CreditCalculatorContent';
|
|
2
|
-
interface GetCalculatorParamsParams {
|
|
3
|
-
tableRows?: CalculatorParams[];
|
|
4
|
-
isAnnuity?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const getCalculatorParams: (params: GetCalculatorParamsParams) => CalculatorParams;
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getCalculatorParams = void 0;
|
|
3
|
-
const getCalculatorParams = (params) => {
|
|
4
|
-
const { tableRows, isAnnuity = false } = params;
|
|
5
|
-
if (!tableRows)
|
|
6
|
-
return {};
|
|
7
|
-
const calculatorParams = tableRows.find((row) => row.isAnnuity === isAnnuity);
|
|
8
|
-
return calculatorParams || {};
|
|
9
|
-
};
|
|
10
|
-
exports.getCalculatorParams = getCalculatorParams;
|
|
11
|
-
//# sourceMappingURL=getCalculatorParams.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getCalculatorParams.ts"],"names":[],"mappings":";;AAOO,MAAM,mBAAmB,GAAG,CAAC,MAAiC,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;IAE9E,OAAO,gBAAgB,IAAI,EAAE,CAAC;AAChC,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getCreditRate = void 0;
|
|
3
|
-
const DEFAULT_RATE = 5;
|
|
4
|
-
const getCreditRate = (params) => {
|
|
5
|
-
const { calculatorParams, isInsurance } = params;
|
|
6
|
-
if (!calculatorParams)
|
|
7
|
-
return DEFAULT_RATE;
|
|
8
|
-
return isInsurance
|
|
9
|
-
? calculatorParams?.rateWithInsurance || DEFAULT_RATE
|
|
10
|
-
: calculatorParams?.rateWithoutInsurance || DEFAULT_RATE;
|
|
11
|
-
};
|
|
12
|
-
exports.getCreditRate = getCreditRate;
|
|
13
|
-
//# sourceMappingURL=getCreditRate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCreditRate.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getCreditRate.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAG,CAAC,CAAC;AAOhB,MAAM,aAAa,GAAG,CAAC,MAA2B,EAAE,EAAE;IAC3D,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,gBAAgB;QAAE,OAAO,YAAY,CAAC;IAE3C,OAAO,WAAW;QAChB,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,IAAI,YAAY;QACrD,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,IAAI,YAAY,CAAC;AAC7D,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCreditTermYears: (minMonths: number, maxMonths: number) => number[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getCreditTermYears = void 0;
|
|
3
|
-
const constants_1 = require("./constants");
|
|
4
|
-
const MAX_YEARS_LENGTH = 5;
|
|
5
|
-
const getCreditTermYears = (minMonths, maxMonths) => {
|
|
6
|
-
const totalYears = Math.ceil((maxMonths - minMonths) / 12);
|
|
7
|
-
const firstYear = Math.floor(minMonths / constants_1.MONTHS_IN_YEAR) + 1;
|
|
8
|
-
const result = new Array(Math.min(totalYears - 1, MAX_YEARS_LENGTH))
|
|
9
|
-
.fill(0)
|
|
10
|
-
.map((_, i) => firstYear + i);
|
|
11
|
-
const maxYear = totalYears + firstYear - 1;
|
|
12
|
-
return result.concat(maxYear);
|
|
13
|
-
};
|
|
14
|
-
exports.getCreditTermYears = getCreditTermYears;
|
|
15
|
-
//# sourceMappingURL=getCreditTermYears.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCreditTermYears.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getCreditTermYears.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAE7C,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAEpB,MAAM,kBAAkB,GAAG,CAAC,SAAiB,EAAE,SAAiB,EAAE,EAAE;IACzE,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,0BAAc,CAAC,GAAG,CAAC,CAAC;IAE7D,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,EAAE,gBAAgB,CAAC,CAAC;SACjE,IAAI,CAAC,CAAC,CAAC;SACP,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAEhC,MAAM,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC;AAVW,QAAA,kBAAkB,sBAU7B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getDefaultMonths = void 0;
|
|
3
|
-
const constants_1 = require("./constants");
|
|
4
|
-
const getDefaultMonths = (calculatorParams) => calculatorParams.maxMonths && calculatorParams.minMonths
|
|
5
|
-
? Math.round((calculatorParams.maxMonths - calculatorParams.minMonths) / 2)
|
|
6
|
-
: constants_1.DEFAULT_MONTHS;
|
|
7
|
-
exports.getDefaultMonths = getDefaultMonths;
|
|
8
|
-
//# sourceMappingURL=getDefaultMonths.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultMonths.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getDefaultMonths.ts"],"names":[],"mappings":";;AAAA,2CAA6C;AAGtC,MAAM,gBAAgB,GAAG,CAAC,gBAAkC,EAAE,EAAE,CACrE,gBAAgB,CAAC,SAAS,IAAI,gBAAgB,CAAC,SAAS;IACtD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3E,CAAC,CAAC,0BAAc,CAAC;AAHR,QAAA,gBAAgB,oBAGR"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getDefaultSum = void 0;
|
|
3
|
-
const constants_1 = require("./constants");
|
|
4
|
-
const getDefaultSum = (calculatorParams) => calculatorParams.maxSum && calculatorParams.minSum
|
|
5
|
-
? (calculatorParams.maxSum - calculatorParams.minSum) / 2
|
|
6
|
-
: constants_1.DEFAULT_SUM;
|
|
7
|
-
exports.getDefaultSum = getDefaultSum;
|
|
8
|
-
//# sourceMappingURL=getDefaultSum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultSum.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getDefaultSum.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAGnC,MAAM,aAAa,GAAG,CAAC,gBAAkC,EAAE,EAAE,CAClE,gBAAgB,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM;IAChD,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC;IACzD,CAAC,CAAC,uBAAW,CAAC;AAHL,QAAA,aAAa,iBAGR"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CalculatorParams } from './CreditCalculatorContent';
|
|
2
|
-
declare type PaymentType = 'annuity' | 'differentiated';
|
|
3
|
-
interface GetMonthlyPaymentParams {
|
|
4
|
-
calculatorParams?: CalculatorParams;
|
|
5
|
-
paymentType: PaymentType;
|
|
6
|
-
rate: number;
|
|
7
|
-
sum: number;
|
|
8
|
-
months: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const getMonthlyPayment: (params: GetMonthlyPaymentParams) => number;
|
|
11
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getMonthlyPayment = void 0;
|
|
3
|
-
const clamp_1 = require("../../utils/clamp");
|
|
4
|
-
const constants_1 = require("./constants");
|
|
5
|
-
const getMonthlyPayment = (params) => {
|
|
6
|
-
const { calculatorParams, paymentType, rate, sum, months } = params;
|
|
7
|
-
if (!calculatorParams)
|
|
8
|
-
return 0;
|
|
9
|
-
const finalSum = (0, clamp_1.clamp)(sum, calculatorParams.minSum || constants_1.DEFAULT_MIN_SUM, calculatorParams.maxSum || constants_1.DEFAULT_MAX_SUM);
|
|
10
|
-
if (paymentType === 'annuity') {
|
|
11
|
-
const annuityCoef = Number(rate) / (constants_1.MONTHS_IN_YEAR * 100);
|
|
12
|
-
return finalSum * (annuityCoef + annuityCoef / (Math.pow(1 + annuityCoef, months) - 1));
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
return finalSum / months + finalSum * (Number(rate) / 12);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
exports.getMonthlyPayment = getMonthlyPayment;
|
|
19
|
-
//# sourceMappingURL=getMonthlyPayment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMonthlyPayment.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/getMonthlyPayment.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAC1C,2CAA+E;AAaxE,MAAM,iBAAiB,GAAG,CAAC,MAA+B,EAAE,EAAE;IACnE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEpE,IAAI,CAAC,gBAAgB;QAAE,OAAO,CAAC,CAAC;IAEhC,MAAM,QAAQ,GAAG,IAAA,aAAK,EACpB,GAAG,EACH,gBAAgB,CAAC,MAAM,IAAI,2BAAe,EAC1C,gBAAgB,CAAC,MAAM,IAAI,2BAAe,CAC3C,CAAC;IAEF,IAAI,WAAW,KAAK,SAAS,EAAE;QAC7B,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,0BAAc,GAAG,GAAG,CAAC,CAAC;QAC1D,OAAO,QAAQ,GAAG,CAAC,WAAW,GAAG,WAAW,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACzF;SAAM;QACL,OAAO,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;KAC3D;AACH,CAAC,CAAC;AAjBW,QAAA,iBAAiB,qBAiB5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renderButton(number: number, i: number, handleClick: (number: number) => void): any;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderButton = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const tableFunc_1 = require("../../utils/tableFunc");
|
|
5
|
-
const func = (0, tableFunc_1.tableFunc)([
|
|
6
|
-
[(_) => _ === 1, 'год'],
|
|
7
|
-
[(_) => _ <= 4, 'года'],
|
|
8
|
-
[() => true, 'лет'],
|
|
9
|
-
]);
|
|
10
|
-
function renderButton(number, i, handleClick) {
|
|
11
|
-
const string = func(number);
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("button", { className: "bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none", onClick: () => handleClick(number), children: (0, jsx_runtime_1.jsxs)("span", { className: "font-semibold text-sm", children: [number, " ", string] }) }, String(i)));
|
|
13
|
-
}
|
|
14
|
-
exports.renderButton = renderButton;
|
|
15
|
-
//# sourceMappingURL=renderButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderButton.tsx"],"names":[],"mappings":";;;AAAA,qDAAkD;AAElD,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAiB;IACrC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACvB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;CACpB,CAAC,CAAC;AAEH,SAAgB,YAAY,CAAC,MAAc,EAAE,CAAS,EAAE,WAAqC;IAC3F,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,OAAO,CACL,mCAEE,SAAS,EAAC,0HAA0H,EACpI,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,YAElC,kCAAM,SAAS,EAAC,uBAAuB,aACpC,MAAM,OAAG,MAAM,IACX,IANF,MAAM,CAAC,CAAC,CAAC,CAOP,CACV,CAAC;AACJ,CAAC;AAdD,oCAcC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
|
|
2
|
-
interface RenderMonthsInputProps {
|
|
3
|
-
minMonths: number;
|
|
4
|
-
maxMonths: number;
|
|
5
|
-
monthsValue: number | undefined;
|
|
6
|
-
defaultMonths: number;
|
|
7
|
-
setMonthsValue: InputRangeProps['onChange'];
|
|
8
|
-
}
|
|
9
|
-
export declare function renderMonthsInput(props: RenderMonthsInputProps): any;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderMonthsInput = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const InputRange_1 = require("../../ui-kit/InputRange/InputRange");
|
|
5
|
-
const STEP_MONTHS = 1;
|
|
6
|
-
function renderMonthsInput(props) {
|
|
7
|
-
const { minMonths, maxMonths, monthsValue, defaultMonths, setMonthsValue } = props;
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(InputRange_1.InputRange, { className: "mt-[23px]", title: "\u0421\u0440\u043E\u043A \u043A\u0440\u0435\u0434\u0438\u0442\u0430, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ['Или выберите из предложенных вариантов ниже'], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: monthsValue || defaultMonths, onChange: setMonthsValue }));
|
|
9
|
-
}
|
|
10
|
-
exports.renderMonthsInput = renderMonthsInput;
|
|
11
|
-
//# sourceMappingURL=renderMonthsInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderMonthsInput.tsx"],"names":[],"mappings":";;;AAAA,mEAAgE;AAGhE,MAAM,WAAW,GAAG,CAAC,CAAC;AAUtB,SAAgB,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAEnF,OAAO,CACL,uBAAC,uBAAU,IACT,SAAS,EAAC,WAAW,EACrB,KAAK,EAAC,iHAAuB,EAC7B,KAAK,EAAE,CAAC,6CAA6C,CAAC,EACtD,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,IAAI,aAAa,EACnC,QAAQ,EAAE,cAAc,GACxB,CACH,CAAC;AACJ,CAAC;AAfD,8CAeC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renderProposal(monthlyPayment: number, rate: number): any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.renderProposal = void 0;
|
|
3
|
-
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
-
const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
|
|
5
|
-
function renderProposal(monthlyPayment, rate) {
|
|
6
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "box-border h-fit p-9 bg-primary-main rounded-md text-white", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-base mb-[18px]", children: "\u041D\u0430\u0448\u0435 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)("div", { className: "text-sm opacity-60", children: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436" }), (0, jsx_runtime_1.jsxs)("div", { className: "text-lg mb-3", children: [(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(Math.round(monthlyPayment)), " \u20BD"] }), (0, jsx_runtime_1.jsx)("div", { className: "text-sm opacity-60", children: "\u0421\u0442\u0430\u0432\u043A\u0430" }), (0, jsx_runtime_1.jsxs)("div", { className: "text-lg", children: [rate, " %"] })] }));
|
|
7
|
-
}
|
|
8
|
-
exports.renderProposal = renderProposal;
|
|
9
|
-
//# sourceMappingURL=renderProposal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"renderProposal.js","sourceRoot":"","sources":["../../../src/components/CreditCalculator/renderProposal.tsx"],"names":[],"mappings":";;;AAAA,iFAA8E;AAE9E,SAAgB,cAAc,CAAC,cAAsB,EAAE,IAAY;IACjE,OAAO,CACL,iCAAK,SAAS,EAAC,4DAA4D,aACzE,gCAAK,SAAS,EAAC,qBAAqB,4GAAuB,EAC3D,gCAAK,SAAS,EAAC,oBAAoB,wHAAyB,EAC5D,iCAAK,SAAS,EAAC,cAAc,aAAE,IAAA,iDAAuB,EAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,eAAS,EAC3F,gCAAK,SAAS,EAAC,oBAAoB,qDAAa,EAChD,iCAAK,SAAS,EAAC,SAAS,aAAE,IAAI,UAAS,IACnC,CACP,CAAC;AACJ,CAAC;AAVD,wCAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function renderTermsButton(): any;
|