@redneckz/wildless-cms-uni-blocks 0.14.4 → 0.14.6

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 (448) hide show
  1. package/bin/migration-scripts/0.13.5.js +36 -0
  2. package/bin/migration-scripts/0.14.1.js +29 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +211 -143
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  8. package/bundle/components/Depository/Depository.d.ts +6 -0
  9. package/bundle/components/Depository/DepositoryContent.d.ts +2 -0
  10. package/bundle/components/Depository/DepositoryItem.d.ts +3 -0
  11. package/bundle/components/Depository/useDepository.d.ts +9 -0
  12. package/bundle/components/Footer/FooterContent.d.ts +1 -4
  13. package/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  14. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  15. package/bundle/ui-kit/Pagination/Pagination.d.ts +8 -0
  16. package/bundle/ui-kit/Pagination/renderPages.d.ts +3 -0
  17. package/bundle/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  18. package/bundle/utils/convertTimestampToDate.d.ts +1 -0
  19. package/dist/components/ApplicationForm/renderRegion.js +1 -1
  20. package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  21. package/dist/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  22. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  23. package/dist/components/BenefitsBlock/BenefitsBlock.js +7 -7
  24. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  25. package/dist/components/Blocks.js +2 -2
  26. package/dist/components/Blocks.js.map +1 -1
  27. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  28. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  29. package/dist/components/Calculator/constants.js +0 -1
  30. package/dist/components/Calculator/constants.js.map +1 -1
  31. package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  32. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  33. package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  34. package/dist/components/Carousel/Carousel.js +0 -1
  35. package/dist/components/Carousel/Carousel.js.map +1 -1
  36. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  37. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  38. package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  39. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  40. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  41. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  42. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  43. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  44. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  45. package/dist/components/Depository/Depository.d.ts +6 -0
  46. package/dist/components/Depository/Depository.js +19 -0
  47. package/dist/components/Depository/Depository.js.map +1 -0
  48. package/dist/components/Depository/DepositoryContent.d.ts +2 -0
  49. package/dist/components/{CarouselEventCard/CarouselEventCardContent.js → Depository/DepositoryContent.js} +1 -1
  50. package/dist/components/Depository/DepositoryContent.js.map +1 -0
  51. package/dist/components/Depository/DepositoryItem.d.ts +3 -0
  52. package/dist/components/Depository/DepositoryItem.js +12 -0
  53. package/dist/components/Depository/DepositoryItem.js.map +1 -0
  54. package/dist/components/Depository/useDepository.d.ts +9 -0
  55. package/dist/components/Depository/useDepository.js +10 -0
  56. package/dist/components/Depository/useDepository.js.map +1 -0
  57. package/dist/components/Footer/Footer.mobile.js +1 -1
  58. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  59. package/dist/components/Footer/FooterContent.d.ts +1 -4
  60. package/dist/components/Footer/FooterDataProps.d.ts +4 -3
  61. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  62. package/dist/components/Footer/SocialMedia.js +26 -2
  63. package/dist/components/Footer/SocialMedia.js.map +1 -1
  64. package/dist/components/Footer/iconsMap.js +0 -7
  65. package/dist/components/Footer/iconsMap.js.map +1 -1
  66. package/dist/ui-kit/Button/ButtonInner.js +1 -1
  67. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  68. package/dist/ui-kit/Input/Input.js +7 -1
  69. package/dist/ui-kit/Input/Input.js.map +1 -1
  70. package/dist/ui-kit/Pagination/Pagination.d.ts +8 -0
  71. package/dist/ui-kit/Pagination/Pagination.js +31 -0
  72. package/dist/ui-kit/Pagination/Pagination.js.map +1 -0
  73. package/dist/ui-kit/Pagination/renderPages.d.ts +3 -0
  74. package/dist/ui-kit/Pagination/renderPages.js +18 -0
  75. package/dist/ui-kit/Pagination/renderPages.js.map +1 -0
  76. package/dist/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  77. package/dist/ui-kit/Pagination/shouldRenderPage.js +9 -0
  78. package/dist/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  79. package/dist/ui-kit/Select/filterOptions.js +1 -10
  80. package/dist/ui-kit/Select/filterOptions.js.map +1 -1
  81. package/dist/utils/convertTimestampToDate.d.ts +1 -0
  82. package/dist/utils/convertTimestampToDate.js +16 -0
  83. package/dist/utils/convertTimestampToDate.js.map +1 -0
  84. package/dist/utils/fetchMultitudeJSON.js +1 -1
  85. package/dist/utils/fetchMultitudeJSON.js.map +1 -1
  86. package/lib/common.css +1 -1
  87. package/lib/components/ApplicationForm/renderRegion.js +1 -1
  88. package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  89. package/lib/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  90. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  91. package/lib/components/BenefitsBlock/BenefitsBlock.js +7 -7
  92. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  93. package/lib/components/Blocks.js +2 -2
  94. package/lib/components/Blocks.js.map +1 -1
  95. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  96. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  97. package/lib/components/Calculator/constants.js +0 -1
  98. package/lib/components/Calculator/constants.js.map +1 -1
  99. package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  100. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  101. package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  102. package/lib/components/Carousel/Carousel.fixture.d.ts +0 -1
  103. package/lib/components/Carousel/Carousel.js +0 -1
  104. package/lib/components/Carousel/Carousel.js.map +1 -1
  105. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  106. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  107. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +2 -0
  108. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.mobile.d.ts +13 -0
  109. package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  110. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  111. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  112. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  113. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
  114. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  115. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  116. package/lib/components/Depository/Depository.d.ts +6 -0
  117. package/lib/components/Depository/Depository.fixture.d.ts +6 -0
  118. package/lib/components/Depository/Depository.js +17 -0
  119. package/lib/components/Depository/Depository.js.map +1 -0
  120. package/lib/components/Depository/DepositoryContent.d.ts +2 -0
  121. package/lib/components/Depository/DepositoryContent.js +2 -0
  122. package/lib/components/Depository/DepositoryContent.js.map +1 -0
  123. package/lib/components/Depository/DepositoryItem.d.ts +3 -0
  124. package/lib/components/Depository/DepositoryItem.js +9 -0
  125. package/lib/components/Depository/DepositoryItem.js.map +1 -0
  126. package/lib/components/Depository/useDepository.d.ts +9 -0
  127. package/lib/components/Depository/useDepository.js +7 -0
  128. package/lib/components/Depository/useDepository.js.map +1 -0
  129. package/lib/components/Footer/Footer.mobile.js +1 -1
  130. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  131. package/lib/components/Footer/FooterContent.d.ts +1 -4
  132. package/lib/components/Footer/FooterDataProps.d.ts +4 -3
  133. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  134. package/lib/components/Footer/SocialMedia.js +26 -2
  135. package/lib/components/Footer/SocialMedia.js.map +1 -1
  136. package/lib/components/Footer/iconsMap.js +0 -7
  137. package/lib/components/Footer/iconsMap.js.map +1 -1
  138. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
  139. package/lib/ui-kit/Button/ButtonInner.js +1 -1
  140. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  141. package/lib/ui-kit/Input/Input.js +8 -2
  142. package/lib/ui-kit/Input/Input.js.map +1 -1
  143. package/lib/ui-kit/Pagination/Pagination.d.ts +8 -0
  144. package/lib/ui-kit/Pagination/Pagination.js +28 -0
  145. package/lib/ui-kit/Pagination/Pagination.js.map +1 -0
  146. package/lib/ui-kit/Pagination/renderPages.d.ts +3 -0
  147. package/lib/ui-kit/Pagination/renderPages.js +15 -0
  148. package/lib/ui-kit/Pagination/renderPages.js.map +1 -0
  149. package/lib/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  150. package/lib/ui-kit/Pagination/shouldRenderPage.js +6 -0
  151. package/lib/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  152. package/lib/ui-kit/Select/filterOptions.js +1 -10
  153. package/lib/ui-kit/Select/filterOptions.js.map +1 -1
  154. package/lib/utils/convertTimestampToDate.d.ts +1 -0
  155. package/lib/utils/convertTimestampToDate.js +13 -0
  156. package/lib/utils/convertTimestampToDate.js.map +1 -0
  157. package/lib/utils/fetchMultitudeJSON.js +1 -1
  158. package/lib/utils/fetchMultitudeJSON.js.map +1 -1
  159. package/mobile/bundle/bundle.umd.js +128 -131
  160. package/mobile/bundle/bundle.umd.min.js +1 -1
  161. package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  162. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  163. package/mobile/bundle/components/Depository/Depository.d.ts +6 -0
  164. package/mobile/bundle/components/Depository/DepositoryContent.d.ts +2 -0
  165. package/mobile/bundle/components/Depository/DepositoryItem.d.ts +3 -0
  166. package/mobile/bundle/components/Depository/useDepository.d.ts +9 -0
  167. package/mobile/bundle/components/Footer/FooterContent.d.ts +1 -4
  168. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -3
  169. package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
  170. package/mobile/bundle/ui-kit/Pagination/Pagination.d.ts +8 -0
  171. package/mobile/bundle/ui-kit/Pagination/renderPages.d.ts +3 -0
  172. package/mobile/bundle/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  173. package/mobile/bundle/utils/convertTimestampToDate.d.ts +1 -0
  174. package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
  175. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  176. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  177. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  178. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +7 -7
  179. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  180. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  181. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  182. package/mobile/dist/components/Calculator/constants.js +0 -1
  183. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  184. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  185. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  186. package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  187. package/mobile/dist/components/Carousel/Carousel.js +0 -1
  188. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  189. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  190. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  191. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
  192. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  193. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  194. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  195. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  196. package/mobile/dist/components/Depository/Depository.d.ts +6 -0
  197. package/mobile/dist/components/Depository/Depository.js +19 -0
  198. package/mobile/dist/components/Depository/Depository.js.map +1 -0
  199. package/mobile/dist/components/Depository/DepositoryContent.d.ts +2 -0
  200. package/mobile/dist/components/{CarouselEventCard/CarouselEventCardContent.js → Depository/DepositoryContent.js} +1 -1
  201. package/mobile/dist/components/Depository/DepositoryContent.js.map +1 -0
  202. package/mobile/dist/components/Depository/DepositoryItem.d.ts +3 -0
  203. package/mobile/dist/components/Depository/DepositoryItem.js +12 -0
  204. package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -0
  205. package/mobile/dist/components/Depository/useDepository.d.ts +9 -0
  206. package/mobile/dist/components/Depository/useDepository.js +10 -0
  207. package/mobile/dist/components/Depository/useDepository.js.map +1 -0
  208. package/mobile/dist/components/Footer/Footer.js +1 -1
  209. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  210. package/mobile/dist/components/Footer/FooterContent.d.ts +1 -4
  211. package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -3
  212. package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
  213. package/mobile/dist/components/Footer/SocialMedia.js +26 -2
  214. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  215. package/mobile/dist/components/Footer/iconsMap.js +0 -7
  216. package/mobile/dist/components/Footer/iconsMap.js.map +1 -1
  217. package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
  218. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  219. package/mobile/dist/ui-kit/Input/Input.js +7 -1
  220. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  221. package/mobile/dist/ui-kit/Pagination/Pagination.d.ts +8 -0
  222. package/mobile/dist/ui-kit/Pagination/Pagination.js +31 -0
  223. package/mobile/dist/ui-kit/Pagination/Pagination.js.map +1 -0
  224. package/mobile/dist/ui-kit/Pagination/renderPages.d.ts +3 -0
  225. package/mobile/dist/ui-kit/Pagination/renderPages.js +18 -0
  226. package/mobile/dist/ui-kit/Pagination/renderPages.js.map +1 -0
  227. package/mobile/dist/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  228. package/mobile/dist/ui-kit/Pagination/shouldRenderPage.js +9 -0
  229. package/mobile/dist/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  230. package/mobile/dist/ui-kit/Select/filterOptions.js +1 -10
  231. package/mobile/dist/ui-kit/Select/filterOptions.js.map +1 -1
  232. package/mobile/dist/utils/convertTimestampToDate.d.ts +1 -0
  233. package/mobile/dist/utils/convertTimestampToDate.js +16 -0
  234. package/mobile/dist/utils/convertTimestampToDate.js.map +1 -0
  235. package/mobile/dist/utils/fetchMultitudeJSON.js +1 -1
  236. package/mobile/dist/utils/fetchMultitudeJSON.js.map +1 -1
  237. package/mobile/lib/common.css +1 -1
  238. package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
  239. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  240. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +2 -2
  241. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  242. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +7 -7
  243. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  244. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +8 -8
  245. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  246. package/mobile/lib/components/Calculator/constants.js +0 -1
  247. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  248. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +0 -1
  249. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -2
  250. package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
  251. package/mobile/lib/components/Carousel/Carousel.js +0 -1
  252. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  253. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  254. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  255. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
  256. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  257. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  258. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  259. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  260. package/mobile/lib/components/Depository/Depository.d.ts +6 -0
  261. package/mobile/lib/components/Depository/Depository.js +17 -0
  262. package/mobile/lib/components/Depository/Depository.js.map +1 -0
  263. package/mobile/lib/components/Depository/DepositoryContent.d.ts +2 -0
  264. package/mobile/lib/components/Depository/DepositoryContent.js +2 -0
  265. package/mobile/lib/components/Depository/DepositoryContent.js.map +1 -0
  266. package/mobile/lib/components/Depository/DepositoryItem.d.ts +3 -0
  267. package/mobile/lib/components/Depository/DepositoryItem.js +9 -0
  268. package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -0
  269. package/mobile/lib/components/Depository/useDepository.d.ts +9 -0
  270. package/mobile/lib/components/Depository/useDepository.js +7 -0
  271. package/mobile/lib/components/Depository/useDepository.js.map +1 -0
  272. package/mobile/lib/components/Footer/Footer.js +1 -1
  273. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  274. package/mobile/lib/components/Footer/FooterContent.d.ts +1 -4
  275. package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -3
  276. package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
  277. package/mobile/lib/components/Footer/SocialMedia.js +26 -2
  278. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  279. package/mobile/lib/components/Footer/iconsMap.js +0 -7
  280. package/mobile/lib/components/Footer/iconsMap.js.map +1 -1
  281. package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
  282. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  283. package/mobile/lib/ui-kit/Input/Input.js +8 -2
  284. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  285. package/mobile/lib/ui-kit/Pagination/Pagination.d.ts +8 -0
  286. package/mobile/lib/ui-kit/Pagination/Pagination.js +28 -0
  287. package/mobile/lib/ui-kit/Pagination/Pagination.js.map +1 -0
  288. package/mobile/lib/ui-kit/Pagination/renderPages.d.ts +3 -0
  289. package/mobile/lib/ui-kit/Pagination/renderPages.js +15 -0
  290. package/mobile/lib/ui-kit/Pagination/renderPages.js.map +1 -0
  291. package/mobile/lib/ui-kit/Pagination/shouldRenderPage.d.ts +1 -0
  292. package/mobile/lib/ui-kit/Pagination/shouldRenderPage.js +6 -0
  293. package/mobile/lib/ui-kit/Pagination/shouldRenderPage.js.map +1 -0
  294. package/mobile/lib/ui-kit/Select/filterOptions.js +1 -10
  295. package/mobile/lib/ui-kit/Select/filterOptions.js.map +1 -1
  296. package/mobile/lib/utils/convertTimestampToDate.d.ts +1 -0
  297. package/mobile/lib/utils/convertTimestampToDate.js +13 -0
  298. package/mobile/lib/utils/convertTimestampToDate.js.map +1 -0
  299. package/mobile/lib/utils/fetchMultitudeJSON.js +1 -1
  300. package/mobile/lib/utils/fetchMultitudeJSON.js.map +1 -1
  301. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  302. package/mobile/src/components/ApplicationForm/renderRegion.tsx +2 -2
  303. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +2 -2
  304. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +5 -5
  305. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +24 -22
  306. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
  307. package/mobile/src/components/Calculator/constants.ts +0 -1
  308. package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  309. package/mobile/src/components/Carousel/Carousel.tsx +0 -1
  310. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  311. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  312. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  313. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  314. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  315. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  316. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  317. package/mobile/src/components/Depository/Depository.tsx +43 -0
  318. package/mobile/src/components/Depository/DepositoryContent.ts +3 -0
  319. package/mobile/src/components/Depository/DepositoryItem.tsx +21 -0
  320. package/mobile/src/components/Depository/useDepository.ts +23 -0
  321. package/mobile/src/components/Footer/Footer.tsx +1 -1
  322. package/mobile/src/components/Footer/FooterContent.ts +1 -5
  323. package/mobile/src/components/Footer/FooterDataProps.ts +4 -3
  324. package/mobile/src/components/Footer/SocialMedia.tsx +48 -16
  325. package/mobile/src/components/Footer/iconsMap.ts +0 -7
  326. package/mobile/src/components/ProductGallery/ProductGallery.example.json +10 -4
  327. package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
  328. package/mobile/src/ui-kit/Input/Input.tsx +9 -2
  329. package/mobile/src/ui-kit/Pagination/Pagination.tsx +87 -0
  330. package/mobile/src/ui-kit/Pagination/renderPages.tsx +33 -0
  331. package/mobile/src/ui-kit/Pagination/shouldRenderPage.ts +8 -0
  332. package/mobile/src/ui-kit/Select/filterOptions.ts +1 -11
  333. package/mobile/src/utils/convertTimestampToDate.ts +15 -0
  334. package/mobile/src/utils/fetchMultitudeJSON.ts +1 -1
  335. package/package.json +1 -1
  336. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
  337. package/src/components/ApplicationForm/renderRegion.tsx +2 -2
  338. package/src/components/ApplicationForm/renderRegionDepartment.tsx +2 -2
  339. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +5 -5
  340. package/src/components/BenefitsBlock/BenefitsBlock.tsx +24 -22
  341. package/src/components/Blocks.ts +2 -2
  342. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +28 -26
  343. package/src/components/Calculator/constants.ts +0 -1
  344. package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +2 -10
  345. package/src/components/Carousel/Carousel.fixture.tsx +0 -18
  346. package/src/components/Carousel/Carousel.tsx +0 -1
  347. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +1 -1
  348. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +5 -1
  349. package/src/components/CarouselProductCard/CarouselProductCard.example.json +1 -3
  350. package/src/components/CarouselProductCard/CarouselProductCard.fixture.mobile.tsx +92 -0
  351. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +18 -0
  352. package/src/components/CarouselProductCard/CarouselProductCard.tsx +23 -13
  353. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +1 -2
  354. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -4
  355. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +7 -7
  356. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +1 -1
  357. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  358. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  359. package/src/components/Depository/Depository.example.json +1 -0
  360. package/src/components/Depository/Depository.fixture.tsx +10 -0
  361. package/src/components/Depository/Depository.tsx +43 -0
  362. package/src/components/Depository/Depository.ui.json +1 -0
  363. package/src/components/Depository/DepositoryContent.ts +3 -0
  364. package/src/components/Depository/DepositoryItem.tsx +21 -0
  365. package/src/components/Depository/useDepository.ts +23 -0
  366. package/src/components/Footer/Footer.mobile.tsx +1 -1
  367. package/src/components/Footer/FooterContent.ts +1 -5
  368. package/src/components/Footer/FooterDataProps.ts +4 -3
  369. package/src/components/Footer/SocialMedia.tsx +48 -16
  370. package/src/components/Footer/iconsMap.ts +0 -7
  371. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +23 -3
  372. package/src/components/ProductGallery/ProductGallery.example.json +10 -4
  373. package/src/ui-kit/Button/ButtonInner.tsx +1 -1
  374. package/src/ui-kit/Input/Input.tsx +9 -2
  375. package/src/ui-kit/Pagination/Pagination.tsx +87 -0
  376. package/src/ui-kit/Pagination/renderPages.tsx +33 -0
  377. package/src/ui-kit/Pagination/shouldRenderPage.ts +8 -0
  378. package/src/ui-kit/Select/filterOptions.ts +1 -11
  379. package/src/utils/convertTimestampToDate.ts +15 -0
  380. package/src/utils/fetchMultitudeJSON.ts +1 -1
  381. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  382. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  383. package/bundle/components/Footer/MediaButton.d.ts +0 -7
  384. package/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  385. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  386. package/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  387. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  388. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  389. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  390. package/dist/components/Footer/MediaButton.d.ts +0 -7
  391. package/dist/components/Footer/MediaButton.js +0 -18
  392. package/dist/components/Footer/MediaButton.js.map +0 -1
  393. package/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  394. package/dist/components/Footer/buttonSizeStyle.js +0 -7
  395. package/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  396. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  397. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +0 -8
  398. package/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  399. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  400. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  401. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  402. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  403. package/lib/components/Footer/MediaButton.d.ts +0 -7
  404. package/lib/components/Footer/MediaButton.js +0 -16
  405. package/lib/components/Footer/MediaButton.js.map +0 -1
  406. package/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  407. package/lib/components/Footer/buttonSizeStyle.js +0 -5
  408. package/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  409. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  410. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  411. package/mobile/bundle/components/Footer/MediaButton.d.ts +0 -7
  412. package/mobile/bundle/components/Footer/buttonSizeStyle.d.ts +0 -4
  413. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  414. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +0 -12
  415. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  416. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  417. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  418. package/mobile/dist/components/Footer/MediaButton.d.ts +0 -7
  419. package/mobile/dist/components/Footer/MediaButton.js +0 -18
  420. package/mobile/dist/components/Footer/MediaButton.js.map +0 -1
  421. package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +0 -4
  422. package/mobile/dist/components/Footer/buttonSizeStyle.js +0 -7
  423. package/mobile/dist/components/Footer/buttonSizeStyle.js.map +0 -1
  424. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +0 -5
  425. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +0 -10
  426. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +0 -1
  427. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +0 -8
  428. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +0 -2
  429. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +0 -1
  430. package/mobile/lib/components/Footer/MediaButton.d.ts +0 -7
  431. package/mobile/lib/components/Footer/MediaButton.js +0 -16
  432. package/mobile/lib/components/Footer/MediaButton.js.map +0 -1
  433. package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +0 -4
  434. package/mobile/lib/components/Footer/buttonSizeStyle.js +0 -5
  435. package/mobile/lib/components/Footer/buttonSizeStyle.js.map +0 -1
  436. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  437. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  438. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  439. package/mobile/src/components/Footer/MediaButton.tsx +0 -50
  440. package/mobile/src/components/Footer/buttonSizeStyle.ts +0 -6
  441. package/src/components/CarouselEventCard/CarouselEventCard.example.json +0 -12
  442. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +0 -25
  443. package/src/components/CarouselEventCard/CarouselEventCard.tsx +0 -31
  444. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +0 -13
  445. package/src/components/Footer/MediaButton.tsx +0 -50
  446. package/src/components/Footer/buttonSizeStyle.ts +0 -6
  447. /package/mobile/src/components/{CarouselEventCard/CarouselEventCard.ui.json → Depository/Depository.example.json} +0 -0
  448. /package/{src/components/CarouselEventCard/CarouselEventCard.ui.json → mobile/src/components/Depository/Depository.ui.json} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertTimestampToDate.js","sourceRoot":"","sources":["../../src/utils/convertTimestampToDate.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAC1D,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAExC,IAAI,EAAE,GAAoB,IAAI,CAAC,OAAO,EAAE,CAAC;IACzC,IAAI,EAAE,GAAG,EAAE,EAAE;QACX,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;KACf;IAED,IAAI,EAAE,GAAoB,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC9C,IAAI,EAAE,GAAG,EAAE,EAAE;QACX,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC;KACf;IAED,OAAO,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AAClD,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { fetchJSON } from './fetchJSON.js';
