@redneckz/wildless-cms-uni-blocks 0.13.9 → 0.13.10

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 (459) hide show
  1. package/bundle/ProjectSettings.d.ts +4 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +68 -38
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/Header/HeaderSubMenu.d.ts +5 -1
  6. package/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
  7. package/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
  8. package/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
  9. package/bundle/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  10. package/bundle/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
  11. package/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
  12. package/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
  13. package/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
  14. package/bundle/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
  15. package/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
  16. package/bundle/hooks/useActiveRoute.d.ts +2 -0
  17. package/bundle/hooks/useSWRResource.d.ts +1 -1
  18. package/bundle/icons/IconName.d.ts +10 -6
  19. package/bundle/services/sitemap/SitemapData.d.ts +5 -1
  20. package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
  21. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  22. package/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
  23. package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
  24. package/cosmos-static/icons/BurgerIcon.svg +1 -1
  25. package/cosmos-static/icons/ChartIcon.svg +1 -0
  26. package/cosmos-static/icons/MapOpenedIcon.svg +1 -0
  27. package/dist/ProjectSettings.d.ts +4 -0
  28. package/dist/ProjectSettings.js +6 -0
  29. package/dist/ProjectSettings.js.map +1 -1
  30. package/dist/components/ApplicationForm/ResponseNotification.js +1 -1
  31. package/dist/components/Blocks.js +2 -0
  32. package/dist/components/Blocks.js.map +1 -1
  33. package/dist/components/Blocks.mobile.js +2 -0
  34. package/dist/components/Blocks.mobile.js.map +1 -1
  35. package/dist/components/ContentPage/ContentPage.js +3 -2
  36. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  37. package/dist/components/ContentPage/ContentPage.page.json +37 -0
  38. package/dist/components/ContentPage/useContentPageData.js +1 -1
  39. package/dist/components/ContentPage/useContentPageData.js.map +1 -1
  40. package/dist/components/Header/Header.js +6 -5
  41. package/dist/components/Header/Header.js.map +1 -1
  42. package/dist/components/Header/HeaderSubMenu.d.ts +5 -1
  43. package/dist/components/Header/HeaderSubMenu.js +8 -7
  44. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  45. package/dist/components/PictureText/PictureText.js +1 -1
  46. package/dist/components/PictureText/PictureText.js.map +1 -1
  47. package/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
  48. package/dist/components/StickyBottomMenu/ActiveSubMenu.js +9 -0
  49. package/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
  50. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
  51. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +12 -0
  52. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  53. package/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
  54. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +38 -0
  55. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  56. package/dist/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  57. package/dist/components/StickyBottomMenu/StickyBottomMenu.js +6 -0
  58. package/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  59. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
  60. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +30 -0
  61. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
  62. package/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
  63. package/dist/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
  64. package/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  65. package/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
  66. package/dist/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
  67. package/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  68. package/dist/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
  69. package/dist/components/StickyBottomMenu/TopItemMobile.js +12 -0
  70. package/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  71. package/dist/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
  72. package/dist/components/StickyBottomMenu/renderMenuItems.js +13 -0
  73. package/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
  74. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
  75. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js +26 -0
  76. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  77. package/dist/hooks/useActiveRoute.d.ts +2 -0
  78. package/dist/hooks/useActiveRoute.js +11 -0
  79. package/dist/hooks/useActiveRoute.js.map +1 -0
  80. package/dist/hooks/useSWRResource.d.ts +1 -1
  81. package/dist/hooks/useSWRResource.js +3 -2
  82. package/dist/hooks/useSWRResource.js.map +1 -1
  83. package/dist/icons/IconName.d.ts +10 -6
  84. package/dist/icons/IconName.js +9 -5
  85. package/dist/icons/IconName.js.map +1 -1
  86. package/dist/services/sitemap/SitemapData.d.ts +5 -1
  87. package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
  88. package/dist/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
  89. package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  90. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  91. package/dist/ui-kit/BaseTile/BaseTile.js +8 -5
  92. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  93. package/dist/ui-kit/DialogManager/Dialog.js +1 -1
  94. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  95. package/dist/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
  96. package/dist/ui-kit/DialogManager/isDialogOpen.js +5 -0
  97. package/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
  98. package/dist/ui-kit/LocationDialog/LocationDialog.js +1 -1
  99. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  100. package/dist/ui-kit/SearchBar/SearchBar.js +2 -1
  101. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  102. package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  103. package/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  104. package/dist/ui-kit/Sitemap/Sitemap.js +3 -1
  105. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  106. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
  107. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
  108. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  109. package/dist/wlc.json +1 -0
  110. package/lib/ProjectSettings.d.ts +4 -0
  111. package/lib/ProjectSettings.js +6 -0
  112. package/lib/ProjectSettings.js.map +1 -1
  113. package/lib/common.css +1 -1
  114. package/lib/components/ApplicationForm/ResponseNotification.js +1 -1
  115. package/lib/components/Blocks.js +2 -0
  116. package/lib/components/Blocks.js.map +1 -1
  117. package/lib/components/Blocks.mobile.js +2 -0
  118. package/lib/components/Blocks.mobile.js.map +1 -1
  119. package/lib/components/ContentPage/ContentPage.js +3 -2
  120. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  121. package/lib/components/ContentPage/ContentPage.page.json +37 -0
  122. package/lib/components/ContentPage/useContentPageData.js +1 -1
  123. package/lib/components/ContentPage/useContentPageData.js.map +1 -1
  124. package/lib/components/Header/Header.js +6 -5
  125. package/lib/components/Header/Header.js.map +1 -1
  126. package/lib/components/Header/HeaderSubMenu.d.ts +5 -1
  127. package/lib/components/Header/HeaderSubMenu.js +8 -7
  128. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  129. package/lib/components/PictureText/PictureText.js +1 -1
  130. package/lib/components/PictureText/PictureText.js.map +1 -1
  131. package/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
  132. package/lib/components/StickyBottomMenu/ActiveSubMenu.js +7 -0
  133. package/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
  134. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
  135. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +10 -0
  136. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  137. package/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
  138. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +36 -0
  139. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  140. package/lib/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  141. package/lib/components/StickyBottomMenu/StickyBottomMenu.fixture.d.ts +8 -0
  142. package/lib/components/StickyBottomMenu/StickyBottomMenu.fixture.mobile.d.ts +6 -0
  143. package/lib/components/StickyBottomMenu/StickyBottomMenu.js +4 -0
  144. package/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  145. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
  146. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +28 -0
  147. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
  148. package/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
  149. package/lib/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
  150. package/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  151. package/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
  152. package/lib/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
  153. package/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  154. package/lib/components/StickyBottomMenu/TopItemMobile.d.ts +8 -0
  155. package/lib/components/StickyBottomMenu/TopItemMobile.js +9 -0
  156. package/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  157. package/lib/components/StickyBottomMenu/renderMenuItems.d.ts +2 -0
  158. package/lib/components/StickyBottomMenu/renderMenuItems.js +10 -0
  159. package/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
  160. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
  161. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +23 -0
  162. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  163. package/lib/hooks/useActiveRoute.d.ts +2 -0
  164. package/lib/hooks/useActiveRoute.js +8 -0
  165. package/lib/hooks/useActiveRoute.js.map +1 -0
  166. package/lib/hooks/useSWRResource.d.ts +1 -1
  167. package/lib/hooks/useSWRResource.js +3 -2
  168. package/lib/hooks/useSWRResource.js.map +1 -1
  169. package/lib/icons/IconName.d.ts +10 -6
  170. package/lib/icons/IconName.js +9 -5
  171. package/lib/icons/IconName.js.map +1 -1
  172. package/lib/services/sitemap/SitemapData.d.ts +5 -1
  173. package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
  174. package/lib/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
  175. package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  176. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  177. package/lib/ui-kit/BaseTile/BaseTile.js +8 -5
  178. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  179. package/lib/ui-kit/DialogManager/Dialog.js +1 -1
  180. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  181. package/lib/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
  182. package/lib/ui-kit/DialogManager/isDialogOpen.js +2 -0
  183. package/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
  184. package/lib/ui-kit/LocationDialog/LocationDialog.js +1 -1
  185. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  186. package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +0 -1
  187. package/lib/ui-kit/LocationDialog/renderRegion.d.ts +0 -1
  188. package/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +0 -1
  189. package/lib/ui-kit/SearchBar/SearchBar.js +2 -1
  190. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  191. package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  192. package/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  193. package/lib/ui-kit/Sitemap/Sitemap.js +3 -1
  194. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  195. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
  196. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
  197. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  198. package/lib/wlc.json +1 -0
  199. package/mobile/bundle/ProjectSettings.d.ts +4 -0
  200. package/mobile/bundle/bundle.umd.js +446 -68
  201. package/mobile/bundle/bundle.umd.min.js +1 -1
  202. package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +5 -1
  203. package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
  204. package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
  205. package/mobile/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
  206. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  207. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
  208. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
  209. package/mobile/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
  210. package/mobile/bundle/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
  211. package/mobile/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
  212. package/mobile/bundle/hooks/useActiveRoute.d.ts +2 -0
  213. package/mobile/bundle/hooks/useSWRResource.d.ts +1 -1
  214. package/mobile/bundle/icons/IconName.d.ts +10 -6
  215. package/mobile/bundle/services/sitemap/SitemapData.d.ts +5 -1
  216. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
  217. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  218. package/mobile/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
  219. package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
  220. package/mobile/dist/ProjectSettings.d.ts +4 -0
  221. package/mobile/dist/ProjectSettings.js +6 -0
  222. package/mobile/dist/ProjectSettings.js.map +1 -1
  223. package/mobile/dist/components/ApplicationForm/ResponseNotification.js +1 -1
  224. package/mobile/dist/components/Blocks.js +2 -0
  225. package/mobile/dist/components/Blocks.js.map +1 -1
  226. package/mobile/dist/components/ContentPage/ContentPage.js +3 -2
  227. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  228. package/mobile/dist/components/ContentPage/ContentPage.page.json +37 -0
  229. package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
  230. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
  231. package/mobile/dist/components/Header/HeaderSubMenu.d.ts +5 -1
  232. package/mobile/dist/components/Header/HeaderSubMenu.js +8 -7
  233. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  234. package/mobile/dist/components/PictureText/PictureText.js +1 -1
  235. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  236. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
  237. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js +9 -0
  238. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
  239. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
  240. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +12 -0
  241. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  242. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
  243. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +38 -0
  244. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  245. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  246. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +30 -0
  247. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  248. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
  249. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
  250. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  251. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
  252. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
  253. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  254. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
  255. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js +12 -0
  256. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  257. package/mobile/dist/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
  258. package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js +13 -0
  259. package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
  260. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
  261. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js +26 -0
  262. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  263. package/mobile/dist/hooks/useActiveRoute.d.ts +2 -0
  264. package/mobile/dist/hooks/useActiveRoute.js +11 -0
  265. package/mobile/dist/hooks/useActiveRoute.js.map +1 -0
  266. package/mobile/dist/hooks/useSWRResource.d.ts +1 -1
  267. package/mobile/dist/hooks/useSWRResource.js +3 -2
  268. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  269. package/mobile/dist/icons/IconName.d.ts +10 -6
  270. package/mobile/dist/icons/IconName.js +9 -5
  271. package/mobile/dist/icons/IconName.js.map +1 -1
  272. package/mobile/dist/services/sitemap/SitemapData.d.ts +5 -1
  273. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
  274. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
  275. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  276. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  277. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +8 -5
  278. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  279. package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -1
  280. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  281. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
  282. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js +5 -0
  283. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
  284. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +1 -1
  285. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  286. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +2 -1
  287. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  288. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
  289. package/mobile/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  290. package/mobile/dist/ui-kit/Sitemap/Sitemap.js +3 -1
  291. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  292. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
  293. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
  294. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  295. package/mobile/dist/wlc.json +1 -0
  296. package/mobile/lib/ProjectSettings.d.ts +4 -0
  297. package/mobile/lib/ProjectSettings.js +6 -0
  298. package/mobile/lib/ProjectSettings.js.map +1 -1
  299. package/mobile/lib/common.css +1 -1
  300. package/mobile/lib/components/ApplicationForm/ResponseNotification.js +1 -1
  301. package/mobile/lib/components/Blocks.js +2 -0
  302. package/mobile/lib/components/Blocks.js.map +1 -1
  303. package/mobile/lib/components/ContentPage/ContentPage.js +3 -2
  304. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  305. package/mobile/lib/components/ContentPage/ContentPage.page.json +37 -0
  306. package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
  307. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
  308. package/mobile/lib/components/Header/HeaderSubMenu.d.ts +5 -1
  309. package/mobile/lib/components/Header/HeaderSubMenu.js +8 -7
  310. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  311. package/mobile/lib/components/PictureText/PictureText.js +1 -1
  312. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  313. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +6 -0
  314. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js +7 -0
  315. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -0
  316. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +7 -0
  317. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +10 -0
  318. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  319. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +7 -0
  320. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +36 -0
  321. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  322. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  323. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +28 -0
  324. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  325. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +22 -0
  326. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.js +2 -0
  327. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  328. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +8 -0
  329. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.js +2 -0
  330. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  331. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.d.ts +9 -0
  332. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js +9 -0
  333. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  334. package/mobile/lib/components/StickyBottomMenu/renderMenuItems.d.ts +3 -0
  335. package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js +10 -0
  336. package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -0
  337. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +6 -0
  338. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +23 -0
  339. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  340. package/mobile/lib/hooks/useActiveRoute.d.ts +2 -0
  341. package/mobile/lib/hooks/useActiveRoute.js +8 -0
  342. package/mobile/lib/hooks/useActiveRoute.js.map +1 -0
  343. package/mobile/lib/hooks/useSWRResource.d.ts +1 -1
  344. package/mobile/lib/hooks/useSWRResource.js +3 -2
  345. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  346. package/mobile/lib/icons/IconName.d.ts +10 -6
  347. package/mobile/lib/icons/IconName.js +9 -5
  348. package/mobile/lib/icons/IconName.js.map +1 -1
  349. package/mobile/lib/services/sitemap/SitemapData.d.ts +5 -1
  350. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +0 -1
  351. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +4 -2
  352. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
  353. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -0
  354. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +8 -5
  355. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  356. package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -1
  357. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  358. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.d.ts +2 -0
  359. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js +2 -0
  360. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -0
  361. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +1 -1
  362. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  363. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +2 -1
  364. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  365. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
  366. package/mobile/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
  367. package/mobile/lib/ui-kit/Sitemap/Sitemap.js +3 -1
  368. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  369. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -0
  370. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +6 -0
  371. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  372. package/mobile/lib/wlc.json +1 -0
  373. package/mobile/src/ProjectSettings.ts +8 -0
  374. package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +2 -2
  375. package/mobile/src/components/Blocks.ts +2 -0
  376. package/mobile/src/components/ContentPage/ContentPage.page.json +37 -0
  377. package/mobile/src/components/ContentPage/ContentPage.tsx +3 -1
  378. package/mobile/src/components/ContentPage/useContentPageData.ts +1 -1
  379. package/mobile/src/components/Header/HeaderSubMenu.tsx +16 -8
  380. package/mobile/src/components/PictureText/PictureText.tsx +1 -1
  381. package/mobile/src/components/StickyBottomMenu/ActiveSubMenu.tsx +16 -0
  382. package/mobile/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +32 -0
  383. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +102 -0
  384. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.example.json +35 -0
  385. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +43 -0
  386. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +11 -0
  387. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +24 -0
  388. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuProps.tsx +10 -0
  389. package/mobile/src/components/StickyBottomMenu/TopItemMobile.tsx +32 -0
  390. package/mobile/src/components/StickyBottomMenu/renderMenuItems.tsx +32 -0
  391. package/mobile/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +34 -0
  392. package/mobile/src/hooks/useActiveRoute.ts +12 -0
  393. package/mobile/src/hooks/useSWRResource.ts +3 -1
  394. package/mobile/src/icons/BurgerIcon.svg +4 -4
  395. package/mobile/src/icons/ChartIcon.svg +7 -0
  396. package/mobile/src/icons/IconName.ts +5 -5
  397. package/mobile/src/icons/MapOpenedIcon.svg +5 -0
  398. package/mobile/src/services/sitemap/SitemapData.ts +5 -1
  399. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -12
  400. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  401. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +16 -7
  402. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +2 -2
  403. package/mobile/src/ui-kit/DialogManager/isDialogOpen.ts +4 -0
  404. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +1 -1
  405. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -2
  406. package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +2 -2
  407. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +5 -3
  408. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +11 -0
  409. package/mobile/src/wlc.json +1 -0
  410. package/package.json +1 -1
  411. package/src/ProjectSettings.ts +8 -0
  412. package/src/components/ApplicationForm/ResponseNotification.tsx +2 -2
  413. package/src/components/Blocks.mobile.ts +2 -0
  414. package/src/components/Blocks.ts +2 -0
  415. package/src/components/ContentPage/ContentPage.page.json +37 -0
  416. package/src/components/ContentPage/ContentPage.tsx +3 -1
  417. package/src/components/ContentPage/useContentPageData.ts +1 -1
  418. package/src/components/Header/Header.tsx +12 -6
  419. package/src/components/Header/HeaderSubMenu.tsx +16 -8
  420. package/src/components/PictureText/PictureText.tsx +1 -1
  421. package/src/components/StickyBottomMenu/ActiveSubMenu.tsx +16 -0
  422. package/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +32 -0
  423. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +102 -0
  424. package/src/components/StickyBottomMenu/StickyBottomMenu.example.json +35 -0
  425. package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.mobile.tsx +36 -0
  426. package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.tsx +36 -0
  427. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +43 -0
  428. package/src/components/StickyBottomMenu/StickyBottomMenu.tsx +4 -0
  429. package/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +11 -0
  430. package/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +24 -0
  431. package/src/components/StickyBottomMenu/StickyBottomMenuProps.tsx +10 -0
  432. package/src/components/StickyBottomMenu/TopItemMobile.tsx +32 -0
  433. package/src/components/StickyBottomMenu/renderMenuItems.tsx +32 -0
  434. package/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +34 -0
  435. package/src/hooks/useActiveRoute.ts +12 -0
  436. package/src/hooks/useSWRResource.ts +3 -1
  437. package/src/icons/BurgerIcon.svg +4 -4
  438. package/src/icons/ChartIcon.svg +7 -0
  439. package/src/icons/IconName.ts +6 -389
  440. package/src/icons/MapOpenedIcon.svg +5 -0
  441. package/src/services/sitemap/SitemapData.ts +5 -1
  442. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +17 -12
  443. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -0
  444. package/src/ui-kit/BaseTile/BaseTile.tsx +16 -7
  445. package/src/ui-kit/DialogManager/Dialog.tsx +2 -2
  446. package/src/ui-kit/DialogManager/isDialogOpen.ts +4 -0
  447. package/src/ui-kit/LocationDialog/LocationDialog.tsx +1 -1
  448. package/src/ui-kit/SearchBar/SearchBar.tsx +3 -2
  449. package/src/ui-kit/SearchDialog/SearchInput.tsx +2 -2
  450. package/src/ui-kit/Sitemap/Sitemap.tsx +5 -3
  451. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +11 -0
  452. package/src/wlc.json +1 -0
  453. package/bin/migration-scripts/0.13.9.js +0 -59
  454. /package/cosmos-static/icons/{ResponceFailIcon.svg → ResponseFailIcon.svg} +0 -0
  455. /package/cosmos-static/icons/{ResponceOKIcon.svg → ResponseOKIcon.svg} +0 -0
  456. /package/mobile/src/icons/{ResponceFailIcon.svg → ResponseFailIcon.svg} +0 -0
  457. /package/mobile/src/icons/{ResponceOKIcon.svg → ResponseOKIcon.svg} +0 -0
  458. /package/src/icons/{ResponceFailIcon.svg → ResponseFailIcon.svg} +0 -0
  459. /package/src/icons/{ResponceOKIcon.svg → ResponseOKIcon.svg} +0 -0
