@redneckz/wildless-cms-uni-blocks 0.14.884 → 0.14.886

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 (243) hide show
  1. package/bundle/bundle.umd.js +220 -58
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  4. package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  5. package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  6. package/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  7. package/bundle/components/DebitForm/utils.d.ts +2 -0
  8. package/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  9. package/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  10. package/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
  11. package/bundle/retail/model/LeadFormState.d.ts +0 -1
  12. package/dist/components/ApplicationForm/ApplicationForm.js +6 -1
  13. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  14. package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  15. package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  16. package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  17. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  18. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  19. package/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  20. package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
  21. package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
  22. package/dist/components/ApplicationLeadForm/consents.js +0 -4
  23. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  24. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  25. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  26. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  27. package/dist/components/DebitForm/DebitForm.js +5 -1
  28. package/dist/components/DebitForm/DebitForm.js.map +1 -1
  29. package/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  30. package/dist/components/DebitForm/DebitFormStepsData.js +122 -6
  31. package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  32. package/dist/components/DebitForm/formStateMap.js +1 -0
  33. package/dist/components/DebitForm/formStateMap.js.map +1 -1
  34. package/dist/components/DebitForm/utils.d.ts +2 -0
  35. package/dist/components/DebitForm/utils.js +2 -0
  36. package/dist/components/DebitForm/utils.js.map +1 -1
  37. package/dist/retail/adaptors/getPersonalInfoData.js +4 -1
  38. package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  39. package/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
  40. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  41. package/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  42. package/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  43. package/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  44. package/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  45. package/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
  46. package/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  47. package/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
  48. package/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  49. package/dist/retail/components/DraftDialog/utils.d.ts +5 -34
  50. package/dist/retail/components/DraftDialog/utils.js +23 -24
  51. package/dist/retail/components/DraftDialog/utils.js.map +1 -1
  52. package/dist/retail/components/Fields/CardCategoryField.js +8 -2
  53. package/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
  54. package/dist/retail/model/LeadFormState.d.ts +0 -1
  55. package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
  56. package/lib/common.css +1 -1
  57. package/lib/components/ApplicationForm/ApplicationForm.js +6 -1
  58. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  59. package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  60. package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  61. package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  62. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  63. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  64. package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  65. package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
  66. package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
  67. package/lib/components/ApplicationLeadForm/consents.js +0 -4
  68. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  69. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  70. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  71. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  72. package/lib/components/DebitForm/DebitForm.js +5 -1
  73. package/lib/components/DebitForm/DebitForm.js.map +1 -1
  74. package/lib/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  75. package/lib/components/DebitForm/DebitFormStepsData.js +122 -6
  76. package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  77. package/lib/components/DebitForm/formStateMap.js +1 -0
  78. package/lib/components/DebitForm/formStateMap.js.map +1 -1
  79. package/lib/components/DebitForm/utils.d.ts +2 -0
  80. package/lib/components/DebitForm/utils.js +2 -0
  81. package/lib/components/DebitForm/utils.js.map +1 -1
  82. package/lib/retail/adaptors/getPersonalInfoData.js +4 -1
  83. package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  84. package/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
  85. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  86. package/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  87. package/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  88. package/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  89. package/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  90. package/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
  91. package/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  92. package/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
  93. package/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  94. package/lib/retail/components/DraftDialog/utils.d.ts +5 -34
  95. package/lib/retail/components/DraftDialog/utils.js +21 -23
  96. package/lib/retail/components/DraftDialog/utils.js.map +1 -1
  97. package/lib/retail/components/Fields/CardCategoryField.js +9 -3
  98. package/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
  99. package/lib/retail/model/LeadFormState.d.ts +0 -1
  100. package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
  101. package/mobile/bundle/bundle.umd.js +220 -58
  102. package/mobile/bundle/bundle.umd.min.js +1 -1
  103. package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  104. package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  105. package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  106. package/mobile/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  107. package/mobile/bundle/components/DebitForm/utils.d.ts +2 -0
  108. package/mobile/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  109. package/mobile/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  110. package/mobile/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
  111. package/mobile/bundle/retail/model/LeadFormState.d.ts +0 -1
  112. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -1
  113. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  114. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  115. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  116. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  117. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  118. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  119. package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  120. package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
  121. package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
  122. package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
  123. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  124. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  125. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  126. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  127. package/mobile/dist/components/DebitForm/DebitForm.js +5 -1
  128. package/mobile/dist/components/DebitForm/DebitForm.js.map +1 -1
  129. package/mobile/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  130. package/mobile/dist/components/DebitForm/DebitFormStepsData.js +122 -6
  131. package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  132. package/mobile/dist/components/DebitForm/formStateMap.js +1 -0
  133. package/mobile/dist/components/DebitForm/formStateMap.js.map +1 -1
  134. package/mobile/dist/components/DebitForm/utils.d.ts +2 -0
  135. package/mobile/dist/components/DebitForm/utils.js +2 -0
  136. package/mobile/dist/components/DebitForm/utils.js.map +1 -1
  137. package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -1
  138. package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  139. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
  140. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  141. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  142. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  143. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  144. package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  145. package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
  146. package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  147. package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
  148. package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  149. package/mobile/dist/retail/components/DraftDialog/utils.d.ts +5 -34
  150. package/mobile/dist/retail/components/DraftDialog/utils.js +23 -24
  151. package/mobile/dist/retail/components/DraftDialog/utils.js.map +1 -1
  152. package/mobile/dist/retail/components/Fields/CardCategoryField.js +8 -2
  153. package/mobile/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
  154. package/mobile/dist/retail/model/LeadFormState.d.ts +0 -1
  155. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
  156. package/mobile/lib/common.css +1 -1
  157. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -1
  158. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  159. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
  160. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
  161. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  162. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  163. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  164. package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  165. package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
  166. package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
  167. package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
  168. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  169. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
  170. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
  171. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
  172. package/mobile/lib/components/DebitForm/DebitForm.js +5 -1
  173. package/mobile/lib/components/DebitForm/DebitForm.js.map +1 -1
  174. package/mobile/lib/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  175. package/mobile/lib/components/DebitForm/DebitFormStepsData.js +122 -6
  176. package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  177. package/mobile/lib/components/DebitForm/formStateMap.js +1 -0
  178. package/mobile/lib/components/DebitForm/formStateMap.js.map +1 -1
  179. package/mobile/lib/components/DebitForm/utils.d.ts +2 -0
  180. package/mobile/lib/components/DebitForm/utils.js +2 -0
  181. package/mobile/lib/components/DebitForm/utils.js.map +1 -1
  182. package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -1
  183. package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  184. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
  185. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  186. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  187. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  188. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  189. package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  190. package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
  191. package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  192. package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
  193. package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  194. package/mobile/lib/retail/components/DraftDialog/utils.d.ts +5 -34
  195. package/mobile/lib/retail/components/DraftDialog/utils.js +21 -23
  196. package/mobile/lib/retail/components/DraftDialog/utils.js.map +1 -1
  197. package/mobile/lib/retail/components/Fields/CardCategoryField.js +9 -3
  198. package/mobile/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
  199. package/mobile/lib/retail/model/LeadFormState.d.ts +0 -1
  200. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
  201. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
  202. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
  203. package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
  204. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
  205. package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
  206. package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
  207. package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
  208. package/mobile/src/components/DebitForm/DebitForm.tsx +6 -1
  209. package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
  210. package/mobile/src/components/DebitForm/formStateMap.tsx +1 -0
  211. package/mobile/src/components/DebitForm/utils.ts +2 -0
  212. package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
  213. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
  214. package/mobile/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
  215. package/mobile/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
  216. package/mobile/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
  217. package/mobile/src/retail/components/DraftDialog/utils.ts +22 -27
  218. package/mobile/src/retail/components/Fields/CardCategoryField.tsx +14 -3
  219. package/mobile/src/retail/model/LeadFormState.ts +0 -1
  220. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
  221. package/package.json +1 -1
  222. package/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
  223. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +1 -1
  224. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
  225. package/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
  226. package/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
  227. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
  228. package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
  229. package/src/components/ApplicationLeadForm/consents.ts +0 -4
  230. package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
  231. package/src/components/DebitForm/DebitForm.tsx +6 -1
  232. package/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
  233. package/src/components/DebitForm/formStateMap.tsx +1 -0
  234. package/src/components/DebitForm/utils.ts +2 -0
  235. package/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
  236. package/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
  237. package/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
  238. package/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
  239. package/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
  240. package/src/retail/components/DraftDialog/utils.ts +22 -27
  241. package/src/retail/components/Fields/CardCategoryField.tsx +14 -3
  242. package/src/retail/model/LeadFormState.ts +0 -1
  243. package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
