@redneckz/wildless-cms-uni-blocks 0.14.1000 → 0.14.1002

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 (257) hide show
  1. package/bundle/api/LeadServiceAPI.d.ts +2 -1
  2. package/bundle/bundle.umd.js +31 -26
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  5. package/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
  6. package/bundle/ui-kit/Button/Button.d.ts +1 -0
  7. package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
  8. package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  9. package/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
  10. package/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
  11. package/dist/api/LeadServiceAPI.d.ts +2 -1
  12. package/dist/api/LeadServiceAPI.js +3 -3
  13. package/dist/api/LeadServiceAPI.js.map +1 -1
  14. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  15. package/dist/components/ApplicationForm/constants.js +5 -1
  16. package/dist/components/ApplicationForm/constants.js.map +1 -1
  17. package/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  18. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  19. package/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  20. package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  21. package/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
  22. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  23. package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  24. package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  25. package/dist/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
  26. package/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
  27. package/dist/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
  28. package/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  29. package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  30. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  31. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  32. package/dist/retail/components/Fields/ConsentField.js +1 -1
  33. package/dist/retail/components/Fields/ConsentField.js.map +1 -1
  34. package/dist/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
  35. package/dist/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
  36. package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
  37. package/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  38. package/dist/ui-kit/Button/Button.d.ts +1 -0
  39. package/dist/ui-kit/Button/Button.js +2 -2
  40. package/dist/ui-kit/Button/Button.js.map +1 -1
  41. package/dist/ui-kit/Checkbox/Checkbox.js +2 -2
  42. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  43. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
  44. package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  45. package/dist/ui-kit/DatePicker/DatePicker.js +2 -1
  46. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  47. package/dist/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
  48. package/dist/ui-kit/DatePicker/DatePickerInput.js +2 -2
  49. package/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
  50. package/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
  51. package/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
  52. package/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
  53. package/dist/ui-kit/Input/Input.js +1 -1
  54. package/dist/ui-kit/Input/Input.js.map +1 -1
  55. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  56. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  57. package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
  58. package/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
  59. package/lib/api/LeadServiceAPI.d.ts +2 -1
  60. package/lib/api/LeadServiceAPI.js +3 -3
  61. package/lib/api/LeadServiceAPI.js.map +1 -1
  62. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  63. package/lib/components/ApplicationForm/constants.js +5 -1
  64. package/lib/components/ApplicationForm/constants.js.map +1 -1
  65. package/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  66. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  67. package/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  68. package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  69. package/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
  70. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  71. package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  72. package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  73. package/lib/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
  74. package/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
  75. package/lib/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
  76. package/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  77. package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  78. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  79. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  80. package/lib/retail/components/Fields/ConsentField.js +1 -1
  81. package/lib/retail/components/Fields/ConsentField.js.map +1 -1
  82. package/lib/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
  83. package/lib/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
  84. package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
  85. package/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  86. package/lib/ui-kit/Button/Button.d.ts +1 -0
  87. package/lib/ui-kit/Button/Button.js +2 -2
  88. package/lib/ui-kit/Button/Button.js.map +1 -1
  89. package/lib/ui-kit/Checkbox/Checkbox.js +2 -2
  90. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  91. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
  92. package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  93. package/lib/ui-kit/DatePicker/DatePicker.js +2 -1
  94. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  95. package/lib/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
  96. package/lib/ui-kit/DatePicker/DatePickerInput.js +2 -2
  97. package/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
  98. package/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
  99. package/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
  100. package/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
  101. package/lib/ui-kit/Input/Input.js +1 -1
  102. package/lib/ui-kit/Input/Input.js.map +1 -1
  103. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  104. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  105. package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
  106. package/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
  107. package/mobile/bundle/api/LeadServiceAPI.d.ts +2 -1
  108. package/mobile/bundle/bundle.umd.js +31 -26
  109. package/mobile/bundle/bundle.umd.min.js +1 -1
  110. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  111. package/mobile/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
  112. package/mobile/bundle/ui-kit/Button/Button.d.ts +1 -0
  113. package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
  114. package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  115. package/mobile/bundle/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
  116. package/mobile/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
  117. package/mobile/dist/api/LeadServiceAPI.d.ts +2 -1
  118. package/mobile/dist/api/LeadServiceAPI.js +3 -3
  119. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  120. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  121. package/mobile/dist/components/ApplicationForm/constants.js +5 -1
  122. package/mobile/dist/components/ApplicationForm/constants.js.map +1 -1
  123. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  124. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  125. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  126. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  127. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +1 -1
  128. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  129. package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  130. package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  131. package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
  132. package/mobile/dist/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
  133. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
  134. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +1 -1
  135. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  136. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  137. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  138. package/mobile/dist/retail/components/Fields/ConsentField.js +1 -1
  139. package/mobile/dist/retail/components/Fields/ConsentField.js.map +1 -1
  140. package/mobile/dist/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
  141. package/mobile/dist/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
  142. package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
  143. package/mobile/dist/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  144. package/mobile/dist/ui-kit/Button/Button.d.ts +1 -0
  145. package/mobile/dist/ui-kit/Button/Button.js +2 -2
  146. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  147. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +2 -2
  148. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  149. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
  150. package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  151. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +2 -1
  152. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  153. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
  154. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js +2 -2
  155. package/mobile/dist/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
  156. package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
  157. package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
  158. package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
  159. package/mobile/dist/ui-kit/Input/Input.js +1 -1
  160. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  161. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  162. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  163. package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
  164. package/mobile/dist/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
  165. package/mobile/lib/api/LeadServiceAPI.d.ts +2 -1
  166. package/mobile/lib/api/LeadServiceAPI.js +3 -3
  167. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  168. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  169. package/mobile/lib/components/ApplicationForm/constants.js +5 -1
  170. package/mobile/lib/components/ApplicationForm/constants.js.map +1 -1
  171. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +1 -1
  172. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  173. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +1 -1
  174. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  175. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +1 -1
  176. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  177. package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
  178. package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  179. package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js +1 -1
  180. package/mobile/lib/retail/components/DaDataInputControl/DaDataInputControl.js.map +1 -1
  181. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.d.ts +1 -0
  182. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +1 -1
  183. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  184. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  185. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  186. package/mobile/lib/retail/components/Fields/ConsentField.js +1 -1
  187. package/mobile/lib/retail/components/Fields/ConsentField.js.map +1 -1
  188. package/mobile/lib/retail/components/VerifyPhoneDialog/InputCode.js +1 -1
  189. package/mobile/lib/retail/components/VerifyPhoneDialog/InputCode.js.map +1 -1
  190. package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js +1 -1
  191. package/mobile/lib/retail/components/VerifyPhoneDialog/SubmitButton.js.map +1 -1
  192. package/mobile/lib/ui-kit/Button/Button.d.ts +1 -0
  193. package/mobile/lib/ui-kit/Button/Button.js +2 -2
  194. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  195. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +2 -2
  196. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  197. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +1 -0
  198. package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  199. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +2 -1
  200. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  201. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.d.ts +1 -0
  202. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js +2 -2
  203. package/mobile/lib/ui-kit/DatePicker/DatePickerInput.js.map +1 -1
  204. package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +2 -1
  205. package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js +1 -1
  206. package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.js.map +1 -1
  207. package/mobile/lib/ui-kit/Input/Input.js +1 -1
  208. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  209. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
  210. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
  211. package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js +1 -1
  212. package/mobile/lib/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.js.map +1 -1
  213. package/mobile/src/api/LeadServiceAPI.ts +4 -2
  214. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
  215. package/mobile/src/components/ApplicationForm/constants.ts +5 -1
  216. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -0
  217. package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +1 -1
  218. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +7 -2
  219. package/mobile/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +6 -1
  220. package/mobile/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +1 -0
  221. package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +3 -1
  222. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +2 -0
  223. package/mobile/src/retail/components/Fields/ConsentField.tsx +1 -0
  224. package/mobile/src/retail/components/VerifyPhoneDialog/InputCode.tsx +1 -0
  225. package/mobile/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +1 -1
  226. package/mobile/src/ui-kit/Button/Button.tsx +3 -0
  227. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +2 -1
  228. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +1 -0
  229. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +3 -0
  230. package/mobile/src/ui-kit/DatePicker/DatePickerInput.tsx +3 -1
  231. package/mobile/src/ui-kit/DatePicker/renderDatePickerForm.tsx +3 -0
  232. package/mobile/src/ui-kit/Input/Input.tsx +1 -0
  233. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
  234. package/mobile/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +1 -1
  235. package/package.json +1 -1
  236. package/src/api/LeadServiceAPI.ts +4 -2
  237. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -0
  238. package/src/components/ApplicationForm/constants.ts +5 -1
  239. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +1 -0
  240. package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +1 -1
  241. package/src/components/CreditForm/StepsNavigationButtons.tsx +7 -2
  242. package/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +6 -1
  243. package/src/retail/components/DaDataInputControl/DaDataInputControl.tsx +1 -0
  244. package/src/retail/components/DraftDialog/DraftActionButton.tsx +3 -1
  245. package/src/retail/components/DraftDialog/DraftDialog.tsx +2 -0
  246. package/src/retail/components/Fields/ConsentField.tsx +1 -0
  247. package/src/retail/components/VerifyPhoneDialog/InputCode.tsx +1 -0
  248. package/src/retail/components/VerifyPhoneDialog/SubmitButton.tsx +1 -1
  249. package/src/ui-kit/Button/Button.tsx +3 -0
  250. package/src/ui-kit/Checkbox/Checkbox.tsx +2 -1
  251. package/src/ui-kit/Checkbox/CheckboxProps.ts +1 -0
  252. package/src/ui-kit/DatePicker/DatePicker.tsx +3 -0
  253. package/src/ui-kit/DatePicker/DatePickerInput.tsx +3 -1
  254. package/src/ui-kit/DatePicker/renderDatePickerForm.tsx +3 -0
  255. package/src/ui-kit/Input/Input.tsx +1 -0
  256. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -0
  257. package/src/ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout.tsx +1 -1
