@redneckz/wildless-cms-uni-blocks 0.14.683 → 0.14.685

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 (593) hide show
  1. package/bundle/api/RetailAPI/getCardTypes.d.ts +1 -1
  2. package/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  3. package/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -2
  4. package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -4
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +740 -681
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
  9. package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
  10. package/bundle/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
  11. package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
  12. package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
  13. package/bundle/components/CreditCardForm/renderInputs.d.ts +2 -1
  14. package/bundle/components/CreditCardForm/renderStep.d.ts +2 -2
  15. package/bundle/components/CreditForm/CreditForm.d.ts +5 -2
  16. package/bundle/components/CreditForm/CreditFormContent.d.ts +4 -5
  17. package/bundle/components/CreditForm/CreditFormStep.d.ts +2 -3
  18. package/bundle/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  19. package/bundle/components/CreditForm/getCalcData.d.ts +3 -0
  20. package/bundle/components/CreditForm/getZeroStepData.d.ts +1 -1
  21. package/bundle/components/CreditForm/renderInputs.d.ts +2 -1
  22. package/bundle/components/CreditForm/renderStep.d.ts +2 -2
  23. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
  24. package/bundle/components/OfficesAtmsMap/filterItems.d.ts +2 -0
  25. package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  26. package/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  27. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  28. package/bundle/ui-kit/FormField/getField.d.ts +1 -1
  29. package/dist/api/RetailAPI/getCardTypes.d.ts +1 -1
  30. package/dist/api/RetailAPI/getCardTypes.js +4 -5
  31. package/dist/api/RetailAPI/getCardTypes.js.map +1 -1
  32. package/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  33. package/dist/api/RetailAPI/getPaymentSystems.js +3 -4
  34. package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  35. package/dist/api/RetailAPI/updateUserProfile.d.ts +1 -2
  36. package/dist/api/RetailAPI/updateUserProfile.js +1 -1
  37. package/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
  38. package/dist/api/RetailAPI/updateUserTask.d.ts +5 -4
  39. package/dist/api/RetailAPI/updateUserTask.js +1 -1
  40. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  41. package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  42. package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  43. package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  44. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  45. package/dist/components/ApplicationForm/renderInputs.js +1 -1
  46. package/dist/components/ApplicationForm/renderInputs.js.map +1 -1
  47. package/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  48. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  49. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
  50. package/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  51. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  52. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
  53. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  54. package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
  55. package/dist/components/CalculatorCredit/CalculatorCredit.js +5 -3
  56. package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  57. package/dist/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
  58. package/dist/components/CalculatorCredit/defaultValueAdapter.js +18 -0
  59. package/dist/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
  60. package/dist/components/CreditCardForm/CreditCardForm.js +4 -4
  61. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  62. package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
  63. package/dist/components/CreditCardForm/CreditCardFormStatus.js +3 -1
  64. package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  65. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
  66. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  67. package/dist/components/CreditCardForm/CreditCardFormStep.js +2 -14
  68. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  69. package/dist/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
  70. package/dist/components/CreditCardForm/PendingStatusContent.js +2 -2
  71. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  72. package/dist/components/CreditCardForm/renderInputs.d.ts +2 -1
  73. package/dist/components/CreditCardForm/renderInputs.js +1 -1
  74. package/dist/components/CreditCardForm/renderInputs.js.map +1 -1
  75. package/dist/components/CreditCardForm/renderStep.d.ts +2 -2
  76. package/dist/components/CreditCardForm/renderStep.js +2 -2
  77. package/dist/components/CreditCardForm/renderStep.js.map +1 -1
  78. package/dist/components/CreditForm/CreditForm.d.ts +5 -2
  79. package/dist/components/CreditForm/CreditForm.js +6 -20
  80. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  81. package/dist/components/CreditForm/CreditFormContent.d.ts +4 -5
  82. package/dist/components/CreditForm/CreditFormStatusTracker.js +10 -10
  83. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  84. package/dist/components/CreditForm/CreditFormStep.d.ts +2 -3
  85. package/dist/components/CreditForm/CreditFormStep.js +5 -10
  86. package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  87. package/dist/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  88. package/dist/components/CreditForm/ProgramsSourceProps.js +2 -0
  89. package/dist/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  90. package/dist/components/CreditForm/creditFormStepsData.js +9 -1
  91. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  92. package/dist/components/CreditForm/formStateMap.js +9 -7
  93. package/dist/components/CreditForm/formStateMap.js.map +1 -1
  94. package/dist/components/CreditForm/getCalcData.d.ts +3 -0
  95. package/dist/components/CreditForm/getCalcData.js +16 -0
  96. package/dist/components/CreditForm/getCalcData.js.map +1 -0
  97. package/dist/components/CreditForm/getCreditFormTaskData.js +3 -2
  98. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  99. package/dist/components/CreditForm/getSecondStepData.js +0 -1
  100. package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  101. package/dist/components/CreditForm/getZeroStepData.d.ts +1 -1
  102. package/dist/components/CreditForm/getZeroStepData.js +3 -8
  103. package/dist/components/CreditForm/getZeroStepData.js.map +1 -1
  104. package/dist/components/CreditForm/renderInputs.d.ts +2 -1
  105. package/dist/components/CreditForm/renderInputs.js +1 -1
  106. package/dist/components/CreditForm/renderInputs.js.map +1 -1
  107. package/dist/components/CreditForm/renderStep.d.ts +2 -2
  108. package/dist/components/CreditForm/renderStep.js +2 -2
  109. package/dist/components/CreditForm/renderStep.js.map +1 -1
  110. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
  111. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -6
  112. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  113. package/dist/components/OfficesAtmsMap/filterItems.d.ts +2 -0
  114. package/dist/components/OfficesAtmsMap/filterItems.js +9 -0
  115. package/dist/components/OfficesAtmsMap/filterItems.js.map +1 -0
  116. package/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js +3 -3
  117. package/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
  118. package/dist/hooks/useJSONRef/useJSONRef.js +13 -3
  119. package/dist/hooks/useJSONRef/useJSONRef.js.map +1 -1
  120. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
  121. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  122. package/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  123. package/dist/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
  124. package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  125. package/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  126. package/dist/ui-kit/FormField/Fields/CreditCalcField.js +15 -0
  127. package/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  128. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
  129. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  130. package/dist/ui-kit/FormField/Fields/RegionField.js +3 -1
  131. package/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -1
  132. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  133. package/dist/ui-kit/FormField/SelectField.js +4 -6
  134. package/dist/ui-kit/FormField/SelectField.js.map +1 -1
  135. package/dist/ui-kit/FormField/getField.d.ts +1 -1
  136. package/dist/ui-kit/FormField/getField.js +5 -4
  137. package/dist/ui-kit/FormField/getField.js.map +1 -1
  138. package/dist/ui-kit/FormField/getObjectValidator.js +2 -0
  139. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  140. package/lib/api/RetailAPI/getCardTypes.d.ts +1 -1
  141. package/lib/api/RetailAPI/getCardTypes.js +5 -6
  142. package/lib/api/RetailAPI/getCardTypes.js.map +1 -1
  143. package/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  144. package/lib/api/RetailAPI/getPaymentSystems.js +4 -5
  145. package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  146. package/lib/api/RetailAPI/updateUserProfile.d.ts +1 -2
  147. package/lib/api/RetailAPI/updateUserProfile.js +2 -2
  148. package/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
  149. package/lib/api/RetailAPI/updateUserTask.d.ts +5 -4
  150. package/lib/api/RetailAPI/updateUserTask.js +2 -2
  151. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  152. package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  153. package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  154. package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  155. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  156. package/lib/components/ApplicationForm/renderInputs.js +1 -1
  157. package/lib/components/ApplicationForm/renderInputs.js.map +1 -1
  158. package/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  159. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  160. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
  161. package/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  162. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  163. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
  164. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  165. package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
  166. package/lib/components/CalculatorCredit/CalculatorCredit.js +5 -3
  167. package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  168. package/lib/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
  169. package/lib/components/CalculatorCredit/defaultValueAdapter.js +15 -0
  170. package/lib/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
  171. package/lib/components/CreditCardForm/CreditCardForm.js +4 -4
  172. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  173. package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
  174. package/lib/components/CreditCardForm/CreditCardFormStatus.js +3 -1
  175. package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  176. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
  177. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  178. package/lib/components/CreditCardForm/CreditCardFormStep.js +2 -14
  179. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  180. package/lib/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
  181. package/lib/components/CreditCardForm/PendingStatusContent.js +2 -2
  182. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  183. package/lib/components/CreditCardForm/renderInputs.d.ts +2 -1
  184. package/lib/components/CreditCardForm/renderInputs.js +1 -1
  185. package/lib/components/CreditCardForm/renderInputs.js.map +1 -1
  186. package/lib/components/CreditCardForm/renderStep.d.ts +2 -2
  187. package/lib/components/CreditCardForm/renderStep.js +2 -2
  188. package/lib/components/CreditCardForm/renderStep.js.map +1 -1
  189. package/lib/components/CreditForm/CreditForm.d.ts +5 -2
  190. package/lib/components/CreditForm/CreditForm.js +6 -20
  191. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  192. package/lib/components/CreditForm/CreditFormContent.d.ts +4 -5
  193. package/lib/components/CreditForm/CreditFormStatusTracker.js +11 -11
  194. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  195. package/lib/components/CreditForm/CreditFormStep.d.ts +2 -3
  196. package/lib/components/CreditForm/CreditFormStep.js +6 -11
  197. package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  198. package/lib/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  199. package/lib/components/CreditForm/ProgramsSourceProps.js +2 -0
  200. package/lib/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  201. package/lib/components/CreditForm/creditFormStepsData.js +9 -1
  202. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  203. package/lib/components/CreditForm/formStateMap.js +9 -7
  204. package/lib/components/CreditForm/formStateMap.js.map +1 -1
  205. package/lib/components/CreditForm/getCalcData.d.ts +3 -0
  206. package/lib/components/CreditForm/getCalcData.js +13 -0
  207. package/lib/components/CreditForm/getCalcData.js.map +1 -0
  208. package/lib/components/CreditForm/getCreditFormTaskData.js +3 -2
  209. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  210. package/lib/components/CreditForm/getSecondStepData.js +0 -1
  211. package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  212. package/lib/components/CreditForm/getZeroStepData.d.ts +1 -1
  213. package/lib/components/CreditForm/getZeroStepData.js +3 -8
  214. package/lib/components/CreditForm/getZeroStepData.js.map +1 -1
  215. package/lib/components/CreditForm/renderInputs.d.ts +2 -1
  216. package/lib/components/CreditForm/renderInputs.js +1 -1
  217. package/lib/components/CreditForm/renderInputs.js.map +1 -1
  218. package/lib/components/CreditForm/renderStep.d.ts +2 -2
  219. package/lib/components/CreditForm/renderStep.js +2 -2
  220. package/lib/components/CreditForm/renderStep.js.map +1 -1
  221. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
  222. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +0 -4
  223. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  224. package/lib/components/OfficesAtmsMap/filterItems.d.ts +2 -0
  225. package/lib/components/OfficesAtmsMap/filterItems.js +6 -0
  226. package/lib/components/OfficesAtmsMap/filterItems.js.map +1 -0
  227. package/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js +1 -1
  228. package/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
  229. package/lib/hooks/useJSONRef/useJSONRef.js +13 -3
  230. package/lib/hooks/useJSONRef/useJSONRef.js.map +1 -1
  231. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
  232. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  233. package/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  234. package/lib/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
  235. package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  236. package/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  237. package/lib/ui-kit/FormField/Fields/CreditCalcField.js +13 -0
  238. package/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  239. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
  240. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  241. package/lib/ui-kit/FormField/Fields/RegionField.js +3 -1
  242. package/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -1
  243. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  244. package/lib/ui-kit/FormField/SelectField.js +4 -6
  245. package/lib/ui-kit/FormField/SelectField.js.map +1 -1
  246. package/lib/ui-kit/FormField/getField.d.ts +1 -1
  247. package/lib/ui-kit/FormField/getField.js +5 -4
  248. package/lib/ui-kit/FormField/getField.js.map +1 -1
  249. package/lib/ui-kit/FormField/getObjectValidator.js +2 -0
  250. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  251. package/mobile/bundle/api/RetailAPI/getCardTypes.d.ts +1 -1
  252. package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  253. package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -2
  254. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -4
  255. package/mobile/bundle/bundle.umd.js +742 -683
  256. package/mobile/bundle/bundle.umd.min.js +1 -1
  257. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
  258. package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
  259. package/mobile/bundle/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
  260. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
  261. package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
  262. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +2 -1
  263. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +2 -2
  264. package/mobile/bundle/components/CreditForm/CreditForm.d.ts +5 -2
  265. package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +4 -5
  266. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +2 -3
  267. package/mobile/bundle/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  268. package/mobile/bundle/components/CreditForm/getCalcData.d.ts +3 -0
  269. package/mobile/bundle/components/CreditForm/getZeroStepData.d.ts +1 -1
  270. package/mobile/bundle/components/CreditForm/renderInputs.d.ts +2 -1
  271. package/mobile/bundle/components/CreditForm/renderStep.d.ts +2 -2
  272. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
  273. package/mobile/bundle/components/OfficesAtmsMap/filterItems.d.ts +2 -0
  274. package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  275. package/mobile/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  276. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  277. package/mobile/bundle/ui-kit/FormField/getField.d.ts +1 -1
  278. package/mobile/dist/api/RetailAPI/getCardTypes.d.ts +1 -1
  279. package/mobile/dist/api/RetailAPI/getCardTypes.js +4 -5
  280. package/mobile/dist/api/RetailAPI/getCardTypes.js.map +1 -1
  281. package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  282. package/mobile/dist/api/RetailAPI/getPaymentSystems.js +3 -4
  283. package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  284. package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +1 -2
  285. package/mobile/dist/api/RetailAPI/updateUserProfile.js +1 -1
  286. package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
  287. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -4
  288. package/mobile/dist/api/RetailAPI/updateUserTask.js +1 -1
  289. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  290. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  291. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  292. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
  293. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  294. package/mobile/dist/components/ApplicationForm/renderInputs.js +1 -1
  295. package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -1
  296. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  297. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  298. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
  299. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  300. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  301. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
  302. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  303. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
  304. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +5 -3
  305. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  306. package/mobile/dist/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
  307. package/mobile/dist/components/CalculatorCredit/defaultValueAdapter.js +18 -0
  308. package/mobile/dist/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
  309. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +4 -4
  310. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  311. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
  312. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +3 -1
  313. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  314. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
  315. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  316. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +2 -14
  317. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  318. package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
  319. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +2 -2
  320. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  321. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +2 -1
  322. package/mobile/dist/components/CreditCardForm/renderInputs.js +1 -1
  323. package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -1
  324. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +2 -2
  325. package/mobile/dist/components/CreditCardForm/renderStep.js +2 -2
  326. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
  327. package/mobile/dist/components/CreditForm/CreditForm.d.ts +5 -2
  328. package/mobile/dist/components/CreditForm/CreditForm.js +6 -20
  329. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  330. package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +4 -5
  331. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +10 -10
  332. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  333. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +2 -3
  334. package/mobile/dist/components/CreditForm/CreditFormStep.js +5 -10
  335. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  336. package/mobile/dist/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  337. package/mobile/dist/components/CreditForm/ProgramsSourceProps.js +2 -0
  338. package/mobile/dist/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  339. package/mobile/dist/components/CreditForm/creditFormStepsData.js +9 -1
  340. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  341. package/mobile/dist/components/CreditForm/formStateMap.js +9 -7
  342. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
  343. package/mobile/dist/components/CreditForm/getCalcData.d.ts +3 -0
  344. package/mobile/dist/components/CreditForm/getCalcData.js +16 -0
  345. package/mobile/dist/components/CreditForm/getCalcData.js.map +1 -0
  346. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +3 -2
  347. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  348. package/mobile/dist/components/CreditForm/getSecondStepData.js +0 -1
  349. package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  350. package/mobile/dist/components/CreditForm/getZeroStepData.d.ts +1 -1
  351. package/mobile/dist/components/CreditForm/getZeroStepData.js +3 -8
  352. package/mobile/dist/components/CreditForm/getZeroStepData.js.map +1 -1
  353. package/mobile/dist/components/CreditForm/renderInputs.d.ts +2 -1
  354. package/mobile/dist/components/CreditForm/renderInputs.js +1 -1
  355. package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -1
  356. package/mobile/dist/components/CreditForm/renderStep.d.ts +2 -2
  357. package/mobile/dist/components/CreditForm/renderStep.js +2 -2
  358. package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
  359. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
  360. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -6
  361. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  362. package/mobile/dist/components/OfficesAtmsMap/filterItems.d.ts +2 -0
  363. package/mobile/dist/components/OfficesAtmsMap/filterItems.js +9 -0
  364. package/mobile/dist/components/OfficesAtmsMap/filterItems.js.map +1 -0
  365. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js +3 -3
  366. package/mobile/dist/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
  367. package/mobile/dist/hooks/useJSONRef/useJSONRef.js +13 -3
  368. package/mobile/dist/hooks/useJSONRef/useJSONRef.js.map +1 -1
  369. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
  370. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  371. package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  372. package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
  373. package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  374. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  375. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js +15 -0
  376. package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  377. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
  378. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  379. package/mobile/dist/ui-kit/FormField/Fields/RegionField.js +3 -1
  380. package/mobile/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -1
  381. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  382. package/mobile/dist/ui-kit/FormField/SelectField.js +4 -6
  383. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
  384. package/mobile/dist/ui-kit/FormField/getField.d.ts +1 -1
  385. package/mobile/dist/ui-kit/FormField/getField.js +5 -4
  386. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  387. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +2 -0
  388. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  389. package/mobile/lib/api/RetailAPI/getCardTypes.d.ts +1 -1
  390. package/mobile/lib/api/RetailAPI/getCardTypes.js +5 -6
  391. package/mobile/lib/api/RetailAPI/getCardTypes.js.map +1 -1
  392. package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  393. package/mobile/lib/api/RetailAPI/getPaymentSystems.js +4 -5
  394. package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  395. package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +1 -2
  396. package/mobile/lib/api/RetailAPI/updateUserProfile.js +2 -2
  397. package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
  398. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -4
  399. package/mobile/lib/api/RetailAPI/updateUserTask.js +2 -2
  400. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  401. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  402. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  403. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
  404. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  405. package/mobile/lib/components/ApplicationForm/renderInputs.js +1 -1
  406. package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -1
  407. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  408. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  409. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +13 -7
  410. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
  411. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  412. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +15 -8
  413. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  414. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +2 -3
  415. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +5 -3
  416. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  417. package/mobile/lib/components/CalculatorCredit/defaultValueAdapter.d.ts +11 -0
  418. package/mobile/lib/components/CalculatorCredit/defaultValueAdapter.js +15 -0
  419. package/mobile/lib/components/CalculatorCredit/defaultValueAdapter.js.map +1 -0
  420. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +4 -4
  421. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  422. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +1 -0
  423. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +3 -1
  424. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -1
  425. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +14 -12
  426. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
  427. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +2 -14
  428. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  429. package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +3 -1
  430. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +2 -2
  431. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  432. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +2 -1
  433. package/mobile/lib/components/CreditCardForm/renderInputs.js +1 -1
  434. package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -1
  435. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +2 -2
  436. package/mobile/lib/components/CreditCardForm/renderStep.js +2 -2
  437. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
  438. package/mobile/lib/components/CreditForm/CreditForm.d.ts +5 -2
  439. package/mobile/lib/components/CreditForm/CreditForm.js +6 -20
  440. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  441. package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +4 -5
  442. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +11 -11
  443. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  444. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +2 -3
  445. package/mobile/lib/components/CreditForm/CreditFormStep.js +6 -11
  446. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  447. package/mobile/lib/components/CreditForm/ProgramsSourceProps.d.ts +16 -0
  448. package/mobile/lib/components/CreditForm/ProgramsSourceProps.js +2 -0
  449. package/mobile/lib/components/CreditForm/ProgramsSourceProps.js.map +1 -0
  450. package/mobile/lib/components/CreditForm/creditFormStepsData.js +9 -1
  451. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  452. package/mobile/lib/components/CreditForm/formStateMap.js +9 -7
  453. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
  454. package/mobile/lib/components/CreditForm/getCalcData.d.ts +3 -0
  455. package/mobile/lib/components/CreditForm/getCalcData.js +13 -0
  456. package/mobile/lib/components/CreditForm/getCalcData.js.map +1 -0
  457. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +3 -2
  458. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  459. package/mobile/lib/components/CreditForm/getSecondStepData.js +0 -1
  460. package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  461. package/mobile/lib/components/CreditForm/getZeroStepData.d.ts +1 -1
  462. package/mobile/lib/components/CreditForm/getZeroStepData.js +3 -8
  463. package/mobile/lib/components/CreditForm/getZeroStepData.js.map +1 -1
  464. package/mobile/lib/components/CreditForm/renderInputs.d.ts +2 -1
  465. package/mobile/lib/components/CreditForm/renderInputs.js +1 -1
  466. package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -1
  467. package/mobile/lib/components/CreditForm/renderStep.d.ts +2 -2
  468. package/mobile/lib/components/CreditForm/renderStep.js +2 -2
  469. package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
  470. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +0 -1
  471. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +0 -4
  472. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  473. package/mobile/lib/components/OfficesAtmsMap/filterItems.d.ts +2 -0
  474. package/mobile/lib/components/OfficesAtmsMap/filterItems.js +6 -0
  475. package/mobile/lib/components/OfficesAtmsMap/filterItems.js.map +1 -0
  476. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js +1 -1
  477. package/mobile/lib/components/OfficesAtmsMap/useOfficesAtmsMapData.js.map +1 -1
  478. package/mobile/lib/hooks/useJSONRef/useJSONRef.js +13 -3
  479. package/mobile/lib/hooks/useJSONRef/useJSONRef.js.map +1 -1
  480. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +14 -9
  481. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  482. package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +1 -0
  483. package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +13 -4
  484. package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  485. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +2 -0
  486. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js +13 -0
  487. package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +1 -0
  488. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +8 -4
  489. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  490. package/mobile/lib/ui-kit/FormField/Fields/RegionField.js +3 -1
  491. package/mobile/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -1
  492. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  493. package/mobile/lib/ui-kit/FormField/SelectField.js +4 -6
  494. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
  495. package/mobile/lib/ui-kit/FormField/getField.d.ts +1 -1
  496. package/mobile/lib/ui-kit/FormField/getField.js +5 -4
  497. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  498. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +2 -0
  499. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  500. package/mobile/src/api/RetailAPI/getCardTypes.ts +5 -7
  501. package/mobile/src/api/RetailAPI/getPaymentSystems.ts +9 -7
  502. package/mobile/src/api/RetailAPI/updateUserProfile.ts +2 -3
  503. package/mobile/src/api/RetailAPI/updateUserTask.ts +6 -5
  504. package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
  505. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  506. package/mobile/src/components/ApplicationForm/renderInputs.tsx +2 -2
  507. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -1
  508. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +13 -7
  509. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +32 -16
  510. package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +7 -5
  511. package/mobile/src/components/CalculatorCredit/defaultValueAdapter.ts +26 -0
  512. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +4 -8
  513. package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +7 -1
  514. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +14 -8
  515. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +3 -18
  516. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +24 -21
  517. package/mobile/src/components/CreditCardForm/renderInputs.tsx +3 -2
  518. package/mobile/src/components/CreditCardForm/renderStep.tsx +3 -4
  519. package/mobile/src/components/CreditForm/CreditForm.tsx +12 -30
  520. package/mobile/src/components/CreditForm/CreditFormContent.ts +5 -8
  521. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +14 -13
  522. package/mobile/src/components/CreditForm/CreditFormStep.tsx +10 -24
  523. package/mobile/src/components/CreditForm/ProgramsSourceProps.tsx +20 -0
  524. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +9 -1
  525. package/mobile/src/components/CreditForm/formStateMap.tsx +9 -7
  526. package/mobile/src/components/CreditForm/getCalcData.ts +19 -0
  527. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -2
  528. package/mobile/src/components/CreditForm/getSecondStepData.tsx +0 -1
  529. package/mobile/src/components/CreditForm/getZeroStepData.ts +7 -11
  530. package/mobile/src/components/CreditForm/renderInputs.tsx +3 -2
  531. package/mobile/src/components/CreditForm/renderStep.tsx +3 -3
  532. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +0 -9
  533. package/mobile/src/components/OfficesAtmsMap/filterItems.tsx +11 -0
  534. package/mobile/src/components/OfficesAtmsMap/useOfficesAtmsMapData.tsx +1 -1
  535. package/mobile/src/hooks/useJSONRef/useJSONRef.ts +21 -4
  536. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +14 -10
  537. package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
  538. package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +17 -4
  539. package/mobile/src/ui-kit/FormField/Fields/CreditCalcField.tsx +24 -0
  540. package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +8 -4
  541. package/mobile/src/ui-kit/FormField/Fields/RegionField.tsx +4 -1
  542. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +1 -0
  543. package/mobile/src/ui-kit/FormField/SelectField.tsx +4 -6
  544. package/mobile/src/ui-kit/FormField/getField.tsx +5 -4
  545. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +2 -0
  546. package/package.json +3 -2
  547. package/src/api/RetailAPI/getCardTypes.ts +5 -7
  548. package/src/api/RetailAPI/getPaymentSystems.ts +9 -7
  549. package/src/api/RetailAPI/updateUserProfile.ts +2 -3
  550. package/src/api/RetailAPI/updateUserTask.ts +6 -5
  551. package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
  552. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  553. package/src/components/ApplicationForm/renderInputs.tsx +2 -2
  554. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -1
  555. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +13 -7
  556. package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +32 -16
  557. package/src/components/CalculatorCredit/CalculatorCredit.tsx +7 -5
  558. package/src/components/CalculatorCredit/defaultValueAdapter.ts +26 -0
  559. package/src/components/CreditCardForm/CreditCardForm.tsx +4 -8
  560. package/src/components/CreditCardForm/CreditCardFormStatus.tsx +7 -1
  561. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +14 -8
  562. package/src/components/CreditCardForm/CreditCardFormStep.tsx +3 -18
  563. package/src/components/CreditCardForm/PendingStatusContent.tsx +24 -21
  564. package/src/components/CreditCardForm/renderInputs.tsx +3 -2
  565. package/src/components/CreditCardForm/renderStep.tsx +3 -4
  566. package/src/components/CreditForm/CreditForm.fixture.tsx +6 -1
  567. package/src/components/CreditForm/CreditForm.tsx +12 -30
  568. package/src/components/CreditForm/CreditFormContent.ts +5 -8
  569. package/src/components/CreditForm/CreditFormStatusTracker.tsx +14 -13
  570. package/src/components/CreditForm/CreditFormStep.tsx +10 -24
  571. package/src/components/CreditForm/ProgramsSourceProps.tsx +20 -0
  572. package/src/components/CreditForm/creditFormStepsData.tsx +9 -1
  573. package/src/components/CreditForm/formStateMap.tsx +9 -7
  574. package/src/components/CreditForm/getCalcData.ts +19 -0
  575. package/src/components/CreditForm/getCreditFormTaskData.ts +3 -2
  576. package/src/components/CreditForm/getSecondStepData.tsx +0 -1
  577. package/src/components/CreditForm/getZeroStepData.ts +7 -11
  578. package/src/components/CreditForm/renderInputs.tsx +3 -2
  579. package/src/components/CreditForm/renderStep.tsx +3 -3
  580. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +0 -9
  581. package/src/components/OfficesAtmsMap/filterItems.tsx +11 -0
  582. package/src/components/OfficesAtmsMap/useOfficesAtmsMapData.tsx +1 -1
  583. package/src/hooks/useJSONRef/useJSONRef.ts +21 -4
  584. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +14 -10
  585. package/src/ui-kit/FormField/CustomFieldProps.ts +1 -0
  586. package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +17 -4
  587. package/src/ui-kit/FormField/Fields/CreditCalcField.tsx +24 -0
  588. package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +8 -4
  589. package/src/ui-kit/FormField/Fields/RegionField.tsx +4 -1
  590. package/src/ui-kit/FormField/NameFieldDef.ts +1 -0
  591. package/src/ui-kit/FormField/SelectField.tsx +4 -6
  592. package/src/ui-kit/FormField/getField.tsx +5 -4
  593. package/src/ui-kit/FormField/getObjectValidator.tsx +2 -0
