md-components-mdigial-azamat 0.0.74 → 0.0.77
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 +6 -5
- package/dist/Banner/Banner.js +1 -1
- package/dist/BannerAndText/index.js +1 -1
- package/dist/CardIconList/CardIconList.js +10 -10
- package/dist/CardImageList/CardImageList.js +2 -2
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +1 -1
- package/dist/CardInfoTable/index.js +1 -1
- package/dist/Cards/WarningCard/WarningCard.js +51 -45
- package/dist/{ComponentContainer-68340535.js → ComponentContainer-841196f9.js} +3 -3
- package/dist/ContentCardList/ContentCardList.js +1 -1
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +15 -15
- package/dist/DownloadFile/components/DownloadFileBright/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +43 -39
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +55 -51
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
- package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +50 -0
- package/dist/DownloadFile/components/FileBannerSecondary/index.js +4 -0
- package/dist/DownloadFile/components/FileBannerSecondary/info.js +11 -0
- package/dist/Faq/Faq.js +1 -1
- package/dist/Forms/FormDefault/index.js +1 -1
- package/dist/Header/Header.js +37 -34
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +82 -76
- package/dist/Header/components/SelectLanguage/SelectLanguage.js +20 -16
- package/dist/InfoBannerList/InfoBannerList.js +1 -1
- package/dist/InstructionList/InstructionList.js +1 -1
- package/dist/IntroBanner/IntroBanner.js +1 -1
- package/dist/MainBanner/MainBanner.js +1 -1
- package/dist/MultiCards/index.js +4 -4
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/Partners/Partners.js +14 -14
- package/dist/PartnersColors/PartnersColors.js +15 -8
- package/dist/PreviewList/PreviewList.js +16 -16
- package/dist/PromoPoster/PromoPoster.js +1 -1
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/StandartTable/index.js +1 -1
- package/dist/Stepper/Stepper.js +1 -1
- package/dist/SwiperList/SwiperList.js +1 -1
- package/dist/TasksBannerList/TasksBannerList.js +1 -1
- package/dist/Video/VideoFull/VideoFull.js +1 -1
- package/dist/Video/VideoList/VideoList.js +4 -4
- package/dist/Video/VideoListMini/VideoListMini.js +1 -1
- package/dist/VideoMainBanner/VideoMainBanner.js +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/componentsMap-ae33b476.js +99 -0
- package/dist/{data.mock-8db3fb9a.js → data.mock-30d53d62.js} +26 -24
- package/dist/main.js +21 -19
- package/package.json +1 -1
- package/dist/componentsMap-153c7a30.js +0 -97
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { downloadFile as m } from "../../../Actions/downloadFile/downloadFile.js";
|
|
3
|
+
import { I as l } from "../../../Icon-70ea6cb8.js";
|
|
4
|
+
import { p as a } from "../../../palette-c2fe86ec.js";
|
|
5
|
+
import { B as p } from "../../../index-875e92ce.js";
|
|
6
|
+
import { C as s } from "../../../ComponentContainer-841196f9.js";
|
|
7
|
+
import { u as x } from "../../../useScreenSize-c1b64c02.js";
|
|
8
|
+
const c = ["title", "text", "link"], d = ({
|
|
9
|
+
title: o,
|
|
10
|
+
text: i,
|
|
11
|
+
link: r
|
|
12
|
+
}) => {
|
|
13
|
+
const n = x(960);
|
|
14
|
+
return /* @__PURE__ */ e(s, { children: /* @__PURE__ */ t("div", { className: "p-[48px] max-tablet:p-[32px] bg-white rounded-[20px] flex justify-between gap-[64px] max-tablet:flex-col-reverse max-tablet:gap-[32px]", children: [
|
|
15
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col ", children: /* @__PURE__ */ t("div", { children: [
|
|
16
|
+
/* @__PURE__ */ e("p", { className: "text-[32px] max-tablet:text-[24px] leading-10 max-tablet:leading-[28px] font-bold mb-4 max-tablet:mb-[16px]", children: o }),
|
|
17
|
+
/* @__PURE__ */ e("p", { className: "text-[16px] leading-6", children: i }),
|
|
18
|
+
/* @__PURE__ */ e(
|
|
19
|
+
p,
|
|
20
|
+
{
|
|
21
|
+
onClick: () => m({ props: { link: r } }),
|
|
22
|
+
iconRight: /* @__PURE__ */ e(
|
|
23
|
+
l,
|
|
24
|
+
{
|
|
25
|
+
name: "download",
|
|
26
|
+
size: 20,
|
|
27
|
+
color: a.blackBG
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
className: "w-fit max-tablet:w-full mt-8",
|
|
31
|
+
children: "Скачать"
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] }) }),
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
l,
|
|
37
|
+
{
|
|
38
|
+
className: "flex-shrink-0",
|
|
39
|
+
name: "file",
|
|
40
|
+
color: a.greenLight,
|
|
41
|
+
size: n ? 56 : 82
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] }) });
|
|
45
|
+
};
|
|
46
|
+
d.propsToEdit = c;
|
|
47
|
+
export {
|
|
48
|
+
d as FileBannerSecondary,
|
|
49
|
+
c as propsToEdit
|
|
50
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { C as o } from "../../../index-b826f1c7.js";
|
|
2
|
+
import { propsToEdit as n } from "./FileBannerSecondary.js";
|
|
3
|
+
const r = {
|
|
4
|
+
title: "Баннер загрузки файла",
|
|
5
|
+
description: "Компонент баннера для скачивания файлов с заголовком, описанием и ссылкой на файл. Используется для привлечения внимания к возможности загрузки документов или файлов.",
|
|
6
|
+
types: [o.downloads, o.banners],
|
|
7
|
+
propsToEdit: n
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
r as downloadFileBannerInfo
|
|
11
|
+
};
|
package/dist/Faq/Faq.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Collapse as e } from "./components/Collapse/Collapse.js";
|
|
|
3
3
|
import { FeedbackForm as t } from "./components/FeedbackForm/FeedbackForm.js";
|
|
4
4
|
import { HtmlContent as x } from "../HtmlContent/HtmlContent.js";
|
|
5
5
|
import { FieldTypes as p } from "../Types/FiledTypes.js";
|
|
6
|
-
import { C as c } from "../ComponentContainer-
|
|
6
|
+
import { C as c } from "../ComponentContainer-841196f9.js";
|
|
7
7
|
const d = {
|
|
8
8
|
type: "data",
|
|
9
9
|
label: "Вопрос",
|
|
@@ -4,7 +4,7 @@ import { u as P } from "../../index.esm-67811428.js";
|
|
|
4
4
|
import { B as L } from "../../index-875e92ce.js";
|
|
5
5
|
import { a as R, b as D } from "../../const-53dff524.js";
|
|
6
6
|
import { c as x } from "../../cn-6a4bf187.js";
|
|
7
|
-
import { C as E } from "../../ComponentContainer-
|
|
7
|
+
import { C as E } from "../../ComponentContainer-841196f9.js";
|
|
8
8
|
import { u as M } from "../../useScreenSize-c1b64c02.js";
|
|
9
9
|
const B = S(
|
|
10
10
|
({ className: i, label: s, error: o, ...n }, l) => /* @__PURE__ */ a("div", { className: "w-full", children: [
|
package/dist/Header/Header.js
CHANGED
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { H as
|
|
4
|
-
import { L as
|
|
5
|
-
import { R as
|
|
6
|
-
import { c as
|
|
7
|
-
import { u as
|
|
8
|
-
import { HeaderMobile as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as t, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useEffect as u } from "react";
|
|
3
|
+
import { H as h } from "../index.module-c8833286.js";
|
|
4
|
+
import { L as w } from "../languages-list-87ab3324.js";
|
|
5
|
+
import { R as L } from "../routes-76228734.js";
|
|
6
|
+
import { c as v } from "../cn-6a4bf187.js";
|
|
7
|
+
import { u as S } from "../useScreenSize-c1b64c02.js";
|
|
8
|
+
import { HeaderMobile as E } from "./components/HeaderMobile/HeaderMobile.js";
|
|
9
|
+
import y from "./components/HeaderWeb/HeaderWeb.js";
|
|
10
|
+
const A = "app_language", H = () => localStorage.getItem(A) || w.RU, P = ({ darkTheme: a, app_setting: o }) => {
|
|
11
|
+
console.log(o);
|
|
12
|
+
const l = S(960), [d, m] = f(null);
|
|
13
|
+
u(() => {
|
|
14
|
+
const n = async () => {
|
|
14
15
|
try {
|
|
15
|
-
const
|
|
16
|
-
|
|
16
|
+
const s = H(), g = window.location.pathname.startsWith(L.ISLAM) ? "M_ISLAMIC" : "", { data: e } = await h.getHeaderSections(
|
|
17
|
+
s,
|
|
17
18
|
g
|
|
18
19
|
);
|
|
19
|
-
e && (Array.isArray(e) || typeof e == "object") ?
|
|
20
|
-
} catch (
|
|
21
|
-
console.error("Error fetching header data:",
|
|
20
|
+
e && (Array.isArray(e) || typeof e == "object") ? m(e) : console.warn("Header data is null or invalid:", e);
|
|
21
|
+
} catch (s) {
|
|
22
|
+
console.error("Error fetching header data:", s);
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
|
-
|
|
25
|
-
const r = () => {
|
|
26
|
-
o();
|
|
27
|
-
};
|
|
28
|
-
window.addEventListener("languageChange", r);
|
|
25
|
+
n();
|
|
29
26
|
const i = () => {
|
|
30
|
-
|
|
27
|
+
n();
|
|
28
|
+
};
|
|
29
|
+
window.addEventListener("languageChange", i);
|
|
30
|
+
const c = () => {
|
|
31
|
+
n();
|
|
31
32
|
};
|
|
32
|
-
return window.addEventListener("popstate",
|
|
33
|
-
window.removeEventListener("languageChange",
|
|
33
|
+
return window.addEventListener("popstate", c), () => {
|
|
34
|
+
window.removeEventListener("languageChange", i), window.removeEventListener("popstate", c);
|
|
34
35
|
};
|
|
35
36
|
}, []);
|
|
36
|
-
const
|
|
37
|
-
return /* @__PURE__ */ t(
|
|
38
|
-
|
|
37
|
+
const r = d || [];
|
|
38
|
+
return /* @__PURE__ */ t(p, { children: l ? /* @__PURE__ */ t(
|
|
39
|
+
E,
|
|
39
40
|
{
|
|
40
|
-
|
|
41
|
+
app_setting: o,
|
|
42
|
+
sections: r,
|
|
41
43
|
darkTheme: a,
|
|
42
44
|
className: "fixed top-0 z-[9999] w-full"
|
|
43
45
|
}
|
|
44
46
|
) : /* @__PURE__ */ t(
|
|
45
47
|
"div",
|
|
46
48
|
{
|
|
47
|
-
className:
|
|
49
|
+
className: v(
|
|
48
50
|
"fixed top-0 z-[9999] w-full h-[70px] bg-white flex items-center justify-center py-[9px]"
|
|
49
51
|
),
|
|
50
52
|
children: /* @__PURE__ */ t(
|
|
51
|
-
|
|
53
|
+
y,
|
|
52
54
|
{
|
|
53
|
-
|
|
55
|
+
app_setting: o,
|
|
56
|
+
sections: r,
|
|
54
57
|
darkTheme: a
|
|
55
58
|
}
|
|
56
59
|
)
|
|
@@ -58,5 +61,5 @@ const y = "app_language", A = () => localStorage.getItem(y) || h.RU, G = ({ dark
|
|
|
58
61
|
) });
|
|
59
62
|
};
|
|
60
63
|
export {
|
|
61
|
-
|
|
64
|
+
P as Header
|
|
62
65
|
};
|
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l, useMemo as f } from "react";
|
|
3
|
-
import { M as
|
|
4
|
-
import { S as
|
|
5
|
-
import { a as
|
|
6
|
-
import { R as
|
|
7
|
-
import { u as
|
|
8
|
-
import { I } from "../../../index-9384c6d6.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { HeaderTab as
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
-
|
|
3
|
+
import { M as E, G as O } from "../../../logo-99aa20bd.js";
|
|
4
|
+
import { S as P } from "../../../search-dd4eb6f8.js";
|
|
5
|
+
import { a as L } from "../../../cn-6a4bf187.js";
|
|
6
|
+
import { R as g } from "../../../routes-76228734.js";
|
|
7
|
+
import { u as q } from "../../../useClickOutside-197b0df2.js";
|
|
8
|
+
import { I as T } from "../../../index-9384c6d6.js";
|
|
9
|
+
import B from "../HeaderMenu/HeaderMenu.js";
|
|
10
|
+
import F from "../HeaderResults/HeaderResults.js";
|
|
11
|
+
import J from "../HeaderSearch/HeaderSearch.js";
|
|
12
|
+
import { HeaderTab as C } from "../HeaderTab/HeaderTab.js";
|
|
13
|
+
import K from "../SelectLanguage/SelectLanguage.js";
|
|
14
|
+
const Q = "category", H = "link", le = ({ sections: r, darkTheme: b, app_setting: u }) => {
|
|
15
|
+
var k;
|
|
16
|
+
const [p, n] = l(null), [d, x] = l(!1), [m, t] = l(!1), [o, y] = l(
|
|
16
17
|
[]
|
|
17
|
-
), [
|
|
18
|
-
|
|
19
|
-
}),
|
|
18
|
+
), [c, h] = l(0), { ref: M } = q(m, () => {
|
|
19
|
+
t(!1), n(null), h(0);
|
|
20
|
+
}), w = (e) => {
|
|
20
21
|
window.location.href = e || "/";
|
|
21
|
-
}, w = (e) => {
|
|
22
|
-
const { type: A, id: G, data: _ } = e;
|
|
23
|
-
A === F && (x(_), a(!0)), A === H && (a(!1), x([])), n(G);
|
|
24
22
|
}, v = (e) => {
|
|
23
|
+
const { type: I, id: D, data: W } = e;
|
|
24
|
+
I === Q && (y(W), t(!0)), I === H && (t(!1), y([])), n(D);
|
|
25
|
+
}, S = (e) => {
|
|
25
26
|
e === H && n(null);
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
return /* @__PURE__ */
|
|
27
|
+
}, N = () => {
|
|
28
|
+
x(!d), t(!1);
|
|
29
|
+
}, R = () => {
|
|
30
|
+
h(0), t(!1), n(null);
|
|
31
|
+
}, A = f(() => o.find((e) => e.id === c), [c, o]), j = window.location.pathname.startsWith(g.ISLAM), i = f(() => Array.isArray(r) ? r : r ? [r] : [], [r]), G = f(() => i.filter((e) => !e.is_left), [i]), z = f(() => i.filter((e) => e.is_left), [i]);
|
|
32
|
+
return /* @__PURE__ */ s(
|
|
32
33
|
"header",
|
|
33
34
|
{
|
|
34
|
-
className:
|
|
35
|
+
className: L(
|
|
35
36
|
"relative w-full container bg-white",
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
b && "bg-gray-900 text-white transition-all duration-500",
|
|
38
|
+
m && b && "bg-white text-gray-700"
|
|
38
39
|
),
|
|
39
40
|
children: [
|
|
40
|
-
!d && /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
!d && /* @__PURE__ */ s("div", { className: "flex items-center h-13 px-6 lg:px-0 max-w-[1200px] mx-auto", children: [
|
|
42
|
+
/* @__PURE__ */ a(
|
|
42
43
|
"a",
|
|
43
44
|
{
|
|
44
|
-
href:
|
|
45
|
+
href: j ? g.ISLAM : g.MAIN_PAGE,
|
|
45
46
|
className: "flex items-center gap-6 mr-12 cursor-pointer",
|
|
46
|
-
children: /* @__PURE__ */
|
|
47
|
-
|
|
47
|
+
children: /* @__PURE__ */ a(
|
|
48
|
+
T,
|
|
48
49
|
{
|
|
49
|
-
src:
|
|
50
|
+
src: E,
|
|
50
51
|
alt: "Logo",
|
|
51
52
|
width: 120,
|
|
52
53
|
height: 34
|
|
@@ -54,44 +55,49 @@ const F = "category", H = "link", se = ({ sections: r, darkTheme: p }) => {
|
|
|
54
55
|
)
|
|
55
56
|
}
|
|
56
57
|
),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
(e) => e && /* @__PURE__ */
|
|
60
|
-
|
|
58
|
+
/* @__PURE__ */ s("div", { className: "flex items-center justify-between flex-grow", children: [
|
|
59
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: G.map(
|
|
60
|
+
(e) => e && /* @__PURE__ */ a(
|
|
61
|
+
C,
|
|
61
62
|
{
|
|
62
63
|
item: e,
|
|
63
|
-
activeTab:
|
|
64
|
-
onTabClick:
|
|
65
|
-
onTabHover:
|
|
66
|
-
onTabLeave:
|
|
64
|
+
activeTab: p,
|
|
65
|
+
onTabClick: w,
|
|
66
|
+
onTabHover: v,
|
|
67
|
+
onTabLeave: S
|
|
67
68
|
},
|
|
68
69
|
e == null ? void 0 : e.id
|
|
69
70
|
)
|
|
70
71
|
) }),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
(e) => e && /* @__PURE__ */
|
|
74
|
-
|
|
72
|
+
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
73
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 pr-6 border-r border-gray-300 mr-4", children: z.map(
|
|
74
|
+
(e) => e && /* @__PURE__ */ a(
|
|
75
|
+
C,
|
|
75
76
|
{
|
|
76
77
|
item: e,
|
|
77
|
-
activeTab:
|
|
78
|
-
onTabClick:
|
|
79
|
-
onTabHover:
|
|
80
|
-
onTabLeave:
|
|
78
|
+
activeTab: p,
|
|
79
|
+
onTabClick: w,
|
|
80
|
+
onTabHover: v,
|
|
81
|
+
onTabLeave: S
|
|
81
82
|
},
|
|
82
83
|
e == null ? void 0 : e.id
|
|
83
84
|
)
|
|
84
85
|
) }),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
86
|
+
/* @__PURE__ */ a(
|
|
87
|
+
K,
|
|
88
|
+
{
|
|
89
|
+
onChangeLanguage: (k = u == null ? void 0 : u.locale) == null ? void 0 : k.changeLanguage
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
/* @__PURE__ */ a(
|
|
87
93
|
"button",
|
|
88
94
|
{
|
|
89
|
-
onClick:
|
|
95
|
+
onClick: N,
|
|
90
96
|
className: "flex items-center justify-center w-9 h-9 p-1.5 rounded-full bg-gray-200",
|
|
91
|
-
children: /* @__PURE__ */
|
|
92
|
-
|
|
97
|
+
children: /* @__PURE__ */ a(
|
|
98
|
+
T,
|
|
93
99
|
{
|
|
94
|
-
src:
|
|
100
|
+
src: P,
|
|
95
101
|
alt: "search icon",
|
|
96
102
|
width: 18,
|
|
97
103
|
height: 18
|
|
@@ -99,46 +105,46 @@ const F = "category", H = "link", se = ({ sections: r, darkTheme: p }) => {
|
|
|
99
105
|
)
|
|
100
106
|
}
|
|
101
107
|
),
|
|
102
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ a(
|
|
103
109
|
"button",
|
|
104
110
|
{
|
|
105
111
|
"aria-label": "Открыть режим для слабовидящих",
|
|
106
112
|
className: "flex items-center justify-center w-9 h-9 p-1.5 rounded-full bg-gray-200",
|
|
107
|
-
children: /* @__PURE__ */
|
|
113
|
+
children: /* @__PURE__ */ a(O, { size: 16 })
|
|
108
114
|
}
|
|
109
115
|
)
|
|
110
116
|
] })
|
|
111
117
|
] })
|
|
112
118
|
] }),
|
|
113
|
-
d && /* @__PURE__ */
|
|
114
|
-
|
|
119
|
+
d && /* @__PURE__ */ a(
|
|
120
|
+
J,
|
|
115
121
|
{
|
|
116
|
-
closeSearch:
|
|
117
|
-
onClick: () =>
|
|
122
|
+
closeSearch: N,
|
|
123
|
+
onClick: () => x(!1)
|
|
118
124
|
}
|
|
119
125
|
),
|
|
120
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ s(
|
|
121
127
|
"div",
|
|
122
128
|
{
|
|
123
|
-
className:
|
|
129
|
+
className: L(
|
|
124
130
|
"flex bg-white rounded-2xl backdrop-blur-md w-full shadow-lg absolute top-[59px] left-0 z-50 transition-all duration-300 ease-out",
|
|
125
|
-
|
|
131
|
+
m ? "opacity-100 translate-y-0 pointer-events-auto visible" : "opacity-0 -translate-y-5 pointer-events-none invisible"
|
|
126
132
|
),
|
|
127
133
|
ref: M,
|
|
128
134
|
children: [
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
|
|
135
|
+
/* @__PURE__ */ a(
|
|
136
|
+
B,
|
|
131
137
|
{
|
|
132
|
-
categories:
|
|
133
|
-
activeSubcategory:
|
|
134
|
-
openResult:
|
|
138
|
+
categories: o,
|
|
139
|
+
activeSubcategory: h,
|
|
140
|
+
openResult: t
|
|
135
141
|
}
|
|
136
142
|
),
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
A || o[c] ? /* @__PURE__ */ a(
|
|
144
|
+
F,
|
|
139
145
|
{
|
|
140
|
-
data:
|
|
141
|
-
onClick:
|
|
146
|
+
data: A || o[c],
|
|
147
|
+
onClick: R
|
|
142
148
|
}
|
|
143
149
|
) : null
|
|
144
150
|
]
|
|
@@ -149,5 +155,5 @@ const F = "category", H = "link", se = ({ sections: r, darkTheme: p }) => {
|
|
|
149
155
|
);
|
|
150
156
|
};
|
|
151
157
|
export {
|
|
152
|
-
|
|
158
|
+
le as default
|
|
153
159
|
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as d, useEffect as
|
|
1
|
+
import { jsxs as _, jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useEffect as E } from "react";
|
|
3
3
|
import { a as r } from "../../../languages-list-87ab3324.js";
|
|
4
|
-
import { u as
|
|
4
|
+
import { u as C } from "../../../useClickOutside-197b0df2.js";
|
|
5
5
|
import { c as l } from "../../../cn-6a4bf187.js";
|
|
6
|
-
const u = "app_language",
|
|
6
|
+
const u = "app_language", m = ({
|
|
7
|
+
rightPosition: g = !1,
|
|
8
|
+
className: i,
|
|
9
|
+
onChangeLanguage: h
|
|
10
|
+
}) => {
|
|
7
11
|
var x;
|
|
8
12
|
const [s, a] = d(!1), [o, f] = d(
|
|
9
13
|
r[0] || { key: "ru", title: "Русский" }
|
|
10
14
|
);
|
|
11
|
-
|
|
15
|
+
E(() => {
|
|
12
16
|
const e = localStorage.getItem(u);
|
|
13
17
|
if (e) {
|
|
14
18
|
const t = r.find((n) => n.key === e);
|
|
@@ -18,24 +22,24 @@ const u = "app_language", N = ({ rightPosition: g = !1, className: i }) => {
|
|
|
18
22
|
const c = (e) => {
|
|
19
23
|
a(!1);
|
|
20
24
|
const t = r.find((n) => n.key === e);
|
|
21
|
-
t && (f(t), localStorage.setItem(u, e), window.dispatchEvent(
|
|
25
|
+
t && (f(t), localStorage.setItem(u, e), h(e), window.dispatchEvent(
|
|
22
26
|
new CustomEvent("languageChange", { detail: e })
|
|
23
27
|
));
|
|
24
|
-
},
|
|
28
|
+
}, b = (e) => {
|
|
25
29
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), a((t) => !t));
|
|
26
|
-
},
|
|
30
|
+
}, k = (e, t) => {
|
|
27
31
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), c(t));
|
|
28
|
-
},
|
|
32
|
+
}, w = () => {
|
|
29
33
|
a(!s);
|
|
30
|
-
}, { ref:
|
|
31
|
-
return /* @__PURE__ */
|
|
34
|
+
}, { ref: y } = C(s, () => a(!1));
|
|
35
|
+
return /* @__PURE__ */ _(
|
|
32
36
|
"div",
|
|
33
37
|
{
|
|
34
|
-
ref:
|
|
38
|
+
ref: y,
|
|
35
39
|
role: "button",
|
|
36
40
|
tabIndex: 0,
|
|
37
|
-
onClick:
|
|
38
|
-
onKeyDown:
|
|
41
|
+
onClick: w,
|
|
42
|
+
onKeyDown: b,
|
|
39
43
|
className: l(
|
|
40
44
|
"relative flex items-center justify-center rounded-full p-2 bg-[#f4f6f7] w-[36px] h-[36px] cursor-pointer",
|
|
41
45
|
i
|
|
@@ -58,7 +62,7 @@ const u = "app_language", N = ({ rightPosition: g = !1, className: i }) => {
|
|
|
58
62
|
role: "button",
|
|
59
63
|
tabIndex: 0,
|
|
60
64
|
onClick: () => c(e == null ? void 0 : e.key),
|
|
61
|
-
onKeyDown: (
|
|
65
|
+
onKeyDown: (v) => k(v, e == null ? void 0 : e.key),
|
|
62
66
|
className: l(
|
|
63
67
|
"text-[#0b0f19] px-2 py-[10px] text-[16px] leading-[24px] min-w-[164px] cursor-pointer relative rounded-[8px]",
|
|
64
68
|
n && 'bg-[#f4f5f6] after:absolute after:top-[9px] after:right-[10px] after:w-[24px] after:h-[24px] after:bg-[url("/checked.svg")] after:bg-center after:bg-no-repeat'
|
|
@@ -75,5 +79,5 @@ const u = "app_language", N = ({ rightPosition: g = !1, className: i }) => {
|
|
|
75
79
|
);
|
|
76
80
|
};
|
|
77
81
|
export {
|
|
78
|
-
|
|
82
|
+
m as default
|
|
79
83
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { InfoBanner as x, InfoBannerFields as c } from "../InfoBanner/index.js";
|
|
3
3
|
import { c as l } from "../createBoolean-56064b0d.js";
|
|
4
|
-
import { C as f } from "../ComponentContainer-
|
|
4
|
+
import { C as f } from "../ComponentContainer-841196f9.js";
|
|
5
5
|
import { c as a } from "../cn-6a4bf187.js";
|
|
6
6
|
import { u as d } from "../useScreenSize-c1b64c02.js";
|
|
7
7
|
const b = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { B as r } from "../index-875e92ce.js";
|
|
3
3
|
import { c as i } from "../const-53dff524.js";
|
|
4
|
-
import { C as m } from "../ComponentContainer-
|
|
4
|
+
import { C as m } from "../ComponentContainer-841196f9.js";
|
|
5
5
|
import { InstructionCardData as p, InstructionCard as l } from "./components/InstructionCard/InstructionCard.js";
|
|
6
6
|
const x = ["title", "cards", i], C = {
|
|
7
7
|
type: "cards",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { B as b } from "../index-875e92ce.js";
|
|
3
|
-
import { C as c } from "../ComponentContainer-
|
|
3
|
+
import { C as c } from "../ComponentContainer-841196f9.js";
|
|
4
4
|
import { I as e } from "../index-9384c6d6.js";
|
|
5
5
|
import { u as d } from "../useScreenSize-c1b64c02.js";
|
|
6
6
|
const h = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as o, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { B as f } from "../index-875e92ce.js";
|
|
3
3
|
import { c as d } from "../const-53dff524.js";
|
|
4
|
-
import { C as b } from "../ComponentContainer-
|
|
4
|
+
import { C as b } from "../ComponentContainer-841196f9.js";
|
|
5
5
|
import { I as t } from "../index-9384c6d6.js";
|
|
6
6
|
import { c as h } from "../cn-6a4bf187.js";
|
|
7
7
|
const g = [
|
package/dist/MultiCards/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { BannerAndText as p } from "../BannerAndText/index.js";
|
|
3
3
|
import { CardIconList as d } from "../CardIconList/CardIconList.js";
|
|
4
4
|
import { FieldTypes as t } from "../Types/FiledTypes.js";
|
|
5
|
-
import { C as c } from "../ComponentContainer-
|
|
5
|
+
import { C as c } from "../ComponentContainer-841196f9.js";
|
|
6
6
|
const m = {
|
|
7
7
|
type: "banner_card",
|
|
8
8
|
label: "Баннер карточка",
|
|
@@ -59,10 +59,10 @@ const m = {
|
|
|
59
59
|
is_cards_first: l
|
|
60
60
|
}) => /* @__PURE__ */ o(c, { className: "flex flex-col items-center gap-[24px]", children: [
|
|
61
61
|
r && /* @__PURE__ */ a(
|
|
62
|
-
"
|
|
62
|
+
"h2",
|
|
63
63
|
{
|
|
64
|
-
className: `font-bold max-tablet:text-[26px]
|
|
65
|
-
|
|
64
|
+
className: `font-bold text-[44px] max-tablet:text-[26px] max-tablet:leading-[32px] leading-[42px]
|
|
65
|
+
mb-[24px] max-tablet:mb-[8px] font-variant-numeric font-feature-settings`,
|
|
66
66
|
children: r
|
|
67
67
|
}
|
|
68
68
|
),
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { jsx as l, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { FieldTypes as
|
|
3
|
-
import { C as o } from "../ComponentContainer-
|
|
2
|
+
import { FieldTypes as s } from "../Types/FiledTypes.js";
|
|
3
|
+
import { C as o } from "../ComponentContainer-841196f9.js";
|
|
4
4
|
import { I as c } from "../index-9384c6d6.js";
|
|
5
|
-
const
|
|
5
|
+
const n = {
|
|
6
6
|
type: "data",
|
|
7
7
|
label: "Основные данные",
|
|
8
8
|
dataType: "object",
|
|
9
9
|
data: {
|
|
10
10
|
keys: {
|
|
11
|
-
title:
|
|
12
|
-
subtitle:
|
|
11
|
+
title: s.TITLE,
|
|
12
|
+
subtitle: s.DESCRIPTION,
|
|
13
13
|
images: {
|
|
14
14
|
label: "Логотипы",
|
|
15
15
|
dataType: "array",
|
|
16
16
|
type: "images",
|
|
17
17
|
data: {
|
|
18
|
-
logo:
|
|
18
|
+
logo: s.FILE
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
},
|
|
23
|
+
}, p = [n], x = ({ data: e }) => {
|
|
24
24
|
var i;
|
|
25
25
|
return /* @__PURE__ */ l(o, { children: /* @__PURE__ */ r("div", { className: "w-full flex flex-col items-center justify-center", children: [
|
|
26
|
-
(e == null ? void 0 : e.title) && /* @__PURE__ */ l("
|
|
26
|
+
(e == null ? void 0 : e.title) && /* @__PURE__ */ l("h2", { className: "font-bold max-tablet:text-[26px] text-[44px] max-tablet:leading-[32px] leading-[42px] font-variant-numeric font-feature-settings", children: e == null ? void 0 : e.title }),
|
|
27
27
|
(e == null ? void 0 : e.subtitle) && /* @__PURE__ */ l("div", { className: "text-[18px] leading-[26px] text-gray-400 mt-6 text-center max-md:text-[17px] max-md:leading-[24px] max-md:px-6", children: e == null ? void 0 : e.subtitle }),
|
|
28
|
-
/* @__PURE__ */ l("div", { className: "w-full px-4 mt-[48px]", children: /* @__PURE__ */ l("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 gap-4 md:gap-6 justify-center", children: (i = e == null ? void 0 : e.images) == null ? void 0 : i.map((
|
|
28
|
+
/* @__PURE__ */ l("div", { className: "w-full px-4 mt-[48px]", children: /* @__PURE__ */ l("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 gap-4 md:gap-6 justify-center", children: (i = e == null ? void 0 : e.images) == null ? void 0 : i.map((t) => /* @__PURE__ */ l(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
className: "w-full flex items-center justify-center p-2",
|
|
32
32
|
children: /* @__PURE__ */ l(
|
|
33
33
|
c,
|
|
34
34
|
{
|
|
35
|
-
src:
|
|
35
|
+
src: t == null ? void 0 : t.logo,
|
|
36
36
|
alt: e == null ? void 0 : e.title,
|
|
37
37
|
width: 106,
|
|
38
38
|
height: 100,
|
|
@@ -41,12 +41,12 @@ const p = {
|
|
|
41
41
|
}
|
|
42
42
|
)
|
|
43
43
|
},
|
|
44
|
-
|
|
44
|
+
t == null ? void 0 : t.id
|
|
45
45
|
)) }) })
|
|
46
46
|
] }) });
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
x.propsToEdit = p;
|
|
49
49
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
x as Partners,
|
|
51
|
+
p as propsToEdit
|
|
52
52
|
};
|