@redneckz/wildless-cms-uni-blocks 0.13.13 → 0.13.15

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 (193) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +17 -7
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  5. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  6. package/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  7. package/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  8. package/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  9. package/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  10. package/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  11. package/bundle/hooks/useSWRResource.d.ts +7 -1
  12. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  13. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  14. package/dist/components/ContentPage/normalizeBlock.mobile.js +2 -2
  15. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  16. package/dist/components/Footer/Footer.js +4 -2
  17. package/dist/components/Footer/Footer.js.map +1 -1
  18. package/dist/components/Footer/Footer.mobile.js +3 -3
  19. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  20. package/dist/components/Header/Header.js +1 -1
  21. package/dist/components/Header/Header.js.map +1 -1
  22. package/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  23. package/dist/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  24. package/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  25. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  26. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  27. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  28. package/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  29. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  30. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  31. package/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  32. package/dist/components/StickyBottomMenu/RenderItem.js +11 -7
  33. package/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  34. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  35. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  36. package/dist/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  37. package/dist/components/StickyBottomMenu/TopItemMobile.js +1 -6
  38. package/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  39. package/dist/components/StickyBottomMenu/renderMenuItems.js +1 -1
  40. package/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  41. package/dist/hooks/useSWRResource.d.ts +7 -1
  42. package/dist/hooks/useSWRResource.js +8 -2
  43. package/dist/hooks/useSWRResource.js.map +1 -1
  44. package/dist/services/sitemap/useSitemap.js +1 -1
  45. package/dist/services/sitemap/useSitemap.js.map +1 -1
  46. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  47. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  48. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  49. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  50. package/lib/components/ContentPage/normalizeBlock.mobile.js +2 -2
  51. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
  52. package/lib/components/Footer/Footer.js +4 -2
  53. package/lib/components/Footer/Footer.js.map +1 -1
  54. package/lib/components/Footer/Footer.mobile.js +3 -3
  55. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  56. package/lib/components/Header/Header.js +1 -1
  57. package/lib/components/Header/Header.js.map +1 -1
  58. package/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  59. package/lib/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  60. package/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  61. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  62. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  63. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  64. package/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  65. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  66. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  67. package/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  68. package/lib/components/StickyBottomMenu/RenderItem.js +11 -7
  69. package/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  70. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  71. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  72. package/lib/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  73. package/lib/components/StickyBottomMenu/TopItemMobile.js +1 -6
  74. package/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  75. package/lib/components/StickyBottomMenu/renderMenuItems.js +1 -1
  76. package/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  77. package/lib/hooks/useSWRResource.d.ts +7 -1
  78. package/lib/hooks/useSWRResource.js +8 -2
  79. package/lib/hooks/useSWRResource.js.map +1 -1
  80. package/lib/services/sitemap/useSitemap.js +1 -1
  81. package/lib/services/sitemap/useSitemap.js.map +1 -1
  82. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  83. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  84. package/mobile/bundle/bundle.umd.js +124 -111
  85. package/mobile/bundle/bundle.umd.min.js +1 -1
  86. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  87. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  88. package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  89. package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  90. package/mobile/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  91. package/mobile/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  92. package/mobile/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  93. package/mobile/bundle/hooks/useSWRResource.d.ts +7 -1
  94. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  95. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  96. package/mobile/dist/components/ContentPage/normalizeBlock.js +2 -2
  97. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
  98. package/mobile/dist/components/Footer/Footer.js +3 -3
  99. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  100. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  101. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  102. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  103. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  104. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  105. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  106. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  107. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  108. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  109. package/mobile/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  110. package/mobile/dist/components/StickyBottomMenu/RenderItem.js +11 -7
  111. package/mobile/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  112. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  113. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  114. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  115. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js +1 -6
  116. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  117. package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js +1 -1
  118. package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  119. package/mobile/dist/hooks/useSWRResource.d.ts +7 -1
  120. package/mobile/dist/hooks/useSWRResource.js +8 -2
  121. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  122. package/mobile/dist/services/sitemap/useSitemap.js +1 -1
  123. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
  124. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  125. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  126. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  127. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  128. package/mobile/lib/components/ContentPage/normalizeBlock.js +2 -2
  129. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
  130. package/mobile/lib/components/Footer/Footer.js +3 -3
  131. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  132. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  133. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  134. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  135. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  136. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  137. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  138. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  139. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  140. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  141. package/mobile/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  142. package/mobile/lib/components/StickyBottomMenu/RenderItem.js +11 -7
  143. package/mobile/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  144. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  145. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  146. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  147. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js +1 -6
  148. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  149. package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js +1 -1
  150. package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  151. package/mobile/lib/hooks/useSWRResource.d.ts +7 -1
  152. package/mobile/lib/hooks/useSWRResource.js +8 -2
  153. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  154. package/mobile/lib/services/sitemap/useSitemap.js +1 -1
  155. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
  156. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  157. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  158. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +6 -3
  159. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +40 -32
  160. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +3 -0
  161. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
  162. package/mobile/src/components/ContentPage/normalizeBlock.ts +7 -2
  163. package/mobile/src/components/Footer/Footer.tsx +3 -3
  164. package/mobile/src/components/StickyBottomMenu/ActiveSubMenu.tsx +3 -2
  165. package/mobile/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +8 -5
  166. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +27 -15
  167. package/mobile/src/components/StickyBottomMenu/RenderItem.tsx +14 -11
  168. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +1 -2
  169. package/mobile/src/components/StickyBottomMenu/TopItemMobile.tsx +12 -24
  170. package/mobile/src/components/StickyBottomMenu/renderMenuItems.tsx +1 -1
  171. package/mobile/src/hooks/useSWRResource.ts +19 -6
  172. package/mobile/src/services/sitemap/useSitemap.ts +1 -1
  173. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +6 -2
  174. package/package.json +1 -1
  175. package/src/components/ApplicationForm/ApplicationForm.example.json +6 -3
  176. package/src/components/ApplicationForm/ApplicationFormContent.ts +40 -32
  177. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +3 -0
  178. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
  179. package/src/components/ContentPage/normalizeBlock.mobile.ts +7 -2
  180. package/src/components/Footer/Footer.mobile.tsx +3 -3
  181. package/src/components/Footer/Footer.tsx +4 -5
  182. package/src/components/Header/Header.tsx +1 -2
  183. package/src/components/StickyBottomMenu/ActiveSubMenu.tsx +3 -2
  184. package/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +8 -5
  185. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +27 -15
  186. package/src/components/StickyBottomMenu/RenderItem.tsx +14 -11
  187. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +1 -2
  188. package/src/components/StickyBottomMenu/TopItemMobile.tsx +12 -24
  189. package/src/components/StickyBottomMenu/renderMenuItems.tsx +1 -1
  190. package/src/hooks/useSWRResource.ts +19 -6
  191. package/src/icons/IconName.ts +2 -2
  192. package/src/services/sitemap/useSitemap.ts +1 -1
  193. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +6 -2
