@redneckz/wildless-cms-uni-blocks 0.13.5 → 0.13.7

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 (373) hide show
  1. package/bin/migration-scripts/0.13.6.js +33 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +133 -84
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  6. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  7. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  8. package/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
  9. package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
  10. package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  11. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  12. package/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  13. package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  14. package/bundle/icons/IconName.d.ts +4 -2
  15. package/bundle/model/HeadlineType.d.ts +1 -1
  16. package/bundle/ui-kit/Badge/Badge.d.ts +6 -0
  17. package/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  18. package/bundle/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  19. package/bundle/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  20. package/bundle/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  21. package/bundle/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  22. package/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -2
  23. package/cosmos-static/icons/CourtHouseIcon.svg +1 -0
  24. package/dist/components/Blocks.mobile.js +6 -0
  25. package/dist/components/Blocks.mobile.js.map +1 -1
  26. package/dist/components/Bonus/Bonus.js +1 -2
  27. package/dist/components/Bonus/Bonus.js.map +1 -1
  28. package/dist/components/ButtonsBlock/ButtonsBlock.js +9 -1
  29. package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  30. package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  31. package/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
  32. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  33. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  34. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  35. package/dist/components/ErrorBlock/ErrorBlock.js +2 -3
  36. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  37. package/dist/components/Footer/TextInformation.js +2 -1
  38. package/dist/components/Footer/TextInformation.js.map +1 -1
  39. package/dist/components/Header/HeaderSubMenu.d.ts +1 -1
  40. package/dist/components/Header/HeaderSubMenu.js +4 -4
  41. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  42. package/dist/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
  43. package/dist/components/HorizontalLayout/HorizontalLayout.js +8 -1
  44. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  45. package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  46. package/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  47. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  48. package/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  49. package/dist/components/MortgageFiltration/MortgageFiltration.js +10 -15
  50. package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  51. package/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  52. package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  53. package/dist/icons/IconName.d.ts +4 -2
  54. package/dist/icons/IconName.js +2 -0
  55. package/dist/icons/IconName.js.map +1 -1
  56. package/dist/model/HeadlineType.d.ts +1 -1
  57. package/dist/ui-kit/Badge/Badge.d.ts +6 -0
  58. package/dist/ui-kit/Badge/Badge.js +18 -0
  59. package/dist/ui-kit/Badge/Badge.js.map +1 -0
  60. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  61. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  62. package/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  63. package/dist/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  64. package/dist/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  65. package/dist/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  66. package/dist/ui-kit/BaseFiltration/getBadgeCount.js +6 -0
  67. package/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  68. package/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  69. package/{mobile/dist/components/MortgageFiltration/HotFilterRecord.js → dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  70. package/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  71. package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  72. package/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  73. package/dist/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  74. package/dist/ui-kit/BaseFiltration/useHotFilters.js +26 -0
  75. package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  76. package/dist/ui-kit/BaseTile/BaseTile.js +1 -5
  77. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  78. package/dist/ui-kit/DialogManager/DialogManager.js +9 -29
  79. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  80. package/dist/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  81. package/dist/ui-kit/DialogManager/useDialogsList.js +37 -0
  82. package/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  83. package/dist/ui-kit/TabsControl/TabItem.d.ts +5 -2
  84. package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  85. package/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
  86. package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  87. package/lib/common.css +1 -1
  88. package/lib/components/Blocks.mobile.js +6 -0
  89. package/lib/components/Blocks.mobile.js.map +1 -1
  90. package/lib/components/Bonus/Bonus.js +1 -2
  91. package/lib/components/Bonus/Bonus.js.map +1 -1
  92. package/lib/components/ButtonsBlock/ButtonsBlock.js +9 -1
  93. package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  94. package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  95. package/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
  96. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  97. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  98. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  99. package/lib/components/ErrorBlock/ErrorBlock.js +2 -3
  100. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  101. package/lib/components/Footer/TextInformation.js +2 -1
  102. package/lib/components/Footer/TextInformation.js.map +1 -1
  103. package/lib/components/Header/HeaderSubMenu.d.ts +1 -1
  104. package/lib/components/Header/HeaderSubMenu.js +4 -4
  105. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  106. package/lib/components/HorizontalLayout/HorizontalLayout.d.ts +2 -1
  107. package/lib/components/HorizontalLayout/HorizontalLayout.fixture.d.ts +1 -0
  108. package/lib/components/HorizontalLayout/HorizontalLayout.js +8 -1
  109. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  110. package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  111. package/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  112. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  113. package/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  114. package/lib/components/MortgageFiltration/MortgageFiltration.js +11 -16
  115. package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  116. package/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  117. package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  118. package/lib/icons/IconName.d.ts +4 -2
  119. package/lib/icons/IconName.js +2 -0
  120. package/lib/icons/IconName.js.map +1 -1
  121. package/lib/model/HeadlineType.d.ts +1 -1
  122. package/lib/ui-kit/Badge/Badge.d.ts +6 -0
  123. package/lib/ui-kit/Badge/Badge.fixture.d.ts +6 -0
  124. package/lib/ui-kit/Badge/Badge.js +16 -0
  125. package/lib/ui-kit/Badge/Badge.js.map +1 -0
  126. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  127. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  128. package/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  129. package/lib/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  130. package/lib/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  131. package/lib/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  132. package/lib/ui-kit/BaseFiltration/getBadgeCount.js +3 -0
  133. package/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  134. package/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  135. package/lib/{components/MortgageFiltration/HotFilterRecord.js → ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  136. package/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  137. package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  138. package/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  139. package/lib/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  140. package/lib/ui-kit/BaseFiltration/useHotFilters.js +23 -0
  141. package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  142. package/lib/ui-kit/BaseTile/BaseTile.js +1 -5
  143. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  144. package/lib/ui-kit/DialogManager/DialogManager.js +9 -29
  145. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  146. package/lib/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  147. package/lib/ui-kit/DialogManager/useDialogsList.js +34 -0
  148. package/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  149. package/lib/ui-kit/TabsControl/TabItem.d.ts +5 -2
  150. package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  151. package/lib/ui-kit/TabsControl/TabItemInner.js +3 -3
  152. package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  153. package/mobile/bundle/bundle.umd.js +87 -33
  154. package/mobile/bundle/bundle.umd.min.js +1 -1
  155. package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  156. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  157. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  158. package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +1 -1
  159. package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  160. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  161. package/mobile/bundle/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  162. package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  163. package/mobile/bundle/icons/IconName.d.ts +4 -2
  164. package/mobile/bundle/model/HeadlineType.d.ts +1 -1
  165. package/mobile/bundle/ui-kit/Badge/Badge.d.ts +6 -0
  166. package/mobile/bundle/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  167. package/mobile/bundle/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  168. package/mobile/bundle/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  169. package/mobile/bundle/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  170. package/mobile/bundle/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  171. package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +5 -2
  172. package/mobile/dist/components/Blocks.js +6 -0
  173. package/mobile/dist/components/Blocks.js.map +1 -1
  174. package/mobile/dist/components/Bonus/Bonus.js +1 -2
  175. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  176. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js +9 -1
  177. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  178. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  179. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +2 -3
  180. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  181. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  182. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  183. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -3
  184. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  185. package/mobile/dist/components/Footer/TextInformation.js +2 -1
  186. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  187. package/mobile/dist/components/Header/HeaderSubMenu.d.ts +1 -1
  188. package/mobile/dist/components/Header/HeaderSubMenu.js +4 -4
  189. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  190. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  191. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +1 -1
  192. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  193. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  194. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +10 -15
  195. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  196. package/mobile/dist/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  197. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  198. package/mobile/dist/icons/IconName.d.ts +4 -2
  199. package/mobile/dist/icons/IconName.js +2 -0
  200. package/mobile/dist/icons/IconName.js.map +1 -1
  201. package/mobile/dist/model/HeadlineType.d.ts +1 -1
  202. package/mobile/dist/ui-kit/Badge/Badge.d.ts +6 -0
  203. package/mobile/dist/ui-kit/Badge/Badge.js +18 -0
  204. package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -0
  205. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  206. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  207. package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  208. package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  209. package/mobile/dist/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  210. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  211. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js +6 -0
  212. package/mobile/dist/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  213. package/mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  214. package/{dist/components/MortgageFiltration/HotFilterRecord.js → mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  215. package/mobile/dist/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  216. package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  217. package/mobile/dist/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  218. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  219. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +26 -0
  220. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  221. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -5
  222. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  223. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +9 -29
  224. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  225. package/mobile/dist/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  226. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js +37 -0
  227. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  228. package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +5 -2
  229. package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  230. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +2 -2
  231. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  232. package/mobile/lib/common.css +1 -1
  233. package/mobile/lib/components/Blocks.js +6 -0
  234. package/mobile/lib/components/Blocks.js.map +1 -1
  235. package/mobile/lib/components/Bonus/Bonus.js +1 -2
  236. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  237. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js +9 -1
  238. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  239. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -0
  240. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +2 -3
  241. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  242. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +2 -4
  243. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -4
  244. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -3
  245. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  246. package/mobile/lib/components/Footer/TextInformation.js +2 -1
  247. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  248. package/mobile/lib/components/Header/HeaderSubMenu.d.ts +1 -1
  249. package/mobile/lib/components/Header/HeaderSubMenu.js +4 -4
  250. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  251. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +2 -0
  252. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +1 -1
  253. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  254. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +2 -5
  255. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +11 -16
  256. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  257. package/mobile/lib/components/MortgageFiltration/MortgageFiltrationContent.d.ts +13 -9
  258. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +3 -3
  259. package/mobile/lib/icons/IconName.d.ts +4 -2
  260. package/mobile/lib/icons/IconName.js +2 -0
  261. package/mobile/lib/icons/IconName.js.map +1 -1
  262. package/mobile/lib/model/HeadlineType.d.ts +1 -1
  263. package/mobile/lib/ui-kit/Badge/Badge.d.ts +6 -0
  264. package/mobile/lib/ui-kit/Badge/Badge.js +16 -0
  265. package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -0
  266. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +4 -5
  267. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
  268. package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.d.ts +7 -0
  269. package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.js +2 -0
  270. package/mobile/lib/ui-kit/BaseFiltration/HotFilterBase.js.map +1 -0
  271. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.d.ts +3 -0
  272. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js +3 -0
  273. package/mobile/lib/ui-kit/BaseFiltration/getBadgeCount.js.map +1 -0
  274. package/mobile/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.d.ts +1 -0
  275. package/mobile/lib/{components/MortgageFiltration/HotFilterRecord.js → ui-kit/BaseFiltration/hotFilterRecordCmp.js} +1 -1
  276. package/mobile/lib/ui-kit/BaseFiltration/hotFilterRecordCmp.js.map +1 -0
  277. package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js +1 -1
  278. package/mobile/lib/ui-kit/BaseFiltration/renderFiltrationForm.js.map +1 -1
  279. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.d.ts +14 -0
  280. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +23 -0
  281. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -0
  282. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -5
  283. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  284. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +9 -29
  285. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  286. package/mobile/lib/ui-kit/DialogManager/useDialogsList.d.ts +7 -0
  287. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js +34 -0
  288. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -0
  289. package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +5 -2
  290. package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  291. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +3 -3
  292. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  293. package/mobile/src/components/Blocks.ts +6 -0
  294. package/mobile/src/components/Bonus/Bonus.tsx +7 -13
  295. package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +22 -5
  296. package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
  297. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
  298. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
  299. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
  300. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
  301. package/mobile/src/components/Footer/TextInformation.tsx +3 -2
  302. package/mobile/src/components/Header/HeaderSubMenu.tsx +17 -15
  303. package/mobile/src/components/Headline/Headline.example.json +1 -1
  304. package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -0
  305. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  306. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -5
  307. package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +17 -37
  308. package/mobile/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -9
  309. package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -8
  310. package/mobile/src/icons/CourtHouseIcon.svg +1 -0
  311. package/mobile/src/icons/IconName.ts +4 -4
  312. package/mobile/src/model/HeadlineType.ts +1 -1
  313. package/mobile/src/ui-kit/Badge/Badge.tsx +34 -0
  314. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -20
  315. package/mobile/src/ui-kit/BaseFiltration/HotFilterBase.ts +7 -0
  316. package/mobile/src/ui-kit/BaseFiltration/getBadgeCount.ts +6 -0
  317. package/mobile/src/ui-kit/BaseFiltration/hotFilterRecordCmp.ts +3 -0
  318. package/mobile/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +1 -1
  319. package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +65 -0
  320. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +3 -12
  321. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +9 -34
  322. package/mobile/src/ui-kit/DialogManager/useDialogsList.ts +50 -0
  323. package/mobile/src/ui-kit/TabsControl/TabItem.tsx +5 -3
  324. package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +2 -1
  325. package/package.json +1 -1
  326. package/src/components/Blocks.mobile.ts +6 -0
  327. package/src/components/Bonus/Bonus.tsx +7 -13
  328. package/src/components/ButtonsBlock/ButtonsBlock.tsx +22 -5
  329. package/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -0
  330. package/src/components/CarouselEventCard/CarouselEventCard.tsx +10 -12
  331. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +7 -4
  332. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +3 -4
  333. package/src/components/ErrorBlock/ErrorBlock.tsx +2 -10
  334. package/src/components/Footer/TextInformation.tsx +3 -2
  335. package/src/components/Header/HeaderSubMenu.tsx +17 -15
  336. package/src/components/Headline/Headline.example.json +1 -1
  337. package/src/components/HorizontalLayout/HorizontalLayout.fixture.tsx +21 -0
  338. package/src/components/HorizontalLayout/HorizontalLayout.tsx +10 -2
  339. package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +2 -0
  340. package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  341. package/src/components/LinkDocs/LinkDocsContent.ts +3 -5
  342. package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +5 -2
  343. package/src/components/MortgageFiltration/MortgageFiltration.tsx +17 -37
  344. package/src/components/MortgageFiltration/MortgageFiltrationContent.ts +13 -9
  345. package/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -8
  346. package/src/icons/CourtHouseIcon.svg +1 -0
  347. package/src/icons/IconName.ts +4 -1
  348. package/src/model/HeadlineType.ts +1 -1
  349. package/src/ui-kit/Badge/Badge.fixture.tsx +24 -0
  350. package/src/ui-kit/Badge/Badge.tsx +34 -0
  351. package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +5 -20
  352. package/src/ui-kit/BaseFiltration/HotFilterBase.ts +7 -0
  353. package/src/ui-kit/BaseFiltration/getBadgeCount.ts +6 -0
  354. package/src/ui-kit/BaseFiltration/hotFilterRecordCmp.ts +3 -0
  355. package/src/ui-kit/BaseFiltration/renderFiltrationForm.tsx +1 -1
  356. package/src/ui-kit/BaseFiltration/useHotFilters.tsx +65 -0
  357. package/src/ui-kit/BaseTile/BaseTile.tsx +3 -12
  358. package/src/ui-kit/DialogManager/DialogManager.tsx +9 -34
  359. package/src/ui-kit/DialogManager/useDialogsList.ts +50 -0
  360. package/src/ui-kit/TabsControl/TabItem.tsx +5 -3
  361. package/src/ui-kit/TabsControl/TabItemInner.tsx +2 -1
  362. package/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  363. package/dist/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  364. package/dist/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  365. package/lib/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  366. package/lib/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  367. package/mobile/bundle/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  368. package/mobile/dist/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  369. package/mobile/dist/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  370. package/mobile/lib/components/MortgageFiltration/HotFilterRecord.d.ts +0 -11
  371. package/mobile/lib/components/MortgageFiltration/HotFilterRecord.js.map +0 -1
  372. package/mobile/src/components/MortgageFiltration/HotFilterRecord.ts +0 -14
  373. package/src/components/MortgageFiltration/HotFilterRecord.ts +0 -14
@@ -1378,7 +1378,7 @@
1378
1378
  });
1379
1379
 
1380
1380
  const Bonus = JSX(({ className = '', title, description, bonusItems = [], ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isEmbedded: true, title: title, description: description, headlineVersion: "M" }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
1381
- ? bonusItems.map((_, i) => (jsxs("div", { className: "space-y-xs flex flex-col grow w-full sm:w-[49%] border border-gray p-m", children: [jsxs("div", { className: "grow", children: [_?.title ? (jsx("div", { className: "mb-xs last:mb-0", children: jsx(Text, { size: "text-h4", children: _.title }) })) : null, _?.description ? (jsx("div", { className: "mb-text last:mb-0", children: jsx(Paragraph, { size: "text-xl", font: "font-light", children: _.description }) })) : null] }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
1381
+ ? bonusItems.map((_, i) => (jsxs("div", { className: "space-y-xs flex flex-col grow w-full sm:w-[49%] border border-gray p-m", children: [jsx("div", { className: "grow", children: jsx(Headline, { title: _?.title, description: _?.description, headlineVersion: "S", isEmbedded: true, align: "text-left" }) }), jsxs("div", { className: "flex justify-center sm:justify-between sm:items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
1382
1382
  ? renderBonusItemContent(_.bonusItemContent)
1383
1383
  : null] })] }, String(i))))
1384
1384
  : null })] }) })));
