@redneckz/wildless-cms-uni-blocks 0.14.883 → 0.14.885

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 (270) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +228 -66
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  5. package/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  6. package/bundle/components/DebitForm/utils.d.ts +2 -0
  7. package/bundle/components/Header/useDropdownSubMenu.d.ts +2 -1
  8. package/bundle/icons/IconName.d.ts +7 -3
  9. package/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  10. package/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  11. package/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
  12. package/bundle/retail/model/LeadFormState.d.ts +0 -1
  13. package/cosmos-static/icons/LogoIcon.svg +1 -1
  14. package/cosmos-static/icons/LogoIconBig.svg +1 -0
  15. package/cosmos-static/icons/LogoIconDefault.svg +1 -0
  16. package/cosmos-static/icons/sprites.svg +3 -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/DebitForm/DebitForm.js +5 -1
  25. package/dist/components/DebitForm/DebitForm.js.map +1 -1
  26. package/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  27. package/dist/components/DebitForm/DebitFormStepsData.js +122 -6
  28. package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  29. package/dist/components/DebitForm/formStateMap.js +1 -0
  30. package/dist/components/DebitForm/formStateMap.js.map +1 -1
  31. package/dist/components/DebitForm/utils.d.ts +2 -0
  32. package/dist/components/DebitForm/utils.js +2 -0
  33. package/dist/components/DebitForm/utils.js.map +1 -1
  34. package/dist/components/Header/HeaderMoreMenuItem.js +0 -7
  35. package/dist/components/Header/HeaderMoreMenuItem.js.map +1 -1
  36. package/dist/components/Header/HeaderSubMenuItem.js +2 -1
  37. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  38. package/dist/components/Header/useDropdownSubMenu.d.ts +2 -1
  39. package/dist/components/Header/useDropdownSubMenu.js +13 -2
  40. package/dist/components/Header/useDropdownSubMenu.js.map +1 -1
  41. package/dist/icons/IconName.d.ts +7 -3
  42. package/dist/icons/IconName.js +6 -2
  43. package/dist/icons/IconName.js.map +1 -1
  44. package/dist/retail/adaptors/getPersonalInfoData.js +4 -1
  45. package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  46. package/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
  47. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  48. package/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  49. package/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  50. package/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  51. package/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  52. package/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
  53. package/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  54. package/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
  55. package/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  56. package/dist/retail/components/DraftDialog/utils.d.ts +5 -34
  57. package/dist/retail/components/DraftDialog/utils.js +23 -24
  58. package/dist/retail/components/DraftDialog/utils.js.map +1 -1
  59. package/dist/retail/components/Fields/CardCategoryField.js +8 -2
  60. package/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
  61. package/dist/retail/model/LeadFormState.d.ts +0 -1
  62. package/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +1 -1
  63. package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
  64. package/lib/common.css +1 -1
  65. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  66. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  67. package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  68. package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
  69. package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
  70. package/lib/components/ApplicationLeadForm/consents.js +0 -4
  71. package/lib/components/ApplicationLeadForm/consents.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/components/Header/HeaderMoreMenuItem.js +0 -7
  83. package/lib/components/Header/HeaderMoreMenuItem.js.map +1 -1
  84. package/lib/components/Header/HeaderSubMenuItem.js +2 -1
  85. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  86. package/lib/components/Header/useDropdownSubMenu.d.ts +2 -1
  87. package/lib/components/Header/useDropdownSubMenu.js +13 -2
  88. package/lib/components/Header/useDropdownSubMenu.js.map +1 -1
  89. package/lib/icons/IconName.d.ts +7 -3
  90. package/lib/icons/IconName.js +6 -2
  91. package/lib/icons/IconName.js.map +1 -1
  92. package/lib/retail/adaptors/getPersonalInfoData.js +4 -1
  93. package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  94. package/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
  95. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  96. package/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  97. package/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  98. package/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  99. package/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  100. package/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
  101. package/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  102. package/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
  103. package/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  104. package/lib/retail/components/DraftDialog/utils.d.ts +5 -34
  105. package/lib/retail/components/DraftDialog/utils.js +21 -23
  106. package/lib/retail/components/DraftDialog/utils.js.map +1 -1
  107. package/lib/retail/components/Fields/CardCategoryField.js +9 -3
  108. package/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
  109. package/lib/retail/model/LeadFormState.d.ts +0 -1
  110. package/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +1 -1
  111. package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
  112. package/mobile/bundle/bundle.umd.js +213 -57
  113. package/mobile/bundle/bundle.umd.min.js +1 -1
  114. package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  115. package/mobile/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  116. package/mobile/bundle/components/DebitForm/utils.d.ts +2 -0
  117. package/mobile/bundle/components/Header/useDropdownSubMenu.d.ts +2 -1
  118. package/mobile/bundle/icons/IconName.d.ts +7 -3
  119. package/mobile/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  120. package/mobile/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  121. package/mobile/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
  122. package/mobile/bundle/retail/model/LeadFormState.d.ts +0 -1
  123. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  124. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  125. package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  126. package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
  127. package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
  128. package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
  129. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  130. package/mobile/dist/components/DebitForm/DebitForm.js +5 -1
  131. package/mobile/dist/components/DebitForm/DebitForm.js.map +1 -1
  132. package/mobile/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  133. package/mobile/dist/components/DebitForm/DebitFormStepsData.js +122 -6
  134. package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  135. package/mobile/dist/components/DebitForm/formStateMap.js +1 -0
  136. package/mobile/dist/components/DebitForm/formStateMap.js.map +1 -1
  137. package/mobile/dist/components/DebitForm/utils.d.ts +2 -0
  138. package/mobile/dist/components/DebitForm/utils.js +2 -0
  139. package/mobile/dist/components/DebitForm/utils.js.map +1 -1
  140. package/mobile/dist/components/Header/HeaderMoreMenuItem.js +0 -7
  141. package/mobile/dist/components/Header/HeaderMoreMenuItem.js.map +1 -1
  142. package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -1
  143. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  144. package/mobile/dist/components/Header/useDropdownSubMenu.d.ts +2 -1
  145. package/mobile/dist/components/Header/useDropdownSubMenu.js +13 -2
  146. package/mobile/dist/components/Header/useDropdownSubMenu.js.map +1 -1
  147. package/mobile/dist/icons/IconName.d.ts +7 -3
  148. package/mobile/dist/icons/IconName.js +6 -2
  149. package/mobile/dist/icons/IconName.js.map +1 -1
  150. package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -1
  151. package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  152. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
  153. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  154. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  155. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  156. package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  157. package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  158. package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
  159. package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  160. package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
  161. package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  162. package/mobile/dist/retail/components/DraftDialog/utils.d.ts +5 -34
  163. package/mobile/dist/retail/components/DraftDialog/utils.js +23 -24
  164. package/mobile/dist/retail/components/DraftDialog/utils.js.map +1 -1
  165. package/mobile/dist/retail/components/Fields/CardCategoryField.js +8 -2
  166. package/mobile/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
  167. package/mobile/dist/retail/model/LeadFormState.d.ts +0 -1
  168. package/mobile/dist/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +1 -1
  169. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
  170. package/mobile/lib/common.css +1 -1
  171. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  172. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  173. package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
  174. package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
  175. package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
  176. package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
  177. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  178. package/mobile/lib/components/DebitForm/DebitForm.js +5 -1
  179. package/mobile/lib/components/DebitForm/DebitForm.js.map +1 -1
  180. package/mobile/lib/components/DebitForm/DebitFormStepsData.d.ts +1 -0
  181. package/mobile/lib/components/DebitForm/DebitFormStepsData.js +122 -6
  182. package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  183. package/mobile/lib/components/DebitForm/formStateMap.js +1 -0
  184. package/mobile/lib/components/DebitForm/formStateMap.js.map +1 -1
  185. package/mobile/lib/components/DebitForm/utils.d.ts +2 -0
  186. package/mobile/lib/components/DebitForm/utils.js +2 -0
  187. package/mobile/lib/components/DebitForm/utils.js.map +1 -1
  188. package/mobile/lib/components/Header/HeaderMoreMenuItem.js +0 -7
  189. package/mobile/lib/components/Header/HeaderMoreMenuItem.js.map +1 -1
  190. package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -1
  191. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  192. package/mobile/lib/components/Header/useDropdownSubMenu.d.ts +2 -1
  193. package/mobile/lib/components/Header/useDropdownSubMenu.js +13 -2
  194. package/mobile/lib/components/Header/useDropdownSubMenu.js.map +1 -1
  195. package/mobile/lib/icons/IconName.d.ts +7 -3
  196. package/mobile/lib/icons/IconName.js +6 -2
  197. package/mobile/lib/icons/IconName.js.map +1 -1
  198. package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -1
  199. package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  200. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
  201. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  202. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
  203. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
  204. package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
  205. package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
  206. package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
  207. package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
  208. package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
  209. package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
  210. package/mobile/lib/retail/components/DraftDialog/utils.d.ts +5 -34
  211. package/mobile/lib/retail/components/DraftDialog/utils.js +21 -23
  212. package/mobile/lib/retail/components/DraftDialog/utils.js.map +1 -1
  213. package/mobile/lib/retail/components/Fields/CardCategoryField.js +9 -3
  214. package/mobile/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
  215. package/mobile/lib/retail/model/LeadFormState.d.ts +0 -1
  216. package/mobile/lib/ui-kit/FormField/Fields/PartnerSymbolCodeField.js +1 -1
  217. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
  218. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +4 -4
  219. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
  220. package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
  221. package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
  222. package/mobile/src/components/DebitForm/DebitForm.tsx +6 -1
  223. package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
  224. package/mobile/src/components/DebitForm/formStateMap.tsx +1 -0
  225. package/mobile/src/components/DebitForm/utils.ts +2 -0
  226. package/mobile/src/components/Header/HeaderMoreMenuItem.tsx +0 -9
  227. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -1
  228. package/mobile/src/components/Header/useDropdownSubMenu.tsx +23 -3
  229. package/mobile/src/icons/IconName.ts +5 -5
  230. package/mobile/src/icons/LogoIcon.svg +28 -7
  231. package/mobile/src/icons/LogoIconBig.svg +28 -0
  232. package/mobile/src/icons/LogoIconDefault.svg +7 -0
  233. package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
  234. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
  235. package/mobile/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
  236. package/mobile/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
  237. package/mobile/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
  238. package/mobile/src/retail/components/DraftDialog/utils.ts +22 -27
  239. package/mobile/src/retail/components/Fields/CardCategoryField.tsx +14 -3
  240. package/mobile/src/retail/model/LeadFormState.ts +0 -1
  241. package/mobile/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +1 -1
  242. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
  243. package/package.json +1 -1
  244. package/src/components/ApplicationForm/ApplicationForm.example.json +4 -4
  245. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +7 -1
  246. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +7 -1
  247. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
  248. package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
  249. package/src/components/ApplicationLeadForm/consents.ts +0 -4
  250. package/src/components/DebitForm/DebitForm.tsx +6 -1
  251. package/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
  252. package/src/components/DebitForm/formStateMap.tsx +1 -0
  253. package/src/components/DebitForm/utils.ts +2 -0
  254. package/src/components/Header/HeaderMoreMenuItem.tsx +0 -9
  255. package/src/components/Header/HeaderSubMenuItem.tsx +2 -1
  256. package/src/components/Header/useDropdownSubMenu.tsx +23 -3
  257. package/src/icons/IconName.ts +5 -5
  258. package/src/icons/LogoIcon.svg +28 -7
  259. package/src/icons/LogoIconBig.svg +28 -0
  260. package/src/icons/LogoIconDefault.svg +7 -0
  261. package/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
  262. package/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
  263. package/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
  264. package/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
  265. package/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
  266. package/src/retail/components/DraftDialog/utils.ts +22 -27
  267. package/src/retail/components/Fields/CardCategoryField.tsx +14 -3
  268. package/src/retail/model/LeadFormState.ts +0 -1
  269. package/src/ui-kit/FormField/Fields/PartnerSymbolCodeField.tsx +1 -1
  270. package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