@@ -2302,7 +2302,7 @@
2302
2302
  };
2303
2303
  const byNonEmptyValidator = (validator = {}) => ({ name }) => Boolean(validator[name ?? '']);
2304
2304
  const byCondition = (formState) => (fieldDef) => !fieldDef?.condition ||
2305
- fieldDef.condition.values.find((_) => {
2305
+ fieldDef.condition.values.some((_) => {
2306
2306
  const dependencyValue = formState?.[fieldDef?.condition?.name ?? ''];
2307
2307
  return _ === (dependencyValue?.key ?? dependencyValue);
2308
2308
  });
@@ -2578,7 +2578,8 @@
2578
2578
  const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null] })));
2579
2579
 
2580
2580
  const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
2581
- const renderAgreementSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
2581
+ const agreementTextPF = 'Нажимая на кнопку, вы подтверждаете, что клиент дал согласие на ';
2582
+ const renderAgreementSubmit = ({ consentDataProcessing, link, button, typeForm, }) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: typeForm === 'PF' ? agreementTextPF : agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
2582
2583
 
2583
2584
  const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "\u0442\u0435\u043B\u0435\u0444\u043E\u043D 8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "\u043F\u043E\u0447\u0442\u0430 ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
2584
2585
 
@@ -2603,7 +2604,12 @@
2603
2604
  onSubmit: handleSubmit,
