@lanaco/lnc-react-ui 4.0.134 → 4.0.136

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.
@@ -1,113 +1,114 @@
1
- import { jsx as x, jsxs as z } from "react/jsx-runtime";
2
- import A, { forwardRef as ft } from "react";
3
- import { c as N, g as mt } from "./_commonjsHelpers-BkfeUUK-.js";
4
- import { P as U } from "./index-CblbdqjE.js";
5
- import vt from "./Button.js";
6
- import { u as gt } from "./useDetectMobile-Bkvj0VMa.js";
7
- import { s as yt } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
- var q = {}, J = {}, m = {}, B = {};
1
+ import { jsxs as G, jsx as C, Fragment as ut } from "react/jsx-runtime";
2
+ import k, { Suspense as gt, forwardRef as yt } from "react";
3
+ import { c as B, g as St } from "./_commonjsHelpers-BkfeUUK-.js";
4
+ import { P as W } from "./index-CblbdqjE.js";
5
+ import { s as dt } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import { o as X } from "./utils-BPdU4_1q.js";
7
+ import Tt from "./Button.js";
8
+ import { u as wt } from "./useDetectMobile-Bkvj0VMa.js";
9
+ var J = {}, Q = {}, m = {}, $ = {};
9
10
  (function(o) {
10
- function i(n, s, l) {
11
- var u = s.slidesToShow, h = s.currentSlide;
12
- return l.length > 2 * u ? n + 2 * u : h >= l.length ? l.length + n : n;
11
+ function i(l, n, a) {
12
+ var u = n.slidesToShow, d = n.currentSlide;
13
+ return a.length > 2 * u ? l + 2 * u : d >= a.length ? a.length + l : l;
13
14
  }
14
- function t(n, s) {
15
- if (s.length > 2 * n) {
16
- for (var l = {}, u = s.length - 2 * n, h = s.length - u, c = u, d = 0; d < h; d++) l[d] = c, c++;
17
- var p = s.length + h, f = p + s.slice(0, 2 * n).length, g = 0;
18
- for (d = p; d <= f; d++) l[d] = g, g++;
15
+ function t(l, n) {
16
+ if (n.length > 2 * l) {
17
+ for (var a = {}, u = n.length - 2 * l, d = n.length - u, c = u, h = 0; h < d; h++) a[h] = c, c++;
18
+ var p = n.length + d, f = p + n.slice(0, 2 * l).length, g = 0;
19
+ for (h = p; h <= f; h++) a[h] = g, g++;
19
20
  var w = p, b = 0;
20
- for (d = h; d < w; d++) l[d] = b, b++;
21
- return l;
21
+ for (h = d; h < w; h++) a[h] = b, b++;
22
+ return a;
22
23
  }
23
- l = {};
24
- var _ = 3 * s.length, y = 0;
25
- for (d = 0; d < _; d++) l[d] = y, ++y === s.length && (y = 0);
26
- return l;
24
+ a = {};
25
+ var _ = 3 * n.length, y = 0;
26
+ for (h = 0; h < _; h++) a[h] = y, ++y === n.length && (y = 0);
27
+ return a;
27
28
  }
28
- function e(n, s) {
29
- return s.length < n ? s : s.length > 2 * n ? s.slice(s.length - 2 * n, s.length).concat(s, s.slice(0, 2 * n)) : s.concat(s, s);
29
+ function e(l, n) {
30
+ return n.length < l ? n : n.length > 2 * l ? n.slice(n.length - 2 * l, n.length).concat(n, n.slice(0, 2 * l)) : n.concat(n, n);
30
31
  }
31
- function r(n, s) {
32
- return s.length > 2 * n ? 2 * n : s.length;
32
+ function r(l, n) {
33
+ return n.length > 2 * l ? 2 * l : n.length;
33
34
  }
34
- function a(n, s, l) {
35
- var u, h = n.currentSlide, c = n.slidesToShow, d = n.itemWidth, p = n.totalItems, f = 0, g = 0, w = h === 0, b = s.length - (s.length - 2 * c);
36
- return s.length < c ? (g = f = 0, w = u = !1) : s.length > 2 * c ? ((u = h >= b + s.length) && (g = -d * (f = h - s.length)), w && (g = -d * (f = b + (s.length - 2 * c)))) : ((u = h >= 2 * s.length) && (g = -d * (f = h - s.length)), w && (g = l.showDots ? -d * (f = s.length) : -d * (f = p / 3))), { isReachingTheEnd: u, isReachingTheStart: w, nextSlide: f, nextPosition: g };
35
+ function s(l, n, a) {
36
+ var u, d = l.currentSlide, c = l.slidesToShow, h = l.itemWidth, p = l.totalItems, f = 0, g = 0, w = d === 0, b = n.length - (n.length - 2 * c);
37
+ return n.length < c ? (g = f = 0, w = u = !1) : n.length > 2 * c ? ((u = d >= b + n.length) && (g = -h * (f = d - n.length)), w && (g = -h * (f = b + (n.length - 2 * c)))) : ((u = d >= 2 * n.length) && (g = -h * (f = d - n.length)), w && (g = a.showDots ? -h * (f = n.length) : -h * (f = p / 3))), { isReachingTheEnd: u, isReachingTheStart: w, nextSlide: f, nextPosition: g };
37
38
  }
38
- Object.defineProperty(o, "__esModule", { value: !0 }), o.getOriginalCounterPart = i, o.getOriginalIndexLookupTableByClones = t, o.getClones = e, o.getInitialSlideInInfiniteMode = r, o.checkClonesPosition = a;
39
- })(B);
39
+ Object.defineProperty(o, "__esModule", { value: !0 }), o.getOriginalCounterPart = i, o.getOriginalIndexLookupTableByClones = t, o.getClones = e, o.getInitialSlideInInfiniteMode = r, o.checkClonesPosition = s;
40
+ })($);
40
41
  var O = {};
41
42
  Object.defineProperty(O, "__esModule", { value: !0 });
42
- var rt = !1;
43
- function St(o, i, t, e) {
44
- var r = 0, a = e || t;
45
- return i && a && (!rt && process.env.NODE_ENV !== "production" && o[a].paritialVisibilityGutter && (rt = !0, console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")), r = o[a].partialVisibilityGutter || o[a].paritialVisibilityGutter), r;
43
+ var nt = !1;
44
+ function bt(o, i, t, e) {
45
+ var r = 0, s = e || t;
46
+ return i && s && (!nt && process.env.NODE_ENV !== "production" && o[s].paritialVisibilityGutter && (nt = !0, console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")), r = o[s].partialVisibilityGutter || o[s].paritialVisibilityGutter), r;
46
47
  }
47
- function Tt(o, i) {
48
+ function _t(o, i) {
48
49
  var t;
49
50
  return i[o] && (t = (100 / i[o].items).toFixed(1)), t;
50
51
  }
51
- function wt(o, i, t) {
52
+ function Ct(o, i, t) {
52
53
  return Math.round(t / (i + (o.centerMode ? 1 : 0)));
53
54
  }
54
- O.getPartialVisibilityGutter = St, O.getWidthFromDeviceType = Tt, O.getItemClientSideWidth = wt;
55
+ O.getPartialVisibilityGutter = bt, O.getWidthFromDeviceType = _t, O.getItemClientSideWidth = Ct;
55
56
  var S = {};
56
57
  Object.defineProperty(S, "__esModule", { value: !0 });
57
- var K = O;
58
- function Q(o) {
58
+ var q = O;
59
+ function Z(o) {
59
60
  var i = o.slidesToShow;
60
61
  return o.totalItems < i;
61
62
  }
62
- function bt(o, i) {
63
- var t, e = o.domLoaded, r = o.slidesToShow, a = o.containerWidth, n = o.itemWidth, s = i.deviceType, l = i.responsive, u = i.ssr, h = i.partialVisbile, c = i.partialVisible, d = !!(e && r && a && n);
64
- u && s && !d && (t = K.getWidthFromDeviceType(s, l));
65
- var p = !!(u && s && !d && t);
66
- return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded: d, partialVisibilityGutter: K.getPartialVisibilityGutter(l, h || c, s, o.deviceType), shouldRenderAtAll: p || d };
63
+ function It(o, i) {
64
+ var t, e = o.domLoaded, r = o.slidesToShow, s = o.containerWidth, l = o.itemWidth, n = i.deviceType, a = i.responsive, u = i.ssr, d = i.partialVisbile, c = i.partialVisible, h = !!(e && r && s && l);
65
+ u && n && !h && (t = q.getWidthFromDeviceType(n, a));
66
+ var p = !!(u && n && !h && t);
67
+ return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded: h, partialVisibilityGutter: q.getPartialVisibilityGutter(a, d || c, n, o.deviceType), shouldRenderAtAll: p || h };
67
68
  }
68
- function _t(o, i) {
69
+ function Mt(o, i) {
69
70
  var t = i.currentSlide, e = i.slidesToShow;
70
71
  return t <= o && o < t + e;
71
72
  }
72
- function lt(o, i, t) {
73
+ function ht(o, i, t) {
73
74
  var e = t || o.transform;
74
- return !i.infinite && o.currentSlide === 0 || Q(o) ? e : e + o.itemWidth / 2;
75
+ return !i.infinite && o.currentSlide === 0 || Z(o) ? e : e + o.itemWidth / 2;
75
76
  }
76
- function Ct(o) {
77
+ function Pt(o) {
77
78
  return !(0 < o.currentSlide);
78
79
  }
79
- function ut(o) {
80
+ function ct(o) {
80
81
  var i = o.currentSlide, t = o.totalItems;
81
82
  return !(i + o.slidesToShow < t);
82
83
  }
83
- function ht(o, i, t, e) {
84
+ function pt(o, i, t, e) {
84
85
  i === void 0 && (i = 0);
85
- var r = o.currentSlide, a = o.slidesToShow, n = ut(o), s = !t.infinite && n, l = e || o.transform;
86
- if (Q(o)) return l;
87
- var u = l + r * i;
88
- return s ? u + (o.containerWidth - (o.itemWidth - i) * a) : u;
86
+ var r = o.currentSlide, s = o.slidesToShow, l = ct(o), n = !t.infinite && l, a = e || o.transform;
87
+ if (Z(o)) return a;
88
+ var u = a + r * i;
89
+ return n ? u + (o.containerWidth - (o.itemWidth - i) * s) : u;
89
90
  }
90
- function dt(o, i) {
91
+ function ft(o, i) {
91
92
  return o.rtl ? -1 * i : i;
92
93
  }
93
- function It(o, i, t) {
94
- var e = i.partialVisbile, r = i.partialVisible, a = i.responsive, n = i.deviceType, s = i.centerMode, l = t || o.transform, u = K.getPartialVisibilityGutter(a, e || r, n, o.deviceType);
95
- return dt(i, r || e ? ht(o, u, i, t) : s ? lt(o, i, t) : l);
94
+ function xt(o, i, t) {
95
+ var e = i.partialVisbile, r = i.partialVisible, s = i.responsive, l = i.deviceType, n = i.centerMode, a = t || o.transform, u = q.getPartialVisibilityGutter(s, e || r, l, o.deviceType);
96
+ return ft(i, r || e ? pt(o, u, i, t) : n ? ht(o, i, t) : a);
96
97
  }
97
- function Mt(o, i) {
98
- var t = o.domLoaded, e = o.slidesToShow, r = o.containerWidth, a = o.itemWidth, n = i.deviceType, s = i.responsive, l = i.slidesToSlide || 1, u = !!(t && e && r && a);
99
- return i.ssr && i.deviceType && !u && Object.keys(s).forEach(function(h) {
100
- var c = s[h].slidesToSlide;
101
- n === h && c && (l = c);
102
- }), u && Object.keys(s).forEach(function(h) {
103
- var c = s[h], d = c.breakpoint, p = c.slidesToSlide, f = d.max, g = d.min;
104
- p && window.innerWidth >= g && window.innerWidth <= f && (l = p);
105
- }), l;
98
+ function Et(o, i) {
99
+ var t = o.domLoaded, e = o.slidesToShow, r = o.containerWidth, s = o.itemWidth, l = i.deviceType, n = i.responsive, a = i.slidesToSlide || 1, u = !!(t && e && r && s);
100
+ return i.ssr && i.deviceType && !u && Object.keys(n).forEach(function(d) {
101
+ var c = n[d].slidesToSlide;
102
+ l === d && c && (a = c);
103
+ }), u && Object.keys(n).forEach(function(d) {
104
+ var c = n[d], h = c.breakpoint, p = c.slidesToSlide, f = h.max, g = h.min;
105
+ p && window.innerWidth >= g && window.innerWidth <= f && (a = p);
106
+ }), a;
106
107
  }
107
- S.notEnoughChildren = Q, S.getInitialState = bt, S.getIfSlideIsVisbile = _t, S.getTransformForCenterMode = lt, S.isInLeftEnd = Ct, S.isInRightEnd = ut, S.getTransformForPartialVsibile = ht, S.parsePosition = dt, S.getTransform = It, S.getSlidesToSlide = Mt;
108
- var Z = {};
109
- Object.defineProperty(Z, "__esModule", { value: !0 });
110
- var Pt = function(o, i, t) {
108
+ S.notEnoughChildren = Z, S.getInitialState = It, S.getIfSlideIsVisbile = Mt, S.getTransformForCenterMode = ht, S.isInLeftEnd = Pt, S.isInRightEnd = ct, S.getTransformForPartialVsibile = pt, S.parsePosition = ft, S.getTransform = xt, S.getSlidesToSlide = Et;
109
+ var H = {};
110
+ Object.defineProperty(H, "__esModule", { value: !0 });
111
+ var Rt = function(o, i, t) {
111
112
  var e;
112
113
  return function() {
113
114
  var r = arguments;
@@ -116,71 +117,71 @@ var Pt = function(o, i, t) {
116
117
  }, i));
117
118
  };
118
119
  };
119
- Z.default = Pt;
120
- var ct = {};
120
+ H.default = Rt;
121
+ var mt = {};
121
122
  (function(o) {
122
123
  function i(t, e) {
123
- var r = e.partialVisbile, a = e.partialVisible, n = e.centerMode, s = e.ssr, l = e.responsive;
124
- if ((r || a) && n) throw new Error("center mode can not be used at the same time with partialVisible");
125
- if (!l) throw s ? new Error("ssr mode need to be used in conjunction with responsive prop") : new Error("Responsive prop is needed for deciding the amount of items to show on the screen");
126
- if (l && typeof l != "object") throw new Error("responsive prop must be an object");
124
+ var r = e.partialVisbile, s = e.partialVisible, l = e.centerMode, n = e.ssr, a = e.responsive;
125
+ if ((r || s) && l) throw new Error("center mode can not be used at the same time with partialVisible");
126
+ if (!a) throw n ? new Error("ssr mode need to be used in conjunction with responsive prop") : new Error("Responsive prop is needed for deciding the amount of items to show on the screen");
127
+ if (a && typeof a != "object") throw new Error("responsive prop must be an object");
127
128
  }
128
129
  Object.defineProperty(o, "__esModule", { value: !0 }), o.default = i;
129
- })(ct);
130
- var H = {};
131
- Object.defineProperty(H, "__esModule", { value: !0 });
132
- var Et = S;
133
- function Rt(o, i, t) {
134
- t === void 0 && (t = 0);
135
- var e, r, a = o.slidesToShow, n = o.currentSlide, s = o.itemWidth, l = o.totalItems, u = Et.getSlidesToSlide(o, i), h = n + 1 + t + a + (0 < t ? 0 : u);
136
- return r = h <= l ? -s * (e = n + t + (0 < t ? 0 : u)) : l < h && n !== l - a ? -s * (e = l - a) : e = void 0, { nextSlides: e, nextPosition: r };
137
- }
138
- H.populateNextSlides = Rt;
130
+ })(mt);
139
131
  var tt = {};
140
132
  Object.defineProperty(tt, "__esModule", { value: !0 });
141
- var xt = A, Ot = S, At = S;
142
- function Wt(o, i, t) {
133
+ var Ot = S;
134
+ function kt(o, i, t) {
143
135
  t === void 0 && (t = 0);
144
- var e, r, a = o.currentSlide, n = o.itemWidth, s = o.slidesToShow, l = i.children, u = i.showDots, h = i.infinite, c = Ot.getSlidesToSlide(o, i), d = a - t - (0 < t ? 0 : c), p = (xt.Children.toArray(l).length - s) % c;
145
- return r = 0 <= d ? (e = d, u && !h && 0 < p && At.isInRightEnd(o) && (e = a - p), -n * e) : e = d < 0 && a !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
136
+ var e, r, s = o.slidesToShow, l = o.currentSlide, n = o.itemWidth, a = o.totalItems, u = Ot.getSlidesToSlide(o, i), d = l + 1 + t + s + (0 < t ? 0 : u);
137
+ return r = d <= a ? -n * (e = l + t + (0 < t ? 0 : u)) : a < d && l !== a - s ? -n * (e = a - s) : e = void 0, { nextSlides: e, nextPosition: r };
146
138
  }
147
- tt.populatePreviousSlides = Wt;
148
- var pt = {};
139
+ tt.populateNextSlides = kt;
140
+ var et = {};
141
+ Object.defineProperty(et, "__esModule", { value: !0 });
142
+ var At = k, Wt = S, Dt = S;
143
+ function Lt(o, i, t) {
144
+ t === void 0 && (t = 0);
145
+ var e, r, s = o.currentSlide, l = o.itemWidth, n = o.slidesToShow, a = i.children, u = i.showDots, d = i.infinite, c = Wt.getSlidesToSlide(o, i), h = s - t - (0 < t ? 0 : c), p = (At.Children.toArray(a).length - n) % c;
146
+ return r = 0 <= h ? (e = h, u && !d && 0 < p && Dt.isInRightEnd(o) && (e = s - p), -l * e) : e = h < 0 && s !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
147
+ }
148
+ et.populatePreviousSlides = Lt;
149
+ var vt = {};
149
150
  (function(o) {
150
- function i(t, e, r, a, n, s) {
151
- var l, u, h = t.itemWidth, c = t.slidesToShow, d = t.totalItems, p = t.currentSlide, f = e.infinite, g = !1, w = Math.round((r - a) / h), b = Math.round((a - r) / h), _ = r < n;
152
- if (n < r && w <= c) {
153
- l = "right";
154
- var y = Math.abs(-h * (d - c)), I = s - (a - n), C = p === d - c;
155
- (Math.abs(I) <= y || C && f) && (u = I, g = !0);
151
+ function i(t, e, r, s, l, n) {
152
+ var a, u, d = t.itemWidth, c = t.slidesToShow, h = t.totalItems, p = t.currentSlide, f = e.infinite, g = !1, w = Math.round((r - s) / d), b = Math.round((s - r) / d), _ = r < l;
153
+ if (l < r && w <= c) {
154
+ a = "right";
155
+ var y = Math.abs(-d * (h - c)), M = n - (s - l), I = p === h - c;
156
+ (Math.abs(M) <= y || I && f) && (u = M, g = !0);
156
157
  }
157
- return _ && b <= c && (l = "left", ((I = s + (n - a)) <= 0 || p === 0 && f) && (g = !0, u = I)), { direction: l, nextPosition: u, canContinue: g };
158
+ return _ && b <= c && (a = "left", ((M = n + (l - s)) <= 0 || p === 0 && f) && (g = !0, u = M)), { direction: a, nextPosition: u, canContinue: g };
158
159
  }
159
160
  Object.defineProperty(o, "__esModule", { value: !0 }), o.populateSlidesOnMouseTouchMove = i;
160
- })(pt);
161
+ })(vt);
161
162
  Object.defineProperty(m, "__esModule", { value: !0 });
162
- var k = B;
163
- m.getOriginalCounterPart = k.getOriginalCounterPart, m.getClones = k.getClones, m.checkClonesPosition = k.checkClonesPosition, m.getInitialSlideInInfiniteMode = k.getInitialSlideInInfiniteMode;
164
- var X = O;
165
- m.getWidthFromDeviceType = X.getWidthFromDeviceType, m.getPartialVisibilityGutter = X.getPartialVisibilityGutter, m.getItemClientSideWidth = X.getItemClientSideWidth;
166
- var P = S;
167
- m.getInitialState = P.getInitialState, m.getIfSlideIsVisbile = P.getIfSlideIsVisbile, m.getTransformForCenterMode = P.getTransformForCenterMode, m.getTransformForPartialVsibile = P.getTransformForPartialVsibile, m.isInLeftEnd = P.isInLeftEnd, m.isInRightEnd = P.isInRightEnd, m.notEnoughChildren = P.notEnoughChildren, m.getSlidesToSlide = P.getSlidesToSlide;
168
- var Dt = Z;
169
- m.throttle = Dt.default;
170
- var Lt = ct;
171
- m.throwError = Lt.default;
172
- var kt = H;
173
- m.populateNextSlides = kt.populateNextSlides;
174
- var Vt = tt;
175
- m.populatePreviousSlides = Vt.populatePreviousSlides;
176
- var jt = pt;
177
- m.populateSlidesOnMouseTouchMove = jt.populateSlidesOnMouseTouchMove;
178
- var F = {}, Nt = N && N.__extends || /* @__PURE__ */ function() {
163
+ var V = $;
164
+ m.getOriginalCounterPart = V.getOriginalCounterPart, m.getClones = V.getClones, m.checkClonesPosition = V.checkClonesPosition, m.getInitialSlideInInfiniteMode = V.getInitialSlideInInfiniteMode;
165
+ var Y = O;
166
+ m.getWidthFromDeviceType = Y.getWidthFromDeviceType, m.getPartialVisibilityGutter = Y.getPartialVisibilityGutter, m.getItemClientSideWidth = Y.getItemClientSideWidth;
167
+ var x = S;
168
+ m.getInitialState = x.getInitialState, m.getIfSlideIsVisbile = x.getIfSlideIsVisbile, m.getTransformForCenterMode = x.getTransformForCenterMode, m.getTransformForPartialVsibile = x.getTransformForPartialVsibile, m.isInLeftEnd = x.isInLeftEnd, m.isInRightEnd = x.isInRightEnd, m.notEnoughChildren = x.notEnoughChildren, m.getSlidesToSlide = x.getSlidesToSlide;
169
+ var Vt = H;
170
+ m.throttle = Vt.default;
171
+ var jt = mt;
172
+ m.throwError = jt.default;
173
+ var Nt = tt;
174
+ m.populateNextSlides = Nt.populateNextSlides;
175
+ var Gt = et;
176
+ m.populatePreviousSlides = Gt.populatePreviousSlides;
177
+ var Bt = vt;
178
+ m.populateSlidesOnMouseTouchMove = Bt.populateSlidesOnMouseTouchMove;
179
+ var z = {}, Ft = B && B.__extends || /* @__PURE__ */ function() {
179
180
  var o = function(i, t) {
180
181
  return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
181
182
  e.__proto__ = r;
182
183
  } || function(e, r) {
183
- for (var a in r) r.hasOwnProperty(a) && (e[a] = r[a]);
184
+ for (var s in r) r.hasOwnProperty(s) && (e[s] = r[s]);
184
185
  })(i, t);
185
186
  };
186
187
  return function(i, t) {
@@ -190,100 +191,100 @@ var F = {}, Nt = N && N.__extends || /* @__PURE__ */ function() {
190
191
  o(i, t), i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
191
192
  };
192
193
  }();
193
- Object.defineProperty(F, "__esModule", { value: !0 });
194
- var Gt = A;
195
- function Bt(o) {
194
+ Object.defineProperty(z, "__esModule", { value: !0 });
195
+ var $t = k;
196
+ function zt(o) {
196
197
  return "clientY" in o;
197
198
  }
198
- F.isMouseMoveEvent = Bt;
199
- var Ft = function(o) {
199
+ z.isMouseMoveEvent = zt;
200
+ var Ut = function(o) {
200
201
  function i() {
201
202
  return o !== null && o.apply(this, arguments) || this;
202
203
  }
203
- return Nt(i, o), i;
204
- }(Gt.Component);
205
- F.default = Ft;
206
- var et = {}, it = {};
207
- Object.defineProperty(it, "__esModule", { value: !0 });
208
- var $t = B, zt = S;
209
- function Ut(o, i, t, e) {
210
- var r = {}, a = zt.getSlidesToSlide(i, t);
211
- return Array(o).fill(0).forEach(function(n, s) {
212
- var l = $t.getOriginalCounterPart(s, i, e);
213
- if (s === 0) r[0] = l;
204
+ return Ft(i, o), i;
205
+ }($t.Component);
206
+ z.default = Ut;
207
+ var it = {}, ot = {};
208
+ Object.defineProperty(ot, "__esModule", { value: !0 });
209
+ var Xt = $, Yt = S;
210
+ function Kt(o, i, t, e) {
211
+ var r = {}, s = Yt.getSlidesToSlide(i, t);
212
+ return Array(o).fill(0).forEach(function(l, n) {
213
+ var a = Xt.getOriginalCounterPart(n, i, e);
214
+ if (n === 0) r[0] = a;
214
215
  else {
215
- var u = r[s - 1] + a;
216
- r[s] = u;
216
+ var u = r[n - 1] + s;
217
+ r[n] = u;
217
218
  }
218
219
  }), r;
219
220
  }
220
- it.getLookupTableForNextSlides = Ut;
221
- Object.defineProperty(et, "__esModule", { value: !0 });
222
- var D = A, Xt = B, Yt = it, nt = S, Kt = function(o) {
223
- var i = o.props, t = o.state, e = o.goToSlide, r = o.getState, a = i.showDots, n = i.customDot, s = i.dotListClass, l = i.infinite, u = i.children;
224
- if (!a || nt.notEnoughChildren(t)) return null;
225
- var h, c = t.currentSlide, d = t.slidesToShow, p = nt.getSlidesToSlide(t, i), f = D.Children.toArray(u);
226
- h = l ? Math.ceil(f.length / p) : Math.ceil((f.length - d) / p) + 1;
227
- var g = Yt.getLookupTableForNextSlides(h, t, i, f), w = Xt.getOriginalIndexLookupTableByClones(d, f), b = w[c];
228
- return D.createElement("ul", { className: "react-multi-carousel-dot-list " + s }, Array(h).fill(0).map(function(_, y) {
229
- var I, C;
230
- if (l) {
231
- C = g[y];
232
- var R = w[C];
233
- I = b === R || R <= b && b < R + p;
221
+ ot.getLookupTableForNextSlides = Kt;
222
+ Object.defineProperty(it, "__esModule", { value: !0 });
223
+ var D = k, qt = $, Jt = ot, st = S, Qt = function(o) {
224
+ var i = o.props, t = o.state, e = o.goToSlide, r = o.getState, s = i.showDots, l = i.customDot, n = i.dotListClass, a = i.infinite, u = i.children;
225
+ if (!s || st.notEnoughChildren(t)) return null;
226
+ var d, c = t.currentSlide, h = t.slidesToShow, p = st.getSlidesToSlide(t, i), f = D.Children.toArray(u);
227
+ d = a ? Math.ceil(f.length / p) : Math.ceil((f.length - h) / p) + 1;
228
+ var g = Jt.getLookupTableForNextSlides(d, t, i, f), w = qt.getOriginalIndexLookupTableByClones(h, f), b = w[c];
229
+ return D.createElement("ul", { className: "react-multi-carousel-dot-list " + n }, Array(d).fill(0).map(function(_, y) {
230
+ var M, I;
231
+ if (a) {
232
+ I = g[y];
233
+ var R = w[I];
234
+ M = b === R || R <= b && b < R + p;
234
235
  } else {
235
- var W = f.length - d, L = y * p;
236
- I = (C = W < L ? W : L) === c || C < c && c < C + p && c < f.length - d;
236
+ var A = f.length - h, L = y * p;
237
+ M = (I = A < L ? A : L) === c || I < c && c < I + p && c < f.length - h;
237
238
  }
238
- return n ? D.cloneElement(n, { index: y, active: I, key: y, onClick: function() {
239
- return e(C);
240
- }, carouselState: r() }) : D.createElement("li", { "data-index": y, key: y, className: "react-multi-carousel-dot " + (I ? "react-multi-carousel-dot--active" : "") }, D.createElement("button", { "aria-label": "Go to slide " + (y + 1), onClick: function() {
241
- return e(C);
239
+ return l ? D.cloneElement(l, { index: y, active: M, key: y, onClick: function() {
240
+ return e(I);
241
+ }, carouselState: r() }) : D.createElement("li", { "data-index": y, key: y, className: "react-multi-carousel-dot " + (M ? "react-multi-carousel-dot--active" : "") }, D.createElement("button", { "aria-label": "Go to slide " + (y + 1), onClick: function() {
242
+ return e(I);
242
243
  } }));
243
244
  }));
244
245
  };
245
- et.default = Kt;
246
- var $ = {};
247
- Object.defineProperty($, "__esModule", { value: !0 });
248
- var G = A, qt = function(o) {
249
- var i = o.customLeftArrow, t = o.getState, e = o.previous, r = o.disabled, a = o.rtl;
250
- if (i) return G.cloneElement(i, { onClick: function() {
246
+ it.default = Qt;
247
+ var U = {};
248
+ Object.defineProperty(U, "__esModule", { value: !0 });
249
+ var F = k, Zt = function(o) {
250
+ var i = o.customLeftArrow, t = o.getState, e = o.previous, r = o.disabled, s = o.rtl;
251
+ if (i) return F.cloneElement(i, { onClick: function() {
251
252
  return e();
252
- }, carouselState: t(), disabled: r, rtl: a });
253
- var n = a ? "rtl" : "";
254
- return G.createElement("button", { "aria-label": "Go to previous slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--left " + n, onClick: function() {
253
+ }, carouselState: t(), disabled: r, rtl: s });
254
+ var l = s ? "rtl" : "";
255
+ return F.createElement("button", { "aria-label": "Go to previous slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--left " + l, onClick: function() {
255
256
  return e();
256
257
  }, type: "button", disabled: r });
257
258
  };
258
- $.LeftArrow = qt;
259
- var Jt = function(o) {
260
- var i = o.customRightArrow, t = o.getState, e = o.next, r = o.disabled, a = o.rtl;
261
- if (i) return G.cloneElement(i, { onClick: function() {
259
+ U.LeftArrow = Zt;
260
+ var Ht = function(o) {
261
+ var i = o.customRightArrow, t = o.getState, e = o.next, r = o.disabled, s = o.rtl;
262
+ if (i) return F.cloneElement(i, { onClick: function() {
262
263
  return e();
263
- }, carouselState: t(), disabled: r, rtl: a });
264
- var n = a ? "rtl" : "";
265
- return G.createElement("button", { "aria-label": "Go to next slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--right " + n, onClick: function() {
264
+ }, carouselState: t(), disabled: r, rtl: s });
265
+ var l = s ? "rtl" : "";
266
+ return F.createElement("button", { "aria-label": "Go to next slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--right " + l, onClick: function() {
266
267
  return e();
267
268
  }, type: "button", disabled: r });
268
269
  };
269
- $.RightArrow = Jt;
270
- var ot = {};
271
- Object.defineProperty(ot, "__esModule", { value: !0 });
272
- var V = A, Y = m, Qt = function(o) {
273
- var i = o.props, t = o.state, e = o.goToSlide, r = o.clones, a = o.notEnoughChildren, n = t.itemWidth, s = i.children, l = i.infinite, u = i.itemClass, h = i.itemAriaLabel, c = i.partialVisbile, d = i.partialVisible, p = Y.getInitialState(t, i), f = p.flexBisis, g = p.shouldRenderOnSSR, w = p.domFullyLoaded, b = p.partialVisibilityGutter;
274
- return p.shouldRenderAtAll ? (c && console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'), V.createElement(V.Fragment, null, (l ? r : V.Children.toArray(s)).map(function(_, y) {
275
- return V.createElement("li", { key: y, "data-index": y, onClick: function() {
270
+ U.RightArrow = Ht;
271
+ var rt = {};
272
+ Object.defineProperty(rt, "__esModule", { value: !0 });
273
+ var j = k, K = m, te = function(o) {
274
+ var i = o.props, t = o.state, e = o.goToSlide, r = o.clones, s = o.notEnoughChildren, l = t.itemWidth, n = i.children, a = i.infinite, u = i.itemClass, d = i.itemAriaLabel, c = i.partialVisbile, h = i.partialVisible, p = K.getInitialState(t, i), f = p.flexBisis, g = p.shouldRenderOnSSR, w = p.domFullyLoaded, b = p.partialVisibilityGutter;
275
+ return p.shouldRenderAtAll ? (c && console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'), j.createElement(j.Fragment, null, (a ? r : j.Children.toArray(n)).map(function(_, y) {
276
+ return j.createElement("li", { key: y, "data-index": y, onClick: function() {
276
277
  i.focusOnSelect && e(y);
277
- }, "aria-hidden": Y.getIfSlideIsVisbile(y, t) ? "false" : "true", "aria-label": h || (_.props.ariaLabel ? _.props.ariaLabel : null), style: { flex: g ? "1 0 " + f + "%" : "auto", position: "relative", width: w ? ((c || d) && b && !a ? n - b : n) + "px" : "auto" }, className: "react-multi-carousel-item " + (Y.getIfSlideIsVisbile(y, t) ? "react-multi-carousel-item--active" : "") + " " + u }, _);
278
+ }, "aria-hidden": K.getIfSlideIsVisbile(y, t) ? "false" : "true", "aria-label": d || (_.props.ariaLabel ? _.props.ariaLabel : null), style: { flex: g ? "1 0 " + f + "%" : "auto", position: "relative", width: w ? ((c || h) && b && !s ? l - b : l) + "px" : "auto" }, className: "react-multi-carousel-item " + (K.getIfSlideIsVisbile(y, t) ? "react-multi-carousel-item--active" : "") + " " + u }, _);
278
279
  }))) : null;
279
280
  };
280
- ot.default = Qt;
281
- var Zt = N && N.__extends || /* @__PURE__ */ function() {
281
+ rt.default = te;
282
+ var ee = B && B.__extends || /* @__PURE__ */ function() {
282
283
  var o = function(i, t) {
283
284
  return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
284
285
  e.__proto__ = r;
285
286
  } || function(e, r) {
286
- for (var a in r) r.hasOwnProperty(a) && (e[a] = r[a]);
287
+ for (var s in r) r.hasOwnProperty(s) && (e[s] = r[s]);
287
288
  })(i, t);
288
289
  };
289
290
  return function(i, t) {
@@ -293,13 +294,13 @@ var Zt = N && N.__extends || /* @__PURE__ */ function() {
293
294
  o(i, t), i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
294
295
  };
295
296
  }();
296
- Object.defineProperty(J, "__esModule", { value: !0 });
297
- var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transform 400ms ease-in-out", ee = function(o) {
297
+ Object.defineProperty(Q, "__esModule", { value: !0 });
298
+ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transform 400ms ease-in-out", re = function(o) {
298
299
  function i(t) {
299
300
  var e = o.call(this, t) || this;
300
- return e.containerRef = T.createRef(), e.listRef = T.createRef(), e.state = { itemWidth: 0, slidesToShow: 0, currentSlide: 0, totalItems: T.Children.count(t.children), deviceType: "", domLoaded: !1, transform: 0, containerWidth: 0 }, e.onResize = e.onResize.bind(e), e.handleDown = e.handleDown.bind(e), e.handleMove = e.handleMove.bind(e), e.handleOut = e.handleOut.bind(e), e.onKeyUp = e.onKeyUp.bind(e), e.handleEnter = e.handleEnter.bind(e), e.setIsInThrottle = e.setIsInThrottle.bind(e), e.next = v.throttle(e.next.bind(e), t.transitionDuration || M, e.setIsInThrottle), e.previous = v.throttle(e.previous.bind(e), t.transitionDuration || M, e.setIsInThrottle), e.goToSlide = v.throttle(e.goToSlide.bind(e), t.transitionDuration || M, e.setIsInThrottle), e.onMove = !1, e.initialX = 0, e.lastX = 0, e.isAnimationAllowed = !1, e.direction = "", e.initialY = 0, e.isInThrottle = !1, e.transformPlaceHolder = 0, e;
301
+ return e.containerRef = T.createRef(), e.listRef = T.createRef(), e.state = { itemWidth: 0, slidesToShow: 0, currentSlide: 0, totalItems: T.Children.count(t.children), deviceType: "", domLoaded: !1, transform: 0, containerWidth: 0 }, e.onResize = e.onResize.bind(e), e.handleDown = e.handleDown.bind(e), e.handleMove = e.handleMove.bind(e), e.handleOut = e.handleOut.bind(e), e.onKeyUp = e.onKeyUp.bind(e), e.handleEnter = e.handleEnter.bind(e), e.setIsInThrottle = e.setIsInThrottle.bind(e), e.next = v.throttle(e.next.bind(e), t.transitionDuration || P, e.setIsInThrottle), e.previous = v.throttle(e.previous.bind(e), t.transitionDuration || P, e.setIsInThrottle), e.goToSlide = v.throttle(e.goToSlide.bind(e), t.transitionDuration || P, e.setIsInThrottle), e.onMove = !1, e.initialX = 0, e.lastX = 0, e.isAnimationAllowed = !1, e.direction = "", e.initialY = 0, e.isInThrottle = !1, e.transformPlaceHolder = 0, e;
301
302
  }
302
- return Zt(i, o), i.prototype.resetTotalItems = function() {
303
+ return ee(i, o), i.prototype.resetTotalItems = function() {
303
304
  var t = this, e = T.Children.count(this.props.children), r = v.notEnoughChildren(this.state) ? 0 : Math.max(0, Math.min(this.state.currentSlide, e));
304
305
  this.setState({ totalItems: e, currentSlide: r }, function() {
305
306
  t.setContainerAndItemWidth(t.state.slidesToShow, !0);
@@ -309,83 +310,83 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
309
310
  }, i.prototype.setTransformDirectly = function(t, e) {
310
311
  var r = this.props.additionalTransfrom;
311
312
  this.transformPlaceHolder = t;
312
- var a = j.getTransform(this.state, this.props, this.transformPlaceHolder);
313
- this.listRef && this.listRef.current && (this.setAnimationDirectly(e), this.listRef.current.style.transform = "translate3d(" + (a + r) + "px,0,0)");
313
+ var s = N.getTransform(this.state, this.props, this.transformPlaceHolder);
314
+ this.listRef && this.listRef.current && (this.setAnimationDirectly(e), this.listRef.current.style.transform = "translate3d(" + (s + r) + "px,0,0)");
314
315
  }, i.prototype.setAnimationDirectly = function(t) {
315
- this.listRef && this.listRef.current && (this.listRef.current.style.transition = t ? this.props.customTransition || at : "none");
316
+ this.listRef && this.listRef.current && (this.listRef.current.style.transition = t ? this.props.customTransition || lt : "none");
316
317
  }, i.prototype.componentDidMount = function() {
317
318
  this.setState({ domLoaded: !0 }), this.setItemsToShow(), window.addEventListener("resize", this.onResize), this.onResize(!0), this.props.keyBoardControl && window.addEventListener("keyup", this.onKeyUp), this.props.autoPlay && (this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed));
318
- }, i.prototype.setClones = function(t, e, r, a) {
319
- var n = this;
320
- a === void 0 && (a = !1), this.isAnimationAllowed = !1;
321
- var s = T.Children.toArray(this.props.children), l = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, s), u = v.getClones(this.state.slidesToShow, s), h = s.length < this.state.slidesToShow ? 0 : this.state.currentSlide;
322
- this.setState({ totalItems: u.length, currentSlide: r && !a ? h : l }, function() {
323
- n.correctItemsPosition(e || n.state.itemWidth);
319
+ }, i.prototype.setClones = function(t, e, r, s) {
320
+ var l = this;
321
+ s === void 0 && (s = !1), this.isAnimationAllowed = !1;
322
+ var n = T.Children.toArray(this.props.children), a = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, n), u = v.getClones(this.state.slidesToShow, n), d = n.length < this.state.slidesToShow ? 0 : this.state.currentSlide;
323
+ this.setState({ totalItems: u.length, currentSlide: r && !s ? d : a }, function() {
324
+ l.correctItemsPosition(e || l.state.itemWidth);
324
325
  });
325
326
  }, i.prototype.setItemsToShow = function(t, e) {
326
- var r = this, a = this.props.responsive;
327
- Object.keys(a).forEach(function(n) {
328
- var s = a[n], l = s.breakpoint, u = s.items, h = l.max, c = l.min, d = [window.innerWidth];
329
- window.screen && window.screen.width && d.push(window.screen.width);
330
- var p = Math.min.apply(Math, d);
331
- c <= p && p <= h && (r.setState({ slidesToShow: u, deviceType: n }), r.setContainerAndItemWidth(u, t, e));
327
+ var r = this, s = this.props.responsive;
328
+ Object.keys(s).forEach(function(l) {
329
+ var n = s[l], a = n.breakpoint, u = n.items, d = a.max, c = a.min, h = [window.innerWidth];
330
+ window.screen && window.screen.width && h.push(window.screen.width);
331
+ var p = Math.min.apply(Math, h);
332
+ c <= p && p <= d && (r.setState({ slidesToShow: u, deviceType: l }), r.setContainerAndItemWidth(u, t, e));
332
333
  });
333
334
  }, i.prototype.setContainerAndItemWidth = function(t, e, r) {
334
- var a = this;
335
+ var s = this;
335
336
  if (this.containerRef && this.containerRef.current) {
336
- var n = this.containerRef.current.offsetWidth, s = v.getItemClientSideWidth(this.props, t, n);
337
- this.setState({ containerWidth: n, itemWidth: s }, function() {
338
- a.props.infinite && a.setClones(t, s, e, r);
339
- }), e && this.correctItemsPosition(s);
337
+ var l = this.containerRef.current.offsetWidth, n = v.getItemClientSideWidth(this.props, t, l);
338
+ this.setState({ containerWidth: l, itemWidth: n }, function() {
339
+ s.props.infinite && s.setClones(t, n, e, r);
340
+ }), e && this.correctItemsPosition(n);
340
341
  }
341
342
  }, i.prototype.correctItemsPosition = function(t, e, r) {
342
343
  e && (this.isAnimationAllowed = !0), !e && this.isAnimationAllowed && (this.isAnimationAllowed = !1);
343
- var a = this.state.totalItems < this.state.slidesToShow ? 0 : -t * this.state.currentSlide;
344
- r && this.setTransformDirectly(a, !0), this.setState({ transform: a });
344
+ var s = this.state.totalItems < this.state.slidesToShow ? 0 : -t * this.state.currentSlide;
345
+ r && this.setTransformDirectly(s, !0), this.setState({ transform: s });
345
346
  }, i.prototype.onResize = function(t) {
346
347
  var e;
347
348
  e = !!this.props.infinite && (typeof t != "boolean" || !t), this.setItemsToShow(e);
348
349
  }, i.prototype.componentDidUpdate = function(t, e) {
349
- var r = this, a = t.keyBoardControl, n = t.autoPlay, s = t.children, l = e.containerWidth, u = e.domLoaded, h = e.currentSlide;
350
- if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !== l && (this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), this.itemsToShowTimeout = setTimeout(function() {
350
+ var r = this, s = t.keyBoardControl, l = t.autoPlay, n = t.children, a = e.containerWidth, u = e.domLoaded, d = e.currentSlide;
351
+ if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !== a && (this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), this.itemsToShowTimeout = setTimeout(function() {
351
352
  r.setItemsToShow(!0);
352
- }, this.props.transitionDuration || M)), a && !this.props.keyBoardControl && window.removeEventListener("keyup", this.onKeyUp), !a && this.props.keyBoardControl && window.addEventListener("keyup", this.onKeyUp), n && !this.props.autoPlay && this.autoPlay && (clearInterval(this.autoPlay), this.autoPlay = void 0), n || !this.props.autoPlay || this.autoPlay || (this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed)), s.length !== this.props.children.length ? i.clonesTimeout = setTimeout(function() {
353
+ }, this.props.transitionDuration || P)), s && !this.props.keyBoardControl && window.removeEventListener("keyup", this.onKeyUp), !s && this.props.keyBoardControl && window.addEventListener("keyup", this.onKeyUp), l && !this.props.autoPlay && this.autoPlay && (clearInterval(this.autoPlay), this.autoPlay = void 0), l || !this.props.autoPlay || this.autoPlay || (this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed)), n.length !== this.props.children.length ? i.clonesTimeout = setTimeout(function() {
353
354
  r.props.infinite ? r.setClones(r.state.slidesToShow, r.state.itemWidth, !0, !0) : r.resetTotalItems();
354
- }, this.props.transitionDuration || M) : this.props.infinite && this.state.currentSlide !== h && this.correctClonesPosition({ domLoaded: u }), this.transformPlaceHolder !== this.state.transform && (this.transformPlaceHolder = this.state.transform), this.props.autoPlay && this.props.rewind && !this.props.infinite && v.isInRightEnd(this.state)) {
355
- var c = this.props.transitionDuration || M;
355
+ }, this.props.transitionDuration || P) : this.props.infinite && this.state.currentSlide !== d && this.correctClonesPosition({ domLoaded: u }), this.transformPlaceHolder !== this.state.transform && (this.transformPlaceHolder = this.state.transform), this.props.autoPlay && this.props.rewind && !this.props.infinite && v.isInRightEnd(this.state)) {
356
+ var c = this.props.transitionDuration || P;
356
357
  i.isInThrottleTimeout = setTimeout(function() {
357
358
  r.setIsInThrottle(!1), r.resetAutoplayInterval(), r.goToSlide(0, void 0, !!r.props.rewindWithAnimation);
358
359
  }, c + this.props.autoPlaySpeed);
359
360
  }
360
361
  }, i.prototype.correctClonesPosition = function(t) {
361
- var e = this, r = t.domLoaded, a = T.Children.toArray(this.props.children), n = v.checkClonesPosition(this.state, a, this.props), s = n.isReachingTheEnd, l = n.isReachingTheStart, u = n.nextSlide, h = n.nextPosition;
362
- this.state.domLoaded && r && (s || l) && (this.isAnimationAllowed = !1, i.transformTimeout = setTimeout(function() {
363
- e.setState({ transform: h, currentSlide: u });
364
- }, this.props.transitionDuration || M));
362
+ var e = this, r = t.domLoaded, s = T.Children.toArray(this.props.children), l = v.checkClonesPosition(this.state, s, this.props), n = l.isReachingTheEnd, a = l.isReachingTheStart, u = l.nextSlide, d = l.nextPosition;
363
+ this.state.domLoaded && r && (n || a) && (this.isAnimationAllowed = !1, i.transformTimeout = setTimeout(function() {
364
+ e.setState({ transform: d, currentSlide: u });
365
+ }, this.props.transitionDuration || P));
365
366
  }, i.prototype.next = function(t) {
366
367
  var e = this;
367
368
  t === void 0 && (t = 0);
368
- var r = this.props, a = r.afterChange, n = r.beforeChange;
369
+ var r = this.props, s = r.afterChange, l = r.beforeChange;
369
370
  if (!v.notEnoughChildren(this.state)) {
370
- var s = v.populateNextSlides(this.state, this.props, t), l = s.nextSlides, u = s.nextPosition, h = this.state.currentSlide;
371
- l !== void 0 && u !== void 0 && (typeof n == "function" && n(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: u, currentSlide: l }, function() {
372
- typeof a == "function" && (i.afterChangeTimeout = setTimeout(function() {
373
- a(h, e.getState());
374
- }, e.props.transitionDuration || M));
371
+ var n = v.populateNextSlides(this.state, this.props, t), a = n.nextSlides, u = n.nextPosition, d = this.state.currentSlide;
372
+ a !== void 0 && u !== void 0 && (typeof l == "function" && l(a, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: u, currentSlide: a }, function() {
373
+ typeof s == "function" && (i.afterChangeTimeout = setTimeout(function() {
374
+ s(d, e.getState());
375
+ }, e.props.transitionDuration || P));
375
376
  }));
376
377
  }
377
378
  }, i.prototype.previous = function(t) {
378
379
  var e = this;
379
380
  t === void 0 && (t = 0);
380
- var r = this.props, a = r.afterChange, n = r.beforeChange;
381
+ var r = this.props, s = r.afterChange, l = r.beforeChange;
381
382
  if (!v.notEnoughChildren(this.state)) {
382
- var s = v.populatePreviousSlides(this.state, this.props, t), l = s.nextSlides, u = s.nextPosition;
383
- if (l !== void 0 && u !== void 0) {
384
- var h = this.state.currentSlide;
385
- typeof n == "function" && n(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: u, currentSlide: l }, function() {
386
- typeof a == "function" && (i.afterChangeTimeout2 = setTimeout(function() {
387
- a(h, e.getState());
388
- }, e.props.transitionDuration || M));
383
+ var n = v.populatePreviousSlides(this.state, this.props, t), a = n.nextSlides, u = n.nextPosition;
384
+ if (a !== void 0 && u !== void 0) {
385
+ var d = this.state.currentSlide;
386
+ typeof l == "function" && l(a, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: u, currentSlide: a }, function() {
387
+ typeof s == "function" && (i.afterChangeTimeout2 = setTimeout(function() {
388
+ s(d, e.getState());
389
+ }, e.props.transitionDuration || P));
389
390
  });
390
391
  }
391
392
  }
@@ -397,19 +398,19 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
397
398
  this.onMove = !1, this.initialX = 0, this.lastX = 0, this.direction = "", this.initialY = 0;
398
399
  }, i.prototype.getCords = function(t) {
399
400
  var e = t.clientX, r = t.clientY;
400
- return { clientX: j.parsePosition(this.props, e), clientY: j.parsePosition(this.props, r) };
401
+ return { clientX: N.parsePosition(this.props, e), clientY: N.parsePosition(this.props, r) };
401
402
  }, i.prototype.handleDown = function(t) {
402
403
  if (!(!E.isMouseMoveEvent(t) && !this.props.swipeable || E.isMouseMoveEvent(t) && !this.props.draggable || this.isInThrottle)) {
403
- var e = this.getCords(E.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, a = e.clientY;
404
- this.onMove = !0, this.initialX = r, this.initialY = a, this.lastX = r, this.isAnimationAllowed = !1;
404
+ var e = this.getCords(E.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, s = e.clientY;
405
+ this.onMove = !0, this.initialX = r, this.initialY = s, this.lastX = r, this.isAnimationAllowed = !1;
405
406
  }
406
407
  }, i.prototype.handleMove = function(t) {
407
408
  if (!(!E.isMouseMoveEvent(t) && !this.props.swipeable || E.isMouseMoveEvent(t) && !this.props.draggable || v.notEnoughChildren(this.state))) {
408
- var e = this.getCords(E.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, a = e.clientY, n = this.initialX - r, s = this.initialY - a;
409
+ var e = this.getCords(E.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, s = e.clientY, l = this.initialX - r, n = this.initialY - s;
409
410
  if (this.onMove) {
410
- if (!(Math.abs(n) > Math.abs(s))) return;
411
- var l = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), u = l.direction, h = l.nextPosition, c = l.canContinue;
412
- u && (this.direction = u, c && h !== void 0 && this.setTransformDirectly(h)), this.lastX = r;
411
+ if (!(Math.abs(l) > Math.abs(n))) return;
412
+ var a = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), u = a.direction, d = a.nextPosition, c = a.canContinue;
413
+ u && (this.direction = u, c && d !== void 0 && this.setTransformDirectly(d)), this.lastX = r;
413
414
  }
414
415
  }
415
416
  }, i.prototype.handleOut = function(t) {
@@ -417,14 +418,14 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
417
418
  var e = t.type === "touchend" && !this.props.swipeable, r = (t.type === "mouseleave" || t.type === "mouseup") && !this.props.draggable;
418
419
  if (!e && !r && this.onMove) {
419
420
  if (this.setAnimationDirectly(!0), this.direction === "right") if (this.initialX - this.lastX >= this.props.minimumTouchDrag) {
420
- var a = Math.round((this.initialX - this.lastX) / this.state.itemWidth);
421
- this.next(a);
421
+ var s = Math.round((this.initialX - this.lastX) / this.state.itemWidth);
422
+ this.next(s);
422
423
  } else this.correctItemsPosition(this.state.itemWidth, !0, !0);
423
- this.direction === "left" && (this.lastX - this.initialX > this.props.minimumTouchDrag ? (a = Math.round((this.lastX - this.initialX) / this.state.itemWidth), this.previous(a)) : this.correctItemsPosition(this.state.itemWidth, !0, !0)), this.resetMoveStatus();
424
+ this.direction === "left" && (this.lastX - this.initialX > this.props.minimumTouchDrag ? (s = Math.round((this.lastX - this.initialX) / this.state.itemWidth), this.previous(s)) : this.correctItemsPosition(this.state.itemWidth, !0, !0)), this.resetMoveStatus();
424
425
  }
425
426
  }, i.prototype.isInViewport = function(t) {
426
- var e = t.getBoundingClientRect(), r = e.top, a = r === void 0 ? 0 : r, n = e.left, s = n === void 0 ? 0 : n, l = e.bottom, u = l === void 0 ? 0 : l, h = e.right, c = h === void 0 ? 0 : h;
427
- return 0 <= a && 0 <= s && u <= (window.innerHeight || document.documentElement.clientHeight) && c <= (window.innerWidth || document.documentElement.clientWidth);
427
+ var e = t.getBoundingClientRect(), r = e.top, s = r === void 0 ? 0 : r, l = e.left, n = l === void 0 ? 0 : l, a = e.bottom, u = a === void 0 ? 0 : a, d = e.right, c = d === void 0 ? 0 : d;
428
+ return 0 <= s && 0 <= n && u <= (window.innerHeight || document.documentElement.clientHeight) && c <= (window.innerWidth || document.documentElement.clientWidth);
428
429
  }, i.prototype.isChildOfCarousel = function(t) {
429
430
  return !!(t instanceof Element && this.listRef && this.listRef.current) && this.listRef.current.contains(t);
430
431
  }, i.prototype.onKeyUp = function(t) {
@@ -442,39 +443,39 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
442
443
  }, i.prototype.handleEnter = function(t) {
443
444
  E.isMouseMoveEvent(t) && this.autoPlay && this.props.autoPlay && this.props.pauseOnHover && (clearInterval(this.autoPlay), this.autoPlay = void 0);
444
445
  }, i.prototype.goToSlide = function(t, e, r) {
445
- var a = this;
446
+ var s = this;
446
447
  if (r === void 0 && (r = !0), !this.isInThrottle) {
447
- var n = this.state.itemWidth, s = this.props, l = s.afterChange, u = s.beforeChange, h = this.state.currentSlide;
448
- typeof u != "function" || e && (typeof e != "object" || e.skipBeforeChange) || u(t, this.getState()), this.isAnimationAllowed = r, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ currentSlide: t, transform: -n * t }, function() {
449
- a.props.infinite && a.correctClonesPosition({ domLoaded: !0 }), typeof l != "function" || e && (typeof e != "object" || e.skipAfterChange) || (i.afterChangeTimeout3 = setTimeout(function() {
450
- l(h, a.getState());
451
- }, a.props.transitionDuration || M));
448
+ var l = this.state.itemWidth, n = this.props, a = n.afterChange, u = n.beforeChange, d = this.state.currentSlide;
449
+ typeof u != "function" || e && (typeof e != "object" || e.skipBeforeChange) || u(t, this.getState()), this.isAnimationAllowed = r, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ currentSlide: t, transform: -l * t }, function() {
450
+ s.props.infinite && s.correctClonesPosition({ domLoaded: !0 }), typeof a != "function" || e && (typeof e != "object" || e.skipAfterChange) || (i.afterChangeTimeout3 = setTimeout(function() {
451
+ a(d, s.getState());
452
+ }, s.props.transitionDuration || P));
452
453
  });
453
454
  }
454
455
  }, i.prototype.getState = function() {
455
456
  return this.state;
456
457
  }, i.prototype.renderLeftArrow = function(t) {
457
- var e = this, r = this.props, a = r.customLeftArrow, n = r.rtl;
458
- return T.createElement(st.LeftArrow, { customLeftArrow: a, getState: function() {
458
+ var e = this, r = this.props, s = r.customLeftArrow, l = r.rtl;
459
+ return T.createElement(at.LeftArrow, { customLeftArrow: s, getState: function() {
459
460
  return e.getState();
460
- }, previous: this.previous, disabled: t, rtl: n });
461
+ }, previous: this.previous, disabled: t, rtl: l });
461
462
  }, i.prototype.renderRightArrow = function(t) {
462
- var e = this, r = this.props, a = r.customRightArrow, n = r.rtl;
463
- return T.createElement(st.RightArrow, { customRightArrow: a, getState: function() {
463
+ var e = this, r = this.props, s = r.customRightArrow, l = r.rtl;
464
+ return T.createElement(at.RightArrow, { customRightArrow: s, getState: function() {
464
465
  return e.getState();
465
- }, next: this.next, disabled: t, rtl: n });
466
+ }, next: this.next, disabled: t, rtl: l });
466
467
  }, i.prototype.renderButtonGroups = function() {
467
468
  var t = this, e = this.props.customButtonGroup;
468
469
  return e ? T.cloneElement(e, { previous: function() {
469
470
  return t.previous();
470
471
  }, next: function() {
471
472
  return t.next();
472
- }, goToSlide: function(r, a) {
473
- return t.goToSlide(r, a);
473
+ }, goToSlide: function(r, s) {
474
+ return t.goToSlide(r, s);
474
475
  }, carouselState: this.getState() }) : null;
475
476
  }, i.prototype.renderDotsList = function() {
476
477
  var t = this;
477
- return T.createElement(Ht.default, { state: this.state, props: this.props, goToSlide: this.goToSlide, getState: function() {
478
+ return T.createElement(ie.default, { state: this.state, props: this.props, goToSlide: this.goToSlide, getState: function() {
478
479
  return t.getState();
479
480
  } });
480
481
  }, i.prototype.renderCarouselItems = function() {
@@ -483,20 +484,74 @@ var T = A, v = m, E = F, Ht = et, st = $, te = ot, j = S, M = 400, at = "transfo
483
484
  var e = T.Children.toArray(this.props.children);
484
485
  t = v.getClones(this.state.slidesToShow, e);
485
486
  }
486
- return T.createElement(te.default, { clones: t, goToSlide: this.goToSlide, state: this.state, notEnoughChildren: v.notEnoughChildren(this.state), props: this.props });
487
+ return T.createElement(oe.default, { clones: t, goToSlide: this.goToSlide, state: this.state, notEnoughChildren: v.notEnoughChildren(this.state), props: this.props });
487
488
  }, i.prototype.render = function() {
488
- var t = this.props, e = t.deviceType, r = t.arrows, a = t.renderArrowsWhenDisabled, n = t.removeArrowOnDeviceType, s = t.infinite, l = t.containerClass, u = t.sliderClass, h = t.customTransition, c = t.additionalTransfrom, d = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
489
+ var t = this.props, e = t.deviceType, r = t.arrows, s = t.renderArrowsWhenDisabled, l = t.removeArrowOnDeviceType, n = t.infinite, a = t.containerClass, u = t.sliderClass, d = t.customTransition, c = t.additionalTransfrom, h = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
489
490
  process.env.NODE_ENV !== "production" && v.throwError(this.state, this.props);
490
- var w = v.getInitialState(this.state, this.props), b = w.shouldRenderOnSSR, _ = w.shouldRenderAtAll, y = v.isInLeftEnd(this.state), I = v.isInRightEnd(this.state), C = r && !(n && (e && -1 < n.indexOf(e) || this.state.deviceType && -1 < n.indexOf(this.state.deviceType))) && !v.notEnoughChildren(this.state) && _, R = !s && y, W = !s && I, L = j.getTransform(this.state, this.props);
491
- return T.createElement(T.Fragment, null, T.createElement("div", { className: "react-multi-carousel-list " + l + " " + f, dir: g ? "rtl" : "ltr", ref: this.containerRef }, T.createElement("ul", { ref: this.listRef, className: "react-multi-carousel-track " + u, style: { transition: this.isAnimationAllowed ? h || at : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (L + c) + "px,0,0)" }, onMouseMove: this.handleMove, onMouseDown: this.handleDown, onMouseUp: this.handleOut, onMouseEnter: this.handleEnter, onMouseLeave: this.handleOut, onTouchStart: this.handleDown, onTouchMove: this.handleMove, onTouchEnd: this.handleOut }, this.renderCarouselItems()), C && (!R || a) && this.renderLeftArrow(R), C && (!W || a) && this.renderRightArrow(W), _ && !p && this.renderButtonGroups(), _ && !d && this.renderDotsList()), _ && d && this.renderDotsList(), _ && p && this.renderButtonGroups());
491
+ var w = v.getInitialState(this.state, this.props), b = w.shouldRenderOnSSR, _ = w.shouldRenderAtAll, y = v.isInLeftEnd(this.state), M = v.isInRightEnd(this.state), I = r && !(l && (e && -1 < l.indexOf(e) || this.state.deviceType && -1 < l.indexOf(this.state.deviceType))) && !v.notEnoughChildren(this.state) && _, R = !n && y, A = !n && M, L = N.getTransform(this.state, this.props);
492
+ return T.createElement(T.Fragment, null, T.createElement("div", { className: "react-multi-carousel-list " + a + " " + f, dir: g ? "rtl" : "ltr", ref: this.containerRef }, T.createElement("ul", { ref: this.listRef, className: "react-multi-carousel-track " + u, style: { transition: this.isAnimationAllowed ? d || lt : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (L + c) + "px,0,0)" }, onMouseMove: this.handleMove, onMouseDown: this.handleDown, onMouseUp: this.handleOut, onMouseEnter: this.handleEnter, onMouseLeave: this.handleOut, onTouchStart: this.handleDown, onTouchMove: this.handleMove, onTouchEnd: this.handleOut }, this.renderCarouselItems()), I && (!R || s) && this.renderLeftArrow(R), I && (!A || s) && this.renderRightArrow(A), _ && !p && this.renderButtonGroups(), _ && !h && this.renderDotsList()), _ && h && this.renderDotsList(), _ && p && this.renderButtonGroups());
492
493
  }, i.defaultProps = { slidesToSlide: 1, infinite: !1, draggable: !0, swipeable: !0, arrows: !0, renderArrowsWhenDisabled: !1, containerClass: "", sliderClass: "", itemClass: "", keyBoardControl: !0, autoPlaySpeed: 3e3, showDots: !1, renderDotsOutside: !1, renderButtonGroupOutside: !1, minimumTouchDrag: 80, className: "", dotListClass: "", focusOnSelect: !1, centerMode: !1, additionalTransfrom: 0, pauseOnHover: !0, shouldResetAutoplay: !0, rewind: !1, rtl: !1, rewindWithAnimation: !1 }, i;
493
494
  }(T.Component);
494
- J.default = ee;
495
- Object.defineProperty(q, "__esModule", { value: !0 });
496
- var ie = J;
497
- q.default = ie.default;
498
- var oe = q;
499
- const re = /* @__PURE__ */ mt(oe), ne = yt.div`
495
+ Q.default = re;
496
+ Object.defineProperty(J, "__esModule", { value: !0 });
497
+ var ne = Q;
498
+ J.default = ne.default;
499
+ var se = J;
500
+ const ae = /* @__PURE__ */ St(se), le = dt.div`
501
+ width: 100%;
502
+ max-width: 76rem;
503
+ height: 100vh;
504
+ max-height: 22.5rem;
505
+ border-radius: 0.75rem;
506
+ background: ${X("-90deg")};
507
+
508
+ & .skeleton__active-slide {
509
+ display: none;
510
+ }
511
+
512
+ & .skeleton__next-slide {
513
+ display: none;
514
+ }
515
+
516
+ @media (max-width: 464px) {
517
+ max-width: 100%;
518
+ height: 23.4375rem;
519
+ max-height: 23.4375rem;
520
+ border-radius: 0;
521
+ background: transparent;
522
+ display: flex;
523
+ gap: 1rem;
524
+ align-items: center;
525
+ justify-content: space-between;
526
+
527
+ & .skeleton__active-slide {
528
+ display: block;
529
+ width: 100%;
530
+ height: 100vh;
531
+ max-height: 23.4375rem;
532
+ border-radius: 0.75rem;
533
+ background: ${X("-90deg")};
534
+ }
535
+
536
+ & .skeleton__next-slide {
537
+ display: block;
538
+ width: 100%;
539
+ max-width: 4rem;
540
+ height: 100vh;
541
+ max-height: 20.625rem;
542
+ border-radius: 0.75rem 0 0 0.75rem;
543
+ background: ${X("-90deg")};
544
+ }
545
+ }
546
+ `, ue = () => /* @__PURE__ */ G(le, { className: "banner-carousel__skeleton", children: [
547
+ /* @__PURE__ */ C("div", { className: "skeleton__active-slide" }),
548
+ /* @__PURE__ */ C("div", { className: "skeleton__next-slide" })
549
+ ] }), de = ({
550
+ children: o,
551
+ fallbackComponent: i = /* @__PURE__ */ C(ut, {}),
552
+ isLoading: t = !1,
553
+ keyPrefix: e
554
+ }) => /* @__PURE__ */ C(gt, { fallbackComponent: i, children: t === !0 ? /* @__PURE__ */ C(ue, {}, e) : o }), he = dt.div`
500
555
  &:hover {
501
556
  cursor: pointer;
502
557
 
@@ -665,11 +720,17 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
665
720
  }
666
721
  }
667
722
  }
668
- `, se = ft(
669
- ({ items: o = [], onSelectItem: i = () => {
670
- }, onButtonAction: t = () => {
671
- } }, e) => {
672
- const r = {
723
+ `, ce = yt(
724
+ ({
725
+ items: o = [],
726
+ isLoading: i = !1,
727
+ fallbackComponent: t = /* @__PURE__ */ C(ut, {}),
728
+ onSelectItem: e = () => {
729
+ },
730
+ onButtonAction: r = () => {
731
+ }
732
+ }, s) => {
733
+ const l = {
673
734
  desktop: {
674
735
  breakpoint: { max: 3e3, min: 1024 },
675
736
  items: 1,
@@ -685,66 +746,76 @@ const re = /* @__PURE__ */ mt(oe), ne = yt.div`
685
746
  items: 1,
686
747
  partialVisibilityGutter: 64
687
748
  }
688
- }, a = gt();
689
- return /* @__PURE__ */ x(ne, { ref: e, children: /* @__PURE__ */ x(
690
- re,
749
+ }, n = wt();
750
+ return /* @__PURE__ */ C(he, { ref: s, children: /* @__PURE__ */ C(
751
+ de,
691
752
  {
692
- responsive: r,
693
- removeArrowOnDeviceType: ["tablet", "mobile"],
694
- infinite: !a,
695
- keyBoardControl: !0,
696
- autoPlay: !0,
697
- partialVisible: !0,
698
- customTransition: "transform 500ms ease-in-out",
699
- sliderClass: "carousel-slider",
700
- itemClass: "carousel-item",
701
- containerClass: "carousel-container",
702
- rewind: !0,
703
- rewindWithAnimation: !0,
704
- children: o == null ? void 0 : o.map((n, s) => /* @__PURE__ */ z(
705
- "div",
753
+ fallbackComponent: t,
754
+ keyPrefix: "banner-carousel-skeleton",
755
+ isLoading: i,
756
+ children: /* @__PURE__ */ C(
757
+ ae,
706
758
  {
707
- className: "section__card",
708
- onClick: () => i(n),
709
- children: [
710
- /* @__PURE__ */ x(
711
- "img",
712
- {
713
- src: n == null ? void 0 : n.imageUrl,
714
- alt: `Slide ${s + 1}`,
715
- className: "section__image"
716
- }
717
- ),
718
- /* @__PURE__ */ z("div", { className: "card__content", children: [
719
- /* @__PURE__ */ z("div", { className: "card__text", children: [
720
- (n == null ? void 0 : n.title) && /* @__PURE__ */ x("div", { className: "card__title", children: n == null ? void 0 : n.title }),
721
- (n == null ? void 0 : n.title) && /* @__PURE__ */ x("div", { className: "card__description", children: n == null ? void 0 : n.description })
722
- ] }),
723
- (n == null ? void 0 : n.buttonText) && /* @__PURE__ */ x(
724
- vt,
725
- {
726
- text: n == null ? void 0 : n.buttonText,
727
- className: "card__action",
728
- size: "medium",
729
- onClick: (l) => {
730
- l == null || l.stopPropagation(), t(n);
759
+ responsive: l,
760
+ removeArrowOnDeviceType: ["tablet", "mobile"],
761
+ infinite: !n,
762
+ keyBoardControl: !0,
763
+ autoPlay: !0,
764
+ partialVisible: !0,
765
+ customTransition: "transform 500ms ease-in-out",
766
+ sliderClass: "carousel-slider",
767
+ itemClass: "carousel-item",
768
+ containerClass: "carousel-container",
769
+ rewind: !0,
770
+ rewindWithAnimation: !0,
771
+ children: o == null ? void 0 : o.map((a, u) => /* @__PURE__ */ G(
772
+ "div",
773
+ {
774
+ className: "section__card",
775
+ onClick: () => e(a),
776
+ children: [
777
+ /* @__PURE__ */ C(
778
+ "img",
779
+ {
780
+ src: a == null ? void 0 : a.imageUrl,
781
+ alt: `Slide ${u + 1}`,
782
+ className: "section__image"
731
783
  }
732
- }
733
- )
734
- ] })
735
- ]
736
- },
737
- `banner-section-carousel-item__${s + 1}`
738
- ))
784
+ ),
785
+ /* @__PURE__ */ G("div", { className: "card__content", children: [
786
+ /* @__PURE__ */ G("div", { className: "card__text", children: [
787
+ (a == null ? void 0 : a.title) && /* @__PURE__ */ C("div", { className: "card__title", children: a == null ? void 0 : a.title }),
788
+ (a == null ? void 0 : a.title) && /* @__PURE__ */ C("div", { className: "card__description", children: a == null ? void 0 : a.description })
789
+ ] }),
790
+ (a == null ? void 0 : a.buttonText) && /* @__PURE__ */ C(
791
+ Tt,
792
+ {
793
+ text: a == null ? void 0 : a.buttonText,
794
+ className: "card__action",
795
+ size: "medium",
796
+ onClick: (d) => {
797
+ d == null || d.stopPropagation(), r(a);
798
+ }
799
+ }
800
+ )
801
+ ] })
802
+ ]
803
+ },
804
+ `banner-section-carousel-item__${u + 1}`
805
+ ))
806
+ }
807
+ )
739
808
  }
740
- ) }, `banner-section-carousel__${a}`);
809
+ ) }, `banner-section-carousel__${n}`);
741
810
  }
742
811
  );
743
- se.propTypes = {
744
- items: U.array,
745
- onSelectItem: U.func,
746
- onButtonAction: U.func
812
+ ce.propTypes = {
813
+ items: W.array,
814
+ isLoading: W.bool,
815
+ fallbackComponent: W.any,
816
+ onSelectItem: W.func,
817
+ onButtonAction: W.func
747
818
  };
748
819
  export {
749
- se as default
820
+ ce as default
750
821
  };