@@ -2167,7 +2167,7 @@
2167
2167
  ? 'ID партнера не найден. Обратитесь к своему менеджеру'
2168
2168
  : '');
2169
2169
  }, [partnerCode]);
2170
- return (jsx(InputControl, { label: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0430\u0440\u0442\u043D\u0435\u0440\u0430", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), error: symbolCodeError || field('partnerSymbolCode')?.error }));
2170
+ return (jsx(InputControl, { label: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0430\u0440\u0442\u043D\u0451\u0440\u0430", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), error: symbolCodeError || field('partnerSymbolCode')?.error }));
2171
2171
  });
2172
2172
 
2173
2173
  const isPlaceholder = (_) => _ === '_';
@@ -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
  });
@@ -2829,10 +2829,6 @@
2829
2829
  text: 'Согласие на информирование о продуктах и услугах Банка',
2830
2830
  docId: 14,
2831
2831
  },
2832
- consentProviderFlg: {
2833
- text: 'Согласие об использовании простой электронной подписи',
2834
- docId: 5,
2835
- },
2836
2832
  consentOthersFlg: {
2837
2833
  text: 'Прочие согласия',
2838
2834
  docId: 20,
@@ -2922,7 +2918,7 @@
2922
2918
 
2923
2919
  const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
2924
2920
 
2925
- const EsiaLoginBanner = JSX(({ onChangeEsiaStatus }) => {
2921
+ const EsiaLoginBanner = JSX(({ onChangeEsiaStatus, productType }) => {
2926
2922
  const navigator = locationNavigator();
2927
2923
  const handleAuth = useCallback(async () => {
2928
2924
  try {
@@ -2937,7 +2933,7 @@
2937
2933
  onChangeEsiaStatus(EsiaStatuses.Error);
2938
2934
  }
2939
2935
  }, []);
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" })] }));
2936
+ 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
2937
  });
2942
2938
 
2943
2939
  const NAME_HINTS_LIST_OPTIONS = {
@@ -4063,17 +4059,23 @@
4063
4059
  const [programId] = useLocalStorage('programId');
4064
4060
  const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
4065
4061
  const selectedPaymentSystem = field('paymentSystem')?.value?.key;
4062
+ const getCardCategoryValue = useCallback((fetchedCardTypes) => fetchedCardTypes.length === 1
4063
+ ? {
4064
+ key: fetchedCardTypes[0].key,
4065
+ text: fetchedCardTypes[0].value,
4066
+ }
4067
+ : null, []);
4066
4068
  useEffect(() => {
4067
4069
  if (selectedPaymentSystem && programId) {
4068
4070
  (async () => {
4069
4071
  const fetchedCardTypes = await getCardTypes(selectedPaymentSystem, programId);
4070
4072
  setCardTypes(fetchedCardTypes);
4071
4073
  if (!isValidCardCategory(fetchedCardTypes, selectedCardCategory)) {
4072
- cardCategoryChange && cardCategoryChange(null);
4074
+ cardCategoryChange?.(getCardCategoryValue(fetchedCardTypes));
4073
4075
  }
4074
4076
  })();
4075
4077
  }
4076
- }, [selectedPaymentSystem]);
4078
+ }, [selectedPaymentSystem, getCardCategoryValue]);
4077
4079
  const description = useMemo(() => cardTypes?.find((_) => _.key === selectedCardCategory?.key)?.description, [cardTypes, selectedCardCategory]);
4078
4080
  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
4081
  });
@@ -4473,6 +4475,8 @@
4473
4475
  42: 'eco_debit_card',
4474
4476
  43: 'junior_debit_card',
4475
4477
  44: 'appetit_debit_card',
4478
+ 46: 'owner_debit_card_plus',
4479
+ 47: 'owner_debit_card_pens_plus',
4476
4480
  };
