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

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 (637) hide show
  1. package/bin/migration-scripts/0.12.12.js +0 -10
  2. package/bin/migration-scripts/0.14.26.js +3 -1
  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 +286 -259
  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/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  16. package/bundle/components/Bonus/BonusContent.d.ts +1 -0
  17. package/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
  18. package/bundle/components/CarouselCard/titleSize.d.ts +1 -1
  19. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  20. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  21. package/bundle/components/MobileAppTile/renderList.d.ts +1 -1
  22. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
  23. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  24. package/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  25. package/bundle/icons/IconName.d.ts +16 -2
  26. package/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  27. package/bundle/utils/getBorderStyle.d.ts +1 -0
  28. package/cosmos-static/icons/CardSendIcon.svg +1 -0
  29. package/cosmos-static/icons/CoinIcon.svg +1 -0
  30. package/cosmos-static/icons/ConvertCardIcon.svg +1 -0
  31. package/cosmos-static/icons/DzenIcon.svg +1 -0
  32. package/cosmos-static/icons/HeartTickIcon.svg +1 -0
  33. package/cosmos-static/icons/NotificationBingIcon.svg +1 -0
  34. package/cosmos-static/icons/Security/320/241ardIcon.svg +1 -0
  35. package/{lib/api/CorporateLeadAPI.d.ts → dist/api/LeadServiceAPI.d.ts} +2 -2
  36. package/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
  37. package/dist/api/LeadServiceAPI.js.map +1 -0
  38. package/dist/components/ApplicationForm/ApplicationForm.js +4 -4
  39. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  40. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  41. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  42. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  43. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  44. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  45. package/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  46. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
  47. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  48. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  49. package/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  50. package/dist/components/ApplicationForm/DatePickerControl.js +8 -0
  51. package/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
  52. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  53. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  54. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  55. package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  56. package/dist/components/ApplicationForm/Footnote.js +1 -1
  57. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  58. package/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  59. package/dist/components/{PromoTile/PromoTileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
  60. package/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  61. package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  62. package/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
  63. package/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  64. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  65. package/dist/components/Blocks.js +0 -2
  66. package/dist/components/Blocks.js.map +1 -1
  67. package/dist/components/Bonus/BonusContent.d.ts +1 -0
  68. package/dist/components/Calculator/Calculator.mobile.js +6 -5
  69. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  70. package/dist/components/Calculator/CalculatorContent.d.ts +3 -0
  71. package/dist/components/Carousel/renderCarouselCards.js +2 -2
  72. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  73. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  74. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  75. package/dist/components/CarouselCard/titleSize.d.ts +1 -1
  76. package/dist/components/CarouselCard/titleSize.js +1 -1
  77. package/dist/components/CarouselCard/titleSize.js.map +1 -1
  78. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  79. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  80. package/dist/components/Footer/Footer.mobile.js +2 -2
  81. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  82. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -1
  83. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  84. package/dist/components/Footer/SocialMedia.js +3 -3
  85. package/dist/components/Footer/SocialMedia.js.map +1 -1
  86. package/dist/components/Footer/iconsMap.js +4 -0
  87. package/dist/components/Footer/iconsMap.js.map +1 -1
  88. package/dist/components/HorizontalLayout/HorizontalLayout.js +2 -3
  89. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  90. package/dist/components/LinkDocs/LinkDocItem.js +6 -14
  91. package/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  92. package/dist/components/LinkDocs/LinkDocs.js +4 -3
  93. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  94. package/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  95. package/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
  96. package/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  97. package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  98. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  99. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  100. package/dist/components/MobileAppTile/renderList.d.ts +1 -1
  101. package/dist/components/MobileAppTile/renderList.js +3 -2
  102. package/dist/components/MobileAppTile/renderList.js.map +1 -1
  103. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
  104. package/dist/components/ProductBlock/ProductBlock.js +2 -4
  105. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  106. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  107. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  108. package/dist/components/TariffsTable/TariffsTable.js +1 -2
  109. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  110. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  111. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  112. package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  113. package/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  114. package/dist/components/VerticalLayout/VerticalLayout.js +6 -2
  115. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  116. package/dist/icons/IconName.d.ts +16 -2
  117. package/dist/icons/IconName.js +14 -0
  118. package/dist/icons/IconName.js.map +1 -1
  119. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  120. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  121. package/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  122. package/dist/ui-kit/DatePicker/DatePicker.js +4 -4
  123. package/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  124. package/dist/ui-kit/DatePicker/getYears.js +1 -1
  125. package/dist/ui-kit/Input/Input.js +1 -1
  126. package/dist/ui-kit/Input/Input.js.map +1 -1
  127. package/dist/ui-kit/NotFound/NotFound.js +1 -1
  128. package/dist/ui-kit/NotFound/NotFound.js.map +1 -1
  129. package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  130. package/dist/ui-kit/Select/Select.js +1 -1
  131. package/dist/ui-kit/Select/Select.js.map +1 -1
  132. package/dist/utils/getBorderStyle.d.ts +1 -0
  133. package/dist/utils/getBorderStyle.js +7 -0
  134. package/dist/utils/getBorderStyle.js.map +1 -0
  135. package/{mobile/bundle/api/CorporateLeadAPI.d.ts → lib/api/LeadServiceAPI.d.ts} +2 -2
  136. package/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
  137. package/lib/api/LeadServiceAPI.js.map +1 -0
  138. package/lib/common.css +1 -1
  139. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  140. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  141. package/lib/components/ApplicationForm/ApplicationForm.js +4 -4
  142. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  143. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  144. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  145. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  146. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  147. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  148. package/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  149. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
  150. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  151. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  152. package/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  153. package/lib/components/ApplicationForm/DatePickerControl.js +6 -0
  154. package/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
  155. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  156. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  157. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  158. package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  159. package/lib/components/ApplicationForm/Footnote.js +1 -1
  160. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  161. package/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  162. package/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
  163. package/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  164. package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +3 -0
  165. package/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
  166. package/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  167. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  168. package/lib/components/Blocks.js +0 -2
  169. package/lib/components/Blocks.js.map +1 -1
  170. package/lib/components/Bonus/BonusContent.d.ts +1 -0
  171. package/lib/components/Calculator/Calculator.mobile.js +6 -5
  172. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  173. package/lib/components/Calculator/CalculatorContent.d.ts +3 -0
  174. package/lib/components/Carousel/renderCarouselCards.js +2 -2
  175. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  176. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  177. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  178. package/lib/components/CarouselCard/titleSize.d.ts +1 -1
  179. package/lib/components/CarouselCard/titleSize.js +1 -1
  180. package/lib/components/CarouselCard/titleSize.js.map +1 -1
  181. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  182. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  183. package/lib/components/Footer/Footer.mobile.js +2 -2
  184. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  185. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -1
  186. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  187. package/lib/components/Footer/SocialMedia.js +3 -3
  188. package/lib/components/Footer/SocialMedia.js.map +1 -1
  189. package/lib/components/Footer/iconsMap.js +4 -0
  190. package/lib/components/Footer/iconsMap.js.map +1 -1
  191. package/lib/components/HorizontalLayout/HorizontalLayout.js +2 -3
  192. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  193. package/lib/components/LinkDocs/LinkDocItem.js +6 -14
  194. package/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  195. package/lib/components/LinkDocs/LinkDocs.js +4 -3
  196. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  197. package/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  198. package/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
  199. package/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  200. package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  201. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  202. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  203. package/lib/components/MobileAppTile/renderList.d.ts +1 -1
  204. package/lib/components/MobileAppTile/renderList.js +3 -2
  205. package/lib/components/MobileAppTile/renderList.js.map +1 -1
  206. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
  207. package/lib/components/ProductBlock/ProductBlock.js +2 -4
  208. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  209. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  210. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  211. package/lib/components/TariffsTable/TariffsTable.js +1 -2
  212. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  213. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  214. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  215. package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  216. package/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  217. package/lib/components/VerticalLayout/VerticalLayout.js +6 -2
  218. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  219. package/lib/icons/IconName.d.ts +16 -2
  220. package/lib/icons/IconName.js +14 -0
  221. package/lib/icons/IconName.js.map +1 -1
  222. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  223. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  224. package/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  225. package/lib/ui-kit/DatePicker/DatePicker.js +4 -4
  226. package/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  227. package/lib/ui-kit/DatePicker/getYears.js +1 -1
  228. package/lib/ui-kit/Input/Input.js +1 -1
  229. package/lib/ui-kit/Input/Input.js.map +1 -1
  230. package/lib/ui-kit/NotFound/NotFound.js +1 -1
  231. package/lib/ui-kit/NotFound/NotFound.js.map +1 -1
  232. package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  233. package/lib/ui-kit/Select/Select.js +1 -1
  234. package/lib/ui-kit/Select/Select.js.map +1 -1
  235. package/lib/utils/getBorderStyle.d.ts +1 -0
  236. package/lib/utils/getBorderStyle.js +4 -0
  237. package/lib/utils/getBorderStyle.js.map +1 -0
  238. package/{dist/api/CorporateLeadAPI.d.ts → mobile/bundle/api/LeadServiceAPI.d.ts} +2 -2
  239. package/mobile/bundle/bundle.umd.js +290 -95
  240. package/mobile/bundle/bundle.umd.min.js +1 -1
  241. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  242. package/mobile/bundle/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  243. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  244. package/mobile/bundle/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  245. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  246. package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
  247. package/mobile/bundle/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  248. package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  249. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  250. package/mobile/bundle/components/Bonus/BonusContent.d.ts +1 -0
  251. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +3 -0
  252. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  253. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  254. package/mobile/bundle/components/MobileAppTile/renderList.d.ts +1 -1
  255. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
  256. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  257. package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  258. package/mobile/bundle/icons/IconName.d.ts +16 -2
  259. package/mobile/bundle/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  260. package/mobile/bundle/utils/getBorderStyle.d.ts +1 -0
  261. package/mobile/dist/api/LeadServiceAPI.d.ts +15 -0
  262. package/mobile/dist/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +7 -6
  263. package/mobile/dist/api/LeadServiceAPI.js.map +1 -0
  264. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -4
  265. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  266. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  267. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  268. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  269. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  270. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  271. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  272. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +52 -0
  273. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  274. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  275. package/mobile/dist/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  276. package/mobile/dist/components/ApplicationForm/DatePickerControl.js +8 -0
  277. package/mobile/dist/components/ApplicationForm/DatePickerControl.js.map +1 -0
  278. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  279. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  280. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  281. package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  282. package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
  283. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  284. package/mobile/dist/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  285. package/mobile/dist/components/{PromoTile/PromoTileContent.js → ApplicationForm/IndividualsFormState.js} +1 -1
  286. package/mobile/dist/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  287. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  288. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +11 -0
  289. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  290. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  291. package/mobile/dist/components/Bonus/BonusContent.d.ts +1 -0
  292. package/mobile/dist/components/Calculator/Calculator.js +6 -5
  293. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  294. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +3 -0
  295. package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
  296. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  297. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  298. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  299. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  300. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  301. package/mobile/dist/components/Footer/Footer.js +2 -2
  302. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  303. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -1
  304. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  305. package/mobile/dist/components/Footer/SocialMedia.js +3 -3
  306. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  307. package/mobile/dist/components/Footer/iconsMap.js +4 -0
  308. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  309. package/mobile/dist/components/LinkDocs/LinkDocItem.js +6 -14
  310. package/mobile/dist/components/LinkDocs/LinkDocItem.js.map +1 -1
  311. package/mobile/dist/components/LinkDocs/LinkDocs.js +4 -3
  312. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  313. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  314. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js +14 -5
  315. package/mobile/dist/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  316. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  317. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  318. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  319. package/mobile/dist/components/MobileAppTile/renderList.d.ts +1 -1
  320. package/mobile/dist/components/MobileAppTile/renderList.js +3 -2
  321. package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
  322. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
  323. package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -4
  324. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  325. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -2
  326. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  327. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  328. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  329. package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  330. package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  331. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +6 -2
  332. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  333. package/mobile/dist/icons/IconName.d.ts +16 -2
  334. package/mobile/dist/icons/IconName.js +14 -0
  335. package/mobile/dist/icons/IconName.js.map +1 -1
  336. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  337. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  338. package/mobile/dist/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  339. package/mobile/dist/ui-kit/DatePicker/DatePicker.js +4 -4
  340. package/mobile/dist/ui-kit/DatePicker/DatePicker.js.map +1 -1
  341. package/mobile/dist/ui-kit/DatePicker/getYears.js +1 -1
  342. package/mobile/dist/ui-kit/Input/Input.js +1 -1
  343. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  344. package/mobile/dist/ui-kit/NotFound/NotFound.js +1 -1
  345. package/mobile/dist/ui-kit/NotFound/NotFound.js.map +1 -1
  346. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  347. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  348. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  349. package/mobile/dist/utils/getBorderStyle.d.ts +1 -0
  350. package/mobile/dist/utils/getBorderStyle.js +7 -0
  351. package/mobile/dist/utils/getBorderStyle.js.map +1 -0
  352. package/mobile/lib/api/LeadServiceAPI.d.ts +15 -0
  353. package/mobile/lib/api/{CorporateLeadAPI.js → LeadServiceAPI.js} +5 -4
  354. package/mobile/lib/api/LeadServiceAPI.js.map +1 -0
  355. package/mobile/lib/common.css +1 -1
  356. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -4
  357. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  358. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +11 -1
  359. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -2
  360. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  361. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  362. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  363. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.d.ts +2 -0
  364. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +50 -0
  365. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -0
  366. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  367. package/mobile/lib/components/ApplicationForm/DatePickerControl.d.ts +8 -0
  368. package/mobile/lib/components/ApplicationForm/DatePickerControl.js +6 -0
  369. package/mobile/lib/components/ApplicationForm/DatePickerControl.js.map +1 -0
  370. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  371. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  372. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  373. package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  374. package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
  375. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  376. package/mobile/lib/components/ApplicationForm/IndividualsFormState.d.ts +9 -0
  377. package/mobile/lib/components/ApplicationForm/IndividualsFormState.js +2 -0
  378. package/mobile/lib/components/ApplicationForm/IndividualsFormState.js.map +1 -0
  379. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +4 -0
  380. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +8 -0
  381. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +1 -0
  382. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -0
  383. package/mobile/lib/components/Bonus/BonusContent.d.ts +1 -0
  384. package/mobile/lib/components/Calculator/Calculator.js +6 -5
  385. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  386. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +3 -0
  387. package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
  388. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  389. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  390. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  391. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
  392. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  393. package/mobile/lib/components/Footer/Footer.js +2 -2
  394. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  395. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -1
  396. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  397. package/mobile/lib/components/Footer/SocialMedia.js +3 -3
  398. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  399. package/mobile/lib/components/Footer/iconsMap.js +4 -0
  400. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  401. package/mobile/lib/components/LinkDocs/LinkDocItem.js +6 -14
  402. package/mobile/lib/components/LinkDocs/LinkDocItem.js.map +1 -1
  403. package/mobile/lib/components/LinkDocs/LinkDocs.js +4 -3
  404. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  405. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +6 -0
  406. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js +14 -5
  407. package/mobile/lib/components/LinkDocs/linkDocsContentExample.js.map +1 -1
  408. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  409. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  410. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  411. package/mobile/lib/components/MobileAppTile/renderList.d.ts +1 -1
  412. package/mobile/lib/components/MobileAppTile/renderList.js +3 -2
  413. package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
  414. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +2 -0
  415. package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -4
  416. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  417. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -2
  418. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  419. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  420. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  421. package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
  422. package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +1 -0
  423. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +6 -2
  424. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  425. package/mobile/lib/icons/IconName.d.ts +16 -2
  426. package/mobile/lib/icons/IconName.js +14 -0
  427. package/mobile/lib/icons/IconName.js.map +1 -1
  428. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  429. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  430. package/mobile/lib/ui-kit/DatePicker/DatePicker.d.ts +1 -0
  431. package/mobile/lib/ui-kit/DatePicker/DatePicker.js +4 -4
  432. package/mobile/lib/ui-kit/DatePicker/DatePicker.js.map +1 -1
  433. package/mobile/lib/ui-kit/DatePicker/getYears.js +1 -1
  434. package/mobile/lib/ui-kit/Input/Input.js +1 -1
  435. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  436. package/mobile/lib/ui-kit/NotFound/NotFound.js +1 -1
  437. package/mobile/lib/ui-kit/NotFound/NotFound.js.map +1 -1
  438. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  439. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  440. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  441. package/mobile/lib/utils/getBorderStyle.d.ts +1 -0
  442. package/mobile/lib/utils/getBorderStyle.js +4 -0
  443. package/mobile/lib/utils/getBorderStyle.js.map +1 -0
  444. package/mobile/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
  445. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
  446. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
  447. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
  448. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
  449. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  450. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
  451. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  452. package/mobile/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
  453. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  454. package/mobile/src/components/ApplicationForm/Footnote.tsx +3 -2
  455. package/mobile/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
  456. package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
  457. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
  458. package/mobile/src/components/Bonus/BonusContent.ts +1 -0
  459. package/mobile/src/components/Calculator/Calculator.tsx +9 -9
  460. package/mobile/src/components/Calculator/CalculatorContent.ts +3 -0
  461. package/mobile/src/components/Carousel/renderCarouselCards.tsx +3 -2
  462. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
  463. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  464. package/mobile/src/components/Footer/Footer.tsx +7 -5
  465. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -1
  466. package/mobile/src/components/Footer/SocialMedia.tsx +8 -8
  467. package/mobile/src/components/Footer/iconsMap.ts +4 -0
  468. package/mobile/src/components/LinkDocs/LinkDocItem.tsx +24 -34
  469. package/mobile/src/components/LinkDocs/LinkDocs.example.json +4 -1
  470. package/mobile/src/components/LinkDocs/LinkDocs.tsx +5 -3
  471. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +6 -0
  472. package/mobile/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
  473. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
  474. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
  475. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
  476. package/mobile/src/components/MobileAppTile/renderList.tsx +9 -4
  477. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
  478. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -0
  479. package/mobile/src/components/ProductBlock/ProductBlock.tsx +2 -4
  480. package/mobile/src/components/ProductGallery/ProductGallery.example.json +1 -1
  481. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
  482. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
  483. package/mobile/src/components/TariffsTable/TariffsTable.tsx +2 -3
  484. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
  485. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  486. package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
  487. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
  488. package/mobile/src/icons/CardSendIcon.svg +9 -0
  489. package/mobile/src/icons/CoinIcon.svg +5 -0
  490. package/mobile/src/icons/ConvertCardIcon.svg +8 -0
  491. package/mobile/src/icons/DzenIcon.svg +4 -0
  492. package/mobile/src/icons/HeartTickIcon.svg +5 -0
  493. package/mobile/src/icons/IconName.ts +4 -4
  494. package/mobile/src/icons/NotificationBingIcon.svg +5 -0
  495. package/mobile/src/icons/Security/320/241ardIcon.svg +7 -0
  496. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
  497. package/mobile/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
  498. package/mobile/src/ui-kit/DatePicker/getYears.ts +1 -1
  499. package/mobile/src/ui-kit/Input/Input.tsx +1 -1
  500. package/mobile/src/ui-kit/NotFound/NotFound.tsx +1 -1
  501. package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  502. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  503. package/mobile/src/utils/getBorderStyle.ts +4 -0
  504. package/package.json +1 -1
  505. package/src/api/{CorporateLeadAPI.ts → LeadServiceAPI.ts} +5 -3
  506. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +14 -0
  507. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  508. package/src/components/ApplicationForm/ApplicationForm.tsx +14 -8
  509. package/src/components/ApplicationForm/ApplicationForm.ui.json +5 -2
  510. package/src/components/ApplicationForm/ApplicationFormContent.ts +13 -1
  511. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +1 -3
  512. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  513. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +74 -0
  514. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  515. package/src/components/ApplicationForm/DatePickerControl.tsx +33 -0
  516. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  517. package/src/components/ApplicationForm/Footnote.tsx +3 -2
  518. package/src/components/ApplicationForm/IndividualsFormState.ts +9 -0
  519. package/src/components/ApplicationForm/renderIndividualsFields.tsx +46 -0
  520. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -0
  521. package/src/components/Blocks.ts +0 -2
  522. package/src/components/Bonus/BonusContent.ts +1 -0
  523. package/src/components/Calculator/Calculator.mobile.tsx +9 -9
  524. package/src/components/Calculator/CalculatorContent.ts +3 -0
  525. package/src/components/Carousel/renderCarouselCards.tsx +3 -2
  526. package/src/components/CarouselCard/CarouselCard.tsx +1 -1
  527. package/src/components/CarouselCard/titleSize.tsx +1 -1
  528. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
  529. package/src/components/Footer/Footer.mobile.tsx +7 -5
  530. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -1
  531. package/src/components/Footer/SocialMedia.tsx +8 -8
  532. package/src/components/Footer/iconsMap.ts +4 -0
  533. package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -3
  534. package/src/components/LinkDocs/LinkDocItem.tsx +24 -34
  535. package/src/components/LinkDocs/LinkDocs.example.json +4 -1
  536. package/src/components/LinkDocs/LinkDocs.tsx +5 -3
  537. package/src/components/LinkDocs/LinkDocsContent.ts +6 -0
  538. package/src/components/LinkDocs/linkDocsContentExample.ts +14 -5
  539. package/src/components/MobileAppTile/MobileAppTile.example.json +2 -1
  540. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +3 -1
  541. package/src/components/MobileAppTile/MobileAppTile.tsx +2 -1
  542. package/src/components/MobileAppTile/MobileAppTileContent.ts +5 -1
  543. package/src/components/MobileAppTile/renderList.tsx +9 -4
  544. package/src/components/OfficesAtmsMap/OfficesAtmsMap.ui.json +16 -1
  545. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +2 -0
  546. package/src/components/ProductBlock/ProductBlock.tsx +2 -4
  547. package/src/components/ProductGallery/ProductGallery.example.json +1 -1
  548. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  549. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +1 -0
  550. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +1 -0
  551. package/src/components/TariffsTable/TariffsTable.tsx +2 -3
  552. package/src/components/TariffsTable/TariffsTableCell.tsx +0 -1
  553. package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  554. package/src/components/TariffsTable/TariffsTableVertical.tsx +0 -1
  555. package/src/components/VerticalLayout/VerticalLayout.tsx +9 -2
  556. package/src/icons/CardSendIcon.svg +9 -0
  557. package/src/icons/CoinIcon.svg +5 -0
  558. package/src/icons/ConvertCardIcon.svg +8 -0
  559. package/src/icons/DzenIcon.svg +4 -0
  560. package/src/icons/HeartTickIcon.svg +5 -0
  561. package/src/icons/IconName.ts +22 -1
  562. package/src/icons/NotificationBingIcon.svg +5 -0
  563. package/src/icons/Security/320/241ardIcon.svg +7 -0
  564. package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -7
  565. package/src/ui-kit/DatePicker/DatePicker.tsx +13 -5
  566. package/src/ui-kit/DatePicker/getYears.ts +1 -1
  567. package/src/ui-kit/Input/Input.tsx +1 -1
  568. package/src/ui-kit/NotFound/NotFound.tsx +1 -1
  569. package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
  570. package/src/ui-kit/Select/Select.tsx +1 -1
  571. package/src/utils/getBorderStyle.ts +4 -0
  572. package/bundle/components/PromoTile/PromoTile.d.ts +0 -5
  573. package/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
  574. package/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
  575. package/bundle/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
  576. package/dist/api/CorporateLeadAPI.js.map +0 -1
  577. package/dist/components/PromoTile/PromoTile.d.ts +0 -5
  578. package/dist/components/PromoTile/PromoTile.js +0 -20
  579. package/dist/components/PromoTile/PromoTile.js.map +0 -1
  580. package/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
  581. package/dist/components/PromoTile/PromoTileContent.js.map +0 -1
  582. package/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
  583. package/dist/components/TariffsTable/headlineAlign.js +0 -4
  584. package/dist/components/TariffsTable/headlineAlign.js.map +0 -1
  585. package/dist/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
  586. package/dist/components/TariffsTable/headlineAlign.mobile.js +0 -4
  587. package/dist/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
  588. package/lib/api/CorporateLeadAPI.js.map +0 -1
  589. package/lib/components/PromoTile/PromoTile.d.ts +0 -5
  590. package/lib/components/PromoTile/PromoTile.fixture.d.ts +0 -6
  591. package/lib/components/PromoTile/PromoTile.js +0 -18
  592. package/lib/components/PromoTile/PromoTile.js.map +0 -1
  593. package/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
  594. package/lib/components/PromoTile/PromoTileContent.js +0 -2
  595. package/lib/components/PromoTile/PromoTileContent.js.map +0 -1
  596. package/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
  597. package/lib/components/TariffsTable/headlineAlign.js +0 -2
  598. package/lib/components/TariffsTable/headlineAlign.js.map +0 -1
  599. package/lib/components/TariffsTable/headlineAlign.mobile.d.ts +0 -1
  600. package/lib/components/TariffsTable/headlineAlign.mobile.js +0 -2
  601. package/lib/components/TariffsTable/headlineAlign.mobile.js.map +0 -1
  602. package/mobile/bundle/components/PromoTile/PromoTile.d.ts +0 -5
  603. package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +0 -10
  604. package/mobile/bundle/components/TariffsTable/headlineAlign.d.ts +0 -1
  605. package/mobile/dist/api/CorporateLeadAPI.d.ts +0 -15
  606. package/mobile/dist/api/CorporateLeadAPI.js.map +0 -1
  607. package/mobile/dist/components/PromoTile/PromoTile.d.ts +0 -5
  608. package/mobile/dist/components/PromoTile/PromoTile.js +0 -20
  609. package/mobile/dist/components/PromoTile/PromoTile.js.map +0 -1
  610. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +0 -10
  611. package/mobile/dist/components/PromoTile/PromoTileContent.js.map +0 -1
  612. package/mobile/dist/components/TariffsTable/headlineAlign.d.ts +0 -1
  613. package/mobile/dist/components/TariffsTable/headlineAlign.js +0 -4
  614. package/mobile/dist/components/TariffsTable/headlineAlign.js.map +0 -1
  615. package/mobile/lib/api/CorporateLeadAPI.d.ts +0 -15
  616. package/mobile/lib/api/CorporateLeadAPI.js.map +0 -1
  617. package/mobile/lib/components/PromoTile/PromoTile.d.ts +0 -5
  618. package/mobile/lib/components/PromoTile/PromoTile.js +0 -18
  619. package/mobile/lib/components/PromoTile/PromoTile.js.map +0 -1
  620. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +0 -10
  621. package/mobile/lib/components/PromoTile/PromoTileContent.js +0 -2
  622. package/mobile/lib/components/PromoTile/PromoTileContent.js.map +0 -1
  623. package/mobile/lib/components/TariffsTable/headlineAlign.d.ts +0 -1
  624. package/mobile/lib/components/TariffsTable/headlineAlign.js +0 -2
  625. package/mobile/lib/components/TariffsTable/headlineAlign.js.map +0 -1
  626. package/mobile/src/components/PromoTile/PromoTile.example.json +0 -16
  627. package/mobile/src/components/PromoTile/PromoTile.tsx +0 -53
  628. package/mobile/src/components/PromoTile/PromoTile.ui.json +0 -1
  629. package/mobile/src/components/PromoTile/PromoTileContent.ts +0 -14
  630. package/mobile/src/components/TariffsTable/headlineAlign.tsx +0 -1
  631. package/src/components/PromoTile/PromoTile.example.json +0 -16
  632. package/src/components/PromoTile/PromoTile.fixture.tsx +0 -25
  633. package/src/components/PromoTile/PromoTile.tsx +0 -53
  634. package/src/components/PromoTile/PromoTile.ui.json +0 -1
  635. package/src/components/PromoTile/PromoTileContent.ts +0 -14
  636. package/src/components/TariffsTable/headlineAlign.mobile.tsx +0 -1
  637. package/src/components/TariffsTable/headlineAlign.tsx +0 -1
@@ -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,11 +895,11 @@
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$1(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" }));
901
- const getBorderStyle = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
902
+ const getBorderStyle$1 = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
902
903
 
903
904
  const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
904
905
 
@@ -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,12 +2573,13 @@
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
- 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" })] }));
2581
+ const align = tab.nav?.align || 'text-left';
2582
+ 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: align, color: "text-white", children: tab.nav?.title }), jsx(Text, { align: align, 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" })] }));
2386
2583
  };
2387
2584
 
2388
2585
  const NumberInput = JSX((props) => {
@@ -2527,6 +2724,10 @@
2527
2724
  : null;
2528
2725
  }
2529
2726
 
2727
+ const getBorderStyle = (showBorder) => showBorder
2728
+ ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
2729
+ : '';
2730
+
2530
2731
  const renderCardHighlight = ({ className, text = 'ХИТ' } = {}) => (jsxs("div", { className: style('w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black', className), children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "24", height: "24" }), jsx(Paragraph, { size: "text-s", font: "font-normal", align: "text-center", color: "text-primary-text", children: text })] }));
