@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
@@ -2862,6 +2862,97 @@
2862
2862
  const normalizeInteger = (val = '') => val.replace(/[^\d]+/g, '');
2863
2863
  const getPlaceholder = (placeholder, errors, label) => errors && !label ? `${placeholder}*` : placeholder;
2864
2864
 
2865
+ const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
2866
+ const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
2867
+
2868
+ const AddressField = JSX(({ field, input }) => {
2869
+ const fieldName = input?.name || 'addressRegistration';
2870
+ const fieldValue = field(fieldName).value;
2871
+ const onDaDataChange = useCallback((item) => {
2872
+ field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
2873
+ }, []);
2874
+ const onChange = useCallback((value) => {
2875
+ field?.(fieldName)?.onChange?.({
2876
+ apartment: '',
2877
+ city: '',
2878
+ district: '',
2879
+ fullAddress: value,
2880
+ fiasCode: '',
2881
+ house: '',
2882
+ locality: '',
2883
+ okatoRegionCode: '',
2884
+ postcode: '',
2885
+ region: '',
2886
+ regionCode: '',
2887
+ street: '',
2888
+ qc: '',
2889
+ qcComplete: '',
2890
+ qcHouse: '',
2891
+ });
2892
+ }, []);
2893
+ 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 }));
2894
+ });
2895
+ const getAddressFromDaDataItem = (item) => ({
2896
+ apartment: item?.data?.flat,
2897
+ city: item?.data?.city,
2898
+ district: item?.data?.area_with_type,
2899
+ fullAddress: item?.unrestricted_value,
2900
+ fiasCode: item?.data?.fias_id,
2901
+ house: item?.data?.house,
2902
+ locality: item?.data?.settlement_with_type,
2903
+ okatoRegionCode: item?.data?.okato,
2904
+ postcode: item?.data?.postal_code,
2905
+ region: item?.data?.region,
2906
+ regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
2907
+ street: item?.data?.street,
2908
+ qc: item?.data?.qc,
2909
+ qcComplete: item?.data?.qc_complete,
2910
+ qcHouse: item?.data?.qc_house,
2911
+ });
2912
+
2913
+ const AddressCourierField = UniBlock(({ field, input, source }) => {
2914
+ const [errorCity, setErrorCity] = useState('');
2915
+ const fieldValue = field('addressCourier')?.value;
2916
+ const currentLocality = fieldValue?.locality;
2917
+ const currentCity = fieldValue?.city;
2918
+ useEffect(() => {
2919
+ if ((currentCity || currentLocality) &&
2920
+ !source?.deliveryCities?.includes(currentCity)) {
2921
+ field?.('addressCourier')?.onChange?.({
2922
+ ...fieldValue,
2923
+ house: '',
2924
+ });
2925
+ setErrorCity('Город недоступен для доставки');
2926
+ }
2927
+ else {
2928
+ setErrorCity('');
2929
+ }
2930
+ }, [currentCity, currentLocality, source]);
2931
+ const onDaDataChange = useCallback((item) => {
2932
+ field?.('addressCourier')?.onChange?.(getAddressFromDaDataItem(item));
2933
+ }, []);
2934
+ const onChange = useCallback((value) => {
2935
+ field?.('addressCourier')?.onChange?.({
2936
+ apartment: '',
2937
+ city: '',
2938
+ district: '',
2939
+ fullAddress: value,
2940
+ fiasCode: '',
2941
+ house: '',
2942
+ locality: '',
2943
+ okatoRegionCode: '',
2944
+ postcode: '',
2945
+ region: '',
2946
+ regionCode: '',
2947
+ street: '',
2948
+ qc: '',
2949
+ qcComplete: '',
2950
+ qcHouse: '',
2951
+ });
2952
+ }, []);
2953
+ return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...field('addressCourier'), value: fieldValue?.fullAddress, onChange: onChange, ...input, error: errorCity || field('addressCourier')?.error, onDaDataChange: onDaDataChange }));
2954
+ });
2955
+
2865
2956
  const AddressFactField = JSX(({ field, input }) => {
2866
2957
  const fieldName = 'addressFact';
2867
2958
  const fieldValue = field(fieldName).value;
@@ -2912,54 +3003,6 @@
2912
3003
  return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", disabled: value, ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
2913
3004
  });
