md-components-mdigial-azamat 0.0.86 → 0.0.88

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.
@@ -31,7 +31,7 @@ import "../PartnersColors/PartnersColors.js";
31
31
  import "../PreviewList/PreviewList.js";
32
32
  import "../Cards/CardImage/CardImage.js";
33
33
  import "../Cards/ContentCard/ContentCard.js";
34
- import "../info-af79abc0.js";
34
+ import "../info-1169ba3e.js";
35
35
  import "../Cards/ColoredCard/index.js";
36
36
  import "../Cards/FeaturesCard/index.js";
37
37
  import "../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -56,7 +56,7 @@ import "../SwiperList/SwiperList.js";
56
56
  import "../TasksBanner/TasksBanner.js";
57
57
  import "../TasksBannerList/TasksBannerList.js";
58
58
  import "../VideoMainBanner/VideoMainBanner.js";
59
- import "../index-869896ab.js";
59
+ import "react-dom";
60
60
  import { S as E } from "../size-b1291031.js";
61
61
  import "../AnimatedSwiper/info.js";
62
62
  import "../Banner/info.js";
@@ -0,0 +1,15 @@
1
+ const s = (e) => {
2
+ const l = {};
3
+ return e != null && e.modal && (l.onClick = () => {
4
+ var r;
5
+ const o = (r = e == null ? void 0 : e.modal) == null ? void 0 : r.modal_slug;
6
+ if (o) {
7
+ sessionStorage.setItem("modal_slug", o);
8
+ const t = new URL(window.location.href);
9
+ t.searchParams.set("modal_slug", o), window.history.pushState({}, "", t.toString());
10
+ }
11
+ }), l;
12
+ };
13
+ export {
14
+ s as actionsGenerator
15
+ };
@@ -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 { a as Wo, A as Xo } from "./info-af79abc0.js";
11
+ import { a as Wo, A as Xo } from "./info-1169ba3e.js";
12
12
  import "./InfoBannerList/InfoBannerList.js";
13
13
  import "./IntroBanner/IntroBanner.js";
14
14
  import "./MainBanner/MainBanner.js";
@@ -53,7 +53,7 @@ import "./DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js";
53
53
  import "./InfoBanner/index.js";
54
54
  import "./Space/Space.js";
55
55
  import "./TasksBanner/TasksBanner.js";
56
- import "./index-869896ab.js";
56
+ import "react-dom";
57
57
  import "./AnimatedSwiper/info.js";
58
58
  import "./Banner/info.js";
59
59
  import "./BannerAndText/info.js";
@@ -10,7 +10,7 @@ import { cardImageInfo as f } from "./Cards/CardImage/info.js";
10
10
  import { coloredCardInfo as I } from "./Cards/ColoredCard/info.js";
11
11
  import { contentCardInfo as d } from "./Cards/ContentCard/info.js";
12
12
  import { featuresCardInfo as p } from "./Cards/FeaturesCard/info.js";
13
- import { w as s, f as l } from "./info-af79abc0.js";
13
+ import { w as s, f as l } from "./info-1169ba3e.js";
14
14
  import { contentCardListInfo as C } from "./ContentCardList/info.js";
15
15
  import { downloadFileBannerInfo as B } from "./DownloadFile/components/DownloadFileBanner/info.js";
16
16
  import { downloadFileBrightInfo as L } from "./DownloadFile/components/DownloadFileBright/info.js";
@@ -1,8 +1,9 @@
1
1
  import { jsxs as p, jsx as x } from "react/jsx-runtime";
2
+ import { actionsGenerator as s } from "../../Actions/actionsGenerator.js";
2
3
  import { FieldTypes as l } from "../../Types/FiledTypes.js";
3
- import { I as o } from "../../index-9384c6d6.js";
4
+ import { I as c } from "../../index-9384c6d6.js";
4
5
  import { c as i } from "../../cn-6a4bf187.js";
