@redneckz/wildless-cms-uni-blocks 0.14.540 → 0.14.542

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 (328) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +47 -39
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/AddressBranchField.d.ts +1 -1
  5. package/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
  6. package/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
  7. package/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
  8. package/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  9. package/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
  10. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  11. package/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
  12. package/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
  13. package/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
  14. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  15. package/bundle/content-page-repository/transformAttachmentLink.d.ts +2 -2
  16. package/bundle/content-page-repository/transformContentPage.d.ts +2 -2
  17. package/bundle/data/CommonData.d.ts +2 -2
  18. package/bundle/data/NavigationData.d.ts +2 -2
  19. package/bundle/ui-kit/Button/Button.d.ts +1 -1
  20. package/bundle/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
  21. package/bundle/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
  22. package/bundle/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
  23. package/bundle/ui-kit/Calculator/FormatedValue.d.ts +2 -0
  24. package/bundle/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
  25. package/bundle/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
  26. package/dist/components/ApplicationForm/AddressBranchField.d.ts +1 -1
  27. package/dist/components/CalculatorBonus/CalculatorBonus.js +3 -3
  28. package/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
  29. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
  30. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  31. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
  32. package/dist/components/CalculatorCredit/CalculatorCredit.js +3 -3
  33. package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  34. package/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
  35. package/dist/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
  36. package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  37. package/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
  38. package/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  39. package/dist/components/CalculatorDeposit/renderDepositParamsForm.js +2 -1
  40. package/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  41. package/dist/components/CalculatorDeposit/renderDepositResult.js +2 -2
  42. package/dist/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
  43. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
  44. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  45. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
  46. package/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  47. package/dist/components/ExchangeRateTile/renderInput.js +1 -1
  48. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  49. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  50. package/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
  51. package/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
  52. package/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
  53. package/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  54. package/dist/content-page-repository/transformAttachmentLink.d.ts +2 -2
  55. package/dist/content-page-repository/transformContentPage.d.ts +2 -2
  56. package/dist/data/CommonData.d.ts +2 -2
  57. package/dist/data/NavigationData.d.ts +2 -2
  58. package/dist/ui-kit/Button/Button.d.ts +1 -1
  59. package/dist/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
  60. package/dist/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
  61. package/dist/ui-kit/Calculator/CalculatorStyle.js +3 -5
  62. package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  63. package/dist/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
  64. package/dist/ui-kit/Calculator/CalculatorValue.js +10 -0
  65. package/dist/ui-kit/Calculator/CalculatorValue.js.map +1 -0
  66. package/dist/ui-kit/Calculator/FormatedValue.d.ts +2 -0
  67. package/dist/ui-kit/Calculator/FormatedValue.js +12 -0
  68. package/dist/ui-kit/Calculator/FormatedValue.js.map +1 -0
  69. package/dist/ui-kit/Calculator/renderRate.js +2 -2
  70. package/dist/ui-kit/Calculator/renderRate.js.map +1 -1
  71. package/dist/ui-kit/Select/Select.js +2 -2
  72. package/dist/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
  73. package/dist/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
  74. package/lib/common.css +1 -1
  75. package/lib/components/ApplicationForm/AddressBranchField.d.ts +1 -1
  76. package/lib/components/CalculatorBonus/CalculatorBonus.js +3 -3
  77. package/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
  78. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
  79. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  80. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
  81. package/lib/components/CalculatorCredit/CalculatorCredit.fixture.mobile.d.ts +7 -0
  82. package/lib/components/CalculatorCredit/CalculatorCredit.js +3 -3
  83. package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  84. package/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
  85. package/lib/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
  86. package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  87. package/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
  88. package/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  89. package/lib/components/CalculatorDeposit/renderDepositParamsForm.js +2 -1
  90. package/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  91. package/lib/components/CalculatorDeposit/renderDepositResult.js +2 -2
  92. package/lib/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
  93. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
  94. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  95. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
  96. package/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  97. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  98. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  99. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  100. package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
  101. package/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
  102. package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
  103. package/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  104. package/lib/content-page-repository/transformAttachmentLink.d.ts +2 -2
  105. package/lib/content-page-repository/transformContentPage.d.ts +2 -2
  106. package/lib/data/CommonData.d.ts +2 -2
  107. package/lib/data/NavigationData.d.ts +2 -2
  108. package/lib/ui-kit/Button/Button.d.ts +1 -1
  109. package/lib/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
  110. package/lib/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
  111. package/lib/ui-kit/Calculator/CalculatorStyle.js +3 -5
  112. package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  113. package/lib/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
  114. package/lib/ui-kit/Calculator/CalculatorValue.js +8 -0
  115. package/lib/ui-kit/Calculator/CalculatorValue.js.map +1 -0
  116. package/lib/ui-kit/Calculator/FormatedValue.d.ts +2 -0
  117. package/lib/ui-kit/Calculator/FormatedValue.js +10 -0
  118. package/lib/ui-kit/Calculator/FormatedValue.js.map +1 -0
  119. package/lib/ui-kit/Calculator/renderRate.js +2 -2
  120. package/lib/ui-kit/Calculator/renderRate.js.map +1 -1
  121. package/lib/ui-kit/Select/Select.js +2 -2
  122. package/lib/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
  123. package/lib/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
  124. package/mobile/bundle/bundle.umd.js +47 -39
  125. package/mobile/bundle/bundle.umd.min.js +1 -1
  126. package/mobile/bundle/components/ApplicationForm/AddressBranchField.d.ts +1 -1
  127. package/mobile/bundle/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
  128. package/mobile/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
  129. package/mobile/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
  130. package/mobile/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  131. package/mobile/bundle/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
  132. package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
  133. package/mobile/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
  134. package/mobile/bundle/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
  135. package/mobile/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
  136. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  137. package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +2 -2
  138. package/mobile/bundle/content-page-repository/transformContentPage.d.ts +2 -2
  139. package/mobile/bundle/data/CommonData.d.ts +2 -2
  140. package/mobile/bundle/data/NavigationData.d.ts +2 -2
  141. package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -1
  142. package/mobile/bundle/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
  143. package/mobile/bundle/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
  144. package/mobile/bundle/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
  145. package/mobile/bundle/ui-kit/Calculator/FormatedValue.d.ts +2 -0
  146. package/mobile/bundle/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
  147. package/mobile/bundle/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
  148. package/mobile/dist/components/ApplicationForm/AddressBranchField.d.ts +1 -1
  149. package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js +3 -3
  150. package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
  151. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
  152. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  153. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
  154. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +3 -3
  155. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  156. package/mobile/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
  157. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
  158. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  159. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
  160. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  161. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js +2 -1
  162. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  163. package/mobile/dist/components/CalculatorDeposit/renderDepositResult.js +2 -2
  164. package/mobile/dist/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
  165. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
  166. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  167. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
  168. package/mobile/dist/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  169. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  170. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  171. package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
  172. package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
  173. package/mobile/dist/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
  174. package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
  175. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  176. package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +2 -2
  177. package/mobile/dist/content-page-repository/transformContentPage.d.ts +2 -2
  178. package/mobile/dist/data/CommonData.d.ts +2 -2
  179. package/mobile/dist/data/NavigationData.d.ts +2 -2
  180. package/mobile/dist/ui-kit/Button/Button.d.ts +1 -1
  181. package/mobile/dist/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
  182. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
  183. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +3 -5
  184. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  185. package/mobile/dist/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
  186. package/mobile/dist/ui-kit/Calculator/CalculatorValue.js +10 -0
  187. package/mobile/dist/ui-kit/Calculator/CalculatorValue.js.map +1 -0
  188. package/mobile/dist/ui-kit/Calculator/FormatedValue.d.ts +2 -0
  189. package/mobile/dist/ui-kit/Calculator/FormatedValue.js +12 -0
  190. package/mobile/dist/ui-kit/Calculator/FormatedValue.js.map +1 -0
  191. package/mobile/dist/ui-kit/Calculator/renderRate.js +2 -2
  192. package/mobile/dist/ui-kit/Calculator/renderRate.js.map +1 -1
  193. package/mobile/dist/ui-kit/Select/Select.js +2 -2
  194. package/mobile/dist/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
  195. package/mobile/dist/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
  196. package/mobile/lib/common.css +1 -1
  197. package/mobile/lib/components/ApplicationForm/AddressBranchField.d.ts +1 -1
  198. package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js +3 -3
  199. package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
  200. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -1
  201. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  202. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.d.ts +2 -2
  203. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +3 -3
  204. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  205. package/mobile/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +1 -0
  206. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +7 -2
  207. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  208. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -1
  209. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  210. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js +2 -1
  211. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  212. package/mobile/lib/components/CalculatorDeposit/renderDepositResult.js +2 -2
  213. package/mobile/lib/components/CalculatorDeposit/renderDepositResult.js.map +1 -1
  214. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +17 -17
  215. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  216. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.d.ts +1 -0
  217. package/mobile/lib/components/CalculatorRefinancing/getRefinancingCalculatorParams.js.map +1 -1
  218. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  219. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  220. package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
  221. package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
  222. package/mobile/lib/components/OfficesAtmsMap/getWorkScheduleWeek.d.ts +1 -1
  223. package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +1 -1
  224. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  225. package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +2 -2
  226. package/mobile/lib/content-page-repository/transformContentPage.d.ts +2 -2
  227. package/mobile/lib/data/CommonData.d.ts +2 -2
  228. package/mobile/lib/data/NavigationData.d.ts +2 -2
  229. package/mobile/lib/ui-kit/Button/Button.d.ts +1 -1
  230. package/mobile/lib/ui-kit/Calculator/CalculatorProps.d.ts +13 -2
  231. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.d.ts +0 -2
  232. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +3 -5
  233. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  234. package/mobile/lib/ui-kit/Calculator/CalculatorValue.d.ts +2 -0
  235. package/mobile/lib/ui-kit/Calculator/CalculatorValue.js +8 -0
  236. package/mobile/lib/ui-kit/Calculator/CalculatorValue.js.map +1 -0
  237. package/mobile/lib/ui-kit/Calculator/FormatedValue.d.ts +2 -0
  238. package/mobile/lib/ui-kit/Calculator/FormatedValue.js +10 -0
  239. package/mobile/lib/ui-kit/Calculator/FormatedValue.js.map +1 -0
  240. package/mobile/lib/ui-kit/Calculator/renderRate.js +2 -2
  241. package/mobile/lib/ui-kit/Calculator/renderRate.js.map +1 -1
  242. package/mobile/lib/ui-kit/Select/Select.js +2 -2
  243. package/mobile/lib/ui-kit/SwipeListControl/NavButtonProp.d.ts +1 -1
  244. package/mobile/lib/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
  245. package/mobile/src/components/ApplicationForm/AddressBranchField.tsx +1 -1
  246. package/mobile/src/components/CalculatorBonus/CalculatorBonus.tsx +3 -7
  247. package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +1 -1
  248. package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +2 -2
  249. package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +10 -3
  250. package/mobile/src/components/CalculatorCredit/CalculatorCreditContent.ts +1 -0
  251. package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +8 -7
  252. package/mobile/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +1 -1
  253. package/mobile/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +7 -4
  254. package/mobile/src/components/CalculatorDeposit/renderDepositResult.tsx +3 -3
  255. package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +28 -25
  256. package/mobile/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +1 -0
  257. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -0
  258. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  259. package/mobile/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -1
  260. package/mobile/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +1 -1
  261. package/mobile/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +1 -1
  262. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +1 -1
  263. package/mobile/src/content-page-repository/transformAttachmentLink.ts +2 -2
  264. package/mobile/src/content-page-repository/transformContentPage.ts +5 -5
  265. package/mobile/src/data/CommonData.ts +2 -2
  266. package/mobile/src/data/NavigationData.ts +2 -2
  267. package/mobile/src/ui-kit/Button/Button.tsx +1 -1
  268. package/mobile/src/ui-kit/Calculator/CalculatorProps.ts +14 -2
  269. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +3 -6
  270. package/mobile/src/ui-kit/Calculator/CalculatorValue.tsx +20 -0
  271. package/mobile/src/ui-kit/Calculator/FormatedValue.tsx +16 -0
  272. package/mobile/src/ui-kit/Calculator/renderRate.tsx +2 -2
  273. package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
  274. package/mobile/src/ui-kit/Select/Select.tsx +2 -2
  275. package/mobile/src/ui-kit/SwipeListControl/NavButtonProp.ts +1 -1
  276. package/mobile/src/ui-kit/SwipeListControl/renderDotButton.tsx +2 -2
  277. package/package.json +2 -2
  278. package/src/components/ApplicationForm/AddressBranchField.tsx +1 -1
  279. package/src/components/CalculatorBonus/CalculatorBonus.tsx +3 -7
  280. package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +1 -1
  281. package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDepositContent.ts +2 -2
  282. package/src/components/CalculatorCredit/CalculatorCredit.fixture.mobile.tsx +62 -0
  283. package/src/components/CalculatorCredit/CalculatorCredit.tsx +10 -3
  284. package/src/components/CalculatorCredit/CalculatorCreditContent.ts +1 -0
  285. package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +8 -7
  286. package/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +1 -1
  287. package/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +7 -4
  288. package/src/components/CalculatorDeposit/renderDepositResult.tsx +3 -3
  289. package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +28 -25
  290. package/src/components/CalculatorRefinancing/getRefinancingCalculatorParams.ts +1 -0
  291. package/src/components/Carousel/Carousel.fixture.mobile.tsx +1 -1
  292. package/src/components/ExchangeRateTile/renderInput.tsx +1 -0
  293. package/src/components/Footer/SocialMedia.tsx +2 -2
  294. package/src/components/OfficesAtmsMap/getScheduleDescription.tsx +1 -1
  295. package/src/components/OfficesAtmsMap/getWorkScheduleWeek.tsx +1 -1
  296. package/src/components/OfficesAtmsMap/renderBusinessSchedule.tsx +1 -1
  297. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  298. package/src/components/StepsBlock/StepsBlockContent.ts +1 -1
  299. package/src/content-page-repository/transformAttachmentLink.ts +2 -2
  300. package/src/content-page-repository/transformContentPage.ts +5 -5
  301. package/src/data/CommonData.ts +2 -2
  302. package/src/data/NavigationData.ts +2 -2
  303. package/src/ui-kit/Button/Button.tsx +1 -1
  304. package/src/ui-kit/Calculator/CalculatorProps.ts +14 -2
  305. package/src/ui-kit/Calculator/CalculatorStyle.tsx +3 -6
  306. package/src/ui-kit/Calculator/CalculatorValue.tsx +20 -0
  307. package/src/ui-kit/Calculator/FormatedValue.tsx +16 -0
  308. package/src/ui-kit/Calculator/renderRate.tsx +2 -2
  309. package/src/ui-kit/InnerTable/InnerTableHeader.tsx +1 -1
  310. package/src/ui-kit/Select/Select.tsx +2 -2
  311. package/src/ui-kit/SwipeListControl/NavButtonProp.ts +1 -1
  312. package/src/ui-kit/SwipeListControl/renderDotButton.tsx +2 -2
  313. package/bundle/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
  314. package/dist/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
  315. package/dist/ui-kit/Calculator/CalculatorValueBlock.js +0 -12
  316. package/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
  317. package/lib/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
  318. package/lib/ui-kit/Calculator/CalculatorValueBlock.js +0 -10
  319. package/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
  320. package/mobile/bundle/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
  321. package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
  322. package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.js +0 -12
  323. package/mobile/dist/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
  324. package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.d.ts +0 -12
  325. package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.js +0 -10
  326. package/mobile/lib/ui-kit/Calculator/CalculatorValueBlock.js.map +0 -1
  327. package/mobile/src/ui-kit/Calculator/CalculatorValueBlock.tsx +0 -52
  328. package/src/ui-kit/Calculator/CalculatorValueBlock.tsx +0 -52
