@lanaco/lnc-react-ui 4.0.109 → 4.0.111

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.
Files changed (47) hide show
  1. package/dist/BannerSectionCarousel.cjs +5 -5
  2. package/dist/BannerSectionCarousel.js +150 -155
  3. package/dist/BlogCategoryCardsSection.cjs +1 -1
  4. package/dist/BlogCategoryCardsSection.js +1 -1
  5. package/dist/BlogProductCardsSection.cjs +1 -1
  6. package/dist/BlogProductCardsSection.js +2 -2
  7. package/dist/BlogsSectionDetailed.cjs +6 -9
  8. package/dist/BlogsSectionDetailed.js +9 -12
  9. package/dist/BlogsSectionSimple.cjs +6 -9
  10. package/dist/BlogsSectionSimple.js +23 -26
  11. package/dist/DetailedProductsSection.cjs +2 -2
  12. package/dist/DetailedProductsSection.js +12 -12
  13. package/dist/FieldOfInterestsMasonrySection.cjs +13 -4
  14. package/dist/FieldOfInterestsMasonrySection.js +51 -41
  15. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  16. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +1 -1
  17. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +0 -9
  18. package/dist/FieldOfInterestsWithTagsCardsSection.js +15 -24
  19. package/dist/GeneralWithTagsCardsSection.cjs +3 -12
  20. package/dist/GeneralWithTagsCardsSection.js +5 -14
  21. package/dist/GiftCardsSection.cjs +10 -3
  22. package/dist/GiftCardsSection.js +24 -17
  23. package/dist/LocationSearchSection.cjs +3 -7
  24. package/dist/LocationSearchSection.js +8 -12
  25. package/dist/MasonryGeneralCardsSection.cjs +2 -11
  26. package/dist/MasonryGeneralCardsSection.js +0 -9
  27. package/dist/OverlayGeneralCardsSection.cjs +17 -11
  28. package/dist/OverlayGeneralCardsSection.js +37 -31
  29. package/dist/ProductsWithBannerSection.cjs +5 -11
  30. package/dist/ProductsWithBannerSection.js +8 -14
  31. package/dist/SalesCampaignsSection.cjs +9 -12
  32. package/dist/SalesCampaignsSection.js +22 -25
  33. package/dist/SimpleCategoriesSection.cjs +1 -1
  34. package/dist/SimpleCategoriesSection.js +1 -1
  35. package/dist/SimpleProductsSection.cjs +1 -1
  36. package/dist/SimpleProductsSection.js +2 -2
  37. package/dist/UrgentSaleProductsSection.cjs +1 -1
  38. package/dist/UrgentSaleProductsSection.js +1 -1
  39. package/dist/{index-CEI_JOki.js → index-B2pFbNKc.js} +4 -5
  40. package/dist/{index-B30K8mkW.cjs → index-B_HNDmXL.cjs} +3 -4
  41. package/dist/{suspense-categories-card-simple-Ds6hXZKt.js → suspense-categories-card-simple-BbtBbuWb.js} +15 -17
  42. package/dist/{suspense-categories-card-simple-B5zd-nnm.cjs → suspense-categories-card-simple-CK7XDK4k.cjs} +2 -4
  43. package/dist/{suspense-product-card-detailed-DXwya4fQ.cjs → suspense-product-card-detailed-LcBMp1iw.cjs} +4 -10
  44. package/dist/{suspense-product-card-detailed-bYBpLiXc.js → suspense-product-card-detailed-PArA5O4M.js} +0 -6
  45. package/dist/{suspense-product-card-simple-Ba1UPqgy.cjs → suspense-product-card-simple-CJwnghtt.cjs} +1 -1
  46. package/dist/{suspense-product-card-simple-ib6FLerL.js → suspense-product-card-simple-Z-FddSb-.js} +1 -1
  47. package/package.json +1 -1
@@ -3,13 +3,12 @@ import F, { forwardRef as Ce } from "react";
3
3
  import { c as Oe } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  import { p as Le, P as Se } from "./index-S5Cd7WrG.js";
5
5
  import { a as ke } from "./index-Bq3leL2e.js";
6
- import { u as De } from "./useDetectMobile-Bkvj0VMa.js";
7
6
  import { s as te } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
7
  import { M as ne } from "./consts-BuFChS64.js";
9
8
  import { k as re } from "./utils-BbgAIA9N.js";
10
- import Ae from "./Button.js";
9
+ import De from "./Button.js";
11
10
  var Re = {}, ie = {}, me = {}, fe = {}, ge;
