@redneckz/wildless-cms-uni-blocks 0.15.339 → 0.15.341

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 (569) hide show
  1. package/bin/migration-scripts/0.14.213.js +1 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +199 -135
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  6. package/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  7. package/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  8. package/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  9. package/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  10. package/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  11. package/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  12. package/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  13. package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  14. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  15. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  16. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  17. package/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  18. package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  19. package/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  20. package/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  21. package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
  22. package/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
  23. package/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
  24. package/bundle/content-page-repository/copy.d.ts +1 -0
  25. package/bundle/data/FooterData.d.ts +0 -1
  26. package/bundle/data/SitemapData.d.ts +1 -10
  27. package/bundle/icons/IconName.d.ts +4 -2
  28. package/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  29. package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  30. package/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
  31. package/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
  32. package/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  33. package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  34. package/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  35. package/bundle/utils/getVersion.d.ts +1 -0
  36. package/cosmos-static/icons/MapMarkerClusterYellowIcon.svg +1 -0
  37. package/cosmos-static/icons/sprites.svg +1 -0
  38. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  39. package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  40. package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  41. package/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  42. package/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  43. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  44. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
  45. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  46. package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  47. package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  48. package/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  49. package/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
  50. package/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  51. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  52. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
  53. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  54. package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  55. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  56. package/dist/components/ContentPage/ContentPage.js +1 -1
  57. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  58. package/dist/components/Footer/Footer.js +2 -9
  59. package/dist/components/Footer/Footer.js.map +1 -1
  60. package/dist/components/Footer/Footer.mobile.js +1 -9
  61. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  62. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  63. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  64. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  65. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  66. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  67. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  68. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  69. package/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
  70. package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  71. package/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  72. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  73. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
  74. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  75. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  76. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  77. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  78. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
  79. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  80. package/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  81. package/dist/components/OfficesAtmsMap/useOffices.js +4 -2
  82. package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  83. package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
  84. package/dist/components/ProductGallery/ProductGallery.js +12 -5
  85. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  86. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  87. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  88. package/dist/components/TabsLayout/TabsLayout.js +17 -11
  89. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  90. package/dist/components/TabsLayout/renderTabsLayout.js +14 -12
  91. package/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
  92. package/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
  93. package/dist/content-page-repository/ContentPageRepository.js +27 -5
  94. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  95. package/dist/content-page-repository/TransformationOptions.d.ts +1 -0
  96. package/dist/content-page-repository/copy.d.ts +1 -0
  97. package/dist/content-page-repository/copy.js +16 -0
  98. package/dist/content-page-repository/copy.js.map +1 -0
  99. package/dist/content-page-repository/transformAttachmentLink.js +8 -7
  100. package/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
  101. package/dist/content-page-repository/transformDocument.js +3 -5
  102. package/dist/content-page-repository/transformDocument.js.map +1 -1
  103. package/dist/content-page-repository/transformImg.js +4 -1
  104. package/dist/content-page-repository/transformImg.js.map +1 -1
  105. package/dist/data/FooterData.d.ts +0 -1
  106. package/dist/data/SitemapData.d.ts +1 -10
  107. package/dist/icons/IconName.d.ts +4 -2
  108. package/dist/icons/IconName.js +3 -1
  109. package/dist/icons/IconName.js.map +1 -1
  110. package/dist/ui-kit/Badge/Badge.js +1 -3
  111. package/dist/ui-kit/Badge/Badge.js.map +1 -1
  112. package/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  113. package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  114. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  115. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  116. package/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  117. package/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
  118. package/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  119. package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  120. package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  121. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  122. package/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
  123. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  124. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  125. package/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
  126. package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  127. package/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  128. package/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
  129. package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  130. package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  131. package/dist/ui-kit/YandexMap/YandexMap.js +2 -2
  132. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  133. package/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  134. package/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
  135. package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  136. package/dist/utils/getVersion.d.ts +1 -0
  137. package/dist/utils/getVersion.js +5 -0
  138. package/dist/utils/getVersion.js.map +1 -0
  139. package/lib/common.css +1 -1
  140. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  141. package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  142. package/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
  143. package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  144. package/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  145. package/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  146. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  147. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
  148. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  149. package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  150. package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  151. package/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  152. package/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
  153. package/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  154. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  155. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
  156. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  157. package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  158. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  159. package/lib/components/ContentPage/ContentPage.js +1 -1
  160. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  161. package/lib/components/Footer/Footer.js +2 -9
  162. package/lib/components/Footer/Footer.js.map +1 -1
  163. package/lib/components/Footer/Footer.mobile.js +1 -9
  164. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  165. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  166. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  167. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  168. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  169. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  170. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  171. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  172. package/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
  173. package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  174. package/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  175. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +2 -0
  176. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
  177. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  178. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  179. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  180. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +6 -0
  181. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
  182. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  183. package/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  184. package/lib/components/OfficesAtmsMap/useOffices.js +4 -2
  185. package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  186. package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
  187. package/lib/components/ProductGallery/ProductGallery.js +12 -5
  188. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  189. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  190. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  191. package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +4 -3
  192. package/lib/components/TabsLayout/TabsLayout.fixture.mobile.d.ts +4 -2
  193. package/lib/components/TabsLayout/TabsLayout.js +17 -11
  194. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  195. package/lib/components/TabsLayout/renderTabsLayout.js +14 -12
  196. package/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
  197. package/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
  198. package/lib/content-page-repository/ContentPageRepository.js +26 -4
  199. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  200. package/lib/content-page-repository/TransformationOptions.d.ts +1 -0
  201. package/lib/content-page-repository/copy.d.ts +1 -0
  202. package/lib/content-page-repository/copy.js +10 -0
  203. package/lib/content-page-repository/copy.js.map +1 -0
  204. package/lib/content-page-repository/transformAttachmentLink.js +8 -7
  205. package/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
  206. package/lib/content-page-repository/transformDocument.js +3 -5
  207. package/lib/content-page-repository/transformDocument.js.map +1 -1
  208. package/lib/content-page-repository/transformImg.js +4 -1
  209. package/lib/content-page-repository/transformImg.js.map +1 -1
  210. package/lib/data/FooterData.d.ts +0 -1
  211. package/lib/data/SitemapData.d.ts +1 -10
  212. package/lib/icons/IconName.d.ts +4 -2
  213. package/lib/icons/IconName.js +3 -1
  214. package/lib/icons/IconName.js.map +1 -1
  215. package/lib/ui-kit/Badge/Badge.js +1 -3
  216. package/lib/ui-kit/Badge/Badge.js.map +1 -1
  217. package/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  218. package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  219. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  220. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  221. package/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  222. package/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
  223. package/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  224. package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  225. package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  226. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  227. package/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
  228. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  229. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  230. package/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
  231. package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  232. package/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  233. package/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
  234. package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  235. package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  236. package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  237. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  238. package/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  239. package/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
  240. package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  241. package/lib/utils/getVersion.d.ts +1 -0
  242. package/lib/utils/getVersion.js +2 -0
  243. package/lib/utils/getVersion.js.map +1 -0
  244. package/mobile/bundle/bundle.umd.js +194 -128
  245. package/mobile/bundle/bundle.umd.min.js +1 -1
  246. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  247. package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  248. package/mobile/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  249. package/mobile/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  250. package/mobile/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  251. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  252. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  253. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  254. package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  255. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  256. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  257. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  258. package/mobile/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  259. package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  260. package/mobile/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  261. package/mobile/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  262. package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
  263. package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
  264. package/mobile/bundle/content-page-repository/copy.d.ts +1 -0
  265. package/mobile/bundle/data/FooterData.d.ts +0 -1
  266. package/mobile/bundle/data/SitemapData.d.ts +1 -10
  267. package/mobile/bundle/icons/IconName.d.ts +4 -2
  268. package/mobile/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  269. package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  270. package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
  271. package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
  272. package/mobile/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  273. package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  274. package/mobile/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  275. package/mobile/bundle/utils/getVersion.d.ts +1 -0
  276. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  277. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  278. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  279. package/mobile/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  280. package/mobile/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  281. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  282. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
  283. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  284. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  285. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  286. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  287. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
  288. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  289. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  290. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
  291. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  292. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  293. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  294. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  295. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  296. package/mobile/dist/components/Footer/Footer.js +1 -9
  297. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  298. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  299. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  300. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  301. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  302. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  303. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  304. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  305. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
  306. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  307. package/mobile/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  308. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  309. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
  310. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  311. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  312. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  313. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  314. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
  315. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  316. package/mobile/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  317. package/mobile/dist/components/OfficesAtmsMap/useOffices.js +4 -2
  318. package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  319. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  320. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  321. package/mobile/dist/components/TabsLayout/TabsLayout.js +17 -11
  322. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  323. package/mobile/dist/components/TabsLayout/renderTabsLayout.js +14 -12
  324. package/mobile/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
  325. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
  326. package/mobile/dist/content-page-repository/ContentPageRepository.js +27 -5
  327. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  328. package/mobile/dist/content-page-repository/TransformationOptions.d.ts +1 -0
  329. package/mobile/dist/content-page-repository/copy.d.ts +1 -0
  330. package/mobile/dist/content-page-repository/copy.js +16 -0
  331. package/mobile/dist/content-page-repository/copy.js.map +1 -0
  332. package/mobile/dist/content-page-repository/transformAttachmentLink.js +8 -7
  333. package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
  334. package/mobile/dist/content-page-repository/transformDocument.js +3 -5
  335. package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
  336. package/mobile/dist/content-page-repository/transformImg.js +4 -1
  337. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  338. package/mobile/dist/data/FooterData.d.ts +0 -1
  339. package/mobile/dist/data/SitemapData.d.ts +1 -10
  340. package/mobile/dist/icons/IconName.d.ts +4 -2
  341. package/mobile/dist/icons/IconName.js +3 -1
  342. package/mobile/dist/icons/IconName.js.map +1 -1
  343. package/mobile/dist/ui-kit/Badge/Badge.js +1 -3
  344. package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -1
  345. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  346. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  347. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  348. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  349. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  350. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
  351. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  352. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  353. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  354. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  355. package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
  356. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  357. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  358. package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
  359. package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  360. package/mobile/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  361. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
  362. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  363. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  364. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -2
  365. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  366. package/mobile/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  367. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
  368. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  369. package/mobile/dist/utils/getVersion.d.ts +1 -0
  370. package/mobile/dist/utils/getVersion.js +5 -0
  371. package/mobile/dist/utils/getVersion.js.map +1 -0
  372. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  373. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  374. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
  375. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  376. package/mobile/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  377. package/mobile/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  378. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  379. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
  380. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  381. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  382. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  383. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  384. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
  385. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  386. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  387. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
  388. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  389. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  390. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  391. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  392. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  393. package/mobile/lib/components/Footer/Footer.js +1 -9
  394. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  395. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  396. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  397. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  398. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  399. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  400. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  401. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  402. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
  403. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  404. package/mobile/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  405. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  406. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
  407. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  408. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  409. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  410. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  411. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
  412. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  413. package/mobile/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  414. package/mobile/lib/components/OfficesAtmsMap/useOffices.js +4 -2
  415. package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  416. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  417. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  418. package/mobile/lib/components/TabsLayout/TabsLayout.js +17 -11
  419. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  420. package/mobile/lib/components/TabsLayout/renderTabsLayout.js +14 -12
  421. package/mobile/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
  422. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
  423. package/mobile/lib/content-page-repository/ContentPageRepository.js +26 -4
  424. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  425. package/mobile/lib/content-page-repository/TransformationOptions.d.ts +1 -0
  426. package/mobile/lib/content-page-repository/copy.d.ts +1 -0
  427. package/mobile/lib/content-page-repository/copy.js +10 -0
  428. package/mobile/lib/content-page-repository/copy.js.map +1 -0
  429. package/mobile/lib/content-page-repository/transformAttachmentLink.js +8 -7
  430. package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
  431. package/mobile/lib/content-page-repository/transformDocument.js +3 -5
  432. package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
  433. package/mobile/lib/content-page-repository/transformImg.js +4 -1
  434. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  435. package/mobile/lib/data/FooterData.d.ts +0 -1
  436. package/mobile/lib/data/SitemapData.d.ts +1 -10
  437. package/mobile/lib/icons/IconName.d.ts +4 -2
  438. package/mobile/lib/icons/IconName.js +3 -1
  439. package/mobile/lib/icons/IconName.js.map +1 -1
  440. package/mobile/lib/ui-kit/Badge/Badge.js +1 -3
  441. package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -1
  442. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  443. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  444. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  445. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  446. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  447. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
  448. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  449. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  450. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  451. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  452. package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
  453. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  454. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  455. package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
  456. package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  457. package/mobile/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  458. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
  459. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  460. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  461. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  462. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  463. package/mobile/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  464. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
  465. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  466. package/mobile/lib/utils/getVersion.d.ts +1 -0
  467. package/mobile/lib/utils/getVersion.js +2 -0
  468. package/mobile/lib/utils/getVersion.js.map +1 -0
  469. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
  470. package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
  471. package/mobile/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
  472. package/mobile/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
  473. package/mobile/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
  474. package/mobile/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
  475. package/mobile/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
  476. package/mobile/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
  477. package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
  478. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  479. package/mobile/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
  480. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -0
  481. package/mobile/src/components/Footer/Footer.tsx +0 -16
  482. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  483. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
  484. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
  485. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
  486. package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
  487. package/mobile/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
  488. package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
  489. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
  490. package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
  491. package/mobile/src/components/OfficesAtmsMap/useOffices.ts +11 -4
  492. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
  493. package/mobile/src/components/TabsLayout/TabsLayout.tsx +21 -11
  494. package/mobile/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
  495. package/mobile/src/content-page-repository/ContentPageRepository.ts +42 -4
  496. package/mobile/src/content-page-repository/TransformationOptions.ts +1 -0
  497. package/mobile/src/content-page-repository/copy.ts +11 -0
  498. package/mobile/src/content-page-repository/transformAttachmentLink.ts +7 -8
  499. package/mobile/src/content-page-repository/transformDocument.ts +3 -5
  500. package/mobile/src/content-page-repository/transformImg.ts +6 -1
  501. package/mobile/src/data/FooterData.ts +0 -1
  502. package/mobile/src/data/SitemapData.ts +1 -11
  503. package/mobile/src/icons/IconName.ts +5 -5
  504. package/mobile/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
  505. package/mobile/src/ui-kit/Badge/Badge.tsx +13 -15
  506. package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
  507. package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  508. package/mobile/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
  509. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
  510. package/mobile/src/ui-kit/Heading/HeadingProps.ts +1 -3
  511. package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
  512. package/mobile/src/ui-kit/TabsControl/TabItem.tsx +1 -2
  513. package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
  514. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
  515. package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
  516. package/mobile/src/utils/getVersion.ts +1 -0
  517. package/package.json +1 -1
  518. package/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
  519. package/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
  520. package/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
  521. package/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
  522. package/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
  523. package/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
  524. package/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
  525. package/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
  526. package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
  527. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  528. package/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
  529. package/src/components/ContentPage/ContentPage.tsx +1 -0
  530. package/src/components/Footer/Footer.mobile.tsx +0 -16
  531. package/src/components/Footer/Footer.tsx +0 -19
  532. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  533. package/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
  534. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
  535. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
  536. package/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
  537. package/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
  538. package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
  539. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
  540. package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
  541. package/src/components/OfficesAtmsMap/useOffices.ts +11 -4
  542. package/src/components/ProductGallery/ProductGallery.tsx +37 -7
  543. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
  544. package/src/components/TabsLayout/TabsLayout.fixture.mobile.tsx +70 -24
  545. package/src/components/TabsLayout/TabsLayout.fixture.tsx +33 -29
  546. package/src/components/TabsLayout/TabsLayout.tsx +21 -11
  547. package/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
  548. package/src/content-page-repository/ContentPageRepository.ts +42 -4
  549. package/src/content-page-repository/TransformationOptions.ts +1 -0
  550. package/src/content-page-repository/copy.ts +11 -0
  551. package/src/content-page-repository/transformAttachmentLink.ts +7 -8
  552. package/src/content-page-repository/transformDocument.ts +3 -5
  553. package/src/content-page-repository/transformImg.ts +6 -1
  554. package/src/data/FooterData.ts +0 -1
  555. package/src/data/SitemapData.ts +1 -11
  556. package/src/icons/IconName.ts +5 -5
  557. package/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
  558. package/src/ui-kit/Badge/Badge.tsx +13 -15
  559. package/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
  560. package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  561. package/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
  562. package/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
  563. package/src/ui-kit/Heading/HeadingProps.ts +1 -3
  564. package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
  565. package/src/ui-kit/TabsControl/TabItem.tsx +1 -2
  566. package/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
  567. package/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
  568. package/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
  569. package/src/utils/getVersion.ts +1 -0