@@ -1340,9 +1340,9 @@
1340
1340
  onClose: handleClose,
1341
1341
  iconVersion,
1342
1342
  });
1343
- return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-8 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : open, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1343
+ return (jsxs("div", { className: style('space-y-xs', className), children: [renderLabel(label), jsxs("div", { className: style('relative', hasOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden', getStyle(isBorder, valid, isDisabled)), onClick: hasOpen ? handleClose : open, children: [jsx("p", { className: "line-clamp-2 text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(hasOpen, iconVersion)] }), isSearch && hasOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1344
1344
  });
1345
- const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
1345
+ const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-0 flex self-center', { 'rotate-180': !isOpen }), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
1346
1346
  const getStyle = (isBorder, valid, disabled) => style(isBorder ? 'border rounded-md ' : '', isBorder && !disabled ? 'hover:border-primary-hover' : '', disabled ? 'bg-main-divider' : 'cursor-pointer ', valid ? 'border-gray' : 'border-error');
1347
1347
 
1348
1348
  const noop = () => {
@@ -2553,17 +2553,19 @@
2553
2553
  const CalculatorLayout = JSX(({ className, title, children, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-xl', className), defaultPadding: "p-4xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title }) : null, children] })));
2554
2554
 
2555
2555
  const CalculatorStyle = {
2556
- wrapper: 'flex flex-col justify-between @4xl:flex-row',
2557
- gapM: 'gap-x-s gap-y-7 @xl:gap-y-4xl',
2558
- gapL: 'gap-7 @xl:gap-y-4xl',
2559
- input: 'flex flex-col lg:max-w-80 gap-2xl border-b border-b-main-divider @xl:border-none pb-3xl @xl:pb-0',
2560
- result: 'flex flex-col gap-y-xl',
2556
+ wrapper: 'flex flex-col justify-between @4xl:flex-row gap-x-4xl gap-y-7 @xl:gap-y-4xl',
2557
+ input: 'flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl',
2558
+ result: 'flex flex-col gap-y-xl min-w-60',
2561
2559
  };
2562
2560
 
2563
- const calculatorValueBlockStyle = 'flex justify-between @xl:flex-col';
2564
- const CalculatorValueBlock = JSX(({ className, title, value, fractionDigits, fixed, prefix, postfix, color = 'text-secondary-text', }) => (jsxs("div", { className: style(calculatorValueBlockStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: color, children: title })) : null, value ? (jsx("div", { children: jsx(Text, { size: "text-h3", children: [prefix, toLocalNumberFormat(fractionDigits, { fixed })(value), postfix]
2565
- .filter(Boolean)
2566
- .join(' ') }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
2561
+ const FormatValue = JSX(({ value, fractionDigits, fixed, prefix, postfix }) => (jsx(Text, { size: "text-h3", children: typeof value === 'number'
2562
+ ? [prefix, toLocalNumberFormat(fractionDigits, { fixed })(value), postfix]
2563
+ .filter(Boolean)
2564
+ .join(' ')
2565
+ : value })));
2566
+
2567
+ const CalculatorValueStyle = 'flex justify-between @xl:flex-col';
2568
+ const CalculatorValue = JSX(({ className, title, value, color = 'text-secondary-text', ...rest }) => (jsxs("div", { className: style(CalculatorValueStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: color, children: title })) : null, value ? jsx(FormatValue, { value: value, ...rest }) : jsx(Text, { size: "text-h3", children: "-" })] })));
2567
2569
 
2568
2570
  const renderFootnote = (text, key) => text ? (jsx(Paragraph, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: text }, String(key))) : null;
2569
2571
 
@@ -2571,7 +2573,7 @@
2571
2573
 
2572
2574
  const UnknownRate = JSX(({ title = 'Ставка', isUnavailableByTerm = false }) => (jsxs("div", { className: "space-y-s min-w-96", children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx(Icon, { className: "w-10 h-10 @5xl:h-auto @5xl:w-40", name: "PercentIcon" }), jsx("div", { className: "w-64", children: isUnavailableByTerm ? (jsxs(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] })) : (jsx(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0443\u044E \u0441\u0443\u043C\u043C\u0443 \u0438\u043B\u0438 \u0441\u0440\u043E\u043A" })) })] })));
2573
2575
 
2574
- const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, isUnknownRateShown = true, color = 'text-secondary-text', children, ...rest }) => isUnknownRateShown && rate === 0 ? (jsx(UnknownRate, { title: title, ...rest })) : (jsxs("div", { className: "flex flex-col", children: [jsx("div", { className: "hidden @xl:block min-w-96", children: jsx(Rate, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, color: color, ...rest }) }), jsx(CalculatorValueBlock, { className: "@xl:hidden", title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, color: color, ...rest }), children] }));
2576
+ const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, isUnknownRateShown = true, color = 'text-secondary-text', children, ...rest }) => isUnknownRateShown && rate === 0 ? (jsx(UnknownRate, { title: title, ...rest })) : (jsxs("div", { className: "flex flex-col", children: [jsx("div", { className: "hidden @xl:block min-w-96", children: jsx(Rate, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, color: color, ...rest }) }), jsx(CalculatorValue, { className: "@xl:hidden", title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, color: color, ...rest }), children] }));
2575
2577
 
2576
2578
  const DEFAULT_MONEY_STEP = 1000;
2577
2579
  const renderWantedSumInput = ({ isShowItems = true, step = DEFAULT_MONEY_STEP, postfix = '₽', ...rest }) => (jsx(InputRange, { items: isShowItems
@@ -2634,7 +2636,7 @@
2634
2636
  restExpenseValue: DEFAULT_REST_MIN_SUM,
2635
2637
  });
2636
2638
  const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } = getBonusCalculatorParams(userInputParams, calcSource);
2637
- return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, CalculatorStyle.gapM, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
2639
+ return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
2638
2640
  title: 'Сумма покупок в категории путешествия, ₽',
2639
2641
  min: minSumTravel,
2640
2642
  max: maxSumTravel,
@@ -2657,7 +2659,7 @@
2657
2659
  unit: '',
2658
2660
  color: 'text-primary-text',
2659
2661
  })
2660
- : null }), jsxs("div", { className: CalculatorStyle.result, children: [yearBonus >= 0 ? (jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus, color: "text-primary-text" })) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
2662
+ : null }), jsxs("div", { className: CalculatorStyle.result, children: [yearBonus >= 0 ? (jsx(CalculatorValue, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus, color: "text-primary-text" })) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
2661
2663
  });
2662
2664
 
2663
2665
  const MONTHS_IN_YEAR = 12;
@@ -2694,7 +2696,7 @@
2694
2696
  });
2695
2697
 
2696
2698
  const CAPITALIZATION = ' (c капитализацией)';
2697
- const renderDepositResult = ({ income, finalSum, postfix = '₽', buttons = [], footnotes = [], isCapitalization = false, }) => (jsxs("div", { className: CalculatorStyle.result, children: [jsx(CalculatorValueBlock, { title: `Доход в конце срока${isCapitalization ? CAPITALIZATION : ''}`, value: income, postfix: postfix, prefix: "+" }), jsx(CalculatorValueBlock, { title: `Сумма в конце срока${isCapitalization ? CAPITALIZATION : ''}`, value: finalSum, postfix: postfix }), renderButtonsSection(buttons, { isVertical: true }), footnotes?.map(renderFootnote)] }));
2699
+ const renderDepositResult = ({ income, finalSum, postfix = '₽', buttons = [], footnotes = [], isCapitalization = false, }) => (jsxs("div", { className: CalculatorStyle.result, children: [jsx(CalculatorValue, { title: `Доход в конце срока${isCapitalization ? CAPITALIZATION : ''}`, value: income, postfix: postfix, prefix: "+" }), jsx(CalculatorValue, { title: `Сумма в конце срока${isCapitalization ? CAPITALIZATION : ''}`, value: finalSum, postfix: postfix }), renderButtonsSection(buttons, { isVertical: true }), footnotes?.map(renderFootnote)] }));
2698
2700
 
2699
2701
  const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
2700
2702
  ? {
@@ -2799,7 +2801,7 @@
2799
2801
  });
2800
2802
  const calculatorParams = useBusinessDepositParams(userInputParams, rateParams);
2801
2803
  const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
2802
- return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, CalculatorStyle.gapM, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
2804
+ return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
2803
2805
  title: 'Сумма, ₽',
2804
2806
  min: calculatorParams.minSum,
2805
2807
  max: calculatorParams.maxSum,
@@ -3028,7 +3030,7 @@
3028
3030
  });
3029
3031
  }