2
2
  export async function fetchMultitudeJSON(...urls) {
3
3
  const fetchPromises = urls.map((url) => fetchJSON(url));
4
- return await Promise.all(fetchPromises);
4
+ return Promise.all(fetchPromises);
5
5
  }
6
6
  //# sourceMappingURL=fetchMultitudeJSON.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetchMultitudeJSON.js","sourceRoot":"","sources":["../../src/utils/fetchMultitudeJSON.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAAG,IAAc;IAEjB,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAI,GAAG,CAAC,CAAC,CAAC;IAE3D,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"file":"fetchMultitudeJSON.js","sourceRoot":"","sources":["../../src/utils/fetchMultitudeJSON.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAAG,IAAc;IAEjB,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAI,GAAG,CAAC,CAAC,CAAC;IAE3D,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACpC,CAAC"}
@@ -654,7 +654,7 @@
654
654
  return '';
655
655
  }
656
656
  const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
657
- return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12', rounded ? 'rounded-full' : '');
657
+ return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12 m-auto', rounded ? 'rounded-full' : '');
658
658
  };
659
659
  const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
660
660
 
@@ -700,14 +700,20 @@
700
700
  };
701
701
 
702
702
  const Input = JSX(({ key, className = '', inputClassName = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, }) => {
703
+ const inputRef = useRef(null);
703
704
  const handleChange = useCallback((e) => {
704
705
  onChange && onChange(e.target?.value || '');
705
706
  }, [onChange]);
707
+ useEffect(() => {
708
+ if (autoFocus) {
709
+ inputRef.current?.focus();
710
+ }
711
+ }, [autoFocus, inputRef]);
706
712
  const paddingStyle = children ? 'pr-3xl' : '';
707
713
  const validStyle = valid
708
714
  ? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
709
715
  : 'border-error';
710
- 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", { 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, autoFocus: autoFocus }, key)] }), children] }));
716
+ 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] }));
711
717
  });