@@ -20,6 +20,7 @@ export declare type CheckCodeProps = {
20
20
  code: string;
21
21
  body: LeadRequest;
22
22
  router: Router;
23
+ endpoint?: EndpointType;
23
24
  };
24
25
  declare type CheckCodeResponse = {
25
26
  errorCode?: string;
@@ -38,7 +39,7 @@ export declare type sendProps = {
38
39
  export declare function LeadServiceAPI(): {
39
40
  send: ({ body, router, endpoint }: sendProps) => Promise<any>;
40
41
  sendCode: ({ phone }: PhoneOnly) => Promise<string | null>;
41
- checkCode: ({ reqId, code, body, router, }: CheckCodeProps) => Promise<CheckCodeResponse>;
42
+ checkCode: ({ reqId, code, body, router, endpoint, }: CheckCodeProps) => Promise<CheckCodeResponse>;
42
43
  sendPhoneCallRequest: (body: LeadRequest, endpoint?: EndpointType) => Promise<any>;
43
44
  };
44
45
  export {};
@@ -1323,7 +1323,7 @@
1323
1323
  };
1324
1324
  const embeddedStyle = style('group/btn-embedded', 'bg-transparent border border-transparent outline-none');
1325
1325
  const disabledStyle = style('bg-main-gray text-main-disabled cursor-not-allowed');
1326
- const Button = JSX(({ className, type = 'button', version = 'primary', shape = 'default', embedded, disabled, role, ariaLabel, data, dataTheme, children, wcmsIgnore, onClick = noop, }) => {
1326
+ const Button = JSX(({ className, type = 'button', version = 'primary', shape = 'default', embedded, disabled, role, ariaLabel, data, dataTheme, children, wcmsIgnore, onClick = noop, testId, }) => {
1327
1327
  const handleClick = useCallback(role !== 'tab' ? handlerDecorator(onClick) : onClick, [
1328
1328
  role,
1329
1329
  onClick,
@@ -1337,7 +1337,7 @@
1337
1337
  }, embedded ? 'justify-between' : 'justify-center', embedded || isRound ? 'p-0' : 'px-9 py-4', {
1338
1338
  'rounded-md': shape === 'default',
1339
1339
  'rounded-full': isRound,
1340
- }, className), type: type, role: role, "aria-label": ariaLabel, disabled: disabled, "aria-disabled": disabled ? 'true' : undefined, "data-theme": dataTheme, "data-wcms-ignore": wcmsIgnore, ...aspectsAttrs, onClick: handleClick, children: children }));
1340
+ }, className), type: type, role: role, "aria-label": ariaLabel, disabled: disabled, "aria-disabled": disabled ? 'true' : undefined, "data-theme": dataTheme, "data-wcms-ignore": wcmsIgnore, ...aspectsAttrs, onClick: handleClick, "data-test-id": testId, children: children }));
1341
1341
  });