@@ -1434,7 +1434,15 @@
1434
1434
 
1435
1435
  const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl space-y-3xl", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center" }), jsx("div", { className: "flex gap-lg", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
1436
1436
 
1437
- const ButtonsBlock = JSX(({ buttons, className, ...rest }) => (jsx(BlockWrapper, { className: style('!bg-transparent', className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) })));
1437
+ const alignStyleMap = {
1438
+ start: 'justify-start',
1439
+ center: 'justify-center',
1440
+ end: 'justify-end',
1441
+ };
1442
+ const ButtonsBlock = JSX(({ buttons, className = '', align, ...rest }) => {
1443
+ const alignStyle = align ? style('flex', alignStyleMap[align]) : '';
1444
+ return (jsx(BlockWrapper, { className: style('!bg-transparent', alignStyle, className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) }));
1445
+ });
1438
1446
 
1439
1447
  const useCarouselControls = (props, initialIndex = 0) => {
1440
1448
  const { itemCount, visibleItemCount } = props;
@@ -2586,7 +2594,7 @@
2586
2594
  });
2587
2595
 
2588
2596
  const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
2589
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mt-s ml-s mb-xs", title: title })) : null, description ? (jsx("div", { className: "ml-s mb-m", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
2597
+ return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("div", { className: "p-s", children: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: "text-left" }) })] }) }));
2590
2598
  });
