@lanaco/lnc-react-ui 4.0.169 → 4.0.171
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/Accordion.js +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +9 -48
- package/dist/BannerSectionCarousel.js +208 -249
- package/dist/BannerSectionSimple.js +1 -1
- package/dist/BannerSectionWithList.js +1 -1
- package/dist/BlogCardsSponsoredSection.cjs +8 -8
- package/dist/BlogCardsSponsoredSection.js +67 -68
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +22 -30
- package/dist/BlogExploreSection.js +9 -9
- package/dist/BlogListSection.cjs +11 -5
- package/dist/BlogListSection.js +187 -123
- package/dist/BlogProductCardsSection.cjs +1 -1
- package/dist/BlogProductCardsSection.js +28 -37
- package/dist/BlogShopCardsSection.cjs +1 -1
- package/dist/BlogShopCardsSection.js +40 -67
- package/dist/BlogSingleSection.cjs +16 -1
- package/dist/BlogSingleSection.js +47 -45
- package/dist/BlogsSectionDetailed.cjs +8 -27
- package/dist/BlogsSectionDetailed.js +111 -159
- package/dist/BlogsSectionLarge.cjs +19 -4
- package/dist/BlogsSectionLarge.js +73 -37
- package/dist/BlogsSectionSimple.cjs +9 -9
- package/dist/BlogsSectionSimple.js +81 -107
- package/dist/BlogsSectionSimpleCentered.cjs +25 -23
- package/dist/BlogsSectionSimpleCentered.js +103 -96
- package/dist/BlogsSectionWithFilters.cjs +31 -29
- package/dist/BlogsSectionWithFilters.js +173 -134
- package/dist/BrandHitsSection.cjs +10 -14
- package/dist/BrandHitsSection.js +93 -45
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.js +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CategorySimpleCard-Qe5QStrs.cjs +47 -0
- package/dist/CategorySimpleCard-laAY-RUT.js +70 -0
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.js +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/CustomLoanMapSection.js +1 -1
- package/dist/{CustomStyles-SyQRnjuy.js → CustomStyles-ArAVZsIj.js} +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/DecimalInput.js +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsInfinitiveSection.cjs +3 -3
- package/dist/DetailedProductsInfinitiveSection.js +35 -36
- package/dist/DetailedProductsSection.cjs +4 -4
- package/dist/DetailedProductsSection.js +62 -63
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/Dropdown.js +2 -2
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.js +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/FeedbackSection.js +1 -1
- package/dist/FieldOfInterestsMasonrySection.cjs +20 -25
- package/dist/FieldOfInterestsMasonrySection.js +228 -154
- package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +33 -24
- package/dist/FieldOfInterestsWithAvatarsCardsSection.js +178 -113
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +6 -16
- package/dist/FieldOfInterestsWithTagsCardsSection.js +89 -93
- package/dist/FileInput.js +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GeneralWithTagsCardsSection.cjs +11 -27
- package/dist/GeneralWithTagsCardsSection.js +87 -99
- package/dist/GiftCardsSection.cjs +18 -23
- package/dist/GiftCardsSection.js +146 -77
- package/dist/Icon.js +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kanban.js +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/Link.js +1 -1
- package/dist/LoanCalculatorSection.js +1 -1
- package/dist/LocationFinderSection.js +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +33 -19
- package/dist/MasonryGeneralCardsSection.js +114 -68
- package/dist/MenuItem.js +1 -1
- package/dist/Modal.js +1 -1
- package/dist/MultiSelectDropdown.js +1 -1
- package/dist/MultiSelectDropdownLookup.js +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/NotificationContainer.js +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +5 -5
- package/dist/OverlayGeneralCardsSection.js +54 -40
- package/dist/PasswordInput.js +1 -1
- package/dist/PopoverContent.js +1 -1
- package/dist/ProductsWithBannerSection.cjs +15 -20
- package/dist/ProductsWithBannerSection.js +176 -104
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +6 -6
- package/dist/QuattroCardsSection.js +42 -34
- package/dist/QuizSection.js +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +24 -30
- package/dist/ReviewsSection.js +170 -137
- package/dist/SalesCampaignsSection.cjs +46 -130
- package/dist/SalesCampaignsSection.js +354 -433
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +18 -5
- package/dist/ShopCardsSection.js +145 -88
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +10 -4
- package/dist/SimpleCategoriesSection.js +79 -51
- package/dist/SimpleProductsSection.cjs +16 -3
- package/dist/SimpleProductsSection.js +172 -70
- package/dist/Spinner.js +1 -1
- package/dist/StatsSection.js +4 -4
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.js +1 -1
- package/dist/TableView.js +1 -1
- package/dist/TextAreaInput.js +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/TimeInput.js +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +2 -2
- package/dist/UrgentSaleProductsSection.js +62 -61
- package/dist/index-BAJkosVg.cjs +11 -0
- package/dist/{index-dXWRbvgi.js → index-BMOLVn8O.js} +1 -1
- package/dist/{skeleton-5mO22c5S.js → index-BPntOicE.js} +55 -107
- package/dist/index-BSpdEGFd.js +42 -0
- package/dist/{index-CF3HhgvN.js → index-BbltNcou.js} +1 -1
- package/dist/index-BhBRZf4M.js +742 -0
- package/dist/index-BovNbKxB.js +54 -0
- package/dist/{skeleton-Ccd6EDeB.cjs → index-C5r__0lD.cjs} +4 -47
- package/dist/{index-DicTpiG0.cjs → index-CfT9e5O9.cjs} +2 -10
- package/dist/index-D-3I_Ppj.cjs +16 -0
- package/dist/index-D0IYt1s3.cjs +20 -0
- package/dist/{skeleton-CQPwIEP0.js → index-D69SKc-n.cjs} +7 -37
- package/dist/{index-C0SKNFzP.js → index-D8KPbcUf.js} +1 -1
- package/dist/index-DFdPWO4O.js +133 -0
- package/dist/index-DFyV_EK2.cjs +305 -0
- package/dist/index-DxwIu0Wn.js +84 -0
- package/dist/{index-y6sKgrZC.js → index-XYs5Cuh5.js} +21 -30
- package/dist/index.js +1 -1
- package/dist/style-BAcV7F53.cjs +64 -0
- package/dist/style-CXMUA6cI.js +74 -0
- package/dist/{style-DKAOBWn3.js → style-D3pIrH3v.js} +1 -1
- package/dist/{utils-BdsZgOUE.js → utils-DHfRApMf.js} +6 -6
- package/package.json +1 -1
- package/dist/index-1Dm1i6WK.js +0 -52
- package/dist/index-BGTtoLxz.cjs +0 -1
- package/dist/skeleton-BdbB-LdT.cjs +0 -97
- package/dist/suspense-categories-card-simple-BGj475Ca.js +0 -101
- package/dist/suspense-categories-card-simple-CjGtzfzp.cjs +0 -55
- package/dist/suspense-large-BMO7JH52.js +0 -26
- package/dist/suspense-large-CFmcSzX-.cjs +0 -1
- package/dist/suspense-product-card-detailed-CxiFuUOT.js +0 -653
- package/dist/suspense-product-card-detailed-IR4sh-l4.cjs +0 -330
- package/dist/suspense-product-card-simple-DJ8UYolb.cjs +0 -1
- package/dist/suspense-product-card-simple-ziy0XcLp.js +0 -26
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { c as
|
|
4
|
-
import { P as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { jsx as C, Fragment as lt, jsxs as X } from "react/jsx-runtime";
|
|
2
|
+
import A, { Suspense as vt, forwardRef as gt } from "react";
|
|
3
|
+
import { c as G, g as yt } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
4
|
+
import { P as D } from "./index-CblbdqjE.js";
|
|
5
|
+
import St from "./Button.js";
|
|
6
|
+
import { u as Tt } from "./useDetectMobile-Bkvj0VMa.js";
|
|
7
|
+
import { s as ut } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
|
+
import { S as wt, b as bt } from "./style-CXMUA6cI.js";
|
|
9
|
+
import { M as _t } from "./consts-BuFChS64.js";
|
|
10
|
+
var Z = {}, q = {}, m = {}, F = {};
|
|
10
11
|
(function(o) {
|
|
11
12
|
function i(l, n, a) {
|
|
12
|
-
var u = n.slidesToShow,
|
|
13
|
-
return a.length > 2 * u ? l + 2 * u :
|
|
13
|
+
var u = n.slidesToShow, h = n.currentSlide;
|
|
14
|
+
return a.length > 2 * u ? l + 2 * u : h >= a.length ? a.length + l : l;
|
|
14
15
|
}
|
|
15
16
|
function t(l, n) {
|
|
16
17
|
if (n.length > 2 * l) {
|
|
17
|
-
for (var a = {}, u = n.length - 2 * l,
|
|
18
|
-
var p = n.length +
|
|
19
|
-
for (
|
|
18
|
+
for (var a = {}, u = n.length - 2 * l, h = n.length - u, c = u, d = 0; d < h; d++) a[d] = c, c++;
|
|
19
|
+
var p = n.length + h, f = p + n.slice(0, 2 * l).length, g = 0;
|
|
20
|
+
for (d = p; d <= f; d++) a[d] = g, g++;
|
|
20
21
|
var w = p, b = 0;
|
|
21
|
-
for (
|
|
22
|
+
for (d = h; d < w; d++) a[d] = b, b++;
|
|
22
23
|
return a;
|
|
23
24
|
}
|
|
24
25
|
a = {};
|
|
25
26
|
var _ = 3 * n.length, y = 0;
|
|
26
|
-
for (
|
|
27
|
+
for (d = 0; d < _; d++) a[d] = y, ++y === n.length && (y = 0);
|
|
27
28
|
return a;
|
|
28
29
|
}
|
|
29
30
|
function e(l, n) {
|
|
@@ -33,82 +34,82 @@ var J = {}, Q = {}, m = {}, $ = {};
|
|
|
33
34
|
return n.length > 2 * l ? 2 * l : n.length;
|
|
34
35
|
}
|
|
35
36
|
function s(l, n, a) {
|
|
36
|
-
var u,
|
|
37
|
-
return n.length < c ? (g = f = 0, w = u = !1) : n.length > 2 * c ? ((u =
|
|
37
|
+
var u, h = l.currentSlide, c = l.slidesToShow, d = l.itemWidth, p = l.totalItems, f = 0, g = 0, w = h === 0, b = n.length - (n.length - 2 * c);
|
|
38
|
+
return n.length < c ? (g = f = 0, w = u = !1) : n.length > 2 * c ? ((u = h >= b + n.length) && (g = -d * (f = h - n.length)), w && (g = -d * (f = b + (n.length - 2 * c)))) : ((u = h >= 2 * n.length) && (g = -d * (f = h - n.length)), w && (g = a.showDots ? -d * (f = n.length) : -d * (f = p / 3))), { isReachingTheEnd: u, isReachingTheStart: w, nextSlide: f, nextPosition: g };
|
|
38
39
|
}
|
|
39
40
|
Object.defineProperty(o, "__esModule", { value: !0 }), o.getOriginalCounterPart = i, o.getOriginalIndexLookupTableByClones = t, o.getClones = e, o.getInitialSlideInInfiniteMode = r, o.checkClonesPosition = s;
|
|
40
|
-
})(
|
|
41
|
+
})(F);
|
|
41
42
|
var O = {};
|
|
42
43
|
Object.defineProperty(O, "__esModule", { value: !0 });
|
|
43
|
-
var
|
|
44
|
-
function
|
|
44
|
+
var rt = !1;
|
|
45
|
+
function Ct(o, i, t, e) {
|
|
45
46
|
var r = 0, s = e || t;
|
|
46
|
-
return i && s && (!
|
|
47
|
+
return i && s && (!rt && process.env.NODE_ENV !== "production" && o[s].paritialVisibilityGutter && (rt = !0, console.warn("You appear to be using paritialVisibilityGutter instead of partialVisibilityGutter which will be moved to partialVisibilityGutter in the future completely")), r = o[s].partialVisibilityGutter || o[s].paritialVisibilityGutter), r;
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function It(o, i) {
|
|
49
50
|
var t;
|
|
50
51
|
return i[o] && (t = (100 / i[o].items).toFixed(1)), t;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function Mt(o, i, t) {
|
|
53
54
|
return Math.round(t / (i + (o.centerMode ? 1 : 0)));
|
|
54
55
|
}
|
|
55
|
-
O.getPartialVisibilityGutter =
|
|
56
|
+
O.getPartialVisibilityGutter = Ct, O.getWidthFromDeviceType = It, O.getItemClientSideWidth = Mt;
|
|
56
57
|
var S = {};
|
|
57
58
|
Object.defineProperty(S, "__esModule", { value: !0 });
|
|
58
|
-
var
|
|
59
|
-
function
|
|
59
|
+
var K = O;
|
|
60
|
+
function J(o) {
|
|
60
61
|
var i = o.slidesToShow;
|
|
61
62
|
return o.totalItems < i;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
-
var t, e = o.domLoaded, r = o.slidesToShow, s = o.containerWidth, l = o.itemWidth, n = i.deviceType, a = i.responsive, u = i.ssr,
|
|
65
|
-
u && n && !
|
|
66
|
-
var p = !!(u && n && !
|
|
67
|
-
return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded:
|
|
64
|
+
function Pt(o, i) {
|
|
65
|
+
var t, e = o.domLoaded, r = o.slidesToShow, s = o.containerWidth, l = o.itemWidth, n = i.deviceType, a = i.responsive, u = i.ssr, h = i.partialVisbile, c = i.partialVisible, d = !!(e && r && s && l);
|
|
66
|
+
u && n && !d && (t = K.getWidthFromDeviceType(n, a));
|
|
67
|
+
var p = !!(u && n && !d && t);
|
|
68
|
+
return { shouldRenderOnSSR: p, flexBisis: t, domFullyLoaded: d, partialVisibilityGutter: K.getPartialVisibilityGutter(a, h || c, n, o.deviceType), shouldRenderAtAll: p || d };
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function Et(o, i) {
|
|
70
71
|
var t = i.currentSlide, e = i.slidesToShow;
|
|
71
72
|
return t <= o && o < t + e;
|
|
72
73
|
}
|
|
73
74
|
function ht(o, i, t) {
|
|
74
75
|
var e = t || o.transform;
|
|
75
|
-
return !i.infinite && o.currentSlide === 0 ||
|
|
76
|
+
return !i.infinite && o.currentSlide === 0 || J(o) ? e : e + o.itemWidth / 2;
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function Rt(o) {
|
|
78
79
|
return !(0 < o.currentSlide);
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
+
function dt(o) {
|
|
81
82
|
var i = o.currentSlide, t = o.totalItems;
|
|
82
83
|
return !(i + o.slidesToShow < t);
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function ct(o, i, t, e) {
|
|
85
86
|
i === void 0 && (i = 0);
|
|
86
|
-
var r = o.currentSlide, s = o.slidesToShow, l =
|
|
87
|
-
if (
|
|
87
|
+
var r = o.currentSlide, s = o.slidesToShow, l = dt(o), n = !t.infinite && l, a = e || o.transform;
|
|
88
|
+
if (J(o)) return a;
|
|
88
89
|
var u = a + r * i;
|
|
89
90
|
return n ? u + (o.containerWidth - (o.itemWidth - i) * s) : u;
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
+
function pt(o, i) {
|
|
92
93
|
return o.rtl ? -1 * i : i;
|
|
93
94
|
}
|
|
94
95
|
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 =
|
|
96
|
-
return
|
|
96
|
+
var e = i.partialVisbile, r = i.partialVisible, s = i.responsive, l = i.deviceType, n = i.centerMode, a = t || o.transform, u = K.getPartialVisibilityGutter(s, e || r, l, o.deviceType);
|
|
97
|
+
return pt(i, r || e ? ct(o, u, i, t) : n ? ht(o, i, t) : a);
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function Ot(o, i) {
|
|
99
100
|
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(
|
|
101
|
-
var c = n[
|
|
102
|
-
l ===
|
|
103
|
-
}), u && Object.keys(n).forEach(function(
|
|
104
|
-
var c = n[
|
|
101
|
+
return i.ssr && i.deviceType && !u && Object.keys(n).forEach(function(h) {
|
|
102
|
+
var c = n[h].slidesToSlide;
|
|
103
|
+
l === h && c && (a = c);
|
|
104
|
+
}), u && Object.keys(n).forEach(function(h) {
|
|
105
|
+
var c = n[h], d = c.breakpoint, p = c.slidesToSlide, f = d.max, g = d.min;
|
|
105
106
|
p && window.innerWidth >= g && window.innerWidth <= f && (a = p);
|
|
106
107
|
}), a;
|
|
107
108
|
}
|
|
108
|
-
S.notEnoughChildren =
|
|
109
|
-
var
|
|
110
|
-
Object.defineProperty(
|
|
111
|
-
var
|
|
109
|
+
S.notEnoughChildren = J, S.getInitialState = Pt, S.getIfSlideIsVisbile = Et, S.getTransformForCenterMode = ht, S.isInLeftEnd = Rt, S.isInRightEnd = dt, S.getTransformForPartialVsibile = ct, S.parsePosition = pt, S.getTransform = xt, S.getSlidesToSlide = Ot;
|
|
110
|
+
var Q = {};
|
|
111
|
+
Object.defineProperty(Q, "__esModule", { value: !0 });
|
|
112
|
+
var At = function(o, i, t) {
|
|
112
113
|
var e;
|
|
113
114
|
return function() {
|
|
114
115
|
var r = arguments;
|
|
@@ -117,8 +118,8 @@ var Rt = function(o, i, t) {
|
|
|
117
118
|
}, i));
|
|
118
119
|
};
|
|
119
120
|
};
|
|
120
|
-
|
|
121
|
-
var
|
|
121
|
+
Q.default = At;
|
|
122
|
+
var ft = {};
|
|
122
123
|
(function(o) {
|
|
123
124
|
function i(t, e) {
|
|
124
125
|
var r = e.partialVisbile, s = e.partialVisible, l = e.centerMode, n = e.ssr, a = e.responsive;
|
|
@@ -127,56 +128,56 @@ var mt = {};
|
|
|
127
128
|
if (a && typeof a != "object") throw new Error("responsive prop must be an object");
|
|
128
129
|
}
|
|
129
130
|
Object.defineProperty(o, "__esModule", { value: !0 }), o.default = i;
|
|
130
|
-
})(
|
|
131
|
-
var
|
|
132
|
-
Object.defineProperty(
|
|
133
|
-
var
|
|
134
|
-
function
|
|
131
|
+
})(ft);
|
|
132
|
+
var H = {};
|
|
133
|
+
Object.defineProperty(H, "__esModule", { value: !0 });
|
|
134
|
+
var Wt = S;
|
|
135
|
+
function Dt(o, i, t) {
|
|
135
136
|
t === void 0 && (t = 0);
|
|
136
|
-
var e, r, s = o.slidesToShow, l = o.currentSlide, n = o.itemWidth, a = o.totalItems, u =
|
|
137
|
-
return r =
|
|
137
|
+
var e, r, s = o.slidesToShow, l = o.currentSlide, n = o.itemWidth, a = o.totalItems, u = Wt.getSlidesToSlide(o, i), h = l + 1 + t + s + (0 < t ? 0 : u);
|
|
138
|
+
return r = h <= a ? -n * (e = l + t + (0 < t ? 0 : u)) : a < h && l !== a - s ? -n * (e = a - s) : e = void 0, { nextSlides: e, nextPosition: r };
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
-
var
|
|
141
|
-
Object.defineProperty(
|
|
142
|
-
var
|
|
143
|
-
function
|
|
140
|
+
H.populateNextSlides = Dt;
|
|
141
|
+
var tt = {};
|
|
142
|
+
Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
143
|
+
var Lt = A, kt = S, Vt = S;
|
|
144
|
+
function jt(o, i, t) {
|
|
144
145
|
t === void 0 && (t = 0);
|
|
145
|
-
var e, r, s = o.currentSlide, l = o.itemWidth, n = o.slidesToShow, a = i.children, u = i.showDots,
|
|
146
|
-
return r = 0 <=
|
|
146
|
+
var e, r, s = o.currentSlide, l = o.itemWidth, n = o.slidesToShow, a = i.children, u = i.showDots, h = i.infinite, c = kt.getSlidesToSlide(o, i), d = s - t - (0 < t ? 0 : c), p = (Lt.Children.toArray(a).length - n) % c;
|
|
147
|
+
return r = 0 <= d ? (e = d, u && !h && 0 < p && Vt.isInRightEnd(o) && (e = s - p), -l * e) : e = d < 0 && s !== 0 ? 0 : void 0, { nextSlides: e, nextPosition: r };
|
|
147
148
|
}
|
|
148
|
-
|
|
149
|
-
var
|
|
149
|
+
tt.populatePreviousSlides = jt;
|
|
150
|
+
var mt = {};
|
|
150
151
|
(function(o) {
|
|
151
152
|
function i(t, e, r, s, l, n) {
|
|
152
|
-
var a, u,
|
|
153
|
+
var a, u, h = t.itemWidth, c = t.slidesToShow, d = t.totalItems, p = t.currentSlide, f = e.infinite, g = !1, w = Math.round((r - s) / h), b = Math.round((s - r) / h), _ = r < l;
|
|
153
154
|
if (l < r && w <= c) {
|
|
154
155
|
a = "right";
|
|
155
|
-
var y = Math.abs(-
|
|
156
|
+
var y = Math.abs(-h * (d - c)), M = n - (s - l), I = p === d - c;
|
|
156
157
|
(Math.abs(M) <= y || I && f) && (u = M, g = !0);
|
|
157
158
|
}
|
|
158
159
|
return _ && b <= c && (a = "left", ((M = n + (l - s)) <= 0 || p === 0 && f) && (g = !0, u = M)), { direction: a, nextPosition: u, canContinue: g };
|
|
159
160
|
}
|
|
160
161
|
Object.defineProperty(o, "__esModule", { value: !0 }), o.populateSlidesOnMouseTouchMove = i;
|
|
161
|
-
})(
|
|
162
|
+
})(mt);
|
|
162
163
|
Object.defineProperty(m, "__esModule", { value: !0 });
|
|
163
|
-
var V =
|
|
164
|
+
var V = F;
|
|
164
165
|
m.getOriginalCounterPart = V.getOriginalCounterPart, m.getClones = V.getClones, m.checkClonesPosition = V.checkClonesPosition, m.getInitialSlideInInfiniteMode = V.getInitialSlideInInfiniteMode;
|
|
165
|
-
var
|
|
166
|
-
m.getWidthFromDeviceType =
|
|
167
|
-
var
|
|
168
|
-
m.getInitialState =
|
|
169
|
-
var
|
|
170
|
-
m.throttle =
|
|
171
|
-
var
|
|
172
|
-
m.throwError =
|
|
173
|
-
var Nt =
|
|
166
|
+
var U = O;
|
|
167
|
+
m.getWidthFromDeviceType = U.getWidthFromDeviceType, m.getPartialVisibilityGutter = U.getPartialVisibilityGutter, m.getItemClientSideWidth = U.getItemClientSideWidth;
|
|
168
|
+
var E = S;
|
|
169
|
+
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;
|
|
170
|
+
var Bt = Q;
|
|
171
|
+
m.throttle = Bt.default;
|
|
172
|
+
var Gt = ft;
|
|
173
|
+
m.throwError = Gt.default;
|
|
174
|
+
var Nt = H;
|
|
174
175
|
m.populateNextSlides = Nt.populateNextSlides;
|
|
175
|
-
var
|
|
176
|
-
m.populatePreviousSlides =
|
|
177
|
-
var
|
|
178
|
-
m.populateSlidesOnMouseTouchMove =
|
|
179
|
-
var
|
|
176
|
+
var Ft = tt;
|
|
177
|
+
m.populatePreviousSlides = Ft.populatePreviousSlides;
|
|
178
|
+
var $t = mt;
|
|
179
|
+
m.populateSlidesOnMouseTouchMove = $t.populateSlidesOnMouseTouchMove;
|
|
180
|
+
var $ = {}, zt = G && G.__extends || /* @__PURE__ */ function() {
|
|
180
181
|
var o = function(i, t) {
|
|
181
182
|
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
182
183
|
e.__proto__ = r;
|
|
@@ -191,26 +192,26 @@ var z = {}, Ft = B && B.__extends || /* @__PURE__ */ function() {
|
|
|
191
192
|
o(i, t), i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
192
193
|
};
|
|
193
194
|
}();
|
|
194
|
-
Object.defineProperty(
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
Object.defineProperty($, "__esModule", { value: !0 });
|
|
196
|
+
var Xt = A;
|
|
197
|
+
function Ut(o) {
|
|
197
198
|
return "clientY" in o;
|
|
198
199
|
}
|
|
199
|
-
|
|
200
|
-
var
|
|
200
|
+
$.isMouseMoveEvent = Ut;
|
|
201
|
+
var Yt = function(o) {
|
|
201
202
|
function i() {
|
|
202
203
|
return o !== null && o.apply(this, arguments) || this;
|
|
203
204
|
}
|
|
204
|
-
return
|
|
205
|
-
}(
|
|
206
|
-
|
|
207
|
-
var
|
|
208
|
-
Object.defineProperty(
|
|
209
|
-
var
|
|
210
|
-
function
|
|
211
|
-
var r = {}, s =
|
|
205
|
+
return zt(i, o), i;
|
|
206
|
+
}(Xt.Component);
|
|
207
|
+
$.default = Yt;
|
|
208
|
+
var et = {}, it = {};
|
|
209
|
+
Object.defineProperty(it, "__esModule", { value: !0 });
|
|
210
|
+
var Kt = F, Zt = S;
|
|
211
|
+
function qt(o, i, t, e) {
|
|
212
|
+
var r = {}, s = Zt.getSlidesToSlide(i, t);
|
|
212
213
|
return Array(o).fill(0).forEach(function(l, n) {
|
|
213
|
-
var a =
|
|
214
|
+
var a = Kt.getOriginalCounterPart(n, i, e);
|
|
214
215
|
if (n === 0) r[0] = a;
|
|
215
216
|
else {
|
|
216
217
|
var u = r[n - 1] + s;
|
|
@@ -218,68 +219,68 @@ function Kt(o, i, t, e) {
|
|
|
218
219
|
}
|
|
219
220
|
}), r;
|
|
220
221
|
}
|
|
221
|
-
|
|
222
|
-
Object.defineProperty(
|
|
223
|
-
var
|
|
222
|
+
it.getLookupTableForNextSlides = qt;
|
|
223
|
+
Object.defineProperty(et, "__esModule", { value: !0 });
|
|
224
|
+
var L = A, Jt = F, Qt = it, nt = S, Ht = function(o) {
|
|
224
225
|
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 ||
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
-
var g =
|
|
229
|
-
return
|
|
226
|
+
if (!s || nt.notEnoughChildren(t)) return null;
|
|
227
|
+
var h, c = t.currentSlide, d = t.slidesToShow, p = nt.getSlidesToSlide(t, i), f = L.Children.toArray(u);
|
|
228
|
+
h = a ? Math.ceil(f.length / p) : Math.ceil((f.length - d) / p) + 1;
|
|
229
|
+
var g = Qt.getLookupTableForNextSlides(h, t, i, f), w = Jt.getOriginalIndexLookupTableByClones(d, f), b = w[c];
|
|
230
|
+
return L.createElement("ul", { className: "react-multi-carousel-dot-list " + n }, Array(h).fill(0).map(function(_, y) {
|
|
230
231
|
var M, I;
|
|
231
232
|
if (a) {
|
|
232
233
|
I = g[y];
|
|
233
|
-
var
|
|
234
|
-
M = b ===
|
|
234
|
+
var x = w[I];
|
|
235
|
+
M = b === x || x <= b && b < x + p;
|
|
235
236
|
} else {
|
|
236
|
-
var
|
|
237
|
-
M = (I =
|
|
237
|
+
var W = f.length - d, k = y * p;
|
|
238
|
+
M = (I = W < k ? W : k) === c || I < c && c < I + p && c < f.length - d;
|
|
238
239
|
}
|
|
239
|
-
return l ?
|
|
240
|
+
return l ? L.cloneElement(l, { index: y, active: M, key: y, onClick: function() {
|
|
240
241
|
return e(I);
|
|
241
|
-
}, carouselState: r() }) :
|
|
242
|
+
}, carouselState: r() }) : L.createElement("li", { "data-index": y, key: y, className: "react-multi-carousel-dot " + (M ? "react-multi-carousel-dot--active" : "") }, L.createElement("button", { "aria-label": "Go to slide " + (y + 1), onClick: function() {
|
|
242
243
|
return e(I);
|
|
243
244
|
} }));
|
|
244
245
|
}));
|
|
245
246
|
};
|
|
246
|
-
|
|
247
|
-
var
|
|
248
|
-
Object.defineProperty(
|
|
249
|
-
var
|
|
247
|
+
et.default = Ht;
|
|
248
|
+
var z = {};
|
|
249
|
+
Object.defineProperty(z, "__esModule", { value: !0 });
|
|
250
|
+
var N = A, te = function(o) {
|
|
250
251
|
var i = o.customLeftArrow, t = o.getState, e = o.previous, r = o.disabled, s = o.rtl;
|
|
251
|
-
if (i) return
|
|
252
|
+
if (i) return N.cloneElement(i, { onClick: function() {
|
|
252
253
|
return e();
|
|
253
254
|
}, carouselState: t(), disabled: r, rtl: s });
|
|
254
255
|
var l = s ? "rtl" : "";
|
|
255
|
-
return
|
|
256
|
+
return N.createElement("button", { "aria-label": "Go to previous slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--left " + l, onClick: function() {
|
|
256
257
|
return e();
|
|
257
258
|
}, type: "button", disabled: r });
|
|
258
259
|
};
|
|
259
|
-
|
|
260
|
-
var
|
|
260
|
+
z.LeftArrow = te;
|
|
261
|
+
var ee = function(o) {
|
|
261
262
|
var i = o.customRightArrow, t = o.getState, e = o.next, r = o.disabled, s = o.rtl;
|
|
262
|
-
if (i) return
|
|
263
|
+
if (i) return N.cloneElement(i, { onClick: function() {
|
|
263
264
|
return e();
|
|
264
265
|
}, carouselState: t(), disabled: r, rtl: s });
|
|
265
266
|
var l = s ? "rtl" : "";
|
|
266
|
-
return
|
|
267
|
+
return N.createElement("button", { "aria-label": "Go to next slide", className: "react-multiple-carousel__arrow react-multiple-carousel__arrow--right " + l, onClick: function() {
|
|
267
268
|
return e();
|
|
268
269
|
}, type: "button", disabled: r });
|
|
269
270
|
};
|
|
270
|
-
|
|
271
|
-
var
|
|
272
|
-
Object.defineProperty(
|
|
273
|
-
var j =
|
|
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,
|
|
271
|
+
z.RightArrow = ee;
|
|
272
|
+
var ot = {};
|
|
273
|
+
Object.defineProperty(ot, "__esModule", { value: !0 });
|
|
274
|
+
var j = A, Y = m, ie = function(o) {
|
|
275
|
+
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, h = i.itemAriaLabel, c = i.partialVisbile, d = i.partialVisible, p = Y.getInitialState(t, i), f = p.flexBisis, g = p.shouldRenderOnSSR, w = p.domFullyLoaded, b = p.partialVisibilityGutter;
|
|
275
276
|
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
277
|
return j.createElement("li", { key: y, "data-index": y, onClick: function() {
|
|
277
278
|
i.focusOnSelect && e(y);
|
|
278
|
-
}, "aria-hidden":
|
|
279
|
+
}, "aria-hidden": Y.getIfSlideIsVisbile(y, t) ? "false" : "true", "aria-label": h || (_.props.ariaLabel ? _.props.ariaLabel : null), style: { flex: g ? "1 0 " + f + "%" : "auto", position: "relative", width: w ? ((c || d) && b && !s ? l - b : l) + "px" : "auto" }, className: "react-multi-carousel-item " + (Y.getIfSlideIsVisbile(y, t) ? "react-multi-carousel-item--active" : "") + " " + u }, _);
|
|
279
280
|
}))) : null;
|
|
280
281
|
};
|
|
281
|
-
|
|
282
|
-
var
|
|
282
|
+
ot.default = ie;
|
|
283
|
+
var oe = G && G.__extends || /* @__PURE__ */ function() {
|
|
283
284
|
var o = function(i, t) {
|
|
284
285
|
return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
|
285
286
|
e.__proto__ = r;
|
|
@@ -294,13 +295,13 @@ var ee = B && B.__extends || /* @__PURE__ */ function() {
|
|
|
294
295
|
o(i, t), i.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
295
296
|
};
|
|
296
297
|
}();
|
|
297
|
-
Object.defineProperty(
|
|
298
|
-
var T =
|
|
298
|
+
Object.defineProperty(q, "__esModule", { value: !0 });
|
|
299
|
+
var T = A, v = m, R = $, re = et, st = z, ne = ot, B = S, P = 400, at = "transform 400ms ease-in-out", se = function(o) {
|
|
299
300
|
function i(t) {
|
|
300
301
|
var e = o.call(this, t) || this;
|
|
301
302
|
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
|
}
|
|
303
|
-
return
|
|
304
|
+
return oe(i, o), i.prototype.resetTotalItems = function() {
|
|
304
305
|
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
306
|
this.setState({ totalItems: e, currentSlide: r }, function() {
|
|
306
307
|
t.setContainerAndItemWidth(t.state.slidesToShow, !0);
|
|
@@ -310,26 +311,26 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
310
311
|
}, i.prototype.setTransformDirectly = function(t, e) {
|
|
311
312
|
var r = this.props.additionalTransfrom;
|
|
312
313
|
this.transformPlaceHolder = t;
|
|
313
|
-
var s =
|
|
314
|
+
var s = B.getTransform(this.state, this.props, this.transformPlaceHolder);
|
|
314
315
|
this.listRef && this.listRef.current && (this.setAnimationDirectly(e), this.listRef.current.style.transform = "translate3d(" + (s + r) + "px,0,0)");
|
|
315
316
|
}, i.prototype.setAnimationDirectly = function(t) {
|
|
316
|
-
this.listRef && this.listRef.current && (this.listRef.current.style.transition = t ? this.props.customTransition ||
|
|
317
|
+
this.listRef && this.listRef.current && (this.listRef.current.style.transition = t ? this.props.customTransition || at : "none");
|
|
317
318
|
}, i.prototype.componentDidMount = function() {
|
|
318
319
|
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
320
|
}, i.prototype.setClones = function(t, e, r, s) {
|
|
320
321
|
var l = this;
|
|
321
322
|
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),
|
|
323
|
-
this.setState({ totalItems: u.length, currentSlide: r && !s ?
|
|
323
|
+
var n = T.Children.toArray(this.props.children), a = v.getInitialSlideInInfiniteMode(t || this.state.slidesToShow, n), u = v.getClones(this.state.slidesToShow, n), h = n.length < this.state.slidesToShow ? 0 : this.state.currentSlide;
|
|
324
|
+
this.setState({ totalItems: u.length, currentSlide: r && !s ? h : a }, function() {
|
|
324
325
|
l.correctItemsPosition(e || l.state.itemWidth);
|
|
325
326
|
});
|
|
326
327
|
}, i.prototype.setItemsToShow = function(t, e) {
|
|
327
328
|
var r = this, s = this.props.responsive;
|
|
328
329
|
Object.keys(s).forEach(function(l) {
|
|
329
|
-
var n = s[l], a = n.breakpoint, u = n.items,
|
|
330
|
-
window.screen && window.screen.width &&
|
|
331
|
-
var p = Math.min.apply(Math,
|
|
332
|
-
c <= p && p <=
|
|
330
|
+
var n = s[l], a = n.breakpoint, u = n.items, h = a.max, c = a.min, d = [window.innerWidth];
|
|
331
|
+
window.screen && window.screen.width && d.push(window.screen.width);
|
|
332
|
+
var p = Math.min.apply(Math, d);
|
|
333
|
+
c <= p && p <= h && (r.setState({ slidesToShow: u, deviceType: l }), r.setContainerAndItemWidth(u, t, e));
|
|
333
334
|
});
|
|
334
335
|
}, i.prototype.setContainerAndItemWidth = function(t, e, r) {
|
|
335
336
|
var s = this;
|
|
@@ -347,31 +348,31 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
347
348
|
var e;
|
|
348
349
|
e = !!this.props.infinite && (typeof t != "boolean" || !t), this.setItemsToShow(e);
|
|
349
350
|
}, i.prototype.componentDidUpdate = function(t, e) {
|
|
350
|
-
var r = this, s = t.keyBoardControl, l = t.autoPlay, n = t.children, a = e.containerWidth, u = e.domLoaded,
|
|
351
|
+
var r = this, s = t.keyBoardControl, l = t.autoPlay, n = t.children, a = e.containerWidth, u = e.domLoaded, h = e.currentSlide;
|
|
351
352
|
if (this.containerRef && this.containerRef.current && this.containerRef.current.offsetWidth !== a && (this.itemsToShowTimeout && clearTimeout(this.itemsToShowTimeout), this.itemsToShowTimeout = setTimeout(function() {
|
|
352
353
|
r.setItemsToShow(!0);
|
|
353
354
|
}, 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() {
|
|
354
355
|
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 !==
|
|
356
|
+
}, this.props.transitionDuration || P) : this.props.infinite && this.state.currentSlide !== h && this.correctClonesPosition({ domLoaded: u }), this.transformPlaceHolder !== this.state.transform && (this.transformPlaceHolder = this.state.transform), this.props.autoPlay && this.props.rewind && !this.props.infinite && v.isInRightEnd(this.state)) {
|
|
356
357
|
var c = this.props.transitionDuration || P;
|
|
357
358
|
i.isInThrottleTimeout = setTimeout(function() {
|
|
358
359
|
r.setIsInThrottle(!1), r.resetAutoplayInterval(), r.goToSlide(0, void 0, !!r.props.rewindWithAnimation);
|
|
359
360
|
}, c + this.props.autoPlaySpeed);
|
|
360
361
|
}
|
|
361
362
|
}, i.prototype.correctClonesPosition = function(t) {
|
|
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,
|
|
363
|
+
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, h = l.nextPosition;
|
|
363
364
|
this.state.domLoaded && r && (n || a) && (this.isAnimationAllowed = !1, i.transformTimeout = setTimeout(function() {
|
|
364
|
-
e.setState({ transform:
|
|
365
|
+
e.setState({ transform: h, currentSlide: u });
|
|
365
366
|
}, this.props.transitionDuration || P));
|
|
366
367
|
}, i.prototype.next = function(t) {
|
|
367
368
|
var e = this;
|
|
368
369
|
t === void 0 && (t = 0);
|
|
369
370
|
var r = this.props, s = r.afterChange, l = r.beforeChange;
|
|
370
371
|
if (!v.notEnoughChildren(this.state)) {
|
|
371
|
-
var n = v.populateNextSlides(this.state, this.props, t), a = n.nextSlides, u = n.nextPosition,
|
|
372
|
+
var n = v.populateNextSlides(this.state, this.props, t), a = n.nextSlides, u = n.nextPosition, h = this.state.currentSlide;
|
|
372
373
|
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
374
|
typeof s == "function" && (i.afterChangeTimeout = setTimeout(function() {
|
|
374
|
-
s(
|
|
375
|
+
s(h, e.getState());
|
|
375
376
|
}, e.props.transitionDuration || P));
|
|
376
377
|
}));
|
|
377
378
|
}
|
|
@@ -382,10 +383,10 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
382
383
|
if (!v.notEnoughChildren(this.state)) {
|
|
383
384
|
var n = v.populatePreviousSlides(this.state, this.props, t), a = n.nextSlides, u = n.nextPosition;
|
|
384
385
|
if (a !== void 0 && u !== void 0) {
|
|
385
|
-
var
|
|
386
|
+
var h = this.state.currentSlide;
|
|
386
387
|
typeof l == "function" && l(a, this.getState()), this.isAnimationAllowed = !0, this.props.shouldResetAutoplay && this.resetAutoplayInterval(), this.setState({ transform: u, currentSlide: a }, function() {
|
|
387
388
|
typeof s == "function" && (i.afterChangeTimeout2 = setTimeout(function() {
|
|
388
|
-
s(
|
|
389
|
+
s(h, e.getState());
|
|
389
390
|
}, e.props.transitionDuration || P));
|
|
390
391
|
});
|
|
391
392
|
}
|
|
@@ -398,19 +399,19 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
398
399
|
this.onMove = !1, this.initialX = 0, this.lastX = 0, this.direction = "", this.initialY = 0;
|
|
399
400
|
}, i.prototype.getCords = function(t) {
|
|
400
401
|
var e = t.clientX, r = t.clientY;
|
|
401
|
-
return { clientX:
|
|
402
|
+
return { clientX: B.parsePosition(this.props, e), clientY: B.parsePosition(this.props, r) };
|
|
402
403
|
}, i.prototype.handleDown = function(t) {
|
|
403
|
-
if (!(!
|
|
404
|
-
var e = this.getCords(
|
|
404
|
+
if (!(!R.isMouseMoveEvent(t) && !this.props.swipeable || R.isMouseMoveEvent(t) && !this.props.draggable || this.isInThrottle)) {
|
|
405
|
+
var e = this.getCords(R.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, s = e.clientY;
|
|
405
406
|
this.onMove = !0, this.initialX = r, this.initialY = s, this.lastX = r, this.isAnimationAllowed = !1;
|
|
406
407
|
}
|
|
407
408
|
}, i.prototype.handleMove = function(t) {
|
|
408
|
-
if (!(!
|
|
409
|
-
var e = this.getCords(
|
|
409
|
+
if (!(!R.isMouseMoveEvent(t) && !this.props.swipeable || R.isMouseMoveEvent(t) && !this.props.draggable || v.notEnoughChildren(this.state))) {
|
|
410
|
+
var e = this.getCords(R.isMouseMoveEvent(t) ? t : t.touches[0]), r = e.clientX, s = e.clientY, l = this.initialX - r, n = this.initialY - s;
|
|
410
411
|
if (this.onMove) {
|
|
411
412
|
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,
|
|
413
|
-
u && (this.direction = u, c &&
|
|
413
|
+
var a = v.populateSlidesOnMouseTouchMove(this.state, this.props, this.initialX, this.lastX, r, this.transformPlaceHolder), u = a.direction, h = a.nextPosition, c = a.canContinue;
|
|
414
|
+
u && (this.direction = u, c && h !== void 0 && this.setTransformDirectly(h)), this.lastX = r;
|
|
414
415
|
}
|
|
415
416
|
}
|
|
416
417
|
}, i.prototype.handleOut = function(t) {
|
|
@@ -424,7 +425,7 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
424
425
|
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
|
}
|
|
426
427
|
}, i.prototype.isInViewport = function(t) {
|
|
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,
|
|
428
|
+
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, h = e.right, c = h === void 0 ? 0 : h;
|
|
428
429
|
return 0 <= s && 0 <= n && u <= (window.innerHeight || document.documentElement.clientHeight) && c <= (window.innerWidth || document.documentElement.clientWidth);
|
|
429
430
|
}, i.prototype.isChildOfCarousel = function(t) {
|
|
430
431
|
return !!(t instanceof Element && this.listRef && this.listRef.current) && this.listRef.current.contains(t);
|
|
@@ -441,14 +442,14 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
441
442
|
if (this.isChildOfCarousel(e) && e instanceof HTMLInputElement && this.isInViewport(e)) return this.next();
|
|
442
443
|
}
|
|
443
444
|
}, i.prototype.handleEnter = function(t) {
|
|
444
|
-
|
|
445
|
+
R.isMouseMoveEvent(t) && this.autoPlay && this.props.autoPlay && this.props.pauseOnHover && (clearInterval(this.autoPlay), this.autoPlay = void 0);
|
|
445
446
|
}, i.prototype.goToSlide = function(t, e, r) {
|
|
446
447
|
var s = this;
|
|
447
448
|
if (r === void 0 && (r = !0), !this.isInThrottle) {
|
|
448
|
-
var l = this.state.itemWidth, n = this.props, a = n.afterChange, u = n.beforeChange,
|
|
449
|
+
var l = this.state.itemWidth, n = this.props, a = n.afterChange, u = n.beforeChange, h = this.state.currentSlide;
|
|
449
450
|
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
451
|
s.props.infinite && s.correctClonesPosition({ domLoaded: !0 }), typeof a != "function" || e && (typeof e != "object" || e.skipAfterChange) || (i.afterChangeTimeout3 = setTimeout(function() {
|
|
451
|
-
a(
|
|
452
|
+
a(h, s.getState());
|
|
452
453
|
}, s.props.transitionDuration || P));
|
|
453
454
|
});
|
|
454
455
|
}
|
|
@@ -456,12 +457,12 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
456
457
|
return this.state;
|
|
457
458
|
}, i.prototype.renderLeftArrow = function(t) {
|
|
458
459
|
var e = this, r = this.props, s = r.customLeftArrow, l = r.rtl;
|
|
459
|
-
return T.createElement(
|
|
460
|
+
return T.createElement(st.LeftArrow, { customLeftArrow: s, getState: function() {
|
|
460
461
|
return e.getState();
|
|
461
462
|
}, previous: this.previous, disabled: t, rtl: l });
|
|
462
463
|
}, i.prototype.renderRightArrow = function(t) {
|
|
463
464
|
var e = this, r = this.props, s = r.customRightArrow, l = r.rtl;
|
|
464
|
-
return T.createElement(
|
|
465
|
+
return T.createElement(st.RightArrow, { customRightArrow: s, getState: function() {
|
|
465
466
|
return e.getState();
|
|
466
467
|
}, next: this.next, disabled: t, rtl: l });
|
|
467
468
|
}, i.prototype.renderButtonGroups = function() {
|
|
@@ -475,7 +476,7 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
475
476
|
}, carouselState: this.getState() }) : null;
|
|
476
477
|
}, i.prototype.renderDotsList = function() {
|
|
477
478
|
var t = this;
|
|
478
|
-
return T.createElement(
|
|
479
|
+
return T.createElement(re.default, { state: this.state, props: this.props, goToSlide: this.goToSlide, getState: function() {
|
|
479
480
|
return t.getState();
|
|
480
481
|
} });
|
|
481
482
|
}, i.prototype.renderCarouselItems = function() {
|
|
@@ -484,74 +485,20 @@ var T = k, v = m, E = z, ie = it, at = U, oe = rt, N = S, P = 400, lt = "transfo
|
|
|
484
485
|
var e = T.Children.toArray(this.props.children);
|
|
485
486
|
t = v.getClones(this.state.slidesToShow, e);
|
|
486
487
|
}
|
|
487
|
-
return T.createElement(
|
|
488
|
+
return T.createElement(ne.default, { clones: t, goToSlide: this.goToSlide, state: this.state, notEnoughChildren: v.notEnoughChildren(this.state), props: this.props });
|
|
488
489
|
}, i.prototype.render = function() {
|
|
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,
|
|
490
|
+
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, h = t.customTransition, c = t.additionalTransfrom, d = t.renderDotsOutside, p = t.renderButtonGroupOutside, f = t.className, g = t.rtl;
|
|
490
491
|
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, 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) && _,
|
|
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 ?
|
|
492
|
+
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) && _, x = !n && y, W = !n && M, k = B.getTransform(this.state, this.props);
|
|
493
|
+
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 ? h || at : "none", overflow: b ? "hidden" : "unset", transform: "translate3d(" + (k + 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 && (!x || s) && this.renderLeftArrow(x), I && (!W || s) && this.renderRightArrow(W), _ && !p && this.renderButtonGroups(), _ && !d && this.renderDotsList()), _ && d && this.renderDotsList(), _ && p && this.renderButtonGroups());
|
|
493
494
|
}, 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
495
|
}(T.Component);
|
|
495
|
-
|
|
496
|
-
Object.defineProperty(
|
|
497
|
-
var
|
|
498
|
-
|
|
499
|
-
var
|
|
500
|
-
const
|
|
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`
|
|
496
|
+
q.default = se;
|
|
497
|
+
Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
498
|
+
var ae = q;
|
|
499
|
+
Z.default = ae.default;
|
|
500
|
+
var le = Z;
|
|
501
|
+
const ue = /* @__PURE__ */ yt(le), he = ut.div`
|
|
555
502
|
&:hover {
|
|
556
503
|
cursor: pointer;
|
|
557
504
|
|
|
@@ -720,11 +667,23 @@ const ae = /* @__PURE__ */ St(se), le = dt.div`
|
|
|
720
667
|
}
|
|
721
668
|
}
|
|
722
669
|
}
|
|
723
|
-
`,
|
|
670
|
+
`, de = ut(wt)`
|
|
671
|
+
@media (max-width: ${_t + "px"}) {
|
|
672
|
+
& > div {
|
|
673
|
+
height: 100%;
|
|
674
|
+
aspect-ratio: 1 / 1;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
`, ce = ({ keyPrefix: o }) => /* @__PURE__ */ C(de, { noGradient: !0, children: /* @__PURE__ */ C(bt, { keyPrefix: `${o}-1`, height: "22.5rem" }) }), pe = ({
|
|
678
|
+
keyPrefix: o,
|
|
679
|
+
isLoading: i = !1,
|
|
680
|
+
fallbackComponent: t = /* @__PURE__ */ C(lt, {}),
|
|
681
|
+
children: e
|
|
682
|
+
}) => /* @__PURE__ */ C(vt, { fallbackComponent: t, children: i === !0 ? /* @__PURE__ */ C(ce, { keyPrefix: o }) : e }), fe = gt(
|
|
724
683
|
({
|
|
725
684
|
items: o = [],
|
|
726
685
|
isLoading: i = !1,
|
|
727
|
-
fallbackComponent: t = /* @__PURE__ */ C(
|
|
686
|
+
fallbackComponent: t = /* @__PURE__ */ C(lt, {}),
|
|
728
687
|
onSelectItem: e = () => {
|
|
729
688
|
},
|
|
730
689
|
onButtonAction: r = () => {
|
|
@@ -746,15 +705,15 @@ const ae = /* @__PURE__ */ St(se), le = dt.div`
|
|
|
746
705
|
items: 1,
|
|
747
706
|
partialVisibilityGutter: 64
|
|
748
707
|
}
|
|
749
|
-
}, n =
|
|
708
|
+
}, n = Tt();
|
|
750
709
|
return /* @__PURE__ */ C(he, { ref: s, children: /* @__PURE__ */ C(
|
|
751
|
-
|
|
710
|
+
pe,
|
|
752
711
|
{
|
|
753
712
|
fallbackComponent: t,
|
|
754
713
|
keyPrefix: "banner-carousel-skeleton",
|
|
755
714
|
isLoading: i,
|
|
756
715
|
children: /* @__PURE__ */ C(
|
|
757
|
-
|
|
716
|
+
ue,
|
|
758
717
|
{
|
|
759
718
|
responsive: l,
|
|
760
719
|
removeArrowOnDeviceType: ["tablet", "mobile"],
|
|
@@ -768,7 +727,7 @@ const ae = /* @__PURE__ */ St(se), le = dt.div`
|
|
|
768
727
|
containerClass: "carousel-container",
|
|
769
728
|
rewind: !0,
|
|
770
729
|
rewindWithAnimation: !0,
|
|
771
|
-
children: o == null ? void 0 : o.map((a, u) => /* @__PURE__ */
|
|
730
|
+
children: o == null ? void 0 : o.map((a, u) => /* @__PURE__ */ X(
|
|
772
731
|
"div",
|
|
773
732
|
{
|
|
774
733
|
className: "section__card",
|
|
@@ -782,19 +741,19 @@ const ae = /* @__PURE__ */ St(se), le = dt.div`
|
|
|
782
741
|
className: "section__image"
|
|
783
742
|
}
|
|
784
743
|
),
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ X("div", { className: "card__content", children: [
|
|
745
|
+
/* @__PURE__ */ X("div", { className: "card__text", children: [
|
|
787
746
|
(a == null ? void 0 : a.title) && /* @__PURE__ */ C("div", { className: "card__title", children: a == null ? void 0 : a.title }),
|
|
788
747
|
(a == null ? void 0 : a.title) && /* @__PURE__ */ C("div", { className: "card__description", children: a == null ? void 0 : a.description })
|
|
789
748
|
] }),
|
|
790
749
|
(a == null ? void 0 : a.buttonText) && /* @__PURE__ */ C(
|
|
791
|
-
|
|
750
|
+
St,
|
|
792
751
|
{
|
|
793
752
|
text: a == null ? void 0 : a.buttonText,
|
|
794
753
|
className: "card__action",
|
|
795
754
|
size: "medium",
|
|
796
|
-
onClick: (
|
|
797
|
-
|
|
755
|
+
onClick: (h) => {
|
|
756
|
+
h == null || h.stopPropagation(), r(a);
|
|
798
757
|
}
|
|
799
758
|
}
|
|
800
759
|
)
|
|
@@ -809,13 +768,13 @@ const ae = /* @__PURE__ */ St(se), le = dt.div`
|
|
|
809
768
|
) }, `banner-section-carousel__${n}`);
|
|
810
769
|
}
|
|
811
770
|
);
|
|
812
|
-
|
|
813
|
-
items:
|
|
814
|
-
isLoading:
|
|
815
|
-
fallbackComponent:
|
|
816
|
-
onSelectItem:
|
|
817
|
-
onButtonAction:
|
|
771
|
+
fe.propTypes = {
|
|
772
|
+
items: D.array,
|
|
773
|
+
isLoading: D.bool,
|
|
774
|
+
fallbackComponent: D.any,
|
|
775
|
+
onSelectItem: D.func,
|
|
776
|
+
onButtonAction: D.func
|
|
818
777
|
};
|
|
819
778
|
export {
|
|
820
|
-
|
|
779
|
+
fe as default
|
|
821
780
|
};
|