react-spring-carousel 3.0.0-beta090.33 → 3.0.0-beta090.34

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
- }, Ue = {};
13
+ }, Be = {};
14
14
  /**
15
15
  * @license React
16
16
  * react-jsx-runtime.production.min.js
@@ -23,9 +23,9 @@ var A = {}, Cr = {
23
23
  var cr;
24
24
  function Ir() {
25
25
  if (cr)
26
- return Ue;
26
+ return Be;
27
27
  cr = 1;
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 };
28
+ var n = lr, g = 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) {
30
30
  var W, q = {}, _ = null, u = null;
31
31
  d !== void 0 && (_ = "" + d), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (u = f.ref);
@@ -34,9 +34,9 @@ function Ir() {
34
34
  if (l && l.defaultProps)
35
35
  for (W in f = l.defaultProps, f)
36
36
  q[W] === void 0 && (q[W] = f[W]);
37
- return { $$typeof: p, type: l, key: _, ref: u, props: q, _owner: Y.current };
37
+ return { $$typeof: g, type: l, key: _, ref: u, props: q, _owner: Y.current };
38
38
  }
39
- return Ue.Fragment = y, Ue.jsx = T, Ue.jsxs = T, Ue;
39
+ return Be.Fragment = y, Be.jsx = T, Be.jsxs = T, Be;
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"), B = Symbol.iterator, x = "@@iterator";
55
- function oe(e) {
54
+ var n = lr, g = 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";
55
+ function ae(e) {
56
56
  if (e === null || typeof e != "object")
57
57
  return null;
58
- var t = B && e[B] || e[x];
58
+ var t = U && e[U] || 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;
@@ -70,22 +70,22 @@ function Pr() {
70
70
  {
71
71
  var s = j.ReactDebugCurrentFrame, b = s.getStackAddendum();
72
72
  b !== "" && (t += "%s", i = i.concat([b]));
73
- var w = i.map(function(m) {
74
- return String(m);
73
+ var w = i.map(function(p) {
74
+ return String(p);
75
75
  });
76
76
  w.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, w);
77
77
  }
78
78
  }
79
- var re = !1, J = !1, Z = !1, ae = !1, z = !1, ve;
79
+ var re = !1, J = !1, Z = !1, oe = !1, z = !1, ve;
80
80
  ve = Symbol.for("react.module.reference");
81
81
  function we(e) {
82
- return !!(typeof e == "string" || typeof e == "function" || e === D || e === v || z || e === Y || e === d || e === W || ae || e === u || re || J || Z || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === q || e.$$typeof === T || e.$$typeof === l || e.$$typeof === f || // This needs to include all possible module reference object
82
+ return !!(typeof e == "string" || typeof e == "function" || e === D || e === v || z || e === Y || e === d || e === W || oe || e === u || re || J || Z || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === q || e.$$typeof === T || e.$$typeof === l || e.$$typeof === f || // This needs to include all possible module reference object
83
83
  // types supported by any Flight configuration anywhere since
84
84
  // we don't know which Flight build this will end up being used
85
85
  // with.
86
86
  e.$$typeof === ve || e.getModuleId !== void 0));
87
87
  }
88
- function N(e, t, i) {
88
+ function V(e, t, i) {
89
89
  var s = e.displayName;
90
90
  if (s)
91
91
  return s;
@@ -95,7 +95,7 @@ function Pr() {
95
95
  function I(e) {
96
96
  return e.displayName || "Context";
97
97
  }
98
- function g(e) {
98
+ function m(e) {
99
99
  if (e == null)
100
100
  return null;
101
101
  if (typeof e.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -125,14 +125,14 @@ function Pr() {
125
125
  var i = e;
126
126
  return I(i._context) + ".Provider";
127
127
  case f:
128
- return N(e, e.render, "ForwardRef");
128
+ return V(e, e.render, "ForwardRef");
129
129
  case q:
130
130
  var s = e.displayName || null;
131
- return s !== null ? s : g(e.type) || "Memo";
131
+ return s !== null ? s : m(e.type) || "Memo";
132
132
  case _: {
133
- var b = e, w = b._payload, m = b._init;
133
+ var b = e, w = b._payload, p = b._init;
134
134
  try {
135
- return g(m(w));
135
+ return m(p(w));
136
136
  } catch {
137
137
  return null;
138
138
  }
@@ -140,14 +140,14 @@ function Pr() {
140
140
  }
141
141
  return null;
142
142
  }
143
- var E = Object.assign, P = 0, he, ge, c, R, F, te, L;
143
+ var E = Object.assign, P = 0, he, me, c, R, F, te, L;
144
144
  function Me() {
145
145
  }
146
146
  Me.__reactDisabledLog = !0;
147
147
  function Pe() {
148
148
  {
149
149
  if (P === 0) {
150
- he = console.log, ge = console.info, c = console.warn, R = console.error, F = console.group, te = console.groupCollapsed, L = console.groupEnd;
150
+ he = console.log, me = console.info, c = console.warn, R = console.error, F = console.group, te = console.groupCollapsed, L = console.groupEnd;
151
151
  var e = {
152
152
  configurable: !0,
153
153
  enumerable: !0,
@@ -180,7 +180,7 @@ function Pr() {
180
180
  value: he
181
181
  }),
182
182
  info: E({}, e, {
183
- value: ge
183
+ value: me
184
184
  }),
185
185
  warn: E({}, e, {
186
186
  value: c
@@ -202,18 +202,18 @@ 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 U = j.ReactCurrentDispatcher, me;
205
+ var B = j.ReactCurrentDispatcher, pe;
206
206
  function ce(e, t, i) {
207
207
  {
208
- if (me === void 0)
208
+ if (pe === void 0)
209
209
  try {
210
210
  throw Error();
211
211
  } catch (b) {
212
212
  var s = b.stack.trim().match(/\n( *(at )?)/);
213
- me = s && s[1] || "";
213
+ pe = s && s[1] || "";
214
214
  }
215
215
  return `
216
- ` + me + e;
216
+ ` + pe + e;
217
217
  }
218
218
  }
219
219
  var We = !1, ke;
@@ -234,30 +234,30 @@ function Pr() {
234
234
  var b = Error.prepareStackTrace;
235
235
  Error.prepareStackTrace = void 0;
236
236
  var w;
237
- w = U.current, U.current = null, Pe();
237
+ w = B.current, B.current = null, Pe();
238
238
  try {
239
239
  if (t) {
240
- var m = function() {
240
+ var p = function() {
241
241
  throw Error();
242
242
  };
243
- if (Object.defineProperty(m.prototype, "props", {
243
+ if (Object.defineProperty(p.prototype, "props", {
244
244
  set: function() {
245
245
  throw Error();
246
246
  }
247
247
  }), typeof Reflect == "object" && Reflect.construct) {
248
248
  try {
249
- Reflect.construct(m, []);
249
+ Reflect.construct(p, []);
250
250
  } catch (fe) {
251
251
  s = fe;
252
252
  }
253
- Reflect.construct(e, [], m);
253
+ Reflect.construct(e, [], p);
254
254
  } else {
255
255
  try {
256
- m.call();
256
+ p.call();
257
257
  } catch (fe) {
258
258
  s = fe;
259
259
  }
260
- e.call(m.prototype);
260
+ e.call(p.prototype);
261
261
  }
262
262
  } else {
263
263
  try {
@@ -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
- `), S = h.length - 1, V = H.length - 1; S >= 1 && V >= 0 && h[S] !== H[V]; )
275
- V--;
276
- for (; S >= 1 && V >= 0; S--, V--)
277
- if (h[S] !== H[V]) {
278
- if (S !== 1 || V !== 1)
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)
279
279
  do
280
- if (S--, V--, V < 0 || h[S] !== H[V]) {
280
+ if (N--, S--, S < 0 || h[N] !== H[S]) {
281
281
  var Q = `
282
- ` + h[S].replace(" at new ", " at ");
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 (S >= 1 && V >= 0);
285
+ while (N >= 1 && S >= 0);
286
286
  break;
287
287
  }
288
288
  }
289
289
  } finally {
290
- We = !1, U.current = w, ue(), Error.prepareStackTrace = b;
290
+ We = !1, B.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;
@@ -339,19 +339,19 @@ function Pr() {
339
339
  function _e(e, t, i, s, b) {
340
340
  {
341
341
  var w = Function.call.bind(G);
342
- for (var m in e)
343
- if (w(e, m)) {
342
+ for (var p in e)
343
+ if (w(e, p)) {
344
344
  var h = void 0;
345
345
  try {
346
- if (typeof e[m] != "function") {
347
- var H = Error((s || "React class") + ": " + i + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
346
+ if (typeof e[p] != "function") {
347
+ var H = Error((s || "React class") + ": " + i + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
348
348
  throw H.name = "Invariant Violation", H;
349
349
  }
350
- h = e[m](t, m, s, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
351
- } catch (S) {
352
- h = S;
350
+ h = e[p](t, p, s, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
351
+ } catch (N) {
352
+ h = N;
353
353
  }
354
- h && !(h instanceof Error) && (ne(b), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", i, m, typeof h), ne(null)), h instanceof Error && !(h.message in M) && (M[h.message] = !0, ne(b), O("Failed %s type: %s", i, h.message), ne(null));
354
+ h && !(h instanceof Error) && (ne(b), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", i, p, typeof h), ne(null)), h instanceof Error && !(h.message in M) && (M[h.message] = !0, ne(b), O("Failed %s type: %s", i, h.message), ne(null));
355
355
  }
356
356
  }
357
357
  }
@@ -365,7 +365,7 @@ function Pr() {
365
365
  return i;
366
366
  }
367
367
  }
368
- function pe(e) {
368
+ function ge(e) {
369
369
  try {
370
370
  return se(e), !1;
371
371
  } catch {
@@ -376,7 +376,7 @@ function Pr() {
376
376
  return "" + e;
377
377
  }
378
378
  function Je(e) {
379
- if (pe(e))
379
+ if (ge(e))
380
380
  return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ce(e)), se(e);
381
381
  }
382
382
  var ye = j.ReactCurrentOwner, ir = {
@@ -402,13 +402,13 @@ function Pr() {
402
402
  }
403
403
  return e.key !== void 0;
404
404
  }
405
- function Se(e, t) {
405
+ function Ve(e, t) {
406
406
  if (typeof e.ref == "string" && ye.current && t && ye.current.stateNode !== t) {
407
- var i = g(ye.current.type);
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);
407
+ var i = m(ye.current.type);
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', m(ye.current.type), e.ref), be[i] = !0);
409
409
  }
410
410
  }
411
- function Ve(e, t) {
411
+ function Se(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,15 +430,15 @@ function Pr() {
430
430
  });
431
431
  }
432
432
  }
433
- var Be = function(e, t, i, s, b, w, m) {
433
+ var Ue = function(e, t, i, s, b, w, p) {
434
434
  var h = {
435
435
  // This tag allows us to uniquely identify this as a React Element
436
- $$typeof: p,
436
+ $$typeof: g,
437
437
  // Built-in properties that belong on the element
438
438
  type: e,
439
439
  key: t,
440
440
  ref: i,
441
- props: m,
441
+ props: p,
442
442
  // Record the component responsible for creating this element.
443
443
  _owner: w
444
444
  };
@@ -461,20 +461,20 @@ function Pr() {
461
461
  };
462
462
  function er(e, t, i, s, b) {
463
463
  {
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, Se(t, b));
464
+ var w, p = {}, 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));
466
466
  for (w in t)
467
- G.call(t, w) && !ir.hasOwnProperty(w) && (m[w] = t[w]);
467
+ G.call(t, w) && !ir.hasOwnProperty(w) && (p[w] = t[w]);
468
468
  if (e && e.defaultProps) {
469
- var S = e.defaultProps;
470
- for (w in S)
471
- m[w] === void 0 && (m[w] = S[w]);
469
+ var N = e.defaultProps;
470
+ for (w in N)
471
+ p[w] === void 0 && (p[w] = N[w]);
472
472
  }
473
473
  if (h || H) {
474
- var V = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
475
- h && Ve(m, V), H && Ye(m, V);
474
+ var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
475
+ h && Se(p, S), H && Ye(p, S);
476
476
  }
477
- return Be(e, h, H, b, s, ye.current, m);
477
+ return Ue(e, h, H, b, s, ye.current, p);
478
478
  }
479
479
  }
480
480
  var Ie = j.ReactCurrentOwner, Ke = j.ReactDebugCurrentFrame;
@@ -487,13 +487,13 @@ function Pr() {
487
487
  }
488
488
  var r;
489
489
  r = !1;
490
- function a(e) {
491
- return typeof e == "object" && e !== null && e.$$typeof === p;
490
+ function o(e) {
491
+ return typeof e == "object" && e !== null && e.$$typeof === g;
492
492
  }
493
- function o() {
493
+ function a() {
494
494
  {
495
495
  if (Ie.current) {
496
- var e = g(Ie.current.type);
496
+ var e = m(Ie.current.type);
497
497
  if (e)
498
498
  return `
499
499
 
@@ -516,7 +516,7 @@ Check your code at ` + t + ":" + i + ".";
516
516
  var K = {};
517
517
  function Te(e) {
518
518
  {
519
- var t = o();
519
+ var t = a();
520
520
  if (!t) {
521
521
  var i = typeof e == "string" ? e : e.displayName || e.name;
522
522
  i && (t = `
@@ -536,7 +536,7 @@ Check the top-level render call using <` + i + ">.");
536
536
  return;
537
537
  K[i] = !0;
538
538
  var s = "";
539
- e && e._owner && e._owner !== Ie.current && (s = " It was passed a child from " + g(e._owner.type) + "."), Ee(e), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, s), Ee(null);
539
+ e && e._owner && e._owner !== Ie.current && (s = " It was passed a child from " + m(e._owner.type) + "."), Ee(e), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, s), Ee(null);
540
540
  }
541
541
  }
542
542
  function Ze(e, t) {
@@ -546,15 +546,15 @@ Check the top-level render call using <` + i + ">.");
546
546
  if (X(e))
547
547
  for (var i = 0; i < e.length; i++) {
548
548
  var s = e[i];
549
- a(s) && le(s, t);
549
+ o(s) && le(s, t);
550
550
  }
551
- else if (a(e))
551
+ else if (o(e))
552
552
  e._store && (e._store.validated = !0);
553
553
  else if (e) {
554
- var b = oe(e);
554
+ var b = ae(e);
555
555
  if (typeof b == "function" && b !== e.entries)
556
- for (var w = b.call(e), m; !(m = w.next()).done; )
557
- a(m.value) && le(m.value, t);
556
+ for (var w = b.call(e), p; !(p = w.next()).done; )
557
+ o(p.value) && le(p.value, t);
558
558
  }
559
559
  }
560
560
  }
@@ -573,17 +573,17 @@ Check the top-level render call using <` + i + ">.");
573
573
  else
574
574
  return;
575
575
  if (i) {
576
- var s = g(t);
576
+ var s = m(t);
577
577
  _e(i, e.props, "prop", s, e);
578
578
  } else if (t.PropTypes !== void 0 && !r) {
579
579
  r = !0;
580
- var b = g(t);
580
+ var b = m(t);
581
581
  O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
582
582
  }
583
583
  typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
584
584
  }
585
585
  }
586
- function or(e) {
586
+ function ar(e) {
587
587
  {
588
588
  for (var t = Object.keys(e.props), i = 0; i < t.length; i++) {
589
589
  var s = t[i];
@@ -595,21 +595,21 @@ Check the top-level render call using <` + i + ">.");
595
595
  e.ref !== null && (Ee(e), O("Invalid attribute `ref` supplied to `React.Fragment`."), Ee(null));
596
596
  }
597
597
  }
598
- function ar(e, t, i, s, b, w) {
598
+ function or(e, t, i, s, b, w) {
599
599
  {
600
- var m = we(e);
601
- if (!m) {
600
+ var p = we(e);
601
+ if (!p) {
602
602
  var h = "";
603
603
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
604
604
  var H = k(b);
605
- H ? h += H : h += o();
606
- var S;
607
- e === null ? S = "null" : X(e) ? S = "array" : e !== void 0 && e.$$typeof === p ? (S = "<" + (g(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : S = 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", S, h);
605
+ H ? h += H : h += a();
606
+ var N;
607
+ e === null ? N = "null" : X(e) ? N = "array" : e !== void 0 && e.$$typeof === g ? (N = "<" + (m(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 V = er(e, t, i, b, w);
610
- if (V == null)
611
- return V;
612
- if (m) {
609
+ var S = er(e, t, i, b, w);
610
+ if (S == null)
611
+ return S;
612
+ if (p) {
613
613
  var Q = t.children;
614
614
  if (Q !== void 0)
615
615
  if (s)
@@ -622,16 +622,16 @@ Check the top-level render call using <` + i + ">.");
622
622
  else
623
623
  Ze(Q, e);
624
624
  }
625
- return e === D ? or(V) : ie(V), V;
625
+ return e === D ? ar(S) : ie(S), S;
626
626
  }
627
627
  }
628
- function pr(e, t, i) {
629
- return ar(e, t, i, !0);
628
+ function gr(e, t, i) {
629
+ return or(e, t, i, !0);
630
630
  }
631
631
  function yr(e, t, i) {
632
- return ar(e, t, i, !1);
632
+ return or(e, t, i, !1);
633
633
  }
634
- var br = yr, xr = pr;
634
+ var br = yr, xr = gr;
635
635
  qe.Fragment = D, qe.jsx = br, qe.jsxs = xr;
636
636
  }()), qe;
637
637
  }
@@ -639,9 +639,9 @@ Check the top-level render call using <` + i + ">.");
639
639
  process.env.NODE_ENV === "production" ? n.exports = Ir() : n.exports = Pr();
640
640
  })(Cr);
641
641
  const rr = "RSC::Event";
642
- function gr() {
642
+ function mr() {
643
643
  const n = $(null);
644
- function p(D) {
644
+ function g(D) {
645
645
  de(() => {
646
646
  n.current || (n.current = document.createElement("div"));
647
647
  function Y(v) {
@@ -663,19 +663,19 @@ function gr() {
663
663
  }
664
664
  }
665
665
  return {
666
- useListenToCustomEvent: p,
666
+ useListenToCustomEvent: g,
667
667
  emitEvent: y
668
668
  };
669
669
  }
670
670
  function kr({
671
671
  mainCarouselWrapperRef: n,
672
- onFullScreenChange: p,
672
+ onFullScreenChange: g,
673
673
  handleResize: y
674
674
  }) {
675
675
  const D = $(!1);
676
676
  de(() => {
677
677
  function f() {
678
- document.fullscreenElement && (Y(!0), p(!0), y && y()), document.fullscreenElement || (Y(!1), p(!1), y && y());
678
+ document.fullscreenElement && (Y(!0), g(!0), y && y()), document.fullscreenElement || (Y(!1), g(!1), y && y());
679
679
  }
680
680
  if (Re.isEnabled)
681
681
  return Re.on("change", f), () => {
@@ -701,12 +701,12 @@ function kr({
701
701
  };
702
702
  }
703
703
  function Fr(n) {
704
- const p = n.getBoundingClientRect();
705
- return p.top >= 0 && p.left >= 0 && p.bottom <= (window.innerHeight || document.documentElement.clientHeight) && p.right <= (window.innerWidth || document.documentElement.clientWidth);
704
+ const g = n.getBoundingClientRect();
705
+ return g.top >= 0 && g.left >= 0 && g.bottom <= (window.innerHeight || document.documentElement.clientHeight) && g.right <= (window.innerWidth || document.documentElement.clientWidth);
706
706
  }
707
- function mr({
707
+ function pr({
708
708
  thumbsSlideAxis: n = "x",
709
- withThumbs: p = !1,
709
+ withThumbs: g = !1,
710
710
  prepareThumbsData: y,
711
711
  items: D,
712
712
  renderThumbFnProps: Y
@@ -727,9 +727,9 @@ function mr({
727
727
  `#thumb-item-${D[_].id}`
728
728
  ) : null;
729
729
  }
730
- const B = u();
731
- if (B && v.current && !Fr(B)) {
732
- const oe = B.offsetLeft, j = oe > f() ? f() : oe;
730
+ const U = u();
731
+ if (U && v.current && !Fr(U)) {
732
+ const ae = U.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,15 +747,15 @@ function mr({
747
747
  }
748
748
  function W() {
749
749
  function _(u) {
750
- return u.map((B) => ({
751
- id: B.id,
752
- renderThumb: B.renderThumb
750
+ return u.map((U) => ({
751
+ id: U.id,
752
+ renderThumb: U.renderThumb
753
753
  }));
754
754
  }
755
755
  return y ? y(_(D)) : _(D);
756
756
  }
757
757
  return {
758
- thumbsFragment: p ? /* @__PURE__ */ A.jsx(
758
+ thumbsFragment: g ? /* @__PURE__ */ A.jsx(
759
759
  "div",
760
760
  {
761
761
  className: "use-spring-carousel-thumbs-wrapper",
@@ -774,8 +774,8 @@ function mr({
774
774
  }
775
775
  },
776
776
  children: W().map(({ id: _, renderThumb: 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);
777
+ const U = `thumb-item-${_}`;
778
+ return /* @__PURE__ */ A.jsx("div", { id: U, className: "thumb-item", children: typeof u == "function" ? u(Y) : u }, U);
779
779
  })
780
780
  }
781
781
  ) : null,
@@ -784,7 +784,7 @@ function mr({
784
784
  }
785
785
  function Wr({
786
786
  items: n,
787
- init: p = !0,
787
+ init: g = !0,
788
788
  withThumbs: y,
789
789
  thumbsSlideAxis: D = "x",
790
790
  itemsPerSlide: Y = 1,
@@ -797,15 +797,15 @@ function Wr({
797
797
  draggingSlideTreshold: q,
798
798
  slideWhenThresholdIsReached: _ = !1,
799
799
  freeScroll: u,
800
- enableFreeScrollDrag: B,
800
+ enableFreeScrollDrag: U,
801
801
  initialStartingPosition: x,
802
- prepareThumbsData: oe,
802
+ prepareThumbsData: ae,
803
803
  initialActiveItem: j = 0,
804
804
  animateWhenActiveItemChange: O = !0,
805
805
  slideGroupOfItems: ee = !1,
806
806
  slideAmount: re
807
807
  }) {
808
- const J = Y > n.length ? n.length : Y, Z = $(!1), ae = $(q ?? 0), z = $("initial"), ve = $("initial"), we = $("initial"), N = $(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"), V = $(j), I = $(j === 0), m = $(v === "fixed" && j === n.length - 1), E = $(null), P = $(null), he = $(0), me = $(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,31 +815,31 @@ function Wr({
815
815
  ...r,
816
816
  id: `next-repeated-item-${r.id}`
817
817
  }))
818
- ] : [...n], [n, l])(), [ue, U] = vr(
818
+ ] : [...n], [n, l])(), [ue, B] = vr(
819
819
  () => ({
820
820
  val: 0,
821
- pause: !p,
821
+ pause: !g,
822
822
  onChange: ({ value: r }) => {
823
- console.log({ value: r }), u && E.current ? (d === "x" ? E.current.scrollLeft = Math.abs(r.val) : E.current.scrollTop = Math.abs(r.val), be()) : P.current && (d === "x" ? P.current.style.transform = `translate3d(${r.val}px, 0px,0px)` : P.current.style.transform = `translate3d(0px,${r.val}px,0px)`);
823
+ u && E.current ? (d === "x" ? E.current.scrollLeft = Math.abs(r.val) : E.current.scrollTop = Math.abs(r.val), be()) : P.current && (d === "x" ? P.current.style.transform = `translate3d(${r.val}px, 0px,0px)` : P.current.style.transform = `translate3d(0px,${r.val}px,0px)`);
824
824
  }
825
825
  }),
826
826
  [u]
827
- ), { emitEvent: me, useListenToCustomEvent: ce } = gr(), { thumbsFragment: We, handleScroll: ke } = mr({
827
+ ), { emitEvent: pe, useListenToCustomEvent: ce } = mr(), { thumbsFragment: We, handleScroll: ke } = pr({
828
828
  withThumbs: !!y,
829
829
  thumbsSlideAxis: D,
830
- prepareThumbsData: oe,
830
+ prepareThumbsData: ae,
831
831
  items: n,
832
832
  renderThumbFnProps: {
833
- getIsActiveItem: Be,
833
+ getIsActiveItem: Ue,
834
834
  getIsPrevItem: Ye,
835
835
  useListenToCustomEvent: ce,
836
- getIsNextItem: Ve
836
+ getIsNextItem: Se
837
837
  }
838
838
  }), { enterFullscreen: Le, exitFullscreen: Ne, getIsFullscreen: He } = kr({
839
839
  mainCarouselWrapperRef: E,
840
840
  handleResize: () => Fe(),
841
841
  onFullScreenChange: (r) => {
842
- me({
842
+ pe({
843
843
  eventName: "onFullscreenChange",
844
844
  isFullscreen: r
845
845
  });
@@ -854,14 +854,14 @@ function Wr({
854
854
  };
855
855
  }
856
856
  const C = Oe(() => {
857
- var o;
857
+ var a;
858
858
  if (typeof re == "number" && re > 0 && (v === "fluid" || u))
859
859
  return re;
860
- const r = ee ? E.current : (o = E.current) == null ? void 0 : o.querySelector(".use-spring-carousel-item");
860
+ const r = ee ? E.current : (a = E.current) == null ? void 0 : a.querySelector(".use-spring-carousel-item");
861
861
  if (!r)
862
862
  throw Error("No carousel items available!");
863
- let a = r.getBoundingClientRect()[d === "x" ? "width" : "height"];
864
- return ee || (a += T), ee && (a += T - f * 2), a;
863
+ let o = r.getBoundingClientRect()[d === "x" ? "width" : "height"];
864
+ return ee || (o += T), ee && (o += T - f * 2), o;
865
865
  }, [
866
866
  d,
867
867
  u,
@@ -871,43 +871,43 @@ function Wr({
871
871
  v,
872
872
  f
873
873
  ]);
874
- function G({ from: r, to: a, nextActiveItem: o, immediate: k = !1, slideMode: K }) {
875
- ve.current = K, typeof o == "number" && (u || (N.current = o), me({
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), pe({
876
876
  eventName: "onSlideStartChange",
877
877
  slideActionType: z.current,
878
878
  slideMode: ve.current,
879
879
  nextItem: {
880
880
  startReached: I.current,
881
- endReached: g.current,
882
- index: u ? -1 : N.current,
883
- id: u ? "" : n[N.current].id
881
+ endReached: m.current,
882
+ index: u ? -1 : V.current,
883
+ id: u ? "" : n[V.current].id
884
884
  }
885
- })), c.current = a, console.log("SET SPRING DB", { activeItem: N.current }), U.start({
885
+ })), c.current = o, B.start({
886
886
  immediate: k,
887
887
  from: {
888
888
  val: r
889
889
  },
890
890
  to: {
891
- val: a
891
+ val: o
892
892
  },
893
893
  config: {
894
894
  ...De.default,
895
895
  velocity: ue.val.velocity
896
896
  },
897
897
  onRest(Te) {
898
- !k && Te.finished && me({
898
+ !k && Te.finished && pe({
899
899
  eventName: "onSlideChange",
900
900
  slideActionType: z.current,
901
901
  slideMode: ve.current,
902
902
  currentItem: {
903
903
  startReached: I.current,
904
- endReached: g.current,
905
- index: u ? -1 : N.current,
906
- id: u ? "" : n[N.current].id
904
+ endReached: m.current,
905
+ index: u ? -1 : V.current,
906
+ id: u ? "" : n[V.current].id
907
907
  }
908
908
  });
909
909
  }
910
- }), y && !k && ke(N.current);
910
+ }), y && !k && ke(V.current);
911
911
  }
912
912
  const M = Oe(() => {
913
913
  var r;
@@ -925,15 +925,15 @@ function Wr({
925
925
  };
926
926
  }
927
927
  const ne = Oe(() => {
928
- var a;
929
- const r = (a = P.current) == null ? void 0 : a.querySelector(".use-spring-carousel-item");
928
+ var o;
929
+ const r = (o = P.current) == null ? void 0 : o.querySelector(".use-spring-carousel-item");
930
930
  if (!r)
931
931
  throw Error("No carousel items available!");
932
932
  return r.getBoundingClientRect()[d === "x" ? "width" : "height"] + T;
933
933
  }, [d, T]), _e = Oe(
934
934
  (r) => {
935
- const a = d === "x" ? "left" : "top", o = P.current;
936
- o && (l ? (o.style.top = "0px", o.style.left = "0px", o.style[a] = `-${r - f}px`, I.current = !1, g.current = !1) : (o.style.left = "0px", o.style.top = "0px"));
935
+ const o = d === "x" ? "left" : "top", a = P.current;
936
+ a && (l ? (a.style.top = "0px", a.style.left = "0px", a.style[o] = `-${r - f}px`, I.current = !1, m.current = !1) : (a.style.left = "0px", a.style.top = "0px"));
937
937
  },
938
938
  [d, f, l]
939
939
  ), Fe = Oe(
@@ -941,38 +941,38 @@ function Wr({
941
941
  if (P.current && r && (P.current.style.transform = "translate3d(0px, 0px,0px)", P.current.style.left = "0", P.current.style.top = "0"), v === "fixed" && _e(
942
942
  x === "center" ? ne() * n.length - C() * Math.round((J - 1) / 2) : x === "end" ? ne() * n.length - C() * Math.round(J - 1) : ne() * n.length
943
943
  ), v === "fluid") {
944
- if (_e(ne() * n.length), g.current && M() !== Math.abs(c.current) && !l) {
945
- const a = -M();
946
- c.current = a, U.start({
944
+ if (_e(ne() * n.length), m.current && M() !== Math.abs(c.current) && !l) {
945
+ const o = -M();
946
+ c.current = o, B.start({
947
947
  immediate: !0,
948
948
  val: c.current
949
949
  });
950
950
  return;
951
951
  }
952
952
  if (Math.abs(c.current) > 0 && M() !== Math.abs(c.current) && !l && !u && we.current === "backward") {
953
- const a = he.current - M(), o = c.current + a;
954
- return U.start({
953
+ const o = he.current - M(), a = c.current + o;
954
+ return B.start({
955
955
  immediate: !0,
956
- val: o
956
+ val: a
957
957
  }), () => {
958
- c.current = o;
958
+ c.current = a;
959
959
  };
960
960
  }
961
961
  console.log("here");
962
962
  return;
963
963
  }
964
964
  if (!u && v === "fixed") {
965
- const a = -(C() * N.current);
966
- if (Math.abs(a) > M() && !l) {
967
- const o = -M();
968
- g.current = !0, c.current = o, U.start({
965
+ const o = -(C() * V.current);
966
+ if (Math.abs(o) > M() && !l) {
967
+ const a = -M();
968
+ m.current = !0, c.current = a, B.start({
969
969
  immediate: !0,
970
970
  val: c.current
971
971
  });
972
972
  } else
973
- c.current = a, U.start({
973
+ c.current = o, B.start({
974
974
  immediate: !0,
975
- val: a
975
+ val: o
976
976
  });
977
977
  setTimeout(() => {
978
978
  Z.current = !1;
@@ -988,7 +988,7 @@ function Wr({
988
988
  n.length,
989
989
  J,
990
990
  _e,
991
- U,
991
+ B,
992
992
  v,
993
993
  l
994
994
  ]
@@ -996,111 +996,110 @@ function Wr({
996
996
  function X() {
997
997
  return u && E.current ? E.current[d === "x" ? "scrollLeft" : "scrollTop"] : ue.val.get();
998
998
  }
999
- function Ce(r, a) {
999
+ function Ce(r, o) {
1000
1000
  if (u && r === "next") {
1001
- const o = c.current + C();
1002
- return o > M() ? M() : o;
1001
+ const a = c.current + C();
1002
+ return a > M() ? M() : a;
1003
1003
  }
1004
1004
  if (u && r === "prev") {
1005
- const o = c.current - C();
1006
- return o < 0 ? 0 : o;
1005
+ const a = c.current - C();
1006
+ return a < 0 ? 0 : a;
1007
1007
  }
1008
- return r === "next" ? typeof a == "number" ? -(a * C()) : c.current - C() : typeof a == "number" ? -(a * C()) : c.current + C();
1008
+ return r === "next" ? typeof o == "number" ? -(o * C()) : c.current - C() : typeof o == "number" ? -(o * C()) : c.current + C();
1009
1009
  }
1010
- function pe({ type: r, index: a, immediate: o }) {
1011
- if (!p || L.current || I.current && !l)
1010
+ function ge({ type: r, index: o, immediate: a }) {
1011
+ if (!g || L.current || I.current && !l)
1012
1012
  return;
1013
- g.current && (we.current = "backward"), z.current = "prev", g.current = !1;
1014
- const k = typeof a == "number" ? a : N.current - 1;
1013
+ m.current && (we.current = "backward"), z.current = "prev", m.current = !1;
1014
+ const k = typeof o == "number" ? o : V.current - 1;
1015
1015
  if (u && be(), !l) {
1016
- const K = u ? Ce("prev", a) - C() / 3 < 0 : Ce("prev", a) + C() / 3 > 0;
1016
+ const K = u ? Ce("prev", o) - C() / 3 < 0 : Ce("prev", o) + C() / 3 > 0;
1017
1017
  if (I.current)
1018
1018
  return;
1019
1019
  if (K) {
1020
- I.current = !0, g.current = !1, G({
1020
+ I.current = !0, m.current = !1, G({
1021
1021
  slideMode: r,
1022
1022
  from: X(),
1023
1023
  to: 0,
1024
1024
  nextActiveItem: 0,
1025
- immediate: o
1025
+ immediate: a
1026
1026
  });
1027
1027
  return;
1028
1028
  }
1029
1029
  }
1030
1030
  if (l && (I.current || k < 0)) {
1031
- I.current = !1, g.current = !0, G({
1031
+ I.current = !1, m.current = !0, G({
1032
1032
  slideMode: r,
1033
1033
  from: X() - C() * n.length,
1034
1034
  to: -(C() * n.length) + C(),
1035
1035
  nextActiveItem: n.length - 1,
1036
- immediate: o
1036
+ immediate: a
1037
1037
  });
1038
1038
  return;
1039
1039
  }
1040
- k === 0 && (I.current = !0), (k === n.length - 1 || k === -1) && (g.current = !0), G({
1040
+ k === 0 && (I.current = !0), (k === n.length - 1 || k === -1) && (m.current = !0), G({
1041
1041
  slideMode: r,
1042
1042
  from: X(),
1043
- to: Ce("prev", a),
1043
+ to: Ce("prev", o),
1044
1044
  nextActiveItem: k,
1045
- immediate: o
1045
+ immediate: a
1046
1046
  });
1047
1047
  }
1048
- function se({ type: r, index: a, immediate: o }) {
1049
- if (console.log("here1"), !p || L.current || g.current && !l)
1048
+ function se({ type: r, index: o, immediate: a }) {
1049
+ if (!g || L.current || m.current && !l)
1050
1050
  return;
1051
- console.log("2"), I.current && (we.current = "forward"), z.current = "next", I.current = !1;
1052
- const k = a || N.current + 1;
1051
+ I.current && (we.current = "forward"), z.current = "next", I.current = !1;
1052
+ const k = o || V.current + 1;
1053
1053
  if (u && be(), !l) {
1054
- console.log("3");
1055
- const K = Math.abs(Ce("next", a)) > M() - C() / 3;
1056
- if (g.current)
1054
+ const K = Math.abs(Ce("next", o)) > M() - C() / 3;
1055
+ if (m.current)
1057
1056
  return;
1058
1057
  if (K) {
1059
- I.current = !1, g.current = !0, G({
1058
+ I.current = !1, m.current = !0, G({
1060
1059
  slideMode: r,
1061
1060
  from: X(),
1062
1061
  to: u ? M() : -M(),
1063
1062
  nextActiveItem: k,
1064
- immediate: o
1063
+ immediate: a
1065
1064
  });
1066
1065
  return;
1067
1066
  }
1068
1067
  }
1069
- if (l && (g.current || k > n.length - 1)) {
1070
- g.current = !1, I.current = !0, G({
1068
+ if (l && (m.current || k > n.length - 1)) {
1069
+ m.current = !1, I.current = !0, G({
1071
1070
  slideMode: r,
1072
1071
  from: X() + C() * n.length,
1073
1072
  to: 0,
1074
1073
  nextActiveItem: 0,
1075
- immediate: o
1074
+ immediate: a
1076
1075
  });
1077
1076
  return;
1078
1077
  }
1079
- k === 0 && (I.current = !0), k === n.length - 1 && (g.current = !0), G({
1078
+ k === 0 && (I.current = !0), k === n.length - 1 && (m.current = !0), G({
1080
1079
  slideMode: r,
1081
1080
  from: X(),
1082
- to: Ce("next", a),
1081
+ to: Ce("next", o),
1083
1082
  nextActiveItem: k,
1084
- immediate: o
1083
+ immediate: a
1085
1084
  });
1086
1085
  }
1087
1086
  function Je() {
1088
- q ? ae.current = q : ae.current = Math.floor(C() / 2 / 2);
1087
+ q ? oe.current = q : oe.current = Math.floor(C() / 2 / 2);
1089
1088
  }
1090
1089
  function ye() {
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());
1090
+ P.current && (he.current = M(), R.current = l, F.current = v, te.current = u, me.current = window.innerWidth, c.current = 0, Ve({ id: 0, immediate: !0, shouldReset: !0 }), Je(), Fe());
1092
1091
  }
1093
1092
  const ze = hr(
1094
1093
  (r) => {
1095
- const a = r.dragging, o = r.offset[d === "x" ? 0 : 1], k = r.movement[d === "x" ? 0 : 1], K = r.direction[d === "x" ? 0 : 1], Te = k > ae.current, le = k < -ae.current, Ze = M(), ie = r.velocity;
1096
- if (a) {
1097
- if (K > 0 ? z.current = "prev" : z.current = "next", me({
1094
+ const o = r.dragging, a = r.offset[d === "x" ? 0 : 1], k = r.movement[d === "x" ? 0 : 1], K = r.direction[d === "x" ? 0 : 1], Te = k > oe.current, le = k < -oe.current, Ze = M(), ie = r.velocity;
1095
+ if (o) {
1096
+ if (K > 0 ? z.current = "prev" : z.current = "next", pe({
1098
1097
  ...r,
1099
1098
  eventName: "onDrag",
1100
1099
  slideActionType: z.current
1101
1100
  }), u) {
1102
- if (o > 0) {
1103
- U.start({
1101
+ if (a > 0) {
1102
+ B.start({
1104
1103
  from: {
1105
1104
  val: X()
1106
1105
  },
@@ -1115,12 +1114,12 @@ function Wr({
1115
1114
  }), r.cancel();
1116
1115
  return;
1117
1116
  }
1118
- U.start({
1117
+ B.start({
1119
1118
  from: {
1120
1119
  val: X()
1121
1120
  },
1122
1121
  to: {
1123
- val: -o
1122
+ val: -a
1124
1123
  },
1125
1124
  config: {
1126
1125
  velocity: ie,
@@ -1130,18 +1129,18 @@ function Wr({
1130
1129
  });
1131
1130
  return;
1132
1131
  }
1133
- U.start({
1134
- val: o,
1132
+ B.start({
1133
+ val: a,
1135
1134
  config: {
1136
1135
  velocity: ie,
1137
1136
  friction: 50,
1138
1137
  tension: 1e3
1139
1138
  }
1140
- }), _ && le ? (se({ type: "drag" }), r.cancel()) : _ && Te && (pe({ type: "drag" }), r.cancel()), Ze - Math.abs(o) < -(C() * 2) && r.cancel();
1139
+ }), _ && le ? (se({ type: "drag" }), r.cancel()) : _ && Te && (ge({ type: "drag" }), r.cancel()), Ze - Math.abs(a) < -(C() * 2) && r.cancel();
1141
1140
  return;
1142
1141
  }
1143
- if (r.last && u && o > 0) {
1144
- U.start({
1142
+ if (r.last && u && a > 0) {
1143
+ B.start({
1145
1144
  from: {
1146
1145
  val: X()
1147
1146
  },
@@ -1156,25 +1155,25 @@ function Wr({
1156
1155
  });
1157
1156
  return;
1158
1157
  }
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({
1158
+ r.last && !r.canceled && u && (z.current === "prev" && ge({ type: "drag" }), z.current === "next" && se({ type: "drag" })), r.last && !r.canceled && !u && (le ? !l && m.current ? B.start({
1160
1159
  val: -M(),
1161
1160
  config: {
1162
1161
  ...De.default,
1163
1162
  velocity: ie
1164
1163
  }
1165
- }) : se({ type: "drag" }) : Te ? !l && I.current ? U.start({
1164
+ }) : se({ type: "drag" }) : Te ? !l && I.current ? B.start({
1166
1165
  val: 0,
1167
1166
  config: {
1168
1167
  ...De.default,
1169
1168
  velocity: ie
1170
1169
  }
1171
- }) : pe({ type: "drag" }) : U.start({
1170
+ }) : ge({ type: "drag" }) : B.start({
1172
1171
  val: c.current,
1173
1172
  config: {
1174
1173
  ...De.default,
1175
1174
  velocity: ie
1176
1175
  }
1177
- })), r.last && r.canceled && U.start({
1176
+ })), r.last && r.canceled && B.start({
1178
1177
  val: c.current,
1179
1178
  config: {
1180
1179
  ...De.default,
@@ -1183,7 +1182,7 @@ function Wr({
1183
1182
  });
1184
1183
  },
1185
1184
  {
1186
- enabled: p && !W && !u || !!u && !!B,
1185
+ enabled: g && !W && !u || !!u && !!U,
1187
1186
  axis: d,
1188
1187
  from: () => u && E.current ? [
1189
1188
  -E.current.scrollLeft,
@@ -1199,7 +1198,7 @@ function Wr({
1199
1198
  } : {};
1200
1199
  }
1201
1200
  function be() {
1202
- E.current && (c.current = E.current[d === "x" ? "scrollLeft" : "scrollTop"], E.current[d === "x" ? "scrollLeft" : "scrollTop"] === 0 && (I.current = !0, g.current = !1), E.current[d === "x" ? "scrollLeft" : "scrollTop"] > 0 && E.current[d === "x" ? "scrollLeft" : "scrollTop"] < M() && (I.current = !1, g.current = !1), E.current[d === "x" ? "scrollLeft" : "scrollTop"] === M() && (I.current = !1, g.current = !0));
1201
+ E.current && (c.current = E.current[d === "x" ? "scrollLeft" : "scrollTop"], E.current[d === "x" ? "scrollLeft" : "scrollTop"] === 0 && (I.current = !0, m.current = !1), E.current[d === "x" ? "scrollLeft" : "scrollTop"] > 0 && E.current[d === "x" ? "scrollLeft" : "scrollTop"] < M() && (I.current = !1, m.current = !1), E.current[d === "x" ? "scrollLeft" : "scrollTop"] === M() && (I.current = !1, m.current = !0));
1203
1202
  }
1204
1203
  function Ge() {
1205
1204
  return u ? {
@@ -1208,46 +1207,46 @@ function Wr({
1208
1207
  }
1209
1208
  } : {};
1210
1209
  }
1211
- function xe(r, a) {
1212
- let o = 0;
1213
- if (typeof r == "string" ? o = n.findIndex((k) => k.id === r) : o = r, o < 0 || o >= n.length) {
1214
- if (a)
1215
- throw new Error(a);
1216
- console.error(`The item doesn't exist; check that the id provided - ${r} - is correct.`), o = -1;
1217
- }
1218
- return o;
1210
+ function xe(r, o) {
1211
+ let a = 0;
1212
+ if (typeof r == "string" ? a = n.findIndex((k) => k.id === r) : a = r, a < 0 || a >= n.length) {
1213
+ if (o)
1214
+ throw new Error(o);
1215
+ console.error(`The item doesn't exist; check that the id provided - ${r} - is correct.`), a = -1;
1216
+ }
1217
+ return a;
1219
1218
  }
1220
- function Se({ id: r, immediate: a, shouldReset: o, type: k }) {
1221
- if (!p || L.current)
1219
+ function Ve({ id: r, immediate: o, shouldReset: a, type: k }) {
1220
+ if (!g || L.current)
1222
1221
  return;
1223
- I.current = !1, g.current = !1;
1222
+ I.current = !1, m.current = !1;
1224
1223
  const K = xe(
1225
1224
  r,
1226
1225
  "The item you want to slide to doesn't exist; check the provided id."
1227
1226
  );
1228
- if (K === N.current && !o)
1227
+ if (K === V.current && !a)
1229
1228
  return;
1230
- const Te = xe(n[N.current].id), le = xe(n[K].id);
1229
+ const Te = xe(n[V.current].id), le = xe(n[K].id);
1231
1230
  le > Te ? se({
1232
- type: k || o ? "initial" : "click",
1231
+ type: k || a ? "initial" : "click",
1233
1232
  index: le,
1234
- immediate: a
1235
- }) : pe({
1236
- type: k || o ? "initial" : "click",
1233
+ immediate: o
1234
+ }) : ge({
1235
+ type: k || a ? "initial" : "click",
1237
1236
  index: le,
1238
- immediate: a
1237
+ immediate: o
1239
1238
  });
1240
1239
  }
1241
- function Ve(r) {
1242
- const a = xe(r, "The item doesn't exist; check the provided id."), o = N.current;
1243
- return l && o === n.length - 1 ? a === 0 : a === o + 1;
1240
+ function Se(r) {
1241
+ const o = xe(r, "The item doesn't exist; check the provided id."), a = V.current;
1242
+ return l && a === n.length - 1 ? o === 0 : o === a + 1;
1244
1243
  }
1245
1244
  function Ye(r) {
1246
- const a = xe(r, "The item doesn't exist; check the provided id."), o = N.current;
1247
- return l && o === 0 ? a === n.length - 1 : a === o - 1;
1245
+ const o = xe(r, "The item doesn't exist; check the provided id."), a = V.current;
1246
+ return l && a === 0 ? o === n.length - 1 : o === a - 1;
1248
1247
  }
1249
- function Be(r) {
1250
- return xe(r, "The item you want to check doesn't exist; check the provided id.") === N.current;
1248
+ function Ue(r) {
1249
+ return xe(r, "The item you want to check doesn't exist; check the provided id.") === V.current;
1251
1250
  }
1252
1251
  function er() {
1253
1252
  return W ? "unset" : d === "x" ? "pan-y" : "pan-x";
@@ -1258,7 +1257,7 @@ function Wr({
1258
1257
  exitFullscreen: Ne,
1259
1258
  getIsFullscreen: He,
1260
1259
  slideToPrevItem: (r = !0) => {
1261
- pe({
1260
+ ge({
1262
1261
  type: "click",
1263
1262
  immediate: !r
1264
1263
  });
@@ -1275,7 +1274,7 @@ function Wr({
1275
1274
  exitFullscreen: Ne,
1276
1275
  getIsFullscreen: He,
1277
1276
  slideToPrevItem: (r = !0) => {
1278
- pe({
1277
+ ge({
1279
1278
  type: "click",
1280
1279
  immediate: !r
1281
1280
  });
@@ -1286,22 +1285,22 @@ function Wr({
1286
1285
  immediate: !r
1287
1286
  });
1288
1287
  },
1289
- slideToItem: (r, a = !0) => {
1290
- Se({ id: r, immediate: !a });
1288
+ slideToItem: (r, o = !0) => {
1289
+ Ve({ id: r, immediate: !o });
1291
1290
  },
1292
- getIsNextItem: Ve,
1291
+ getIsNextItem: Se,
1293
1292
  getIsPrevItem: Ye,
1294
- getIsActiveItem: Be
1293
+ getIsActiveItem: Ue
1295
1294
  };
1296
1295
  Tr(() => {
1297
- P.current && p && (Z.current = !0, ye());
1298
- }, [p]), de(() => {
1299
- N.current !== j && (Z.current = !0, Se({
1296
+ P.current && g && (Z.current = !0, ye());
1297
+ }, [g]), de(() => {
1298
+ V.current !== j && (Z.current = !0, Ve({
1300
1299
  id: j,
1301
1300
  immediate: !O
1302
1301
  }));
1303
1302
  }, [j]), de(() => {
1304
- if (p) {
1303
+ if (g) {
1305
1304
  if (j > n.length - 1)
1306
1305
  throw new Error(
1307
1306
  `initialActiveItem (${j}) is greater than the total quantity available items (${n.length}).`
@@ -1310,15 +1309,15 @@ function Wr({
1310
1309
  `itemsPerSlide (${J}) is greater than the total quantity available items (${n.length}). Fallback to ${n.length})`
1311
1310
  );
1312
1311
  }
1313
- }, [j, n.length, J, p]), de(() => {
1314
- ge.current = window.innerWidth;
1312
+ }, [j, n.length, J, g]), de(() => {
1313
+ me.current = window.innerWidth;
1315
1314
  }, []), de(() => {
1316
- if (p) {
1315
+ if (g) {
1317
1316
  if (l && u)
1318
1317
  throw new Error("`withLoop` and `freeScroll` can't be used together.");
1319
1318
  if (u && v === "fixed")
1320
1319
  throw new Error("`freeScroll` can't be used when `scrollType: fixed`.");
1321
- if (B && (v !== "fluid" || !u))
1320
+ if (U && (v !== "fluid" || !u))
1322
1321
  throw new Error(
1323
1322
  "`enableFreeScrollDrag` must be used with `slideType: fluid` and `freeScroll=true`"
1324
1323
  );
@@ -1333,14 +1332,14 @@ function Wr({
1333
1332
  J,
1334
1333
  f,
1335
1334
  T,
1336
- p,
1335
+ g,
1337
1336
  l,
1338
1337
  v,
1339
1338
  u,
1340
- B,
1339
+ U,
1341
1340
  ee
1342
1341
  ]), de(() => {
1343
- if (!p)
1342
+ if (!g)
1344
1343
  return;
1345
1344
  function r() {
1346
1345
  document.hidden ? L.current = !0 : L.current = !1;
@@ -1348,20 +1347,20 @@ function Wr({
1348
1347
  return document.addEventListener("visibilitychange", r), () => {
1349
1348
  document.removeEventListener("visibilitychange", r);
1350
1349
  };
1351
- }, [p]), de(() => {
1350
+ }, [g]), de(() => {
1352
1351
  if (E.current) {
1353
1352
  let r;
1354
- const a = new _r(() => {
1353
+ const o = new _r(() => {
1355
1354
  if (!L.current && !Z.current) {
1356
- ge.current = window.innerWidth;
1357
- const o = Fe();
1355
+ me.current = window.innerWidth;
1356
+ const a = Fe();
1358
1357
  window.clearTimeout(r), r = setTimeout(() => {
1359
- he.current = M(), typeof o == "function" && o();
1358
+ he.current = M(), typeof a == "function" && a();
1360
1359
  }, 100);
1361
1360
  }
1362
1361
  });
1363
- return a.observe(E.current), () => {
1364
- a.disconnect();
1362
+ return o.observe(E.current), () => {
1363
+ o.disconnect();
1365
1364
  };
1366
1365
  }
1367
1366
  }, [Fe, M]);
@@ -1401,7 +1400,7 @@ function Wr({
1401
1400
  }
1402
1401
  }
1403
1402
  ) : null,
1404
- Pe.map((r, a) => /* @__PURE__ */ A.jsx(
1403
+ Pe.map((r, o) => /* @__PURE__ */ A.jsx(
1405
1404
  "div",
1406
1405
  {
1407
1406
  className: "use-spring-carousel-item",
@@ -1411,19 +1410,19 @@ function Wr({
1411
1410
  position: "relative",
1412
1411
  ...v === "fixed" ? { flex: "1" } : {},
1413
1412
  ...Qe(
1414
- a === Pe.findIndex(
1415
- (o) => o.id === Pe[Pe.length - 1].id
1413
+ o === Pe.findIndex(
1414
+ (a) => a.id === Pe[Pe.length - 1].id
1416
1415
  )
1417
1416
  )
1418
1417
  },
1419
1418
  children: typeof r.renderItem == "function" ? r.renderItem({
1420
- getIsActiveItem: Be,
1421
- getIsNextItem: Ve,
1419
+ getIsActiveItem: Ue,
1420
+ getIsNextItem: Se,
1422
1421
  getIsPrevItem: Ye,
1423
1422
  useListenToCustomEvent: ce
1424
1423
  }) : r.renderItem
1425
1424
  },
1426
- `${r.id}-${a}`
1425
+ `${r.id}-${o}`
1427
1426
  )),
1428
1427
  (u || !l) && f ? /* @__PURE__ */ A.jsx(
1429
1428
  "div",
@@ -1466,9 +1465,9 @@ const $e = {
1466
1465
  position: "absolute"
1467
1466
  }
1468
1467
  };
1469
- function Sr({
1468
+ function Vr({
1470
1469
  init: n = !0,
1471
- disableGestures: p = !1,
1470
+ disableGestures: g = !1,
1472
1471
  items: y,
1473
1472
  springConfig: D = De.default,
1474
1473
  exitBeforeEnter: Y = !1,
@@ -1480,12 +1479,12 @@ function Sr({
1480
1479
  draggingSlideTreshold: W = 50,
1481
1480
  thumbsSlideAxis: q = "x"
1482
1481
  }) {
1483
- const _ = $("next"), u = $("initial"), B = $(null), [x, oe] = Er(l ?? 0), { emitEvent: j, useListenToCustomEvent: O } = gr(), { handleScroll: ee, thumbsFragment: re } = mr({
1482
+ const _ = $("next"), u = $("initial"), U = $(null), [x, ae] = Er(l ?? 0), { emitEvent: j, useListenToCustomEvent: O } = mr(), { handleScroll: ee, thumbsFragment: re } = pr({
1484
1483
  thumbsSlideAxis: q,
1485
1484
  items: y,
1486
1485
  renderThumbFnProps: {
1487
1486
  getIsNextItem: I,
1488
- getIsPrevItem: g,
1487
+ getIsPrevItem: m,
1489
1488
  useListenToCustomEvent: O,
1490
1489
  activeItem: {
1491
1490
  index: x,
@@ -1536,7 +1535,7 @@ function Sr({
1536
1535
  };
1537
1536
  }
1538
1537
  de(() => {
1539
- typeof l == "number" && l !== x && oe(l);
1538
+ typeof l == "number" && l !== x && ae(l);
1540
1539
  }, [l]);
1541
1540
  function Z({ to: c, slideType: R, slideMode: F }) {
1542
1541
  _.current = R, u.current = F, j({
@@ -1549,9 +1548,9 @@ function Sr({
1549
1548
  startReached: c === 0,
1550
1549
  endReached: c === y.length - 1
1551
1550
  }
1552
- }), oe(c), ee(x);
1551
+ }), ae(c), ee(x);
1553
1552
  }
1554
- function ae(c) {
1553
+ function oe(c) {
1555
1554
  if (!n)
1556
1555
  return;
1557
1556
  const R = x === 0;
@@ -1613,15 +1612,15 @@ function Sr({
1613
1612
  return;
1614
1613
  j({
1615
1614
  eventName: "onRightSwipe"
1616
- }), ae("swipe");
1615
+ }), oe("swipe");
1617
1616
  }
1618
1617
  }
1619
1618
  },
1620
1619
  {
1621
- enabled: !p
1620
+ enabled: !g
1622
1621
  }
1623
1622
  );
1624
- function N(c, R) {
1623
+ function V(c, R) {
1625
1624
  let F = 0;
1626
1625
  if (typeof c == "string" ? F = y.findIndex((te) => te.id === c) : F = c, F < 0 || F >= y.length) {
1627
1626
  if (R)
@@ -1631,11 +1630,11 @@ function Sr({
1631
1630
  return F;
1632
1631
  }
1633
1632
  function I(c) {
1634
- const R = N(c, "The item doesn't exist; check the provided id."), F = x;
1633
+ const R = V(c, "The item doesn't exist; check the provided id."), F = x;
1635
1634
  return T && F === y.length - 1 ? R === 0 : R === F + 1;
1636
1635
  }
1637
- function g(c) {
1638
- const R = N(c, "The item doesn't exist; check the provided id."), F = x;
1636
+ function m(c) {
1637
+ const R = V(c, "The item doesn't exist; check the provided id."), F = x;
1639
1638
  return T && F === 0 ? R === y.length - 1 : R === F - 1;
1640
1639
  }
1641
1640
  const E = ve((c, R, F, te) => {
@@ -1654,7 +1653,7 @@ function Sr({
1654
1653
  children: typeof L == "function" ? L({
1655
1654
  useListenToCustomEvent: O,
1656
1655
  getIsNextItem: I,
1657
- getIsPrevItem: g,
1656
+ getIsPrevItem: m,
1658
1657
  activeItem: {
1659
1658
  index: x,
1660
1659
  id: y[x].id
@@ -1664,12 +1663,12 @@ function Sr({
1664
1663
  );
1665
1664
  }), P = {
1666
1665
  useListenToCustomEvent: O,
1667
- slideToPrevItem: () => ae("click"),
1666
+ slideToPrevItem: () => oe("click"),
1668
1667
  slideToNextItem: () => z("click")
1669
- }, he = /* @__PURE__ */ A.jsx(nr.Provider, { value: P, children: re }), ge = /* @__PURE__ */ A.jsx(nr.Provider, { value: P, children: /* @__PURE__ */ A.jsx(
1668
+ }, he = /* @__PURE__ */ A.jsx(nr.Provider, { value: P, children: re }), me = /* @__PURE__ */ A.jsx(nr.Provider, { value: P, children: /* @__PURE__ */ A.jsx(
1670
1669
  "div",
1671
1670
  {
1672
- ref: B,
1671
+ ref: U,
1673
1672
  ...we(),
1674
1673
  style: {
1675
1674
  display: "flex",
@@ -1683,12 +1682,12 @@ function Sr({
1683
1682
  ) });
1684
1683
  return {
1685
1684
  ...P,
1686
- carouselFragment: ge,
1685
+ carouselFragment: me,
1687
1686
  thumbsFragment: he
1688
1687
  };
1689
1688
  }
1690
1689
  const nr = fr(void 0);
1691
- function Vr() {
1690
+ function Sr() {
1692
1691
  const n = dr(nr);
1693
1692
  if (!n)
1694
1693
  throw new Error("useTransitionCarouselContext must be used within the carousel.");
@@ -1697,7 +1696,7 @@ function Vr() {
1697
1696
  export {
1698
1697
  Wr as useSpringCarousel,
1699
1698
  Nr as useSpringCarouselContext,
1700
- Sr as useTransitionCarousel,
1701
- Vr as useTransitionCarouselContext
1699
+ Vr as useTransitionCarousel,
1700
+ Sr as useTransitionCarouselContext
1702
1701
  };
1703
1702
  //# sourceMappingURL=index.es.js.map