md-components-mdigial-azamat 0.0.33 → 0.0.36

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 (152) hide show
  1. package/dist/AllComponents.js +29 -5
  2. package/dist/AnimatedSwiper/Slide/Slide.js +2 -2
  3. package/dist/AnimatedSwiper/index.js +5 -3
  4. package/dist/Banner/Banner.js +152 -8
  5. package/dist/Banner/index.js +2 -2
  6. package/dist/BannerAndText/index.js +56 -23
  7. package/dist/CardIconList/CardIconList.js +81 -22
  8. package/dist/CardIconList/index.js +2 -2
  9. package/dist/CardImageList/CardImageList.js +75 -8
  10. package/dist/CardImageList/index.js +1 -1
  11. package/dist/CardImageSecondary/CardImageSecondary.js +57 -23
  12. package/dist/CardImageSecondary/index.js +1 -1
  13. package/dist/CardImageSecondaryList/CardImageSecondaryList.js +27 -4
  14. package/dist/CardImageSecondaryList/index.js +1 -1
  15. package/dist/CardInfoTable/index.js +187 -22
  16. package/dist/Cards/CardImage/CardImage.js +2 -2
  17. package/dist/Cards/ColoredCard/index.js +2 -2
  18. package/dist/Cards/ContentCard/ContentCard.js +38 -5
  19. package/dist/Cards/ContentCard/index.js +2 -2
  20. package/dist/Cards/FeaturesCard/index.js +3 -3
  21. package/dist/Cards/WarningCard/WarningCard.js +58 -6
  22. package/dist/Cards/WarningCard/index.js +1 -1
  23. package/dist/Cards/WarningCard/model.js +39 -7
  24. package/dist/ComponentContainer-cdb2528c.js +16 -0
  25. package/dist/ContentCardList/ContentCardList.js +34 -21
  26. package/dist/ContentCardList/index.js +2 -2
  27. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +41 -5
  28. package/dist/DownloadFile/components/DownloadFileBanner/index.js +2 -2
  29. package/dist/DownloadFile/components/DownloadFileBright/index.js +74 -7
  30. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +49 -6
  31. package/dist/DownloadFile/components/DownloadFileFull/index.js +1 -1
  32. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +46 -5
  33. package/dist/DownloadFile/components/DownloadFileHalf/index.js +2 -2
  34. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +56 -7
  35. package/dist/DownloadFile/components/DownloadFileMini/index.js +2 -2
  36. package/dist/Faq/Faq.js +44 -20
  37. package/dist/Faq/components/Collapse/Collapse.js +37 -19
  38. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +1061 -4
  39. package/dist/Faq/components/FeedbackForm/index.js +2 -2
  40. package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
  41. package/dist/Faq/index.js +2 -2
  42. package/dist/Footer/Footer.js +452 -0
  43. package/dist/Footer/components/ContactOfFooter/ContactOfFooter.js +34 -0
  44. package/dist/Footer/components/LinkToApp/LinkToApp.js +45 -0
  45. package/dist/Footer/components/LinkToAppMobile/LinkToAppMobile.js +28 -0
  46. package/dist/Footer/components/ListNavigation/ListNavigation.js +221 -0
  47. package/dist/Footer/components/NavigationFooter/NavigationFooter.js +31 -0
  48. package/dist/Footer/components/SocialButtonsList/SocialButtonsList.js +37 -0
  49. package/dist/Footer/types.js +1 -0
  50. package/dist/GooglePlayButton-35331c37.js +100 -0
  51. package/dist/Header/Header.js +8 -0
  52. package/dist/Header/components/HeaderCard/HeaderCard.js +37 -0
  53. package/dist/Header/components/HeaderCard/index.js +4 -0
  54. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +208 -0
  55. package/dist/Header/components/HeaderMenu/HeaderMenu.js +41 -0
  56. package/dist/Header/components/HeaderMenu/index.js +1 -0
  57. package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +47 -0
  58. package/dist/Header/components/HeaderMobile/HeaderMobile.js +11 -0
  59. package/dist/Header/components/HeaderMobile/index.js +4 -0
  60. package/dist/Header/components/HeaderResults/HeaderResults.js +46 -0
  61. package/dist/Header/components/HeaderResults/index.js +4 -0
  62. package/dist/Header/components/HeaderSearch/HeaderSearch.js +13 -0
  63. package/dist/Header/components/HeaderSearch/index.js +4 -0
  64. package/dist/Header/components/HeaderSearchMobile/HeaderSearchMobile.js +78 -0
  65. package/dist/Header/components/HeaderTab/HeaderTab.js +34 -0
  66. package/dist/Header/components/HeaderTab/index.js +4 -0
  67. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +55 -0
  68. package/dist/Header/components/HeaderWeb/HeaderWeb.js +149 -0
  69. package/dist/Header/components/HeaderWeb/index.js +4 -0
  70. package/dist/Header/components/SelectLanguage/SelectLanguage.js +79 -0
  71. package/dist/Header/components/SelectLanguage/index.js +4 -0
  72. package/dist/Header/components/TabsOutlined/TabsOutlined.js +50 -0
  73. package/dist/Header/components/TabsOutlined/index.js +4 -0
  74. package/dist/Header/const.js +4 -0
  75. package/dist/Header/index.js +4 -0
  76. package/dist/Header/types.js +5 -0
  77. package/dist/HeroPossibilityBanner/index.js +1 -1
  78. package/dist/HtmlContent/HtmlContent.js +1 -1
  79. package/dist/Icon-70ea6cb8.js +187 -0
  80. package/dist/InfoBanner/index.js +89 -8
  81. package/dist/InfoBannerList/InfoBannerList.js +5 -4
  82. package/dist/InfoBannerList/index.js +2 -2
  83. package/dist/InstructionList/InstructionList.js +6 -4
  84. package/dist/InstructionList/components/InstructionCard/InstructionCard.js +31 -7
  85. package/dist/InstructionList/components/InstructionCard/index.js +2 -2
  86. package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
  87. package/dist/InstructionList/index.js +1 -1
  88. package/dist/IntroBanner/IntroBanner.js +68 -6
  89. package/dist/IntroBanner/index.js +1 -1
  90. package/dist/MainBanner/MainBanner.js +84 -6
  91. package/dist/MainBanner/index.js +2 -2
  92. package/dist/MultiCards/index.js +88 -5
  93. package/dist/PageViewer/PageViewer.js +22 -4
  94. package/dist/PageViewer/renderComponents.js +1 -1
  95. package/dist/Partners/Partners.js +2 -2
  96. package/dist/PartnersColors/PartnersColors.js +1 -1
  97. package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
  98. package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
  99. package/dist/PreviewList/PreviewList.js +4 -2
  100. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +32 -8
  101. package/dist/PreviewList/components/PreviewCard/index.js +2 -2
  102. package/dist/PreviewList/index.js +1 -1
  103. package/dist/PromoPoster/PromoPoster.js +4 -4
  104. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  105. package/dist/RenderAllComponents/const.js +11 -11
  106. package/dist/Segments/Segments.js +10 -10
  107. package/dist/StandartTable/components/CardMarkedRow/index.js +33 -9
  108. package/dist/StandartTable/components/CardWarning/index.js +87 -6
  109. package/dist/StandartTable/index.js +5 -4
  110. package/dist/Stepper/Stepper.js +50 -6
  111. package/dist/Stepper/index.js +1 -1
  112. package/dist/SwiperList/SwiperList.js +5 -4
  113. package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
  114. package/dist/SwiperList/index.js +1 -1
  115. package/dist/TasksBanner/TasksBanner.js +5 -5
  116. package/dist/TasksBanner/index.js +2 -2
  117. package/dist/TasksBannerList/TasksBannerList.js +2 -2
  118. package/dist/TasksBannerList/index.js +1 -1
  119. package/dist/Video/VideoFull/VideoFull.js +1 -1
  120. package/dist/Video/VideoList/VideoList.js +15 -15
  121. package/dist/Video/VideoListMini/VideoListMini.js +14 -14
  122. package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
  123. package/dist/VideoMainBanner/VideoMainBanner.js +168 -7
  124. package/dist/VideoMainBanner/index.js +2 -2
  125. package/dist/assets/index.css +1 -1
  126. package/dist/{cn-d8c04b28.js → cn-6a4bf187.js} +521 -488
  127. package/dist/componentsMap-d8bad886.js +68 -0
  128. package/dist/const-637b0dca.js +27 -0
  129. package/dist/data.mock-483400cb.js +1713 -0
  130. package/dist/header-97863d08.js +22 -0
  131. package/dist/{index-60dfa873.js → index-2265d593.js} +1 -1
  132. package/dist/index-3a534581.js +261 -0
  133. package/dist/index-4f8399c3.js +925 -0
  134. package/dist/index-66837af1.js +313 -0
  135. package/dist/index-6af94f99.js +53 -0
  136. package/dist/{index-a379154f.js → index-815f0132.js} +2 -2
  137. package/dist/languages-list-8419e560.js +22 -0
  138. package/dist/logo-99aa20bd.js +27 -0
  139. package/dist/main.js +87 -67
  140. package/dist/mousewheel-865ae601.js +153 -0
  141. package/dist/palette-b47a76c9.js +46 -0
  142. package/dist/routes-382632ac.js +7 -0
  143. package/dist/search-dd4eb6f8.js +5 -0
  144. package/dist/{index-b093f70c.js → swiper-react-90953710.js} +780 -1098
  145. package/dist/trash/HeroLargeCards/index.js +1 -1
  146. package/dist/useClickOutside-197b0df2.js +12 -0
  147. package/dist/useScreenSize-c1b64c02.js +19 -0
  148. package/package.json +4 -2
  149. package/dist/ComponentContainer-0fcc2695.js +0 -16
  150. package/dist/componentsMap-6d7d63d5.js +0 -47
  151. package/dist/index-b999483f.js +0 -5314
  152. package/dist/model-9e50e351.js +0 -69