2531
2732
 
2532
2733
  const cardBaseStyle = 'relative h-full';
@@ -2555,8 +2756,7 @@
2555
2756
  };
2556
2757
  const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'));
2557
2758
  const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
2558
- 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');
2759
+ someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
2560
2760
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
2561
2761
 
2562
2762
  const VISIBLE_ITEM_COUNT = 0;
@@ -2600,7 +2800,7 @@
2600
2800
 
2601
2801
  const layerBaseStyle = 'z-10 border border-solid w-full h-full';
2602
2802
  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], {
2803
+ 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
2804
  className: 'mt-m sm:mt-6xl sm:justify-center',
2605
2805
  isVertical: true,
2606
2806
  })] })] }) })));
@@ -2713,7 +2913,7 @@
2713
2913
  'description' in _ ? (jsx("span", { className: _.descriptionClassName, children: renderBenefitDescription(_.description, i) }, String(i))) : null,
2714
2914
  ]);
2715
2915
 
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(_) })] })));
2916
+ 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
2917
 
2718
2918
  const MAX_BENEFITS_LEN_DEVIATION = 16;
2719
2919
  const benefitLength = (_) => _.type === 'rte'
@@ -2770,6 +2970,10 @@
2770
2970
  origins: ['rutube.ru'],
2771
2971
  iconMapped: { icon: 'RutubeIcon' },