2604
2605
  });
2605
2606
  const fieldName = getConsentDataProcessing(inputs)?.name;
2606
- return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? renderContacts() : null] }));
2607
+ return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit({
2608
+ consentDataProcessing: fieldName ? field('consentDataProcessing') : undefined,
2609
+ link,
2610
+ button,
2611
+ typeForm,
2612
+ })] }), isContacts ? renderContacts() : null] }));
2607
2613
  });
2608
2614
  const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
2609
2615
 
@@ -2829,10 +2835,6 @@
2829
2835
  text: 'Согласие на информирование о продуктах и услугах Банка',
2830
2836
  docId: 14,
2831
2837
  },
2832
- consentProviderFlg: {
2833
- text: 'Согласие об использовании простой электронной подписи',
2834
- docId: 5,
2835
- },
2836
2838
  consentOthersFlg: {
2837
2839
  text: 'Прочие согласия',
2838
2840
  docId: 20,
@@ -2922,7 +2924,7 @@
2922
2924
 
2923
2925
  const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
2924
2926
 
2925
- const EsiaLoginBanner = JSX(({ onChangeEsiaStatus }) => {
2927
+ const EsiaLoginBanner = JSX(({ onChangeEsiaStatus, productType }) => {
2926
2928
  const navigator = locationNavigator();
2927
2929
  const handleAuth = useCallback(async () => {
2928
2930
  try {
@@ -2937,7 +2939,7 @@
2937
2939
  onChangeEsiaStatus(EsiaStatuses.Error);
2938
2940
  }
2939
2941
  }, []);
2940
- return (jsxs("div", { className: "flex gap-lg items-center rounded-md bg-main-gray p-4xl", children: [jsxs("div", { className: "flex flex-col justify-around w-full", children: [jsx("p", { className: "mb-m text-xl", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsxs("ul", { className: "list-disc list-inside mb-4xl", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { className: "block mb-xl self-center @md:hidden", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "80", width: "80" }), jsx(Button, { type: "button", onClick: handleAuth, className: "w-full @md:w-fit", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C" })] }), jsx(Img, { className: "hidden @md:block", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "164" })] }));
2942
+ return (jsxs("div", { className: "flex items-center rounded-md bg-main-gray p-4xl", children: [jsxs("div", { className: "flex gap-m flex-col justify-around w-full", children: [jsx("p", { className: "text-xl", children: `Заполните данные через Госуслуги${productType === 'debitCard' ? ' - это значительно сократит время оформления заявки' : ''}` }), productType === 'debitCard' ? null : (jsxs("ul", { className: "list-disc list-inside", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] })), jsx(Img, { className: "block self-center @md:hidden", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "80", width: "80" }), jsx(Button, { type: "button", onClick: handleAuth, className: "w-full @md:w-fit", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C" })] }), jsx(Img, { className: "hidden @md:block", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "164" })] }));
2941
2943
  });
2942
2944
 
2943
2945
  const NAME_HINTS_LIST_OPTIONS = {
@@ -4063,17 +4065,23 @@
4063
4065
  const [programId] = useLocalStorage('programId');
4064
4066
  const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
4065
4067
  const selectedPaymentSystem = field('paymentSystem')?.value?.key;
4068
+ const getCardCategoryValue = useCallback((fetchedCardTypes) => fetchedCardTypes.length === 1
4069
+ ? {
4070
+ key: fetchedCardTypes[0].key,
4071
+ text: fetchedCardTypes[0].value,
4072
+ }
4073
+ : null, []);
4066
4074
  useEffect(() => {
4067
4075
  if (selectedPaymentSystem && programId) {
4068
4076
  (async () => {
4069
4077
  const fetchedCardTypes = await getCardTypes(selectedPaymentSystem, programId);
4070
4078
  setCardTypes(fetchedCardTypes);
4071
4079
  if (!isValidCardCategory(fetchedCardTypes, selectedCardCategory)) {
4072
- cardCategoryChange && cardCategoryChange(null);
4080
+ cardCategoryChange?.(getCardCategoryValue(fetchedCardTypes));
4073
4081
  }
4074
4082
  })();
4075
4083
  }
4076
- }, [selectedPaymentSystem]);
4084
+ }, [selectedPaymentSystem, getCardCategoryValue]);
4077
4085
  const description = useMemo(() => cardTypes?.find((_) => _.key === selectedCardCategory?.key)?.description, [cardTypes, selectedCardCategory]);
4078
4086
  return (jsxs("div", { children: [jsx(SelectField, { field: field, source: cardTypes, label: "\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F \u043A\u0430\u0440\u0442\u044B", fieldName: "cardCategory", input: input }), description ? jsx(InfoCard, { __html: description }) : null] }));
4079
4087
  });
@@ -4473,6 +4481,8 @@
4473
4481
  42: 'eco_debit_card',
4474
4482
  43: 'junior_debit_card',
4475
4483
  44: 'appetit_debit_card',
4484
+ 46: 'owner_debit_card_plus',
4485
+ 47: 'owner_debit_card_pens_plus',
4476
4486
  };
4477
4487
 
4478
4488
  const RadioButtonGroupControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), ...rest }), renderErrorText(error)] })));
@@ -5547,6 +5557,43 @@
5547
5557
  };
5548
5558
  };
5549
5559
 
5560
+ /* eslint-disable camelcase */
5561
+ const creditCodesToProgrammIdMap = {
5562
+ credit_cash: '10',
5563
+ credit_cash_single_doc: '28',
5564
+ credit_mcx: '39',
5565
+ family_offer_credit: '41',
5566
+ gas_engine_fuel: '33',
5567
+ pension_credit: '12',
5568
+ ref_credit: '11',
5569
+ ref_credit_single_doc: '29',
5570
+ self_employed: '34',
5571
+ summer_cash: '35',
5572
+ summer_cash_pens: '36',
5573
+ };
5574
+ const debitCardCodesToProgrammIdMap = {
5575
+ amur_debit_card: '17',
5576
+ owner_debit_card: '16',
5577
+ pension_debit_card: '18',
5578
+ salary_debit_card: '38',
5579
+ vordi_debit_card: '40',
5580
+ eco_debit_card: '42',
5581
+ junior_debit_card: '43',
5582
+ appetit_debit_card: '44',
5583
+ owner_debit_card_plus: '46',
5584
+ owner_debit_card_pens_plus: '47',
5585
+ };
5586
+ const cardCodesToProgrammIdMap = {
5587
+ amur_card: '14',
5588
+ owner_card: '13',
5589
+ travel_card: '15',
5590
+ };
5591
+ const creditProgramCodeToProductIdMap = {
5592
+ ...creditCodesToProgrammIdMap,
5593
+ ...cardCodesToProgrammIdMap,
5594
+ ...debitCardCodesToProgrammIdMap,
5595
+ };
5596
+
5550
5597
  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] })] })));
5551
5598
 
5552
5599
  const fieldsNamesToContactKeysMap = {
@@ -5642,7 +5689,6 @@
5642
5689
  };
5643
5690
  const countIncomeAverage = (wages, retirementIncome) => (Number(wages ?? 0) + Number(retirementIncome ?? 0)).toString();
5644
5691
 
5645
- /* eslint-disable camelcase */
5646
5692
  const EMPLOYMENT_TYPE = {
5647
5693
  WORK: 'Работаю',
5648
5694
  RETIREE: 'Пенсионер',
@@ -5653,28 +5699,6 @@
5653
5699
  PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
5654
5700
  OTHER: 'Другое',
5655
5701
  };
5656
- const creditCodesToProgrammIdMap = {
5657
- credit_cash: '10',
5658
- credit_cash_single_doc: '28',
5659
- credit_mcx: '39',
5660
- family_offer_credit: '41',
5661
- gas_engine_fuel: '33',
5662
- pension_credit: '12',
5663
- ref_credit: '11',
5664
- ref_credit_single_doc: '29',
5665
- self_employed: '34',
5666
- summer_cash: '35',
5667
- summer_cash_pens: '36',
5668
- };
5669
- const cardCodesToProgrammIdMap = {
5670
- amur_card: '14',
5671
- owner_card: '13',
5672
- travel_card: '15',
5673
- };
5674
- const creditProgramCodeToProductIdMap = {
5675
- ...creditCodesToProgrammIdMap,
5676
- ...cardCodesToProgrammIdMap,
5677
- };
5678
5702
  const getParticipantIncomes = (participantIncomes) => {
5679
5703
  const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
5680
5704
  const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
@@ -5730,6 +5754,27 @@
5730
5754
  }
5731
5755
  : undefined;
5732
5756
  };
