@moises.ai/design-system 4.18.11 → 4.18.12
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.js
CHANGED
|
@@ -36,12 +36,12 @@ var gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
|
|
|
36
36
|
defaultProp: o ?? !1,
|
|
37
37
|
onChange: i,
|
|
38
38
|
caller: _t
|
|
39
|
-
}), [
|
|
39
|
+
}), [O, T] = vr({
|
|
40
40
|
prop: l,
|
|
41
41
|
defaultProp: c,
|
|
42
42
|
onChange: d,
|
|
43
43
|
caller: _t
|
|
44
|
-
}), Q = A.useRef(null), D = k ? m || !!k.closest("form") : !0, [z, U] = A.useState(/* @__PURE__ */ new Set()),
|
|
44
|
+
}), Q = A.useRef(null), D = k ? m || !!k.closest("form") : !0, [z, U] = A.useState(/* @__PURE__ */ new Set()), P = Array.from(z).map((V) => V.props.value).join(";");
|
|
45
45
|
return /* @__PURE__ */ a(oc, { ...f, children: /* @__PURE__ */ v(
|
|
46
46
|
Cu,
|
|
47
47
|
{
|
|
@@ -54,7 +54,7 @@ var gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
|
|
|
54
54
|
valueNodeHasChildren: R,
|
|
55
55
|
onValueNodeHasChildrenChange: E,
|
|
56
56
|
contentId: Ls(),
|
|
57
|
-
value:
|
|
57
|
+
value: O,
|
|
58
58
|
onValueChange: T,
|
|
59
59
|
open: B,
|
|
60
60
|
onOpenChange: x,
|
|
@@ -86,16 +86,16 @@ var gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
|
|
|
86
86
|
tabIndex: -1,
|
|
87
87
|
name: p,
|
|
88
88
|
autoComplete: h,
|
|
89
|
-
value:
|
|
89
|
+
value: O,
|
|
90
90
|
onChange: (V) => T(V.target.value),
|
|
91
91
|
disabled: g,
|
|
92
92
|
form: m,
|
|
93
93
|
children: [
|
|
94
|
-
|
|
94
|
+
O === void 0 ? /* @__PURE__ */ a("option", { value: "" }) : null,
|
|
95
95
|
Array.from(z)
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
P
|
|
99
99
|
) : null
|
|
100
100
|
]
|
|
101
101
|
}
|
|
@@ -210,9 +210,9 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
210
210
|
avoidCollisions: k,
|
|
211
211
|
//
|
|
212
212
|
...y
|
|
213
|
-
} = n, N = Mt($t, r), [I, R] = A.useState(null), [E, w] = A.useState(null), B = Pe(t, (M) => R(M)), [x,
|
|
213
|
+
} = n, N = Mt($t, r), [I, R] = A.useState(null), [E, w] = A.useState(null), B = Pe(t, (M) => R(M)), [x, O] = A.useState(null), [T, Q] = A.useState(
|
|
214
214
|
null
|
|
215
|
-
), D = Qr(r), [z, U] = A.useState(!1),
|
|
215
|
+
), D = Qr(r), [z, U] = A.useState(!1), P = A.useRef(!1);
|
|
216
216
|
A.useEffect(() => {
|
|
217
217
|
if (I) return uc(I);
|
|
218
218
|
}, [I]), hc();
|
|
@@ -258,13 +258,13 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
258
258
|
ce && setTimeout(() => ce.ref.current.focus());
|
|
259
259
|
}), de = A.useCallback(
|
|
260
260
|
(M, L, ie) => {
|
|
261
|
-
const ce = !
|
|
262
|
-
(N.value !== void 0 && N.value === L || ce) && (
|
|
261
|
+
const ce = !P.current && !ie;
|
|
262
|
+
(N.value !== void 0 && N.value === L || ce) && (O(M), ce && (P.current = !0));
|
|
263
263
|
},
|
|
264
264
|
[N.value]
|
|
265
265
|
), ge = A.useCallback(() => I == null ? void 0 : I.focus(), [I]), K = A.useCallback(
|
|
266
266
|
(M, L, ie) => {
|
|
267
|
-
const ce = !
|
|
267
|
+
const ce = !P.current && !ie;
|
|
268
268
|
(N.value !== void 0 && N.value === L || ce) && Q(M);
|
|
269
269
|
},
|
|
270
270
|
[N.value]
|
|
@@ -362,9 +362,9 @@ ni.displayName = Iu;
|
|
|
362
362
|
var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
|
|
363
363
|
const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Mt($t, r), l = Ut($t, r), [c, d] = A.useState(null), [u, p] = A.useState(null), h = Pe(t, (B) => p(B)), g = Qr(r), C = A.useRef(!1), m = A.useRef(!0), { viewport: f, selectedItem: k, selectedItemText: y, focusSelectedItem: N } = l, I = A.useCallback(() => {
|
|
364
364
|
if (i.trigger && i.valueNode && c && u && f && k && y) {
|
|
365
|
-
const B = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(),
|
|
365
|
+
const B = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), O = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
|
|
366
366
|
if (i.dir !== "rtl") {
|
|
367
|
-
const oe = T.left - x.left, ee =
|
|
367
|
+
const oe = T.left - x.left, ee = O.left - oe, Ie = B.left - ee, Se = B.width + Ie, Ve = Math.max(Se, x.width), me = window.innerWidth - nt, ze = yr(ee, [
|
|
368
368
|
nt,
|
|
369
369
|
// Prevents the content from going off the starting edge of the
|
|
370
370
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -375,13 +375,13 @@ var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
|
|
|
375
375
|
]);
|
|
376
376
|
c.style.minWidth = Se + "px", c.style.left = ze + "px";
|
|
377
377
|
} else {
|
|
378
|
-
const oe = x.right - T.right, ee = window.innerWidth -
|
|
378
|
+
const oe = x.right - T.right, ee = window.innerWidth - O.right - oe, Ie = window.innerWidth - B.right - ee, Se = B.width + Ie, Ve = Math.max(Se, x.width), me = window.innerWidth - nt, ze = yr(ee, [
|
|
379
379
|
nt,
|
|
380
380
|
Math.max(nt, me - Ve)
|
|
381
381
|
]);
|
|
382
382
|
c.style.minWidth = Se + "px", c.style.right = ze + "px";
|
|
383
383
|
}
|
|
384
|
-
const Q = g(), D = window.innerHeight - nt * 2, z = f.scrollHeight, U = window.getComputedStyle(u),
|
|
384
|
+
const Q = g(), D = window.innerHeight - nt * 2, z = f.scrollHeight, U = window.getComputedStyle(u), P = parseInt(U.borderTopWidth, 10), V = parseInt(U.paddingTop, 10), $ = parseInt(U.borderBottomWidth, 10), G = parseInt(U.paddingBottom, 10), W = P + V + z + G + $, q = Math.min(k.offsetHeight * 5, W), he = window.getComputedStyle(f), de = parseInt(he.paddingTop, 10), ge = parseInt(he.paddingBottom, 10), K = B.top + B.height / 2 - nt, X = D - K, F = k.offsetHeight / 2, M = k.offsetTop + F, L = P + V + M, ie = W - L;
|
|
385
385
|
if (L <= K) {
|
|
386
386
|
const oe = Q.length > 0 && k === Q[Q.length - 1].ref.current;
|
|
387
387
|
c.style.bottom = "0px";
|
|
@@ -396,7 +396,7 @@ var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
|
|
|
396
396
|
c.style.top = "0px";
|
|
397
397
|
const Ie = Math.max(
|
|
398
398
|
K,
|
|
399
|
-
|
|
399
|
+
P + f.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
400
400
|
(oe ? de : 0) + F
|
|
401
401
|
) + ie;
|
|
402
402
|
c.style.height = Ie + "px", f.scrollTop = L - K + f.offsetTop;
|
|
@@ -857,12 +857,12 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
|
|
|
857
857
|
function x(Q) {
|
|
858
858
|
T(Q, y.current);
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function O() {
|
|
861
861
|
const Q = w.current[y.current];
|
|
862
862
|
R[y.current] !== Q && g(R);
|
|
863
863
|
}
|
|
864
864
|
function T(Q, D, { commit: z } = { commit: !1 }) {
|
|
865
|
-
const U = dh(i),
|
|
865
|
+
const U = dh(i), P = uh(Math.round((Q - s) / i) * i + s, U), V = yr(P, [s, o]);
|
|
866
866
|
E(($ = []) => {
|
|
867
867
|
const G = sh($, V, D);
|
|
868
868
|
if (ch(G, d * i)) {
|
|
@@ -901,12 +901,12 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
|
|
|
901
901
|
inverted: C,
|
|
902
902
|
onSlideStart: c ? void 0 : B,
|
|
903
903
|
onSlideMove: c ? void 0 : x,
|
|
904
|
-
onSlideEnd: c ? void 0 :
|
|
904
|
+
onSlideEnd: c ? void 0 : O,
|
|
905
905
|
onHomeKeyDown: () => !c && T(s, 0, { commit: !0 }),
|
|
906
906
|
onEndKeyDown: () => !c && T(o, R.length - 1, { commit: !0 }),
|
|
907
907
|
onStepKeyDown: ({ event: Q, direction: D }) => {
|
|
908
908
|
if (!c) {
|
|
909
|
-
const
|
|
909
|
+
const P = yi.includes(Q.key) || Q.shiftKey && ki.includes(Q.key) ? 10 : 1, V = y.current, $ = R[V], G = i * P * D;
|
|
910
910
|
T($ + G, V, { commit: !0 });
|
|
911
911
|
}
|
|
912
912
|
}
|
|
@@ -2345,8 +2345,8 @@ const km = "_Callout_1lwt5_1", bm = "_size1_1lwt5_5", Im = "_onlyButton_1lwt5_5"
|
|
|
2345
2345
|
}
|
|
2346
2346
|
if (!N.current || !I.current) return;
|
|
2347
2347
|
const B = () => {
|
|
2348
|
-
const
|
|
2349
|
-
E(
|
|
2348
|
+
const O = N.current.scrollHeight, T = I.current.scrollHeight;
|
|
2349
|
+
E(O <= T ? "center" : "start");
|
|
2350
2350
|
};
|
|
2351
2351
|
B();
|
|
2352
2352
|
const x = new ResizeObserver(B);
|
|
@@ -3091,10 +3091,10 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
3091
3091
|
var z;
|
|
3092
3092
|
const x = String(((z = B.active) == null ? void 0 : z.id) ?? "");
|
|
3093
3093
|
if (!x) return;
|
|
3094
|
-
const
|
|
3095
|
-
if (!
|
|
3096
|
-
const T = t.has(x), Q = T && r.length > 0 ? r : [
|
|
3097
|
-
row:
|
|
3094
|
+
const O = f.get(x);
|
|
3095
|
+
if (!O) return;
|
|
3096
|
+
const T = t.has(x), Q = T && r.length > 0 ? r : [O], D = {
|
|
3097
|
+
row: O,
|
|
3098
3098
|
selectedRows: Q,
|
|
3099
3099
|
isDraggedRowSelected: T
|
|
3100
3100
|
};
|
|
@@ -3112,26 +3112,26 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
3112
3112
|
), R = J(
|
|
3113
3113
|
(B) => {
|
|
3114
3114
|
var Q, D;
|
|
3115
|
-
const x = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""),
|
|
3116
|
-
if (T && (l == null || l(T, B.activatorEvent)), s &&
|
|
3117
|
-
const z = n.findIndex((
|
|
3115
|
+
const x = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""), O = (D = B.over) != null && D.id ? String(B.over.id) : null, T = f.get(x) ?? (g == null ? void 0 : g.row);
|
|
3116
|
+
if (T && (l == null || l(T, B.activatorEvent)), s && O && x) {
|
|
3117
|
+
const z = n.findIndex((P) => P.id === x);
|
|
3118
3118
|
let U = null;
|
|
3119
|
-
if (
|
|
3119
|
+
if (O === Ms)
|
|
3120
3120
|
U = 0;
|
|
3121
|
-
else if (
|
|
3121
|
+
else if (O === Us)
|
|
3122
3122
|
U = n.length;
|
|
3123
|
-
else if (x !==
|
|
3124
|
-
const
|
|
3125
|
-
|
|
3123
|
+
else if (x !== O) {
|
|
3124
|
+
const P = n.findIndex((V) => V.id === O);
|
|
3125
|
+
P >= 0 && (U = P > z ? P + 1 : P);
|
|
3126
3126
|
}
|
|
3127
3127
|
if (z >= 0 && U != null) {
|
|
3128
|
-
const
|
|
3128
|
+
const P = zC({
|
|
3129
3129
|
data: n,
|
|
3130
3130
|
selectedSet: t,
|
|
3131
3131
|
order: z,
|
|
3132
3132
|
moveBefore: U
|
|
3133
3133
|
});
|
|
3134
|
-
|
|
3134
|
+
P && (o == null || o(P));
|
|
3135
3135
|
}
|
|
3136
3136
|
}
|
|
3137
3137
|
k();
|
|
@@ -3300,7 +3300,7 @@ const YC = Te.memo(function({
|
|
|
3300
3300
|
dndScopeId: I
|
|
3301
3301
|
}) {
|
|
3302
3302
|
var X;
|
|
3303
|
-
const R = _(!1), E = _(!1), w = _(!1), B = _(!1), { listeners: x, setNodeRef:
|
|
3303
|
+
const R = _(!1), E = _(!1), w = _(!1), B = _(!1), { listeners: x, setNodeRef: O, transform: T, transition: Q, isDragging: D } = du({
|
|
3304
3304
|
id: r,
|
|
3305
3305
|
disabled: !Va({ row: t, rowDraggable: k, reorderable: y }),
|
|
3306
3306
|
data: {
|
|
@@ -3313,7 +3313,7 @@ const YC = Te.memo(function({
|
|
|
3313
3313
|
}), z = {
|
|
3314
3314
|
...T ? { transform: Au.Transform.toString(T) } : {},
|
|
3315
3315
|
...Q ? { transition: Q } : {}
|
|
3316
|
-
}, U = i ? { ...z, "--row-bg": "var(--aqua-alpha-2)" } : z,
|
|
3316
|
+
}, U = i ? { ...z, "--row-bg": "var(--aqua-alpha-2)" } : z, P = (F) => {
|
|
3317
3317
|
if (E.current) {
|
|
3318
3318
|
E.current = !1;
|
|
3319
3319
|
return;
|
|
@@ -3361,7 +3361,7 @@ const YC = Te.memo(function({
|
|
|
3361
3361
|
return /* @__PURE__ */ v(
|
|
3362
3362
|
Yn,
|
|
3363
3363
|
{
|
|
3364
|
-
ref:
|
|
3364
|
+
ref: O,
|
|
3365
3365
|
"data-row-id": r ?? void 0,
|
|
3366
3366
|
className: b({
|
|
3367
3367
|
[ne.rowSelected]: i,
|
|
@@ -3408,14 +3408,14 @@ const YC = Te.memo(function({
|
|
|
3408
3408
|
),
|
|
3409
3409
|
"data-column-id": F.id,
|
|
3410
3410
|
"data-sorted": d === F.id,
|
|
3411
|
-
onClick: M === 0 ? void 0 :
|
|
3411
|
+
onClick: M === 0 ? void 0 : P,
|
|
3412
3412
|
onPointerUp: M === 0 ? void 0 : V,
|
|
3413
3413
|
children: M === 0 ? /* @__PURE__ */ a(
|
|
3414
3414
|
"button",
|
|
3415
3415
|
{
|
|
3416
3416
|
type: "button",
|
|
3417
3417
|
className: ne.rowActionButton,
|
|
3418
|
-
onClick:
|
|
3418
|
+
onClick: P,
|
|
3419
3419
|
onPointerUp: V,
|
|
3420
3420
|
children: m(t)
|
|
3421
3421
|
}
|
|
@@ -3578,24 +3578,24 @@ const YC = Te.memo(function({
|
|
|
3578
3578
|
...x
|
|
3579
3579
|
}) => {
|
|
3580
3580
|
var Z, Me;
|
|
3581
|
-
const
|
|
3581
|
+
const O = _(null), T = c == null ? void 0 : c.field, Q = (Z = t == null ? void 0 : t[0]) == null ? void 0 : Z.id, D = (Me = t == null ? void 0 : t[1]) == null ? void 0 : Me.id, z = ae(() => {
|
|
3582
3582
|
if (t != null && t.length)
|
|
3583
3583
|
return !T || T === Q ? D : T;
|
|
3584
3584
|
}, [t, T, Q, D]), U = ae(
|
|
3585
3585
|
() => r.map((fe, Ce) => OC(fe, Ce)),
|
|
3586
3586
|
[r]
|
|
3587
|
-
),
|
|
3587
|
+
), P = ae(
|
|
3588
3588
|
() => new Set((s ?? []).map((fe) => String(fe))),
|
|
3589
3589
|
[s]
|
|
3590
3590
|
), V = ae(
|
|
3591
|
-
() => U.filter((fe) => fe.id &&
|
|
3592
|
-
[U,
|
|
3591
|
+
() => U.filter((fe) => fe.id && P.has(fe.id)),
|
|
3592
|
+
[U, P]
|
|
3593
3593
|
), $ = J(
|
|
3594
3594
|
(fe, Ce) => {
|
|
3595
3595
|
const Ee = Xt(fe, Ce);
|
|
3596
|
-
return Ee != null &&
|
|
3596
|
+
return Ee != null && P.has(Ee);
|
|
3597
3597
|
},
|
|
3598
|
-
[
|
|
3598
|
+
[P]
|
|
3599
3599
|
), G = s.length, W = (r == null ? void 0 : r.length) ?? 0, q = G > 0, he = W > 0 && G === W, de = ae(
|
|
3600
3600
|
() => r == null ? void 0 : r.some((fe) => {
|
|
3601
3601
|
var Ce;
|
|
@@ -3610,18 +3610,18 @@ const YC = Te.memo(function({
|
|
|
3610
3610
|
), K = J(
|
|
3611
3611
|
(fe, Ce) => {
|
|
3612
3612
|
if (!p) return;
|
|
3613
|
-
const Ee =
|
|
3613
|
+
const Ee = O.current, $e = Ee != null ? Math.min(Ee, Ce) : Ce, qe = Ee != null ? Math.max(Ee, Ce) : Ce;
|
|
3614
3614
|
for (let Zn = $e; Zn <= qe; Zn++) {
|
|
3615
3615
|
const Ua = Xt(r[Zn], Zn);
|
|
3616
3616
|
Ua != null && p(Ua, !0);
|
|
3617
3617
|
}
|
|
3618
|
-
Ee == null && (
|
|
3618
|
+
Ee == null && (O.current = Ce);
|
|
3619
3619
|
},
|
|
3620
3620
|
[r, p]
|
|
3621
3621
|
), X = J(
|
|
3622
3622
|
(fe, Ce) => {
|
|
3623
3623
|
const Ee = (r == null ? void 0 : r.findIndex(($e, qe) => Xt($e, qe) === String(fe))) ?? -1;
|
|
3624
|
-
Ee >= 0 && (
|
|
3624
|
+
Ee >= 0 && (O.current = Ee), p == null || p(String(fe), Ce);
|
|
3625
3625
|
},
|
|
3626
3626
|
[r, p]
|
|
3627
3627
|
), {
|
|
@@ -3633,7 +3633,7 @@ const YC = Te.memo(function({
|
|
|
3633
3633
|
monitorHandlers: oe
|
|
3634
3634
|
} = KC({
|
|
3635
3635
|
rows: U,
|
|
3636
|
-
selectedSet:
|
|
3636
|
+
selectedSet: P,
|
|
3637
3637
|
selectedRows: V,
|
|
3638
3638
|
reorderable: C,
|
|
3639
3639
|
onReorder: m,
|
|
@@ -4008,7 +4008,7 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
|
|
|
4008
4008
|
p && (D.preventDefault(), D.stopPropagation(), p(D));
|
|
4009
4009
|
}, x = J((D) => {
|
|
4010
4010
|
D.key === "Tab" && D.stopPropagation();
|
|
4011
|
-
}, []),
|
|
4011
|
+
}, []), O = J((D) => {
|
|
4012
4012
|
D.preventDefault();
|
|
4013
4013
|
const z = D.currentTarget.querySelector("[data-tools-dropdown-panel]");
|
|
4014
4014
|
z == null || z.focus({ preventScroll: !0 });
|
|
@@ -4031,7 +4031,7 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
|
|
|
4031
4031
|
style: w,
|
|
4032
4032
|
sideOffset: d,
|
|
4033
4033
|
alignOffset: 0,
|
|
4034
|
-
onOpenAutoFocus:
|
|
4034
|
+
onOpenAutoFocus: O,
|
|
4035
4035
|
onCloseAutoFocus: (D) => {
|
|
4036
4036
|
D.preventDefault();
|
|
4037
4037
|
},
|
|
@@ -4104,8 +4104,8 @@ const vv = "_popoverPortal_j8b3y_1", yv = "_popoverContent_j8b3y_9", kv = "_cont
|
|
|
4104
4104
|
}) => {
|
|
4105
4105
|
const g = h.open !== void 0, [C, m] = j(!1), f = g ? h.open : C, k = J(
|
|
4106
4106
|
(x) => {
|
|
4107
|
-
var
|
|
4108
|
-
g || m(x), (
|
|
4107
|
+
var O;
|
|
4108
|
+
g || m(x), (O = h == null ? void 0 : h.onOpenChange) == null || O.call(h, x);
|
|
4109
4109
|
},
|
|
4110
4110
|
[g, h == null ? void 0 : h.onOpenChange]
|
|
4111
4111
|
), y = J(() => k(!1), [k]), N = u ? u(y) : y, I = {
|
|
@@ -4118,8 +4118,8 @@ const vv = "_popoverPortal_j8b3y_1", yv = "_popoverContent_j8b3y_9", kv = "_cont
|
|
|
4118
4118
|
x.key === "Tab" && x.stopPropagation();
|
|
4119
4119
|
}, []), E = J((x) => {
|
|
4120
4120
|
x.preventDefault();
|
|
4121
|
-
const
|
|
4122
|
-
|
|
4121
|
+
const O = x.currentTarget.querySelector("[data-tools-popover-panel]");
|
|
4122
|
+
O == null || O.focus({ preventScroll: !0 });
|
|
4123
4123
|
}, []), w = () => /* @__PURE__ */ a(
|
|
4124
4124
|
"div",
|
|
4125
4125
|
{
|
|
@@ -4389,14 +4389,14 @@ function Wv({ initialScreen: n, animated: t, children: r }) {
|
|
|
4389
4389
|
return (z = h[Q.name]) != null && z.keepMounted ? { entry: Q, stackIndex: D } : null;
|
|
4390
4390
|
}).filter(Boolean),
|
|
4391
4391
|
[s, h]
|
|
4392
|
-
), w = (Q, D) => Q in i ? i[Q] : R[Q] ?? D, B = R.component, x = R.keepMounted === !0,
|
|
4392
|
+
), w = (Q, D) => Q in i ? i[Q] : R[Q] ?? D, B = R.component, x = R.keepMounted === !0, O = J(
|
|
4393
4393
|
(Q) => {
|
|
4394
4394
|
u.current[u.current.length - 1].name === I.name && l((z) => ({ ...z, ...Q }));
|
|
4395
4395
|
},
|
|
4396
4396
|
[I.name]
|
|
4397
4397
|
), T = ae(
|
|
4398
|
-
() => ({ name: I.name, params: I.params || {}, setOptions:
|
|
4399
|
-
[I.name, I.params,
|
|
4398
|
+
() => ({ name: I.name, params: I.params || {}, setOptions: O }),
|
|
4399
|
+
[I.name, I.params, O]
|
|
4400
4400
|
);
|
|
4401
4401
|
return /* @__PURE__ */ a(Tl.Provider, { value: N, children: /* @__PURE__ */ v("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
4402
4402
|
/* @__PURE__ */ a(
|
|
@@ -4426,12 +4426,12 @@ function Wv({ initialScreen: n, animated: t, children: r }) {
|
|
|
4426
4426
|
E.map(({ entry: Q, stackIndex: D }) => {
|
|
4427
4427
|
const z = h[Q.name];
|
|
4428
4428
|
if (!(z != null && z.component)) return null;
|
|
4429
|
-
const U = z.component,
|
|
4429
|
+
const U = z.component, P = Q.name === I.name, V = P ? T : { name: Q.name, params: Q.params || {}, setOptions: () => {
|
|
4430
4430
|
} };
|
|
4431
4431
|
return /* @__PURE__ */ a(
|
|
4432
4432
|
"div",
|
|
4433
4433
|
{
|
|
4434
|
-
style:
|
|
4434
|
+
style: P ? {
|
|
4435
4435
|
position: "relative",
|
|
4436
4436
|
display: "flex",
|
|
4437
4437
|
flexDirection: "column",
|
|
@@ -5116,7 +5116,7 @@ const Qa = Ge(function({
|
|
|
5116
5116
|
le(() => {
|
|
5117
5117
|
I.current = 0, w(0);
|
|
5118
5118
|
}, [d]), le(() => () => clearTimeout(R.current), []);
|
|
5119
|
-
const
|
|
5119
|
+
const O = Math.max(
|
|
5120
5120
|
0,
|
|
5121
5121
|
Math.min(100, Ul(r) * 100)
|
|
5122
5122
|
), T = Fs(h), Q = Fs(g), D = Math.max(T, Q);
|
|
@@ -5129,7 +5129,7 @@ const Qa = Ge(function({
|
|
|
5129
5129
|
});
|
|
5130
5130
|
}, 400)), D <= 0 && (I.current = 0, w(0));
|
|
5131
5131
|
}, [D]);
|
|
5132
|
-
const z = z1(E), U = E > 0,
|
|
5132
|
+
const z = z1(E), U = E > 0, P = J(
|
|
5133
5133
|
(q) => {
|
|
5134
5134
|
var de;
|
|
5135
5135
|
if (!s) return;
|
|
@@ -5172,7 +5172,7 @@ const Qa = Ge(function({
|
|
|
5172
5172
|
onMouseLeave: () => {
|
|
5173
5173
|
C || m(!1);
|
|
5174
5174
|
},
|
|
5175
|
-
onPointerDown:
|
|
5175
|
+
onPointerDown: P,
|
|
5176
5176
|
onPointerMove: V,
|
|
5177
5177
|
onPointerUp: $,
|
|
5178
5178
|
children: /* @__PURE__ */ v("div", { ref: k, className: W, children: [
|
|
@@ -5182,7 +5182,7 @@ const Qa = Ge(function({
|
|
|
5182
5182
|
Ol,
|
|
5183
5183
|
{
|
|
5184
5184
|
ref: y,
|
|
5185
|
-
faderPercent:
|
|
5185
|
+
faderPercent: O,
|
|
5186
5186
|
isPressed: C,
|
|
5187
5187
|
hover: c,
|
|
5188
5188
|
volume: r,
|
|
@@ -5565,7 +5565,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5565
5565
|
dots: i || [],
|
|
5566
5566
|
defaultDot: N,
|
|
5567
5567
|
clickableDots: o
|
|
5568
|
-
}), B = ae(() => typeof t == "object" && t !== null ? t.position : dy(t, i), [t, i]), x = ae(() => typeof t == "object" && t !== null ? t : (i == null ? void 0 : i.find((W) => W.position === B)) ?? null, [t, i, B]), { pointerRotation:
|
|
5568
|
+
}), B = ae(() => typeof t == "object" && t !== null ? t.position : dy(t, i), [t, i]), x = ae(() => typeof t == "object" && t !== null ? t : (i == null ? void 0 : i.find((W) => W.position === B)) ?? null, [t, i, B]), { pointerRotation: O, pointerColor: T } = ae(() => uy(B, s), [B, s]);
|
|
5569
5569
|
if (le(() => () => {
|
|
5570
5570
|
m.current != null && clearTimeout(m.current), f.current != null && clearTimeout(f.current);
|
|
5571
5571
|
}, []), !y)
|
|
@@ -5595,7 +5595,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5595
5595
|
f.current = setTimeout(() => {
|
|
5596
5596
|
f.current = null, C(!1);
|
|
5597
5597
|
}, W);
|
|
5598
|
-
},
|
|
5598
|
+
}, P = (W) => {
|
|
5599
5599
|
const q = to[W.color] || to.neutral, he = W.position === B, de = p === W.position && o;
|
|
5600
5600
|
return s ? q.default : he ? q.active : de ? q.hover : q.default;
|
|
5601
5601
|
}, V = u ? u(x ?? t) : (x == null ? void 0 : x.label) ?? (x == null ? void 0 : x.value) ?? B, $ = !s && (g || R), G = /* @__PURE__ */ a(
|
|
@@ -5623,7 +5623,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5623
5623
|
/* @__PURE__ */ a(
|
|
5624
5624
|
"g",
|
|
5625
5625
|
{
|
|
5626
|
-
transform: `rotate(${
|
|
5626
|
+
transform: `rotate(${O} ${Ar} ${pr})`,
|
|
5627
5627
|
children: /* @__PURE__ */ a(
|
|
5628
5628
|
"path",
|
|
5629
5629
|
{
|
|
@@ -5638,7 +5638,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5638
5638
|
i == null ? void 0 : i.map((W) => {
|
|
5639
5639
|
const q = zl[W.position];
|
|
5640
5640
|
if (!q) return null;
|
|
5641
|
-
const he =
|
|
5641
|
+
const he = P(W), de = o && !s;
|
|
5642
5642
|
return /* @__PURE__ */ v(Te.Fragment, { children: [
|
|
5643
5643
|
de && /* @__PURE__ */ a(
|
|
5644
5644
|
"circle",
|
|
@@ -6528,7 +6528,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6528
6528
|
[t, B]
|
|
6529
6529
|
);
|
|
6530
6530
|
pn("wheel", x, u);
|
|
6531
|
-
const
|
|
6531
|
+
const O = J(
|
|
6532
6532
|
(M) => {
|
|
6533
6533
|
var ie;
|
|
6534
6534
|
if (s) return;
|
|
@@ -6574,7 +6574,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6574
6574
|
}
|
|
6575
6575
|
},
|
|
6576
6576
|
[s, t, B]
|
|
6577
|
-
), { arcPath: U, pointerRotation:
|
|
6577
|
+
), { arcPath: U, pointerRotation: P, arcColor: V, pointerColor: $ } = ae(() => {
|
|
6578
6578
|
const M = ds(t, o, i), L = cs(M), ie = ls + L * Math.PI, ce = xn + jt * Math.cos(ls), oe = Tn + jt * Math.sin(ls), ee = xn + jt * Math.cos(ie), Ie = Tn + jt * Math.sin(ie), Se = 0, Ve = L > 0 ? 1 : 0;
|
|
6579
6579
|
return {
|
|
6580
6580
|
arcPath: `M ${ce.toFixed(3)} ${oe.toFixed(3)}
|
|
@@ -6628,7 +6628,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6628
6628
|
p && or.active,
|
|
6629
6629
|
s && or.disabled
|
|
6630
6630
|
),
|
|
6631
|
-
onPointerDown:
|
|
6631
|
+
onPointerDown: O,
|
|
6632
6632
|
onPointerMove: T,
|
|
6633
6633
|
onPointerUp: Q,
|
|
6634
6634
|
onPointerCancel: Q,
|
|
@@ -6662,7 +6662,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6662
6662
|
/* @__PURE__ */ a(
|
|
6663
6663
|
"g",
|
|
6664
6664
|
{
|
|
6665
|
-
transform: `rotate(${
|
|
6665
|
+
transform: `rotate(${P} ${xn} ${Tn})`,
|
|
6666
6666
|
children: /* @__PURE__ */ a(
|
|
6667
6667
|
"path",
|
|
6668
6668
|
{
|
|
@@ -7152,11 +7152,11 @@ class m0 extends Xn {
|
|
|
7152
7152
|
T.relatedTarget && T.relatedTarget !== document.documentElement || w(T);
|
|
7153
7153
|
}, x = (T) => {
|
|
7154
7154
|
k && (T.stopPropagation(), T.preventDefault());
|
|
7155
|
-
},
|
|
7155
|
+
}, O = (T) => {
|
|
7156
7156
|
T.defaultPrevented || d.size > 1 || k && T.preventDefault();
|
|
7157
7157
|
};
|
|
7158
|
-
document.addEventListener("pointermove", E), document.addEventListener("pointerup", w), document.addEventListener("pointerout", B), document.addEventListener("pointercancel", B), document.addEventListener("touchmove",
|
|
7159
|
-
document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", B), document.removeEventListener("pointercancel", B), document.removeEventListener("touchmove",
|
|
7158
|
+
document.addEventListener("pointermove", E), document.addEventListener("pointerup", w), document.addEventListener("pointerout", B), document.addEventListener("pointercancel", B), document.addEventListener("touchmove", O, { passive: !1 }), document.addEventListener("click", x, { capture: !0 }), p = () => {
|
|
7159
|
+
document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", B), document.removeEventListener("pointercancel", B), document.removeEventListener("touchmove", O), setTimeout(() => {
|
|
7160
7160
|
document.removeEventListener("click", x, { capture: !0 });
|
|
7161
7161
|
}, 10);
|
|
7162
7162
|
};
|
|
@@ -7330,13 +7330,13 @@ class m0 extends Xn {
|
|
|
7330
7330
|
const I = f / 2, R = y.barWidth ? y.barWidth * N : 1, E = y.barGap ? y.barGap * N : y.barWidth ? R / 2 : 0, w = R + E || 1;
|
|
7331
7331
|
return { halfHeight: I, barWidth: R, barGap: E, barRadius: y.barRadius || 0, barMinHeight: y.barMinHeight ? y.barMinHeight * N : 0, barIndexScale: k > 0 ? m / w / k : 0, barSpacing: w };
|
|
7332
7332
|
}({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), C = function({ channelData: m, barIndexScale: f, barSpacing: k, barWidth: y, halfHeight: N, vScale: I, canvasHeight: R, barAlign: E, barMinHeight: w }) {
|
|
7333
|
-
const B = m[0] || [], x = m[1] || B,
|
|
7333
|
+
const B = m[0] || [], x = m[1] || B, O = B.length, T = [];
|
|
7334
7334
|
let Q = 0, D = 0, z = 0;
|
|
7335
|
-
for (let U = 0; U <=
|
|
7336
|
-
const
|
|
7337
|
-
if (
|
|
7335
|
+
for (let U = 0; U <= O; U++) {
|
|
7336
|
+
const P = Math.round(U * f);
|
|
7337
|
+
if (P > Q) {
|
|
7338
7338
|
const { topHeight: G, totalHeight: W } = A0({ maxTop: D, maxBottom: z, halfHeight: N, vScale: I, barMinHeight: w, barAlign: E }), q = p0({ barAlign: E, halfHeight: N, topHeight: G, totalHeight: W, canvasHeight: R });
|
|
7339
|
-
T.push({ x: Q * k, y: q, width: y, height: W }), Q =
|
|
7339
|
+
T.push({ x: Q * k, y: q, width: y, height: W }), Q = P, D = 0, z = 0;
|
|
7340
7340
|
}
|
|
7341
7341
|
const V = Math.abs(B[U] || 0), $ = Math.abs(x[U] || 0);
|
|
7342
7342
|
V > D && (D = V), $ > z && (z = $);
|
|
@@ -7359,8 +7359,8 @@ class m0 extends Xn {
|
|
|
7359
7359
|
const T = N + (Math.round(w * g * h) || 1) * I;
|
|
7360
7360
|
R.push({ x: E, y: T }), E = x, w = 0;
|
|
7361
7361
|
}
|
|
7362
|
-
const
|
|
7363
|
-
|
|
7362
|
+
const O = Math.abs(m[B] || 0);
|
|
7363
|
+
O > w && (w = O);
|
|
7364
7364
|
}
|
|
7365
7365
|
return R.push({ x: E, y: N }), R;
|
|
7366
7366
|
});
|
|
@@ -7705,10 +7705,10 @@ class jn extends h0 {
|
|
|
7705
7705
|
super({ media: r, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this._isDestroyed = !1, this._loadVersion = 0, this.reactiveCleanups = [], this.options = Object.assign({}, C0, t);
|
|
7706
7706
|
const { state: s, actions: o } = function(c) {
|
|
7707
7707
|
var d, u, p, h, g, C;
|
|
7708
|
-
const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), N = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : Re(1), I = (C = c == null ? void 0 : c.playbackRate) !== null && C !== void 0 ? C : Re(1), R = Re(null), E = Re(null), w = Re(""), B = Re(0), x = Re(0),
|
|
7709
|
-
return { state: { currentTime: m, duration: f, isPlaying: k, isPaused:
|
|
7710
|
-
const
|
|
7711
|
-
m.set(
|
|
7708
|
+
const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), N = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : Re(1), I = (C = c == null ? void 0 : c.playbackRate) !== null && C !== void 0 ? C : Re(1), R = Re(null), E = Re(null), w = Re(""), B = Re(0), x = Re(0), O = Yt(() => !k.value, [k]), T = Yt(() => R.value !== null, [R]), Q = Yt(() => T.value && f.value > 0, [T, f]), D = Yt(() => m.value, [m]), z = Yt(() => f.value > 0 ? m.value / f.value : 0, [m, f]);
|
|
7709
|
+
return { state: { currentTime: m, duration: f, isPlaying: k, isPaused: O, isSeeking: y, volume: N, playbackRate: I, audioBuffer: R, peaks: E, url: w, zoom: B, scrollPosition: x, canPlay: T, isReady: Q, progress: D, progressPercent: z }, actions: { setCurrentTime: (U) => {
|
|
7710
|
+
const P = Math.max(0, Math.min(f.value || 1 / 0, U));
|
|
7711
|
+
m.set(P);
|
|
7712
7712
|
}, setDuration: (U) => {
|
|
7713
7713
|
f.set(Math.max(0, U));
|
|
7714
7714
|
}, setPlaying: (U) => {
|
|
@@ -7716,11 +7716,11 @@ class jn extends h0 {
|
|
|
7716
7716
|
}, setSeeking: (U) => {
|
|
7717
7717
|
y.set(U);
|
|
7718
7718
|
}, setVolume: (U) => {
|
|
7719
|
-
const
|
|
7720
|
-
N.set(
|
|
7719
|
+
const P = Math.max(0, Math.min(1, U));
|
|
7720
|
+
N.set(P);
|
|
7721
7721
|
}, setPlaybackRate: (U) => {
|
|
7722
|
-
const
|
|
7723
|
-
I.set(
|
|
7722
|
+
const P = Math.max(0.1, Math.min(16, U));
|
|
7723
|
+
I.set(P);
|
|
7724
7724
|
}, setAudioBuffer: (U) => {
|
|
7725
7725
|
R.set(U), U && f.set(U.duration);
|
|
7726
7726
|
}, setPeaks: (U) => {
|
|
@@ -8105,7 +8105,7 @@ const ql = Ge((n) => {
|
|
|
8105
8105
|
id: C,
|
|
8106
8106
|
tabIndex: m
|
|
8107
8107
|
}, f) {
|
|
8108
|
-
const [k, y] = j(!1), [N, I] = j(!1), [R, E] = j(!1), w = _(null), B = _(!1), x = _(null),
|
|
8108
|
+
const [k, y] = j(!1), [N, I] = j(!1), [R, E] = j(!1), w = _(null), B = _(!1), x = _(null), O = _(null), T = s || !N;
|
|
8109
8109
|
le(() => {
|
|
8110
8110
|
typeof navigator < "u" && E(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
8111
8111
|
}, []);
|
|
@@ -8140,7 +8140,7 @@ const ql = Ge((n) => {
|
|
|
8140
8140
|
), U = J(() => {
|
|
8141
8141
|
const K = w.current;
|
|
8142
8142
|
K && (R || K.setOptions({ progressColor: p }), K.play());
|
|
8143
|
-
}, [R, p]),
|
|
8143
|
+
}, [R, p]), P = J(() => {
|
|
8144
8144
|
var M;
|
|
8145
8145
|
const K = w.current;
|
|
8146
8146
|
if (T || !K) return;
|
|
@@ -8149,15 +8149,15 @@ const ql = Ge((n) => {
|
|
|
8149
8149
|
const L = z(K, {
|
|
8150
8150
|
syncTime: !0
|
|
8151
8151
|
});
|
|
8152
|
-
|
|
8152
|
+
O.current = L.previousActive;
|
|
8153
8153
|
} else
|
|
8154
|
-
|
|
8154
|
+
O.current = null;
|
|
8155
8155
|
U();
|
|
8156
8156
|
}, [T, U, z, o]);
|
|
8157
8157
|
md(
|
|
8158
8158
|
f,
|
|
8159
8159
|
() => ({
|
|
8160
|
-
play:
|
|
8160
|
+
play: P,
|
|
8161
8161
|
pause: Q,
|
|
8162
8162
|
isReady: () => N,
|
|
8163
8163
|
isPlaying: () => {
|
|
@@ -8165,7 +8165,7 @@ const ql = Ge((n) => {
|
|
|
8165
8165
|
return !!((K = w.current) != null && K.isPlaying());
|
|
8166
8166
|
}
|
|
8167
8167
|
}),
|
|
8168
|
-
[
|
|
8168
|
+
[P, Q, N]
|
|
8169
8169
|
), le(() => {
|
|
8170
8170
|
w.current && t && (w.current.load(t), I(!1));
|
|
8171
8171
|
}, [t]);
|
|
@@ -8173,12 +8173,12 @@ const ql = Ge((n) => {
|
|
|
8173
8173
|
w.current = K, I(!0), y(!1);
|
|
8174
8174
|
}, []), $ = J(
|
|
8175
8175
|
(K) => {
|
|
8176
|
-
const X = B.current, F =
|
|
8176
|
+
const X = B.current, F = O.current, M = x.current;
|
|
8177
8177
|
y(!0), l == null || l(!0), X || i == null || i(), o && (z(K, {
|
|
8178
8178
|
seekTime: X ? M : void 0,
|
|
8179
8179
|
syncTime: !X && !F,
|
|
8180
8180
|
skipPauseFor: F
|
|
8181
|
-
}), B.current = !1, x.current = null,
|
|
8181
|
+
}), B.current = !1, x.current = null, O.current = null, o.setter((L) => ({
|
|
8182
8182
|
...L,
|
|
8183
8183
|
isPlaying: !0,
|
|
8184
8184
|
lastPlayed: K,
|
|
@@ -8249,9 +8249,9 @@ const ql = Ge((n) => {
|
|
|
8249
8249
|
Q();
|
|
8250
8250
|
return;
|
|
8251
8251
|
}
|
|
8252
|
-
|
|
8252
|
+
P();
|
|
8253
8253
|
}
|
|
8254
|
-
}, [T, Q,
|
|
8254
|
+
}, [T, Q, P]), ge = J(() => {
|
|
8255
8255
|
T || i == null || i();
|
|
8256
8256
|
}, [T, i]);
|
|
8257
8257
|
return /* @__PURE__ */ v(
|
|
@@ -8533,7 +8533,10 @@ const nb = ({
|
|
|
8533
8533
|
w.preventDefault(), w.stopPropagation(), y(!k);
|
|
8534
8534
|
}, [k]), E = J((w) => {
|
|
8535
8535
|
w.stopPropagation();
|
|
8536
|
-
const B = i.filter((x) =>
|
|
8536
|
+
const B = i.filter((x) => {
|
|
8537
|
+
var O;
|
|
8538
|
+
return !x.loading && ((O = x.transfers) == null ? void 0 : O.length) > 0;
|
|
8539
|
+
});
|
|
8537
8540
|
g == null || g(B);
|
|
8538
8541
|
}, [g, i]);
|
|
8539
8542
|
return /* @__PURE__ */ v(
|
|
@@ -8946,14 +8949,14 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
|
|
|
8946
8949
|
), I = J(
|
|
8947
8950
|
(w) => {
|
|
8948
8951
|
if (s || o) return;
|
|
8949
|
-
const B = w.currentTarget.getBoundingClientRect(), x = w.clientX - B.left,
|
|
8952
|
+
const B = w.currentTarget.getBoundingClientRect(), x = w.clientX - B.left, O = B.width / n, T = Math.floor(x / O), D = Math.max(0, Math.min(T, n - 1)) + 1;
|
|
8950
8953
|
D !== m && (f(D), l == null || l({ value: D }));
|
|
8951
8954
|
},
|
|
8952
8955
|
[s, o, n, m, l]
|
|
8953
8956
|
), R = J(() => {
|
|
8954
8957
|
s || o || (f(0), l == null || l({ value: 0 }));
|
|
8955
8958
|
}, [s, o, l]), E = (w) => {
|
|
8956
|
-
const B = m > 0 ? w < m : w < k, x = m > 0 && w < m,
|
|
8959
|
+
const B = m > 0 ? w < m : w < k, x = m > 0 && w < m, O = w < k;
|
|
8957
8960
|
return /* @__PURE__ */ a(
|
|
8958
8961
|
"button",
|
|
8959
8962
|
{
|
|
@@ -8961,7 +8964,7 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
|
|
|
8961
8964
|
className: b(Xe.starButton, {
|
|
8962
8965
|
[Xe.filled]: B,
|
|
8963
8966
|
[Xe.hovered]: x,
|
|
8964
|
-
[Xe.active]:
|
|
8967
|
+
[Xe.active]: O,
|
|
8965
8968
|
[Xe.disabled]: s,
|
|
8966
8969
|
[Xe.readOnly]: o
|
|
8967
8970
|
}),
|
|
@@ -9225,11 +9228,11 @@ const iI = "_boxVertical_ujop8_21", lI = "_sliderRoot_ujop8_27", cI = "_sliderRo
|
|
|
9225
9228
|
u,
|
|
9226
9229
|
o
|
|
9227
9230
|
]
|
|
9228
|
-
), x = typeof k == "number" ? `${k}px` : k,
|
|
9231
|
+
), x = typeof k == "number" ? `${k}px` : k, O = typeof f == "number" ? `${f}px` : f;
|
|
9229
9232
|
return /* @__PURE__ */ v(
|
|
9230
9233
|
Ne,
|
|
9231
9234
|
{
|
|
9232
|
-
width: E ? "100%" :
|
|
9235
|
+
width: E ? "100%" : O,
|
|
9233
9236
|
className: b(E && ve.boxVertical),
|
|
9234
9237
|
style: E ? { "--slider-vertical-height": x } : void 0,
|
|
9235
9238
|
children: [
|
|
@@ -9721,22 +9724,22 @@ const Zl = ({
|
|
|
9721
9724
|
onDrop: E,
|
|
9722
9725
|
isLoading: w = !1
|
|
9723
9726
|
}) => {
|
|
9724
|
-
const [B, x] = j(!1),
|
|
9727
|
+
const [B, x] = j(!1), O = !!y, { setNodeRef: T, isOver: Q } = Vo({
|
|
9725
9728
|
id: y ?? "__setlist-item-noop__",
|
|
9726
|
-
disabled: !
|
|
9729
|
+
disabled: !O
|
|
9727
9730
|
}), D = () => {
|
|
9728
9731
|
x(!0);
|
|
9729
9732
|
}, z = () => {
|
|
9730
9733
|
x(!1);
|
|
9731
9734
|
}, U = (V) => {
|
|
9732
9735
|
V.stopPropagation();
|
|
9733
|
-
},
|
|
9736
|
+
}, P = (V) => {
|
|
9734
9737
|
V.stopPropagation();
|
|
9735
9738
|
};
|
|
9736
9739
|
return /* @__PURE__ */ v(
|
|
9737
9740
|
S,
|
|
9738
9741
|
{
|
|
9739
|
-
ref:
|
|
9742
|
+
ref: O ? T : void 0,
|
|
9740
9743
|
gap: "3",
|
|
9741
9744
|
align: "center",
|
|
9742
9745
|
role: r ? "button" : void 0,
|
|
@@ -9827,7 +9830,7 @@ const Zl = ({
|
|
|
9827
9830
|
[se.dropdownTriggerWrapperMobile]: m
|
|
9828
9831
|
}),
|
|
9829
9832
|
onPointerDown: U,
|
|
9830
|
-
onClick:
|
|
9833
|
+
onClick: P,
|
|
9831
9834
|
children: /* @__PURE__ */ a(Xr, { hovered: u })
|
|
9832
9835
|
}
|
|
9833
9836
|
),
|
|
@@ -9859,15 +9862,15 @@ const Zl = ({
|
|
|
9859
9862
|
r == null || r(Z), y && k();
|
|
9860
9863
|
}, E = () => {
|
|
9861
9864
|
c == null || c(), y && k();
|
|
9862
|
-
}, [w, B] = j(!1), [x,
|
|
9863
|
-
U.current && (clearTimeout(U.current), U.current = null),
|
|
9864
|
-
Q(!1),
|
|
9865
|
+
}, [w, B] = j(!1), [x, O] = j(!1), [T, Q] = j(!1), [D, z] = j(!1), U = _(null), P = _(null), V = _(null), $ = _(p), G = 50, W = 200, q = 44, he = 4, de = p && c ? 1 : 0, ge = p && !w && !D, K = n, X = n.length + (c ? 1 : 0), F = Math.min(4, X), M = W + Math.max(0, F - 1) * G, L = M, ie = () => {
|
|
9866
|
+
U.current && (clearTimeout(U.current), U.current = null), P.current && (clearTimeout(P.current), P.current = null), O(!1), Q(!0), B(!0), P.current = setTimeout(() => {
|
|
9867
|
+
Q(!1), P.current = null;
|
|
9865
9868
|
}, L);
|
|
9866
9869
|
}, ce = () => {
|
|
9867
|
-
p && (U.current && (clearTimeout(U.current), U.current = null), x ?
|
|
9870
|
+
p && (U.current && (clearTimeout(U.current), U.current = null), x ? O(!1) : w || ie());
|
|
9868
9871
|
}, oe = () => {
|
|
9869
|
-
p && w && (
|
|
9870
|
-
U.current = null, B(!1),
|
|
9872
|
+
p && w && (P.current && (clearTimeout(P.current), P.current = null), Q(!1), O(!0), U.current = setTimeout(() => {
|
|
9873
|
+
U.current = null, B(!1), O(!1);
|
|
9871
9874
|
}, L));
|
|
9872
9875
|
}, ee = (Z) => {
|
|
9873
9876
|
p && (Z.stopPropagation(), ie());
|
|
@@ -9882,17 +9885,17 @@ const Zl = ({
|
|
|
9882
9885
|
};
|
|
9883
9886
|
if ($.current !== p) {
|
|
9884
9887
|
const Z = $.current;
|
|
9885
|
-
$.current = p, p && !Z ? (z(!0), Q(!1),
|
|
9888
|
+
$.current = p, p && !Z ? (z(!0), Q(!1), O(!0)) : !p && Z && (B(!1), z(!0), O(!1), Q(!0));
|
|
9886
9889
|
}
|
|
9887
9890
|
le(() => {
|
|
9888
9891
|
if (!D) return;
|
|
9889
|
-
U.current && (clearTimeout(U.current), U.current = null),
|
|
9892
|
+
U.current && (clearTimeout(U.current), U.current = null), P.current && (clearTimeout(P.current), P.current = null);
|
|
9890
9893
|
const Z = setTimeout(() => {
|
|
9891
|
-
z(!1),
|
|
9894
|
+
z(!1), O(!1), Q(!1);
|
|
9892
9895
|
}, L);
|
|
9893
9896
|
return () => clearTimeout(Z);
|
|
9894
9897
|
}, [D, L]), le(() => () => {
|
|
9895
|
-
U.current && clearTimeout(U.current),
|
|
9898
|
+
U.current && clearTimeout(U.current), P.current && clearTimeout(P.current);
|
|
9896
9899
|
}, []);
|
|
9897
9900
|
const Ve = (Z) => {
|
|
9898
9901
|
if (!p) return;
|
|
@@ -10142,7 +10145,7 @@ const Zl = ({
|
|
|
10142
10145
|
h || k(!0);
|
|
10143
10146
|
}, x = () => {
|
|
10144
10147
|
h || k(!1);
|
|
10145
|
-
},
|
|
10148
|
+
}, O = (G) => {
|
|
10146
10149
|
E ? w() : l && l(G);
|
|
10147
10150
|
}, T = () => {
|
|
10148
10151
|
h || !r || R(!0);
|
|
@@ -10154,7 +10157,7 @@ const Zl = ({
|
|
|
10154
10157
|
T();
|
|
10155
10158
|
}, U = (G) => {
|
|
10156
10159
|
h || !r || (G.preventDefault(), T());
|
|
10157
|
-
},
|
|
10160
|
+
}, P = E ? "Expand menu" : "Moises", V = "Moises";
|
|
10158
10161
|
le(() => {
|
|
10159
10162
|
if (!I) return;
|
|
10160
10163
|
const G = () => {
|
|
@@ -10230,7 +10233,7 @@ const Zl = ({
|
|
|
10230
10233
|
{
|
|
10231
10234
|
type: "button",
|
|
10232
10235
|
className: Ae.logoButton,
|
|
10233
|
-
onClick:
|
|
10236
|
+
onClick: O,
|
|
10234
10237
|
"aria-label": V,
|
|
10235
10238
|
children: /* @__PURE__ */ v(
|
|
10236
10239
|
S,
|
|
@@ -10306,8 +10309,8 @@ const Zl = ({
|
|
|
10306
10309
|
{
|
|
10307
10310
|
type: "button",
|
|
10308
10311
|
className: Ae.logoButton,
|
|
10309
|
-
onClick:
|
|
10310
|
-
"aria-label":
|
|
10312
|
+
onClick: O,
|
|
10313
|
+
"aria-label": P,
|
|
10311
10314
|
children: /* @__PURE__ */ a(
|
|
10312
10315
|
S,
|
|
10313
10316
|
{
|
|
@@ -10349,8 +10352,8 @@ const Zl = ({
|
|
|
10349
10352
|
{
|
|
10350
10353
|
type: "button",
|
|
10351
10354
|
className: Ae.logoButton,
|
|
10352
|
-
onClick:
|
|
10353
|
-
"aria-label":
|
|
10355
|
+
onClick: O,
|
|
10356
|
+
"aria-label": P,
|
|
10354
10357
|
children: /* @__PURE__ */ a(
|
|
10355
10358
|
S,
|
|
10356
10359
|
{
|
|
@@ -10514,7 +10517,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10514
10517
|
className: g,
|
|
10515
10518
|
...C
|
|
10516
10519
|
}, m) {
|
|
10517
|
-
const f = C["aria-label"], k = _(null), y = _(null), N = _(null), I = _(null), [R, E] = j(!1), [w, B] = j(!1), [x,
|
|
10520
|
+
const f = C["aria-label"], k = _(null), y = _(null), N = _(null), I = _(null), [R, E] = j(!1), [w, B] = j(!1), [x, O] = j(!1), T = _({ value: t, min: s, max: o, step: i, disabled: l, onValueChange: r });
|
|
10518
10521
|
T.current = { value: t, min: s, max: o, step: i, disabled: l, onValueChange: r };
|
|
10519
10522
|
const Q = _({
|
|
10520
10523
|
tooltipDelayDuration: d,
|
|
@@ -10564,7 +10567,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10564
10567
|
return F.addEventListener("wheel", ce, { passive: !1 }), () => F.removeEventListener("wheel", ce);
|
|
10565
10568
|
}, []), le(() => {
|
|
10566
10569
|
if (!x) return;
|
|
10567
|
-
const F = () =>
|
|
10570
|
+
const F = () => O(!1);
|
|
10568
10571
|
return window.addEventListener("pointerup", F), window.addEventListener("pointercancel", F), () => {
|
|
10569
10572
|
window.removeEventListener("pointerup", F), window.removeEventListener("pointercancel", F);
|
|
10570
10573
|
};
|
|
@@ -10581,15 +10584,15 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10581
10584
|
},
|
|
10582
10585
|
[m]
|
|
10583
10586
|
), U = () => {
|
|
10584
|
-
l ||
|
|
10585
|
-
},
|
|
10587
|
+
l || O(!0);
|
|
10588
|
+
}, P = () => {
|
|
10586
10589
|
N.current != null && (clearTimeout(N.current), N.current = null);
|
|
10587
10590
|
}, V = () => {
|
|
10588
10591
|
I.current != null && (clearTimeout(I.current), I.current = null);
|
|
10589
10592
|
}, $ = () => {
|
|
10590
10593
|
y.current === "keyboard" && E(!0);
|
|
10591
10594
|
}, G = () => E(!1), W = () => E(!1), q = () => {
|
|
10592
|
-
V(),
|
|
10595
|
+
V(), P();
|
|
10593
10596
|
const { tooltipDelayDuration: F } = Q.current;
|
|
10594
10597
|
if (F <= 0) {
|
|
10595
10598
|
B(!0);
|
|
@@ -10599,7 +10602,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10599
10602
|
N.current = null, B(!0);
|
|
10600
10603
|
}, F);
|
|
10601
10604
|
}, he = () => {
|
|
10602
|
-
|
|
10605
|
+
P();
|
|
10603
10606
|
const { tooltipCloseDelay: F } = Q.current;
|
|
10604
10607
|
if (F <= 0) {
|
|
10605
10608
|
B(!1);
|
|
@@ -11495,9 +11498,9 @@ const fr = {
|
|
|
11495
11498
|
boostLoading: w,
|
|
11496
11499
|
suggestedTags: B,
|
|
11497
11500
|
onFetchSuggestedTags: x,
|
|
11498
|
-
suggestedTagsLoading:
|
|
11501
|
+
suggestedTagsLoading: O
|
|
11499
11502
|
}) => {
|
|
11500
|
-
const [T, Q] = j(!1), [D, z] = j("2"), [U,
|
|
11503
|
+
const [T, Q] = j(!1), [D, z] = j("2"), [U, P] = j(D), { submitted: V, handleSubmit: $ } = Ma(d), G = ae(() => [
|
|
11501
11504
|
{ value: "2", label: l._("Presets") },
|
|
11502
11505
|
{ value: "1", label: l._("Custom") }
|
|
11503
11506
|
], []), W = (r ?? []).some(
|
|
@@ -11564,7 +11567,7 @@ const fr = {
|
|
|
11564
11567
|
if (D !== U) {
|
|
11565
11568
|
Q(!0);
|
|
11566
11569
|
const X = setTimeout(() => {
|
|
11567
|
-
|
|
11570
|
+
P(D), Q(!1);
|
|
11568
11571
|
}, fr.timeouts.animationDuration);
|
|
11569
11572
|
return () => clearTimeout(X);
|
|
11570
11573
|
}
|
|
@@ -11649,7 +11652,7 @@ const fr = {
|
|
|
11649
11652
|
boostLoading: w,
|
|
11650
11653
|
suggestedTags: B,
|
|
11651
11654
|
onFetchSuggestedTags: x,
|
|
11652
|
-
suggestedTagsLoading:
|
|
11655
|
+
suggestedTagsLoading: O
|
|
11653
11656
|
}
|
|
11654
11657
|
),
|
|
11655
11658
|
U === "2" && W && /* @__PURE__ */ a(
|
|
@@ -12000,11 +12003,11 @@ const Ao = {
|
|
|
12000
12003
|
d((B) => {
|
|
12001
12004
|
let x = [...B.selectedStems];
|
|
12002
12005
|
if (x.includes(w))
|
|
12003
|
-
x = x.filter((
|
|
12006
|
+
x = x.filter((O) => O !== w);
|
|
12004
12007
|
else {
|
|
12005
|
-
const
|
|
12008
|
+
const O = $E[w] || [];
|
|
12006
12009
|
x = x.filter(
|
|
12007
|
-
(T) => !
|
|
12010
|
+
(T) => !O.includes(T)
|
|
12008
12011
|
), x.push(w);
|
|
12009
12012
|
}
|
|
12010
12013
|
return x.includes("other") && x.length === 1 ? { ...B, selectedStems: [] } : { ...B, selectedStems: x };
|
|
@@ -12891,16 +12894,16 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
|
|
|
12891
12894
|
onVolumeReset: w,
|
|
12892
12895
|
onPanChange: B,
|
|
12893
12896
|
onMutedChange: x,
|
|
12894
|
-
onRecordChange:
|
|
12897
|
+
onRecordChange: O,
|
|
12895
12898
|
onSoloChange: T,
|
|
12896
12899
|
onOpenChange: Q,
|
|
12897
12900
|
onInstrumentChange: D,
|
|
12898
12901
|
onDeviceChange: z,
|
|
12899
12902
|
onChannelChange: U,
|
|
12900
12903
|
// Children (having content means group/takelanes)
|
|
12901
|
-
children:
|
|
12904
|
+
children: P
|
|
12902
12905
|
}) => {
|
|
12903
|
-
const V = !!
|
|
12906
|
+
const V = !!P, $ = J(
|
|
12904
12907
|
() => Q == null ? void 0 : Q(!y),
|
|
12905
12908
|
[y, Q]
|
|
12906
12909
|
);
|
|
@@ -13014,7 +13017,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
|
|
|
13014
13017
|
{
|
|
13015
13018
|
type: "record",
|
|
13016
13019
|
selected: m,
|
|
13017
|
-
onClick: () =>
|
|
13020
|
+
onClick: () => O == null ? void 0 : O()
|
|
13018
13021
|
}
|
|
13019
13022
|
)
|
|
13020
13023
|
}
|
|
@@ -13089,7 +13092,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
|
|
|
13089
13092
|
)
|
|
13090
13093
|
}
|
|
13091
13094
|
),
|
|
13092
|
-
V && y && /* @__PURE__ */ a("div", { className: xe.group, children:
|
|
13095
|
+
V && y && /* @__PURE__ */ a("div", { className: xe.group, children: P })
|
|
13093
13096
|
]
|
|
13094
13097
|
}
|
|
13095
13098
|
);
|
|
@@ -13302,7 +13305,7 @@ function ac({
|
|
|
13302
13305
|
le(() => {
|
|
13303
13306
|
typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
13304
13307
|
}, []);
|
|
13305
|
-
const B = ae(() => s, [s]), x = ae(() => o ? !1 : !B || B && f, [B, f, o]),
|
|
13308
|
+
const B = ae(() => s, [s]), x = ae(() => o ? !1 : !B || B && f, [B, f, o]), O = _(null), T = _(null);
|
|
13306
13309
|
le(() => {
|
|
13307
13310
|
I || (!p || i) && R(!0);
|
|
13308
13311
|
}, [p, i, I]);
|
|
@@ -13336,7 +13339,7 @@ function ac({
|
|
|
13336
13339
|
h == null || h();
|
|
13337
13340
|
},
|
|
13338
13341
|
[r, d, h, m]
|
|
13339
|
-
),
|
|
13342
|
+
), P = J(() => {
|
|
13340
13343
|
k(!1), r == null || r(!1), m == null || m(!1), d && d.setter((W) => ({
|
|
13341
13344
|
...W,
|
|
13342
13345
|
isPlaying: !1
|
|
@@ -13394,7 +13397,7 @@ function ac({
|
|
|
13394
13397
|
display: x && y ? "block" : "none",
|
|
13395
13398
|
cursor: "pointer"
|
|
13396
13399
|
},
|
|
13397
|
-
ref:
|
|
13400
|
+
ref: O,
|
|
13398
13401
|
children: /* @__PURE__ */ a(
|
|
13399
13402
|
ql,
|
|
13400
13403
|
{
|
|
@@ -13409,7 +13412,7 @@ function ac({
|
|
|
13409
13412
|
onReady: z,
|
|
13410
13413
|
onSeeking: V,
|
|
13411
13414
|
onPlay: U,
|
|
13412
|
-
onPause:
|
|
13415
|
+
onPause: P,
|
|
13413
13416
|
onFinish: $,
|
|
13414
13417
|
backend: E ? "WebAudio" : "MediaElement"
|
|
13415
13418
|
}
|
|
@@ -13787,27 +13790,27 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13787
13790
|
isPlaying: !1,
|
|
13788
13791
|
id: "voice-form"
|
|
13789
13792
|
}), x = J(
|
|
13790
|
-
(
|
|
13791
|
-
y(
|
|
13792
|
-
const V = n.find(($) => $.identifier ===
|
|
13793
|
+
(P) => {
|
|
13794
|
+
y(P);
|
|
13795
|
+
const V = n.find(($) => $.identifier === P);
|
|
13793
13796
|
r(($) => ({
|
|
13794
13797
|
...$,
|
|
13795
13798
|
selectedVoice: V
|
|
13796
13799
|
}));
|
|
13797
13800
|
},
|
|
13798
13801
|
[n, r]
|
|
13799
|
-
),
|
|
13800
|
-
(
|
|
13801
|
-
N !==
|
|
13802
|
+
), O = J(
|
|
13803
|
+
(P) => {
|
|
13804
|
+
N !== P && I(P);
|
|
13802
13805
|
},
|
|
13803
13806
|
[N, I]
|
|
13804
13807
|
), T = J(
|
|
13805
|
-
(
|
|
13808
|
+
(P) => {
|
|
13806
13809
|
I(null), w.active && w.active.pause(), B((V) => ({
|
|
13807
13810
|
...V,
|
|
13808
13811
|
isPlaying: !1,
|
|
13809
13812
|
active: null
|
|
13810
|
-
})), s(
|
|
13813
|
+
})), s(P);
|
|
13811
13814
|
},
|
|
13812
13815
|
[s, w]
|
|
13813
13816
|
), Q = ae(
|
|
@@ -13817,7 +13820,7 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13817
13820
|
}),
|
|
13818
13821
|
[w]
|
|
13819
13822
|
), D = ae(
|
|
13820
|
-
() => n.find((
|
|
13823
|
+
() => n.find((P) => P.identifier === i) || n[0],
|
|
13821
13824
|
[n, i]
|
|
13822
13825
|
), z = ae(
|
|
13823
13826
|
() => !!(t.trackName || t.trackId || t.customAudio),
|
|
@@ -13827,19 +13830,19 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13827
13830
|
E();
|
|
13828
13831
|
return;
|
|
13829
13832
|
}
|
|
13830
|
-
D && (x(D.identifier), o(), r((
|
|
13833
|
+
D && (x(D.identifier), o(), r((P) => {
|
|
13831
13834
|
var V;
|
|
13832
|
-
return ((V =
|
|
13835
|
+
return ((V = P.selectedVoice) == null ? void 0 : V.identifier) === D.identifier ? P : { ...P, selectedVoice: D };
|
|
13833
13836
|
})), z && (D ? E({ selectedVoice: D }) : E());
|
|
13834
13837
|
}, [i, E, D, x, o]);
|
|
13835
13838
|
return le(() => {
|
|
13836
|
-
var
|
|
13839
|
+
var P;
|
|
13837
13840
|
if (w.isPlaying === !1)
|
|
13838
13841
|
I(null);
|
|
13839
13842
|
else if (w.isPlaying === !0 && w.active) {
|
|
13840
|
-
const V = (
|
|
13843
|
+
const V = (P = n.find(
|
|
13841
13844
|
($) => w.active && $.metadata.previewUrl === w.active.url
|
|
13842
|
-
)) == null ? void 0 :
|
|
13845
|
+
)) == null ? void 0 : P.identifier;
|
|
13843
13846
|
V && I(V);
|
|
13844
13847
|
}
|
|
13845
13848
|
}, [w, n]), /* @__PURE__ */ v(S, { direction: "column", height: "100%", children: [
|
|
@@ -13850,7 +13853,7 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13850
13853
|
selectedId: k,
|
|
13851
13854
|
handleSelect: x,
|
|
13852
13855
|
playingItem: N,
|
|
13853
|
-
handleAvatarClick:
|
|
13856
|
+
handleAvatarClick: O,
|
|
13854
13857
|
handleDetailsClick: T,
|
|
13855
13858
|
wavegroup: Q,
|
|
13856
13859
|
setPlayingItem: I,
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ const ProjectItem = ({
|
|
|
53
53
|
|
|
54
54
|
const handleInsertAllTracks = useCallback((e) => {
|
|
55
55
|
e.stopPropagation()
|
|
56
|
-
const tracksFiltered = allTracks.filter((track) => !track.loading && track.transfers
|
|
56
|
+
const tracksFiltered = allTracks.filter((track) => !track.loading && track.transfers?.length > 0)
|
|
57
57
|
onInsertAllTracks?.(tracksFiltered)
|
|
58
58
|
}, [onInsertAllTracks, allTracks])
|
|
59
59
|
|