2772
2972
  },
2973
+ {
2974
+ origins: ['dzen.ru'],
2975
+ iconMapped: { icon: 'DzenIcon' },
2976
+ },
2773
2977
  ];
2774
2978
 
2775
2979
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
@@ -2791,11 +2995,11 @@
2791
2995
  version,
2792
2996
  };
2793
2997
  });
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, {
2998
+ 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' : '');
2999
+ return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
2796
3000
  className: stretched ? 'w-full' : '',
2797
3001
  buttonClassName,
2798
- }) })] }));
3002
+ }) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
2799
3003
  });
2800
3004
 
2801
3005
  const ImageAlwaysOnRight = false;
@@ -2815,7 +3019,7 @@
2815
3019
  const cellsNode = cardCells.map(renderCardInfo);
2816
3020
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
2817
3021
  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] }));
3022
+ 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
3023
  });
2820
3024
  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
3025
 
@@ -2873,7 +3077,7 @@
2873
3077
  return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2874
3078
  };
2875
3079
 
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 })] })));
3080
+ 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
3081
 
2878
3082
  const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2879
3083
  const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
@@ -3268,7 +3472,7 @@
3268
3472
  return (jsx("a", { className: style(horizontalNavigationLinkStyles, className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3269
3473
  });
3270
3474
 
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] })));
3475
+ 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
3476
 
