@redneckz/wildless-cms-uni-blocks 0.13.23 → 0.14.0

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 (1898) hide show
  1. package/bin/migration-scripts/0.13.15.js +25 -0
  2. package/bin/migration-scripts/0.13.22.js +28 -0
  3. package/bin/migration-scripts/0.14.0.js +26 -0
  4. package/bundle/EventBus/defaultEventBus.d.ts +3 -1
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +612 -470
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
  9. package/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
  10. package/bundle/components/ApplicationForm/CreditFormState.d.ts +1 -1
  11. package/bundle/components/ApplicationForm/WedFormState.d.ts +5 -4
  12. package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.mobile.d.ts +4 -0
  13. package/bundle/components/ApplicationForm/renderCreditDataOrganization.mobile.d.ts +4 -0
  14. package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
  15. package/bundle/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
  16. package/bundle/components/Bonus/BonusContent.d.ts +2 -0
  17. package/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
  18. package/bundle/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  19. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  20. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  21. package/bundle/components/ComparisonTable/constants.d.ts +4 -4
  22. package/bundle/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
  23. package/bundle/components/DepositFiltration/getPeriod.d.ts +9 -0
  24. package/bundle/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
  25. package/bundle/components/Footer/FooterContent.d.ts +4 -1
  26. package/bundle/components/Footer/FooterDataProps.d.ts +4 -10
  27. package/bundle/components/Footer/MediaButton.d.ts +2 -3
  28. package/bundle/components/Footer/{buttonSizeStyles.d.ts → buttonSizeStyle.d.ts} +1 -1
  29. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
  30. package/bundle/components/MobileAppTile/renderList.d.ts +2 -1
  31. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  32. package/bundle/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
  33. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +4 -4
  34. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +0 -3
  35. package/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
  36. package/bundle/components/TariffsTable/constants.d.ts +2 -2
  37. package/bundle/components/TariffsTable/headlineAlign.d.ts +1 -0
  38. package/bundle/components/TariffsTable/headlineAlign.mobile.d.ts +1 -0
  39. package/bundle/model/AlignStyles.d.ts +1 -0
  40. package/bundle/model/AlignStyles.mobile.d.ts +1 -0
  41. package/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
  42. package/bundle/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
  43. package/bundle/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
  44. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  45. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  46. package/bundle/ui-kit/InnerTable/InnerTableBodyItem.mobile.d.ts +5 -0
  47. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  48. package/bundle/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
  49. package/bundle/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
  50. package/bundle/ui-kit/InnerTable/linkButtonVersion.mobile.d.ts +1 -0
  51. package/bundle/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
  52. package/bundle/ui-kit/PopupManager/PopupAction.d.ts +14 -0
  53. package/bundle/ui-kit/PopupManager/PopupManager.d.ts +2 -0
  54. package/bundle/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
  55. package/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
  56. package/bundle/ui-kit/Select/Option.d.ts +4 -0
  57. package/bundle/ui-kit/Select/Select.d.ts +2 -5
  58. package/bundle/ui-kit/Select/SelectPopup.d.ts +11 -0
  59. package/bundle/ui-kit/Select/filterOptions.d.ts +2 -0
  60. package/bundle/ui-kit/Select/formatOption.d.ts +2 -0
  61. package/bundle/ui-kit/Select/useSelectPopup.d.ts +9 -0
  62. package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
  63. package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  64. package/bundle/utils/fetchMultitudeJSON.d.ts +1 -0
  65. package/cosmos-static/icons/MailIcon.svg +1 -1
  66. package/cosmos-static/icons/PhoneIcon.svg +1 -1
  67. package/cosmos-static/icons/RutubeIcon.svg +1 -1
  68. package/dist/EventBus/defaultEventBus.d.ts +3 -1
  69. package/dist/EventBus/defaultEventBus.js.map +1 -1
  70. package/dist/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
  71. package/dist/components/ApplicationForm/ApplicationForm.js +1 -6
  72. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  73. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  74. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  75. package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  76. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  77. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  78. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  79. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  80. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  81. package/dist/components/ApplicationForm/ApplicationFormWed.js +35 -16
  82. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  83. package/dist/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
  84. package/dist/components/ApplicationForm/CreditFormState.d.ts +1 -1
  85. package/dist/components/ApplicationForm/WedFormState.d.ts +5 -4
  86. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  87. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  88. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.mobile.d.ts +4 -0
  89. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js +10 -0
  90. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js.map +1 -0
  91. package/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
  92. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  93. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  94. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  95. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  96. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  97. package/dist/components/ApplicationForm/renderCreditDataOrganization.mobile.d.ts +4 -0
  98. package/dist/components/ApplicationForm/renderCreditDataOrganization.mobile.js +10 -0
  99. package/dist/components/ApplicationForm/renderCreditDataOrganization.mobile.js.map +1 -0
  100. package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
  101. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  102. package/dist/components/ApplicationForm/renderQuestionsInterested.js +3 -3
  103. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  104. package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  105. package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  106. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  107. package/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
  108. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  109. package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
  110. package/dist/components/ApplicationForm/renderWedDataOrganization.js +5 -1
  111. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  112. package/dist/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
  113. package/dist/components/ApplicationForm/renderWedTextarea.js +12 -0
  114. package/dist/components/ApplicationForm/renderWedTextarea.js.map +1 -0
  115. package/dist/components/Bonus/Bonus.js +4 -3
  116. package/dist/components/Bonus/Bonus.js.map +1 -1
  117. package/dist/components/Bonus/BonusContent.d.ts +2 -0
  118. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  119. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  120. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
  121. package/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  122. package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
  123. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  124. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  125. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  126. package/dist/components/Calculator/Calculator.mobile.js +1 -1
  127. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  128. package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  129. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  130. package/dist/components/Calculator/DepositCalculatorForm.js +1 -1
  131. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  132. package/dist/components/Calculator/RefinancingCalculatorForm.js +1 -1
  133. package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  134. package/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  135. package/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  136. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  137. package/dist/components/Carousel/Carousel.js +3 -1
  138. package/dist/components/Carousel/Carousel.js.map +1 -1
  139. package/dist/components/Carousel/visibleItemCount.d.ts +1 -0
  140. package/dist/components/Carousel/visibleItemCount.js +4 -0
  141. package/dist/components/Carousel/visibleItemCount.js.map +1 -0
  142. package/dist/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  143. package/dist/components/Carousel/visibleItemCount.mobile.js +4 -0
  144. package/dist/components/Carousel/visibleItemCount.mobile.js.map +1 -0
  145. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  146. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  147. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
  148. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  149. package/dist/components/CarouselLinks/CarouselLinkButton.js +5 -5
  150. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  151. package/dist/components/CarouselLinks/CarouselLinks.js +4 -4
  152. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  153. package/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
  154. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  155. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -2
  156. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  157. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  158. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  159. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  160. package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  161. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  162. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  163. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  164. package/dist/components/ComparisonTable/HeaderCell.js +2 -1
  165. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  166. package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  167. package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  168. package/dist/components/ComparisonTable/TableCell.js +4 -3
  169. package/dist/components/ComparisonTable/TableCell.js.map +1 -1
  170. package/dist/components/ComparisonTable/TableCell.mobile.js +4 -6
  171. package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  172. package/dist/components/ComparisonTable/TableColumn.js +3 -2
  173. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  174. package/dist/components/ComparisonTable/TableRow.js +2 -1
  175. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  176. package/dist/components/ComparisonTable/constants.d.ts +4 -4
  177. package/dist/components/ComparisonTable/constants.js +5 -5
  178. package/dist/components/ComparisonTable/constants.js.map +1 -1
  179. package/dist/components/ContentPage/ContentPage.js +2 -1
  180. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  181. package/dist/components/DepositFiltration/DepositFiltration.js +16 -13
  182. package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
  183. package/dist/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
  184. package/dist/components/DepositFiltration/getChildSourceBook.js +6 -0
  185. package/dist/components/DepositFiltration/getChildSourceBook.js.map +1 -0
  186. package/dist/components/DepositFiltration/getPeriod.d.ts +9 -0
  187. package/dist/components/DepositFiltration/getPeriod.js +7 -0
  188. package/dist/components/DepositFiltration/getPeriod.js.map +1 -0
  189. package/dist/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
  190. package/dist/components/DepositFiltration/useDepositsPeriods.js +24 -0
  191. package/dist/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
  192. package/dist/components/ErrorBlock/ErrorBlock.js +2 -2
  193. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  194. package/dist/components/Footer/Footer.js +4 -3
  195. package/dist/components/Footer/Footer.js.map +1 -1
  196. package/dist/components/Footer/Footer.mobile.js +1 -1
  197. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  198. package/dist/components/Footer/FooterContent.d.ts +4 -1
  199. package/dist/components/Footer/FooterDataProps.d.ts +4 -10
  200. package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
  201. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  202. package/dist/components/Footer/MediaButton.d.ts +2 -3
  203. package/dist/components/Footer/MediaButton.js +5 -4
  204. package/dist/components/Footer/MediaButton.js.map +1 -1
  205. package/dist/components/Footer/SocialMedia.js +1 -1
  206. package/dist/components/Footer/SocialMedia.js.map +1 -1
  207. package/{lib/components/Footer/buttonSizeStyles.d.ts → dist/components/Footer/buttonSizeStyle.d.ts} +1 -1
  208. package/dist/components/Footer/{buttonSizeStyles.js → buttonSizeStyle.js} +3 -3
  209. package/dist/components/Footer/buttonSizeStyle.js.map +1 -0
  210. package/dist/components/Header/DropdownMenu.js +1 -1
  211. package/dist/components/Header/DropdownMenu.js.map +1 -1
  212. package/dist/components/Header/HeaderChatBotButton.js +1 -1
  213. package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  214. package/dist/components/MobileAppTile/MobileAppTile.js +2 -3
  215. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  216. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
  217. package/dist/components/MobileAppTile/renderDescription.js +1 -1
  218. package/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  219. package/dist/components/MobileAppTile/renderList.d.ts +2 -1
  220. package/dist/components/MobileAppTile/renderList.js +2 -2
  221. package/dist/components/MobileAppTile/renderList.js.map +1 -1
  222. package/dist/components/MortgageFiltration/MortgageFiltration.js +3 -1
  223. package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  224. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  225. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  226. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  227. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  228. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  229. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  230. package/dist/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
  231. package/dist/components/RollupItem/PrimaryFoldButton.js +12 -0
  232. package/dist/components/RollupItem/PrimaryFoldButton.js.map +1 -0
  233. package/dist/components/RollupItem/RollupItem.js +3 -14
  234. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  235. package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  236. package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  237. package/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
  238. package/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  239. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
  240. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  241. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  242. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  243. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  244. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  245. package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  246. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  247. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  248. package/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -1
  249. package/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  250. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +4 -4
  251. package/dist/components/TariffsTable/EmbeddableCellData.js +8 -6
  252. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  253. package/dist/components/TariffsTable/TariffsTable.js +3 -10
  254. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  255. package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
  256. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  257. package/dist/components/TariffsTable/TariffsTableContent.d.ts +0 -3
  258. package/dist/components/TariffsTable/TariffsTableRenderCell.js +10 -10
  259. package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  260. package/dist/components/TariffsTable/TariffsTableRow.js +2 -1
  261. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  262. package/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -1
  263. package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  264. package/dist/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
  265. package/dist/components/TariffsTable/TariffsTableWrapper.js +14 -0
  266. package/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
  267. package/dist/components/TariffsTable/constants.d.ts +2 -2
  268. package/dist/components/TariffsTable/constants.js +3 -3
  269. package/dist/components/TariffsTable/constants.js.map +1 -1
  270. package/dist/components/TariffsTable/headlineAlign.d.ts +1 -0
  271. package/dist/components/TariffsTable/headlineAlign.js +4 -0
  272. package/dist/components/TariffsTable/headlineAlign.js.map +1 -0
  273. package/dist/components/TariffsTable/headlineAlign.mobile.d.ts +1 -0
  274. package/dist/components/TariffsTable/headlineAlign.mobile.js +4 -0
  275. package/dist/components/TariffsTable/headlineAlign.mobile.js.map +1 -0
  276. package/dist/content-page-repository/transformContentPage.js +5 -6
  277. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  278. package/dist/icons/IconName.js +1 -1
  279. package/dist/icons/IconName.js.map +1 -1
  280. package/dist/model/AlignStyles.d.ts +1 -0
  281. package/dist/model/AlignStyles.js +4 -0
  282. package/dist/model/AlignStyles.js.map +1 -0
  283. package/dist/model/AlignStyles.mobile.d.ts +1 -0
  284. package/dist/model/AlignStyles.mobile.js +4 -0
  285. package/dist/model/AlignStyles.mobile.js.map +1 -0
  286. package/dist/services/search/search.js +1 -1
  287. package/dist/services/search/search.js.map +1 -1
  288. package/dist/services/search/textRank.js +1 -1
  289. package/dist/services/search/textRank.js.map +1 -1
  290. package/dist/services/search/useSearch.js +1 -1
  291. package/dist/services/search/useSearch.js.map +1 -1
  292. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
  293. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
  294. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  295. package/dist/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
  296. package/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
  297. package/dist/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
  298. package/dist/ui-kit/BaseFiltration/getBlocksToRender.js +7 -0
  299. package/dist/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
  300. package/dist/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
  301. package/{mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js → dist/ui-kit/BaseFiltration/shouldRenderBlock.js} +8 -5
  302. package/dist/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
  303. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  304. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  305. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  306. package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  307. package/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  308. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  309. package/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
  310. package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  311. package/dist/ui-kit/Button/renderButtonsSection.js +7 -3
  312. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  313. package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  314. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  315. package/dist/ui-kit/DialogManager/DialogManager.js +7 -11
  316. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  317. package/dist/ui-kit/DialogManager/useDialogsList.js +1 -1
  318. package/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  319. package/dist/ui-kit/Foldable/DefaultFoldButton.js +7 -8
  320. package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  321. package/dist/ui-kit/InnerTable/InnerTable.js +1 -1
  322. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  323. package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -5
  324. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  325. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +2 -18
  326. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  327. package/dist/ui-kit/InnerTable/InnerTableBodyItem.mobile.d.ts +5 -0
  328. package/dist/ui-kit/InnerTable/InnerTableBodyItem.mobile.js +8 -0
  329. package/dist/ui-kit/InnerTable/InnerTableBodyItem.mobile.js.map +1 -0
  330. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  331. package/dist/ui-kit/InnerTable/InnerTableButton.js +2 -4
  332. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  333. package/dist/ui-kit/InnerTable/InnerTableHeader.js +2 -1
  334. package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  335. package/dist/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
  336. package/dist/ui-kit/InnerTable/getHorizontalShift.js +7 -0
  337. package/dist/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
  338. package/dist/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
  339. package/dist/ui-kit/InnerTable/linkButtonVersion.js +4 -0
  340. package/dist/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
  341. package/dist/ui-kit/InnerTable/linkButtonVersion.mobile.d.ts +1 -0
  342. package/dist/ui-kit/InnerTable/linkButtonVersion.mobile.js +4 -0
  343. package/dist/ui-kit/InnerTable/linkButtonVersion.mobile.js.map +1 -0
  344. package/dist/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
  345. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +18 -0
  346. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
  347. package/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  348. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  349. package/dist/ui-kit/Logo/Logo.js +1 -1
  350. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  351. package/dist/ui-kit/PopupManager/PopupAction.d.ts +14 -0
  352. package/dist/ui-kit/PopupManager/PopupAction.js +2 -0
  353. package/dist/ui-kit/PopupManager/PopupAction.js.map +1 -0
  354. package/dist/ui-kit/PopupManager/PopupManager.d.ts +2 -0
  355. package/dist/ui-kit/PopupManager/PopupManager.js +39 -0
  356. package/dist/ui-kit/PopupManager/PopupManager.js.map +1 -0
  357. package/dist/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
  358. package/dist/ui-kit/PopupManager/usePopupManager.js +10 -0
  359. package/dist/ui-kit/PopupManager/usePopupManager.js.map +1 -0
  360. package/dist/ui-kit/RichText/RichText.js +2 -1
  361. package/dist/ui-kit/RichText/RichText.js.map +1 -1
  362. package/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
  363. package/dist/ui-kit/RichText/getHtmlText.js +5 -0
  364. package/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
  365. package/dist/ui-kit/Select/Option.d.ts +4 -0
  366. package/dist/ui-kit/Select/Option.js +2 -0
  367. package/dist/ui-kit/Select/Option.js.map +1 -0
  368. package/dist/ui-kit/Select/Select.d.ts +2 -5
  369. package/dist/ui-kit/Select/Select.js +18 -25
  370. package/dist/ui-kit/Select/Select.js.map +1 -1
  371. package/dist/ui-kit/Select/SelectPopup.d.ts +11 -0
  372. package/dist/ui-kit/Select/SelectPopup.js +10 -0
  373. package/dist/ui-kit/Select/SelectPopup.js.map +1 -0
  374. package/dist/ui-kit/Select/filterOptions.d.ts +2 -0
  375. package/dist/ui-kit/Select/filterOptions.js +19 -0
  376. package/dist/ui-kit/Select/filterOptions.js.map +1 -0
  377. package/dist/ui-kit/Select/formatOption.d.ts +2 -0
  378. package/dist/ui-kit/Select/formatOption.js +5 -0
  379. package/dist/ui-kit/Select/formatOption.js.map +1 -0
  380. package/dist/ui-kit/Select/useSelectPopup.d.ts +9 -0
  381. package/dist/ui-kit/Select/useSelectPopup.js +35 -0
  382. package/dist/ui-kit/Select/useSelectPopup.js.map +1 -0
  383. package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
  384. package/dist/ui-kit/TextWithIcon/TextWithIcon.js +10 -0
  385. package/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
  386. package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  387. package/dist/ui-kit/YandexMap/YandexMap.js +6 -7
  388. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  389. package/dist/utils/fetchMultitudeJSON.d.ts +1 -0
  390. package/dist/utils/fetchMultitudeJSON.js +9 -0
  391. package/dist/utils/fetchMultitudeJSON.js.map +1 -0
  392. package/dist/utils/jaroWinklerDistance.js.map +1 -0
  393. package/fonts/mohave/Mohave-Regular.ttf +0 -0
  394. package/fonts/mohave/Mohave-Regular.woff2 +0 -0
  395. package/fonts/mohave/mohave.css +2 -1
  396. package/lib/EventBus/defaultEventBus.d.ts +3 -1
  397. package/lib/EventBus/defaultEventBus.js.map +1 -1
  398. package/lib/common.css +1 -1
  399. package/lib/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
  400. package/lib/components/ApplicationForm/ApplicationForm.js +1 -6
  401. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  402. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  403. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  404. package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  405. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  406. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  407. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  408. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  409. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  410. package/lib/components/ApplicationForm/ApplicationFormWed.js +36 -17
  411. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  412. package/lib/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
  413. package/lib/components/ApplicationForm/CreditFormState.d.ts +1 -1
  414. package/lib/components/ApplicationForm/WedFormState.d.ts +5 -4
  415. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +1 -0
  416. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  417. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  418. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.mobile.d.ts +3 -0
  419. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js +7 -0
  420. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.mobile.js.map +1 -0
  421. package/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
  422. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  423. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  424. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  425. package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -0
  426. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  427. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  428. package/lib/components/ApplicationForm/renderCreditDataOrganization.mobile.d.ts +3 -0
  429. package/lib/components/ApplicationForm/renderCreditDataOrganization.mobile.js +7 -0
  430. package/lib/components/ApplicationForm/renderCreditDataOrganization.mobile.js.map +1 -0
  431. package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
  432. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  433. package/lib/components/ApplicationForm/renderQuestionsInterested.js +3 -3
  434. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  435. package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  436. package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  437. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  438. package/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
  439. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  440. package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
  441. package/lib/components/ApplicationForm/renderWedDataOrganization.js +6 -2
  442. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  443. package/lib/components/ApplicationForm/renderWedTextarea.d.ts +3 -0
  444. package/lib/components/ApplicationForm/renderWedTextarea.js +9 -0
  445. package/lib/components/ApplicationForm/renderWedTextarea.js.map +1 -0
  446. package/lib/components/Bonus/Bonus.js +4 -3
  447. package/lib/components/Bonus/Bonus.js.map +1 -1
  448. package/lib/components/Bonus/BonusContent.d.ts +2 -0
  449. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  450. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  451. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
  452. package/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  453. package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
  454. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  455. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  456. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  457. package/lib/components/Calculator/Calculator.mobile.js +1 -1
  458. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  459. package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  460. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  461. package/lib/components/Calculator/DepositCalculatorForm.js +1 -1
  462. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  463. package/lib/components/Calculator/RefinancingCalculatorForm.js +1 -1
  464. package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  465. package/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  466. package/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  467. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  468. package/lib/components/Carousel/Carousel.js +3 -1
  469. package/lib/components/Carousel/Carousel.js.map +1 -1
  470. package/lib/components/Carousel/visibleItemCount.d.ts +1 -0
  471. package/lib/components/Carousel/visibleItemCount.js +2 -0
  472. package/lib/components/Carousel/visibleItemCount.js.map +1 -0
  473. package/lib/components/Carousel/visibleItemCount.mobile.d.ts +1 -0
  474. package/lib/components/Carousel/visibleItemCount.mobile.js +2 -0
  475. package/lib/components/Carousel/visibleItemCount.mobile.js.map +1 -0
  476. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  477. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  478. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +16 -0
  479. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +16 -0
  480. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
  481. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  482. package/lib/components/CarouselLinks/CarouselLinkButton.js +5 -5
  483. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  484. package/lib/components/CarouselLinks/CarouselLinks.js +4 -4
  485. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  486. package/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
  487. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  488. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -2
  489. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  490. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.d.ts +1 -1
  491. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  492. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  493. package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  494. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  495. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +2 -2
  496. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  497. package/lib/components/ComparisonTable/HeaderCell.js +3 -2
  498. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  499. package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  500. package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  501. package/lib/components/ComparisonTable/TableCell.js +5 -4
  502. package/lib/components/ComparisonTable/TableCell.js.map +1 -1
  503. package/lib/components/ComparisonTable/TableCell.mobile.js +5 -7
  504. package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  505. package/lib/components/ComparisonTable/TableColumn.js +4 -3
  506. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  507. package/lib/components/ComparisonTable/TableRow.js +3 -2
  508. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  509. package/lib/components/ComparisonTable/constants.d.ts +4 -4
  510. package/lib/components/ComparisonTable/constants.js +4 -4
  511. package/lib/components/ComparisonTable/constants.js.map +1 -1
  512. package/lib/components/ContentPage/ContentPage.js +2 -1
  513. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  514. package/lib/components/DepositFiltration/DepositFiltration.js +16 -13
  515. package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
  516. package/lib/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
  517. package/lib/components/DepositFiltration/getChildSourceBook.js +3 -0
  518. package/lib/components/DepositFiltration/getChildSourceBook.js.map +1 -0
  519. package/lib/components/DepositFiltration/getPeriod.d.ts +9 -0
  520. package/lib/components/DepositFiltration/getPeriod.js +4 -0
  521. package/lib/components/DepositFiltration/getPeriod.js.map +1 -0
  522. package/lib/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
  523. package/lib/components/DepositFiltration/useDepositsPeriods.js +21 -0
  524. package/lib/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
  525. package/lib/components/ErrorBlock/ErrorBlock.js +2 -2
  526. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  527. package/lib/components/Footer/Footer.js +4 -3
  528. package/lib/components/Footer/Footer.js.map +1 -1
  529. package/lib/components/Footer/Footer.mobile.js +1 -1
  530. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  531. package/lib/components/Footer/FooterContent.d.ts +4 -1
  532. package/lib/components/Footer/FooterDataProps.d.ts +4 -10
  533. package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
  534. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  535. package/lib/components/Footer/MediaButton.d.ts +2 -3
  536. package/lib/components/Footer/MediaButton.js +5 -4
  537. package/lib/components/Footer/MediaButton.js.map +1 -1
  538. package/lib/components/Footer/SocialMedia.js +1 -1
  539. package/lib/components/Footer/SocialMedia.js.map +1 -1
  540. package/{mobile/bundle/components/Footer/buttonSizeStyles.d.ts → lib/components/Footer/buttonSizeStyle.d.ts} +1 -1
  541. package/lib/components/Footer/buttonSizeStyle.js +5 -0
  542. package/lib/components/Footer/buttonSizeStyle.js.map +1 -0
  543. package/lib/components/Header/DropdownMenu.js +1 -1
  544. package/lib/components/Header/DropdownMenu.js.map +1 -1
  545. package/lib/components/Header/HeaderChatBotButton.js +1 -1
  546. package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  547. package/lib/components/MobileAppTile/MobileAppTile.js +2 -3
  548. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  549. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
  550. package/lib/components/MobileAppTile/renderDescription.js +1 -1
  551. package/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  552. package/lib/components/MobileAppTile/renderList.d.ts +2 -1
  553. package/lib/components/MobileAppTile/renderList.js +2 -2
  554. package/lib/components/MobileAppTile/renderList.js.map +1 -1
  555. package/lib/components/MortgageFiltration/MortgageFiltration.js +3 -1
  556. package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  557. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  558. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  559. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  560. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  561. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  562. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  563. package/lib/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
  564. package/lib/components/RollupItem/PrimaryFoldButton.js +10 -0
  565. package/lib/components/RollupItem/PrimaryFoldButton.js.map +1 -0
  566. package/lib/components/RollupItem/RollupItem.js +4 -15
  567. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  568. package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  569. package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  570. package/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
  571. package/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  572. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
  573. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  574. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  575. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  576. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  577. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  578. package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  579. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  580. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  581. package/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -1
  582. package/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  583. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +4 -5
  584. package/lib/components/TariffsTable/EmbeddableCellData.js +8 -6
  585. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  586. package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -2
  587. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -1
  588. package/lib/components/TariffsTable/TariffsTable.js +3 -10
  589. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  590. package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
  591. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  592. package/lib/components/TariffsTable/TariffsTableContent.d.ts +0 -3
  593. package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +0 -1
  594. package/lib/components/TariffsTable/TariffsTableRenderCell.js +11 -11
  595. package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  596. package/lib/components/TariffsTable/TariffsTableRow.js +3 -2
  597. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  598. package/lib/components/TariffsTable/TariffsTableRowContainer.js +3 -1
  599. package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  600. package/lib/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
  601. package/lib/components/TariffsTable/TariffsTableWrapper.js +12 -0
  602. package/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
  603. package/lib/components/TariffsTable/constants.d.ts +2 -2
  604. package/lib/components/TariffsTable/constants.js +2 -2
  605. package/lib/components/TariffsTable/constants.js.map +1 -1
  606. package/lib/components/TariffsTable/headlineAlign.d.ts +1 -0
  607. package/lib/components/TariffsTable/headlineAlign.js +2 -0
  608. package/lib/components/TariffsTable/headlineAlign.js.map +1 -0
  609. package/lib/components/TariffsTable/headlineAlign.mobile.d.ts +1 -0
  610. package/lib/components/TariffsTable/headlineAlign.mobile.js +2 -0
  611. package/lib/components/TariffsTable/headlineAlign.mobile.js.map +1 -0
  612. package/lib/components/Tile/Tile.fixture.mobile.d.ts +9 -0
  613. package/lib/content-page-repository/transformContentPage.js +5 -6
  614. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  615. package/lib/icons/IconName.js +1 -1
  616. package/lib/icons/IconName.js.map +1 -1
  617. package/lib/model/AlignStyles.d.ts +1 -0
  618. package/lib/model/AlignStyles.js +2 -0
  619. package/lib/model/AlignStyles.js.map +1 -0
  620. package/lib/model/AlignStyles.mobile.d.ts +1 -0
  621. package/lib/model/AlignStyles.mobile.js +2 -0
  622. package/lib/model/AlignStyles.mobile.js.map +1 -0
  623. package/lib/services/search/search.js +1 -1
  624. package/lib/services/search/search.js.map +1 -1
  625. package/lib/services/search/textRank.js +1 -1
  626. package/lib/services/search/textRank.js.map +1 -1
  627. package/lib/services/search/useSearch.js +1 -1
  628. package/lib/services/search/useSearch.js.map +1 -1
  629. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
  630. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
  631. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  632. package/lib/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
  633. package/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
  634. package/lib/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
  635. package/lib/ui-kit/BaseFiltration/getBlocksToRender.js +4 -0
  636. package/lib/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
  637. package/lib/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
  638. package/{mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js → lib/ui-kit/BaseFiltration/shouldRenderBlock.js} +6 -3
  639. package/lib/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
  640. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  641. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  642. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  643. package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  644. package/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  645. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  646. package/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
  647. package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  648. package/lib/ui-kit/Button/renderButtonsSection.js +7 -3
  649. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  650. package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  651. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  652. package/lib/ui-kit/DialogManager/DialogManager.js +7 -11
  653. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  654. package/lib/ui-kit/DialogManager/useDialogsList.js +1 -1
  655. package/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  656. package/lib/ui-kit/Foldable/DefaultFoldButton.js +8 -9
  657. package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  658. package/lib/ui-kit/InnerTable/InnerTable.fixture.d.ts +6 -0
  659. package/lib/ui-kit/InnerTable/InnerTable.fixture.mobile.d.ts +6 -0
  660. package/lib/ui-kit/InnerTable/InnerTable.js +1 -1
  661. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  662. package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -5
  663. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  664. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -19
  665. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  666. package/lib/ui-kit/InnerTable/InnerTableBodyItem.mobile.d.ts +5 -0
  667. package/lib/ui-kit/InnerTable/InnerTableBodyItem.mobile.js +6 -0
  668. package/lib/ui-kit/InnerTable/InnerTableBodyItem.mobile.js.map +1 -0
  669. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  670. package/lib/ui-kit/InnerTable/InnerTableButton.fixture.mobile.d.ts +6 -0
  671. package/lib/ui-kit/InnerTable/InnerTableButton.js +3 -5
  672. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  673. package/lib/ui-kit/InnerTable/InnerTableHeader.js +2 -1
  674. package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  675. package/lib/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
  676. package/lib/ui-kit/InnerTable/getHorizontalShift.js +4 -0
  677. package/lib/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
  678. package/lib/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
  679. package/lib/ui-kit/InnerTable/linkButtonVersion.js +2 -0
  680. package/lib/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
  681. package/lib/ui-kit/InnerTable/linkButtonVersion.mobile.d.ts +1 -0
  682. package/lib/ui-kit/InnerTable/linkButtonVersion.mobile.js +2 -0
  683. package/lib/ui-kit/InnerTable/linkButtonVersion.mobile.js.map +1 -0
  684. package/lib/ui-kit/InnerTable/renderInnerTableRow.d.ts +2 -0
  685. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +15 -0
  686. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
  687. package/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  688. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  689. package/lib/ui-kit/Logo/Logo.js +1 -1
  690. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  691. package/lib/ui-kit/PopupManager/PopupAction.d.ts +14 -0
  692. package/lib/ui-kit/PopupManager/PopupAction.js +2 -0
  693. package/lib/ui-kit/PopupManager/PopupAction.js.map +1 -0
  694. package/lib/ui-kit/PopupManager/PopupManager.d.ts +2 -0
  695. package/lib/ui-kit/PopupManager/PopupManager.js +37 -0
  696. package/lib/ui-kit/PopupManager/PopupManager.js.map +1 -0
  697. package/lib/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
  698. package/lib/ui-kit/PopupManager/usePopupManager.js +7 -0
  699. package/lib/ui-kit/PopupManager/usePopupManager.js.map +1 -0
  700. package/lib/ui-kit/RichText/RichText.js +2 -1
  701. package/lib/ui-kit/RichText/RichText.js.map +1 -1
  702. package/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
  703. package/lib/ui-kit/RichText/getHtmlText.js +2 -0
  704. package/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
  705. package/lib/ui-kit/Select/Option.d.ts +4 -0
  706. package/lib/ui-kit/Select/Option.js +2 -0
  707. package/lib/ui-kit/Select/Option.js.map +1 -0
  708. package/lib/ui-kit/Select/Select.d.ts +2 -5
  709. package/lib/ui-kit/Select/Select.fixture.d.ts +1 -0
  710. package/lib/ui-kit/Select/Select.js +18 -25
  711. package/lib/ui-kit/Select/Select.js.map +1 -1
  712. package/lib/ui-kit/Select/SelectPopup.d.ts +11 -0
  713. package/lib/ui-kit/Select/SelectPopup.js +8 -0
  714. package/lib/ui-kit/Select/SelectPopup.js.map +1 -0
  715. package/lib/ui-kit/Select/filterOptions.d.ts +2 -0
  716. package/lib/ui-kit/Select/filterOptions.js +16 -0
  717. package/lib/ui-kit/Select/filterOptions.js.map +1 -0
  718. package/lib/ui-kit/Select/formatOption.d.ts +2 -0
  719. package/lib/ui-kit/Select/formatOption.js +2 -0
  720. package/lib/ui-kit/Select/formatOption.js.map +1 -0
  721. package/lib/ui-kit/Select/useSelectPopup.d.ts +9 -0
  722. package/lib/ui-kit/Select/useSelectPopup.js +32 -0
  723. package/lib/ui-kit/Select/useSelectPopup.js.map +1 -0
  724. package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
  725. package/lib/ui-kit/TextWithIcon/TextWithIcon.js +8 -0
  726. package/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
  727. package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  728. package/lib/ui-kit/YandexMap/YandexMap.js +6 -7
  729. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  730. package/lib/utils/fetchMultitudeJSON.d.ts +1 -0
  731. package/lib/utils/fetchMultitudeJSON.js +6 -0
  732. package/lib/utils/fetchMultitudeJSON.js.map +1 -0
  733. package/lib/utils/jaroWinklerDistance.js.map +1 -0
  734. package/mobile/bundle/EventBus/defaultEventBus.d.ts +3 -1
  735. package/mobile/bundle/bundle.umd.js +702 -441
  736. package/mobile/bundle/bundle.umd.min.js +1 -1
  737. package/mobile/bundle/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
  738. package/mobile/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
  739. package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +1 -1
  740. package/mobile/bundle/components/ApplicationForm/WedFormState.d.ts +5 -4
  741. package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
  742. package/mobile/bundle/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
  743. package/mobile/bundle/components/Bonus/BonusContent.d.ts +2 -0
  744. package/mobile/bundle/components/Carousel/visibleItemCount.d.ts +1 -0
  745. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  746. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  747. package/mobile/bundle/components/ComparisonTable/constants.d.ts +4 -4
  748. package/mobile/bundle/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
  749. package/mobile/bundle/components/DepositFiltration/getPeriod.d.ts +9 -0
  750. package/mobile/bundle/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
  751. package/mobile/bundle/components/Footer/FooterContent.d.ts +4 -1
  752. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +4 -10
  753. package/mobile/bundle/components/Footer/MediaButton.d.ts +2 -3
  754. package/{dist/components/Footer/buttonSizeStyles.d.ts → mobile/bundle/components/Footer/buttonSizeStyle.d.ts} +1 -1
  755. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
  756. package/mobile/bundle/components/MobileAppTile/renderList.d.ts +2 -1
  757. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  758. package/mobile/bundle/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
  759. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +9 -1
  760. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +0 -3
  761. package/mobile/bundle/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
  762. package/mobile/bundle/components/TariffsTable/constants.d.ts +2 -2
  763. package/mobile/bundle/components/TariffsTable/headlineAlign.d.ts +1 -0
  764. package/mobile/bundle/model/AlignStyles.d.ts +1 -0
  765. package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
  766. package/mobile/bundle/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
  767. package/mobile/bundle/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
  768. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  769. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  770. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  771. package/mobile/bundle/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
  772. package/mobile/bundle/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
  773. package/mobile/bundle/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
  774. package/mobile/bundle/ui-kit/PopupManager/PopupAction.d.ts +14 -0
  775. package/mobile/bundle/ui-kit/PopupManager/PopupManager.d.ts +2 -0
  776. package/mobile/bundle/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
  777. package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +1 -0
  778. package/mobile/bundle/ui-kit/Select/Option.d.ts +4 -0
  779. package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -5
  780. package/mobile/bundle/ui-kit/Select/SelectPopup.d.ts +11 -0
  781. package/mobile/bundle/ui-kit/Select/filterOptions.d.ts +2 -0
  782. package/mobile/bundle/ui-kit/Select/formatOption.d.ts +2 -0
  783. package/mobile/bundle/ui-kit/Select/useSelectPopup.d.ts +9 -0
  784. package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
  785. package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  786. package/mobile/bundle/utils/fetchMultitudeJSON.d.ts +1 -0
  787. package/mobile/dist/EventBus/defaultEventBus.d.ts +3 -1
  788. package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
  789. package/mobile/dist/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
  790. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -6
  791. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  792. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  793. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  794. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  795. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  796. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  797. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  798. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  799. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  800. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +35 -16
  801. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  802. package/mobile/dist/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
  803. package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +1 -1
  804. package/mobile/dist/components/ApplicationForm/WedFormState.d.ts +5 -4
  805. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  806. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  807. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
  808. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  809. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  810. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  811. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  812. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  813. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
  814. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  815. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +3 -3
  816. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  817. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  818. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
  819. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  820. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
  821. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  822. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
  823. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +5 -1
  824. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  825. package/mobile/dist/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
  826. package/mobile/dist/components/ApplicationForm/renderWedTextarea.js +12 -0
  827. package/mobile/dist/components/ApplicationForm/renderWedTextarea.js.map +1 -0
  828. package/mobile/dist/components/Bonus/Bonus.js +4 -3
  829. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  830. package/mobile/dist/components/Bonus/BonusContent.d.ts +2 -0
  831. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  832. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  833. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
  834. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  835. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
  836. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  837. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  838. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  839. package/mobile/dist/components/Calculator/Calculator.js +1 -1
  840. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  841. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  842. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  843. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +1 -1
  844. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  845. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +1 -1
  846. package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  847. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  848. package/mobile/dist/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  849. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  850. package/mobile/dist/components/Carousel/Carousel.js +3 -1
  851. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  852. package/mobile/dist/components/Carousel/visibleItemCount.d.ts +1 -0
  853. package/mobile/dist/components/Carousel/visibleItemCount.js +4 -0
  854. package/mobile/dist/components/Carousel/visibleItemCount.js.map +1 -0
  855. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  856. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  857. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
  858. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  859. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +5 -5
  860. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  861. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +4 -4
  862. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  863. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
  864. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  865. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  866. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  867. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  868. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  869. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  870. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  871. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  872. package/mobile/dist/components/ComparisonTable/TableCell.js +4 -6
  873. package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
  874. package/mobile/dist/components/ComparisonTable/TableColumn.js +3 -2
  875. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  876. package/mobile/dist/components/ComparisonTable/TableRow.js +2 -1
  877. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  878. package/mobile/dist/components/ComparisonTable/constants.d.ts +4 -4
  879. package/mobile/dist/components/ComparisonTable/constants.js +5 -5
  880. package/mobile/dist/components/ComparisonTable/constants.js.map +1 -1
  881. package/mobile/dist/components/ContentPage/ContentPage.js +2 -1
  882. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  883. package/mobile/dist/components/DepositFiltration/DepositFiltration.js +16 -13
  884. package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
  885. package/mobile/dist/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
  886. package/mobile/dist/components/DepositFiltration/getChildSourceBook.js +6 -0
  887. package/mobile/dist/components/DepositFiltration/getChildSourceBook.js.map +1 -0
  888. package/mobile/dist/components/DepositFiltration/getPeriod.d.ts +9 -0
  889. package/mobile/dist/components/DepositFiltration/getPeriod.js +7 -0
  890. package/mobile/dist/components/DepositFiltration/getPeriod.js.map +1 -0
  891. package/mobile/dist/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
  892. package/mobile/dist/components/DepositFiltration/useDepositsPeriods.js +24 -0
  893. package/mobile/dist/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
  894. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -2
  895. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  896. package/mobile/dist/components/Footer/Footer.js +1 -1
  897. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  898. package/mobile/dist/components/Footer/FooterContent.d.ts +4 -1
  899. package/mobile/dist/components/Footer/FooterDataProps.d.ts +4 -10
  900. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  901. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  902. package/mobile/dist/components/Footer/MediaButton.d.ts +2 -3
  903. package/mobile/dist/components/Footer/MediaButton.js +5 -4
  904. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  905. package/mobile/dist/components/Footer/SocialMedia.js +1 -1
  906. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  907. package/mobile/dist/components/Footer/buttonSizeStyle.d.ts +4 -0
  908. package/mobile/dist/components/Footer/{buttonSizeStyles.js → buttonSizeStyle.js} +3 -3
  909. package/mobile/dist/components/Footer/buttonSizeStyle.js.map +1 -0
  910. package/mobile/dist/components/Header/DropdownMenu.js +1 -1
  911. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  912. package/mobile/dist/components/Header/HeaderChatBotButton.js +1 -1
  913. package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  914. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -3
  915. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  916. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
  917. package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
  918. package/mobile/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  919. package/mobile/dist/components/MobileAppTile/renderList.d.ts +2 -1
  920. package/mobile/dist/components/MobileAppTile/renderList.js +2 -2
  921. package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
  922. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +3 -1
  923. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  924. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  925. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  926. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  927. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  928. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  929. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  930. package/mobile/dist/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
  931. package/mobile/dist/components/RollupItem/PrimaryFoldButton.js +12 -0
  932. package/mobile/dist/components/RollupItem/PrimaryFoldButton.js.map +1 -0
  933. package/mobile/dist/components/RollupItem/RollupItem.js +3 -14
  934. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  935. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  936. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  937. package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
  938. package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  939. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
  940. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  941. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  942. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  943. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  944. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  945. package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  946. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  947. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  948. package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js +1 -1
  949. package/mobile/dist/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  950. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +9 -1
  951. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +10 -5
  952. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  953. package/mobile/dist/components/TariffsTable/TariffsTable.js +24 -11
  954. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  955. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
  956. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  957. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +0 -3
  958. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +10 -10
  959. package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  960. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -1
  961. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  962. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +3 -1
  963. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  964. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
  965. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js +14 -0
  966. package/mobile/dist/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
  967. package/mobile/dist/components/TariffsTable/constants.d.ts +2 -2
  968. package/mobile/dist/components/TariffsTable/constants.js +3 -3
  969. package/mobile/dist/components/TariffsTable/constants.js.map +1 -1
  970. package/mobile/dist/components/TariffsTable/headlineAlign.d.ts +1 -0
  971. package/mobile/dist/components/TariffsTable/headlineAlign.js +4 -0
  972. package/mobile/dist/components/TariffsTable/headlineAlign.js.map +1 -0
  973. package/mobile/dist/content-page-repository/transformContentPage.js +5 -6
  974. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  975. package/mobile/dist/icons/IconName.js +1 -1
  976. package/mobile/dist/icons/IconName.js.map +1 -1
  977. package/mobile/dist/model/AlignStyles.d.ts +1 -0
  978. package/mobile/dist/model/AlignStyles.js +4 -0
  979. package/mobile/dist/model/AlignStyles.js.map +1 -0
  980. package/mobile/dist/services/search/search.js +1 -1
  981. package/mobile/dist/services/search/search.js.map +1 -1
  982. package/mobile/dist/services/search/textRank.js +1 -1
  983. package/mobile/dist/services/search/textRank.js.map +1 -1
  984. package/mobile/dist/services/search/useSearch.js +1 -1
  985. package/mobile/dist/services/search/useSearch.js.map +1 -1
  986. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
  987. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
  988. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  989. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
  990. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
  991. package/mobile/dist/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
  992. package/mobile/dist/ui-kit/BaseFiltration/getBlocksToRender.js +7 -0
  993. package/mobile/dist/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
  994. package/mobile/dist/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
  995. package/{dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js → mobile/dist/ui-kit/BaseFiltration/shouldRenderBlock.js} +8 -5
  996. package/mobile/dist/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
  997. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  998. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  999. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  1000. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  1001. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +2 -2
  1002. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  1003. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +2 -2
  1004. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  1005. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +7 -3
  1006. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  1007. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  1008. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  1009. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +7 -11
  1010. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  1011. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js +1 -1
  1012. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  1013. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +7 -8
  1014. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  1015. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +1 -1
  1016. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  1017. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -5
  1018. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  1019. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -32
  1020. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  1021. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  1022. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +2 -4
  1023. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  1024. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +2 -1
  1025. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  1026. package/mobile/dist/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
  1027. package/mobile/dist/ui-kit/InnerTable/getHorizontalShift.js +7 -0
  1028. package/mobile/dist/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
  1029. package/mobile/dist/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
  1030. package/mobile/dist/ui-kit/InnerTable/linkButtonVersion.js +4 -0
  1031. package/mobile/dist/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
  1032. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
  1033. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +18 -0
  1034. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
  1035. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  1036. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  1037. package/mobile/dist/ui-kit/Logo/Logo.js +1 -1
  1038. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  1039. package/mobile/dist/ui-kit/PopupManager/PopupAction.d.ts +14 -0
  1040. package/mobile/dist/ui-kit/PopupManager/PopupAction.js +2 -0
  1041. package/mobile/dist/ui-kit/PopupManager/PopupAction.js.map +1 -0
  1042. package/mobile/dist/ui-kit/PopupManager/PopupManager.d.ts +2 -0
  1043. package/mobile/dist/ui-kit/PopupManager/PopupManager.js +39 -0
  1044. package/mobile/dist/ui-kit/PopupManager/PopupManager.js.map +1 -0
  1045. package/mobile/dist/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
  1046. package/mobile/dist/ui-kit/PopupManager/usePopupManager.js +10 -0
  1047. package/mobile/dist/ui-kit/PopupManager/usePopupManager.js.map +1 -0
  1048. package/mobile/dist/ui-kit/RichText/RichText.js +2 -1
  1049. package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
  1050. package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +1 -0
  1051. package/mobile/dist/ui-kit/RichText/getHtmlText.js +5 -0
  1052. package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +1 -0
  1053. package/mobile/dist/ui-kit/Select/Option.d.ts +4 -0
  1054. package/mobile/dist/ui-kit/Select/Option.js +2 -0
  1055. package/mobile/dist/ui-kit/Select/Option.js.map +1 -0
  1056. package/mobile/dist/ui-kit/Select/Select.d.ts +2 -5
  1057. package/mobile/dist/ui-kit/Select/Select.js +18 -25
  1058. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  1059. package/mobile/dist/ui-kit/Select/SelectPopup.d.ts +11 -0
  1060. package/mobile/dist/ui-kit/Select/SelectPopup.js +10 -0
  1061. package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -0
  1062. package/mobile/dist/ui-kit/Select/filterOptions.d.ts +2 -0
  1063. package/mobile/dist/ui-kit/Select/filterOptions.js +19 -0
  1064. package/mobile/dist/ui-kit/Select/filterOptions.js.map +1 -0
  1065. package/mobile/dist/ui-kit/Select/formatOption.d.ts +2 -0
  1066. package/mobile/dist/ui-kit/Select/formatOption.js +5 -0
  1067. package/mobile/dist/ui-kit/Select/formatOption.js.map +1 -0
  1068. package/mobile/dist/ui-kit/Select/useSelectPopup.d.ts +9 -0
  1069. package/mobile/dist/ui-kit/Select/useSelectPopup.js +35 -0
  1070. package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -0
  1071. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
  1072. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js +10 -0
  1073. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
  1074. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  1075. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +6 -7
  1076. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  1077. package/mobile/dist/utils/fetchMultitudeJSON.d.ts +1 -0
  1078. package/mobile/dist/utils/fetchMultitudeJSON.js +9 -0
  1079. package/mobile/dist/utils/fetchMultitudeJSON.js.map +1 -0
  1080. package/mobile/dist/utils/jaroWinklerDistance.js.map +1 -0
  1081. package/mobile/fonts/mohave/Mohave-Regular.ttf +0 -0
  1082. package/mobile/fonts/mohave/Mohave-Regular.woff2 +0 -0
  1083. package/mobile/fonts/mohave/mohave.css +2 -1
  1084. package/mobile/lib/EventBus/defaultEventBus.d.ts +3 -1
  1085. package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
  1086. package/mobile/lib/common.css +1 -1
  1087. package/mobile/lib/components/ApplicationForm/AcquiringFormState.d.ts +1 -1
  1088. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -6
  1089. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  1090. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
  1091. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  1092. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
  1093. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  1094. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  1095. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  1096. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
  1097. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -1
  1098. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +36 -17
  1099. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  1100. package/mobile/lib/components/ApplicationForm/BusinessCardFormState.d.ts +1 -1
  1101. package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +1 -1
  1102. package/mobile/lib/components/ApplicationForm/WedFormState.d.ts +5 -4
  1103. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  1104. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  1105. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
  1106. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  1107. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  1108. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  1109. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  1110. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  1111. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
  1112. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  1113. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +3 -3
  1114. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  1115. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  1116. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
  1117. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  1118. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
  1119. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  1120. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +2 -1
  1121. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +6 -2
  1122. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  1123. package/mobile/lib/components/ApplicationForm/renderWedTextarea.d.ts +4 -0
  1124. package/mobile/lib/components/ApplicationForm/renderWedTextarea.js +9 -0
  1125. package/mobile/lib/components/ApplicationForm/renderWedTextarea.js.map +1 -0
  1126. package/mobile/lib/components/Bonus/Bonus.js +4 -3
  1127. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  1128. package/mobile/lib/components/Bonus/BonusContent.d.ts +2 -0
  1129. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  1130. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  1131. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js +2 -2
  1132. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.js.map +1 -1
  1133. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
  1134. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  1135. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
  1136. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  1137. package/mobile/lib/components/Calculator/Calculator.js +1 -1
  1138. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  1139. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  1140. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  1141. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +1 -1
  1142. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  1143. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +1 -1
  1144. package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
  1145. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js +0 -3
  1146. package/mobile/lib/components/Calculator/useRefinancingCalculatorParams.js.map +1 -1
  1147. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  1148. package/mobile/lib/components/Carousel/Carousel.js +3 -1
  1149. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  1150. package/mobile/lib/components/Carousel/visibleItemCount.d.ts +1 -0
  1151. package/mobile/lib/components/Carousel/visibleItemCount.js +2 -0
  1152. package/mobile/lib/components/Carousel/visibleItemCount.js.map +1 -0
  1153. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  1154. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  1155. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
  1156. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  1157. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +5 -5
  1158. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -1
  1159. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +4 -4
  1160. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  1161. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
  1162. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  1163. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  1164. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  1165. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -3
  1166. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +2 -2
  1167. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  1168. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  1169. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  1170. package/mobile/lib/components/ComparisonTable/TableCell.js +5 -7
  1171. package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
  1172. package/mobile/lib/components/ComparisonTable/TableColumn.js +4 -3
  1173. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  1174. package/mobile/lib/components/ComparisonTable/TableRow.js +3 -2
  1175. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  1176. package/mobile/lib/components/ComparisonTable/constants.d.ts +4 -4
  1177. package/mobile/lib/components/ComparisonTable/constants.js +4 -4
  1178. package/mobile/lib/components/ComparisonTable/constants.js.map +1 -1
  1179. package/mobile/lib/components/ContentPage/ContentPage.js +2 -1
  1180. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  1181. package/mobile/lib/components/DepositFiltration/DepositFiltration.js +16 -13
  1182. package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
  1183. package/mobile/lib/components/DepositFiltration/getChildSourceBook.d.ts +2 -0
  1184. package/mobile/lib/components/DepositFiltration/getChildSourceBook.js +3 -0
  1185. package/mobile/lib/components/DepositFiltration/getChildSourceBook.js.map +1 -0
  1186. package/mobile/lib/components/DepositFiltration/getPeriod.d.ts +9 -0
  1187. package/mobile/lib/components/DepositFiltration/getPeriod.js +4 -0
  1188. package/mobile/lib/components/DepositFiltration/getPeriod.js.map +1 -0
  1189. package/mobile/lib/components/DepositFiltration/useDepositsPeriods.d.ts +8 -0
  1190. package/mobile/lib/components/DepositFiltration/useDepositsPeriods.js +21 -0
  1191. package/mobile/lib/components/DepositFiltration/useDepositsPeriods.js.map +1 -0
  1192. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -2
  1193. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  1194. package/mobile/lib/components/Footer/Footer.js +1 -1
  1195. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  1196. package/mobile/lib/components/Footer/FooterContent.d.ts +4 -1
  1197. package/mobile/lib/components/Footer/FooterDataProps.d.ts +4 -10
  1198. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  1199. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  1200. package/mobile/lib/components/Footer/MediaButton.d.ts +2 -3
  1201. package/mobile/lib/components/Footer/MediaButton.js +5 -4
  1202. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  1203. package/mobile/lib/components/Footer/SocialMedia.js +1 -1
  1204. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  1205. package/mobile/lib/components/Footer/buttonSizeStyle.d.ts +4 -0
  1206. package/mobile/lib/components/Footer/buttonSizeStyle.js +5 -0
  1207. package/mobile/lib/components/Footer/buttonSizeStyle.js.map +1 -0
  1208. package/mobile/lib/components/Header/DropdownMenu.js +1 -1
  1209. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  1210. package/mobile/lib/components/Header/HeaderChatBotButton.js +1 -1
  1211. package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  1212. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -3
  1213. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  1214. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +0 -5
  1215. package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
  1216. package/mobile/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  1217. package/mobile/lib/components/MobileAppTile/renderList.d.ts +2 -1
  1218. package/mobile/lib/components/MobileAppTile/renderList.js +2 -2
  1219. package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
  1220. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +3 -1
  1221. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  1222. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  1223. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  1224. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  1225. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  1226. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +12 -3
  1227. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  1228. package/mobile/lib/components/RollupItem/PrimaryFoldButton.d.ts +12 -0
  1229. package/mobile/lib/components/RollupItem/PrimaryFoldButton.js +10 -0
  1230. package/mobile/lib/components/RollupItem/PrimaryFoldButton.js.map +1 -0
  1231. package/mobile/lib/components/RollupItem/RollupItem.js +4 -15
  1232. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  1233. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  1234. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  1235. package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
  1236. package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  1237. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
  1238. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  1239. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  1240. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  1241. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
  1242. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  1243. package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  1244. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  1245. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  1246. package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js +1 -1
  1247. package/mobile/lib/components/StickyBottomMenu/RenderMenuItems.js.map +1 -1
  1248. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +9 -1
  1249. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +10 -5
  1250. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  1251. package/mobile/lib/components/TariffsTable/TariffsTable.js +24 -11
  1252. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  1253. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
  1254. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  1255. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +0 -3
  1256. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +11 -11
  1257. package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
  1258. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +3 -2
  1259. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  1260. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +3 -1
  1261. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  1262. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.d.ts +6 -0
  1263. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js +12 -0
  1264. package/mobile/lib/components/TariffsTable/TariffsTableWrapper.js.map +1 -0
  1265. package/mobile/lib/components/TariffsTable/constants.d.ts +2 -2
  1266. package/mobile/lib/components/TariffsTable/constants.js +2 -2
  1267. package/mobile/lib/components/TariffsTable/constants.js.map +1 -1
  1268. package/mobile/lib/components/TariffsTable/headlineAlign.d.ts +1 -0
  1269. package/mobile/lib/components/TariffsTable/headlineAlign.js +2 -0
  1270. package/mobile/lib/components/TariffsTable/headlineAlign.js.map +1 -0
  1271. package/mobile/lib/content-page-repository/transformContentPage.js +5 -6
  1272. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  1273. package/mobile/lib/icons/IconName.js +1 -1
  1274. package/mobile/lib/icons/IconName.js.map +1 -1
  1275. package/mobile/lib/model/AlignStyles.d.ts +1 -0
  1276. package/mobile/lib/model/AlignStyles.js +2 -0
  1277. package/mobile/lib/model/AlignStyles.js.map +1 -0
  1278. package/mobile/lib/services/search/search.js +1 -1
  1279. package/mobile/lib/services/search/search.js.map +1 -1
  1280. package/mobile/lib/services/search/textRank.js +1 -1
  1281. package/mobile/lib/services/search/textRank.js.map +1 -1
  1282. package/mobile/lib/services/search/useSearch.js +1 -1
  1283. package/mobile/lib/services/search/useSearch.js.map +1 -1
  1284. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +3 -2
  1285. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -3
  1286. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  1287. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js +2 -2
  1288. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -1
  1289. package/mobile/lib/ui-kit/BaseFiltration/getBlocksToRender.d.ts +2 -0
  1290. package/mobile/lib/ui-kit/BaseFiltration/getBlocksToRender.js +4 -0
  1291. package/mobile/lib/ui-kit/BaseFiltration/getBlocksToRender.js.map +1 -0
  1292. package/mobile/lib/ui-kit/BaseFiltration/shouldRenderBlock.d.ts +1 -0
  1293. package/{lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js → mobile/lib/ui-kit/BaseFiltration/shouldRenderBlock.js} +6 -3
  1294. package/mobile/lib/ui-kit/BaseFiltration/shouldRenderBlock.js.map +1 -0
  1295. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +2 -2
  1296. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  1297. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  1298. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -0
  1299. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +2 -2
  1300. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  1301. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +2 -2
  1302. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  1303. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +7 -3
  1304. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  1305. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  1306. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  1307. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +7 -11
  1308. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  1309. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js +1 -1
  1310. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  1311. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +8 -9
  1312. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
  1313. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +1 -1
  1314. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  1315. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -5
  1316. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  1317. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +4 -33
  1318. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  1319. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  1320. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +3 -5
  1321. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  1322. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +2 -1
  1323. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  1324. package/mobile/lib/ui-kit/InnerTable/getHorizontalShift.d.ts +2 -0
  1325. package/mobile/lib/ui-kit/InnerTable/getHorizontalShift.js +4 -0
  1326. package/mobile/lib/ui-kit/InnerTable/getHorizontalShift.js.map +1 -0
  1327. package/mobile/lib/ui-kit/InnerTable/linkButtonVersion.d.ts +1 -0
  1328. package/mobile/lib/ui-kit/InnerTable/linkButtonVersion.js +2 -0
  1329. package/mobile/lib/ui-kit/InnerTable/linkButtonVersion.js.map +1 -0
  1330. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.d.ts +3 -0
  1331. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +15 -0
  1332. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -0
  1333. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  1334. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  1335. package/mobile/lib/ui-kit/Logo/Logo.js +1 -1
  1336. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  1337. package/mobile/lib/ui-kit/PopupManager/PopupAction.d.ts +14 -0
  1338. package/mobile/lib/ui-kit/PopupManager/PopupAction.js +2 -0
  1339. package/mobile/lib/ui-kit/PopupManager/PopupAction.js.map +1 -0
  1340. package/mobile/lib/ui-kit/PopupManager/PopupManager.d.ts +2 -0
  1341. package/mobile/lib/ui-kit/PopupManager/PopupManager.js +37 -0
  1342. package/mobile/lib/ui-kit/PopupManager/PopupManager.js.map +1 -0
  1343. package/mobile/lib/ui-kit/PopupManager/usePopupManager.d.ts +7 -0
  1344. package/mobile/lib/ui-kit/PopupManager/usePopupManager.js +7 -0
  1345. package/mobile/lib/ui-kit/PopupManager/usePopupManager.js.map +1 -0
  1346. package/mobile/lib/ui-kit/RichText/RichText.js +2 -1
  1347. package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
  1348. package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +1 -0
  1349. package/mobile/lib/ui-kit/RichText/getHtmlText.js +2 -0
  1350. package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +1 -0
  1351. package/mobile/lib/ui-kit/Select/Option.d.ts +4 -0
  1352. package/mobile/lib/ui-kit/Select/Option.js +2 -0
  1353. package/mobile/lib/ui-kit/Select/Option.js.map +1 -0
  1354. package/mobile/lib/ui-kit/Select/Select.d.ts +2 -5
  1355. package/mobile/lib/ui-kit/Select/Select.js +18 -25
  1356. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  1357. package/mobile/lib/ui-kit/Select/SelectPopup.d.ts +11 -0
  1358. package/mobile/lib/ui-kit/Select/SelectPopup.js +8 -0
  1359. package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -0
  1360. package/mobile/lib/ui-kit/Select/filterOptions.d.ts +2 -0
  1361. package/mobile/lib/ui-kit/Select/filterOptions.js +16 -0
  1362. package/mobile/lib/ui-kit/Select/filterOptions.js.map +1 -0
  1363. package/mobile/lib/ui-kit/Select/formatOption.d.ts +2 -0
  1364. package/mobile/lib/ui-kit/Select/formatOption.js +2 -0
  1365. package/mobile/lib/ui-kit/Select/formatOption.js.map +1 -0
  1366. package/mobile/lib/ui-kit/Select/useSelectPopup.d.ts +9 -0
  1367. package/mobile/lib/ui-kit/Select/useSelectPopup.js +32 -0
  1368. package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -0
  1369. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +12 -0
  1370. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js +8 -0
  1371. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.js.map +1 -0
  1372. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  1373. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +6 -7
  1374. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  1375. package/mobile/lib/utils/fetchMultitudeJSON.d.ts +1 -0
  1376. package/mobile/lib/utils/fetchMultitudeJSON.js +6 -0
  1377. package/mobile/lib/utils/fetchMultitudeJSON.js.map +1 -0
  1378. package/mobile/lib/utils/jaroWinklerDistance.js.map +1 -0
  1379. package/mobile/src/EventBus/defaultEventBus.ts +3 -1
  1380. package/mobile/src/components/ApplicationForm/AcquiringFormState.ts +1 -1
  1381. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -10
  1382. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
  1383. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
  1384. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
  1385. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +2 -2
  1386. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +44 -27
  1387. package/mobile/src/components/ApplicationForm/BusinessCardFormState.ts +1 -1
  1388. package/mobile/src/components/ApplicationForm/CreditFormState.ts +1 -1
  1389. package/mobile/src/components/ApplicationForm/WedFormState.ts +6 -4
  1390. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +21 -25
  1391. package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
  1392. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
  1393. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +11 -13
  1394. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
  1395. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +35 -15
  1396. package/mobile/src/components/ApplicationForm/renderRegion.tsx +1 -1
  1397. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +4 -4
  1398. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
  1399. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +41 -23
  1400. package/mobile/src/components/ApplicationForm/renderWedTextarea.tsx +32 -0
  1401. package/mobile/src/components/Bonus/Bonus.tsx +7 -3
  1402. package/mobile/src/components/Bonus/BonusContent.ts +2 -0
  1403. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -6
  1404. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +3 -3
  1405. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
  1406. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +2 -2
  1407. package/mobile/src/components/Calculator/Calculator.tsx +1 -1
  1408. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
  1409. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
  1410. package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +2 -2
  1411. package/mobile/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
  1412. package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1413. package/mobile/src/components/Carousel/Carousel.example.json +1 -1
  1414. package/mobile/src/components/Carousel/Carousel.tsx +3 -1
  1415. package/mobile/src/components/Carousel/visibleItemCount.ts +1 -0
  1416. package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -1
  1417. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +49 -25
  1418. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +23 -21
  1419. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +24 -22
  1420. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
  1421. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  1422. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
  1423. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
  1424. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +2 -2
  1425. package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +1 -1
  1426. package/mobile/src/components/ComparisonTable/TableCell.tsx +14 -12
  1427. package/mobile/src/components/ComparisonTable/TableColumn.tsx +7 -3
  1428. package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -4
  1429. package/mobile/src/components/ComparisonTable/constants.ts +4 -4
  1430. package/mobile/src/components/ContentPage/ContentPage.tsx +2 -0
  1431. package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +6 -2
  1432. package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +22 -17
  1433. package/mobile/src/components/DepositFiltration/getChildSourceBook.ts +7 -0
  1434. package/mobile/src/components/DepositFiltration/getPeriod.ts +10 -0
  1435. package/mobile/src/components/DepositFiltration/useDepositsPeriods.ts +34 -0
  1436. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +13 -3
  1437. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -1
  1438. package/mobile/src/components/Footer/Footer.tsx +1 -1
  1439. package/mobile/src/components/Footer/FooterContent.ts +5 -1
  1440. package/mobile/src/components/Footer/FooterDataProps.ts +4 -10
  1441. package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
  1442. package/mobile/src/components/Footer/MediaButton.tsx +34 -39
  1443. package/mobile/src/components/Footer/SocialMedia.tsx +2 -2
  1444. package/mobile/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
  1445. package/mobile/src/components/Header/DropdownMenu.tsx +2 -2
  1446. package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -1
  1447. package/mobile/src/components/MobileAppTile/MobileAppTile.example.json +0 -1
  1448. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +4 -4
  1449. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +0 -5
  1450. package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
  1451. package/mobile/src/components/MobileAppTile/renderList.tsx +3 -2
  1452. package/mobile/src/components/MortgageFiltration/MortgageFiltration.example.json +9 -2
  1453. package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +5 -2
  1454. package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
  1455. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  1456. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  1457. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
  1458. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
  1459. package/mobile/src/components/RollupItem/PrimaryFoldButton.tsx +44 -0
  1460. package/mobile/src/components/RollupItem/RollupItem.tsx +10 -48
  1461. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
  1462. package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
  1463. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +2 -2
  1464. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
  1465. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +8 -8
  1466. package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +2 -1
  1467. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -1
  1468. package/mobile/src/components/StickyBottomMenu/RenderMenuItems.tsx +4 -1
  1469. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +43 -10
  1470. package/mobile/src/components/TariffsTable/TariffsTable.example.json +0 -1
  1471. package/mobile/src/components/TariffsTable/TariffsTable.tsx +50 -31
  1472. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -4
  1473. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +0 -3
  1474. package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -5
  1475. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +10 -4
  1476. package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +10 -1
  1477. package/mobile/src/components/TariffsTable/TariffsTableWrapper.tsx +27 -0
  1478. package/mobile/src/components/TariffsTable/constants.ts +2 -2
  1479. package/mobile/src/components/TariffsTable/headlineAlign.tsx +1 -0
  1480. package/mobile/src/content-page-repository/transformContentPage.ts +12 -10
  1481. package/mobile/src/icons/IconName.ts +1 -1
  1482. package/mobile/src/icons/MailIcon.svg +4 -1
  1483. package/mobile/src/icons/PhoneIcon.svg +3 -1
  1484. package/mobile/src/icons/RutubeIcon.svg +1 -1
  1485. package/mobile/src/model/AlignStyles.ts +1 -0
  1486. package/mobile/src/services/search/search.ts +1 -1
  1487. package/mobile/src/services/search/textRank.ts +1 -1
  1488. package/mobile/src/services/search/useSearch.ts +1 -1
  1489. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -8
  1490. package/mobile/src/ui-kit/BaseFiltration/getBadgeCount.ts +2 -2
  1491. package/mobile/src/ui-kit/BaseFiltration/getBlocksToRender.ts +8 -0
  1492. package/mobile/src/ui-kit/BaseFiltration/{checkShouldRenderBlock.ts → shouldRenderBlock.ts} +9 -2
  1493. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
  1494. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  1495. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
  1496. package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
  1497. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +9 -3
  1498. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +2 -2
  1499. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +8 -13
  1500. package/mobile/src/ui-kit/DialogManager/useDialogsList.ts +1 -1
  1501. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +23 -21
  1502. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +2 -2
  1503. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -25
  1504. package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +7 -82
  1505. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +15 -19
  1506. package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +5 -3
  1507. package/mobile/src/ui-kit/InnerTable/getHorizontalShift.tsx +7 -0
  1508. package/mobile/src/ui-kit/InnerTable/linkButtonVersion.tsx +1 -0
  1509. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +54 -0
  1510. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +2 -2
  1511. package/mobile/src/ui-kit/Logo/Logo.tsx +1 -1
  1512. package/mobile/src/ui-kit/PopupManager/PopupAction.ts +18 -0
  1513. package/mobile/src/ui-kit/PopupManager/PopupManager.tsx +57 -0
  1514. package/mobile/src/ui-kit/PopupManager/usePopupManager.tsx +11 -0
  1515. package/mobile/src/ui-kit/RichText/RichText.tsx +3 -2
  1516. package/mobile/src/ui-kit/RichText/getHtmlText.tsx +1 -0
  1517. package/mobile/src/ui-kit/Select/Option.ts +4 -0
  1518. package/mobile/src/ui-kit/Select/Select.tsx +36 -88
  1519. package/mobile/src/ui-kit/Select/SelectPopup.tsx +42 -0
  1520. package/mobile/src/ui-kit/Select/filterOptions.ts +19 -0
  1521. package/mobile/src/ui-kit/Select/formatOption.ts +3 -0
  1522. package/mobile/src/ui-kit/Select/useSelectPopup.tsx +63 -0
  1523. package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +35 -0
  1524. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +7 -8
  1525. package/mobile/src/utils/fetchMultitudeJSON.ts +9 -0
  1526. package/package.json +4 -3
  1527. package/src/EventBus/defaultEventBus.ts +3 -1
  1528. package/src/components/ApplicationForm/AcquiringFormState.ts +1 -1
  1529. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +7 -0
  1530. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +7 -0
  1531. package/src/components/ApplicationForm/ApplicationForm.tsx +2 -10
  1532. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +2 -2
  1533. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +3 -3
  1534. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
  1535. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +2 -2
  1536. package/src/components/ApplicationForm/ApplicationFormWed.tsx +44 -27
  1537. package/src/components/ApplicationForm/BusinessCardFormState.ts +1 -1
  1538. package/src/components/ApplicationForm/CreditFormState.ts +1 -1
  1539. package/src/components/ApplicationForm/WedFormState.ts +6 -4
  1540. package/src/components/ApplicationForm/renderAcquiringDataOrganization.mobile.tsx +31 -0
  1541. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +3 -3
  1542. package/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
  1543. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +3 -3
  1544. package/src/components/ApplicationForm/renderCreditDataOrganization.mobile.tsx +39 -0
  1545. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +3 -3
  1546. package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -3
  1547. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +35 -15
  1548. package/src/components/ApplicationForm/renderRegion.tsx +1 -1
  1549. package/src/components/ApplicationForm/renderRegionDepartment.tsx +4 -4
  1550. package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
  1551. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +41 -23
  1552. package/src/components/ApplicationForm/renderWedTextarea.tsx +32 -0
  1553. package/src/components/Bonus/Bonus.tsx +7 -3
  1554. package/src/components/Bonus/BonusContent.ts +2 -0
  1555. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -6
  1556. package/src/components/BonusBenefitsBlock/renderBonusBenefit.tsx +3 -3
  1557. package/src/components/Calculator/BonusCalculatorForm.tsx +2 -2
  1558. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +2 -2
  1559. package/src/components/Calculator/Calculator.mobile.tsx +1 -1
  1560. package/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
  1561. package/src/components/Calculator/DepositCalculatorForm.tsx +2 -2
  1562. package/src/components/Calculator/RefinancingCalculatorForm.tsx +2 -2
  1563. package/src/components/Calculator/useRefinancingCalculatorParams.ts +1 -8
  1564. package/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1565. package/src/components/Carousel/Carousel.example.json +1 -1
  1566. package/src/components/Carousel/Carousel.fixture.mobile.tsx +16 -6
  1567. package/src/components/Carousel/Carousel.fixture.tsx +18 -5
  1568. package/src/components/Carousel/Carousel.tsx +3 -1
  1569. package/src/components/Carousel/visibleItemCount.mobile.ts +1 -0
  1570. package/src/components/Carousel/visibleItemCount.ts +1 -0
  1571. package/src/components/CarouselCard/CarouselCard.tsx +4 -1
  1572. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.tsx +30 -1
  1573. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +30 -1
  1574. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +49 -25
  1575. package/src/components/CarouselLinks/CarouselLinkButton.tsx +23 -21
  1576. package/src/components/CarouselLinks/CarouselLinks.tsx +24 -22
  1577. package/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
  1578. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +1 -1
  1579. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +2 -1
  1580. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +4 -18
  1581. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +4 -18
  1582. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -2
  1583. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +3 -1
  1584. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -4
  1585. package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  1586. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +2 -2
  1587. package/src/components/ComparisonTable/HeaderCell.tsx +7 -2
  1588. package/src/components/ComparisonTable/TableCarouselContainer.tsx +1 -1
  1589. package/src/components/ComparisonTable/TableCell.mobile.tsx +14 -12
  1590. package/src/components/ComparisonTable/TableCell.tsx +16 -9
  1591. package/src/components/ComparisonTable/TableColumn.tsx +7 -3
  1592. package/src/components/ComparisonTable/TableRow.tsx +3 -4
  1593. package/src/components/ComparisonTable/constants.ts +4 -4
  1594. package/src/components/ContentPage/ContentPage.tsx +2 -0
  1595. package/src/components/DepositFiltration/DepositFiltration.example.json +6 -2
  1596. package/src/components/DepositFiltration/DepositFiltration.fixture.mobile.tsx +13 -40
  1597. package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +14 -41
  1598. package/src/components/DepositFiltration/DepositFiltration.tsx +22 -17
  1599. package/src/components/DepositFiltration/getChildSourceBook.ts +7 -0
  1600. package/src/components/DepositFiltration/getPeriod.ts +10 -0
  1601. package/src/components/DepositFiltration/useDepositsPeriods.ts +34 -0
  1602. package/src/components/ErrorBlock/ErrorBlock.tsx +13 -3
  1603. package/src/components/ExchangeRateTile/renderInput.tsx +1 -1
  1604. package/src/components/Footer/Footer.mobile.tsx +1 -1
  1605. package/src/components/Footer/Footer.tsx +4 -3
  1606. package/src/components/Footer/FooterContent.ts +5 -1
  1607. package/src/components/Footer/FooterDataProps.ts +4 -10
  1608. package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
  1609. package/src/components/Footer/MediaButton.tsx +34 -39
  1610. package/src/components/Footer/SocialMedia.tsx +2 -2
  1611. package/src/components/Footer/{buttonSizeStyles.ts → buttonSizeStyle.ts} +1 -1
  1612. package/src/components/Header/DropdownMenu.tsx +2 -2
  1613. package/src/components/Header/HeaderChatBotButton.tsx +1 -1
  1614. package/src/components/MobileAppTile/MobileAppTile.example.json +0 -1
  1615. package/src/components/MobileAppTile/MobileAppTile.tsx +4 -4
  1616. package/src/components/MobileAppTile/MobileAppTileContent.ts +0 -5
  1617. package/src/components/MobileAppTile/renderDescription.tsx +1 -1
  1618. package/src/components/MobileAppTile/renderList.tsx +3 -2
  1619. package/src/components/MortgageFiltration/MortgageFiltration.example.json +9 -2
  1620. package/src/components/MortgageFiltration/MortgageFiltration.tsx +5 -2
  1621. package/src/components/ProductBlock/ProductBlock.tsx +0 -1
  1622. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  1623. package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
  1624. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +2 -0
  1625. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +3 -3
  1626. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +33 -17
  1627. package/src/components/RollupItem/PrimaryFoldButton.tsx +44 -0
  1628. package/src/components/RollupItem/RollupItem.tsx +10 -48
  1629. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
  1630. package/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
  1631. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +2 -2
  1632. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
  1633. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +8 -8
  1634. package/src/components/SafeDepositRental/WrapperSelect.tsx +2 -1
  1635. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -1
  1636. package/src/components/StickyBottomMenu/RenderMenuItems.tsx +4 -1
  1637. package/src/components/TariffsTable/EmbeddableCellData.tsx +30 -19
  1638. package/src/components/TariffsTable/TariffsTable.example.json +0 -1
  1639. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +8 -4
  1640. package/src/components/TariffsTable/TariffsTable.fixture.tsx +8 -18
  1641. package/src/components/TariffsTable/TariffsTable.tsx +25 -41
  1642. package/src/components/TariffsTable/TariffsTableCell.tsx +1 -4
  1643. package/src/components/TariffsTable/TariffsTableContent.ts +0 -3
  1644. package/src/components/TariffsTable/TariffsTableRenderCell.tsx +1 -5
  1645. package/src/components/TariffsTable/TariffsTableRow.tsx +10 -4
  1646. package/src/components/TariffsTable/TariffsTableRowContainer.tsx +10 -1
  1647. package/src/components/TariffsTable/TariffsTableWrapper.tsx +27 -0
  1648. package/src/components/TariffsTable/constants.ts +2 -2
  1649. package/src/components/TariffsTable/headlineAlign.mobile.tsx +1 -0
  1650. package/src/components/TariffsTable/headlineAlign.tsx +1 -0
  1651. package/src/components/Tile/Tile.fixture.mobile.tsx +48 -0
  1652. package/src/content-page-repository/transformContentPage.ts +12 -10
  1653. package/src/icons/IconName.ts +5 -424
  1654. package/src/icons/MailIcon.svg +4 -1
  1655. package/src/icons/PhoneIcon.svg +3 -1
  1656. package/src/icons/RutubeIcon.svg +1 -1
  1657. package/src/model/AlignStyles.mobile.ts +1 -0
  1658. package/src/model/AlignStyles.ts +1 -0
  1659. package/src/services/search/search.ts +1 -1
  1660. package/src/services/search/textRank.ts +1 -1
  1661. package/src/services/search/useSearch.ts +1 -1
  1662. package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -8
  1663. package/src/ui-kit/BaseFiltration/getBadgeCount.ts +2 -2
  1664. package/src/ui-kit/BaseFiltration/getBlocksToRender.ts +8 -0
  1665. package/src/ui-kit/BaseFiltration/{checkShouldRenderBlock.ts → shouldRenderBlock.ts} +9 -2
  1666. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +7 -1
  1667. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  1668. package/src/ui-kit/BaseTile/BaseTile.tsx +9 -2
  1669. package/src/ui-kit/Button/buttonClassNameConstants.ts +2 -2
  1670. package/src/ui-kit/Button/renderButtonsSection.tsx +9 -3
  1671. package/src/ui-kit/CookiePopup/CookiePopup.tsx +2 -2
  1672. package/src/ui-kit/DialogManager/DialogManager.tsx +8 -13
  1673. package/src/ui-kit/DialogManager/useDialogsList.ts +1 -1
  1674. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +23 -21
  1675. package/src/ui-kit/InnerTable/InnerTable.fixture.mobile.tsx +11 -0
  1676. package/src/ui-kit/InnerTable/InnerTable.fixture.tsx +11 -0
  1677. package/src/ui-kit/InnerTable/InnerTable.tsx +2 -2
  1678. package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -25
  1679. package/src/ui-kit/InnerTable/InnerTableBodyItem.mobile.tsx +14 -0
  1680. package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +2 -62
  1681. package/src/ui-kit/InnerTable/InnerTableButton.fixture.mobile.tsx +11 -0
  1682. package/src/ui-kit/InnerTable/InnerTableButton.tsx +15 -19
  1683. package/src/ui-kit/InnerTable/InnerTableHeader.tsx +5 -3
  1684. package/src/ui-kit/InnerTable/getHorizontalShift.tsx +7 -0
  1685. package/src/ui-kit/InnerTable/linkButtonVersion.mobile.tsx +1 -0
  1686. package/src/ui-kit/InnerTable/linkButtonVersion.tsx +1 -0
  1687. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +54 -0
  1688. package/src/ui-kit/LocationDialog/LocationDialog.tsx +2 -2
  1689. package/src/ui-kit/Logo/Logo.tsx +1 -1
  1690. package/src/ui-kit/PopupManager/PopupAction.ts +18 -0
  1691. package/src/ui-kit/PopupManager/PopupManager.tsx +57 -0
  1692. package/src/ui-kit/PopupManager/usePopupManager.tsx +11 -0
  1693. package/src/ui-kit/RichText/RichText.tsx +3 -2
  1694. package/src/ui-kit/RichText/getHtmlText.tsx +1 -0
  1695. package/src/ui-kit/Select/Option.ts +4 -0
  1696. package/src/ui-kit/Select/Select.fixture.tsx +22 -4
  1697. package/src/ui-kit/Select/Select.tsx +36 -88
  1698. package/src/ui-kit/Select/SelectPopup.tsx +42 -0
  1699. package/src/ui-kit/Select/filterOptions.ts +19 -0
  1700. package/src/ui-kit/Select/formatOption.ts +3 -0
  1701. package/src/ui-kit/Select/useSelectPopup.tsx +63 -0
  1702. package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +35 -0
  1703. package/src/ui-kit/YandexMap/YandexMap.tsx +7 -8
  1704. package/src/utils/fetchMultitudeJSON.ts +9 -0
  1705. package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
  1706. package/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +0 -1
  1707. package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
  1708. package/bundle/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
  1709. package/bundle/components/CarouselProductCard/alignTextStyle.mobile.d.ts +0 -1
  1710. package/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
  1711. package/bundle/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -13
  1712. package/bundle/components/TariffsTable/TariffsTable.mobile.d.ts +0 -5
  1713. package/bundle/hooks/useBool.d.ts +0 -9
  1714. package/bundle/hooks/useList.d.ts +0 -10
  1715. package/bundle/hooks/useOutsideClick.d.ts +0 -3
  1716. package/bundle/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
  1717. package/bundle/utils/useDebouncedEffect.d.ts +0 -1
  1718. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
  1719. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -4
  1720. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
  1721. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +0 -1
  1722. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +0 -4
  1723. package/dist/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +0 -1
  1724. package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
  1725. package/dist/components/CarouselCatalogCard/CatalogCard.js +0 -20
  1726. package/dist/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
  1727. package/dist/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
  1728. package/dist/components/CarouselProductCard/alignTextStyle.js +0 -4
  1729. package/dist/components/CarouselProductCard/alignTextStyle.js.map +0 -1
  1730. package/dist/components/CarouselProductCard/alignTextStyle.mobile.d.ts +0 -1
  1731. package/dist/components/CarouselProductCard/alignTextStyle.mobile.js +0 -4
  1732. package/dist/components/CarouselProductCard/alignTextStyle.mobile.js.map +0 -1
  1733. package/dist/components/Footer/buttonSizeStyles.js.map +0 -1
  1734. package/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
  1735. package/dist/components/Footer/buttonStylesWithText.js +0 -9
  1736. package/dist/components/Footer/buttonStylesWithText.js.map +0 -1
  1737. package/dist/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -13
  1738. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +0 -20
  1739. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +0 -1
  1740. package/dist/components/TariffsTable/TariffsTable.mobile.d.ts +0 -5
  1741. package/dist/components/TariffsTable/TariffsTable.mobile.js +0 -18
  1742. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +0 -1
  1743. package/dist/hooks/useBool.d.ts +0 -9
  1744. package/dist/hooks/useBool.js +0 -12
  1745. package/dist/hooks/useBool.js.map +0 -1
  1746. package/dist/hooks/useList.d.ts +0 -10
  1747. package/dist/hooks/useList.js +0 -13
  1748. package/dist/hooks/useList.js.map +0 -1
  1749. package/dist/hooks/useOutsideClick.d.ts +0 -3
  1750. package/dist/hooks/useOutsideClick.js +0 -23
  1751. package/dist/hooks/useOutsideClick.js.map +0 -1
  1752. package/dist/services/search/jaroWinklerDistance.js.map +0 -1
  1753. package/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
  1754. package/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
  1755. package/dist/utils/useDebouncedEffect.d.ts +0 -1
  1756. package/dist/utils/useDebouncedEffect.js +0 -11
  1757. package/dist/utils/useDebouncedEffect.js.map +0 -1
  1758. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
  1759. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -2
  1760. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
  1761. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.d.ts +0 -1
  1762. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js +0 -2
  1763. package/lib/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.js.map +0 -1
  1764. package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
  1765. package/lib/components/CarouselCatalogCard/CatalogCard.js +0 -18
  1766. package/lib/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
  1767. package/lib/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
  1768. package/lib/components/CarouselProductCard/alignTextStyle.js +0 -2
  1769. package/lib/components/CarouselProductCard/alignTextStyle.js.map +0 -1
  1770. package/lib/components/CarouselProductCard/alignTextStyle.mobile.d.ts +0 -1
  1771. package/lib/components/CarouselProductCard/alignTextStyle.mobile.js +0 -2
  1772. package/lib/components/CarouselProductCard/alignTextStyle.mobile.js.map +0 -1
  1773. package/lib/components/Footer/buttonSizeStyles.js +0 -5
  1774. package/lib/components/Footer/buttonSizeStyles.js.map +0 -1
  1775. package/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
  1776. package/lib/components/Footer/buttonStylesWithText.js +0 -6
  1777. package/lib/components/Footer/buttonStylesWithText.js.map +0 -1
  1778. package/lib/components/TariffsTable/EmbeddableCellData.mobile.d.ts +0 -12
  1779. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +0 -18
  1780. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +0 -1
  1781. package/lib/components/TariffsTable/TariffsTable.mobile.d.ts +0 -5
  1782. package/lib/components/TariffsTable/TariffsTable.mobile.js +0 -16
  1783. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +0 -1
  1784. package/lib/hooks/useBool.d.ts +0 -9
  1785. package/lib/hooks/useBool.js +0 -9
  1786. package/lib/hooks/useBool.js.map +0 -1
  1787. package/lib/hooks/useList.d.ts +0 -10
  1788. package/lib/hooks/useList.js +0 -10
  1789. package/lib/hooks/useList.js.map +0 -1
  1790. package/lib/hooks/useOutsideClick.d.ts +0 -3
  1791. package/lib/hooks/useOutsideClick.js +0 -20
  1792. package/lib/hooks/useOutsideClick.js.map +0 -1
  1793. package/lib/services/search/jaroWinklerDistance.js.map +0 -1
  1794. package/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
  1795. package/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
  1796. package/lib/utils/useDebouncedEffect.d.ts +0 -1
  1797. package/lib/utils/useDebouncedEffect.js +0 -8
  1798. package/lib/utils/useDebouncedEffect.js.map +0 -1
  1799. package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
  1800. package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
  1801. package/mobile/bundle/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
  1802. package/mobile/bundle/components/Footer/buttonStylesWithText.d.ts +0 -2
  1803. package/mobile/bundle/hooks/useBool.d.ts +0 -9
  1804. package/mobile/bundle/hooks/useList.d.ts +0 -10
  1805. package/mobile/bundle/hooks/useOutsideClick.d.ts +0 -3
  1806. package/mobile/bundle/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
  1807. package/mobile/bundle/utils/useDebouncedEffect.d.ts +0 -1
  1808. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
  1809. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -4
  1810. package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
  1811. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
  1812. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js +0 -20
  1813. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
  1814. package/mobile/dist/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
  1815. package/mobile/dist/components/CarouselProductCard/alignTextStyle.js +0 -4
  1816. package/mobile/dist/components/CarouselProductCard/alignTextStyle.js.map +0 -1
  1817. package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +0 -4
  1818. package/mobile/dist/components/Footer/buttonSizeStyles.js.map +0 -1
  1819. package/mobile/dist/components/Footer/buttonStylesWithText.d.ts +0 -2
  1820. package/mobile/dist/components/Footer/buttonStylesWithText.js +0 -9
  1821. package/mobile/dist/components/Footer/buttonStylesWithText.js.map +0 -1
  1822. package/mobile/dist/hooks/useBool.d.ts +0 -9
  1823. package/mobile/dist/hooks/useBool.js +0 -12
  1824. package/mobile/dist/hooks/useBool.js.map +0 -1
  1825. package/mobile/dist/hooks/useList.d.ts +0 -10
  1826. package/mobile/dist/hooks/useList.js +0 -13
  1827. package/mobile/dist/hooks/useList.js.map +0 -1
  1828. package/mobile/dist/hooks/useOutsideClick.d.ts +0 -3
  1829. package/mobile/dist/hooks/useOutsideClick.js +0 -23
  1830. package/mobile/dist/hooks/useOutsideClick.js.map +0 -1
  1831. package/mobile/dist/services/search/jaroWinklerDistance.js.map +0 -1
  1832. package/mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
  1833. package/mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
  1834. package/mobile/dist/utils/useDebouncedEffect.d.ts +0 -1
  1835. package/mobile/dist/utils/useDebouncedEffect.js +0 -11
  1836. package/mobile/dist/utils/useDebouncedEffect.js.map +0 -1
  1837. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.d.ts +0 -1
  1838. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js +0 -2
  1839. package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitAlign.js.map +0 -1
  1840. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +0 -9
  1841. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js +0 -18
  1842. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +0 -1
  1843. package/mobile/lib/components/CarouselProductCard/alignTextStyle.d.ts +0 -1
  1844. package/mobile/lib/components/CarouselProductCard/alignTextStyle.js +0 -2
  1845. package/mobile/lib/components/CarouselProductCard/alignTextStyle.js.map +0 -1
  1846. package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +0 -4
  1847. package/mobile/lib/components/Footer/buttonSizeStyles.js +0 -5
  1848. package/mobile/lib/components/Footer/buttonSizeStyles.js.map +0 -1
  1849. package/mobile/lib/components/Footer/buttonStylesWithText.d.ts +0 -2
  1850. package/mobile/lib/components/Footer/buttonStylesWithText.js +0 -6
  1851. package/mobile/lib/components/Footer/buttonStylesWithText.js.map +0 -1
  1852. package/mobile/lib/hooks/useBool.d.ts +0 -9
  1853. package/mobile/lib/hooks/useBool.js +0 -9
  1854. package/mobile/lib/hooks/useBool.js.map +0 -1
  1855. package/mobile/lib/hooks/useList.d.ts +0 -10
  1856. package/mobile/lib/hooks/useList.js +0 -10
  1857. package/mobile/lib/hooks/useList.js.map +0 -1
  1858. package/mobile/lib/hooks/useOutsideClick.d.ts +0 -3
  1859. package/mobile/lib/hooks/useOutsideClick.js +0 -20
  1860. package/mobile/lib/hooks/useOutsideClick.js.map +0 -1
  1861. package/mobile/lib/services/search/jaroWinklerDistance.js.map +0 -1
  1862. package/mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.d.ts +0 -1
  1863. package/mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +0 -1
  1864. package/mobile/lib/utils/useDebouncedEffect.d.ts +0 -1
  1865. package/mobile/lib/utils/useDebouncedEffect.js +0 -8
  1866. package/mobile/lib/utils/useDebouncedEffect.js.map +0 -1
  1867. package/mobile/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +0 -1
  1868. package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +0 -22
  1869. package/mobile/src/components/CarouselProductCard/alignTextStyle.tsx +0 -1
  1870. package/mobile/src/components/Footer/buttonStylesWithText.ts +0 -11
  1871. package/mobile/src/hooks/useBool.ts +0 -19
  1872. package/mobile/src/hooks/useList.ts +0 -24
  1873. package/mobile/src/hooks/useOutsideClick.ts +0 -25
  1874. package/mobile/src/utils/useDebouncedEffect.ts +0 -14
  1875. package/src/components/BonusBenefitsBlock/bonusBenefitAlign.mobile.ts +0 -1
  1876. package/src/components/BonusBenefitsBlock/bonusBenefitAlign.ts +0 -1
  1877. package/src/components/CarouselCatalogCard/CatalogCard.ts +0 -22
  1878. package/src/components/CarouselProductCard/alignTextStyle.mobile.tsx +0 -1
  1879. package/src/components/CarouselProductCard/alignTextStyle.tsx +0 -1
  1880. package/src/components/Footer/buttonStylesWithText.ts +0 -11
  1881. package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +0 -45
  1882. package/src/components/TariffsTable/TariffsTable.mobile.tsx +0 -56
  1883. package/src/hooks/useBool.ts +0 -19
  1884. package/src/hooks/useList.ts +0 -24
  1885. package/src/hooks/useOutsideClick.ts +0 -25
  1886. package/src/utils/useDebouncedEffect.ts +0 -14
  1887. /package/bundle/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
  1888. /package/dist/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
  1889. /package/dist/{services/search → utils}/jaroWinklerDistance.js +0 -0
  1890. /package/lib/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
  1891. /package/lib/{services/search → utils}/jaroWinklerDistance.js +0 -0
  1892. /package/mobile/bundle/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
  1893. /package/mobile/dist/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
  1894. /package/mobile/dist/{services/search → utils}/jaroWinklerDistance.js +0 -0
  1895. /package/mobile/lib/{services/search → utils}/jaroWinklerDistance.d.ts +0 -0
  1896. /package/mobile/lib/{services/search → utils}/jaroWinklerDistance.js +0 -0
  1897. /package/mobile/src/{services/search → utils}/jaroWinklerDistance.ts +0 -0
  1898. /package/src/{services/search → utils}/jaroWinklerDistance.ts +0 -0