1342
1342
 
1343
1343
  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" }) })));
@@ -1547,7 +1547,7 @@
1547
1547
  const paddingStyle = children ? 'pr-3xl' : '';
1548
1548
  const validStyle = getValidStyle(valid);
1549
1549
  const ariaLabel = label ?? name ?? id;
1550
- return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key))] }), children] }));
1550
+ return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { className: "space-y-xs", children: [renderLabel$1(label), isTextarea ? (jsx("textarea", { className: style('block resize-y min-h-24', defaultStyle$1, validStyle), id: style('textarea', id), value: value, name: name || id, placeholder: placeholder, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur }, key)) : (jsx("input", { ref: inputRef, className: style('h-14', defaultStyle$1, paddingStyle, validStyle), id: id, type: type, value: value, name: name || id, placeholder: placeholder, pattern: pattern, disabled: disabled, "aria-label": ariaLabel, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, "data-test-id": name }, key))] }), children] }));
1551
1551
  });
1552
1552
 
1553
1553
  const InputWrapper = JSX(({ className, label, value = '', error, errors, type, isInteger, placeholder, maxLength, inputRef, isOpen, onOpen, onClose, required, onChange = noop, ...rest }) => {
@@ -1803,7 +1803,11 @@
1803
1803
  isNaturalEndpoint: true,
1804
1804
  },
1805
1805
  initcorporatelead: {
1806
- withTypeForm: false,
1806
+ withTypeForm: true,
1807
+ isNaturalEndpoint: false,
1808
+ },
1809
+ confirmCorporateLead: {
1810
+ withTypeForm: true,
1807
1811
  isNaturalEndpoint: false,
1808
1812
  },
1809
1813
  callback: {
@@ -1930,14 +1934,14 @@
1930
1934
  return null;
1931
1935
  }
1932
1936
  }
