@moises.ai/design-system 4.22.0 → 4.22.1
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
|
@@ -31,17 +31,17 @@ var Ru = [" ", "Enter", "ArrowUp", "ArrowDown"], Bu = [" ", "Enter"], en = "Sele
|
|
|
31
31
|
disabled: A,
|
|
32
32
|
required: m,
|
|
33
33
|
form: C
|
|
34
|
-
} = n, f = Kr(t), [k, y] = p.useState(null), [w, b] = p.useState(null), [
|
|
34
|
+
} = n, f = Kr(t), [k, y] = p.useState(null), [w, b] = p.useState(null), [N, E] = p.useState(!1), R = xo(u), [x, T] = Br({
|
|
35
35
|
prop: a,
|
|
36
36
|
defaultProp: o ?? !1,
|
|
37
37
|
onChange: i,
|
|
38
38
|
caller: en
|
|
39
|
-
}), [
|
|
39
|
+
}), [O, B] = Br({
|
|
40
40
|
prop: l,
|
|
41
41
|
defaultProp: c,
|
|
42
42
|
onChange: d,
|
|
43
43
|
caller: en
|
|
44
|
-
}), Q = p.useRef(null), D = k ? C || !!k.closest("form") : !0, [
|
|
44
|
+
}), Q = p.useRef(null), D = k ? C || !!k.closest("form") : !0, [M, U] = p.useState(/* @__PURE__ */ new Set()), P = Array.from(M).map((K) => K.props.value).join(";");
|
|
45
45
|
return /* @__PURE__ */ s(Ec, { ...f, children: /* @__PURE__ */ v(
|
|
46
46
|
Tu,
|
|
47
47
|
{
|
|
@@ -51,14 +51,14 @@ var Ru = [" ", "Enter", "ArrowUp", "ArrowDown"], Bu = [" ", "Enter"], en = "Sele
|
|
|
51
51
|
onTriggerChange: y,
|
|
52
52
|
valueNode: w,
|
|
53
53
|
onValueNodeChange: b,
|
|
54
|
-
valueNodeHasChildren:
|
|
54
|
+
valueNodeHasChildren: N,
|
|
55
55
|
onValueNodeHasChildrenChange: E,
|
|
56
56
|
contentId: _s(),
|
|
57
|
-
value:
|
|
57
|
+
value: O,
|
|
58
58
|
onValueChange: B,
|
|
59
59
|
open: x,
|
|
60
60
|
onOpenChange: T,
|
|
61
|
-
dir:
|
|
61
|
+
dir: R,
|
|
62
62
|
triggerPointerDownPosRef: Q,
|
|
63
63
|
disabled: A,
|
|
64
64
|
children: [
|
|
@@ -86,13 +86,13 @@ var Ru = [" ", "Enter", "ArrowUp", "ArrowDown"], Bu = [" ", "Enter"], en = "Sele
|
|
|
86
86
|
tabIndex: -1,
|
|
87
87
|
name: g,
|
|
88
88
|
autoComplete: h,
|
|
89
|
-
value:
|
|
89
|
+
value: O,
|
|
90
90
|
onChange: (K) => B(K.target.value),
|
|
91
91
|
disabled: A,
|
|
92
92
|
form: C,
|
|
93
93
|
children: [
|
|
94
|
-
|
|
95
|
-
Array.from(
|
|
94
|
+
O === void 0 ? /* @__PURE__ */ s("option", { value: "" }) : null,
|
|
95
|
+
Array.from(M)
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
98
|
P
|
|
@@ -210,9 +210,9 @@ var lt = 10, [mi, Ot] = Nn(tn), Uu = "SelectContentImpl", Ou = Mc("SelectContent
|
|
|
210
210
|
avoidCollisions: k,
|
|
211
211
|
//
|
|
212
212
|
...y
|
|
213
|
-
} = n, w = Ut(tn, r), [b,
|
|
213
|
+
} = n, w = Ut(tn, r), [b, N] = p.useState(null), [E, R] = p.useState(null), x = He(t, (q) => N(q)), [T, O] = p.useState(null), [B, Q] = p.useState(
|
|
214
214
|
null
|
|
215
|
-
), D = jr(r), [
|
|
215
|
+
), D = jr(r), [M, U] = p.useState(!1), P = p.useRef(!1);
|
|
216
216
|
p.useEffect(() => {
|
|
217
217
|
if (b) return xc(b);
|
|
218
218
|
}, [b]), Tc();
|
|
@@ -228,8 +228,8 @@ var lt = 10, [mi, Ot] = Nn(tn), Uu = "SelectContentImpl", Ou = Mc("SelectContent
|
|
|
228
228
|
[K, T, b]
|
|
229
229
|
);
|
|
230
230
|
p.useEffect(() => {
|
|
231
|
-
|
|
232
|
-
}, [
|
|
231
|
+
M && $();
|
|
232
|
+
}, [M, $]);
|
|
233
233
|
const { onOpenChange: L, triggerPointerDownPosRef: F } = w;
|
|
234
234
|
p.useEffect(() => {
|
|
235
235
|
if (b) {
|
|
@@ -259,7 +259,7 @@ var lt = 10, [mi, Ot] = Nn(tn), Uu = "SelectContentImpl", Ou = Mc("SelectContent
|
|
|
259
259
|
}), ue = p.useCallback(
|
|
260
260
|
(q, ne, fe) => {
|
|
261
261
|
const ce = !P.current && !fe;
|
|
262
|
-
(w.value !== void 0 && w.value === ne || ce) && (
|
|
262
|
+
(w.value !== void 0 && w.value === ne || ce) && (O(q), ce && (P.current = !0));
|
|
263
263
|
},
|
|
264
264
|
[w.value]
|
|
265
265
|
), me = p.useCallback(() => b == null ? void 0 : b.focus(), [b]), G = p.useCallback(
|
|
@@ -286,7 +286,7 @@ var lt = 10, [mi, Ot] = Nn(tn), Uu = "SelectContentImpl", Ou = Mc("SelectContent
|
|
|
286
286
|
scope: r,
|
|
287
287
|
content: b,
|
|
288
288
|
viewport: E,
|
|
289
|
-
onViewportChange:
|
|
289
|
+
onViewportChange: R,
|
|
290
290
|
itemRefCallback: ue,
|
|
291
291
|
selectedItem: T,
|
|
292
292
|
onItemLeave: me,
|
|
@@ -294,7 +294,7 @@ var lt = 10, [mi, Ot] = Nn(tn), Uu = "SelectContentImpl", Ou = Mc("SelectContent
|
|
|
294
294
|
focusSelectedItem: $,
|
|
295
295
|
selectedItemText: B,
|
|
296
296
|
position: a,
|
|
297
|
-
isPositioned:
|
|
297
|
+
isPositioned: M,
|
|
298
298
|
searchRef: X,
|
|
299
299
|
children: /* @__PURE__ */ s(Dc, { as: Ou, allowPinchZoom: !0, children: /* @__PURE__ */ s(
|
|
300
300
|
Jc,
|
|
@@ -362,9 +362,9 @@ fi.displayName = Uu;
|
|
|
362
362
|
var Pu = "SelectItemAlignedPosition", Ci = p.forwardRef((n, t) => {
|
|
363
363
|
const { __scopeSelect: r, onPlaced: a, ...o } = n, i = Ut(tn, r), l = Ot(tn, r), [c, d] = p.useState(null), [u, g] = p.useState(null), h = He(t, (x) => g(x)), A = jr(r), m = p.useRef(!1), C = p.useRef(!0), { viewport: f, selectedItem: k, selectedItemText: y, focusSelectedItem: w } = l, b = p.useCallback(() => {
|
|
364
364
|
if (i.trigger && i.valueNode && c && u && f && k && y) {
|
|
365
|
-
const x = i.trigger.getBoundingClientRect(), T = u.getBoundingClientRect(),
|
|
365
|
+
const x = i.trigger.getBoundingClientRect(), T = u.getBoundingClientRect(), O = i.valueNode.getBoundingClientRect(), B = y.getBoundingClientRect();
|
|
366
366
|
if (i.dir !== "rtl") {
|
|
367
|
-
const W = B.left - T.left, H =
|
|
367
|
+
const W = B.left - T.left, H = O.left - W, de = x.left - H, ye = x.width + de, Qe = Math.max(ye, T.width), le = window.innerWidth - lt, Me = xr(H, [
|
|
368
368
|
lt,
|
|
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 Pu = "SelectItemAlignedPosition", Ci = p.forwardRef((n, t) => {
|
|
|
375
375
|
]);
|
|
376
376
|
c.style.minWidth = ye + "px", c.style.left = Me + "px";
|
|
377
377
|
} else {
|
|
378
|
-
const W = T.right - B.right, H = window.innerWidth -
|
|
378
|
+
const W = T.right - B.right, H = window.innerWidth - O.right - W, de = window.innerWidth - x.right - H, ye = x.width + de, Qe = Math.max(ye, T.width), le = window.innerWidth - lt, Me = xr(H, [
|
|
379
379
|
lt,
|
|
380
380
|
Math.max(lt, le - Qe)
|
|
381
381
|
]);
|
|
382
382
|
c.style.minWidth = ye + "px", c.style.right = Me + "px";
|
|
383
383
|
}
|
|
384
|
-
const Q = A(), D = window.innerHeight - lt * 2,
|
|
384
|
+
const Q = A(), D = window.innerHeight - lt * 2, M = f.scrollHeight, U = window.getComputedStyle(u), P = parseInt(U.borderTopWidth, 10), K = parseInt(U.paddingTop, 10), $ = parseInt(U.borderBottomWidth, 10), L = parseInt(U.paddingBottom, 10), F = P + K + M + L + $, X = Math.min(k.offsetHeight * 5, F), pe = window.getComputedStyle(f), ue = parseInt(pe.paddingTop, 10), me = parseInt(pe.paddingBottom, 10), G = x.top + x.height / 2 - lt, ee = D - G, z = k.offsetHeight / 2, q = k.offsetTop + z, ne = P + K + q, fe = F - ne;
|
|
385
385
|
if (ne <= G) {
|
|
386
386
|
const W = Q.length > 0 && k === Q[Q.length - 1].ref.current;
|
|
387
387
|
c.style.bottom = "0px";
|
|
@@ -416,11 +416,11 @@ var Pu = "SelectItemAlignedPosition", Ci = p.forwardRef((n, t) => {
|
|
|
416
416
|
a
|
|
417
417
|
]);
|
|
418
418
|
Mt(() => b(), [b]);
|
|
419
|
-
const [
|
|
419
|
+
const [N, E] = p.useState();
|
|
420
420
|
Mt(() => {
|
|
421
421
|
u && E(window.getComputedStyle(u).zIndex);
|
|
422
422
|
}, [u]);
|
|
423
|
-
const
|
|
423
|
+
const R = p.useCallback(
|
|
424
424
|
(x) => {
|
|
425
425
|
x && C.current === !0 && (b(), w == null || w(), C.current = !1);
|
|
426
426
|
},
|
|
@@ -432,7 +432,7 @@ var Pu = "SelectItemAlignedPosition", Ci = p.forwardRef((n, t) => {
|
|
|
432
432
|
scope: r,
|
|
433
433
|
contentWrapper: c,
|
|
434
434
|
shouldExpandOnScrollRef: m,
|
|
435
|
-
onScrollButtonChange:
|
|
435
|
+
onScrollButtonChange: R,
|
|
436
436
|
children: /* @__PURE__ */ s(
|
|
437
437
|
"div",
|
|
438
438
|
{
|
|
@@ -441,7 +441,7 @@ var Pu = "SelectItemAlignedPosition", Ci = p.forwardRef((n, t) => {
|
|
|
441
441
|
display: "flex",
|
|
442
442
|
flexDirection: "column",
|
|
443
443
|
position: "fixed",
|
|
444
|
-
zIndex:
|
|
444
|
+
zIndex: N
|
|
445
445
|
},
|
|
446
446
|
children: /* @__PURE__ */ s(
|
|
447
447
|
De.div,
|
|
@@ -533,8 +533,8 @@ var [zu, ua] = Nn(tn, {}), Ms = "SelectViewport", vi = p.forwardRef(
|
|
|
533
533
|
if (m > 0) {
|
|
534
534
|
const C = window.innerHeight - lt * 2, f = parseFloat(h.style.minHeight), k = parseFloat(h.style.height), y = Math.max(f, k);
|
|
535
535
|
if (y < C) {
|
|
536
|
-
const w = y + m, b = Math.min(C, w),
|
|
537
|
-
h.style.height = b + "px", h.style.bottom === "0px" && (g.scrollTop =
|
|
536
|
+
const w = y + m, b = Math.min(C, w), N = w - b;
|
|
537
|
+
h.style.height = b + "px", h.style.bottom === "0px" && (g.scrollTop = N > 0 ? N : 0, h.style.justifyContent = "flex-end");
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -632,8 +632,8 @@ var Tr = "SelectItem", [Hu, Si] = Nn(Tr), Ei = p.forwardRef(
|
|
|
632
632
|
w.currentTarget === document.activeElement && ((b = d.onItemLeave) == null || b.call(d));
|
|
633
633
|
}),
|
|
634
634
|
onKeyDown: Ee(l.onKeyDown, (w) => {
|
|
635
|
-
var
|
|
636
|
-
((
|
|
635
|
+
var N;
|
|
636
|
+
((N = d.searchRef) == null ? void 0 : N.current) !== "" && w.key === " " || (Bu.includes(w.key) && y(), w.key === " " && w.preventDefault());
|
|
637
637
|
})
|
|
638
638
|
}
|
|
639
639
|
)
|
|
@@ -842,33 +842,33 @@ var Xu = li, Zu = di, _u = hi, $u = gi, eh = pi, th = Ai, nh = vi, rh = ki, sh =
|
|
|
842
842
|
inverted: m = !1,
|
|
843
843
|
form: C,
|
|
844
844
|
...f
|
|
845
|
-
} = n, k = p.useRef(/* @__PURE__ */ new Set()), y = p.useRef(0), b = l === "horizontal" ? dh : uh, [
|
|
845
|
+
} = n, k = p.useRef(/* @__PURE__ */ new Set()), y = p.useRef(0), b = l === "horizontal" ? dh : uh, [N = [], E] = Br({
|
|
846
846
|
prop: g,
|
|
847
847
|
defaultProp: u,
|
|
848
848
|
onChange: (Q) => {
|
|
849
|
-
var
|
|
850
|
-
(
|
|
849
|
+
var M;
|
|
850
|
+
(M = [...k.current][y.current]) == null || M.focus(), h(Q);
|
|
851
851
|
}
|
|
852
|
-
}),
|
|
852
|
+
}), R = p.useRef(N);
|
|
853
853
|
function x(Q) {
|
|
854
|
-
const D = mh(
|
|
854
|
+
const D = mh(N, Q);
|
|
855
855
|
B(Q, D);
|
|
856
856
|
}
|
|
857
857
|
function T(Q) {
|
|
858
858
|
B(Q, y.current);
|
|
859
859
|
}
|
|
860
|
-
function
|
|
861
|
-
const Q =
|
|
862
|
-
|
|
860
|
+
function O() {
|
|
861
|
+
const Q = R.current[y.current];
|
|
862
|
+
N[y.current] !== Q && A(N);
|
|
863
863
|
}
|
|
864
|
-
function B(Q, D, { commit:
|
|
864
|
+
function B(Q, D, { commit: M } = { commit: !1 }) {
|
|
865
865
|
const U = yh(i), P = kh(Math.round((Q - a) / i) * i + a, U), K = xr(P, [a, o]);
|
|
866
866
|
E(($ = []) => {
|
|
867
867
|
const L = ph($, K, D);
|
|
868
868
|
if (vh(L, d * i)) {
|
|
869
869
|
y.current = L.indexOf(K);
|
|
870
870
|
const F = String(L) !== String($);
|
|
871
|
-
return F &&
|
|
871
|
+
return F && M && A(L), F ? L : $;
|
|
872
872
|
} else
|
|
873
873
|
return $;
|
|
874
874
|
});
|
|
@@ -883,7 +883,7 @@ var Xu = li, Zu = di, _u = hi, $u = gi, eh = pi, th = Ai, nh = vi, rh = ki, sh =
|
|
|
883
883
|
max: o,
|
|
884
884
|
valueIndexToChangeRef: y,
|
|
885
885
|
thumbs: k.current,
|
|
886
|
-
values:
|
|
886
|
+
values: N,
|
|
887
887
|
orientation: l,
|
|
888
888
|
form: C,
|
|
889
889
|
children: /* @__PURE__ */ s(Fs.Provider, { scope: n.__scopeSlider, children: /* @__PURE__ */ s(Fs.Slot, { scope: n.__scopeSlider, children: /* @__PURE__ */ s(
|
|
@@ -894,19 +894,19 @@ var Xu = li, Zu = di, _u = hi, $u = gi, eh = pi, th = Ai, nh = vi, rh = ki, sh =
|
|
|
894
894
|
...f,
|
|
895
895
|
ref: t,
|
|
896
896
|
onPointerDown: Ee(f.onPointerDown, () => {
|
|
897
|
-
c || (
|
|
897
|
+
c || (R.current = N);
|
|
898
898
|
}),
|
|
899
899
|
min: a,
|
|
900
900
|
max: o,
|
|
901
901
|
inverted: m,
|
|
902
902
|
onSlideStart: c ? void 0 : x,
|
|
903
903
|
onSlideMove: c ? void 0 : T,
|
|
904
|
-
onSlideEnd: c ? void 0 :
|
|
904
|
+
onSlideEnd: c ? void 0 : O,
|
|
905
905
|
onHomeKeyDown: () => !c && B(a, 0, { commit: !0 }),
|
|
906
|
-
onEndKeyDown: () => !c && B(o,
|
|
906
|
+
onEndKeyDown: () => !c && B(o, N.length - 1, { commit: !0 }),
|
|
907
907
|
onStepKeyDown: ({ event: Q, direction: D }) => {
|
|
908
908
|
if (!c) {
|
|
909
|
-
const P = Pi.includes(Q.key) || Q.shiftKey && Fi.includes(Q.key) ? 10 : 1, K = y.current, $ =
|
|
909
|
+
const P = Pi.includes(Q.key) || Q.shiftKey && Fi.includes(Q.key) ? 10 : 1, K = y.current, $ = N[K], L = i * P * D;
|
|
910
910
|
B($ + L, K, { commit: !0 });
|
|
911
911
|
}
|
|
912
912
|
}
|
|
@@ -936,8 +936,8 @@ var [Li, Hi] = Wi(Rn, {
|
|
|
936
936
|
...g
|
|
937
937
|
} = n, [h, A] = p.useState(null), m = He(t, (b) => A(b)), C = p.useRef(void 0), f = xo(o), k = f === "ltr", y = k && !i || !k && i;
|
|
938
938
|
function w(b) {
|
|
939
|
-
const
|
|
940
|
-
return C.current =
|
|
939
|
+
const N = C.current || h.getBoundingClientRect(), E = [0, N.width], x = ma(E, y ? [r, a] : [a, r]);
|
|
940
|
+
return C.current = N, x(b - N.left);
|
|
941
941
|
}
|
|
942
942
|
return /* @__PURE__ */ s(
|
|
943
943
|
Li,
|
|
@@ -959,12 +959,12 @@ var [Li, Hi] = Wi(Rn, {
|
|
|
959
959
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
960
960
|
},
|
|
961
961
|
onSlideStart: (b) => {
|
|
962
|
-
const
|
|
963
|
-
l == null || l(
|
|
962
|
+
const N = w(b.clientX);
|
|
963
|
+
l == null || l(N);
|
|
964
964
|
},
|
|
965
965
|
onSlideMove: (b) => {
|
|
966
|
-
const
|
|
967
|
-
c == null || c(
|
|
966
|
+
const N = w(b.clientX);
|
|
967
|
+
c == null || c(N);
|
|
968
968
|
},
|
|
969
969
|
onSlideEnd: () => {
|
|
970
970
|
C.current = void 0, d == null || d();
|
|
@@ -1439,13 +1439,13 @@ const $i = p.forwardRef((n, t) => {
|
|
|
1439
1439
|
p.useEffect(() => y(i), [i]);
|
|
1440
1440
|
const [w, b] = p.useState(l);
|
|
1441
1441
|
p.useEffect(() => b(l), [l]);
|
|
1442
|
-
const [
|
|
1443
|
-
return p.useEffect(() => E(c), [c]), p.createElement(Ca, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: g, accentColor: A, grayColor: C, panelBackground: k, radius: w, scaling:
|
|
1442
|
+
const [N, E] = p.useState(c);
|
|
1443
|
+
return p.useEffect(() => E(c), [c]), p.createElement(Ca, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: g, accentColor: A, grayColor: C, panelBackground: k, radius: w, scaling: N, onAppearanceChange: h, onAccentColorChange: m, onGrayColorChange: f, onPanelBackgroundChange: y, onRadiusChange: b, onScalingChange: E });
|
|
1444
1444
|
});
|
|
1445
1445
|
$i.displayName = "ThemeRoot";
|
|
1446
1446
|
const Ca = p.forwardRef((n, t) => {
|
|
1447
|
-
const r = p.useContext(Dr), { asChild: a, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? et.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? et.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? et.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? et.panelBackground.default, radius: g = (r == null ? void 0 : r.radius) ?? et.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? et.scaling.default, onAppearanceChange: A = dn, onAccentColorChange: m = dn, onGrayColorChange: C = dn, onPanelBackgroundChange: f = dn, onRadiusChange: k = dn, onScalingChange: y = dn, ...w } = n, b = a ? Je : "div",
|
|
1448
|
-
return p.createElement(Dr.Provider, { value: p.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor:
|
|
1447
|
+
const r = p.useContext(Dr), { asChild: a, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? et.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? et.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? et.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? et.panelBackground.default, radius: g = (r == null ? void 0 : r.radius) ?? et.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? et.scaling.default, onAppearanceChange: A = dn, onAccentColorChange: m = dn, onGrayColorChange: C = dn, onPanelBackgroundChange: f = dn, onRadiusChange: k = dn, onScalingChange: y = dn, ...w } = n, b = a ? Je : "div", N = d === "auto" ? Uh(c) : d, E = n.appearance === "light" || n.appearance === "dark", R = i === void 0 ? o || E : i;
|
|
1448
|
+
return p.createElement(Dr.Provider, { value: p.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: N, panelBackground: u, radius: g, scaling: h, onAppearanceChange: A, onAccentColorChange: m, onGrayColorChange: C, onPanelBackgroundChange: f, onRadiusChange: k, onScalingChange: y }), [l, c, d, N, u, g, h, A, m, C, f, k, y]) }, p.createElement(b, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": N, "data-has-background": R ? "true" : "false", "data-panel-background": u, "data-radius": g, "data-scaling": h, ref: t, ...w, className: S("radix-themes", { light: l === "light", dark: l === "dark" }, w.className) }));
|
|
1449
1449
|
});
|
|
1450
1450
|
Ca.displayName = "ThemeImpl";
|
|
1451
1451
|
const Ft = (n) => {
|
|
@@ -2346,7 +2346,7 @@ const Um = "_Callout_1lwt5_1", Om = "_size1_1lwt5_5", Pm = "_onlyButton_1lwt5_5"
|
|
|
2346
2346
|
iconButtonProps: g,
|
|
2347
2347
|
...h
|
|
2348
2348
|
}) => {
|
|
2349
|
-
const A = !!u, m = !!g, C = A || m, f = $m(r), k = ef(r), y = r === "3" ? "3" : "2", w = Y(null), b = Y(null), [
|
|
2349
|
+
const A = !!u, m = !!g, C = A || m, f = $m(r), k = ef(r), y = r === "3" ? "3" : "2", w = Y(null), b = Y(null), [N, E] = V("start");
|
|
2350
2350
|
aa(() => {
|
|
2351
2351
|
if (!C) {
|
|
2352
2352
|
E("start");
|
|
@@ -2354,14 +2354,14 @@ const Um = "_Callout_1lwt5_1", Om = "_size1_1lwt5_5", Pm = "_onlyButton_1lwt5_5"
|
|
|
2354
2354
|
}
|
|
2355
2355
|
if (!w.current || !b.current) return;
|
|
2356
2356
|
const x = () => {
|
|
2357
|
-
const
|
|
2358
|
-
E(
|
|
2357
|
+
const O = w.current.scrollHeight, B = b.current.scrollHeight;
|
|
2358
|
+
E(O <= B ? "center" : "start");
|
|
2359
2359
|
};
|
|
2360
2360
|
x();
|
|
2361
2361
|
const T = new ResizeObserver(x);
|
|
2362
2362
|
return T.observe(w.current), T.observe(b.current), () => T.disconnect();
|
|
2363
2363
|
}, [C]);
|
|
2364
|
-
const
|
|
2364
|
+
const R = () => d ? null : /* @__PURE__ */ s(Sa, { style: { height: k }, children: /* @__PURE__ */ s(i, { width: f, height: f }) });
|
|
2365
2365
|
return /* @__PURE__ */ s(rn, { asChild: !0, children: /* @__PURE__ */ s(
|
|
2366
2366
|
Ia,
|
|
2367
2367
|
{
|
|
@@ -2379,7 +2379,7 @@ const Um = "_Callout_1lwt5_1", Om = "_size1_1lwt5_5", Pm = "_onlyButton_1lwt5_5"
|
|
|
2379
2379
|
m && !A && un.onlyIconButton
|
|
2380
2380
|
),
|
|
2381
2381
|
...h,
|
|
2382
|
-
children: /* @__PURE__ */ v(I, { justify: "between", gap: "3", width: "100%", align:
|
|
2382
|
+
children: /* @__PURE__ */ v(I, { justify: "between", gap: "3", width: "100%", align: N, children: [
|
|
2383
2383
|
/* @__PURE__ */ v(
|
|
2384
2384
|
I,
|
|
2385
2385
|
{
|
|
@@ -2387,7 +2387,7 @@ const Um = "_Callout_1lwt5_1", Om = "_size1_1lwt5_5", Pm = "_onlyButton_1lwt5_5"
|
|
|
2387
2387
|
gap: "2",
|
|
2388
2388
|
width: "100%",
|
|
2389
2389
|
children: [
|
|
2390
|
-
|
|
2390
|
+
R(),
|
|
2391
2391
|
/* @__PURE__ */ v(I, { direction: "column", gap: "1", width: "100%", ref: w, children: [
|
|
2392
2392
|
c && /* @__PURE__ */ s(_, { size: y, weight: "bold", children: c }),
|
|
2393
2393
|
/* @__PURE__ */ s(_, { size: y, weight: "regular", children: l || n })
|
|
@@ -3107,13 +3107,13 @@ const hC = "_DataTable_1s4n5_1", gC = "_titleText_1s4n5_23", pC = "_artistText_1
|
|
|
3107
3107
|
u(null), h(null), m(null);
|
|
3108
3108
|
}, []), y = J(
|
|
3109
3109
|
(x) => {
|
|
3110
|
-
var
|
|
3111
|
-
const T = String(((
|
|
3110
|
+
var M;
|
|
3111
|
+
const T = String(((M = x.active) == null ? void 0 : M.id) ?? "");
|
|
3112
3112
|
if (!T) return;
|
|
3113
|
-
const
|
|
3114
|
-
if (!
|
|
3115
|
-
const B = t.has(T), Q = B && r.length > 0 ? r : [
|
|
3116
|
-
row:
|
|
3113
|
+
const O = f.get(T);
|
|
3114
|
+
if (!O) return;
|
|
3115
|
+
const B = t.has(T), Q = B && r.length > 0 ? r : [O], D = {
|
|
3116
|
+
row: O,
|
|
3117
3117
|
selectedRows: Q,
|
|
3118
3118
|
isDraggedRowSelected: B
|
|
3119
3119
|
};
|
|
@@ -3128,26 +3128,26 @@ const hC = "_DataTable_1s4n5_1", gC = "_titleText_1s4n5_23", pC = "_artistText_1
|
|
|
3128
3128
|
A != null && A.row && (l == null || l(A.row, x == null ? void 0 : x.activatorEvent)), k();
|
|
3129
3129
|
},
|
|
3130
3130
|
[A, l, k]
|
|
3131
|
-
),
|
|
3131
|
+
), N = J(
|
|
3132
3132
|
(x) => {
|
|
3133
3133
|
var Q, D;
|
|
3134
|
-
const T = String(((Q = x.active) == null ? void 0 : Q.id) ?? ""),
|
|
3135
|
-
if (B && (l == null || l(B, x.activatorEvent)), a &&
|
|
3136
|
-
const
|
|
3134
|
+
const T = String(((Q = x.active) == null ? void 0 : Q.id) ?? ""), O = (D = x.over) != null && D.id ? String(x.over.id) : null, B = f.get(T) ?? (A == null ? void 0 : A.row);
|
|
3135
|
+
if (B && (l == null || l(B, x.activatorEvent)), a && O && T) {
|
|
3136
|
+
const M = n.findIndex((P) => P.id === T);
|
|
3137
3137
|
let U = null;
|
|
3138
|
-
if (
|
|
3138
|
+
if (O === Hs)
|
|
3139
3139
|
U = 0;
|
|
3140
|
-
else if (
|
|
3140
|
+
else if (O === js)
|
|
3141
3141
|
U = n.length;
|
|
3142
|
-
else if (T !==
|
|
3143
|
-
const P = n.findIndex((K) => K.id ===
|
|
3144
|
-
P >= 0 && (U = P >
|
|
3142
|
+
else if (T !== O) {
|
|
3143
|
+
const P = n.findIndex((K) => K.id === O);
|
|
3144
|
+
P >= 0 && (U = P > M ? P + 1 : P);
|
|
3145
3145
|
}
|
|
3146
|
-
if (
|
|
3146
|
+
if (M >= 0 && U != null) {
|
|
3147
3147
|
const P = nv({
|
|
3148
3148
|
data: n,
|
|
3149
3149
|
selectedSet: t,
|
|
3150
|
-
order:
|
|
3150
|
+
order: M,
|
|
3151
3151
|
moveBefore: U
|
|
3152
3152
|
});
|
|
3153
3153
|
P && (o == null || o(P));
|
|
@@ -3172,17 +3172,17 @@ const hC = "_DataTable_1s4n5_1", gC = "_titleText_1s4n5_23", pC = "_artistText_1
|
|
|
3172
3172
|
onDragStart: y,
|
|
3173
3173
|
onDragOver: w,
|
|
3174
3174
|
onDragCancel: b,
|
|
3175
|
-
onDragEnd:
|
|
3175
|
+
onDragEnd: N
|
|
3176
3176
|
}),
|
|
3177
|
-
[b,
|
|
3178
|
-
),
|
|
3177
|
+
[b, N, w, y, C]
|
|
3178
|
+
), R = oe(
|
|
3179
3179
|
() => ({
|
|
3180
3180
|
onDragStart: y,
|
|
3181
3181
|
onDragOver: w,
|
|
3182
3182
|
onDragCancel: b,
|
|
3183
|
-
onDragEnd:
|
|
3183
|
+
onDragEnd: N
|
|
3184
3184
|
}),
|
|
3185
|
-
[y, w, b,
|
|
3185
|
+
[y, w, b, N]
|
|
3186
3186
|
);
|
|
3187
3187
|
return {
|
|
3188
3188
|
dndContextProps: E,
|
|
@@ -3190,7 +3190,7 @@ const hC = "_DataTable_1s4n5_1", gC = "_titleText_1s4n5_23", pC = "_artistText_1
|
|
|
3190
3190
|
overDragRowId: g,
|
|
3191
3191
|
activeDragContext: A,
|
|
3192
3192
|
sortableItems: n.map((x) => x.id),
|
|
3193
|
-
monitorHandlers:
|
|
3193
|
+
monitorHandlers: R
|
|
3194
3194
|
};
|
|
3195
3195
|
}, ur = (n) => typeof n == "string" ? n.toUpperCase() : n, iv = ({
|
|
3196
3196
|
columns: n,
|
|
@@ -3319,7 +3319,7 @@ const uv = Te.memo(function({
|
|
|
3319
3319
|
dndScopeId: b
|
|
3320
3320
|
}) {
|
|
3321
3321
|
var ee;
|
|
3322
|
-
const
|
|
3322
|
+
const N = Y(!1), E = Y(!1), R = Y(!1), x = Y(!1), { listeners: T, setNodeRef: O, transform: B, transition: Q, isDragging: D } = Iu({
|
|
3323
3323
|
id: r,
|
|
3324
3324
|
disabled: !no({ row: t, rowDraggable: k, reorderable: y }),
|
|
3325
3325
|
data: {
|
|
@@ -3329,10 +3329,10 @@ const uv = Te.memo(function({
|
|
|
3329
3329
|
row: t,
|
|
3330
3330
|
rowIndex: a
|
|
3331
3331
|
}
|
|
3332
|
-
}),
|
|
3332
|
+
}), M = {
|
|
3333
3333
|
...B ? { transform: wu.Transform.toString(B) } : {},
|
|
3334
3334
|
...Q ? { transition: Q } : {}
|
|
3335
|
-
}, U = i ? { ...
|
|
3335
|
+
}, U = i ? { ...M, "--row-bg": "var(--aqua-alpha-2)" } : M, P = (z) => {
|
|
3336
3336
|
if (E.current) {
|
|
3337
3337
|
E.current = !1;
|
|
3338
3338
|
return;
|
|
@@ -3341,36 +3341,36 @@ const uv = Te.memo(function({
|
|
|
3341
3341
|
}, K = (z) => {
|
|
3342
3342
|
z.pointerType === "touch" && (E.current = !0, z.shiftKey ? m == null || m(t, a) : h == null || h(t));
|
|
3343
3343
|
}, $ = (z) => {
|
|
3344
|
-
z.stopPropagation(), z.shiftKey && (z.preventDefault(),
|
|
3345
|
-
|
|
3344
|
+
z.stopPropagation(), z.shiftKey && (z.preventDefault(), N.current = !0, m == null || m(t, a), setTimeout(() => {
|
|
3345
|
+
N.current = !1;
|
|
3346
3346
|
}, 0));
|
|
3347
3347
|
}, L = (z) => {
|
|
3348
3348
|
if (z.key === "Enter") {
|
|
3349
3349
|
if (z.preventDefault(), z.stopPropagation(), z.shiftKey) {
|
|
3350
|
-
|
|
3351
|
-
|
|
3350
|
+
N.current = !0, m == null || m(t, a), setTimeout(() => {
|
|
3351
|
+
N.current = !1;
|
|
3352
3352
|
}, 0);
|
|
3353
3353
|
return;
|
|
3354
3354
|
}
|
|
3355
3355
|
r != null && (x.current = !0, A == null || A(r, !i));
|
|
3356
3356
|
}
|
|
3357
3357
|
}, F = (z) => {
|
|
3358
|
-
if (z.stopPropagation(),
|
|
3359
|
-
|
|
3358
|
+
if (z.stopPropagation(), R.current) {
|
|
3359
|
+
R.current = !1;
|
|
3360
3360
|
return;
|
|
3361
3361
|
}
|
|
3362
3362
|
z.shiftKey ? (z.preventDefault(), m == null || m(t, a)) : r != null && (A == null || A(r, !i));
|
|
3363
3363
|
}, X = (z) => {
|
|
3364
|
-
z.pointerType === "touch" && (z.stopPropagation(),
|
|
3364
|
+
z.pointerType === "touch" && (z.stopPropagation(), R.current = !0, z.shiftKey ? m == null || m(t, a) : r != null && (A == null || A(r, !i)));
|
|
3365
3365
|
}, pe = (z) => {
|
|
3366
|
-
if (R.current) {
|
|
3367
|
-
R.current = !1;
|
|
3368
|
-
return;
|
|
3369
|
-
}
|
|
3370
3366
|
if (N.current) {
|
|
3371
3367
|
N.current = !1;
|
|
3372
3368
|
return;
|
|
3373
3369
|
}
|
|
3370
|
+
if (R.current) {
|
|
3371
|
+
R.current = !1;
|
|
3372
|
+
return;
|
|
3373
|
+
}
|
|
3374
3374
|
if (x.current) {
|
|
3375
3375
|
x.current = !1;
|
|
3376
3376
|
return;
|
|
@@ -3380,7 +3380,7 @@ const uv = Te.memo(function({
|
|
|
3380
3380
|
return /* @__PURE__ */ v(
|
|
3381
3381
|
rr,
|
|
3382
3382
|
{
|
|
3383
|
-
ref:
|
|
3383
|
+
ref: O,
|
|
3384
3384
|
"data-row-id": r ?? void 0,
|
|
3385
3385
|
className: S({
|
|
3386
3386
|
[re.rowSelected]: i,
|
|
@@ -3506,24 +3506,24 @@ const uv = Te.memo(function({
|
|
|
3506
3506
|
overDragRowId: f,
|
|
3507
3507
|
dndScopeId: k
|
|
3508
3508
|
}) => {
|
|
3509
|
-
const y = t.length + 1 + (d ? 1 : 0), w = J((
|
|
3509
|
+
const y = t.length + 1 + (d ? 1 : 0), w = J((N) => /* @__PURE__ */ v(I, { align: "center", gap: "3", children: [
|
|
3510
3510
|
/* @__PURE__ */ s(
|
|
3511
3511
|
ar,
|
|
3512
3512
|
{
|
|
3513
|
-
title:
|
|
3513
|
+
title: N.title,
|
|
3514
3514
|
size: 48,
|
|
3515
3515
|
className: re.thumb,
|
|
3516
|
-
type:
|
|
3517
|
-
cover:
|
|
3516
|
+
type: N.type,
|
|
3517
|
+
cover: N.thumb
|
|
3518
3518
|
}
|
|
3519
3519
|
),
|
|
3520
3520
|
/* @__PURE__ */ v(I, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
3521
|
-
/* @__PURE__ */ s(_, { size: "2", className: re.titleText, children:
|
|
3522
|
-
/* @__PURE__ */ s(_, { size: "1", className: re.artistText, children:
|
|
3521
|
+
/* @__PURE__ */ s(_, { size: "2", className: re.titleText, children: N.title }),
|
|
3522
|
+
/* @__PURE__ */ s(_, { size: "1", className: re.artistText, children: N.artist })
|
|
3523
3523
|
] })
|
|
3524
|
-
] }), []), b = J((
|
|
3524
|
+
] }), []), b = J((N, E, R) => {
|
|
3525
3525
|
var B;
|
|
3526
|
-
const x = (
|
|
3526
|
+
const x = (N == null ? void 0 : N[E.id]) ?? (N == null ? void 0 : N[`${E.id}Formatted`]), T = ((B = E.render) == null ? void 0 : B.call(E, { row: N, value: x, column: E, index: R })) ?? x;
|
|
3527
3527
|
return typeof T == "string" || typeof T == "number" || T == null ? /* @__PURE__ */ s(_, { size: "2", className: re.cellText, children: T }) : T;
|
|
3528
3528
|
}, []);
|
|
3529
3529
|
return /* @__PURE__ */ s(za, { children: /* @__PURE__ */ v(Su, { items: r, strategy: Eu, children: [
|
|
@@ -3535,14 +3535,14 @@ const uv = Te.memo(function({
|
|
|
3535
3535
|
colSpan: y
|
|
3536
3536
|
}
|
|
3537
3537
|
),
|
|
3538
|
-
n.map((
|
|
3538
|
+
n.map((N, E) => /* @__PURE__ */ s(
|
|
3539
3539
|
uv,
|
|
3540
3540
|
{
|
|
3541
|
-
rowId:
|
|
3542
|
-
row:
|
|
3541
|
+
rowId: N.id,
|
|
3542
|
+
row: N,
|
|
3543
3543
|
rowIndex: E,
|
|
3544
3544
|
columns: t,
|
|
3545
|
-
isSelected: a(
|
|
3545
|
+
isSelected: a(N, E),
|
|
3546
3546
|
anyRowSelected: o,
|
|
3547
3547
|
selectedCount: i,
|
|
3548
3548
|
sortedKey: l,
|
|
@@ -3555,10 +3555,10 @@ const uv = Te.memo(function({
|
|
|
3555
3555
|
renderDataCell: b,
|
|
3556
3556
|
rowDraggable: A,
|
|
3557
3557
|
reorderable: m,
|
|
3558
|
-
isDragOver: m && f ===
|
|
3558
|
+
isDragOver: m && f === N.id && C !== N.id,
|
|
3559
3559
|
dndScopeId: k
|
|
3560
3560
|
},
|
|
3561
|
-
|
|
3561
|
+
N.id
|
|
3562
3562
|
)),
|
|
3563
3563
|
m && /* @__PURE__ */ s(
|
|
3564
3564
|
ro,
|
|
@@ -3590,14 +3590,14 @@ const uv = Te.memo(function({
|
|
|
3590
3590
|
onRowDragMove: y,
|
|
3591
3591
|
onRowDragEnd: w,
|
|
3592
3592
|
getDragPreviewLabel: b,
|
|
3593
|
-
getDragPreviewCountLabel:
|
|
3593
|
+
getDragPreviewCountLabel: N,
|
|
3594
3594
|
renderDragPreview: E,
|
|
3595
|
-
renderDndContext:
|
|
3595
|
+
renderDndContext: R = !0,
|
|
3596
3596
|
dndScopeId: x,
|
|
3597
3597
|
...T
|
|
3598
3598
|
}) => {
|
|
3599
3599
|
var Z, Pe;
|
|
3600
|
-
const
|
|
3600
|
+
const O = Y(null), B = c == null ? void 0 : c.field, Q = (Z = t == null ? void 0 : t[0]) == null ? void 0 : Z.id, D = (Pe = t == null ? void 0 : t[1]) == null ? void 0 : Pe.id, M = oe(() => {
|
|
3601
3601
|
if (t != null && t.length)
|
|
3602
3602
|
return !B || B === Q ? D : B;
|
|
3603
3603
|
}, [t, B, Q, D]), U = oe(
|
|
@@ -3629,18 +3629,18 @@ const uv = Te.memo(function({
|
|
|
3629
3629
|
), G = J(
|
|
3630
3630
|
(ve, ke) => {
|
|
3631
3631
|
if (!g) return;
|
|
3632
|
-
const we =
|
|
3632
|
+
const we = O.current, rt = we != null ? Math.min(we, ke) : ke, _e = we != null ? Math.max(we, ke) : ke;
|
|
3633
3633
|
for (let or = rt; or <= _e; or++) {
|
|
3634
3634
|
const Ka = _t(r[or], or);
|
|
3635
3635
|
Ka != null && g(Ka, !0);
|
|
3636
3636
|
}
|
|
3637
|
-
we == null && (
|
|
3637
|
+
we == null && (O.current = ke);
|
|
3638
3638
|
},
|
|
3639
3639
|
[r, g]
|
|
3640
3640
|
), ee = J(
|
|
3641
3641
|
(ve, ke) => {
|
|
3642
3642
|
const we = (r == null ? void 0 : r.findIndex((rt, _e) => _t(rt, _e) === String(ve))) ?? -1;
|
|
3643
|
-
we >= 0 && (
|
|
3643
|
+
we >= 0 && (O.current = we), g == null || g(String(ve), ke);
|
|
3644
3644
|
},
|
|
3645
3645
|
[r, g]
|
|
3646
3646
|
), {
|
|
@@ -3679,7 +3679,7 @@ const uv = Te.memo(function({
|
|
|
3679
3679
|
columns: t,
|
|
3680
3680
|
sortedKey: B,
|
|
3681
3681
|
sorting: c,
|
|
3682
|
-
mobileSecondaryColumnId:
|
|
3682
|
+
mobileSecondaryColumnId: M,
|
|
3683
3683
|
anyRowChecked: X,
|
|
3684
3684
|
allRowsChecked: pe,
|
|
3685
3685
|
selectedFilesLabel: o,
|
|
@@ -3701,7 +3701,7 @@ const uv = Te.memo(function({
|
|
|
3701
3701
|
anyRowChecked: X,
|
|
3702
3702
|
selectedCount: L,
|
|
3703
3703
|
sortedKey: B,
|
|
3704
|
-
mobileSecondaryColumnId:
|
|
3704
|
+
mobileSecondaryColumnId: M,
|
|
3705
3705
|
hasDropdownOptions: ue,
|
|
3706
3706
|
onClick: me,
|
|
3707
3707
|
onSelectRow: ee,
|
|
@@ -3721,10 +3721,10 @@ const uv = Te.memo(function({
|
|
|
3721
3721
|
model: fe,
|
|
3722
3722
|
renderDragPreview: E,
|
|
3723
3723
|
getDragPreviewLabel: b,
|
|
3724
|
-
getDragPreviewCountLabel:
|
|
3724
|
+
getDragPreviewCountLabel: N
|
|
3725
3725
|
}
|
|
3726
3726
|
) }) : null });
|
|
3727
|
-
return
|
|
3727
|
+
return R ? /* @__PURE__ */ v(yu, { ...z, children: [
|
|
3728
3728
|
Me,
|
|
3729
3729
|
vt
|
|
3730
3730
|
] }) : /* @__PURE__ */ v(Ce, { children: [
|
|
@@ -3764,15 +3764,15 @@ const pv = "_hasTriggerWithoutClick_19qua_1", Av = "_hasLeftColor_19qua_10", mv
|
|
|
3764
3764
|
leftColor: d,
|
|
3765
3765
|
...u
|
|
3766
3766
|
}) => {
|
|
3767
|
-
const [g, h] = V(!1), [A, m] = V(!1), [C, f] = V(!1), k = (
|
|
3768
|
-
i && (
|
|
3767
|
+
const [g, h] = V(!1), [A, m] = V(!1), [C, f] = V(!1), k = (R) => {
|
|
3768
|
+
i && (R.preventDefault(), R.stopPropagation(), i(R));
|
|
3769
3769
|
}, y = () => {
|
|
3770
3770
|
m(!0);
|
|
3771
3771
|
}, w = () => {
|
|
3772
3772
|
m(!1);
|
|
3773
3773
|
}, b = () => {
|
|
3774
3774
|
f(!0);
|
|
3775
|
-
},
|
|
3775
|
+
}, N = () => {
|
|
3776
3776
|
f(!1);
|
|
3777
3777
|
}, E = i ? "button" : "div";
|
|
3778
3778
|
return /* @__PURE__ */ s(I, { className: S(Ke.container, a), ...u, children: /* @__PURE__ */ v(Pr, { open: l, onOpenChange: c, modal: !0, children: [
|
|
@@ -3826,7 +3826,7 @@ const pv = "_hasTriggerWithoutClick_19qua_1", Av = "_hasLeftColor_19qua_10", mv
|
|
|
3826
3826
|
h(!1);
|
|
3827
3827
|
},
|
|
3828
3828
|
onFocus: b,
|
|
3829
|
-
onBlur:
|
|
3829
|
+
onBlur: N,
|
|
3830
3830
|
children: [
|
|
3831
3831
|
!i && /* @__PURE__ */ s(
|
|
3832
3832
|
Oe,
|
|
@@ -3868,7 +3868,7 @@ const pv = "_hasTriggerWithoutClick_19qua_1", Av = "_hasLeftColor_19qua_10", mv
|
|
|
3868
3868
|
{
|
|
3869
3869
|
className: Ke.content,
|
|
3870
3870
|
sideOffset: 5,
|
|
3871
|
-
onCloseAutoFocus: (
|
|
3871
|
+
onCloseAutoFocus: (R) => R.preventDefault(),
|
|
3872
3872
|
children: n
|
|
3873
3873
|
}
|
|
3874
3874
|
)
|
|
@@ -3892,10 +3892,10 @@ const so = Wa(Nd), Sn = Ze(
|
|
|
3892
3892
|
wrapCloseMenu: A,
|
|
3893
3893
|
...m
|
|
3894
3894
|
}) => {
|
|
3895
|
-
const C = m.open !== void 0, [f, k] = V(!1), y = C ? m.open : f, w = J((
|
|
3895
|
+
const C = m.open !== void 0, [f, k] = V(!1), y = C ? m.open : f, w = J((R) => {
|
|
3896
3896
|
var x;
|
|
3897
|
-
C || k(
|
|
3898
|
-
}, [C, m == null ? void 0 : m.onOpenChange]), b = J(() => w(!1), [w]),
|
|
3897
|
+
C || k(R), (x = m == null ? void 0 : m.onOpenChange) == null || x.call(m, R);
|
|
3898
|
+
}, [C, m == null ? void 0 : m.onOpenChange]), b = J(() => w(!1), [w]), N = A ? A(b) : b, E = {
|
|
3899
3899
|
...g && {
|
|
3900
3900
|
width: "var(--radix-dropdown-menu-trigger-width)",
|
|
3901
3901
|
boxSizing: "border-box"
|
|
@@ -3930,22 +3930,22 @@ const so = Wa(Nd), Sn = Ze(
|
|
|
3930
3930
|
style: E,
|
|
3931
3931
|
sideOffset: u,
|
|
3932
3932
|
alignOffset: 0,
|
|
3933
|
-
onCloseAutoFocus: (
|
|
3934
|
-
|
|
3933
|
+
onCloseAutoFocus: (R) => {
|
|
3934
|
+
R.preventDefault();
|
|
3935
3935
|
},
|
|
3936
|
-
onClick: (
|
|
3936
|
+
onClick: (R) => R.stopPropagation(),
|
|
3937
3937
|
children: /* @__PURE__ */ s(
|
|
3938
3938
|
Ct,
|
|
3939
3939
|
{
|
|
3940
3940
|
scrollbars: "vertical",
|
|
3941
3941
|
style: { height: c },
|
|
3942
3942
|
children: t == null ? void 0 : t.map(
|
|
3943
|
-
(
|
|
3944
|
-
|
|
3943
|
+
(R) => so(
|
|
3944
|
+
R,
|
|
3945
3945
|
o,
|
|
3946
3946
|
i,
|
|
3947
3947
|
d,
|
|
3948
|
-
|
|
3948
|
+
N,
|
|
3949
3949
|
h
|
|
3950
3950
|
)
|
|
3951
3951
|
)
|
|
@@ -3962,17 +3962,17 @@ const so = Wa(Nd), Sn = Ze(
|
|
|
3962
3962
|
style: E,
|
|
3963
3963
|
sideOffset: u,
|
|
3964
3964
|
alignOffset: 0,
|
|
3965
|
-
onCloseAutoFocus: (
|
|
3966
|
-
|
|
3965
|
+
onCloseAutoFocus: (R) => {
|
|
3966
|
+
R.preventDefault();
|
|
3967
3967
|
},
|
|
3968
|
-
onClick: (
|
|
3968
|
+
onClick: (R) => R.stopPropagation(),
|
|
3969
3969
|
children: t == null ? void 0 : t.map(
|
|
3970
|
-
(
|
|
3971
|
-
|
|
3970
|
+
(R) => so(
|
|
3971
|
+
R,
|
|
3972
3972
|
o,
|
|
3973
3973
|
i,
|
|
3974
3974
|
d,
|
|
3975
|
-
|
|
3975
|
+
N,
|
|
3976
3976
|
h
|
|
3977
3977
|
)
|
|
3978
3978
|
)
|
|
@@ -4013,25 +4013,25 @@ const wv = "_container_64kxk_1", Nv = "_triggerWithClick_64kxk_9", Rv = "_chevro
|
|
|
4013
4013
|
closeOnTriggerClick: C = !0,
|
|
4014
4014
|
...f
|
|
4015
4015
|
}) => {
|
|
4016
|
-
const k = f.open !== void 0, [y, w] = V(!1), b = Y(null),
|
|
4016
|
+
const k = f.open !== void 0, [y, w] = V(!1), b = Y(null), N = k ? f.open : y, E = J(
|
|
4017
4017
|
(L) => {
|
|
4018
4018
|
var F;
|
|
4019
4019
|
k || w(L), (F = f == null ? void 0 : f.onOpenChange) == null || F.call(f, L);
|
|
4020
4020
|
},
|
|
4021
4021
|
[k, f == null ? void 0 : f.onOpenChange]
|
|
4022
|
-
),
|
|
4022
|
+
), R = J(() => E(!1), [E]), x = m ? m(R) : R, T = {
|
|
4023
4023
|
...u && {
|
|
4024
4024
|
width: "var(--radix-dropdown-menu-trigger-width)",
|
|
4025
4025
|
boxSizing: "border-box"
|
|
4026
4026
|
},
|
|
4027
4027
|
...c && { height: c }
|
|
4028
|
-
},
|
|
4028
|
+
}, O = (L) => {
|
|
4029
4029
|
g && (L.preventDefault(), L.stopPropagation(), g(L));
|
|
4030
|
-
}, B =
|
|
4030
|
+
}, B = N && !C, Q = (L) => {
|
|
4031
4031
|
B && L.preventDefault();
|
|
4032
4032
|
}, D = (L) => {
|
|
4033
4033
|
B && (L.key === "Enter" || L.key === " ") && L.preventDefault();
|
|
4034
|
-
},
|
|
4034
|
+
}, M = (L) => {
|
|
4035
4035
|
var F;
|
|
4036
4036
|
C || (F = b.current) != null && F.contains(L.target) && L.preventDefault();
|
|
4037
4037
|
}, U = J((L) => {
|
|
@@ -4060,7 +4060,7 @@ const wv = "_container_64kxk_1", Nv = "_triggerWithClick_64kxk_9", Rv = "_chevro
|
|
|
4060
4060
|
sideOffset: d,
|
|
4061
4061
|
alignOffset: 0,
|
|
4062
4062
|
onOpenAutoFocus: P,
|
|
4063
|
-
onPointerDownOutside:
|
|
4063
|
+
onPointerDownOutside: M,
|
|
4064
4064
|
onCloseAutoFocus: (L) => {
|
|
4065
4065
|
L.preventDefault();
|
|
4066
4066
|
},
|
|
@@ -4072,14 +4072,14 @@ const wv = "_container_64kxk_1", Nv = "_triggerWithClick_64kxk_9", Rv = "_chevro
|
|
|
4072
4072
|
Vo,
|
|
4073
4073
|
{
|
|
4074
4074
|
...f,
|
|
4075
|
-
open: l ? !1 :
|
|
4075
|
+
open: l ? !1 : N,
|
|
4076
4076
|
onOpenChange: l ? void 0 : E,
|
|
4077
4077
|
children: [
|
|
4078
4078
|
g && /* @__PURE__ */ s(
|
|
4079
4079
|
"button",
|
|
4080
4080
|
{
|
|
4081
4081
|
type: "button",
|
|
4082
|
-
onClick:
|
|
4082
|
+
onClick: O,
|
|
4083
4083
|
className: S(pt.triggerWithClick),
|
|
4084
4084
|
children: n
|
|
4085
4085
|
}
|
|
@@ -4133,62 +4133,84 @@ const Uv = "_popoverPortal_nadny_1", Ov = "_popoverContent_nadny_9", Pv = "_cont
|
|
|
4133
4133
|
matchTriggerWidth: d = !1,
|
|
4134
4134
|
wrapCloseMenu: u,
|
|
4135
4135
|
modal: g = !1,
|
|
4136
|
-
|
|
4136
|
+
closeOnTriggerClick: h = !0,
|
|
4137
|
+
...A
|
|
4137
4138
|
}) => {
|
|
4138
|
-
const
|
|
4139
|
-
(
|
|
4140
|
-
var
|
|
4141
|
-
|
|
4139
|
+
const m = A.open !== void 0, [C, f] = V(!1), k = m ? A.open : C, y = J(
|
|
4140
|
+
(M) => {
|
|
4141
|
+
var U;
|
|
4142
|
+
m || f(M), (U = A == null ? void 0 : A.onOpenChange) == null || U.call(A, M);
|
|
4142
4143
|
},
|
|
4143
|
-
[
|
|
4144
|
-
),
|
|
4144
|
+
[m, A == null ? void 0 : A.onOpenChange]
|
|
4145
|
+
), w = J(() => y(!1), [y]), b = u ? u(w) : w, N = {
|
|
4145
4146
|
...d && {
|
|
4146
4147
|
width: "var(--radix-popover-trigger-width)",
|
|
4147
4148
|
boxSizing: "border-box"
|
|
4148
4149
|
},
|
|
4149
4150
|
...l && { height: l }
|
|
4150
|
-
},
|
|
4151
|
-
|
|
4152
|
-
}, []),
|
|
4153
|
-
|
|
4154
|
-
const
|
|
4155
|
-
|
|
4156
|
-
}, []),
|
|
4151
|
+
}, E = J((M) => {
|
|
4152
|
+
M.key === "Tab" && M.stopPropagation();
|
|
4153
|
+
}, []), R = J((M) => {
|
|
4154
|
+
M.preventDefault();
|
|
4155
|
+
const U = M.currentTarget.querySelector("[data-tools-popover-panel]");
|
|
4156
|
+
U == null || U.focus({ preventScroll: !0 });
|
|
4157
|
+
}, []), x = k && !h, T = (M) => {
|
|
4158
|
+
x && M.preventDefault();
|
|
4159
|
+
}, O = (M) => {
|
|
4160
|
+
x && (M.key === "Enter" || M.key === " ") && M.preventDefault();
|
|
4161
|
+
}, B = (M) => {
|
|
4162
|
+
if (h) return;
|
|
4163
|
+
const U = M.target;
|
|
4164
|
+
U instanceof Element && U.closest("[data-tools-popover-trigger]") && M.preventDefault();
|
|
4165
|
+
}, Q = () => /* @__PURE__ */ s(
|
|
4157
4166
|
"div",
|
|
4158
4167
|
{
|
|
4159
4168
|
className: As.contentPanel,
|
|
4160
4169
|
"data-tools-popover-panel": !0,
|
|
4161
4170
|
tabIndex: -1,
|
|
4162
|
-
onKeyDown:
|
|
4163
|
-
children: typeof t == "function" ? t(
|
|
4171
|
+
onKeyDown: E,
|
|
4172
|
+
children: typeof t == "function" ? t(b) : t
|
|
4164
4173
|
}
|
|
4165
|
-
),
|
|
4174
|
+
), D = /* @__PURE__ */ s(rn, { asChild: !0, children: /* @__PURE__ */ s(
|
|
4166
4175
|
Or,
|
|
4167
4176
|
{
|
|
4168
4177
|
className: S(As.popoverContent, r, a),
|
|
4169
|
-
side:
|
|
4170
|
-
align:
|
|
4171
|
-
style:
|
|
4178
|
+
side: A.side,
|
|
4179
|
+
align: A.align,
|
|
4180
|
+
style: N,
|
|
4172
4181
|
sideOffset: c,
|
|
4173
4182
|
alignOffset: 0,
|
|
4174
|
-
onOpenAutoFocus:
|
|
4175
|
-
|
|
4176
|
-
|
|
4183
|
+
onOpenAutoFocus: R,
|
|
4184
|
+
onPointerDownOutside: B,
|
|
4185
|
+
onCloseAutoFocus: (M) => {
|
|
4186
|
+
M.preventDefault();
|
|
4177
4187
|
},
|
|
4178
|
-
onClick: (
|
|
4179
|
-
children: l ? /* @__PURE__ */ s(Ct, { scrollbars: "vertical", style: { height: l }, children:
|
|
4188
|
+
onClick: (M) => M.stopPropagation(),
|
|
4189
|
+
children: l ? /* @__PURE__ */ s(Ct, { scrollbars: "vertical", style: { height: l }, children: Q() }) : Q()
|
|
4180
4190
|
}
|
|
4181
4191
|
) });
|
|
4182
4192
|
return /* @__PURE__ */ v(
|
|
4183
4193
|
Pr,
|
|
4184
4194
|
{
|
|
4185
|
-
...
|
|
4195
|
+
...A,
|
|
4186
4196
|
modal: g,
|
|
4187
|
-
open: i ? !1 :
|
|
4188
|
-
onOpenChange: i ? void 0 :
|
|
4197
|
+
open: i ? !1 : k,
|
|
4198
|
+
onOpenChange: i ? void 0 : y,
|
|
4189
4199
|
children: [
|
|
4190
|
-
/* @__PURE__ */ s(
|
|
4191
|
-
|
|
4200
|
+
/* @__PURE__ */ s(
|
|
4201
|
+
Fr,
|
|
4202
|
+
{
|
|
4203
|
+
asChild: !0,
|
|
4204
|
+
className: o,
|
|
4205
|
+
disabled: i,
|
|
4206
|
+
"data-tools-popover-trigger": "",
|
|
4207
|
+
style: x ? { pointerEvents: "auto" } : void 0,
|
|
4208
|
+
onClick: T,
|
|
4209
|
+
onKeyDown: O,
|
|
4210
|
+
children: n
|
|
4211
|
+
}
|
|
4212
|
+
),
|
|
4213
|
+
/* @__PURE__ */ s(Uo, { className: As.popoverPortal, children: D })
|
|
4192
4214
|
]
|
|
4193
4215
|
}
|
|
4194
4216
|
);
|
|
@@ -4395,18 +4417,18 @@ function a1({ initialScreen: n, animated: t, children: r }) {
|
|
|
4395
4417
|
(D == null ? void 0 : D.type) === Xl && (Q[D.props.name] = D.props);
|
|
4396
4418
|
}), Q;
|
|
4397
4419
|
}, [r]), A = J((Q, D = null) => {
|
|
4398
|
-
t && D && s1(g.current, D), o(Q), l({}), d((
|
|
4420
|
+
t && D && s1(g.current, D), o(Q), l({}), d((M) => M + 1);
|
|
4399
4421
|
}, [t]), m = J(
|
|
4400
|
-
(Q, D = {}) => A((
|
|
4422
|
+
(Q, D = {}) => A((M) => [...M, { name: Q, params: D }], "forward"),
|
|
4401
4423
|
[A]
|
|
4402
4424
|
), C = J(
|
|
4403
4425
|
() => A((Q) => Q.length > 1 ? Q.slice(0, -1) : Q, "back"),
|
|
4404
4426
|
[A]
|
|
4405
4427
|
), f = J(
|
|
4406
4428
|
(Q) => A((D) => {
|
|
4407
|
-
const
|
|
4408
|
-
if (
|
|
4409
|
-
return D.slice(0,
|
|
4429
|
+
const M = D.findIndex((U) => U.name === Q);
|
|
4430
|
+
if (M === -1) throw new Error(`Screen "${Q}" is not in the stack`);
|
|
4431
|
+
return D.slice(0, M + 1);
|
|
4410
4432
|
}, "back"),
|
|
4411
4433
|
[A]
|
|
4412
4434
|
), k = J(
|
|
@@ -4415,33 +4437,33 @@ function a1({ initialScreen: n, animated: t, children: r }) {
|
|
|
4415
4437
|
), y = a.length > 1, w = oe(
|
|
4416
4438
|
() => ({ push: m, pop: C, popTo: f, reset: k, canGoBack: y, stack: a }),
|
|
4417
4439
|
[m, C, f, k, y, a]
|
|
4418
|
-
), b = a[a.length - 1],
|
|
4419
|
-
if (!
|
|
4440
|
+
), b = a[a.length - 1], N = h[b.name];
|
|
4441
|
+
if (!N) return null;
|
|
4420
4442
|
const E = oe(
|
|
4421
4443
|
() => a.map((Q, D) => {
|
|
4422
|
-
var
|
|
4423
|
-
return (
|
|
4444
|
+
var M;
|
|
4445
|
+
return (M = h[Q.name]) != null && M.keepMounted ? { entry: Q, stackIndex: D } : null;
|
|
4424
4446
|
}).filter(Boolean),
|
|
4425
4447
|
[a, h]
|
|
4426
|
-
),
|
|
4448
|
+
), R = (Q, D) => Q in i ? i[Q] : N[Q] ?? D, x = N.component, T = N.keepMounted === !0, O = J(
|
|
4427
4449
|
(Q) => {
|
|
4428
|
-
u.current[u.current.length - 1].name === b.name && l((
|
|
4450
|
+
u.current[u.current.length - 1].name === b.name && l((M) => ({ ...M, ...Q }));
|
|
4429
4451
|
},
|
|
4430
4452
|
[b.name]
|
|
4431
4453
|
), B = oe(
|
|
4432
|
-
() => ({ name: b.name, params: b.params || {}, setOptions:
|
|
4433
|
-
[b.name, b.params,
|
|
4454
|
+
() => ({ name: b.name, params: b.params || {}, setOptions: O }),
|
|
4455
|
+
[b.name, b.params, O]
|
|
4434
4456
|
);
|
|
4435
4457
|
return /* @__PURE__ */ s(ql.Provider, { value: w, children: /* @__PURE__ */ v("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
4436
4458
|
/* @__PURE__ */ s(
|
|
4437
4459
|
Yl,
|
|
4438
4460
|
{
|
|
4439
|
-
title:
|
|
4461
|
+
title: R("title"),
|
|
4440
4462
|
onBack: y ? C : void 0,
|
|
4441
|
-
headerLeft:
|
|
4442
|
-
headerRight:
|
|
4443
|
-
allowClose:
|
|
4444
|
-
onClose:
|
|
4463
|
+
headerLeft: R("headerLeft"),
|
|
4464
|
+
headerRight: R("headerRight"),
|
|
4465
|
+
allowClose: R("allowClose", !0),
|
|
4466
|
+
onClose: R("onClose")
|
|
4445
4467
|
}
|
|
4446
4468
|
),
|
|
4447
4469
|
/* @__PURE__ */ v(
|
|
@@ -4458,9 +4480,9 @@ function a1({ initialScreen: n, animated: t, children: r }) {
|
|
|
4458
4480
|
},
|
|
4459
4481
|
children: [
|
|
4460
4482
|
E.map(({ entry: Q, stackIndex: D }) => {
|
|
4461
|
-
const
|
|
4462
|
-
if (!(
|
|
4463
|
-
const U =
|
|
4483
|
+
const M = h[Q.name];
|
|
4484
|
+
if (!(M != null && M.component)) return null;
|
|
4485
|
+
const U = M.component, P = Q.name === b.name, K = P ? B : { name: Q.name, params: Q.params || {}, setOptions: () => {
|
|
4464
4486
|
} };
|
|
4465
4487
|
return /* @__PURE__ */ s(
|
|
4466
4488
|
"div",
|
|
@@ -4907,13 +4929,13 @@ const vB = cs, J1 = "_sliderRoot_19e7a_23", Q1 = "_sliderTrack_19e7a_31", M1 = "
|
|
|
4907
4929
|
tooltipArrow: P1,
|
|
4908
4930
|
sliderContainer: F1
|
|
4909
4931
|
}, z1 = ({ onChangeValue: n, volume: t, disabled: r }) => {
|
|
4910
|
-
const [a, o] = V(!1), i = Y(), l = Y(0), c = J((
|
|
4911
|
-
if (
|
|
4912
|
-
const E = 20 * Math.log10(
|
|
4932
|
+
const [a, o] = V(!1), i = Y(), l = Y(0), c = J((N) => {
|
|
4933
|
+
if (N < 1e-3) return -1 / 0;
|
|
4934
|
+
const E = 20 * Math.log10(N);
|
|
4913
4935
|
return E < -60 ? -60 : E;
|
|
4914
|
-
}, []), d = J((
|
|
4915
|
-
const
|
|
4916
|
-
return
|
|
4936
|
+
}, []), d = J((N) => N === -1 / 0 || N <= -60 ? 0 : Math.pow(10, N / 20), []), u = oe(() => {
|
|
4937
|
+
const N = c(t);
|
|
4938
|
+
return N === -1 / 0 ? -60 : Math.max(-60, Math.min(6, N));
|
|
4917
4939
|
}, [t, c]), g = oe(() => t < 1e-3, [t]), h = J(() => {
|
|
4918
4940
|
clearTimeout(i.current), o(!0);
|
|
4919
4941
|
}, []), A = J(() => {
|
|
@@ -4921,13 +4943,13 @@ const vB = cs, J1 = "_sliderRoot_19e7a_23", Q1 = "_sliderTrack_19e7a_31", M1 = "
|
|
|
4921
4943
|
o(!1);
|
|
4922
4944
|
}, 300);
|
|
4923
4945
|
}, []), m = J(
|
|
4924
|
-
(
|
|
4925
|
-
(
|
|
4946
|
+
(N) => {
|
|
4947
|
+
(N.key === "ArrowUp" || N.key === "ArrowDown") && h(), (N.key === "ArrowLeft" || N.key === "ArrowRight") && (N.preventDefault(), N.stopPropagation(), h());
|
|
4926
4948
|
},
|
|
4927
4949
|
[h]
|
|
4928
4950
|
), C = J(
|
|
4929
|
-
(
|
|
4930
|
-
n(
|
|
4951
|
+
(N) => {
|
|
4952
|
+
n(N.map(d));
|
|
4931
4953
|
},
|
|
4932
4954
|
[n, d]
|
|
4933
4955
|
), f = J(() => {
|
|
@@ -4937,8 +4959,8 @@ const vB = cs, J1 = "_sliderRoot_19e7a_23", Q1 = "_sliderTrack_19e7a_31", M1 = "
|
|
|
4937
4959
|
}, [A]), y = J(() => {
|
|
4938
4960
|
n([1]), h();
|
|
4939
4961
|
}, [n, h]), w = J(() => {
|
|
4940
|
-
const
|
|
4941
|
-
|
|
4962
|
+
const N = Date.now();
|
|
4963
|
+
N - l.current < 300 && y(), l.current = N;
|
|
4942
4964
|
}, [y]), b = oe(
|
|
4943
4965
|
() => /* @__PURE__ */ v(Ce, { children: [
|
|
4944
4966
|
g ? "-∞ dB" : `${u.toFixed(1)} dB`,
|
|
@@ -5146,24 +5168,24 @@ const Ha = Ze(function({
|
|
|
5146
5168
|
hover: c = !1,
|
|
5147
5169
|
resetPeakHold: d
|
|
5148
5170
|
}) {
|
|
5149
|
-
const [u, g] = t, h = Vs(io(u ?? 0)), A = Vs(io(g ?? 0)), [m, C] = V(!1), f = Y(!1), k = Y(null), y = Y(null), w = Y(null), b = Y(0),
|
|
5171
|
+
const [u, g] = t, h = Vs(io(u ?? 0)), A = Vs(io(g ?? 0)), [m, C] = V(!1), f = Y(!1), k = Y(null), y = Y(null), w = Y(null), b = Y(0), N = Y(null), [E, R] = V(0), [x, T] = V(!1);
|
|
5150
5172
|
ie(() => {
|
|
5151
|
-
b.current = 0,
|
|
5152
|
-
}, [d]), ie(() => () => clearTimeout(
|
|
5153
|
-
const
|
|
5173
|
+
b.current = 0, R(0);
|
|
5174
|
+
}, [d]), ie(() => () => clearTimeout(N.current), []);
|
|
5175
|
+
const O = Math.max(
|
|
5154
5176
|
0,
|
|
5155
5177
|
Math.min(100, $l(r) * 100)
|
|
5156
5178
|
), B = Gs(h), Q = Gs(A), D = Math.max(B, Q);
|
|
5157
5179
|
ie(() => {
|
|
5158
|
-
D > b.current && (b.current = D,
|
|
5180
|
+
D > b.current && (b.current = D, R(D), T(!0), clearTimeout(N.current), N.current = setTimeout(() => {
|
|
5159
5181
|
T(!1), requestAnimationFrame(() => {
|
|
5160
5182
|
requestAnimationFrame(() => {
|
|
5161
|
-
b.current = 0,
|
|
5183
|
+
b.current = 0, R(0);
|
|
5162
5184
|
});
|
|
5163
5185
|
});
|
|
5164
|
-
}, 400)), D <= 0 && (b.current = 0,
|
|
5186
|
+
}, 400)), D <= 0 && (b.current = 0, R(0));
|
|
5165
5187
|
}, [D]);
|
|
5166
|
-
const
|
|
5188
|
+
const M = sy(E), U = E > 0, P = J(
|
|
5167
5189
|
(X) => {
|
|
5168
5190
|
var ue;
|
|
5169
5191
|
if (!a) return;
|
|
@@ -5216,7 +5238,7 @@ const Ha = Ze(function({
|
|
|
5216
5238
|
ec,
|
|
5217
5239
|
{
|
|
5218
5240
|
ref: y,
|
|
5219
|
-
faderPercent:
|
|
5241
|
+
faderPercent: O,
|
|
5220
5242
|
isPressed: m,
|
|
5221
5243
|
hover: c,
|
|
5222
5244
|
volume: r,
|
|
@@ -5231,7 +5253,7 @@ const Ha = Ze(function({
|
|
|
5231
5253
|
className: `${Le.peakDotTop} ${x ? Le.peakRising : ""}`,
|
|
5232
5254
|
style: {
|
|
5233
5255
|
left: `min(calc(${E}% + 3px), calc(100% - 3px))`,
|
|
5234
|
-
background:
|
|
5256
|
+
background: M,
|
|
5235
5257
|
opacity: U ? 1 : 0
|
|
5236
5258
|
}
|
|
5237
5259
|
}
|
|
@@ -5242,7 +5264,7 @@ const Ha = Ze(function({
|
|
|
5242
5264
|
className: `${Le.peakDotBottom} ${x ? Le.peakRising : ""}`,
|
|
5243
5265
|
style: {
|
|
5244
5266
|
left: `min(calc(${E}% + 3px), calc(100% - 3px))`,
|
|
5245
|
-
background:
|
|
5267
|
+
background: M,
|
|
5246
5268
|
opacity: U ? 1 : 0
|
|
5247
5269
|
}
|
|
5248
5270
|
}
|
|
@@ -5288,7 +5310,7 @@ const ay = "_root_u545v_3", oy = "_header_u545v_10", iy = "_title_u545v_16", ly
|
|
|
5288
5310
|
className: A,
|
|
5289
5311
|
...m
|
|
5290
5312
|
}, C) {
|
|
5291
|
-
const f = l || c, k = g ?? (f ? i ? "disabled-checked" : "disabled" : i ? "checked" : "default"), y = k === "disabled-checked", w = u === "medium" || u === "large", b = w && a != null && a !== !1,
|
|
5313
|
+
const f = l || c, k = g ?? (f ? i ? "disabled-checked" : "disabled" : i ? "checked" : "default"), y = k === "disabled-checked", w = u === "medium" || u === "large", b = w && a != null && a !== !1, N = !w && a != null && a !== !1, E = l && d === "cyan" && w, R = () => o ? typeof o == "function" ? /* @__PURE__ */ s(o, { width: 16, height: 16, "aria-hidden": "true" }) : o : null;
|
|
5292
5314
|
return /* @__PURE__ */ v(
|
|
5293
5315
|
"button",
|
|
5294
5316
|
{
|
|
@@ -5307,7 +5329,7 @@ const ay = "_root_u545v_3", oy = "_header_u545v_10", iy = "_title_u545v_16", ly
|
|
|
5307
5329
|
children: [
|
|
5308
5330
|
w ? /* @__PURE__ */ v(Ce, { children: [
|
|
5309
5331
|
/* @__PURE__ */ v("span", { className: We.cardTop, children: [
|
|
5310
|
-
(o || y) && /* @__PURE__ */ s("span", { className: We.cardIcon, children:
|
|
5332
|
+
(o || y) && /* @__PURE__ */ s("span", { className: We.cardIcon, children: R() }),
|
|
5311
5333
|
b && /* @__PURE__ */ s("span", { className: We.cardBadge, children: a })
|
|
5312
5334
|
] }),
|
|
5313
5335
|
/* @__PURE__ */ v("span", { className: We.cardBottom, children: [
|
|
@@ -5317,10 +5339,10 @@ const ay = "_root_u545v_3", oy = "_header_u545v_10", iy = "_title_u545v_16", ly
|
|
|
5317
5339
|
] }) : /* @__PURE__ */ v(Ce, { children: [
|
|
5318
5340
|
(o || y) && /* @__PURE__ */ v("span", { className: We.cardIcon, children: [
|
|
5319
5341
|
" ",
|
|
5320
|
-
|
|
5342
|
+
R(),
|
|
5321
5343
|
" "
|
|
5322
5344
|
] }),
|
|
5323
|
-
|
|
5345
|
+
N && /* @__PURE__ */ s("span", { className: We.cardBadgeSmall, "data-accent-color": "green", children: a }),
|
|
5324
5346
|
r != null && /* @__PURE__ */ s("span", { className: We.cardText, children: r })
|
|
5325
5347
|
] }),
|
|
5326
5348
|
l && !E && /* @__PURE__ */ s(xs, { width: 12, height: 12, className: We.lockIcon, "aria-hidden": "true" })
|
|
@@ -5417,7 +5439,7 @@ const rc = wn(function({
|
|
|
5417
5439
|
className: m,
|
|
5418
5440
|
...C
|
|
5419
5441
|
}, f) {
|
|
5420
|
-
const k = o ?? i, y = Y(null), [w, b] = V(0),
|
|
5442
|
+
const k = o ?? i, y = Y(null), [w, b] = V(0), N = oe(() => ky(c), [c]), E = A === "fill" || h === "small", R = Mr[h] ?? Mr.small, x = nc(h), T = E && u === "horizontal" ? vy(w, N, R, x) : N;
|
|
5421
5443
|
aa(() => {
|
|
5422
5444
|
const B = y.current;
|
|
5423
5445
|
if (!B || !E || u !== "horizontal") return;
|
|
@@ -5425,10 +5447,10 @@ const rc = wn(function({
|
|
|
5425
5447
|
Q();
|
|
5426
5448
|
const D = new ResizeObserver(Q);
|
|
5427
5449
|
return D.observe(B), () => D.disconnect();
|
|
5428
|
-
}, [E, u,
|
|
5429
|
-
const
|
|
5430
|
-
() => by(u, h,
|
|
5431
|
-
[u, h,
|
|
5450
|
+
}, [E, u, N, h, a.length]);
|
|
5451
|
+
const O = oe(
|
|
5452
|
+
() => by(u, h, N, d, a.length, A, T),
|
|
5453
|
+
[u, h, N, d, a.length, A, T]
|
|
5432
5454
|
);
|
|
5433
5455
|
return /* @__PURE__ */ v("div", { ref: f, className: S(We.root, m), ...C, children: [
|
|
5434
5456
|
t && /* @__PURE__ */ v("div", { className: We.header, children: [
|
|
@@ -5442,17 +5464,17 @@ const rc = wn(function({
|
|
|
5442
5464
|
className: We.grid,
|
|
5443
5465
|
"data-orientation": u,
|
|
5444
5466
|
"data-fit": E ? "fill" : "fixed",
|
|
5445
|
-
style:
|
|
5467
|
+
style: O,
|
|
5446
5468
|
role: "group",
|
|
5447
5469
|
"aria-label": t,
|
|
5448
5470
|
children: a.map((B, Q) => {
|
|
5449
|
-
const D = B.text ?? B.label ?? B.name,
|
|
5471
|
+
const D = B.text ?? B.label ?? B.name, M = B.Icon ?? B.icon, U = B.locked ?? B.isLocked ?? !1, P = B.disabled ?? !1, K = E && u === "horizontal" ? yy(Q, a.length, T) : 1;
|
|
5450
5472
|
return /* @__PURE__ */ s(
|
|
5451
5473
|
tc,
|
|
5452
5474
|
{
|
|
5453
5475
|
value: B.value,
|
|
5454
5476
|
text: D,
|
|
5455
|
-
Icon:
|
|
5477
|
+
Icon: M,
|
|
5456
5478
|
badge: B.badge,
|
|
5457
5479
|
selected: Cy(k, B.value),
|
|
5458
5480
|
locked: U,
|
|
@@ -5639,11 +5661,11 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5639
5661
|
const A = J(
|
|
5640
5662
|
(b) => {
|
|
5641
5663
|
if (b.preventDefault(), b.stopPropagation(), r) return;
|
|
5642
|
-
const
|
|
5643
|
-
if (!
|
|
5664
|
+
const N = b.wheelDelta ?? -b.deltaY * 25;
|
|
5665
|
+
if (!N || Math.abs(N) <= 50) return;
|
|
5644
5666
|
const E = Date.now();
|
|
5645
5667
|
if (E - h.current < 100) return;
|
|
5646
|
-
const
|
|
5668
|
+
const R = N > 0 ? 1 : -1, x = Ao(n, a, R);
|
|
5647
5669
|
t(x), h.current = E;
|
|
5648
5670
|
},
|
|
5649
5671
|
[t, n, a, r]
|
|
@@ -5659,10 +5681,10 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5659
5681
|
), C = J(
|
|
5660
5682
|
(b) => {
|
|
5661
5683
|
if (!c || r) return;
|
|
5662
|
-
const
|
|
5663
|
-
if (Math.abs(
|
|
5664
|
-
const E =
|
|
5665
|
-
t(
|
|
5684
|
+
const N = u - b.clientY;
|
|
5685
|
+
if (Math.abs(N) <= 20) return;
|
|
5686
|
+
const E = N > 0 ? 1 : -1, R = Ao(n, a, E);
|
|
5687
|
+
t(R), g(b.clientY), h.current = Date.now();
|
|
5666
5688
|
},
|
|
5667
5689
|
[c, u, n, t, a, r]
|
|
5668
5690
|
), f = J(() => {
|
|
@@ -5677,8 +5699,8 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5677
5699
|
), w = J(
|
|
5678
5700
|
(b) => {
|
|
5679
5701
|
if (!i || r) return;
|
|
5680
|
-
const
|
|
5681
|
-
|
|
5702
|
+
const N = Qy(a, b);
|
|
5703
|
+
N && t(N);
|
|
5682
5704
|
},
|
|
5683
5705
|
[i, r, t, a]
|
|
5684
5706
|
);
|
|
@@ -5705,14 +5727,14 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5705
5727
|
tooltipCloseDelay: d
|
|
5706
5728
|
});
|
|
5707
5729
|
k.current = { tooltipDelayDuration: c, tooltipCloseDelay: d };
|
|
5708
|
-
const y = Array.isArray(i) && i.length > 0, w = oe(() => (i == null ? void 0 : i.find((F) => F.default)) || (i == null ? void 0 : i[0]) || { position: 0, color: "neutral", default: !0 }, [i]), { containerRef: b, isDragging:
|
|
5730
|
+
const y = Array.isArray(i) && i.length > 0, w = oe(() => (i == null ? void 0 : i.find((F) => F.default)) || (i == null ? void 0 : i[0]) || { position: 0, color: "neutral", default: !0 }, [i]), { containerRef: b, isDragging: N, handleClick: E, handleDotClick: R } = Oy({
|
|
5709
5731
|
value: t,
|
|
5710
5732
|
onChange: r,
|
|
5711
5733
|
disabled: a,
|
|
5712
5734
|
dots: i || [],
|
|
5713
5735
|
defaultDot: w,
|
|
5714
5736
|
clickableDots: o
|
|
5715
|
-
}), x = oe(() => typeof t == "object" && t !== null ? t.position : My(t, i), [t, i]), T = oe(() => typeof t == "object" && t !== null ? t : (i == null ? void 0 : i.find((F) => F.position === x)) ?? null, [t, i, x]), { pointerRotation:
|
|
5737
|
+
}), x = oe(() => typeof t == "object" && t !== null ? t.position : My(t, i), [t, i]), T = oe(() => typeof t == "object" && t !== null ? t : (i == null ? void 0 : i.find((F) => F.position === x)) ?? null, [t, i, x]), { pointerRotation: O, pointerColor: B } = oe(() => Uy(x, a), [x, a]);
|
|
5716
5738
|
if (ie(() => () => {
|
|
5717
5739
|
C.current != null && clearTimeout(C.current), f.current != null && clearTimeout(f.current);
|
|
5718
5740
|
}, []), !y)
|
|
@@ -5721,7 +5743,7 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5721
5743
|
C.current != null && (clearTimeout(C.current), C.current = null);
|
|
5722
5744
|
}, D = () => {
|
|
5723
5745
|
f.current != null && (clearTimeout(f.current), f.current = null);
|
|
5724
|
-
},
|
|
5746
|
+
}, M = () => {
|
|
5725
5747
|
if (a) return;
|
|
5726
5748
|
D(), Q();
|
|
5727
5749
|
const { tooltipDelayDuration: F } = k.current;
|
|
@@ -5745,15 +5767,15 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5745
5767
|
}, P = (F) => {
|
|
5746
5768
|
const X = po[F.color] || po.neutral, pe = F.position === x, ue = g === F.position && o;
|
|
5747
5769
|
return a ? X.default : pe ? X.active : ue ? X.hover : X.default;
|
|
5748
|
-
}, K = u ? u(T ?? t) : (T == null ? void 0 : T.label) ?? (T == null ? void 0 : T.value) ?? x, $ = !a && (A ||
|
|
5770
|
+
}, K = u ? u(T ?? t) : (T == null ? void 0 : T.label) ?? (T == null ? void 0 : T.value) ?? x, $ = !a && (A || N), L = /* @__PURE__ */ s(
|
|
5749
5771
|
"div",
|
|
5750
5772
|
{
|
|
5751
5773
|
className: S(
|
|
5752
5774
|
pr.pan,
|
|
5753
|
-
|
|
5775
|
+
N && pr.active,
|
|
5754
5776
|
a && pr.disabled
|
|
5755
5777
|
),
|
|
5756
|
-
onPointerEnter:
|
|
5778
|
+
onPointerEnter: M,
|
|
5757
5779
|
onPointerLeave: U,
|
|
5758
5780
|
children: /* @__PURE__ */ v("svg", { width: 39, height: 39, viewBox: "0 0 39 39", fill: "none", children: [
|
|
5759
5781
|
/* @__PURE__ */ s("circle", { cx: Ir, cy: Sr, r: ho }),
|
|
@@ -5770,7 +5792,7 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5770
5792
|
/* @__PURE__ */ s(
|
|
5771
5793
|
"g",
|
|
5772
5794
|
{
|
|
5773
|
-
transform: `rotate(${
|
|
5795
|
+
transform: `rotate(${O} ${Ir} ${Sr})`,
|
|
5774
5796
|
children: /* @__PURE__ */ s(
|
|
5775
5797
|
"path",
|
|
5776
5798
|
{
|
|
@@ -5800,7 +5822,7 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5800
5822
|
onMouseEnter: () => h(F.position),
|
|
5801
5823
|
onMouseLeave: () => h(null),
|
|
5802
5824
|
onClick: (me) => {
|
|
5803
|
-
me.stopPropagation(),
|
|
5825
|
+
me.stopPropagation(), R(F.position);
|
|
5804
5826
|
}
|
|
5805
5827
|
}
|
|
5806
5828
|
),
|
|
@@ -5823,7 +5845,7 @@ const Ir = 19.5, Sr = 19.5, ho = 14, go = 18, Jy = [
|
|
|
5823
5845
|
ue && h(null);
|
|
5824
5846
|
},
|
|
5825
5847
|
onClick: (me) => {
|
|
5826
|
-
ue && (me.stopPropagation(),
|
|
5848
|
+
ue && (me.stopPropagation(), R(F.position));
|
|
5827
5849
|
}
|
|
5828
5850
|
}
|
|
5829
5851
|
)
|
|
@@ -6098,13 +6120,13 @@ const yk = "_listCardsItem_1exuc_1", kk = "_listCardsItemDescriptionWrappable_1e
|
|
|
6098
6120
|
style: A,
|
|
6099
6121
|
...m
|
|
6100
6122
|
}) => {
|
|
6101
|
-
const C = (i == null ? void 0 : i.id) || o, f = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || a, y = (i == null ? void 0 : i.image) || t, w = (i == null ? void 0 : i.icon) || c, b = y && (y != null && y.startsWith("url(")) ? y == null ? void 0 : y.substring(4, (y == null ? void 0 : y.length) - 1).replace(/"/g, "") : y,
|
|
6123
|
+
const C = (i == null ? void 0 : i.id) || o, f = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || a, y = (i == null ? void 0 : i.image) || t, w = (i == null ? void 0 : i.icon) || c, b = y && (y != null && y.startsWith("url(")) ? y == null ? void 0 : y.substring(4, (y == null ? void 0 : y.length) - 1).replace(/"/g, "") : y, N = (T) => {
|
|
6102
6124
|
T.stopPropagation(), T.preventDefault(), g == null || g();
|
|
6103
6125
|
}, E = {
|
|
6104
6126
|
1: { avatar: 60, icon: 15 },
|
|
6105
6127
|
2: { avatar: 68, icon: 15 },
|
|
6106
6128
|
3: { avatar: 80, icon: 15 }
|
|
6107
|
-
},
|
|
6129
|
+
}, R = typeof h == "string" ? parseInt(h, 10) : h, x = E[R] || E[1];
|
|
6108
6130
|
return /* @__PURE__ */ s(
|
|
6109
6131
|
nr,
|
|
6110
6132
|
{
|
|
@@ -6116,7 +6138,7 @@ const yk = "_listCardsItem_1exuc_1", kk = "_listCardsItemDescriptionWrappable_1e
|
|
|
6116
6138
|
),
|
|
6117
6139
|
style: { "--color-surface": "transparent", ...A },
|
|
6118
6140
|
"data-state": u ? "checked" : "unchecked",
|
|
6119
|
-
onClick:
|
|
6141
|
+
onClick: N,
|
|
6120
6142
|
...m,
|
|
6121
6143
|
children: /* @__PURE__ */ v(I, { gap: "2", children: [
|
|
6122
6144
|
/* @__PURE__ */ s(I, { width: `${x.avatar}px`, height: `${x.avatar}px`, children: l ? /* @__PURE__ */ s(
|
|
@@ -6194,7 +6216,7 @@ const yk = "_listCardsItem_1exuc_1", kk = "_listCardsItemDescriptionWrappable_1e
|
|
|
6194
6216
|
style: y,
|
|
6195
6217
|
...w
|
|
6196
6218
|
}) => {
|
|
6197
|
-
const b = (i == null ? void 0 : i.id) || o,
|
|
6219
|
+
const b = (i == null ? void 0 : i.id) || o, N = (i == null ? void 0 : i.name) || r, E = (i == null ? void 0 : i.avatar) || t, R = (i == null ? void 0 : i.description) || a, x = E && (E != null && E.startsWith("url(")) ? E == null ? void 0 : E.substring(4, (E == null ? void 0 : E.length) - 1).replace(/"/g, "") : E;
|
|
6198
6220
|
return /* @__PURE__ */ v(
|
|
6199
6221
|
"div",
|
|
6200
6222
|
{
|
|
@@ -6243,7 +6265,7 @@ const yk = "_listCardsItem_1exuc_1", kk = "_listCardsItemDescriptionWrappable_1e
|
|
|
6243
6265
|
justify: "center",
|
|
6244
6266
|
style: { flex: 1, minWidth: 0 },
|
|
6245
6267
|
children: [
|
|
6246
|
-
/* @__PURE__ */ s(j, { as: "div", size: "2", className: he.listCardsItemText, children:
|
|
6268
|
+
/* @__PURE__ */ s(j, { as: "div", size: "2", className: he.listCardsItemText, children: N }),
|
|
6247
6269
|
k ? /* @__PURE__ */ s(
|
|
6248
6270
|
I,
|
|
6249
6271
|
{
|
|
@@ -6265,7 +6287,7 @@ const yk = "_listCardsItem_1exuc_1", kk = "_listCardsItemDescriptionWrappable_1e
|
|
|
6265
6287
|
as: "div",
|
|
6266
6288
|
size: "1",
|
|
6267
6289
|
className: he.listCardsItemDescriptionWrappable,
|
|
6268
|
-
children:
|
|
6290
|
+
children: R
|
|
6269
6291
|
}
|
|
6270
6292
|
)
|
|
6271
6293
|
]
|
|
@@ -6638,15 +6660,15 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6638
6660
|
tooltipDelayDuration: d = 0,
|
|
6639
6661
|
tooltipCloseDelay: u = 500
|
|
6640
6662
|
}) => {
|
|
6641
|
-
const g = Y(null), h = Y(null), [A, m] = V(!1), C = Y(null), f = Y(0), k = Y(null), y = Y(t), w = Y(0), b = Y(null),
|
|
6663
|
+
const g = Y(null), h = Y(null), [A, m] = V(!1), C = Y(null), f = Y(0), k = Y(null), y = Y(t), w = Y(0), b = Y(null), N = Y(null), E = Y({
|
|
6642
6664
|
tooltipDelayDuration: d,
|
|
6643
6665
|
tooltipCloseDelay: u
|
|
6644
6666
|
});
|
|
6645
6667
|
E.current = { tooltipDelayDuration: d, tooltipCloseDelay: u };
|
|
6646
|
-
const [
|
|
6668
|
+
const [R, x] = V(!1), [T, O] = V(!1), B = J(() => {
|
|
6647
6669
|
b.current != null && (clearTimeout(b.current), b.current = null);
|
|
6648
6670
|
}, []), Q = J(() => {
|
|
6649
|
-
|
|
6671
|
+
N.current != null && (clearTimeout(N.current), N.current = null);
|
|
6650
6672
|
}, []), D = J(() => {
|
|
6651
6673
|
var de;
|
|
6652
6674
|
const W = k.current, H = h.current;
|
|
@@ -6658,9 +6680,9 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6658
6680
|
k.current = null, m(!1);
|
|
6659
6681
|
}, []);
|
|
6660
6682
|
ie(() => {
|
|
6661
|
-
a && (D(), B(), Q(),
|
|
6683
|
+
a && (D(), B(), Q(), O(!1), x(!1));
|
|
6662
6684
|
}, [a, D, B, Q]), ie(() => () => {
|
|
6663
|
-
b.current != null && clearTimeout(b.current),
|
|
6685
|
+
b.current != null && clearTimeout(b.current), N.current != null && clearTimeout(N.current);
|
|
6664
6686
|
}, []), ie(() => {
|
|
6665
6687
|
if (!A) return;
|
|
6666
6688
|
const W = document.createElement("style");
|
|
@@ -6680,7 +6702,7 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6680
6702
|
window.removeEventListener("pointerup", H), window.removeEventListener("pointercancel", H), window.removeEventListener("blur", de), window.removeEventListener("contextmenu", de), window.removeEventListener("keydown", ye), document.removeEventListener("visibilitychange", Qe);
|
|
6681
6703
|
};
|
|
6682
6704
|
}, [A, D]);
|
|
6683
|
-
const
|
|
6705
|
+
const M = J(
|
|
6684
6706
|
(W) => {
|
|
6685
6707
|
y.current = mr(W), !w.current && (w.current = requestAnimationFrame(() => {
|
|
6686
6708
|
w.current = 0, r(y.current);
|
|
@@ -6693,9 +6715,9 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6693
6715
|
const H = W.wheelDelta ?? -W.deltaY * 25;
|
|
6694
6716
|
if (!H) return;
|
|
6695
6717
|
const de = t + (H > 0 ? Er : -Er);
|
|
6696
|
-
|
|
6718
|
+
M(de);
|
|
6697
6719
|
},
|
|
6698
|
-
[t,
|
|
6720
|
+
[t, M]
|
|
6699
6721
|
);
|
|
6700
6722
|
yn("wheel", U, g);
|
|
6701
6723
|
const P = J(
|
|
@@ -6712,9 +6734,9 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6712
6734
|
if (!A || k.current != null && W.pointerId !== k.current)
|
|
6713
6735
|
return;
|
|
6714
6736
|
const H = f.current - W.clientY, de = t + H * Er;
|
|
6715
|
-
|
|
6737
|
+
M(de), f.current = W.clientY;
|
|
6716
6738
|
},
|
|
6717
|
-
[A, t,
|
|
6739
|
+
[A, t, M]
|
|
6718
6740
|
), $ = J(
|
|
6719
6741
|
(W) => {
|
|
6720
6742
|
k.current != null && W.pointerId !== k.current || D();
|
|
@@ -6727,9 +6749,9 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6727
6749
|
[D]
|
|
6728
6750
|
), F = J(
|
|
6729
6751
|
(W) => {
|
|
6730
|
-
W.detail === 2 &&
|
|
6752
|
+
W.detail === 2 && M(0);
|
|
6731
6753
|
},
|
|
6732
|
-
[
|
|
6754
|
+
[M]
|
|
6733
6755
|
), X = J(
|
|
6734
6756
|
(W) => {
|
|
6735
6757
|
if (a) return;
|
|
@@ -6737,21 +6759,21 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6737
6759
|
switch (W.key) {
|
|
6738
6760
|
case "ArrowUp":
|
|
6739
6761
|
case "ArrowRight":
|
|
6740
|
-
W.preventDefault(), H = t + fo,
|
|
6762
|
+
W.preventDefault(), H = t + fo, M(H);
|
|
6741
6763
|
break;
|
|
6742
6764
|
case "ArrowDown":
|
|
6743
6765
|
case "ArrowLeft":
|
|
6744
|
-
W.preventDefault(), H = t - fo,
|
|
6766
|
+
W.preventDefault(), H = t - fo, M(H);
|
|
6745
6767
|
break;
|
|
6746
6768
|
case "Home":
|
|
6747
|
-
W.preventDefault(),
|
|
6769
|
+
W.preventDefault(), M(-1);
|
|
6748
6770
|
break;
|
|
6749
6771
|
case "End":
|
|
6750
|
-
W.preventDefault(),
|
|
6772
|
+
W.preventDefault(), M(1);
|
|
6751
6773
|
break;
|
|
6752
6774
|
}
|
|
6753
6775
|
},
|
|
6754
|
-
[a, t,
|
|
6776
|
+
[a, t, M]
|
|
6755
6777
|
), { arcPath: pe, pointerRotation: ue, arcColor: me, pointerColor: G } = oe(() => {
|
|
6756
6778
|
const W = fs(t, o, i), H = mr(W), de = ms + H * Math.PI, ye = Un + qt * Math.cos(ms), Qe = On + qt * Math.sin(ms), le = Un + qt * Math.cos(de), Me = On + qt * Math.sin(de), vt = 0, Z = H > 0 ? 1 : 0;
|
|
6757
6779
|
return {
|
|
@@ -6773,24 +6795,24 @@ const mb = "_content_15iux_1", fb = "_pan_15iux_13", Cb = "_disabled_15iux_26",
|
|
|
6773
6795
|
Q(), B();
|
|
6774
6796
|
const { tooltipDelayDuration: W } = E.current;
|
|
6775
6797
|
if (W <= 0) {
|
|
6776
|
-
|
|
6798
|
+
O(!0);
|
|
6777
6799
|
return;
|
|
6778
6800
|
}
|
|
6779
6801
|
b.current = setTimeout(() => {
|
|
6780
|
-
b.current = null,
|
|
6802
|
+
b.current = null, O(!0);
|
|
6781
6803
|
}, W);
|
|
6782
6804
|
}, ne = () => {
|
|
6783
6805
|
if (A) return;
|
|
6784
6806
|
B();
|
|
6785
6807
|
const { tooltipCloseDelay: W } = E.current;
|
|
6786
6808
|
if (W <= 0) {
|
|
6787
|
-
|
|
6809
|
+
O(!1);
|
|
6788
6810
|
return;
|
|
6789
6811
|
}
|
|
6790
|
-
|
|
6791
|
-
|
|
6812
|
+
N.current = setTimeout(() => {
|
|
6813
|
+
N.current = null, O(!1);
|
|
6792
6814
|
}, W);
|
|
6793
|
-
}, fe = !a && (A ||
|
|
6815
|
+
}, fe = !a && (A || R || T), ce = /* @__PURE__ */ s(
|
|
6794
6816
|
"div",
|
|
6795
6817
|
{
|
|
6796
6818
|
ref: h,
|
|
@@ -7317,27 +7339,27 @@ class Wb extends sr {
|
|
|
7317
7339
|
if (A.button !== i || d.has(A.pointerId) || (d.set(A.pointerId, A), d.size > 1)) return;
|
|
7318
7340
|
const m = A.pointerId;
|
|
7319
7341
|
let C = A.clientX, f = A.clientY, k = !1;
|
|
7320
|
-
const y = Date.now(), w = r.getBoundingClientRect(), { left: b, top:
|
|
7342
|
+
const y = Date.now(), w = r.getBoundingClientRect(), { left: b, top: N } = w, E = (B) => {
|
|
7321
7343
|
if (B.pointerId !== m || B.defaultPrevented || d.size > 1 || u && Date.now() - y < l) return;
|
|
7322
|
-
const Q = B.clientX, D = B.clientY,
|
|
7323
|
-
(k || Math.abs(
|
|
7324
|
-
},
|
|
7344
|
+
const Q = B.clientX, D = B.clientY, M = Q - C, U = D - f;
|
|
7345
|
+
(k || Math.abs(M) > o || Math.abs(U) > o) && (B.preventDefault(), B.stopPropagation(), k || (c.set({ type: "start", x: C - b, y: f - N }), k = !0), c.set({ type: "move", x: Q - b, y: D - N, deltaX: M, deltaY: U }), C = Q, f = D);
|
|
7346
|
+
}, R = (B) => {
|
|
7325
7347
|
if (d.delete(B.pointerId)) {
|
|
7326
7348
|
if (B.pointerId === m && k) {
|
|
7327
7349
|
const Q = B.clientX, D = B.clientY;
|
|
7328
|
-
c.set({ type: "end", x: Q - b, y: D -
|
|
7350
|
+
c.set({ type: "end", x: Q - b, y: D - N });
|
|
7329
7351
|
}
|
|
7330
7352
|
d.size === 0 && g();
|
|
7331
7353
|
}
|
|
7332
7354
|
}, x = (B) => {
|
|
7333
|
-
B.relatedTarget && B.relatedTarget !== document.documentElement ||
|
|
7355
|
+
B.relatedTarget && B.relatedTarget !== document.documentElement || R(B);
|
|
7334
7356
|
}, T = (B) => {
|
|
7335
7357
|
k && (B.stopPropagation(), B.preventDefault());
|
|
7336
|
-
},
|
|
7358
|
+
}, O = (B) => {
|
|
7337
7359
|
B.defaultPrevented || d.size > 1 || k && B.preventDefault();
|
|
7338
7360
|
};
|
|
7339
|
-
document.addEventListener("pointermove", E), document.addEventListener("pointerup",
|
|
7340
|
-
document.removeEventListener("pointermove", E), document.removeEventListener("pointerup",
|
|
7361
|
+
document.addEventListener("pointermove", E), document.addEventListener("pointerup", R), document.addEventListener("pointerout", x), document.addEventListener("pointercancel", x), document.addEventListener("touchmove", O, { passive: !1 }), document.addEventListener("click", T, { capture: !0 }), g = () => {
|
|
7362
|
+
document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", R), document.removeEventListener("pointerout", x), document.removeEventListener("pointercancel", x), document.removeEventListener("touchmove", O), setTimeout(() => {
|
|
7341
7363
|
document.removeEventListener("click", T, { capture: !0 });
|
|
7342
7364
|
}, 10);
|
|
7343
7365
|
};
|
|
@@ -7508,19 +7530,19 @@ class Wb extends sr {
|
|
|
7508
7530
|
}
|
|
7509
7531
|
renderBarWaveform(t, r, a, o) {
|
|
7510
7532
|
const { width: i, height: l } = a.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: g, barSpacing: h, barMinHeight: A } = function({ width: C, height: f, length: k, options: y, pixelRatio: w }) {
|
|
7511
|
-
const b = f / 2,
|
|
7512
|
-
return { halfHeight: b, barWidth:
|
|
7513
|
-
}({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), m = function({ channelData: C, barIndexScale: f, barSpacing: k, barWidth: y, halfHeight: w, vScale: b, canvasHeight:
|
|
7514
|
-
const x = C[0] || [], T = C[1] || x,
|
|
7515
|
-
let Q = 0, D = 0,
|
|
7516
|
-
for (let U = 0; U <=
|
|
7533
|
+
const b = f / 2, N = y.barWidth ? y.barWidth * w : 1, E = y.barGap ? y.barGap * w : y.barWidth ? N / 2 : 0, R = N + E || 1;
|
|
7534
|
+
return { halfHeight: b, barWidth: N, barGap: E, barRadius: y.barRadius || 0, barMinHeight: y.barMinHeight ? y.barMinHeight * w : 0, barIndexScale: k > 0 ? C / R / k : 0, barSpacing: R };
|
|
7535
|
+
}({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), m = function({ channelData: C, barIndexScale: f, barSpacing: k, barWidth: y, halfHeight: w, vScale: b, canvasHeight: N, barAlign: E, barMinHeight: R }) {
|
|
7536
|
+
const x = C[0] || [], T = C[1] || x, O = x.length, B = [];
|
|
7537
|
+
let Q = 0, D = 0, M = 0;
|
|
7538
|
+
for (let U = 0; U <= O; U++) {
|
|
7517
7539
|
const P = Math.round(U * f);
|
|
7518
7540
|
if (P > Q) {
|
|
7519
|
-
const { topHeight: L, totalHeight: F } = Pb({ maxTop: D, maxBottom:
|
|
7520
|
-
B.push({ x: Q * k, y: X, width: y, height: F }), Q = P, D = 0,
|
|
7541
|
+
const { topHeight: L, totalHeight: F } = Pb({ maxTop: D, maxBottom: M, halfHeight: w, vScale: b, barMinHeight: R, barAlign: E }), X = Fb({ barAlign: E, halfHeight: w, topHeight: L, totalHeight: F, canvasHeight: N });
|
|
7542
|
+
B.push({ x: Q * k, y: X, width: y, height: F }), Q = P, D = 0, M = 0;
|
|
7521
7543
|
}
|
|
7522
7544
|
const K = Math.abs(x[U] || 0), $ = Math.abs(T[U] || 0);
|
|
7523
|
-
K > D && (D = K), $ >
|
|
7545
|
+
K > D && (D = K), $ > M && (M = $);
|
|
7524
7546
|
}
|
|
7525
7547
|
return B;
|
|
7526
7548
|
}({ channelData: t, barIndexScale: g, barSpacing: h, barWidth: d, halfHeight: c, vScale: o, canvasHeight: l, barAlign: r.barAlign, barMinHeight: A });
|
|
@@ -7532,18 +7554,18 @@ class Wb extends sr {
|
|
|
7532
7554
|
const { width: i, height: l } = a.canvas, c = function({ channelData: d, width: u, height: g, vScale: h }) {
|
|
7533
7555
|
const A = g / 2, m = d[0] || [];
|
|
7534
7556
|
return [m, d[1] || m].map((C, f) => {
|
|
7535
|
-
const k = C.length, y = k ? u / k : 0, w = A, b = f === 0 ? -1 : 1,
|
|
7536
|
-
let E = 0,
|
|
7557
|
+
const k = C.length, y = k ? u / k : 0, w = A, b = f === 0 ? -1 : 1, N = [{ x: 0, y: w }];
|
|
7558
|
+
let E = 0, R = 0;
|
|
7537
7559
|
for (let x = 0; x <= k; x++) {
|
|
7538
7560
|
const T = Math.round(x * y);
|
|
7539
7561
|
if (T > E) {
|
|
7540
|
-
const B = w + (Math.round(
|
|
7541
|
-
|
|
7562
|
+
const B = w + (Math.round(R * A * h) || 1) * b;
|
|
7563
|
+
N.push({ x: E, y: B }), E = T, R = 0;
|
|
7542
7564
|
}
|
|
7543
|
-
const
|
|
7544
|
-
|
|
7565
|
+
const O = Math.abs(C[x] || 0);
|
|
7566
|
+
O > R && (R = O);
|
|
7545
7567
|
}
|
|
7546
|
-
return
|
|
7568
|
+
return N.push({ x: E, y: w }), N;
|
|
7547
7569
|
});
|
|
7548
7570
|
}({ channelData: t, width: i, height: l, vScale: o });
|
|
7549
7571
|
a.beginPath();
|
|
@@ -7594,10 +7616,10 @@ class Wb extends sr {
|
|
|
7594
7616
|
const f = C * g;
|
|
7595
7617
|
let k = Math.min(u - f, g);
|
|
7596
7618
|
if (k = ko(k, r), k <= 0) return;
|
|
7597
|
-
const y = function({ channelData: w, offset: b, clampedWidth:
|
|
7598
|
-
return w.map((
|
|
7599
|
-
const x = Math.floor(b / E *
|
|
7600
|
-
return
|
|
7619
|
+
const y = function({ channelData: w, offset: b, clampedWidth: N, totalWidth: E }) {
|
|
7620
|
+
return w.map((R) => {
|
|
7621
|
+
const x = Math.floor(b / E * R.length), T = Math.floor((b + N) / E * R.length);
|
|
7622
|
+
return R.slice(x, T);
|
|
7601
7623
|
});
|
|
7602
7624
|
}({ channelData: t, offset: f, clampedWidth: k, totalWidth: u });
|
|
7603
7625
|
this.renderSingleCanvas(y, r, k, o, f, i, l);
|
|
@@ -7886,8 +7908,8 @@ class $n extends Ob {
|
|
|
7886
7908
|
super({ media: r, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this._isDestroyed = !1, this._loadVersion = 0, this.options = Object.assign({}, Hb, t);
|
|
7887
7909
|
const { state: a, actions: o } = function(c) {
|
|
7888
7910
|
var d, u, g, h, A, m;
|
|
7889
|
-
const C = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (g = c == null ? void 0 : c.isPlaying) !== null && g !== void 0 ? g : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), w = (A = c == null ? void 0 : c.volume) !== null && A !== void 0 ? A : Re(1), b = (m = c == null ? void 0 : c.playbackRate) !== null && m !== void 0 ? m : Re(1),
|
|
7890
|
-
return { state: { currentTime: C, duration: f, isPlaying: k, isPaused:
|
|
7911
|
+
const C = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (g = c == null ? void 0 : c.isPlaying) !== null && g !== void 0 ? g : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), w = (A = c == null ? void 0 : c.volume) !== null && A !== void 0 ? A : Re(1), b = (m = c == null ? void 0 : c.playbackRate) !== null && m !== void 0 ? m : Re(1), N = Re(null), E = Re(null), R = Re(""), x = Re(0), T = Re(0), O = Zt(() => !k.value, [k]), B = Zt(() => N.value !== null, [N]), Q = Zt(() => B.value && f.value > 0, [B, f]), D = Zt(() => C.value, [C]), M = Zt(() => f.value > 0 ? C.value / f.value : 0, [C, f]);
|
|
7912
|
+
return { state: { currentTime: C, duration: f, isPlaying: k, isPaused: O, isSeeking: y, volume: w, playbackRate: b, audioBuffer: N, peaks: E, url: R, zoom: x, scrollPosition: T, canPlay: B, isReady: Q, progress: D, progressPercent: M }, actions: { setCurrentTime: (U) => {
|
|
7891
7913
|
const P = Math.max(0, Math.min(f.value || 1 / 0, U));
|
|
7892
7914
|
C.set(P);
|
|
7893
7915
|
}, setDuration: (U) => {
|
|
@@ -7903,11 +7925,11 @@ class $n extends Ob {
|
|
|
7903
7925
|
const P = Math.max(0.1, Math.min(16, U));
|
|
7904
7926
|
b.set(P);
|
|
7905
7927
|
}, setAudioBuffer: (U) => {
|
|
7906
|
-
|
|
7928
|
+
N.set(U), U && f.set(U.duration);
|
|
7907
7929
|
}, setPeaks: (U) => {
|
|
7908
7930
|
E.set(U);
|
|
7909
7931
|
}, setUrl: (U) => {
|
|
7910
|
-
|
|
7932
|
+
R.set(U);
|
|
7911
7933
|
}, setZoom: (U) => {
|
|
7912
7934
|
x.set(Math.max(0, U));
|
|
7913
7935
|
}, setScrollPosition: (U) => {
|
|
@@ -8274,19 +8296,19 @@ const gc = Ze((n) => {
|
|
|
8274
8296
|
id: m,
|
|
8275
8297
|
tabIndex: C
|
|
8276
8298
|
}, f) {
|
|
8277
|
-
const [k, y] = V(!1), [w, b] = V(!1), [
|
|
8299
|
+
const [k, y] = V(!1), [w, b] = V(!1), [N, E] = V(!1), R = Y(null), x = Y(!1), T = Y(null), O = Y(null), B = a || !w;
|
|
8278
8300
|
ie(() => {
|
|
8279
8301
|
typeof navigator < "u" && E(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
8280
8302
|
}, []);
|
|
8281
8303
|
const Q = J(() => {
|
|
8282
8304
|
var G;
|
|
8283
|
-
(G =
|
|
8305
|
+
(G = R.current) == null || G.pause();
|
|
8284
8306
|
}, []), D = J(
|
|
8285
8307
|
(G) => {
|
|
8286
8308
|
h && (G == null || G.setOptions({ progressColor: u }));
|
|
8287
8309
|
},
|
|
8288
8310
|
[h, u]
|
|
8289
|
-
),
|
|
8311
|
+
), M = J(
|
|
8290
8312
|
(G, { seekTime: ee, syncTime: z = !1, skipPauseFor: q = null } = {}) => {
|
|
8291
8313
|
var de, ye, Qe, le, Me;
|
|
8292
8314
|
const ne = (de = o == null ? void 0 : o.state) == null ? void 0 : de.active;
|
|
@@ -8307,22 +8329,22 @@ const gc = Ze((n) => {
|
|
|
8307
8329
|
},
|
|
8308
8330
|
[D, o]
|
|
8309
8331
|
), U = J(() => {
|
|
8310
|
-
const G =
|
|
8311
|
-
G && (
|
|
8312
|
-
}, [
|
|
8332
|
+
const G = R.current;
|
|
8333
|
+
G && (N || G.setOptions({ progressColor: g }), G.play());
|
|
8334
|
+
}, [N, g]), P = J(() => {
|
|
8313
8335
|
var q;
|
|
8314
|
-
const G =
|
|
8336
|
+
const G = R.current;
|
|
8315
8337
|
if (B || !G) return;
|
|
8316
8338
|
const ee = (q = o == null ? void 0 : o.state) == null ? void 0 : q.active;
|
|
8317
8339
|
if (ee && ee !== G) {
|
|
8318
|
-
const ne =
|
|
8340
|
+
const ne = M(G, {
|
|
8319
8341
|
syncTime: !0
|
|
8320
8342
|
});
|
|
8321
|
-
|
|
8343
|
+
O.current = ne.previousActive;
|
|
8322
8344
|
} else
|
|
8323
|
-
|
|
8345
|
+
O.current = null;
|
|
8324
8346
|
U();
|
|
8325
|
-
}, [B, U,
|
|
8347
|
+
}, [B, U, M, o]);
|
|
8326
8348
|
Jd(
|
|
8327
8349
|
f,
|
|
8328
8350
|
() => ({
|
|
@@ -8331,32 +8353,32 @@ const gc = Ze((n) => {
|
|
|
8331
8353
|
isReady: () => w,
|
|
8332
8354
|
isPlaying: () => {
|
|
8333
8355
|
var G;
|
|
8334
|
-
return !!((G =
|
|
8356
|
+
return !!((G = R.current) != null && G.isPlaying());
|
|
8335
8357
|
}
|
|
8336
8358
|
}),
|
|
8337
8359
|
[P, Q, w]
|
|
8338
8360
|
), ie(() => {
|
|
8339
|
-
|
|
8361
|
+
R.current && t && (R.current.load(t), b(!1));
|
|
8340
8362
|
}, [t]);
|
|
8341
8363
|
const K = J((G) => {
|
|
8342
|
-
|
|
8364
|
+
R.current = G, b(!0), y(!1);
|
|
8343
8365
|
}, []), $ = J(
|
|
8344
8366
|
(G) => {
|
|
8345
|
-
const ee = x.current, z =
|
|
8346
|
-
y(!0), l == null || l(!0), ee || i == null || i(), o && (
|
|
8367
|
+
const ee = x.current, z = O.current, q = T.current;
|
|
8368
|
+
y(!0), l == null || l(!0), ee || i == null || i(), o && (M(G, {
|
|
8347
8369
|
seekTime: ee ? q : void 0,
|
|
8348
8370
|
syncTime: !ee && !z,
|
|
8349
8371
|
skipPauseFor: z
|
|
8350
|
-
}), x.current = !1, T.current = null,
|
|
8372
|
+
}), x.current = !1, T.current = null, O.current = null, o.setter((ne) => ({
|
|
8351
8373
|
...ne,
|
|
8352
8374
|
isPlaying: !0,
|
|
8353
8375
|
lastPlayed: G,
|
|
8354
8376
|
active: G
|
|
8355
8377
|
})));
|
|
8356
8378
|
},
|
|
8357
|
-
[
|
|
8379
|
+
[M, l, i, o]
|
|
8358
8380
|
), L = J(() => {
|
|
8359
|
-
y(!1), l == null || l(!1), o && (o.state.active !==
|
|
8381
|
+
y(!1), l == null || l(!1), o && (o.state.active !== R.current && D(R.current), o.setter((G) => G.active !== R.current ? G : {
|
|
8360
8382
|
...G,
|
|
8361
8383
|
isPlaying: !1
|
|
8362
8384
|
}));
|
|
@@ -8387,10 +8409,10 @@ const gc = Ze((n) => {
|
|
|
8387
8409
|
}));
|
|
8388
8410
|
return;
|
|
8389
8411
|
}
|
|
8390
|
-
const ne = typeof ee == "number" ? ee : ((ce = G.getCurrentTime) == null ? void 0 : ce.call(G)) ?? 0, fe =
|
|
8412
|
+
const ne = typeof ee == "number" ? ee : ((ce = G.getCurrentTime) == null ? void 0 : ce.call(G)) ?? 0, fe = M(G, {
|
|
8391
8413
|
seekTime: ne
|
|
8392
8414
|
});
|
|
8393
|
-
T.current = ne, x.current = !0, fe.previousWasPlaying || (W = z.emit) == null || W.call(z, "pause"),
|
|
8415
|
+
T.current = ne, x.current = !0, fe.previousWasPlaying || (W = z.emit) == null || W.call(z, "pause"), N || G.setOptions({ progressColor: g }), fe.wasPlaying && G.play(), o.setter((H) => ({
|
|
8394
8416
|
...H,
|
|
8395
8417
|
active: G,
|
|
8396
8418
|
lastPlayed: G,
|
|
@@ -8399,22 +8421,22 @@ const gc = Ze((n) => {
|
|
|
8399
8421
|
},
|
|
8400
8422
|
[
|
|
8401
8423
|
o,
|
|
8402
|
-
|
|
8424
|
+
N,
|
|
8403
8425
|
g,
|
|
8404
|
-
|
|
8426
|
+
M,
|
|
8405
8427
|
B,
|
|
8406
8428
|
i
|
|
8407
8429
|
]
|
|
8408
8430
|
), pe = J(() => {
|
|
8409
8431
|
var G;
|
|
8410
|
-
d ? (G =
|
|
8432
|
+
d ? (G = R.current) == null || G.play() : (y(!1), l == null || l(!1), o && o.setter((ee) => ({
|
|
8411
8433
|
...ee,
|
|
8412
8434
|
isPlaying: !1,
|
|
8413
8435
|
active: null
|
|
8414
8436
|
})));
|
|
8415
8437
|
}, [d, l, o]), ue = J(() => {
|
|
8416
|
-
if (!(B || !
|
|
8417
|
-
if (
|
|
8438
|
+
if (!(B || !R.current)) {
|
|
8439
|
+
if (R.current.isPlaying()) {
|
|
8418
8440
|
Q();
|
|
8419
8441
|
return;
|
|
8420
8442
|
}
|
|
@@ -8470,7 +8492,7 @@ const gc = Ze((n) => {
|
|
|
8470
8492
|
onPlay: $,
|
|
8471
8493
|
onPause: L,
|
|
8472
8494
|
onFinish: pe,
|
|
8473
|
-
backend:
|
|
8495
|
+
backend: N ? "WebAudio" : "MediaElement"
|
|
8474
8496
|
}
|
|
8475
8497
|
) }),
|
|
8476
8498
|
c && /* @__PURE__ */ s("div", { className: St.actions, children: c })
|
|
@@ -9023,16 +9045,16 @@ const eI = ({
|
|
|
9023
9045
|
onSubmitStemSeparation: k,
|
|
9024
9046
|
openedItem: y,
|
|
9025
9047
|
setOpenedItem: w
|
|
9026
|
-
} = nt(zt), [b,
|
|
9048
|
+
} = nt(zt), [b, N] = V(!1), E = y === n;
|
|
9027
9049
|
ie(() => {
|
|
9028
|
-
E ||
|
|
9050
|
+
E || N(!1);
|
|
9029
9051
|
}, [E]);
|
|
9030
|
-
const
|
|
9052
|
+
const R = J(() => {
|
|
9031
9053
|
if (c) return;
|
|
9032
|
-
const T = C.find((
|
|
9054
|
+
const T = C.find((O) => O.id === n);
|
|
9033
9055
|
y === n ? (w(null), f == null || f(T, !1)) : (w(n), f == null || f(T, !0));
|
|
9034
9056
|
}, [n, y, w, f, C, c]), x = J((T) => {
|
|
9035
|
-
T.stopPropagation(),
|
|
9057
|
+
T.stopPropagation(), N((O) => !O);
|
|
9036
9058
|
}, []);
|
|
9037
9059
|
return /* @__PURE__ */ v(
|
|
9038
9060
|
I,
|
|
@@ -9040,7 +9062,7 @@ const eI = ({
|
|
|
9040
9062
|
direction: "column",
|
|
9041
9063
|
p: "1",
|
|
9042
9064
|
className: `${At.item} ${y === n ? At.opened : ""} ${c ? At.failed : ""}`,
|
|
9043
|
-
onClick:
|
|
9065
|
+
onClick: R,
|
|
9044
9066
|
...m,
|
|
9045
9067
|
children: [
|
|
9046
9068
|
/* @__PURE__ */ v(I, { direction: "row", gap: "3", children: [
|
|
@@ -9105,7 +9127,7 @@ const eI = ({
|
|
|
9105
9127
|
selected: g.selected,
|
|
9106
9128
|
options: g.options,
|
|
9107
9129
|
onSubmit: k,
|
|
9108
|
-
setIsChangingStems:
|
|
9130
|
+
setIsChangingStems: N
|
|
9109
9131
|
}
|
|
9110
9132
|
),
|
|
9111
9133
|
/* @__PURE__ */ s(
|
|
@@ -9293,32 +9315,32 @@ const eI = ({
|
|
|
9293
9315
|
}, wI = ({ ...n }) => {
|
|
9294
9316
|
const { onClickTrack: t, onChangeTransfer: r, projects: a, labels: o = {}, showCover: i = !0 } = nt(zt), { projectId: l, id: c, title: d, cover: u, transfers: g, audioUrl: h, loading: A } = n, m = oe(() => g && g.length > 0, [g]), C = 24, f = -24, [k, y] = V(null);
|
|
9295
9317
|
ie(() => {
|
|
9296
|
-
var
|
|
9297
|
-
m && k === null && y(parseInt(((
|
|
9318
|
+
var R;
|
|
9319
|
+
m && k === null && y(parseInt(((R = g == null ? void 0 : g[0]) == null ? void 0 : R.pitchShift) ?? 0));
|
|
9298
9320
|
}, [m, k]);
|
|
9299
9321
|
const w = oe(() => {
|
|
9300
9322
|
if (!m && A || m && k === null)
|
|
9301
9323
|
return !0;
|
|
9302
9324
|
if (k !== null) {
|
|
9303
|
-
const
|
|
9304
|
-
return (
|
|
9325
|
+
const R = g.find((x) => parseInt(x.pitchShift) === k);
|
|
9326
|
+
return (R == null ? void 0 : R.loading) === !0 || !(R != null && R.audioUrl);
|
|
9305
9327
|
}
|
|
9306
9328
|
return !1;
|
|
9307
|
-
}, [A, m, k, g]), b = J((
|
|
9329
|
+
}, [A, m, k, g]), b = J((R) => {
|
|
9308
9330
|
var x;
|
|
9309
|
-
return m ? (x = g == null ? void 0 : g.find((T) => parseInt(T.pitchShift) ===
|
|
9310
|
-
}, [m, g, h]),
|
|
9311
|
-
y(
|
|
9312
|
-
const x = b(
|
|
9331
|
+
return m ? (x = g == null ? void 0 : g.find((T) => parseInt(T.pitchShift) === R)) == null ? void 0 : x.audioUrl : h;
|
|
9332
|
+
}, [m, g, h]), N = J((R) => {
|
|
9333
|
+
y(R);
|
|
9334
|
+
const x = b(R), T = a.find((O) => O.id === l);
|
|
9313
9335
|
r == null || r(T, {
|
|
9314
9336
|
id: c,
|
|
9315
9337
|
title: d,
|
|
9316
9338
|
audioUrl: x,
|
|
9317
9339
|
processTrack: !x,
|
|
9318
|
-
pitchShift:
|
|
9340
|
+
pitchShift: R
|
|
9319
9341
|
});
|
|
9320
|
-
}, [r, l, c, d, g]), E = J((
|
|
9321
|
-
|
|
9342
|
+
}, [r, l, c, d, g]), E = J((R) => {
|
|
9343
|
+
R.stopPropagation(), !w && (t == null || t({
|
|
9322
9344
|
...n,
|
|
9323
9345
|
id: c,
|
|
9324
9346
|
title: d,
|
|
@@ -9368,7 +9390,7 @@ const eI = ({
|
|
|
9368
9390
|
min: f,
|
|
9369
9391
|
max: C,
|
|
9370
9392
|
value: k,
|
|
9371
|
-
onChange:
|
|
9393
|
+
onChange: N
|
|
9372
9394
|
}
|
|
9373
9395
|
) : null
|
|
9374
9396
|
]
|
|
@@ -9467,23 +9489,23 @@ const JI = "_starButton_1311l_1", QI = "_disabled_1311l_17", MI = "_readOnly_131
|
|
|
9467
9489
|
...h
|
|
9468
9490
|
}) => {
|
|
9469
9491
|
const [A, m] = V(r || 0), [C, f] = V(0), k = t !== void 0 ? t : A, y = t !== void 0, w = J(
|
|
9470
|
-
(
|
|
9492
|
+
(R) => {
|
|
9471
9493
|
if (a || o) return;
|
|
9472
|
-
const x =
|
|
9494
|
+
const x = R + 1, T = x === k ? 0 : x;
|
|
9473
9495
|
y || m(T), i == null || i({ value: T });
|
|
9474
9496
|
},
|
|
9475
9497
|
[a, o, y, i, k]
|
|
9476
9498
|
), b = J(
|
|
9477
|
-
(
|
|
9499
|
+
(R) => {
|
|
9478
9500
|
if (a || o) return;
|
|
9479
|
-
const x =
|
|
9501
|
+
const x = R.currentTarget.getBoundingClientRect(), T = R.clientX - x.left, O = x.width / n, B = Math.floor(T / O), D = Math.max(0, Math.min(B, n - 1)) + 1;
|
|
9480
9502
|
D !== C && (f(D), l == null || l({ value: D }));
|
|
9481
9503
|
},
|
|
9482
9504
|
[a, o, n, C, l]
|
|
9483
|
-
),
|
|
9505
|
+
), N = J(() => {
|
|
9484
9506
|
a || o || (f(0), l == null || l({ value: 0 }));
|
|
9485
|
-
}, [a, o, l]), E = (
|
|
9486
|
-
const x = C > 0 ?
|
|
9507
|
+
}, [a, o, l]), E = (R) => {
|
|
9508
|
+
const x = C > 0 ? R < C : R < k, T = C > 0 && R < C, O = R < k;
|
|
9487
9509
|
return /* @__PURE__ */ s(
|
|
9488
9510
|
"button",
|
|
9489
9511
|
{
|
|
@@ -9491,17 +9513,17 @@ const JI = "_starButton_1311l_1", QI = "_disabled_1311l_17", MI = "_readOnly_131
|
|
|
9491
9513
|
className: S($e.starButton, {
|
|
9492
9514
|
[$e.filled]: x,
|
|
9493
9515
|
[$e.hovered]: T,
|
|
9494
|
-
[$e.active]:
|
|
9516
|
+
[$e.active]: O,
|
|
9495
9517
|
[$e.disabled]: a,
|
|
9496
9518
|
[$e.readOnly]: o
|
|
9497
9519
|
}),
|
|
9498
|
-
onClick: () => w(
|
|
9520
|
+
onClick: () => w(R),
|
|
9499
9521
|
disabled: a || o,
|
|
9500
|
-
"aria-label": `Rate ${
|
|
9522
|
+
"aria-label": `Rate ${R + 1} out of ${n}`,
|
|
9501
9523
|
...h,
|
|
9502
9524
|
children: x ? /* @__PURE__ */ s($d, { className: $e.starIcon }) : /* @__PURE__ */ s(eu, { className: $e.starIcon })
|
|
9503
9525
|
},
|
|
9504
|
-
|
|
9526
|
+
R
|
|
9505
9527
|
);
|
|
9506
9528
|
};
|
|
9507
9529
|
return /* @__PURE__ */ v(
|
|
@@ -9526,8 +9548,8 @@ const JI = "_starButton_1311l_1", QI = "_disabled_1311l_17", MI = "_readOnly_131
|
|
|
9526
9548
|
role: "radiogroup",
|
|
9527
9549
|
"aria-label": `Rating: ${k} out of ${n} stars`,
|
|
9528
9550
|
onMouseMove: b,
|
|
9529
|
-
onMouseLeave:
|
|
9530
|
-
children: Array.from({ length: n }, (
|
|
9551
|
+
onMouseLeave: N,
|
|
9552
|
+
children: Array.from({ length: n }, (R, x) => E(x))
|
|
9531
9553
|
}
|
|
9532
9554
|
),
|
|
9533
9555
|
(u || g) && /* @__PURE__ */ v(
|
|
@@ -9596,13 +9618,13 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9596
9618
|
onOpenChange: y,
|
|
9597
9619
|
...w
|
|
9598
9620
|
}) => {
|
|
9599
|
-
const b = o === null ? "" : o,
|
|
9600
|
-
if (!
|
|
9621
|
+
const b = o === null ? "" : o, N = a === null ? void 0 : a, E = !!u, R = E && !!g, x = E && !g || h, [T, O] = V(!1), B = Y(!1), Q = (D) => {
|
|
9622
|
+
if (!R) {
|
|
9601
9623
|
y == null || y(D);
|
|
9602
9624
|
return;
|
|
9603
9625
|
}
|
|
9604
9626
|
if (D) {
|
|
9605
|
-
|
|
9627
|
+
O(!0), y == null || y(!0), B.current = !0, setTimeout(() => {
|
|
9606
9628
|
k == null || k(), setTimeout(() => {
|
|
9607
9629
|
B.current = !1;
|
|
9608
9630
|
}, 50);
|
|
@@ -9610,10 +9632,10 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9610
9632
|
return;
|
|
9611
9633
|
}
|
|
9612
9634
|
if (B.current) {
|
|
9613
|
-
|
|
9635
|
+
O(!0);
|
|
9614
9636
|
return;
|
|
9615
9637
|
}
|
|
9616
|
-
|
|
9638
|
+
O(!1), y == null || y(!1);
|
|
9617
9639
|
};
|
|
9618
9640
|
return /* @__PURE__ */ v(Ne, { width: "100%", children: [
|
|
9619
9641
|
t && /* @__PURE__ */ v(I, { mb: "2", align: "center", gap: "2", children: [
|
|
@@ -9624,12 +9646,12 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9624
9646
|
Ja,
|
|
9625
9647
|
{
|
|
9626
9648
|
onValueChange: r,
|
|
9627
|
-
defaultValue:
|
|
9649
|
+
defaultValue: N,
|
|
9628
9650
|
value: b,
|
|
9629
9651
|
className: S(n),
|
|
9630
9652
|
...w,
|
|
9631
9653
|
disabled: x,
|
|
9632
|
-
open:
|
|
9654
|
+
open: R ? T : w.open,
|
|
9633
9655
|
onOpenChange: Q,
|
|
9634
9656
|
children: [
|
|
9635
9657
|
/* @__PURE__ */ s(
|
|
@@ -9642,7 +9664,7 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9642
9664
|
className: S(Fe.selectTrigger, {
|
|
9643
9665
|
[Fe.ghost]: d === "ghost",
|
|
9644
9666
|
[Fe.soft]: d === "soft",
|
|
9645
|
-
[Fe.triggerDisabled]:
|
|
9667
|
+
[Fe.triggerDisabled]: R
|
|
9646
9668
|
})
|
|
9647
9669
|
}
|
|
9648
9670
|
),
|
|
@@ -9665,7 +9687,7 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9665
9687
|
},
|
|
9666
9688
|
D.value
|
|
9667
9689
|
);
|
|
9668
|
-
const
|
|
9690
|
+
const M = R || !!D.disabled || h;
|
|
9669
9691
|
return /* @__PURE__ */ v(
|
|
9670
9692
|
Mi,
|
|
9671
9693
|
{
|
|
@@ -9675,7 +9697,7 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9675
9697
|
[Fe.size1]: c === "1",
|
|
9676
9698
|
[Fe.size2]: c === "2"
|
|
9677
9699
|
}),
|
|
9678
|
-
disabled:
|
|
9700
|
+
disabled: M,
|
|
9679
9701
|
children: [
|
|
9680
9702
|
/* @__PURE__ */ s(Oi, { className: "rt-SelectItemIndicator", children: /* @__PURE__ */ s(
|
|
9681
9703
|
Yo,
|
|
@@ -9691,7 +9713,7 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9691
9713
|
{
|
|
9692
9714
|
size: c,
|
|
9693
9715
|
style: {
|
|
9694
|
-
color:
|
|
9716
|
+
color: M ? "var(--neutral-alpha-9)" : "var(--neutral-12)"
|
|
9695
9717
|
},
|
|
9696
9718
|
children: D.label
|
|
9697
9719
|
}
|
|
@@ -9716,7 +9738,7 @@ const KI = "_select_103tg_1", VI = "_levelMeter_103tg_5", GI = "_levelMeterTrack
|
|
|
9716
9738
|
"span",
|
|
9717
9739
|
{
|
|
9718
9740
|
className: S(Fe.rightIcon, {
|
|
9719
|
-
[Fe.rightIconDisabled]:
|
|
9741
|
+
[Fe.rightIconDisabled]: M
|
|
9720
9742
|
}),
|
|
9721
9743
|
children: D.rightIcon
|
|
9722
9744
|
}
|
|
@@ -9782,15 +9804,15 @@ const AS = "_boxVertical_ujop8_21", mS = "_sliderRoot_ujop8_27", fS = "_sliderRo
|
|
|
9782
9804
|
scrollWheel: y = !1,
|
|
9783
9805
|
...w
|
|
9784
9806
|
}) => {
|
|
9785
|
-
const { onWheel: b, ...
|
|
9807
|
+
const { onWheel: b, ...N } = w, E = C === "vertical", R = (B) => (B - c) / (d - c) * 100, x = J(
|
|
9786
9808
|
(B) => {
|
|
9787
9809
|
if (b == null || b(B), h || !r || B.defaultPrevented) return;
|
|
9788
9810
|
const Q = E ? B.deltaY : Math.abs(B.deltaX) > Math.abs(B.deltaY) ? B.deltaX : B.deltaY;
|
|
9789
9811
|
if (Q === 0) return;
|
|
9790
9812
|
B.preventDefault();
|
|
9791
|
-
const D = (o == null ? void 0 : o[0]) ?? c,
|
|
9813
|
+
const D = (o == null ? void 0 : o[0]) ?? c, M = Q < 0 ? 1 : -1, U = Math.min(
|
|
9792
9814
|
d,
|
|
9793
|
-
Math.max(c, D +
|
|
9815
|
+
Math.max(c, D + M * u)
|
|
9794
9816
|
);
|
|
9795
9817
|
U !== D && r([U]);
|
|
9796
9818
|
},
|
|
@@ -9804,11 +9826,11 @@ const AS = "_boxVertical_ujop8_21", mS = "_sliderRoot_ujop8_27", fS = "_sliderRo
|
|
|
9804
9826
|
u,
|
|
9805
9827
|
o
|
|
9806
9828
|
]
|
|
9807
|
-
), T = typeof k == "number" ? `${k}px` : k,
|
|
9829
|
+
), T = typeof k == "number" ? `${k}px` : k, O = typeof f == "number" ? `${f}px` : f;
|
|
9808
9830
|
return /* @__PURE__ */ v(
|
|
9809
9831
|
Ne,
|
|
9810
9832
|
{
|
|
9811
|
-
width: E ? "100%" :
|
|
9833
|
+
width: E ? "100%" : O,
|
|
9812
9834
|
className: S(E && be.boxVertical),
|
|
9813
9835
|
style: E ? { "--slider-vertical-height": T } : void 0,
|
|
9814
9836
|
children: [
|
|
@@ -9860,7 +9882,7 @@ const AS = "_boxVertical_ujop8_21", mS = "_sliderRoot_ujop8_27", fS = "_sliderRo
|
|
|
9860
9882
|
[be.sliderRootVertical]: E
|
|
9861
9883
|
}),
|
|
9862
9884
|
onWheel: y ? x : b,
|
|
9863
|
-
...
|
|
9885
|
+
...N,
|
|
9864
9886
|
children: /* @__PURE__ */ v(
|
|
9865
9887
|
I,
|
|
9866
9888
|
{
|
|
@@ -9913,9 +9935,9 @@ const AS = "_boxVertical_ujop8_21", mS = "_sliderRoot_ujop8_27", fS = "_sliderRo
|
|
|
9913
9935
|
[be.markerVertical]: E
|
|
9914
9936
|
}),
|
|
9915
9937
|
style: E ? {
|
|
9916
|
-
bottom: `${
|
|
9938
|
+
bottom: `${R(B)}%`
|
|
9917
9939
|
} : {
|
|
9918
|
-
left: `${
|
|
9940
|
+
left: `${R(B)}%`
|
|
9919
9941
|
}
|
|
9920
9942
|
},
|
|
9921
9943
|
Q
|
|
@@ -10305,16 +10327,16 @@ const mc = ({
|
|
|
10305
10327
|
dndDroppableId: y,
|
|
10306
10328
|
onDragEnter: w,
|
|
10307
10329
|
onDragLeave: b,
|
|
10308
|
-
onDragOver:
|
|
10330
|
+
onDragOver: N,
|
|
10309
10331
|
onDrop: E,
|
|
10310
|
-
isLoading:
|
|
10332
|
+
isLoading: R = !1
|
|
10311
10333
|
}) => {
|
|
10312
|
-
const [x, T] = V(!1),
|
|
10334
|
+
const [x, T] = V(!1), O = !!y, { setNodeRef: B, isOver: Q } = oi({
|
|
10313
10335
|
id: y ?? "__setlist-item-noop__",
|
|
10314
|
-
disabled: !
|
|
10336
|
+
disabled: !O
|
|
10315
10337
|
}), D = () => {
|
|
10316
10338
|
T(!0);
|
|
10317
|
-
},
|
|
10339
|
+
}, M = () => {
|
|
10318
10340
|
T(!1);
|
|
10319
10341
|
}, U = (K) => {
|
|
10320
10342
|
K.stopPropagation();
|
|
@@ -10324,7 +10346,7 @@ const mc = ({
|
|
|
10324
10346
|
return /* @__PURE__ */ v(
|
|
10325
10347
|
I,
|
|
10326
10348
|
{
|
|
10327
|
-
ref:
|
|
10349
|
+
ref: O ? B : void 0,
|
|
10328
10350
|
gap: "3",
|
|
10329
10351
|
align: "center",
|
|
10330
10352
|
role: r ? "button" : void 0,
|
|
@@ -10337,11 +10359,11 @@ const mc = ({
|
|
|
10337
10359
|
[ae.dropTarget]: f && k || Q
|
|
10338
10360
|
}),
|
|
10339
10361
|
onMouseEnter: D,
|
|
10340
|
-
onMouseLeave:
|
|
10362
|
+
onMouseLeave: M,
|
|
10341
10363
|
"data-setlist-id": t,
|
|
10342
10364
|
onDragEnter: f ? w : void 0,
|
|
10343
10365
|
onDragLeave: f ? b : void 0,
|
|
10344
|
-
onDragOver: f ?
|
|
10366
|
+
onDragOver: f ? N : void 0,
|
|
10345
10367
|
onDrop: f ? E : void 0,
|
|
10346
10368
|
onKeyDown: r ? (K) => {
|
|
10347
10369
|
(K.key === "Enter" || K.key === " ") && (K.preventDefault(), r == null || r());
|
|
@@ -10357,7 +10379,7 @@ const mc = ({
|
|
|
10357
10379
|
[ae.collapsedInner]: m
|
|
10358
10380
|
}),
|
|
10359
10381
|
children: [
|
|
10360
|
-
(i ||
|
|
10382
|
+
(i || R) && /* @__PURE__ */ s("div", { className: ae.avatarSetlist, children: R ? /* @__PURE__ */ s(br, { className: ae.avatarSetlistSkeleton }) : typeof i == "string" ? /* @__PURE__ */ s(
|
|
10361
10383
|
ut,
|
|
10362
10384
|
{
|
|
10363
10385
|
src: i,
|
|
@@ -10370,12 +10392,12 @@ const mc = ({
|
|
|
10370
10392
|
I,
|
|
10371
10393
|
{
|
|
10372
10394
|
direction: "column",
|
|
10373
|
-
gap:
|
|
10395
|
+
gap: R ? "1" : "0",
|
|
10374
10396
|
className: S(ae.textWrapper, {
|
|
10375
10397
|
[ae.textWrapperHidden]: m
|
|
10376
10398
|
}),
|
|
10377
10399
|
children: [
|
|
10378
|
-
(l ||
|
|
10400
|
+
(l || R) && (R ? /* @__PURE__ */ s(br, { className: ae.textNewSetlistSkeleton }) : /* @__PURE__ */ s(
|
|
10379
10401
|
j,
|
|
10380
10402
|
{
|
|
10381
10403
|
size: "2",
|
|
@@ -10385,7 +10407,7 @@ const mc = ({
|
|
|
10385
10407
|
children: l
|
|
10386
10408
|
}
|
|
10387
10409
|
)),
|
|
10388
|
-
(c ||
|
|
10410
|
+
(c || R) && (R ? /* @__PURE__ */ s(br, { className: ae.textSubtitleSkeleton }) : /* @__PURE__ */ s(
|
|
10389
10411
|
j,
|
|
10390
10412
|
{
|
|
10391
10413
|
size: "1",
|
|
@@ -10443,24 +10465,24 @@ const mc = ({
|
|
|
10443
10465
|
enableDndDropTargets: C = !1,
|
|
10444
10466
|
className: f
|
|
10445
10467
|
}) => {
|
|
10446
|
-
const { close: k, isMobile: y } = ss(), [w, b] = V(null),
|
|
10468
|
+
const { close: k, isMobile: y } = ss(), [w, b] = V(null), N = (Z) => {
|
|
10447
10469
|
r == null || r(Z), y && k();
|
|
10448
10470
|
}, E = () => {
|
|
10449
10471
|
c == null || c(), y && k();
|
|
10450
|
-
}, [
|
|
10451
|
-
U.current && (clearTimeout(U.current), U.current = null), P.current && (clearTimeout(P.current), P.current = null),
|
|
10472
|
+
}, [R, x] = V(!1), [T, O] = V(!1), [B, Q] = V(!1), [D, M] = V(!1), U = Y(null), P = Y(null), K = Y(null), $ = Y(g), L = 50, F = 200, X = 44, pe = 4, ue = g && c ? 1 : 0, me = g && !R && !D, G = n, ee = n.length + (c ? 1 : 0), z = Math.min(4, ee), q = F + Math.max(0, z - 1) * L, ne = q, fe = () => {
|
|
10473
|
+
U.current && (clearTimeout(U.current), U.current = null), P.current && (clearTimeout(P.current), P.current = null), O(!1), Q(!0), x(!0), P.current = setTimeout(() => {
|
|
10452
10474
|
Q(!1), P.current = null;
|
|
10453
10475
|
}, ne);
|
|
10454
10476
|
}, ce = () => {
|
|
10455
|
-
g && (U.current && (clearTimeout(U.current), U.current = null), T ?
|
|
10477
|
+
g && (U.current && (clearTimeout(U.current), U.current = null), T ? O(!1) : R || fe());
|
|
10456
10478
|
}, W = () => {
|
|
10457
|
-
g &&
|
|
10458
|
-
U.current = null, x(!1),
|
|
10479
|
+
g && R && (P.current && (clearTimeout(P.current), P.current = null), Q(!1), O(!0), U.current = setTimeout(() => {
|
|
10480
|
+
U.current = null, x(!1), O(!1);
|
|
10459
10481
|
}, ne));
|
|
10460
10482
|
}, H = (Z) => {
|
|
10461
10483
|
g && (Z.stopPropagation(), fe());
|
|
10462
10484
|
}, de = () => {
|
|
10463
|
-
g && !
|
|
10485
|
+
g && !R && fe();
|
|
10464
10486
|
}, ye = () => {
|
|
10465
10487
|
if (!g) return;
|
|
10466
10488
|
const Z = K.current;
|
|
@@ -10470,13 +10492,13 @@ const mc = ({
|
|
|
10470
10492
|
};
|
|
10471
10493
|
if ($.current !== g) {
|
|
10472
10494
|
const Z = $.current;
|
|
10473
|
-
$.current = g, g && !Z ? (
|
|
10495
|
+
$.current = g, g && !Z ? (M(!0), Q(!1), O(!0)) : !g && Z && (x(!1), M(!0), O(!1), Q(!0));
|
|
10474
10496
|
}
|
|
10475
10497
|
ie(() => {
|
|
10476
10498
|
if (!D) return;
|
|
10477
10499
|
U.current && (clearTimeout(U.current), U.current = null), P.current && (clearTimeout(P.current), P.current = null);
|
|
10478
10500
|
const Z = setTimeout(() => {
|
|
10479
|
-
|
|
10501
|
+
M(!1), O(!1), Q(!1);
|
|
10480
10502
|
}, ne);
|
|
10481
10503
|
return () => clearTimeout(Z);
|
|
10482
10504
|
}, [D, ne]), ie(() => () => {
|
|
@@ -10597,7 +10619,7 @@ const mc = ({
|
|
|
10597
10619
|
{
|
|
10598
10620
|
isSelected: ve,
|
|
10599
10621
|
setlistId: Z.id,
|
|
10600
|
-
onClick: () =>
|
|
10622
|
+
onClick: () => N(Z.id),
|
|
10601
10623
|
droppable: A,
|
|
10602
10624
|
isDropTarget: m === Z.id,
|
|
10603
10625
|
dndDroppableId: C ? `setlist:${Z.id}` : void 0,
|
|
@@ -10634,7 +10656,7 @@ const mc = ({
|
|
|
10634
10656
|
[ae.staggerAnimateOut]: le && T && we,
|
|
10635
10657
|
[ae.fadeAnimateIn]: le && B && !we,
|
|
10636
10658
|
[ae.fadeAnimateOut]: le && T && !we,
|
|
10637
|
-
[ae.fadeHidden]: !we && g && !
|
|
10659
|
+
[ae.fadeHidden]: !we && g && !R && !D
|
|
10638
10660
|
}),
|
|
10639
10661
|
style: {
|
|
10640
10662
|
...Qe(Pe),
|
|
@@ -10719,26 +10741,26 @@ const mc = ({
|
|
|
10719
10741
|
mobileBreakpoint: d = wr,
|
|
10720
10742
|
...u
|
|
10721
10743
|
}) => {
|
|
10722
|
-
const g = uw(d), { isMobile: h, isOpen: A, open: m, close: C } = fc(g), [f, k] = V(!1), [y, w] = V(!1), b = a ?? y,
|
|
10744
|
+
const g = uw(d), { isMobile: h, isOpen: A, open: m, close: C } = fc(g), [f, k] = V(!1), [y, w] = V(!1), b = a ?? y, N = J(
|
|
10723
10745
|
(L) => {
|
|
10724
10746
|
a == null && w(L), o == null || o(L);
|
|
10725
10747
|
},
|
|
10726
10748
|
[a, o]
|
|
10727
|
-
), E = h ? !1 : r && !b,
|
|
10728
|
-
h || (k(!1),
|
|
10749
|
+
), E = h ? !1 : r && !b, R = () => {
|
|
10750
|
+
h || (k(!1), N(!1), i((L) => !L));
|
|
10729
10751
|
}, x = () => {
|
|
10730
10752
|
h || k(!0);
|
|
10731
10753
|
}, T = () => {
|
|
10732
10754
|
h || k(!1);
|
|
10733
|
-
},
|
|
10734
|
-
E ?
|
|
10755
|
+
}, O = (L) => {
|
|
10756
|
+
E ? R() : l && l(L);
|
|
10735
10757
|
}, B = () => {
|
|
10736
|
-
h || !r ||
|
|
10758
|
+
h || !r || N(!0);
|
|
10737
10759
|
}, Q = () => {
|
|
10738
|
-
|
|
10760
|
+
N(!1);
|
|
10739
10761
|
}, D = (L) => {
|
|
10740
10762
|
x(), L.buttons > 0 && B();
|
|
10741
|
-
},
|
|
10763
|
+
}, M = () => {
|
|
10742
10764
|
B();
|
|
10743
10765
|
}, U = (L) => {
|
|
10744
10766
|
h || !r || (L.preventDefault(), B());
|
|
@@ -10818,7 +10840,7 @@ const mc = ({
|
|
|
10818
10840
|
{
|
|
10819
10841
|
type: "button",
|
|
10820
10842
|
className: ge.logoButton,
|
|
10821
|
-
onClick:
|
|
10843
|
+
onClick: O,
|
|
10822
10844
|
"aria-label": K,
|
|
10823
10845
|
children: /* @__PURE__ */ v(
|
|
10824
10846
|
I,
|
|
@@ -10876,7 +10898,7 @@ const mc = ({
|
|
|
10876
10898
|
className: ge.desktopSidebar,
|
|
10877
10899
|
onMouseEnter: D,
|
|
10878
10900
|
onMouseLeave: T,
|
|
10879
|
-
onDragEnter:
|
|
10901
|
+
onDragEnter: M,
|
|
10880
10902
|
onDragOver: U,
|
|
10881
10903
|
onDrop: Q,
|
|
10882
10904
|
children: [
|
|
@@ -10894,7 +10916,7 @@ const mc = ({
|
|
|
10894
10916
|
{
|
|
10895
10917
|
type: "button",
|
|
10896
10918
|
className: ge.logoButton,
|
|
10897
|
-
onClick:
|
|
10919
|
+
onClick: O,
|
|
10898
10920
|
"aria-label": P,
|
|
10899
10921
|
children: /* @__PURE__ */ s(
|
|
10900
10922
|
I,
|
|
@@ -10913,7 +10935,7 @@ const mc = ({
|
|
|
10913
10935
|
"button",
|
|
10914
10936
|
{
|
|
10915
10937
|
type: "button",
|
|
10916
|
-
onClick:
|
|
10938
|
+
onClick: R,
|
|
10917
10939
|
className: S(ge.toggleButton, {
|
|
10918
10940
|
[ge.toggleButtonHidden]: E
|
|
10919
10941
|
}),
|
|
@@ -10937,7 +10959,7 @@ const mc = ({
|
|
|
10937
10959
|
{
|
|
10938
10960
|
type: "button",
|
|
10939
10961
|
className: ge.logoButton,
|
|
10940
|
-
onClick:
|
|
10962
|
+
onClick: O,
|
|
10941
10963
|
"aria-label": P,
|
|
10942
10964
|
children: /* @__PURE__ */ s(
|
|
10943
10965
|
I,
|
|
@@ -10956,7 +10978,7 @@ const mc = ({
|
|
|
10956
10978
|
"button",
|
|
10957
10979
|
{
|
|
10958
10980
|
type: "button",
|
|
10959
|
-
onClick:
|
|
10981
|
+
onClick: R,
|
|
10960
10982
|
className: S(ge.toggleButton, {
|
|
10961
10983
|
[ge.toggleButtonHidden]: E
|
|
10962
10984
|
}),
|
|
@@ -11004,7 +11026,7 @@ const hw = "_sectionTitle_bwlze_1", gw = "_separator_bwlze_17", So = {
|
|
|
11004
11026
|
sidebarTooltip: C,
|
|
11005
11027
|
children: f
|
|
11006
11028
|
}) => {
|
|
11007
|
-
const [k, y] = V(!1), [w, b] = V(!1), { isMobile:
|
|
11029
|
+
const [k, y] = V(!1), [w, b] = V(!1), { isMobile: N } = fc(), E = N ? !1 : k && !w;
|
|
11008
11030
|
return /* @__PURE__ */ v(Ce, { children: [
|
|
11009
11031
|
/* @__PURE__ */ v(
|
|
11010
11032
|
Cc,
|
|
@@ -11044,7 +11066,7 @@ const hw = "_sectionTitle_bwlze_1", gw = "_separator_bwlze_17", So = {
|
|
|
11044
11066
|
newSetlistButtonTooltip: h,
|
|
11045
11067
|
expandButtonTooltip: A,
|
|
11046
11068
|
collapsed: E,
|
|
11047
|
-
isMobile:
|
|
11069
|
+
isMobile: N
|
|
11048
11070
|
}
|
|
11049
11071
|
)
|
|
11050
11072
|
]
|
|
@@ -11102,7 +11124,7 @@ const hw = "_sectionTitle_bwlze_1", gw = "_separator_bwlze_17", So = {
|
|
|
11102
11124
|
className: A,
|
|
11103
11125
|
...m
|
|
11104
11126
|
}, C) {
|
|
11105
|
-
const f = m["aria-label"], k = Y(null), y = Y(null), w = Y(null), b = Y(null), [
|
|
11127
|
+
const f = m["aria-label"], k = Y(null), y = Y(null), w = Y(null), b = Y(null), [N, E] = V(!1), [R, x] = V(!1), [T, O] = V(!1), B = Y({ value: t, min: a, max: o, step: i, disabled: l, onValueChange: r });
|
|
11106
11128
|
B.current = { value: t, min: a, max: o, step: i, disabled: l, onValueChange: r };
|
|
11107
11129
|
const Q = Y({
|
|
11108
11130
|
tooltipDelayDuration: d,
|
|
@@ -11152,7 +11174,7 @@ const hw = "_sectionTitle_bwlze_1", gw = "_separator_bwlze_17", So = {
|
|
|
11152
11174
|
return z.addEventListener("wheel", ce, { passive: !1 }), () => z.removeEventListener("wheel", ce);
|
|
11153
11175
|
}, []), ie(() => {
|
|
11154
11176
|
if (!T) return;
|
|
11155
|
-
const z = () =>
|
|
11177
|
+
const z = () => O(!1);
|
|
11156
11178
|
return window.addEventListener("pointerup", z), window.addEventListener("pointercancel", z), () => {
|
|
11157
11179
|
window.removeEventListener("pointerup", z), window.removeEventListener("pointercancel", z);
|
|
11158
11180
|
};
|
|
@@ -11163,13 +11185,13 @@ const hw = "_sectionTitle_bwlze_1", gw = "_separator_bwlze_17", So = {
|
|
|
11163
11185
|
z.parentNode && z.parentNode.removeChild(z);
|
|
11164
11186
|
};
|
|
11165
11187
|
}, [T]);
|
|
11166
|
-
const
|
|
11188
|
+
const M = J(
|
|
11167
11189
|
(z) => {
|
|
11168
11190
|
k.current = z, typeof C == "function" ? C(z) : C && (C.current = z);
|
|
11169
11191
|
},
|
|
11170
11192
|
[C]
|
|
11171
11193
|
), U = () => {
|
|
11172
|
-
l ||
|
|
11194
|
+
l || O(!0);
|
|
11173
11195
|
}, P = () => {
|
|
11174
11196
|
w.current != null && (clearTimeout(w.current), w.current = null);
|
|
11175
11197
|
}, K = () => {
|
|
@@ -11198,11 +11220,11 @@ const hw = "_sectionTitle_bwlze_1", gw = "_separator_bwlze_17", So = {
|
|
|
11198
11220
|
}, z);
|
|
11199
11221
|
}, ue = () => {
|
|
11200
11222
|
l || h == null || h(t);
|
|
11201
|
-
}, me = g ? g(t) : t, G = !l && (
|
|
11223
|
+
}, me = g ? g(t) : t, G = !l && (R || T || N), ee = /* @__PURE__ */ s(
|
|
11202
11224
|
Xr,
|
|
11203
11225
|
{
|
|
11204
11226
|
className: vr.thumb,
|
|
11205
|
-
"data-focus-visible":
|
|
11227
|
+
"data-focus-visible": N || void 0,
|
|
11206
11228
|
"aria-label": f,
|
|
11207
11229
|
onFocus: $,
|
|
11208
11230
|
onBlur: L,
|
|
@@ -11215,7 +11237,7 @@ const hw = "_sectionTitle_bwlze_1", gw = "_separator_bwlze_17", So = {
|
|
|
11215
11237
|
return /* @__PURE__ */ v(
|
|
11216
11238
|
Gr,
|
|
11217
11239
|
{
|
|
11218
|
-
ref:
|
|
11240
|
+
ref: M,
|
|
11219
11241
|
className: S(vr.root, A),
|
|
11220
11242
|
value: [t],
|
|
11221
11243
|
onValueChange: (z) => r == null ? void 0 : r(z[0]),
|
|
@@ -11431,15 +11453,15 @@ const yr = (n) => {
|
|
|
11431
11453
|
suggestedTagsLoading: h
|
|
11432
11454
|
}) => {
|
|
11433
11455
|
const A = Y(null), m = Y(null), [C, f] = V(!1), k = J((E) => {
|
|
11434
|
-
const
|
|
11456
|
+
const R = E.target, x = R.scrollLeft + R.clientWidth >= R.scrollWidth - 2;
|
|
11435
11457
|
f(x);
|
|
11436
11458
|
}, []), y = !!l || !!d, w = J(
|
|
11437
11459
|
(E) => {
|
|
11438
11460
|
if (y) return;
|
|
11439
|
-
const
|
|
11461
|
+
const R = E.target.value;
|
|
11440
11462
|
t((x) => ({
|
|
11441
11463
|
...x,
|
|
11442
|
-
conditioningText:
|
|
11464
|
+
conditioningText: R
|
|
11443
11465
|
}));
|
|
11444
11466
|
},
|
|
11445
11467
|
[t, y]
|
|
@@ -11456,13 +11478,13 @@ const yr = (n) => {
|
|
|
11456
11478
|
}, [u]);
|
|
11457
11479
|
const b = J(
|
|
11458
11480
|
(E) => {
|
|
11459
|
-
t((
|
|
11460
|
-
...
|
|
11461
|
-
conditioningText: (
|
|
11481
|
+
t((R) => ({
|
|
11482
|
+
...R,
|
|
11483
|
+
conditioningText: (R.conditioningText || "").trimEnd() + " " + E + " "
|
|
11462
11484
|
}));
|
|
11463
11485
|
},
|
|
11464
11486
|
[t]
|
|
11465
|
-
),
|
|
11487
|
+
), N = J(() => {
|
|
11466
11488
|
t((E) => ({
|
|
11467
11489
|
...E,
|
|
11468
11490
|
conditioningAudio: null,
|
|
@@ -11559,13 +11581,13 @@ const yr = (n) => {
|
|
|
11559
11581
|
children: /* @__PURE__ */ s(au, { width: 14, height: 14 })
|
|
11560
11582
|
}
|
|
11561
11583
|
),
|
|
11562
|
-
h && /* @__PURE__ */ s("div", { className: ct.tagsWrapper, children: /* @__PURE__ */ s("div", { className: ct.tagsContainer, children: Vw.map((E,
|
|
11584
|
+
h && /* @__PURE__ */ s("div", { className: ct.tagsWrapper, children: /* @__PURE__ */ s("div", { className: ct.tagsContainer, children: Vw.map((E, R) => /* @__PURE__ */ s(
|
|
11563
11585
|
"div",
|
|
11564
11586
|
{
|
|
11565
11587
|
className: ct.skeletonChip,
|
|
11566
11588
|
style: { width: E }
|
|
11567
11589
|
},
|
|
11568
|
-
|
|
11590
|
+
R
|
|
11569
11591
|
)) }) }),
|
|
11570
11592
|
!h && (u == null ? void 0 : u.length) > 0 && /* @__PURE__ */ s(
|
|
11571
11593
|
"div",
|
|
@@ -11629,7 +11651,7 @@ const yr = (n) => {
|
|
|
11629
11651
|
Qw(n),
|
|
11630
11652
|
")"
|
|
11631
11653
|
] }),
|
|
11632
|
-
/* @__PURE__ */ s(Be, { variant: "soft", onClick:
|
|
11654
|
+
/* @__PURE__ */ s(Be, { variant: "soft", onClick: N, children: /* @__PURE__ */ s(iu, { width: 16, height: 16 }) })
|
|
11633
11655
|
]
|
|
11634
11656
|
}
|
|
11635
11657
|
) : /* @__PURE__ */ v(
|
|
@@ -12078,14 +12100,14 @@ const Nr = {
|
|
|
12078
12100
|
onMountConcurrency: y,
|
|
12079
12101
|
onClear: w,
|
|
12080
12102
|
onInspireMe: b,
|
|
12081
|
-
inspireMeLoading:
|
|
12103
|
+
inspireMeLoading: N,
|
|
12082
12104
|
onBoost: E,
|
|
12083
|
-
boostLoading:
|
|
12105
|
+
boostLoading: R,
|
|
12084
12106
|
suggestedTags: x,
|
|
12085
12107
|
onFetchSuggestedTags: T,
|
|
12086
|
-
suggestedTagsLoading:
|
|
12108
|
+
suggestedTagsLoading: O
|
|
12087
12109
|
}) => {
|
|
12088
|
-
const [B, Q] = V(!1), [D,
|
|
12110
|
+
const [B, Q] = V(!1), [D, M] = V("2"), [U, P] = V(D), { submitted: K, handleSubmit: $ } = ja(d), L = oe(() => [
|
|
12089
12111
|
{ value: "2", label: l._("Presets") },
|
|
12090
12112
|
{ value: "1", label: l._("Custom") }
|
|
12091
12113
|
], []), F = (r ?? []).some(
|
|
@@ -12106,7 +12128,7 @@ const Nr = {
|
|
|
12106
12128
|
[l]
|
|
12107
12129
|
), ue = J(
|
|
12108
12130
|
(ee) => {
|
|
12109
|
-
|
|
12131
|
+
M(ee), t({
|
|
12110
12132
|
...Ow,
|
|
12111
12133
|
instrument: n.instrument,
|
|
12112
12134
|
contextAudio: null,
|
|
@@ -12232,12 +12254,12 @@ const Nr = {
|
|
|
12232
12254
|
onAddConditioningAudio: a,
|
|
12233
12255
|
onTextConditioningFocus: o,
|
|
12234
12256
|
onInspireMe: b,
|
|
12235
|
-
inspireMeLoading:
|
|
12257
|
+
inspireMeLoading: N,
|
|
12236
12258
|
onBoost: E,
|
|
12237
|
-
boostLoading:
|
|
12259
|
+
boostLoading: R,
|
|
12238
12260
|
suggestedTags: x,
|
|
12239
12261
|
onFetchSuggestedTags: T,
|
|
12240
|
-
suggestedTagsLoading:
|
|
12262
|
+
suggestedTagsLoading: O
|
|
12241
12263
|
}
|
|
12242
12264
|
),
|
|
12243
12265
|
U === "2" && F && /* @__PURE__ */ s(
|
|
@@ -12467,7 +12489,7 @@ const No = {
|
|
|
12467
12489
|
showStemsPaywall: m,
|
|
12468
12490
|
showHiFiSwitch: C
|
|
12469
12491
|
}) => {
|
|
12470
|
-
var
|
|
12492
|
+
var N;
|
|
12471
12493
|
const { submitted: f, handleSubmit: k } = ja(l), y = [
|
|
12472
12494
|
{
|
|
12473
12495
|
value: "freeVocalInstruments",
|
|
@@ -12584,22 +12606,22 @@ const No = {
|
|
|
12584
12606
|
m(E.value);
|
|
12585
12607
|
return;
|
|
12586
12608
|
}
|
|
12587
|
-
const
|
|
12609
|
+
const R = E.value;
|
|
12588
12610
|
d((x) => {
|
|
12589
12611
|
let T = [...x.selectedStems];
|
|
12590
|
-
if (T.includes(
|
|
12591
|
-
T = T.filter((
|
|
12612
|
+
if (T.includes(R))
|
|
12613
|
+
T = T.filter((O) => O !== R);
|
|
12592
12614
|
else {
|
|
12593
|
-
const
|
|
12615
|
+
const O = iN[R] || [];
|
|
12594
12616
|
T = T.filter(
|
|
12595
|
-
(B) => !
|
|
12596
|
-
), T.push(
|
|
12617
|
+
(B) => !O.includes(B)
|
|
12618
|
+
), T.push(R);
|
|
12597
12619
|
}
|
|
12598
12620
|
return T.includes("other") && T.length === 1 ? { ...x, selectedStems: [] } : { ...x, selectedStems: T };
|
|
12599
12621
|
});
|
|
12600
12622
|
}, b = (E) => {
|
|
12601
|
-
d((
|
|
12602
|
-
...
|
|
12623
|
+
d((R) => ({
|
|
12624
|
+
...R,
|
|
12603
12625
|
selectedStems: E.value
|
|
12604
12626
|
}));
|
|
12605
12627
|
};
|
|
@@ -12623,14 +12645,14 @@ const No = {
|
|
|
12623
12645
|
/* @__PURE__ */ s(
|
|
12624
12646
|
Xs,
|
|
12625
12647
|
{
|
|
12626
|
-
items: y.filter((E) => E.category === "paid").filter((E) => r.some((
|
|
12627
|
-
var
|
|
12648
|
+
items: y.filter((E) => E.category === "paid").filter((E) => r.some((R) => R.value === E.value)).map((E) => {
|
|
12649
|
+
var R;
|
|
12628
12650
|
return {
|
|
12629
12651
|
name: E.name,
|
|
12630
12652
|
value: E.value,
|
|
12631
12653
|
icon: No[E.value],
|
|
12632
12654
|
disabled: c.selectedStems.length === 0 && E.value === "Other",
|
|
12633
|
-
isLocked: (
|
|
12655
|
+
isLocked: (R = r.find((x) => x.value === E.value)) == null ? void 0 : R.isLocked
|
|
12634
12656
|
};
|
|
12635
12657
|
}),
|
|
12636
12658
|
value: c.selectedStems,
|
|
@@ -12655,7 +12677,7 @@ const No = {
|
|
|
12655
12677
|
ls,
|
|
12656
12678
|
{
|
|
12657
12679
|
title: n._("Separate Stems"),
|
|
12658
|
-
disabled: !((
|
|
12680
|
+
disabled: !((N = c == null ? void 0 : c.selectedStems) != null && N.length) || !(c != null && c.trackName),
|
|
12659
12681
|
loading: u,
|
|
12660
12682
|
onClick: k,
|
|
12661
12683
|
besideFooter: /* @__PURE__ */ v(I, { align: "center", gap: "2", children: [
|
|
@@ -12877,10 +12899,10 @@ const No = {
|
|
|
12877
12899
|
aiDetected: y = !1,
|
|
12878
12900
|
textAlign: w = "left",
|
|
12879
12901
|
style: b,
|
|
12880
|
-
onFocus:
|
|
12902
|
+
onFocus: N,
|
|
12881
12903
|
...E
|
|
12882
12904
|
}) => {
|
|
12883
|
-
const
|
|
12905
|
+
const R = A || (g ? /* @__PURE__ */ s(g, { width: 16, height: 16, className: ze.icon }) : null), x = String(n ?? "").length, T = !!l, O = T && !!d;
|
|
12884
12906
|
return /* @__PURE__ */ v(I, { direction: "column", width: "100%", height: "100%", gap: "1", children: [
|
|
12885
12907
|
a && /* @__PURE__ */ v(I, { align: "center", gap: "2", children: [
|
|
12886
12908
|
/* @__PURE__ */ s(j, { size: u, weight: "medium", children: a }),
|
|
@@ -12892,7 +12914,7 @@ const No = {
|
|
|
12892
12914
|
{
|
|
12893
12915
|
size: u,
|
|
12894
12916
|
value: n,
|
|
12895
|
-
onChange:
|
|
12917
|
+
onChange: O ? void 0 : t,
|
|
12896
12918
|
placeholder: r,
|
|
12897
12919
|
className: S(ze.TextField, i, {
|
|
12898
12920
|
[ze.Disabled]: T,
|
|
@@ -12909,17 +12931,17 @@ const No = {
|
|
|
12909
12931
|
},
|
|
12910
12932
|
autoFocus: k,
|
|
12911
12933
|
...E,
|
|
12912
|
-
onFocus:
|
|
12934
|
+
onFocus: O ? void 0 : N,
|
|
12913
12935
|
readOnly: c,
|
|
12914
12936
|
disabled: T,
|
|
12915
12937
|
children: [
|
|
12916
|
-
|
|
12938
|
+
R && /* @__PURE__ */ s(Wl, { children: R }),
|
|
12917
12939
|
y && /* @__PURE__ */ s("span", { className: ze.aiDetected, "aria-hidden": !0, children: /* @__PURE__ */ s("span", { className: ze.aiDetectedMark, children: "✦" }) }),
|
|
12918
12940
|
m && /* @__PURE__ */ s("div", { className: ze.endSlot, children: m })
|
|
12919
12941
|
]
|
|
12920
12942
|
}
|
|
12921
12943
|
),
|
|
12922
|
-
|
|
12944
|
+
O && /* @__PURE__ */ s(
|
|
12923
12945
|
"button",
|
|
12924
12946
|
{
|
|
12925
12947
|
type: "button",
|
|
@@ -12927,10 +12949,10 @@ const No = {
|
|
|
12927
12949
|
"aria-label": a || r || "Activate",
|
|
12928
12950
|
tabIndex: 0,
|
|
12929
12951
|
onPointerDown: (B) => {
|
|
12930
|
-
B.preventDefault(),
|
|
12952
|
+
B.preventDefault(), N == null || N(B);
|
|
12931
12953
|
},
|
|
12932
12954
|
onKeyDown: (B) => {
|
|
12933
|
-
(B.key === "Enter" || B.key === " ") && (B.preventDefault(),
|
|
12955
|
+
(B.key === "Enter" || B.key === " ") && (B.preventDefault(), N == null || N(B));
|
|
12934
12956
|
}
|
|
12935
12957
|
}
|
|
12936
12958
|
)
|
|
@@ -13268,13 +13290,13 @@ const Is = (n, t) => typeof n == "string" ? { title: n, description: "", variant
|
|
|
13268
13290
|
u(k.id);
|
|
13269
13291
|
}, y);
|
|
13270
13292
|
return d.current.set(k.id, w), c((b) => {
|
|
13271
|
-
const
|
|
13272
|
-
return b.forEach((
|
|
13273
|
-
if (!E.has(
|
|
13274
|
-
const x = d.current.get(
|
|
13275
|
-
x && (clearTimeout(x), d.current.delete(
|
|
13293
|
+
const N = [...b.slice(-(r - 1)), k], E = new Set(N.map((R) => R.id));
|
|
13294
|
+
return b.forEach((R) => {
|
|
13295
|
+
if (!E.has(R.id)) {
|
|
13296
|
+
const x = d.current.get(R.id);
|
|
13297
|
+
x && (clearTimeout(x), d.current.delete(R.id));
|
|
13276
13298
|
}
|
|
13277
|
-
}),
|
|
13299
|
+
}), N;
|
|
13278
13300
|
}), k.id;
|
|
13279
13301
|
},
|
|
13280
13302
|
[u, t, r]
|
|
@@ -13509,17 +13531,17 @@ const _N = "_track_mbec5_1", $N = "_name_mbec5_11", eR = "_line_mbec5_22", tR =
|
|
|
13509
13531
|
isOpen: y,
|
|
13510
13532
|
instrumentSelected: w,
|
|
13511
13533
|
device: b,
|
|
13512
|
-
channel:
|
|
13534
|
+
channel: N,
|
|
13513
13535
|
// State change listeners
|
|
13514
13536
|
onVolumeChange: E,
|
|
13515
|
-
onVolumeReset:
|
|
13537
|
+
onVolumeReset: R,
|
|
13516
13538
|
onPanChange: x,
|
|
13517
13539
|
onMutedChange: T,
|
|
13518
|
-
onRecordChange:
|
|
13540
|
+
onRecordChange: O,
|
|
13519
13541
|
onSoloChange: B,
|
|
13520
13542
|
onOpenChange: Q,
|
|
13521
13543
|
onInstrumentChange: D,
|
|
13522
|
-
onDeviceChange:
|
|
13544
|
+
onDeviceChange: M,
|
|
13523
13545
|
onChannelChange: U,
|
|
13524
13546
|
// Children (having content means group/takelanes)
|
|
13525
13547
|
children: P
|
|
@@ -13628,9 +13650,9 @@ const _N = "_track_mbec5_1", $N = "_name_mbec5_11", eR = "_line_mbec5_22", tR =
|
|
|
13628
13650
|
isRecord: C,
|
|
13629
13651
|
deviceOptions: d,
|
|
13630
13652
|
device: b,
|
|
13631
|
-
onDeviceChange:
|
|
13653
|
+
onDeviceChange: M,
|
|
13632
13654
|
channelOptions: u,
|
|
13633
|
-
channel:
|
|
13655
|
+
channel: N,
|
|
13634
13656
|
onChannelChange: U,
|
|
13635
13657
|
inputLevel: g,
|
|
13636
13658
|
children: /* @__PURE__ */ s(
|
|
@@ -13638,7 +13660,7 @@ const _N = "_track_mbec5_1", $N = "_name_mbec5_11", eR = "_line_mbec5_22", tR =
|
|
|
13638
13660
|
{
|
|
13639
13661
|
type: "record",
|
|
13640
13662
|
selected: C,
|
|
13641
|
-
onClick: () =>
|
|
13663
|
+
onClick: () => O == null ? void 0 : O()
|
|
13642
13664
|
}
|
|
13643
13665
|
)
|
|
13644
13666
|
}
|
|
@@ -13694,7 +13716,7 @@ const _N = "_track_mbec5_1", $N = "_name_mbec5_11", eR = "_line_mbec5_22", tR =
|
|
|
13694
13716
|
linear: g,
|
|
13695
13717
|
volume: h,
|
|
13696
13718
|
onVolumeChange: E,
|
|
13697
|
-
onVolumeReset:
|
|
13719
|
+
onVolumeReset: R
|
|
13698
13720
|
}
|
|
13699
13721
|
),
|
|
13700
13722
|
r && /* @__PURE__ */ s(
|
|
@@ -13750,8 +13772,8 @@ function wB({ schema: n }) {
|
|
|
13750
13772
|
}, []), u = (f, k) => {
|
|
13751
13773
|
const y = t[f], w = (b) => d(f, b);
|
|
13752
13774
|
return k === "checkbox" || k === "switch" ? { checked: !!y, onCheckedChange: w } : { value: y ?? "", onChange: (b) => {
|
|
13753
|
-
var
|
|
13754
|
-
return w(((
|
|
13775
|
+
var N;
|
|
13776
|
+
return w(((N = b == null ? void 0 : b.target) == null ? void 0 : N.value) ?? b);
|
|
13755
13777
|
} };
|
|
13756
13778
|
}, g = () => {
|
|
13757
13779
|
const f = n.safeParse(t);
|
|
@@ -13922,13 +13944,13 @@ function Sc({
|
|
|
13922
13944
|
classNamesButton: m,
|
|
13923
13945
|
onPlayStateChange: C
|
|
13924
13946
|
}) {
|
|
13925
|
-
const [f, k] = V(!1), [y, w] = V(!1), [b,
|
|
13947
|
+
const [f, k] = V(!1), [y, w] = V(!1), [b, N] = V(!1), [E, R] = V(!1);
|
|
13926
13948
|
ie(() => {
|
|
13927
|
-
typeof navigator < "u" &&
|
|
13949
|
+
typeof navigator < "u" && R(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
13928
13950
|
}, []);
|
|
13929
|
-
const x = oe(() => a, [a]), T = oe(() => o ? !1 : !x || x && f, [x, f, o]),
|
|
13951
|
+
const x = oe(() => a, [a]), T = oe(() => o ? !1 : !x || x && f, [x, f, o]), O = Y(null), B = Y(null);
|
|
13930
13952
|
ie(() => {
|
|
13931
|
-
b || (!g || i) &&
|
|
13953
|
+
b || (!g || i) && N(!0);
|
|
13932
13954
|
}, [g, i, b]);
|
|
13933
13955
|
const Q = J(() => {
|
|
13934
13956
|
var F;
|
|
@@ -13941,7 +13963,7 @@ function Sc({
|
|
|
13941
13963
|
var F;
|
|
13942
13964
|
B.current && n && ((F = B.current) == null || F.load(n));
|
|
13943
13965
|
}, [n]);
|
|
13944
|
-
const
|
|
13966
|
+
const M = J((F) => {
|
|
13945
13967
|
B.current = F, w(!0), k(!1);
|
|
13946
13968
|
}, []), U = J(
|
|
13947
13969
|
(F) => {
|
|
@@ -14018,7 +14040,7 @@ function Sc({
|
|
|
14018
14040
|
display: T && y ? "block" : "none",
|
|
14019
14041
|
cursor: "pointer"
|
|
14020
14042
|
},
|
|
14021
|
-
ref:
|
|
14043
|
+
ref: O,
|
|
14022
14044
|
children: /* @__PURE__ */ s(
|
|
14023
14045
|
gc,
|
|
14024
14046
|
{
|
|
@@ -14030,7 +14052,7 @@ function Sc({
|
|
|
14030
14052
|
barHeight: 6,
|
|
14031
14053
|
cursorWidth: 0,
|
|
14032
14054
|
height: DR[t] || 36,
|
|
14033
|
-
onReady:
|
|
14055
|
+
onReady: M,
|
|
14034
14056
|
onSeeking: K,
|
|
14035
14057
|
onPlay: U,
|
|
14036
14058
|
onPause: P,
|
|
@@ -14405,7 +14427,7 @@ const YR = "_footerVoiceForm_lsc2c_2", XR = {
|
|
|
14405
14427
|
onClickUpgradeConcurrency: C,
|
|
14406
14428
|
onRemoveTrack: f
|
|
14407
14429
|
}) => {
|
|
14408
|
-
const [k, y] = V(null), [w, b] = V(null), { submitted:
|
|
14430
|
+
const [k, y] = V(null), [w, b] = V(null), { submitted: N, handleSubmit: E } = ja(g), [R, x] = V({
|
|
14409
14431
|
lastPlayed: null,
|
|
14410
14432
|
active: null,
|
|
14411
14433
|
isPlaying: !1,
|
|
@@ -14420,30 +14442,30 @@ const YR = "_footerVoiceForm_lsc2c_2", XR = {
|
|
|
14420
14442
|
}));
|
|
14421
14443
|
},
|
|
14422
14444
|
[n, r]
|
|
14423
|
-
),
|
|
14445
|
+
), O = J(
|
|
14424
14446
|
(P) => {
|
|
14425
14447
|
w !== P && b(P);
|
|
14426
14448
|
},
|
|
14427
14449
|
[w, b]
|
|
14428
14450
|
), B = J(
|
|
14429
14451
|
(P) => {
|
|
14430
|
-
b(null),
|
|
14452
|
+
b(null), R.active && R.active.pause(), x((K) => ({
|
|
14431
14453
|
...K,
|
|
14432
14454
|
isPlaying: !1,
|
|
14433
14455
|
active: null
|
|
14434
14456
|
})), a(P);
|
|
14435
14457
|
},
|
|
14436
|
-
[a,
|
|
14458
|
+
[a, R]
|
|
14437
14459
|
), Q = oe(
|
|
14438
14460
|
() => ({
|
|
14439
|
-
state:
|
|
14461
|
+
state: R,
|
|
14440
14462
|
setter: x
|
|
14441
14463
|
}),
|
|
14442
|
-
[
|
|
14464
|
+
[R]
|
|
14443
14465
|
), D = oe(
|
|
14444
14466
|
() => n.find((P) => P.identifier === i) || n[0],
|
|
14445
14467
|
[n, i]
|
|
14446
|
-
),
|
|
14468
|
+
), M = oe(
|
|
14447
14469
|
() => !!(t.trackName || t.trackId || t.customAudio),
|
|
14448
14470
|
[t.trackName, t.trackId, t.customAudio]
|
|
14449
14471
|
), U = J(() => {
|
|
@@ -14454,19 +14476,19 @@ const YR = "_footerVoiceForm_lsc2c_2", XR = {
|
|
|
14454
14476
|
D && (T(D.identifier), o(), r((P) => {
|
|
14455
14477
|
var K;
|
|
14456
14478
|
return ((K = P.selectedVoice) == null ? void 0 : K.identifier) === D.identifier ? P : { ...P, selectedVoice: D };
|
|
14457
|
-
})),
|
|
14479
|
+
})), M && (D ? E({ selectedVoice: D }) : E());
|
|
14458
14480
|
}, [i, E, D, T, o]);
|
|
14459
14481
|
return ie(() => {
|
|
14460
14482
|
var P;
|
|
14461
|
-
if (
|
|
14483
|
+
if (R.isPlaying === !1)
|
|
14462
14484
|
b(null);
|
|
14463
|
-
else if (
|
|
14485
|
+
else if (R.isPlaying === !0 && R.active) {
|
|
14464
14486
|
const K = (P = n.find(
|
|
14465
|
-
($) =>
|
|
14487
|
+
($) => R.active && $.metadata.previewUrl === R.active.url
|
|
14466
14488
|
)) == null ? void 0 : P.identifier;
|
|
14467
14489
|
K && b(K);
|
|
14468
14490
|
}
|
|
14469
|
-
}, [
|
|
14491
|
+
}, [R, n]), /* @__PURE__ */ v(I, { direction: "column", height: "100%", children: [
|
|
14470
14492
|
/* @__PURE__ */ s(
|
|
14471
14493
|
MR,
|
|
14472
14494
|
{
|
|
@@ -14474,7 +14496,7 @@ const YR = "_footerVoiceForm_lsc2c_2", XR = {
|
|
|
14474
14496
|
selectedId: k,
|
|
14475
14497
|
handleSelect: T,
|
|
14476
14498
|
playingItem: w,
|
|
14477
|
-
handleAvatarClick:
|
|
14499
|
+
handleAvatarClick: O,
|
|
14478
14500
|
handleDetailsClick: B,
|
|
14479
14501
|
wavegroup: Q,
|
|
14480
14502
|
setPlayingItem: b,
|
|
@@ -14523,7 +14545,7 @@ const YR = "_footerVoiceForm_lsc2c_2", XR = {
|
|
|
14523
14545
|
onMountConcurrency: A
|
|
14524
14546
|
}
|
|
14525
14547
|
),
|
|
14526
|
-
!d && !
|
|
14548
|
+
!d && !N && !u && !i && /* @__PURE__ */ s(
|
|
14527
14549
|
qR,
|
|
14528
14550
|
{
|
|
14529
14551
|
trackId: t.trackId,
|
|
@@ -14533,7 +14555,7 @@ const YR = "_footerVoiceForm_lsc2c_2", XR = {
|
|
|
14533
14555
|
onRemoveTrack: f
|
|
14534
14556
|
}
|
|
14535
14557
|
),
|
|
14536
|
-
!d &&
|
|
14558
|
+
!d && N && !u && !i && /* @__PURE__ */ s(tt, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ s(j, { size: "2", children: l._("Voice conversion initialized!") }) }),
|
|
14537
14559
|
!d && u && !i && /* @__PURE__ */ s(
|
|
14538
14560
|
tt,
|
|
14539
14561
|
{
|