@redneckz/wildless-cms-uni-blocks 0.14.714 → 0.14.716

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 (193) hide show
  1. package/bundle/bundle.umd.js +68 -51
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
  4. package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
  5. package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
  6. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
  7. package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
  8. package/bundle/components/CreditForm/useCreditFormAPI.d.ts +1 -1
  9. package/bundle/ui-kit/Button/Button.d.ts +1 -0
  10. package/bundle/ui-kit/Loader/Loader.d.ts +1 -0
  11. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
  12. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  13. package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
  14. package/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  15. package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  16. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
  17. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
  18. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  19. package/dist/components/CreditCardForm/CreditCardFormStep.js +2 -2
  20. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  21. package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
  22. package/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -2
  23. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  24. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
  25. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
  26. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  27. package/dist/components/CreditForm/CreditFormStep.js +2 -2
  28. package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  29. package/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
  30. package/dist/components/CreditForm/StepsNavigationButtons.js +2 -2
  31. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  32. package/dist/components/CreditForm/useCreditFormAPI.d.ts +1 -1
  33. package/dist/components/CreditForm/useCreditFormAPI.js +7 -1
  34. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  35. package/dist/ui-kit/Button/Button.d.ts +1 -0
  36. package/dist/ui-kit/Button/Button.js +6 -5
  37. package/dist/ui-kit/Button/Button.js.map +1 -1
  38. package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
  39. package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  40. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
  41. package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  42. package/dist/ui-kit/Loader/Loader.d.ts +1 -0
  43. package/dist/ui-kit/Loader/Loader.js +2 -2
  44. package/dist/ui-kit/Loader/Loader.js.map +1 -1
  45. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
  46. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  47. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
  48. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  49. package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
  50. package/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  51. package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  52. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
  53. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
  54. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  55. package/lib/components/CreditCardForm/CreditCardFormStep.js +2 -2
  56. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  57. package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
  58. package/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -2
  59. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  60. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
  61. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
  62. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  63. package/lib/components/CreditForm/CreditFormStep.js +2 -2
  64. package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  65. package/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
  66. package/lib/components/CreditForm/StepsNavigationButtons.js +2 -2
  67. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  68. package/lib/components/CreditForm/useCreditFormAPI.d.ts +1 -1
  69. package/lib/components/CreditForm/useCreditFormAPI.js +7 -1
  70. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  71. package/lib/ui-kit/Button/Button.d.ts +1 -0
  72. package/lib/ui-kit/Button/Button.js +7 -6
  73. package/lib/ui-kit/Button/Button.js.map +1 -1
  74. package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
  75. package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  76. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
  77. package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  78. package/lib/ui-kit/Loader/Loader.d.ts +1 -0
  79. package/lib/ui-kit/Loader/Loader.js +2 -2
  80. package/lib/ui-kit/Loader/Loader.js.map +1 -1
  81. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
  82. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  83. package/mobile/bundle/bundle.umd.js +68 -51
  84. package/mobile/bundle/bundle.umd.min.js +1 -1
  85. package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
  86. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
  87. package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
  88. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
  89. package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
  90. package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +1 -1
  91. package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -0
  92. package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -0
  93. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
  94. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  95. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
  96. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  97. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  98. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
  99. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
  100. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  101. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +2 -2
  102. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  103. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
  104. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +2 -2
  105. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  106. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
  107. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
  108. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  109. package/mobile/dist/components/CreditForm/CreditFormStep.js +2 -2
  110. package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
  111. package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
  112. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -2
  113. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  114. package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +1 -1
  115. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +7 -1
  116. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  117. package/mobile/dist/ui-kit/Button/Button.d.ts +1 -0
  118. package/mobile/dist/ui-kit/Button/Button.js +6 -5
  119. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  120. package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
  121. package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  122. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
  123. package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  124. package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -0
  125. package/mobile/dist/ui-kit/Loader/Loader.js +2 -2
  126. package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
  127. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
  128. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  129. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -2
  130. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  131. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
  132. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  133. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  134. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -0
  135. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -7
  136. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  137. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +2 -2
  138. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  139. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +1 -0
  140. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +2 -2
  141. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  142. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +1 -1
  143. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +7 -1
  144. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  145. package/mobile/lib/components/CreditForm/CreditFormStep.js +2 -2
  146. package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
  147. package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +1 -0
  148. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -2
  149. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  150. package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +1 -1
  151. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +7 -1
  152. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  153. package/mobile/lib/ui-kit/Button/Button.d.ts +1 -0
  154. package/mobile/lib/ui-kit/Button/Button.js +7 -6
  155. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  156. package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
  157. package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
  158. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
  159. package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
  160. package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -0
  161. package/mobile/lib/ui-kit/Loader/Loader.js +2 -2
  162. package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
  163. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +5 -4
  164. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  165. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -2
  166. package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +2 -2
  167. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +12 -7
  168. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +2 -2
  169. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +17 -12
  170. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +7 -2
  171. package/mobile/src/components/CreditForm/CreditFormStep.tsx +2 -2
  172. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +17 -12
  173. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +7 -2
  174. package/mobile/src/ui-kit/Button/Button.tsx +7 -3
  175. package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +24 -10
  176. package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -5
  177. package/mobile/src/ui-kit/Loader/Loader.tsx +5 -3
  178. package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +5 -4
  179. package/package.json +1 -1
  180. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -2
  181. package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +2 -2
  182. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +12 -7
  183. package/src/components/CreditCardForm/CreditCardFormStep.tsx +2 -2
  184. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +17 -12
  185. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +7 -2
  186. package/src/components/CreditForm/CreditFormStep.tsx +2 -2
  187. package/src/components/CreditForm/StepsNavigationButtons.tsx +17 -12
  188. package/src/components/CreditForm/useCreditFormAPI.tsx +7 -2
  189. package/src/ui-kit/Button/Button.tsx +7 -3
  190. package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +24 -10
  191. package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -5
  192. package/src/ui-kit/Loader/Loader.tsx +5 -3
  193. package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +5 -4
