react-spring-carousel 3.0.0-beta090.36 → 3.0.0-beta090.37
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.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +469 -463
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import lr, { useRef as O, useEffect as
|
|
1
|
+
import lr, { useRef as O, useEffect as ve, createContext as fr, useCallback as De, Fragment as Er, useContext as dr, useState as Tr } from "react";
|
|
2
2
|
import { useSpring as vr, config as We, useIsomorphicLayoutEffect as Rr, useTransition as wr, a as _r } from "@react-spring/web";
|
|
3
3
|
import { useDrag as hr } from "@use-gesture/react";
|
|
4
4
|
import Cr from "resize-observer-polyfill";
|
|
5
5
|
import Ee from "screenfull";
|
|
6
|
-
var
|
|
6
|
+
var A = {}, Ir = {
|
|
7
7
|
get exports() {
|
|
8
|
-
return
|
|
8
|
+
return A;
|
|
9
9
|
},
|
|
10
10
|
set exports(i) {
|
|
11
|
-
|
|
11
|
+
A = i;
|
|
12
12
|
}
|
|
13
|
-
},
|
|
13
|
+
}, He = {};
|
|
14
14
|
/**
|
|
15
15
|
* @license React
|
|
16
16
|
* react-jsx-runtime.production.min.js
|
|
@@ -23,20 +23,20 @@ var H = {}, Ir = {
|
|
|
23
23
|
var cr;
|
|
24
24
|
function Pr() {
|
|
25
25
|
if (cr)
|
|
26
|
-
return
|
|
26
|
+
return He;
|
|
27
27
|
cr = 1;
|
|
28
|
-
var i = lr,
|
|
29
|
-
function
|
|
30
|
-
var
|
|
28
|
+
var i = lr, m = Symbol.for("react.element"), g = Symbol.for("react.fragment"), $ = Object.prototype.hasOwnProperty, Y = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
29
|
+
function T(l, f, d) {
|
|
30
|
+
var W, L = {}, C = null, u = null;
|
|
31
31
|
d !== void 0 && (C = "" + d), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (u = f.ref);
|
|
32
|
-
for (
|
|
33
|
-
$.call(f,
|
|
32
|
+
for (W in f)
|
|
33
|
+
$.call(f, W) && !v.hasOwnProperty(W) && (L[W] = f[W]);
|
|
34
34
|
if (l && l.defaultProps)
|
|
35
|
-
for (
|
|
36
|
-
L[
|
|
37
|
-
return { $$typeof:
|
|
35
|
+
for (W in f = l.defaultProps, f)
|
|
36
|
+
L[W] === void 0 && (L[W] = f[W]);
|
|
37
|
+
return { $$typeof: m, type: l, key: C, ref: u, props: L, _owner: Y.current };
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return He.Fragment = g, He.jsx = T, He.jsxs = T, He;
|
|
40
40
|
}
|
|
41
41
|
var Je = {};
|
|
42
42
|
/**
|
|
@@ -51,51 +51,51 @@ var Je = {};
|
|
|
51
51
|
var sr;
|
|
52
52
|
function kr() {
|
|
53
53
|
return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
54
|
-
var i = lr,
|
|
55
|
-
function
|
|
54
|
+
var i = lr, m = Symbol.for("react.element"), g = Symbol.for("react.portal"), $ = 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"), L = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), U = Symbol.iterator, E = "@@iterator";
|
|
55
|
+
function ie(e) {
|
|
56
56
|
if (e === null || typeof e != "object")
|
|
57
57
|
return null;
|
|
58
|
-
var t = U && e[U] || e[
|
|
58
|
+
var t = U && e[U] || e[E];
|
|
59
59
|
return typeof t == "function" ? t : null;
|
|
60
60
|
}
|
|
61
61
|
var F = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
62
62
|
function j(e) {
|
|
63
63
|
{
|
|
64
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0),
|
|
65
|
-
n[
|
|
64
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
65
|
+
n[s - 1] = arguments[s];
|
|
66
66
|
G("error", e, n);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
function G(e, t, n) {
|
|
70
70
|
{
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
var _ = n.map(function(
|
|
74
|
-
return String(
|
|
71
|
+
var s = F.ReactDebugCurrentFrame, b = s.getStackAddendum();
|
|
72
|
+
b !== "" && (t += "%s", n = n.concat([b]));
|
|
73
|
+
var _ = n.map(function(p) {
|
|
74
|
+
return String(p);
|
|
75
75
|
});
|
|
76
76
|
_.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
var Ne = !1, ee = !1, q = !1, re = !1,
|
|
80
|
-
|
|
79
|
+
var Ne = !1, ee = !1, q = !1, re = !1, ae = !1, z;
|
|
80
|
+
z = Symbol.for("react.module.reference");
|
|
81
81
|
function Te(e) {
|
|
82
|
-
return !!(typeof e == "string" || typeof e == "function" || e === $ || e === v ||
|
|
82
|
+
return !!(typeof e == "string" || typeof e == "function" || e === $ || e === v || ae || e === Y || e === d || e === W || re || e === u || Ne || ee || q || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === L || 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
|
-
e.$$typeof ===
|
|
86
|
+
e.$$typeof === z || e.getModuleId !== void 0));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
var
|
|
90
|
-
if (
|
|
91
|
-
return
|
|
92
|
-
var
|
|
93
|
-
return
|
|
88
|
+
function he(e, t, n) {
|
|
89
|
+
var s = e.displayName;
|
|
90
|
+
if (s)
|
|
91
|
+
return s;
|
|
92
|
+
var b = t.displayName || t.name || "";
|
|
93
|
+
return b !== "" ? n + "(" + b + ")" : n;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function N(e) {
|
|
96
96
|
return e.displayName || "Context";
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function y(e) {
|
|
99
99
|
if (e == null)
|
|
100
100
|
return null;
|
|
101
101
|
if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -105,7 +105,7 @@ function kr() {
|
|
|
105
105
|
switch (e) {
|
|
106
106
|
case $:
|
|
107
107
|
return "Fragment";
|
|
108
|
-
case
|
|
108
|
+
case g:
|
|
109
109
|
return "Portal";
|
|
110
110
|
case v:
|
|
111
111
|
return "Profiler";
|
|
@@ -113,26 +113,26 @@ function kr() {
|
|
|
113
113
|
return "StrictMode";
|
|
114
114
|
case d:
|
|
115
115
|
return "Suspense";
|
|
116
|
-
case
|
|
116
|
+
case W:
|
|
117
117
|
return "SuspenseList";
|
|
118
118
|
}
|
|
119
119
|
if (typeof e == "object")
|
|
120
120
|
switch (e.$$typeof) {
|
|
121
121
|
case l:
|
|
122
122
|
var t = e;
|
|
123
|
-
return
|
|
124
|
-
case
|
|
123
|
+
return N(t) + ".Consumer";
|
|
124
|
+
case T:
|
|
125
125
|
var n = e;
|
|
126
|
-
return
|
|
126
|
+
return N(n._context) + ".Provider";
|
|
127
127
|
case f:
|
|
128
|
-
return
|
|
128
|
+
return he(e, e.render, "ForwardRef");
|
|
129
129
|
case L:
|
|
130
|
-
var
|
|
131
|
-
return
|
|
130
|
+
var s = e.displayName || null;
|
|
131
|
+
return s !== null ? s : y(e.type) || "Memo";
|
|
132
132
|
case C: {
|
|
133
|
-
var
|
|
133
|
+
var b = e, _ = b._payload, p = b._init;
|
|
134
134
|
try {
|
|
135
|
-
return
|
|
135
|
+
return y(p(_));
|
|
136
136
|
} catch {
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
@@ -140,18 +140,18 @@ function kr() {
|
|
|
140
140
|
}
|
|
141
141
|
return null;
|
|
142
142
|
}
|
|
143
|
-
var x = Object.assign, R = 0,
|
|
144
|
-
function
|
|
143
|
+
var x = Object.assign, R = 0, D, me, pe, c, w, k, te;
|
|
144
|
+
function H() {
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
function
|
|
146
|
+
H.__reactDisabledLog = !0;
|
|
147
|
+
function ze() {
|
|
148
148
|
{
|
|
149
149
|
if (R === 0) {
|
|
150
|
-
|
|
150
|
+
D = console.log, me = console.info, pe = console.warn, c = console.error, w = console.group, k = console.groupCollapsed, te = console.groupEnd;
|
|
151
151
|
var e = {
|
|
152
152
|
configurable: !0,
|
|
153
153
|
enumerable: !0,
|
|
154
|
-
value:
|
|
154
|
+
value: H,
|
|
155
155
|
writable: !0
|
|
156
156
|
};
|
|
157
157
|
Object.defineProperties(console, {
|
|
@@ -177,25 +177,25 @@ function kr() {
|
|
|
177
177
|
};
|
|
178
178
|
Object.defineProperties(console, {
|
|
179
179
|
log: x({}, e, {
|
|
180
|
-
value:
|
|
180
|
+
value: D
|
|
181
181
|
}),
|
|
182
182
|
info: x({}, e, {
|
|
183
|
-
value:
|
|
183
|
+
value: me
|
|
184
184
|
}),
|
|
185
185
|
warn: x({}, e, {
|
|
186
|
-
value:
|
|
186
|
+
value: pe
|
|
187
187
|
}),
|
|
188
188
|
error: x({}, e, {
|
|
189
|
-
value:
|
|
189
|
+
value: c
|
|
190
190
|
}),
|
|
191
191
|
group: x({}, e, {
|
|
192
|
-
value:
|
|
192
|
+
value: w
|
|
193
193
|
}),
|
|
194
194
|
groupCollapsed: x({}, e, {
|
|
195
|
-
value:
|
|
195
|
+
value: k
|
|
196
196
|
}),
|
|
197
197
|
groupEnd: x({}, e, {
|
|
198
|
-
value:
|
|
198
|
+
value: te
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
201
|
}
|
|
@@ -203,14 +203,14 @@ function kr() {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
var Z = F.ReactCurrentDispatcher, B;
|
|
206
|
-
function
|
|
206
|
+
function oe(e, t, n) {
|
|
207
207
|
{
|
|
208
208
|
if (B === void 0)
|
|
209
209
|
try {
|
|
210
210
|
throw Error();
|
|
211
|
-
} catch (
|
|
212
|
-
var
|
|
213
|
-
B =
|
|
211
|
+
} catch (b) {
|
|
212
|
+
var s = b.stack.trim().match(/\n( *(at )?)/);
|
|
213
|
+
B = s && s[1] || "";
|
|
214
214
|
}
|
|
215
215
|
return `
|
|
216
216
|
` + B + e;
|
|
@@ -218,8 +218,8 @@ function kr() {
|
|
|
218
218
|
}
|
|
219
219
|
var ge = !1, Pe;
|
|
220
220
|
{
|
|
221
|
-
var
|
|
222
|
-
Pe = new
|
|
221
|
+
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
222
|
+
Pe = new Ge();
|
|
223
223
|
}
|
|
224
224
|
function Ve(e, t) {
|
|
225
225
|
if (!e || ge)
|
|
@@ -229,73 +229,73 @@ function kr() {
|
|
|
229
229
|
if (n !== void 0)
|
|
230
230
|
return n;
|
|
231
231
|
}
|
|
232
|
-
var
|
|
232
|
+
var s;
|
|
233
233
|
ge = !0;
|
|
234
|
-
var
|
|
234
|
+
var b = Error.prepareStackTrace;
|
|
235
235
|
Error.prepareStackTrace = void 0;
|
|
236
236
|
var _;
|
|
237
|
-
_ = Z.current, Z.current = null,
|
|
237
|
+
_ = Z.current, Z.current = null, ze();
|
|
238
238
|
try {
|
|
239
239
|
if (t) {
|
|
240
|
-
var
|
|
240
|
+
var p = function() {
|
|
241
241
|
throw Error();
|
|
242
242
|
};
|
|
243
|
-
if (Object.defineProperty(
|
|
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(
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
249
|
+
Reflect.construct(p, []);
|
|
250
|
+
} catch (de) {
|
|
251
|
+
s = de;
|
|
252
252
|
}
|
|
253
|
-
Reflect.construct(e, [],
|
|
253
|
+
Reflect.construct(e, [], p);
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
|
-
|
|
257
|
-
} catch (
|
|
258
|
-
|
|
256
|
+
p.call();
|
|
257
|
+
} catch (de) {
|
|
258
|
+
s = de;
|
|
259
259
|
}
|
|
260
|
-
e.call(
|
|
260
|
+
e.call(p.prototype);
|
|
261
261
|
}
|
|
262
262
|
} else {
|
|
263
263
|
try {
|
|
264
264
|
throw Error();
|
|
265
|
-
} catch (
|
|
266
|
-
|
|
265
|
+
} catch (de) {
|
|
266
|
+
s = de;
|
|
267
267
|
}
|
|
268
268
|
e();
|
|
269
269
|
}
|
|
270
|
-
} catch (
|
|
271
|
-
if (
|
|
272
|
-
for (var h =
|
|
273
|
-
`),
|
|
274
|
-
`),
|
|
270
|
+
} catch (de) {
|
|
271
|
+
if (de && s && typeof de.stack == "string") {
|
|
272
|
+
for (var h = de.stack.split(`
|
|
273
|
+
`), J = s.stack.split(`
|
|
274
|
+
`), V = h.length - 1, S = J.length - 1; V >= 1 && S >= 0 && h[V] !== J[S]; )
|
|
275
275
|
S--;
|
|
276
|
-
for (;
|
|
277
|
-
if (h[
|
|
278
|
-
if (
|
|
276
|
+
for (; V >= 1 && S >= 0; V--, S--)
|
|
277
|
+
if (h[V] !== J[S]) {
|
|
278
|
+
if (V !== 1 || S !== 1)
|
|
279
279
|
do
|
|
280
|
-
if (
|
|
281
|
-
var
|
|
282
|
-
` + h[
|
|
283
|
-
return e.displayName &&
|
|
280
|
+
if (V--, S--, S < 0 || h[V] !== J[S]) {
|
|
281
|
+
var K = `
|
|
282
|
+
` + h[V].replace(" at new ", " at ");
|
|
283
|
+
return e.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", e.displayName)), typeof e == "function" && Pe.set(e, K), K;
|
|
284
284
|
}
|
|
285
|
-
while (
|
|
285
|
+
while (V >= 1 && S >= 0);
|
|
286
286
|
break;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
} finally {
|
|
290
|
-
ge = !1, Z.current = _, Ie(), Error.prepareStackTrace =
|
|
290
|
+
ge = !1, Z.current = _, Ie(), Error.prepareStackTrace = b;
|
|
291
291
|
}
|
|
292
|
-
var $e = e ? e.displayName || e.name : "", ur = $e ?
|
|
292
|
+
var $e = e ? e.displayName || e.name : "", ur = $e ? oe($e) : "";
|
|
293
293
|
return typeof e == "function" && Pe.set(e, ur), ur;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Xe(e, t, n) {
|
|
296
296
|
return Ve(e, !1);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Ke(e) {
|
|
299
299
|
var t = e.prototype;
|
|
300
300
|
return !!(t && t.isReactComponent);
|
|
301
301
|
}
|
|
@@ -303,55 +303,55 @@ function kr() {
|
|
|
303
303
|
if (e == null)
|
|
304
304
|
return "";
|
|
305
305
|
if (typeof e == "function")
|
|
306
|
-
return Ve(e,
|
|
306
|
+
return Ve(e, Ke(e));
|
|
307
307
|
if (typeof e == "string")
|
|
308
|
-
return
|
|
308
|
+
return oe(e);
|
|
309
309
|
switch (e) {
|
|
310
310
|
case d:
|
|
311
|
-
return
|
|
312
|
-
case
|
|
313
|
-
return
|
|
311
|
+
return oe("Suspense");
|
|
312
|
+
case W:
|
|
313
|
+
return oe("SuspenseList");
|
|
314
314
|
}
|
|
315
315
|
if (typeof e == "object")
|
|
316
316
|
switch (e.$$typeof) {
|
|
317
317
|
case f:
|
|
318
|
-
return
|
|
318
|
+
return Xe(e.render);
|
|
319
319
|
case L:
|
|
320
320
|
return ke(e.type, t, n);
|
|
321
321
|
case C: {
|
|
322
|
-
var
|
|
322
|
+
var s = e, b = s._payload, _ = s._init;
|
|
323
323
|
try {
|
|
324
|
-
return ke(_(
|
|
324
|
+
return ke(_(b), t, n);
|
|
325
325
|
} catch {
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
return "";
|
|
330
330
|
}
|
|
331
|
-
var I = Object.prototype.hasOwnProperty,
|
|
331
|
+
var I = Object.prototype.hasOwnProperty, ue = {}, M = F.ReactDebugCurrentFrame;
|
|
332
332
|
function Fe(e) {
|
|
333
333
|
if (e) {
|
|
334
334
|
var t = e._owner, n = ke(e.type, e._source, t ? t.type : null);
|
|
335
|
-
|
|
335
|
+
M.setExtraStackFrame(n);
|
|
336
336
|
} else
|
|
337
|
-
|
|
337
|
+
M.setExtraStackFrame(null);
|
|
338
338
|
}
|
|
339
|
-
function Re(e, t, n,
|
|
339
|
+
function Re(e, t, n, s, b) {
|
|
340
340
|
{
|
|
341
341
|
var _ = Function.call.bind(I);
|
|
342
|
-
for (var
|
|
343
|
-
if (_(e,
|
|
342
|
+
for (var p in e)
|
|
343
|
+
if (_(e, p)) {
|
|
344
344
|
var h = void 0;
|
|
345
345
|
try {
|
|
346
|
-
if (typeof e[
|
|
347
|
-
var
|
|
348
|
-
throw
|
|
346
|
+
if (typeof e[p] != "function") {
|
|
347
|
+
var J = Error((s || "React class") + ": " + n + " 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
|
+
throw J.name = "Invariant Violation", J;
|
|
349
349
|
}
|
|
350
|
-
h = e[
|
|
351
|
-
} catch (
|
|
352
|
-
h =
|
|
350
|
+
h = e[p](t, p, s, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
351
|
+
} catch (V) {
|
|
352
|
+
h = V;
|
|
353
353
|
}
|
|
354
|
-
h && !(h instanceof Error) && (Fe(
|
|
354
|
+
h && !(h instanceof Error) && (Fe(b), j("%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", n, p, typeof h), Fe(null)), h instanceof Error && !(h.message in ue) && (ue[h.message] = !0, Fe(b), j("Failed %s type: %s", n, h.message), Fe(null));
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
}
|
|
@@ -367,24 +367,24 @@ function kr() {
|
|
|
367
367
|
}
|
|
368
368
|
function _e(e) {
|
|
369
369
|
try {
|
|
370
|
-
return
|
|
370
|
+
return ce(e), !1;
|
|
371
371
|
} catch {
|
|
372
372
|
return !0;
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function ce(e) {
|
|
376
376
|
return "" + e;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function se(e) {
|
|
379
379
|
if (_e(e))
|
|
380
|
-
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Q(e)),
|
|
380
|
+
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Q(e)), ce(e);
|
|
381
381
|
}
|
|
382
|
-
var Ce = F.ReactCurrentOwner,
|
|
382
|
+
var Ce = F.ReactCurrentOwner, Ze = {
|
|
383
383
|
key: !0,
|
|
384
384
|
ref: !0,
|
|
385
385
|
__self: !0,
|
|
386
386
|
__source: !0
|
|
387
|
-
},
|
|
387
|
+
}, er, Qe, Se;
|
|
388
388
|
Se = {};
|
|
389
389
|
function je(e) {
|
|
390
390
|
if (I.call(e, "ref")) {
|
|
@@ -394,7 +394,7 @@ function kr() {
|
|
|
394
394
|
}
|
|
395
395
|
return e.ref !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function rr(e) {
|
|
398
398
|
if (I.call(e, "key")) {
|
|
399
399
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
400
400
|
if (t && t.isReactWarning)
|
|
@@ -402,16 +402,16 @@ function kr() {
|
|
|
402
402
|
}
|
|
403
403
|
return e.key !== void 0;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function xe(e, t) {
|
|
406
406
|
if (typeof e.ref == "string" && Ce.current && t && Ce.current.stateNode !== t) {
|
|
407
|
-
var n =
|
|
408
|
-
Se[n] || (j('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',
|
|
407
|
+
var n = y(Ce.current.type);
|
|
408
|
+
Se[n] || (j('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', y(Ce.current.type), e.ref), Se[n] = !0);
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function Ye(e, t) {
|
|
412
412
|
{
|
|
413
413
|
var n = function() {
|
|
414
|
-
|
|
414
|
+
er || (er = !0, j("%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));
|
|
415
415
|
};
|
|
416
416
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
417
417
|
get: n,
|
|
@@ -422,7 +422,7 @@ function kr() {
|
|
|
422
422
|
function Ue(e, t) {
|
|
423
423
|
{
|
|
424
424
|
var n = function() {
|
|
425
|
-
|
|
425
|
+
Qe || (Qe = !0, j("%s: `ref` 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));
|
|
426
426
|
};
|
|
427
427
|
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
428
428
|
get: n,
|
|
@@ -430,15 +430,15 @@ function kr() {
|
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
var Be = function(e, t, n,
|
|
433
|
+
var Be = function(e, t, n, s, b, _, p) {
|
|
434
434
|
var h = {
|
|
435
435
|
// This tag allows us to uniquely identify this as a React Element
|
|
436
|
-
$$typeof:
|
|
436
|
+
$$typeof: m,
|
|
437
437
|
// Built-in properties that belong on the element
|
|
438
438
|
type: e,
|
|
439
439
|
key: t,
|
|
440
440
|
ref: n,
|
|
441
|
-
props:
|
|
441
|
+
props: p,
|
|
442
442
|
// Record the component responsible for creating this element.
|
|
443
443
|
_owner: _
|
|
444
444
|
};
|
|
@@ -451,49 +451,49 @@ function kr() {
|
|
|
451
451
|
configurable: !1,
|
|
452
452
|
enumerable: !1,
|
|
453
453
|
writable: !1,
|
|
454
|
-
value:
|
|
454
|
+
value: s
|
|
455
455
|
}), Object.defineProperty(h, "_source", {
|
|
456
456
|
configurable: !1,
|
|
457
457
|
enumerable: !1,
|
|
458
458
|
writable: !1,
|
|
459
|
-
value:
|
|
459
|
+
value: b
|
|
460
460
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
461
461
|
};
|
|
462
|
-
function qe(e, t, n,
|
|
462
|
+
function qe(e, t, n, s, b) {
|
|
463
463
|
{
|
|
464
|
-
var _,
|
|
465
|
-
n !== void 0 && (
|
|
464
|
+
var _, p = {}, h = null, J = null;
|
|
465
|
+
n !== void 0 && (se(n), h = "" + n), rr(t) && (se(t.key), h = "" + t.key), je(t) && (J = t.ref, xe(t, b));
|
|
466
466
|
for (_ in t)
|
|
467
|
-
I.call(t, _) && !
|
|
467
|
+
I.call(t, _) && !Ze.hasOwnProperty(_) && (p[_] = t[_]);
|
|
468
468
|
if (e && e.defaultProps) {
|
|
469
|
-
var
|
|
470
|
-
for (_ in
|
|
471
|
-
|
|
469
|
+
var V = e.defaultProps;
|
|
470
|
+
for (_ in V)
|
|
471
|
+
p[_] === void 0 && (p[_] = V[_]);
|
|
472
472
|
}
|
|
473
|
-
if (h ||
|
|
473
|
+
if (h || J) {
|
|
474
474
|
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
475
|
-
h && Ye(
|
|
475
|
+
h && Ye(p, S), J && Ue(p, S);
|
|
476
476
|
}
|
|
477
|
-
return Be(e, h,
|
|
477
|
+
return Be(e, h, J, b, s, Ce.current, p);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
var Le = F.ReactCurrentOwner, Oe = F.ReactDebugCurrentFrame;
|
|
481
|
-
function
|
|
481
|
+
function be(e) {
|
|
482
482
|
if (e) {
|
|
483
483
|
var t = e._owner, n = ke(e.type, e._source, t ? t.type : null);
|
|
484
484
|
Oe.setExtraStackFrame(n);
|
|
485
485
|
} else
|
|
486
486
|
Oe.setExtraStackFrame(null);
|
|
487
487
|
}
|
|
488
|
-
var
|
|
489
|
-
|
|
488
|
+
var Ae;
|
|
489
|
+
Ae = !1;
|
|
490
490
|
function r(e) {
|
|
491
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
491
|
+
return typeof e == "object" && e !== null && e.$$typeof === m;
|
|
492
492
|
}
|
|
493
493
|
function o() {
|
|
494
494
|
{
|
|
495
495
|
if (Le.current) {
|
|
496
|
-
var e =
|
|
496
|
+
var e = y(Le.current.type);
|
|
497
497
|
if (e)
|
|
498
498
|
return `
|
|
499
499
|
|
|
@@ -514,7 +514,7 @@ Check your code at ` + t + ":" + n + ".";
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
var P = {};
|
|
517
|
-
function
|
|
517
|
+
function X(e) {
|
|
518
518
|
{
|
|
519
519
|
var t = o();
|
|
520
520
|
if (!t) {
|
|
@@ -526,39 +526,39 @@ Check the top-level render call using <` + n + ">.");
|
|
|
526
526
|
return t;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function le(e, t) {
|
|
530
530
|
{
|
|
531
531
|
if (!e._store || e._store.validated || e.key != null)
|
|
532
532
|
return;
|
|
533
533
|
e._store.validated = !0;
|
|
534
|
-
var n =
|
|
534
|
+
var n = X(t);
|
|
535
535
|
if (P[n])
|
|
536
536
|
return;
|
|
537
537
|
P[n] = !0;
|
|
538
|
-
var
|
|
539
|
-
e && e._owner && e._owner !== Le.current && (
|
|
538
|
+
var s = "";
|
|
539
|
+
e && e._owner && e._owner !== Le.current && (s = " It was passed a child from " + y(e._owner.type) + "."), be(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, s), be(null);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function fe(e, t) {
|
|
543
543
|
{
|
|
544
544
|
if (typeof e != "object")
|
|
545
545
|
return;
|
|
546
546
|
if (ye(e))
|
|
547
547
|
for (var n = 0; n < e.length; n++) {
|
|
548
|
-
var
|
|
549
|
-
r(
|
|
548
|
+
var s = e[n];
|
|
549
|
+
r(s) && le(s, t);
|
|
550
550
|
}
|
|
551
551
|
else if (r(e))
|
|
552
552
|
e._store && (e._store.validated = !0);
|
|
553
553
|
else if (e) {
|
|
554
|
-
var
|
|
555
|
-
if (typeof
|
|
556
|
-
for (var _ =
|
|
557
|
-
r(
|
|
554
|
+
var b = ie(e);
|
|
555
|
+
if (typeof b == "function" && b !== e.entries)
|
|
556
|
+
for (var _ = b.call(e), p; !(p = _.next()).done; )
|
|
557
|
+
r(p.value) && le(p.value, t);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function tr(e) {
|
|
562
562
|
{
|
|
563
563
|
var t = e.type;
|
|
564
564
|
if (t == null || typeof t == "string")
|
|
@@ -573,109 +573,109 @@ Check the top-level render call using <` + n + ">.");
|
|
|
573
573
|
else
|
|
574
574
|
return;
|
|
575
575
|
if (n) {
|
|
576
|
-
var
|
|
577
|
-
Re(n, e.props, "prop",
|
|
578
|
-
} else if (t.PropTypes !== void 0 && !
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
576
|
+
var s = y(t);
|
|
577
|
+
Re(n, e.props, "prop", s, e);
|
|
578
|
+
} else if (t.PropTypes !== void 0 && !Ae) {
|
|
579
|
+
Ae = !0;
|
|
580
|
+
var b = y(t);
|
|
581
|
+
j("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 && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function ne(e) {
|
|
587
587
|
{
|
|
588
588
|
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
591
|
-
|
|
589
|
+
var s = t[n];
|
|
590
|
+
if (s !== "children" && s !== "key") {
|
|
591
|
+
be(e), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), be(null);
|
|
592
592
|
break;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
e.ref !== null && (
|
|
595
|
+
e.ref !== null && (be(e), j("Invalid attribute `ref` supplied to `React.Fragment`."), be(null));
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function nr(e, t, n, s, b, _) {
|
|
599
599
|
{
|
|
600
|
-
var
|
|
601
|
-
if (!
|
|
600
|
+
var p = Te(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
|
-
var
|
|
605
|
-
|
|
606
|
-
var
|
|
607
|
-
e === null ?
|
|
604
|
+
var J = a(b);
|
|
605
|
+
J ? h += J : h += o();
|
|
606
|
+
var V;
|
|
607
|
+
e === null ? V = "null" : ye(e) ? V = "array" : e !== void 0 && e.$$typeof === m ? (V = "<" + (y(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : V = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, h);
|
|
608
608
|
}
|
|
609
|
-
var S = qe(e, t, n,
|
|
609
|
+
var S = qe(e, t, n, b, _);
|
|
610
610
|
if (S == null)
|
|
611
611
|
return S;
|
|
612
|
-
if (
|
|
613
|
-
var
|
|
614
|
-
if (
|
|
615
|
-
if (
|
|
616
|
-
if (ye(
|
|
617
|
-
for (var $e = 0; $e <
|
|
618
|
-
|
|
619
|
-
Object.freeze && Object.freeze(
|
|
612
|
+
if (p) {
|
|
613
|
+
var K = t.children;
|
|
614
|
+
if (K !== void 0)
|
|
615
|
+
if (s)
|
|
616
|
+
if (ye(K)) {
|
|
617
|
+
for (var $e = 0; $e < K.length; $e++)
|
|
618
|
+
fe(K[$e], e);
|
|
619
|
+
Object.freeze && Object.freeze(K);
|
|
620
620
|
} else
|
|
621
621
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
622
622
|
else
|
|
623
|
-
|
|
623
|
+
fe(K, e);
|
|
624
624
|
}
|
|
625
|
-
return e === $ ?
|
|
625
|
+
return e === $ ? ne(S) : tr(S), S;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
function gr(e, t, n) {
|
|
629
|
-
return
|
|
629
|
+
return nr(e, t, n, !0);
|
|
630
630
|
}
|
|
631
631
|
function yr(e, t, n) {
|
|
632
|
-
return
|
|
632
|
+
return nr(e, t, n, !1);
|
|
633
633
|
}
|
|
634
|
-
var
|
|
635
|
-
Je.Fragment = $, Je.jsx =
|
|
634
|
+
var xr = yr, br = gr;
|
|
635
|
+
Je.Fragment = $, Je.jsx = xr, Je.jsxs = br;
|
|
636
636
|
}()), Je;
|
|
637
637
|
}
|
|
638
638
|
(function(i) {
|
|
639
639
|
process.env.NODE_ENV === "production" ? i.exports = Pr() : i.exports = kr();
|
|
640
640
|
})(Ir);
|
|
641
|
-
const
|
|
641
|
+
const ir = "RSC::Event";
|
|
642
642
|
function mr() {
|
|
643
643
|
const i = O(null);
|
|
644
|
-
function
|
|
645
|
-
|
|
644
|
+
function m($) {
|
|
645
|
+
ve(() => {
|
|
646
646
|
i.current || (i.current = document.createElement("div"));
|
|
647
647
|
function Y(v) {
|
|
648
648
|
$(v.detail);
|
|
649
649
|
}
|
|
650
650
|
if (i.current)
|
|
651
|
-
return i.current.addEventListener(
|
|
651
|
+
return i.current.addEventListener(ir, Y, !1), () => {
|
|
652
652
|
var v;
|
|
653
|
-
(v = i.current) == null || v.removeEventListener(
|
|
653
|
+
(v = i.current) == null || v.removeEventListener(ir, Y, !1);
|
|
654
654
|
};
|
|
655
655
|
}, [$]);
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function g($) {
|
|
658
658
|
if (i.current) {
|
|
659
|
-
const Y = new CustomEvent(
|
|
659
|
+
const Y = new CustomEvent(ir, {
|
|
660
660
|
detail: $
|
|
661
661
|
});
|
|
662
662
|
i.current.dispatchEvent(Y);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
return {
|
|
666
|
-
useListenToCustomEvent:
|
|
667
|
-
emitEvent:
|
|
666
|
+
useListenToCustomEvent: m,
|
|
667
|
+
emitEvent: g
|
|
668
668
|
};
|
|
669
669
|
}
|
|
670
670
|
function Fr({
|
|
671
671
|
mainCarouselWrapperRef: i,
|
|
672
|
-
onFullScreenChange:
|
|
673
|
-
handleResize:
|
|
672
|
+
onFullScreenChange: m,
|
|
673
|
+
handleResize: g
|
|
674
674
|
}) {
|
|
675
675
|
const $ = O(!1);
|
|
676
|
-
|
|
676
|
+
ve(() => {
|
|
677
677
|
function f() {
|
|
678
|
-
document.fullscreenElement && (Y(!0),
|
|
678
|
+
document.fullscreenElement && (Y(!0), m(!0), g && g()), document.fullscreenElement || (Y(!1), m(!1), g && g());
|
|
679
679
|
}
|
|
680
680
|
if (Ee.isEnabled)
|
|
681
681
|
return Ee.on("change", f), () => {
|
|
@@ -688,30 +688,30 @@ function Fr({
|
|
|
688
688
|
function v() {
|
|
689
689
|
return $.current;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function T(f) {
|
|
692
692
|
Ee.isEnabled && Ee.request(f || i.current);
|
|
693
693
|
}
|
|
694
694
|
function l() {
|
|
695
695
|
Ee.isEnabled && Ee.exit();
|
|
696
696
|
}
|
|
697
697
|
return {
|
|
698
|
-
enterFullscreen:
|
|
698
|
+
enterFullscreen: T,
|
|
699
699
|
exitFullscreen: l,
|
|
700
700
|
getIsFullscreen: v
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
703
|
function jr(i) {
|
|
704
|
-
const
|
|
705
|
-
return
|
|
704
|
+
const m = i.getBoundingClientRect();
|
|
705
|
+
return m.top >= 0 && m.left >= 0 && m.bottom <= (window.innerHeight || document.documentElement.clientHeight) && m.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
706
706
|
}
|
|
707
707
|
function pr({
|
|
708
708
|
thumbsSlideAxis: i = "x",
|
|
709
|
-
withThumbs:
|
|
710
|
-
prepareThumbsData:
|
|
709
|
+
withThumbs: m = !1,
|
|
710
|
+
prepareThumbsData: g,
|
|
711
711
|
items: $,
|
|
712
712
|
renderThumbFnProps: Y
|
|
713
713
|
}) {
|
|
714
|
-
const v = O(null), [
|
|
714
|
+
const v = O(null), [T, l] = vr(() => ({
|
|
715
715
|
val: 0
|
|
716
716
|
}));
|
|
717
717
|
function f() {
|
|
@@ -721,7 +721,7 @@ function pr({
|
|
|
721
721
|
) : 0;
|
|
722
722
|
}
|
|
723
723
|
function d(C) {
|
|
724
|
-
var
|
|
724
|
+
var E;
|
|
725
725
|
function u() {
|
|
726
726
|
return v.current ? v.current.querySelector(
|
|
727
727
|
`#thumb-item-${$[C].id}`
|
|
@@ -729,10 +729,10 @@ function pr({
|
|
|
729
729
|
}
|
|
730
730
|
const U = u();
|
|
731
731
|
if (U && v.current && !jr(U)) {
|
|
732
|
-
const
|
|
732
|
+
const ie = U.offsetLeft, F = ie > f() ? f() : ie;
|
|
733
733
|
l.start({
|
|
734
734
|
from: {
|
|
735
|
-
val: ((
|
|
735
|
+
val: ((E = v.current) == null ? void 0 : E[i === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
|
|
736
736
|
},
|
|
737
737
|
to: {
|
|
738
738
|
val: F
|
|
@@ -745,22 +745,22 @@ function pr({
|
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function W() {
|
|
749
749
|
function C(u) {
|
|
750
750
|
return u.map((U) => ({
|
|
751
751
|
id: U.id,
|
|
752
752
|
renderThumb: U.renderThumb
|
|
753
753
|
}));
|
|
754
754
|
}
|
|
755
|
-
return
|
|
755
|
+
return g ? g(C($)) : C($);
|
|
756
756
|
}
|
|
757
757
|
return {
|
|
758
|
-
thumbsFragment:
|
|
758
|
+
thumbsFragment: m ? /* @__PURE__ */ A.jsx(
|
|
759
759
|
"div",
|
|
760
760
|
{
|
|
761
761
|
className: "use-spring-carousel-thumbs-wrapper",
|
|
762
762
|
ref: v,
|
|
763
|
-
onWheel: () =>
|
|
763
|
+
onWheel: () => T.val.stop(),
|
|
764
764
|
style: {
|
|
765
765
|
display: "flex",
|
|
766
766
|
flex: "1",
|
|
@@ -773,9 +773,9 @@ function pr({
|
|
|
773
773
|
maxHeight: "100%"
|
|
774
774
|
}
|
|
775
775
|
},
|
|
776
|
-
children:
|
|
776
|
+
children: W().map(({ id: C, renderThumb: u }) => {
|
|
777
777
|
const U = `thumb-item-${C}`;
|
|
778
|
-
return /* @__PURE__ */
|
|
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,29 +784,29 @@ function pr({
|
|
|
784
784
|
}
|
|
785
785
|
function Nr({
|
|
786
786
|
items: i,
|
|
787
|
-
init:
|
|
788
|
-
withThumbs:
|
|
787
|
+
init: m = !0,
|
|
788
|
+
withThumbs: g,
|
|
789
789
|
thumbsSlideAxis: $ = "x",
|
|
790
790
|
itemsPerSlide: Y = 1,
|
|
791
791
|
slideType: v = "fixed",
|
|
792
|
-
gutter:
|
|
792
|
+
gutter: T = 0,
|
|
793
793
|
withLoop: l = !1,
|
|
794
794
|
startEndGutter: f = 0,
|
|
795
795
|
carouselSlideAxis: d = "x",
|
|
796
|
-
disableGestures:
|
|
796
|
+
disableGestures: W = !1,
|
|
797
797
|
draggingSlideTreshold: L,
|
|
798
798
|
slideWhenThresholdIsReached: C = !1,
|
|
799
799
|
freeScroll: u,
|
|
800
800
|
enableFreeScrollDrag: U,
|
|
801
|
-
initialStartingPosition:
|
|
802
|
-
prepareThumbsData:
|
|
801
|
+
initialStartingPosition: E,
|
|
802
|
+
prepareThumbsData: ie,
|
|
803
803
|
initialActiveItem: F = 0,
|
|
804
804
|
animateWhenActiveItemChange: j = !0,
|
|
805
805
|
slideGroupOfItems: G = !1,
|
|
806
806
|
__unstable_stretch_tems__: Ne = !0,
|
|
807
807
|
slideAmount: ee
|
|
808
808
|
}) {
|
|
809
|
-
const q = Y, re = O(!1),
|
|
809
|
+
const q = Y, re = O(!1), ae = O(L ?? 0), z = O("initial"), Te = O("initial"), he = O("initial"), N = O(F), y = O(F === 0), x = O(v === "fixed" && F === i.length - 1), R = O(null), D = O(null), me = O(0), pe = O(0), c = O(0), w = O(l), k = O(v), te = O(u), H = O(!1), Ie = De(() => l ? [
|
|
810
810
|
...i.map((r) => ({
|
|
811
811
|
...r,
|
|
812
812
|
id: `prev-repeated-item-${r.id}`
|
|
@@ -819,16 +819,16 @@ function Nr({
|
|
|
819
819
|
] : [...i], [i, l])(), [Z, B] = vr(
|
|
820
820
|
() => ({
|
|
821
821
|
val: 0,
|
|
822
|
-
pause: !
|
|
822
|
+
pause: !m,
|
|
823
823
|
onChange: ({ value: r }) => {
|
|
824
|
-
u && R.current ? (d === "x" ? R.current.scrollLeft = Math.abs(r.val) : R.current.scrollTop = Math.abs(r.val), je()) :
|
|
824
|
+
u && R.current ? (d === "x" ? R.current.scrollLeft = Math.abs(r.val) : R.current.scrollTop = Math.abs(r.val), je()) : D.current && (d === "x" ? D.current.style.transform = `translate3d(${r.val}px, 0px,0px)` : D.current.style.transform = `translate3d(0px,${r.val}px,0px)`);
|
|
825
825
|
}
|
|
826
826
|
}),
|
|
827
827
|
[u]
|
|
828
|
-
), { emitEvent:
|
|
829
|
-
withThumbs: !!
|
|
828
|
+
), { emitEvent: oe, useListenToCustomEvent: ge } = mr(), { thumbsFragment: Pe, handleScroll: Ge } = pr({
|
|
829
|
+
withThumbs: !!g,
|
|
830
830
|
thumbsSlideAxis: $,
|
|
831
|
-
prepareThumbsData:
|
|
831
|
+
prepareThumbsData: ie,
|
|
832
832
|
items: i,
|
|
833
833
|
renderThumbFnProps: {
|
|
834
834
|
getIsActiveItem: qe,
|
|
@@ -836,11 +836,11 @@ function Nr({
|
|
|
836
836
|
useListenToCustomEvent: ge,
|
|
837
837
|
getIsNextItem: Ue
|
|
838
838
|
}
|
|
839
|
-
}), { enterFullscreen: Ve, exitFullscreen:
|
|
839
|
+
}), { enterFullscreen: Ve, exitFullscreen: Xe, getIsFullscreen: Ke } = Fr({
|
|
840
840
|
mainCarouselWrapperRef: R,
|
|
841
841
|
handleResize: () => ye(),
|
|
842
842
|
onFullScreenChange: (r) => {
|
|
843
|
-
|
|
843
|
+
oe({
|
|
844
844
|
eventName: "onFullscreenChange",
|
|
845
845
|
isFullscreen: r
|
|
846
846
|
});
|
|
@@ -848,10 +848,10 @@ function Nr({
|
|
|
848
848
|
});
|
|
849
849
|
function ke(r) {
|
|
850
850
|
return v === "fixed" && !u ? {
|
|
851
|
-
marginRight: `${r ? 0 :
|
|
852
|
-
flex: `${Ne ? "1" : "0"} 0 calc(100% / ${q} - ${
|
|
851
|
+
marginRight: `${r ? 0 : T}px`,
|
|
852
|
+
flex: `${Ne ? "1" : "0"} 0 calc(100% / ${q} - ${T * (q - 1) / q}px)`
|
|
853
853
|
} : {
|
|
854
|
-
marginRight: `${r ? 0 :
|
|
854
|
+
marginRight: `${r ? 0 : T}px`
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
857
|
const I = De(() => {
|
|
@@ -862,28 +862,28 @@ function Nr({
|
|
|
862
862
|
if (!r)
|
|
863
863
|
throw Error("No carousel items available!");
|
|
864
864
|
let o = r.getBoundingClientRect()[d === "x" ? "width" : "height"];
|
|
865
|
-
return G || (o +=
|
|
865
|
+
return G || (o += T), G && (o += T - f * 2), o;
|
|
866
866
|
}, [
|
|
867
867
|
d,
|
|
868
868
|
u,
|
|
869
|
-
|
|
869
|
+
T,
|
|
870
870
|
ee,
|
|
871
871
|
G,
|
|
872
872
|
v,
|
|
873
873
|
f
|
|
874
874
|
]);
|
|
875
|
-
function
|
|
876
|
-
Te.current =
|
|
875
|
+
function ue({ from: r, to: o, nextActiveItem: a, immediate: P = !1, slideMode: X }) {
|
|
876
|
+
Te.current = X, typeof a == "number" && (u || (N.current = a), oe({
|
|
877
877
|
eventName: "onSlideStartChange",
|
|
878
|
-
slideActionType:
|
|
878
|
+
slideActionType: z.current,
|
|
879
879
|
slideMode: Te.current,
|
|
880
880
|
nextItem: {
|
|
881
|
-
startReached:
|
|
881
|
+
startReached: y.current,
|
|
882
882
|
endReached: x.current,
|
|
883
|
-
index: u ? -1 :
|
|
884
|
-
id: u ? "" : i[
|
|
883
|
+
index: u ? -1 : N.current,
|
|
884
|
+
id: u ? "" : i[N.current].id
|
|
885
885
|
}
|
|
886
|
-
})),
|
|
886
|
+
})), c.current = o, B.start({
|
|
887
887
|
immediate: P,
|
|
888
888
|
from: {
|
|
889
889
|
val: r
|
|
@@ -895,27 +895,27 @@ function Nr({
|
|
|
895
895
|
...We.default,
|
|
896
896
|
velocity: Z.val.velocity
|
|
897
897
|
},
|
|
898
|
-
onRest(
|
|
899
|
-
!P &&
|
|
898
|
+
onRest(le) {
|
|
899
|
+
!P && le.finished && oe({
|
|
900
900
|
eventName: "onSlideChange",
|
|
901
|
-
slideActionType:
|
|
901
|
+
slideActionType: z.current,
|
|
902
902
|
slideMode: Te.current,
|
|
903
903
|
currentItem: {
|
|
904
|
-
startReached:
|
|
904
|
+
startReached: y.current,
|
|
905
905
|
endReached: x.current,
|
|
906
|
-
index: u ? -1 :
|
|
907
|
-
id: u ? "" : i[
|
|
906
|
+
index: u ? -1 : N.current,
|
|
907
|
+
id: u ? "" : i[N.current].id
|
|
908
908
|
}
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
|
-
}),
|
|
911
|
+
}), g && !P && Ge(N.current);
|
|
912
912
|
}
|
|
913
|
-
const
|
|
913
|
+
const M = De(() => {
|
|
914
914
|
var r;
|
|
915
|
-
return
|
|
915
|
+
return D.current ? l ? I() * i.length : Math.round(
|
|
916
916
|
Number(
|
|
917
|
-
(r =
|
|
918
|
-
) -
|
|
917
|
+
(r = D.current) == null ? void 0 : r[d === "x" ? "scrollWidth" : "scrollHeight"]
|
|
918
|
+
) - D.current.getBoundingClientRect()[d === "x" ? "width" : "height"] - f * 2
|
|
919
919
|
) : 0;
|
|
920
920
|
}, [d, I, i.length, f, l]);
|
|
921
921
|
function Fe() {
|
|
@@ -927,50 +927,50 @@ function Nr({
|
|
|
927
927
|
}
|
|
928
928
|
const Re = De(() => {
|
|
929
929
|
var o;
|
|
930
|
-
const r = (o =
|
|
930
|
+
const r = (o = D.current) == null ? void 0 : o.querySelector(".use-spring-carousel-item");
|
|
931
931
|
if (!r)
|
|
932
932
|
throw Error("No carousel items available!");
|
|
933
|
-
return r.getBoundingClientRect()[d === "x" ? "width" : "height"] +
|
|
934
|
-
}, [d,
|
|
933
|
+
return r.getBoundingClientRect()[d === "x" ? "width" : "height"] + T;
|
|
934
|
+
}, [d, T]), we = De(
|
|
935
935
|
(r) => {
|
|
936
|
-
const o = d === "x" ? "left" : "top", a =
|
|
937
|
-
a && (l ? (a.style.top = "0px", a.style.left = "0px", a.style[o] = `-${r - f}px`,
|
|
936
|
+
const o = d === "x" ? "left" : "top", a = D.current;
|
|
937
|
+
a && (l ? (a.style.top = "0px", a.style.left = "0px", a.style[o] = `-${r - f}px`, y.current = !1, x.current = !1) : (a.style.left = "0px", a.style.top = "0px"));
|
|
938
938
|
},
|
|
939
939
|
[d, f, l]
|
|
940
940
|
), ye = De(
|
|
941
941
|
(r = !1) => {
|
|
942
|
-
if (
|
|
943
|
-
|
|
942
|
+
if (D.current && r && (D.current.style.transform = "translate3d(0px, 0px,0px)", D.current.style.left = "0", D.current.style.top = "0"), v === "fixed" && we(
|
|
943
|
+
E === "center" ? Re() * i.length - I() * Math.round((q - 1) / 2) : E === "end" ? Re() * i.length - I() * Math.round(q - 1) : Re() * i.length
|
|
944
944
|
), v === "fluid") {
|
|
945
|
-
if (we(Re() * i.length), x.current &&
|
|
946
|
-
const o = -
|
|
947
|
-
|
|
945
|
+
if (we(Re() * i.length), x.current && M() !== Math.abs(c.current) && !l) {
|
|
946
|
+
const o = -M();
|
|
947
|
+
c.current = o, B.start({
|
|
948
948
|
immediate: !0,
|
|
949
|
-
val:
|
|
949
|
+
val: c.current
|
|
950
950
|
});
|
|
951
951
|
return;
|
|
952
952
|
}
|
|
953
|
-
if (Math.abs(
|
|
954
|
-
const o =
|
|
953
|
+
if (Math.abs(c.current) > 0 && M() !== Math.abs(c.current) && !l && !u && he.current === "backward") {
|
|
954
|
+
const o = me.current - M(), a = c.current + o;
|
|
955
955
|
return B.start({
|
|
956
956
|
immediate: !0,
|
|
957
957
|
val: a
|
|
958
958
|
}), () => {
|
|
959
|
-
|
|
959
|
+
c.current = a;
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
964
|
if (!u && v === "fixed") {
|
|
965
|
-
const o = -(I() *
|
|
966
|
-
if (Math.abs(o) >
|
|
967
|
-
const a = -
|
|
968
|
-
x.current = !0,
|
|
965
|
+
const o = -(I() * N.current);
|
|
966
|
+
if (Math.abs(o) > M() && !l) {
|
|
967
|
+
const a = -M();
|
|
968
|
+
x.current = !0, c.current = a, B.start({
|
|
969
969
|
immediate: !0,
|
|
970
|
-
val:
|
|
970
|
+
val: c.current
|
|
971
971
|
});
|
|
972
972
|
} else
|
|
973
|
-
|
|
973
|
+
c.current = o, B.start({
|
|
974
974
|
immediate: !0,
|
|
975
975
|
val: o
|
|
976
976
|
});
|
|
@@ -983,8 +983,8 @@ function Nr({
|
|
|
983
983
|
u,
|
|
984
984
|
Re,
|
|
985
985
|
I,
|
|
986
|
-
|
|
987
|
-
|
|
986
|
+
M,
|
|
987
|
+
E,
|
|
988
988
|
i.length,
|
|
989
989
|
q,
|
|
990
990
|
we,
|
|
@@ -998,26 +998,26 @@ function Nr({
|
|
|
998
998
|
}
|
|
999
999
|
function _e(r, o) {
|
|
1000
1000
|
if (u && r === "next") {
|
|
1001
|
-
const a =
|
|
1002
|
-
return a >
|
|
1001
|
+
const a = c.current + I();
|
|
1002
|
+
return a > M() ? M() : a;
|
|
1003
1003
|
}
|
|
1004
1004
|
if (u && r === "prev") {
|
|
1005
|
-
const a =
|
|
1005
|
+
const a = c.current - I();
|
|
1006
1006
|
return a < 0 ? 0 : a;
|
|
1007
1007
|
}
|
|
1008
|
-
return r === "next" ? typeof o == "number" ? -(o * I()) :
|
|
1008
|
+
return r === "next" ? typeof o == "number" ? -(o * I()) : c.current - I() : typeof o == "number" ? -(o * I()) : c.current + I();
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1011
|
-
if (!
|
|
1010
|
+
function ce({ type: r, index: o, immediate: a }) {
|
|
1011
|
+
if (!m || H.current || y.current && !l)
|
|
1012
1012
|
return;
|
|
1013
|
-
x.current && (
|
|
1014
|
-
const P = typeof o == "number" ? o :
|
|
1013
|
+
x.current && (he.current = "backward"), z.current = "prev", x.current = !1;
|
|
1014
|
+
const P = typeof o == "number" ? o : N.current - 1;
|
|
1015
1015
|
if (u && je(), !l) {
|
|
1016
|
-
const
|
|
1017
|
-
if (
|
|
1016
|
+
const X = u ? _e("prev", o) - I() / 3 < 0 : _e("prev", o) + I() / 3 > 0;
|
|
1017
|
+
if (y.current)
|
|
1018
1018
|
return;
|
|
1019
|
-
if (
|
|
1020
|
-
|
|
1019
|
+
if (X) {
|
|
1020
|
+
y.current = !0, x.current = !1, ue({
|
|
1021
1021
|
slideMode: r,
|
|
1022
1022
|
from: Q(),
|
|
1023
1023
|
to: 0,
|
|
@@ -1027,8 +1027,8 @@ function Nr({
|
|
|
1027
1027
|
return;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
if (l && (
|
|
1031
|
-
|
|
1030
|
+
if (l && (y.current || P < 0)) {
|
|
1031
|
+
y.current = !1, x.current = !0, ue({
|
|
1032
1032
|
slideMode: r,
|
|
1033
1033
|
from: Q() - I() * i.length,
|
|
1034
1034
|
to: -(I() * i.length) + I(),
|
|
@@ -1037,7 +1037,7 @@ function Nr({
|
|
|
1037
1037
|
});
|
|
1038
1038
|
return;
|
|
1039
1039
|
}
|
|
1040
|
-
P === 0 && (
|
|
1040
|
+
P === 0 && (y.current = !0), (P === i.length - 1 || P === -1) && (x.current = !0), ue({
|
|
1041
1041
|
slideMode: r,
|
|
1042
1042
|
from: Q(),
|
|
1043
1043
|
to: _e("prev", o),
|
|
@@ -1045,20 +1045,20 @@ function Nr({
|
|
|
1045
1045
|
immediate: a
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1049
|
-
if (!
|
|
1048
|
+
function se({ type: r, index: o, immediate: a }) {
|
|
1049
|
+
if (!m || H.current || x.current && !l)
|
|
1050
1050
|
return;
|
|
1051
|
-
|
|
1052
|
-
const P = o ||
|
|
1051
|
+
y.current && (he.current = "forward"), z.current = "next", y.current = !1;
|
|
1052
|
+
const P = o || N.current + 1;
|
|
1053
1053
|
if (u && je(), !l) {
|
|
1054
|
-
const
|
|
1054
|
+
const X = Math.abs(_e("next", o)) > M() - I() / 3;
|
|
1055
1055
|
if (x.current)
|
|
1056
1056
|
return;
|
|
1057
|
-
if (
|
|
1058
|
-
|
|
1057
|
+
if (X) {
|
|
1058
|
+
y.current = !1, x.current = !0, ue({
|
|
1059
1059
|
slideMode: r,
|
|
1060
1060
|
from: Q(),
|
|
1061
|
-
to: u ?
|
|
1061
|
+
to: u ? M() : -M(),
|
|
1062
1062
|
nextActiveItem: P,
|
|
1063
1063
|
immediate: a
|
|
1064
1064
|
});
|
|
@@ -1066,7 +1066,7 @@ function Nr({
|
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
if (l && (x.current || P > i.length - 1)) {
|
|
1069
|
-
x.current = !1,
|
|
1069
|
+
x.current = !1, y.current = !0, ue({
|
|
1070
1070
|
slideMode: r,
|
|
1071
1071
|
from: Q() + I() * i.length,
|
|
1072
1072
|
to: 0,
|
|
@@ -1075,7 +1075,7 @@ function Nr({
|
|
|
1075
1075
|
});
|
|
1076
1076
|
return;
|
|
1077
1077
|
}
|
|
1078
|
-
P === 0 && (
|
|
1078
|
+
P === 0 && (y.current = !0), P === i.length - 1 && (x.current = !0), ue({
|
|
1079
1079
|
slideMode: r,
|
|
1080
1080
|
from: Q(),
|
|
1081
1081
|
to: _e("next", o),
|
|
@@ -1084,19 +1084,19 @@ function Nr({
|
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
1086
|
function Ce() {
|
|
1087
|
-
L ?
|
|
1087
|
+
L ? ae.current = L : ae.current = Math.floor(I() / 2 / 2);
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
|
|
1089
|
+
function Ze() {
|
|
1090
|
+
D.current && (me.current = M(), w.current = l, k.current = v, te.current = u, pe.current = window.innerWidth, c.current = 0, Ye({ id: 0, immediate: !0, shouldReset: !0 }), Ce(), ye());
|
|
1091
1091
|
}
|
|
1092
|
-
const
|
|
1092
|
+
const Qe = hr(
|
|
1093
1093
|
(r) => {
|
|
1094
|
-
const o = r.dragging, a = r.offset[d === "x" ? 0 : 1], P = r.movement[d === "x" ? 0 : 1],
|
|
1094
|
+
const o = r.dragging, a = r.offset[d === "x" ? 0 : 1], P = r.movement[d === "x" ? 0 : 1], X = r.direction[d === "x" ? 0 : 1], le = P > ae.current, fe = P < -ae.current, tr = M(), ne = r.velocity;
|
|
1095
1095
|
if (o) {
|
|
1096
|
-
if (
|
|
1096
|
+
if (X > 0 ? z.current = "prev" : z.current = "next", oe({
|
|
1097
1097
|
...r,
|
|
1098
1098
|
eventName: "onDrag",
|
|
1099
|
-
slideActionType:
|
|
1099
|
+
slideActionType: z.current
|
|
1100
1100
|
}), u) {
|
|
1101
1101
|
if (a > 0) {
|
|
1102
1102
|
B.start({
|
|
@@ -1107,7 +1107,7 @@ function Nr({
|
|
|
1107
1107
|
val: 0
|
|
1108
1108
|
},
|
|
1109
1109
|
config: {
|
|
1110
|
-
velocity:
|
|
1110
|
+
velocity: ne,
|
|
1111
1111
|
friction: 50,
|
|
1112
1112
|
tension: 1e3
|
|
1113
1113
|
}
|
|
@@ -1122,7 +1122,7 @@ function Nr({
|
|
|
1122
1122
|
val: -a
|
|
1123
1123
|
},
|
|
1124
1124
|
config: {
|
|
1125
|
-
velocity:
|
|
1125
|
+
velocity: ne,
|
|
1126
1126
|
friction: 50,
|
|
1127
1127
|
tension: 1e3
|
|
1128
1128
|
}
|
|
@@ -1132,11 +1132,11 @@ function Nr({
|
|
|
1132
1132
|
B.start({
|
|
1133
1133
|
val: a,
|
|
1134
1134
|
config: {
|
|
1135
|
-
velocity:
|
|
1135
|
+
velocity: ne,
|
|
1136
1136
|
friction: 50,
|
|
1137
1137
|
tension: 1e3
|
|
1138
1138
|
}
|
|
1139
|
-
}), C &&
|
|
1139
|
+
}), C && fe ? (se({ type: "drag" }), r.cancel()) : C && le && (ce({ type: "drag" }), r.cancel()), tr - Math.abs(a) < -(I() * 2) && r.cancel();
|
|
1140
1140
|
return;
|
|
1141
1141
|
}
|
|
1142
1142
|
if (r.last && u && a > 0) {
|
|
@@ -1148,41 +1148,41 @@ function Nr({
|
|
|
1148
1148
|
val: 0
|
|
1149
1149
|
},
|
|
1150
1150
|
config: {
|
|
1151
|
-
velocity:
|
|
1151
|
+
velocity: ne,
|
|
1152
1152
|
friction: 50,
|
|
1153
1153
|
tension: 1e3
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
1156
|
return;
|
|
1157
1157
|
}
|
|
1158
|
-
r.last && !r.canceled && u && (
|
|
1159
|
-
val: -
|
|
1158
|
+
r.last && !r.canceled && u && (z.current === "prev" && ce({ type: "drag" }), z.current === "next" && se({ type: "drag" })), r.last && !r.canceled && !u && (fe ? !l && x.current ? B.start({
|
|
1159
|
+
val: -M(),
|
|
1160
1160
|
config: {
|
|
1161
1161
|
...We.default,
|
|
1162
|
-
velocity:
|
|
1162
|
+
velocity: ne
|
|
1163
1163
|
}
|
|
1164
|
-
}) :
|
|
1164
|
+
}) : se({ type: "drag" }) : le ? !l && y.current ? B.start({
|
|
1165
1165
|
val: 0,
|
|
1166
1166
|
config: {
|
|
1167
1167
|
...We.default,
|
|
1168
|
-
velocity:
|
|
1168
|
+
velocity: ne
|
|
1169
1169
|
}
|
|
1170
|
-
}) :
|
|
1171
|
-
val:
|
|
1170
|
+
}) : ce({ type: "drag" }) : B.start({
|
|
1171
|
+
val: c.current,
|
|
1172
1172
|
config: {
|
|
1173
1173
|
...We.default,
|
|
1174
|
-
velocity:
|
|
1174
|
+
velocity: ne
|
|
1175
1175
|
}
|
|
1176
1176
|
})), r.last && r.canceled && B.start({
|
|
1177
|
-
val:
|
|
1177
|
+
val: c.current,
|
|
1178
1178
|
config: {
|
|
1179
1179
|
...We.default,
|
|
1180
|
-
velocity:
|
|
1180
|
+
velocity: ne
|
|
1181
1181
|
}
|
|
1182
1182
|
});
|
|
1183
1183
|
},
|
|
1184
1184
|
{
|
|
1185
|
-
enabled:
|
|
1185
|
+
enabled: m && !W && !u || !!u && !!U,
|
|
1186
1186
|
axis: d,
|
|
1187
1187
|
from: () => u && R.current ? [
|
|
1188
1188
|
-R.current.scrollLeft,
|
|
@@ -1198,16 +1198,16 @@ function Nr({
|
|
|
1198
1198
|
} : {};
|
|
1199
1199
|
}
|
|
1200
1200
|
function je() {
|
|
1201
|
-
R.current && (
|
|
1201
|
+
R.current && (c.current = R.current[d === "x" ? "scrollLeft" : "scrollTop"], R.current[d === "x" ? "scrollLeft" : "scrollTop"] === 0 && (y.current = !0, x.current = !1), R.current[d === "x" ? "scrollLeft" : "scrollTop"] > 0 && R.current[d === "x" ? "scrollLeft" : "scrollTop"] < M() && (y.current = !1, x.current = !1), R.current[d === "x" ? "scrollLeft" : "scrollTop"] === M() && (y.current = !1, x.current = !0));
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function rr() {
|
|
1204
1204
|
return u ? {
|
|
1205
1205
|
onWheel() {
|
|
1206
1206
|
Z.val.stop(), je();
|
|
1207
1207
|
}
|
|
1208
1208
|
} : {};
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function xe(r, o) {
|
|
1211
1211
|
let a = 0;
|
|
1212
1212
|
if (typeof r == "string" ? a = i.findIndex((P) => P.id === r) : a = r, a < 0 || a >= i.length) {
|
|
1213
1213
|
if (o)
|
|
@@ -1217,53 +1217,53 @@ function Nr({
|
|
|
1217
1217
|
return a;
|
|
1218
1218
|
}
|
|
1219
1219
|
function Ye({ id: r, immediate: o, shouldReset: a, type: P }) {
|
|
1220
|
-
if (!
|
|
1220
|
+
if (!m || H.current)
|
|
1221
1221
|
return;
|
|
1222
|
-
|
|
1223
|
-
const
|
|
1222
|
+
y.current = !1, x.current = !1;
|
|
1223
|
+
const X = xe(
|
|
1224
1224
|
r,
|
|
1225
1225
|
"The item you want to slide to doesn't exist; check the provided id."
|
|
1226
1226
|
);
|
|
1227
|
-
if (
|
|
1227
|
+
if (X === N.current && !a)
|
|
1228
1228
|
return;
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1229
|
+
const le = xe(i[N.current].id), fe = xe(i[X].id);
|
|
1230
|
+
fe > le ? se({
|
|
1231
1231
|
type: P || a ? "initial" : "click",
|
|
1232
|
-
index:
|
|
1232
|
+
index: fe,
|
|
1233
1233
|
immediate: o
|
|
1234
|
-
}) :
|
|
1234
|
+
}) : ce({
|
|
1235
1235
|
type: P || a ? "initial" : "click",
|
|
1236
|
-
index:
|
|
1236
|
+
index: fe,
|
|
1237
1237
|
immediate: o
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
1240
1240
|
function Ue(r) {
|
|
1241
|
-
const o =
|
|
1241
|
+
const o = xe(r, "The item doesn't exist; check the provided id."), a = N.current;
|
|
1242
1242
|
return l && a === i.length - 1 ? o === 0 : o === a + 1;
|
|
1243
1243
|
}
|
|
1244
1244
|
function Be(r) {
|
|
1245
|
-
const o =
|
|
1245
|
+
const o = xe(r, "The item doesn't exist; check the provided id."), a = N.current;
|
|
1246
1246
|
return l && a === 0 ? o === i.length - 1 : o === a - 1;
|
|
1247
1247
|
}
|
|
1248
1248
|
function qe(r) {
|
|
1249
|
-
return
|
|
1249
|
+
return xe(r, "The item you want to check doesn't exist; check the provided id.") === N.current;
|
|
1250
1250
|
}
|
|
1251
1251
|
function Le() {
|
|
1252
|
-
return
|
|
1252
|
+
return W ? "unset" : d === "x" ? "pan-y" : "pan-x";
|
|
1253
1253
|
}
|
|
1254
1254
|
const Oe = u ? {
|
|
1255
1255
|
useListenToCustomEvent: ge,
|
|
1256
1256
|
enterFullscreen: Ve,
|
|
1257
|
-
exitFullscreen:
|
|
1258
|
-
getIsFullscreen:
|
|
1257
|
+
exitFullscreen: Xe,
|
|
1258
|
+
getIsFullscreen: Ke,
|
|
1259
1259
|
slideToPrevItem: (r = !0) => {
|
|
1260
|
-
|
|
1260
|
+
ce({
|
|
1261
1261
|
type: "click",
|
|
1262
1262
|
immediate: !r
|
|
1263
1263
|
});
|
|
1264
1264
|
},
|
|
1265
1265
|
slideToNextItem: (r = !0) => {
|
|
1266
|
-
|
|
1266
|
+
se({
|
|
1267
1267
|
type: "click",
|
|
1268
1268
|
immediate: !r
|
|
1269
1269
|
});
|
|
@@ -1271,16 +1271,16 @@ function Nr({
|
|
|
1271
1271
|
} : {
|
|
1272
1272
|
useListenToCustomEvent: ge,
|
|
1273
1273
|
enterFullscreen: Ve,
|
|
1274
|
-
exitFullscreen:
|
|
1275
|
-
getIsFullscreen:
|
|
1274
|
+
exitFullscreen: Xe,
|
|
1275
|
+
getIsFullscreen: Ke,
|
|
1276
1276
|
slideToPrevItem: (r = !0) => {
|
|
1277
|
-
|
|
1277
|
+
ce({
|
|
1278
1278
|
type: "click",
|
|
1279
1279
|
immediate: !r
|
|
1280
1280
|
});
|
|
1281
1281
|
},
|
|
1282
1282
|
slideToNextItem: (r = !0) => {
|
|
1283
|
-
|
|
1283
|
+
se({
|
|
1284
1284
|
type: "click",
|
|
1285
1285
|
immediate: !r
|
|
1286
1286
|
});
|
|
@@ -1293,14 +1293,14 @@ function Nr({
|
|
|
1293
1293
|
getIsActiveItem: qe
|
|
1294
1294
|
};
|
|
1295
1295
|
Rr(() => {
|
|
1296
|
-
|
|
1297
|
-
}, [
|
|
1298
|
-
|
|
1296
|
+
D.current && m && (re.current = !0, Ze());
|
|
1297
|
+
}, [m]), ve(() => {
|
|
1298
|
+
N.current !== F && (re.current = !0, Ye({
|
|
1299
1299
|
id: F,
|
|
1300
1300
|
immediate: !j
|
|
1301
1301
|
}));
|
|
1302
|
-
}, [F]),
|
|
1303
|
-
if (
|
|
1302
|
+
}, [F]), ve(() => {
|
|
1303
|
+
if (m) {
|
|
1304
1304
|
if (F > i.length - 1)
|
|
1305
1305
|
throw new Error(
|
|
1306
1306
|
`initialActiveItem (${F}) is greater than the total quantity available items (${i.length}).`
|
|
@@ -1309,10 +1309,10 @@ function Nr({
|
|
|
1309
1309
|
`itemsPerSlide (${q}) is greater than the total quantity available items (${i.length}). Fallback to ${i.length})`
|
|
1310
1310
|
);
|
|
1311
1311
|
}
|
|
1312
|
-
}, [F, i.length, q,
|
|
1313
|
-
|
|
1314
|
-
}, []),
|
|
1315
|
-
if (
|
|
1312
|
+
}, [F, i.length, q, m]), ve(() => {
|
|
1313
|
+
pe.current = window.innerWidth;
|
|
1314
|
+
}, []), ve(() => {
|
|
1315
|
+
if (m) {
|
|
1316
1316
|
if (l && u)
|
|
1317
1317
|
throw new Error("`withLoop` and `freeScroll` can't be used together.");
|
|
1318
1318
|
if (u && v === "fixed")
|
|
@@ -1325,37 +1325,37 @@ function Nr({
|
|
|
1325
1325
|
throw new Error("`slideGroupOfItems` and `freeScroll` can't be used together.");
|
|
1326
1326
|
if (typeof ee == "number" && ee > 0 && v === "fixed")
|
|
1327
1327
|
throw new Error("`slideAmount` must be used with `slideType: fluid`");
|
|
1328
|
-
re.current = !0,
|
|
1328
|
+
re.current = !0, Ze();
|
|
1329
1329
|
}
|
|
1330
1330
|
}, [
|
|
1331
|
-
|
|
1331
|
+
E,
|
|
1332
1332
|
q,
|
|
1333
1333
|
f,
|
|
1334
|
-
|
|
1335
|
-
|
|
1334
|
+
T,
|
|
1335
|
+
m,
|
|
1336
1336
|
l,
|
|
1337
1337
|
v,
|
|
1338
1338
|
u,
|
|
1339
1339
|
U,
|
|
1340
1340
|
G
|
|
1341
|
-
]),
|
|
1342
|
-
if (!
|
|
1341
|
+
]), ve(() => {
|
|
1342
|
+
if (!m)
|
|
1343
1343
|
return;
|
|
1344
1344
|
function r() {
|
|
1345
|
-
document.hidden ?
|
|
1345
|
+
document.hidden ? H.current = !0 : H.current = !1;
|
|
1346
1346
|
}
|
|
1347
1347
|
return document.addEventListener("visibilitychange", r), () => {
|
|
1348
1348
|
document.removeEventListener("visibilitychange", r);
|
|
1349
1349
|
};
|
|
1350
|
-
}, [
|
|
1350
|
+
}, [m]), ve(() => {
|
|
1351
1351
|
if (R.current) {
|
|
1352
1352
|
let r;
|
|
1353
1353
|
const o = new Cr(() => {
|
|
1354
|
-
if (!
|
|
1355
|
-
|
|
1354
|
+
if (!H.current && !re.current) {
|
|
1355
|
+
pe.current = window.innerWidth;
|
|
1356
1356
|
const a = ye();
|
|
1357
1357
|
window.clearTimeout(r), r = setTimeout(() => {
|
|
1358
|
-
|
|
1358
|
+
me.current = M(), typeof a == "function" && a();
|
|
1359
1359
|
}, 100);
|
|
1360
1360
|
}
|
|
1361
1361
|
});
|
|
@@ -1363,13 +1363,13 @@ function Nr({
|
|
|
1363
1363
|
o.disconnect();
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
|
-
}, [ye,
|
|
1367
|
-
const
|
|
1366
|
+
}, [ye, M]);
|
|
1367
|
+
const be = /* @__PURE__ */ A.jsx(ar.Provider, { value: Oe, children: Pe }), Ae = /* @__PURE__ */ A.jsx(ar.Provider, { value: Oe, children: /* @__PURE__ */ A.jsx(
|
|
1368
1368
|
"div",
|
|
1369
1369
|
{
|
|
1370
1370
|
className: "use-spring-carousel-main-wrapper",
|
|
1371
1371
|
ref: R,
|
|
1372
|
-
...
|
|
1372
|
+
...rr(),
|
|
1373
1373
|
style: {
|
|
1374
1374
|
display: "flex",
|
|
1375
1375
|
position: "relative",
|
|
@@ -1377,12 +1377,12 @@ function Nr({
|
|
|
1377
1377
|
height: "100%",
|
|
1378
1378
|
...Se()
|
|
1379
1379
|
},
|
|
1380
|
-
children: /* @__PURE__ */
|
|
1380
|
+
children: /* @__PURE__ */ A.jsxs(
|
|
1381
1381
|
"div",
|
|
1382
1382
|
{
|
|
1383
1383
|
className: "use-spring-carousel-track-wrapper",
|
|
1384
|
-
ref:
|
|
1385
|
-
...
|
|
1384
|
+
ref: D,
|
|
1385
|
+
...Qe(),
|
|
1386
1386
|
style: {
|
|
1387
1387
|
position: "relative",
|
|
1388
1388
|
display: "flex",
|
|
@@ -1391,7 +1391,7 @@ function Nr({
|
|
|
1391
1391
|
...Fe()
|
|
1392
1392
|
},
|
|
1393
1393
|
children: [
|
|
1394
|
-
(u || !l) && f ? /* @__PURE__ */
|
|
1394
|
+
(u || !l) && f ? /* @__PURE__ */ A.jsx(
|
|
1395
1395
|
"div",
|
|
1396
1396
|
{
|
|
1397
1397
|
style: {
|
|
@@ -1400,7 +1400,7 @@ function Nr({
|
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
) : null,
|
|
1403
|
-
Ie.map((r, o) => /* @__PURE__ */
|
|
1403
|
+
Ie.map((r, o) => /* @__PURE__ */ A.jsx(Er, { children: /* @__PURE__ */ A.jsx(
|
|
1404
1404
|
"div",
|
|
1405
1405
|
{
|
|
1406
1406
|
className: "use-spring-carousel-item",
|
|
@@ -1423,7 +1423,7 @@ function Nr({
|
|
|
1423
1423
|
}) : r.renderItem
|
|
1424
1424
|
}
|
|
1425
1425
|
) }, `${r.id}-${o}`)),
|
|
1426
|
-
(u || !l) && f ? /* @__PURE__ */
|
|
1426
|
+
(u || !l) && f ? /* @__PURE__ */ A.jsx(
|
|
1427
1427
|
"div",
|
|
1428
1428
|
{
|
|
1429
1429
|
style: {
|
|
@@ -1437,11 +1437,11 @@ function Nr({
|
|
|
1437
1437
|
)
|
|
1438
1438
|
}
|
|
1439
1439
|
) });
|
|
1440
|
-
return { ...Oe, carouselFragment:
|
|
1440
|
+
return { ...Oe, carouselFragment: Ae, thumbsFragment: be };
|
|
1441
1441
|
}
|
|
1442
|
-
const
|
|
1442
|
+
const ar = fr(void 0);
|
|
1443
1443
|
function Vr() {
|
|
1444
|
-
const i = dr(
|
|
1444
|
+
const i = dr(ar);
|
|
1445
1445
|
if (!i)
|
|
1446
1446
|
throw new Error("useSpringCarouselContext must be used within the carousel.");
|
|
1447
1447
|
return i;
|
|
@@ -1466,28 +1466,28 @@ const Me = {
|
|
|
1466
1466
|
};
|
|
1467
1467
|
function Sr({
|
|
1468
1468
|
init: i = !0,
|
|
1469
|
-
disableGestures:
|
|
1470
|
-
items:
|
|
1469
|
+
disableGestures: m = !1,
|
|
1470
|
+
items: g,
|
|
1471
1471
|
springConfig: $ = We.default,
|
|
1472
1472
|
exitBeforeEnter: Y = !1,
|
|
1473
1473
|
trail: v,
|
|
1474
|
-
withLoop:
|
|
1474
|
+
withLoop: T = !1,
|
|
1475
1475
|
activeItem: l,
|
|
1476
1476
|
toPrevItemSpringProps: f = Me,
|
|
1477
1477
|
toNextItemSpringProps: d = Me,
|
|
1478
|
-
draggingSlideTreshold:
|
|
1478
|
+
draggingSlideTreshold: W = 50,
|
|
1479
1479
|
thumbsSlideAxis: L = "x"
|
|
1480
1480
|
}) {
|
|
1481
|
-
const C = O("next"), u = O("initial"), U = O(null), [
|
|
1481
|
+
const C = O("next"), u = O("initial"), U = O(null), [E, ie] = Tr(l ?? 0), { emitEvent: F, useListenToCustomEvent: j } = mr(), { handleScroll: G, thumbsFragment: Ne } = pr({
|
|
1482
1482
|
thumbsSlideAxis: L,
|
|
1483
|
-
items:
|
|
1483
|
+
items: g,
|
|
1484
1484
|
renderThumbFnProps: {
|
|
1485
|
-
getIsNextItem:
|
|
1486
|
-
getIsPrevItem:
|
|
1485
|
+
getIsNextItem: N,
|
|
1486
|
+
getIsPrevItem: y,
|
|
1487
1487
|
useListenToCustomEvent: j,
|
|
1488
1488
|
activeItem: {
|
|
1489
|
-
index:
|
|
1490
|
-
id:
|
|
1489
|
+
index: E,
|
|
1490
|
+
id: g[E].id
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
1493
|
});
|
|
@@ -1533,81 +1533,81 @@ function Sr({
|
|
|
1533
1533
|
}
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
|
|
1537
|
-
typeof l == "number" && l !==
|
|
1536
|
+
ve(() => {
|
|
1537
|
+
typeof l == "number" && l !== E && ie(l);
|
|
1538
1538
|
}, [l]);
|
|
1539
|
-
function q({ to:
|
|
1540
|
-
C.current =
|
|
1539
|
+
function q({ to: c, slideType: w, slideMode: k }) {
|
|
1540
|
+
C.current = w, u.current = k, F({
|
|
1541
1541
|
eventName: "onSlideStartChange",
|
|
1542
1542
|
slideActionType: C.current,
|
|
1543
1543
|
slideMode: u.current,
|
|
1544
1544
|
nextItem: {
|
|
1545
|
-
index:
|
|
1546
|
-
id:
|
|
1547
|
-
startReached:
|
|
1548
|
-
endReached:
|
|
1545
|
+
index: c,
|
|
1546
|
+
id: g[c].id,
|
|
1547
|
+
startReached: c === 0,
|
|
1548
|
+
endReached: c === g.length - 1
|
|
1549
1549
|
}
|
|
1550
|
-
}),
|
|
1550
|
+
}), ie(c), G(E);
|
|
1551
1551
|
}
|
|
1552
|
-
function re(
|
|
1552
|
+
function re(c) {
|
|
1553
1553
|
if (!i)
|
|
1554
1554
|
return;
|
|
1555
|
-
const
|
|
1556
|
-
!
|
|
1557
|
-
to:
|
|
1555
|
+
const w = E === 0;
|
|
1556
|
+
!T && w || q(T && w ? {
|
|
1557
|
+
to: g.length - 1,
|
|
1558
1558
|
slideType: "prev",
|
|
1559
|
-
slideMode:
|
|
1559
|
+
slideMode: c
|
|
1560
1560
|
} : {
|
|
1561
|
-
to:
|
|
1561
|
+
to: E - 1,
|
|
1562
1562
|
slideType: "prev",
|
|
1563
|
-
slideMode:
|
|
1563
|
+
slideMode: c
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function ae(c) {
|
|
1567
1567
|
if (!i)
|
|
1568
1568
|
return;
|
|
1569
|
-
const
|
|
1570
|
-
!
|
|
1569
|
+
const w = E === g.length - 1;
|
|
1570
|
+
!T && w || q(T && w ? {
|
|
1571
1571
|
to: 0,
|
|
1572
1572
|
slideType: "next",
|
|
1573
|
-
slideMode:
|
|
1573
|
+
slideMode: c
|
|
1574
1574
|
} : {
|
|
1575
|
-
to:
|
|
1575
|
+
to: E + 1,
|
|
1576
1576
|
slideType: "next",
|
|
1577
|
-
slideMode:
|
|
1577
|
+
slideMode: c
|
|
1578
1578
|
});
|
|
1579
1579
|
}
|
|
1580
|
-
const
|
|
1580
|
+
const z = wr(E, {
|
|
1581
1581
|
config: $,
|
|
1582
1582
|
key: null,
|
|
1583
1583
|
trail: v,
|
|
1584
1584
|
exitBeforeEnter: Y,
|
|
1585
1585
|
...ee(),
|
|
1586
|
-
onRest(
|
|
1587
|
-
|
|
1586
|
+
onRest(c, w, k) {
|
|
1587
|
+
c.finished && k === E && F({
|
|
1588
1588
|
eventName: "onSlideChange",
|
|
1589
1589
|
slideActionType: C.current,
|
|
1590
1590
|
slideMode: u.current,
|
|
1591
1591
|
currentItem: {
|
|
1592
|
-
index:
|
|
1593
|
-
id:
|
|
1594
|
-
startReached:
|
|
1595
|
-
endReached:
|
|
1592
|
+
index: E,
|
|
1593
|
+
id: g[E].id,
|
|
1594
|
+
startReached: E === 0,
|
|
1595
|
+
endReached: E === g.length - 1
|
|
1596
1596
|
}
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|
|
1599
1599
|
}), Te = hr(
|
|
1600
|
-
({ last:
|
|
1601
|
-
if (
|
|
1602
|
-
const k =
|
|
1600
|
+
({ last: c, movement: [w] }) => {
|
|
1601
|
+
if (c) {
|
|
1602
|
+
const k = w > W, te = w < -W, H = E === 0, ze = E === g.length - 1;
|
|
1603
1603
|
if (te) {
|
|
1604
|
-
if (!
|
|
1604
|
+
if (!T && ze)
|
|
1605
1605
|
return;
|
|
1606
1606
|
F({
|
|
1607
1607
|
eventName: "onLeftSwipe"
|
|
1608
|
-
}),
|
|
1608
|
+
}), ae("swipe");
|
|
1609
1609
|
} else if (k) {
|
|
1610
|
-
if (!
|
|
1610
|
+
if (!T && H)
|
|
1611
1611
|
return;
|
|
1612
1612
|
F({
|
|
1613
1613
|
eventName: "onRightSwipe"
|
|
@@ -1616,57 +1616,62 @@ function Sr({
|
|
|
1616
1616
|
}
|
|
1617
1617
|
},
|
|
1618
1618
|
{
|
|
1619
|
-
enabled: !
|
|
1619
|
+
enabled: !m
|
|
1620
1620
|
}
|
|
1621
1621
|
);
|
|
1622
|
-
function
|
|
1622
|
+
function he(c, w) {
|
|
1623
1623
|
let k = 0;
|
|
1624
|
-
if (typeof
|
|
1625
|
-
if (
|
|
1626
|
-
throw new Error(
|
|
1627
|
-
console.error(`The item doesn't exist; check that the id provided - ${
|
|
1624
|
+
if (typeof c == "string" ? k = g.findIndex((te) => te.id === c) : k = c, k < 0 || k >= g.length) {
|
|
1625
|
+
if (w)
|
|
1626
|
+
throw new Error(w);
|
|
1627
|
+
console.error(`The item doesn't exist; check that the id provided - ${c} - is correct.`), k = -1;
|
|
1628
1628
|
}
|
|
1629
1629
|
return k;
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1632
|
-
const
|
|
1633
|
-
return
|
|
1631
|
+
function N(c) {
|
|
1632
|
+
const w = he(c, "The item doesn't exist; check the provided id."), k = E;
|
|
1633
|
+
return T && k === g.length - 1 ? w === 0 : w === k + 1;
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1636
|
-
const
|
|
1637
|
-
return
|
|
1635
|
+
function y(c) {
|
|
1636
|
+
const w = he(c, "The item doesn't exist; check the provided id."), k = E;
|
|
1637
|
+
return T && k === 0 ? w === g.length - 1 : w === k - 1;
|
|
1638
1638
|
}
|
|
1639
|
-
const x =
|
|
1640
|
-
const
|
|
1641
|
-
return /* @__PURE__ */
|
|
1639
|
+
const x = z((c, w, k, te) => {
|
|
1640
|
+
const H = g[w].renderItem;
|
|
1641
|
+
return /* @__PURE__ */ A.jsx(
|
|
1642
1642
|
_r.div,
|
|
1643
1643
|
{
|
|
1644
1644
|
id: `use-transition-carousel-item-${te}`,
|
|
1645
1645
|
className: "use-transition-carousel-item",
|
|
1646
1646
|
style: {
|
|
1647
|
-
...
|
|
1647
|
+
...c,
|
|
1648
1648
|
flex: "1 0 100%",
|
|
1649
1649
|
width: "100%",
|
|
1650
1650
|
height: "100%"
|
|
1651
1651
|
},
|
|
1652
|
-
children: typeof
|
|
1652
|
+
children: typeof H == "function" ? H({
|
|
1653
1653
|
useListenToCustomEvent: j,
|
|
1654
|
-
getIsNextItem:
|
|
1655
|
-
getIsPrevItem:
|
|
1654
|
+
getIsNextItem: N,
|
|
1655
|
+
getIsPrevItem: y,
|
|
1656
1656
|
activeItem: {
|
|
1657
|
-
index:
|
|
1658
|
-
id:
|
|
1657
|
+
index: E,
|
|
1658
|
+
id: g[E].id
|
|
1659
1659
|
}
|
|
1660
|
-
}) :
|
|
1660
|
+
}) : H
|
|
1661
1661
|
}
|
|
1662
1662
|
);
|
|
1663
|
-
})
|
|
1663
|
+
});
|
|
1664
|
+
function R() {
|
|
1665
|
+
return m ? "unset" : "pan-x";
|
|
1666
|
+
}
|
|
1667
|
+
const D = {
|
|
1664
1668
|
useListenToCustomEvent: j,
|
|
1665
1669
|
slideToPrevItem: () => re("click"),
|
|
1666
|
-
slideToNextItem: () =>
|
|
1667
|
-
},
|
|
1670
|
+
slideToNextItem: () => ae("click")
|
|
1671
|
+
}, me = /* @__PURE__ */ A.jsx(or.Provider, { value: D, children: Ne }), pe = /* @__PURE__ */ A.jsx(or.Provider, { value: D, children: /* @__PURE__ */ A.jsx(
|
|
1668
1672
|
"div",
|
|
1669
1673
|
{
|
|
1674
|
+
className: "use-transition-carousel-wrapper",
|
|
1670
1675
|
ref: U,
|
|
1671
1676
|
...Te(),
|
|
1672
1677
|
style: {
|
|
@@ -1674,20 +1679,21 @@ function Sr({
|
|
|
1674
1679
|
position: "relative",
|
|
1675
1680
|
width: "100%",
|
|
1676
1681
|
height: "100%",
|
|
1677
|
-
overflow: "hidden"
|
|
1682
|
+
overflow: "hidden",
|
|
1683
|
+
touchAction: R()
|
|
1678
1684
|
},
|
|
1679
1685
|
children: x
|
|
1680
1686
|
}
|
|
1681
1687
|
) });
|
|
1682
1688
|
return {
|
|
1683
|
-
...
|
|
1689
|
+
...D,
|
|
1684
1690
|
carouselFragment: pe,
|
|
1685
|
-
thumbsFragment:
|
|
1691
|
+
thumbsFragment: me
|
|
1686
1692
|
};
|
|
1687
1693
|
}
|
|
1688
|
-
const
|
|
1694
|
+
const or = fr(void 0);
|
|
1689
1695
|
function Yr() {
|
|
1690
|
-
const i = dr(
|
|
1696
|
+
const i = dr(or);
|
|
1691
1697
|
if (!i)
|
|
1692
1698
|
throw new Error("useTransitionCarouselContext must be used within the carousel.");
|
|
1693
1699
|
return i;
|