@@ -79,9 +79,15 @@
79
79
  get SITEMAP() {
80
80
  return this._.SITEMAP;
81
81
  }
82
+ get STICKY_MOBILE_MENU() {
83
+ return this._.STICKY_MOBILE_MENU;
84
+ }
82
85
  get FOOTER() {
83
86
  return this._.FOOTER;
84
87
  }
88
+ get PORTAL_DATA() {
89
+ return this._.PORTAL_DATA;
90
+ }
85
91
  get CHAT_BOT() {
86
92
  return this._.CHAT_BOT;
87
93
  }
@@ -1131,8 +1137,9 @@
1131
1137
  });
1132
1138
 
1133
1139
  const EMPTY_VALUE$1 = {};
1134
- function useSWRResource(filename, fallback = EMPTY_VALUE$1) {
1135
- const { data } = useAsyncData(filename ? `/wcms-resources/${filename}.json` : null, fetchJSONUnsafe, { fallback });
1140
+ const DEFAULT_FOLDER_NAME = 'wcms-resources';
1141
+ function useSWRResource(filename, fallback = EMPTY_VALUE$1, folderName = DEFAULT_FOLDER_NAME) {
1142
+ const { data } = useAsyncData(filename ? `/${folderName}/${filename}.json` : null, fetchJSONUnsafe, { fallback });
1136
1143
  return data || EMPTY_VALUE$1;
1137
1144
  }
1138
1145
 
@@ -1254,7 +1261,7 @@
1254
1261
  const ResponseNotification = JSX(({ responseType }) => {
1255
1262
  const responseOK = responseType === 'OK';
1256
1263
  const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
1257
- return (jsxs("div", { className: `flex items-center p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponceOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponceFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-2xs" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1264
+ return (jsxs("div", { className: `flex items-center p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponseOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponseFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-2xs" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1258
1265
  });
1259
1266
 
1260
1267
  const API = CorporateLeadAPI();
@@ -2403,11 +2410,17 @@
2403
2410
  scrollToStart(containerRef.current);
2404
2411
  }
2405
2412
  }, [itemCount, canScrollRight]);
2413
+ const scrollTo = useCallback((idx) => {
2414
+ if (containerRef?.current) {
2415
+ containerRef.current.children[idx]?.scrollIntoView();
2416
+ }
2417
+ }, [containerRef]);
2406
2418
  return [
2407
2419
  containerRef,
2408
2420
  {
2409
2421
  scrollLeft,
2410
2422
  scrollRight,
2423
+ scrollTo,
2411
2424
  canScrollLeft,
2412
2425
  canScrollRight,
2413
2426
  visibleIndicesRange: [minIndex, maxIndex],
@@ -2595,12 +2608,15 @@
2595
2608
  });
2596
2609
 
2597
2610
  const imageAlignmentMap = {
2598
- start: 'self-start',
2599
- center: 'self-center',
2600
- end: 'self-end',
2611
+ start: '@xl:self-start',
2612
+ center: '@xl:self-center',
2613
+ end: '@xl:self-end',
2601
2614
  };
2602
- const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-wrap @xl:flex-nowrap justify-around @xl:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, { className: '-order-1 @xl:order-1', imageAlign })] })] })));
2603
- const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2615
+ const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-3xl font-sans overflow-hidden', padding || defaultPadding, className), children: [title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-col @xl:flex-row justify-around @xl:justify-between items-stretch gap-3xl", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-3xl max-w-[600px] @xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), backImage ? (jsx("div", { className: "justify-center mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4", children: backImage })) : null, buttons] }), renderImageContainer(rightImage, {
2616
+ className: '-order-1 @xl:order-1',
2617
+ imageAlign,
2618
+ })] })] })));
2619
+ const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('md:flex-shrink-0 self-center', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
2604
2620
 
2605
2621
  const cardColumnsModeStyleMap = {
2606
2622
  1: 'grid-cols-1',
@@ -2705,12 +2721,14 @@
2705
2721
  const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
2706
2722
  const renderTag = (tag, key) => (jsx("div", { className: "p-xs border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m", font: "font-light", children: tag }) }, String(key)));