@@ -1980,9 +1980,9 @@
1980
1980
  return (jsx(CheckboxWithError, { text: "\u0410\u0434\u0440\u0435\u0441 \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0435\u0442 \u0441 \u0430\u0434\u0440\u0435\u0441\u043E\u043C \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438", ...getValidation(field('addressMatch'), validatorObj.addressMatch, input?.required) }));
1981
1981
  });
1982
1982
 
1983
- const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
1983
+ const Loader = JSX(({ color = 'text-primary-main', position = 'absolute', blur = true, size = 'big' }) => (jsx("div", { className: style('flex justify-center items-center h-full w-full z-50', position, {
1984
1984
  'backdrop-blur': blur,
1985
- }), children: jsx("div", { className: style('inline-block h-28 w-28', 'animate-spin rounded-full', 'border-8 border-solid border-current', 'border-r-transparent', color), role: "status" }) })));
1985
+ }), children: jsx("div", { className: style('inline-block ', 'animate-spin rounded-full', 'border-solid border-current', 'border-r-transparent', size === 'small' ? 'border-4 h-8 w-8' : 'border-8 h-28 w-28', color), role: "status" }) })));
1986
1986
 
1987
1987
  const MapMarkerClusterIcon = '/icons/MapMarkerClusterIcon.svg';
1988
1988
  const MapMarkerClusterYellowIcon = '/icons/MapMarkerClusterYellowIcon.svg';
@@ -3123,8 +3123,8 @@
3123
3123
 
3124
3124
  const BirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), validatorObj.birthday, input?.required) })));
3125
3125
 
3126
- const FIELD_NAME$a = 'birthPlace';
3127
- const BirthPlaceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthPlace'), validatorObj.birthPlace, input?.required), ...input, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$a) })));
3126
+ const FIELD_NAME$b = 'birthPlace';
3127
+ const BirthPlaceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthPlace'), validatorObj.birthPlace, input?.required), ...input, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$b) })));
3128
3128
 
