@redneckz/wildless-cms-uni-blocks 0.14.779 → 0.14.788

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 (294) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +178 -122
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
  5. package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
  6. package/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
  7. package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
  8. package/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
  9. package/bundle/components/CalculatorDeposit/normalize.d.ts +2 -3
  10. package/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  11. package/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
  12. package/bundle/retail/components/Fields/AddressCourierField.d.ts +9 -0
  13. package/bundle/retail/inputs.d.ts +77 -76
  14. package/bundle/retail/model/LeadFormState.d.ts +2 -2
  15. package/bundle/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
  16. package/bundle/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
  17. package/bundle/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
  18. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
  19. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  20. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
  21. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
  22. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
  23. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  24. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
  25. package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  26. package/dist/components/CalculatorCredit/CalculatorCredit.js +0 -2
  27. package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  28. package/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
  29. package/dist/components/CalculatorDeposit/CalculatorDeposit.js +16 -7
  30. package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  31. package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
  32. package/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
  33. package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  34. package/dist/components/CalculatorDeposit/normalize.d.ts +2 -3
  35. package/dist/components/CalculatorDeposit/normalize.js.map +1 -1
  36. package/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  37. package/dist/components/CalculatorDeposit/renderDepositParamsForm.js +30 -41
  38. package/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  39. package/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
  40. package/dist/components/CalculatorDeposit/renderRegistrationType.js +11 -7
  41. package/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
  42. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
  43. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  44. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
  45. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  46. package/dist/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  47. package/dist/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  48. package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  49. package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  50. package/dist/retail/components/Fields/AddressCourierField.d.ts +9 -0
  51. package/dist/retail/components/Fields/AddressCourierField.js +50 -0
  52. package/dist/retail/components/Fields/AddressCourierField.js.map +1 -0
  53. package/dist/retail/inputs.d.ts +77 -76
  54. package/dist/retail/inputs.js +6 -1
  55. package/dist/retail/inputs.js.map +1 -1
  56. package/dist/retail/model/LeadFormState.d.ts +2 -2
  57. package/dist/ui-kit/Calculator/Rate.js +1 -1
  58. package/dist/ui-kit/Calculator/Rate.js.map +1 -1
  59. package/dist/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
  60. package/dist/ui-kit/Calculator/getDefaultParams.js +7 -1
  61. package/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  62. package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
  63. package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  64. package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  65. package/dist/ui-kit/Calculator/renderPaymentType.js +2 -0
  66. package/dist/ui-kit/Calculator/renderPaymentType.js.map +1 -1
  67. package/dist/ui-kit/Calculator/renderPayout.js +2 -0
  68. package/dist/ui-kit/Calculator/renderPayout.js.map +1 -1
  69. package/dist/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
  70. package/lib/common.css +1 -1
  71. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
  72. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  73. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
  74. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
  75. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
  76. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  77. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
  78. package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  79. package/lib/components/CalculatorCredit/CalculatorCredit.js +0 -2
  80. package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  81. package/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
  82. package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.d.ts +1 -0
  83. package/lib/components/CalculatorDeposit/CalculatorDeposit.js +17 -8
  84. package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  85. package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
  86. package/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
  87. package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  88. package/lib/components/CalculatorDeposit/normalize.d.ts +2 -3
  89. package/lib/components/CalculatorDeposit/normalize.js.map +1 -1
  90. package/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  91. package/lib/components/CalculatorDeposit/renderDepositParamsForm.js +32 -43
  92. package/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  93. package/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
  94. package/lib/components/CalculatorDeposit/renderRegistrationType.js +11 -7
  95. package/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
  96. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
  97. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  98. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
  99. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  100. package/lib/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  101. package/lib/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  102. package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  103. package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  104. package/lib/retail/components/Fields/AddressCourierField.d.ts +9 -0
  105. package/lib/retail/components/Fields/AddressCourierField.js +48 -0
  106. package/lib/retail/components/Fields/AddressCourierField.js.map +1 -0
  107. package/lib/retail/inputs.d.ts +77 -76
  108. package/lib/retail/inputs.js +6 -1
  109. package/lib/retail/inputs.js.map +1 -1
  110. package/lib/retail/model/LeadFormState.d.ts +2 -2
  111. package/lib/ui-kit/Calculator/Rate.js +1 -1
  112. package/lib/ui-kit/Calculator/Rate.js.map +1 -1
  113. package/lib/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
  114. package/lib/ui-kit/Calculator/getDefaultParams.js +7 -1
  115. package/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  116. package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
  117. package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  118. package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  119. package/lib/ui-kit/Calculator/renderPaymentType.js +2 -0
  120. package/lib/ui-kit/Calculator/renderPaymentType.js.map +1 -1
  121. package/lib/ui-kit/Calculator/renderPayout.js +2 -0
  122. package/lib/ui-kit/Calculator/renderPayout.js.map +1 -1
  123. package/lib/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
  124. package/mobile/bundle/bundle.umd.js +178 -122
  125. package/mobile/bundle/bundle.umd.min.js +1 -1
  126. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
  127. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
  128. package/mobile/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
  129. package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
  130. package/mobile/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
  131. package/mobile/bundle/components/CalculatorDeposit/normalize.d.ts +2 -3
  132. package/mobile/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  133. package/mobile/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
  134. package/mobile/bundle/retail/components/Fields/AddressCourierField.d.ts +9 -0
  135. package/mobile/bundle/retail/inputs.d.ts +77 -76
  136. package/mobile/bundle/retail/model/LeadFormState.d.ts +2 -2
  137. package/mobile/bundle/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
  138. package/mobile/bundle/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
  139. package/mobile/bundle/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
  140. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
  141. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  142. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
  143. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
  144. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
  145. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  146. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
  147. package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  148. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +0 -2
  149. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  150. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
  151. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +16 -7
  152. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  153. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
  154. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
  155. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  156. package/mobile/dist/components/CalculatorDeposit/normalize.d.ts +2 -3
  157. package/mobile/dist/components/CalculatorDeposit/normalize.js.map +1 -1
  158. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  159. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js +30 -41
  160. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  161. package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
  162. package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js +11 -7
  163. package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
  164. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
  165. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  166. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
  167. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  168. package/mobile/dist/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  169. package/mobile/dist/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  170. package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  171. package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  172. package/mobile/dist/retail/components/Fields/AddressCourierField.d.ts +9 -0
  173. package/mobile/dist/retail/components/Fields/AddressCourierField.js +50 -0
  174. package/mobile/dist/retail/components/Fields/AddressCourierField.js.map +1 -0
  175. package/mobile/dist/retail/inputs.d.ts +77 -76
  176. package/mobile/dist/retail/inputs.js +6 -1
  177. package/mobile/dist/retail/inputs.js.map +1 -1
  178. package/mobile/dist/retail/model/LeadFormState.d.ts +2 -2
  179. package/mobile/dist/ui-kit/Calculator/Rate.js +1 -1
  180. package/mobile/dist/ui-kit/Calculator/Rate.js.map +1 -1
  181. package/mobile/dist/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
  182. package/mobile/dist/ui-kit/Calculator/getDefaultParams.js +7 -1
  183. package/mobile/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  184. package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
  185. package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  186. package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  187. package/mobile/dist/ui-kit/Calculator/renderPaymentType.js +2 -0
  188. package/mobile/dist/ui-kit/Calculator/renderPaymentType.js.map +1 -1
  189. package/mobile/dist/ui-kit/Calculator/renderPayout.js +2 -0
  190. package/mobile/dist/ui-kit/Calculator/renderPayout.js.map +1 -1
  191. package/mobile/dist/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
  192. package/mobile/lib/common.css +1 -1
  193. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
  194. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  195. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
  196. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
  197. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
  198. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  199. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
  200. package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
  201. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +0 -2
  202. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  203. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
  204. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +17 -8
  205. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  206. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
  207. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
  208. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  209. package/mobile/lib/components/CalculatorDeposit/normalize.d.ts +2 -3
  210. package/mobile/lib/components/CalculatorDeposit/normalize.js.map +1 -1
  211. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
  212. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js +32 -43
  213. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  214. package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
  215. package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js +11 -7
  216. package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
  217. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
  218. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  219. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
  220. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  221. package/mobile/lib/retail/components/DocumentDialog/DocumentDialog.js +1 -1
  222. package/mobile/lib/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
  223. package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
  224. package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  225. package/mobile/lib/retail/components/Fields/AddressCourierField.d.ts +9 -0
  226. package/mobile/lib/retail/components/Fields/AddressCourierField.js +48 -0
  227. package/mobile/lib/retail/components/Fields/AddressCourierField.js.map +1 -0
  228. package/mobile/lib/retail/inputs.d.ts +77 -76
  229. package/mobile/lib/retail/inputs.js +6 -1
  230. package/mobile/lib/retail/inputs.js.map +1 -1
  231. package/mobile/lib/retail/model/LeadFormState.d.ts +2 -2
  232. package/mobile/lib/ui-kit/Calculator/Rate.js +1 -1
  233. package/mobile/lib/ui-kit/Calculator/Rate.js.map +1 -1
  234. package/mobile/lib/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
  235. package/mobile/lib/ui-kit/Calculator/getDefaultParams.js +7 -1
  236. package/mobile/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  237. package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
  238. package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
  239. package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
  240. package/mobile/lib/ui-kit/Calculator/renderPaymentType.js +2 -0
  241. package/mobile/lib/ui-kit/Calculator/renderPaymentType.js.map +1 -1
  242. package/mobile/lib/ui-kit/Calculator/renderPayout.js +2 -0
  243. package/mobile/lib/ui-kit/Calculator/renderPayout.js.map +1 -1
  244. package/mobile/lib/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
  245. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -0
  246. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  247. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +13 -1
  248. package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +0 -3
  249. package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +0 -2
  250. package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +38 -15
  251. package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +41 -0
  252. package/mobile/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +3 -39
  253. package/mobile/src/components/CalculatorDeposit/normalize.tsx +1 -2
  254. package/mobile/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +65 -52
  255. package/mobile/src/components/CalculatorDeposit/renderRegistrationType.tsx +15 -8
  256. package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -4
  257. package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +1 -1
  258. package/mobile/src/retail/components/DocumentDialog/DocumentDialog.tsx +1 -1
  259. package/mobile/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +8 -3
  260. package/mobile/src/retail/components/Fields/AddressCourierField.tsx +74 -0
  261. package/mobile/src/retail/inputs.tsx +10 -1
  262. package/mobile/src/retail/model/LeadFormState.ts +2 -2
  263. package/mobile/src/ui-kit/Calculator/Rate.tsx +1 -1
  264. package/mobile/src/ui-kit/Calculator/getDefaultParams.tsx +13 -6
  265. package/mobile/src/ui-kit/Calculator/renderBinaryRadioButtonGroup.tsx +2 -11
  266. package/mobile/src/ui-kit/Calculator/renderPaymentType.tsx +2 -0
  267. package/mobile/src/ui-kit/Calculator/renderPayout.tsx +2 -0
  268. package/mobile/src/ui-kit/Calculator/setDefaultParamsCalc.tsx +1 -1
  269. package/package.json +1 -1
  270. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -0
  271. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  272. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +13 -1
  273. package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +0 -3
  274. package/src/components/CalculatorCredit/CalculatorCredit.tsx +0 -2
  275. package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.tsx +12 -0
  276. package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +38 -15
  277. package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +41 -0
  278. package/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +3 -39
  279. package/src/components/CalculatorDeposit/normalize.tsx +1 -2
  280. package/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +65 -52
  281. package/src/components/CalculatorDeposit/renderRegistrationType.tsx +15 -8
  282. package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -4
  283. package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +1 -1
  284. package/src/retail/components/DocumentDialog/DocumentDialog.tsx +1 -1
  285. package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +8 -3
  286. package/src/retail/components/Fields/AddressCourierField.tsx +74 -0
  287. package/src/retail/inputs.tsx +10 -1
  288. package/src/retail/model/LeadFormState.ts +2 -2
  289. package/src/ui-kit/Calculator/Rate.tsx +1 -1
  290. package/src/ui-kit/Calculator/getDefaultParams.tsx +13 -6
  291. package/src/ui-kit/Calculator/renderBinaryRadioButtonGroup.tsx +2 -11
  292. package/src/ui-kit/Calculator/renderPaymentType.tsx +2 -0
  293. package/src/ui-kit/Calculator/renderPayout.tsx +2 -0
  294. package/src/ui-kit/Calculator/setDefaultParamsCalc.tsx +1 -1
