@redneckz/wildless-cms-uni-blocks 0.15.338 → 0.15.340

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 (609) 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/ContentPage/computeAPIFallback.d.ts +1 -2
  15. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  16. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  17. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  18. package/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  19. package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  20. package/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  21. package/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  22. package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
  23. package/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
  24. package/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
  25. package/bundle/content-page-repository/copy.d.ts +1 -0
  26. package/bundle/data/FooterData.d.ts +0 -1
  27. package/bundle/data/SitemapData.d.ts +1 -10
  28. package/bundle/icons/IconName.d.ts +4 -2
  29. package/bundle/model/Fallback.d.ts +0 -1
  30. package/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  31. package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  32. package/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
  33. package/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
  34. package/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  35. package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  36. package/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  37. package/bundle/utils/getVersion.d.ts +1 -0
  38. package/cosmos-static/icons/MapMarkerClusterYellowIcon.svg +1 -0
  39. package/cosmos-static/icons/sprites.svg +1 -0
  40. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  41. package/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  42. package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  43. package/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  44. package/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  45. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  46. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
  47. package/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  48. package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  49. package/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  50. package/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  51. package/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
  52. package/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  53. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  54. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
  55. package/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  56. package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  57. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  58. package/dist/components/ContentPage/ContentPage.js +1 -1
  59. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  60. package/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
  61. package/dist/components/ContentPage/computeAPIFallback.js +2 -16
  62. package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  63. package/dist/components/Footer/Footer.js +2 -9
  64. package/dist/components/Footer/Footer.js.map +1 -1
  65. package/dist/components/Footer/Footer.mobile.js +1 -9
  66. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  67. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  68. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  69. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  70. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  71. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  72. package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  73. package/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  74. package/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
  75. package/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  76. package/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  77. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  78. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
  79. package/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  80. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  81. package/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  82. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  83. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
  84. package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  85. package/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  86. package/dist/components/OfficesAtmsMap/useOffices.js +4 -2
  87. package/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  88. package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
  89. package/dist/components/ProductGallery/ProductGallery.js +12 -5
  90. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  91. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  92. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  93. package/dist/components/TabsLayout/TabsLayout.js +17 -11
  94. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  95. package/dist/components/TabsLayout/renderTabsLayout.js +14 -12
  96. package/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
  97. package/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
  98. package/dist/content-page-repository/ContentPageRepository.js +27 -5
  99. package/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  100. package/dist/content-page-repository/TransformationOptions.d.ts +1 -0
  101. package/dist/content-page-repository/copy.d.ts +1 -0
  102. package/dist/content-page-repository/copy.js +16 -0
  103. package/dist/content-page-repository/copy.js.map +1 -0
  104. package/dist/content-page-repository/transformAttachmentLink.js +8 -7
  105. package/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
  106. package/dist/content-page-repository/transformDocument.js +3 -5
  107. package/dist/content-page-repository/transformDocument.js.map +1 -1
  108. package/dist/content-page-repository/transformImg.js +4 -1
  109. package/dist/content-page-repository/transformImg.js.map +1 -1
  110. package/dist/data/FooterData.d.ts +0 -1
  111. package/dist/data/SitemapData.d.ts +1 -10
  112. package/dist/icons/IconName.d.ts +4 -2
  113. package/dist/icons/IconName.js +3 -1
  114. package/dist/icons/IconName.js.map +1 -1
  115. package/dist/model/Fallback.d.ts +0 -1
  116. package/dist/ui-kit/Badge/Badge.js +1 -3
  117. package/dist/ui-kit/Badge/Badge.js.map +1 -1
  118. package/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  119. package/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  120. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  121. package/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  122. package/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  123. package/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
  124. package/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  125. package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  126. package/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  127. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  128. package/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
  129. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  130. package/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  131. package/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
  132. package/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  133. package/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  134. package/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
  135. package/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  136. package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  137. package/dist/ui-kit/YandexMap/YandexMap.js +2 -2
  138. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  139. package/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  140. package/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
  141. package/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  142. package/dist/utils/getVersion.d.ts +1 -0
  143. package/dist/utils/getVersion.js +5 -0
  144. package/dist/utils/getVersion.js.map +1 -0
  145. package/lib/common.css +1 -1
  146. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  147. package/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  148. package/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
  149. package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  150. package/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  151. package/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  152. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  153. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
  154. package/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  155. package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  156. package/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  157. package/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  158. package/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
  159. package/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  160. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  161. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
  162. package/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  163. package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  164. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  165. package/lib/components/ContentPage/ContentPage.js +1 -1
  166. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  167. package/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
  168. package/lib/components/ContentPage/computeAPIFallback.js +2 -16
  169. package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  170. package/lib/components/Footer/Footer.js +2 -9
  171. package/lib/components/Footer/Footer.js.map +1 -1
  172. package/lib/components/Footer/Footer.mobile.js +1 -9
  173. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  174. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  175. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  176. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  177. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  178. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  179. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  180. package/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  181. package/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
  182. package/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  183. package/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  184. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +2 -0
  185. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
  186. package/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  187. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  188. package/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  189. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +6 -0
  190. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
  191. package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  192. package/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  193. package/lib/components/OfficesAtmsMap/useOffices.js +4 -2
  194. package/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  195. package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
  196. package/lib/components/ProductGallery/ProductGallery.js +12 -5
  197. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  198. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  199. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  200. package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +4 -3
  201. package/lib/components/TabsLayout/TabsLayout.fixture.mobile.d.ts +4 -2
  202. package/lib/components/TabsLayout/TabsLayout.js +17 -11
  203. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  204. package/lib/components/TabsLayout/renderTabsLayout.js +14 -12
  205. package/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
  206. package/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
  207. package/lib/content-page-repository/ContentPageRepository.js +26 -4
  208. package/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  209. package/lib/content-page-repository/TransformationOptions.d.ts +1 -0
  210. package/lib/content-page-repository/copy.d.ts +1 -0
  211. package/lib/content-page-repository/copy.js +10 -0
  212. package/lib/content-page-repository/copy.js.map +1 -0
  213. package/lib/content-page-repository/transformAttachmentLink.js +8 -7
  214. package/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
  215. package/lib/content-page-repository/transformDocument.js +3 -5
  216. package/lib/content-page-repository/transformDocument.js.map +1 -1
  217. package/lib/content-page-repository/transformImg.js +4 -1
  218. package/lib/content-page-repository/transformImg.js.map +1 -1
  219. package/lib/data/FooterData.d.ts +0 -1
  220. package/lib/data/SitemapData.d.ts +1 -10
  221. package/lib/icons/IconName.d.ts +4 -2
  222. package/lib/icons/IconName.js +3 -1
  223. package/lib/icons/IconName.js.map +1 -1
  224. package/lib/model/Fallback.d.ts +0 -1
  225. package/lib/ui-kit/Badge/Badge.js +1 -3
  226. package/lib/ui-kit/Badge/Badge.js.map +1 -1
  227. package/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  228. package/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  229. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  230. package/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  231. package/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  232. package/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
  233. package/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  234. package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  235. package/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  236. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  237. package/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
  238. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  239. package/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  240. package/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
  241. package/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  242. package/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  243. package/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
  244. package/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  245. package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  246. package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  247. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  248. package/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  249. package/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
  250. package/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  251. package/lib/utils/getVersion.d.ts +1 -0
  252. package/lib/utils/getVersion.js +2 -0
  253. package/lib/utils/getVersion.js.map +1 -0
  254. package/mobile/bundle/bundle.umd.js +194 -128
  255. package/mobile/bundle/bundle.umd.min.js +1 -1
  256. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  257. package/mobile/bundle/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  258. package/mobile/bundle/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  259. package/mobile/bundle/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  260. package/mobile/bundle/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  261. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  262. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  263. package/mobile/bundle/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  264. package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  265. package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +1 -2
  266. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  267. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  268. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  269. package/mobile/bundle/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  270. package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  271. package/mobile/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  272. package/mobile/bundle/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  273. package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +6 -2
  274. package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +1 -0
  275. package/mobile/bundle/content-page-repository/copy.d.ts +1 -0
  276. package/mobile/bundle/data/FooterData.d.ts +0 -1
  277. package/mobile/bundle/data/SitemapData.d.ts +1 -10
  278. package/mobile/bundle/icons/IconName.d.ts +4 -2
  279. package/mobile/bundle/model/Fallback.d.ts +0 -1
  280. package/mobile/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  281. package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  282. package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +1 -3
  283. package/mobile/bundle/ui-kit/TabsControl/TabItem.d.ts +1 -2
  284. package/mobile/bundle/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  285. package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  286. package/mobile/bundle/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  287. package/mobile/bundle/utils/getVersion.d.ts +1 -0
  288. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  289. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  290. package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  291. package/mobile/dist/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  292. package/mobile/dist/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  293. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  294. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js +17 -0
  295. package/mobile/dist/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  296. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  297. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  298. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  299. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js +3 -16
  300. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  301. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  302. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js +2 -2
  303. package/mobile/dist/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  304. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  305. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  306. package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
  307. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  308. package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +1 -2
  309. package/mobile/dist/components/ContentPage/computeAPIFallback.js +2 -16
  310. package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  311. package/mobile/dist/components/Footer/Footer.js +1 -9
  312. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  313. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  314. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  315. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  316. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  317. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  318. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  319. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  320. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js +12 -9
  321. package/mobile/dist/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  322. package/mobile/dist/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  323. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  324. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js +9 -0
  325. package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  326. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  327. package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  328. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  329. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +35 -0
  330. package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  331. package/mobile/dist/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  332. package/mobile/dist/components/OfficesAtmsMap/useOffices.js +4 -2
  333. package/mobile/dist/components/OfficesAtmsMap/useOffices.js.map +1 -1
  334. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  335. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  336. package/mobile/dist/components/TabsLayout/TabsLayout.js +17 -11
  337. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  338. package/mobile/dist/components/TabsLayout/renderTabsLayout.js +14 -12
  339. package/mobile/dist/components/TabsLayout/renderTabsLayout.js.map +1 -1
  340. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +6 -2
  341. package/mobile/dist/content-page-repository/ContentPageRepository.js +27 -5
  342. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +1 -1
  343. package/mobile/dist/content-page-repository/TransformationOptions.d.ts +1 -0
  344. package/mobile/dist/content-page-repository/copy.d.ts +1 -0
  345. package/mobile/dist/content-page-repository/copy.js +16 -0
  346. package/mobile/dist/content-page-repository/copy.js.map +1 -0
  347. package/mobile/dist/content-page-repository/transformAttachmentLink.js +8 -7
  348. package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
  349. package/mobile/dist/content-page-repository/transformDocument.js +3 -5
  350. package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
  351. package/mobile/dist/content-page-repository/transformImg.js +4 -1
  352. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  353. package/mobile/dist/data/FooterData.d.ts +0 -1
  354. package/mobile/dist/data/SitemapData.d.ts +1 -10
  355. package/mobile/dist/icons/IconName.d.ts +4 -2
  356. package/mobile/dist/icons/IconName.js +3 -1
  357. package/mobile/dist/icons/IconName.js.map +1 -1
  358. package/mobile/dist/model/Fallback.d.ts +0 -1
  359. package/mobile/dist/ui-kit/Badge/Badge.js +1 -3
  360. package/mobile/dist/ui-kit/Badge/Badge.js.map +1 -1
  361. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  362. package/mobile/dist/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  363. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  364. package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  365. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  366. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js +1 -1
  367. package/mobile/dist/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  368. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  369. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +2 -2
  370. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  371. package/mobile/dist/ui-kit/Heading/HeadingProps.d.ts +1 -3
  372. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  373. package/mobile/dist/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  374. package/mobile/dist/ui-kit/TabsControl/TabItem.d.ts +1 -2
  375. package/mobile/dist/ui-kit/TabsControl/TabItem.js.map +1 -1
  376. package/mobile/dist/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  377. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js +4 -2
  378. package/mobile/dist/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  379. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  380. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +2 -2
  381. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  382. package/mobile/dist/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  383. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js +33 -14
  384. package/mobile/dist/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  385. package/mobile/dist/utils/getVersion.d.ts +1 -0
  386. package/mobile/dist/utils/getVersion.js +5 -0
  387. package/mobile/dist/utils/getVersion.js.map +1 -0
  388. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +4 -1
  389. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.d.ts +1 -2
  390. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
  391. package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
  392. package/mobile/lib/components/CalculatorCredit/CalculatorCreditContent.d.ts +22 -1
  393. package/mobile/lib/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.d.ts +1 -2
  394. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.d.ts +2 -0
  395. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js +15 -0
  396. package/mobile/lib/components/CalculatorCredit/defaultCreditCalculatorParams.js.map +1 -0
  397. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.d.ts +1 -2
  398. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorLimitParams.js.map +1 -1
  399. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.d.ts +1 -24
  400. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js +1 -14
  401. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorParams.js.map +1 -1
  402. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.d.ts +1 -2
  403. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js +1 -1
  404. package/mobile/lib/components/CalculatorCredit/getCreditCalculatorRateParams.js.map +1 -1
  405. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +1 -1
  406. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  407. package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
  408. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  409. package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +1 -2
  410. package/mobile/lib/components/ContentPage/computeAPIFallback.js +2 -16
  411. package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  412. package/mobile/lib/components/Footer/Footer.js +1 -9
  413. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  414. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  415. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  416. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  417. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +5 -2
  418. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +30 -20
  419. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
  420. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapProps.d.ts +15 -0
  421. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js +12 -9
  422. package/mobile/lib/components/OfficesAtmsMap/OfficesMap.js.map +1 -1
  423. package/mobile/lib/components/OfficesAtmsMap/YandexMapProps.d.ts +1 -0
  424. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +3 -0
  425. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js +6 -0
  426. package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.js.map +1 -0
  427. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js +2 -1
  428. package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.js.map +1 -1
  429. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +7 -0
  430. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js +31 -0
  431. package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.js.map +1 -0
  432. package/mobile/lib/components/OfficesAtmsMap/useOffices.d.ts +5 -2
  433. package/mobile/lib/components/OfficesAtmsMap/useOffices.js +4 -2
  434. package/mobile/lib/components/OfficesAtmsMap/useOffices.js.map +1 -1
  435. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -1
  436. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  437. package/mobile/lib/components/TabsLayout/TabsLayout.js +17 -11
  438. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  439. package/mobile/lib/components/TabsLayout/renderTabsLayout.js +14 -12
  440. package/mobile/lib/components/TabsLayout/renderTabsLayout.js.map +1 -1
  441. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +6 -2
  442. package/mobile/lib/content-page-repository/ContentPageRepository.js +26 -4
  443. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +1 -1
  444. package/mobile/lib/content-page-repository/TransformationOptions.d.ts +1 -0
  445. package/mobile/lib/content-page-repository/copy.d.ts +1 -0
  446. package/mobile/lib/content-page-repository/copy.js +10 -0
  447. package/mobile/lib/content-page-repository/copy.js.map +1 -0
  448. package/mobile/lib/content-page-repository/transformAttachmentLink.js +8 -7
  449. package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
  450. package/mobile/lib/content-page-repository/transformDocument.js +3 -5
  451. package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
  452. package/mobile/lib/content-page-repository/transformImg.js +4 -1
  453. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  454. package/mobile/lib/data/FooterData.d.ts +0 -1
  455. package/mobile/lib/data/SitemapData.d.ts +1 -10
  456. package/mobile/lib/icons/IconName.d.ts +4 -2
  457. package/mobile/lib/icons/IconName.js +3 -1
  458. package/mobile/lib/icons/IconName.js.map +1 -1
  459. package/mobile/lib/model/Fallback.d.ts +0 -1
  460. package/mobile/lib/ui-kit/Badge/Badge.js +1 -3
  461. package/mobile/lib/ui-kit/Badge/Badge.js.map +1 -1
  462. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js +3 -3
  463. package/mobile/lib/ui-kit/BaseFiltration/useHotFilters.js.map +1 -1
  464. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js +1 -1
  465. package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.js.map +1 -1
  466. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
  467. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js +1 -1
  468. package/mobile/lib/ui-kit/Calculator/renderMonthsInput.js.map +1 -1
  469. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +1 -0
  470. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +2 -2
  471. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  472. package/mobile/lib/ui-kit/Heading/HeadingProps.d.ts +1 -3
  473. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js +9 -4
  474. package/mobile/lib/ui-kit/TabsControl/ScrollableTabsControl.js.map +1 -1
  475. package/mobile/lib/ui-kit/TabsControl/TabItem.d.ts +1 -2
  476. package/mobile/lib/ui-kit/TabsControl/TabItem.js.map +1 -1
  477. package/mobile/lib/ui-kit/TabsControl/TabItemInner.d.ts +1 -0
  478. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js +4 -2
  479. package/mobile/lib/ui-kit/TabsControl/TabItemInner.js.map +1 -1
  480. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -1
  481. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  482. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  483. package/mobile/lib/ui-kit/YandexMap/renderClusterer.d.ts +5 -1
  484. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js +32 -13
  485. package/mobile/lib/ui-kit/YandexMap/renderClusterer.js.map +1 -1
  486. package/mobile/lib/utils/getVersion.d.ts +1 -0
  487. package/mobile/lib/utils/getVersion.js +2 -0
  488. package/mobile/lib/utils/getVersion.js.map +1 -0
  489. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
  490. package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
  491. package/mobile/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
  492. package/mobile/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
  493. package/mobile/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
  494. package/mobile/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
  495. package/mobile/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
  496. package/mobile/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
  497. package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
  498. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  499. package/mobile/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
  500. package/mobile/src/components/ContentPage/ContentPage.tsx +1 -0
  501. package/mobile/src/components/ContentPage/computeAPIFallback.ts +3 -35
  502. package/mobile/src/components/Footer/Footer.tsx +0 -16
  503. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  504. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
  505. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
  506. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
  507. package/mobile/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
  508. package/mobile/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
  509. package/mobile/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
  510. package/mobile/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
  511. package/mobile/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
  512. package/mobile/src/components/OfficesAtmsMap/useOffices.ts +11 -4
  513. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
  514. package/mobile/src/components/TabsLayout/TabsLayout.tsx +21 -11
  515. package/mobile/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
  516. package/mobile/src/content-page-repository/ContentPageRepository.ts +36 -4
  517. package/mobile/src/content-page-repository/TransformationOptions.ts +1 -0
  518. package/mobile/src/content-page-repository/copy.ts +11 -0
  519. package/mobile/src/content-page-repository/transformAttachmentLink.ts +7 -8
  520. package/mobile/src/content-page-repository/transformDocument.ts +3 -5
  521. package/mobile/src/content-page-repository/transformImg.ts +6 -1
  522. package/mobile/src/data/FooterData.ts +0 -1
  523. package/mobile/src/data/SitemapData.ts +1 -11
  524. package/mobile/src/icons/IconName.ts +5 -5
  525. package/mobile/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
  526. package/mobile/src/model/Fallback.ts +0 -1
  527. package/mobile/src/ui-kit/Badge/Badge.tsx +13 -15
  528. package/mobile/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
  529. package/mobile/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  530. package/mobile/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
  531. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
  532. package/mobile/src/ui-kit/Heading/HeadingProps.ts +1 -3
  533. package/mobile/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
  534. package/mobile/src/ui-kit/TabsControl/TabItem.tsx +1 -2
  535. package/mobile/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
  536. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
  537. package/mobile/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
  538. package/mobile/src/utils/getVersion.ts +1 -0
  539. package/package.json +1 -1
  540. package/src/components/ApplicationForm/ApplicationFormContent.ts +4 -1
  541. package/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -5
  542. package/src/components/CalculatorCredit/CalculatorCreditContent.ts +31 -0
  543. package/src/components/CalculatorCredit/checkCreditSourceBookRowCommonParams.ts +2 -2
  544. package/src/components/CalculatorCredit/defaultCreditCalculatorParams.ts +19 -0
  545. package/src/components/CalculatorCredit/getCreditCalculatorLimitParams.ts +3 -3
  546. package/src/components/CalculatorCredit/getCreditCalculatorParams.ts +7 -53
  547. package/src/components/CalculatorCredit/getCreditCalculatorRateParams.ts +4 -4
  548. package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +1 -1
  549. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  550. package/src/components/ContactsBlock/ContactsBlock.ui.json +36 -1
  551. package/src/components/ContentPage/ContentPage.tsx +1 -0
  552. package/src/components/ContentPage/computeAPIFallback.ts +3 -35
  553. package/src/components/Footer/Footer.mobile.tsx +0 -16
  554. package/src/components/Footer/Footer.tsx +0 -19
  555. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  556. package/src/components/MobileAppTile/MobileAppTileContent.ts +0 -4
  557. package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +37 -47
  558. package/src/components/OfficesAtmsMap/OfficesAtmsMapProps.tsx +15 -0
  559. package/src/components/OfficesAtmsMap/OfficesMap.tsx +28 -12
  560. package/src/components/OfficesAtmsMap/YandexMapProps.ts +1 -0
  561. package/src/components/OfficesAtmsMap/renderDescriptionBlock.tsx +29 -0
  562. package/src/components/OfficesAtmsMap/renderFiltrationForm.tsx +2 -1
  563. package/src/components/OfficesAtmsMap/renderRemoteWorkplaceCard.tsx +86 -0
  564. package/src/components/OfficesAtmsMap/useOffices.ts +11 -4
  565. package/src/components/ProductGallery/ProductGallery.tsx +37 -7
  566. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +9 -1
  567. package/src/components/TabsLayout/TabsLayout.fixture.mobile.tsx +70 -24
  568. package/src/components/TabsLayout/TabsLayout.fixture.tsx +33 -29
  569. package/src/components/TabsLayout/TabsLayout.tsx +21 -11
  570. package/src/components/TabsLayout/renderTabsLayout.tsx +24 -20
  571. package/src/content-page-repository/ContentPageRepository.ts +36 -4
  572. package/src/content-page-repository/TransformationOptions.ts +1 -0
  573. package/src/content-page-repository/copy.ts +11 -0
  574. package/src/content-page-repository/transformAttachmentLink.ts +7 -8
  575. package/src/content-page-repository/transformDocument.ts +3 -5
  576. package/src/content-page-repository/transformImg.ts +6 -1
  577. package/src/data/FooterData.ts +0 -1
  578. package/src/data/SitemapData.ts +1 -11
  579. package/src/icons/IconName.ts +5 -5
  580. package/src/icons/MapMarkerClusterYellowIcon.svg +1 -0
  581. package/src/model/Fallback.ts +0 -1
  582. package/src/ui-kit/Badge/Badge.tsx +13 -15
  583. package/src/ui-kit/BaseFiltration/useHotFilters.tsx +3 -7
  584. package/src/ui-kit/BenefitItem/renderBenefitIcon.tsx +1 -1
  585. package/src/ui-kit/Calculator/renderMonthsInput.tsx +2 -2
  586. package/src/ui-kit/CookiePopup/CookiePopup.tsx +52 -42
  587. package/src/ui-kit/Heading/HeadingProps.ts +1 -3
  588. package/src/ui-kit/TabsControl/ScrollableTabsControl.tsx +13 -16
  589. package/src/ui-kit/TabsControl/TabItem.tsx +1 -2
  590. package/src/ui-kit/TabsControl/TabItemInner.tsx +9 -2
  591. package/src/ui-kit/YandexMap/YandexMap.tsx +3 -3
  592. package/src/ui-kit/YandexMap/renderClusterer.ts +62 -16
  593. package/src/utils/getVersion.ts +1 -0
  594. package/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
  595. package/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
  596. package/dist/components/ContentPage/loadModuleFallback.js +0 -36
  597. package/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
  598. package/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
  599. package/lib/components/ContentPage/loadModuleFallback.js +0 -10
  600. package/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
  601. package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
  602. package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
  603. package/mobile/dist/components/ContentPage/loadModuleFallback.js +0 -36
  604. package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
  605. package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
  606. package/mobile/lib/components/ContentPage/loadModuleFallback.js +0 -10
  607. package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
  608. package/mobile/src/components/ContentPage/loadModuleFallback.ts +0 -11
  609. package/src/components/ContentPage/loadModuleFallback.ts +0 -11