3129
3129
  const getCardTypes = async (paymentSystemTypeCd, creditProgramId) => {
3130
3130
  const data = await fetchRetailJSON('/dictionaryFiltered', 'POST', {
@@ -3247,14 +3247,14 @@
3247
3247
  };
3248
3248
  const Button = JSX(({ children, ...props }) => {
3249
3249
  const button = useButton();
3250
- const { className, version = 'primary', active, disabled, type = 'button', rounded = true, role, onClick, } = button(props);
3251
- return (jsx("button", { className: style('font-sans px-9 py-4', 'flex justify-center items-center gap-xs', {
3250
+ const { className, version = 'primary', active, disabled, isLoading, type = 'button', rounded = true, role, onClick, } = button(props);
3251
+ return (jsxs("button", { className: style('font-sans px-9 py-4', 'flex justify-center items-center gap-xs relative', {
3252
3252
  'text-white bg-primary-active': active,
3253
- 'bg-main-gray text-main-disabled cursor-not-allowed': disabled,
3253
+ 'bg-main-gray text-main-disabled cursor-not-allowed': disabled || isLoading,
3254
3254
  'rounded-md': rounded,
3255
- }, !active && !disabled
3255
+ }, !active && !disabled && !isLoading
3256
3256
  ? style(buttonStyleMap[version], secondaryButtonStyleMap[version])
3257
- : '', className), type: type, role: role, onClick: onClick, children: children }));
3257
+ : '', className), type: type, role: role, onClick: onClick, children: [isLoading ? jsx(Loader, { blur: true, size: "small" }) : null, children] }));
3258
3258
  });
3259
3259
 
3260
3260
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
@@ -3587,12 +3587,12 @@
3587
3587
  };
3588
3588
  const swap = (_) => Object.fromEntries(Object.entries(_).map(([k, v]) => [v, k]));
3589
3589
 
3590
- const FIELD_NAME$9 = 'calculator';
3590
+ const FIELD_NAME$a = 'calculator';
3591
3591
  const CreditCalcField = JSX(({ field, params }) => {
3592
3592
  const handleChange = useCallback((_) => {
3593
- field(FIELD_NAME$9).onChange?.(_);
3593
+ field(FIELD_NAME$a).onChange?.(_);
3594
3594
  }, []);
3595
- return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
3595
+ return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME$a).value), onChange: handleChange }));
3596
3596
  });
3597
3597
 
3598
3598
  const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
@@ -3621,30 +3621,30 @@
3621
3621
 
3622
3622
  const DisablePeopleFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u0438\u043D\u0432\u0430\u043B\u0438\u0434\u043E\u043C", ...getValidation(field('disablePeopleFlg'), validatorObj.disablePeopleFlg, input?.required) })));
3623
3623
 
3624
- const FIELD_NAME$8 = 'dulIssueDateField';
3625
- const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$8), validatorObj.dulIssueDateField, input?.required), disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$8) })));
3624
+ const FIELD_NAME$9 = 'dulIssueDateField';
3625
+ const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$9), validatorObj.dulIssueDateField, input?.required), disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$9) })));
3626
3626
 
3627
- const FIELD_NAME$7 = 'dulIssuedBy';
3627
+ const FIELD_NAME$8 = 'dulIssuedBy';
3628
3628
  const DulIssuedByField = JSX(({ field, input }) => {
3629
3629
  const { value: dulSubdivisionCode, onChange: changeDulSubdivisionCode } = field('dulSubdivisionCode');
3630
3630
  const onDaDataChange = useCallback((item) => {
3631
3631
  changeDulSubdivisionCode?.(item?.data?.code?.replace('-', ''));
3632
3632
  }, []);
3633
- return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$7), label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...getValidation(field(FIELD_NAME$7), validatorObj.dulIssuedBy, input?.required), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
3633
+ return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$8), label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...getValidation(field(FIELD_NAME$8), validatorObj.dulIssuedBy, input?.required), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
3634
3634
  });
