@lanaco/lnc-react-ui 4.0.200 → 4.0.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +51 -542
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/PartnerBannerSection.cjs +105 -0
- package/dist/PartnerBannerSection.js +159 -0
- package/dist/PartnerBrandsSection.cjs +62 -0
- package/dist/PartnerBrandsSection.js +154 -0
- package/dist/PartnerCardsSection.cjs +134 -0
- package/dist/PartnerCardsSection.js +203 -0
- package/dist/PartnerStatsSection.cjs +100 -0
- package/dist/PartnerStatsSection.js +124 -0
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +36 -26
- package/dist/SalesCampaignsSection.js +226 -213
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/index-BppfjY8h.js +497 -0
- package/dist/index-DeS-oqJB.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +43 -35
- package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
- package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
- package/package.json +6 -2
- package/vite.config.js +16 -0
|
@@ -1,503 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { u as
|
|
6
|
-
import { s as
|
|
7
|
-
import { b as
|
|
8
|
-
import { M as
|
|
9
|
-
|
|
10
|
-
(function(o) {
|
|
11
|
-
function i(a, n, l) {
|
|
12
|
-
var h = n.slidesToShow, d = n.currentSlide;
|
|
13
|
-
return l.length > 2 * h ? a + 2 * h : d >= l.length ? l.length + a : a;
|
|
14
|
-
}
|
|
15
|
-
function t(a, n) {
|
|
16
|
-
if (n.length > 2 * a) {
|
|
17
|
-
for (var l = {}, h = n.length - 2 * a, d = n.length - h, u = h, c = 0; c < d; c++) l[c] = u, u++;
|
|
18
|
-
var p = n.length + d, f = p + n.slice(0, 2 * a).length, g = 0;
|
|
19
|
-
for (c = p; c <= f; c++) l[c] = g, g++;
|
|
20
|
-
var w = p, b = 0;
|
|
21
|
-
for (c = d; c < w; c++) l[c] = b, b++;
|
|
22
|
-
return l;
|
|
23
|
-
}
|
|
24
|
-
l = {};
|
|
25
|
-
var _ = 3 * n.length, S = 0;
|
|
26
|
-
for (c = 0; c < _; c++) l[c] = S, ++S === n.length && (S = 0);
|
|
27
|
-
return l;
|
|
28
|
-
}
|
|
29
|
-
function e(a, n) {
|
|
30
|
-
return n.length < a ? n : n.length > 2 * a ? n.slice(n.length - 2 * a, n.length).concat(n, n.slice(0, 2 * a)) : n.concat(n, n);
|
|
31
|
-
}
|
|
32
|
-
function r(a, n) {
|
|
33
|
-
return n.length > 2 * a ? 2 * a : n.length;
|
|
34
|
-
}
|
|
35
|
-
function s(a, n, l) {
|
|
36
|
-
var h, d = a.currentSlide, u = a.slidesToShow, c = a.itemWidth, p = a.totalItems, f = 0, g = 0, w = d === 0, b = n.length - (n.length - 2 * u);
|
|
37
|
-
return n.length < u ? (g = f = 0, w = h = !1) : n.length > 2 * u ? ((h = d >= b + n.length) && (g = -c * (f = d - n.length)), w && (g = -c * (f = b + (n.length - 2 * u)))) : ((h = d >= 2 * n.length) && (g = -c * (f = d - n.length)), w && (g = l.showDots ? -c * (f = n.length) : -c * (f = p / 3))), { isReachingTheEnd: h, isReachingTheStart: w, nextSlide: f, nextPosition: g };
|
|
38
|
-
}
|
|
39
|
-
Object.defineProperty(o, "__esModule", { value: !0 }), o.getOriginalCounterPart = i, o.getOriginalIndexLookupTableByClones = t, o.getClones = e, o.getInitialSlideInInfiniteMode = r, o.checkClonesPosition = s;
|
|
40
|
-
})(B);
|
|
41
|
-
var O = {};
|
|
42
|
-
Object.defineProperty(O, "__esModule", { value: !0 });
|
|
43
|
-
var ot = !1;
|
|
44
|
-
function _t(o, i, t, e) {
|
|
45
|
-
var r = 0, s = e || t;
|
|
46
|
-
return i && s && (!ot && process.env.NODE_ENV !== "production" && o[s].paritialVisibilityGutter && (ot = !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;
|
|
47
|
-
}
|
|
48
|
-
function Ct(o, i) {
|
|
49
|
-
var t;
|
|
50
|
-
return i[o] && (t = (100 / i[o].items).toFixed(1)), t;
|
|
51
|
-
}
|
|
52
|
-
function It(o, i, t) {
|
|
53
|
-
return Math.round(t / (i + (o.centerMode ? 1 : 0)));
|
|
54
|
-
}
|
|
55
|
-
O.getPartialVisibilityGutter = _t, O.getWidthFromDeviceType = Ct, O.getItemClientSideWidth = It;
|
|
56
|
-
var y = {};
|
|
57
|
-
Object.defineProperty(y, "__esModule", { value: !0 });
|
|
58
|
-
var Y = O;
|
|
59
|
-
function q(o) {
|
|
60
|
-
var i = o.slidesToShow;
|
|
61
|
-
return o.totalItems < i;
|
|
62
|
-
}
|
|
63
|
-
function Mt(o, i) {
|
|
64
|
-
var t, e = o.domLoaded, r = o.slidesToShow, s = o.containerWidth, a = o.itemWidth, n = i.deviceType, l = i.responsive, h = i.ssr, d = i.partialVisbile, u = i.partialVisible, c = !!(e && r && s && a);
|
|
65
|
-
h && n && !c && (t = Y.getWidthFromDeviceType(n, l));
|
|
66
|
-
var p = !!(h && n && !c && t);
|
|
67
|
-
return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded: c, partialVisibilityGutter: Y.getPartialVisibilityGutter(l, d || u, n, o.deviceType), shouldRenderAtAll: p || c };
|
|
68
|
-
}
|
|
69
|
-
function Pt(o, i) {
|
|
70
|
-
var t = i.currentSlide, e = i.slidesToShow;
|
|
71
|
-
return t <= o && o < t + e;
|
|
72
|
-
}
|
|
73
|
-
function ut(o, i, t) {
|
|
74
|
-
var e = t || o.transform;
|
|
75
|
-
return !i.infinite && o.currentSlide === 0 || q(o) ? e : e + o.itemWidth / 2;
|
|
76
|
-
}
|
|
77
|
-
function Et(o) {
|
|
78
|
-
return !(0 < o.currentSlide);
|
|
79
|
-
}
|
|
80
|
-
function ht(o) {
|
|
81
|
-
var i = o.currentSlide, t = o.totalItems;
|
|
82
|
-
return !(i + o.slidesToShow < t);
|
|
83
|
-
}
|
|
84
|
-
function dt(o, i, t, e) {
|
|
85
|
-
i === void 0 && (i = 0);
|
|
86
|
-
var r = o.currentSlide, s = o.slidesToShow, a = ht(o), n = !t.infinite && a, l = e || o.transform;
|
|
87
|
-
if (q(o)) return l;
|
|
88
|
-
var h = l + r * i;
|
|
89
|
-
return n ? h + (o.containerWidth - (o.itemWidth - i) * s) : h;
|
|
90
|
-
}
|
|
91
|
-
function ct(o, i) {
|
|
92
|
-
return o.rtl ? -1 * i : i;
|
|
93
|
-
}
|
|
94
|
-
function Rt(o, i, t) {
|
|
95
|
-
var e = i.partialVisbile, r = i.partialVisible, s = i.responsive, a = i.deviceType, n = i.centerMode, l = t || o.transform, h = Y.getPartialVisibilityGutter(s, e || r, a, o.deviceType);
|
|
96
|
-
return ct(i, r || e ? dt(o, h, i, t) : n ? ut(o, i, t) : l);
|
|
97
|
-
}
|
|
98
|
-
function xt(o, i) {
|
|
99
|
-
var t = o.domLoaded, e = o.slidesToShow, r = o.containerWidth, s = o.itemWidth, a = i.deviceType, n = i.responsive, l = i.slidesToSlide || 1, h = !!(t && e && r && s);
|
|
100
|
-
return i.ssr && i.deviceType && !h && Object.keys(n).forEach(function(d) {
|
|
101
|
-
var u = n[d].slidesToSlide;
|
|
102
|
-
a === d && u && (l = u);
|
|
103
|
-
}), h && Object.keys(n).forEach(function(d) {
|
|
104
|
-
var u = n[d], c = u.breakpoint, p = u.slidesToSlide, f = c.max, g = c.min;
|
|
105
|
-
p && window.innerWidth >= g && window.innerWidth <= f && (l = p);
|
|
106
|
-
}), l;
|
|
107
|
-
}
|
|
108
|
-
y.notEnoughChildren = q, y.getInitialState = Mt, y.getIfSlideIsVisbile = Pt, y.getTransformForCenterMode = ut, y.isInLeftEnd = Et, y.isInRightEnd = ht, y.getTransformForPartialVsibile = dt, y.parsePosition = ct, y.getTransform = Rt, y.getSlidesToSlide = xt;
|
|
109
|
-
var J = {};
|
|
110
|
-
Object.defineProperty(J, "__esModule", { value: !0 });
|
|
111
|
-
var Ot = function(o, i, t) {
|
|
112
|
-
var e;
|
|
113
|
-
return function() {
|
|
114
|
-
var r = arguments;
|
|
115
|
-
e || (o.apply(this, r), e = !0, typeof t == "function" && t(!0), setTimeout(function() {
|
|
116
|
-
e = !1, typeof t == "function" && t(!1);
|
|
117
|
-
}, i));
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
J.default = Ot;
|
|
121
|
-
var pt = {};
|
|
122
|
-
(function(o) {
|
|
123
|
-
function i(t, e) {
|
|
124
|
-
var r = e.partialVisbile, s = e.partialVisible, a = e.centerMode, n = e.ssr, l = e.responsive;
|
|
125
|
-
if ((r || s) && a) throw new Error("center mode can not be used at the same time with partialVisible");
|
|
126
|
-
if (!l) 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 (l && typeof l != "object") throw new Error("responsive prop must be an object");
|
|
128
|
-
}
|
|
129
|
-
Object.defineProperty(o, "__esModule", { value: !0 }), o.default = i;
|
|
130
|
-
})(pt);
|
|
131
|
-
var Q = {};
|
|
132
|
-
Object.defineProperty(Q, "__esModule", { value: !0 });
|
|
133
|
-
var At = y;
|
|
134
|
-
function Wt(o, i, t) {
|
|
135
|
-
t === void 0 && (t = 0);
|
|
136
|
-
var e, r, s = o.slidesToShow, a = o.currentSlide, n = o.itemWidth, l = o.totalItems, h = At.getSlidesToSlide(o, i), d = a + 1 + t + s + (0 < t ? 0 : h);
|
|
137
|
-
return r = d <= l ? -n * (e = a + t + (0 < t ? 0 : h)) : l < d && a !== l - s ? -n * (e = l - s) : e = void 0, { nextSlides: e, nextPosition: r };
|
|
138
|
-
}
|
|
139
|
-
Q.populateNextSlides = Wt;
|
|
140
|
-
var H = {};
|
|
141
|
-
Object.defineProperty(H, "__esModule", { value: !0 });
|
|
142
|
-
var Dt = A, Lt = y, kt = y;
|
|
143
|
-
function Vt(o, i, t) {
|
|
144
|
-
t === void 0 && (t = 0);
|
|
145
|
-
var e, r, s = o.currentSlide, a = o.itemWidth, n = o.slidesToShow, l = i.children, h = i.showDots, d = i.infinite, u = Lt.getSlidesToSlide(o, i), c = s - t - (0 < t ? 0 : u), p = (Dt.Children.toArray(l).length - n) % u;
|
|
146
|
-
return r = 0 <= c ? (e = c, h && !d && 0 < p && kt.isInRightEnd(o) && (e = s - p), -a * e) : e = c < 0 && s !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
|
|
147
|
-
}
|
|
148
|
-
H.populatePreviousSlides = Vt;
|
|
149
|
-
var ft = {};
|
|
150
|
-
(function(o) {
|
|
151
|
-
function i(t, e, r, s, a, n) {
|
|
152
|
-
var l, h, d = t.itemWidth, u = t.slidesToShow, c = t.totalItems, p = t.currentSlide, f = e.infinite, g = !1, w = Math.round((r - s) / d), b = Math.round((s - r) / d), _ = r < a;
|
|
153
|
-
if (a < r && w <= u) {
|
|
154
|
-
l = "right";
|
|
155
|
-
var S = Math.abs(-d * (c - u)), M = n - (s - a), I = p === c - u;
|
|
156
|
-
(Math.abs(M) <= S || I && f) && (h = M, g = !0);
|
|
157
|
-
}
|
|
158
|
-
return _ && b <= u && (l = "left", ((M = n + (a - s)) <= 0 || p === 0 && f) && (g = !0, h = M)), { direction: l, nextPosition: h, canContinue: g };
|
|
159
|
-
}
|
|
160
|
-
Object.defineProperty(o, "__esModule", { value: !0 }), o.populateSlidesOnMouseTouchMove = i;
|
|
161
|
-
})(ft);
|
|
162
|
-
Object.defineProperty(m, "__esModule", { value: !0 });
|
|
163
|
-
var k = B;
|
|
164
|
-
m.getOriginalCounterPart = k.getOriginalCounterPart, m.getClones = k.getClones, m.checkClonesPosition = k.checkClonesPosition, m.getInitialSlideInInfiniteMode = k.getInitialSlideInInfiniteMode;
|
|
165
|
-
var X = O;
|
|
166
|
-
m.getWidthFromDeviceType = X.getWidthFromDeviceType, m.getPartialVisibilityGutter = X.getPartialVisibilityGutter, m.getItemClientSideWidth = X.getItemClientSideWidth;
|
|
167
|
-
var E = y;
|
|
168
|
-
m.getInitialState = E.getInitialState, m.getIfSlideIsVisbile = E.getIfSlideIsVisbile, m.getTransformForCenterMode = E.getTransformForCenterMode, m.getTransformForPartialVsibile = E.getTransformForPartialVsibile, m.isInLeftEnd = E.isInLeftEnd, m.isInRightEnd = E.isInRightEnd, m.notEnoughChildren = E.notEnoughChildren, m.getSlidesToSlide = E.getSlidesToSlide;
|
|
169
|
-
var jt = J;
|
|
170
|
-
m.throttle = jt.default;
|
|
171
|
-
var Gt = pt;
|
|
172
|
-
m.throwError = Gt.default;
|
|
173
|
-
var Nt = Q;
|
|
174
|
-
m.populateNextSlides = Nt.populateNextSlides;
|
|
175
|
-
var Bt = H;
|
|
176
|
-
m.populatePreviousSlides = Bt.populatePreviousSlides;
|
|
177
|
-
var Ft = ft;
|
|
178
|
-
m.populateSlidesOnMouseTouchMove = Ft.populateSlidesOnMouseTouchMove;
|
|
179
|
-
var F = {}, $t = G && G.__extends || /* @__PURE__ */ function() {
|
|
180
|
-
var o = function(i, t) {
|
|
181
|
-
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
182
|
-
e.__proto__ = r;
|
|
183
|
-
} || function(e, r) {
|
|
184
|
-
for (var s in r) r.hasOwnProperty(s) && (e[s] = r[s]);
|
|
185
|
-
})(i, t);
|
|
186
|
-
};
|
|
187
|
-
return function(i, t) {
|
|
188
|
-
function e() {
|
|
189
|
-
this.constructor = i;
|
|
190
|
-
}
|
|
191
|
-
o(i, t), i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
192
|
-
};
|
|
193
|
-
}();
|
|
194
|
-
Object.defineProperty(F, "__esModule", { value: !0 });
|
|
195
|
-
var zt = A;
|
|
196
|
-
function Xt(o) {
|
|
197
|
-
return "clientY" in o;
|
|
198
|
-
}
|
|
199
|
-
F.isMouseMoveEvent = Xt;
|
|
200
|
-
var Ut = function(o) {
|
|
201
|
-
function i() {
|
|
202
|
-
return o !== null && o.apply(this, arguments) || this;
|
|
203
|
-
}
|
|
204
|
-
return $t(i, o), i;
|
|
205
|
-
}(zt.Component);
|
|
206
|
-
F.default = Ut;
|
|
207
|
-
var tt = {}, et = {};
|
|
208
|
-
Object.defineProperty(et, "__esModule", { value: !0 });
|
|
209
|
-
var Yt = B, Kt = y;
|
|
210
|
-
function Zt(o, i, t, e) {
|
|
211
|
-
var r = {}, s = Kt.getSlidesToSlide(i, t);
|
|
212
|
-
return Array(o).fill(0).forEach(function(a, n) {
|
|
213
|
-
var l = Yt.getOriginalCounterPart(n, i, e);
|
|
214
|
-
if (n === 0) r[0] = l;
|
|
215
|
-
else {
|
|
216
|
-
var h = r[n - 1] + s;
|
|
217
|
-
r[n] = h;
|
|
218
|
-
}
|
|
219
|
-
}), r;
|
|
220
|
-
}
|
|
221
|
-
et.getLookupTableForNextSlides = Zt;
|
|
222
|
-
Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
223
|
-
var D = A, qt = B, Jt = et, rt = y, Qt = function(o) {
|
|
224
|
-
var i = o.props, t = o.state, e = o.goToSlide, r = o.getState, s = i.showDots, a = i.customDot, n = i.dotListClass, l = i.infinite, h = i.children;
|
|
225
|
-
if (!s || rt.notEnoughChildren(t)) return null;
|
|
226
|
-
var d, u = t.currentSlide, c = t.slidesToShow, p = rt.getSlidesToSlide(t, i), f = D.Children.toArray(h);
|
|
227
|
-
d = l ? Math.ceil(f.length / p) : Math.ceil((f.length - c) / p) + 1;
|
|
228
|
-
var g = Jt.getLookupTableForNextSlides(d, t, i, f), w = qt.getOriginalIndexLookupTableByClones(c, f), b = w[u];
|
|
229
|
-
return D.createElement("ul", { className: "react-multi-carousel-dot-list " + n }, Array(d).fill(0).map(function(_, S) {
|
|
230
|
-
var M, I;
|
|
231
|
-
if (l) {
|
|
232
|
-
I = g[S];
|
|
233
|
-
var x = w[I];
|
|
234
|
-
M = b === x || x <= b && b < x + p;
|
|
235
|
-
} else {
|
|
236
|
-
var W = f.length - c, L = S * p;
|
|
237
|
-
M = (I = W < L ? W : L) === u || I < u && u < I + p && u < f.length - c;
|
|
238
|
-
}
|
|
239
|
-
return a ? D.cloneElement(a, { index: S, active: M, key: S, onClick: function() {
|
|
240
|
-
return e(I);
|
|
241
|
-
}, carouselState: r() }) : D.createElement("li", { "data-index": S, key: S, className: "react-multi-carousel-dot " + (M ? "react-multi-carousel-dot--active" : "") }, D.createElement("button", { "aria-label": "Go to slide " + (S + 1), onClick: function() {
|
|
242
|
-
return e(I);
|
|
243
|
-
} }));
|
|
244
|
-
}));
|
|
245
|
-
};
|
|
246
|
-
tt.default = Qt;
|
|
247
|
-
var $ = {};
|
|
248
|
-
Object.defineProperty($, "__esModule", { value: !0 });
|
|
249
|
-
var N = A, Ht = function(o) {
|
|
250
|
-
var i = o.customLeftArrow, t = o.getState, e = o.previous, r = o.disabled, s = o.rtl;
|
|
251
|
-
if (i) return N.cloneElement(i, { onClick: function() {
|
|
252
|
-
return e();
|
|
253
|
-
}, carouselState: t(), disabled: r, rtl: s });
|
|
254
|
-
var a = s ? "rtl" : "";
|
|
255
|
-
return N.createElement("button", { "aria-label": "Go to previous slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--left " + a, onClick: function() {
|
|
256
|
-
return e();
|
|
257
|
-
}, type: "button", disabled: r });
|
|
258
|
-
};
|
|
259
|
-
$.LeftArrow = Ht;
|
|
260
|
-
var te = function(o) {
|
|
261
|
-
var i = o.customRightArrow, t = o.getState, e = o.next, r = o.disabled, s = o.rtl;
|
|
262
|
-
if (i) return N.cloneElement(i, { onClick: function() {
|
|
263
|
-
return e();
|
|
264
|
-
}, carouselState: t(), disabled: r, rtl: s });
|
|
265
|
-
var a = s ? "rtl" : "";
|
|
266
|
-
return N.createElement("button", { "aria-label": "Go to next slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--right " + a, onClick: function() {
|
|
267
|
-
return e();
|
|
268
|
-
}, type: "button", disabled: r });
|
|
269
|
-
};
|
|
270
|
-
$.RightArrow = te;
|
|
271
|
-
var it = {};
|
|
272
|
-
Object.defineProperty(it, "__esModule", { value: !0 });
|
|
273
|
-
var V = A, U = m, ee = function(o) {
|
|
274
|
-
var i = o.props, t = o.state, e = o.goToSlide, r = o.clones, s = o.notEnoughChildren, a = t.itemWidth, n = i.children, l = i.infinite, h = i.itemClass, d = i.itemAriaLabel, u = i.partialVisbile, c = i.partialVisible, p = U.getInitialState(t, i), f = p.flexBisis, g = p.shouldRenderOnSSR, w = p.domFullyLoaded, b = p.partialVisibilityGutter;
|
|
275
|
-
return p.shouldRenderAtAll ? (u && 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(n)).map(function(_, S) {
|
|
276
|
-
return V.createElement("li", { key: S, "data-index": S, onClick: function() {
|
|
277
|
-
i.focusOnSelect && e(S);
|
|
278
|
-
}, "aria-hidden": U.getIfSlideIsVisbile(S, t) ? "false" : "true", "aria-label": d || (_.props.ariaLabel ? _.props.ariaLabel : null), style: { flex: g ? "1 0 " + f + "%" : "auto", position: "relative", width: w ? ((u || c) && b && !s ? a - b : a) + "px" : "auto" }, className: "react-multi-carousel-item " + (U.getIfSlideIsVisbile(S, t) ? "react-multi-carousel-item--active" : "") + " " + h }, _);
|
|
279
|
-
}))) : null;
|
|
280
|
-
};
|
|
281
|
-
it.default = ee;
|
|
282
|
-
var ie = G && G.__extends || /* @__PURE__ */ function() {
|
|
283
|
-
var o = function(i, t) {
|
|
284
|
-
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
285
|
-
e.__proto__ = r;
|
|
286
|
-
} || function(e, r) {
|
|
287
|
-
for (var s in r) r.hasOwnProperty(s) && (e[s] = r[s]);
|
|
288
|
-
})(i, t);
|
|
289
|
-
};
|
|
290
|
-
return function(i, t) {
|
|
291
|
-
function e() {
|
|
292
|
-
this.constructor = i;
|
|
293
|
-
}
|
|
294
|
-
o(i, t), i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
295
|
-
};
|
|
296
|
-
}();
|
|
297
|
-
Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
298
|
-
var T = A, v = m, R = F, oe = tt, nt = $, re = it, j = y, P = 400, st = "transform 400ms ease-in-out", ne = function(o) {
|
|
299
|
-
function i(t) {
|
|
300
|
-
var e = o.call(this, t) || this;
|
|
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;
|
|
302
|
-
}
|
|
303
|
-
return ie(i, o), i.prototype.resetTotalItems = function() {
|
|
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));
|
|
305
|
-
this.setState({ totalItems: e, currentSlide: r }, function() {
|
|
306
|
-
t.setContainerAndItemWidth(t.state.slidesToShow, !0);
|
|
307
|
-
});
|
|
308
|
-
}, i.prototype.setIsInThrottle = function(t) {
|
|
309
|
-
t === void 0 && (t = !1), this.isInThrottle = t;
|
|
310
|
-
}, i.prototype.setTransformDirectly = function(t, e) {
|
|
311
|
-
var r = this.props.additionalTransfrom;
|
|
312
|
-
this.transformPlaceHolder = t;
|
|
313
|
-
var s = j.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)");
|
|
315
|
-
}, i.prototype.setAnimationDirectly = function(t) {
|
|
316
|
-
this.listRef && this.listRef.current && (this.listRef.current.style.transition = t ? this.props.customTransition || st : "none");
|
|
317
|
-
}, i.prototype.componentDidMount = function() {
|
|
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));
|
|
319
|
-
}, i.prototype.setClones = function(t, e, r, s) {
|
|
320
|
-
var a = this;
|
|
321
|
-
s === void 0 && (s = !1), this.isAnimationAllowed = !1;
|
|
322
|
-
var n = T.Children.toArray(this.props.children), l = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, n), h = v.getClones(this.state.slidesToShow, n), d = n.length < this.state.slidesToShow ? 0 : this.state.currentSlide;
|
|
323
|
-
this.setState({ totalItems: h.length, currentSlide: r && !s ? d : l }, function() {
|
|
324
|
-
a.correctItemsPosition(e || a.state.itemWidth);
|
|
325
|
-
});
|
|
326
|
-
}, i.prototype.setItemsToShow = function(t, e) {
|
|
327
|
-
var r = this, s = this.props.responsive;
|
|
328
|
-
Object.keys(s).forEach(function(a) {
|
|
329
|
-
var n = s[a], l = n.breakpoint, h = n.items, d = l.max, u = l.min, c = [window.innerWidth];
|
|
330
|
-
window.screen && window.screen.width && c.push(window.screen.width);
|
|
331
|
-
var p = Math.min.apply(Math, c);
|
|
332
|
-
u <= p && p <= d && (r.setState({ slidesToShow: h, deviceType: a }), r.setContainerAndItemWidth(h, t, e));
|
|
333
|
-
});
|
|
334
|
-
}, i.prototype.setContainerAndItemWidth = function(t, e, r) {
|
|
335
|
-
var s = this;
|
|
336
|
-
if (this.containerRef && this.containerRef.current) {
|
|
337
|
-
var a = this.containerRef.current.offsetWidth, n = v.getItemClientSideWidth(this.props, t, a);
|
|
338
|
-
this.setState({ containerWidth: a, itemWidth: n }, function() {
|
|
339
|
-
s.props.infinite && s.setClones(t, n, e, r);
|
|
340
|
-
}), e && this.correctItemsPosition(n);
|
|
341
|
-
}
|
|
342
|
-
}, i.prototype.correctItemsPosition = function(t, e, r) {
|
|
343
|
-
e && (this.isAnimationAllowed = !0), !e && this.isAnimationAllowed && (this.isAnimationAllowed = !1);
|
|
344
|
-
var s = this.state.totalItems < this.state.slidesToShow ? 0 : -t * this.state.currentSlide;
|
|
345
|
-
r && this.setTransformDirectly(s, !0), this.setState({ transform: s });
|
|
346
|
-
}, i.prototype.onResize = function(t) {
|
|
347
|
-
var e;
|
|
348
|
-
e = !!this.props.infinite && (typeof t != "boolean" || !t), this.setItemsToShow(e);
|
|
349
|
-
}, i.prototype.componentDidUpdate = function(t, e) {
|
|
350
|
-
var r = this, s = t.keyBoardControl, a = t.autoPlay, n = t.children, l = e.containerWidth, h = e.domLoaded, d = e.currentSlide;
|
|
351
|
-
if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !== l && (this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), this.itemsToShowTimeout = setTimeout(function() {
|
|
352
|
-
r.setItemsToShow(!0);
|
|
353
|
-
}, this.props.transitionDuration || P)), s && !this.props.keyBoardControl && window.removeEventListener("keyup", this.onKeyUp), !s && this.props.keyBoardControl && window.addEventListener("keyup", this.onKeyUp), a && !this.props.autoPlay && this.autoPlay && (clearInterval(this.autoPlay), this.autoPlay = void 0), a || !this.props.autoPlay || this.autoPlay || (this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed)), n.length !== this.props.children.length ? i.clonesTimeout = setTimeout(function() {
|
|
354
|
-
r.props.infinite ? r.setClones(r.state.slidesToShow, r.state.itemWidth, !0, !0) : r.resetTotalItems();
|
|
355
|
-
}, this.props.transitionDuration || P) : this.props.infinite && this.state.currentSlide !== d && this.correctClonesPosition({ domLoaded: h }), 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 u = this.props.transitionDuration || P;
|
|
357
|
-
i.isInThrottleTimeout = setTimeout(function() {
|
|
358
|
-
r.setIsInThrottle(!1), r.resetAutoplayInterval(), r.goToSlide(0, void 0, !!r.props.rewindWithAnimation);
|
|
359
|
-
}, u + this.props.autoPlaySpeed);
|
|
360
|
-
}
|
|
361
|
-
}, i.prototype.correctClonesPosition = function(t) {
|
|
362
|
-
var e = this, r = t.domLoaded, s = T.Children.toArray(this.props.children), a = v.checkClonesPosition(this.state, s, this.props), n = a.isReachingTheEnd, l = a.isReachingTheStart, h = a.nextSlide, d = a.nextPosition;
|
|
363
|
-
this.state.domLoaded && r && (n || l) && (this.isAnimationAllowed = !1, i.transformTimeout = setTimeout(function() {
|
|
364
|
-
e.setState({ transform: d, currentSlide: h });
|
|
365
|
-
}, this.props.transitionDuration || P));
|
|
366
|
-
}, i.prototype.next = function(t) {
|
|
367
|
-
var e = this;
|
|
368
|
-
t === void 0 && (t = 0);
|
|
369
|
-
var r = this.props, s = r.afterChange, a = r.beforeChange;
|
|
370
|
-
if (!v.notEnoughChildren(this.state)) {
|
|
371
|
-
var n = v.populateNextSlides(this.state, this.props, t), l = n.nextSlides, h = n.nextPosition, d = this.state.currentSlide;
|
|
372
|
-
l !== void 0 && h !== void 0 && (typeof a == "function" && a(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: h, currentSlide: l }, function() {
|
|
373
|
-
typeof s == "function" && (i.afterChangeTimeout = setTimeout(function() {
|
|
374
|
-
s(d, e.getState());
|
|
375
|
-
}, e.props.transitionDuration || P));
|
|
376
|
-
}));
|
|
377
|
-
}
|
|
378
|
-
}, i.prototype.previous = function(t) {
|
|
379
|
-
var e = this;
|
|
380
|
-
t === void 0 && (t = 0);
|
|
381
|
-
var r = this.props, s = r.afterChange, a = r.beforeChange;
|
|
382
|
-
if (!v.notEnoughChildren(this.state)) {
|
|
383
|
-
var n = v.populatePreviousSlides(this.state, this.props, t), l = n.nextSlides, h = n.nextPosition;
|
|
384
|
-
if (l !== void 0 && h !== void 0) {
|
|
385
|
-
var d = this.state.currentSlide;
|
|
386
|
-
typeof a == "function" && a(l, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: h, currentSlide: l }, function() {
|
|
387
|
-
typeof s == "function" && (i.afterChangeTimeout2 = setTimeout(function() {
|
|
388
|
-
s(d, e.getState());
|
|
389
|
-
}, e.props.transitionDuration || P));
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}, i.prototype.resetAutoplayInterval = function() {
|
|
394
|
-
this.props.autoPlay && (clearInterval(this.autoPlay), this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed));
|
|
395
|
-
}, i.prototype.componentWillUnmount = function() {
|
|
396
|
-
window.removeEventListener("resize", this.onResize), this.props.keyBoardControl && window.removeEventListener("keyup", this.onKeyUp), this.props.autoPlay && this.autoPlay && (clearInterval(this.autoPlay), this.autoPlay = void 0), this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), i.clonesTimeout && clearTimeout(i.clonesTimeout), i.isInThrottleTimeout && clearTimeout(i.isInThrottleTimeout), i.transformTimeout && clearTimeout(i.transformTimeout), i.afterChangeTimeout && clearTimeout(i.afterChangeTimeout), i.afterChangeTimeout2 && clearTimeout(i.afterChangeTimeout2), i.afterChangeTimeout3 && clearTimeout(i.afterChangeTimeout3);
|
|
397
|
-
}, i.prototype.resetMoveStatus = function() {
|
|
398
|
-
this.onMove = !1, this.initialX = 0, this.lastX = 0, this.direction = "", this.initialY = 0;
|
|
399
|
-
}, i.prototype.getCords = function(t) {
|
|
400
|
-
var e = t.clientX, r = t.clientY;
|
|
401
|
-
return { clientX: j.parsePosition(this.props, e), clientY: j.parsePosition(this.props, r) };
|
|
402
|
-
}, i.prototype.handleDown = function(t) {
|
|
403
|
-
if (!(!R.isMouseMoveEvent(t) && !this.props.swipeable || R.isMouseMoveEvent(t) && !this.props.draggable || this.isInThrottle)) {
|
|
404
|
-
var e = this.getCords(R.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;
|
|
406
|
-
}
|
|
407
|
-
}, i.prototype.handleMove = function(t) {
|
|
408
|
-
if (!(!R.isMouseMoveEvent(t) && !this.props.swipeable || R.isMouseMoveEvent(t) && !this.props.draggable || v.notEnoughChildren(this.state))) {
|
|
409
|
-
var e = this.getCords(R.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, s = e.clientY, a = this.initialX - r, n = this.initialY - s;
|
|
410
|
-
if (this.onMove) {
|
|
411
|
-
if (!(Math.abs(a) > Math.abs(n))) return;
|
|
412
|
-
var l = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), h = l.direction, d = l.nextPosition, u = l.canContinue;
|
|
413
|
-
h && (this.direction = h, u && d !== void 0 && this.setTransformDirectly(d)), this.lastX = r;
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}, i.prototype.handleOut = function(t) {
|
|
417
|
-
this.props.autoPlay && !this.autoPlay && (this.autoPlay = setInterval(this.next, this.props.autoPlaySpeed));
|
|
418
|
-
var e = t.type === "touchend" && !this.props.swipeable, r = (t.type === "mouseleave" || t.type === "mouseup") && !this.props.draggable;
|
|
419
|
-
if (!e && !r && this.onMove) {
|
|
420
|
-
if (this.setAnimationDirectly(!0), this.direction === "right") if (this.initialX - this.lastX >= this.props.minimumTouchDrag) {
|
|
421
|
-
var s = Math.round((this.initialX - this.lastX) / this.state.itemWidth);
|
|
422
|
-
this.next(s);
|
|
423
|
-
} else this.correctItemsPosition(this.state.itemWidth, !0, !0);
|
|
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();
|
|
425
|
-
}
|
|
426
|
-
}, i.prototype.isInViewport = function(t) {
|
|
427
|
-
var e = t.getBoundingClientRect(), r = e.top, s = r === void 0 ? 0 : r, a = e.left, n = a === void 0 ? 0 : a, l = e.bottom, h = l === void 0 ? 0 : l, d = e.right, u = d === void 0 ? 0 : d;
|
|
428
|
-
return 0 <= s && 0 <= n && h <= (window.innerHeight || document.documentElement.clientHeight) && u <= (window.innerWidth || document.documentElement.clientWidth);
|
|
429
|
-
}, i.prototype.isChildOfCarousel = function(t) {
|
|
430
|
-
return !!(t instanceof Element && this.listRef && this.listRef.current) && this.listRef.current.contains(t);
|
|
431
|
-
}, i.prototype.onKeyUp = function(t) {
|
|
432
|
-
var e = t.target;
|
|
433
|
-
switch (t.keyCode) {
|
|
434
|
-
case 37:
|
|
435
|
-
if (this.isChildOfCarousel(e)) return this.previous();
|
|
436
|
-
break;
|
|
437
|
-
case 39:
|
|
438
|
-
if (this.isChildOfCarousel(e)) return this.next();
|
|
439
|
-
break;
|
|
440
|
-
case 9:
|
|
441
|
-
if (this.isChildOfCarousel(e) && e instanceof HTMLInputElement && this.isInViewport(e)) return this.next();
|
|
442
|
-
}
|
|
443
|
-
}, i.prototype.handleEnter = function(t) {
|
|
444
|
-
R.isMouseMoveEvent(t) && this.autoPlay && this.props.autoPlay && this.props.pauseOnHover && (clearInterval(this.autoPlay), this.autoPlay = void 0);
|
|
445
|
-
}, i.prototype.goToSlide = function(t, e, r) {
|
|
446
|
-
var s = this;
|
|
447
|
-
if (r === void 0 && (r = !0), !this.isInThrottle) {
|
|
448
|
-
var a = this.state.itemWidth, n = this.props, l = n.afterChange, h = n.beforeChange, d = this.state.currentSlide;
|
|
449
|
-
typeof h != "function" || e && (typeof e != "object" || e.skipBeforeChange) || h(t, this.getState()), this.isAnimationAllowed = r, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ currentSlide: t, transform: -a * t }, function() {
|
|
450
|
-
s.props.infinite && s.correctClonesPosition({ domLoaded: !0 }), typeof l != "function" || e && (typeof e != "object" || e.skipAfterChange) || (i.afterChangeTimeout3 = setTimeout(function() {
|
|
451
|
-
l(d, s.getState());
|
|
452
|
-
}, s.props.transitionDuration || P));
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
}, i.prototype.getState = function() {
|
|
456
|
-
return this.state;
|
|
457
|
-
}, i.prototype.renderLeftArrow = function(t) {
|
|
458
|
-
var e = this, r = this.props, s = r.customLeftArrow, a = r.rtl;
|
|
459
|
-
return T.createElement(nt.LeftArrow, { customLeftArrow: s, getState: function() {
|
|
460
|
-
return e.getState();
|
|
461
|
-
}, previous: this.previous, disabled: t, rtl: a });
|
|
462
|
-
}, i.prototype.renderRightArrow = function(t) {
|
|
463
|
-
var e = this, r = this.props, s = r.customRightArrow, a = r.rtl;
|
|
464
|
-
return T.createElement(nt.RightArrow, { customRightArrow: s, getState: function() {
|
|
465
|
-
return e.getState();
|
|
466
|
-
}, next: this.next, disabled: t, rtl: a });
|
|
467
|
-
}, i.prototype.renderButtonGroups = function() {
|
|
468
|
-
var t = this, e = this.props.customButtonGroup;
|
|
469
|
-
return e ? T.cloneElement(e, { previous: function() {
|
|
470
|
-
return t.previous();
|
|
471
|
-
}, next: function() {
|
|
472
|
-
return t.next();
|
|
473
|
-
}, goToSlide: function(r, s) {
|
|
474
|
-
return t.goToSlide(r, s);
|
|
475
|
-
}, carouselState: this.getState() }) : null;
|
|
476
|
-
}, i.prototype.renderDotsList = function() {
|
|
477
|
-
var t = this;
|
|
478
|
-
return T.createElement(oe.default, { state: this.state, props: this.props, goToSlide: this.goToSlide, getState: function() {
|
|
479
|
-
return t.getState();
|
|
480
|
-
} });
|
|
481
|
-
}, i.prototype.renderCarouselItems = function() {
|
|
482
|
-
var t = [];
|
|
483
|
-
if (this.props.infinite) {
|
|
484
|
-
var e = T.Children.toArray(this.props.children);
|
|
485
|
-
t = v.getClones(this.state.slidesToShow, e);
|
|
486
|
-
}
|
|
487
|
-
return T.createElement(re.default, { clones: t, goToSlide: this.goToSlide, state: this.state, notEnoughChildren: v.notEnoughChildren(this.state), props: this.props });
|
|
488
|
-
}, i.prototype.render = function() {
|
|
489
|
-
var t = this.props, e = t.deviceType, r = t.arrows, s = t.renderArrowsWhenDisabled, a = t.removeArrowOnDeviceType, n = t.infinite, l = t.containerClass, h = t.sliderClass, d = t.customTransition, u = t.additionalTransfrom, c = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
|
|
490
|
-
process.env.NODE_ENV !== "production" && v.throwError(this.state, this.props);
|
|
491
|
-
var w = v.getInitialState(this.state, this.props), b = w.shouldRenderOnSSR, _ = w.shouldRenderAtAll, S = v.isInLeftEnd(this.state), M = v.isInRightEnd(this.state), I = r && !(a && (e && -1 < a.indexOf(e) || this.state.deviceType && -1 < a.indexOf(this.state.deviceType))) && !v.notEnoughChildren(this.state) && _, x = !n && S, W = !n && M, L = j.getTransform(this.state, this.props);
|
|
492
|
-
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 " + h, style: { transition: this.isAnimationAllowed ? d || st : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (L + u) + "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 && (!x || s) && this.renderLeftArrow(x), I && (!W || s) && this.renderRightArrow(W), _ && !p && this.renderButtonGroups(), _ && !c && this.renderDotsList()), _ && c && this.renderDotsList(), _ && p && this.renderButtonGroups());
|
|
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;
|
|
494
|
-
}(T.Component);
|
|
495
|
-
Z.default = ne;
|
|
496
|
-
Object.defineProperty(K, "__esModule", { value: !0 });
|
|
497
|
-
var se = Z;
|
|
498
|
-
K.default = se.default;
|
|
499
|
-
var ae = K;
|
|
500
|
-
const le = /* @__PURE__ */ gt(ae), ue = lt.div`
|
|
1
|
+
import { jsx as r, Fragment as d, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense as b, forwardRef as x } from "react";
|
|
3
|
+
import { C as v } from "./index-BppfjY8h.js";
|
|
4
|
+
import w from "./Button.js";
|
|
5
|
+
import { u as y } from "./useDetectMobile-Bkvj0VMa.js";
|
|
6
|
+
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
+
import { b as k, a as C } from "./style-BwQ4djFC.js";
|
|
8
|
+
import { M as S } from "./consts-BuFChS64.js";
|
|
9
|
+
const N = m.div`
|
|
501
10
|
&:hover {
|
|
502
11
|
cursor: pointer;
|
|
503
12
|
|
|
@@ -666,32 +175,32 @@ const le = /* @__PURE__ */ gt(ae), ue = lt.div`
|
|
|
666
175
|
}
|
|
667
176
|
}
|
|
668
177
|
}
|
|
669
|
-
`,
|
|
670
|
-
@media (max-width: ${
|
|
178
|
+
`, j = m(k)`
|
|
179
|
+
@media (max-width: ${S + "px"}) {
|
|
671
180
|
& > div {
|
|
672
181
|
height: 100%;
|
|
673
182
|
aspect-ratio: 1 / 1;
|
|
674
183
|
}
|
|
675
184
|
}
|
|
676
|
-
`,
|
|
677
|
-
keyPrefix:
|
|
185
|
+
`, B = ({ keyPrefix: t }) => /* @__PURE__ */ r(j, { noGradient: !0, children: /* @__PURE__ */ r(C, { keyPrefix: `${t}-1`, height: "22.5rem" }) }), P = ({
|
|
186
|
+
keyPrefix: t,
|
|
678
187
|
isLoading: i = !1,
|
|
679
|
-
fallbackComponent:
|
|
680
|
-
children:
|
|
681
|
-
}) => /* @__PURE__ */
|
|
188
|
+
fallbackComponent: a = /* @__PURE__ */ r(d, {}),
|
|
189
|
+
children: o
|
|
190
|
+
}) => /* @__PURE__ */ r(b, { fallbackComponent: a, children: i === !0 ? /* @__PURE__ */ r(B, { keyPrefix: t }) : o }), D = x(
|
|
682
191
|
({
|
|
683
|
-
items:
|
|
192
|
+
items: t = [],
|
|
684
193
|
isLoading: i = !1,
|
|
685
|
-
deviceType:
|
|
686
|
-
partialVisible:
|
|
687
|
-
fallbackComponent:
|
|
688
|
-
onSelectItem:
|
|
194
|
+
deviceType: a,
|
|
195
|
+
partialVisible: o = !0,
|
|
196
|
+
fallbackComponent: u = /* @__PURE__ */ r(d, {}),
|
|
197
|
+
onSelectItem: h = () => {
|
|
689
198
|
},
|
|
690
|
-
onButtonAction:
|
|
199
|
+
onButtonAction: p = () => {
|
|
691
200
|
},
|
|
692
|
-
carouselProps:
|
|
693
|
-
},
|
|
694
|
-
const
|
|
201
|
+
carouselProps: f
|
|
202
|
+
}, _) => {
|
|
203
|
+
const g = {
|
|
695
204
|
desktop: {
|
|
696
205
|
breakpoint: { max: 3e3, min: 1024 },
|
|
697
206
|
items: 1,
|
|
@@ -707,57 +216,57 @@ const le = /* @__PURE__ */ gt(ae), ue = lt.div`
|
|
|
707
216
|
items: 1,
|
|
708
217
|
partialVisibilityGutter: 64
|
|
709
218
|
}
|
|
710
|
-
},
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
|
|
219
|
+
}, s = y();
|
|
220
|
+
return /* @__PURE__ */ r(N, { ref: _, children: /* @__PURE__ */ r(
|
|
221
|
+
P,
|
|
713
222
|
{
|
|
714
|
-
fallbackComponent:
|
|
223
|
+
fallbackComponent: u,
|
|
715
224
|
keyPrefix: "banner-carousel-skeleton",
|
|
716
225
|
isLoading: i,
|
|
717
|
-
children: /* @__PURE__ */
|
|
718
|
-
|
|
226
|
+
children: /* @__PURE__ */ r(
|
|
227
|
+
v,
|
|
719
228
|
{
|
|
720
|
-
responsive:
|
|
721
|
-
deviceType:
|
|
229
|
+
responsive: g,
|
|
230
|
+
deviceType: a,
|
|
722
231
|
removeArrowOnDeviceType: ["tablet", "mobile"],
|
|
723
|
-
infinite: !
|
|
232
|
+
infinite: !s,
|
|
724
233
|
keyBoardControl: !0,
|
|
725
234
|
autoPlay: !0,
|
|
726
|
-
partialVisible:
|
|
235
|
+
partialVisible: o,
|
|
727
236
|
customTransition: "transform 500ms ease-in-out",
|
|
728
237
|
sliderClass: "carousel-slider",
|
|
729
238
|
itemClass: "carousel-item",
|
|
730
239
|
containerClass: "carousel-container",
|
|
731
240
|
rewind: !0,
|
|
732
241
|
rewindWithAnimation: !0,
|
|
733
|
-
...
|
|
734
|
-
children:
|
|
242
|
+
...f,
|
|
243
|
+
children: t == null ? void 0 : t.map((e, c) => /* @__PURE__ */ l(
|
|
735
244
|
"div",
|
|
736
245
|
{
|
|
737
246
|
className: "section__card",
|
|
738
|
-
onClick: () =>
|
|
247
|
+
onClick: () => h(e),
|
|
739
248
|
children: [
|
|
740
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ r(
|
|
741
250
|
"img",
|
|
742
251
|
{
|
|
743
|
-
src:
|
|
252
|
+
src: e == null ? void 0 : e.imageUrl,
|
|
744
253
|
alt: `Slide ${c + 1}`,
|
|
745
254
|
className: "section__image"
|
|
746
255
|
}
|
|
747
256
|
),
|
|
748
|
-
/* @__PURE__ */
|
|
749
|
-
/* @__PURE__ */
|
|
750
|
-
(
|
|
751
|
-
(
|
|
257
|
+
/* @__PURE__ */ l("div", { className: "card__content", children: [
|
|
258
|
+
/* @__PURE__ */ l("div", { className: "card__text", children: [
|
|
259
|
+
(e == null ? void 0 : e.title) && /* @__PURE__ */ r("div", { className: "card__title", children: e == null ? void 0 : e.title }),
|
|
260
|
+
(e == null ? void 0 : e.title) && /* @__PURE__ */ r("div", { className: "card__description", children: e == null ? void 0 : e.description })
|
|
752
261
|
] }),
|
|
753
|
-
(
|
|
754
|
-
|
|
262
|
+
(e == null ? void 0 : e.buttonText) && /* @__PURE__ */ r(
|
|
263
|
+
w,
|
|
755
264
|
{
|
|
756
|
-
text:
|
|
265
|
+
text: e == null ? void 0 : e.buttonText,
|
|
757
266
|
className: "card__action",
|
|
758
267
|
size: "medium",
|
|
759
|
-
onClick: (
|
|
760
|
-
|
|
268
|
+
onClick: (n) => {
|
|
269
|
+
n == null || n.stopPropagation(), p(e);
|
|
761
270
|
}
|
|
762
271
|
}
|
|
763
272
|
)
|
|
@@ -769,9 +278,9 @@ const le = /* @__PURE__ */ gt(ae), ue = lt.div`
|
|
|
769
278
|
}
|
|
770
279
|
)
|
|
771
280
|
}
|
|
772
|
-
) }, `banner-section-carousel__${
|
|
281
|
+
) }, `banner-section-carousel__${s}`);
|
|
773
282
|
}
|
|
774
283
|
);
|
|
775
284
|
export {
|
|
776
|
-
|
|
285
|
+
D as default
|
|
777
286
|
};
|