md-components-mdigial-azamat 0.0.19 → 0.0.24
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 -9
- package/dist/AnimatedSwiper/index.js +64 -42
- package/dist/Banner/Banner.js +2 -2
- package/dist/Banner/index.js +1 -1
- package/dist/Banner/types.js +1 -4
- package/dist/BannerAndText/index.js +27 -35
- package/dist/CardIconList/CardIconList.js +26 -71
- package/dist/CardIconList/index.js +2 -2
- package/dist/CardImageList/CardImageList.js +1 -1
- package/dist/CardImageList/index.js +1 -1
- package/dist/CardImageSecondary/CardImageSecondary.js +27 -48
- package/dist/CardImageSecondary/index.js +2 -2
- package/dist/CardImageSecondaryList/CardImageSecondaryList.js +4 -19
- package/dist/CardImageSecondaryList/index.js +1 -1
- package/dist/CardInfoTable/index.js +23 -3
- package/dist/Cards/CardImage/CardImage.js +32 -18
- package/dist/Cards/ColoredCard/index.js +23 -10
- package/dist/Cards/ContentCard/ContentCard.js +1 -1
- package/dist/Cards/ContentCard/index.js +1 -1
- package/dist/Cards/FeaturesCard/index.js +2 -1
- package/dist/Cards/WarningCard/WarningCard.js +1 -1
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/ContentCardList/ContentCardList.js +23 -2
- package/dist/ContentCardList/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
- package/dist/DownloadFile/components/DownloadFileBanner/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileBright/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
- package/dist/DownloadFile/components/DownloadFileFull/index.js +2 -2
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
- package/dist/DownloadFile/components/DownloadFileHalf/index.js +1 -1
- package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
- package/dist/DownloadFile/components/DownloadFileMini/index.js +1 -1
- package/dist/Faq/Faq.js +20 -2
- package/dist/Faq/components/FeedbackForm/FeedbackForm.js +1 -1
- package/dist/Faq/components/FeedbackForm/index.js +1 -1
- package/dist/Faq/index.js +1 -1
- package/dist/HeroPossibilityBanner/index.js +30 -19
- package/dist/InfoBanner/index.js +3 -2
- package/dist/InfoBannerList/InfoBannerList.js +3 -2
- package/dist/InfoBannerList/index.js +2 -2
- package/dist/InstructionList/InstructionList.js +1 -1
- package/dist/InstructionList/index.js +1 -1
- package/dist/IntroBanner/IntroBanner.js +1 -1
- package/dist/IntroBanner/index.js +1 -1
- package/dist/MainBanner/MainBanner.js +1 -1
- package/dist/MainBanner/index.js +1 -1
- package/dist/MultiCards/index.js +5 -54
- package/dist/PageViewer/PageViewer.js +5 -7
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/Partners/Partners.js +21 -4
- package/dist/PartnersColors/PartnersColors.js +38 -20
- 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 +29 -15
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +5 -5
- package/dist/Segments/Segments.js +15 -7
- package/dist/Space/Space.js +21 -0
- package/dist/Space/index.js +4 -0
- package/dist/StandartTable/components/CardWarning/index.js +1 -1
- package/dist/StandartTable/index.js +3 -2
- package/dist/Stepper/Stepper.js +2 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/SwiperList/SwiperList.js +39 -29
- package/dist/TasksBanner/TasksBanner.js +45 -28
- package/dist/TasksBannerList/TasksBannerList.js +26 -11
- package/dist/Types/FiledTypes.js +2 -2
- package/dist/Video/VideoList/VideoList.js +19 -10
- package/dist/Video/VideoListMini/VideoListMini.js +17 -8
- package/dist/VideoMainBanner/VideoMainBanner.js +3 -2
- package/dist/VideoMainBanner/index.js +1 -1
- package/dist/componentsMap-189b0c59.js +50 -0
- package/dist/{AllComponents-3adfe2a3.js → index-7e2966f2.js} +1774 -1319
- package/dist/index-a379154f.js +66 -0
- package/dist/main.js +60 -61
- package/package.json +1 -1
- package/dist/EmptyBox/EmptyBox.js +0 -5
- package/dist/componentsMap-4a48f9e0.js +0 -53
- package/dist/index-6e0f7db0.js +0 -52
- /package/dist/{EmptyBox → Space}/types.js +0 -0
|
@@ -1,9 +1,26 @@
|
|
|
1
1
|
import { jsx as l, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { FieldTypes as t } from "../Types/FiledTypes.js";
|
|
3
|
+
import { C as o } from "../ComponentContainer-0fcc2695.js";
|
|
3
4
|
import { I as c } from "../index-60dfa873.js";
|
|
4
|
-
const
|
|
5
|
+
const x = {
|
|
6
|
+
type: "data",
|
|
7
|
+
label: "Данные партнеров",
|
|
8
|
+
dataType: "object",
|
|
9
|
+
data: {
|
|
10
|
+
keys: {
|
|
11
|
+
title: t.TITLE,
|
|
12
|
+
subtitle: t.DESCRIPTION,
|
|
13
|
+
images: {
|
|
14
|
+
type: "array",
|
|
15
|
+
data: {
|
|
16
|
+
logo: t.FILE
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}, p = [x], m = ({ data: e }) => {
|
|
5
22
|
var r;
|
|
6
|
-
return /* @__PURE__ */ l(
|
|
23
|
+
return /* @__PURE__ */ l(o, { children: /* @__PURE__ */ i("div", { className: "w-full flex flex-col items-center justify-center", children: [
|
|
7
24
|
(e == null ? void 0 : e.title) && /* @__PURE__ */ l("p", { className: "text-[44px] font-bold leading-[52px] text-center max-md:text-[26px] max-md:leading-[32px]", children: e == null ? void 0 : e.title }),
|
|
8
25
|
(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 }),
|
|
9
26
|
/* @__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: (r = e == null ? void 0 : e.images) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
@@ -26,7 +43,7 @@ const t = ["data"], m = ({ data: e }) => {
|
|
|
26
43
|
)) }) })
|
|
27
44
|
] }) });
|
|
28
45
|
};
|
|
29
|
-
m.propsToEdit =
|
|
46
|
+
m.propsToEdit = p;
|
|
30
47
|
export {
|
|
31
48
|
m as Partners
|
|
32
49
|
};
|
|
@@ -1,30 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as m } from "react";
|
|
3
|
+
import { FieldTypes as r } from "../Types/FiledTypes.js";
|
|
4
|
+
import { C as x } from "../ComponentContainer-0fcc2695.js";
|
|
5
|
+
import { PartnerCard as c } from "./components/PartnerCard/PartnerCard.js";
|
|
6
|
+
import { PartnerTab as f } from "./components/PartnerTab/PartnerTab.js";
|
|
7
|
+
const y = {
|
|
8
|
+
type: "categories",
|
|
9
|
+
label: "Категории",
|
|
10
|
+
dataType: "array",
|
|
11
|
+
data: {
|
|
12
|
+
title: r.TITLE,
|
|
13
|
+
color: r.COLOR
|
|
14
|
+
}
|
|
15
|
+
}, T = {
|
|
16
|
+
type: "cards",
|
|
17
|
+
label: "Карточки партнеров",
|
|
18
|
+
dataType: "array",
|
|
19
|
+
data: {
|
|
20
|
+
title: r.TITLE,
|
|
21
|
+
logo: r.FILE,
|
|
22
|
+
category_id: r.NUMBER
|
|
23
|
+
}
|
|
24
|
+
}, g = ["title", "subtitle", y, T], C = ({
|
|
25
|
+
title: l,
|
|
26
|
+
subtitle: a,
|
|
27
|
+
categories: o,
|
|
10
28
|
cards: p
|
|
11
29
|
}) => {
|
|
12
30
|
var i;
|
|
13
|
-
const [
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */ e("p", { className: "uppercase text-[16px] leading-[24px] font-[500] text-center text-graySoft", children:
|
|
16
|
-
/* @__PURE__ */ e("h2", { className: "text-[44px] leading-[52px] font-bold text-center", children:
|
|
17
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-[12px] mt-[48px]", children:
|
|
18
|
-
|
|
31
|
+
const [s, n] = m(((i = o[0]) == null ? void 0 : i.id) || 0);
|
|
32
|
+
return /* @__PURE__ */ d(x, { children: [
|
|
33
|
+
/* @__PURE__ */ e("p", { className: "uppercase text-[16px] leading-[24px] font-[500] text-center text-graySoft", children: a }),
|
|
34
|
+
/* @__PURE__ */ e("h2", { className: "text-[44px] leading-[52px] font-bold text-center", children: l }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-[12px] mt-[48px]", children: o == null ? void 0 : o.map((t) => /* @__PURE__ */ e(
|
|
36
|
+
f,
|
|
19
37
|
{
|
|
20
38
|
category: t,
|
|
21
|
-
isActive: t.id ===
|
|
22
|
-
onClick:
|
|
39
|
+
isActive: t.id === s,
|
|
40
|
+
onClick: n
|
|
23
41
|
},
|
|
24
42
|
t == null ? void 0 : t.id
|
|
25
43
|
)) }),
|
|
26
44
|
/* @__PURE__ */ e("div", { className: "grid grid-cols-[repeat(2,1fr)] md:grid-cols-[repeat(5,1fr)] gap-[16px] mt-[32px]", children: p == null ? void 0 : p.map((t) => /* @__PURE__ */ e(
|
|
27
|
-
|
|
45
|
+
c,
|
|
28
46
|
{
|
|
29
47
|
card: t
|
|
30
48
|
},
|
|
@@ -32,7 +50,7 @@ const c = ["title", "subtitle", "categories", "cards"], h = ({
|
|
|
32
50
|
)) })
|
|
33
51
|
] });
|
|
34
52
|
};
|
|
35
|
-
|
|
53
|
+
C.propsToEdit = g;
|
|
36
54
|
export {
|
|
37
|
-
|
|
55
|
+
C as PartnersColors
|
|
38
56
|
};
|
|
@@ -1,24 +1,37 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { FieldTypes as o } from "../Types/FiledTypes.js";
|
|
3
|
+
import { C as l } from "../ComponentContainer-0fcc2695.js";
|
|
4
|
+
import { c as n } from "../cn-d8c04b28.js";
|
|
5
|
+
import { u as s } from "../useScreenSize-c1b64c02.js";
|
|
6
|
+
const b = {
|
|
7
|
+
type: "texts",
|
|
8
|
+
label: "Тексты",
|
|
9
|
+
dataType: "array",
|
|
10
|
+
data: {
|
|
11
|
+
title: o.TITLE,
|
|
12
|
+
is_big: o.BOOLEAN
|
|
13
|
+
}
|
|
14
|
+
}, x = [
|
|
15
|
+
"banner_bg_image",
|
|
16
|
+
"banner_bg_image_mob",
|
|
17
|
+
b
|
|
18
|
+
], c = ({
|
|
19
|
+
banner_bg_image: p,
|
|
20
|
+
banner_bg_image_mob: r,
|
|
8
21
|
texts: a
|
|
9
22
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
|
|
23
|
+
const i = s(960);
|
|
24
|
+
return /* @__PURE__ */ t(
|
|
25
|
+
l,
|
|
13
26
|
{
|
|
14
27
|
className: "flex items-center justify-between gap-[40px] px-[48px] py-[38px] pr-[68px] bg-cover bg-no-repeat rounded-[24px] overflow-hidden max-tablet:flex-col max-tablet:items-start max-tablet:gap-[24px] max-tablet:p-[24px] max-tablet:bg-center",
|
|
15
28
|
style: {
|
|
16
|
-
backgroundImage: `url(${
|
|
29
|
+
backgroundImage: `url(${i ? r : p})`
|
|
17
30
|
},
|
|
18
|
-
children: a == null ? void 0 : a.map((e,
|
|
31
|
+
children: a == null ? void 0 : a.map((e, m) => /* @__PURE__ */ t(
|
|
19
32
|
"p",
|
|
20
33
|
{
|
|
21
|
-
className:
|
|
34
|
+
className: n(
|
|
22
35
|
"text-[15px] leading-[22px] text-white break-words whitespace-normal",
|
|
23
36
|
{
|
|
24
37
|
"text-[72px] leading-[32px] font-bold text-white max-tablet:text-[32px] max-tablet:leading-[32px] max-tablet:h-[57px]": e == null ? void 0 : e.is_big
|
|
@@ -26,11 +39,12 @@ const d = ({
|
|
|
26
39
|
),
|
|
27
40
|
children: e == null ? void 0 : e.title
|
|
28
41
|
},
|
|
29
|
-
|
|
42
|
+
m
|
|
30
43
|
))
|
|
31
44
|
}
|
|
32
45
|
);
|
|
33
46
|
};
|
|
47
|
+
c.propsToEdit = x;
|
|
34
48
|
export {
|
|
35
|
-
|
|
49
|
+
c as PromoPoster
|
|
36
50
|
};
|
|
@@ -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-189b0c59.js";
|
|
3
3
|
const d = ({ components: o, device: m }) => /* @__PURE__ */ n(t, { children: o.map((r) => {
|
|
4
4
|
const e = i[r.key];
|
|
5
5
|
return e ? /* @__PURE__ */ n(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { m as a, n as t, o as s, p as n, q as D, r, s as e, t as i, u as o, v as d, w as l, x as C, y as L, z as B, A as m, E as w, G as p, H as I, J as g, K as F, L as S, N as c, O as u, Q as M, R as P, T as f, U as T, X as V, Y as x, Z as y, _ as W, $ as b, a0 as q, a1 as v, a2 as A, a3 as E, a4 as H } from "../index-7e2966f2.js";
|
|
2
|
+
const Q = [
|
|
3
3
|
a,
|
|
4
4
|
t,
|
|
5
5
|
s,
|
|
@@ -32,12 +32,12 @@ const N = [
|
|
|
32
32
|
y,
|
|
33
33
|
W,
|
|
34
34
|
b,
|
|
35
|
-
k,
|
|
36
35
|
q,
|
|
37
36
|
v,
|
|
38
37
|
A,
|
|
39
|
-
E
|
|
38
|
+
E,
|
|
39
|
+
H
|
|
40
40
|
];
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
Q as allComponentsData
|
|
43
43
|
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as s } from "react";
|
|
3
|
+
import { FieldTypes as x } from "../Types/FiledTypes.js";
|
|
3
4
|
import { c as r } from "../cn-d8c04b28.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
5
|
+
const c = {
|
|
6
|
+
type: "data",
|
|
7
|
+
label: "Сегменты",
|
|
8
|
+
dataType: "array",
|
|
9
|
+
data: {
|
|
10
|
+
title: x.TITLE
|
|
11
|
+
}
|
|
12
|
+
}, m = [c, "activeSegment"], d = ({ data: t, activeSegment: p = 0 }) => {
|
|
13
|
+
const [l, i] = s(p), n = (e) => {
|
|
6
14
|
i(e);
|
|
7
15
|
};
|
|
8
16
|
return /* @__PURE__ */ o(
|
|
@@ -14,13 +22,13 @@ const s = ["data", "activeSegment"], c = ({ data: t, activeSegment: p = 0 }) =>
|
|
|
14
22
|
children: t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ o(
|
|
15
23
|
"div",
|
|
16
24
|
{
|
|
17
|
-
onClick: () =>
|
|
25
|
+
onClick: () => n(a),
|
|
18
26
|
className: r(
|
|
19
27
|
"rounded-[19px] text-gray-800 font-semibold cursor-pointer text-center whitespace-nowrap",
|
|
20
28
|
"transition-colors duration-200",
|
|
21
29
|
"max-tablet:text-[16px] max-tablet:leading-[27px] max-tablet:w-full max-tablet:px-4 max-tablet:py-2",
|
|
22
30
|
"text-[20px] leading-[30px] px-8 py-4 w-[275px]",
|
|
23
|
-
a ===
|
|
31
|
+
a === l ? "bg-white" : "bg-transparent"
|
|
24
32
|
),
|
|
25
33
|
children: e.title
|
|
26
34
|
},
|
|
@@ -29,7 +37,7 @@ const s = ["data", "activeSegment"], c = ({ data: t, activeSegment: p = 0 }) =>
|
|
|
29
37
|
}
|
|
30
38
|
);
|
|
31
39
|
};
|
|
32
|
-
|
|
40
|
+
d.propsToEdit = m;
|
|
33
41
|
export {
|
|
34
|
-
|
|
42
|
+
d as Segments
|
|
35
43
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const s = {
|
|
3
|
+
s: 10,
|
|
4
|
+
m: 20,
|
|
5
|
+
l: 40,
|
|
6
|
+
xl: 60
|
|
7
|
+
}, o = (e) => e.map((t) => ({
|
|
8
|
+
label: t.label,
|
|
9
|
+
value: t.value
|
|
10
|
+
}));
|
|
11
|
+
o(
|
|
12
|
+
Object.entries(s).map(([e, t]) => ({
|
|
13
|
+
label: e,
|
|
14
|
+
value: t
|
|
15
|
+
}))
|
|
16
|
+
);
|
|
17
|
+
const r = ["size"], a = ({ size: e = 20 }) => /* @__PURE__ */ l("div", { style: { height: `${e}px` } });
|
|
18
|
+
a.propsToEdit = r;
|
|
19
|
+
export {
|
|
20
|
+
a as Space
|
|
21
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../../cn-d8c04b28.js";
|
|
3
3
|
import "../../../HtmlContent/HtmlContent.js";
|
|
4
|
-
import {
|
|
4
|
+
import { af as a } from "../../../index-7e2966f2.js";
|
|
5
5
|
import "../../../index-60dfa873.js";
|
|
6
6
|
export {
|
|
7
7
|
a as CardWarning
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
+
import "../Types/FiledTypes.js";
|
|
2
3
|
import "../ComponentContainer-0fcc2695.js";
|
|
3
4
|
import "../cn-d8c04b28.js";
|
|
4
5
|
import "./components/CardMarkedRow/index.js";
|
|
5
|
-
import {
|
|
6
|
+
import { j as e } from "../index-7e2966f2.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
e as StandartTable
|
|
8
9
|
};
|
package/dist/Stepper/Stepper.js
CHANGED
package/dist/Stepper/index.js
CHANGED
|
@@ -1,38 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { S as
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useRef as p } from "react";
|
|
3
|
+
import { S as x, N as v, A as y, a as b, C, b as S } from "../swiper-react-c049ea66.js";
|
|
4
|
+
import { FieldTypes as i } from "../Types/FiledTypes.js";
|
|
5
|
+
import { C as E } from "../ComponentContainer-0fcc2695.js";
|
|
5
6
|
import { Bullet as w } from "./components/Bullet/Bullet.js";
|
|
6
7
|
import { Slide as A } from "./components/Slide/Slide.js";
|
|
7
|
-
import '../assets/swiper.css';/* empty css */const N =
|
|
8
|
+
import '../assets/swiper.css';/* empty css */const N = {
|
|
9
|
+
type: "cards",
|
|
10
|
+
label: "Карточки слайдера",
|
|
11
|
+
dataType: "array",
|
|
12
|
+
data: {
|
|
13
|
+
title: i.TITLE,
|
|
14
|
+
image: i.FILE,
|
|
15
|
+
description: i.DESCRIPTION
|
|
16
|
+
}
|
|
17
|
+
}, T = [
|
|
8
18
|
"title",
|
|
9
|
-
|
|
19
|
+
N,
|
|
10
20
|
"card_height",
|
|
11
21
|
"autoplay",
|
|
12
22
|
"autoplayDelay",
|
|
13
23
|
"perViewScreens"
|
|
14
|
-
],
|
|
15
|
-
title:
|
|
24
|
+
], I = ({
|
|
25
|
+
title: r,
|
|
16
26
|
cards: a,
|
|
17
|
-
card_height:
|
|
18
|
-
autoplay:
|
|
19
|
-
autoplayDelay:
|
|
20
|
-
perViewScreens:
|
|
27
|
+
card_height: c,
|
|
28
|
+
autoplay: m,
|
|
29
|
+
autoplayDelay: u = 2e3,
|
|
30
|
+
perViewScreens: l
|
|
21
31
|
}) => {
|
|
22
|
-
const [
|
|
23
|
-
delay:
|
|
32
|
+
const [d, f] = g(0), h = m ? {
|
|
33
|
+
delay: u,
|
|
24
34
|
disableOnInteraction: !1,
|
|
25
35
|
waitForTransition: !0
|
|
26
|
-
} : !1, o =
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
/* @__PURE__ */
|
|
36
|
+
} : !1, o = p(null), n = p(null);
|
|
37
|
+
return /* @__PURE__ */ s(E, { children: [
|
|
38
|
+
r && /* @__PURE__ */ t("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: r }),
|
|
39
|
+
/* @__PURE__ */ s("div", { className: "relative w-full", children: [
|
|
30
40
|
/* @__PURE__ */ t(
|
|
31
|
-
|
|
41
|
+
x,
|
|
32
42
|
{
|
|
33
|
-
modules: [
|
|
43
|
+
modules: [v, y],
|
|
34
44
|
spaceBetween: 24,
|
|
35
|
-
slidesPerView:
|
|
45
|
+
slidesPerView: l,
|
|
36
46
|
slidesPerGroup: 1,
|
|
37
47
|
navigation: {
|
|
38
48
|
nextEl: o.current,
|
|
@@ -43,12 +53,12 @@ import '../assets/swiper.css';/* empty css */const N = [
|
|
|
43
53
|
},
|
|
44
54
|
pagination: { clickable: !0 },
|
|
45
55
|
onSlideChange: (e) => f(e.realIndex),
|
|
46
|
-
autoplay:
|
|
56
|
+
autoplay: h,
|
|
47
57
|
children: a == null ? void 0 : a.map((e) => /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(
|
|
48
58
|
A,
|
|
49
59
|
{
|
|
50
60
|
card: e,
|
|
51
|
-
height:
|
|
61
|
+
height: c
|
|
52
62
|
}
|
|
53
63
|
) }, e.id))
|
|
54
64
|
}
|
|
@@ -58,7 +68,7 @@ import '../assets/swiper.css';/* empty css */const N = [
|
|
|
58
68
|
{
|
|
59
69
|
ref: n,
|
|
60
70
|
className: "custom-prev absolute left-0 top-[50%] translate-y-[-50%] translate-x-[-50%] z-10 p-[8px] rounded-[50%] bg-white",
|
|
61
|
-
children: /* @__PURE__ */ t(
|
|
71
|
+
children: /* @__PURE__ */ t(C, { size: 24 })
|
|
62
72
|
}
|
|
63
73
|
),
|
|
64
74
|
/* @__PURE__ */ t(
|
|
@@ -66,15 +76,15 @@ import '../assets/swiper.css';/* empty css */const N = [
|
|
|
66
76
|
{
|
|
67
77
|
ref: o,
|
|
68
78
|
className: "custom-next p-[8px] absolute right-0 top-[50%] translate-y-[-50%] translate-x-[50%] z-10 rounded-[50%] bg-white",
|
|
69
|
-
children: /* @__PURE__ */ t(
|
|
79
|
+
children: /* @__PURE__ */ t(S, { size: 24 })
|
|
70
80
|
}
|
|
71
81
|
)
|
|
72
82
|
] }),
|
|
73
83
|
a.length > 1 && /* @__PURE__ */ t(
|
|
74
84
|
w,
|
|
75
85
|
{
|
|
76
|
-
count: a.length - (
|
|
77
|
-
active:
|
|
86
|
+
count: a.length - (l - 1),
|
|
87
|
+
active: d,
|
|
78
88
|
activeColor: "#16A34A",
|
|
79
89
|
anActiveColor: "#A6B2BA",
|
|
80
90
|
className: "mt-[24px]"
|
|
@@ -82,7 +92,7 @@ import '../assets/swiper.css';/* empty css */const N = [
|
|
|
82
92
|
)
|
|
83
93
|
] });
|
|
84
94
|
};
|
|
85
|
-
|
|
95
|
+
I.propsToEdit = T;
|
|
86
96
|
export {
|
|
87
|
-
|
|
97
|
+
I as SwiperList
|
|
88
98
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m } from "react";
|
|
3
|
-
import { HtmlContent as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
3
|
+
import { HtmlContent as p } from "../HtmlContent/HtmlContent.js";
|
|
4
|
+
import { FieldTypes as o } from "../Types/FiledTypes.js";
|
|
5
|
+
import { I as x } from "../index-60dfa873.js";
|
|
6
|
+
import { c as i } from "../cn-d8c04b28.js";
|
|
7
|
+
import '../assets/TasksBanner.css';const c = ({
|
|
7
8
|
color: e = "#40474F",
|
|
8
9
|
size: n = 24,
|
|
9
|
-
...
|
|
10
|
+
...s
|
|
10
11
|
}) => /* @__PURE__ */ t(
|
|
11
12
|
"svg",
|
|
12
13
|
{
|
|
@@ -15,7 +16,7 @@ import '../assets/TasksBanner.css';const a = ({
|
|
|
15
16
|
height: n,
|
|
16
17
|
viewBox: "0 0 16 16",
|
|
17
18
|
fill: "none",
|
|
18
|
-
...
|
|
19
|
+
...s,
|
|
19
20
|
children: /* @__PURE__ */ t(
|
|
20
21
|
"path",
|
|
21
22
|
{
|
|
@@ -27,32 +28,47 @@ import '../assets/TasksBanner.css';const a = ({
|
|
|
27
28
|
)
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
const h = {
|
|
32
|
+
type: "data",
|
|
33
|
+
label: "Данные задачи",
|
|
34
|
+
dataType: "object",
|
|
35
|
+
data: {
|
|
36
|
+
keys: {
|
|
37
|
+
title: o.TITLE,
|
|
38
|
+
description: o.HTML_CONTENT,
|
|
39
|
+
image: o.FILE,
|
|
40
|
+
icon: o.FILE,
|
|
41
|
+
is_black: o.BOOLEAN,
|
|
42
|
+
is_promo: o.BOOLEAN,
|
|
43
|
+
is_yellow: o.BOOLEAN
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, b = [h, "isTextLast", "isFirst"], u = ({ data: e, isTextLast: n, isFirst: s }) => {
|
|
47
|
+
const [l, a] = m(!1);
|
|
48
|
+
return /* @__PURE__ */ r("div", { className: "relative w-full rounded-[20px] flex items-center justify-between gap-[100px] bg-white overflow-hidden max-tablet:flex-col max-tablet:gap-0", children: [
|
|
49
|
+
/* @__PURE__ */ r(
|
|
34
50
|
"div",
|
|
35
51
|
{
|
|
36
|
-
className:
|
|
52
|
+
className: i(
|
|
37
53
|
"h-full py-[32px] pr-[64px] pl-[48px] max-tablet:p-[32px] max-tablet:order-1 max-tablet:w-full",
|
|
38
54
|
{
|
|
39
55
|
"order-1": n
|
|
40
56
|
}
|
|
41
57
|
),
|
|
42
58
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ r("div", { className: "h-full flex flex-col gap-[24px]", children: [
|
|
44
60
|
/* @__PURE__ */ t("p", { className: "text-[32px] leading-[40px] font-bold text-black5 max-tablet:text-[22px] max-tablet:leading-[26px]", children: e == null ? void 0 : e.title }),
|
|
45
61
|
/* @__PURE__ */ t(
|
|
46
62
|
"div",
|
|
47
63
|
{
|
|
48
|
-
className:
|
|
64
|
+
className: i(
|
|
49
65
|
"max-h-[98px] overflow-hidden max-tablet:text-[95px] transition-[max-height] duration-500 ease-in-out",
|
|
50
66
|
{
|
|
51
|
-
"max-h-[1000px]":
|
|
67
|
+
"max-h-[1000px]": l
|
|
52
68
|
}
|
|
53
69
|
),
|
|
54
70
|
children: /* @__PURE__ */ t(
|
|
55
|
-
|
|
71
|
+
p,
|
|
56
72
|
{
|
|
57
73
|
className: "htmlContent",
|
|
58
74
|
data: e == null ? void 0 : e.description
|
|
@@ -61,20 +77,20 @@ const g = ({ data: e, isTextLast: n, isFirst: r }) => {
|
|
|
61
77
|
}
|
|
62
78
|
)
|
|
63
79
|
] }),
|
|
64
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ r(
|
|
65
81
|
"button",
|
|
66
82
|
{
|
|
67
83
|
className: "flex items-center gap-2 px-6 bg-none border-none cursor-pointer transition-all duration-500 ease-in-out",
|
|
68
|
-
onClick: () =>
|
|
84
|
+
onClick: () => a(!l),
|
|
69
85
|
children: [
|
|
70
|
-
/* @__PURE__ */ t("p", { className: "text-[16px] text-deepBlue leading-[24px] font-medium text-lightBlue6 transition-all duration-500 ease-in-out whitespace-nowrap mt-[12px]", children:
|
|
86
|
+
/* @__PURE__ */ t("p", { className: "text-[16px] text-deepBlue leading-[24px] font-medium text-lightBlue6 transition-all duration-500 ease-in-out whitespace-nowrap mt-[12px]", children: l ? "Скрыть" : "Показать больше" }),
|
|
71
87
|
/* @__PURE__ */ t(
|
|
72
|
-
|
|
88
|
+
c,
|
|
73
89
|
{
|
|
74
90
|
size: 16,
|
|
75
91
|
color: "#3B82F6",
|
|
76
|
-
className:
|
|
77
|
-
|
|
92
|
+
className: i(
|
|
93
|
+
l ? "transition-all duration-500 rotate-180" : "transition-all duration-500",
|
|
78
94
|
"mt-[12px]"
|
|
79
95
|
)
|
|
80
96
|
}
|
|
@@ -86,23 +102,24 @@ const g = ({ data: e, isTextLast: n, isFirst: r }) => {
|
|
|
86
102
|
}
|
|
87
103
|
),
|
|
88
104
|
(e == null ? void 0 : e.image) && /* @__PURE__ */ t(
|
|
89
|
-
|
|
105
|
+
x,
|
|
90
106
|
{
|
|
91
107
|
src: e == null ? void 0 : e.image,
|
|
92
108
|
alt: e == null ? void 0 : e.title,
|
|
93
109
|
width: 453,
|
|
94
|
-
className:
|
|
110
|
+
className: i(
|
|
95
111
|
"absolute right-0 bottom-0 h-auto flex items-end max-tablet:relative"
|
|
96
112
|
),
|
|
97
|
-
imageStyles:
|
|
113
|
+
imageStyles: i(
|
|
98
114
|
"object-contain",
|
|
99
|
-
|
|
100
|
-
|
|
115
|
+
s && "object-bottom",
|
|
116
|
+
l && "object-bottom"
|
|
101
117
|
)
|
|
102
118
|
}
|
|
103
119
|
)
|
|
104
120
|
] });
|
|
105
121
|
};
|
|
122
|
+
u.propsToEdit = b;
|
|
106
123
|
export {
|
|
107
|
-
|
|
124
|
+
u as TasksBanner
|
|
108
125
|
};
|