3273
3477
  const LinkList = JSX(({ className = '', items, basePath }) => items?.length ? (jsx("ul", { className: style('flex flex-col', className), children: items.map(renderLinkListItem(basePath)) })) : null);
3274
3478
  const renderLinkListItem = (basePath) => (item, i) => {
@@ -3291,11 +3495,11 @@
3291
3495
  const fallback = rest.options?.page?.fallback;
3292
3496
  const { topItems } = useSitemap(fallback);
3293
3497
  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 })] }));
3498
+ 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
3499
  });
3296
3500
  const renderButton = ({ href = '/', text }, i) => {
3297
3501
  const { label } = findIconByHref(href);
3298
- return (jsx(Button, { className: "w-full mb-lg", text: text || label, version: "secondary", href: href, target: "_blank" }, String(i)));
3502
+ return (jsx(Button, { className: "w-full", text: text || label, version: "secondary", href: href, target: "_blank" }, String(i)));
3299
3503
  };
3300
3504
 
3301
3505
  const ICON_SIZE = { width: '34', height: '34' };
@@ -3363,9 +3567,12 @@
3363
3567
  '': '',
3364
3568
  };
3365
3569
 
3366
- 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({
3570
+ const VerticalLayout = JSX(({ className = '', gap = '', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, isInnerBorder = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
3367
3571
  ...rest,
3368
- extraProps: { className: 'w-full', padding: isInnerPadding ? '' : 'p-0' },
3572
+ extraProps: {
3573
+ className: style('w-full', getBorderStyle(isInnerBorder)),
3574
+ padding: isInnerPadding ? '' : 'p-0',
3575
+ },
3369
3576
  }) })));