3635
3635
 
3636
- const FIELD_NAME$6 = 'dulNumber';
3637
- const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$6), label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 6, ...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required) })));
3636
+ const FIELD_NAME$7 = 'dulNumber';
3637
+ const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$7), label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 6, ...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required) })));
3638
3638
 
3639
- const FIELD_NAME$5 = 'dulSerie';
3640
- const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$5), label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 4, ...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required) })));
3639
+ const FIELD_NAME$6 = 'dulSerie';
3640
+ const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$6), label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 4, ...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required) })));
3641
3641
 
3642
- const FIELD_NAME$4 = 'dulSubdivisionCode';
3642
+ const FIELD_NAME$5 = 'dulSubdivisionCode';
3643
3643
  const DulSubdivisionCodeField = JSX(({ field, input }) => {
3644
3644
  const onDaDataChange = useCallback((item) => {
3645
3645
  field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
3646
3646
  }, []);
3647
- return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$4), label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", isInteger: true, maxLength: 6, ...input, ...getValidation(field(FIELD_NAME$4), validatorObj.dulSubdivisionCode, input?.required), onDaDataChange: onDaDataChange }));
3647
+ return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$5), label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", isInteger: true, maxLength: 6, ...input, ...getValidation(field(FIELD_NAME$5), validatorObj.dulSubdivisionCode, input?.required), onDaDataChange: onDaDataChange }));
3648
3648
  });
3649
3649
 
3650
3650
  const EducationField = JSX(({ field, input }) => {
@@ -3686,7 +3686,13 @@
3686
3686
 
3687
3687
  const ExpensesField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0440\u0430\u0441\u0445\u043E\u0434\u044B \u0432 \u043C\u0435\u0441\u044F\u0446", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...getValidation(field('expenses'), validatorObj.expenses, input?.required), ...input })));
3688
3688
 
3689
- const Experience5YearsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436", placeholder: "\u0417\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", type: "number", maxLength: 2, ...getValidation(field('experience5Years'), validatorObj.experience5Years, input?.required), ...input })));
3689
+ const FIELD_NAME$4 = 'experience5Years';
3690
+ const MAX_YEARS = 5;
3691
+ const MIN_YEARS = 0;
3692
+ const Experience5YearsField = JSX(({ field, input }) => {
3693
+ const onChange = useCallback((value) => field(FIELD_NAME$4)?.onChange?.(String(clamp(Number(value), MIN_YEARS, MAX_YEARS))), []);
3694
+ return (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436", placeholder: "\u0417\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", type: "number", ...getValidation(field(FIELD_NAME$4), validatorObj[FIELD_NAME$4], input?.required), ...input, onChange: onChange }));
3695
+ });
3690
3696
 
3691
3697
  const FamilyMembersField = JSX(({ field }) => {
3692
3698
  const { value, onChange } = field('familyMembers');
@@ -3938,11 +3944,10 @@
3938
3944
  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) })));
3939
3945
 
3940
3946
  const MAX_PART = 100;
3947
+ const MIN_PART = 0;
3941
3948
  const FIELD_NAME$1 = 'partInBusiness';
3942
3949
  const PartInBusinessField = JSX(({ field, input }) => {
3943
- const onChange = useCallback((value) => {
3944
- field(FIELD_NAME$1)?.onChange?.(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
3945
- }, []);
3950
+ const onChange = useCallback((value) => field(FIELD_NAME$1)?.onChange?.(String(clamp(Number(value), MIN_PART, MAX_PART))), []);
3946
3951
  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 %", isInteger: true, maxLength: 3, ...getValidation(field(FIELD_NAME$1), validatorObj.partInBusiness, input?.required), ...input, onChange: onChange }));
3947
3952
  });
3948
3953
 
@@ -4470,7 +4475,7 @@
4470
4475
  },