2591
2599
 
2592
2600
  const imageAlignmentMap = {
@@ -2595,11 +2603,7 @@
2595
2603
  end: 'self-end',
2596
2604
  };
2597
2605
  const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-wrap @xl:flex-nowrap justify-around @xl:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, { className: '-order-1 @xl:order-1', imageAlign })] })] })));
2598
- const renderImageContainer = (image, { className, imageAlign }) => {
2599
- //TODO Спорное решение
2600
- const fullWidth = image?.props?.image?.size?.width > 400;
2601
- return image ? (jsx("div", { className: style('flex-shrink-0', fullWidth ? 'w-full @xl:w-auto' : '', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2602
- };
2606
+ const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2603
2607
 
2604
2608
  const cardColumnsModeStyleMap = {
2605
2609
  1: 'grid-cols-1',
@@ -2940,12 +2944,12 @@
2940
2944
  const [visibleBlocks, hiddenBlocks] = topItemsCount > 0
2941
2945
  ? [blocksToRender.slice(0, topItemsCount), blocksToRender.slice(topItemsCount)]
2942
2946
  : [blocksToRender, []];
2943
- 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-2xs', resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2944
- return (jsx(FoldableSection, { className: style(resultsGridStyle, isUnfolded ? 'mb-2xs' : ''), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2947
+ return (jsxs("div", { children: [jsx("div", { className: style(blocksToRender.length ? 'hidden' : 'block'), children: notFound ? renderNotFound(notFound) : null }), jsxs("div", { className: style('space-y-2xs', blocksToRender.length ? '' : 'hidden'), children: [jsx("div", { className: style(resultsGridStyle), children: renderBlocksList(visibleBlocks, { ...rest.options, parent: block }) }), jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => {
2948
+ return (jsx(FoldableSection, { className: style(resultsGridStyle), isUnfolded: isUnfolded, children: renderBlocksList(hiddenBlocks, { ...rest.options, parent: block }) }));
2945
2949
  }, 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 })) })] })] }));
2946
2950
  });
2947
2951
  function renderNotFound({ title, description }) {
2948
- return (jsxs("div", { className: "bg-white py-20", children: [title ? (jsx("div", { className: "mb-xs", 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] }));
2952
+ return (jsx("div", { className: "bg-white py-20", children: jsx(Headline, { title: title, description: description, headlineVersion: "S", isEmbedded: true }) }));
2949
2953
  }
2950
2954
 
2951
2955
  const SlideCheckboxGroup = JSX(({ value, onChange, items = [], multiple }) => {
@@ -2964,7 +2968,7 @@
2964
2968
  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)));
2965
2969
  });
2966
2970
 
2967
- const renderFiltrationForm = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex justify-between bg-white p-4xl mb-2xs", children: [jsxs("div", { className: "flex gap-5xl", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72 ml-s", onClick: reset, ...resetButton }) })) : null] }));
2971
+ const renderFiltrationForm = ({ field, reset, filtrationSchema, resetButton, children, }) => (jsxs("form", { className: "flex justify-between bg-white p-4xl", children: [jsxs("div", { className: "flex gap-5xl", children: [children, Object.entries(filtrationSchema).map(renderFormItem(field))] }), resetButton ? (jsx("div", { children: jsx(Button, { className: "w-72 ml-s", onClick: reset, ...resetButton }) })) : null] }));
2968
2972
  const renderFormItem = (field) => ([key, item]) => {
2969
2973
  const type = item?.type;
2970
2974
  switch (type) {
@@ -3013,7 +3017,7 @@
3013
3017
  return null;
3014
3018
  };
3015
3019
  const getErrorBlockStyle = (text) => (text ? 'py-20' : 'mb-16 mt-24');
3016
- const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-lg justify-center items-center', className), defaultPadding: style('py-xs', getErrorBlockStyle(button?.text)), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left", title: title }) : null, subtitle ? (jsx("div", { className: "max-w-[613px] text-center", children: jsx(Text, { size: "text-xl", font: "font-light", children: subtitle }) })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
3020
+ const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col gap-lg justify-center items-center', className), defaultPadding: style('py-xs', getErrorBlockStyle(button?.text)), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: subtitle, headlineVersion: "XL", isEmbedded: true }), button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
3017
3021
 
3018
3022
  var Currencies;
3019
3023
  (function (Currencies) {
@@ -3462,7 +3466,7 @@
3462
3466
  return (jsx("a", { className: `text-xs font-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}` }));
3463
3467
  });
3464
3468
 
3465
- const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", 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 flex-col sm:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3469
+ const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", 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 flex-col @lg:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3466
3470
 
3467
3471
  const LEFT_COL_WIDTH = 'w-52';
3468
3472
  const Footer = JSX(({ className, ...rest }) => {
@@ -3623,15 +3627,6 @@
3623
3627
  return (jsxs("div", { className: style('flex items-center gap-lg', className), children: [jsx(TopItem, { flat: true, href: "#", text: currentLocation?.name, onClick: openLocationDialog }), officesLink ? jsx(TopItem, { flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" }) : null, jsx(HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: "\u041F\u043E\u0438\u0441\u043A", onClick: openSearchDialog })] }));
3624
3628
  });
3625
3629
 
3626
- const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
3627
-
3628
- const findActiveSubItem = (router) => (items = []) => {
3629
- const possibleActiveSubItems = items?.filter(isHrefActive(router));
3630
- return possibleActiveSubItems?.length
3631
- ? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
3632
- : undefined;
3633
- };
3634
-
3635
3630
  const DropdownMenu = JSX(({ className = '', items, activeItem }) => {
3636
3631
  const link = useLink();
3637
3632
  const [visible, setVisible] = useState(false);
@@ -3646,26 +3641,6 @@
3646
3641
  }) })] }));
3647
3642
  });