5757
+ const getProductData = (isDebit = false, isCredit = false) => {
5758
+ if (isDebit) {
5759
+ return {
5760
+ nextStepLink: '/debit-card-lead',
5761
+ newTaskLink: '/natural/debetcards',
5762
+ description: 'На дебетовую карту',
5763
+ };
5764
+ }
5765
+ else if (isCredit) {
5766
+ return {
5767
+ nextStepLink: '/credit-lead',
5768
+ newTaskLink: '/natural/loans/all-goals',
5769
+ description: 'На получение кредита',
5770
+ };
5771
+ }
5772
+ return {
5773
+ nextStepLink: '/credit-card-lead',
5774
+ newTaskLink: '/natural/creditcards/svoya',
5775
+ description: 'На получение кредитной карты',
5776
+ };
5777
+ };
5733
5778
 
5734
5779
  const parseDraftTask = (task) => {
5735
5780
  const participant = task.participants[0];
@@ -5801,15 +5846,7 @@
5801
5846
  const { participants, creditProgram, createdDate = '', id: taskId } = task;
5802
5847
  const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
5803
5848
  const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
5804
- const getNextStepLink = () => {
5805
- if (isDebit) {
5806
- return '/debit-card-lead';
5807
- }
5808
- else if (isCredit) {
5809
- return '/credit-lead';
5810
- }
5811
- return '/credit-card-lead';
5812
- };
5849
+ const productData = getProductData(isDebit, isCredit);
5813
5850
  const { id: participantId, profile } = participants[0];
5814
5851
  const handleGoToDraft = useCallback(() => {
5815
5852
  const taskFromDraft = parseDraftTask(task);
@@ -5821,18 +5858,19 @@
5821
5858
  if (profile?.id) {
5822
5859
  sendAspects(profile.id, taskId);
5823
5860
  }
5824
- navigator.assign(getNextStepLink());
5861
+ navigator.assign(productData.nextStepLink);
5825
5862
  }, []);
5826
5863
  const handleGoToNewTask = useCallback(() => {
5827
- navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
5864
+ navigator.assign(productData.newTaskLink);
5828
5865
  }, []);
5829
- return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", 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: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
5866
+ return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", 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 })] })] }) }));
5830
5867
  });
