@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',
@@ -684,7 +685,7 @@
684
685
 
685
686
  const Text = JSX(({ children, ...styleProps }) => (jsx("span", { className: style('font-sans', Object.values(styleProps)), children: children })));
686
687
 
687
- 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] })));
688
+ 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] })));
688
689
 
689
690
  const withValidator = (props, validator) => {
690
691
  const { value, isDirty } = props;
@@ -710,7 +711,7 @@
710
711
  const validStyle = valid
711
712
  ? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
712
713
  : 'border-error';
713
- 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] }));
714
+ 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] }));
714
715
  });
715
716
 
716
717
  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 })] })));
@@ -886,7 +887,7 @@
886
887
  onChange,
887
888
  onClose: handleClose,
888
889
  });
889
- 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] })] }));
890
+ 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] })] }));
890
891
  });
891
892
  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;
892
893
  const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
@@ -908,7 +909,7 @@
908
909
  return (jsx("button", { type: "submit", className: style('p-m w-full @xl:w-auto', buttonStyle, className), children: button?.text ? button.text : 'Отправить заявку' }));
909
910
  };
910
911
 
911
- const initialFormState$4 = {
912
+ const initialFormState$5 = {
912
913
  acquiringType: { key: 'Торговый эквайринг' },
913
914
  fullName: '',
914
915
  inn: '',
@@ -940,7 +941,7 @@
940
941
  phone: phone.replace(/[^+\d]/g, ''),
941
942
  });
942
943
  }, [onSubmit]);
943
- const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
944
+ const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
944
945
  const regions = useGetRegions();
945
946
  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 })] }));
946
947
  });
@@ -949,7 +950,7 @@
949
950
 
950
951
  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) }));
951
952
 
952
- const initialFormState$3 = {
953
+ const initialFormState$4 = {
953
954
  name: '',
954
955
  phone: '',
955
956
  inn: '',
@@ -976,7 +977,7 @@
976
977
  phone: phone.replace(/[^+\d]/g, ''),
977
978
  });
978
979
  }, [onSubmit]);
979
- const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
980
+ const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
980
981
  const regions = useGetRegions();
981
982
  return (jsxs("form", { className: "container space-y-s", onSubmit: formProps.onSubmit, children: [renderRegion$1({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
982
983
  });
@@ -1071,7 +1072,7 @@
1071
1072
  text: address,
1072
1073
  })), ...withValidator(field('department'), defaultValidator) }) })] }));
1073
1074
 
1074
- const initialFormState$2 = {
1075
+ const initialFormState$3 = {
1075
1076
  amount: MIN_CREDIT_AMOUNT,
1076
1077
  term: 12,
1077
1078
  fullName: '',
@@ -1106,13 +1107,13 @@
1106
1107
  partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
1107
1108
  });
1108
1109
  }, [onSubmit]);
1109
- const [formState, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1110
+ const [formState, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
1110
1111
  const regions = useGetRegions();
1111
1112
  const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
1112
1113
  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 })] }));
1113
1114
  });
1114
1115
 
1115
- const initialFormState$1 = {
1116
+ const initialFormState$2 = {
1116
1117
  name: '',
1117
1118
  phone: '',
1118
1119
  };
@@ -1120,8 +1121,7 @@
1120
1121
  name: nameValidator,
1121
1122
  phone: phoneValidator,
1122
1123
  });
1123
- const ApplicationFormDeposit = JSX((props) => {
1124
- const { button, link, onSubmit } = props;
1124
+ const ApplicationFormDeposit = JSX(({ button, link, onSubmit }) => {
1125
1125
  const handleSubmit = useCallback((formState) => {
1126
1126
  const { name, phone } = formState;
1127
1127
  isValidationSuccess(depositValidator(formState)) &&
@@ -1131,7 +1131,7 @@
1131
1131
  phone: phone.replace(/[^+\d]/g, ''),
1132
1132
  });
1133
1133
  }, [onSubmit]);
1134
- const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1134
+ const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1135
1135
  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)] })] }));
1136
1136
  });
1137
1137
 
