@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',
@@ -684,7 +685,7 @@
684
685
 
685
686
  const Text = JSX(({ children, ...styleProps }) => (jsx("span", { className: style('font-sans', Object.values(styleProps)), children: children })));
686
687
 
687
- const Footnote = JSX(({ link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443, \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
688
+ const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
688
689
 
689
690
  const withValidator = (props, validator) => {
690
691
  const { value, isDirty } = props;
@@ -710,7 +711,7 @@
710
711
  const validStyle = valid
711
712
  ? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
712
713
  : 'border-error';
713
- return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx("input", { ref: inputRef, className: style('w-full border rounded-md text-primary-text outline-none p-m', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
714
+ return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx("input", { ref: inputRef, className: style('w-full h-14 border rounded-md text-primary-text outline-none p-m', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
714
715
  });
715
716
 
716
717
  const InputControl = JSX(({ className, label, value = '', error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(Input, { type: "text", "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
@@ -886,11 +887,11 @@
886
887
  onChange,
887
888
  onClose: handleClose,
888
889
  });
889
- return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
890
+ return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$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] })] }));
890
891
  });
891
892
  const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
892
893
  const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
893
- const getBorderStyle = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
894
+ const getBorderStyle$1 = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
894
895
 
895
896
  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 })] })));
896
897
 
@@ -908,7 +909,7 @@
908
909
  return (jsx("button", { type: "submit", className: style('p-m w-full @xl:w-auto', buttonStyle, className), children: button?.text ? button.text : 'Отправить заявку' }));
909
910
  };
910
911
 
911
- const initialFormState$4 = {
912
+ const initialFormState$5 = {
912
913
  acquiringType: { key: 'Торговый эквайринг' },
913
914
  fullName: '',
914
915
  inn: '',
@@ -940,7 +941,7 @@
940
941
  phone: phone.replace(/[^+\d]/g, ''),
941
942
  });
942
943
  }, [onSubmit]);
943
- const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
944
+ const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
944
945
  const regions = useGetRegions();
945
946
  return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430 \u0438 \u0440\u0435\u0433\u0438\u043E\u043D", className: "@xl:text-center" }), renderAcquiringRegion({ regions, field }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderAcquiringDataOrganization(field), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
946
947
  });
@@ -949,7 +950,7 @@
949
950
 
950
951
  const renderRegion$1 = ({ regions, field }) => (jsx(SelectControl, { className: "w-full", label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
951
952
 
952
- const initialFormState$3 = {
953
+ const initialFormState$4 = {
953
954
  name: '',
954
955
  phone: '',
955
956
  inn: '',
@@ -976,7 +977,7 @@
976
977
  phone: phone.replace(/[^+\d]/g, ''),
977
978
  });
978
979
  }, [onSubmit]);
979
- const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
980
+ const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
980
981
  const regions = useGetRegions();
981
982
  return (jsxs("form", { className: "container space-y-s", onSubmit: formProps.onSubmit, children: [renderRegion$1({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
982
983
  });
@@ -1071,7 +1072,7 @@
1071
1072
  text: address,
1072
1073
  })), ...withValidator(field('department'), defaultValidator) }) })] }));
1073
1074
 
1074
- const initialFormState$2 = {
1075
+ const initialFormState$3 = {
1075
1076
  amount: MIN_CREDIT_AMOUNT,
1076
1077
  term: 12,
1077
1078
  fullName: '',
@@ -1106,13 +1107,13 @@
1106
1107
  partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
1107
1108
  });
1108
1109
  }, [onSubmit]);
1109
- const [formState, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1110
+ const [formState, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
1110
1111
  const regions = useGetRegions();
1111
1112
  const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
1112
1113
  return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B", className: "@xl:text-center" }), renderCreditParameters(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderCreditDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "@xl:text-center" }), renderRegionDepartment({ regions, branches, field }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1113
1114
  });
1114
1115
 
1115
- const initialFormState$1 = {
1116
+ const initialFormState$2 = {
1116
1117
  name: '',
1117
1118
  phone: '',
1118
1119
  };
@@ -1120,8 +1121,7 @@
1120
1121
  name: nameValidator,
1121
1122
  phone: phoneValidator,
1122
1123
  });
1123
- const ApplicationFormDeposit = JSX((props) => {
1124
- const { button, link, onSubmit } = props;
1124
+ const ApplicationFormDeposit = JSX(({ button, link, onSubmit }) => {
1125
1125
  const handleSubmit = useCallback((formState) => {
1126
1126
  const { name, phone } = formState;
1127
1127
  isValidationSuccess(depositValidator(formState)) &&
@@ -1131,7 +1131,7 @@
1131
1131
  phone: phone.replace(/[^+\d]/g, ''),
1132
1132
  });
1133
1133
  }, [onSubmit]);
1134
- const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1134
+ const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1135
1135
  return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "@xl:text-center mb-m" }), jsxs("div", { className: "max-w-[560px] m-auto space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse @xl:items-center @xl:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1136
1136
  });
1137
1137
 
@@ -1155,7 +1155,227 @@
1155
1155
  version: button?.version,
1156
1156
  });
1157
1157
  const regionHref = regions?.find((_) => _.name === region.key)?.href;
