md-components-mdigial-azamat 0.0.38 → 0.0.39
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/dist/AllComponents.js +5 -6
- package/dist/AnimatedSwiper/index.js +2 -2
- package/dist/Header/Header.js +6 -31
- package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +13 -58
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +9 -71
- package/dist/Header/components/HeaderMobile/index.js +1 -1
- package/dist/Header/components/HeaderSearch/HeaderSearch.js +11 -157
- package/dist/Header/components/HeaderSearch/index.js +2 -2
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +2 -2
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +9 -9
- package/dist/Header/components/SelectLanguage/SelectLanguage.js +1 -1
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +2 -2
- package/dist/Header/index.js +2 -2
- package/dist/InfoBannerList/InfoBannerList.js +1 -1
- package/dist/InfoBannerList/index.js +1 -1
- package/dist/InstructionList/InstructionList.js +1 -1
- package/dist/InstructionList/components/InstructionCard/InstructionCard.js +8 -8
- package/dist/InstructionList/components/InstructionCard/index.js +1 -1
- package/dist/InstructionList/index.js +1 -1
- package/dist/PageViewer/PageViewer.js +4 -3
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PreviewList/PreviewList.js +1 -1
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +9 -9
- package/dist/PreviewList/components/PreviewCard/index.js +1 -1
- package/dist/PreviewList/index.js +1 -1
- package/dist/PromoPoster/PromoPoster.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/StandartTable/components/CardMarkedRow/index.js +10 -10
- package/dist/StandartTable/index.js +1 -1
- package/dist/SwiperList/SwiperList.js +3 -3
- package/dist/SwiperList/index.js +1 -1
- package/dist/TasksBanner/TasksBanner.js +3 -3
- package/dist/TasksBanner/index.js +2 -2
- package/dist/TasksBannerList/TasksBannerList.js +1 -1
- package/dist/TasksBannerList/index.js +1 -1
- package/dist/{componentsMap-1d79e069.js → componentsMap-d90efb17.js} +22 -23
- package/dist/index-3a534581.js +261 -0
- package/dist/{index-9c3ff10b.js → index-66837af1.js} +55 -55
- package/dist/index-db31fa48.js +924 -0
- package/dist/{languages-list-87ab3324.js → languages-list-8419e560.js} +2 -2
- package/dist/main.js +81 -78
- package/dist/{mousewheel-f9c6bcd7.js → mousewheel-865ae601.js} +1 -1
- package/dist/{swiper-react-39919ab6.js → swiper-react-90953710.js} +251 -251
- package/package.json +1 -1
- package/dist/header-4f7ca247.js +0 -107
- package/dist/index-a302b5ed.js +0 -787
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../index-6af94f99.js";
|
|
3
3
|
import "../const-637b0dca.js";
|
|
4
4
|
import "../ComponentContainer-cdb2528c.js";
|
|
5
|
-
import { P as e } from "../index-
|
|
5
|
+
import { P as e } from "../index-db31fa48.js";
|
|
6
6
|
export {
|
|
7
7
|
e as PreviewList
|
|
8
8
|
};
|
|
@@ -2,6 +2,13 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../../ConfigProvider/index.js";
|
|
3
3
|
import "../../../Banner/Banner.js";
|
|
4
4
|
import "../../../BannerAndText/index.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "../../../index-2265d593.js";
|
|
7
|
+
import "../../../Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
8
|
+
import "../../../HtmlContent/HtmlContent.js";
|
|
9
|
+
import "../../../Header/components/TabsOutlined/TabsOutlined.js";
|
|
10
|
+
import "../../../index-6af94f99.js";
|
|
11
|
+
import "../../../const-637b0dca.js";
|
|
5
12
|
import "../../../Stepper/Stepper.js";
|
|
6
13
|
import "../../../Segments/Segments.js";
|
|
7
14
|
import "../../../Video/VideoFull/VideoFull.js";
|
|
@@ -14,8 +21,7 @@ import "../../../Partners/Partners.js";
|
|
|
14
21
|
import "../../../CardImageList/CardImageList.js";
|
|
15
22
|
import "../../../MainBanner/MainBanner.js";
|
|
16
23
|
import "../../../Faq/Faq.js";
|
|
17
|
-
import "../../../
|
|
18
|
-
import { e as T, i as U } from "../../../index-a302b5ed.js";
|
|
24
|
+
import { e as T, k as U } from "../../../index-db31fa48.js";
|
|
19
25
|
import "../../../HeroPossibilityBanner/index.js";
|
|
20
26
|
import "../../../PartnersColors/PartnersColors.js";
|
|
21
27
|
import "../../../Cards/CardImage/CardImage.js";
|
|
@@ -28,16 +34,10 @@ import "../../../DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
|
28
34
|
import "../../../DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
29
35
|
import "../../../DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
30
36
|
import "../../../Faq/components/Collapse/Collapse.js";
|
|
31
|
-
import "
|
|
32
|
-
import "../../../index-6af94f99.js";
|
|
33
|
-
import "../../../const-637b0dca.js";
|
|
34
|
-
import "../../../index-2265d593.js";
|
|
35
|
-
import "../../../index-9c3ff10b.js";
|
|
37
|
+
import "../../../index-66837af1.js";
|
|
36
38
|
import "../../../CardImageSecondaryList/CardImageSecondaryList.js";
|
|
37
39
|
import "../../../CardInfoTable/index.js";
|
|
38
40
|
import "../../../DownloadFile/components/DownloadFileBright/index.js";
|
|
39
|
-
import "../../../Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
40
|
-
import "../../../Header/components/TabsOutlined/TabsOutlined.js";
|
|
41
41
|
import "../../../IntroBanner/IntroBanner.js";
|
|
42
42
|
import "../../../Space/Space.js";
|
|
43
43
|
import "../../../VideoMainBanner/VideoMainBanner.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../Types/FiledTypes.js";
|
|
3
|
-
import { b as s } from "../index-
|
|
3
|
+
import { b as s } from "../index-db31fa48.js";
|
|
4
4
|
import "../ComponentContainer-cdb2528c.js";
|
|
5
5
|
import "../cn-6a4bf187.js";
|
|
6
6
|
import "../useScreenSize-c1b64c02.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, Fragment as t } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "../componentsMap-
|
|
2
|
+
import { c as i } from "../componentsMap-d90efb17.js";
|
|
3
3
|
const d = ({ components: o, device: p }) => /* @__PURE__ */ n(t, { children: o.map((r) => {
|
|
4
4
|
const e = i[r.key];
|
|
5
5
|
return e ? /* @__PURE__ */ n(
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { l as U, C as V } from "../../../index-db31fa48.js";
|
|
3
3
|
import "../../../ConfigProvider/index.js";
|
|
4
4
|
import "../../../Banner/Banner.js";
|
|
5
5
|
import "../../../BannerAndText/index.js";
|
|
6
|
+
import "../../../cn-6a4bf187.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "../../../index-2265d593.js";
|
|
9
|
+
import "../../../Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
10
|
+
import "../../../HtmlContent/HtmlContent.js";
|
|
11
|
+
import "../../../Header/components/TabsOutlined/TabsOutlined.js";
|
|
12
|
+
import "../../../index-6af94f99.js";
|
|
13
|
+
import "../../../const-637b0dca.js";
|
|
6
14
|
import "../../../Stepper/Stepper.js";
|
|
7
15
|
import "../../../Segments/Segments.js";
|
|
8
16
|
import "../../../Video/VideoFull/VideoFull.js";
|
|
@@ -15,7 +23,6 @@ import "../../../Partners/Partners.js";
|
|
|
15
23
|
import "../../../CardImageList/CardImageList.js";
|
|
16
24
|
import "../../../MainBanner/MainBanner.js";
|
|
17
25
|
import "../../../Faq/Faq.js";
|
|
18
|
-
import "../../../HtmlContent/HtmlContent.js";
|
|
19
26
|
import "../../../HeroPossibilityBanner/index.js";
|
|
20
27
|
import "../../../PartnersColors/PartnersColors.js";
|
|
21
28
|
import "../../../Cards/CardImage/CardImage.js";
|
|
@@ -28,17 +35,10 @@ import "../../../DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
|
28
35
|
import "../../../DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
29
36
|
import "../../../DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
30
37
|
import "../../../Faq/components/Collapse/Collapse.js";
|
|
31
|
-
import "
|
|
32
|
-
import "../../../index-6af94f99.js";
|
|
33
|
-
import "../../../const-637b0dca.js";
|
|
34
|
-
import "../../../cn-6a4bf187.js";
|
|
35
|
-
import "../../../index-2265d593.js";
|
|
36
|
-
import "../../../index-9c3ff10b.js";
|
|
38
|
+
import "../../../index-66837af1.js";
|
|
37
39
|
import "../../../CardImageSecondaryList/CardImageSecondaryList.js";
|
|
38
40
|
import "../../../CardInfoTable/index.js";
|
|
39
41
|
import "../../../DownloadFile/components/DownloadFileBright/index.js";
|
|
40
|
-
import "../../../Header/components/HeaderTabsMobile/HeaderTabsMobile.js";
|
|
41
|
-
import "../../../Header/components/TabsOutlined/TabsOutlined.js";
|
|
42
42
|
import "../../../IntroBanner/IntroBanner.js";
|
|
43
43
|
import "../../../Space/Space.js";
|
|
44
44
|
import "../../../VideoMainBanner/VideoMainBanner.js";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../Types/FiledTypes.js";
|
|
3
3
|
import "../ComponentContainer-cdb2528c.js";
|
|
4
4
|
import "../cn-6a4bf187.js";
|
|
5
|
-
import { c as e } from "../index-
|
|
5
|
+
import { c as e } from "../index-db31fa48.js";
|
|
6
6
|
import "./components/CardWarning/index.js";
|
|
7
7
|
export {
|
|
8
8
|
e as StandartTable
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../index-
|
|
3
|
+
import "../index-66837af1.js";
|
|
4
4
|
import "../Types/FiledTypes.js";
|
|
5
|
-
import "../swiper-react-
|
|
6
|
-
import { S as w } from "../index-
|
|
5
|
+
import "../swiper-react-90953710.js";
|
|
6
|
+
import { S as w } from "../index-db31fa48.js";
|
|
7
7
|
import "../ComponentContainer-cdb2528c.js";
|
|
8
8
|
import "./components/Bullet/Bullet.js";
|
|
9
9
|
import "./components/Slide/Slide.js";
|
package/dist/SwiperList/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
3
|
+
import { n, m as e } from "../index-db31fa48.js";
|
|
4
4
|
import "../HtmlContent/HtmlContent.js";
|
|
5
5
|
import "../Types/FiledTypes.js";
|
|
6
6
|
import "../index-2265d593.js";
|
|
7
7
|
import "../cn-6a4bf187.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
n as TasksBanner,
|
|
10
|
+
e as TasksBannerFields
|
|
11
11
|
};
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import { A as r } from "./index-
|
|
1
|
+
import { A as r } from "./index-66837af1.js";
|
|
2
2
|
import { Banner as o } from "./Banner/Banner.js";
|
|
3
|
-
import { CardIconList as
|
|
4
|
-
import { CardImageList as
|
|
3
|
+
import { CardIconList as i } from "./CardIconList/CardIconList.js";
|
|
4
|
+
import { CardImageList as m } from "./CardImageList/CardImageList.js";
|
|
5
5
|
import { CardImageSecondaryList as t } from "./CardImageSecondaryList/CardImageSecondaryList.js";
|
|
6
6
|
import { CardInfoTable as a } from "./CardInfoTable/index.js";
|
|
7
7
|
import { WarningCard as n } from "./Cards/WarningCard/WarningCard.js";
|
|
8
8
|
import { ContentCardList as e } from "./ContentCardList/ContentCardList.js";
|
|
9
9
|
import { DownloadFileBanner as p } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
|
|
10
|
-
import { DownloadFileBright as
|
|
11
|
-
import { DownloadFileFull as
|
|
10
|
+
import { DownloadFileBright as s } from "./DownloadFile/components/DownloadFileBright/index.js";
|
|
11
|
+
import { DownloadFileFull as f } from "./DownloadFile/components/DownloadFileFull/DownloadFileFull.js";
|
|
12
12
|
import { DownloadFileHalf as d } from "./DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js";
|
|
13
13
|
import { DownloadFileMini as l } from "./DownloadFile/components/DownloadFileMini/DownloadFileMini.js";
|
|
14
14
|
import { Faq as L } from "./Faq/Faq.js";
|
|
15
15
|
import { Footer as C } from "./Footer/Footer.js";
|
|
16
|
-
import {
|
|
17
|
-
import { I as c, P as w, S as B, a as I, T as S, b as M, c as P } from "./index-a302b5ed.js";
|
|
16
|
+
import { I as F, P as c, S as w, a as B, T as I, b as S, c as M, H as P } from "./index-db31fa48.js";
|
|
18
17
|
import { IntroBanner as g } from "./IntroBanner/IntroBanner.js";
|
|
19
18
|
import { MainBanner as D } from "./MainBanner/MainBanner.js";
|
|
20
19
|
import { MultiCards as u } from "./MultiCards/index.js";
|
|
21
20
|
import { Partners as T } from "./Partners/Partners.js";
|
|
22
21
|
import { PartnersColors as V } from "./PartnersColors/PartnersColors.js";
|
|
23
22
|
import { Segments as b } from "./Segments/Segments.js";
|
|
24
|
-
import { Space as
|
|
25
|
-
import { Stepper as
|
|
23
|
+
import { Space as H } from "./Space/Space.js";
|
|
24
|
+
import { Stepper as A } from "./Stepper/Stepper.js";
|
|
26
25
|
import { VideoFull as h } from "./Video/VideoFull/VideoFull.js";
|
|
27
26
|
import { VideoList as k } from "./Video/VideoList/VideoList.js";
|
|
28
27
|
import { VideoListMini as q } from "./Video/VideoListMini/VideoListMini.js";
|
|
29
28
|
import { VideoMainBanner as v } from "./VideoMainBanner/VideoMainBanner.js";
|
|
30
29
|
const sr = {
|
|
31
30
|
Banner: o,
|
|
32
|
-
CardImageList:
|
|
33
|
-
Stepper:
|
|
31
|
+
CardImageList: m,
|
|
32
|
+
Stepper: A,
|
|
34
33
|
Segments: b,
|
|
35
34
|
VideoFull: h,
|
|
36
35
|
VideoList: k,
|
|
37
36
|
VideoListMini: q,
|
|
38
37
|
ContentCardList: e,
|
|
39
|
-
CardIconList:
|
|
38
|
+
CardIconList: i,
|
|
40
39
|
MultiCards: u,
|
|
41
40
|
Partners: T,
|
|
42
41
|
PartnersColors: V,
|
|
@@ -45,23 +44,23 @@ const sr = {
|
|
|
45
44
|
Faq: L,
|
|
46
45
|
DownloadFileBanner: p,
|
|
47
46
|
DownloadFileHalf: d,
|
|
48
|
-
DownloadFileFull:
|
|
47
|
+
DownloadFileFull: f,
|
|
49
48
|
DownloadFileMini: l,
|
|
50
|
-
InstructionList:
|
|
51
|
-
PreviewList:
|
|
52
|
-
SwiperList:
|
|
49
|
+
InstructionList: F,
|
|
50
|
+
PreviewList: c,
|
|
51
|
+
SwiperList: w,
|
|
53
52
|
AnimatedSwiper: r,
|
|
54
|
-
InfoBannerList:
|
|
55
|
-
TasksBannerList:
|
|
53
|
+
InfoBannerList: B,
|
|
54
|
+
TasksBannerList: I,
|
|
56
55
|
VideoMainBanner: v,
|
|
57
|
-
Space:
|
|
58
|
-
PromoPoster:
|
|
56
|
+
Space: H,
|
|
57
|
+
PromoPoster: S,
|
|
59
58
|
CardImageSecondaryList: t,
|
|
60
59
|
CardInfoTable: a,
|
|
61
|
-
StandartTable:
|
|
60
|
+
StandartTable: M,
|
|
62
61
|
IntroBanner: g,
|
|
63
|
-
DownloadFileBright:
|
|
64
|
-
Header:
|
|
62
|
+
DownloadFileBright: s,
|
|
63
|
+
Header: P,
|
|
65
64
|
Footer: C
|
|
66
65
|
};
|
|
67
66
|
export {
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { jsx as l, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as h, useEffect as $, useMemo as P, useState as I } from "react";
|
|
3
|
+
import { S as M, C as W } from "./search-dd4eb6f8.js";
|
|
4
|
+
import { HtmlContent as Y } from "./HtmlContent/HtmlContent.js";
|
|
5
|
+
import { a as q } from "./languages-list-8419e560.js";
|
|
6
|
+
import { u as z } from "./useClickOutside-197b0df2.js";
|
|
7
|
+
import { I as G } from "./index-2265d593.js";
|
|
8
|
+
import { f as B, g as K, a as Q } from "./header-97863d08.js";
|
|
9
|
+
import { TabsOutlined as V } from "./Header/components/TabsOutlined/TabsOutlined.js";
|
|
10
|
+
function J(o, e, t, p) {
|
|
11
|
+
var i = this, s = h(null), f = h(0), b = h(0), a = h(null), m = h([]), w = h(), x = h(), E = h(o), g = h(!0);
|
|
12
|
+
E.current = o;
|
|
13
|
+
var d = typeof window < "u", r = !e && e !== 0 && d;
|
|
14
|
+
if (typeof o != "function")
|
|
15
|
+
throw new TypeError("Expected a function");
|
|
16
|
+
e = +e || 0;
|
|
17
|
+
var u = !!(t = t || {}).leading, R = !("trailing" in t) || !!t.trailing, v = "maxWait" in t, C = "debounceOnServer" in t && !!t.debounceOnServer, N = v ? Math.max(+t.maxWait || 0, e) : null;
|
|
18
|
+
$(function() {
|
|
19
|
+
return g.current = !0, function() {
|
|
20
|
+
g.current = !1;
|
|
21
|
+
};
|
|
22
|
+
}, []);
|
|
23
|
+
var O = P(function() {
|
|
24
|
+
var F = function(n) {
|
|
25
|
+
var c = m.current, A = w.current;
|
|
26
|
+
return m.current = w.current = null, f.current = n, b.current = b.current || n, x.current = E.current.apply(A, c);
|
|
27
|
+
}, T = function(n, c) {
|
|
28
|
+
r && cancelAnimationFrame(a.current), a.current = r ? requestAnimationFrame(n) : setTimeout(n, c);
|
|
29
|
+
}, k = function(n) {
|
|
30
|
+
if (!g.current)
|
|
31
|
+
return !1;
|
|
32
|
+
var c = n - s.current;
|
|
33
|
+
return !s.current || c >= e || c < 0 || v && n - f.current >= N;
|
|
34
|
+
}, H = function(n) {
|
|
35
|
+
return a.current = null, R && m.current ? F(n) : (m.current = w.current = null, x.current);
|
|
36
|
+
}, S = function n() {
|
|
37
|
+
var c = Date.now();
|
|
38
|
+
if (u && b.current === f.current && U(), k(c))
|
|
39
|
+
return H(c);
|
|
40
|
+
if (g.current) {
|
|
41
|
+
var A = e - (c - s.current), D = v ? Math.min(A, N - (c - f.current)) : A;
|
|
42
|
+
T(n, D);
|
|
43
|
+
}
|
|
44
|
+
}, U = function() {
|
|
45
|
+
p && p({});
|
|
46
|
+
}, y = function() {
|
|
47
|
+
if (d || C) {
|
|
48
|
+
var n = Date.now(), c = k(n);
|
|
49
|
+
if (m.current = [].slice.call(arguments), w.current = i, s.current = n, c) {
|
|
50
|
+
if (!a.current && g.current)
|
|
51
|
+
return f.current = s.current, T(S, e), u ? F(s.current) : x.current;
|
|
52
|
+
if (v)
|
|
53
|
+
return T(S, e), F(s.current);
|
|
54
|
+
}
|
|
55
|
+
return a.current || T(S, e), x.current;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return y.cancel = function() {
|
|
59
|
+
var n = a.current;
|
|
60
|
+
n && (r ? cancelAnimationFrame(a.current) : clearTimeout(a.current)), f.current = 0, m.current = s.current = w.current = a.current = null, n && p && p({});
|
|
61
|
+
}, y.isPending = function() {
|
|
62
|
+
return !!a.current;
|
|
63
|
+
}, y.flush = function() {
|
|
64
|
+
return a.current ? H(Date.now()) : x.current;
|
|
65
|
+
}, y;
|
|
66
|
+
}, [u, v, e, N, R, r, d, C, p]);
|
|
67
|
+
return O;
|
|
68
|
+
}
|
|
69
|
+
const X = {}.VITE_API_URL || "https://mbank.kg/api/", Z = "app_language", L = () => localStorage.getItem(Z) || q.RU, j = async (o, e = {}) => {
|
|
70
|
+
const t = L(), p = `${X}${o}`;
|
|
71
|
+
try {
|
|
72
|
+
const i = await fetch(p, {
|
|
73
|
+
...e,
|
|
74
|
+
headers: {
|
|
75
|
+
"Accept-Language": t,
|
|
76
|
+
"Content-Type": "application/json",
|
|
77
|
+
...e.headers
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
if (!i.ok) {
|
|
81
|
+
if (e.method === "GET" || !e.method)
|
|
82
|
+
return { data: null };
|
|
83
|
+
throw new Error(`HTTP error! status: ${i.status}`);
|
|
84
|
+
}
|
|
85
|
+
return { data: await i.json() };
|
|
86
|
+
} catch (i) {
|
|
87
|
+
if (e.method === "GET" || !e.method)
|
|
88
|
+
return { data: null };
|
|
89
|
+
throw i;
|
|
90
|
+
}
|
|
91
|
+
}, ee = {
|
|
92
|
+
getHeaderSections(o, e) {
|
|
93
|
+
const t = `v2/header/?page_type=${e || ""}`;
|
|
94
|
+
return j(t, {
|
|
95
|
+
method: "GET",
|
|
96
|
+
headers: {
|
|
97
|
+
"Accept-Language": o || L()
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
searchHeader(o, e) {
|
|
102
|
+
const t = `v2/search/?search=${encodeURIComponent(o)}`;
|
|
103
|
+
return j(t, {
|
|
104
|
+
method: "GET",
|
|
105
|
+
headers: {
|
|
106
|
+
"Accept-Language": e || L()
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}, re = 8, de = ({ closeSearch: o, onClick: e }) => {
|
|
111
|
+
const [t, p] = I(8), [i, s] = I(!1), { ref: f } = z(i, () => {
|
|
112
|
+
s(!1);
|
|
113
|
+
}), [b, a] = I(), m = J(async (r) => {
|
|
114
|
+
if (r.trim() !== "")
|
|
115
|
+
try {
|
|
116
|
+
const { data: u } = await ee.searchHeader(r);
|
|
117
|
+
a(u), s(!0);
|
|
118
|
+
} catch {
|
|
119
|
+
console.log("No results found");
|
|
120
|
+
}
|
|
121
|
+
}, 500), w = (r) => {
|
|
122
|
+
const u = r.target.value;
|
|
123
|
+
m(u);
|
|
124
|
+
}, x = b ? B(b) : { arrays: {}, nonArrays: {} }, g = [...K(x)].sort(
|
|
125
|
+
(r, u) => r.title === "common_words.all" ? -1 : u.title === "common_words.all" ? 1 : 0
|
|
126
|
+
), d = Q(
|
|
127
|
+
re,
|
|
128
|
+
t,
|
|
129
|
+
x,
|
|
130
|
+
g
|
|
131
|
+
);
|
|
132
|
+
return /* @__PURE__ */ l("div", { className: "w-full max-w-[1200px] mx-auto", children: /* @__PURE__ */ _("div", { className: "relative w-full", children: [
|
|
133
|
+
/* @__PURE__ */ _("div", { className: "flex items-center gap-2 relative", children: [
|
|
134
|
+
/* @__PURE__ */ l(
|
|
135
|
+
"input",
|
|
136
|
+
{
|
|
137
|
+
className: `
|
|
138
|
+
w-full h-[52px] rounded-2xl bg-[#F4F6F7]
|
|
139
|
+
pl-[44px] pr-[170px] py-[4px] text-[16px] leading-[24px]
|
|
140
|
+
text-[#0E0F11] transition-all outline-none border-0
|
|
141
|
+
placeholder:text-[#768793]
|
|
142
|
+
`,
|
|
143
|
+
type: "text",
|
|
144
|
+
placeholder: "Поиск...",
|
|
145
|
+
onChange: w
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ l(
|
|
149
|
+
"span",
|
|
150
|
+
{
|
|
151
|
+
className: `
|
|
152
|
+
absolute left-[5px] top-1/2 -translate-y-1/2
|
|
153
|
+
w-9 h-9 flex items-center justify-center cursor-pointer p-[7px]
|
|
154
|
+
`,
|
|
155
|
+
children: /* @__PURE__ */ l(
|
|
156
|
+
G,
|
|
157
|
+
{
|
|
158
|
+
src: M,
|
|
159
|
+
alt: "search icon",
|
|
160
|
+
width: 18,
|
|
161
|
+
height: 18
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
/* @__PURE__ */ l(
|
|
167
|
+
"button",
|
|
168
|
+
{
|
|
169
|
+
type: "button",
|
|
170
|
+
className: `
|
|
171
|
+
w-9 h-9 flex items-center justify-center cursor-pointer
|
|
172
|
+
bg-[#EAEFF0] rounded-full p-[10px] border-none
|
|
173
|
+
`,
|
|
174
|
+
onClick: o,
|
|
175
|
+
children: /* @__PURE__ */ l(
|
|
176
|
+
G,
|
|
177
|
+
{
|
|
178
|
+
src: W,
|
|
179
|
+
alt: "close icon",
|
|
180
|
+
width: 16,
|
|
181
|
+
height: 16
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
] }),
|
|
187
|
+
i && (d != null && d.length ? /* @__PURE__ */ _(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
ref: f,
|
|
191
|
+
className: `
|
|
192
|
+
flex flex-col gap-3 absolute top-[70px] left-0 w-full max-h-[400px]
|
|
193
|
+
p-[12px_20px_20px_20px] rounded-[20px] bg-white z-[1000]
|
|
194
|
+
shadow-[0_4px_25px_rgba(0,0,0,0.05)]
|
|
195
|
+
animate-fadeInDropdown
|
|
196
|
+
`,
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ l(
|
|
199
|
+
V,
|
|
200
|
+
{
|
|
201
|
+
onClick: (r) => p(r),
|
|
202
|
+
activeTab: t,
|
|
203
|
+
navigation: g
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ l(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
className: `
|
|
210
|
+
flex flex-col gap-2 overflow-y-auto
|
|
211
|
+
scrollbar-thin scrollbar-thumb-black/40 scrollbar-track-transparent
|
|
212
|
+
`,
|
|
213
|
+
children: d == null ? void 0 : d.map((r, u) => /* @__PURE__ */ _(
|
|
214
|
+
"a",
|
|
215
|
+
{
|
|
216
|
+
href: (r == null ? void 0 : r.link) || "#",
|
|
217
|
+
className: `
|
|
218
|
+
flex flex-col gap-[2px] p-[8px_12px]
|
|
219
|
+
hover:bg-[#F4F6F7] rounded-[12px]
|
|
220
|
+
`,
|
|
221
|
+
onClick: e,
|
|
222
|
+
children: [
|
|
223
|
+
/* @__PURE__ */ l("span", { className: "text-[#0E0F11] text-[16px] font-medium leading-[24px]", children: r == null ? void 0 : r.title }),
|
|
224
|
+
/* @__PURE__ */ l(
|
|
225
|
+
Y,
|
|
226
|
+
{
|
|
227
|
+
className: `
|
|
228
|
+
text-[#768793] text-[14px] leading-[20px]
|
|
229
|
+
font-[tabular-nums] overflow-hidden
|
|
230
|
+
`,
|
|
231
|
+
data: (r == null ? void 0 : r.body) ?? ""
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
u
|
|
237
|
+
))
|
|
238
|
+
}
|
|
239
|
+
)
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
) : /* @__PURE__ */ l(
|
|
243
|
+
"div",
|
|
244
|
+
{
|
|
245
|
+
ref: f,
|
|
246
|
+
className: `
|
|
247
|
+
absolute top-[70px] left-0 w-full
|
|
248
|
+
p-[20px] rounded-[20px] bg-white shadow
|
|
249
|
+
text-[16px] font-medium
|
|
250
|
+
`,
|
|
251
|
+
children: "Ничего не найдено"
|
|
252
|
+
}
|
|
253
|
+
))
|
|
254
|
+
] }) });
|
|
255
|
+
};
|
|
256
|
+
export {
|
|
257
|
+
de as H,
|
|
258
|
+
re as T,
|
|
259
|
+
ee as a,
|
|
260
|
+
J as c
|
|
261
|
+
};
|