@redneckz/wildless-cms-uni-blocks 0.10.9 → 0.11.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 (1541) hide show
  1. package/bin/migration-scripts/0.10.10.js +44 -0
  2. package/bin/migration-scripts/0.11.0.js +29 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +372 -329
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/BaseTile/BaseTile.d.ts +12 -2
  7. package/bundle/components/DepositFiltration/DepositFiltration.d.ts +6 -0
  8. package/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +32 -0
  9. package/bundle/components/Footer/buttonStylesWithText.d.ts +2 -0
  10. package/bundle/components/Footer/buttonStylesWithText.mobile.d.ts +2 -0
  11. package/bundle/components/Footer/horizontalNavigationLinkStyles.d.ts +1 -0
  12. package/bundle/components/Footer/horizontalNavigationLinkStyles.mobile.d.ts +1 -0
  13. package/bundle/components/Footer/textInformationTextSize.d.ts +1 -0
  14. package/bundle/components/Footer/textInformationTextSize.mobile.d.ts +1 -0
  15. package/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +6 -0
  16. package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +18 -0
  17. package/bundle/components/OfficeMap/useOfficeMap.d.ts +2 -0
  18. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +0 -13
  19. package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  20. package/bundle/components/ProductBlock/renderBenefit.d.ts +2 -2
  21. package/bundle/components/RollupItem/RollupItemContent.d.ts +2 -0
  22. package/bundle/components/RollupItem/foldableSectionStyles.d.ts +1 -0
  23. package/bundle/components/RollupItem/foldableSectionStyles.mobile.d.ts +1 -0
  24. package/bundle/components/RollupItem/getIconName.d.ts +1 -0
  25. package/bundle/components/RollupItem/getIconName.mobile.d.ts +1 -0
  26. package/bundle/components/RollupItem/labelSize.d.ts +1 -0
  27. package/bundle/components/RollupItem/labelSize.mobile.d.ts +1 -0
  28. package/bundle/components/RollupItem/rollupIconVersion.d.ts +1 -0
  29. package/bundle/components/RollupItem/rollupIconVersion.mobile.d.ts +1 -0
  30. package/bundle/components/RollupItem/rollupItemStyles.d.ts +1 -0
  31. package/bundle/components/RollupItem/rollupItemStyles.mobile.d.ts +1 -0
  32. package/bundle/content-page-repository/transformDocumentLink.d.ts +3 -0
  33. package/bundle/hooks/useForm.d.ts +8 -4
  34. package/bundle/hooks/useNormalizedInput.d.ts +11 -0
  35. package/bundle/icons/IconName.d.ts +12 -2
  36. package/bundle/services/sitemap/SitemapData.d.ts +1 -1
  37. package/{dist/components/Filtration/FiltrationContent.d.ts → bundle/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts} +36 -22
  38. package/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +7 -0
  39. package/bundle/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +15 -0
  40. package/bundle/ui-kit/ControlProps.d.ts +1 -1
  41. package/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  42. package/bundle/ui-kit/Icon/IconProps.d.ts +4 -0
  43. package/bundle/ui-kit/Icon/RoundedIcon.d.ts +2 -0
  44. package/bundle/ui-kit/Input/Input.d.ts +1 -1
  45. package/bundle/ui-kit/Input/InputProps.d.ts +4 -5
  46. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  47. package/bundle/ui-kit/LinkList/LinkList.d.ts +2 -0
  48. package/bundle/ui-kit/LinkList/LinkListProps.d.ts +5 -0
  49. package/bundle/ui-kit/LinkList/linkListStyles.d.ts +1 -0
  50. package/bundle/ui-kit/LinkList/linkListStyles.mobile.d.ts +1 -0
  51. package/bundle/ui-kit/List/ListProps.d.ts +0 -2
  52. package/bundle/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  53. package/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  54. package/bundle/ui-kit/SearchBar/SearchBar.d.ts +5 -2
  55. package/bundle/ui-kit/SearchDialog/SearchInput.d.ts +0 -1
  56. package/bundle/utils/identity.d.ts +1 -0
  57. package/bundle/utils/isEmpty.d.ts +1 -0
  58. package/bundle/utils/joinList.d.ts +1 -1
  59. package/bundle/utils/toLocalNumberFormat.d.ts +1 -0
  60. package/cosmos-static/icons/ArrowDownSolidIcon.svg +1 -0
  61. package/cosmos-static/icons/ArrowUpSolidIcon.svg +1 -0
  62. package/cosmos-static/icons/BagIcon.svg +1 -0
  63. package/cosmos-static/icons/BriefcaseIcon.svg +1 -0
  64. package/cosmos-static/icons/ClientIcon.svg +1 -0
  65. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  66. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  67. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  68. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  69. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  70. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  71. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  72. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  73. package/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  74. package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  75. package/dist/components/BaseTile/BaseTile.d.ts +12 -2
  76. package/dist/components/BaseTile/BaseTile.js +2 -1
  77. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  78. package/dist/components/Blocks.js +6 -4
  79. package/dist/components/Blocks.js.map +1 -1
  80. package/dist/components/Blocks.mobile.js +0 -2
  81. package/dist/components/Blocks.mobile.js.map +1 -1
  82. package/dist/components/Calculator/CalculatorValueBlock.js +2 -2
  83. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  84. package/dist/components/Calculator/renderInitialFeeInput.js +3 -3
  85. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  86. package/dist/components/Calculator/renderProposal.js +2 -2
  87. package/dist/components/Calculator/renderProposal.js.map +1 -1
  88. package/dist/components/Calculator/renderRealEstateValue.js +2 -2
  89. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  90. package/dist/components/Calculator/renderWantedSumInput.js +3 -3
  91. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  92. package/dist/components/CardTransfer/CardTransfer.js +10 -8
  93. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  94. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -9
  95. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  96. package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  97. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  98. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  99. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  100. package/dist/components/ContentPage/ContentPage.page.json +0 -1
  101. package/dist/components/DepositFiltration/DepositFiltration.d.ts +6 -0
  102. package/dist/components/DepositFiltration/DepositFiltration.js +34 -0
  103. package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -0
  104. package/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +32 -0
  105. package/dist/{ui-kit/CurrencyInput/CurrencyInputProps.js → components/DepositFiltration/DepositFiltrationContent.js} +1 -1
  106. package/dist/components/DepositFiltration/DepositFiltrationContent.js.map +1 -0
  107. package/dist/components/Footer/Footer.mobile.js +3 -9
  108. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  109. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -1
  110. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  111. package/dist/components/Footer/HorizontalNavigationLink.js +3 -1
  112. package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
  113. package/dist/components/Footer/MediaButton.js +2 -8
  114. package/dist/components/Footer/MediaButton.js.map +1 -1
  115. package/dist/components/Footer/TextInformation.js +3 -1
  116. package/dist/components/Footer/TextInformation.js.map +1 -1
  117. package/dist/components/Footer/buttonStylesWithText.d.ts +2 -0
  118. package/dist/components/Footer/buttonStylesWithText.js +12 -0
  119. package/dist/components/Footer/buttonStylesWithText.js.map +1 -0
  120. package/dist/components/Footer/buttonStylesWithText.mobile.d.ts +2 -0
  121. package/dist/components/Footer/buttonStylesWithText.mobile.js +12 -0
  122. package/dist/components/Footer/buttonStylesWithText.mobile.js.map +1 -0
  123. package/dist/components/Footer/horizontalNavigationLinkStyles.d.ts +1 -0
  124. package/dist/components/Footer/horizontalNavigationLinkStyles.js +4 -0
  125. package/dist/components/Footer/horizontalNavigationLinkStyles.js.map +1 -0
  126. package/dist/components/Footer/horizontalNavigationLinkStyles.mobile.d.ts +1 -0
  127. package/dist/components/Footer/horizontalNavigationLinkStyles.mobile.js +4 -0
  128. package/dist/components/Footer/horizontalNavigationLinkStyles.mobile.js.map +1 -0
  129. package/dist/components/Footer/textInformationTextSize.d.ts +1 -0
  130. package/dist/components/Footer/textInformationTextSize.js +4 -0
  131. package/dist/components/Footer/textInformationTextSize.js.map +1 -0
  132. package/dist/components/Footer/textInformationTextSize.mobile.d.ts +1 -0
  133. package/dist/components/Footer/textInformationTextSize.mobile.js +4 -0
  134. package/dist/components/Footer/textInformationTextSize.mobile.js.map +1 -0
  135. package/dist/components/Header/Header.mobile.js +2 -2
  136. package/dist/components/Header/Header.mobile.js.map +1 -1
  137. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  138. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  139. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  140. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  141. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  142. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  143. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +2 -1
  144. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  145. package/dist/components/MortgageFiltration/MortgageFiltration.d.ts +6 -0
  146. package/dist/components/MortgageFiltration/MortgageFiltration.js +17 -0
  147. package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -0
  148. package/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +18 -0
  149. package/dist/components/MortgageFiltration/MortgageFiltrationContent.js +2 -0
  150. package/dist/components/MortgageFiltration/MortgageFiltrationContent.js.map +1 -0
  151. package/dist/components/OfficeMap/OfficeMap.js +2 -2
  152. package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  153. package/dist/components/OfficeMap/useOfficeMap.d.ts +2 -0
  154. package/dist/components/OfficeMap/useOfficeMap.js +1 -2
  155. package/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  156. package/dist/components/PictureText/PictureText.js +2 -2
  157. package/dist/components/PictureText/PictureText.js.map +1 -1
  158. package/dist/components/ProductBlock/ProductBlock.js +3 -8
  159. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  160. package/dist/components/ProductBlock/ProductBlockContent.d.ts +0 -13
  161. package/dist/components/ProductBlock/ProductBlockInner.js +4 -8
  162. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  163. package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  164. package/dist/components/ProductBlock/renderBackwardButton.js +7 -5
  165. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  166. package/dist/components/ProductBlock/renderBenefit.d.ts +2 -2
  167. package/dist/components/ProductBlock/renderBenefit.js +1 -1
  168. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  169. package/dist/components/ProductGallery/ProductGallery.js +9 -18
  170. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  171. package/dist/components/RollupItem/RollupItem.js +19 -4
  172. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  173. package/dist/components/RollupItem/RollupItemContent.d.ts +2 -0
  174. package/dist/components/RollupItem/foldableSectionStyles.d.ts +1 -0
  175. package/dist/components/RollupItem/foldableSectionStyles.js +4 -0
  176. package/dist/components/RollupItem/foldableSectionStyles.js.map +1 -0
  177. package/dist/components/RollupItem/foldableSectionStyles.mobile.d.ts +1 -0
  178. package/dist/components/RollupItem/foldableSectionStyles.mobile.js +4 -0
  179. package/dist/components/RollupItem/foldableSectionStyles.mobile.js.map +1 -0
  180. package/dist/components/RollupItem/getIconName.d.ts +1 -0
  181. package/dist/components/RollupItem/getIconName.js +5 -0
  182. package/dist/components/RollupItem/getIconName.js.map +1 -0
  183. package/dist/components/RollupItem/getIconName.mobile.d.ts +1 -0
  184. package/dist/components/RollupItem/getIconName.mobile.js +5 -0
  185. package/dist/components/RollupItem/getIconName.mobile.js.map +1 -0
  186. package/dist/components/RollupItem/labelSize.d.ts +1 -0
  187. package/dist/components/RollupItem/labelSize.js +4 -0
  188. package/dist/components/RollupItem/labelSize.js.map +1 -0
  189. package/dist/components/RollupItem/labelSize.mobile.d.ts +1 -0
  190. package/dist/components/RollupItem/labelSize.mobile.js +4 -0
  191. package/dist/components/RollupItem/labelSize.mobile.js.map +1 -0
  192. package/dist/components/RollupItem/rollupIconVersion.d.ts +1 -0
  193. package/dist/components/RollupItem/rollupIconVersion.js +4 -0
  194. package/dist/components/RollupItem/rollupIconVersion.js.map +1 -0
  195. package/dist/components/RollupItem/rollupIconVersion.mobile.d.ts +1 -0
  196. package/dist/components/RollupItem/rollupIconVersion.mobile.js +4 -0
  197. package/dist/components/RollupItem/rollupIconVersion.mobile.js.map +1 -0
  198. package/dist/components/RollupItem/rollupItemStyles.d.ts +1 -0
  199. package/dist/components/RollupItem/rollupItemStyles.js +4 -0
  200. package/dist/components/RollupItem/rollupItemStyles.js.map +1 -0
  201. package/dist/components/RollupItem/rollupItemStyles.mobile.d.ts +1 -0
  202. package/dist/components/RollupItem/rollupItemStyles.mobile.js +4 -0
  203. package/dist/components/RollupItem/rollupItemStyles.mobile.js.map +1 -0
  204. package/dist/components/Tile/Tile.js +2 -2
  205. package/dist/components/Tile/Tile.js.map +1 -1
  206. package/dist/content-page-repository/transformContentPage.js +12 -4
  207. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  208. package/dist/content-page-repository/transformDocumentLink.d.ts +3 -0
  209. package/dist/content-page-repository/transformDocumentLink.js +32 -0
  210. package/dist/content-page-repository/transformDocumentLink.js.map +1 -0
  211. package/dist/hooks/useForm.d.ts +8 -4
  212. package/dist/hooks/useForm.js +5 -3
  213. package/dist/hooks/useForm.js.map +1 -1
  214. package/dist/hooks/useNormalizedInput.d.ts +11 -0
  215. package/dist/hooks/useNormalizedInput.js +23 -0
  216. package/dist/hooks/useNormalizedInput.js.map +1 -0
  217. package/dist/hooks/useSWRResource.js +2 -1
  218. package/dist/hooks/useSWRResource.js.map +1 -1
  219. package/dist/icons/IconName.d.ts +12 -2
  220. package/dist/icons/IconName.js +11 -1
  221. package/dist/icons/IconName.js.map +1 -1
  222. package/dist/services/search/useSearch.js +3 -2
  223. package/dist/services/search/useSearch.js.map +1 -1
  224. package/dist/services/sitemap/SitemapData.d.ts +1 -1
  225. package/{lib/components/Filtration/FiltrationContent.d.ts → dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts} +36 -22
  226. package/dist/{components/Filtration/FiltrationContent.js → ui-kit/BaseFiltration/BaseFiltrationContent.js} +1 -1
  227. package/dist/ui-kit/BaseFiltration/BaseFiltrationContent.js.map +1 -0
  228. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +7 -0
  229. package/{mobile/dist/components/Filtration/FiltrationInner.js → dist/ui-kit/BaseFiltration/BaseFiltrationInner.js} +9 -9
  230. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -0
  231. package/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js +32 -0
  232. package/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +1 -0
  233. package/dist/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +15 -0
  234. package/dist/{components/Filtration/renderFormItem.js → ui-kit/BaseFiltration/renderFiltrationForm.js} +8 -7
  235. package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -0
  236. package/dist/ui-kit/BenefitItem/BenefitItem.js +4 -5
  237. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  238. package/dist/ui-kit/BlockWrapper.js +1 -1
  239. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  240. package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  241. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  242. package/dist/ui-kit/ControlProps.d.ts +1 -1
  243. package/dist/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  244. package/dist/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  245. package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  246. package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  247. package/dist/ui-kit/Icon/IconProps.d.ts +4 -0
  248. package/dist/ui-kit/Icon/RoundedIcon.d.ts +2 -0
  249. package/dist/ui-kit/Icon/RoundedIcon.js +13 -0
  250. package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -0
  251. package/dist/ui-kit/Input/Input.d.ts +1 -1
  252. package/dist/ui-kit/Input/Input.js +3 -2
  253. package/dist/ui-kit/Input/Input.js.map +1 -1
  254. package/dist/ui-kit/Input/InputProps.d.ts +4 -5
  255. package/dist/ui-kit/InputRange/InputRange.js +9 -11
  256. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  257. package/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  258. package/dist/ui-kit/LinkList/LinkList.d.ts +2 -0
  259. package/dist/ui-kit/LinkList/LinkList.js +12 -0
  260. package/dist/ui-kit/LinkList/LinkList.js.map +1 -0
  261. package/dist/ui-kit/LinkList/LinkListProps.d.ts +5 -0
  262. package/dist/{components/BaseTile/BaseTileProps.js → ui-kit/LinkList/LinkListProps.js} +1 -1
  263. package/dist/ui-kit/LinkList/LinkListProps.js.map +1 -0
  264. package/dist/ui-kit/LinkList/linkListStyles.d.ts +1 -0
  265. package/dist/ui-kit/LinkList/linkListStyles.js +4 -0
  266. package/dist/ui-kit/LinkList/linkListStyles.js.map +1 -0
  267. package/dist/ui-kit/LinkList/linkListStyles.mobile.d.ts +1 -0
  268. package/dist/ui-kit/LinkList/linkListStyles.mobile.js +4 -0
  269. package/dist/ui-kit/LinkList/linkListStyles.mobile.js.map +1 -0
  270. package/dist/ui-kit/List/List.js +2 -1
  271. package/dist/ui-kit/List/List.js.map +1 -1
  272. package/dist/ui-kit/List/ListItem.js +5 -4
  273. package/dist/ui-kit/List/ListItem.js.map +1 -1
  274. package/dist/ui-kit/List/ListProps.d.ts +0 -2
  275. package/dist/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  276. package/dist/ui-kit/NumberInput/NumberInput.js +22 -0
  277. package/dist/ui-kit/NumberInput/NumberInput.js.map +1 -0
  278. package/dist/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  279. package/dist/ui-kit/PhoneInput/PhoneInput.js +2 -2
  280. package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  281. package/dist/ui-kit/SearchBar/SearchBar.d.ts +5 -2
  282. package/dist/ui-kit/SearchBar/SearchBar.js +21 -2
  283. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  284. package/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  285. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  286. package/dist/ui-kit/SearchDialog/SearchInput.d.ts +0 -1
  287. package/dist/ui-kit/SearchDialog/SearchInput.js +2 -2
  288. package/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  289. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  290. package/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  291. package/dist/utils/identity.d.ts +1 -0
  292. package/dist/utils/identity.js +5 -0
  293. package/dist/utils/identity.js.map +1 -0
  294. package/dist/utils/isEmpty.d.ts +1 -0
  295. package/dist/utils/isEmpty.js +9 -0
  296. package/dist/utils/isEmpty.js.map +1 -0
  297. package/dist/utils/joinList.d.ts +1 -1
  298. package/dist/utils/joinList.js +1 -3
  299. package/dist/utils/joinList.js.map +1 -1
  300. package/dist/utils/toLocalNumberFormat.d.ts +1 -0
  301. package/dist/utils/toLocalNumberFormat.js +8 -0
  302. package/dist/utils/toLocalNumberFormat.js.map +1 -0
  303. package/lib/common.css +1 -1
  304. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  305. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  306. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  307. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  308. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  309. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  310. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  311. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  312. package/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  313. package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  314. package/lib/components/BaseTile/BaseTile.d.ts +12 -2
  315. package/lib/components/BaseTile/BaseTile.js +2 -1
  316. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  317. package/lib/components/Blocks.js +6 -4
  318. package/lib/components/Blocks.js.map +1 -1
  319. package/lib/components/Blocks.mobile.js +0 -2
  320. package/lib/components/Blocks.mobile.js.map +1 -1
  321. package/lib/components/Calculator/CalculatorValueBlock.js +2 -2
  322. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  323. package/lib/components/Calculator/renderInitialFeeInput.js +3 -3
  324. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  325. package/lib/components/Calculator/renderProposal.js +2 -2
  326. package/lib/components/Calculator/renderProposal.js.map +1 -1
  327. package/lib/components/Calculator/renderRealEstateValue.js +2 -2
  328. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  329. package/lib/components/Calculator/renderWantedSumInput.js +3 -3
  330. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  331. package/lib/components/CardTransfer/CardTransfer.js +10 -8
  332. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  333. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.d.ts +1 -0
  334. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +1 -0
  335. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +1 -0
  336. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -9
  337. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  338. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +1 -0
  339. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +1 -0
  340. package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  341. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  342. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +1 -0
  343. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  344. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  345. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +1 -0
  346. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -0
  347. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +1 -0
  348. package/lib/components/ContentPage/ContentPage.page.json +0 -1
  349. package/lib/components/DepositFiltration/DepositFiltration.d.ts +6 -0
  350. package/lib/components/DepositFiltration/DepositFiltration.js +32 -0
  351. package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -0
  352. package/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +32 -0
  353. package/lib/components/DepositFiltration/DepositFiltrationContent.js +2 -0
  354. package/lib/components/DepositFiltration/DepositFiltrationContent.js.map +1 -0
  355. package/lib/components/Footer/Footer.mobile.js +3 -9
  356. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  357. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -1
  358. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  359. package/lib/components/Footer/HorizontalNavigationLink.js +3 -1
  360. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
  361. package/lib/components/Footer/MediaButton.js +1 -7
  362. package/lib/components/Footer/MediaButton.js.map +1 -1
  363. package/lib/components/Footer/TextInformation.js +3 -1
  364. package/lib/components/Footer/TextInformation.js.map +1 -1
  365. package/lib/components/Footer/buttonStylesWithText.d.ts +2 -0
  366. package/lib/components/Footer/buttonStylesWithText.js +9 -0
  367. package/lib/components/Footer/buttonStylesWithText.js.map +1 -0
  368. package/lib/components/Footer/buttonStylesWithText.mobile.d.ts +2 -0
  369. package/lib/components/Footer/buttonStylesWithText.mobile.js +9 -0
  370. package/lib/components/Footer/buttonStylesWithText.mobile.js.map +1 -0
  371. package/lib/components/Footer/horizontalNavigationLinkStyles.d.ts +1 -0
  372. package/lib/components/Footer/horizontalNavigationLinkStyles.js +2 -0
  373. package/lib/components/Footer/horizontalNavigationLinkStyles.js.map +1 -0
  374. package/lib/components/Footer/horizontalNavigationLinkStyles.mobile.d.ts +1 -0
  375. package/lib/components/Footer/horizontalNavigationLinkStyles.mobile.js +2 -0
  376. package/lib/components/Footer/horizontalNavigationLinkStyles.mobile.js.map +1 -0
  377. package/lib/components/Footer/textInformationTextSize.d.ts +1 -0
  378. package/lib/components/Footer/textInformationTextSize.js +2 -0
  379. package/lib/components/Footer/textInformationTextSize.js.map +1 -0
  380. package/lib/components/Footer/textInformationTextSize.mobile.d.ts +1 -0
  381. package/lib/components/Footer/textInformationTextSize.mobile.js +2 -0
  382. package/lib/components/Footer/textInformationTextSize.mobile.js.map +1 -0
  383. package/lib/components/Header/Header.mobile.js +2 -2
  384. package/lib/components/Header/Header.mobile.js.map +1 -1
  385. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  386. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  387. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  388. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  389. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  390. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  391. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +2 -1
  392. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  393. package/lib/components/MortgageFiltration/MortgageFiltration.d.ts +6 -0
  394. package/lib/components/{Filtration/Filtration.fixture.d.ts → MortgageFiltration/MortgageFiltration.fixture.d.ts} +1 -0
  395. package/lib/components/MortgageFiltration/MortgageFiltration.js +15 -0
  396. package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -0
  397. package/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +18 -0
  398. package/lib/components/MortgageFiltration/MortgageFiltrationContent.js +2 -0
  399. package/lib/components/MortgageFiltration/MortgageFiltrationContent.js.map +1 -0
  400. package/lib/components/OfficeMap/OfficeMap.js +2 -2
  401. package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  402. package/lib/components/OfficeMap/useOfficeMap.d.ts +2 -0
  403. package/lib/components/OfficeMap/useOfficeMap.js +1 -2
  404. package/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  405. package/lib/components/PictureText/PictureText.js +2 -2
  406. package/lib/components/PictureText/PictureText.js.map +1 -1
  407. package/lib/components/ProductBlock/ProductBlock.js +3 -8
  408. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  409. package/lib/components/ProductBlock/ProductBlockContent.d.ts +0 -13
  410. package/lib/components/ProductBlock/ProductBlockInner.js +4 -8
  411. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  412. package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  413. package/lib/components/ProductBlock/renderBackwardButton.js +7 -5
  414. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  415. package/lib/components/ProductBlock/renderBenefit.d.ts +2 -2
  416. package/lib/components/ProductBlock/renderBenefit.js +1 -1
  417. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  418. package/lib/components/ProductGallery/ProductGallery.js +10 -19
  419. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  420. package/lib/components/RollupItem/RollupItem.fixture.d.ts +1 -0
  421. package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +2 -0
  422. package/lib/components/RollupItem/RollupItem.js +19 -4
  423. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  424. package/lib/components/RollupItem/RollupItemContent.d.ts +2 -0
  425. package/lib/components/RollupItem/foldableSectionStyles.d.ts +1 -0
  426. package/lib/components/RollupItem/foldableSectionStyles.js +2 -0
  427. package/lib/components/RollupItem/foldableSectionStyles.js.map +1 -0
  428. package/lib/components/RollupItem/foldableSectionStyles.mobile.d.ts +1 -0
  429. package/lib/components/RollupItem/foldableSectionStyles.mobile.js +2 -0
  430. package/lib/components/RollupItem/foldableSectionStyles.mobile.js.map +1 -0
  431. package/lib/components/RollupItem/getIconName.d.ts +1 -0
  432. package/lib/components/RollupItem/getIconName.js +2 -0
  433. package/lib/components/RollupItem/getIconName.js.map +1 -0
  434. package/lib/components/RollupItem/getIconName.mobile.d.ts +1 -0
  435. package/lib/components/RollupItem/getIconName.mobile.js +2 -0
  436. package/lib/components/RollupItem/getIconName.mobile.js.map +1 -0
  437. package/lib/components/RollupItem/labelSize.d.ts +1 -0
  438. package/lib/components/RollupItem/labelSize.js +2 -0
  439. package/lib/components/RollupItem/labelSize.js.map +1 -0
  440. package/lib/components/RollupItem/labelSize.mobile.d.ts +1 -0
  441. package/lib/components/RollupItem/labelSize.mobile.js +2 -0
  442. package/lib/components/RollupItem/labelSize.mobile.js.map +1 -0
  443. package/lib/components/RollupItem/rollupIconVersion.d.ts +1 -0
  444. package/lib/components/RollupItem/rollupIconVersion.js +2 -0
  445. package/lib/components/RollupItem/rollupIconVersion.js.map +1 -0
  446. package/lib/components/RollupItem/rollupIconVersion.mobile.d.ts +1 -0
  447. package/lib/components/RollupItem/rollupIconVersion.mobile.js +2 -0
  448. package/lib/components/RollupItem/rollupIconVersion.mobile.js.map +1 -0
  449. package/lib/components/RollupItem/rollupItemStyles.d.ts +1 -0
  450. package/lib/components/RollupItem/rollupItemStyles.js +2 -0
  451. package/lib/components/RollupItem/rollupItemStyles.js.map +1 -0
  452. package/lib/components/RollupItem/rollupItemStyles.mobile.d.ts +1 -0
  453. package/lib/components/RollupItem/rollupItemStyles.mobile.js +2 -0
  454. package/lib/components/RollupItem/rollupItemStyles.mobile.js.map +1 -0
  455. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
  456. package/lib/components/Tile/Tile.js +2 -2
  457. package/lib/components/Tile/Tile.js.map +1 -1
  458. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +0 -2
  459. package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +1 -0
  460. package/lib/components/Video/Video.fixture.d.ts +1 -0
  461. package/lib/content-page-repository/transformContentPage.js +12 -4
  462. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  463. package/lib/content-page-repository/transformDocumentLink.d.ts +3 -0
  464. package/lib/content-page-repository/transformDocumentLink.js +26 -0
  465. package/lib/content-page-repository/transformDocumentLink.js.map +1 -0
  466. package/lib/hooks/useForm.d.ts +8 -4
  467. package/lib/hooks/useForm.js +5 -3
  468. package/lib/hooks/useForm.js.map +1 -1
  469. package/lib/hooks/useNormalizedInput.d.ts +11 -0
  470. package/lib/hooks/useNormalizedInput.js +20 -0
  471. package/lib/hooks/useNormalizedInput.js.map +1 -0
  472. package/lib/hooks/useSWRResource.js +2 -1
  473. package/lib/hooks/useSWRResource.js.map +1 -1
  474. package/lib/icons/IconName.d.ts +12 -2
  475. package/lib/icons/IconName.js +11 -1
  476. package/lib/icons/IconName.js.map +1 -1
  477. package/lib/services/search/useSearch.js +3 -2
  478. package/lib/services/search/useSearch.js.map +1 -1
  479. package/lib/services/sitemap/SitemapData.d.ts +1 -1
  480. package/{bundle/components/Filtration/FiltrationContent.d.ts → lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts} +36 -22
  481. package/lib/ui-kit/BaseFiltration/BaseFiltrationContent.js +2 -0
  482. package/lib/ui-kit/BaseFiltration/BaseFiltrationContent.js.map +1 -0
  483. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +7 -0
  484. package/lib/{components/Filtration/FiltrationInner.js → ui-kit/BaseFiltration/BaseFiltrationInner.js} +8 -8
  485. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -0
  486. package/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js +29 -0
  487. package/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +1 -0
  488. package/lib/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +15 -0
  489. package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +20 -0
  490. package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -0
  491. package/lib/ui-kit/BenefitItem/BenefitItem.js +4 -5
  492. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  493. package/lib/ui-kit/BlockWrapper.js +1 -1
  494. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  495. package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  496. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  497. package/lib/ui-kit/ControlProps.d.ts +1 -1
  498. package/lib/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  499. package/lib/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  500. package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  501. package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  502. package/lib/ui-kit/Heading/Heading.fixture.d.ts +1 -0
  503. package/lib/ui-kit/Heading/Heading.fixture.mobile.d.ts +1 -0
  504. package/lib/ui-kit/Icon/IconProps.d.ts +4 -0
  505. package/lib/ui-kit/Icon/RoundedIcon.d.ts +2 -0
  506. package/lib/ui-kit/Icon/RoundedIcon.js +11 -0
  507. package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -0
  508. package/lib/ui-kit/Input/Input.d.ts +1 -1
  509. package/lib/ui-kit/Input/Input.js +3 -2
  510. package/lib/ui-kit/Input/Input.js.map +1 -1
  511. package/lib/ui-kit/Input/InputProps.d.ts +4 -5
  512. package/lib/ui-kit/InputRange/InputRange.js +10 -12
  513. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  514. package/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  515. package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +1 -0
  516. package/lib/ui-kit/LinkList/LinkList.d.ts +2 -0
  517. package/lib/ui-kit/LinkList/LinkList.fixture.d.ts +8 -0
  518. package/lib/ui-kit/LinkList/LinkList.js +10 -0
  519. package/lib/ui-kit/LinkList/LinkList.js.map +1 -0
  520. package/lib/ui-kit/LinkList/LinkListProps.d.ts +5 -0
  521. package/lib/ui-kit/LinkList/LinkListProps.js +2 -0
  522. package/lib/ui-kit/LinkList/LinkListProps.js.map +1 -0
  523. package/lib/ui-kit/LinkList/linkListStyles.d.ts +1 -0
  524. package/lib/ui-kit/LinkList/linkListStyles.js +2 -0
  525. package/lib/ui-kit/LinkList/linkListStyles.js.map +1 -0
  526. package/lib/ui-kit/LinkList/linkListStyles.mobile.d.ts +1 -0
  527. package/lib/ui-kit/LinkList/linkListStyles.mobile.js +2 -0
  528. package/lib/ui-kit/LinkList/linkListStyles.mobile.js.map +1 -0
  529. package/lib/ui-kit/List/List.js +2 -1
  530. package/lib/ui-kit/List/List.js.map +1 -1
  531. package/lib/ui-kit/List/ListItem.js +5 -4
  532. package/lib/ui-kit/List/ListItem.js.map +1 -1
  533. package/lib/ui-kit/List/ListProps.d.ts +0 -2
  534. package/lib/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  535. package/lib/ui-kit/NumberInput/NumberInput.fixture.d.ts +7 -0
  536. package/lib/ui-kit/NumberInput/NumberInput.js +20 -0
  537. package/lib/ui-kit/NumberInput/NumberInput.js.map +1 -0
  538. package/lib/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  539. package/lib/ui-kit/PhoneInput/PhoneInput.js +2 -2
  540. package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  541. package/lib/ui-kit/RichText/RichText.fixture.d.ts +1 -0
  542. package/lib/ui-kit/SearchBar/SearchBar.d.ts +5 -2
  543. package/lib/ui-kit/SearchBar/SearchBar.js +22 -3
  544. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  545. package/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  546. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  547. package/lib/ui-kit/SearchDialog/SearchInput.d.ts +0 -1
  548. package/lib/ui-kit/SearchDialog/SearchInput.js +2 -2
  549. package/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  550. package/lib/ui-kit/Select/Select.fixture.d.ts +1 -0
  551. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +1 -0
  552. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  553. package/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  554. package/lib/ui-kit/Tags/Tags.fixture.d.ts +1 -0
  555. package/lib/utils/identity.d.ts +1 -0
  556. package/lib/utils/identity.js +2 -0
  557. package/lib/utils/identity.js.map +1 -0
  558. package/lib/utils/isEmpty.d.ts +1 -0
  559. package/lib/utils/isEmpty.js +6 -0
  560. package/lib/utils/isEmpty.js.map +1 -0
  561. package/lib/utils/joinList.d.ts +1 -1
  562. package/lib/utils/joinList.js +1 -3
  563. package/lib/utils/joinList.js.map +1 -1
  564. package/lib/utils/toLocalNumberFormat.d.ts +1 -0
  565. package/lib/utils/toLocalNumberFormat.js +5 -0
  566. package/lib/utils/toLocalNumberFormat.js.map +1 -0
  567. package/mobile/bundle/bundle.umd.js +267 -242
  568. package/mobile/bundle/bundle.umd.min.js +1 -1
  569. package/mobile/bundle/components/BaseTile/BaseTile.d.ts +12 -2
  570. package/mobile/bundle/components/DepositFiltration/DepositFiltration.d.ts +6 -0
  571. package/mobile/bundle/components/DepositFiltration/DepositFiltrationContent.d.ts +32 -0
  572. package/mobile/bundle/components/Footer/buttonStylesWithText.d.ts +2 -0
  573. package/mobile/bundle/components/Footer/horizontalNavigationLinkStyles.d.ts +1 -0
  574. package/mobile/bundle/components/Footer/textInformationTextSize.d.ts +1 -0
  575. package/mobile/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +6 -0
  576. package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +18 -0
  577. package/mobile/bundle/components/OfficeMap/useOfficeMap.d.ts +2 -0
  578. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +0 -13
  579. package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  580. package/mobile/bundle/components/ProductBlock/renderBenefit.d.ts +2 -2
  581. package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +2 -0
  582. package/mobile/bundle/components/RollupItem/foldableSectionStyles.d.ts +1 -0
  583. package/mobile/bundle/components/RollupItem/getIconName.d.ts +1 -0
  584. package/mobile/bundle/components/RollupItem/labelSize.d.ts +1 -0
  585. package/mobile/bundle/components/RollupItem/rollupIconVersion.d.ts +1 -0
  586. package/mobile/bundle/components/RollupItem/rollupItemStyles.d.ts +1 -0
  587. package/mobile/bundle/content-page-repository/transformDocumentLink.d.ts +3 -0
  588. package/mobile/bundle/hooks/useForm.d.ts +8 -4
  589. package/mobile/bundle/hooks/useNormalizedInput.d.ts +11 -0
  590. package/mobile/bundle/icons/IconName.d.ts +12 -2
  591. package/mobile/bundle/services/sitemap/SitemapData.d.ts +1 -1
  592. package/mobile/bundle/{components/Filtration/FiltrationContent.d.ts → ui-kit/BaseFiltration/BaseFiltrationContent.d.ts} +36 -22
  593. package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +7 -0
  594. package/mobile/bundle/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +15 -0
  595. package/mobile/bundle/ui-kit/ControlProps.d.ts +1 -1
  596. package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  597. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +4 -0
  598. package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +2 -0
  599. package/mobile/bundle/ui-kit/Input/Input.d.ts +1 -1
  600. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +4 -5
  601. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  602. package/mobile/bundle/ui-kit/LinkList/LinkList.d.ts +2 -0
  603. package/mobile/bundle/ui-kit/LinkList/LinkListProps.d.ts +5 -0
  604. package/mobile/bundle/ui-kit/LinkList/linkListStyles.d.ts +1 -0
  605. package/mobile/bundle/ui-kit/List/ListProps.d.ts +0 -2
  606. package/mobile/bundle/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  607. package/mobile/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  608. package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +5 -2
  609. package/mobile/bundle/ui-kit/SearchDialog/SearchInput.d.ts +0 -1
  610. package/mobile/bundle/utils/identity.d.ts +1 -0
  611. package/mobile/bundle/utils/isEmpty.d.ts +1 -0
  612. package/mobile/bundle/utils/joinList.d.ts +1 -1
  613. package/mobile/bundle/utils/toLocalNumberFormat.d.ts +1 -0
  614. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  615. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  616. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  617. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  618. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  619. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  620. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  621. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  622. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  623. package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  624. package/mobile/dist/components/BaseTile/BaseTile.d.ts +12 -2
  625. package/mobile/dist/components/BaseTile/BaseTile.js +2 -1
  626. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  627. package/mobile/dist/components/Blocks.js +0 -2
  628. package/mobile/dist/components/Blocks.js.map +1 -1
  629. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +2 -2
  630. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  631. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +3 -3
  632. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  633. package/mobile/dist/components/Calculator/renderProposal.js +2 -2
  634. package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
  635. package/mobile/dist/components/Calculator/renderRealEstateValue.js +2 -2
  636. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  637. package/mobile/dist/components/Calculator/renderWantedSumInput.js +3 -3
  638. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  639. package/mobile/dist/components/CardTransfer/CardTransfer.js +10 -8
  640. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  641. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -9
  642. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  643. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
  644. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  645. package/mobile/dist/components/ContentPage/ContentPage.page.json +0 -1
  646. package/mobile/dist/components/DepositFiltration/DepositFiltration.d.ts +6 -0
  647. package/mobile/dist/components/DepositFiltration/DepositFiltration.js +34 -0
  648. package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -0
  649. package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.d.ts +32 -0
  650. package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.js +2 -0
  651. package/mobile/dist/components/DepositFiltration/DepositFiltrationContent.js.map +1 -0
  652. package/mobile/dist/components/Footer/Footer.js +3 -9
  653. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  654. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -1
  655. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  656. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +3 -1
  657. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
  658. package/mobile/dist/components/Footer/MediaButton.js +2 -8
  659. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  660. package/mobile/dist/components/Footer/TextInformation.js +3 -3
  661. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  662. package/mobile/dist/components/Footer/buttonStylesWithText.d.ts +2 -0
  663. package/mobile/dist/components/Footer/buttonStylesWithText.js +12 -0
  664. package/mobile/dist/components/Footer/buttonStylesWithText.js.map +1 -0
  665. package/mobile/dist/components/Footer/horizontalNavigationLinkStyles.d.ts +1 -0
  666. package/mobile/dist/components/Footer/horizontalNavigationLinkStyles.js +4 -0
  667. package/mobile/dist/components/Footer/horizontalNavigationLinkStyles.js.map +1 -0
  668. package/mobile/dist/components/Footer/textInformationTextSize.d.ts +1 -0
  669. package/mobile/dist/components/Footer/textInformationTextSize.js +4 -0
  670. package/mobile/dist/components/Footer/textInformationTextSize.js.map +1 -0
  671. package/mobile/dist/components/Header/Header.js +2 -2
  672. package/mobile/dist/components/Header/Header.js.map +1 -1
  673. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  674. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  675. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  676. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  677. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +2 -1
  678. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  679. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.d.ts +6 -0
  680. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +17 -0
  681. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -0
  682. package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +18 -0
  683. package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.js +2 -0
  684. package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.js.map +1 -0
  685. package/mobile/dist/components/OfficeMap/OfficeMap.js +2 -2
  686. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  687. package/mobile/dist/components/OfficeMap/useOfficeMap.d.ts +2 -0
  688. package/mobile/dist/components/OfficeMap/useOfficeMap.js +1 -2
  689. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  690. package/mobile/dist/components/PictureText/PictureText.js +2 -2
  691. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  692. package/mobile/dist/components/ProductBlock/ProductBlock.js +5 -4
  693. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  694. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +0 -13
  695. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +6 -7
  696. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  697. package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  698. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +7 -5
  699. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  700. package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -2
  701. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  702. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  703. package/mobile/dist/components/ProductGallery/ProductGallery.js +9 -18
  704. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  705. package/mobile/dist/components/RollupItem/RollupItem.js +18 -8
  706. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  707. package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +2 -0
  708. package/mobile/dist/components/RollupItem/foldableSectionStyles.d.ts +1 -0
  709. package/mobile/dist/components/RollupItem/foldableSectionStyles.js +4 -0
  710. package/mobile/dist/components/RollupItem/foldableSectionStyles.js.map +1 -0
  711. package/mobile/dist/components/RollupItem/getIconName.d.ts +1 -0
  712. package/mobile/dist/components/RollupItem/getIconName.js +5 -0
  713. package/mobile/dist/components/RollupItem/getIconName.js.map +1 -0
  714. package/mobile/dist/components/RollupItem/labelSize.d.ts +1 -0
  715. package/mobile/dist/components/RollupItem/labelSize.js +4 -0
  716. package/mobile/dist/components/RollupItem/labelSize.js.map +1 -0
  717. package/mobile/dist/components/RollupItem/rollupIconVersion.d.ts +1 -0
  718. package/mobile/dist/components/RollupItem/rollupIconVersion.js +4 -0
  719. package/mobile/dist/components/RollupItem/rollupIconVersion.js.map +1 -0
  720. package/mobile/dist/components/RollupItem/rollupItemStyles.d.ts +1 -0
  721. package/mobile/dist/components/RollupItem/rollupItemStyles.js +4 -0
  722. package/mobile/dist/components/RollupItem/rollupItemStyles.js.map +1 -0
  723. package/mobile/dist/components/Tile/Tile.js +2 -2
  724. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  725. package/mobile/dist/content-page-repository/transformContentPage.js +12 -4
  726. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  727. package/mobile/dist/content-page-repository/transformDocumentLink.d.ts +3 -0
  728. package/mobile/dist/content-page-repository/transformDocumentLink.js +32 -0
  729. package/mobile/dist/content-page-repository/transformDocumentLink.js.map +1 -0
  730. package/mobile/dist/hooks/useForm.d.ts +8 -4
  731. package/mobile/dist/hooks/useForm.js +5 -3
  732. package/mobile/dist/hooks/useForm.js.map +1 -1
  733. package/mobile/dist/hooks/useNormalizedInput.d.ts +11 -0
  734. package/mobile/dist/hooks/useNormalizedInput.js +23 -0
  735. package/mobile/dist/hooks/useNormalizedInput.js.map +1 -0
  736. package/mobile/dist/hooks/useSWRResource.js +2 -1
  737. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  738. package/mobile/dist/icons/IconName.d.ts +12 -2
  739. package/mobile/dist/icons/IconName.js +11 -1
  740. package/mobile/dist/icons/IconName.js.map +1 -1
  741. package/mobile/dist/services/search/useSearch.js +3 -2
  742. package/mobile/dist/services/search/useSearch.js.map +1 -1
  743. package/mobile/dist/services/sitemap/SitemapData.d.ts +1 -1
  744. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +102 -0
  745. package/{dist/components/LinkList/LinkListContent.js → mobile/dist/ui-kit/BaseFiltration/BaseFiltrationContent.js} +1 -1
  746. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationContent.js.map +1 -0
  747. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +7 -0
  748. package/{dist/components/Filtration/FiltrationInner.js → mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js} +9 -9
  749. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -0
  750. package/mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js +32 -0
  751. package/mobile/dist/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +1 -0
  752. package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +15 -0
  753. package/mobile/dist/{components/Filtration/renderFormItem.js → ui-kit/BaseFiltration/renderFiltrationForm.js} +8 -7
  754. package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -0
  755. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +4 -5
  756. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  757. package/mobile/dist/ui-kit/BlockWrapper.js +1 -1
  758. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  759. package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
  760. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  761. package/mobile/dist/ui-kit/ControlProps.d.ts +1 -1
  762. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  763. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  764. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  765. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  766. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +4 -0
  767. package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +2 -0
  768. package/mobile/dist/ui-kit/Icon/RoundedIcon.js +13 -0
  769. package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -0
  770. package/mobile/dist/ui-kit/Input/Input.d.ts +1 -1
  771. package/mobile/dist/ui-kit/Input/Input.js +3 -2
  772. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  773. package/mobile/dist/ui-kit/Input/InputProps.d.ts +4 -5
  774. package/mobile/dist/ui-kit/InputRange/InputRange.js +9 -11
  775. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  776. package/mobile/dist/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  777. package/mobile/dist/ui-kit/LinkList/LinkList.d.ts +2 -0
  778. package/mobile/dist/ui-kit/LinkList/LinkList.js +12 -0
  779. package/mobile/dist/ui-kit/LinkList/LinkList.js.map +1 -0
  780. package/mobile/dist/ui-kit/LinkList/LinkListProps.d.ts +5 -0
  781. package/mobile/dist/{components/BaseTile/BaseTileProps.js → ui-kit/LinkList/LinkListProps.js} +1 -1
  782. package/mobile/dist/ui-kit/LinkList/LinkListProps.js.map +1 -0
  783. package/mobile/dist/ui-kit/LinkList/linkListStyles.d.ts +1 -0
  784. package/mobile/dist/ui-kit/LinkList/linkListStyles.js +4 -0
  785. package/mobile/dist/ui-kit/LinkList/linkListStyles.js.map +1 -0
  786. package/mobile/dist/ui-kit/List/List.js +2 -1
  787. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  788. package/mobile/dist/ui-kit/List/ListItem.js +5 -4
  789. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  790. package/mobile/dist/ui-kit/List/ListProps.d.ts +0 -2
  791. package/mobile/dist/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  792. package/mobile/dist/ui-kit/NumberInput/NumberInput.js +22 -0
  793. package/mobile/dist/ui-kit/NumberInput/NumberInput.js.map +1 -0
  794. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  795. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +2 -2
  796. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  797. package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +5 -2
  798. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +21 -2
  799. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  800. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  801. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  802. package/mobile/dist/ui-kit/SearchDialog/SearchInput.d.ts +0 -1
  803. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +2 -2
  804. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  805. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  806. package/mobile/dist/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  807. package/mobile/dist/utils/identity.d.ts +1 -0
  808. package/mobile/dist/utils/identity.js +5 -0
  809. package/mobile/dist/utils/identity.js.map +1 -0
  810. package/mobile/dist/utils/isEmpty.d.ts +1 -0
  811. package/mobile/dist/utils/isEmpty.js +9 -0
  812. package/mobile/dist/utils/isEmpty.js.map +1 -0
  813. package/mobile/dist/utils/joinList.d.ts +1 -1
  814. package/mobile/dist/utils/joinList.js +1 -3
  815. package/mobile/dist/utils/joinList.js.map +1 -1
  816. package/mobile/dist/utils/toLocalNumberFormat.d.ts +1 -0
  817. package/mobile/dist/utils/toLocalNumberFormat.js +8 -0
  818. package/mobile/dist/utils/toLocalNumberFormat.js.map +1 -0
  819. package/mobile/lib/common.css +1 -1
  820. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  821. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  822. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  823. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  824. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  825. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  826. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  827. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  828. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +1 -1
  829. package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
  830. package/mobile/lib/components/BaseTile/BaseTile.d.ts +12 -2
  831. package/mobile/lib/components/BaseTile/BaseTile.js +2 -1
  832. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  833. package/mobile/lib/components/Blocks.js +0 -2
  834. package/mobile/lib/components/Blocks.js.map +1 -1
  835. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +2 -2
  836. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  837. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +3 -3
  838. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  839. package/mobile/lib/components/Calculator/renderProposal.js +2 -2
  840. package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
  841. package/mobile/lib/components/Calculator/renderRealEstateValue.js +2 -2
  842. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  843. package/mobile/lib/components/Calculator/renderWantedSumInput.js +3 -3
  844. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  845. package/mobile/lib/components/CardTransfer/CardTransfer.js +10 -8
  846. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  847. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -9
  848. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  849. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
  850. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  851. package/mobile/lib/components/ContentPage/ContentPage.page.json +0 -1
  852. package/mobile/lib/components/DepositFiltration/DepositFiltration.d.ts +6 -0
  853. package/mobile/lib/components/DepositFiltration/DepositFiltration.js +32 -0
  854. package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -0
  855. package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.d.ts +32 -0
  856. package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.js +2 -0
  857. package/mobile/lib/components/DepositFiltration/DepositFiltrationContent.js.map +1 -0
  858. package/mobile/lib/components/Footer/Footer.js +3 -9
  859. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  860. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -1
  861. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  862. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +3 -1
  863. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
  864. package/mobile/lib/components/Footer/MediaButton.js +1 -7
  865. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  866. package/mobile/lib/components/Footer/TextInformation.js +3 -3
  867. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  868. package/mobile/lib/components/Footer/buttonStylesWithText.d.ts +2 -0
  869. package/mobile/lib/components/Footer/buttonStylesWithText.js +9 -0
  870. package/mobile/lib/components/Footer/buttonStylesWithText.js.map +1 -0
  871. package/mobile/lib/components/Footer/horizontalNavigationLinkStyles.d.ts +1 -0
  872. package/mobile/lib/components/Footer/horizontalNavigationLinkStyles.js +2 -0
  873. package/mobile/lib/components/Footer/horizontalNavigationLinkStyles.js.map +1 -0
  874. package/mobile/lib/components/Footer/textInformationTextSize.d.ts +1 -0
  875. package/mobile/lib/components/Footer/textInformationTextSize.js +2 -0
  876. package/mobile/lib/components/Footer/textInformationTextSize.js.map +1 -0
  877. package/mobile/lib/components/Header/Header.js +2 -2
  878. package/mobile/lib/components/Header/Header.js.map +1 -1
  879. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  880. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  881. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  882. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  883. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +2 -1
  884. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  885. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.d.ts +6 -0
  886. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +15 -0
  887. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -0
  888. package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +18 -0
  889. package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.js +2 -0
  890. package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.js.map +1 -0
  891. package/mobile/lib/components/OfficeMap/OfficeMap.js +2 -2
  892. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  893. package/mobile/lib/components/OfficeMap/useOfficeMap.d.ts +2 -0
  894. package/mobile/lib/components/OfficeMap/useOfficeMap.js +1 -2
  895. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  896. package/mobile/lib/components/PictureText/PictureText.js +2 -2
  897. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  898. package/mobile/lib/components/ProductBlock/ProductBlock.js +6 -5
  899. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  900. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +0 -13
  901. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +6 -7
  902. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  903. package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
  904. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +7 -5
  905. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  906. package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -2
  907. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  908. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  909. package/mobile/lib/components/ProductGallery/ProductGallery.js +10 -19
  910. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  911. package/mobile/lib/components/RollupItem/RollupItem.js +18 -8
  912. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  913. package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +2 -0
  914. package/mobile/lib/components/RollupItem/foldableSectionStyles.d.ts +1 -0
  915. package/mobile/lib/components/RollupItem/foldableSectionStyles.js +2 -0
  916. package/mobile/lib/components/RollupItem/foldableSectionStyles.js.map +1 -0
  917. package/mobile/lib/components/RollupItem/getIconName.d.ts +1 -0
  918. package/mobile/lib/components/RollupItem/getIconName.js +2 -0
  919. package/mobile/lib/components/RollupItem/getIconName.js.map +1 -0
  920. package/mobile/lib/components/RollupItem/labelSize.d.ts +1 -0
  921. package/mobile/lib/components/RollupItem/labelSize.js +2 -0
  922. package/mobile/lib/components/RollupItem/labelSize.js.map +1 -0
  923. package/mobile/lib/components/RollupItem/rollupIconVersion.d.ts +1 -0
  924. package/mobile/lib/components/RollupItem/rollupIconVersion.js +2 -0
  925. package/mobile/lib/components/RollupItem/rollupIconVersion.js.map +1 -0
  926. package/mobile/lib/components/RollupItem/rollupItemStyles.d.ts +1 -0
  927. package/mobile/lib/components/RollupItem/rollupItemStyles.js +2 -0
  928. package/mobile/lib/components/RollupItem/rollupItemStyles.js.map +1 -0
  929. package/mobile/lib/components/Tile/Tile.js +2 -2
  930. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  931. package/mobile/lib/content-page-repository/transformContentPage.js +12 -4
  932. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  933. package/mobile/lib/content-page-repository/transformDocumentLink.d.ts +3 -0
  934. package/mobile/lib/content-page-repository/transformDocumentLink.js +26 -0
  935. package/mobile/lib/content-page-repository/transformDocumentLink.js.map +1 -0
  936. package/mobile/lib/hooks/useForm.d.ts +8 -4
  937. package/mobile/lib/hooks/useForm.js +5 -3
  938. package/mobile/lib/hooks/useForm.js.map +1 -1
  939. package/mobile/lib/hooks/useNormalizedInput.d.ts +11 -0
  940. package/mobile/lib/hooks/useNormalizedInput.js +20 -0
  941. package/mobile/lib/hooks/useNormalizedInput.js.map +1 -0
  942. package/mobile/lib/hooks/useSWRResource.js +2 -1
  943. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  944. package/mobile/lib/icons/IconName.d.ts +12 -2
  945. package/mobile/lib/icons/IconName.js +11 -1
  946. package/mobile/lib/icons/IconName.js.map +1 -1
  947. package/mobile/lib/services/search/useSearch.js +3 -2
  948. package/mobile/lib/services/search/useSearch.js.map +1 -1
  949. package/mobile/lib/services/sitemap/SitemapData.d.ts +1 -1
  950. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationContent.d.ts +102 -0
  951. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationContent.js +2 -0
  952. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationContent.js.map +1 -0
  953. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +7 -0
  954. package/mobile/lib/{components/Filtration/FiltrationInner.js → ui-kit/BaseFiltration/BaseFiltrationInner.js} +8 -8
  955. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -0
  956. package/mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js +29 -0
  957. package/mobile/lib/ui-kit/BaseFiltration/checkShouldRenderBlock.js.map +1 -0
  958. package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.d.ts +15 -0
  959. package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +20 -0
  960. package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -0
  961. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +4 -5
  962. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  963. package/mobile/lib/ui-kit/BlockWrapper.js +1 -1
  964. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  965. package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
  966. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  967. package/mobile/lib/ui-kit/ControlProps.d.ts +1 -1
  968. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -2
  969. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +3 -16
  970. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  971. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
  972. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +4 -0
  973. package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +2 -0
  974. package/mobile/lib/ui-kit/Icon/RoundedIcon.js +11 -0
  975. package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -0
  976. package/mobile/lib/ui-kit/Input/Input.d.ts +1 -1
  977. package/mobile/lib/ui-kit/Input/Input.js +3 -2
  978. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  979. package/mobile/lib/ui-kit/Input/InputProps.d.ts +4 -5
  980. package/mobile/lib/ui-kit/InputRange/InputRange.js +10 -12
  981. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  982. package/mobile/lib/ui-kit/InputRange/InputRangeProps.d.ts +2 -4
  983. package/mobile/lib/ui-kit/LinkList/LinkList.d.ts +2 -0
  984. package/mobile/lib/ui-kit/LinkList/LinkList.js +10 -0
  985. package/mobile/lib/ui-kit/LinkList/LinkList.js.map +1 -0
  986. package/mobile/lib/ui-kit/LinkList/LinkListProps.d.ts +5 -0
  987. package/mobile/lib/ui-kit/LinkList/LinkListProps.js +2 -0
  988. package/mobile/lib/ui-kit/LinkList/LinkListProps.js.map +1 -0
  989. package/mobile/lib/ui-kit/LinkList/linkListStyles.d.ts +1 -0
  990. package/mobile/lib/ui-kit/LinkList/linkListStyles.js +2 -0
  991. package/mobile/lib/ui-kit/LinkList/linkListStyles.js.map +1 -0
  992. package/mobile/lib/ui-kit/List/List.js +2 -1
  993. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  994. package/mobile/lib/ui-kit/List/ListItem.js +5 -4
  995. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  996. package/mobile/lib/ui-kit/List/ListProps.d.ts +0 -2
  997. package/mobile/lib/ui-kit/NumberInput/NumberInput.d.ts +8 -0
  998. package/mobile/lib/ui-kit/NumberInput/NumberInput.js +20 -0
  999. package/mobile/lib/ui-kit/NumberInput/NumberInput.js.map +1 -0
  1000. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.d.ts +1 -1
  1001. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +2 -2
  1002. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  1003. package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +5 -2
  1004. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +22 -3
  1005. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  1006. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  1007. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  1008. package/mobile/lib/ui-kit/SearchDialog/SearchInput.d.ts +0 -1
  1009. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +2 -2
  1010. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  1011. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js +5 -3
  1012. package/mobile/lib/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.js.map +1 -1
  1013. package/mobile/lib/utils/identity.d.ts +1 -0
  1014. package/mobile/lib/utils/identity.js +2 -0
  1015. package/mobile/lib/utils/identity.js.map +1 -0
  1016. package/mobile/lib/utils/isEmpty.d.ts +1 -0
  1017. package/mobile/lib/utils/isEmpty.js +6 -0
  1018. package/mobile/lib/utils/isEmpty.js.map +1 -0
  1019. package/mobile/lib/utils/joinList.d.ts +1 -1
  1020. package/mobile/lib/utils/joinList.js +1 -3
  1021. package/mobile/lib/utils/joinList.js.map +1 -1
  1022. package/mobile/lib/utils/toLocalNumberFormat.d.ts +1 -0
  1023. package/mobile/lib/utils/toLocalNumberFormat.js +5 -0
  1024. package/mobile/lib/utils/toLocalNumberFormat.js.map +1 -0
  1025. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
  1026. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  1027. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +4 -4
  1028. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +6 -10
  1029. package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -4
  1030. package/mobile/src/components/BaseTile/BaseTile.tsx +32 -9
  1031. package/mobile/src/components/Blocks.ts +0 -2
  1032. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +2 -2
  1033. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +3 -3
  1034. package/mobile/src/components/Calculator/renderProposal.tsx +2 -2
  1035. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +2 -2
  1036. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +3 -3
  1037. package/mobile/src/components/CardTransfer/CardTransfer.tsx +16 -12
  1038. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +39 -40
  1039. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +4 -2
  1040. package/mobile/src/components/ContentPage/ContentPage.page.json +0 -1
  1041. package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +61 -0
  1042. package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +66 -0
  1043. package/mobile/src/components/DepositFiltration/DepositFiltrationContent.ts +39 -0
  1044. package/mobile/src/components/Footer/Footer.tsx +21 -30
  1045. package/mobile/src/components/Footer/HorizontalNavigation.tsx +4 -3
  1046. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +3 -1
  1047. package/mobile/src/components/Footer/MediaButton.tsx +1 -10
  1048. package/mobile/src/components/Footer/TextInformation.tsx +17 -17
  1049. package/mobile/src/components/Footer/buttonStylesWithText.ts +15 -0
  1050. package/mobile/src/components/Footer/horizontalNavigationLinkStyles.ts +1 -0
  1051. package/mobile/src/components/Footer/textInformationTextSize.ts +1 -0
  1052. package/mobile/src/components/Header/Header.tsx +2 -2
  1053. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  1054. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -6
  1055. package/mobile/src/components/LinkDocs/LinkDocs.ui.json +9 -1
  1056. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +5 -1
  1057. package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +29 -0
  1058. package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +23 -0
  1059. package/mobile/src/components/OfficeMap/OfficeMap.tsx +2 -2
  1060. package/mobile/src/components/OfficeMap/useOfficeMap.ts +1 -3
  1061. package/mobile/src/components/PictureText/PictureText.tsx +2 -2
  1062. package/mobile/src/components/ProductBlock/ProductBlock.tsx +16 -9
  1063. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +0 -13
  1064. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +43 -45
  1065. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +11 -14
  1066. package/mobile/src/components/ProductBlock/renderBenefit.tsx +3 -12
  1067. package/mobile/src/components/ProductGallery/ProductGallery.tsx +50 -73
  1068. package/mobile/src/components/RollupItem/RollupItem.tsx +52 -38
  1069. package/mobile/src/components/RollupItem/RollupItemContent.ts +2 -0
  1070. package/mobile/src/components/RollupItem/foldableSectionStyles.ts +1 -0
  1071. package/mobile/src/components/RollupItem/getIconName.tsx +2 -0
  1072. package/mobile/src/components/RollupItem/labelSize.tsx +1 -0
  1073. package/mobile/src/components/RollupItem/rollupIconVersion.tsx +1 -0
  1074. package/mobile/src/components/RollupItem/rollupItemStyles.ts +1 -0
  1075. package/mobile/src/components/Tile/Tile.tsx +2 -8
  1076. package/mobile/src/content-page-repository/transformContentPage.ts +19 -7
  1077. package/mobile/src/content-page-repository/transformDocumentLink.ts +37 -0
  1078. package/mobile/src/hooks/useForm.ts +16 -8
  1079. package/mobile/src/hooks/useNormalizedInput.ts +33 -0
  1080. package/mobile/src/hooks/useSWRResource.ts +3 -1
  1081. package/mobile/src/icons/ArrowDownSolidIcon.svg +1 -0
  1082. package/mobile/src/icons/ArrowUpSolidIcon.svg +1 -0
  1083. package/mobile/src/icons/BagIcon.svg +1 -0
  1084. package/mobile/src/icons/BriefcaseIcon.svg +7 -0
  1085. package/mobile/src/icons/ClientIcon.svg +1 -0
  1086. package/mobile/src/icons/IconName.ts +5 -5
  1087. package/mobile/src/services/search/useSearch.ts +3 -2
  1088. package/mobile/src/services/sitemap/SitemapData.ts +1 -1
  1089. package/mobile/src/{components/Filtration/FiltrationContent.ts → ui-kit/BaseFiltration/BaseFiltrationContent.ts} +38 -24
  1090. package/mobile/src/{components/Filtration/FiltrationInner.tsx → ui-kit/BaseFiltration/BaseFiltrationInner.tsx} +9 -9
  1091. package/mobile/src/ui-kit/BaseFiltration/checkShouldRenderBlock.ts +49 -0
  1092. package/mobile/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +75 -0
  1093. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -19
  1094. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -9
  1095. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  1096. package/mobile/src/ui-kit/ControlProps.ts +1 -1
  1097. package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +12 -38
  1098. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
  1099. package/mobile/src/ui-kit/Icon/IconProps.ts +5 -0
  1100. package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +16 -0
  1101. package/mobile/src/ui-kit/Input/Input.tsx +33 -16
  1102. package/mobile/src/ui-kit/Input/InputProps.ts +4 -5
  1103. package/mobile/src/ui-kit/InputRange/InputRange.tsx +43 -49
  1104. package/mobile/src/ui-kit/InputRange/InputRangeProps.ts +2 -4
  1105. package/mobile/src/ui-kit/LinkList/LinkList.tsx +25 -0
  1106. package/mobile/src/ui-kit/LinkList/LinkListProps.tsx +6 -0
  1107. package/mobile/src/ui-kit/LinkList/linkListStyles.ts +1 -0
  1108. package/mobile/src/ui-kit/List/List.tsx +10 -11
  1109. package/mobile/src/ui-kit/List/ListItem.tsx +11 -7
  1110. package/mobile/src/ui-kit/List/ListProps.ts +0 -2
  1111. package/mobile/src/ui-kit/NumberInput/NumberInput.tsx +35 -0
  1112. package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +2 -3
  1113. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +36 -4
  1114. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -1
  1115. package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -3
  1116. package/mobile/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +9 -5
  1117. package/mobile/src/utils/identity.ts +1 -0
  1118. package/mobile/src/utils/isEmpty.ts +6 -0
  1119. package/mobile/src/utils/joinList.ts +4 -4
  1120. package/mobile/src/utils/toLocalNumberFormat.ts +7 -0
  1121. package/package.json +3 -3
  1122. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -0
  1123. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -2
  1124. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  1125. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +4 -4
  1126. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +6 -10
  1127. package/src/components/ApplicationForm/renderWedDataOrganization.tsx +4 -4
  1128. package/src/components/BaseTile/BaseTile.tsx +32 -9
  1129. package/src/components/Blocks.mobile.ts +0 -2
  1130. package/src/components/Blocks.ts +6 -4
  1131. package/src/components/Bonus/Bonus.fixture.tsx +2 -1
  1132. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -0
  1133. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +1 -0
  1134. package/src/components/Calculator/Calculator.fixture.tsx +1 -1
  1135. package/src/components/Calculator/CalculatorValueBlock.tsx +2 -2
  1136. package/src/components/Calculator/renderInitialFeeInput.tsx +3 -3
  1137. package/src/components/Calculator/renderProposal.tsx +2 -2
  1138. package/src/components/Calculator/renderRealEstateValue.tsx +2 -2
  1139. package/src/components/Calculator/renderWantedSumInput.tsx +3 -3
  1140. package/src/components/CardTransfer/CardTransfer.fixture.tsx +1 -0
  1141. package/src/components/CardTransfer/CardTransfer.tsx +16 -12
  1142. package/src/components/Carousel/Carousel.fixture.mobile.tsx +2 -1
  1143. package/src/components/Carousel/Carousel.fixture.tsx +2 -1
  1144. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +2 -0
  1145. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -0
  1146. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +2 -0
  1147. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +3 -1
  1148. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx +2 -1
  1149. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +39 -40
  1150. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +2 -0
  1151. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +2 -0
  1152. package/src/components/CarouselProductCard/CarouselProductCard.tsx +4 -2
  1153. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +2 -0
  1154. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +2 -1
  1155. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +2 -1
  1156. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -3
  1157. package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +2 -0
  1158. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +2 -0
  1159. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -0
  1160. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +2 -1
  1161. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +2 -1
  1162. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +2 -7
  1163. package/src/components/ContentPage/ContentPage.page.json +0 -1
  1164. package/src/components/DepositFiltration/DepositFiltration.example.json +61 -0
  1165. package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +190 -0
  1166. package/src/components/DepositFiltration/DepositFiltration.tsx +66 -0
  1167. package/src/components/DepositFiltration/DepositFiltrationContent.ts +39 -0
  1168. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +2 -1
  1169. package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +1 -0
  1170. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -0
  1171. package/src/components/Footer/Footer.fixture.tsx +1 -0
  1172. package/src/components/Footer/Footer.mobile.tsx +21 -30
  1173. package/src/components/Footer/HorizontalNavigation.mobile.tsx +4 -3
  1174. package/src/components/Footer/HorizontalNavigationLink.tsx +3 -1
  1175. package/src/components/Footer/MediaButton.tsx +1 -10
  1176. package/src/components/Footer/TextInformation.tsx +5 -3
  1177. package/src/components/Footer/buttonStylesWithText.mobile.ts +15 -0
  1178. package/src/components/Footer/buttonStylesWithText.ts +15 -0
  1179. package/src/components/Footer/horizontalNavigationLinkStyles.mobile.ts +1 -0
  1180. package/src/components/Footer/horizontalNavigationLinkStyles.ts +1 -0
  1181. package/src/components/Footer/textInformationTextSize.mobile.ts +1 -0
  1182. package/src/components/Footer/textInformationTextSize.ts +1 -0
  1183. package/src/components/Header/Header.fixture.mobile.tsx +1 -0
  1184. package/src/components/Header/Header.fixture.tsx +1 -0
  1185. package/src/components/Header/Header.mobile.tsx +2 -2
  1186. package/src/components/Headline/Headline.fixture.mobile.tsx +2 -1
  1187. package/src/components/Headline/Headline.fixture.tsx +2 -1
  1188. package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +2 -1
  1189. package/src/components/ImgBlock/ImgBlock.fixture.mobile.tsx +2 -1
  1190. package/src/components/ImgBlock/ImgBlock.fixture.tsx +2 -1
  1191. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -0
  1192. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  1193. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +1 -0
  1194. package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -6
  1195. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -0
  1196. package/src/components/LinkDocs/LinkDocs.fixture.tsx +1 -0
  1197. package/src/components/LinkDocs/LinkDocs.ui.json +9 -1
  1198. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -1
  1199. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +5 -1
  1200. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  1201. package/src/components/{Filtration/Filtration.fixture.tsx → MortgageFiltration/MortgageFiltration.fixture.tsx} +7 -5
  1202. package/src/components/MortgageFiltration/MortgageFiltration.tsx +29 -0
  1203. package/src/components/MortgageFiltration/MortgageFiltrationContent.ts +23 -0
  1204. package/src/components/OfficeMap/OfficeMap.fixture.tsx +1 -0
  1205. package/src/components/OfficeMap/OfficeMap.tsx +2 -2
  1206. package/src/components/OfficeMap/useOfficeMap.ts +1 -3
  1207. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -0
  1208. package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +1 -0
  1209. package/src/components/PictureText/PictureText.fixture.tsx +2 -1
  1210. package/src/components/PictureText/PictureText.tsx +2 -2
  1211. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -1
  1212. package/src/components/ProductBlock/ProductBlock.fixture.tsx +3 -3
  1213. package/src/components/ProductBlock/ProductBlock.tsx +14 -31
  1214. package/src/components/ProductBlock/ProductBlockContent.ts +0 -13
  1215. package/src/components/ProductBlock/ProductBlockInner.tsx +29 -46
  1216. package/src/components/ProductBlock/renderBackwardButton.tsx +11 -14
  1217. package/src/components/ProductBlock/renderBenefit.tsx +3 -12
  1218. package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -1
  1219. package/src/components/ProductGallery/ProductGallery.tsx +50 -73
  1220. package/src/components/ProductTile/ProductTile.fixture.tsx +2 -1
  1221. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -0
  1222. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +1 -0
  1223. package/src/components/RichTextBlock/RichTextBlock.fixture.mobile.tsx +1 -0
  1224. package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +1 -0
  1225. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +24 -3
  1226. package/src/components/RollupItem/RollupItem.fixture.tsx +2 -0
  1227. package/src/components/RollupItem/RollupItem.tsx +73 -34
  1228. package/src/components/RollupItem/RollupItemContent.ts +2 -0
  1229. package/src/components/RollupItem/foldableSectionStyles.mobile.ts +1 -0
  1230. package/src/components/RollupItem/foldableSectionStyles.ts +1 -0
  1231. package/src/components/RollupItem/getIconName.mobile.tsx +2 -0
  1232. package/src/components/RollupItem/getIconName.tsx +1 -0
  1233. package/src/components/RollupItem/labelSize.mobile.tsx +1 -0
  1234. package/src/components/RollupItem/labelSize.tsx +1 -0
  1235. package/src/components/RollupItem/rollupIconVersion.mobile.tsx +1 -0
  1236. package/src/components/RollupItem/rollupIconVersion.tsx +1 -0
  1237. package/src/components/RollupItem/rollupItemStyles.mobile.ts +1 -0
  1238. package/src/components/RollupItem/rollupItemStyles.ts +2 -0
  1239. package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -0
  1240. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -0
  1241. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -0
  1242. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +2 -0
  1243. package/src/components/Tabs/Tabs.fixture.tsx +1 -0
  1244. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +1 -0
  1245. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -0
  1246. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +2 -1
  1247. package/src/components/TextBlock/TextBlock.fixture.tsx +2 -1
  1248. package/src/components/Tile/Tile.fixture.tsx +2 -1
  1249. package/src/components/Tile/Tile.tsx +2 -8
  1250. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +71 -2
  1251. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +3 -2
  1252. package/src/components/Video/Video.fixture.tsx +2 -0
  1253. package/src/content-page-repository/transformContentPage.ts +19 -7
  1254. package/src/content-page-repository/transformDocumentLink.ts +37 -0
  1255. package/src/hooks/useForm.ts +16 -8
  1256. package/src/hooks/useNormalizedInput.ts +33 -0
  1257. package/src/hooks/useSWRResource.ts +3 -1
  1258. package/src/icons/ArrowDownSolidIcon.svg +1 -0
  1259. package/src/icons/ArrowUpSolidIcon.svg +1 -0
  1260. package/src/icons/BagIcon.svg +1 -0
  1261. package/src/icons/BriefcaseIcon.svg +7 -0
  1262. package/src/icons/ClientIcon.svg +1 -0
  1263. package/src/icons/IconName.ts +19 -1
  1264. package/src/services/search/useSearch.ts +3 -2
  1265. package/src/services/sitemap/SitemapData.ts +1 -1
  1266. package/src/{components/Filtration/FiltrationContent.ts → ui-kit/BaseFiltration/BaseFiltrationContent.ts} +38 -24
  1267. package/src/{components/Filtration/FiltrationInner.tsx → ui-kit/BaseFiltration/BaseFiltrationInner.tsx} +9 -9
  1268. package/src/ui-kit/BaseFiltration/checkShouldRenderBlock.ts +49 -0
  1269. package/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +75 -0
  1270. package/src/ui-kit/BenefitItem/BenefitItem.tsx +17 -19
  1271. package/src/ui-kit/BlockWrapper.tsx +1 -9
  1272. package/src/ui-kit/Button/Button.fixture.tsx +1 -0
  1273. package/src/ui-kit/Button/renderButtonsSection.tsx +1 -1
  1274. package/src/ui-kit/ControlProps.ts +1 -1
  1275. package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +12 -38
  1276. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
  1277. package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +2 -0
  1278. package/src/ui-kit/Heading/Heading.fixture.tsx +2 -0
  1279. package/src/ui-kit/Icon/Icon.fixture.tsx +2 -1
  1280. package/src/ui-kit/Icon/IconProps.ts +5 -0
  1281. package/src/ui-kit/Icon/RoundedIcon.tsx +16 -0
  1282. package/src/ui-kit/Input/Input.tsx +33 -16
  1283. package/src/ui-kit/Input/InputProps.ts +4 -5
  1284. package/src/ui-kit/InputRange/InputRange.tsx +43 -49
  1285. package/src/ui-kit/InputRange/InputRangeProps.ts +2 -4
  1286. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +2 -0
  1287. package/{mobile/src/components/LinkList/linkListContentExample.ts → src/ui-kit/LinkList/LinkList.fixture.tsx} +13 -3
  1288. package/src/ui-kit/LinkList/LinkList.tsx +25 -0
  1289. package/src/ui-kit/LinkList/LinkListProps.tsx +6 -0
  1290. package/src/ui-kit/LinkList/linkListStyles.mobile.ts +1 -0
  1291. package/src/ui-kit/LinkList/linkListStyles.ts +1 -0
  1292. package/src/ui-kit/List/List.fixture.tsx +1 -0
  1293. package/src/ui-kit/List/List.tsx +10 -11
  1294. package/src/ui-kit/List/ListItem.tsx +11 -7
  1295. package/src/ui-kit/List/ListProps.ts +0 -2
  1296. package/src/ui-kit/LocationDialog/LocationDialog.fixture.tsx +2 -1
  1297. package/src/ui-kit/NumberInput/NumberInput.fixture.tsx +31 -0
  1298. package/src/ui-kit/NumberInput/NumberInput.tsx +35 -0
  1299. package/src/ui-kit/PhoneInput/PhoneInput.tsx +2 -3
  1300. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +1 -0
  1301. package/src/ui-kit/RichText/RichText.fixture.tsx +2 -0
  1302. package/src/ui-kit/SearchBar/SearchBar.tsx +36 -2
  1303. package/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -1
  1304. package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -3
  1305. package/src/ui-kit/Select/Select.fixture.tsx +2 -0
  1306. package/src/ui-kit/SlideCheckbox/SlideCheckbox.fixture.tsx +2 -0
  1307. package/src/ui-kit/SlideCheckboxGroup/SlideCheckboxGroup.tsx +9 -5
  1308. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +2 -1
  1309. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.tsx +2 -1
  1310. package/src/ui-kit/Tags/Tags.fixture.tsx +2 -0
  1311. package/src/utils/identity.ts +1 -0
  1312. package/src/utils/isEmpty.ts +6 -0
  1313. package/src/utils/joinList.ts +4 -4
  1314. package/src/utils/toLocalNumberFormat.ts +7 -0
  1315. package/tailwind.config.cjs +10 -5
  1316. package/bundle/components/BaseTile/BaseTileProps.d.ts +0 -14
  1317. package/bundle/components/Filtration/Filtration.d.ts +0 -6
  1318. package/bundle/components/Filtration/FiltrationInner.d.ts +0 -7
  1319. package/bundle/components/Filtration/renderFormItem.d.ts +0 -4
  1320. package/bundle/components/Footer/TextInformation.mobile.d.ts +0 -2
  1321. package/bundle/components/LinkList/LinkList.d.ts +0 -5
  1322. package/bundle/components/LinkList/LinkListContent.d.ts +0 -9
  1323. package/bundle/components/LinkList/linkListContentExample.d.ts +0 -2
  1324. package/bundle/components/ProductBlock/ProductBlock.mobile.d.ts +0 -5
  1325. package/bundle/components/ProductBlock/ProductBlockInner.mobile.d.ts +0 -4
  1326. package/bundle/components/RollupItem/RollupItem.mobile.d.ts +0 -5
  1327. package/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  1328. package/bundle/ui-kit/SearchBar/SearchBar.mobile.d.ts +0 -2
  1329. package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +0 -5
  1330. package/bundle/utils/addSpacesBetweenNumbers.d.ts +0 -1
  1331. package/dist/components/BaseTile/BaseTileProps.d.ts +0 -14
  1332. package/dist/components/BaseTile/BaseTileProps.js.map +0 -1
  1333. package/dist/components/Filtration/Filtration.d.ts +0 -6
  1334. package/dist/components/Filtration/Filtration.js +0 -18
  1335. package/dist/components/Filtration/Filtration.js.map +0 -1
  1336. package/dist/components/Filtration/FiltrationContent.js.map +0 -1
  1337. package/dist/components/Filtration/FiltrationInner.d.ts +0 -7
  1338. package/dist/components/Filtration/FiltrationInner.js.map +0 -1
  1339. package/dist/components/Filtration/checkShouldRenderBlock.js +0 -11
  1340. package/dist/components/Filtration/checkShouldRenderBlock.js.map +0 -1
  1341. package/dist/components/Filtration/renderFormItem.d.ts +0 -4
  1342. package/dist/components/Filtration/renderFormItem.js.map +0 -1
  1343. package/dist/components/Footer/TextInformation.mobile.d.ts +0 -2
  1344. package/dist/components/Footer/TextInformation.mobile.js +0 -9
  1345. package/dist/components/Footer/TextInformation.mobile.js.map +0 -1
  1346. package/dist/components/LinkList/LinkList.d.ts +0 -5
  1347. package/dist/components/LinkList/LinkList.js +0 -13
  1348. package/dist/components/LinkList/LinkList.js.map +0 -1
  1349. package/dist/components/LinkList/LinkListContent.d.ts +0 -9
  1350. package/dist/components/LinkList/LinkListContent.js.map +0 -1
  1351. package/dist/components/LinkList/linkListContentExample.d.ts +0 -2
  1352. package/dist/components/LinkList/linkListContentExample.js +0 -23
  1353. package/dist/components/LinkList/linkListContentExample.js.map +0 -1
  1354. package/dist/components/ProductBlock/ProductBlock.mobile.d.ts +0 -5
  1355. package/dist/components/ProductBlock/ProductBlock.mobile.js +0 -11
  1356. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +0 -1
  1357. package/dist/components/ProductBlock/ProductBlockInner.mobile.d.ts +0 -4
  1358. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +0 -18
  1359. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +0 -1
  1360. package/dist/components/RollupItem/RollupItem.mobile.d.ts +0 -5
  1361. package/dist/components/RollupItem/RollupItem.mobile.js +0 -30
  1362. package/dist/components/RollupItem/RollupItem.mobile.js.map +0 -1
  1363. package/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  1364. package/dist/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  1365. package/dist/ui-kit/SearchBar/SearchBar.mobile.d.ts +0 -2
  1366. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +0 -7
  1367. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +0 -1
  1368. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +0 -5
  1369. package/dist/ui-kit/SearchBar/SearchBarInner.js +0 -26
  1370. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +0 -1
  1371. package/dist/utils/addSpacesBetweenNumbers.d.ts +0 -1
  1372. package/dist/utils/addSpacesBetweenNumbers.js +0 -5
  1373. package/dist/utils/addSpacesBetweenNumbers.js.map +0 -1
  1374. package/lib/components/BaseTile/BaseTileProps.d.ts +0 -14
  1375. package/lib/components/BaseTile/BaseTileProps.js +0 -2
  1376. package/lib/components/BaseTile/BaseTileProps.js.map +0 -1
  1377. package/lib/components/Filtration/Filtration.d.ts +0 -6
  1378. package/lib/components/Filtration/Filtration.js +0 -16
  1379. package/lib/components/Filtration/Filtration.js.map +0 -1
  1380. package/lib/components/Filtration/FiltrationContent.js +0 -2
  1381. package/lib/components/Filtration/FiltrationContent.js.map +0 -1
  1382. package/lib/components/Filtration/FiltrationInner.d.ts +0 -7
  1383. package/lib/components/Filtration/FiltrationInner.js.map +0 -1
  1384. package/lib/components/Filtration/checkShouldRenderBlock.js +0 -8
  1385. package/lib/components/Filtration/checkShouldRenderBlock.js.map +0 -1
  1386. package/lib/components/Filtration/renderFormItem.d.ts +0 -4
  1387. package/lib/components/Filtration/renderFormItem.js +0 -19
  1388. package/lib/components/Filtration/renderFormItem.js.map +0 -1
  1389. package/lib/components/Footer/TextInformation.mobile.d.ts +0 -2
  1390. package/lib/components/Footer/TextInformation.mobile.js +0 -7
  1391. package/lib/components/Footer/TextInformation.mobile.js.map +0 -1
  1392. package/lib/components/LinkList/LinkList.d.ts +0 -5
  1393. package/lib/components/LinkList/LinkList.js +0 -11
  1394. package/lib/components/LinkList/LinkList.js.map +0 -1
  1395. package/lib/components/LinkList/LinkListContent.d.ts +0 -9
  1396. package/lib/components/LinkList/LinkListContent.js +0 -2
  1397. package/lib/components/LinkList/LinkListContent.js.map +0 -1
  1398. package/lib/components/LinkList/linkListContentExample.d.ts +0 -2
  1399. package/lib/components/LinkList/linkListContentExample.js +0 -21
  1400. package/lib/components/LinkList/linkListContentExample.js.map +0 -1
  1401. package/lib/components/ProductBlock/ProductBlock.mobile.d.ts +0 -5
  1402. package/lib/components/ProductBlock/ProductBlock.mobile.js +0 -9
  1403. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +0 -1
  1404. package/lib/components/ProductBlock/ProductBlockInner.mobile.d.ts +0 -4
  1405. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +0 -16
  1406. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +0 -1
  1407. package/lib/components/RollupItem/RollupItem.mobile.d.ts +0 -5
  1408. package/lib/components/RollupItem/RollupItem.mobile.js +0 -28
  1409. package/lib/components/RollupItem/RollupItem.mobile.js.map +0 -1
  1410. package/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  1411. package/lib/ui-kit/CurrencyInput/CurrencyInputProps.js +0 -2
  1412. package/lib/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  1413. package/lib/ui-kit/SearchBar/SearchBar.mobile.d.ts +0 -2
  1414. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +0 -5
  1415. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +0 -1
  1416. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +0 -5
  1417. package/lib/ui-kit/SearchBar/SearchBarInner.js +0 -24
  1418. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +0 -1
  1419. package/lib/utils/addSpacesBetweenNumbers.d.ts +0 -1
  1420. package/lib/utils/addSpacesBetweenNumbers.js +0 -2
  1421. package/lib/utils/addSpacesBetweenNumbers.js.map +0 -1
  1422. package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +0 -14
  1423. package/mobile/bundle/components/Filtration/Filtration.d.ts +0 -6
  1424. package/mobile/bundle/components/Filtration/FiltrationInner.d.ts +0 -7
  1425. package/mobile/bundle/components/Filtration/renderFormItem.d.ts +0 -4
  1426. package/mobile/bundle/components/LinkList/LinkList.d.ts +0 -5
  1427. package/mobile/bundle/components/LinkList/LinkListContent.d.ts +0 -9
  1428. package/mobile/bundle/components/LinkList/linkListContentExample.d.ts +0 -2
  1429. package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  1430. package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +0 -5
  1431. package/mobile/bundle/utils/addSpacesBetweenNumbers.d.ts +0 -1
  1432. package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +0 -14
  1433. package/mobile/dist/components/BaseTile/BaseTileProps.js.map +0 -1
  1434. package/mobile/dist/components/Filtration/Filtration.d.ts +0 -6
  1435. package/mobile/dist/components/Filtration/Filtration.js +0 -18
  1436. package/mobile/dist/components/Filtration/Filtration.js.map +0 -1
  1437. package/mobile/dist/components/Filtration/FiltrationContent.d.ts +0 -88
  1438. package/mobile/dist/components/Filtration/FiltrationContent.js +0 -2
  1439. package/mobile/dist/components/Filtration/FiltrationContent.js.map +0 -1
  1440. package/mobile/dist/components/Filtration/FiltrationInner.d.ts +0 -7
  1441. package/mobile/dist/components/Filtration/FiltrationInner.js.map +0 -1
  1442. package/mobile/dist/components/Filtration/checkShouldRenderBlock.js +0 -11
  1443. package/mobile/dist/components/Filtration/checkShouldRenderBlock.js.map +0 -1
  1444. package/mobile/dist/components/Filtration/renderFormItem.d.ts +0 -4
  1445. package/mobile/dist/components/Filtration/renderFormItem.js.map +0 -1
  1446. package/mobile/dist/components/LinkList/LinkList.d.ts +0 -5
  1447. package/mobile/dist/components/LinkList/LinkList.js +0 -13
  1448. package/mobile/dist/components/LinkList/LinkList.js.map +0 -1
  1449. package/mobile/dist/components/LinkList/LinkListContent.d.ts +0 -9
  1450. package/mobile/dist/components/LinkList/LinkListContent.js +0 -2
  1451. package/mobile/dist/components/LinkList/LinkListContent.js.map +0 -1
  1452. package/mobile/dist/components/LinkList/linkListContentExample.d.ts +0 -2
  1453. package/mobile/dist/components/LinkList/linkListContentExample.js +0 -23
  1454. package/mobile/dist/components/LinkList/linkListContentExample.js.map +0 -1
  1455. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  1456. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.js +0 -2
  1457. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  1458. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +0 -5
  1459. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +0 -26
  1460. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +0 -1
  1461. package/mobile/dist/utils/addSpacesBetweenNumbers.d.ts +0 -1
  1462. package/mobile/dist/utils/addSpacesBetweenNumbers.js +0 -5
  1463. package/mobile/dist/utils/addSpacesBetweenNumbers.js.map +0 -1
  1464. package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +0 -14
  1465. package/mobile/lib/components/BaseTile/BaseTileProps.js +0 -2
  1466. package/mobile/lib/components/BaseTile/BaseTileProps.js.map +0 -1
  1467. package/mobile/lib/components/Filtration/Filtration.d.ts +0 -6
  1468. package/mobile/lib/components/Filtration/Filtration.js +0 -16
  1469. package/mobile/lib/components/Filtration/Filtration.js.map +0 -1
  1470. package/mobile/lib/components/Filtration/FiltrationContent.d.ts +0 -88
  1471. package/mobile/lib/components/Filtration/FiltrationContent.js +0 -2
  1472. package/mobile/lib/components/Filtration/FiltrationContent.js.map +0 -1
  1473. package/mobile/lib/components/Filtration/FiltrationInner.d.ts +0 -7
  1474. package/mobile/lib/components/Filtration/FiltrationInner.js.map +0 -1
  1475. package/mobile/lib/components/Filtration/checkShouldRenderBlock.js +0 -8
  1476. package/mobile/lib/components/Filtration/checkShouldRenderBlock.js.map +0 -1
  1477. package/mobile/lib/components/Filtration/renderFormItem.d.ts +0 -4
  1478. package/mobile/lib/components/Filtration/renderFormItem.js +0 -19
  1479. package/mobile/lib/components/Filtration/renderFormItem.js.map +0 -1
  1480. package/mobile/lib/components/LinkList/LinkList.d.ts +0 -5
  1481. package/mobile/lib/components/LinkList/LinkList.js +0 -11
  1482. package/mobile/lib/components/LinkList/LinkList.js.map +0 -1
  1483. package/mobile/lib/components/LinkList/LinkListContent.d.ts +0 -9
  1484. package/mobile/lib/components/LinkList/LinkListContent.js +0 -2
  1485. package/mobile/lib/components/LinkList/LinkListContent.js.map +0 -1
  1486. package/mobile/lib/components/LinkList/linkListContentExample.d.ts +0 -2
  1487. package/mobile/lib/components/LinkList/linkListContentExample.js +0 -21
  1488. package/mobile/lib/components/LinkList/linkListContentExample.js.map +0 -1
  1489. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +0 -5
  1490. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.js +0 -2
  1491. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.js.map +0 -1
  1492. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +0 -5
  1493. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +0 -24
  1494. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +0 -1
  1495. package/mobile/lib/utils/addSpacesBetweenNumbers.d.ts +0 -1
  1496. package/mobile/lib/utils/addSpacesBetweenNumbers.js +0 -2
  1497. package/mobile/lib/utils/addSpacesBetweenNumbers.js.map +0 -1
  1498. package/mobile/src/components/BaseTile/BaseTileProps.ts +0 -15
  1499. package/mobile/src/components/Filtration/Filtration.tsx +0 -38
  1500. package/mobile/src/components/Filtration/checkShouldRenderBlock.ts +0 -18
  1501. package/mobile/src/components/Filtration/renderFormItem.tsx +0 -36
  1502. package/mobile/src/components/LinkList/LinkList.example.json +0 -23
  1503. package/mobile/src/components/LinkList/LinkList.tsx +0 -29
  1504. package/mobile/src/components/LinkList/LinkListContent.ts +0 -10
  1505. package/mobile/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +0 -6
  1506. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +0 -41
  1507. package/mobile/src/utils/addSpacesBetweenNumbers.ts +0 -2
  1508. package/src/components/BaseTile/BaseTileProps.ts +0 -15
  1509. package/src/components/Filtration/Filtration.tsx +0 -38
  1510. package/src/components/Filtration/Filtration.ui.json +0 -1
  1511. package/src/components/Filtration/checkShouldRenderBlock.ts +0 -18
  1512. package/src/components/Filtration/renderFormItem.tsx +0 -36
  1513. package/src/components/Footer/TextInformation.mobile.tsx +0 -22
  1514. package/src/components/Gallery/Gallery.ui.json +0 -1
  1515. package/src/components/LinkList/LinkList.example.json +0 -23
  1516. package/src/components/LinkList/LinkList.fixture.tsx +0 -11
  1517. package/src/components/LinkList/LinkList.tsx +0 -29
  1518. package/src/components/LinkList/LinkList.ui.json +0 -1
  1519. package/src/components/LinkList/LinkListContent.ts +0 -10
  1520. package/src/components/LinkList/linkListContentExample.ts +0 -22
  1521. package/src/components/MiniGallery/MiniGallery.ui.json +0 -1
  1522. package/src/components/ProductBlock/ProductBlock.mobile.tsx +0 -17
  1523. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +0 -65
  1524. package/src/components/RollupItem/RollupItem.mobile.tsx +0 -122
  1525. package/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +0 -6
  1526. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +0 -6
  1527. package/src/ui-kit/SearchBar/SearchBarInner.tsx +0 -41
  1528. package/src/utils/addSpacesBetweenNumbers.ts +0 -2
  1529. /package/bundle/{components/Filtration → ui-kit/BaseFiltration}/checkShouldRenderBlock.d.ts +0 -0
  1530. /package/dist/{components/Filtration → ui-kit/BaseFiltration}/checkShouldRenderBlock.d.ts +0 -0
  1531. /package/lib/components/{LinkList/LinkList.fixture.d.ts → DepositFiltration/DepositFiltration.fixture.d.ts} +0 -0
  1532. /package/lib/{components/Filtration → ui-kit/BaseFiltration}/checkShouldRenderBlock.d.ts +0 -0
  1533. /package/mobile/bundle/{components/Filtration → ui-kit/BaseFiltration}/checkShouldRenderBlock.d.ts +0 -0
  1534. /package/mobile/dist/{components/Filtration → ui-kit/BaseFiltration}/checkShouldRenderBlock.d.ts +0 -0
  1535. /package/mobile/lib/{components/Filtration → ui-kit/BaseFiltration}/checkShouldRenderBlock.d.ts +0 -0
  1536. /package/mobile/src/components/{Filtration/Filtration.ui.json → DepositFiltration/DepositFiltration.ui.json} +0 -0
  1537. /package/mobile/src/components/{Filtration/Filtration.example.json → MortgageFiltration/MortgageFiltration.example.json} +0 -0
  1538. /package/mobile/src/components/{Gallery/Gallery.ui.json → MortgageFiltration/MortgageFiltration.ui.json} +0 -0
  1539. /package/{mobile/src/components/LinkList/LinkList.ui.json → src/components/DepositFiltration/DepositFiltration.ui.json} +0 -0
  1540. /package/src/components/{Filtration/Filtration.example.json → MortgageFiltration/MortgageFiltration.example.json} +0 -0
  1541. /package/{mobile/src/components/MiniGallery/MiniGallery.ui.json → src/components/MortgageFiltration/MortgageFiltration.ui.json} +0 -0