3030
3032
  }, [calcSource, defaultParams]);
3031
- return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, CalculatorStyle.gapL, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
3033
+ return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
3032
3034
  title: 'Сумма кредита, ₽',
3033
3035
  step: 500,
3034
3036
  min: calcParams.minSum,
@@ -3041,7 +3043,7 @@
3041
3043
  max: calcParams.maxMonths,
3042
3044
  ...field('monthsValue'),
3043
3045
  value: calcParams.monthsValue,
3044
- }), renderCreditParamsForm$1({ ...calcParams, ...paramsViewSettings }, field), jsx("div", { className: "sm:hidden", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
3046
+ }), renderCreditParamsForm$1({ ...calcParams, ...paramsViewSettings }, field), jsx("div", { className: "sm:hidden", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", value: calcParams?.rate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
3045
3047
  });
3046
3048
  const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: `Получаю зарплату на счёт\nв Россельхозбанке`, ...field('isSalaryClient'), value: params.isSalaryClient, className: "whitespace-pre-line sm:whitespace-normal" })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null] }));
3047
3049
 
@@ -3175,7 +3177,7 @@
3175
3177
  ],
3176
3178
  disabled: isCurrency,
3177
3179
  })
3178
- : null] }), jsx("div", { className: "border-b border-main-divider w-full" }), jsxs("div", { className: "flex gap-lg", children: [params.isShowMonthlyInterestPayment
3180
+ : null] }), separatorStyles(params.isShowReplenish || params.isShowWithdrawn), jsxs("div", { className: "flex gap-lg", children: [params.isShowMonthlyInterestPayment
3179
3181
  ? renderPayout({
3180
3182
  title: 'Выплата процентов',
3181
3183
  ...field('isMonthlyInterestPayment'),
@@ -3191,6 +3193,7 @@
3191
3193
  })
3192
3194
  : null] })] }));