712
718
 
713
719
  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 })] })));
@@ -827,88 +833,11 @@
827
833
  close: () => defaultEventBus.fire('popup', { type: 'close' }),
828
834
  });
829
835
 
830
- const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
831
- const desc = (cmp) => (a, b) => -cmp(a, b);
832
-
833
- const JARO_WINKLER_P = 0.1;
834
- const JARO_WINKLER_MAX_L = 4;
835
- const jaroWinklerDistance = (s1) => (s2) => {
836
- if (s1 === s2) {
837
- return 1;
838
- }
839
- if (!s1 || !s2) {
840
- return 0;
841
- }
842
- const { m, s1Matches, s2Matches } = computeM(s1, s2);
843
- if (m === 0) {
844
- return 0;
845
- }
846
- const t = computeT(s1, s2, { s1Matches, s2Matches });
847
- const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
848
- const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
849
- return jaroWeight + winklerWeight * (1 - jaroWeight);
850
- };
851
- function computeM(s1, s2) {
852
- const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
853
- const s1Matches = new Array(s1.length);
854
- const s2Matches = new Array(s2.length);
855
- let m = 0;
856
- for (let i = 0; i < s1.length; i++) {
857
- const low = Math.max(0, i - range);
858
- const high = Math.min(i + range, s2.length - 1);
859
- for (let j = low; j <= high; j++) {
860
- if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
861
- continue;
862
- }
863
- m++;
864
- s1Matches[i] = true;
865
- s2Matches[j] = true;
866
- }
867
- }
868
- return { m, s1Matches, s2Matches };
869
- }
870
- function computeT(s1, s2, { s1Matches, s2Matches }) {
871
- let t = 0;
872
- for (let i = 0, k = 0; i < s1.length; i++) {
873
- if (!s1Matches[i]) {
874
- continue;
875
- }
876
- let j = k;
877
- for (; j < s2.length; j++) {
878
- if (s2Matches[j]) {
879
- k = j + 1;
880
- break;
881
- }
882
- }
883
- if (s1[i] !== s2[j]) {
884
- t++;
885
- }
886
- }
887
- return t;
888
- }
889
- function computePrefixL(s1, s2) {
890
- let prefixL = 0;
891
- while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
892
- prefixL++;
893
- }
894
- return prefixL;
895
- }
896
-
897
- function zip(firstCol, ...restCols) {
898
- return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
899
- }
900
-
901
836
  const filterOptions = (options, query) => {
902
837
  if (!options?.length || !query?.trim()) {
903
838
  return options;
904
839
  }
905
- const ranking = options
906
- .map((_) => _.text?.toLowerCase())
907
- .map(jaroWinklerDistance(query?.trim().toLowerCase()));
908
- return zip(options, ranking)
909
- .filter(([, rank]) => rank >= 0.5)
910
- .sort(desc(compareBy(([, rank]) => rank)))
911
- .map(([option]) => option);
840
+ return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
912
841
  };