@@ -1155,7 +1155,227 @@
1155
1155
  version: button?.version,
1156
1156
  });
1157
1157
  const regionHref = regions?.find((_) => _.name === region.key)?.href;
1158
- 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] }));
1158
+ 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] }));
1159
+ });
1160
+
1161
+ const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1162
+ 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))) }));
1163
+ });
1164
+
1165
+ const CHECK_PATHS = [
1166
+ {
1167
+ 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',
1168
+ fillRule: 'evenodd',
1169
+ clipRule: 'evenodd',
1170
+ fill: 'white',
1171
+ },
1172
+ ];
1173
+ const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1174
+ const handleChange = useCallback((e) => {
1175
+ if (disabled) {
1176
+ return;
1177
+ }
1178
+ e.preventDefault();
1179
+ onChange && onChange(!value);
1180
+ }, [onChange, disabled, value]);
1181
+ 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" }));
1182
+ 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] }) }));
1183
+ });
1184
+ const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1185
+
1186
+ const formatDate$1 = (date, toTimeStamp = false) => {
1187
+ if (typeof date === 'string') {
1188
+ return date.split('-').reverse().join('.');
1189
+ }
1190
+ else {
1191
+ const day = String(date.getDate()).padStart(2, '0');
1192
+ const month = String(date.getMonth() + 1).padStart(2, '0');
1193
+ const year = toTimeStamp ? String(date.getFullYear()) : String(date.getFullYear()).slice(-2);
1194
+ return toTimeStamp ? `${year}-${month}-${day}` : `${day}.${month}.${year}`;
1195
+ }
1196
+ };
1197
+
1198
+ const noop = () => {
1199
+ // Do nothing
1200
+ };
1201
+
1202
+ const DAY_COUNT = 6;
1203
+ const WEEK_COUNT = 7;
1204
+ const renderCalendarCells = ({ today, firstDayOfWeek, totalDays, currentMonth, currentYear, min, max, onDateClick, }) => {
1205
+ const calendarCells = [];
1206
+ let dayCounter = 1;
1207
+ for (let i = 0; i < DAY_COUNT; i++) {
1208
+ const rowCells = [];
1209
+ for (let j = 0; j < WEEK_COUNT; j++) {
1210
+ if (i === 0 && j < firstDayOfWeek) {
1211
+ rowCells.push(jsx("td", {}, `empty-${j}`));
1212
+ }
1213
+ else if (dayCounter > totalDays) {
1214
+ rowCells.push(jsx("td", {}, `empty-${j}`));
1215
+ }
1216
+ else {
1217
+ const currentDate = new Date(currentYear, currentMonth, dayCounter);
1218
+ const isToday = checkIsToday(currentDate, today);
1219
+ const isDisabled = checkIsDisabled(currentDate, min, max);
1220
+ rowCells.push(jsx("td", { children: jsx("div", { className: getDayStyles(isToday, isDisabled), onClick: () => !isDisabled && onDateClick(currentDate), children: dayCounter }) }, `day-${dayCounter}`));
1221
+ dayCounter++;
1222
+ }
1223
+ }
1224
+ calendarCells.push(jsx("tr", { children: rowCells }, `row-${i}`));
1225
+ }
1226
+ return calendarCells;
1227
+ };
1228
+ const checkIsToday = (currentDate, today) => today && currentDate.toDateString() === today.toDateString();
1229
+ const checkIsDisabled = (currentDate, min, max) => (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
1230
+ 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');
1231
+
1232
+ const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
1233
+ const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop }) => {
1234
+ const handleDateClick = useCallback((date) => onDateSelect(date), []);
1235
+ const { firstDayOfWeek, totalDays } = useMemo(() => ({
1236
+ firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
1237
+ totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
1238
+ }), [currentYear, currentMonth]);
1239
+ 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({
1240
+ firstDayOfWeek,
1241
+ today,
1242
+ totalDays,
1243
+ currentYear,
1244
+ currentMonth,
1245
+ min,
1246
+ max,
1247
+ onDateClick: handleDateClick,
1248
+ }) })] }));
1249
+ });
1250
+
1251
+ const months = [
1252
+ 'Январь',
1253
+ 'Февраль',
1254
+ 'Март',
1255
+ 'Апрель',
1256
+ 'Май',
1257
+ 'Июнь',
1258
+ 'Июль',
1259
+ 'Август',
1260
+ 'Сентябрь',
1261
+ 'Октябрь',
1262
+ 'Ноябрь',
1263
+ 'Декабрь',
1264
+ ];
1265
+
1266
+ const START_YEAR = 1940;
1267
+ const getYears = () => Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
1268
+
1269
+ const MONTHS_COUNT = 11;
1270
+ const MONTHS_OPTIONS = months.map((key) => ({ key }));
1271
+ const YEARS_OPTIONS = getYears()
1272
+ .reverse()
1273
+ .map((key) => ({ key: String(key) }));
1274
+ const useDatePickerManager = ({ onShowCalendar, showCalendar, selectedMonth, onMonthSelect, onYearSelect, selectedYear, }) => {
1275
+ const close = useCallback(() => showCalendar && onShowCalendar(false), [showCalendar]);
1276
+ const ref = useOutsideClick(close);
1277
+ const handleChangeVisibleCalendar = useCallback(() => onShowCalendar(!showCalendar), [showCalendar]);
1278
+ const handleNextMonth = useCallback(() => {
1279
+ if (selectedMonth + 1 <= MONTHS_COUNT) {
1280
+ onMonthSelect(selectedMonth + 1);
1281
+ }
1282
+ else {
1283
+ onMonthSelect(0);
1284
+ onYearSelect(selectedYear + 1);
1285
+ }
1286
+ }, [selectedMonth]);
1287
+ const handlePrevMonth = useCallback(() => {
1288
+ if (selectedMonth - 1 >= 0) {
1289
+ onMonthSelect(selectedMonth - 1);
1290
+ }
1291
+ else {
1292
+ onMonthSelect(11);
1293
+ onYearSelect(selectedYear - 1);
1294
+ }
1295
+ }, [selectedMonth]);
1296
+ const handleSelectMonth = useCallback(({ key }) => onMonthSelect(months.indexOf(key)), []);
1297
+ const handleSelectYear = useCallback(({ key }) => onYearSelect(Number(key)), []);
1298
+ return {
1299
+ handleChangeVisibleCalendar,
1300
+ handleNextMonth,
1301
+ handlePrevMonth,
1302
+ handleSelectMonth,
1303
+ handleSelectYear,
1304
+ monthsOptions: MONTHS_OPTIONS,
1305
+ yearsOptions: YEARS_OPTIONS,
1306
+ ref,
1307
+ };
1308
+ };
1309
+
1310
+ const ICON_PROPS = {
1311
+ name: 'ArrowUpIcon',
1312
+ iconVersion: 'black',
1313
+ width: '24',
1314
+ height: '24',
1315
+ };
1316
+ const SELECT_PROPS = {
1317
+ className: 'min-w-32',
1318
+ iconVersion: 'black',
1319
+ isBorder: false,
1320
+ };
1321
+ const formStyle = 'flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer ' +
1322
+ 'hover:border-black active:border-black focus:border-black';
1323
+ const DatePicker = JSX(({ className = '', label = '', value, valid = true, minDate, maxDate, onChange }) => {
1324
+ const [showCalendar, { setValue }] = useBool(false);
1325
+ const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
1326
+ const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
1327
+ const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
1328
+ onYearSelect: setSelectedYear,
1329
+ onMonthSelect: setSelectedMonth,
1330
+ onShowCalendar: setValue,
1331
+ selectedYear,
1332
+ selectedMonth,
1333
+ showCalendar,
1334
+ });
1335
+ 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] }));
1336
+ });
1337
+ const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate$1(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
1338
+
1339
+ 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 })] })));
1340
+
1341
+ 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) })] })] }));
1342
+
1343
+ const initialFormState$1 = {
1344
+ surname: '',
1345
+ name: '',
1346
+ middleName: '',
1347
+ phone: '',
1348
+ mail: '',
1349
+ date: undefined,
1350
+ consentDataProcessing: true,
1351
+ };
1352
+ const individualsValidator = objectValidator({
1353
+ surname: nameValidator,
1354
+ name: nameValidator,
1355
+ middleName: nameValidator,
1356
+ phone: phoneValidator,
1357
+ mail: defaultValidator,
1358
+ date: defaultValidator,
1359
+ });
1360
+ const ApplicationFormIndividuals = JSX((props) => {
1361
+ const { button, link, product, onSubmit } = props;
1362
+ const handleSubmit = useCallback((formState) => {
1363
+ const { surname, name, middleName, phone, mail, date, consentDataProcessing } = formState;
1364
+ isValidationSuccess(individualsValidator(formState)) &&
1365
+ onSubmit({
1366
+ typeForm: 'dpst',
1367
+ surname,
1368
+ name,
1369
+ middleName,
1370
+ mail,
1371
+ consentDataProcessing,
1372
+ phone: phone.replace(/[^+\d]/g, ''),
1373
+ date: date?.toISOString().slice(0, 10) || '',
1374
+ product: product || '',
1375
+ }, true);
1376
+ }, [onSubmit]);
1377
+ const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1378
+ 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)] })] }));
1159
1379
  });
