react-spring-carousel 3.0.0-beta070 → 3.0.0-beta071
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/declarations/modules/index.d.ts +1 -0
- package/dist/declarations/modules/useEventsModule.d.ts +5 -0
- package/dist/{modules → declarations/modules}/useFullscreenModule.d.ts +1 -7
- package/dist/{types → declarations/types}/common.d.ts +1 -1
- package/dist/{types → declarations/types}/index.d.ts +0 -1
- package/dist/{modules/useEventsModule.d.ts → declarations/types/useEventsModule.types.d.ts} +11 -16
- package/dist/declarations/types/useFullscreenModule.types.d.ts +6 -0
- package/dist/{types → declarations/types}/useSpringCarousel.types.d.ts +1 -1
- package/dist/{types → declarations/types}/useTransitionCarousel.types.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +8 -11
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +2 -6
- package/dist/useEventsModule-0feadbf7.cjs +1 -0
- package/dist/useEventsModule-538b90c9.js +33 -0
- package/dist/useSpringCarousel.cjs +1 -1
- package/dist/useSpringCarousel.js +308 -301
- package/dist/useThumbsModule-57ac2128.cjs +27 -0
- package/dist/{useThumbsModule-db93025f.js → useThumbsModule-f5b73ecb.js} +242 -272
- package/dist/useTransitionCarousel.cjs +1 -1
- package/dist/useTransitionCarousel.js +20 -22
- package/package.json +1 -1
- package/dist/modules/index.d.ts +0 -3
- package/dist/useFullscreenModule-55ea7b9d.js +0 -38
- package/dist/useFullscreenModule-be189d5b.cjs +0 -1
- package/dist/useThumbsModule-0c05dcf5.cjs +0 -27
- /package/dist/{index.d.ts → declarations/index.d.ts} +0 -0
- /package/dist/{modules → declarations/modules}/useThumbsModule.d.ts +0 -0
- /package/dist/{useSpringCarousel.d.ts → declarations/useSpringCarousel.d.ts} +0 -0
- /package/dist/{useTransitionCarousel.d.ts → declarations/useTransitionCarousel.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useSpring as
|
|
3
|
-
var q = {},
|
|
1
|
+
import Oe, { useRef as ir } from "react";
|
|
2
|
+
import { useSpring as ur } from "@react-spring/web";
|
|
3
|
+
var q = {}, lr = {
|
|
4
4
|
get exports() {
|
|
5
5
|
return q;
|
|
6
6
|
},
|
|
7
|
-
set exports(
|
|
8
|
-
q =
|
|
7
|
+
set exports(c) {
|
|
8
|
+
q = c;
|
|
9
9
|
}
|
|
10
10
|
}, W = {};
|
|
11
11
|
/**
|
|
@@ -17,23 +17,23 @@ var q = {}, fr = {
|
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
20
|
+
var we;
|
|
21
|
+
function sr() {
|
|
22
|
+
if (we)
|
|
23
23
|
return W;
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
for (
|
|
30
|
-
|
|
31
|
-
if (
|
|
32
|
-
for (
|
|
33
|
-
|
|
34
|
-
return { $$typeof:
|
|
24
|
+
we = 1;
|
|
25
|
+
var c = Oe, m = Symbol.for("react.element"), j = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, k = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
26
|
+
function x(T, f, O) {
|
|
27
|
+
var p, _ = {}, d = null, b = null;
|
|
28
|
+
O !== void 0 && (d = "" + O), f.key !== void 0 && (d = "" + f.key), f.ref !== void 0 && (b = f.ref);
|
|
29
|
+
for (p in f)
|
|
30
|
+
R.call(f, p) && !g.hasOwnProperty(p) && (_[p] = f[p]);
|
|
31
|
+
if (T && T.defaultProps)
|
|
32
|
+
for (p in f = T.defaultProps, f)
|
|
33
|
+
_[p] === void 0 && (_[p] = f[p]);
|
|
34
|
+
return { $$typeof: m, type: T, key: d, ref: b, props: _, _owner: k.current };
|
|
35
35
|
}
|
|
36
|
-
return W.Fragment =
|
|
36
|
+
return W.Fragment = j, W.jsx = x, W.jsxs = x, W;
|
|
37
37
|
}
|
|
38
38
|
var $ = {};
|
|
39
39
|
/**
|
|
@@ -45,27 +45,27 @@ var $ = {};
|
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
return
|
|
51
|
-
var
|
|
52
|
-
function
|
|
48
|
+
var Ce;
|
|
49
|
+
function fr() {
|
|
50
|
+
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
+
var c = Oe, m = Symbol.for("react.element"), j = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), T = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), E = Symbol.iterator, Y = "@@iterator";
|
|
52
|
+
function N(e) {
|
|
53
53
|
if (e === null || typeof e != "object")
|
|
54
54
|
return null;
|
|
55
|
-
var r =
|
|
55
|
+
var r = E && e[E] || e[Y];
|
|
56
56
|
return typeof r == "function" ? r : null;
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
58
|
+
var P = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
59
|
+
function v(e) {
|
|
60
60
|
{
|
|
61
61
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
62
62
|
t[n - 1] = arguments[n];
|
|
63
|
-
|
|
63
|
+
Pe("error", e, t);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Pe(e, r, t) {
|
|
67
67
|
{
|
|
68
|
-
var n =
|
|
68
|
+
var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
69
69
|
i !== "" && (r += "%s", t = t.concat([i]));
|
|
70
70
|
var u = t.map(function(o) {
|
|
71
71
|
return String(o);
|
|
@@ -73,63 +73,63 @@ function dr() {
|
|
|
73
73
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
function
|
|
79
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
76
|
+
var xe = !1, Se = !1, je = !1, ke = !1, De = !1, ee;
|
|
77
|
+
ee = Symbol.for("react.module.reference");
|
|
78
|
+
function Fe(e) {
|
|
79
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === g || De || e === k || e === O || e === p || ke || e === b || xe || Se || je || typeof e == "object" && e !== null && (e.$$typeof === d || e.$$typeof === _ || e.$$typeof === x || e.$$typeof === T || e.$$typeof === f || // This needs to include all possible module reference object
|
|
80
80
|
// types supported by any Flight configuration anywhere since
|
|
81
81
|
// we don't know which Flight build this will end up being used
|
|
82
82
|
// with.
|
|
83
|
-
e.$$typeof ===
|
|
83
|
+
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Ie(e, r, t) {
|
|
86
86
|
var n = e.displayName;
|
|
87
87
|
if (n)
|
|
88
88
|
return n;
|
|
89
89
|
var i = r.displayName || r.name || "";
|
|
90
90
|
return i !== "" ? t + "(" + i + ")" : t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function re(e) {
|
|
93
93
|
return e.displayName || "Context";
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function w(e) {
|
|
96
96
|
if (e == null)
|
|
97
97
|
return null;
|
|
98
|
-
if (typeof e.tag == "number" &&
|
|
98
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
99
99
|
return e.displayName || e.name || null;
|
|
100
100
|
if (typeof e == "string")
|
|
101
101
|
return e;
|
|
102
102
|
switch (e) {
|
|
103
|
-
case
|
|
103
|
+
case R:
|
|
104
104
|
return "Fragment";
|
|
105
|
-
case
|
|
105
|
+
case j:
|
|
106
106
|
return "Portal";
|
|
107
|
-
case
|
|
107
|
+
case g:
|
|
108
108
|
return "Profiler";
|
|
109
|
-
case
|
|
109
|
+
case k:
|
|
110
110
|
return "StrictMode";
|
|
111
|
-
case
|
|
111
|
+
case O:
|
|
112
112
|
return "Suspense";
|
|
113
|
-
case
|
|
113
|
+
case p:
|
|
114
114
|
return "SuspenseList";
|
|
115
115
|
}
|
|
116
116
|
if (typeof e == "object")
|
|
117
117
|
switch (e.$$typeof) {
|
|
118
|
-
case
|
|
118
|
+
case T:
|
|
119
119
|
var r = e;
|
|
120
|
-
return
|
|
121
|
-
case
|
|
120
|
+
return re(r) + ".Consumer";
|
|
121
|
+
case x:
|
|
122
122
|
var t = e;
|
|
123
|
-
return
|
|
124
|
-
case
|
|
125
|
-
return
|
|
126
|
-
case
|
|
123
|
+
return re(t._context) + ".Provider";
|
|
124
|
+
case f:
|
|
125
|
+
return Ie(e, e.render, "ForwardRef");
|
|
126
|
+
case _:
|
|
127
127
|
var n = e.displayName || null;
|
|
128
|
-
return n !== null ? n :
|
|
129
|
-
case
|
|
128
|
+
return n !== null ? n : w(e.type) || "Memo";
|
|
129
|
+
case d: {
|
|
130
130
|
var i = e, u = i._payload, o = i._init;
|
|
131
131
|
try {
|
|
132
|
-
return
|
|
132
|
+
return w(o(u));
|
|
133
133
|
} catch {
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
@@ -137,18 +137,18 @@ function dr() {
|
|
|
137
137
|
}
|
|
138
138
|
return null;
|
|
139
139
|
}
|
|
140
|
-
var
|
|
141
|
-
function
|
|
140
|
+
var S = Object.assign, I = 0, te, ne, ae, oe, ie, ue, le;
|
|
141
|
+
function se() {
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
function
|
|
143
|
+
se.__reactDisabledLog = !0;
|
|
144
|
+
function Ae() {
|
|
145
145
|
{
|
|
146
146
|
if (I === 0) {
|
|
147
|
-
|
|
147
|
+
te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, le = console.groupEnd;
|
|
148
148
|
var e = {
|
|
149
149
|
configurable: !0,
|
|
150
150
|
enumerable: !0,
|
|
151
|
-
value:
|
|
151
|
+
value: se,
|
|
152
152
|
writable: !0
|
|
153
153
|
};
|
|
154
154
|
Object.defineProperties(console, {
|
|
@@ -164,7 +164,7 @@ function dr() {
|
|
|
164
164
|
I++;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function We() {
|
|
168
168
|
{
|
|
169
169
|
if (I--, I === 0) {
|
|
170
170
|
var e = {
|
|
@@ -173,53 +173,53 @@ function dr() {
|
|
|
173
173
|
writable: !0
|
|
174
174
|
};
|
|
175
175
|
Object.defineProperties(console, {
|
|
176
|
-
log:
|
|
176
|
+
log: S({}, e, {
|
|
177
|
+
value: te
|
|
178
|
+
}),
|
|
179
|
+
info: S({}, e, {
|
|
177
180
|
value: ne
|
|
178
181
|
}),
|
|
179
|
-
|
|
182
|
+
warn: S({}, e, {
|
|
180
183
|
value: ae
|
|
181
184
|
}),
|
|
182
|
-
|
|
185
|
+
error: S({}, e, {
|
|
183
186
|
value: oe
|
|
184
187
|
}),
|
|
185
|
-
|
|
188
|
+
group: S({}, e, {
|
|
186
189
|
value: ie
|
|
187
190
|
}),
|
|
188
|
-
|
|
191
|
+
groupCollapsed: S({}, e, {
|
|
189
192
|
value: ue
|
|
190
193
|
}),
|
|
191
|
-
|
|
192
|
-
value: se
|
|
193
|
-
}),
|
|
194
|
-
groupEnd: k({}, e, {
|
|
194
|
+
groupEnd: S({}, e, {
|
|
195
195
|
value: le
|
|
196
196
|
})
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
I < 0 &&
|
|
199
|
+
I < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
202
|
+
var H = P.ReactCurrentDispatcher, J;
|
|
203
|
+
function L(e, r, t) {
|
|
204
204
|
{
|
|
205
|
-
if (
|
|
205
|
+
if (J === void 0)
|
|
206
206
|
try {
|
|
207
207
|
throw Error();
|
|
208
208
|
} catch (i) {
|
|
209
209
|
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
210
|
-
|
|
210
|
+
J = n && n[1] || "";
|
|
211
211
|
}
|
|
212
212
|
return `
|
|
213
|
-
` +
|
|
213
|
+
` + J + e;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var G = !1, M;
|
|
217
217
|
{
|
|
218
|
-
var
|
|
219
|
-
M = new
|
|
218
|
+
var $e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
219
|
+
M = new $e();
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
if (!e ||
|
|
221
|
+
function fe(e, r) {
|
|
222
|
+
if (!e || G)
|
|
223
223
|
return "";
|
|
224
224
|
{
|
|
225
225
|
var t = M.get(e);
|
|
@@ -227,11 +227,11 @@ function dr() {
|
|
|
227
227
|
return t;
|
|
228
228
|
}
|
|
229
229
|
var n;
|
|
230
|
-
|
|
230
|
+
G = !0;
|
|
231
231
|
var i = Error.prepareStackTrace;
|
|
232
232
|
Error.prepareStackTrace = void 0;
|
|
233
233
|
var u;
|
|
234
|
-
u =
|
|
234
|
+
u = H.current, H.current = null, Ae();
|
|
235
235
|
try {
|
|
236
236
|
if (r) {
|
|
237
237
|
var o = function() {
|
|
@@ -244,55 +244,55 @@ function dr() {
|
|
|
244
244
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
245
245
|
try {
|
|
246
246
|
Reflect.construct(o, []);
|
|
247
|
-
} catch (
|
|
248
|
-
n =
|
|
247
|
+
} catch (C) {
|
|
248
|
+
n = C;
|
|
249
249
|
}
|
|
250
250
|
Reflect.construct(e, [], o);
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
o.call();
|
|
254
|
-
} catch (
|
|
255
|
-
n =
|
|
254
|
+
} catch (C) {
|
|
255
|
+
n = C;
|
|
256
256
|
}
|
|
257
257
|
e.call(o.prototype);
|
|
258
258
|
}
|
|
259
259
|
} else {
|
|
260
260
|
try {
|
|
261
261
|
throw Error();
|
|
262
|
-
} catch (
|
|
263
|
-
n =
|
|
262
|
+
} catch (C) {
|
|
263
|
+
n = C;
|
|
264
264
|
}
|
|
265
265
|
e();
|
|
266
266
|
}
|
|
267
|
-
} catch (
|
|
268
|
-
if (
|
|
269
|
-
for (var a =
|
|
270
|
-
`),
|
|
271
|
-
`), l = a.length - 1,
|
|
272
|
-
|
|
273
|
-
for (; l >= 1 &&
|
|
274
|
-
if (a[l] !==
|
|
275
|
-
if (l !== 1 ||
|
|
267
|
+
} catch (C) {
|
|
268
|
+
if (C && n && typeof C.stack == "string") {
|
|
269
|
+
for (var a = C.stack.split(`
|
|
270
|
+
`), h = n.stack.split(`
|
|
271
|
+
`), l = a.length - 1, s = h.length - 1; l >= 1 && s >= 0 && a[l] !== h[s]; )
|
|
272
|
+
s--;
|
|
273
|
+
for (; l >= 1 && s >= 0; l--, s--)
|
|
274
|
+
if (a[l] !== h[s]) {
|
|
275
|
+
if (l !== 1 || s !== 1)
|
|
276
276
|
do
|
|
277
|
-
if (l--,
|
|
277
|
+
if (l--, s--, s < 0 || a[l] !== h[s]) {
|
|
278
278
|
var y = `
|
|
279
279
|
` + a[l].replace(" at new ", " at ");
|
|
280
280
|
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, y), y;
|
|
281
281
|
}
|
|
282
|
-
while (l >= 1 &&
|
|
282
|
+
while (l >= 1 && s >= 0);
|
|
283
283
|
break;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
} finally {
|
|
287
|
-
|
|
287
|
+
G = !1, H.current = u, We(), Error.prepareStackTrace = i;
|
|
288
288
|
}
|
|
289
|
-
var F = e ? e.displayName || e.name : "",
|
|
290
|
-
return typeof e == "function" && M.set(e,
|
|
289
|
+
var F = e ? e.displayName || e.name : "", Te = F ? L(F) : "";
|
|
290
|
+
return typeof e == "function" && M.set(e, Te), Te;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
293
|
-
return
|
|
292
|
+
function Ye(e, r, t) {
|
|
293
|
+
return fe(e, !1);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Ne(e) {
|
|
296
296
|
var r = e.prototype;
|
|
297
297
|
return !!(r && r.isReactComponent);
|
|
298
298
|
}
|
|
@@ -300,22 +300,22 @@ function dr() {
|
|
|
300
300
|
if (e == null)
|
|
301
301
|
return "";
|
|
302
302
|
if (typeof e == "function")
|
|
303
|
-
return
|
|
303
|
+
return fe(e, Ne(e));
|
|
304
304
|
if (typeof e == "string")
|
|
305
|
-
return
|
|
305
|
+
return L(e);
|
|
306
306
|
switch (e) {
|
|
307
|
-
case
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
307
|
+
case O:
|
|
308
|
+
return L("Suspense");
|
|
309
|
+
case p:
|
|
310
|
+
return L("SuspenseList");
|
|
311
311
|
}
|
|
312
312
|
if (typeof e == "object")
|
|
313
313
|
switch (e.$$typeof) {
|
|
314
|
-
case
|
|
315
|
-
return
|
|
316
|
-
case
|
|
314
|
+
case f:
|
|
315
|
+
return Ye(e.render);
|
|
316
|
+
case _:
|
|
317
317
|
return V(e.type, r, t);
|
|
318
|
-
case
|
|
318
|
+
case d: {
|
|
319
319
|
var n = e, i = n._payload, u = n._init;
|
|
320
320
|
try {
|
|
321
321
|
return V(u(i), r, t);
|
|
@@ -325,15 +325,15 @@ function dr() {
|
|
|
325
325
|
}
|
|
326
326
|
return "";
|
|
327
327
|
}
|
|
328
|
-
var U = Object.prototype.hasOwnProperty,
|
|
328
|
+
var U = Object.prototype.hasOwnProperty, ce = {}, de = P.ReactDebugCurrentFrame;
|
|
329
329
|
function B(e) {
|
|
330
330
|
if (e) {
|
|
331
331
|
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
332
|
-
|
|
332
|
+
de.setExtraStackFrame(t);
|
|
333
333
|
} else
|
|
334
|
-
|
|
334
|
+
de.setExtraStackFrame(null);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Le(e, r, t, n, i) {
|
|
337
337
|
{
|
|
338
338
|
var u = Function.call.bind(U);
|
|
339
339
|
for (var o in e)
|
|
@@ -341,49 +341,49 @@ function dr() {
|
|
|
341
341
|
var a = void 0;
|
|
342
342
|
try {
|
|
343
343
|
if (typeof e[o] != "function") {
|
|
344
|
-
var
|
|
345
|
-
throw
|
|
344
|
+
var h = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
345
|
+
throw h.name = "Invariant Violation", h;
|
|
346
346
|
}
|
|
347
347
|
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
348
348
|
} catch (l) {
|
|
349
349
|
a = l;
|
|
350
350
|
}
|
|
351
|
-
a && !(a instanceof Error) && (B(i),
|
|
351
|
+
a && !(a instanceof Error) && (B(i), v("%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).", n || "React class", t, o, typeof a), B(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, B(i), v("Failed %s type: %s", t, a.message), B(null));
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
var
|
|
355
|
+
var Me = Array.isArray;
|
|
356
356
|
function z(e) {
|
|
357
|
-
return
|
|
357
|
+
return Me(e);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Ve(e) {
|
|
360
360
|
{
|
|
361
361
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
362
362
|
return t;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ue(e) {
|
|
366
366
|
try {
|
|
367
|
-
return
|
|
367
|
+
return ve(e), !1;
|
|
368
368
|
} catch {
|
|
369
369
|
return !0;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function ve(e) {
|
|
373
373
|
return "" + e;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
if (
|
|
377
|
-
return
|
|
375
|
+
function pe(e) {
|
|
376
|
+
if (Ue(e))
|
|
377
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), ve(e);
|
|
378
378
|
}
|
|
379
|
-
var A =
|
|
379
|
+
var A = P.ReactCurrentOwner, Be = {
|
|
380
380
|
key: !0,
|
|
381
381
|
ref: !0,
|
|
382
382
|
__self: !0,
|
|
383
383
|
__source: !0
|
|
384
|
-
},
|
|
384
|
+
}, he, ge, K;
|
|
385
385
|
K = {};
|
|
386
|
-
function
|
|
386
|
+
function qe(e) {
|
|
387
387
|
if (U.call(e, "ref")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
@@ -399,16 +399,16 @@ function dr() {
|
|
|
399
399
|
}
|
|
400
400
|
return e.key !== void 0;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Je(e, r) {
|
|
403
403
|
if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
|
|
404
|
-
var t =
|
|
405
|
-
K[t] || (
|
|
404
|
+
var t = w(A.current.type);
|
|
405
|
+
K[t] || (v('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', w(A.current.type), e.ref), K[t] = !0);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ge(e, r) {
|
|
409
409
|
{
|
|
410
410
|
var t = function() {
|
|
411
|
-
|
|
411
|
+
he || (he = !0, v("%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)", r));
|
|
412
412
|
};
|
|
413
413
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
414
414
|
get: t,
|
|
@@ -416,10 +416,10 @@ function dr() {
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function ze(e, r) {
|
|
420
420
|
{
|
|
421
421
|
var t = function() {
|
|
422
|
-
ge || (ge = !0,
|
|
422
|
+
ge || (ge = !0, v("%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)", r));
|
|
423
423
|
};
|
|
424
424
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
425
425
|
get: t,
|
|
@@ -427,10 +427,10 @@ function dr() {
|
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
var
|
|
430
|
+
var Ke = function(e, r, t, n, i, u, o) {
|
|
431
431
|
var a = {
|
|
432
432
|
// This tag allows us to uniquely identify this as a React Element
|
|
433
|
-
$$typeof:
|
|
433
|
+
$$typeof: m,
|
|
434
434
|
// Built-in properties that belong on the element
|
|
435
435
|
type: e,
|
|
436
436
|
key: r,
|
|
@@ -456,41 +456,41 @@ function dr() {
|
|
|
456
456
|
value: i
|
|
457
457
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
458
458
|
};
|
|
459
|
-
function
|
|
459
|
+
function Xe(e, r, t, n, i) {
|
|
460
460
|
{
|
|
461
|
-
var u, o = {}, a = null,
|
|
462
|
-
t !== void 0 && (
|
|
461
|
+
var u, o = {}, a = null, h = null;
|
|
462
|
+
t !== void 0 && (pe(t), a = "" + t), He(r) && (pe(r.key), a = "" + r.key), qe(r) && (h = r.ref, Je(r, i));
|
|
463
463
|
for (u in r)
|
|
464
|
-
U.call(r, u) && !
|
|
464
|
+
U.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
|
|
465
465
|
if (e && e.defaultProps) {
|
|
466
466
|
var l = e.defaultProps;
|
|
467
467
|
for (u in l)
|
|
468
468
|
o[u] === void 0 && (o[u] = l[u]);
|
|
469
469
|
}
|
|
470
|
-
if (a ||
|
|
471
|
-
var
|
|
472
|
-
a &&
|
|
470
|
+
if (a || h) {
|
|
471
|
+
var s = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
472
|
+
a && Ge(o, s), h && ze(o, s);
|
|
473
473
|
}
|
|
474
|
-
return
|
|
474
|
+
return Ke(e, a, h, i, n, A.current, o);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
var X =
|
|
477
|
+
var X = P.ReactCurrentOwner, me = P.ReactDebugCurrentFrame;
|
|
478
478
|
function D(e) {
|
|
479
479
|
if (e) {
|
|
480
480
|
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
481
|
-
|
|
481
|
+
me.setExtraStackFrame(t);
|
|
482
482
|
} else
|
|
483
|
-
|
|
483
|
+
me.setExtraStackFrame(null);
|
|
484
484
|
}
|
|
485
485
|
var Z;
|
|
486
486
|
Z = !1;
|
|
487
487
|
function Q(e) {
|
|
488
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
488
|
+
return typeof e == "object" && e !== null && e.$$typeof === m;
|
|
489
489
|
}
|
|
490
490
|
function be() {
|
|
491
491
|
{
|
|
492
492
|
if (X.current) {
|
|
493
|
-
var e =
|
|
493
|
+
var e = w(X.current.type);
|
|
494
494
|
if (e)
|
|
495
495
|
return `
|
|
496
496
|
|
|
@@ -499,7 +499,7 @@ Check the render method of \`` + e + "`.";
|
|
|
499
499
|
return "";
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Ze(e) {
|
|
503
503
|
{
|
|
504
504
|
if (e !== void 0) {
|
|
505
505
|
var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
|
|
@@ -510,8 +510,8 @@ Check your code at ` + r + ":" + t + ".";
|
|
|
510
510
|
return "";
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var
|
|
514
|
-
function
|
|
513
|
+
var Ee = {};
|
|
514
|
+
function Qe(e) {
|
|
515
515
|
{
|
|
516
516
|
var r = be();
|
|
517
517
|
if (!r) {
|
|
@@ -528,15 +528,15 @@ Check the top-level render call using <` + t + ">.");
|
|
|
528
528
|
if (!e._store || e._store.validated || e.key != null)
|
|
529
529
|
return;
|
|
530
530
|
e._store.validated = !0;
|
|
531
|
-
var t =
|
|
532
|
-
if (
|
|
531
|
+
var t = Qe(r);
|
|
532
|
+
if (Ee[t])
|
|
533
533
|
return;
|
|
534
|
-
|
|
534
|
+
Ee[t] = !0;
|
|
535
535
|
var n = "";
|
|
536
|
-
e && e._owner && e._owner !== X.current && (n = " It was passed a child from " +
|
|
536
|
+
e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + w(e._owner.type) + "."), D(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Re(e, r) {
|
|
540
540
|
{
|
|
541
541
|
if (typeof e != "object")
|
|
542
542
|
return;
|
|
@@ -548,14 +548,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
548
548
|
else if (Q(e))
|
|
549
549
|
e._store && (e._store.validated = !0);
|
|
550
550
|
else if (e) {
|
|
551
|
-
var i =
|
|
551
|
+
var i = N(e);
|
|
552
552
|
if (typeof i == "function" && i !== e.entries)
|
|
553
553
|
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
554
554
|
Q(o.value) && ye(o.value, r);
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function er(e) {
|
|
559
559
|
{
|
|
560
560
|
var r = e.type;
|
|
561
561
|
if (r == null || typeof r == "string")
|
|
@@ -563,191 +563,161 @@ Check the top-level render call using <` + t + ">.");
|
|
|
563
563
|
var t;
|
|
564
564
|
if (typeof r == "function")
|
|
565
565
|
t = r.propTypes;
|
|
566
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
566
|
+
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
567
567
|
// Inner props are checked in the reconciler.
|
|
568
|
-
r.$$typeof ===
|
|
568
|
+
r.$$typeof === _))
|
|
569
569
|
t = r.propTypes;
|
|
570
570
|
else
|
|
571
571
|
return;
|
|
572
572
|
if (t) {
|
|
573
|
-
var n =
|
|
574
|
-
|
|
573
|
+
var n = w(r);
|
|
574
|
+
Le(t, e.props, "prop", n, e);
|
|
575
575
|
} else if (r.PropTypes !== void 0 && !Z) {
|
|
576
576
|
Z = !0;
|
|
577
|
-
var i =
|
|
578
|
-
|
|
577
|
+
var i = w(r);
|
|
578
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
579
579
|
}
|
|
580
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
580
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function rr(e) {
|
|
584
584
|
{
|
|
585
585
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
586
586
|
var n = r[t];
|
|
587
587
|
if (n !== "children" && n !== "key") {
|
|
588
|
-
D(e),
|
|
588
|
+
D(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
e.ref !== null && (D(e),
|
|
592
|
+
e.ref !== null && (D(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function _e(e, r, t, n, i, u) {
|
|
596
596
|
{
|
|
597
|
-
var o =
|
|
597
|
+
var o = Fe(e);
|
|
598
598
|
if (!o) {
|
|
599
599
|
var a = "";
|
|
600
600
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
601
|
-
var
|
|
602
|
-
|
|
601
|
+
var h = Ze(i);
|
|
602
|
+
h ? a += h : a += be();
|
|
603
603
|
var l;
|
|
604
|
-
e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof ===
|
|
604
|
+
e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (w(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
if (
|
|
608
|
-
return
|
|
606
|
+
var s = Xe(e, r, t, i, u);
|
|
607
|
+
if (s == null)
|
|
608
|
+
return s;
|
|
609
609
|
if (o) {
|
|
610
610
|
var y = r.children;
|
|
611
611
|
if (y !== void 0)
|
|
612
612
|
if (n)
|
|
613
613
|
if (z(y)) {
|
|
614
614
|
for (var F = 0; F < y.length; F++)
|
|
615
|
-
|
|
615
|
+
Re(y[F], e);
|
|
616
616
|
Object.freeze && Object.freeze(y);
|
|
617
617
|
} else
|
|
618
|
-
|
|
618
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
619
619
|
else
|
|
620
|
-
|
|
620
|
+
Re(y, e);
|
|
621
621
|
}
|
|
622
|
-
return e ===
|
|
622
|
+
return e === R ? rr(s) : er(s), s;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
625
|
+
function tr(e, r, t) {
|
|
626
|
+
return _e(e, r, t, !0);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
return
|
|
628
|
+
function nr(e, r, t) {
|
|
629
|
+
return _e(e, r, t, !1);
|
|
630
630
|
}
|
|
631
|
-
var
|
|
632
|
-
$.Fragment =
|
|
631
|
+
var ar = nr, or = tr;
|
|
632
|
+
$.Fragment = R, $.jsx = ar, $.jsxs = or;
|
|
633
633
|
}()), $;
|
|
634
634
|
}
|
|
635
|
-
(function(
|
|
636
|
-
process.env.NODE_ENV === "production" ?
|
|
637
|
-
})(
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
function E(h) {
|
|
642
|
-
sr(() => {
|
|
643
|
-
s.current || (s.current = document.createElement("div"));
|
|
644
|
-
function _(c) {
|
|
645
|
-
h(c.detail);
|
|
646
|
-
}
|
|
647
|
-
if (s.current)
|
|
648
|
-
return s.current.addEventListener(ee, _, !1), () => {
|
|
649
|
-
var c;
|
|
650
|
-
(c = s.current) == null || c.removeEventListener(ee, _, !1);
|
|
651
|
-
};
|
|
652
|
-
}, [h]);
|
|
653
|
-
}
|
|
654
|
-
function P(h) {
|
|
655
|
-
if (s.current) {
|
|
656
|
-
const _ = new CustomEvent(ee, {
|
|
657
|
-
detail: h
|
|
658
|
-
});
|
|
659
|
-
s.current.dispatchEvent(_);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
return {
|
|
663
|
-
useListenToCustomEvent: E,
|
|
664
|
-
emitEvent: P
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
function vr(s) {
|
|
668
|
-
const E = s.getBoundingClientRect();
|
|
669
|
-
return E.top >= 0 && E.left >= 0 && E.bottom <= (window.innerHeight || document.documentElement.clientHeight) && E.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
635
|
+
(function(c) {
|
|
636
|
+
process.env.NODE_ENV === "production" ? c.exports = sr() : c.exports = fr();
|
|
637
|
+
})(lr);
|
|
638
|
+
function cr(c) {
|
|
639
|
+
const m = c.getBoundingClientRect();
|
|
640
|
+
return m.top >= 0 && m.left >= 0 && m.bottom <= (window.innerHeight || document.documentElement.clientHeight) && m.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
670
641
|
}
|
|
671
|
-
function
|
|
672
|
-
thumbsSlideAxis:
|
|
673
|
-
withThumbs:
|
|
674
|
-
prepareThumbsData:
|
|
675
|
-
items:
|
|
676
|
-
renderThumbFnProps:
|
|
642
|
+
function pr({
|
|
643
|
+
thumbsSlideAxis: c = "x",
|
|
644
|
+
withThumbs: m = !1,
|
|
645
|
+
prepareThumbsData: j,
|
|
646
|
+
items: R,
|
|
647
|
+
renderThumbFnProps: k
|
|
677
648
|
}) {
|
|
678
|
-
const
|
|
649
|
+
const g = ir(null), [x, T] = ur(() => ({
|
|
679
650
|
val: 0
|
|
680
651
|
}));
|
|
681
|
-
function
|
|
682
|
-
var
|
|
652
|
+
function f() {
|
|
653
|
+
var d;
|
|
683
654
|
return Math.round(
|
|
684
655
|
Number(
|
|
685
|
-
(
|
|
686
|
-
) -
|
|
656
|
+
(d = g.current) == null ? void 0 : d[c === "x" ? "scrollWidth" : "scrollHeight"]
|
|
657
|
+
) - g.current.getBoundingClientRect()[c === "x" ? "width" : "height"]
|
|
687
658
|
);
|
|
688
659
|
}
|
|
689
|
-
function
|
|
690
|
-
var
|
|
660
|
+
function O(d) {
|
|
661
|
+
var Y;
|
|
691
662
|
function b() {
|
|
692
|
-
return
|
|
693
|
-
`#thumb-item-${
|
|
663
|
+
return g.current ? g.current.querySelector(
|
|
664
|
+
`#thumb-item-${R[d].id}`
|
|
694
665
|
) : null;
|
|
695
666
|
}
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
698
|
-
const
|
|
699
|
-
|
|
667
|
+
const E = b();
|
|
668
|
+
if (E && g.current && !cr(E)) {
|
|
669
|
+
const N = E.offsetLeft, P = N > f() ? f() : N;
|
|
670
|
+
T.start({
|
|
700
671
|
from: {
|
|
701
|
-
val: ((
|
|
672
|
+
val: ((Y = g.current) == null ? void 0 : Y[c === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
|
|
702
673
|
},
|
|
703
674
|
to: {
|
|
704
|
-
val:
|
|
675
|
+
val: P
|
|
705
676
|
},
|
|
706
|
-
onChange: ({ value:
|
|
707
|
-
|
|
677
|
+
onChange: ({ value: v }) => {
|
|
678
|
+
g.current && (g.current[c === "x" ? "scrollLeft" : "scrollTop"] = Math.abs(v.val));
|
|
708
679
|
}
|
|
709
680
|
});
|
|
710
681
|
}
|
|
711
682
|
}
|
|
712
|
-
function
|
|
713
|
-
function
|
|
714
|
-
return b.map((
|
|
715
|
-
id:
|
|
716
|
-
renderThumb:
|
|
683
|
+
function p() {
|
|
684
|
+
function d(b) {
|
|
685
|
+
return b.map((E) => ({
|
|
686
|
+
id: E.id,
|
|
687
|
+
renderThumb: E.renderThumb
|
|
717
688
|
}));
|
|
718
689
|
}
|
|
719
|
-
return
|
|
690
|
+
return j ? j(d(R)) : d(R);
|
|
720
691
|
}
|
|
721
692
|
return {
|
|
722
|
-
thumbsFragment:
|
|
693
|
+
thumbsFragment: m ? /* @__PURE__ */ q.jsx(
|
|
723
694
|
"div",
|
|
724
695
|
{
|
|
725
696
|
className: "use-spring-carousel-thumbs-wrapper",
|
|
726
|
-
ref:
|
|
727
|
-
onWheel: () =>
|
|
697
|
+
ref: g,
|
|
698
|
+
onWheel: () => x.val.stop(),
|
|
728
699
|
style: {
|
|
729
700
|
display: "flex",
|
|
730
701
|
flex: "1",
|
|
731
702
|
position: "relative",
|
|
732
703
|
width: "100%",
|
|
733
704
|
height: "100%",
|
|
734
|
-
flexDirection:
|
|
735
|
-
...
|
|
705
|
+
flexDirection: c === "x" ? "row" : "column",
|
|
706
|
+
...c === "x" ? { overflowX: "auto" } : {
|
|
736
707
|
overflowY: "auto",
|
|
737
708
|
maxHeight: "100%"
|
|
738
709
|
}
|
|
739
710
|
},
|
|
740
|
-
children:
|
|
741
|
-
const
|
|
742
|
-
return /* @__PURE__ */ q.jsx("div", { id:
|
|
711
|
+
children: p().map(({ id: d, renderThumb: b }) => {
|
|
712
|
+
const E = `thumb-item-${d}`;
|
|
713
|
+
return /* @__PURE__ */ q.jsx("div", { id: E, className: "thumb-item", children: typeof b == "function" ? b(k) : b }, E);
|
|
743
714
|
})
|
|
744
715
|
}
|
|
745
716
|
) : null,
|
|
746
|
-
handleScroll:
|
|
717
|
+
handleScroll: O
|
|
747
718
|
};
|
|
748
719
|
}
|
|
749
720
|
export {
|
|
750
|
-
gr as a,
|
|
751
721
|
q as j,
|
|
752
|
-
|
|
722
|
+
pr as u
|
|
753
723
|
};
|