4477
4481
 
4478
4482
  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 +5551,43 @@
5547
5551
  };
5548
5552
  };
5549
5553
 
5554
+ /* eslint-disable camelcase */
5555
+ const creditCodesToProgrammIdMap = {
5556
+ credit_cash: '10',
5557
+ credit_cash_single_doc: '28',
5558
+ credit_mcx: '39',
5559
+ family_offer_credit: '41',
5560
+ gas_engine_fuel: '33',
5561
+ pension_credit: '12',
5562
+ ref_credit: '11',
5563
+ ref_credit_single_doc: '29',
5564
+ self_employed: '34',
5565
+ summer_cash: '35',
5566
+ summer_cash_pens: '36',
5567
+ };
5568
+ const debitCardCodesToProgrammIdMap = {
5569
+ amur_debit_card: '17',
5570
+ owner_debit_card: '16',
5571
+ pension_debit_card: '18',
5572
+ salary_debit_card: '38',
5573
+ vordi_debit_card: '40',
5574
+ eco_debit_card: '42',
5575
+ junior_debit_card: '43',
5576
+ appetit_debit_card: '44',
5577
+ owner_debit_card_plus: '46',
5578
+ owner_debit_card_pens_plus: '47',
5579
+ };
5580
+ const cardCodesToProgrammIdMap = {
5581
+ amur_card: '14',
5582
+ owner_card: '13',
5583
+ travel_card: '15',
5584
+ };
5585
+ const creditProgramCodeToProductIdMap = {
5586
+ ...creditCodesToProgrammIdMap,
5587
+ ...cardCodesToProgrammIdMap,
5588
+ ...debitCardCodesToProgrammIdMap,
5589
+ };
5590
+
5550
5591
  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