@@ -2854,6 +2854,97 @@
2854
2854
  const normalizeInteger = (val = '') => val.replace(/[^\d]+/g, '');
2855
2855
  const getPlaceholder = (placeholder, errors, label) => errors && !label ? `${placeholder}*` : placeholder;
2856
2856
 
2857
+ const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
2858
+ const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
2859
+
2860
+ const AddressField = JSX(({ field, input }) => {
2861
+ const fieldName = input?.name || 'addressRegistration';
2862
+ const fieldValue = field(fieldName).value;
2863
+ const onDaDataChange = useCallback((item) => {
2864
+ field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
2865
+ }, []);
2866
+ const onChange = useCallback((value) => {
2867
+ field?.(fieldName)?.onChange?.({
2868
+ apartment: '',
2869
+ city: '',
2870
+ district: '',
2871
+ fullAddress: value,
2872
+ fiasCode: '',
2873
+ house: '',
2874
+ locality: '',
2875
+ okatoRegionCode: '',
2876
+ postcode: '',
2877
+ region: '',
2878
+ regionCode: '',
2879
+ street: '',
2880
+ qc: '',
2881
+ qcComplete: '',
2882
+ qcHouse: '',
2883
+ });
2884
+ }, []);
2885
+ return (jsx(DaDataInputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, fieldName), label: "\u0410\u0434\u0440\u0435\u0441", ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
2886
+ });
2887
+ const getAddressFromDaDataItem = (item) => ({
2888
+ apartment: item?.data?.flat,
2889
+ city: item?.data?.city,
2890
+ district: item?.data?.area_with_type,
2891
+ fullAddress: item?.unrestricted_value,
2892
+ fiasCode: item?.data?.fias_id,
2893
+ house: item?.data?.house,
2894
+ locality: item?.data?.settlement_with_type,
2895
+ okatoRegionCode: item?.data?.okato,
2896
+ postcode: item?.data?.postal_code,
2897
+ region: item?.data?.region,
2898
+ regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
2899
+ street: item?.data?.street,
2900
+ qc: item?.data?.qc,
2901
+ qcComplete: item?.data?.qc_complete,
2902
+ qcHouse: item?.data?.qc_house,
2903
+ });
2904
+
2905
+ const AddressCourierField = UniBlock(({ field, input, source }) => {
2906
+ const [errorCity, setErrorCity] = useState('');
2907
+ const fieldValue = field('addressCourier')?.value;
2908
+ const currentLocality = fieldValue?.locality;
2909
+ const currentCity = fieldValue?.city;
2910
+ useEffect(() => {
2911
+ if ((currentCity || currentLocality) &&
2912
+ !source?.deliveryCities?.includes(currentCity)) {
2913
+ field?.('addressCourier')?.onChange?.({
2914
+ ...fieldValue,
2915
+ house: '',
2916
+ });
2917
+ setErrorCity('Город недоступен для доставки');
2918
+ }
2919
+ else {
2920
+ setErrorCity('');
2921
+ }
2922
+ }, [currentCity, currentLocality, source]);
2923
+ const onDaDataChange = useCallback((item) => {
2924
+ field?.('addressCourier')?.onChange?.(getAddressFromDaDataItem(item));
2925
+ }, []);
2926
+ const onChange = useCallback((value) => {
2927
+ field?.('addressCourier')?.onChange?.({
2928
+ apartment: '',
2929
+ city: '',
2930
+ district: '',
2931
+ fullAddress: value,
2932
+ fiasCode: '',
2933
+ house: '',
2934
+ locality: '',
2935
+ okatoRegionCode: '',
2936
+ postcode: '',
2937
+ region: '',
2938
+ regionCode: '',
2939
+ street: '',
2940
+ qc: '',
2941
+ qcComplete: '',
2942
+ qcHouse: '',
2943
+ });
2944
+ }, []);
2945
+ return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...field('addressCourier'), value: fieldValue?.fullAddress, onChange: onChange, ...input, error: errorCity || field('addressCourier')?.error, onDaDataChange: onDaDataChange }));
2946
+ });
2947
+
2857
2948
  const AddressFactField = JSX(({ field, input }) => {
2858
2949
  const fieldName = 'addressFact';
2859
2950
  const fieldValue = field(fieldName).value;
@@ -2904,54 +2995,6 @@
2904
2995
  return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", disabled: value, ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
2905
2996
  });