913
842
 
914
843
  const SelectPopup = JSX(({ popupRef, options, value, query, onChange }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]", role: "listbox", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "option", "aria-selected": option.key === value?.key, onClick: () => onChange && onChange(option), children: [jsx("span", { className: "min-h-6", children: formatOption(option) }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: style('absolute right-4 pt-3xs', option.key === value?.key ? '' : 'hidden') })] }, option.key))) })) : null);
@@ -1016,7 +945,7 @@
1016
945
 
1017
946
  const renderBusinessCardDataOrganization = (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: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), 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) })] })] }));
1018
947
 
1019
- const renderRegion$1 = ({ regions, field }) => (jsx(SelectControl, { className: "w-full", label: "\u0420\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(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
948
+ 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) }));
1020
949
 
1021
950
  const initialFormState$3 = {
1022
951
  name: '',
@@ -1134,7 +1063,7 @@
1134
1063
 
1135
1064
  const renderCreditParameters = (field) => (jsxs("div", { className: "border-b border-b-main-divider @xl:border-none @xl:flex @xl:justify-between gap-lg", children: [jsxs("div", { className: "@xl:w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0443\u043C\u043C\u0430, \u20BD" }) }), jsx(InputRange, { items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })] }), jsxs("div", { className: "@xl:w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432" }) }), jsx(InputRange, { items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') })] })] }));
1136
1065
 
1137
- const renderRegionDepartment = ({ regions, branches, field }) => (jsxs("div", { className: "@xl:flex @xl:justify-between @xl:gap-lg @xl:mb-2xl @xl:border-none @xl:pb-0", children: [jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0420\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(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }), jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
1066
+ const renderRegionDepartment = ({ regions, branches, field }) => (jsxs("div", { className: "@xl:flex @xl:justify-between @xl:gap-lg @xl:mb-2xl @xl:border-none @xl:pb-0", children: [jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { 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) }) }), jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
1138
1067
  key: branchCode,
1139
1068
  text: address,
1140
1069
  })), ...withValidator(field('department'), defaultValidator) }) })] }));
