md-components-mdigial-azamat 0.0.38 → 0.0.39

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 (46) hide show
  1. package/dist/AllComponents.js +5 -6
  2. package/dist/AnimatedSwiper/index.js +2 -2
  3. package/dist/Header/Header.js +6 -31
  4. package/dist/Header/components/HeaderMenuMobile/HeaderMenuMobile.js +13 -58
  5. package/dist/Header/components/HeaderMobile/HeaderMobile.js +9 -71
  6. package/dist/Header/components/HeaderMobile/index.js +1 -1
  7. package/dist/Header/components/HeaderSearch/HeaderSearch.js +11 -157
  8. package/dist/Header/components/HeaderSearch/index.js +2 -2
  9. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +2 -2
  10. package/dist/Header/components/HeaderWeb/HeaderWeb.js +9 -9
  11. package/dist/Header/components/SelectLanguage/SelectLanguage.js +1 -1
  12. package/dist/Header/components/TabsOutlined/TabsOutlined.js +2 -2
  13. package/dist/Header/index.js +2 -2
  14. package/dist/InfoBannerList/InfoBannerList.js +1 -1
  15. package/dist/InfoBannerList/index.js +1 -1
  16. package/dist/InstructionList/InstructionList.js +1 -1
  17. package/dist/InstructionList/components/InstructionCard/InstructionCard.js +8 -8
  18. package/dist/InstructionList/components/InstructionCard/index.js +1 -1
  19. package/dist/InstructionList/index.js +1 -1
  20. package/dist/PageViewer/PageViewer.js +4 -3
  21. package/dist/PageViewer/renderComponents.js +1 -1
  22. package/dist/PreviewList/PreviewList.js +1 -1
  23. package/dist/PreviewList/components/PreviewCard/PreviewCard.js +9 -9
  24. package/dist/PreviewList/components/PreviewCard/index.js +1 -1
  25. package/dist/PreviewList/index.js +1 -1
  26. package/dist/PromoPoster/PromoPoster.js +1 -1
  27. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  28. package/dist/StandartTable/components/CardMarkedRow/index.js +10 -10
  29. package/dist/StandartTable/index.js +1 -1
  30. package/dist/SwiperList/SwiperList.js +3 -3
  31. package/dist/SwiperList/index.js +1 -1
  32. package/dist/TasksBanner/TasksBanner.js +3 -3
  33. package/dist/TasksBanner/index.js +2 -2
  34. package/dist/TasksBannerList/TasksBannerList.js +1 -1
  35. package/dist/TasksBannerList/index.js +1 -1
  36. package/dist/{componentsMap-1d79e069.js → componentsMap-d90efb17.js} +22 -23
  37. package/dist/index-3a534581.js +261 -0
  38. package/dist/{index-9c3ff10b.js → index-66837af1.js} +55 -55
  39. package/dist/index-db31fa48.js +924 -0
  40. package/dist/{languages-list-87ab3324.js → languages-list-8419e560.js} +2 -2
  41. package/dist/main.js +81 -78
  42. package/dist/{mousewheel-f9c6bcd7.js → mousewheel-865ae601.js} +1 -1
  43. package/dist/{swiper-react-39919ab6.js → swiper-react-90953710.js} +251 -251
  44. package/package.json +1 -1
  45. package/dist/header-4f7ca247.js +0 -107
  46. package/dist/index-a302b5ed.js +0 -787
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "md-components-mdigial-azamat",
3
3
  "author": "Azamat Raimbekov",
4
4
  "private": false,