1933
- async function checkCode({ reqId, code, body, router, }) {
1937
+ async function checkCode({ reqId, code, body, router, endpoint = 'confirmCorporateLead', }) {
1934
1938
  const submitBody = {
1935
1939
  requestId: reqId,
1936
1940
  confimationCode: code,
1937
- leadRequest: getSubmitBody({ body, router }),
1941
+ leadRequest: getSubmitBody({ body, endpoint, router }),
1938
1942
  };
1939
1943
  try {
1940
- const response = await LeadServiceFetch(`${API_BASE_URI}/confirmCorporateLead`, submitBody);
1944
+ const response = await LeadServiceFetch(`${API_BASE_URI}/${endpoint}`, submitBody);
1941
1945
  return await response.json();
1942
1946
  }
1943
1947
  catch (e) {
@@ -2085,7 +2089,7 @@
2085
2089
  fill: 'white',
2086
2090
  },
2087
2091
  ];
2088
- const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
2092
+ const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange, name }) => {
2089
2093
  const handleChange = useCallback((e) => {
2090
2094
  if (disabled) {
2091
2095
  return;
@@ -2094,7 +2098,7 @@
2094
2098
  onChange && onChange(!value);
2095
2099
  }, [onChange, disabled, value]);
2096
2100
  const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
2097
- return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$3(text)] }) }));
2101
+ return (jsx("div", { className: className, children: jsxs("label", { className: style('flex items-center relative group/box', getCursorStyle(disabled)), "data-test-id": name, onClick: handleChange, children: [jsx("div", { className: style(defaultCheckStyle, 'm-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), !disabled && value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: role(isRadio), "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled), "aria-label": text }), value ? icon : null, renderText$3(text)] }) }));
2098
2102
  });
2099
2103
  const renderText$3 = (text) => text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null;
2100
2104
  const getCursorStyle = (disabled = false) => (disabled ? 'cursor-not-allowed' : 'cursor-pointer');
@@ -2438,7 +2442,7 @@
2438
2442
  width: '24',
2439
2443
  height: '24',
2440
2444
  };
2441
- const DatePickerInput = JSX(({ setSelectedMonth, setSelectedYear, className, value, disabled, onChange, onClick }) => {
2445
+ const DatePickerInput = JSX(({ setSelectedMonth, setSelectedYear, className, value, disabled, onChange, onClick, name }) => {
2442
2446
  const ref = useRef(null);
2443
2447
  const [inputValue, setInputValue] = useState(value || '');
2444
2448
  const handleChange = (ev) => {
@@ -2467,7 +2471,7 @@
2467
2471
  useEffect(() => {
2468
2472
  updateSelectedDate({ inputValue, setSelectedMonth, setSelectedYear, onChange });
2469
2473
  }, [inputValue]);
2470
- return (jsxs("div", { onClick: onInputClick, className: style('relative', className), children: [jsx("input", { ref: ref, className: "h-full w-full px-m text-l text-black focus-visible:outline-none rounded-none", value: inputValue, type: "text", onChange: handleChange, onBlur: onBlur, disabled: disabled }), disabled ? null : jsx(Icon, { className: "mr-s", ...ICON_PROPS$2 })] }));
2474
+ return (jsxs("div", { onClick: onInputClick, className: style('relative', className), children: [jsx("input", { ref: ref, className: "h-full w-full px-m text-l text-black focus-visible:outline-none rounded-none", value: inputValue, type: "text", onChange: handleChange, onBlur: onBlur, disabled: disabled, "data-test-id": name }), disabled ? null : jsx(Icon, { className: "mr-s", ...ICON_PROPS$2 })] }));
2471
2475
  });
2472
2476
  const isValidYear = (year) => Number(year) >= START_YEAR && Number(year) <= new Date().getFullYear();
2473
2477
  const isValidMonth = (month) => Number(month) > 0 && Number(month) < 13;
@@ -2505,7 +2509,7 @@
2505
2509
 
2506
2510
  const formStyle = 'flex justify-between items-center h-14 border rounded-md cursor-pointer ' +
2507
2511
  'hover:border-black active:border-black focus:border-black';
2508
- const renderDatePickerForm = ({ handleChangeVisibleCalendar, value, valid, onChange, setSelectedMonth, setSelectedYear, disabled = false, }) => (jsx(DatePickerInput, { onChange: onChange, disabled: disabled, onClick: handleChangeVisibleCalendar, value: value && formatDate(value), setSelectedMonth: setSelectedMonth, setSelectedYear: setSelectedYear, className: style(formStyle, valid ? 'border-gray' : 'border-error') }));
2512
+ const renderDatePickerForm = ({ handleChangeVisibleCalendar, value, valid, onChange, setSelectedMonth, setSelectedYear, disabled = false, name, }) => (jsx(DatePickerInput, { onChange: onChange, disabled: disabled, onClick: handleChangeVisibleCalendar, value: value && formatDate(value), setSelectedMonth: setSelectedMonth, setSelectedYear: setSelectedYear, className: style(formStyle, valid ? 'border-gray' : 'border-error'), name: name }));
2509
2513
 
2510
2514
  const MONTHS_COUNT = 11;
2511
2515
  const MONTHS_OPTIONS = months.map((key) => ({ key }));
@@ -2587,7 +2591,7 @@
2587
2591
  };
2588
2592
  const DatePicker = JSX(
2589
2593
  // eslint-disable-next-line max-lines-per-function
2590
- ({ className = '', label = '', value, valid = true, minDate, maxDate, disabled, weekends, onChange, }) => {
2594
+ ({ className = '', label = '', value, valid = true, minDate, maxDate, disabled, weekends, onChange, name, }) => {
2591
2595
  const [isCalendarVisible, { setValue, setFalse: hideCalendar }] = useBool(false);
2592
2596
  const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
2593
2597
  const [selectedYear, setSelectedYear] = useState(value?.getFullYear() ?? new Date().getFullYear());
@@ -2614,6 +2618,7 @@
2614
2618
  disabled,
2615
2619
  setSelectedMonth,
2616
2620
  setSelectedYear,
2621
+ name,
2617
2622
  }), isCalendarVisible && !disabled ? (jsxs("div", { className: style('absolute bg-white z-20 select-none', {
2618
2623
  'bottom-full': spaceAbove,
2619
2624
  }), children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS$1, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS$1, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, min: minDate, max: maxDate, weekends: weekends, onDateSelect: handleDateSelect })] })) : null] })] }));
