@redneckz/wildless-cms-uni-blocks 0.14.621 → 0.14.623

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 (231) hide show
  1. package/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +43 -34
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  6. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
  7. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  8. package/bundle/components/CreditForm/CreditFormStep.d.ts +1 -2
  9. package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
  10. package/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -178
  11. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  12. package/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  13. package/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
  14. package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  15. package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  16. package/dist/api/dadataHints/hintsListsOptions.js +1 -0
  17. package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  18. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  19. package/dist/components/ApplicationForm/getInitialFormState.js +1 -1
  20. package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  21. package/dist/components/ApplicationForm/renderInputs.js +2 -2
  22. package/dist/components/ApplicationForm/renderInputs.js.map +1 -1
  23. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
  24. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  25. package/dist/components/ApplicationLeadForm/consents.js +1 -1
  26. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  27. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  28. package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -2
  29. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  30. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  31. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  32. package/dist/components/CreditForm/CreditForm.js +3 -3
  33. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  34. package/dist/components/CreditForm/CreditFormProgress.js +3 -3
  35. package/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
  36. package/dist/components/CreditForm/CreditFormStep.d.ts +1 -2
  37. package/dist/components/CreditForm/CreditFormStep.js +3 -3
  38. package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  39. package/dist/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
  40. package/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
  41. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  42. package/dist/components/CreditForm/creditFormStepsData.d.ts +2 -178
  43. package/dist/components/CreditForm/creditFormStepsData.js +8 -9
  44. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  45. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
  46. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  47. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  48. package/dist/ui-kit/FormField/getField.js +2 -2
  49. package/dist/ui-kit/FormField/getField.js.map +1 -1
  50. package/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  51. package/dist/ui-kit/FormField/getObjectValidator.js +2 -2
  52. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  53. package/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
  54. package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  55. package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  56. package/lib/api/dadataHints/hintsListsOptions.js +1 -0
  57. package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  58. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  59. package/lib/components/ApplicationForm/getInitialFormState.js +1 -1
  60. package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  61. package/lib/components/ApplicationForm/renderInputs.js +2 -2
  62. package/lib/components/ApplicationForm/renderInputs.js.map +1 -1
  63. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +0 -2
  64. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
  65. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  66. package/lib/components/ApplicationLeadForm/consents.js +1 -1
  67. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  68. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  69. package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -2
  70. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  71. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  72. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  73. package/lib/components/CreditForm/CreditForm.js +3 -3
  74. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  75. package/lib/components/CreditForm/CreditFormProgress.js +3 -3
  76. package/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
  77. package/lib/components/CreditForm/CreditFormStep.d.ts +1 -2
  78. package/lib/components/CreditForm/CreditFormStep.js +3 -3
  79. package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  80. package/lib/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
  81. package/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
  82. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  83. package/lib/components/CreditForm/creditFormStepsData.d.ts +2 -178
  84. package/lib/components/CreditForm/creditFormStepsData.js +8 -9
  85. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  86. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  87. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
  88. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  89. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  90. package/lib/ui-kit/FormField/getField.js +2 -2
  91. package/lib/ui-kit/FormField/getField.js.map +1 -1
  92. package/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  93. package/lib/ui-kit/FormField/getObjectValidator.js +2 -2
  94. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  95. package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
  96. package/mobile/bundle/bundle.umd.js +43 -34
  97. package/mobile/bundle/bundle.umd.min.js +1 -1
  98. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  99. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
  100. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  101. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +1 -2
  102. package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
  103. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -178
  104. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  105. package/mobile/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  106. package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
  107. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  108. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  109. package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
  110. package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  111. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  112. package/mobile/dist/components/ApplicationForm/getInitialFormState.js +1 -1
  113. package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  114. package/mobile/dist/components/ApplicationForm/renderInputs.js +2 -2
  115. package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -1
  116. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
  117. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  118. package/mobile/dist/components/ApplicationLeadForm/consents.js +1 -1
  119. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  120. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  121. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -2
  122. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  123. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  124. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  125. package/mobile/dist/components/CreditForm/CreditForm.js +3 -3
  126. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  127. package/mobile/dist/components/CreditForm/CreditFormProgress.js +3 -3
  128. package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
  129. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +1 -2
  130. package/mobile/dist/components/CreditForm/CreditFormStep.js +3 -3
  131. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  132. package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
  133. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
  134. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  135. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +2 -178
  136. package/mobile/dist/components/CreditForm/creditFormStepsData.js +8 -9
  137. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  138. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
  139. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  140. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  141. package/mobile/dist/ui-kit/FormField/getField.js +2 -2
  142. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  143. package/mobile/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  144. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +2 -2
  145. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  146. package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
  147. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
  148. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  149. package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
  150. package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  151. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  152. package/mobile/lib/components/ApplicationForm/getInitialFormState.js +1 -1
  153. package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  154. package/mobile/lib/components/ApplicationForm/renderInputs.js +2 -2
  155. package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -1
  156. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
  157. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  158. package/mobile/lib/components/ApplicationLeadForm/consents.js +1 -1
  159. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  160. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  161. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -2
  162. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  163. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  164. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  165. package/mobile/lib/components/CreditForm/CreditForm.js +3 -3
  166. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  167. package/mobile/lib/components/CreditForm/CreditFormProgress.js +3 -3
  168. package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
  169. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +1 -2
  170. package/mobile/lib/components/CreditForm/CreditFormStep.js +3 -3
  171. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  172. package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
  173. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
  174. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  175. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +2 -178
  176. package/mobile/lib/components/CreditForm/creditFormStepsData.js +8 -9
  177. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  178. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
  179. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  180. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  181. package/mobile/lib/ui-kit/FormField/getField.js +2 -2
  182. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  183. package/mobile/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
  184. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +2 -2
  185. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  186. package/mobile/src/api/RetailAPI/updateUserProfile.ts +1 -1
  187. package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
  188. package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
  189. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
  190. package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
  191. package/mobile/src/components/ApplicationForm/renderInputs.tsx +2 -2
  192. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
  193. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +1 -1
  194. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +9 -2
  195. package/mobile/src/components/ApplicationLeadForm/consents.ts +1 -1
  196. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -3
  197. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -1
  198. package/mobile/src/components/CreditForm/CreditForm.tsx +7 -5
  199. package/mobile/src/components/CreditForm/CreditFormProgress.tsx +5 -5
  200. package/mobile/src/components/CreditForm/CreditFormStep.tsx +4 -5
  201. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
  202. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +10 -9
  203. package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +25 -9
  204. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +1 -1
  205. package/mobile/src/ui-kit/FormField/getField.tsx +2 -2
  206. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
  207. package/package.json +1 -1
  208. package/src/api/RetailAPI/updateUserProfile.ts +1 -1
  209. package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
  210. package/src/api/dadataHints/hintsListsOptions.ts +1 -0
  211. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
  212. package/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
  213. package/src/components/ApplicationForm/renderInputs.tsx +2 -2
  214. package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
  215. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +1 -1
  216. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +1 -122
  217. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +1 -1
  218. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +9 -2
  219. package/src/components/ApplicationLeadForm/consents.ts +1 -1
  220. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -3
  221. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -1
  222. package/src/components/CreditForm/CreditForm.tsx +7 -5
  223. package/src/components/CreditForm/CreditFormProgress.tsx +5 -5
  224. package/src/components/CreditForm/CreditFormStep.tsx +4 -5
  225. package/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
  226. package/src/components/CreditForm/creditFormStepsData.tsx +10 -9
  227. package/src/icons/IconName.ts +6 -360
  228. package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +25 -9
  229. package/src/ui-kit/FormField/NameFieldDef.ts +1 -1
  230. package/src/ui-kit/FormField/getField.tsx +2 -2
  231. package/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
