@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
@@ -0,0 +1,37 @@
1
+ /* eslint-disable camelcase */
2
+ export const creditCodesToProgrammIdMap = {
3
+ credit_cash: '10',
4
+ credit_cash_single_doc: '28',
5
+ credit_mcx: '39',
6
+ family_offer_credit: '41',
7
+ gas_engine_fuel: '33',
8
+ pension_credit: '12',
9
+ ref_credit: '11',
10
+ ref_credit_single_doc: '29',
11
+ self_employed: '34',
12
+ summer_cash: '35',
13
+ summer_cash_pens: '36',
14
+ };
15
+ const debitCardCodesToProgrammIdMap = {
16
+ amur_debit_card: '17',
17
+ owner_debit_card: '16',
18
+ pension_debit_card: '18',
19
+ salary_debit_card: '38',
20
+ vordi_debit_card: '40',
21
+ eco_debit_card: '42',
22
+ junior_debit_card: '43',
23
+ appetit_debit_card: '44',
24
+ owner_debit_card_plus: '46',
25
+ owner_debit_card_pens_plus: '47',
26
+ };
27
+ const cardCodesToProgrammIdMap = {
28
+ amur_card: '14',
29
+ owner_card: '13',
30
+ travel_card: '15',
31
+ };
32
+ export const creditProgramCodeToProductIdMap = {
33
+ ...creditCodesToProgrammIdMap,
34
+ ...cardCodesToProgrammIdMap,
35
+ ...debitCardCodesToProgrammIdMap,
36
+ };
37
+ //# sourceMappingURL=creditProgramCodes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creditProgramCodes.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/creditProgramCodes.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAE9B,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,WAAW,EAAE,IAAI;IACjB,sBAAsB,EAAE,IAAI;IAC5B,UAAU,EAAE,IAAI;IAChB,mBAAmB,EAAE,IAAI;IACzB,eAAe,EAAE,IAAI;IACrB,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,IAAI;IAChB,qBAAqB,EAAE,IAAI;IAC3B,aAAa,EAAE,IAAI;IACnB,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEF,MAAM,6BAA6B,GAAG;IACpC,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,iBAAiB,EAAE,IAAI;IACvB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;IACxB,qBAAqB,EAAE,IAAI;IAC3B,0BAA0B,EAAE,IAAI;CACjC,CAAC;AAEF,MAAM,wBAAwB,GAAG;IAC/B,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,WAAW,EAAE,IAAI;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,GAAG,0BAA0B;IAC7B,GAAG,wBAAwB;IAC3B,GAAG,6BAA6B;CACjC,CAAC"}
@@ -8,7 +8,7 @@ export const useDraftDialog = () => {
8
8
  open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
9
9
  task
10
10
  ? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
11
- : openEmptyDraftDialog({});
11
+ : openEmptyDraftDialog({ isDebit });
12
12
  },
13
13
  };
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/useDraftDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IACzD,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEnE,OAAO;QACL,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAA6B,EAAE,EAAE;YACvF,IAAI;gBACF,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;gBACtE,CAAC,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;QAC/B,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"useDraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/useDraftDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;IACzD,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAEnE,OAAO;QACL,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAA6B,EAAE,EAAE;YACvF,IAAI;gBACF,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;gBACtE,CAAC,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QACxC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -34,40 +34,6 @@ export declare const INCOME_CERTIFICATE: {
34
34
  PFR_CERTIFICATE: string;
35
35
  OTHER: string;
36
36
  };
37
- export declare const creditCodesToProgrammIdMap: {
38
- credit_cash: string;
39
- credit_cash_single_doc: string;
40
- credit_mcx: string;
41
- family_offer_credit: string;
42
- gas_engine_fuel: string;
43
- pension_credit: string;
44
- ref_credit: string;
45
- ref_credit_single_doc: string;
46
- self_employed: string;
47
- summer_cash: string;
48
- summer_cash_pens: string;
49
- };
50
- export declare const cardCodesToProgrammIdMap: {
51
- amur_card: string;
52
- owner_card: string;
53
- travel_card: string;
54
- };
55
- export declare const creditProgramCodeToProductIdMap: {
56
- amur_card: string;
57
- owner_card: string;
58
- travel_card: string;
59
- credit_cash: string;
60
- credit_cash_single_doc: string;
61
- credit_mcx: string;
62
- family_offer_credit: string;
63
- gas_engine_fuel: string;
64
- pension_credit: string;
65
- ref_credit: string;
66
- ref_credit_single_doc: string;
67
- self_employed: string;
68
- summer_cash: string;
69
- summer_cash_pens: string;
70
- };
71
37
  export declare const getParticipantIncomes: (participantIncomes: Participant['participantIncomes']) => {
72
38
  wages: string | undefined;
73
39
  mandatoryPayments: string | undefined;
@@ -146,3 +112,8 @@ export declare const getParticipantGender: (gender: Participant['genderCd']) =>
146
112
  sex: string;
147
113
  } | null;