2906
2997
 
2907
- const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
2908
- const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
2909
-
2910
- const AddressField = JSX(({ field, input }) => {
2911
- const fieldName = input?.name || 'addressRegistration';
2912
- const fieldValue = field(fieldName).value;
2913
- const onDaDataChange = useCallback((item) => {
2914
- field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
2915
- }, []);
2916
- const onChange = useCallback((value) => {
2917
- field?.(fieldName)?.onChange?.({
2918
- apartment: '',
2919
- city: '',
2920
- district: '',
2921
- fullAddress: value,
2922
- fiasCode: '',
2923
- house: '',
2924
- locality: '',
2925
- okatoRegionCode: '',
2926
- postcode: '',
2927
- region: '',
2928
- regionCode: '',
2929
- street: '',
2930
- qc: '',
2931
- qcComplete: '',
2932
- qcHouse: '',
2933
- });
2934
- }, []);
2935
- return (jsx(DaDataInputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, fieldName), label: "\u0410\u0434\u0440\u0435\u0441", ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
2936
- });
2937
- const getAddressFromDaDataItem = (item) => ({
2938
- apartment: item?.data?.flat,
2939
- city: item?.data?.city,
2940
- district: item?.data?.area_with_type,
2941
- fullAddress: item?.unrestricted_value,
2942
- fiasCode: item?.data?.fias_id,
2943
- house: item?.data?.house,
2944
- locality: item?.data?.settlement_with_type,
2945
- okatoRegionCode: item?.data?.okato,
2946
- postcode: item?.data?.postal_code,
2947
- region: item?.data?.region,
2948
- regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
2949
- street: item?.data?.street,
2950
- qc: item?.data?.qc,
2951
- qcComplete: item?.data?.qc_complete,
2952
- qcHouse: item?.data?.qc_house,
2953
- });
2954
-
2955
2998
  const AddressMatchField = JSX(({ field, input }) => {
2956
2999
  return (jsx(CheckboxWithError, { text: "\u0410\u0434\u0440\u0435\u0441 \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0435\u0442 \u0441 \u0430\u0434\u0440\u0435\u0441\u043E\u043C \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438", ...field(input?.name ?? '') }));
2957
3000
  });
@@ -3831,7 +3874,7 @@
3831
3874
 
3832
3875
  const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
3833
3876
  const isMobileMode = useMobileMode();
3834
- return (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [isMobileMode ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: () => {
3877
+ return (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0 z-[101]", onClose: onClose, children: [isMobileMode ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: () => {
3835
3878
  onDocumentRead?.();
3836
3879
  onClose?.();
3837
3880
  }, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
@@ -3883,7 +3926,13 @@
3883
3926
  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: "-" })] })));