@@ -1231,6 +1231,7 @@
1231
1231
  organizationName: ORGANIZATION_NAME_HINTS_LIST_OPTIONS,
1232
1232
  inn: ORGANIZATION_INN_HINTS_LIST_OPTIONS,
1233
1233
  participantAddress: ADDRESS_HINTS_LIST_OPTIONS,
1234
+ fullAddress: ADDRESS_HINTS_LIST_OPTIONS,
1234
1235
  };
1235
1236
 
1236
1237
  const debounce = (fn, delay = 600) => {
@@ -1488,7 +1489,7 @@
1488
1489
  consentDataProcessing: agreementValidator,
1489
1490
  annualRevenue: defaultValidator(),
1490
1491
  consentToReceiveMaterials: agreementValidator,
1491
- processPersonalDataLeadFlg: agreementValidator,
1492
+ processPersonalDataFlg: agreementValidator,
1492
1493
  consentProviderFlg: agreementValidator,
1493
1494
  consentPfrFlg: agreementValidator,
1494
1495
  consentOthersFlg: agreementValidator,
@@ -1518,7 +1519,7 @@
1518
1519
  };
1519
1520
  const getObjectValidator = (inputs) => {
1520
1521
  const requiredInputs = getNamesFromInput(inputs.filter((_) => Boolean(_?.required)));
1521
- return Object.fromEntries(requiredInputs.map((_) => [_, validatorObj?.[_]]));
1522
+ return Object.fromEntries(requiredInputs.map((_) => [_, validatorObj?.[_ || '']]));
1522
1523
  };
