@moises.ai/design-system 3.11.17 → 3.11.18
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as a, jsxs as f, Fragment as fe } from "react/jsx-runtime";
|
|
3
3
|
import { h as Wa, f as ar, ag as Ql, a as ks, g as Je, ah as Ml, P as we, i as ge, u as Et, ai as Ul, aj as ja, e as Ha, F as Ka, ak as Ol, E as Fl, al as Pl, am as zl, an as Wl, ao as jl, D as Hl, c as ys, ap as Kl, aq as Ll, J as or, ar as Vl, as as Gl, at as Re, au as bs, av as ql, aw as Yl, ax as Xl, ay as Zl, az as _l, aA as $l, aB as ec, aC as tc, aD as nc, aE as rc, aF as sc, aG as ac, aH as oc, aI as ic, R as lc, aJ as La, aK as Va, aL as Xr, aM as Zr, aN as cc, aO as dc, aP as uc, aQ as hc, aR as Ac, aS as pc, aT as gc, aU as mc, aV as fc, aW as Cc, aX as vc, aY as kc, aZ as yc, a_ as bc, a$ as Ic, b0 as Sc, b1 as Is, b2 as Ss, b3 as Es, b4 as Ec, b5 as wc, b6 as Ga, b7 as qa, b8 as Ya, H as Xa, O as Rc, Q as Nc, b9 as Bc, ba as xc, bb as Tc, bc as Jc, bd as Dc, be as Qc, bf as ws, bg as Rs, bh as Za, bi as Ns, bj as Bs, bk as _a, bl as $a, bm as eo, _ as to, bn as Mc, bo as Uc, bp as Oc, bq as Fc, br as la, bs as ca, a1 as Pc, b as zc, C as Wc, bt as jc, bu as Hc, bv as Kc, bw as Lc } from "./index-Dwaw5zqT.js";
|
|
4
4
|
import * as h from "react";
|
|
5
|
-
import Ee, { createContext as ln, useContext as dt, useCallback as
|
|
5
|
+
import Ee, { createContext as ln, useContext as dt, useCallback as D, memo as Ze, forwardRef as Vc, useState as K, useEffect as ie, useMemo as _, useRef as ee, Children as Gc, useLayoutEffect as qc, Fragment as Yc } from "react";
|
|
6
6
|
import { aZ as xs, dA as no, az as ro, j0 as Xc, gc as hr, bY as Zc, D as _c, w as $c, c2 as ed, aG as so, y as Ar, bA as td, dB as Mn, j1 as nd, j2 as rd, ef as sd, fq as ad, aK as od, hn as id, eX as _r, b as $r, cm as yt, bM as ld, ds as cd, i8 as dd, h9 as ud, dN as hd, dM as Ts, hM as Js, iX as ao, fV as oo, dH as rn, T as Ds, cj as Qs, iN as Ad, iL as es, hA as pd, eC as io, iy as gd, hD as md, hE as fd, j3 as Cd, gQ as Ms, eL as da, h2 as Mr, eK as ua, de as vd, gP as kd, ep as yd, gE as bd, cG as Id, ie as Sd, I as Ed, hp as wd, gd as lo, dz as co, ho as uo, dr as Rd, iO as ha, aF as Nd, aI as Bd, eP as xd, fR as Td, g9 as Jd, A as Dd } from "./MinusIcon-BS8c20DV.js";
|
|
7
7
|
import { useSensors as Qd, useSensor as Md, PointerSensor as Ud, pointerWithin as Od, useDndMonitor as Fd, useDroppable as ho, DndContext as Pd, DragOverlay as zd } from "@dnd-kit/core";
|
|
8
8
|
import { snapCenterToCursor as Wd } from "@dnd-kit/modifiers";
|
|
@@ -31,17 +31,17 @@ var Gd = [" ", "Enter", "ArrowUp", "ArrowDown"], qd = [" ", "Enter"], Lt = "Sele
|
|
|
31
31
|
disabled: g,
|
|
32
32
|
required: v,
|
|
33
33
|
form: C
|
|
34
|
-
} = n, m = mr(t), [I, k] = h.useState(null), [E, S] = h.useState(null), [
|
|
34
|
+
} = n, m = mr(t), [I, k] = h.useState(null), [E, S] = h.useState(null), [R, w] = h.useState(!1), N = Wa(u), [B, x] = ar({
|
|
35
35
|
prop: s,
|
|
36
36
|
defaultProp: o ?? !1,
|
|
37
37
|
onChange: i,
|
|
38
38
|
caller: Lt
|
|
39
|
-
}), [
|
|
39
|
+
}), [J, T] = ar({
|
|
40
40
|
prop: l,
|
|
41
41
|
defaultProp: c,
|
|
42
42
|
onChange: d,
|
|
43
43
|
caller: Lt
|
|
44
|
-
}), Q = h.useRef(null), M = I ? C || !!I.closest("form") : !0, [
|
|
44
|
+
}), Q = h.useRef(null), M = I ? C || !!I.closest("form") : !0, [O, U] = h.useState(/* @__PURE__ */ new Set()), F = Array.from(O).map((z) => z.props.value).join(";");
|
|
45
45
|
return /* @__PURE__ */ a(Ql, { ...m, children: /* @__PURE__ */ f(
|
|
46
46
|
Xd,
|
|
47
47
|
{
|
|
@@ -51,14 +51,14 @@ var Gd = [" ", "Enter", "ArrowUp", "ArrowDown"], qd = [" ", "Enter"], Lt = "Sele
|
|
|
51
51
|
onTriggerChange: k,
|
|
52
52
|
valueNode: E,
|
|
53
53
|
onValueNodeChange: S,
|
|
54
|
-
valueNodeHasChildren:
|
|
55
|
-
onValueNodeHasChildrenChange:
|
|
54
|
+
valueNodeHasChildren: R,
|
|
55
|
+
onValueNodeHasChildrenChange: w,
|
|
56
56
|
contentId: ks(),
|
|
57
|
-
value:
|
|
58
|
-
onValueChange:
|
|
59
|
-
open:
|
|
60
|
-
onOpenChange:
|
|
61
|
-
dir:
|
|
57
|
+
value: J,
|
|
58
|
+
onValueChange: T,
|
|
59
|
+
open: B,
|
|
60
|
+
onOpenChange: x,
|
|
61
|
+
dir: N,
|
|
62
62
|
triggerPointerDownPosRef: Q,
|
|
63
63
|
disabled: g,
|
|
64
64
|
children: [
|
|
@@ -86,16 +86,16 @@ var Gd = [" ", "Enter", "ArrowUp", "ArrowDown"], qd = [" ", "Enter"], Lt = "Sele
|
|
|
86
86
|
tabIndex: -1,
|
|
87
87
|
name: p,
|
|
88
88
|
autoComplete: A,
|
|
89
|
-
value:
|
|
90
|
-
onChange: (z) =>
|
|
89
|
+
value: J,
|
|
90
|
+
onChange: (z) => T(z.target.value),
|
|
91
91
|
disabled: g,
|
|
92
92
|
form: C,
|
|
93
93
|
children: [
|
|
94
|
-
|
|
95
|
-
Array.from(
|
|
94
|
+
J === void 0 ? /* @__PURE__ */ a("option", { value: "" }) : null,
|
|
95
|
+
Array.from(O)
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
F
|
|
99
99
|
) : null
|
|
100
100
|
]
|
|
101
101
|
}
|
|
@@ -210,9 +210,9 @@ var Xe = 10, [bo, Nt] = cn(Vt), tu = "SelectContentImpl", nu = Kl("SelectContent
|
|
|
210
210
|
avoidCollisions: I,
|
|
211
211
|
//
|
|
212
212
|
...k
|
|
213
|
-
} = n, E = Rt(Vt, r), [S,
|
|
213
|
+
} = n, E = Rt(Vt, r), [S, R] = h.useState(null), [w, N] = h.useState(null), B = Je(t, (j) => R(j)), [x, J] = h.useState(null), [T, Q] = h.useState(
|
|
214
214
|
null
|
|
215
|
-
), M = gr(r), [
|
|
215
|
+
), M = gr(r), [O, U] = h.useState(!1), F = h.useRef(!1);
|
|
216
216
|
h.useEffect(() => {
|
|
217
217
|
if (S) return Pl(S);
|
|
218
218
|
}, [S]), zl();
|
|
@@ -220,16 +220,16 @@ var Xe = 10, [bo, Nt] = cn(Vt), tu = "SelectContentImpl", nu = Kl("SelectContent
|
|
|
220
220
|
(j) => {
|
|
221
221
|
const [le, ...Ie] = M().map((oe) => oe.ref.current), [ce] = Ie.slice(-1), ae = document.activeElement;
|
|
222
222
|
for (const oe of j)
|
|
223
|
-
if (oe === ae || (oe == null || oe.scrollIntoView({ block: "nearest" }), oe === le &&
|
|
223
|
+
if (oe === ae || (oe == null || oe.scrollIntoView({ block: "nearest" }), oe === le && w && (w.scrollTop = 0), oe === ce && w && (w.scrollTop = w.scrollHeight), oe == null || oe.focus(), document.activeElement !== ae)) return;
|
|
224
224
|
},
|
|
225
|
-
[M,
|
|
225
|
+
[M, w]
|
|
226
226
|
), X = h.useCallback(
|
|
227
|
-
() => z([
|
|
228
|
-
[z,
|
|
227
|
+
() => z([x, S]),
|
|
228
|
+
[z, x, S]
|
|
229
229
|
);
|
|
230
230
|
h.useEffect(() => {
|
|
231
|
-
|
|
232
|
-
}, [
|
|
231
|
+
O && X();
|
|
232
|
+
}, [O, X]);
|
|
233
233
|
const { onOpenChange: $, triggerPointerDownPosRef: W } = E;
|
|
234
234
|
h.useEffect(() => {
|
|
235
235
|
if (S) {
|
|
@@ -258,13 +258,13 @@ var Xe = 10, [bo, Nt] = cn(Vt), tu = "SelectContentImpl", nu = Kl("SelectContent
|
|
|
258
258
|
ce && setTimeout(() => ce.ref.current.focus());
|
|
259
259
|
}), ke = h.useCallback(
|
|
260
260
|
(j, le, Ie) => {
|
|
261
|
-
const ce = !
|
|
262
|
-
(E.value !== void 0 && E.value === le || ce) && (
|
|
261
|
+
const ce = !F.current && !Ie;
|
|
262
|
+
(E.value !== void 0 && E.value === le || ce) && (J(j), ce && (F.current = !0));
|
|
263
263
|
},
|
|
264
264
|
[E.value]
|
|
265
265
|
), Le = h.useCallback(() => S == null ? void 0 : S.focus(), [S]), be = h.useCallback(
|
|
266
266
|
(j, le, Ie) => {
|
|
267
|
-
const ce = !
|
|
267
|
+
const ce = !F.current && !Ie;
|
|
268
268
|
(E.value !== void 0 && E.value === le || ce) && Q(j);
|
|
269
269
|
},
|
|
270
270
|
[E.value]
|
|
@@ -285,16 +285,16 @@ var Xe = 10, [bo, Nt] = cn(Vt), tu = "SelectContentImpl", nu = Kl("SelectContent
|
|
|
285
285
|
{
|
|
286
286
|
scope: r,
|
|
287
287
|
content: S,
|
|
288
|
-
viewport:
|
|
289
|
-
onViewportChange:
|
|
288
|
+
viewport: w,
|
|
289
|
+
onViewportChange: N,
|
|
290
290
|
itemRefCallback: ke,
|
|
291
|
-
selectedItem:
|
|
291
|
+
selectedItem: x,
|
|
292
292
|
onItemLeave: Le,
|
|
293
293
|
itemTextRefCallback: be,
|
|
294
294
|
focusSelectedItem: X,
|
|
295
|
-
selectedItemText:
|
|
295
|
+
selectedItemText: T,
|
|
296
296
|
position: s,
|
|
297
|
-
isPositioned:
|
|
297
|
+
isPositioned: O,
|
|
298
298
|
searchRef: re,
|
|
299
299
|
children: /* @__PURE__ */ a(Wl, { as: nu, allowPinchZoom: !0, children: /* @__PURE__ */ a(
|
|
300
300
|
jl,
|
|
@@ -328,7 +328,7 @@ var Xe = 10, [bo, Nt] = cn(Vt), tu = "SelectContentImpl", nu = Kl("SelectContent
|
|
|
328
328
|
...k,
|
|
329
329
|
...L,
|
|
330
330
|
onPlaced: () => U(!0),
|
|
331
|
-
ref:
|
|
331
|
+
ref: B,
|
|
332
332
|
style: {
|
|
333
333
|
// flex layout so we can place the scroll buttons properly
|
|
334
334
|
display: "flex",
|
|
@@ -360,11 +360,11 @@ var Xe = 10, [bo, Nt] = cn(Vt), tu = "SelectContentImpl", nu = Kl("SelectContent
|
|
|
360
360
|
);
|
|
361
361
|
Io.displayName = tu;
|
|
362
362
|
var ru = "SelectItemAlignedPosition", So = h.forwardRef((n, t) => {
|
|
363
|
-
const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Rt(Vt, r), l = Nt(Vt, r), [c, d] = h.useState(null), [u, p] = h.useState(null), A = Je(t, (
|
|
363
|
+
const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Rt(Vt, r), l = Nt(Vt, r), [c, d] = h.useState(null), [u, p] = h.useState(null), A = Je(t, (B) => p(B)), g = gr(r), v = h.useRef(!1), C = h.useRef(!0), { viewport: m, selectedItem: I, selectedItemText: k, focusSelectedItem: E } = l, S = h.useCallback(() => {
|
|
364
364
|
if (i.trigger && i.valueNode && c && u && m && I && k) {
|
|
365
|
-
const
|
|
365
|
+
const B = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), J = i.valueNode.getBoundingClientRect(), T = k.getBoundingClientRect();
|
|
366
366
|
if (i.dir !== "rtl") {
|
|
367
|
-
const ae =
|
|
367
|
+
const ae = T.left - x.left, oe = J.left - ae, qe = B.left - oe, Ye = B.width + qe, Qe = Math.max(Ye, x.width), ut = window.innerWidth - Xe, at = or(oe, [
|
|
368
368
|
Xe,
|
|
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 ru = "SelectItemAlignedPosition", So = h.forwardRef((n, t) => {
|
|
|
375
375
|
]);
|
|
376
376
|
c.style.minWidth = Ye + "px", c.style.left = at + "px";
|
|
377
377
|
} else {
|
|
378
|
-
const ae =
|
|
378
|
+
const ae = x.right - T.right, oe = window.innerWidth - J.right - ae, qe = window.innerWidth - B.right - oe, Ye = B.width + qe, Qe = Math.max(Ye, x.width), ut = window.innerWidth - Xe, at = or(oe, [
|
|
379
379
|
Xe,
|
|
380
380
|
Math.max(Xe, ut - Qe)
|
|
381
381
|
]);
|
|
382
382
|
c.style.minWidth = Ye + "px", c.style.right = at + "px";
|
|
383
383
|
}
|
|
384
|
-
const Q = g(), M = window.innerHeight - Xe * 2,
|
|
384
|
+
const Q = g(), M = window.innerHeight - Xe * 2, O = m.scrollHeight, U = window.getComputedStyle(u), F = parseInt(U.borderTopWidth, 10), z = parseInt(U.paddingTop, 10), X = parseInt(U.borderBottomWidth, 10), $ = parseInt(U.paddingBottom, 10), W = F + z + O + $ + X, re = Math.min(I.offsetHeight * 5, W), Ne = window.getComputedStyle(m), ke = parseInt(Ne.paddingTop, 10), Le = parseInt(Ne.paddingBottom, 10), be = B.top + B.height / 2 - Xe, se = M - be, L = I.offsetHeight / 2, j = I.offsetTop + L, le = F + z + j, Ie = W - le;
|
|
385
385
|
if (le <= be) {
|
|
386
386
|
const ae = Q.length > 0 && I === Q[Q.length - 1].ref.current;
|
|
387
387
|
c.style.bottom = "0px";
|
|
@@ -396,7 +396,7 @@ var ru = "SelectItemAlignedPosition", So = h.forwardRef((n, t) => {
|
|
|
396
396
|
c.style.top = "0px";
|
|
397
397
|
const qe = Math.max(
|
|
398
398
|
be,
|
|
399
|
-
|
|
399
|
+
F + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
400
400
|
(ae ? ke : 0) + L
|
|
401
401
|
) + Ie;
|
|
402
402
|
c.style.height = qe + "px", m.scrollTop = le - be + m.offsetTop;
|
|
@@ -416,13 +416,13 @@ var ru = "SelectItemAlignedPosition", So = h.forwardRef((n, t) => {
|
|
|
416
416
|
s
|
|
417
417
|
]);
|
|
418
418
|
Et(() => S(), [S]);
|
|
419
|
-
const [
|
|
419
|
+
const [R, w] = h.useState();
|
|
420
420
|
Et(() => {
|
|
421
|
-
u &&
|
|
421
|
+
u && w(window.getComputedStyle(u).zIndex);
|
|
422
422
|
}, [u]);
|
|
423
|
-
const
|
|
424
|
-
(
|
|
425
|
-
|
|
423
|
+
const N = h.useCallback(
|
|
424
|
+
(B) => {
|
|
425
|
+
B && C.current === !0 && (S(), E == null || E(), C.current = !1);
|
|
426
426
|
},
|
|
427
427
|
[S, E]
|
|
428
428
|
);
|
|
@@ -432,7 +432,7 @@ var ru = "SelectItemAlignedPosition", So = h.forwardRef((n, t) => {
|
|
|
432
432
|
scope: r,
|
|
433
433
|
contentWrapper: c,
|
|
434
434
|
shouldExpandOnScrollRef: v,
|
|
435
|
-
onScrollButtonChange:
|
|
435
|
+
onScrollButtonChange: N,
|
|
436
436
|
children: /* @__PURE__ */ a(
|
|
437
437
|
"div",
|
|
438
438
|
{
|
|
@@ -441,7 +441,7 @@ var ru = "SelectItemAlignedPosition", So = h.forwardRef((n, t) => {
|
|
|
441
441
|
display: "flex",
|
|
442
442
|
flexDirection: "column",
|
|
443
443
|
position: "fixed",
|
|
444
|
-
zIndex:
|
|
444
|
+
zIndex: R
|
|
445
445
|
},
|
|
446
446
|
children: /* @__PURE__ */ a(
|
|
447
447
|
we.div,
|
|
@@ -533,8 +533,8 @@ var [au, Us] = cn(Vt, {}), ns = "SelectViewport", Eo = h.forwardRef(
|
|
|
533
533
|
if (v > 0) {
|
|
534
534
|
const C = window.innerHeight - Xe * 2, m = parseFloat(A.style.minHeight), I = parseFloat(A.style.height), k = Math.max(m, I);
|
|
535
535
|
if (k < C) {
|
|
536
|
-
const E = k + v, S = Math.min(C, E),
|
|
537
|
-
A.style.height = S + "px", A.style.bottom === "0px" && (p.scrollTop =
|
|
536
|
+
const E = k + v, S = Math.min(C, E), R = E - S;
|
|
537
|
+
A.style.height = S + "px", A.style.bottom === "0px" && (p.scrollTop = R > 0 ? R : 0, A.style.justifyContent = "flex-end");
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -632,8 +632,8 @@ var ir = "SelectItem", [lu, xo] = cn(ir), To = h.forwardRef(
|
|
|
632
632
|
E.currentTarget === document.activeElement && ((S = d.onItemLeave) == null || S.call(d));
|
|
633
633
|
}),
|
|
634
634
|
onKeyDown: ge(l.onKeyDown, (E) => {
|
|
635
|
-
var
|
|
636
|
-
((
|
|
635
|
+
var R;
|
|
636
|
+
((R = d.searchRef) == null ? void 0 : R.current) !== "" && E.key === " " || (qd.includes(E.key) && k(), E.key === " " && E.preventDefault());
|
|
637
637
|
})
|
|
638
638
|
}
|
|
639
639
|
)
|
|
@@ -842,33 +842,33 @@ var gu = po, mu = mo, fu = Co, Cu = vo, vu = ko, ku = yo, yu = Eo, bu = Ro, Iu =
|
|
|
842
842
|
inverted: v = !1,
|
|
843
843
|
form: C,
|
|
844
844
|
...m
|
|
845
|
-
} = n, I = h.useRef(/* @__PURE__ */ new Set()), k = h.useRef(0), S = l === "horizontal" ? Tu : Ju, [
|
|
845
|
+
} = n, I = h.useRef(/* @__PURE__ */ new Set()), k = h.useRef(0), S = l === "horizontal" ? Tu : Ju, [R = [], w] = ar({
|
|
846
846
|
prop: p,
|
|
847
847
|
defaultProp: u,
|
|
848
848
|
onChange: (Q) => {
|
|
849
|
-
var
|
|
850
|
-
(
|
|
849
|
+
var O;
|
|
850
|
+
(O = [...I.current][k.current]) == null || O.focus(), A(Q);
|
|
851
851
|
}
|
|
852
|
-
}),
|
|
853
|
-
function
|
|
854
|
-
const M = Ou(
|
|
855
|
-
|
|
852
|
+
}), N = h.useRef(R);
|
|
853
|
+
function B(Q) {
|
|
854
|
+
const M = Ou(R, Q);
|
|
855
|
+
T(Q, M);
|
|
856
856
|
}
|
|
857
|
-
function
|
|
858
|
-
|
|
857
|
+
function x(Q) {
|
|
858
|
+
T(Q, k.current);
|
|
859
859
|
}
|
|
860
|
-
function
|
|
861
|
-
const Q =
|
|
862
|
-
|
|
860
|
+
function J() {
|
|
861
|
+
const Q = N.current[k.current];
|
|
862
|
+
R[k.current] !== Q && g(R);
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
const U = Wu(i),
|
|
866
|
-
|
|
864
|
+
function T(Q, M, { commit: O } = { commit: !1 }) {
|
|
865
|
+
const U = Wu(i), F = ju(Math.round((Q - s) / i) * i + s, U), z = or(F, [s, o]);
|
|
866
|
+
w((X = []) => {
|
|
867
867
|
const $ = Mu(X, z, M);
|
|
868
868
|
if (zu($, d * i)) {
|
|
869
869
|
k.current = $.indexOf(z);
|
|
870
870
|
const W = String($) !== String(X);
|
|
871
|
-
return W &&
|
|
871
|
+
return W && O && g($), W ? $ : X;
|
|
872
872
|
} else
|
|
873
873
|
return X;
|
|
874
874
|
});
|
|
@@ -883,7 +883,7 @@ var gu = po, mu = mo, fu = Co, Cu = vo, vu = ko, ku = yo, yu = Eo, bu = Ro, Iu =
|
|
|
883
883
|
max: o,
|
|
884
884
|
valueIndexToChangeRef: k,
|
|
885
885
|
thumbs: I.current,
|
|
886
|
-
values:
|
|
886
|
+
values: R,
|
|
887
887
|
orientation: l,
|
|
888
888
|
form: C,
|
|
889
889
|
children: /* @__PURE__ */ a(os.Provider, { scope: n.__scopeSlider, children: /* @__PURE__ */ a(os.Slot, { scope: n.__scopeSlider, children: /* @__PURE__ */ a(
|
|
@@ -894,20 +894,20 @@ var gu = po, mu = mo, fu = Co, Cu = vo, vu = ko, ku = yo, yu = Eo, bu = Ro, Iu =
|
|
|
894
894
|
...m,
|
|
895
895
|
ref: t,
|
|
896
896
|
onPointerDown: ge(m.onPointerDown, () => {
|
|
897
|
-
c || (
|
|
897
|
+
c || (N.current = R);
|
|
898
898
|
}),
|
|
899
899
|
min: s,
|
|
900
900
|
max: o,
|
|
901
901
|
inverted: v,
|
|
902
|
-
onSlideStart: c ? void 0 :
|
|
903
|
-
onSlideMove: c ? void 0 :
|
|
904
|
-
onSlideEnd: c ? void 0 :
|
|
905
|
-
onHomeKeyDown: () => !c &&
|
|
906
|
-
onEndKeyDown: () => !c &&
|
|
902
|
+
onSlideStart: c ? void 0 : B,
|
|
903
|
+
onSlideMove: c ? void 0 : x,
|
|
904
|
+
onSlideEnd: c ? void 0 : J,
|
|
905
|
+
onHomeKeyDown: () => !c && T(s, 0, { commit: !0 }),
|
|
906
|
+
onEndKeyDown: () => !c && T(o, R.length - 1, { commit: !0 }),
|
|
907
907
|
onStepKeyDown: ({ event: Q, direction: M }) => {
|
|
908
908
|
if (!c) {
|
|
909
|
-
const
|
|
910
|
-
|
|
909
|
+
const F = Wo.includes(Q.key) || Q.shiftKey && jo.includes(Q.key) ? 10 : 1, z = k.current, X = R[z], $ = i * F * M;
|
|
910
|
+
T(X + $, z, { commit: !0 });
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
913
|
}
|
|
@@ -936,8 +936,8 @@ var [Vo, Go] = Ko(dn, {
|
|
|
936
936
|
...p
|
|
937
937
|
} = n, [A, g] = h.useState(null), v = Je(t, (S) => g(S)), C = h.useRef(void 0), m = Wa(o), I = m === "ltr", k = I && !i || !I && i;
|
|
938
938
|
function E(S) {
|
|
939
|
-
const
|
|
940
|
-
return C.current =
|
|
939
|
+
const R = C.current || A.getBoundingClientRect(), w = [0, R.width], B = Os(w, k ? [r, s] : [s, r]);
|
|
940
|
+
return C.current = R, B(S - R.left);
|
|
941
941
|
}
|
|
942
942
|
return /* @__PURE__ */ a(
|
|
943
943
|
Vo,
|
|
@@ -959,19 +959,19 @@ var [Vo, Go] = Ko(dn, {
|
|
|
959
959
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
960
960
|
},
|
|
961
961
|
onSlideStart: (S) => {
|
|
962
|
-
const
|
|
963
|
-
l == null || l(
|
|
962
|
+
const R = E(S.clientX);
|
|
963
|
+
l == null || l(R);
|
|
964
964
|
},
|
|
965
965
|
onSlideMove: (S) => {
|
|
966
|
-
const
|
|
967
|
-
c == null || c(
|
|
966
|
+
const R = E(S.clientX);
|
|
967
|
+
c == null || c(R);
|
|
968
968
|
},
|
|
969
969
|
onSlideEnd: () => {
|
|
970
970
|
C.current = void 0, d == null || d();
|
|
971
971
|
},
|
|
972
972
|
onStepKeyDown: (S) => {
|
|
973
|
-
const
|
|
974
|
-
u == null || u({ event: S, direction:
|
|
973
|
+
const w = Ho[k ? "from-left" : "from-right"].includes(S.key);
|
|
974
|
+
u == null || u({ event: S, direction: w ? -1 : 1 });
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
)
|
|
@@ -1426,13 +1426,13 @@ const di = h.forwardRef((n, t) => {
|
|
|
1426
1426
|
h.useEffect(() => k(i), [i]);
|
|
1427
1427
|
const [E, S] = h.useState(l);
|
|
1428
1428
|
h.useEffect(() => S(l), [l]);
|
|
1429
|
-
const [
|
|
1430
|
-
return h.useEffect(() =>
|
|
1429
|
+
const [R, w] = h.useState(c);
|
|
1430
|
+
return h.useEffect(() => w(c), [c]), h.createElement(Ps, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: p, accentColor: g, grayColor: C, panelBackground: I, radius: E, scaling: R, onAppearanceChange: A, onAccentColorChange: v, onGrayColorChange: m, onPanelBackgroundChange: k, onRadiusChange: S, onScalingChange: w });
|
|
1431
1431
|
});
|
|
1432
1432
|
di.displayName = "ThemeRoot";
|
|
1433
1433
|
const Ps = h.forwardRef((n, t) => {
|
|
1434
|
-
const r = h.useContext(lr), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? He.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? He.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? He.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? He.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? He.radius.default, scaling: A = (r == null ? void 0 : r.scaling) ?? He.scaling.default, onAppearanceChange: g = Zt, onAccentColorChange: v = Zt, onGrayColorChange: C = Zt, onPanelBackgroundChange: m = Zt, onRadiusChange: I = Zt, onScalingChange: k = Zt, ...E } = n, S = s ? Re : "div",
|
|
1435
|
-
return h.createElement(lr.Provider, { value: h.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor:
|
|
1434
|
+
const r = h.useContext(lr), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? He.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? He.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? He.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? He.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? He.radius.default, scaling: A = (r == null ? void 0 : r.scaling) ?? He.scaling.default, onAppearanceChange: g = Zt, onAccentColorChange: v = Zt, onGrayColorChange: C = Zt, onPanelBackgroundChange: m = Zt, onRadiusChange: I = Zt, onScalingChange: k = Zt, ...E } = n, S = s ? Re : "div", R = d === "auto" ? rh(c) : d, w = n.appearance === "light" || n.appearance === "dark", N = i === void 0 ? o || w : i;
|
|
1435
|
+
return h.createElement(lr.Provider, { value: h.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: R, panelBackground: u, radius: p, scaling: A, onAppearanceChange: g, onAccentColorChange: v, onGrayColorChange: C, onPanelBackgroundChange: m, onRadiusChange: I, onScalingChange: k }), [l, c, d, R, u, p, A, g, v, C, m, I, k]) }, h.createElement(S, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": R, "data-has-background": N ? "true" : "false", "data-panel-background": u, "data-radius": p, "data-scaling": A, ref: t, ...E, className: y("radix-themes", { light: l === "light", dark: l === "dark" }, E.className) }));
|
|
1436
1436
|
});
|
|
1437
1437
|
Ps.displayName = "ThemeImpl";
|
|
1438
1438
|
const xt = (n) => {
|
|
@@ -2228,7 +2228,7 @@ const Gg = ({
|
|
|
2228
2228
|
}) => {
|
|
2229
2229
|
const u = () => {
|
|
2230
2230
|
window.open(s, "_self"), o == null || o();
|
|
2231
|
-
}, p =
|
|
2231
|
+
}, p = D(
|
|
2232
2232
|
(A) => {
|
|
2233
2233
|
A.stopPropagation(), d == null || d();
|
|
2234
2234
|
},
|
|
@@ -2950,25 +2950,25 @@ const uf = "_DataTable_kyf7f_1", hf = "_titleText_kyf7f_23", Af = "_artistText_k
|
|
|
2950
2950
|
const r = (o = (s = n.active) == null ? void 0 : s.data) == null ? void 0 : o.current;
|
|
2951
2951
|
return !((r == null ? void 0 : r.source) !== "data-table" || t && r.dndScopeId !== t);
|
|
2952
2952
|
}, sC = ({ handlers: n, dndScopeId: t }) => (Fd({
|
|
2953
|
-
onDragStart:
|
|
2953
|
+
onDragStart: D(
|
|
2954
2954
|
(r) => {
|
|
2955
2955
|
Ln(r, t) && n.current.onDragStart(r);
|
|
2956
2956
|
},
|
|
2957
2957
|
[t, n]
|
|
2958
2958
|
),
|
|
2959
|
-
onDragOver:
|
|
2959
|
+
onDragOver: D(
|
|
2960
2960
|
(r) => {
|
|
2961
2961
|
Ln(r, t) && n.current.onDragOver(r);
|
|
2962
2962
|
},
|
|
2963
2963
|
[t, n]
|
|
2964
2964
|
),
|
|
2965
|
-
onDragCancel:
|
|
2965
|
+
onDragCancel: D(
|
|
2966
2966
|
(r) => {
|
|
2967
2967
|
Ln(r, t) && n.current.onDragCancel(r);
|
|
2968
2968
|
},
|
|
2969
2969
|
[t, n]
|
|
2970
2970
|
),
|
|
2971
|
-
onDragEnd:
|
|
2971
|
+
onDragEnd: D(
|
|
2972
2972
|
(r) => {
|
|
2973
2973
|
Ln(r, t) && n.current.onDragEnd(r);
|
|
2974
2974
|
},
|
|
@@ -2989,56 +2989,56 @@ const uf = "_DataTable_kyf7f_1", hf = "_titleText_kyf7f_23", Af = "_artistText_k
|
|
|
2989
2989
|
activationConstraint: { distance: 6 }
|
|
2990
2990
|
})
|
|
2991
2991
|
), m = _(
|
|
2992
|
-
() => new Map(n.map((
|
|
2992
|
+
() => new Map(n.map((B) => [B.id, B])),
|
|
2993
2993
|
[n]
|
|
2994
|
-
), I =
|
|
2994
|
+
), I = D(() => {
|
|
2995
2995
|
u(null), A(null), v(null);
|
|
2996
|
-
}, []), k =
|
|
2997
|
-
(
|
|
2998
|
-
var
|
|
2999
|
-
const
|
|
3000
|
-
if (!
|
|
3001
|
-
const
|
|
3002
|
-
if (!
|
|
3003
|
-
const
|
|
3004
|
-
row:
|
|
2996
|
+
}, []), k = D(
|
|
2997
|
+
(B) => {
|
|
2998
|
+
var O;
|
|
2999
|
+
const x = String(((O = B.active) == null ? void 0 : O.id) ?? "");
|
|
3000
|
+
if (!x) return;
|
|
3001
|
+
const J = m.get(x);
|
|
3002
|
+
if (!J) return;
|
|
3003
|
+
const T = t.has(x), Q = T && r.length > 0 ? r : [J], M = {
|
|
3004
|
+
row: J,
|
|
3005
3005
|
selectedRows: Q,
|
|
3006
|
-
isDraggedRowSelected:
|
|
3006
|
+
isDraggedRowSelected: T
|
|
3007
3007
|
};
|
|
3008
|
-
u(
|
|
3008
|
+
u(x), A(x), v(M), i == null || i(M, B.activatorEvent);
|
|
3009
3009
|
},
|
|
3010
3010
|
[i, m, r, t]
|
|
3011
|
-
), E =
|
|
3012
|
-
var
|
|
3013
|
-
A((
|
|
3014
|
-
}, []), S =
|
|
3015
|
-
(
|
|
3016
|
-
g != null && g.row && (l == null || l(g.row,
|
|
3011
|
+
), E = D((B) => {
|
|
3012
|
+
var x;
|
|
3013
|
+
A((x = B.over) != null && x.id ? String(B.over.id) : null);
|
|
3014
|
+
}, []), S = D(
|
|
3015
|
+
(B) => {
|
|
3016
|
+
g != null && g.row && (l == null || l(g.row, B == null ? void 0 : B.activatorEvent)), I();
|
|
3017
3017
|
},
|
|
3018
3018
|
[g, l, I]
|
|
3019
|
-
),
|
|
3020
|
-
(
|
|
3019
|
+
), R = D(
|
|
3020
|
+
(B) => {
|
|
3021
3021
|
var Q, M;
|
|
3022
|
-
const
|
|
3023
|
-
if (
|
|
3024
|
-
const
|
|
3022
|
+
const x = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""), J = (M = B.over) != null && M.id ? String(B.over.id) : null, T = m.get(x) ?? (g == null ? void 0 : g.row);
|
|
3023
|
+
if (T && (l == null || l(T, B.activatorEvent)), s && J && x) {
|
|
3024
|
+
const O = n.findIndex((F) => F.id === x);
|
|
3025
3025
|
let U = null;
|
|
3026
|
-
if (
|
|
3026
|
+
if (J === us)
|
|
3027
3027
|
U = 0;
|
|
3028
|
-
else if (
|
|
3028
|
+
else if (J === hs)
|
|
3029
3029
|
U = n.length;
|
|
3030
|
-
else if (
|
|
3031
|
-
const
|
|
3032
|
-
|
|
3030
|
+
else if (x !== J) {
|
|
3031
|
+
const F = n.findIndex((z) => z.id === J);
|
|
3032
|
+
F >= 0 && (U = F > O ? F + 1 : F);
|
|
3033
3033
|
}
|
|
3034
|
-
if (
|
|
3035
|
-
const
|
|
3034
|
+
if (O >= 0 && U != null) {
|
|
3035
|
+
const F = tC({
|
|
3036
3036
|
data: n,
|
|
3037
3037
|
selectedSet: t,
|
|
3038
|
-
order:
|
|
3038
|
+
order: O,
|
|
3039
3039
|
moveBefore: U
|
|
3040
3040
|
});
|
|
3041
|
-
|
|
3041
|
+
F && (o == null || o(F));
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
3044
|
I();
|
|
@@ -3053,32 +3053,32 @@ const uf = "_DataTable_kyf7f_1", hf = "_titleText_kyf7f_23", Af = "_artistText_k
|
|
|
3053
3053
|
m,
|
|
3054
3054
|
t
|
|
3055
3055
|
]
|
|
3056
|
-
),
|
|
3056
|
+
), w = _(
|
|
3057
3057
|
() => ({
|
|
3058
3058
|
sensors: C,
|
|
3059
3059
|
collisionDetection: Od,
|
|
3060
3060
|
onDragStart: k,
|
|
3061
3061
|
onDragOver: E,
|
|
3062
3062
|
onDragCancel: S,
|
|
3063
|
-
onDragEnd:
|
|
3063
|
+
onDragEnd: R
|
|
3064
3064
|
}),
|
|
3065
|
-
[S,
|
|
3066
|
-
),
|
|
3065
|
+
[S, R, E, k, C]
|
|
3066
|
+
), N = _(
|
|
3067
3067
|
() => ({
|
|
3068
3068
|
onDragStart: k,
|
|
3069
3069
|
onDragOver: E,
|
|
3070
3070
|
onDragCancel: S,
|
|
3071
|
-
onDragEnd:
|
|
3071
|
+
onDragEnd: R
|
|
3072
3072
|
}),
|
|
3073
|
-
[k, E, S,
|
|
3073
|
+
[k, E, S, R]
|
|
3074
3074
|
);
|
|
3075
3075
|
return {
|
|
3076
|
-
dndContextProps:
|
|
3076
|
+
dndContextProps: w,
|
|
3077
3077
|
activeDragRowId: d,
|
|
3078
3078
|
overDragRowId: p,
|
|
3079
3079
|
activeDragContext: g,
|
|
3080
|
-
sortableItems: n.map((
|
|
3081
|
-
monitorHandlers:
|
|
3080
|
+
sortableItems: n.map((B) => B.id),
|
|
3081
|
+
monitorHandlers: N
|
|
3082
3082
|
};
|
|
3083
3083
|
}, Vn = (n) => typeof n == "string" ? n.toUpperCase() : n, oC = ({
|
|
3084
3084
|
columns: n,
|
|
@@ -3207,7 +3207,7 @@ const dC = Ee.memo(function({
|
|
|
3207
3207
|
dndScopeId: S
|
|
3208
3208
|
}) {
|
|
3209
3209
|
var se;
|
|
3210
|
-
const
|
|
3210
|
+
const R = ee(!1), w = ee(!1), N = ee(!1), B = ee(!1), { listeners: x, setNodeRef: J, transform: T, transition: Q, isDragging: M } = jd({
|
|
3211
3211
|
id: r,
|
|
3212
3212
|
disabled: !Ca({ row: t, rowDraggable: I, reorderable: k }),
|
|
3213
3213
|
data: {
|
|
@@ -3217,50 +3217,50 @@ const dC = Ee.memo(function({
|
|
|
3217
3217
|
row: t,
|
|
3218
3218
|
rowIndex: s
|
|
3219
3219
|
}
|
|
3220
|
-
}),
|
|
3221
|
-
...
|
|
3220
|
+
}), O = {
|
|
3221
|
+
...T ? { transform: Ld.Transform.toString(T) } : {},
|
|
3222
3222
|
...Q ? { transition: Q } : {}
|
|
3223
|
-
}, U = i ? { ...
|
|
3224
|
-
if (
|
|
3225
|
-
|
|
3223
|
+
}, U = i ? { ...O, "--row-bg": "var(--aqua-alpha-2)" } : O, F = (L) => {
|
|
3224
|
+
if (w.current) {
|
|
3225
|
+
w.current = !1;
|
|
3226
3226
|
return;
|
|
3227
3227
|
}
|
|
3228
3228
|
L.shiftKey ? (L.preventDefault(), v == null || v(t, s)) : A == null || A(t);
|
|
3229
3229
|
}, z = (L) => {
|
|
3230
|
-
L.pointerType === "touch" && (
|
|
3230
|
+
L.pointerType === "touch" && (w.current = !0, L.shiftKey ? v == null || v(t, s) : A == null || A(t));
|
|
3231
3231
|
}, X = (L) => {
|
|
3232
|
-
L.stopPropagation(), L.shiftKey && (L.preventDefault(),
|
|
3233
|
-
|
|
3232
|
+
L.stopPropagation(), L.shiftKey && (L.preventDefault(), R.current = !0, v == null || v(t, s), setTimeout(() => {
|
|
3233
|
+
R.current = !1;
|
|
3234
3234
|
}, 0));
|
|
3235
3235
|
}, $ = (L) => {
|
|
3236
3236
|
if (L.key === "Enter") {
|
|
3237
3237
|
if (L.preventDefault(), L.stopPropagation(), L.shiftKey) {
|
|
3238
|
-
|
|
3239
|
-
|
|
3238
|
+
R.current = !0, v == null || v(t, s), setTimeout(() => {
|
|
3239
|
+
R.current = !1;
|
|
3240
3240
|
}, 0);
|
|
3241
3241
|
return;
|
|
3242
3242
|
}
|
|
3243
|
-
r != null && (
|
|
3243
|
+
r != null && (B.current = !0, g == null || g(r, !i));
|
|
3244
3244
|
}
|
|
3245
3245
|
}, W = (L) => {
|
|
3246
|
-
if (L.stopPropagation(),
|
|
3247
|
-
|
|
3246
|
+
if (L.stopPropagation(), N.current) {
|
|
3247
|
+
N.current = !1;
|
|
3248
3248
|
return;
|
|
3249
3249
|
}
|
|
3250
3250
|
L.shiftKey ? (L.preventDefault(), v == null || v(t, s)) : r != null && (g == null || g(r, !i));
|
|
3251
3251
|
}, re = (L) => {
|
|
3252
|
-
L.pointerType === "touch" && (L.stopPropagation(),
|
|
3252
|
+
L.pointerType === "touch" && (L.stopPropagation(), N.current = !0, L.shiftKey ? v == null || v(t, s) : r != null && (g == null || g(r, !i)));
|
|
3253
3253
|
}, Ne = (L) => {
|
|
3254
|
-
if (
|
|
3255
|
-
|
|
3254
|
+
if (R.current) {
|
|
3255
|
+
R.current = !1;
|
|
3256
3256
|
return;
|
|
3257
3257
|
}
|
|
3258
|
-
if (
|
|
3259
|
-
|
|
3258
|
+
if (N.current) {
|
|
3259
|
+
N.current = !1;
|
|
3260
3260
|
return;
|
|
3261
3261
|
}
|
|
3262
|
-
if (
|
|
3263
|
-
|
|
3262
|
+
if (B.current) {
|
|
3263
|
+
B.current = !1;
|
|
3264
3264
|
return;
|
|
3265
3265
|
}
|
|
3266
3266
|
r != null && (g == null || g(r, L === !0));
|
|
@@ -3268,7 +3268,7 @@ const dC = Ee.memo(function({
|
|
|
3268
3268
|
return /* @__PURE__ */ f(
|
|
3269
3269
|
Fn,
|
|
3270
3270
|
{
|
|
3271
|
-
ref:
|
|
3271
|
+
ref: J,
|
|
3272
3272
|
"data-row-id": r ?? void 0,
|
|
3273
3273
|
className: y({
|
|
3274
3274
|
[V.rowSelected]: i,
|
|
@@ -3278,7 +3278,7 @@ const dC = Ee.memo(function({
|
|
|
3278
3278
|
[V.rowReorderable]: be
|
|
3279
3279
|
}),
|
|
3280
3280
|
style: U,
|
|
3281
|
-
...Le ?
|
|
3281
|
+
...Le ? x : {},
|
|
3282
3282
|
children: [
|
|
3283
3283
|
/* @__PURE__ */ a(
|
|
3284
3284
|
bt,
|
|
@@ -3315,14 +3315,14 @@ const dC = Ee.memo(function({
|
|
|
3315
3315
|
),
|
|
3316
3316
|
"data-column-id": L.id,
|
|
3317
3317
|
"data-sorted": d === L.id,
|
|
3318
|
-
onClick: j === 0 ? void 0 :
|
|
3318
|
+
onClick: j === 0 ? void 0 : F,
|
|
3319
3319
|
onPointerUp: j === 0 ? void 0 : z,
|
|
3320
3320
|
children: j === 0 ? /* @__PURE__ */ a(
|
|
3321
3321
|
"button",
|
|
3322
3322
|
{
|
|
3323
3323
|
type: "button",
|
|
3324
3324
|
className: V.rowActionButton,
|
|
3325
|
-
onClick:
|
|
3325
|
+
onClick: F,
|
|
3326
3326
|
onPointerUp: z,
|
|
3327
3327
|
children: C(t)
|
|
3328
3328
|
}
|
|
@@ -3394,25 +3394,25 @@ const dC = Ee.memo(function({
|
|
|
3394
3394
|
overDragRowId: m,
|
|
3395
3395
|
dndScopeId: I
|
|
3396
3396
|
}) => {
|
|
3397
|
-
const k = t.length + 1 + (d ? 1 : 0), E =
|
|
3397
|
+
const k = t.length + 1 + (d ? 1 : 0), E = D((R) => /* @__PURE__ */ f(b, { align: "center", gap: "3", children: [
|
|
3398
3398
|
/* @__PURE__ */ a(
|
|
3399
3399
|
Jr,
|
|
3400
3400
|
{
|
|
3401
|
-
title:
|
|
3401
|
+
title: R.title,
|
|
3402
3402
|
size: 48,
|
|
3403
3403
|
className: V.thumb,
|
|
3404
|
-
type:
|
|
3405
|
-
cover:
|
|
3404
|
+
type: R.type,
|
|
3405
|
+
cover: R.thumb
|
|
3406
3406
|
}
|
|
3407
3407
|
),
|
|
3408
3408
|
/* @__PURE__ */ f(b, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
3409
|
-
/* @__PURE__ */ a(H, { size: "2", className: V.titleText, children:
|
|
3410
|
-
/* @__PURE__ */ a(H, { size: "1", className: V.artistText, children:
|
|
3409
|
+
/* @__PURE__ */ a(H, { size: "2", className: V.titleText, children: R.title }),
|
|
3410
|
+
/* @__PURE__ */ a(H, { size: "1", className: V.artistText, children: R.artist })
|
|
3411
3411
|
] })
|
|
3412
|
-
] }), []), S =
|
|
3413
|
-
var
|
|
3414
|
-
const
|
|
3415
|
-
return typeof
|
|
3412
|
+
] }), []), S = D((R, w, N) => {
|
|
3413
|
+
var T;
|
|
3414
|
+
const B = (R == null ? void 0 : R[w.id]) ?? (R == null ? void 0 : R[`${w.id}Formatted`]), x = ((T = w.render) == null ? void 0 : T.call(w, { row: R, value: B, column: w, index: N })) ?? B;
|
|
3415
|
+
return typeof x == "string" || typeof x == "number" || x == null ? /* @__PURE__ */ a(H, { size: "2", className: V.cellText, children: x }) : x;
|
|
3416
3416
|
}, []);
|
|
3417
3417
|
return /* @__PURE__ */ a(na, { children: /* @__PURE__ */ f(Hd, { items: r, strategy: Kd, children: [
|
|
3418
3418
|
v && /* @__PURE__ */ a(
|
|
@@ -3423,14 +3423,14 @@ const dC = Ee.memo(function({
|
|
|
3423
3423
|
colSpan: k
|
|
3424
3424
|
}
|
|
3425
3425
|
),
|
|
3426
|
-
n.map((
|
|
3426
|
+
n.map((R, w) => /* @__PURE__ */ a(
|
|
3427
3427
|
dC,
|
|
3428
3428
|
{
|
|
3429
|
-
rowId:
|
|
3430
|
-
row:
|
|
3431
|
-
rowIndex:
|
|
3429
|
+
rowId: R.id,
|
|
3430
|
+
row: R,
|
|
3431
|
+
rowIndex: w,
|
|
3432
3432
|
columns: t,
|
|
3433
|
-
isSelected: s(
|
|
3433
|
+
isSelected: s(R, w),
|
|
3434
3434
|
anyRowSelected: o,
|
|
3435
3435
|
selectedCount: i,
|
|
3436
3436
|
sortedKey: l,
|
|
@@ -3443,10 +3443,10 @@ const dC = Ee.memo(function({
|
|
|
3443
3443
|
renderDataCell: S,
|
|
3444
3444
|
rowDraggable: g,
|
|
3445
3445
|
reorderable: v,
|
|
3446
|
-
isDragOver: v && m ===
|
|
3446
|
+
isDragOver: v && m === R.id && C !== R.id,
|
|
3447
3447
|
dndScopeId: I
|
|
3448
3448
|
},
|
|
3449
|
-
|
|
3449
|
+
R.id
|
|
3450
3450
|
)),
|
|
3451
3451
|
v && /* @__PURE__ */ a(
|
|
3452
3452
|
va,
|
|
@@ -3478,57 +3478,57 @@ const dC = Ee.memo(function({
|
|
|
3478
3478
|
onRowDragMove: k,
|
|
3479
3479
|
onRowDragEnd: E,
|
|
3480
3480
|
getDragPreviewLabel: S,
|
|
3481
|
-
getDragPreviewCountLabel:
|
|
3482
|
-
renderDragPreview:
|
|
3483
|
-
renderDndContext:
|
|
3484
|
-
dndScopeId:
|
|
3485
|
-
...
|
|
3481
|
+
getDragPreviewCountLabel: R,
|
|
3482
|
+
renderDragPreview: w,
|
|
3483
|
+
renderDndContext: N = !0,
|
|
3484
|
+
dndScopeId: B,
|
|
3485
|
+
...x
|
|
3486
3486
|
}) => {
|
|
3487
3487
|
var Pe, $e;
|
|
3488
|
-
const
|
|
3488
|
+
const J = ee(null), T = c == null ? void 0 : c.field, Q = (Pe = t == null ? void 0 : t[0]) == null ? void 0 : Pe.id, M = ($e = t == null ? void 0 : t[1]) == null ? void 0 : $e.id, O = _(() => {
|
|
3489
3489
|
if (t != null && t.length)
|
|
3490
|
-
return !
|
|
3491
|
-
}, [t,
|
|
3490
|
+
return !T || T === Q ? M : T;
|
|
3491
|
+
}, [t, T, Q, M]), U = _(
|
|
3492
3492
|
() => r.map((he, Ce) => _f(he, Ce)),
|
|
3493
3493
|
[r]
|
|
3494
|
-
),
|
|
3494
|
+
), F = _(
|
|
3495
3495
|
() => new Set((s ?? []).map((he) => String(he))),
|
|
3496
3496
|
[s]
|
|
3497
3497
|
), z = _(
|
|
3498
|
-
() => U.filter((he) => he.id &&
|
|
3499
|
-
[U,
|
|
3500
|
-
), X =
|
|
3498
|
+
() => U.filter((he) => he.id && F.has(he.id)),
|
|
3499
|
+
[U, F]
|
|
3500
|
+
), X = D(
|
|
3501
3501
|
(he, Ce) => {
|
|
3502
3502
|
const Be = Ht(he, Ce);
|
|
3503
|
-
return Be != null &&
|
|
3503
|
+
return Be != null && F.has(Be);
|
|
3504
3504
|
},
|
|
3505
|
-
[
|
|
3505
|
+
[F]
|
|
3506
3506
|
), $ = s.length, W = (r == null ? void 0 : r.length) ?? 0, re = $ > 0, Ne = W > 0 && $ === W, ke = _(
|
|
3507
3507
|
() => r == null ? void 0 : r.some((he) => {
|
|
3508
3508
|
var Ce;
|
|
3509
3509
|
return (Ce = he.dropdownOptions) == null ? void 0 : Ce.length;
|
|
3510
3510
|
}),
|
|
3511
3511
|
[r]
|
|
3512
|
-
), Le =
|
|
3512
|
+
), Le = D(
|
|
3513
3513
|
(he) => {
|
|
3514
3514
|
i == null || i(he);
|
|
3515
3515
|
},
|
|
3516
3516
|
[i]
|
|
3517
|
-
), be =
|
|
3517
|
+
), be = D(
|
|
3518
3518
|
(he, Ce) => {
|
|
3519
3519
|
if (!p) return;
|
|
3520
|
-
const Be =
|
|
3520
|
+
const Be = J.current, ze = Be != null ? Math.min(Be, Ce) : Ce, Qr = Be != null ? Math.max(Be, Ce) : Ce;
|
|
3521
3521
|
for (let zn = ze; zn <= Qr; zn++) {
|
|
3522
3522
|
const ia = Ht(r[zn], zn);
|
|
3523
3523
|
ia != null && p(ia, !0);
|
|
3524
3524
|
}
|
|
3525
|
-
Be == null && (
|
|
3525
|
+
Be == null && (J.current = Ce);
|
|
3526
3526
|
},
|
|
3527
3527
|
[r, p]
|
|
3528
|
-
), se =
|
|
3528
|
+
), se = D(
|
|
3529
3529
|
(he, Ce) => {
|
|
3530
3530
|
const Be = (r == null ? void 0 : r.findIndex((ze, Qr) => Ht(ze, Qr) === String(he))) ?? -1;
|
|
3531
|
-
Be >= 0 && (
|
|
3531
|
+
Be >= 0 && (J.current = Be), p == null || p(String(he), Ce);
|
|
3532
3532
|
},
|
|
3533
3533
|
[r, p]
|
|
3534
3534
|
), {
|
|
@@ -3540,16 +3540,16 @@ const dC = Ee.memo(function({
|
|
|
3540
3540
|
monitorHandlers: ae
|
|
3541
3541
|
} = aC({
|
|
3542
3542
|
rows: U,
|
|
3543
|
-
selectedSet:
|
|
3543
|
+
selectedSet: F,
|
|
3544
3544
|
selectedRows: z,
|
|
3545
3545
|
reorderable: v,
|
|
3546
3546
|
onReorder: C,
|
|
3547
3547
|
onRowDragStart: I,
|
|
3548
3548
|
onRowDragEnd: E,
|
|
3549
|
-
dndScopeId:
|
|
3549
|
+
dndScopeId: B
|
|
3550
3550
|
}), oe = ee(ae);
|
|
3551
3551
|
oe.current = ae;
|
|
3552
|
-
const { style: qe, ...Ye } =
|
|
3552
|
+
const { style: qe, ...Ye } = x, Qe = typeof A == "number" ? `${A}px` : A, ut = typeof g == "number" ? `${g}px` : g, at = /* @__PURE__ */ f(
|
|
3553
3553
|
ea,
|
|
3554
3554
|
{
|
|
3555
3555
|
className: y(V.DataTable, n),
|
|
@@ -3565,9 +3565,9 @@ const dC = Ee.memo(function({
|
|
|
3565
3565
|
oC,
|
|
3566
3566
|
{
|
|
3567
3567
|
columns: t,
|
|
3568
|
-
sortedKey:
|
|
3568
|
+
sortedKey: T,
|
|
3569
3569
|
sorting: c,
|
|
3570
|
-
mobileSecondaryColumnId:
|
|
3570
|
+
mobileSecondaryColumnId: O,
|
|
3571
3571
|
anyRowChecked: re,
|
|
3572
3572
|
allRowsChecked: Ne,
|
|
3573
3573
|
selectedFilesLabel: o,
|
|
@@ -3588,8 +3588,8 @@ const dC = Ee.memo(function({
|
|
|
3588
3588
|
isRowSelected: X,
|
|
3589
3589
|
anyRowChecked: re,
|
|
3590
3590
|
selectedCount: $,
|
|
3591
|
-
sortedKey:
|
|
3592
|
-
mobileSecondaryColumnId:
|
|
3591
|
+
sortedKey: T,
|
|
3592
|
+
mobileSecondaryColumnId: O,
|
|
3593
3593
|
hasDropdownOptions: ke,
|
|
3594
3594
|
onClick: Le,
|
|
3595
3595
|
onSelectRow: se,
|
|
@@ -3598,7 +3598,7 @@ const dC = Ee.memo(function({
|
|
|
3598
3598
|
reorderable: v,
|
|
3599
3599
|
activeDragRowId: j,
|
|
3600
3600
|
overDragRowId: le,
|
|
3601
|
-
dndScopeId:
|
|
3601
|
+
dndScopeId: B
|
|
3602
3602
|
}
|
|
3603
3603
|
)
|
|
3604
3604
|
]
|
|
@@ -3607,12 +3607,12 @@ const dC = Ee.memo(function({
|
|
|
3607
3607
|
rC,
|
|
3608
3608
|
{
|
|
3609
3609
|
model: Ie,
|
|
3610
|
-
renderDragPreview:
|
|
3610
|
+
renderDragPreview: w,
|
|
3611
3611
|
getDragPreviewLabel: S,
|
|
3612
|
-
getDragPreviewCountLabel:
|
|
3612
|
+
getDragPreviewCountLabel: R
|
|
3613
3613
|
}
|
|
3614
3614
|
) }) : null });
|
|
3615
|
-
return
|
|
3615
|
+
return N ? /* @__PURE__ */ f(Pd, { ...L, children: [
|
|
3616
3616
|
at,
|
|
3617
3617
|
q
|
|
3618
3618
|
] }) : /* @__PURE__ */ f(fe, { children: [
|
|
@@ -3620,7 +3620,7 @@ const dC = Ee.memo(function({
|
|
|
3620
3620
|
sC,
|
|
3621
3621
|
{
|
|
3622
3622
|
handlers: oe,
|
|
3623
|
-
dndScopeId:
|
|
3623
|
+
dndScopeId: B
|
|
3624
3624
|
}
|
|
3625
3625
|
),
|
|
3626
3626
|
at,
|
|
@@ -3753,10 +3753,10 @@ const ka = ra(Pc), on = Ze(
|
|
|
3753
3753
|
wrapCloseMenu: A,
|
|
3754
3754
|
...g
|
|
3755
3755
|
}) => {
|
|
3756
|
-
const v = g.open !== void 0, [C, m] = K(!1), I = v ? g.open : C, k =
|
|
3757
|
-
var
|
|
3758
|
-
v || m(
|
|
3759
|
-
}, [v, g == null ? void 0 : g.onOpenChange]), E =
|
|
3756
|
+
const v = g.open !== void 0, [C, m] = K(!1), I = v ? g.open : C, k = D((w) => {
|
|
3757
|
+
var N;
|
|
3758
|
+
v || m(w), (N = g == null ? void 0 : g.onOpenChange) == null || N.call(g, w);
|
|
3759
|
+
}, [v, g == null ? void 0 : g.onOpenChange]), E = D(() => k(!1), [k]), S = A ? A(E) : E, R = {
|
|
3760
3760
|
...p && {
|
|
3761
3761
|
width: "var(--radix-dropdown-menu-trigger-width)",
|
|
3762
3762
|
boxSizing: "border-box"
|
|
@@ -3788,21 +3788,21 @@ const ka = ra(Pc), on = Ze(
|
|
|
3788
3788
|
size: o,
|
|
3789
3789
|
side: g.side,
|
|
3790
3790
|
align: g.align,
|
|
3791
|
-
style:
|
|
3791
|
+
style: R,
|
|
3792
3792
|
sideOffset: u,
|
|
3793
3793
|
alignOffset: 0,
|
|
3794
|
-
onCloseAutoFocus: (
|
|
3795
|
-
|
|
3794
|
+
onCloseAutoFocus: (w) => {
|
|
3795
|
+
w.preventDefault();
|
|
3796
3796
|
},
|
|
3797
|
-
onClick: (
|
|
3797
|
+
onClick: (w) => w.stopPropagation(),
|
|
3798
3798
|
children: /* @__PURE__ */ a(
|
|
3799
3799
|
Xt,
|
|
3800
3800
|
{
|
|
3801
3801
|
scrollbars: "vertical",
|
|
3802
3802
|
style: { height: c },
|
|
3803
3803
|
children: t == null ? void 0 : t.map(
|
|
3804
|
-
(
|
|
3805
|
-
|
|
3804
|
+
(w) => ka(
|
|
3805
|
+
w,
|
|
3806
3806
|
o,
|
|
3807
3807
|
i,
|
|
3808
3808
|
d,
|
|
@@ -3819,16 +3819,16 @@ const ka = ra(Pc), on = Ze(
|
|
|
3819
3819
|
size: o,
|
|
3820
3820
|
side: g.side,
|
|
3821
3821
|
align: g.align,
|
|
3822
|
-
style:
|
|
3822
|
+
style: R,
|
|
3823
3823
|
sideOffset: u,
|
|
3824
3824
|
alignOffset: 0,
|
|
3825
|
-
onCloseAutoFocus: (
|
|
3826
|
-
|
|
3825
|
+
onCloseAutoFocus: (w) => {
|
|
3826
|
+
w.preventDefault();
|
|
3827
3827
|
},
|
|
3828
|
-
onClick: (
|
|
3828
|
+
onClick: (w) => w.stopPropagation(),
|
|
3829
3829
|
children: t == null ? void 0 : t.map(
|
|
3830
|
-
(
|
|
3831
|
-
|
|
3830
|
+
(w) => ka(
|
|
3831
|
+
w,
|
|
3832
3832
|
o,
|
|
3833
3833
|
i,
|
|
3834
3834
|
d,
|
|
@@ -4041,54 +4041,54 @@ function zC({ initialScreen: n, animated: t, children: r }) {
|
|
|
4041
4041
|
return Gc.forEach(r, (M) => {
|
|
4042
4042
|
(M == null ? void 0 : M.type) === Al && (Q[M.props.name] = M.props);
|
|
4043
4043
|
}), Q;
|
|
4044
|
-
}, [r]), g =
|
|
4045
|
-
t && M && PC(p.current, M), o(Q), l({}), d((
|
|
4046
|
-
}, [t]), v =
|
|
4047
|
-
(Q, M = {}) => g((
|
|
4044
|
+
}, [r]), g = D((Q, M = null) => {
|
|
4045
|
+
t && M && PC(p.current, M), o(Q), l({}), d((O) => O + 1);
|
|
4046
|
+
}, [t]), v = D(
|
|
4047
|
+
(Q, M = {}) => g((O) => [...O, { name: Q, params: M }], "forward"),
|
|
4048
4048
|
[g]
|
|
4049
|
-
), C =
|
|
4049
|
+
), C = D(
|
|
4050
4050
|
() => g((Q) => Q.length > 1 ? Q.slice(0, -1) : Q, "back"),
|
|
4051
4051
|
[g]
|
|
4052
|
-
), m =
|
|
4052
|
+
), m = D(
|
|
4053
4053
|
(Q) => g((M) => {
|
|
4054
|
-
const
|
|
4055
|
-
if (
|
|
4056
|
-
return M.slice(0,
|
|
4054
|
+
const O = M.findIndex((U) => U.name === Q);
|
|
4055
|
+
if (O === -1) throw new Error(`Screen "${Q}" is not in the stack`);
|
|
4056
|
+
return M.slice(0, O + 1);
|
|
4057
4057
|
}, "back"),
|
|
4058
4058
|
[g]
|
|
4059
|
-
), I =
|
|
4059
|
+
), I = D(
|
|
4060
4060
|
(Q) => g(() => [{ name: Q || n, params: {} }]),
|
|
4061
4061
|
[g, n]
|
|
4062
4062
|
), k = s.length > 1, E = _(
|
|
4063
4063
|
() => ({ push: v, pop: C, popTo: m, reset: I, canGoBack: k, stack: s }),
|
|
4064
4064
|
[v, C, m, I, k, s]
|
|
4065
|
-
), S = s[s.length - 1],
|
|
4066
|
-
if (!
|
|
4067
|
-
const
|
|
4065
|
+
), S = s[s.length - 1], R = A[S.name];
|
|
4066
|
+
if (!R) return null;
|
|
4067
|
+
const w = _(
|
|
4068
4068
|
() => s.map((Q, M) => {
|
|
4069
|
-
var
|
|
4070
|
-
return (
|
|
4069
|
+
var O;
|
|
4070
|
+
return (O = A[Q.name]) != null && O.keepMounted ? { entry: Q, stackIndex: M } : null;
|
|
4071
4071
|
}).filter(Boolean),
|
|
4072
4072
|
[s, A]
|
|
4073
|
-
),
|
|
4073
|
+
), N = (Q, M) => Q in i ? i[Q] : R[Q] ?? M, B = R.component, x = R.keepMounted === !0, J = D(
|
|
4074
4074
|
(Q) => {
|
|
4075
|
-
u.current[u.current.length - 1].name === S.name && l((
|
|
4075
|
+
u.current[u.current.length - 1].name === S.name && l((O) => ({ ...O, ...Q }));
|
|
4076
4076
|
},
|
|
4077
4077
|
[S.name]
|
|
4078
|
-
),
|
|
4079
|
-
() => ({ name: S.name, params: S.params || {}, setOptions:
|
|
4080
|
-
[S.name, S.params,
|
|
4078
|
+
), T = _(
|
|
4079
|
+
() => ({ name: S.name, params: S.params || {}, setOptions: J }),
|
|
4080
|
+
[S.name, S.params, J]
|
|
4081
4081
|
);
|
|
4082
4082
|
return /* @__PURE__ */ a(ul.Provider, { value: E, children: /* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
4083
4083
|
/* @__PURE__ */ a(
|
|
4084
4084
|
hl,
|
|
4085
4085
|
{
|
|
4086
|
-
title:
|
|
4086
|
+
title: N("title"),
|
|
4087
4087
|
onBack: k ? C : void 0,
|
|
4088
|
-
headerLeft:
|
|
4089
|
-
headerRight:
|
|
4090
|
-
allowClose:
|
|
4091
|
-
onClose:
|
|
4088
|
+
headerLeft: N("headerLeft"),
|
|
4089
|
+
headerRight: N("headerRight"),
|
|
4090
|
+
allowClose: N("allowClose", !0),
|
|
4091
|
+
onClose: N("onClose")
|
|
4092
4092
|
}
|
|
4093
4093
|
),
|
|
4094
4094
|
/* @__PURE__ */ f(
|
|
@@ -4104,15 +4104,15 @@ function zC({ initialScreen: n, animated: t, children: r }) {
|
|
|
4104
4104
|
overflow: "hidden"
|
|
4105
4105
|
},
|
|
4106
4106
|
children: [
|
|
4107
|
-
|
|
4108
|
-
const
|
|
4109
|
-
if (!(
|
|
4110
|
-
const U =
|
|
4107
|
+
w.map(({ entry: Q, stackIndex: M }) => {
|
|
4108
|
+
const O = A[Q.name];
|
|
4109
|
+
if (!(O != null && O.component)) return null;
|
|
4110
|
+
const U = O.component, F = Q.name === S.name, z = F ? T : { name: Q.name, params: Q.params || {}, setOptions: () => {
|
|
4111
4111
|
} };
|
|
4112
4112
|
return /* @__PURE__ */ a(
|
|
4113
4113
|
"div",
|
|
4114
4114
|
{
|
|
4115
|
-
style:
|
|
4115
|
+
style: F ? {
|
|
4116
4116
|
position: "relative",
|
|
4117
4117
|
display: "flex",
|
|
4118
4118
|
flexDirection: "column",
|
|
@@ -4130,7 +4130,7 @@ function zC({ initialScreen: n, animated: t, children: r }) {
|
|
|
4130
4130
|
`layer-${M}`
|
|
4131
4131
|
);
|
|
4132
4132
|
}),
|
|
4133
|
-
!
|
|
4133
|
+
!x && /* @__PURE__ */ a(As.Provider, { value: T, children: /* @__PURE__ */ a(B, {}) }, c)
|
|
4134
4134
|
]
|
|
4135
4135
|
}
|
|
4136
4136
|
)
|
|
@@ -4171,9 +4171,9 @@ const WC = "_floatingBanner_1jevw_1", jC = "_white_1jevw_12", HC = "_error_1jevw
|
|
|
4171
4171
|
onDismiss: u,
|
|
4172
4172
|
className: p
|
|
4173
4173
|
}) => {
|
|
4174
|
-
const A =
|
|
4174
|
+
const A = D(() => {
|
|
4175
4175
|
u == null || u(n);
|
|
4176
|
-
}, [n, u]), g =
|
|
4176
|
+
}, [n, u]), g = D(() => {
|
|
4177
4177
|
d == null || d(n);
|
|
4178
4178
|
}, [n, d]);
|
|
4179
4179
|
return /* @__PURE__ */ f(
|
|
@@ -4554,38 +4554,38 @@ const lw = Tr, pv = "_sliderRoot_19e7a_23", gv = "_sliderTrack_19e7a_31", mv = "
|
|
|
4554
4554
|
tooltipArrow: vv,
|
|
4555
4555
|
sliderContainer: kv
|
|
4556
4556
|
}, yv = ({ onChangeValue: n, volume: t, disabled: r }) => {
|
|
4557
|
-
const [s, o] = K(!1), i = ee(), l = ee(0), c =
|
|
4558
|
-
if (
|
|
4559
|
-
const
|
|
4560
|
-
return
|
|
4561
|
-
}, []), d =
|
|
4562
|
-
const
|
|
4563
|
-
return
|
|
4564
|
-
}, [t, c]), p = _(() => t < 1e-3, [t]), A =
|
|
4557
|
+
const [s, o] = K(!1), i = ee(), l = ee(0), c = D((R) => {
|
|
4558
|
+
if (R < 1e-3) return -1 / 0;
|
|
4559
|
+
const w = 20 * Math.log10(R);
|
|
4560
|
+
return w < -60 ? -60 : w;
|
|
4561
|
+
}, []), d = D((R) => R === -1 / 0 || R <= -60 ? 0 : Math.pow(10, R / 20), []), u = _(() => {
|
|
4562
|
+
const R = c(t);
|
|
4563
|
+
return R === -1 / 0 ? -60 : Math.max(-60, Math.min(6, R));
|
|
4564
|
+
}, [t, c]), p = _(() => t < 1e-3, [t]), A = D(() => {
|
|
4565
4565
|
clearTimeout(i.current), o(!0);
|
|
4566
|
-
}, []), g =
|
|
4566
|
+
}, []), g = D(() => {
|
|
4567
4567
|
i.current = setTimeout(() => {
|
|
4568
4568
|
o(!1);
|
|
4569
4569
|
}, 300);
|
|
4570
|
-
}, []), v =
|
|
4571
|
-
(
|
|
4572
|
-
(
|
|
4570
|
+
}, []), v = D(
|
|
4571
|
+
(R) => {
|
|
4572
|
+
(R.key === "ArrowUp" || R.key === "ArrowDown") && A(), (R.key === "ArrowLeft" || R.key === "ArrowRight") && (R.preventDefault(), R.stopPropagation(), A());
|
|
4573
4573
|
},
|
|
4574
4574
|
[A]
|
|
4575
|
-
), C =
|
|
4576
|
-
(
|
|
4577
|
-
n(
|
|
4575
|
+
), C = D(
|
|
4576
|
+
(R) => {
|
|
4577
|
+
n(R.map(d));
|
|
4578
4578
|
},
|
|
4579
4579
|
[n, d]
|
|
4580
|
-
), m =
|
|
4580
|
+
), m = D(() => {
|
|
4581
4581
|
A();
|
|
4582
|
-
}, [A]), I =
|
|
4582
|
+
}, [A]), I = D(() => {
|
|
4583
4583
|
g();
|
|
4584
|
-
}, [g]), k =
|
|
4584
|
+
}, [g]), k = D(() => {
|
|
4585
4585
|
n([1]), A();
|
|
4586
|
-
}, [n, A]), E =
|
|
4587
|
-
const
|
|
4588
|
-
|
|
4586
|
+
}, [n, A]), E = D(() => {
|
|
4587
|
+
const R = Date.now();
|
|
4588
|
+
R - l.current < 300 && k(), l.current = R;
|
|
4589
4589
|
}, [k]), S = _(
|
|
4590
4590
|
() => /* @__PURE__ */ f(fe, { children: [
|
|
4591
4591
|
p ? "-∞ dB" : `${u.toFixed(1)} dB`,
|
|
@@ -4703,24 +4703,24 @@ const aa = Ze(function({
|
|
|
4703
4703
|
hover: l = !1,
|
|
4704
4704
|
resetPeakHold: c
|
|
4705
4705
|
}) {
|
|
4706
|
-
const [d, u] = t, p = gs(Ia(d ?? 0)), A = gs(Ia(u ?? 0)), [g, v] = K(!1), C = ee(!1), m = ee(null), I = ee(0), k = ee(null), [E, S] = K(0), [
|
|
4706
|
+
const [d, u] = t, p = gs(Ia(d ?? 0)), A = gs(Ia(u ?? 0)), [g, v] = K(!1), C = ee(!1), m = ee(null), I = ee(0), k = ee(null), [E, S] = K(0), [R, w] = K(!1);
|
|
4707
4707
|
ie(() => {
|
|
4708
4708
|
I.current = 0, S(0);
|
|
4709
4709
|
}, [c]), ie(() => () => clearTimeout(k.current), []);
|
|
4710
|
-
const
|
|
4710
|
+
const N = Math.max(
|
|
4711
4711
|
0,
|
|
4712
4712
|
Math.min(100, Fv(r) * 100)
|
|
4713
|
-
),
|
|
4713
|
+
), B = ms(p), x = ms(A), J = Math.max(B, x);
|
|
4714
4714
|
ie(() => {
|
|
4715
|
-
|
|
4716
|
-
|
|
4715
|
+
J > I.current && (I.current = J, S(J), w(!0), clearTimeout(k.current), k.current = setTimeout(() => {
|
|
4716
|
+
w(!1), requestAnimationFrame(() => {
|
|
4717
4717
|
requestAnimationFrame(() => {
|
|
4718
4718
|
I.current = 0, S(0);
|
|
4719
4719
|
});
|
|
4720
4720
|
});
|
|
4721
|
-
}, 400)),
|
|
4722
|
-
}, [
|
|
4723
|
-
const
|
|
4721
|
+
}, 400)), J <= 0 && (I.current = 0, S(0));
|
|
4722
|
+
}, [J]);
|
|
4723
|
+
const T = Ov(E), Q = E > 0, M = D(
|
|
4724
4724
|
(X) => {
|
|
4725
4725
|
var W;
|
|
4726
4726
|
if (!s) return;
|
|
@@ -4735,7 +4735,7 @@ const aa = Ze(function({
|
|
|
4735
4735
|
}
|
|
4736
4736
|
},
|
|
4737
4737
|
[s]
|
|
4738
|
-
),
|
|
4738
|
+
), O = D(
|
|
4739
4739
|
(X) => {
|
|
4740
4740
|
var W;
|
|
4741
4741
|
if (!C.current || !s) return;
|
|
@@ -4749,11 +4749,11 @@ const aa = Ze(function({
|
|
|
4749
4749
|
}
|
|
4750
4750
|
},
|
|
4751
4751
|
[s]
|
|
4752
|
-
), U =
|
|
4752
|
+
), U = D(() => {
|
|
4753
4753
|
C.current = !1, v(!1), document.body.style.cursor = "";
|
|
4754
|
-
}, []),
|
|
4754
|
+
}, []), F = s && o, z = [
|
|
4755
4755
|
Te.bars,
|
|
4756
|
-
|
|
4756
|
+
F ? Te.interactive : "",
|
|
4757
4757
|
g ? Te.pressed : ""
|
|
4758
4758
|
].filter(Boolean).join(" ");
|
|
4759
4759
|
return /* @__PURE__ */ f(
|
|
@@ -4764,13 +4764,13 @@ const aa = Ze(function({
|
|
|
4764
4764
|
g || v(!1);
|
|
4765
4765
|
},
|
|
4766
4766
|
onPointerDown: M,
|
|
4767
|
-
onPointerMove:
|
|
4767
|
+
onPointerMove: O,
|
|
4768
4768
|
onPointerUp: U,
|
|
4769
4769
|
children: [
|
|
4770
4770
|
/* @__PURE__ */ f("div", { ref: m, className: z, children: [
|
|
4771
4771
|
/* @__PURE__ */ a(Ea, { level: p }),
|
|
4772
4772
|
/* @__PURE__ */ a(Ea, { level: A }),
|
|
4773
|
-
|
|
4773
|
+
F && /* @__PURE__ */ a(
|
|
4774
4774
|
_e,
|
|
4775
4775
|
{
|
|
4776
4776
|
content: Pv(r),
|
|
@@ -4783,7 +4783,7 @@ const aa = Ze(function({
|
|
|
4783
4783
|
"div",
|
|
4784
4784
|
{
|
|
4785
4785
|
className: `${Te.thumb} ${g ? Te.pressed : l ? Te.hovered : ""}`,
|
|
4786
|
-
style: { left: `${
|
|
4786
|
+
style: { left: `${N}%` }
|
|
4787
4787
|
}
|
|
4788
4788
|
)
|
|
4789
4789
|
}
|
|
@@ -4791,10 +4791,10 @@ const aa = Ze(function({
|
|
|
4791
4791
|
/* @__PURE__ */ a(
|
|
4792
4792
|
"div",
|
|
4793
4793
|
{
|
|
4794
|
-
className: `${Te.peakDotTop} ${
|
|
4794
|
+
className: `${Te.peakDotTop} ${R ? Te.peakRising : ""}`,
|
|
4795
4795
|
style: {
|
|
4796
4796
|
left: `min(calc(${E}% + 3px), calc(100% - 3px))`,
|
|
4797
|
-
background:
|
|
4797
|
+
background: T,
|
|
4798
4798
|
opacity: Q ? 1 : 0
|
|
4799
4799
|
}
|
|
4800
4800
|
}
|
|
@@ -4802,10 +4802,10 @@ const aa = Ze(function({
|
|
|
4802
4802
|
/* @__PURE__ */ a(
|
|
4803
4803
|
"div",
|
|
4804
4804
|
{
|
|
4805
|
-
className: `${Te.peakDotBottom} ${
|
|
4805
|
+
className: `${Te.peakDotBottom} ${R ? Te.peakRising : ""}`,
|
|
4806
4806
|
style: {
|
|
4807
4807
|
left: `min(calc(${E}% + 3px), calc(100% - 3px))`,
|
|
4808
|
-
background:
|
|
4808
|
+
background: T,
|
|
4809
4809
|
opacity: Q ? 1 : 0
|
|
4810
4810
|
}
|
|
4811
4811
|
}
|
|
@@ -4988,18 +4988,18 @@ const tr = 19.5, nr = 19.5, wa = 14, Ra = 18, Xv = [
|
|
|
4988
4988
|
ie(() => {
|
|
4989
4989
|
n == null && t(o);
|
|
4990
4990
|
}, [n, t, o]);
|
|
4991
|
-
const g =
|
|
4991
|
+
const g = D(
|
|
4992
4992
|
(S) => {
|
|
4993
4993
|
if (S.preventDefault(), S.stopPropagation(), r) return;
|
|
4994
|
-
const
|
|
4995
|
-
if (!
|
|
4996
|
-
const
|
|
4997
|
-
if (
|
|
4998
|
-
const
|
|
4999
|
-
t(
|
|
4994
|
+
const R = S.wheelDelta ?? -S.deltaY * 25;
|
|
4995
|
+
if (!R || Math.abs(R) <= 50) return;
|
|
4996
|
+
const w = Date.now();
|
|
4997
|
+
if (w - A.current < 100) return;
|
|
4998
|
+
const N = R > 0 ? 1 : -1, B = Ba(n, s, N);
|
|
4999
|
+
t(B), A.current = w;
|
|
5000
5000
|
},
|
|
5001
5001
|
[t, n, s, r]
|
|
5002
|
-
), v =
|
|
5002
|
+
), v = D(
|
|
5003
5003
|
(S) => {
|
|
5004
5004
|
if (r) {
|
|
5005
5005
|
S.preventDefault();
|
|
@@ -5008,29 +5008,29 @@ const tr = 19.5, nr = 19.5, wa = 14, Ra = 18, Xv = [
|
|
|
5008
5008
|
S.preventDefault(), d(!0), p(S.clientY);
|
|
5009
5009
|
},
|
|
5010
5010
|
[r]
|
|
5011
|
-
), C =
|
|
5011
|
+
), C = D(
|
|
5012
5012
|
(S) => {
|
|
5013
5013
|
if (!c || r) return;
|
|
5014
|
-
const
|
|
5015
|
-
if (Math.abs(
|
|
5016
|
-
const
|
|
5017
|
-
t(
|
|
5014
|
+
const R = u - S.clientY;
|
|
5015
|
+
if (Math.abs(R) <= 20) return;
|
|
5016
|
+
const w = R > 0 ? 1 : -1, N = Ba(n, s, w);
|
|
5017
|
+
t(N), p(S.clientY), A.current = Date.now();
|
|
5018
5018
|
},
|
|
5019
5019
|
[c, u, n, t, s, r]
|
|
5020
|
-
), m =
|
|
5020
|
+
), m = D(() => {
|
|
5021
5021
|
d(!1);
|
|
5022
|
-
}, []), I =
|
|
5022
|
+
}, []), I = D(() => {
|
|
5023
5023
|
d(!1);
|
|
5024
|
-
}, []), k =
|
|
5024
|
+
}, []), k = D(
|
|
5025
5025
|
(S) => {
|
|
5026
5026
|
S.detail === 2 && !r && t(o);
|
|
5027
5027
|
},
|
|
5028
5028
|
[t, o, r]
|
|
5029
|
-
), E =
|
|
5029
|
+
), E = D(
|
|
5030
5030
|
(S) => {
|
|
5031
5031
|
if (!i || r) return;
|
|
5032
|
-
const
|
|
5033
|
-
|
|
5032
|
+
const R = Zv(s, S);
|
|
5033
|
+
R && t(R);
|
|
5034
5034
|
},
|
|
5035
5035
|
[i, r, t, s]
|
|
5036
5036
|
);
|
|
@@ -5059,8 +5059,8 @@ const tr = 19.5, nr = 19.5, wa = 14, Ra = 18, Xv = [
|
|
|
5059
5059
|
defaultDot: d,
|
|
5060
5060
|
clickableDots: o
|
|
5061
5061
|
}), v = _(() => typeof t == "object" && t !== null ? t.position : _v(t, i), [t, i]), { pointerRotation: C, pointerColor: m } = _(() => $v(v, s), [v, s]), I = (k) => {
|
|
5062
|
-
const E = Na[k.color] || Na.neutral, S = k.position === v,
|
|
5063
|
-
return s ? E.default : S ? E.active :
|
|
5062
|
+
const E = Na[k.color] || Na.neutral, S = k.position === v, R = l === k.position && o;
|
|
5063
|
+
return s ? E.default : S ? E.active : R ? E.hover : E.default;
|
|
5064
5064
|
};
|
|
5065
5065
|
return /* @__PURE__ */ a(
|
|
5066
5066
|
"div",
|
|
@@ -5108,9 +5108,9 @@ const tr = 19.5, nr = 19.5, wa = 14, Ra = 18, Xv = [
|
|
|
5108
5108
|
i == null ? void 0 : i.map((k) => {
|
|
5109
5109
|
const E = fl[k.position];
|
|
5110
5110
|
if (!E) return null;
|
|
5111
|
-
const S = I(k),
|
|
5111
|
+
const S = I(k), R = o && !s;
|
|
5112
5112
|
return /* @__PURE__ */ f(Ee.Fragment, { children: [
|
|
5113
|
-
|
|
5113
|
+
R && /* @__PURE__ */ a(
|
|
5114
5114
|
"circle",
|
|
5115
5115
|
{
|
|
5116
5116
|
cx: E.x,
|
|
@@ -5122,8 +5122,8 @@ const tr = 19.5, nr = 19.5, wa = 14, Ra = 18, Xv = [
|
|
|
5122
5122
|
},
|
|
5123
5123
|
onMouseEnter: () => c(k.position),
|
|
5124
5124
|
onMouseLeave: () => c(null),
|
|
5125
|
-
onClick: (
|
|
5126
|
-
|
|
5125
|
+
onClick: (w) => {
|
|
5126
|
+
w.stopPropagation(), g(k.position);
|
|
5127
5127
|
}
|
|
5128
5128
|
}
|
|
5129
5129
|
),
|
|
@@ -5135,18 +5135,18 @@ const tr = 19.5, nr = 19.5, wa = 14, Ra = 18, Xv = [
|
|
|
5135
5135
|
r: 1,
|
|
5136
5136
|
fill: S,
|
|
5137
5137
|
style: {
|
|
5138
|
-
cursor:
|
|
5138
|
+
cursor: R ? "pointer" : "default",
|
|
5139
5139
|
transition: "fill 0.2s ease",
|
|
5140
|
-
pointerEvents:
|
|
5140
|
+
pointerEvents: R ? "none" : "all"
|
|
5141
5141
|
},
|
|
5142
5142
|
onMouseEnter: () => {
|
|
5143
|
-
|
|
5143
|
+
R && c(k.position);
|
|
5144
5144
|
},
|
|
5145
5145
|
onMouseLeave: () => {
|
|
5146
|
-
|
|
5146
|
+
R && c(null);
|
|
5147
5147
|
},
|
|
5148
|
-
onClick: (
|
|
5149
|
-
|
|
5148
|
+
onClick: (w) => {
|
|
5149
|
+
R && (w.stopPropagation(), g(k.position));
|
|
5150
5150
|
}
|
|
5151
5151
|
}
|
|
5152
5152
|
)
|
|
@@ -5392,13 +5392,13 @@ const Ok = "_listCardsItem_rjypk_1", Fk = "_listCardsItemDescriptionWrappable_rj
|
|
|
5392
5392
|
style: g,
|
|
5393
5393
|
...v
|
|
5394
5394
|
}) => {
|
|
5395
|
-
const C = (i == null ? void 0 : i.id) || o, m = (i == null ? void 0 : i.name) || r, I = (i == null ? void 0 : i.description) || s, k = (i == null ? void 0 : i.image) || t, E = (i == null ? void 0 : i.icon) || c, S = k && (k != null && k.startsWith("url(")) ? k == null ? void 0 : k.substring(4, (k == null ? void 0 : k.length) - 1).replace(/"/g, "") : k,
|
|
5396
|
-
|
|
5397
|
-
},
|
|
5395
|
+
const C = (i == null ? void 0 : i.id) || o, m = (i == null ? void 0 : i.name) || r, I = (i == null ? void 0 : i.description) || s, k = (i == null ? void 0 : i.image) || t, E = (i == null ? void 0 : i.icon) || c, S = k && (k != null && k.startsWith("url(")) ? k == null ? void 0 : k.substring(4, (k == null ? void 0 : k.length) - 1).replace(/"/g, "") : k, R = (x) => {
|
|
5396
|
+
x.stopPropagation(), x.preventDefault(), p == null || p();
|
|
5397
|
+
}, w = {
|
|
5398
5398
|
1: { avatar: 60, icon: 15 },
|
|
5399
5399
|
2: { avatar: 68, icon: 15 },
|
|
5400
5400
|
3: { avatar: 80, icon: 15 }
|
|
5401
|
-
},
|
|
5401
|
+
}, N = typeof A == "string" ? parseInt(A, 10) : A, B = w[N] || w[1];
|
|
5402
5402
|
return /* @__PURE__ */ a(
|
|
5403
5403
|
On,
|
|
5404
5404
|
{
|
|
@@ -5410,10 +5410,10 @@ const Ok = "_listCardsItem_rjypk_1", Fk = "_listCardsItemDescriptionWrappable_rj
|
|
|
5410
5410
|
),
|
|
5411
5411
|
style: { "--color-surface": "transparent", ...g },
|
|
5412
5412
|
"data-state": u ? "checked" : "unchecked",
|
|
5413
|
-
onClick:
|
|
5413
|
+
onClick: R,
|
|
5414
5414
|
...v,
|
|
5415
5415
|
children: /* @__PURE__ */ f(b, { gap: "2", children: [
|
|
5416
|
-
/* @__PURE__ */ a(b, { width: `${
|
|
5416
|
+
/* @__PURE__ */ a(b, { width: `${B.avatar}px`, height: `${B.avatar}px`, children: l ? /* @__PURE__ */ a(
|
|
5417
5417
|
Cl,
|
|
5418
5418
|
{
|
|
5419
5419
|
id: C,
|
|
@@ -5421,8 +5421,8 @@ const Ok = "_listCardsItem_rjypk_1", Fk = "_listCardsItemDescriptionWrappable_rj
|
|
|
5421
5421
|
ue.listCardsAvatar,
|
|
5422
5422
|
ue[`listCardsAvatarSize${A}`]
|
|
5423
5423
|
),
|
|
5424
|
-
width:
|
|
5425
|
-
height:
|
|
5424
|
+
width: B.avatar,
|
|
5425
|
+
height: B.avatar
|
|
5426
5426
|
}
|
|
5427
5427
|
) : d ? /* @__PURE__ */ a(
|
|
5428
5428
|
"div",
|
|
@@ -5431,7 +5431,7 @@ const Ok = "_listCardsItem_rjypk_1", Fk = "_listCardsItemDescriptionWrappable_rj
|
|
|
5431
5431
|
ue.listCardsAvatarIcon,
|
|
5432
5432
|
ue[`listCardsAvatarIconSize${A}`]
|
|
5433
5433
|
),
|
|
5434
|
-
children: /* @__PURE__ */ a(d, { width:
|
|
5434
|
+
children: /* @__PURE__ */ a(d, { width: B.icon, height: B.icon })
|
|
5435
5435
|
}
|
|
5436
5436
|
) : E ? /* @__PURE__ */ a(
|
|
5437
5437
|
"div",
|
|
@@ -5793,7 +5793,7 @@ const f1 = "_customCard_1klw4_2", C1 = "_selected_1klw4_18", v1 = "_disabled_1kl
|
|
|
5793
5793
|
gridContainer: y1,
|
|
5794
5794
|
icon: b1
|
|
5795
5795
|
}, I1 = ({ item: n, value: t, onSelect: r, disabled: s, isLocked: o }) => {
|
|
5796
|
-
const i =
|
|
5796
|
+
const i = D(() => {
|
|
5797
5797
|
r == null || r(n);
|
|
5798
5798
|
}, [r, n]), l = t == null ? void 0 : t.includes(n.value), c = s || n.disabled;
|
|
5799
5799
|
return /* @__PURE__ */ a(me, { width: "100%", children: /* @__PURE__ */ a(
|
|
@@ -5879,69 +5879,69 @@ const S1 = "_content_13eu5_1", E1 = "_pan_13eu5_13", w1 = "_disabled_13eu5_26",
|
|
|
5879
5879
|
const l = ee(null), [c, d] = K(!1), u = ee(null), p = ee(0), A = ee(t), g = ee(0);
|
|
5880
5880
|
ie(() => {
|
|
5881
5881
|
if (c) {
|
|
5882
|
-
const
|
|
5883
|
-
|
|
5882
|
+
const x = document.createElement("style");
|
|
5883
|
+
x.textContent = "* { cursor: ns-resize !important; }", document.head.appendChild(x), u.current = x;
|
|
5884
5884
|
} else
|
|
5885
5885
|
u.current && (document.head.removeChild(u.current), u.current = null);
|
|
5886
5886
|
return () => {
|
|
5887
5887
|
u.current && (document.head.removeChild(u.current), u.current = null), g.current && cancelAnimationFrame(g.current);
|
|
5888
5888
|
};
|
|
5889
5889
|
}, [c]);
|
|
5890
|
-
const v =
|
|
5891
|
-
(
|
|
5892
|
-
A.current = xa(
|
|
5890
|
+
const v = D(
|
|
5891
|
+
(x) => {
|
|
5892
|
+
A.current = xa(x), !g.current && (g.current = requestAnimationFrame(() => {
|
|
5893
5893
|
g.current = 0, r(A.current);
|
|
5894
5894
|
}));
|
|
5895
5895
|
},
|
|
5896
5896
|
[r]
|
|
5897
|
-
), C =
|
|
5898
|
-
(
|
|
5899
|
-
|
|
5900
|
-
const
|
|
5901
|
-
if (!
|
|
5902
|
-
const
|
|
5903
|
-
v(
|
|
5897
|
+
), C = D(
|
|
5898
|
+
(x) => {
|
|
5899
|
+
x.preventDefault(), x.stopPropagation();
|
|
5900
|
+
const J = x.wheelDelta ?? -x.deltaY * 25;
|
|
5901
|
+
if (!J) return;
|
|
5902
|
+
const T = t + (J > 0 ? Wr : -Wr);
|
|
5903
|
+
v(T);
|
|
5904
5904
|
},
|
|
5905
5905
|
[t, v]
|
|
5906
5906
|
);
|
|
5907
5907
|
sn("wheel", C, l);
|
|
5908
|
-
const m =
|
|
5909
|
-
(
|
|
5910
|
-
var
|
|
5908
|
+
const m = D(
|
|
5909
|
+
(x) => {
|
|
5910
|
+
var T;
|
|
5911
5911
|
if (s) return;
|
|
5912
|
-
|
|
5913
|
-
const
|
|
5914
|
-
(
|
|
5912
|
+
x.preventDefault();
|
|
5913
|
+
const J = x.currentTarget;
|
|
5914
|
+
(T = J.setPointerCapture) == null || T.call(J, x.pointerId), d(!0), p.current = x.clientY;
|
|
5915
5915
|
},
|
|
5916
5916
|
[s]
|
|
5917
|
-
), I =
|
|
5918
|
-
(
|
|
5917
|
+
), I = D(
|
|
5918
|
+
(x) => {
|
|
5919
5919
|
if (!c) return;
|
|
5920
|
-
const
|
|
5921
|
-
v(
|
|
5920
|
+
const J = p.current - x.clientY, T = t + J * Wr;
|
|
5921
|
+
v(T), p.current = x.clientY;
|
|
5922
5922
|
},
|
|
5923
5923
|
[c, t, v]
|
|
5924
|
-
), k =
|
|
5925
|
-
var
|
|
5926
|
-
(
|
|
5927
|
-
}, []), E =
|
|
5928
|
-
(
|
|
5929
|
-
|
|
5924
|
+
), k = D((x) => {
|
|
5925
|
+
var J, T;
|
|
5926
|
+
(T = (J = x.currentTarget) == null ? void 0 : J.releasePointerCapture) == null || T.call(J, x.pointerId), d(!1);
|
|
5927
|
+
}, []), E = D(
|
|
5928
|
+
(x) => {
|
|
5929
|
+
x.detail === 2 && v(0);
|
|
5930
5930
|
},
|
|
5931
5931
|
[v]
|
|
5932
|
-
), { arcPath: S, pointerRotation:
|
|
5933
|
-
const
|
|
5932
|
+
), { arcPath: S, pointerRotation: R, arcColor: w, pointerColor: N } = _(() => {
|
|
5933
|
+
const x = Ta(t, o, i), J = xa(x), T = zr + J * Math.PI, Q = Cn + Ft * Math.cos(zr), M = vn + Ft * Math.sin(zr), O = Cn + Ft * Math.cos(T), U = vn + Ft * Math.sin(T), F = 0, z = J > 0 ? 1 : 0;
|
|
5934
5934
|
return {
|
|
5935
5935
|
arcPath: `M ${Q.toFixed(3)} ${M.toFixed(3)}
|
|
5936
|
-
A ${Ft} ${Ft} 0 ${
|
|
5937
|
-
${
|
|
5938
|
-
pointerRotation:
|
|
5936
|
+
A ${Ft} ${Ft} 0 ${F} ${z}
|
|
5937
|
+
${O.toFixed(3)} ${U.toFixed(3)}`,
|
|
5938
|
+
pointerRotation: J * 180,
|
|
5939
5939
|
arcColor: s ? "#5A6169" : "#19E4F1",
|
|
5940
5940
|
pointerColor: s ? "#43484E" : "#B0B4BA"
|
|
5941
5941
|
};
|
|
5942
|
-
}, [t, s, o, i]),
|
|
5943
|
-
const
|
|
5944
|
-
return `Pan: ${Math.abs(
|
|
5942
|
+
}, [t, s, o, i]), B = _(() => {
|
|
5943
|
+
const x = Ta(t, o, i), J = Math.round(x * 100);
|
|
5944
|
+
return `Pan: ${Math.abs(J) < 1 ? 0 : J}`;
|
|
5945
5945
|
}, [t, o, i]);
|
|
5946
5946
|
return /* @__PURE__ */ a(
|
|
5947
5947
|
"div",
|
|
@@ -5954,7 +5954,7 @@ const S1 = "_content_13eu5_1", E1 = "_pan_13eu5_13", w1 = "_disabled_13eu5_26",
|
|
|
5954
5954
|
children: /* @__PURE__ */ a(
|
|
5955
5955
|
_e,
|
|
5956
5956
|
{
|
|
5957
|
-
content:
|
|
5957
|
+
content: B,
|
|
5958
5958
|
open: c,
|
|
5959
5959
|
side: "bottom",
|
|
5960
5960
|
align: "center",
|
|
@@ -5988,7 +5988,7 @@ const S1 = "_content_13eu5_1", E1 = "_pan_13eu5_13", w1 = "_disabled_13eu5_26",
|
|
|
5988
5988
|
"path",
|
|
5989
5989
|
{
|
|
5990
5990
|
d: S,
|
|
5991
|
-
stroke:
|
|
5991
|
+
stroke: w,
|
|
5992
5992
|
strokeLinecap: "round",
|
|
5993
5993
|
strokeWidth: 1,
|
|
5994
5994
|
fill: "none"
|
|
@@ -5997,12 +5997,12 @@ const S1 = "_content_13eu5_1", E1 = "_pan_13eu5_13", w1 = "_disabled_13eu5_26",
|
|
|
5997
5997
|
/* @__PURE__ */ a(
|
|
5998
5998
|
"g",
|
|
5999
5999
|
{
|
|
6000
|
-
transform: `rotate(${
|
|
6000
|
+
transform: `rotate(${R} ${Cn} ${vn})`,
|
|
6001
6001
|
children: /* @__PURE__ */ a(
|
|
6002
6002
|
"path",
|
|
6003
6003
|
{
|
|
6004
6004
|
d: "M10 0.5 L10 6",
|
|
6005
|
-
stroke:
|
|
6005
|
+
stroke: N,
|
|
6006
6006
|
strokeLinecap: "round",
|
|
6007
6007
|
strokeWidth: 1
|
|
6008
6008
|
}
|
|
@@ -6277,15 +6277,15 @@ const py = ({
|
|
|
6277
6277
|
onProjectClick: g,
|
|
6278
6278
|
openedItem: v,
|
|
6279
6279
|
setOpenedItem: C
|
|
6280
|
-
} = dt(Dr), [m, I] = K(!1), k = _(() => m ? i : i.slice(0, 6), [i, m]), E =
|
|
6280
|
+
} = dt(Dr), [m, I] = K(!1), k = _(() => m ? i : i.slice(0, 6), [i, m]), E = D(() => {
|
|
6281
6281
|
if (c) return;
|
|
6282
6282
|
I(!1);
|
|
6283
|
-
const
|
|
6284
|
-
v === n ? (C(null), g == null || g(
|
|
6285
|
-
}, [n, v, C, g, p, c]), S =
|
|
6286
|
-
|
|
6287
|
-
}, [m]),
|
|
6288
|
-
|
|
6283
|
+
const w = p.find((N) => N.id === n);
|
|
6284
|
+
v === n ? (C(null), g == null || g(w, !1)) : (C(n), g == null || g(w, !0));
|
|
6285
|
+
}, [n, v, C, g, p, c]), S = D((w) => {
|
|
6286
|
+
w.preventDefault(), w.stopPropagation(), I(!m);
|
|
6287
|
+
}, [m]), R = D((w) => {
|
|
6288
|
+
w.stopPropagation(), A == null || A(i);
|
|
6289
6289
|
}, [A, i]);
|
|
6290
6290
|
return /* @__PURE__ */ f(
|
|
6291
6291
|
b,
|
|
@@ -6335,7 +6335,7 @@ const py = ({
|
|
|
6335
6335
|
variant: "ghost",
|
|
6336
6336
|
color: "gray",
|
|
6337
6337
|
style: { flex: "1" },
|
|
6338
|
-
onClick:
|
|
6338
|
+
onClick: R,
|
|
6339
6339
|
children: [
|
|
6340
6340
|
/* @__PURE__ */ a(Ar, { width: 16, height: 16 }),
|
|
6341
6341
|
" Insert all"
|
|
@@ -6411,7 +6411,7 @@ const py = ({
|
|
|
6411
6411
|
}, By = ({
|
|
6412
6412
|
...n
|
|
6413
6413
|
}) => {
|
|
6414
|
-
const { onClickTrack: t } = dt(Dr), { id: r, title: s } = n, o =
|
|
6414
|
+
const { onClickTrack: t } = dt(Dr), { id: r, title: s } = n, o = D((i) => {
|
|
6415
6415
|
i.stopPropagation(), t == null || t(n);
|
|
6416
6416
|
}, [t, n]);
|
|
6417
6417
|
return /* @__PURE__ */ a(b, { direction: "column", gap: "1", children: /* @__PURE__ */ f(
|
|
@@ -6447,9 +6447,9 @@ const py = ({
|
|
|
6447
6447
|
max: s = 10,
|
|
6448
6448
|
onChange: o
|
|
6449
6449
|
}) => {
|
|
6450
|
-
const i =
|
|
6450
|
+
const i = D((c) => {
|
|
6451
6451
|
c.stopPropagation(), !(s != null && t >= s) && o(t + 1);
|
|
6452
|
-
}, [s, o, t]), l =
|
|
6452
|
+
}, [s, o, t]), l = D((c) => {
|
|
6453
6453
|
c.stopPropagation(), !(r != null && t <= r) && o(t - 1);
|
|
6454
6454
|
}, [r, o, t]);
|
|
6455
6455
|
return /* @__PURE__ */ f(b, { direction: "row", gap: "1", align: "center", justify: "center", children: [
|
|
@@ -6507,16 +6507,16 @@ const py = ({
|
|
|
6507
6507
|
...n
|
|
6508
6508
|
}) => {
|
|
6509
6509
|
var k;
|
|
6510
|
-
const { onClickTrack: t } = dt(Dr), { projectId: r, id: s, title: o, cover: i, transfers: l, audioUrl: c, onChangeTransfer: d } = n, u = _(() => l && l.length > 0, [l]), [p, A] = K(u ? parseInt(((k = l == null ? void 0 : l[0]) == null ? void 0 : k.pitchShift) ?? 0) : 0), g = _(() => u ? Math.min(...l == null ? void 0 : l.map((E) => parseInt(E.pitchShift))) : 0, [l]), v = _(() => u ? Math.max(...l == null ? void 0 : l.map((E) => parseInt(E.pitchShift))) : 0, [l]), C =
|
|
6510
|
+
const { onClickTrack: t } = dt(Dr), { projectId: r, id: s, title: o, cover: i, transfers: l, audioUrl: c, onChangeTransfer: d } = n, u = _(() => l && l.length > 0, [l]), [p, A] = K(u ? parseInt(((k = l == null ? void 0 : l[0]) == null ? void 0 : k.pitchShift) ?? 0) : 0), g = _(() => u ? Math.min(...l == null ? void 0 : l.map((E) => parseInt(E.pitchShift))) : 0, [l]), v = _(() => u ? Math.max(...l == null ? void 0 : l.map((E) => parseInt(E.pitchShift))) : 0, [l]), C = D((E) => {
|
|
6511
6511
|
var S;
|
|
6512
|
-
return u ? (S = l == null ? void 0 : l.find((
|
|
6513
|
-
}, [u, l, c]), m =
|
|
6512
|
+
return u ? (S = l == null ? void 0 : l.find((R) => parseInt(R.pitchShift) === E)) == null ? void 0 : S.audioUrl : c;
|
|
6513
|
+
}, [u, l, c]), m = D((E) => {
|
|
6514
6514
|
A(E), d == null || d(r, {
|
|
6515
6515
|
id: s,
|
|
6516
6516
|
title: o,
|
|
6517
6517
|
audioUrl: C(E)
|
|
6518
6518
|
});
|
|
6519
|
-
}, [d, r, s, o, l]), I =
|
|
6519
|
+
}, [d, r, s, o, l]), I = D((E) => {
|
|
6520
6520
|
E.stopPropagation(), t == null || t({
|
|
6521
6521
|
id: s,
|
|
6522
6522
|
title: o,
|
|
@@ -6638,42 +6638,42 @@ const Hy = "_starButton_1a7x2_1", Ky = "_disabled_1a7x2_17", Ly = "_readOnly_1a7
|
|
|
6638
6638
|
maxLabel: p,
|
|
6639
6639
|
...A
|
|
6640
6640
|
}) => {
|
|
6641
|
-
const [g, v] = K(r || 0), [C, m] = K(0), I = t !== void 0 ? t : g, k = t !== void 0, E =
|
|
6642
|
-
(
|
|
6641
|
+
const [g, v] = K(r || 0), [C, m] = K(0), I = t !== void 0 ? t : g, k = t !== void 0, E = D(
|
|
6642
|
+
(N) => {
|
|
6643
6643
|
if (s || o) return;
|
|
6644
|
-
const
|
|
6645
|
-
k || v(
|
|
6644
|
+
const B = N + 1, x = B === I ? 0 : B;
|
|
6645
|
+
k || v(x), i == null || i({ value: x });
|
|
6646
6646
|
},
|
|
6647
6647
|
[s, o, k, i, I]
|
|
6648
|
-
), S =
|
|
6649
|
-
(
|
|
6648
|
+
), S = D(
|
|
6649
|
+
(N) => {
|
|
6650
6650
|
if (s || o) return;
|
|
6651
|
-
const
|
|
6651
|
+
const B = N.currentTarget.getBoundingClientRect(), x = N.clientX - B.left, J = B.width / n, T = Math.floor(x / J), M = Math.max(0, Math.min(T, n - 1)) + 1;
|
|
6652
6652
|
M !== C && (m(M), l == null || l({ value: M }));
|
|
6653
6653
|
},
|
|
6654
6654
|
[s, o, n, C, l]
|
|
6655
|
-
),
|
|
6655
|
+
), R = D(() => {
|
|
6656
6656
|
s || o || (m(0), l == null || l({ value: 0 }));
|
|
6657
|
-
}, [s, o, l]),
|
|
6658
|
-
const
|
|
6657
|
+
}, [s, o, l]), w = (N) => {
|
|
6658
|
+
const B = C > 0 ? N < C : N < I, x = C > 0 && N < C, J = N < I;
|
|
6659
6659
|
return /* @__PURE__ */ a(
|
|
6660
6660
|
"button",
|
|
6661
6661
|
{
|
|
6662
6662
|
type: "button",
|
|
6663
6663
|
className: y(je.starButton, {
|
|
6664
|
-
[je.filled]:
|
|
6665
|
-
[je.hovered]:
|
|
6666
|
-
[je.active]:
|
|
6664
|
+
[je.filled]: B,
|
|
6665
|
+
[je.hovered]: x,
|
|
6666
|
+
[je.active]: J,
|
|
6667
6667
|
[je.disabled]: s,
|
|
6668
6668
|
[je.readOnly]: o
|
|
6669
6669
|
}),
|
|
6670
|
-
onClick: () => E(
|
|
6670
|
+
onClick: () => E(N),
|
|
6671
6671
|
disabled: s || o,
|
|
6672
|
-
"aria-label": `Rate ${
|
|
6672
|
+
"aria-label": `Rate ${N + 1} out of ${n}`,
|
|
6673
6673
|
...A,
|
|
6674
|
-
children:
|
|
6674
|
+
children: B ? /* @__PURE__ */ a(md, { className: je.starIcon }) : /* @__PURE__ */ a(fd, { className: je.starIcon })
|
|
6675
6675
|
},
|
|
6676
|
-
|
|
6676
|
+
N
|
|
6677
6677
|
);
|
|
6678
6678
|
};
|
|
6679
6679
|
return /* @__PURE__ */ f(
|
|
@@ -6698,8 +6698,8 @@ const Hy = "_starButton_1a7x2_1", Ky = "_disabled_1a7x2_17", Ly = "_readOnly_1a7
|
|
|
6698
6698
|
role: "radiogroup",
|
|
6699
6699
|
"aria-label": `Rating: ${I} out of ${n} stars`,
|
|
6700
6700
|
onMouseMove: S,
|
|
6701
|
-
onMouseLeave:
|
|
6702
|
-
children: Array.from({ length: n }, (
|
|
6701
|
+
onMouseLeave: R,
|
|
6702
|
+
children: Array.from({ length: n }, (N, B) => w(B))
|
|
6703
6703
|
}
|
|
6704
6704
|
),
|
|
6705
6705
|
(u || p) && /* @__PURE__ */ f(
|
|
@@ -6900,21 +6900,22 @@ const Cb = "_boxVertical_ujop8_21", vb = "_sliderRoot_ujop8_27", kb = "_sliderRo
|
|
|
6900
6900
|
highContrast: g = !1,
|
|
6901
6901
|
markers: v = [],
|
|
6902
6902
|
orientation: C = "horizontal",
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6903
|
+
horizontalWidth: m = "100%",
|
|
6904
|
+
verticalHeight: I = 200,
|
|
6905
|
+
scrollWheel: k = !1,
|
|
6906
|
+
...E
|
|
6906
6907
|
}) => {
|
|
6907
|
-
const { onWheel:
|
|
6908
|
-
(
|
|
6909
|
-
if (
|
|
6910
|
-
const
|
|
6911
|
-
if (
|
|
6912
|
-
|
|
6913
|
-
const
|
|
6908
|
+
const { onWheel: S, ...R } = E, w = C === "vertical", N = (T) => (T - c) / (d - c) * 100, B = D(
|
|
6909
|
+
(T) => {
|
|
6910
|
+
if (S == null || S(T), A || !r || T.defaultPrevented) return;
|
|
6911
|
+
const Q = w ? T.deltaY : Math.abs(T.deltaX) > Math.abs(T.deltaY) ? T.deltaX : T.deltaY;
|
|
6912
|
+
if (Q === 0) return;
|
|
6913
|
+
T.preventDefault();
|
|
6914
|
+
const M = (o == null ? void 0 : o[0]) ?? c, O = Q < 0 ? 1 : -1, U = Math.min(
|
|
6914
6915
|
d,
|
|
6915
|
-
Math.max(c,
|
|
6916
|
+
Math.max(c, M + O * u)
|
|
6916
6917
|
);
|
|
6917
|
-
|
|
6918
|
+
U !== M && r([U]);
|
|
6918
6919
|
},
|
|
6919
6920
|
[
|
|
6920
6921
|
A,
|
|
@@ -6922,15 +6923,15 @@ const Cb = "_boxVertical_ujop8_21", vb = "_sliderRoot_ujop8_27", kb = "_sliderRo
|
|
|
6922
6923
|
w,
|
|
6923
6924
|
d,
|
|
6924
6925
|
c,
|
|
6925
|
-
|
|
6926
|
+
S,
|
|
6926
6927
|
u,
|
|
6927
6928
|
o
|
|
6928
6929
|
]
|
|
6929
|
-
), x = typeof m == "number" ? `${m}px` : m;
|
|
6930
|
+
), x = typeof I == "number" ? `${I}px` : I, J = typeof m == "number" ? `${m}px` : m;
|
|
6930
6931
|
return /* @__PURE__ */ f(
|
|
6931
6932
|
me,
|
|
6932
6933
|
{
|
|
6933
|
-
width: "100%",
|
|
6934
|
+
width: w ? "100%" : J,
|
|
6934
6935
|
className: y(w && de.boxVertical),
|
|
6935
6936
|
style: w ? { "--slider-vertical-height": x } : void 0,
|
|
6936
6937
|
children: [
|
|
@@ -6981,8 +6982,8 @@ const Cb = "_boxVertical_ujop8_21", vb = "_sliderRoot_ujop8_27", kb = "_sliderRo
|
|
|
6981
6982
|
className: y(de.sliderRoot, n, {
|
|
6982
6983
|
[de.sliderRootVertical]: w
|
|
6983
6984
|
}),
|
|
6984
|
-
onWheel:
|
|
6985
|
-
...
|
|
6985
|
+
onWheel: k ? B : S,
|
|
6986
|
+
...R,
|
|
6986
6987
|
children: /* @__PURE__ */ f(
|
|
6987
6988
|
b,
|
|
6988
6989
|
{
|
|
@@ -7027,7 +7028,7 @@ const Cb = "_boxVertical_ujop8_21", vb = "_sliderRoot_ujop8_27", kb = "_sliderRo
|
|
|
7027
7028
|
]
|
|
7028
7029
|
}
|
|
7029
7030
|
),
|
|
7030
|
-
v.length > 0 && /* @__PURE__ */ a("div", { className: de.markersContainer, children: v.map((
|
|
7031
|
+
v.length > 0 && /* @__PURE__ */ a("div", { className: de.markersContainer, children: v.map((T, Q) => /* @__PURE__ */ a(
|
|
7031
7032
|
"div",
|
|
7032
7033
|
{
|
|
7033
7034
|
className: y(de.marker, {
|
|
@@ -7035,12 +7036,12 @@ const Cb = "_boxVertical_ujop8_21", vb = "_sliderRoot_ujop8_27", kb = "_sliderRo
|
|
|
7035
7036
|
[de.markerVertical]: w
|
|
7036
7037
|
}),
|
|
7037
7038
|
style: w ? {
|
|
7038
|
-
bottom: `${
|
|
7039
|
+
bottom: `${N(T)}%`
|
|
7039
7040
|
} : {
|
|
7040
|
-
left: `${
|
|
7041
|
+
left: `${N(T)}%`
|
|
7041
7042
|
}
|
|
7042
7043
|
},
|
|
7043
|
-
|
|
7044
|
+
Q
|
|
7044
7045
|
)) })
|
|
7045
7046
|
]
|
|
7046
7047
|
}
|
|
@@ -7415,25 +7416,25 @@ const bl = ({
|
|
|
7415
7416
|
dndDroppableId: k,
|
|
7416
7417
|
onDragEnter: E,
|
|
7417
7418
|
onDragLeave: S,
|
|
7418
|
-
onDragOver:
|
|
7419
|
-
onDrop:
|
|
7419
|
+
onDragOver: R,
|
|
7420
|
+
onDrop: w
|
|
7420
7421
|
}) => {
|
|
7421
|
-
const [
|
|
7422
|
+
const [N, B] = K(!1), x = !!k, { setNodeRef: J, isOver: T } = ho({
|
|
7422
7423
|
id: k ?? "__setlist-item-noop__",
|
|
7423
|
-
disabled: !
|
|
7424
|
+
disabled: !x
|
|
7424
7425
|
}), Q = () => {
|
|
7425
|
-
|
|
7426
|
+
B(!0);
|
|
7426
7427
|
}, M = () => {
|
|
7427
|
-
|
|
7428
|
-
},
|
|
7429
|
-
|
|
7430
|
-
}, U = (
|
|
7431
|
-
|
|
7428
|
+
B(!1);
|
|
7429
|
+
}, O = (F) => {
|
|
7430
|
+
F.stopPropagation();
|
|
7431
|
+
}, U = (F) => {
|
|
7432
|
+
F.stopPropagation();
|
|
7432
7433
|
};
|
|
7433
7434
|
return /* @__PURE__ */ f(
|
|
7434
7435
|
b,
|
|
7435
7436
|
{
|
|
7436
|
-
ref:
|
|
7437
|
+
ref: x ? J : void 0,
|
|
7437
7438
|
gap: "3",
|
|
7438
7439
|
align: "center",
|
|
7439
7440
|
role: r ? "button" : void 0,
|
|
@@ -7443,17 +7444,17 @@ const bl = ({
|
|
|
7443
7444
|
[Z.navItemSelected]: n,
|
|
7444
7445
|
[Z.collapsed]: v,
|
|
7445
7446
|
[Z.menuOpen]: u,
|
|
7446
|
-
[Z.dropTarget]: m && I ||
|
|
7447
|
+
[Z.dropTarget]: m && I || T
|
|
7447
7448
|
}),
|
|
7448
7449
|
onMouseEnter: Q,
|
|
7449
7450
|
onMouseLeave: M,
|
|
7450
7451
|
"data-setlist-id": t,
|
|
7451
7452
|
onDragEnter: m ? E : void 0,
|
|
7452
7453
|
onDragLeave: m ? S : void 0,
|
|
7453
|
-
onDragOver: m ?
|
|
7454
|
-
onDrop: m ?
|
|
7455
|
-
onKeyDown: r ? (
|
|
7456
|
-
(
|
|
7454
|
+
onDragOver: m ? R : void 0,
|
|
7455
|
+
onDrop: m ? w : void 0,
|
|
7456
|
+
onKeyDown: r ? (F) => {
|
|
7457
|
+
(F.key === "Enter" || F.key === " ") && (F.preventDefault(), r == null || r());
|
|
7457
7458
|
} : void 0,
|
|
7458
7459
|
style: o,
|
|
7459
7460
|
children: [
|
|
@@ -7509,7 +7510,7 @@ const bl = ({
|
|
|
7509
7510
|
]
|
|
7510
7511
|
}
|
|
7511
7512
|
),
|
|
7512
|
-
d && !v && (
|
|
7513
|
+
d && !v && (N || u) && /* @__PURE__ */ a(
|
|
7513
7514
|
on,
|
|
7514
7515
|
{
|
|
7515
7516
|
open: u,
|
|
@@ -7522,7 +7523,7 @@ const bl = ({
|
|
|
7522
7523
|
className: y(Z.dropdownTriggerWrapper, {
|
|
7523
7524
|
[Z.dropdownTriggerWrapperMobile]: C
|
|
7524
7525
|
}),
|
|
7525
|
-
onPointerDown:
|
|
7526
|
+
onPointerDown: O,
|
|
7526
7527
|
onClick: U,
|
|
7527
7528
|
children: /* @__PURE__ */ a(Nr, { hovered: u })
|
|
7528
7529
|
}
|
|
@@ -7552,42 +7553,42 @@ const bl = ({
|
|
|
7552
7553
|
}) => {
|
|
7553
7554
|
const { close: m, isMobile: I } = wr(), [k, E] = K(null), S = (q) => {
|
|
7554
7555
|
r == null || r(q), I && m();
|
|
7555
|
-
},
|
|
7556
|
+
}, R = () => {
|
|
7556
7557
|
c == null || c(), I && m();
|
|
7557
|
-
}, [
|
|
7558
|
-
|
|
7559
|
-
|
|
7558
|
+
}, [w, N] = K(!1), [B, x] = K(!1), [J, T] = K(!1), [Q, M] = K(!1), O = ee(null), U = ee(null), F = ee(null), z = ee(p), X = 50, $ = 200, W = 44, re = 4, Ne = p && c ? 1 : 0, ke = p && !w && !Q, Le = n, be = n.length + (c ? 1 : 0), se = Math.min(4, be), L = $ + Math.max(0, se - 1) * X, j = L, le = () => {
|
|
7559
|
+
O.current && (clearTimeout(O.current), O.current = null), U.current && (clearTimeout(U.current), U.current = null), x(!1), T(!0), N(!0), U.current = setTimeout(() => {
|
|
7560
|
+
T(!1), U.current = null;
|
|
7560
7561
|
}, j);
|
|
7561
7562
|
}, Ie = () => {
|
|
7562
|
-
p && (
|
|
7563
|
+
p && (O.current && (clearTimeout(O.current), O.current = null), B ? x(!1) : w || le());
|
|
7563
7564
|
}, ce = () => {
|
|
7564
|
-
p &&
|
|
7565
|
-
|
|
7565
|
+
p && w && (U.current && (clearTimeout(U.current), U.current = null), T(!1), x(!0), O.current = setTimeout(() => {
|
|
7566
|
+
O.current = null, N(!1), x(!1);
|
|
7566
7567
|
}, j));
|
|
7567
7568
|
}, ae = (q) => {
|
|
7568
7569
|
p && (q.stopPropagation(), le());
|
|
7569
7570
|
}, oe = () => {
|
|
7570
|
-
p && !
|
|
7571
|
+
p && !w && le();
|
|
7571
7572
|
}, qe = () => {
|
|
7572
7573
|
if (!p) return;
|
|
7573
|
-
const q =
|
|
7574
|
+
const q = F.current;
|
|
7574
7575
|
q && setTimeout(() => {
|
|
7575
|
-
q.contains(document.activeElement) ||
|
|
7576
|
+
q.contains(document.activeElement) || N(!1);
|
|
7576
7577
|
}, 0);
|
|
7577
7578
|
};
|
|
7578
7579
|
if (z.current !== p) {
|
|
7579
7580
|
const q = z.current;
|
|
7580
|
-
z.current = p, p && !q ? (M(!0),
|
|
7581
|
+
z.current = p, p && !q ? (M(!0), T(!1), x(!0)) : !p && q && (N(!1), M(!0), x(!1), T(!0));
|
|
7581
7582
|
}
|
|
7582
7583
|
ie(() => {
|
|
7583
7584
|
if (!Q) return;
|
|
7584
|
-
|
|
7585
|
+
O.current && (clearTimeout(O.current), O.current = null), U.current && (clearTimeout(U.current), U.current = null);
|
|
7585
7586
|
const q = setTimeout(() => {
|
|
7586
|
-
M(!1),
|
|
7587
|
+
M(!1), x(!1), T(!1);
|
|
7587
7588
|
}, j);
|
|
7588
7589
|
return () => clearTimeout(q);
|
|
7589
7590
|
}, [Q, j]), ie(() => () => {
|
|
7590
|
-
|
|
7591
|
+
O.current && clearTimeout(O.current), U.current && clearTimeout(U.current);
|
|
7591
7592
|
}, []);
|
|
7592
7593
|
const Ye = (q) => {
|
|
7593
7594
|
if (!p) return;
|
|
@@ -7613,7 +7614,7 @@ const bl = ({
|
|
|
7613
7614
|
}, Qe = p && !ke || Q, ut = p || Q, at = (q) => {
|
|
7614
7615
|
if (!Qe) return;
|
|
7615
7616
|
const Pe = q < se;
|
|
7616
|
-
if (
|
|
7617
|
+
if (B) {
|
|
7617
7618
|
if (Pe) {
|
|
7618
7619
|
const $e = -(q * (W - re)), he = q === 0 ? 1 : (W - q * 2) / W;
|
|
7619
7620
|
return {
|
|
@@ -7628,7 +7629,7 @@ const bl = ({
|
|
|
7628
7629
|
zIndex: be - q
|
|
7629
7630
|
};
|
|
7630
7631
|
}
|
|
7631
|
-
if (
|
|
7632
|
+
if (J) {
|
|
7632
7633
|
if (Pe) {
|
|
7633
7634
|
const $e = -(q * (W - re)), he = q === 0 ? 1 : (W - q * 2) / W;
|
|
7634
7635
|
return {
|
|
@@ -7656,7 +7657,7 @@ const bl = ({
|
|
|
7656
7657
|
children: /* @__PURE__ */ a(
|
|
7657
7658
|
"div",
|
|
7658
7659
|
{
|
|
7659
|
-
ref:
|
|
7660
|
+
ref: F,
|
|
7660
7661
|
className: y(Z.hoverRegion, Z.scrollShadow),
|
|
7661
7662
|
onMouseEnter: Ie,
|
|
7662
7663
|
onMouseLeave: ce,
|
|
@@ -7687,11 +7688,11 @@ const bl = ({
|
|
|
7687
7688
|
) : /* @__PURE__ */ a(
|
|
7688
7689
|
QI,
|
|
7689
7690
|
{
|
|
7690
|
-
onClick:
|
|
7691
|
+
onClick: R,
|
|
7691
7692
|
className: y({
|
|
7692
7693
|
[Z.staggerItem]: Qe,
|
|
7693
|
-
[Z.staggerAnimateIn]: Qe &&
|
|
7694
|
-
[Z.staggerAnimateOut]: Qe &&
|
|
7694
|
+
[Z.staggerAnimateIn]: Qe && J,
|
|
7695
|
+
[Z.staggerAnimateOut]: Qe && B
|
|
7695
7696
|
}),
|
|
7696
7697
|
style: at(0),
|
|
7697
7698
|
collapsed: ut,
|
|
@@ -7736,11 +7737,11 @@ const bl = ({
|
|
|
7736
7737
|
[Z.collapsedStackItem]: ke,
|
|
7737
7738
|
[Z.collapsedTransition]: p && ke,
|
|
7738
7739
|
[Z.staggerItem]: Qe,
|
|
7739
|
-
[Z.staggerAnimateIn]: Qe &&
|
|
7740
|
-
[Z.staggerAnimateOut]: Qe &&
|
|
7741
|
-
[Z.fadeAnimateIn]: Qe &&
|
|
7742
|
-
[Z.fadeAnimateOut]: Qe &&
|
|
7743
|
-
[Z.fadeHidden]: !Ce && p && !
|
|
7740
|
+
[Z.staggerAnimateIn]: Qe && J && Ce,
|
|
7741
|
+
[Z.staggerAnimateOut]: Qe && B && Ce,
|
|
7742
|
+
[Z.fadeAnimateIn]: Qe && J && !Ce,
|
|
7743
|
+
[Z.fadeAnimateOut]: Qe && B && !Ce,
|
|
7744
|
+
[Z.fadeHidden]: !Ce && p && !w && !Q
|
|
7744
7745
|
}),
|
|
7745
7746
|
style: {
|
|
7746
7747
|
...Ye(Pe),
|
|
@@ -7786,7 +7787,7 @@ const bl = ({
|
|
|
7786
7787
|
logoButton: l0,
|
|
7787
7788
|
headerCollapsed: c0
|
|
7788
7789
|
}, Il = (n) => {
|
|
7789
|
-
const t = kl(n), [r, s] = K(!1), o =
|
|
7790
|
+
const t = kl(n), [r, s] = K(!1), o = D(() => s(!0), []), i = D(() => s(!1), []), l = D(() => s((c) => !c), []);
|
|
7790
7791
|
return ie(() => {
|
|
7791
7792
|
t || s(!1);
|
|
7792
7793
|
}, [t]), ie(() => {
|
|
@@ -7813,42 +7814,42 @@ const bl = ({
|
|
|
7813
7814
|
tooltip: c = "Expand menu",
|
|
7814
7815
|
...d
|
|
7815
7816
|
}) => {
|
|
7816
|
-
const { isMobile: u, isOpen: p, open: A, close: g } = Il(), [v, C] = K(!1), [m, I] = K(!1), k = s ?? m, E =
|
|
7817
|
+
const { isMobile: u, isOpen: p, open: A, close: g } = Il(), [v, C] = K(!1), [m, I] = K(!1), k = s ?? m, E = D(
|
|
7817
7818
|
(z) => {
|
|
7818
7819
|
s == null && I(z), o == null || o(z);
|
|
7819
7820
|
},
|
|
7820
7821
|
[s, o]
|
|
7821
|
-
), S = u ? !1 : r && !k,
|
|
7822
|
+
), S = u ? !1 : r && !k, R = () => {
|
|
7822
7823
|
u || (C(!1), E(!1), i((z) => !z));
|
|
7823
|
-
},
|
|
7824
|
+
}, w = () => {
|
|
7824
7825
|
u || C(!0);
|
|
7825
|
-
}, B = () => {
|
|
7826
|
-
u || C(!1);
|
|
7827
|
-
}, x = (z) => {
|
|
7828
|
-
S ? w() : l && l(z);
|
|
7829
7826
|
}, N = () => {
|
|
7827
|
+
u || C(!1);
|
|
7828
|
+
}, B = (z) => {
|
|
7829
|
+
S ? R() : l && l(z);
|
|
7830
|
+
}, x = () => {
|
|
7830
7831
|
u || !r || E(!0);
|
|
7831
|
-
},
|
|
7832
|
+
}, J = () => {
|
|
7832
7833
|
E(!1);
|
|
7833
|
-
},
|
|
7834
|
-
|
|
7834
|
+
}, T = (z) => {
|
|
7835
|
+
w(), z.buttons > 0 && x();
|
|
7835
7836
|
}, Q = () => {
|
|
7836
|
-
|
|
7837
|
+
x();
|
|
7837
7838
|
}, M = (z) => {
|
|
7838
|
-
u || !r || (z.preventDefault(),
|
|
7839
|
-
},
|
|
7839
|
+
u || !r || (z.preventDefault(), x());
|
|
7840
|
+
}, O = S ? "Expand menu" : "Moises", U = "Moises";
|
|
7840
7841
|
ie(() => {
|
|
7841
7842
|
if (!k) return;
|
|
7842
7843
|
const z = () => {
|
|
7843
|
-
|
|
7844
|
+
J();
|
|
7844
7845
|
}, X = () => {
|
|
7845
|
-
|
|
7846
|
+
J();
|
|
7846
7847
|
};
|
|
7847
7848
|
return window.addEventListener("pointerup", z), window.addEventListener("dragend", X), window.addEventListener("drop", X), () => {
|
|
7848
7849
|
window.removeEventListener("pointerup", z), window.removeEventListener("dragend", X), window.removeEventListener("drop", X);
|
|
7849
7850
|
};
|
|
7850
7851
|
}, [k]);
|
|
7851
|
-
const
|
|
7852
|
+
const F = /* @__PURE__ */ f(fe, { children: [
|
|
7852
7853
|
/* @__PURE__ */ f(
|
|
7853
7854
|
"div",
|
|
7854
7855
|
{
|
|
@@ -7911,7 +7912,7 @@ const bl = ({
|
|
|
7911
7912
|
{
|
|
7912
7913
|
type: "button",
|
|
7913
7914
|
className: te.logoButton,
|
|
7914
|
-
onClick:
|
|
7915
|
+
onClick: B,
|
|
7915
7916
|
"aria-label": U,
|
|
7916
7917
|
children: /* @__PURE__ */ f(
|
|
7917
7918
|
b,
|
|
@@ -7967,11 +7968,11 @@ const bl = ({
|
|
|
7967
7968
|
{
|
|
7968
7969
|
direction: "column",
|
|
7969
7970
|
className: te.desktopSidebar,
|
|
7970
|
-
onMouseEnter:
|
|
7971
|
-
onMouseLeave:
|
|
7971
|
+
onMouseEnter: T,
|
|
7972
|
+
onMouseLeave: N,
|
|
7972
7973
|
onDragEnter: Q,
|
|
7973
7974
|
onDragOver: M,
|
|
7974
|
-
onDrop:
|
|
7975
|
+
onDrop: J,
|
|
7975
7976
|
children: [
|
|
7976
7977
|
S ? /* @__PURE__ */ a("div", { className: te.headerWrapper, children: /* @__PURE__ */ a(_e, { content: c, side: "right", sideOffset: 5, align: "center", alignOffset: 0, children: /* @__PURE__ */ a("div", { className: te.tooltipTriggerWrapper, children: /* @__PURE__ */ f(
|
|
7977
7978
|
b,
|
|
@@ -7987,8 +7988,8 @@ const bl = ({
|
|
|
7987
7988
|
{
|
|
7988
7989
|
type: "button",
|
|
7989
7990
|
className: te.logoButton,
|
|
7990
|
-
onClick:
|
|
7991
|
-
"aria-label":
|
|
7991
|
+
onClick: B,
|
|
7992
|
+
"aria-label": O,
|
|
7992
7993
|
children: /* @__PURE__ */ a(
|
|
7993
7994
|
b,
|
|
7994
7995
|
{
|
|
@@ -7997,7 +7998,7 @@ const bl = ({
|
|
|
7997
7998
|
style: {
|
|
7998
7999
|
cursor: S || l ? "pointer" : "default"
|
|
7999
8000
|
},
|
|
8000
|
-
children:
|
|
8001
|
+
children: F
|
|
8001
8002
|
}
|
|
8002
8003
|
)
|
|
8003
8004
|
}
|
|
@@ -8006,7 +8007,7 @@ const bl = ({
|
|
|
8006
8007
|
"button",
|
|
8007
8008
|
{
|
|
8008
8009
|
type: "button",
|
|
8009
|
-
onClick:
|
|
8010
|
+
onClick: R,
|
|
8010
8011
|
className: y(te.toggleButton, {
|
|
8011
8012
|
[te.toggleButtonHidden]: S
|
|
8012
8013
|
}),
|
|
@@ -8030,8 +8031,8 @@ const bl = ({
|
|
|
8030
8031
|
{
|
|
8031
8032
|
type: "button",
|
|
8032
8033
|
className: te.logoButton,
|
|
8033
|
-
onClick:
|
|
8034
|
-
"aria-label":
|
|
8034
|
+
onClick: B,
|
|
8035
|
+
"aria-label": O,
|
|
8035
8036
|
children: /* @__PURE__ */ a(
|
|
8036
8037
|
b,
|
|
8037
8038
|
{
|
|
@@ -8040,7 +8041,7 @@ const bl = ({
|
|
|
8040
8041
|
style: {
|
|
8041
8042
|
cursor: S || l ? "pointer" : "default"
|
|
8042
8043
|
},
|
|
8043
|
-
children:
|
|
8044
|
+
children: F
|
|
8044
8045
|
}
|
|
8045
8046
|
)
|
|
8046
8047
|
}
|
|
@@ -8049,7 +8050,7 @@ const bl = ({
|
|
|
8049
8050
|
"button",
|
|
8050
8051
|
{
|
|
8051
8052
|
type: "button",
|
|
8052
|
-
onClick:
|
|
8053
|
+
onClick: R,
|
|
8053
8054
|
className: y(te.toggleButton, {
|
|
8054
8055
|
[te.toggleButtonHidden]: S
|
|
8055
8056
|
}),
|
|
@@ -8097,7 +8098,7 @@ const d0 = "_sectionTitle_bwlze_1", u0 = "_separator_bwlze_17", Ja = {
|
|
|
8097
8098
|
sidebarTooltip: C,
|
|
8098
8099
|
children: m
|
|
8099
8100
|
}) => {
|
|
8100
|
-
const [I, k] = K(!1), [E, S] = K(!1), { isMobile:
|
|
8101
|
+
const [I, k] = K(!1), [E, S] = K(!1), { isMobile: R } = Il(), w = R ? !1 : I && !E;
|
|
8101
8102
|
return /* @__PURE__ */ f(fe, { children: [
|
|
8102
8103
|
/* @__PURE__ */ f(
|
|
8103
8104
|
Sl,
|
|
@@ -8109,14 +8110,14 @@ const d0 = "_sectionTitle_bwlze_1", u0 = "_separator_bwlze_17", Ja = {
|
|
|
8109
8110
|
tooltip: C,
|
|
8110
8111
|
children: [
|
|
8111
8112
|
/* @__PURE__ */ f(b, { direction: "column", children: [
|
|
8112
|
-
/* @__PURE__ */ a(Da, { title: "PRODUCTS", collapsed:
|
|
8113
|
+
/* @__PURE__ */ a(Da, { title: "PRODUCTS", collapsed: w }),
|
|
8113
8114
|
/* @__PURE__ */ a(
|
|
8114
8115
|
ny,
|
|
8115
8116
|
{
|
|
8116
8117
|
products: o,
|
|
8117
8118
|
selectedProductId: i,
|
|
8118
8119
|
onProductClick: l,
|
|
8119
|
-
collapsed:
|
|
8120
|
+
collapsed: w
|
|
8120
8121
|
}
|
|
8121
8122
|
)
|
|
8122
8123
|
] }),
|
|
@@ -8126,7 +8127,7 @@ const d0 = "_sectionTitle_bwlze_1", u0 = "_separator_bwlze_17", Ja = {
|
|
|
8126
8127
|
direction: "column",
|
|
8127
8128
|
style: { overflow: "hidden", flex: 1, minHeight: 0 },
|
|
8128
8129
|
children: [
|
|
8129
|
-
/* @__PURE__ */ a(Da, { title: "SETLISTS", collapsed:
|
|
8130
|
+
/* @__PURE__ */ a(Da, { title: "SETLISTS", collapsed: w }),
|
|
8130
8131
|
/* @__PURE__ */ a(
|
|
8131
8132
|
UI,
|
|
8132
8133
|
{
|
|
@@ -8136,8 +8137,8 @@ const d0 = "_sectionTitle_bwlze_1", u0 = "_separator_bwlze_17", Ja = {
|
|
|
8136
8137
|
onNewSetlistClick: p,
|
|
8137
8138
|
newSetlistButtonTooltip: A,
|
|
8138
8139
|
expandButtonTooltip: g,
|
|
8139
|
-
collapsed:
|
|
8140
|
-
isMobile:
|
|
8140
|
+
collapsed: w,
|
|
8141
|
+
isMobile: R
|
|
8141
8142
|
}
|
|
8142
8143
|
)
|
|
8143
8144
|
]
|
|
@@ -8153,7 +8154,7 @@ const d0 = "_sectionTitle_bwlze_1", u0 = "_separator_bwlze_17", Ja = {
|
|
|
8153
8154
|
/* @__PURE__ */ a(
|
|
8154
8155
|
og,
|
|
8155
8156
|
{
|
|
8156
|
-
collapsed:
|
|
8157
|
+
collapsed: w,
|
|
8157
8158
|
additionalItems: n,
|
|
8158
8159
|
selectedAdditionalItemId: t
|
|
8159
8160
|
}
|
|
@@ -8163,7 +8164,7 @@ const d0 = "_sectionTitle_bwlze_1", u0 = "_separator_bwlze_17", Ja = {
|
|
|
8163
8164
|
{
|
|
8164
8165
|
user: r,
|
|
8165
8166
|
menuOptions: r == null ? void 0 : r.menuOptions,
|
|
8166
|
-
collapsed:
|
|
8167
|
+
collapsed: w,
|
|
8167
8168
|
tooltip: v
|
|
8168
8169
|
}
|
|
8169
8170
|
)
|
|
@@ -8304,16 +8305,16 @@ const Zn = (n) => {
|
|
|
8304
8305
|
onFetchSuggestedTags: p,
|
|
8305
8306
|
suggestedTagsLoading: A
|
|
8306
8307
|
}) => {
|
|
8307
|
-
const g = ee(null), v = ee(null), [C, m] = K(!1), I =
|
|
8308
|
-
const
|
|
8309
|
-
m(
|
|
8310
|
-
}, []), k = !!l || !!d, E =
|
|
8311
|
-
(
|
|
8308
|
+
const g = ee(null), v = ee(null), [C, m] = K(!1), I = D((w) => {
|
|
8309
|
+
const N = w.target, B = N.scrollLeft + N.clientWidth >= N.scrollWidth - 2;
|
|
8310
|
+
m(B);
|
|
8311
|
+
}, []), k = !!l || !!d, E = D(
|
|
8312
|
+
(w) => {
|
|
8312
8313
|
if (k) return;
|
|
8313
|
-
const
|
|
8314
|
-
t((
|
|
8315
|
-
...
|
|
8316
|
-
conditioningText:
|
|
8314
|
+
const N = w.target.value;
|
|
8315
|
+
t((B) => ({
|
|
8316
|
+
...B,
|
|
8317
|
+
conditioningText: N
|
|
8317
8318
|
}));
|
|
8318
8319
|
},
|
|
8319
8320
|
[t, k]
|
|
@@ -8328,17 +8329,17 @@ const Zn = (n) => {
|
|
|
8328
8329
|
}, [n.conditioningText, p]), ie(() => {
|
|
8329
8330
|
m(!1);
|
|
8330
8331
|
}, [u]);
|
|
8331
|
-
const S =
|
|
8332
|
-
(
|
|
8333
|
-
t((
|
|
8334
|
-
...
|
|
8335
|
-
conditioningText: (
|
|
8332
|
+
const S = D(
|
|
8333
|
+
(w) => {
|
|
8334
|
+
t((N) => ({
|
|
8335
|
+
...N,
|
|
8336
|
+
conditioningText: (N.conditioningText || "").trimEnd() + " " + w + " "
|
|
8336
8337
|
}));
|
|
8337
8338
|
},
|
|
8338
8339
|
[t]
|
|
8339
|
-
),
|
|
8340
|
-
t((
|
|
8341
|
-
...
|
|
8340
|
+
), R = D(() => {
|
|
8341
|
+
t((w) => ({
|
|
8342
|
+
...w,
|
|
8342
8343
|
conditioningAudio: null,
|
|
8343
8344
|
conditioningAudioName: null,
|
|
8344
8345
|
conditioningAudioSize: null,
|
|
@@ -8433,13 +8434,13 @@ const Zn = (n) => {
|
|
|
8433
8434
|
children: /* @__PURE__ */ a(bd, { width: 14, height: 14 })
|
|
8434
8435
|
}
|
|
8435
8436
|
),
|
|
8436
|
-
A && /* @__PURE__ */ a("div", { className: et.tagsWrapper, children: /* @__PURE__ */ a("div", { className: et.tagsContainer, children: D0.map((
|
|
8437
|
+
A && /* @__PURE__ */ a("div", { className: et.tagsWrapper, children: /* @__PURE__ */ a("div", { className: et.tagsContainer, children: D0.map((w, N) => /* @__PURE__ */ a(
|
|
8437
8438
|
"div",
|
|
8438
8439
|
{
|
|
8439
8440
|
className: et.skeletonChip,
|
|
8440
|
-
style: { width:
|
|
8441
|
+
style: { width: w }
|
|
8441
8442
|
},
|
|
8442
|
-
|
|
8443
|
+
N
|
|
8443
8444
|
)) }) }),
|
|
8444
8445
|
!A && (u == null ? void 0 : u.length) > 0 && /* @__PURE__ */ a(
|
|
8445
8446
|
"div",
|
|
@@ -8452,13 +8453,13 @@ const Zn = (n) => {
|
|
|
8452
8453
|
ref: v,
|
|
8453
8454
|
className: et.tagsContainer,
|
|
8454
8455
|
onScroll: I,
|
|
8455
|
-
children: u.map((
|
|
8456
|
+
children: u.map((w) => /* @__PURE__ */ a(
|
|
8456
8457
|
Ue,
|
|
8457
8458
|
{
|
|
8458
8459
|
className: et.tagChip,
|
|
8459
8460
|
variant: "ghost",
|
|
8460
8461
|
size: "2",
|
|
8461
|
-
onClick: () => S(
|
|
8462
|
+
onClick: () => S(w),
|
|
8462
8463
|
style: {
|
|
8463
8464
|
borderRadius: "9999px",
|
|
8464
8465
|
color: "rgba(241, 247, 254, 0.71)",
|
|
@@ -8466,9 +8467,9 @@ const Zn = (n) => {
|
|
|
8466
8467
|
paddingLeft: 14,
|
|
8467
8468
|
paddingRight: 14
|
|
8468
8469
|
},
|
|
8469
|
-
children:
|
|
8470
|
+
children: w
|
|
8470
8471
|
},
|
|
8471
|
-
|
|
8472
|
+
w
|
|
8472
8473
|
))
|
|
8473
8474
|
}
|
|
8474
8475
|
)
|
|
@@ -8503,7 +8504,7 @@ const Zn = (n) => {
|
|
|
8503
8504
|
y0(n),
|
|
8504
8505
|
")"
|
|
8505
8506
|
] }),
|
|
8506
|
-
/* @__PURE__ */ a(ye, { variant: "soft", onClick:
|
|
8507
|
+
/* @__PURE__ */ a(ye, { variant: "soft", onClick: R, children: /* @__PURE__ */ a(Sd, { width: 16, height: 16 }) })
|
|
8507
8508
|
]
|
|
8508
8509
|
}
|
|
8509
8510
|
) : /* @__PURE__ */ f(
|
|
@@ -8583,7 +8584,7 @@ function O0({
|
|
|
8583
8584
|
showAdvancedControlsPaywall: o
|
|
8584
8585
|
}) {
|
|
8585
8586
|
var c, d, u, p, A, g;
|
|
8586
|
-
const i = n.customizeCreativeFreedom || !1, l =
|
|
8587
|
+
const i = n.customizeCreativeFreedom || !1, l = D(
|
|
8587
8588
|
async (v) => {
|
|
8588
8589
|
var C, m, I;
|
|
8589
8590
|
await o() || s({
|
|
@@ -8732,7 +8733,7 @@ function P0({
|
|
|
8732
8733
|
...n,
|
|
8733
8734
|
useProjectChords: d
|
|
8734
8735
|
});
|
|
8735
|
-
}, c =
|
|
8736
|
+
}, c = D(
|
|
8736
8737
|
async (d) => {
|
|
8737
8738
|
await i() || t({
|
|
8738
8739
|
...n,
|
|
@@ -8918,7 +8919,7 @@ const rr = {
|
|
|
8918
8919
|
animationDuration: 200
|
|
8919
8920
|
}
|
|
8920
8921
|
}, oa = (n) => {
|
|
8921
|
-
const [t, r] = K(!1), s =
|
|
8922
|
+
const [t, r] = K(!1), s = D(
|
|
8922
8923
|
async (...o) => {
|
|
8923
8924
|
r(!0), await n(...o);
|
|
8924
8925
|
},
|
|
@@ -8938,7 +8939,7 @@ const rr = {
|
|
|
8938
8939
|
onAddConditioningAudio: s,
|
|
8939
8940
|
showConditioningTextPaywall: o,
|
|
8940
8941
|
showAdvancedControlsPaywall: i,
|
|
8941
|
-
i18n: l = { _: (
|
|
8942
|
+
i18n: l = { _: (T) => T },
|
|
8942
8943
|
loading: c,
|
|
8943
8944
|
onSubmit: d,
|
|
8944
8945
|
limitReached: u,
|
|
@@ -8952,14 +8953,14 @@ const rr = {
|
|
|
8952
8953
|
onMountConcurrency: k,
|
|
8953
8954
|
onClear: E,
|
|
8954
8955
|
onInspireMe: S,
|
|
8955
|
-
inspireMeLoading:
|
|
8956
|
-
onBoost:
|
|
8957
|
-
boostLoading:
|
|
8958
|
-
suggestedTags:
|
|
8959
|
-
onFetchSuggestedTags:
|
|
8960
|
-
suggestedTagsLoading:
|
|
8956
|
+
inspireMeLoading: R,
|
|
8957
|
+
onBoost: w,
|
|
8958
|
+
boostLoading: N,
|
|
8959
|
+
suggestedTags: B,
|
|
8960
|
+
onFetchSuggestedTags: x,
|
|
8961
|
+
suggestedTagsLoading: J
|
|
8961
8962
|
}) => {
|
|
8962
|
-
const [
|
|
8963
|
+
const [T, Q] = K(!1), [M, O] = K("2"), [U, F] = K(M), { submitted: z, handleSubmit: X } = oa(d), $ = _(() => [
|
|
8963
8964
|
{ value: "2", label: l._("Presets") },
|
|
8964
8965
|
{ value: "1", label: l._("Custom") }
|
|
8965
8966
|
], []), W = (r ?? []).some(
|
|
@@ -8978,9 +8979,9 @@ const rr = {
|
|
|
8978
8979
|
]), Ne = _(
|
|
8979
8980
|
() => I0(l),
|
|
8980
8981
|
[l]
|
|
8981
|
-
), ke =
|
|
8982
|
+
), ke = D(
|
|
8982
8983
|
(se) => {
|
|
8983
|
-
|
|
8984
|
+
O(se), t({
|
|
8984
8985
|
...S0,
|
|
8985
8986
|
instrument: n.instrument,
|
|
8986
8987
|
contextAudio: null,
|
|
@@ -8989,7 +8990,7 @@ const rr = {
|
|
|
8989
8990
|
});
|
|
8990
8991
|
},
|
|
8991
8992
|
[t, n.instrument]
|
|
8992
|
-
), Le =
|
|
8993
|
+
), Le = D(
|
|
8993
8994
|
(se) => {
|
|
8994
8995
|
t({
|
|
8995
8996
|
...n,
|
|
@@ -9006,7 +9007,7 @@ const rr = {
|
|
|
9006
9007
|
v,
|
|
9007
9008
|
m
|
|
9008
9009
|
]
|
|
9009
|
-
), be =
|
|
9010
|
+
), be = D(
|
|
9010
9011
|
(se) => {
|
|
9011
9012
|
const L = nt[se] || {};
|
|
9012
9013
|
t((j) => ({
|
|
@@ -9026,7 +9027,7 @@ const rr = {
|
|
|
9026
9027
|
if (M !== U) {
|
|
9027
9028
|
Q(!0);
|
|
9028
9029
|
const se = setTimeout(() => {
|
|
9029
|
-
|
|
9030
|
+
F(M), Q(!1);
|
|
9030
9031
|
}, rr.timeouts.animationDuration);
|
|
9031
9032
|
return () => clearTimeout(se);
|
|
9032
9033
|
}
|
|
@@ -9077,7 +9078,7 @@ const rr = {
|
|
|
9077
9078
|
top: "130px",
|
|
9078
9079
|
zIndex: 10,
|
|
9079
9080
|
backgroundColor: "var(--neutral-2)",
|
|
9080
|
-
opacity:
|
|
9081
|
+
opacity: T ? 0 : 1,
|
|
9081
9082
|
transition: `opacity ${rr.timeouts.animationDuration}ms ease-in-out`
|
|
9082
9083
|
}
|
|
9083
9084
|
}
|
|
@@ -9092,7 +9093,7 @@ const rr = {
|
|
|
9092
9093
|
style: {
|
|
9093
9094
|
position: "relative",
|
|
9094
9095
|
flex: 1,
|
|
9095
|
-
opacity:
|
|
9096
|
+
opacity: T ? 0 : 1,
|
|
9096
9097
|
transition: `opacity ${rr.timeouts.animationDuration}ms ease-in-out`,
|
|
9097
9098
|
overflow: "hidden"
|
|
9098
9099
|
},
|
|
@@ -9106,12 +9107,12 @@ const rr = {
|
|
|
9106
9107
|
onAddConditioningAudio: s,
|
|
9107
9108
|
onTextConditioningFocus: o,
|
|
9108
9109
|
onInspireMe: S,
|
|
9109
|
-
inspireMeLoading:
|
|
9110
|
-
onBoost:
|
|
9111
|
-
boostLoading:
|
|
9112
|
-
suggestedTags:
|
|
9113
|
-
onFetchSuggestedTags:
|
|
9114
|
-
suggestedTagsLoading:
|
|
9110
|
+
inspireMeLoading: R,
|
|
9111
|
+
onBoost: w,
|
|
9112
|
+
boostLoading: N,
|
|
9113
|
+
suggestedTags: B,
|
|
9114
|
+
onFetchSuggestedTags: x,
|
|
9115
|
+
suggestedTagsLoading: J
|
|
9115
9116
|
}
|
|
9116
9117
|
),
|
|
9117
9118
|
U === "2" && W && /* @__PURE__ */ a(
|
|
@@ -9341,7 +9342,7 @@ const Ma = {
|
|
|
9341
9342
|
showStemsPaywall: v,
|
|
9342
9343
|
showHiFiSwitch: C
|
|
9343
9344
|
}) => {
|
|
9344
|
-
var
|
|
9345
|
+
var R;
|
|
9345
9346
|
const { submitted: m, handleSubmit: I } = oa(l), k = [
|
|
9346
9347
|
{
|
|
9347
9348
|
value: "freeVocalInstruments",
|
|
@@ -9453,28 +9454,28 @@ const Ma = {
|
|
|
9453
9454
|
name: n._("Other"),
|
|
9454
9455
|
category: "paid"
|
|
9455
9456
|
}
|
|
9456
|
-
], E = async (
|
|
9457
|
-
if (
|
|
9458
|
-
v(
|
|
9457
|
+
], E = async (w) => {
|
|
9458
|
+
if (w.isLocked) {
|
|
9459
|
+
v(w.value);
|
|
9459
9460
|
return;
|
|
9460
9461
|
}
|
|
9461
|
-
const
|
|
9462
|
-
d((
|
|
9463
|
-
let
|
|
9464
|
-
if (
|
|
9465
|
-
|
|
9462
|
+
const N = w.value;
|
|
9463
|
+
d((B) => {
|
|
9464
|
+
let x = [...B.selectedStems];
|
|
9465
|
+
if (x.includes(N))
|
|
9466
|
+
x = x.filter((J) => J !== N);
|
|
9466
9467
|
else {
|
|
9467
|
-
const
|
|
9468
|
-
|
|
9469
|
-
(
|
|
9470
|
-
),
|
|
9468
|
+
const J = q0[N] || [];
|
|
9469
|
+
x = x.filter(
|
|
9470
|
+
(T) => !J.includes(T)
|
|
9471
|
+
), x.push(N);
|
|
9471
9472
|
}
|
|
9472
|
-
return
|
|
9473
|
+
return x.includes("other") && x.length === 1 ? { ...B, selectedStems: [] } : { ...B, selectedStems: x };
|
|
9473
9474
|
});
|
|
9474
|
-
}, S = (
|
|
9475
|
-
d((
|
|
9476
|
-
...
|
|
9477
|
-
selectedStems:
|
|
9475
|
+
}, S = (w) => {
|
|
9476
|
+
d((N) => ({
|
|
9477
|
+
...N,
|
|
9478
|
+
selectedStems: w.value
|
|
9478
9479
|
}));
|
|
9479
9480
|
};
|
|
9480
9481
|
return /* @__PURE__ */ f(b, { direction: "column", height: "100%", children: [
|
|
@@ -9483,10 +9484,10 @@ const Ma = {
|
|
|
9483
9484
|
/* @__PURE__ */ a(
|
|
9484
9485
|
vs,
|
|
9485
9486
|
{
|
|
9486
|
-
items: k.filter((
|
|
9487
|
-
name:
|
|
9488
|
-
value:
|
|
9489
|
-
icon: Ma[
|
|
9487
|
+
items: k.filter((w) => w.category === "free").map((w) => ({
|
|
9488
|
+
name: w.name,
|
|
9489
|
+
value: w.value,
|
|
9490
|
+
icon: Ma[w.value]
|
|
9490
9491
|
})),
|
|
9491
9492
|
value: c.selectedStems,
|
|
9492
9493
|
onSelect: S
|
|
@@ -9497,14 +9498,14 @@ const Ma = {
|
|
|
9497
9498
|
/* @__PURE__ */ a(
|
|
9498
9499
|
vs,
|
|
9499
9500
|
{
|
|
9500
|
-
items: k.filter((
|
|
9501
|
-
var
|
|
9501
|
+
items: k.filter((w) => w.category === "paid").filter((w) => r.some((N) => N.value === w.value)).map((w) => {
|
|
9502
|
+
var N;
|
|
9502
9503
|
return {
|
|
9503
|
-
name:
|
|
9504
|
-
value:
|
|
9505
|
-
icon: Ma[
|
|
9506
|
-
disabled: c.selectedStems.length === 0 &&
|
|
9507
|
-
isLocked: (
|
|
9504
|
+
name: w.name,
|
|
9505
|
+
value: w.value,
|
|
9506
|
+
icon: Ma[w.value],
|
|
9507
|
+
disabled: c.selectedStems.length === 0 && w.value === "Other",
|
|
9508
|
+
isLocked: (N = r.find((B) => B.value === w.value)) == null ? void 0 : N.isLocked
|
|
9508
9509
|
};
|
|
9509
9510
|
}),
|
|
9510
9511
|
value: c.selectedStems,
|
|
@@ -9529,7 +9530,7 @@ const Ma = {
|
|
|
9529
9530
|
xr,
|
|
9530
9531
|
{
|
|
9531
9532
|
title: n._("Separate Stems"),
|
|
9532
|
-
disabled: !((
|
|
9533
|
+
disabled: !((R = c == null ? void 0 : c.selectedStems) != null && R.length) || !(c != null && c.trackName),
|
|
9533
9534
|
loading: u,
|
|
9534
9535
|
onClick: I,
|
|
9535
9536
|
besideFooter: /* @__PURE__ */ f(b, { align: "center", gap: "2", children: [
|
|
@@ -9859,25 +9860,25 @@ const en = 30, Kr = 200, cS = [
|
|
|
9859
9860
|
counter: gS
|
|
9860
9861
|
}, mS = Ze(
|
|
9861
9862
|
({ bpm: n, onTempoChange: t, i18n: r = { _: (s) => s } }) => {
|
|
9862
|
-
const [s, o] = K(n), i =
|
|
9863
|
+
const [s, o] = K(n), i = D(() => {
|
|
9863
9864
|
const g = (parseInt(s) || en) + 1;
|
|
9864
9865
|
g > Kr || (o(g), t(g));
|
|
9865
|
-
}, [s, t]), l =
|
|
9866
|
+
}, [s, t]), l = D(() => {
|
|
9866
9867
|
const g = (parseInt(s) || en) - 1;
|
|
9867
9868
|
g < en || (o(g), t(g));
|
|
9868
|
-
}, [s, t]), c =
|
|
9869
|
+
}, [s, t]), c = D((A) => {
|
|
9869
9870
|
const g = parseInt(A, 10);
|
|
9870
9871
|
return isNaN(g) || g < en ? en : g > Kr ? Kr : g;
|
|
9871
|
-
}, []), d =
|
|
9872
|
+
}, []), d = D((A) => {
|
|
9872
9873
|
const g = A.target.value;
|
|
9873
9874
|
(g === "" || /^\d+$/.test(g)) && o(g);
|
|
9874
|
-
}, []), u =
|
|
9875
|
+
}, []), u = D(
|
|
9875
9876
|
(A) => {
|
|
9876
9877
|
const g = c(A.target.value);
|
|
9877
9878
|
o(g), t(g);
|
|
9878
9879
|
},
|
|
9879
9880
|
[c, t]
|
|
9880
|
-
), p =
|
|
9881
|
+
), p = D(
|
|
9881
9882
|
(A) => {
|
|
9882
9883
|
if (A.key === "Enter") {
|
|
9883
9884
|
A.preventDefault();
|
|
@@ -9944,7 +9945,7 @@ const en = 30, Kr = 200, cS = [
|
|
|
9944
9945
|
onRootKeyChange: l,
|
|
9945
9946
|
i18n: c = { _: (d) => d }
|
|
9946
9947
|
}) => {
|
|
9947
|
-
const d =
|
|
9948
|
+
const d = D(
|
|
9948
9949
|
(A) => {
|
|
9949
9950
|
t({
|
|
9950
9951
|
top: parseInt(A),
|
|
@@ -9952,7 +9953,7 @@ const en = 30, Kr = 200, cS = [
|
|
|
9952
9953
|
});
|
|
9953
9954
|
},
|
|
9954
9955
|
[t, o]
|
|
9955
|
-
), u =
|
|
9956
|
+
), u = D(
|
|
9956
9957
|
(A) => {
|
|
9957
9958
|
t({
|
|
9958
9959
|
top: s,
|
|
@@ -10081,7 +10082,7 @@ const Vr = (n, t) => typeof n == "string" ? { title: n, description: "", variant
|
|
|
10081
10082
|
maxToasts: r = 4,
|
|
10082
10083
|
swipeDirection: s
|
|
10083
10084
|
}) => {
|
|
10084
|
-
const o =
|
|
10085
|
+
const o = D((C) => C === "success" ? "success" : C === "error" ? "error" : "neutral", []), i = D((C) => {
|
|
10085
10086
|
if (C === "success")
|
|
10086
10087
|
return {
|
|
10087
10088
|
backgroundColor: "#113B29",
|
|
@@ -10092,10 +10093,10 @@ const Vr = (n, t) => typeof n == "string" ? { title: n, description: "", variant
|
|
|
10092
10093
|
backgroundColor: "#201314",
|
|
10093
10094
|
color: "#FF9592"
|
|
10094
10095
|
};
|
|
10095
|
-
}, []), [l, c] = K([]), d = ee(/* @__PURE__ */ new Map()), u =
|
|
10096
|
+
}, []), [l, c] = K([]), d = ee(/* @__PURE__ */ new Map()), u = D((C) => {
|
|
10096
10097
|
const m = d.current.get(C);
|
|
10097
10098
|
m && (clearTimeout(m), d.current.delete(C)), c((I) => I.filter((k) => k.id !== C));
|
|
10098
|
-
}, []), p =
|
|
10099
|
+
}, []), p = D(
|
|
10099
10100
|
(C) => {
|
|
10100
10101
|
const I = {
|
|
10101
10102
|
...Vr(C, "neutral"),
|
|
@@ -10104,20 +10105,20 @@ const Vr = (n, t) => typeof n == "string" ? { title: n, description: "", variant
|
|
|
10104
10105
|
u(I.id);
|
|
10105
10106
|
}, k);
|
|
10106
10107
|
return d.current.set(I.id, E), c((S) => {
|
|
10107
|
-
const
|
|
10108
|
-
return S.forEach((
|
|
10109
|
-
if (!
|
|
10110
|
-
const
|
|
10111
|
-
|
|
10108
|
+
const R = [...S.slice(-(r - 1)), I], w = new Set(R.map((N) => N.id));
|
|
10109
|
+
return S.forEach((N) => {
|
|
10110
|
+
if (!w.has(N.id)) {
|
|
10111
|
+
const B = d.current.get(N.id);
|
|
10112
|
+
B && (clearTimeout(B), d.current.delete(N.id));
|
|
10112
10113
|
}
|
|
10113
|
-
}),
|
|
10114
|
+
}), R;
|
|
10114
10115
|
}), I.id;
|
|
10115
10116
|
},
|
|
10116
10117
|
[u, t, r]
|
|
10117
|
-
), A =
|
|
10118
|
+
), A = D(
|
|
10118
10119
|
(C) => p(Vr(C, "success")),
|
|
10119
10120
|
[p]
|
|
10120
|
-
), g =
|
|
10121
|
+
), g = D(
|
|
10121
10122
|
(C) => p(Vr(C, "error")),
|
|
10122
10123
|
[p]
|
|
10123
10124
|
), v = _(
|
|
@@ -10249,12 +10250,12 @@ function OS({
|
|
|
10249
10250
|
inputLevel: c,
|
|
10250
10251
|
children: d
|
|
10251
10252
|
}) {
|
|
10252
|
-
const [u, p] = K(!1), A =
|
|
10253
|
+
const [u, p] = K(!1), A = D(
|
|
10253
10254
|
(v) => {
|
|
10254
10255
|
(!v || !n) && p(v);
|
|
10255
10256
|
},
|
|
10256
10257
|
[open, n]
|
|
10257
|
-
), g =
|
|
10258
|
+
), g = D(() => {
|
|
10258
10259
|
e.preventDefault(), p(!0);
|
|
10259
10260
|
}, []);
|
|
10260
10261
|
return /* @__PURE__ */ f(Ss, { open: u, onOpenChange: A, children: [
|
|
@@ -10333,23 +10334,23 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10333
10334
|
isOpen: k,
|
|
10334
10335
|
instrumentSelected: E,
|
|
10335
10336
|
device: S,
|
|
10336
|
-
channel:
|
|
10337
|
+
channel: R,
|
|
10337
10338
|
// State change listeners
|
|
10338
|
-
onVolumeChange:
|
|
10339
|
-
onPanChange:
|
|
10340
|
-
onMutedChange:
|
|
10341
|
-
onRecordChange:
|
|
10342
|
-
onSoloChange:
|
|
10343
|
-
onOpenChange:
|
|
10339
|
+
onVolumeChange: w,
|
|
10340
|
+
onPanChange: N,
|
|
10341
|
+
onMutedChange: B,
|
|
10342
|
+
onRecordChange: x,
|
|
10343
|
+
onSoloChange: J,
|
|
10344
|
+
onOpenChange: T,
|
|
10344
10345
|
onInstrumentChange: Q,
|
|
10345
10346
|
onDeviceChange: M,
|
|
10346
|
-
onChannelChange:
|
|
10347
|
+
onChannelChange: O,
|
|
10347
10348
|
// Children (having content means group/takelanes)
|
|
10348
10349
|
children: U
|
|
10349
10350
|
}) => {
|
|
10350
|
-
const
|
|
10351
|
-
() =>
|
|
10352
|
-
[k,
|
|
10351
|
+
const F = !!U, z = D(
|
|
10352
|
+
() => T == null ? void 0 : T(!k),
|
|
10353
|
+
[k, T]
|
|
10353
10354
|
);
|
|
10354
10355
|
return /* @__PURE__ */ f(
|
|
10355
10356
|
"div",
|
|
@@ -10360,7 +10361,7 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10360
10361
|
"div",
|
|
10361
10362
|
{
|
|
10362
10363
|
className: y(Se.track, {
|
|
10363
|
-
[Se.isParentTrack]:
|
|
10364
|
+
[Se.isParentTrack]: F,
|
|
10364
10365
|
[Se.isCompact]: i
|
|
10365
10366
|
}),
|
|
10366
10367
|
style: { height: `${o}px` },
|
|
@@ -10430,7 +10431,7 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10430
10431
|
{
|
|
10431
10432
|
size: "2",
|
|
10432
10433
|
className: Se.name,
|
|
10433
|
-
onClick:
|
|
10434
|
+
onClick: F ? z : void 0,
|
|
10434
10435
|
children: n
|
|
10435
10436
|
}
|
|
10436
10437
|
) })
|
|
@@ -10453,15 +10454,15 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10453
10454
|
device: S,
|
|
10454
10455
|
onDeviceChange: M,
|
|
10455
10456
|
channelOptions: u,
|
|
10456
|
-
channel:
|
|
10457
|
-
onChannelChange:
|
|
10457
|
+
channel: R,
|
|
10458
|
+
onChannelChange: O,
|
|
10458
10459
|
inputLevel: p,
|
|
10459
10460
|
children: /* @__PURE__ */ a(
|
|
10460
10461
|
sr,
|
|
10461
10462
|
{
|
|
10462
10463
|
type: "record",
|
|
10463
10464
|
selected: C,
|
|
10464
|
-
onClick: () =>
|
|
10465
|
+
onClick: () => x == null ? void 0 : x()
|
|
10465
10466
|
}
|
|
10466
10467
|
)
|
|
10467
10468
|
}
|
|
@@ -10471,7 +10472,7 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10471
10472
|
{
|
|
10472
10473
|
type: v ? "mute" : m ? "autoMute" : "mute",
|
|
10473
10474
|
selected: v || !I && m,
|
|
10474
|
-
onClick:
|
|
10475
|
+
onClick: B
|
|
10475
10476
|
}
|
|
10476
10477
|
),
|
|
10477
10478
|
/* @__PURE__ */ a(
|
|
@@ -10479,7 +10480,7 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10479
10480
|
{
|
|
10480
10481
|
type: "solo",
|
|
10481
10482
|
selected: I,
|
|
10482
|
-
onClick:
|
|
10483
|
+
onClick: J
|
|
10483
10484
|
}
|
|
10484
10485
|
)
|
|
10485
10486
|
]
|
|
@@ -10516,7 +10517,7 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10516
10517
|
{
|
|
10517
10518
|
linear: p,
|
|
10518
10519
|
volume: A,
|
|
10519
|
-
onVolumeChange:
|
|
10520
|
+
onVolumeChange: w
|
|
10520
10521
|
}
|
|
10521
10522
|
),
|
|
10522
10523
|
r && /* @__PURE__ */ a(
|
|
@@ -10524,7 +10525,7 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10524
10525
|
{
|
|
10525
10526
|
className: Se.pan,
|
|
10526
10527
|
value: g,
|
|
10527
|
-
onChange:
|
|
10528
|
+
onChange: N,
|
|
10528
10529
|
minValue: -1,
|
|
10529
10530
|
maxValue: 1
|
|
10530
10531
|
}
|
|
@@ -10535,7 +10536,7 @@ const FS = "_track_2k5w9_1", PS = "_name_2k5w9_11", zS = "_line_2k5w9_22", WS =
|
|
|
10535
10536
|
)
|
|
10536
10537
|
}
|
|
10537
10538
|
),
|
|
10538
|
-
|
|
10539
|
+
F && k && /* @__PURE__ */ a("div", { className: Se.group, children: U })
|
|
10539
10540
|
]
|
|
10540
10541
|
}
|
|
10541
10542
|
);
|
|
@@ -10560,7 +10561,7 @@ function pw({ schema: n }) {
|
|
|
10560
10561
|
}
|
|
10561
10562
|
for (const m of l.current) m(t);
|
|
10562
10563
|
}, [t]);
|
|
10563
|
-
const d =
|
|
10564
|
+
const d = D((m, I) => {
|
|
10564
10565
|
if (typeof m == "string") {
|
|
10565
10566
|
r((S) => ({ ...S, [m]: I })), o((S) => ({ ...S, [m]: null }));
|
|
10566
10567
|
return;
|
|
@@ -10572,8 +10573,8 @@ function pw({ schema: n }) {
|
|
|
10572
10573
|
}, []), u = (m, I) => {
|
|
10573
10574
|
const k = t[m], E = (S) => d(m, S);
|
|
10574
10575
|
return I === "checkbox" || I === "switch" ? { checked: !!k, onCheckedChange: E } : { value: k ?? "", onChange: (S) => {
|
|
10575
|
-
var
|
|
10576
|
-
return E(((
|
|
10576
|
+
var R;
|
|
10577
|
+
return E(((R = S == null ? void 0 : S.target) == null ? void 0 : R.value) ?? S);
|
|
10577
10578
|
} };
|
|
10578
10579
|
}, p = () => {
|
|
10579
10580
|
const m = n.safeParse(t);
|
|
@@ -10585,14 +10586,14 @@ function pw({ schema: n }) {
|
|
|
10585
10586
|
I[E] || (I[E] = k.message);
|
|
10586
10587
|
}
|
|
10587
10588
|
return o(I), { isValid: !1, data: t };
|
|
10588
|
-
}, A =
|
|
10589
|
+
}, A = D((m) => (l.current.push(m), () => {
|
|
10589
10590
|
l.current = l.current.filter((I) => I !== m);
|
|
10590
10591
|
}), []), g = (m) => {
|
|
10591
10592
|
const I = s[m];
|
|
10592
10593
|
return I ? /* @__PURE__ */ a(H, { size: "1", color: "red", children: I }) : null;
|
|
10593
10594
|
}, v = (m) => {
|
|
10594
10595
|
r(m ?? n.parse({})), o({});
|
|
10595
|
-
}, C =
|
|
10596
|
+
}, C = D(
|
|
10596
10597
|
(m) => /* @__PURE__ */ a(tE, { ...m, errorsRef: i }),
|
|
10597
10598
|
[]
|
|
10598
10599
|
);
|
|
@@ -11024,26 +11025,26 @@ class uE extends Pn {
|
|
|
11024
11025
|
const A = (g) => {
|
|
11025
11026
|
if (g.button !== i || (d.set(g.pointerId, g), d.size > 1)) return;
|
|
11026
11027
|
let v = g.clientX, C = g.clientY, m = !1;
|
|
11027
|
-
const I = Date.now(), k = r.getBoundingClientRect(), { left: E, top: S } = k,
|
|
11028
|
-
if (
|
|
11029
|
-
const
|
|
11030
|
-
(m || Math.abs(M) > o || Math.abs(
|
|
11031
|
-
},
|
|
11032
|
-
if (d.delete(
|
|
11033
|
-
const
|
|
11034
|
-
c.set({ type: "end", x:
|
|
11028
|
+
const I = Date.now(), k = r.getBoundingClientRect(), { left: E, top: S } = k, R = (J) => {
|
|
11029
|
+
if (J.defaultPrevented || d.size > 1 || u && Date.now() - I < l) return;
|
|
11030
|
+
const T = J.clientX, Q = J.clientY, M = T - v, O = Q - C;
|
|
11031
|
+
(m || Math.abs(M) > o || Math.abs(O) > o) && (J.preventDefault(), J.stopPropagation(), m || (c.set({ type: "start", x: v - E, y: C - S }), m = !0), c.set({ type: "move", x: T - E, y: Q - S, deltaX: M, deltaY: O }), v = T, C = Q);
|
|
11032
|
+
}, w = (J) => {
|
|
11033
|
+
if (d.delete(J.pointerId), m) {
|
|
11034
|
+
const T = J.clientX, Q = J.clientY;
|
|
11035
|
+
c.set({ type: "end", x: T - E, y: Q - S });
|
|
11035
11036
|
}
|
|
11036
11037
|
p();
|
|
11037
|
-
},
|
|
11038
|
-
d.delete(
|
|
11039
|
-
},
|
|
11040
|
-
m && (
|
|
11041
|
-
},
|
|
11042
|
-
|
|
11038
|
+
}, N = (J) => {
|
|
11039
|
+
d.delete(J.pointerId), J.relatedTarget && J.relatedTarget !== document.documentElement || w(J);
|
|
11040
|
+
}, B = (J) => {
|
|
11041
|
+
m && (J.stopPropagation(), J.preventDefault());
|
|
11042
|
+
}, x = (J) => {
|
|
11043
|
+
J.defaultPrevented || d.size > 1 || m && J.preventDefault();
|
|
11043
11044
|
};
|
|
11044
|
-
document.addEventListener("pointermove",
|
|
11045
|
-
document.removeEventListener("pointermove",
|
|
11046
|
-
document.removeEventListener("click",
|
|
11045
|
+
document.addEventListener("pointermove", R), document.addEventListener("pointerup", w), document.addEventListener("pointerout", N), document.addEventListener("pointercancel", N), document.addEventListener("touchmove", x, { passive: !1 }), document.addEventListener("click", B, { capture: !0 }), p = () => {
|
|
11046
|
+
document.removeEventListener("pointermove", R), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", N), document.removeEventListener("pointercancel", N), document.removeEventListener("touchmove", x), setTimeout(() => {
|
|
11047
|
+
document.removeEventListener("click", B, { capture: !0 });
|
|
11047
11048
|
}, 10);
|
|
11048
11049
|
};
|
|
11049
11050
|
};
|
|
@@ -11207,21 +11208,21 @@ class uE extends Pn {
|
|
|
11207
11208
|
}
|
|
11208
11209
|
renderBarWaveform(t, r, s, o) {
|
|
11209
11210
|
const { width: i, height: l } = s.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: p, barSpacing: A, barMinHeight: g } = function({ width: C, height: m, length: I, options: k, pixelRatio: E }) {
|
|
11210
|
-
const S = m / 2,
|
|
11211
|
-
return { halfHeight: S, barWidth:
|
|
11212
|
-
}({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), v = function({ channelData: C, barIndexScale: m, barSpacing: I, barWidth: k, halfHeight: E, vScale: S, canvasHeight:
|
|
11213
|
-
const
|
|
11214
|
-
let Q = 0, M = 0,
|
|
11215
|
-
for (let U = 0; U <=
|
|
11216
|
-
const
|
|
11217
|
-
if (
|
|
11218
|
-
const { topHeight: $, totalHeight: W } = lE({ maxTop: M, maxBottom:
|
|
11219
|
-
|
|
11211
|
+
const S = m / 2, R = k.barWidth ? k.barWidth * E : 1, w = k.barGap ? k.barGap * E : k.barWidth ? R / 2 : 0, N = R + w || 1;
|
|
11212
|
+
return { halfHeight: S, barWidth: R, barGap: w, barRadius: k.barRadius || 0, barMinHeight: k.barMinHeight ? k.barMinHeight * E : 0, barIndexScale: I > 0 ? C / N / I : 0, barSpacing: N };
|
|
11213
|
+
}({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), v = function({ channelData: C, barIndexScale: m, barSpacing: I, barWidth: k, halfHeight: E, vScale: S, canvasHeight: R, barAlign: w, barMinHeight: N }) {
|
|
11214
|
+
const B = C[0] || [], x = C[1] || B, J = B.length, T = [];
|
|
11215
|
+
let Q = 0, M = 0, O = 0;
|
|
11216
|
+
for (let U = 0; U <= J; U++) {
|
|
11217
|
+
const F = Math.round(U * m);
|
|
11218
|
+
if (F > Q) {
|
|
11219
|
+
const { topHeight: $, totalHeight: W } = lE({ maxTop: M, maxBottom: O, halfHeight: E, vScale: S, barMinHeight: N, barAlign: w }), re = cE({ barAlign: w, halfHeight: E, topHeight: $, totalHeight: W, canvasHeight: R });
|
|
11220
|
+
T.push({ x: Q * I, y: re, width: k, height: W }), Q = F, M = 0, O = 0;
|
|
11220
11221
|
}
|
|
11221
|
-
const z = Math.abs(
|
|
11222
|
-
z > M && (M = z), X >
|
|
11222
|
+
const z = Math.abs(B[U] || 0), X = Math.abs(x[U] || 0);
|
|
11223
|
+
z > M && (M = z), X > O && (O = X);
|
|
11223
11224
|
}
|
|
11224
|
-
return
|
|
11225
|
+
return T;
|
|
11225
11226
|
}({ channelData: t, barIndexScale: p, barSpacing: A, barWidth: d, halfHeight: c, vScale: o, canvasHeight: l, barAlign: r.barAlign, barMinHeight: g });
|
|
11226
11227
|
s.beginPath();
|
|
11227
11228
|
for (const C of v) u && "roundRect" in s ? s.roundRect(C.x, C.y, C.width, C.height, u) : s.rect(C.x, C.y, C.width, C.height);
|
|
@@ -11231,18 +11232,18 @@ class uE extends Pn {
|
|
|
11231
11232
|
const { width: i, height: l } = s.canvas, c = function({ channelData: d, width: u, height: p, vScale: A }) {
|
|
11232
11233
|
const g = p / 2, v = d[0] || [];
|
|
11233
11234
|
return [v, d[1] || v].map((C, m) => {
|
|
11234
|
-
const I = C.length, k = I ? u / I : 0, E = g, S = m === 0 ? -1 : 1,
|
|
11235
|
-
let
|
|
11236
|
-
for (let
|
|
11237
|
-
const
|
|
11238
|
-
if (
|
|
11239
|
-
const
|
|
11240
|
-
|
|
11235
|
+
const I = C.length, k = I ? u / I : 0, E = g, S = m === 0 ? -1 : 1, R = [{ x: 0, y: E }];
|
|
11236
|
+
let w = 0, N = 0;
|
|
11237
|
+
for (let B = 0; B <= I; B++) {
|
|
11238
|
+
const x = Math.round(B * k);
|
|
11239
|
+
if (x > w) {
|
|
11240
|
+
const T = E + (Math.round(N * g * A) || 1) * S;
|
|
11241
|
+
R.push({ x: w, y: T }), w = x, N = 0;
|
|
11241
11242
|
}
|
|
11242
|
-
const
|
|
11243
|
-
|
|
11243
|
+
const J = Math.abs(C[B] || 0);
|
|
11244
|
+
J > N && (N = J);
|
|
11244
11245
|
}
|
|
11245
|
-
return
|
|
11246
|
+
return R.push({ x: w, y: E }), R;
|
|
11246
11247
|
});
|
|
11247
11248
|
}({ channelData: t, width: i, height: l, vScale: o });
|
|
11248
11249
|
s.beginPath();
|
|
@@ -11293,10 +11294,10 @@ class uE extends Pn {
|
|
|
11293
11294
|
const m = C * p;
|
|
11294
11295
|
let I = Math.min(u - m, p);
|
|
11295
11296
|
if (I = Fa(I, r), I <= 0) return;
|
|
11296
|
-
const k = function({ channelData: E, offset: S, clampedWidth:
|
|
11297
|
-
return E.map((
|
|
11298
|
-
const
|
|
11299
|
-
return
|
|
11297
|
+
const k = function({ channelData: E, offset: S, clampedWidth: R, totalWidth: w }) {
|
|
11298
|
+
return E.map((N) => {
|
|
11299
|
+
const B = Math.floor(S / w * N.length), x = Math.floor((S + R) / w * N.length);
|
|
11300
|
+
return N.slice(B, x);
|
|
11300
11301
|
});
|
|
11301
11302
|
}({ channelData: t, offset: m, clampedWidth: I, totalWidth: u });
|
|
11302
11303
|
this.renderSingleCanvas(k, r, I, o, m, i, l);
|
|
@@ -11554,10 +11555,10 @@ class Qn extends iE {
|
|
|
11554
11555
|
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.reactiveCleanups = [], this.options = Object.assign({}, AE, t);
|
|
11555
11556
|
const { state: s, actions: o } = function(c) {
|
|
11556
11557
|
var d, u, p, A, g, v;
|
|
11557
|
-
const C = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : ve(0), m = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : ve(0), I = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : ve(!1), k = (A = c == null ? void 0 : c.isSeeking) !== null && A !== void 0 ? A : ve(!1), E = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : ve(1), S = (v = c == null ? void 0 : c.playbackRate) !== null && v !== void 0 ? v : ve(1),
|
|
11558
|
-
return { state: { currentTime: C, duration: m, isPlaying: I, isPaused:
|
|
11559
|
-
const
|
|
11560
|
-
C.set(
|
|
11558
|
+
const C = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : ve(0), m = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : ve(0), I = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : ve(!1), k = (A = c == null ? void 0 : c.isSeeking) !== null && A !== void 0 ? A : ve(!1), E = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : ve(1), S = (v = c == null ? void 0 : c.playbackRate) !== null && v !== void 0 ? v : ve(1), R = ve(null), w = ve(null), N = ve(""), B = ve(0), x = ve(0), J = Wt(() => !I.value, [I]), T = Wt(() => R.value !== null, [R]), Q = Wt(() => T.value && m.value > 0, [T, m]), M = Wt(() => C.value, [C]), O = Wt(() => m.value > 0 ? C.value / m.value : 0, [C, m]);
|
|
11559
|
+
return { state: { currentTime: C, duration: m, isPlaying: I, isPaused: J, isSeeking: k, volume: E, playbackRate: S, audioBuffer: R, peaks: w, url: N, zoom: B, scrollPosition: x, canPlay: T, isReady: Q, progress: M, progressPercent: O }, actions: { setCurrentTime: (U) => {
|
|
11560
|
+
const F = Math.max(0, Math.min(m.value || 1 / 0, U));
|
|
11561
|
+
C.set(F);
|
|
11561
11562
|
}, setDuration: (U) => {
|
|
11562
11563
|
m.set(Math.max(0, U));
|
|
11563
11564
|
}, setPlaying: (U) => {
|
|
@@ -11565,21 +11566,21 @@ class Qn extends iE {
|
|
|
11565
11566
|
}, setSeeking: (U) => {
|
|
11566
11567
|
k.set(U);
|
|
11567
11568
|
}, setVolume: (U) => {
|
|
11568
|
-
const
|
|
11569
|
-
E.set(
|
|
11569
|
+
const F = Math.max(0, Math.min(1, U));
|
|
11570
|
+
E.set(F);
|
|
11570
11571
|
}, setPlaybackRate: (U) => {
|
|
11571
|
-
const
|
|
11572
|
-
S.set(
|
|
11572
|
+
const F = Math.max(0.1, Math.min(16, U));
|
|
11573
|
+
S.set(F);
|
|
11573
11574
|
}, setAudioBuffer: (U) => {
|
|
11574
|
-
|
|
11575
|
+
R.set(U), U && m.set(U.duration);
|
|
11575
11576
|
}, setPeaks: (U) => {
|
|
11576
|
-
|
|
11577
|
+
w.set(U);
|
|
11577
11578
|
}, setUrl: (U) => {
|
|
11578
|
-
|
|
11579
|
+
N.set(U);
|
|
11579
11580
|
}, setZoom: (U) => {
|
|
11580
|
-
|
|
11581
|
+
B.set(Math.max(0, U));
|
|
11581
11582
|
}, setScrollPosition: (U) => {
|
|
11582
|
-
|
|
11583
|
+
x.set(Math.max(0, U));
|
|
11583
11584
|
} } };
|
|
11584
11585
|
}({ isPlaying: this.isPlayingSignal, currentTime: this.currentTimeSignal, duration: this.durationSignal, volume: this.volumeSignal, playbackRate: this.playbackRateSignal, isSeeking: this.seekingSignal });
|
|
11585
11586
|
this.wavesurferState = s, this.wavesurferActions = o, this.timer = new hE();
|
|
@@ -11947,28 +11948,28 @@ function Dl({
|
|
|
11947
11948
|
classNamesButton: v,
|
|
11948
11949
|
onPlayStateChange: C
|
|
11949
11950
|
}) {
|
|
11950
|
-
const [m, I] = K(!1), [k, E] = K(!1), [S,
|
|
11951
|
+
const [m, I] = K(!1), [k, E] = K(!1), [S, R] = K(!1), [w, N] = K(!1);
|
|
11951
11952
|
ie(() => {
|
|
11952
|
-
typeof navigator < "u" &&
|
|
11953
|
+
typeof navigator < "u" && N(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
11953
11954
|
}, []);
|
|
11954
|
-
const
|
|
11955
|
+
const B = _(() => s, [s]), x = _(() => o ? !1 : !B || B && m, [B, m, o]), J = ee(null), T = ee(null);
|
|
11955
11956
|
ie(() => {
|
|
11956
|
-
S || (!p || i) &&
|
|
11957
|
+
S || (!p || i) && R(!0);
|
|
11957
11958
|
}, [p, i, S]);
|
|
11958
|
-
const Q =
|
|
11959
|
+
const Q = D(() => {
|
|
11959
11960
|
var W;
|
|
11960
|
-
|
|
11961
|
-
}, []), M =
|
|
11961
|
+
T.current && ((W = T.current) == null || W.pause());
|
|
11962
|
+
}, []), M = D(() => {
|
|
11962
11963
|
var W, re;
|
|
11963
|
-
|
|
11964
|
-
}, [
|
|
11964
|
+
T.current && (d && d.state.active && d.state.active !== T.current && d.state.active.pause(), w || (W = T.current) == null || W.setOptions({ progressColor: c }), (re = T.current) == null || re.play());
|
|
11965
|
+
}, [w, c, d]);
|
|
11965
11966
|
ie(() => {
|
|
11966
11967
|
var W;
|
|
11967
|
-
|
|
11968
|
+
T.current && n && ((W = T.current) == null || W.load(n));
|
|
11968
11969
|
}, [n]);
|
|
11969
|
-
const
|
|
11970
|
-
|
|
11971
|
-
}, []), U =
|
|
11970
|
+
const O = D((W) => {
|
|
11971
|
+
T.current = W, E(!0), I(!1);
|
|
11972
|
+
}, []), U = D(
|
|
11972
11973
|
(W) => {
|
|
11973
11974
|
if (I(!0), r == null || r(!0), C == null || C(!0), d) {
|
|
11974
11975
|
if (d.state.active && d.state.active !== W) {
|
|
@@ -11985,12 +11986,12 @@ function Dl({
|
|
|
11985
11986
|
A == null || A();
|
|
11986
11987
|
},
|
|
11987
11988
|
[r, d, A, C]
|
|
11988
|
-
),
|
|
11989
|
+
), F = D(() => {
|
|
11989
11990
|
I(!1), r == null || r(!1), C == null || C(!1), d && d.setter((W) => ({
|
|
11990
11991
|
...W,
|
|
11991
11992
|
isPlaying: !1
|
|
11992
11993
|
}));
|
|
11993
|
-
}, [r, d, C]), z =
|
|
11994
|
+
}, [r, d, C]), z = D(
|
|
11994
11995
|
(W) => {
|
|
11995
11996
|
d && d.setter((re) => ({
|
|
11996
11997
|
...re,
|
|
@@ -11998,20 +11999,20 @@ function Dl({
|
|
|
11998
11999
|
}));
|
|
11999
12000
|
},
|
|
12000
12001
|
[d]
|
|
12001
|
-
), X =
|
|
12002
|
+
), X = D(() => {
|
|
12002
12003
|
var W;
|
|
12003
|
-
u ? (W =
|
|
12004
|
+
u ? (W = T.current) == null || W.play() : (I(!1), r == null || r(!1), C == null || C(!1), d && d.setter((re) => ({
|
|
12004
12005
|
...re,
|
|
12005
12006
|
isPlaying: !1,
|
|
12006
12007
|
active: null
|
|
12007
12008
|
})));
|
|
12008
|
-
}, [u, r, d, C]), $ =
|
|
12009
|
+
}, [u, r, d, C]), $ = D(() => {
|
|
12009
12010
|
var W, re, Ne;
|
|
12010
|
-
(W =
|
|
12011
|
+
(W = T.current) != null && W.isPlaying() ? Q() : T.current && ((re = d == null ? void 0 : d.state) != null && re.active && d.state.active !== T.current && (d.state.active.pause(), d.setter((ke) => ({
|
|
12011
12012
|
...ke,
|
|
12012
12013
|
isPlaying: !1,
|
|
12013
12014
|
active: null
|
|
12014
|
-
}))), (Ne = d == null ? void 0 : d.state) != null && Ne.active && d.state.active !==
|
|
12015
|
+
}))), (Ne = d == null ? void 0 : d.state) != null && Ne.active && d.state.active !== T.current && d.state.active.getCurrentTime && T.current.setTime(d.state.active.getCurrentTime()), M());
|
|
12015
12016
|
}, [M, Q, d]);
|
|
12016
12017
|
return /* @__PURE__ */ f(
|
|
12017
12018
|
b,
|
|
@@ -12040,10 +12041,10 @@ function Dl({
|
|
|
12040
12041
|
{
|
|
12041
12042
|
width: "100%",
|
|
12042
12043
|
style: {
|
|
12043
|
-
display:
|
|
12044
|
+
display: x && k ? "block" : "none",
|
|
12044
12045
|
cursor: "pointer"
|
|
12045
12046
|
},
|
|
12046
|
-
ref:
|
|
12047
|
+
ref: J,
|
|
12047
12048
|
children: /* @__PURE__ */ a(
|
|
12048
12049
|
CE,
|
|
12049
12050
|
{
|
|
@@ -12055,12 +12056,12 @@ function Dl({
|
|
|
12055
12056
|
barHeight: 6,
|
|
12056
12057
|
cursorWidth: 0,
|
|
12057
12058
|
height: bE[t] || 36,
|
|
12058
|
-
onReady:
|
|
12059
|
+
onReady: O,
|
|
12059
12060
|
onSeeking: z,
|
|
12060
12061
|
onPlay: U,
|
|
12061
|
-
onPause:
|
|
12062
|
+
onPause: F,
|
|
12062
12063
|
onFinish: X,
|
|
12063
|
-
backend:
|
|
12064
|
+
backend: w ? "WebAudio" : "MediaElement"
|
|
12064
12065
|
}
|
|
12065
12066
|
)
|
|
12066
12067
|
}
|
|
@@ -12070,7 +12071,7 @@ function Dl({
|
|
|
12070
12071
|
{
|
|
12071
12072
|
width: "100%",
|
|
12072
12073
|
style: {
|
|
12073
|
-
display:
|
|
12074
|
+
display: x && !k ? "block" : "none",
|
|
12074
12075
|
cursor: "pointer"
|
|
12075
12076
|
},
|
|
12076
12077
|
children: /* @__PURE__ */ a("span", { className: Yr.waveform, children: /* @__PURE__ */ a(
|
|
@@ -12105,7 +12106,7 @@ const IE = "_customButton_14z6y_1", SE = "_descriptionVoiceList_14z6y_5", za = {
|
|
|
12105
12106
|
style: d,
|
|
12106
12107
|
i18n: u = { _: (p) => p }
|
|
12107
12108
|
}) => {
|
|
12108
|
-
const p =
|
|
12109
|
+
const p = D(
|
|
12109
12110
|
(A, g) => {
|
|
12110
12111
|
A ? c(g == null ? void 0 : g.identifier) : s === (g == null ? void 0 : g.identifier) && c(null);
|
|
12111
12112
|
},
|
|
@@ -12430,77 +12431,77 @@ const PE = "_footerVoiceForm_lsc2c_2", zE = {
|
|
|
12430
12431
|
onClickUpgradeConcurrency: C,
|
|
12431
12432
|
onRemoveTrack: m
|
|
12432
12433
|
}) => {
|
|
12433
|
-
const [I, k] = K(null), [E, S] = K(null), { submitted:
|
|
12434
|
+
const [I, k] = K(null), [E, S] = K(null), { submitted: R, handleSubmit: w } = oa(p), [N, B] = K({
|
|
12434
12435
|
lastPlayed: null,
|
|
12435
12436
|
active: null,
|
|
12436
12437
|
isPlaying: !1,
|
|
12437
12438
|
id: "voice-form"
|
|
12438
|
-
}),
|
|
12439
|
-
(
|
|
12440
|
-
k(
|
|
12441
|
-
const z = n.find((X) => X.identifier ===
|
|
12439
|
+
}), x = D(
|
|
12440
|
+
(F) => {
|
|
12441
|
+
k(F);
|
|
12442
|
+
const z = n.find((X) => X.identifier === F);
|
|
12442
12443
|
r((X) => ({
|
|
12443
12444
|
...X,
|
|
12444
12445
|
selectedVoice: z
|
|
12445
12446
|
}));
|
|
12446
12447
|
},
|
|
12447
12448
|
[n, r]
|
|
12448
|
-
),
|
|
12449
|
-
(
|
|
12450
|
-
E !==
|
|
12449
|
+
), J = D(
|
|
12450
|
+
(F) => {
|
|
12451
|
+
E !== F && S(F);
|
|
12451
12452
|
},
|
|
12452
12453
|
[E, S]
|
|
12453
|
-
),
|
|
12454
|
-
(
|
|
12455
|
-
S(null),
|
|
12454
|
+
), T = D(
|
|
12455
|
+
(F) => {
|
|
12456
|
+
S(null), N.active && N.active.pause(), B((z) => ({
|
|
12456
12457
|
...z,
|
|
12457
12458
|
isPlaying: !1,
|
|
12458
12459
|
active: null
|
|
12459
|
-
})), s(
|
|
12460
|
+
})), s(F);
|
|
12460
12461
|
},
|
|
12461
|
-
[s,
|
|
12462
|
+
[s, N]
|
|
12462
12463
|
), Q = _(
|
|
12463
12464
|
() => ({
|
|
12464
|
-
state:
|
|
12465
|
-
setter:
|
|
12465
|
+
state: N,
|
|
12466
|
+
setter: B
|
|
12466
12467
|
}),
|
|
12467
|
-
[
|
|
12468
|
+
[N]
|
|
12468
12469
|
), M = _(
|
|
12469
|
-
() => n.find((
|
|
12470
|
+
() => n.find((F) => F.identifier === i) || n[0],
|
|
12470
12471
|
[n, i]
|
|
12471
|
-
),
|
|
12472
|
+
), O = _(
|
|
12472
12473
|
() => !!(t.trackName || t.trackId || t.customAudio),
|
|
12473
12474
|
[t.trackName, t.trackId, t.customAudio]
|
|
12474
|
-
), U =
|
|
12475
|
+
), U = D(() => {
|
|
12475
12476
|
if (!i) {
|
|
12476
|
-
|
|
12477
|
+
w();
|
|
12477
12478
|
return;
|
|
12478
12479
|
}
|
|
12479
|
-
M && (
|
|
12480
|
+
M && (x(M.identifier), o(), r((F) => {
|
|
12480
12481
|
var z;
|
|
12481
|
-
return ((z =
|
|
12482
|
-
})),
|
|
12483
|
-
}, [i,
|
|
12482
|
+
return ((z = F.selectedVoice) == null ? void 0 : z.identifier) === M.identifier ? F : { ...F, selectedVoice: M };
|
|
12483
|
+
})), O && (M ? w({ selectedVoice: M }) : w());
|
|
12484
|
+
}, [i, w, M, x, o]);
|
|
12484
12485
|
return ie(() => {
|
|
12485
|
-
var
|
|
12486
|
-
if (
|
|
12486
|
+
var F;
|
|
12487
|
+
if (N.isPlaying === !1)
|
|
12487
12488
|
S(null);
|
|
12488
|
-
else if (
|
|
12489
|
-
const z = (
|
|
12490
|
-
(X) =>
|
|
12491
|
-
)) == null ? void 0 :
|
|
12489
|
+
else if (N.isPlaying === !0 && N.active) {
|
|
12490
|
+
const z = (F = n.find(
|
|
12491
|
+
(X) => N.active && X.metadata.previewUrl === N.active.url
|
|
12492
|
+
)) == null ? void 0 : F.identifier;
|
|
12492
12493
|
z && S(z);
|
|
12493
12494
|
}
|
|
12494
|
-
}, [
|
|
12495
|
+
}, [N, n]), /* @__PURE__ */ f(b, { direction: "column", height: "100%", children: [
|
|
12495
12496
|
/* @__PURE__ */ a(
|
|
12496
12497
|
EE,
|
|
12497
12498
|
{
|
|
12498
12499
|
voices: n,
|
|
12499
12500
|
selectedId: I,
|
|
12500
|
-
handleSelect:
|
|
12501
|
+
handleSelect: x,
|
|
12501
12502
|
playingItem: E,
|
|
12502
|
-
handleAvatarClick:
|
|
12503
|
-
handleDetailsClick:
|
|
12503
|
+
handleAvatarClick: J,
|
|
12504
|
+
handleDetailsClick: T,
|
|
12504
12505
|
wavegroup: Q,
|
|
12505
12506
|
setPlayingItem: S,
|
|
12506
12507
|
style: { display: i ? "none" : "block" },
|
|
@@ -12548,7 +12549,7 @@ const PE = "_footerVoiceForm_lsc2c_2", zE = {
|
|
|
12548
12549
|
onMountConcurrency: g
|
|
12549
12550
|
}
|
|
12550
12551
|
),
|
|
12551
|
-
!d && !
|
|
12552
|
+
!d && !R && !u && !i && /* @__PURE__ */ a(
|
|
12552
12553
|
FE,
|
|
12553
12554
|
{
|
|
12554
12555
|
trackId: t.trackId,
|
|
@@ -12558,7 +12559,7 @@ const PE = "_footerVoiceForm_lsc2c_2", zE = {
|
|
|
12558
12559
|
onRemoveTrack: m
|
|
12559
12560
|
}
|
|
12560
12561
|
),
|
|
12561
|
-
!d &&
|
|
12562
|
+
!d && R && !u && !i && /* @__PURE__ */ a(Ke, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ a(P, { size: "2", children: l._("Voice conversion initialized!") }) }),
|
|
12562
12563
|
!d && u && !i && /* @__PURE__ */ a(
|
|
12563
12564
|
Ke,
|
|
12564
12565
|
{
|