4471
4476
  ];
4472
4477
 
4473
- const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
4478
+ const renderSubmitButton = (button, isSending) => (jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", isLoading: isSending, children: button?.text ? button.text : 'Отправить заявку' }));
4474
4479
 
4475
4480
  const createDraftTask = async (body) => {
4476
4481
  const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
@@ -4651,7 +4656,7 @@
4651
4656
 
4652
4657
  const useVerifyPhoneDialogSubmit = ({ values, onSuccess, }) => {
4653
4658
  const [errorText, setErrorText] = useState('');
4654
- const [isLoading, setIsLoading] = useState(false);
4659
+ const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
4655
4660
  const [timeNextReq, setTimeNextReq] = useState(0);
4656
4661
  const [isTimerStarted, setIsTimerStarted] = useState(false);
4657
4662
  const [attempts, setAttempts] = useState(0);
@@ -4663,19 +4668,19 @@
4663
4668
  setIsTimerStarted(false);
4664
4669
  setTimeNextReq(0);
4665
4670
  setAttempts((_) => _ + 1);
4666
- setIsLoading(true);
4671
+ startLoading();
4667
4672
  await checkCode({
4668
4673
  smsText: values.join(''),
4669
4674
  smsCodesSetName: { key: 'AUTHENTICATION' },
4670
4675
  });
4671
4676
  resetError();
4672
- onSuccess?.(values.join(''));
4677
+ await onSuccess?.(values.join(''));
4673
4678
  }
4674
4679
  catch {
4675
4680
  setErrorText(attempts > 1 ? 'Исчерпан лимит ввода смс-кода' : 'Неверный код');
4676
4681
  }
4677
4682
  finally {
4678
- setIsLoading(false);
4683
+ endLoading();
4679
4684
  }
4680
4685
  }, [values, attempts]);
4681
4686
  useEffect(() => {
@@ -5126,6 +5131,7 @@
5126
5131
 
5127
5132
  const useApplicationLeadApi = ({ inputs, programId, nextStepLink, }) => {
5128
5133
  const [responseStatus, setResponseStatus] = useState('');
5134
+ const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
5129
5135
  const saveUserData = useSaveUserData();
5130
5136
  const openEsiaLoginDialog = useEsiaLoginDialog(nextStepLink);
5131
5137
  const consentBkiDialog = useConsentBkiDialog(openEsiaLoginDialog);
@@ -5137,6 +5143,7 @@
5137
5143
  return;
5138
5144
  }
5139
5145
  try {
5146
+ startSending();
5140
5147
  const profileId = await createUserProfile({
5141
5148
  profile: { phone: formatPhone(formData.phone) },
5142
5149
  });
@@ -5153,10 +5160,7 @@
5153
5160
  };
5154
5161
  const handleSuccessVerify = async () => {
5155
5162
  try {
5156
- const lastTaskId = await getLastTaskStatus({
5157
- profileId,
5158
- programId,
5159
- });
5163
+ const lastTaskId = await getLastTaskStatus({ profileId, programId });
5160
5164
  if (lastTaskId) {
5161
5165
  const task = await getTaskById({ taskId: lastTaskId });
5162
5166
  verifyPhoneDialog.close();
@@ -5174,14 +5178,13 @@
5174
5178
  setResponseStatus('Fail');
5175
5179
  }
5176
5180
  };
5177
- const acceptedConsents = Object.keys(CONSENTS)
5178
- .filter((_) => formData[_])
5179
- .map((_) => CONSENTS[_]?.text);
5181
+ const acceptedConsents = getAcceptedConsents(formData);
5180
5182
  verifyPhoneDialog.open({
5181
5183
  phone: formData?.phone,
5182
5184
  consents: acceptedConsents,
5183
5185
  onSuccess: handleSuccessVerify,
5184
5186
  });
5187
+ endSending();
5185
5188
  }
5186
5189
  }
5187
5190
  catch {
@@ -5191,8 +5194,12 @@
5191
5194
  return {
5192
5195
  handleSubmit,
5193
5196
  responseStatus,
5197
+ isSending,
5194
5198
  };
5195
5199
  };
5200
+ const getAcceptedConsents = (formData) => Object.keys(CONSENTS)
5201
+ .filter((_) => formData[_])
5202
+ .map((_) => CONSENTS[_]?.text);
5196
5203
  const updateUserData = async ({ programId, profileId, formData, saveUserData, }) => {
5197
5204
  const transformedForm = transformOtherConsentsField(formData);
5198
5205
  await updateUserProfile(getUpdateUserProfileData(profileId, transformedForm));
@@ -5379,7 +5386,7 @@
5379
5386
  const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, ...rest }) => {
5380
5387
  const inputs = useMemo(() => (applicationFormData?.flatMap((_) => _?.inputs) || []), [applicationFormData]);
5381
5388
  const [initialFormState, { isLoading }] = useInitApplicationLead(inputs, nextStepLink);
5382
- const { handleSubmit, responseStatus } = useApplicationLeadApi({
5389
+ const { handleSubmit, responseStatus, isSending } = useApplicationLeadApi({
5383
5390
  inputs,
5384
5391
  programId,
5385
5392
  nextStepLink,
@@ -5391,7 +5398,7 @@
5391
5398
  responseTypeDialog.open({ responseType: responseStatus });
5392
5399
  }
5393
5400
  }, [responseStatus]);
5394
- return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
5401
+ return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button, isSending)] }) }));
5395
5402
  });
