@redneckz/wildless-cms-uni-blocks 0.14.665 → 0.14.666

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 (216) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +93 -58
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
  5. package/bundle/components/CreditForm/utils.d.ts +7 -1
  6. package/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  7. package/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  8. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  9. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
  10. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  11. package/dist/components/ContentPage/useContentPageData.js +1 -1
  12. package/dist/components/ContentPage/useContentPageData.js.map +1 -1
  13. package/dist/components/CreditCardForm/CreditCardForm.js +2 -0
  14. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  15. package/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  16. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  17. package/dist/components/CreditCardForm/formStateMap.js +2 -2
  18. package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  19. package/dist/components/CreditCardForm/getFourthStepData.js +8 -2
  20. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  21. package/dist/components/CreditForm/creditFormStepsData.js +2 -2
  22. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  23. package/dist/components/CreditForm/formStateMap.js +2 -2
  24. package/dist/components/CreditForm/formStateMap.js.map +1 -1
  25. package/dist/components/CreditForm/getThirdStepData.js +8 -2
  26. package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  27. package/dist/components/CreditForm/utils.d.ts +7 -1
  28. package/dist/components/CreditForm/utils.js +9 -3
  29. package/dist/components/CreditForm/utils.js.map +1 -1
  30. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  31. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
  32. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  33. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  34. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  35. package/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  36. package/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
  37. package/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  38. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  39. package/dist/ui-kit/FormField/getField.js +4 -4
  40. package/dist/ui-kit/FormField/getField.js.map +1 -1
  41. package/dist/ui-kit/FormField/getObjectValidator.js +2 -2
  42. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  43. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
  44. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  45. package/lib/components/ContentPage/useContentPageData.js +1 -1
  46. package/lib/components/ContentPage/useContentPageData.js.map +1 -1
  47. package/lib/components/CreditCardForm/CreditCardForm.js +3 -1
  48. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  49. package/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  50. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  51. package/lib/components/CreditCardForm/formStateMap.js +2 -2
  52. package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  53. package/lib/components/CreditCardForm/getFourthStepData.js +8 -2
  54. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  55. package/lib/components/CreditForm/creditFormStepsData.js +2 -2
  56. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  57. package/lib/components/CreditForm/formStateMap.js +2 -2
  58. package/lib/components/CreditForm/formStateMap.js.map +1 -1
  59. package/lib/components/CreditForm/getThirdStepData.js +8 -2
  60. package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  61. package/lib/components/CreditForm/utils.d.ts +7 -1
  62. package/lib/components/CreditForm/utils.js +9 -3
  63. package/lib/components/CreditForm/utils.js.map +1 -1
  64. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  65. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  66. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
  67. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  68. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  69. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  70. package/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  71. package/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
  72. package/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  73. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  74. package/lib/ui-kit/FormField/getField.js +4 -4
  75. package/lib/ui-kit/FormField/getField.js.map +1 -1
  76. package/lib/ui-kit/FormField/getObjectValidator.js +2 -2
  77. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  78. package/mobile/bundle/bundle.umd.js +93 -58
  79. package/mobile/bundle/bundle.umd.min.js +1 -1
  80. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
  81. package/mobile/bundle/components/CreditForm/utils.d.ts +7 -1
  82. package/mobile/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  83. package/mobile/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  84. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  85. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
  86. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  87. package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
  88. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
  89. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +2 -0
  90. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  91. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  92. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  93. package/mobile/dist/components/CreditCardForm/formStateMap.js +2 -2
  94. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  95. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +8 -2
  96. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  97. package/mobile/dist/components/CreditForm/creditFormStepsData.js +2 -2
  98. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  99. package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
  100. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
  101. package/mobile/dist/components/CreditForm/getThirdStepData.js +8 -2
  102. package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  103. package/mobile/dist/components/CreditForm/utils.d.ts +7 -1
  104. package/mobile/dist/components/CreditForm/utils.js +9 -3
  105. package/mobile/dist/components/CreditForm/utils.js.map +1 -1
  106. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  107. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
  108. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  109. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  110. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  111. package/mobile/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  112. package/mobile/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
  113. package/mobile/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  114. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  115. package/mobile/dist/ui-kit/FormField/getField.js +4 -4
  116. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  117. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +2 -2
  118. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  119. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
  120. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  121. package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
  122. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
  123. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +3 -1
  124. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  125. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  126. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  127. package/mobile/lib/components/CreditCardForm/formStateMap.js +2 -2
  128. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  129. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +8 -2
  130. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  131. package/mobile/lib/components/CreditForm/creditFormStepsData.js +2 -2
  132. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  133. package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
  134. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
  135. package/mobile/lib/components/CreditForm/getThirdStepData.js +8 -2
  136. package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  137. package/mobile/lib/components/CreditForm/utils.d.ts +7 -1
  138. package/mobile/lib/components/CreditForm/utils.js +9 -3
  139. package/mobile/lib/components/CreditForm/utils.js.map +1 -1
  140. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  141. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
  142. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  143. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  144. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  145. package/mobile/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  146. package/mobile/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
  147. package/mobile/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  148. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  149. package/mobile/lib/ui-kit/FormField/getField.js +4 -4
  150. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  151. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +2 -2
  152. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  153. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -1
  154. package/mobile/src/components/ContentPage/useContentPageData.ts +1 -1
  155. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
  156. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
  157. package/mobile/src/components/CreditCardForm/formStateMap.tsx +2 -2
  158. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +14 -2
  159. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
  160. package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
  161. package/mobile/src/components/CreditForm/getThirdStepData.ts +14 -2
  162. package/mobile/src/components/CreditForm/utils.ts +9 -3
  163. package/mobile/src/ui-kit/FormField/Fields/{OtherPayments.tsx → MandatoryPaymentsField.tsx} +2 -2
  164. package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
  165. package/mobile/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
  166. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +5 -1
  167. package/mobile/src/ui-kit/FormField/getField.tsx +4 -4
  168. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
  169. package/package.json +1 -1
  170. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -1
  171. package/src/components/ContentPage/useContentPageData.ts +1 -1
  172. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +11 -0
  173. package/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
  174. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
  175. package/src/components/CreditCardForm/formStateMap.tsx +2 -2
  176. package/src/components/CreditCardForm/getFourthStepData.ts +14 -2
  177. package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
  178. package/src/components/CreditForm/formStateMap.tsx +2 -2
  179. package/src/components/CreditForm/getThirdStepData.ts +14 -2
  180. package/src/components/CreditForm/utils.ts +9 -3
  181. package/src/ui-kit/FormField/Fields/{OtherPayments.tsx → MandatoryPaymentsField.tsx} +2 -2
  182. package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
  183. package/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
  184. package/src/ui-kit/FormField/NameFieldDef.ts +5 -1
  185. package/src/ui-kit/FormField/getField.tsx +4 -4
  186. package/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
  187. package/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  188. package/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  189. package/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  190. package/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
  191. package/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  192. package/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  193. package/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
  194. package/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  195. package/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  196. package/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
  197. package/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  198. package/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  199. package/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
  200. package/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  201. package/mobile/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  202. package/mobile/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  203. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  204. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
  205. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  206. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  207. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
  208. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  209. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  210. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
  211. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  212. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  213. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
  214. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  215. package/mobile/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
  216. package/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
