react-spring-carousel 3.0.0-beta090.31 → 3.0.0-beta090.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -10,7 +10,7 @@ var A = {}, Cr = {
10
10
  set exports(n) {
11
11
  A = n;
12
12
  }
13
- }, Be = {};
13
+ }, Ue = {};
14
14
  /**
15
15
  * @license React
16
16
  * react-jsx-runtime.production.min.js
@@ -23,7 +23,7 @@ var A = {}, Cr = {
23
23
  var cr;
24
24
  function Ir() {
25
25
  if (cr)
26
- return Be;
26
+ return Ue;
27
27
  cr = 1;
28
28
  var n = lr, p = Symbol.for("react.element"), y = Symbol.for("react.fragment"), D = Object.prototype.hasOwnProperty, Y = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
29
29
  function T(l, f, d) {
@@ -36,7 +36,7 @@ function Ir() {
36
36
  q[W] === void 0 && (q[W] = f[W]);
37
37
  return { $$typeof: p, type: l, key: _, ref: u, props: q, _owner: Y.current };
38
38
  }
39
- return Be.Fragment = y, Be.jsx = T, Be.jsxs = T, Be;
39
+ return Ue.Fragment = y, Ue.jsx = T, Ue.jsxs = T, Ue;
40
40
  }
41
41
  var qe = {};
42
42
  /**
@@ -51,11 +51,11 @@ var qe = {};
51
51
  var sr;
52
52
  function Pr() {
53
53
  return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
54
- var n = lr, p = Symbol.for("react.element"), y = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), U = Symbol.iterator, x = "@@iterator";
54
+ var n = lr, p = Symbol.for("react.element"), y = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), B = Symbol.iterator, x = "@@iterator";
55
55
  function ae(e) {
56
56
  if (e === null || typeof e != "object")
57
57
  return null;
58
- var t = U && e[U] || e[x];
58
+ var t = B && e[B] || e[x];
59
59
  return typeof t == "function" ? t : null;
60
60
  }
61
61
  var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -85,7 +85,7 @@ function Pr() {
85
85
  // with.
86
86
  e.$$typeof === ve || e.getModuleId !== void 0));
87
87
  }
88
- function V(e, t, i) {
88
+ function S(e, t, i) {
89
89
  var s = e.displayName;
90
90
  if (s)
91
91
  return s;
@@ -125,7 +125,7 @@ function Pr() {
125
125
  var i = e;
126
126
  return I(i._context) + ".Provider";
127
127
  case f:
128
- return V(e, e.render, "ForwardRef");
128
+ return S(e, e.render, "ForwardRef");
129
129
  case q:
130
130
  var s = e.displayName || null;
131
131
  return s !== null ? s : g(e.type) || "Memo";
@@ -202,7 +202,7 @@ function Pr() {
202
202
  P < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
203
203
  }
204
204
  }
205
- var B = j.ReactCurrentDispatcher, me;
205
+ var U = j.ReactCurrentDispatcher, me;
206
206
  function ce(e, t, i) {
207
207
  {
208
208
  if (me === void 0)
@@ -234,7 +234,7 @@ function Pr() {
234
234
  var b = Error.prepareStackTrace;
235
235
  Error.prepareStackTrace = void 0;
236
236
  var w;
237
- w = B.current, B.current = null, Pe();
237
+ w = U.current, U.current = null, Pe();
238
238
  try {
239
239
  if (t) {
240
240
  var m = function() {
@@ -271,23 +271,23 @@ function Pr() {
271
271
  if (fe && s && typeof fe.stack == "string") {
272
272
  for (var h = fe.stack.split(`
273
273
  `), H = s.stack.split(`
274
- `), N = h.length - 1, S = H.length - 1; N >= 1 && S >= 0 && h[N] !== H[S]; )
275
- S--;
276
- for (; N >= 1 && S >= 0; N--, S--)
277
- if (h[N] !== H[S]) {
278
- if (N !== 1 || S !== 1)
274
+ `), N = h.length - 1, V = H.length - 1; N >= 1 && V >= 0 && h[N] !== H[V]; )
275
+ V--;
276
+ for (; N >= 1 && V >= 0; N--, V--)
277
+ if (h[N] !== H[V]) {
278
+ if (N !== 1 || V !== 1)
279
279
  do
280
- if (N--, S--, S < 0 || h[N] !== H[S]) {
280
+ if (N--, V--, V < 0 || h[N] !== H[V]) {
281
281
  var Q = `
282
282
  ` + h[N].replace(" at new ", " at ");
283
283
  return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && ke.set(e, Q), Q;
284
284
  }
285
- while (N >= 1 && S >= 0);
285
+ while (N >= 1 && V >= 0);
286
286
  break;
287
287
  }
288
288
  }
289
289
  } finally {
290
- We = !1, B.current = w, ue(), Error.prepareStackTrace = b;
290
+ We = !1, U.current = w, ue(), Error.prepareStackTrace = b;
291
291
  }
292
292
  var je = e ? e.displayName || e.name : "", ur = je ? ce(je) : "";
293
293
  return typeof e == "function" && ke.set(e, ur), ur;
@@ -402,13 +402,13 @@ function Pr() {
402
402
  }
403
403
  return e.key !== void 0;
404
404
  }
405
- function Ve(e, t) {
405
+ function Se(e, t) {
406
406
  if (typeof e.ref == "string" && ye.current && t && ye.current.stateNode !== t) {
407
407
  var i = g(ye.current.type);
408
408
  be[i] || (O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', g(ye.current.type), e.ref), be[i] = !0);
409
409
  }
410
410
  }
411
- function Se(e, t) {
411
+ function Ve(e, t) {
412
412
  {
413
413
  var i = function() {
414
414
  ze || (ze = !0, O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
@@ -430,7 +430,7 @@ function Pr() {
430
430
  });
431
431
  }
432
432
  }
433
- var Ue = function(e, t, i, s, b, w, m) {
433
+ var Be = function(e, t, i, s, b, w, m) {
434
434
  var h = {
435
435
  // This tag allows us to uniquely identify this as a React Element
436
436
  $$typeof: p,
@@ -462,7 +462,7 @@ function Pr() {
462
462
  function er(e, t, i, s, b) {
463
463
  {
464
464
  var w, m = {}, h = null, H = null;
465
- i !== void 0 && (Je(i), h = "" + i), xe(t) && (Je(t.key), h = "" + t.key), Ge(t) && (H = t.ref, Ve(t, b));
465
+ i !== void 0 && (Je(i), h = "" + i), xe(t) && (Je(t.key), h = "" + t.key), Ge(t) && (H = t.ref, Se(t, b));
466
466
  for (w in t)
467
467
  G.call(t, w) && !ir.hasOwnProperty(w) && (m[w] = t[w]);
468
468
  if (e && e.defaultProps) {
@@ -471,10 +471,10 @@ function Pr() {
471
471
  m[w] === void 0 && (m[w] = N[w]);
472
472
  }
473
473
  if (h || H) {
474
- var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
475
- h && Se(m, S), H && Ye(m, S);
474
+ var V = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
475
+ h && Ve(m, V), H && Ye(m, V);
476
476
  }
477
- return Ue(e, h, H, b, s, ye.current, m);
477
+ return Be(e, h, H, b, s, ye.current, m);
478
478
  }
479
479
  }
480
480
  var Ie = j.ReactCurrentOwner, Ke = j.ReactDebugCurrentFrame;
@@ -606,9 +606,9 @@ Check the top-level render call using <` + i + ">.");
606
606
  var N;
607
607
  e === null ? N = "null" : X(e) ? N = "array" : e !== void 0 && e.$$typeof === p ? (N = "<" + (g(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : N = typeof e, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, h);
608
608
  }
609
- var S = er(e, t, i, b, w);
610
- if (S == null)
611
- return S;
609
+ var V = er(e, t, i, b, w);
610
+ if (V == null)
611
+ return V;
612
612
  if (m) {
613
613
  var Q = t.children;
614
614
  if (Q !== void 0)
@@ -622,7 +622,7 @@ Check the top-level render call using <` + i + ">.");
622
622
  else
623
623
  Ze(Q, e);
624
624
  }
625
- return e === D ? ar(S) : ie(S), S;
625
+ return e === D ? ar(V) : ie(V), V;
626
626
  }
627
627
  }
628
628
  function pr(e, t, i) {
@@ -727,9 +727,9 @@ function mr({
727
727
  `#thumb-item-${D[_].id}`
728
728
  ) : null;
729
729
  }
730
- const U = u();
731
- if (U && v.current && !Fr(U)) {
732
- const ae = U.offsetLeft, j = ae > f() ? f() : ae;
730
+ const B = u();
731
+ if (B && v.current && !Fr(B)) {
732
+ const ae = B.offsetLeft, j = ae > f() ? f() : ae;
733
733
  l.start({
734
734
  from: {
735
735
  val: ((x = v.current) == null ? void 0 : x[n === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
@@ -747,9 +747,9 @@ function mr({
747
747
  }
748
748
  function W() {
749
749
  function _(u) {
750
- return u.map((U) => ({
751
- id: U.id,
752
- renderThumb: U.renderThumb
750
+ return u.map((B) => ({
751
+ id: B.id,
752
+ renderThumb: B.renderThumb
753
753
  }));
754
754
  }
755
755
  return y ? y(_(D)) : _(D);
@@ -774,8 +774,8 @@ function mr({
774
774
  }
775
775
  },
776
776
  children: W().map(({ id: _, renderThumb: u }) => {
777
- const U = `thumb-item-${_}`;
778
- return /* @__PURE__ */ A.jsx("div", { id: U, className: "thumb-item", children: typeof u == "function" ? u(Y) : u }, U);
777
+ const B = `thumb-item-${_}`;
778
+ return /* @__PURE__ */ A.jsx("div", { id: B, className: "thumb-item", children: typeof u == "function" ? u(Y) : u }, B);
779
779
  })
