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

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 (173) 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/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  6. package/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  7. package/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  8. package/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  9. package/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  10. package/bundle/hooks/useSWRResource.d.ts +7 -1
  11. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  12. package/dist/components/Footer/Footer.js +4 -2
  13. package/dist/components/Footer/Footer.js.map +1 -1
  14. package/dist/components/Footer/Footer.mobile.js +3 -3
  15. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  16. package/dist/components/Header/Header.js +1 -1
  17. package/dist/components/Header/Header.js.map +1 -1
  18. package/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  19. package/dist/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  20. package/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  21. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  22. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  23. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  24. package/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  25. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  26. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  27. package/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  28. package/dist/components/StickyBottomMenu/RenderItem.js +11 -7
  29. package/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  30. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  31. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  32. package/dist/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  33. package/dist/components/StickyBottomMenu/TopItemMobile.js +1 -6
  34. package/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  35. package/dist/components/StickyBottomMenu/renderMenuItems.js +1 -1
  36. package/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  37. package/dist/hooks/useSWRResource.d.ts +7 -1
  38. package/dist/hooks/useSWRResource.js +8 -2
  39. package/dist/hooks/useSWRResource.js.map +1 -1
  40. package/dist/services/sitemap/useSitemap.js +1 -1
  41. package/dist/services/sitemap/useSitemap.js.map +1 -1
  42. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  43. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  44. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  45. package/lib/components/Footer/Footer.js +4 -2
  46. package/lib/components/Footer/Footer.js.map +1 -1
  47. package/lib/components/Footer/Footer.mobile.js +3 -3
  48. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  49. package/lib/components/Header/Header.js +1 -1
  50. package/lib/components/Header/Header.js.map +1 -1
  51. package/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  52. package/lib/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  53. package/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  54. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  55. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  56. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  57. package/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  58. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  59. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  60. package/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  61. package/lib/components/StickyBottomMenu/RenderItem.js +11 -7
  62. package/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  63. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
  64. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  65. package/lib/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  66. package/lib/components/StickyBottomMenu/TopItemMobile.js +1 -6
  67. package/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  68. package/lib/components/StickyBottomMenu/renderMenuItems.js +1 -1
  69. package/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  70. package/lib/hooks/useSWRResource.d.ts +7 -1
  71. package/lib/hooks/useSWRResource.js +8 -2
  72. package/lib/hooks/useSWRResource.js.map +1 -1
  73. package/lib/services/sitemap/useSitemap.js +1 -1
  74. package/lib/services/sitemap/useSitemap.js.map +1 -1
  75. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  76. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  77. package/mobile/bundle/bundle.umd.js +124 -111
  78. package/mobile/bundle/bundle.umd.min.js +1 -1
  79. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  80. package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  81. package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  82. package/mobile/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  83. package/mobile/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  84. package/mobile/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  85. package/mobile/bundle/hooks/useSWRResource.d.ts +7 -1
  86. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  87. package/mobile/dist/components/Footer/Footer.js +3 -3
  88. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  89. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  90. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  91. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  92. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  93. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  94. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  95. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  96. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  97. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  98. package/mobile/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  99. package/mobile/dist/components/StickyBottomMenu/RenderItem.js +11 -7
  100. package/mobile/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
  101. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  102. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  103. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  104. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js +1 -6
  105. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  106. package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js +1 -1
  107. package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  108. package/mobile/dist/hooks/useSWRResource.d.ts +7 -1
  109. package/mobile/dist/hooks/useSWRResource.js +8 -2
  110. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  111. package/mobile/dist/services/sitemap/useSitemap.js +1 -1
  112. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
  113. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  114. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  115. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
  116. package/mobile/lib/components/Footer/Footer.js +3 -3
  117. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  118. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
  119. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
  120. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
  121. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
  122. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
  123. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
  124. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  125. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
  126. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  127. package/mobile/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -3
  128. package/mobile/lib/components/StickyBottomMenu/RenderItem.js +11 -7
  129. package/mobile/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
  130. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
  131. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  132. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
  133. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js +1 -6
  134. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
  135. package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js +1 -1
  136. package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
  137. package/mobile/lib/hooks/useSWRResource.d.ts +7 -1
  138. package/mobile/lib/hooks/useSWRResource.js +8 -2
  139. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  140. package/mobile/lib/services/sitemap/useSitemap.js +1 -1
  141. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
  142. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
  143. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  144. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +6 -3
  145. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +40 -32
  146. package/mobile/src/components/Footer/Footer.tsx +3 -3
  147. package/mobile/src/components/StickyBottomMenu/ActiveSubMenu.tsx +3 -2
  148. package/mobile/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +8 -5
  149. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +27 -15
  150. package/mobile/src/components/StickyBottomMenu/RenderItem.tsx +14 -11
  151. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +1 -2
  152. package/mobile/src/components/StickyBottomMenu/TopItemMobile.tsx +12 -24
  153. package/mobile/src/components/StickyBottomMenu/renderMenuItems.tsx +1 -1
  154. package/mobile/src/hooks/useSWRResource.ts +19 -6
  155. package/mobile/src/services/sitemap/useSitemap.ts +1 -1
  156. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +6 -2
  157. package/package.json +1 -1
  158. package/src/components/ApplicationForm/ApplicationForm.example.json +6 -3
  159. package/src/components/ApplicationForm/ApplicationFormContent.ts +40 -32
  160. package/src/components/Footer/Footer.mobile.tsx +3 -3
  161. package/src/components/Footer/Footer.tsx +4 -5
  162. package/src/components/Header/Header.tsx +1 -2
  163. package/src/components/StickyBottomMenu/ActiveSubMenu.tsx +3 -2
  164. package/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +8 -5
  165. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +27 -15
  166. package/src/components/StickyBottomMenu/RenderItem.tsx +14 -11
  167. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +1 -2
  168. package/src/components/StickyBottomMenu/TopItemMobile.tsx +12 -24
  169. package/src/components/StickyBottomMenu/renderMenuItems.tsx +1 -1
  170. package/src/hooks/useSWRResource.ts +19 -6
  171. package/src/icons/IconName.ts +2 -2
  172. package/src/services/sitemap/useSitemap.ts +1 -1
  173. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +6 -2