3884
3927
 
3885
3928
  const getDefaultParamsMin = (rateRows) => getDefaultParams([(i, acc) => i < acc, (i, prev) => i?.maxSum > prev?.maxSum], rateRows);
3886
- const getDefaultParamsMax = (rateRows = [], isNewClient = false) => getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient)));
3929
+ const getDefaultParamsMax = (rateRows = [], isNewClient = false, extraPercents = []) => {
3930
+ return {
3931
+ ...getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient))),
3932
+ extraPercent: extraPercents.at(-1),
3933
+ extraPercents,
3934
+ };
3935
+ };
3887
3936
  const getDefaultParams = (comparators, rateRows) => {
3888
3937
  if (!rateRows?.length) {
3889
3938
  return undefined;
@@ -3916,10 +3965,12 @@
3916
3965
  const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => (jsx(InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
3917
3966
  const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
3918
3967
 
3919
- const renderBinaryRadioButtonGroup = ({ items, title, mobileTitle = title, orientation = 'horizontal', value, onChange, ...rest }) => (jsxs("div", { className: "grid gap-s whitespace-nowrap", children: [title ? (jsx("div", { className: "hidden @5xl:block", role: "radiogroup", "aria-label": title, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, mobileTitle ? (jsx("div", { className: "@5xl:hidden", role: "radiogroup", "aria-label": mobileTitle, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: mobileTitle }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, value: items[value ? 0 : 1].id, onChange: (_) => onChange && onChange(_ === items[0].id), ...rest })] }));
3968
+ const renderBinaryRadioButtonGroup = ({ items, title, orientation = 'horizontal', value, onChange, ...rest }) => (jsxs("div", { className: "grid gap-s whitespace-nowrap lg:sm:col-span-1 col-span-2", children: [title ? (jsx("div", { role: "radiogroup", "aria-label": title, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, value: items[value ? 0 : 1].id, onChange: (_) => onChange && onChange(_ === items[0].id), ...rest })] }));
3920
3969
 
3921
3970
  const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
3922
3971
  ...props,
3972
+ title: 'Тип платежа',
3973
+ orientation: 'vertical',
3923
3974
  className: 'sm:flex-col',
3924
3975
  items: [
3925
3976
  { id: 'annuity', text: 'Аннуитетный' },
@@ -4097,8 +4148,6 @@
4097
4148
  }, { onChange });
4098
4149
  const calcParams = getCreditCalculatorParams(userInputParams, calcSource, paramsViewSettings);
4099
4150
  const paymentTypeElement = renderPaymentType({
4100
- title: 'Тип платежа',
4101
- orientation: 'vertical',
4102
4151
  ...field('isAnnuity'),
4103
4152
  });
4104
4153
  const { onChange: setMoneyValue } = field('moneyValue');
@@ -4713,6 +4762,9 @@
4713
4762
 
4714
4763
  const WagesField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input })));
4715
4764
 
4765
+ const DELIVERY_CITIES_REF = {
4766
+ $ref: '/wcms-resources/delivery-cities-data.json',
4767
+ };
4716
4768
  const InputsApplicationLeadMap = {
4717
4769
  limitedBirthday: LimitedBirthdayField,
4718
4770
  name: NameField,
@@ -4787,7 +4839,7 @@
4787
4839
  inn: DaDataInnField,
4788
4840
  };
4789
4841
  const InputRetailCardMap = {
4790
- addressCourier: AddressField,
4842
+ addressCourier: (props) => (jsx(AddressCourierField, { ...props, source: DELIVERY_CITIES_REF })),
4791
4843
  paymentSystem: PaymentSystemField,
4792
4844
  currency: CurrencyField,
4793
4845
  cardCategory: CardCategoryField,
@@ -5242,7 +5294,7 @@
5242
5294
  armyIdFlg,
5243
5295
  };
5244
5296
  };
5245
- const countIncomeAverage = (wages, retirementIncome) => Number(wages) + Number(retirementIncome);
5297
+ const countIncomeAverage = (wages, retirementIncome) => Number(wages ?? 0) + Number(retirementIncome ?? 0);
5246
5298
 
5247
5299
  /* eslint-disable camelcase */
5248
5300
  const EMPLOYMENT_TYPE = {
@@ -5461,7 +5513,7 @@
5461
5513
  }
5462
5514
  onClose?.();
5463
5515
  }, []);