5592
 
5552
5593
  const fieldsNamesToContactKeysMap = {
@@ -5642,7 +5683,6 @@
5642
5683
  };
5643
5684
  const countIncomeAverage = (wages, retirementIncome) => (Number(wages ?? 0) + Number(retirementIncome ?? 0)).toString();
5644
5685
 
5645
- /* eslint-disable camelcase */
5646
5686
  const EMPLOYMENT_TYPE = {
5647
5687
  WORK: 'Работаю',
5648
5688
  RETIREE: 'Пенсионер',
@@ -5653,28 +5693,6 @@
5653
5693
  PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
5654
5694
  OTHER: 'Другое',
5655
5695
  };
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
5696
  const getParticipantIncomes = (participantIncomes) => {
5679
5697
  const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
5680
5698
  const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
@@ -5730,6 +5748,27 @@
5730
5748
  }
5731
5749
  : undefined;
5732
5750
  };
5751
+ const getProductData = (isDebit = false, isCredit = false) => {
5752
+ if (isDebit) {
5753
+ return {
5754
+ nextStepLink: '/debit-card-lead',
5755
+ newTaskLink: '/natural/debetcards',
5756
+ description: 'На дебетовую карту',
5757
+ };
5758
+ }
5759
+ else if (isCredit) {
5760
+ return {
5761
+ nextStepLink: '/credit-lead',
5762
+ newTaskLink: '/natural/loans/all-goals',
5763
+ description: 'На получение кредита',
5764
+ };
5765
+ }
5766
+ return {
5767
+ nextStepLink: '/credit-card-lead',
5768
+ newTaskLink: '/natural/creditcards/svoya',
5769
+ description: 'На получение кредитной карты',
5770
+ };
5771
+ };
5733
5772
 
