md-components-mdigial-azamat 0.0.32 → 0.0.35

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 (158) hide show
  1. package/dist/Actions/downloadFile/downloadFile.js +28 -0
  2. package/dist/Actions/index.js +13 -0
  3. package/dist/Actions/types.js +9 -0
  4. package/dist/AllComponents.js +29 -9
  5. package/dist/AnimatedSwiper/Slide/Slide.js +29 -29
  6. package/dist/AnimatedSwiper/index.js +10 -137
  7. package/dist/Banner/Banner.js +152 -8
  8. package/dist/Banner/index.js +2 -2
  9. package/dist/BannerAndText/index.js +56 -27
  10. package/dist/CardIconList/CardIconList.js +81 -26
  11. package/dist/CardIconList/index.js +2 -2
  12. package/dist/CardImageList/CardImageList.js +75 -8
  13. package/dist/CardImageList/index.js +1 -1
  14. package/dist/CardImageSecondary/CardImageSecondary.js +57 -27
  15. package/dist/CardImageSecondary/index.js +2 -2
  16. package/dist/CardImageSecondaryList/CardImageSecondaryList.js +27 -4
  17. package/dist/CardImageSecondaryList/index.js +1 -1
  18. package/dist/CardInfoTable/index.js +187 -26
  19. package/dist/Cards/CardImage/CardImage.js +2 -2
  20. package/dist/Cards/ColoredCard/index.js +2 -2
  21. package/dist/Cards/ContentCard/ContentCard.js +38 -5
  22. package/dist/Cards/ContentCard/index.js +2 -2
  23. package/dist/Cards/FeaturesCard/index.js +3 -3
  24. package/dist/Cards/WarningCard/WarningCard.js +58 -6
  25. package/dist/Cards/WarningCard/index.js +1 -1
  26. package/dist/Cards/WarningCard/model.js +39 -7
  27. package/dist/ComponentContainer-cdb2528c.js +16 -0
  28. package/dist/ContentCardList/ContentCardList.js +34 -25
  29. package/dist/ContentCardList/index.js +2 -2
  30. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +41 -5
  31. package/dist/DownloadFile/components/DownloadFileBanner/index.js +2 -2
  32. package/dist/DownloadFile/components/DownloadFileBright/index.js +74 -8
  33. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +50 -5
  34. package/dist/DownloadFile/components/DownloadFileFull/index.js +1 -1
  35. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +46 -5
  36. package/dist/DownloadFile/components/DownloadFileHalf/index.js +2 -2
  37. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +56 -5
  38. package/dist/DownloadFile/components/DownloadFileMini/index.js +2 -2
  39. package/dist/Faq/Faq.js +44 -24
  40. package/dist/Faq/components/Collapse/Collapse.js +37 -19
  41. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +1061 -4
  42. package/dist/Faq/components/FeedbackForm/index.js +2 -2
  43. package/dist/Faq/components/PlusMinusIcon/PlusMinusIcon.js +1 -1
  44. package/dist/Faq/index.js +2 -2
  45. package/dist/Footer/Footer.js +452 -0
  46. package/dist/Footer/components/ContactOfFooter/ContactOfFooter.js +34 -0
  47. package/dist/Footer/components/LinkToApp/LinkToApp.js +45 -0
  48. package/dist/Footer/components/LinkToAppMobile/LinkToAppMobile.js +28 -0
  49. package/dist/Footer/components/ListNavigation/ListNavigation.js +221 -0
  50. package/dist/Footer/components/NavigationFooter/NavigationFooter.js +31 -0
  51. package/dist/Footer/components/SocialButtonsList/SocialButtonsList.js +37 -0
  52. package/dist/Footer/types.js +1 -0
  53. package/dist/GooglePlayButton-35331c37.js +100 -0
  54. package/dist/Header/Header.js +8 -0
  55. package/dist/Header/components/HeaderCard/HeaderCard.js +37 -0
  56. package/dist/Header/components/HeaderCard/index.js +4 -0
  57. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +208 -0
  58. package/dist/Header/components/HeaderMenu/HeaderMenu.js +41 -0
  59. package/dist/Header/components/HeaderMenu/index.js +1 -0
  60. package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +47 -0
  61. package/dist/Header/components/HeaderMobile/HeaderMobile.js +11 -0
  62. package/dist/Header/components/HeaderMobile/index.js +4 -0
  63. package/dist/Header/components/HeaderResults/HeaderResults.js +46 -0
  64. package/dist/Header/components/HeaderResults/index.js +4 -0
  65. package/dist/Header/components/HeaderSearch/HeaderSearch.js +13 -0
  66. package/dist/Header/components/HeaderSearch/index.js +4 -0
  67. package/dist/Header/components/HeaderSearchMobile/HeaderSearchMobile.js +78 -0
  68. package/dist/Header/components/HeaderTab/HeaderTab.js +34 -0
  69. package/dist/Header/components/HeaderTab/index.js +4 -0
  70. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +55 -0
  71. package/dist/Header/components/HeaderWeb/HeaderWeb.js +149 -0
  72. package/dist/Header/components/HeaderWeb/index.js +4 -0
  73. package/dist/Header/components/SelectLanguage/SelectLanguage.js +79 -0
  74. package/dist/Header/components/SelectLanguage/index.js +4 -0
  75. package/dist/Header/components/TabsOutlined/TabsOutlined.js +50 -0
  76. package/dist/Header/components/TabsOutlined/index.js +4 -0
  77. package/dist/Header/const.js +4 -0
  78. package/dist/Header/index.js +4 -0
  79. package/dist/Header/types.js +5 -0
  80. package/dist/HeroPossibilityBanner/index.js +1 -1
  81. package/dist/HtmlContent/HtmlContent.js +1 -1
  82. package/dist/Icon-70ea6cb8.js +187 -0
  83. package/dist/InfoBanner/index.js +89 -7
  84. package/dist/InfoBannerList/InfoBannerList.js +5 -5
  85. package/dist/InfoBannerList/index.js +2 -2
  86. package/dist/InstructionList/InstructionList.js +6 -4
  87. package/dist/InstructionList/components/InstructionCard/InstructionCard.js +47 -66
  88. package/dist/InstructionList/components/InstructionCard/index.js +1 -1
  89. package/dist/InstructionList/components/InstructionModal/InstructionModal.js +2 -2
  90. package/dist/InstructionList/index.js +1 -1
  91. package/dist/IntroBanner/IntroBanner.js +68 -6
  92. package/dist/IntroBanner/index.js +1 -1
  93. package/dist/MainBanner/MainBanner.js +84 -6
  94. package/dist/MainBanner/index.js +2 -2
  95. package/dist/MultiCards/index.js +88 -5
  96. package/dist/PageViewer/PageViewer.js +22 -5
  97. package/dist/PageViewer/renderComponents.js +1 -1
  98. package/dist/Partners/Partners.js +2 -2
  99. package/dist/PartnersColors/PartnersColors.js +1 -1
  100. package/dist/PartnersColors/components/PartnerCard/PartnerCard.js +1 -1
  101. package/dist/PartnersColors/components/PartnerTab/PartnerTab.js +2 -2
  102. package/dist/PreviewList/PreviewList.js +4 -2
  103. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +45 -3
  104. package/dist/PreviewList/components/PreviewCard/index.js +2 -2
  105. package/dist/PreviewList/index.js +1 -1
  106. package/dist/PromoPoster/PromoPoster.js +7 -48
  107. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  108. package/dist/RenderAllComponents/const.js +11 -11
  109. package/dist/Segments/Segments.js +1 -1
  110. package/dist/StandartTable/components/CardMarkedRow/index.js +47 -73
  111. package/dist/StandartTable/components/CardWarning/index.js +87 -6
  112. package/dist/StandartTable/index.js +4 -4
  113. package/dist/Stepper/Stepper.js +50 -6
  114. package/dist/Stepper/index.js +1 -1
  115. package/dist/SwiperList/SwiperList.js +11 -97
  116. package/dist/SwiperList/components/Bullet/Bullet.js +1 -1
  117. package/dist/SwiperList/components/Slide/Slide.js +6 -6
  118. package/dist/SwiperList/index.js +1 -1
  119. package/dist/TasksBanner/TasksBanner.js +9 -123
  120. package/dist/TasksBanner/index.js +2 -2
  121. package/dist/TasksBannerList/TasksBannerList.js +5 -30
  122. package/dist/TasksBannerList/index.js +2 -2
  123. package/dist/Types/FiledTypes.js +1 -1
  124. package/dist/Video/VideoFull/VideoFull.js +1 -1
  125. package/dist/Video/VideoList/VideoList.js +1 -1
  126. package/dist/Video/VideoListMini/VideoListMini.js +1 -1
  127. package/dist/Video/components/VideoPlayer/VideoPlayer.js +1 -1
  128. package/dist/VideoMainBanner/VideoMainBanner.js +168 -7
  129. package/dist/VideoMainBanner/index.js +2 -2
  130. package/dist/assets/index.css +1 -1
  131. package/dist/{cn-d8c04b28.js → cn-6a4bf187.js} +521 -488
  132. package/dist/componentsMap-e2de87b6.js +68 -0
  133. package/dist/const-637b0dca.js +27 -0
  134. package/dist/data.mock-483400cb.js +1713 -0
  135. package/dist/header-97863d08.js +22 -0
  136. package/dist/{index-60dfa873.js → index-2265d593.js} +1 -1
  137. package/dist/index-2fb01942.js +925 -0
  138. package/dist/index-3a534581.js +261 -0
  139. package/dist/index-66837af1.js +313 -0
  140. package/dist/index-6af94f99.js +53 -0
  141. package/dist/{index-a379154f.js → index-815f0132.js} +2 -2
  142. package/dist/languages-list-8419e560.js +22 -0
  143. package/dist/logo-99aa20bd.js +27 -0
  144. package/dist/main.js +85 -66
  145. package/dist/mousewheel-865ae601.js +153 -0
  146. package/dist/palette-b47a76c9.js +46 -0
  147. package/dist/routes-382632ac.js +7 -0
  148. package/dist/search-dd4eb6f8.js +5 -0
  149. package/dist/{swiper-react-c049ea66.js → swiper-react-90953710.js} +760 -935
  150. package/dist/trash/HeroLargeCards/index.js +1 -1
  151. package/dist/useClickOutside-197b0df2.js +12 -0
  152. package/package.json +4 -2
  153. package/dist/ComponentContainer-0fcc2695.js +0 -16
  154. package/dist/componentsMap-71c9335f.js +0 -50
  155. package/dist/index-92f77047.js +0 -4865
  156. package/dist/model-9e50e351.js +0 -69
  157. /package/dist/assets/{swiper-react.css → index2.css} +0 -0
  158. /package/dist/assets/{TasksBanner.css → index3.css} +0 -0