@@ -1,8 +1,9 @@
1
1
  import type { TopMenuItemProps } from '../../services/sitemap/SitemapData';
2
+ import { PreventableEvent } from '../../ui-kit/PreventableEvent';
2
3
  interface TopItemProps {
3
4
  item: TopMenuItemProps;
4
- i: number;
5
5
  isActive: boolean;
6
+ onClick: (ev?: PreventableEvent) => void;
6
7
  }
7
- export declare const TopItemMobile: ({ item, i, isActive }: TopItemProps) => JSX.Element;
8
+ export declare const TopItemMobile: ({ item, isActive, onClick }: TopItemProps) => JSX.Element;
8
9
  export {};
@@ -1,9 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { style } from '../../utils/style.js';
3
- import { useLink } from '../../hooks/useLink.js';
4
- export const TopItemMobile = ({ item, i, isActive }) => {
5
- const link = useLink();
6
- const { href, target, onClick } = link(item);
7
- return (_jsxs("a", { href: href, target: target, onClick: onClick, className: "relative", "aria-label": item.text, children: [_jsx("span", { className: style('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? (_jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }, String(i)));
8
- };
3
+ export const TopItemMobile = ({ item, isActive, onClick }) => (_jsxs("button", { type: "button", onClick: onClick, children: [_jsx("span", { className: style('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? (_jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
9
4
  //# sourceMappingURL=TopItemMobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopItemMobile.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/TopItemMobile.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK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CAAC,CAAC,CACV,cAAK,SAAS,EAAC,+FAA+F,GAAG,CAClH,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
3
3
  import { RenderItem } from './RenderItem.js';
4
- export const renderMenuItems = (menuItems, onClick) => (_jsx(BlockWrapper, { className: "sticky bottom-0 left-0 right-0 bg-transparent z-[100]", padding: "p-0", children: _jsx("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => (_jsx(RenderItem, { item: _, idx: i, onClick: onClick }))) }) }));
4
+ export const renderMenuItems = (menuItems, onClick) => (_jsx(BlockWrapper, { className: "sticky bottom-0 left-0 right-0 bg-transparent z-[100]", padding: "p-0", children: _jsx("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => (_jsx(RenderItem, { item: _, onClick: onClick }, String(i)))) }) }));
5
5
  //# sourceMappingURL=renderMenuItems.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderMenuItems.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/renderMenuItems.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAA0B,EAAE,OAAoB,EAAE,EAAE,CAAC,CACnF,KAAC,YAAY,IAAC,SAAS,EAAC,uDAAuD,EAAC,OAAO,EAAC,KAAK,YAC3F,cAAK,SAAS,EAAC,iEAAiE,YAC7E,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACvB,KAAC,UAAU,IAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,GAAI,CAClD,CAAC,GACE,GACO,CAChB,CAAC"}
1
+ {"version":3,"file":"renderMenuItems.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/renderMenuItems.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAA0B,EAAE,OAAoB,EAAE,EAAE,CAAC,CACnF,KAAC,YAAY,IAAC,SAAS,EAAC,uDAAuD,EAAC,OAAO,EAAC,KAAK,YAC3F,cAAK,SAAS,EAAC,iEAAiE,YAC7E,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACvB,KAAC,UAAU,IAAC,IAAI,EAAE,CAAC,EAAkB,OAAO,EAAE,OAAO,IAA3B,MAAM,CAAC,CAAC,CAAC,CAAsB,CAC1D,CAAC,GACE,GACO,CAChB,CAAC"}
@@ -1,2 +1,8 @@
1
1
  import type { Fallback } from '../model/Fallback';
2
- export declare function useSWRResource<Data>(filename: string | null | undefined, fallback?: Fallback, folderName?: string): Data;
2
+ interface SWRResourceOptions {
3
+ fallback?: Fallback;
4
+ folderName?: string;
5
+ setBasePath?: boolean;
6
+ }
7
+ export declare function useSWRResource<Data>(filename: string | null | undefined, options?: SWRResourceOptions): Data;
8
+ export {};
@@ -1,9 +1,15 @@
1
1
  import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
+ import { projectSettings } from '../ProjectSettings.js';
2
3
  import { fetchJSONUnsafe } from '../utils/fetchJSON.js';
4
+ import { joinPath } from '../utils/url.js';
3
5
  const EMPTY_VALUE = {};
4
6
  const DEFAULT_FOLDER_NAME = 'wcms-resources';
5
- export function useSWRResource(filename, fallback = EMPTY_VALUE, folderName = DEFAULT_FOLDER_NAME) {
6
- const { data } = useAsyncData(filename ? `/${folderName}/${filename}.json` : null, fetchJSONUnsafe, { fallback });
7
+ export function useSWRResource(filename, options = {}) {
8
+ const { fallback = EMPTY_VALUE, folderName = DEFAULT_FOLDER_NAME, setBasePath = false } = options;
9
+ const path = joinPath(setBasePath ? projectSettings.BASE_PATH : '', folderName, `${filename}.json`);
10
+ const { data } = useAsyncData(filename ? path : null, fetchJSONUnsafe, {
11
+ fallback,
12
+ });
7
13
  return data || EMPTY_VALUE;
8
14
  }
9
15
  //# sourceMappingURL=useSWRResource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSWRResource.js","sourceRoot":"","sources":["../../src/hooks/useSWRResource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAE7C,MAAM,UAAU,cAAc,CAC5B,QAAmC,EACnC,WAAqB,WAAW,EAChC,aAAqB,mBAAmB;IAExC,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAC3B,QAAQ,CAAC,CAAC,CAAC,IAAI,UAAU,IAAI,QAAQ,OAAO,CAAC,CAAC,CAAC,IAAI,EACnD,eAAe,EACf,EAAE,QAAQ,EAAE,CACb,CAAC;IAEF,OAAO,IAAI,IAAK,WAAoB,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"useSWRResource.js","sourceRoot":"","sources":["../../src/hooks/useSWRResource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAQ7C,MAAM,UAAU,cAAc,CAC5B,QAAmC,EACnC,UAA8B,EAAE;IAEhC,MAAM,EAAE,QAAQ,GAAG,WAAW,EAAE,UAAU,GAAG,mBAAmB,EAAE,WAAW,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IAElG,MAAM,IAAI,GAAG,QAAQ,CACnB,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAC5C,UAAU,EACV,GAAG,QAAQ,OAAO,CACnB,CAAC;IAEF,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAA2B,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,eAAe,EAAE;QAC/F,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,IAAI,IAAK,WAAoB,CAAC;AACvC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { useSWRResource } from '../../hooks/useSWRResource.js';
2
2
  import { projectSettings } from '../../ProjectSettings.js';
3
- export const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
3
+ export const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', { fallback });
4
4
  //# sourceMappingURL=useSitemap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSitemap.js","sourceRoot":"","sources":["../../../src/services/sitemap/useSitemap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAmB,EAAE,EAAE,CAChD,cAAc,CAAc,eAAe,CAAC,OAAO,IAAI,SAAS,EAAE,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"useSitemap.js","sourceRoot":"","sources":["../../../src/services/sitemap/useSitemap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAmB,EAAE,EAAE,CAChD,cAAc,CAAc,eAAe,CAAC,OAAO,IAAI,SAAS,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC"}
@@ -41,7 +41,11 @@ export const useSwipeListScroll = ({ itemCount, onVisibleIndicesChange, }) => {
41
41
  }, [itemCount, canScrollRight]);
42
42
  const scrollTo = useCallback((idx) => {
43
43
  if (containerRef?.current) {
44
- containerRef.current.children[idx]?.scrollIntoView();
44
+ containerRef.current.children[idx]?.scrollIntoView({
45
+ behavior: 'smooth',
46
+ block: 'nearest',
47
+ inline: 'center',
48
+ });
45
49
  }
46
50
  }, [containerRef]);
47
51
  return [
@@ -1 +1 @@
1
- {"version":3,"file":"useSwipeListScroll.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/useSwipeListScroll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAiBhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAwB,EACxD,SAAS,EACT,sBAAsB,GACD,EAAkE,EAAE;IACzF,MAAM,YAAY,GAAG,MAAM,CAAW,IAAI,CAAC,CAAC;IAE5C,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAW,EAAE,CAAC,CA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AC,YAAY,CAAC,OAAO,CAAC,CAAC;SACrC;IACH,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAEhC,MAAM,QAAQ,GAAG,WAAW,CAC1B,CAAC,GAAW,EAAE,EAAE;QACd,IAAI,YAAY,EAAE,OAAO,EAAE;YACzB,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;gBACjD,QAAQ,EAAE,QAAQ;gBAClB,KAAK,EAAE,SAAS;gBAChB,MAAM,EAAE,QAAQ;aACjB,CAAC,CAAC;SACJ;IACH,CAAC,EACD,CAAC,YAAY,CAAC,CACf,CAAC;IAEF,OAAO;QACL,YAAY;QACZ;YACE,UAAU;YACV,WAAW;YACX,QAAQ;YACR,aAAa;YACb,cAAc;YACd,mBAAmB,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC;YACzC,0BAA0B;SAC3B;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1146,8 +1146,12 @@
1146
1146
 
1147
1147
  const EMPTY_VALUE$1 = {};
1148
1148
  const DEFAULT_FOLDER_NAME = 'wcms-resources';
1149
- function useSWRResource(filename, fallback = EMPTY_VALUE$1, folderName = DEFAULT_FOLDER_NAME) {
1150
- const { data } = useAsyncData(filename ? `/${folderName}/${filename}.json` : null, fetchJSONUnsafe, { fallback });
1149
+ function useSWRResource(filename, options = {}) {
1150
+ const { fallback = EMPTY_VALUE$1, folderName = DEFAULT_FOLDER_NAME, setBasePath = false } = options;
1151
+ const path = joinPath(setBasePath ? projectSettings.BASE_PATH : '', folderName, `${filename}.json`);
1152
+ const { data } = useAsyncData(filename ? path : null, fetchJSONUnsafe, {
1153
+ fallback,
1154
+ });
1151
1155
  return data || EMPTY_VALUE$1;
1152
1156
  }
1153
1157
 
@@ -1549,7 +1553,11 @@
1549
1553
  }, [itemCount, canScrollRight]);
1550
1554
  const scrollTo = useCallback((idx) => {
1551
1555
  if (containerRef?.current) {
1552
- containerRef.current.children[idx]?.scrollIntoView();
1556
+ containerRef.current.children[idx]?.scrollIntoView({
1557
+ behavior: 'smooth',
1558
+ block: 'nearest',
1559
+ inline: 'center',
1560
+ });
1553
1561
  }
1554
1562
  }, [containerRef]);
1555
1563
  return [
@@ -2988,7 +2996,7 @@
2988
2996
  return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
2989
2997
  };
2990
2998
 
2991
- const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
2999
+ const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', { fallback });
2992
3000
 
2993
3001
  const linkListStyles = '';
2994
3002
 
@@ -3083,7 +3091,7 @@
3083
3091
  const Footer = JSX(({ className, ...rest }) => {
3084
3092
  const fallback = rest.options?.page?.fallback;
3085
3093
  const { topItems } = useSitemap(fallback);
3086
- const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
3094
+ const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', { fallback });
3087
3095
  return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, buttonSize: "stretched", children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3088
3096
  });
3089
3097
  const renderButton = ({ href = '/' }, i) => {
@@ -3718,6 +3726,16 @@
3718
3726
  return (jsx("div", { className: style(iconAreaSize, containerStyle, 'z-10 mr-s flex justify-center content-center'), children: jsx("span", { className: "flex self-center text-h4 text-secondary-text group-data-secondary:text-white", children: checkCanRenderIcon(step?.icon) ? (jsx(Img, { image: { ...step.icon, iconVersion: step.icon?.iconVersion || iconVersion }, width: iconSize, height: iconSize })) : (jsx("span", { children: i + 1 })) }) }));
3719
3727
  };
3720
3728
 
3729
+ const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
3730
+
3731
+ const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
3732
+
3733
+ function useActiveRoute(items = []) {
3734
+ const router = useRouter();
3735
+ const activeIndex = items.findIndex(isTopItemActive(router));
3736
+ return [activeIndex, items[activeIndex]];
3737
+ }
3738
+
3721
3739
  const useLatestEvent = (eventBus, type, initialEvent) => {
3722
3740
  const [latestEvent, setLatestEvent] = useState(initialEvent || null);
3723
3741
  useEffect(() => eventBus.subscribe(type, (_) => setLatestEvent(_)), [eventBus, type]);
@@ -3762,6 +3780,79 @@
3762
3780
 
3763
3781
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
3764
3782
 
3783
+ const Dialog = JSX(({ className, head, children, onClose }) => {
3784
+ const { close } = useDialogManager();
3785
+ const handleClose = useCallback(() => {
3786
+ close();
3787
+ onClose && onClose();
3788
+ }, [onClose]);
3789
+ 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 })] }));
3790
+ });
3791
+
3792
+ const REGIONS_URL = '/api/v1/regions';
3793
+ function useRegions() {
3794
+ const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
3795
+ return data || [];
3796
+ }
3797
+
3798
+ const groupBy = (list, keyGetter) => {
3799
+ const result = new Map();
3800
+ for (const item of list) {
3801
+ const key = keyGetter(item);
3802
+ const group = result.get(key) || [];
3803
+ result.set(key, [...group, item]);
3804
+ }
3805
+ return result;
3806
+ };
3807
+
3808
+ const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
3809
+ const ForeignOffice = JSX(({ icon, ...rest }) => {
3810
+ const link = useLink();
3811
+ const { text, target, href, onClick } = link(rest);
3812
+ return (jsxs("div", { className: "flex gap-s", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })) : null] }));
3813
+ });
3814
+
3815
+ const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3816
+ onChangeLocation && onChangeLocation(region);
3817
+ }, children: region.name || '' }) }, region.id));
3818
+
3819
+ const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
3820
+
3821
+ const SearchBar$1 = JSX(({ className, searchTerm, onSearch }) => {
3822
+ return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-m w-full peer text-l text-black border border-solid rounded-md box-border
3823
+ outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
3824
+ });
3825
+
3826
+ const SEARCH_TERM_MIN_LENGTH = 3;
3827
+ const LocationDialog = JSX(() => {
3828
+ const { defaultLocation, foreignOffices } = useSitemap();
3829
+ const [currentLocation, selectCurrentLocation] = useLocation(defaultLocation);
3830
+ const [query, setQuery] = useState('');
3831
+ const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
3832
+ const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
3833
+ const { close } = useDialogManager();
3834
+ const handleChangeLocation = useCallback((region) => {
3835
+ selectCurrentLocation(region);
3836
+ close();
3837
+ }, []);
3838
+ 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$1, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3839
+ .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
3840
+ .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-2 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
3841
+ });
3842
+ const regionFirstLetter = (region) => region.name?.charAt(0) || '';
3843
+ const cleanUpRegions = (regions) => regions.map((region) => ({
3844
+ ...region,
3845
+ name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
3846
+ }));
3847
+
3848
+ const useLocationDialog = () => {
3849
+ const { open, close } = useDialogManager();
3850
+ return {
3851
+ open: (options = {}) => open(jsx(LocationDialog, {}), options),
3852
+ close,
3853
+ };
3854
+ };
3855
+
3765
3856
  const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus }) => {
3766
3857
  const handleChange = useCallback((ev) => {
3767
3858
  onChange && onChange(ev.target?.value || '');
@@ -3855,15 +3946,6 @@
3855
3946
  };
3856
3947
  const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => fetchJSON(joinPath(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
3857
3948
 
3858
- const Dialog = JSX(({ className, head, children, onClose }) => {
3859
- const { close } = useDialogManager();
3860
- const handleClose = useCallback(() => {
3861
- close();
3862
- onClose && onClose();
3863
- }, [onClose]);
3864
- 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 })] }));
3865
- });
3866
-
3867
3949
  const Sitemap = JSX(({ className, topItems }) => {
3868
3950
  const link = useLink({ isRemote: true });
3869
3951
  return (jsx("div", { className: style('flex items-start justify-between', className), children: topItems?.map(link).map(renderColumn) }));
@@ -3917,7 +3999,7 @@
3917
3999
  };
3918
4000
 
3919
4001
  const MIN_QUERY_LEN = 3;
3920
- const SearchBar$1 = JSX(({ className }) => {
4002
+ const SearchBar = JSX(({ className }) => {
3921
4003
  const [value, setValue] = useState('');
3922
4004
  const resetQueryOnDialogClose = useCallback(() => setValue(''), []);
3923
4005
  const { open } = useSearchDialog();
@@ -3931,129 +4013,60 @@
3931
4013
  });
3932
4014
  const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
3933
4015
 
3934
- const REGIONS_URL = '/api/v1/regions';
3935
- function useRegions() {
3936
- const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
3937
- return data || [];
3938
- }
3939
-
3940
- const groupBy = (list, keyGetter) => {
3941
- const result = new Map();
3942
- for (const item of list) {
3943
- const key = keyGetter(item);
3944
- const group = result.get(key) || [];
3945
- result.set(key, [...group, item]);
3946
- }
3947
- return result;
3948
- };
3949
-
3950
- const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
3951
- const ForeignOffice = JSX(({ icon, ...rest }) => {
3952
- const link = useLink();
3953
- const { text, target, href, onClick } = link(rest);
3954
- return (jsxs("div", { className: "flex gap-s", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })) : null] }));
3955
- });
3956
-
3957
- const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3958
- onChangeLocation && onChangeLocation(region);
3959
- }, children: region.name || '' }) }, region.id));
3960
-
3961
- const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
3962
-
3963
- const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
3964
- return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-m w-full peer text-l text-black border border-solid rounded-md box-border
3965
- outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
3966
- });
3967
-
3968
- const SEARCH_TERM_MIN_LENGTH = 3;
3969
- const LocationDialog = JSX(() => {
3970
- const { defaultLocation, foreignOffices } = useSitemap();
3971
- const [currentLocation, selectCurrentLocation] = useLocation(defaultLocation);
3972
- const [query, setQuery] = useState('');
3973
- const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
3974
- const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
3975
- const { close } = useDialogManager();
3976
- const handleChangeLocation = useCallback((region) => {
3977
- selectCurrentLocation(region);
3978
- close();
3979
- }, []);
3980
- 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
3981
- .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
3982
- .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-2 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
3983
- });
3984
- const regionFirstLetter = (region) => region.name?.charAt(0) || '';
3985
- const cleanUpRegions = (regions) => regions.map((region) => ({
3986
- ...region,
3987
- name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
3988
- }));
3989
-
3990
- const useLocationDialog = () => {
3991
- const { open, close } = useDialogManager();
3992
- return {
3993
- open: (options = {}) => open(jsx(LocationDialog, {}), options),
3994
- close,
3995
- };
3996
- };
3997
-
3998
- const TopItemMobile = ({ item, i, isActive }) => {
3999
- const link = useLink();
4000
- const { href, target, onClick } = link(item);
4001
- return (jsxs("a", { href: href, target: target, onClick: onClick, className: "relative", "aria-label": item.text, children: [jsx("span", { className: style('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }, String(i)));
4002
- };
4003
-
4004
- const ActiveSubMenuItem = JSX(({ item, i }) => {
4005
- const link = useLink();
4016
+ const ActiveSubMenuItem = JSX(({ item, basePath }) => {
4017
+ const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
4018
+ const link = useLink({ isRemote: isAnotherPortal, basePath });
4006
4019
  const { href, target, onClick } = link(item);
4007
- return (jsxs("a", { className: "py-3 text-h5 font-light flex justify-between cursor-pointer", href: href, target: target, onClick: onClick, children: [item.text, jsx(Img, { image: { icon: 'ChevronLeftIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-secondary-text rotate-180 opacity-30" })] }, `subItems-${String(i)}`));
4020
+ return (jsxs("a", { className: "py-3 text-h5 font-light flex justify-between cursor-pointer", href: href, target: target, onClick: onClick, children: [item.text, jsx(Img, { image: { icon: 'ChevronLeftIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-secondary-text rotate-180 opacity-30" })] }));
4008
4021
  });
4009
4022
 
4010
- const ActiveSubMenu = JSX(({ activeMenuSubItems }) => {
4011
- return activeMenuSubItems ? (jsx("div", { className: "mb-5", children: activeMenuSubItems.map((_, i) => (jsx(ActiveSubMenuItem, { item: _, i: i }))) })) : null;
4023
+ const ActiveSubMenu = JSX(({ activeMenuSubItems, basePath }) => {
4024
+ return activeMenuSubItems ? (jsx("div", { className: "mb-5", children: activeMenuSubItems.map((_, i) => (jsx(ActiveSubMenuItem, { item: _, basePath: basePath }, String(i)))) })) : null;
4012
4025
  });
4013
4026
 
4014
- const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
4015
-
4016
- const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
4017
-
4018
- function useActiveRoute(items = []) {
4019
- const router = useRouter();
4020
- const activeIndex = items.findIndex(isTopItemActive(router));
4021
- return [activeIndex, items[activeIndex]];
4022
- }
4027
+ const TopItemMobile = ({ item, isActive, onClick }) => (jsxs("button", { type: "button", onClick: onClick, children: [jsx("span", { className: style('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
4023
4028
 
4024
4029
  const BurgerMenuDialog = JSX((props) => {
4025
4030
  const { topItems, officesLink, defaultLocation } = useSitemap(props.options?.page?.fallback);
4026
4031
  const [location] = useLocation(defaultLocation);
4027
4032
  const locationDialog = useLocationDialog();
4028
4033
  const openLocationDialog = useCallback(() => locationDialog.open(), []);
4029
- const itemCount = Array.isArray(topItems) ? topItems.length : 0;
4030
4034
  const [containerRef, scroll] = useSwipeListScroll({
4031
- itemCount,
4035
+ itemCount: topItems?.length ?? 0,
4032
4036
  });
4033
- const [activeTopItemIndex, activeRoute] = useActiveRoute(topItems);
4037
+ const [activeIndex] = useActiveRoute(topItems);
4038
+ const [activeTopItemIndex, setActiveTopItemIndex] = useState(activeIndex);
4039
+ const activeRoute = useMemo(() => topItems?.[activeTopItemIndex], [topItems, activeTopItemIndex]);
4034
4040
  const activeMenuSubItems = activeRoute?.items || [];
4041
+ useEffect(() => {
4042
+ setActiveTopItemIndex(activeIndex);
4043
+ }, [activeIndex]);
4035
4044
  useEffect(() => {
4036
4045
  if (activeTopItemIndex > 0) {
4037
4046
  scroll.scrollTo(activeTopItemIndex);
4038
4047
  }
4039
4048
  }, [activeTopItemIndex, scroll]);
4040
- return (jsx(Dialog, { head: jsx("div", { className: "flex items-center", children: jsx(Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: jsxs("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [jsx("div", { className: "w-full mb-3", children: jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => (jsx(TopItemMobile, { item: item, i: i, isActive: activeTopItemIndex === i }))) }) }), jsxs("div", { className: "relative grow overflow-auto", children: [jsx(ActiveSubMenu, { activeMenuSubItems: activeMenuSubItems }), jsx(SearchBar$1, { className: "grow mb-5" }), renderOfficeLink(officesLink), jsxs("div", { className: "flex items-center text-s cursor-pointer", onClick: openLocationDialog, children: [jsx(Img, { image: { icon: 'GeolocationIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsxs("div", { className: "flex flex-col items-start", children: [jsx(Text, { size: "text-h5", children: location.name }), jsx(Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] })] })] }) }));
4049
+ const handleTopItemClick = useCallback((idx) => setActiveTopItemIndex(idx), []);
4050
+ return (jsx(Dialog, { head: jsx("div", { className: "flex items-center", children: jsx(Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: jsxs("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [jsx("div", { className: "w-full mb-3", children: jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => (jsx(TopItemMobile, { item: item, isActive: activeTopItemIndex === i, onClick: () => handleTopItemClick(i) }, String(i)))) }) }), jsxs("div", { className: "relative grow overflow-auto", children: [jsx(ActiveSubMenu, { activeMenuSubItems: activeMenuSubItems, basePath: activeRoute?.href }), jsx(SearchBar, { className: "grow mb-5" }), renderOfficeLink(officesLink), jsxs("div", { className: "flex items-center text-s cursor-pointer", onClick: openLocationDialog, children: [jsx(Img, { image: { icon: 'GeolocationIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsxs("div", { className: "flex flex-col items-start", children: [jsx(Text, { size: "text-h5", children: location.name }), jsx(Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] })] })] }) }));
4041
4051
  });
4042
4052
  const renderOfficeLink = (officesLink) => officesLink ? (jsxs("a", { className: "flex items-center mb-3", href: officesLink, rel: "noopener noreferrer", "aria-label": "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", children: [jsx(Img, { image: { icon: 'MapOpenedIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsx("span", { children: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })] })) : null;
4043
4053
 
4044
- const RenderItem = JSX(({ item, idx, onClick }) => {
4045
- const link = useLink();
4054
+ const RenderItem = JSX(({ item, onClick }) => {
4055
+ const isAnotherPortal = projectSettings?.BASE_PATH
4056
+ ? !item.url?.startsWith(projectSettings?.BASE_PATH)
4057
+ : true;
4058
+ const link = useLink({ isRemote: isAnotherPortal });
4046
4059
  const { href, target, onClick: handleClick, } = link({
4047
4060
  href: item.url,
4048
4061
  target: '_self',
4049
4062
  });
4050
4063
  return (jsxs("a", { className: style(item.isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-[10px] cursor-pointer`), onClick: () => (item?.icon?.icon === 'BurgerIcon' && onClick ? onClick() : handleClick()), href: href, target: target, children: [jsx(Img, { className: "w-6 h-6", image: {
4051
- icon: item.icon?.icon,
4052
- iconVersion: item.icon?.iconVersion || 'black',
4053
- } }), item.title] }, `menuItems-${String(idx)}`));
4064
+ icon: item?.icon?.icon,
4065
+ iconVersion: item?.icon?.iconVersion || 'black',
4066
+ } }), item.title] }));
4054
4067
  });
4055
4068
 
4056
- const renderMenuItems = (menuItems, onClick) => (jsx(BlockWrapper, { className: "sticky bottom-0 left-0 right-0 bg-transparent z-[100]", padding: "p-0", children: jsx("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => (jsx(RenderItem, { item: _, idx: i, onClick: onClick }))) }) }));
4069
+ const renderMenuItems = (menuItems, onClick) => (jsx(BlockWrapper, { className: "sticky bottom-0 left-0 right-0 bg-transparent z-[100]", padding: "p-0", children: jsx("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => (jsx(RenderItem, { item: _, onClick: onClick }, String(i)))) }) }));
4057
4070
 
4058
4071
  function useList(initialList = []) {
4059
4072
  const [list, setList] = useState(initialList);
@@ -4114,7 +4127,7 @@
4114
4127
  };
4115
4128
 
4116
4129
  const StickyBottomMenu = JSX(({ ...rest }) => {
4117
- const { menuItems = [] } = useSWRResource(projectSettings.STICKY_MOBILE_MENU || 'sticky-mobile-menu', rest.options?.page?.fallback, 'portal-resources');
4130
+ const { menuItems = [] } = useSWRResource(projectSettings.STICKY_MOBILE_MENU || 'sticky-mobile-menu', { fallback: rest.options?.page?.fallback, folderName: 'portal-resources', setBasePath: true });
4118
4131
  const [isBurgerMenuDialogOpen, { toggle }] = useBurgerMenuDialog();
4119
4132
  const burgerMenu = {
4120
4133
  title: 'Меню',
@@ -4502,7 +4515,7 @@
4502
4515
 
4503
4516
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
4504
4517
 
4505
- const packageVersion = "0.13.13";
4518
+ const packageVersion = "0.13.15";
4506
4519
 
4507
4520
  exports.Blocks = Blocks;
4508
4521
  exports.ContentPage = ContentPage;