@@ -4,22 +4,22 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniBlocks = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
7
- let _hooks;
8
- const setupHooks = (_) => {
9
- _hooks = _;
10
- };
11
- const lazyHook = (name) => (...args) => _hooks[name](...args);
12
- const useState = lazyHook('useState');
13
- const useEffect = lazyHook('useEffect');
14
- const useCallback = lazyHook('useCallback');
15
- const useMemo = lazyHook('useMemo');
7
+ let _hooks;
8
+ const setupHooks = (_) => {
9
+ _hooks = _;
10
+ };
11
+ const lazyHook = (name) => (...args) => _hooks[name](...args);
12
+ const useState = lazyHook('useState');
13
+ const useEffect = lazyHook('useEffect');
14
+ const useCallback = lazyHook('useCallback');
15
+ const useMemo = lazyHook('useMemo');
16
16
  const useRef = lazyHook('useRef');
17
17
 
18
- const setup = (_jsx, _jsxs) => {
19
- globalThis._uni = {
20
- _jsx,
21
- _jsxs: _jsxs || _jsx
22
- };
18
+ const setup = (_jsx, _jsxs) => {
19
+ globalThis._uni = {
20
+ _jsx,
21
+ _jsxs: _jsxs || _jsx
22
+ };
23
23
  };
24
24
 
25
25
  const getGeolocation = async () => new Promise((resolve) => navigator.geolocation.getCurrentPosition(({ coords }) => resolve(coords)));
@@ -225,22 +225,22 @@
225
225
  const jsx = (...args) => globalThis._uni._jsx(...args);
226
226
  const jsxs = (...args) => globalThis._uni._jsxs(...args);
227
227
 
228
- const JSX = (Component) => {
229
- const Internal = Component;
230
- if (!Internal._tmpl) {
231
- Internal._tmpl = globalThis.__UNI_REACT__ ? Component : VueTmpl(Component);
232
- }
233
- return Internal._tmpl;
234
- };
235
- const VueTmpl = (Component) => {
236
- function JSXTmpl(rawProps, context) {
237
- const { children: rawChildren, ...props } = rawProps || {};
238
- const defaultSlot = context?.slots?.default; // Vue
239
- const children = rawChildren || (defaultSlot && defaultSlot());
240
- return Component(Object.assign(props, children && { children }), context);
241
- }
242
- JSXTmpl.inheritAttrs = false;
243
- return JSXTmpl;
228
+ const JSX = (Component) => {
229
+ const Internal = Component;
230
+ if (!Internal._tmpl) {
231
+ Internal._tmpl = globalThis.__UNI_REACT__ ? Component : VueTmpl(Component);
232
+ }
233
+ return Internal._tmpl;
234
+ };
235
+ const VueTmpl = (Component) => {
236
+ function JSXTmpl(rawProps, context) {
237
+ const { children: rawChildren, ...props } = rawProps || {};
238
+ const defaultSlot = context?.slots?.default; // Vue
239
+ const children = rawChildren || (defaultSlot && defaultSlot());
240
+ return Component(Object.assign(props, children && { children }), context);
241
+ }
242
+ JSXTmpl.inheritAttrs = false;
243
+ return JSXTmpl;
244
244
  };
245
245
 
246
246
  function CorporateLeadAPI() {
@@ -427,65 +427,69 @@
427
427
 
428
428
  const isFilled = (_) => _ !== null && _ !== undefined;
429
429
 
430
- const defaultCache = new Map();
431
- const applyCache = (fetcher, cache = defaultCache) => (key) => {
432
- const cachedData = cache.get(key);
433
- if (isFilled(cachedData)) {
434
- return cachedData;
435
- }
436
- const data = fetcher(key);
437
- if (isFilled(data)) {
438
- cache.set(key, Promise.resolve(data));
439
- }
440
- else {
441
- cache.delete(key);
442
- }
443
- return data;
444
- };
445
-
446
- const isSimpleKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
447
- function useAsyncData(key, fetcher, { fallback, cache } = {}) {
448
- const args = useMemo(() => keyToArgs(key), [key]);
449
- const [simpleKey] = isSimpleKey(args) ? args : [];
450
- const [data, setData] = useState(undefined);
451
- const [error, setError] = useState(undefined);
452
- useEffect(() => {
453
- const isEmptyKey = !args.some(isFilled);
454
- if (isEmptyKey) {
455
- return;
456
- }
457
- (async () => {
458
- try {
459
- const newData = await (simpleKey
460
- ? applyCache(fetcher, cache)(simpleKey)
461
- : fetcher(...args));
462
- setData(newData);
463
- setError(undefined);
464
- }
465
- catch (err) {
466
- setData(undefined);
467
- setError(err);
468
- }
469
- })();
470
- }, [fetcher, cache, args]);
471
- const fallbackData = fallback && simpleKey && fallback[simpleKey];
472
- return {
473
- data: !data && fallbackData ? fallbackData : data,
474
- error,
475
- mutate: () => Promise.resolve(undefined),
476
- isValidating: false
477
- };
478
- }
479
- function keyToArgs(key) {
480
- if (Array.isArray(key)) {
481
- return key;
482
- }
483
- else if (key instanceof Function) {
484
- return keyToArgs(key());
485
- }
486
- else {
487
- return [key];
488
- }
430
+ const defaultCache = new Map();
431
+ const applyCache = (fetcher, cache = defaultCache) => (key) => {
432
+ const cachedData = cache.get(key);
433
+ if (isFilled(cachedData)) {
434
+ return cachedData;
435
+ }
436
+ const data = fetcher(key);
437
+ if (isFilled(data)) {
438
+ cache.set(key, Promise.resolve(data));
439
+ }
440
+ else {
441
+ cache.delete(key);
442
+ }
443
+ return data;
444
+ };
445
+
446
+ const isSimpleKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
447
+ function useAsyncData(key, fetcher, { fallback, cache } = {}) {
448
+ const args = useMemo(() => keyToArgs(key), [key]);
449
+ const [simpleKey] = isSimpleKey(args) ? args : [];
450
+ const [data, setData] = useState(undefined);
451
+ const [error, setError] = useState(undefined);
452
+ useEffect(() => {
453
+ const isEmptyKey = !args.some(isFilled);
454
+ if (isEmptyKey) {
455
+ return;
456
+ }
457
+ let canceled = false;
458
+ const setResult = (newData, err) => {
459
+ if (!canceled) {
460
+ setData(newData);
461
+ setError(err);
462
+ }
463
+ };
464
+ (async () => {
465
+ try {
466
+ setResult(await (simpleKey ? applyCache(fetcher, cache)(simpleKey) : fetcher(...args)));
467
+ }
468
+ catch (err) {
469
+ setResult(undefined, err);
470
+ }
471
+ })();
472
+ return () => {
473
+ canceled = true;
474
+ };
475
+ }, [fetcher, cache, args]);
476
+ const fallbackData = fallback && simpleKey && fallback[simpleKey];
477
+ return {
478
+ data: !data && fallbackData ? fallbackData : data,
479
+ error,
480
+ mutate: () => Promise.resolve(undefined) // TODO Clean up cache
481
+ };
482
+ }
483
+ function keyToArgs(key) {
484
+ if (Array.isArray(key)) {
485
+ return key;
486
+ }
487
+ else if (key instanceof Function) {
488
+ return keyToArgs(key());
489
+ }
490
+ else {
491
+ return [key];
492
+ }
489
493
  }
490
494
 
491
495
  async function fetchJSON(url, options) {
@@ -606,7 +610,7 @@
606
610
  primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
607
611
  secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
608
612
  white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
609
- link: '',
613
+ link: 'text-primary-main',
610
614
  transparent: '',
611
615
  gray: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
612
616
  '': '',
@@ -626,7 +630,7 @@
626
630
  primary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
627
631
  secondary: 'group-hover/btn:brightness-0 group-hover/btn:invert',
628
632
  white: 'group-hover/btn:brightness-0 group-hover/btn:invert',
629
- link: '',
633
+ link: 'text-primary-main',
630
634
  transparent: '',
631
635
  gray: 'group-hover/btn:brightness-0 group-hover/btn:invert',
632
636
  '': '',
@@ -731,7 +735,7 @@
731
735
  const innValidator = validator((_) => typeof _ === 'string' && (_.length === 10 || _.length === 12))(ERROR_MESSAGE);
732
736
  const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
733
737
 
734
- const renderAcquiringDataOrganization = (field) => (jsxs("div", { className: "sm:flex sm:justify-between sm:gap-lg", children: [jsxs("div", { className: "sm:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", 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: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) })] }), jsxs("div", { className: "sm:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] })] }));
738
+ const renderAcquiringDataOrganization = (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: "\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: "shrink-0 w-full", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] })] }));
735
739
 
736
740
  const ACQUIRING_TYPES = [
737
741
  {
@@ -751,33 +755,73 @@
751
755
  },
752
756
  ];
753
757
 
754
- function useBool(defaultValue = false) {
755
- const [value, setValue] = useState(defaultValue);
756
- const setTrue = useCallback(() => setValue(true), []);
757
- const setFalse = useCallback(() => setValue(false), []);
758
- const toggle = useCallback(() => setValue((_) => !_), []);
759
- return [value, { setValue, setTrue, setFalse, toggle }];
758
+ function useBool(defaultValue = false) {
759
+ const [value, setValue] = useState(defaultValue);
760
+ const setTrue = useCallback(() => setValue(true), []);
761
+ const setFalse = useCallback(() => setValue(false), []);
762
+ const toggle = useCallback(() => setValue(_ => !_), []);
763
+ return [value, { setValue, setTrue, setFalse, toggle }];
760
764
  }
761
765
 
762
- function useOutsideClick(onClick) {
763
- const targetRef = useRef(null);
764
- useEffect(() => {
765
- const handleClickOutside = (event) => {
766
- if (targetRef &&
767
- targetRef.current &&
768
- event.target instanceof Node &&
769
- !targetRef.current.contains(event.target)) {
770
- onClick();
771
- }
772
- };
773
- document.addEventListener('click', handleClickOutside);
774
- return () => {
775
- document.removeEventListener('click', handleClickOutside);
776
- };
777
- }, [onClick]);
778
- return targetRef;
766
+ const isOnlyDigits = (str) => str && !/\D/.test(str);
767
+
768
+ const svgUseStyleMap = {
769
+ normal: '',
770
+ color: 'text-primary-main',
771
+ black: 'text-black',
772
+ white: 'text-black',
773
+ };
774
+ const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', width, height, }) => {
775
+ const router = useRouter();
776
+ const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
777
+ if (iconVersion !== 'normal') {
778
+ return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), width: width, height: height, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
779
+ }
780
+ return (jsx("img", { className: className, src: href, alt: alt, title: title, "aria-hidden": "true", width: width, height: height, style: getInlineStyle(className, height) }));
781
+ });
782
+ const getInlineStyle = (className, height) => {
783
+ if (className?.includes('h-')) {
784
+ return {};
785
+ }
786
+ return { height: isOnlyDigits(height) ? `${height}px` : height };
787
+ };
788
+ const getSvgSize = (width) => (width ? '' : 'w-full h-full');
789
+ const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
790
+
791
+ const formatOption = (_) => _?.text || _?.key || '';
792
+
793
+ function useEventListener(target, type, listener, options) {
794
+ useEffect(() => {
795
+ if (!target || !listener) {
796
+ return;
797
+ }
798
+ target.addEventListener(type, listener, options);
799
+ return () => {
800
+ target.removeEventListener(type, listener, options);
801
+ };
802
+ }, [target, type, listener]);
779
803
  }
780
804
 
805
+ function useOutsideClick(onClick) {
806
+ const targetRef = useRef(null);
807
+ const handleClickOutside = useCallback((event) => {
808
+ if (targetRef && targetRef.current && event.target instanceof Node && !targetRef.current.contains(event.target)) {
809
+ onClick();
810
+ }
811
+ }, [onClick]);
812
+ useEventListener(globalThis.document, 'click', handleClickOutside);
813
+ return targetRef;
814
+ }
815
+
816
+ const usePopupManager = () => ({
817
+ open: (popup, options) => defaultEventBus.fire('popup', { type: 'open', popup, ...options }),
818
+ update: (popup, options) => defaultEventBus.fire('popup', { type: 'update', popup, ...options }),
819
+ close: () => defaultEventBus.fire('popup', { type: 'close' }),
820
+ });
821
+
822
+ const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
823
+ const desc = (cmp) => (a, b) => -cmp(a, b);
824
+
781
825
  const JARO_WINKLER_P = 0.1;
782
826
  const JARO_WINKLER_MAX_L = 4;
783
827
  const jaroWinklerDistance = (s1) => (s2) => {
@@ -842,62 +886,76 @@
842
886
  return prefixL;
843
887
  }
844
888
 
845
- const isOnlyDigits = (str) => str && !/\D/.test(str);
889
+ function zip(firstCol, ...restCols) {
890
+ return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
891
+ }
846
892
 
847
- const svgUseStyleMap = {
848
- normal: '',
849
- color: 'text-primary-main',
850
- black: 'text-black',
851
- white: 'text-black',
852
- };
853
- const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', width, height, }) => {
854
- const router = useRouter();
855
- const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
856
- if (iconVersion !== 'normal') {
857
- return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), width: width, height: height, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
893
+ const filterOptions = (options, query) => {
894
+ if (!options?.length || !query?.trim()) {
895
+ return options;
858
896
  }
859
- return (jsx("img", { className: className, src: href, alt: alt, title: title, "aria-hidden": "true", width: width, height: height, style: getInlineStyle(className, height) }));
860
- });
861
- const getInlineStyle = (className, height) => {
862
- if (className?.includes('h-')) {
863
- return {};
864
- }
865
- return { height: isOnlyDigits(height) ? `${height}px` : height };
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);
866
904
  };
867
- const getSvgSize = (width) => (width ? '' : 'w-full h-full');
868
- const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
869
905
 
870
- const Select = JSX(({ className = '', label, options = [], value, valid = true, isBorder = true, placeholder = '', onChange, isSearch = false, }) => {
871
- const [isOpen, { setFalse: close, toggle }] = useBool();
872
- const [searchValue, setSearchValue] = useState('');
873
- const reset = useCallback(() => {
874
- close();
875
- setSearchValue('');
876
- }, []);
877
- const wrapperRef = useOutsideClick(reset);
906
+ 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);
907
+
908
+ function useSelectPopup({ isOpen, options, value, query, onChange, onClose, }) {
909
+ const popup = usePopupManager();
910
+ const close = useCallback(() => {
911
+ popup.close();
912
+ onClose && onClose();
913
+ }, [onClose]);
878
914
  const handleChange = useCallback((option) => {
879
- reset();
915
+ close();
880
916
  onChange && onChange(option);
881
- }, [onChange]);
882
- const isSelected = (option) => option.key === value?.key;
883
- return (jsxs("div", { className: className, ref: wrapperRef, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), children: [jsxs("div", { className: style('text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: toggle, children: [jsx("p", { className: "p-m pr-3xl h-14 overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), name: "ArrowUpIcon", width: "16", height: "16" })] }), isSearch ? renderSearch(isOpen, searchValue, setSearchValue) : null, options?.length ? (jsx("div", { className: style('h-0', isOpen ? '' : 'overflow-hidden'), children: 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)]", children: getFilteredOptions(options, searchValue).map(renderOption(handleChange, isOpen, isSelected)) }) })) : null] })] }));
917
+ }, [close, onChange]);
918
+ const inputRef = useRef(null);
919
+ const popupRef = useOutsideClick(close);
920
+ useEffect(() => {
921
+ if (!isOpen || !inputRef.current) {
922
+ return;
923
+ }
924
+ const inputElement = inputRef.current;
925
+ const { top, left, width, height } = inputElement.getBoundingClientRect();
926
+ popup.update(jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange }), {
927
+ top: top + window.scrollY + height,
928
+ left,
929
+ width,
930
+ });
931
+ }, [isOpen, options, value, query, handleChange]);
932
+ return inputRef;
933
+ }
934
+
935
+ const Select = JSX(({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, onChange, }) => {
936
+ const [isOpen, { setFalse: close, setTrue: open }] = useBool();
937
+ const [query, setQuery] = useState('');
938
+ const handleClose = useCallback(() => {
939
+ setQuery('');
940
+ close();
941
+ }, []);
942
+ const inputRef = useSelectPopup({
943
+ isOpen,
944
+ options,
945
+ value,
946
+ query,
947
+ onChange,
948
+ onClose: handleClose,
949
+ });
950
+ return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-3xl flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
884
951
  });
885
952
  const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
886
- const getFilteredOptions = (options, searchValue) => {
887
- return searchValue
888
- ? options.filter((_) => jaroWinklerDistance(_.text?.toLowerCase())(searchValue.toLowerCase()) >= 0.6)
889
- : options;
890
- };
891
- const renderSearch = (isOpen, searchValue, setSearchValue) => isOpen ? (jsx("div", { className: style('absolute top-0 w-full h-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: searchValue, onChange: setSearchValue }) })) : null;
892
- const renderOption = (handleChange, isOpen, isSelected) => (option, i) => (jsxs("div", { onClick: () => {
893
- handleChange(option);
894
- }, className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", 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', isSelected(option) && isOpen ? '' : 'hidden') })] }, String(i)));
895
- const formatOption = (_) => _?.text || _?.key || '';
953
+ const renderIcon$1 = (isOpen) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), name: "ArrowUpIcon", width: "16", height: "16" }));
896
954
  const getBorderStyle = (isBorder, valid) => style(isBorder ? 'border rounded-md hover:border-primary-hover' : '', valid ? ' border-gray' : 'border-error');
897
955
 
898
956
  const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs", font: "font-light", color: "text-error", children: error })) : null })] })));
899
957
 
900
- const renderAcquiringRegion = ({ regions, field }) => (jsxs("div", { className: "border-b border-b-main-divider sm:border-none sm:flex sm:justify-between gap-lg ", children: [jsx("div", { className: "sm:w-1/2", children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), defaultValidator) }) }), jsx("div", { className: "sm: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: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) })] }));
958
+ const renderAcquiringRegion = ({ regions, field }) => (jsxs("div", { className: "border-b border-b-main-divider @xl:border-none @xl:flex @xl:justify-between gap-lg ", children: [jsx("div", { className: "@xl:w-1/2", children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), 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: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) })] }));
901
959
 
902
960
  const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })] })));
903
961
 
@@ -908,7 +966,7 @@
908
966
  className: 'text-white',
909
967
  version: button?.version,
910
968
  });
911
- return (jsx("button", { type: "submit", className: style('p-m w-full sm:w-auto', buttonStyle, className), children: button?.text ? button.text : 'Отправить заявку' }));
969
+ return (jsx("button", { type: "submit", className: style('p-m w-full @xl:w-auto', buttonStyle, className), children: button?.text ? button.text : 'Отправить заявку' }));
912
970
  };
913
971
 
914
972
  const initialFormState$4 = {
@@ -945,10 +1003,10 @@
945
1003
  }, [onSubmit]);