2914
3005
 
2915
- const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
2916
- const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
2917
-
2918
- const AddressField = JSX(({ field, input }) => {
2919
- const fieldName = input?.name || 'addressRegistration';
2920
- const fieldValue = field(fieldName).value;
2921
- const onDaDataChange = useCallback((item) => {
2922
- field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
2923
- }, []);
2924
- const onChange = useCallback((value) => {
2925
- field?.(fieldName)?.onChange?.({
2926
- apartment: '',
2927
- city: '',
2928
- district: '',
2929
- fullAddress: value,
2930
- fiasCode: '',
2931
- house: '',
2932
- locality: '',
2933
- okatoRegionCode: '',
2934
- postcode: '',
2935
- region: '',
2936
- regionCode: '',
2937
- street: '',
2938
- qc: '',
2939
- qcComplete: '',
2940
- qcHouse: '',
2941
- });
2942
- }, []);
2943
- 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 }));
2944
- });
2945
- const getAddressFromDaDataItem = (item) => ({
2946
- apartment: item?.data?.flat,
2947
- city: item?.data?.city,
2948
- district: item?.data?.area_with_type,
2949
- fullAddress: item?.unrestricted_value,
2950
- fiasCode: item?.data?.fias_id,
2951
- house: item?.data?.house,
2952
- locality: item?.data?.settlement_with_type,
2953
- okatoRegionCode: item?.data?.okato,
2954
- postcode: item?.data?.postal_code,
2955
- region: item?.data?.region,
2956
- regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
2957
- street: item?.data?.street,
2958
- qc: item?.data?.qc,
2959
- qcComplete: item?.data?.qc_complete,
2960
- qcHouse: item?.data?.qc_house,
2961
- });
2962
-
2963
3006
  const AddressMatchField = JSX(({ field, input }) => {
2964
3007
  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 ?? '') }));
2965
3008
  });
@@ -3829,7 +3872,7 @@
3829
3872
 
3830
3873
  const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
3831
3874
  const isMobileMode = useMobileMode();
3832
- 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: () => {
3875
+ 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: () => {
3833
3876
  onDocumentRead?.();
3834
3877
  onClose?.();
3835
3878
  }, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
@@ -3881,7 +3924,13 @@
3881
3924
  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: "-" })] })));
3882
3925
 
3883
3926
  const getDefaultParamsMin = (rateRows) => getDefaultParams([(i, acc) => i < acc, (i, prev) => i?.maxSum > prev?.maxSum], rateRows);
3884
- const getDefaultParamsMax = (rateRows = [], isNewClient = false) => getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient)));
3927
+ const getDefaultParamsMax = (rateRows = [], isNewClient = false, extraPercents = []) => {
3928
+ return {
3929
+ ...getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient))),
3930
+ extraPercent: extraPercents.at(-1),
3931
+ extraPercents,
3932
+ };
3933
+ };
3885
3934
  const getDefaultParams = (comparators, rateRows) => {
3886
3935
  if (!rateRows?.length) {
3887
3936
  return undefined;
@@ -3914,10 +3963,12 @@
3914
3963
  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 }));
3915
3964
  const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
3916
3965
 
3917
- 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 })] }));
3966
+ 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 })] }));
3918
3967
 
3919
3968
  const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
3920
3969
  ...props,
3970
+ title: 'Тип платежа',
3971
+ orientation: 'vertical',
3921
3972
  className: 'sm:flex-col',
3922
3973
  items: [
3923
3974
  { id: 'annuity', text: 'Аннуитетный' },
@@ -4095,8 +4146,6 @@
4095
4146
  }, { onChange });