@@ -3317,7 +3322,7 @@
3317
3322
  horizontal: '@lg:flex-row',
3318
3323
  vertical: '',
3319
3324
  };
3320
- const RadioButtonGroup = JSX(({ label, items, value, className, disabled = false, orientation = 'horizontal', onChange: onChangeCheckedItem, }) => (jsxs("div", { className: "grid gap-xs whitespace-nowrap", children: [label ? (jsx("div", { role: "radiogroup", "aria-label": label, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: label }) })) : null, jsx("div", { className: style('flex flex-col gap-s', orientationStyleMap[orientation], className), role: "radiogroup", "aria-label": "\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: value === id, onChange: () => onChangeCheckedItem?.(id), disabled: disabled }, String(id)))) })] })));
3325
+ const RadioButtonGroup = JSX(({ label, items, value, className, disabled = false, orientation = 'horizontal', onChange: onChangeCheckedItem, }) => (jsxs("div", { className: "grid gap-xs whitespace-nowrap", children: [label ? (jsx("div", { role: "radiogroup", "aria-label": label, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: label }) })) : null, jsx("div", { className: style('flex flex-col gap-s', orientationStyleMap[orientation], className), role: "radiogroup", "aria-label": "\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: value === id, onChange: () => onChangeCheckedItem?.(id), disabled: disabled, name: id }, String(id)))) })] })));
3321
3326
 
3322
3327
  const VedField = JSX(({ field, input }) => {
3323
3328
  const handleChange = useCallback((_) => {
@@ -3498,14 +3503,14 @@
3498
3503
  inputRefs.current = [];
3499
3504
  }
3500
3505
  inputRefs.current[index] = ref;
3501
- }, onFocus: (event) => event.target.select(), onKeyDown: handleKeyDown(index), className: getInputStyle(index, values, hasError) }, index))) }), hasError ? jsx("div", { className: "text-error", children: errorText }) : null] }));
3506
+ }, onFocus: (event) => event.target.select(), onKeyDown: handleKeyDown(index), className: getInputStyle(index, values, hasError), "data-test-id": `sms-code-${index}` }, index))) }), hasError ? jsx("div", { className: "text-error", children: errorText }) : null] }));
3502
3507
  });