946
1004
  const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
947
1005
  const regions = useGetRegions();
948
- return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430 \u0438 \u0440\u0435\u0433\u0438\u043E\u043D", className: "sm:text-center" }), renderAcquiringRegion({ regions, field }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "sm:text-center" }), renderAcquiringDataOrganization(field), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1006
+ return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430 \u0438 \u0440\u0435\u0433\u0438\u043E\u043D", className: "@xl:text-center" }), renderAcquiringRegion({ regions, field }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderAcquiringDataOrganization(field), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
949
1007
  });
950
1008
 
951
- const renderBusinessCardDataOrganization = (field) => (jsxs("div", { className: "sm:flex sm:justify-between sm:gap-lg", children: [jsxs("div", { className: "sm: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: "sm: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) })] })] }));
1009
+ 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) })] })] }));
952
1010
 
953
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) }));
954
1012
 
@@ -1002,7 +1060,7 @@
1002
1060
  const MAX_CREDIT_TERM = 180;
1003
1061
  const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
1004
1062
 
1005
- const renderCreditDataOrganization = (field) => (jsxs("div", { className: "pb-2xs border-b border-b-main-divider sm:flex sm:justify-between sm:gap-lg sm:border-none sm:pb-0", children: [jsxs("div", { className: "sm:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", 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: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "sm:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...withValidator(field('annualRevenue'), defaultValidator) }), 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: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...field('mail') })] })] }));
1063
+ const renderCreditDataOrganization = (field) => (jsxs("div", { className: "pb-2xs border-b border-b-main-divider @xl:flex @xl:justify-between @xl:gap-lg @xl:border-none @xl:pb-0", children: [jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", 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: "shrink-0 w-full", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "@xl:w-1/2 space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...withValidator(field('annualRevenue'), defaultValidator) }), 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: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...field('mail') })] })] }));
1006
1064
 