@@ -337,7 +337,7 @@
337
337
  transparent: 'bg-transparent text-primary-text',
338
338
  '': '',
339
339
  };
340
- const BlockWrapper = JSX(({ className = '', version = 'primary', isTheme = true, block, tag = 'section', role, children, }) => {
340
+ const BlockWrapper = JSX(({ className, version = 'primary', isTheme = true, block, tag = 'section', role, children }) => {
341
341
  const Tag = tag;
342
342
  const ref = useBlockIntersectionObserver(block);
343
343
  const [isHidden, setHidden] = useState(false);
@@ -359,21 +359,24 @@
359
359
  };
360
360
  const Heading = JSX(({ className = '', headingType = 'h3', as: Tag = 'h3', title, children }) => (jsx(Tag, { className: `font-sans m-0 ${styles$4[headingType]} ${className}`, children: title || children })));
361
361
 
362
+ const identity = (_) => _;
363
+
362
364
  const useForm = (initialState, onSubmit) => {
363
365
  const [formState, setFormState] = useState(initialState);
364
366
  const [isDirtyForm, setDirtyForm] = useState(false);
365
367
  const [dirtyFieldsMap, setDirtyFieldsMap] = useState({});
366
368
  const handlersMap = useRef({});
367
- const field = useCallback((fieldName) => {
369
+ const field = useCallback((fieldName, options) => {
370
+ const { parse = identity, format = identity } = options || {};
368
371
  if (!handlersMap.current) {
369
372
  handlersMap.current = {};
370
373
  }
371
374
  handlersMap.current[fieldName] ||= (value) => {
372
- setFormState((prev) => ({ ...prev, [fieldName]: value }));
375
+ setFormState((prev) => ({ ...prev, [fieldName]: parse(value) }));
373
376
  setDirtyFieldsMap((prev) => ({ ...prev, [fieldName]: true }));
374
377
  };
375
378
  return {
376
- value: formState[fieldName],
379
+ value: format(formState[fieldName]),
377
380
  isDirty: isDirtyForm || dirtyFieldsMap[fieldName],
378
381
  onChange: handlersMap.current[fieldName],
379
382
  };
@@ -406,44 +409,50 @@
406
409
  const isValidationSuccess = (info) => !info?.length;
407
410
  const validator = (predicate) => (message) => (_) => predicate(_) ? [] : [message];
408
411
 
409
- const consistentDataMap = new Map();
410
- function useAsyncData(key, fetcher, { fallback } = {}) {
412
+ const isFilled = (_) => _ !== null && _ !== undefined;
413
+
414
+ const defaultCache = new Map();
415
+ const applyCache = (fetcher, cache = defaultCache) => (key) => {
416
+ const cachedData = cache.get(key);
417
+ if (isFilled(cachedData)) {
418
+ return cachedData;
419
+ }
420
+ const data = fetcher(key);
421
+ if (isFilled(data)) {
422
+ cache.set(key, Promise.resolve(data));
423
+ }
424
+ else {
425
+ cache.delete(key);
426
+ }
427
+ return data;
428
+ };
429
+
430
+ const isSimpleKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
431
+ function useAsyncData(key, fetcher, { fallback, cache } = {}) {
411
432
  const args = useMemo(() => keyToArgs(key), [key]);
412
- const [data, setData] = useState();
413
- const [error, setError] = useState();
414
- const updateData = (_) => {
415
- setData(_);
416
- setError(undefined);
417
- };
418
- const updateError = (_) => {
419
- setData(undefined);
420
- setError(_);
421
- };
422
- const chainToConsistentResult = (_) => {
423
- _.then(rawData => consistentDataMap.get(args) || rawData)
424
- .then(updateData)
425
- .catch(updateError);
426
- };
433
+ const [simpleKey] = isSimpleKey(args) ? args : [];
434
+ const [data, setData] = useState(undefined);
435
+ const [error, setError] = useState(undefined);
427
436
  useEffect(() => {
428
- const isEmptyKey = args.every(_ => _ === null);
437
+ const isEmptyKey = !args.some(isFilled);
429
438
  if (isEmptyKey) {
430
439
  return;
431
440
  }
432
- try {
433
- const _ = fetcher(...args);
434
- if ('then' in _) {
435
- chainToConsistentResult(_);
441
+ (async () => {
442
+ try {
443
+ const newData = await (simpleKey
444
+ ? applyCache(fetcher, cache)(simpleKey)
445
+ : fetcher(...args));
446
+ setData(newData);
447
+ setError(undefined);
436
448
  }
437
- else {
438
- updateData(_);
449
+ catch (err) {
450
+ setData(undefined);
451
+ setError(err);
439
452
  }
440
- }
441
- catch (err) {
442
- updateError(err);
443
- }
444
- }, [fetcher, ...args]);
445
- const simpleKey = args[0];
446
- const fallbackData = fallback && typeof simpleKey === 'string' && fallback[simpleKey];
453
+ })();
454
+ }, [fetcher, cache, args]);
455
+ const fallbackData = fallback && simpleKey && fallback[simpleKey];
447
456
  return {
448
457
  data: !data && fallbackData ? fallbackData : data,
449
458
  error,
@@ -452,9 +461,6 @@
452
461
  };
453
462
  }
454
463
  function keyToArgs(key) {
455
- if (!key) {
456
- return [key];
457
- }
458
464
  if (Array.isArray(key)) {
459
465
  return key;
460
466
  }
@@ -487,10 +493,10 @@
487
493
  }
488
494
 
489
495
  const REGIONS_URL$1 = '/api/v1/regions';
490
- const EMPTY_VALUE$2 = [];
496
+ const EMPTY_VALUE$3 = [];
491
497
  function useGetRegions() {
492
498
  const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
493
- return data || EMPTY_VALUE$2;
499
+ return data || EMPTY_VALUE$3;
494
500
  }
495
501
 
496
502
  const useDialog = (id = '') => ({
@@ -665,7 +671,7 @@
665
671
  };
666
672
  };
667
673
 
668
- const Input = JSX(({ className = '', inputClassName = '', id, name, type = 'text', label, value = '', valid = true, children, onChange, ...inputProps }) => {
674
+ const Input = JSX(({ key, className = '', inputClassName = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, }) => {
669
675
  const handleChange = useCallback((e) => {
670
676
  onChange && onChange(e.target?.value || '');
671
677
  }, [onChange]);
@@ -673,7 +679,7 @@
673
679
  const validStyle = valid
674
680
  ? 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'
675
681
  : 'border-error';
676
- return (jsxs("div", { className: style('relative', className), children: [label ? jsx("label", { className: "block text-m-light mb-2", children: label }) : null, jsx("input", { className: style('w-full border rounded-md text-primary-text outline-none p-4', paddingStyle, validStyle, inputClassName), id: id, name: name || id, type: type, value: value, onInput: handleChange, ...inputProps }), children] }));
682
+ return (jsxs("div", { className: style('relative', className), children: [jsxs("label", { children: [label ? (jsx("div", { className: "mb-2", children: jsx(Text, { size: "text-m", font: "font-light", children: label }) })) : null, jsx("input", { className: style('w-full border rounded-md text-primary-text outline-none p-4', paddingStyle, validStyle, inputClassName), id: id, name: name || id, placeholder: placeholder, type: type, value: value, onInput: handleChange, onFocus: onFocus, onBlur: onBlur, pattern: pattern }, key)] }), children] }));
677
683
  });
678
684
 
679
685
  const InputControl = JSX(({ className, label, value = '', error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(Input, { type: "text", "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs-light", color: "text-error", children: error })) : null })] })));
@@ -693,8 +699,8 @@
693
699
  }
694
700
 
695
701
  const PhoneInput = JSX(({ children, onChange, ...inputProps }) => {
696
- const handleChange = useCallback(({ target: { value } }) => onChange && onChange(normalizePhone(value || '')), [onChange]);
697
- return (jsx(Input, { onInput: handleChange, onFocus: handleChange, ...inputProps, children: children }));
702
+ const handleChange = useCallback((value) => onChange && onChange(normalizePhone(value)), [onChange]);
703
+ return (jsx(Input, { onChange: handleChange, onFocus: handleChange, ...inputProps, children: children }));
698
704
  });
699
705
 
700
706
  const PhoneInputControl = JSX(({ className, label, value, error, onChange, onBlur }) => (jsxs("div", { className: className, children: [jsx(PhoneInput, { "aria-label": label, label: label, valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur }), jsx("div", { className: "h-2", children: error ? (jsx(Text, { size: "text-xs-light", color: "text-error", children: error })) : null })] })));
@@ -709,7 +715,7 @@
709
715
  const innValidator = validator((_) => typeof _ === 'string' && (_.length === 10 || _.length === 12))(ERROR_MESSAGE);
710
716
  const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
711
717
 
712
- const renderAcquiringDataOrganization = (field) => (jsxs("div", { className: "flex justify-between gap-5 mb-5", children: [jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", 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 text-l w-full mb-3", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) })] }), jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] })] }));
718
+ const renderAcquiringDataOrganization = (field) => (jsxs("div", { className: "flex justify-between gap-5 mb-5", children: [jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", 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 mb-3", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) })] }), jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] })] }));
713
719
 
