md-components-mdigial-azamat 0.0.108 → 0.0.112
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/ActionCardList/ActionCardList.js +12 -5
- package/dist/ActionCardList/index.js +1 -1
- package/dist/ActionCardList/info.js +1 -1
- package/dist/ActionIconList/ActionIconList.js +9 -2
- package/dist/Actions/actionsGenerator.js +30 -11
- package/dist/Actions/handlers/download.js +10 -0
- package/dist/Actions/handlers/fallback.js +4 -0
- package/dist/Actions/handlers/index.js +10 -0
- package/dist/Actions/handlers/link.js +6 -0
- package/dist/Actions/handlers/modal.js +11 -0
- package/dist/Actions/index.js +9 -11
- package/dist/Actions/projectActions.js +13 -0
- package/dist/Actions/types.js +6 -1
- package/dist/AllComponents.js +13 -5
- package/dist/AllComponentsInfo.js +92 -84
- package/dist/ButtonsList/ButtonsList.js +38 -0
- package/dist/ButtonsList/index.js +4 -0
- package/dist/ButtonsList/info.js +11 -0
- package/dist/ButtonsList/schema.js +21 -0
- package/dist/ButtonsList/types.js +1 -0
- package/dist/CardImageList/CardImageList.js +87 -71
- package/dist/CardImageList/info.js +1 -1
- package/dist/CardImageList/schema.js +57 -0
- package/dist/Cards/CardImage/CardImage.js +104 -55
- package/dist/Cards/CardImage/index.js +6 -1
- package/dist/Cards/CardImage/info.js +1 -1
- package/dist/Cards/CardImage/schema.js +32 -0
- package/dist/Cards/CardImage/types.js +3 -2
- package/dist/Cards/WarningCard/WarningCard.js +11 -4
- package/dist/Cards/WarningCard/index.js +1 -1
- package/dist/Cards/WarningCard/info.js +1 -1
- package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +28 -25
- package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +25 -22
- package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +21 -18
- package/dist/Flex-86aee720.js +78 -0
- package/dist/Footer/Footer.js +5 -5
- package/dist/Forms/FormDefault/index.js +1 -1
- package/dist/Forms/FormDefault/info.js +13 -6
- package/dist/Forms/helpers/renderFormFields.js +1 -1
- package/dist/Forms/model/components.js +11 -4
- package/dist/Header/Header.js +1 -1
- package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +12 -12
- package/dist/Header/components/HeaderMobile/HeaderMobile.js +1 -1
- package/dist/Header/components/HeaderSearch/HeaderSearch.js +1 -1
- package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +10 -10
- package/dist/Header/components/HeaderWeb/HeaderWeb.js +15 -15
- package/dist/HeroIconsBanner/HeroIconsBanner.js +78 -0
- package/dist/HeroIconsBanner/index.js +4 -0
- package/dist/HeroIconsBanner/info.js +11 -0
- package/dist/HeroIconsBanner/schema.js +40 -0
- package/dist/HeroIconsBanner/types.js +1 -0
- package/dist/IconList/IconList.js +59 -0
- package/dist/IconList/index.js +4 -0
- package/dist/IconList/info.js +11 -0
- package/dist/IconList/schema.js +26 -0
- package/dist/IconList/types.js +1 -0
- package/dist/ModalBody/index.js +1 -1
- package/dist/PageViewer/renderComponents.js +1 -1
- package/dist/PreviewList/PreviewList.js +19 -19
- package/dist/PreviewList/components/PreviewCard/PreviewCard.js +29 -29
- package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
- package/dist/RenderAllComponents/const.js +1 -1
- package/dist/SearchBlock/SearchBlock.js +102 -0
- package/dist/SearchBlock/index.js +4 -0
- package/dist/SearchBlock/info.js +11 -0
- package/dist/SearchBlock/schema.js +36 -0
- package/dist/assets/index.css +1 -1
- package/dist/{clientApi-642fea4b.js → clientApi-ccb08ba6.js} +7 -7
- package/dist/{componentsMap-d2b8d2d4.js → componentsMap-cac6c316.js} +4 -3
- package/dist/{data.mock-182979d1.js → data.mock-ebc679ec.js} +107 -27
- package/dist/{index-497f59a8.js → index-b795390d.js} +23 -20
- package/dist/{index.module-c8833286.js → index.module-8835bf96.js} +1 -1
- package/dist/{info-f6e88bd8.js → info-d05a1f02.js} +174 -156
- package/dist/main.js +100 -91
- package/dist/trash/HeroLargeCards/index.js +7 -6
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { L as
|
|
2
|
-
const c = {}.VITE_API_URL || "https://mbank.kg/api/", u = "app_language", l = () => localStorage.getItem(u) ||
|
|
1
|
+
import { L as r } from "./languages-list-87ab3324.js";
|
|
2
|
+
const c = {}.VITE_API_URL || "https://mbank.kg/api/", u = "app_language", l = () => typeof window > "u" ? r.RU : localStorage.getItem(u) || r.RU, g = async (t, a = {}) => {
|
|
3
3
|
var n;
|
|
4
|
-
const
|
|
4
|
+
const s = ((n = a.headers) == null ? void 0 : n["Accept-Language"]) || l(), o = `${c}${t}`;
|
|
5
5
|
try {
|
|
6
|
-
const e = await fetch(
|
|
6
|
+
const e = await fetch(o, {
|
|
7
7
|
method: "GET",
|
|
8
8
|
headers: {
|
|
9
|
-
"Accept-Language":
|
|
9
|
+
"Accept-Language": s,
|
|
10
10
|
"Content-Type": "application/json",
|
|
11
11
|
...a.headers
|
|
12
12
|
}
|
|
@@ -15,11 +15,11 @@ const c = {}.VITE_API_URL || "https://mbank.kg/api/", u = "app_language", l = ()
|
|
|
15
15
|
} catch (e) {
|
|
16
16
|
return console.error("API request error:", e), { data: null };
|
|
17
17
|
}
|
|
18
|
-
},
|
|
18
|
+
}, i = {
|
|
19
19
|
get(t, a = {}) {
|
|
20
20
|
return g(t, a);
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
i as c
|
|
25
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as r, F as o, a as m } from "./info-
|
|
1
|
+
import { W as r, F as o, a as m } from "./info-d05a1f02.js";
|
|
2
2
|
import t from "./AnimatedSwiper/index.js";
|
|
3
3
|
import { Banner as i } from "./Banner/Banner.js";
|
|
4
4
|
import { BannerAndText as a } from "./BannerAndText/index.js";
|
|
@@ -8,6 +8,7 @@ import { CardImageSecondary as p } from "./CardImageSecondary/CardImageSecondary
|
|
|
8
8
|
import { CardImageSecondaryList as f } from "./CardImageSecondaryList/CardImageSecondaryList.js";
|
|
9
9
|
import { CardInfoTable as s } from "./CardInfoTable/index.js";
|
|
10
10
|
import { CardImage as d } from "./Cards/CardImage/CardImage.js";
|
|
11
|
+
import "./Cards/CardImage/info.js";
|
|
11
12
|
import { ColoredCard as l } from "./Cards/ColoredCard/index.js";
|
|
12
13
|
import { ContentCard as C } from "./Cards/ContentCard/ContentCard.js";
|
|
13
14
|
import { FeaturesCard as B } from "./Cards/FeaturesCard/index.js";
|
|
@@ -45,7 +46,7 @@ import { VideoFull as O } from "./Video/VideoFull/VideoFull.js";
|
|
|
45
46
|
import { VideoList as Q } from "./Video/VideoList/VideoList.js";
|
|
46
47
|
import { VideoListMini as R } from "./Video/VideoListMini/VideoListMini.js";
|
|
47
48
|
import { VideoMainBanner as U } from "./VideoMainBanner/VideoMainBanner.js";
|
|
48
|
-
const
|
|
49
|
+
const Kr = {
|
|
49
50
|
Banner: i,
|
|
50
51
|
BannerAndText: a,
|
|
51
52
|
CardImageList: e,
|
|
@@ -97,5 +98,5 @@ const Jr = {
|
|
|
97
98
|
ActionCardList: m
|
|
98
99
|
};
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
Kr as c
|
|
101
102
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as e } from "./palette-c2fe86ec.js";
|
|
2
2
|
import { b as a } from "./const-53dff524.js";
|
|
3
|
-
var t = /* @__PURE__ */ ((i) => (i.Header = "Header", i.Banner = "Banner", i.CardImageList = "CardImageList", i.Stepper = "Stepper", i.Segments = "Segments", i.Video = "VideoFull", i.VideoList = "VideoList", i.VideoListMini = "VideoListMini", i.ContentCardList = "ContentCardList", i.CardIconList = "CardIconList", i.MultiCards = "MultiCards", i.Partners = "Partners", i.PartnersColors = "PartnersColors", i.MainBanner = "MainBanner", i.WarningCard = "WarningCard", i.Faq = "Faq", i.DownloadFileBanner = "DownloadFileBanner", i.FileBannerSecondary = "FileBannerSecondary", i.DownloadFileFull = "DownloadFileFull", i.DownloadFileHalf = "DownloadFileHalf", i.DownloadFileMini = "DownloadFileMini", i.InstructionList = "InstructionList", i.PreviewList = "PreviewList", i.SwiperList = "SwiperList", i.AnimatedSwiper = "AnimatedSwiper", i.InfoBannerList = "InfoBannerList", i.TasksBannerList = "TasksBannerList", i.VideoMainBanner = "VideoMainBanner", i.EmptyBox = "EmptyBox", i.PromoPoster = "PromoPoster", i.CardImageSecondaryList = "CardImageSecondaryList", i.CardInfoTable = "CardInfoTable", i.StandartTable = "StandartTable", i.IntroBanner = "IntroBanner", i.DownloadFileBright = "DownloadFileBright", i.Footer = "Footer", i.TitleBlock = "TitleBlock", i.ActionCard = "ActionCard", i.ActionIconList = "ActionIconList", i))(t || {});
|
|
4
|
-
const
|
|
3
|
+
var t = /* @__PURE__ */ ((i) => (i.Header = "Header", i.Banner = "Banner", i.CardImageList = "CardImageList", i.Stepper = "Stepper", i.Segments = "Segments", i.Video = "VideoFull", i.VideoList = "VideoList", i.VideoListMini = "VideoListMini", i.ContentCardList = "ContentCardList", i.CardIconList = "CardIconList", i.MultiCards = "MultiCards", i.Partners = "Partners", i.PartnersColors = "PartnersColors", i.MainBanner = "MainBanner", i.WarningCard = "WarningCard", i.Faq = "Faq", i.DownloadFileBanner = "DownloadFileBanner", i.FileBannerSecondary = "FileBannerSecondary", i.DownloadFileFull = "DownloadFileFull", i.DownloadFileHalf = "DownloadFileHalf", i.DownloadFileMini = "DownloadFileMini", i.InstructionList = "InstructionList", i.PreviewList = "PreviewList", i.SwiperList = "SwiperList", i.AnimatedSwiper = "AnimatedSwiper", i.InfoBannerList = "InfoBannerList", i.TasksBannerList = "TasksBannerList", i.VideoMainBanner = "VideoMainBanner", i.EmptyBox = "EmptyBox", i.PromoPoster = "PromoPoster", i.CardImageSecondaryList = "CardImageSecondaryList", i.CardInfoTable = "CardInfoTable", i.StandartTable = "StandartTable", i.IntroBanner = "IntroBanner", i.DownloadFileBright = "DownloadFileBright", i.Footer = "Footer", i.TitleBlock = "TitleBlock", i.ActionCard = "ActionCard", i.ActionIconList = "ActionIconList", i.ButtonsList = "ButtonsList", i.HeroIconsBanner = "HeroIconsBanner", i.IconList = "IconList", i.SearchBlock = "SearchBlock", i))(t || {});
|
|
4
|
+
const l = {
|
|
5
5
|
key: t.Banner,
|
|
6
6
|
id: "1",
|
|
7
7
|
component_props: {
|
|
@@ -112,7 +112,7 @@ const s = {
|
|
|
112
112
|
title: "Заголовок1"
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
},
|
|
115
|
+
}, c = {
|
|
116
116
|
key: t.VideoList,
|
|
117
117
|
id: "7",
|
|
118
118
|
component_props: {
|
|
@@ -127,7 +127,7 @@ const s = {
|
|
|
127
127
|
}
|
|
128
128
|
]
|
|
129
129
|
}
|
|
130
|
-
},
|
|
130
|
+
}, g = {
|
|
131
131
|
key: t.VideoListMini,
|
|
132
132
|
id: "8",
|
|
133
133
|
component_props: {
|
|
@@ -691,7 +691,7 @@ const s = {
|
|
|
691
691
|
button_text: "button text",
|
|
692
692
|
variant: "orange"
|
|
693
693
|
}
|
|
694
|
-
},
|
|
694
|
+
}, B = {
|
|
695
695
|
key: t.WarningCard,
|
|
696
696
|
id: "17",
|
|
697
697
|
component_props: {
|
|
@@ -700,7 +700,7 @@ const s = {
|
|
|
700
700
|
button_text: "button text",
|
|
701
701
|
variant: "gray"
|
|
702
702
|
}
|
|
703
|
-
},
|
|
703
|
+
}, D = {
|
|
704
704
|
key: t.WarningCard,
|
|
705
705
|
id: "18",
|
|
706
706
|
component_props: {
|
|
@@ -709,7 +709,7 @@ const s = {
|
|
|
709
709
|
button_text: "button text",
|
|
710
710
|
variant: "black"
|
|
711
711
|
}
|
|
712
|
-
},
|
|
712
|
+
}, v = {
|
|
713
713
|
key: t.Faq,
|
|
714
714
|
id: "19",
|
|
715
715
|
component_props: {
|
|
@@ -784,7 +784,7 @@ const q = {
|
|
|
784
784
|
}
|
|
785
785
|
]
|
|
786
786
|
}
|
|
787
|
-
},
|
|
787
|
+
}, I = {
|
|
788
788
|
key: t.DownloadFileMini,
|
|
789
789
|
id: "23",
|
|
790
790
|
component_props: {
|
|
@@ -880,7 +880,7 @@ const q = {
|
|
|
880
880
|
],
|
|
881
881
|
grid: 2
|
|
882
882
|
}
|
|
883
|
-
},
|
|
883
|
+
}, M = {
|
|
884
884
|
key: t.SwiperList,
|
|
885
885
|
id: "26",
|
|
886
886
|
component_props: {
|
|
@@ -1130,7 +1130,7 @@ const q = {
|
|
|
1130
1130
|
isLight: !1,
|
|
1131
1131
|
isLightTitle: !1
|
|
1132
1132
|
}
|
|
1133
|
-
},
|
|
1133
|
+
}, P = {
|
|
1134
1134
|
key: t.TasksBannerList,
|
|
1135
1135
|
id: "29",
|
|
1136
1136
|
component_props: {
|
|
@@ -1211,7 +1211,7 @@ const q = {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
]
|
|
1213
1213
|
}
|
|
1214
|
-
},
|
|
1214
|
+
}, T = {
|
|
1215
1215
|
key: t.VideoMainBanner,
|
|
1216
1216
|
id: "30",
|
|
1217
1217
|
component_props: {
|
|
@@ -1406,7 +1406,7 @@ const q = {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
]
|
|
1408
1408
|
}
|
|
1409
|
-
},
|
|
1409
|
+
}, H = {
|
|
1410
1410
|
key: t.StandartTable,
|
|
1411
1411
|
id: "35",
|
|
1412
1412
|
component_props: {
|
|
@@ -1655,7 +1655,7 @@ const q = {
|
|
|
1655
1655
|
}
|
|
1656
1656
|
]
|
|
1657
1657
|
}
|
|
1658
|
-
},
|
|
1658
|
+
}, U = {
|
|
1659
1659
|
key: t.IntroBanner,
|
|
1660
1660
|
id: "36",
|
|
1661
1661
|
component_props: {
|
|
@@ -1684,7 +1684,7 @@ const q = {
|
|
|
1684
1684
|
};
|
|
1685
1685
|
t.Header;
|
|
1686
1686
|
t.Footer;
|
|
1687
|
-
const
|
|
1687
|
+
const J = {
|
|
1688
1688
|
key: t.TitleBlock,
|
|
1689
1689
|
id: "40",
|
|
1690
1690
|
component_props: {
|
|
@@ -1693,43 +1693,123 @@ const Q = {
|
|
|
1693
1693
|
}
|
|
1694
1694
|
};
|
|
1695
1695
|
t.ActionIconList, e.white, e.blackBG, e.graySoft, e.greenLight, e.white, a.Primary, e.white, e.blackBG, e.graySoft, e.greenLight, e.white, a.Primary, e.white, e.blackBG, e.graySoft, e.greenLight, e.white, a.Primary;
|
|
1696
|
+
const Q = {
|
|
1697
|
+
key: t.ButtonsList,
|
|
1698
|
+
id: "42",
|
|
1699
|
+
component_props: {
|
|
1700
|
+
gap: 4,
|
|
1701
|
+
buttons: [
|
|
1702
|
+
{
|
|
1703
|
+
title: "Начать",
|
|
1704
|
+
link: "/start",
|
|
1705
|
+
variant: a.Primary
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
title: "Узнать больше",
|
|
1709
|
+
link: "/learn-more",
|
|
1710
|
+
variant: a.Secondary
|
|
1711
|
+
}
|
|
1712
|
+
]
|
|
1713
|
+
}
|
|
1714
|
+
}, z = {
|
|
1715
|
+
key: t.IconList,
|
|
1716
|
+
id: "43",
|
|
1717
|
+
component_props: {
|
|
1718
|
+
items: [
|
|
1719
|
+
{
|
|
1720
|
+
title: "Icon 1",
|
|
1721
|
+
icon: "https://mbank.kg/media/logo/mprofi.svg",
|
|
1722
|
+
action: {
|
|
1723
|
+
link: "#"
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
title: "Icon 2",
|
|
1728
|
+
icon: "https://mbank.kg/media/logo/mcafe.svg",
|
|
1729
|
+
action: {
|
|
1730
|
+
link: "#"
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
]
|
|
1734
|
+
}
|
|
1735
|
+
}, W = {
|
|
1736
|
+
key: t.HeroIconsBanner,
|
|
1737
|
+
id: "44",
|
|
1738
|
+
component_props: {
|
|
1739
|
+
title: "Hero Banner",
|
|
1740
|
+
description: "Hero Banner Description",
|
|
1741
|
+
background_image: "https://mbank.kg/media/market/Banner_bg.webp",
|
|
1742
|
+
buttons: [
|
|
1743
|
+
{
|
|
1744
|
+
title: "Banner Button",
|
|
1745
|
+
link: "#",
|
|
1746
|
+
variant: a.Primary
|
|
1747
|
+
}
|
|
1748
|
+
],
|
|
1749
|
+
icon_list: [
|
|
1750
|
+
{
|
|
1751
|
+
title: "Banner Icon",
|
|
1752
|
+
icon: "https://mbank.kg/media/logo/mprofi.svg",
|
|
1753
|
+
action: {
|
|
1754
|
+
link: "#"
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
]
|
|
1758
|
+
}
|
|
1759
|
+
}, Z = {
|
|
1760
|
+
key: t.SearchBlock,
|
|
1761
|
+
id: "45",
|
|
1762
|
+
component_props: {
|
|
1763
|
+
title: "Как мы можем вам помочь?",
|
|
1764
|
+
placeholder: "Поиск по услугам",
|
|
1765
|
+
tags: [
|
|
1766
|
+
{ label: "Переводы", action: "/transfers" },
|
|
1767
|
+
{ label: "Кредиты", action: "/credits" },
|
|
1768
|
+
{ label: "Штрафы", action: "/fines" }
|
|
1769
|
+
]
|
|
1770
|
+
}
|
|
1771
|
+
};
|
|
1696
1772
|
export {
|
|
1697
1773
|
A,
|
|
1698
|
-
|
|
1774
|
+
l as B,
|
|
1699
1775
|
o as C,
|
|
1700
1776
|
f as D,
|
|
1701
1777
|
N as E,
|
|
1702
|
-
|
|
1778
|
+
v as F,
|
|
1779
|
+
z as G,
|
|
1780
|
+
W as H,
|
|
1703
1781
|
L as I,
|
|
1782
|
+
Z as J,
|
|
1704
1783
|
F as M,
|
|
1705
1784
|
_ as P,
|
|
1706
1785
|
m as S,
|
|
1707
|
-
T,
|
|
1786
|
+
P as T,
|
|
1708
1787
|
p as V,
|
|
1709
1788
|
w as W,
|
|
1710
1789
|
r as a,
|
|
1711
1790
|
d as b,
|
|
1712
|
-
|
|
1713
|
-
|
|
1791
|
+
c,
|
|
1792
|
+
g as d,
|
|
1714
1793
|
k as e,
|
|
1715
1794
|
b as f,
|
|
1716
1795
|
h as g,
|
|
1717
1796
|
y as h,
|
|
1718
|
-
|
|
1719
|
-
|
|
1797
|
+
B as i,
|
|
1798
|
+
D as j,
|
|
1720
1799
|
x as k,
|
|
1721
1800
|
q as l,
|
|
1722
|
-
|
|
1801
|
+
I as m,
|
|
1723
1802
|
u as n,
|
|
1724
1803
|
S as o,
|
|
1725
|
-
|
|
1804
|
+
M as p,
|
|
1726
1805
|
V as q,
|
|
1727
|
-
|
|
1806
|
+
T as r,
|
|
1728
1807
|
C as s,
|
|
1729
1808
|
E as t,
|
|
1730
1809
|
G as u,
|
|
1731
|
-
|
|
1732
|
-
|
|
1810
|
+
H as v,
|
|
1811
|
+
U as w,
|
|
1733
1812
|
R as x,
|
|
1734
|
-
|
|
1813
|
+
J as y,
|
|
1814
|
+
Q as z
|
|
1735
1815
|
};
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as t, Fragment as h, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useEffect as c, useCallback as b } from "react";
|
|
3
3
|
import { c as y } from "./cn-6a4bf187.js";
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
import { createPortal as v } from "react-dom";
|
|
5
|
+
const w = ({ children: n, element: i }) => {
|
|
6
|
+
const r = i || (typeof document < "u" ? document.body : null);
|
|
7
|
+
return r ? v(n, r) : /* @__PURE__ */ t(h, { children: n });
|
|
8
|
+
}, k = (n) => {
|
|
9
|
+
const { className: i, children: r, isOpen: e, onClose: o, lazy: m } = n, [p, x] = g(!1);
|
|
7
10
|
c(() => {
|
|
8
11
|
e && x(!0);
|
|
9
12
|
}, [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
13
|
document.body.style.overflow = "", document.body.style.paddingRight = "";
|
|
11
14
|
}), [e]);
|
|
12
15
|
const l = b(
|
|
13
|
-
(
|
|
14
|
-
|
|
16
|
+
(a) => {
|
|
17
|
+
a.key === "Escape" && (o == null || o());
|
|
15
18
|
},
|
|
16
19
|
[o]
|
|
17
20
|
);
|
|
18
21
|
c(() => {
|
|
19
22
|
if (e) {
|
|
20
23
|
window.addEventListener("keydown", l);
|
|
21
|
-
const
|
|
22
|
-
|
|
24
|
+
const a = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', s = document.querySelector('[role="dialog"]'), d = s == null ? void 0 : s.querySelectorAll(
|
|
25
|
+
a
|
|
23
26
|
)[0];
|
|
24
27
|
d == null || d.focus();
|
|
25
28
|
}
|
|
@@ -27,16 +30,16 @@ const v = ({ children: n, element: r = document.body }) => g(n, r), w = (n) => {
|
|
|
27
30
|
window.removeEventListener("keydown", l);
|
|
28
31
|
};
|
|
29
32
|
}, [e, l]);
|
|
30
|
-
const f = (
|
|
31
|
-
|
|
33
|
+
const f = (a) => {
|
|
34
|
+
a.stopPropagation();
|
|
32
35
|
};
|
|
33
|
-
return
|
|
36
|
+
return m && !p ? null : /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(
|
|
34
37
|
"div",
|
|
35
38
|
{
|
|
36
39
|
className: y(
|
|
37
40
|
"fixed inset-0 z-[100000000] flex items-center justify-center bg-black/60 transition-all duration-300",
|
|
38
41
|
e ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none",
|
|
39
|
-
|
|
42
|
+
i
|
|
40
43
|
),
|
|
41
44
|
onClick: o,
|
|
42
45
|
role: "dialog",
|
|
@@ -91,7 +94,7 @@ const v = ({ children: n, element: r = document.body }) => g(n, r), w = (n) => {
|
|
|
91
94
|
)
|
|
92
95
|
}
|
|
93
96
|
),
|
|
94
|
-
/* @__PURE__ */ t("div", { className: "mt-2 text-[#0e0f11]", children:
|
|
97
|
+
/* @__PURE__ */ t("div", { className: "mt-2 text-[#0e0f11]", children: r })
|
|
95
98
|
]
|
|
96
99
|
}
|
|
97
100
|
)
|
|
@@ -99,24 +102,24 @@ const v = ({ children: n, element: r = document.body }) => g(n, r), w = (n) => {
|
|
|
99
102
|
) });
|
|
100
103
|
}, j = ({
|
|
101
104
|
components: n = [],
|
|
102
|
-
title:
|
|
103
|
-
description:
|
|
105
|
+
title: i,
|
|
106
|
+
description: r,
|
|
104
107
|
isOpen: e,
|
|
105
108
|
onClose: o
|
|
106
109
|
}) => /* @__PURE__ */ u(
|
|
107
|
-
|
|
110
|
+
k,
|
|
108
111
|
{
|
|
109
112
|
isOpen: e,
|
|
110
113
|
onClose: o,
|
|
111
114
|
children: [
|
|
112
115
|
/* @__PURE__ */ t("div", { className: "bg-white", children: "123" }),
|
|
113
|
-
/* @__PURE__ */ t("h2", { className: "text-[44px] leading-[52px] font-bold mb-[24px] text-center", children:
|
|
114
|
-
/* @__PURE__ */ t("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children:
|
|
116
|
+
/* @__PURE__ */ t("h2", { className: "text-[44px] leading-[52px] font-bold mb-[24px] text-center", children: i }),
|
|
117
|
+
/* @__PURE__ */ t("p", { className: "text-[18px] leading-[26px] text-graySoft text-center", children: r }),
|
|
115
118
|
n
|
|
116
119
|
]
|
|
117
120
|
}
|
|
118
121
|
);
|
|
119
122
|
export {
|
|
120
|
-
|
|
123
|
+
k as M,
|
|
121
124
|
j as a
|
|
122
125
|
};
|