@@ -1530,8 +1530,8 @@
1530
1530
  participantDateRegistration: defaultValidator('Укажите дату регистрации'),
1531
1531
  retirementIncome: defaultValidator(),
1532
1532
  otherIncome: defaultValidator(),
1533
- mandatoryIncome: defaultValidator(),
1534
- otherPayments: defaultValidator(),
1533
+ wages: defaultValidator(),
1534
+ mandatoryPayments: defaultValidator(),
1535
1535
  disablePeopleFlg: defaultValidator(),
1536
1536
  bankruptcyFlg: defaultValidator(),
1537
1537
  shareholderFlg: defaultValidator(),
@@ -2469,7 +2469,7 @@
2469
2469
  return (jsx(SelectControl, { label: "\u041D\u0430\u0441\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u0443\u043D\u043A\u0442", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0433\u043E\u0440\u043E\u0434, \u0433\u0434\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0441\u0435\u0440\u0432\u0438\u0441", options: localities, ...getValidation(field('localities'), validatorObj.localities, input?.required), isSearch: true }));
2470
2470
  });
2471
2471
 
2472
- const MandatoryIncomeField = JSX(({ field, input }) => (jsx(InputControl, { 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", type: "number", ...getValidation(field('mandatoryIncome'), validatorObj.mandatoryIncome, input?.required), ...input })));
2472
+ const MandatoryPaymentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('mandatoryPayments'), validatorObj.mandatoryPayments, input?.required), ...input })));
2473
2473
 
2474
2474
  const METHODS_OF_OBTAIN = [
2475
2475
  { id: 'office', text: 'В отделении Банка' },
@@ -2501,8 +2501,6 @@
2501
2501
 
2502
2502
  const OtherIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('otherIncome'), validatorObj.otherIncome, input?.required), ...input })));
2503
2503
 
