@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
@@ -1,4 +1,4 @@
1
- import { renderBinaryRadioButtonGroup, } from './renderBinaryRadioButtonGroup.js';
1
+ import { renderBinaryRadioButtonGroup, } from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup.js';
2
2
  export const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
3
3
  ...props,
4
4
  radioGroupClassName: 'sm:flex-col',
@@ -1 +1 @@
1
- {"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAE7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC/E,4BAA4B,CAAC;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"}
1
+ {"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAE7B,MAAM,sDAAsD,CAAC;AAE9D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC/E,4BAA4B,CAAC;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"}
@@ -1,2 +1,3 @@
1
- import { type BinaryRadioButtonGroupProps } from './renderBinaryRadioButtonGroup';
1
+ /// <reference types="react" />
2
+ import { type BinaryRadioButtonGroupProps } from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup';
2
3
  export declare const renderRegistrationType: (props: Partial<BinaryRadioButtonGroupProps>) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { renderBinaryRadioButtonGroup, } from './renderBinaryRadioButtonGroup.js';
1
+ import { renderBinaryRadioButtonGroup, } from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup.js';
2
2
  export const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
3
3
  ...props,
4
4
  items: [
@@ -1 +1 @@
1
- {"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRegistrationType.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAE7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAA2C,EAAE,EAAE,CACpF,4BAA4B,CAAC;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"}
1
+ {"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRegistrationType.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAE7B,MAAM,sDAAsD,CAAC;AAE9D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAA2C,EAAE,EAAE,CACpF,4BAA4B,CAAC;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"}
@@ -1,9 +1,6 @@
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 { type CommonCalculatorProps } from '../../ui-kit/Calculator/CalculatorProps';
5
2
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
6
3
  /**
7
4
  * @title Калькулятор бонусов
8
5
  */
9
- export declare type CalculatorBonusContent = UniBlockContent & TitleProps & Footnote & CalcSourceProps & ButtonsSectionContent;
6
+ export declare type CalculatorBonusContent = UniBlockContent & CommonCalculatorProps;
@@ -0,0 +1,5 @@
1
+ import { type CalculatorBusinessDepositContent, type CalculatorBusinessDepositProps } from './CalculatorBusinessDepositContent';
2
+ export interface CalculatorBusinessDepositProp extends CalculatorBusinessDepositProps, CalculatorBusinessDepositContent {
3
+ className?: string;
4
+ }
5
+ export declare const CalculatorBusinessDeposit: import("../../UniBlock/UniBlock").UniBlockComponent<CalculatorBusinessDepositProp>;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import '../../setup-fixture';
3
+ declare const _default: {
4
+ default: JSX.Element;
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import '../../setup-fixture';
3
+ declare const _default: {
4
+ default: JSX.Element;
5
+ };
6
+ export default _default;
@@ -0,0 +1,58 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { useForm } from '../../hooks/useForm.js';
3
+ import { CalculatorLayout } from '../../ui-kit/Calculator/CalculatorLayout.js';
4
+ import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle.js';
5
+ import { getMoneyDefaultValue, getMonthsDefaultValue, } from '../../ui-kit/Calculator/getDefaultValues.js';
6
+ import { renderPayout } from '../../ui-kit/Calculator/renderPayout.js';
7
+ import { renderRate } from '../../ui-kit/Calculator/renderRate.js';
8
+ import { renderWantedSumInput } from '../../ui-kit/Calculator/renderWantedSumInput.js';
9
+ import { Checkbox } from '../../ui-kit/Checkbox/Checkbox.js';
10
+ import { Text } from '../../ui-kit/Text/Text.js';
11
+ import { UniBlock } from '../../UniBlock/UniBlock.js';
12
+ import { style } from '../../utils/style.js';
13
+ import { renderDepositResult } from '../Carousel/renderDepositResult.js';
14
+ import { renderDaysInput } from './renderDaysInput.js';
15
+ import { useBusinessDepositParams, } from './useBusinessDepositParams.js';
16
+ const BUSINESS_DEFAULT_SUM = 100000;
17
+ const BUSINESS_DEFAULT_DAYS = 60;
18
+ export const CalculatorBusinessDeposit = UniBlock(({ className = '', title, buttons, footnote, bottomFootnote, isShowDepositeName, defaultParams, rateParams, ...rest }) => {
19
+ const [userInputParams, { field }] = useForm({
20
+ moneyValue: getMoneyDefaultValue(defaultParams, BUSINESS_DEFAULT_SUM),
21
+ daysValue: getMonthsDefaultValue(defaultParams, BUSINESS_DEFAULT_DAYS),
22
+ isReplenished: Boolean(defaultParams?.isReplenished),
23
+ isPartialWithdrawal: Boolean(defaultParams?.isPartialWithdrawal),
24
+ isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
25
+ });
26
+ const calculatorParams = useBusinessDepositParams(userInputParams, rateParams);
27
+ const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
28
+ return (_jsx(CalculatorLayout, { className: className, title: title, ...rest, children: _jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [_jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
29
+ title: 'Сумма, ₽',
30
+ min: calculatorParams.minSum,
31
+ max: calculatorParams.maxSum,
32
+ ...field('moneyValue'),
33
+ value: calculatorParams.moneyValue,
34
+ }), renderDaysInput({
35
+ title: 'Срок, дней',
36
+ min: calculatorParams.minDays,
37
+ max: calculatorParams.maxDays,
38
+ ...field('daysValue'),
39
+ value: calculatorParams.daysValue,
40
+ }), _jsxs("div", { className: "flex flex-col sm:flex-row gap-y-m gap-x-5xl", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderPayout({
41
+ title: 'Выплата процентов',
42
+ orientation: 'vertical',
43
+ ...field('isMonthlyInterestPayment'),
44
+ radioGroupClassName: 'sm:flex-col',
45
+ })] })] }), renderRate({
46
+ rate,
47
+ depositeName,
48
+ isShowDepositeName,
49
+ isUnavailableByTerm,
50
+ }), renderDepositResult({
51
+ income,
52
+ finalSum,
53
+ buttons,
54
+ footnotes: [footnote, bottomFootnote],
55
+ })] }) }));
56
+ });
57
+ const renderBusinessDepositParamsForm = (calculatorParams, field) => (_jsxs("div", { className: "space-y-s", children: [_jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), _jsxs("div", { className: "flex flex-col gap-y-lg sm:gap-y-s", children: [_jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), _jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
58
+ //# sourceMappingURL=CalculatorBusinessDeposit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalculatorBusinessDeposit.js","sourceRoot":"","sources":["../../../src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAA4B,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,mBAAm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a,GACrC,EACF,KAAC,QAAQ,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"}
@@ -0,0 +1,52 @@
1
+ import { type Footnote } from '../../model/Footnote';
2
+ import { type TitleProps } from '../../model/HeadlineType';
3
+ import { type CalculatorProps, type CommonDefaultParams } from '../../ui-kit/Calculator/CalculatorProps';
4
+ import { type ButtonsSectionContent } from '../../ui-kit/LinkButton/ButtonsSectionContent';
5
+ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
6
+ /**
7
+ * @title ЮЛ
8
+ * @default {"rateType": "UL"}
9
+ */
10
+ export declare type ULRateDef = {
11
+ rateType: 'UL';
12
+ };
13
+ /**
14
+ * @title ИП
15
+ * @default {"rateType": "IP"}
16
+ */
17
+ export declare type IPRateDef = {
18
+ rateType: 'IP';
19
+ };
20
+ /** @title Не выбрано * */
21
+ export declare type EmptyRateParams = {
22
+ /** @default "" */
23
+ rateType: '';
24
+ };
25
+ /**
26
+ * @title Назначение ставки
27
+ * @default {"rateType": ""}
28
+ */
29
+ export declare type RateParamsDef = EmptyRateParams | ULRateDef | IPRateDef;
30
+ export declare type CommonCalculatorProps = Footnote & ButtonsSectionContent & CalculatorProps;
31
+ export interface BusinessDepositDefaultParams extends CommonDefaultParams {
32
+ /** @title Пополнение */
33
+ isReplenished?: boolean;
34
+ /** @title Частичное снятие */
35
+ isPartialWithdrawal?: boolean;
36
+ /** @title Выплата процентов */
37
+ isMonthlyInterestPayment?: boolean;
38
+ }
39
+ export interface CalculatorBusinessDepositProps extends Footnote, ButtonsSectionContent {
40
+ /** @title Ставка для */
41
+ rateParams?: RateParamsDef;
42
+ /** @title Сноска снизу блока */
43
+ bottomFootnote?: string;
44
+ /** @title Показывать название депозита */
45
+ isShowDepositeName?: boolean;
46
+ /** @title Параметры по умолчанию */
47
+ defaultParams?: BusinessDepositDefaultParams;
48
+ }
49
+ /**
50
+ * @title Калькулятор вкладов - бизнес
51
+ */
52
+ export declare type CalculatorBusinessDepositContent = UniBlockContent & TitleProps & CommonCalculatorProps;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CalculatorBusinessDepositContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalculatorBusinessDepositContent.js","sourceRoot":"","sources":["../../../src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { type InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
+ export declare const renderDaysInput: (props: InputRangeProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
3
+ const STEP_DAYS = 1;
4
+ export const renderDaysInput = (props) => (_jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
5
+ const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
6
+ //# sourceMappingURL=renderDaysInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderDaysInput.js","sourceRoot":"","sources":["../../../src/components/CalculatorBusinessDeposit/renderDaysInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAGhE,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,EAAE,CAAC,CACzD,KAAC,UAAU,IACT,KAAK,EAAE,CAAC,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,EAAE,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAC3E,IAAI,EAAE,SAAS,KACX,KAAK,GACT,CACH,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
- import { type RateParamsDef } from './CalculatorContent';
1
+ import { type RateParamsDef } from './CalculatorBusinessDepositContent';
2
+ export declare const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS: BusinessDepositCalculatorSourceBookParams;
2
3
  export interface BusinessCommonDepositParams {
3
4
  isMonthlyInterestPayment: boolean;
4
5
  isReplenished: boolean;
@@ -12,14 +13,14 @@ export interface BusinessDepositCalculatorSourceBookParams extends BusinessCommo
12
13
  depositeName: string;
13
14
  rate: number;
14
15
  }
15
- export interface BusinessDepositCalculatorUserInputParams extends BusinessCommonDepositParams {
16
+ export interface BusinessDepositUserInputParams extends BusinessCommonDepositParams {
16
17
  moneyValue: number;
17
18
  daysValue: number;
18
19
  }
19
- export interface BusinessDepositCalculatorParams extends BusinessDepositCalculatorSourceBookParams, BusinessDepositCalculatorUserInputParams {
20
+ export interface BusinessDepositParams extends BusinessDepositCalculatorSourceBookParams, BusinessDepositUserInputParams {
20
21
  income?: number;
21
22
  finalSum?: number;
22
23
  isDisabledOperatingDeposit?: boolean;
23
24
  isUnavailableByTerm?: boolean;
24
25
  }
25
- export declare const useBusinessDepositCalculatorParams: (userInputParams: BusinessDepositCalculatorUserInputParams, rateParams?: RateParamsDef) => BusinessDepositCalculatorParams;
26
+ export declare const useBusinessDepositParams: (userInputParams: BusinessDepositUserInputParams, rateParams?: RateParamsDef) => BusinessDepositParams;
@@ -1,7 +1,22 @@
1
1
  import { checkRangeByKeys, getRangeByKeys } from '../../ui-kit/Calculator/rangeHelpers.js';
2
- import { BUSINESS_OPERATING_MAX_DAYS, BUSINESS_OPERATING_MIN_DAYS, BUSINESS_RATE_MIN_DAYS, DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS, } from './constants.js';
3
2
  import { useBusinessDepositRates } from './useBusinessDepositRates.js';
4
- export const useBusinessDepositCalculatorParams = (userInputParams, rateParams) => {
3
+ const BUSINESS_MIN_DAYS = 1;
4
+ const BUSINESS_MAX_DAYS = 1095;
5
+ const BUSINESS_RATE_MIN_DAYS = 30; // порог количества дней, при которых ставка не доступна
6
+ const BUSINESS_OPERATING_MIN_DAYS = 90;
7
+ const BUSINESS_OPERATING_MAX_DAYS = 730;
8
+ export const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = {
9
+ minSum: 1000,
10
+ maxSum: 100000001,
11
+ minDays: BUSINESS_MIN_DAYS,
12
+ maxDays: BUSINESS_MAX_DAYS,
13
+ rate: 0,
14
+ isMonthlyInterestPayment: true,
15
+ isReplenished: false,
16
+ isPartialWithdrawal: false,
17
+ depositeName: "Депозит 'Стабильный'",
18
+ };
19
+ export const useBusinessDepositParams = (userInputParams, rateParams) => {
5
20
  const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
6
21
  const isOperatingDeposit = isReplenished || isPartialWithdrawal;
7
22
  const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
@@ -49,4 +64,4 @@ const getDepositIncome = (rate, userInputParams) => {
49
64
  return Math.round((moneyValue * rate * daysValue) / 365 / 100);
50
65
  }
51
66
  };
52
- //# sourceMappingURL=useBusinessDepositCalculatorParams.js.map
67
+ //# sourceMappingURL=useBusinessDepositParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBusinessDepositParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorBusinessDeposit/useBusinessDepositParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sCAA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,IAAI,CAAC,GAAG,IAAI,EAAE,SAAS,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC;KAC7F;SAAM;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KAChE;AACH,CAAC,CAAC"}
@@ -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,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,eAAe,EAA4B,MAAM,uBAAuB,CAAC;AAIlF,MAAM,yBAAyB,GAAG;IAChC,EAAE,EAAE,sBAAsB;IAC1B,EAAE,EAAE,0BAA0B;CAC/B,CAAC;AAIF,MAAM,UAAU,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,YAAY,CAC3B,WAAW,CAAC,CAAC,CAAC,wBAAwB,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,EAC1D,eAAqE,CACtE,CAAC;IAEF,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC"}
@@ -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,6 @@
1
+ /// <reference types="react" />
2
+ import '../../setup-fixture';
3
+ declare const _default: {
4
+ default: JSX.Element;
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import '../../setup-fixture';
3
+ declare const _default: {
4
+ default: JSX.Element;
5
+ };
6
+ export default _default;
@@ -0,0 +1,66 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useForm } from '../../hooks/useForm.js';
4
+ import { CalculatorLayout } from '../../ui-kit/Calculator/CalculatorLayout.js';
5
+ import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle.js';
6
+ import { getMoneyDefaultValue, getMonthsDefaultValue, } from '../../ui-kit/Calculator/getDefaultValues.js';
7
+ import { renderMonthsInput } from '../../ui-kit/Calculator/renderMonthsInput.js';
8
+ import { renderPayout } from '../../ui-kit/Calculator/renderPayout.js';
9
+ import { renderRate } from '../../ui-kit/Calculator/renderRate.js';
10
+ import { renderWantedSumInput } from '../../ui-kit/Calculator/renderWantedSumInput.js';
11
+ import { UniBlock } from '../../UniBlock/UniBlock.js';
12
+ import { clamp } from '../../utils/clamp.js';
13
+ import { style } from '../../utils/style.js';
14
+ import { renderDepositResult } from '../Carousel/renderDepositResult.js';
15
+ import { getDepositCalculatorParams, } from './getDepositCalculatorParams.js';
16
+ import { renderRegistrationType } from './renderRegistrationType.js';
17
+ const DEPOSIT_DEFAULT_SUM = 20000;
18
+ export const CalculatorDeposit = UniBlock(({ className, title, calcSource, buttons, footnote, paramsViewSettings, defaultParams, ...rest }) => {
19
+ const [userInputParams, { field }] = useForm({
20
+ moneyValue: getMoneyDefaultValue(defaultParams, DEPOSIT_DEFAULT_SUM),
21
+ monthsValue: getMonthsDefaultValue(defaultParams),
22
+ isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
23
+ isRemoteRegistration: Boolean(defaultParams?.isRemoteRegistration),
24
+ });
25
+ const calculatorParams = getDepositCalculatorParams(userInputParams, calcSource, paramsViewSettings);
26
+ const { defaultMonth, rate, income, finalSum } = calculatorParams;
27
+ const { onChange: setMonthsValue } = field('monthsValue');
28
+ const { onChange: setMoneyValue } = field('moneyValue');
29
+ useEffect(() => {
30
+ !userInputParams.monthsValue && setMonthsValue && setMonthsValue(defaultMonth);
31
+ }, [defaultMonth]);
32
+ useEffect(() => {
33
+ setMoneyValue &&
34
+ setMoneyValue(clamp(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
35
+ }, [calculatorParams.minSum, calculatorParams.maxSum]);
36
+ return (_jsx(CalculatorLayout, { className: className, title: title, ...rest, children: _jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [_jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
37
+ title: 'Сумма, ₽',
38
+ min: calculatorParams.minSum,
39
+ max: calculatorParams.maxSum,
40
+ ...field('moneyValue'),
41
+ value: calculatorParams.moneyValue,
42
+ }), renderMonthsInput({
43
+ title: 'Срок, месяцев',
44
+ min: calculatorParams.minMonths,
45
+ max: calculatorParams.maxMonths,
46
+ availableMonths: calculatorParams.availableMonths,
47
+ ...field('monthsValue'),
48
+ value: calculatorParams.monthsValue,
49
+ }), renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field)] }), renderRate({
50
+ rate,
51
+ }), renderDepositResult({ income, finalSum, buttons, footnotes: [footnote] })] }) }));
52
+ });
53
+ const renderDepositParamsForm = (params, field) => (_jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
54
+ ? renderPayout({
55
+ title: 'Выплата процентов',
56
+ ...field('isMonthlyInterestPayment'),
57
+ value: params.isMonthlyInterestPayment,
58
+ })
59
+ : null, params.isShowRemoteRegistration
60
+ ? renderRegistrationType({
61
+ title: 'Оформление',
62
+ ...field('isRemoteRegistration'),
63
+ value: params.isRemoteRegistration,
64
+ })
65
+ : null] }));
66
+ //# sourceMappingURL=CalculatorDeposit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalculatorDeposit.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/CalculatorDeposit.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,OAAO,EAA4B,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EACL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAKtE,OAAO,EACL,0BAA0B,GAG3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,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AAG,KAAK,CAAC,0BAA0B,CAAC;gBACpC,KAAK,EAAE,MAAM,CAAC,wBAAwB;aACvC,CAAC;YACJ,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,wBAAwB;YAC9B,CAAC,CAAC,sBAAsB,CAAC;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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CalculatorDepositContent.js.map
@@ -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 DepositCalculatorParamsViewSettings } from './CalculatorContent';
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?: DepositCalculatorParamsViewSettings) => DepositCalculatorParams;
26
+ export declare const getDepositCalculatorParams: (userInputParams: DepositCalculatorUserInputParams, calcSource?: DepositCalculatorData, paramsViewSettings?: CalculatorDepositParamsViewSettings) => DepositCalculatorParams;
@@ -1,7 +1,15 @@
1
1
  import { checkRangeByKeys, getRangeByKeys } from '../../ui-kit/Calculator/rangeHelpers.js';
