@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
@@ -646,7 +646,7 @@
646
646
  return '';
647
647
  }
648
648
  const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
649
- return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12', rounded ? 'rounded-full' : '');
649
+ return style('group/btn items-center justify-center', isWithText(props) ? withTextStyle : 'h-12 w-12 m-auto', rounded ? 'rounded-full' : '');
650
650
  };
651
651
  const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
652
652
 
@@ -692,14 +692,20 @@
692
692
  };
693
693
 
694
694
  const Input = JSX(({ key, className = '', inputClassName = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, }) => {
695
+ const inputRef = useRef(null);
695
696
  const handleChange = useCallback((e) => {
696
697
  onChange && onChange(e.target?.value || '');
697
698
  }, [onChange]);
699
+ useEffect(() => {
700
+ if (autoFocus) {
701
+ inputRef.current?.focus();
702
+ }
703
+ }, [autoFocus, inputRef]);
698
704
  const paddingStyle = children ? 'pr-3xl' : '';
699
705
  const validStyle = valid
700
706
  ? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
701
707
  : 'border-error';
702
- 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] }));
708
+ 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] }));
703
709
  });
704
710
 
705
711
  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 })] })));
@@ -819,88 +825,11 @@
819
825
  close: () => defaultEventBus.fire('popup', { type: 'close' }),
820
826
  });
821
827
 
822
- const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
823
- const desc = (cmp) => (a, b) => -cmp(a, b);
824
-
825
- const JARO_WINKLER_P = 0.1;
826
- const JARO_WINKLER_MAX_L = 4;
827
- const jaroWinklerDistance = (s1) => (s2) => {
828
- if (s1 === s2) {
829
- return 1;
830
- }
831
- if (!s1 || !s2) {
832
- return 0;
833
- }
834
- const { m, s1Matches, s2Matches } = computeM(s1, s2);
835
- if (m === 0) {
836
- return 0;
837
- }
838
- const t = computeT(s1, s2, { s1Matches, s2Matches });
839
- const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
840
- const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
841
- return jaroWeight + winklerWeight * (1 - jaroWeight);
842
- };
843
- function computeM(s1, s2) {
844
- const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
845
- const s1Matches = new Array(s1.length);
846
- const s2Matches = new Array(s2.length);
847
- let m = 0;
848
- for (let i = 0; i < s1.length; i++) {
849
- const low = Math.max(0, i - range);
850
- const high = Math.min(i + range, s2.length - 1);
851
- for (let j = low; j <= high; j++) {
852
- if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
853
- continue;
854
- }
855
- m++;
856
- s1Matches[i] = true;
857
- s2Matches[j] = true;
858
- }
859
- }
860
- return { m, s1Matches, s2Matches };
861
- }
862
- function computeT(s1, s2, { s1Matches, s2Matches }) {
863
- let t = 0;
864
- for (let i = 0, k = 0; i < s1.length; i++) {
865
- if (!s1Matches[i]) {
866
- continue;
867
- }
868
- let j = k;
869
- for (; j < s2.length; j++) {
870
- if (s2Matches[j]) {
871
- k = j + 1;
872
- break;
873
- }
874
- }
875
- if (s1[i] !== s2[j]) {
876
- t++;
877
- }
878
- }
879
- return t;
880
- }
881
- function computePrefixL(s1, s2) {
882
- let prefixL = 0;
883
- while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
884
- prefixL++;
885
- }
886
- return prefixL;
887
- }
888
-
889
- function zip(firstCol, ...restCols) {
890
- return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
891
- }
892
-
893
828
  const filterOptions = (options, query) => {
894
829
  if (!options?.length || !query?.trim()) {
895
830
  return options;
896
831
  }
897
- const ranking = options
898
- .map((_) => _.text?.toLowerCase())
899
- .map(jaroWinklerDistance(query?.trim().toLowerCase()));
900
- return zip(options, ranking)
901
- .filter(([, rank]) => rank >= 0.5)
902
- .sort(desc(compareBy(([, rank]) => rank)))
903
- .map(([option]) => option);
832
+ return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
904
833
  };