@@ -5,13 +5,13 @@ import { type VNode } from '../../model/VNode';
5
5
  import { Button } from '../../ui-kit/Button/Button';
6
6
  import { ClientOnly } from '../../ui-kit/ClientOnly';
7
7
  import { Heading } from '../../ui-kit/Heading/Heading';
8
- import { Img } from '../../ui-kit/Img/Img';
9
- import { RichText } from '../../ui-kit/RichText/RichText';
10
8
  import { Text } from '../../ui-kit/Text/Text';
11
9
  import { YandexMap } from '../../ui-kit/YandexMap/YandexMap';
10
+ import { getVersion } from '../../utils/getVersion';
12
11
  import { style } from '../../utils/style';
13
12
  import { type AtmsDef } from './OfficesAtmsMapContent';
14
- import { type Atm, type Branch } from './OfficesAtmsMapProps';
13
+ import { type Atm, type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
14
+ import { renderDescriptionBlock } from './renderDescriptionBlock';
15
15
  import { renderFiltrationForm } from './renderFiltrationForm';
16
16
  import { type BalloonContent } from './YandexMapProps';
17
17
 
@@ -23,9 +23,12 @@ export type InitFilterState = Record<string, boolean>;
23
23
  export interface OfficesAtmsMapLayoutProps<T> {
24
24
  className?: string;
25
25
  data?: T[];
26
+ remoteWorkplaces?: T[];
26
27
  renderCard?: (item: T, index: number) => VNode;
28
+ renderRemoteWorkplaceCard?: (item: T, index: number) => VNode;
27
29
  filterItems?: (data: T[], filtrationState: InitFilterState) => T[];
28
30
  getBalloon?: (item: T) => BalloonContent;
31
+ getBalloonRemoteWorkplaces?: (item: T) => BalloonContent;
29
32
  initFilterState?: InitFilterState;
30
33
  descriptionData?: AtmsDef;
31
34
  title?: string;
@@ -34,13 +37,16 @@ export interface OfficesAtmsMapLayoutProps<T> {
34
37
  const filtersVisibleStyles = (activeButton: string) =>
35
38
  activeButton === 'all' ? 'block' : 'hidden';
36
39
 
37
- export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>(
40
+ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm | RemoteWorkplace>>(
38
41
  ({
39
42
  className,
40
43
  data = [],
44
+ remoteWorkplaces = [],
41
45
  renderCard = defaultEmptyFunction,
46
+ renderRemoteWorkplaceCard = defaultEmptyFunction,
42
47
  filterItems = defaultFilterItems,
43
48
  getBalloon = defaultEmptyFunction,
49
+ getBalloonRemoteWorkplaces = defaultEmptyFunction,
44
50
  initFilterState = {},
45
51
  descriptionData,
46
52
  title,
@@ -49,18 +55,30 @@ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>
49
55
 
50
56
  const [filtrationState, { field, reset }] = useForm(initFilterState);
51
57
 
52
- const [filteredItems, points, lengthItems] = useMemo(() => {
58
+ const [filteredItems, points, filteredRemoteWorkplaces, lengthItems] = useMemo(() => {
53
59
  const _filteredItems = filterItems(data, filtrationState);
60
+ const _filteredRemoteWorkplaces = filterItems(remoteWorkplaces, filtrationState);
54
61
 
55
- const _points = _filteredItems
56
- .map((_) => ({
62
+ const _points = [
63
+ ..._filteredItems.map((_) => ({
64
+ type: 'offices',
57
65
  coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
58
66
  content: getBalloon(_),
59
- }))
60
- .filter((_) => _.coords && _.coords.length === 2);
67
+ })),
68
+ ..._filteredRemoteWorkplaces.map((_: RemoteWorkplace) => ({
69
+ type: 'workplaces',
70
+ coords: [Number(_.gpsLatitude), Number(_.gpsLongitude)]?.filter(Boolean),
71
+ content: getBalloonRemoteWorkplaces({
72
+ address: _.address,
73
+ workScheduleDescription: _.workScheduleDescription,
74
+ }),
75
+ })),
76
+ ].filter((_) => _.coords && _.coords.length === 2);
77
+
78
+ const itemsLength = _filteredItems.length + _filteredRemoteWorkplaces?.length;
61
79
 
62
- return [_filteredItems, _points, _filteredItems.length];
63
- }, [data, filtrationState]);
80
+ return [_filteredItems, _points, _filteredRemoteWorkplaces, itemsLength];
81
+ }, [data, remoteWorkplaces, filtrationState]);
64
82
 
65
83
  const [activeButton, setActiveButton] = useState('all');
66
84
 
@@ -89,6 +107,7 @@ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>
89
107
  </div>
90
108
  </div>
91
109
  {filteredItems.map(renderCard)}
110
+ {filteredRemoteWorkplaces.map(renderRemoteWorkplaceCard)}
92
111
  </div>
93
112
  );
94
113
  },
@@ -97,13 +116,13 @@ export const OfficesAtmsMapLayout = JSX<OfficesAtmsMapLayoutProps<Branch | Atm>>
97
116
  const renderButtonsGroup = (
98
117
  data: Branch[],
99
118
  activeButton: string,
100
- setActiveButton: (item: string) => void,
119
+ onButtonClick: (item: string) => void,
101
120
  ) => {
102
- const allButtonVersion = activeButton === 'all' ? 'primary' : 'secondary';
121
+ const allButtonVersion = getVersion(activeButton === 'all');
103
122
 
104
- const businessButtonVersion = activeButton === 'business' ? 'primary' : 'secondary';
123
+ const businessButtonVersion = getVersion(activeButton === 'business');
105
124
 
106
- const handleOnClick = (e: any, key: string, branches: Branch[]) => {
125
+ const handleClick = (e: any, key: string, branches: Branch[]) => {
107
126
  if (e.currentTarget === e.target && key === 'business') {
108
127
  branches.filter(
109
128
  (branch) =>
@@ -113,23 +132,19 @@ const renderButtonsGroup = (
113
132
  );
114
133
  }
115
134
 
116
- setActiveButton(key);
135
+ onButtonClick(key);
117
136
 
118
137
  return branches;
119
138
  };
120
139
 
121
140
  return (
122
141
  <div className="flex gap-lg flex-col sm:flex-row pb-lg">
123
- <Button
124
- data-id="all"
125
- onClick={(e) => handleOnClick(e, 'all', data)}
126
- version={allButtonVersion}
127
- >
142
+ <Button data-id="all" onClick={(e) => handleClick(e, 'all', data)} version={allButtonVersion}>
128
143
  Для физических лиц
129
144
  </Button>
130
145
  <Button
131
146
  data-id="business"
132
- onClick={(e) => handleOnClick(e, 'business', data)}
147
+ onClick={(e) => handleClick(e, 'business', data)}
133
148
  version={businessButtonVersion}
134
149
  >
135
150
  Для юридических лиц
@@ -137,28 +152,3 @@ const renderButtonsGroup = (
137
152
  </div>
138
153
  );
139
154
  };
140
-
141
- const renderDescriptionBlock = ({ __html, list }: AtmsDef) =>
142
- __html || list?.length ? (
143
- <div className="mb-2xl border-b sm:border border-main-divider sm:rounded-md">
144
- {__html ? (
145
- <div className="mb-2xl">
146
- <RichText __html={__html} />
147
- </div>
148
- ) : null}
149
- {list?.length ? (
150
- <div className="flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl">
151
- {list.map((item, i) => (
152
- <div key={String(i)} className="flex gap-xs items-center">
153
- {item?.image ? <Img image={item.image} /> : null}
154
- {item?.text ? (
155
- <Text size="text-m" font="font-light">
156
- {item.text}
157
- </Text>
158
- ) : null}
159
- </div>
160
- ))}
161
- </div>
162
- ) : null}
163
- </div>
164
- ) : null;
@@ -82,6 +82,21 @@ export interface Branch {
82
82
  transferringDataToBiometricSystem?: false;
83
83
  }
84
84
 
85
+ export interface RemoteWorkplace {
86
+ id?: number;
87
+ region?: {
88
+ id?: number;
89
+ code?: string;
90
+ name?: string;
91
+ slug?: string;
92
+ };
93
+ landmark?: string;
94
+ workScheduleDescription?: string;
95
+ description?: string;
96
+ gpsLatitude?: number;
97
+ gpsLongitude?: number;
98
+ address?: string;
99
+ }
85
100
  export interface Atm {
86
101
  location?: string;
87
102
  address?: string;
@@ -1,14 +1,16 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useLocation } from '../../hooks/useLocation';
3
3
  import { OfficesAtmsMapLayout } from './OfficesAtmsMapLayout';
4
- import { type Branch } from './OfficesAtmsMapProps';
4
+ import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
5
5
  import { getOfficePoint, renderOfficeCard } from './renderOfficeCard';
6
+ import { getRemoteWorkplacePoint, renderRemoteWorkplaceCard } from './renderRemoteWorkplaceCard';
6
7
  import { useOffices } from './useOffices';
7
8
 
8
9
  const INITIAL_FILTRATION_STATE = {
9
10
  workingSaturday: false,
10
11
  premiumService: false,
11
12
  privateBanking: false,
13
+ remoteWorkplace: false,
12
14
  sellingCoins: false,
13
15
  buyingCoins: false,
14
16
  bullionOperations: false,
@@ -17,15 +19,23 @@ const INITIAL_FILTRATION_STATE = {
17
19
  };
18
20
 
19
21
  const FILTRATION_PREDICATES = {
20
- workingSaturday: (item: Branch) => Boolean(item.workSchedule?.workingSaturday),
21
- premiumService: (item: Branch) => Boolean(item.premiumService),
22
- privateBanking: (item: Branch) => Boolean(item.privateBanking),
23
- sellingCoins: (item: Branch) => Boolean(item.sellingCoins),
24
- buyingCoins: (item: Branch) => Boolean(item.buyingCoins),
25
- bullionOperations: (item: Branch) => Boolean(item.bullionOperations),
26
- preciousMetalsOperations: (item: Branch) => Boolean(item.preciousMetalsOperations),
27
- transferringDataToBiometricSystem: (item: Branch) =>
28
- Boolean(item.transferringDataToBiometricSystem),
22
+ workingSaturday: (item: Branch | RemoteWorkplace) =>
23
+ Boolean('workSchedule' in item && item.workSchedule?.workingSaturday),
24
+ premiumService: (item: Branch | RemoteWorkplace) =>
25
+ Boolean('premiumService' in item && item.premiumService),
26
+ privateBanking: (item: Branch | RemoteWorkplace) =>
27
+ Boolean('privateBanking' in item && item.privateBanking),
28
+ remoteWorkplace: (item: Branch | RemoteWorkplace) => Boolean('workScheduleDescription' in item),
29
+ sellingCoins: (item: Branch | RemoteWorkplace) =>
30
+ Boolean('sellingCoins' in item && item.sellingCoins),
31
+ buyingCoins: (item: Branch | RemoteWorkplace) =>
32
+ Boolean('buyingCoins' in item && item.buyingCoins),
33
+ bullionOperations: (item: Branch | RemoteWorkplace) =>
34
+ Boolean('bullionOperations' in item && item.bullionOperations),
35
+ preciousMetalsOperations: (item: Branch | RemoteWorkplace) =>
36
+ Boolean('preciousMetalsOperations' in item && item.preciousMetalsOperations),
37
+ transferringDataToBiometricSystem: (item: Branch | RemoteWorkplace) =>
38
+ Boolean('transferringDataToBiometricSystem' in item && item.transferringDataToBiometricSystem),
29
39
  };
30
40
 
31
41
  export interface OfficesMapProps {
@@ -43,16 +53,22 @@ export const OfficesMap = JSX<OfficesMapProps>(({ className }) => {
43
53
  <OfficesAtmsMapLayout
44
54
  className={className}
45
55
  filterItems={filterItems}
46
- data={officesData}
56
+ data={officesData[0]?.branches}
57
+ remoteWorkplaces={officesData[0]?.remoteWorkplaces}
47
58
  initFilterState={INITIAL_FILTRATION_STATE}
48
59
  renderCard={renderOfficeCard}
60
+ renderRemoteWorkplaceCard={renderRemoteWorkplaceCard}
49
61
  getBalloon={getOfficePoint}
62
+ getBalloonRemoteWorkplaces={getRemoteWorkplacePoint}
50
63
  title={`Офисы филиала ${currentLocation?.name}`}
51
64
  />
52
65
  );
53
66
  });
54
67
 
55
- const filterItems = (data: Branch[], filtrationState: Record<string, boolean>) => {
68
+ const filterItems = (
69
+ data: (Branch | RemoteWorkplace)[],
70
+ filtrationState: Record<string, boolean>,
71
+ ) => {
56
72
  const truthyFilters = Object.keys(filtrationState).filter((key) => filtrationState[key]);
57
73
 
58
74
  return data.filter((item) => truthyFilters.every((_) => FILTRATION_PREDICATES[_](item)));
@@ -1,4 +1,5 @@
1
1
  export type BalloonPoints = {
2
+ type?: string;
2
3
  coords: number[];
3
4
  content?: BalloonContent;
4
5
  };
@@ -0,0 +1,29 @@
1
+ import { Img } from '../../ui-kit/Img/Img';
2
+ import { RichText } from '../../ui-kit/RichText/RichText';
3
+ import { Text } from '../../ui-kit/Text/Text';
4
+ import { type AtmsDef } from './OfficesAtmsMapContent';
5
+
6
+ export const renderDescriptionBlock = ({ __html, list }: AtmsDef) =>
7
+ __html || list?.length ? (
8
+ <div className="mb-2xl border-b sm:border border-main-divider sm:rounded-md">
9
+ {__html ? (
10
+ <div className="mb-2xl">
11
+ <RichText __html={__html} />
12
+ </div>
13
+ ) : null}
14
+ {list?.length ? (
15
+ <div className="flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl">
16
+ {list.map((item, i) => (
17
+ <div key={String(i)} className="flex gap-xs items-center">
18
+ {item?.image ? <Img image={item.image} /> : null}
19
+ {item?.text ? (
20
+ <Text size="text-m" font="font-light">
21
+ {item.text}
22
+ </Text>
23
+ ) : null}
24
+ </div>
25
+ ))}
26
+ </div>
27
+ ) : null}
28
+ </div>
29
+ ) : null;
@@ -21,6 +21,7 @@ const FILTRATION_LABELS = {
21
21
  bullionOperations: 'Операции со слитками',
22
22
  preciousMetalsOperations: 'Операции с драгоценными металлами',
23
23
  transferringDataToBiometricSystem: 'Передача фото и голоса в Единую биометрическую систему',
24
+ remoteWorkplace: 'Удаленное рабочее место',
24
25
  };
25
26
 
26
27
  const COMMON_FILTERS_STYLES = 'flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl';
@@ -30,7 +31,7 @@ export const renderFiltrationForm = (
30
31
  { field, reset }: { field: FormFieldRegisterer<any>; reset: () => void },
31
32
  onlyOffice?: boolean,
32
33
  ) => {
33
- const visibleFiltersNum = onlyOffice ? 3 : 4;
34
+ const visibleFiltersNum = 4;
34
35
 
35
36
  const filtersCheckbox = (filters || []).map((key) => (
36
37
  <Checkbox key={key} text={FILTRATION_LABELS[key]} {...field(key)} />
@@ -0,0 +1,86 @@
1
+ import { Foldable } from '../../ui-kit/Foldable/Foldable';
2
+ import { FoldableSection } from '../../ui-kit/Foldable/FoldableSection';
3
+ import { Icon } from '../../ui-kit/Icon/Icon';
4
+ import { Text } from '../../ui-kit/Text/Text';
5
+ import { CardCell } from './CardCell';
6
+ import { CardRow } from './CardRow';
7
+ import { type RemoteWorkplace } from './OfficesAtmsMapProps';
8
+ import { renderFoldButton } from './renderFoldButton';
9
+
10
+ export const renderRemoteWorkplaceCard = (
11
+ { address, workScheduleDescription }: RemoteWorkplace,
12
+ index: number,
13
+ ) => {
14
+ if (!workScheduleDescription) {
15
+ return null;
16
+ }
17
+
18
+ return (
19
+ <div key={String(index)} className="bg-white col-span-12 p-3xl sm:border-green sm:border">
20
+ <div className="sm:flex sm:justify-between">
21
+ <div>
22
+ <Text size="text-h4">Удаленное рабочее место</Text>
23
+ {address ? (
24
+ <div className="flex pb-xl pt-xs gap-2xs">
25
+ <Icon name="GeolocationIcon" width="24" height="24" />
26
+ <Text size="text-l">{address}</Text>
27
+ </div>
28
+ ) : null}
29
+ </div>
30
+ </div>
31
+ <div className="hidden sm:block">
32
+ {renderCardContent({
33
+ workScheduleDescription,
34
+ })}
35
+ </div>
36
+ <Foldable
37
+ className="block sm:hidden"
38
+ renderFoldableSection={({ isUnfolded }) => {
39
+ return (
40
+ <FoldableSection isUnfolded={isUnfolded}>
41
+ {renderCardContent({
42
+ workScheduleDescription,
43
+ })}
44
+ </FoldableSection>
45
+ );
46
+ }}
47
+ //** TODO: remove styles with refactoring DefaultFoldButton*/
48
+ renderFoldButton={({ isUnfolded, onToggle }) => renderFoldButton({ isUnfolded, onToggle })}
49
+ />
50
+ </div>
51
+ );
52
+ };
53
+
54
+ const renderCardContent = ({ workScheduleDescription }: RemoteWorkplace) => {
55
+ return (
56
+ <div>
57
+ <CardRow className="flex">
58
+ <CardCell label="Операции для физических лиц">
59
+ <Text>Оформление и обслуживание кредитов, счетов, вкладов</Text>
60
+ </CardCell>
61
+ <CardCell label="Операции для физических лиц">
62
+ <Text>Оформление и обслуживание банковских карт</Text>
63
+ </CardCell>
64
+ <CardCell label="Операции для физических лиц">
65
+ <Text>Инвестиционное и накопительное страхование</Text>
66
+ </CardCell>
67
+ <CardCell label="Операции для физических лиц">
68
+ <Text>Безналичные операции в рублях, переводы без открытия счёта</Text>
69
+ </CardCell>
70
+ </CardRow>
71
+ <CardCell label="Режим работы" className="max-w-none">
72
+ <Text>{workScheduleDescription}</Text>
73
+ </CardCell>
74
+ </div>
75
+ );
76
+ };
77
+
78
+ export const getRemoteWorkplacePoint = ({
79
+ address = '',
80
+ workScheduleDescription,
81
+ }: RemoteWorkplace) => {
82
+ const header = 'Удаленное рабочее место';
83
+ const body = `${address} ${workScheduleDescription}`;
84
+
85
+ return { header, body };
86
+ };
@@ -1,20 +1,27 @@
1
1
  import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
2
  import { fetchJSON } from '../../utils/fetchJSON';
3
- import { type Branch } from './OfficesAtmsMapProps';
3
+ import { type Branch, type RemoteWorkplace } from './OfficesAtmsMapProps';
4
4
 
5
5
  const EMPTY_VALUE = [];
6
6
 
7
7
  export function useOffices(regionCode?: string) {
8
8
  const { data = EMPTY_VALUE } = useAsyncData(
9
- `/api/v1/branches?regionCode=${regionCode}`,
9
+ `/api/v1/branchesAndRemoteWorkplaces?regionCode=${regionCode}`,
10
10
  fetchMap,
11
11
  );
12
12
 
13
13
  return data;
14
14
  }
15
15
 
16
- const fetchMap = async (url: string): Promise<Branch[]> => {
17
- const result = await fetchJSON<Branch[]>(url, { method: 'GET' });
16
+ const fetchMap = async (
17
+ url: string,
18
+ ): Promise<{ branches: Branch[]; remoteWorkplaces: RemoteWorkplace[] }[]> => {
19
+ const result = await fetchJSON<{ branches: Branch[]; remoteWorkplaces: RemoteWorkplace[] }[]>(
20
+ url,
21
+ {
22
+ method: 'GET',
23
+ },
24
+ );
18
25
 
19
26
  return Array.isArray(result) ? result : EMPTY_VALUE;
20
27
  };
@@ -3,6 +3,7 @@ import { useCallback, useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type JSONRefObject } from '../../data/JSONRefObject';
4
4
  import { type SitemapData } from '../../data/SitemapData';
5
5
  import { type StickyMenuItem } from '../../data/StickyMobileData';
6
+ import { useLocation } from '../../hooks/useLocation';
6
7
  import { Heading } from '../../ui-kit/Heading/Heading';
7
8
  import { useLocationDialog } from '../../ui-kit/LocationDialog/useLocationDialog';
8
9
  import { StickyBottomMenuDialog } from './StickyBottomMenuDialog';
@@ -19,6 +20,7 @@ export interface BurgerMenuDialogProps {
19
20
  export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
20
21
  ({ menuRef, menuItem, locationDialogProps, closeAll }) => {
21
22
  const locationDialog = useLocationDialog(locationDialogProps || {});
23
+ const [{ name: location }] = useLocation();
22
24
  const menuDimensions = menuRef?.current?.getBoundingClientRect();
23
25
 
24
26
  const handleIframeLoad = useCallback(() => {
@@ -28,9 +30,15 @@ export const BurgerMenuDialog = JSX<BurgerMenuDialogProps>(
28
30
  ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
29
31
 
30
32
  const [, basePath] = globalThis?.location?.pathname?.split('/') || [];
31
- iframeWindow.postMessage(basePath, '*');
33
+ iframeWindow.postMessage({ type: 'currentTab', data: basePath }, '*');
34
+ iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
32
35
  }, []);
33
36
 
37
+ useEffect(() => {
38
+ const iframeWindow: Window = globalThis.frames['burger-menu-iframe'];
39
+ iframeWindow.postMessage({ type: 'currentLocation', data: location }, '*');
40
+ }, [location]);
41
+
34
42
  useEffect(() => {
35
43
  const onMessage = (e: MessageEvent<any>) => {
36
44
  if (e.data.type === 'location') {
@@ -11,20 +11,30 @@ import { type Tab, type TabsLayoutContent } from './TabsLayoutContent';
11
11
 
12
12
  const TAB_QUERY_PARAM_KEY = 'tab';
13
13
 
14
+ type TabCountedProps = Tab & {
15
+ count?: number;
16
+ };
14
17
  export interface TabsLayoutProps extends TabsLayoutContent, UniBlockProps {}
15
18
 
16
19
  export const TabsLayout = UniBlock<TabsLayoutProps>(
17
- ({ className = '', tabs = [], block, tabsType, ...rest }) => {
20
+ ({ className = '', tabs = [], block, tabsType, showCounter = false, ...rest }) => {
18
21
  const router = useRouter();
19
22
 
20
- const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabs));
23
+ const tabsCounted: TabCountedProps[] = showCounter
24
+ ? tabs.map((_) => ({
25
+ ..._,
26
+ count: block?.slots?.[_?.text ?? '']?.length ?? 0,
27
+ }))
28
+ : tabs;
21
29
 
22
- const defaultSelectedTab = tabs.findIndex((_) => Boolean(_.selected));
30
+ const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabsCounted));
31
+
32
+ const defaultSelectedTab = tabsCounted.findIndex((_) => Boolean(_.selected));
23
33
 
24
34
  useEffect(() => {
25
- const query = new URLSearchParams(globalThis?.location?.search || '');
35
+ const query = new URLSearchParams(globalThis?.location?.search);
26
36
  const defaultTabIndex = query.get(TAB_QUERY_PARAM_KEY)
27
- ? tabs.findIndex(
37
+ ? tabsCounted.findIndex(
28
38
  (_, index) => _.type === 'group' && String(index) === query.get(TAB_QUERY_PARAM_KEY),
29
39
  )
30
40
  : defaultSelectedTab;
@@ -32,7 +42,7 @@ export const TabsLayout = UniBlock<TabsLayoutProps>(
32
42
  setActiveTabIndex(defaultTabIndex === -1 ? 0 : defaultTabIndex);
33
43
  }, [defaultSelectedTab]);
34
44
 
35
- const slotName = getSlotName(tabs[activeTabIndex], activeTabIndex);
45
+ const slotName = getSlotName(tabsCounted[activeTabIndex], activeTabIndex);
36
46
 
37
47
  const updateUrlSearchTabParam = (_: TabItemBase, index: number) => {
38
48
  const searchParams = new URLSearchParams(globalThis?.location?.search || '');
@@ -46,8 +56,8 @@ export const TabsLayout = UniBlock<TabsLayoutProps>(
46
56
 
47
57
  const handleChange = useCallback(
48
58
  (_: TabItemBase) => {
49
- const index = tabs.indexOf(_ as Tab);
50
- const tab = tabs[index];
59
+ const index = tabsCounted.indexOf(_ as Tab);
60
+ const tab = tabsCounted[index];
51
61
 
52
62
  setActiveTabIndex(index);
53
63
 
@@ -55,14 +65,14 @@ export const TabsLayout = UniBlock<TabsLayoutProps>(
55
65
  updateUrlSearchTabParam(_, index);
56
66
  }
57
67
  },
58
- [tabs],
68
+ [tabsCounted],
59
69
  );
60
70
 
61
71
  return (
62
72
  <BlockWrapper className={style(className)} defaultPadding="p-0" {...rest}>
63
73
  {renderTabsLayout({
64
- items: tabs,
65
- value: tabs[activeTabIndex],
74
+ items: tabsCounted,
75
+ value: tabsCounted[activeTabIndex],
66
76
  tabsType,
67
77
  onChange: handleChange,
68
78
  })}
@@ -1,6 +1,5 @@
1
1
  import { ScrollableTabsControl } from '../../ui-kit/TabsControl/ScrollableTabsControl';
2
2
  import { type TabItemBase } from '../../ui-kit/TabsControl/TabItem';
3
- import { TabsControl } from '../../ui-kit/TabsControl/TabsControl';
4
3
  import { type TabsControlProps, type TabsType } from '../../ui-kit/TabsControl/TabsControlProps';
5
4
 
6
5
  interface RenderTabsProps {
@@ -10,23 +9,28 @@ interface RenderTabsProps {
10
9
  tabsType?: TabsType;
11
10
  }
12
11
 
13
- export const renderTabsLayout = ({ tabsType = 'animated', ...props }: RenderTabsProps) => {
14
- switch (tabsType) {
15
- case 'default':
16
- return <TabsControl {...props} />;
17
- case 'underlined':
18
- return (
19
- <div className="flex">
20
- <TabsControl className="m-auto" tabsType="underlined" {...props} />
21
- </div>
22
- );
23
- case 'animated':
24
- return (
25
- <div className="border-b-8 border-primary-main">
26
- <ScrollableTabsControl className="m-auto" {...props} tabsType="animated" />
27
- </div>
28
- );
29
- default:
30
- return null;
31
- }
12
+ const tabsStyle: Record<TabsType, { wrapper: string; component: string }> = {
13
+ default: {
14
+ wrapper: '',
15
+ component: '',
16
+ },
17
+ animated: {
18
+ wrapper: 'border-b-8 border-primary-main bg-white',
19
+ component: 'm-auto',
20
+ },
21
+ underlined: {
22
+ wrapper: 'flex',
23
+ component: 'm-auto',
24
+ },
32
25
  };
26
+
27
+ export const renderTabsLayout = ({ tabsType = 'animated', ...props }: RenderTabsProps) =>
28
+ tabsType ? (
29
+ <div className={tabsStyle[tabsType].wrapper}>
30
+ <ScrollableTabsControl
31
+ className={tabsStyle[tabsType].component}
32
+ tabsType={tabsType}
33
+ {...props}
34
+ />
35
+ </div>
36
+ ) : null;