2
2
  import { arrayByRange } from '../../utils/arrayByRange.js';
3
3
  import { mergeIntervals } from '../../utils/mergeIntervals.js';
4
- import { DEFAULT_DEPOSIT_CALCULATOR_PARAMS } from './constants.js';
4
+ const DEFAULT_DEPOSIT_CALCULATOR_PARAMS = {
5
+ minSum: 50000,
6
+ maxSum: 100000001,
7
+ minMonths: 2,
8
+ maxMonths: 10,
9
+ rate: 0,
10
+ isMonthlyInterestPayment: true,
11
+ isRemoteRegistration: true,
12
+ };
5
13
  export const getDepositCalculatorParams = (userInputParams, calcSource, paramsViewSettings) => {
6
14
  const { moneyValue, monthsValue } = userInputParams;
7
15
  const defaultMonth = calcSource?.rateRows?.[0]
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/getDepositCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,cAAc,E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AG,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,3 @@
1
+ /// <reference types="react" />
2
+ import { type BinaryRadioButtonGroupProps } from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup';
3
+ export declare const renderPaymentType: (props: Partial<BinaryRadioButtonGroupProps>) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { renderBinaryRadioButtonGroup, } from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup.js';
2
+ export const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
3
+ ...props,
4
+ radioGroupClassName: 'sm:flex-col',
5
+ items: [
6
+ { id: 'annuity', text: 'Аннуитетный' },
7
+ { id: 'differential', text: 'Дифференцированный' },
8
+ ],
9
+ });
10
+ //# sourceMappingURL=renderPaymentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/renderPaymentType.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAE7B,MAAM,sDAAsD,CAAC;AAE9D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC/E,4BAA4B,CAAC;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"}
@@ -0,0 +1,2 @@
1
+ import { type BinaryRadioButtonGroupProps } from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup';
2
+ export declare const renderRegistrationType: (props: Partial<BinaryRadioButtonGroupProps>) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { renderBinaryRadioButtonGroup, } from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup.js';
2
+ export const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
3
+ ...props,
4
+ items: [
5
+ { id: 'remote', text: 'Дистанционно' },
6
+ { id: 'office', text: 'Офис Банка' },
7
+ ],
8
+ });
9
+ //# sourceMappingURL=renderRegistrationType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/CalculatorDeposit/renderRegistrationType.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAE7B,MAAM,sDAAsD,CAAC;AAE9D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAA2C,EAAE,EAAE,CACpF,4BAA4B,CAAC;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"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import '../../setup-fixture';
3
+ declare const _default: {
4
+ default: JSX.Element;
5
+ };
6
+ export default _default;
@@ -4,13 +4,13 @@ import { CalculatorLayout } from '../../ui-kit/Calculator/CalculatorLayout.js';
4
4
  import { CalculatorStyle } from '../../ui-kit/Calculator/CalculatorStyle.js';