3193
3195
  };
3196
+ const separatorStyles = (isShow = false) => isShow ? jsx("div", { className: "border-b border-main-divider w-full" }) : null;
3194
3197
 
3195
3198
  const MAP = {
3196
3199
  isMonthlyInterestPayment: 'isMonthlyInterestPayment',
@@ -3222,6 +3225,11 @@
3222
3225
  const row = getRows(rows, currencyValue);
3223
3226
  const [defParams, setDefParams] = useState(getDefaultParamsMax(rows?.[0]?.rates));
3224
3227
  const calcParams = getDepositCalculatorParams(userInputParams, getRows(rows, currencyValue), paramsViewSettings);
3228
+ useEffect(() => {
3229
+ if (currencyOptions?.[0]) {
3230
+ field?.('currency')?.onChange?.(currencyOptions?.[0]);
3231
+ }
3232
+ }, [calcSource]);
3225
3233
  const handleDefaultParamsCals = () => {
3226
3234
  setDefaultParamsCalc({
3227
3235
  field,
@@ -3260,7 +3268,7 @@
3260
3268
  }
3261
3269
  }, [defaultParams, row, defParams]);
3262
3270
  const isMaxRate = rate === defParams?.rate;
3263
- return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, CalculatorStyle.gapM, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [jsxs("div", { className: "flex gap-m", children: [renderWantedSumInput({
3271
+ return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [jsxs("div", { className: "flex gap-m", children: [renderWantedSumInput({
3264
3272
  className: 'w-full',
3265
3273
  title: `Сумма, ${currencyValue?.text}`,
3266
3274
  min: calcParams.minSum,
@@ -3269,7 +3277,7 @@
3269
3277
  value: calcParams.moneyValue,
3270
3278
  postfix: currencyValue?.text,
3271
3279
  step: getStep(currencyValue?.key),
3272
- }), rows && rows?.length > 1 ? (jsx(SelectControl, { className: "w-20", label: "\u0412\u0430\u043B\u044E\u0442\u0430", options: currencyOptions, ...field('currency') })) : null] }), renderMonthsInput({
3280
+ }), rows && rows?.length > 1 ? (jsx(SelectControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", options: currencyOptions, ...field('currency') })) : null] }), renderMonthsInput({
3273
3281
  title: 'Срок, месяцев',
3274
3282
  min: calcParams.minMonths,
3275
3283
  max: calcParams.maxMonths,
@@ -3407,43 +3415,43 @@
3407
3415
  monthsValue: DEFAULT_REFINANCING_MONTHS,
3408
3416
  moneyExtra: REFINANCING_OLD_DEFAULT_SUM,
3409
3417
  });
3410
- const calculatorParams = getRefinancingCalculatorParams(userInputParams, calcSource, paramsViewSettings);
3418
+ const calcParams = getRefinancingCalculatorParams(userInputParams, calcSource, paramsViewSettings);
3411
3419
  const paymentTypeElement = renderPaymentType({
3412
3420
  title: '',
3413
3421
  mobileTitle: 'Тип платежа',
3414
3422
  orientation: 'vertical',
3415
3423
  ...field('isAnnuity'),
3416
3424
  });
3417
- return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, CalculatorStyle.gapL, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
3425
+ return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
3418
3426
  title: 'Остаток долга в других банках, ₽ ',
3419
3427
  step: 500,
3420
- min: calculatorParams.minSum,
3421
- max: calculatorParams.maxSum - calculatorParams.maxSumExtra,
3428
+ min: calcParams.minSum,
3429
+ max: calcParams.maxSum - calcParams.maxSumExtra,
3422
3430
  ...field('moneyValue'),
3423
- value: calculatorParams.moneyValue,
3431
+ value: calcParams.moneyValue,
3424
3432
  }), renderWantedSumInput({
3425
3433
  title: 'Ежемесячный платёж в других банках, ₽',
3426
3434
  step: 500,
3427
- min: calculatorParams.minSumOld,
3428
- max: calculatorParams.maxSumOld,
3435
+ min: calcParams.minSumOld,
3436
+ max: calcParams.maxSumOld,
3429
3437
  ...field('oldMonthlyPayment'),
3430
- value: calculatorParams.oldMonthlyPayment,
3438
+ value: calcParams.oldMonthlyPayment,
3431
3439
  }), renderMonthsInput({
3432
3440
  title: 'Новый срок кредита, месяцев',
3433
- min: calculatorParams.minMonths,
3434
- max: calculatorParams.maxMonths,
3441
+ min: calcParams.minMonths,
3442
+ max: calcParams.maxMonths,
3435
3443
  ...field('monthsValue'),
3436
- value: calculatorParams.monthsValue,
3437
- }), renderCreditParamsForm({ ...calculatorParams, ...paramsViewSettings }, field), calculatorParams.isExtraMoney
3444
+ value: calcParams.monthsValue,
3445
+ }), renderCreditParamsForm({ ...calcParams, ...paramsViewSettings }, field), calcParams.isExtraMoney
3438
3446
  ? renderWantedSumInput({
3439
3447
  title: 'Дополнительная сумма, ₽ ',
3440
3448
  step: 500,
3441
- min: calculatorParams.minSumExtra,
3442
- max: calculatorParams.maxSumExtra,
3449
+ min: calcParams.minSumExtra,
3450
+ max: calcParams.maxSumExtra,
3443
3451
  ...field('moneyExtra'),
3444
- value: calculatorParams.moneyExtra,
3452
+ value: calcParams.moneyExtra,
3445
3453
  })
3446
- : null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), calculatorParams.benefit > 0 ? (jsx(CalculatorValueBlock, { title: 'Выгода в месяц', value: calculatorParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
3454
+ : null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", value: calcParams?.rate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: 'Выгода в месяц', value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
3447
3455
  });
3448
3456
  const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
3449
3457
 
@@ -3970,7 +3978,7 @@
3970
3978
  text: _?.currency?.currency ?? '',
3971
3979
  }));
3972
3980
  const selectedValue = { key: selected, text: selected };
3973
- return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none -mr-20", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
3981
+ return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none -mr-20", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { className: "absolute right-0", isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
3974
3982
  }
3975
3983
 
3976
3984
  const ExchangeCurrencyCalculator = JSX(({ className = '', currencyRatesBuy, currencyRatesSell, button }) => {
@@ -6505,7 +6513,7 @@
6505
6513
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6506
6514
  });
6507
6515
 
6508
- const packageVersion = "0.14.539";
6516
+ const packageVersion = "0.14.541";
6509
6517
 
6510
6518
  exports.Blocks = Blocks;
6511
6519
  exports.ContentPage = ContentPage;