1523
1524
 
1524
1525
  const withValidator = (props, validator) => {
@@ -2080,7 +2081,7 @@
2080
2081
  });
2081
2082
 
2082
2083
  const CONSENTS = {
2083
- processPersonalDataLeadFlg: {
2084
+ processPersonalDataFlg: {
2084
2085
  text: 'Согласие на обработку персональных данных',
2085
2086
  docId: 4,
2086
2087
  },
@@ -2329,7 +2330,15 @@
2329
2330
 
2330
2331
  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) })));
2331
2332
 
2332
- const PartInBusinessField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", inputLength: 2, ...getValidation(field('partInBusiness'), validatorObj.partInBusiness, input?.required), ...input })));
2333
+ const MAX_PART = 100;
2334
+ const PartInBusinessField = JSX(({ field, input }) => {
2335
+ const partInBusinessField = {
2336
+ ...getValidation(field('partInBusiness'), validatorObj.partInBusiness, input?.required),
2337
+ };
2338
+ const handleChange = (value) => partInBusinessField?.onChange &&
2339
+ partInBusinessField?.onChange(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
2340
+ return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", inputLength: 3, type: "number", ...partInBusinessField, ...input, onChange: handleChange }));
2341
+ });
2333
2342
 
2334
2343
  const PartnerCommentsField = JSX(({ field, input }) => {
2335
2344
  const { required, ...rest } = input;
@@ -2516,7 +2525,7 @@
2516
2525
  bankEmpolee: jsx(BankEmpoleeField, { field: field }),
2517
2526
  secondaryPhone: jsx(SecondaryPhoneField, { field: field }),
2518
2527
  consentToReceiveMaterials: jsx(ConsentField, { field: field, input: input }),
2519
- processPersonalDataLeadFlg: jsx(ConsentField, { field: field, input: input }),
2528
+ processPersonalDataFlg: jsx(ConsentField, { field: field, input: input }),
2520
2529
  consentProviderFlg: jsx(ConsentField, { field: field, input: input }),
2521
2530
  consentOthersFlg: jsx(ConsentField, { field: field, input: input }),
2522
2531
  consentInformFlg: jsx(ConsentField, { field: field, input: input }),
@@ -2560,7 +2569,7 @@
2560
2569
  bankEmployeeCode: jsx(BankEmpoleeCodeField, { field: field, input: input }),
2561
2570
  partInBusiness: jsx(PartInBusinessField, { field: field, input: input }),
2562
2571
  };
2563
- return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name] }, String(i))) : null;
2572
+ return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name || ''] }, String(i))) : null;
2564
2573
  };
2565
2574
 
2566
2575
  const inputColumnStyles = (column) => column === 2 ? '@xl:grid-cols-2' : '';
@@ -2687,7 +2696,7 @@
2687
2696
  const getInitialFormState$2 = (inputs, typeForm = '') => {
2688
2697
  const formState = Object.fromEntries(inputs.map((_) => [
2689
2698
  _.name,
2690
- (_.fieldType === 'ved' && _?.defaultValue) || initialFormState$1[_.name],
2699
+ (_.fieldType === 'ved' && _?.defaultValue) || initialFormState$1[_.name || ''],
2691
2700
  ]));
2692
2701
  if (formState?.serviceType && typeForm === 'PREMIUMSERVICE') {
2693
2702
  formState.serviceType = SERVICE_TYPES[1];
@@ -2823,8 +2832,8 @@
2823
2832
  return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm)), jsx(GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map(getField(field, typeForm)));
2824
2833
  };
2825
2834
  const splitInputs = (inputs) => ({
2826
- consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name)) || [],
2827
- restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name)) || [],
2835
+ consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name || '')) || [],
2836
+ restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name || '')) || [],
2828
2837
  });
2829
2838
 
2830
2839
  /* eslint-disable max-lines */
@@ -2853,7 +2862,7 @@
2853
2862
  posTerminal: false,
2854
2863
  consentToReceiveMaterials: false,