5396
5403
 
5397
5404
  const NotFound = JSX(({ title, description }) => {
@@ -6978,10 +6985,10 @@
6978
6985
  });
6979
6986
  const getValue$3 = (field) => (name) => field(name)?.value;
6980
6987
 
6981
- const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
6988
+ const StepsNavigationButtons$1 = JSX(({ step, isSending, onPrevStep }) => {
6982
6989
  const isFirstStep = step === 0;
6983
6990
  const isFinalStep = step === 5;
6984
- return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
6991
+ return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { isLoading: isSending, type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
6985
6992
  });
6986
6993
 
6987
6994
  const getAdditionalInfoData = (formData) => {
@@ -7271,6 +7278,7 @@
7271
7278
  };
7272
7279
 
7273
7280
  const useCreditCardFormAPI = ({ step, inputs, onNextStep, onFinish, }) => {
7281
+ const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
7274
7282
  const isFinalStep = step === 5;
7275
7283
  const retailFormStore = useRetailFormStore();
7276
7284
  const initialState = useMemo(() => getInitialFormState$1(step, retailFormStore.leadForm), [step, retailFormStore.leadForm]);
@@ -7295,6 +7303,7 @@
7295
7303
  if (!isValidationSuccess(feedbackValidator(formData))) {
7296
7304
  return;
7297
7305
  }
7306
+ startSending();
7298
7307
  retailFormStore.leadForm = formData;
7299
7308
  try {
7300
7309
  const { taskId, profileId, participantId } = retailFormStore;
@@ -7316,21 +7325,24 @@
7316
7325
  catch (ex) {
7317
7326
  // Do nothing
7318
7327
  }
7328
+ finally {
7329
+ endSending();
7330
+ }
7319
7331
  }, [isFinalStep, resetForm]);
7320
- return [initialState, handleSubmit];
7332
+ return [initialState, handleSubmit, isSending];
7321
7333
  };
7322
7334
  const getValue$2 = (formData) => (name) => formData[name];
7323
7335
 