4096
4147
  const calcParams = getCreditCalculatorParams(userInputParams, calcSource, paramsViewSettings);
4097
4148
  const paymentTypeElement = renderPaymentType({
4098
- title: 'Тип платежа',
4099
- orientation: 'vertical',
4100
4149
  ...field('isAnnuity'),
4101
4150
  });
4102
4151
  const { onChange: setMoneyValue } = field('moneyValue');
@@ -4711,6 +4760,9 @@
4711
4760
 
4712
4761
  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 })));
4713
4762
 
4763
+ const DELIVERY_CITIES_REF = {
4764
+ $ref: '/wcms-resources/delivery-cities-data.json',
4765
+ };
4714
4766
  const InputsApplicationLeadMap = {
4715
4767
  limitedBirthday: LimitedBirthdayField,
4716
4768
  name: NameField,
@@ -4785,7 +4837,7 @@
4785
4837
  inn: DaDataInnField,
4786
4838
  };
4787
4839
  const InputRetailCardMap = {
4788
- addressCourier: AddressField,
4840
+ addressCourier: (props) => (jsx(AddressCourierField, { ...props, source: DELIVERY_CITIES_REF })),
4789
4841
  paymentSystem: PaymentSystemField,
4790
4842
  currency: CurrencyField,
4791
4843
  cardCategory: CardCategoryField,
@@ -5240,7 +5292,7 @@
5240
5292
  armyIdFlg,
5241
5293
  };
5242
5294
  };
5243
- const countIncomeAverage = (wages, retirementIncome) => Number(wages) + Number(retirementIncome);
5295
+ const countIncomeAverage = (wages, retirementIncome) => Number(wages ?? 0) + Number(retirementIncome ?? 0);
5244
5296
 
5245
5297
  /* eslint-disable camelcase */
5246
5298
  const EMPLOYMENT_TYPE = {
@@ -5459,7 +5511,7 @@
5459
5511
  }
5460
5512
  onClose?.();
5461
5513
  }, []);
5462
- 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" })] })] }) }));
5514
+ 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" })] })] }) }));
5463
5515
  });
5464
5516
 
5465
5517
  const useEsiaLoginDialog = (nextStepLink) => {
@@ -5569,10 +5621,12 @@
5569
5621
  };
5570
5622
 
5571
5623
  /* eslint-disable max-lines */
5572
- const useApplicationLeadApi = ({ programId, nextStepLink, productType, }) => {
5624
+ // eslint-disable-next-line max-lines-per-function
5625
+ const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, }) => {
5573
5626
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
5574
5627
  const [ok, setOK] = useState();
5575
5628
  const saveUserData = useSaveUserData();
5629
+ const aspects = useAspects();
5576
5630
  const openEsiaLoginDialog = useEsiaLoginDialog(nextStepLink);
5577
5631
  const consentBkiDialog = useConsentBkiDialog(openEsiaLoginDialog);
5578
5632
  const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
@@ -5592,6 +5646,11 @@
5592
5646
  productType,
5593
5647
  saveUserData,
5594
5648
  });
5649
+ handleAspects({
5650
+ aspectsAttributes: data,
5651
+ aspects,
5652
+ ev: {},
5653
+ });
5595
5654
  verifyPhoneDialog.close();
5596
5655
  if (productType === 'debitCard') {
5597
5656
  openEsiaLoginDialog();
@@ -5833,7 +5892,7 @@
5833
5892
  return [initialFormState, { isLoading }];
5834
5893
  };
5835
5894
 
5836
- const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', ...rest }) => {
5895
+ const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
5837
5896
  const applicationFormData = useMemo(() => getApplicationFormData(productType), [productType]);
5838
5897
  const inputs = useMemo(() => (applicationFormData?.flatMap((_) => _?.inputs) || []), [applicationFormData]);
5839
5898
  const formValidator = useMemo(() => getFormValidator(inputs, validatorObj), [inputs]);
