@juniorxsound/react-three-components 0.1.2 → 0.1.4
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/README.md +98 -41
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useGLTFMaterialVariants.d.ts +62 -0
- package/dist/index.d.ts +2 -0
- package/dist/react-three-components.js +472 -412
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useThree as
|
|
4
|
-
import { useSpring as
|
|
5
|
-
import { useDrag as
|
|
6
|
-
var
|
|
1
|
+
import { jsx as pt, jsxs as Yt } from "react/jsx-runtime";
|
|
2
|
+
import zt, { useRef as ct, useEffect as St, createContext as ee, useContext as ne, useState as Lt, use as re, forwardRef as Kt, Children as Wt, useImperativeHandle as Xt, isValidElement as Pt } from "react";
|
|
3
|
+
import { useThree as oe, useFrame as Bt } from "@react-three/fiber";
|
|
4
|
+
import { useSpring as se } from "@react-spring/web";
|
|
5
|
+
import { useDrag as ie } from "@use-gesture/react";
|
|
6
|
+
var yt = { exports: {} }, Ot = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-compiler-runtime.production.js
|
|
@@ -13,16 +13,16 @@ var Ot = { exports: {} }, bt = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
return
|
|
22
|
-
return
|
|
23
|
-
},
|
|
16
|
+
var Ht;
|
|
17
|
+
function ce() {
|
|
18
|
+
if (Ht) return Ot;
|
|
19
|
+
Ht = 1;
|
|
20
|
+
var r = zt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
21
|
+
return Ot.c = function(e) {
|
|
22
|
+
return r.H.useMemoCache(e);
|
|
23
|
+
}, Ot;
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Dt = {};
|
|
26
26
|
/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-compiler-runtime.development.js
|
|
@@ -32,110 +32,110 @@ var Pt = {};
|
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
return
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
return
|
|
35
|
+
var qt;
|
|
36
|
+
function le() {
|
|
37
|
+
return qt || (qt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
38
|
+
var r = zt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
39
|
+
Dt.c = function(e) {
|
|
40
|
+
var n = r.H;
|
|
41
|
+
return n === null && console.error(
|
|
42
42
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
43
43
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
44
44
|
2. You might be breaking the Rules of Hooks
|
|
45
45
|
3. You might have more than one copy of React in the same app
|
|
46
46
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
47
|
-
),
|
|
47
|
+
), n.useMemoCache(e);
|
|
48
48
|
};
|
|
49
|
-
})()),
|
|
49
|
+
})()), Dt;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
53
|
-
return
|
|
51
|
+
var wt;
|
|
52
|
+
function ae() {
|
|
53
|
+
return wt || (wt = 1, process.env.NODE_ENV === "production" ? yt.exports = ce() : yt.exports = le()), yt.exports;
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
const
|
|
55
|
+
var At = ae();
|
|
56
|
+
const K = 2 * Math.PI, ue = 3, fe = "y", de = 280, Mt = {
|
|
57
57
|
tension: 200,
|
|
58
58
|
friction: 25
|
|
59
|
-
},
|
|
59
|
+
}, ge = {
|
|
60
60
|
tension: 400,
|
|
61
61
|
friction: 50
|
|
62
62
|
};
|
|
63
|
-
function
|
|
64
|
-
return Math.max(e, Math.min(
|
|
63
|
+
function Nt(r, e, n) {
|
|
64
|
+
return Math.max(e, Math.min(n, r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const s =
|
|
66
|
+
function me(r, e, n, t) {
|
|
67
|
+
const s = r / e * K, c = Math.cos(s) * n, o = Math.sin(s) * n, x = t === "y" ? [o, 0, c] : t === "x" ? [0, c, o] : [c, o, 0], y = t === "y" ? [0, Math.PI + s, 0] : t === "x" ? [Math.PI + s, 0, 0] : [0, 0, Math.PI + s];
|
|
68
68
|
return {
|
|
69
|
-
position:
|
|
70
|
-
rotation:
|
|
69
|
+
position: x,
|
|
70
|
+
rotation: y
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const
|
|
75
|
-
return e +
|
|
73
|
+
function bt(r, e) {
|
|
74
|
+
const n = Math.round((r - e) / K);
|
|
75
|
+
return e + n * K;
|
|
76
76
|
}
|
|
77
|
-
function Jt(
|
|
77
|
+
function Jt(r) {
|
|
78
78
|
const {
|
|
79
79
|
count: e,
|
|
80
|
-
dragEnabled:
|
|
80
|
+
dragEnabled: n,
|
|
81
81
|
dragAxis: t,
|
|
82
82
|
dragSensitivity: s,
|
|
83
83
|
maxDragAmount: c,
|
|
84
84
|
dragConfig: o,
|
|
85
|
-
springConfig:
|
|
86
|
-
dragSpringConfig:
|
|
87
|
-
calculateIndexFromOffset:
|
|
88
|
-
calculateTargetIndex:
|
|
89
|
-
calculateTargetOffset:
|
|
90
|
-
onNavigate:
|
|
91
|
-
} =
|
|
92
|
-
gl:
|
|
93
|
-
} =
|
|
94
|
-
offset:
|
|
95
|
-
},
|
|
85
|
+
springConfig: x,
|
|
86
|
+
dragSpringConfig: y,
|
|
87
|
+
calculateIndexFromOffset: f,
|
|
88
|
+
calculateTargetIndex: G,
|
|
89
|
+
calculateTargetOffset: V,
|
|
90
|
+
onNavigate: $
|
|
91
|
+
} = r, {
|
|
92
|
+
gl: C
|
|
93
|
+
} = oe(), [{
|
|
94
|
+
offset: D
|
|
95
|
+
}, R] = se(() => ({
|
|
96
96
|
offset: 0
|
|
97
|
-
})),
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
return
|
|
101
|
-
active:
|
|
102
|
-
movement: [
|
|
103
|
-
first:
|
|
104
|
-
last:
|
|
97
|
+
})), I = ct(R);
|
|
98
|
+
I.current = R;
|
|
99
|
+
const lt = ct(!1), U = ct(0), T = ct(0), vt = ct(0);
|
|
100
|
+
return ie(({
|
|
101
|
+
active: v,
|
|
102
|
+
movement: [d, g],
|
|
103
|
+
first: E,
|
|
104
|
+
last: k
|
|
105
105
|
}) => {
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
if (Number.isFinite(
|
|
112
|
-
const b =
|
|
113
|
-
|
|
106
|
+
lt.current = v;
|
|
107
|
+
const H = t === "x" ? d : g;
|
|
108
|
+
E && (T.current = U.current, vt.current = f(U.current)), v && E && (C.domElement.style.cursor = "grabbing"), !v && k && (C.domElement.style.cursor = "grab");
|
|
109
|
+
const P = T.current, z = Number(H);
|
|
110
|
+
let M = 0;
|
|
111
|
+
if (Number.isFinite(z)) {
|
|
112
|
+
const b = z / s;
|
|
113
|
+
M = Nt(b, -c, c);
|
|
114
114
|
}
|
|
115
|
-
if (
|
|
116
|
-
|
|
117
|
-
offset:
|
|
118
|
-
config:
|
|
115
|
+
if (v)
|
|
116
|
+
I.current.start({
|
|
117
|
+
offset: P + M,
|
|
118
|
+
config: y
|
|
119
119
|
});
|
|
120
120
|
else {
|
|
121
|
-
const b =
|
|
122
|
-
if (e === 0 || !Number.isFinite(
|
|
123
|
-
|
|
124
|
-
offset:
|
|
125
|
-
config:
|
|
121
|
+
const b = vt.current, i = P + M, l = G(i, b, M);
|
|
122
|
+
if (e === 0 || !Number.isFinite(l)) {
|
|
123
|
+
I.current.start({
|
|
124
|
+
offset: P,
|
|
125
|
+
config: x
|
|
126
126
|
});
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
offset:
|
|
133
|
-
config:
|
|
129
|
+
$(l);
|
|
130
|
+
const q = V(l, i);
|
|
131
|
+
I.current.start({
|
|
132
|
+
offset: q,
|
|
133
|
+
config: x
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
}, {
|
|
137
|
-
target:
|
|
138
|
-
enabled:
|
|
137
|
+
target: C.domElement,
|
|
138
|
+
enabled: n,
|
|
139
139
|
from: () => [0, 0],
|
|
140
140
|
filterTaps: (o == null ? void 0 : o.filterTaps) ?? !0,
|
|
141
141
|
threshold: (o == null ? void 0 : o.threshold) ?? 5,
|
|
@@ -147,411 +147,471 @@ function Jt(n) {
|
|
|
147
147
|
touchAction: (o == null ? void 0 : o.touchAction) ?? "none",
|
|
148
148
|
rubberband: o == null ? void 0 : o.rubberband
|
|
149
149
|
}), St(() => {
|
|
150
|
-
if (!
|
|
151
|
-
const
|
|
152
|
-
return
|
|
153
|
-
|
|
150
|
+
if (!n) return;
|
|
151
|
+
const v = C.domElement, d = v.style.touchAction, g = v.style.cursor;
|
|
152
|
+
return v.style.touchAction = "none", v.style.cursor = "grab", () => {
|
|
153
|
+
v.style.touchAction = d, v.style.cursor = g;
|
|
154
154
|
};
|
|
155
|
-
}, [
|
|
156
|
-
offset:
|
|
157
|
-
springApi:
|
|
158
|
-
isDraggingRef:
|
|
159
|
-
currentOffsetRef:
|
|
155
|
+
}, [n, C.domElement]), {
|
|
156
|
+
offset: D,
|
|
157
|
+
springApi: R,
|
|
158
|
+
isDraggingRef: lt,
|
|
159
|
+
currentOffsetRef: U
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
const
|
|
163
|
-
function
|
|
164
|
-
const e =
|
|
162
|
+
const Gt = ee(null);
|
|
163
|
+
function Qt(r) {
|
|
164
|
+
const e = ne(Gt);
|
|
165
165
|
if (!e)
|
|
166
|
-
throw new Error(`${
|
|
166
|
+
throw new Error(`${r} compound components must be used within ${r}`);
|
|
167
167
|
return e;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
function Zt(r) {
|
|
170
|
+
var e, n;
|
|
171
|
+
return ((n = (e = r.userData) == null ? void 0 : e.gltfExtensions) == null ? void 0 : n.KHR_materials_variants) ?? null;
|
|
171
172
|
}
|
|
172
|
-
function
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
function pe(r, e, n, t) {
|
|
174
|
+
const s = n.variants.findIndex((o) => o.name === t || o.name.includes(t));
|
|
175
|
+
if (s === -1) return Promise.resolve();
|
|
176
|
+
const c = [];
|
|
177
|
+
return r.traverse((o) => {
|
|
178
|
+
var G;
|
|
179
|
+
if (!("isMesh" in o) || !o.isMesh || !((G = o.userData) != null && G.gltfExtensions))
|
|
180
|
+
return;
|
|
181
|
+
const x = o, y = o.userData.gltfExtensions.KHR_materials_variants;
|
|
182
|
+
if (!y) return;
|
|
183
|
+
o.userData.originalMaterial || (o.userData.originalMaterial = x.material);
|
|
184
|
+
const f = y.mappings.find((V) => V.variants.includes(s));
|
|
185
|
+
f ? c.push(e.getDependency("material", f.material).then((V) => {
|
|
186
|
+
x.material = V, e.assignFinalMaterial(x);
|
|
187
|
+
})) : x.material = o.userData.originalMaterial;
|
|
188
|
+
}), Promise.all(c).then(() => {
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
function ve(r, e) {
|
|
192
|
+
const n = Zt(r);
|
|
193
|
+
return n ? pe(r.scene, r.parser, n, e).then(() => ({
|
|
194
|
+
variantName: e
|
|
195
|
+
})) : Promise.resolve({
|
|
196
|
+
variantName: e
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function Me(r, e) {
|
|
200
|
+
const n = At.c(14);
|
|
201
|
+
let t;
|
|
202
|
+
if (n[0] !== r) {
|
|
203
|
+
const I = Zt(r);
|
|
204
|
+
t = I ? I.variants.map(he) : [], n[0] = r, n[1] = t;
|
|
205
|
+
} else
|
|
206
|
+
t = n[1];
|
|
207
|
+
const s = t, c = (e == null ? void 0 : e.variant) ?? s[0] ?? null, o = (e == null ? void 0 : e.getVariantPromise) ?? ve;
|
|
208
|
+
let x;
|
|
209
|
+
n[2] !== o || n[3] !== r || n[4] !== c || n[5] !== s.length ? (x = () => c && s.length > 0 ? o(r, c) : Promise.resolve({
|
|
210
|
+
variantName: null
|
|
211
|
+
}), n[2] = o, n[3] = r, n[4] = c, n[5] = s.length, n[6] = x) : x = n[6];
|
|
212
|
+
const [y, f] = Lt(x), V = re(y).variantName;
|
|
213
|
+
let $;
|
|
214
|
+
n[7] !== o || n[8] !== r ? ($ = (I) => {
|
|
215
|
+
f(o(r, I));
|
|
216
|
+
}, n[7] = o, n[8] = r, n[9] = $) : $ = n[9];
|
|
217
|
+
const C = $, D = s.length > 0 ? V : null;
|
|
218
|
+
let R;
|
|
219
|
+
return n[10] !== C || n[11] !== D || n[12] !== s ? (R = {
|
|
220
|
+
variants: s,
|
|
221
|
+
activeVariant: D,
|
|
222
|
+
setVariant: C
|
|
223
|
+
}, n[10] = C, n[11] = D, n[12] = s, n[13] = R) : R = n[13], R;
|
|
224
|
+
}
|
|
225
|
+
function he(r) {
|
|
226
|
+
return r.name;
|
|
227
|
+
}
|
|
228
|
+
function jt() {
|
|
229
|
+
return Qt("CircularCarousel");
|
|
230
|
+
}
|
|
231
|
+
function Vt(r) {
|
|
232
|
+
const e = At.c(9), {
|
|
233
|
+
next: n
|
|
234
|
+
} = jt();
|
|
176
235
|
let t, s;
|
|
177
|
-
e[0] !==
|
|
236
|
+
e[0] !== r ? ({
|
|
178
237
|
children: t,
|
|
179
238
|
...s
|
|
180
|
-
} =
|
|
239
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
181
240
|
let c;
|
|
182
|
-
e[3] !==
|
|
241
|
+
e[3] !== n ? (c = () => n(), e[3] = n, e[4] = c) : c = e[4];
|
|
183
242
|
let o;
|
|
184
|
-
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */
|
|
243
|
+
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */ pt("group", { onClick: c, ...s, children: t }), e[5] = t, e[6] = s, e[7] = c, e[8] = o) : o = e[8], o;
|
|
185
244
|
}
|
|
186
|
-
function
|
|
187
|
-
const e =
|
|
188
|
-
prev:
|
|
189
|
-
} =
|
|
245
|
+
function $t(r) {
|
|
246
|
+
const e = At.c(9), {
|
|
247
|
+
prev: n
|
|
248
|
+
} = jt();
|
|
190
249
|
let t, s;
|
|
191
|
-
e[0] !==
|
|
250
|
+
e[0] !== r ? ({
|
|
192
251
|
children: t,
|
|
193
252
|
...s
|
|
194
|
-
} =
|
|
253
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
195
254
|
let c;
|
|
196
|
-
e[3] !==
|
|
255
|
+
e[3] !== n ? (c = () => n(), e[3] = n, e[4] = c) : c = e[4];
|
|
197
256
|
let o;
|
|
198
|
-
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */
|
|
257
|
+
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */ pt("group", { onClick: c, ...s, children: t }), e[5] = t, e[6] = s, e[7] = c, e[8] = o) : o = e[8], o;
|
|
199
258
|
}
|
|
200
|
-
const
|
|
201
|
-
const t =
|
|
259
|
+
const be = Object.assign(Kt(function(e, n) {
|
|
260
|
+
const t = At.c(76), {
|
|
202
261
|
children: s,
|
|
203
262
|
radius: c,
|
|
204
263
|
axis: o,
|
|
205
|
-
index:
|
|
206
|
-
defaultIndex:
|
|
207
|
-
onIndexChange:
|
|
208
|
-
dragEnabled:
|
|
209
|
-
dragSensitivity:
|
|
210
|
-
dragAxis:
|
|
211
|
-
dragConfig:
|
|
212
|
-
} = e,
|
|
213
|
-
let
|
|
214
|
-
t[0] !==
|
|
215
|
-
g.current =
|
|
216
|
-
},
|
|
217
|
-
let
|
|
218
|
-
t[3] !== s ? (
|
|
219
|
-
const
|
|
220
|
-
let
|
|
221
|
-
t[5] !==
|
|
222
|
-
const b =
|
|
223
|
-
let
|
|
224
|
-
t[7] !==
|
|
225
|
-
const
|
|
226
|
-
let
|
|
227
|
-
t[9] !==
|
|
228
|
-
const
|
|
229
|
-
let
|
|
230
|
-
return
|
|
231
|
-
}, t[9] =
|
|
232
|
-
const
|
|
233
|
-
let
|
|
234
|
-
t[11] !==
|
|
235
|
-
const
|
|
236
|
-
return
|
|
237
|
-
}, t[11] =
|
|
238
|
-
const
|
|
239
|
-
let
|
|
240
|
-
t[13] !==
|
|
241
|
-
g.current =
|
|
242
|
-
}, t[13] =
|
|
243
|
-
const
|
|
244
|
-
let
|
|
245
|
-
t[16] !==
|
|
246
|
-
count:
|
|
247
|
-
dragEnabled:
|
|
248
|
-
dragAxis:
|
|
264
|
+
index: x,
|
|
265
|
+
defaultIndex: y,
|
|
266
|
+
onIndexChange: f,
|
|
267
|
+
dragEnabled: G,
|
|
268
|
+
dragSensitivity: V,
|
|
269
|
+
dragAxis: $,
|
|
270
|
+
dragConfig: C
|
|
271
|
+
} = e, D = c === void 0 ? ue : c, R = o === void 0 ? fe : o, I = y === void 0 ? 0 : y, lt = G === void 0 ? !0 : G, U = $ === void 0 ? "x" : $, [T, vt] = Lt(I), v = x !== void 0, d = v ? x : T, g = ct(d);
|
|
272
|
+
let E, k;
|
|
273
|
+
t[0] !== d ? (E = () => {
|
|
274
|
+
g.current = d;
|
|
275
|
+
}, k = [d], t[0] = d, t[1] = E, t[2] = k) : (E = t[1], k = t[2]), St(E, k);
|
|
276
|
+
let H;
|
|
277
|
+
t[3] !== s ? (H = Wt.toArray(s), t[3] = s, t[4] = H) : H = t[4];
|
|
278
|
+
const P = H, z = P.filter(xe);
|
|
279
|
+
let M;
|
|
280
|
+
t[5] !== P ? (M = P.filter(Re), t[5] = P, t[6] = M) : M = t[6];
|
|
281
|
+
const b = M, i = z.length, l = ct(null), q = i > 0 ? K / i : K, m = V ?? de / q;
|
|
282
|
+
let at;
|
|
283
|
+
t[7] !== i ? (at = (u) => (Math.round(-u / K * i) % i + i) % i, t[7] = i, t[8] = at) : at = t[8];
|
|
284
|
+
const ht = at;
|
|
285
|
+
let W;
|
|
286
|
+
t[9] !== i ? (W = (u, p, a) => {
|
|
287
|
+
const h = (p - 1 + i) % i, Y = (p + 1) % i;
|
|
288
|
+
let Et = (Math.round(-u / K * i) % i + i) % i;
|
|
289
|
+
return Et !== h && Et !== p && Et !== Y && (Et = a > 0 ? Y : a < 0 ? h : p), Et;
|
|
290
|
+
}, t[9] = i, t[10] = W) : W = t[10];
|
|
291
|
+
const xt = W;
|
|
292
|
+
let X;
|
|
293
|
+
t[11] !== i ? (X = (u, p) => {
|
|
294
|
+
const a = -(u / i) * K;
|
|
295
|
+
return bt(p, a);
|
|
296
|
+
}, t[11] = i, t[12] = X) : X = t[12];
|
|
297
|
+
const Rt = X;
|
|
298
|
+
let B;
|
|
299
|
+
t[13] !== v || t[14] !== f ? (B = (u) => {
|
|
300
|
+
g.current = u, v || vt(u), f == null || f(u);
|
|
301
|
+
}, t[13] = v, t[14] = f, t[15] = B) : B = t[15];
|
|
302
|
+
const It = B;
|
|
303
|
+
let J;
|
|
304
|
+
t[16] !== q || t[17] !== ht || t[18] !== xt || t[19] !== Rt || t[20] !== i || t[21] !== U || t[22] !== C || t[23] !== lt || t[24] !== m || t[25] !== It ? (J = {
|
|
305
|
+
count: i,
|
|
306
|
+
dragEnabled: lt,
|
|
307
|
+
dragAxis: U,
|
|
249
308
|
dragSensitivity: m,
|
|
250
|
-
maxDragAmount:
|
|
251
|
-
dragConfig:
|
|
252
|
-
springConfig:
|
|
253
|
-
dragSpringConfig:
|
|
254
|
-
calculateIndexFromOffset:
|
|
255
|
-
calculateTargetIndex:
|
|
256
|
-
calculateTargetOffset:
|
|
257
|
-
onNavigate:
|
|
258
|
-
}, t[16] =
|
|
309
|
+
maxDragAmount: q,
|
|
310
|
+
dragConfig: C,
|
|
311
|
+
springConfig: Mt,
|
|
312
|
+
dragSpringConfig: ge,
|
|
313
|
+
calculateIndexFromOffset: ht,
|
|
314
|
+
calculateTargetIndex: xt,
|
|
315
|
+
calculateTargetOffset: Rt,
|
|
316
|
+
onNavigate: It
|
|
317
|
+
}, t[16] = q, t[17] = ht, t[18] = xt, t[19] = Rt, t[20] = i, t[21] = U, t[22] = C, t[23] = lt, t[24] = m, t[25] = It, t[26] = J) : J = t[26];
|
|
259
318
|
const {
|
|
260
|
-
offset:
|
|
261
|
-
springApi:
|
|
262
|
-
isDraggingRef:
|
|
263
|
-
currentOffsetRef:
|
|
264
|
-
} = Jt(
|
|
265
|
-
let
|
|
266
|
-
t[27] !==
|
|
267
|
-
const p =
|
|
319
|
+
offset: _t,
|
|
320
|
+
springApi: F,
|
|
321
|
+
isDraggingRef: ut,
|
|
322
|
+
currentOffsetRef: _
|
|
323
|
+
} = Jt(J);
|
|
324
|
+
let Q;
|
|
325
|
+
t[27] !== i || t[28] !== _ || t[29] !== v || t[30] !== f || t[31] !== F ? (Q = (u) => {
|
|
326
|
+
const p = Nt(u, 0, i - 1);
|
|
268
327
|
if (p === g.current)
|
|
269
328
|
return;
|
|
270
|
-
g.current = p,
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
offset:
|
|
274
|
-
config:
|
|
329
|
+
g.current = p, v || vt(p), f == null || f(p);
|
|
330
|
+
const a = -(p / i) * K, h = bt(_.current, a);
|
|
331
|
+
F.start({
|
|
332
|
+
offset: h,
|
|
333
|
+
config: Mt
|
|
275
334
|
});
|
|
276
|
-
}, t[27] =
|
|
277
|
-
const O =
|
|
278
|
-
let
|
|
279
|
-
t[33] !==
|
|
280
|
-
|
|
281
|
-
}, t[33] =
|
|
282
|
-
const
|
|
283
|
-
let
|
|
284
|
-
t[36] !==
|
|
285
|
-
|
|
286
|
-
}, t[36] =
|
|
287
|
-
const
|
|
288
|
-
let
|
|
289
|
-
t[39] !== O ? (
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
t[41] !==
|
|
293
|
-
next:
|
|
294
|
-
prev:
|
|
295
|
-
goTo:
|
|
296
|
-
}),
|
|
297
|
-
let
|
|
298
|
-
t[46] !==
|
|
299
|
-
if (!
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
offset:
|
|
303
|
-
config:
|
|
335
|
+
}, t[27] = i, t[28] = _, t[29] = v, t[30] = f, t[31] = F, t[32] = Q) : Q = t[32];
|
|
336
|
+
const O = Q;
|
|
337
|
+
let Z;
|
|
338
|
+
t[33] !== i || t[34] !== O ? (Z = () => {
|
|
339
|
+
i !== 0 && O((g.current + 1) % i);
|
|
340
|
+
}, t[33] = i, t[34] = O, t[35] = Z) : Z = t[35];
|
|
341
|
+
const A = Z;
|
|
342
|
+
let j;
|
|
343
|
+
t[36] !== i || t[37] !== O ? (j = () => {
|
|
344
|
+
i !== 0 && O((g.current - 1 + i) % i);
|
|
345
|
+
}, t[36] = i, t[37] = O, t[38] = j) : j = t[38];
|
|
346
|
+
const N = j;
|
|
347
|
+
let tt;
|
|
348
|
+
t[39] !== O ? (tt = (u) => O(u), t[39] = O, t[40] = tt) : tt = t[40];
|
|
349
|
+
const S = tt;
|
|
350
|
+
let et, L;
|
|
351
|
+
t[41] !== S || t[42] !== A || t[43] !== N ? (et = () => ({
|
|
352
|
+
next: A,
|
|
353
|
+
prev: N,
|
|
354
|
+
goTo: S
|
|
355
|
+
}), L = [A, N, S], t[41] = S, t[42] = A, t[43] = N, t[44] = et, t[45] = L) : (et = t[44], L = t[45]), Xt(n, et, L);
|
|
356
|
+
let nt, rt;
|
|
357
|
+
t[46] !== d || t[47] !== i || t[48] !== _ || t[49] !== ut || t[50] !== F ? (nt = () => {
|
|
358
|
+
if (!ut.current && i > 0) {
|
|
359
|
+
const u = -(d / i) * K, p = _.current, h = p === 0 && d !== 0 ? u : bt(p, u);
|
|
360
|
+
F.start({
|
|
361
|
+
offset: h,
|
|
362
|
+
config: Mt
|
|
304
363
|
});
|
|
305
364
|
}
|
|
306
|
-
},
|
|
307
|
-
let
|
|
308
|
-
t[53] !==
|
|
309
|
-
if (!
|
|
365
|
+
}, rt = [d, i, F, ut, _], t[46] = d, t[47] = i, t[48] = _, t[49] = ut, t[50] = F, t[51] = nt, t[52] = rt) : (nt = t[51], rt = t[52]), St(nt, rt);
|
|
366
|
+
let ot;
|
|
367
|
+
t[53] !== R || t[54] !== _ || t[55] !== _t ? (ot = () => {
|
|
368
|
+
if (!l.current)
|
|
310
369
|
return;
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
}, t[53] =
|
|
314
|
-
let
|
|
315
|
-
t[57] !==
|
|
316
|
-
const
|
|
317
|
-
let
|
|
318
|
-
t[61] !==
|
|
319
|
-
activeIndex:
|
|
320
|
-
count:
|
|
321
|
-
next:
|
|
322
|
-
prev:
|
|
323
|
-
goTo:
|
|
324
|
-
}, t[61] =
|
|
325
|
-
const
|
|
326
|
-
let
|
|
327
|
-
t[67] !==
|
|
370
|
+
const u = _t.get();
|
|
371
|
+
_.current = u, l.current.rotation[R] = u;
|
|
372
|
+
}, t[53] = R, t[54] = _, t[55] = _t, t[56] = ot) : ot = t[56], Bt(ot);
|
|
373
|
+
let st;
|
|
374
|
+
t[57] !== R || t[58] !== i || t[59] !== D ? (st = (u) => me(u, i, D, R), t[57] = R, t[58] = i, t[59] = D, t[60] = st) : st = t[60];
|
|
375
|
+
const ft = st;
|
|
376
|
+
let it;
|
|
377
|
+
t[61] !== d || t[62] !== i || t[63] !== S || t[64] !== A || t[65] !== N ? (it = {
|
|
378
|
+
activeIndex: d,
|
|
379
|
+
count: i,
|
|
380
|
+
next: A,
|
|
381
|
+
prev: N,
|
|
382
|
+
goTo: S
|
|
383
|
+
}, t[61] = d, t[62] = i, t[63] = S, t[64] = A, t[65] = N, t[66] = it) : it = t[66];
|
|
384
|
+
const Ct = it, dt = Gt;
|
|
385
|
+
let gt;
|
|
386
|
+
t[67] !== ft ? (gt = (u, p) => {
|
|
328
387
|
const {
|
|
329
|
-
position:
|
|
330
|
-
rotation:
|
|
331
|
-
} =
|
|
332
|
-
return /* @__PURE__ */
|
|
333
|
-
}, t[67] =
|
|
334
|
-
const
|
|
335
|
-
let
|
|
336
|
-
t[69] !==
|
|
337
|
-
let
|
|
338
|
-
return t[71] !==
|
|
339
|
-
|
|
388
|
+
position: a,
|
|
389
|
+
rotation: h
|
|
390
|
+
} = ft(p);
|
|
391
|
+
return /* @__PURE__ */ pt("group", { position: a, rotation: h, children: u }, u.key ?? p);
|
|
392
|
+
}, t[67] = ft, t[68] = gt) : gt = t[68];
|
|
393
|
+
const Tt = z.map(gt);
|
|
394
|
+
let w;
|
|
395
|
+
t[69] !== Tt ? (w = /* @__PURE__ */ pt("group", { ref: l, children: Tt }), t[69] = Tt, t[70] = w) : w = t[70];
|
|
396
|
+
let mt;
|
|
397
|
+
return t[71] !== Ct || t[72] !== dt.Provider || t[73] !== w || t[74] !== b ? (mt = /* @__PURE__ */ Yt(dt.Provider, { value: Ct, children: [
|
|
398
|
+
w,
|
|
340
399
|
b
|
|
341
|
-
] }), t[71] =
|
|
400
|
+
] }), t[71] = Ct, t[72] = dt.Provider, t[73] = w, t[74] = b, t[75] = mt) : mt = t[75], mt;
|
|
342
401
|
}), {
|
|
343
|
-
NextTrigger:
|
|
344
|
-
PrevTrigger:
|
|
402
|
+
NextTrigger: Vt,
|
|
403
|
+
PrevTrigger: $t
|
|
345
404
|
});
|
|
346
|
-
function
|
|
347
|
-
return
|
|
405
|
+
function xe(r) {
|
|
406
|
+
return Pt(r) && r.type !== Vt && r.type !== $t;
|
|
348
407
|
}
|
|
349
|
-
function
|
|
350
|
-
return
|
|
408
|
+
function Re(r) {
|
|
409
|
+
return Pt(r) && (r.type === Vt || r.type === $t);
|
|
351
410
|
}
|
|
352
|
-
const
|
|
411
|
+
const Ie = 0.5, _e = "horizontal", Ce = 150, Ft = {
|
|
353
412
|
tension: 200,
|
|
354
413
|
friction: 25
|
|
355
|
-
},
|
|
414
|
+
}, Te = {
|
|
356
415
|
tension: 400,
|
|
357
416
|
friction: 50
|
|
358
417
|
};
|
|
359
|
-
function
|
|
360
|
-
const t =
|
|
361
|
-
return
|
|
418
|
+
function Ae(r, e, n) {
|
|
419
|
+
const t = r * (1 + e);
|
|
420
|
+
return n === "horizontal" ? [t, 0, 0] : [0, t, 0];
|
|
362
421
|
}
|
|
363
|
-
function
|
|
364
|
-
return
|
|
422
|
+
function te() {
|
|
423
|
+
return Qt("LinearCarousel");
|
|
365
424
|
}
|
|
366
|
-
function
|
|
367
|
-
const e =
|
|
368
|
-
next:
|
|
369
|
-
} =
|
|
425
|
+
function Ut(r) {
|
|
426
|
+
const e = At.c(9), {
|
|
427
|
+
next: n
|
|
428
|
+
} = te();
|
|
370
429
|
let t, s;
|
|
371
|
-
e[0] !==
|
|
430
|
+
e[0] !== r ? ({
|
|
372
431
|
children: t,
|
|
373
432
|
...s
|
|
374
|
-
} =
|
|
433
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
375
434
|
let c;
|
|
376
|
-
e[3] !==
|
|
435
|
+
e[3] !== n ? (c = () => n(), e[3] = n, e[4] = c) : c = e[4];
|
|
377
436
|
let o;
|
|
378
|
-
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */
|
|
437
|
+
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */ pt("group", { onClick: c, ...s, children: t }), e[5] = t, e[6] = s, e[7] = c, e[8] = o) : o = e[8], o;
|
|
379
438
|
}
|
|
380
|
-
function kt(
|
|
381
|
-
const e =
|
|
382
|
-
prev:
|
|
383
|
-
} =
|
|
439
|
+
function kt(r) {
|
|
440
|
+
const e = At.c(9), {
|
|
441
|
+
prev: n
|
|
442
|
+
} = te();
|
|
384
443
|
let t, s;
|
|
385
|
-
e[0] !==
|
|
444
|
+
e[0] !== r ? ({
|
|
386
445
|
children: t,
|
|
387
446
|
...s
|
|
388
|
-
} =
|
|
447
|
+
} = r, e[0] = r, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
389
448
|
let c;
|
|
390
|
-
e[3] !==
|
|
449
|
+
e[3] !== n ? (c = () => n(), e[3] = n, e[4] = c) : c = e[4];
|
|
391
450
|
let o;
|
|
392
|
-
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */
|
|
451
|
+
return e[5] !== t || e[6] !== s || e[7] !== c ? (o = /* @__PURE__ */ pt("group", { onClick: c, ...s, children: t }), e[5] = t, e[6] = s, e[7] = c, e[8] = o) : o = e[8], o;
|
|
393
452
|
}
|
|
394
|
-
const
|
|
395
|
-
const t =
|
|
453
|
+
const Fe = Object.assign(Kt(function(e, n) {
|
|
454
|
+
const t = At.c(80), {
|
|
396
455
|
children: s,
|
|
397
456
|
gap: c,
|
|
398
457
|
direction: o,
|
|
399
|
-
index:
|
|
400
|
-
defaultIndex:
|
|
401
|
-
onIndexChange:
|
|
402
|
-
dragEnabled:
|
|
403
|
-
dragSensitivity:
|
|
404
|
-
dragAxis:
|
|
405
|
-
dragConfig:
|
|
406
|
-
infinite:
|
|
407
|
-
} = e,
|
|
408
|
-
let
|
|
409
|
-
t[0] !== g ? (
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
let S;
|
|
413
|
-
t[3] !== s ? (S = Wt.toArray(s), t[3] = s, t[4] = S) : S = t[4];
|
|
414
|
-
const q = S, y = q.filter(Ie);
|
|
415
|
-
let b;
|
|
416
|
-
t[5] !== q ? (b = q.filter(Ce), t[5] = q, t[6] = b) : b = t[6];
|
|
417
|
-
const r = b, i = y.length, G = nt(null), m = 1 + T, it = At ?? ve, pt = Tt ?? (N === "horizontal" ? "x" : "y");
|
|
418
|
-
let Y;
|
|
419
|
-
t[7] !== m ? (Y = (l) => Math.round(-l / m), t[7] = m, t[8] = Y) : Y = t[8];
|
|
420
|
-
const ht = Y;
|
|
421
|
-
let V;
|
|
422
|
-
t[9] !== i || t[10] !== R || t[11] !== m ? (V = (l, v) => {
|
|
423
|
-
let $ = Math.round(-l / m);
|
|
424
|
-
return $ = Et($, v - 1, v + 1), R ? ($ % i + i) % i : Et($, 0, i - 1);
|
|
425
|
-
}, t[9] = i, t[10] = R, t[11] = m, t[12] = V) : V = t[12];
|
|
426
|
-
const vt = V;
|
|
427
|
-
let j;
|
|
428
|
-
t[13] !== m ? (j = (l) => -l * m, t[13] = m, t[14] = j) : j = t[14];
|
|
429
|
-
const xt = j;
|
|
430
|
-
let z;
|
|
431
|
-
t[15] !== f || t[16] !== d ? (z = (l) => {
|
|
432
|
-
C.current = l, f || h(l), d == null || d(l);
|
|
433
|
-
}, t[15] = f, t[16] = d, t[17] = z) : z = t[17];
|
|
434
|
-
const Rt = z;
|
|
458
|
+
index: x,
|
|
459
|
+
defaultIndex: y,
|
|
460
|
+
onIndexChange: f,
|
|
461
|
+
dragEnabled: G,
|
|
462
|
+
dragSensitivity: V,
|
|
463
|
+
dragAxis: $,
|
|
464
|
+
dragConfig: C,
|
|
465
|
+
infinite: D
|
|
466
|
+
} = e, R = c === void 0 ? Ie : c, I = o === void 0 ? _e : o, lt = y === void 0 ? 0 : y, U = G === void 0 ? !0 : G, T = D === void 0 ? !1 : D, [vt, v] = Lt(lt), d = x !== void 0, g = d ? x : vt, E = ct(g);
|
|
467
|
+
let k, H;
|
|
468
|
+
t[0] !== g ? (k = () => {
|
|
469
|
+
E.current = g;
|
|
470
|
+
}, H = [g], t[0] = g, t[1] = k, t[2] = H) : (k = t[1], H = t[2]), St(k, H);
|
|
435
471
|
let P;
|
|
436
|
-
t[
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
472
|
+
t[3] !== s ? (P = Wt.toArray(s), t[3] = s, t[4] = P) : P = t[4];
|
|
473
|
+
const z = P, M = z.filter(Ee);
|
|
474
|
+
let b;
|
|
475
|
+
t[5] !== z ? (b = z.filter(Ne), t[5] = z, t[6] = b) : b = t[6];
|
|
476
|
+
const i = b, l = M.length, q = ct(null), m = 1 + R, at = V ?? Ce, ht = $ ?? (I === "horizontal" ? "x" : "y");
|
|
477
|
+
let W;
|
|
478
|
+
t[7] !== m ? (W = (a) => Math.round(-a / m), t[7] = m, t[8] = W) : W = t[8];
|
|
479
|
+
const xt = W;
|
|
480
|
+
let X;
|
|
481
|
+
t[9] !== l || t[10] !== T || t[11] !== m ? (X = (a, h) => {
|
|
482
|
+
let Y = Math.round(-a / m);
|
|
483
|
+
return Y = Nt(Y, h - 1, h + 1), T ? (Y % l + l) % l : Nt(Y, 0, l - 1);
|
|
484
|
+
}, t[9] = l, t[10] = T, t[11] = m, t[12] = X) : X = t[12];
|
|
485
|
+
const Rt = X;
|
|
486
|
+
let B;
|
|
487
|
+
t[13] !== m ? (B = (a) => -a * m, t[13] = m, t[14] = B) : B = t[14];
|
|
488
|
+
const It = B;
|
|
489
|
+
let J;
|
|
490
|
+
t[15] !== d || t[16] !== f ? (J = (a) => {
|
|
491
|
+
E.current = a, d || v(a), f == null || f(a);
|
|
492
|
+
}, t[15] = d, t[16] = f, t[17] = J) : J = t[17];
|
|
493
|
+
const _t = J;
|
|
494
|
+
let F;
|
|
495
|
+
t[18] !== xt || t[19] !== Rt || t[20] !== It || t[21] !== l || t[22] !== ht || t[23] !== C || t[24] !== U || t[25] !== at || t[26] !== _t || t[27] !== m ? (F = {
|
|
496
|
+
count: l,
|
|
497
|
+
dragEnabled: U,
|
|
498
|
+
dragAxis: ht,
|
|
499
|
+
dragSensitivity: at,
|
|
441
500
|
maxDragAmount: m,
|
|
442
|
-
dragConfig:
|
|
443
|
-
springConfig:
|
|
444
|
-
dragSpringConfig:
|
|
445
|
-
calculateIndexFromOffset:
|
|
446
|
-
calculateTargetIndex:
|
|
447
|
-
calculateTargetOffset:
|
|
448
|
-
onNavigate:
|
|
449
|
-
}, t[18] =
|
|
501
|
+
dragConfig: C,
|
|
502
|
+
springConfig: Ft,
|
|
503
|
+
dragSpringConfig: Te,
|
|
504
|
+
calculateIndexFromOffset: xt,
|
|
505
|
+
calculateTargetIndex: Rt,
|
|
506
|
+
calculateTargetOffset: It,
|
|
507
|
+
onNavigate: _t
|
|
508
|
+
}, t[18] = xt, t[19] = Rt, t[20] = It, t[21] = l, t[22] = ht, t[23] = C, t[24] = U, t[25] = at, t[26] = _t, t[27] = m, t[28] = F) : F = t[28];
|
|
450
509
|
const {
|
|
451
|
-
offset:
|
|
452
|
-
springApi:
|
|
453
|
-
isDraggingRef:
|
|
510
|
+
offset: ut,
|
|
511
|
+
springApi: _,
|
|
512
|
+
isDraggingRef: Q,
|
|
454
513
|
currentOffsetRef: O
|
|
455
|
-
} = Jt(
|
|
456
|
-
let
|
|
457
|
-
t[29] !==
|
|
458
|
-
if (
|
|
514
|
+
} = Jt(F);
|
|
515
|
+
let Z;
|
|
516
|
+
t[29] !== l || t[30] !== T || t[31] !== d || t[32] !== m || t[33] !== f || t[34] !== _ ? (Z = (a) => {
|
|
517
|
+
if (l === 0)
|
|
459
518
|
return;
|
|
460
|
-
let
|
|
461
|
-
if (
|
|
519
|
+
let h;
|
|
520
|
+
if (T ? h = (a % l + l) % l : h = Nt(a, 0, l - 1), h === E.current)
|
|
462
521
|
return;
|
|
463
|
-
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
offset:
|
|
467
|
-
config:
|
|
522
|
+
E.current = h, d || v(h), f == null || f(h);
|
|
523
|
+
const Y = -h * m;
|
|
524
|
+
_.start({
|
|
525
|
+
offset: Y,
|
|
526
|
+
config: Ft
|
|
468
527
|
});
|
|
469
|
-
}, t[29] =
|
|
470
|
-
const
|
|
471
|
-
let
|
|
472
|
-
t[36] !==
|
|
473
|
-
if (
|
|
528
|
+
}, t[29] = l, t[30] = T, t[31] = d, t[32] = m, t[33] = f, t[34] = _, t[35] = Z) : Z = t[35];
|
|
529
|
+
const A = Z;
|
|
530
|
+
let j;
|
|
531
|
+
t[36] !== l || t[37] !== A || t[38] !== T ? (j = () => {
|
|
532
|
+
if (l === 0)
|
|
474
533
|
return;
|
|
475
|
-
const
|
|
476
|
-
|
|
477
|
-
}, t[36] =
|
|
478
|
-
const
|
|
479
|
-
let
|
|
480
|
-
t[40] !==
|
|
481
|
-
if (
|
|
534
|
+
const a = T ? (E.current + 1) % l : Math.min(E.current + 1, l - 1);
|
|
535
|
+
A(a);
|
|
536
|
+
}, t[36] = l, t[37] = A, t[38] = T, t[39] = j) : j = t[39];
|
|
537
|
+
const N = j;
|
|
538
|
+
let tt;
|
|
539
|
+
t[40] !== l || t[41] !== A || t[42] !== T ? (tt = () => {
|
|
540
|
+
if (l === 0)
|
|
482
541
|
return;
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
}, t[40] =
|
|
486
|
-
const
|
|
487
|
-
let
|
|
488
|
-
t[44] !==
|
|
489
|
-
const
|
|
490
|
-
let
|
|
491
|
-
t[46] !==
|
|
492
|
-
next:
|
|
493
|
-
prev:
|
|
494
|
-
goTo:
|
|
495
|
-
}),
|
|
496
|
-
let
|
|
497
|
-
t[51] !== g || t[52] !==
|
|
498
|
-
if (!
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
offset:
|
|
502
|
-
config:
|
|
542
|
+
const a = T ? (E.current - 1 + l) % l : Math.max(E.current - 1, 0);
|
|
543
|
+
A(a);
|
|
544
|
+
}, t[40] = l, t[41] = A, t[42] = T, t[43] = tt) : tt = t[43];
|
|
545
|
+
const S = tt;
|
|
546
|
+
let et;
|
|
547
|
+
t[44] !== A ? (et = (a) => A(a), t[44] = A, t[45] = et) : et = t[45];
|
|
548
|
+
const L = et;
|
|
549
|
+
let nt, rt;
|
|
550
|
+
t[46] !== L || t[47] !== N || t[48] !== S ? (nt = () => ({
|
|
551
|
+
next: N,
|
|
552
|
+
prev: S,
|
|
553
|
+
goTo: L
|
|
554
|
+
}), rt = [N, S, L], t[46] = L, t[47] = N, t[48] = S, t[49] = nt, t[50] = rt) : (nt = t[49], rt = t[50]), Xt(n, nt, rt);
|
|
555
|
+
let ot, st;
|
|
556
|
+
t[51] !== g || t[52] !== l || t[53] !== Q || t[54] !== m || t[55] !== _ ? (ot = () => {
|
|
557
|
+
if (!Q.current && l > 0) {
|
|
558
|
+
const a = -g * m;
|
|
559
|
+
_.start({
|
|
560
|
+
offset: a,
|
|
561
|
+
config: Ft
|
|
503
562
|
});
|
|
504
563
|
}
|
|
505
|
-
},
|
|
506
|
-
let
|
|
507
|
-
t[58] !== O || t[59] !==
|
|
508
|
-
if (!
|
|
564
|
+
}, st = [g, l, m, _, Q], t[51] = g, t[52] = l, t[53] = Q, t[54] = m, t[55] = _, t[56] = ot, t[57] = st) : (ot = t[56], st = t[57]), St(ot, st);
|
|
565
|
+
let ft;
|
|
566
|
+
t[58] !== O || t[59] !== I || t[60] !== ut ? (ft = () => {
|
|
567
|
+
if (!q.current)
|
|
509
568
|
return;
|
|
510
|
-
const
|
|
511
|
-
O.current =
|
|
512
|
-
}, t[58] = O, t[59] =
|
|
513
|
-
let
|
|
514
|
-
t[62] !==
|
|
515
|
-
const
|
|
516
|
-
let
|
|
517
|
-
t[65] !== g || t[66] !==
|
|
569
|
+
const a = ut.get();
|
|
570
|
+
O.current = a, I === "horizontal" ? q.current.position.x = a : q.current.position.y = a;
|
|
571
|
+
}, t[58] = O, t[59] = I, t[60] = ut, t[61] = ft) : ft = t[61], Bt(ft);
|
|
572
|
+
let it;
|
|
573
|
+
t[62] !== I || t[63] !== R ? (it = (a) => Ae(a, R, I), t[62] = I, t[63] = R, t[64] = it) : it = t[64];
|
|
574
|
+
const Ct = it;
|
|
575
|
+
let dt;
|
|
576
|
+
t[65] !== g || t[66] !== l || t[67] !== L || t[68] !== N || t[69] !== S ? (dt = {
|
|
518
577
|
activeIndex: g,
|
|
519
|
-
count:
|
|
520
|
-
next:
|
|
521
|
-
prev:
|
|
522
|
-
goTo:
|
|
523
|
-
}, t[65] = g, t[66] =
|
|
524
|
-
const
|
|
525
|
-
let
|
|
526
|
-
t[71] !==
|
|
527
|
-
const
|
|
528
|
-
return /* @__PURE__ */
|
|
529
|
-
}, t[71] =
|
|
530
|
-
const
|
|
531
|
-
let
|
|
532
|
-
t[73] !==
|
|
578
|
+
count: l,
|
|
579
|
+
next: N,
|
|
580
|
+
prev: S,
|
|
581
|
+
goTo: L
|
|
582
|
+
}, t[65] = g, t[66] = l, t[67] = L, t[68] = N, t[69] = S, t[70] = dt) : dt = t[70];
|
|
583
|
+
const gt = dt, Tt = Gt;
|
|
584
|
+
let w;
|
|
585
|
+
t[71] !== Ct ? (w = (a, h) => {
|
|
586
|
+
const Y = Ct(h);
|
|
587
|
+
return /* @__PURE__ */ pt("group", { position: [...Y], children: a }, a.key ?? h);
|
|
588
|
+
}, t[71] = Ct, t[72] = w) : w = t[72];
|
|
589
|
+
const mt = M.map(w);
|
|
590
|
+
let u;
|
|
591
|
+
t[73] !== mt ? (u = /* @__PURE__ */ pt("group", { ref: q, children: mt }), t[73] = mt, t[74] = u) : u = t[74];
|
|
533
592
|
let p;
|
|
534
|
-
return t[75] !==
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
] }), t[75] =
|
|
593
|
+
return t[75] !== gt || t[76] !== Tt.Provider || t[77] !== u || t[78] !== i ? (p = /* @__PURE__ */ Yt(Tt.Provider, { value: gt, children: [
|
|
594
|
+
u,
|
|
595
|
+
i
|
|
596
|
+
] }), t[75] = gt, t[76] = Tt.Provider, t[77] = u, t[78] = i, t[79] = p) : p = t[79], p;
|
|
538
597
|
}), {
|
|
539
|
-
NextTrigger:
|
|
598
|
+
NextTrigger: Ut,
|
|
540
599
|
PrevTrigger: kt
|
|
541
600
|
});
|
|
542
|
-
function
|
|
543
|
-
return
|
|
601
|
+
function Ee(r) {
|
|
602
|
+
return Pt(r) && r.type !== Ut && r.type !== kt;
|
|
544
603
|
}
|
|
545
|
-
function
|
|
546
|
-
return
|
|
604
|
+
function Ne(r) {
|
|
605
|
+
return Pt(r) && (r.type === Ut || r.type === kt);
|
|
547
606
|
}
|
|
548
607
|
export {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
608
|
+
be as CircularCarousel,
|
|
609
|
+
Vt as CircularCarouselNextTrigger,
|
|
610
|
+
$t as CircularCarouselPrevTrigger,
|
|
611
|
+
Fe as LinearCarousel,
|
|
612
|
+
Ut as LinearCarouselNextTrigger,
|
|
554
613
|
kt as LinearCarouselPrevTrigger,
|
|
555
|
-
|
|
556
|
-
|
|
614
|
+
jt as useCarouselContext,
|
|
615
|
+
Me as useGLTFMaterialVariants,
|
|
616
|
+
te as useLinearCarouselContext
|
|
557
617
|
};
|