3370
3577
  VerticalLayout.childrenTypes = [];
3371
3578
 
@@ -3387,20 +3594,12 @@
3387
3594
  return `${parseFloat((bytes / Math.pow(KILO, i)).toFixed(decimals))} ${KILO_SIZES[i]}`;
3388
3595
  };
3389
3596
 
3390
- const LinkDocItem = JSX(({ icon, text, fileSize, ...linkProps }) => (jsxs("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", ...linkProps, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] })));
3391
- const formatSuffix = (ext, fileSize) => {
3392
- const prefix = ext || fileSize ? ',' : '';
3393
- const extension = ext ? ` ${ext}` : '';
3394
- const size = fileSize ? ` (${fileSize})` : '';
3395
- return prefix + extension + size;
3396
- };
3397
- const getExtFromHref = (href) => {
3398
- if (!href) {
3399
- return '';
3400
- }
3401
- const index = href.lastIndexOf('.');
3402
- return index !== -1 ? href.substring(index + 1) : '';
3403
- };
3597
+ const LinkDocItem = JSX(({ icon, text, fileFormat, fileSize, ...linkProps }) => {
3598
+ const prefix = fileFormat || fileSize ? ',' : '';
3599
+ const size = fileSize ?? '';
3600
+ const format = fileFormat ? String(fileFormat) : '';
3601
+ return (jsxs("a", { className: "flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", ...linkProps, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: linkProps?.href && `${size} ${prefix} ${format}` })] })) : null] }));
3602
+ });
3404
3603
 