@@ -5842,6 +5901,7 @@
5842
5901
  programId,
5843
5902
  nextStepLink,
5844
5903
  productType,
5904
+ data,
5845
5905
  });
5846
5906
  const [, { field, onSubmit }] = useForm(initialFormState, {
5847
5907
  formValidator,
@@ -6298,7 +6358,7 @@
6298
6358
  return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
6299
6359
  });
6300
6360
 
6301
- 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] })] })));
6361
+ 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] })] })));
6302
6362
 
6303
6363
  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" }) })] })));
6304
6364
 
@@ -6388,6 +6448,8 @@
6388
6448
 
6389
6449
  const renderPayout = (props) => renderBinaryRadioButtonGroup({
6390
6450
  ...props,
6451
+ title: 'Выплата процентов',
6452
+ orientation: 'vertical',
6391
6453
  items: [
6392
6454
  { id: 'everyMonth', text: 'Ежемесячно' },
6393
6455
  { id: 'atEndTerm', text: 'В конце срока' },
@@ -6488,10 +6550,7 @@
6488
6550
  ...field('daysValue'),
6489
6551
  value: calculatorParams.daysValue,
6490
6552
  }), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-m gap-x-5xl", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderPayout({
6491
- title: 'Выплата процентов',
6492
- orientation: 'vertical',
6493
6553
  ...field('isMonthlyInterestPayment'),
6494
- className: 'sm:flex-col',
6495
6554
  })] })] }), renderRate({
6496
6555
  rate,
6497
6556
  depositeName,
@@ -6636,57 +6695,48 @@
6636
6695
  return rates ?? rows?.[0]?.rates;
6637
6696
  };
6638
6697
 
6639
- const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
6640
- ...props,
6641
- items: [
6642
- { id: 'remote', text: 'Дистанционно' },
6643
- { id: 'office', text: 'Офис Банка' },
6644
- ],
6645
- });
6698
+ const renderRegistrationType = (props, isShow = false) => isShow
6699
+ ? renderBinaryRadioButtonGroup({
6700
+ ...props,
6701
+ title: 'Оформление',
6702
+ orientation: 'vertical',
6703
+ items: [
6704
+ { id: 'remote', text: 'Дистанционно' },
6705
+ { id: 'office', text: 'Офис Банка' },
6706
+ ],
6707
+ })
6708
+ : null;
6646
6709
 
6647
- const renderDepositParamsForm = (params, field) => {
6710
+ const renderDepositParamsForm = (params, field, extraPercents) => {
6648
6711
  const isCurrency = params?.currency?.key !== 'rub';
6649
- return (jsxs("div", { className: "grid gap-lg", children: [jsxs("div", { className: "flex gap-lg", children: [params.isShowReplenish
6650
- ? renderBinaryRadioButtonGroup({
6651
- title: 'Пополнение',
6652
- ...field('isReplenish'),
6653
- value: params.isReplenish,
6654
- orientation: 'vertical',
6655
- items: [
6656
- { id: 'withReplenish', text: 'С пополнением' },
6657
- { id: 'withoutReplenish', text: 'Без пополнения' },
6658
- ],
6659
- disabled: isCurrency,
6660
- })
6661
- : null, params.isShowWithdrawn
6662
- ? renderBinaryRadioButtonGroup({
6663
- title: 'Снятие',
6664
- ...field('isWithdrawn'),
6665
- value: params.isWithdrawn,
6666
- orientation: 'vertical',
6667
- items: [
6668
- { id: 'wthDrawn', text: 'Со снятием' },
6669
- { id: 'noWithdrawn', text: 'Без снятия' },
6670
- ],
6671
- disabled: isCurrency,
6672
- })
6673
- : null] }), renderSeparator(params.isShowReplenish || params.isShowWithdrawn), jsxs("div", { className: "flex gap-lg", children: [params.isShowMonthlyInterestPayment
6674
- ? renderPayout({
6675
- title: 'Выплата процентов',
6676
- ...field('isMonthlyInterestPayment'),
6677
- value: params.isMonthlyInterestPayment,
6678
- orientation: 'vertical',
6679
- })
6680
- : null, params.isShowRemoteRegistration
6681
- ? renderRegistrationType({
6682
- title: 'Оформление',
6683
- ...field('isRemoteRegistration'),
6684
- value: params.isRemoteRegistration,
6685
- orientation: 'vertical',
6686
- })
6687
- : 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] }));
6712
+ 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] }));
6688
6713
  };