714
720
  const ACQUIRING_TYPES = [
715
721
  {
@@ -845,7 +851,7 @@
845
851
  return (jsxs("form", { className: "container", 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: "text-center mb-4" }), 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: "text-center mb-4" }), renderAcquiringDataOrganization(field), renderSlideCheckboxes(field), renderSubmitButton(button, 'mb-4'), jsx(Footnote, { link: link })] }));
846
852
  });
847
853
 
848
- const renderBusinessCardDataOrganization = (field) => (jsxs("div", { className: "flex justify-between gap-5", children: [jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), jsxs("div", { className: "w-1/2", children: [jsx(PhoneInputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
854
+ const renderBusinessCardDataOrganization = (field) => (jsxs("div", { className: "flex justify-between gap-5", children: [jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", 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 mb-3", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), jsxs("div", { className: "w-1/2", children: [jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
849
855
 
850
856
  const renderRegion$1 = ({ regions, field }) => (jsx("div", { className: "flex justify-between gap-5 mb-5", children: jsx("div", { className: "w-full", 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", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }) }));
851
857
 
@@ -882,14 +888,14 @@
882
888
  });
883
889
 
884
890
  const BRANCHES_URL = '/api/v1/branches';
885
- const EMPTY_VALUE$1 = [];
891
+ const EMPTY_VALUE$2 = [];
886
892
  function useBranches(regionCode) {
887
893
  const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
888
- return data || EMPTY_VALUE$1;
894
+ return data || EMPTY_VALUE$2;
889
895
  }
890
896
  const fetchSafeBoxes$1 = async (url) => {
891
897
  const result = await fetchJSON(url, { method: 'GET' });
892
- return result || EMPTY_VALUE$1;
898
+ return result || EMPTY_VALUE$2;
893
899
  };
894
900
 
895
901
  const MIN_CREDIT_AMOUNT = 1000;
@@ -899,12 +905,34 @@
899
905
  const MAX_CREDIT_TERM = 180;
900
906
  const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
901
907
 
902
- const renderCreditDataOrganization = (field) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') }), jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", 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 text-l w-full mb-3", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...field('mail') })] })] }));
908
+ const renderCreditDataOrganization = (field) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') }), jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "w-1/2", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", 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 mb-3", 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 mb-3", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...field('mail') })] })] }));
903
909
 
904
- const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', {}).format(number);
910
+ const useNormalizedInput = (props, { normalize, format }) => {
911
+ const { value, onFocus, onBlur, onChange } = props;
912
+ const [isFocused, setIsFocused] = useState(false);
913
+ const handleFocus = useCallback((e) => {
914
+ setIsFocused(true);
915
+ onFocus && onFocus(e);
916
+ }, []);
917
+ const handleBlur = useCallback(() => {
918
+ setIsFocused(false);
919
+ onChange && onChange(normalize(value));
920
+ onBlur && onBlur();
921
+ }, [onChange, value]);
922
+ return {
923
+ value: (isFocused || !format ? value : format(value)),
924
+ onFocus: handleFocus,
925
+ onBlur: handleBlur,
926
+ };
927
+ };
905
928
 
906
929
  const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
907
930
 
931
+ const toLocalNumberFormat = (fractionDigits = 0) => (_ = 0) => new Intl.NumberFormat('ru-RU', {
932
+ minimumFractionDigits: 0,
933
+ maximumFractionDigits: fractionDigits,
934
+ }).format(Number(_) || 0);
935
+
908
936
  function parseDecimal(value) {
909
937
  const rawValue = (value || '').replace(/\D/g, '');
910
938
  const unsafeDecimal = parseInt(rawValue, 10);
@@ -926,19 +954,16 @@
926
954
  const DISABLED_INPUT_CLASSES = 'disabled:border-gray disabled:bg-main-divider';
927
955
  const DEFAULT_MIN = 1;
928
956
  const DEFAULT_MAX = 100;
929
- const InputRange = JSX(({ className, title, items = [], list = [], min = list.length ? 0 : DEFAULT_MIN, max = list.length ? list.length - 1 : DEFAULT_MAX, step = 1, value = list[0] || min, disabled = false, onChange, }) => {
930
- const [isFocused, setFocused] = useState(false);
957
+ const InputRange = JSX((props) => {
958
+ const { className, title, items = [], list = [], min = list.length ? 0 : DEFAULT_MIN, max = list.length ? list.length - 1 : DEFAULT_MAX, step = 1, value = list[0] || min, disabled = false, onChange, } = props;
959
+ const normalizedProps = useNormalizedInput(props, {
960
+ normalize: (_ = 0) => list.length ? closestValue(list)(_) : clamp(_, min, max),
961
+ format: toLocalNumberFormat(),
962
+ });
931
963
  const handleChange = useCallback((e) => {
932
964
  onChange && onChange(parseDecimal(e.target?.value));
933
965
  }, [onChange]);
934
- const handleFocus = useCallback(() => {
935
- setFocused(true);
936
- }, []);
937
- const handleBlur = useCallback(() => {
938
- setFocused(false);
939
- onChange && onChange(list.length ? closestValue(list)(value) : clamp(value || 0, min, max));
940
- }, [onChange, value]);
941
- return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('m-0 mt-2 font-sans text-h3 w-full h-14', 'border border-solid border-gray rounded-md outline-none', 'p-0 pl-4 box-border', 'text-primary-text hover:border-primary-hover focus:border-primary-text', DISABLED_INPUT_CLASSES), value: isFocused ? value : addSpacesBetweenNumbers(value), disabled: disabled, onInput: handleChange, onFocus: handleFocus, onBlur: handleBlur }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
966
+ return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('m-0 mt-2 font-sans text-h3 w-full h-14', 'border border-solid border-gray rounded-md outline-none', 'p-0 pl-4 box-border', 'text-primary-text hover:border-primary-hover focus:border-primary-text', DISABLED_INPUT_CLASSES), disabled: disabled, onInput: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
942
967
  });
943
968
  const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
944
969
  const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-2", children: items.map((item, i) => (jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: item }, String(i)))) }));
@@ -1010,7 +1035,7 @@
1010
1035
  });
1011
1036
  }, [onSubmit]);
1012
1037
  const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1013
- 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: "text-center mb-4" }), jsxs("div", { className: "max-w-[560px] m-auto", children: [jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between items-center max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1038
+ 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: "text-center mb-4" }), jsxs("div", { className: "max-w-[560px] m-auto", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between items-center max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1014
1039
  });
1015
1040
 
1016
1041
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
@@ -1078,7 +1103,7 @@
1078
1103
  return (jsxs("div", { className: "mb-6", children: [jsxs("div", { className: "flex items-center mb-4 gap-6", 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-4 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 || '')) })] }));
1079
1104
  };
1080
1105
 
1081
- const renderWedDataOrganization = (field) => (jsxs("div", { children: [jsxs("div", { className: "flex justify-between gap-5", children: [jsx("div", { className: "w-1/2", children: jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", 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: "w-1/2", children: jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0424\u0418\u041E", ...withValidator(field('name'), nameValidator) }) })] }), jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(PhoneInputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }) }), jsx("div", { className: "w-1/2", children: jsx(InputControl, { className: "shrink-0 text-l w-full mb-3", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) }) })] })] }));
1106
+ const renderWedDataOrganization = (field) => (jsxs("div", { children: [jsxs("div", { className: "flex justify-between gap-5", children: [jsx("div", { className: "w-1/2", children: jsx(InputControl, { className: "shrink-0 w-full mb-3", 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: "w-1/2", children: jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u0424\u0418\u041E", ...withValidator(field('name'), nameValidator) }) })] }), jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }) }), jsx("div", { className: "w-1/2", children: jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) }) })] })] }));
1082
1107
 
1083
1108
  const initialFormState = {
1084
1109
  fullName: '',
@@ -1156,7 +1181,7 @@
1156
1181
  return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: _ }, `benefitListItem-${i}`))) })) : null;
1157
1182
  };
1158
1183
 
1159
- const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-2' : 'gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
1184
+ const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-2' : 'flex-wrap gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
1160
1185
  const renderButton = (buttonClassName = '') => (button, index) => {
1161
1186
  const { text, icon, iconRight, version, ...rest } = button || {};
1162
1187
  const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
@@ -1301,15 +1326,15 @@
1301
1326
  return isVisible ? (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: `absolute z-40 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: `absolute z-40 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
1302
1327
  }
1303
1328
 
1304
- const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => (jsxs("div", { className: style('mb-7', className), children: [title ? (jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsxs(Text, { size: "text-h3", children: [prefix, " ", addSpacesBetweenNumbers(Math.round(value)), " ", postfix] }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
1329
+ const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => (jsxs("div", { className: style('mb-7', className), children: [title ? (jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsxs(Text, { size: "text-h3", children: [prefix, " ", toLocalNumberFormat(2)(Math.round(value)), " ", postfix] }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
1305
1330
 
1306
- const DEFAULT_MIN_SUM = 10000;
1307
- const DEFAULT_MAX_SUM = 5000000;
1331
+ const DEFAULT_MIN_SUM$1 = 10000;
1332
+ const DEFAULT_MAX_SUM$1 = 5000000;
1308
1333
  const CREDIT_DEFAULT_SUM = 200000;
1309
1334
  const DEPOSIT_DEFAULT_SUM = 20000;
1310
- const DEFAULT_MIN_MONTHS = 13;
1311
- const DEFAULT_MAX_MONTHS = 60;
1312
- const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS - DEFAULT_MIN_MONTHS) / 2);
1335
+ const DEFAULT_MIN_MONTHS$1 = 13;
1336
+ const DEFAULT_MAX_MONTHS$1 = 60;
1337
+ const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS$1 - DEFAULT_MIN_MONTHS$1) / 2);
1313
1338
  const BUSINESS_DEFAULT_SUM = 100000;
1314
1339
  const BUSINESS_MIN_DAYS = 1;
1315
1340
  const BUSINESS_MAX_DAYS = 1095;
@@ -1320,10 +1345,10 @@
1320
1345
  const MONTHS_IN_YEAR = 12;
1321
1346
  const MONTHLY_INTEREST_RATE = MONTHS_IN_YEAR * 100;
1322
1347
  const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
1323
- minSum: DEFAULT_MIN_SUM,
1324
- maxSum: DEFAULT_MAX_SUM,
1325
- minMonths: DEFAULT_MIN_MONTHS,
1326
- maxMonths: DEFAULT_MAX_MONTHS,
1348
+ minSum: DEFAULT_MIN_SUM$1,
1349
+ maxSum: DEFAULT_MAX_SUM$1,
1350
+ minMonths: DEFAULT_MIN_MONTHS$1,
1351
+ maxMonths: DEFAULT_MAX_MONTHS$1,
1327
1352
  rate: 12.5,
1328
1353
  isSalaryClient: false,
1329
1354
  isPensionClient: false,
@@ -1377,8 +1402,8 @@
1377
1402
  const DEFAULT_MONEY_STEP = 1000;
1378
1403
  function renderWantedSumInput({ isShowItems = true, step = DEFAULT_MONEY_STEP, ...rest }) {
1379
1404
  const items = [
1380
- `От ${addSpacesBetweenNumbers(rest.min || 0)} ₽`,
1381
- `До ${addSpacesBetweenNumbers(rest.max || 0)} ₽`,
1405
+ `От ${toLocalNumberFormat(2)(rest.min || 0)} ₽`,
1406
+ `До ${toLocalNumberFormat(2)(rest.max || 0)} ₽`,
1382
1407
  ];
1383
1408
  return jsx(InputRange, { items: isShowItems ? items : [], step: step, ...rest });
1384
1409
  }
@@ -1848,53 +1873,37 @@
1848
1873
  })) }) }), jsx("div", { className: "w-full h-2 bg-primary-main" })] }));
1849
1874
  }
1850
1875
 
1851
- const getSanitizedValue = (_) => _.replace(/\s/g, '');
1852
-
1853
- const adjustValue = (val) => onlyOneDot(setZeroStart(replaceCommaToDot(getSanitizedValue(val))));
1854
- const localNumberFormat = (val) => new Intl.NumberFormat('ru-RU', {
1855
- minimumFractionDigits: 0,
1856
- maximumFractionDigits: 2,
1857
- })
1858
- .format(Number(getSanitizedValue(val)))
1859
- .replace(',', '.');
1860
- const onlyOneDot = (val) => {
1861
- const matches = val.match(/\./g) || [];
1862
- return matches.length > 1 ? val.slice(0, val.lastIndexOf('.')) : val;
1863
- };
1864
- const setZeroStart = (val) => {
1865
- const isZeroStart = val.indexOf('0') === 0 && val.length === 2;
1866
- const newVal = isZeroStart ? val.replace('0', '0.') : val;
1867
- return newVal.startsWith('.') ? newVal.replace('.', '0.') : newVal;
1868
- };
1869
- const replaceCommaToDot = (val) => String(val.replace(',', '.').replace(/[^.\d]/g, ''));
1870
-
1871
- const CurrencyInput = JSX(({ className = '', value = '', onChange, minValue = 0, maxValue = 300000, ...inputProps }) => {
1872
- const handleChange = useCallback((inputValue) => {
1873
- const adjustedVal = adjustValue(inputValue);
1874
- const clampVal = getClampValue(adjustedVal, clamp(Number(adjustedVal), minValue, maxValue));
1875
- onChange && onChange(clampVal);
1876
- }, [onChange]);
1877
- const handleBlur = useCallback(() => {
1878
- onChange && onChange(localNumberFormat(value));
1879
- }, [onChange, value]);
1880
- return (jsx(Input, { className: className, inputClassName: "w-full", value: value, onChange: handleChange, onBlur: handleBlur, ...inputProps, children: jsx("span", { className: "text-xl-light absolute right-4 bottom-4", children: "\u20BD" }) }));
1876
+ const NumberInput = JSX((props) => {
1877
+ const { onChange, min, max, defaultValue = '0', fractionDigits = 0, ...inputProps } = props;
1878
+ const normalizedProps = useNormalizedInput(props, {
1879
+ normalize: (_ = defaultValue) => min && max ? String(clamp(Number(sanitizeNumberStr(_)), min, max)) : sanitizeNumberStr(_),
1880
+ format: toLocalNumberFormat(fractionDigits),
1881
+ });
1882
+ const handleChange = useCallback((_) => onChange && onChange(sanitizeNumberStr(_)), [onChange]);
1883
+ return jsx(Input, { onChange: handleChange, ...inputProps, ...normalizedProps });
1881
1884
  });
1882
- const getClampValue = (val, clampVal) => Number(val) === clampVal ? val : String(clampVal);
1885
+ const sanitizeNumberStr = (_ = '') => _.replaceAll(',', '.')
1886
+ .replace(/[^\d.]/g, '')
1887
+ .replace(/([^.]*\.[^.]*)\./, '$1');
1888
+
1889
+ const CurrencyInput = JSX((props) => (jsx(NumberInput, { ...props, fractionDigits: 2, children: jsx("div", { className: "absolute right-4 bottom-4", children: jsx(Text, { size: "text-xl", font: "font-light", children: "\u20BD" }) }) })));
1883
1890
 
1884
- const AMOUNT_KEY = 'amount';
1885
- const FORM_URL = 'https://www.rshb.ru/p2p/';
1886
1891
  const DEFAULT_TITLE = 'Укажите сумму перевода';
1887
1892
  const DEFAULT_LABEL = 'Сумма перевода';
1888
1893
  const DEFAULT_PLACEHOLDER = '1500';
1894
+ const FORM_URL = 'https://www.rshb.ru/p2p/';
1895
+ const AMOUNT_KEY = 'amount';
1896
+ const INITIAL_FORM_STATE = {
1897
+ [AMOUNT_KEY]: 1500,
1898
+ };
1889
1899
  const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button, ...rest }) => {
1890
- const [value, setValue] = useState('');
1891
- const handleChange = useCallback((_) => setValue(_), []);
1892
- const isDisabled = !Number(getSanitizedValue(value));
1900
+ const [{ amount }, { field }] = useForm(INITIAL_FORM_STATE);
1901
+ const isDisabled = amount <= 0;
1893
1902
  const buttonStyle = isDisabled
1894
1903
  ? getDisabledButtonClasses({ version: button?.version })
1895
1904
  : getRegularButtonClasses({ className: 'text-white', version: button?.version });
1896
1905
  const link = useLink();
1897
- return (jsxs(BlockWrapper, { className: `p-default flex flex-col items-center ${className}`, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: handleChange, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
1906
+ return (jsxs(BlockWrapper, { className: style('p-default flex flex-col items-center', className), ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, valid: !isDisabled, placeholder: placeholder, label: label, ...field(AMOUNT_KEY, { parse: Number, format: String }) }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-4 mt-6', buttonStyle), disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
1898
1907
  });
1899
1908
 
1900
1909
  const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
@@ -2223,22 +2232,14 @@
2223
2232
  return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(ImgInner, { image: icon }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left pt-3 mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
2224
2233
  });
2225
2234
 
2226
- const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
2235
+ const BaseTile = JSX(({ className, title = '', insetTitle = '', buttons, leftImage, rightImage, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col font-sans', className), children: [backImage ? jsx("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title, jsxs("div", { className: "grow relative flex flex-wrap justify-between items-stretch gap-8", children: [leftImage, jsxs("div", { className: style('flex flex-col gap-8', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), buttons] }), rightImage ? jsx("div", { className: "sm:-order-1 md:-order-1", children: rightImage }) : null] })] })));
2227
2236
 
2228
2237
  const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
2229
2238
  const cardColumnsModeStyleMap = {
2230
2239
  1: 'flex-col',
2231
2240
  2: 'gap-x-10 flex-wrap',
2232
2241
  };
2233
- const CarouselInvestmentCard = JSX(({ additionalDescription, cardsList = [], className = '', columnsMode = 1, description, image, title, ...rest }) => {
2234
- const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
2235
- const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
2236
- return (jsx(BlockWrapper, { className: [
2237
- 'relative box-border text-left p-9 w-[697px]',
2238
- 'border border-solid border-gray group-data-secondary:border-white/50',
2239
- className,
2240
- ].join(' '), ...rest, children: jsxs(BaseTile, { title: tileTitle, image: tileImage, children: [jsxs("div", { className: "flex justify-between mb-4", 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: `list-none m-0 p-0 flex gap-y-2 ${cardColumnsModeStyleMap[columnsMode]}`, children: renderCardList(cardsList, columnsMode) })) : null] }) }));
2241
- });
2242
+ const CarouselInvestmentCard = JSX(({ additionalDescription, cardsList = [], className = '', columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('box-border text-left p-9 w-[697px]', 'border border-solid border-gray group-data-secondary:border-white/50', className), ...rest, children: jsxs(BaseTile, { title: title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title }) : null, backImage: image?.src ? jsx(ImgInner, { className: "m-0", image: image }) : null, children: [jsxs("div", { className: "flex justify-between mb-4", 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 flex gap-y-2', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList, columnsMode) })) : null] }) })));
2242
2243
  const renderCardList = (cardsList, columnsMode) => {
2243
2244
  const CARDS_COUNT_MAP = [4, 9];
2244
2245
  const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
@@ -2267,11 +2268,11 @@
2267
2268
  };
2268
2269
 
2269
2270
  const DOT_SIZE_MAP = {
2270
- L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4',
2271
- M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3',
2272
- S: 'w-1 h-1 min-w-1 min-h-1 mr-2',
2271
+ L: 'w-1.5 h-1.5 mr-4',
2272
+ M: 'w-1.5 h-1.5 mr-3',
2273
+ S: 'w-1 h-1 mr-2',
2273
2274
  };
2274
- const ListItem = JSX(({ className = '', isDotted = true, children, size = 'M' }) => (jsxs("div", { className: `font-sans flex items-baseline ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { children: jsx("div", { className: `rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${DOT_SIZE_MAP[size]}` }) })) : null, jsx("span", { children: children })] })));
2275
+ const ListItem = JSX(({ className, isDotted = true, children, size = 'M' }) => (jsxs("div", { className: style('font-sans flex', className), role: "listitem", children: [isDotted ? (jsx("div", { className: "shrink-0", children: jsx("div", { className: style('align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white', DOT_SIZE_MAP[size]) }) })) : null, jsx("span", { children: children })] })));
2275
2276
 
2276
2277
  const TEXT_SIZE_MAP = {
2277
2278
  S: 'text-l-light',
@@ -2283,7 +2284,7 @@
2283
2284
  M: 'ml-3',
2284
2285
  L: 'ml-4',
2285
2286
  };
2286
- const List = JSX(({ className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: `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, { className: itemClassName, isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
2287
+ const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-2 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);
2287
2288
 
2288
2289
  const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isFullWidth = true, items = [], target, title, version = 'primary', ...rest }) => {
2289
2290
  return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-6", href: href, target: target, children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], {
@@ -2295,13 +2296,21 @@
2295
2296
  const renderCardTitle = (headlineSmallVersion, title) => title ? (jsx("div", { children: jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
2296
2297
  const renderDescription$3 = (description, title) => description ? (jsx("div", { className: title ? 'mt-2' : '', children: jsx(Paragraph, { size: "text-l", children: description }) })) : null;
2297
2298
  const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
2298
- const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
2299
+ const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('max-w-[308px] mt-2 text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
2299
2300
 
2300
2301
  const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
2301
2302
  return (jsx(BlockWrapper, { className: style('border border-gray', className), ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: icon }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: "mb-3.5", headingType: "h5", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$2) })) : null] })] }) }));
2302
2303
  });
2303
2304
  const renderList$2 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: "text-h6", children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
2304
2305
 
2306
+ const buttonSizeStyles = {
2307
+ default: 'w-14 h-14',
2308
+ small: 'w-12 h-12',
2309
+ };
2310
+ const buttonStylesWithText = (text, buttonSize) => text
2311
+ ? ''
2312
+ : style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
2313
+
2305
2314
  const ICONS_MAP = [
2306
2315
  {
2307
2316
  origins: ['t.me', 'telegram.org'],
@@ -2334,13 +2343,6 @@
2334
2343
  label: 'Youtube',
2335
2344
  },
2336
2345
  ];
2337
- const buttonSizeStyles = {
2338
- default: 'w-14 h-14',
2339
- small: 'w-12 h-12',
2340
- };
2341
- const buttonStylesWithText = (text, buttonSize) => text
2342
- ? ''
2343
- : `group/media flex items-center justify-center box-border ${buttonSizeStyles[buttonSize]}`;
2344
2346
  const MediaButton = JSX(({ buttonSize = 'default', rounded = false, icon, ...rest }) => {
2345
2347
  const { href, version, text = '' } = rest;
2346
2348
  const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
@@ -2354,7 +2356,7 @@
2354
2356
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
2355
2357
 
2356
2358
  const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', version = 'primary', ...rest }) => {
2357
- return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "flex flex-col gap-2", itemClassName: "text-l-light", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$2(icon)] }) }));
2359
+ return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? jsx(List, { items: items, listItemSize: "S" }) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$2(icon)] }) }));
2358
2360
  });