@@ -69,6 +69,7 @@ export const ContentPage = JSX<ContentPageProps>(
69
69
  <PopupManager />
70
70
  <CookiePopup
71
71
  termLink={{ href: '/pd-policy#cookie', target: '_blank' }}
72
+ recommendationLink={{ href: '/recommendation', target: '_blank' }}
72
73
  personalDataPolicyLink={{ href: '/pd-policy', target: '_blank' }}
73
74
  />
74
75
  </div>
@@ -1,52 +1,20 @@
1
1
  import { collectRef, resolveJPointer, type JSONNode } from '@redneckz/json-ref';
2
2
  import { readFile } from 'fs/promises';
3
- import { type BlocksRegistry } from '../../model/BlocksRegistry';
4
3
  import { type ContentPageDef } from '../../model/ContentPageDef';
5
- import { type Fallback, type FallbackMap } from '../../model/Fallback';
4
+ import { type Fallback } from '../../model/Fallback';
6
5
  import { unique } from '../../utils/unique';
7
6
  import { joinPath } from '../../utils/url';
8
- import { loadModuleFallback } from './loadModuleFallback';
9
7
 
10
8
  type FallbackEntry = [key: string, data: JSONNode];
11
9
 
12
10
  const BASE_DIR = 'content';
13
11
 
14
- export const computeAPIFallback = async (
15
- blocksRegistry: BlocksRegistry,
16
- contentPageData: ContentPageDef,
17
- ): Promise<Fallback> => {
12
+ export const computeAPIFallback = async (contentPageData: ContentPageDef): Promise<Fallback> => {
18
13
  return Object.fromEntries(
19
- (
20
- await Promise.all([
21
- computeFallbackFromModules(blocksRegistry),
22
- computeFallbackFromContentRefs(contentPageData),
23
- ])
24
- )
25
- .flatMap((_) => _)
26
- .filter(([key, data]) => key && data),
14
+ (await computeFallbackFromContentRefs(contentPageData)).filter(([key, data]) => key && data),
27
15
  );
28
16
  };
29
17
 
30
- const computeFallbackFromModules = async (
31
- blocksRegistry: BlocksRegistry,
32
- ): Promise<FallbackEntry[]> => {
33
- const fallbackMap: FallbackMap = (
34
- await Promise.all(Object.keys(blocksRegistry).map(loadModuleFallback))
35
- )
36
- .filter((_): _ is FallbackMap => Boolean(_))
37
- .reduce((acc, _) => ({ ...acc, ..._ }), {});
38
-
39
- return (
40
- await Promise.allSettled(
41
- Object.entries(fallbackMap).map(
42
- async ([key, fetcher]): Promise<FallbackEntry> => [key, await fetcher()],
43
- ),
44
- )
45
- )
46
- .filter((_): _ is PromiseFulfilledResult<FallbackEntry> => _.status === 'fulfilled')
47
- .map(({ value }) => value);
48
- };
49
-
50
18
  const computeFallbackFromContentRefs = async (
51
19
  contentPageData: ContentPageDef,
52
20
  ): Promise<FallbackEntry[]> => {
@@ -1,17 +1,13 @@
1
- import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
1
  import { type TopMenuItemProps } from '../../data/SitemapData';
3
2
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
4
3
  import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
5
4
  import { UniBlock } from '../../UniBlock/UniBlock';
6
5
  import { appendSlash } from '../../utils/appendSlash';
7
- import { mapCookie } from '../../utils/mapCookie';
8
6
  import { style } from '../../utils/style';
9
7
  import { RollupItem } from '../RollupItem/RollupItem';
10
8
  import { Contacts } from './Contacts';
11
- import { COOKIE_REPLACE } from './cookieReplaceData';
12
9
  import { type FooterProps } from './FooterProps';
13
10
  import { HorizontalNavigation } from './HorizontalNavigation';
14
- import { HorizontalNavigationLink } from './HorizontalNavigationLink';
15
11
  import { LinkList } from './LinkList';
16
12
  import { SocialMedia } from './SocialMedia';
17
13
  import { TextInformation } from './TextInformation';
@@ -30,11 +26,6 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
30
26
  license,
31
27
  } = footer || {};
32
28
 
33
- const handleOnClick = useCallback(() => {
34
- const [name, oldValue, newValue] = COOKIE_REPLACE;
35
- mapCookie(name, (value) => value?.replace(oldValue, newValue));
36
- }, []);
37
-
38
29
  return (
39
30
  <BlockWrapper
40
31
  tag="footer"
@@ -54,13 +45,6 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
54
45
  </SocialMedia>
55
46
  ))}