5
- const r = {
6
+ const n = {
6
7
  type: "data",
7
8
  label: "Данные карточки с изображением",
8
9
  dataType: "object",
@@ -15,11 +16,12 @@ const r = {
15
16
  is_black: l.BOOLEAN
16
17
  }
17
18
  }
18
- }, c = [r], m = ({ data: e }) => {
19
- const t = (e == null ? void 0 : e.variant) === "large" ? "h-[364px]" : "h-[264px]", s = (e == null ? void 0 : e.variant) === "small" ? "w-[364px]" : "w-[264px]";
19
+ }, m = [n], b = ({ data: e }) => {
20
+ const o = (e == null ? void 0 : e.variant) === "large" ? "h-[364px]" : "h-[264px]", t = (e == null ? void 0 : e.variant) === "small" ? "w-[364px]" : "w-[264px]", r = s(e == null ? void 0 : e.action);
20
21
  return /* @__PURE__ */ p(
21
22
  "div",
22
23
  {
24
+ ...r,
23
25
  className: i(
24
26
  "w-full overflow-hidden bg-white rounded-[20px] flex flex-1 flex-col items-center justify-between",
25
27
  { "!bg-black": e == null ? void 0 : e.is_black }
@@ -48,20 +50,20 @@ const r = {
48
50
  )
49
51
  ] }),
50
52
  /* @__PURE__ */ x(
51
- o,
53
+ c,
52
54
  {
53
55
  src: e == null ? void 0 : e.image,
54
56
  alt: e == null ? void 0 : e.title,
55
- className: `w-full ${t} max-tablet:h-[200px] box-border`,
56
- imageStyles: `${s} h-full max-tablet:w-[200px] object-contain`
57
+ className: `w-full ${o} max-tablet:h-[200px] box-border`,
58
+ imageStyles: `${t} h-full max-tablet:w-[200px] object-contain`
57
59
  }
58
60
  )
59
61
  ]
60
62
  }
61
63
  );
62
64
  };
63
- m.propsToEdit = c;
65
+ b.propsToEdit = m;
64
66
  export {
65
- m as CardImage,
66
- c as propsToEdit
67
+ b as CardImage,
68
+ m as propsToEdit
67
69
  };
@@ -29,7 +29,7 @@ import "../../PartnersColors/PartnersColors.js";
29
29
  import "../../PreviewList/PreviewList.js";
30
30
  import "../CardImage/CardImage.js";
31
31
  import "../ContentCard/ContentCard.js";
32
- import { W as Yr, p as Zr } from "../../info-af79abc0.js";
32
+ import { W as Yr, p as Zr } from "../../info-1169ba3e.js";
33
33
  import "../ColoredCard/index.js";
34
34
  import "../FeaturesCard/index.js";
35
35
  import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -54,7 +54,7 @@ import "../../SwiperList/SwiperList.js";
54
54
  import "../../TasksBanner/TasksBanner.js";
55
55
  import "../../TasksBannerList/TasksBannerList.js";
56
56
  import "../../VideoMainBanner/VideoMainBanner.js";
57
- import "../../index-869896ab.js";
57
+ import "react-dom";
58
58
  import "../../AnimatedSwiper/info.js";
59
59
  import "../../Banner/info.js";
60
60
  import "../../BannerAndText/info.js";