2359
2361
  const renderIconBlock$2 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(ImgInner, { image: icon }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2360
2362
 
@@ -2480,6 +2482,124 @@
2480
2482
  const renderBlocks = (info) => (jsx("div", { className: "flex grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index })) }));
2481
2483
  const renderBlocksColumn = ({ column, index }) => column ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { className: "mt-6 first:mt-0", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "text-left" }), additionalDescription ? (jsx("div", { className: "mt-1.5 opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, button ? jsx(Button, { className: "mt-6", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
2482
2484
 
2485
+ const isEmpty = (v) => v === null ||
2486
+ v === undefined ||
2487
+ v === '' ||
2488
+ (Array.isArray(v) && v.length === 0) ||
2489
+ (typeof v === 'object' && Object.keys(v).length === 0);
2490
+
2491
+ const isSingularFieldMatch = (key, pattern) => (target) => isEmpty(pattern[key]) || isEmpty(target[key]) || pattern[key] === target[key];
2492
+ const isMultipleFieldMatch = (key, pattern) => (target) => isEmpty(pattern[key]) ||
2493
+ isEmpty(target[key]) ||
2494
+ pattern[key]?.some((_) => target[key]?.includes(_));
2495
+ const isNumberFieldMatch = (key, pattern) => (target) => isEmpty(pattern[key]) ||
2496
+ isEmpty(target[key]) ||
2497
+ naturalNumber(pattern[key]) <= naturalNumber(target[key]);
2498
+ const isValueInRange = (key, pattern) => (target) => isEmpty(pattern[key]) ||
2499
+ isEmpty(target[key]) ||
2500
+ (naturalNumber(pattern[key]?.min) >= naturalNumber(target[key]?.min) &&
2501
+ naturalNumber(pattern[key]?.min) <= naturalNumber(target[key]?.max));
2502
+ const checkShouldRenderBlock = (pattern, target) => Object.entries(pattern)
2503
+ .map(([key, subPattern]) => {
2504
+ if (typeof subPattern === 'number') {
2505
+ return isNumberFieldMatch(key, pattern);
2506
+ }
2507
+ if (typeof subPattern === 'object') {
2508
+ if ('min' in subPattern && 'max' in subPattern) {
2509
+ return isValueInRange(key, pattern);
2510
+ }
2511
+ }
2512
+ return Array.isArray(subPattern)
2513
+ ? isMultipleFieldMatch(key, pattern)
2514
+ : isSingularFieldMatch(key, pattern);
2515
+ })
2516
+ .every((predicate) => predicate(target));
2517
+ const naturalNumber = (n) => Number(n || 0);
2518
+
2519
+ const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
2520
+ return (jsxs("button", { className: style('flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text', disabled
2521
+ ? 'bg-main-divider text-main-disabled hover:bg-main-divider'
2522
+ : 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(ImgInner, { image: {
2523
+ icon,
2524
+ iconVersion: 'white',
2525
+ }, className: "flex-shrink-0 my-auto", width: "20", height: "20" })) : null] }));
2526
+ });
2527
+ const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
2528
+ const labels = ['Развернуть', 'Скрыть'];
2529
+ const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
2530
+ return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2531
+ };
2532
+
2533
+ const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2534
+ const resultsGridStyle = 'grid grid-cols-12 gap-1 border-box';
2535
+ const BaseFiltrationInner = JSX(({ label = '', filtrationState = {}, topItemsCount = 0, block, notFound, ...rest }) => {
2536
+ const blocksToRender = block?.blocks?.filter((b) => checkShouldRenderBlock(filtrationState, b.content || {})) || [];
2537
+ const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
2538
+ ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
2539
+ : [blocksToRender, []];
2540
+ return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style(blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style('mb-1', resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2541
+ return (jsx(FoldableSection, { className: style(resultsGridStyle, isUnfolded ? 'mb-1' : ''), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2542
+ }, 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 })) })] })] }));
2543
+ });
2544
+ function renderNotFound({ title, description }) {
2545
+ return (jsxs("div", { className: "bg-white py-20", children: [title ? (jsx("div", { className: "mb-2", children: jsx(Paragraph, { align: "text-center", children: jsx(Text, { size: "text-h4", children: title }) }) })) : null, description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", align: "text-center", children: description })) : null] }));
2546
+ }
2547
+
2548
+ const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
2549
+ const handleChange = (newValue) => {
2550
+ if (!onChange) {
2551
+ return;
2552
+ }
2553
+ if (multiple) {
2554
+ const hasAlready = value?.includes(newValue);
2555
+ onChange(hasAlready ? (value || []).filter((v) => v !== newValue) : [...(value || []), newValue]);
2556
+ }
2557
+ else {
2558
+ onChange(value === newValue ? '' : newValue);
2559
+ }
2560
+ };
2561
+ return items.map((item) => (jsx(SlideCheckbox, { text: item.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
2562
+ });
2563
+
2564
+ const renderFiltrationForm = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex justify-between bg-white p-9 mb-1", children: [jsxs("div", { className: "flex gap-11", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72 ml-3", onClick: reset, ...resetButton }) })) : null] }));
2565
+ const renderFormItem = (field) => ([key, item]) => {
2566
+ const type = item?.type;
2567
+ switch (type) {
2568
+ case 'array':
2569
+ return renderCheckboxes(key, field)(item);
2570
+ default:
2571
+ return null;
2572
+ }
2573
+ };
2574
+ const renderCheckboxes = (key, field) => (item) => {
2575
+ const options = item?.items?.enum?.map((e, i) => ({ value: e, title: item?.items?.enumNames?.[i] || '' })) ||
2576
+ [];
2577
+ return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-4", 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));
2578
+ };
2579
+
2580
+ const initialFiltrationState$1 = {
2581
+ sum: 500,
2582
+ period: {
2583
+ min: 3,
2584
+ max: 36,
2585
+ },
2586
+ };
2587
+ const DEFAULT_MIN_MONTHS = 3;
2588
+ const DEFAULT_MAX_MONTHS = 36;
2589
+ const DEFAULT_MIN_SUM = 500;
2590
+ const DEFAULT_MAX_SUM = 1000000000;
2591
+ const DepositFiltration = JSX(({ className, filtrationSchema = {}, resetButton, sumInput, periodInput, ...rest }) => {
2592
+ const [filtrationState, { field, reset }] = useForm(initialFiltrationState$1);
2593
+ const maxValue = periodInput?.max || DEFAULT_MAX_MONTHS;
2594
+ const Inputs = (jsxs("div", { children: [jsx(CurrencyInput, { label: sumInput?.title, min: DEFAULT_MIN_SUM, max: DEFAULT_MAX_SUM, ...field('sum', { parse: Number, format: String }) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 3 лет'], min: periodInput?.min || DEFAULT_MIN_MONTHS, max: maxValue, ...field('period', {
2595
+ parse: (min) => ({ min, max: maxValue }),
2596
+ format: ({ min }) => min,
2597
+ }) })] }));
2598
+ return (jsxs(BlockWrapper, { className: style(className), version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
2599
+ });
2600
+ DepositFiltration.childrenTypes = ['ProductTile'];
2601
+ DepositFiltration.childSchema = (content) => content?.filtrationSchema || {};
2602
+
2483
2603
  const renderErrorContent = (error) => {
2484
2604
  if (error?.errorContentType === 'Image' && error?.image) {
2485
2605
  return jsx(ImgInner, { image: error.image });
@@ -2709,86 +2829,12 @@
2709
2829
  return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
2710
2830
  };
2711
2831
 
2712
- const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
2713
- return (jsxs("button", { className: style('flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text', disabled
2714
- ? 'bg-main-divider text-main-disabled hover:bg-main-divider'
2715
- : 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(ImgInner, { image: {
2716
- icon,
2717
- iconVersion: 'white',
2718
- }, className: "flex-shrink-0 my-auto", width: "20", height: "20" })) : null] }));
2719
- });
2720
- const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
2721
- const labels = ['Развернуть', 'Скрыть'];
2722
- const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
2723
- return (jsx(DefaultFoldButton, { icon: icons[Number(isUnfolded)], label: labels[Number(isUnfolded)], onClick: onToggle }));
2724
- };
2725
-
2726
- const isSingularFieldMatch = (key, pattern) => (target) => pattern[key] === undefined || pattern[key] === target[key];
2727
- const isMultipleFieldMatch = (key, pattern) => (target) => pattern[key] === undefined || pattern[key]?.every((_) => target[key]?.includes(_));
2728
- const checkShouldRenderBlock = (pattern, target) => Object.entries(pattern)
2729
- .map(([key, subPattern]) => Array.isArray(subPattern)
2730
- ? isMultipleFieldMatch(key, pattern)
2731
- : isSingularFieldMatch(key, pattern))
2732
- .every((predicate) => predicate(target));
2733
-
2734
- const ICONS = ['ArrowDownIcon', 'ArrowUpIcon'];
2735
- const resultsGridStyle = 'grid grid-cols-12 gap-1 border-box';
2736
- const FiltrationInner = JSX(({ label = '', filtrationState = {}, topItemsCount = 0, block, notFound, ...rest }) => {
2737
- const blocksToRender = block?.blocks?.filter((b) => checkShouldRenderBlock(filtrationState, b.content || {})) || [];
2738
- const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
2739
- ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
2740
- : [blocksToRender, []];
2741
- return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style(blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style('mb-1', resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2742
- return (jsx(FoldableSection, { className: style(resultsGridStyle, isUnfolded ? 'mb-1' : ''), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2743
- }, 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 })) })] })] }));
2744
- });
2745
- function renderNotFound({ title, description }) {
2746
- return (jsxs("div", { className: "bg-white py-20", children: [title ? (jsx("div", { className: "mb-2", children: jsx(Paragraph, { align: "text-center", children: jsx(Text, { size: "text-h4", children: title }) }) })) : null, description ? (jsx(Paragraph, { size: "text-xl", font: "font-light", align: "text-center", children: description })) : null] }));
2747
- }
2748
-
2749
- const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
2750
- const handleChange = (newValue) => {
2751
- if (multiple) {
2752
- const hasAlready = value?.includes(newValue);
2753
- onChange &&
2754
- onChange(hasAlready ? value?.filter((v) => v !== newValue) : [...(value || []), newValue]);
2755
- }
2756
- else {
2757
- onChange && onChange(value === newValue ? undefined : newValue);
2758
- }
2759
- };
2760
- return items.map((item) => (jsx(SlideCheckbox, { text: item.title, value: [value].flatMap((_) => _).includes(item.value), onChange: () => handleChange(item.value), type: multiple ? 'checkbox' : 'radio' }, item.value)));
2761
- });
2762
-
2763
- const renderFormItem = (filtrationSchema, field) => (key) => {
2764
- const item = filtrationSchema[key];
2765
- const type = item?.type;
2766
- switch (type) {
2767
- case 'array':
2768
- return renderCheckboxes(key, field)(item);
2769
- default:
2770
- return null;
2771
- }
2772
- };
2773
- const renderCheckboxes = (key, field) => (item) => {
2774
- const options = item?.items?.enum?.map((e, i) => ({ value: e, title: item?.items?.enumNames?.[i] || '' })) ||
2775
- [];
2776
- return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-4", 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));
2777
- };
2778
-
2779
- const initialFiltrationState = {};
2780
- const Filtration = JSX(({ className, filtrationSchema = {}, resetButton, ...rest }) => {
2781
- const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
2782
- return (jsxs(BlockWrapper, { className: style(className), version: "transparent", ...rest, children: [jsxs("form", { className: "flex justify-between bg-white p-9 mb-1", children: [jsx("div", { className: "flex gap-11", children: Object.keys(filtrationSchema).map(renderFormItem(filtrationSchema, field)) }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72", onClick: reset, ...resetButton }) })) : null] }), jsx(FiltrationInner, { filtrationState: filtrationState, ...rest })] }));
2783
- });
2784
- Filtration.childrenTypes = ['ProductTile'];
2785
- Filtration.childSchema = (content) => content?.filtrationSchema || {};
2786
-
2832
+ const EMPTY_VALUE$1 = {};
2787
2833
  function useSWRResource(filename, fallback = {}) {
2788
2834
  const { data } = useAsyncData(`/wcms-resources/${filename}.json`, fetchJSONUnsafe, {
2789
2835
  fallback,
2790
2836
  });
2791
- return data || {};
2837
+ return data || EMPTY_VALUE$1;
2792
2838
  }
2793
2839
 
2794
2840
  const ICON_VERSION_MAP = {
@@ -2970,7 +3016,8 @@
2970
3016
  const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
2971
3017
 
2972
3018
  const SEARCH_INDEX_FILENAME = 'search.index.json';
2973
- const useSearch = ({ basePathList = ['/'], initialQuery = '', wasOpened, }) => {
3019
+ const DEFAULT_BASE_PATH = ['/'];
3020
+ const useSearch = ({ basePathList = DEFAULT_BASE_PATH, initialQuery = '', wasOpened, }) => {
2974
3021
  const [query, setQuery] = useState(initialQuery || '');
2975
3022
  useEffect(() => {
2976
3023
  if (initialQuery !== undefined && initialQuery !== null) {
@@ -2978,7 +3025,7 @@
2978
3025
  }
2979
3026
  }, [initialQuery]);
2980
3027
  const key = useMemo(() => basePathList.map((_) => (wasOpened ? _ : null)), // Load search index on very first search
2981
- [wasOpened, ...basePathList]);
3028
+ [wasOpened, basePathList]);
2982
3029
  const { data } = useAsyncData(key, fetchSearchIndex);
2983
3030
  const [result, setResult] = useState(null);
2984
3031
  useDebouncedEffect(() => {
@@ -3050,17 +3097,17 @@
3050
3097
  return (jsx("a", { className: style('text-l-light text-secondary-text hover:text-primary-main no-underline', 'overflow-x-hidden overflow-ellipsis whitespace-nowrap'), href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
3051
3098
  });
3052
3099
 
3053
- const SearchInput = JSX(({ className, isMobile, value, autoFocus, onChange, onFocus }) => {
3100
+ const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus }) => {
3054
3101
  const handleChange = useCallback((ev) => {
3055
3102
  onChange && onChange(ev.target?.value || '');
3056
3103
  }, [onChange]);
3057
- return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-4 pointer-events-none", children: jsx(ImgInner, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 pl-12 w-full 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', isMobile ? '' : 'h-full'), 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 })] }));
3104
+ return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-4 pointer-events-none", children: jsx(ImgInner, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 pl-12 w-full 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 })] }));
3058
3105
  });
3059
3106
 
3060
3107
  const SEARCH_DIALOG_ID = 'search';
3061
3108
  const SearchDialog = JSX(({ topItems }) => {
3062
3109
  const dialogProps = useDialogProps(SEARCH_DIALOG_ID);
3063
- const basePathList = topItems?.map((_) => _.href || '/');
3110
+ const basePathList = useMemo(() => topItems?.map((_) => _.href || '/'), [topItems]);
3064
3111
  const [searchResult, searchInputProps] = useSearch({
3065
3112
  basePathList,
3066
3113
  initialQuery: dialogProps.message,
@@ -3086,7 +3133,7 @@
3086
3133
  }
3087
3134
 
3088
3135
  const MIN_QUERY_LEN = 3;
3089
- const SearchBarInner = JSX(({ className, isMobile }) => {
3136
+ const SearchBar$1 = JSX(({ className }) => {
3090
3137
  const [value, setValue] = useState('');
3091
3138
  const resetQueryOnDialogClose = useCallback(() => setValue(''), []);
3092
3139
  useDialogHandlers({ onClose: resetQueryOnDialogClose });
@@ -3097,12 +3144,10 @@
3097
3144
  open(_);
3098
3145
  }
3099
3146
  }, []);
3100
- return (jsxs("div", { className: className, children: [jsx(SearchInput, { isMobile: isMobile, value: value, onChange: handleInitialInputChange }), isMobile ? (jsx(CloseButton, { className: "absolute top-2 right-3", onClick: resetQueryOnDialogClose })) : null] }));
3147
+ return (jsxs("div", { className: className, children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-2 right-3 sm:hidden", onClick: resetQueryOnDialogClose })] }));
3101
3148
  });
3102
3149
  const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
3103
3150
 
3104
- const SearchBar$1 = JSX((props) => jsx(SearchBarInner, { ...props }));
3105
-
3106
3151
  const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
3107
3152
  const renderContact = (item, index) => {
3108
3153
  const { type, text, description } = item;
@@ -3120,10 +3165,12 @@
3120
3165
  };
3121
3166
  const formatTel = (s) => s.replaceAll(/\D/g, '');
3122
3167
 
3168
+ const horizontalNavigationLinkStyles = 'text-secondary-text';
3169
+
3123
3170
  const HorizontalNavigationLink = JSX(({ className = '', index, text, ...rest }) => {
3124
3171
  const link = useLink();
3125
3172
  const { href, target, onClick } = link(rest);
3126
- return (jsx("a", { className: `text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3173
+ return (jsx("a", { className: style(horizontalNavigationLinkStyles, className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3127
3174
  });
3128
3175
 
3129
3176
  const HorizontalNavigation = JSX(({ className = '', links }) => {
@@ -3136,7 +3183,9 @@
3136
3183
  return (jsx("a", { className: `text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3137
3184
  });
3138
3185
 
3139
- const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-5", children: jsx("span", { className: "text-xs-light text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-2.5", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3186
+ const textInformationTextSize = 'text-xs-light';
3187
+
3188
+ const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-5 sm:py-4", children: jsx(Text, { size: textInformationTextSize, color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-2.5", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3140
3189
 
3141
3190
  const LEFT_COL_WIDTH_FULL_HD = 'w-[204px]';
3142
3191
  const Footer = JSX(({ className = '', ...rest }) => {
@@ -3489,7 +3538,7 @@
3489
3538
  return (jsxs("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(ImgInner, { className: "p-5 rounded-full bg-secondary-light mr-[30px]", image: slide.icon, width: "108", height: "108" })) : null, jsxs("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock$1('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock$1('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActive)] }, String(i)));
3490
3539
  }
3491
3540
  function renderValueBlock$1(title, sum) {
3492
- return (jsxs("div", { className: "flex flex-col text-left whitespace-pre", children: [jsxs("span", { className: "text-h6", children: [addSpacesBetweenNumbers(sum), " \u20BD"] }), jsx("span", { className: "text-secondary-text text-l mt-1", children: title })] }));
3541
+ return (jsxs("div", { className: "flex flex-col text-left whitespace-pre", children: [jsxs("span", { className: "text-h6", children: [toLocalNumberFormat(2)(sum), " \u20BD"] }), jsx("span", { className: "text-secondary-text text-l mt-1", children: title })] }));
3493
3542
  }
3494
3543
  function renderDoneIcon(isActive) {
3495
3544
  return isActive ? (jsx(ImgInner, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: { icon: 'DoneIcon' }, width: "24", height: "24" })) : null;
@@ -3519,9 +3568,7 @@
3519
3568
  return (jsx("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m-light ${btnClassName}`, children: title }, String(i)));
3520
3569
  }
3521
3570
 
3522
- function joinList(sep) {
3523
- return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
3524
- }
3571
+ const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
3525
3572
 
3526
3573
  const investmentCellColorMap = {
3527
3574
  yellow: 'bg-yellow',
@@ -3542,7 +3589,7 @@
3542
3589
  if (investmentZeroColumn) {
3543
3590
  colums.unshift(investmentZeroColumn);
3544
3591
  }
3545
- return (jsx(BlockWrapper, { className: `px-9 py-12 ${className}`, ...rest, children: jsxs("div", { className: "container text-m-light", children: [colums?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-9 pr-5 text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(colums.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-[30px] w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-2 ml-9 mr-8" }), jsx("div", { className: "flex justify-between text-primary-text mt-3 -mx-10", children: colums.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "mt-9 text-l-light max-w-[657px]", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }) }));
3592
+ return (jsx(BlockWrapper, { className: `px-9 py-12 ${className}`, ...rest, children: jsxs("div", { className: "container text-m-light", children: [colums?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-9 pr-5 text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(colums.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-[30px] w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-2 ml-9 mr-8" }), jsx("div", { className: "flex justify-between text-primary-text mt-3 -mx-10", children: colums.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "mt-9 max-w-[657px]", items: items, isDotted: isDotted, listItemSize: "M" })) : null] }) }));
3546
3593
  });
3547
3594
  const renderInvestmentColumn = (column, i, arr) => {
3548
3595
  const isSecondColumn = i === 1;
@@ -3616,10 +3663,18 @@
3616
3663
  }), children: [renderDescription$2(description), jsxs("div", { className: "flex flex-1 items-center mb-3", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr }) })) : null, renderList$1(items)] })] }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
3617
3664
  });
3618
3665
  const renderList$1 = (items) => {
3619
- return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0" })) : (jsx("span", { className: "text-m-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" }));
3666
+ return items?.length ? (jsx(List, { items: items, listItemSize: "S" })) : (jsx("span", { className: "text-m-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" }));
3620
3667
  };
3621
3668
  const renderDescription$2 = (description) => description ? jsx("p", { className: "text-xl-light mb-5 pt-0.5", children: description }) : null;
3622
3669
 
3670
+ const initialFiltrationState = {};
3671
+ const MortgageFiltration = JSX(({ className, filtrationSchema = {}, resetButton, ...rest }) => {
3672
+ const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
3673
+ return (jsxs(BlockWrapper, { className: style(className), version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
3674
+ });
3675
+ MortgageFiltration.childrenTypes = ['ProductTile'];
3676
+ MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
3677
+
3623
3678
  const mockPoints = [
3624
3679
  { coords: [55.77, 37.46], text: 'Трактир' },
3625
3680
  { coords: [55.66, 37.48], text: 'Трактор' },
@@ -3840,25 +3895,6 @@
3840
3895
  const getArraySumAndAverage = (arr) => arr.reduce((a, b) => a + b) / arr.length;
3841
3896
  const normalizePoints = (points) => (points ? points.map((_) => _.coords) : null);
3842
3897
 
3843
- // Добавлено для проверки
3844
- const nearbyOffices = [
3845
- { title: 'Деловой центр', time: '1 мин', distance: '~30 м.', icon: 'MetroIcon' },
3846
- { title: 'Выставочная', time: '5 мин', distance: '~120 м.', icon: 'MetroIcon' },
3847
- { title: 'Деловой центр', time: '8 мин', distance: '~350 м.', icon: 'MetroIcon' },
3848
- ];
3849
-
3850
- const renderCurrentDaySchedule = ({ lunchHour, status, workTime }) => {
3851
- const hasTime = /\d+/gi.test(lunchHour);
3852
- const lunchHourText = hasTime ? `Перерыв ${lunchHour}` : lunchHour;
3853
- return status ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4", children: workTime ? workTime : null }), jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden", children: lunchHour ? lunchHourText : null })] })) : (jsx("div", { className: "flex", children: jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }) }));
3854
- };
3855
- const renderNearbyOffice = ({ icon, title, distance, time }, index) => (jsxs("div", { className: "flex mr-4", children: [jsx(Icon, { name: icon, width: "16", height: "16", className: "mr-1" }), title ? jsxs("span", { className: "text-m", children: [title, "\u00A0"] }) : null, jsxs("span", { className: "text-m-light", children: [distance ? ` (${distance})` : null, time ? `, ${time}` : null] })] }, `nearbyOffice${index}`));
3856
- const renderDay = ({ title, status, workTime, lunchHour, description }, inx) => (jsxs("div", { className: "flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0", children: [jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-l text-primary-text", children: [jsx("div", { children: title }), status ? null : jsx("div", { className: "text-m-light text-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }), status && workTime ? jsx("div", { children: workTime }) : null] }), status && lunchHour ? renderLunchHour(lunchHour) : null, description ? (jsx("div", { className: "pb-1 text-s-light text-secondary-text", children: description })) : null] }, `day${inx}`));
3857
- const renderLunchHour = (lunchHour) => {
3858
- const hasTime = /\d+/gi.test(lunchHour);
3859
- return hasTime ? (jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-m-light text-error", children: [jsx("div", { children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }), jsx("div", { children: lunchHour })] })) : (jsx("div", { className: "flex justify-between items-center w-full pb-1 text-m-light text-primary-main", children: jsx("div", { children: lunchHour }) }));
3860
- };
3861
-
3862
3898
  const OFFICE_MAP = {
3863
3899
  id: 123,
3864
3900
  branchType: {
@@ -3939,26 +3975,30 @@
3939
3975
  safeBoxCaseVolumes: null,
3940
3976
  };
3941
3977
 
3942
- const OFFICE_MAP_URL = '/api/v1/branches';
3943
- // TODO: regionCode - внутренний идентификатор банка. Не соответствует государственной нумерации регионов РФ
3944
- // TODO: Список регионов можно получить через api/v1/regions
3945
- function useOfficeMap(regionCode) {
3946
- const { data } = useAsyncData(regionCode ? `${OFFICE_MAP_URL}?regionCode=${regionCode}` : undefined, fetchOfficeMap);
3947
- console.warn('Hook useOfficeMap RETURNs MOCK object for testing', data);
3948
- return OFFICE_MAP;
3949
- }
3950
- function fetchOfficeMap(url) {
3951
- if (!url) {
3952
- return {};
3953
- }
3954
- return fetchJSON(url, { method: 'GET' });
3955
- }
3978
+ // Добавлено для проверки
3979
+ const nearbyOffices = [
3980
+ { title: 'Деловой центр', time: '1 мин', distance: '~30 м.', icon: 'MetroIcon' },
3981
+ { title: 'Выставочная', time: '5 мин', distance: '~120 м.', icon: 'MetroIcon' },
3982
+ { title: 'Деловой центр', time: '8 мин', distance: '~350 м.', icon: 'MetroIcon' },
3983
+ ];
3984
+
3985
+ const renderCurrentDaySchedule = ({ lunchHour, status, workTime }) => {
3986
+ const hasTime = /\d+/gi.test(lunchHour);
3987
+ const lunchHourText = hasTime ? `Перерыв ${lunchHour}` : lunchHour;
3988
+ return status ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4", children: workTime ? workTime : null }), jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden", children: lunchHour ? lunchHourText : null })] })) : (jsx("div", { className: "flex", children: jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }) }));
3989
+ };
3990
+ const renderNearbyOffice = ({ icon, title, distance, time }, index) => (jsxs("div", { className: "flex mr-4", children: [jsx(Icon, { name: icon, width: "16", height: "16", className: "mr-1" }), title ? jsxs("span", { className: "text-m", children: [title, "\u00A0"] }) : null, jsxs("span", { className: "text-m-light", children: [distance ? ` (${distance})` : null, time ? `, ${time}` : null] })] }, `nearbyOffice${index}`));
3991
+ const renderDay = ({ title, status, workTime, lunchHour, description }, inx) => (jsxs("div", { className: "flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0", children: [jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-l text-primary-text", children: [jsx("div", { children: title }), status ? null : jsx("div", { className: "text-m-light text-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }), status && workTime ? jsx("div", { children: workTime }) : null] }), status && lunchHour ? renderLunchHour(lunchHour) : null, description ? (jsx("div", { className: "pb-1 text-s-light text-secondary-text", children: description })) : null] }, `day${inx}`));
3992
+ const renderLunchHour = (lunchHour) => {
3993
+ const hasTime = /\d+/gi.test(lunchHour);
3994
+ return hasTime ? (jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-m-light text-error", children: [jsx("div", { children: "\u041F\u0435\u0440\u0435\u0440\u044B\u0432" }), jsx("div", { children: lunchHour })] })) : (jsx("div", { className: "flex justify-between items-center w-full pb-1 text-m-light text-primary-main", children: jsx("div", { children: lunchHour }) }));
3995
+ };
3956
3996
 
3957
3997
  const OfficeMap = JSX(({ className = '' }) => {
3958
3998
  // TODO: useOfficeMap endpoint had use /api/v1/branches. This endpoint now is`t correct/
3959
3999
  // TODO: useOfficeMap has return MOCK OBJECT!
3960
4000
  // TODO: Fix this when endpoint /api/v1/branches (or new endpoint) had returning right data
3961
- const resultOfficeMap = useOfficeMap('000');
4001
+ const resultOfficeMap = OFFICE_MAP;
3962
4002
  const { name, address, gpsLatitude, gpsLongitude, workSchedule } = resultOfficeMap;
3963
4003
  const { workingMonday, workingTuesday, workingWednesday, workingThursday, workingFriday, workingSaturday, workingSunday, } = workSchedule;
3964
4004
  const { workTime, lunchHour, workTimeSaturday, lunchHourSaturday } = workSchedule;
@@ -3993,11 +4033,7 @@
3993
4033
 
3994
4034
  const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (jsx(BlockWrapper, { ...rest, children: jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
3995
4035
 
3996
- const BenefitItem = JSX((props) => {
3997
- const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
3998
- const listItemAlign = description ? 'items-start' : 'items-center';
3999
- return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(version, benefitsVersion), children: jsx(ImgInner, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? (jsx("div", { className: "text-h6 text-primary-text group-data-secondary:text-white", children: label })) : null, description ? (jsx("div", { className: "text-m-light text-secondary-text group-data-secondary:text-white", children: description })) : null] })] }));
4000
- });
4036
+ const BenefitItem = JSX(({ className, icon, label, description, version = 'primary', benefitsVersion = 'normal' }) => (jsxs("div", { className: style('flex gap-5', description ? 'items-start' : 'items-center', className), children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(version, benefitsVersion), children: jsx(ImgInner, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, jsxs("div", { children: [label ? (jsx(Text, { size: "text-h6", color: "text-primary-text group-data-secondary:text-white", children: label })) : null, description ? (jsx(Paragraph, { size: "text-m-light", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] })));
4001
4037
  function getBenefitIconBgStyle(version, benefitsVersion) {
4002
4038
  let bgColorStyle = 'bg-primary-main text-black';
4003
4039
  if (version === 'secondary') {
@@ -4036,7 +4072,7 @@
4036
4072
  }
4037
4073
  function renderValueBlock(title, sum = 0, isAnotherBlock = false) {
4038
4074
  const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
4039
- return (jsxs("div", { className: `flex justify-between items-center gap-2 w-full whitespace-pre ${widthStyle}`, children: [jsx("span", { className: "text-secondary-text text-l-light", children: title }), jsxs("span", { className: "text-primary-main text-h6", children: [addSpacesBetweenNumbers(sum), " \u20BD"] })] }));
4075
+ return (jsxs("div", { className: `flex justify-between items-center gap-2 w-full whitespace-pre ${widthStyle}`, children: [jsx("span", { className: "text-secondary-text text-l-light", children: title }), jsxs("span", { className: "text-primary-main text-h6", children: [toLocalNumberFormat(2)(sum), " \u20BD"] })] }));
4040
4076
  }
4041
4077
 
4042
4078
  function getTileHeadingType(className = '') {
@@ -4075,64 +4111,45 @@
4075
4111
  const renderShimmerItem = (width, index) => (jsx("div", { style: { width: `${width || 100}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
4076
4112
  const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
4077
4113
 
4078
- const Breadcrumb = JSX(({ className = '', children, ...props }) => {
4079
- const link = useLink();
4080
- const { text, href, target, onClick } = link(props);
4081
- return href ? (jsx("a", { className: `no-underline ${className}`, href: href, target: target, onClick: onClick, children: jsx("span", { className: className, children: text || children }) })) : (jsx("span", { className: className, children: text || children }));
4082
- });
4083
-
4084
- const renderBenefit$1 = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
4114
+ const renderBenefit$1 = (version = 'primary', benefitsVersion = 'normal') => (props, i) => jsx(BenefitItem, { version: version, benefitsVersion: benefitsVersion, ...props }, String(i));
4085
4115
 
4086
- const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', directionRight = true, }) => {
4087
- const benefitsCount = benefits?.filter((_) => _.label)?.length;
4088
- const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
4089
- return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [image?.src ? (jsx(ImgInner, { className: style('mt-[-50px]', directionRight ? 'order-2' : ''), image: image })) : null, jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits?.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] })] })] }));
4116
+ const ProductBlockInner = JSX(({ className, version = 'primary', headlineVersion = 'L', title, description, benefits, benefitsVersion, items, isDotted = true, __html, buttons, image, directionRight = true, }) => {
4117
+ const benefitsWithLabel = benefits?.filter((_) => _.label);
4118
+ const img = image?.src ? jsx(ImgInner, { className: "mt-[-50px]", image: image }) : null;
4119
+ return (jsxs(BaseTile, { className: className, insetTitle: jsx(Headline, { className: "max-w-[600px] xl:max-w-[800px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left", isPadding: false }), ...(directionRight ? { rightImage: img } : { leftImage: img }), buttons: renderButtonsSection(buttons), children: [benefitsWithLabel?.length ? (jsx("div", { className: "flex flex-wrap gap-6", children: benefitsWithLabel.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? jsx(List, { className: "mt-5", items: items, isDotted: isDotted }) : null] }));
4090
4120
  });
4091
- const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
4092
- ? 'inline-grid grid-cols-[auto_auto_auto]'
4093
- : 'inline-grid grid-cols-[auto_auto]'}`;
4094
4121
 
4095
- function renderBackwardButton(button, version, className) {
4096
- const { text, href, target } = button;
4122
+ function renderBackwardButton({ text, href, target, icon }, version) {
4097
4123
  const iconVersion = version === 'primary' ? 'white' : 'black';
4098
- const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
4099
- return (jsxs("div", { className: style('flex items-center', className), children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion } }) }), text ? (jsx(Button, { version: "link", text: text, href: href, target: target, ariaLabel: text })) : null] }));
4124
+ const commonProps = { text, href, target, ariaLabel: text };
4125
+ return (jsxs("div", { className: "flex items-center gap-3", children: [jsx(Button, { className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center", version: version, rounded: true, ...commonProps, children: jsx(ImgInner, { className: "w-4 h-4", image: {
4126
+ ...icon,
4127
+ icon: icon?.icon || 'ArrowLeftIcon',
4128
+ iconVersion: icon?.iconVersion || iconVersion,
4129
+ } }) }), jsx(Button, { version: "link", ...commonProps })] }));
4100
4130
  }
4101
4131
 
4102
- const breadcrumbStyle = 'text-secondary-text group-data-secondary:text-white/80';
4103
- const ProductBlock = JSX((props) => {
4104
- const { className = '', breadcrumbs, backwardButton, version = 'primary', ...rest } = props;
4105
- const buttonVersion = version === 'primary' ? version : 'white';
4106
- return (jsxs(BlockWrapper, { className: style('overflow-hidden p-default flex flex-col box-border min-h-[454px]', className), version: version, ...rest, children: [backwardButton?.text ? renderBackwardButton(backwardButton, buttonVersion) : null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: style('mx-2', breadcrumbStyle), children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { className: breadcrumbStyle, ...breadcrumb }, String(i))))) })) : null, jsx(ProductBlockInner, { className: "mt-10", version: version, ...rest })] }));
4107
- });
4132
+ const ProductBlock = JSX(({ className, backwardButton, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden p-default flex flex-col gap-10 box-border', className), ...rest, children: [backwardButton?.text
4133
+ ? renderBackwardButton(backwardButton, !rest.version || rest.version === 'primary' ? 'primary' : 'white')
4134
+ : null, jsx(ProductBlockInner, { className: "grow", ...rest })] })));
4108
4135
 