2504
- const OtherPaymentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('otherPayments'), validatorObj.otherPayments, input?.required), ...input })));
2505
-
2506
2504
  const ParticipantDateRegistrationField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043C\u0435\u0441\u0442\u0443 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430", ...getValidation(field('participantDateRegistration'), validatorObj.participantDateRegistration, input?.required) })));
2507
2505
 
2508
2506
  const MAX_PART = 100;
@@ -3252,7 +3250,15 @@
3252
3250
  return (jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: useMemo(() => regions?.map(({ region = '' }) => ({ key: region, text: region })), [regions]), ...getValidation(field('regionRetail'), validatorObj.regionRetail, input?.required) }));
3253
3251
  });
3254
3252
 
3255
- const RetirementIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041F\u0435\u043D\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required), ...input })));
3253
+ const RetirementIncomeField = JSX(({ field, input }) => {
3254
+ const currentWages = field('wages')?.value;
3255
+ const onChange = useCallback((_) => {
3256
+ const incomesSum = Number(_) + Number(currentWages || 0);
3257
+ field('retirementIncome')?.onChange?.(_);
3258
+ field('incomeAverage')?.onChange?.(String(incomesSum));
3259
+ }, [currentWages]);
3260
+ return (jsx(InputControl, { label: "\u041F\u0435\u043D\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required), ...input, onChange: onChange }));
3261
+ });
3256
3262
 
3257
3263
  const SecondaryPhoneField = JSX(({ field }) => {
3258
3264
  const fieldPhone = field('secondaryPhone');
@@ -3317,6 +3323,16 @@
3317
3323
  return (jsx("div", { className: "py-m gap-m grid @xl:flex @xl:items-center", children: jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: VED_TYPES, value: value, onChange: (_) => onChange && onChange(_) }) }));
3318
3324
  });
3319
3325
 
3326
+ const WagesField = JSX(({ field, input }) => {
3327
+ const currentRetirementIncome = field('retirementIncome')?.value;
3328
+ const onChange = useCallback((_) => {
3329
+ const incomesSum = Number(_) + Number(currentRetirementIncome || 0);
3330
+ field('wages')?.onChange?.(_);
3331
+ field('incomeAverage')?.onChange?.(String(incomesSum));
3332
+ }, [currentRetirementIncome]);
3333
+ return (jsx(InputControl, { 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", type: "number", ...getValidation(field('wages'), validatorObj.wages, input?.required), ...input, onChange: onChange }));
3334
+ });
3335
+
3320
3336
  function isRenderField({ input, field, }) {
3321
3337
  const { condition } = input;
3322
3338
  const { value } = field(condition?.name || '');
@@ -3404,8 +3420,8 @@
3404
3420
  participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
3405
3421
  retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
3406
3422
  otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
3407
- mandatoryIncome: jsx(MandatoryIncomeField, { field: field, input: input }),
3408
- otherPayments: jsx(OtherPaymentsField, { field: field, input: input }),
3423
+ wages: jsx(WagesField, { field: field, input: input }),
3424
+ mandatoryPayments: jsx(MandatoryPaymentsField, { field: field, input: input }),
3409
3425
  disablePeopleFlg: jsx(DisablePeopleFlgField, { field: field, input: input }),
3410
3426
  bankruptcyFlg: jsx(BankruptcyFlgField, { field: field, input: input }),
3411
3427
  shareholderFlg: jsx(ShareholderFlgField, { field: field, input: input }),
@@ -4049,8 +4065,14 @@
4049
4065
  organizationAddress: 'WORK',
4050
4066
  };
4051
4067
  const fieldsNamesToIncomeKeysMap = {
4052
- mandatoryIncome: 'INCOME_AVERAGE',
4053
- otherPayments: 'MANDATORY_PAYMENTS',
4068
+ incomeAverage: 'INCOME_AVERAGE',
4069
+ mandatoryPayments: 'MANDATORY_PAYMENTS',
4070
+ additionalIncome: 'ADDITIONAL_INCOME',
4071
+ otherIncome: 'OTHER_INCOME',
4072
+ otherPayments: 'OTHER_PAYMENTS',
4073
+ rentalIncome: 'RENTAL_INCOME',
4074
+ wages: 'WAGES',
4075
+ retirementIncome: 'RETIREMENT_INCOME',
4054
4076
  };
4055
4077
  const getParticipantContacts = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
4056
4078
  if (key in fieldsNamesToContactKeysMap) {
@@ -4091,7 +4113,7 @@
4091
4113
  incomeTypeCd: {
4092
4114
  key: fieldsNamesToIncomeKeysMap[key],
4093
4115
  },
4094
- value,
4116
+ value: Number(value || 0),
4095
4117
  },
4096
4118
  ];
4097
4119
  }
@@ -5987,6 +6009,40 @@
5987
6009
  const renderBlocks = (info) => (jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, i) => renderBlocksColumn({ column, i })) }));