5
5
  import { CalculatorValueBlock } from '../../ui-kit/Calculator/CalculatorValueBlock.js';
6
6
  import { renderFootnote } from '../../ui-kit/Calculator/renderFootnote.js';
7
+ import { renderMonthsInput } from '../../ui-kit/Calculator/renderMonthsInput.js';
7
8
  import { renderRate } from '../../ui-kit/Calculator/renderRate.js';
8
9
  import { renderWantedSumInput } from '../../ui-kit/Calculator/renderWantedSumInput.js';
9
10
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox.js';
10
11
  import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection.js';
11
12
  import { UniBlock } from '../../UniBlock/UniBlock.js';
12
13
  import { style } from '../../utils/style.js';
13
- import { renderMonthsInput } from '../Calculator/renderMonthsInput.js';
14
14
  import { renderPaymentType } from '../Calculator/renderPaymentType.js';
15
15
  import { getRefinancingCalculatorParams, } from './getRefinancingCalculatorParams.js';
16
16
  const REFINANCING_OLD_DEFAULT_SUM = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"CalculatorRefinancing.js","sourceRoot":"","sources":["../../../src/components/CalculatorRefinancing/CalculatorRefinancing.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAA4B,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE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O,CACpB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,sBAAsB,GAAG,CAC7B,MAAyE,EACzE,KAA+B,EAC/B,EAAE,CAAC,CACH,eAAK,SAAS,EAAC,yBAAyB,aACrC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAC3B,KAAC,QAAQ,IACP,IAAI,EAAC,qOAA4C,KAC7C,KAAK,CAAC,gBAAgB,CAAC,EAC3B,KAAK,EAAE,MAAM,CAAC,cAAc,GAC5B,CACH,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CACxB,KAAC,QAAQ,IACP,IAAI,EAAC,gKAA8B,KAC/B,KAAK,CAAC,aAAa,CAAC,EACxB,KAAK,EAAE,MAAM,CAAC,WAAW,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,QAAQ,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 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 { 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 & TitleProps & Footnote & CalcSourceProps & ButtonsSectionContent & {
16
+ export declare type CalculatorRefinancingContent = UniBlockContent & CommonCalculatorProps & {
26
17
  /** @title Настройка отображения чекбоксов */
27
- paramsViewSettings?: RefinancingCalculatorParamsViewSettings;
18
+ paramsViewSettings?: CalculatorParamsViewSettingsDefault;
28
19
  };
@@ -1,9 +1,9 @@
1
- import { type RefinancingCalculatorParamsViewSettings } from './CalculatorRefinancingContent';
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?: RefinancingCalculatorParamsViewSettings;
6
+ paramsViewSettings?: CalculatorParamsViewSettingsDefault;
7
7
  }
8
8
  export declare const checkRefinancingSourceBookRowCommonParams: (props: CheckSourceBookRowProps) => boolean;
9
9
  export {};