3648
3643
 
3649
- const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
3650
- const link = useLink();
3651
- const { href, target, text, onClick } = link(rest);
3652
- return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
3653
- });
3654
- const getTextStyle = (active = false) => style('font-sans text-l font-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
3655
-
3656
- const HeaderSubMenuItem = JSX(({ observerOptions, onVisibilityChange, children, className, ...rest }) => {
3657
- const observerCallback = useCallback((entries) => {
3658
- if (!entries.length || !onVisibilityChange) {
3659
- return;
3660
- }
3661
- // Assumption about entries order (by time)
3662
- const entry = entries[entries.length - 1];
3663
- onVisibilityChange(entry.isIntersecting);
3664
- }, [onVisibilityChange]);
3665
- const ref = useIntersectionObserver(observerCallback, observerOptions);
3666
- return (jsx("span", { ref: ref, className: className, children: jsx(HeaderItem, { ...rest, children: children }) }));
3667
- });
3668
-
3669
3644
  const getNS = (_) => globalThis[_];
3670
3645
  function useExternalNS(namespaceName, url) {
3671
3646
  const [externalNS, setExternalNS] = useState();
@@ -3721,12 +3696,41 @@
3721
3696
  });
3722
3697
  const renderChatBotButton = ({ className, iconVersion, onClick }) => (jsx(HeaderSecondaryMenuButton, { className: style(CHAT_BUTTON_EXTERNAL_NAME, className), image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: "\u0427\u0430\u0442", onClick: onClick, buttonSize: "large", isGrayBg: true }));