4109
4136
  const ProductGallery = JSX(({ className = '', slides = [], ...rest }) => {
4110
- const galleryNav = slides.map((s) => s.nav);
4111
- const galleryBlocks = slides.map((s) => s.productBlock);
4112
4137
  const [activeSlideIndex, setActiveSlideIndex] = useState(0);
4113
- const handleActiveSlideIndex = useCallback((_) => setActiveSlideIndex(_), []);
4114
- return (jsxs(BlockWrapper, { className: `box-border pt-12 overflow-hidden relative w-100 mb-6 ${className}`, ...rest, children: [jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, ...rest }, i)) }), jsx("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28", children: galleryNav.map((slide, i) => renderNavButton({
4115
- slide,
4116
- i,
4117
- isActive: Boolean(i === activeSlideIndex),
4118
- onClick: () => handleActiveSlideIndex(i),
4119
- })) })] }));
4138
+ return (jsxs(BlockWrapper, { className: style('box-border py-default overflow-hidden', className), ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(ProductBlockInner, { className: "pl-default h-full", headlineVersion: "XXL", ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-6 mt-6 -mb-6 flex items-center gap-2 box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
4120
4139
  });
4121
- function renderProductBlock(block, i) {
4122
- return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: "pl-12 z-10 group-data-secondary:text-white", textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
4123
- }
4124
- function renderNavButton({ slide, i, isActive, onClick }) {
4140
+ const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
4141
+ const isActive = i === activeSlideIndex;
4125
4142
  const btnClassName = isActive
4126
- ? 'bg-white shadow-dark-blue min-w-[350px] border-none p-6'
4127
- : 'min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur';
4143
+ ? 'min-w-[350px] bg-white shadow-dark-blue border-none p-6'
4144
+ : 'min-w-[290px] ease-in duration-300 bg-white/10 px-6 py-5 hover:py-6 backdrop-blur';
4128
4145
  const btnTitleClassName = isActive
4129
- ? 'text-primary-text !text-h6 p-2'
4146
+ ? 'text-primary-text text-h6 py-2'
4130
4147
  : 'text-l pb-1 text-secondary-text group-data-secondary:text-white';
4131
4148
  const btnDescClassName = isActive
4132
4149
  ? 'text-secondary-text text-l-light'
4133
4150
  : 'text-m-light text-secondary-text group-data-secondary:text-white/80';
4134
- return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${btnClassName}`, children: jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `last:pb-0 ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide?.description })] }) }, String(i)));
4135
- }
4151
+ return (jsxs("button", { type: "button", onClick: () => onClick(i), "aria-label": nav?.title, className: style('relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50', btnClassName), children: [jsx("div", { className: btnTitleClassName, children: nav?.title }), jsx("div", { className: btnDescClassName, children: nav?.description })] }, String(i)));
4152
+ };
4136
4153
 