6689
- const renderSeparator = (isShow = false) => isShow ? jsx("div", { className: "border-b border-main-divider w-full" }) : null;
6714
+ const renderReplenish = (props, params, isCurrency = false) => params.isShowReplenish
6715
+ ? renderBinaryRadioButtonGroup({
6716
+ ...props,
6717
+ title: 'Пополнение',
6718
+ orientation: 'vertical',
6719
+ items: [
6720
+ { id: 'withReplenish', text: 'С пополнением' },
6721
+ { id: 'withoutReplenish', text: 'Без пополнения' },
6722
+ ],
6723
+ disabled: isCurrency,
6724
+ })
6725
+ : null;
6726
+ const renderWithdrawn = (props, params, isCurrency = false) => params.isShowWithdrawn
6727
+ ? renderBinaryRadioButtonGroup({
6728
+ ...props,
6729
+ title: 'Снятие',
6730
+ orientation: 'vertical',
6731
+ items: [
6732
+ { id: 'wthDrawn', text: 'Со снятием' },
6733
+ { id: 'noWithdrawn', text: 'Без снятия' },
6734
+ ],
6735
+ disabled: isCurrency,
6736
+ })
6737
+ : null;
6738
+ const renderSeparator = (isShow = false) => isShow ? jsx("div", { className: "border-b border-main-divider col-span-2 w-full" }) : null;
6739
+ 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;
6690
6740
 
6691
6741
  const MAP = {
6692
6742
  isMonthlyInterestPayment: 'isMonthlyInterestPayment',
@@ -6694,6 +6744,7 @@
6694
6744
  isReplenish: 'isReplenish',
6695
6745
  isWithdrawn: 'isWithdrawn',
6696
6746
  moneyValue: 'minSum',
6747
+ extraPercent: 'extraPercent',
6697
6748
  };
6698
6749
  const DEFAULT_CURRENCY = {
6699
6750
  text: '₽',
@@ -6701,6 +6752,7 @@
6701
6752
  };
6702
6753
  const DEPOSIT_DEFAULT_SUM = 20000;
6703
6754
  const DEPOSIT_DEFAULT_MONTHS = 1;
6755
+ const DEPOSIT_DEFAULT_EXTRA_PERCENT = { text: 'Без учета надбавки', key: '0' };
6704
6756
  const CalculatorDeposit = UniBlock(({ className, title, calcSource, buttons = [], footnote = '', paramsViewSettings, defaultParams, ...rest }) => {
6705
6757
  const { rows } = calcSource ?? {};
6706
6758
  const currencyOptions = rows?.map((_) => _.currency) ?? [DEFAULT_CURRENCY];
@@ -6714,27 +6766,32 @@
6714
6766
  isWithdrawn: Boolean(defaultParams?.isWithdrawn),
6715
6767
  isNewClient: Boolean(defaultParams?.isNewClient),
6716
6768
  currency: DEFAULT_CURRENCY,
6769
+ extraPercent: defaultParams?.extraPercent ?? DEPOSIT_DEFAULT_EXTRA_PERCENT,
6717
6770
  }, { normalizer: normalize });
6718
- const currencyValue = field?.('currency')?.value ?? DEFAULT_CURRENCY;
6719
- const isNewClient = field?.('isNewClient')?.value;
6771
+ const currencyValue = getCurrencyValue(field);
6772
+ const isNewClient = Boolean(field?.('isNewClient')?.value);
6773
+ const extraPercents = rows?.find((_) => _?.extraPercents)?.extraPercents;
6720
6774
  const row = getRows(rows, currencyValue);
