md-components-mdigial-azamat 0.0.35 → 0.0.37
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 +1 -1
- package/dist/Footer/components/ListNavigation/ListNavigation.js +65 -65
- package/dist/Footer/components/NavigationFooter/NavigationFooter.js +17 -17
- package/dist/Header/Header.js +1 -1
- package/dist/Header/components/HeaderMenu/HeaderMenu.js +23 -23
- package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +1 -1
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +1 -1
- package/dist/Header/components/HeaderMobile/index.js +1 -1
- package/dist/Header/components/HeaderTab/HeaderTab.js +13 -13
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +20 -20
- package/dist/Header/components/TabsOutlined/TabsOutlined.js +7 -7
- package/dist/Header/index.js +1 -1
- 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 +1 -1
- package/dist/InstructionList/components/InstructionCard/index.js +1 -1
- package/dist/InstructionList/index.js +1 -1
- package/dist/PageViewer/PageViewer.js +1 -1
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PreviewList/PreviewList.js +1 -1
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +1 -1
- 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/Segments/Segments.js +9 -9
- package/dist/StandartTable/components/CardMarkedRow/index.js +1 -1
- package/dist/StandartTable/index.js +1 -1
- package/dist/SwiperList/SwiperList.js +1 -1
- package/dist/SwiperList/index.js +1 -1
- package/dist/TasksBanner/TasksBanner.js +1 -1
- package/dist/TasksBanner/index.js +1 -1
- package/dist/TasksBannerList/TasksBannerList.js +1 -1
- package/dist/TasksBannerList/index.js +1 -1
- package/dist/Video/VideoList/VideoList.js +15 -15
- package/dist/Video/VideoListMini/VideoListMini.js +14 -14
- package/dist/{componentsMap-e2de87b6.js → componentsMap-e7dba337.js} +1 -1
- package/dist/{index-2fb01942.js → index-3f94ad07.js} +58 -58
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/AllComponents.js
CHANGED
|
@@ -8,7 +8,7 @@ import "./CardInfoTable/index.js";
|
|
|
8
8
|
import "./ContentCardList/ContentCardList.js";
|
|
9
9
|
import "./DownloadFile/components/DownloadFileBright/index.js";
|
|
10
10
|
import "./Faq/Faq.js";
|
|
11
|
-
import { f as R, A as S } from "./index-
|
|
11
|
+
import { f as R, A as S } from "./index-3f94ad07.js";
|
|
12
12
|
import "./IntroBanner/IntroBanner.js";
|
|
13
13
|
import "./MainBanner/MainBanner.js";
|
|
14
14
|
import "./MultiCards/index.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
2
|
+
import { useState as d } from "react";
|
|
3
|
+
import { c as i } from "../../../cn-6a4bf187.js";
|
|
4
|
+
const u = {
|
|
5
5
|
small: "text-[14px] font-regular",
|
|
6
6
|
large: "text-[16px] font-regular"
|
|
7
|
-
},
|
|
7
|
+
}, k = {
|
|
8
8
|
white: "text-white",
|
|
9
9
|
siren: "text-siren",
|
|
10
10
|
grayBlue: "text-grayBlue4",
|
|
11
11
|
black: "text-black",
|
|
12
12
|
lightGrey: "text-lightGray2",
|
|
13
13
|
grey: "text-gray5"
|
|
14
|
-
},
|
|
14
|
+
}, m = {
|
|
15
15
|
uppercase: "uppercase",
|
|
16
16
|
none: "normal-case"
|
|
17
|
-
},
|
|
17
|
+
}, v = {
|
|
18
18
|
regular: "font-regular",
|
|
19
19
|
semiBold: "font-semibold"
|
|
20
|
-
},
|
|
20
|
+
}, y = ({
|
|
21
21
|
link: n,
|
|
22
|
-
label:
|
|
22
|
+
label: a,
|
|
23
23
|
icon: l,
|
|
24
|
-
color:
|
|
25
|
-
size:
|
|
24
|
+
color: s = "black",
|
|
25
|
+
size: e = "large",
|
|
26
26
|
textTransform: o = "none",
|
|
27
|
-
fontWeight:
|
|
27
|
+
fontWeight: r = "regular",
|
|
28
28
|
style: c,
|
|
29
29
|
className: g,
|
|
30
30
|
children: h
|
|
@@ -33,21 +33,21 @@ const d = {
|
|
|
33
33
|
{
|
|
34
34
|
style: c,
|
|
35
35
|
href: n,
|
|
36
|
-
className:
|
|
36
|
+
className: i(
|
|
37
37
|
"relative flex items-center text-[14px]",
|
|
38
38
|
"max-mobile:text-[0.9rem]",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
u[e],
|
|
40
|
+
k[s],
|
|
41
|
+
m[o],
|
|
42
|
+
v[r],
|
|
43
43
|
g
|
|
44
44
|
),
|
|
45
45
|
children: [
|
|
46
|
-
|
|
46
|
+
a,
|
|
47
47
|
/* @__PURE__ */ t(
|
|
48
48
|
"span",
|
|
49
49
|
{
|
|
50
|
-
className:
|
|
50
|
+
className: i(
|
|
51
51
|
"relative flex items-center",
|
|
52
52
|
"top-[calc(50%-6px)] -right-[25px]",
|
|
53
53
|
"max-mobile:top-[2px]"
|
|
@@ -58,12 +58,12 @@ const d = {
|
|
|
58
58
|
h
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
|
-
) }),
|
|
61
|
+
) }), f = {
|
|
62
62
|
orange: "stroke-orange",
|
|
63
63
|
gray: "stroke-grayBlue3"
|
|
64
64
|
}, b = ({
|
|
65
65
|
className: n,
|
|
66
|
-
variant:
|
|
66
|
+
variant: a = "orange"
|
|
67
67
|
}) => /* @__PURE__ */ t(
|
|
68
68
|
"svg",
|
|
69
69
|
{
|
|
@@ -77,7 +77,7 @@ const d = {
|
|
|
77
77
|
"path",
|
|
78
78
|
{
|
|
79
79
|
d: "M13 1L7 7L1 0.999999",
|
|
80
|
-
className:
|
|
80
|
+
className: f[a],
|
|
81
81
|
stroke: "#FAAD14",
|
|
82
82
|
strokeWidth: "1.6",
|
|
83
83
|
strokeLinecap: "round"
|
|
@@ -90,7 +90,7 @@ const d = {
|
|
|
90
90
|
black: "stroke-black",
|
|
91
91
|
gray: "stroke-grayBlue3",
|
|
92
92
|
white: "stroke-white"
|
|
93
|
-
}, N = ({ variant: n, className:
|
|
93
|
+
}, N = ({ variant: n, className: a }) => /* @__PURE__ */ t(
|
|
94
94
|
"svg",
|
|
95
95
|
{
|
|
96
96
|
width: "8",
|
|
@@ -98,62 +98,62 @@ const d = {
|
|
|
98
98
|
viewBox: "0 0 8 14",
|
|
99
99
|
fill: "none",
|
|
100
100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
101
|
-
className:
|
|
101
|
+
className: a,
|
|
102
102
|
children: /* @__PURE__ */ t(
|
|
103
103
|
"path",
|
|
104
104
|
{
|
|
105
105
|
d: "M1.25 1.5L6.75 7L1.25 12.5",
|
|
106
|
-
className:
|
|
106
|
+
className: i(w[n], "stroke-[1.6]"),
|
|
107
107
|
strokeLinecap: "round"
|
|
108
108
|
}
|
|
109
109
|
)
|
|
110
110
|
}
|
|
111
|
-
),
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
(o,
|
|
115
|
-
link: o.link,
|
|
116
|
-
title: o.title,
|
|
117
|
-
number:
|
|
118
|
-
show:
|
|
111
|
+
), B = ({ list: n, show: a, setShow: l, isDark: s }) => {
|
|
112
|
+
const e = n[0];
|
|
113
|
+
return a ? /* @__PURE__ */ t("div", { children: n == null ? void 0 : n.map(
|
|
114
|
+
(o, r) => p({
|
|
115
|
+
link: o == null ? void 0 : o.link,
|
|
116
|
+
title: o == null ? void 0 : o.title,
|
|
117
|
+
number: r,
|
|
118
|
+
show: a,
|
|
119
119
|
setShow: l,
|
|
120
|
-
isDark:
|
|
120
|
+
isDark: s
|
|
121
121
|
})
|
|
122
122
|
) }) : p({
|
|
123
|
-
link:
|
|
124
|
-
title:
|
|
125
|
-
show:
|
|
123
|
+
link: e == null ? void 0 : e.link,
|
|
124
|
+
title: e == null ? void 0 : e.title,
|
|
125
|
+
show: a,
|
|
126
126
|
setShow: l,
|
|
127
|
-
isDark:
|
|
127
|
+
isDark: s
|
|
128
128
|
});
|
|
129
129
|
}, p = ({
|
|
130
130
|
link: n,
|
|
131
|
-
number:
|
|
131
|
+
number: a = 0,
|
|
132
132
|
title: l,
|
|
133
|
-
show:
|
|
134
|
-
setShow:
|
|
133
|
+
show: s,
|
|
134
|
+
setShow: e,
|
|
135
135
|
isDark: o
|
|
136
|
-
}) =>
|
|
136
|
+
}) => a === 0 ? /* @__PURE__ */ x(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
role: "button",
|
|
140
140
|
tabIndex: 0,
|
|
141
|
-
className:
|
|
141
|
+
className: i(
|
|
142
142
|
"text-[13px] font-regular relative py-[10px] cursor-pointer",
|
|
143
143
|
o ? "text-white" : "text-blue2"
|
|
144
144
|
),
|
|
145
|
-
onClick:
|
|
146
|
-
onKeyDown: (
|
|
147
|
-
(
|
|
145
|
+
onClick: e,
|
|
146
|
+
onKeyDown: (r) => {
|
|
147
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), e());
|
|
148
148
|
},
|
|
149
149
|
children: [
|
|
150
150
|
l,
|
|
151
151
|
/* @__PURE__ */ t("span", { className: "absolute top-[calc(50%-10px)] right-0", children: /* @__PURE__ */ t(
|
|
152
152
|
b,
|
|
153
153
|
{
|
|
154
|
-
className:
|
|
154
|
+
className: i(
|
|
155
155
|
"transition-transform",
|
|
156
|
-
|
|
156
|
+
s ? "rotate-180 [&_path]:stroke-yellowLight" : "[&_path]:stroke-gray2"
|
|
157
157
|
)
|
|
158
158
|
}
|
|
159
159
|
) })
|
|
@@ -164,19 +164,19 @@ const d = {
|
|
|
164
164
|
{
|
|
165
165
|
role: "button",
|
|
166
166
|
tabIndex: 0,
|
|
167
|
-
className:
|
|
167
|
+
className: i(
|
|
168
168
|
"py-[5px] pl-[10px] cursor-pointer",
|
|
169
169
|
"last:py-[5px] last:pb-[15px]"
|
|
170
170
|
),
|
|
171
|
-
onClick:
|
|
172
|
-
onKeyDown: (
|
|
173
|
-
(
|
|
171
|
+
onClick: e,
|
|
172
|
+
onKeyDown: (r) => {
|
|
173
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), e());
|
|
174
174
|
},
|
|
175
175
|
children: /* @__PURE__ */ t(
|
|
176
176
|
"a",
|
|
177
177
|
{
|
|
178
178
|
href: n,
|
|
179
|
-
className:
|
|
179
|
+
className: i(
|
|
180
180
|
"text-[13px] font-regular",
|
|
181
181
|
o ? "text-white" : "text-siren"
|
|
182
182
|
),
|
|
@@ -184,35 +184,35 @@ const d = {
|
|
|
184
184
|
}
|
|
185
185
|
)
|
|
186
186
|
}
|
|
187
|
-
), A = ({ listNavigation: n, isDark:
|
|
188
|
-
const [l,
|
|
187
|
+
), A = ({ listNavigation: n, isDark: a }) => {
|
|
188
|
+
const [l, s] = d(!1);
|
|
189
189
|
return /* @__PURE__ */ x("div", { children: [
|
|
190
|
-
/* @__PURE__ */ t("div", { className: "flex flex-col max-mobile:hidden", children: n.map((
|
|
191
|
-
const
|
|
190
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col max-mobile:hidden", children: n.map((e, o) => {
|
|
191
|
+
const r = o === 0, c = r ? "black" : "grayBlue", g = r ? "lightGrey" : "grey";
|
|
192
192
|
return /* @__PURE__ */ t(
|
|
193
193
|
"div",
|
|
194
194
|
{
|
|
195
195
|
className: "mb-3 last:mb-0",
|
|
196
196
|
children: /* @__PURE__ */ t(
|
|
197
|
-
|
|
197
|
+
y,
|
|
198
198
|
{
|
|
199
199
|
size: "small",
|
|
200
|
-
link:
|
|
201
|
-
label:
|
|
202
|
-
color:
|
|
203
|
-
icon:
|
|
204
|
-
fontWeight:
|
|
200
|
+
link: e == null ? void 0 : e.link,
|
|
201
|
+
label: e == null ? void 0 : e.title,
|
|
202
|
+
color: a ? g : c,
|
|
203
|
+
icon: r && /* @__PURE__ */ t(N, { variant: "gray" }),
|
|
204
|
+
fontWeight: r ? "semiBold" : "regular"
|
|
205
205
|
}
|
|
206
206
|
)
|
|
207
207
|
},
|
|
208
208
|
o
|
|
209
209
|
);
|
|
210
210
|
}) }),
|
|
211
|
-
/* @__PURE__ */ t("div", { className: "hidden max-mobile:block", children:
|
|
211
|
+
/* @__PURE__ */ t("div", { className: "hidden max-mobile:block", children: B({
|
|
212
212
|
list: n,
|
|
213
213
|
show: l,
|
|
214
|
-
setShow: () =>
|
|
215
|
-
isDark:
|
|
214
|
+
setShow: () => s(!l),
|
|
215
|
+
isDark: a
|
|
216
216
|
}) })
|
|
217
217
|
] });
|
|
218
218
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { ListNavigation as
|
|
4
|
-
const x = ({ footers:
|
|
5
|
-
const
|
|
6
|
-
return
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "../../../cn-6a4bf187.js";
|
|
3
|
+
import { ListNavigation as m } from "../ListNavigation/ListNavigation.js";
|
|
4
|
+
const x = ({ footers: r, isDark: b = !1 }) => {
|
|
5
|
+
const i = [];
|
|
6
|
+
return r == null || r.forEach((a, o) => {
|
|
7
|
+
var e;
|
|
8
|
+
i.push([{ title: a.title, link: a.path }]), (e = a.sub_items) == null || e.forEach((l) => {
|
|
9
|
+
i[o].push({ title: l == null ? void 0 : l.title, link: l == null ? void 0 : l.path });
|
|
10
10
|
});
|
|
11
|
-
}),
|
|
11
|
+
}), i.length ? /* @__PURE__ */ n("div", { className: "flex pb-[100px] max-mobile:pb-6 max-mobile:flex-col", children: i.map((a, o) => /* @__PURE__ */ n(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
className:
|
|
14
|
+
className: t(
|
|
15
15
|
"w-1/4 max-mobile:w-full max-mobile:border-b max-mobile:border-[#ecf0f0] max-mobile:last:border-none",
|
|
16
|
-
|
|
16
|
+
b && "!border-b !border-lightBlue9"
|
|
17
17
|
),
|
|
18
|
-
children: /* @__PURE__ */
|
|
19
|
-
|
|
18
|
+
children: /* @__PURE__ */ n(
|
|
19
|
+
m,
|
|
20
20
|
{
|
|
21
|
-
listNavigation:
|
|
22
|
-
isDark:
|
|
21
|
+
listNavigation: a,
|
|
22
|
+
isDark: b
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
o
|
|
27
27
|
)) }) : null;
|
|
28
28
|
};
|
|
29
29
|
export {
|
package/dist/Header/Header.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../cn-6a4bf187.js";
|
|
3
3
|
import "../useScreenSize-c1b64c02.js";
|
|
4
|
-
import { H as e } from "../index-
|
|
4
|
+
import { H as e } from "../index-3f94ad07.js";
|
|
5
5
|
import "./components/HeaderWeb/HeaderWeb.js";
|
|
6
6
|
export {
|
|
7
7
|
e as Header
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { a as
|
|
4
|
-
import { I as
|
|
5
|
-
const
|
|
6
|
-
const [a, d] =
|
|
7
|
-
|
|
8
|
-
),
|
|
9
|
-
d(
|
|
10
|
-
},
|
|
11
|
-
(
|
|
1
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f } from "react";
|
|
3
|
+
import { a as x } from "../../../cn-6a4bf187.js";
|
|
4
|
+
import { I as u } from "../../../index-2265d593.js";
|
|
5
|
+
const w = ({ categories: n, activeSubcategory: l, openResult: p }) => {
|
|
6
|
+
const [a, d] = f(
|
|
7
|
+
n.length > 0 ? n[0].id : 1
|
|
8
|
+
), e = (r) => {
|
|
9
|
+
d(r), l(r), p(!0);
|
|
10
|
+
}, c = (r, t) => {
|
|
11
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), e(t));
|
|
12
12
|
};
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ o("div", { className: "flex flex-col gap-4 border-r border-[#E0E5E8] py-5 pl-5 pr-0 w-full max-w-[272px]", children: n == null ? void 0 : n.map((r) => /* @__PURE__ */ s(
|
|
14
14
|
"button",
|
|
15
15
|
{
|
|
16
16
|
type: "button",
|
|
17
|
-
onClick: () =>
|
|
18
|
-
onKeyDown: (
|
|
19
|
-
className:
|
|
17
|
+
onClick: () => e(r.id),
|
|
18
|
+
onKeyDown: (t) => c(t, r.id),
|
|
19
|
+
className: x(
|
|
20
20
|
"flex items-center gap-3 text-[#0E0F11] text-[15px] font-medium leading-[22px] cursor-pointer opacity-60 py-1.5 hover:opacity-100 bg-transparent border-none text-left w-full",
|
|
21
|
-
a ===
|
|
21
|
+
a === r.id && "opacity-100 border-r-2 border-green-600"
|
|
22
22
|
),
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
/* @__PURE__ */ o(
|
|
25
|
+
u,
|
|
26
26
|
{
|
|
27
|
-
src:
|
|
28
|
-
alt:
|
|
27
|
+
src: r.icon,
|
|
28
|
+
alt: r == null ? void 0 : r.title,
|
|
29
29
|
width: 20,
|
|
30
30
|
height: 20
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ o("span", { children: r == null ? void 0 : r.title })
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
r.id
|
|
37
37
|
)) });
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
w as default
|
|
41
41
|
};
|
|
@@ -5,7 +5,7 @@ import "../../../ConfigProvider/index.js";
|
|
|
5
5
|
import "../../../Banner/Banner.js";
|
|
6
6
|
import "../../../BannerAndText/index.js";
|
|
7
7
|
import "../../../cn-6a4bf187.js";
|
|
8
|
-
import { g as T } from "../../../index-
|
|
8
|
+
import { g as T } from "../../../index-3f94ad07.js";
|
|
9
9
|
import "../../../HtmlContent/HtmlContent.js";
|
|
10
10
|
import "../TabsOutlined/TabsOutlined.js";
|
|
11
11
|
import "../../../index-6af94f99.js";
|
|
@@ -4,7 +4,7 @@ import "../../const.js";
|
|
|
4
4
|
import "../../../index-3a534581.js";
|
|
5
5
|
import "../../../cn-6a4bf187.js";
|
|
6
6
|
import "../HeaderMainMobile/HeaderMainMobile.js";
|
|
7
|
-
import { h as d } from "../../../index-
|
|
7
|
+
import { h as d } from "../../../index-3f94ad07.js";
|
|
8
8
|
import "../HeaderSearchMobile/HeaderSearchMobile.js";
|
|
9
9
|
export {
|
|
10
10
|
d as HeaderMobile
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
2
|
import { c as s } from "../../../cn-6a4bf187.js";
|
|
3
|
-
const
|
|
4
|
-
item:
|
|
5
|
-
activeTab:
|
|
6
|
-
onTabClick:
|
|
7
|
-
onTabHover:
|
|
3
|
+
const c = ({
|
|
4
|
+
item: n,
|
|
5
|
+
activeTab: r,
|
|
6
|
+
onTabClick: e,
|
|
7
|
+
onTabHover: t,
|
|
8
8
|
onTabLeave: p,
|
|
9
9
|
className: a
|
|
10
10
|
}) => {
|
|
11
|
-
const d = (
|
|
12
|
-
(
|
|
11
|
+
const d = (o) => {
|
|
12
|
+
(o.key === "Enter" || o.key === " ") && (o.preventDefault(), e(n.link));
|
|
13
13
|
};
|
|
14
14
|
return /* @__PURE__ */ x(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
17
|
className: s(
|
|
18
18
|
"text-graySoft font-inter text-[15px] font-medium leading-[22px] cursor-pointer px-[14px] py-[8px]",
|
|
19
|
-
|
|
19
|
+
n.id === r && "bg-gray-100 rounded-[10px]",
|
|
20
20
|
a
|
|
21
21
|
),
|
|
22
22
|
role: "button",
|
|
23
23
|
tabIndex: 0,
|
|
24
|
-
onClick: () =>
|
|
24
|
+
onClick: () => e(n.link),
|
|
25
25
|
onKeyDown: d,
|
|
26
|
-
onMouseEnter: () =>
|
|
27
|
-
onMouseLeave: () => p(
|
|
28
|
-
children:
|
|
26
|
+
onMouseEnter: () => t({ id: n.id, type: n.type, data: n.categories }),
|
|
27
|
+
onMouseLeave: () => p(n.type),
|
|
28
|
+
children: n == null ? void 0 : n.title
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
c as HeaderTab
|
|
34
34
|
};
|
|
@@ -5,28 +5,28 @@ import { M as k } from "../../../mousewheel-865ae601.js";
|
|
|
5
5
|
import { R as S } from "../../../routes-382632ac.js";
|
|
6
6
|
import { c as y } from "../../../cn-6a4bf187.js";
|
|
7
7
|
import '../../../assets/swiper.css';/* empty css */m.use([b, k]);
|
|
8
|
-
const R = ({ sectionsData:
|
|
8
|
+
const R = ({ sectionsData: e, setCategoriesData: a }) => {
|
|
9
9
|
f(() => {
|
|
10
|
-
|
|
11
|
-
}, [
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
window.location.href =
|
|
10
|
+
e.length > 0 && a(e[0].categories);
|
|
11
|
+
}, [e, a]);
|
|
12
|
+
const t = (o, r, n) => {
|
|
13
|
+
if (r) {
|
|
14
|
+
window.location.href = r;
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
window.location.href = S.MAIN_PAGE,
|
|
18
|
-
},
|
|
19
|
-
if (!
|
|
17
|
+
window.location.href = S.MAIN_PAGE, a(n);
|
|
18
|
+
}, s = window.location.pathname.startsWith("/") ? window.location.pathname.slice(1) : window.location.pathname, c = (o) => {
|
|
19
|
+
if (!o)
|
|
20
20
|
return "";
|
|
21
21
|
try {
|
|
22
|
-
return new URL(
|
|
22
|
+
return new URL(o).pathname;
|
|
23
23
|
} catch {
|
|
24
|
-
return
|
|
24
|
+
return o;
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
const n =
|
|
28
|
-
(h) =>
|
|
29
|
-
), u = (
|
|
26
|
+
}, i = (o) => o ? c(o).replace(/^\//, "").split("?")[0].split("#")[0] : "", d = (o, r) => {
|
|
27
|
+
const n = i(s), p = i(o.link), w = e.some(
|
|
28
|
+
(h) => i(h.link) === n
|
|
29
|
+
), u = (o == null ? void 0 : o.link) && p === n || !(o != null && o.link) && (!w || !s) && r === 0;
|
|
30
30
|
return y(
|
|
31
31
|
"swiper-slide w-auto",
|
|
32
32
|
u && "bg-yellowLight rounded-xl [&_.tab]:bg-yellowLight [&_.tab]:rounded-xl"
|
|
@@ -38,14 +38,14 @@ const R = ({ sectionsData: r, setCategoriesData: i }) => {
|
|
|
38
38
|
spaceBetween: 8,
|
|
39
39
|
slidesPerView: "auto",
|
|
40
40
|
mousewheel: !0,
|
|
41
|
-
children:
|
|
41
|
+
children: e == null ? void 0 : e.map((o, r) => /* @__PURE__ */ l(
|
|
42
42
|
x,
|
|
43
43
|
{
|
|
44
|
-
className: d(
|
|
45
|
-
onClick: () =>
|
|
46
|
-
children: /* @__PURE__ */ l("div", { className: "py-2.5 px-4 rounded-xl bg-[#f4f6f7] text-[#0e0f11] text-sm font-medium leading-5 tab", children:
|
|
44
|
+
className: d(o, r),
|
|
45
|
+
onClick: () => t(o.id, o.link, o.categories),
|
|
46
|
+
children: /* @__PURE__ */ l("div", { className: "py-2.5 px-4 rounded-xl bg-[#f4f6f7] text-[#0e0f11] text-sm font-medium leading-5 tab", children: o == null ? void 0 : o.title })
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
r
|
|
49
49
|
))
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { S as p, N as u, a as d, b as
|
|
3
|
-
import { M as
|
|
4
|
-
import { c as
|
|
5
|
-
p.use([u,
|
|
2
|
+
import { S as p, N as u, a as d, b as c } from "../../../swiper-react-90953710.js";
|
|
3
|
+
import { M as f } from "../../../mousewheel-865ae601.js";
|
|
4
|
+
import { c as i } from "../../../cn-6a4bf187.js";
|
|
5
|
+
p.use([u, f]);
|
|
6
6
|
const w = ({
|
|
7
7
|
navigation: r,
|
|
8
8
|
onClick: l,
|
|
@@ -18,7 +18,7 @@ const w = ({
|
|
|
18
18
|
return null;
|
|
19
19
|
const o = n === e.id;
|
|
20
20
|
return /* @__PURE__ */ t(
|
|
21
|
-
|
|
21
|
+
c,
|
|
22
22
|
{
|
|
23
23
|
className: "!w-auto",
|
|
24
24
|
children: /* @__PURE__ */ a("div", { className: "mr-6 pb-2 flex items-center gap-2", children: [
|
|
@@ -30,11 +30,11 @@ const w = ({
|
|
|
30
30
|
onKeyDown: (s) => {
|
|
31
31
|
(s.key === "Enter" || s.key === " ") && (s.preventDefault(), l(e.id));
|
|
32
32
|
},
|
|
33
|
-
className:
|
|
33
|
+
className: i(
|
|
34
34
|
"text-[16px] font-medium cursor-pointer select-none m-0 inline-flex items-center justify-center text-[#3E454C] leading-[24px] relative bg-transparent border-none p-0",
|
|
35
35
|
o && "text-[#0E0F11] font-medium after:absolute after:top-[30px] after:right-0 after:w-full after:border-b-[1.5px] after:border-[#16A34A]"
|
|
36
36
|
),
|
|
37
|
-
children: e.title
|
|
37
|
+
children: e == null ? void 0 : e.title
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
40
|
/* @__PURE__ */ t("span", { className: "text-[#0E0F11] text-[14px] leading-[20px] px-2 py-[2px] rounded-full bg-[#DDE2E6] font-['tabular-nums']", children: e.count })
|
package/dist/Header/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../InfoBanner/index.js";
|
|
3
|
-
import { a as n } from "../index-
|
|
3
|
+
import { a as n } from "../index-3f94ad07.js";
|
|
4
4
|
import "../ComponentContainer-cdb2528c.js";
|
|
5
5
|
import "../cn-6a4bf187.js";
|
|
6
6
|
import "../useScreenSize-c1b64c02.js";
|
|
@@ -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 { I as s, j as a } from "../index-
|
|
5
|
+
import { I as s, j as a } from "../index-3f94ad07.js";
|
|
6
6
|
export {
|
|
7
7
|
s as InstructionList,
|
|
8
8
|
a as cards
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { d as U, i as V } from "../../../index-
|
|
3
|
+
import { d as U, i as V } from "../../../index-3f94ad07.js";
|
|
4
4
|
import "../../../ConfigProvider/index.js";
|
|
5
5
|
import "../../../Banner/Banner.js";
|
|
6
6
|
import "../../../BannerAndText/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../ConfigProvider/index.js";
|
|
2
2
|
import "../Banner/Banner.js";
|
|
3
3
|
import "../BannerAndText/index.js";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-3f94ad07.js";
|
|
5
5
|
import "../Footer/Footer.js";
|
|
6
6
|
import "../Stepper/Stepper.js";
|
|
7
7
|
import "../Segments/Segments.js";
|