905
834
 
906
835
  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);
@@ -1008,7 +937,7 @@
1008
937
 
1009
938
  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) })] })] }));
1010
939
 
1011
- 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) }));
940
+ 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) }));
1012
941
 
1013
942
  const initialFormState$3 = {
1014
943
  name: '',
@@ -1126,7 +1055,7 @@
1126
1055
 
1127
1056
  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') })] })] }));
1128
1057
 
1129
- 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 = '' }) => ({
1058
+ 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 = '' }) => ({
1130
1059
  key: branchCode,
1131
1060
  text: address,
1132
1061
  })), ...withValidator(field('department'), defaultValidator) }) })] }));
@@ -1255,7 +1184,7 @@
1255
1184
 
1256
1185
  const renderWedDataOrganization = (field, regions) => {
1257
1186
  const isCurrencyControl = field('vedTypes').value === 'currencyControl';
1258
- 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] })] }));
1187
+ 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] })] }));
1259
1188
  };
1260
1189
 
1261
1190
  const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
@@ -1366,18 +1295,20 @@
1366
1295
 
1367
1296
  const defaultIconSize = 44;
1368
1297
 
1369
- 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] })));
1370
- 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)));
1298
+ const AlignStyles = 'text-center';
1299
+
1300
+ 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] })));
1301
+ 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)));
1371
1302
  const renderDescription$3 = (description) => {
1372
1303
  const benefitType = description?.benefitType || null;
1373
- return description && benefitType ? (jsx("div", { className: "mt-2xs sm:mt-xs", children: benefitType === 'list'
1304
+ return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
1374
1305
  ? renderListBenefit(description)
1375
1306
  : renderTextBenefit(description) })) : null;
1376
1307
  };
1377
- 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;
1308
+ 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;
1378
1309
  const renderListBenefit = (description) => {
1379
1310
  const listStyleType = description?.bullets ? 'list-disc pl-3xl' : '';
1380
- 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;
1311
+ 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;
1381
1312
  };
1382
1313
 
1383
1314
  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(buttonClassName)) })) : null;
@@ -1450,8 +1381,6 @@
1450
1381
  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] }));
1451
1382
  });
1452
1383
 
1453
- const AlignStyles = 'text-center';
1454
-
1455
1384
  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
1456
1385
  ? 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
1457
1386
  ? renderBonusItemContent(_.bonusItemContent)
@@ -1635,7 +1564,6 @@
1635
1564
  isMonthlyInterestPayment: true,
1636
1565
  isReplenished: false,
1637
1566
  isPartialWithdrawal: false,
1638
- isSmallBusiness: false,
1639
1567
  depositeName: "Депозит 'Стабильный'",
1640
1568
  };
1641
1569
  const CREDIT_CALC_DEFAULT_DIR = 'credit-calculator-data';
@@ -1807,7 +1735,7 @@
1807
1735
  const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
1808
1736
 
1809
1737
  const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDir) => {
1810
- const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isSmallBusiness, isMonthlyInterestPayment, } = userInputParams;
1738
+ const { daysValue, moneyValue, isPartialWithdrawal, isReplenished, isMonthlyInterestPayment } = userInputParams;
1811
1739
  const data = useCalculatorParams(sourceBookDir || BUSINESS_DEPOSIT_CALC_DEFAULT_DIR);
1812
1740
  const isOperatingDeposit = isReplenished || isPartialWithdrawal;
1813
1741
  const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
@@ -1821,7 +1749,6 @@
1821
1749
  }
1822
1750
  const businessDepositCalculatorSourceBookParams = data?.rateRows?.find((_) => {
1823
1751
  return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
1824
- isSmallBusiness === _.isSmallBusiness &&
1825
1752
  checkIsOperatingDeposit(isOperatingDeposit, _) &&
1826
1753
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], _) &&
1827
1754
  checkRangeByKeys(daysValue, ['minDays', 'maxDays'], _));