4137
4154
  function renderAdditionalDescription(additionalDescription, image) {
4138
4155
  if (!additionalDescription) {
@@ -4195,24 +4212,58 @@
4195
4212
  return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
4196
4213
  }
4197
4214
 
4215
+ const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left p-9', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between", children: [title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null, renderIconBlock(icon)] }), jsxs("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
4216
+ ? renderButtonsSection([button], {
4217
+ className: 'mb-6',
4218
+ })
4219
+ : null] })] })));
4220
+ const renderIconBlock = (icon) => (jsxs("div", { className: "self-end", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image: icon }) : null] }));
4221
+ const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-5 my-5", children: jsx(RichText, { __html: __html }) }));
4222
+ const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col first:pb-1", children: [jsx(Text, { size: "text-m-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
4223
+
4198
4224
  const RichTextBlock = JSX((props) => {
4199
4225
  const { __html, richVersion, ...rest } = props;
4200
4226
  return (jsx(BlockWrapper, { ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) }));
4201
4227
  });
4202
4228
 
4203
- const RollupItem = JSX(({ className = '', label = 'Развернуть', isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: `w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${className}`, tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: `grid grid-cols-12 gap-5 [&>*]:p-0`, isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ version, label, isUnfolded, onToggle }) }) })));
4229
+ const iconBgStyles = {
4230
+ primary: 'bg-main-divider',
4231
+ secondary: 'bg-white/30',
4232
+ 'secondary-light': 'bg-secondary-light',
4233
+ };
4234
+ const RoundedIcon = JSX(({ iconBgVersion = 'primary', ...rest }) => (jsx("div", { className: style('rounded-icon p-2.5 mr-3', iconBgStyles[iconBgVersion]), children: jsx(Icon, { ...rest }) })));
4235
+
4236
+ const foldableSectionStyles = 'grid grid-cols-12 [&>*]:pb-4';
4237
+
4238
+ const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
4239
+
4240
+ const labelSize = 'text-h6';
4241
+
4242
+ const rollupIconVersion = 'color';
4243
+
4244
+ const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
4245
+
4246
+ const RollupItem = JSX(({ className = '', label = 'Развернуть', labelIcon, isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
4247
+ return (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-5 [&>*]:p-0', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({ version, label, labelIcon, isUnfolded, onToggle }) }) }));
4248
+ });
4204
4249
  RollupItem.childrenTypes = {
4205
4250
  exclude: ['RollupItem'],
4206
4251
  };
4207
- const renderFoldButton = ({ version, label: defaultLabel, isUnfolded, onToggle, }) => {
4252
+ const renderFoldButton = ({ version, label: defaultLabel, labelIcon, isUnfolded, onToggle, }) => {
4208
4253
  const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
4209
4254
  return version === 'primary' ? (renderPrimaryFoldButton({
4210
4255
  label,
4211
- icon: isUnfolded ? 'MinusIcon' : 'PlusIcon',
4256
+ labelIcon,
4257
+ icon: getIconName(isUnfolded),
4212
4258
  onToggle,
4213
4259
  })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
4214
4260
  };
4215
- const renderPrimaryFoldButton = ({ label, icon, onToggle }) => (jsxs("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer`, onClick: onToggle, children: [jsx(Text, { size: "text-xl", font: "font-medium", children: label }), icon ? jsx(Icon, { name: icon, width: "24", height: "24" }) : null] }));
4261
+ const renderPrimaryFoldButton = ({ label, icon, onToggle, labelIcon }) => {
4262
+ const iconWidth = String(labelIcon?.size?.width || 24);
4263
+ const iconHeight = String(labelIcon?.size?.height || 24);
4264
+ const iconName = labelIcon?.icon;
4265
+ return (jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button', iconName ? 'py-2' : 'py-5'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center group-hover/button:text-primary-main", children: [iconName ? (jsx(RoundedIcon, { name: iconName, width: iconWidth, height: iconHeight, iconVersion: labelIcon?.iconVersion })) : null, label ? (jsx(Text, { size: labelSize, font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
4266
+ };
4216
4267
 
4217
4268
  const SAFEBOXES_URL = '/api/v1/safeboxes';
4218
4269
  const EMPTY_VALUE = [];
@@ -4792,7 +4843,7 @@
4792
4843
  const Tile = JSX(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, directionRight = true, ...rest }) => (jsxs(BlockWrapper, { className: style('flex grow justify-between items-stretch h-full p-9 pr-3 box-border', getTileRightPadding(className), getTileMinHeight(className), className), ...rest, children: [image?.src ? (jsx(ImgInner, { className: style('mt-auto ml-7', directionRight ? 'order-2' : ''), image: image })) : null, jsx(BaseTile, { title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: renderButtonsSection(buttons, {
4793
4844
  className: 'mt-8',
4794
4845
  buttonClassName: 'min-w-[158px]',
4795
- }), children: jsxs("div", { children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })] })));
4846
+ }), children: jsxs("div", { children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })] })));
4796
4847
 