3503
3508
  const getInputStyle = (index, values, hasError = false) => {
3504
3509
  const isInputEmpty = !values[index];
3505
3510
  return `w-16 sm:w-20 h-24 text-5xl text-center p-md m-2 border ${getValidStyle(!hasError || !isInputEmpty)} rounded-md caret-transparent outline-none`;
3506
3511
  };
3507
3512
 
3508
- const SubmitButton = JSX(({ disabled = false, onClick, text }) => (jsx(Button, { type: "button", onClick: onClick, disabled: disabled, children: jsx(Text, { font: "font-normal", children: text }) })));
3513
+ const SubmitButton = JSX(({ disabled = false, onClick, text }) => (jsx(Button, { type: "button", onClick: onClick, disabled: disabled, testId: "sms-code-submit-button", children: jsx(Text, { font: "font-normal", children: text }) })));
3509
3514
 
3510
3515
  const ButtonTitle = JSX(({ className, labelColor, children }) => (jsx("span", { className: style('inline-flex items-center text-start gap-s', labelColor === 'white' ? 'text-white' : 'group-[]/btn-embedded:text-primary-main', className), children: children })));
3511
3516
 
@@ -3518,7 +3523,7 @@
3518
3523
  const VerifyPhoneDialogLayout = JSX(({ children, isLoading, isSubmitButtonDisabled, timeNextReq, onSubmit, onSendCode, values, onChange, errorText, hasError, phone, onClose, }) => (jsx(Dialog, { maxWidth: "lg", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [renderHeadline(phone), jsx(InputCode, { values: values, setValues: onChange, errorText: errorText, hasError: hasError }), renderText$1(timeNextReq, onSendCode), children, renderNextButton(isSubmitButtonDisabled, onSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) })));
3519
3524
  const renderHeadline = (phone) => (jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }));
