@moises.ai/design-system 4.18.10 → 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(
|
|
@@ -8532,7 +8532,12 @@ const nb = ({
|
|
|
8532
8532
|
}, [n, m, f, C, h, c]), R = J((w) => {
|
|
8533
8533
|
w.preventDefault(), w.stopPropagation(), y(!k);
|
|
8534
8534
|
}, [k]), E = J((w) => {
|
|
8535
|
-
w.stopPropagation()
|
|
8535
|
+
w.stopPropagation();
|
|
8536
|
+
const B = i.filter((x) => {
|
|
8537
|
+
var O;
|
|
8538
|
+
return !x.loading && ((O = x.transfers) == null ? void 0 : O.length) > 0;
|
|
8539
|
+
});
|
|
8540
|
+
g == null || g(B);
|
|
8536
8541
|
}, [g, i]);
|
|
8537
8542
|
return /* @__PURE__ */ v(
|
|
8538
8543
|
S,
|
|
@@ -8565,7 +8570,7 @@ const nb = ({
|
|
|
8565
8570
|
)
|
|
8566
8571
|
] }),
|
|
8567
8572
|
m === n && /* @__PURE__ */ v(S, { direction: "column", children: [
|
|
8568
|
-
i.length === 0 && !l && /* @__PURE__ */ v(S, { direction: "row", gap: "3", p: "5", pt: "2", align: "center", justify: "center", children: [
|
|
8573
|
+
o !== "voice" && i.length === 0 && !l && /* @__PURE__ */ v(S, { direction: "row", gap: "3", p: "5", pt: "2", align: "center", justify: "center", children: [
|
|
8569
8574
|
/* @__PURE__ */ a(Bd, { width: 16, height: 16, style: { color: "var(--neutral-alpha-10)" } }),
|
|
8570
8575
|
/* @__PURE__ */ a(H, { size: "2", style: { color: "var(--neutral-alpha-10)" }, children: u.noTracks || "This file has no tracks" })
|
|
8571
8576
|
] }),
|
|
@@ -8775,7 +8780,7 @@ const nb = ({
|
|
|
8775
8780
|
const y = ae(() => {
|
|
8776
8781
|
if (!g && h || g && f === null)
|
|
8777
8782
|
return !0;
|
|
8778
|
-
if (f) {
|
|
8783
|
+
if (f !== null) {
|
|
8779
8784
|
const E = u.find((w) => parseInt(w.pitchShift) === f);
|
|
8780
8785
|
return (E == null ? void 0 : E.loading) === !0 || !(E != null && E.audioUrl);
|
|
8781
8786
|
}
|
|
@@ -8825,8 +8830,20 @@ const nb = ({
|
|
|
8825
8830
|
children: /* @__PURE__ */ a(H, { size: "2", asChild: !0, children: /* @__PURE__ */ a("span", { className: ln.trackTitle, children: c }) })
|
|
8826
8831
|
}
|
|
8827
8832
|
),
|
|
8828
|
-
y && /* @__PURE__ */ a(S, { align: "center", justify: "center", pl: "2", children: /* @__PURE__ */ a(Sn, {}) }),
|
|
8829
|
-
!g && !p
|
|
8833
|
+
(g || p) && y && /* @__PURE__ */ a(S, { align: "center", justify: "center", pl: "2", children: /* @__PURE__ */ a(Sn, {}) }),
|
|
8834
|
+
!g && !p ? /* @__PURE__ */ a(S, { align: "center", justify: "center", pr: "2", pr: "0", children: /* @__PURE__ */ a(
|
|
8835
|
+
Oe,
|
|
8836
|
+
{
|
|
8837
|
+
variant: "soft",
|
|
8838
|
+
color: "gray",
|
|
8839
|
+
size: "1",
|
|
8840
|
+
disabled: y,
|
|
8841
|
+
loading: y,
|
|
8842
|
+
onClick: R,
|
|
8843
|
+
style: { minWidth: "63px" },
|
|
8844
|
+
children: o.process || "Process"
|
|
8845
|
+
}
|
|
8846
|
+
) }) : g ? /* @__PURE__ */ a(
|
|
8830
8847
|
Cb,
|
|
8831
8848
|
{
|
|
8832
8849
|
min: m,
|
|
@@ -8932,14 +8949,14 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
|
|
|
8932
8949
|
), I = J(
|
|
8933
8950
|
(w) => {
|
|
8934
8951
|
if (s || o) return;
|
|
8935
|
-
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;
|
|
8936
8953
|
D !== m && (f(D), l == null || l({ value: D }));
|
|
8937
8954
|
},
|
|
8938
8955
|
[s, o, n, m, l]
|
|
8939
8956
|
), R = J(() => {
|
|
8940
8957
|
s || o || (f(0), l == null || l({ value: 0 }));
|
|
8941
8958
|
}, [s, o, l]), E = (w) => {
|
|
8942
|
-
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;
|
|
8943
8960
|
return /* @__PURE__ */ a(
|
|
8944
8961
|
"button",
|
|
8945
8962
|
{
|
|
@@ -8947,7 +8964,7 @@ const Db = "_starButton_1311l_1", Jb = "_disabled_1311l_17", Qb = "_readOnly_131
|
|
|
8947
8964
|
className: b(Xe.starButton, {
|
|
8948
8965
|
[Xe.filled]: B,
|
|
8949
8966
|
[Xe.hovered]: x,
|
|
8950
|
-
[Xe.active]:
|
|
8967
|
+
[Xe.active]: O,
|
|
8951
8968
|
[Xe.disabled]: s,
|
|
8952
8969
|
[Xe.readOnly]: o
|
|
8953
8970
|
}),
|
|
@@ -9211,11 +9228,11 @@ const iI = "_boxVertical_ujop8_21", lI = "_sliderRoot_ujop8_27", cI = "_sliderRo
|
|
|
9211
9228
|
u,
|
|
9212
9229
|
o
|
|
9213
9230
|
]
|
|
9214
|
-
), x = typeof k == "number" ? `${k}px` : k,
|
|
9231
|
+
), x = typeof k == "number" ? `${k}px` : k, O = typeof f == "number" ? `${f}px` : f;
|
|
9215
9232
|
return /* @__PURE__ */ v(
|
|
9216
9233
|
Ne,
|
|
9217
9234
|
{
|
|
9218
|
-
width: E ? "100%" :
|
|
9235
|
+
width: E ? "100%" : O,
|
|
9219
9236
|
className: b(E && ve.boxVertical),
|
|
9220
9237
|
style: E ? { "--slider-vertical-height": x } : void 0,
|
|
9221
9238
|
children: [
|
|
@@ -9707,22 +9724,22 @@ const Zl = ({
|
|
|
9707
9724
|
onDrop: E,
|
|
9708
9725
|
isLoading: w = !1
|
|
9709
9726
|
}) => {
|
|
9710
|
-
const [B, x] = j(!1),
|
|
9727
|
+
const [B, x] = j(!1), O = !!y, { setNodeRef: T, isOver: Q } = Vo({
|
|
9711
9728
|
id: y ?? "__setlist-item-noop__",
|
|
9712
|
-
disabled: !
|
|
9729
|
+
disabled: !O
|
|
9713
9730
|
}), D = () => {
|
|
9714
9731
|
x(!0);
|
|
9715
9732
|
}, z = () => {
|
|
9716
9733
|
x(!1);
|
|
9717
9734
|
}, U = (V) => {
|
|
9718
9735
|
V.stopPropagation();
|
|
9719
|
-
},
|
|
9736
|
+
}, P = (V) => {
|
|
9720
9737
|
V.stopPropagation();
|
|
9721
9738
|
};
|
|
9722
9739
|
return /* @__PURE__ */ v(
|
|
9723
9740
|
S,
|
|
9724
9741
|
{
|
|
9725
|
-
ref:
|
|
9742
|
+
ref: O ? T : void 0,
|
|
9726
9743
|
gap: "3",
|
|
9727
9744
|
align: "center",
|
|
9728
9745
|
role: r ? "button" : void 0,
|
|
@@ -9813,7 +9830,7 @@ const Zl = ({
|
|
|
9813
9830
|
[se.dropdownTriggerWrapperMobile]: m
|
|
9814
9831
|
}),
|
|
9815
9832
|
onPointerDown: U,
|
|
9816
|
-
onClick:
|
|
9833
|
+
onClick: P,
|
|
9817
9834
|
children: /* @__PURE__ */ a(Xr, { hovered: u })
|
|
9818
9835
|
}
|
|
9819
9836
|
),
|
|
@@ -9845,15 +9862,15 @@ const Zl = ({
|
|
|
9845
9862
|
r == null || r(Z), y && k();
|
|
9846
9863
|
}, E = () => {
|
|
9847
9864
|
c == null || c(), y && k();
|
|
9848
|
-
}, [w, B] = j(!1), [x,
|
|
9849
|
-
U.current && (clearTimeout(U.current), U.current = null),
|
|
9850
|
-
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;
|
|
9851
9868
|
}, L);
|
|
9852
9869
|
}, ce = () => {
|
|
9853
|
-
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());
|
|
9854
9871
|
}, oe = () => {
|
|
9855
|
-
p && w && (
|
|
9856
|
-
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);
|
|
9857
9874
|
}, L));
|
|
9858
9875
|
}, ee = (Z) => {
|
|
9859
9876
|
p && (Z.stopPropagation(), ie());
|
|
@@ -9868,17 +9885,17 @@ const Zl = ({
|
|
|
9868
9885
|
};
|
|
9869
9886
|
if ($.current !== p) {
|
|
9870
9887
|
const Z = $.current;
|
|
9871
|
-
$.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));
|
|
9872
9889
|
}
|
|
9873
9890
|
le(() => {
|
|
9874
9891
|
if (!D) return;
|
|
9875
|
-
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);
|
|
9876
9893
|
const Z = setTimeout(() => {
|
|
9877
|
-
z(!1),
|
|
9894
|
+
z(!1), O(!1), Q(!1);
|
|
9878
9895
|
}, L);
|
|
9879
9896
|
return () => clearTimeout(Z);
|
|
9880
9897
|
}, [D, L]), le(() => () => {
|
|
9881
|
-
U.current && clearTimeout(U.current),
|
|
9898
|
+
U.current && clearTimeout(U.current), P.current && clearTimeout(P.current);
|
|
9882
9899
|
}, []);
|
|
9883
9900
|
const Ve = (Z) => {
|
|
9884
9901
|
if (!p) return;
|
|
@@ -10128,7 +10145,7 @@ const Zl = ({
|
|
|
10128
10145
|
h || k(!0);
|
|
10129
10146
|
}, x = () => {
|
|
10130
10147
|
h || k(!1);
|
|
10131
|
-
},
|
|
10148
|
+
}, O = (G) => {
|
|
10132
10149
|
E ? w() : l && l(G);
|
|
10133
10150
|
}, T = () => {
|
|
10134
10151
|
h || !r || R(!0);
|
|
@@ -10140,7 +10157,7 @@ const Zl = ({
|
|
|
10140
10157
|
T();
|
|
10141
10158
|
}, U = (G) => {
|
|
10142
10159
|
h || !r || (G.preventDefault(), T());
|
|
10143
|
-
},
|
|
10160
|
+
}, P = E ? "Expand menu" : "Moises", V = "Moises";
|
|
10144
10161
|
le(() => {
|
|
10145
10162
|
if (!I) return;
|
|
10146
10163
|
const G = () => {
|
|
@@ -10216,7 +10233,7 @@ const Zl = ({
|
|
|
10216
10233
|
{
|
|
10217
10234
|
type: "button",
|
|
10218
10235
|
className: Ae.logoButton,
|
|
10219
|
-
onClick:
|
|
10236
|
+
onClick: O,
|
|
10220
10237
|
"aria-label": V,
|
|
10221
10238
|
children: /* @__PURE__ */ v(
|
|
10222
10239
|
S,
|
|
@@ -10292,8 +10309,8 @@ const Zl = ({
|
|
|
10292
10309
|
{
|
|
10293
10310
|
type: "button",
|
|
10294
10311
|
className: Ae.logoButton,
|
|
10295
|
-
onClick:
|
|
10296
|
-
"aria-label":
|
|
10312
|
+
onClick: O,
|
|
10313
|
+
"aria-label": P,
|
|
10297
10314
|
children: /* @__PURE__ */ a(
|
|
10298
10315
|
S,
|
|
10299
10316
|
{
|
|
@@ -10335,8 +10352,8 @@ const Zl = ({
|
|
|
10335
10352
|
{
|
|
10336
10353
|
type: "button",
|
|
10337
10354
|
className: Ae.logoButton,
|
|
10338
|
-
onClick:
|
|
10339
|
-
"aria-label":
|
|
10355
|
+
onClick: O,
|
|
10356
|
+
"aria-label": P,
|
|
10340
10357
|
children: /* @__PURE__ */ a(
|
|
10341
10358
|
S,
|
|
10342
10359
|
{
|
|
@@ -10500,7 +10517,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10500
10517
|
className: g,
|
|
10501
10518
|
...C
|
|
10502
10519
|
}, m) {
|
|
10503
|
-
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 });
|
|
10504
10521
|
T.current = { value: t, min: s, max: o, step: i, disabled: l, onValueChange: r };
|
|
10505
10522
|
const Q = _({
|
|
10506
10523
|
tooltipDelayDuration: d,
|
|
@@ -10550,7 +10567,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10550
10567
|
return F.addEventListener("wheel", ce, { passive: !1 }), () => F.removeEventListener("wheel", ce);
|
|
10551
10568
|
}, []), le(() => {
|
|
10552
10569
|
if (!x) return;
|
|
10553
|
-
const F = () =>
|
|
10570
|
+
const F = () => O(!1);
|
|
10554
10571
|
return window.addEventListener("pointerup", F), window.addEventListener("pointercancel", F), () => {
|
|
10555
10572
|
window.removeEventListener("pointerup", F), window.removeEventListener("pointercancel", F);
|
|
10556
10573
|
};
|
|
@@ -10567,15 +10584,15 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10567
10584
|
},
|
|
10568
10585
|
[m]
|
|
10569
10586
|
), U = () => {
|
|
10570
|
-
l ||
|
|
10571
|
-
},
|
|
10587
|
+
l || O(!0);
|
|
10588
|
+
}, P = () => {
|
|
10572
10589
|
N.current != null && (clearTimeout(N.current), N.current = null);
|
|
10573
10590
|
}, V = () => {
|
|
10574
10591
|
I.current != null && (clearTimeout(I.current), I.current = null);
|
|
10575
10592
|
}, $ = () => {
|
|
10576
10593
|
y.current === "keyboard" && E(!0);
|
|
10577
10594
|
}, G = () => E(!1), W = () => E(!1), q = () => {
|
|
10578
|
-
V(),
|
|
10595
|
+
V(), P();
|
|
10579
10596
|
const { tooltipDelayDuration: F } = Q.current;
|
|
10580
10597
|
if (F <= 0) {
|
|
10581
10598
|
B(!0);
|
|
@@ -10585,7 +10602,7 @@ const sE = "_sectionTitle_bwlze_1", aE = "_separator_bwlze_17", co = {
|
|
|
10585
10602
|
N.current = null, B(!0);
|
|
10586
10603
|
}, F);
|
|
10587
10604
|
}, he = () => {
|
|
10588
|
-
|
|
10605
|
+
P();
|
|
10589
10606
|
const { tooltipCloseDelay: F } = Q.current;
|
|
10590
10607
|
if (F <= 0) {
|
|
10591
10608
|
B(!1);
|
|
@@ -11481,9 +11498,9 @@ const fr = {
|
|
|
11481
11498
|
boostLoading: w,
|
|
11482
11499
|
suggestedTags: B,
|
|
11483
11500
|
onFetchSuggestedTags: x,
|
|
11484
|
-
suggestedTagsLoading:
|
|
11501
|
+
suggestedTagsLoading: O
|
|
11485
11502
|
}) => {
|
|
11486
|
-
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(() => [
|
|
11487
11504
|
{ value: "2", label: l._("Presets") },
|
|
11488
11505
|
{ value: "1", label: l._("Custom") }
|
|
11489
11506
|
], []), W = (r ?? []).some(
|
|
@@ -11550,7 +11567,7 @@ const fr = {
|
|
|
11550
11567
|
if (D !== U) {
|
|
11551
11568
|
Q(!0);
|
|
11552
11569
|
const X = setTimeout(() => {
|
|
11553
|
-
|
|
11570
|
+
P(D), Q(!1);
|
|
11554
11571
|
}, fr.timeouts.animationDuration);
|
|
11555
11572
|
return () => clearTimeout(X);
|
|
11556
11573
|
}
|
|
@@ -11635,7 +11652,7 @@ const fr = {
|
|
|
11635
11652
|
boostLoading: w,
|
|
11636
11653
|
suggestedTags: B,
|
|
11637
11654
|
onFetchSuggestedTags: x,
|
|
11638
|
-
suggestedTagsLoading:
|
|
11655
|
+
suggestedTagsLoading: O
|
|
11639
11656
|
}
|
|
11640
11657
|
),
|
|
11641
11658
|
U === "2" && W && /* @__PURE__ */ a(
|
|
@@ -11986,11 +12003,11 @@ const Ao = {
|
|
|
11986
12003
|
d((B) => {
|
|
11987
12004
|
let x = [...B.selectedStems];
|
|
11988
12005
|
if (x.includes(w))
|
|
11989
|
-
x = x.filter((
|
|
12006
|
+
x = x.filter((O) => O !== w);
|
|
11990
12007
|
else {
|
|
11991
|
-
const
|
|
12008
|
+
const O = $E[w] || [];
|
|
11992
12009
|
x = x.filter(
|
|
11993
|
-
(T) => !
|
|
12010
|
+
(T) => !O.includes(T)
|
|
11994
12011
|
), x.push(w);
|
|
11995
12012
|
}
|
|
11996
12013
|
return x.includes("other") && x.length === 1 ? { ...B, selectedStems: [] } : { ...B, selectedStems: x };
|
|
@@ -12877,16 +12894,16 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
|
|
|
12877
12894
|
onVolumeReset: w,
|
|
12878
12895
|
onPanChange: B,
|
|
12879
12896
|
onMutedChange: x,
|
|
12880
|
-
onRecordChange:
|
|
12897
|
+
onRecordChange: O,
|
|
12881
12898
|
onSoloChange: T,
|
|
12882
12899
|
onOpenChange: Q,
|
|
12883
12900
|
onInstrumentChange: D,
|
|
12884
12901
|
onDeviceChange: z,
|
|
12885
12902
|
onChannelChange: U,
|
|
12886
12903
|
// Children (having content means group/takelanes)
|
|
12887
|
-
children:
|
|
12904
|
+
children: P
|
|
12888
12905
|
}) => {
|
|
12889
|
-
const V = !!
|
|
12906
|
+
const V = !!P, $ = J(
|
|
12890
12907
|
() => Q == null ? void 0 : Q(!y),
|
|
12891
12908
|
[y, Q]
|
|
12892
12909
|
);
|
|
@@ -13000,7 +13017,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
|
|
|
13000
13017
|
{
|
|
13001
13018
|
type: "record",
|
|
13002
13019
|
selected: m,
|
|
13003
|
-
onClick: () =>
|
|
13020
|
+
onClick: () => O == null ? void 0 : O()
|
|
13004
13021
|
}
|
|
13005
13022
|
)
|
|
13006
13023
|
}
|
|
@@ -13075,7 +13092,7 @@ const Pw = "_track_2k5w9_1", Fw = "_name_2k5w9_11", zw = "_line_2k5w9_22", Ww =
|
|
|
13075
13092
|
)
|
|
13076
13093
|
}
|
|
13077
13094
|
),
|
|
13078
|
-
V && y && /* @__PURE__ */ a("div", { className: xe.group, children:
|
|
13095
|
+
V && y && /* @__PURE__ */ a("div", { className: xe.group, children: P })
|
|
13079
13096
|
]
|
|
13080
13097
|
}
|
|
13081
13098
|
);
|
|
@@ -13288,7 +13305,7 @@ function ac({
|
|
|
13288
13305
|
le(() => {
|
|
13289
13306
|
typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
13290
13307
|
}, []);
|
|
13291
|
-
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);
|
|
13292
13309
|
le(() => {
|
|
13293
13310
|
I || (!p || i) && R(!0);
|
|
13294
13311
|
}, [p, i, I]);
|
|
@@ -13322,7 +13339,7 @@ function ac({
|
|
|
13322
13339
|
h == null || h();
|
|
13323
13340
|
},
|
|
13324
13341
|
[r, d, h, m]
|
|
13325
|
-
),
|
|
13342
|
+
), P = J(() => {
|
|
13326
13343
|
k(!1), r == null || r(!1), m == null || m(!1), d && d.setter((W) => ({
|
|
13327
13344
|
...W,
|
|
13328
13345
|
isPlaying: !1
|
|
@@ -13380,7 +13397,7 @@ function ac({
|
|
|
13380
13397
|
display: x && y ? "block" : "none",
|
|
13381
13398
|
cursor: "pointer"
|
|
13382
13399
|
},
|
|
13383
|
-
ref:
|
|
13400
|
+
ref: O,
|
|
13384
13401
|
children: /* @__PURE__ */ a(
|
|
13385
13402
|
ql,
|
|
13386
13403
|
{
|
|
@@ -13395,7 +13412,7 @@ function ac({
|
|
|
13395
13412
|
onReady: z,
|
|
13396
13413
|
onSeeking: V,
|
|
13397
13414
|
onPlay: U,
|
|
13398
|
-
onPause:
|
|
13415
|
+
onPause: P,
|
|
13399
13416
|
onFinish: $,
|
|
13400
13417
|
backend: E ? "WebAudio" : "MediaElement"
|
|
13401
13418
|
}
|
|
@@ -13773,27 +13790,27 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13773
13790
|
isPlaying: !1,
|
|
13774
13791
|
id: "voice-form"
|
|
13775
13792
|
}), x = J(
|
|
13776
|
-
(
|
|
13777
|
-
y(
|
|
13778
|
-
const V = n.find(($) => $.identifier ===
|
|
13793
|
+
(P) => {
|
|
13794
|
+
y(P);
|
|
13795
|
+
const V = n.find(($) => $.identifier === P);
|
|
13779
13796
|
r(($) => ({
|
|
13780
13797
|
...$,
|
|
13781
13798
|
selectedVoice: V
|
|
13782
13799
|
}));
|
|
13783
13800
|
},
|
|
13784
13801
|
[n, r]
|
|
13785
|
-
),
|
|
13786
|
-
(
|
|
13787
|
-
N !==
|
|
13802
|
+
), O = J(
|
|
13803
|
+
(P) => {
|
|
13804
|
+
N !== P && I(P);
|
|
13788
13805
|
},
|
|
13789
13806
|
[N, I]
|
|
13790
13807
|
), T = J(
|
|
13791
|
-
(
|
|
13808
|
+
(P) => {
|
|
13792
13809
|
I(null), w.active && w.active.pause(), B((V) => ({
|
|
13793
13810
|
...V,
|
|
13794
13811
|
isPlaying: !1,
|
|
13795
13812
|
active: null
|
|
13796
|
-
})), s(
|
|
13813
|
+
})), s(P);
|
|
13797
13814
|
},
|
|
13798
13815
|
[s, w]
|
|
13799
13816
|
), Q = ae(
|
|
@@ -13803,7 +13820,7 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13803
13820
|
}),
|
|
13804
13821
|
[w]
|
|
13805
13822
|
), D = ae(
|
|
13806
|
-
() => n.find((
|
|
13823
|
+
() => n.find((P) => P.identifier === i) || n[0],
|
|
13807
13824
|
[n, i]
|
|
13808
13825
|
), z = ae(
|
|
13809
13826
|
() => !!(t.trackName || t.trackId || t.customAudio),
|
|
@@ -13813,19 +13830,19 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13813
13830
|
E();
|
|
13814
13831
|
return;
|
|
13815
13832
|
}
|
|
13816
|
-
D && (x(D.identifier), o(), r((
|
|
13833
|
+
D && (x(D.identifier), o(), r((P) => {
|
|
13817
13834
|
var V;
|
|
13818
|
-
return ((V =
|
|
13835
|
+
return ((V = P.selectedVoice) == null ? void 0 : V.identifier) === D.identifier ? P : { ...P, selectedVoice: D };
|
|
13819
13836
|
})), z && (D ? E({ selectedVoice: D }) : E());
|
|
13820
13837
|
}, [i, E, D, x, o]);
|
|
13821
13838
|
return le(() => {
|
|
13822
|
-
var
|
|
13839
|
+
var P;
|
|
13823
13840
|
if (w.isPlaying === !1)
|
|
13824
13841
|
I(null);
|
|
13825
13842
|
else if (w.isPlaying === !0 && w.active) {
|
|
13826
|
-
const V = (
|
|
13843
|
+
const V = (P = n.find(
|
|
13827
13844
|
($) => w.active && $.metadata.previewUrl === w.active.url
|
|
13828
|
-
)) == null ? void 0 :
|
|
13845
|
+
)) == null ? void 0 : P.identifier;
|
|
13829
13846
|
V && I(V);
|
|
13830
13847
|
}
|
|
13831
13848
|
}, [w, n]), /* @__PURE__ */ v(S, { direction: "column", height: "100%", children: [
|
|
@@ -13836,7 +13853,7 @@ const MN = "_footerVoiceForm_lsc2c_2", UN = {
|
|
|
13836
13853
|
selectedId: k,
|
|
13837
13854
|
handleSelect: x,
|
|
13838
13855
|
playingItem: N,
|
|
13839
|
-
handleAvatarClick:
|
|
13856
|
+
handleAvatarClick: O,
|
|
13840
13857
|
handleDetailsClick: T,
|
|
13841
13858
|
wavegroup: Q,
|
|
13842
13859
|
setPlayingItem: I,
|
package/package.json
CHANGED
|
@@ -53,7 +53,8 @@ const ProjectItem = ({
|
|
|
53
53
|
|
|
54
54
|
const handleInsertAllTracks = useCallback((e) => {
|
|
55
55
|
e.stopPropagation()
|
|
56
|
-
|
|
56
|
+
const tracksFiltered = allTracks.filter((track) => !track.loading && track.transfers?.length > 0)
|
|
57
|
+
onInsertAllTracks?.(tracksFiltered)
|
|
57
58
|
}, [onInsertAllTracks, allTracks])
|
|
58
59
|
|
|
59
60
|
return (
|
|
@@ -100,7 +101,7 @@ const ProjectItem = ({
|
|
|
100
101
|
|
|
101
102
|
{openedItem === id && (
|
|
102
103
|
<Flex direction="column">
|
|
103
|
-
{allTracks.length === 0 && !loading && (
|
|
104
|
+
{type !== 'voice' && allTracks.length === 0 && !loading && (
|
|
104
105
|
<Flex direction="row" gap="3" p="5" pt="2" align="center" justify="center">
|
|
105
106
|
<NoMusicIcon width={16} height={16} style={{ color: 'var(--neutral-alpha-10)' }} />
|
|
106
107
|
<Text size="2" style={{ color: 'var(--neutral-alpha-10)' }}>{labels.noTracks || 'This file has no tracks'}</Text>
|
|
@@ -31,7 +31,7 @@ const ProjectTrackVoice = ({ ...props }) => {
|
|
|
31
31
|
return true
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
if (pitchShiftSelected) {
|
|
34
|
+
if (pitchShiftSelected !== null) {
|
|
35
35
|
const currentTransfer = transfers.find((transfer) => parseInt(transfer.pitchShift) === pitchShiftSelected)
|
|
36
36
|
return currentTransfer?.loading === true || !currentTransfer?.audioUrl
|
|
37
37
|
}
|
|
@@ -104,15 +104,23 @@ const ProjectTrackVoice = ({ ...props }) => {
|
|
|
104
104
|
</Text>
|
|
105
105
|
</Flex>
|
|
106
106
|
|
|
107
|
-
{loading && (
|
|
107
|
+
{(hasTransfers || audioUrl) && loading && (
|
|
108
108
|
<Flex align="center" justify="center" pl="2">
|
|
109
109
|
<Spinner />
|
|
110
110
|
</Flex>
|
|
111
111
|
)}
|
|
112
112
|
|
|
113
|
-
{!hasTransfers && !audioUrl
|
|
114
|
-
<Flex align="center" justify="center" pr="2">
|
|
115
|
-
<Button
|
|
113
|
+
{!hasTransfers && !audioUrl ? (
|
|
114
|
+
<Flex align="center" justify="center" pr="2" pr="0">
|
|
115
|
+
<Button
|
|
116
|
+
variant="soft"
|
|
117
|
+
color="gray"
|
|
118
|
+
size="1"
|
|
119
|
+
disabled={loading}
|
|
120
|
+
loading={loading}
|
|
121
|
+
onClick={handleClickTrack}
|
|
122
|
+
style={{ minWidth: '63px' }}
|
|
123
|
+
>
|
|
116
124
|
{labels.process || 'Process'}
|
|
117
125
|
</Button>
|
|
118
126
|
</Flex>
|
|
@@ -261,6 +261,13 @@ export const WithTrackVoiceStates = {
|
|
|
261
261
|
"duration": 30.72,
|
|
262
262
|
"type": "voice",
|
|
263
263
|
"tracks": [
|
|
264
|
+
{
|
|
265
|
+
"id": "q8pzli0h38ptcxq09h2al-0",
|
|
266
|
+
"title": "Ana",
|
|
267
|
+
"type": "voice",
|
|
268
|
+
"cover": "https://picsum.photos/101/101",
|
|
269
|
+
"transfers": [],
|
|
270
|
+
},
|
|
264
271
|
{
|
|
265
272
|
"id": "q8pzli0h38ptcx211133q09h2al-0",
|
|
266
273
|
"title": "Joyce",
|
|
@@ -268,11 +275,15 @@ export const WithTrackVoiceStates = {
|
|
|
268
275
|
"loading": true,
|
|
269
276
|
},
|
|
270
277
|
{
|
|
271
|
-
"id": "
|
|
272
|
-
"title": "
|
|
278
|
+
"id": "q8pzli0h38ptcx211133q09h2al-0",
|
|
279
|
+
"title": "Carlos",
|
|
273
280
|
"type": "voice",
|
|
274
|
-
"
|
|
275
|
-
"transfers": [
|
|
281
|
+
"loading": true,
|
|
282
|
+
"transfers": [{
|
|
283
|
+
"id": "q8pzli0h38ptcxq09h1122al",
|
|
284
|
+
"pitchShift": "12",
|
|
285
|
+
"audioUrl": null
|
|
286
|
+
}],
|
|
276
287
|
},
|
|
277
288
|
{
|
|
278
289
|
"id": "q8pzli0h38ptcxq09h2al3-0",
|
|
@@ -288,6 +299,21 @@ export const WithTrackVoiceStates = {
|
|
|
288
299
|
"pitchShift": "13",
|
|
289
300
|
"audioUrl": "https://d3-stage.moises.ai/v3/download/moises-stage--tasks-us-east1/operations/VOICETRANSFER_A/0a6c2a03-320e-49f2-9ea6-a5ad7bbb6141/vocals.m4a"
|
|
290
301
|
}],
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "q8pzli0h38ptcxq09h2al3-0",
|
|
305
|
+
"title": "Claudia",
|
|
306
|
+
"type": "voice",
|
|
307
|
+
"cover": "https://picsum.photos/105/105",
|
|
308
|
+
"transfers": [{
|
|
309
|
+
"id": "q8pzli0h38ptcxq09h1122al",
|
|
310
|
+
"pitchShift": "1",
|
|
311
|
+
"audioUrl": "https://d3-stage.moises.ai/v3/download/moises-stage--tasks-us-east1/operations/VOICETRANSFER_A/0b926e1f-52ce-4581-9f76-09545eed1c61/vocals.m4"
|
|
312
|
+
}, {
|
|
313
|
+
"id": "q8pzli0h38ptcxq03339h2al2",
|
|
314
|
+
"pitchShift": "2",
|
|
315
|
+
"audioUrl": null
|
|
316
|
+
}],
|
|
291
317
|
}
|
|
292
318
|
]
|
|
293
319
|
}],
|