3723
3698
 
3699
+ const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
3700
+ const link = useLink();
3701
+ const { href, target, text, onClick } = link(rest);
3702
+ return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
3703
+ });
3704
+ const getTextStyle = (active = false) => style('font-sans text-l font-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
3705
+
3706
+ const HeaderSubMenuItem = JSX(({ observerOptions, onVisibilityChange, children, className, ...rest }) => {
3707
+ const observerCallback = useCallback((entries) => {
3708
+ if (!entries.length || !onVisibilityChange) {
3709
+ return;
3710
+ }
3711
+ // Assumption about entries order (by time)
3712
+ const entry = entries[entries.length - 1];
3713
+ onVisibilityChange(entry.isIntersecting);
3714
+ }, [onVisibilityChange]);
3715
+ const ref = useIntersectionObserver(observerCallback, observerOptions);
3716
+ return (jsx("span", { ref: ref, className: className, children: jsx(HeaderItem, { ...rest, children: children }) }));
3717
+ });
3718
+
3724
3719
  const BUTTON_STYLE = {
3725
3720
  default: 'px-lg bg-main-divider rounded hover:text-primary-main',
3726
3721
  transparent: 'text-white hover:text-primary-hover',
3727
3722
  };
3728
3723
  const InternetBankButton = JSX(({ version, internetBankUrl }) => internetBankUrl ? (jsx(Button, { href: internetBankUrl, ariaLabel: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A", target: "_blank", className: style('py-s ml-s text-l font-light whitespace-nowrap hover:text-primary-main', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A" })) : null);
3729
3724
 
3725
+ const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
3726
+
3727
+ const findActiveSubItem = (router) => (items = []) => {
3728
+ const possibleActiveSubItems = items?.filter(isHrefActive(router));
3729
+ return possibleActiveSubItems?.length
3730
+ ? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
3731
+ : undefined;
3732
+ };
3733
+
3730
3734
  const HeaderSubMenu = JSX(({ subItems = [], version, internetBankUrl }) => {
3731
3735
  const iconVersion = version === 'transparent' ? 'white' : 'black';
3732
3736
  const router = useRouter();
@@ -3740,7 +3744,7 @@
3740
3744
  ? handleIntersectionActivation(index)
3741
3745
  : handleIntersectionDeactivation(index));
3742
3746
  }), [subItems]);