@@ -1862,7 +1789,6 @@
1862
1789
  daysValue: BUSINESS_DEFAULT_DAYS,
1863
1790
  isReplenished: false,
1864
1791
  isPartialWithdrawal: false,
1865
- isSmallBusiness: false,
1866
1792
  isMonthlyInterestPayment: false,
1867
1793
  });
1868
1794
  const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
@@ -1879,19 +1805,19 @@
1879
1805
  max: calculatorParams.maxDays,
1880
1806
  ...field('daysValue'),
1881
1807
  value: calculatorParams.daysValue,
1882
- }), renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1883
- title: 'Выплата процентов',
1884
- orientation: 'vertical',
1885
- ...field('isMonthlyInterestPayment'),
1886
- radioGroupClassName: 'sm:flex-col',
1887
- })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
1808
+ }), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1809
+ title: 'Выплата процентов',
1810
+ orientation: 'vertical',
1811
+ ...field('isMonthlyInterestPayment'),
1812
+ radioGroupClassName: 'sm:flex-col',
1813
+ })] })] }), jsx("div", { className: "border-b border-main-divider md:hidden" }), renderRate({
1888
1814
  rate,
1889
1815
  depositeName,
1890
1816
  isShowDepositeName,
1891
1817
  isUnavailableByTerm,
1892
1818
  }), jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [renderDepositResults(finalSum, income), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote), renderFootnote(bottomFootnote)] })] }));
1893
1819
  });
1894
- 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 })] }));
1820
+ 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 })] })] }));
1895
1821
  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" })] }));
1896
1822
 
1897
1823
  const STEP_MONTHS = 1;
@@ -2665,7 +2591,6 @@
2665
2591
  'CarouselTariffsCard',
2666
2592
  'CarouselRichTextCard',
2667
2593
  'CarouselInvestmentCard',
2668
- 'CarouselEventCard',
2669
2594
  'ProductBlock',
2670
2595
  ];
2671
2596
  Carousel.childSchema = () => ({
@@ -2710,23 +2635,12 @@
2710
2635
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align })) : null, rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full mt-lg' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
2711
2636
  const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2712
2637
 
2713
- const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2714
- const link = useLink({ isRemote });
2715
- const linkProps = link({ href, target });
2716
- const Tag = href ? 'a' : 'div';
2717
- return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2718
- });
2719
-
2720
- const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2721
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("div", { className: "p-s", children: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
2722
- });
2723
-
2724
2638
  const cardColumnsModeStyleMap = {
2725
2639
  1: 'grid-cols-1',
2726
2640
  2: 'grid-cols-2',
2727
2641
  };
2728
2642
  const CarouselInvestmentCard = JSX(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('text-left', className), padding: "p-0", ...rest, children: jsxs(BaseTile, { className: "h-full", defaultPadding: "p-xl", padding: padding, title: title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-m z-10", title: title }) : null, backImage: image?.src ? jsx(Img, { image: image }) : null, children: [jsxs("div", { className: "flex justify-between mb-m", children: [description ? (jsx("div", { className: "w-1/3", children: jsx(Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? (jsx("ul", { className: style('list-none m-0 p-0 grid gap-xs', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList) })) : null] }) })));
2729
- const renderCardList = (cardsList) => cardsList.map((item, i) => (jsxs("li", { children: [item?.parameter ? jsx(Text, { size: "text-h6", children: item.parameter }) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
2643
+ const renderCardList = (cardsList) => cardsList.map((item, i) => (jsxs("li", { children: [item?.parameter ? (jsx("div", { className: "inline pr-xs", children: jsx(Text, { size: "text-h6", children: item.parameter }) })) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
2730
2644
 
2731
2645
  const LINK_CLASS_NAME = `absolute border
2732
2646
  bg-white flex justify-between group-hover/link:text-primary-main`;
@@ -2747,6 +2661,13 @@
2747
2661
  .map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
2748
2662
  };
2749
2663
 
2664
+ const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2665
+ const link = useLink({ isRemote });
2666
+ const linkProps = link({ href, target });
2667
+ const Tag = href ? 'a' : 'div';
2668
+ return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
2669
+ });
2670
+
2750
2671
  const DOT_SIZE_MAP = {
2751
2672
  L: 'w-1.5 h-1.5 mr-m',
2752
2673
  M: 'w-1.5 h-1.5 mr-s',
@@ -2770,15 +2691,15 @@
2770
2691
  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);
2771
2692
 
2772
2693
  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 }) => {
2773
- 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], {
2694
+ 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], {
2774
2695
  className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2775
2696
  isVertical: isButtonFullWidth,
2776
2697
  })] }));
2777
2698
  });
2778
- 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] }));
2779
- const renderCardTitle = (headlineSmallVersion, title) => title ? jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
2780
- const renderDescription$2 = (description) => description ? jsx(Paragraph, { size: "text-l", children: description }) : null;
2781
- 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;
2699
+ 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] }));
2700
+ const renderCardTitle = (headlineSmallVersion, title, align) => title ? (jsx(Text, { align: align, size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title })) : null;
2701
+ const renderDescription$2 = (description, align) => description ? (jsx(Paragraph, { align: align, size: "text-l", children: description })) : null;
2702
+ 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;
2782
2703
  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;
