@moises.ai/design-system 4.18.7 → 4.18.8
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,7 +31,7 @@ var gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
|
|
|
31
31
|
disabled: g,
|
|
32
32
|
required: C,
|
|
33
33
|
form: m
|
|
34
|
-
} = n, f = Mr(t), [k, y] = A.useState(null), [
|
|
34
|
+
} = n, f = Mr(t), [k, y] = A.useState(null), [N, b] = A.useState(null), [R, E] = A.useState(!1), w = mo(u), [B, x] = vr({
|
|
35
35
|
prop: s,
|
|
36
36
|
defaultProp: o ?? !1,
|
|
37
37
|
onChange: i,
|
|
@@ -49,9 +49,9 @@ var gu = [" ", "Enter", "ArrowUp", "ArrowDown"], mu = [" ", "Enter"], _t = "Sele
|
|
|
49
49
|
scope: t,
|
|
50
50
|
trigger: k,
|
|
51
51
|
onTriggerChange: y,
|
|
52
|
-
valueNode:
|
|
52
|
+
valueNode: N,
|
|
53
53
|
onValueNodeChange: b,
|
|
54
|
-
valueNodeHasChildren:
|
|
54
|
+
valueNodeHasChildren: R,
|
|
55
55
|
onValueNodeHasChildrenChange: E,
|
|
56
56
|
contentId: Ls(),
|
|
57
57
|
value: U,
|
|
@@ -105,8 +105,8 @@ Go.displayName = _t;
|
|
|
105
105
|
var qo = "SelectTrigger", Yo = A.forwardRef(
|
|
106
106
|
(n, t) => {
|
|
107
107
|
const { __scopeSelect: r, disabled: s = !1, ...o } = n, i = Mr(r), l = Mt(qo, r), c = l.disabled || s, d = Pe(t, l.onTriggerChange), u = Qr(r), p = A.useRef("touch"), [h, g, C] = Ci((f) => {
|
|
108
|
-
const k = u().filter((b) => !b.disabled), y = k.find((b) => b.value === l.value),
|
|
109
|
-
|
|
108
|
+
const k = u().filter((b) => !b.disabled), y = k.find((b) => b.value === l.value), N = vi(k, f, y);
|
|
109
|
+
N !== void 0 && l.onValueChange(N.value);
|
|
110
110
|
}), m = (f) => {
|
|
111
111
|
c || (l.onOpenChange(!0), C()), f && (l.triggerPointerDownPosRef.current = {
|
|
112
112
|
x: Math.round(f.pageX),
|
|
@@ -210,7 +210,7 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
210
210
|
avoidCollisions: k,
|
|
211
211
|
//
|
|
212
212
|
...y
|
|
213
|
-
} = n,
|
|
213
|
+
} = n, N = Mt($t, r), [b, R] = A.useState(null), [E, w] = A.useState(null), B = Pe(t, (M) => R(M)), [x, U] = A.useState(null), [T, Q] = A.useState(
|
|
214
214
|
null
|
|
215
215
|
), D = Qr(r), [z, O] = A.useState(!1), P = A.useRef(!1);
|
|
216
216
|
A.useEffect(() => {
|
|
@@ -230,7 +230,7 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
230
230
|
A.useEffect(() => {
|
|
231
231
|
z && $();
|
|
232
232
|
}, [z, $]);
|
|
233
|
-
const { onOpenChange: G, triggerPointerDownPosRef: W } =
|
|
233
|
+
const { onOpenChange: G, triggerPointerDownPosRef: W } = N;
|
|
234
234
|
A.useEffect(() => {
|
|
235
235
|
if (b) {
|
|
236
236
|
let M = { x: 0, y: 0 };
|
|
@@ -259,15 +259,15 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
259
259
|
}), de = A.useCallback(
|
|
260
260
|
(M, L, le) => {
|
|
261
261
|
const ce = !P.current && !le;
|
|
262
|
-
(
|
|
262
|
+
(N.value !== void 0 && N.value === L || ce) && (U(M), ce && (P.current = !0));
|
|
263
263
|
},
|
|
264
|
-
[
|
|
264
|
+
[N.value]
|
|
265
265
|
), ge = A.useCallback(() => b == null ? void 0 : b.focus(), [b]), K = A.useCallback(
|
|
266
266
|
(M, L, le) => {
|
|
267
267
|
const ce = !P.current && !le;
|
|
268
|
-
(
|
|
268
|
+
(N.value !== void 0 && N.value === L || ce) && Q(M);
|
|
269
269
|
},
|
|
270
|
-
[
|
|
270
|
+
[N.value]
|
|
271
271
|
), Z = s === "popper" ? ws : ri, F = Z === ws ? {
|
|
272
272
|
side: c,
|
|
273
273
|
sideOffset: d,
|
|
@@ -300,13 +300,13 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
300
300
|
pc,
|
|
301
301
|
{
|
|
302
302
|
asChild: !0,
|
|
303
|
-
trapped:
|
|
303
|
+
trapped: N.open,
|
|
304
304
|
onMountAutoFocus: (M) => {
|
|
305
305
|
M.preventDefault();
|
|
306
306
|
},
|
|
307
307
|
onUnmountAutoFocus: be(o, (M) => {
|
|
308
308
|
var L;
|
|
309
|
-
(L =
|
|
309
|
+
(L = N.trigger) == null || L.focus({ preventScroll: !0 }), M.preventDefault();
|
|
310
310
|
}),
|
|
311
311
|
children: /* @__PURE__ */ a(
|
|
312
312
|
gc,
|
|
@@ -316,14 +316,14 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
316
316
|
onEscapeKeyDown: i,
|
|
317
317
|
onPointerDownOutside: l,
|
|
318
318
|
onFocusOutside: (M) => M.preventDefault(),
|
|
319
|
-
onDismiss: () =>
|
|
319
|
+
onDismiss: () => N.onOpenChange(!1),
|
|
320
320
|
children: /* @__PURE__ */ a(
|
|
321
321
|
Z,
|
|
322
322
|
{
|
|
323
323
|
role: "listbox",
|
|
324
|
-
id:
|
|
325
|
-
"data-state":
|
|
326
|
-
dir:
|
|
324
|
+
id: N.contentId,
|
|
325
|
+
"data-state": N.open ? "open" : "closed",
|
|
326
|
+
dir: N.dir,
|
|
327
327
|
onContextMenu: (M) => M.preventDefault(),
|
|
328
328
|
...y,
|
|
329
329
|
...F,
|
|
@@ -360,7 +360,7 @@ var nt = 10, [ti, Ut] = yn($t), Iu = "SelectContentImpl", Su = mc("SelectContent
|
|
|
360
360
|
);
|
|
361
361
|
ni.displayName = Iu;
|
|
362
362
|
var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
|
|
363
|
-
const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Mt($t, r), l = Ut($t, r), [c, d] = A.useState(null), [u, p] = A.useState(null), h = Pe(t, (B) => p(B)), g = Qr(r), C = A.useRef(!1), m = A.useRef(!0), { viewport: f, selectedItem: k, selectedItemText: y, focusSelectedItem:
|
|
363
|
+
const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Mt($t, r), l = Ut($t, r), [c, d] = A.useState(null), [u, p] = A.useState(null), h = Pe(t, (B) => p(B)), g = Qr(r), C = A.useRef(!1), m = A.useRef(!0), { viewport: f, selectedItem: k, selectedItemText: y, focusSelectedItem: N } = l, b = A.useCallback(() => {
|
|
364
364
|
if (i.trigger && i.valueNode && c && u && f && k && y) {
|
|
365
365
|
const B = i.trigger.getBoundingClientRect(), x = u.getBoundingClientRect(), U = i.valueNode.getBoundingClientRect(), T = y.getBoundingClientRect();
|
|
366
366
|
if (i.dir !== "rtl") {
|
|
@@ -416,15 +416,15 @@ var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
|
|
|
416
416
|
s
|
|
417
417
|
]);
|
|
418
418
|
Jt(() => b(), [b]);
|
|
419
|
-
const [
|
|
419
|
+
const [R, E] = A.useState();
|
|
420
420
|
Jt(() => {
|
|
421
421
|
u && E(window.getComputedStyle(u).zIndex);
|
|
422
422
|
}, [u]);
|
|
423
423
|
const w = A.useCallback(
|
|
424
424
|
(B) => {
|
|
425
|
-
B && m.current === !0 && (b(),
|
|
425
|
+
B && m.current === !0 && (b(), N == null || N(), m.current = !1);
|
|
426
426
|
},
|
|
427
|
-
[b,
|
|
427
|
+
[b, N]
|
|
428
428
|
);
|
|
429
429
|
return /* @__PURE__ */ a(
|
|
430
430
|
Nu,
|
|
@@ -441,7 +441,7 @@ var Eu = "SelectItemAlignedPosition", ri = A.forwardRef((n, t) => {
|
|
|
441
441
|
display: "flex",
|
|
442
442
|
flexDirection: "column",
|
|
443
443
|
position: "fixed",
|
|
444
|
-
zIndex:
|
|
444
|
+
zIndex: R
|
|
445
445
|
},
|
|
446
446
|
children: /* @__PURE__ */ a(
|
|
447
447
|
De.div,
|
|
@@ -533,8 +533,8 @@ var [Nu, na] = yn($t, {}), Ns = "SelectViewport", si = A.forwardRef(
|
|
|
533
533
|
if (C > 0) {
|
|
534
534
|
const m = window.innerHeight - nt * 2, f = parseFloat(h.style.minHeight), k = parseFloat(h.style.height), y = Math.max(f, k);
|
|
535
535
|
if (y < m) {
|
|
536
|
-
const
|
|
537
|
-
h.style.height = b + "px", h.style.bottom === "0px" && (p.scrollTop =
|
|
536
|
+
const N = y + C, b = Math.min(m, N), R = N - b;
|
|
537
|
+
h.style.height = b + "px", h.style.bottom === "0px" && (p.scrollTop = R > 0 ? R : 0, h.style.justifyContent = "flex-end");
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -570,9 +570,9 @@ var kr = "SelectItem", [xu, ci] = yn(kr), di = A.forwardRef(
|
|
|
570
570
|
...l
|
|
571
571
|
} = n, c = Mt(kr, r), d = Ut(kr, r), u = c.value === s, [p, h] = A.useState(i ?? ""), [g, C] = A.useState(!1), m = Pe(
|
|
572
572
|
t,
|
|
573
|
-
(
|
|
573
|
+
(N) => {
|
|
574
574
|
var b;
|
|
575
|
-
return (b = d.itemRefCallback) == null ? void 0 : b.call(d,
|
|
575
|
+
return (b = d.itemRefCallback) == null ? void 0 : b.call(d, N, s, o);
|
|
576
576
|
}
|
|
577
577
|
), f = Ls(), k = A.useRef("touch"), y = () => {
|
|
578
578
|
o || (c.onValueChange(s), c.onOpenChange(!1));
|
|
@@ -589,8 +589,8 @@ var kr = "SelectItem", [xu, ci] = yn(kr), di = A.forwardRef(
|
|
|
589
589
|
disabled: o,
|
|
590
590
|
textId: f,
|
|
591
591
|
isSelected: u,
|
|
592
|
-
onItemTextChange: A.useCallback((
|
|
593
|
-
h((b) => b || ((
|
|
592
|
+
onItemTextChange: A.useCallback((N) => {
|
|
593
|
+
h((b) => b || ((N == null ? void 0 : N.textContent) ?? "").trim());
|
|
594
594
|
}, []),
|
|
595
595
|
children: /* @__PURE__ */ a(
|
|
596
596
|
Jr.ItemSlot,
|
|
@@ -620,20 +620,20 @@ var kr = "SelectItem", [xu, ci] = yn(kr), di = A.forwardRef(
|
|
|
620
620
|
onPointerUp: be(l.onPointerUp, () => {
|
|
621
621
|
k.current === "mouse" && y();
|
|
622
622
|
}),
|
|
623
|
-
onPointerDown: be(l.onPointerDown, (
|
|
624
|
-
k.current =
|
|
623
|
+
onPointerDown: be(l.onPointerDown, (N) => {
|
|
624
|
+
k.current = N.pointerType;
|
|
625
625
|
}),
|
|
626
|
-
onPointerMove: be(l.onPointerMove, (
|
|
626
|
+
onPointerMove: be(l.onPointerMove, (N) => {
|
|
627
627
|
var b;
|
|
628
|
-
k.current =
|
|
628
|
+
k.current = N.pointerType, o ? (b = d.onItemLeave) == null || b.call(d) : k.current === "mouse" && N.currentTarget.focus({ preventScroll: !0 });
|
|
629
629
|
}),
|
|
630
|
-
onPointerLeave: be(l.onPointerLeave, (
|
|
630
|
+
onPointerLeave: be(l.onPointerLeave, (N) => {
|
|
631
631
|
var b;
|
|
632
|
-
|
|
632
|
+
N.currentTarget === document.activeElement && ((b = d.onItemLeave) == null || b.call(d));
|
|
633
633
|
}),
|
|
634
|
-
onKeyDown: be(l.onKeyDown, (
|
|
635
|
-
var
|
|
636
|
-
((
|
|
634
|
+
onKeyDown: be(l.onKeyDown, (N) => {
|
|
635
|
+
var R;
|
|
636
|
+
((R = d.searchRef) == null ? void 0 : R.current) !== "" && N.key === " " || (mu.includes(N.key) && y(), N.key === " " && N.preventDefault());
|
|
637
637
|
})
|
|
638
638
|
}
|
|
639
639
|
)
|
|
@@ -651,8 +651,8 @@ var Pn = "SelectItemText", ui = A.forwardRef(
|
|
|
651
651
|
(y) => h(y),
|
|
652
652
|
d.onItemTextChange,
|
|
653
653
|
(y) => {
|
|
654
|
-
var
|
|
655
|
-
return (
|
|
654
|
+
var N;
|
|
655
|
+
return (N = c.itemTextRefCallback) == null ? void 0 : N.call(c, y, d.value, d.disabled);
|
|
656
656
|
}
|
|
657
657
|
), C = p == null ? void 0 : p.textContent, m = A.useMemo(
|
|
658
658
|
() => /* @__PURE__ */ a("option", { value: d.value, disabled: d.disabled, children: C }, d.value),
|
|
@@ -842,16 +842,16 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
|
|
|
842
842
|
inverted: C = !1,
|
|
843
843
|
form: m,
|
|
844
844
|
...f
|
|
845
|
-
} = n, k = A.useRef(/* @__PURE__ */ new Set()), y = A.useRef(0), b = l === "horizontal" ? eh : th, [
|
|
845
|
+
} = n, k = A.useRef(/* @__PURE__ */ new Set()), y = A.useRef(0), b = l === "horizontal" ? eh : th, [R = [], E] = vr({
|
|
846
846
|
prop: p,
|
|
847
847
|
defaultProp: u,
|
|
848
848
|
onChange: (Q) => {
|
|
849
849
|
var z;
|
|
850
850
|
(z = [...k.current][y.current]) == null || z.focus(), h(Q);
|
|
851
851
|
}
|
|
852
|
-
}), w = A.useRef(
|
|
852
|
+
}), w = A.useRef(R);
|
|
853
853
|
function B(Q) {
|
|
854
|
-
const D = oh(
|
|
854
|
+
const D = oh(R, Q);
|
|
855
855
|
T(Q, D);
|
|
856
856
|
}
|
|
857
857
|
function x(Q) {
|
|
@@ -859,7 +859,7 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
|
|
|
859
859
|
}
|
|
860
860
|
function U() {
|
|
861
861
|
const Q = w.current[y.current];
|
|
862
|
-
|
|
862
|
+
R[y.current] !== Q && g(R);
|
|
863
863
|
}
|
|
864
864
|
function T(Q, D, { commit: z } = { commit: !1 }) {
|
|
865
865
|
const O = dh(i), P = uh(Math.round((Q - s) / i) * i + s, O), V = yr(P, [s, o]);
|
|
@@ -883,7 +883,7 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
|
|
|
883
883
|
max: o,
|
|
884
884
|
valueIndexToChangeRef: y,
|
|
885
885
|
thumbs: k.current,
|
|
886
|
-
values:
|
|
886
|
+
values: R,
|
|
887
887
|
orientation: l,
|
|
888
888
|
form: m,
|
|
889
889
|
children: /* @__PURE__ */ a(Ts.Provider, { scope: n.__scopeSlider, children: /* @__PURE__ */ a(Ts.Slot, { scope: n.__scopeSlider, children: /* @__PURE__ */ a(
|
|
@@ -894,7 +894,7 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
|
|
|
894
894
|
...f,
|
|
895
895
|
ref: t,
|
|
896
896
|
onPointerDown: be(f.onPointerDown, () => {
|
|
897
|
-
c || (w.current =
|
|
897
|
+
c || (w.current = R);
|
|
898
898
|
}),
|
|
899
899
|
min: s,
|
|
900
900
|
max: o,
|
|
@@ -903,10 +903,10 @@ var Ou = Go, Pu = Yo, Fu = Zo, zu = _o, Wu = $o, Hu = ei, Lu = si, Ku = oi, Vu =
|
|
|
903
903
|
onSlideMove: c ? void 0 : x,
|
|
904
904
|
onSlideEnd: c ? void 0 : U,
|
|
905
905
|
onHomeKeyDown: () => !c && T(s, 0, { commit: !0 }),
|
|
906
|
-
onEndKeyDown: () => !c && T(o,
|
|
906
|
+
onEndKeyDown: () => !c && T(o, R.length - 1, { commit: !0 }),
|
|
907
907
|
onStepKeyDown: ({ event: Q, direction: D }) => {
|
|
908
908
|
if (!c) {
|
|
909
|
-
const P = yi.includes(Q.key) || Q.shiftKey && ki.includes(Q.key) ? 10 : 1, V = y.current, $ =
|
|
909
|
+
const P = yi.includes(Q.key) || Q.shiftKey && ki.includes(Q.key) ? 10 : 1, V = y.current, $ = R[V], G = i * P * D;
|
|
910
910
|
T($ + G, V, { commit: !0 });
|
|
911
911
|
}
|
|
912
912
|
}
|
|
@@ -935,9 +935,9 @@ var [Si, Ei] = Ii(kn, {
|
|
|
935
935
|
onStepKeyDown: u,
|
|
936
936
|
...p
|
|
937
937
|
} = n, [h, g] = A.useState(null), C = Pe(t, (b) => g(b)), m = A.useRef(void 0), f = mo(o), k = f === "ltr", y = k && !i || !k && i;
|
|
938
|
-
function
|
|
939
|
-
const
|
|
940
|
-
return m.current =
|
|
938
|
+
function N(b) {
|
|
939
|
+
const R = m.current || h.getBoundingClientRect(), E = [0, R.width], B = ia(E, y ? [r, s] : [s, r]);
|
|
940
|
+
return m.current = R, B(b - R.left);
|
|
941
941
|
}
|
|
942
942
|
return /* @__PURE__ */ a(
|
|
943
943
|
Si,
|
|
@@ -959,12 +959,12 @@ var [Si, Ei] = Ii(kn, {
|
|
|
959
959
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
960
960
|
},
|
|
961
961
|
onSlideStart: (b) => {
|
|
962
|
-
const
|
|
963
|
-
l == null || l(
|
|
962
|
+
const R = N(b.clientX);
|
|
963
|
+
l == null || l(R);
|
|
964
964
|
},
|
|
965
965
|
onSlideMove: (b) => {
|
|
966
|
-
const
|
|
967
|
-
c == null || c(
|
|
966
|
+
const R = N(b.clientX);
|
|
967
|
+
c == null || c(R);
|
|
968
968
|
},
|
|
969
969
|
onSlideEnd: () => {
|
|
970
970
|
m.current = void 0, d == null || d();
|
|
@@ -1113,7 +1113,7 @@ var Js = "SliderThumb", oa = A.forwardRef(
|
|
|
1113
1113
|
}
|
|
1114
1114
|
), nh = A.forwardRef(
|
|
1115
1115
|
(n, t) => {
|
|
1116
|
-
const { __scopeSlider: r, index: s, name: o, ...i } = n, l = Ur(Js, r), c = Ei(Js, r), [d, u] = A.useState(null), p = Pe(t, (
|
|
1116
|
+
const { __scopeSlider: r, index: s, name: o, ...i } = n, l = Ur(Js, r), c = Ei(Js, r), [d, u] = A.useState(null), p = Pe(t, (N) => u(N)), h = d ? l.form || !!d.closest("form") : !0, g = vc(d), C = l.values[s], m = C === void 0 ? 0 : Bi(C, l.min, l.max), f = ah(s, l.values.length), k = g == null ? void 0 : g[c.size], y = k ? ih(k, m, c.direction) : 0;
|
|
1117
1117
|
return A.useEffect(() => {
|
|
1118
1118
|
if (d)
|
|
1119
1119
|
return l.thumbs.add(d), () => {
|
|
@@ -1437,15 +1437,15 @@ const Mi = A.forwardRef((n, t) => {
|
|
|
1437
1437
|
A.useEffect(() => f(o), [o]);
|
|
1438
1438
|
const [k, y] = A.useState(i);
|
|
1439
1439
|
A.useEffect(() => y(i), [i]);
|
|
1440
|
-
const [
|
|
1440
|
+
const [N, b] = A.useState(l);
|
|
1441
1441
|
A.useEffect(() => b(l), [l]);
|
|
1442
|
-
const [
|
|
1443
|
-
return A.useEffect(() => E(c), [c]), A.createElement(ca, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: p, accentColor: g, grayColor: m, panelBackground: k, radius:
|
|
1442
|
+
const [R, E] = A.useState(c);
|
|
1443
|
+
return A.useEffect(() => E(c), [c]), A.createElement(ca, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: p, accentColor: g, grayColor: m, panelBackground: k, radius: N, scaling: R, onAppearanceChange: h, onAccentColorChange: C, onGrayColorChange: f, onPanelBackgroundChange: y, onRadiusChange: b, onScalingChange: E });
|
|
1444
1444
|
});
|
|
1445
1445
|
Mi.displayName = "ThemeRoot";
|
|
1446
1446
|
const ca = A.forwardRef((n, t) => {
|
|
1447
|
-
const r = A.useContext(br), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? Ze.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? Ze.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? Ze.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? Ze.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? Ze.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? Ze.scaling.default, onAppearanceChange: g = an, onAccentColorChange: C = an, onGrayColorChange: m = an, onPanelBackgroundChange: f = an, onRadiusChange: k = an, onScalingChange: y = an, ...
|
|
1448
|
-
return A.createElement(br.Provider, { value: A.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor:
|
|
1447
|
+
const r = A.useContext(br), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? Ze.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? Ze.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? Ze.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? Ze.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? Ze.radius.default, scaling: h = (r == null ? void 0 : r.scaling) ?? Ze.scaling.default, onAppearanceChange: g = an, onAccentColorChange: C = an, onGrayColorChange: m = an, onPanelBackgroundChange: f = an, onRadiusChange: k = an, onScalingChange: y = an, ...N } = n, b = s ? Je : "div", R = d === "auto" ? wh(c) : d, E = n.appearance === "light" || n.appearance === "dark", w = i === void 0 ? o || E : i;
|
|
1448
|
+
return A.createElement(br.Provider, { value: A.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: R, panelBackground: u, radius: p, scaling: h, onAppearanceChange: g, onAccentColorChange: C, onGrayColorChange: m, onPanelBackgroundChange: f, onRadiusChange: k, onScalingChange: y }), [l, c, d, R, u, p, h, g, C, m, f, k, y]) }, A.createElement(b, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": R, "data-has-background": w ? "true" : "false", "data-panel-background": u, "data-radius": p, "data-scaling": h, ref: t, ...N, className: I("radix-themes", { light: l === "light", dark: l === "dark" }, N.className) }));
|
|
1449
1449
|
});
|
|
1450
1450
|
ca.displayName = "ThemeImpl";
|
|
1451
1451
|
const Pt = (n) => {
|
|
@@ -2337,20 +2337,20 @@ const km = "_Callout_1lwt5_1", bm = "_size1_1lwt5_5", Im = "_onlyButton_1lwt5_5"
|
|
|
2337
2337
|
iconButtonProps: p,
|
|
2338
2338
|
...h
|
|
2339
2339
|
}) => {
|
|
2340
|
-
const g = !!u, C = !!p, m = g || C, f = Pm(r), k = Fm(r), y = r === "3" ? "3" : "2",
|
|
2340
|
+
const g = !!u, C = !!p, m = g || C, f = Pm(r), k = Fm(r), y = r === "3" ? "3" : "2", N = X(null), b = X(null), [R, E] = j("start");
|
|
2341
2341
|
Qo(() => {
|
|
2342
2342
|
if (!m) {
|
|
2343
2343
|
E("start");
|
|
2344
2344
|
return;
|
|
2345
2345
|
}
|
|
2346
|
-
if (!
|
|
2346
|
+
if (!N.current || !b.current) return;
|
|
2347
2347
|
const B = () => {
|
|
2348
|
-
const U =
|
|
2348
|
+
const U = N.current.scrollHeight, T = b.current.scrollHeight;
|
|
2349
2349
|
E(U <= T ? "center" : "start");
|
|
2350
2350
|
};
|
|
2351
2351
|
B();
|
|
2352
2352
|
const x = new ResizeObserver(B);
|
|
2353
|
-
return x.observe(
|
|
2353
|
+
return x.observe(N.current), x.observe(b.current), () => x.disconnect();
|
|
2354
2354
|
}, [m]);
|
|
2355
2355
|
const w = () => d ? null : /* @__PURE__ */ a(ga, { style: { height: k }, children: /* @__PURE__ */ a(i, { width: f, height: f }) });
|
|
2356
2356
|
return /* @__PURE__ */ a(en, { asChild: !0, children: /* @__PURE__ */ a(
|
|
@@ -2370,7 +2370,7 @@ const km = "_Callout_1lwt5_1", bm = "_size1_1lwt5_5", Im = "_onlyButton_1lwt5_5"
|
|
|
2370
2370
|
C && !g && on.onlyIconButton
|
|
2371
2371
|
),
|
|
2372
2372
|
...h,
|
|
2373
|
-
children: /* @__PURE__ */ v(S, { justify: "between", gap: "3", width: "100%", align:
|
|
2373
|
+
children: /* @__PURE__ */ v(S, { justify: "between", gap: "3", width: "100%", align: R, children: [
|
|
2374
2374
|
/* @__PURE__ */ v(
|
|
2375
2375
|
S,
|
|
2376
2376
|
{
|
|
@@ -2379,7 +2379,7 @@ const km = "_Callout_1lwt5_1", bm = "_size1_1lwt5_5", Im = "_onlyButton_1lwt5_5"
|
|
|
2379
2379
|
width: "100%",
|
|
2380
2380
|
children: [
|
|
2381
2381
|
w(),
|
|
2382
|
-
/* @__PURE__ */ v(S, { direction: "column", gap: "1", width: "100%", ref:
|
|
2382
|
+
/* @__PURE__ */ v(S, { direction: "column", gap: "1", width: "100%", ref: N, children: [
|
|
2383
2383
|
c && /* @__PURE__ */ a(Y, { size: y, weight: "bold", children: c }),
|
|
2384
2384
|
/* @__PURE__ */ a(Y, { size: y, weight: "regular", children: l || n })
|
|
2385
2385
|
] })
|
|
@@ -2981,17 +2981,17 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
2981
2981
|
if (u.length > 1) {
|
|
2982
2982
|
const p = new Set(u), h = u.map((y) => n[y]).filter(Boolean), g = u.filter(
|
|
2983
2983
|
(y) => y < i
|
|
2984
|
-
).length, C = i - g, f = [...n.filter((y,
|
|
2984
|
+
).length, C = i - g, f = [...n.filter((y, N) => !p.has(N))];
|
|
2985
2985
|
return f.splice(C, 0, ...h), f.some(
|
|
2986
|
-
(y,
|
|
2986
|
+
(y, N) => {
|
|
2987
2987
|
var b;
|
|
2988
|
-
return (y == null ? void 0 : y.id) !== ((b = n[
|
|
2988
|
+
return (y == null ? void 0 : y.id) !== ((b = n[N]) == null ? void 0 : b.id);
|
|
2989
2989
|
}
|
|
2990
2990
|
) ? {
|
|
2991
2991
|
order: r,
|
|
2992
2992
|
move_before: i,
|
|
2993
2993
|
orders: u,
|
|
2994
|
-
rowIds: h.map((y,
|
|
2994
|
+
rowIds: h.map((y, N) => Xt(y, N)).filter(Boolean),
|
|
2995
2995
|
mode: "multi"
|
|
2996
2996
|
} : null;
|
|
2997
2997
|
}
|
|
@@ -3101,7 +3101,7 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
3101
3101
|
u(x), h(x), C(D), i == null || i(D, B.activatorEvent);
|
|
3102
3102
|
},
|
|
3103
3103
|
[i, f, r, t]
|
|
3104
|
-
),
|
|
3104
|
+
), N = J((B) => {
|
|
3105
3105
|
var x;
|
|
3106
3106
|
h((x = B.over) != null && x.id ? String(B.over.id) : null);
|
|
3107
3107
|
}, []), b = J(
|
|
@@ -3109,7 +3109,7 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
3109
3109
|
g != null && g.row && (l == null || l(g.row, B == null ? void 0 : B.activatorEvent)), k();
|
|
3110
3110
|
},
|
|
3111
3111
|
[g, l, k]
|
|
3112
|
-
),
|
|
3112
|
+
), R = J(
|
|
3113
3113
|
(B) => {
|
|
3114
3114
|
var Q, D;
|
|
3115
3115
|
const x = String(((Q = B.active) == null ? void 0 : Q.id) ?? ""), U = (D = B.over) != null && D.id ? String(B.over.id) : null, T = f.get(x) ?? (g == null ? void 0 : g.row);
|
|
@@ -3151,19 +3151,19 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
3151
3151
|
sensors: m,
|
|
3152
3152
|
collisionDetection: au,
|
|
3153
3153
|
onDragStart: y,
|
|
3154
|
-
onDragOver:
|
|
3154
|
+
onDragOver: N,
|
|
3155
3155
|
onDragCancel: b,
|
|
3156
|
-
onDragEnd:
|
|
3156
|
+
onDragEnd: R
|
|
3157
3157
|
}),
|
|
3158
|
-
[b,
|
|
3158
|
+
[b, R, N, y, m]
|
|
3159
3159
|
), w = oe(
|
|
3160
3160
|
() => ({
|
|
3161
3161
|
onDragStart: y,
|
|
3162
|
-
onDragOver:
|
|
3162
|
+
onDragOver: N,
|
|
3163
3163
|
onDragCancel: b,
|
|
3164
|
-
onDragEnd:
|
|
3164
|
+
onDragEnd: R
|
|
3165
3165
|
}),
|
|
3166
|
-
[y,
|
|
3166
|
+
[y, N, b, R]
|
|
3167
3167
|
);
|
|
3168
3168
|
return {
|
|
3169
3169
|
dndContextProps: E,
|
|
@@ -3217,22 +3217,22 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
3217
3217
|
)
|
|
3218
3218
|
}
|
|
3219
3219
|
),
|
|
3220
|
-
n.map((y,
|
|
3220
|
+
n.map((y, N) => /* @__PURE__ */ a(
|
|
3221
3221
|
Hn,
|
|
3222
3222
|
{
|
|
3223
3223
|
className: I(ne.columnHeaderCell, {
|
|
3224
|
-
[ne.columnProject]:
|
|
3225
|
-
[ne.dataColumn]:
|
|
3224
|
+
[ne.columnProject]: N === 0,
|
|
3225
|
+
[ne.dataColumn]: N !== 0,
|
|
3226
3226
|
[ne.mobileVisibleDataColumn]: y.id === s,
|
|
3227
3227
|
[ne.sortedColumn]: nr(t) === nr(y.id)
|
|
3228
3228
|
}),
|
|
3229
3229
|
children: /* @__PURE__ */ v(S, { align: "center", gap: "3", height: "24px", children: [
|
|
3230
|
-
|
|
3230
|
+
N === 0 && o ? /* @__PURE__ */ a(Y, { size: "2", weight: "regular", className: ne.headerTextFirst, children: l }) : y.sortable ? /* @__PURE__ */ v(
|
|
3231
3231
|
"button",
|
|
3232
3232
|
{
|
|
3233
3233
|
type: "button",
|
|
3234
3234
|
className: I(ne.sortButton, {
|
|
3235
|
-
[ne.sortButtonFirst]:
|
|
3235
|
+
[ne.sortButtonFirst]: N === 0
|
|
3236
3236
|
}),
|
|
3237
3237
|
onClick: () => f(y.id),
|
|
3238
3238
|
children: [
|
|
@@ -3241,7 +3241,7 @@ const Xf = "_DataTable_kyf7f_1", Zf = "_titleText_kyf7f_23", _f = "_artistText_k
|
|
|
3241
3241
|
]
|
|
3242
3242
|
}
|
|
3243
3243
|
) : /* @__PURE__ */ a(Y, { size: "2", className: ne.headerText, children: y.label }),
|
|
3244
|
-
|
|
3244
|
+
N === 0 && g && /* @__PURE__ */ a(S, { gap: "2", className: ne.headerActions, children: g({
|
|
3245
3245
|
selectedCount: c,
|
|
3246
3246
|
total: d,
|
|
3247
3247
|
anySelected: o,
|
|
@@ -3296,11 +3296,11 @@ const YC = Te.memo(function({
|
|
|
3296
3296
|
renderDataCell: f,
|
|
3297
3297
|
rowDraggable: k,
|
|
3298
3298
|
reorderable: y,
|
|
3299
|
-
isDragOver:
|
|
3299
|
+
isDragOver: N,
|
|
3300
3300
|
dndScopeId: b
|
|
3301
3301
|
}) {
|
|
3302
3302
|
var Z;
|
|
3303
|
-
const
|
|
3303
|
+
const R = X(!1), E = X(!1), w = X(!1), B = X(!1), { listeners: x, setNodeRef: U, transform: T, transition: Q, isDragging: D } = du({
|
|
3304
3304
|
id: r,
|
|
3305
3305
|
disabled: !Va({ row: t, rowDraggable: k, reorderable: y }),
|
|
3306
3306
|
data: {
|
|
@@ -3322,14 +3322,14 @@ const YC = Te.memo(function({
|
|
|
3322
3322
|
}, V = (F) => {
|
|
3323
3323
|
F.pointerType === "touch" && (E.current = !0, F.shiftKey ? C == null || C(t, s) : h == null || h(t));
|
|
3324
3324
|
}, $ = (F) => {
|
|
3325
|
-
F.stopPropagation(), F.shiftKey && (F.preventDefault(),
|
|
3326
|
-
|
|
3325
|
+
F.stopPropagation(), F.shiftKey && (F.preventDefault(), R.current = !0, C == null || C(t, s), setTimeout(() => {
|
|
3326
|
+
R.current = !1;
|
|
3327
3327
|
}, 0));
|
|
3328
3328
|
}, G = (F) => {
|
|
3329
3329
|
if (F.key === "Enter") {
|
|
3330
3330
|
if (F.preventDefault(), F.stopPropagation(), F.shiftKey) {
|
|
3331
|
-
|
|
3332
|
-
|
|
3331
|
+
R.current = !0, C == null || C(t, s), setTimeout(() => {
|
|
3332
|
+
R.current = !1;
|
|
3333
3333
|
}, 0);
|
|
3334
3334
|
return;
|
|
3335
3335
|
}
|
|
@@ -3344,8 +3344,8 @@ const YC = Te.memo(function({
|
|
|
3344
3344
|
}, q = (F) => {
|
|
3345
3345
|
F.pointerType === "touch" && (F.stopPropagation(), w.current = !0, F.shiftKey ? C == null || C(t, s) : r != null && (g == null || g(r, !i)));
|
|
3346
3346
|
}, he = (F) => {
|
|
3347
|
-
if (
|
|
3348
|
-
|
|
3347
|
+
if (R.current) {
|
|
3348
|
+
R.current = !1;
|
|
3349
3349
|
return;
|
|
3350
3350
|
}
|
|
3351
3351
|
if (w.current) {
|
|
@@ -3367,7 +3367,7 @@ const YC = Te.memo(function({
|
|
|
3367
3367
|
[ne.rowSelected]: i,
|
|
3368
3368
|
[ne.showDropdownOnSelect]: de,
|
|
3369
3369
|
[ne.rowDragging]: D,
|
|
3370
|
-
[ne.rowDragOver]: K &&
|
|
3370
|
+
[ne.rowDragOver]: K && N,
|
|
3371
3371
|
[ne.rowReorderable]: K
|
|
3372
3372
|
}),
|
|
3373
3373
|
style: O,
|
|
@@ -3487,24 +3487,24 @@ const YC = Te.memo(function({
|
|
|
3487
3487
|
overDragRowId: f,
|
|
3488
3488
|
dndScopeId: k
|
|
3489
3489
|
}) => {
|
|
3490
|
-
const y = t.length + 1 + (d ? 1 : 0),
|
|
3490
|
+
const y = t.length + 1 + (d ? 1 : 0), N = J((R) => /* @__PURE__ */ v(S, { align: "center", gap: "3", children: [
|
|
3491
3491
|
/* @__PURE__ */ a(
|
|
3492
3492
|
es,
|
|
3493
3493
|
{
|
|
3494
|
-
title:
|
|
3494
|
+
title: R.title,
|
|
3495
3495
|
size: 48,
|
|
3496
3496
|
className: ne.thumb,
|
|
3497
|
-
type:
|
|
3498
|
-
cover:
|
|
3497
|
+
type: R.type,
|
|
3498
|
+
cover: R.thumb
|
|
3499
3499
|
}
|
|
3500
3500
|
),
|
|
3501
3501
|
/* @__PURE__ */ v(S, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
3502
|
-
/* @__PURE__ */ a(Y, { size: "2", className: ne.titleText, children:
|
|
3503
|
-
/* @__PURE__ */ a(Y, { size: "1", className: ne.artistText, children:
|
|
3502
|
+
/* @__PURE__ */ a(Y, { size: "2", className: ne.titleText, children: R.title }),
|
|
3503
|
+
/* @__PURE__ */ a(Y, { size: "1", className: ne.artistText, children: R.artist })
|
|
3504
3504
|
] })
|
|
3505
|
-
] }), []), b = J((
|
|
3505
|
+
] }), []), b = J((R, E, w) => {
|
|
3506
3506
|
var T;
|
|
3507
|
-
const B = (
|
|
3507
|
+
const B = (R == null ? void 0 : R[E.id]) ?? (R == null ? void 0 : R[`${E.id}Formatted`]), x = ((T = E.render) == null ? void 0 : T.call(E, { row: R, value: B, column: E, index: w })) ?? B;
|
|
3508
3508
|
return typeof x == "string" || typeof x == "number" || x == null ? /* @__PURE__ */ a(Y, { size: "2", className: ne.cellText, children: x }) : x;
|
|
3509
3509
|
}, []);
|
|
3510
3510
|
return /* @__PURE__ */ a(Ta, { children: /* @__PURE__ */ v(uu, { items: r, strategy: hu, children: [
|
|
@@ -3516,14 +3516,14 @@ const YC = Te.memo(function({
|
|
|
3516
3516
|
colSpan: y
|
|
3517
3517
|
}
|
|
3518
3518
|
),
|
|
3519
|
-
n.map((
|
|
3519
|
+
n.map((R, E) => /* @__PURE__ */ a(
|
|
3520
3520
|
YC,
|
|
3521
3521
|
{
|
|
3522
|
-
rowId:
|
|
3523
|
-
row:
|
|
3522
|
+
rowId: R.id,
|
|
3523
|
+
row: R,
|
|
3524
3524
|
rowIndex: E,
|
|
3525
3525
|
columns: t,
|
|
3526
|
-
isSelected: s(
|
|
3526
|
+
isSelected: s(R, E),
|
|
3527
3527
|
anyRowSelected: o,
|
|
3528
3528
|
selectedCount: i,
|
|
3529
3529
|
sortedKey: l,
|
|
@@ -3532,14 +3532,14 @@ const YC = Te.memo(function({
|
|
|
3532
3532
|
onRowClick: u,
|
|
3533
3533
|
onSelectRow: p,
|
|
3534
3534
|
onShiftClickRow: h,
|
|
3535
|
-
renderProjectCell:
|
|
3535
|
+
renderProjectCell: N,
|
|
3536
3536
|
renderDataCell: b,
|
|
3537
3537
|
rowDraggable: g,
|
|
3538
3538
|
reorderable: C,
|
|
3539
|
-
isDragOver: C && f ===
|
|
3539
|
+
isDragOver: C && f === R.id && m !== R.id,
|
|
3540
3540
|
dndScopeId: k
|
|
3541
3541
|
},
|
|
3542
|
-
|
|
3542
|
+
R.id
|
|
3543
3543
|
)),
|
|
3544
3544
|
C && /* @__PURE__ */ a(
|
|
3545
3545
|
ja,
|
|
@@ -3569,9 +3569,9 @@ const YC = Te.memo(function({
|
|
|
3569
3569
|
rowDraggable: f,
|
|
3570
3570
|
onRowDragStart: k,
|
|
3571
3571
|
onRowDragMove: y,
|
|
3572
|
-
onRowDragEnd:
|
|
3572
|
+
onRowDragEnd: N,
|
|
3573
3573
|
getDragPreviewLabel: b,
|
|
3574
|
-
getDragPreviewCountLabel:
|
|
3574
|
+
getDragPreviewCountLabel: R,
|
|
3575
3575
|
renderDragPreview: E,
|
|
3576
3576
|
renderDndContext: w = !0,
|
|
3577
3577
|
dndScopeId: B,
|
|
@@ -3638,7 +3638,7 @@ const YC = Te.memo(function({
|
|
|
3638
3638
|
reorderable: C,
|
|
3639
3639
|
onReorder: m,
|
|
3640
3640
|
onRowDragStart: k,
|
|
3641
|
-
onRowDragEnd:
|
|
3641
|
+
onRowDragEnd: N,
|
|
3642
3642
|
dndScopeId: B
|
|
3643
3643
|
}), ee = X(ae);
|
|
3644
3644
|
ee.current = ae;
|
|
@@ -3702,7 +3702,7 @@ const YC = Te.memo(function({
|
|
|
3702
3702
|
model: le,
|
|
3703
3703
|
renderDragPreview: E,
|
|
3704
3704
|
getDragPreviewLabel: b,
|
|
3705
|
-
getDragPreviewCountLabel:
|
|
3705
|
+
getDragPreviewCountLabel: R
|
|
3706
3706
|
}
|
|
3707
3707
|
) }) : null });
|
|
3708
3708
|
return w ? /* @__PURE__ */ v(iu, { ...F, children: [
|
|
@@ -3749,11 +3749,11 @@ const _C = "_hasTriggerWithoutClick_19qua_1", $C = "_hasLeftColor_19qua_10", ev
|
|
|
3749
3749
|
i && (w.preventDefault(), w.stopPropagation(), i(w));
|
|
3750
3750
|
}, y = () => {
|
|
3751
3751
|
C(!0);
|
|
3752
|
-
},
|
|
3752
|
+
}, N = () => {
|
|
3753
3753
|
C(!1);
|
|
3754
3754
|
}, b = () => {
|
|
3755
3755
|
f(!0);
|
|
3756
|
-
},
|
|
3756
|
+
}, R = () => {
|
|
3757
3757
|
f(!1);
|
|
3758
3758
|
}, E = i ? "button" : "div";
|
|
3759
3759
|
return /* @__PURE__ */ a(S, { className: I(We.container, s), ...u, children: /* @__PURE__ */ v(Rr, { open: l, onOpenChange: c, modal: !0, children: [
|
|
@@ -3771,7 +3771,7 @@ const _C = "_hasTriggerWithoutClick_19qua_1", $C = "_hasLeftColor_19qua_10", ev
|
|
|
3771
3771
|
onMouseLeave: () => h(!1),
|
|
3772
3772
|
onClick: k,
|
|
3773
3773
|
onFocus: y,
|
|
3774
|
-
onBlur:
|
|
3774
|
+
onBlur: N,
|
|
3775
3775
|
children: /* @__PURE__ */ a(
|
|
3776
3776
|
Oe,
|
|
3777
3777
|
{
|
|
@@ -3807,7 +3807,7 @@ const _C = "_hasTriggerWithoutClick_19qua_1", $C = "_hasLeftColor_19qua_10", ev
|
|
|
3807
3807
|
h(!1);
|
|
3808
3808
|
},
|
|
3809
3809
|
onFocus: b,
|
|
3810
|
-
onBlur:
|
|
3810
|
+
onBlur: R,
|
|
3811
3811
|
children: [
|
|
3812
3812
|
!i && /* @__PURE__ */ a(
|
|
3813
3813
|
Oe,
|
|
@@ -3873,10 +3873,10 @@ const Ga = Da(ld), mn = Ge(
|
|
|
3873
3873
|
wrapCloseMenu: g,
|
|
3874
3874
|
...C
|
|
3875
3875
|
}) => {
|
|
3876
|
-
const m = C.open !== void 0, [f, k] = j(!1), y = m ? C.open : f,
|
|
3876
|
+
const m = C.open !== void 0, [f, k] = j(!1), y = m ? C.open : f, N = J((w) => {
|
|
3877
3877
|
var B;
|
|
3878
3878
|
m || k(w), (B = C == null ? void 0 : C.onOpenChange) == null || B.call(C, w);
|
|
3879
|
-
}, [m, C == null ? void 0 : C.onOpenChange]), b = J(() =>
|
|
3879
|
+
}, [m, C == null ? void 0 : C.onOpenChange]), b = J(() => N(!1), [N]), R = g ? g(b) : b, E = {
|
|
3880
3880
|
...p && {
|
|
3881
3881
|
width: "var(--radix-dropdown-menu-trigger-width)",
|
|
3882
3882
|
boxSizing: "border-box"
|
|
@@ -3888,7 +3888,7 @@ const Ga = Da(ld), mn = Ge(
|
|
|
3888
3888
|
{
|
|
3889
3889
|
...C,
|
|
3890
3890
|
open: l ? !1 : y,
|
|
3891
|
-
onOpenChange: l ? void 0 :
|
|
3891
|
+
onOpenChange: l ? void 0 : N,
|
|
3892
3892
|
children: [
|
|
3893
3893
|
/* @__PURE__ */ a(
|
|
3894
3894
|
Jo,
|
|
@@ -3926,7 +3926,7 @@ const Ga = Da(ld), mn = Ge(
|
|
|
3926
3926
|
o,
|
|
3927
3927
|
i,
|
|
3928
3928
|
d,
|
|
3929
|
-
|
|
3929
|
+
R,
|
|
3930
3930
|
h
|
|
3931
3931
|
)
|
|
3932
3932
|
)
|
|
@@ -3953,7 +3953,7 @@ const Ga = Da(ld), mn = Ge(
|
|
|
3953
3953
|
o,
|
|
3954
3954
|
i,
|
|
3955
3955
|
d,
|
|
3956
|
-
|
|
3956
|
+
R,
|
|
3957
3957
|
h
|
|
3958
3958
|
)
|
|
3959
3959
|
)
|
|
@@ -3992,13 +3992,13 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
|
|
|
3992
3992
|
wrapCloseMenu: C,
|
|
3993
3993
|
...m
|
|
3994
3994
|
}) => {
|
|
3995
|
-
const f = m.open !== void 0, [k, y] = j(!1),
|
|
3995
|
+
const f = m.open !== void 0, [k, y] = j(!1), N = f ? m.open : k, b = J(
|
|
3996
3996
|
(D) => {
|
|
3997
3997
|
var z;
|
|
3998
3998
|
f || y(D), (z = m == null ? void 0 : m.onOpenChange) == null || z.call(m, D);
|
|
3999
3999
|
},
|
|
4000
4000
|
[f, m == null ? void 0 : m.onOpenChange]
|
|
4001
|
-
),
|
|
4001
|
+
), R = J(() => b(!1), [b]), E = C ? C(R) : R, w = {
|
|
4002
4002
|
...u && {
|
|
4003
4003
|
width: "var(--radix-dropdown-menu-trigger-width)",
|
|
4004
4004
|
boxSizing: "border-box"
|
|
@@ -4043,7 +4043,7 @@ const dv = "_container_5ow1v_1", uv = "_triggerWithClick_5ow1v_12", hv = "_chevr
|
|
|
4043
4043
|
Do,
|
|
4044
4044
|
{
|
|
4045
4045
|
...m,
|
|
4046
|
-
open: l ? !1 :
|
|
4046
|
+
open: l ? !1 : N,
|
|
4047
4047
|
onOpenChange: l ? void 0 : b,
|
|
4048
4048
|
children: [
|
|
4049
4049
|
p && /* @__PURE__ */ a(
|
|
@@ -4108,13 +4108,13 @@ const vv = "_popoverPortal_j8b3y_1", yv = "_popoverContent_j8b3y_9", kv = "_cont
|
|
|
4108
4108
|
g || m(x), (U = h == null ? void 0 : h.onOpenChange) == null || U.call(h, x);
|
|
4109
4109
|
},
|
|
4110
4110
|
[g, h == null ? void 0 : h.onOpenChange]
|
|
4111
|
-
), y = J(() => k(!1), [k]),
|
|
4111
|
+
), y = J(() => k(!1), [k]), N = u ? u(y) : y, b = {
|
|
4112
4112
|
...d && {
|
|
4113
4113
|
width: "var(--radix-popover-trigger-width)",
|
|
4114
4114
|
boxSizing: "border-box"
|
|
4115
4115
|
},
|
|
4116
4116
|
...l && { height: l }
|
|
4117
|
-
},
|
|
4117
|
+
}, R = J((x) => {
|
|
4118
4118
|
x.key === "Tab" && x.stopPropagation();
|
|
4119
4119
|
}, []), E = J((x) => {
|
|
4120
4120
|
x.preventDefault();
|
|
@@ -4126,8 +4126,8 @@ const vv = "_popoverPortal_j8b3y_1", yv = "_popoverContent_j8b3y_9", kv = "_cont
|
|
|
4126
4126
|
className: is.contentPanel,
|
|
4127
4127
|
"data-tools-popover-panel": !0,
|
|
4128
4128
|
tabIndex: -1,
|
|
4129
|
-
onKeyDown:
|
|
4130
|
-
children: typeof t == "function" ? t(
|
|
4129
|
+
onKeyDown: R,
|
|
4130
|
+
children: typeof t == "function" ? t(N) : t
|
|
4131
4131
|
}
|
|
4132
4132
|
), B = /* @__PURE__ */ a(en, { asChild: !0, children: /* @__PURE__ */ a(
|
|
4133
4133
|
Nr,
|
|
@@ -4378,18 +4378,18 @@ function Wv({ initialScreen: n, animated: t, children: r }) {
|
|
|
4378
4378
|
), k = J(
|
|
4379
4379
|
(Q) => g(() => [{ name: Q || n, params: {} }]),
|
|
4380
4380
|
[g, n]
|
|
4381
|
-
), y = s.length > 1,
|
|
4381
|
+
), y = s.length > 1, N = oe(
|
|
4382
4382
|
() => ({ push: C, pop: m, popTo: f, reset: k, canGoBack: y, stack: s }),
|
|
4383
4383
|
[C, m, f, k, y, s]
|
|
4384
|
-
), b = s[s.length - 1],
|
|
4385
|
-
if (!
|
|
4384
|
+
), b = s[s.length - 1], R = h[b.name];
|
|
4385
|
+
if (!R) return null;
|
|
4386
4386
|
const E = oe(
|
|
4387
4387
|
() => s.map((Q, D) => {
|
|
4388
4388
|
var z;
|
|
4389
4389
|
return (z = h[Q.name]) != null && z.keepMounted ? { entry: Q, stackIndex: D } : null;
|
|
4390
4390
|
}).filter(Boolean),
|
|
4391
4391
|
[s, h]
|
|
4392
|
-
), w = (Q, D) => Q in i ? i[Q] :
|
|
4392
|
+
), w = (Q, D) => Q in i ? i[Q] : R[Q] ?? D, B = R.component, x = R.keepMounted === !0, U = J(
|
|
4393
4393
|
(Q) => {
|
|
4394
4394
|
u.current[u.current.length - 1].name === b.name && l((z) => ({ ...z, ...Q }));
|
|
4395
4395
|
},
|
|
@@ -4398,7 +4398,7 @@ function Wv({ initialScreen: n, animated: t, children: r }) {
|
|
|
4398
4398
|
() => ({ name: b.name, params: b.params || {}, setOptions: U }),
|
|
4399
4399
|
[b.name, b.params, U]
|
|
4400
4400
|
);
|
|
4401
|
-
return /* @__PURE__ */ a(Tl.Provider, { value:
|
|
4401
|
+
return /* @__PURE__ */ a(Tl.Provider, { value: N, children: /* @__PURE__ */ v("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
4402
4402
|
/* @__PURE__ */ a(
|
|
4403
4403
|
Dl,
|
|
4404
4404
|
{
|
|
@@ -4873,13 +4873,13 @@ const oR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
|
|
|
4873
4873
|
tooltipArrow: y1,
|
|
4874
4874
|
sliderContainer: k1
|
|
4875
4875
|
}, b1 = ({ onChangeValue: n, volume: t, disabled: r }) => {
|
|
4876
|
-
const [s, o] = j(!1), i = X(), l = X(0), c = J((
|
|
4877
|
-
if (
|
|
4878
|
-
const E = 20 * Math.log10(
|
|
4876
|
+
const [s, o] = j(!1), i = X(), l = X(0), c = J((R) => {
|
|
4877
|
+
if (R < 1e-3) return -1 / 0;
|
|
4878
|
+
const E = 20 * Math.log10(R);
|
|
4879
4879
|
return E < -60 ? -60 : E;
|
|
4880
|
-
}, []), d = J((
|
|
4881
|
-
const
|
|
4882
|
-
return
|
|
4880
|
+
}, []), d = J((R) => R === -1 / 0 || R <= -60 ? 0 : Math.pow(10, R / 20), []), u = oe(() => {
|
|
4881
|
+
const R = c(t);
|
|
4882
|
+
return R === -1 / 0 ? -60 : Math.max(-60, Math.min(6, R));
|
|
4883
4883
|
}, [t, c]), p = oe(() => t < 1e-3, [t]), h = J(() => {
|
|
4884
4884
|
clearTimeout(i.current), o(!0);
|
|
4885
4885
|
}, []), g = J(() => {
|
|
@@ -4887,13 +4887,13 @@ const oR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
|
|
|
4887
4887
|
o(!1);
|
|
4888
4888
|
}, 300);
|
|
4889
4889
|
}, []), C = J(
|
|
4890
|
-
(
|
|
4891
|
-
(
|
|
4890
|
+
(R) => {
|
|
4891
|
+
(R.key === "ArrowUp" || R.key === "ArrowDown") && h(), (R.key === "ArrowLeft" || R.key === "ArrowRight") && (R.preventDefault(), R.stopPropagation(), h());
|
|
4892
4892
|
},
|
|
4893
4893
|
[h]
|
|
4894
4894
|
), m = J(
|
|
4895
|
-
(
|
|
4896
|
-
n(
|
|
4895
|
+
(R) => {
|
|
4896
|
+
n(R.map(d));
|
|
4897
4897
|
},
|
|
4898
4898
|
[n, d]
|
|
4899
4899
|
), f = J(() => {
|
|
@@ -4902,9 +4902,9 @@ const oR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
|
|
|
4902
4902
|
g();
|
|
4903
4903
|
}, [g]), y = J(() => {
|
|
4904
4904
|
n([1]), h();
|
|
4905
|
-
}, [n, h]),
|
|
4906
|
-
const
|
|
4907
|
-
|
|
4905
|
+
}, [n, h]), N = J(() => {
|
|
4906
|
+
const R = Date.now();
|
|
4907
|
+
R - l.current < 300 && y(), l.current = R;
|
|
4908
4908
|
}, [y]), b = oe(
|
|
4909
4909
|
() => /* @__PURE__ */ v(we, { children: [
|
|
4910
4910
|
p ? "-∞ dB" : `${u.toFixed(1)} dB`,
|
|
@@ -4934,7 +4934,7 @@ const oR = $r, g1 = "_sliderRoot_19e7a_23", m1 = "_sliderTrack_19e7a_31", f1 = "
|
|
|
4934
4934
|
onPointerDown: f,
|
|
4935
4935
|
onKeyDown: C,
|
|
4936
4936
|
onBlur: k,
|
|
4937
|
-
onClick:
|
|
4937
|
+
onClick: N
|
|
4938
4938
|
}
|
|
4939
4939
|
) }),
|
|
4940
4940
|
/* @__PURE__ */ a(
|
|
@@ -5026,13 +5026,13 @@ const Ol = Ge(
|
|
|
5026
5026
|
const [u, p] = j(!1), [h, g] = j(!1), C = r || u || h, m = J(
|
|
5027
5027
|
(y) => {
|
|
5028
5028
|
if (!c || y.button !== 0) return;
|
|
5029
|
-
const
|
|
5030
|
-
if (b &&
|
|
5029
|
+
const N = performance.now(), b = i.current;
|
|
5030
|
+
if (b && N - b.t < P1 && Math.hypot(y.clientX - b.x, y.clientY - b.y) < F1) {
|
|
5031
5031
|
y.preventDefault(), y.stopPropagation(), i.current = null, c();
|
|
5032
5032
|
return;
|
|
5033
5033
|
}
|
|
5034
5034
|
i.current = {
|
|
5035
|
-
t:
|
|
5035
|
+
t: N,
|
|
5036
5036
|
x: y.clientX,
|
|
5037
5037
|
y: y.clientY
|
|
5038
5038
|
};
|
|
@@ -5041,16 +5041,16 @@ const Ol = Ge(
|
|
|
5041
5041
|
), f = J(
|
|
5042
5042
|
(y) => {
|
|
5043
5043
|
if (!l) return;
|
|
5044
|
-
const
|
|
5045
|
-
let b =
|
|
5044
|
+
const N = Ul(o);
|
|
5045
|
+
let b = N;
|
|
5046
5046
|
switch (y.key) {
|
|
5047
5047
|
case "ArrowRight":
|
|
5048
5048
|
case "ArrowUp":
|
|
5049
|
-
y.preventDefault(), b = Math.min(1,
|
|
5049
|
+
y.preventDefault(), b = Math.min(1, N + sr), l([Nt(b)]);
|
|
5050
5050
|
break;
|
|
5051
5051
|
case "ArrowLeft":
|
|
5052
5052
|
case "ArrowDown":
|
|
5053
|
-
y.preventDefault(), b = Math.max(0,
|
|
5053
|
+
y.preventDefault(), b = Math.max(0, N - sr), l([Nt(b)]);
|
|
5054
5054
|
break;
|
|
5055
5055
|
case "Home":
|
|
5056
5056
|
y.preventDefault(), l([Nt(0)]);
|
|
@@ -5059,10 +5059,10 @@ const Ol = Ge(
|
|
|
5059
5059
|
y.preventDefault(), l([Nt(1)]);
|
|
5060
5060
|
break;
|
|
5061
5061
|
case "PageUp":
|
|
5062
|
-
y.preventDefault(), b = Math.min(1,
|
|
5062
|
+
y.preventDefault(), b = Math.min(1, N + sr * 4), l([Nt(b)]);
|
|
5063
5063
|
break;
|
|
5064
5064
|
case "PageDown":
|
|
5065
|
-
y.preventDefault(), b = Math.max(0,
|
|
5065
|
+
y.preventDefault(), b = Math.max(0, N - sr * 4), l([Nt(b)]);
|
|
5066
5066
|
break;
|
|
5067
5067
|
}
|
|
5068
5068
|
},
|
|
@@ -5112,16 +5112,16 @@ const Qa = Ge(function({
|
|
|
5112
5112
|
hover: c = !1,
|
|
5113
5113
|
resetPeakHold: d
|
|
5114
5114
|
}) {
|
|
5115
|
-
const [u, p] = t, h = Ps(Xa(u ?? 0)), g = Ps(Xa(p ?? 0)), [C, m] = j(!1), f = X(!1), k = X(null), y = X(null),
|
|
5115
|
+
const [u, p] = t, h = Ps(Xa(u ?? 0)), g = Ps(Xa(p ?? 0)), [C, m] = j(!1), f = X(!1), k = X(null), y = X(null), N = X(null), b = X(0), R = X(null), [E, w] = j(0), [B, x] = j(!1);
|
|
5116
5116
|
ie(() => {
|
|
5117
5117
|
b.current = 0, w(0);
|
|
5118
|
-
}, [d]), ie(() => () => clearTimeout(
|
|
5118
|
+
}, [d]), ie(() => () => clearTimeout(R.current), []);
|
|
5119
5119
|
const U = Math.max(
|
|
5120
5120
|
0,
|
|
5121
5121
|
Math.min(100, Ul(r) * 100)
|
|
5122
5122
|
), T = Fs(h), Q = Fs(g), D = Math.max(T, Q);
|
|
5123
5123
|
ie(() => {
|
|
5124
|
-
D > b.current && (b.current = D, w(D), x(!0), clearTimeout(
|
|
5124
|
+
D > b.current && (b.current = D, w(D), x(!0), clearTimeout(R.current), R.current = setTimeout(() => {
|
|
5125
5125
|
x(!1), requestAnimationFrame(() => {
|
|
5126
5126
|
requestAnimationFrame(() => {
|
|
5127
5127
|
b.current = 0, w(0);
|
|
@@ -5133,7 +5133,7 @@ const Qa = Ge(function({
|
|
|
5133
5133
|
(q) => {
|
|
5134
5134
|
var de;
|
|
5135
5135
|
if (!s) return;
|
|
5136
|
-
y.current && q.target instanceof Element && !y.current.contains(q.target) && (
|
|
5136
|
+
y.current && q.target instanceof Element && !y.current.contains(q.target) && (N.current = null), q.currentTarget.setPointerCapture(q.pointerId), f.current = !0, m(!0), document.body.style.cursor = "ew-resize";
|
|
5137
5137
|
const he = (de = k.current) == null ? void 0 : de.getBoundingClientRect();
|
|
5138
5138
|
if (he) {
|
|
5139
5139
|
const ge = Math.max(
|
|
@@ -5186,7 +5186,7 @@ const Qa = Ge(function({
|
|
|
5186
5186
|
isPressed: C,
|
|
5187
5187
|
hover: c,
|
|
5188
5188
|
volume: r,
|
|
5189
|
-
doubleTapStateRef:
|
|
5189
|
+
doubleTapStateRef: N,
|
|
5190
5190
|
onVolumeChange: s,
|
|
5191
5191
|
onVolumeReset: o
|
|
5192
5192
|
}
|
|
@@ -5305,7 +5305,7 @@ const Z1 = Cn(function({
|
|
|
5305
5305
|
r && /* @__PURE__ */ a(Ke, { content: r, children: /* @__PURE__ */ a(vn, { width: 16, height: 16, className: pt.infoIcon }) })
|
|
5306
5306
|
] }),
|
|
5307
5307
|
/* @__PURE__ */ a("div", { className: pt.grid, style: C, role: "group", "aria-label": t, children: s.map((m) => {
|
|
5308
|
-
const f = m.text ?? m.label ?? m.name, k = m.Icon ?? m.icon, y = m.locked ?? m.isLocked ?? !1,
|
|
5308
|
+
const f = m.text ?? m.label ?? m.name, k = m.Icon ?? m.icon, y = m.locked ?? m.isLocked ?? !1, N = m.disabled ?? !1;
|
|
5309
5309
|
return /* @__PURE__ */ a(
|
|
5310
5310
|
Pl,
|
|
5311
5311
|
{
|
|
@@ -5314,7 +5314,7 @@ const Z1 = Cn(function({
|
|
|
5314
5314
|
Icon: k,
|
|
5315
5315
|
selected: X1(h, m.value),
|
|
5316
5316
|
locked: y,
|
|
5317
|
-
disabled:
|
|
5317
|
+
disabled: N,
|
|
5318
5318
|
onClick: () => l == null ? void 0 : l(m)
|
|
5319
5319
|
},
|
|
5320
5320
|
m.value
|
|
@@ -5492,11 +5492,11 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5492
5492
|
const g = J(
|
|
5493
5493
|
(b) => {
|
|
5494
5494
|
if (b.preventDefault(), b.stopPropagation(), r) return;
|
|
5495
|
-
const
|
|
5496
|
-
if (!
|
|
5495
|
+
const R = b.wheelDelta ?? -b.deltaY * 25;
|
|
5496
|
+
if (!R || Math.abs(R) <= 50) return;
|
|
5497
5497
|
const E = Date.now();
|
|
5498
5498
|
if (E - h.current < 100) return;
|
|
5499
|
-
const w =
|
|
5499
|
+
const w = R > 0 ? 1 : -1, B = no(n, s, w);
|
|
5500
5500
|
t(B), h.current = E;
|
|
5501
5501
|
},
|
|
5502
5502
|
[t, n, s, r]
|
|
@@ -5512,9 +5512,9 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5512
5512
|
), m = J(
|
|
5513
5513
|
(b) => {
|
|
5514
5514
|
if (!c || r) return;
|
|
5515
|
-
const
|
|
5516
|
-
if (Math.abs(
|
|
5517
|
-
const E =
|
|
5515
|
+
const R = u - b.clientY;
|
|
5516
|
+
if (Math.abs(R) <= 20) return;
|
|
5517
|
+
const E = R > 0 ? 1 : -1, w = no(n, s, E);
|
|
5518
5518
|
t(w), p(b.clientY), h.current = Date.now();
|
|
5519
5519
|
},
|
|
5520
5520
|
[c, u, n, t, s, r]
|
|
@@ -5527,11 +5527,11 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5527
5527
|
b.detail === 2 && !r && t(o);
|
|
5528
5528
|
},
|
|
5529
5529
|
[t, o, r]
|
|
5530
|
-
),
|
|
5530
|
+
), N = J(
|
|
5531
5531
|
(b) => {
|
|
5532
5532
|
if (!i || r) return;
|
|
5533
|
-
const
|
|
5534
|
-
|
|
5533
|
+
const R = cy(s, b);
|
|
5534
|
+
R && t(R);
|
|
5535
5535
|
},
|
|
5536
5536
|
[i, r, t, s]
|
|
5537
5537
|
);
|
|
@@ -5539,7 +5539,7 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5539
5539
|
containerRef: l,
|
|
5540
5540
|
isDragging: c,
|
|
5541
5541
|
handleClick: y,
|
|
5542
|
-
handleDotClick:
|
|
5542
|
+
handleDotClick: N
|
|
5543
5543
|
};
|
|
5544
5544
|
}, Ay = ({
|
|
5545
5545
|
className: n,
|
|
@@ -5558,12 +5558,12 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5558
5558
|
tooltipCloseDelay: d
|
|
5559
5559
|
});
|
|
5560
5560
|
k.current = { tooltipDelayDuration: c, tooltipCloseDelay: d };
|
|
5561
|
-
const y = Array.isArray(i) && i.length > 0,
|
|
5561
|
+
const y = Array.isArray(i) && i.length > 0, N = oe(() => (i == null ? void 0 : i.find((W) => W.default)) || (i == null ? void 0 : i[0]) || { position: 0, color: "neutral", default: !0 }, [i]), { containerRef: b, isDragging: R, handleClick: E, handleDotClick: w } = hy({
|
|
5562
5562
|
value: t,
|
|
5563
5563
|
onChange: r,
|
|
5564
5564
|
disabled: s,
|
|
5565
5565
|
dots: i || [],
|
|
5566
|
-
defaultDot:
|
|
5566
|
+
defaultDot: N,
|
|
5567
5567
|
clickableDots: o
|
|
5568
5568
|
}), B = oe(() => typeof t == "object" && t !== null ? t.position : dy(t, i), [t, i]), x = oe(() => typeof t == "object" && t !== null ? t : (i == null ? void 0 : i.find((W) => W.position === B)) ?? null, [t, i, B]), { pointerRotation: U, pointerColor: T } = oe(() => uy(B, s), [B, s]);
|
|
5569
5569
|
if (ie(() => () => {
|
|
@@ -5598,12 +5598,12 @@ const Ar = 19.5, pr = 19.5, $a = 14, eo = 18, ly = [
|
|
|
5598
5598
|
}, P = (W) => {
|
|
5599
5599
|
const q = to[W.color] || to.neutral, he = W.position === B, de = p === W.position && o;
|
|
5600
5600
|
return s ? q.default : he ? q.active : de ? q.hover : q.default;
|
|
5601
|
-
}, V = u ? u(x ?? t) : (x == null ? void 0 : x.label) ?? (x == null ? void 0 : x.value) ?? B, $ = !s && (g ||
|
|
5601
|
+
}, V = u ? u(x ?? t) : (x == null ? void 0 : x.label) ?? (x == null ? void 0 : x.value) ?? B, $ = !s && (g || R), G = /* @__PURE__ */ a(
|
|
5602
5602
|
"div",
|
|
5603
5603
|
{
|
|
5604
5604
|
className: I(
|
|
5605
5605
|
ar.pan,
|
|
5606
|
-
|
|
5606
|
+
R && ar.active,
|
|
5607
5607
|
s && ar.disabled
|
|
5608
5608
|
),
|
|
5609
5609
|
onPointerEnter: z,
|
|
@@ -5951,7 +5951,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
|
|
|
5951
5951
|
style: g,
|
|
5952
5952
|
...C
|
|
5953
5953
|
}) => {
|
|
5954
|
-
const m = (i == null ? void 0 : i.id) || o, f = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || s, y = (i == null ? void 0 : i.image) || t,
|
|
5954
|
+
const m = (i == null ? void 0 : i.id) || o, f = (i == null ? void 0 : i.name) || r, k = (i == null ? void 0 : i.description) || s, y = (i == null ? void 0 : i.image) || t, N = (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, R = (x) => {
|
|
5955
5955
|
x.stopPropagation(), x.preventDefault(), p == null || p();
|
|
5956
5956
|
}, E = {
|
|
5957
5957
|
1: { avatar: 60, icon: 15 },
|
|
@@ -5969,7 +5969,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
|
|
|
5969
5969
|
),
|
|
5970
5970
|
style: { "--color-surface": "transparent", ...g },
|
|
5971
5971
|
"data-state": u ? "checked" : "unchecked",
|
|
5972
|
-
onClick:
|
|
5972
|
+
onClick: R,
|
|
5973
5973
|
...C,
|
|
5974
5974
|
children: /* @__PURE__ */ v(S, { gap: "2", children: [
|
|
5975
5975
|
/* @__PURE__ */ a(S, { width: `${B.avatar}px`, height: `${B.avatar}px`, children: l ? /* @__PURE__ */ a(
|
|
@@ -5992,14 +5992,14 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
|
|
|
5992
5992
|
),
|
|
5993
5993
|
children: /* @__PURE__ */ a(d, { width: B.icon, height: B.icon })
|
|
5994
5994
|
}
|
|
5995
|
-
) :
|
|
5995
|
+
) : N ? /* @__PURE__ */ a(
|
|
5996
5996
|
"div",
|
|
5997
5997
|
{
|
|
5998
5998
|
className: I(
|
|
5999
5999
|
ue.listCardsAvatarIcon,
|
|
6000
6000
|
ue[`listCardsAvatarIconSize${h}`]
|
|
6001
6001
|
),
|
|
6002
|
-
children:
|
|
6002
|
+
children: N
|
|
6003
6003
|
}
|
|
6004
6004
|
) : /* @__PURE__ */ a(
|
|
6005
6005
|
ot,
|
|
@@ -6045,9 +6045,9 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
|
|
|
6045
6045
|
disabled: f,
|
|
6046
6046
|
children: k,
|
|
6047
6047
|
style: y,
|
|
6048
|
-
...
|
|
6048
|
+
...N
|
|
6049
6049
|
}) => {
|
|
6050
|
-
const b = (i == null ? void 0 : i.id) || o,
|
|
6050
|
+
const b = (i == null ? void 0 : i.id) || o, R = (i == null ? void 0 : i.name) || r, E = (i == null ? void 0 : i.avatar) || t, w = (i == null ? void 0 : i.description) || s, B = E && (E != null && E.startsWith("url(")) ? E == null ? void 0 : E.substring(4, (E == null ? void 0 : E.length) - 1).replace(/"/g, "") : E;
|
|
6051
6051
|
return /* @__PURE__ */ v(
|
|
6052
6052
|
"div",
|
|
6053
6053
|
{
|
|
@@ -6073,7 +6073,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
|
|
|
6073
6073
|
minHeight: "68px",
|
|
6074
6074
|
...y
|
|
6075
6075
|
},
|
|
6076
|
-
...
|
|
6076
|
+
...N,
|
|
6077
6077
|
children: /* @__PURE__ */ v(
|
|
6078
6078
|
S,
|
|
6079
6079
|
{
|
|
@@ -6096,7 +6096,7 @@ const Yy = "_listCardsItem_1exuc_1", Xy = "_listCardsItemDescriptionWrappable_1e
|
|
|
6096
6096
|
justify: "center",
|
|
6097
6097
|
style: { flex: 1, minWidth: 0 },
|
|
6098
6098
|
children: [
|
|
6099
|
-
/* @__PURE__ */ a(H, { as: "div", size: "2", className: ue.listCardsItemText, children:
|
|
6099
|
+
/* @__PURE__ */ a(H, { as: "div", size: "2", className: ue.listCardsItemText, children: R }),
|
|
6100
6100
|
k ? /* @__PURE__ */ a(
|
|
6101
6101
|
S,
|
|
6102
6102
|
{
|
|
@@ -6490,14 +6490,14 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6490
6490
|
tooltipDelayDuration: c = 0,
|
|
6491
6491
|
tooltipCloseDelay: d = 500
|
|
6492
6492
|
}) => {
|
|
6493
|
-
const u = X(null), [p, h] = j(!1), g = X(null), C = X(0), m = X(t), f = X(0), k = X(null), y = X(null),
|
|
6493
|
+
const u = X(null), [p, h] = j(!1), g = X(null), C = X(0), m = X(t), f = X(0), k = X(null), y = X(null), N = X({
|
|
6494
6494
|
tooltipDelayDuration: c,
|
|
6495
6495
|
tooltipCloseDelay: d
|
|
6496
6496
|
});
|
|
6497
|
-
|
|
6498
|
-
const [b,
|
|
6497
|
+
N.current = { tooltipDelayDuration: c, tooltipCloseDelay: d };
|
|
6498
|
+
const [b, R] = j(!1), [E, w] = j(!1);
|
|
6499
6499
|
ie(() => {
|
|
6500
|
-
s && (w(!1),
|
|
6500
|
+
s && (w(!1), R(!1));
|
|
6501
6501
|
}, [s]), ie(() => () => {
|
|
6502
6502
|
k.current != null && clearTimeout(k.current), y.current != null && clearTimeout(y.current);
|
|
6503
6503
|
}, []), ie(() => {
|
|
@@ -6594,7 +6594,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6594
6594
|
}, ge = () => {
|
|
6595
6595
|
if (s) return;
|
|
6596
6596
|
de(), he();
|
|
6597
|
-
const { tooltipDelayDuration: M } =
|
|
6597
|
+
const { tooltipDelayDuration: M } = N.current;
|
|
6598
6598
|
if (M <= 0) {
|
|
6599
6599
|
w(!0);
|
|
6600
6600
|
return;
|
|
@@ -6604,7 +6604,7 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6604
6604
|
}, M);
|
|
6605
6605
|
}, K = () => {
|
|
6606
6606
|
he();
|
|
6607
|
-
const { tooltipCloseDelay: M } =
|
|
6607
|
+
const { tooltipCloseDelay: M } = N.current;
|
|
6608
6608
|
if (M <= 0) {
|
|
6609
6609
|
w(!1);
|
|
6610
6610
|
return;
|
|
@@ -6634,8 +6634,8 @@ const Vk = "_content_15iux_1", jk = "_pan_15iux_13", Gk = "_disabled_15iux_26",
|
|
|
6634
6634
|
onPointerCancel: Q,
|
|
6635
6635
|
onPointerEnter: ge,
|
|
6636
6636
|
onPointerLeave: K,
|
|
6637
|
-
onFocus: () =>
|
|
6638
|
-
onBlur: () =>
|
|
6637
|
+
onFocus: () => R(!0),
|
|
6638
|
+
onBlur: () => R(!1),
|
|
6639
6639
|
onKeyDown: z,
|
|
6640
6640
|
children: /* @__PURE__ */ v("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", children: [
|
|
6641
6641
|
/* @__PURE__ */ a("circle", { cx: xn, cy: Tn, r: 10 }),
|
|
@@ -7136,15 +7136,15 @@ class m0 extends Xn {
|
|
|
7136
7136
|
if (g.button !== i || d.has(g.pointerId) || (d.set(g.pointerId, g), d.size > 1)) return;
|
|
7137
7137
|
const C = g.pointerId;
|
|
7138
7138
|
let m = g.clientX, f = g.clientY, k = !1;
|
|
7139
|
-
const y = Date.now(),
|
|
7139
|
+
const y = Date.now(), N = r.getBoundingClientRect(), { left: b, top: R } = N, E = (T) => {
|
|
7140
7140
|
if (T.pointerId !== C || T.defaultPrevented || d.size > 1 || u && Date.now() - y < l) return;
|
|
7141
7141
|
const Q = T.clientX, D = T.clientY, z = Q - m, O = D - f;
|
|
7142
|
-
(k || Math.abs(z) > o || Math.abs(O) > o) && (T.preventDefault(), T.stopPropagation(), k || (c.set({ type: "start", x: m - b, y: f -
|
|
7142
|
+
(k || Math.abs(z) > o || Math.abs(O) > o) && (T.preventDefault(), T.stopPropagation(), k || (c.set({ type: "start", x: m - b, y: f - R }), k = !0), c.set({ type: "move", x: Q - b, y: D - R, deltaX: z, deltaY: O }), m = Q, f = D);
|
|
7143
7143
|
}, w = (T) => {
|
|
7144
7144
|
if (d.delete(T.pointerId)) {
|
|
7145
7145
|
if (T.pointerId === C && k) {
|
|
7146
7146
|
const Q = T.clientX, D = T.clientY;
|
|
7147
|
-
c.set({ type: "end", x: Q - b, y: D -
|
|
7147
|
+
c.set({ type: "end", x: Q - b, y: D - R });
|
|
7148
7148
|
}
|
|
7149
7149
|
d.size === 0 && p();
|
|
7150
7150
|
}
|
|
@@ -7326,16 +7326,16 @@ class m0 extends Xn {
|
|
|
7326
7326
|
var t;
|
|
7327
7327
|
}
|
|
7328
7328
|
renderBarWaveform(t, r, s, o) {
|
|
7329
|
-
const { width: i, height: l } = s.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: p, barSpacing: h, barMinHeight: g } = function({ width: m, height: f, length: k, options: y, pixelRatio:
|
|
7330
|
-
const b = f / 2,
|
|
7331
|
-
return { halfHeight: b, barWidth:
|
|
7332
|
-
}({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), C = function({ channelData: m, barIndexScale: f, barSpacing: k, barWidth: y, halfHeight:
|
|
7329
|
+
const { width: i, height: l } = s.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: p, barSpacing: h, barMinHeight: g } = function({ width: m, height: f, length: k, options: y, pixelRatio: N }) {
|
|
7330
|
+
const b = f / 2, R = y.barWidth ? y.barWidth * N : 1, E = y.barGap ? y.barGap * N : y.barWidth ? R / 2 : 0, w = R + E || 1;
|
|
7331
|
+
return { halfHeight: b, barWidth: R, barGap: E, barRadius: y.barRadius || 0, barMinHeight: y.barMinHeight ? y.barMinHeight * N : 0, barIndexScale: k > 0 ? m / w / k : 0, barSpacing: w };
|
|
7332
|
+
}({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), C = function({ channelData: m, barIndexScale: f, barSpacing: k, barWidth: y, halfHeight: N, vScale: b, canvasHeight: R, barAlign: E, barMinHeight: w }) {
|
|
7333
7333
|
const B = m[0] || [], x = m[1] || B, U = B.length, T = [];
|
|
7334
7334
|
let Q = 0, D = 0, z = 0;
|
|
7335
7335
|
for (let O = 0; O <= U; O++) {
|
|
7336
7336
|
const P = Math.round(O * f);
|
|
7337
7337
|
if (P > Q) {
|
|
7338
|
-
const { topHeight: G, totalHeight: W } = A0({ maxTop: D, maxBottom: z, halfHeight:
|
|
7338
|
+
const { topHeight: G, totalHeight: W } = A0({ maxTop: D, maxBottom: z, halfHeight: N, vScale: b, barMinHeight: w, barAlign: E }), q = p0({ barAlign: E, halfHeight: N, topHeight: G, totalHeight: W, canvasHeight: R });
|
|
7339
7339
|
T.push({ x: Q * k, y: q, width: y, height: W }), Q = P, D = 0, z = 0;
|
|
7340
7340
|
}
|
|
7341
7341
|
const V = Math.abs(B[O] || 0), $ = Math.abs(x[O] || 0);
|
|
@@ -7351,18 +7351,18 @@ class m0 extends Xn {
|
|
|
7351
7351
|
const { width: i, height: l } = s.canvas, c = function({ channelData: d, width: u, height: p, vScale: h }) {
|
|
7352
7352
|
const g = p / 2, C = d[0] || [];
|
|
7353
7353
|
return [C, d[1] || C].map((m, f) => {
|
|
7354
|
-
const k = m.length, y = k ? u / k : 0,
|
|
7354
|
+
const k = m.length, y = k ? u / k : 0, N = g, b = f === 0 ? -1 : 1, R = [{ x: 0, y: N }];
|
|
7355
7355
|
let E = 0, w = 0;
|
|
7356
7356
|
for (let B = 0; B <= k; B++) {
|
|
7357
7357
|
const x = Math.round(B * y);
|
|
7358
7358
|
if (x > E) {
|
|
7359
|
-
const T =
|
|
7360
|
-
|
|
7359
|
+
const T = N + (Math.round(w * g * h) || 1) * b;
|
|
7360
|
+
R.push({ x: E, y: T }), E = x, w = 0;
|
|
7361
7361
|
}
|
|
7362
7362
|
const U = Math.abs(m[B] || 0);
|
|
7363
7363
|
U > w && (w = U);
|
|
7364
7364
|
}
|
|
7365
|
-
return
|
|
7365
|
+
return R.push({ x: E, y: N }), R;
|
|
7366
7366
|
});
|
|
7367
7367
|
}({ channelData: t, width: i, height: l, vScale: o });
|
|
7368
7368
|
s.beginPath();
|
|
@@ -7413,9 +7413,9 @@ class m0 extends Xn {
|
|
|
7413
7413
|
const f = m * p;
|
|
7414
7414
|
let k = Math.min(u - f, p);
|
|
7415
7415
|
if (k = io(k, r), k <= 0) return;
|
|
7416
|
-
const y = function({ channelData:
|
|
7417
|
-
return
|
|
7418
|
-
const B = Math.floor(b / E * w.length), x = Math.floor((b +
|
|
7416
|
+
const y = function({ channelData: N, offset: b, clampedWidth: R, totalWidth: E }) {
|
|
7417
|
+
return N.map((w) => {
|
|
7418
|
+
const B = Math.floor(b / E * w.length), x = Math.floor((b + R) / E * w.length);
|
|
7419
7419
|
return w.slice(B, x);
|
|
7420
7420
|
});
|
|
7421
7421
|
}({ channelData: t, offset: f, clampedWidth: k, totalWidth: u });
|
|
@@ -7705,8 +7705,8 @@ class jn extends h0 {
|
|
|
7705
7705
|
super({ media: r, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this._isDestroyed = !1, this._loadVersion = 0, this.reactiveCleanups = [], this.options = Object.assign({}, C0, t);
|
|
7706
7706
|
const { state: s, actions: o } = function(c) {
|
|
7707
7707
|
var d, u, p, h, g, C;
|
|
7708
|
-
const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1),
|
|
7709
|
-
return { state: { currentTime: m, duration: f, isPlaying: k, isPaused: U, isSeeking: y, volume:
|
|
7708
|
+
const m = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : Re(0), f = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : Re(0), k = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : Re(!1), y = (h = c == null ? void 0 : c.isSeeking) !== null && h !== void 0 ? h : Re(!1), N = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : Re(1), b = (C = c == null ? void 0 : c.playbackRate) !== null && C !== void 0 ? C : Re(1), R = Re(null), E = Re(null), w = Re(""), B = Re(0), x = Re(0), U = Yt(() => !k.value, [k]), T = Yt(() => R.value !== null, [R]), Q = Yt(() => T.value && f.value > 0, [T, f]), D = Yt(() => m.value, [m]), z = Yt(() => f.value > 0 ? m.value / f.value : 0, [m, f]);
|
|
7709
|
+
return { state: { currentTime: m, duration: f, isPlaying: k, isPaused: U, isSeeking: y, volume: N, playbackRate: b, audioBuffer: R, peaks: E, url: w, zoom: B, scrollPosition: x, canPlay: T, isReady: Q, progress: D, progressPercent: z }, actions: { setCurrentTime: (O) => {
|
|
7710
7710
|
const P = Math.max(0, Math.min(f.value || 1 / 0, O));
|
|
7711
7711
|
m.set(P);
|
|
7712
7712
|
}, setDuration: (O) => {
|
|
@@ -7717,12 +7717,12 @@ class jn extends h0 {
|
|
|
7717
7717
|
y.set(O);
|
|
7718
7718
|
}, setVolume: (O) => {
|
|
7719
7719
|
const P = Math.max(0, Math.min(1, O));
|
|
7720
|
-
|
|
7720
|
+
N.set(P);
|
|
7721
7721
|
}, setPlaybackRate: (O) => {
|
|
7722
7722
|
const P = Math.max(0.1, Math.min(16, O));
|
|
7723
7723
|
b.set(P);
|
|
7724
7724
|
}, setAudioBuffer: (O) => {
|
|
7725
|
-
|
|
7725
|
+
R.set(O), O && f.set(O.duration);
|
|
7726
7726
|
}, setPeaks: (O) => {
|
|
7727
7727
|
E.set(O);
|
|
7728
7728
|
}, setUrl: (O) => {
|
|
@@ -8105,7 +8105,7 @@ const ql = Ge((n) => {
|
|
|
8105
8105
|
id: C,
|
|
8106
8106
|
tabIndex: m
|
|
8107
8107
|
}, f) {
|
|
8108
|
-
const [k, y] = j(!1), [
|
|
8108
|
+
const [k, y] = j(!1), [N, b] = j(!1), [R, E] = j(!1), w = X(null), B = X(!1), x = X(null), U = X(null), T = s || !N;
|
|
8109
8109
|
ie(() => {
|
|
8110
8110
|
typeof navigator < "u" && E(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
8111
8111
|
}, []);
|
|
@@ -8139,8 +8139,8 @@ const ql = Ge((n) => {
|
|
|
8139
8139
|
[D, o]
|
|
8140
8140
|
), O = J(() => {
|
|
8141
8141
|
const K = w.current;
|
|
8142
|
-
K && (
|
|
8143
|
-
}, [
|
|
8142
|
+
K && (R || K.setOptions({ progressColor: p }), K.play());
|
|
8143
|
+
}, [R, p]), P = J(() => {
|
|
8144
8144
|
var M;
|
|
8145
8145
|
const K = w.current;
|
|
8146
8146
|
if (T || !K) return;
|
|
@@ -8159,13 +8159,13 @@ const ql = Ge((n) => {
|
|
|
8159
8159
|
() => ({
|
|
8160
8160
|
play: P,
|
|
8161
8161
|
pause: Q,
|
|
8162
|
-
isReady: () =>
|
|
8162
|
+
isReady: () => N,
|
|
8163
8163
|
isPlaying: () => {
|
|
8164
8164
|
var K;
|
|
8165
8165
|
return !!((K = w.current) != null && K.isPlaying());
|
|
8166
8166
|
}
|
|
8167
8167
|
}),
|
|
8168
|
-
[P, Q,
|
|
8168
|
+
[P, Q, N]
|
|
8169
8169
|
), ie(() => {
|
|
8170
8170
|
w.current && t && (w.current.load(t), b(!1));
|
|
8171
8171
|
}, [t]);
|
|
@@ -8221,7 +8221,7 @@ const ql = Ge((n) => {
|
|
|
8221
8221
|
const L = typeof Z == "number" ? Z : ((ce = K.getCurrentTime) == null ? void 0 : ce.call(K)) ?? 0, le = z(K, {
|
|
8222
8222
|
seekTime: L
|
|
8223
8223
|
});
|
|
8224
|
-
x.current = L, B.current = !0, le.previousWasPlaying || (ae = F.emit) == null || ae.call(F, "pause"),
|
|
8224
|
+
x.current = L, B.current = !0, le.previousWasPlaying || (ae = F.emit) == null || ae.call(F, "pause"), R || K.setOptions({ progressColor: p }), le.wasPlaying && K.play(), o.setter((ee) => ({
|
|
8225
8225
|
...ee,
|
|
8226
8226
|
active: K,
|
|
8227
8227
|
lastPlayed: K,
|
|
@@ -8230,7 +8230,7 @@ const ql = Ge((n) => {
|
|
|
8230
8230
|
},
|
|
8231
8231
|
[
|
|
8232
8232
|
o,
|
|
8233
|
-
|
|
8233
|
+
R,
|
|
8234
8234
|
p,
|
|
8235
8235
|
z,
|
|
8236
8236
|
T,
|
|
@@ -8301,7 +8301,7 @@ const ql = Ge((n) => {
|
|
|
8301
8301
|
onPlay: $,
|
|
8302
8302
|
onPause: G,
|
|
8303
8303
|
onFinish: he,
|
|
8304
|
-
backend:
|
|
8304
|
+
backend: R ? "WebAudio" : "MediaElement"
|
|
8305
8305
|
}
|
|
8306
8306
|
) }),
|
|
8307
8307
|
c && /* @__PURE__ */ a("div", { className: bt.actions, children: c })
|
|
@@ -8524,12 +8524,12 @@ const nb = ({
|
|
|
8524
8524
|
onProjectClick: C,
|
|
8525
8525
|
openedItem: m,
|
|
8526
8526
|
setOpenedItem: f
|
|
8527
|
-
} = gt(ts), [k, y] = j(!1),
|
|
8527
|
+
} = gt(ts), [k, y] = j(!1), N = oe(() => k ? i : i.slice(0, 6), [i, k]), b = J(() => {
|
|
8528
8528
|
if (c) return;
|
|
8529
8529
|
y(!1);
|
|
8530
8530
|
const w = h.find((B) => B.id === n);
|
|
8531
8531
|
m === n ? (f(null), C == null || C(w, !1)) : (f(n), C == null || C(w, !0));
|
|
8532
|
-
}, [n, m, f, C, h, c]),
|
|
8532
|
+
}, [n, m, f, C, h, c]), R = J((w) => {
|
|
8533
8533
|
w.preventDefault(), w.stopPropagation(), y(!k);
|
|
8534
8534
|
}, [k]), E = J((w) => {
|
|
8535
8535
|
w.stopPropagation(), g == null || g(i);
|
|
@@ -8574,7 +8574,7 @@ const nb = ({
|
|
|
8574
8574
|
/* @__PURE__ */ a(H, { size: "2", style: { color: "var(--neutral-alpha-10)" }, children: u.loading || "Loading tracks..." })
|
|
8575
8575
|
] }),
|
|
8576
8576
|
i.length > 0 && /* @__PURE__ */ v(S, { direction: "column", gap: "1", children: [
|
|
8577
|
-
typeof d == "function" ? d({ projectId: n, tracks:
|
|
8577
|
+
typeof d == "function" ? d({ projectId: n, tracks: N }) : d,
|
|
8578
8578
|
/* @__PURE__ */ v(S, { direction: "row", gap: "3", p: "2", align: "center", justify: "center", children: [
|
|
8579
8579
|
/* @__PURE__ */ v(
|
|
8580
8580
|
Ir,
|
|
@@ -8592,7 +8592,7 @@ const nb = ({
|
|
|
8592
8592
|
),
|
|
8593
8593
|
i.length > 6 && /* @__PURE__ */ v(we, { children: [
|
|
8594
8594
|
/* @__PURE__ */ a(it, { orientation: "vertical" }),
|
|
8595
|
-
/* @__PURE__ */ v(Ir, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick:
|
|
8595
|
+
/* @__PURE__ */ v(Ir, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick: R, children: [
|
|
8596
8596
|
k ? u.showLess || "Show less" : u.showMore || "Show more",
|
|
8597
8597
|
k ? /* @__PURE__ */ a(xd, { width: 16, height: 16 }) : /* @__PURE__ */ a(Xs, { width: 16, height: 16 })
|
|
8598
8598
|
] })
|
|
@@ -8770,19 +8770,21 @@ const nb = ({
|
|
|
8770
8770
|
...n
|
|
8771
8771
|
}) => {
|
|
8772
8772
|
var B;
|
|
8773
|
-
const { onClickTrack: t, onChangeTransfer: r, projects: s, labels: o = {} } = gt(ts), { projectId: i, id: l, title: c, cover: d, transfers: u, audioUrl: p, loading: h } = n, g = oe(() => u && u.length > 0, [u]), C = 24, m = -24, [f, k] = j(g ? parseInt(((B = u == null ? void 0 : u[0]) == null ? void 0 : B.pitchShift) ?? 0) : 0), [y,
|
|
8773
|
+
const { onClickTrack: t, onChangeTransfer: r, projects: s, labels: o = {} } = gt(ts), { projectId: i, id: l, title: c, cover: d, transfers: u, audioUrl: p, loading: h } = n, g = oe(() => u && u.length > 0, [u]), C = 24, m = -24, [f, k] = j(g ? parseInt(((B = u == null ? void 0 : u[0]) == null ? void 0 : B.pitchShift) ?? 0) : 0), [y, N] = j(h), b = X(null);
|
|
8774
8774
|
ie(() => {
|
|
8775
|
+
g && !u.some((x) => parseInt(x.pitchShift) === f) ? N(!0) : N(!1);
|
|
8776
|
+
}, [f, u, g]), ie(() => {
|
|
8775
8777
|
var x;
|
|
8776
|
-
|
|
8778
|
+
N(h), !h && g && k(parseInt(((x = u == null ? void 0 : u[0]) == null ? void 0 : x.pitchShift) ?? 0));
|
|
8777
8779
|
}, [h, g, u]), ie(() => () => {
|
|
8778
8780
|
b.current && clearTimeout(b.current);
|
|
8779
8781
|
}, []);
|
|
8780
|
-
const
|
|
8782
|
+
const R = J((x) => {
|
|
8781
8783
|
var U;
|
|
8782
8784
|
return g ? (U = u == null ? void 0 : u.find((T) => parseInt(T.pitchShift) === x)) == null ? void 0 : U.audioUrl : p;
|
|
8783
8785
|
}, [g, u, p]), E = J((x) => {
|
|
8784
8786
|
k(x), b.current && clearTimeout(b.current), b.current = setTimeout(() => {
|
|
8785
|
-
const U =
|
|
8787
|
+
const U = R(x), T = s.find((Q) => Q.id === i);
|
|
8786
8788
|
r == null || r(T, {
|
|
8787
8789
|
id: l,
|
|
8788
8790
|
title: c,
|
|
@@ -8791,18 +8793,18 @@ const nb = ({
|
|
|
8791
8793
|
pitchShift: x
|
|
8792
8794
|
});
|
|
8793
8795
|
}, Eb);
|
|
8794
|
-
}, [r, i, l, c,
|
|
8796
|
+
}, [r, i, l, c, R, s]), w = J((x) => {
|
|
8795
8797
|
if (x.stopPropagation(), y)
|
|
8796
8798
|
return;
|
|
8797
8799
|
const U = !g && !p;
|
|
8798
|
-
U &&
|
|
8800
|
+
U && N(!0), t == null || t({
|
|
8799
8801
|
...n,
|
|
8800
8802
|
id: l,
|
|
8801
8803
|
title: c,
|
|
8802
|
-
audioUrl: g || p ?
|
|
8804
|
+
audioUrl: g || p ? R(f) : null,
|
|
8803
8805
|
processTrack: U
|
|
8804
8806
|
});
|
|
8805
|
-
}, [t, n, l, c,
|
|
8807
|
+
}, [t, n, l, c, R, f, g, y, p]);
|
|
8806
8808
|
return /* @__PURE__ */ a(S, { direction: "column", gap: "1", children: /* @__PURE__ */ v(
|
|
8807
8809
|
S,
|
|
8808
8810
|
{
|
|
@@ -8923,7 +8925,7 @@ const Jb = "_starButton_1311l_1", Qb = "_disabled_1311l_17", Mb = "_readOnly_131
|
|
|
8923
8925
|
maxLabel: p,
|
|
8924
8926
|
...h
|
|
8925
8927
|
}) => {
|
|
8926
|
-
const [g, C] = j(r || 0), [m, f] = j(0), k = t !== void 0 ? t : g, y = t !== void 0,
|
|
8928
|
+
const [g, C] = j(r || 0), [m, f] = j(0), k = t !== void 0 ? t : g, y = t !== void 0, N = J(
|
|
8927
8929
|
(w) => {
|
|
8928
8930
|
if (s || o) return;
|
|
8929
8931
|
const B = w + 1, x = B === k ? 0 : B;
|
|
@@ -8937,7 +8939,7 @@ const Jb = "_starButton_1311l_1", Qb = "_disabled_1311l_17", Mb = "_readOnly_131
|
|
|
8937
8939
|
D !== m && (f(D), l == null || l({ value: D }));
|
|
8938
8940
|
},
|
|
8939
8941
|
[s, o, n, m, l]
|
|
8940
|
-
),
|
|
8942
|
+
), R = J(() => {
|
|
8941
8943
|
s || o || (f(0), l == null || l({ value: 0 }));
|
|
8942
8944
|
}, [s, o, l]), E = (w) => {
|
|
8943
8945
|
const B = m > 0 ? w < m : w < k, x = m > 0 && w < m, U = w < k;
|
|
@@ -8952,7 +8954,7 @@ const Jb = "_starButton_1311l_1", Qb = "_disabled_1311l_17", Mb = "_readOnly_131
|
|
|
8952
8954
|
[Xe.disabled]: s,
|
|
8953
8955
|
[Xe.readOnly]: o
|
|
8954
8956
|
}),
|
|
8955
|
-
onClick: () =>
|
|
8957
|
+
onClick: () => N(w),
|
|
8956
8958
|
disabled: s || o,
|
|
8957
8959
|
"aria-label": `Rate ${w + 1} out of ${n}`,
|
|
8958
8960
|
...h,
|
|
@@ -8983,7 +8985,7 @@ const Jb = "_starButton_1311l_1", Qb = "_disabled_1311l_17", Mb = "_readOnly_131
|
|
|
8983
8985
|
role: "radiogroup",
|
|
8984
8986
|
"aria-label": `Rating: ${k} out of ${n} stars`,
|
|
8985
8987
|
onMouseMove: b,
|
|
8986
|
-
onMouseLeave:
|
|
8988
|
+
onMouseLeave: R,
|
|
8987
8989
|
children: Array.from({ length: n }, (w, B) => E(B))
|
|
8988
8990
|
}
|
|
8989
8991
|
),
|
|
@@ -9188,9 +9190,9 @@ const lI = "_boxVertical_ujop8_21", cI = "_sliderRoot_ujop8_27", dI = "_sliderRo
|
|
|
9188
9190
|
horizontalWidth: f = "100%",
|
|
9189
9191
|
verticalHeight: k = 200,
|
|
9190
9192
|
scrollWheel: y = !1,
|
|
9191
|
-
...
|
|
9193
|
+
...N
|
|
9192
9194
|
}) => {
|
|
9193
|
-
const { onWheel: b, ...
|
|
9195
|
+
const { onWheel: b, ...R } = N, E = m === "vertical", w = (T) => (T - c) / (d - c) * 100, B = J(
|
|
9194
9196
|
(T) => {
|
|
9195
9197
|
if (b == null || b(T), h || !r || T.defaultPrevented) return;
|
|
9196
9198
|
const Q = E ? T.deltaY : Math.abs(T.deltaX) > Math.abs(T.deltaY) ? T.deltaX : T.deltaY;
|
|
@@ -9268,7 +9270,7 @@ const lI = "_boxVertical_ujop8_21", cI = "_sliderRoot_ujop8_27", dI = "_sliderRo
|
|
|
9268
9270
|
[ve.sliderRootVertical]: E
|
|
9269
9271
|
}),
|
|
9270
9272
|
onWheel: y ? B : b,
|
|
9271
|
-
...
|
|
9273
|
+
...R,
|
|
9272
9274
|
children: /* @__PURE__ */ v(
|
|
9273
9275
|
S,
|
|
9274
9276
|
{
|
|
@@ -9385,12 +9387,12 @@ const QI = ({
|
|
|
9385
9387
|
/* @__PURE__ */ v(S, { gap: "2", direction: "column", children: [
|
|
9386
9388
|
/* @__PURE__ */ a(Y, { size: "2", weight: "medium", children: n._("Input Level") }),
|
|
9387
9389
|
/* @__PURE__ */ a("div", { className: St.levelMeter, children: /* @__PURE__ */ a("div", { className: St.levelMeterTrack, children: /* @__PURE__ */ a("div", { className: St.levelMeterRow, children: Array.from({ length: 17 }, (f, k) => {
|
|
9388
|
-
const y = Math.max(0, (m - 5) / 25) * 17,
|
|
9390
|
+
const y = Math.max(0, (m - 5) / 25) * 17, N = k < y;
|
|
9389
9391
|
let b = "low";
|
|
9390
9392
|
return k >= 15 ? b = "high" : k >= 11 && (b = "mid"), /* @__PURE__ */ a(
|
|
9391
9393
|
"div",
|
|
9392
9394
|
{
|
|
9393
|
-
className: `${St.levelMeterSegment} ${
|
|
9395
|
+
className: `${St.levelMeterSegment} ${N ? `${St.active} ${St[b]}` : ""}`
|
|
9394
9396
|
},
|
|
9395
9397
|
`level-${k}`
|
|
9396
9398
|
);
|
|
@@ -9702,9 +9704,9 @@ const Zl = ({
|
|
|
9702
9704
|
droppable: f = !1,
|
|
9703
9705
|
isDropTarget: k = !1,
|
|
9704
9706
|
dndDroppableId: y,
|
|
9705
|
-
onDragEnter:
|
|
9707
|
+
onDragEnter: N,
|
|
9706
9708
|
onDragLeave: b,
|
|
9707
|
-
onDragOver:
|
|
9709
|
+
onDragOver: R,
|
|
9708
9710
|
onDrop: E,
|
|
9709
9711
|
isLoading: w = !1
|
|
9710
9712
|
}) => {
|
|
@@ -9738,9 +9740,9 @@ const Zl = ({
|
|
|
9738
9740
|
onMouseEnter: D,
|
|
9739
9741
|
onMouseLeave: z,
|
|
9740
9742
|
"data-setlist-id": t,
|
|
9741
|
-
onDragEnter: f ?
|
|
9743
|
+
onDragEnter: f ? N : void 0,
|
|
9742
9744
|
onDragLeave: f ? b : void 0,
|
|
9743
|
-
onDragOver: f ?
|
|
9745
|
+
onDragOver: f ? R : void 0,
|
|
9744
9746
|
onDrop: f ? E : void 0,
|
|
9745
9747
|
onKeyDown: r ? (V) => {
|
|
9746
9748
|
(V.key === "Enter" || V.key === " ") && (V.preventDefault(), r == null || r());
|
|
@@ -9842,7 +9844,7 @@ const Zl = ({
|
|
|
9842
9844
|
enableDndDropTargets: m = !1,
|
|
9843
9845
|
className: f
|
|
9844
9846
|
}) => {
|
|
9845
|
-
const { close: k, isMobile: y } = qr(), [
|
|
9847
|
+
const { close: k, isMobile: y } = qr(), [N, b] = j(null), R = (_) => {
|
|
9846
9848
|
r == null || r(_), y && k();
|
|
9847
9849
|
}, E = () => {
|
|
9848
9850
|
c == null || c(), y && k();
|
|
@@ -9996,7 +9998,7 @@ const Zl = ({
|
|
|
9996
9998
|
{
|
|
9997
9999
|
isSelected: fe,
|
|
9998
10000
|
setlistId: _.id,
|
|
9999
|
-
onClick: () =>
|
|
10001
|
+
onClick: () => R(_.id),
|
|
10000
10002
|
droppable: g,
|
|
10001
10003
|
isDropTarget: C === _.id,
|
|
10002
10004
|
dndDroppableId: m ? `setlist:${_.id}` : void 0,
|
|
@@ -10012,7 +10014,7 @@ const Zl = ({
|
|
|
10012
10014
|
onDragLeave: (qe) => {
|
|
10013
10015
|
l == null || l(_.id, qe);
|
|
10014
10016
|
},
|
|
10015
|
-
dropdownMenuOpen:
|
|
10017
|
+
dropdownMenuOpen: N === _.id,
|
|
10016
10018
|
onDropdownMenuOpenChange: (qe) => {
|
|
10017
10019
|
b(qe ? _.id : null);
|
|
10018
10020
|
},
|
|
@@ -10118,13 +10120,13 @@ const Zl = ({
|
|
|
10118
10120
|
mobileBreakpoint: d = mr,
|
|
10119
10121
|
...u
|
|
10120
10122
|
}) => {
|
|
10121
|
-
const p = sE(d), { isMobile: h, isOpen: g, open: C, close: m } = _l(p), [f, k] = j(!1), [y,
|
|
10123
|
+
const p = sE(d), { isMobile: h, isOpen: g, open: C, close: m } = _l(p), [f, k] = j(!1), [y, N] = j(!1), b = s ?? y, R = J(
|
|
10122
10124
|
(G) => {
|
|
10123
|
-
s == null &&
|
|
10125
|
+
s == null && N(G), o == null || o(G);
|
|
10124
10126
|
},
|
|
10125
10127
|
[s, o]
|
|
10126
10128
|
), E = h ? !1 : r && !b, w = () => {
|
|
10127
|
-
h || (k(!1),
|
|
10129
|
+
h || (k(!1), R(!1), i((G) => !G));
|
|
10128
10130
|
}, B = () => {
|
|
10129
10131
|
h || k(!0);
|
|
10130
10132
|
}, x = () => {
|
|
@@ -10132,9 +10134,9 @@ const Zl = ({
|
|
|
10132
10134
|
}, U = (G) => {
|
|
10133
10135
|
E ? w() : l && l(G);
|
|
10134
10136
|
}, T = () => {
|
|
10135
|
-
h || !r ||
|
|
10137
|
+
h || !r || R(!0);
|
|
10136
10138
|
}, Q = () => {
|
|
10137
|
-
|
|
10139
|
+
R(!1);
|
|
10138
10140
|
}, D = (G) => {
|
|
10139
10141
|
B(), G.buttons > 0 && T();
|
|
10140
10142
|
}, z = () => {
|
|
@@ -10403,13 +10405,13 @@ const aE = "_sectionTitle_bwlze_1", oE = "_separator_bwlze_17", co = {
|
|
|
10403
10405
|
sidebarTooltip: m,
|
|
10404
10406
|
children: f
|
|
10405
10407
|
}) => {
|
|
10406
|
-
const [k, y] = j(!1), [
|
|
10408
|
+
const [k, y] = j(!1), [N, b] = j(!1), { isMobile: R } = _l(), E = R ? !1 : k && !N;
|
|
10407
10409
|
return /* @__PURE__ */ v(we, { children: [
|
|
10408
10410
|
/* @__PURE__ */ v(
|
|
10409
10411
|
$l,
|
|
10410
10412
|
{
|
|
10411
10413
|
isCollapsed: k,
|
|
10412
|
-
isTemporarilyExpandedByDrag:
|
|
10414
|
+
isTemporarilyExpandedByDrag: N,
|
|
10413
10415
|
onTemporarilyExpandedByDragChange: b,
|
|
10414
10416
|
onCollapsedChange: y,
|
|
10415
10417
|
tooltip: m,
|
|
@@ -10443,7 +10445,7 @@ const aE = "_sectionTitle_bwlze_1", oE = "_separator_bwlze_17", co = {
|
|
|
10443
10445
|
newSetlistButtonTooltip: h,
|
|
10444
10446
|
expandButtonTooltip: g,
|
|
10445
10447
|
collapsed: E,
|
|
10446
|
-
isMobile:
|
|
10448
|
+
isMobile: R
|
|
10447
10449
|
}
|
|
10448
10450
|
)
|
|
10449
10451
|
]
|
|
@@ -10501,7 +10503,7 @@ const aE = "_sectionTitle_bwlze_1", oE = "_separator_bwlze_17", co = {
|
|
|
10501
10503
|
className: g,
|
|
10502
10504
|
...C
|
|
10503
10505
|
}, m) {
|
|
10504
|
-
const f = C["aria-label"], k = X(null), y = X(null),
|
|
10506
|
+
const f = C["aria-label"], k = X(null), y = X(null), N = X(null), b = X(null), [R, E] = j(!1), [w, B] = j(!1), [x, U] = j(!1), T = X({ value: t, min: s, max: o, step: i, disabled: l, onValueChange: r });
|
|
10505
10507
|
T.current = { value: t, min: s, max: o, step: i, disabled: l, onValueChange: r };
|
|
10506
10508
|
const Q = X({
|
|
10507
10509
|
tooltipDelayDuration: d,
|
|
@@ -10510,7 +10512,7 @@ const aE = "_sectionTitle_bwlze_1", oE = "_separator_bwlze_17", co = {
|
|
|
10510
10512
|
Q.current = { tooltipDelayDuration: d, tooltipCloseDelay: u };
|
|
10511
10513
|
const D = X({ accum: 0, axis: null, lastTime: 0 });
|
|
10512
10514
|
ie(() => () => {
|
|
10513
|
-
|
|
10515
|
+
N.current != null && clearTimeout(N.current), b.current != null && clearTimeout(b.current);
|
|
10514
10516
|
}, []), ie(() => {
|
|
10515
10517
|
const F = () => {
|
|
10516
10518
|
y.current = "keyboard";
|
|
@@ -10570,7 +10572,7 @@ const aE = "_sectionTitle_bwlze_1", oE = "_separator_bwlze_17", co = {
|
|
|
10570
10572
|
), O = () => {
|
|
10571
10573
|
l || U(!0);
|
|
10572
10574
|
}, P = () => {
|
|
10573
|
-
|
|
10575
|
+
N.current != null && (clearTimeout(N.current), N.current = null);
|
|
10574
10576
|
}, V = () => {
|
|
10575
10577
|
b.current != null && (clearTimeout(b.current), b.current = null);
|
|
10576
10578
|
}, $ = () => {
|
|
@@ -10582,8 +10584,8 @@ const aE = "_sectionTitle_bwlze_1", oE = "_separator_bwlze_17", co = {
|
|
|
10582
10584
|
B(!0);
|
|
10583
10585
|
return;
|
|
10584
10586
|
}
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
+
N.current = setTimeout(() => {
|
|
10588
|
+
N.current = null, B(!0);
|
|
10587
10589
|
}, F);
|
|
10588
10590
|
}, he = () => {
|
|
10589
10591
|
P();
|
|
@@ -10597,11 +10599,11 @@ const aE = "_sectionTitle_bwlze_1", oE = "_separator_bwlze_17", co = {
|
|
|
10597
10599
|
}, F);
|
|
10598
10600
|
}, de = () => {
|
|
10599
10601
|
l || h == null || h(t);
|
|
10600
|
-
}, ge = p ? p(t) : t, K = !l && (w || x ||
|
|
10602
|
+
}, ge = p ? p(t) : t, K = !l && (w || x || R), Z = /* @__PURE__ */ a(
|
|
10601
10603
|
zr,
|
|
10602
10604
|
{
|
|
10603
10605
|
className: cr.thumb,
|
|
10604
|
-
"data-focus-visible":
|
|
10606
|
+
"data-focus-visible": R || void 0,
|
|
10605
10607
|
"aria-label": f,
|
|
10606
10608
|
onFocus: $,
|
|
10607
10609
|
onBlur: G,
|
|
@@ -10832,7 +10834,7 @@ const dr = (n) => {
|
|
|
10832
10834
|
const g = X(null), C = X(null), [m, f] = j(!1), k = J((E) => {
|
|
10833
10835
|
const w = E.target, B = w.scrollLeft + w.clientWidth >= w.scrollWidth - 2;
|
|
10834
10836
|
f(B);
|
|
10835
|
-
}, []), y = !!l || !!d,
|
|
10837
|
+
}, []), y = !!l || !!d, N = J(
|
|
10836
10838
|
(E) => {
|
|
10837
10839
|
if (y) return;
|
|
10838
10840
|
const w = E.target.value;
|
|
@@ -10861,7 +10863,7 @@ const dr = (n) => {
|
|
|
10861
10863
|
}));
|
|
10862
10864
|
},
|
|
10863
10865
|
[t]
|
|
10864
|
-
),
|
|
10866
|
+
), R = J(() => {
|
|
10865
10867
|
t((E) => ({
|
|
10866
10868
|
...E,
|
|
10867
10869
|
conditioningAudio: null,
|
|
@@ -10904,7 +10906,7 @@ const dr = (n) => {
|
|
|
10904
10906
|
{
|
|
10905
10907
|
value: n.conditioningText,
|
|
10906
10908
|
onFocus: o,
|
|
10907
|
-
onChange:
|
|
10909
|
+
onChange: N,
|
|
10908
10910
|
placeholder: r._(
|
|
10909
10911
|
`Describe your desired sound characteristics (ex: ${RE(
|
|
10910
10912
|
n.instrument,
|
|
@@ -11028,7 +11030,7 @@ const dr = (n) => {
|
|
|
11028
11030
|
NE(n),
|
|
11029
11031
|
")"
|
|
11030
11032
|
] }),
|
|
11031
|
-
/* @__PURE__ */ a(Be, { variant: "soft", onClick:
|
|
11033
|
+
/* @__PURE__ */ a(Be, { variant: "soft", onClick: R, children: /* @__PURE__ */ a(qd, { width: 16, height: 16 }) })
|
|
11032
11034
|
]
|
|
11033
11035
|
}
|
|
11034
11036
|
) : /* @__PURE__ */ v(
|
|
@@ -11475,9 +11477,9 @@ const fr = {
|
|
|
11475
11477
|
generateFromSelectionTrack: f,
|
|
11476
11478
|
unmutedTracksCount: k,
|
|
11477
11479
|
onMountConcurrency: y,
|
|
11478
|
-
onClear:
|
|
11480
|
+
onClear: N,
|
|
11479
11481
|
onInspireMe: b,
|
|
11480
|
-
inspireMeLoading:
|
|
11482
|
+
inspireMeLoading: R,
|
|
11481
11483
|
onBoost: E,
|
|
11482
11484
|
boostLoading: w,
|
|
11483
11485
|
suggestedTags: B,
|
|
@@ -11631,7 +11633,7 @@ const fr = {
|
|
|
11631
11633
|
onAddConditioningAudio: s,
|
|
11632
11634
|
onTextConditioningFocus: o,
|
|
11633
11635
|
onInspireMe: b,
|
|
11634
|
-
inspireMeLoading:
|
|
11636
|
+
inspireMeLoading: R,
|
|
11635
11637
|
onBoost: E,
|
|
11636
11638
|
boostLoading: w,
|
|
11637
11639
|
suggestedTags: B,
|
|
@@ -11710,7 +11712,7 @@ const fr = {
|
|
|
11710
11712
|
inpaintingTrack: m,
|
|
11711
11713
|
generateFromSelectionTrack: f,
|
|
11712
11714
|
unmutedTracksCount: k,
|
|
11713
|
-
onClear:
|
|
11715
|
+
onClear: N,
|
|
11714
11716
|
i18n: l
|
|
11715
11717
|
}
|
|
11716
11718
|
) }),
|
|
@@ -11736,7 +11738,7 @@ const fr = {
|
|
|
11736
11738
|
_e,
|
|
11737
11739
|
{
|
|
11738
11740
|
type: "error",
|
|
11739
|
-
onClick:
|
|
11741
|
+
onClick: N,
|
|
11740
11742
|
ctaLabel: l._("Clear"),
|
|
11741
11743
|
showBackground: !1,
|
|
11742
11744
|
showIcon: !1,
|
|
@@ -11866,7 +11868,7 @@ const Ao = {
|
|
|
11866
11868
|
showStemsPaywall: C,
|
|
11867
11869
|
showHiFiSwitch: m
|
|
11868
11870
|
}) => {
|
|
11869
|
-
var
|
|
11871
|
+
var R;
|
|
11870
11872
|
const { submitted: f, handleSubmit: k } = Ma(l), y = [
|
|
11871
11873
|
{
|
|
11872
11874
|
value: "freeVocalInstruments",
|
|
@@ -11978,7 +11980,7 @@ const Ao = {
|
|
|
11978
11980
|
name: n._("Other"),
|
|
11979
11981
|
category: "paid"
|
|
11980
11982
|
}
|
|
11981
|
-
],
|
|
11983
|
+
], N = async (E) => {
|
|
11982
11984
|
if (E.isLocked) {
|
|
11983
11985
|
C(E.value);
|
|
11984
11986
|
return;
|
|
@@ -12033,7 +12035,7 @@ const Ao = {
|
|
|
12033
12035
|
};
|
|
12034
12036
|
}),
|
|
12035
12037
|
value: c.selectedStems,
|
|
12036
|
-
onSelect:
|
|
12038
|
+
onSelect: N,
|
|
12037
12039
|
style: {
|
|
12038
12040
|
marginBottom: "12px"
|
|
12039
12041
|
}
|
|
@@ -12054,7 +12056,7 @@ const Ao = {
|
|
|
12054
12056
|
_r,
|
|
12055
12057
|
{
|
|
12056
12058
|
title: n._("Separate Stems"),
|
|
12057
|
-
disabled: !((
|
|
12059
|
+
disabled: !((R = c == null ? void 0 : c.selectedStems) != null && R.length) || !(c != null && c.trackName),
|
|
12058
12060
|
loading: u,
|
|
12059
12061
|
onClick: k,
|
|
12060
12062
|
besideFooter: /* @__PURE__ */ v(S, { align: "center", gap: "2", children: [
|
|
@@ -12627,17 +12629,17 @@ const ms = (n, t) => typeof n == "string" ? { title: n, description: "", variant
|
|
|
12627
12629
|
const k = {
|
|
12628
12630
|
...ms(m, "neutral"),
|
|
12629
12631
|
id: `${Date.now()}-${Bw++}`
|
|
12630
|
-
}, y = k.duration ?? t,
|
|
12632
|
+
}, y = k.duration ?? t, N = setTimeout(() => {
|
|
12631
12633
|
u(k.id);
|
|
12632
12634
|
}, y);
|
|
12633
|
-
return d.current.set(k.id,
|
|
12634
|
-
const
|
|
12635
|
+
return d.current.set(k.id, N), c((b) => {
|
|
12636
|
+
const R = [...b.slice(-(r - 1)), k], E = new Set(R.map((w) => w.id));
|
|
12635
12637
|
return b.forEach((w) => {
|
|
12636
12638
|
if (!E.has(w.id)) {
|
|
12637
12639
|
const B = d.current.get(w.id);
|
|
12638
12640
|
B && (clearTimeout(B), d.current.delete(w.id));
|
|
12639
12641
|
}
|
|
12640
|
-
}),
|
|
12642
|
+
}), R;
|
|
12641
12643
|
}), k.id;
|
|
12642
12644
|
},
|
|
12643
12645
|
[u, t, r]
|
|
@@ -12870,9 +12872,9 @@ const Fw = "_track_2k5w9_1", zw = "_name_2k5w9_11", Ww = "_line_2k5w9_22", Hw =
|
|
|
12870
12872
|
isAutoMuted: f,
|
|
12871
12873
|
isSolo: k,
|
|
12872
12874
|
isOpen: y,
|
|
12873
|
-
instrumentSelected:
|
|
12875
|
+
instrumentSelected: N,
|
|
12874
12876
|
device: b,
|
|
12875
|
-
channel:
|
|
12877
|
+
channel: R,
|
|
12876
12878
|
// State change listeners
|
|
12877
12879
|
onVolumeChange: E,
|
|
12878
12880
|
onVolumeReset: w,
|
|
@@ -12956,7 +12958,7 @@ const Fw = "_track_2k5w9_1", zw = "_name_2k5w9_11", Ww = "_line_2k5w9_22", Hw =
|
|
|
12956
12958
|
xe.instrumentIconButton,
|
|
12957
12959
|
xe.menuOptionsTrigger
|
|
12958
12960
|
),
|
|
12959
|
-
children:
|
|
12961
|
+
children: N.icon
|
|
12960
12962
|
}
|
|
12961
12963
|
),
|
|
12962
12964
|
options: c,
|
|
@@ -12993,7 +12995,7 @@ const Fw = "_track_2k5w9_1", zw = "_name_2k5w9_11", Ww = "_line_2k5w9_22", Hw =
|
|
|
12993
12995
|
device: b,
|
|
12994
12996
|
onDeviceChange: z,
|
|
12995
12997
|
channelOptions: u,
|
|
12996
|
-
channel:
|
|
12998
|
+
channel: R,
|
|
12997
12999
|
onChannelChange: O,
|
|
12998
13000
|
inputLevel: p,
|
|
12999
13001
|
children: /* @__PURE__ */ a(
|
|
@@ -13106,15 +13108,15 @@ function pR({ schema: n }) {
|
|
|
13106
13108
|
r((b) => ({ ...b, [f]: k })), o((b) => ({ ...b, [f]: null }));
|
|
13107
13109
|
return;
|
|
13108
13110
|
}
|
|
13109
|
-
const y = f,
|
|
13111
|
+
const y = f, N = Object.fromEntries(
|
|
13110
13112
|
Object.entries(y).map(([b]) => ({ [b]: null }))
|
|
13111
13113
|
);
|
|
13112
|
-
r((b) => ({ ...b, ...y })), o((b) => ({ ...b, ...
|
|
13114
|
+
r((b) => ({ ...b, ...y })), o((b) => ({ ...b, ...N }));
|
|
13113
13115
|
}, []), u = (f, k) => {
|
|
13114
|
-
const y = t[f],
|
|
13115
|
-
return k === "checkbox" || k === "switch" ? { checked: !!y, onCheckedChange:
|
|
13116
|
-
var
|
|
13117
|
-
return
|
|
13116
|
+
const y = t[f], N = (b) => d(f, b);
|
|
13117
|
+
return k === "checkbox" || k === "switch" ? { checked: !!y, onCheckedChange: N } : { value: y ?? "", onChange: (b) => {
|
|
13118
|
+
var R;
|
|
13119
|
+
return N(((R = b == null ? void 0 : b.target) == null ? void 0 : R.value) ?? b);
|
|
13118
13120
|
} };
|
|
13119
13121
|
}, p = () => {
|
|
13120
13122
|
const f = n.safeParse(t);
|
|
@@ -13122,8 +13124,8 @@ function pR({ schema: n }) {
|
|
|
13122
13124
|
return o({}), { isValid: !0, data: f.data };
|
|
13123
13125
|
const k = {};
|
|
13124
13126
|
for (const y of f.error.issues) {
|
|
13125
|
-
const
|
|
13126
|
-
k[
|
|
13127
|
+
const N = y.path.join(".");
|
|
13128
|
+
k[N] || (k[N] = y.message);
|
|
13127
13129
|
}
|
|
13128
13130
|
return o(k), { isValid: !1, data: t };
|
|
13129
13131
|
}, h = J((f) => (l.current.push(f), () => {
|
|
@@ -13285,13 +13287,13 @@ function ac({
|
|
|
13285
13287
|
classNamesButton: C,
|
|
13286
13288
|
onPlayStateChange: m
|
|
13287
13289
|
}) {
|
|
13288
|
-
const [f, k] = j(!1), [y,
|
|
13290
|
+
const [f, k] = j(!1), [y, N] = j(!1), [b, R] = j(!1), [E, w] = j(!1);
|
|
13289
13291
|
ie(() => {
|
|
13290
13292
|
typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
13291
13293
|
}, []);
|
|
13292
13294
|
const B = oe(() => s, [s]), x = oe(() => o ? !1 : !B || B && f, [B, f, o]), U = X(null), T = X(null);
|
|
13293
13295
|
ie(() => {
|
|
13294
|
-
b || (!p || i) &&
|
|
13296
|
+
b || (!p || i) && R(!0);
|
|
13295
13297
|
}, [p, i, b]);
|
|
13296
13298
|
const Q = J(() => {
|
|
13297
13299
|
var W;
|
|
@@ -13305,7 +13307,7 @@ function ac({
|
|
|
13305
13307
|
T.current && n && ((W = T.current) == null || W.load(n));
|
|
13306
13308
|
}, [n]);
|
|
13307
13309
|
const z = J((W) => {
|
|
13308
|
-
T.current = W,
|
|
13310
|
+
T.current = W, N(!0), k(!1);
|
|
13309
13311
|
}, []), O = J(
|
|
13310
13312
|
(W) => {
|
|
13311
13313
|
if (k(!0), r == null || r(!0), m == null || m(!0), d) {
|
|
@@ -13768,7 +13770,7 @@ const UN = "_footerVoiceForm_lsc2c_2", ON = {
|
|
|
13768
13770
|
onClickUpgradeConcurrency: m,
|
|
13769
13771
|
onRemoveTrack: f
|
|
13770
13772
|
}) => {
|
|
13771
|
-
const [k, y] = j(null), [
|
|
13773
|
+
const [k, y] = j(null), [N, b] = j(null), { submitted: R, handleSubmit: E } = Ma(p), [w, B] = j({
|
|
13772
13774
|
lastPlayed: null,
|
|
13773
13775
|
active: null,
|
|
13774
13776
|
isPlaying: !1,
|
|
@@ -13785,9 +13787,9 @@ const UN = "_footerVoiceForm_lsc2c_2", ON = {
|
|
|
13785
13787
|
[n, r]
|
|
13786
13788
|
), U = J(
|
|
13787
13789
|
(P) => {
|
|
13788
|
-
|
|
13790
|
+
N !== P && b(P);
|
|
13789
13791
|
},
|
|
13790
|
-
[
|
|
13792
|
+
[N, b]
|
|
13791
13793
|
), T = J(
|
|
13792
13794
|
(P) => {
|
|
13793
13795
|
b(null), w.active && w.active.pause(), B((V) => ({
|
|
@@ -13836,7 +13838,7 @@ const UN = "_footerVoiceForm_lsc2c_2", ON = {
|
|
|
13836
13838
|
voices: n,
|
|
13837
13839
|
selectedId: k,
|
|
13838
13840
|
handleSelect: x,
|
|
13839
|
-
playingItem:
|
|
13841
|
+
playingItem: N,
|
|
13840
13842
|
handleAvatarClick: U,
|
|
13841
13843
|
handleDetailsClick: T,
|
|
13842
13844
|
wavegroup: Q,
|
|
@@ -13886,7 +13888,7 @@ const UN = "_footerVoiceForm_lsc2c_2", ON = {
|
|
|
13886
13888
|
onMountConcurrency: g
|
|
13887
13889
|
}
|
|
13888
13890
|
),
|
|
13889
|
-
!d && !
|
|
13891
|
+
!d && !R && !u && !i && /* @__PURE__ */ a(
|
|
13890
13892
|
MN,
|
|
13891
13893
|
{
|
|
13892
13894
|
trackId: t.trackId,
|
|
@@ -13896,7 +13898,7 @@ const UN = "_footerVoiceForm_lsc2c_2", ON = {
|
|
|
13896
13898
|
onRemoveTrack: f
|
|
13897
13899
|
}
|
|
13898
13900
|
),
|
|
13899
|
-
!d &&
|
|
13901
|
+
!d && R && !u && !i && /* @__PURE__ */ a(_e, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ a(H, { size: "2", children: l._("Voice conversion initialized!") }) }),
|
|
13900
13902
|
!d && u && !i && /* @__PURE__ */ a(
|
|
13901
13903
|
_e,
|
|
13902
13904
|
{
|