1160
1380
 
1161
1381
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
@@ -1262,6 +1482,7 @@
1262
1482
  ApplicationFormCredit,
1263
1483
  ApplicationFormAcquiring,
1264
1484
  ApplicationFormGrantSupport,
1485
+ ApplicationFormIndividuals,
1265
1486
  };
1266
1487
 
1267
1488
  const ResponseNotification = JSX(({ responseType }) => {
@@ -1270,12 +1491,12 @@
1270
1491
  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 ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1271
1492
  });
1272
1493
 
1273
- const API = CorporateLeadAPI();
1494
+ const API = LeadServiceAPI();
1274
1495
  const ApplicationForm = JSX((props) => {
1275
1496
  const { className, formBlock, ...rest } = props;
1276
1497
  const [responseType, setResponseType] = useState('');
1277
- const handleSubmit = useCallback(async (data) => {
1278
- const status = (await API.send(data)) ? 'OK' : 'Fail';
1498
+ const handleSubmit = useCallback(async (data, isIndividualType) => {
1499
+ const status = (await API.send(data, isIndividualType)) ? 'OK' : 'Fail';
1279
1500
  setResponseType(status);
1280
1501
  return status;
1281
1502
  }, []);
@@ -1664,31 +1885,6 @@
1664
1885
  : 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)] })] }));