@@ -1263,7 +1192,7 @@
1263
1192
 
1264
1193
  const renderWedDataOrganization = (field, regions) => {
1265
1194
  const isCurrencyControl = field('vedTypes').value === 'currencyControl';
1266
- return (jsxs("div", { children: [regions.length && isCurrencyControl ? (jsx(SelectControl, { className: "mb-s", label: "\u0420\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(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) })) : null, jsxs("div", { className: "@xl:grid @xl:grid-cols-2 @xl:gap-x-lg", children: [isCurrencyControl ? (jsx(InputControl, { className: "w-full mb-s", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })) : null, jsx(InputControl, { className: "w-full mb-s", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { className: "w-full mb-s", label: "\u0424\u0418\u041E", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "w-full mb-s", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), !isCurrencyControl ? (jsx(InputControl, { className: "w-full mb-s", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })) : null] })] }));
1195
+ return (jsxs("div", { children: [isCurrencyControl ? (jsx(SelectControl, { className: "mb-s", 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) })) : null, jsxs("div", { className: "@xl:grid @xl:grid-cols-2 @xl:gap-x-lg", children: [isCurrencyControl ? (jsx(InputControl, { className: "w-full mb-s", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })) : null, jsx(InputControl, { className: "w-full mb-s", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { className: "w-full mb-s", label: "\u0424\u0418\u041E", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "w-full mb-s", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), !isCurrencyControl ? (jsx(InputControl, { className: "w-full mb-s", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })) : null] })] }));
1267
1196
  };
1268
1197
 
1269
1198
  const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
@@ -1374,18 +1303,20 @@
1374
1303
 
1375
1304
  const defaultIconSize = 56;
1376
1305
 
1377
- const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-x', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: "text-left sm:text-center", title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full sm:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
1378
- const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center md:basis-1/2 md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
1306
+ const AlignStyles = 'text-left';
1307
+
1308
+ const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: AlignStyles, title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
1309
+ const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "@sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
1379
1310
  const renderDescription$3 = (description) => {
1380
1311
  const benefitType = description?.benefitType || null;
1381
- return description && benefitType ? (jsx("div", { className: "mt-2xs sm:mt-xs", children: benefitType === 'list'
1312
+ return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
1382
1313
  ? renderListBenefit(description)
1383
1314
  : renderTextBenefit(description) })) : null;
1384
1315
  };
1385
- const renderTextBenefit = (description) => description?.name ? (jsx(Paragraph, { font: "font-light", size: "text-l", color: "text-secondary-text group-data-secondary:text-white", children: description.name })) : null;
1316
+ const renderTextBenefit = (description) => description?.name ? (jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description.name })) : null;
1386
1317
  const renderListBenefit = (description) => {
1387
1318
  const listStyleType = description?.bullets ? 'list-disc pl-3xl' : '';
1388
- return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx(Paragraph, { font: "font-light", size: "text-l", color: "text-secondary-text group-data-secondary:text-white", children: _ }, `benefitListItem-${i}`))) })) : null;
1319
+ return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: _ }) }, `benefitListItem-${i}`))) })) : null;
1389
1320
  };