@@ -2,11 +2,10 @@ import type { ButtonVersion } from '../../model/ButtonVersion';
2
2
  import type { TitleProps } from '../../model/HeadlineType';
3
3
  import type { UniBlockContent } from '../../model/JSXBlock';
4
4
  import type { LinkProps } from '../../model/LinkProps';
5
- import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
6
5
  /**
7
6
  * @title Кнопка
8
7
  */
9
- export interface SubmitButtonProps extends ButtonContent {
8
+ export interface SubmitButtonProps {
10
9
  /** @title Текст */
11
10
  text?: string;
12
11
  version?: ButtonVersion;
@@ -16,51 +15,55 @@ export declare type CommonApplicationFormProps = TitleProps & {
16
15
  /** @title Условия передачи данных */
17
16
  link?: LinkProps;
18
17
  };
19
- export declare type ApplicationFormBlockDef = BusinessCardFormParamsDef | WedFormParamsDef | DepositFormParamsDef | CreditFormParamsDef | AcquiringFormParamsDef | GrantSupportFormParamsDef;
20
18
  /**
21
19
  * @title Бизнес-карта
22
- * @default {"formType": "ApplicationFormBusinessCard"}
23
20
  */
24
- export declare type BusinessCardFormParamsDef = CommonApplicationFormProps & {
21
+ export declare type BusinessCardFormParamsDef = TitleProps & CommonApplicationFormProps & {
22
+ /** @default ApplicationFormBusinessCard */
25
23
  formType: 'ApplicationFormBusinessCard';
26
24
  };
27
25
  /**
28
26
  * @title ВЭД
29
- * @default {"formType": "ApplicationFormWed"}
30
27
  */
31
- export declare type WedFormParamsDef = CommonApplicationFormProps & {
28
+ export declare type WedFormParamsDef = TitleProps & CommonApplicationFormProps & {
29
+ /** @default ApplicationFormWed */
32
30
  formType: 'ApplicationFormWed';
33
31
  };
34
32
  /**
35
33
  * @title Депозит
36
- * @default {"formType": "ApplicationFormDeposit"}
37
34
  */
38
- export declare type DepositFormParamsDef = CommonApplicationFormProps & {
35
+ export declare type DepositFormParamsDef = TitleProps & CommonApplicationFormProps & {
36
+ /** @default ApplicationFormDeposit */
39
37
  formType: 'ApplicationFormDeposit';
40
38
  };
41
39
  /**
42
40
  * @title Кредит
43
- * @default {"formType": "ApplicationFormCredit"}
44
41
  */
45
- export declare type CreditFormParamsDef = CommonApplicationFormProps & {
42
+ export declare type CreditFormParamsDef = TitleProps & CommonApplicationFormProps & {
43
+ /** @default ApplicationFormCredit */
46
44
  formType: 'ApplicationFormCredit';
47
45
  };
48
46
  /**
49
47
  * @title Эквайринг
50
- * @default {"formType": "ApplicationFormAcquiring"}
51
48
  */
52
- export declare type AcquiringFormParamsDef = CommonApplicationFormProps & {
49
+ export declare type AcquiringFormParamsDef = TitleProps & CommonApplicationFormProps & {
50
+ /** @default ApplicationFormAcquiring */
53
51
  formType: 'ApplicationFormAcquiring';
54
52
  };
55
53
  /**
56
54
  * @title Грантовая поддержка
57
- * @default {"formType": "ApplicationFormGrantSupport"}
58
55
  */
59
- export declare type GrantSupportFormParamsDef = CommonApplicationFormProps & {
56
+ export declare type GrantSupportFormParamsDef = TitleProps & {
57
+ /** @default ApplicationFormGrantSupport */
60
58
  formType: 'ApplicationFormGrantSupport';
59
+ button?: SubmitButtonProps;
61
60
  /** @title Адрес справочника */
62
61
  sourceBookDir?: string;
63
62
  };
63
+ /**
64
+ * @title Настройки формы
65
+ */
66
+ export declare type ApplicationFormBlockDef = BusinessCardFormParamsDef | WedFormParamsDef | DepositFormParamsDef | CreditFormParamsDef | AcquiringFormParamsDef | GrantSupportFormParamsDef;
64
67
  /**
65
68
  * @title Форма заявки
66
69
  */
@@ -1,6 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  interface ActiveSubMenuProps {
3
3
  activeMenuSubItems?: LinkProps[];
4
+ basePath?: string;
4
5
  }
5
6
  export declare const ActiveSubMenu: import("@redneckz/uni-jsx").UNIComponent<ActiveSubMenuProps, any, any>;
6
7
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  interface ActiveSubMenuItemProps {
3
3
  item: LinkProps;
4
- i: number;
4
+ basePath?: string;
5
5
  }
6
6
  export declare const ActiveSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<ActiveSubMenuItemProps, any, any>;
7
7
  export {};
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { RefObject } from 'react';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  interface BurgerMenuDialogProps extends UniBlockProps {
4
4
  containerRef?: RefObject<HTMLDivElement>;
5
5
  }
@@ -1,8 +1,6 @@
1
1
  import type { MenuItemProps } from './StickyBottomMenuProps';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
- interface RenderItemProps extends UniBlockProps {
2
+ interface RenderItemProps {
4
3
  item: MenuItemProps;
5
- idx: number;
6
4
  onClick?: () => void;
7
5
  }
8
6
  export declare const RenderItem: import("@redneckz/uni-jsx").UNIComponent<RenderItemProps, any, any>;
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import type { TopMenuItemProps } from '../../services/sitemap/SitemapData';
3
+ import { PreventableEvent } from '../../ui-kit/PreventableEvent';
3
4
  interface TopItemProps {
4
5
  item: TopMenuItemProps;
5
- i: number;
6
6
  isActive: boolean;
7
+ onClick: (ev?: PreventableEvent) => void;
7
8
  }
8
- export declare const TopItemMobile: ({ item, i, isActive }: TopItemProps) => JSX.Element;
9
+ export declare const TopItemMobile: ({ item, isActive, onClick }: TopItemProps) => JSX.Element;
9
10
  export {};
@@ -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 {};
@@ -2,11 +2,10 @@ import type { ButtonVersion } from '../../model/ButtonVersion';
2
2
  import type { TitleProps } from '../../model/HeadlineType';
3
3
  import type { UniBlockContent } from '../../model/JSXBlock';
4
4
  import type { LinkProps } from '../../model/LinkProps';
5
- import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
6
5
  /**
7
6
  * @title Кнопка
8
7
  */
9
- export interface SubmitButtonProps extends ButtonContent {
8
+ export interface SubmitButtonProps {
10
9
  /** @title Текст */
11
10
  text?: string;
12
11
  version?: ButtonVersion;
@@ -16,51 +15,55 @@ export declare type CommonApplicationFormProps = TitleProps & {
16
15
  /** @title Условия передачи данных */
17
16
  link?: LinkProps;
18
17
  };
19
- export declare type ApplicationFormBlockDef = BusinessCardFormParamsDef | WedFormParamsDef | DepositFormParamsDef | CreditFormParamsDef | AcquiringFormParamsDef | GrantSupportFormParamsDef;
20
18
  /**
21
19
  * @title Бизнес-карта
22
- * @default {"formType": "ApplicationFormBusinessCard"}
23
20
  */
24
- export declare type BusinessCardFormParamsDef = CommonApplicationFormProps & {
21
+ export declare type BusinessCardFormParamsDef = TitleProps & CommonApplicationFormProps & {
22
+ /** @default ApplicationFormBusinessCard */
25
23
  formType: 'ApplicationFormBusinessCard';
26
24
  };
27
25
  /**
28
26
  * @title ВЭД
29
- * @default {"formType": "ApplicationFormWed"}
30
27
  */
31
- export declare type WedFormParamsDef = CommonApplicationFormProps & {
28
+ export declare type WedFormParamsDef = TitleProps & CommonApplicationFormProps & {
29
+ /** @default ApplicationFormWed */
32
30
  formType: 'ApplicationFormWed';
33
31
  };
34
32
  /**
35
33
  * @title Депозит
36
- * @default {"formType": "ApplicationFormDeposit"}
37
34
  */
38
- export declare type DepositFormParamsDef = CommonApplicationFormProps & {
35
+ export declare type DepositFormParamsDef = TitleProps & CommonApplicationFormProps & {
36
+ /** @default ApplicationFormDeposit */
39
37
  formType: 'ApplicationFormDeposit';
40
38
  };
41
39
  /**
42
40
  * @title Кредит
43
- * @default {"formType": "ApplicationFormCredit"}
44
41
  */
45
- export declare type CreditFormParamsDef = CommonApplicationFormProps & {
42
+ export declare type CreditFormParamsDef = TitleProps & CommonApplicationFormProps & {
43
+ /** @default ApplicationFormCredit */
46
44
  formType: 'ApplicationFormCredit';
47
45
  };
48
46
  /**
49
47
  * @title Эквайринг
50
- * @default {"formType": "ApplicationFormAcquiring"}
51
48
  */
52
- export declare type AcquiringFormParamsDef = CommonApplicationFormProps & {
49
+ export declare type AcquiringFormParamsDef = TitleProps & CommonApplicationFormProps & {
50
+ /** @default ApplicationFormAcquiring */
53
51
  formType: 'ApplicationFormAcquiring';
54
52
  };
55
53
  /**
56
54
  * @title Грантовая поддержка
57
- * @default {"formType": "ApplicationFormGrantSupport"}
58
55
  */
59
- export declare type GrantSupportFormParamsDef = CommonApplicationFormProps & {
56
+ export declare type GrantSupportFormParamsDef = TitleProps & {
57
+ /** @default ApplicationFormGrantSupport */
60
58
  formType: 'ApplicationFormGrantSupport';
59
+ button?: SubmitButtonProps;
61
60
  /** @title Адрес справочника */
62
61
  sourceBookDir?: string;
63
62
  };
63
+ /**
64
+ * @title Настройки формы
65
+ */
66
+ export declare type ApplicationFormBlockDef = BusinessCardFormParamsDef | WedFormParamsDef | DepositFormParamsDef | CreditFormParamsDef | AcquiringFormParamsDef | GrantSupportFormParamsDef;
64
67
  /**
65
68
  * @title Форма заявки
66
69
  */
@@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Footer = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const useSWRResource_1 = require("../../hooks/useSWRResource");
6
5
  const ProjectSettings_1 = require("../../ProjectSettings");
6
+ const useSWRResource_1 = require("../../hooks/useSWRResource");
7
7
  const useSitemap_1 = require("../../services/sitemap/useSitemap");
8
8
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
9
9
  const Button_1 = require("../../ui-kit/Button/Button");
@@ -11,14 +11,14 @@ const LinkList_1 = require("../../ui-kit/LinkList/LinkList");
11
11
  const Text_1 = require("../../ui-kit/Text/Text");
12
12
  const RollupItem_1 = require("../RollupItem/RollupItem");
13
13
  const Contacts_1 = require("./Contacts");
14
- const findIconByHref_1 = require("./findIconByHref");
15
14
  const HorizontalNavigation_1 = require("./HorizontalNavigation");
16
15
  const SocialMedia_1 = require("./SocialMedia");
17
16
  const TextInformation_1 = require("./TextInformation");
17
+ const findIconByHref_1 = require("./findIconByHref");
18
18
  exports.Footer = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
19
19
  const fallback = rest.options?.page?.fallback;
20
20
  const { topItems } = (0, useSitemap_1.useSitemap)(fallback);
21
- const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer', fallback);
21
+ const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer', { fallback });
22
22
  return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, ...rest, children: [(0, jsx_runtime_1.jsx)("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(RollupItem_1.RollupItem, { label: item?.text, labelIcon: item?.icon, children: (0, jsx_runtime_1.jsx)(LinkList_1.LinkList, { items: item.items }) }, String(i)))) }), (0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts }), (0, jsx_runtime_1.jsxs)("div", { className: "mt-xl", children: [(0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "mb-xl", media: socialMedia, buttonSize: "stretched", children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(Text_1.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" }), (0, jsx_runtime_1.jsx)("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
23
23
  });
24
24
  const renderButton = ({ href = '/' }, i) => {
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAE5D,2DAAwD;AACxD,kEAA+D;AAC/D,4DAAyD;AACzD,uDAAoD;AACpD,6DAA0D;AAC1D,iDAA8C;AAC9C,yDAAsD;AACtD,yCAAsC;AACtC,qDAAkD;AAGlD,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEvC,QAAA,MAAM,GAAG,IAAA,aAAG,EAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAChE,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;IAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,uBAAU,EAAC,QAAQ,CAAC,CAAC;IAC1C,MAAM,EACJ,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,yBAAyB,EACzB,SAAS,GACV,GAAG,IAAA,+BAAc,EAAkB,iCA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uBAAC,mBAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,GAAI,IADhB,MAAM,CAAC,CAAC,CAAC,CAEb,CACd,CAAC,GACE,EACN,uBAAC,mBAAQ,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,GAAI,EACzD,iCAAK,SAAS,EAAC,OAAO,aACpB,uBAAC,yBAAW,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,WAAW,EAAE,UAAU,EAAC,WAAW,2DAE3D,EACd,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,oIAE1D,EACP,gCAAK,SAAS,EAAC,OAAO,YAAE,UAAU,EAAE,GAAG,CAAC,YAAY,CAAC,GAAO,IACxD,EACN,uBAAC,2CAAoB,IACnB,SAAS,EAAC,oCAAoC,EAC9C,KAAK,EAAE,yBAAyB,EAChC,KAAK,EAAE,kBAAkB,GACzB,EACF,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,GAAI,IACxB,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,EAAE,IAAI,GAAG,GAAG,EAAmB,EAAE,CAAS,EAAE,EAAE;IAClE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,+BAAc,EAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,CACL,uBAAC,eAAM,IAEL,SAAS,EAAC,cAAc,EACxB,IAAI,EAAE,KAAK,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,IAAI,EACV,MAAM,EAAC,QAAQ,IALV,MAAM,CAAC,CAAC,CAAC,CAMd,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  interface ActiveSubMenuProps {
3
3
  activeMenuSubItems?: LinkProps[];
4
+ basePath?: string;
4
5
  }
5
6
  export declare const ActiveSubMenu: import("@redneckz/uni-jsx").UNIComponent<ActiveSubMenuProps, any, any>;
6
7
  export {};
@@ -3,7 +3,7 @@ exports.ActiveSubMenu = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const ActiveSubMenuItem_1 = require("./ActiveSubMenuItem");
6
- exports.ActiveSubMenu = (0, uni_jsx_1.JSX)(({ activeMenuSubItems }) => {
7
- return activeMenuSubItems ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-5", children: activeMenuSubItems.map((_, i) => ((0, jsx_runtime_1.jsx)(ActiveSubMenuItem_1.ActiveSubMenuItem, { item: _, i: i }))) })) : null;
6
+ exports.ActiveSubMenu = (0, uni_jsx_1.JSX)(({ activeMenuSubItems, basePath }) => {
7
+ return activeMenuSubItems ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-5", children: activeMenuSubItems.map((_, i) => ((0, jsx_runtime_1.jsx)(ActiveSubMenuItem_1.ActiveSubMenuItem, { item: _, basePath: basePath }, String(i)))) })) : null;
8
8
  });
9
9
  //# sourceMappingURL=ActiveSubMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActiveSubMenu.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/ActiveSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2DAAwD;AAK3C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC9E,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAC1B,gCAAK,SAAS,EAAC,MAAM,YAClB,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAChC,uBAAC,qCAAiB,IAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAI,CACrC,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ActiveSubMenu.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/ActiveSubMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2DAAwD;AAM3C,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxF,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAC1B,gCAAK,SAAS,EAAC,MAAM,YAClB,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAChC,uBAAC,qCAAiB,IAAC,IAAI,EAAE,CAAC,EAAkB,QAAQ,EAAE,QAAQ,IAA7B,MAAM,CAAC,CAAC,CAAC,CAAwB,CACnE,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  interface ActiveSubMenuItemProps {
3
3
  item: LinkProps;
4
- i: number;
4
+ basePath?: string;
5
5
  }
6
6
  export declare const ActiveSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<ActiveSubMenuItemProps, any, any>;
7
7
  export {};
@@ -2,11 +2,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ActiveSubMenuItem = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const ProjectSettings_1 = require("../../ProjectSettings");
5
6
  const useLink_1 = require("../../hooks/useLink");
6
7
  const Img_1 = require("../../ui-kit/Img/Img");
7
- exports.ActiveSubMenuItem = (0, uni_jsx_1.JSX)(({ item, i }) => {
8
- const link = (0, useLink_1.useLink)();
8
+ exports.ActiveSubMenuItem = (0, uni_jsx_1.JSX)(({ item, basePath }) => {
9
+ const isAnotherPortal = ProjectSettings_1.projectSettings.BASE_PATH && basePath ? !ProjectSettings_1.projectSettings.BASE_PATH.startsWith(basePath) : false;
10
+ const link = (0, useLink_1.useLink)({ isRemote: isAnotherPortal, basePath });
9
11
  const { href, target, onClick } = link(item);
10
- return ((0, jsx_runtime_1.jsxs)("a", { className: "py-3 text-h5 font-light flex justify-between cursor-pointer", href: href, target: target, onClick: onClick, children: [item.text, (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'ChevronLeftIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-secondary-text rotate-180 opacity-30" })] }, `subItems-${String(i)}`));
12
+ return ((0, jsx_runtime_1.jsxs)("a", { className: "py-3 text-h5 font-light flex justify-between cursor-pointer", href: href, target: target, onClick: onClick, children: [item.text, (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'ChevronLeftIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-secondary-text rotate-180 opacity-30" })] }));
11
13
  });
12
14
  //# sourceMappingURL=ActiveSubMenuItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActiveSubMenuItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/ActiveSubMenuItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iDAA8C;AAC9C,8CAA2C;AAO9B,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAyB,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE;IAC3E,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,+BAEE,SAAS,EAAC,6DAA6D,EACvE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,aAEf,IAAI,CAAC,IAAI,EACV,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EACxD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAC,2CAA2C,GACrD,KAZG,YAAY,MAAM,CAAC,CAAC,CAAC,EAAE,CAa1B,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ActiveSubMenuItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/ActiveSubMenuItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,iDAA8C;AAE9C,8CAA2C;AAO9B,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAyB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClF,MAAM,eAAe,GACnB,iCAAe,CAAC,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,iCAAe,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElG,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9D,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,+BACE,SAAS,EAAC,6DAA6D,EACvE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,aAEf,IAAI,CAAC,IAAI,EACV,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EACxD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAC,2CAA2C,GACrD,IACA,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { UniBlockProps } from '../../model/JSXBlock';
2
1
  import type { RefObject } from 'react';
2
+ import type { UniBlockProps } from '../../model/JSXBlock';
3
3
  interface BurgerMenuDialogProps extends UniBlockProps {
4
4
  containerRef?: RefObject<HTMLDivElement>;
5
5
  }
@@ -2,37 +2,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.BurgerMenuDialog = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const useLocation_1 = require("../../hooks/useLocation");
6
- const Img_1 = require("../../ui-kit/Img/Img");
7
- const SearchBar_1 = require("../../ui-kit/SearchBar/SearchBar");
8
- const Text_1 = require("../../ui-kit/Text/Text");
9
5
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const useActiveRoute_1 = require("../../hooks/useActiveRoute");
7
+ const useLocation_1 = require("../../hooks/useLocation");
8
+ const useSitemap_1 = require("../../services/sitemap/useSitemap");
9
+ const Dialog_1 = require("../../ui-kit/DialogManager/Dialog");
10
10
  const Heading_1 = require("../../ui-kit/Heading/Heading");
11
+ const Img_1 = require("../../ui-kit/Img/Img");
11
12
  const useLocationDialog_1 = require("../../ui-kit/LocationDialog/useLocationDialog");
13
+ const SearchBar_1 = require("../../ui-kit/SearchBar/SearchBar");
12
14
  const SwipeListContainer_1 = require("../../ui-kit/SwipeListControl/SwipeListContainer");
13
15
  const useSwipeListScroll_1 = require("../../ui-kit/SwipeListControl/useSwipeListScroll");
14
- const useSitemap_1 = require("../../services/sitemap/useSitemap");
15
- const TopItemMobile_1 = require("./TopItemMobile");
16
+ const Text_1 = require("../../ui-kit/Text/Text");
16
17
  const ActiveSubMenu_1 = require("./ActiveSubMenu");
17
- const Dialog_1 = require("../../ui-kit/DialogManager/Dialog");
18
- const useActiveRoute_1 = require("../../hooks/useActiveRoute");
18
+ const TopItemMobile_1 = require("./TopItemMobile");
19
19
  exports.BurgerMenuDialog = (0, uni_jsx_1.JSX)((props) => {
20
20
  const { topItems, officesLink, defaultLocation } = (0, useSitemap_1.useSitemap)(props.options?.page?.fallback);
21
21
  const [location] = (0, useLocation_1.useLocation)(defaultLocation);
22
22
  const locationDialog = (0, useLocationDialog_1.useLocationDialog)();
23
23
  const openLocationDialog = (0, hooks_1.useCallback)(() => locationDialog.open(), []);
24
- const itemCount = Array.isArray(topItems) ? topItems.length : 0;
25
24
  const [containerRef, scroll] = (0, useSwipeListScroll_1.useSwipeListScroll)({
26
- itemCount,
25
+ itemCount: topItems?.length ?? 0,
27
26
  });
28
- const [activeTopItemIndex, activeRoute] = (0, useActiveRoute_1.useActiveRoute)(topItems);
27
+ const [activeIndex] = (0, useActiveRoute_1.useActiveRoute)(topItems);
28
+ const [activeTopItemIndex, setActiveTopItemIndex] = (0, hooks_1.useState)(activeIndex);
29
+ const activeRoute = (0, hooks_1.useMemo)(() => topItems?.[activeTopItemIndex], [topItems, activeTopItemIndex]);
29
30
  const activeMenuSubItems = activeRoute?.items || [];
31
+ (0, hooks_1.useEffect)(() => {
32
+ setActiveTopItemIndex(activeIndex);
33
+ }, [activeIndex]);
30
34
  (0, hooks_1.useEffect)(() => {
31
35
  if (activeTopItemIndex > 0) {
32
36
  scroll.scrollTo(activeTopItemIndex);
33
37
  }
34
38
  }, [activeTopItemIndex, scroll]);
35
- return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { head: (0, jsx_runtime_1.jsx)("div", { className: "flex items-center", children: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-full mb-3", children: (0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(TopItemMobile_1.TopItemMobile, { item: item, i: i, isActive: activeTopItemIndex === i }))) }) }), (0, jsx_runtime_1.jsxs)("div", { className: "relative grow overflow-auto", children: [(0, jsx_runtime_1.jsx)(ActiveSubMenu_1.ActiveSubMenu, { activeMenuSubItems: activeMenuSubItems }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { className: "grow mb-5" }), renderOfficeLink(officesLink), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-s cursor-pointer", onClick: openLocationDialog, children: [(0, jsx_runtime_1.jsx)(Img_1.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" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h5", children: location.name }), (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] })] })] }) }));
39
+ const handleTopItemClick = (0, hooks_1.useCallback)((idx) => setActiveTopItemIndex(idx), []);
40
+ return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { head: (0, jsx_runtime_1.jsx)("div", { className: "flex items-center", children: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [(0, jsx_runtime_1.jsx)("div", { className: "w-full mb-3", children: (0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => ((0, jsx_runtime_1.jsx)(TopItemMobile_1.TopItemMobile, { item: item, isActive: activeTopItemIndex === i, onClick: () => handleTopItemClick(i) }, String(i)))) }) }), (0, jsx_runtime_1.jsxs)("div", { className: "relative grow overflow-auto", children: [(0, jsx_runtime_1.jsx)(ActiveSubMenu_1.ActiveSubMenu, { activeMenuSubItems: activeMenuSubItems, basePath: activeRoute?.href }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { className: "grow mb-5" }), renderOfficeLink(officesLink), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center text-s cursor-pointer", onClick: openLocationDialog, children: [(0, jsx_runtime_1.jsx)(Img_1.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" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start", children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { size: "text-h5", children: location.name }), (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] })] })] }) }));
36
41
  });
37
42
  const renderOfficeLink = (officesLink) => officesLink ? ((0, jsx_runtime_1.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: [(0, jsx_runtime_1.jsx)(Img_1.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" }), (0, jsx_runtime_1.jsx)("span", { children: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })] })) : null;
38
43
  //# sourceMappingURL=BurgerMenuDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BurgerMenuDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/BurgerMenuDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yDAAsD;AACtD,8CAA2C;AAC3C,gEAA6D;AAC7D,iDAA8C;AAC9C,uDAAqE;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E,GAC9E,EACF,4IAA8B,IAC5B,CACL,CAAC,CAAC,CAAC,IAAI,CAAC"}
@@ -1,8 +1,6 @@
1
1
  import type { MenuItemProps } from './StickyBottomMenuProps';
2
- import type { UniBlockProps } from '../../model/JSXBlock';
3
- interface RenderItemProps extends UniBlockProps {
2
+ interface RenderItemProps {
4
3
  item: MenuItemProps;
5
- idx: number;
6
4
  onClick?: () => void;
7
5
  }
8
6
  export declare const RenderItem: import("@redneckz/uni-jsx").UNIComponent<RenderItemProps, any, any>;
@@ -2,18 +2,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.RenderItem = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const style_1 = require("../../utils/style");
6
- const Img_1 = require("../../ui-kit/Img/Img");
5
+ const ProjectSettings_1 = require("../../ProjectSettings");
7
6
  const useLink_1 = require("../../hooks/useLink");
8
- exports.RenderItem = (0, uni_jsx_1.JSX)(({ item, idx, onClick }) => {
9
- const link = (0, useLink_1.useLink)();
7
+ const Img_1 = require("../../ui-kit/Img/Img");
8
+ const style_1 = require("../../utils/style");
9
+ exports.RenderItem = (0, uni_jsx_1.JSX)(({ item, onClick }) => {
10
+ const isAnotherPortal = ProjectSettings_1.projectSettings?.BASE_PATH
11
+ ? !item.url?.startsWith(ProjectSettings_1.projectSettings?.BASE_PATH)
12
+ : true;
13
+ const link = (0, useLink_1.useLink)({ isRemote: isAnotherPortal });
10
14
  const { href, target, onClick: handleClick, } = link({
11
15
  href: item.url,
12
16
  target: '_self',
13
17
  });
14
18
  return ((0, jsx_runtime_1.jsxs)("a", { className: (0, style_1.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: [(0, jsx_runtime_1.jsx)(Img_1.Img, { className: "w-6 h-6", image: {
15
- icon: item.icon?.icon,
16
- iconVersion: item.icon?.iconVersion || 'black',
17
- } }), item.title] }, `menuItems-${String(idx)}`));
19
+ icon: item?.icon?.icon,
20
+ iconVersion: item?.icon?.iconVersion || 'black',
21
+ } }), item.title] }));
18
22
  });
19
23
  //# sourceMappingURL=RenderItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RenderItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/RenderItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,6CAA0C;AAC1C,8CAA2C;AAC3C,iDAA8C;AAQjC,QAAA,UAAU,GAAG,IAAA,aAAG,EAAkB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE;IACxE,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EAAE,WAAW,GACrB,GAAG,IAAI,CAAC;QACP,IAAI,EAAE,IAAI,CAAC,GAAG;QACd,MAAM,EAAE,OAAO;KAChB,CAAC,CAAC;IAEH,OAAO,CACL,+BAEE,SAAS,EAAE,IAAA,aAAK,EACd,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,EACzD,+EAA+E,CAChF,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,KAAK,YAAY,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,EACzF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,aAEd,uBAAC,SAAG,IACF,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE;oBACL,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI;oBACrB,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,WAAW,IAAI,OAAO;iBAC/C,GACD,EACD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oBACtB,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,IAAI,OAAO;iBAChD,GACD,EACD,IAAI,CAAC,KAAK,IACT,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -9,7 +9,7 @@ const BurgerMenuDialog_1 = require("./BurgerMenuDialog");
9
9
  const renderMenuItems_1 = require("./renderMenuItems");
10
10
  const useBurgerMenuDialog_1 = require("./useBurgerMenuDialog");
11
11
  exports.StickyBottomMenu = (0, uni_jsx_1.JSX)(({ ...rest }) => {
12
- const { menuItems = [] } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.STICKY_MOBILE_MENU || 'sticky-mobile-menu', rest.options?.page?.fallback, 'portal-resources');
12
+ const { menuItems = [] } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.STICKY_MOBILE_MENU || 'sticky-mobile-menu', { fallback: rest.options?.page?.fallback, folderName: 'portal-resources', setBasePath: true });
13
13
  const [isBurgerMenuDialogOpen, { toggle }] = (0, useBurgerMenuDialog_1.useBurgerMenuDialog)();
14
14
  const burgerMenu = {
15
15
  title: 'Меню',
@@ -1 +1 @@
1
- {"version":3,"file":"StickyBottomMenu.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,2DAAwD;AACxD,+DAA4D;AAC5D,yDAAsD;AAEtD,uDAAoD;AACpD,+DAA4D;AAE/C,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAA,+BAAc,EACvC,iCAAe,CAAC,kBAAkB,IAAI,oBAAoB,EAC1D,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAC5B,kBAAkB,CACnB,CAAC;IAEF,MAAM,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,IAAA,yCAAmB,GAAE,CAAC;IAEnE,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM;QACb,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;SACxD;QACD,QAAQ,EAAE,sBAAsB;KACjC,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnD,MAAM,mBAAmB,GAAG,IAAA,eAAO,EACjC,GAAG,EAAE,CACH;QACE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;QAChC,UAAU;QACV,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;KACX,EACtB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CACnC,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,UAAU,aACtB,IAAA,iCAAe,EAAC,mBAAmB,EAAE,MAAM,CAAC,EAC5C,sBAAsB,CAAC,CAAC,CAAC,uBAAC,mCAAgB,KAAG,CAAC,CAAC,CAAC,IAAI,IACjD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"StickyBottomMenu.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenu.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,2DAAwD;AACxD,+DAA4D;AAC5D,yDAAsD;AAEtD,uDAAoD;AACpD,+DAA4D;AAE/C,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzE,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAA,+BAAc,EACvC,iCAAe,CAAC,kBAAkB,IAAI,oBAAoB,EAC1D,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,EAAE,CAC9F,CAAC;IAEF,MAAM,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,IAAA,yCAAmB,GAAE,CAAC;IAEnE,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,MAAM;QACb,IAAI,EAAE;YACJ,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO;SACxD;QACD,QAAQ,EAAE,sBAAsB;KACjC,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnD,MAAM,mBAAmB,GAAG,IAAA,eAAO,EACjC,GAAG,EAAE,CACH;QACE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;QAChC,UAAU;QACV,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;KACX,EACtB,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CACnC,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAC,UAAU,aACtB,IAAA,iCAAe,EAAC,mBAAmB,EAAE,MAAM,CAAC,EAC5C,sBAAsB,CAAC,CAAC,CAAC,uBAAC,mCAAgB,KAAG,CAAC,CAAC,CAAC,IAAI,IACjD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import type { TopMenuItemProps } from '../../services/sitemap/SitemapData';
3
+ import { PreventableEvent } from '../../ui-kit/PreventableEvent';
3
4
  interface TopItemProps {
4
5
  item: TopMenuItemProps;
5
- i: number;
6
6
  isActive: boolean;
7
+ onClick: (ev?: PreventableEvent) => void;
7
8
  }
8
- export declare const TopItemMobile: ({ item, i, isActive }: TopItemProps) => JSX.Element;
9
+ export declare const TopItemMobile: ({ item, isActive, onClick }: TopItemProps) => JSX.Element;
9
10
  export {};
@@ -2,11 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.TopItemMobile = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const style_1 = require("../../utils/style");
5
- const useLink_1 = require("../../hooks/useLink");
6
- const TopItemMobile = ({ item, i, isActive }) => {
7
- const link = (0, useLink_1.useLink)();
8
- const { href, target, onClick } = link(item);
9
- return ((0, jsx_runtime_1.jsxs)("a", { href: href, target: target, onClick: onClick, className: "relative", "aria-label": item.text, children: [(0, jsx_runtime_1.jsx)("span", { className: (0, style_1.style)('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }, String(i)));
10
- };
5
+ const TopItemMobile = ({ item, isActive, onClick }) => ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: (0, style_1.style)('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
11
6
  exports.TopItemMobile = TopItemMobile;
12
7
  //# sourceMappingURL=TopItemMobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopItemMobile.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/TopItemMobile.tsx"],"names":[],"mappings":";;;AACA,6CAA0C;AAC1C,iDAA8C;AAQvC,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAgB,EAAE,EAAE;IACnE,MAAM,IAAI,GAAG,IAAA,iBAAO,GAAE,CAAC;IACvB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAE7C,OAAO,CACL,+BAEE,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,UAAU,gBACR,IAAI,CAAC,IAAI,aAErB,iCAAM,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC,YAC7E,IAAI,CAAC,IAAI,GACL,EACN,QAAQ,CAAC,CAAC,CAAC,CACV,gCAAK,SAAS,EAAC,+FAA+F,GAAG,CAClH,CAAC,CAAC,CAAC,IAAI,KAZH,MAAM,CAAC,CAAC,CAAC,CAaZ,CACL,CAAC;AACJ,CAAC,CAAC;AArBW,QAAA,aAAa,iBAqBxB"}
1
+ {"version":3,"file":"TopItemMobile.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/TopItemMobile.tsx"],"names":[],"mappings":";;;AAEA,6CAA0C;AAQnC,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAgB,EAAE,EAAE,CAAC,CAC1E,oCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,aACpC,iCAAM,SAAS,EAAE,IAAA,aAAK,EAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC,YAC7E,IAAI,CAAC,IAAI,GACL,EACN,QAAQ,CAAC,CAAC,CAAC,CACV,gCAAK,SAAS,EAAC,+FAA+F,GAAG,CAClH,CAAC,CAAC,CAAC,IAAI,IACD,CACV,CAAC;AATW,QAAA,aAAa,iBASxB"}
@@ -3,6 +3,6 @@ exports.renderMenuItems = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
5
5
  const RenderItem_1 = require("./RenderItem");
6
- const renderMenuItems = (menuItems, onClick) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: "sticky bottom-0 left-0 right-0 bg-transparent z-[100]", padding: "p-0", children: (0, jsx_runtime_1.jsx)("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => ((0, jsx_runtime_1.jsx)(RenderItem_1.RenderItem, { item: _, idx: i, onClick: onClick }))) }) }));
6
+ const renderMenuItems = (menuItems, onClick) => ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: "sticky bottom-0 left-0 right-0 bg-transparent z-[100]", padding: "p-0", children: (0, jsx_runtime_1.jsx)("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: menuItems.map((_, i) => ((0, jsx_runtime_1.jsx)(RenderItem_1.RenderItem, { item: _, onClick: onClick }, String(i)))) }) }));
7
7
  exports.renderMenuItems = renderMenuItems;
8
8
  //# sourceMappingURL=renderMenuItems.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderMenuItems.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/renderMenuItems.tsx"],"names":[],"mappings":";;;AACA,4DAAyD;AACzD,6CAA0C;AAEnC,MAAM,eAAe,GAAG,CAAC,SAA0B,EAAE,OAAoB,EAAE,EAAE,CAAC,CACnF,uBAAC,2BAAY,IAAC,SAAS,EAAC,uDAAuD,EAAC,OAAO,EAAC,KAAK,YAC3F,gCAAK,SAAS,EAAC,iEAAiE,YAC7E,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACvB,uBAAC,uBAAU,IAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,GAAI,CAClD,CAAC,GACE,GACO,CAChB,CAAC;AARW,QAAA,eAAe,mBAQ1B"}
1
+ {"version":3,"file":"renderMenuItems.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/renderMenuItems.tsx"],"names":[],"mappings":";;;AACA,4DAAyD;AACzD,6CAA0C;AAEnC,MAAM,eAAe,GAAG,CAAC,SAA0B,EAAE,OAAoB,EAAE,EAAE,CAAC,CACnF,uBAAC,2BAAY,IAAC,SAAS,EAAC,uDAAuD,EAAC,OAAO,EAAC,KAAK,YAC3F,gCAAK,SAAS,EAAC,iEAAiE,YAC7E,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACvB,uBAAC,uBAAU,IAAC,IAAI,EAAE,CAAC,EAAkB,OAAO,EAAE,OAAO,IAA3B,MAAM,CAAC,CAAC,CAAC,CAAsB,CAC1D,CAAC,GACE,GACO,CAChB,CAAC;AARW,QAAA,eAAe,mBAQ1B"}
@@ -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,11 +1,17 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.useSWRResource = void 0;
3
3
  const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
4
+ const ProjectSettings_1 = require("../ProjectSettings");
4
5
  const fetchJSON_1 = require("../utils/fetchJSON");
6
+ const url_1 = require("../utils/url");
5
7
  const EMPTY_VALUE = {};
6
8
  const DEFAULT_FOLDER_NAME = 'wcms-resources';
7
- function useSWRResource(filename, fallback = EMPTY_VALUE, folderName = DEFAULT_FOLDER_NAME) {
8
- const { data } = (0, useAsyncData_1.useAsyncData)(filename ? `/${folderName}/${filename}.json` : null, fetchJSON_1.fetchJSONUnsafe, { fallback });
9
+ function useSWRResource(filename, options = {}) {
10
+ const { fallback = EMPTY_VALUE, folderName = DEFAULT_FOLDER_NAME, setBasePath = false } = options;
11
+ const path = (0, url_1.joinPath)(setBasePath ? ProjectSettings_1.projectSettings.BASE_PATH : '', folderName, `${filename}.json`);
12
+ const { data } = (0, useAsyncData_1.useAsyncData)(filename ? path : null, fetchJSON_1.fetchJSONUnsafe, {
13
+ fallback,
14
+ });
9
15
  return data || EMPTY_VALUE;
10
16
  }
11
17
  exports.useSWRResource = useSWRResource;
@@ -1 +1 @@
1
- {"version":3,"file":"useSWRResource.js","sourceRoot":"","sources":["../../src/hooks/useSWRResource.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AAExE,kDAAqD;AAErD,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAE7C,SAAgB,cAAc,CAC5B,QAAmC,EACnC,WAAqB,WAAW,EAChC,aAAqB,mBAAmB;IAExC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,QAAQ,CAAC,CAAC,CAAC,IAAI,UAAU,IAAI,QAAQ,OAAO,CAAC,CAAC,CAAC,IAAI,EACnD,2BAAe,EACf,EAAE,QAAQ,EAAE,CACb,CAAC;IAEF,OAAO,IAAI,IAAK,WAAoB,CAAC;AACvC,CAAC;AAZD,wCAYC"}
1
+ {"version":3,"file":"useSWRResource.js","sourceRoot":"","sources":["../../src/hooks/useSWRResource.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,wDAAqD;AAErD,kDAAqD;AACrD,sCAAwC;AAExC,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAQ7C,SAAgB,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,IAAA,cAAQ,EACnB,WAAW,CAAC,CAAC,CAAC,iCAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAC5C,UAAU,EACV,GAAG,QAAQ,OAAO,CACnB,CAAC;IAEF,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAA2B,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,2BAAe,EAAE;QAC/F,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,IAAI,IAAK,WAAoB,CAAC;AACvC,CAAC;AAjBD,wCAiBC"}
@@ -2,6 +2,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.useSitemap = void 0;
3
3
  const useSWRResource_1 = require("../../hooks/useSWRResource");
4
4
  const ProjectSettings_1 = require("../../ProjectSettings");
5
- const useSitemap = (fallback) => (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', fallback);
5
+ const useSitemap = (fallback) => (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.SITEMAP || 'sitemap', { fallback });
6
6
  exports.useSitemap = useSitemap;
7
7
  //# sourceMappingURL=useSitemap.js.map