5464
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex flex-wrap gap-lg w-full", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
5516
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "@container flex flex-wrap gap-lg w-full", children: [jsx(Button, { type: "button", onClick: handleAuth, className: "w-full md:w-auto", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, className: "w-full md:w-auto", children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
5465
5517
  });
5466
5518
 
5467
5519
  const useEsiaLoginDialog = (nextStepLink) => {
@@ -5571,10 +5623,12 @@
5571
5623
  };
5572
5624
 
5573
5625
  /* eslint-disable max-lines */
5574
- const useApplicationLeadApi = ({ programId, nextStepLink, productType, }) => {
5626
+ // eslint-disable-next-line max-lines-per-function
5627
+ const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, }) => {
5575
5628
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
5576
5629
  const [ok, setOK] = useState();
5577
5630
  const saveUserData = useSaveUserData();
5631
+ const aspects = useAspects();
5578
5632
  const openEsiaLoginDialog = useEsiaLoginDialog(nextStepLink);
5579
5633
  const consentBkiDialog = useConsentBkiDialog(openEsiaLoginDialog);
5580
5634
  const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
@@ -5594,6 +5648,11 @@
5594
5648
  productType,
5595
5649
  saveUserData,
5596
5650
  });
5651
+ handleAspects({
5652
+ aspectsAttributes: data,
5653
+ aspects,
5654
+ ev: {},
5655
+ });
5597
5656
  verifyPhoneDialog.close();