4797
4848
  const alignStyle = {
4798
4849
  stretch: 'items-stretch',
@@ -4817,15 +4868,6 @@
4817
4868
  return (jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [jsx(Headline, { title: title, headlineVersion: "M" }), url ? (jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: adjustHref(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: jsx("source", { src: adjustHref(router)(url) }) })) : null] }));
4818
4869
  });
4819
4870
 
4820
- const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left p-9', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between", children: [title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null, renderIconBlock(icon)] }), jsxs("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
4821
- ? renderButtonsSection([button], {
4822
- className: 'mb-6',
4823
- })
4824
- : null] })] })));
4825
- const renderIconBlock = (icon) => (jsxs("div", { className: "self-end", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image: icon }) : null] }));
4826
- const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-5 my-5", children: jsx(RichText, { __html: __html }) }));
4827
- const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col first:pb-1", children: [jsx(Text, { size: "text-m-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
4828
-
4829
4871
  const Blocks = {
4830
4872
  ApplicationForm,
4831
4873
  BenefitsBlock,
@@ -4849,9 +4891,9 @@
4849
4891
  CarouselTariffsCard,
4850
4892
  ComparisonTable,
4851
4893
  ContactsBlock,
4894
+ DepositFiltration,
4852
4895
  ErrorBlock,
4853
4896
  ExchangeRateTile,
4854
- Filtration,
4855
4897
  Footer,
4856
4898
  GracePeriod,
4857
4899
  Header,
@@ -4862,6 +4904,7 @@
4862
4904
  InvestmentInfo,
4863
4905
  LinkDocs,
4864
4906
  MobileAppTile,
4907
+ MortgageFiltration,
4865
4908
  OfficeMap,
4866
4909
  OfficeServicesBlock,
4867
4910
  ParagraphBlock,
@@ -4871,6 +4914,7 @@
4871
4914
  ProductGallery,
4872
4915
  ProductTile,
4873
4916
  PromoTile,
4917
+ RepresentativeOfficeInfo,
4874
4918
  RichTextBlock,
4875
4919
  RollupItem,
4876
4920
  SafeDepositRental,
@@ -4883,7 +4927,6 @@
4883
4927
  VerticalLayout,
4884
4928
  Video,
4885
4929
  ExchangeRateOffice,
4886
- RepresentativeOfficeInfo,
4887
4930
  };
4888
4931
 
4889
4932
  const debounce = (fn, delay = 600) => {
@@ -5026,7 +5069,7 @@
5026
5069
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
5027
5070
  }
5028
5071
 
5029
- const packageVersion = "0.10.9";
5072
+ const packageVersion = "0.11.0";
5030
5073
 
5031
5074
  exports.Blocks = Blocks;
5032
5075
  exports.ContentPage = ContentPage;