@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.
Files changed (584) hide show
  1. package/bin/migration-scripts/0.14.325.js +51 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +340 -337
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Calculator/CalculatorContent.d.ts +3 -110
  6. package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
  7. package/bundle/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
  8. package/bundle/components/Calculator/renderPaymentType.d.ts +1 -1
  9. package/bundle/components/Calculator/renderRegistrationType.d.ts +1 -1
  10. package/bundle/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
  11. package/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
  12. package/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
  13. package/bundle/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
  14. package/{lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts → bundle/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
  15. package/bundle/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
  16. package/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
  17. package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
  18. package/bundle/components/{Calculator → CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
  19. package/bundle/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
  20. package/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
  21. package/bundle/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
  22. package/bundle/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
  23. package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
  24. package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
  25. package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
  26. package/bundle/components/Carousel/renderDepositResult.d.ts +10 -0
  27. package/bundle/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
  28. package/bundle/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
  29. package/{dist/components → bundle/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
  30. package/bundle/{components/Calculator/renderInterestPayment.d.ts → ui-kit/Calculator/renderPayout.d.ts} +1 -1
  31. package/cosmos-static/icons/RustoreIcon.svg +1 -1
  32. package/cosmos-static/icons/sprites.svg +1 -1
  33. package/dist/components/Blocks.js +4 -0
  34. package/dist/components/Blocks.js.map +1 -1
  35. package/dist/components/Blocks.mobile.js +4 -0
  36. package/dist/components/Blocks.mobile.js.map +1 -1
  37. package/dist/components/Calculator/CalculatorContent.d.ts +3 -110
  38. package/dist/components/Calculator/CreditCalculatorForm.js +6 -5
  39. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  40. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
  41. package/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -4
  42. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  43. package/dist/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
  44. package/dist/components/Calculator/getCreditCalculatorParams.js +16 -3
  45. package/dist/components/Calculator/getCreditCalculatorParams.js.map +1 -1
  46. package/dist/components/Calculator/getCreditCalculatorRateParams.js +2 -2
  47. package/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
  48. package/dist/components/Calculator/renderPaymentType.d.ts +1 -1
  49. package/dist/components/Calculator/renderPaymentType.js +1 -1
  50. package/dist/components/Calculator/renderPaymentType.js.map +1 -1
  51. package/dist/components/Calculator/renderRegistrationType.d.ts +1 -1
  52. package/dist/components/Calculator/renderRegistrationType.js +1 -1
  53. package/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  54. package/dist/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
  55. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
  56. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +60 -0
  57. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
  58. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
  59. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
  60. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
  61. package/dist/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
  62. package/dist/components/CalculatorBusinessDeposit/renderDaysInput.js +9 -0
  63. package/dist/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
  64. package/{mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts → dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
  65. package/dist/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +25 -10
  66. package/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
  67. package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
  68. package/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
  69. package/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
  70. package/dist/components/CalculatorDeposit/CalculatorDeposit.js +68 -0
  71. package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
  72. package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
  73. package/dist/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
  74. package/dist/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
  75. package/{lib/components/Calculator → dist/components/CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
  76. package/{mobile/dist/components/Calculator → dist/components/CalculatorDeposit}/getDepositCalculatorParams.js +11 -3
  77. package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
  78. package/dist/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
  79. package/dist/components/CalculatorDeposit/renderPaymentType.js +13 -0
  80. package/dist/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
  81. package/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
  82. package/dist/components/CalculatorDeposit/renderRegistrationType.js +12 -0
  83. package/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
  84. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  85. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  86. package/dist/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
  87. package/dist/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
  88. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
  89. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
  90. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  91. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
  92. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +17 -20
  93. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
  94. package/dist/components/Carousel/renderDepositResult.d.ts +10 -0
  95. package/dist/components/Carousel/renderDepositResult.js +10 -0
  96. package/dist/components/Carousel/renderDepositResult.js.map +1 -0
  97. package/dist/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
  98. package/dist/ui-kit/Calculator/{CalcSourceProps.js → CalculatorProps.js} +1 -1
  99. package/dist/ui-kit/Calculator/CalculatorProps.js.map +1 -0
  100. package/dist/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
  101. package/dist/ui-kit/Calculator/calculatorConstants.js +4 -1
  102. package/dist/ui-kit/Calculator/calculatorConstants.js.map +1 -1
  103. package/{lib/components → dist/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
  104. package/dist/{components → ui-kit}/Calculator/getDefaultValues.js +3 -3
  105. package/dist/ui-kit/Calculator/getDefaultValues.js.map +1 -0
  106. package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  107. package/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
  108. package/{mobile/dist/components/Calculator/renderInterestPayment.d.ts → dist/ui-kit/Calculator/renderPayout.d.ts} +1 -1
  109. package/{mobile/dist/components/Calculator/renderInterestPayment.js → dist/ui-kit/Calculator/renderPayout.js} +4 -4
  110. package/dist/ui-kit/Calculator/renderPayout.js.map +1 -0
  111. package/lib/common.css +1 -1
  112. package/lib/components/Blocks.js +4 -0
  113. package/lib/components/Blocks.js.map +1 -1
  114. package/lib/components/Blocks.mobile.js +4 -0
  115. package/lib/components/Blocks.mobile.js.map +1 -1
  116. package/lib/components/Calculator/Calculator.fixture.d.ts +0 -1
  117. package/lib/components/Calculator/Calculator.fixture.mobile.d.ts +0 -2
  118. package/lib/components/Calculator/CalculatorContent.d.ts +3 -110
  119. package/lib/components/Calculator/CreditCalculatorForm.js +4 -3
  120. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  121. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
  122. package/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -4
  123. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  124. package/lib/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
  125. package/lib/components/Calculator/getCreditCalculatorParams.js +14 -1
  126. package/lib/components/Calculator/getCreditCalculatorParams.js.map +1 -1
  127. package/lib/components/Calculator/getCreditCalculatorRateParams.js +1 -1
  128. package/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
  129. package/lib/components/Calculator/renderDaysInput.d.ts +1 -0
  130. package/lib/components/Calculator/renderPaymentType.d.ts +1 -1
  131. package/lib/components/Calculator/renderPaymentType.js +1 -1
  132. package/lib/components/Calculator/renderPaymentType.js.map +1 -1
  133. package/lib/components/Calculator/renderRegistrationType.d.ts +2 -1
  134. package/lib/components/Calculator/renderRegistrationType.js +1 -1
  135. package/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  136. package/lib/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
  137. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
  138. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.d.ts +6 -0
  139. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.mobile.d.ts +6 -0
  140. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +58 -0
  141. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
  142. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
  143. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
  144. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
  145. package/lib/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +2 -0
  146. package/lib/components/CalculatorBusinessDeposit/renderDaysInput.js +6 -0
  147. package/lib/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
  148. package/{dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts → lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
  149. package/lib/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +18 -3
  150. package/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
  151. package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
  152. package/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
  153. package/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
  154. package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.d.ts +6 -0
  155. package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.mobile.d.ts +6 -0
  156. package/lib/components/CalculatorDeposit/CalculatorDeposit.js +66 -0
  157. package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
  158. package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
  159. package/lib/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
  160. package/lib/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
  161. package/{mobile/bundle/components/Calculator → lib/components/CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
  162. package/{mobile/lib/components/Calculator → lib/components/CalculatorDeposit}/getDepositCalculatorParams.js +9 -1
  163. package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
  164. package/lib/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
  165. package/lib/components/CalculatorDeposit/renderPaymentType.js +10 -0
  166. package/lib/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
  167. package/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +2 -0
  168. package/lib/components/CalculatorDeposit/renderRegistrationType.js +9 -0
  169. package/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
  170. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.fixture.mobile.d.ts +6 -0
  171. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  172. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  173. package/lib/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
  174. package/lib/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
  175. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
  176. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
  177. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  178. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
  179. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +8 -11
  180. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
  181. package/lib/components/Carousel/renderDepositResult.d.ts +9 -0
  182. package/lib/components/Carousel/renderDepositResult.js +7 -0
  183. package/lib/components/Carousel/renderDepositResult.js.map +1 -0
  184. package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +1 -0
  185. package/lib/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
  186. package/lib/ui-kit/Calculator/CalculatorProps.js +2 -0
  187. package/lib/ui-kit/Calculator/CalculatorProps.js.map +1 -0
  188. package/lib/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
  189. package/lib/ui-kit/Calculator/calculatorConstants.js +3 -0
  190. package/lib/ui-kit/Calculator/calculatorConstants.js.map +1 -1
  191. package/{mobile/bundle/components → lib/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
  192. package/lib/{components → ui-kit}/Calculator/getDefaultValues.js +1 -1
  193. package/lib/ui-kit/Calculator/getDefaultValues.js.map +1 -0
  194. package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  195. package/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
  196. package/lib/ui-kit/Calculator/renderPayout.d.ts +2 -0
  197. package/lib/{components/Calculator/renderInterestPayment.js → ui-kit/Calculator/renderPayout.js} +2 -2
  198. package/lib/ui-kit/Calculator/renderPayout.js.map +1 -0
  199. package/mobile/bundle/bundle.umd.js +349 -346
  200. package/mobile/bundle/bundle.umd.min.js +1 -1
  201. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +3 -110
  202. package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
  203. package/mobile/bundle/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
  204. package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +1 -1
  205. package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +1 -1
  206. package/mobile/bundle/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
  207. package/mobile/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
  208. package/mobile/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
  209. package/mobile/bundle/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
  210. package/{bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts → mobile/bundle/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts} +5 -4
  211. package/mobile/bundle/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
  212. package/mobile/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
  213. package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
  214. package/{dist/components/Calculator → mobile/bundle/components/CalculatorDeposit}/getDepositCalculatorParams.d.ts +2 -2
  215. package/mobile/bundle/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
  216. package/mobile/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
  217. package/mobile/bundle/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
  218. package/mobile/bundle/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
  219. package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
  220. package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
  221. package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
  222. package/mobile/bundle/components/Carousel/renderDepositResult.d.ts +10 -0
  223. package/mobile/bundle/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
  224. package/mobile/bundle/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
  225. package/{bundle/components → mobile/bundle/ui-kit}/Calculator/getDefaultValues.d.ts +1 -1
  226. package/{dist/components/Calculator/renderInterestPayment.d.ts → mobile/bundle/ui-kit/Calculator/renderPayout.d.ts} +1 -1
  227. package/mobile/dist/components/Blocks.js +4 -0
  228. package/mobile/dist/components/Blocks.js.map +1 -1
  229. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +3 -110
  230. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +6 -5
  231. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  232. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
  233. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +0 -4
  234. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  235. package/mobile/dist/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
  236. package/mobile/dist/components/Calculator/getCreditCalculatorParams.js +16 -3
  237. package/mobile/dist/components/Calculator/getCreditCalculatorParams.js.map +1 -1
  238. package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js +2 -2
  239. package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
  240. package/mobile/dist/components/Calculator/renderPaymentType.d.ts +1 -1
  241. package/mobile/dist/components/Calculator/renderPaymentType.js +1 -1
  242. package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -1
  243. package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +1 -1
  244. package/mobile/dist/components/Calculator/renderRegistrationType.js +1 -1
  245. package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -1
  246. package/mobile/dist/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
  247. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
  248. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +60 -0
  249. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
  250. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
  251. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
  252. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
  253. package/mobile/dist/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
  254. package/mobile/dist/components/CalculatorBusinessDeposit/renderDaysInput.js +9 -0
  255. package/mobile/dist/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
  256. package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +26 -0
  257. package/mobile/dist/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +25 -10
  258. package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
  259. package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
  260. package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
  261. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
  262. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +68 -0
  263. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
  264. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
  265. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
  266. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
  267. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +26 -0
  268. package/{dist/components/Calculator → mobile/dist/components/CalculatorDeposit}/getDepositCalculatorParams.js +11 -3
  269. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
  270. package/mobile/dist/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
  271. package/mobile/dist/components/CalculatorDeposit/renderPaymentType.js +13 -0
  272. package/mobile/dist/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
  273. package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
  274. package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js +12 -0
  275. package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
  276. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  277. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  278. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
  279. package/mobile/dist/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
  280. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
  281. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
  282. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  283. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
  284. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +17 -20
  285. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
  286. package/mobile/dist/components/Carousel/renderDepositResult.d.ts +10 -0
  287. package/mobile/dist/components/Carousel/renderDepositResult.js +10 -0
  288. package/mobile/dist/components/Carousel/renderDepositResult.js.map +1 -0
  289. package/mobile/dist/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
  290. package/mobile/dist/ui-kit/Calculator/{CalcSourceProps.js → CalculatorProps.js} +1 -1
  291. package/mobile/dist/ui-kit/Calculator/CalculatorProps.js.map +1 -0
  292. package/mobile/dist/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
  293. package/mobile/dist/ui-kit/Calculator/calculatorConstants.js +4 -1
  294. package/mobile/dist/ui-kit/Calculator/calculatorConstants.js.map +1 -1
  295. package/mobile/dist/ui-kit/Calculator/getDefaultValues.d.ts +3 -0
  296. package/mobile/dist/{components → ui-kit}/Calculator/getDefaultValues.js +3 -3
  297. package/mobile/dist/ui-kit/Calculator/getDefaultValues.js.map +1 -0
  298. package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  299. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
  300. package/mobile/{bundle/components/Calculator/renderInterestPayment.d.ts → dist/ui-kit/Calculator/renderPayout.d.ts} +1 -1
  301. package/{dist/components/Calculator/renderInterestPayment.js → mobile/dist/ui-kit/Calculator/renderPayout.js} +4 -4
  302. package/mobile/dist/ui-kit/Calculator/renderPayout.js.map +1 -0
  303. package/mobile/lib/common.css +1 -1
  304. package/mobile/lib/components/Blocks.js +4 -0
  305. package/mobile/lib/components/Blocks.js.map +1 -1
  306. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +3 -110
  307. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -3
  308. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  309. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +1 -5
  310. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +0 -4
  311. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  312. package/mobile/lib/components/Calculator/getCreditCalculatorParams.d.ts +1 -0
  313. package/mobile/lib/components/Calculator/getCreditCalculatorParams.js +14 -1
  314. package/mobile/lib/components/Calculator/getCreditCalculatorParams.js.map +1 -1
  315. package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js +1 -1
  316. package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -1
  317. package/mobile/lib/components/Calculator/renderPaymentType.d.ts +1 -1
  318. package/mobile/lib/components/Calculator/renderPaymentType.js +1 -1
  319. package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -1
  320. package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +1 -1
  321. package/mobile/lib/components/Calculator/renderRegistrationType.js +1 -1
  322. package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -1
  323. package/mobile/lib/components/CalculatorBonus/CalculatorBonusContent.d.ts +2 -5
  324. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.d.ts +5 -0
  325. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +58 -0
  326. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -0
  327. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +52 -0
  328. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js +2 -0
  329. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.js.map +1 -0
  330. package/mobile/lib/components/CalculatorBusinessDeposit/renderDaysInput.d.ts +3 -0
  331. package/mobile/lib/components/CalculatorBusinessDeposit/renderDaysInput.js +6 -0
  332. package/mobile/lib/components/CalculatorBusinessDeposit/renderDaysInput.js.map +1 -0
  333. package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +26 -0
  334. package/mobile/lib/components/{Calculator/useBusinessDepositCalculatorParams.js → CalculatorBusinessDeposit/useBusinessDepositParams.js} +18 -3
  335. package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -0
  336. package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.d.ts +4 -0
  337. package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositRates.js.map +1 -0
  338. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +9 -0
  339. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +66 -0
  340. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -0
  341. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +29 -0
  342. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.js +2 -0
  343. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.js.map +1 -0
  344. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +26 -0
  345. package/{lib/components/Calculator → mobile/lib/components/CalculatorDeposit}/getDepositCalculatorParams.js +9 -1
  346. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -0
  347. package/mobile/lib/components/CalculatorDeposit/renderPaymentType.d.ts +3 -0
  348. package/mobile/lib/components/CalculatorDeposit/renderPaymentType.js +10 -0
  349. package/mobile/lib/components/CalculatorDeposit/renderPaymentType.js.map +1 -0
  350. package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +3 -0
  351. package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js +9 -0
  352. package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -0
  353. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  354. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  355. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancingContent.d.ts +3 -12
  356. package/mobile/lib/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.d.ts +2 -2
  357. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.d.ts +2 -2
  358. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +2 -2
  359. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  360. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.d.ts +2 -13
  361. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js +8 -11
  362. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.js.map +1 -1
  363. package/mobile/lib/components/Carousel/renderDepositResult.d.ts +10 -0
  364. package/mobile/lib/components/Carousel/renderDepositResult.js +7 -0
  365. package/mobile/lib/components/Carousel/renderDepositResult.js.map +1 -0
  366. package/mobile/lib/ui-kit/Calculator/CalculatorProps.d.ts +21 -0
  367. package/mobile/lib/ui-kit/Calculator/CalculatorProps.js +2 -0
  368. package/mobile/lib/ui-kit/Calculator/CalculatorProps.js.map +1 -0
  369. package/mobile/lib/ui-kit/Calculator/calculatorConstants.d.ts +3 -0
  370. package/mobile/lib/ui-kit/Calculator/calculatorConstants.js +3 -0
  371. package/mobile/lib/ui-kit/Calculator/calculatorConstants.js.map +1 -1
  372. package/mobile/lib/ui-kit/Calculator/getDefaultValues.d.ts +3 -0
  373. package/mobile/lib/{components → ui-kit}/Calculator/getDefaultValues.js +1 -1
  374. package/mobile/lib/ui-kit/Calculator/getDefaultValues.js.map +1 -0
  375. package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -0
  376. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -0
  377. package/mobile/lib/ui-kit/Calculator/renderPayout.d.ts +3 -0
  378. package/mobile/lib/{components/Calculator/renderInterestPayment.js → ui-kit/Calculator/renderPayout.js} +2 -2
  379. package/mobile/lib/ui-kit/Calculator/renderPayout.js.map +1 -0
  380. package/mobile/src/components/Blocks.ts +4 -0
  381. package/mobile/src/components/Calculator/CalculatorContent.ts +7 -130
  382. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +8 -3
  383. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +1 -11
  384. package/mobile/src/components/Calculator/getCreditCalculatorParams.ts +19 -1
  385. package/mobile/src/components/Calculator/getCreditCalculatorRateParams.ts +1 -1
  386. package/mobile/src/components/Calculator/renderPaymentType.tsx +1 -1
  387. package/mobile/src/components/Calculator/renderRegistrationType.tsx +1 -1
  388. package/mobile/src/components/CalculatorBonus/CalculatorBonusContent.ts +2 -9
  389. package/{src/components/Calculator/BusinessDepositCalculatorForm.tsx → mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx} +51 -49
  390. package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.ui.json +22 -0
  391. package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +63 -0
  392. package/mobile/src/components/CalculatorBusinessDeposit/renderDaysInput.tsx +14 -0
  393. package/mobile/src/components/{Calculator/useBusinessDepositCalculatorParams.ts → CalculatorBusinessDeposit/useBusinessDepositParams.ts} +26 -17
  394. package/mobile/src/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.ts +5 -5
  395. package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +125 -0
  396. package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +36 -0
  397. package/mobile/src/components/{Calculator → CalculatorDeposit}/getDepositCalculatorParams.ts +12 -3
  398. package/mobile/src/components/CalculatorDeposit/renderPaymentType.tsx +14 -0
  399. package/mobile/src/components/CalculatorDeposit/renderRegistrationType.tsx +13 -0
  400. package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +4 -6
  401. package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancingContent.ts +6 -16
  402. package/mobile/src/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.ts +2 -2
  403. package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.ts +2 -2
  404. package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +2 -2
  405. package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.ts +10 -13
  406. package/mobile/src/components/Carousel/renderDepositResult.tsx +26 -0
  407. package/mobile/src/icons/RustoreIcon.svg +2 -3
  408. package/mobile/src/ui-kit/Calculator/CalculatorProps.ts +25 -0
  409. package/mobile/src/ui-kit/Calculator/calculatorConstants.tsx +3 -1
  410. package/mobile/src/{components → ui-kit}/Calculator/getDefaultValues.ts +2 -2
  411. package/mobile/src/{components/Calculator/renderInterestPayment.tsx → ui-kit/Calculator/renderPayout.tsx} +1 -1
  412. package/package.json +1 -1
  413. package/src/components/Blocks.mobile.ts +4 -0
  414. package/src/components/Blocks.ts +4 -0
  415. package/src/components/Calculator/Calculator.fixture.mobile.tsx +0 -34
  416. package/src/components/Calculator/Calculator.fixture.tsx +1 -68
  417. package/src/components/Calculator/CalculatorContent.ts +7 -130
  418. package/src/components/Calculator/CreditCalculatorForm.tsx +8 -3
  419. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +1 -11
  420. package/src/components/Calculator/getCreditCalculatorParams.ts +19 -1
  421. package/src/components/Calculator/getCreditCalculatorRateParams.ts +1 -1
  422. package/src/components/Calculator/renderPaymentType.tsx +1 -1
  423. package/src/components/Calculator/renderRegistrationType.tsx +1 -1
  424. package/src/components/CalculatorBonus/CalculatorBonusContent.ts +2 -9
  425. package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.mobile.tsx +39 -0
  426. package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.tsx +39 -0
  427. package/{mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx → src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx} +51 -49
  428. package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.ui.json +22 -0
  429. package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +63 -0
  430. package/src/components/CalculatorBusinessDeposit/renderDaysInput.tsx +14 -0
  431. package/src/components/{Calculator/useBusinessDepositCalculatorParams.ts → CalculatorBusinessDeposit/useBusinessDepositParams.ts} +26 -17
  432. package/src/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.ts +5 -5
  433. package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.mobile.tsx +41 -0
  434. package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.tsx +41 -0
  435. package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +125 -0
  436. package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +36 -0
  437. package/src/components/{Calculator → CalculatorDeposit}/getDepositCalculatorParams.ts +12 -3
  438. package/src/components/CalculatorDeposit/renderPaymentType.tsx +14 -0
  439. package/src/components/CalculatorDeposit/renderRegistrationType.tsx +13 -0
  440. package/src/components/CalculatorRefinancing/CalculatorRefinancing.fixture.mobile.tsx +35 -0
  441. package/src/components/CalculatorRefinancing/CalculatorRefinancing.fixture.tsx +1 -1
  442. package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +4 -6
  443. package/src/components/CalculatorRefinancing/CalculatorRefinancingContent.ts +6 -16
  444. package/src/components/CalculatorRefinancing/checkRefinancingSourceBookRowCommonParams.ts +2 -2
  445. package/src/components/CalculatorRefinancing/getRefinancingCalculatorLimitParams.ts +2 -2
  446. package/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +2 -2
  447. package/src/components/CalculatorRefinancing/getRefinancingCalculatorRateParams.ts +10 -13
  448. package/src/components/Carousel/renderDepositResult.tsx +26 -0
  449. package/src/components/TabsLayout/TabsLayout.fixture.tsx +32 -0
  450. package/src/icons/RustoreIcon.svg +2 -3
  451. package/src/ui-kit/Calculator/CalculatorProps.ts +25 -0
  452. package/src/ui-kit/Calculator/calculatorConstants.tsx +3 -1
  453. package/src/{components → ui-kit}/Calculator/getDefaultValues.ts +2 -2
  454. package/src/{components/Calculator/renderInterestPayment.tsx → ui-kit/Calculator/renderPayout.tsx} +1 -1
  455. package/bundle/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
  456. package/bundle/components/Calculator/DepositCalculatorForm.d.ts +0 -8
  457. package/bundle/components/Calculator/constants.d.ts +0 -24
  458. package/bundle/components/Calculator/useBusinessDepositRates.d.ts +0 -4
  459. package/bundle/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
  460. package/dist/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
  461. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +0 -55
  462. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
  463. package/dist/components/Calculator/DepositCalculatorForm.d.ts +0 -8
  464. package/dist/components/Calculator/DepositCalculatorForm.js +0 -69
  465. package/dist/components/Calculator/DepositCalculatorForm.js.map +0 -1
  466. package/dist/components/Calculator/constants.d.ts +0 -24
  467. package/dist/components/Calculator/constants.js +0 -52
  468. package/dist/components/Calculator/constants.js.map +0 -1
  469. package/dist/components/Calculator/getDefaultValues.js.map +0 -1
  470. package/dist/components/Calculator/getDepositCalculatorParams.js.map +0 -1
  471. package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
  472. package/dist/components/Calculator/renderInterestPayment.js.map +0 -1
  473. package/dist/components/Calculator/renderMonthsInput.js.map +0 -1
  474. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
  475. package/dist/components/Calculator/useBusinessDepositRates.d.ts +0 -4
  476. package/dist/components/Calculator/useBusinessDepositRates.js.map +0 -1
  477. package/dist/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
  478. package/dist/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
  479. package/lib/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
  480. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +0 -53
  481. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
  482. package/lib/components/Calculator/DepositCalculatorForm.d.ts +0 -8
  483. package/lib/components/Calculator/DepositCalculatorForm.js +0 -67
  484. package/lib/components/Calculator/DepositCalculatorForm.js.map +0 -1
  485. package/lib/components/Calculator/constants.d.ts +0 -24
  486. package/lib/components/Calculator/constants.js +0 -50
  487. package/lib/components/Calculator/constants.js.map +0 -1
  488. package/lib/components/Calculator/getDefaultValues.js.map +0 -1
  489. package/lib/components/Calculator/getDepositCalculatorParams.js.map +0 -1
  490. package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
  491. package/lib/components/Calculator/renderInterestPayment.d.ts +0 -2
  492. package/lib/components/Calculator/renderInterestPayment.js.map +0 -1
  493. package/lib/components/Calculator/renderMonthsInput.js.map +0 -1
  494. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
  495. package/lib/components/Calculator/useBusinessDepositRates.d.ts +0 -4
  496. package/lib/components/Calculator/useBusinessDepositRates.js.map +0 -1
  497. package/lib/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
  498. package/lib/ui-kit/Calculator/CalcSourceProps.js +0 -2
  499. package/lib/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
  500. package/mobile/bundle/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
  501. package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +0 -8
  502. package/mobile/bundle/components/Calculator/constants.d.ts +0 -24
  503. package/mobile/bundle/components/Calculator/useBusinessDepositRates.d.ts +0 -4
  504. package/mobile/bundle/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
  505. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
  506. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +0 -55
  507. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
  508. package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +0 -8
  509. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +0 -69
  510. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +0 -1
  511. package/mobile/dist/components/Calculator/constants.d.ts +0 -24
  512. package/mobile/dist/components/Calculator/constants.js +0 -52
  513. package/mobile/dist/components/Calculator/constants.js.map +0 -1
  514. package/mobile/dist/components/Calculator/getDefaultValues.d.ts +0 -3
  515. package/mobile/dist/components/Calculator/getDefaultValues.js.map +0 -1
  516. package/mobile/dist/components/Calculator/getDepositCalculatorParams.d.ts +0 -26
  517. package/mobile/dist/components/Calculator/getDepositCalculatorParams.js.map +0 -1
  518. package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
  519. package/mobile/dist/components/Calculator/renderInterestPayment.js.map +0 -1
  520. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +0 -1
  521. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -25
  522. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
  523. package/mobile/dist/components/Calculator/useBusinessDepositRates.d.ts +0 -4
  524. package/mobile/dist/components/Calculator/useBusinessDepositRates.js.map +0 -1
  525. package/mobile/dist/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
  526. package/mobile/dist/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
  527. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.d.ts +0 -5
  528. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +0 -53
  529. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +0 -1
  530. package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +0 -8
  531. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +0 -67
  532. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +0 -1
  533. package/mobile/lib/components/Calculator/constants.d.ts +0 -24
  534. package/mobile/lib/components/Calculator/constants.js +0 -50
  535. package/mobile/lib/components/Calculator/constants.js.map +0 -1
  536. package/mobile/lib/components/Calculator/getDefaultValues.d.ts +0 -3
  537. package/mobile/lib/components/Calculator/getDefaultValues.js.map +0 -1
  538. package/mobile/lib/components/Calculator/getDepositCalculatorParams.d.ts +0 -26
  539. package/mobile/lib/components/Calculator/getDepositCalculatorParams.js.map +0 -1
  540. package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +0 -1
  541. package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +0 -3
  542. package/mobile/lib/components/Calculator/renderInterestPayment.js.map +0 -1
  543. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +0 -1
  544. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -25
  545. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +0 -1
  546. package/mobile/lib/components/Calculator/useBusinessDepositRates.d.ts +0 -4
  547. package/mobile/lib/components/Calculator/useBusinessDepositRates.js.map +0 -1
  548. package/mobile/lib/ui-kit/Calculator/CalcSourceProps.d.ts +0 -5
  549. package/mobile/lib/ui-kit/Calculator/CalcSourceProps.js +0 -2
  550. package/mobile/lib/ui-kit/Calculator/CalcSourceProps.js.map +0 -1
  551. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +0 -119
  552. package/mobile/src/components/Calculator/constants.ts +0 -58
  553. package/mobile/src/ui-kit/Calculator/CalcSourceProps.ts +0 -6
  554. package/src/components/Calculator/DepositCalculatorForm.tsx +0 -119
  555. package/src/components/Calculator/constants.ts +0 -58
  556. package/src/ui-kit/Calculator/CalcSourceProps.ts +0 -6
  557. /package/bundle/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
  558. /package/bundle/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
  559. /package/dist/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
  560. /package/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
  561. /package/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
  562. /package/dist/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
  563. /package/dist/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
  564. /package/lib/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
  565. /package/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
  566. /package/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
  567. /package/lib/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
  568. /package/lib/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
  569. /package/mobile/bundle/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
  570. /package/mobile/bundle/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
  571. /package/mobile/dist/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
  572. /package/mobile/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
  573. /package/mobile/dist/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
  574. /package/mobile/dist/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
  575. /package/mobile/dist/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
  576. /package/mobile/lib/components/{Calculator → CalculatorBusinessDeposit}/useBusinessDepositRates.js +0 -0
  577. /package/mobile/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.d.ts +0 -0
  578. /package/mobile/lib/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.js +0 -0
  579. /package/mobile/lib/{components → ui-kit}/Calculator/renderMonthsInput.d.ts +0 -0
  580. /package/mobile/lib/{components → ui-kit}/Calculator/renderMonthsInput.js +0 -0
  581. /package/mobile/src/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.tsx +0 -0
  582. /package/mobile/src/{components → ui-kit}/Calculator/renderMonthsInput.tsx +0 -0
  583. /package/src/{components → ui-kit}/Calculator/renderBinaryRadioButtonGroup.tsx +0 -0
  584. /package/src/{components → ui-kit}/Calculator/renderMonthsInput.tsx +0 -0
@@ -0,0 +1,35 @@
1
+ import '../../setup-fixture';
2
+ import { CalculatorRefinancing } from './CalculatorRefinancing';
3
+ import { type CalculatorRefinancingContent } from './CalculatorRefinancingContent';
4
+
5
+ const REFINANCING_CALCULATOR_BLOCK: CalculatorRefinancingContent = {
6
+ paramsViewSettings: {
7
+ isShowSalaryClient: true,
8
+ isShowInsurance: true,
9
+ },
10
+ buttons: [
11
+ {
12
+ href: 'https://rshb.ru',
13
+ text: 'Отправить заявку',
14
+ target: '_blank',
15
+ version: 'primary',
16
+ },
17
+ ],
18
+ footnote:
19
+ 'Расчёт является предварительным. Точные условия будут предоставлены в отделении Банка.',
20
+ calcSource: {
21
+ $ref: '/wcms-resources/refinancing-calculator-data.json',
22
+ },
23
+ };
24
+
25
+ export default {
26
+ default: (
27
+ <div className="container grid grid-cols-12">
28
+ <CalculatorRefinancing
29
+ className="col-span-12"
30
+ title="Калькулятор рефинансирования"
31
+ {...REFINANCING_CALCULATOR_BLOCK}
32
+ />
33
+ </div>
34
+ ),
35
+ };
@@ -27,7 +27,7 @@ export default {
27
27
  <div className="container grid grid-cols-12">
28
28
  <CalculatorRefinancing
29
29
  className="col-span-12"
30
- title="Рефинансирование"
30
+ title="Калькулятор рефинансирования"
31
31
  {...REFINANCING_CALCULATOR_BLOCK}
32
32
  />
33
33
  </div>
@@ -1,9 +1,11 @@
1
1
  import { type JSONRefObject } from '../../data/JSONRefObject';
2
2
  import { useForm, type FormFieldRegisterer } from '../../hooks/useForm';
3
3
  import { CalculatorLayout } from '../../ui-kit/Calculator/CalculatorLayout';
4
+ import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
4
5
  import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle';
5
6
  import { CalculatorValueBlock } from '../../ui-kit/Calculator/CalculatorValueBlock';
6
7
  import { renderFootnote } from '../../ui-kit/Calculator/renderFootnote';
8
+ import { renderMonthsInput } from '../../ui-kit/Calculator/renderMonthsInput';
7
9
  import { renderRate } from '../../ui-kit/Calculator/renderRate';
8
10
  import { renderWantedSumInput } from '../../ui-kit/Calculator/renderWantedSumInput';
9
11
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
@@ -11,12 +13,8 @@ import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSecti
11
13
  import { UniBlock } from '../../UniBlock/UniBlock';
12
14
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
13
15
  import { style } from '../../utils/style';
14
- import { renderMonthsInput } from '../Calculator/renderMonthsInput';
15
16
  import { renderPaymentType } from '../Calculator/renderPaymentType';
16
- import {
17
- type CalculatorRefinancingContent,
18
- type RefinancingCalculatorParamsViewSettings,
19
- } from './CalculatorRefinancingContent';
17
+ import { type CalculatorRefinancingContent } from './CalculatorRefinancingContent';
20
18
  import {
21
19
  getRefinancingCalculatorParams,
22
20
  type RefinancingCalculatorData,
@@ -128,7 +126,7 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
128
126
  );
129
127
 
130
128
  const renderCreditParamsForm = (
131
- params: RefinancingCalculatorParams & RefinancingCalculatorParamsViewSettings,
129
+ params: RefinancingCalculatorParams & CalculatorParamsViewSettingsDefault,
132
130
  field: FormFieldRegisterer<any>,
133
131
  ) => (
134
132
  <div className="space-y-lg sm:space-y-s">
@@ -1,7 +1,7 @@
1
- import { type Footnote } from '../../model/Footnote';
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 {
2
+ type CalculatorParamsViewSettingsDefault,
3
+ type CommonCalculatorProps,
4
+ } from '../../ui-kit/Calculator/CalculatorProps';
5
5
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
6
6
 
7
7
  export interface CreditCalculatorParamsViewSettings {
@@ -15,21 +15,11 @@ export interface CreditCalculatorParamsViewSettings {
15
15
  isShowInsurance?: boolean;
16
16
  }
17
17
 
18
- export interface RefinancingCalculatorParamsViewSettings {
19
- /** @title Получаю зарплату на счёт в Россельхозбанке */
20
- isShowSalaryClient?: boolean;
21
- /** @title Комплексная страховая защита */
22
- isShowInsurance?: boolean;
23
- }
24
-
25
18
  /**
26
19
  * @title Калькулятор рефинансирования
27
20
  */
28
21
  export type CalculatorRefinancingContent = UniBlockContent &
29
- TitleProps &
30
- Footnote &
31
- CalcSourceProps &
32
- ButtonsSectionContent & {
22
+ CommonCalculatorProps & {
33
23
  /** @title Настройка отображения чекбоксов */
34
- paramsViewSettings?: RefinancingCalculatorParamsViewSettings;
24
+ paramsViewSettings?: CalculatorParamsViewSettingsDefault;
35
25
  };
@@ -1,4 +1,4 @@
1
- import { type RefinancingCalculatorParamsViewSettings } from './CalculatorRefinancingContent';
1
+ import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
2
2
  import {
3
3
  type CommonRefinancingParams,
4
4
  type RefinancingCalculatorUserInputParams,
@@ -7,7 +7,7 @@ import {
7
7
  interface CheckSourceBookRowProps {
8
8
  row: CommonRefinancingParams;
9
9
  userInputParams: RefinancingCalculatorUserInputParams;
10
- paramsViewSettings?: RefinancingCalculatorParamsViewSettings;
10
+ paramsViewSettings?: CalculatorParamsViewSettingsDefault;
11
11
  }
12
12
 
13
13
  interface CheckSourceBookRowFieldProps extends CheckSourceBookRowProps {
@@ -1,4 +1,4 @@
1
- import { type RefinancingCalculatorParamsViewSettings } from './CalculatorRefinancingContent';
1
+ import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
2
2
  import { checkRefinancingSourceBookRowCommonParams } from './checkRefinancingSourceBookRowCommonParams';
3
3
  import {
4
4
  type RefinancingCalculatorSourceBookLimitParams,
@@ -8,7 +8,7 @@ import {
8
8
  interface GetRefinancingCalculatorLimitParamsProps {
9
9
  limitRows: RefinancingCalculatorSourceBookLimitParams[];
10
10
  userInputParams: RefinancingCalculatorUserInputParams;
11
- paramsViewSettings?: RefinancingCalculatorParamsViewSettings;
11
+ paramsViewSettings?: CalculatorParamsViewSettingsDefault;
12
12
  }
13
13
 
14
14
  export const getRefinancingCalculatorLimitParams = ({
@@ -1,6 +1,6 @@
1
+ import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
1
2
  import { getMonthlyPayment } from '../../ui-kit/Calculator/getMonthlyPayment';
2
3
  import { getLimitRangeByKeys } from '../../ui-kit/Calculator/rangeHelpers';
3
- import { type RefinancingCalculatorParamsViewSettings } from './CalculatorRefinancingContent';
4
4
  import { getRefinancingCalculatorLimitParams } from './getRefinancingCalculatorLimitParams';
5
5
  import {
6
6
  DEFAULT_REFINANCING_CALCULATOR_PARAMS,
@@ -59,7 +59,7 @@ export type RefinancingCalculatorData = {
59
59
  export const getRefinancingCalculatorParams = (
60
60
  userInputParams: RefinancingCalculatorUserInputParams,
61
61
  calcSource?: RefinancingCalculatorData,
62
- paramsViewSettings?: RefinancingCalculatorParamsViewSettings,
62
+ paramsViewSettings?: CalculatorParamsViewSettingsDefault,
63
63
  ): RefinancingCalculatorParams => {
64
64
  const { moneyValue, monthsValue, oldMonthlyPayment, moneyExtra } = userInputParams;
65
65
  const rateRows = calcSource?.rateRows || [DEFAULT_REFINANCING_CALCULATOR_PARAMS];
@@ -1,22 +1,19 @@
1
+ import { DEFAULT_MAX_MONTHS } from '../../ui-kit/Calculator/calculatorConstants';
2
+ import { type CalculatorParamsViewSettingsDefault } from '../../ui-kit/Calculator/CalculatorProps';
1
3
  import { checkRangeByKeys } from '../../ui-kit/Calculator/rangeHelpers';
2
- import { type RefinancingCalculatorParamsViewSettings } from './CalculatorRefinancingContent';
3
4
  import { checkRefinancingSourceBookRowCommonParams } from './checkRefinancingSourceBookRowCommonParams';
4
5
  import {
5
6
  type RefinancingCalculatorSourceBookRateParams,
6
7
  type RefinancingCalculatorUserInputParams,
7
8
  } from './getRefinancingCalculatorParams';
8
9
 
9
- export const DEFAULT_MIN_SUM = 10000;
10
- export const DEFAULT_REFINANCING_MIN_MONTHS = 13;
11
- export const DEFAULT_REFINANCING_MONTHS = 48;
12
- export const DEFAULT_MAX_MONTHS = 60;
13
- export const REFINANCING_DEFAULT_SUM = 700000;
14
- export const REFINANCING_DEFAULT_MAX_SUM = 3000000;
15
- export const REFINANCING_OLD_MIN_SUM = 0;
16
- export const REFINANCING_OLD_DEFAULT_SUM = 0;
17
- export const REFINANCING_OLD_MAX_SUM = 2500000;
18
- export const REFINANCING_EXTRA_MIN_SUM = 0;
19
- export const REFINANCING_EXTRA_MAX_SUM = 500000;
10
+ const DEFAULT_MIN_SUM = 10000;
11
+ const DEFAULT_REFINANCING_MIN_MONTHS = 13;
12
+ const REFINANCING_DEFAULT_MAX_SUM = 3000000;
13
+ const REFINANCING_OLD_MIN_SUM = 0;
14
+ const REFINANCING_OLD_MAX_SUM = 2500000;
15
+ const REFINANCING_EXTRA_MIN_SUM = 0;
16
+ const REFINANCING_EXTRA_MAX_SUM = 500000;
20
17
 
21
18
  export const DEFAULT_REFINANCING_CALCULATOR_PARAMS: RefinancingCalculatorSourceBookRateParams = {
22
19
  minSum: DEFAULT_MIN_SUM,
@@ -36,7 +33,7 @@ export const DEFAULT_REFINANCING_CALCULATOR_PARAMS: RefinancingCalculatorSourceB
36
33
  interface GetRefinancingCalculatorRateParamsProps {
37
34
  rateRows: RefinancingCalculatorSourceBookRateParams[];
38
35
  userInputParams: RefinancingCalculatorUserInputParams;
39
- paramsViewSettings?: RefinancingCalculatorParamsViewSettings;
36
+ paramsViewSettings?: CalculatorParamsViewSettingsDefault;
40
37
  moneyValue: number;
41
38
  monthsValue: number;
42
39
  moneyExtra: number;
@@ -0,0 +1,26 @@
1
+ import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle';
2
+ import { CalculatorValueBlock } from '../../ui-kit/Calculator/CalculatorValueBlock';
3
+ import { renderFootnote } from '../../ui-kit/Calculator/renderFootnote';
4
+ import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
5
+ import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
6
+
7
+ type DepositResultProps = {
8
+ income?: number;
9
+ finalSum?: number;
10
+ buttons?: LinkButtonContent[];
11
+ footnotes?: string[];
12
+ };
13
+
14
+ export const renderDepositResult = ({
15
+ income,
16
+ finalSum,
17
+ buttons,
18
+ footnotes = [],
19
+ }: DepositResultProps) => (
20
+ <div className={CalculatorStyle.result}>
21
+ <CalculatorValueBlock title="Доход в конце срока" value={income} postfix="₽" prefix="+" />
22
+ <CalculatorValueBlock title="Сумма в конце срока" value={finalSum} postfix="₽" />
23
+ {renderButtonsSection(buttons, { isVertical: true })}
24
+ {footnotes?.map((_) => (_ ? renderFootnote(_) : null))}
25
+ </div>
26
+ );
@@ -22,6 +22,22 @@ const TABS: Tab[] = [
22
22
  selected: false,
23
23
  },
24
24
  ];
25
+ const TabsWithIcon: Tab[] = [
26
+ {
27
+ type: 'group',
28
+ description: 'Описание первого таба',
29
+ text: 'Первый таб',
30
+ selected: false,
31
+ icon: { icon: 'CalendarIcon' },
32
+ },
33
+ {
34
+ type: 'group',
35
+ description: 'Описание второго таба',
36
+ text: 'Второй таб',
37
+ selected: false,
38
+ icon: { icon: 'BankIcon' },
39
+ },
40
+ ];
25
41
 
26
42
  const TEXT_BLOCK_DESCRIPTION = {
27
43
  type: 'TextBlock',
@@ -81,4 +97,20 @@ export default {
81
97
  />
82
98
  </div>
83
99
  ),
100
+ icons: (
101
+ <div className="container grid grid-cols-12">
102
+ <TabsLayout
103
+ className="col-span-12"
104
+ tabs={TabsWithIcon}
105
+ tabsType="animated"
106
+ options={options}
107
+ block={{
108
+ slots: {
109
+ 'Первый таб': [TEXT_BLOCK_DESCRIPTION, TEXT_BLOCK_DESCRIPTION],
110
+ 'Второй таб': [TEXT_BLOCK_DESCRIPTION],
111
+ },
112
+ }}
113
+ />
114
+ </div>
115
+ ),
84
116
  };
@@ -1,4 +1,3 @@
1
- <svg title="Лого «Rustore»" isInverse="true" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M1.49708 19.5238C2.99422 21 5.40383 21 10.2231 21H11.0749C15.8942 21 18.3038 21 19.8009 19.5238C21.298 18.0477 21.298 15.6718 21.298 10.92V10.08C21.298 5.32819 21.298 2.95232 19.8009 1.47613C18.3038 0 15.8942 0 11.0749 0H10.2231C5.40383 0 2.99422 0 1.49708 1.47613C5.67572e-07 2.95232 0 5.32819 0 10.08V10.92C0 15.6718 5.67572e-07 18.0477 1.49708 19.5238Z" fill="currentColor"/>
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M16.4426 13.958L15.0035 13.6035C14.8302 13.5544 14.7079 13.4007 14.7017 13.2221L14.5221 7.99963C14.4702 7.30843 13.9498 6.75864 13.406 6.59676C13.3755 6.58766 13.3428 6.59992 13.3247 6.6258C13.3064 6.65217 13.3135 6.68859 13.3391 6.70811C13.4734 6.81066 13.843 7.14513 13.843 7.72206L13.8419 14.5502C13.8419 15.2095 13.2101 15.6931 12.5583 15.5326L11.097 15.1726C10.935 15.1168 10.8224 14.968 10.8165 14.7963L10.637 9.57354C10.585 8.88235 10.0646 8.33261 9.52084 8.17067C9.49031 8.16163 9.45769 8.17383 9.4396 8.19972C9.42127 8.22608 9.42835 8.26251 9.45394 8.28208C9.58827 8.38457 9.95785 8.71904 9.95785 9.29597L9.95678 14.9876L9.95761 14.9877V16.1248C9.95761 16.7841 9.32569 17.2677 8.67395 17.1071L4.54646 16.0905C3.97263 15.9492 3.57031 15.4431 3.57031 14.8626V8.02373C3.57031 7.36444 4.20217 6.88088 4.85391 7.04139L7.45468 7.682V6.44917C7.45468 5.78987 8.08655 5.30626 8.73829 5.46683L11.3389 6.10738V4.87454C11.3389 4.21524 11.9707 3.73163 12.6225 3.8922L16.75 4.90882C17.3239 5.05017 17.7262 5.55628 17.7262 6.13678V12.9756C17.7262 13.6349 17.0943 14.1185 16.4426 13.958Z" fill="white"/>
1
+ <svg title="Лого «Rustore»" isInverse="true" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21.0051 17.7304L18.7687 17.143C18.4993 17.0618 18.3091 16.8071 18.2996 16.511L18.0205 7.85741C17.9397 6.71209 17.131 5.80108 16.2859 5.53284C16.2384 5.51775 16.1877 5.53807 16.1596 5.58097C16.131 5.62465 16.1421 5.685 16.1819 5.71735C16.3907 5.88726 16.965 6.44149 16.965 7.39746L16.9634 18.7118C16.9634 19.8043 15.9814 20.6055 14.9685 20.3396L12.6974 19.7431C12.4457 19.6505 12.2707 19.404 12.2615 19.1196L11.9825 10.4654C11.9017 9.32007 11.093 8.40916 10.2479 8.14083C10.2004 8.12584 10.1497 8.14605 10.1216 8.18895C10.0931 8.23264 10.1041 8.29299 10.1439 8.32544C10.3527 8.49525 10.927 9.04947 10.927 10.0055L10.9254 19.4366L10.9267 19.4367V21.3209C10.9267 22.4134 9.94459 23.2147 8.9317 22.9486L2.51706 21.2641C1.62525 21.0299 1 20.1913 1 19.2294V7.89735C1 6.80488 1.98199 6.00363 2.99488 6.2696L7.0368 7.3311V5.28827C7.0368 4.19581 8.0188 3.39446 9.03168 3.66053L13.0733 4.72193V2.6791C13.0733 1.58664 14.0553 0.78529 15.0683 1.05135L21.4829 2.73591C22.3748 2.97012 23 3.80875 23 4.77064V16.1027C23 17.1951 22.018 17.9964 21.0051 17.7304Z" fill="currentColor"/>
4
3
  </svg>
@@ -0,0 +1,25 @@
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
+
6
+ export type CalculatorProps = {
7
+ /** @title Данные калькулятора */
8
+ calcSource?: JSONRefObject;
9
+ };
10
+
11
+ export interface CalculatorParamsViewSettingsDefault {
12
+ /** @title Получаю зарплату на счёт в Россельхозбанке */
13
+ isShowSalaryClient?: boolean;
14
+ /** @title Комплексная страховая защита */
15
+ isShowInsurance?: boolean;
16
+ }
17
+
18
+ export interface CommonDefaultParams {
19
+ /** @title Сумма по умолчанию */
20
+ sum?: number;
21
+ /** @title Период по умолчанию */
22
+ period?: number;
23
+ }
24
+
25
+ export type CommonCalculatorProps = TitleProps & Footnote & ButtonsSectionContent & CalculatorProps;
@@ -1,3 +1,5 @@
1
1
  export const MONTHS_IN_YEAR = 12;
2
-
3
2
  export const MONTHLY_INTEREST_RATE = MONTHS_IN_YEAR * 100;
3
+ export const DEFAULT_MIN_MONTHS = 1;
4
+ export const DEFAULT_MAX_MONTHS = 60;
5
+ export const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS - DEFAULT_MIN_MONTHS) / 2);
@@ -1,5 +1,5 @@
1
- import type { CommonDefaultParams } from './CalculatorContent';
2
- import { DEFAULT_MAX_MONTHS, DEFAULT_MIN_MONTHS } from './constants';
1
+ import { DEFAULT_MAX_MONTHS, DEFAULT_MIN_MONTHS } from './calculatorConstants';
2
+ import { type CommonDefaultParams } from './CalculatorProps';
3
3
 
4
4
  export const getMoneyDefaultValue = (defaultParams?: CommonDefaultParams, defaultMoney = 0) =>
5
5
  defaultParams?.sum ? defaultParams.sum : defaultMoney;
@@ -3,7 +3,7 @@ import {
3
3
  type BinaryRadioButtonGroupProps,
4
4
  } from './renderBinaryRadioButtonGroup';
5
5
 
6
- export const renderInterestPayment = (props: Partial<BinaryRadioButtonGroupProps>) =>
6
+ export const renderPayout = (props: Partial<BinaryRadioButtonGroupProps>) =>
7
7
  renderBinaryRadioButtonGroup({
8
8
  ...props,
9
9
  items: [
@@ -1,5 +0,0 @@
1
- import { type BusinessDepositCalculatorProps } from './CalculatorContent';
2
- export interface BusinessDepositCalculatorProp extends BusinessDepositCalculatorProps {
3
- className?: string;
4
- }
5
- export declare const BusinessDepositCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<BusinessDepositCalculatorProp, any, any>;
@@ -1,8 +0,0 @@
1
- import { type JSONRefObject } from '../../data/JSONRefObject';
2
- import { type DepositCalculatorProps } from './CalculatorContent';
3
- import { type DepositCalculatorData } from './getDepositCalculatorParams';
4
- export interface DepositCalculatorProp extends DepositCalculatorProps {
5
- className?: string;
6
- calcSource?: DepositCalculatorData & JSONRefObject;
7
- }
8
- export declare const DepositCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<DepositCalculatorProp, any, any>;
@@ -1,24 +0,0 @@
1
- import { type CreditCalculatorSourceBookRateParams } from './getCreditCalculatorParams';
2
- import { type DepositCalculatorSourceBookParams } from './getDepositCalculatorParams';
3
- import { type BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
4
- export declare const DEFAULT_MIN_SUM = 10000;
5
- export declare const DEFAULT_MAX_SUM = 5000000;
6
- export declare const CREDIT_DEFAULT_SUM = 200000;
7
- export declare const DEPOSIT_DEFAULT_SUM = 20000;
8
- export declare const DEFAULT_MIN_MONTHS = 1;
9
- export declare const DEFAULT_MAX_MONTHS = 60;
10
- export declare const DEFAULT_MONTHS: number;
11
- export declare const BUSINESS_DEFAULT_SUM = 100000;
12
- export declare const BUSINESS_MIN_DAYS = 1;
13
- export declare const BUSINESS_MAX_DAYS = 1095;
14
- export declare const BUSINESS_RATE_MIN_DAYS = 30;
15
- export declare const BUSINESS_OPERATING_MIN_DAYS = 90;
16
- export declare const BUSINESS_OPERATING_MAX_DAYS = 730;
17
- export declare const BUSINESS_DEFAULT_DAYS = 60;
18
- export declare const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookRateParams;
19
- export declare const DEFAULT_DEPOSIT_CALCULATOR_PARAMS: DepositCalculatorSourceBookParams;
20
- export declare const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS: BusinessDepositCalculatorSourceBookParams;
21
- export declare const CREDIT_CALC_DEFAULT_DIR = "credit-calculator-data";
22
- export declare const DEPOSIT_CALC_DEFAULT_DIR = "deposit-calculator-data";
23
- export declare const BUSINESS_DEPOSIT_CALC_DEFAULT_DIR = "business-calculator-data";
24
- export declare const REFINANCING_CALC_DEFAULT_DIR = "refinancing-calculator-data";
@@ -1,4 +0,0 @@
1
- import { type RateParamsDef } from './CalculatorContent';
2
- import { type BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
3
- export declare type BusinessDepositCalculatorData = BusinessDepositCalculatorSourceBookParams[];
4
- export declare function useBusinessDepositRates(rateParams?: RateParamsDef): BusinessDepositCalculatorData;
@@ -1,5 +0,0 @@
1
- import { type JSONRefObject } from '../../data/JSONRefObject';
2
- export declare type CalcSourceProps = {
3
- /** @title Данные калькулятора */
4
- calcSource?: JSONRefObject;
5
- };
@@ -1,5 +0,0 @@
1
- import { type BusinessDepositCalculatorProps } from './CalculatorContent';
2
- export interface BusinessDepositCalculatorProp extends BusinessDepositCalculatorProps {
3
- className?: string;
4
- }
5
- export declare const BusinessDepositCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<BusinessDepositCalculatorProp, any, any>;
@@ -1,55 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.BusinessDepositCalculatorForm = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const useForm_1 = require("../../hooks/useForm");
6
- const CalculatorValueBlock_1 = require("../../ui-kit/Calculator/CalculatorValueBlock");
7
- const renderFootnote_1 = require("../../ui-kit/Calculator/renderFootnote");
8
- const renderRate_1 = require("../../ui-kit/Calculator/renderRate");
9
- const renderWantedSumInput_1 = require("../../ui-kit/Calculator/renderWantedSumInput");
10
- const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
11
- const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
12
- const Text_1 = require("../../ui-kit/Text/Text");
13
- const CalculatorFormLayout_1 = require("./CalculatorFormLayout");
14
- const constants_1 = require("./constants");
15
- const getDefaultValues_1 = require("./getDefaultValues");
16
- const renderDaysInput_1 = require("./renderDaysInput");
17
- const renderInterestPayment_1 = require("./renderInterestPayment");
18
- const useBusinessDepositCalculatorParams_1 = require("./useBusinessDepositCalculatorParams");
19
- exports.BusinessDepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', buttons, footnote, bottomFootnote, isShowDepositeName, defaultParams, rateParams, }) => {
20
- const [userInputParams, { field }] = (0, useForm_1.useForm)({
21
- moneyValue: (0, getDefaultValues_1.getMoneyDefaultValue)(defaultParams, constants_1.BUSINESS_DEFAULT_SUM),
22
- daysValue: (0, getDefaultValues_1.getMonthsDefaultValue)(defaultParams, constants_1.BUSINESS_DEFAULT_DAYS),
23
- isReplenished: Boolean(defaultParams?.isReplenished),
24
- isPartialWithdrawal: Boolean(defaultParams?.isPartialWithdrawal),
25
- isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
26
- });
27
- const calculatorParams = (0, useBusinessDepositCalculatorParams_1.useBusinessDepositCalculatorParams)(userInputParams, rateParams);
28
- const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
29
- return ((0, jsx_runtime_1.jsx)(CalculatorFormLayout_1.CalculatorFormLayout, { className: className, inputChildren: (0, jsx_runtime_1.jsxs)("div", { children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
30
- title: 'Сумма, ₽',
31
- min: calculatorParams.minSum,
32
- max: calculatorParams.maxSum,
33
- ...field('moneyValue'),
34
- value: calculatorParams.moneyValue,
35
- }), (0, renderDaysInput_1.renderDaysInput)({
36
- title: 'Срок, дней',
37
- min: calculatorParams.minDays,
38
- max: calculatorParams.maxDays,
39
- ...field('daysValue'),
40
- value: calculatorParams.daysValue,
41
- }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), (0, renderInterestPayment_1.renderInterestPayment)({
42
- title: 'Выплата процентов',
43
- orientation: 'vertical',
44
- ...field('isMonthlyInterestPayment'),
45
- radioGroupClassName: 'sm:flex-col',
46
- })] })] }), rateChildren: (0, renderRate_1.renderRate)({
47
- rate,
48
- depositeName,
49
- isShowDepositeName,
50
- isUnavailableByTerm,
51
- }), resultChildren: (0, jsx_runtime_1.jsxs)("div", { children: [renderDepositResults(finalSum, income), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote), (0, renderFootnote_1.renderFootnote)(bottomFootnote)] }) }));
52
- });
53
- const renderBusinessDepositParamsForm = (calculatorParams, field) => ((0, jsx_runtime_1.jsxs)("div", { className: "space-y-s", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), (0, jsx_runtime_1.jsx)(Checkbox_1.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 })] })] }));
54
- const renderDepositResults = (finalSum, income) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2xl sm:gap-0 mb-lg", 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" })] }));
55
- //# sourceMappingURL=BusinessDepositCalculatorForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BusinessDepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BusinessDepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAAwE;AACxE,uFAAoF;AACpF,2EAAwE;AACxE,mEAAgE;AAChE,uFAAoF;AACpF,6DAA0D;AAC1D,uFAAoF;AACpF,iDAA8C;AAE9C,iEAA8D;AAC9D,2CAA0E;AAC1E,yDAAiF;AACjF,uDAAoD;AACpD,mEAAgE;AAChE,6FAI8C;AAMjC,QAAA,6BAA6B,GAAG,IAAA,aAAG,EAC9C,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,UAAU,GACX,EAAE,EAAE;IACH,MAAM,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC;QAC3C,UAAU,EAAE,IAAA,uCAAoB,EAAC,aAAa,EAAE,gCAAoB,CAAC;QACrE,SAAS,EAAE,IAAA,wCAAqB,EAAC,aAAa,EAAE,iCAAqB,CAAC;QACtE,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,aAAa,CAAC;QACpD,mBAAmB,EAAE,OAAO,CAAC,aAAa,EAAE,mBAAmB,CAAC;QAChE,wBAAwB,EAAE,OAAO,CAAC,aAAa,EAAE,wBAAwB,CAAC;KAC3E,CAAC,CAAC;IACH,MAAM,gBAAgB,GAAG,IAAA,uEAAkC,EAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IACzF,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,mBAAmB,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAAC;IAEvF,OAAO,CACL,uBAAC,2CAAoB,IACnB,SAAS,EAAE,SAAS,EACpB,aAAa,EACX,4CACG,IAAA,2CAAoB,EAAC;oBACpB,KAAK,EAAE,UAAU;oBACjB,GAAG,EAAE,gBAAgB,CAAC,MAAM;oBAC5B,GAAG,EAAE,gBAAgB,CAAC,MAAM;oBAC5B,GAAG,KAAK,CAAC,YAAY,CAAC;oBACtB,KAAK,EAAE,gBAAgB,CAAC,UAAU;iBACnC,CAAC,EACD,IAAA,iCAAe,EAAC;oBACf,KAAK,EAAE,YAAY;oBACnB,GAAG,EAAE,gBAAgB,CAAC,OAAO;oBAC7B,GAAG,EAAE,gBAAgB,CAAC,OAAO;oBAC7B,GAAG,KAAK,CAAC,WAAW,CAAC;oBACrB,KAAK,EAAE,gBAAgB,CAAC,SAAS;iBAClC,CAAC,EACF,iCAAK,SAAS,EAAC,4CAA4C,aACxD,+BAA+B,CAAC,gBAAgB,EAAE,KAAK,CAAC,EACxD,IAAA,6CAAqB,EAAC;4BACrB,KAAK,EAAE,mBAAmB;4BAC1B,WAAW,EAAE,UAAU;4BACvB,GAAG,KAAK,CAAC,0BAA0B,CAAC;4BACpC,mBAAmB,EAAE,aAAa;yBACnC,CAAC,IACE,IACF,EAER,YAAY,EAAE,IAAA,uBAAU,EAAC;YACvB,IAAI;YACJ,YAAY;YACZ,kBAAkB;YAClB,mBAAmB;SACpB,CAAC,EACF,cAAc,EACZ,4CACG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,CAAC,EACtC,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACnD,IAAA,+BAAc,EAAC,QAAQ,CAAC,EACxB,IAAA,+BAAc,EAAC,cAAc,CAAC,IAC3B,GAER,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,+BAA+B,GAAG,CACtC,gBAAiD,EACjD,KAAoE,EACpE,EAAE,CAAC,CACH,iCAAK,SAAS,EAAC,WAAW,aACxB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,uEAE5C,EACP,iCAAK,SAAS,EAAC,mCAAmC,aAChD,uBAAC,mBAAQ,IACP,IAAI,EAAC,8DAAY,EACjB,QAAQ,EAAE,gBAAgB,CAAC,0BAA0B,KACjD,KAAK,CAAC,eAAe,CAAC,EAC1B,KAAK,EAAE,gBAAgB,CAAC,aAAa,GACrC,EACF,uBAAC,mBAAQ,IACP,QAAQ,EAAE,gBAAgB,CAAC,0BAA0B,EACrD,IAAI,EAAC,6FAAkB,KACnB,KAAK,CAAC,qBAAqB,CAAC,EAChC,KAAK,EAAE,gBAAgB,CAAC,mBAAmB,GAC3C,IACE,IACF,CACP,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,QAAiB,EAAE,MAAe,EAAE,EAAE,CAAC,CACnE,iCAAK,SAAS,EAAC,sCAAsC,aACnD,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,IAC7E,CACP,CAAC"}
@@ -1,8 +0,0 @@
1
- import { type JSONRefObject } from '../../data/JSONRefObject';
2
- import { type DepositCalculatorProps } from './CalculatorContent';
3
- import { type DepositCalculatorData } from './getDepositCalculatorParams';
4
- export interface DepositCalculatorProp extends DepositCalculatorProps {
5
- className?: string;
6
- calcSource?: DepositCalculatorData & JSONRefObject;
7
- }
8
- export declare const DepositCalculatorForm: import("@redneckz/uni-jsx").UNIComponent<DepositCalculatorProp, any, any>;
@@ -1,69 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.DepositCalculatorForm = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
- const useForm_1 = require("../../hooks/useForm");
7
- const CalculatorValueBlock_1 = require("../../ui-kit/Calculator/CalculatorValueBlock");
8
- const renderFootnote_1 = require("../../ui-kit/Calculator/renderFootnote");
9
- const renderRate_1 = require("../../ui-kit/Calculator/renderRate");
10
- const renderWantedSumInput_1 = require("../../ui-kit/Calculator/renderWantedSumInput");
11
- const renderButtonsSection_1 = require("../../ui-kit/LinkButton/renderButtonsSection");
12
- const clamp_1 = require("../../utils/clamp");
13
- const CalculatorFormLayout_1 = require("./CalculatorFormLayout");
14
- const constants_1 = require("./constants");
15
- const getDefaultValues_1 = require("./getDefaultValues");
16
- const getDepositCalculatorParams_1 = require("./getDepositCalculatorParams");
17
- const renderInterestPayment_1 = require("./renderInterestPayment");
18
- const renderMonthsInput_1 = require("./renderMonthsInput");
19
- const renderRegistrationType_1 = require("./renderRegistrationType");
20
- exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)((props) => {
21
- const { className, calcSource, buttons, footnote, paramsViewSettings, defaultParams } = props;
22
- const [userInputParams, { field }] = (0, useForm_1.useForm)({
23
- moneyValue: (0, getDefaultValues_1.getMoneyDefaultValue)(defaultParams, constants_1.DEPOSIT_DEFAULT_SUM),
24
- monthsValue: (0, getDefaultValues_1.getMonthsDefaultValue)(defaultParams),
25
- isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
26
- isRemoteRegistration: Boolean(defaultParams?.isRemoteRegistration),
27
- });
28
- const calculatorParams = (0, getDepositCalculatorParams_1.getDepositCalculatorParams)(userInputParams, calcSource, paramsViewSettings);
29
- const { defaultMonth, rate, income, finalSum } = calculatorParams;
30
- const { onChange: setMonthsValue } = field('monthsValue');
31
- const { onChange: setMoneyValue } = field('moneyValue');
32
- (0, hooks_1.useEffect)(() => {
33
- !userInputParams.monthsValue && setMonthsValue && setMonthsValue(defaultMonth);
34
- }, [defaultMonth]);
35
- (0, hooks_1.useEffect)(() => {
36
- setMoneyValue &&
37
- setMoneyValue((0, clamp_1.clamp)(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
38
- }, [calculatorParams.minSum, calculatorParams.maxSum]);
39
- return ((0, jsx_runtime_1.jsx)(CalculatorFormLayout_1.CalculatorFormLayout, { className: className, inputChildren: (0, jsx_runtime_1.jsxs)("div", { children: [(0, renderWantedSumInput_1.renderWantedSumInput)({
40
- title: 'Сумма, ₽',
41
- min: calculatorParams.minSum,
42
- max: calculatorParams.maxSum,
43
- ...field('moneyValue'),
44
- value: calculatorParams.moneyValue,
45
- }), (0, renderMonthsInput_1.renderMonthsInput)({
46
- title: 'Срок, месяцев',
47
- min: calculatorParams.minMonths,
48
- max: calculatorParams.maxMonths,
49
- availableMonths: calculatorParams.availableMonths,
50
- ...field('monthsValue'),
51
- value: calculatorParams.monthsValue,
52
- }), renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field)] }), rateChildren: (0, renderRate_1.renderRate)({
53
- rate,
54
- }), resultChildren: (0, jsx_runtime_1.jsxs)("div", { 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 }), (0, renderFootnote_1.renderFootnote)(footnote)] }) }));
55
- });
56
- const renderDepositParamsForm = (params, field) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
57
- ? (0, renderInterestPayment_1.renderInterestPayment)({
58
- title: 'Выплата процентов',
59
- ...field('isMonthlyInterestPayment'),
60
- value: params.isMonthlyInterestPayment,
61
- })
62
- : null, params.isShowRemoteRegistration
63
- ? (0, renderRegistrationType_1.renderRegistrationType)({
64
- title: 'Оформление',
65
- ...field('isRemoteRegistration'),
66
- value: params.isRemoteRegistration,
67
- })
68
- : null] }));
69
- //# sourceMappingURL=DepositCalculatorForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":"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"}
@@ -1,24 +0,0 @@
1
- import { type CreditCalculatorSourceBookRateParams } from './getCreditCalculatorParams';
2
- import { type DepositCalculatorSourceBookParams } from './getDepositCalculatorParams';
3
- import { type BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
4
- export declare const DEFAULT_MIN_SUM = 10000;
5
- export declare const DEFAULT_MAX_SUM = 5000000;
6
- export declare const CREDIT_DEFAULT_SUM = 200000;
7
- export declare const DEPOSIT_DEFAULT_SUM = 20000;
8
- export declare const DEFAULT_MIN_MONTHS = 1;
9
- export declare const DEFAULT_MAX_MONTHS = 60;
10
- export declare const DEFAULT_MONTHS: number;
11
- export declare const BUSINESS_DEFAULT_SUM = 100000;
12
- export declare const BUSINESS_MIN_DAYS = 1;
13
- export declare const BUSINESS_MAX_DAYS = 1095;
14
- export declare const BUSINESS_RATE_MIN_DAYS = 30;
15
- export declare const BUSINESS_OPERATING_MIN_DAYS = 90;
16
- export declare const BUSINESS_OPERATING_MAX_DAYS = 730;
17
- export declare const BUSINESS_DEFAULT_DAYS = 60;
18
- export declare const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookRateParams;
19
- export declare const DEFAULT_DEPOSIT_CALCULATOR_PARAMS: DepositCalculatorSourceBookParams;
20
- export declare const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS: BusinessDepositCalculatorSourceBookParams;
21
- export declare const CREDIT_CALC_DEFAULT_DIR = "credit-calculator-data";
22
- export declare const DEPOSIT_CALC_DEFAULT_DIR = "deposit-calculator-data";
23
- export declare const BUSINESS_DEPOSIT_CALC_DEFAULT_DIR = "business-calculator-data";
24
- export declare const REFINANCING_CALC_DEFAULT_DIR = "refinancing-calculator-data";