2855
2864
  consentDataProcessing: false,
2856
- processPersonalDataLeadFlg: false,
2865
+ processPersonalDataFlg: false,
2857
2866
  consentProviderFlg: false,
2858
2867
  consentOthersFlg: false,
2859
2868
  consentInformFlg: false,
@@ -2868,7 +2877,7 @@
2868
2877
  }
2869
2878
  const formState = Object.fromEntries(inputs.map((_) => [
2870
2879
  _.name,
2871
- (_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name],
2880
+ (_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name || ''],
2872
2881
  ]));
2873
2882
  return { ...formState, typeForm: { key: typeForm, text: '' } };
2874
2883
  };
@@ -2884,7 +2893,7 @@
2884
2893
  const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
2885
2894
 
2886
2895
  const getUpdateUserProfileData = (profileId, formData) => {
2887
- const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataLeadFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
2896
+ const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
2888
2897
  return {
2889
2898
  profile: {
2890
2899
  id: profileId,
@@ -2894,7 +2903,7 @@
2894
2903
  birthDate: birthday && formatDate(birthday, true),
2895
2904
  email,
2896
2905
  phone: formatPhone(phone),
2897
- processPersonalDataLeadFlg: Boolean(processPersonalDataLeadFlg),
2906
+ processPersonalDataFlg: Boolean(processPersonalDataFlg),
2898
2907
  consentProviderFlg: Boolean(consentProviderFlg),
2899
2908
  consentPfrFlg: Boolean(consentPfrFlg),
2900
2909
  consentPhotoFlg: Boolean(consentPhotoFlg),
@@ -3377,7 +3386,7 @@
3377
3386
  const [isLoading, setIsLoading] = useState(false);
3378
3387
  const [profileId] = useLocalStorage('profileId');
3379
3388
  const [, setEsiaData] = useLocalStorage('esiaData');
3380
- const params = new URLSearchParams(decodeURIComponent(window.location.search));
3389
+ const params = new URLSearchParams(decodeURIComponent(globalThis.location.search));
3381
3390
  const esiaAuth = params.get('esiaAuth');
3382
3391
  const updateEsiaProfile = useCallback(async () => {
3383
3392
  const code = params.get('code');
@@ -5095,9 +5104,9 @@
5095
5104
 
5096
5105
  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] })] })));
5097
5106
 
5098
- const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
5099
- const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
5100
- return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), ' ', stepsTitles[step - 1] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
5107
+ const CreditFormProgress = JSX(({ step = 0, totalSteps = 5, stepsTitles = [] }) => {
5108
+ const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
5109
+ return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold", children: ["\u0428\u0430\u0433 ", step + 1, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
5101
5110
  });
5102
5111
 
5103
5112
  const formStateMap = {
@@ -5179,7 +5188,8 @@
5179
5188
  };
5180
5189
 
5181
5190
  const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
5182
- return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: step === 1, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
5191
+ const isFirstStep = step === 0;
5192
+ return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
5183
5193
  });
5184
5194
 
5185
5195
  const useCreditFormApi = ({ inputs, onNextStep, saveStep }) => {
@@ -5197,7 +5207,7 @@
5197
5207
  };
5198
5208
  };
5199
5209
 
5200
- const CreditFormStep = JSX(({ totalSteps, step, sections, onPrevStep, onNextStep, inputs }) => {
5210
+ const CreditFormStep = JSX(({ step, sections, onPrevStep, onNextStep, inputs }) => {
5201
5211
  const [localStorageData, saveStep] = useLocalStorage('leadForm');
5202
5212
  const initialState = getInitialFormState(step, localStorageData);
5203
5213
  const { handleSubmit } = useCreditFormApi({
@@ -5206,10 +5216,10 @@
5206
5216
  saveStep,
5207
5217
  });
5208
5218
  const [, { field, onSubmit }] = useForm(initialState, { onSubmit: handleSubmit });
5209
- return (jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons, { step: step, totalSteps: totalSteps, onPrevStep: onPrevStep })] }));
5219
+ return (jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons, { step: step, onPrevStep: onPrevStep })] }));
5210
5220
  });
5211
5221
  const renderStep$1 = ({ sections, field }) => {
5212
- return sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderInfo$1(_?.inputs), renderTitle(_?.title), renderInputs({ field, inputs: _?.inputs })] }, `section-${i}`)));
5222
+ return sections?.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderInfo$1(_?.inputs), renderTitle(_?.title), renderInputs({ field, inputs: _?.inputs })] }, `section-${i}`)));
5213
5223
  };
