@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
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type RateParamsDef } from './CalculatorBusinessDepositContent';
|
|
2
|
+
import { type BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositParams';
|
|
3
|
+
export declare type CalculatorBusinessDepositData = BusinessDepositCalculatorSourceBookParams[];
|
|
4
|
+
export declare function useBusinessDepositRates(rateParams?: RateParamsDef): CalculatorBusinessDepositData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBusinessDepositRates.js","sourceRoot":"","sources":["../../../src/components/CalculatorBusinessDeposit/useBusinessDepositRates.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAkF;AAIlF,MAAM,yBAAyB,GAAG;IAChC,EAAE,EAAE,sBAAsB;IAC1B,EAAE,EAAE,0BAA0B;CAC/B,CAAC;AAIF,SAAgB,uBAAuB,CAAC,UAA0B;IAChE,MAAM,WAAW,GAAG,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhG,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,WAAW,CAAC,CAAC,CAAC,wBAAwB,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,EAC1D,2BAAqE,CACtE,CAAC;IAEF,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC;AATD,0DASC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
+
import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
|
|
3
|
+
import { type CalculatorDepositContent } from './CalculatorDepositContent';
|
|
4
|
+
import { type DepositCalculatorData } from './getDepositCalculatorParams';
|
|
5
|
+
export interface CalculatorDepositProps extends CalculatorDepositContent, UniBlockProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
calcSource?: DepositCalculatorData & JSONRefObject;
|
|
8
|
+
}
|
|
9
|
+
export declare const CalculatorDeposit: import("../../UniBlock/UniBlock").UniBlockComponent<CalculatorDepositProps>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.CalculatorDeposit = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
5
|
+
const useForm_1 = require("../../hooks/useForm");
|
|
6
|
+
const CalculatorLayout_1 = require("../../ui-kit/Calculator/CalculatorLayout");
|
|
7
|
+
const CalculatorStyle_1 = require("../../ui-kit/Calculator/CalculatorStyle");
|
|
8
|
+
const getDefaultValues_1 = require("../../ui-kit/Calculator/getDefaultValues");
|
|
9
|
+
const renderMonthsInput_1 = require("../../ui-kit/Calculator/renderMonthsInput");
|
|
10
|
+
const renderPayout_1 = require("../../ui-kit/Calculator/renderPayout");
|
|
11
|
+
const renderRate_1 = require("../../ui-kit/Calculator/renderRate");
|
|
12
|
+
const renderWantedSumInput_1 = require("../../ui-kit/Calculator/renderWantedSumInput");
|
|
13
|
+
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
14
|
+
const clamp_1 = require("../../utils/clamp");
|
|
15
|
+
const style_1 = require("../../utils/style");
|
|
16
|
+
const renderDepositResult_1 = require("../Carousel/renderDepositResult");
|
|
17
|
+
const getDepositCalculatorParams_1 = require("./getDepositCalculatorParams");
|
|
18
|
+
const renderRegistrationType_1 = require("./renderRegistrationType");
|
|
19
|
+
const DEPOSIT_DEFAULT_SUM = 20000;
|
|
20
|
+
exports.CalculatorDeposit = (0, UniBlock_1.UniBlock)(({ className, title, calcSource, buttons, footnote, paramsViewSettings, defaultParams, ...rest }) => {
|
|
21
|
+
const [userInputParams, { field }] = (0, useForm_1.useForm)({
|
|
22
|
+
moneyValue: (0, getDefaultValues_1.getMoneyDefaultValue)(defaultParams, DEPOSIT_DEFAULT_SUM),
|
|
23
|
+
monthsValue: (0, getDefaultValues_1.getMonthsDefaultValue)(defaultParams),
|
|
24
|
+
isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
|
|
25
|
+
isRemoteRegistration: Boolean(defaultParams?.isRemoteRegistration),
|
|
26
|
+
});
|
|
27
|
+
const calculatorParams = (0, getDepositCalculatorParams_1.getDepositCalculatorParams)(userInputParams, calcSource, paramsViewSettings);
|
|
28
|
+
const { defaultMonth, rate, income, finalSum } = calculatorParams;
|
|
29
|
+
const { onChange: setMonthsValue } = field('monthsValue');
|
|
30
|
+
const { onChange: setMoneyValue } = field('moneyValue');
|
|
31
|
+
(0, hooks_1.useEffect)(() => {
|
|
32
|
+
!userInputParams.monthsValue && setMonthsValue && setMonthsValue(defaultMonth);
|
|
33
|
+
}, [defaultMonth]);
|
|
34
|
+
(0, hooks_1.useEffect)(() => {
|
|
35
|
+
setMoneyValue &&
|
|
36
|
+
setMoneyValue((0, clamp_1.clamp)(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
37
|
+
}, [calculatorParams.minSum, calculatorParams.maxSum]);
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(CalculatorLayout_1.CalculatorLayout, { className: className, title: title, ...rest, children: (0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)(CalculatorStyle_1.CalculatorStyle.wrapper, className), children: [(0, jsx_runtime_1.jsxs)("div", { className: CalculatorStyle_1.CalculatorStyle.input, children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
|
|
39
|
+
title: 'Сумма, ₽',
|
|
40
|
+
min: calculatorParams.minSum,
|
|
41
|
+
max: calculatorParams.maxSum,
|
|
42
|
+
...field('moneyValue'),
|
|
43
|
+
value: calculatorParams.moneyValue,
|
|
44
|
+
}), (0, renderMonthsInput_1.renderMonthsInput)({
|
|
45
|
+
title: 'Срок, месяцев',
|
|
46
|
+
min: calculatorParams.minMonths,
|
|
47
|
+
max: calculatorParams.maxMonths,
|
|
48
|
+
availableMonths: calculatorParams.availableMonths,
|
|
49
|
+
...field('monthsValue'),
|
|
50
|
+
value: calculatorParams.monthsValue,
|
|
51
|
+
}), renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field)] }), (0, renderRate_1.renderRate)({
|
|
52
|
+
rate,
|
|
53
|
+
}), (0, renderDepositResult_1.renderDepositResult)({ income, finalSum, buttons, footnotes: [footnote] })] }) }));
|
|
54
|
+
});
|
|
55
|
+
const renderDepositParamsForm = (params, field) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
|
|
56
|
+
? (0, renderPayout_1.renderPayout)({
|
|
57
|
+
title: 'Выплата процентов',
|
|
58
|
+
...field('isMonthlyInterestPayment'),
|
|
59
|
+
value: params.isMonthlyInterestPayment,
|
|
60
|
+
})
|
|
61
|
+
: null, params.isShowRemoteRegistration
|
|
62
|
+
? (0, renderRegistrationType_1.renderRegistrationType)({
|
|
63
|
+
title: 'Оформление',
|
|
64
|
+
...field('isRemoteRegistration'),
|
|
65
|
+
value: params.isRemoteRegistration,
|
|
66
|
+
})
|
|
67
|
+
: null] }));
|
|
68
|
+
//# sourceMappingURL=CalculatorDeposit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculatorDeposit.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/CalculatorDeposit.tsx"],"names":[],"mappings":";;;AAAA,uDAAwD;AAExD,iDAAwE;AACxE,+EAA4E;AAC5E,6EAA0E;AAC1E,+EAGkD;AAClD,iFAA8E;AAC9E,uEAAoE;AACpE,mEAAgE;AAChE,uFAAoF;AACpF,sDAAmD;AAEnD,6CAA0C;AAC1C,6CAA0C;AAC1C,yEAAsE;AAKtE,6EAIsC;AACtC,qEAAkE;AAElE,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAMrB,QAAA,iBAAiB,GAAG,IAAA,mBAAQ,EACvC,CAAC,EACC,SAAS,EACT,KAAK,EACL,UAAU,EACV,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,aAAa,EACb,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,UAAU,EAAE,IAAA,uCAAoB,EAAC,aAAa,EAAE,mBAAmB,CAAC;QACpE,WAAW,EAAE,IAAA,wCAAqB,EAAC,aAAa,CAAC;QACjD,wBAAwB,EAAE,OAAO,CAAC,aAAa,EAAE,wBAAwB,CAAC;QAC1E,oBAAoB,EAAE,OAAO,CAAC,aAAa,EAAE,oBAAoB,CAAC;KACnE,CAAC,CA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4BACjB,KAAK,EAAE,eAAe;4BACtB,GAAG,EAAE,gBAAgB,CAAC,SAAS;4BAC/B,GAAG,EAAE,gBAAgB,CAAC,SAAS;4BAC/B,eAAe,EAAE,gBAAgB,CAAC,eAAe;4BACjD,GAAG,KAAK,CAAC,aAAa,CAAC;4BACvB,KAAK,EAAE,gBAAgB,CAAC,WAAW;yBACpC,CAAC,EACD,uBAAuB,CAAC,EAAE,GAAG,gBAAgB,EAAE,GAAG,kBAAkB,EAAE,EAAE,KAAK,CAAC,IAC3E,EACL,IAAA,uBAAU,EAAC;oBACV,IAAI;iBACL,CAAC,EACD,IAAA,yCAAmB,EAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,QAAkB,CAAC,EAAE,CAAC,IAC5E,GACO,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAC9B,MAAqE,EACrE,KAA+B,EAC/B,EAAE,CAAC,CACH,iCAAK,SAAS,EAAC,yBAAyB,aACrC,MAAM,CAAC,4BAA4B;YAClC,CAAC,CAAC,IAAA,2BAAY,EAAC;gBACX,KAAK,EAAE,mBAAmB;gBAC1B,GAAG,KAAK,CAAC,0BAA0B,CAAC;gBACpC,KAAK,EAAE,MAAM,CAAC,wBAAwB;aACvC,CAAC;YACJ,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,wBAAwB;YAC9B,CAAC,CAAC,IAAA,+CAAsB,EAAC;gBACrB,KAAK,EAAE,YAAY;gBACnB,GAAG,KAAK,CAAC,sBAAsB,CAAC;gBAChC,KAAK,EAAE,MAAM,CAAC,oBAAoB;aACnC,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type CommonCalculatorProps, type CommonDefaultParams } from '../../ui-kit/Calculator/CalculatorProps';
|
|
2
|
+
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
3
|
+
export interface CalculatorDepositParamsViewSettings {
|
|
4
|
+
/**
|
|
5
|
+
* @title Выплата процентов
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
isShowMonthlyInterestPayment?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @title Оформление
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
isShowRemoteRegistration?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface DepositDefaultParams extends CommonDefaultParams {
|
|
16
|
+
/** @title Ежемесячная выплата процентов */
|
|
17
|
+
isMonthlyInterestPayment?: boolean;
|
|
18
|
+
/** @title Дистанционное оформление */
|
|
19
|
+
isRemoteRegistration?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @title Калькулятор бонусов
|
|
23
|
+
*/
|
|
24
|
+
export declare type CalculatorDepositContent = UniBlockContent & CommonCalculatorProps & {
|
|
25
|
+
/** @title Настройка отображения радио */
|
|
26
|
+
paramsViewSettings?: CalculatorDepositParamsViewSettings;
|
|
27
|
+
/** @title Параметры по умолчанию */
|
|
28
|
+
defaultParams?: DepositDefaultParams;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculatorDepositContent.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/CalculatorDepositContent.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CalculatorDepositParamsViewSettings } from './CalculatorDepositContent';
|
|
2
2
|
export interface CommonDepositParams {
|
|
3
3
|
isMonthlyInterestPayment: boolean;
|
|
4
4
|
isRemoteRegistration: boolean;
|
|
@@ -23,4 +23,4 @@ export interface DepositCalculatorParams extends DepositCalculatorSourceBookPara
|
|
|
23
23
|
export declare type DepositCalculatorData = {
|
|
24
24
|
rateRows?: DepositCalculatorSourceBookParams[];
|
|
25
25
|
};
|
|
26
|
-
export declare const getDepositCalculatorParams: (userInputParams: DepositCalculatorUserInputParams, calcSource?: DepositCalculatorData, paramsViewSettings?:
|
|
26
|
+
export declare const getDepositCalculatorParams: (userInputParams: DepositCalculatorUserInputParams, calcSource?: DepositCalculatorData, paramsViewSettings?: CalculatorDepositParamsViewSettings) => DepositCalculatorParams;
|
|
@@ -3,7 +3,15 @@ exports.getDepositCalculatorParams = void 0;
|
|
|
3
3
|
const rangeHelpers_1 = require("../../ui-kit/Calculator/rangeHelpers");
|
|
4
4
|
const arrayByRange_1 = require("../../utils/arrayByRange");
|
|
5
5
|
const mergeIntervals_1 = require("../../utils/mergeIntervals");
|
|
6
|
-
const
|
|
6
|
+
const DEFAULT_DEPOSIT_CALCULATOR_PARAMS = {
|
|
7
|
+
minSum: 50000,
|
|
8
|
+
maxSum: 100000001,
|
|
9
|
+
minMonths: 2,
|
|
10
|
+
maxMonths: 10,
|
|
11
|
+
rate: 0,
|
|
12
|
+
isMonthlyInterestPayment: true,
|
|
13
|
+
isRemoteRegistration: true,
|
|
14
|
+
};
|
|
7
15
|
const getDepositCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
|
|
8
16
|
const { moneyValue, monthsValue } = userInputParams;
|
|
9
17
|
const defaultMonth = calcSource?.rateRows?.[0]
|
|
@@ -24,11 +32,11 @@ const getDepositCalculatorParams = (userInputParams, calcSource, paramsViewSetti
|
|
|
24
32
|
isExclude: isExcludeRemoteRegistration,
|
|
25
33
|
}) &&
|
|
26
34
|
(0, rangeHelpers_1.checkRangeByKeys)(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
27
|
-
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue || defaultMonth, ['minMonths', 'maxMonths'], row)) ||
|
|
35
|
+
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue || defaultMonth, ['minMonths', 'maxMonths'], row)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
|
|
28
36
|
const { rate } = depositCalculatorSourceBookParams;
|
|
29
37
|
const income = getDepositIncome(rate, userInputParams);
|
|
30
38
|
const finalSum = moneyValue + income;
|
|
31
|
-
const sourceBookRows = calcSource?.rateRows || [
|
|
39
|
+
const sourceBookRows = calcSource?.rateRows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
|
|
32
40
|
return {
|
|
33
41
|
...depositCalculatorSourceBookParams,
|
|
34
42
|
...(0, rangeHelpers_1.getRangeByKeys)(['minSum', 'maxSum'], sourceBookRows),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/getDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,uEAAwF;AACxF,2DAAwD;AACxD,+DAA4D;AAG5D,MAAM,iCAAiC,GAAsC;IAC3E,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,SAAS;IACjB,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,EAAE;IACb,IAAI,EAAE,CAAC;IACP,wBAAwB,EAAE,IAAI;IAC9B,oBAAoB,EAAE,IAAI;CAC3B,CAAC;AAiCK,MAAM,0BAA0B,GAAG,CACxC,eAAiD,EACjD,UAAkC,EAClC,kBAAwD,EAC/B,EAAE;IAC3B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IACpD,MAAM,YAAY,GAAG,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACpF,CAAC,CAAC,CAAC,CAAC;IACN,MAAM,+BAA+B,GAAG,CAAC,kBAAkB,EAAE,4BAA4B,CAAC;IAC1F,MAAM,2BAA2B,GAAG,CAAC,kBAAkB,EAAE,wBAAwB,CAAC;IAClF,MAAM,iCAAiC,GACrC,UAAU,EAAE,QAAQ,EAAE,IAAI,CACxB,CAAC,GAAG,EAAE,EAAE,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AAC;AA/CW,QAAA,0BAA0B,8BA+CrC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,eAAiD,EAAE,EAAE;IAC3F,MAAM,EAAE,wBAAwB,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IAE9E,IAAI,wBAAwB,EAAE;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC,GAAG,UAAU,CAAC,CAAC;KAC1F;SAAM;QACL;;UAEE;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,GAAG,WAAW,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KACvE;AACH,CAAC,CAAC;AASF,MAAM,eAAe,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAwB,EAAE,EAAE,CAC9F,SAAS,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC;AAE3D,MAAM,cAAc,GAAG,CAAC,SAAiB,EAAE,SAAiB,EAAU,EAAE,CACtE,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderPaymentType = void 0;
|
|
3
|
+
const renderBinaryRadioButtonGroup_1 = require("../../ui-kit/Calculator/renderBinaryRadioButtonGroup");
|
|
4
|
+
const renderPaymentType = (props) => (0, renderBinaryRadioButtonGroup_1.renderBinaryRadioButtonGroup)({
|
|
5
|
+
...props,
|
|
6
|
+
radioGroupClassName: 'sm:flex-col',
|
|
7
|
+
items: [
|
|
8
|
+
{ id: 'annuity', text: 'Аннуитетный' },
|
|
9
|
+
{ id: 'differential', text: 'Дифференцированный' },
|
|
10
|
+
],
|
|
11
|
+
});
|
|
12
|
+
exports.renderPaymentType = renderPaymentType;
|
|
13
|
+
//# sourceMappingURL=renderPaymentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/renderPaymentType.tsx"],"names":[],"mappings":";;AAAA,uGAG8D;AAEvD,MAAM,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC/E,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,mBAAmB,EAAE,aAAa;IAClC,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;QACtC,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,oBAAoB,EAAE;KACnD;CACF,CAAC,CAAC;AARQ,QAAA,iBAAiB,qBAQzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderRegistrationType = void 0;
|
|
3
|
+
const renderBinaryRadioButtonGroup_1 = require("../../ui-kit/Calculator/renderBinaryRadioButtonGroup");
|
|
4
|
+
const renderRegistrationType = (props) => (0, renderBinaryRadioButtonGroup_1.renderBinaryRadioButtonGroup)({
|
|
5
|
+
...props,
|
|
6
|
+
items: [
|
|
7
|
+
{ id: 'remote', text: 'Дистанционно' },
|
|
8
|
+
{ id: 'office', text: 'Офис Банка' },
|
|
9
|
+
],
|
|
10
|
+
});
|
|
11
|
+
exports.renderRegistrationType = renderRegistrationType;
|
|
12
|
+
//# sourceMappingURL=renderRegistrationType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/renderRegistrationType.tsx"],"names":[],"mappings":";;AAAA,uGAG8D;AAEvD,MAAM,sBAAsB,GAAG,CAAC,KAA2C,EAAE,EAAE,CACpF,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE;QACtC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE;KACrC;CACF,CAAC,CAAC;AAPQ,QAAA,sBAAsB,0BAO9B"}
|
|
@@ -6,13 +6,13 @@ const CalculatorLayout_1 = require("../../ui-kit/Calculator/CalculatorLayout");
|
|
|
6
6
|
const CalculatorStyle_1 = require("../../ui-kit/Calculator/CalculatorStyle");
|
|
7
7
|
const CalculatorValueBlock_1 = require("../../ui-kit/Calculator/CalculatorValueBlock");
|
|
8
8
|
const renderFootnote_1 = require("../../ui-kit/Calculator/renderFootnote");
|
|
9
|
+
const renderMonthsInput_1 = require("../../ui-kit/Calculator/renderMonthsInput");
|
|
9
10
|
const renderRate_1 = require("../../ui-kit/Calculator/renderRate");
|
|
10
11
|
const renderWantedSumInput_1 = require("../../ui-kit/Calculator/renderWantedSumInput");
|
|
11
12
|
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
12
13
|
const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
|
|
13
14
|
const UniBlock_1 = require("../../UniBlock/UniBlock");
|
|
14
15
|
const style_1 = require("../../utils/style");
|
|
15
|
-
const renderMonthsInput_1 = require("../Calculator/renderMonthsInput");
|
|
16
16
|
const renderPaymentType_1 = require("../Calculator/renderPaymentType");
|
|
17
17
|
const getRefinancingCalculatorParams_1 = require("./getRefinancingCalculatorParams");
|
|
18
18
|
const REFINANCING_OLD_DEFAULT_SUM = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalculatorRefinancing.js","sourceRoot":"","sources":["../../../src/components/CalculatorRefinancing/CalculatorRefinancing.tsx"],"names":[],"mappings":";;;AACA,iDAAwE;AACxE,+EAA4E;
|
|
1
|
+
{"version":3,"file":"CalculatorRefinancing.js","sourceRoot":"","sources":["../../../src/components/CalculatorRefinancing/CalculatorRefinancing.tsx"],"names":[],"mappings":";;;AACA,iDAAwE;AACxE,+EAA4E;AAE5E,6EAA0E;AAC1E,uFAAoF;AACpF,2EAAwE;AACxE,iFAA8E;AAC9E,mEAAgE;AAChE,uFAAoF;AACpF,6DAA0D;AAC1D,uFAAoF;AACpF,sDAAmD;AAEnD,6CAA0C;AAC1C,uEAAoE;AAEpE,qFAI0C;AAE1C,MAAM,2BAA2B,GAAG,CAAC,CAAC;AACtC,MAAM,uBAAuB,GAAG,MAAM,CAAC;AACvC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAMzB,QAAA,qBAAqB,GAAG,IAAA,mBAAQ;AAC3C,kDAAkD;AAClD,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACxF,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,KAAK;QACrB,YAAY,EAAE,KAAK;QACnB,UAAU,EAAE,uBAAuB;QACnC,iBAAiB,EAAE,2BAA2B;QAC9C,WAAW,EAAE,0BAA0B;QACvC,UAAU,EAAE,2BAA2B;KACxC,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,IAAA,+DAA8B,EACrD,eAAe,EACf,UAAU,EACV,kBAAkB,CACnB,CAAC;IAEF,MAAM,kBAAkB,GAAG,IAAA,qCAAiB,EAAC;QAC3C,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,UAAU;QACvB,GAAG,KAAK,CAAC,WAAW,CAAC;KACtB,CAAC,CAAC;IAEH,OAAO,CACL,uBAAC,mCAAgB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I,EAAC,gKAA8B,KAC/B,KAAK,CAAC,aAAa,CAAC,EACxB,KAAK,EAAE,MAAM,CAAC,WAAW,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,mBAAQ,IACP,IAAI,EAAC,sKAA+B,KAChC,KAAK,CAAC,cAAc,CAAC,EACzB,KAAK,EAAE,MAAM,CAAC,YAAY,GAC1B,IACE,CACP,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type TitleProps } from '../../model/HeadlineType';
|
|
3
|
-
import { type CalcSourceProps } from '../../ui-kit/Calculator/CalcSourceProps';
|
|
4
|
-
import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
|
|
1
|
+
import { type CalculatorParamsViewSettingsDefault, type CommonCalculatorProps } from '../../ui-kit/Calculator/CalculatorProps';
|
|
5
2
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
6
3
|
export interface CreditCalculatorParamsViewSettings {
|
|
7
4
|
/** @title Получаю зарплату на счёт в Россельхозбанке */
|
|
@@ -13,16 +10,10 @@ export interface CreditCalculatorParamsViewSettings {
|
|
|
13
10
|
/** @title Комплексная страховая защита */
|
|
14
11
|
isShowInsurance?: boolean;
|
|
15
12
|
}
|
|
16
|
-
export interface RefinancingCalculatorParamsViewSettings {
|
|
17
|
-
/** @title Получаю зарплату на счёт в Россельхозбанке */
|
|
18
|
-
isShowSalaryClient?: boolean;
|
|
19
|
-
/** @title Комплексная страховая защита */
|
|
20
|
-
isShowInsurance?: boolean;
|
|
21
|
-
}
|
|
22
13
|
/**
|
|
23
14
|
* @title Калькулятор рефинансирования
|
|
24
15
|
*/
|
|
25
|
-
export declare type CalculatorRefinancingContent = UniBlockContent &
|
|
16
|
+
export declare type CalculatorRefinancingContent = UniBlockContent & CommonCalculatorProps & {
|
|
26
17
|
/** @title Настройка отображения чекбоксов */
|
|
27
|
-
paramsViewSettings?:
|
|
18
|
+
paramsViewSettings?: CalculatorParamsViewSettingsDefault;
|
|
28
19
|
};
|
package/dist/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
|
|
2
2
|
import { type CommonRefinancingParams, type RefinancingCalculatorUserInputParams } from './getRefinancingCalculatorParams';
|
|
3
3
|
interface CheckSourceBookRowProps {
|
|
4
4
|
row: CommonRefinancingParams;
|
|
5
5
|
userInputParams: RefinancingCalculatorUserInputParams;
|
|
6
|
-
paramsViewSettings?:
|
|
6
|
+
paramsViewSettings?: CalculatorParamsViewSettingsDefault;
|
|
7
7
|
}
|
|
8
8
|
export declare const checkRefinancingSourceBookRowCommonParams: (props: CheckSourceBookRowProps) => boolean;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
|
|
2
2
|
import { type RefinancingCalculatorSourceBookLimitParams, type RefinancingCalculatorUserInputParams } from './getRefinancingCalculatorParams';
|
|
3
3
|
interface GetRefinancingCalculatorLimitParamsProps {
|
|
4
4
|
limitRows: RefinancingCalculatorSourceBookLimitParams[];
|
|
5
5
|
userInputParams: RefinancingCalculatorUserInputParams;
|
|
6
|
-
paramsViewSettings?:
|
|
6
|
+
paramsViewSettings?: CalculatorParamsViewSettingsDefault;
|
|
7
7
|
}
|
|
8
8
|
export declare const getRefinancingCalculatorLimitParams: ({ limitRows, userInputParams, paramsViewSettings, }: GetRefinancingCalculatorLimitParamsProps) => RefinancingCalculatorSourceBookLimitParams | undefined;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
|
|
2
2
|
export interface CommonRefinancingParams {
|
|
3
3
|
isSalaryClient: boolean;
|
|
4
4
|
isInsurance: boolean;
|
|
@@ -40,4 +40,4 @@ export declare type RefinancingCalculatorData = {
|
|
|
40
40
|
rateRows?: RefinancingCalculatorSourceBookRateParams[];
|
|
41
41
|
limitRows?: RefinancingCalculatorSourceBookLimitParams[];
|
|
42
42
|
};
|
|
43
|
-
export declare const getRefinancingCalculatorParams: (userInputParams: RefinancingCalculatorUserInputParams, calcSource?: RefinancingCalculatorData, paramsViewSettings?:
|
|
43
|
+
export declare const getRefinancingCalculatorParams: (userInputParams: RefinancingCalculatorUserInputParams, calcSource?: RefinancingCalculatorData, paramsViewSettings?: CalculatorParamsViewSettingsDefault) => RefinancingCalculatorParams;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRefinancingCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getRefinancingCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts"],"names":[],"mappings":";;AACA,iFAA8E;AAC9E,uEAA2E;AAC3E,+FAA4F;AAC5F,6FAG8C;AAmDvC,MAAM,8BAA8B,GAAG,CAC5C,eAAqD,EACrD,UAAsC,EACtC,kBAAwD,EAC3B,EAAE;IAC/B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC;IACnF,MAAM,QAAQ,GAAG,UAAU,EAAE,QAAQ,IAAI,CAAC,0EAAqC,CAAC,CAAC;IACjF,MAAM,SAAS,GAAG,UAAU,EAAE,SAAS,IAAI,EAAE,CAAC;IAC9C,MAAM,qBAAqB,GAAG,IAAA,yEAAmC,EAAC;QAChE,SAAS;QACT,eAAe;QACf,kBAAkB;KACnB,CAAC,CAAC;IAEH,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kCAAmB,EAC5C,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACpB,qBAAqB,EACrB,QAAQ,CACT,CAAC;IAEF,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAA,kCAAmB,EAClD,CAAC,WAAW,EAAE,WAAW,CAAC,EAC1B,qBAAqB,EACrB,QAAQ,CACT,CAAC;IAEF,MAAM,yCAAyC,GAAG,IAAA,uEAAkC,EAAC;QACnF,QAAQ;QACR,eAAe;QACf,kBAAkB;QAClB,UAAU;QACV,WAAW;QACX,iBAAiB;QACjB,UAAU;KACX,CAAC,CAAC;IACH,MAAM,EAAE,IAAI,EAAE,GAAG,yCAAyC,CAAC;IAC3D,MAAM,cAAc,GAAG,IAAA,qCAAiB,EAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,eAAe,CAAC,iBAAiB,GAAG,cAAc,CAAC;IAEnE,OAAO;QACL,GAAG,yCAAyC;QAC5C,GAAG,eAAe;QAClB,MAAM;QACN,MAAM;QACN,SAAS;QACT,SAAS;QACT,UAAU;QACV,WAAW;QACX,iBAAiB;QACjB,UAAU;QACV,cAAc;QACd,OAAO;KACR,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,8BAA8B,kCAsDzC"}
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
|
|
2
2
|
import { type RefinancingCalculatorSourceBookRateParams, type RefinancingCalculatorUserInputParams } from './getRefinancingCalculatorParams';
|
|
3
|
-
export declare const DEFAULT_MIN_SUM = 10000;
|
|
4
|
-
export declare const DEFAULT_REFINANCING_MIN_MONTHS = 13;
|
|
5
|
-
export declare const DEFAULT_REFINANCING_MONTHS = 48;
|
|
6
|
-
export declare const DEFAULT_MAX_MONTHS = 60;
|
|
7
|
-
export declare const REFINANCING_DEFAULT_SUM = 700000;
|
|
8
|
-
export declare const REFINANCING_DEFAULT_MAX_SUM = 3000000;
|
|
9
|
-
export declare const REFINANCING_OLD_MIN_SUM = 0;
|
|
10
|
-
export declare const REFINANCING_OLD_DEFAULT_SUM = 0;
|
|
11
|
-
export declare const REFINANCING_OLD_MAX_SUM = 2500000;
|
|
12
|
-
export declare const REFINANCING_EXTRA_MIN_SUM = 0;
|
|
13
|
-
export declare const REFINANCING_EXTRA_MAX_SUM = 500000;
|
|
14
3
|
export declare const DEFAULT_REFINANCING_CALCULATOR_PARAMS: RefinancingCalculatorSourceBookRateParams;
|
|
15
4
|
interface GetRefinancingCalculatorRateParamsProps {
|
|
16
5
|
rateRows: RefinancingCalculatorSourceBookRateParams[];
|
|
17
6
|
userInputParams: RefinancingCalculatorUserInputParams;
|
|
18
|
-
paramsViewSettings?:
|
|
7
|
+
paramsViewSettings?: CalculatorParamsViewSettingsDefault;
|
|
19
8
|
moneyValue: number;
|
|
20
9
|
monthsValue: number;
|
|
21
10
|
moneyExtra: number;
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getRefinancingCalculatorRateParams = exports.DEFAULT_REFINANCING_CALCULATOR_PARAMS =
|
|
2
|
+
exports.getRefinancingCalculatorRateParams = exports.DEFAULT_REFINANCING_CALCULATOR_PARAMS = void 0;
|
|
3
|
+
const calculatorConstants_1 = require("../../ui-kit/Calculator/calculatorConstants");
|
|
3
4
|
const rangeHelpers_1 = require("../../ui-kit/Calculator/rangeHelpers");
|
|
4
5
|
const checkRefinancingSourceBookRowCommonParams_1 = require("./checkRefinancingSourceBookRowCommonParams");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.REFINANCING_OLD_DEFAULT_SUM = 0;
|
|
13
|
-
exports.REFINANCING_OLD_MAX_SUM = 2500000;
|
|
14
|
-
exports.REFINANCING_EXTRA_MIN_SUM = 0;
|
|
15
|
-
exports.REFINANCING_EXTRA_MAX_SUM = 500000;
|
|
6
|
+
const DEFAULT_MIN_SUM = 10000;
|
|
7
|
+
const DEFAULT_REFINANCING_MIN_MONTHS = 13;
|
|
8
|
+
const REFINANCING_DEFAULT_MAX_SUM = 3000000;
|
|
9
|
+
const REFINANCING_OLD_MIN_SUM = 0;
|
|
10
|
+
const REFINANCING_OLD_MAX_SUM = 2500000;
|
|
11
|
+
const REFINANCING_EXTRA_MIN_SUM = 0;
|
|
12
|
+
const REFINANCING_EXTRA_MAX_SUM = 500000;
|
|
16
13
|
exports.DEFAULT_REFINANCING_CALCULATOR_PARAMS = {
|
|
17
|
-
minSum:
|
|
18
|
-
maxSum:
|
|
19
|
-
minSumOld:
|
|
20
|
-
maxSumOld:
|
|
21
|
-
minSumExtra:
|
|
22
|
-
maxSumExtra:
|
|
23
|
-
minMonths:
|
|
24
|
-
maxMonths:
|
|
14
|
+
minSum: DEFAULT_MIN_SUM,
|
|
15
|
+
maxSum: REFINANCING_DEFAULT_MAX_SUM,
|
|
16
|
+
minSumOld: REFINANCING_OLD_MIN_SUM,
|
|
17
|
+
maxSumOld: REFINANCING_OLD_MAX_SUM,
|
|
18
|
+
minSumExtra: REFINANCING_EXTRA_MIN_SUM,
|
|
19
|
+
maxSumExtra: REFINANCING_EXTRA_MAX_SUM,
|
|
20
|
+
minMonths: DEFAULT_REFINANCING_MIN_MONTHS,
|
|
21
|
+
maxMonths: calculatorConstants_1.DEFAULT_MAX_MONTHS,
|
|
25
22
|
rate: 0,
|
|
26
23
|
isExtraMoney: false,
|
|
27
24
|
isSalaryClient: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRefinancingCalculatorRateParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.ts"],"names":[],"mappings":";;AAAA,uEAAwE;
|
|
1
|
+
{"version":3,"file":"getRefinancingCalculatorRateParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorRefinancing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a,CAAC,EAAE,GAAG,CAAC;IACjE,IAAA,+BAAgB,EAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,CACjE,IAAI,6CAAqC,CAAC;AApBhC,QAAA,kCAAkC,sCAoBF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
|
|
3
|
+
declare type DepositResultProps = {
|
|
4
|
+
income?: number;
|
|
5
|
+
finalSum?: number;
|
|
6
|
+
buttons?: LinkButtonContent[];
|
|
7
|
+
footnotes?: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const renderDepositResult: ({ income, finalSum, buttons, footnotes, }: DepositResultProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderDepositResult = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const CalculatorStyle_1 = require("../../ui-kit/Calculator/CalculatorStyle");
|
|
5
|
+
const CalculatorValueBlock_1 = require("../../ui-kit/Calculator/CalculatorValueBlock");
|
|
6
|
+
const renderFootnote_1 = require("../../ui-kit/Calculator/renderFootnote");
|
|
7
|
+
const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
|
|
8
|
+
const renderDepositResult = ({ income, finalSum, buttons, footnotes = [], }) => ((0, jsx_runtime_1.jsxs)("div", { className: CalculatorStyle_1.CalculatorStyle.result, children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: true }), footnotes?.map((_) => (_ ? (0, renderFootnote_1.renderFootnote)(_) : null))] }));
|
|
9
|
+
exports.renderDepositResult = renderDepositResult;
|
|
10
|
+
//# sourceMappingURL=renderDepositResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderDepositResult.js","sourceRoot":"","sources":["../../../src/components/Carousel/renderDepositResult.tsx"],"names":[],"mappings":";;;AAAA,6EAA0E;AAC1E,uFAAoF;AACpF,2EAAwE;AAExE,uFAAoF;AAS7E,MAAM,mBAAmB,GAAG,CAAC,EAClC,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,GAAG,EAAE,GACK,EAAE,EAAE,CAAC,CACxB,iCAAK,SAAS,EAAE,iCAAe,CAAC,MAAM,aACpC,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,QAAG,EAAC,MAAM,EAAC,GAAG,GAAG,EAC1F,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,EAChF,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACnD,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,+BAAc,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAClD,CACP,CAAC;AAZW,QAAA,mBAAmB,uBAY9B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type JSONRefObject } from '../../data/JSONRefObject';
|
|
2
|
+
import { type Footnote } from '../../model/Footnote';
|
|
3
|
+
import { type TitleProps } from '../../model/HeadlineType';
|
|
4
|
+
import { type ButtonsSectionContent } from '../LinkButton/ButtonsSectionContent';
|
|
5
|
+
export declare type CalculatorProps = {
|
|
6
|
+
/** @title Данные калькулятора */
|
|
7
|
+
calcSource?: JSONRefObject;
|
|
8
|
+
};
|
|
9
|
+
export interface CalculatorParamsViewSettingsDefault {
|
|
10
|
+
/** @title Получаю зарплату на счёт в Россельхозбанке */
|
|
11
|
+
isShowSalaryClient?: boolean;
|
|
12
|
+
/** @title Комплексная страховая защита */
|
|
13
|
+
isShowInsurance?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface CommonDefaultParams {
|
|
16
|
+
/** @title Сумма по умолчанию */
|
|
17
|
+
sum?: number;
|
|
18
|
+
/** @title Период по умолчанию */
|
|
19
|
+
period?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare type CommonCalculatorProps = TitleProps & Footnote & ButtonsSectionContent & CalculatorProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=CalculatorProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculatorProps.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/CalculatorProps.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.MONTHLY_INTEREST_RATE = exports.MONTHS_IN_YEAR = void 0;
|
|
2
|
+
exports.DEFAULT_MONTHS = exports.DEFAULT_MAX_MONTHS = exports.DEFAULT_MIN_MONTHS = exports.MONTHLY_INTEREST_RATE = exports.MONTHS_IN_YEAR = void 0;
|
|
3
3
|
exports.MONTHS_IN_YEAR = 12;
|
|
4
4
|
exports.MONTHLY_INTEREST_RATE = exports.MONTHS_IN_YEAR * 100;
|
|
5
|
+
exports.DEFAULT_MIN_MONTHS = 1;
|
|
6
|
+
exports.DEFAULT_MAX_MONTHS = 60;
|
|
7
|
+
exports.DEFAULT_MONTHS = Math.round((exports.DEFAULT_MAX_MONTHS - exports.DEFAULT_MIN_MONTHS) / 2);
|
|
5
8
|
//# sourceMappingURL=calculatorConstants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculatorConstants.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/calculatorConstants.tsx"],"names":[],"mappings":";;AAAa,QAAA,cAAc,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"calculatorConstants.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/calculatorConstants.tsx"],"names":[],"mappings":";;AAAa,QAAA,cAAc,GAAG,EAAE,CAAC;AACpB,QAAA,qBAAqB,GAAG,sBAAc,GAAG,GAAG,CAAC;AAC7C,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACvB,QAAA,kBAAkB,GAAG,EAAE,CAAC;AACxB,QAAA,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,0BAAkB,GAAG,0BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type CommonDefaultParams } from './CalculatorProps';
|
|
2
2
|
export declare const getMoneyDefaultValue: (defaultParams?: CommonDefaultParams, defaultMoney?: number) => number;
|
|
3
3
|
export declare const getMonthsDefaultValue: (defaultParams?: CommonDefaultParams, defaultMonth?: number) => number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getMonthsDefaultValue = exports.getMoneyDefaultValue = void 0;
|
|
3
|
-
const
|
|
3
|
+
const calculatorConstants_1 = require("./calculatorConstants");
|
|
4
4
|
const getMoneyDefaultValue = (defaultParams, defaultMoney = 0) => defaultParams?.sum ? defaultParams.sum : defaultMoney;
|
|
5
5
|
exports.getMoneyDefaultValue = getMoneyDefaultValue;
|
|
6
6
|
const getMonthsDefaultValue = (defaultParams, defaultMonth = 0) => defaultParams?.period &&
|
|
7
|
-
defaultParams.period >=
|
|
8
|
-
defaultParams.period <=
|
|
7
|
+
defaultParams.period >= calculatorConstants_1.DEFAULT_MIN_MONTHS &&
|
|
8
|
+
defaultParams.period <= calculatorConstants_1.DEFAULT_MAX_MONTHS
|
|
9
9
|
? defaultParams.period
|
|
10
10
|
: defaultMonth;
|
|
11
11
|
exports.getMonthsDefaultValue = getMonthsDefaultValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultValues.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/getDefaultValues.ts"],"names":[],"mappings":";;AAAA,+DAA+E;AAGxE,MAAM,oBAAoB,GAAG,CAAC,aAAmC,EAAE,YAAY,GAAG,CAAC,EAAE,EAAE,CAC5F,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC;AAD3C,QAAA,oBAAoB,wBACuB;AAEjD,MAAM,qBAAqB,GAAG,CAAC,aAAmC,EAAE,YAAY,GAAG,CAAC,EAAE,EAAE,CAC7F,aAAa,EAAE,MAAM;IACrB,aAAa,CAAC,MAAM,IAAI,wCAAkB;IAC1C,aAAa,CAAC,MAAM,IAAI,wCAAkB;IACxC,CAAC,CAAC,aAAa,CAAC,MAAM;IACtB,CAAC,CAAC,YAAY,CAAC;AALN,QAAA,qBAAqB,yBAKf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderBinaryRadioButtonGroup.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/renderBinaryRadioButtonGroup.tsx"],"names":[],"mappings":";;;AACA,qFAGwD;AACxD,iDAA8C;AAC9C,6CAA0C;AAYnC,MAAM,4BAA4B,GAAG,CAAC,EAC3C,KAAK,EACL,KAAK,EACL,WAAW,GAAG,KAAK,EACnB,W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KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,EACvD,IAAI,EAAE,WAAW,KACb,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,KACpE,IAAI,GACR,CACH,CAAC;AAZW,QAAA,iBAAiB,qBAY5B;AAEF,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type BinaryRadioButtonGroupProps } from './renderBinaryRadioButtonGroup';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const renderPayout: (props: Partial<BinaryRadioButtonGroupProps>) => JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.
|
|
2
|
+
exports.renderPayout = void 0;
|
|
3
3
|
const renderBinaryRadioButtonGroup_1 = require("./renderBinaryRadioButtonGroup");
|
|
4
|
-
const
|
|
4
|
+
const renderPayout = (props) => (0, renderBinaryRadioButtonGroup_1.renderBinaryRadioButtonGroup)({
|
|
5
5
|
...props,
|
|
6
6
|
items: [
|
|
7
7
|
{ id: 'everyMonth', text: 'Ежемесячно' },
|
|
8
8
|
{ id: 'atEndTerm', text: 'В конце срока' },
|
|
9
9
|
],
|
|
10
10
|
});
|
|
11
|
-
exports.
|
|
12
|
-
//# sourceMappingURL=
|
|
11
|
+
exports.renderPayout = renderPayout;
|
|
12
|
+
//# sourceMappingURL=renderPayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderPayout.js","sourceRoot":"","sources":["../../../src/ui-kit/Calculator/renderPayout.tsx"],"names":[],"mappings":";;AAAA,iFAGwC;AAEjC,MAAM,YAAY,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC1E,IAAA,2DAA4B,EAAC;IAC3B,GAAG,KAAK;IACR,KAAK,EAAE;QACL,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE;QACxC,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe,EAAE;KAC3C;CACF,CAAC,CAAC;AAPQ,QAAA,YAAY,gBAOpB"}
|