5831
5868
 
5832
- const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
5869
+ const EmptyDraftDialog = JSX(function ({ isDebit, onClose = noop }) {
5833
5870
  const navigator = locationNavigator();
5871
+ const productData = getProductData(isDebit);
5834
5872
  const handleGoNewTask = useCallback(() => {
5835
- navigator.assign('/natural/loans/all-goals');
5873
+ navigator.assign(productData.newTaskLink);
5836
5874
  }, []);
5837
5875
  const handleGoMainPage = useCallback(() => {
5838
5876
  navigator.assign('/');
@@ -5847,7 +5885,7 @@
5847
5885
  open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
5848
5886
  task
5849
5887
  ? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
5850
- : openEmptyDraftDialog({});
5888
+ : openEmptyDraftDialog({ isDebit });
5851
5889
  },
5852
5890
  };
5853
5891
  };
@@ -6524,7 +6562,7 @@
6524
6562
  reset();
6525
6563
  }
6526
6564
  }, [leadForm?.current, esiaStatus]);
6527
- return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus }) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
6565
+ return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? (jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus, productType: productType })) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
6528
6566
  });
6529
6567
  const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
6530
6568
  const getExtendedValidatorObj = (productType) => ({
@@ -8271,7 +8309,10 @@
8271
8309
  phone: formatPhone(phone),
8272
8310
  email,
8273
8311
  }),