1665
1886
  });
1666
1887
 
1667
- const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1668
- 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))) }));
1669
- });
1670
-
1671
- const CHECK_PATHS = [
1672
- {
1673
- 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',
1674
- fillRule: 'evenodd',
1675
- clipRule: 'evenodd',
1676
- fill: 'white',
1677
- },
1678
- ];
1679
- const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1680
- const handleChange = useCallback((e) => {
1681
- if (disabled) {
1682
- return;
1683
- }
1684
- e.preventDefault();
1685
- onChange && onChange(!value);
1686
- }, [onChange, disabled, value]);
1687
- 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" }));
1688
- 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] }) }));
1689
- });
1690
- const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1691
-
1692
1888
  const STEP_DAYS = 1;
1693
1889
  const renderDaysInput = (props) => (jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
1694
1890
  const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
@@ -2572,7 +2768,7 @@
2572
2768
  const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'));
2573
2769
  const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
2574
2770
  someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), showBorder &&
2575
- 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider');
2771
+ 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider h-full');
2576
2772
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
2577
2773
 
2578
2774
  const VISIBLE_ITEM_COUNT = 1;
@@ -2618,11 +2814,11 @@
2618
2814
  'gradient-color-text-on-yellow',
2619
2815
  ][blockIndex % 3];
2620
2816
 
2621
- const titleSize = 'L';
2817
+ const titleSize = 'XS';
2622
2818
 
2623
2819
  const layerBaseStyle = 'z-10 border border-solid w-full h-full';
2624
2820
  const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