5734
5773
  const parseDraftTask = (task) => {
5735
5774
  const participant = task.participants[0];
@@ -5801,15 +5840,7 @@
5801
5840
  const { participants, creditProgram, createdDate = '', id: taskId } = task;
5802
5841
  const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
5803
5842
  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
- };
5843
+ const productData = getProductData(isDebit, isCredit);
5813
5844
  const { id: participantId, profile } = participants[0];
5814
5845
  const handleGoToDraft = useCallback(() => {
5815
5846
  const taskFromDraft = parseDraftTask(task);
@@ -5821,18 +5852,19 @@
5821
5852
  if (profile?.id) {
5822
5853
  sendAspects(profile.id, taskId);
5823
5854
  }
5824
- navigator.assign(getNextStepLink());
5855
+ navigator.assign(productData.nextStepLink);
5825
5856
  }, []);
5826
5857
  const handleGoToNewTask = useCallback(() => {
5827
- navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
5858
+ navigator.assign(productData.newTaskLink);
5828
5859
  }, []);
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 })] })] }) }));
5860
+ 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
5861
  });
5831
5862
 
5832
- const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
5863
+ const EmptyDraftDialog = JSX(function ({ isDebit, onClose = noop }) {
5833
5864
  const navigator = locationNavigator();
5865
+ const productData = getProductData(isDebit);
5834
5866
  const handleGoNewTask = useCallback(() => {
5835
- navigator.assign('/natural/loans/all-goals');
5867
+ navigator.assign(productData.newTaskLink);
5836
5868
  }, []);
5837
5869
  const handleGoMainPage = useCallback(() => {
5838
5870
  navigator.assign('/');
@@ -5847,7 +5879,7 @@
5847
5879
  open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
5848
5880
  task
5849
5881
  ? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
5850
- : openEmptyDraftDialog({});
5882
+ : openEmptyDraftDialog({ isDebit });
5851
5883
  },
5852
5884
  };
5853
5885
  };
@@ -6524,7 +6556,7 @@
6524
6556
  reset();
6525
6557
  }