1007
1065
  const useNormalizedInput = (props, { normalize, format }) => {
1008
1066
  const { value, onFocus, onBlur, onChange } = props;
@@ -1066,9 +1124,9 @@
1066
1124
  const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
1067
1125
  const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
1068
1126
 
1069
- const renderCreditParameters = (field) => (jsxs("div", { className: "border-b border-b-main-divider sm:flex sm:justify-between gap-lg sm:border-none", children: [jsxs("div", { className: "sm: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: "sm: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') })] })] }));
1127
+ 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') })] })] }));
1070
1128
 
1071
- const renderRegionDepartment = ({ regions, branches, field }) => (jsxs("div", { className: "sm:flex sm:justify-between sm:gap-m sm:mb-2xl sm:border-none sm:pb-0", children: [jsx("div", { className: "sm: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: "sm: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 = '' }) => ({
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 = '' }) => ({
1072
1130
  key: branchCode,
1073
1131
  text: address,
1074
1132
  })), ...withValidator(field('department'), defaultValidator) }) })] }));
@@ -1111,7 +1169,7 @@
1111
1169
  const [formState, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1112
1170
  const regions = useGetRegions();
1113
1171
  const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
1114
- return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B", className: "sm:text-center" }), renderCreditParameters(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "sm:text-center" }), renderCreditDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "sm:text-center" }), renderRegionDepartment({ regions, branches, field }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1172
+ return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B", className: "@xl:text-center" }), renderCreditParameters(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderCreditDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "@xl:text-center" }), renderRegionDepartment({ regions, branches, field }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1115
1173
  });
1116
1174
 
1117
1175
  const initialFormState$1 = {
@@ -1134,7 +1192,7 @@
1134
1192
  });