2625
- 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], {
2821
+ 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], {
2626
2822
  className: 'mt-m sm:mt-6xl sm:justify-center',
2627
2823
  isVertical: true,
2628
2824
  })] })] }) })));
@@ -2742,7 +2938,7 @@
2742
2938
  'description' in _ ? (jsx("span", { className: _.descriptionClassName, children: renderBenefitDescription(_.description, i) }, String(i))) : null,
2743
2939
  ]);
2744
2940
 
2745
- 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(_) })] })));
2941
+ 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(_) })] })));
2746
2942
 
2747
2943
  const MAX_BENEFITS_LEN_DEVIATION = 16;
2748
2944
  const benefitLength = (_) => _.type === 'rte'
@@ -2799,6 +2995,10 @@
2799
2995
  origins: ['rutube.ru'],
2800
2996
  iconMapped: { icon: 'RutubeIcon' },
2801
2997
  },
2998
+ {
2999
+ origins: ['dzen.ru'],
3000
+ iconMapped: { icon: 'DzenIcon' },
3001
+ },
2802
3002
  ];
2803
3003
 
2804
3004
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
@@ -2820,11 +3020,11 @@
2820
3020
  version,
2821
3021
  };
2822
3022
  });
2823
- 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' : '');
2824
- 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, {
3023
+ 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' : '');
3024
+ return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
2825
3025
  className: stretched ? 'w-full' : '',
2826
3026
  buttonClassName,
2827
- }) })] }));
3027
+ }) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
2828
3028
  });
2829
3029
 
2830
3030
  const ImageAlwaysOnRight = true;
@@ -2868,7 +3068,7 @@
2868
3068
  const cellsNode = cardCells.map(renderCardInfo);
2869
3069
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
2870
3070
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
2871
- 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] }));
3071
+ 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] }));
2872
3072
  });
2873
3073
  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" })] }));
2874
3074
 
@@ -2962,7 +3162,7 @@
2962
3162
  return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2963
3163
  };
2964
3164
 
2965
- 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 })] })));
3165
+ 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 })] })));
2966
3166
 
2967
3167
  const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2968
3168
  const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
@@ -3157,164 +3357,11 @@
3157
3357
 
3158
3358
  const Pagination = ({ currentPage, onPageChange, totalPages, itemCount, onItemCountChange, }) => (jsxs("div", { className: "mt-3xl flex justify-between items-center select-none", role: "navigation", "aria-label": "\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F", children: [jsx(PaginationContainer, { currentPage: currentPage, onPageChange: onPageChange, totalPages: totalPages }), itemCount && onItemCountChange ? (jsx(PageSizeSelector, { itemCount: itemCount, onItemCountChange: onItemCountChange })) : null] }));
3159
3359
 
