md-components-mdigial-azamat 0.0.20 → 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.
Files changed (83) hide show
  1. package/dist/AllComponents.js +5 -9
  2. package/dist/AnimatedSwiper/index.js +64 -42
  3. package/dist/Banner/Banner.js +2 -2
  4. package/dist/Banner/index.js +1 -1
  5. package/dist/Banner/types.js +1 -4
  6. package/dist/BannerAndText/index.js +27 -35
  7. package/dist/CardIconList/CardIconList.js +26 -71
  8. package/dist/CardIconList/index.js +2 -2
  9. package/dist/CardImageList/CardImageList.js +1 -1
  10. package/dist/CardImageList/index.js +1 -1
  11. package/dist/CardImageSecondary/CardImageSecondary.js +27 -48
  12. package/dist/CardImageSecondary/index.js +2 -2
  13. package/dist/CardImageSecondaryList/CardImageSecondaryList.js +4 -19
  14. package/dist/CardImageSecondaryList/index.js +1 -1
  15. package/dist/CardInfoTable/index.js +23 -3
  16. package/dist/Cards/CardImage/CardImage.js +32 -18
  17. package/dist/Cards/ColoredCard/index.js +23 -10
  18. package/dist/Cards/ContentCard/ContentCard.js +1 -1
  19. package/dist/Cards/ContentCard/index.js +1 -1
  20. package/dist/Cards/FeaturesCard/index.js +2 -1
  21. package/dist/Cards/WarningCard/WarningCard.js +1 -1
  22. package/dist/Cards/WarningCard/index.js +1 -1
  23. package/dist/ContentCardList/ContentCardList.js +23 -2
  24. package/dist/ContentCardList/index.js +1 -1
  25. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
  26. package/dist/DownloadFile/components/DownloadFileBanner/index.js +1 -1
  27. package/dist/DownloadFile/components/DownloadFileBright/index.js +2 -2
  28. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
  29. package/dist/DownloadFile/components/DownloadFileFull/index.js +2 -2
  30. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
  31. package/dist/DownloadFile/components/DownloadFileHalf/index.js +1 -1
  32. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
  33. package/dist/DownloadFile/components/DownloadFileMini/index.js +1 -1
  34. package/dist/Faq/Faq.js +20 -2
  35. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +1 -1
  36. package/dist/Faq/components/FeedbackForm/index.js +1 -1
  37. package/dist/Faq/index.js +1 -1
  38. package/dist/HeroPossibilityBanner/index.js +30 -19
  39. package/dist/InfoBanner/index.js +3 -2
  40. package/dist/InfoBannerList/InfoBannerList.js +3 -2
  41. package/dist/InfoBannerList/index.js +2 -2
  42. package/dist/InstructionList/InstructionList.js +1 -1
  43. package/dist/InstructionList/index.js +1 -1
  44. package/dist/IntroBanner/IntroBanner.js +1 -1
  45. package/dist/IntroBanner/index.js +1 -1
  46. package/dist/MainBanner/MainBanner.js +1 -1
  47. package/dist/MainBanner/index.js +1 -1
  48. package/dist/MultiCards/index.js +5 -54
  49. package/dist/PageViewer/PageViewer.js +5 -7
  50. package/dist/PageViewer/renderComponents.js +1 -1
  51. package/dist/Partners/Partners.js +21 -4
  52. package/dist/PartnersColors/PartnersColors.js +38 -20
  53. package/dist/PreviewList/PreviewList.js +1 -1
  54. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +1 -1
  55. package/dist/PreviewList/components/PreviewCard/index.js +1 -1
  56. package/dist/PreviewList/index.js +1 -1
  57. package/dist/PromoPoster/PromoPoster.js +29 -15
  58. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  59. package/dist/RenderAllComponents/const.js +5 -5
  60. package/dist/Segments/Segments.js +15 -7
  61. package/dist/Space/Space.js +21 -0
  62. package/dist/Space/index.js +4 -0
  63. package/dist/StandartTable/components/CardWarning/index.js +1 -1
  64. package/dist/StandartTable/index.js +3 -2
  65. package/dist/Stepper/Stepper.js +2 -1
  66. package/dist/Stepper/index.js +1 -1
  67. package/dist/SwiperList/SwiperList.js +39 -29
  68. package/dist/TasksBanner/TasksBanner.js +45 -28
  69. package/dist/TasksBannerList/TasksBannerList.js +26 -11
  70. package/dist/Types/FiledTypes.js +1 -1
  71. package/dist/Video/VideoList/VideoList.js +19 -10
  72. package/dist/Video/VideoListMini/VideoListMini.js +17 -8
  73. package/dist/VideoMainBanner/VideoMainBanner.js +3 -2
  74. package/dist/VideoMainBanner/index.js +1 -1
  75. package/dist/componentsMap-189b0c59.js +50 -0
  76. package/dist/{AllComponents-7aa1a7f1.js → index-7e2966f2.js} +1768 -1321
  77. package/dist/index-a379154f.js +66 -0
  78. package/dist/main.js +60 -61
  79. package/package.json +1 -1
  80. package/dist/EmptyBox/EmptyBox.js +0 -5
  81. package/dist/componentsMap-678541b7.js +0 -53
  82. package/dist/index-6e0f7db0.js +0 -52
  83. /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 { C as x } from "../ComponentContainer-0fcc2695.js";
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 t = ["data"], m = ({ data: e }) => {
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(x, { children: /* @__PURE__ */ i("div", { className: "w-full flex flex-col items-center justify-center", children: [
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 = t;
46
+ m.propsToEdit = p;
30
47
  export {
31
48
  m as Partners
32
49
  };
@@ -1,30 +1,48 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { useState as x } from "react";
3
- import { C as d } from "../ComponentContainer-0fcc2695.js";
4
- import { PartnerCard as f } from "./components/PartnerCard/PartnerCard.js";
5
- import { PartnerTab as a } from "./components/PartnerTab/PartnerTab.js";
6
- const c = ["title", "subtitle", "categories", "cards"], h = ({
7
- title: o,
8
- subtitle: n,
9
- categories: r,
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 [l, m] = x(((i = r[0]) == null ? void 0 : i.id) || 0);
14
- return /* @__PURE__ */ s(d, { children: [
15
- /* @__PURE__ */ e("p", { className: "uppercase text-[16px] leading-[24px] font-[500] text-center text-graySoft", children: n }),
16
- /* @__PURE__ */ e("h2", { className: "text-[44px] leading-[52px] font-bold text-center", children: o }),
17
- /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-[12px] mt-[48px]", children: r == null ? void 0 : r.map((t) => /* @__PURE__ */ e(
18
- a,
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 === l,
22
- onClick: m
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
- f,
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
- h.propsToEdit = c;
53
+ C.propsToEdit = g;
36
54
  export {
37
- h as PartnersColors
55
+ C as PartnersColors
38
56
  };
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { P as e } from "../AllComponents-7aa1a7f1.js";
2
+ import { P as e } from "../index-7e2966f2.js";
3
3
  import "../ComponentContainer-0fcc2695.js";
4
4
  export {
5
5
  e as PreviewList
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { a4 as i } from "../../../AllComponents-7aa1a7f1.js";
2
+ import { a8 as i } from "../../../index-7e2966f2.js";
3
3
  import "../../../index-60dfa873.js";
4
4
  export {
5
5
  i as PreviewCard
@@ -1,4 +1,4 @@
1
- import { a4 as e } from "../../../AllComponents-7aa1a7f1.js";
1
+ import { a8 as e } from "../../../index-7e2966f2.js";
2
2
  export {
3
3
  e as PreviewCard
4
4
  };
@@ -1,4 +1,4 @@
1
- import { P as i } from "../AllComponents-7aa1a7f1.js";
1
+ import { P as i } from "../index-7e2966f2.js";
2
2
  export {
3
3
  i as PreviewList
4
4
  };
@@ -1,24 +1,37 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { C as m } from "../ComponentContainer-0fcc2695.js";
3
- import { c as i } from "../cn-d8c04b28.js";
4
- import { u as n } from "../useScreenSize-c1b64c02.js";
5
- const d = ({
6
- banner_bg_image: r,
7
- banner_bg_image_mob: o,
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 t = n(960);
11
- return /* @__PURE__ */ p(
12
- m,
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(${t ? o : r})`
29
+ backgroundImage: `url(${i ? r : p})`
17
30
  },
18
- children: a == null ? void 0 : a.map((e, l) => /* @__PURE__ */ p(
31
+ children: a == null ? void 0 : a.map((e, m) => /* @__PURE__ */ t(
19
32
  "p",
20
33
  {
21
- className: i(
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
- l
42
+ m
30
43
  ))
31
44
  }
32
45
  );
33
46
  };
47
+ c.propsToEdit = x;
34
48
  export {
35
- d as PromoPoster
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-678541b7.js";
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 { j as a, k as t, l as s, m as n, n as D, o as r, p as e, q as i, r as o, s as d, t as l, u as C, v as L, w as B, x as m, y as w, z as p, A as I, E as g, G as F, H as S, J as c, K as u, L as M, N as P, O as f, Q as T, R as V, T as x, U as y, X as W, Y as b, Z as k, _ as q, $ as v, a0 as A, a1 as E } from "../AllComponents-7aa1a7f1.js";
2
- const N = [
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
- N as allComponentsData
42
+ Q as allComponentsData
43
43
  };
@@ -1,8 +1,16 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useState as x } from "react";
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 s = ["data", "activeSegment"], c = ({ data: t, activeSegment: p = 0 }) => {
5
- const [n, i] = x(p), l = (e) => {
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: () => l(a),
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 === n ? "bg-white" : "bg-transparent"
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
- c.propsToEdit = s;
40
+ d.propsToEdit = m;
33
41
  export {
34
- c as Segments
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
+ };
@@ -0,0 +1,4 @@
1
+ import { Space as p } from "./Space.js";
2
+ export {
3
+ p as Space
4
+ };
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../cn-d8c04b28.js";
3
3
  import "../../../HtmlContent/HtmlContent.js";
4
- import { a9 as a } from "../../../AllComponents-7aa1a7f1.js";
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 { g as i } from "../AllComponents-7aa1a7f1.js";
6
+ import { j as e } from "../index-7e2966f2.js";
6
7
  export {
7
- i as StandartTable
8
+ e as StandartTable
8
9
  };
@@ -1,5 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { S as e } from "../AllComponents-7aa1a7f1.js";
2
+ import "../Types/FiledTypes.js";
3
+ import { S as e } from "../index-7e2966f2.js";
3
4
  import "../ComponentContainer-0fcc2695.js";
4
5
  import "../index-60dfa873.js";
5
6
  export {
@@ -1,4 +1,4 @@
1
- import { S as r } from "../AllComponents-7aa1a7f1.js";
1
+ import { S as r } from "../index-7e2966f2.js";
2
2
  export {
3
3
  r as Stepper
4
4
  };
@@ -1,38 +1,48 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { useState as h, useRef as s } from "react";
3
- import { S as g, N as x, A as v, a as b, C as y, b as C } from "../swiper-react-c049ea66.js";
4
- import { C as S } from "../ComponentContainer-0fcc2695.js";
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
- "cards",
19
+ N,
10
20
  "card_height",
11
21
  "autoplay",
12
22
  "autoplayDelay",
13
23
  "perViewScreens"
14
- ], E = ({
15
- title: i,
24
+ ], I = ({
25
+ title: r,
16
26
  cards: a,
17
- card_height: p,
18
- autoplay: u,
19
- autoplayDelay: c = 2e3,
20
- perViewScreens: r
27
+ card_height: c,
28
+ autoplay: m,
29
+ autoplayDelay: u = 2e3,
30
+ perViewScreens: l
21
31
  }) => {
22
- const [m, f] = h(0), d = u ? {
23
- delay: c,
32
+ const [d, f] = g(0), h = m ? {
33
+ delay: u,
24
34
  disableOnInteraction: !1,
25
35
  waitForTransition: !0
26
- } : !1, o = s(null), n = s(null);
27
- return /* @__PURE__ */ l(S, { children: [
28
- i && /* @__PURE__ */ t("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: i }),
29
- /* @__PURE__ */ l("div", { className: "relative w-full", children: [
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
- g,
41
+ x,
32
42
  {
33
- modules: [x, v],
43
+ modules: [v, y],
34
44
  spaceBetween: 24,
35
- slidesPerView: r,
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: d,
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: p
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(y, { size: 24 })
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(C, { size: 24 })
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 - (r - 1),
77
- active: m,
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
- E.propsToEdit = N;
95
+ I.propsToEdit = T;
86
96
  export {
87
- E as SwiperList
97
+ I as SwiperList
88
98
  };
@@ -1,12 +1,13 @@
1
- import { jsx as t, jsxs as i } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
- import { HtmlContent as x } from "../HtmlContent/HtmlContent.js";
4
- import { I as p } from "../index-60dfa873.js";
5
- import { c as l } from "../cn-d8c04b28.js";
6
- import '../assets/TasksBanner.css';const a = ({
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
- ...r
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
- ...r,
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 g = ({ data: e, isTextLast: n, isFirst: r }) => {
31
- const [o, s] = m(!1);
32
- return /* @__PURE__ */ i("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: [
33
- /* @__PURE__ */ i(
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: l(
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__ */ i("div", { className: "h-full flex flex-col gap-[24px]", children: [
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: l(
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]": o
67
+ "max-h-[1000px]": l
52
68
  }
53
69
  ),
54
70
  children: /* @__PURE__ */ t(
55
- x,
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__ */ i(
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: () => s(!o),
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: o ? "Скрыть" : "Показать больше" }),
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
- a,
88
+ c,
73
89
  {
74
90
  size: 16,
75
91
  color: "#3B82F6",
76
- className: l(
77
- o ? "transition-all duration-500 rotate-180" : "transition-all duration-500",
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
- p,
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: l(
110
+ className: i(
95
111
  "absolute right-0 bottom-0 h-auto flex items-end max-tablet:relative"
96
112
  ),
97
- imageStyles: l(
113
+ imageStyles: i(
98
114
  "object-contain",
99
- r && "object-bottom",
100
- o && "object-bottom"
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
- g as TasksBanner
124
+ u as TasksBanner
108
125
  };