1135
1193
  }, [onSubmit]);
1136
1194
  const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1137
- return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "sm:text-center mb-m" }), jsxs("div", { className: "max-w-[560px] m-auto space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1195
+ return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "@xl:text-center mb-m" }), jsxs("div", { className: "max-w-[560px] m-auto space-y-s", children: [jsx(InputControl, { className: "shrink-0 w-full", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse @xl:items-center @xl:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1138
1196
  });
1139
1197
 
1140
1198
  const EMPTY_VALUE$1 = {};
@@ -1157,7 +1215,7 @@
1157
1215
  version: button?.version,
1158
1216
  });
1159
1217
  const regionHref = regions?.find((_) => _.name === region.key)?.href;
1160
- return (jsxs("div", { className: "container space-y-s sm:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions.map(({ name = '' }) => ({ key: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-m w-full sm:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1218
+ return (jsxs("div", { className: "container space-y-s @xl:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions.map(({ name = '' }) => ({ key: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1161
1219
  });
1162
1220
 
1163
1221
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
@@ -1188,70 +1246,73 @@
1188
1246
 
1189
1247
  const renderContacts = () => (jsxs("div", { className: "flex gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] }));
1190
1248
 
1191
- const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1192
- return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
1193
- });
1194
-
1195
- const CHECK_PATHS = [
1196
- {
1197
- d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1198
- fillRule: 'evenodd',
1199
- clipRule: 'evenodd',
1200
- fill: 'white',
1201
- },
1202
- ];
1203
- const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1204
- const handleChange = useCallback((e) => {
1205
- if (disabled) {
1206
- return;
1207
- }
1208
- e.preventDefault();
1209
- onChange && onChange(!value);
1210
- }, [onChange, disabled, value]);
1211
- const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1212
- return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
1213
- });
1214
- const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1249
+ const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange(_.target.value) }), text ? jsx("span", { className: "text-primary-text cursor-pointer", children: text }) : null] }) })));
1215
1250
 
1216
1251
  const renderQuestionsInterested = (field) => {
1217
- const textField = field('text');
1218
- return (jsxs("div", { className: "space-y-m", children: [jsxs("div", { className: "sm:flex sm:items-center sm:gap-xl", children: [jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", ...field('currencyControl') }), jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", ...field('documentaryOperations') }), jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", ...field('conversionOperations') })] }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-m outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text", value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }));
1252
+ const { value, onChange } = field('vedTypes');
1253
+ return (jsx("div", { className: "space-y-m", children: jsxs("div", { className: "@xl:flex @xl:items-center @xl:gap-xl", children: [jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { className: "mb-xs", name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: (_) => onChange && onChange(_) })] }) }));
1219
1254
  };
1220
1255
 
1221
- const renderWedDataOrganization = (field) => (jsxs("div", { children: [jsxs("div", { className: "sm:flex sm:justify-between sm:gap-lg", children: [jsx("div", { className: "sm:w-1/2", children: jsx(InputControl, { className: "shrink-0 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("div", { className: "sm:w-1/2", children: jsx(InputControl, { className: "shrink-0 w-full mb-s", label: "\u0424\u0418\u041E", ...withValidator(field('name'), nameValidator) }) })] }), jsxs("div", { className: "sm:flex sm:justify-between sm:gap-lg sm:mb-2xl", children: [jsx("div", { className: "sm:w-1/2", children: jsx(PhoneInputControl, { className: "shrink-0 w-full mb-s", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }) }), jsx("div", { className: "sm:w-1/2", children: jsx(InputControl, { className: "shrink-0 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) }) })] })] }));
1256
+ const renderWedDataOrganization = (field, regions) => {
1257
+ 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] })] }));
1259
+ };
1260
+
1261
+ const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
1262
+ const renderWedTextarea = (field) => {
1263
+ const textField = field('text');
1264
+ return (jsxs("label", { children: [jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", font: "font-light", children: "\u041E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435" }) }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: style('block w-full resize-y min-h-24 p-m outline-none border rounded-md border-gray', activeTextareaStyles), value: textField.value, onInput: ((e) => textField.onChange && textField.onChange(e.target?.value || '')) })] }));
1265
+ };
1222
1266
 
1223
1267
  const initialFormState = {
1224
1268
  fullName: '',
1225
1269
  name: '',
1226
1270
  phone: '',
1227
- mail: '',
1228
- currencyControl: false,
1229
- documentaryOperations: false,
1230
- conversionOperations: false,
1271
+ inn: '',
1272
+ vedTypes: 'currencyControl',
1231
1273
  text: '',
1232
1274
  };
1233
- const webValidator = objectValidator({
1275
+ const defaultValidators = {
1234
1276
  fullName: defaultValidator,
1235
1277
  name: nameValidator,
1236
1278
  phone: phoneValidator,
1279
+ };
1280
+ const wedValidator = objectValidator({
1281
+ ...defaultValidators,
1237
1282
  mail: defaultValidator,
1238
1283
  });
1284
+ const wedValidatorCurrencyControl = objectValidator({
1285
+ ...defaultValidators,
1286
+ inn: innValidator,
1287
+ region: defaultValidator,
1288
+ });
1289
+ const isCurrencyControl = (vedTypes) => vedTypes === 'currencyControl';
1290
+ const getValidator = (vedTypes) => isCurrencyControl(vedTypes) ? wedValidatorCurrencyControl : wedValidator;
1291
+ const getVedTypes = (vedTypes) => ({
1292
+ currencyControl: vedTypes === 'currencyControl',
1293
+ documentOperations: vedTypes === 'documentOperations',
1294
+ conversionTransactions: vedTypes === 'conversionTransactions',
1295
+ otherIssues: vedTypes === 'otherIssues',
1296
+ });
1239
1297
  const ApplicationFormWed = JSX((props) => {
1240
1298
  const { button, link, onSubmit } = props;
1241
1299
  const handleSubmit = useCallback((formState) => {
1242
- const { fullName, name, phone, mail, currencyControl, documentaryOperations, conversionOperations, text, } = formState;
1243
- isValidationSuccess(webValidator(formState)) &&
1244
- onSubmit({
1245
- typeForm: 'kved',
1246
- fullName,
1247
- name,
1248
- phone,
1249
- mail,
1250
- partnerComments: `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`,
1251
- });
1300
+ const { fullName, name, phone, mail, inn, region, vedTypes, text } = formState;
1301
+ const data = {
1302
+ typeForm: 'KVED',
1303
+ fullName,
1304
+ name,
1305
+ phone,
1306
+ text,
1307
+ vedTypes: getVedTypes(vedTypes),
1308
+ PartnerComments: text,
1309
+ ...(!isCurrencyControl(vedTypes) ? { mail } : { inn, region: region?.text || '' }),
1310
+ };
1311
+ isValidationSuccess(getValidator(vedTypes)(formState)) && onSubmit(data);
1252
1312
  }, [onSubmit]);
1253
1313
  const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
1254
- return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "sm:text-center" }), renderWedDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "sm:text-center" }), renderQuestionsInterested(field), jsxs("div", { className: "flex flex-col gap-m border-b border-main-divider pb-lg sm:items-center sm:flex-row sm:pb-4xl", children: [renderSubmitButton(button), jsx(Footnote, { link: link })] }), jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "sm:text-center" }), renderContacts()] }));
1314
+ const regions = useGetRegions();
1315
+ return (jsxs("form", { className: "container space-y-m", onSubmit: formProps.onSubmit, children: [renderQuestionsInterested(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderWedDataOrganization(field, regions), renderWedTextarea(field), jsxs("div", { className: "flex flex-col gap-m border-b border-main-divider pb-lg @xl:items-center @xl:flex-row @xl:pb-4xl", children: [renderSubmitButton(button), jsx(Footnote, { link: link })] }), jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), renderContacts()] }));
1255
1316
  });