148
114
  export declare const getSelectValue: (option?: DictionaryItem, map?: Record<string, string>) => Option | undefined;
115
+ export declare const getProductData: (isDebit?: boolean, isCredit?: boolean) => {
116
+ nextStepLink: string;
117
+ newTaskLink: string;
118
+ description: string;
119
+ };
@@ -1,4 +1,3 @@
1
- /* eslint-disable camelcase */
2
1
  import { countIncomeAverage } from '../../adaptors/getFamilyStatusAndIncomeData.js';
3
2
  export const EMPLOYMENT_TYPE = {
4
3
  WORK: 'Работаю',
@@ -10,28 +9,6 @@ export const INCOME_CERTIFICATE = {
10
9
  PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
11
10
  OTHER: 'Другое',
12
11
  };
13
- export const creditCodesToProgrammIdMap = {
14
- credit_cash: '10',
15
- credit_cash_single_doc: '28',
16
- credit_mcx: '39',
17
- family_offer_credit: '41',
18
- gas_engine_fuel: '33',
19
- pension_credit: '12',
20
- ref_credit: '11',
21
- ref_credit_single_doc: '29',
22
- self_employed: '34',
23
- summer_cash: '35',
24
- summer_cash_pens: '36',
25
- };
26
- export const cardCodesToProgrammIdMap = {
27
- amur_card: '14',
28
- owner_card: '13',
29
- travel_card: '15',
30
- };
31
- export const creditProgramCodeToProductIdMap = {
32
- ...creditCodesToProgrammIdMap,
33
- ...cardCodesToProgrammIdMap,
34
- };
35
12
  export const getParticipantIncomes = (participantIncomes) => {
36
13
  const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
37
14
  const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
@@ -87,4 +64,25 @@ export const getSelectValue = (option, map) => {
87
64
  }
88
65
  : undefined;
89
66
  };
67
+ export const getProductData = (isDebit = false, isCredit = false) => {
68
+ if (isDebit) {
69
+ return {
70
+ nextStepLink: '/debit-card-lead',
71
+ newTaskLink: '/natural/debetcards',
72
+ description: 'На дебетовую карту',
73
+ };
74
+ }
75
+ else if (isCredit) {
76
+ return {
77
+ nextStepLink: '/credit-lead',
78
+ newTaskLink: '/natural/loans/all-goals',
79
+ description: 'На получение кредита',
80
+ };
81
+ }
82
+ return {
83
+ nextStepLink: '/credit-card-lead',
84
+ newTaskLink: '/natural/creditcards/svoya',
85
+ description: 'На получение кредитной карты',
86
+ };
87
+ };
90
88
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/utils.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAG9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AA8BjF,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,WAAW;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,cAAc,EAAE,uCAAuC;IACvD,mBAAmB,EAAE,qCAAqC;IAC1D,eAAe,EAAE,+CAA+C;IAChE,KAAK,EAAE,QAAQ;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,WAAW,EAAE,IAAI;IACjB,sBAAsB,EAAE,IAAI;IAC5B,UAAU,EAAE,IAAI;IAChB,mBA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ect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCallback, useEffect, useMemo, useState } from '@redneckz/uni-jsx/lib/hooks';
4
4
  import { useLocalStorage } from '../../../hooks/useLocalStorage.js';
5
5
  import { InfoCard } from '../../../ui-kit/InfoCard/InfoCard.js';
6
6
  import { getCardTypes } from '../../api/getCardTypes.js';