@@ -1,4 +1,4 @@
1
- import { W as n } from "../../info-af79abc0.js";
1
+ import { W as n } from "../../info-1169ba3e.js";
2
2
  export {
3
3
  n as WarningCard
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import "../../index-0a5f313c.js";
2
- import { w as n } from "../../info-af79abc0.js";
2
+ import { w as n } from "../../info-1169ba3e.js";
3
3
  export {
4
4
  n as warningCardInfo
5
5
  };
@@ -3,7 +3,7 @@ import "react";
3
3
  import "../../index-a0ed2e4a.js";
4
4
  import "../../index-875e92ce.js";
5
5
  import "../../const-53dff524.js";
6
- import { F as f, g as F } from "../../info-af79abc0.js";
6
+ import { F as f, g as F } from "../../info-1169ba3e.js";
7
7
  import "../../ComponentContainer-05e27e82.js";
8
8
  import "../../useScreenSize-c1b64c02.js";
9
9
  export {
@@ -27,7 +27,7 @@ import "../../PartnersColors/PartnersColors.js";
27
27
  import "../../PreviewList/PreviewList.js";
28
28
  import "../../Cards/CardImage/CardImage.js";
29
29
  import "../../Cards/ContentCard/ContentCard.js";
30
- import { e as Yo, f as Zo, d as _o, i as $o } from "../../info-af79abc0.js";
30
+ import { e as Yo, f as Zo, d as _o, i as $o } from "../../info-1169ba3e.js";
31
31
  import "../../Cards/ColoredCard/index.js";
32
32
  import "../../Cards/FeaturesCard/index.js";
33
33
  import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -53,7 +53,7 @@ import "../../TasksBanner/TasksBanner.js";
53
53
  import "../../TasksBannerList/TasksBannerList.js";
54
54
  import "../../VideoMainBanner/VideoMainBanner.js";
55
55
  import "../../Types/FiledTypes.js";
56
- import "../../index-869896ab.js";
56
+ import "react-dom";
57
57
  import "../../AnimatedSwiper/info.js";
58
58
  import "../../Banner/info.js";
59
59
  import "../../BannerAndText/info.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../index-a0ed2e4a.js";
3
3
  import "../../FileLoader/index.js";
4
- import { r as p } from "../../info-af79abc0.js";
4
+ import { r as p } from "../../info-1169ba3e.js";
5
5
  export {
6
6
  p as renderFormFields
7
7
  };
@@ -28,7 +28,7 @@ import "../../PartnersColors/PartnersColors.js";
28
28
  import "../../PreviewList/PreviewList.js";
29
29
  import "../../Cards/CardImage/CardImage.js";
30
30
  import "../../Cards/ContentCard/ContentCard.js";
31
- import { b as Wo, c as Xo } from "../../info-af79abc0.js";
31
+ import { b as Wo, c as Xo } from "../../info-1169ba3e.js";
32
32
  import "../../Cards/ColoredCard/index.js";
33
33
  import "../../Cards/FeaturesCard/index.js";
34
34
  import "../../DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
@@ -53,7 +53,7 @@ import "../../SwiperList/SwiperList.js";
53
53
  import "../../TasksBanner/TasksBanner.js";
54
54
  import "../../TasksBannerList/TasksBannerList.js";
55
55
  import "../../VideoMainBanner/VideoMainBanner.js";
56
- import "../../index-869896ab.js";
56
+ import "react-dom";
57
57
  import "../../AnimatedSwiper/info.js";
58
58
  import "../../Banner/info.js";
59
59
  import "../../BannerAndText/info.js";
@@ -1,120 +1,6 @@
1
- import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
- import { useState as h, useEffect as c, useCallback as b } from "react";
3
- import { c as y } from "../cn-6a4bf187.js";
4
- import { r as g } from "../index-869896ab.js";
5
- const w = ({ children: n, element: r = document.body }) => g.createPortal(n, r), v = (n) => {
6
- const { className: r, children: l, isOpen: e, onClose: t, lazy: m } = n, [p, x] = h(!1);
7
- c(() => {
8
- e && x(!0);
9
- }, [e]), c(() => (e ? (document.body.style.overflow = "hidden", document.body.style.paddingRight = "var(--scrollbar-width, 0px)") : (document.body.style.overflow = "", document.body.style.paddingRight = ""), () => {
10
- document.body.style.overflow = "", document.body.style.paddingRight = "";
11
- }), [e]);
12
- const a = b(
13
- (i) => {
14
- i.key === "Escape" && (t == null || t());
15
- },
16
- [t]
17
- );
18
- c(() => {
19
- if (e) {
20
- window.addEventListener("keydown", a);
21
- const i = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', s = document.querySelector('[role="dialog"]'), d = s == null ? void 0 : s.querySelectorAll(
22
- i
23
- )[0];
24
- d == null || d.focus();
25
- }
26
- return () => {
27
- window.removeEventListener("keydown", a);
28
- };
29
- }, [e, a]);
30
- const f = (i) => {
31
- i.stopPropagation();
32
- };
33
- return m && !p ? null : /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(
34
- "div",
35
- {
36
- className: y(
37
- "fixed inset-0 z-[9999] flex items-center justify-center bg-black/60 transition-all duration-300",
38
- e ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none",
39
- r
40
- ),
41
- onClick: t,
42
- role: "dialog",
43
- "aria-modal": "true",
44
- children: /* @__PURE__ */ u(
45
- "div",
46
- {
47
- className: y(
48
- "relative bg-white p-6 rounded-[24px] shadow-2xl max-w-[95%] sm:max-w-[500px] w-full max-h-[90vh] overflow-y-auto transform transition-all duration-300",
49
- e ? "scale-100 opacity-100" : "scale-95 opacity-0"
50
- ),
51
- onClick: f,
52
- children: [
53
- /* @__PURE__ */ o(
54
- "button",
55
- {
56
- onClick: t,
57
- className: "absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors text-gray-500",
58
- "aria-label": "Close",
59
- children: /* @__PURE__ */ u(
60
- "svg",
61
- {
62
- width: "24",
63
- height: "24",
64
- viewBox: "0 0 24 24",
65
- fill: "none",
66
- stroke: "currentColor",
67
- strokeWidth: "2",
68
- strokeLinecap: "round",
69
- strokeLinejoin: "round",
70
- children: [
71
- /* @__PURE__ */ o(
72
- "line",
73
- {
74
- x1: "18",
75
- y1: "6",
76
- x2: "6",
77
- y2: "18"
78
- }
79
- ),
80
- /* @__PURE__ */ o(
81
- "line",
82
- {
83
- x1: "6",
84
- y1: "6",
85
- x2: "18",
86
- y2: "18"
87
- }
88
- )
89
- ]
90
- }
91
- )
92
- }
93
- ),
94
- /* @__PURE__ */ o("div", { className: "mt-2 text-[#0e0f11]", children: l })
95
- ]
96
- }
97
- )
98
- }
99
- ) });
100
- }, j = ({
101
- components: n = [],
102
- title: r,
103
- description: l,
104
- isOpen: e,
105
- onClose: t
106
- }) => /* @__PURE__ */ u(
107
- v,
108
- {
109
- isOpen: e,
110
- onClose: t,
111
- children: [
112
- /* @__PURE__ */ o("h2", { className: "text-[44px] leading-[52px] font-bold mb-[24px] text-center", children: r }),
113
- /* @__PURE__ */ o("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: l }),
114
- n
115
- ]
116
- }
117
- );
1
+ import "react/jsx-runtime";
2
+ import { a as p } from "../index-5aaa0755.js";
3
+ import "react";
118
4
  export {
119
- j as ModalBody
5
+ p as ModalBody
120
6
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { c as f } from "../componentsMap-9e7decf2.js";
2
+ import { c as f } from "../componentsMap-2618a2a1.js";
3
3
  const a = (p) => p.map((r) => {
4
4
  const s = f[r.key];
5
5
  if (!s)
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
- import { c as i } from "../componentsMap-9e7decf2.js";
2
+ import { c as i } from "../componentsMap-2618a2a1.js";
3
3
  const d = ({ components: o, device: p }) => /* @__PURE__ */ n(t, { children: o.map((r) => {
4
4
  const e = i[r.key];
5
5
  return e ? /* @__PURE__ */ n(
@@ -10,7 +10,7 @@ import { CardImage as p } from "./Cards/CardImage/CardImage.js";
10
10
  import { ColoredCard as f } from "./Cards/ColoredCard/index.js";
11
11
  import { ContentCard as s } from "./Cards/ContentCard/ContentCard.js";
12
12
  import { FeaturesCard as d } from "./Cards/FeaturesCard/index.js";
13
- import { W as l, F as C } from "./info-af79abc0.js";
13
+ import { W as l, F as C } from "./info-1169ba3e.js";
14
14
  import { ContentCardList as B } from "./ContentCardList/ContentCardList.js";
15
15
  import { DownloadFileBanner as F } from "./DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js";
16
16
  import { DownloadFileBright as L } from "./DownloadFile/components/DownloadFileBright/index.js";
@@ -0,0 +1,121 @@
1
+ import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
+ import { useState as h, useEffect as c, useCallback as b } from "react";
3
+ import { c as y } from "./cn-6a4bf187.js";
4
+ import { createPortal as g } from "react-dom";
5
+ const w = ({ children: n, element: r = document.body }) => g(n, r), v = (n) => {
6
+ const { className: r, children: l, isOpen: e, onClose: t, lazy: m } = n, [p, x] = h(!1);
7
+ c(() => {
8
+ e && x(!0);
9
+ }, [e]), c(() => (e ? (document.body.style.overflow = "hidden", document.body.style.paddingRight = "var(--scrollbar-width, 0px)") : (document.body.style.overflow = "", document.body.style.paddingRight = ""), () => {
10
+ document.body.style.overflow = "", document.body.style.paddingRight = "";
11
+ }), [e]);
12
+ const a = b(
13
+ (i) => {
14
+ i.key === "Escape" && (t == null || t());
15
+ },
16
+ [t]
17
+ );
18
+ c(() => {
19
+ if (e) {
20
+ window.addEventListener("keydown", a);
21
+ const i = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', s = document.querySelector('[role="dialog"]'), d = s == null ? void 0 : s.querySelectorAll(
22
+ i
23
+ )[0];
24
+ d == null || d.focus();
25
+ }
26
+ return () => {
27
+ window.removeEventListener("keydown", a);
28
+ };
29
+ }, [e, a]);
30
+ const f = (i) => {
31
+ i.stopPropagation();
32
+ };
33
+ return m && !p ? null : /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(
34
+ "div",
35
+ {
36
+ className: y(
37
+ "fixed inset-0 z-[9999] flex items-center justify-center bg-black/60 transition-all duration-300",
38
+ e ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none",
39
+ r
40
+ ),
41
+ onClick: t,
42
+ role: "dialog",
43
+ "aria-modal": "true",
44
+ children: /* @__PURE__ */ u(
45
+ "div",
46
+ {
47
+ className: y(
48
+ "relative bg-white p-6 rounded-[24px] shadow-2xl max-w-[95%] sm:max-w-[500px] w-full max-h-[90vh] overflow-y-auto transform transition-all duration-300",
49
+ e ? "scale-100 opacity-100" : "scale-95 opacity-0"
50
+ ),
51
+ onClick: f,
52
+ children: [
53
+ /* @__PURE__ */ o(
54
+ "button",
55
+ {
56
+ onClick: t,
57
+ className: "absolute top-4 right-4 p-2 rounded-full hover:bg-gray-100 transition-colors text-gray-500",
58
+ "aria-label": "Close",
59
+ children: /* @__PURE__ */ u(
60
+ "svg",
61
+ {
62
+ width: "24",
63
+ height: "24",
64
+ viewBox: "0 0 24 24",
65
+ fill: "none",
66
+ stroke: "currentColor",
67
+ strokeWidth: "2",
68
+ strokeLinecap: "round",
69
+ strokeLinejoin: "round",
70
+ children: [
71
+ /* @__PURE__ */ o(
72
+ "line",
73
+ {
74
+ x1: "18",
75
+ y1: "6",
76
+ x2: "6",
77
+ y2: "18"
78
+ }
79
+ ),
80
+ /* @__PURE__ */ o(
81
+ "line",
82
+ {
83
+ x1: "6",
84
+ y1: "6",
85
+ x2: "18",
86
+ y2: "18"
87
+ }
88
+ )
89
+ ]
90
+ }
91
+ )
92
+ }
93
+ ),
94
+ /* @__PURE__ */ o("div", { className: "mt-2 text-[#0e0f11]", children: l })
95
+ ]
96
+ }
97
+ )
98
+ }
99
+ ) });
100
+ }, j = ({
101
+ components: n = [],
102
+ title: r,
103
+ description: l,
104
+ isOpen: e,
105
+ onClose: t
106
+ }) => /* @__PURE__ */ u(
107
+ v,
108
+ {
109
+ isOpen: e,
110
+ onClose: t,
111
+ children: [
112
+ /* @__PURE__ */ o("h2", { className: "text-[44px] leading-[52px] font-bold mb-[24px] text-center", children: r }),
113
+ /* @__PURE__ */ o("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: l }),
114
+ n
115
+ ]
116
+ }
117
+ );
118
+ export {
119
+ v as M,
120
+ j as a
121
+ };
@@ -62,7 +62,7 @@ import { TasksBannerList as ot } from "./TasksBannerList/TasksBannerList.js";
62
62
  import { VideoMainBanner as at } from "./VideoMainBanner/VideoMainBanner.js";
63
63
  import { M as nt, B as st, C as it, S as lt, b as ct, V as dt, c as pt, d as mt, e as ut, f as ft, g as ht, P as gt, h as xt, W as bt, F as yt, k as wt, D as vt, l as kt, m as Ct, I as Dt, o as Nt, p as Lt, A as _t, q as Bt, T as St, r as Ft, E as Mt, s as Vt, t as It, u as Ht, v as Tt, w as Pt, x as Gt } from "./data.mock-9071e4ea.js";
64
64
  import { DataTypesEnum as Wt, FieldTypes as j } from "./Types/FiledTypes.js";
65
- import "./index-869896ab.js";
65
+ import "react-dom";
66
66
  import "./AnimatedSwiper/info.js";
67
67
  import "./Banner/info.js";
68
68
  import "./BannerAndText/info.js";