7324
7336
  const CreditCardFormStep = JSX(({ step, sections, isFormFinished, onPrevStep, onNextStep, onFinish }) => {
7325
7337
  const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
7326
- const [initialState, onSubmit] = useCreditCardFormAPI({
7338
+ const [initialState, onSubmit, isSending] = useCreditCardFormAPI({
7327
7339
  step,
7328
7340
  inputs,
7329
7341
  onNextStep,
7330
7342
  onFinish,
7331
7343
  });
7332
7344
  const [, { field, onSubmit: handleSubmit }] = useForm(initialState, { onSubmit });
7333
- return isFormFinished ? (jsx(CreditCardFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$2({ sections, field, step }), jsx(StepsNavigationButtons$1, { step: step, onPrevStep: onPrevStep })] }));
7345
+ return isFormFinished ? (jsx(CreditCardFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$2({ sections, field, step }), jsx(StepsNavigationButtons$1, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
7334
7346
  });
7335
7347
 
7336
7348
  const PERSONAL_INFO_CONTENT = [
@@ -7928,10 +7940,10 @@
7928
7940
  });
7929
7941
  const getValue$1 = (field) => (name) => field(name)?.value;
7930
7942
 
7931
- const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
7943
+ const StepsNavigationButtons = JSX(({ step, onPrevStep, isSending }) => {
7932
7944
  const isFirstStep = step === 0;
7933
7945
  const isFinalStep = step === 5;
7934
- return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
7946
+ return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
7935
7947
  });
7936
7948
 
7937
7949
  const PAYMENT_TYPE_DATA = {
@@ -8110,6 +8122,7 @@
8110
8122
  };
8111
8123
 
8112
8124
  const useCreditFormAPI = ({ step, inputs, onNextStep, onFinish, }) => {
8125
+ const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
8113
8126
  const isFinalStep = step === 5;
8114
8127
  const retailFormStore = useRetailFormStore();
8115
8128
  const initialState = useMemo(() => getInitialFormState(step, retailFormStore.leadForm), [step, retailFormStore.leadForm]);
@@ -8134,6 +8147,7 @@
8134
8147
  if (!isValidationSuccess(feedbackValidator(formData))) {
8135
8148
  return;
8136
8149
  }
8150
+ startSending();
8137
8151
  retailFormStore.leadForm = formData;
8138
8152
  try {
8139
8153
  const { taskId, profileId, participantId } = retailFormStore;
@@ -8155,8 +8169,11 @@
8155
8169
  catch (ex) {
8156
8170
  // Do nothing
8157
8171
  }
8172
+ finally {
8173
+ endSending();
8174
+ }
8158
8175
  }, [isFinalStep, resetForm]);
8159
- return [initialState, handleSubmit];
8176
+ return [initialState, handleSubmit, isSending];
8160
8177
  };
8161
8178
  const getValue = (formData) => (name) => formData[name];
8162
8179
 
@@ -8164,14 +8181,14 @@
8164
8181
  const { programId } = useRetailFormStore();
8165
8182
  const calcData = programsSource?.[programId ?? '']; // Need normalizator useForm, to be save defaultParams
8166
8183
  const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
8167
- const [initialState, onSubmit] = useCreditFormAPI({
8184
+ const [initialState, onSubmit, isSending] = useCreditFormAPI({
8168
8185
  step,
8169
8186
  inputs,
8170
8187
  onNextStep,
8171
8188
  onFinish,
8172
8189
  });
8173
8190
  const [, { field, onSubmit: handleSubmit }] = useForm(initialState, { onSubmit });
8174
- return isFormFinished ? (jsx(CreditFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step, params: { calcData } }), jsx(StepsNavigationButtons, { step: step, onPrevStep: onPrevStep })] }));
8191
+ return isFormFinished ? (jsx(CreditFormStatusTracker, {})) : (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step, params: { calcData } }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
8175
8192
  });
8176
8193
 
8177
8194
  const stepsSectionsMap = [
@@ -10483,7 +10500,7 @@
10483
10500
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10484
10501
  });
10485
10502
 
10486
- const packageVersion = "0.14.713";
10503
+ const packageVersion = "0.14.715";
10487
10504
 
10488
10505
  exports.Blocks = Blocks;
10489
10506
  exports.ContentPage = ContentPage;