1390
1321
 
1391
1322
  const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-lg sm:gap-m', className), children: buttons.map(renderButton$1(buttonClassName)) })) : null;
@@ -1458,8 +1389,6 @@
1458
1389
  return (jsxs(BlockWrapper, { className: style(isEmbedded ? '@container-normal' : '', className), defaultPadding: isEmbedded ? '' : 'p-6xl', version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { size: versionStyle.descriptionSize, font: versionStyle.descriptionWeight, align: align, ...descriptionStyle, children: description })) : null] }));
1459
1390
  });
1460
1391
 
1461
- const AlignStyles = 'text-left';
1462
-
1463
1392
  const Bonus = JSX(({ className = '', title, description, bonusItems = [], align = AlignStyles, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M", align: align }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
1464
1393
  ? bonusItems.map((_, i) => (jsxs("div", { className: "mb-3xl last:mb-0 sm:space-y-xs flex flex-col grow w-full p-4xl sm:p-m @xl:w-[49%] border border-gray", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
1465
1394
  ? renderBonusItemContent(_.bonusItemContent)
@@ -1783,7 +1712,6 @@
1783
1712
  isMonthlyInterestPayment: true,
1784
1713
  isReplenished: false,
1785
1714
  isPartialWithdrawal: false,
1786
- isSmallBusiness: false,
1787
1715
  depositeName: "Депозит 'Стабильный'",
1788
1716
  };
1789
1717
  const CREDIT_CALC_DEFAULT_DIR = 'credit-calculator-data';
@@ -1948,7 +1876,7 @@
1948
1876
  const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
1949
1877
 
1950
1878
  const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDir) => {
1951
- const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isSmallBusiness, isMonthlyInterestPayment, } = userInputParams;
1879
+ const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
1952
1880
  const data = useCalculatorParams(sourceBookDir || BUSINESS_DEPOSIT_CALC_DEFAULT_DIR);
1953
1881
  const isOperatingDeposit = isReplenished || isPartialWithdrawal;
1954
1882
  const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
@@ -1962,7 +1890,6 @@
1962
1890
  }
1963
1891
  const businessDepositCalculatorSourceBookParams = data?.rateRows?.find((_) => {
1964
1892
  return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
1965
- isSmallBusiness === _.isSmallBusiness &&
1966
1893
  checkIsOperatingDeposit(isOperatingDeposit, _) &&
1967
1894
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
1968
1895
  checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _));
@@ -2003,7 +1930,6 @@
2003
1930
  daysValue: BUSINESS_DEFAULT_DAYS,
2004
1931
  isReplenished: false,
2005
1932
  isPartialWithdrawal: false,
2006
- isSmallBusiness: false,
2007
1933
  isMonthlyInterestPayment: false,
2008
1934
  });
2009
1935
  const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
@@ -2020,19 +1946,19 @@
2020
1946
  max: calculatorParams.maxDays,
2021
1947
  ...field('daysValue'),
2022
1948
  value: calculatorParams.daysValue,
2023
- }), renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
2024
- title: 'Выплата процентов',
2025
- orientation: 'vertical',
2026
- ...field('isMonthlyInterestPayment'),
2027
- radioGroupClassName: 'sm:flex-col',
2028
- })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
1949
+ }), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1950
+ title: 'Выплата процентов',
1951
+ orientation: 'vertical',
1952
+ ...field('isMonthlyInterestPayment'),
1953
+ radioGroupClassName: 'sm:flex-col',
1954
+ })] })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
2029
1955
  rate,