5988
6010
  const renderBlocksColumn = ({ column, i }) => column ? (jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (jsx("div", { className: "mt-xs opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, jsx("div", { className: style({ 'mt-xl': Boolean(button?.text) }), children: renderButtonsSection([button]) })] }, String(key)))) }, `col-${String(i)}`)) : null;
5989
6011
 
6012
+ const PORTAL_NATURAL_URL = '/';
6013
+ const UPDATING_INTERVAL = 60000 * 4;
6014
+ const updateRefreshToken = () => {
6015
+ const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
6016
+ const accessToken = globalThis.sessionStorage?.getItem('accessToken');
6017
+ const taskId = globalThis.localStorage.getItem('taskId');
6018
+ if (!accessToken || !refreshToken || !taskId) {
6019
+ globalThis.location.href = PORTAL_NATURAL_URL;
6020
+ return () => null;
6021
+ }
6022
+ const updateTokenRequest = async () => {
6023
+ const res = await doRequest('/auth/refresh', 'POST', {
6024
+ // eslint-disable-next-line camelcase
6025
+ refresh_token: refreshToken,
6026
+ // eslint-disable-next-line camelcase
6027
+ access_token: accessToken,
6028
+ });
6029
+ if (res instanceof Response) {
6030
+ handleStatus(res.status);
6031
+ return;
6032
+ }
6033
+ globalThis.sessionStorage.setItem('refreshToken', res.refresh_token);
6034
+ globalThis.sessionStorage.setItem('accessToken', res.access_token);
6035
+ };
6036
+ updateTokenRequest();
6037
+ const timer = setInterval(updateTokenRequest, UPDATING_INTERVAL);
6038
+ return () => clearInterval(timer);
6039
+ };
6040
+ const handleStatus = (status) => {
6041
+ if (status == 401) {
6042
+ globalThis.location.href = PORTAL_NATURAL_URL;
6043
+ }
6044
+ };
6045
+
5990
6046
  const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
5991
6047
 
5992
6048
  const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
@@ -6173,8 +6229,8 @@
6173
6229
  dependents: undefined,
6174
6230
  familyMembers: undefined,
6175
6231
  confirmationIncome: { key: '', text: '' },
6176
- mandatoryIncome: undefined,
6177
- otherPayments: undefined,
6232
+ wages: undefined,
6233
+ mandatoryPayments: undefined,
6178
6234
  snils: '',
6179
6235
  armyIdFlg: false,
6180
6236
  },
@@ -6290,14 +6346,20 @@
6290
6346
  };
6291
6347
 
6292
6348
  const getFourthStepData$1 = (formData) => {
6293
- const { familyStatus, dependents, familyMembers, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
6349
+ const { familyStatus, dependents, familyMembers, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
6294
6350
  return {
6295
6351
  maritalStatusCd: familyStatus,
6296
6352
  totalDependents: familyMembers,
6297
6353
  otherDependents: dependents,
6298
6354
  participantIncomes: getParticipantIncomes({
6299
- mandatoryIncome,
6355
+ wages,
6356
+ mandatoryPayments,
6357
+ incomeAverage,
6358
+ additionalIncome,
6359
+ otherIncome,
6300
6360
  otherPayments,
6361
+ rentalIncome,
6362
+ retirementIncome,
6301
6363
  }),
6302
6364
  snils: snils?.replaceAll(' ', ''),
6303
6365
  armyIdFlg,
@@ -6688,11 +6750,11 @@
6688
6750
  },
6689
6751
  {
6690
6752
  columns: 1,
6691
- inputs: [{ fieldType: 'common', name: 'mandatoryIncome', required: true }],
6753
+ inputs: [{ fieldType: 'common', name: 'wages', required: true }],
6692
6754
  },
6693
6755
  {
6694
6756
  columns: 1,
6695
- inputs: [{ fieldType: 'common', name: 'otherPayments', required: true }],
6757
+ inputs: [{ fieldType: 'common', name: 'mandatoryPayments', required: true }],
6696
6758
  },
6697
6759
  {
6698
6760
  columns: 1,
@@ -6830,6 +6892,7 @@
6830
6892
  ];
6831
6893
  const CreditCardForm = JSX(({ className, ...rest }) => {
6832
6894
  const [step, setStep] = useState(0);
6895
+ useEffect(updateRefreshToken, []);
6833
6896
  const handleNextStep = useCallback(() => {
6834
6897
  setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
6835
6898
  }, []);
@@ -6842,40 +6905,6 @@
6842
6905
  return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [isFormFinished ? null : (jsx(CreditCardFormProgress, { stepsTitles: WIZARD_TITLES$1, step: step, totalSteps: WIZARD_STEPS$1 })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditCardFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished }, String(step)) })] }) }));