2707
2723
 
2708
- const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', isInsetTitle = true, benefitsVersion, isTabularBenefits, benefits, __html, items, isDotted = true, listItemSize, tags, buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
2724
+ const BaseProductTile = JSX(({ className, padding, defaultPadding, title, description, headlineVersion = 'L', align = 'text-left', benefitsVersion, isTabularBenefits, benefits, __html, isFullWidthTitle = true, items, isDotted = true, listItemSize, tags = [], buttons, image, imageOptions: { imageAlign = 'end', directionRight = true, isBackground } = {}, children, }) => {
2709
2725
  const img = image?.src ? jsx(Img, { image: image }) : null;
2710
2726
  const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isEmbedded: true }));
2711
- return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isInsetTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: benefits }), __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, tags?.length ? jsx(Tags, { tags: tags }) : null] }) }));
2727
+ const filteredBenefits = benefits?.filter((_) => _?.type === 'rte' || 'label' in _ || 'description' in _);
2728
+ return (jsx(BaseTile, { className: className, padding: padding, defaultPadding: defaultPadding, ...(isFullWidthTitle ? { insetTitle: headline } : { title: headline }), ...(isBackground ? { backImage: img } : leftOrRightImage(img, directionRight)), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-xl", children: [filteredBenefits?.length ? (jsx(BenefitsList, { benefitsVersion: benefitsVersion, isTabularBenefits: isTabularBenefits, benefits: filteredBenefits })) : null, __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, renderTags(tags)] }) }));
2712
2729
  });
2713
2730
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
2731
+ const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
2714
2732
 
2715
2733
  const CarouselProgramsCard = JSX(({ className, title, icon, list, href, target, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-3xl", ...rest, children: jsx(LinkWrapper, { className: "flex items-center h-full", href: href, target: target, children: jsx(BaseProductTile, { title: title, headlineVersion: "XS", image: icon, imageOptions: { directionRight: false, imageAlign: 'center' }, benefits: list?.map((_) => ({
2716
2734
  type: 'default',
@@ -3273,7 +3291,7 @@
3273
3291
  const handleChange = useCallback((ev) => {
3274
3292
  onChange && onChange(ev.target?.value || '');
3275
3293
  }, [onChange]);
3276
- return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 pl-6xl w-full text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
3294
+ return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 w-full px-10 text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
3277
3295
  });
3278
3296
 
3279
3297
  const useDebouncedEffect = (effect, deps, delay = 300) => useEffect(() => {
@@ -3368,7 +3386,7 @@
3368
3386
  close();
3369
3387
  onClose && onClose();
3370
3388
  }, [onClose]);
3371
- return (jsxs("div", { className: style('relative min-h-full bg-white', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
3389
+ return (jsxs("div", { className: style('relative min-h-full bg-white p-5', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
3372
3390
  });
3373
3391
 
3374
3392
  const Sitemap = JSX(({ className, topItems }) => {
@@ -3377,7 +3395,9 @@
3377
3395
  });
3378
3396
  const renderColumn = (menuItem, index) => {
3379
3397
  const { text, items, href, target, onClick } = menuItem;
3380
- return (jsxs("div", { className: "flex flex-col gap-s w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
3398
+ return (jsxs("div", { className: "flex flex-col gap-s w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items
3399
+ ?.filter((_) => !_.displayArea || _.displayArea === 'Footer')
3400
+ .map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
3381
3401
  };
3382
3402
  const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
3383
3403
  const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
@@ -3432,7 +3452,7 @@
3432
3452
  open({ initialQuery: _ }, { onClose: resetQueryOnDialogClose });
3433
3453
  }
3434
3454
  }, [resetQueryOnDialogClose]);
3435
- return (jsxs("div", { className: className, children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-2 right-3 sm:hidden", onClose: resetQueryOnDialogClose })] }));
3455
+ return (jsxs("div", { className: style('relative', className), children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
3436
3456
  });
3437
3457
  const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
3438
3458
 
@@ -3494,6 +3514,16 @@
3494
3514
  const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
3495
3515
  const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-52 border-r pr-s border-main-divider last:border-r-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
3496
3516
 
3517
+ const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
3518
+
3519
+ const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
3520
+
3521
+ function useActiveRoute(items = []) {
3522
+ const router = useRouter();
3523
+ const activeIndex = items.findIndex(isTopItemActive(router));
3524
+ return [activeIndex, items[activeIndex]];
3525
+ }
3526
+
3497
3527
  const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
3498
3528
  const link = useLink({ isRemote: true });
3499
3529
  const { href, target, text, onClick } = link(rest);
@@ -3596,7 +3626,7 @@
3596
3626
  }, []);
3597
3627
  return (jsxs(Dialog, { head: jsxs("div", { children: [currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3598
3628
  .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
3599
- .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
3629
+ .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-2 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
3600
3630
  });
3601
3631
  const regionFirstLetter = (region) => region.name?.charAt(0) || '';
3602
3632
  const cleanUpRegions = (regions) => regions.map((region) => ({
@@ -3644,6 +3674,13 @@
3644
3674
  }) })] }));
3645
3675
  });
3646
3676
 
3677
+ const findActiveSubItem = (router) => (items = []) => {
3678
+ const possibleActiveSubItems = items?.filter(isHrefActive(router));
3679
+ return possibleActiveSubItems?.length
3680
+ ? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
3681
+ : undefined;
3682
+ };
3683
+
3647
3684
  const getNS = (_) => globalThis[_];
3648
3685
  function useExternalNS(namespaceName, url) {
3649
3686
  const [externalNS, setExternalNS] = useState();
@@ -3725,43 +3762,33 @@
3725
3762
  };
3726
3763
  const InternetBankButton = JSX(({ version, internetBankUrl }) => internetBankUrl ? (jsx(Button, { href: internetBankUrl, ariaLabel: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A", target: "_blank", className: style('py-s ml-s text-l font-light whitespace-nowrap hover:text-primary-main', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A" })) : null);
3727
3764
 
3728
- const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
3729
-
3730
- const findActiveSubItem = (router) => (items = []) => {
3731
- const possibleActiveSubItems = items?.filter(isHrefActive(router));
3732
- return possibleActiveSubItems?.length
3733
- ? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
3734
- : undefined;
3735
- };
3736
-
3737
3765
  const HeaderSubMenu = JSX(({ subItems = [], version, internetBankUrl }) => {
3738
3766
  const iconVersion = version === 'transparent' ? 'white' : 'black';
3739
3767
  const router = useRouter();
3768
+ const visibleSubItems = useMemo(() => subItems.filter((item) => !item.displayArea || item.displayArea === 'Header'), [subItems]);
3740
3769
  const activeSubItem = findActiveSubItem(router)(subItems);
3741
- const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
3742
- const dropDownMenuItems = subItems.slice(visibleItemsCount);
3770
+ const [visibleItemsCount, setVisibleItemsCount] = useState(visibleSubItems.length);
3771
+ const dropDownMenuItems = visibleSubItems.slice(visibleItemsCount);
3743
3772
  const subItemsListRef = useRef(null);
3744
3773
  const observerOptions = { rootRef: subItemsListRef };
3745
- const subItemsVisibilityHandlers = useMemo(() => subItems.map((_, index) => (isIntersecting) => {
3774
+ const subItemsVisibilityHandlers = useMemo(() => visibleSubItems.map((_, index) => (isIntersecting) => {
3746
3775
  setVisibleItemsCount(isIntersecting
3747
3776
  ? handleIntersectionActivation(index)
3748
3777
  : handleIntersectionDeactivation(index));
3749
- }), [subItems]);
3750
- return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, jsxs("div", { className: "flex", children: [projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] })] }));
3778
+ }), [visibleSubItems]);
3779
+ return (jsxs("nav", { className: "relative mt-s flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl", children: visibleSubItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, jsxs("div", { className: "flex", children: [projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-4xl", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] })] }));
3751
3780
  });
3752
3781
  const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
3753
3782
  const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
3754
3783
 
3755
- const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
3756
-
3757
3784
  const BG_COLOR_TO_BLOCK_VERSION = {
3758
3785
  'bg-white': 'primary',
3759
3786
  transparent: 'transparent',
3760
3787
  };
3761
3788
  const Header = JSX(({ className, bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
3762
- const router = useRouter();
3763
- const { topItems, logo, officesLink, internetBankUrl, defaultLocation } = useSitemap(rest.options?.page?.fallback);
3764
- const activeTopItem = topItems?.find(isTopItemActive(router));
3789
+ const { topItems, logo, officesLink, defaultLocation } = useSitemap(rest.options?.page?.fallback);
3790
+ const [, activeTopItem] = useActiveRoute(topItems);
3791
+ const { internetBankUrl } = useSWRResource(projectSettings.PORTAL_DATA || 'portal-data', {}, 'portal-resources');
3765
3792
  return (jsx(BlockWrapper, { tag: "header", className: style('pt-3xl px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", officesLink: officesLink, defaultLocation: defaultLocation })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }) }));
3766
3793
  });
3767
3794
 
@@ -4437,7 +4464,7 @@
4437
4464
  const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit) : null] })) : null;
4438
4465
  const renderValueBlock = (title, value = 0) => (jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre", children: [jsx(Text, { font: "font-light", size: "text-l", children: title }), jsxs(Text, { size: "text-h6", color: "text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
4439
4466
 
4440
- const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isInsetTitle: false, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
4467
+ const PictureText = JSX(({ className, padding, headlineVersion = 'M', align = 'text-center', sum, monthLimit, imageOptions, ...rest }) => (jsx(BlockWrapper, { className: className, padding: "p-0", ...rest, children: jsx(BaseProductTile, { className: "h-full", defaultPadding: "p-6xl", padding: padding, headlineVersion: headlineVersion, align: align, isFullWidthTitle: false, imageOptions: { directionRight: false, imageAlign: 'center', ...imageOptions }, ...rest, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
4441
4468
 
4442
4469
  const GOLDEN_RATIO = 1.618;
4443
4470
  const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border', className), ...rest, children: [jsx(Headline, { className: "max-w-[600px]", title: title, description: description, headlineVersion: "L", align: "text-left", isEmbedded: true }), jsx("figure", { className: "m-0 mt-xl min-w-[80%]", children: renderShimmer() })] })));
@@ -4718,6 +4745,8 @@
4718
4745
  const getIconSizeStyle = (size) => (size === 'normal' ? 'h-24 w-24' : 'h-16 w-16');
4719
4746
  const getIconTextStyle = (version) => version === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
4720
4747
 
4748
+ const StickyBottomMenu = JSX(() => jsx("div", {})); // DO not remove "<div></div>". Required to pass tests. With "null" it's falling.
4749
+
4721
4750
  const DEFAULT_GAP = 14;
4722
4751
  /*
4723
4752
  Horizontal padding used on a container above SwipeListControl.
@@ -5051,6 +5080,7 @@
5051
5080
  SafeDepositRental,
5052
5081
  StepsBlock,
5053
5082
  SwipeListControlBlock,
5083
+ StickyBottomMenu,
5054
5084
  Tabs,
5055
5085
  TariffsTable,
5056
5086
  TextBlock,
@@ -5259,15 +5289,15 @@
5259
5289
  parent: data,
5260
5290
  };
5261
5291
  useBlockRouterProvider();
5262
- return (jsxs("div", { children: [jsxs("section", { className: style('relative @container', pageStyle, className), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5292
+ return (jsxs("div", { children: [jsxs("section", { className: style('relative @container', pageStyle, className), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container @lg:grid @lg:grid-cols-12 @lg:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, {}), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5263
5293
  });
5264
5294
  ContentPage.childrenTypes = [];
5265
- ContentPage.slots = () => ['header', 'footer'];
5295
+ ContentPage.slots = () => ['header', 'footer', 'StickyBottomMenu'];
5266
5296
  function renderLikeControl() {
5267
5297
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5268
5298
  }
5269
5299
 
5270
- const packageVersion = "0.13.9";
5300
+ const packageVersion = "0.13.10";
5271
5301
 
5272
5302
  exports.Blocks = Blocks;
5273
5303
  exports.ContentPage = ContentPage;