6526
6558
  }, [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] })] }));
6559
+ 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
6560
  });
6529
6561
  const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
6530
6562
  const getExtendedValidatorObj = (productType) => ({
@@ -8271,7 +8303,10 @@
8271
8303
  phone: formatPhone(phone),
8272
8304
  email,
8273
8305
  }),
8274
- participantAddresses: getParticipantAddresses$1({ addressRegistration, addressFact }),
8306
+ participantAddresses: getParticipantAddresses$1({
8307
+ addressRegistration,
8308
+ addressFact: addressMatch ? addressRegistration : addressFact,
8309
+ }),
8275
8310
  genderCd: sex
8276
8311
  ? {
8277
8312
  key: sex === 'male' ? 'MAN' : 'WOMAN',
@@ -9498,6 +9533,7 @@
9498
9533
  fullAddress: '',
9499
9534
  fiasCode: '',
9500
9535
  },
9536
+ addressMatch: true,
9501
9537
  addressFact: {
9502
9538
  fullAddress: '',
9503
9539
  fiasCode: '',
@@ -9651,6 +9687,108 @@
9651
9687
  return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, step }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
9652
9688
  });
9653
9689
 
9690
+ /* eslint-disable max-lines */
9691
+ const DELIVERY_DEBIT_CARD_CONTENT = [
9692
+ {
9693
+ title: 'Регион обслуживания карты',
9694
+ columns: 1,
9695
+ inputs: [],
9696
+ },
9697
+ {
9698
+ inputs: [
9699
+ {
9700
+ name: 'regionRetail',
9701
+ required: true,
9702
+ },
9703
+ ],
9704
+ },
9705
+ {
9706
+ title: 'Способ получения',
9707
+ columns: 1,
9708
+ inputs: [],
9709
+ condition: {
9710
+ name: 'regionHasDelivery',
9711
+ values: [true],
9712
+ },
9713
+ },
9714
+ {
9715
+ inputs: [
9716
+ {
9717
+ name: 'methodObtain',
9718
+ condition: {
9719
+ name: 'regionHasDelivery',
9720
+ values: [true],
9721
+ },
9722
+ },
9723
+ ],
9724
+ },
9725
+ {
9726
+ title: 'Выбор офиса',
9727
+ columns: 1,
9728
+ inputs: [],
9729
+ condition: {
9730
+ name: 'methodObtain',
9731
+ values: ['office'],
9732
+ },
9733
+ },
9734
+ {
9735
+ title: 'Адрес доставки',
9736
+ columns: 1,
9737
+ inputs: [],
9738
+ condition: {
9739
+ name: 'methodObtain',
9740
+ values: ['courier'],
9741
+ },
9742
+ },
9743
+ {
9744
+ inputs: [
9745
+ {
9746
+ name: 'addressCourier',
9747
+ dadata: true,
9748
+ condition: {
9749
+ name: 'methodObtain',
9750
+ values: ['courier'],
9751
+ },
9752
+ required: true,
9753
+ },
9754
+ ],
9755
+ },
9756
+ {
9757
+ inputs: [
9758
+ {
9759
+ name: 'infoCard',
9760
+ condition: {
9761
+ name: 'methodObtain',
9762
+ values: ['courier'],
9763
+ },
9764
+ label: 'Ожидайте звонка для согласования даты и времени доставки карты',
9765
+ },
9766
+ ],
9767
+ },
9768
+ {
9769
+ inputs: [
9770
+ {
9771
+ name: 'comment',
9772
+ condition: {
9773
+ name: 'methodObtain',
9774
+ values: ['courier'],
9775
+ },
9776
+ },
9777
+ ],
9778
+ },
9779
+ {
9780
+ inputs: [
9781
+ {
9782
+ name: 'addressRetail',
9783
+ required: true,
9784
+ condition: {
9785
+ name: 'methodObtain',
9786
+ values: ['office'],
9787
+ },
9788
+ },
9789
+ ],
9790
+ },
9791
+ ];
9654
9792
  const DEBIT_PERSONAL_INFO_CONTENT = [
9655
9793
  ...PERSONAL_DATA,
9656
9794
  {
@@ -9672,9 +9810,23 @@
9672
9810
  {
9673
9811
  title: 'Адрес фактического проживания (место пребывания РФ)',
9674
9812
  inputs: [],
9813
+ condition: {
9814
+ name: 'addressMatch',
9815
+ values: [false],
9816
+ },
9675
9817
  },
9676
9818
  {
9677
- inputs: [{ name: 'addressFact', required: true, dadata: true }],
9819
+ inputs: [
9820
+ {
9821
+ name: 'addressFact',
9822
+ required: true,
9823
+ dadata: true,
9824
+ condition: {
9825
+ name: 'addressMatch',
9826
+ values: [false],
9827
+ },
9828
+ },
9829
+ ],
9678
9830
  },
9679
9831
  ];
9680
9832
  const DEBIT_CARD_CONTENT = [
@@ -9705,6 +9857,9 @@
9705
9857
  },
9706
9858
  ],