56
47
  <div className={borderStyle} />
57
- <HorizontalNavigationLink
58
- text="Вернуться на прежнюю версию сайта"
59
- className="flex text-l font-light max-w-[292px]"
60
- href="https://old.rshb.ru"
61
- onClick={handleOnClick}
62
- />
63
- <div className={borderStyle} />
64
48
  <HorizontalNavigation title={horizontalNavigationTitle} links={relatedEnterprises} />
65
49
  <div className={borderStyle} />
66
50
  <TextInformation links={documents} license={license} />
@@ -1,14 +1,11 @@
1
- import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
1
  import { BlockWrapper } from '../../ui-kit/BlockWrapper';
3
2
  import { LinkButton } from '../../ui-kit/LinkButton/LinkButton';
4
3
  import { Logo } from '../../ui-kit/Logo/Logo';
5
4
  import { SearchBar } from '../../ui-kit/SearchBar/SearchBar';
6
5
  import { Sitemap } from '../../ui-kit/Sitemap/Sitemap';
7
6
  import { UniBlock } from '../../UniBlock/UniBlock';
8
- import { mapCookie } from '../../utils/mapCookie';
9
7
  import { style } from '../../utils/style';
10
8
  import { Contacts } from './Contacts';
11
- import { COOKIE_REPLACE } from './cookieReplaceData';
12
9
  import { type FooterProps } from './FooterProps';