2783
2704
 
2784
2705
  const sum = (list = []) => list.reduce((a, b) => a + b, 0);
@@ -2841,65 +2762,66 @@
2841
2762
  description: _.description,
2842
2763
  })) }) }) })));
2843
2764
 
2844
- const buttonSizeStyle = {
2845
- default: 'w-14 h-14',
2846
- stretched: 'flex-1 h-14',
2847
- };
2848
-
2849
2765
  const ICONS_MAP = [
2850
2766
  {
2851
2767
  origins: ['t.me', 'telegram.org'],
2852
2768
  iconMapped: { icon: 'TelegramIcon' },
2853
- label: 'Телеграм',
2854
2769
  },
2855
2770
  {
2856
2771
  origins: ['vk.com'],
2857
2772
  iconMapped: { icon: 'VKIcon' },
2858
- label: 'ВКонтакте',
2859
2773
  },
2860
2774
  {
2861
2775
  origins: ['ok.ru'],
2862
2776
  iconMapped: { icon: 'OkIcon' },
2863
- label: 'Одноклассники',
2864
2777
  },
2865
2778
  {
2866
2779
  origins: ['apps.apple.com'],
2867
2780
  iconMapped: { icon: 'AppleIcon' },
2868
- label: 'App Store',
2869
2781
  },
2870
2782
  {
2871
2783
  origins: ['play.google.com'],
2872
2784
  iconMapped: { icon: 'PlayMarketIcon' },
2873
- label: 'Google Play',
2874
2785
  },
2875
2786
  {
2876
2787
  origins: ['youtube.com'],
2877
2788
  iconMapped: { icon: 'YoutubeIcon' },
2878
- label: 'Youtube',
2879
2789
  },
2880
2790
  {
2881
2791
  origins: ['rutube.ru'],
2882
2792
  iconMapped: { icon: 'RutubeIcon' },
2883
- label: 'Rutube',
2884
2793
  },
2885
2794
  ];
2886
2795
 
2887
2796
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
2888
2797
 
2889
- //TODO: Refactor this.
2890
- const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
2891
- const { href } = rest;
2892
- const { iconMapped, label } = findIconByHref(href);
2893
- const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2894
- 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" }) }));
2798
+ const SocialMedia = JSX(({ className = '', media, showButtonText, stretched, children }) => {
2799
+ const [hasText, setHasText] = useState();
2800
+ const buttons = media?.map((_) => {
2801
+ const { href, icon, text } = _;
2802
+ const { iconMapped } = findIconByHref(href);
2803
+ const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2804
+ const buttonText = showButtonText ? { text } : {};
2805
+ if (!hasText && text) {
2806
+ setHasText(true);
2807
+ }
2808
+ return {
2809
+ ...buttonText,
2810
+ icon: { ...iconCustom, iconVersion: 'color' },
2811
+ version: 'white',
2812
+ };
2813
+ });
2814
+ 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' : '');
2815
+ 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, {
2816
+ className: stretched ? 'w-full' : '',
2817
+ buttonClassName,
2818
+ }) })] }));
2895
2819
  });