9707
9859
  },
9860
+ {
9861
+ inputs: [{ name: 'codeWord', required: true }],
9862
+ },
9708
9863
  {
9709
9864
  inputs: [
9710
9865
  {
@@ -9715,12 +9870,9 @@
9715
9870
  },
9716
9871
  ],
9717
9872
  },
9718
- {
9719
- inputs: [{ name: 'codeWord', required: true }],
9720
- },
9721
9873
  ];
9722
9874
  const stepsSectionsMap = [
9723
- DELIVERY_CARD_CONTENT,
9875
+ DELIVERY_DEBIT_CARD_CONTENT,
9724
9876
  DEBIT_PERSONAL_INFO_CONTENT,
9725
9877
  DEBIT_CARD_CONTENT,
9726
9878
  ];
@@ -9743,7 +9895,11 @@
9743
9895
  }, []);
9744
9896
  const sections = stepsSectionsMap[step];
9745
9897
  const isStartStep = step === 0;
9746
- const [isFormFinished, { setTrue: handleFinish }] = useBool(false);
9898
+ const [isFormFinished, { setTrue: setIsFormFinished }] = useBool(false);
9899
+ const handleFinish = useCallback(() => {
9900
+ setIsFormFinished();
9901
+ scrollToTop();
9902
+ }, []);
9747
9903
  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
9904
  });
9749
9905
 
@@ -11106,7 +11262,7 @@
11106
11262
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11107
11263
  });
11108
11264
 
11109
- const packageVersion = "0.14.882";
11265
+ const packageVersion = "0.14.884";
11110
11266
 
11111
11267
  exports.Blocks = Blocks;
11112
11268
  exports.ContentPage = ContentPage;