3743
- return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] }));
3747
+ return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, jsxs("div", { className: "flex", children: [projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] })] }));
3744
3748
  });
3745
3749
  const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
3746
3750
  const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
@@ -3768,7 +3772,14 @@
3768
3772
  '': '',
3769
3773
  };
3770
3774
 
3771
- const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren(rest) })));
3775
+ const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, isCardBorder, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
3776
+ ...rest,
3777
+ extraProps: {
3778
+ className: isCardBorder
3779
+ ? 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider'
3780
+ : '',
3781
+ },
3782
+ }) })));
3772
3783
  HorizontalLayout.childrenTypes = {
3773
3784
  exclude: ['HorizontalLayout'],
3774
3785
  };
@@ -3875,7 +3886,7 @@
3875
3886
  const renderInvestmentColumn = (column, i, arr) => {
3876
3887
  const isSecondColumn = i === 1;
3877
3888
  const isLastColumn = i === arr.length - 1;
3878
- return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-[292px]' : ''}`, children: column.cells.reverse().map(renderInvestmentCell) })) : null }, `column_${i}`));
3889
+ return (jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: column.cells?.length ? (jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-2xs min-w-72' : ''}`, children: column.cells.reverse().map(renderInvestmentCell) })) : null }, `column_${i}`));
3879
3890
  };
3880
3891
  const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
3881
3892
  cells.length ? 'flex-1' : 'flex-0',
@@ -3949,6 +3960,51 @@
3949
3960
  return (jsx(BlockWrapper, { className: style('min-h-80', className), padding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-6xl", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', AlignText[alignTitle]) })) : null, rightImage: image?.src ? jsx(Img, { className: "hidden lg:block", image: image }) : null, buttons: buttonsConditionStyle(buttons), children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 flex-wrap gap-m items-center", children: [qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList$1(items), image?.src ? jsx(Img, { className: "lg:hidden", image: image }) : null] })] }) }));
