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