2030
1956
  depositeName,
2031
1957
  isShowDepositeName,
2032
1958
  isUnavailableByTerm,
2033
1959
  }), jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [renderDepositResults(finalSum, income), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote), renderFootnote(bottomFootnote)] })] }));
2034
1960
  });
2035
- const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal }), jsx(Checkbox, { text: "\u0418\u041F / \u043C\u0430\u043B\u043E\u0435 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435", ...field('isSmallBusiness'), value: calculatorParams.isSmallBusiness })] }));
1961
+ const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
2036
1962
  const renderDepositResults = (finalSum, income) => (jsxs("div", { className: "flex flex-col gap-2xl sm:gap-0", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" })] }));
2037
1963
 
2038
1964
  const STEP_MONTHS = 1;
@@ -2635,7 +2561,6 @@
2635
2561
  'CarouselTariffsCard',
2636
2562
  'CarouselRichTextCard',
2637
2563
  'CarouselInvestmentCard',
2638
- 'CarouselEventCard',
2639
2564
  'ProductBlock',
2640
2565
  ];
2641
2566
  Carousel.childSchema = () => ({
@@ -2723,15 +2648,15 @@
2723
2648
  const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2724
2649
 
2725
2650
  const CarouselProductCard = JSX(({ additionalDescription, align = AlignStyles, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
2726
- return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', align, className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title), renderDescription$2(description), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2651
+ return (jsxs(BlockWrapper, { className: style('flex flex-col justify-between', className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-m flex flex-col gap-xs", href: href, target: target, children: [renderCardTitle(headlineSmallVersion, title, align), renderDescription$2(description, align), renderItems(items, isDotted, version), renderAdditionalDescription(additionalDescription, align), renderImage$2(icon, isImageFullWidth, isTopPosition)] }), renderButtonsSection([button], {
2727
2652
  className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2728
2653
  isVertical: isButtonFullWidth,
2729
2654
  })] }));
2730
2655
  });
2731
- const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-lg', isTopPosition ? 'order-first' : 'order-last', !isImageFullWidth ? 'justify-center' : ''), children: [image?.src ? jsx(Img, { className: "shrink-0", image: image }) : null, image?.icon ? (jsx(Img, { className: style('shrink-0', !isImageFullWidth ? 'w-8 h-8 min-w-8' : ''), image: image })) : null] }));
2732
- const renderCardTitle = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
2733
- const renderDescription$2 = (description) => description ? jsx(Paragraph, { size: "text-l", children: description }) : null;
2734
- const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription })) : null;
2656
+ const renderImage$2 = (image, isImageFullWidth, isTopPosition) => (jsxs("div", { className: style('flex gap-y-lg justify-center', isImageFullWidth ? 'min-w-full h-full' : '', isTopPosition ? 'order-first' : 'order-last'), children: [image?.src ? jsx(Img, { image: image }) : null, image?.icon ? (jsx(Img, { className: style(!isImageFullWidth ? 'w-8 h-8 min-w-8' : 'w-full h-full'), image: image })) : null] }));
2657
+ const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
2658
+ const renderDescription$2 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2659
+ const renderAdditionalDescription = (additionalDescription, align) => additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", align: align, children: additionalDescription })) : null;
2735
2660
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, listItemSize: "S" })) : null;
2736
2661
 
2737
2662
  const sum = (list = []) => list.reduce((a, b) => a + b, 0);
@@ -2794,64 +2719,65 @@
2794
2719
  description: _.description,
2795
2720
  })) }) }) })));
2796
2721
 
2797
- const buttonSizeStyle = {
2798
- default: 'w-14 h-14',
2799
- stretched: 'flex-1 h-14',
2800
- };
2801
-
2802
2722
  const ICONS_MAP = [
2803
2723
  {
2804
2724
  origins: ['t.me', 'telegram.org'],
2805
2725
  iconMapped: { icon: 'TelegramIcon' },
2806
- label: 'Телеграм',
2807
2726
  },
2808
2727
  {
2809
2728
  origins: ['vk.com'],
2810
2729
  iconMapped: { icon: 'VKIcon' },
2811
- label: 'ВКонтакте',
2812
2730
  },
2813
2731
  {
2814
2732
  origins: ['ok.ru'],
2815
2733
  iconMapped: { icon: 'OkIcon' },
2816
- label: 'Одноклассники',
2817
2734
  },
2818
2735
  {
2819
2736
  origins: ['apps.apple.com'],
2820
2737
  iconMapped: { icon: 'AppleIcon' },
2821
- label: 'App Store',
2822
2738
  },
2823
2739
  {
2824
2740
  origins: ['play.google.com'],
2825
2741
  iconMapped: { icon: 'PlayMarketIcon' },
2826
- label: 'Google Play',
2827
2742
  },
2828
2743
  {
2829
2744
  origins: ['youtube.com'],
2830
2745
  iconMapped: { icon: 'YoutubeIcon' },
2831
- label: 'Youtube',
2832
2746
  },
2833
2747
  {
2834
2748
  origins: ['rutube.ru'],
2835
2749
  iconMapped: { icon: 'RutubeIcon' },
2836
- label: 'Rutube',
2837
2750
  },
2838
2751
  ];
2839
2752
 
2840
2753
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
2841
2754
 