8274
- participantAddresses: getParticipantAddresses$1({ addressRegistration, addressFact }),
8312
+ participantAddresses: getParticipantAddresses$1({
8313
+ addressRegistration,
8314
+ addressFact: addressMatch ? addressRegistration : addressFact,
8315
+ }),
8275
8316
  genderCd: sex
8276
8317
  ? {
8277
8318
  key: sex === 'male' ? 'MAN' : 'WOMAN',
@@ -9498,6 +9539,7 @@
9498
9539
  fullAddress: '',
9499
9540
  fiasCode: '',
9500
9541
  },
9542
+ addressMatch: true,
9501
9543
  addressFact: {
9502
9544
  fullAddress: '',
9503
9545
  fiasCode: '',
@@ -9651,6 +9693,108 @@
9651
9693
  return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, step }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
9652
9694
  });
9653
9695
 
9696
+ /* eslint-disable max-lines */
9697
+ const DELIVERY_DEBIT_CARD_CONTENT = [
9698
+ {
9699
+ title: 'Регион обслуживания карты',
9700
+ columns: 1,
9701
+ inputs: [],
9702
+ },
9703
+ {
9704
+ inputs: [
9705
+ {
9706
+ name: 'regionRetail',
9707
+ required: true,
9708
+ },
9709
+ ],
9710
+ },
9711
+ {
9712
+ title: 'Способ получения',
9713
+ columns: 1,
9714
+ inputs: [],
9715
+ condition: {
9716
+ name: 'regionHasDelivery',
9717
+ values: [true],
9718
+ },
9719
+ },
9720
+ {
9721
+ inputs: [
9722
+ {
9723
+ name: 'methodObtain',
9724
+ condition: {
9725
+ name: 'regionHasDelivery',
9726
+ values: [true],
9727
+ },
9728
+ },
9729
+ ],
9730
+ },
9731
+ {
9732
+ title: 'Выбор офиса',
9733
+ columns: 1,
9734
+ inputs: [],
9735
+ condition: {
9736
+ name: 'methodObtain',
9737
+ values: ['office'],
9738
+ },
9739
+ },
9740
+ {
9741
+ title: 'Адрес доставки',
9742
+ columns: 1,
9743
+ inputs: [],
9744
+ condition: {
9745
+ name: 'methodObtain',
9746
+ values: ['courier'],
9747
+ },
9748
+ },
9749
+ {
9750
+ inputs: [
9751
+ {
9752
+ name: 'addressCourier',
9753
+ dadata: true,
9754
+ condition: {
9755
+ name: 'methodObtain',
9756
+ values: ['courier'],
9757
+ },
9758
+ required: true,
9759
+ },
9760
+ ],
9761
+ },
9762
+ {
9763
+ inputs: [
9764
+ {
9765
+ name: 'infoCard',
9766
+ condition: {
9767
+ name: 'methodObtain',
9768
+ values: ['courier'],
9769
+ },
9770
+ label: 'Ожидайте звонка для согласования даты и времени доставки карты',
9771
+ },
9772
+ ],
9773
+ },
9774
+ {
9775
+ inputs: [
9776
+ {
9777
+ name: 'comment',
9778
+ condition: {
9779
+ name: 'methodObtain',
9780
+ values: ['courier'],
9781
+ },
9782
+ },
9783
+ ],
9784
+ },
9785
+ {
9786
+ inputs: [
9787
+ {
9788
+ name: 'addressRetail',
9789
+ required: true,
9790
+ condition: {
9791
+ name: 'methodObtain',
9792
+ values: ['office'],
9793
+ },
9794
+ },
9795
+ ],
9796
+ },
9797
+ ];
9654
9798
  const DEBIT_PERSONAL_INFO_CONTENT = [
9655
9799
  ...PERSONAL_DATA,
9656
9800
  {
@@ -9672,9 +9816,23 @@
9672
9816
  {
9673
9817
  title: 'Адрес фактического проживания (место пребывания РФ)',
9674
9818
  inputs: [],
9819
+ condition: {
9820
+ name: 'addressMatch',
9821
+ values: [false],
9822
+ },
9675
9823
  },
9676
9824
  {
9677
- inputs: [{ name: 'addressFact', required: true, dadata: true }],
9825
+ inputs: [
9826
+ {
9827
+ name: 'addressFact',
9828
+ required: true,
9829
+ dadata: true,
9830
+ condition: {
9831
+ name: 'addressMatch',
9832
+ values: [false],
9833
+ },
9834
+ },
9835
+ ],
9678
9836
  },
9679
9837
  ];
9680
9838
  const DEBIT_CARD_CONTENT = [
@@ -9705,6 +9863,9 @@
9705
9863
  },
9706
9864
  ],