1256
1317
 
1257
1318
  const EmbeddableForms = {
@@ -1272,18 +1333,13 @@
1272
1333
  const API = CorporateLeadAPI();
1273
1334
  const ApplicationForm = JSX((props) => {
1274
1335
  const { className, formBlock, ...rest } = props;
1275
- // const type = formBlock?.formType;
1276
- // if (!type || !(type in EmbeddableForms)) {
1277
- // return null;
1278
- // }
1279
- // const EmbeddedForm = EmbeddableForms[type];
1280
1336
  const [responseType, setResponseType] = useState('');
1281
1337
  const handleSubmit = useCallback(async (data) => {
1282
1338
  const status = (await API.send(data)) ? 'OK' : 'Fail';
1283
1339
  setResponseType(status);
1284
1340
  return status;
1285
1341
  }, []);
1286
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-lg", children: [formBlock?.title ? (jsx(Heading, { headingType: "h3", title: formBlock.title, className: "sm:text-center" })) : null, formBlock ? renderEmbeddedForm(formBlock, handleSubmit) : null, responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
1342
+ return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-lg", children: [formBlock?.title ? (jsx(Heading, { headingType: "h3", title: formBlock.title, className: "@xl:text-center" })) : null, formBlock ? renderEmbeddedForm(formBlock, handleSubmit) : null, responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
1287
1343
  });
1288
1344
  const renderEmbeddedForm = (formBlock, handleSubmit) => {
1289
1345
  const type = formBlock?.formType;
@@ -1327,11 +1383,15 @@
1327
1383
  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-m', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
1328
1384
  const renderButton = (buttonClassName = '') => (button, index) => {
1329
1385
  const { text, icon, iconRight, version, ...rest } = button || {};
1330
- const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
1331
- const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
1332
- return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1386
+ const iconVersion = getIconVersion(icon, version);
1387
+ const iconRightVersion = getIconVersion(iconRight, version);
1388
+ return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion: iconRightVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1333
1389
  };
1334
1390
  const DEFAULT_ICON_W = 24;
1391
+ const getIconVersion = (icon, version = 'secondary') => {
1392
+ const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
1393
+ return icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
1394
+ };
1335
1395
  const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
1336
1396
 
1337
1397
  const headlineVersionStyles = {
@@ -1390,8 +1450,10 @@
1390
1450
  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] }));
1391
1451
  });
1392
1452
 
1393
- const Bonus = JSX(({ className = '', title, description, bonusItems = [], ...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" }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
1394
- ? bonusItems.map((_, i) => (jsxs("div", { className: "space-y-xs flex flex-col grow w-full sm:w-[49%] border border-gray p-m", 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
1453
+ const AlignStyles = 'text-center';
1454
+
1455
+ 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
+ ? 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
1395
1457
  ? renderBonusItemContent(_.bonusItemContent)
1396
1458
  : null] })] }, String(i))))
1397
1459
  : null })] }) })));
@@ -1400,7 +1462,7 @@
1400
1462
  : renderBonusImage(bonusItemContent);
