@redneckz/wildless-cms-uni-blocks 0.14.26 → 0.14.27

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 (439) hide show
  1. package/bin/migration-scripts/0.14.26.js +3 -1
  2. package/bin/migration-scripts/0.14.27.js +38 -0
  3. package/bundle/api/{CorporateLeadAPI.d.ts → LeadServiceAPI.d.ts} +2 -2
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +258 -216
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  8. package/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  9. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  10. package/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  11. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  12. package/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
  13. package/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  14. package/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  15. package/bundle/components/CarouselCard/titleSize.d.ts +1 -1
  16. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  17. package/bundle/icons/IconName.d.ts +4 -2
  18. package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  19. package/cosmos-static/icons/DzenIcon.svg +1 -0
  20. package/{lib/api/CorporateLeadAPI.d.ts → dist/api/LeadServiceAPI.d.ts} +2 -2
  21. package/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
  22. package/dist/api/LeadServiceAPI.js.map +1 -0
  23. package/dist/components/ApplicationForm/ApplicationForm.js +4 -4
  24. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  25. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  26. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  27. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  28. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  29. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  30. package/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  31. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
  32. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  33. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  34. package/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  35. package/dist/components/ApplicationForm/DatePickerControl.js +8 -0
  36. package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
  37. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  38. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  39. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  40. package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  41. package/dist/components/ApplicationForm/Footnote.js +1 -1
  42. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  43. package/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  44. package/dist/components/{Tile/TileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
  45. package/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  46. package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  47. package/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
  48. package/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  49. package/dist/components/Blocks.js +0 -2
  50. package/dist/components/Blocks.js.map +1 -1
  51. package/dist/components/Blocks.mobile.js +0 -2
  52. package/dist/components/Blocks.mobile.js.map +1 -1
  53. package/dist/components/Calculator/Calculator.mobile.js +4 -4
  54. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  55. package/dist/components/Carousel/renderCarouselCards.js +1 -1
  56. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  57. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  58. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  59. package/dist/components/CarouselCard/titleSize.d.ts +1 -1
  60. package/dist/components/CarouselCard/titleSize.js +1 -1
  61. package/dist/components/CarouselCard/titleSize.js.map +1 -1
  62. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  63. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  64. package/dist/components/Footer/Footer.mobile.js +2 -2
  65. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  66. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -1
  67. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  68. package/dist/components/Footer/SocialMedia.js +3 -3
  69. package/dist/components/Footer/SocialMedia.js.map +1 -1
  70. package/dist/components/Footer/iconsMap.js +4 -0
  71. package/dist/components/Footer/iconsMap.js.map +1 -1
  72. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  73. package/dist/components/ProductBlock/ProductBlock.js +1 -3
  74. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  75. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  76. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  77. package/dist/icons/IconName.d.ts +4 -2
  78. package/dist/icons/IconName.js +2 -0
  79. package/dist/icons/IconName.js.map +1 -1
  80. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  81. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  82. package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  83. package/dist/ui-kit/DatePicker/DatePicker.js +4 -4
  84. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  85. package/dist/ui-kit/DatePicker/getYears.js +1 -1
  86. package/dist/ui-kit/Input/Input.js +1 -1
  87. package/dist/ui-kit/Input/Input.js.map +1 -1
  88. package/dist/ui-kit/NotFound/NotFound.js +1 -1
  89. package/dist/ui-kit/NotFound/NotFound.js.map +1 -1
  90. package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  91. package/dist/ui-kit/Select/Select.js +1 -1
  92. package/dist/ui-kit/Select/Select.js.map +1 -1
  93. package/{mobile/bundle/api/CorporateLeadAPI.d.ts → lib/api/LeadServiceAPI.d.ts} +2 -2
  94. package/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
  95. package/lib/api/LeadServiceAPI.js.map +1 -0
  96. package/lib/common.css +1 -1
  97. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  98. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  99. package/lib/components/ApplicationForm/ApplicationForm.js +4 -4
  100. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  101. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  102. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  103. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  105. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  106. package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  107. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
  108. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  109. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  110. package/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  111. package/lib/components/ApplicationForm/DatePickerControl.js +6 -0
  112. package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
  113. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  114. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  115. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  116. package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  117. package/lib/components/ApplicationForm/Footnote.js +1 -1
  118. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  119. package/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  120. package/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
  121. package/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  122. package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +3 -0
  123. package/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
  124. package/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  125. package/lib/components/Blocks.js +0 -2
  126. package/lib/components/Blocks.js.map +1 -1
  127. package/lib/components/Blocks.mobile.js +0 -2
  128. package/lib/components/Blocks.mobile.js.map +1 -1
  129. package/lib/components/Calculator/Calculator.mobile.js +4 -4
  130. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  131. package/lib/components/Carousel/renderCarouselCards.js +1 -1
  132. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  133. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  134. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  135. package/lib/components/CarouselCard/titleSize.d.ts +1 -1
  136. package/lib/components/CarouselCard/titleSize.js +1 -1
  137. package/lib/components/CarouselCard/titleSize.js.map +1 -1
  138. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  139. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  140. package/lib/components/Footer/Footer.mobile.js +2 -2
  141. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  142. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -1
  143. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  144. package/lib/components/Footer/SocialMedia.js +3 -3
  145. package/lib/components/Footer/SocialMedia.js.map +1 -1
  146. package/lib/components/Footer/iconsMap.js +4 -0
  147. package/lib/components/Footer/iconsMap.js.map +1 -1
  148. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  149. package/lib/components/ProductBlock/ProductBlock.js +1 -3
  150. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  151. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  152. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  153. package/lib/icons/IconName.d.ts +4 -2
  154. package/lib/icons/IconName.js +2 -0
  155. package/lib/icons/IconName.js.map +1 -1
  156. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  157. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  158. package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  159. package/lib/ui-kit/DatePicker/DatePicker.js +4 -4
  160. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  161. package/lib/ui-kit/DatePicker/getYears.js +1 -1
  162. package/lib/ui-kit/Input/Input.js +1 -1
  163. package/lib/ui-kit/Input/Input.js.map +1 -1
  164. package/lib/ui-kit/NotFound/NotFound.js +1 -1
  165. package/lib/ui-kit/NotFound/NotFound.js.map +1 -1
  166. package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  167. package/lib/ui-kit/Select/Select.js +1 -1
  168. package/lib/ui-kit/Select/Select.js.map +1 -1
  169. package/{dist/api/CorporateLeadAPI.d.ts → mobile/bundle/api/LeadServiceAPI.d.ts} +2 -2
  170. package/mobile/bundle/bundle.umd.js +263 -68
  171. package/mobile/bundle/bundle.umd.min.js +1 -1
  172. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  173. package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  174. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  175. package/mobile/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  176. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  177. package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
  178. package/mobile/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  179. package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  180. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  181. package/mobile/bundle/icons/IconName.d.ts +4 -2
  182. package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  183. package/mobile/dist/api/LeadServiceAPI.d.ts +15 -0
  184. package/mobile/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
  185. package/mobile/dist/api/LeadServiceAPI.js.map +1 -0
  186. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -4
  187. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  188. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  189. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  190. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  191. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  192. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  194. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
  195. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  196. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  197. package/mobile/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  198. package/mobile/dist/components/ApplicationForm/DatePickerControl.js +8 -0
  199. package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
  200. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  201. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  202. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  203. package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  204. package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
  205. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  206. package/mobile/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  207. package/mobile/dist/components/{Tile/TileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
  208. package/mobile/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  209. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  210. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
  211. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  212. package/mobile/dist/components/Blocks.js +0 -2
  213. package/mobile/dist/components/Blocks.js.map +1 -1
  214. package/mobile/dist/components/Calculator/Calculator.js +4 -4
  215. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  216. package/mobile/dist/components/Carousel/renderCarouselCards.js +1 -1
  217. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  218. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  219. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  220. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  221. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  222. package/mobile/dist/components/Footer/Footer.js +2 -2
  223. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  224. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -1
  225. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  226. package/mobile/dist/components/Footer/SocialMedia.js +3 -3
  227. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  228. package/mobile/dist/components/Footer/iconsMap.js +4 -0
  229. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  230. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  231. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -3
  232. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  233. package/mobile/dist/icons/IconName.d.ts +4 -2
  234. package/mobile/dist/icons/IconName.js +2 -0
  235. package/mobile/dist/icons/IconName.js.map +1 -1
  236. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  237. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  238. package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  239. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +4 -4
  240. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  241. package/mobile/dist/ui-kit/DatePicker/getYears.js +1 -1
  242. package/mobile/dist/ui-kit/Input/Input.js +1 -1
  243. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  244. package/mobile/dist/ui-kit/NotFound/NotFound.js +1 -1
  245. package/mobile/dist/ui-kit/NotFound/NotFound.js.map +1 -1
  246. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  247. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  248. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  249. package/mobile/lib/api/LeadServiceAPI.d.ts +15 -0
  250. package/mobile/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
  251. package/mobile/lib/api/LeadServiceAPI.js.map +1 -0
  252. package/mobile/lib/common.css +1 -1
  253. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -4
  254. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  255. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  256. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  257. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  258. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  259. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  260. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  261. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
  262. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  263. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  264. package/mobile/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  265. package/mobile/lib/components/ApplicationForm/DatePickerControl.js +6 -0
  266. package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
  267. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  268. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  269. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  270. package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  271. package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
  272. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  273. package/mobile/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  274. package/mobile/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
  275. package/mobile/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  276. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  277. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
  278. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  279. package/mobile/lib/components/Blocks.js +0 -2
  280. package/mobile/lib/components/Blocks.js.map +1 -1
  281. package/mobile/lib/components/Calculator/Calculator.js +4 -4
  282. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  283. package/mobile/lib/components/Carousel/renderCarouselCards.js +1 -1
  284. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  285. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  286. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  287. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  288. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  289. package/mobile/lib/components/Footer/Footer.js +2 -2
  290. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  291. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -1
  292. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  293. package/mobile/lib/components/Footer/SocialMedia.js +3 -3
  294. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  295. package/mobile/lib/components/Footer/iconsMap.js +4 -0
  296. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  297. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -0
  298. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -3
  299. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  300. package/mobile/lib/icons/IconName.d.ts +4 -2
  301. package/mobile/lib/icons/IconName.js +2 -0
  302. package/mobile/lib/icons/IconName.js.map +1 -1
  303. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  304. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  305. package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  306. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +4 -4
  307. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  308. package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
  309. package/mobile/lib/ui-kit/Input/Input.js +1 -1
  310. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  311. package/mobile/lib/ui-kit/NotFound/NotFound.js +1 -1
  312. package/mobile/lib/ui-kit/NotFound/NotFound.js.map +1 -1
  313. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  314. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  315. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  316. package/mobile/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
  317. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
  318. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
  319. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
  320. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
  321. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  322. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
  323. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  324. package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
  325. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  326. package/mobile/src/components/ApplicationForm/Footnote.tsx +3 -2
  327. package/mobile/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
  328. package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
  329. package/mobile/src/components/Blocks.ts +0 -2
  330. package/mobile/src/components/Calculator/Calculator.tsx +5 -7
  331. package/mobile/src/components/Carousel/renderCarouselCards.tsx +1 -1
  332. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
  333. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  334. package/mobile/src/components/Footer/Footer.tsx +7 -5
  335. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -1
  336. package/mobile/src/components/Footer/SocialMedia.tsx +8 -8
  337. package/mobile/src/components/Footer/iconsMap.ts +4 -0
  338. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
  339. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
  340. package/mobile/src/components/ProductBlock/ProductBlock.tsx +1 -6
  341. package/mobile/src/components/ProductGallery/ProductGallery.example.json +1 -1
  342. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
  343. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
  344. package/mobile/src/icons/DzenIcon.svg +4 -0
  345. package/mobile/src/icons/IconName.ts +4 -4
  346. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
  347. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
  348. package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
  349. package/mobile/src/ui-kit/Input/Input.tsx +1 -1
  350. package/mobile/src/ui-kit/NotFound/NotFound.tsx +1 -1
  351. package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  352. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  353. package/package.json +1 -1
  354. package/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
  355. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +14 -0
  356. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  357. package/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
  358. package/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
  359. package/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
  360. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
  361. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  362. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
  363. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  364. package/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
  365. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  366. package/src/components/ApplicationForm/Footnote.tsx +3 -2
  367. package/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
  368. package/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
  369. package/src/components/Blocks.mobile.ts +0 -2
  370. package/src/components/Blocks.ts +0 -2
  371. package/src/components/Calculator/Calculator.mobile.tsx +5 -7
  372. package/src/components/Carousel/renderCarouselCards.tsx +1 -1
  373. package/src/components/CarouselCard/CarouselCard.tsx +1 -1
  374. package/src/components/CarouselCard/titleSize.tsx +1 -1
  375. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  376. package/src/components/Footer/Footer.mobile.tsx +7 -5
  377. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -1
  378. package/src/components/Footer/SocialMedia.tsx +8 -8
  379. package/src/components/Footer/iconsMap.ts +4 -0
  380. package/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
  381. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -0
  382. package/src/components/ProductBlock/ProductBlock.tsx +1 -6
  383. package/src/components/ProductGallery/ProductGallery.example.json +1 -1
  384. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  385. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
  386. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
  387. package/src/icons/DzenIcon.svg +4 -0
  388. package/src/icons/IconName.ts +4 -1
  389. package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
  390. package/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
  391. package/src/ui-kit/DatePicker/getYears.ts +1 -1
  392. package/src/ui-kit/Input/Input.tsx +1 -1
  393. package/src/ui-kit/NotFound/NotFound.tsx +1 -1
  394. package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  395. package/src/ui-kit/Select/Select.tsx +1 -1
  396. package/bundle/components/Tile/Tile.d.ts +0 -5
  397. package/bundle/components/Tile/TileContent.d.ts +0 -6
  398. package/dist/api/CorporateLeadAPI.js.map +0 -1
  399. package/dist/components/Tile/Tile.d.ts +0 -5
  400. package/dist/components/Tile/Tile.js +0 -8
  401. package/dist/components/Tile/Tile.js.map +0 -1
  402. package/dist/components/Tile/TileContent.d.ts +0 -6
  403. package/dist/components/Tile/TileContent.js.map +0 -1
  404. package/lib/api/CorporateLeadAPI.js.map +0 -1
  405. package/lib/components/Tile/Tile.d.ts +0 -5
  406. package/lib/components/Tile/Tile.fixture.d.ts +0 -15
  407. package/lib/components/Tile/Tile.fixture.mobile.d.ts +0 -9
  408. package/lib/components/Tile/Tile.js +0 -6
  409. package/lib/components/Tile/Tile.js.map +0 -1
  410. package/lib/components/Tile/TileContent.d.ts +0 -6
  411. package/lib/components/Tile/TileContent.js +0 -2
  412. package/lib/components/Tile/TileContent.js.map +0 -1
  413. package/mobile/bundle/components/Tile/Tile.d.ts +0 -5
  414. package/mobile/bundle/components/Tile/TileContent.d.ts +0 -6
  415. package/mobile/dist/api/CorporateLeadAPI.d.ts +0 -15
  416. package/mobile/dist/api/CorporateLeadAPI.js.map +0 -1
  417. package/mobile/dist/components/Tile/Tile.d.ts +0 -5
  418. package/mobile/dist/components/Tile/Tile.js +0 -8
  419. package/mobile/dist/components/Tile/Tile.js.map +0 -1
  420. package/mobile/dist/components/Tile/TileContent.d.ts +0 -6
  421. package/mobile/dist/components/Tile/TileContent.js.map +0 -1
  422. package/mobile/lib/api/CorporateLeadAPI.d.ts +0 -15
  423. package/mobile/lib/api/CorporateLeadAPI.js.map +0 -1
  424. package/mobile/lib/components/Tile/Tile.d.ts +0 -5
  425. package/mobile/lib/components/Tile/Tile.js +0 -6
  426. package/mobile/lib/components/Tile/Tile.js.map +0 -1
  427. package/mobile/lib/components/Tile/TileContent.d.ts +0 -6
  428. package/mobile/lib/components/Tile/TileContent.js +0 -2
  429. package/mobile/lib/components/Tile/TileContent.js.map +0 -1
  430. package/mobile/src/components/Tile/Tile.example.json +0 -28
  431. package/mobile/src/components/Tile/Tile.tsx +0 -23
  432. package/mobile/src/components/Tile/Tile.ui.json +0 -17
  433. package/mobile/src/components/Tile/TileContent.ts +0 -7
  434. package/src/components/Tile/Tile.example.json +0 -28
  435. package/src/components/Tile/Tile.fixture.mobile.tsx +0 -48
  436. package/src/components/Tile/Tile.fixture.tsx +0 -146
  437. package/src/components/Tile/Tile.tsx +0 -23
  438. package/src/components/Tile/Tile.ui.json +0 -17
  439. package/src/components/Tile/TileContent.ts +0 -7
@@ -243,10 +243,11 @@
243
243
  return JSXTmpl;
244
244
  };
245
245
 
246
- function CorporateLeadAPI() {
247
- async function send(body) {
246
+ function LeadServiceAPI() {
247
+ async function send(body, isIndividualType) {
248
+ const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
248
249
  try {
249
- const response = await fetch('/api/v1/sendcorporatelead', {
250
+ const response = await fetch(url, {
250
251
  method: 'POST',
251
252
  headers: { 'Content-Type': 'application/json' },
252
253
  mode: 'cors',
@@ -692,7 +693,7 @@
692
693
 
693
694
  const Text = JSX(({ children, ...styleProps }) => (jsx("span", { className: style('font-sans', Object.values(styleProps)), children: children })));
694
695
 
695
- const Footnote = JSX(({ link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443, \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
696
+ const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
696
697
 
697
698
  const withValidator = (props, validator) => {
698
699
  const { value, isDirty } = props;
@@ -718,7 +719,7 @@
718
719
  const validStyle = valid
719
720
  ? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
720
721
  : 'border-error';
721
- return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx("input", { ref: inputRef, className: style('w-full border rounded-md text-primary-text outline-none p-m', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
722
+ return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx("input", { ref: inputRef, className: style('w-full h-14 border rounded-md text-primary-text outline-none p-m', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
722
723
  });
723
724
 
724
725
  const InputControl = JSX(({ className, label, value = '', error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(Input, { type: "text", "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
@@ -894,7 +895,7 @@
894
895
  onChange,
895
896
  onClose: handleClose,
896
897
  });
897
- return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
898
+ return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
898
899
  });
899
900
  const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
900
901
  const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
@@ -916,7 +917,7 @@
916
917
  return (jsx("button", { type: "submit", className: style('p-m w-full @xl:w-auto', buttonStyle, className), children: button?.text ? button.text : 'Отправить заявку' }));
917
918
  };
918
919
 
919
- const initialFormState$4 = {
920
+ const initialFormState$5 = {
920
921
  acquiringType: { key: 'Торговый эквайринг' },
921
922
  fullName: '',
922
923
  inn: '',
@@ -948,7 +949,7 @@
948
949
  phone: phone.replace(/[^+\d]/g, ''),
949
950
  });
950
951
  }, [onSubmit]);
951
- const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
952
+ const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
952
953
  const regions = useGetRegions();
953
954
  return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430 \u0438 \u0440\u0435\u0433\u0438\u043E\u043D", className: "@xl:text-center" }), renderAcquiringRegion({ regions, field }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderAcquiringDataOrganization(field), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
954
955
  });
@@ -957,7 +958,7 @@
957
958
 
958
959
  const renderRegion$1 = ({ regions, field }) => (jsx(SelectControl, { className: "w-full", label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
959
960
 
960
- const initialFormState$3 = {
961
+ const initialFormState$4 = {
961
962
  name: '',
962
963
  phone: '',
963
964
  inn: '',
@@ -984,7 +985,7 @@
984
985
  phone: phone.replace(/[^+\d]/g, ''),
985
986
  });
986
987
  }, [onSubmit]);
987
- const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
988
+ const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
988
989
  const regions = useGetRegions();
989
990
  return (jsxs("form", { className: "container space-y-s", onSubmit: formProps.onSubmit, children: [renderRegion$1({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
990
991
  });
@@ -1079,7 +1080,7 @@
1079
1080
  text: address,
1080
1081
  })), ...withValidator(field('department'), defaultValidator) }) })] }));
1081
1082
 
1082
- const initialFormState$2 = {
1083
+ const initialFormState$3 = {
1083
1084
  amount: MIN_CREDIT_AMOUNT,
1084
1085
  term: 12,
1085
1086
  fullName: '',
@@ -1114,13 +1115,13 @@
1114
1115
  partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
1115
1116
  });
1116
1117
  }, [onSubmit]);
1117
- const [formState, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1118
+ const [formState, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
1118
1119
  const regions = useGetRegions();
1119
1120
  const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
1120
1121
  return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B", className: "@xl:text-center" }), renderCreditParameters(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderCreditDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "@xl:text-center" }), renderRegionDepartment({ regions, branches, field }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1121
1122
  });
1122
1123
 
1123
- const initialFormState$1 = {
1124
+ const initialFormState$2 = {
1124
1125
  name: '',
1125
1126
  phone: '',
1126
1127
  };
@@ -1128,8 +1129,7 @@
1128
1129
  name: nameValidator,
1129
1130
  phone: phoneValidator,
1130
1131
  });
1131
- const ApplicationFormDeposit = JSX((props) => {
1132
- const { button, link, onSubmit } = props;
1132
+ const ApplicationFormDeposit = JSX(({ button, link, onSubmit }) => {
1133
1133
  const handleSubmit = useCallback((formState) => {
1134
1134
  const { name, phone } = formState;
1135
1135
  isValidationSuccess(depositValidator(formState)) &&
@@ -1139,7 +1139,7 @@
1139
1139
  phone: phone.replace(/[^+\d]/g, ''),
1140
1140
  });
1141
1141
  }, [onSubmit]);
1142
- const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1142
+ const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1143
1143
  return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "@xl:text-center mb-m" }), jsxs("div", { className: "max-w-[560px] m-auto space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse @xl:items-center @xl:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1144
1144
  });
1145
1145
 
@@ -1163,7 +1163,227 @@
1163
1163
  version: button?.version,
1164
1164
  });
1165
1165
  const regionHref = regions?.find((_) => _.name === region.key)?.href;
1166
- return (jsxs("div", { className: "container space-y-s @xl:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1166
+ return (jsxs("div", { className: "container space-y-s @xl:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1167
+ });
1168
+
1169
+ const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1170
+ return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
1171
+ });
1172
+
1173
+ const CHECK_PATHS = [
1174
+ {
1175
+ d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1176
+ fillRule: 'evenodd',
1177
+ clipRule: 'evenodd',
1178
+ fill: 'white',
1179
+ },
1180
+ ];
1181
+ const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1182
+ const handleChange = useCallback((e) => {
1183
+ if (disabled) {
1184
+ return;
1185
+ }
1186
+ e.preventDefault();
1187
+ onChange && onChange(!value);
1188
+ }, [onChange, disabled, value]);
1189
+ const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1190
+ return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
1191
+ });
1192
+ const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1193
+
1194
+ const formatDate = (date, toTimeStamp = false) => {
1195
+ if (typeof date === 'string') {
1196
+ return date.split('-').reverse().join('.');
1197
+ }
1198
+ else {
1199
+ const day = String(date.getDate()).padStart(2, '0');
1200
+ const month = String(date.getMonth() + 1).padStart(2, '0');
1201
+ const year = toTimeStamp ? String(date.getFullYear()) : String(date.getFullYear()).slice(-2);
1202
+ return toTimeStamp ? `${year}-${month}-${day}` : `${day}.${month}.${year}`;
1203
+ }
1204
+ };
1205
+
1206
+ const noop = () => {
1207
+ // Do nothing
1208
+ };
1209
+
1210
+ const DAY_COUNT = 6;
1211
+ const WEEK_COUNT = 7;
1212
+ const renderCalendarCells = ({ today, firstDayOfWeek, totalDays, currentMonth, currentYear, min, max, onDateClick, }) => {
1213
+ const calendarCells = [];
1214
+ let dayCounter = 1;
1215
+ for (let i = 0; i < DAY_COUNT; i++) {
1216
+ const rowCells = [];
1217
+ for (let j = 0; j < WEEK_COUNT; j++) {
1218
+ if (i === 0 && j < firstDayOfWeek) {
1219
+ rowCells.push(jsx("td", {}, `empty-${j}`));
1220
+ }
1221
+ else if (dayCounter > totalDays) {
1222
+ rowCells.push(jsx("td", {}, `empty-${j}`));
1223
+ }
1224
+ else {
1225
+ const currentDate = new Date(currentYear, currentMonth, dayCounter);
1226
+ const isToday = checkIsToday(currentDate, today);
1227
+ const isDisabled = checkIsDisabled(currentDate, min, max);
1228
+ rowCells.push(jsx("td", { children: jsx("div", { className: getDayStyles(isToday, isDisabled), onClick: () => !isDisabled && onDateClick(currentDate), children: dayCounter }) }, `day-${dayCounter}`));
1229
+ dayCounter++;
1230
+ }
1231
+ }
1232
+ calendarCells.push(jsx("tr", { children: rowCells }, `row-${i}`));
1233
+ }
1234
+ return calendarCells;
1235
+ };
1236
+ const checkIsToday = (currentDate, today) => today && currentDate.toDateString() === today.toDateString();
1237
+ const checkIsDisabled = (currentDate, min, max) => (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
1238
+ const getDayStyles = (isToday, isDisabled) => style('p-s text-center rounded-md border', isToday ? '' : 'border-transparent hover:bg-gray', isDisabled ? 'text-gray hover:bg-transparent' : 'cursor-pointer');
1239
+
1240
+ const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
1241
+ const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop }) => {
1242
+ const handleDateClick = useCallback((date) => onDateSelect(date), []);
1243
+ const { firstDayOfWeek, totalDays } = useMemo(() => ({
1244
+ firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
1245
+ totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
1246
+ }), [currentYear, currentMonth]);
1247
+ return (jsxs("table", { className: "mx-auto", children: [jsx("thead", { className: "text-gray font-light", children: jsx("tr", { children: WEEK_DAYS.map((day, index) => (jsx("th", { className: "p-s", children: day }, String(index)))) }) }), jsx("tbody", { children: renderCalendarCells({
1248
+ firstDayOfWeek,
1249
+ today,
1250
+ totalDays,
1251
+ currentYear,
1252
+ currentMonth,
1253
+ min,
1254
+ max,
1255
+ onDateClick: handleDateClick,
1256
+ }) })] }));
1257
+ });
1258
+
1259
+ const months = [
1260
+ 'Январь',
1261
+ 'Февраль',
1262
+ 'Март',
1263
+ 'Апрель',
1264
+ 'Май',
1265
+ 'Июнь',
1266
+ 'Июль',
1267
+ 'Август',
1268
+ 'Сентябрь',
1269
+ 'Октябрь',
1270
+ 'Ноябрь',
1271
+ 'Декабрь',
1272
+ ];
1273
+
1274
+ const START_YEAR = 1940;
1275
+ const getYears = () => Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
1276
+
1277
+ const MONTHS_COUNT = 11;
1278
+ const MONTHS_OPTIONS = months.map((key) => ({ key }));
1279
+ const YEARS_OPTIONS = getYears()
1280
+ .reverse()
1281
+ .map((key) => ({ key: String(key) }));
1282
+ const useDatePickerManager = ({ onShowCalendar, showCalendar, selectedMonth, onMonthSelect, onYearSelect, selectedYear, }) => {
1283
+ const close = useCallback(() => showCalendar && onShowCalendar(false), [showCalendar]);
1284
+ const ref = useOutsideClick(close);
1285
+ const handleChangeVisibleCalendar = useCallback(() => onShowCalendar(!showCalendar), [showCalendar]);
1286
+ const handleNextMonth = useCallback(() => {
1287
+ if (selectedMonth + 1 <= MONTHS_COUNT) {
1288
+ onMonthSelect(selectedMonth + 1);
1289
+ }
1290
+ else {
1291
+ onMonthSelect(0);
1292
+ onYearSelect(selectedYear + 1);
1293
+ }
1294
+ }, [selectedMonth]);
1295
+ const handlePrevMonth = useCallback(() => {
1296
+ if (selectedMonth - 1 >= 0) {
1297
+ onMonthSelect(selectedMonth - 1);
1298
+ }
1299
+ else {
1300
+ onMonthSelect(11);
1301
+ onYearSelect(selectedYear - 1);
1302
+ }
1303
+ }, [selectedMonth]);
1304
+ const handleSelectMonth = useCallback(({ key }) => onMonthSelect(months.indexOf(key)), []);
1305
+ const handleSelectYear = useCallback(({ key }) => onYearSelect(Number(key)), []);
1306
+ return {
1307
+ handleChangeVisibleCalendar,
1308
+ handleNextMonth,
1309
+ handlePrevMonth,
1310
+ handleSelectMonth,
1311
+ handleSelectYear,
1312
+ monthsOptions: MONTHS_OPTIONS,
1313
+ yearsOptions: YEARS_OPTIONS,
1314
+ ref,
1315
+ };
1316
+ };
1317
+
1318
+ const ICON_PROPS = {
1319
+ name: 'ArrowUpIcon',
1320
+ iconVersion: 'black',
1321
+ width: '24',
1322
+ height: '24',
1323
+ };
1324
+ const SELECT_PROPS = {
1325
+ className: 'min-w-32',
1326
+ iconVersion: 'black',
1327
+ isBorder: false,
1328
+ };
1329
+ const formStyle = 'flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer ' +
1330
+ 'hover:border-black active:border-black focus:border-black';
1331
+ const DatePicker = JSX(({ className = '', label = '', value, valid = true, minDate, maxDate, onChange }) => {
1332
+ const [showCalendar, { setValue }] = useBool(false);
1333
+ const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
1334
+ const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
1335
+ const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
1336
+ onYearSelect: setSelectedYear,
1337
+ onMonthSelect: setSelectedMonth,
1338
+ onShowCalendar: setValue,
1339
+ selectedYear,
1340
+ selectedMonth,
1341
+ showCalendar,
1342
+ });
1343
+ return (jsxs("div", { className: style(className, 'relative'), ref: ref, children: [jsx(Text, { size: "text-m", children: label }), renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-10 select-none", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] }));
1344
+ });
1345
+ const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
1346
+
1347
+ const DatePickerControl = JSX(({ className, label, value = undefined, error, onChange }) => (jsxs("div", { className: className, children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx(DatePicker, { value: value, onChange: onChange, valid: Boolean(!error) }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
1348
+
1349
+ const renderIndividualsFields = (field) => (jsxs("div", { className: "@xl:flex @xl:justify-between @xl:gap-lg", children: [jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E", ...withValidator(field('middleName'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { className: "shrink-0 w-full", label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...withValidator(field('date'), defaultValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
1350
+
1351
+ const initialFormState$1 = {
1352
+ surname: '',
1353
+ name: '',
1354
+ middleName: '',
1355
+ phone: '',
1356
+ mail: '',
1357
+ date: undefined,
1358
+ consentDataProcessing: true,
1359
+ };
1360
+ const individualsValidator = objectValidator({
1361
+ surname: nameValidator,
1362
+ name: nameValidator,
1363
+ middleName: nameValidator,
1364
+ phone: phoneValidator,
1365
+ mail: defaultValidator,
1366
+ date: defaultValidator,
1367
+ });
1368
+ const ApplicationFormIndividuals = JSX((props) => {
1369
+ const { button, link, product, onSubmit } = props;
1370
+ const handleSubmit = useCallback((formState) => {
1371
+ const { surname, name, middleName, phone, mail, date, consentDataProcessing } = formState;
1372
+ isValidationSuccess(individualsValidator(formState)) &&
1373
+ onSubmit({
1374
+ typeForm: 'dpst',
1375
+ surname,
1376
+ name,
1377
+ middleName,
1378
+ mail,
1379
+ consentDataProcessing,
1380
+ phone: phone.replace(/[^+\d]/g, ''),
1381
+ date: date?.toISOString().slice(0, 10) || '',
1382
+ product: product || '',
1383
+ }, true);
1384
+ }, [onSubmit]);
1385
+ const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1386
+ return (jsxs("form", { className: "container space-y-s", onSubmit: formProps.onSubmit, children: [renderIndividualsFields(field), jsxs("div", { className: "@xl:flex justify-between items-center", children: [jsxs("div", { className: "@xl:mb-0 mb-2 flex items-center gap-3", children: [jsx(Checkbox, { ...withValidator(field('consentDataProcessing'), defaultValidator) }), jsx(Footnote, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u0441 ", link: link })] }), renderSubmitButton(button)] })] }));
1167
1387
  });
1168
1388
 
1169
1389
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
@@ -1270,6 +1490,7 @@
1270
1490
  ApplicationFormCredit,
1271
1491
  ApplicationFormAcquiring,
1272
1492
  ApplicationFormGrantSupport,
1493
+ ApplicationFormIndividuals,
1273
1494
  };
1274
1495
 
1275
1496
  const ResponseNotification = JSX(({ responseType }) => {
@@ -1278,12 +1499,12 @@
1278
1499
  return (jsxs("div", { className: `flex items-center p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponseOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponseFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-2xs" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1279
1500
  });
1280
1501
 
1281
- const API = CorporateLeadAPI();
1502
+ const API = LeadServiceAPI();
1282
1503
  const ApplicationForm = JSX((props) => {
1283
1504
  const { className, formBlock, ...rest } = props;
1284
1505
  const [responseType, setResponseType] = useState('');
1285
- const handleSubmit = useCallback(async (data) => {
1286
- const status = (await API.send(data)) ? 'OK' : 'Fail';
1506
+ const handleSubmit = useCallback(async (data, isIndividualType) => {
1507
+ const status = (await API.send(data, isIndividualType)) ? 'OK' : 'Fail';
1287
1508
  setResponseType(status);
1288
1509
  return status;
1289
1510
  }, []);
@@ -1821,31 +2042,6 @@
1821
2042
  : null, jsxs("div", { className: "flex flex-col gap-y-4xl @xl:w-96", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
1822
2043
  });
1823
2044
 
1824
- const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1825
- return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
1826
- });
1827
-
1828
- const CHECK_PATHS = [
1829
- {
1830
- d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1831
- fillRule: 'evenodd',
1832
- clipRule: 'evenodd',
1833
- fill: 'white',
1834
- },
1835
- ];
1836
- const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1837
- const handleChange = useCallback((e) => {
1838
- if (disabled) {
1839
- return;
1840
- }
1841
- e.preventDefault();
1842
- onChange && onChange(!value);
1843
- }, [onChange, disabled, value]);
1844
- const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1845
- return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
1846
- });
1847
- const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1848
-
1849
2045
  const STEP_DAYS = 1;
1850
2046
  const renderDaysInput = (props) => (jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
1851
2047
  const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
@@ -2362,14 +2558,14 @@
2362
2558
  RefinancingCalculatorForm,
2363
2559
  };
2364
2560
 
2365
- const Calculator = JSX(({ className, calculatorTabs = [] }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", children: renderTabs$1(calculatorTabs) })));
2561
+ const Calculator = JSX(({ className, calculatorTabs = [], ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: renderTabs$1(calculatorTabs) })));
2366
2562
  const renderCalculator = (tab) => {
2367
2563
  const type = tab.calculatorBlock?.calcType;
2368
2564
  if (!type || !(type in EmbeddableCalcBlocks)) {
2369
2565
  return null;
2370
2566
  }
2371
2567
  const EmbeddedBlock = EmbeddableCalcBlocks[type];
2372
- return (jsxs("div", { children: [tab?.calculatorBlock?.title ? (jsx(Heading, { className: "mb-lg", title: tab?.calculatorBlock?.title })) : null, jsx(EmbeddedBlock, { ...tab.calculatorBlock, isMobile: true })] }));
2568
+ return (jsxs("div", { className: "p-xl", children: [tab?.calculatorBlock?.title ? (jsx(Heading, { className: "mb-lg", title: tab?.calculatorBlock?.title })) : null, jsx(EmbeddedBlock, { ...tab.calculatorBlock, isMobile: true })] }));
2373
2569
  };
2374
2570
  const renderTabs$1 = (tabs) => {
2375
2571
  if (!tabs || !tabs.length) {
@@ -2377,9 +2573,9 @@
2377
2573
  }
2378
2574
  const isSingleTab = tabs.length === 1;
2379
2575
  if (isSingleTab) {
2380
- return jsx(BlockWrapper, { children: renderCalculator(tabs[0]) });
2576
+ return renderCalculator(tabs[0]);
2381
2577
  }
2382
- return tabs.map((tab, index) => (jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: index === 0, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, children: jsx(BlockWrapper, { children: renderCalculator(tab) }) })), renderFoldButton: renderFoldButton$2(tab) }, index.toString())));
2578
+ return tabs.map((tab, index) => (jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: index === 0, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { isUnfolded: isUnfolded, children: renderCalculator(tab) })), renderFoldButton: renderFoldButton$2(tab) }, index.toString())));
2383
2579
  };
2384
2580
  const renderFoldButton$2 = (tab) => ({ isUnfolded, onToggle }) => {
2385
2581
  return (jsxs("button", { onClick: onToggle, className: "w-full p-xl bg-primary-main flex items-center border-b border-white", children: [jsx("div", { className: "w-11 h-11 bg-white rounded-md flex justify-center items-center", children: jsx(Icon, { name: tab.nav?.icon?.icon, iconVersion: "color", width: "24", height: "24" }) }), jsxs("div", { className: "flex-1 flex flex-col pl-s", children: [jsx(Text, { align: "text-left", color: "text-white", children: tab.nav?.title }), jsx(Text, { align: "text-left", size: "text-s", color: "text-white", font: "font-light", children: tab.nav?.description })] }), jsx(Icon, { name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', iconVersion: "white", width: "24", height: "24" })] }));
@@ -2556,7 +2752,7 @@
2556
2752
  const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'));
2557
2753
  const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
2558
2754
  someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), showBorder &&
2559
- 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider');
2755
+ 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider h-full');
2560
2756
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
2561
2757
 
2562
2758
  const VISIBLE_ITEM_COUNT = 0;
@@ -2600,7 +2796,7 @@
2600
2796
 
2601
2797
  const layerBaseStyle = 'z-10 border border-solid w-full h-full';
2602
2798
  const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
2603
- const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2799
+ const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative h-full", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2604
2800
  className: 'mt-m sm:mt-6xl sm:justify-center',
2605
2801
  isVertical: true,
2606
2802
  })] })] }) })));
@@ -2713,7 +2909,7 @@
2713
2909
  'description' in _ ? (jsx("span", { className: _.descriptionClassName, children: renderBenefitDescription(_.description, i) }, String(i))) : null,
2714
2910
  ]);
2715
2911
 
2716
- const BenefitItem = JSX(({ className, benefitsVersion, ..._ }) => (jsxs("div", { className: style('flex gap-m min-w-56', 'description' in _ && _.description ? 'items-start' : 'items-center', className), children: ['icon' in _ ? renderBenefitIcon(_.icon, benefitsVersion) : null, jsx("div", { children: renderBenefitText(_) })] })));
2912
+ const BenefitItem = JSX(({ className, benefitsVersion, ..._ }) => (jsxs("div", { className: style('flex gap-m min-w-56 items-center', className), children: ['icon' in _ ? renderBenefitIcon(_.icon, benefitsVersion) : null, jsx("div", { children: renderBenefitText(_) })] })));
2717
2913
 
2718
2914
  const MAX_BENEFITS_LEN_DEVIATION = 16;
2719
2915
  const benefitLength = (_) => _.type === 'rte'
@@ -2770,6 +2966,10 @@
2770
2966
  origins: ['rutube.ru'],
2771
2967
  iconMapped: { icon: 'RutubeIcon' },
2772
2968
  },
2969
+ {
2970
+ origins: ['dzen.ru'],
2971
+ iconMapped: { icon: 'DzenIcon' },
2972
+ },
2773
2973
  ];
2774
2974
 
2775
2975
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
@@ -2791,11 +2991,11 @@
2791
2991
  version,
2792
2992
  };
2793
2993
  });
2794
- const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
2795
- return (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: renderButtonsSection(buttons, {
2994
+ const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : 'basis-auto', stretched ? 'flex-1 justify-center' : '');
2995
+ return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
2796
2996
  className: stretched ? 'w-full' : '',
2797
2997
  buttonClassName,
2798
- }) })] }));
2998
+ }) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
2799
2999
  });
2800
3000
 
2801
3001
  const ImageAlwaysOnRight = false;
@@ -2815,7 +3015,7 @@
2815
3015
  const cellsNode = cardCells.map(renderCardInfo);
2816
3016
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
2817
3017
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
2818
- return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-3xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
3018
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m mb-lg", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2819
3019
  });
2820
3020
  const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
2821
3021
 
@@ -2873,7 +3073,7 @@
2873
3073
  return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2874
3074
  };
2875
3075
 
2876
- const NotFound = JSX(({ title, description }) => (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: AlignStyles })] })));
3076
+ const NotFound = JSX(({ title, description }) => (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon', iconVersion: 'normal' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: AlignStyles })] })));
2877
3077
 
2878
3078
  const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2879
3079
  const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
@@ -3268,7 +3468,7 @@
3268
3468
  return (jsx("a", { className: style(horizontalNavigationLinkStyles, className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3269
3469
  });
3270
3470
 
3271
- const HorizontalNavigation = JSX(({ title, links, className = '' }) => (jsxs("div", { className: className, children: [jsx(Text, { size: "text-l", font: "font-normal", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-lg", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { className: "text-l font-light", index: i, ..._ }, String(i)))) })) : null] })));
3471
+ const HorizontalNavigation = JSX(({ title, links, className = '' }) => (jsxs("div", { className: style('flex flex-col gap-4', className), children: [jsx(Text, { size: "text-l", font: "font-normal", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-lg", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { className: "text-l font-light", index: i, ..._ }, String(i)))) })) : null] })));
3272
3472
 
3273
3473
  const LinkList = JSX(({ className = '', items, basePath }) => items?.length ? (jsx("ul", { className: style('flex flex-col', className), children: items.map(renderLinkListItem(basePath)) })) : null);
3274
3474
  const renderLinkListItem = (basePath) => (item, i) => {
@@ -3291,11 +3491,11 @@
3291
3491
  const fallback = rest.options?.page?.fallback;
3292
3492
  const { topItems } = useSitemap(fallback);
3293
3493
  const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', { fallback });
3294
- return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items, basePath: appendSlash(item.href) }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), jsx("div", { className: "py-lg border-t border-main-divider", children: jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: deleteAllCookies }) }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3494
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items, basePath: appendSlash(item.href) }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsxs("div", { className: "mb-xl", children: [jsx("div", { className: "flex flex-col gap-4 mb-xs", children: mobileApps?.map(renderButton) }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] })] }), jsx("div", { className: "py-lg border-t border-main-divider", children: jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: deleteAllCookies }) }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3295
3495
  });
3296
3496
  const renderButton = ({ href = '/', text }, i) => {
3297
3497
  const { label } = findIconByHref(href);
3298
- return (jsx(Button, { className: "w-full mb-lg", text: text || label, version: "secondary", href: href, target: "_blank" }, String(i)));
3498
+ return (jsx(Button, { className: "w-full", text: text || label, version: "secondary", href: href, target: "_blank" }, String(i)));
3299
3499
  };
3300
3500
 
3301
3501
  const ICON_SIZE = { width: '34', height: '34' };
@@ -3578,9 +3778,7 @@
3578
3778
  const borderStyle = showBorder
3579
3779
  ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
3580
3780
  : '';
3581
- return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
3582
- ? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
3583
- : null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
3781
+ return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton ? renderBackwardButton(rest.version || 'primary', handleClick) : null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
3584
3782
  });
3585
3783
 
3586
3784
  const ProductGallery = JSX(({ className, padding, slides = [], ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden relative', className), padding: padding, ...rest, children: jsx(SwipeListControl, { gap: 0, padding: 0, children: slides
@@ -4239,7 +4437,7 @@
4239
4437
  const handleChange = useCallback((ev) => {
4240
4438
  onChange && onChange(ev.target?.value || '');
4241
4439
  }, [onChange]);
4242
- return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 w-full px-10 text-l text-black outline-none box-border border border-solid rounded-md', 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
4440
+ return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-14 w-full px-10 text-l text-black outline-none box-border border border-solid rounded-md', 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
4243
4441
  });
4244
4442
 
4245
4443
  function useDebouncedEffect(effect, deps, delay = 300) {
@@ -4725,8 +4923,6 @@
4725
4923
  return (jsx("ul", { className: style('text-secondary-text group-data-secondary:text-white/80', listStyle), children: items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-s", font: "font-light", children: _ }) }, `listItem-${i}`))) }));
4726
4924
  };
4727
4925
 
4728
- const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, isFullWidthTitle: false, ...rest }) })));
4729
-
4730
4926
  const Blocks = {
4731
4927
  ApplicationForm,
4732
4928
  BenefitsBlock,
@@ -4769,7 +4965,6 @@
4769
4965
  Tabs,
4770
4966
  TariffsTable,
4771
4967
  TextBlock,
4772
- Tile,
4773
4968
  VerticalLayout,
4774
4969
  };
4775
4970
 
@@ -4967,7 +5162,7 @@
4967
5162
 
4968
5163
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
4969
5164
 
4970
- const packageVersion = "0.14.26";
5165
+ const packageVersion = "0.14.27";
4971
5166
 
4972
5167
  exports.Blocks = Blocks;
4973
5168
  exports.ContentPage = ContentPage;