3405
3604
  const linkIconStyle = 'min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md';
3406
3605
 
@@ -3410,26 +3609,27 @@
3410
3609
  };
3411
3610
  const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => {
3412
3611
  const router = useRouter();
3413
- return (jsxs(BlockWrapper, { className: style('space-y-lg', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, align: align, headlineVersion: "M", as: "h2", isEmbedded: true }), documents?.length ? (jsx("div", { className: style('grid gap-xl', columnsMode === 'double' ? '@md:grid-cols-2' : 'grid-cols-1', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map(renderLinkDocItem(router, columnsMode, icon)) })) : null] }));
3612
+ return (jsxs(BlockWrapper, { className: style('space-y-lg', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, align: align, headlineVersion: "M", as: "h2", isEmbedded: true }), documents?.length ? (jsx("div", { className: style('grid gap-xl', columnsMode === 'double' ? '@md:grid-cols-2' : 'grid-cols-1', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map(renderLinkDocItem(router, icon)) })) : null] }));
3414
3613
  });
3415
- const renderLinkDocItem = (router, columnsMode, icon) => (docBlockDef, i) => {
3614
+ const renderLinkDocItem = (router, icon) => (docBlockDef, i) => {
3416
3615
  const href = docBlockDef?.docType === 'Attachment'
3417
3616
  ? adjustHref(router)(docBlockDef?.attachment?.src)
3418
3617
  : docBlockDef?.href;
3419
3618
  const fileSize = docBlockDef?.docType === 'Attachment'
3420
3619
  ? formatBytes(docBlockDef?.attachment?.fileSize || 0)
3421
3620
  : docBlockDef?.fileSize;
3422
- return (jsx("div", { role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
3621
+ const fileFormat = docBlockDef?.docType !== 'Attachment' ? docBlockDef?.fileFormat : '';
3622
+ return (jsx("div", { role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileFormat: fileFormat, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
3423
3623
  };
3424
3624
 
3425
- const renderList$1 = (items, listItemSize) => {
3426
- return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
3625
+ const renderList$1 = (items, listItemSize, additionalDescription) => {
3626
+ return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx(Text, { size: "text-m", "font-weight": "font-light", color: "text-secondary-text", children: additionalDescription }));
3427
3627
  };
3428
3628
 
3429
- const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
3629
+ const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
3430
3630
  const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
3431
3631
  const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
3432
- return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [renderList$1(items, listItemSize), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
3632
+ return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: img, buttons: renderButtonsSection(buttons, { className: 'flex-wrap' }), children: [description ? (jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description })) : null, jsxs("div", { className: style('gap-m', 'flex flex-1 flex-col', 'flex-col items-start @xl:flex-row @xl:items-center'), children: [renderList$1(items, listItemSize, additionalDescription), qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md @xl:-order-1', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
3433
3633
  });
3434
3634
 
3435
3635
  const badgeBgStyleMap = {
@@ -3575,10 +3775,7 @@
3575
3775
  ev?.preventDefault();
3576
3776
  router.back();
3577
3777
  }, []);
3578
- const borderStyle = showBorder
3579
- ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
3580
- : '';
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
3778
+ return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', getBorderStyle(showBorder), className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
3582
3779
  ? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
3583
3780
  : null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
3584
3781
  });
@@ -4239,7 +4436,7 @@
4239
4436
  const handleChange = useCallback((ev) => {
4240
4437
  onChange && onChange(ev.target?.value || '');
4241
4438
  }, [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 })] }));
4439
+ 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
4440
  });
4244
4441
 
4245
4442
  function useDebouncedEffect(effect, deps, delay = 300) {
@@ -4550,8 +4747,6 @@
4550
4747
  const COLS_LENGTH_FOR_SCROLL = 2;
4551
4748
  const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
4552
4749
 
4553
- const headlineAlign = 'text-left';
4554
-
4555
4750
  const carouselContainerClassesMap = {
4556
4751
  comparison: 'flex gap-m duration-1000',
4557
4752
  tariff: 'flex gap-5xl flex-grow duration-1000',
@@ -4713,7 +4908,7 @@
4713
4908
  });
4714
4909
  const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
4715
4910
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
4716
- return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-0 @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: headlineAlign }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
4911
+ return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
4717
4912
  });
4718
4913
 
4719
4914
  const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
@@ -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.28";
4971
5166
 
4972
5167
  exports.Blocks = Blocks;
4973
5168
  exports.ContentPage = ContentPage;