9707
9865
  },
9866
+ {
9867
+ inputs: [{ name: 'codeWord', required: true }],
9868
+ },
9708
9869
  {
9709
9870
  inputs: [
9710
9871
  {
@@ -9715,12 +9876,9 @@
9715
9876
  },
9716
9877
  ],
9717
9878
  },
9718
- {
9719
- inputs: [{ name: 'codeWord', required: true }],
9720
- },
9721
9879
  ];
9722
9880
  const stepsSectionsMap = [
9723
- DELIVERY_CARD_CONTENT,
9881
+ DELIVERY_DEBIT_CARD_CONTENT,
9724
9882
  DEBIT_PERSONAL_INFO_CONTENT,
9725
9883
  DEBIT_CARD_CONTENT,
9726
9884
  ];
@@ -9743,7 +9901,11 @@
9743
9901
  }, []);
9744
9902
  const sections = stepsSectionsMap[step];
9745
9903
  const isStartStep = step === 0;
9746
- const [isFormFinished, { setTrue: handleFinish }] = useBool(false);
9904
+ const [isFormFinished, { setTrue: setIsFormFinished }] = useBool(false);
9905
+ const handleFinish = useCallback(() => {
9906
+ setIsFormFinished();
9907
+ scrollToTop();
9908
+ }, []);
9747
9909
  return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isStartStep || isFormFinished ? null : (jsx(DebitFormProgress, { stepsTitles: STEP_TITLES, step: step, totalSteps: STEPS })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: isFormFinished ? (jsx(DebitFormStatusTracker, {})) : (jsx(DebitFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, onFinish: handleFinish }, String(step))) })] }) }));
9748
9910
  });
9749
9911
 
@@ -11106,7 +11268,7 @@
11106
11268
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11107
11269
  });
11108
11270
 
11109
- const packageVersion = "0.14.883";
11271
+ const packageVersion = "0.14.885";
11110
11272
 
11111
11273
  exports.Blocks = Blocks;
11112
11274
  exports.ContentPage = ContentPage;