@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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +17 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
- package/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
- package/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
- package/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -3
- package/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
- package/bundle/hooks/useSWRResource.d.ts +7 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.js +2 -2
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/dist/components/Footer/Footer.js +4 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +3 -3
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
- package/dist/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
- package/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
- package/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
- package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
- package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -3
- package/dist/components/StickyBottomMenu/RenderItem.js +11 -7
- package/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/dist/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
- package/dist/components/StickyBottomMenu/TopItemMobile.js +1 -6
- package/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
- package/dist/components/StickyBottomMenu/renderMenuItems.js +1 -1
- package/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
- package/dist/hooks/useSWRResource.d.ts +7 -1
- package/dist/hooks/useSWRResource.js +8 -2
- package/dist/hooks/useSWRResource.js.map +1 -1
- package/dist/services/sitemap/useSitemap.js +1 -1
- package/dist/services/sitemap/useSitemap.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
- package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.js +2 -2
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +1 -1
- package/lib/components/Footer/Footer.js +4 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +3 -3
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
- package/lib/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
- package/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
- package/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
- package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
- package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -3
- package/lib/components/StickyBottomMenu/RenderItem.js +11 -7
- package/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
- package/lib/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
- package/lib/components/StickyBottomMenu/TopItemMobile.js +1 -6
- package/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
- package/lib/components/StickyBottomMenu/renderMenuItems.js +1 -1
- package/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
- package/lib/hooks/useSWRResource.d.ts +7 -1
- package/lib/hooks/useSWRResource.js +8 -2
- package/lib/hooks/useSWRResource.js.map +1 -1
- package/lib/services/sitemap/useSitemap.js +1 -1
- package/lib/services/sitemap/useSitemap.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
- package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +124 -111
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
- package/mobile/bundle/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
- package/mobile/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
- package/mobile/bundle/components/StickyBottomMenu/RenderItem.d.ts +1 -3
- package/mobile/bundle/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
- package/mobile/bundle/hooks/useSWRResource.d.ts +7 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.js +2 -2
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +3 -3
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/RenderItem.d.ts +1 -3
- package/mobile/dist/components/StickyBottomMenu/RenderItem.js +11 -7
- package/mobile/dist/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
- package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js +1 -6
- package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
- package/mobile/dist/hooks/useSWRResource.d.ts +7 -1
- package/mobile/dist/hooks/useSWRResource.js +8 -2
- package/mobile/dist/hooks/useSWRResource.js.map +1 -1
- package/mobile/dist/services/sitemap/useSitemap.js +1 -1
- package/mobile/dist/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
- package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -15
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.js +2 -2
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +3 -3
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.d.ts +1 -0
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js +2 -2
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenu.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.d.ts +1 -1
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js +5 -3
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +17 -12
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/RenderItem.d.ts +1 -3
- package/mobile/lib/components/StickyBottomMenu/RenderItem.js +11 -7
- package/mobile/lib/components/StickyBottomMenu/RenderItem.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.d.ts +3 -2
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js +1 -6
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/renderMenuItems.js.map +1 -1
- package/mobile/lib/hooks/useSWRResource.d.ts +7 -1
- package/mobile/lib/hooks/useSWRResource.js +8 -2
- package/mobile/lib/hooks/useSWRResource.js.map +1 -1
- package/mobile/lib/services/sitemap/useSitemap.js +1 -1
- package/mobile/lib/services/sitemap/useSitemap.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +5 -1
- package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +6 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +40 -32
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +3 -0
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
- package/mobile/src/components/ContentPage/normalizeBlock.ts +7 -2
- package/mobile/src/components/Footer/Footer.tsx +3 -3
- package/mobile/src/components/StickyBottomMenu/ActiveSubMenu.tsx +3 -2
- package/mobile/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +8 -5
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +27 -15
- package/mobile/src/components/StickyBottomMenu/RenderItem.tsx +14 -11
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +1 -2
- package/mobile/src/components/StickyBottomMenu/TopItemMobile.tsx +12 -24
- package/mobile/src/components/StickyBottomMenu/renderMenuItems.tsx +1 -1
- package/mobile/src/hooks/useSWRResource.ts +19 -6
- package/mobile/src/services/sitemap/useSitemap.ts +1 -1
- package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +6 -2
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +6 -3
- package/src/components/ApplicationForm/ApplicationFormContent.ts +40 -32
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +3 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
- package/src/components/ContentPage/normalizeBlock.mobile.ts +7 -2
- package/src/components/Footer/Footer.mobile.tsx +3 -3
- package/src/components/Footer/Footer.tsx +4 -5
- package/src/components/Header/Header.tsx +1 -2
- package/src/components/StickyBottomMenu/ActiveSubMenu.tsx +3 -2
- package/src/components/StickyBottomMenu/ActiveSubMenuItem.tsx +8 -5
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +27 -15
- package/src/components/StickyBottomMenu/RenderItem.tsx +14 -11
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +1 -2
- package/src/components/StickyBottomMenu/TopItemMobile.tsx +12 -24
- package/src/components/StickyBottomMenu/renderMenuItems.tsx +1 -1
- package/src/hooks/useSWRResource.ts +19 -6
- package/src/icons/IconName.ts +2 -2
- package/src/services/sitemap/useSitemap.ts +1 -1
- 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
|
|
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 =
|
|
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 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
-
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
5
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
7
|
export declare type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
|
|
8
8
|
/**
|
|
9
9
|
* @title Карточка рекомендаций
|
|
@@ -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
|
-
|
|
4
|
+
basePath?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const ActiveSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<ActiveSubMenuItemProps, any, any>;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { MenuItemProps } from './StickyBottomMenuProps';
|
|
2
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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 @@ import type { AlignProps, HeadlineCommonProps } from '../../model/HeadlineType';
|
|
|
2
2
|
import type { UniBlockContent } from '../../model/JSXBlock';
|
|
3
3
|
import type { LinkCommonProps } from '../../model/LinkProps';
|
|
4
4
|
import type { IconProps } from '../../model/Picture';
|
|
5
|
-
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
6
5
|
import type { ButtonContent } from '../../ui-kit/Button/ButtonContent';
|
|
6
|
+
import type { ListContent } from '../../ui-kit/List/ListContent';
|
|
7
7
|
export declare type RecommendationSocialMedia = LinkCommonProps & IconProps & ButtonContent;
|
|
8
8
|
/**
|
|
9
9
|
* @title Карточка рекомендаций
|
|
@@ -2,9 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.normalizeBlock = void 0;
|
|
3
3
|
const mapSlot_1 = require("./mapSlot");
|
|
4
4
|
function normalizeBlock(block, blocksRegistry) {
|
|
5
|
-
const { mobile, ...
|
|
5
|
+
const { mobile, ...desktop } = (block || {});
|
|
6
6
|
const result = mobile
|
|
7
|
-
? {
|
|
7
|
+
? Object.assign({}, desktop, mobile.style ? { style: mobile.style } : {}, mobile.content ? { content: mobile.content } : {})
|
|
8
8
|
: block;
|
|
9
9
|
return (0, mapSlot_1.mapSlot)(filterBlocks(blocksRegistry))(result || {});
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizeBlock.mobile.ts"],"names":[],"mappings":";;AAEA,uCAAoC;AAEpC,SAAgB,cAAc,CAAiB,KAAS,EAAE,cAA+B;IACvF,MAAM,EAAE,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"normalizeBlock.mobile.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizeBlock.mobile.ts"],"names":[],"mappings":";;AAEA,uCAAoC;AAEpC,SAAgB,cAAc,CAAiB,KAAS,EAAE,cAA+B;IACvF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,CAAC,KAAK,IAAI,EAAE,CAAa,CAAC;IACzD,MAAM,MAAM,GAAG,MAAM;QACnB,CAAC,CAAC,MAAM,CAAC,MAAM,CACX,EAAE,EACF,OAAO,EACP,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAC3C,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAClD;QACH,CAAC,CAAC,KAAK,CAAC;IAEV,OAAO,IAAA,iBAAO,EAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAM,CAAC;AAClE,CAAC;AAZD,wCAYC;AAED,MAAM,YAAY,GAChB,CAAC,cAA+B,EAAE,EAAE,CACpC,CAAC,MAAmB,EAAc,EAAE,CAClC,MAAM;IACJ,CAAC,CAAC,MAAM;QACJ,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,cAAc;QACd,CAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC,IAAI,cAAc;QAC5D,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxB;SACA,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAC1D,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -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 Logo_1 = require("../../ui-kit/Logo/Logo");
|
|
@@ -16,7 +16,9 @@ const TextInformation_1 = require("./TextInformation");
|
|
|
16
16
|
const LEFT_COL_WIDTH = 'w-52';
|
|
17
17
|
exports.Footer = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
18
18
|
const { topItems } = (0, useSitemap_1.useSitemap)(rest.options?.page?.fallback);
|
|
19
|
-
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer',
|
|
19
|
+
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.FOOTER || 'footer', {
|
|
20
|
+
fallback: rest.options?.page?.fallback,
|
|
21
|
+
});
|
|
20
22
|
return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { tag: "footer", className: className, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: LEFT_COL_WIDTH, logo: logo }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { className: "grow" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "flex items-stretch gap-6xl", children: [(0, jsx_runtime_1.jsxs)("div", { className: `${LEFT_COL_WIDTH} flex flex-col shrink-0 overflow-hidden space-y-xl`, children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { items: contacts }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { media: mobileApps, 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)(Sitemap_1.Sitemap, { className: "flex-grow", topItems: topItems })] }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents })] }));
|
|
21
23
|
});
|
|
22
24
|
//# sourceMappingURL=Footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+DAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/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AAC,WAAW,EAAC,QAAQ,EAAE,QAAQ,GAAI,IACjD,EACN,uBAAC,2CAAoB,IAAC,SAAS,EAAC,OAAO,EAAC,KAAK,EAAE,kBAAkB,GAAI,EACrE,uBAAC,iCAAe,IAAC,KAAK,EAAE,SAAS,GAAI,IACxB,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -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.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.mobile.tsx"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AC,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"}
|
|
@@ -19,7 +19,7 @@ const BG_COLOR_TO_BLOCK_VERSION = {
|
|
|
19
19
|
exports.Header = (0, uni_jsx_1.JSX)(({ className, bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
20
20
|
const { topItems, logo, officesLink, defaultLocation } = (0, useSitemap_1.useSitemap)(rest.options?.page?.fallback);
|
|
21
21
|
const [, activeTopItem] = (0, useActiveRoute_1.useActiveRoute)(topItems);
|
|
22
|
-
const { internetBankUrl } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.PORTAL_DATA || 'portal-data', {
|
|
22
|
+
const { internetBankUrl } = (0, useSWRResource_1.useSWRResource)(ProjectSettings_1.projectSettings.PORTAL_DATA || 'portal-data', { folderName: 'portal-resources', setBasePath: true });
|
|
23
23
|
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { tag: "header", className: (0, style_1.style)('pt-3xl px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { className: "mr-3xl", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => ((0, jsx_runtime_1.jsx)(TopItem_1.TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), (0, jsx_runtime_1.jsx)(HeaderSecondaryMenu_1.HeaderSecondaryMenu, { version: version, className: "ml-auto", officesLink: officesLink, defaultLocation: defaultLocation })] }), (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), activeTopItem?.items?.length ? ((0, jsx_runtime_1.jsx)(HeaderSubMenu_1.HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }) }));
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/components/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD,+DAA4D;AAC5D,+DAA4D;AAI5D,kEAA+D;AAC/D,4DAAyD;AACzD,iDAA8C;AAC9C,0DAAuD;AACvD,6CAA0C;AAE1C,+DAA4D;AAC5D,mDAAgD;AAE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K,EAC7B,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,eAAe,GAChC,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,GACO,CAChB,CAAC;AACJ,CAAC,CACF,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: _,
|
|
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;
|
|
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
|
-
|
|
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,
|
|
8
|
-
const
|
|
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" })] }
|
|
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;
|
|
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"}
|
|
@@ -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
|
|
15
|
-
const TopItemMobile_1 = require("./TopItemMobile");
|
|
16
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
16
17
|
const ActiveSubMenu_1 = require("./ActiveSubMenu");
|
|
17
|
-
const
|
|
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 [
|
|
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
|
-
|
|
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,
|
|
1
|
+
{"version":3,"file":"BurgerMenuDialog.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/BurgerMenuDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwF;AAExF,+DAA4D;AAC5D,yDAAsD;AAEtD,kEAA+D;AAC/D,8DAA2D;AAC3D,0DAAuD;AACvD,8CAA2C;AAC3C,qFAAkF;AAClF,gEAA6D;AAC7D,yFAAsF;AACtF,yFAAsF;AACtF,i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M,EAAC,IAAI,EACX,SAAS,EAAC,oEAAoE,GAC9E,EACF,iCAAK,SAAS,EAAC,2BAA2B,aACxC,uBAAC,WAAI,IAAC,IAAI,EAAC,SAAS,YAAE,QAAQ,CAAC,IAAI,GAAQ,EAC3C,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,QAAQ,oFAExC,IACH,IACF,IACF,IACF,GACC,CACV,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,gBAAgB,GAAG,CAAC,WAAoB,EAAE,EAAE,CAChD,WAAW,CAAC,CAAC,CAAC,CACZ,+BACE,SAAS,EAAC,wBAAwB,EAClC,IAAI,EAAE,WAAW,EACjB,GAAG,EAAC,qBAAqB,gBACd,8FAAmB,aAE9B,uBAAC,SAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAE,EACtD,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,SAAS,EAAC,oEAAoE,GAC9E,EACF,4IAA8B,IAC5B,CACL,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { MenuItemProps } from './StickyBottomMenuProps';
|
|
2
|
-
|
|
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
|
|
6
|
-
const Img_1 = require("../../ui-kit/Img/Img");
|
|
5
|
+
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
7
6
|
const useLink_1 = require("../../hooks/useLink");
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
16
|
-
iconVersion: item
|
|
17
|
-
} }), item.title] }
|
|
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;
|
|
1
|
+
{"version":3,"file":"RenderItem.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/RenderItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AACxD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MenuItems");
|
|
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.mobile.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenu.mobile.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,
|
|
1
|
+
{"version":3,"file":"StickyBottomMenu.mobile.js","sourceRoot":"","sources":["../../../src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,2DAAwD;AACxD,+DAA4D;AAC5D,yDAAsD;AAEtD,uDAAoD;AACpD,+DAA4D;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