@redneckz/wildless-cms-uni-blocks 0.14.324 → 0.14.326
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.325.js +51 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +340 -337
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +3 -110
- package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
- package/bundle/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
- package/bundle/components/Calculator/renderPaymentType.d.ts +1 -1
- package/bundle/components/Calculator/renderRegistrationType.d.ts +1 -1
- package/bundle/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
- package/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
- package/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
- package/bundle/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
- package/{lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts → bundle/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
- package/bundle/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
- package/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
- package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
- package/bundle/components/{Calculator → CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
- package/bundle/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
- package/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
- package/bundle/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
- package/bundle/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
- package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
- package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
- package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
- package/bundle/components/Carousel/renderDepositResult.d.ts +10 -0
- package/bundle/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
- package/bundle/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
- package/{dist/components → bundle/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
- package/bundle/{components/Calculator/renderInterestPayment.d.ts → ui-kit/Calculator/renderPayout.d.ts} +1 -1
- package/cosmos-static/icons/RustoreIcon.svg +1 -1
- package/cosmos-static/icons/sprites.svg +1 -1
- package/dist/components/Blocks.js +4 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +4 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +3 -110
- package/dist/components/Calculator/CreditCalculatorForm.js +6 -5
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
- package/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -4
- package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/dist/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
- package/dist/components/Calculator/getCreditCalculatorParams.js +16 -3
- package/dist/components/Calculator/getCreditCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/getCreditCalculatorRateParams.js +2 -2
- package/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
- package/dist/components/Calculator/renderPaymentType.d.ts +1 -1
- package/dist/components/Calculator/renderPaymentType.js +1 -1
- package/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/dist/components/Calculator/renderRegistrationType.d.ts +1 -1
- package/dist/components/Calculator/renderRegistrationType.js +1 -1
- package/dist/components/Calculator/renderRegistrationType.js.map +1 -1
- package/dist/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +60 -0
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
- package/dist/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
- package/dist/components/CalculatorBusinessDeposit/renderDaysInput.js +9 -0
- package/dist/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
- package/{mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts → dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
- package/dist/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +25 -10
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
- package/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js +68 -0
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
- package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
- package/dist/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
- package/dist/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
- package/{lib/components/Calculator → dist/components/CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
- package/{mobile/dist/components/Calculator → dist/components/CalculatorDeposit}/getDepositCalculatorParams.js +11 -3
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
- package/dist/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
- package/dist/components/CalculatorDeposit/renderPaymentType.js +13 -0
- package/dist/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
- package/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
- package/dist/components/CalculatorDeposit/renderRegistrationType.js +12 -0
- package/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
- package/dist/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +17 -20
- package/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
- package/dist/components/Carousel/renderDepositResult.d.ts +10 -0
- package/dist/components/Carousel/renderDepositResult.js +10 -0
- package/dist/components/Carousel/renderDepositResult.js.map +1 -0
- package/dist/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
- package/dist/ui-kit/Calculator/{CalcSourceProps.js → CalculatorProps.js} +1 -1
- package/dist/ui-kit/Calculator/CalculatorProps.js.map +1 -0
- package/dist/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
- package/dist/ui-kit/Calculator/calculatorConstants.js +4 -1
- package/dist/ui-kit/Calculator/calculatorConstants.js.map +1 -1
- package/{lib/components → dist/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
- package/dist/{components → ui-kit}/Calculator/getDefaultValues.js +3 -3
- package/dist/ui-kit/Calculator/getDefaultValues.js.map +1 -0
- package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
- package/{mobile/dist/components/Calculator/renderInterestPayment.d.ts → dist/ui-kit/Calculator/renderPayout.d.ts} +1 -1
- package/{mobile/dist/components/Calculator/renderInterestPayment.js → dist/ui-kit/Calculator/renderPayout.js} +4 -4
- package/dist/ui-kit/Calculator/renderPayout.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +4 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +4 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/Calculator.fixture.d.ts +0 -1
- package/lib/components/Calculator/Calculator.fixture.mobile.d.ts +0 -2
- package/lib/components/Calculator/CalculatorContent.d.ts +3 -110
- package/lib/components/Calculator/CreditCalculatorForm.js +4 -3
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
- package/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -4
- package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/lib/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
- package/lib/components/Calculator/getCreditCalculatorParams.js +14 -1
- package/lib/components/Calculator/getCreditCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/getCreditCalculatorRateParams.js +1 -1
- package/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
- package/lib/components/Calculator/renderDaysInput.d.ts +1 -0
- package/lib/components/Calculator/renderPaymentType.d.ts +1 -1
- package/lib/components/Calculator/renderPaymentType.js +1 -1
- package/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/lib/components/Calculator/renderRegistrationType.d.ts +2 -1
- package/lib/components/Calculator/renderRegistrationType.js +1 -1
- package/lib/components/Calculator/renderRegistrationType.js.map +1 -1
- package/lib/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.d.ts +6 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.mobile.d.ts +6 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +58 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
- package/lib/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +2 -0
- package/lib/components/CalculatorBusinessDeposit/renderDaysInput.js +6 -0
- package/lib/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
- package/{dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts → lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
- package/lib/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +18 -3
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.d.ts +6 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.mobile.d.ts +6 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js +66 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
- package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
- package/lib/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
- package/lib/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
- package/{mobile/bundle/components/Calculator → lib/components/CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
- package/{mobile/lib/components/Calculator → lib/components/CalculatorDeposit}/getDepositCalculatorParams.js +9 -1
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
- package/lib/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
- package/lib/components/CalculatorDeposit/renderPaymentType.js +10 -0
- package/lib/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
- package/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +2 -0
- package/lib/components/CalculatorDeposit/renderRegistrationType.js +9 -0
- package/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.fixture.mobile.d.ts +6 -0
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
- package/lib/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +8 -11
- package/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
- package/lib/components/Carousel/renderDepositResult.d.ts +9 -0
- package/lib/components/Carousel/renderDepositResult.js +7 -0
- package/lib/components/Carousel/renderDepositResult.js.map +1 -0
- package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +1 -0
- package/lib/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
- package/lib/ui-kit/Calculator/CalculatorProps.js +2 -0
- package/lib/ui-kit/Calculator/CalculatorProps.js.map +1 -0
- package/lib/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
- package/lib/ui-kit/Calculator/calculatorConstants.js +3 -0
- package/lib/ui-kit/Calculator/calculatorConstants.js.map +1 -1
- package/{mobile/bundle/components → lib/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
- package/lib/{components → ui-kit}/Calculator/getDefaultValues.js +1 -1
- package/lib/ui-kit/Calculator/getDefaultValues.js.map +1 -0
- package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
- package/lib/ui-kit/Calculator/renderPayout.d.ts +2 -0
- package/lib/{components/Calculator/renderInterestPayment.js → ui-kit/Calculator/renderPayout.js} +2 -2
- package/lib/ui-kit/Calculator/renderPayout.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +349 -346
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +3 -110
- package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
- package/mobile/bundle/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
- package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +1 -1
- package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +1 -1
- package/mobile/bundle/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
- package/mobile/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
- package/mobile/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
- package/mobile/bundle/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
- package/{bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts → mobile/bundle/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
- package/mobile/bundle/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
- package/mobile/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
- package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
- package/{dist/components/Calculator → mobile/bundle/components/CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
- package/mobile/bundle/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
- package/mobile/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
- package/mobile/bundle/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
- package/mobile/bundle/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
- package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
- package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
- package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
- package/mobile/bundle/components/Carousel/renderDepositResult.d.ts +10 -0
- package/mobile/bundle/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
- package/mobile/bundle/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
- package/{bundle/components → mobile/bundle/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
- package/{dist/components/Calculator/renderInterestPayment.d.ts → mobile/bundle/ui-kit/Calculator/renderPayout.d.ts} +1 -1
- package/mobile/dist/components/Blocks.js +4 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +3 -110
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +6 -5
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -4
- package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/dist/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorParams.js +16 -3
- package/mobile/dist/components/Calculator/getCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js +2 -2
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.js +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderRegistrationType.js +1 -1
- package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -1
- package/mobile/dist/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +60 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/renderDaysInput.js +9 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +26 -0
- package/mobile/dist/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +25 -10
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +68 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
- package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +26 -0
- package/{dist/components/Calculator → mobile/dist/components/CalculatorDeposit}/getDepositCalculatorParams.js +11 -3
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
- package/mobile/dist/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
- package/mobile/dist/components/CalculatorDeposit/renderPaymentType.js +13 -0
- package/mobile/dist/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
- package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
- package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js +12 -0
- package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
- package/mobile/dist/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +17 -20
- package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
- package/mobile/dist/components/Carousel/renderDepositResult.d.ts +10 -0
- package/mobile/dist/components/Carousel/renderDepositResult.js +10 -0
- package/mobile/dist/components/Carousel/renderDepositResult.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
- package/mobile/dist/ui-kit/Calculator/{CalcSourceProps.js → CalculatorProps.js} +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorProps.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
- package/mobile/dist/ui-kit/Calculator/calculatorConstants.js +4 -1
- package/mobile/dist/ui-kit/Calculator/calculatorConstants.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/getDefaultValues.d.ts +3 -0
- package/mobile/dist/{components → ui-kit}/Calculator/getDefaultValues.js +3 -3
- package/mobile/dist/ui-kit/Calculator/getDefaultValues.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
- package/mobile/{bundle/components/Calculator/renderInterestPayment.d.ts → dist/ui-kit/Calculator/renderPayout.d.ts} +1 -1
- package/{dist/components/Calculator/renderInterestPayment.js → mobile/dist/ui-kit/Calculator/renderPayout.js} +4 -4
- package/mobile/dist/ui-kit/Calculator/renderPayout.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +4 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +3 -110
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -3
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -4
- package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
- package/mobile/lib/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorParams.js +14 -1
- package/mobile/lib/components/Calculator/getCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js +1 -1
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.js +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderRegistrationType.js +1 -1
- package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -1
- package/mobile/lib/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +58 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/renderDaysInput.js +6 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +26 -0
- package/mobile/lib/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +18 -3
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +66 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
- package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +26 -0
- package/{lib/components/Calculator → mobile/lib/components/CalculatorDeposit}/getDepositCalculatorParams.js +9 -1
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
- package/mobile/lib/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
- package/mobile/lib/components/CalculatorDeposit/renderPaymentType.js +10 -0
- package/mobile/lib/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
- package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
- package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js +9 -0
- package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
- package/mobile/lib/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +8 -11
- package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
- package/mobile/lib/components/Carousel/renderDepositResult.d.ts +10 -0
- package/mobile/lib/components/Carousel/renderDepositResult.js +7 -0
- package/mobile/lib/components/Carousel/renderDepositResult.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorProps.js +2 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorProps.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
- package/mobile/lib/ui-kit/Calculator/calculatorConstants.js +3 -0
- package/mobile/lib/ui-kit/Calculator/calculatorConstants.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/getDefaultValues.d.ts +3 -0
- package/mobile/lib/{components → ui-kit}/Calculator/getDefaultValues.js +1 -1
- package/mobile/lib/ui-kit/Calculator/getDefaultValues.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/renderPayout.d.ts +3 -0
- package/mobile/lib/{components/Calculator/renderInterestPayment.js → ui-kit/Calculator/renderPayout.js} +2 -2
- package/mobile/lib/ui-kit/Calculator/renderPayout.js.map +1 -0
- package/mobile/src/components/Blocks.ts +4 -0
- package/mobile/src/components/Calculator/CalculatorContent.ts +7 -130
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +8 -3
- package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +1 -11
- package/mobile/src/components/Calculator/getCreditCalculatorParams.ts +19 -1
- package/mobile/src/components/Calculator/getCreditCalculatorRateParams.ts +1 -1
- package/mobile/src/components/Calculator/renderPaymentType.tsx +1 -1
- package/mobile/src/components/Calculator/renderRegistrationType.tsx +1 -1
- package/mobile/src/components/CalculatorBonus/CalculatorBonusContent.ts +2 -9
- package/{src/components/Calculator/BusinessDepositCalculatorForm.tsx → mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx} +51 -49
- package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.ui.json +22 -0
- package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +63 -0
- package/mobile/src/components/CalculatorBusinessDeposit/renderDaysInput.tsx +14 -0
- package/mobile/src/components/{Calculator/useBusinessDepositCalculatorParams.ts → CalculatorBusinessDeposit/useBusinessDepositParams.ts} +26 -17
- package/mobile/src/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.ts +5 -5
- package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +125 -0
- package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +36 -0
- package/mobile/src/components/{Calculator → CalculatorDeposit}/getDepositCalculatorParams.ts +12 -3
- package/mobile/src/components/CalculatorDeposit/renderPaymentType.tsx +14 -0
- package/mobile/src/components/CalculatorDeposit/renderRegistrationType.tsx +13 -0
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +4 -6
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancingContent.ts +6 -16
- package/mobile/src/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.ts +2 -2
- package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.ts +2 -2
- package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +2 -2
- package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.ts +10 -13
- package/mobile/src/components/Carousel/renderDepositResult.tsx +26 -0
- package/mobile/src/icons/RustoreIcon.svg +2 -3
- package/mobile/src/ui-kit/Calculator/CalculatorProps.ts +25 -0
- package/mobile/src/ui-kit/Calculator/calculatorConstants.tsx +3 -1
- package/mobile/src/{components → ui-kit}/Calculator/getDefaultValues.ts +2 -2
- package/mobile/src/{components/Calculator/renderInterestPayment.tsx → ui-kit/Calculator/renderPayout.tsx} +1 -1
- package/package.json +1 -1
- package/src/components/Blocks.mobile.ts +4 -0
- package/src/components/Blocks.ts +4 -0
- package/src/components/Calculator/Calculator.fixture.mobile.tsx +0 -34
- package/src/components/Calculator/Calculator.fixture.tsx +1 -68
- package/src/components/Calculator/CalculatorContent.ts +7 -130
- package/src/components/Calculator/CreditCalculatorForm.tsx +8 -3
- package/src/components/Calculator/EmbeddableCalcBlocks.tsx +1 -11
- package/src/components/Calculator/getCreditCalculatorParams.ts +19 -1
- package/src/components/Calculator/getCreditCalculatorRateParams.ts +1 -1
- package/src/components/Calculator/renderPaymentType.tsx +1 -1
- package/src/components/Calculator/renderRegistrationType.tsx +1 -1
- package/src/components/CalculatorBonus/CalculatorBonusContent.ts +2 -9
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.mobile.tsx +39 -0
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.tsx +39 -0
- package/{mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx → src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx} +51 -49
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.ui.json +22 -0
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +63 -0
- package/src/components/CalculatorBusinessDeposit/renderDaysInput.tsx +14 -0
- package/src/components/{Calculator/useBusinessDepositCalculatorParams.ts → CalculatorBusinessDeposit/useBusinessDepositParams.ts} +26 -17
- package/src/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.ts +5 -5
- package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.mobile.tsx +41 -0
- package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.tsx +41 -0
- package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +125 -0
- package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +36 -0
- package/src/components/{Calculator → CalculatorDeposit}/getDepositCalculatorParams.ts +12 -3
- package/src/components/CalculatorDeposit/renderPaymentType.tsx +14 -0
- package/src/components/CalculatorDeposit/renderRegistrationType.tsx +13 -0
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.fixture.mobile.tsx +35 -0
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.fixture.tsx +1 -1
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +4 -6
- package/src/components/CalculatorRefinancing/CalculatorRefinancingContent.ts +6 -16
- package/src/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.ts +2 -2
- package/src/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.ts +2 -2
- package/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +2 -2
- package/src/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.ts +10 -13
- package/src/components/Carousel/renderDepositResult.tsx +26 -0
- package/src/components/TabsLayout/TabsLayout.fixture.tsx +32 -0
- package/src/icons/RustoreIcon.svg +2 -3
- package/src/ui-kit/Calculator/CalculatorProps.ts +25 -0
- package/src/ui-kit/Calculator/calculatorConstants.tsx +3 -1
- package/src/{components → ui-kit}/Calculator/getDefaultValues.ts +2 -2
- package/src/{components/Calculator/renderInterestPayment.tsx → ui-kit/Calculator/renderPayout.tsx} +1 -1
- package/bundle/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
- package/bundle/components/Calculator/DepositCalculatorForm.d.ts +0 -8
- package/bundle/components/Calculator/constants.d.ts +0 -24
- package/bundle/components/Calculator/useBusinessDepositRates.d.ts +0 -4
- package/bundle/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
- package/dist/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +0 -55
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
- package/dist/components/Calculator/DepositCalculatorForm.d.ts +0 -8
- package/dist/components/Calculator/DepositCalculatorForm.js +0 -69
- package/dist/components/Calculator/DepositCalculatorForm.js.map +0 -1
- package/dist/components/Calculator/constants.d.ts +0 -24
- package/dist/components/Calculator/constants.js +0 -52
- package/dist/components/Calculator/constants.js.map +0 -1
- package/dist/components/Calculator/getDefaultValues.js.map +0 -1
- package/dist/components/Calculator/getDepositCalculatorParams.js.map +0 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
- package/dist/components/Calculator/renderInterestPayment.js.map +0 -1
- package/dist/components/Calculator/renderMonthsInput.js.map +0 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
- package/dist/components/Calculator/useBusinessDepositRates.d.ts +0 -4
- package/dist/components/Calculator/useBusinessDepositRates.js.map +0 -1
- package/dist/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
- package/dist/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +0 -53
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
- package/lib/components/Calculator/DepositCalculatorForm.d.ts +0 -8
- package/lib/components/Calculator/DepositCalculatorForm.js +0 -67
- package/lib/components/Calculator/DepositCalculatorForm.js.map +0 -1
- package/lib/components/Calculator/constants.d.ts +0 -24
- package/lib/components/Calculator/constants.js +0 -50
- package/lib/components/Calculator/constants.js.map +0 -1
- package/lib/components/Calculator/getDefaultValues.js.map +0 -1
- package/lib/components/Calculator/getDepositCalculatorParams.js.map +0 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
- package/lib/components/Calculator/renderInterestPayment.d.ts +0 -2
- package/lib/components/Calculator/renderInterestPayment.js.map +0 -1
- package/lib/components/Calculator/renderMonthsInput.js.map +0 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
- package/lib/components/Calculator/useBusinessDepositRates.d.ts +0 -4
- package/lib/components/Calculator/useBusinessDepositRates.js.map +0 -1
- package/lib/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
- package/lib/ui-kit/Calculator/CalcSourceProps.js +0 -2
- package/lib/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
- package/mobile/bundle/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
- package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +0 -8
- package/mobile/bundle/components/Calculator/constants.d.ts +0 -24
- package/mobile/bundle/components/Calculator/useBusinessDepositRates.d.ts +0 -4
- package/mobile/bundle/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +0 -55
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +0 -8
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +0 -69
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +0 -1
- package/mobile/dist/components/Calculator/constants.d.ts +0 -24
- package/mobile/dist/components/Calculator/constants.js +0 -52
- package/mobile/dist/components/Calculator/constants.js.map +0 -1
- package/mobile/dist/components/Calculator/getDefaultValues.d.ts +0 -3
- package/mobile/dist/components/Calculator/getDefaultValues.js.map +0 -1
- package/mobile/dist/components/Calculator/getDepositCalculatorParams.d.ts +0 -26
- package/mobile/dist/components/Calculator/getDepositCalculatorParams.js.map +0 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
- package/mobile/dist/components/Calculator/renderInterestPayment.js.map +0 -1
- package/mobile/dist/components/Calculator/renderMonthsInput.js.map +0 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -25
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
- package/mobile/dist/components/Calculator/useBusinessDepositRates.d.ts +0 -4
- package/mobile/dist/components/Calculator/useBusinessDepositRates.js.map +0 -1
- package/mobile/dist/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
- package/mobile/dist/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +0 -53
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +0 -8
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +0 -67
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +0 -1
- package/mobile/lib/components/Calculator/constants.d.ts +0 -24
- package/mobile/lib/components/Calculator/constants.js +0 -50
- package/mobile/lib/components/Calculator/constants.js.map +0 -1
- package/mobile/lib/components/Calculator/getDefaultValues.d.ts +0 -3
- package/mobile/lib/components/Calculator/getDefaultValues.js.map +0 -1
- package/mobile/lib/components/Calculator/getDepositCalculatorParams.d.ts +0 -26
- package/mobile/lib/components/Calculator/getDepositCalculatorParams.js.map +0 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
- package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +0 -3
- package/mobile/lib/components/Calculator/renderInterestPayment.js.map +0 -1
- package/mobile/lib/components/Calculator/renderMonthsInput.js.map +0 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -25
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
- package/mobile/lib/components/Calculator/useBusinessDepositRates.d.ts +0 -4
- package/mobile/lib/components/Calculator/useBusinessDepositRates.js.map +0 -1
- package/mobile/lib/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
- package/mobile/lib/ui-kit/Calculator/CalcSourceProps.js +0 -2
- package/mobile/lib/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +0 -119
- package/mobile/src/components/Calculator/constants.ts +0 -58
- package/mobile/src/ui-kit/Calculator/CalcSourceProps.ts +0 -6
- package/src/components/Calculator/DepositCalculatorForm.tsx +0 -119
- package/src/components/Calculator/constants.ts +0 -58
- package/src/ui-kit/Calculator/CalcSourceProps.ts +0 -6
- /package/bundle/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
- /package/bundle/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
- /package/dist/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
- /package/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
- /package/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
- /package/dist/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
- /package/dist/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
- /package/lib/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
- /package/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
- /package/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
- /package/lib/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
- /package/lib/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
- /package/mobile/bundle/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
- /package/mobile/bundle/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
- /package/mobile/dist/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
- /package/mobile/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
- /package/mobile/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
- /package/mobile/dist/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
- /package/mobile/dist/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
- /package/mobile/lib/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
- /package/mobile/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
- /package/mobile/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
- /package/mobile/lib/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
- /package/mobile/lib/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
- /package/mobile/src/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.tsx +0 -0
- /package/mobile/src/{components → ui-kit}/Calculator/renderMonthsInput.tsx +0 -0
- /package/src/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.tsx +0 -0
- /package/src/{components → ui-kit}/Calculator/renderMonthsInput.tsx +0 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -2513,13 +2513,30 @@
|
|
|
2513
2513
|
return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
|
|
2514
2514
|
}
|
|
2515
2515
|
|
|
2516
|
+
const MONTHS_IN_YEAR$1 = 12;
|
|
2517
|
+
const MONTHLY_INTEREST_RATE = MONTHS_IN_YEAR$1 * 100;
|
|
2518
|
+
const DEFAULT_MIN_MONTHS = 1;
|
|
2519
|
+
const DEFAULT_MAX_MONTHS = 60;
|
|
2520
|
+
const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS - DEFAULT_MIN_MONTHS) / 2);
|
|
2521
|
+
|
|
2516
2522
|
const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
|
|
2517
2523
|
const CalculatorValueBlock = JSX(({ className, title, value, fractionDigits, fixed, prefix, postfix }) => (jsxs("div", { className: style(calculatorValueBlockStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsx(Text, { size: "text-h3", children: [prefix, toLocalNumberFormat(fractionDigits, { fixed })(value), postfix]
|
|
2518
2524
|
.filter(Boolean)
|
|
2519
2525
|
.join(' ') }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
|
|
2520
2526
|
|
|
2527
|
+
const getMoneyDefaultValue = (defaultParams, defaultMoney = 0) => defaultParams?.sum ? defaultParams.sum : defaultMoney;
|
|
2528
|
+
const getMonthsDefaultValue = (defaultParams, defaultMonth = 0) => defaultParams?.period &&
|
|
2529
|
+
defaultParams.period >= DEFAULT_MIN_MONTHS &&
|
|
2530
|
+
defaultParams.period <= DEFAULT_MAX_MONTHS
|
|
2531
|
+
? defaultParams.period
|
|
2532
|
+
: defaultMonth;
|
|
2533
|
+
|
|
2521
2534
|
const renderFootnote = (text) => text ? (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: text })) : null;
|
|
2522
2535
|
|
|
2536
|
+
const STEP_MONTHS = 1;
|
|
2537
|
+
const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => (jsx(InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
|
|
2538
|
+
const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
|
|
2539
|
+
|
|
2523
2540
|
const UnknownRate = JSX(({ title = 'Ставка', isUnavailableByTerm = false }) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx(Icon, { className: "w-10 h-10 @5xl:h-auto @5xl:w-40", name: "PercentIcon" }), jsx("div", { className: "w-64", children: isUnavailableByTerm ? (jsxs(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] })) : (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0443\u044E \u0441\u0443\u043C\u043C\u0443 \u0438\u043B\u0438 \u0441\u0440\u043E\u043A" })) })] })));
|
|
2524
2541
|
|
|
2525
2542
|
const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex justify-start gradient-color-text", children: [jsx("span", { className: "font-mohave text-title-huge -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
|
|
@@ -2537,194 +2554,6 @@
|
|
|
2537
2554
|
|
|
2538
2555
|
const CalculatorFormLayout = JSX(({ className, inputChildren, rateChildren, resultChildren }) => (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsx("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: inputChildren }), jsx("div", { className: "border-b border-main-divider md:hidden" }), rateChildren, jsx("div", { className: "flex flex-col gap-2xl sm:w-96 max-w-full", children: resultChildren })] })));
|
|
2539
2556
|
|
|
2540
|
-
const DEFAULT_MIN_SUM$2 = 10000;
|
|
2541
|
-
const DEFAULT_MAX_SUM$1 = 5000000;
|
|
2542
|
-
const CREDIT_DEFAULT_SUM = 200000;
|
|
2543
|
-
const DEPOSIT_DEFAULT_SUM = 20000;
|
|
2544
|
-
const DEFAULT_MIN_MONTHS = 1;
|
|
2545
|
-
const DEFAULT_MAX_MONTHS$1 = 60;
|
|
2546
|
-
const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS$1 - DEFAULT_MIN_MONTHS) / 2);
|
|
2547
|
-
const BUSINESS_DEFAULT_SUM = 100000;
|
|
2548
|
-
const BUSINESS_MIN_DAYS = 1;
|
|
2549
|
-
const BUSINESS_MAX_DAYS = 1095;
|
|
2550
|
-
const BUSINESS_RATE_MIN_DAYS = 30; // порог количества дней, при которых ставка не доступна
|
|
2551
|
-
const BUSINESS_OPERATING_MIN_DAYS = 90;
|
|
2552
|
-
const BUSINESS_OPERATING_MAX_DAYS = 730;
|
|
2553
|
-
const BUSINESS_DEFAULT_DAYS = 60;
|
|
2554
|
-
const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
2555
|
-
minSum: DEFAULT_MIN_SUM$2,
|
|
2556
|
-
maxSum: DEFAULT_MAX_SUM$1,
|
|
2557
|
-
minMonths: DEFAULT_MIN_MONTHS,
|
|
2558
|
-
maxMonths: DEFAULT_MAX_MONTHS$1,
|
|
2559
|
-
rate: 0,
|
|
2560
|
-
isSalaryClient: false,
|
|
2561
|
-
isPensionClient: false,
|
|
2562
|
-
isStateEmployee: false,
|
|
2563
|
-
isInsurance: true,
|
|
2564
|
-
};
|
|
2565
|
-
const DEFAULT_DEPOSIT_CALCULATOR_PARAMS = {
|
|
2566
|
-
minSum: 50000,
|
|
2567
|
-
maxSum: 100000001,
|
|
2568
|
-
minMonths: 2,
|
|
2569
|
-
maxMonths: 10,
|
|
2570
|
-
rate: 0,
|
|
2571
|
-
isMonthlyInterestPayment: true,
|
|
2572
|
-
isRemoteRegistration: true,
|
|
2573
|
-
};
|
|
2574
|
-
const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = {
|
|
2575
|
-
minSum: 1000,
|
|
2576
|
-
maxSum: 100000001,
|
|
2577
|
-
minDays: BUSINESS_MIN_DAYS,
|
|
2578
|
-
maxDays: BUSINESS_MAX_DAYS,
|
|
2579
|
-
rate: 0,
|
|
2580
|
-
isMonthlyInterestPayment: true,
|
|
2581
|
-
isReplenished: false,
|
|
2582
|
-
isPartialWithdrawal: false,
|
|
2583
|
-
depositeName: "Депозит 'Стабильный'",
|
|
2584
|
-
};
|
|
2585
|
-
|
|
2586
|
-
const getMoneyDefaultValue = (defaultParams, defaultMoney = 0) => defaultParams?.sum ? defaultParams.sum : defaultMoney;
|
|
2587
|
-
const getMonthsDefaultValue = (defaultParams, defaultMonth = 0) => defaultParams?.period &&
|
|
2588
|
-
defaultParams.period >= DEFAULT_MIN_MONTHS &&
|
|
2589
|
-
defaultParams.period <= DEFAULT_MAX_MONTHS$1
|
|
2590
|
-
? defaultParams.period
|
|
2591
|
-
: defaultMonth;
|
|
2592
|
-
|
|
2593
|
-
const STEP_DAYS = 1;
|
|
2594
|
-
const renderDaysInput = (props) => (jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
|
|
2595
|
-
const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
|
|
2596
|
-
|
|
2597
|
-
const orientationStyleMap = {
|
|
2598
|
-
horizontal: 'gap-5xl',
|
|
2599
|
-
vertical: 'flex-col gap-s',
|
|
2600
|
-
};
|
|
2601
|
-
const RadioButtonGroup = JSX(({ items, checkedItem, className, onChange: onChangeCheckedItem, orientation = 'horizontal', }) => (jsx("div", { className: style(`flex ${orientationStyleMap[orientation]}`, className), role: "radiogroup", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
|
|
2602
|
-
|
|
2603
|
-
const renderBinaryRadioButtonGroup = ({ items, title, mobileTitle = title, orientation = 'horizontal', value, radioGroupClassName, onChange, }) => (jsxs("div", { className: "space-y-s", children: [title ? (jsx("div", { className: "hidden @5xl:block", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, mobileTitle ? (jsx("div", { className: "@5xl:hidden", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: mobileTitle }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, className: style('flex-col sm:flex-row', radioGroupClassName), onChange: (_) => onChange && onChange(_ === items[0].id) })] }));
|
|
2604
|
-
|
|
2605
|
-
const renderInterestPayment = (props) => renderBinaryRadioButtonGroup({
|
|
2606
|
-
...props,
|
|
2607
|
-
items: [
|
|
2608
|
-
{ id: 'everyMonth', text: 'Ежемесячно' },
|
|
2609
|
-
{ id: 'atEndTerm', text: 'В конце срока' },
|
|
2610
|
-
],
|
|
2611
|
-
});
|
|
2612
|
-
|
|
2613
|
-
const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
|
|
2614
|
-
? {
|
|
2615
|
-
[minKey]: limitParams[minKey],
|
|
2616
|
-
[maxKey]: limitParams[maxKey],
|
|
2617
|
-
}
|
|
2618
|
-
: getRangeByKeys([minKey, maxKey], rateRows);
|
|
2619
|
-
const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
2620
|
-
[minKey]: rows.length
|
|
2621
|
-
? min(rows.filter((row) => typeof row[minKey] === 'number').map((row) => row[minKey]))
|
|
2622
|
-
: 0,
|
|
2623
|
-
[maxKey]: rows.length
|
|
2624
|
-
? max(rows.filter((row) => typeof row[minKey] === 'number').map((row) => row[maxKey]))
|
|
2625
|
-
: 0,
|
|
2626
|
-
});
|
|
2627
|
-
const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
2628
|
-
|
|
2629
|
-
const DEPOSIT_RATES_SERVICE_MAP = {
|
|
2630
|
-
UL: 'businessdepositrates',
|
|
2631
|
-
IP: 'selfemployeddepositrates',
|
|
2632
|
-
};
|
|
2633
|
-
function useBusinessDepositRates(rateParams) {
|
|
2634
|
-
const serviceName = rateParams?.rateType ? DEPOSIT_RATES_SERVICE_MAP[rateParams?.rateType] : '';
|
|
2635
|
-
const { data } = useAsyncData(serviceName ? `/api/v1/depositrates/${serviceName}` : null, fetchJSONUnsafe);
|
|
2636
|
-
return Array.isArray(data) ? data : [];
|
|
2637
|
-
}
|
|
2638
|
-
|
|
2639
|
-
const useBusinessDepositCalculatorParams = (userInputParams, rateParams) => {
|
|
2640
|
-
const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
|
|
2641
|
-
const isOperatingDeposit = isReplenished || isPartialWithdrawal;
|
|
2642
|
-
const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
|
|
2643
|
-
const rateRows = useBusinessDepositRates(rateParams);
|
|
2644
|
-
if (daysValue <= BUSINESS_RATE_MIN_DAYS) {
|
|
2645
|
-
return {
|
|
2646
|
-
...DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS,
|
|
2647
|
-
...userInputParams,
|
|
2648
|
-
isDisabledOperatingDeposit,
|
|
2649
|
-
isUnavailableByTerm: true,
|
|
2650
|
-
};
|
|
2651
|
-
}
|
|
2652
|
-
const businessDepositCalculatorSourceBookParams = rateRows?.find((_) => {
|
|
2653
|
-
return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
2654
|
-
checkIsOperatingDeposit(isOperatingDeposit, _) &&
|
|
2655
|
-
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
|
|
2656
|
-
checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _));
|
|
2657
|
-
}) || DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS;
|
|
2658
|
-
const { rate } = businessDepositCalculatorSourceBookParams;
|
|
2659
|
-
const income = getDepositIncome$1(rate, userInputParams);
|
|
2660
|
-
const finalSum = moneyValue + income;
|
|
2661
|
-
const sourceBookRows = rateRows || [DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS];
|
|
2662
|
-
return {
|
|
2663
|
-
...businessDepositCalculatorSourceBookParams,
|
|
2664
|
-
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
2665
|
-
...getRangeByKeys(['minDays', 'maxDays'], sourceBookRows),
|
|
2666
|
-
...userInputParams,
|
|
2667
|
-
isDisabledOperatingDeposit,
|
|
2668
|
-
income,
|
|
2669
|
-
finalSum,
|
|
2670
|
-
};
|
|
2671
|
-
};
|
|
2672
|
-
const checkIsOperatingDeposit = (isOperatingDeposit, sourceBookRow) => isOperatingDeposit
|
|
2673
|
-
? sourceBookRow.isReplenished && sourceBookRow.isPartialWithdrawal
|
|
2674
|
-
: !sourceBookRow.isReplenished && !sourceBookRow.isPartialWithdrawal;
|
|
2675
|
-
const getDepositIncome$1 = (rate, userInputParams) => {
|
|
2676
|
-
const { isMonthlyInterestPayment, moneyValue, daysValue } = userInputParams;
|
|
2677
|
-
/*
|
|
2678
|
-
Приблизительный расчёт, не учитывающий разницу в количестве дней в месяцах. Месяц принят за 30 дней, год за 365 дней.
|
|
2679
|
-
*/
|
|
2680
|
-
if (isMonthlyInterestPayment) {
|
|
2681
|
-
return Math.round(moneyValue * Math.pow((1200 + rate) / 1200, daysValue / 30) - moneyValue);
|
|
2682
|
-
}
|
|
2683
|
-
else {
|
|
2684
|
-
return Math.round((moneyValue * rate * daysValue) / 365 / 100);
|
|
2685
|
-
}
|
|
2686
|
-
};
|
|
2687
|
-
|
|
2688
|
-
const BusinessDepositCalculatorForm = JSX(({ className = '', buttons, footnote, bottomFootnote, isShowDepositeName, defaultParams, rateParams, }) => {
|
|
2689
|
-
const [userInputParams, { field }] = useForm({
|
|
2690
|
-
moneyValue: getMoneyDefaultValue(defaultParams, BUSINESS_DEFAULT_SUM),
|
|
2691
|
-
daysValue: getMonthsDefaultValue(defaultParams, BUSINESS_DEFAULT_DAYS),
|
|
2692
|
-
isReplenished: Boolean(defaultParams?.isReplenished),
|
|
2693
|
-
isPartialWithdrawal: Boolean(defaultParams?.isPartialWithdrawal),
|
|
2694
|
-
isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
|
|
2695
|
-
});
|
|
2696
|
-
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams);
|
|
2697
|
-
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
2698
|
-
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2699
|
-
title: 'Сумма, ₽',
|
|
2700
|
-
min: calculatorParams.minSum,
|
|
2701
|
-
max: calculatorParams.maxSum,
|
|
2702
|
-
...field('moneyValue'),
|
|
2703
|
-
value: calculatorParams.moneyValue,
|
|
2704
|
-
}), renderDaysInput({
|
|
2705
|
-
title: 'Срок, дней',
|
|
2706
|
-
min: calculatorParams.minDays,
|
|
2707
|
-
max: calculatorParams.maxDays,
|
|
2708
|
-
...field('daysValue'),
|
|
2709
|
-
value: calculatorParams.daysValue,
|
|
2710
|
-
}), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
|
|
2711
|
-
title: 'Выплата процентов',
|
|
2712
|
-
orientation: 'vertical',
|
|
2713
|
-
...field('isMonthlyInterestPayment'),
|
|
2714
|
-
radioGroupClassName: 'sm:flex-col',
|
|
2715
|
-
})] })] }), rateChildren: renderRate({
|
|
2716
|
-
rate,
|
|
2717
|
-
depositeName,
|
|
2718
|
-
isShowDepositeName,
|
|
2719
|
-
isUnavailableByTerm,
|
|
2720
|
-
}), resultChildren: jsxs("div", { children: [renderDepositResults(finalSum, income), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote), renderFootnote(bottomFootnote)] }) }));
|
|
2721
|
-
});
|
|
2722
|
-
const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
|
|
2723
|
-
const renderDepositResults = (finalSum, income) => (jsxs("div", { className: "flex flex-col gap-2xl sm:gap-0 mb-lg", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" })] }));
|
|
2724
|
-
|
|
2725
|
-
const MONTHS_IN_YEAR$1 = 12;
|
|
2726
|
-
const MONTHLY_INTEREST_RATE = MONTHS_IN_YEAR$1 * 100;
|
|
2727
|
-
|
|
2728
2557
|
/**
|
|
2729
2558
|
* Формулы расчёта аннуитетных и дифференцированных платежей:
|
|
2730
2559
|
* https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
|
|
@@ -2748,6 +2577,22 @@
|
|
|
2748
2577
|
}
|
|
2749
2578
|
};
|
|
2750
2579
|
|
|
2580
|
+
const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
|
|
2581
|
+
? {
|
|
2582
|
+
[minKey]: limitParams[minKey],
|
|
2583
|
+
[maxKey]: limitParams[maxKey],
|
|
2584
|
+
}
|
|
2585
|
+
: getRangeByKeys([minKey, maxKey], rateRows);
|
|
2586
|
+
const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
2587
|
+
[minKey]: rows.length
|
|
2588
|
+
? min(rows.filter((row) => typeof row[minKey] === 'number').map((row) => row[minKey]))
|
|
2589
|
+
: 0,
|
|
2590
|
+
[maxKey]: rows.length
|
|
2591
|
+
? max(rows.filter((row) => typeof row[minKey] === 'number').map((row) => row[maxKey]))
|
|
2592
|
+
: 0,
|
|
2593
|
+
});
|
|
2594
|
+
const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
2595
|
+
|
|
2751
2596
|
const checkCreditSourceBookRowCommonParams = (props) => checkRowParam$1({
|
|
2752
2597
|
...props,
|
|
2753
2598
|
fieldKey: 'isSalaryClient',
|
|
@@ -2787,6 +2632,19 @@
|
|
|
2787
2632
|
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
2788
2633
|
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
2789
2634
|
|
|
2635
|
+
const DEFAULT_MIN_SUM$2 = 10000;
|
|
2636
|
+
const DEFAULT_MAX_SUM$1 = 5000000;
|
|
2637
|
+
const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
2638
|
+
minSum: DEFAULT_MIN_SUM$2,
|
|
2639
|
+
maxSum: DEFAULT_MAX_SUM$1,
|
|
2640
|
+
minMonths: DEFAULT_MIN_MONTHS,
|
|
2641
|
+
maxMonths: DEFAULT_MAX_MONTHS,
|
|
2642
|
+
rate: 0,
|
|
2643
|
+
isSalaryClient: false,
|
|
2644
|
+
isPensionClient: false,
|
|
2645
|
+
isStateEmployee: false,
|
|
2646
|
+
isInsurance: true,
|
|
2647
|
+
};
|
|
2790
2648
|
const getCreditCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
|
|
2791
2649
|
const { moneyValue, monthsValue } = userInputParams;
|
|
2792
2650
|
const rateRows = calcSource?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
@@ -2820,9 +2678,13 @@
|
|
|
2820
2678
|
};
|
|
2821
2679
|
};
|
|
2822
2680
|
|
|
2823
|
-
const
|
|
2824
|
-
|
|
2825
|
-
|
|
2681
|
+
const orientationStyleMap = {
|
|
2682
|
+
horizontal: 'gap-5xl',
|
|
2683
|
+
vertical: 'flex-col gap-s',
|
|
2684
|
+
};
|
|
2685
|
+
const RadioButtonGroup = JSX(({ items, checkedItem, className, onChange: onChangeCheckedItem, orientation = 'horizontal', }) => (jsx("div", { className: style(`flex ${orientationStyleMap[orientation]}`, className), role: "radiogroup", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
|
|
2686
|
+
|
|
2687
|
+
const renderBinaryRadioButtonGroup = ({ items, title, mobileTitle = title, orientation = 'horizontal', value, radioGroupClassName, onChange, }) => (jsxs("div", { className: "space-y-s", children: [title ? (jsx("div", { className: "hidden @5xl:block", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, mobileTitle ? (jsx("div", { className: "@5xl:hidden", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: mobileTitle }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, checkedItem: items[value ? 0 : 1].id, className: style('flex-col sm:flex-row', radioGroupClassName), onChange: (_) => onChange && onChange(_ === items[0].id) })] }));
|
|
2826
2688
|
|
|
2827
2689
|
const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
|
|
2828
2690
|
...props,
|
|
@@ -2833,6 +2695,7 @@
|
|
|
2833
2695
|
],
|
|
2834
2696
|
});
|
|
2835
2697
|
|
|
2698
|
+
const CREDIT_DEFAULT_SUM = 200000;
|
|
2836
2699
|
const CreditCalculatorForm = JSX(({ className, calcSource, buttons, footnote, paramsViewSettings, defaultParams }) => {
|
|
2837
2700
|
const [userInputParams, { field }] = useForm({
|
|
2838
2701
|
moneyValue: getMoneyDefaultValue(defaultParams, CREDIT_DEFAULT_SUM),
|
|
@@ -2849,168 +2712,38 @@
|
|
|
2849
2712
|
mobileTitle: 'Тип платежа',
|
|
2850
2713
|
orientation: 'vertical',
|
|
2851
2714
|
...field('isAnnuity'),
|
|
2852
|
-
});
|
|
2853
|
-
const { onChange: setMoneyValue } = field('moneyValue');
|
|
2854
|
-
const { onChange: setMonthsValue } = field('monthsValue');
|
|
2855
|
-
useEffect(() => {
|
|
2856
|
-
setMoneyValue &&
|
|
2857
|
-
setMoneyValue(clamp(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
2858
|
-
}, [calculatorParams.minSum, calculatorParams.maxSum]);
|
|
2859
|
-
useEffect(() => {
|
|
2860
|
-
setMonthsValue &&
|
|
2861
|
-
setMonthsValue(clamp(userInputParams.monthsValue, calculatorParams.minMonths, calculatorParams.maxMonths));
|
|
2862
|
-
}, [calculatorParams.minMonths, calculatorParams.maxMonths]);
|
|
2863
|
-
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2864
|
-
title: 'Сумма кредита, ₽',
|
|
2865
|
-
step: 500,
|
|
2866
|
-
min: calculatorParams.minSum,
|
|
2867
|
-
max: calculatorParams.maxSum,
|
|
2868
|
-
...field('moneyValue'),
|
|
2869
|
-
value: calculatorParams.moneyValue,
|
|
2870
|
-
}), renderMonthsInput({
|
|
2871
|
-
title: 'Срок кредита, месяцев',
|
|
2872
|
-
min: calculatorParams.minMonths,
|
|
2873
|
-
max: calculatorParams.maxMonths,
|
|
2874
|
-
...field('monthsValue'),
|
|
2875
|
-
value: calculatorParams.monthsValue,
|
|
2876
|
-
}), renderCreditParamsForm$1({ ...calculatorParams, ...paramsViewSettings }, field), jsx("div", { className: "sm:hidden", children: paymentTypeElement })] }), rateChildren: renderRate({
|
|
2877
|
-
rate: calculatorParams.rate,
|
|
2878
|
-
}), resultChildren: jsxs("div", { children: [jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] }) }));
|
|
2879
|
-
});
|
|
2880
|
-
const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: `Получаю зарплату на счёт\nв Россельхозбанке`, ...field('isSalaryClient'), value: params.isSalaryClient, className: "whitespace-pre-line sm:whitespace-normal" })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(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", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { 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", ...field('isInsurance'), value: params.isInsurance })) : null] }));
|
|
2881
|
-
|
|
2882
|
-
const arrayByRange = (start, stop, step = 1) => Array.from({ length: Math.abs(stop - start) / step + 1 }, (value, index) => stop >= start ? start + index * step : start - index * step);
|
|
2883
|
-
|
|
2884
|
-
const mergeIntervals = (intervals) => {
|
|
2885
|
-
const result = [...intervals];
|
|
2886
|
-
result.sort(([a], [c]) => a - c);
|
|
2887
|
-
let i = 1;
|
|
2888
|
-
while (i < result.length) {
|
|
2889
|
-
const [a, b] = result[i - 1];
|
|
2890
|
-
const [c, d] = result[i];
|
|
2891
|
-
if (b >= c) {
|
|
2892
|
-
result.splice(i - 1, 2, [a, Math.max(b, d)]);
|
|
2893
|
-
}
|
|
2894
|
-
else {
|
|
2895
|
-
i++;
|
|
2896
|
-
}
|
|
2897
|
-
}
|
|
2898
|
-
return result;
|
|
2899
|
-
};
|
|
2900
|
-
|
|
2901
|
-
const getDepositCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
|
|
2902
|
-
const { moneyValue, monthsValue } = userInputParams;
|
|
2903
|
-
const defaultMonth = calcSource?.rateRows?.[0]
|
|
2904
|
-
? getMiddleMonth(calcSource.rateRows[0].minMonths, calcSource.rateRows[0].maxMonths)
|
|
2905
|
-
: 0;
|
|
2906
|
-
const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
|
|
2907
|
-
const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
|
|
2908
|
-
const depositCalculatorSourceBookParams = calcSource?.rateRows?.find((row) => checkRowByParam({
|
|
2909
|
-
row,
|
|
2910
|
-
userInputParams,
|
|
2911
|
-
paramKey: 'isMonthlyInterestPayment',
|
|
2912
|
-
isExclude: isExcludeMonthlyInterestPayment,
|
|
2913
|
-
}) &&
|
|
2914
|
-
checkRowByParam({
|
|
2915
|
-
row,
|
|
2916
|
-
userInputParams,
|
|
2917
|
-
paramKey: 'isRemoteRegistration',
|
|
2918
|
-
isExclude: isExcludeRemoteRegistration,
|
|
2919
|
-
}) &&
|
|
2920
|
-
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
2921
|
-
checkRangeByKeys(monthsValue || defaultMonth, ['minMonths', 'maxMonths'], row)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
|
|
2922
|
-
const { rate } = depositCalculatorSourceBookParams;
|
|
2923
|
-
const income = getDepositIncome(rate, userInputParams);
|
|
2924
|
-
const finalSum = moneyValue + income;
|
|
2925
|
-
const sourceBookRows = calcSource?.rateRows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
|
|
2926
|
-
return {
|
|
2927
|
-
...depositCalculatorSourceBookParams,
|
|
2928
|
-
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
2929
|
-
...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
|
|
2930
|
-
availableMonths: mergeIntervals(sourceBookRows.map((row) => [row['minMonths'], row['maxMonths']])).flatMap(([start, end]) => arrayByRange(start, end)),
|
|
2931
|
-
...userInputParams,
|
|
2932
|
-
defaultMonth,
|
|
2933
|
-
income,
|
|
2934
|
-
finalSum,
|
|
2935
|
-
};
|
|
2936
|
-
};
|
|
2937
|
-
const getDepositIncome = (rate, userInputParams) => {
|
|
2938
|
-
const { isMonthlyInterestPayment, moneyValue, monthsValue } = userInputParams;
|
|
2939
|
-
if (isMonthlyInterestPayment) {
|
|
2940
|
-
return Math.round(moneyValue * Math.pow((1200 + rate) / 1200, monthsValue) - moneyValue);
|
|
2941
|
-
}
|
|
2942
|
-
else {
|
|
2943
|
-
/*
|
|
2944
|
-
Приблизительный расчёт, не учитывающий разницу в количестве дней в месяцах. Месяц принят за 30 дней, год за 365 дней.
|
|
2945
|
-
*/
|
|
2946
|
-
return Math.round((moneyValue * rate * 30 * monthsValue) / 365 / 100);
|
|
2947
|
-
}
|
|
2948
|
-
};
|
|
2949
|
-
const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
|
|
2950
|
-
const getMiddleMonth = (minMonths, maxMonths) => minMonths + Math.round((maxMonths - minMonths) / 2);
|
|
2951
|
-
|
|
2952
|
-
const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
|
|
2953
|
-
...props,
|
|
2954
|
-
items: [
|
|
2955
|
-
{ id: 'remote', text: 'Дистанционно' },
|
|
2956
|
-
{ id: 'office', text: 'Офис Банка' },
|
|
2957
|
-
],
|
|
2958
|
-
});
|
|
2959
|
-
|
|
2960
|
-
const DepositCalculatorForm = JSX((props) => {
|
|
2961
|
-
const { className, calcSource, buttons, footnote, paramsViewSettings, defaultParams } = props;
|
|
2962
|
-
const [userInputParams, { field }] = useForm({
|
|
2963
|
-
moneyValue: getMoneyDefaultValue(defaultParams, DEPOSIT_DEFAULT_SUM),
|
|
2964
|
-
monthsValue: getMonthsDefaultValue(defaultParams),
|
|
2965
|
-
isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
|
|
2966
|
-
isRemoteRegistration: Boolean(defaultParams?.isRemoteRegistration),
|
|
2967
|
-
});
|
|
2968
|
-
const calculatorParams = getDepositCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
2969
|
-
const { defaultMonth, rate, income, finalSum } = calculatorParams;
|
|
2970
|
-
const { onChange: setMonthsValue } = field('monthsValue');
|
|
2971
|
-
const { onChange: setMoneyValue } = field('moneyValue');
|
|
2972
|
-
useEffect(() => {
|
|
2973
|
-
!userInputParams.monthsValue && setMonthsValue && setMonthsValue(defaultMonth);
|
|
2974
|
-
}, [defaultMonth]);
|
|
2715
|
+
});
|
|
2716
|
+
const { onChange: setMoneyValue } = field('moneyValue');
|
|
2717
|
+
const { onChange: setMonthsValue } = field('monthsValue');
|
|
2975
2718
|
useEffect(() => {
|
|
2976
2719
|
setMoneyValue &&
|
|
2977
2720
|
setMoneyValue(clamp(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
2978
2721
|
}, [calculatorParams.minSum, calculatorParams.maxSum]);
|
|
2722
|
+
useEffect(() => {
|
|
2723
|
+
setMonthsValue &&
|
|
2724
|
+
setMonthsValue(clamp(userInputParams.monthsValue, calculatorParams.minMonths, calculatorParams.maxMonths));
|
|
2725
|
+
}, [calculatorParams.minMonths, calculatorParams.maxMonths]);
|
|
2979
2726
|
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2980
|
-
title: '
|
|
2727
|
+
title: 'Сумма кредита, ₽',
|
|
2728
|
+
step: 500,
|
|
2981
2729
|
min: calculatorParams.minSum,
|
|
2982
2730
|
max: calculatorParams.maxSum,
|
|
2983
2731
|
...field('moneyValue'),
|
|
2984
2732
|
value: calculatorParams.moneyValue,
|
|
2985
2733
|
}), renderMonthsInput({
|
|
2986
|
-
title: '
|
|
2734
|
+
title: 'Срок кредита, месяцев',
|
|
2987
2735
|
min: calculatorParams.minMonths,
|
|
2988
2736
|
max: calculatorParams.maxMonths,
|
|
2989
|
-
availableMonths: calculatorParams.availableMonths,
|
|
2990
2737
|
...field('monthsValue'),
|
|
2991
2738
|
value: calculatorParams.monthsValue,
|
|
2992
|
-
}),
|
|
2993
|
-
rate,
|
|
2994
|
-
}), resultChildren: jsxs("div", { children: [jsx(CalculatorValueBlock, { title: "\
|
|
2739
|
+
}), renderCreditParamsForm$1({ ...calculatorParams, ...paramsViewSettings }, field), jsx("div", { className: "sm:hidden", children: paymentTypeElement })] }), rateChildren: renderRate({
|
|
2740
|
+
rate: calculatorParams.rate,
|
|
2741
|
+
}), resultChildren: jsxs("div", { children: [jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] }) }));
|
|
2995
2742
|
});
|
|
2996
|
-
const
|
|
2997
|
-
? renderInterestPayment({
|
|
2998
|
-
title: 'Выплата процентов',
|
|
2999
|
-
...field('isMonthlyInterestPayment'),
|
|
3000
|
-
value: params.isMonthlyInterestPayment,
|
|
3001
|
-
})
|
|
3002
|
-
: null, params.isShowRemoteRegistration
|
|
3003
|
-
? renderRegistrationType({
|
|
3004
|
-
title: 'Оформление',
|
|
3005
|
-
...field('isRemoteRegistration'),
|
|
3006
|
-
value: params.isRemoteRegistration,
|
|
3007
|
-
})
|
|
3008
|
-
: null] }));
|
|
2743
|
+
const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: `Получаю зарплату на счёт\nв Россельхозбанке`, ...field('isSalaryClient'), value: params.isSalaryClient, className: "whitespace-pre-line sm:whitespace-normal" })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(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", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { 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", ...field('isInsurance'), value: params.isInsurance })) : null] }));
|
|
3009
2744
|
|
|
3010
2745
|
const EmbeddableCalcBlocks = {
|
|
3011
2746
|
CreditCalculatorForm,
|
|
3012
|
-
DepositCalculatorForm,
|
|
3013
|
-
BusinessDepositCalculatorForm,
|
|
3014
2747
|
};
|
|
3015
2748
|
|
|
3016
2749
|
const renderCalculatorBlock = (block, i) => {
|
|
@@ -3159,6 +2892,275 @@
|
|
|
3159
2892
|
: null, jsxs("div", { className: CalculatorStyle.result, children: [yearBonus >= 0 ? (jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus })) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
|
|
3160
2893
|
});
|
|
3161
2894
|
|
|
2895
|
+
const renderPayout = (props) => renderBinaryRadioButtonGroup({
|
|
2896
|
+
...props,
|
|
2897
|
+
items: [
|
|
2898
|
+
{ id: 'everyMonth', text: 'Ежемесячно' },
|
|
2899
|
+
{ id: 'atEndTerm', text: 'В конце срока' },
|
|
2900
|
+
],
|
|
2901
|
+
});
|
|
2902
|
+
|
|
2903
|
+
const renderDepositResult = ({ income, finalSum, buttons, footnotes = [], }) => (jsxs("div", { className: CalculatorStyle.result, children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { isVertical: true }), footnotes?.map((_) => (_ ? renderFootnote(_) : null))] }));
|
|
2904
|
+
|
|
2905
|
+
const STEP_DAYS = 1;
|
|
2906
|
+
const renderDaysInput = (props) => (jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
|
|
2907
|
+
const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
|
|
2908
|
+
|
|
2909
|
+
const DEPOSIT_RATES_SERVICE_MAP = {
|
|
2910
|
+
UL: 'businessdepositrates',
|
|
2911
|
+
IP: 'selfemployeddepositrates',
|
|
2912
|
+
};
|
|
2913
|
+
function useBusinessDepositRates(rateParams) {
|
|
2914
|
+
const serviceName = rateParams?.rateType ? DEPOSIT_RATES_SERVICE_MAP[rateParams?.rateType] : '';
|
|
2915
|
+
const { data } = useAsyncData(serviceName ? `/api/v1/depositrates/${serviceName}` : null, fetchJSONUnsafe);
|
|
2916
|
+
return Array.isArray(data) ? data : [];
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
const BUSINESS_MIN_DAYS = 1;
|
|
2920
|
+
const BUSINESS_MAX_DAYS = 1095;
|
|
2921
|
+
const BUSINESS_RATE_MIN_DAYS = 30; // порог количества дней, при которых ставка не доступна
|
|
2922
|
+
const BUSINESS_OPERATING_MIN_DAYS = 90;
|
|
2923
|
+
const BUSINESS_OPERATING_MAX_DAYS = 730;
|
|
2924
|
+
const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = {
|
|
2925
|
+
minSum: 1000,
|
|
2926
|
+
maxSum: 100000001,
|
|
2927
|
+
minDays: BUSINESS_MIN_DAYS,
|
|
2928
|
+
maxDays: BUSINESS_MAX_DAYS,
|
|
2929
|
+
rate: 0,
|
|
2930
|
+
isMonthlyInterestPayment: true,
|
|
2931
|
+
isReplenished: false,
|
|
2932
|
+
isPartialWithdrawal: false,
|
|
2933
|
+
depositeName: "Депозит 'Стабильный'",
|
|
2934
|
+
};
|
|
2935
|
+
const useBusinessDepositParams = (userInputParams, rateParams) => {
|
|
2936
|
+
const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
|
|
2937
|
+
const isOperatingDeposit = isReplenished || isPartialWithdrawal;
|
|
2938
|
+
const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
|
|
2939
|
+
const rateRows = useBusinessDepositRates(rateParams);
|
|
2940
|
+
if (daysValue <= BUSINESS_RATE_MIN_DAYS) {
|
|
2941
|
+
return {
|
|
2942
|
+
...DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS,
|
|
2943
|
+
...userInputParams,
|
|
2944
|
+
isDisabledOperatingDeposit,
|
|
2945
|
+
isUnavailableByTerm: true,
|
|
2946
|
+
};
|
|
2947
|
+
}
|
|
2948
|
+
const businessDepositCalculatorSourceBookParams = rateRows?.find((_) => {
|
|
2949
|
+
return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
2950
|
+
checkIsOperatingDeposit(isOperatingDeposit, _) &&
|
|
2951
|
+
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
|
|
2952
|
+
checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _));
|
|
2953
|
+
}) || DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS;
|
|
2954
|
+
const { rate } = businessDepositCalculatorSourceBookParams;
|
|
2955
|
+
const income = getDepositIncome$1(rate, userInputParams);
|
|
2956
|
+
const finalSum = moneyValue + income;
|
|
2957
|
+
const sourceBookRows = rateRows || [DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS];
|
|
2958
|
+
return {
|
|
2959
|
+
...businessDepositCalculatorSourceBookParams,
|
|
2960
|
+
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
2961
|
+
...getRangeByKeys(['minDays', 'maxDays'], sourceBookRows),
|
|
2962
|
+
...userInputParams,
|
|
2963
|
+
isDisabledOperatingDeposit,
|
|
2964
|
+
income,
|
|
2965
|
+
finalSum,
|
|
2966
|
+
};
|
|
2967
|
+
};
|
|
2968
|
+
const checkIsOperatingDeposit = (isOperatingDeposit, sourceBookRow) => isOperatingDeposit
|
|
2969
|
+
? sourceBookRow.isReplenished && sourceBookRow.isPartialWithdrawal
|
|
2970
|
+
: !sourceBookRow.isReplenished && !sourceBookRow.isPartialWithdrawal;
|
|
2971
|
+
const getDepositIncome$1 = (rate, userInputParams) => {
|
|
2972
|
+
const { isMonthlyInterestPayment, moneyValue, daysValue } = userInputParams;
|
|
2973
|
+
/*
|
|
2974
|
+
Приблизительный расчёт, не учитывающий разницу в количестве дней в месяцах. Месяц принят за 30 дней, год за 365 дней.
|
|
2975
|
+
*/
|
|
2976
|
+
if (isMonthlyInterestPayment) {
|
|
2977
|
+
return Math.round(moneyValue * Math.pow((1200 + rate) / 1200, daysValue / 30) - moneyValue);
|
|
2978
|
+
}
|
|
2979
|
+
else {
|
|
2980
|
+
return Math.round((moneyValue * rate * daysValue) / 365 / 100);
|
|
2981
|
+
}
|
|
2982
|
+
};
|
|
2983
|
+
|
|
2984
|
+
const BUSINESS_DEFAULT_SUM = 100000;
|
|
2985
|
+
const BUSINESS_DEFAULT_DAYS = 60;
|
|
2986
|
+
const CalculatorBusinessDeposit = UniBlock(({ className = '', title, buttons, footnote, bottomFootnote, isShowDepositeName, defaultParams, rateParams, ...rest }) => {
|
|
2987
|
+
const [userInputParams, { field }] = useForm({
|
|
2988
|
+
moneyValue: getMoneyDefaultValue(defaultParams, BUSINESS_DEFAULT_SUM),
|
|
2989
|
+
daysValue: getMonthsDefaultValue(defaultParams, BUSINESS_DEFAULT_DAYS),
|
|
2990
|
+
isReplenished: Boolean(defaultParams?.isReplenished),
|
|
2991
|
+
isPartialWithdrawal: Boolean(defaultParams?.isPartialWithdrawal),
|
|
2992
|
+
isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
|
|
2993
|
+
});
|
|
2994
|
+
const calculatorParams = useBusinessDepositParams(userInputParams, rateParams);
|
|
2995
|
+
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
2996
|
+
return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
|
|
2997
|
+
title: 'Сумма, ₽',
|
|
2998
|
+
min: calculatorParams.minSum,
|
|
2999
|
+
max: calculatorParams.maxSum,
|
|
3000
|
+
...field('moneyValue'),
|
|
3001
|
+
value: calculatorParams.moneyValue,
|
|
3002
|
+
}), renderDaysInput({
|
|
3003
|
+
title: 'Срок, дней',
|
|
3004
|
+
min: calculatorParams.minDays,
|
|
3005
|
+
max: calculatorParams.maxDays,
|
|
3006
|
+
...field('daysValue'),
|
|
3007
|
+
value: calculatorParams.daysValue,
|
|
3008
|
+
}), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-m gap-x-5xl", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderPayout({
|
|
3009
|
+
title: 'Выплата процентов',
|
|
3010
|
+
orientation: 'vertical',
|
|
3011
|
+
...field('isMonthlyInterestPayment'),
|
|
3012
|
+
radioGroupClassName: 'sm:flex-col',
|
|
3013
|
+
})] })] }), renderRate({
|
|
3014
|
+
rate,
|
|
3015
|
+
depositeName,
|
|
3016
|
+
isShowDepositeName,
|
|
3017
|
+
isUnavailableByTerm,
|
|
3018
|
+
}), renderDepositResult({
|
|
3019
|
+
income,
|
|
3020
|
+
finalSum,
|
|
3021
|
+
buttons,
|
|
3022
|
+
footnotes: [footnote, bottomFootnote],
|
|
3023
|
+
})] }) }));
|
|
3024
|
+
});
|
|
3025
|
+
const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), jsxs("div", { className: "flex flex-col gap-y-lg sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
|
|
3026
|
+
|
|
3027
|
+
const arrayByRange = (start, stop, step = 1) => Array.from({ length: Math.abs(stop - start) / step + 1 }, (value, index) => stop >= start ? start + index * step : start - index * step);
|
|
3028
|
+
|
|
3029
|
+
const mergeIntervals = (intervals) => {
|
|
3030
|
+
const result = [...intervals];
|
|
3031
|
+
result.sort(([a], [c]) => a - c);
|
|
3032
|
+
let i = 1;
|
|
3033
|
+
while (i < result.length) {
|
|
3034
|
+
const [a, b] = result[i - 1];
|
|
3035
|
+
const [c, d] = result[i];
|
|
3036
|
+
if (b >= c) {
|
|
3037
|
+
result.splice(i - 1, 2, [a, Math.max(b, d)]);
|
|
3038
|
+
}
|
|
3039
|
+
else {
|
|
3040
|
+
i++;
|
|
3041
|
+
}
|
|
3042
|
+
}
|
|
3043
|
+
return result;
|
|
3044
|
+
};
|
|
3045
|
+
|
|
3046
|
+
const DEFAULT_DEPOSIT_CALCULATOR_PARAMS = {
|
|
3047
|
+
minSum: 50000,
|
|
3048
|
+
maxSum: 100000001,
|
|
3049
|
+
minMonths: 2,
|
|
3050
|
+
maxMonths: 10,
|
|
3051
|
+
rate: 0,
|
|
3052
|
+
isMonthlyInterestPayment: true,
|
|
3053
|
+
isRemoteRegistration: true,
|
|
3054
|
+
};
|
|
3055
|
+
const getDepositCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
|
|
3056
|
+
const { moneyValue, monthsValue } = userInputParams;
|
|
3057
|
+
const defaultMonth = calcSource?.rateRows?.[0]
|
|
3058
|
+
? getMiddleMonth(calcSource.rateRows[0].minMonths, calcSource.rateRows[0].maxMonths)
|
|
3059
|
+
: 0;
|
|
3060
|
+
const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
|
|
3061
|
+
const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
|
|
3062
|
+
const depositCalculatorSourceBookParams = calcSource?.rateRows?.find((row) => checkRowByParam({
|
|
3063
|
+
row,
|
|
3064
|
+
userInputParams,
|
|
3065
|
+
paramKey: 'isMonthlyInterestPayment',
|
|
3066
|
+
isExclude: isExcludeMonthlyInterestPayment,
|
|
3067
|
+
}) &&
|
|
3068
|
+
checkRowByParam({
|
|
3069
|
+
row,
|
|
3070
|
+
userInputParams,
|
|
3071
|
+
paramKey: 'isRemoteRegistration',
|
|
3072
|
+
isExclude: isExcludeRemoteRegistration,
|
|
3073
|
+
}) &&
|
|
3074
|
+
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
3075
|
+
checkRangeByKeys(monthsValue || defaultMonth, ['minMonths', 'maxMonths'], row)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
|
|
3076
|
+
const { rate } = depositCalculatorSourceBookParams;
|
|
3077
|
+
const income = getDepositIncome(rate, userInputParams);
|
|
3078
|
+
const finalSum = moneyValue + income;
|
|
3079
|
+
const sourceBookRows = calcSource?.rateRows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
|
|
3080
|
+
return {
|
|
3081
|
+
...depositCalculatorSourceBookParams,
|
|
3082
|
+
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
3083
|
+
...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
|
|
3084
|
+
availableMonths: mergeIntervals(sourceBookRows.map((row) => [row['minMonths'], row['maxMonths']])).flatMap(([start, end]) => arrayByRange(start, end)),
|
|
3085
|
+
...userInputParams,
|
|
3086
|
+
defaultMonth,
|
|
3087
|
+
income,
|
|
3088
|
+
finalSum,
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
const getDepositIncome = (rate, userInputParams) => {
|
|
3092
|
+
const { isMonthlyInterestPayment, moneyValue, monthsValue } = userInputParams;
|
|
3093
|
+
if (isMonthlyInterestPayment) {
|
|
3094
|
+
return Math.round(moneyValue * Math.pow((1200 + rate) / 1200, monthsValue) - moneyValue);
|
|
3095
|
+
}
|
|
3096
|
+
else {
|
|
3097
|
+
/*
|
|
3098
|
+
Приблизительный расчёт, не учитывающий разницу в количестве дней в месяцах. Месяц принят за 30 дней, год за 365 дней.
|
|
3099
|
+
*/
|
|
3100
|
+
return Math.round((moneyValue * rate * 30 * monthsValue) / 365 / 100);
|
|
3101
|
+
}
|
|
3102
|
+
};
|
|
3103
|
+
const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
|
|
3104
|
+
const getMiddleMonth = (minMonths, maxMonths) => minMonths + Math.round((maxMonths - minMonths) / 2);
|
|
3105
|
+
|
|
3106
|
+
const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
|
|
3107
|
+
...props,
|
|
3108
|
+
items: [
|
|
3109
|
+
{ id: 'remote', text: 'Дистанционно' },
|
|
3110
|
+
{ id: 'office', text: 'Офис Банка' },
|
|
3111
|
+
],
|
|
3112
|
+
});
|
|
3113
|
+
|
|
3114
|
+
const DEPOSIT_DEFAULT_SUM = 20000;
|
|
3115
|
+
const CalculatorDeposit = UniBlock(({ className, title, calcSource, buttons, footnote, paramsViewSettings, defaultParams, ...rest }) => {
|
|
3116
|
+
const [userInputParams, { field }] = useForm({
|
|
3117
|
+
moneyValue: getMoneyDefaultValue(defaultParams, DEPOSIT_DEFAULT_SUM),
|
|
3118
|
+
monthsValue: getMonthsDefaultValue(defaultParams),
|
|
3119
|
+
isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
|
|
3120
|
+
isRemoteRegistration: Boolean(defaultParams?.isRemoteRegistration),
|
|
3121
|
+
});
|
|
3122
|
+
const calculatorParams = getDepositCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
3123
|
+
const { defaultMonth, rate, income, finalSum } = calculatorParams;
|
|
3124
|
+
const { onChange: setMonthsValue } = field('monthsValue');
|
|
3125
|
+
const { onChange: setMoneyValue } = field('moneyValue');
|
|
3126
|
+
useEffect(() => {
|
|
3127
|
+
!userInputParams.monthsValue && setMonthsValue && setMonthsValue(defaultMonth);
|
|
3128
|
+
}, [defaultMonth]);
|
|
3129
|
+
useEffect(() => {
|
|
3130
|
+
setMoneyValue &&
|
|
3131
|
+
setMoneyValue(clamp(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
3132
|
+
}, [calculatorParams.minSum, calculatorParams.maxSum]);
|
|
3133
|
+
return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
|
|
3134
|
+
title: 'Сумма, ₽',
|
|
3135
|
+
min: calculatorParams.minSum,
|
|
3136
|
+
max: calculatorParams.maxSum,
|
|
3137
|
+
...field('moneyValue'),
|
|
3138
|
+
value: calculatorParams.moneyValue,
|
|
3139
|
+
}), renderMonthsInput({
|
|
3140
|
+
title: 'Срок, месяцев',
|
|
3141
|
+
min: calculatorParams.minMonths,
|
|
3142
|
+
max: calculatorParams.maxMonths,
|
|
3143
|
+
availableMonths: calculatorParams.availableMonths,
|
|
3144
|
+
...field('monthsValue'),
|
|
3145
|
+
value: calculatorParams.monthsValue,
|
|
3146
|
+
}), renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field)] }), renderRate({
|
|
3147
|
+
rate,
|
|
3148
|
+
}), renderDepositResult({ income, finalSum, buttons, footnotes: [footnote] })] }) }));
|
|
3149
|
+
});
|
|
3150
|
+
const renderDepositParamsForm = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
|
|
3151
|
+
? renderPayout({
|
|
3152
|
+
title: 'Выплата процентов',
|
|
3153
|
+
...field('isMonthlyInterestPayment'),
|
|
3154
|
+
value: params.isMonthlyInterestPayment,
|
|
3155
|
+
})
|
|
3156
|
+
: null, params.isShowRemoteRegistration
|
|
3157
|
+
? renderRegistrationType({
|
|
3158
|
+
title: 'Оформление',
|
|
3159
|
+
...field('isRemoteRegistration'),
|
|
3160
|
+
value: params.isRemoteRegistration,
|
|
3161
|
+
})
|
|
3162
|
+
: null] }));
|
|
3163
|
+
|
|
3162
3164
|
const checkRefinancingSourceBookRowCommonParams = (props) => checkRowParam({
|
|
3163
3165
|
...props,
|
|
3164
3166
|
fieldKey: 'isSalaryClient',
|
|
@@ -3182,7 +3184,6 @@
|
|
|
3182
3184
|
|
|
3183
3185
|
const DEFAULT_MIN_SUM$1 = 10000;
|
|
3184
3186
|
const DEFAULT_REFINANCING_MIN_MONTHS = 13;
|
|
3185
|
-
const DEFAULT_MAX_MONTHS = 60;
|
|
3186
3187
|
const REFINANCING_DEFAULT_MAX_SUM = 3000000;
|
|
3187
3188
|
const REFINANCING_OLD_MIN_SUM = 0;
|
|
3188
3189
|
const REFINANCING_OLD_MAX_SUM = 2500000;
|
|
@@ -6023,6 +6024,8 @@
|
|
|
6023
6024
|
ButtonsBlock,
|
|
6024
6025
|
Calculator,
|
|
6025
6026
|
CalculatorBonus,
|
|
6027
|
+
CalculatorBusinessDeposit,
|
|
6028
|
+
CalculatorDeposit,
|
|
6026
6029
|
CalculatorRefinancing,
|
|
6027
6030
|
CardTransfer,
|
|
6028
6031
|
Carousel,
|
|
@@ -6241,7 +6244,7 @@
|
|
|
6241
6244
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6242
6245
|
});
|
|
6243
6246
|
|
|
6244
|
-
const packageVersion = "0.14.
|
|
6247
|
+
const packageVersion = "0.14.325";
|
|
6245
6248
|
|
|
6246
6249
|
exports.Blocks = Blocks;
|
|
6247
6250
|
exports.ContentPage = ContentPage;
|