5
- "version": "0.0.38",
5
+ "version": "0.0.39",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",
@@ -1,107 +0,0 @@
1
- import { useRef as o, useEffect as b, useMemo as k } from "react";
2
- import { L as M } from "./languages-list-87ab3324.js";
3
- function q(u, r, e, i) {
4
- var s = this, a = o(null), f = o(0), w = o(0), c = o(null), l = o([]), d = o(), m = o(), x = o(u), g = o(!0);
5
- x.current = u;
6
- var E = typeof window < "u", p = !r && r !== 0 && E;
7
- if (typeof u != "function")
8
- throw new TypeError("Expected a function");
9
- r = +r || 0;
10
- var L = !!(e = e || {}).leading, S = !("trailing" in e) || !!e.trailing, h = "maxWait" in e, H = "debounceOnServer" in e && !!e.debounceOnServer, y = h ? Math.max(+e.maxWait || 0, r) : null;
11
- b(function() {
12
- return g.current = !0, function() {
13
- g.current = !1;
14
- };
15
- }, []);
16
- var D = k(function() {
17
- var _ = function(n) {
18
- var t = l.current, T = d.current;
19
- return l.current = d.current = null, f.current = n, w.current = w.current || n, m.current = x.current.apply(T, t);
20
- }, v = function(n, t) {
21
- p && cancelAnimationFrame(c.current), c.current = p ? requestAnimationFrame(n) : setTimeout(n, t);
22
- }, I = function(n) {
23
- if (!g.current)
24
- return !1;
25
- var t = n - a.current;
26
- return !a.current || t >= r || t < 0 || h && n - f.current >= y;
27
- }, U = function(n) {
28
- return c.current = null, S && l.current ? _(n) : (l.current = d.current = null, m.current);
29
- }, G = function n() {
30
- var t = Date.now();
31
- if (L && w.current === f.current && F(), I(t))
32
- return U(t);
33
- if (g.current) {
34
- var T = r - (t - a.current), P = h ? Math.min(T, y - (t - f.current)) : T;
35
- v(n, P);
36
- }
37
- }, F = function() {
38
- i && i({});
39
- }, A = function() {
40
- if (E || H) {
41
- var n = Date.now(), t = I(n);
42
- if (l.current = [].slice.call(arguments), d.current = s, a.current = n, t) {
43
- if (!c.current && g.current)
44
- return f.current = a.current, v(G, r), L ? _(a.current) : m.current;
45
- if (h)
46
- return v(G, r), _(a.current);
47
- }
48
- return c.current || v(G, r), m.current;
49
- }
50
- };
51
- return A.cancel = function() {
52
- var n = c.current;
53
- n && (p ? cancelAnimationFrame(c.current) : clearTimeout(c.current)), f.current = 0, l.current = a.current = d.current = c.current = null, n && i && i({});
54
- }, A.isPending = function() {
55
- return !!c.current;
56
- }, A.flush = function() {
57
- return c.current ? U(Date.now()) : m.current;
58
- }, A;
59
- }, [L, h, r, y, S, p, E, H, i]);
60
- return D;
61
- }
62
- const O = {}.VITE_API_URL || "https://mbank.kg/api/", W = "app_language", R = () => localStorage.getItem(W) || M.RU, $ = async (u, r = {}) => {
63
- const e = R(), i = `${O}${u}`;
64
- try {
65
- const s = await fetch(i, {
66
- ...r,
67
- headers: {
68
- "Accept-Language": e,
69
- "Content-Type": "application/json",
70
- ...r.headers
71
- }
72
- });
73
- if (!s.ok) {
74
- if (r.method === "GET" || !r.method)
75
- return { data: null };
76
- throw new Error(`HTTP error! status: ${s.status}`);
77
- }
78
- return { data: await s.json() };
79
- } catch (s) {
80
- if (r.method === "GET" || !r.method)
81
- return { data: null };
82
- throw s;
83
- }
84
- }, B = {
85
- getHeaderSections(u, r) {
86
- const e = `v2/header/?page_type=${r || ""}`;
87
- return $(e, {
88
- method: "GET",
89
- headers: {
90
- "Accept-Language": u || R()
91
- }
92
- });
93
- },
94
- searchHeader(u, r) {
95
- const e = `v2/search/?search=${encodeURIComponent(u)}`;
96
- return $(e, {
97
- method: "GET",
98
- headers: {
99
- "Accept-Language": r || R()
100
- }
101
- });
102
- }
103
- };
104
- export {
105
- B as H,
106
- q as c
107
- };