1401
1463
  const renderBonusCount = (_) => (jsxs("div", { className: "w-full pt-default mt-s flex justify-center sm:justify-end items-end", children: [_.bonusCount ? (
1402
1464
  // -mb-10 добавлен для выравнивания bonusCount относительно bonusName, тк шрифт font-mohave неправильно высчитывает line-height
1403
- jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
1465
+ jsx("div", { className: "shrink-0 -mb-10", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: _.bonusCount }) })) : null, _.bonusName ? (jsx("div", { className: "shrink-0 gradient-color-text", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
1404
1466
  const renderBonusImage = (_) => _.image ? jsx(Img, { className: "min-w-12 p-xs rounded-icon shrink-0", image: _.image }) : null;
1405
1467
 
1406
1468
  /**
@@ -1412,11 +1474,9 @@
1412
1474
  right: 'text-right',
1413
1475
  };
1414
1476
 
1415
- const bonusBenefitAlign = 'text-center';
1416
-
1417
1477
  const bonusBenefitStyles = 'items-center';
1418
1478
 
1419
- const renderBonusBenefit = ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align: bonusBenefitAlign, children: title })) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? (jsx(Text, { size: "text-h6", font: "font-normal", align: bonusBenefitAlign, children: description })) : null] }, String(i)));
1479
+ const renderBonusBenefit = ({ icon, title, description }, i) => (jsxs("div", { className: style('flex flex-col', bonusBenefitStyles, !description && !title ? 'justify-center' : ''), children: [title ? (jsx(Text, { size: "text-h6", font: "font-normal", align: AlignStyles, children: title })) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? (jsx(Text, { size: "text-h6", font: "font-normal", align: AlignStyles, children: description })) : null] }, String(i)));
1420
1480
 
1421
1481
  const renderBonusBenefits = (bonusBenefits, columnsCount, cardTextAlign) => (jsx("div", { className: `grid gap-2xs ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) }));
1422
1482
  const getElementsColsValue = (colValue) => {
@@ -1432,7 +1492,7 @@
1432
1492
  }
1433
1493
  };
1434
1494
 
1435
- const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { className: "mb-4xl sm:mb-3xl", title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
1495
+ const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length
1436
1496
  ? renderBonusBenefits(bonusBenefits, columnsCount, cardTextAlign)
1437
1497
  : null] })));
1438
1498
 
@@ -1504,11 +1564,11 @@
1504
1564
  const REFINANCING_EXTRA_MIN_SUM = 0;
1505
1565
  const REFINANCING_EXTRA_MAX_SUM = 500000;
1506
1566
  const DEPOSIT_DEFAULT_SUM = 20000;
1507
- const DEFAULT_MIN_MONTHS$1 = 13;
1567
+ const DEFAULT_MIN_MONTHS = 13;
1508
1568
  const DEFAULT_REFINANCING_MIN_MONTHS = 13;
1509
1569
  const DEFAULT_REFINANCING_MONTHS = 48;
1510
- const DEFAULT_MAX_MONTHS$1 = 60;
1511
- const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS$1 - DEFAULT_MIN_MONTHS$1) / 2);
1570
+ const DEFAULT_MAX_MONTHS = 60;
1571
+ const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS - DEFAULT_MIN_MONTHS) / 2);
1512
1572
  const BUSINESS_DEFAULT_SUM = 100000;
1513
1573
  const BUSINESS_MIN_DAYS = 1;
1514
1574
  const BUSINESS_MAX_DAYS = 1095;
@@ -1521,8 +1581,8 @@
1521
1581
  const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
1522
1582
  minSum: DEFAULT_MIN_SUM$1,
1523
1583
  maxSum: DEFAULT_MAX_SUM$1,
1524
- minMonths: DEFAULT_MIN_MONTHS$1,
1525
- maxMonths: DEFAULT_MAX_MONTHS$1,
1584
+ minMonths: DEFAULT_MIN_MONTHS,
1585
+ maxMonths: DEFAULT_MAX_MONTHS,
1526
1586
  rate: 0,
1527
1587
  isSalaryClient: false,
1528
1588
  isPensionClient: false,
@@ -1537,7 +1597,7 @@
1537
1597
  minSumExtra: REFINANCING_EXTRA_MIN_SUM,
1538
1598
  maxSumExtra: REFINANCING_EXTRA_MAX_SUM,
1539
1599
  minMonths: DEFAULT_REFINANCING_MIN_MONTHS,
1540
- maxMonths: DEFAULT_MAX_MONTHS$1,
1600
+ maxMonths: DEFAULT_MAX_MONTHS,
1541
1601
  rate: 0,
1542
1602
  isExtraMoney: false,
1543
1603
  isSalaryClient: false,
@@ -1633,7 +1693,7 @@
1633
1693
  restExpenseValue: DEFAULT_REST_MIN_SUM,
1634
1694
  });
1635
1695
  const { minSumTravel, maxSumTravel, minSumOther, maxSumOther, monthBonus, yearBonus } = useBonusCalculatorParams(userInputParams, sourceBookDir);
1636
- return (jsxs("section", { className: style('flex flex-col justify-between sm:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:w-2/5 gap-2xl", children: [renderWantedSumInput({
1696
+ return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
1637
1697
  title: 'Сумма покупок в категории путешествия, ₽',
1638
1698
  min: minSumTravel,
1639
1699
  max: maxSumTravel,
@@ -1650,6 +1710,31 @@
1650
1710
  })] }), monthBonus >= 0 ? (jsx(Rate, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u043C\u0435\u0441\u044F\u0446", rate: monthBonus, rateBlockClassName: "tracking-[-14px]", fractionDigits: 0 })) : null, jsxs("div", { className: "flex flex-col gap-2xl sm:w-96", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
1651
1711
  });
1652
1712
 
1713
+ const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1714
+ return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
1715
+ });
1716
+
1717
+ const CHECK_PATHS = [
1718
+ {
1719
+ d: 'M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z',
1720
+ fillRule: 'evenodd',
1721
+ clipRule: 'evenodd',
1722
+ fill: 'white',
1723
+ },
1724
+ ];
1725
+ const Checkbox = JSX(({ className, value, text, disabled, isRadio, onChange }) => {
1726
+ const handleChange = useCallback((e) => {
1727
+ if (disabled) {
1728
+ return;
1729
+ }
1730
+ e.preventDefault();
1731
+ onChange && onChange(!value);
1732
+ }, [onChange, disabled, value]);
1733
+ const icon = isRadio ? (jsx("div", { className: "absolute left-1 w-3 h-3 rounded-full bg-primary-main" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "absolute left-1 ml-px block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" }));
1734
+ return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group/box", onClick: handleChange, children: [jsx("div", { className: style('appearance-none w-5 h-5 border-solid cursor-pointer m-0', isRadio ? 'rounded-full border-2' : checkboxStyle(value), value ? 'border-primary-main' : 'border-gray', disabled ? 'bg-main-disabled' : 'group-hover/box:border-primary-hover'), role: "checkbox", "aria-checked": Boolean(value), "aria-disabled": Boolean(disabled) }), value ? icon : null, text ? (jsx("div", { className: "ml-s", children: jsx(Text, { size: "text-l", font: "font-light", children: text }) })) : null] }) }));
1735
+ });
1736
+ const checkboxStyle = (value) => style('rounded border', value ? 'bg-primary-main' : '');
1737
+
1653
1738
  const STEP_DAYS = 1;
1654
1739
  const renderDaysInput = (props) => (jsx(InputRange, { items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
1655
1740
  const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
@@ -1782,7 +1867,7 @@
1782
1867
  });
1783
1868
  const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
1784
1869
  const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
1785
- return (jsxs("section", { className: style('flex flex-col justify-between sm:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:w-2/5 gap-2xl", children: [renderWantedSumInput({
1870
+ return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
1786
1871
  title: 'Сумма, ₽',
1787
1872
  min: calculatorParams.minSum,
1788
1873
  max: calculatorParams.maxSum,
@@ -1934,7 +2019,7 @@
1934
2019
  orientation: 'vertical',
1935
2020
  ...field('isAnnuity'),
1936
2021
  });
1937
- return (jsxs("section", { className: style('flex flex-col justify-between sm:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:w-2/5 gap-2xl", children: [renderWantedSumInput({
2022
+ return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
1938
2023
  title: 'Сумма кредита, ₽',
1939
2024
  step: 500,
1940
2025
  min: calculatorParams.minSum,
@@ -2028,7 +2113,7 @@
2028
2113
  useEffect(() => {
2029
2114
  setMonthsValue && setMonthsValue(defaultMonth);
2030
2115
  }, [defaultMonth]);
2031
- return (jsxs("section", { className: style('flex flex-col justify-between sm:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:w-2/5 gap-2xl", children: [renderWantedSumInput({
2116
+ return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
2032
2117
  title: 'Сумма, ₽',
2033
2118
  min: calculatorParams.minSum,
2034
2119
  max: calculatorParams.maxSum,
@@ -2101,7 +2186,6 @@
2101
2186
  paramsViewSettings,
2102
2187
  });
2103
2188
  const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], sourceBookLimitParams, rateRows);
2104
- const { minSumOld, maxSumOld } = getLimitRangeByKeys(['minSumOld', 'maxSumOld'], sourceBookLimitParams, rateRows);
2105
2189
  const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], sourceBookLimitParams, rateRows);
2106
2190
  const refinancingCalculatorSourceBookRateParams = getRefinancingCalculatorRateParams({
2107
2191
  rateRows,
@@ -2120,8 +2204,6 @@
2120
2204
  ...userInputParams,
2121
2205
  minSum,
2122
2206
  maxSum,
2123
- minSumOld,
2124
- maxSumOld,
2125
2207
  minMonths,
2126
2208
  maxMonths,
2127
2209
  moneyValue,
@@ -2145,7 +2227,7 @@
2145
2227
  moneyExtra: REFINANCING_OLD_DEFAULT_SUM,
2146
2228
  });
2147
2229
  const calculatorParams = useRefinancingCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
2148
- return (jsxs("section", { className: style('flex flex-col justify-between sm:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:w-2/5 gap-2xl", children: [renderWantedSumInput({
2230
+ return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
2149
2231
  title: 'Остаток долга в других банках, ₽ ',
2150
2232
  step: 500,
2151
2233
  min: calculatorParams.minSum,
@@ -2275,7 +2357,7 @@
2275
2357
  ? getDisabledButtonClasses({ version: button?.version })
2276
2358
  : getRegularButtonClasses({ className: 'text-white', version: button?.version });
2277
2359
  const link = useLink();
2278
- return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h2", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { name: "_amount", valid: !isDisabled, placeholder: placeholder, label: label, ...field('_amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: _amount }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-m mt-lg', buttonStyle), disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
2360
+ return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL_MAP[formType], children: [jsx(CurrencyInput, { name: "_amount", valid: !isDisabled, placeholder: placeholder, label: label, ...field('_amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: _amount }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-m mt-lg', buttonStyle), disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
2279
2361
  });
2280
2362
 
2281
2363
  const mapChildren = (mapper) => (children) => {
@@ -2545,7 +2627,9 @@
2545
2627
  'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider');
2546
2628
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
2547
2629
 
2548
- const Carousel = JSX(({ className, itemCount, visibleItemCount = 0, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
2630
+ const VISIBLE_ITEM_COUNT = 1;
2631
+
2632
+ const Carousel = JSX(({ className, itemCount, visibleItemCount = VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
2549
2633
  const { blocks: childBlocks = [] } = rest.block || {};
2550
2634
  const count = itemCount || childBlocks?.length;
2551
2635
  const [activeIndex, { inc: increaseActiveIndex, dec: decreaseActiveIndex }] = useCarouselControls({
@@ -2570,6 +2654,7 @@
2570
2654
  'CarouselRichTextCard',
2571
2655
  'CarouselInvestmentCard',
2572
2656
  'CarouselEventCard',
2657
+ 'ProductBlock',
2573
2658
  ];
2574
2659
  Carousel.childSchema = () => ({
2575
2660
  isHighlighting: {
@@ -2590,16 +2675,27 @@
2590
2675
 
2591
2676
  const layerBaseStyle = 'z-10 border border-solid w-full h-full';
2592
2677
  const layerStyle = style(layerBaseStyle, 'absolute hidden sm:block border-transparent');
2593
- const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2678
+ const CarouselCard = JSX(({ className, title, description, button, ...rest }) => (jsx(BlockWrapper, { className: style('sm:pl-6xl sm:pb-4xl', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "relative", children: [jsx("div", { className: style(layerStyle, 'top-9 right-12 bg-green-dark') }), jsx("div", { className: style(layerStyle, 'top-6 right-8 bg-green') }), jsx("div", { className: style(layerStyle, 'top-3 right-4 bg-green-light') }), jsxs("div", { className: style(layerBaseStyle, 'relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-light'), children: [jsx(Headline, { title: title, description: description, headlineVersion: titleSize, align: "text-left", isEmbedded: true }), renderButtonsSection([button], {
2594
2679
  className: 'mt-m sm:mt-6xl sm:justify-center',
2595
2680
  isVertical: true,
2596
2681
  })] })] }) })));
2597
2682
 
2683
+ const imageAlignmentMap = {
2684
+ start: '@lg:self-start',
2685
+ center: '@lg:self-center',
2686
+ end: '@lg:self-end',
2687
+ };
2688
+ const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, isImageAlwaysOnRight = false, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: style('grow relative flex justify-around @lg:justify-between items-stretch gap-3xl', isImageAlwaysOnRight ? 'flex-row' : 'flex-col @lg:flex-row'), children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
2689
+ className: isImageAlwaysOnRight ? '' : '-order-1 @xl:order-1',
2690
+ imageAlign,
2691
+ })] })] })));
2692
+ const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2693
+
2598
2694
  const cardStyleMap = {
2599
2695
  black: 'bg-black',
2600
2696
  white: 'bg-white',
2601
2697
  };
2602
- const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: [image?.src ? jsx(Img, { className: "flex justify-center mb-xl", image: image }) : null, jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left", className: "mb-m" }), 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, renderButtonsSection([button], { buttonClassName: 'w-full mt-lg' })] })));
2698
+ 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] }) })));
2603
2699
  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)));
2604
2700
 
2605
2701
  const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
@@ -2613,17 +2709,6 @@
2613
2709
  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" }) })] }) }));
2614
2710
  });
2615
2711
 
2616
- const imageAlignmentMap = {
2617
- start: '@lg:self-start',
2618
- center: '@lg:self-center',
2619
- end: '@lg:self-end',
2620
- };
2621
- const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-col @lg:flex-row justify-around @lg:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
2622
- className: '-order-1 @xl:order-1',
2623
- imageAlign,
2624
- })] })] })));
2625
- const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2626
-
2627
2712
  const cardColumnsModeStyleMap = {
2628
2713
  1: 'grid-cols-1',
2629
2714
  2: 'grid-cols-2',
@@ -2631,24 +2716,23 @@
2631
2716
  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] }) })));
2632
2717
  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))));
2633
2718
 
2634
- const LINK_CLASS_NAME = `absolute border border-primary-main px-xl py-lg
2635
- text-l font-light bg-white text-primary-text flex
2636
- justify-between items-center group-hover/link:text-primary-main z-10`;
2637
- const LINK_BORDER_CLASS_NAME = 'bg-transparent border-white border h-[70px] absolute w-80 top-0';
2719
+ const LINK_CLASS_NAME = `absolute border
2720
+ bg-white flex justify-between group-hover/link:text-primary-main`;
2721
+ const LINK_BORDER_CLASS_NAME = 'hidden xl:block absolute w-full h-full border border-white';
2638
2722
  const CarouselLinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
2639
2723
  const link = useLink();
2640
2724
  const adjustedProps = link({ href, target });
2641
- return text ? (jsxs("div", { className: style('flex max-w-sm relative group/link cursor-pointer w-64 h-16 sm:w-[47%] sm:h-20 sm:mr-m', className), children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'rounded-md sm:rounded-none w-full h-12 sm:ml-s sm:w-full sm:h-auto'), role: "link", ...adjustedProps, children: [jsx("div", { className: "p-0.5", children: text }), jsx("div", { className: "w-6 h-6 hidden sm:block", children: jsx(Img, { className: "w-4 h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24" }) })] }), jsx("div", { className: LINK_BORDER_CLASS_NAME + ' hidden sm:block mx-1.5 mt-1.5' }), jsx("div", { className: LINK_BORDER_CLASS_NAME + ' hidden sm:block mt-3 mr-3' })] })) : null;
2725
+ return text ? (jsx("div", { className: style('flex relative group/link pl-s pb-s min-w-[16rem] xl:min-w-[20rem]', className), children: jsxs("div", { className: "relative min-h-16 w-full", children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'sm:rounded-md rounded-none w-full px-xl py-lg whitespace-nowrap'), role: "link", ...adjustedProps, children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }), jsx(Img, { className: "group-hover/link:brightness-100 hidden xl:block ml-2xs", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main hidden xl:block", width: "24", height: "24" })] }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-1.5 -left-1.5') }), jsx("div", { className: style(LINK_BORDER_CLASS_NAME, '-bottom-3 -left-3') })] }) })) : null;
2642
2726
  });
2643
2727
 
2644
2728
  const MAX_LINKS_COUNT = 10;
2645
2729
 
2646
- const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col sm:flex-row w-full overflow-hidden', className), ...rest, children: [jsxs("div", { className: "mr-xl flex-auto", children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })) : null] }), links?.length ? renderLinks(links) : null] })));
2647
- const renderLinks = (links) => {
2730
+ const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col @6xl:flex-row gap-m", children: [jsxs("div", { children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })) : null] }), links?.length ? renderLinks(links, '@6xl:min-w-[672px] p-0 justify-self-end') : null] }) })));
2731
+ const renderLinks = (links, className = '') => {
2648
2732
  const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
2649
- return (jsx(Carousel, { className: "@container-normal sm:w-2/3 w-full p-0 sm:p-xs", version: "secondary", itemCount: itemCount, arrowsPadded: false, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap self-start w-full sm:w-[672px]'), children: links
2733
+ return (jsx(Carousel, { className: className, version: "secondary", itemCount: itemCount, arrowsPadded: false, padding: "p-0", children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap gap-2xs self-start xl:justify-center @5xl:grid @5xl:grid-cols-2'), children: links
2650
2734
  .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
2651
- .map((link, index) => (jsx(CarouselLinkButton, { className: "sm:m-2xs", ...link }, String(index)))) }, String(groupIndex)))) }));
2735
+ .map((link, index) => (jsx(CarouselLinkButton, { ...link }, String(index)))) }, String(groupIndex)))) }));
2652
2736
  };
2653
2737
 
2654
2738
  const DOT_SIZE_MAP = {
@@ -2673,9 +2757,7 @@
2673
2757
  };
2674
2758
  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);
2675
2759
 
2676
- const alignTextStyle = 'text-center';
2677
-
2678
- const CarouselProductCard = JSX(({ additionalDescription, align = alignTextStyle, button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isButtonFullWidth = true, isImageFullWidth = false, isTopPosition = false, items = [], target, title, version = 'primary', ...rest }) => {
2760
+ 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 }) => {
2679
2761
  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], {
2680
2762
  className: style('p-m pt-0', isButtonFullWidth ? '' : 'self-center'),
2681
2763
  isVertical: isButtonFullWidth,
@@ -2697,9 +2779,11 @@
2697
2779
  ? 'bg-secondary-light text-primary-main'
2698
2780
  : 'bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black'), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null;
2699
2781
 
2782
+ const getHtmlText = (html) => html.replace(/<\/?[^>]+\/?>/g, '').trim();
2783
+
2700
2784
  const RichText = JSX((props) => {
2701
2785
  const { __html = '', richVersion = '' } = props;
2702
- return (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }));
2786
+ return getHtmlText(__html) ? (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } })) : null;
2703
2787
  });
2704
2788
 
2705
2789
  const renderBenefitDescription = (description, i) => description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description }, `description-${i}`)) : null;
@@ -2729,11 +2813,11 @@
2729
2813
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2730
2814
  const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
2731
2815
 
2732
- const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
2816
+ const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground, isImageAlwaysOnRight, } = {}, children, }) => {
2733
2817
  const img = image?.src ? jsx(Img, { image: image }) : null;
2734
2818
  const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
2735
2819
  const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
2736
- return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2820
+ return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, isImageAlwaysOnRight: isImageAlwaysOnRight, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2737
2821
  });
2738
2822
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
2739
2823
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
@@ -2744,15 +2828,11 @@
2744
2828
  description: _.description,
2745
2829
  })) }) }) })));
2746
2830
 
2747
- const buttonSizeStyles = {
2831
+ const buttonSizeStyle = {
2748
2832
  default: 'w-14 h-14',
2749
2833
  stretched: 'flex-1 h-14',
2750
2834
  };
2751
2835
 
2752
- const buttonStylesWithText = (text, buttonSize) => text
2753
- ? ''
2754
- : style('py-m group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
2755
-
2756
2836
  const ICONS_MAP = [
2757
2837
  {
2758
2838
  origins: ['t.me', 'telegram.org'],
@@ -2793,18 +2873,20 @@
2793
2873
 
2794
2874
  const findIconByHref = (href) => ICONS_MAP.find(({ origins }) => origins?.some((_) => href?.includes(_))) || {};
2795
2875
 
2796
- const MediaButton = JSX(({ buttonSize = 'default', rounded = false, icon, ...rest }) => {
2797
- const { href, version, text = '' } = rest;
2876
+ //TODO: Refactor this.
2877
+ const MediaButton = JSX(({ buttonSize = 'default', icon, ...rest }) => {
2878
+ const { href } = rest;
2798
2879
  const { iconMapped, label } = findIconByHref(href);
2799
2880
  const iconCustom = getFilteredIcon(icon) ?? iconMapped;
2800
- return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', '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', buttonStylesWithText(text, buttonSize)), "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconCustom && !text ? (jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" })) : null }));
2881
+ 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" }) }));
2801
2882
  });
2802
2883
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2803
2884
 
2804
2885
  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)))) })] })));
2805
2886
 
2806
- const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2807
- 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: "S" }) : null }) }) }));
2887
+ //TODO: replace SocialMedia with renderButtonSection
2888
+ const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], listItemSize = 'S', socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2889
+ 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 }) }) }));
2808
2890
  });
2809
2891
 
2810
2892
  const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
@@ -2846,35 +2928,35 @@
2846
2928
  const renderIconBlock$1 = (icon) => (jsx("div", { className: "self-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
2847
2929
  const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
2848
2930
 
2849
- const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
2850
- const BORDER_CLASSES = 'border-gray border-solid border';
2851
- const DIVIDER_CLASSES$1 = 'border-main-divider border border-t-0 border-x-0';
2852
- const FIRST_CELL_CLASSES$1 = 'w-52';
2931
+ const gradientStyle = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
2932
+ const borderStyle = 'border-gray border-solid border';
2933
+ const dividerStyle$1 = 'border-main-divider border-b';
2934
+ const firstCellStyle$1 = 'w-52';
2853
2935
  const COLS_LENGTH_FOR_SCROLL$1 = 3;
2854
2936
  const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
2855
2937
 
2856
- const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl ${BORDER_CLASSES} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
2938
+ const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: style('w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl', borderStyle, gradientStyle), role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-16 w-16 min-w-16 min-h-16", image: icon, width: "64", height: "64" })), image?.src && jsx(Img, { image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs font-light font-medium py-s", children: link.text }) }) }))] })));
2857
2939
 
2858
2940
  const carouselContainerClassesMap = {
2859
2941
  comparison: 'flex gap-m duration-1000',
2860
- tariff: 'flex flex-grow duration-1000',
2942
+ tariff: 'flex gap-5xl flex-grow duration-1000',
2861
2943
  };
2862
2944
  const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
2863
2945
 
2864
2946
  const TableRowContainer = JSX(({ children }) => (jsx("div", { className: "self-start flex flex-col", role: "row", children: jsx("div", { className: "flex gap-xl", children: children }) })));
2865
2947
 
2866
- const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeIndex }) => (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader" }), jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$2, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header }, String(i)))) })] })));
2948
+ const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeIndex }) => (jsxs(TableRowContainer, { children: [jsx("div", { className: firstCellStyle$1, role: "columnheader" }), jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$2, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header }, String(i)))) })] })));
2867
2949
 
2868
2950
  const TableCell = JSX(({ cell, isFirstRow, isLastRow, isFillGradient }) => {
2869
- const cellWrapperClasses = `w-80 box-border flex flex-col ${BORDER_CLASSES} ${!isLastRow ? 'border-y-0' : 'border-t-0 rounded-b-md'} ${isFillGradient ? GRADIENT : ''}`;
2870
- const cellClasses = `mx-2xl h-full ${DIVIDER_CLASSES$1} ${isFillGradient && isFirstRow ? 'border-t' : ''} ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
2871
- return (jsx("div", { className: cellWrapperClasses, role: "cell", children: jsx("div", { className: cellClasses, children: cell.map((item, i) => renderCellInner$1(item, i, isFillGradient)) }) }));
2951
+ const cellWrapperStyle = style('w-80 box-border flex flex-col', borderStyle, !isLastRow ? 'border-y-0' : 'border-t-0 rounded-b-md', isFillGradient ? gradientStyle : '');
2952
+ const cellStyle = style('mx-2xl h-full', dividerStyle$1, isFillGradient && isFirstRow ? 'border-t' : '', !isLastRow ? 'border-solid' : 'border-b-0');
2953
+ return (jsx("div", { className: cellWrapperStyle, role: "cell", children: jsx("div", { className: cellStyle, children: cell.map((item, i) => renderCellInner$1(item, i, isFillGradient)) }) }));
2872
2954
  });
2873
2955
  const labelStyle = (isFillGradient = false) => `text-xl m-0 ${isFillGradient ? 'text-white' : ''}`;
2874
2956
  const descriptionStyle = (isFillGradient = false) => `text-s opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`;
2875
2957
  const renderCellInner$1 = ({ label, description }, i, isFillGradient) => (jsxs("div", { className: "first:pt-2xl pt-xl last:pb-2xl", children: [label ? jsx("h4", { className: labelStyle(isFillGradient), children: label }) : null, description ? jsx("div", { className: descriptionStyle(isFillGradient), children: description }) : null] }, String(i)));
2876
2958
 
2877
- const titleStyle = (isLastRow = false) => `text-s py-2xl ${DIVIDER_CLASSES$1} ${FIRST_CELL_CLASSES$1} ${isLastRow ? 'border-b-0' : 'border-solid'}`;
2959
+ const titleStyle = (isLastRow = false) => style('text-s py-2xl', dividerStyle$1, firstCellStyle$1, isLastRow ? 'border-b-0' : 'border-solid');
2878
2960
  const TableRow = JSX(({ row: { header, data }, activeIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? jsx("div", { className: titleStyle(isLastRow), children: header.title }) : null, data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$2, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
2879
2961
 
2880
2962
  const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn, activeIndex, controls }) => {
@@ -2913,12 +2995,43 @@
2913
2995
  ? renderShowMoreToggleButton({ isShowAllRow, onClick: handleToggle })
2914
2996
  : null] }));
2915
2997
  });
2916
- const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => (jsx("div", { className: "pr-6xl", children: jsxs("div", { className: "flex gap-m w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx(Text, { size: "text-xs", font: "font-medium", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
2998
+ const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => (jsx("div", { className: "pr-6xl", children: jsxs("div", { className: "flex gap-m w-full", children: [jsx("div", { className: firstCellStyle$1 }), jsx("button", { onClick: onClick, className: "py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx(Text, { size: "text-xs", font: "font-medium", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
2917
2999
 
2918
3000
  const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-6xl", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
2919
3001
  const renderBlocks = (info) => (jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index })) }));
2920
3002
  const renderBlocksColumn = ({ column, index }) => column ? (jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (jsx("div", { className: "mt-xs opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, button?.href ? jsx(Button, { className: "mt-xl", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
2921
3003
 
3004
+ const TextWithIcon = JSX(({ textNode, iconNode, tag, onClick, justifyContent = 'between', className, ...rest }) => {
3005
+ const Tag = tag;
3006
+ return (jsxs(Tag, { tag: tag, className: style('flex items-center w-full gap-1', justifyContent === 'between' ? 'justify-between' : 'justify-center', className), onClick: onClick, ...rest, children: [textNode ? jsx("div", { children: textNode }) : null, iconNode ? jsx("div", { children: iconNode }) : null] }));
3007
+ });
3008
+
3009
+ const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => (jsx(TextWithIcon, { tag: "button", onClick: onClick, disabled: disabled, "data-theme": dataTheme, justifyContent: "center", className: style('py-4 border border-transparent outline-none focus:border-primary-text', disabled
3010
+ ? 'bg-main-divider text-main-disabled hover:bg-main-divider'
3011
+ : 'bg-primary-main text-white hover:bg-primary-hove', className), textNode: jsx("span", { className: "text-h4 pr-s", children: label }), iconNode: icon ? (jsx(Img, { image: {
3012
+ icon,
3013
+ iconVersion: 'white',
3014
+ }, className: "my-auto", width: "20", height: "20" })) : null })));
3015
+ const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
3016
+ const labels = ['Развернуть', 'Скрыть'];
3017
+ const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
3018
+ return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
3019
+ };
3020
+
3021
+ const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
3022
+ const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
3023
+ const BaseFiltrationInner = JSX(({ label = '', blocksToRender = [], topItemsCount = 0, block, notFound, ...rest }) => {
3024
+ const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
3025
+ ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
3026
+ : [blocksToRender, []];
3027
+ return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
3028
+ return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
3029
+ }, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
3030
+ });
3031
+ function renderNotFound({ title, description }) {
3032
+ return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
3033
+ }
3034
+
2922
3035
  const isEmpty = (v) => v === null ||
2923
3036
  v === undefined ||
2924
3037
  v === '' ||
@@ -2932,14 +3045,17 @@
2932
3045
  const isNumberFieldMatch = (key, pattern) => (target) => isEmpty(pattern[key]) ||
2933
3046
  isEmpty(target[key]) ||
2934
3047
  naturalNumber(pattern[key]) <= naturalNumber(target[key]);
3048
+ const isMultipleNumberFieldMatch = (key, pattern) => (target) => isEmpty(pattern[key]) || isEmpty(target[key]) || target[key]?.includes(pattern[key]);
2935
3049
  const isValueInRange = (key, pattern) => (target) => isEmpty(pattern[key]) ||
2936
3050
  isEmpty(target[key]) ||
2937
3051
  (naturalNumber(pattern[key]?.min) >= naturalNumber(target[key]?.min) &&
2938
3052
  naturalNumber(pattern[key]?.min) <= naturalNumber(target[key]?.max));
2939
- const checkShouldRenderBlock = (pattern, target) => Object.entries(pattern)
3053
+ const shouldRenderBlock = (pattern, target) => Object.entries(pattern)
2940
3054
  .map(([key, subPattern]) => {
2941
3055
  if (typeof subPattern === 'number') {
2942
- return isNumberFieldMatch(key, pattern);
3056
+ return Array.isArray(target[key])
3057
+ ? isMultipleNumberFieldMatch(key, pattern)
3058
+ : isNumberFieldMatch(key, pattern);
2943
3059
  }
2944
3060
  if (typeof subPattern === 'object' && 'min' in subPattern && 'max' in subPattern) {
2945
3061
  return isValueInRange(key, pattern);
@@ -2951,34 +3067,7 @@
2951
3067
  .every((predicate) => predicate(target));
2952
3068
  const naturalNumber = (n) => Number(n || 0);
2953
3069
 
2954
- const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
2955
- return (jsxs("button", { className: style('flex justify-center w-full py-4 border border-transparent outline-none focus:border-primary-text', disabled
2956
- ? 'bg-main-divider text-main-disabled hover:bg-main-divider'
2957
- : 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [jsx("span", { className: "text-h4 pr-s", children: label }), icon ? (jsx(Img, { image: {
2958
- icon,
2959
- iconVersion: 'white',
2960
- }, className: "flex-shrink-0 my-auto", width: "20", height: "20" })) : null] }));
2961
- });
2962
- const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
2963
- const labels = ['Развернуть', 'Скрыть'];
2964
- const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
2965
- return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2966
- };
2967
-
2968
- const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2969
- const resultsGridStyle = 'space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs border-box';
2970
- const BaseFiltrationInner = JSX(({ label = '', filtrationState = {}, topItemsCount = 0, block, notFound, ...rest }) => {
2971
- const blocksToRender = block?.blocks?.filter((b) => checkShouldRenderBlock(filtrationState, b.content || {})) || [];
2972
- const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
2973
- ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
2974
- : [blocksToRender, []];
2975
- return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2976
- return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2977
- }, renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(DefaultFoldButton, { className: style(topItemsCount < 1 ? 'hidden' : ''), disabled: !hiddenBlocks?.length, label: label, icon: ICONS[Number(isUnfolded)], dataTheme: rest.options?.page?.colorPalette, onClick: onToggle })) })] })] }));
2978
- });
2979
- function renderNotFound({ title, description }) {
2980
- return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
2981
- }
3070
+ const getBlocksToRender = (blocks, filtrationState) => (normalize = identity) => blocks && blocks.filter((b) => shouldRenderBlock(filtrationState, normalize(b.content || {})));
2982
3071
 
2983
3072
  const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
2984
3073
  const handleChange = (newValue) => {
@@ -3012,8 +3101,35 @@
3012
3101
  return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple: true, ...field(key) })] }, key));
3013
3102
  };
3014
3103
 
3015
- const DEFAULT_MIN_MONTHS = 3;
3016
- const DEFAULT_MAX_MONTHS = 60;
3104
+ const getPeriod = (source, content) => source[content?.sourceBook]?.rateRows
3105
+ .map((el) => el.minMonths)
3106
+ .filter((minMonths) => minMonths !== undefined);
3107
+
3108
+ async function fetchMultitudeJSON(...urls) {
3109
+ const fetchPromises = urls.map((url) => fetchJSON(url));
3110
+ return await Promise.all(fetchPromises);
3111
+ }
3112
+
3113
+ const unique = (list) => [...new Set(list)];
3114
+
3115
+ const getChildSourceBook = (blocks) => blocks?.filter(hasSourceBook).map(({ content: { sourceBook } }) => sourceBook);
3116
+ const hasSourceBook = (block) => Boolean(block && block.content && typeof block.content.sourceBook === 'string');
3117
+
3118
+ function useDepositsPeriods(blocks) {
3119
+ const { dirs = [], source = [] } = useMemo(() => {
3120
+ const sourceBooks = getChildSourceBook(blocks);
3121
+ return { dirs: sourceBooks?.map((url) => `/wcms-resources/${url}.json`), source: sourceBooks };
3122
+ }, [blocks]);
3123
+ const { data = [] } = useAsyncData(dirs, fetchMultitudeJSON);
3124
+ return {
3125
+ source: Object.fromEntries(zip(source, data).filter(([, sourceData]) => Boolean(sourceData))),
3126
+ months: unique(data
3127
+ .flatMap((item) => item?.rateRows || [])
3128
+ .filter((row) => typeof row.minMonths === 'number' && row.minMonths === row.maxMonths)
3129
+ .map((row) => row.minMonths)).sort((a, b) => a - b) || [],
3130
+ };
3131
+ }
3132
+
3017
3133
  const DEFAULT_MIN_SUM = 500;
3018
3134
  const DEFAULT_MAX_SUM = 1000000000;
3019
3135
  const initialFiltrationState$1 = {
@@ -3021,36 +3137,38 @@
3021
3137
  min: 10000,
3022
3138
  max: DEFAULT_MAX_SUM,
3023
3139
  },
3024
- period: {
3025
- min: 3,
3026
- max: 36,
3027
- },
3140
+ period: 3,
3028
3141
  };
3029
3142
  const DepositFiltration = JSX(({ className, filtrationSchema = {}, resetButton, sumInput, periodInput, ...rest }) => {
3143
+ const { source, months } = useDepositsPeriods(rest.block?.blocks);
3030
3144
  const [filtrationState, { field, reset }] = useForm(initialFiltrationState$1);
3031
- const maxPeriodValue = periodInput?.max || DEFAULT_MAX_MONTHS;
3145
+ const blocksToRender = getBlocksToRender(rest.block?.blocks, filtrationState)((content) => ({ ...content, period: getPeriod(source, content || {}) || [] }));
3032
3146
  const Inputs = (jsxs("div", { children: [jsx(CurrencyInput, { label: sumInput?.title, min: DEFAULT_MIN_SUM, max: DEFAULT_MAX_SUM, ...field('sum', {
3033
3147
  parse: (min) => ({ min: Number(min), max: DEFAULT_MAX_SUM }),
3034
3148
  format: ({ min }) => String(min),
3035
- }) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 5 лет'], min: periodInput?.min || DEFAULT_MIN_MONTHS, max: maxPeriodValue, ...field('period', {
3036
- parse: (min) => ({ min, max: maxPeriodValue }),
3037
- format: ({ min }) => min,
3038
- }) })] }));
3039
- return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
3149
+ }) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 5 лет'], list: months, ...field('period') })] }));
3150
+ return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
3040
3151
  });
3152
+ const sourceBookSchema = {
3153
+ type: 'string',
3154
+ title: 'Адрес справочника',
3155
+ };
3041
3156
  DepositFiltration.childrenTypes = ['ProductTile'];
3042
- DepositFiltration.childSchema = (content) => content?.filtrationSchema || {};
3157
+ DepositFiltration.childSchema = (content) => ({
3158
+ ...(content?.filtrationSchema || {}),
3159
+ sourceBook: sourceBookSchema,
3160
+ });
3043
3161
 
3044
3162
  const renderErrorContent = (error) => {
3045
3163
  if (error?.contentType === 'Image' && error?.image) {
3046
3164
  return jsx(Img, { image: error.image });
3047
3165
  }
3048
3166
  if (error?.contentType === 'Code' && error.code) {
3049
- return jsx("div", { className: "font-mohave text-title-extra gradient-color-text", children: error.code });
3167
+ return (jsx("div", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: error.code }));
3050
3168
  }
3051
3169
  return null;
3052
3170
  };
3053
- const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-2xl justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true }), button?.text ? jsx(Button, { version: button?.version, text: button?.text, ...button }) : null] })));
3171
+ const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true, className: "mb-2xl last:mb-0" }), button?.text ? jsx(Button, { version: button?.version, text: button?.text, ...button }) : null] })));
3054
3172
 
3055
3173
  var Currencies;
3056
3174
  (function (Currencies) {
@@ -3296,7 +3414,7 @@
3296
3414
  transparent: 'text-white',
3297
3415
  };
3298
3416
  const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$1(bgColor, logo?.image, ICON_SIZE), showTitle
3299
- ? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title }) }))
3417
+ ? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title || 'Россельхозбанк' }) }))
3300
3418
  : null] })));
3301
3419
 
3302
3420
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
@@ -3308,18 +3426,13 @@
3308
3426
  return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 w-full px-10 text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
3309
3427
  });
3310
3428
 
3311
- const useDebouncedEffect = (effect, deps, delay = 300) => useEffect(() => {
3312
- const timerId = setTimeout(effect, delay);
3313
- return () => {
3314
- clearTimeout(timerId);
3315
- };
3316
- }, deps);
3317
-
3318
- const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
3319
- const desc = (cmp) => (a, b) => -cmp(a, b);
3320
-
3321
- function zip(firstCol, ...restCols) {
3322
- return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
3429
+ function useDebouncedEffect(effect, deps, delay = 300) {
3430
+ useEffect(() => {
3431
+ const timerId = globalThis.setTimeout(effect, delay);
3432
+ return () => {
3433
+ globalThis.clearTimeout(timerId);
3434
+ };
3435
+ }, deps);
3323
3436
  }
3324
3437
 
3325
3438
  const joinMaps = (aggregate, emptyVal) => (acc, map) => {
@@ -3503,11 +3616,11 @@
3503
3616
 
3504
3617
  const LEFT_COL_WIDTH = 'w-52';
3505
3618
  const Footer = JSX(({ className, ...rest }) => {
3506
- const { topItems } = useSitemap(rest.options?.page?.fallback);
3507
- const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = useSWRResource(projectSettings.FOOTER || 'footer', {
3619
+ const { topItems, logo } = useSitemap(rest.options?.page?.fallback);
3620
+ const { documents, relatedEnterprises, contacts, socialMedia, mobileApps } = useSWRResource(projectSettings.FOOTER || 'footer', {
3508
3621
  fallback: rest.options?.page?.fallback,
3509
3622
  });
3510
- return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: `${LEFT_COL_WIDTH} flex flex-col shrink-0 overflow-hidden space-y-xl`, children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3623
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: style(LEFT_COL_WIDTH, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3511
3624
  });
3512
3625
 
3513
3626
  const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-m', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), calendar ? renderCalendar(calendar) : null] })));
@@ -3608,6 +3721,11 @@
3608
3721
  return result;
3609
3722
  };
3610
3723
 
3724
+ const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
3725
+ 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
3726
+ 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" })] }));
3727
+ });
3728
+
3611
3729
  const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
3612
3730
  const ForeignOffice = JSX(({ icon, ...rest }) => {
3613
3731
  const link = useLink();
@@ -3621,11 +3739,6 @@
3621
3739
 
3622
3740
  const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
3623
3741
 
3624
- const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
3625
- 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
3626
- 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" })] }));
3627
- });
3628
-
3629
3742
  const SEARCH_TERM_MIN_LENGTH = 3;
3630
3743
  const LocationDialog = JSX(() => {
3631
3744
  const { defaultLocation, foreignOffices } = useSitemap();
@@ -3991,17 +4104,17 @@
3991
4104
  return (jsx("div", { role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
3992
4105
  };
3993
4106
 
3994
- const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
4107
+ const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "font-light", children: description }) })) : null;
3995
4108
 
3996
- const renderList$1 = (items) => {
3997
- return items?.length ? (jsx(List, { items: items, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
4109
+ const renderList$1 = (items, listItemSize) => {
4110
+ return items?.length ? (jsx(List, { items: items, listItemSize: listItemSize, className: "text-l font-light" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
3998
4111
  };
3999
4112
 
4000
4113
  const buttonsConditionStyle = (buttons) => renderButtonsSection(buttons, { isVertical: false });
4001
4114
 
4002
- const MobileAppTile = JSX(({ className, padding, alignTitle = 'left', buttons = [], description, headingType = 'h4', image, items, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
4115
+ const MobileAppTile = JSX(({ className, padding, align = 'text-left', buttons = [], description, headingType = 'h4', image, items, listItemSize, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
4003
4116
  const containerStyle = version === 'secondary' ? 'p-m min-w-32' : 'min-w-24';
4004
- return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', AlignText[alignTitle]) })) : null, rightImage: image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null, buttons: buttonsConditionStyle(buttons), children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList$1(items), image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
4117
+ return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', align) })) : null, rightImage: image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null, buttons: buttonsConditionStyle(buttons), children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList$1(items, listItemSize), image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
4005
4118
  });
4006
4119
 
4007
4120
  const badgeBgStyleMap = {
@@ -4016,7 +4129,7 @@
4016
4129
  return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyleMap[version]), children: jsx(Text, { size: "text-xs", color: badgeTextColorStyleMap[version], children: count }) }));
4017
4130
  });
4018
4131
 
4019
- const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) => checkShouldRenderBlock(filter, content)).length;
4132
+ const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) => shouldRenderBlock(filter, content)).length;
4020
4133
 
4021
4134
  const scalarCmp = (a, b) => a === b;
4022
4135
  const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
@@ -4105,6 +4218,7 @@
4105
4218
  };
4106
4219
  const MortgageFiltration = JSX(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
4107
4220
  const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
4221
+ const blocksToRender = getBlocksToRender(rest.block?.blocks, filtrationState)();
4108
4222
  const handleFiltrationStateChange = useCallback((_ = initialFiltrationState) => replaceFiltrationState(_), []);
4109
4223
  const tabsControlProps = useHotFilters({
4110
4224
  hotFilters,
@@ -4112,7 +4226,7 @@
4112
4226
  blocks: rest.block?.blocks,
4113
4227
  onFiltrationStateChange: handleFiltrationStateChange,
4114
4228
  });
4115
- return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
4229
+ return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
4116
4230
  });
4117
4231
  MortgageFiltration.childrenTypes = ['ProductTile'];
4118
4232
  MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
@@ -4284,8 +4398,7 @@
4284
4398
  const map = useRef(null);
4285
4399
  const yandexMaps = useYandexMaps();
4286
4400
  const [isFullScreen, setIsFullScreen] = useState();
4287
- const [pointsToRender, setPointsToRender] = useState(normalizePoints(mockPoints));
4288
- const pointsCenter = getCenterPoint(points);
4401
+ const pointsCenter = points ? getCenterPoint(points) : [55.753995, 37.614069];
4289
4402
  useEffect(() => {
4290
4403
  if (!map?.current) {
4291
4404
  yandexMaps?.ready(() => {
@@ -4295,16 +4408,16 @@
4295
4408
  controls: [],
4296
4409
  suppressMapOpenBlock: true,
4297
4410
  });
4298
- renderClusterer(yandexMaps, map.current, pointsToRender);
4411
+ renderClusterer(yandexMaps, map.current, points);
4299
4412
  });
4300
4413
  }
4301
- }, [yandexMaps, map, pointsToRender]);
4414
+ }, [yandexMaps, map, points]);
4302
4415
  useEffect(() => {
4303
- if (map.current && pointsToRender && yandexMaps) {
4304
- const newPoints = pointsToRender.length < 1 ? normalizePoints(mockPoints) : pointsToRender;
4416
+ if (map.current && points?.length && yandexMaps) {
4417
+ const newPoints = points.length < 1 ? normalizePoints(mockPoints) : points;
4305
4418
  renderClusterer(yandexMaps, map.current, newPoints);
4306
4419
  }
4307
- }, [map, pointsToRender, yandexMaps]);
4420
+ }, [map, points, yandexMaps]);
4308
4421
  if (!yandexMaps) {
4309
4422
  return null;
4310
4423
  }
@@ -4492,7 +4605,7 @@
4492
4605
  const iconVersion = version === 'primary' ? 'white' : 'black';
4493
4606
  const className = 'w-12 h-12 min-h-12 min-w-12 flex items-center justify-center';
4494
4607
  const text = 'Вернуться назад';
4495
- return (jsxs("div", { className: "flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
4608
+ return (jsxs("div", { className: "hidden sm:flex items-center gap-s", children: [jsx("div", { className: getRegularButtonClasses({ className, version, rounded: true }), onClick: handleClick, children: jsx(Img, { className: "w-4 h-4", image: {
4496
4609
  icon: 'ArrowLeftIcon',
4497
4610
  iconVersion: iconVersion,
4498
4611
  } }) }), jsx(Button, { version: "link", text: text, ariaLabel: text, onClick: handleClick })] }));
@@ -4540,10 +4653,19 @@
4540
4653
  return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
4541
4654
  }
4542
4655
 
4543
- const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h4", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text ? renderButtonsSection([button]) : null] })] })));
4656
+ const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [renderIconBlock(icon), title ? jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock({
4657
+ label: 'Адрес',
4658
+ data: address,
4659
+ iconName: 'GeolocationIcon',
4660
+ }), renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' }), renderBlock({
4661
+ label: 'E-mail',
4662
+ data: email,
4663
+ iconName: 'MailIcon',
4664
+ dataColor: 'text-primary-main',
4665
+ }), button?.text ? renderButtonsSection([button]) : null] })] })));
4544
4666
  const renderIconBlock = (icon) => (jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
4545
- const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider", children: jsx(RichText, { __html: __html }) }));
4546
- const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex gap-m", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col", children: [jsx(Text, { size: "text-m", font: "font-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
4667
+ const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-lg", children: jsx(RichText, { __html: __html }) }));
4668
+ const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (jsxs("div", { className: "flex gap-s", children: [jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col gap-2xs", children: [jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
4547
4669
 
4548
4670
  const RichTextBlock = JSX((props) => {
4549
4671
  const { __html, richVersion, ...rest } = props;
@@ -4554,13 +4676,15 @@
4554
4676
 
4555
4677
  const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
4556
4678
 
4557
- const rollupIconVersion = 'color';
4558
-
4559
4679
  const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
4560
4680
 
4561
4681
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4562
4682
  const renderRoundedIcon = (_icon, _iconBgVersion) => null;
4563
4683
 
4684
+ const rollupIconVersion = 'color';
4685
+
4686
+ const PrimaryFoldButton = JSX(({ label, labelIconBgVersion, icon, onToggle, labelIcon }) => (jsx(TextWithIcon, { tag: "button", className: style('border-none bg-transparent items-center group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, textNode: jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), iconNode: icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null })));
4687
+
4564
4688
  const RollupItem = JSX(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), defaultPadding: "p-0", tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren({
4565
4689
  ...rest,
4566
4690
  extraProps: { className: 'w-full', padding: 'p-0' },
@@ -4577,16 +4701,8 @@
4577
4701
  };
4578
4702
  const renderFoldButton = ({ version, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
4579
4703
  const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
4580
- return version === 'primary' ? (renderPrimaryFoldButton({
4581
- label,
4582
- labelIcon,
4583
- labelIconBgVersion,
4584
- icon: getIconName(isUnfolded),
4585
- onToggle,
4586
- })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
4587
- };
4588
- const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
4589
- return (jsxs("button", { className: style('border-none bg-transparent flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center text-start group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
4704
+ const icon = getIconName(isUnfolded);
4705
+ return version === 'primary' ? (jsx(PrimaryFoldButton, { label: label, labelIcon: labelIcon, labelIconBgVersion: labelIconBgVersion, icon: icon, onToggle: onToggle })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
4590
4706
  };
4591
4707
 
4592
4708
  const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
@@ -4597,9 +4713,7 @@
4597
4713
  return (jsx(Select, { options: dataFormat, label: label, placeholder: placeholder || selected, onChange: (_) => setSelected(_.key), value: selectedObj }));
4598
4714
  });
4599
4715
 
4600
- const RegionsAndBranches = JSX(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => (jsxs("div", { className: "flex flex-col sm:flex-row gap-m order-1", children: [jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] })));
4601
-
4602
- const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange(_.target.value) }), text ? jsx("span", { className: "text-primary-text cursor-pointer", children: text }) : null] }) })));
4716
+ const RegionsAndBranches = JSX(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => (jsxs("div", { className: "flex flex-col @xl:flex-row gap-m order-1", children: [jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] })));
4603
4717
 
4604
4718
  const RadioButtons = JSX(({ className = '' }) => {
4605
4719
  const [selectedOption, setSelectedOption] = useState('option2');
@@ -4613,11 +4727,11 @@
4613
4727
  const RentalPeriod = JSX(({ days, setDays }) => (jsxs("div", { className: "order-1", children: [jsx(Text, { size: "text-m", font: "font-light", children: "\u0421\u0440\u043E\u043A \u0430\u0440\u0435\u043D\u0434\u044B" }), jsx(InputRange, { min: MIN, max: MAX, value: days, items: ITEMS, onChange: setDays })] })));
4614
4728
 
4615
4729
  const SafeBoxCases = JSX(({ caseVolumes = [], selectedCaseVolume, onSelectedCaseVolume, safeBoxCases = [], selectedBoxSize, onSelectedBoxSize, }) => {
4616
- return (jsxs("div", { className: "flex flex-col sm:flex-row gap-m order-1", children: [jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] }));
4730
+ return (jsxs("div", { className: "flex flex-col @xl:flex-row gap-m order-1", children: [jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), jsx("div", { className: "flex-1 min-w-0", children: jsx(WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] }));
4617
4731
  });
4618
4732
 
4619
4733
  const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onClick, }) => {
4620
- return (jsxs("div", { className: "contents sm:block flex-1 space-y-xl", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("div", { className: "order-4", children: jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }) }), jsxs("div", { className: "contents sm:flex justify-between items-center gap-m", children: [jsx(RadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onClick, className: "order-6" })] })] }));
4734
+ return (jsxs("div", { className: "contents @xl:block flex-1 space-y-xl", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("div", { className: "order-4", children: jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }) }), jsxs("div", { className: "contents @md:flex justify-between items-center gap-m", children: [jsx(RadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onClick, className: "order-6" })] })] }));
4621
4735
  });
4622
4736
  const onSelectedBranch = (onChange) => (value) => {
4623
4737
  onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
@@ -4629,10 +4743,10 @@
4629
4743
  const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
4630
4744
  const price = calculatePrice(days, tariffs);
4631
4745
  const imageDescription = 'На рисунке изображена пачка листов\nформата А4';
4632
- return (jsxs("div", { className: "contents sm:flex flex-col justify-between order-2", children: [jsxs("div", { className: "flex flex-col sm:flex-row gap-x-6xl gap-y-2xl order-5 sm:order-none py-2xl sm:py-0 border-t border-main-divider sm:border-none", children: [renderTotal('Аренда за', days), renderTotal('Цена', price + ' ₽')] }), jsx("span", { className: "sm:hidden order-3 mb-xs text-s font-light text-secondary-text", children: imageDescription }), jsxs("div", { className: "flex flex-col items-center gap-s order-3 sm:order-none mb-xl sm:mb-0 bg-primary-main py-s sm:p-3xl text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, className: "sm:h-60" }), jsx("span", { className: "hidden sm:inline text-s font-light text-white opacity-80 whitespace-pre-line", children: imageDescription })] })] }));
4746
+ return (jsxs("div", { className: "contents @xl:flex flex-col justify-between gap-xl order-2", children: [jsxs("div", { className: "flex flex-col @xl:flex-row gap-x-6xl gap-y-2xl order-5 @xl:order-none py-2xl @xl:py-0 border-t border-main-divider @xl:border-none", children: [renderTotal('Аренда за', days), renderTotal('Цена', price + ' ₽')] }), jsx("span", { className: "@xl:hidden order-3 mb-xs text-s font-light text-secondary-text", children: imageDescription }), jsxs("div", { className: "flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, className: "@xl:h-60" }), jsx("span", { className: "hidden @xl:inline text-s font-light text-white opacity-80 whitespace-pre-line", children: imageDescription })] })] }));
4633
4747
  });
4634
4748
  const renderTotal = (label, total) => {
4635
- return (jsxs("div", { className: "flex justify-between items-center gap-y-xs sm:flex-col sm:items-start", children: [jsx("div", { className: "text-l font-light text-secondary-text", children: label }), jsx("span", { className: "text-l sm:text-h3 text-primary-text", children: total })] }));
4749
+ return (jsxs("div", { className: "flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start", children: [jsx("div", { className: "text-l font-light text-secondary-text", children: label }), jsx("span", { className: "text-l @xl:text-h3 text-primary-text", children: total })] }));
4636
4750
  };
4637
4751
  const calculatePrice = (days, tariffs) => {
4638
4752
  const tariffType = getTariffType(days);
@@ -4679,7 +4793,7 @@
4679
4793
  const caseVolumes = getCaseVolumes(branch?.safeBoxCaseVolumes);
4680
4794
  const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes, data.selectedCaseVolume)?.safeBoxCases;
4681
4795
  const tariffs = getTariffs(safeBoxCases, data.selectedBoxSize);
4682
- return (jsxs("div", { className: "flex flex-col sm:flex-row gap-4xl align-top", children: [jsx(SafeDepositRentalFields, { ...data, regions: regions, onClick: onClick, branches: branches, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: onChange }), jsx(SafeDepositRentalTotal, { days: data.days, tariffs: tariffs })] }));
4796
+ return (jsxs("div", { className: "flex flex-col @4xl:flex-row gap-4xl align-top", children: [jsx(SafeDepositRentalFields, { ...data, regions: regions, onClick: onClick, branches: branches, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: onChange }), jsx(SafeDepositRentalTotal, { days: data.days, tariffs: tariffs })] }));
4683
4797
  });
4684
4798
  const getCaseVolumes = (safeBoxCaseVolumes) => safeBoxCaseVolumes?.length ? safeBoxCaseVolumes?.filter((_) => _?.safeBoxCases?.length) : [];
4685
4799
  const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
@@ -4846,28 +4960,28 @@
4846
4960
  };
4847
4961
  const normalizeTab = (_) => (_?.type === 'group' ? { text: _.title } : _);
4848
4962
 
4849
- const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
4850
- const FIRST_CELL_CLASSES = 'w-80 flex-shrink-0';
4963
+ const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
4964
+ const firstCellStyle = 'w-80 flex-shrink-0';
4851
4965
  const COLS_LENGTH_FOR_SCROLL = 2;
4852
4966
  const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
4853
4967
 
4854
- const TableInnerButton = JSX(({ isOpen, onClick }) => {
4855
- return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-lg", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-s", iconVersion: "white", width: "20", height: "20" })] }));
4856
- });
4968
+ const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(Button, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
4857
4969
 
4858
- const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons);
4859
- const renderLabelDescriptionCellData = ({ label, description }) => (jsxs("div", { className: "space-y-2xs", children: [label ? jsx("div", { className: "text-h6 m-0", children: label }) : null, description ? (jsx("div", { className: "text-secondary-text text-l font-light", children: description })) : null] }));
4970
+ const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
4971
+ buttonClassName: 'basis-0',
4972
+ });
4973
+ const renderLabelDescriptionCellData = ({ label, description }) => (jsxs("div", { className: "space-y-2xs", children: [label ? jsx("div", { children: label }) : null, description ? (jsx("div", { children: jsx(Text, { size: "text-s", color: "text-secondary-text", children: description }) })) : null] }));
4860
4974
  const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
4861
4975
  const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
4862
- const renderTableCellData = JSX(({ isVisible, displayTable, dataUrl, pdfUrl, isOpen }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
4976
+ const renderInnerTableCellData = ({ isVisible, displayTable, dataUrl, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
4863
4977
  displayTable({ dataUrl, pdfUrl });
4864
- } })) : null);
4978
+ } })) : null;
4865
4979
  const EmbeddableCellData = {
4866
4980
  Buttons: renderButtonsCellData,
4867
4981
  Img: renderImgCellData,
4868
4982
  List: renderListCellData,
4869
4983
  LabelDescription: renderLabelDescriptionCellData,
4870
- Table: renderTableCellData,
4984
+ Table: renderInnerTableCellData,
4871
4985
  };
4872
4986
 
4873
4987
  const renderCellInner = ({ rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => (cell, i) => {
@@ -4882,16 +4996,16 @@
4882
4996
  setOpenTableInnerIdx(cellIdx);
4883
4997
  setTableInner(props);
4884
4998
  };
4885
- return (jsxs("div", { className: cell?.tableCellType === 'Table' ? 'ml-5xl' : `first:pt-lg last:pb-lg pl-5xl`, children: [i > 0 ? jsx("div", { className: "h-5" }) : null, renderCell({
4886
- cell,
4887
- cellProps: {
4888
- rowIdx,
4889
- cellIdx,
4890
- fieldIdx: i,
4891
- displayTable,
4892
- isVisible,
4893
- },
4894
- })] }, String(i)));
4999
+ return (jsx("div", { children: renderCell({
5000
+ cell,
5001
+ cellProps: {
5002
+ rowIdx,
5003
+ cellIdx,
5004
+ fieldIdx: i,
5005
+ displayTable,
5006
+ isVisible,
5007
+ },
5008
+ }) }, String(i)));
4895
5009
  };
4896
5010
  const renderCell = ({ cell, cellProps }) => {
4897
5011
  if (!cell) {
@@ -4906,7 +5020,7 @@
4906
5020
  };
4907
5021
 
4908
5022
  const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
4909
- return (jsx("div", { className: "w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0", role: "cell", children: cells?.length
5023
+ return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
4910
5024
  ? cells.map(renderCellInner({
4911
5025
  rowIdx,
4912
5026
  cellIdx,
@@ -4919,6 +5033,20 @@
4919
5033
  });
4920
5034
 
4921
5035
  const COLUMN_WIDTH = 140;
5036
+ const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
5037
+
5038
+ const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
5039
+ if (!rowData?.length) {
5040
+ return null;
5041
+ }
5042
+ const [headerColumn, ...columns] = rowData;
5043
+ const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
5044
+ return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "text-xl font-light min-w-56 py-lg", children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
5045
+ transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
5046
+ }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl font-light", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
5047
+ };
5048
+ const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 text-h6 mx-lg", children: data }, String(i)))) })) : null;
5049
+
4922
5050
  const InnerTableBodyItem = JSX(({ rows }) => {
4923
5051
  const rowsLength = rows?.[0]?.length ?? 0;
4924
5052
  const CARD_VIEW_COUNT = 5;
@@ -4926,38 +5054,23 @@
4926
5054
  itemCount: rowsLength,
4927
5055
  visibleItemCount: CARD_VIEW_COUNT,
4928
5056
  });
4929
- return (jsxs("div", { children: [rows?.map(renderRow(activeIndex)), renderArrows({
5057
+ return (jsxs("div", { children: [rows?.map(renderInnerTableRow(activeIndex)), renderArrows({
4930
5058
  ...controls,
4931
5059
  btnClass: ['left-3 top-20', 'right-3 top-20'],
4932
5060
  className: '',
4933
5061
  })] }));
4934
5062
  });
4935
- const renderRow = (activeColumnIndex) => (rowData, rowIdx) => {
4936
- if (!rowData?.length) {
4937
- return null;
4938
- }
4939
- const [headerColumn, ...columns] = rowData;
4940
- const transform = [...Array(activeColumnIndex).keys()].reduce((res, i) => (columns?.[i]?.cols?.length ?? 1) * COLUMN_WIDTH + res, 0);
4941
- const columnsClassName = [
4942
- 'flex duration-1000 text-center',
4943
- rowIdx !== 0 ? 'font-normal' : 'font-light',
4944
- ].join(' ');
4945
- return (jsxs("div", { className: "flex border-main-divider border border-t-0 border-x-0 border-solid", children: [headerColumn?.data ? (jsx("div", { className: `text-xl font-light w-52 py-lg `, children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsClassName, style: {
4946
- transform: `translateX(-${transform}px)`,
4947
- }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl font-light", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
4948
- };
4949
- const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: `w-20 text-h6 mx-lg`, children: data }, String(i)))) })) : null;
4950
5063
 
4951
5064
  const InnerTableBody = JSX(({ activeTabIndex, items }) => {
4952
- const [hiddenTables, setHiddenTables] = useState({});
4953
- const toggleTables = useCallback((key) => setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] })), []);
4954
5065
  return (jsx("div", { children: items.map((_, tableIdx) => {
4955
5066
  const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
4956
- return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-m bg-gray text-center justify-center cursor-pointer relative", onClick: () => toggleTables(key), children: [jsx(Text, { size: "text-xl", font: "font-light", children: _.title }), jsx(Img, { image: { icon: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon' }, className: "absolute right-6", width: "24", height: "24" })] }), jsx("div", { className: `w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : ''}`, children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
5067
+ return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex p-m bg-white @4xl:bg-gray text-center justify-center relative", children: jsx(Text, { size: "text-xl", font: "font-light", children: _.title }) }), jsx("div", { className: "w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
4957
5068
  }) }));
4958
5069
  });
4959
5070
 
4960
- const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full px-s", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl font-light px-m py-s cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { href: linkToPDF, version: "secondary", target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
5071
+ const linkButtonVersion = 'secondary';
5072
+
5073
+ const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between items-center w-full py-lg", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl font-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
4961
5074
 
4962
5075
  function useTariffsInnerTableData(directoryName) {
4963
5076
  const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
@@ -4978,10 +5091,10 @@
4978
5091
  const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
4979
5092
  const items = tableData?.[activeTabIndex]?.items ?? [];
4980
5093
  const currencies = tableData?.map((item) => item.currency ?? '');
4981
- return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg text-h6 text-center", children: [jsx("p", { children: EMPTY_DATA }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
5094
+ return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { className: "mt-xl", onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg space-y-m text-h6 text-center", children: [jsx("p", { children: EMPTY_DATA }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
4982
5095
  });
4983
5096
 
4984
- const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: "flex", children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
5097
+ const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: style(dividerStyle, 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
4985
5098
 
4986
5099
  const TariffsTableRow = JSX(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
4987
5100
  const [tableInner, setTableInner] = useState(undefined);
@@ -4989,9 +5102,20 @@
4989
5102
  const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
4990
5103
  const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
4991
5104
  const onHideContentClick = () => setTableInner(undefined);
4992
- return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-lg ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "mr-m max-w-6", image: header.icon, width: "24", height: "24" })) : null, header?.title ? jsx("div", { className: "text-m font-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
5105
+ return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6", image: header.icon, width: "24", height: "24" })) : null, header?.title ? jsx("div", { className: "text-m font-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
5106
+ });
5107
+
5108
+ const TariffsTableWrapper = JSX(({ children, controls }) => {
5109
+ const { isScrollAvailable } = controls;
5110
+ return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative space-y-xs", children: [children, renderArrows({
5111
+ ...controls,
5112
+ btnClass: ['top-28', 'top-11'],
5113
+ className: 'right-7',
5114
+ })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
4993
5115
  });
4994
5116
 
5117
+ const headlineAlign = 'text-center';
5118
+
4995
5119
  const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
4996
5120
  const colData = columns?.map(({ data }) => data) || [];
4997
5121
  const rowData = rowHeaders?.map((header, i) => ({
@@ -5005,15 +5129,7 @@
5005
5129
  });
5006
5130
  const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
5007
5131
  const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
5008
- return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true }), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(Wrapper, { controls: controls, children: rows }))] }));
5009
- });
5010
- const Wrapper = JSX(({ children, controls }) => {
5011
- const { isScrollAvailable } = controls;
5012
- return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative", children: [children, renderArrows({
5013
- ...controls,
5014
- btnClass: ['top-28', 'top-11'],
5015
- className: 'right-7',
5016
- })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
5132
+ return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-0 @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: headlineAlign }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
5017
5133
  });
5018
5134
 
5019
5135
  const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
@@ -5181,13 +5297,13 @@
5181
5297
  });
5182
5298
  const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
5183
5299
 
5184
- function useList(initialList = []) {
5185
- const [list, setList] = useState(initialList);
5186
- const push = useCallback((item) => setList((_) => [..._, item]), []);
5187
- const pop = useCallback(() => setList((_) => _.slice(0, -1)), []);
5188
- const remove = useCallback((item) => setList((_) => _.filter((currentItem) => currentItem !== item)), []);
5189
- const clear = useCallback(() => setList([]), []);
5190
- return [list, { setList, push, pop, remove, clear }];
5300
+ function useList(initialList = []) {
5301
+ const [list, setList] = useState(initialList);
5302
+ const push = useCallback((item) => setList(_ => [..._, item]), []);
5303
+ const pop = useCallback(() => setList(_ => _.slice(0, -1)), []);
5304
+ const remove = useCallback((item) => setList(_ => _.filter(currentItem => currentItem !== item)), []);
5305
+ const clear = useCallback(() => setList([]), []);
5306
+ return [list, { setList, push, pop, remove, clear }];
5191
5307
  }
5192
5308
 
5193
5309
  function assertUnreachable(x) {
@@ -5235,17 +5351,12 @@
5235
5351
  }, []);
5236
5352
  const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
5237
5353
  const { close } = useDialogManager();
5238
- useEffect(() => {
5239
- const handleEscape = ({ key }) => {
5240
- if (key === 'Escape') {
5241
- close();
5242
- }
5243
- };
5244
- globalThis.document?.addEventListener('keydown', handleEscape);
5245
- return () => {
5246
- globalThis.document?.removeEventListener('keydown', handleEscape);
5247
- };
5248
- }, [close]);
5354
+ const escapeHandler = useCallback(({ key }) => {
5355
+ if (key === 'Escape') {
5356
+ close();
5357
+ }
5358
+ }, []);
5359
+ useEventListener(globalThis.document, 'keydown', escapeHandler);
5249
5360
  useEffect(() => {
5250
5361
  if (dialogs.length) {
5251
5362
  globalThis.document?.body.classList.add('no-scrollbar');
@@ -5259,6 +5370,37 @@
5259
5370
  return dialogs.length ? (jsx("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar', i === dialogs.length - 1 ? '' : 'hidden'), children: dialog }, String(id || i)))) })) : null;
5260
5371
  });
5261
5372
 
5373
+ const PopupManager = JSX(() => {
5374
+ const [popup, setPopup] = useState(null);
5375
+ const close = useCallback(() => {
5376
+ setPopup(null);
5377
+ }, []);
5378
+ useEffect(() => defaultEventBus.subscribe('popup', (action) => {
5379
+ switch (action.type) {
5380
+ case 'open':
5381
+ case 'update':
5382
+ setPopup(action);
5383
+ break;
5384
+ case 'close':
5385
+ close();
5386
+ break;
5387
+ default:
5388
+ assertUnreachable(action);
5389
+ }
5390
+ }), []);
5391
+ const escapeHandler = useCallback(({ key }) => {
5392
+ if (key === 'Escape') {
5393
+ close();
5394
+ }
5395
+ }, [close]);
5396
+ useEventListener(globalThis.document, 'keydown', escapeHandler);
5397
+ return popup ? (jsx("div", { className: "absolute z-50", style: {
5398
+ left: `${popup.left}px`,
5399
+ top: `${popup.top}px`,
5400
+ ...(popup.width ? { width: `${popup.width}px` } : {}),
5401
+ }, role: "dialog", children: popup.popup })) : null;
5402
+ });
5403
+
5262
5404
  const api = LikeAPI();
5263
5405
  function useLikeService(pagePath) {
5264
5406
  const [likeCount, setLikeCount] = useState(0);
@@ -5310,7 +5452,7 @@
5310
5452
  parent: data,
5311
5453
  };
5312
5454
  useBlockRouterProvider();
5313
- return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('relative @container', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5455
+ return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('relative @container', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @lg:space-y-0 @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5314
5456
  });
5315
5457
  ContentPage.childrenTypes = [];
5316
5458
  ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
@@ -5318,7 +5460,7 @@
5318
5460
  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" }) }));
5319
5461
  }
5320
5462
 
5321
- const packageVersion = "0.13.23";
5463
+ const packageVersion = "0.14.0";
5322
5464
 
5323
5465
  exports.Blocks = Blocks;
5324
5466
  exports.ContentPage = ContentPage;