780
780
  }
781
781
  ) : null,
@@ -797,7 +797,7 @@ function Wr({
797
797
  draggingSlideTreshold: q,
798
798
  slideWhenThresholdIsReached: _ = !1,
799
799
  freeScroll: u,
800
- enableFreeScrollDrag: U,
800
+ enableFreeScrollDrag: B,
801
801
  initialStartingPosition: x,
802
802
  prepareThumbsData: ae,
803
803
  initialActiveItem: j = 0,
@@ -805,7 +805,7 @@ function Wr({
805
805
  slideGroupOfItems: ee = !1,
806
806
  slideAmount: re
807
807
  }) {
808
- const J = Y > n.length ? n.length : Y, Z = $(!1), oe = $(q ?? 0), z = $("initial"), ve = $("initial"), we = $("initial"), V = $(j), I = $(j === 0), g = $(v === "fixed" && j === n.length - 1), E = $(null), P = $(null), he = $(0), ge = $(0), c = $(0), R = $(l), F = $(v), te = $(u), L = $(!1), Pe = Oe(() => l ? [
808
+ const J = Y > n.length ? n.length : Y, Z = $(!1), oe = $(q ?? 0), z = $("initial"), ve = $("initial"), we = $("initial"), S = $(j), I = $(j === 0), g = $(v === "fixed" && j === n.length - 1), E = $(null), P = $(null), he = $(0), ge = $(0), c = $(0), R = $(l), F = $(v), te = $(u), L = $(!1), Pe = Oe(() => l ? [
809
809
  ...n.map((r) => ({
810
810
  ...r,
811
811
  id: `prev-repeated-item-${r.id}`
@@ -815,7 +815,7 @@ function Wr({
815
815
  ...r,
816
816
  id: `next-repeated-item-${r.id}`
817
817
  }))
818
- ] : [...n], [n, l])(), [ue, B] = vr(
818
+ ] : [...n], [n, l])(), [ue, U] = vr(
819
819
  () => ({
820
820
  val: 0,
821
821
  pause: !p,
@@ -830,10 +830,10 @@ function Wr({
830
830
  prepareThumbsData: ae,
831
831
  items: n,
832
832
  renderThumbFnProps: {
833
- getIsActiveItem: Ue,
833
+ getIsActiveItem: Be,
834
834
  getIsPrevItem: Ye,
835
835
  useListenToCustomEvent: ce,
836
- getIsNextItem: Se
836
+ getIsNextItem: Ve
837
837
  }
838
838
  }), { enterFullscreen: Le, exitFullscreen: Ne, getIsFullscreen: He } = kr({
839
839
  mainCarouselWrapperRef: E,
@@ -872,17 +872,17 @@ function Wr({
872
872
  f
873
873
  ]);
874
874
  function G({ from: r, to: o, nextActiveItem: a, immediate: k = !1, slideMode: K }) {
875
- ve.current = K, typeof a == "number" && (u || (V.current = a), me({
875
+ ve.current = K, typeof a == "number" && (u || (S.current = a), me({
876
876
  eventName: "onSlideStartChange",
877
877
  slideActionType: z.current,
878
878
  slideMode: ve.current,
879
879
  nextItem: {
880
880
  startReached: I.current,
881
881
  endReached: g.current,
882
- index: u ? -1 : V.current,
883
- id: u ? "" : n[V.current].id
882
+ index: u ? -1 : S.current,
883
+ id: u ? "" : n[S.current].id
884
884
  }
885
- })), c.current = o, B.start({
885
+ })), c.current = o, console.log("SET SPRING DB"), U.start({
886
886
  immediate: k,
887
887
  from: {
888
888
  val: r
@@ -902,12 +902,12 @@ function Wr({
902
902
  currentItem: {
903
903
  startReached: I.current,
904
904
  endReached: g.current,
905
- index: u ? -1 : V.current,
906
- id: u ? "" : n[V.current].id
905
+ index: u ? -1 : S.current,
906
+ id: u ? "" : n[S.current].id
907
907
  }
908
908
  });
909
909
  }
910
- }), y && !k && ke(V.current);
910
+ }), y && !k && ke(S.current);
911
911
  }
912
912
  const M = Oe(() => {
913
913
  var r;
@@ -943,7 +943,7 @@ function Wr({
943
943
  ), v === "fluid") {
944
944
  if (_e(ne() * n.length), g.current && M() !== Math.abs(c.current) && !l) {
945
945
  const o = -M();
946
- c.current = o, B.start({
946
+ c.current = o, U.start({
947
947
  immediate: !0,
948
948
  val: c.current
949
949
  });
@@ -951,7 +951,7 @@ function Wr({
951
951
  }
952
952
  if (Math.abs(c.current) > 0 && M() !== Math.abs(c.current) && !l && !u && we.current === "backward") {
953
953
  const o = he.current - M(), a = c.current + o;
954
- return B.start({
954
+ return U.start({
955
955
  immediate: !0,
956
956
  val: a
957
957
  }), () => {
@@ -962,15 +962,15 @@ function Wr({
962
962
  return;
963
963
  }
964
964
  if (!u && v === "fixed") {
965
- const o = -(C() * V.current);
965
+ const o = -(C() * S.current);
966
966
  if (Math.abs(o) > M() && !l) {
967
967
  const a = -M();
968
- g.current = !0, c.current = a, B.start({
968
+ g.current = !0, c.current = a, U.start({
969
969
  immediate: !0,
970
970
  val: c.current
971
971
  });
972
972
  } else
973
- c.current = o, B.start({
973
+ c.current = o, U.start({
974
974
  immediate: !0,
975
975
  val: o
976
976
  });
@@ -988,7 +988,7 @@ function Wr({
988
988
  n.length,
989
989
  J,
990
990
  _e,
991
- B,
991
+ U,
992
992
  v,
993
993
  l
994
994
  ]
@@ -1011,7 +1011,7 @@ function Wr({
1011
1011
  if (!p || L.current || I.current && !l)
1012
1012
  return;
1013
1013
  g.current && (we.current = "backward"), z.current = "prev", g.current = !1;
1014
- const k = typeof o == "number" ? o : V.current - 1;
1014
+ const k = typeof o == "number" ? o : S.current - 1;
1015
1015
  if (u && be(), !l) {
1016
1016
  const K = u ? Ce("prev", o) - C() / 3 < 0 : Ce("prev", o) + C() / 3 > 0;
1017
1017
  if (I.current)
@@ -1049,7 +1049,7 @@ function Wr({
1049
1049
  if (console.log("here1"), !p || L.current || g.current && !l)
1050
1050
  return;
1051
1051
  console.log("2"), I.current && (we.current = "forward"), z.current = "next", I.current = !1;
1052
- const k = o || V.current + 1;
1052
+ const k = o || S.current + 1;
1053
1053
  if (u && be(), !l) {
1054
1054
  console.log("3");
1055
1055
  const K = Math.abs(Ce("next", o)) > M() - C() / 3;
@@ -1088,7 +1088,7 @@ function Wr({
1088
1088
  q ? oe.current = q : oe.current = Math.floor(C() / 2 / 2);
1089
1089
  }
1090
1090
  function ye() {
1091
- P.current && (he.current = M(), R.current = l, F.current = v, te.current = u, ge.current = window.innerWidth, c.current = 0, Ve({ id: 0, immediate: !0, shouldReset: !0 }), Je(), Fe());
1091
+ P.current && (he.current = M(), R.current = l, F.current = v, te.current = u, ge.current = window.innerWidth, c.current = 0, Se({ id: 0, immediate: !0, shouldReset: !0 }), Je(), Fe());
1092
1092
  }
1093
1093
  const ze = hr(
1094
1094
  (r) => {
@@ -1100,7 +1100,7 @@ function Wr({
1100
1100
  slideActionType: z.current
1101
1101
  }), u) {
1102
1102
  if (a > 0) {
1103
- B.start({
1103
+ U.start({
1104
1104
  from: {
1105
1105
  val: X()
1106
1106
  },
@@ -1115,7 +1115,7 @@ function Wr({
1115
1115
  }), r.cancel();
1116
1116
  return;
1117
1117
  }
1118
- B.start({
1118
+ U.start({
1119
1119
  from: {
1120
1120
  val: X()
1121
1121
  },
@@ -1130,7 +1130,7 @@ function Wr({
1130
1130
  });
1131
1131
  return;
1132
1132
  }
1133
- B.start({
1133
+ U.start({
1134
1134
  val: a,
1135
1135
  config: {
1136
1136
  velocity: ie,
@@ -1141,7 +1141,7 @@ function Wr({
1141
1141
  return;
1142
1142
  }
1143
1143
  if (r.last && u && a > 0) {
1144
- B.start({
1144
+ U.start({
1145
1145
  from: {
1146
1146
  val: X()
1147
1147
  },
@@ -1156,25 +1156,25 @@ function Wr({
1156
1156
  });
1157
1157
  return;
1158
1158
  }
1159
- r.last && !r.canceled && u && (z.current === "prev" && pe({ type: "drag" }), z.current === "next" && se({ type: "drag" })), r.last && !r.canceled && !u && (le ? !l && g.current ? B.start({
1159
+ r.last && !r.canceled && u && (z.current === "prev" && pe({ type: "drag" }), z.current === "next" && se({ type: "drag" })), r.last && !r.canceled && !u && (le ? !l && g.current ? U.start({
1160
1160
  val: -M(),
1161
1161
  config: {
1162
1162
  ...De.default,
1163
1163
  velocity: ie
1164
1164
  }
1165
- }) : se({ type: "drag" }) : Te ? !l && I.current ? B.start({
1165
+ }) : se({ type: "drag" }) : Te ? !l && I.current ? U.start({
1166
1166
  val: 0,
1167
1167
  config: {
1168
1168
  ...De.default,
1169
1169
  velocity: ie
1170
1170
  }
1171
- }) : pe({ type: "drag" }) : B.start({
1171
+ }) : pe({ type: "drag" }) : U.start({
1172
1172
  val: c.current,
1173
1173
  config: {
1174
1174
  ...De.default,
1175
1175
  velocity: ie
1176
1176
  }
1177
- })), r.last && r.canceled && B.start({
1177
+ })), r.last && r.canceled && U.start({
1178
1178
  val: c.current,
1179
1179
  config: {
1180
1180
  ...De.default,
@@ -1183,7 +1183,7 @@ function Wr({
1183
1183
  });
1184
1184
  },
1185
1185
  {
1186
- enabled: p && !W && !u || !!u && !!U,
1186
+ enabled: p && !W && !u || !!u && !!B,
1187
1187
  axis: d,
1188
1188
  from: () => u && E.current ? [
1189
1189
  -E.current.scrollLeft,
@@ -1217,7 +1217,7 @@ function Wr({
1217
1217
  }
1218
1218
  return a;
1219
1219
  }
1220
- function Ve({ id: r, immediate: o, shouldReset: a, type: k }) {
1220
+ function Se({ id: r, immediate: o, shouldReset: a, type: k }) {
1221
1221
  if (!p || L.current)
1222
1222
  return;
1223
1223
  I.current = !1, g.current = !1;
@@ -1225,9 +1225,9 @@ function Wr({
1225
1225
  r,
1226
1226
  "The item you want to slide to doesn't exist; check the provided id."
1227
1227
  );
1228
- if (K === V.current && !a)
1228
+ if (K === S.current && !a)
1229
1229
  return;
1230
- const Te = xe(n[V.current].id), le = xe(n[K].id);
1230
+ const Te = xe(n[S.current].id), le = xe(n[K].id);
1231
1231
  le > Te ? se({
1232
1232
  type: k || a ? "initial" : "click",
1233
1233
  index: le,
@@ -1238,16 +1238,16 @@ function Wr({
1238
1238
  immediate: o
1239
1239
  });
1240
1240
  }
1241
- function Se(r) {
1242
- const o = xe(r, "The item doesn't exist; check the provided id."), a = V.current;
1241
+ function Ve(r) {
1242
+ const o = xe(r, "The item doesn't exist; check the provided id."), a = S.current;
1243
1243
  return l && a === n.length - 1 ? o === 0 : o === a + 1;
1244
1244
  }
1245
1245
  function Ye(r) {
1246
- const o = xe(r, "The item doesn't exist; check the provided id."), a = V.current;
1246
+ const o = xe(r, "The item doesn't exist; check the provided id."), a = S.current;
1247
1247
  return l && a === 0 ? o === n.length - 1 : o === a - 1;
1248
1248
  }
1249
- function Ue(r) {
1250
- return xe(r, "The item you want to check doesn't exist; check the provided id.") === V.current;
1249
+ function Be(r) {
1250
+ return xe(r, "The item you want to check doesn't exist; check the provided id.") === S.current;
1251
1251
  }
1252
1252
  function er() {
1253
1253
  return W ? "unset" : d === "x" ? "pan-y" : "pan-x";
@@ -1287,16 +1287,16 @@ function Wr({
1287
1287
  });
1288
1288
  },
1289
1289
  slideToItem: (r, o = !0) => {
1290
- Ve({ id: r, immediate: !o });
1290
+ Se({ id: r, immediate: !o });
1291
1291
  },
1292
- getIsNextItem: Se,
1292
+ getIsNextItem: Ve,
1293
1293
  getIsPrevItem: Ye,
1294
- getIsActiveItem: Ue
1294
+ getIsActiveItem: Be
1295
1295
  };
1296
1296
  Tr(() => {
1297
1297
  P.current && p && (Z.current = !0, ye());
1298
1298
  }, [p]), de(() => {
1299
- V.current !== j && (Z.current = !0, Ve({
1299
+ S.current !== j && (Z.current = !0, Se({
1300
1300
  id: j,
1301
1301
  immediate: !O
1302
1302
  }));
@@ -1318,7 +1318,7 @@ function Wr({
1318
1318
  throw new Error("`withLoop` and `freeScroll` can't be used together.");
1319
1319
  if (u && v === "fixed")
1320
1320
  throw new Error("`freeScroll` can't be used when `scrollType: fixed`.");
1321
- if (U && (v !== "fluid" || !u))
1321
+ if (B && (v !== "fluid" || !u))
1322
1322
  throw new Error(
1323
1323
  "`enableFreeScrollDrag` must be used with `slideType: fluid` and `freeScroll=true`"
1324
1324
  );
@@ -1337,7 +1337,7 @@ function Wr({
1337
1337
  l,
1338
1338
  v,
1339
1339
  u,
1340
- U,
1340
+ B,
1341
1341
  ee
1342
1342
  ]), de(() => {
1343
1343
  if (!p)
@@ -1417,8 +1417,8 @@ function Wr({
1417
1417
  )
1418
1418
  },
1419
1419
  children: typeof r.renderItem == "function" ? r.renderItem({
1420
- getIsActiveItem: Ue,
1421
- getIsNextItem: Se,
1420
+ getIsActiveItem: Be,
1421
+ getIsNextItem: Ve,
1422
1422
  getIsPrevItem: Ye,
1423
1423
  useListenToCustomEvent: ce
1424
1424
  }) : r.renderItem
@@ -1466,7 +1466,7 @@ const $e = {
1466
1466
  position: "absolute"
1467
1467
  }
1468
1468
  };
1469
- function Vr({
1469
+ function Sr({
1470
1470
  init: n = !0,
1471
1471
  disableGestures: p = !1,
1472
1472
  items: y,
@@ -1480,7 +1480,7 @@ function Vr({
1480
1480
  draggingSlideTreshold: W = 50,
1481
1481
  thumbsSlideAxis: q = "x"
1482
1482
  }) {
1483
- const _ = $("next"), u = $("initial"), U = $(null), [x, ae] = Er(l ?? 0), { emitEvent: j, useListenToCustomEvent: O } = gr(), { handleScroll: ee, thumbsFragment: re } = mr({
1483
+ const _ = $("next"), u = $("initial"), B = $(null), [x, ae] = Er(l ?? 0), { emitEvent: j, useListenToCustomEvent: O } = gr(), { handleScroll: ee, thumbsFragment: re } = mr({
1484
1484
  thumbsSlideAxis: q,
1485
1485
  items: y,
1486
1486
  renderThumbFnProps: {
@@ -1621,7 +1621,7 @@ function Vr({
1621
1621
  enabled: !p
1622
1622
  }
1623
1623
  );
1624
- function V(c, R) {
1624
+ function S(c, R) {
1625
1625
  let F = 0;
1626
1626
  if (typeof c == "string" ? F = y.findIndex((te) => te.id === c) : F = c, F < 0 || F >= y.length) {
1627
1627
  if (R)
@@ -1631,11 +1631,11 @@ function Vr({
1631
1631
  return F;
1632
1632
  }
1633
1633
  function I(c) {
1634
- const R = V(c, "The item doesn't exist; check the provided id."), F = x;
1634
+ const R = S(c, "The item doesn't exist; check the provided id."), F = x;
1635
1635
  return T && F === y.length - 1 ? R === 0 : R === F + 1;
1636
1636
  }
1637
1637
  function g(c) {
1638
- const R = V(c, "The item doesn't exist; check the provided id."), F = x;
1638
+ const R = S(c, "The item doesn't exist; check the provided id."), F = x;
1639
1639
  return T && F === 0 ? R === y.length - 1 : R === F - 1;
1640
1640
  }
1641
1641
  const E = ve((c, R, F, te) => {
@@ -1669,7 +1669,7 @@ function Vr({
1669
1669
  }, he = /* @__PURE__ */ A.jsx(nr.Provider, { value: P, children: re }), ge = /* @__PURE__ */ A.jsx(nr.Provider, { value: P, children: /* @__PURE__ */ A.jsx(
1670
1670
  "div",
1671
1671
  {
1672
- ref: U,
1672
+ ref: B,
1673
1673
  ...we(),
1674
1674
  style: {
1675
1675
  display: "flex",
@@ -1688,7 +1688,7 @@ function Vr({
1688
1688
  };
1689
1689
  }
1690
1690
  const nr = fr(void 0);
1691
- function Sr() {
1691
+ function Vr() {
1692
1692
  const n = dr(nr);
1693
1693
  if (!n)
1694
1694
  throw new Error("useTransitionCarouselContext must be used within the carousel.");
@@ -1697,7 +1697,7 @@ function Sr() {
1697
1697
  export {
1698
1698
  Wr as useSpringCarousel,
1699
1699
  Nr as useSpringCarouselContext,
1700
- Vr as useTransitionCarousel,
1701
- Sr as useTransitionCarouselContext
1700
+ Sr as useTransitionCarousel,
1701
+ Vr as useTransitionCarouselContext
1702
1702
  };
1703
1703
  //# sourceMappingURL=index.es.js.map