5598
5657
  if (productType === 'debitCard') {
5599
5658
  openEsiaLoginDialog();
@@ -5835,7 +5894,7 @@
5835
5894
  return [initialFormState, { isLoading }];
5836
5895
  };
5837
5896
 
5838
- const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', ...rest }) => {
5897
+ const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
5839
5898
  const applicationFormData = useMemo(() => getApplicationFormData(productType), [productType]);
5840
5899
  const inputs = useMemo(() => (applicationFormData?.flatMap((_) => _?.inputs) || []), [applicationFormData]);
5841
5900
  const formValidator = useMemo(() => getFormValidator(inputs, validatorObj), [inputs]);
@@ -5844,6 +5903,7 @@
5844
5903
  programId,
5845
5904
  nextStepLink,
5846
5905
  productType,
5906
+ data,
5847
5907
  });
5848
5908
  const [, { field, onSubmit }] = useForm(initialFormState, {
5849
5909
  formValidator,
@@ -6312,7 +6372,7 @@
6312
6372
  return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
6313
6373
  });
6314
6374
 
6315
- const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName, color = 'text-secondary-text', }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: color, children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex @xl:justify-center gradient-color-text", children: [jsx("span", { className: "font-mohave text-title-huge -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl mt-5", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
6375
+ const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName, color = 'text-secondary-text', }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: color, children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex @xl:justify-center gradient-color-text gap-xs", children: [jsx("span", { className: "font-mohave text-title-huge -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl mt-5", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
6316
6376
 
6317
6377
  const UnknownRate = JSX(({ title = 'Ставка' }) => (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-auto lg:w-40", name: "PercentIcon" }), jsx("div", { className: "w-64", children: jsx(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 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }) })] })));
6318
6378
 
@@ -6402,6 +6462,8 @@
6402
6462
 
6403
6463
  const renderPayout = (props) => renderBinaryRadioButtonGroup({
6404
6464
  ...props,
6465
+ title: 'Выплата процентов',
6466
+ orientation: 'vertical',
6405
6467
  items: [
6406
6468
  { id: 'everyMonth', text: 'Ежемесячно' },
6407
6469
  { id: 'atEndTerm', text: 'В конце срока' },
@@ -6502,10 +6564,7 @@
6502
6564
  ...field('daysValue'),
6503
6565
  value: calculatorParams.daysValue,
6504
6566
  }), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-m gap-x-5xl", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderPayout({
6505
- title: 'Выплата процентов',
6506
- orientation: 'vertical',
6507
6567
  ...field('isMonthlyInterestPayment'),
6508
- className: 'sm:flex-col',
6509
6568
  })] })] }), renderRate({
6510
6569
  rate,
6511
6570
  depositeName,
@@ -6650,57 +6709,48 @@
6650
6709
  return rates ?? rows?.[0]?.rates;
6651
6710
  };
6652
6711
 
6653
- const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
6654
- ...props,
6655
- items: [
6656
- { id: 'remote', text: 'Дистанционно' },
6657
- { id: 'office', text: 'Офис Банка' },
6658
- ],
6659
- });
6712
+ const renderRegistrationType = (props, isShow = false) => isShow
6713
+ ? renderBinaryRadioButtonGroup({
6714
+ ...props,
6715
+ title: 'Оформление',
6716
+ orientation: 'vertical',
6717
+ items: [
6718
+ { id: 'remote', text: 'Дистанционно' },
6719
+ { id: 'office', text: 'Офис Банка' },
6720
+ ],
6721
+ })
6722
+ : null;
6660
6723
 
