@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.
- package/dist/BannerSectionCarousel.cjs +48 -2
- package/dist/BannerSectionCarousel.js +401 -330
- package/dist/BlogsSectionDetailed.cjs +4 -4
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -4
- package/dist/BlogsSectionSimple.js +1 -4
- package/dist/ContactSection.cjs +25 -6
- package/dist/ContactSection.js +3543 -992
- package/package.json +4 -2
|
@@ -1,113 +1,114 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import { P as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
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(
|
|
11
|
-
var u =
|
|
12
|
-
return
|
|
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(
|
|
15
|
-
if (
|
|
16
|
-
for (var
|
|
17
|
-
var p =
|
|
18
|
-
for (
|
|
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 (
|
|
21
|
-
return
|
|
21
|
+
for (h = d; h < w; h++) a[h] = b, b++;
|
|
22
|
+
return a;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
var _ = 3 *
|
|
25
|
-
for (
|
|
26
|
-
return
|
|
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(
|
|
29
|
-
return
|
|
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(
|
|
32
|
-
return
|
|
32
|
+
function r(l, n) {
|
|
33
|
+
return n.length > 2 * l ? 2 * l : n.length;
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
var u,
|
|
36
|
-
return
|
|
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 =
|
|
39
|
-
})(
|
|
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
|
|
43
|
-
function
|
|
44
|
-
var r = 0,
|
|
45
|
-
return i &&
|
|
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
|
|
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
|
|
52
|
+
function Ct(o, i, t) {
|
|
52
53
|
return Math.round(t / (i + (o.centerMode ? 1 : 0)));
|
|
53
54
|
}
|
|
54
|
-
O.getPartialVisibilityGutter =
|
|
55
|
+
O.getPartialVisibilityGutter = bt, O.getWidthFromDeviceType = _t, O.getItemClientSideWidth = Ct;
|
|
55
56
|
var S = {};
|
|
56
57
|
Object.defineProperty(S, "__esModule", { value: !0 });
|
|
57
|
-
var
|
|
58
|
-
function
|
|
58
|
+
var q = O;
|
|
59
|
+
function Z(o) {
|
|
59
60
|
var i = o.slidesToShow;
|
|
60
61
|
return o.totalItems < i;
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
var t, e = o.domLoaded, r = o.slidesToShow,
|
|
64
|
-
u &&
|
|
65
|
-
var p = !!(u &&
|
|
66
|
-
return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded:
|
|
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
|
|
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
|
|
73
|
+
function ht(o, i, t) {
|
|
73
74
|
var e = t || o.transform;
|
|
74
|
-
return !i.infinite && o.currentSlide === 0 ||
|
|
75
|
+
return !i.infinite && o.currentSlide === 0 || Z(o) ? e : e + o.itemWidth / 2;
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function Pt(o) {
|
|
77
78
|
return !(0 < o.currentSlide);
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function ct(o) {
|
|
80
81
|
var i = o.currentSlide, t = o.totalItems;
|
|
81
82
|
return !(i + o.slidesToShow < t);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function pt(o, i, t, e) {
|
|
84
85
|
i === void 0 && (i = 0);
|
|
85
|
-
var r = o.currentSlide,
|
|
86
|
-
if (
|
|
87
|
-
var u =
|
|
88
|
-
return
|
|
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
|
|
91
|
+
function ft(o, i) {
|
|
91
92
|
return o.rtl ? -1 * i : i;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
-
var e = i.partialVisbile, r = i.partialVisible,
|
|
95
|
-
return
|
|
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
|
|
98
|
-
var t = o.domLoaded, e = o.slidesToShow, r = o.containerWidth,
|
|
99
|
-
return i.ssr && i.deviceType && !u && Object.keys(
|
|
100
|
-
var c =
|
|
101
|
-
|
|
102
|
-
}), u && Object.keys(
|
|
103
|
-
var c =
|
|
104
|
-
p && window.innerWidth >= g && window.innerWidth <= f && (
|
|
105
|
-
}),
|
|
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 =
|
|
108
|
-
var
|
|
109
|
-
Object.defineProperty(
|
|
110
|
-
var
|
|
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
|
-
|
|
120
|
-
var
|
|
120
|
+
H.default = Rt;
|
|
121
|
+
var mt = {};
|
|
121
122
|
(function(o) {
|
|
122
123
|
function i(t, e) {
|
|
123
|
-
var r = e.partialVisbile,
|
|
124
|
-
if ((r ||
|
|
125
|
-
if (!
|
|
126
|
-
if (
|
|
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
|
-
})(
|
|
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
|
|
142
|
-
function
|
|
133
|
+
var Ot = S;
|
|
134
|
+
function kt(o, i, t) {
|
|
143
135
|
t === void 0 && (t = 0);
|
|
144
|
-
var e, r,
|
|
145
|
-
return 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.
|
|
148
|
-
var
|
|
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,
|
|
151
|
-
var
|
|
152
|
-
if (
|
|
153
|
-
|
|
154
|
-
var y = Math.abs(-
|
|
155
|
-
(Math.abs(
|
|
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 && (
|
|
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
|
-
})(
|
|
161
|
+
})(vt);
|
|
161
162
|
Object.defineProperty(m, "__esModule", { value: !0 });
|
|
162
|
-
var
|
|
163
|
-
m.getOriginalCounterPart =
|
|
164
|
-
var
|
|
165
|
-
m.getWidthFromDeviceType =
|
|
166
|
-
var
|
|
167
|
-
m.getInitialState =
|
|
168
|
-
var
|
|
169
|
-
m.throttle =
|
|
170
|
-
var
|
|
171
|
-
m.throwError =
|
|
172
|
-
var
|
|
173
|
-
m.populateNextSlides =
|
|
174
|
-
var
|
|
175
|
-
m.populatePreviousSlides =
|
|
176
|
-
var
|
|
177
|
-
m.populateSlidesOnMouseTouchMove =
|
|
178
|
-
var
|
|
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
|
|
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(
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
Object.defineProperty(z, "__esModule", { value: !0 });
|
|
195
|
+
var $t = k;
|
|
196
|
+
function zt(o) {
|
|
196
197
|
return "clientY" in o;
|
|
197
198
|
}
|
|
198
|
-
|
|
199
|
-
var
|
|
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
|
|
204
|
-
}(
|
|
205
|
-
|
|
206
|
-
var
|
|
207
|
-
Object.defineProperty(
|
|
208
|
-
var
|
|
209
|
-
function
|
|
210
|
-
var r = {},
|
|
211
|
-
return Array(o).fill(0).forEach(function(
|
|
212
|
-
var
|
|
213
|
-
if (
|
|
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[
|
|
216
|
-
r[
|
|
216
|
+
var u = r[n - 1] + s;
|
|
217
|
+
r[n] = u;
|
|
217
218
|
}
|
|
218
219
|
}), r;
|
|
219
220
|
}
|
|
220
|
-
|
|
221
|
-
Object.defineProperty(
|
|
222
|
-
var D =
|
|
223
|
-
var i = o.props, t = o.state, e = o.goToSlide, r = o.getState,
|
|
224
|
-
if (!
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
var g =
|
|
228
|
-
return D.createElement("ul", { className: "react-multi-carousel-dot-list " +
|
|
229
|
-
var
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
var R = w[
|
|
233
|
-
|
|
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
|
|
236
|
-
|
|
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
|
|
239
|
-
return e(
|
|
240
|
-
}, carouselState: r() }) : D.createElement("li", { "data-index": y, key: y, className: "react-multi-carousel-dot " + (
|
|
241
|
-
return e(
|
|
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
|
-
|
|
246
|
-
var
|
|
247
|
-
Object.defineProperty(
|
|
248
|
-
var
|
|
249
|
-
var i = o.customLeftArrow, t = o.getState, e = o.previous, r = o.disabled,
|
|
250
|
-
if (i) return
|
|
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:
|
|
253
|
-
var
|
|
254
|
-
return
|
|
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
|
-
|
|
259
|
-
var
|
|
260
|
-
var i = o.customRightArrow, t = o.getState, e = o.next, r = o.disabled,
|
|
261
|
-
if (i) return
|
|
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:
|
|
264
|
-
var
|
|
265
|
-
return
|
|
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
|
-
|
|
270
|
-
var
|
|
271
|
-
Object.defineProperty(
|
|
272
|
-
var
|
|
273
|
-
var i = o.props, t = o.state, e = o.goToSlide, r = o.clones,
|
|
274
|
-
return p.shouldRenderAtAll ? (c && console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),
|
|
275
|
-
return
|
|
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":
|
|
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
|
-
|
|
281
|
-
var
|
|
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
|
|
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(
|
|
297
|
-
var T =
|
|
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 ||
|
|
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
|
|
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
|
|
313
|
-
this.listRef && this.listRef.current && (this.setAnimationDirectly(e), this.listRef.current.style.transform = "translate3d(" + (
|
|
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 ||
|
|
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,
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
var
|
|
322
|
-
this.setState({ totalItems: u.length, currentSlide: r && !
|
|
323
|
-
|
|
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,
|
|
327
|
-
Object.keys(
|
|
328
|
-
var
|
|
329
|
-
window.screen && window.screen.width &&
|
|
330
|
-
var p = Math.min.apply(Math,
|
|
331
|
-
c <= p && p <=
|
|
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
|
|
335
|
+
var s = this;
|
|
335
336
|
if (this.containerRef && this.containerRef.current) {
|
|
336
|
-
var
|
|
337
|
-
this.setState({ containerWidth:
|
|
338
|
-
|
|
339
|
-
}), e && this.correctItemsPosition(
|
|
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
|
|
344
|
-
r && this.setTransformDirectly(
|
|
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,
|
|
350
|
-
if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !==
|
|
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 ||
|
|
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 ||
|
|
355
|
-
var c = this.props.transitionDuration ||
|
|
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,
|
|
362
|
-
this.state.domLoaded && r && (
|
|
363
|
-
e.setState({ transform:
|
|
364
|
-
}, this.props.transitionDuration ||
|
|
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,
|
|
369
|
+
var r = this.props, s = r.afterChange, l = r.beforeChange;
|
|
369
370
|
if (!v.notEnoughChildren(this.state)) {
|
|
370
|
-
var
|
|
371
|
-
|
|
372
|
-
typeof
|
|
373
|
-
|
|
374
|
-
}, e.props.transitionDuration ||
|
|
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,
|
|
381
|
+
var r = this.props, s = r.afterChange, l = r.beforeChange;
|
|
381
382
|
if (!v.notEnoughChildren(this.state)) {
|
|
382
|
-
var
|
|
383
|
-
if (
|
|
384
|
-
var
|
|
385
|
-
typeof
|
|
386
|
-
typeof
|
|
387
|
-
|
|
388
|
-
}, e.props.transitionDuration ||
|
|
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:
|
|
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,
|
|
404
|
-
this.onMove = !0, this.initialX = r, this.initialY =
|
|
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,
|
|
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(
|
|
411
|
-
var
|
|
412
|
-
u && (this.direction = u, c &&
|
|
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
|
|
421
|
-
this.next(
|
|
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 ? (
|
|
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,
|
|
427
|
-
return 0 <=
|
|
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
|
|
446
|
+
var s = this;
|
|
446
447
|
if (r === void 0 && (r = !0), !this.isInThrottle) {
|
|
447
|
-
var
|
|
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: -
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
},
|
|
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,
|
|
458
|
-
return T.createElement(
|
|
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:
|
|
461
|
+
}, previous: this.previous, disabled: t, rtl: l });
|
|
461
462
|
}, i.prototype.renderRightArrow = function(t) {
|
|
462
|
-
var e = this, r = this.props,
|
|
463
|
-
return T.createElement(
|
|
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:
|
|
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,
|
|
473
|
-
return t.goToSlide(r,
|
|
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(
|
|
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(
|
|
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,
|
|
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),
|
|
491
|
-
return T.createElement(T.Fragment, null, T.createElement("div", { className: "react-multi-carousel-list " +
|
|
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
|
-
|
|
495
|
-
Object.defineProperty(
|
|
496
|
-
var
|
|
497
|
-
|
|
498
|
-
var
|
|
499
|
-
const
|
|
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
|
-
`,
|
|
669
|
-
({
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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
|
-
},
|
|
689
|
-
return /* @__PURE__ */
|
|
690
|
-
|
|
749
|
+
}, n = wt();
|
|
750
|
+
return /* @__PURE__ */ C(he, { ref: s, children: /* @__PURE__ */ C(
|
|
751
|
+
de,
|
|
691
752
|
{
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
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
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
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
|
-
|
|
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__${
|
|
809
|
+
) }, `banner-section-carousel__${n}`);
|
|
741
810
|
}
|
|
742
811
|
);
|
|
743
|
-
|
|
744
|
-
items:
|
|
745
|
-
|
|
746
|
-
|
|
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
|
-
|
|
820
|
+
ce as default
|
|
750
821
|
};
|