6721
6775
  const calcParams = getDepositCalculatorParams(userInputParams, row, paramsViewSettings);
6722
6776
  const { rate, income, finalSum, type = '' } = calcParams;
6723
6777
  const handleDefaultParamsCals = useCallback(() => {
6724
6778
  setDefaultParamsCalc({
6725
6779
  field,
6726
- defParams: getDefaultParamsMax(row, isNewClient),
6780
+ defParams: getDefaultParamsMax(row, isNewClient, extraPercents),
6727
6781
  calcParams,
6728
6782
  monthsValue: 'minMonths',
6729
6783
  map: MAP,
6730
6784
  });
6731
- }, [field, rows]);
6785
+ }, [field, rows, extraPercents]);
6732
6786
  useEffect(() => {
6733
6787
  if (!isDefaultParams(defaultParams) && row) {
6734
6788
  handleDefaultParamsCals();
6735
6789
  }
6736
6790
  }, [defaultParams, rows]);
6737
- const isMaxRate = rate === getDefaultParamsMax(row, isNewClient)?.rate;
6791
+ const extraRate = field?.('extraPercent')?.value?.key;
6792
+ const totalRate = getTotalRate(rate, extraRate);
6793
+ const isMaxRate = rate === getDefaultParamsMax(row, isNewClient)?.rate &&
6794
+ extraRate === extraPercents?.at(-1)?.key;
6738
6795
  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({
6739
6796
  className: 'w-full',
6740
6797
  title: `Сумма, ${currencyValue?.text}`,
@@ -6751,8 +6808,8 @@
6751
6808
  availableMonths: calcParams.availableMonths,
6752
6809
  ...field('monthsValue'),
6753
6810
  value: calcParams.monthsValue,
6754
- }), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field)] }), renderRate({
6755
- rate,
6811
+ }), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field, extraPercents)] }), renderRate({
6812
+ rate: totalRate,
6756
6813
  children: renderMaxRateButton(handleDefaultParamsCals, isMaxRate),
6757
6814
  }), renderDepositResult({
6758
6815
  income,
@@ -6770,6 +6827,8 @@
6770
6827
  return button;
6771
6828
  };
6772
6829
  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" }));
6830
+ const getTotalRate = (rate, extraRate) => Number(rate) + Number(extraRate ?? 0);
6831
+ const getCurrencyValue = (field) => field?.('currency')?.value ?? DEFAULT_CURRENCY;
6773
6832
 
6774
6833
  const checkRefinancingSourceBookRowCommonParams = (props) => checkRowParam({
6775
6834
  ...props,
@@ -6881,9 +6940,6 @@
6881
6940
  const calcParams = getRefinancingCalculatorParams(userInputParams, calcSource, paramsViewSettings);
6882
6941
  const minRate = useMemo(() => getDefaultParamsMin(calcSource?.rateRows)?.rate, [calcSource?.rateRows]);
6883
6942
  const paymentTypeElement = renderPaymentType({
6884
- title: '',
6885
- mobileTitle: 'Тип платежа',
6886
- orientation: 'vertical',
6887
6943
  ...field('isAnnuity'),
6888
6944
  });
6889
6945
  return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
@@ -6915,7 +6971,7 @@
6915
6971
  ...field('moneyExtra'),
6916
6972
  value: calcParams.moneyExtra,
6917
6973
  })
6918
- : 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)] })] }) }));
6974
+ : 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)] })] }) }));
6919
6975
  });
6920
6976
  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 })] }));
6921
6977
 
@@ -10414,7 +10470,7 @@
10414
10470
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10415
10471
  });
10416
10472
 
10417
- const packageVersion = "0.14.778";
10473
+ const packageVersion = "0.14.787";
10418
10474
 
10419
10475
  exports.Blocks = Blocks;
10420
10476
  exports.ContentPage = ContentPage;