@@ -10,17 +10,23 @@ export const CardCategoryField = JSX(({ field, input }) => {
10
10
  const [programId] = useLocalStorage('programId');
11
11
  const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
12
12
  const selectedPaymentSystem = field('paymentSystem')?.value?.key;
13
+ const getCardCategoryValue = useCallback((fetchedCardTypes) => fetchedCardTypes.length === 1
14
+ ? {
15
+ key: fetchedCardTypes[0].key,
16
+ text: fetchedCardTypes[0].value,
17
+ }
18
+ : null, []);
13
19
  useEffect(() => {
14
20
  if (selectedPaymentSystem && programId) {
15
21
  (async () => {
16
22
  const fetchedCardTypes = await getCardTypes(selectedPaymentSystem, programId);
17
23
  setCardTypes(fetchedCardTypes);
18
24
  if (!isValidCardCategory(fetchedCardTypes, selectedCardCategory)) {
19
- cardCategoryChange && cardCategoryChange(null);
25
+ cardCategoryChange?.(getCardCategoryValue(fetchedCardTypes));
20
26
  }
21
27
  })();
22
28
  }
23
- }, [selectedPaymentSystem]);
29
+ }, [selectedPaymentSystem, getCardCategoryValue]);
24
30
  const description = useMemo(() => cardTypes?.find((_) => _.key === selectedCardCategory?.key)?.description, [cardTypes, selectedCardCategory]);
25
31
  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] }));
26
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"CardCategoryField.js","sourceRoot":"","sources":["../../../../src/retail/components/Fields/CardCategoryField.tsx"],"names":[],"mappings":";AAAA,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WAAW,EAC9E,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAClC,CAAC;IAEF,OAAO,CACL,0BACE,KAAC,WAAW,IACV,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,SAAS,EACjB,KAAK,EAAC,uFAAiB,EACvB,SAAS,EAAC,cAAc,EACxB,KAAK,EAAE,KAAK,GACZ,EACD,WAAW,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,MAAM,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,IACnD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,CAAC,SAAyB,EAAE,oBAAmC,EAAE,EAAE,CAC7F,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,KAAK,oBAAoB,EAAE,GAAG,CAAC,CAAC"}
@@ -16,7 +16,6 @@ export interface CreditCardFormConsents {
16
16
  }