@@ -0,0 +1,22 @@
1
+ import { TabValues as f, SearchedArrays as i } from "./Header/types.js";
2
+ const u = (e) => e ? Object.entries(e).reduce(
3
+ (s, [r, n]) => (Array.isArray(n) ? s.arrays[r] = n : s.nonArrays[r] = n, s),
4
+ {
5
+ arrays: {},
6
+ nonArrays: {}
7
+ }
8
+ ) : { arrays: {}, nonArrays: {} }, a = (e) => e != null && e.nonArrays ? Object.entries(e.nonArrays).map(([s, r], n) => ({
9
+ id: n + 1,
10
+ title: f[s],
11
+ count: r
12
+ })) : [], b = (e, s, r, n) => r != null && r.arrays ? s === e ? Object.values(r.arrays).flat() : r.arrays[Object.keys(i).find(
13
+ (y) => {
14
+ var t;
15
+ return i[y] === ((t = n.find((o) => o.id === s)) == null ? void 0 : t.title);
16
+ }
17
+ )] || [] : [];
18
+ export {
19
+ b as a,
20
+ u as f,
21
+ a as g
22
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { c as r } from "./cn-d8c04b28.js";
2
+ import { c as r } from "./cn-6a4bf187.js";
3
3
  const u = ({
4
4
  className: t = "",
5
5
  src: l = "/",
@@ -0,0 +1,261 @@
1
+ import { jsx as l, jsxs as _ } from "react/jsx-runtime";
2
+ import { useRef as h, useEffect as $, useMemo as P, useState as I } from "react";
3
+ import { S as M, C as W } from "./search-dd4eb6f8.js";
4
+ import { HtmlContent as Y } from "./HtmlContent/HtmlContent.js";
5
+ import { a as q } from "./languages-list-8419e560.js";
6
+ import { u as z } from "./useClickOutside-197b0df2.js";
7
+ import { I as G } from "./index-2265d593.js";
8
+ import { f as B, g as K, a as Q } from "./header-97863d08.js";
9
+ import { TabsOutlined as V } from "./Header/components/TabsOutlined/TabsOutlined.js";
10
+ function J(o, e, t, p) {
11
+ var i = this, s = h(null), f = h(0), b = h(0), a = h(null), m = h([]), w = h(), x = h(), E = h(o), g = h(!0);
12
+ E.current = o;
13
+ var d = typeof window < "u", r = !e && e !== 0 && d;
14
+ if (typeof o != "function")
15
+ throw new TypeError("Expected a function");
16
+ e = +e || 0;
17
+ var u = !!(t = t || {}).leading, R = !("trailing" in t) || !!t.trailing, v = "maxWait" in t, C = "debounceOnServer" in t && !!t.debounceOnServer, N = v ? Math.max(+t.maxWait || 0, e) : null;
18
+ $(function() {
19
+ return g.current = !0, function() {
20
+ g.current = !1;
21
+ };
22
+ }, []);
23
+ var O = P(function() {
24
+ var F = function(n) {
25
+ var c = m.current, A = w.current;
26
+ return m.current = w.current = null, f.current = n, b.current = b.current || n, x.current = E.current.apply(A, c);
27
+ }, T = function(n, c) {
28
+ r && cancelAnimationFrame(a.current), a.current = r ? requestAnimationFrame(n) : setTimeout(n, c);
29
+ }, k = function(n) {
30
+ if (!g.current)
31
+ return !1;
32
+ var c = n - s.current;
33
+ return !s.current || c >= e || c < 0 || v && n - f.current >= N;
34
+ }, H = function(n) {
35
+ return a.current = null, R && m.current ? F(n) : (m.current = w.current = null, x.current);
36
+ }, S = function n() {
37
+ var c = Date.now();
38
+ if (u && b.current === f.current && U(), k(c))
39
+ return H(c);
40
+ if (g.current) {
41
+ var A = e - (c - s.current), D = v ? Math.min(A, N - (c - f.current)) : A;
42
+ T(n, D);
43
+ }
44
+ }, U = function() {
45
+ p && p({});
46
+ }, y = function() {
47
+ if (d || C) {
48
+ var n = Date.now(), c = k(n);
49
+ if (m.current = [].slice.call(arguments), w.current = i, s.current = n, c) {
50
+ if (!a.current && g.current)
51
+ return f.current = s.current, T(S, e), u ? F(s.current) : x.current;
52
+ if (v)
53
+ return T(S, e), F(s.current);
54
+ }
55
+ return a.current || T(S, e), x.current;
56
+ }
57
+ };
58
+ return y.cancel = function() {
59
+ var n = a.current;
60
+ n && (r ? cancelAnimationFrame(a.current) : clearTimeout(a.current)), f.current = 0, m.current = s.current = w.current = a.current = null, n && p && p({});
61
+ }, y.isPending = function() {
62
+ return !!a.current;
63
+ }, y.flush = function() {
64
+ return a.current ? H(Date.now()) : x.current;
65
+ }, y;
66
+ }, [u, v, e, N, R, r, d, C, p]);
67
+ return O;
68
+ }
69
+ const X = {}.VITE_API_URL || "https://mbank.kg/api/", Z = "app_language", L = () => localStorage.getItem(Z) || q.RU, j = async (o, e = {}) => {
70
+ const t = L(), p = `${X}${o}`;
71
+ try {
72
+ const i = await fetch(p, {
73
+ ...e,
74
+ headers: {
75
+ "Accept-Language": t,
76
+ "Content-Type": "application/json",
77
+ ...e.headers
78
+ }
79
+ });
80
+ if (!i.ok) {
81
+ if (e.method === "GET" || !e.method)
82
+ return { data: null };
83
+ throw new Error(`HTTP error! status: ${i.status}`);
84
+ }
85
+ return { data: await i.json() };
86
+ } catch (i) {
87
+ if (e.method === "GET" || !e.method)
88
+ return { data: null };
89
+ throw i;
90
+ }
91
+ }, ee = {
92
+ getHeaderSections(o, e) {
93
+ const t = `v2/header/?page_type=${e || ""}`;
94
+ return j(t, {
95
+ method: "GET",
96
+ headers: {
97
+ "Accept-Language": o || L()
98
+ }
99
+ });
100
+ },
101
+ searchHeader(o, e) {
102
+ const t = `v2/search/?search=${encodeURIComponent(o)}`;
103
+ return j(t, {
104
+ method: "GET",
105
+ headers: {
106
+ "Accept-Language": e || L()
107
+ }
108
+ });
109
+ }
110
+ }, re = 8, de = ({ closeSearch: o, onClick: e }) => {
111
+ const [t, p] = I(8), [i, s] = I(!1), { ref: f } = z(i, () => {
112
+ s(!1);
113
+ }), [b, a] = I(), m = J(async (r) => {
114
+ if (r.trim() !== "")
115
+ try {
116
+ const { data: u } = await ee.searchHeader(r);
117
+ a(u), s(!0);
118
+ } catch {
119
+ console.log("No results found");
120
+ }
121
+ }, 500), w = (r) => {
122
+ const u = r.target.value;
123
+ m(u);
124
+ }, x = b ? B(b) : { arrays: {}, nonArrays: {} }, g = [...K(x)].sort(
125
+ (r, u) => r.title === "common_words.all" ? -1 : u.title === "common_words.all" ? 1 : 0
126
+ ), d = Q(
127
+ re,
128
+ t,
129
+ x,
130
+ g
131
+ );
132
+ return /* @__PURE__ */ l("div", { className: "w-full max-w-[1200px] mx-auto", children: /* @__PURE__ */ _("div", { className: "relative w-full", children: [
133
+ /* @__PURE__ */ _("div", { className: "flex items-center gap-2 relative", children: [
134
+ /* @__PURE__ */ l(
135
+ "input",
136
+ {
137
+ className: `
138
+ w-full h-[52px] rounded-2xl bg-[#F4F6F7]
139
+ pl-[44px] pr-[170px] py-[4px] text-[16px] leading-[24px]
140
+ text-[#0E0F11] transition-all outline-none border-0
141
+ placeholder:text-[#768793]
142
+ `,
143
+ type: "text",
144
+ placeholder: "Поиск...",
145
+ onChange: w
146
+ }
147
+ ),
148
+ /* @__PURE__ */ l(
149
+ "span",
150
+ {
151
+ className: `
152
+ absolute left-[5px] top-1/2 -translate-y-1/2
153
+ w-9 h-9 flex items-center justify-center cursor-pointer p-[7px]
154
+ `,
155
+ children: /* @__PURE__ */ l(
156
+ G,
157
+ {
158
+ src: M,
159
+ alt: "search icon",
160
+ width: 18,
161
+ height: 18
162
+ }
163
+ )
164
+ }
165
+ ),
166
+ /* @__PURE__ */ l(
167
+ "button",
168
+ {
169
+ type: "button",
170
+ className: `
171
+ w-9 h-9 flex items-center justify-center cursor-pointer
172
+ bg-[#EAEFF0] rounded-full p-[10px] border-none
173
+ `,
174
+ onClick: o,
175
+ children: /* @__PURE__ */ l(
176
+ G,
177
+ {
178
+ src: W,
179
+ alt: "close icon",
180
+ width: 16,
181
+ height: 16
182
+ }
183
+ )
184
+ }
185
+ )
186
+ ] }),
187
+ i && (d != null && d.length ? /* @__PURE__ */ _(
188
+ "div",
189
+ {
190
+ ref: f,
191
+ className: `
192
+ flex flex-col gap-3 absolute top-[70px] left-0 w-full max-h-[400px]
193
+ p-[12px_20px_20px_20px] rounded-[20px] bg-white z-[1000]
194
+ shadow-[0_4px_25px_rgba(0,0,0,0.05)]
195
+ animate-fadeInDropdown
196
+ `,
197
+ children: [
198
+ /* @__PURE__ */ l(
199
+ V,
200
+ {
201
+ onClick: (r) => p(r),
202
+ activeTab: t,
203
+ navigation: g
204
+ }
205
+ ),
206
+ /* @__PURE__ */ l(
207
+ "div",
208
+ {
209
+ className: `
210
+ flex flex-col gap-2 overflow-y-auto
211
+ scrollbar-thin scrollbar-thumb-black/40 scrollbar-track-transparent
212
+ `,
213
+ children: d == null ? void 0 : d.map((r, u) => /* @__PURE__ */ _(
214
+ "a",
215
+ {
216
+ href: (r == null ? void 0 : r.link) || "#",
217
+ className: `
218
+ flex flex-col gap-[2px] p-[8px_12px]
219
+ hover:bg-[#F4F6F7] rounded-[12px]
220
+ `,
221
+ onClick: e,
222
+ children: [
223
+ /* @__PURE__ */ l("span", { className: "text-[#0E0F11] text-[16px] font-medium leading-[24px]", children: r == null ? void 0 : r.title }),
224
+ /* @__PURE__ */ l(
225
+ Y,
226
+ {
227
+ className: `
228
+ text-[#768793] text-[14px] leading-[20px]
229
+ font-[tabular-nums] overflow-hidden
230
+ `,
231
+ data: (r == null ? void 0 : r.body) ?? ""
232
+ }
233
+ )
234
+ ]
235
+ },
236
+ u
237
+ ))
238
+ }
239
+ )
240
+ ]
241
+ }
242
+ ) : /* @__PURE__ */ l(
243
+ "div",
244
+ {
245
+ ref: f,
246
+ className: `
247
+ absolute top-[70px] left-0 w-full
248
+ p-[20px] rounded-[20px] bg-white shadow
249
+ text-[16px] font-medium
250
+ `,
251
+ children: "Ничего не найдено"
252
+ }
253
+ ))
254
+ ] }) });
255
+ };
256
+ export {
257
+ de as H,
258
+ re as T,
259
+ ee as a,
260
+ J as c
261
+ };