@@ -1,18 +1,28 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { getCardTypes, type CardTypeData } from '../../../api/RetailAPI/getCardTypes';
4
+ import { useLocalStorage } from '../../../hooks/useLocalStorage';
5
+ import { type Option } from '../../Select/Option';
4
6
  import { type CustomFieldProps } from '../CustomFieldProps';
5
7
  import { SelectField } from '../SelectField';
6
8
 
7
9
  export const CardCategoryField = JSX<CustomFieldProps>(({ field, input }) => {
8
10
  const [cardTypes, setCardTypes] = useState<CardTypeData[]>([]);
11
+ const [programId] = useLocalStorage<string>('programId');
12
+ const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
9
13
  const selectedPaymentSystem = field('paymentSystem').value;
10
14
 
11
15
  useEffect(() => {
12
- (async () => {
13
- const fetchedCardTypes = await getCardTypes(selectedPaymentSystem as string);
14
- setCardTypes(fetchedCardTypes);
15
- })();
16
+ if (selectedPaymentSystem && programId) {
17
+ (async () => {
18
+ const fetchedCardTypes = await getCardTypes(selectedPaymentSystem as string, programId);
19
+ setCardTypes(fetchedCardTypes);
20
+
21
+ if (!isValidCardCategory(fetchedCardTypes, selectedCardCategory as Option)) {
22
+ cardCategoryChange && cardCategoryChange(null);
23
+ }
24
+ })();
25
+ }
16
26
  }, [selectedPaymentSystem]);
17
27
 
18
28
  return (
@@ -25,3 +35,6 @@ export const CardCategoryField = JSX<CustomFieldProps>(({ field, input }) => {
25
35
  />
26
36
  );
27
37
  });
38
+
39
+ const isValidCardCategory = (cardTypes: CardTypeData[], selectedCardCategory: Option | null) =>
40
+ cardTypes.some((cardType) => cardType.key === selectedCardCategory?.key);
@@ -0,0 +1,24 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { CalculatorCredit } from '../../../components/CalculatorCredit/CalculatorCredit';
4
+ import { type CreditCalculatorUserInputParams } from '../../../components/CalculatorCredit/CalculatorCreditContent';
5
+ import { defaultValueAdapter } from '../../../components/CalculatorCredit/defaultValueAdapter';
6
+ import { type CustomFieldProps } from '../CustomFieldProps';
7
+
8
+ const FIELD_NAME = 'calculator';
9
+
10
+ export const CreditCalcField = JSX<CustomFieldProps>(({ field, params }) => {
11
+ const handleChange = useCallback((_: CreditCalculatorUserInputParams) => {
12
+ field(FIELD_NAME).onChange?.(_);
13
+ }, []);
14
+
15
+ return (
16
+ <CalculatorCredit
17
+ {...params?.calcData}
18
+ defaultParams={defaultValueAdapter(
19
+ field(FIELD_NAME).value as CreditCalculatorUserInputParams,
20
+ )}
21
+ onChange={handleChange}
22
+ />
23
+ );
24
+ });
@@ -1,6 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { getPaymentSystems } from '../../../api/RetailAPI/getPaymentSystems';
4
+ import { useLocalStorage } from '../../../hooks/useLocalStorage';
4
5
  import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
5
6
  import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
6
7
  import { type CustomFieldProps } from '../CustomFieldProps';
@@ -9,14 +10,17 @@ import { getValidation } from '../getValidation';
9
10
 
10
11
  export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
11
12
  const { value, onChange } = field('paymentSystem');
13
+ const [programId] = useLocalStorage<string>('programId');
12
14
 
13
15
  const [paymentSystemOptions, setPaymentSystemOptions] = useState<RadioButtonItem[]>([]);
14
16
 
15
17
  useEffect(() => {
16
- (async () => {
17
- const fetchedPaymentSystems = await getPaymentSystems();
18
- setPaymentSystemOptions(fetchedPaymentSystems || []);
19
- })();
18
+ if (programId) {
19
+ (async () => {
20
+ const fetchedPaymentSystems = await getPaymentSystems(programId);
21
+ setPaymentSystemOptions(fetchedPaymentSystems || []);
22
+ })();
23
+ }
20
24
  }, []);
21
25
 
22
26
  return (
@@ -1,12 +1,15 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { getRegionUrl } from '../../../components/ApplicationForm/getRegionUrl';
3
4
  import { useRegions } from '../../../hooks/useRegions';
4
5
  import { SelectControl } from '../../Select/SelectControl';
5
6
  import { type CustomFieldProps } from '../CustomFieldProps';
6
7
  import { validatorObj } from '../getObjectValidator';
7
8
  import { getValidation } from '../getValidation';
8
9
 
9
- export const RegionField = JSX<CustomFieldProps>(({ field, input, url }) => {
10
+ export const RegionField = JSX<CustomFieldProps>(({ field, input, params }) => {
11
+ const url = getRegionUrl(params?.typeForm as string | undefined);
12
+
10
13
  const regions = useRegions(url);
11
14
 
12
15
  return (
@@ -100,4 +100,5 @@ export type NameFieldDef =
100
100
  | 'currency'
101
101
  | 'cardCategory'
102
102
  | 'codeWord'
103
+ | 'calculator'
103
104
  | 'confirmationIncome';
@@ -33,12 +33,10 @@ export const SelectField = UniBlock<SelectFieldProps>(
33
33
  isSearch = false,
34
34
  }) => {
35
35
  const leadOptions: Option[] =
36
- (source &&
37
- source?.map((_: LeadProps) => ({
38
- key: _.key || '',
39
- text: _.value,
40
- }))) ||
41
- [];
36
+ source?.map((_: LeadProps) => ({
37
+ key: _.key || '',
38
+ text: _.value,
39
+ })) || [];
42
40
 
43
41
  return (
44
42
  <SelectControl
@@ -2,7 +2,6 @@
2
2
  /* eslint-disable max-lines-per-function */
3
3
  //TODO: Убрать обращение к компонентам т.к. ApplicationForm
4
4
  import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
5
- import { getRegionUrl } from '../../components/ApplicationForm/getRegionUrl';
6
5
  import { type FormFieldRegisterer } from '../../hooks/useForm';
7
6
  import { InputControl } from '../Input/InputControl';
8
7
  import { AcquiringField } from './Fields/AcquiringField';
@@ -29,6 +28,7 @@ import { CommentField } from './Fields/CommentField';
29
28
  import { ConfirmationIncomeField } from './Fields/ConfirmationIncomeField';
30
29
  import { ConscriptionField } from './Fields/ConscriptionField';
31
30
  import { ConsentField } from './Fields/ConsentField';
31
+ import { CreditCalcField } from './Fields/CreditCalcField';
32
32
  import { CreditInRshbCdField } from './Fields/CreditInRshbCdField';
33
33
  import { CurrencyField } from './Fields/CurrencyField';
34
34
  import { DeliveryDateFiels } from './Fields/DeliveryDateFiels';
@@ -99,9 +99,9 @@ const PRODUCT_REF = {
99
99
  };
100
100
 
101
101
  export const getField =
102
- (field: FormFieldRegisterer<any>, typeForm = '') =>
102
+ (field: FormFieldRegisterer<any>, params?: Record<string, any>) =>
103
103
  (input: FieldDef, i: number) => {
104
- const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
104
+ const isPremium = params?.typeForm === 'ULTRASERVICE' || params?.typeForm === 'PREMIUMSERVICE';
105
105
 
106
106
  const InputsMap = {
107
107
  surname: <SurnameField field={field} input={input} />,
@@ -157,7 +157,7 @@ export const getField =
157
157
  region: isPremium ? (
158
158
  <RegionPremiumField field={field} />
159
159
  ) : (
160
- <RegionField field={field} input={input} url={getRegionUrl(typeForm)} />
160
+ <RegionField field={field} input={input} params={params} />
161
161
  ),
162
162
  education: <EducationField field={field} input={input} />,
163
163
  housing: <HousingField field={field} input={input} />,
@@ -205,6 +205,7 @@ export const getField =
205
205
  confirmationIncome: <ConfirmationIncomeField field={field} input={input} />,
206
206
  methodObtain: <MethodObtainField field={field} input={input} />,
207
207
  deliveryDate: <DeliveryDateFiels field={field} input={input} />,
208
+ calculator: <CreditCalcField field={field} params={params} />,
208
209
  };
209
210
 
210
211
  return isRenderField({ input, field }) ? (
@@ -105,6 +105,8 @@ export const validatorObj: Record<string, Validator> = {
105
105
  confirmationIncome: defaultValidator(),
106
106
  deliveryDate: defaultValidator('Укажите дату доставки'),
107
107
  addressCourier: addressDaDataValidator(),
108
+ cardCategory: defaultValidator('Укажите категорию карты'),
109
+ paymentSystem: defaultValidator('Укажите тип платежной системы'),
108
110
  };
109
111
 
110
112
  export const getObjectValidator = (inputs: FieldDef[]): Record<string, Validator> => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redneckz/wildless-cms-uni-blocks",
3
- "version": "0.14.683",
3
+ "version": "0.14.685",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "ЦК",
@@ -132,6 +132,7 @@
132
132
  "peerDependencies": {
133
133
  "cypress": "^13.13.0",
134
134
  "cypress-visual-regression": "5.0.0",
135
+ "cypress-wait-until": "^3.0.1",
135
136
  "react": ">=18.3.1",
136
137
  "react-dom": ">=18.3.1"
137
138
  },
@@ -214,7 +215,7 @@
214
215
  "path": "lib/common.css"
215
216
  },
216
217
  {
217
- "limit": "92 kB",
218
+ "limit": "100 kB",
218
219
  "path": "bundle/bundle.umd.min.js"
219
220
  }
220
221
  ],
@@ -1,4 +1,4 @@
1
- import { doRequest } from './doRequest';
1
+ import { fetchRetailJSON } from './doRequest';
2
2
 
3
3
  export type CardTypeData = {
4
4
  type: string;
@@ -8,13 +8,11 @@ export type CardTypeData = {
8
8
  description: string;
9
9
  };
10
10
 
11
- export const getCardTypes = async (paymentSystemType: string) => {
12
- const response: Response = await doRequest('/dictionaryFiltered', 'POST', {
11
+ export const getCardTypes = async (paymentSystemTypeCd: string, creditProgramId: string) => {
12
+ const data = await fetchRetailJSON<CardTypeData[]>('/dictionaryFiltered', 'POST', {
13
13
  type: 'CARD_TYPE',
14
- presets: { paymentSystemType, creditProgramId: 13 },
14
+ presets: { paymentSystemTypeCd, creditProgramId },
15
15
  });
16
16
 
17
- const data: CardTypeData[] = await response?.json();
18
-
19
- return data;
17
+ return Array.isArray(data) ? data : [];
20
18
  };
@@ -1,4 +1,4 @@
1
- import { doRequest } from './doRequest';
1
+ import { fetchRetailJSON } from './doRequest';
2
2
 
3
3
  type PaymentSystemResponse = {
4
4
  paymentSystems?: {
@@ -7,12 +7,14 @@ type PaymentSystemResponse = {
7
7
  }[];
8
8
  };
9
9
 
10
- export const getPaymentSystems = async () => {
11
- const response: Response = await doRequest('/public-data/creditProgramConditions', 'POST', {
12
- creditProgramId: 13,
13
- });
14
-
15
- const data: PaymentSystemResponse = await response?.json();
10
+ export const getPaymentSystems = async (creditProgramId: string) => {
11
+ const data = await fetchRetailJSON<PaymentSystemResponse>(
12
+ '/public-data/creditProgramConditions',
13
+ 'POST',
14
+ {
15
+ creditProgramId,
16
+ },
17
+ );
16
18
 
17
19
  return (
18
20
  data?.paymentSystems?.map((paymentSystem) => ({
@@ -1,5 +1,4 @@
1
- import { fetchRetailJSON } from './doRequest';
2
- import { type CreateUserProfileResponse } from './updateUserTask';
1
+ import { doRequest } from './doRequest';
3
2
 
4
3
  export type UpdateUserProfileBody = {
5
4
  profile: {
@@ -23,4 +22,4 @@ export type UpdateUserProfileBody = {
23
22
  };
24
23
 
25
24
  export const updateUserProfile = (body: UpdateUserProfileBody) =>
26
- fetchRetailJSON<CreateUserProfileResponse>('/user-data/updateUserProfile', 'PUT', body);
25
+ doRequest('/user-data/updateUserProfile', 'PUT', body);
@@ -1,5 +1,5 @@
1
1
  import { type Option } from '../../ui-kit/Select/Option';
2
- import { fetchRetailJSON } from './doRequest';
2
+ import { doRequest } from './doRequest';
3
3
 
4
4
  type ParticipantAddress = {
5
5
  addressType: {
@@ -83,6 +83,7 @@ export type Participant = {
83
83
  participantAddresses?: ParticipantAddress[];
84
84
  participantIncomes?: ParticipantIncome[];
85
85
  payrollCardRshbFlg?: boolean;
86
+ consentInsuranceFlg?: boolean;
86
87
  positionCd?: Option;
87
88
  registrationDate?: string;
88
89
  seniority?: string;
@@ -107,9 +108,6 @@ export type Participant = {
107
108
  paymentSystemTypeCd?: string;
108
109
  classCard?: Option;
109
110
  codeWord?: string;
110
- loanAmount?: number;
111
- creditPeriod?: number;
112
- paymentTypeCd?: PaymentType;
113
111
  };
114
112
 
115
113
  export type UpdateUserTaskBody = {
@@ -131,6 +129,9 @@ export type UpdateUserTaskBody = {
131
129
  esiaAccountTypeCd?: {
132
130
  key: 'VERIFIED' | 'STANDARD' | 'SIMPLIFIED';
133
131
  };
132
+ loanAmount?: number;
133
+ creditPeriod?: number;
134
+ paymentTypeCd?: PaymentType;
134
135
  };
135
136
  };
136
137
 
@@ -141,4 +142,4 @@ export type CreateUserProfileResponse = {
141
142
  };
142
143
 
143
144
  export const updateUserTask = (body: UpdateUserTaskBody) =>
144
- fetchRetailJSON<CreateUserProfileResponse>('/user-data/updateUserTask', 'PUT', body);
145
+ doRequest('/user-data/updateUserTask', 'PUT', body);
@@ -11,7 +11,7 @@ export const getUpdateUserProfileData = (
11
11
  name = '',
12
12
  surname = '',
13
13
  middleName = '',
14
- birthday = '',
14
+ limitedBirthday = '',
15
15
  phone = '',
16
16
  email = '',
17
17
  processPersonalDataFlg,
@@ -29,7 +29,7 @@ export const getUpdateUserProfileData = (
29
29
  name,
30
30
  surname,
31
31
  midname: middleName,
32
- birthDate: birthday && formatDate(birthday, true),
32
+ birthDate: limitedBirthday && formatDate(limitedBirthday, true),
33
33
  email,
34
34
  phone: formatPhone(phone),
35
35
  processPersonalDataFlg: Boolean(processPersonalDataFlg),
@@ -92,7 +92,7 @@ export const ApplicationForm = JSX<ApplicationFormProps>(
92
92
  className={style(inputColumnStyles(_.columns), 'grid gap-x-m')}
93
93
  >
94
94
  {renderTitle(_.title)}
95
- {(_?.inputs || [])?.map(getField(field, typeForm))}
95
+ {(_?.inputs || [])?.map(getField(field, { typeForm }))}
96
96
  </div>
97
97
  ))}
98
98
  {renderAgreementSubmit(
@@ -11,11 +11,11 @@ export const renderInputs = ({ field, typeForm = '', inputs }: GroupedConsentsPr
11
11
 
12
12
  return consentInputs.length > 2 ? (
13
13
  <div>
14
- {restInputs.map(getField(field, typeForm))}
14
+ {restInputs.map(getField(field, { typeForm }))}
15
15
  <GroupedConsents inputs={consentInputs} field={field} />
16
16
  </div>
17
17
  ) : (
18
- (inputs || [])?.map(getField(field, typeForm))
18
+ (inputs || [])?.map(getField(field, { typeForm }))
19
19
  );
20
20
  };
21
21
 
@@ -49,7 +49,7 @@ export const GroupedConsents = JSX<GroupedConsentsProps>(
49
49
  unfoldedByDefault
50
50
  renderFoldableSection={({ isUnfolded }) => (
51
51
  <FoldableSection isUnfolded={isUnfolded} className="flex flex-col pl-2xl">
52
- {inputs.map(getField(field, typeForm))}
52
+ {inputs.map(getField(field, { typeForm }))}
53
53
  </FoldableSection>
54
54
  )}
55
55
  renderFoldButton={renderGeneralCheckbox(
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable max-lines */
2
+ import { type PaymentType } from '../../api/RetailAPI/updateUserTask';
2
3
  import {
3
4
  FEEDBACK_METHOD,
4
5
  SERVICE_DIRECTIONS,
@@ -143,14 +144,19 @@ export interface FormState extends FormConsents, FormStateDeliveryType {
143
144
  cardCategory?: Option;
144
145
  codeWord?: string;
145
146
  esiaAccountTypeCd?: Option;
146
- moneyValue?: number;
147
- monthsValue?: number;
148
- isAnnuity?: boolean;
149
- isInsurance?: boolean;
150
- isSalaryClient?: boolean;
151
- isPensionClient?: boolean;
152
- isStateEmployee?: boolean;
147
+ calculator?: {
148
+ moneyValue?: number;
149
+ monthsValue?: number;
150
+ isAnnuity?: boolean;
151
+ isInsurance?: boolean;
152
+ isSalaryClient?: boolean;
153
+ isPensionClient?: boolean;
154
+ isStateEmployee?: boolean;
155
+ };
153
156
  addressRetail?: Option;
157
+ loanAmount?: number;
158
+ creditPeriod?: number;
159
+ paymentTypeCd?: PaymentType;
154
160
  }
155
161
 
156
162
  const initialFormState = {
@@ -24,6 +24,13 @@ type ApplicationLeadApiProps = {
24
24
  saveForm: (value: FormState) => void;
25
25
  };
26
26
 
27
+ type UserData = {
28
+ participantId: number;
29
+ taskId: number;
30
+ profileId: number;
31
+ programId: string;
32
+ };
33
+
27
34
  export const useApplicationLeadApi = ({
28
35
  inputs,
29
36
  programId,
@@ -34,15 +41,20 @@ export const useApplicationLeadApi = ({
34
41
  const [, setTaskId] = useLocalStorage<number>('taskId');
35
42
  const [, setProfileId] = useLocalStorage<number>('profileId');
36
43
  const [, setParticipantId] = useLocalStorage<number>('participantId');
44
+ const [, setProgramId] = useLocalStorage<string>('programId');
37
45
  const esiaLoginDialog = useEsiaLoginDialog(nextStepLink);
38
46
  const consentBkiDialog = useConsentBkiDialog(esiaLoginDialog.open);
39
47
  const verifyPhoneDialog = useVerifyPhoneDialog();
40
48
 
41
- const saveUserData = useCallback((participantId: number, taskId: number, profileId: number) => {
42
- setParticipantId(participantId);
43
- setTaskId(taskId);
44
- setProfileId(profileId);
45
- }, []);
49
+ const saveUserData = useCallback(
50
+ ({ participantId, taskId, profileId, programId: programNumber }: UserData) => {
51
+ setParticipantId(participantId);
52
+ setTaskId(taskId);
53
+ setProfileId(profileId);
54
+ setProgramId(programNumber);
55
+ },
56
+ [],
57
+ );
46
58
 
47
59
  // eslint-disable-next-line consistent-return
48
60
  const handleSubmit = useCallback(async (formData: FormState) => {
@@ -103,7 +115,7 @@ const updateUserData = async ({
103
115
  programId: string;
104
116
  profileId: number;
105
117
  formData: FormState;
106
- saveUserData: (participantId: number, taskId: number, profileId: number) => void;
118
+ saveUserData: (userData: UserData) => void;
107
119
  saveForm: (formData: FormState) => void;
108
120
  }) => {
109
121
  const transformedForm = transformOtherConsentsField(formData);
@@ -115,16 +127,20 @@ const updateUserData = async ({
115
127
  programId,
116
128
  });
117
129
 
118
- await updateUserTask(
119
- getLeadFormTaskData({
120
- participantId,
121
- taskId,
122
- profileId,
123
- formData: transformedForm,
124
- }),
125
- );
126
-
127
- saveUserData(participantId, taskId, profileId);
130
+ try {
131
+ await updateUserTask(
132
+ getLeadFormTaskData({
133
+ participantId,
134
+ taskId,
135
+ profileId,
136
+ formData: transformedForm,
137
+ }),
138
+ );
139
+ } catch (ex) {
140
+ console.log(ex);
141
+ }
142
+
143
+ saveUserData({ participantId, taskId, profileId, programId });
128
144
  saveForm(formData);
129
145
  };
130
146
 
@@ -18,7 +18,6 @@ import { renderWantedSumInput } from '../../ui-kit/Calculator/renderWantedSumInp
18
18
  import { setDefaultParamsCalc } from '../../ui-kit/Calculator/setDefaultParamsCalc';
19
19
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox';
20
20
  import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection';
21
- import { type PreventableEvent } from '../../ui-kit/PreventableEvent';
22
21
  import { UniBlock } from '../../UniBlock/UniBlock';
23
22
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
24
23
  import { clamp } from '../../utils/clamp';
@@ -29,6 +28,7 @@ import {
29
28
  type CreditCalculatorParams,
30
29
  type CreditCalculatorParamsViewSettings,
31
30
  type CreditCalculatorSourceBookParams,
31
+ type CreditCalculatorUserInputParams,
32
32
  } from './CalculatorCreditContent';
33
33
  import { getCreditCalculatorParams } from './getCreditCalculatorParams';
34
34
  import { isDefaultParams } from './isDefaultParams';
@@ -45,7 +45,7 @@ const MAP = {
45
45
  export interface CalculatorDepositProps extends CalculatorCreditContent, UniBlockProps {
46
46
  className?: string;
47
47
  calcSource?: CreditCalculatorData & JSONRefObject;
48
- registerSubmit?: (submit: ((ev: PreventableEvent) => Record<string, any>) | undefined) => void;
48
+ onChange?: (params: CreditCalculatorUserInputParams) => void;
49
49
  }
50
50
 
51
51
  export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
@@ -57,12 +57,12 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
57
57
  footnote,
58
58
  paramsViewSettings,
59
59
  defaultParams,
60
- registerSubmit,
60
+ onChange,
61
61
  ...rest
62
62
  }) => {
63
63
  const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
64
64
 
65
- const [userInputParams, { field, onSubmit }] = useForm({
65
+ const [userInputParams, { field, isDirty }] = useForm({
66
66
  moneyValue: getMoneyDefaultValue(defaultParams, CREDIT_DEFAULT_SUM),
67
67
  monthsValue: getMonthsDefaultValue(defaultParams, DEFAULT_MONTHS),
68
68
  isAnnuity: Boolean(defaultParams?.isAnnuity),
@@ -72,7 +72,9 @@ export const CalculatorCredit = UniBlock<CalculatorDepositProps>(
72
72
  isStateEmployee: Boolean(defaultParams?.isEnableStateEmployee),
73
73
  });
74
74
 
75
- registerSubmit?.(onSubmit);
75
+ useEffect(() => {
76
+ isDirty && onChange?.(userInputParams);
77
+ }, [userInputParams, isDirty]);
76
78
 
77
79
  const calcParams = getCreditCalculatorParams(userInputParams, calcSource, paramsViewSettings);
78
80
  const paymentTypeElement = renderPaymentType({
@@ -0,0 +1,26 @@
1
+ import {
2
+ type CreditCalculatorUserInputParams,
3
+ type CreditDefaultParams,
4
+ } from './CalculatorCreditContent';
5
+
6
+ export const PARAMS_MAP = {
7
+ moneyValue: 'sum',
8
+ monthsValue: 'period',
9
+ isInsurance: 'isEnableInsurance',
10
+ isPensionClient: 'isEnablePensionClient',
11
+ isStateEmployee: 'isEnableStateEmployee',
12
+ isSalaryClient: 'isEnableSalaryClient',
13
+ isAnnuity: 'isAnnuity',
14
+ };
15
+
16
+ export const defaultValueAdapter = (
17
+ value?: CreditCalculatorUserInputParams,
18
+ isInverse = false,
19
+ ): CreditDefaultParams => {
20
+ const keysMap = isInverse ? swap(PARAMS_MAP) : PARAMS_MAP;
21
+
22
+ return Object.fromEntries(Object.entries(value ?? {}).map(([k, v]) => [keysMap[k], v]));
23
+ };
24
+
25
+ const swap = (_: Record<string, string>) =>
26
+ Object.fromEntries(Object.entries(_).map(([k, v]) => [v, k]));
@@ -11,9 +11,9 @@ import { stepsSectionsMap } from './creditCardFormStepsData';
11
11
 
12
12
  interface CreditCardFormWizardProps extends CreditCardFormContent, UniBlockProps {}
13
13
 
14
- const WIZARD_STEPS = 6;
14
+ const STEPS = 6;
15
15
 
16
- const WIZARD_TITLES = [
16
+ const TITLES = [
17
17
  'Параметры карты',
18
18
  'Персональные данные',
19
19
  'Данные о трудоустройстве',
@@ -34,7 +34,7 @@ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...re
34
34
  useEffect(updateRefreshToken, []);
35
35
 
36
36
  const handleNextStep = useCallback(() => {
37
- setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
37
+ setStep((_) => Math.min(_ + 1, STEPS));
38
38
  scrollToTop();
39
39
  }, []);
40
40
 
@@ -52,11 +52,7 @@ export const CreditCardForm = JSX<CreditCardFormWizardProps>(({ className, ...re
52
52
  <BlockWrapper className={style('bg-transparent', className)} defaultPadding="p-0" {...rest}>
53
53
  <div ref={formContainerRef} className="container grid grid-cols-12">
54
54
  {isFormFinished ? null : (
55
- <CreditCardFormProgress
56
- stepsTitles={WIZARD_TITLES}
57
- step={step}
58
- totalSteps={WIZARD_STEPS}
59
- />
55
+ <CreditCardFormProgress stepsTitles={TITLES} step={step} totalSteps={STEPS} />
60
56
  )}
61
57
  <div className="py-lg px-5xl mt-2xs bg-white col-span-12">
62
58
  <CreditCardFormStep
@@ -15,6 +15,7 @@ type CreditCardFormStatusProps = UniBlockProps & {
15
15
  title?: string;
16
16
  description?: string;
17
17
  interval?: number;
18
+ intervalExpireAction?: () => void;
18
19
  sectionInfoTitle?: string;
19
20
  sectionInfo?: (LabelProps & DescriptionProps)[];
20
21
  sectionAdditionalTitle?: string;
@@ -34,6 +35,9 @@ export const CreditCardFormStatus = JSX<CreditCardFormStatusProps>(
34
35
  sectionInfoAdditional,
35
36
  buttonText,
36
37
  interval,
38
+ intervalExpireAction = () => {
39
+ return;
40
+ },
37
41
  ...props
38
42
  }) => (
39
43
  <BlockWrapper {...props}>
@@ -46,7 +50,9 @@ export const CreditCardFormStatus = JSX<CreditCardFormStatusProps>(
46
50
  padding="p-xl"
47
51
  className="w-full"
48
52
  />
49
- {interval ? <TimerCircle interval={interval} /> : null}
53
+ {interval ? (
54
+ <TimerCircle interval={interval} intervalExpireAction={intervalExpireAction} />
55
+ ) : null}
50
56
  </div>
51
57
  <SectionInfo title={sectionInfoTitle} items={sectionInfo} />
52
58
  <SectionInfo title={sectionAdditionalTitle} items={sectionInfoAdditional} countColumns />