13
10
  import { HorizontalNavigation } from './HorizontalNavigation';
14
11
  import { SocialMedia } from './SocialMedia';
@@ -26,16 +23,10 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
26
23
  contacts,
27
24
  mediaLinks = [],
28
25
  feedbackButton,
29
- isOldVersionButton,
30
26
  license,
31
27
  otherLinks = [],
32
28
  } = footer ?? {};
33
29
 
34
- const handleOnClick = useCallback(() => {
35
- const [name, oldValue, newValue] = COOKIE_REPLACE;
36
- mapCookie(name, (value) => value?.replace(oldValue, newValue));
37
- }, []);
38
-
39
30
  const linkStyle = '!text-left text-s font-light';
40
31
 
41
32
  return (
@@ -55,16 +46,6 @@ export const Footer = UniBlock<FooterProps>(({ className, footer, ...rest }) =>
55
46
  {_?.title}
56
47
  </SocialMedia>
57
48
  ))}
58
- {isOldVersionButton ? (
59
- <LinkButton
60
- version="link"
61
- href="https://old.rshb.ru"
62
- className={linkStyle}
63
- onClick={handleOnClick}
64
- >
65
- Вернуться на прежнюю версию сайта
66
- </LinkButton>
67
- ) : null}
68
49
  {otherLinks.map((_, i) => (
69
50
  <LinkButton key={String(i)} className={linkStyle} version="link" {..._}>
70
51
  {_?.text}
@@ -20,8 +20,8 @@ export const MobileAppTile = UniBlock<MobileAppTileProps>(
20
20
  description,
21
21
  image,
22
22
  items,
23
- qr,
24
23
  headingType,
24
+ qr,
25
25
  additionalDescription = '',
26
26
  title = 'Мобильное приложение',
27
27
  version = 'primary',
@@ -1,8 +1,6 @@
1
1
  import {
2
2
  type AdditionalDescriptionProps,
3
- type DescriptionProps,
4
3
  type HeadlineCommonProps,
5
- type TitleProps,
6
4
  } from '../../model/HeadlineType';
7
5
  import { type Picture } from '../../model/Picture';
8
6
  import { type HeadingType } from '../../ui-kit/Heading/HeadingProps';
@@ -17,8 +15,6 @@ import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
17
15
  export type MobileAppTileContent = UniBlockContent &
18
16
  AdditionalDescriptionProps &
19
17
  HeadlineCommonProps &
20
- TitleProps &
21
- DescriptionProps &
22
18
  ButtonsSectionContent &
23
19
  ListContent &
24
20
  ImageContent & {
@@ -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
  };