3160
- const formatDate$1 = (date, toTimeStamp = false) => {
3161
- if (typeof date === 'string') {
3162
- return date.split('-').reverse().join('.');
3163
- }
3164
- else {
3165
- const day = String(date.getDate()).padStart(2, '0');
3166
- const month = String(date.getMonth() + 1).padStart(2, '0');
3167
- const year = toTimeStamp ? String(date.getFullYear()) : String(date.getFullYear()).slice(-2);
3168
- return toTimeStamp ? `${year}-${month}-${day}` : `${day}.${month}.${year}`;
3169
- }
3170
- };
3171
-
3172
- const noop = () => {
3173
- // Do nothing
3174
- };
3175
-
3176
- const DAY_COUNT = 6;
3177
- const WEEK_COUNT = 7;
3178
- const renderCalendarCells = ({ today, firstDayOfWeek, totalDays, currentMonth, currentYear, min, max, onDateClick, }) => {
3179
- const calendarCells = [];
3180
- let dayCounter = 1;
3181
- for (let i = 0; i < DAY_COUNT; i++) {
3182
- const rowCells = [];
3183
- for (let j = 0; j < WEEK_COUNT; j++) {
3184
- if (i === 0 && j < firstDayOfWeek) {
3185
- rowCells.push(jsx("td", {}, `empty-${j}`));
3186
- }
3187
- else if (dayCounter > totalDays) {
3188
- rowCells.push(jsx("td", {}, `empty-${j}`));
3189
- }
3190
- else {
3191
- const currentDate = new Date(currentYear, currentMonth, dayCounter);
3192
- const isToday = checkIsToday(currentDate, today);
3193
- const isDisabled = checkIsDisabled(currentDate, min, max);
3194
- rowCells.push(jsx("td", { children: jsx("div", { className: getDayStyles(isToday, isDisabled), onClick: () => !isDisabled && onDateClick(currentDate), children: dayCounter }) }, `day-${dayCounter}`));
3195
- dayCounter++;
3196
- }
3197
- }
3198
- calendarCells.push(jsx("tr", { children: rowCells }, `row-${i}`));
3199
- }
3200
- return calendarCells;
3201
- };
3202
- const checkIsToday = (currentDate, today) => today && currentDate.toDateString() === today.toDateString();
3203
- const checkIsDisabled = (currentDate, min, max) => (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
3204
- 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');
3205
-
3206
- const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
3207
- const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop }) => {
3208
- const handleDateClick = useCallback((date) => onDateSelect(date), []);
3209
- const { firstDayOfWeek, totalDays } = useMemo(() => ({
3210
- firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
3211
- totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
3212
- }), [currentYear, currentMonth]);
3213
- 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({
3214
- firstDayOfWeek,
3215
- today,
3216
- totalDays,
3217
- currentYear,
3218
- currentMonth,
3219
- min,
3220
- max,
3221
- onDateClick: handleDateClick,
3222
- }) })] }));
3223
- });
3224
-
3225
- const months = [
3226
- 'Январь',
3227
- 'Февраль',
3228
- 'Март',
3229
- 'Апрель',
3230
- 'Май',
3231
- 'Июнь',
3232
- 'Июль',
3233
- 'Август',
3234
- 'Сентябрь',
3235
- 'Октябрь',
3236
- 'Ноябрь',
3237
- 'Декабрь',
3238
- ];
3239
-
3240
- const START_YEAR = 1970;
3241
- const getYears = () => Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
3242
-
3243
- const MONTHS_COUNT = 11;
3244
- const MONTHS_OPTIONS = months.map((key) => ({ key }));
3245
- const YEARS_OPTIONS = getYears()
3246
- .reverse()
3247
- .map((key) => ({ key: String(key) }));
3248
- const useDatePickerManager = ({ onShowCalendar, showCalendar, selectedMonth, onMonthSelect, onYearSelect, selectedYear, }) => {
3249
- const close = useCallback(() => showCalendar && onShowCalendar(false), [showCalendar]);
3250
- const ref = useOutsideClick(close);
3251
- const handleChangeVisibleCalendar = useCallback(() => onShowCalendar(!showCalendar), [showCalendar]);
3252
- const handleNextMonth = useCallback(() => {
3253
- if (selectedMonth + 1 <= MONTHS_COUNT) {
3254
- onMonthSelect(selectedMonth + 1);
3255
- }
3256
- else {
3257
- onMonthSelect(0);
3258
- onYearSelect(selectedYear + 1);
3259
- }
3260
- }, [selectedMonth]);
3261
- const handlePrevMonth = useCallback(() => {
3262
- if (selectedMonth - 1 >= 0) {
3263
- onMonthSelect(selectedMonth - 1);
3264
- }
3265
- else {
3266
- onMonthSelect(11);
3267
- onYearSelect(selectedYear - 1);
3268
- }
3269
- }, [selectedMonth]);
3270
- const handleSelectMonth = useCallback(({ key }) => onMonthSelect(months.indexOf(key)), []);
3271
- const handleSelectYear = useCallback(({ key }) => onYearSelect(Number(key)), []);
3272
- return {
3273
- handleChangeVisibleCalendar,
3274
- handleNextMonth,
3275
- handlePrevMonth,
3276
- handleSelectMonth,
3277
- handleSelectYear,
3278
- monthsOptions: MONTHS_OPTIONS,
3279
- yearsOptions: YEARS_OPTIONS,
3280
- ref,
3281
- };
3282
- };
3283
-
3284
- const ICON_PROPS = {
3285
- name: 'ArrowUpIcon',
3286
- iconVersion: 'black',
3287
- width: '24',
3288
- height: '24',
3289
- };
3290
- const SELECT_PROPS = {
3291
- className: 'min-w-32',
3292
- iconVersion: 'black',
3293
- isBorder: false,
3294
- };
3295
- const formStyle = 'flex justify-between px-m py-s border border-gray rounded-md cursor-pointer ' +
3296
- 'hover:border-black active:border-black focus:border-black';
3297
- const DatePicker = JSX(({ className = '', label = '', value, minDate, maxDate, onChange }) => {
3298
- const [showCalendar, { setValue }] = useBool(false);
3299
- const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
3300
- const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
3301
- const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
3302
- onYearSelect: setSelectedYear,
3303
- onMonthSelect: setSelectedMonth,
3304
- onShowCalendar: setValue,
3305
- selectedYear,
3306
- selectedMonth,
3307
- showCalendar,
3308
- });
3309
- return (jsxs("div", { className: style(className, 'relative'), ref: ref, children: [jsx(Text, { size: "text-m", children: label }), renderDatePickerForm(handleChangeVisibleCalendar, value), 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] }));
3310
- });
3311
- const renderDatePickerForm = (handleChangeVisibleCalendar, value) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: formStyle, children: [jsx(Paragraph, { children: value && formatDate$1(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
3312
-
3313
3360
  const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus, placeholder = 'Поиск по сайту' }) => {
3314
3361
  const handleChange = useCallback((ev) => {
3315
3362
  onChange && onChange(ev.target?.value || '');
3316
3363
  }, [onChange]);
3317
- 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 })] }));
3364
+ 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 })] }));
3318
3365
  });