5214
5224
  const renderInfo$1 = (inputs = []) => {
5215
5225
  const infoInputs = inputs.filter((_) => _.fieldType === 'info');
@@ -5218,9 +5228,8 @@
5218
5228
 
5219
5229
  /* eslint-disable max-lines */
5220
5230
  /* eslint-disable max-len */
5221
- //TODO: DO List
5222
- const stepsSectionsMap = {
5223
- 1: [
5231
+ const stepsSectionsMap = [
5232
+ [
5224
5233
  {
5225
5234
  title: 'Персональные данные',
5226
5235
  columns: 2,
@@ -5275,7 +5284,7 @@
5275
5284
  ],
5276
5285
  },
5277
5286
  ],
5278
- 2: [
5287
+ [
5279
5288
  {
5280
5289
  title: 'Данные о трудоустройстве',
5281
5290
  inputs: [],
@@ -5336,10 +5345,10 @@
5336
5345
  inputs: [],
5337
5346
  },
5338
5347
  {
5339
- inputs: [{ fieldType: 'common', name: 'fullAddress', required: true }],
5348
+ inputs: [{ fieldType: 'common', name: 'fullAddress', required: true, dadata: true }],
5340
5349
  },
5341
5350
  ],
5342
- 3: [
5351
+ [
5343
5352
  {
5344
5353
  title: 'Семейное положение',
5345
5354
  },
@@ -5383,7 +5392,7 @@
5383
5392
  inputs: [{ fieldType: 'common', name: 'armyIdFlg' }],
5384
5393
  },
5385
5394
  ],
5386
- 4: [
5395
+ [
5387
5396
  {
5388
5397
  title: 'Дополнительные сведения',
5389
5398
  columns: 1,
@@ -5405,7 +5414,7 @@
5405
5414
  inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
5406
5415
  },
5407
5416
  ],
5408
- 5: [
5417
+ [
5409
5418
  {
5410
5419
  title: 'Отделение Банка',
5411
5420
  columns: 1,
@@ -5434,7 +5443,7 @@
5434
5443
  inputs: [{ fieldType: 'common', name: 'bankEmployeeCode' }],
5435
5444
  },
5436
5445
  ],
5437
- };
5446
+ ];
5438
5447
 
5439
5448
  const STEPS_COUNT = 5;
5440
5449
  const STEPS_TITLES = [
@@ -5445,17 +5454,17 @@
5445
5454
  'Отделение Банка',
5446
5455
  ];
5447
5456
  const CreditForm = JSX(({ className, ...rest }) => {
5448
- const [step, setStep] = useState(1);
5457
+ const [step, setStep] = useState(0);
5449
5458
  const sections = useMemo(() => stepsSectionsMap[step], [step]);
5450
5459
  const inputs = (sections?.flatMap((_) => _?.inputs) || []);
5451
5460
  const handleNextStep = useCallback(() => {
5452
- setStep((_) => Math.min(_ + 1, STEPS_COUNT));
5461
+ setStep((_) => Math.min(_ + 1, STEPS_COUNT - 1));
5453
5462
  }, []);
5454
5463
  const handlePrevStep = useCallback(() => {
5455
5464
  //TODO search hook - 1,
5456
5465
  setStep((_) => Math.max(_ - 1, 0));
5457
5466
  }, []);
5458
- return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [jsx(CreditFormProgress, { stepsTitles: STEPS_TITLES, step: step, totalSteps: STEPS_COUNT }), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditFormStep, { inputs: inputs, totalSteps: STEPS_COUNT, step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep }, String(step)) })] }) }));
5467
+ return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [jsx(CreditFormProgress, { stepsTitles: STEPS_TITLES, step: step, totalSteps: STEPS_COUNT }), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditFormStep, { inputs: inputs, step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep }, String(step)) })] }) }));
5459
5468
  });
5460
5469
 
5461
5470
  const isRateRow = (rateRow) => typeof rateRow?.minMonths === 'number' && typeof rateRow?.maxMonths === 'number';
@@ -8249,7 +8258,7 @@
8249
8258
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
8250
8259
  });
8251
8260
 
8252
- const packageVersion = "0.14.620";
8261
+ const packageVersion = "0.14.622";
8253
8262
 
8254
8263
  exports.Blocks = Blocks;
8255
8264
  exports.ContentPage = ContentPage;