2896
2820
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2897
2821
 
2898
- 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)))) })] })));
2899
-
2900
2822
  //TODO: replace SocialMedia with renderButtonSection
2901
2823
  const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2902
- return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2824
+ return (jsx(BlockWrapper, { className: style('relative min-h-28 group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia, showButtonText: true }) : null, children: items.length ? jsx(List, { items: items, listItemSize: listItemSize }) : null }) }) }));
2903
2825
  });
2904
2826
 
2905
2827
  const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
@@ -3120,11 +3042,15 @@
3120
3042
 
3121
3043
  async function fetchMultitudeJSON(...urls) {
3122
3044
  const fetchPromises = urls.map((url) => fetchJSON(url));
3123
- return await Promise.all(fetchPromises);
3045
+ return Promise.all(fetchPromises);
3124
3046
  }
3125
3047
 
3126
3048
  const unique = (list) => [...new Set(list)];
3127
3049
 
3050
+ function zip(firstCol, ...restCols) {
3051
+ return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
3052
+ }
3053
+
3128
3054
  const getChildSourceBook = (blocks) => blocks?.filter(hasSourceBook).map(({ content: { sourceBook } }) => sourceBook);
3129
3055
  const hasSourceBook = (block) => Boolean(block && block.content && typeof block.content.sourceBook === 'string');
3130
3056
 
@@ -3172,6 +3098,81 @@
3172
3098
  sourceBook: sourceBookSchema,
3173
3099
  });
3174
3100
 