17
17
  export interface DebitCardFormConsents {
18
18
  processPersonalDataFlg?: boolean;
19
- consentProviderFlg?: boolean;
20
19
  consentOthersFlg?: boolean;
21
20
  consentInformFlg?: boolean;
22
21
  consentFATCA?: boolean;
@@ -48,7 +48,7 @@ export const getFormValidator = (fieldDefs, externalValidatorObj = {}) => {
48
48
  };
49
49
  const byNonEmptyValidator = (validator = {}) => ({ name }) => Boolean(validator[name ?? '']);
50
50
  const byCondition = (formState) => (fieldDef) => !fieldDef?.condition ||
51
- fieldDef.condition.values.find((_) => {
51
+ fieldDef.condition.values.some((_) => {
52
52
  const dependencyValue = formState?.[fieldDef?.condition?.name ?? ''];
53
53
  return _ === (dependencyValue?.key ?? dependencyValue);
54
54
  });
@@ -1455,7 +1455,7 @@
1455
1455
  "version": "primary"
1456
1456
  },
1457
1457
  "link": {
1458
- "text": "условиями передачи данных со стороны клиента",
1458
+ "text": "обработку персональных данных",
1459
1459
  "href": "/privacy-policy",
1460
1460
  "target": "_blank"
1461
1461
  },
@@ -92,11 +92,12 @@ export const ApplicationForm = UniBlock<ApplicationFormProps>(
92
92
  >
93
93
  <form onSubmit={onSubmit}>
94
94
  {renderSections(sections, field, { typeForm, additionalParams })}
95
- {renderAgreementSubmit(
96
- fieldName ? field('consentDataProcessing') : undefined,
95
+ {renderAgreementSubmit({
96
+ consentDataProcessing: fieldName ? field('consentDataProcessing') : undefined,
97
97
  link,
98
98
  button,
99
- )}
99
+ typeForm,
100
+ })}
100
101
  </form>
101
102
  {isContacts ? renderContacts() : null}
102
103
  </ApplicationFormLayout>
@@ -9,12 +9,19 @@ import { type SubmitButtonProps } from './ApplicationFormContent';
9
9
  import { Footnote } from './Footnote';
10
10
 
11
11
  const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
12
+ const agreementTextPF = 'Нажимая на кнопку, вы подтверждаете, что клиент дал согласие на ';
12
13
 
13
- export const renderAgreementSubmit = (
14
- consentDataProcessing?: FieldProps<boolean>,
15
- link?: LinkProps,
16
- button?: SubmitButtonProps,
17
- ) => (
14
+ export const renderAgreementSubmit = ({
15
+ consentDataProcessing,
16
+ link,
17
+ button,
18
+ typeForm,
19
+ }: {
20
+ consentDataProcessing?: FieldProps<boolean>;
21
+ link?: LinkProps;
22
+ button?: SubmitButtonProps;
23
+ typeForm?: string;
24
+ }) => (
18
25
  <div className="flex col-span-2 gap-xs flex-col w-full items-baseline">
19
26
  {consentDataProcessing ? (
20
27
  <div>
@@ -25,7 +32,7 @@ export const renderAgreementSubmit = (
25
32
  {renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)}
26
33
  </div>
27
34
  ) : (
28
- <Footnote text={agreementText} link={link} />
35
+ <Footnote text={typeForm === 'PF' ? agreementTextPF : agreementText} link={link} />
29
36
  )}
30
37
  <SubmitButton className="w-full @xl:w-auto">
31
38
  {button?.text ? button.text : 'Отправить заявку'}
@@ -111,7 +111,9 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
111
111
  title={title}
112
112
  {...rest}
113
113
  >
114
- {!esiaStatus ? <EsiaLoginBanner onChangeEsiaStatus={setEsiaStatus} /> : null}
114
+ {!esiaStatus ? (
115
+ <EsiaLoginBanner onChangeEsiaStatus={setEsiaStatus} productType={productType} />
116
+ ) : null}
115
117
  <form onSubmit={onSubmitWithPrecondition} className="space-y-m relative" ref={leadForm}>
116
118
  {esiaStatus === EsiaStatuses.Pending ? <Loader blur={false} /> : null}
117
119
  {applicationFormData.map((_, i) => (
@@ -4,13 +4,14 @@ import { locationNavigator } from '../../external/locationNavigator';
4
4
  import { getLink } from '../../retail/api/getLink';
5
5
  import { Button } from '../../ui-kit/Button/Button';
6
6
  import { Img } from '../../ui-kit/Img/Img';
7
- import { EsiaStatuses } from './ApplicationLeadFormContent';
7
+ import { EsiaStatuses, type ProductType } from './ApplicationLeadFormContent';
8
8
 
9
9
  export interface EsiaLoginBannerProps {
10
10
  onChangeEsiaStatus: (status: EsiaStatuses) => void;
11
+ productType: ProductType;
11
12
  }
12
13
 
13
- export const EsiaLoginBanner = JSX<EsiaLoginBannerProps>(({ onChangeEsiaStatus }) => {
14
+ export const EsiaLoginBanner = JSX<EsiaLoginBannerProps>(({ onChangeEsiaStatus, productType }) => {
14
15
  const navigator = locationNavigator();
15
16
 
16
17
  const handleAuth = useCallback(async () => {
@@ -28,16 +29,20 @@ export const EsiaLoginBanner = JSX<EsiaLoginBannerProps>(({ onChangeEsiaStatus }
28
29
  }, []);
29
30
 
30
31
  return (
31
- <div className="flex gap-lg items-center rounded-md bg-main-gray p-4xl">
32
- <div className="flex flex-col justify-around w-full">
33
- <p className="mb-m text-xl">Заполните данные через Госуслуги</p>
34
- <ul className="list-disc list-inside mb-4xl">
35
- <li>Вероятность одобрения выше</li>
36
- <li>Без справок о доходах и трудоустройстве</li>
37
- <li>С защитой Ваших данных</li>
38
- </ul>
32
+ <div className="flex items-center rounded-md bg-main-gray p-4xl">
33
+ <div className="flex gap-m flex-col justify-around w-full">
34
+ <p className="text-xl">{`Заполните данные через Госуслуги${
35
+ productType === 'debitCard' ? ' - это значительно сократит время оформления заявки' : ''
36
+ }`}</p>
37
+ {productType === 'debitCard' ? null : (
38
+ <ul className="list-disc list-inside">
39
+ <li>Вероятность одобрения выше</li>
40
+ <li>Без справок о доходах и трудоустройстве</li>
41
+ <li>С защитой Ваших данных</li>
42
+ </ul>
43
+ )}
39
44
  <Img
40
- className="block mb-xl self-center @md:hidden"
45
+ className="block self-center @md:hidden"
41
46
  image={{ icon: 'GosUslugiIcon', iconVersion: 'normal' }}
42
47
  height="80"
43
48
  width="80"
@@ -64,10 +64,6 @@ const DEBIT_CARD_CONSENTS: Record<keyof DebitCardFormConsents, ConsentData> = {
64
64
  text: 'Согласие на информирование о продуктах и услугах Банка',
65
65
  docId: 14,
66
66
  },
67
- consentProviderFlg: {
68
- text: 'Согласие об использовании простой электронной подписи',
69
- docId: 5,
70
- },
71
67
  consentOthersFlg: {
72
68
  text: 'Прочие согласия',
73
69
  docId: 20,
@@ -8,11 +8,15 @@ import { type SubmitButtonProps } from './ApplicationLeadFormContent';
8
8
  import { Footnote } from './Footnote';
9
9
  import { renderSubmitButton } from './renderSubmitButton';
10
10
 
11
- export const renderAgreementSubmit = (
12
- consentDataProcessing?: FieldProps<boolean>,
13
- link?: LinkProps,
14
- button?: SubmitButtonProps,
15
- ) => (
11
+ export const renderAgreementSubmit = ({
12
+ consentDataProcessing,
13
+ link,
14
+ button,
15
+ }: {
16
+ consentDataProcessing?: FieldProps<boolean>;
17
+ link?: LinkProps;
18
+ button?: SubmitButtonProps;
19
+ }) => (
16
20
  <div className="flex col-span-2 gap-xs flex-col w-full items-baseline">
17
21
  <div>
18
22
  <div className="flex gap-3 items-center">
@@ -41,7 +41,12 @@ export const DebitForm = UniBlock<DebitFormProps>(({ className, ...rest }) => {
41
41
  const sections = stepsSectionsMap[step];
42
42
  const isStartStep = step === 0;
43
43
 
44
- const [isFormFinished, { setTrue: handleFinish }] = useBool(false);
44
+ const [isFormFinished, { setTrue: setIsFormFinished }] = useBool(false);
45
+
46
+ const handleFinish = useCallback(() => {
47
+ setIsFormFinished();
48
+ scrollToTop();
49
+ }, []);
45
50
 
46
51
  return (
47
52
  <BlockWrapper className={className} {...rest}>
@@ -1,6 +1,109 @@
1
- import { DELIVERY_CARD_CONTENT, PERSONAL_DATA } from '../../retail/content';
1
+ /* eslint-disable max-lines */
2
+ import { PERSONAL_DATA } from '../../retail/content';
2
3
  import { type SectionsRetailProps } from '../../retail/model/InputSectionsType';
3
4
 
5
+ export const DELIVERY_DEBIT_CARD_CONTENT: SectionsRetailProps[] = [
6
+ {
7
+ title: 'Регион обслуживания карты',
8
+ columns: 1,
9
+ inputs: [],
10
+ },
11
+ {
12
+ inputs: [
13
+ {
14
+ name: 'regionRetail',
15
+ required: true,
16
+ },
17
+ ],
18
+ },
19
+ {
20
+ title: 'Способ получения',
21
+ columns: 1,
22
+ inputs: [],
23
+ condition: {
24
+ name: 'regionHasDelivery',
25
+ values: [true],
26
+ },
27
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ name: 'methodObtain',
32
+ condition: {
33
+ name: 'regionHasDelivery',
34
+ values: [true],
35
+ },
36
+ },
37
+ ],
38
+ },
39
+ {
40
+ title: 'Выбор офиса',
41
+ columns: 1,
42
+ inputs: [],
43
+ condition: {
44
+ name: 'methodObtain',
45
+ values: ['office'],
46
+ },
47
+ },
48
+ {
49
+ title: 'Адрес доставки',
50
+ columns: 1,
51
+ inputs: [],
52
+ condition: {
53
+ name: 'methodObtain',
54
+ values: ['courier'],
55
+ },
56
+ },
57
+ {
58
+ inputs: [
59
+ {
60
+ name: 'addressCourier',
61
+ dadata: true,
62
+ condition: {
63
+ name: 'methodObtain',
64
+ values: ['courier'],
65
+ },
66
+ required: true,
67
+ },
68
+ ],
69
+ },
70
+ {
71
+ inputs: [
72
+ {
73
+ name: 'infoCard',
74
+ condition: {
75
+ name: 'methodObtain',
76
+ values: ['courier'],
77
+ },
78
+ label: 'Ожидайте звонка для согласования даты и времени доставки карты',
79
+ },
80
+ ],
81
+ },
82
+ {
83
+ inputs: [
84
+ {
85
+ name: 'comment',
86
+ condition: {
87
+ name: 'methodObtain',
88
+ values: ['courier'],
89
+ },
90
+ },
91
+ ],
92
+ },
93
+ {
94
+ inputs: [
95
+ {
96
+ name: 'addressRetail',
97
+ required: true,
98
+ condition: {
99
+ name: 'methodObtain',
100
+ values: ['office'],
101
+ },
102
+ },
103
+ ],
104
+ },
105
+ ];
106
+
4
107
  const DEBIT_PERSONAL_INFO_CONTENT: SectionsRetailProps[] = [
5
108
  ...PERSONAL_DATA,
6
109
  {
@@ -22,9 +125,23 @@ const DEBIT_PERSONAL_INFO_CONTENT: SectionsRetailProps[] = [
22
125
  {
23
126
  title: 'Адрес фактического проживания (место пребывания РФ)',
24
127
  inputs: [],
128
+ condition: {
129
+ name: 'addressMatch',
130
+ values: [false],
131
+ },
25
132
  },
26
133
  {
27
- inputs: [{ name: 'addressFact', required: true, dadata: true }],
134
+ inputs: [
135
+ {
136
+ name: 'addressFact',
137
+ required: true,
138
+ dadata: true,
139
+ condition: {
140
+ name: 'addressMatch',
141
+ values: [false],
142
+ },
143
+ },
144
+ ],
28
145
  },
29
146
  ];
30
147
  const DEBIT_CARD_CONTENT: SectionsRetailProps[] = [
@@ -55,6 +172,9 @@ const DEBIT_CARD_CONTENT: SectionsRetailProps[] = [
55
172
  },
56
173
  ],
57
174
  },
175
+ {
176
+ inputs: [{ name: 'codeWord', required: true }],
177
+ },
58
178
  {
59
179
  inputs: [
60
180
  {
@@ -65,13 +185,10 @@ const DEBIT_CARD_CONTENT: SectionsRetailProps[] = [
65
185
  },
66
186
  ],
67
187
  },
68
- {
69
- inputs: [{ name: 'codeWord', required: true }],
70
- },
71
188
  ];
72
189
 
73
190
  export const stepsSectionsMap: SectionsRetailProps[][] = [
74
- DELIVERY_CARD_CONTENT,
191
+ DELIVERY_DEBIT_CARD_CONTENT,
75
192
  DEBIT_PERSONAL_INFO_CONTENT,
76
193
  DEBIT_CARD_CONTENT,
77
194
  ];
@@ -30,6 +30,7 @@ export const formStateMap: Partial<LeadFormState>[] = [
30
30
  fullAddress: '',
31
31
  fiasCode: '',
32
32
  },
33
+ addressMatch: true,
33
34
  addressFact: {
34
35
  fullAddress: '',
35
36
  fiasCode: '',
@@ -7,4 +7,6 @@ export const debitProgrammIdToCardCodesMap = {
7
7
  42: 'eco_debit_card',
8
8
  43: 'junior_debit_card',
9
9
  44: 'appetit_debit_card',
10
+ 46: 'owner_debit_card_plus',
11
+ 47: 'owner_debit_card_pens_plus',
10
12
  };
@@ -48,7 +48,10 @@ export const getPersonalInfoData = (formData: LeadFormState): Partial<Participan
48
48
  phone: formatPhone(phone),
49
49
  email,
50
50
  }),
51
- participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
51
+ participantAddresses: getParticipantAddresses({
52
+ addressRegistration,
53
+ addressFact: addressMatch ? addressRegistration : addressFact,
54
+ }),
52
55
  genderCd: sex
53
56
  ? {
54
57
  key: sex === 'male' ? 'MAN' : 'WOMAN',