@@ -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
+ };
@@ -0,0 +1,313 @@
1
+ import { jsx as r, jsxs as j } from "react/jsx-runtime";
2
+ import { useState as J, useRef as C } from "react";
3
+ import { Bullet as K } from "./SwiperList/components/Bullet/Bullet.js";
4
+ import { FieldTypes as v } from "./Types/FiledTypes.js";
5
+ import { d as B, a as Q, N as U, b as W } from "./swiper-react-90953710.js";
6
+ import { c as D } from "./cn-6a4bf187.js";
7
+ import { u as X } from "./useScreenSize-c1b64c02.js";
8
+ import { Slide as Y } from "./AnimatedSwiper/Slide/Slide.js";
9
+ import './assets/index2.css';function Z(f) {
10
+ let {
11
+ swiper: e,
12
+ extendParams: y,
13
+ on: s,
14
+ emit: i,
15
+ params: l
16
+ } = f;
17
+ e.autoplay = {
18
+ running: !1,
19
+ paused: !1,
20
+ timeLeft: 0
21
+ }, y({
22
+ autoplay: {
23
+ enabled: !1,
24
+ delay: 3e3,
25
+ waitForTransition: !0,
26
+ disableOnInteraction: !1,
27
+ stopOnLastSlide: !1,
28
+ reverseDirection: !1,
29
+ pauseOnMouseEnter: !1
30
+ }
31
+ });
32
+ let m, E, u = l && l.autoplay ? l.autoplay.delay : 3e3, c = l && l.autoplay ? l.autoplay.delay : 3e3, n, w = (/* @__PURE__ */ new Date()).getTime(), S, g, p, I, L, a, h;
33
+ function b(t) {
34
+ !e || e.destroyed || !e.wrapperEl || t.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", b), !(h || t.detail && t.detail.bySwiperTouchMove) && x());
35
+ }
36
+ const M = () => {
37
+ if (e.destroyed || !e.autoplay.running)
38
+ return;
39
+ e.autoplay.paused ? S = !0 : S && (c = n, S = !1);
40
+ const t = e.autoplay.paused ? n : w + c - (/* @__PURE__ */ new Date()).getTime();
41
+ e.autoplay.timeLeft = t, i("autoplayTimeLeft", t, t / u), E = requestAnimationFrame(() => {
42
+ M();
43
+ });
44
+ }, q = () => {
45
+ let t;
46
+ return e.virtual && e.params.virtual.enabled ? t = e.slides.find((o) => o.classList.contains("swiper-slide-active")) : t = e.slides[e.activeIndex], t ? parseInt(t.getAttribute("data-swiper-autoplay"), 10) : void 0;
47
+ }, O = (t) => {
48
+ if (e.destroyed || !e.autoplay.running)
49
+ return;
50
+ cancelAnimationFrame(E), M();
51
+ let d = typeof t > "u" ? e.params.autoplay.delay : t;
52
+ u = e.params.autoplay.delay, c = e.params.autoplay.delay;
53
+ const o = q();
54
+ !Number.isNaN(o) && o > 0 && typeof t > "u" && (d = o, u = o, c = o), n = d;
55
+ const N = e.params.speed, _ = () => {
56
+ !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(N, !0, !0), i("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, N, !0, !0), i("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(N, !0, !0), i("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, N, !0, !0), i("autoplay")), e.params.cssMode && (w = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
57
+ O();
58
+ })));
59
+ };
60
+ return d > 0 ? (clearTimeout(m), m = setTimeout(() => {
61
+ _();
62
+ }, d)) : requestAnimationFrame(() => {
63
+ _();
64
+ }), d;
65
+ }, F = () => {
66
+ w = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, O(), i("autoplayStart");
67
+ }, A = () => {
68
+ e.autoplay.running = !1, clearTimeout(m), cancelAnimationFrame(E), i("autoplayStop");
69
+ }, T = (t, d) => {
70
+ if (e.destroyed || !e.autoplay.running)
71
+ return;
72
+ clearTimeout(m), t || (a = !0);
73
+ const o = () => {
74
+ i("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", b) : x();
75
+ };
76
+ if (e.autoplay.paused = !0, d) {
77
+ L && (n = e.params.autoplay.delay), L = !1, o();
78
+ return;
79
+ }
80
+ n = (n || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - w), !(e.isEnd && n < 0 && !e.params.loop) && (n < 0 && (n = 0), o());
81
+ }, x = () => {
82
+ e.isEnd && n < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (w = (/* @__PURE__ */ new Date()).getTime(), a ? (a = !1, O(n)) : O(), e.autoplay.paused = !1, i("autoplayResume"));
83
+ }, P = () => {
84
+ if (e.destroyed || !e.autoplay.running)
85
+ return;
86
+ const t = B();
87
+ t.visibilityState === "hidden" && (a = !0, T(!0)), t.visibilityState === "visible" && x();
88
+ }, R = (t) => {
89
+ t.pointerType === "mouse" && (a = !0, h = !0, !(e.animating || e.autoplay.paused) && T(!0));
90
+ }, k = (t) => {
91
+ t.pointerType === "mouse" && (h = !1, e.autoplay.paused && x());
92
+ }, z = () => {
93
+ e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", R), e.el.addEventListener("pointerleave", k));
94
+ }, V = () => {
95
+ e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", R), e.el.removeEventListener("pointerleave", k));
96
+ }, G = () => {
97
+ B().addEventListener("visibilitychange", P);
98
+ }, H = () => {
99
+ B().removeEventListener("visibilitychange", P);
100
+ };
101
+ s("init", () => {
102
+ e.params.autoplay.enabled && (z(), G(), F());
103
+ }), s("destroy", () => {
104
+ V(), H(), e.autoplay.running && A();
105
+ }), s("_freeModeStaticRelease", () => {
106
+ (p || a) && x();
107
+ }), s("_freeModeNoMomentumRelease", () => {
108
+ e.params.autoplay.disableOnInteraction ? A() : T(!0, !0);
109
+ }), s("beforeTransitionStart", (t, d, o) => {
110
+ e.destroyed || !e.autoplay.running || (o || !e.params.autoplay.disableOnInteraction ? T(!0, !0) : A());
111
+ }), s("sliderFirstMove", () => {
112
+ if (!(e.destroyed || !e.autoplay.running)) {
113
+ if (e.params.autoplay.disableOnInteraction) {
114
+ A();
115
+ return;
116
+ }
117
+ g = !0, p = !1, a = !1, I = setTimeout(() => {
118
+ a = !0, p = !0, T(!0);
119
+ }, 200);
120
+ }
121
+ }), s("touchEnd", () => {
122
+ if (!(e.destroyed || !e.autoplay.running || !g)) {
123
+ if (clearTimeout(I), clearTimeout(m), e.params.autoplay.disableOnInteraction) {
124
+ p = !1, g = !1;
125
+ return;
126
+ }
127
+ p && e.params.cssMode && x(), p = !1, g = !1;
128
+ }
129
+ }), s("slideChange", () => {
130
+ e.destroyed || !e.autoplay.running || (L = !0);
131
+ }), Object.assign(e.autoplay, {
132
+ start: F,
133
+ stop: A,
134
+ pause: T,
135
+ resume: x
136
+ });
137
+ }
138
+ const $ = ({
139
+ color: f = "#40474F",
140
+ size: e = 24,
141
+ ...y
142
+ }) => /* @__PURE__ */ r(
143
+ "svg",
144
+ {
145
+ width: e,
146
+ height: e,
147
+ viewBox: "0 0 24 24",
148
+ fill: "none",
149
+ xmlns: "http://www.w3.org/2000/svg",
150
+ ...y,
151
+ children: /* @__PURE__ */ r(
152
+ "path",
153
+ {
154
+ d: "M17 22L8.41418 13.4142C7.74752 12.7476 7.41418 12.4142 7.41418 12C7.41418 11.5858 7.74752 11.2525 8.41418 10.5858L17 2",
155
+ stroke: f,
156
+ "stroke-width": "2",
157
+ "stroke-linejoin": "round"
158
+ }
159
+ )
160
+ }
161
+ ), ee = ({
162
+ color: f = "#40474F",
163
+ size: e = 24,
164
+ ...y
165
+ }) => /* @__PURE__ */ r(
166
+ "svg",
167
+ {
168
+ width: e,
169
+ height: e,
170
+ viewBox: "0 0 24 24",
171
+ fill: "none",
172
+ xmlns: "http://www.w3.org/2000/svg",
173
+ ...y,
174
+ children: /* @__PURE__ */ r(
175
+ "path",
176
+ {
177
+ d: "M7 22L15.5858 13.4142C16.2524 12.7476 16.5858 12.4142 16.5858 12C16.5858 11.5858 16.2525 11.2525 15.5858 10.5858L7 2",
178
+ stroke: f,
179
+ "stroke-width": "2",
180
+ "stroke-linejoin": "round"
181
+ }
182
+ )
183
+ }
184
+ );
185
+ const te = {
186
+ type: "cards",
187
+ label: "Карточки слайдера",
188
+ dataType: "array",
189
+ data: {
190
+ title: v.TITLE,
191
+ description: v.DESCRIPTION,
192
+ image: v.FILE,
193
+ icon: v.FILE,
194
+ is_black: v.BOOLEAN,
195
+ is_promo: v.BOOLEAN,
196
+ is_yellow: v.BOOLEAN
197
+ }
198
+ }, ae = ["title", te, "autoplay", "isLight", "isButton"];
199
+ function ne({
200
+ title: f,
201
+ cards: e,
202
+ autoplay: y = !1,
203
+ isLight: s = !1,
204
+ isButton: i = !0
205
+ }) {
206
+ const [l, m] = J(1), E = C(null), u = X(960), c = u ? 1.2 : 3, n = u ? 16 : 0, S = y ? {
207
+ delay: 3e3,
208
+ disableOnInteraction: !1,
209
+ waitForTransition: !0
210
+ } : !1, g = C(null), p = C(null), I = e.length <= c + 1 ? [...e, ...e] : e, L = e.length <= c + 1 ? l % e.length : l;
211
+ return /* @__PURE__ */ j("div", { className: "flex flex-col items-center gap-6 h-fit max-w-[1232px] w-full mx-auto px-4 relative max-tablet:max-w-full max-tablet:p-0", children: [
212
+ f && /* @__PURE__ */ r("p", { className: "text-[44px] leading-[52px] font-bold text-center mb-[48px]", children: f }),
213
+ /* @__PURE__ */ j("div", { className: "relative w-full h-[346px] max-tablet:h-fit", children: [
214
+ /* @__PURE__ */ r(
215
+ Q,
216
+ {
217
+ modules: [U, Z],
218
+ className: "feature_swiper",
219
+ initialSlide: 0,
220
+ slidesPerView: c,
221
+ spaceBetween: n,
222
+ centeredSlides: !0,
223
+ speed: 500,
224
+ autoplay: S,
225
+ onSwiper: (a) => {
226
+ E.current = a, m(a.realIndex);
227
+ },
228
+ onBeforeTransitionStart: (a) => {
229
+ let h = a.realIndex;
230
+ m(h);
231
+ },
232
+ navigation: {
233
+ nextEl: g.current,
234
+ prevEl: p.current
235
+ },
236
+ loop: !0,
237
+ children: I.map((a, h) => {
238
+ const b = h === l;
239
+ return /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(
240
+ Y,
241
+ {
242
+ image: a == null ? void 0 : a.image,
243
+ description: a == null ? void 0 : a.description,
244
+ className: D(
245
+ "h-[314px] transition-all duration-500 transform scale-[0.85] relative max-tablet:h-[288px] max-tablet:scale-100",
246
+ {
247
+ "!h-[346px] !w-full transform scale-100 flex flex-col gap-[40px] md:h-auto md:gap-6": b && !u
248
+ }
249
+ ),
250
+ imgClassName: D({
251
+ "h-[122px] w-[122px]": b && !u
252
+ }),
253
+ imgStyle: D({
254
+ "h-[122px] w-[122px]": b && !u
255
+ }),
256
+ isLight: s
257
+ }
258
+ ) }, a.id);
259
+ })
260
+ }
261
+ ),
262
+ i && /* @__PURE__ */ r(
263
+ "button",
264
+ {
265
+ ref: p,
266
+ className: D(
267
+ "absolute h-[40px] w-[40px] left-0 top-[200px] translate-x-[-50%] translate-y-[-50%] z-10 p-[8px] rounded-[50%] bg-graySoft border-none cursor-pointer max-tablet:hidden"
268
+ ),
269
+ children: /* @__PURE__ */ r(
270
+ $,
271
+ {
272
+ size: 24,
273
+ color: "#ffffff"
274
+ }
275
+ )
276
+ }
277
+ ),
278
+ i && /* @__PURE__ */ r(
279
+ "button",
280
+ {
281
+ ref: g,
282
+ className: D(
283
+ "absolute h-[40px] w-[40px] right-0 top-[200px] translate-x-[-50%] translate-y-[-50%] z-10 p-[8px] rounded-[50%] bg-graySoft border-none cursor-pointer max-tablet:hidden"
284
+ ),
285
+ children: /* @__PURE__ */ r(
286
+ ee,
287
+ {
288
+ size: 24,
289
+ color: "#ffffff"
290
+ }
291
+ )
292
+ }
293
+ )
294
+ ] }),
295
+ e.length && /* @__PURE__ */ r(
296
+ K,
297
+ {
298
+ count: e.length,
299
+ active: L,
300
+ activeColor: "#16A34A",
301
+ anActiveColor: "#A6B2BA",
302
+ className: "mt-[24px]"
303
+ }
304
+ )
305
+ ] });
306
+ }
307
+ ne.propsToEdit = ae;
308
+ export {
309
+ ne as A,
310
+ $ as C,
311
+ Z as a,
312
+ ee as b
313
+ };
@@ -0,0 +1,53 @@
1
+ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as h } from "react";
3
+ import { c as m } from "./cn-6a4bf187.js";
4
+ import { B as t, a as e } from "./const-637b0dca.js";
5
+ const y = h(
6
+ ({
7
+ children: o,
8
+ size: s = t.XL,
9
+ variant: d = e.Primary,
10
+ loading: i = !1,
11
+ iconRight: a,
12
+ iconLeft: l,
13
+ className: n,
14
+ title: p,
15
+ ...b
16
+ }, x) => {
17
+ const g = {
18
+ [t.S]: "",
19
+ [t.M]: "px-[12px] py-[8px] rounded-[12px] text-[14px] h-[36px]",
20
+ [t.L]: "px-[16px] py-[10px] rounded-[16px] text-[16px] h-[44px]",
21
+ [t.XL]: "px-[20px] py-[16px] rounded-[16px] text-[16px] h-[56px]"
22
+ }, u = {
23
+ [e.Primary]: "bg-yellowLight hover:bg-yellowSaturated disabled:bg-yellowLight2 disabled:cursor-not-allowed",
24
+ [e.Secondary]: "bg-lightBlue hover:bg-grayBlue disabled:bg-white disabled:cursor-not-allowed",
25
+ [e.SecondaryBlue]: "bg-lightBlue text-blue hover:bg-grayBlue disabled:bg-white disabled:text-lightBlue5 disabled:cursor-not-allowed",
26
+ [e.Static]: "bg-white hover:bg-grayBlue disabled:bg-white disabled:cursor-not-allowed",
27
+ [e.Brand]: "bg-greenLight text-white hover:bg-green disabled:bg-lightGray5 disabled:cursor-not-allowed",
28
+ [e.Grey]: "bg-greyLight text-blackBG"
29
+ };
30
+ return /* @__PURE__ */ c(
31
+ "button",
32
+ {
33
+ className: m(
34
+ "flex items-center justify-center gap-2 border-none font-i font-medium cursor-pointer w-fit ",
35
+ g[s],
36
+ u[d],
37
+ n
38
+ ),
39
+ ref: x,
40
+ ...b,
41
+ children: [
42
+ i ? /* @__PURE__ */ r("span", { className: "flex justify-center items-center w-[22px] h-[22px] p-[2px] bg-transparent rounded-full border-2 border-[#0e0f11] border-t-transparent animate-spin" }) : l && /* @__PURE__ */ r("span", { className: "flex items-center", children: l }),
43
+ p || o,
44
+ a && /* @__PURE__ */ r("span", { className: "flex items-center", children: a })
45
+ ]
46
+ }
47
+ );
48
+ }
49
+ );
50
+ y.displayName = "AppButton";
51
+ export {
52
+ y as B
53
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
2
  import { FieldTypes as i } from "./Types/FiledTypes.js";
3
- import { I as t } from "./index-60dfa873.js";
4
- import { c as x } from "./cn-d8c04b28.js";
3
+ import { I as t } from "./index-2265d593.js";
4
+ import { c as x } from "./cn-6a4bf187.js";
5
5
  const r = {
6
6
  SMALL: "small",
7
7
  MEDIUM: "medium",
@@ -0,0 +1,22 @@
1
+ const e = {
2
+ RU: "ru",
3
+ KY: "ky",
4
+ EN: "en"
5
+ }, t = [
6
+ {
7
+ title: "Русский",
8
+ key: "ru"
9
+ },
10
+ {
11
+ title: "Кыргызча",
12
+ key: "ky"
13
+ },
14
+ {
15
+ title: "English",
16
+ key: "en"
17
+ }
18
+ ];
19
+ export {
20
+ t as L,
21
+ e as a
22
+ };