@lanaco/lnc-react-ui 4.0.67 → 4.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,22 @@
1
1
  import { jsx as N, jsxs as ue } from "react/jsx-runtime";
2
- import F, { forwardRef as Ie } from "react";
3
- import { c as Pe } from "./_commonjsHelpers-DaMA6jEr.js";
4
- import { p as Ce, P as ye } from "./index-S5Cd7WrG.js";
5
- import { a as Le } from "./index-Bq3leL2e.js";
2
+ import F, { forwardRef as Ce } from "react";
3
+ import { c as Oe } from "./_commonjsHelpers-DaMA6jEr.js";
4
+ import { p as Le, P as Se } from "./index-S5Cd7WrG.js";
5
+ import { a as ke } from "./index-Bq3leL2e.js";
6
6
  import { u as De } from "./useDetectMobile-BC6EGaBc.js";
7
7
  import { s as te } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
8
  import { M as ne } from "./consts-C1uHV4xc.js";
9
- import Ae from "./Button.js";
10
- import { l as ke } from "./utils-DCs-SbIv.js";
11
- var Oe = {}, re = {}, he = {}, le = {}, Se;
12
- function We() {
13
- return Se || (Se = 1, function(t) {
9
+ import { k as he, l as Ae } from "./utils-DCs-SbIv.js";
10
+ import We from "./Button.js";
11
+ var Re = {}, re = {}, me = {}, le = {}, ge;
12
+ function ze() {
13
+ return ge || (ge = 1, function(t) {
14
14
  (function(n, r) {
15
- r(t, F, Ce);
16
- })(Pe, function(n, r, i) {
15
+ r(t, F, Le);
16
+ })(Oe, function(n, r, i) {
17
17
  Object.defineProperty(n, "__esModule", {
18
18
  value: !0
19
- }), n.setHasSupportToCaptureOption = T;
19
+ }), n.setHasSupportToCaptureOption = E;
20
20
  var e = a(r), o = a(i);
21
21
  function a(l) {
22
22
  return l && l.__esModule ? l : {
@@ -24,58 +24,58 @@ function We() {
24
24
  };
25
25
  }
26
26
  var s = Object.assign || function(l) {
27
- for (var d = 1; d < arguments.length; d++) {
28
- var S = arguments[d];
27
+ for (var p = 1; p < arguments.length; p++) {
28
+ var S = arguments[p];
29
29
  for (var u in S)
30
30
  Object.prototype.hasOwnProperty.call(S, u) && (l[u] = S[u]);
31
31
  }
32
32
  return l;
33
33
  };
34
- function f(l, d) {
34
+ function f(l, p) {
35
35
  var S = {};
36
36
  for (var u in l)
37
- d.indexOf(u) >= 0 || Object.prototype.hasOwnProperty.call(l, u) && (S[u] = l[u]);
37
+ p.indexOf(u) >= 0 || Object.prototype.hasOwnProperty.call(l, u) && (S[u] = l[u]);
38
38
  return S;
39
39
  }
40
- function h(l, d) {
41
- if (!(l instanceof d))
40
+ function h(l, p) {
41
+ if (!(l instanceof p))
42
42
  throw new TypeError("Cannot call a class as a function");
43
43
  }
44
44
  var m = /* @__PURE__ */ function() {
45
- function l(d, S) {
45
+ function l(p, S) {
46
46
  for (var u = 0; u < S.length; u++) {
47
47
  var g = S[u];
48
- g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(d, g.key, g);
48
+ g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(p, g.key, g);
49
49
  }
50
50
  }
51
- return function(d, S, u) {
52
- return S && l(d.prototype, S), u && l(d, u), d;
51
+ return function(p, S, u) {
52
+ return S && l(p.prototype, S), u && l(p, u), p;
53
53
  };
54
54
  }();
55
- function v(l, d) {
55
+ function v(l, p) {
56
56
  if (!l)
57
57
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
58
- return d && (typeof d == "object" || typeof d == "function") ? d : l;
58
+ return p && (typeof p == "object" || typeof p == "function") ? p : l;
59
59
  }
60
- function _(l, d) {
61
- if (typeof d != "function" && d !== null)
62
- throw new TypeError("Super expression must either be null or a function, not " + typeof d);
63
- l.prototype = Object.create(d && d.prototype, {
60
+ function _(l, p) {
61
+ if (typeof p != "function" && p !== null)
62
+ throw new TypeError("Super expression must either be null or a function, not " + typeof p);
63
+ l.prototype = Object.create(p && p.prototype, {
64
64
  constructor: {
65
65
  value: l,
66
66
  enumerable: !1,
67
67
  writable: !0,
68
68
  configurable: !0
69
69
  }
70
- }), d && (Object.setPrototypeOf ? Object.setPrototypeOf(l, d) : l.__proto__ = d);
70
+ }), p && (Object.setPrototypeOf ? Object.setPrototypeOf(l, p) : l.__proto__ = p);
71
71
  }
72
72
  var b = !1;
73
- function T(l) {
73
+ function E(l) {
74
74
  b = l;
75
75
  }
76
76
  try {
77
77
  addEventListener("test", null, Object.defineProperty({}, "capture", { get: function() {
78
- T(!0);
78
+ E(!0);
79
79
  } }));
80
80
  } catch {
81
81
  }
@@ -85,23 +85,23 @@ function We() {
85
85
  }
86
86
  function se(l) {
87
87
  if ("touches" in l) {
88
- var d = l.touches[0], S = d.pageX, u = d.pageY;
88
+ var p = l.touches[0], S = p.pageX, u = p.pageY;
89
89
  return { x: S, y: u };
90
90
  }
91
- var g = l.screenX, E = l.screenY;
92
- return { x: g, y: E };
91
+ var g = l.screenX, T = l.screenY;
92
+ return { x: g, y: T };
93
93
  }
94
94
  var z = function(l) {
95
- _(d, l);
96
- function d() {
95
+ _(p, l);
96
+ function p() {
97
97
  var S;
98
- h(this, d);
99
- for (var u = arguments.length, g = Array(u), E = 0; E < u; E++)
100
- g[E] = arguments[E];
101
- var y = v(this, (S = d.__proto__ || Object.getPrototypeOf(d)).call.apply(S, [this].concat(g)));
102
- return y._handleSwipeStart = y._handleSwipeStart.bind(y), y._handleSwipeMove = y._handleSwipeMove.bind(y), y._handleSwipeEnd = y._handleSwipeEnd.bind(y), y._onMouseDown = y._onMouseDown.bind(y), y._onMouseMove = y._onMouseMove.bind(y), y._onMouseUp = y._onMouseUp.bind(y), y._setSwiperRef = y._setSwiperRef.bind(y), y;
98
+ h(this, p);
99
+ for (var u = arguments.length, g = Array(u), T = 0; T < u; T++)
100
+ g[T] = arguments[T];
101
+ var w = v(this, (S = p.__proto__ || Object.getPrototypeOf(p)).call.apply(S, [this].concat(g)));
102
+ return w._handleSwipeStart = w._handleSwipeStart.bind(w), w._handleSwipeMove = w._handleSwipeMove.bind(w), w._handleSwipeEnd = w._handleSwipeEnd.bind(w), w._onMouseDown = w._onMouseDown.bind(w), w._onMouseMove = w._onMouseMove.bind(w), w._onMouseUp = w._onMouseUp.bind(w), w._setSwiperRef = w._setSwiperRef.bind(w), w;
103
103
  }
104
- return m(d, [{
104
+ return m(p, [{
105
105
  key: "componentDidMount",
106
106
  value: function() {
107
107
  this.swiper && this.swiper.addEventListener("touchmove", this._handleSwipeMove, X({
@@ -135,20 +135,20 @@ function We() {
135
135
  }, {
136
136
  key: "_handleSwipeStart",
137
137
  value: function(u) {
138
- var g = se(u), E = g.x, y = g.y;
139
- this.moveStart = { x: E, y }, this.props.onSwipeStart(u);
138
+ var g = se(u), T = g.x, w = g.y;
139
+ this.moveStart = { x: T, y: w }, this.props.onSwipeStart(u);
140
140
  }
141
141
  }, {
142
142
  key: "_handleSwipeMove",
143
143
  value: function(u) {
144
144
  if (this.moveStart) {
145
- var g = se(u), E = g.x, y = g.y, Y = E - this.moveStart.x, we = y - this.moveStart.y;
145
+ var g = se(u), T = g.x, w = g.y, Y = T - this.moveStart.x, we = w - this.moveStart.y;
146
146
  this.moving = !0;
147
- var Me = this.props.onSwipeMove({
147
+ var Ie = this.props.onSwipeMove({
148
148
  x: Y,
149
149
  y: we
150
150
  }, u);
151
- Me && u.cancelable && u.preventDefault(), this.movePosition = { deltaX: Y, deltaY: we };
151
+ Ie && u.cancelable && u.preventDefault(), this.movePosition = { deltaX: Y, deltaY: we };
152
152
  }
153
153
  }
154
154
  }, {
@@ -168,7 +168,7 @@ function We() {
168
168
  value: function() {
169
169
  var u = this.props;
170
170
  u.tagName;
171
- var g = u.className, E = u.style, y = u.children;
171
+ var g = u.className, T = u.style, w = u.children;
172
172
  u.allowMouseEvents, u.onSwipeUp, u.onSwipeDown, u.onSwipeLeft, u.onSwipeRight, u.onSwipeStart, u.onSwipeMove, u.onSwipeEnd, u.innerRef, u.tolerance;
173
173
  var Y = f(u, ["tagName", "className", "style", "children", "allowMouseEvents", "onSwipeUp", "onSwipeDown", "onSwipeLeft", "onSwipeRight", "onSwipeStart", "onSwipeMove", "onSwipeEnd", "innerRef", "tolerance"]);
174
174
  return e.default.createElement(
@@ -179,12 +179,12 @@ function We() {
179
179
  onTouchStart: this._handleSwipeStart,
180
180
  onTouchEnd: this._handleSwipeEnd,
181
181
  className: g,
182
- style: E
182
+ style: T
183
183
  }, Y),
184
- y
184
+ w
185
185
  );
186
186
  }
187
- }]), d;
187
+ }]), p;
188
188
  }(r.Component);
189
189
  z.displayName = "ReactSwipe", z.propTypes = {
190
190
  tagName: o.default.string,
@@ -227,8 +227,8 @@ function We() {
227
227
  }
228
228
  (function(t) {
229
229
  (function(n, r) {
230
- r(t, We());
231
- })(Pe, function(n, r) {
230
+ r(t, ze());
231
+ })(Oe, function(n, r) {
232
232
  Object.defineProperty(n, "__esModule", {
233
233
  value: !0
234
234
  });
@@ -240,33 +240,33 @@ function We() {
240
240
  }
241
241
  n.default = i.default;
242
242
  });
243
- })(he);
243
+ })(me);
244
244
  var K = {};
245
245
  Object.defineProperty(K, "__esModule", {
246
246
  value: !0
247
247
  });
248
248
  K.default = void 0;
249
- var A = ze(Le);
250
- function ze(t) {
249
+ var D = Ne(ke);
250
+ function Ne(t) {
251
251
  return t && t.__esModule ? t : { default: t };
252
252
  }
253
- function Ne(t, n, r) {
253
+ function xe(t, n, r) {
254
254
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
255
255
  }
256
- var xe = {
256
+ var He = {
257
257
  ROOT: function(n) {
258
- return (0, A.default)(Ne({
258
+ return (0, D.default)(xe({
259
259
  "carousel-root": !0
260
260
  }, n || "", !!n));
261
261
  },
262
262
  CAROUSEL: function(n) {
263
- return (0, A.default)({
263
+ return (0, D.default)({
264
264
  carousel: !0,
265
265
  "carousel-slider": n
266
266
  });
267
267
  },
268
268
  WRAPPER: function(n, r) {
269
- return (0, A.default)({
269
+ return (0, D.default)({
270
270
  "thumbs-wrapper": !n,
271
271
  "slider-wrapper": n,
272
272
  "axis-horizontal": r === "horizontal",
@@ -274,14 +274,14 @@ var xe = {
274
274
  });
275
275
  },
276
276
  SLIDER: function(n, r) {
277
- return (0, A.default)({
277
+ return (0, D.default)({
278
278
  thumbs: !n,
279
279
  slider: n,
280
280
  animated: !r
281
281
  });
282
282
  },
283
283
  ITEM: function(n, r, i) {
284
- return (0, A.default)({
284
+ return (0, D.default)({
285
285
  thumb: !n,
286
286
  slide: n,
287
287
  selected: r,
@@ -289,75 +289,75 @@ var xe = {
289
289
  });
290
290
  },
291
291
  ARROW_PREV: function(n) {
292
- return (0, A.default)({
292
+ return (0, D.default)({
293
293
  "control-arrow control-prev": !0,
294
294
  "control-disabled": n
295
295
  });
296
296
  },
297
297
  ARROW_NEXT: function(n) {
298
- return (0, A.default)({
298
+ return (0, D.default)({
299
299
  "control-arrow control-next": !0,
300
300
  "control-disabled": n
301
301
  });
302
302
  },
303
303
  DOT: function(n) {
304
- return (0, A.default)({
304
+ return (0, D.default)({
305
305
  dot: !0,
306
306
  selected: n
307
307
  });
308
308
  }
309
309
  };
310
- K.default = xe;
310
+ K.default = He;
311
311
  var j = {}, ie = {};
312
312
  Object.defineProperty(ie, "__esModule", {
313
313
  value: !0
314
314
  });
315
315
  ie.outerWidth = void 0;
316
- var He = function(n) {
316
+ var $e = function(n) {
317
317
  var r = n.offsetWidth, i = getComputedStyle(n);
318
318
  return r += parseInt(i.marginLeft) + parseInt(i.marginRight), r;
319
319
  };
320
- ie.outerWidth = He;
320
+ ie.outerWidth = $e;
321
321
  var x = {};
322
322
  Object.defineProperty(x, "__esModule", {
323
323
  value: !0
324
324
  });
325
325
  x.default = void 0;
326
- var $e = function(n, r, i) {
326
+ var Ue = function(n, r, i) {
327
327
  var e = n === 0 ? n : n + r, o = i === "horizontal" ? [e, 0, 0] : [0, e, 0], a = "translate3d", s = "(" + o.join(",") + ")";
328
328
  return a + s;
329
329
  };
330
- x.default = $e;
330
+ x.default = Ue;
331
331
  var q = {};
332
332
  Object.defineProperty(q, "__esModule", {
333
333
  value: !0
334
334
  });
335
335
  q.default = void 0;
336
- var Ue = function() {
336
+ var Fe = function() {
337
337
  return window;
338
338
  };
339
- q.default = Ue;
339
+ q.default = Fe;
340
340
  Object.defineProperty(j, "__esModule", {
341
341
  value: !0
342
342
  });
343
343
  j.default = void 0;
344
- var M = je(F), k = oe(K), Fe = ie, ge = oe(x), Ke = oe(he), V = oe(q);
344
+ var M = qe(F), A = oe(K), Ke = ie, be = oe(x), je = oe(me), V = oe(q);
345
345
  function oe(t) {
346
346
  return t && t.__esModule ? t : { default: t };
347
347
  }
348
- function Re() {
348
+ function Ee() {
349
349
  if (typeof WeakMap != "function") return null;
350
350
  var t = /* @__PURE__ */ new WeakMap();
351
- return Re = function() {
351
+ return Ee = function() {
352
352
  return t;
353
353
  }, t;
354
354
  }
355
- function je(t) {
355
+ function qe(t) {
356
356
  if (t && t.__esModule)
357
357
  return t;
358
358
  if (t === null || $(t) !== "object" && typeof t != "function")
359
359
  return { default: t };
360
- var n = Re();
360
+ var n = Ee();
361
361
  if (n && n.has(t))
362
362
  return n.get(t);
363
363
  var r = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
@@ -386,20 +386,20 @@ function fe() {
386
386
  return t;
387
387
  }, fe.apply(this, arguments);
388
388
  }
389
- function qe(t, n) {
389
+ function Be(t, n) {
390
390
  if (!(t instanceof n))
391
391
  throw new TypeError("Cannot call a class as a function");
392
392
  }
393
- function Be(t, n) {
393
+ function Xe(t, n) {
394
394
  for (var r = 0; r < n.length; r++) {
395
395
  var i = n[r];
396
396
  i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
397
397
  }
398
398
  }
399
- function Xe(t, n, r) {
400
- return n && Be(t.prototype, n), t;
399
+ function Ye(t, n, r) {
400
+ return n && Xe(t.prototype, n), t;
401
401
  }
402
- function Ye(t, n) {
402
+ function Ve(t, n) {
403
403
  if (typeof n != "function" && n !== null)
404
404
  throw new TypeError("Super expression must either be null or a function");
405
405
  t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && ce(t, n);
@@ -409,8 +409,8 @@ function ce(t, n) {
409
409
  return i.__proto__ = e, i;
410
410
  }, ce(t, n);
411
411
  }
412
- function Ve(t) {
413
- var n = Ze();
412
+ function Ge(t) {
413
+ var n = Je();
414
414
  return function() {
415
415
  var i = J(t), e;
416
416
  if (n) {
@@ -418,10 +418,10 @@ function Ve(t) {
418
418
  e = Reflect.construct(i, arguments, o);
419
419
  } else
420
420
  e = i.apply(this, arguments);
421
- return Ge(this, e);
421
+ return Ze(this, e);
422
422
  };
423
423
  }
424
- function Ge(t, n) {
424
+ function Ze(t, n) {
425
425
  return n && ($(n) === "object" || typeof n == "function") ? n : O(t);
426
426
  }
427
427
  function O(t) {
@@ -429,7 +429,7 @@ function O(t) {
429
429
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
430
430
  return t;
431
431
  }
432
- function Ze() {
432
+ function Je() {
433
433
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
434
434
  if (typeof Proxy == "function") return !0;
435
435
  try {
@@ -447,14 +447,14 @@ function J(t) {
447
447
  function P(t, n, r) {
448
448
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
449
449
  }
450
- var Je = function(n) {
450
+ var Qe = function(n) {
451
451
  return n.hasOwnProperty("key");
452
- }, me = /* @__PURE__ */ function(t) {
453
- Ye(r, t);
454
- var n = Ve(r);
452
+ }, ve = /* @__PURE__ */ function(t) {
453
+ Ve(r, t);
454
+ var n = Ge(r);
455
455
  function r(i) {
456
456
  var e;
457
- return qe(this, r), e = n.call(this, i), P(O(e), "itemsWrapperRef", void 0), P(O(e), "itemsListRef", void 0), P(O(e), "thumbsRef", void 0), P(O(e), "setItemsWrapperRef", function(o) {
457
+ return Be(this, r), e = n.call(this, i), P(O(e), "itemsWrapperRef", void 0), P(O(e), "itemsListRef", void 0), P(O(e), "thumbsRef", void 0), P(O(e), "setItemsWrapperRef", function(o) {
458
458
  e.itemsWrapperRef = o;
459
459
  }), P(O(e), "setItemsListRef", function(o) {
460
460
  e.itemsListRef = o;
@@ -462,7 +462,7 @@ var Je = function(n) {
462
462
  e.thumbsRef || (e.thumbsRef = []), e.thumbsRef[a] = o;
463
463
  }), P(O(e), "updateSizes", function() {
464
464
  if (!(!e.props.children || !e.itemsWrapperRef || !e.thumbsRef)) {
465
- var o = M.Children.count(e.props.children), a = e.itemsWrapperRef.clientWidth, s = e.props.thumbWidth ? e.props.thumbWidth : (0, Fe.outerWidth)(e.thumbsRef[0]), f = Math.floor(a / s), h = f < o, m = h ? o - f : 0;
465
+ var o = M.Children.count(e.props.children), a = e.itemsWrapperRef.clientWidth, s = e.props.thumbWidth ? e.props.thumbWidth : (0, Ke.outerWidth)(e.thumbsRef[0]), f = Math.floor(a / s), h = f < o, m = h ? o - f : 0;
466
466
  e.setState(function(v, _) {
467
467
  return {
468
468
  itemSize: s,
@@ -474,7 +474,7 @@ var Je = function(n) {
474
474
  });
475
475
  }
476
476
  }), P(O(e), "handleClickItem", function(o, a, s) {
477
- if (!Je(s) || s.key === "Enter") {
477
+ if (!Qe(s) || s.key === "Enter") {
478
478
  var f = e.props.onSelectItem;
479
479
  typeof f == "function" && f(o, a);
480
480
  }
@@ -493,8 +493,8 @@ var Je = function(n) {
493
493
  var s = 0, f = M.Children.count(e.props.children), h = -(e.state.firstItem * 100) / e.state.visibleItems, m = Math.max(f - e.state.visibleItems, 0), v = -m * 100 / e.state.visibleItems;
494
494
  h === s && a > 0 && (a = 0), h === v && a < 0 && (a = 0);
495
495
  var _ = e.itemsWrapperRef.clientWidth, b = h + 100 / (_ / a);
496
- return e.itemsListRef && ["WebkitTransform", "MozTransform", "MsTransform", "OTransform", "transform", "msTransform"].forEach(function(T) {
497
- e.itemsListRef.style[T] = (0, ge.default)(b, "%", e.props.axis);
496
+ return e.itemsListRef && ["WebkitTransform", "MozTransform", "MsTransform", "OTransform", "transform", "msTransform"].forEach(function(E) {
497
+ e.itemsListRef.style[E] = (0, be.default)(b, "%", e.props.axis);
498
498
  }), !0;
499
499
  }), P(O(e), "slideRight", function(o) {
500
500
  e.moveTo(e.state.firstItem - (typeof o == "number" ? o : 1));
@@ -513,7 +513,7 @@ var Je = function(n) {
513
513
  lastPosition: 0
514
514
  }, e;
515
515
  }
516
- return Xe(r, [{
516
+ return Ye(r, [{
517
517
  key: "componentDidMount",
518
518
  value: function() {
519
519
  this.setupThumbs();
@@ -552,7 +552,7 @@ var Je = function(n) {
552
552
  value: function() {
553
553
  var e = this;
554
554
  return this.props.children.map(function(o, a) {
555
- var s = k.default.ITEM(!1, a === e.state.selectedItem), f = {
555
+ var s = A.default.ITEM(!1, a === e.state.selectedItem), f = {
556
556
  key: a,
557
557
  ref: function(m) {
558
558
  return e.setThumbsRef(m, a);
@@ -577,7 +577,7 @@ var Je = function(n) {
577
577
  var e = this;
578
578
  if (!this.props.children)
579
579
  return null;
580
- var o = M.Children.count(this.props.children) > 1, a = this.state.showArrows && this.state.firstItem > 0, s = this.state.showArrows && this.state.firstItem < this.state.lastPosition, f = {}, h = -this.state.firstItem * (this.state.itemSize || 0), m = (0, ge.default)(h, "px", this.props.axis), v = this.props.transitionTime + "ms";
580
+ var o = M.Children.count(this.props.children) > 1, a = this.state.showArrows && this.state.firstItem > 0, s = this.state.showArrows && this.state.firstItem < this.state.lastPosition, f = {}, h = -this.state.firstItem * (this.state.itemSize || 0), m = (0, be.default)(h, "px", this.props.axis), v = this.props.transitionTime + "ms";
581
581
  return f = {
582
582
  WebkitTransform: m,
583
583
  MozTransform: m,
@@ -592,20 +592,20 @@ var Je = function(n) {
592
592
  transitionDuration: v,
593
593
  msTransitionDuration: v
594
594
  }, /* @__PURE__ */ M.default.createElement("div", {
595
- className: k.default.CAROUSEL(!1)
595
+ className: A.default.CAROUSEL(!1)
596
596
  }, /* @__PURE__ */ M.default.createElement("div", {
597
- className: k.default.WRAPPER(!1),
597
+ className: A.default.WRAPPER(!1),
598
598
  ref: this.setItemsWrapperRef
599
599
  }, /* @__PURE__ */ M.default.createElement("button", {
600
600
  type: "button",
601
- className: k.default.ARROW_PREV(!a),
601
+ className: A.default.ARROW_PREV(!a),
602
602
  onClick: function() {
603
603
  return e.slideRight();
604
604
  },
605
605
  "aria-label": this.props.labels.leftArrow
606
- }), o ? /* @__PURE__ */ M.default.createElement(Ke.default, {
606
+ }), o ? /* @__PURE__ */ M.default.createElement(je.default, {
607
607
  tagName: "ul",
608
- className: k.default.SLIDER(!1, this.state.swiping),
608
+ className: A.default.SLIDER(!1, this.state.swiping),
609
609
  onSwipeLeft: this.slideLeft,
610
610
  onSwipeRight: this.slideRight,
611
611
  onSwipeMove: this.onSwipeMove,
@@ -615,14 +615,14 @@ var Je = function(n) {
615
615
  innerRef: this.setItemsListRef,
616
616
  allowMouseEvents: this.props.emulateTouch
617
617
  }, this.renderItems()) : /* @__PURE__ */ M.default.createElement("ul", {
618
- className: k.default.SLIDER(!1, this.state.swiping),
618
+ className: A.default.SLIDER(!1, this.state.swiping),
619
619
  ref: function(b) {
620
620
  return e.setItemsListRef(b);
621
621
  },
622
622
  style: f
623
623
  }, this.renderItems()), /* @__PURE__ */ M.default.createElement("button", {
624
624
  type: "button",
625
- className: k.default.ARROW_NEXT(!s),
625
+ className: A.default.ARROW_NEXT(!s),
626
626
  onClick: function() {
627
627
  return e.slideLeft();
628
628
  },
@@ -631,9 +631,9 @@ var Je = function(n) {
631
631
  }
632
632
  }]), r;
633
633
  }(M.Component);
634
- j.default = me;
635
- P(me, "displayName", "Thumbs");
636
- P(me, "defaultProps", {
634
+ j.default = ve;
635
+ P(ve, "displayName", "Thumbs");
636
+ P(ve, "defaultProps", {
637
637
  axis: "horizontal",
638
638
  labels: {
639
639
  leftArrow: "previous slide / item",
@@ -649,58 +649,58 @@ Object.defineProperty(ae, "__esModule", {
649
649
  value: !0
650
650
  });
651
651
  ae.default = void 0;
652
- var Qe = function() {
652
+ var et = function() {
653
653
  return document;
654
654
  };
655
- ae.default = Qe;
655
+ ae.default = et;
656
656
  var R = {};
657
657
  Object.defineProperty(R, "__esModule", {
658
658
  value: !0
659
659
  });
660
660
  R.setPosition = R.getPosition = R.isKeyboardEvent = R.defaultStatusFormatter = R.noop = void 0;
661
- var et = F, tt = nt(x);
662
- function nt(t) {
661
+ var tt = F, nt = rt(x);
662
+ function rt(t) {
663
663
  return t && t.__esModule ? t : { default: t };
664
664
  }
665
- var rt = function() {
665
+ var it = function() {
666
666
  };
667
- R.noop = rt;
668
- var it = function(n, r) {
667
+ R.noop = it;
668
+ var ot = function(n, r) {
669
669
  return "".concat(n, " of ").concat(r);
670
670
  };
671
- R.defaultStatusFormatter = it;
672
- var ot = function(n) {
671
+ R.defaultStatusFormatter = ot;
672
+ var at = function(n) {
673
673
  return n ? n.hasOwnProperty("key") : !1;
674
674
  };
675
- R.isKeyboardEvent = ot;
676
- var at = function(n, r) {
675
+ R.isKeyboardEvent = at;
676
+ var st = function(n, r) {
677
677
  if (r.infiniteLoop && ++n, n === 0)
678
678
  return 0;
679
- var i = et.Children.count(r.children);
679
+ var i = tt.Children.count(r.children);
680
680
  if (r.centerMode && r.axis === "horizontal") {
681
681
  var e = -n * r.centerSlidePercentage, o = i - 1;
682
682
  return n && (n !== o || r.infiniteLoop) ? e += (100 - r.centerSlidePercentage) / 2 : n === o && (e += 100 - r.centerSlidePercentage), e;
683
683
  }
684
684
  return -n * 100;
685
685
  };
686
- R.getPosition = at;
687
- var st = function(n, r) {
686
+ R.getPosition = st;
687
+ var ut = function(n, r) {
688
688
  var i = {};
689
689
  return ["WebkitTransform", "MozTransform", "MsTransform", "OTransform", "transform", "msTransform"].forEach(function(e) {
690
- i[e] = (0, tt.default)(n, "%", r);
690
+ i[e] = (0, nt.default)(n, "%", r);
691
691
  }), i;
692
692
  };
693
- R.setPosition = st;
693
+ R.setPosition = ut;
694
694
  var C = {};
695
695
  Object.defineProperty(C, "__esModule", {
696
696
  value: !0
697
697
  });
698
698
  C.fadeAnimationHandler = C.slideStopSwipingHandler = C.slideSwipeAnimationHandler = C.slideAnimationHandler = void 0;
699
- var Te = F, ut = lt(x), L = R;
700
- function lt(t) {
699
+ var Te = F, lt = ft(x), L = R;
700
+ function ft(t) {
701
701
  return t && t.__esModule ? t : { default: t };
702
702
  }
703
- function be(t, n) {
703
+ function _e(t, n) {
704
704
  var r = Object.keys(t);
705
705
  if (Object.getOwnPropertySymbols) {
706
706
  var i = Object.getOwnPropertySymbols(t);
@@ -713,22 +713,22 @@ function be(t, n) {
713
713
  function W(t) {
714
714
  for (var n = 1; n < arguments.length; n++) {
715
715
  var r = arguments[n] != null ? arguments[n] : {};
716
- n % 2 ? be(Object(r), !0).forEach(function(i) {
717
- ft(t, i, r[i]);
718
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : be(Object(r)).forEach(function(i) {
716
+ n % 2 ? _e(Object(r), !0).forEach(function(i) {
717
+ ct(t, i, r[i]);
718
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : _e(Object(r)).forEach(function(i) {
719
719
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(r, i));
720
720
  });
721
721
  }
722
722
  return t;
723
723
  }
724
- function ft(t, n, r) {
724
+ function ct(t, n, r) {
725
725
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
726
726
  }
727
- var ct = function(n, r) {
727
+ var dt = function(n, r) {
728
728
  var i = {}, e = r.selectedItem, o = e, a = Te.Children.count(n.children) - 1, s = n.infiniteLoop && (e < 0 || e > a);
729
729
  if (s)
730
730
  return o < 0 ? n.centerMode && n.centerSlidePercentage && n.axis === "horizontal" ? i.itemListStyle = (0, L.setPosition)(-(a + 2) * n.centerSlidePercentage - (100 - n.centerSlidePercentage) / 2, n.axis) : i.itemListStyle = (0, L.setPosition)(-(a + 2) * 100, n.axis) : o > a && (i.itemListStyle = (0, L.setPosition)(0, n.axis)), i;
731
- var f = (0, L.getPosition)(e, n), h = (0, ut.default)(f, "%", n.axis), m = n.transitionTime + "ms";
731
+ var f = (0, L.getPosition)(e, n), h = (0, lt.default)(f, "%", n.axis), m = n.transitionTime + "ms";
732
732
  return i.itemListStyle = {
733
733
  WebkitTransform: h,
734
734
  msTransform: h,
@@ -742,26 +742,26 @@ var ct = function(n, r) {
742
742
  msTransitionDuration: m
743
743
  })), i;
744
744
  };
745
- C.slideAnimationHandler = ct;
745
+ C.slideAnimationHandler = dt;
746
746
  var pt = function(n, r, i, e) {
747
747
  var o = {}, a = r.axis === "horizontal", s = Te.Children.count(r.children), f = 0, h = (0, L.getPosition)(i.selectedItem, r), m = r.infiniteLoop ? (0, L.getPosition)(s - 1, r) - 100 : (0, L.getPosition)(s - 1, r), v = a ? n.x : n.y, _ = v;
748
748
  h === f && v > 0 && (_ = 0), h === m && v < 0 && (_ = 0);
749
- var b = h + 100 / (i.itemSize / _), T = Math.abs(v) > r.swipeScrollTolerance;
750
- return r.infiniteLoop && T && (i.selectedItem === 0 && b > -100 ? b -= s * 100 : i.selectedItem === s - 1 && b < -s * 100 && (b += s * 100)), (!r.preventMovementUntilSwipeScrollTolerance || T || i.swipeMovementStarted) && (i.swipeMovementStarted || e({
749
+ var b = h + 100 / (i.itemSize / _), E = Math.abs(v) > r.swipeScrollTolerance;
750
+ return r.infiniteLoop && E && (i.selectedItem === 0 && b > -100 ? b -= s * 100 : i.selectedItem === s - 1 && b < -s * 100 && (b += s * 100)), (!r.preventMovementUntilSwipeScrollTolerance || E || i.swipeMovementStarted) && (i.swipeMovementStarted || e({
751
751
  swipeMovementStarted: !0
752
- }), o.itemListStyle = (0, L.setPosition)(b, r.axis)), T && !i.cancelClick && e({
752
+ }), o.itemListStyle = (0, L.setPosition)(b, r.axis)), E && !i.cancelClick && e({
753
753
  cancelClick: !0
754
754
  }), o;
755
755
  };
756
756
  C.slideSwipeAnimationHandler = pt;
757
- var dt = function(n, r) {
757
+ var ht = function(n, r) {
758
758
  var i = (0, L.getPosition)(r.selectedItem, n), e = (0, L.setPosition)(i, n.axis);
759
759
  return {
760
760
  itemListStyle: e
761
761
  };
762
762
  };
763
- C.slideStopSwipingHandler = dt;
764
- var ht = function(n, r) {
763
+ C.slideStopSwipingHandler = ht;
764
+ var mt = function(n, r) {
765
765
  var i = n.transitionTime + "ms", e = "ease-in-out", o = {
766
766
  position: "absolute",
767
767
  display: "block",
@@ -793,19 +793,19 @@ var ht = function(n, r) {
793
793
  prevStyle: W({}, o)
794
794
  };
795
795
  };
796
- C.fadeAnimationHandler = ht;
796
+ C.fadeAnimationHandler = mt;
797
797
  Object.defineProperty(re, "__esModule", {
798
798
  value: !0
799
799
  });
800
800
  re.default = void 0;
801
- var w = wt(F), mt = B(he), D = B(K), vt = B(j), G = B(ae), Z = B(q), H = R, Q = C;
801
+ var y = wt(F), vt = B(me), k = B(K), yt = B(j), G = B(ae), Z = B(q), H = R, Q = C;
802
802
  function B(t) {
803
803
  return t && t.__esModule ? t : { default: t };
804
804
  }
805
- function Ee() {
805
+ function Me() {
806
806
  if (typeof WeakMap != "function") return null;
807
807
  var t = /* @__PURE__ */ new WeakMap();
808
- return Ee = function() {
808
+ return Me = function() {
809
809
  return t;
810
810
  }, t;
811
811
  }
@@ -814,7 +814,7 @@ function wt(t) {
814
814
  return t;
815
815
  if (t === null || U(t) !== "object" && typeof t != "function")
816
816
  return { default: t };
817
- var n = Ee();
817
+ var n = Me();
818
818
  if (n && n.has(t))
819
819
  return n.get(t);
820
820
  var r = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
@@ -833,17 +833,17 @@ function U(t) {
833
833
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
834
834
  }, U(t);
835
835
  }
836
- function pe() {
837
- return pe = Object.assign || function(t) {
836
+ function de() {
837
+ return de = Object.assign || function(t) {
838
838
  for (var n = 1; n < arguments.length; n++) {
839
839
  var r = arguments[n];
840
840
  for (var i in r)
841
841
  Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
842
842
  }
843
843
  return t;
844
- }, pe.apply(this, arguments);
844
+ }, de.apply(this, arguments);
845
845
  }
846
- function _e(t, n) {
846
+ function Pe(t, n) {
847
847
  var r = Object.keys(t);
848
848
  if (Object.getOwnPropertySymbols) {
849
849
  var i = Object.getOwnPropertySymbols(t);
@@ -856,39 +856,39 @@ function _e(t, n) {
856
856
  function I(t) {
857
857
  for (var n = 1; n < arguments.length; n++) {
858
858
  var r = arguments[n] != null ? arguments[n] : {};
859
- n % 2 ? _e(Object(r), !0).forEach(function(i) {
859
+ n % 2 ? Pe(Object(r), !0).forEach(function(i) {
860
860
  c(t, i, r[i]);
861
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : _e(Object(r)).forEach(function(i) {
861
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Pe(Object(r)).forEach(function(i) {
862
862
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(r, i));
863
863
  });
864
864
  }
865
865
  return t;
866
866
  }
867
- function yt(t, n) {
867
+ function St(t, n) {
868
868
  if (!(t instanceof n))
869
869
  throw new TypeError("Cannot call a class as a function");
870
870
  }
871
- function St(t, n) {
871
+ function gt(t, n) {
872
872
  for (var r = 0; r < n.length; r++) {
873
873
  var i = n[r];
874
874
  i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
875
875
  }
876
876
  }
877
- function gt(t, n, r) {
878
- return n && St(t.prototype, n), t;
877
+ function bt(t, n, r) {
878
+ return n && gt(t.prototype, n), t;
879
879
  }
880
- function bt(t, n) {
880
+ function _t(t, n) {
881
881
  if (typeof n != "function" && n !== null)
882
882
  throw new TypeError("Super expression must either be null or a function");
883
- t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && de(t, n);
883
+ t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && pe(t, n);
884
884
  }
885
- function de(t, n) {
886
- return de = Object.setPrototypeOf || function(i, e) {
885
+ function pe(t, n) {
886
+ return pe = Object.setPrototypeOf || function(i, e) {
887
887
  return i.__proto__ = e, i;
888
- }, de(t, n);
888
+ }, pe(t, n);
889
889
  }
890
- function _t(t) {
891
- var n = Ot();
890
+ function Pt(t) {
891
+ var n = Rt();
892
892
  return function() {
893
893
  var i = ee(t), e;
894
894
  if (n) {
@@ -896,18 +896,18 @@ function _t(t) {
896
896
  e = Reflect.construct(i, arguments, o);
897
897
  } else
898
898
  e = i.apply(this, arguments);
899
- return Pt(this, e);
899
+ return Ot(this, e);
900
900
  };
901
901
  }
902
- function Pt(t, n) {
903
- return n && (U(n) === "object" || typeof n == "function") ? n : p(t);
902
+ function Ot(t, n) {
903
+ return n && (U(n) === "object" || typeof n == "function") ? n : d(t);
904
904
  }
905
- function p(t) {
905
+ function d(t) {
906
906
  if (t === void 0)
907
907
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
908
908
  return t;
909
909
  }
910
- function Ot() {
910
+ function Rt() {
911
911
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
912
912
  if (typeof Proxy == "function") return !0;
913
913
  try {
@@ -925,38 +925,38 @@ function ee(t) {
925
925
  function c(t, n, r) {
926
926
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
927
927
  }
928
- var ve = /* @__PURE__ */ function(t) {
929
- bt(r, t);
930
- var n = _t(r);
928
+ var ye = /* @__PURE__ */ function(t) {
929
+ _t(r, t);
930
+ var n = Pt(r);
931
931
  function r(i) {
932
932
  var e;
933
- yt(this, r), e = n.call(this, i), c(p(e), "thumbsRef", void 0), c(p(e), "carouselWrapperRef", void 0), c(p(e), "listRef", void 0), c(p(e), "itemsRef", void 0), c(p(e), "timer", void 0), c(p(e), "animationHandler", void 0), c(p(e), "setThumbsRef", function(a) {
933
+ St(this, r), e = n.call(this, i), c(d(e), "thumbsRef", void 0), c(d(e), "carouselWrapperRef", void 0), c(d(e), "listRef", void 0), c(d(e), "itemsRef", void 0), c(d(e), "timer", void 0), c(d(e), "animationHandler", void 0), c(d(e), "setThumbsRef", function(a) {
934
934
  e.thumbsRef = a;
935
- }), c(p(e), "setCarouselWrapperRef", function(a) {
935
+ }), c(d(e), "setCarouselWrapperRef", function(a) {
936
936
  e.carouselWrapperRef = a;
937
- }), c(p(e), "setListRef", function(a) {
937
+ }), c(d(e), "setListRef", function(a) {
938
938
  e.listRef = a;
939
- }), c(p(e), "setItemsRef", function(a, s) {
939
+ }), c(d(e), "setItemsRef", function(a, s) {
940
940
  e.itemsRef || (e.itemsRef = []), e.itemsRef[s] = a;
941
- }), c(p(e), "autoPlay", function() {
942
- w.Children.count(e.props.children) <= 1 || (e.clearAutoPlay(), e.props.autoPlay && (e.timer = setTimeout(function() {
941
+ }), c(d(e), "autoPlay", function() {
942
+ y.Children.count(e.props.children) <= 1 || (e.clearAutoPlay(), e.props.autoPlay && (e.timer = setTimeout(function() {
943
943
  e.increment();
944
944
  }, e.props.interval)));
945
- }), c(p(e), "clearAutoPlay", function() {
945
+ }), c(d(e), "clearAutoPlay", function() {
946
946
  e.timer && clearTimeout(e.timer);
947
- }), c(p(e), "resetAutoPlay", function() {
947
+ }), c(d(e), "resetAutoPlay", function() {
948
948
  e.clearAutoPlay(), e.autoPlay();
949
- }), c(p(e), "stopOnHover", function() {
949
+ }), c(d(e), "stopOnHover", function() {
950
950
  e.setState({
951
951
  isMouseEntered: !0
952
952
  }, e.clearAutoPlay);
953
- }), c(p(e), "startOnLeave", function() {
953
+ }), c(d(e), "startOnLeave", function() {
954
954
  e.setState({
955
955
  isMouseEntered: !1
956
956
  }, e.autoPlay);
957
- }), c(p(e), "isFocusWithinTheCarousel", function() {
957
+ }), c(d(e), "isFocusWithinTheCarousel", function() {
958
958
  return e.carouselWrapperRef ? !!((0, G.default)().activeElement === e.carouselWrapperRef || e.carouselWrapperRef.contains((0, G.default)().activeElement)) : !1;
959
- }), c(p(e), "navigateWithKeyboard", function(a) {
959
+ }), c(d(e), "navigateWithKeyboard", function(a) {
960
960
  if (e.isFocusWithinTheCarousel()) {
961
961
  var s = e.props.axis, f = s === "horizontal", h = {
962
962
  ArrowUp: 38,
@@ -966,7 +966,7 @@ var ve = /* @__PURE__ */ function(t) {
966
966
  }, m = f ? h.ArrowRight : h.ArrowDown, v = f ? h.ArrowLeft : h.ArrowUp;
967
967
  m === a.keyCode ? e.increment() : v === a.keyCode && e.decrement();
968
968
  }
969
- }), c(p(e), "updateSizes", function() {
969
+ }), c(d(e), "updateSizes", function() {
970
970
  if (!(!e.state.initialized || !e.itemsRef || e.itemsRef.length === 0)) {
971
971
  var a = e.props.axis === "horizontal", s = e.itemsRef[0];
972
972
  if (s) {
@@ -976,12 +976,12 @@ var ve = /* @__PURE__ */ function(t) {
976
976
  }), e.thumbsRef && e.thumbsRef.updateSizes();
977
977
  }
978
978
  }
979
- }), c(p(e), "setMountState", function() {
979
+ }), c(d(e), "setMountState", function() {
980
980
  e.setState({
981
981
  hasMount: !0
982
982
  }), e.updateSizes();
983
- }), c(p(e), "handleClickItem", function(a, s) {
984
- if (w.Children.count(e.props.children) !== 0) {
983
+ }), c(d(e), "handleClickItem", function(a, s) {
984
+ if (y.Children.count(e.props.children) !== 0) {
985
985
  if (e.state.cancelClick) {
986
986
  e.setState({
987
987
  cancelClick: !1
@@ -992,64 +992,64 @@ var ve = /* @__PURE__ */ function(t) {
992
992
  selectedItem: a
993
993
  });
994
994
  }
995
- }), c(p(e), "handleOnChange", function(a, s) {
996
- w.Children.count(e.props.children) <= 1 || e.props.onChange(a, s);
997
- }), c(p(e), "handleClickThumb", function(a, s) {
995
+ }), c(d(e), "handleOnChange", function(a, s) {
996
+ y.Children.count(e.props.children) <= 1 || e.props.onChange(a, s);
997
+ }), c(d(e), "handleClickThumb", function(a, s) {
998
998
  e.props.onClickThumb(a, s), e.moveTo(a);
999
- }), c(p(e), "onSwipeStart", function(a) {
999
+ }), c(d(e), "onSwipeStart", function(a) {
1000
1000
  e.setState({
1001
1001
  swiping: !0
1002
1002
  }), e.props.onSwipeStart(a);
1003
- }), c(p(e), "onSwipeEnd", function(a) {
1003
+ }), c(d(e), "onSwipeEnd", function(a) {
1004
1004
  e.setState({
1005
1005
  swiping: !1,
1006
1006
  cancelClick: !1,
1007
1007
  swipeMovementStarted: !1
1008
1008
  }), e.props.onSwipeEnd(a), e.clearAutoPlay(), e.state.autoPlay && e.autoPlay();
1009
- }), c(p(e), "onSwipeMove", function(a, s) {
1009
+ }), c(d(e), "onSwipeMove", function(a, s) {
1010
1010
  e.props.onSwipeMove(s);
1011
- var f = e.props.swipeAnimationHandler(a, e.props, e.state, e.setState.bind(p(e)));
1011
+ var f = e.props.swipeAnimationHandler(a, e.props, e.state, e.setState.bind(d(e)));
1012
1012
  return e.setState(I({}, f)), !!Object.keys(f).length;
1013
- }), c(p(e), "decrement", function() {
1013
+ }), c(d(e), "decrement", function() {
1014
1014
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1015
1015
  e.moveTo(e.state.selectedItem - (typeof a == "number" ? a : 1));
1016
- }), c(p(e), "increment", function() {
1016
+ }), c(d(e), "increment", function() {
1017
1017
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1018
1018
  e.moveTo(e.state.selectedItem + (typeof a == "number" ? a : 1));
1019
- }), c(p(e), "moveTo", function(a) {
1019
+ }), c(d(e), "moveTo", function(a) {
1020
1020
  if (typeof a == "number") {
1021
- var s = w.Children.count(e.props.children) - 1;
1021
+ var s = y.Children.count(e.props.children) - 1;
1022
1022
  a < 0 && (a = e.props.infiniteLoop ? s : 0), a > s && (a = e.props.infiniteLoop ? 0 : s), e.selectItem({
1023
1023
  // if it's not a slider, we don't need to set position here
1024
1024
  selectedItem: a
1025
1025
  }), e.state.autoPlay && e.state.isMouseEntered === !1 && e.resetAutoPlay();
1026
1026
  }
1027
- }), c(p(e), "onClickNext", function() {
1027
+ }), c(d(e), "onClickNext", function() {
1028
1028
  e.increment(1);
1029
- }), c(p(e), "onClickPrev", function() {
1029
+ }), c(d(e), "onClickPrev", function() {
1030
1030
  e.decrement(1);
1031
- }), c(p(e), "onSwipeForward", function() {
1031
+ }), c(d(e), "onSwipeForward", function() {
1032
1032
  e.increment(1), e.props.emulateTouch && e.setState({
1033
1033
  cancelClick: !0
1034
1034
  });
1035
- }), c(p(e), "onSwipeBackwards", function() {
1035
+ }), c(d(e), "onSwipeBackwards", function() {
1036
1036
  e.decrement(1), e.props.emulateTouch && e.setState({
1037
1037
  cancelClick: !0
1038
1038
  });
1039
- }), c(p(e), "changeItem", function(a) {
1039
+ }), c(d(e), "changeItem", function(a) {
1040
1040
  return function(s) {
1041
1041
  (!(0, H.isKeyboardEvent)(s) || s.key === "Enter") && e.moveTo(a);
1042
1042
  };
1043
- }), c(p(e), "selectItem", function(a) {
1043
+ }), c(d(e), "selectItem", function(a) {
1044
1044
  e.setState(I({
1045
1045
  previousItem: e.state.selectedItem
1046
1046
  }, a), function() {
1047
1047
  e.setState(e.animationHandler(e.props, e.state));
1048
- }), e.handleOnChange(a.selectedItem, w.Children.toArray(e.props.children)[a.selectedItem]);
1049
- }), c(p(e), "getInitialImage", function() {
1048
+ }), e.handleOnChange(a.selectedItem, y.Children.toArray(e.props.children)[a.selectedItem]);
1049
+ }), c(d(e), "getInitialImage", function() {
1050
1050
  var a = e.props.selectedItem, s = e.itemsRef && e.itemsRef[a], f = s && s.getElementsByTagName("img") || [];
1051
1051
  return f[0];
1052
- }), c(p(e), "getVariableItemHeight", function(a) {
1052
+ }), c(d(e), "getVariableItemHeight", function(a) {
1053
1053
  var s = e.itemsRef && e.itemsRef[a];
1054
1054
  if (e.state.hasMount && s && s.children.length) {
1055
1055
  var f = s.children[0].getElementsByTagName("img") || [];
@@ -1085,7 +1085,7 @@ var ve = /* @__PURE__ */ function(t) {
1085
1085
  };
1086
1086
  return e.animationHandler = typeof i.animationHandler == "function" && i.animationHandler || i.animationHandler === "fade" && Q.fadeAnimationHandler || Q.slideAnimationHandler, e.state = I(I({}, o), e.animationHandler(i, o)), e;
1087
1087
  }
1088
- return gt(r, [{
1088
+ return bt(r, [{
1089
1089
  key: "componentDidMount",
1090
1090
  value: function() {
1091
1091
  this.props.children && this.setupCarousel();
@@ -1106,7 +1106,7 @@ var ve = /* @__PURE__ */ function(t) {
1106
1106
  key: "setupCarousel",
1107
1107
  value: function() {
1108
1108
  var e = this;
1109
- this.bindEvents(), this.state.autoPlay && w.Children.count(this.props.children) > 1 && this.setupAutoPlay(), this.props.autoFocus && this.forceFocus(), this.setState({
1109
+ this.bindEvents(), this.state.autoPlay && y.Children.count(this.props.children) > 1 && this.setupAutoPlay(), this.props.autoFocus && this.forceFocus(), this.setState({
1110
1110
  initialized: !0
1111
1111
  }, function() {
1112
1112
  var o = e.getInitialImage();
@@ -1154,7 +1154,7 @@ var ve = /* @__PURE__ */ function(t) {
1154
1154
  key: "renderItems",
1155
1155
  value: function(e) {
1156
1156
  var o = this;
1157
- return this.props.children ? w.Children.map(this.props.children, function(a, s) {
1157
+ return this.props.children ? y.Children.map(this.props.children, function(a, s) {
1158
1158
  var f = s === o.state.selectedItem, h = s === o.state.previousItem, m = f && o.state.selectedStyle || h && o.state.prevStyle || o.state.slideStyle || {};
1159
1159
  o.props.centerMode && o.props.axis === "horizontal" && (m = I(I({}, m), {}, {
1160
1160
  minWidth: o.props.centerSlidePercentage + "%"
@@ -1166,11 +1166,11 @@ var ve = /* @__PURE__ */ function(t) {
1166
1166
  return o.setItemsRef(b, s);
1167
1167
  },
1168
1168
  key: "itemKey" + s + (e ? "clone" : ""),
1169
- className: D.default.ITEM(!0, s === o.state.selectedItem, s === o.state.previousItem),
1169
+ className: k.default.ITEM(!0, s === o.state.selectedItem, s === o.state.previousItem),
1170
1170
  onClick: o.handleClickItem.bind(o, s, a),
1171
1171
  style: m
1172
1172
  };
1173
- return /* @__PURE__ */ w.default.createElement("li", v, o.props.renderItem(a, {
1173
+ return /* @__PURE__ */ y.default.createElement("li", v, o.props.renderItem(a, {
1174
1174
  isSelected: s === o.state.selectedItem,
1175
1175
  isPrevious: s === o.state.previousItem
1176
1176
  }));
@@ -1180,23 +1180,23 @@ var ve = /* @__PURE__ */ function(t) {
1180
1180
  key: "renderControls",
1181
1181
  value: function() {
1182
1182
  var e = this, o = this.props, a = o.showIndicators, s = o.labels, f = o.renderIndicator, h = o.children;
1183
- return a ? /* @__PURE__ */ w.default.createElement("ul", {
1183
+ return a ? /* @__PURE__ */ y.default.createElement("ul", {
1184
1184
  className: "control-dots"
1185
- }, w.Children.map(h, function(m, v) {
1185
+ }, y.Children.map(h, function(m, v) {
1186
1186
  return f && f(e.changeItem(v), v === e.state.selectedItem, v, s.item);
1187
1187
  })) : null;
1188
1188
  }
1189
1189
  }, {
1190
1190
  key: "renderStatus",
1191
1191
  value: function() {
1192
- return this.props.showStatus ? /* @__PURE__ */ w.default.createElement("p", {
1192
+ return this.props.showStatus ? /* @__PURE__ */ y.default.createElement("p", {
1193
1193
  className: "carousel-status"
1194
- }, this.props.statusFormatter(this.state.selectedItem + 1, w.Children.count(this.props.children))) : null;
1194
+ }, this.props.statusFormatter(this.state.selectedItem + 1, y.Children.count(this.props.children))) : null;
1195
1195
  }
1196
1196
  }, {
1197
1197
  key: "renderThumbs",
1198
1198
  value: function() {
1199
- return !this.props.showThumbs || !this.props.children || w.Children.count(this.props.children) === 0 ? null : /* @__PURE__ */ w.default.createElement(vt.default, {
1199
+ return !this.props.showThumbs || !this.props.children || y.Children.count(this.props.children) === 0 ? null : /* @__PURE__ */ y.default.createElement(yt.default, {
1200
1200
  ref: this.setThumbsRef,
1201
1201
  onSelectItem: this.handleClickThumb,
1202
1202
  selectedItem: this.state.selectedItem,
@@ -1210,45 +1210,45 @@ var ve = /* @__PURE__ */ function(t) {
1210
1210
  key: "render",
1211
1211
  value: function() {
1212
1212
  var e = this;
1213
- if (!this.props.children || w.Children.count(this.props.children) === 0)
1213
+ if (!this.props.children || y.Children.count(this.props.children) === 0)
1214
1214
  return null;
1215
- var o = this.props.swipeable && w.Children.count(this.props.children) > 1, a = this.props.axis === "horizontal", s = this.props.showArrows && w.Children.count(this.props.children) > 1, f = s && (this.state.selectedItem > 0 || this.props.infiniteLoop) || !1, h = s && (this.state.selectedItem < w.Children.count(this.props.children) - 1 || this.props.infiniteLoop) || !1, m = this.renderItems(!0), v = m.shift(), _ = m.pop(), b = {
1216
- className: D.default.SLIDER(!0, this.state.swiping),
1215
+ var o = this.props.swipeable && y.Children.count(this.props.children) > 1, a = this.props.axis === "horizontal", s = this.props.showArrows && y.Children.count(this.props.children) > 1, f = s && (this.state.selectedItem > 0 || this.props.infiniteLoop) || !1, h = s && (this.state.selectedItem < y.Children.count(this.props.children) - 1 || this.props.infiniteLoop) || !1, m = this.renderItems(!0), v = m.shift(), _ = m.pop(), b = {
1216
+ className: k.default.SLIDER(!0, this.state.swiping),
1217
1217
  onSwipeMove: this.onSwipeMove,
1218
1218
  onSwipeStart: this.onSwipeStart,
1219
1219
  onSwipeEnd: this.onSwipeEnd,
1220
1220
  style: this.state.itemListStyle,
1221
1221
  tolerance: this.props.swipeScrollTolerance
1222
- }, T = {};
1222
+ }, E = {};
1223
1223
  if (a) {
1224
1224
  if (b.onSwipeLeft = this.onSwipeForward, b.onSwipeRight = this.onSwipeBackwards, this.props.dynamicHeight) {
1225
1225
  var X = this.getVariableItemHeight(this.state.selectedItem);
1226
- T.height = X || "auto";
1226
+ E.height = X || "auto";
1227
1227
  }
1228
1228
  } else
1229
1229
  b.onSwipeUp = this.props.verticalSwipe === "natural" ? this.onSwipeBackwards : this.onSwipeForward, b.onSwipeDown = this.props.verticalSwipe === "natural" ? this.onSwipeForward : this.onSwipeBackwards, b.style = I(I({}, b.style), {}, {
1230
1230
  height: this.state.itemSize
1231
- }), T.height = this.state.itemSize;
1232
- return /* @__PURE__ */ w.default.createElement("div", {
1231
+ }), E.height = this.state.itemSize;
1232
+ return /* @__PURE__ */ y.default.createElement("div", {
1233
1233
  "aria-label": this.props.ariaLabel,
1234
- className: D.default.ROOT(this.props.className),
1234
+ className: k.default.ROOT(this.props.className),
1235
1235
  ref: this.setCarouselWrapperRef,
1236
1236
  tabIndex: this.props.useKeyboardArrows ? 0 : void 0
1237
- }, /* @__PURE__ */ w.default.createElement("div", {
1238
- className: D.default.CAROUSEL(!0),
1237
+ }, /* @__PURE__ */ y.default.createElement("div", {
1238
+ className: k.default.CAROUSEL(!0),
1239
1239
  style: {
1240
1240
  width: this.props.width
1241
1241
  }
1242
- }, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, f, this.props.labels.leftArrow), /* @__PURE__ */ w.default.createElement("div", {
1243
- className: D.default.WRAPPER(!0, this.props.axis),
1244
- style: T
1245
- }, o ? /* @__PURE__ */ w.default.createElement(mt.default, pe({
1242
+ }, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, f, this.props.labels.leftArrow), /* @__PURE__ */ y.default.createElement("div", {
1243
+ className: k.default.WRAPPER(!0, this.props.axis),
1244
+ style: E
1245
+ }, o ? /* @__PURE__ */ y.default.createElement(vt.default, de({
1246
1246
  tagName: "ul",
1247
1247
  innerRef: this.setListRef
1248
1248
  }, b, {
1249
1249
  allowMouseEvents: this.props.emulateTouch
1250
- }), this.props.infiniteLoop && _, this.renderItems(), this.props.infiniteLoop && v) : /* @__PURE__ */ w.default.createElement("ul", {
1251
- className: D.default.SLIDER(!0, this.state.swiping),
1250
+ }), this.props.infiniteLoop && _, this.renderItems(), this.props.infiniteLoop && v) : /* @__PURE__ */ y.default.createElement("ul", {
1251
+ className: k.default.SLIDER(!0, this.state.swiping),
1252
1252
  ref: function(z) {
1253
1253
  return e.setListRef(z);
1254
1254
  },
@@ -1256,10 +1256,10 @@ var ve = /* @__PURE__ */ function(t) {
1256
1256
  }, this.props.infiniteLoop && _, this.renderItems(), this.props.infiniteLoop && v)), this.props.renderArrowNext(this.onClickNext, h, this.props.labels.rightArrow), this.renderStatus()), this.renderThumbs());
1257
1257
  }
1258
1258
  }]), r;
1259
- }(w.default.Component);
1260
- re.default = ve;
1261
- c(ve, "displayName", "Carousel");
1262
- c(ve, "defaultProps", {
1259
+ }(y.default.Component);
1260
+ re.default = ye;
1261
+ c(ye, "displayName", "Carousel");
1262
+ c(ye, "defaultProps", {
1263
1263
  ariaLabel: void 0,
1264
1264
  axis: "horizontal",
1265
1265
  centerSlidePercentage: 80,
@@ -1281,24 +1281,24 @@ c(ve, "defaultProps", {
1281
1281
  },
1282
1282
  preventMovementUntilSwipeScrollTolerance: !1,
1283
1283
  renderArrowPrev: function(n, r, i) {
1284
- return /* @__PURE__ */ w.default.createElement("button", {
1284
+ return /* @__PURE__ */ y.default.createElement("button", {
1285
1285
  type: "button",
1286
1286
  "aria-label": i,
1287
- className: D.default.ARROW_PREV(!r),
1287
+ className: k.default.ARROW_PREV(!r),
1288
1288
  onClick: n
1289
1289
  });
1290
1290
  },
1291
1291
  renderArrowNext: function(n, r, i) {
1292
- return /* @__PURE__ */ w.default.createElement("button", {
1292
+ return /* @__PURE__ */ y.default.createElement("button", {
1293
1293
  type: "button",
1294
1294
  "aria-label": i,
1295
- className: D.default.ARROW_NEXT(!r),
1295
+ className: k.default.ARROW_NEXT(!r),
1296
1296
  onClick: n
1297
1297
  });
1298
1298
  },
1299
1299
  renderIndicator: function(n, r, i, e) {
1300
- return /* @__PURE__ */ w.default.createElement("li", {
1301
- className: D.default.DOT(r),
1300
+ return /* @__PURE__ */ y.default.createElement("li", {
1301
+ className: k.default.DOT(r),
1302
1302
  onClick: n,
1303
1303
  onKeyDown: n,
1304
1304
  value: i,
@@ -1312,9 +1312,9 @@ c(ve, "defaultProps", {
1312
1312
  return n;
1313
1313
  },
1314
1314
  renderThumbs: function(n) {
1315
- var r = w.Children.map(n, function(i) {
1315
+ var r = y.Children.map(n, function(i) {
1316
1316
  var e = i;
1317
- if (i.type !== "img" && (e = w.Children.toArray(i.props.children).find(function(o) {
1317
+ if (i.type !== "img" && (e = y.Children.toArray(i.props.children).find(function(o) {
1318
1318
  return o.type === "img";
1319
1319
  })), !!e)
1320
1320
  return e;
@@ -1339,7 +1339,7 @@ c(ve, "defaultProps", {
1339
1339
  swipeAnimationHandler: Q.slideSwipeAnimationHandler,
1340
1340
  stopSwipingHandler: Q.slideStopSwipingHandler
1341
1341
  });
1342
- var Rt = {};
1342
+ var Et = {};
1343
1343
  (function(t) {
1344
1344
  Object.defineProperty(t, "__esModule", {
1345
1345
  value: !0
@@ -1359,11 +1359,11 @@ var Rt = {};
1359
1359
  return i.default;
1360
1360
  }
1361
1361
  });
1362
- var n = e(re), r = Rt, i = e(j);
1362
+ var n = e(re), r = Et, i = e(j);
1363
1363
  function e(o) {
1364
1364
  return o && o.__esModule ? o : { default: o };
1365
1365
  }
1366
- })(Oe);
1366
+ })(Re);
1367
1367
  const Tt = te.div`
1368
1368
  position: relative;
1369
1369
 
@@ -1395,11 +1395,12 @@ te.div`
1395
1395
  position: absolute;
1396
1396
  top: 0;
1397
1397
  left: 0;
1398
- background: linear-gradient(
1399
- to bottom,
1400
- rgba(0, 0, 0, 0) 0%,
1398
+ background: ${(t) => he(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1399
+ to top left,
1400
+ rgba(0, 0, 0, 0) 85%,
1401
1401
  rgba(0, 0, 0, 1) 100%
1402
- );
1402
+ )`};
1403
+
1403
1404
  border-radius: 0%.75rem;
1404
1405
 
1405
1406
  width: 100%;
@@ -1434,16 +1435,15 @@ te.div`
1434
1435
  display: none;
1435
1436
  }
1436
1437
  `;
1437
- const Et = te.div`
1438
+ const Mt = te.div`
1438
1439
  position: relative;
1439
1440
  border-radius: 0.75rem;
1440
1441
 
1441
- background: linear-gradient(
1442
- 178deg,
1443
- rgba(0, 0, 0, 0) 1.5%,
1444
- rgba(0, 0, 0, 0.16) 8.95%,
1445
- #000 98.39%
1446
- );
1442
+ background: ${(t) => he(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1443
+ to top left,
1444
+ rgba(0, 0, 0, 0) 85%,
1445
+ rgba(0, 0, 0, 1) 100%
1446
+ )`};
1447
1447
 
1448
1448
  & img {
1449
1449
  object-fit: cover;
@@ -1459,7 +1459,7 @@ const Et = te.div`
1459
1459
  border-radius: unset;
1460
1460
  }
1461
1461
  }
1462
- `, Mt = te.div`
1462
+ `, It = te.div`
1463
1463
  border-radius: 0.75rem;
1464
1464
  position: absolute;
1465
1465
  top: 0;
@@ -1468,11 +1468,11 @@ const Et = te.div`
1468
1468
  width: 100%;
1469
1469
  padding: 3rem 0 3rem 3rem;
1470
1470
 
1471
- background: linear-gradient(
1471
+ background: ${(t) => he(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1472
1472
  to top left,
1473
1473
  rgba(0, 0, 0, 0) 85%,
1474
1474
  rgba(0, 0, 0, 1) 100%
1475
- );
1475
+ )`};
1476
1476
 
1477
1477
  & .banner-content {
1478
1478
  display: flex;
@@ -1508,17 +1508,13 @@ const Et = te.div`
1508
1508
  display: none;
1509
1509
  }
1510
1510
  }
1511
- `, It = Ie(
1512
- ({
1513
- carouselItems: t = [],
1514
- onSelectItem: n = () => {
1515
- },
1516
- onButtonAction: r = () => {
1517
- }
1518
- }, i) => {
1511
+ `, Ct = Ce(
1512
+ ({ carouselItems: t = [], onSelectItem: n = () => {
1513
+ }, onButtonAction: r = () => {
1514
+ } }, i) => {
1519
1515
  const e = De();
1520
1516
  return /* @__PURE__ */ N(Tt, { ref: i, children: /* @__PURE__ */ N(
1521
- Oe.Carousel,
1517
+ Re.Carousel,
1522
1518
  {
1523
1519
  autoPlay: !0,
1524
1520
  infiniteLoop: !0,
@@ -1529,32 +1525,39 @@ const Et = te.div`
1529
1525
  onClickItem: (o) => {
1530
1526
  e || n == null || n(t == null ? void 0 : t.at(o), o);
1531
1527
  },
1532
- children: t && (t == null ? void 0 : t.map((o, a) => /* @__PURE__ */ ue(Et, { children: [
1533
- /* @__PURE__ */ N("img", { loading: "lazy", src: o.imageUrl }),
1534
- /* @__PURE__ */ N(Mt, { children: /* @__PURE__ */ ue("div", { className: "banner-content", children: [
1535
- /* @__PURE__ */ ue("div", { className: "banner-text", children: [
1536
- /* @__PURE__ */ N("div", { className: "banner-title", children: o.title }),
1537
- o.description
1538
- ] }),
1539
- ke(o == null ? void 0 : o.buttonText) && /* @__PURE__ */ N(
1540
- Ae,
1541
- {
1542
- color: "neutral",
1543
- trailingIcon: "arrow-right",
1544
- onClick: () => r(o),
1545
- children: o.buttonText
1546
- }
1547
- )
1548
- ] }) })
1549
- ] }, `banner-${a + 1}`)))
1528
+ children: t && (t == null ? void 0 : t.map((o, a) => /* @__PURE__ */ ue(
1529
+ Mt,
1530
+ {
1531
+ backgroundColor: o == null ? void 0 : o.backgroundColor,
1532
+ children: [
1533
+ /* @__PURE__ */ N("img", { loading: "lazy", src: o.imageUrl }),
1534
+ /* @__PURE__ */ N(It, { backgroundColor: o == null ? void 0 : o.backgroundColor, children: /* @__PURE__ */ ue("div", { className: "banner-content", children: [
1535
+ /* @__PURE__ */ ue("div", { className: "banner-text", children: [
1536
+ /* @__PURE__ */ N("div", { className: "banner-title", children: o.title }),
1537
+ o.description
1538
+ ] }),
1539
+ Ae(o == null ? void 0 : o.buttonText) && /* @__PURE__ */ N(
1540
+ We,
1541
+ {
1542
+ color: "neutral",
1543
+ trailingIcon: "arrow-right",
1544
+ onClick: () => r(o),
1545
+ children: o.buttonText
1546
+ }
1547
+ )
1548
+ ] }) })
1549
+ ]
1550
+ },
1551
+ `banner-${a + 1}`
1552
+ )))
1550
1553
  }
1551
1554
  ) });
1552
1555
  }
1553
1556
  );
1554
- It.propTypes = {
1555
- items: ye.array,
1556
- handleClick: ye.func
1557
+ Ct.propTypes = {
1558
+ items: Se.array,
1559
+ handleClick: Se.func
1557
1560
  };
1558
1561
  export {
1559
- It as default
1562
+ Ct as default
1560
1563
  };