3520
3525
  const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
3521
- const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base gap-2xs", children: [jsx("span", { children: " \u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437" }), jsx(Timer, { seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
3526
+ const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base gap-2xs", children: [jsx("span", { children: " \u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437" }), jsx(Timer, { seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, testId: "send-new-code-button", children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
3522
3527
 
3523
3528
  const TIME_TO_RESEND$2 = 180;
3524
3529
  const getTimer = (sendTime) => TIME_TO_RESEND$2 - Math.floor((Date.now() - sendTime) / 1000);
@@ -4416,7 +4421,7 @@
4416
4421
  }
4417
4422
  onChange?.(formattedValue);
4418
4423
  }, [onChange]);
4419
- return (jsx(InputWrapper, { value: value, onChange: handleChange, inputRef: inputRef, isOpen: isOpen, onOpen: open, onClose: close, ...rest }));
4424
+ return (jsx(InputWrapper, { value: value, onChange: handleChange, inputRef: inputRef, isOpen: isOpen, onOpen: open, onClose: close, name: name, ...rest }));
4420
4425
  });
4421
4426
 
4422
4427
  const AddressField = JSX(({ field, input }) => {
@@ -5319,7 +5324,7 @@
5319
5324
  const ConsentField = JSX(({ field, input }) => {
5320
5325
  const { productType } = useLeadFormStore();
5321
5326
  const consents = productTypeToConsentsMap[productType ?? ''];
5322
- return input && input.name ? (jsx(CheckboxWithDoc, { text: consents?.[input.name]?.text, docId: consents?.[input.name]?.docId, ...field(input.name) })) : null;
5327
+ return input && input.name ? (jsx(CheckboxWithDoc, { text: consents?.[input.name]?.text, docId: consents?.[input.name]?.docId, ...field(input.name), ...input })) : null;
5323
5328
  });
5324
5329
 
5325
5330
  const CalculatorLayout = JSX(({ className, title, children, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-xl', className), defaultPadding: "p-4xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title }) : null, children] })));
@@ -6564,7 +6569,7 @@
6564
6569
  ?.filter((_) => _.required)
6565
6570
  ?.some((_) => Boolean(withValidator(field(_?.name), agreementValidator).error)), [inputs]);
6566
6571
  const [isUnfolded, { toggle }] = useBool(true);
6567
- return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(Button, { embedded: true, ariaLabel: CONSENT_ALL_DOCS_TEXT, onClick: toggle, children: jsx(ToggleIcon, { className: "p-2xs", iconVersion: "color", isUnfolded: isUnfolded }) })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
6572
+ return (jsx("div", { className: "w-fit", children: jsxs(Foldable, { children: [jsxs("div", { className: "flex items-start", children: [jsxs("div", { children: [jsx(Checkbox, { text: CONSENT_ALL_DOCS_TEXT, value: isChecked, onChange: handleGeneralToggle, name: "all-consents" }, key), renderErrorText(hasValidationErrors ? CONSENT_REQUIRED : '')] }), jsx(Button, { embedded: true, ariaLabel: CONSENT_ALL_DOCS_TEXT, onClick: toggle, children: jsx(ToggleIcon, { className: "p-2xs", iconVersion: "color", isUnfolded: isUnfolded }) })] }), jsx(FoldableSection, { className: "flex flex-col pl-2xl", isUnfolded: isUnfolded, children: inputs.map(getField(field, {}, InputsConsentsMap)) })] }) }));
6568
6573
  });
6569
6574
 
6570
6575
  const renderInputs$1 = ({ field, inputs }, productType) => {
@@ -6576,7 +6581,7 @@
6576
6581
  restInputs: inputs.filter(({ name }) => !Object.keys(productTypeToConsentsMap[productType]).includes(String(name))),
6577
6582
  });
6578
6583
 
6579
- const renderSubmitButton = (button, isSending = false) => (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending, children: button?.text ? button.text : 'Отправить заявку' }));
6584
+ const renderSubmitButton = (button, isSending = false) => (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending, testId: "LeadSubmitButton", children: button?.text ? button.text : 'Отправить заявку' }));
6580
6585
 