6843
6906
  });
6844
6907
 
6845
- const PORTAL_NATURAL_URL = '/';
6846
- const UPDATING_INTERVAL = 60000 * 4;
6847
- const updateRefreshToken = () => {
6848
- const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
6849
- const accessToken = globalThis.sessionStorage?.getItem('accessToken');
6850
- const taskId = globalThis.localStorage.getItem('taskId');
6851
- if (!accessToken || !refreshToken || !taskId) {
6852
- globalThis.location.href = PORTAL_NATURAL_URL;
6853
- return () => null;
6854
- }
6855
- const updateTokenRequest = async () => {
6856
- const res = await doRequest('/auth/refresh', 'POST', {
6857
- // eslint-disable-next-line camelcase
6858
- refresh_token: refreshToken,
6859
- // eslint-disable-next-line camelcase
6860
- access_token: accessToken,
6861
- });
6862
- if (res instanceof Response) {
6863
- handleStatus(res.status);
6864
- return;
6865
- }
6866
- globalThis.sessionStorage.setItem('refreshToken', res.refresh_token);
6867
- globalThis.sessionStorage.setItem('accessToken', res.access_token);
6868
- };
6869
- updateTokenRequest();
6870
- const timer = setInterval(updateTokenRequest, UPDATING_INTERVAL);
6871
- return () => clearInterval(timer);
6872
- };
6873
- const handleStatus = (status) => {
6874
- if (status == 401) {
6875
- globalThis.location.href = PORTAL_NATURAL_URL;
6876
- }
6877
- };
6878
-
6879
6908
  const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
6880
6909
  const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
6881
6910
  return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
@@ -7067,8 +7096,8 @@
7067
7096
  dependents: undefined,
7068
7097
  familyMembers: undefined,
7069
7098
  confirmationIncome: { key: '', text: '' },
7070
- mandatoryIncome: undefined,
7071
- otherPayments: undefined,
7099
+ wages: undefined,
7100
+ mandatoryPayments: undefined,
7072
7101
  snils: '',
7073
7102
  armyIdFlg: false,
7074
7103
  },
@@ -7217,15 +7246,21 @@
7217
7246
  };
7218
7247
 
7219
7248
  const getThirdStepData = (formData) => {
7220
- const { familyStatus, dependents, familyMembers, confirmationIncome, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
7249
+ const { familyStatus, dependents, familyMembers, confirmationIncome, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
7221
7250
  return {
7222
7251
  maritalStatusCd: familyStatus,
7223
7252
  totalDependents: familyMembers,
7224
7253
  incomeCertificateCd: confirmationIncome,
7225
7254
  otherDependents: dependents,
7226
7255
  participantIncomes: getParticipantIncomes({
7227
- mandatoryIncome,
7256
+ wages,
7257
+ mandatoryPayments,
7258
+ incomeAverage,
7259
+ additionalIncome,
7260
+ otherIncome,
7228
7261
  otherPayments,
7262
+ rentalIncome,
7263
+ retirementIncome,
7229
7264
  }),
7230
7265
  snils: snils?.replaceAll(' ', ''),
7231
7266
  armyIdFlg,
@@ -7547,11 +7582,11 @@
7547
7582
  },
7548
7583
  {
7549
7584
  columns: 1,
7550
- inputs: [{ fieldType: 'common', name: 'mandatoryIncome', required: true }],
7585
+ inputs: [{ fieldType: 'common', name: 'wages', required: true }],
7551
7586
  },
7552
7587
  {
7553
7588
  columns: 1,
7554
- inputs: [{ fieldType: 'common', name: 'otherPayments', required: true }],
7589
+ inputs: [{ fieldType: 'common', name: 'mandatoryPayments', required: true }],
7555
7590
  },
7556
7591
  {
7557
7592
  columns: 1,
@@ -9917,7 +9952,7 @@
9917
9952
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
9918
9953
  });
9919
9954
 
9920
- const packageVersion = "0.14.664";
9955
+ const packageVersion = "0.14.665";
9921
9956
 
9922
9957
  exports.Blocks = Blocks;
9923
9958
  exports.ContentPage = ContentPage;