12
- function We() {
11
+ function Ae() {
13
12
  return ge || (ge = 1, function(t) {
14
13
  (function(n, r) {
15
14
  r(t, F, Le);
@@ -144,11 +143,11 @@ function We() {
144
143
  if (this.moveStart) {
145
144
  var g = ue(u), T = g.x, w = g.y, Y = T - this.moveStart.x, we = w - this.moveStart.y;
146
145
  this.moving = !0;
147
- var Ie = this.props.onSwipeMove({
146
+ var Me = this.props.onSwipeMove({
148
147
  x: Y,
149
148
  y: we
150
149
  }, u);
151
- Ie && u.cancelable && u.preventDefault(), this.movePosition = { deltaX: Y, deltaY: we };
150
+ Me && u.cancelable && u.preventDefault(), this.movePosition = { deltaX: Y, deltaY: we };
152
151
  }
153
152
  }
154
153
  }, {
@@ -227,7 +226,7 @@ function We() {
227
226
  }
228
227
  (function(t) {
229
228
  (function(n, r) {
230
- r(t, We());
229
+ r(t, Ae());
231
230
  })(Oe, function(n, r) {
232
231
  Object.defineProperty(n, "__esModule", {
233
232
  value: !0
@@ -246,16 +245,16 @@ Object.defineProperty(K, "__esModule", {
246
245
  value: !0
247
246
  });
248
247
  K.default = void 0;
249
- var D = ze(ke);
250
- function ze(t) {
248
+ var D = We(ke);
249
+ function We(t) {
251
250
  return t && t.__esModule ? t : { default: t };
252
251
  }
253
- function Ne(t, n, r) {
252
+ function ze(t, n, r) {
254
253
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
255
254
  }
256
- var xe = {
255
+ var Ne = {
257
256
  ROOT: function(n) {
258
- return (0, D.default)(Ne({
257
+ return (0, D.default)(ze({
259
258
  "carousel-root": !0
260
259
  }, n || "", !!n));
261
260
  },
@@ -307,41 +306,41 @@ var xe = {
307
306
  });
308
307
  }
309
308
  };
310
- K.default = xe;
309
+ K.default = Ne;
311
310
  var j = {}, oe = {};
312
311
  Object.defineProperty(oe, "__esModule", {
313
312
  value: !0
314
313
  });
315
314
  oe.outerWidth = void 0;
316
- var He = function(n) {
315
+ var xe = function(n) {
317
316
  var r = n.offsetWidth, i = getComputedStyle(n);
318
317
  return r += parseInt(i.marginLeft) + parseInt(i.marginRight), r;
319
318
  };
320
- oe.outerWidth = He;
319
+ oe.outerWidth = xe;
321
320
  var x = {};
322
321
  Object.defineProperty(x, "__esModule", {
323
322
  value: !0
324
323
  });
325
324
  x.default = void 0;
326
- var $e = function(n, r, i) {
325
+ var He = function(n, r, i) {
327
326
  var e = n === 0 ? n : n + r, o = i === "horizontal" ? [e, 0, 0] : [0, e, 0], a = "translate3d", s = "(" + o.join(",") + ")";
328
327
  return a + s;
329
328
  };
330
- x.default = $e;
329
+ x.default = He;
331
330
  var q = {};
332
331
  Object.defineProperty(q, "__esModule", {
333
332
  value: !0
334
333
  });
335
334
  q.default = void 0;
336
- var Ue = function() {
335
+ var $e = function() {
337
336
  return window;
338
337
  };
339
- q.default = Ue;
338
+ q.default = $e;
340
339
  Object.defineProperty(j, "__esModule", {
341
340
  value: !0
342
341
  });
343
342
  j.default = void 0;
344
- var M = je(F), A = ae(K), Fe = oe, be = ae(x), Ke = ae(me), V = ae(q);
343
+ var I = Ke(F), A = ae(K), Ue = oe, be = ae(x), Fe = ae(me), V = ae(q);
345
344
  function ae(t) {
346
345
  return t && t.__esModule ? t : { default: t };
347
346
  }
@@ -352,7 +351,7 @@ function Ee() {
352
351
  return t;
353
352
  }, t;
354
353
  }
355
- function je(t) {
354
+ function Ke(t) {
356
355
  if (t && t.__esModule)
357
356
  return t;
358
357
  if (t === null || $(t) !== "object" && typeof t != "function")
@@ -386,20 +385,20 @@ function ce() {
386
385
  return t;
387
386
  }, ce.apply(this, arguments);
388
387
  }
389
- function qe(t, n) {
388
+ function je(t, n) {
390
389
  if (!(t instanceof n))
391
390
  throw new TypeError("Cannot call a class as a function");
392
391
  }
393
- function Be(t, n) {
392
+ function qe(t, n) {
394
393
  for (var r = 0; r < n.length; r++) {
395
394
  var i = n[r];
396
395
  i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
397
396
  }
398
397
  }
399
- function Xe(t, n, r) {
400
- return n && Be(t.prototype, n), t;
398
+ function Be(t, n, r) {
399
+ return n && qe(t.prototype, n), t;
401
400
  }
402
- function Ye(t, n) {
401
+ function Xe(t, n) {
403
402
  if (typeof n != "function" && n !== null)
404
403
  throw new TypeError("Super expression must either be null or a function");
405
404
  t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && de(t, n);
@@ -409,8 +408,8 @@ function de(t, n) {
409
408
  return i.__proto__ = e, i;
410
409
  }, de(t, n);
411
410
  }
412
- function Ve(t) {
413
- var n = Ze();
411
+ function Ye(t) {
412
+ var n = Ge();
414
413
  return function() {
415
414
  var i = J(t), e;
416
415
  if (n) {
@@ -418,10 +417,10 @@ function Ve(t) {
418
417
  e = Reflect.construct(i, arguments, o);
419
418
  } else
420
419
  e = i.apply(this, arguments);
421
- return Ge(this, e);
420
+ return Ve(this, e);
422
421
  };
423
422
  }
424
- function Ge(t, n) {
423
+ function Ve(t, n) {
425
424
  return n && ($(n) === "object" || typeof n == "function") ? n : O(t);
426
425
  }
427
426
  function O(t) {
@@ -429,7 +428,7 @@ function O(t) {
429
428
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
430
429
  return t;
431
430
  }
432
- function Ze() {
431
+ function Ge() {
433
432
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
434
433
  if (typeof Proxy == "function") return !0;
435
434
  try {
@@ -447,14 +446,14 @@ function J(t) {
447
446
  function P(t, n, r) {
448
447
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
449
448
  }
450
- var Je = function(n) {
449
+ var Ze = function(n) {
451
450
  return n.hasOwnProperty("key");
452
451
  }, ve = /* @__PURE__ */ function(t) {
453
- Ye(r, t);
454
- var n = Ve(r);
452
+ Xe(r, t);
453
+ var n = Ye(r);
455
454
  function r(i) {
456
455
  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) {
456
+ return je(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
457
  e.itemsWrapperRef = o;
459
458
  }), P(O(e), "setItemsListRef", function(o) {
460
459
  e.itemsListRef = o;
@@ -462,7 +461,7 @@ var Je = function(n) {
462
461
  e.thumbsRef || (e.thumbsRef = []), e.thumbsRef[a] = o;
463
462
  }), P(O(e), "updateSizes", function() {
464
463
  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;
464
+ var o = I.Children.count(e.props.children), a = e.itemsWrapperRef.clientWidth, s = e.props.thumbWidth ? e.props.thumbWidth : (0, Ue.outerWidth)(e.thumbsRef[0]), f = Math.floor(a / s), h = f < o, m = h ? o - f : 0;
466
465
  e.setState(function(v, _) {
467
466
  return {
468
467
  itemSize: s,
@@ -474,7 +473,7 @@ var Je = function(n) {
474
473
  });
475
474
  }
476
475
  }), P(O(e), "handleClickItem", function(o, a, s) {
477
- if (!Je(s) || s.key === "Enter") {
476
+ if (!Ze(s) || s.key === "Enter") {
478
477
  var f = e.props.onSelectItem;
479
478
  typeof f == "function" && f(o, a);
480
479
  }
@@ -490,7 +489,7 @@ var Je = function(n) {
490
489
  var a = o.x;
491
490
  if (!e.state.itemSize || !e.itemsWrapperRef || !e.state.visibleItems)
492
491
  return !1;
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;
492
+ var s = 0, f = I.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
493
  h === s && a > 0 && (a = 0), h === v && a < 0 && (a = 0);
495
494
  var _ = e.itemsWrapperRef.clientWidth, b = h + 100 / (_ / a);
496
495
  return e.itemsListRef && ["WebkitTransform", "MozTransform", "MsTransform", "OTransform", "transform", "msTransform"].forEach(function(E) {
@@ -513,7 +512,7 @@ var Je = function(n) {
513
512
  lastPosition: 0
514
513
  }, e;
515
514
  }
516
- return Xe(r, [{
515
+ return Be(r, [{
517
516
  key: "componentDidMount",
518
517
  value: function() {
519
518
  this.setupThumbs();
@@ -565,7 +564,7 @@ var Je = function(n) {
565
564
  width: e.props.thumbWidth
566
565
  }
567
566
  };
568
- return /* @__PURE__ */ M.default.createElement("li", ce({}, f, {
567
+ return /* @__PURE__ */ I.default.createElement("li", ce({}, f, {
569
568
  role: "button",
570
569
  tabIndex: 0
571
570
  }), o);
@@ -577,7 +576,7 @@ var Je = function(n) {
577
576
  var e = this;
578
577
  if (!this.props.children)
579
578
  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, be.default)(h, "px", this.props.axis), v = this.props.transitionTime + "ms";
579
+ var o = I.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
580
  return f = {
582
581
  WebkitTransform: m,
583
582
  MozTransform: m,
@@ -591,19 +590,19 @@ var Je = function(n) {
591
590
  OTransitionDuration: v,
592
591
  transitionDuration: v,
593
592
  msTransitionDuration: v
594
- }, /* @__PURE__ */ M.default.createElement("div", {
593
+ }, /* @__PURE__ */ I.default.createElement("div", {
595
594
  className: A.default.CAROUSEL(!1)
596
- }, /* @__PURE__ */ M.default.createElement("div", {
595
+ }, /* @__PURE__ */ I.default.createElement("div", {
597
596
  className: A.default.WRAPPER(!1),
598
597
  ref: this.setItemsWrapperRef
599
- }, /* @__PURE__ */ M.default.createElement("button", {
598
+ }, /* @__PURE__ */ I.default.createElement("button", {
600
599
  type: "button",
601
600
  className: A.default.ARROW_PREV(!a),
602
601
  onClick: function() {
603
602
  return e.slideRight();
604
603
  },
605
604
  "aria-label": this.props.labels.leftArrow
606
- }), o ? /* @__PURE__ */ M.default.createElement(Ke.default, {
605
+ }), o ? /* @__PURE__ */ I.default.createElement(Fe.default, {
607
606
  tagName: "ul",
608
607
  className: A.default.SLIDER(!1, this.state.swiping),
609
608
  onSwipeLeft: this.slideLeft,
@@ -614,13 +613,13 @@ var Je = function(n) {
614
613
  style: f,
615
614
  innerRef: this.setItemsListRef,
616
615
  allowMouseEvents: this.props.emulateTouch
617
- }, this.renderItems()) : /* @__PURE__ */ M.default.createElement("ul", {
616
+ }, this.renderItems()) : /* @__PURE__ */ I.default.createElement("ul", {
618
617
  className: A.default.SLIDER(!1, this.state.swiping),
619
618
  ref: function(b) {
620
619
  return e.setItemsListRef(b);
621
620
  },
622
621
  style: f
623
- }, this.renderItems()), /* @__PURE__ */ M.default.createElement("button", {
622
+ }, this.renderItems()), /* @__PURE__ */ I.default.createElement("button", {
624
623
  type: "button",
625
624
  className: A.default.ARROW_NEXT(!s),
626
625
  onClick: function() {
@@ -630,7 +629,7 @@ var Je = function(n) {
630
629
  })));
631
630
  }
632
631
  }]), r;
633
- }(M.Component);
632
+ }(I.Component);
634
633
  j.default = ve;
635
634
  P(ve, "displayName", "Thumbs");
636
635
  P(ve, "defaultProps", {
@@ -649,55 +648,55 @@ Object.defineProperty(se, "__esModule", {
649
648
  value: !0
650
649
  });
651
650
  se.default = void 0;
652
- var Qe = function() {
651
+ var Je = function() {
653
652
  return document;
654
653
  };
655
- se.default = Qe;
654
+ se.default = Je;
656
655
  var R = {};
657
656
  Object.defineProperty(R, "__esModule", {
658
657
  value: !0
659
658
  });
660
659
  R.setPosition = R.getPosition = R.isKeyboardEvent = R.defaultStatusFormatter = R.noop = void 0;
661
- var et = F, tt = nt(x);
662
- function nt(t) {
660
+ var Qe = F, et = tt(x);
661
+ function tt(t) {
663
662
  return t && t.__esModule ? t : { default: t };
664
663
  }
665
- var rt = function() {
664
+ var nt = function() {
666
665
  };
667
- R.noop = rt;
668
- var it = function(n, r) {
666
+ R.noop = nt;
667
+ var rt = function(n, r) {
669
668
  return "".concat(n, " of ").concat(r);
670
669
  };
671
- R.defaultStatusFormatter = it;
672
- var ot = function(n) {
670
+ R.defaultStatusFormatter = rt;
671
+ var it = function(n) {
673
672
  return n ? n.hasOwnProperty("key") : !1;
674
673
  };
675
- R.isKeyboardEvent = ot;
676
- var at = function(n, r) {
674
+ R.isKeyboardEvent = it;
675
+ var ot = function(n, r) {
677
676
  if (r.infiniteLoop && ++n, n === 0)
678
677
  return 0;
679
- var i = et.Children.count(r.children);
678
+ var i = Qe.Children.count(r.children);
680
679
  if (r.centerMode && r.axis === "horizontal") {
681
680
  var e = -n * r.centerSlidePercentage, o = i - 1;
682
681
  return n && (n !== o || r.infiniteLoop) ? e += (100 - r.centerSlidePercentage) / 2 : n === o && (e += 100 - r.centerSlidePercentage), e;
683
682
  }
684
683
  return -n * 100;
685
684
  };
686
- R.getPosition = at;
687
- var st = function(n, r) {
685
+ R.getPosition = ot;
686
+ var at = function(n, r) {
688
687
  var i = {};
689
688
  return ["WebkitTransform", "MozTransform", "MsTransform", "OTransform", "transform", "msTransform"].forEach(function(e) {
690
- i[e] = (0, tt.default)(n, "%", r);
689
+ i[e] = (0, et.default)(n, "%", r);
691
690
  }), i;
692
691
  };
693
- R.setPosition = st;
692
+ R.setPosition = at;
694
693
  var C = {};
695
694
  Object.defineProperty(C, "__esModule", {
696
695
  value: !0
697
696
  });
698
697
  C.fadeAnimationHandler = C.slideStopSwipingHandler = C.slideSwipeAnimationHandler = C.slideAnimationHandler = void 0;
699
- var Te = F, ut = lt(x), L = R;
700
- function lt(t) {
698
+ var Te = F, st = ut(x), L = R;
699
+ function ut(t) {
701
700
  return t && t.__esModule ? t : { default: t };
702
701
  }
703
702
  function _e(t, n) {
@@ -714,21 +713,21 @@ function W(t) {
714
713
  for (var n = 1; n < arguments.length; n++) {
715
714
  var r = arguments[n] != null ? arguments[n] : {};
716
715
  n % 2 ? _e(Object(r), !0).forEach(function(i) {
717
- ft(t, i, r[i]);
716
+ lt(t, i, r[i]);
718
717
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : _e(Object(r)).forEach(function(i) {
719
718
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(r, i));
720
719
  });
721
720
  }
722
721
  return t;
723
722
  }
724
- function ft(t, n, r) {
723
+ function lt(t, n, r) {
725
724
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
726
725
  }
727
- var ct = function(n, r) {
726
+ var ft = function(n, r) {
728
727
  var i = {}, e = r.selectedItem, o = e, a = Te.Children.count(n.children) - 1, s = n.infiniteLoop && (e < 0 || e > a);
729
728
  if (s)
730
729
  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";
730
+ var f = (0, L.getPosition)(e, n), h = (0, st.default)(f, "%", n.axis), m = n.transitionTime + "ms";
732
731
  return i.itemListStyle = {
733
732
  WebkitTransform: h,
734
733
  msTransform: h,
@@ -742,8 +741,8 @@ var ct = function(n, r) {
742
741
  msTransitionDuration: m
743
742
  })), i;
744
743
  };
745
- C.slideAnimationHandler = ct;
746
- var dt = function(n, r, i, e) {
744
+ C.slideAnimationHandler = ft;
745
+ var ct = function(n, r, i, e) {
747
746
  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
747
  h === f && v > 0 && (_ = 0), h === m && v < 0 && (_ = 0);
749
748
  var b = h + 100 / (i.itemSize / _), E = Math.abs(v) > r.swipeScrollTolerance;
@@ -753,15 +752,15 @@ var dt = function(n, r, i, e) {
753
752
  cancelClick: !0
754
753
  }), o;
755
754
  };
756
- C.slideSwipeAnimationHandler = dt;
757
- var pt = function(n, r) {
755
+ C.slideSwipeAnimationHandler = ct;
756
+ var dt = function(n, r) {
758
757
  var i = (0, L.getPosition)(r.selectedItem, n), e = (0, L.setPosition)(i, n.axis);
759
758
  return {
760
759
  itemListStyle: e
761
760
  };
762
761
  };
763
- C.slideStopSwipingHandler = pt;
764
- var ht = function(n, r) {
762
+ C.slideStopSwipingHandler = dt;
763
+ var pt = function(n, r) {
765
764
  var i = n.transitionTime + "ms", e = "ease-in-out", o = {
766
765
  position: "absolute",
767
766
  display: "block",
@@ -793,28 +792,28 @@ var ht = function(n, r) {
793
792
  prevStyle: W({}, o)
794
793
  };
795
794
  };
796
- C.fadeAnimationHandler = ht;
795
+ C.fadeAnimationHandler = pt;
797
796
  Object.defineProperty(ie, "__esModule", {
798
797
  value: !0
799
798
  });
800
799
  ie.default = void 0;
801
- var y = yt(F), mt = B(me), k = B(K), vt = B(j), G = B(se), Z = B(q), H = R, Q = C;
800
+ var y = vt(F), ht = B(me), k = B(K), mt = B(j), G = B(se), Z = B(q), H = R, Q = C;
802
801
  function B(t) {
803
802
  return t && t.__esModule ? t : { default: t };
804
803
  }
805
- function Me() {
804
+ function Ie() {
806
805
  if (typeof WeakMap != "function") return null;
807
806
  var t = /* @__PURE__ */ new WeakMap();
808
- return Me = function() {
807
+ return Ie = function() {
809
808
  return t;
810
809
  }, t;
811
810
  }
812
- function yt(t) {
811
+ function vt(t) {
813
812
  if (t && t.__esModule)
814
813
  return t;
815
814
  if (t === null || U(t) !== "object" && typeof t != "function")
816
815
  return { default: t };
817
- var n = Me();
816
+ var n = Ie();
818
817
  if (n && n.has(t))
819
818
  return n.get(t);
820
819
  var r = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
@@ -853,7 +852,7 @@ function Pe(t, n) {
853
852
  }
854
853
  return r;
855
854
  }
856
- function I(t) {
855
+ function M(t) {
857
856
  for (var n = 1; n < arguments.length; n++) {
858
857
  var r = arguments[n] != null ? arguments[n] : {};
859
858
  n % 2 ? Pe(Object(r), !0).forEach(function(i) {
@@ -864,20 +863,20 @@ function I(t) {
864
863
  }
865
864
  return t;
866
865
  }
867
- function wt(t, n) {
866
+ function yt(t, n) {
868
867
  if (!(t instanceof n))
869
868
  throw new TypeError("Cannot call a class as a function");
870
869
  }
871
- function St(t, n) {
870
+ function wt(t, n) {
872
871
  for (var r = 0; r < n.length; r++) {
873
872
  var i = n[r];
874
873
  i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
875
874
  }
876
875
  }
877
- function gt(t, n, r) {
878
- return n && St(t.prototype, n), t;
876
+ function St(t, n, r) {
877
+ return n && wt(t.prototype, n), t;
879
878
  }
880
- function bt(t, n) {
879
+ function gt(t, n) {
881
880
  if (typeof n != "function" && n !== null)
882
881
  throw new TypeError("Super expression must either be null or a function");
883
882
  t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && he(t, n);
@@ -887,8 +886,8 @@ function he(t, n) {
887
886
  return i.__proto__ = e, i;
888
887
  }, he(t, n);
889
888
  }
890
- function _t(t) {
891
- var n = Ot();
889
+ function bt(t) {
890
+ var n = Pt();
892
891
  return function() {
893
892
  var i = ee(t), e;
894
893
  if (n) {
@@ -896,10 +895,10 @@ function _t(t) {
896
895
  e = Reflect.construct(i, arguments, o);
897
896
  } else
898
897
  e = i.apply(this, arguments);
899
- return Pt(this, e);
898
+ return _t(this, e);
900
899
  };
901
900
  }
902
- function Pt(t, n) {
901
+ function _t(t, n) {
903
902
  return n && (U(n) === "object" || typeof n == "function") ? n : d(t);
904
903
  }
905
904
  function d(t) {
@@ -907,7 +906,7 @@ function d(t) {
907
906
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
908
907
  return t;
909
908
  }
910
- function Ot() {
909
+ function Pt() {
911
910
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
912
911
  if (typeof Proxy == "function") return !0;
913
912
  try {
@@ -926,11 +925,11 @@ function c(t, n, r) {
926
925
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
927
926
  }
928
927
  var ye = /* @__PURE__ */ function(t) {
929
- bt(r, t);
930
- var n = _t(r);
928
+ gt(r, t);
929
+ var n = bt(r);
931
930
  function r(i) {
932
931
  var e;
933
- wt(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) {
932
+ yt(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
933
  e.thumbsRef = a;
935
934
  }), c(d(e), "setCarouselWrapperRef", function(a) {
936
935
  e.carouselWrapperRef = a;
@@ -1009,7 +1008,7 @@ var ye = /* @__PURE__ */ function(t) {
1009
1008
  }), c(d(e), "onSwipeMove", function(a, s) {
1010
1009
  e.props.onSwipeMove(s);
1011
1010
  var f = e.props.swipeAnimationHandler(a, e.props, e.state, e.setState.bind(d(e)));
1012
- return e.setState(I({}, f)), !!Object.keys(f).length;
1011
+ return e.setState(M({}, f)), !!Object.keys(f).length;
1013
1012
  }), c(d(e), "decrement", function() {
1014
1013
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
1015
1014
  e.moveTo(e.state.selectedItem - (typeof a == "number" ? a : 1));
@@ -1041,7 +1040,7 @@ var ye = /* @__PURE__ */ function(t) {
1041
1040
  (!(0, H.isKeyboardEvent)(s) || s.key === "Enter") && e.moveTo(a);
1042
1041
  };
1043
1042
  }), c(d(e), "selectItem", function(a) {
1044
- e.setState(I({
1043
+ e.setState(M({
1045
1044
  previousItem: e.state.selectedItem
1046
1045
  }, a), function() {
1047
1046
  e.setState(e.animationHandler(e.props, e.state));
@@ -1083,9 +1082,9 @@ var ye = /* @__PURE__ */ function(t) {
1083
1082
  selectedStyle: {},
1084
1083
  prevStyle: {}
1085
1084
  };
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;
1085
+ return e.animationHandler = typeof i.animationHandler == "function" && i.animationHandler || i.animationHandler === "fade" && Q.fadeAnimationHandler || Q.slideAnimationHandler, e.state = M(M({}, o), e.animationHandler(i, o)), e;
1087
1086
  }
1088
- return gt(r, [{
1087
+ return St(r, [{
1089
1088
  key: "componentDidMount",
1090
1089
  value: function() {
1091
1090
  this.props.children && this.setupCarousel();
@@ -1093,7 +1092,7 @@ var ye = /* @__PURE__ */ function(t) {
1093
1092
  }, {
1094
1093
  key: "componentDidUpdate",
1095
1094
  value: function(e, o) {
1096
- !e.children && this.props.children && !this.state.initialized && this.setupCarousel(), !e.autoFocus && this.props.autoFocus && this.forceFocus(), o.swiping && !this.state.swiping && this.setState(I({}, this.props.stopSwipingHandler(this.props, this.state))), (e.selectedItem !== this.props.selectedItem || e.centerMode !== this.props.centerMode) && (this.updateSizes(), this.moveTo(this.props.selectedItem)), e.autoPlay !== this.props.autoPlay && (this.props.autoPlay ? this.setupAutoPlay() : this.destroyAutoPlay(), this.setState({
1095
+ !e.children && this.props.children && !this.state.initialized && this.setupCarousel(), !e.autoFocus && this.props.autoFocus && this.forceFocus(), o.swiping && !this.state.swiping && this.setState(M({}, this.props.stopSwipingHandler(this.props, this.state))), (e.selectedItem !== this.props.selectedItem || e.centerMode !== this.props.centerMode) && (this.updateSizes(), this.moveTo(this.props.selectedItem)), e.autoPlay !== this.props.autoPlay && (this.props.autoPlay ? this.setupAutoPlay() : this.destroyAutoPlay(), this.setState({
1097
1096
  autoPlay: this.props.autoPlay
1098
1097
  }));
1099
1098
  }
@@ -1156,9 +1155,9 @@ var ye = /* @__PURE__ */ function(t) {
1156
1155
  var o = this;
1157
1156
  return this.props.children ? y.Children.map(this.props.children, function(a, s) {
1158
1157
  var f = s === o.state.selectedItem, h = s === o.state.previousItem, m = f && o.state.selectedStyle || h && o.state.prevStyle || o.state.slideStyle || {};
1159
- o.props.centerMode && o.props.axis === "horizontal" && (m = I(I({}, m), {}, {
1158
+ o.props.centerMode && o.props.axis === "horizontal" && (m = M(M({}, m), {}, {
1160
1159
  minWidth: o.props.centerSlidePercentage + "%"
1161
- })), o.state.swiping && o.state.swipeMovementStarted && (m = I(I({}, m), {}, {
1160
+ })), o.state.swiping && o.state.swipeMovementStarted && (m = M(M({}, m), {}, {
1162
1161
  pointerEvents: "none"
1163
1162
  }));
1164
1163
  var v = {
@@ -1196,7 +1195,7 @@ var ye = /* @__PURE__ */ function(t) {
1196
1195
  }, {
1197
1196
  key: "renderThumbs",
1198
1197
  value: function() {
1199
- return !this.props.showThumbs || !this.props.children || y.Children.count(this.props.children) === 0 ? null : /* @__PURE__ */ y.default.createElement(vt.default, {
1198
+ return !this.props.showThumbs || !this.props.children || y.Children.count(this.props.children) === 0 ? null : /* @__PURE__ */ y.default.createElement(mt.default, {
1200
1199
  ref: this.setThumbsRef,
1201
1200
  onSelectItem: this.handleClickThumb,
1202
1201
  selectedItem: this.state.selectedItem,
@@ -1226,7 +1225,7 @@ var ye = /* @__PURE__ */ function(t) {
1226
1225
  E.height = X || "auto";
1227
1226
  }
1228
1227
  } else
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), {}, {
1228
+ b.onSwipeUp = this.props.verticalSwipe === "natural" ? this.onSwipeBackwards : this.onSwipeForward, b.onSwipeDown = this.props.verticalSwipe === "natural" ? this.onSwipeForward : this.onSwipeBackwards, b.style = M(M({}, b.style), {}, {
1230
1229
  height: this.state.itemSize
1231
1230
  }), E.height = this.state.itemSize;
1232
1231
  return /* @__PURE__ */ y.default.createElement("div", {
@@ -1242,7 +1241,7 @@ var ye = /* @__PURE__ */ function(t) {
1242
1241
  }, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, f, this.props.labels.leftArrow), /* @__PURE__ */ y.default.createElement("div", {
1243
1242
  className: k.default.WRAPPER(!0, this.props.axis),
1244
1243
  style: E
1245
- }, o ? /* @__PURE__ */ y.default.createElement(mt.default, pe({
1244
+ }, o ? /* @__PURE__ */ y.default.createElement(ht.default, pe({
1246
1245
  tagName: "ul",
1247
1246
  innerRef: this.setListRef
1248
1247
  }, b, {
@@ -1339,7 +1338,7 @@ c(ye, "defaultProps", {
1339
1338
  swipeAnimationHandler: Q.slideSwipeAnimationHandler,
1340
1339
  stopSwipingHandler: Q.slideStopSwipingHandler
1341
1340
  });
1342
- var Rt = {};
1341
+ var Ot = {};
1343
1342
  (function(t) {
1344
1343
  Object.defineProperty(t, "__esModule", {
1345
1344
  value: !0
@@ -1359,12 +1358,12 @@ var Rt = {};
1359
1358
  return i.default;
1360
1359
  }
1361
1360
  });
1362
- var n = e(ie), r = Rt, i = e(j);
1361
+ var n = e(ie), r = Ot, i = e(j);
1363
1362
  function e(o) {
1364
1363
  return o && o.__esModule ? o : { default: o };
1365
1364
  }
1366
1365
  })(Re);
1367
- const Et = te.div`
1366
+ const Rt = te.div`
1368
1367
  position: relative;
1369
1368
 
1370
1369
  & .image-carousel {
@@ -1435,9 +1434,10 @@ te.div`
1435
1434
  display: none;
1436
1435
  }
1437
1436
  `;
1438
- const Tt = te.div`
1437
+ const Et = te.div`
1439
1438
  position: relative;
1440
1439
  border-radius: 0.75rem;
1440
+ cursor: pointer;
1441
1441
 
1442
1442
  background: ${(t) => re(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1443
1443
  to top left,
@@ -1468,13 +1468,12 @@ const Tt = te.div`
1468
1468
 
1469
1469
  @media (max-width: ${ne + "px"}) {
1470
1470
  border-radius: unset;
1471
- cursor: pointer;
1472
1471
 
1473
1472
  & img {
1474
1473
  border-radius: unset;
1475
1474
  }
1476
1475
  }
1477
- `, Mt = te.div`
1476
+ `, Tt = te.div`
1478
1477
  border-radius: 0.75rem;
1479
1478
  position: absolute;
1480
1479
  top: 0;
@@ -1526,51 +1525,47 @@ const Tt = te.div`
1526
1525
  `, It = Ce(
1527
1526
  ({ carouselItems: t = [], onSelectItem: n = () => {
1528
1527
  }, onButtonAction: r = () => {
1529
- } }, i) => {
1530
- const e = De();
1531
- return /* @__PURE__ */ N(Et, { ref: i, children: /* @__PURE__ */ N(
1532
- Re.Carousel,
1533
- {
1534
- autoPlay: !0,
1535
- infiniteLoop: !0,
1536
- showArrows: !1,
1537
- showStatus: !1,
1538
- showThumbs: !1,
1539
- transitionTime: 500,
1540
- onClickItem: (o) => {
1541
- e && n(t == null ? void 0 : t[o]);
1528
+ } }, i) => /* @__PURE__ */ N(Rt, { ref: i, children: /* @__PURE__ */ N(
1529
+ Re.Carousel,
1530
+ {
1531
+ autoPlay: !0,
1532
+ infiniteLoop: !0,
1533
+ showArrows: !1,
1534
+ showStatus: !1,
1535
+ showThumbs: !1,
1536
+ transitionTime: 500,
1537
+ onClickItem: (e) => {
1538
+ n(t == null ? void 0 : t[e]);
1539
+ },
1540
+ children: t && (t == null ? void 0 : t.map((e, o) => /* @__PURE__ */ le(
1541
+ Et,
1542
+ {
1543
+ backgroundColor: e == null ? void 0 : e.backgroundColor,
1544
+ children: [
1545
+ /* @__PURE__ */ N("img", { loading: "lazy", src: e.imageUrl }),
1546
+ /* @__PURE__ */ N(Tt, { backgroundColor: e == null ? void 0 : e.backgroundColor, children: /* @__PURE__ */ le("div", { className: "banner-content", children: [
1547
+ /* @__PURE__ */ le("div", { className: "banner-text", children: [
1548
+ /* @__PURE__ */ N("div", { className: "banner-title", children: e.title }),
1549
+ e.description
1550
+ ] }),
1551
+ re(e == null ? void 0 : e.buttonText) && /* @__PURE__ */ N(
1552
+ De,
1553
+ {
1554
+ color: "neutral",
1555
+ className: "banner-action",
1556
+ onClick: (a) => {
1557
+ a == null || a.stopPropagation(), r(e);
1558
+ },
1559
+ children: e.buttonText
1560
+ }
1561
+ )
1562
+ ] }) })
1563
+ ]
1542
1564
  },
1543
- children: t && (t == null ? void 0 : t.map((o, a) => /* @__PURE__ */ le(
1544
- Tt,
1545
- {
1546
- backgroundColor: o == null ? void 0 : o.backgroundColor,
1547
- children: [
1548
- /* @__PURE__ */ N("img", { loading: "lazy", src: o.imageUrl }),
1549
- /* @__PURE__ */ N(Mt, { backgroundColor: o == null ? void 0 : o.backgroundColor, children: /* @__PURE__ */ le("div", { className: "banner-content", children: [
1550
- /* @__PURE__ */ le("div", { className: "banner-text", children: [
1551
- /* @__PURE__ */ N("div", { className: "banner-title", children: o.title }),
1552
- o.description
1553
- ] }),
1554
- re(o == null ? void 0 : o.buttonText) && /* @__PURE__ */ N(
1555
- Ae,
1556
- {
1557
- color: "neutral",
1558
- className: "banner-action",
1559
- onClick: (s) => {
1560
- var f;
1561
- (f = s == null ? void 0 : s.target) == null || f.blur(), r(o);
1562
- },
1563
- children: o.buttonText
1564
- }
1565
- )
1566
- ] }) })
1567
- ]
1568
- },
1569
- `banner-${a + 1}`
1570
- )))
1571
- }
1572
- ) });
1573
- }
1565
+ `banner-${o + 1}`
1566
+ )))
1567
+ }
1568
+ ) })
1574
1569
  );
1575
1570
  It.propTypes = {
1576
1571
  items: Se.array,