3101
+ const checkPageRange = (page, currentPage, totalPages) => (currentPage <= 3 && page <= currentPage + 3) ||
3102
+ (currentPage >= totalPages - 1 && page >= totalPages - 4);
3103
+ const shouldRenderPage = (page, currentPage, totalPages) => (page < currentPage && page >= currentPage - 2) ||
3104
+ (page <= currentPage + 2 && page > currentPage) ||
3105
+ checkPageRange(page, currentPage, totalPages);
3106
+
3107
+ const renderPages = (pagesParams, index) => {
3108
+ const { currentPage, onPageChange, totalPages } = pagesParams;
3109
+ const page = index + 1;
3110
+ if (page === currentPage) {
3111
+ return (jsx("div", { "aria-current": "true", className: "py-m px-lg bg-green-light text-white rounded-md", children: page }, String(index)));
3112
+ }
3113
+ if (page !== 1 && page !== totalPages && shouldRenderPage(page, currentPage, totalPages)) {
3114
+ return (jsx("div", { onClick: () => onPageChange(page), className: paginationBlockStyle, "aria-label": `Страница ${page}`, children: page }, String(index)));
3115
+ }
3116
+ return null;
3117
+ };
3118
+
3119
+ const paginationBlockStyle = 'py-m px-lg rounded-md cursor-pointer hover:bg-green-more-dark hover:text-white';
3120
+ const ICON_SIZE$1 = { width: '24', height: '24' };
3121
+ const Pagination = ({ currentPage, onPageChange, totalPages }) => {
3122
+ const handlePrevPage = useCallback(() => {
3123
+ if (currentPage > 1) {
3124
+ onPageChange(currentPage - 1);
3125
+ }
3126
+ }, [currentPage]);
3127
+ const handleNextPage = useCallback(() => {
3128
+ if (currentPage < totalPages - 1) {
3129
+ onPageChange(currentPage + 1);
3130
+ }
3131
+ }, [currentPage, totalPages]);
3132
+ const handleFirstPage = useCallback(() => onPageChange(1), []);
3133
+ const handleLastPage = useCallback(() => onPageChange(totalPages), [totalPages]);
3134
+ const pages = useMemo(() => new Array(totalPages).fill({
3135
+ currentPage,
3136
+ onPageChange,
3137
+ totalPages,
3138
+ }), [totalPages, currentPage]);
3139
+ return (jsx("div", { className: "mt-3xl flex items-center select-none", role: "navigation", "aria-label": "\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F", children: jsxs("div", { className: "flex gap-m items-center", children: [jsx("div", { onClick: handlePrevPage, children: jsx(Icon, { name: "ArrowLeftIcon", iconVersion: "black", imageClassName: getIconStyle(currentPage === 1), ...ICON_SIZE$1 }) }), jsxs("div", { className: "flex gap-xs", children: [currentPage > 1 ? (jsx("div", { onClick: handleFirstPage, className: paginationBlockStyle, "aria-label": "\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 1", children: "1" })) : null, currentPage > 4 ? jsx("div", { className: "py-m px-s", children: "..." }) : null, pages.map(renderPages), currentPage < totalPages - 3 ? jsx("div", { className: "py-m px-s", children: "..." }) : null, currentPage < totalPages ? (jsx("div", { onClick: handleLastPage, className: paginationBlockStyle, "aria-label": `Страница ${totalPages}}`, children: totalPages })) : null] }), jsx("div", { onClick: handleNextPage, children: jsx(Icon, { className: "rotate-180", name: "ArrowLeftIcon", iconVersion: "black", imageClassName: getIconStyle(currentPage === totalPages), ...ICON_SIZE$1 }) })] }) }));
3140
+ };
3141
+ const getIconStyle = (condition) => condition ? 'opacity-20' : 'cursor-pointer hover:opacity-60';
3142
+
3143
+ const convertTimestampToDate = (timestamp) => {
3144
+ const date = new Date(timestamp * 1000);
3145
+ let dd = date.getDate();
3146
+ if (dd < 10) {
3147
+ dd = '0' + dd;
3148
+ }
3149
+ let mm = date.getMonth() + 1;
3150
+ if (mm < 10) {
3151
+ mm = '0' + mm;
3152
+ }
3153
+ return dd + '.' + mm + '.' + date.getFullYear();
3154
+ };
3155
+
3156
+ const DepositoryItem = ({ title, timestamp = 0, publicId }) => {
3157
+ const link = useLink();
3158
+ const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
3159
+ 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: jsx("span", { children: convertTimestampToDate(timestamp) }) }), 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));
3160
+ };
3161
+
3162
+ const useDepository = (size, page) => {
3163
+ const { data } = useAsyncData(`/api/v1/depository?page=${page}&size=${size}`, fetchJSONUnsafe);
3164
+ return { items: data?.content, totalPages: data?.totalPages };
3165
+ };
3166
+
3167
+ const DEFAULT_ITEMS_COUNT = 10;
3168
+ const Depository = JSX(({ className, ...rest }) => {
3169
+ const [currentPage, setCurrentPage] = useState(0);
3170
+ const [itemCount] = useState(DEFAULT_ITEMS_COUNT);
3171
+ const { totalPages = 0, items } = useDepository(itemCount, currentPage);
3172
+ const handleChangePage = useCallback((page) => setCurrentPage(page - 1), []);
3173
+ return (jsx(BlockWrapper, { className: style(className, 'container p-4xl'), ...rest, children: jsxs("div", { className: "flex flex-col", children: [jsxs("div", { className: "grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b", children: [jsx("span", { className: "col-span-2 text-gray text-m", children: "\u0414\u0430\u0442\u0430" }), jsx("span", { className: "col-span-10 text-gray text-m", children: "\u0422\u0435\u043C\u0430" })] }), items?.map((params) => (jsx(DepositoryItem, { ...params }, String(params.publicId)))), jsx(Pagination, { currentPage: currentPage + 1, onPageChange: handleChangePage, totalPages: totalPages + 1 })] }) }));
3174
+ });
3175
+
3175
3176
  const renderErrorContent = (error) => {
3176
3177
  if (error?.contentType === 'Image' && error?.image) {
3177
3178
  return jsx(Img, { image: error.image });
@@ -3405,6 +3406,73 @@
3405
3406
  }, deps);