6581
6586
  const createDraftTask = async (body) => {
6582
6587
  const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
@@ -6840,7 +6845,7 @@
6840
6845
  setShowRefuseContent(value === 'REFUSE');
6841
6846
  }, []);
6842
6847
  const consentText = showRefuseContent ? refuseConsentText : defaultConsentText;
6843
- return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
6848
+ return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, testId: "bki-button", children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
6844
6849
  });
6845
6850
 
6846
6851
  const useConsentBkiDialog = (onClose) => {
@@ -6941,7 +6946,7 @@
6941
6946
  ...debitCardCodesToProgrammIdMap,
6942
6947
  };
6943
6948
 
6944
- const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
6949
+ const DraftActionButton = JSX(({ title, icon, description, name, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, "data-test-id": name, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
6945
6950
 
6946
6951
  const fieldsNamesToContactKeysMap = {
6947
6952
  email: 'EMAIL',
@@ -7203,7 +7208,7 @@
7203
7208
  const handleGoToNewTask = useCallback(() => {
7204
7209
  navigator.assign(productData.newTaskLink);
7205
7210
  }, []);
7206
- return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
7211
+ return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button" }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button" })] })] }) }));
7207
7212
  });
7208
7213
 
7209
7214
  const EmptyDraftDialog = JSX(function ({ isDebit, onClose = noop }) {
@@ -11179,7 +11184,7 @@
11179
11184
  const StepsNavigationButtons$1 = JSX(({ step, onPrevStep, isSending }) => {
11180
11185
  const isFirstStep = step === 0;
11181
11186
  const isFinalStep = step === 5;
11182
- return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
11187
+ return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, testId: "back-button", children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, testId: "next-button", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
11183
11188
  });
11184
11189
 
11185
11190
  const PAYMENT_TYPE_DATA = {
@@ -14138,7 +14143,7 @@
14138
14143
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
14139
14144
  });
14140
14145
 
14141
- const packageVersion = "0.14.999";
14146
+ const packageVersion = "0.14.1001";
14142
14147
 
14143
14148
  exports.Blocks = Blocks;
14144
14149
  exports.ContentPage = ContentPage;