6661
- const renderDepositParamsForm = (params, field) => {
6724
+ const renderDepositParamsForm = (params, field, extraPercents) => {
6662
6725
  const isCurrency = params?.currency?.key !== 'rub';
6663
- return (jsxs("div", { className: "grid gap-lg", children: [jsxs("div", { className: "flex gap-lg", children: [params.isShowReplenish
6664
- ? renderBinaryRadioButtonGroup({
6665
- title: 'Пополнение',
6666
- ...field('isReplenish'),
6667
- value: params.isReplenish,
6668
- orientation: 'vertical',
6669
- items: [
6670
- { id: 'withReplenish', text: 'С пополнением' },
6671
- { id: 'withoutReplenish', text: 'Без пополнения' },
6672
- ],
6673
- disabled: isCurrency,
6674
- })
6675
- : null, params.isShowWithdrawn
6676
- ? renderBinaryRadioButtonGroup({
6677
- title: 'Снятие',
6678
- ...field('isWithdrawn'),
6679
- value: params.isWithdrawn,
6680
- orientation: 'vertical',
6681
- items: [
6682
- { id: 'wthDrawn', text: 'Со снятием' },
6683
- { id: 'noWithdrawn', text: 'Без снятия' },
6684
- ],
6685
- disabled: isCurrency,
6686
- })
6687
- : null] }), renderSeparator(params.isShowReplenish || params.isShowWithdrawn), jsxs("div", { className: "flex gap-lg", children: [params.isShowMonthlyInterestPayment
6688
- ? renderPayout({
6689
- title: 'Выплата процентов',
6690
- ...field('isMonthlyInterestPayment'),
6691
- value: params.isMonthlyInterestPayment,
6692
- orientation: 'vertical',
6693
- })
6694
- : null, params.isShowRemoteRegistration
6695
- ? renderRegistrationType({
6696
- title: 'Оформление',
6697
- ...field('isRemoteRegistration'),
6698
- value: params.isRemoteRegistration,
6699
- orientation: 'vertical',
6700
- })
6701
- : null] }), renderSeparator(params.isShowNewClient), params.isShowNewClient ? jsx(Checkbox, { text: "\u041D\u043E\u0432\u044B\u0439 \u0432\u043A\u043B\u0430\u0434\u0447\u0438\u043A", ...field('isNewClient') }) : null] }));
6726
+ return (jsxs("div", { className: "grid grid-cols-2 gap-lg", children: [renderReplenish(field('isReplenish'), params, isCurrency), renderWithdrawn(field('isWithdrawn'), params, isCurrency), renderSeparator(params.isShowReplenish || params.isShowWithdrawn), params.isShowMonthlyInterestPayment ? renderPayout(field('isMonthlyInterestPayment')) : null, renderRegistrationType(field('isRemoteRegistration'), params.isShowRemoteRegistration), renderExtraPercents(field('extraPercent'), extraPercents), params.isShowNewClient ? jsx(Checkbox, { text: "\u041D\u043E\u0432\u044B\u0439 \u0432\u043A\u043B\u0430\u0434\u0447\u0438\u043A", ...field('isNewClient') }) : null] }));
6702
6727
  };
6703
- const renderSeparator = (isShow = false) => isShow ? jsx("div", { className: "border-b border-main-divider w-full" }) : null;
6728
+ const renderReplenish = (props, params, isCurrency = false) => params.isShowReplenish
6729
+ ? renderBinaryRadioButtonGroup({
6730
+ ...props,
6731
+ title: 'Пополнение',
6732
+ orientation: 'vertical',
6733
+ items: [
6734
+ { id: 'withReplenish', text: 'С пополнением' },
6735
+ { id: 'withoutReplenish', text: 'Без пополнения' },
6736
+ ],
6737
+ disabled: isCurrency,
6738
+ })
6739
+ : null;
6740
+ const renderWithdrawn = (props, params, isCurrency = false) => params.isShowWithdrawn
6741
+ ? renderBinaryRadioButtonGroup({
6742
+ ...props,
6743
+ title: 'Снятие',
6744
+ orientation: 'vertical',
6745
+ items: [
6746
+ { id: 'wthDrawn', text: 'Со снятием' },
6747
+ { id: 'noWithdrawn', text: 'Без снятия' },
6748
+ ],
6749
+ disabled: isCurrency,
6750
+ })
6751
+ : null;
6752
+ const renderSeparator = (isShow = false) => isShow ? jsx("div", { className: "border-b border-main-divider col-span-2 w-full" }) : null;
6753
+ const renderExtraPercents = (props, extraPercents) => extraPercents?.length ? (jsxs("div", { className: "w-full space-y-s col-span-2", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041D\u0430\u0434\u0431\u0430\u0432\u043A\u0430 \u0437\u0430 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043A\u0430\u0440\u0442\u0435" }), jsx(Select, { options: extraPercents, ...props })] })) : null;
6704
6754
 
6705
6755
  const MAP = {
6706
6756
  isMonthlyInterestPayment: 'isMonthlyInterestPayment',
@@ -6708,6 +6758,7 @@
6708
6758
  isReplenish: 'isReplenish',
6709
6759
  isWithdrawn: 'isWithdrawn',
6710
6760
  moneyValue: 'minSum',
6761
+ extraPercent: 'extraPercent',
6711
6762
  };
6712
6763
  const DEFAULT_CURRENCY = {
6713
6764
  text: '₽',
@@ -6715,6 +6766,7 @@
6715
6766
  };
6716
6767
  const DEPOSIT_DEFAULT_SUM = 20000;
6717
6768
  const DEPOSIT_DEFAULT_MONTHS = 1;
6769
+ const DEPOSIT_DEFAULT_EXTRA_PERCENT = { text: 'Без учета надбавки', key: '0' };
6718
6770
  const CalculatorDeposit = UniBlock(({ className, title, calcSource, buttons = [], footnote = '', paramsViewSettings, defaultParams, ...rest }) => {
6719
6771
  const { rows } = calcSource ?? {};
6720
6772
  const currencyOptions = rows?.map((_) => _.currency) ?? [DEFAULT_CURRENCY];
@@ -6728,27 +6780,32 @@
6728
6780
  isWithdrawn: Boolean(defaultParams?.isWithdrawn),
6729
6781
  isNewClient: Boolean(defaultParams?.isNewClient),
6730
6782
  currency: DEFAULT_CURRENCY,
6783
+ extraPercent: defaultParams?.extraPercent ?? DEPOSIT_DEFAULT_EXTRA_PERCENT,
6731
6784
  }, { normalizer: normalize });
6732
- const currencyValue = field?.('currency')?.value ?? DEFAULT_CURRENCY;
6733
- const isNewClient = field?.('isNewClient')?.value;
6785
+ const currencyValue = getCurrencyValue(field);
6786
+ const isNewClient = Boolean(field?.('isNewClient')?.value);
6787
+ const extraPercents = rows?.find((_) => _?.extraPercents)?.extraPercents;
6734
6788
  const row = getRows(rows, currencyValue);
6735
6789
  const calcParams = getDepositCalculatorParams(userInputParams, row, paramsViewSettings);
6736
6790
  const { rate, income, finalSum, type = '' } = calcParams;
6737
6791
  const handleDefaultParamsCals = useCallback(() => {
6738
6792
  setDefaultParamsCalc({
6739
6793
  field,
6740
- defParams: getDefaultParamsMax(row, isNewClient),
6794
+ defParams: getDefaultParamsMax(row, isNewClient, extraPercents),
6741
6795
  calcParams,
6742
6796
  monthsValue: 'minMonths',
6743
6797
  map: MAP,
6744
6798
  });
6745
- }, [field, rows]);
6799
+ }, [field, rows, extraPercents]);
6746
6800
  useEffect(() => {
6747
6801
  if (!isDefaultParams(defaultParams) && row) {
6748
6802
  handleDefaultParamsCals();
6749
6803
  }
6750
6804
  }, [defaultParams, rows]);
6751
- const isMaxRate = rate === getDefaultParamsMax(row, isNewClient)?.rate;
6805
+ const extraRate = field?.('extraPercent')?.value?.key;
6806
+ const totalRate = getTotalRate(rate, extraRate);
6807
+ const isMaxRate = rate === getDefaultParamsMax(row, isNewClient)?.rate &&
6808
+ extraRate === extraPercents?.at(-1)?.key;
6752
6809
  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({
6753
6810
  className: 'w-full',
6754
6811
  title: `Сумма, ${currencyValue?.text}`,
@@ -6765,8 +6822,8 @@
6765
6822
  availableMonths: calcParams.availableMonths,
6766
6823
  ...field('monthsValue'),
6767
6824
  value: calcParams.monthsValue,
6768
- }), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field)] }), renderRate({
6769
- rate,
6825
+ }), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field, extraPercents)] }), renderRate({
6826
+ rate: totalRate,
6770
6827
  children: renderMaxRateButton(handleDefaultParamsCals, isMaxRate),
6771
6828
  }), renderDepositResult({
6772
6829
  income,
@@ -6784,6 +6841,8 @@
6784
6841
  return button;
6785
6842
  };
6786
6843
  const renderMaxRateButton = (handleDefaultParamsCals, isMaxRate = false) => isMaxRate ? null : (jsx(Button, { type: "button", version: "secondary", onClick: handleDefaultParamsCals, children: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u0442\u0430\u0432\u043A\u0443" }));
6844
+ const getTotalRate = (rate, extraRate) => Number(rate) + Number(extraRate ?? 0);
6845
+ const getCurrencyValue = (field) => field?.('currency')?.value ?? DEFAULT_CURRENCY;
6787
6846
 
6788
6847
  const checkRefinancingSourceBookRowCommonParams = (props) => checkRowParam({
6789
6848
  ...props,
@@ -6895,9 +6954,6 @@
6895
6954
  const calcParams = getRefinancingCalculatorParams(userInputParams, calcSource, paramsViewSettings);
6896
6955
  const minRate = useMemo(() => getDefaultParamsMin(calcSource?.rateRows)?.rate, [calcSource?.rateRows]);
6897
6956
  const paymentTypeElement = renderPaymentType({
6898
- title: '',
6899
- mobileTitle: 'Тип платежа',
6900
- orientation: 'vertical',
6901
6957
  ...field('isAnnuity'),
6902
6958
  });
6903
6959
  return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
@@ -6929,7 +6985,7 @@
6929
6985
  ...field('moneyExtra'),
6930
6986
  value: calcParams.moneyExtra,
6931
6987
  })
6932
- : 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 \u043E\u0442", value: minRate, 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)] })] }) }));
6988
+ : 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 \u043E\u0442", value: minRate, 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: "\u0412\u044B\u0433\u043E\u0434\u0430 \u0432 \u043C\u0435\u0441\u044F\u0446", value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
6933
6989
  });
6934
6990
  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 })] }));
6935
6991
 
@@ -11208,7 +11264,7 @@
11208
11264
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11209
11265
  });
11210
11266
 
11211
- const packageVersion = "0.14.778";
11267
+ const packageVersion = "0.14.787";
11212
11268
 
11213
11269
  exports.Blocks = Blocks;
11214
11270
  exports.ContentPage = ContentPage;