3319
3366
 
3320
3367
  const DepositoryFilter = JSX(({ field, onClearFilter, filtrationState }) => (jsxs("div", { className: "grid grid-cols-12 mb-3xl space-x-xl", children: [jsx(SearchInput, { className: "col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), jsx(DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u043E\u0442", maxDate: filtrationState.endDate, ...field('startDate') }), jsx(DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u0434\u043E", minDate: filtrationState.startDate, ...field('endDate') }), jsx("div", { className: "col-span-2 mt-auto", children: jsx("button", { className: "px-m py-s rounded-md bg-main-gray text-green cursor-pointer w-full", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }) })] })));
@@ -4823,14 +4870,12 @@
4823
4870
  const borderStyle = showBorder
4824
4871
  ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
4825
4872
  : '';
4826
- return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
4827
- ? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
4828
- : null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
4873
+ 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 })] }));
4829
4874
  });
4830
4875
 
4831
4876
  const ProductGallery = JSX(({ className = '', padding, slides = [], ...rest }) => {
4832
4877
  const [activeSlideIndex, setActiveSlideIndex] = useState(0);
4833
- return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "XXL", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
4878
+ return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "M", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
4834
4879
  });
4835
4880
  const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
4836
4881
  const isActive = i === activeSlideIndex;
@@ -5368,8 +5413,6 @@
5368
5413
  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}`))) }));
5369
5414
  };
5370
5415
 
5371
- 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 }) })));
5372
-
5373
5416
  const VerticalLayout = JSX(({ className = '', gap = '', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
5374
5417
  ...rest,
5375
5418
  extraProps: { className: 'w-full', padding: isInnerPadding ? '' : 'p-0' },
@@ -5444,7 +5487,6 @@
5444
5487
  Tabs,
5445
5488
  TariffsTable,
5446
5489
  TextBlock,
5447
- Tile,
5448
5490
  VerticalLayout,
5449
5491
  Video,
5450
5492
  };
@@ -5684,7 +5726,7 @@
5684
5726
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5685
5727
  }
5686
5728
 
5687
- const packageVersion = "0.14.26";
5729
+ const packageVersion = "0.14.27";
5688
5730
 
5689
5731
  exports.Blocks = Blocks;
5690
5732
  exports.ContentPage = ContentPage;