3950
3961
  });
3951
3962
 
3963
+ const badgeBgStyleMap = {
3964
+ primary: 'bg-white/30',
3965
+ secondary: 'bg-main-divider',
3966
+ };
3967
+ const badgeTextColorStyleMap = {
3968
+ primary: 'text-white',
3969
+ secondary: 'text-secondary-text',
3970
+ };
3971
+ const Badge = JSX(({ count, version = 'secondary' }) => {
3972
+ return (jsx("div", { className: style('w-6 h-6 rounded-full flex items-center justify-center', badgeBgStyleMap[version]), children: jsx(Text, { size: "text-xs", color: badgeTextColorStyleMap[version], children: count }) }));
3973
+ });
3974
+
3975
+ const getBadgeCount = (blocks = [], filter = {}) => blocks.filter(({ content = {} }) => checkShouldRenderBlock(filter, content)).length;
3976
+
3977
+ const scalarCmp = (a, b) => a === b;
3978
+ const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
3979
+ const objCmp = (cmp) => (a, b) => a === b ||
3980
+ Boolean(a &&
3981
+ b &&
3982
+ Object.keys(a).length === Object.keys(b).length &&
3983
+ Object.entries(a).every(([key, value]) => cmp(value, b[key])));
3984
+ function combineBoolCmps(...comparators) {
3985
+ return (a, b) => comparators.some((cmp) => cmp(a, b));
3986
+ }
3987
+
3988
+ const hotFilterRecordCmp = objCmp(combineBoolCmps(scalarCmp, arrCmp()));
3989
+
3990
+ const EMPTY_ARR = [];
3991
+ const EMPTY_OBJ = {};
3992
+ const useHotFilters = ({ hotFilters = EMPTY_ARR, filtrationState = EMPTY_OBJ, blocks = EMPTY_ARR, onFiltrationStateChange, }) => {
3993
+ const activeItemIndex = useMemo(() => Math.max(0, hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState))), [hotFilters, filtrationState]);
3994
+ const items = useMemo(() => hotFilters.map((_) => ({
3995
+ text: _.text,
3996
+ appendRight: (jsx(Badge, { version: _ === hotFilters[activeItemIndex] ? 'primary' : 'secondary', count: getBadgeCount(blocks, _.filter) })),
3997
+ })), [hotFilters, blocks, activeItemIndex]);
3998
+ const handleChange = useCallback((_) => {
3999
+ onFiltrationStateChange(hotFilters[items.indexOf(_)].filter);
4000
+ }, [hotFilters, items]);
4001
+ return {
4002
+ value: items[activeItemIndex],
4003
+ items: items,
4004
+ onChange: handleChange,
4005
+ };
4006
+ };
4007
+
3952
4008
  const tabPaddingStyleMap = {
3953
4009
  default: 'px-xs',
3954
4010
  underlined: 'px-m',
@@ -3972,8 +4028,8 @@
3972
4028
  };
3973
4029
  const TabItemInner = JSX(({ tag = 'div', item = {}, isActive, type = 'default', onClick }) => {
3974
4030
  const Tag = tag;
3975
- const { text, ...link } = item;
3976
- return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tab", "aria-selected": isActive, onClick: onClick, ...link, children: jsx("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: jsx(Text, { size: "text-m", children: text }) }) }));
4031
+ const { text, appendRight, ...link } = item;
4032
+ return (jsx(Tag, { className: style('h-12', 'block flex-1', 'cursor-pointer', tabPaddingStyleMap[type], isActive ? activeTabBgStyleMap[type] : tabBgStyleMap[type]), role: "tab", "aria-selected": isActive, onClick: onClick, ...link, children: jsxs("div", { className: style('h-full', 'flex justify-center items-center', 'text-center whitespace-nowrap', isActive ? activeTabTextStyleMap[type] : tabTextStyle), children: [jsx(Text, { size: "text-m", children: text }), appendRight ? jsx("div", { className: "ml-xs", children: appendRight }) : null] }) }));
3977
4033
  });
3978
4034
 
3979
4035
  const TabItem = JSX((props) => props?.item?.href ? jsx(LinkTabItem, { ...props }) : jsx(ButtonTabItem, { ...props }));
@@ -3997,40 +4053,22 @@
3997
4053
 
3998
4054
  const TabsControl = JSX(({ className, tabsType = 'default', items = [], value, onChange }) => (jsx("div", { className: style('flex gap-x-2xs overflow-x-auto no-scrollbar', className), role: "tablist", children: items.map(renderTab(value, onChange, tabsType)) })));
3999
4055
 