2842
- //TODO: Refactor this.
2843
- const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
2844
- const { href } = rest;
2845
- const { iconMapped, label } = findIconByHref(href);
2846
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2847
- return (jsx(Button, { className: style('border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', 'p-m min-h-14 group/media flex items-center justify-center box-border', buttonSizeStyle[buttonSize]), "aria-label": label, rel: "noopener noreferrer", target: "_blank", ...rest, children: jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" }) }));
2755
+ const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, children }) => {
2756
+ const [hasText, setHasText] = useState();
2757
+ const buttons = media?.map((_) => {
2758
+ const { href, icon, text } = _;
2759
+ const { iconMapped } = findIconByHref(href);
2760
+ const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2761
+ const buttonText = showButtonText ? { text } : {};
2762
+ if (!hasText && text) {
2763
+ setHasText(true);
2764
+ }
2765
+ return {
2766
+ ...buttonText,
2767
+ icon: { ...iconCustom, iconVersion: 'color' },
2768
+ version: 'white',
2769
+ };
2770
+ });
2771
+ 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' : '');
2772
+ 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, {
2773
+ className: stretched ? 'w-full' : '',
2774
+ buttonClassName,
2775
+ }) })] }));
2848
2776
  });
2849
2777
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2850
2778
 
2851
- const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (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: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
2852
-
2853
2779
  const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2854
- return (jsx(BlockWrapper, { className: style('relative group-data-gray:bg-main-divider/50', className), defaultPadding: "p-3xl", ...rest, children: jsxs(LinkWrapper, { href: href, target: target, className: 'space-y-lg', children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), items.length ? (jsx(List, { className: "flex flex-col gap-xs", items: items, listItemSize: "XS" })) : null, renderIcon$1(icon), socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null] }) }));
2780
+ return (jsx(BlockWrapper, { className: style('relative group-data-gray:bg-main-divider/50', className), defaultPadding: "p-3xl", ...rest, children: jsxs(LinkWrapper, { href: href, target: target, className: 'space-y-lg', children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align }), items.length ? (jsx(List, { className: "flex flex-col gap-xs", items: items, listItemSize: "XS" })) : null, renderIcon$1(icon), socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null] }) }));
2855
2781
  });
2856
2782
  const renderIcon$1 = (icon) => icon?.src || icon?.icon ? (jsx("div", { children: jsx(Img, { image: icon }) })) : null;
2857
2783
 
@@ -3189,7 +3115,7 @@
3189
3115
  const fallback = rest.options?.page?.fallback;
3190
3116
  const { topItems } = useSitemap(fallback);
3191
3117
  const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', { fallback });
3192
- return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, buttonSize: "stretched", children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3118
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3193
3119
  });
3194
3120
  const renderButton = ({ href = '/', text }, i) => {
3195
3121
  const { label } = findIconByHref(href);
@@ -3864,6 +3790,70 @@
3864
3790
  return result;
3865
3791
  };
3866
3792
 
3793
+ const JARO_WINKLER_P = 0.1;
3794
+ const JARO_WINKLER_MAX_L = 4;
3795
+ const jaroWinklerDistance = (s1) => (s2) => {
3796
+ if (s1 === s2) {
3797
+ return 1;
3798
+ }
3799
+ if (!s1 || !s2) {
3800
+ return 0;
3801
+ }
3802
+ const { m, s1Matches, s2Matches } = computeM(s1, s2);
3803
+ if (m === 0) {
3804
+ return 0;
3805
+ }
3806
+ const t = computeT(s1, s2, { s1Matches, s2Matches });
3807
+ const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
3808
+ const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
3809
+ return jaroWeight + winklerWeight * (1 - jaroWeight);
3810
+ };
3811
+ function computeM(s1, s2) {
3812
+ const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
3813
+ const s1Matches = new Array(s1.length);
3814
+ const s2Matches = new Array(s2.length);
3815
+ let m = 0;
3816
+ for (let i = 0; i < s1.length; i++) {
3817
+ const low = Math.max(0, i - range);
3818
+ const high = Math.min(i + range, s2.length - 1);
3819
+ for (let j = low; j <= high; j++) {
3820
+ if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
3821
+ continue;
3822
+ }
3823
+ m++;
3824
+ s1Matches[i] = true;
3825
+ s2Matches[j] = true;
3826
+ }
3827
+ }
3828
+ return { m, s1Matches, s2Matches };
3829
+ }
3830
+ function computeT(s1, s2, { s1Matches, s2Matches }) {
3831
+ let t = 0;
3832
+ for (let i = 0, k = 0; i < s1.length; i++) {
3833
+ if (!s1Matches[i]) {
3834
+ continue;
3835
+ }
3836
+ let j = k;
3837
+ for (; j < s2.length; j++) {
3838
+ if (s2Matches[j]) {
3839
+ k = j + 1;
3840
+ break;
3841
+ }
3842
+ }
3843
+ if (s1[i] !== s2[j]) {
3844
+ t++;
3845
+ }
3846
+ }
3847
+ return t;
3848
+ }
3849
+ function computePrefixL(s1, s2) {
3850
+ let prefixL = 0;
3851
+ while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
3852
+ prefixL++;
3853
+ }
3854
+ return prefixL;
3855
+ }
3856
+
3867
3857
  const SearchBar$1 = JSX(({ className, searchTerm, onSearch }) => {
3868
3858
  return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-m w-full peer text-l text-black border border-solid rounded-md box-border
3869
3859
  outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
@@ -3928,6 +3918,13 @@
3928
3918
  }, deps);
3929
3919
  }
3930
3920
 
3921
+ const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
3922
+ const desc = (cmp) => (a, b) => -cmp(a, b);
3923
+
3924
+ function zip(firstCol, ...restCols) {
3925
+ return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
3926
+ }
3927
+
3931
3928
  const joinMaps = (aggregate, emptyVal) => (acc, map) => {
3932
3929
  for (const [key, b] of map) {
3933
3930
  acc.set(key, aggregate(acc.get(key) || emptyVal, b));
@@ -4556,7 +4553,7 @@
4556
4553
 
4557
4554
  async function fetchMultitudeJSON(...urls) {
4558
4555
  const fetchPromises = urls.map((url) => fetchJSON(url));
4559
- return await Promise.all(fetchPromises);
4556
+ return Promise.all(fetchPromises);
4560
4557
  }
4561
4558
 
4562
4559
  const unique = (list) => [...new Set(list)];
@@ -4915,7 +4912,7 @@
4915
4912
 
4916
4913
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
4917
4914
 
4918
- const packageVersion = "0.14.4";
4915
+ const packageVersion = "0.14.6";
4919
4916
 
4920
4917
  exports.Blocks = Blocks;
4921
4918
  exports.ContentPage = ContentPage;