1158
- return (jsxs("div", { className: "container space-y-s @xl:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1158
+ return (jsxs("div", { className: "container space-y-s @xl:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1159
+ });
1160
+
1161
+ const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1162
+ return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
1163
+ });
1164
+
1165
+ const CHECK_PATHS = [
1166
+ {
1167
+ d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1168
+ fillRule: 'evenodd',
1169
+ clipRule: 'evenodd',
1170
+ fill: 'white',
1171
+ },
1172
+ ];
1173
+ const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1174
+ const handleChange = useCallback((e) => {
1175
+ if (disabled) {
1176
+ return;
1177
+ }
1178
+ e.preventDefault();
1179
+ onChange && onChange(!value);
1180
+ }, [onChange, disabled, value]);
1181
+ const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1182
+ return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
1183
+ });
1184
+ const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1185
+
1186
+ const formatDate = (date, toTimeStamp = false) => {
1187
+ if (typeof date === 'string') {
1188
+ return date.split('-').reverse().join('.');
1189
+ }
1190
+ else {
1191
+ const day = String(date.getDate()).padStart(2, '0');
1192
+ const month = String(date.getMonth() + 1).padStart(2, '0');
1193
+ const year = toTimeStamp ? String(date.getFullYear()) : String(date.getFullYear()).slice(-2);
1194
+ return toTimeStamp ? `${year}-${month}-${day}` : `${day}.${month}.${year}`;
1195
+ }
1196
+ };
1197
+
1198
+ const noop = () => {
1199
+ // Do nothing
1200
+ };
1201
+
1202
+ const DAY_COUNT = 6;
1203
+ const WEEK_COUNT = 7;
1204
+ const renderCalendarCells = ({ today, firstDayOfWeek, totalDays, currentMonth, currentYear, min, max, onDateClick, }) => {
1205
+ const calendarCells = [];
1206
+ let dayCounter = 1;
1207
+ for (let i = 0; i < DAY_COUNT; i++) {
1208
+ const rowCells = [];
1209
+ for (let j = 0; j < WEEK_COUNT; j++) {
1210
+ if (i === 0 && j < firstDayOfWeek) {
1211
+ rowCells.push(jsx("td", {}, `empty-${j}`));
1212
+ }
1213
+ else if (dayCounter > totalDays) {
1214
+ rowCells.push(jsx("td", {}, `empty-${j}`));
1215
+ }
1216
+ else {
1217
+ const currentDate = new Date(currentYear, currentMonth, dayCounter);
1218
+ const isToday = checkIsToday(currentDate, today);
1219
+ const isDisabled = checkIsDisabled(currentDate, min, max);
1220
+ rowCells.push(jsx("td", { children: jsx("div", { className: getDayStyles(isToday, isDisabled), onClick: () => !isDisabled && onDateClick(currentDate), children: dayCounter }) }, `day-${dayCounter}`));
1221
+ dayCounter++;
1222
+ }
1223
+ }
1224
+ calendarCells.push(jsx("tr", { children: rowCells }, `row-${i}`));
1225
+ }
1226
+ return calendarCells;
1227
+ };
1228
+ const checkIsToday = (currentDate, today) => today && currentDate.toDateString() === today.toDateString();
1229
+ const checkIsDisabled = (currentDate, min, max) => (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
1230
+ const getDayStyles = (isToday, isDisabled) => style('p-s text-center rounded-md border', isToday ? '' : 'border-transparent hover:bg-gray', isDisabled ? 'text-gray hover:bg-transparent' : 'cursor-pointer');
1231
+
1232
+ const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
1233
+ const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop }) => {
1234
+ const handleDateClick = useCallback((date) => onDateSelect(date), []);
1235
+ const { firstDayOfWeek, totalDays } = useMemo(() => ({
1236
+ firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
1237
+ totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
1238
+ }), [currentYear, currentMonth]);
1239
+ return (jsxs("table", { className: "mx-auto", children: [jsx("thead", { className: "text-gray font-light", children: jsx("tr", { children: WEEK_DAYS.map((day, index) => (jsx("th", { className: "p-s", children: day }, String(index)))) }) }), jsx("tbody", { children: renderCalendarCells({
1240
+ firstDayOfWeek,
1241
+ today,
1242
+ totalDays,
1243
+ currentYear,
1244
+ currentMonth,
1245
+ min,
1246
+ max,
1247
+ onDateClick: handleDateClick,
1248
+ }) })] }));
1249
+ });
1250
+
1251
+ const months = [
1252
+ 'Январь',
1253
+ 'Февраль',
1254
+ 'Март',
1255
+ 'Апрель',
1256
+ 'Май',
1257
+ 'Июнь',
1258
+ 'Июль',
1259
+ 'Август',
1260
+ 'Сентябрь',
1261
+ 'Октябрь',
1262
+ 'Ноябрь',
1263
+ 'Декабрь',
1264
+ ];
1265
+
1266
+ const START_YEAR = 1940;
1267
+ const getYears = () => Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
1268
+
1269
+ const MONTHS_COUNT = 11;
1270
+ const MONTHS_OPTIONS = months.map((key) => ({ key }));
1271
+ const YEARS_OPTIONS = getYears()
1272
+ .reverse()
1273
+ .map((key) => ({ key: String(key) }));
1274
+ const useDatePickerManager = ({ onShowCalendar, showCalendar, selectedMonth, onMonthSelect, onYearSelect, selectedYear, }) => {
1275
+ const close = useCallback(() => showCalendar && onShowCalendar(false), [showCalendar]);
1276
+ const ref = useOutsideClick(close);
1277
+ const handleChangeVisibleCalendar = useCallback(() => onShowCalendar(!showCalendar), [showCalendar]);
1278
+ const handleNextMonth = useCallback(() => {
1279
+ if (selectedMonth + 1 <= MONTHS_COUNT) {
1280
+ onMonthSelect(selectedMonth + 1);
1281
+ }
1282
+ else {
1283
+ onMonthSelect(0);
1284
+ onYearSelect(selectedYear + 1);
1285
+ }
1286
+ }, [selectedMonth]);
1287
+ const handlePrevMonth = useCallback(() => {
1288
+ if (selectedMonth - 1 >= 0) {
1289
+ onMonthSelect(selectedMonth - 1);
1290
+ }
1291
+ else {
1292
+ onMonthSelect(11);
1293
+ onYearSelect(selectedYear - 1);
1294
+ }
1295
+ }, [selectedMonth]);
1296
+ const handleSelectMonth = useCallback(({ key }) => onMonthSelect(months.indexOf(key)), []);
1297
+ const handleSelectYear = useCallback(({ key }) => onYearSelect(Number(key)), []);
1298
+ return {
1299
+ handleChangeVisibleCalendar,
1300
+ handleNextMonth,
1301
+ handlePrevMonth,
1302
+ handleSelectMonth,
1303
+ handleSelectYear,
1304
+ monthsOptions: MONTHS_OPTIONS,
1305
+ yearsOptions: YEARS_OPTIONS,
1306
+ ref,
1307
+ };
1308
+ };
1309
+
1310
+ const ICON_PROPS = {
1311
+ name: 'ArrowUpIcon',
1312
+ iconVersion: 'black',
1313
+ width: '24',
1314
+ height: '24',
1315
+ };
1316
+ const SELECT_PROPS = {
1317
+ className: 'min-w-32',
1318
+ iconVersion: 'black',
1319
+ isBorder: false,
1320
+ };
1321
+ const formStyle = 'flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer ' +
1322
+ 'hover:border-black active:border-black focus:border-black';
1323
+ const DatePicker = JSX(({ className = '', label = '', value, valid = true, minDate, maxDate, onChange }) => {
1324
+ const [showCalendar, { setValue }] = useBool(false);
1325
+ const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
1326
+ const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
1327
+ const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
1328
+ onYearSelect: setSelectedYear,
1329
+ onMonthSelect: setSelectedMonth,
1330
+ onShowCalendar: setValue,
1331
+ selectedYear,
1332
+ selectedMonth,
1333
+ showCalendar,
1334
+ });
1335
+ return (jsxs("div", { className: style(className, 'relative'), ref: ref, children: [jsx(Text, { size: "text-m", children: label }), renderDatePickerForm(handleChangeVisibleCalendar, value, valid), showCalendar ? (jsxs("div", { className: "absolute bg-white z-10 select-none", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] }));
1336
+ });
1337
+ const renderDatePickerForm = (handleChangeVisibleCalendar, value, valid) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: style(formStyle, valid ? 'border-gray' : 'border-error'), children: [jsx(Paragraph, { children: value && formatDate(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
1338
+
1339
+ const DatePickerControl = JSX(({ className, label, value = undefined, error, onChange }) => (jsxs("div", { className: className, children: [label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx(DatePicker, { value: value, onChange: onChange, valid: Boolean(!error) }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
1340
+
1341
+ const renderIndividualsFields = (field) => (jsxs("div", { className: "@xl:flex @xl:justify-between @xl:gap-lg", children: [jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E", ...withValidator(field('middleName'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { className: "shrink-0 w-full", label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...withValidator(field('date'), defaultValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
1342
+
1343
+ const initialFormState$1 = {
1344
+ surname: '',
1345
+ name: '',
1346
+ middleName: '',
1347
+ phone: '',
1348
+ mail: '',
1349
+ date: undefined,
1350
+ consentDataProcessing: true,
1351
+ };
1352
+ const individualsValidator = objectValidator({
1353
+ surname: nameValidator,
1354
+ name: nameValidator,
1355
+ middleName: nameValidator,
1356
+ phone: phoneValidator,
1357
+ mail: defaultValidator,
1358
+ date: defaultValidator,
1359
+ });
1360
+ const ApplicationFormIndividuals = JSX((props) => {
1361
+ const { button, link, product, onSubmit } = props;
1362
+ const handleSubmit = useCallback((formState) => {
1363
+ const { surname, name, middleName, phone, mail, date, consentDataProcessing } = formState;
1364
+ isValidationSuccess(individualsValidator(formState)) &&
1365
+ onSubmit({
1366
+ typeForm: 'dpst',
1367
+ surname,
1368
+ name,
1369
+ middleName,
1370
+ mail,
1371
+ consentDataProcessing,
1372
+ phone: phone.replace(/[^+\d]/g, ''),
1373
+ date: date?.toISOString().slice(0, 10) || '',
1374
+ product: product || '',
1375
+ }, true);
1376
+ }, [onSubmit]);
1377
+ const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1378
+ return (jsxs("form", { className: "container space-y-s", onSubmit: formProps.onSubmit, children: [renderIndividualsFields(field), jsxs("div", { className: "@xl:flex justify-between items-center", children: [jsxs("div", { className: "@xl:mb-0 mb-2 flex items-center gap-3", children: [jsx(Checkbox, { ...withValidator(field('consentDataProcessing'), defaultValidator) }), jsx(Footnote, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u0441 ", link: link })] }), renderSubmitButton(button)] })] }));
1159
1379
  });
1160
1380
 
1161
1381
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
@@ -1262,6 +1482,7 @@
1262
1482
  ApplicationFormCredit,
1263
1483
  ApplicationFormAcquiring,
1264
1484
  ApplicationFormGrantSupport,
1485
+ ApplicationFormIndividuals,
1265
1486
  };
1266
1487
 
1267
1488
  const ResponseNotification = JSX(({ responseType }) => {
@@ -1270,12 +1491,12 @@
1270
1491
  return (jsxs("div", { className: `flex items-center p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponseOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponseFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-2xs" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1271
1492
  });
1272
1493
 
1273
- const API = CorporateLeadAPI();
1494
+ const API = LeadServiceAPI();
1274
1495
  const ApplicationForm = JSX((props) => {
1275
1496
  const { className, formBlock, ...rest } = props;
1276
1497
  const [responseType, setResponseType] = useState('');
1277
- const handleSubmit = useCallback(async (data) => {
1278
- const status = (await API.send(data)) ? 'OK' : 'Fail';
1498
+ const handleSubmit = useCallback(async (data, isIndividualType) => {
1499
+ const status = (await API.send(data, isIndividualType)) ? 'OK' : 'Fail';
1279
1500
  setResponseType(status);
1280
1501
  return status;
1281
1502
  }, []);
@@ -1664,31 +1885,6 @@
1664
1885
  : null, jsxs("div", { className: "flex flex-col gap-y-4xl @xl:w-96", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
1665
1886
  });
1666
1887
 
1667
- const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1668
- return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
1669
- });
1670
-
1671
- const CHECK_PATHS = [
1672
- {
1673
- d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1674
- fillRule: 'evenodd',
1675
- clipRule: 'evenodd',
1676
- fill: 'white',
1677
- },
1678
- ];
1679
- const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1680
- const handleChange = useCallback((e) => {
1681
- if (disabled) {
1682
- return;
1683
- }
1684
- e.preventDefault();
1685
- onChange && onChange(!value);
1686
- }, [onChange, disabled, value]);
1687
- const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1688
- return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
1689
- });
1690
- const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1691
-
1692
1888
  const STEP_DAYS = 1;
1693
1889
  const renderDaysInput = (props) => (jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
1694
1890
  const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
@@ -2543,6 +2739,10 @@
2543
2739
  : null;
2544
2740
  }
2545
2741
 
2742
+ const getBorderStyle = (showBorder) => showBorder
2743
+ ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
2744
+ : '';
2745
+
2546
2746
  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 })] }));
2547
2747
 
2548
2748
  const cardBaseStyle = 'relative h-full';
@@ -2571,8 +2771,7 @@
2571
2771
  };
2572
2772
  const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'));
2573
2773
  const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
2574
- someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), showBorder &&
2575
- 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider');
2774
+ someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
2576
2775
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
2577
2776
 
2578
2777
  const VISIBLE_ITEM_COUNT = 1;
@@ -2618,11 +2817,11 @@
2618
2817
  'gradient-color-text-on-yellow',
2619
2818
  ][blockIndex % 3];
2620
2819
 
2621
- const titleSize = 'L';
2820
+ const titleSize = 'XS';
2622
2821
 
2623
2822
  const layerBaseStyle = 'z-10 border border-solid w-full h-full';
2624
2823
  const layerStyle = style(layerBaseStyle, 'absolute hidden @xl:block border-transparent');
2625
- const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2824
+ const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl @container-normal', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative h-full", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2626
2825
  className: 'mt-m sm:mt-6xl sm:justify-center',
2627
2826
  isVertical: true,
2628
2827
  })] })] }) })));
@@ -2742,7 +2941,7 @@
2742
2941
  'description' in _ ? (jsx("span", { className: _.descriptionClassName, children: renderBenefitDescription(_.description, i) }, String(i))) : null,
2743
2942
  ]);
2744
2943
 
2745
- const BenefitItem = JSX(({ className, benefitsVersion, ..._ }) => (jsxs("div", { className: style('flex gap-m min-w-56', 'description' in _ && _.description ? 'items-start' : 'items-center', className), children: ['icon' in _ ? renderBenefitIcon(_.icon, benefitsVersion) : null, jsx("div", { children: renderBenefitText(_) })] })));
2944
+ const BenefitItem = JSX(({ className, benefitsVersion, ..._ }) => (jsxs("div", { className: style('flex gap-m min-w-56 items-center', className), children: ['icon' in _ ? renderBenefitIcon(_.icon, benefitsVersion) : null, jsx("div", { children: renderBenefitText(_) })] })));
2746
2945
 
2747
2946
  const MAX_BENEFITS_LEN_DEVIATION = 16;
2748
2947
  const benefitLength = (_) => _.type === 'rte'
@@ -2799,6 +2998,10 @@
2799
2998
  origins: ['rutube.ru'],
2800
2999
  iconMapped: { icon: 'RutubeIcon' },
2801
3000
  },
3001
+ {
3002
+ origins: ['dzen.ru'],
3003
+ iconMapped: { icon: 'DzenIcon' },
3004
+ },
2802
3005
  ];
2803
3006
 
2804
3007
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
@@ -2820,11 +3023,11 @@
2820
3023
  version,
2821
3024
  };
2822
3025
  });
2823
- const buttonClassName = style('border border-solid hover:border-transparent group-data-primary:border-main-divider border-main-divider group-data-gray:border-green group/media', showButtonText && hasText ? '' : ' basis-auto', stretched ? 'flex-1 justify-center' : '');
2824
- return (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: renderButtonsSection(buttons, {
3026
+ 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' : '');
3027
+ return (jsxs("div", { className: style('flex flex-col gap-xs', className), children: [jsx("div", { className: "flex gap-xs", children: renderButtonsSection(buttons, {
2825
3028
  className: stretched ? 'w-full' : '',
2826
3029
  buttonClassName,
2827
- }) })] }));
3030
+ }) }), children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null] }));
2828
3031
  });
2829
3032
 
2830
3033
  const ImageAlwaysOnRight = true;
@@ -2868,7 +3071,7 @@
2868
3071
  const cellsNode = cardCells.map(renderCardInfo);
2869
3072
  const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
2870
3073
  const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
2871
- return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-3xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
3074
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(Button, { className: "w-full mt-m mb-lg", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
2872
3075
  });
2873
3076
  const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
2874
3077
 
@@ -2962,7 +3165,7 @@
2962
3165
  return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2963
3166
  };
2964
3167
 
2965
- const NotFound = JSX(({ title, description }) => (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: AlignStyles })] })));
3168
+ const NotFound = JSX(({ title, description }) => (jsxs("div", { className: "bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center", children: [jsx(Img, { image: { icon: 'MagnifierIcon', iconVersion: 'normal' }, width: "120", height: "120" }), jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: AlignStyles })] })));
2966
3169
 
2967
3170
  const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2968
3171
  const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
@@ -3157,164 +3360,11 @@
3157
3360
 
3158
3361
  const Pagination = ({ currentPage, onPageChange, totalPages, itemCount, onItemCountChange, }) => (jsxs("div", { className: "mt-3xl flex justify-between items-center select-none", role: "navigation", "aria-label": "\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F", children: [jsx(PaginationContainer, { currentPage: currentPage, onPageChange: onPageChange, totalPages: totalPages }), itemCount && onItemCountChange ? (jsx(PageSizeSelector, { itemCount: itemCount, onItemCountChange: onItemCountChange })) : null] }));
3159
3362
 
3160
- const formatDate$1 = (date, toTimeStamp = false) => {
3161
- if (typeof date === 'string') {
3162
- return date.split('-').reverse().join('.');
3163
- }
3164
- else {
3165
- const day = String(date.getDate()).padStart(2, '0');
3166
- const month = String(date.getMonth() + 1).padStart(2, '0');
3167
- const year = toTimeStamp ? String(date.getFullYear()) : String(date.getFullYear()).slice(-2);
3168
- return toTimeStamp ? `${year}-${month}-${day}` : `${day}.${month}.${year}`;
3169
- }
3170
- };
3171
-
3172
- const noop = () => {
3173
- // Do nothing
3174
- };
3175
-
3176
- const DAY_COUNT = 6;
3177
- const WEEK_COUNT = 7;
3178
- const renderCalendarCells = ({ today, firstDayOfWeek, totalDays, currentMonth, currentYear, min, max, onDateClick, }) => {
3179
- const calendarCells = [];
3180
- let dayCounter = 1;
3181
- for (let i = 0; i < DAY_COUNT; i++) {
3182
- const rowCells = [];
3183
- for (let j = 0; j < WEEK_COUNT; j++) {
3184
- if (i === 0 && j < firstDayOfWeek) {
3185
- rowCells.push(jsx("td", {}, `empty-${j}`));
3186
- }
3187
- else if (dayCounter > totalDays) {
3188
- rowCells.push(jsx("td", {}, `empty-${j}`));
3189
- }
3190
- else {
3191
- const currentDate = new Date(currentYear, currentMonth, dayCounter);
3192
- const isToday = checkIsToday(currentDate, today);
3193
- const isDisabled = checkIsDisabled(currentDate, min, max);
3194
- rowCells.push(jsx("td", { children: jsx("div", { className: getDayStyles(isToday, isDisabled), onClick: () => !isDisabled && onDateClick(currentDate), children: dayCounter }) }, `day-${dayCounter}`));
3195
- dayCounter++;
3196
- }
3197
- }
3198
- calendarCells.push(jsx("tr", { children: rowCells }, `row-${i}`));
3199
- }
3200
- return calendarCells;
3201
- };
3202
- const checkIsToday = (currentDate, today) => today && currentDate.toDateString() === today.toDateString();
3203
- const checkIsDisabled = (currentDate, min, max) => (min && currentDate.getTime() < min.getTime()) || (max && currentDate.getTime() > max.getTime());
3204
- const getDayStyles = (isToday, isDisabled) => style('p-s text-center rounded-md border', isToday ? '' : 'border-transparent hover:bg-gray', isDisabled ? 'text-gray hover:bg-transparent' : 'cursor-pointer');
3205
-
3206
- const WEEK_DAYS = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
3207
- const Calendar = JSX(({ today, currentMonth, currentYear, min, max, onDateSelect = noop }) => {
3208
- const handleDateClick = useCallback((date) => onDateSelect(date), []);
3209
- const { firstDayOfWeek, totalDays } = useMemo(() => ({
3210
- firstDayOfWeek: new Date(currentYear, currentMonth, 1).getDay() - 1,
3211
- totalDays: new Date(currentYear, currentMonth + 1, 0).getDate(),
3212
- }), [currentYear, currentMonth]);
3213
- return (jsxs("table", { className: "mx-auto", children: [jsx("thead", { className: "text-gray font-light", children: jsx("tr", { children: WEEK_DAYS.map((day, index) => (jsx("th", { className: "p-s", children: day }, String(index)))) }) }), jsx("tbody", { children: renderCalendarCells({
3214
- firstDayOfWeek,
3215
- today,
3216
- totalDays,
3217
- currentYear,
3218
- currentMonth,
3219
- min,
3220
- max,
3221
- onDateClick: handleDateClick,
3222
- }) })] }));
3223
- });
3224
-
3225
- const months = [
3226
- 'Январь',
3227
- 'Февраль',
3228
- 'Март',
3229
- 'Апрель',
3230
- 'Май',
3231
- 'Июнь',
3232
- 'Июль',
3233
- 'Август',
3234
- 'Сентябрь',
3235
- 'Октябрь',
3236
- 'Ноябрь',
3237
- 'Декабрь',
3238
- ];
3239
-
3240
- const START_YEAR = 1970;
3241
- const getYears = () => Array.from({ length: new Date().getFullYear() - START_YEAR + 1 }, (_, i) => START_YEAR + i);
3242
-
3243
- const MONTHS_COUNT = 11;
3244
- const MONTHS_OPTIONS = months.map((key) => ({ key }));
3245
- const YEARS_OPTIONS = getYears()
3246
- .reverse()
3247
- .map((key) => ({ key: String(key) }));
3248
- const useDatePickerManager = ({ onShowCalendar, showCalendar, selectedMonth, onMonthSelect, onYearSelect, selectedYear, }) => {
3249
- const close = useCallback(() => showCalendar && onShowCalendar(false), [showCalendar]);
3250
- const ref = useOutsideClick(close);
3251
- const handleChangeVisibleCalendar = useCallback(() => onShowCalendar(!showCalendar), [showCalendar]);
3252
- const handleNextMonth = useCallback(() => {
3253
- if (selectedMonth + 1 <= MONTHS_COUNT) {
3254
- onMonthSelect(selectedMonth + 1);
3255
- }
3256
- else {
3257
- onMonthSelect(0);
3258
- onYearSelect(selectedYear + 1);
3259
- }
3260
- }, [selectedMonth]);
3261
- const handlePrevMonth = useCallback(() => {
3262
- if (selectedMonth - 1 >= 0) {
3263
- onMonthSelect(selectedMonth - 1);
3264
- }
3265
- else {
3266
- onMonthSelect(11);
3267
- onYearSelect(selectedYear - 1);
3268
- }
3269
- }, [selectedMonth]);
3270
- const handleSelectMonth = useCallback(({ key }) => onMonthSelect(months.indexOf(key)), []);
3271
- const handleSelectYear = useCallback(({ key }) => onYearSelect(Number(key)), []);
3272
- return {
3273
- handleChangeVisibleCalendar,
3274
- handleNextMonth,
3275
- handlePrevMonth,
3276
- handleSelectMonth,
3277
- handleSelectYear,
3278
- monthsOptions: MONTHS_OPTIONS,
3279
- yearsOptions: YEARS_OPTIONS,
3280
- ref,
3281
- };
3282
- };
3283
-
3284
- const ICON_PROPS = {
3285
- name: 'ArrowUpIcon',
3286
- iconVersion: 'black',
3287
- width: '24',
3288
- height: '24',
3289
- };
3290
- const SELECT_PROPS = {
3291
- className: 'min-w-32',
3292
- iconVersion: 'black',
3293
- isBorder: false,
3294
- };
3295
- const formStyle = 'flex justify-between px-m py-s border border-gray rounded-md cursor-pointer ' +
3296
- 'hover:border-black active:border-black focus:border-black';
3297
- const DatePicker = JSX(({ className = '', label = '', value, minDate, maxDate, onChange }) => {
3298
- const [showCalendar, { setValue }] = useBool(false);
3299
- const [selectedMonth, setSelectedMonth] = useState(value?.getMonth() || new Date().getMonth());
3300
- const [selectedYear, setSelectedYear] = useState(value?.getFullYear() || new Date().getFullYear());
3301
- const { handlePrevMonth, handleNextMonth, handleSelectMonth, handleSelectYear, monthsOptions, yearsOptions, handleChangeVisibleCalendar, ref, } = useDatePickerManager({
3302
- onYearSelect: setSelectedYear,
3303
- onMonthSelect: setSelectedMonth,
3304
- onShowCalendar: setValue,
3305
- selectedYear,
3306
- selectedMonth,
3307
- showCalendar,
3308
- });
3309
- return (jsxs("div", { className: style(className, 'relative'), ref: ref, children: [jsx(Text, { size: "text-m", children: label }), renderDatePickerForm(handleChangeVisibleCalendar, value), showCalendar ? (jsxs("div", { className: "absolute bg-white z-10 select-none", children: [jsxs("div", { className: "flex gap-s", children: [jsx("div", { className: "my-auto", onClick: handlePrevMonth, children: jsx(Icon, { ...ICON_PROPS, className: "-rotate-90 cursor-pointer" }) }), jsx(Select, { onChange: handleSelectMonth, value: { key: months[selectedMonth] }, options: monthsOptions, ...SELECT_PROPS }), jsx(Select, { onChange: handleSelectYear, value: { key: String(selectedYear) }, options: yearsOptions, ...SELECT_PROPS }), jsx("div", { className: "my-auto", onClick: handleNextMonth, children: jsx(Icon, { ...ICON_PROPS, className: "rotate-90 cursor-pointer" }) })] }), jsx(Calendar, { today: value, currentMonth: selectedMonth, currentYear: selectedYear, onDateSelect: onChange, min: minDate, max: maxDate })] })) : null] }));
3310
- });
3311
- const renderDatePickerForm = (handleChangeVisibleCalendar, value) => (jsxs("div", { onClick: handleChangeVisibleCalendar, className: formStyle, children: [jsx(Paragraph, { children: value && formatDate$1(value) }), jsx(Icon, { ...ICON_PROPS, name: "CalendarIcon" })] }));
3312
-
3313
3363
  const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus, placeholder = 'Поиск по сайту' }) => {
3314
3364
  const handleChange = useCallback((ev) => {
3315
3365
  onChange && onChange(ev.target?.value || '');
3316
3366
  }, [onChange]);
3317
- return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 w-full px-10 text-l text-black outline-none box-border border border-solid rounded-md', 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
3367
+ return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-14 w-full px-10 text-l text-black outline-none box-border border border-solid rounded-md', 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
3318
3368
  });
3319
3369
 
3320
3370
  const DepositoryFilter = JSX(({ field, onClearFilter, filtrationState }) => (jsxs("div", { className: "grid grid-cols-12 mb-3xl space-x-xl", children: [jsx(SearchInput, { className: "col-span-4 mt-auto", placeholder: "\u041F\u043E\u0438\u0441\u043A", ...field('query') }), jsx(DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u043E\u0442", maxDate: filtrationState.endDate, ...field('startDate') }), jsx(DatePicker, { className: "col-span-3", label: "\u041F\u0435\u0440\u0438\u043E\u0434 \u0434\u043E", minDate: filtrationState.startDate, ...field('endDate') }), jsx("div", { className: "col-span-2 mt-auto", children: jsx("button", { className: "px-m py-s rounded-md bg-main-gray text-green cursor-pointer w-full", onClick: onClearFilter, children: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440" }) })] })));
@@ -3322,11 +3372,11 @@
3322
3372
  const DepositoryItem = ({ title, timestamp, publicId }) => {
3323
3373
  const link = useLink({ basePath: '/' });
3324
3374
  const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
3325
- return (jsxs("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-2 text-m", children: timestamp ? jsx(Text, { children: formatDate$1(timestamp) }) : null }), jsx("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: jsx("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
3375
+ return (jsxs("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-2 text-m", children: timestamp ? jsx(Text, { children: formatDate(timestamp) }) : null }), jsx("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: jsx("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
3326
3376
  };
3327
3377
 
3328
3378
  const useDepository = ({ size, page, query, startDate, endDate }) => {
3329
- const { data } = useAsyncData(`/api/v1/depository?page=${page}&size=${size}&query=${query}&timestampStart=${startDate ? formatDate$1(startDate, true) : ''}&timestampEnd=${endDate ? formatDate$1(endDate, true) : ''}`, fetchJSONUnsafe);
3379
+ const { data } = useAsyncData(`/api/v1/depository?page=${page}&size=${size}&query=${query}&timestampStart=${startDate ? formatDate(startDate, true) : ''}&timestampEnd=${endDate ? formatDate(endDate, true) : ''}`, fetchJSONUnsafe);
3330
3380
  return { items: data?.content, totalPages: data?.totalPages };
3331
3381
  };
3332
3382
 
@@ -4149,9 +4199,7 @@
4149
4199
  const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
4150
4200
  ...rest,
4151
4201
  extraProps: {
4152
- className: isCardBorder
4153
- ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
4154
- : '',
4202
+ className: getBorderStyle(isCardBorder),
4155
4203
  },
4156
4204
  }) })));
4157
4205
  HorizontalLayout.childrenTypes = {
@@ -4286,20 +4334,12 @@
4286
4334
  return `${parseFloat((bytes / Math.pow(KILO, i)).toFixed(decimals))} ${KILO_SIZES[i]}`;
4287
4335
  };
4288
4336
 
4289
- 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] })));
4290
- const formatSuffix = (ext, fileSize) => {
4291
- const prefix = ext || fileSize ? ',' : '';
4292
- const extension = ext ? ` ${ext}` : '';
4293
- const size = fileSize ? ` (${fileSize})` : '';
4294
- return prefix + extension + size;
4295
- };
4296
- const getExtFromHref = (href) => {
4297
- if (!href) {
4298
- return '';
4299
- }
4300
- const index = href.lastIndexOf('.');
4301
- return index !== -1 ? href.substring(index + 1) : '';
4302
- };
4337
+ const LinkDocItem = JSX(({ icon, text, fileFormat, fileSize, ...linkProps }) => {
4338
+ const prefix = fileFormat || fileSize ? ',' : '';
4339
+ const size = fileSize ?? '';
4340
+ const format = fileFormat ? String(fileFormat) : '';
4341
+ 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] }));
4342
+ });
4303
4343
 
4304
4344
  const linkIconStyle = 'min-w-6 min-h-6';
4305
4345
 
@@ -4309,26 +4349,27 @@
4309
4349
  };
4310
4350
  const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => {
4311
4351
  const router = useRouter();
4312
- 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] }));
4352
+ 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] }));
4313
4353
  });
4314
- const renderLinkDocItem = (router, columnsMode, icon) => (docBlockDef, i) => {
4354
+ const renderLinkDocItem = (router, icon) => (docBlockDef, i) => {
4315
4355
  const href = docBlockDef?.docType === 'Attachment'
4316
4356
  ? adjustHref(router)(docBlockDef?.attachment?.src)
4317
4357
  : docBlockDef?.href;
4318
4358
  const fileSize = docBlockDef?.docType === 'Attachment'
4319
4359
  ? formatBytes(docBlockDef?.attachment?.fileSize || 0)
4320
4360
  : docBlockDef?.fileSize;
4321
- 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)));
4361
+ const fileFormat = docBlockDef?.docType !== 'Attachment' ? docBlockDef?.fileFormat : '';
4362
+ 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)));
4322
4363
  };
4323
4364
 
4324
- const renderList$1 = (items, listItemSize) => {
4325
- 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" }));
4365
+ const renderList$1 = (items, listItemSize, additionalDescription) => {
4366
+ 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 }));
4326
4367
  };
4327
4368
 
4328
- const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
4369
+ const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, additionalDescription = '', title = 'Мобильное приложение', version = 'primary', ...rest }) => {
4329
4370
  const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
4330
4371
  const img = image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null;
4331
- 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] })] }) }));
4372
+ 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] })] }) }));
4332
4373
  });
4333
4374
 
4334
4375
  const badgeBgStyleMap = {
@@ -4820,17 +4861,14 @@
4820
4861
  ev?.preventDefault();
4821
4862
  router.back();
4822
4863
  }, []);
4823
- const borderStyle = showBorder
4824
- ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
4825
- : '';
4826
- return (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', borderStyle, className), defaultPadding: "p-6xl", padding: padding, ...rest, children: [backwardButton
4864
+ 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
4827
4865
  ? renderBackwardButton(!rest.version || rest.version === 'primary' ? 'primary' : 'white', handleClick)
4828
4866
  : null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] }));
4829
4867
  });
4830
4868
 
4831
4869
  const ProductGallery = JSX(({ className = '', padding, slides = [], ...rest }) => {
4832
4870
  const [activeSlideIndex, setActiveSlideIndex] = useState(0);
4833
- return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "XXL", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
4871
+ return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-6xl", padding: padding, ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-6xl h-full", headlineVersion: "M", isFullWidthTitle: false, ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
4834
4872
  });
4835
4873
  const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
4836
4874
  const isActive = i === activeSlideIndex;
@@ -4848,17 +4886,6 @@
4848
4886
 
4849
4887
  const ProductTile = JSX(({ className, padding, headlineVersion = 'S', isTabularBenefits = true, additionalDescription, imageOptions, isFullWidthTitle = true, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-4xl sm:p-xl", padding: padding, headlineVersion: headlineVersion, isTabularBenefits: isTabularBenefits, imageOptions: { isImageSecondary: true, ...imageOptions }, isFullWidthTitle: isFullWidthTitle, ...rest, children: additionalDescription ? (jsx(Paragraph, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null }) })));
4850
4888
 
4851
- const PromoTile = JSX(({ className, title = 'Акции и спецпредложения', description, headlineVersion = 'S', date, buttons = [], ...rest }) => (jsx(BlockWrapper, { className: style('box-border', className), ...rest, children: jsxs(BaseTile, { className: "h-full", title: title ? (jsx(Headline, { title: title, headlineVersion: headlineVersion, align: "text-left", isEmbedded: true })) : null, buttons: renderButtonsSection(buttons), children: [date ? jsx("div", { className: "text-s mb-xs", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) })));
4852
- function formatDate(date) {
4853
- const dateObj = new Date(date);
4854
- const dateFormat = {
4855
- day: 'numeric',
4856
- month: 'long',
4857
- year: 'numeric',
4858
- };
4859
- return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
4860
- }
4861
-
4862
4889
  const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: jsx(Img, { image: icon }) })) : null, title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
4863
4890
  label: 'Адрес',
4864
4891
  data: address,
@@ -5192,8 +5219,6 @@
5192
5219
  const COLS_LENGTH_FOR_SCROLL = 2;
5193
5220
  const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
5194
5221
 
5195
- const headlineAlign = 'text-center';
5196
-
5197
5222
  const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(Button, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
5198
5223
 
5199
5224
  const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
@@ -5356,7 +5381,7 @@
5356
5381
  });
5357
5382
  const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
5358
5383
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
5359
- 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 })) })] }));
5384
+ 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 })) })] }));
5360
5385
  });
5361
5386
 
5362
5387
  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] })] })));
@@ -5370,9 +5395,12 @@
5370
5395
 
5371
5396
  const Tile = JSX(({ className, padding, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, headlineVersion: headlineVersion, listItemSize: listItemSize, isFullWidthTitle: false, ...rest }) })));
5372
5397
 
5373
- 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({
5398
+ 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({
5374
5399
  ...rest,
5375
- extraProps: { className: 'w-full', padding: isInnerPadding ? '' : 'p-0' },
5400
+ extraProps: {
5401
+ className: style('w-full', getBorderStyle(isInnerBorder)),
5402
+ padding: isInnerPadding ? '' : 'p-0',
5403
+ },
5376
5404
  }) })));
5377
5405
  VerticalLayout.childrenTypes = [];
5378
5406
 
@@ -5433,7 +5461,6 @@
5433
5461
  ProductBlock,
5434
5462
  ProductGallery,
5435
5463
  ProductTile,
5436
- PromoTile,
5437
5464
  RepresentativeOfficeInfo,
5438
5465
  RichTextBlock,
5439
5466
  RollupItem,
@@ -5684,7 +5711,7 @@
5684
5711
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5685
5712
  }
5686
5713
 
5687
- const packageVersion = "0.14.26";
5714
+ const packageVersion = "0.14.28";
5688
5715
 
5689
5716
  exports.Blocks = Blocks;
5690
5717
  exports.ContentPage = ContentPage;