4000
- const scalarCmp = (a, b) => a === b;
4001
- const arrCmp = (cmp = scalarCmp) => (a, b) => a === b || Boolean(a && b && a.length === b.length && a.every((_, i) => cmp(_, b[i])));
4002
- const objCmp = (cmp) => (a, b) => a === b ||
4003
- Boolean(a &&
4004
- b &&
4005
- Object.keys(a).length === Object.keys(b).length &&
4006
- Object.entries(a).every(([key, value]) => cmp(value, b[key])));
4007
- function combineBoolCmps(...comparators) {
4008
- return (a, b) => comparators.some((cmp) => cmp(a, b));
4009
- }
4010
-
4011
- const hotFilterRecordCmp = objCmp(combineBoolCmps(scalarCmp, arrCmp()));
4012
-
4013
4056
  const initialFiltrationState = {
4014
4057
  categories: [],
4015
4058
  extraOptions: [],
4016
4059
  propertyType: [],
4017
4060
  stage: [],
4018
4061
  };
4019
- const MortgageFiltration = JSX(({ className, hotFilters = [], filtrationSchema = {}, resetButton, ...rest }) => {
4062
+ const MortgageFiltration = JSX(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
4020
4063
  const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
4021
- const tabsControlItems = useMemo(() => hotFilters.map(({ text }) => ({
4022
- text,
4023
- })), [hotFilters]);
4024
- const [hotFilterIndex, setHotFilterIndex] = useState(0);
4025
- const handleHotFilterSelect = useCallback((_) => {
4026
- setHotFilterIndex(tabsControlItems.indexOf(_));
4027
- replaceFiltrationState(hotFilters[tabsControlItems.indexOf(_)].filter || initialFiltrationState);
4028
- }, [hotFilters, tabsControlItems]);
4029
- useEffect(() => {
4030
- const suggestedHotFilterIndex = hotFilters.findIndex((_) => hotFilterRecordCmp(_.filter, filtrationState));
4031
- setHotFilterIndex(suggestedHotFilterIndex !== -1 ? suggestedHotFilterIndex : 0);
4032
- }, [hotFilters, filtrationState]);
4033
- return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { className: "mb-2xs", items: tabsControlItems, value: tabsControlItems[hotFilterIndex], onChange: handleHotFilterSelect }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
4064
+ const handleFiltrationStateChange = useCallback((_ = initialFiltrationState) => replaceFiltrationState(_), []);
4065
+ const tabsControlProps = useHotFilters({
4066
+ hotFilters,
4067
+ filtrationState,
4068
+ blocks: rest.block?.blocks,
4069
+ onFiltrationStateChange: handleFiltrationStateChange,
4070
+ });
4071
+ return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
4034
4072
  });
4035
4073
  MortgageFiltration.childrenTypes = ['ProductTile'];
4036
4074
  MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
@@ -5104,19 +5142,16 @@
5104
5142
  throw new Error(x);
5105
5143
  }
5106
5144
 
5107
- const DialogManager = JSX(() => {
5145
+ const useDialogsList = ({ onCloseAll, onClose, } = {}) => {
5108
5146
  const [dialogs, { push, pop, clear }] = useList();
5109
5147
  const closeAll = useCallback(() => {
5110
- for (const _ of dialogs) {
5111
- _.onClose && _.onClose();
5112
- }
5148
+ onCloseAll && onCloseAll(dialogs);
5113
5149
  clear();
5114
- }, [dialogs]);
5150
+ }, [dialogs, onCloseAll]);
5115
5151
  const close = useCallback(() => {
5116
- const _ = dialogs[dialogs.length - 1];
5117
- _?.onClose && _.onClose();
5152
+ onClose && onClose(dialogs[dialogs.length - 1]);
5118
5153
  pop();
5119
- }, [dialogs]);
5154
+ }, [dialogs, onClose]);
5120
5155
  useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
5121
5156
  switch (action.type) {
5122
5157
  case 'open':
@@ -5134,6 +5169,20 @@
5134
5169
  assertUnreachable(action);
5135
5170
  }
5136
5171
  }), [closeAll, close]);
5172
+ return dialogs;
5173
+ };
5174
+
5175
+ const DialogManager = JSX(() => {
5176
+ const handleCloseAll = useCallback((dialogs) => {
5177
+ for (const _ of dialogs) {
5178
+ _?.onClose && _.onClose();
5179
+ }
5180
+ }, []);
5181
+ const handleClose = useCallback((_) => {
5182
+ _?.onClose && _.onClose();
5183
+ }, []);
5184
+ const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
5185
+ const { close } = useDialogManager();
5137
5186
  useEffect(() => {
5138
5187
  const handleEscape = ({ key }) => {
5139
5188
  if (key === 'Escape') {
@@ -5215,7 +5264,7 @@
5215
5264
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5216
5265
  }
5217
5266
 
5218
- const packageVersion = "0.13.5";
5267
+ const packageVersion = "0.13.7";
5219
5268
 
5220
5269
  exports.Blocks = Blocks;
5221
5270
  exports.ContentPage = ContentPage;