3406
3407
  }
3407
3408
 
3409
+ const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
3410
+ const desc = (cmp) => (a, b) => -cmp(a, b);
3411
+
3412
+ const JARO_WINKLER_P = 0.1;
3413
+ const JARO_WINKLER_MAX_L = 4;
3414
+ const jaroWinklerDistance = (s1) => (s2) => {
3415
+ if (s1 === s2) {
3416
+ return 1;
3417
+ }
3418
+ if (!s1 || !s2) {
3419
+ return 0;
3420
+ }
3421
+ const { m, s1Matches, s2Matches } = computeM(s1, s2);
3422
+ if (m === 0) {
3423
+ return 0;
3424
+ }
3425
+ const t = computeT(s1, s2, { s1Matches, s2Matches });
3426
+ const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
3427
+ const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
3428
+ return jaroWeight + winklerWeight * (1 - jaroWeight);
3429
+ };
3430
+ function computeM(s1, s2) {
3431
+ const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
3432
+ const s1Matches = new Array(s1.length);
3433
+ const s2Matches = new Array(s2.length);
3434
+ let m = 0;
3435
+ for (let i = 0; i < s1.length; i++) {
3436
+ const low = Math.max(0, i - range);
3437
+ const high = Math.min(i + range, s2.length - 1);
3438
+ for (let j = low; j <= high; j++) {
3439
+ if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
3440
+ continue;
3441
+ }
3442
+ m++;
3443
+ s1Matches[i] = true;
3444
+ s2Matches[j] = true;
3445
+ }
3446
+ }
3447
+ return { m, s1Matches, s2Matches };
3448
+ }
3449
+ function computeT(s1, s2, { s1Matches, s2Matches }) {
3450
+ let t = 0;
3451
+ for (let i = 0, k = 0; i < s1.length; i++) {
3452
+ if (!s1Matches[i]) {
3453
+ continue;
3454
+ }
3455
+ let j = k;
3456
+ for (; j < s2.length; j++) {
3457
+ if (s2Matches[j]) {
3458
+ k = j + 1;
3459
+ break;
3460
+ }
3461
+ }
3462
+ if (s1[i] !== s2[j]) {
3463
+ t++;
3464
+ }
3465
+ }
3466
+ return t;
3467
+ }
3468
+ function computePrefixL(s1, s2) {
3469
+ let prefixL = 0;
3470
+ while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
3471
+ prefixL++;
3472
+ }
3473
+ return prefixL;
3474
+ }
3475
+
3408
3476
  const joinMaps = (aggregate, emptyVal) => (acc, map) => {
3409
3477
  for (const [key, b] of map) {
3410
3478
  acc.set(key, aggregate(acc.get(key) || emptyVal, b));
@@ -5097,7 +5165,6 @@
5097
5165
  CarouselBankHistoryCard,
5098
5166
  CarouselCard,
5099
5167
  CarouselCatalogCard,
5100
- CarouselEventCard,
5101
5168
  CarouselInvestmentCard,
5102
5169
  CarouselLinks,
5103
5170
  CarouselProductCard,
@@ -5107,6 +5174,7 @@
5107
5174
  CarouselTariffsCard,
5108
5175
  ComparisonTable,
5109
5176
  ContactsBlock,
5177
+ Depository,
5110
5178
  DepositFiltration,
5111
5179
  ErrorBlock,
5112
5180
  ExchangeRateTile,
@@ -5379,7 +5447,7 @@
5379
5447
  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" }) }));
5380
5448
  }
5381
5449
 
5382
- const packageVersion = "0.14.4";
5450
+ const packageVersion = "0.14.6";
5383
5451
 
5384
5452
  exports.Blocks = Blocks;
5385
5453
  exports.ContentPage = ContentPage;