@moises.ai/design-system 3.6.24 → 3.6.25
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
|
@@ -26,8 +26,8 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Wc = [" ", "Enter"], Bt = "Sele
|
|
|
26
26
|
autoComplete: A,
|
|
27
27
|
disabled: p,
|
|
28
28
|
required: k,
|
|
29
|
-
form:
|
|
30
|
-
} = n, m = Vn(e), [
|
|
29
|
+
form: f
|
|
30
|
+
} = n, m = Vn(e), [C, E] = d.useState(null), [b, I] = d.useState(null), [S, B] = d.useState(!1), w = ta(u), [Q, O] = xn({
|
|
31
31
|
prop: s,
|
|
32
32
|
defaultProp: a ?? !1,
|
|
33
33
|
onChange: o,
|
|
@@ -37,18 +37,18 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Wc = [" ", "Enter"], Bt = "Sele
|
|
|
37
37
|
defaultProp: l,
|
|
38
38
|
onChange: c,
|
|
39
39
|
caller: Bt
|
|
40
|
-
}), z = d.useRef(null), M =
|
|
40
|
+
}), z = d.useRef(null), M = C ? f || !!C.closest("form") : !0, [U, J] = d.useState(/* @__PURE__ */ new Set()), x = Array.from(U).map((L) => L.props.value).join(";");
|
|
41
41
|
return /* @__PURE__ */ r(Vi, { ...m, children: /* @__PURE__ */ g(
|
|
42
42
|
Vc,
|
|
43
43
|
{
|
|
44
44
|
required: k,
|
|
45
45
|
scope: e,
|
|
46
|
-
trigger:
|
|
46
|
+
trigger: C,
|
|
47
47
|
onTriggerChange: E,
|
|
48
|
-
valueNode:
|
|
48
|
+
valueNode: b,
|
|
49
49
|
onValueNodeChange: I,
|
|
50
50
|
valueNodeHasChildren: S,
|
|
51
|
-
onValueNodeHasChildrenChange:
|
|
51
|
+
onValueNodeHasChildrenChange: B,
|
|
52
52
|
contentId: js(),
|
|
53
53
|
value: T,
|
|
54
54
|
onValueChange: D,
|
|
@@ -85,7 +85,7 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Wc = [" ", "Enter"], Bt = "Sele
|
|
|
85
85
|
value: T,
|
|
86
86
|
onChange: (L) => D(L.target.value),
|
|
87
87
|
disabled: p,
|
|
88
|
-
form:
|
|
88
|
+
form: f,
|
|
89
89
|
children: [
|
|
90
90
|
T === void 0 ? /* @__PURE__ */ r("option", { value: "" }) : null,
|
|
91
91
|
Array.from(U)
|
|
@@ -101,9 +101,9 @@ Ia.displayName = Bt;
|
|
|
101
101
|
var ba = "SelectTrigger", Ba = d.forwardRef(
|
|
102
102
|
(n, e) => {
|
|
103
103
|
const { __scopeSelect: t, disabled: s = !1, ...a } = n, o = Vn(t), i = lt(ba, t), l = i.disabled || s, c = Se(e, i.onTriggerChange), u = Ln(t), h = d.useRef("touch"), [A, p, k] = Xa((m) => {
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
}),
|
|
104
|
+
const C = u().filter((I) => !I.disabled), E = C.find((I) => I.value === i.value), b = Ya(C, m, E);
|
|
105
|
+
b !== void 0 && i.onValueChange(b.value);
|
|
106
|
+
}), f = (m) => {
|
|
107
107
|
l || (i.onOpenChange(!0), k()), m && (i.triggerPointerDownPosRef.current = {
|
|
108
108
|
x: Math.round(m.pageX),
|
|
109
109
|
y: Math.round(m.pageY)
|
|
@@ -126,16 +126,16 @@ var ba = "SelectTrigger", Ba = d.forwardRef(
|
|
|
126
126
|
...a,
|
|
127
127
|
ref: c,
|
|
128
128
|
onClick: ie(a.onClick, (m) => {
|
|
129
|
-
m.currentTarget.focus(), h.current !== "mouse" &&
|
|
129
|
+
m.currentTarget.focus(), h.current !== "mouse" && f(m);
|
|
130
130
|
}),
|
|
131
131
|
onPointerDown: ie(a.onPointerDown, (m) => {
|
|
132
132
|
h.current = m.pointerType;
|
|
133
|
-
const
|
|
134
|
-
|
|
133
|
+
const C = m.target;
|
|
134
|
+
C.hasPointerCapture(m.pointerId) && C.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (f(m), m.preventDefault());
|
|
135
135
|
}),
|
|
136
136
|
onKeyDown: ie(a.onKeyDown, (m) => {
|
|
137
|
-
const
|
|
138
|
-
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && p(m.key), !(
|
|
137
|
+
const C = A.current !== "";
|
|
138
|
+
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && p(m.key), !(C && m.key === " ") && jc.includes(m.key) && (f(), m.preventDefault());
|
|
139
139
|
})
|
|
140
140
|
}
|
|
141
141
|
) });
|
|
@@ -201,12 +201,12 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
201
201
|
arrowPadding: A,
|
|
202
202
|
collisionBoundary: p,
|
|
203
203
|
collisionPadding: k,
|
|
204
|
-
sticky:
|
|
204
|
+
sticky: f,
|
|
205
205
|
hideWhenDetached: m,
|
|
206
|
-
avoidCollisions:
|
|
206
|
+
avoidCollisions: C,
|
|
207
207
|
//
|
|
208
208
|
...E
|
|
209
|
-
} = n,
|
|
209
|
+
} = n, b = lt(wt, t), [I, S] = d.useState(null), [B, w] = d.useState(null), Q = Se(e, (V) => S(V)), [O, T] = d.useState(null), [D, z] = d.useState(
|
|
210
210
|
null
|
|
211
211
|
), M = Ln(t), [U, J] = d.useState(!1), x = d.useRef(!1);
|
|
212
212
|
d.useEffect(() => {
|
|
@@ -216,9 +216,9 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
216
216
|
(V) => {
|
|
217
217
|
const [ue, ...Te] = M().map((ne) => ne.ref.current), [ce] = Te.slice(-1), te = document.activeElement;
|
|
218
218
|
for (const ne of V)
|
|
219
|
-
if (ne === te || (ne == null || ne.scrollIntoView({ block: "nearest" }), ne === ue &&
|
|
219
|
+
if (ne === te || (ne == null || ne.scrollIntoView({ block: "nearest" }), ne === ue && B && (B.scrollTop = 0), ne === ce && B && (B.scrollTop = B.scrollHeight), ne == null || ne.focus(), document.activeElement !== te)) return;
|
|
220
220
|
},
|
|
221
|
-
[M,
|
|
221
|
+
[M, B]
|
|
222
222
|
), G = d.useCallback(
|
|
223
223
|
() => L([O, I]),
|
|
224
224
|
[L, O, I]
|
|
@@ -226,7 +226,7 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
226
226
|
d.useEffect(() => {
|
|
227
227
|
U && G();
|
|
228
228
|
}, [U, G]);
|
|
229
|
-
const { onOpenChange: Z, triggerPointerDownPosRef: R } =
|
|
229
|
+
const { onOpenChange: Z, triggerPointerDownPosRef: R } = b;
|
|
230
230
|
d.useEffect(() => {
|
|
231
231
|
if (I) {
|
|
232
232
|
let V = { x: 0, y: 0 };
|
|
@@ -255,15 +255,15 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
255
255
|
}), Re = d.useCallback(
|
|
256
256
|
(V, ue, Te) => {
|
|
257
257
|
const ce = !x.current && !Te;
|
|
258
|
-
(
|
|
258
|
+
(b.value !== void 0 && b.value === ue || ce) && (T(V), ce && (x.current = !0));
|
|
259
259
|
},
|
|
260
|
-
[
|
|
260
|
+
[b.value]
|
|
261
261
|
), xe = d.useCallback(() => I == null ? void 0 : I.focus(), [I]), Qe = d.useCallback(
|
|
262
262
|
(V, ue, Te) => {
|
|
263
263
|
const ce = !x.current && !Te;
|
|
264
|
-
(
|
|
264
|
+
(b.value !== void 0 && b.value === ue || ce) && z(V);
|
|
265
265
|
},
|
|
266
|
-
[
|
|
266
|
+
[b.value]
|
|
267
267
|
), le = s === "popper" ? Rs : Ja, be = le === Rs ? {
|
|
268
268
|
side: l,
|
|
269
269
|
sideOffset: c,
|
|
@@ -272,16 +272,16 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
272
272
|
arrowPadding: A,
|
|
273
273
|
collisionBoundary: p,
|
|
274
274
|
collisionPadding: k,
|
|
275
|
-
sticky:
|
|
275
|
+
sticky: f,
|
|
276
276
|
hideWhenDetached: m,
|
|
277
|
-
avoidCollisions:
|
|
277
|
+
avoidCollisions: C
|
|
278
278
|
} : {};
|
|
279
279
|
return /* @__PURE__ */ r(
|
|
280
280
|
Ta,
|
|
281
281
|
{
|
|
282
282
|
scope: t,
|
|
283
283
|
content: I,
|
|
284
|
-
viewport:
|
|
284
|
+
viewport: B,
|
|
285
285
|
onViewportChange: w,
|
|
286
286
|
itemRefCallback: Re,
|
|
287
287
|
selectedItem: O,
|
|
@@ -296,13 +296,13 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
296
296
|
$i,
|
|
297
297
|
{
|
|
298
298
|
asChild: !0,
|
|
299
|
-
trapped:
|
|
299
|
+
trapped: b.open,
|
|
300
300
|
onMountAutoFocus: (V) => {
|
|
301
301
|
V.preventDefault();
|
|
302
302
|
},
|
|
303
303
|
onUnmountAutoFocus: ie(a, (V) => {
|
|
304
304
|
var ue;
|
|
305
|
-
(ue =
|
|
305
|
+
(ue = b.trigger) == null || ue.focus({ preventScroll: !0 }), V.preventDefault();
|
|
306
306
|
}),
|
|
307
307
|
children: /* @__PURE__ */ r(
|
|
308
308
|
el,
|
|
@@ -312,14 +312,14 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
312
312
|
onEscapeKeyDown: o,
|
|
313
313
|
onPointerDownOutside: i,
|
|
314
314
|
onFocusOutside: (V) => V.preventDefault(),
|
|
315
|
-
onDismiss: () =>
|
|
315
|
+
onDismiss: () => b.onOpenChange(!1),
|
|
316
316
|
children: /* @__PURE__ */ r(
|
|
317
317
|
le,
|
|
318
318
|
{
|
|
319
319
|
role: "listbox",
|
|
320
|
-
id:
|
|
321
|
-
"data-state":
|
|
322
|
-
dir:
|
|
320
|
+
id: b.contentId,
|
|
321
|
+
"data-state": b.open ? "open" : "closed",
|
|
322
|
+
dir: b.dir,
|
|
323
323
|
onContextMenu: (V) => V.preventDefault(),
|
|
324
324
|
...E,
|
|
325
325
|
...be,
|
|
@@ -356,8 +356,8 @@ var Me = 10, [Ta, ct] = Lt(wt), Yc = "SelectContentImpl", Zc = tl("SelectContent
|
|
|
356
356
|
);
|
|
357
357
|
Da.displayName = Yc;
|
|
358
358
|
var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
|
|
359
|
-
const { __scopeSelect: t, onPlaced: s, ...a } = n, o = lt(wt, t), i = ct(wt, t), [l, c] = d.useState(null), [u, h] = d.useState(null), A = Se(e, (Q) => h(Q)), p = Ln(t), k = d.useRef(!1),
|
|
360
|
-
if (o.trigger && o.valueNode && l && u && m &&
|
|
359
|
+
const { __scopeSelect: t, onPlaced: s, ...a } = n, o = lt(wt, t), i = ct(wt, t), [l, c] = d.useState(null), [u, h] = d.useState(null), A = Se(e, (Q) => h(Q)), p = Ln(t), k = d.useRef(!1), f = d.useRef(!0), { viewport: m, selectedItem: C, selectedItemText: E, focusSelectedItem: b } = i, I = d.useCallback(() => {
|
|
360
|
+
if (o.trigger && o.valueNode && l && u && m && C && E) {
|
|
361
361
|
const Q = o.trigger.getBoundingClientRect(), O = u.getBoundingClientRect(), T = o.valueNode.getBoundingClientRect(), D = E.getBoundingClientRect();
|
|
362
362
|
if (o.dir !== "rtl") {
|
|
363
363
|
const te = D.left - O.left, ne = T.left - te, At = Q.left - ne, ht = Q.width + At, is = Math.max(ht, O.width), ls = window.innerWidth - Me, cs = Qn(ne, [
|
|
@@ -377,9 +377,9 @@ var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
|
|
|
377
377
|
]);
|
|
378
378
|
l.style.minWidth = ht + "px", l.style.right = cs + "px";
|
|
379
379
|
}
|
|
380
|
-
const z = p(), M = window.innerHeight - Me * 2, U = m.scrollHeight, J = window.getComputedStyle(u), x = parseInt(J.borderTopWidth, 10), L = parseInt(J.paddingTop, 10), G = parseInt(J.borderBottomWidth, 10), Z = parseInt(J.paddingBottom, 10), R = x + L + U + Z + G, H = Math.min(
|
|
380
|
+
const z = p(), M = window.innerHeight - Me * 2, U = m.scrollHeight, J = window.getComputedStyle(u), x = parseInt(J.borderTopWidth, 10), L = parseInt(J.paddingTop, 10), G = parseInt(J.borderBottomWidth, 10), Z = parseInt(J.paddingBottom, 10), R = x + L + U + Z + G, H = Math.min(C.offsetHeight * 5, R), ae = window.getComputedStyle(m), Re = parseInt(ae.paddingTop, 10), xe = parseInt(ae.paddingBottom, 10), Qe = Q.top + Q.height / 2 - Me, le = M - Qe, be = C.offsetHeight / 2, V = C.offsetTop + be, ue = x + L + V, Te = R - ue;
|
|
381
381
|
if (ue <= Qe) {
|
|
382
|
-
const te = z.length > 0 &&
|
|
382
|
+
const te = z.length > 0 && C === z[z.length - 1].ref.current;
|
|
383
383
|
l.style.bottom = "0px";
|
|
384
384
|
const ne = u.clientHeight - m.offsetTop - m.offsetHeight, At = Math.max(
|
|
385
385
|
le,
|
|
@@ -388,7 +388,7 @@ var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
|
|
|
388
388
|
), ht = ue + At;
|
|
389
389
|
l.style.height = ht + "px";
|
|
390
390
|
} else {
|
|
391
|
-
const te = z.length > 0 &&
|
|
391
|
+
const te = z.length > 0 && C === z[0].ref.current;
|
|
392
392
|
l.style.top = "0px";
|
|
393
393
|
const At = Math.max(
|
|
394
394
|
Qe,
|
|
@@ -406,21 +406,21 @@ var _c = "SelectItemAlignedPosition", Ja = d.forwardRef((n, e) => {
|
|
|
406
406
|
l,
|
|
407
407
|
u,
|
|
408
408
|
m,
|
|
409
|
-
|
|
409
|
+
C,
|
|
410
410
|
E,
|
|
411
411
|
o.dir,
|
|
412
412
|
s
|
|
413
413
|
]);
|
|
414
414
|
ot(() => I(), [I]);
|
|
415
|
-
const [S,
|
|
415
|
+
const [S, B] = d.useState();
|
|
416
416
|
ot(() => {
|
|
417
|
-
u &&
|
|
417
|
+
u && B(window.getComputedStyle(u).zIndex);
|
|
418
418
|
}, [u]);
|
|
419
419
|
const w = d.useCallback(
|
|
420
420
|
(Q) => {
|
|
421
|
-
Q &&
|
|
421
|
+
Q && f.current === !0 && (I(), b == null || b(), f.current = !1);
|
|
422
422
|
},
|
|
423
|
-
[I,
|
|
423
|
+
[I, b]
|
|
424
424
|
);
|
|
425
425
|
return /* @__PURE__ */ r(
|
|
426
426
|
ed,
|
|
@@ -527,9 +527,9 @@ var [ed, Zs] = Lt(wt, {}), Ns = "SelectViewport", Pa = d.forwardRef(
|
|
|
527
527
|
if (p != null && p.current && A) {
|
|
528
528
|
const k = Math.abs(c.current - h.scrollTop);
|
|
529
529
|
if (k > 0) {
|
|
530
|
-
const
|
|
531
|
-
if (E <
|
|
532
|
-
const
|
|
530
|
+
const f = window.innerHeight - Me * 2, m = parseFloat(A.style.minHeight), C = parseFloat(A.style.height), E = Math.max(m, C);
|
|
531
|
+
if (E < f) {
|
|
532
|
+
const b = E + k, I = Math.min(f, b), S = b - I;
|
|
533
533
|
A.style.height = I + "px", A.style.bottom === "0px" && (h.scrollTop = S > 0 ? S : 0, A.style.justifyContent = "flex-end");
|
|
534
534
|
}
|
|
535
535
|
}
|
|
@@ -564,13 +564,13 @@ var Tn = "SelectItem", [sd, Fa] = Lt(Tn), Ha = d.forwardRef(
|
|
|
564
564
|
disabled: a = !1,
|
|
565
565
|
textValue: o,
|
|
566
566
|
...i
|
|
567
|
-
} = n, l = lt(Tn, t), c = ct(Tn, t), u = l.value === s, [h, A] = d.useState(o ?? ""), [p, k] = d.useState(!1),
|
|
567
|
+
} = n, l = lt(Tn, t), c = ct(Tn, t), u = l.value === s, [h, A] = d.useState(o ?? ""), [p, k] = d.useState(!1), f = Se(
|
|
568
568
|
e,
|
|
569
|
-
(
|
|
569
|
+
(b) => {
|
|
570
570
|
var I;
|
|
571
|
-
return (I = c.itemRefCallback) == null ? void 0 : I.call(c,
|
|
571
|
+
return (I = c.itemRefCallback) == null ? void 0 : I.call(c, b, s, a);
|
|
572
572
|
}
|
|
573
|
-
), m = js(),
|
|
573
|
+
), m = js(), C = d.useRef("touch"), E = () => {
|
|
574
574
|
a || (l.onValueChange(s), l.onOpenChange(!1));
|
|
575
575
|
};
|
|
576
576
|
if (s === "")
|
|
@@ -585,8 +585,8 @@ var Tn = "SelectItem", [sd, Fa] = Lt(Tn), Ha = d.forwardRef(
|
|
|
585
585
|
disabled: a,
|
|
586
586
|
textId: m,
|
|
587
587
|
isSelected: u,
|
|
588
|
-
onItemTextChange: d.useCallback((
|
|
589
|
-
A((I) => I || ((
|
|
588
|
+
onItemTextChange: d.useCallback((b) => {
|
|
589
|
+
A((I) => I || ((b == null ? void 0 : b.textContent) ?? "").trim());
|
|
590
590
|
}, []),
|
|
591
591
|
children: /* @__PURE__ */ r(
|
|
592
592
|
Wn.ItemSlot,
|
|
@@ -607,29 +607,29 @@ var Tn = "SelectItem", [sd, Fa] = Lt(Tn), Ha = d.forwardRef(
|
|
|
607
607
|
"data-disabled": a ? "" : void 0,
|
|
608
608
|
tabIndex: a ? void 0 : -1,
|
|
609
609
|
...i,
|
|
610
|
-
ref:
|
|
610
|
+
ref: f,
|
|
611
611
|
onFocus: ie(i.onFocus, () => k(!0)),
|
|
612
612
|
onBlur: ie(i.onBlur, () => k(!1)),
|
|
613
613
|
onClick: ie(i.onClick, () => {
|
|
614
|
-
|
|
614
|
+
C.current !== "mouse" && E();
|
|
615
615
|
}),
|
|
616
616
|
onPointerUp: ie(i.onPointerUp, () => {
|
|
617
|
-
|
|
617
|
+
C.current === "mouse" && E();
|
|
618
618
|
}),
|
|
619
|
-
onPointerDown: ie(i.onPointerDown, (
|
|
620
|
-
|
|
619
|
+
onPointerDown: ie(i.onPointerDown, (b) => {
|
|
620
|
+
C.current = b.pointerType;
|
|
621
621
|
}),
|
|
622
|
-
onPointerMove: ie(i.onPointerMove, (
|
|
622
|
+
onPointerMove: ie(i.onPointerMove, (b) => {
|
|
623
623
|
var I;
|
|
624
|
-
|
|
624
|
+
C.current = b.pointerType, a ? (I = c.onItemLeave) == null || I.call(c) : C.current === "mouse" && b.currentTarget.focus({ preventScroll: !0 });
|
|
625
625
|
}),
|
|
626
|
-
onPointerLeave: ie(i.onPointerLeave, (
|
|
626
|
+
onPointerLeave: ie(i.onPointerLeave, (b) => {
|
|
627
627
|
var I;
|
|
628
|
-
|
|
628
|
+
b.currentTarget === document.activeElement && ((I = c.onItemLeave) == null || I.call(c));
|
|
629
629
|
}),
|
|
630
|
-
onKeyDown: ie(i.onKeyDown, (
|
|
630
|
+
onKeyDown: ie(i.onKeyDown, (b) => {
|
|
631
631
|
var S;
|
|
632
|
-
((S = c.searchRef) == null ? void 0 : S.current) !== "" &&
|
|
632
|
+
((S = c.searchRef) == null ? void 0 : S.current) !== "" && b.key === " " || (Wc.includes(b.key) && E(), b.key === " " && b.preventDefault());
|
|
633
633
|
})
|
|
634
634
|
}
|
|
635
635
|
)
|
|
@@ -647,14 +647,14 @@ var rn = "SelectItemText", ja = d.forwardRef(
|
|
|
647
647
|
(E) => A(E),
|
|
648
648
|
c.onItemTextChange,
|
|
649
649
|
(E) => {
|
|
650
|
-
var
|
|
651
|
-
return (
|
|
650
|
+
var b;
|
|
651
|
+
return (b = l.itemTextRefCallback) == null ? void 0 : b.call(l, E, c.value, c.disabled);
|
|
652
652
|
}
|
|
653
|
-
), k = h == null ? void 0 : h.textContent,
|
|
653
|
+
), k = h == null ? void 0 : h.textContent, f = d.useMemo(
|
|
654
654
|
() => /* @__PURE__ */ r("option", { value: c.value, disabled: c.disabled, children: k }, c.value),
|
|
655
655
|
[c.disabled, c.value, k]
|
|
656
|
-
), { onNativeOptionAdd: m, onNativeOptionRemove:
|
|
657
|
-
return ot(() => (m(
|
|
656
|
+
), { onNativeOptionAdd: m, onNativeOptionRemove: C } = u;
|
|
657
|
+
return ot(() => (m(f), () => C(f)), [m, C, f]), /* @__PURE__ */ g(pe, { children: [
|
|
658
658
|
/* @__PURE__ */ r(fe.span, { id: c.textId, ...o, ref: p }),
|
|
659
659
|
c.isSelected && i.valueNode && !i.valueNodeHasChildren ? Sa.createPortal(o.children, i.valueNode) : null
|
|
660
660
|
] });
|
|
@@ -836,14 +836,14 @@ var dd = Ia, ud = Ba, Ad = Ra, hd = Na, pd = xa, md = Qa, gd = Pa, fd = za, vd =
|
|
|
836
836
|
onValueCommit: p = () => {
|
|
837
837
|
},
|
|
838
838
|
inverted: k = !1,
|
|
839
|
-
form:
|
|
839
|
+
form: f,
|
|
840
840
|
...m
|
|
841
|
-
} = n,
|
|
841
|
+
} = n, C = d.useRef(/* @__PURE__ */ new Set()), E = d.useRef(0), I = i === "horizontal" ? Bd : wd, [S = [], B] = xn({
|
|
842
842
|
prop: h,
|
|
843
843
|
defaultProp: u,
|
|
844
844
|
onChange: (z) => {
|
|
845
845
|
var U;
|
|
846
|
-
(U = [...
|
|
846
|
+
(U = [...C.current][E.current]) == null || U.focus(), A(z);
|
|
847
847
|
}
|
|
848
848
|
}), w = d.useRef(S);
|
|
849
849
|
function Q(z) {
|
|
@@ -859,7 +859,7 @@ var dd = Ia, ud = Ba, Ad = Ra, hd = Na, pd = xa, md = Qa, gd = Pa, fd = za, vd =
|
|
|
859
859
|
}
|
|
860
860
|
function D(z, M, { commit: U } = { commit: !1 }) {
|
|
861
861
|
const J = Ud(o), x = zd(Math.round((z - s) / o) * o + s, J), L = Qn(x, [s, a]);
|
|
862
|
-
|
|
862
|
+
B((G = []) => {
|
|
863
863
|
const Z = xd(G, L, M);
|
|
864
864
|
if (Pd(Z, c * o)) {
|
|
865
865
|
E.current = Z.indexOf(L);
|
|
@@ -878,10 +878,10 @@ var dd = Ia, ud = Ba, Ad = Ra, hd = Na, pd = xa, md = Qa, gd = Pa, fd = za, vd =
|
|
|
878
878
|
min: s,
|
|
879
879
|
max: a,
|
|
880
880
|
valueIndexToChangeRef: E,
|
|
881
|
-
thumbs:
|
|
881
|
+
thumbs: C.current,
|
|
882
882
|
values: S,
|
|
883
883
|
orientation: i,
|
|
884
|
-
form:
|
|
884
|
+
form: f,
|
|
885
885
|
children: /* @__PURE__ */ r(Ds.Provider, { scope: n.__scopeSlider, children: /* @__PURE__ */ r(Ds.Slot, { scope: n.__scopeSlider, children: /* @__PURE__ */ r(
|
|
886
886
|
I,
|
|
887
887
|
{
|
|
@@ -930,10 +930,10 @@ var [no, so] = eo(Vt, {
|
|
|
930
930
|
onSlideEnd: c,
|
|
931
931
|
onStepKeyDown: u,
|
|
932
932
|
...h
|
|
933
|
-
} = n, [A, p] = d.useState(null), k = Se(e, (I) => p(I)),
|
|
934
|
-
function
|
|
935
|
-
const S =
|
|
936
|
-
return
|
|
933
|
+
} = n, [A, p] = d.useState(null), k = Se(e, (I) => p(I)), f = d.useRef(void 0), m = ta(a), C = m === "ltr", E = C && !o || !C && o;
|
|
934
|
+
function b(I) {
|
|
935
|
+
const S = f.current || A.getBoundingClientRect(), B = [0, S.width], Q = _s(B, E ? [t, s] : [s, t]);
|
|
936
|
+
return f.current = S, Q(I - S.left);
|
|
937
937
|
}
|
|
938
938
|
return /* @__PURE__ */ r(
|
|
939
939
|
no,
|
|
@@ -955,19 +955,19 @@ var [no, so] = eo(Vt, {
|
|
|
955
955
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
956
956
|
},
|
|
957
957
|
onSlideStart: (I) => {
|
|
958
|
-
const S =
|
|
958
|
+
const S = b(I.clientX);
|
|
959
959
|
i == null || i(S);
|
|
960
960
|
},
|
|
961
961
|
onSlideMove: (I) => {
|
|
962
|
-
const S =
|
|
962
|
+
const S = b(I.clientX);
|
|
963
963
|
l == null || l(S);
|
|
964
964
|
},
|
|
965
965
|
onSlideEnd: () => {
|
|
966
|
-
|
|
966
|
+
f.current = void 0, c == null || c();
|
|
967
967
|
},
|
|
968
968
|
onStepKeyDown: (I) => {
|
|
969
|
-
const
|
|
970
|
-
u == null || u({ event: I, direction:
|
|
969
|
+
const B = $a[E ? "from-left" : "from-right"].includes(I.key);
|
|
970
|
+
u == null || u({ event: I, direction: B ? -1 : 1 });
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
)
|
|
@@ -986,9 +986,9 @@ var [no, so] = eo(Vt, {
|
|
|
986
986
|
onStepKeyDown: c,
|
|
987
987
|
...u
|
|
988
988
|
} = n, h = d.useRef(null), A = Se(e, h), p = d.useRef(void 0), k = !a;
|
|
989
|
-
function
|
|
990
|
-
const
|
|
991
|
-
return p.current =
|
|
989
|
+
function f(m) {
|
|
990
|
+
const C = p.current || h.current.getBoundingClientRect(), E = [0, C.height], I = _s(E, k ? [s, t] : [t, s]);
|
|
991
|
+
return p.current = C, I(m - C.top);
|
|
992
992
|
}
|
|
993
993
|
return /* @__PURE__ */ r(
|
|
994
994
|
no,
|
|
@@ -1009,12 +1009,12 @@ var [no, so] = eo(Vt, {
|
|
|
1009
1009
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
1010
1010
|
},
|
|
1011
1011
|
onSlideStart: (m) => {
|
|
1012
|
-
const
|
|
1013
|
-
o == null || o(
|
|
1012
|
+
const C = f(m.clientY);
|
|
1013
|
+
o == null || o(C);
|
|
1014
1014
|
},
|
|
1015
1015
|
onSlideMove: (m) => {
|
|
1016
|
-
const
|
|
1017
|
-
i == null || i(
|
|
1016
|
+
const C = f(m.clientY);
|
|
1017
|
+
i == null || i(C);
|
|
1018
1018
|
},
|
|
1019
1019
|
onSlideEnd: () => {
|
|
1020
1020
|
p.current = void 0, l == null || l();
|
|
@@ -1109,7 +1109,7 @@ var Ps = "SliderThumb", lo = d.forwardRef(
|
|
|
1109
1109
|
}
|
|
1110
1110
|
), Rd = d.forwardRef(
|
|
1111
1111
|
(n, e) => {
|
|
1112
|
-
const { __scopeSlider: t, index: s, name: a, ...o } = n, i = qn(Ps, t), l = so(Ps, t), [c, u] = d.useState(null), h = Se(e, (
|
|
1112
|
+
const { __scopeSlider: t, index: s, name: a, ...o } = n, i = qn(Ps, t), l = so(Ps, t), [c, u] = d.useState(null), h = Se(e, (b) => u(b)), A = c ? i.form || !!c.closest("form") : !0, p = rl(c), k = i.values[s], f = k === void 0 ? 0 : uo(k, i.min, i.max), m = Qd(s, i.values.length), C = p == null ? void 0 : p[l.size], E = C ? Dd(C, f, l.direction) : 0;
|
|
1113
1113
|
return d.useEffect(() => {
|
|
1114
1114
|
if (c)
|
|
1115
1115
|
return i.thumbs.add(c), () => {
|
|
@@ -1121,7 +1121,7 @@ var Ps = "SliderThumb", lo = d.forwardRef(
|
|
|
1121
1121
|
style: {
|
|
1122
1122
|
transform: "var(--radix-slider-thumb-transform)",
|
|
1123
1123
|
position: "absolute",
|
|
1124
|
-
[l.startEdge]: `calc(${
|
|
1124
|
+
[l.startEdge]: `calc(${f}% + ${E}px)`
|
|
1125
1125
|
},
|
|
1126
1126
|
children: [
|
|
1127
1127
|
/* @__PURE__ */ r(Ds.ItemSlot, { scope: n.__scopeSlider, children: /* @__PURE__ */ r(
|
|
@@ -1263,7 +1263,7 @@ var Ao = to, ho = oo, po = io, mo = lo, go = { exports: {} };
|
|
|
1263
1263
|
})();
|
|
1264
1264
|
})(go);
|
|
1265
1265
|
var Md = go.exports;
|
|
1266
|
-
const
|
|
1266
|
+
const v = /* @__PURE__ */ Hc(Md), re = { asChild: { type: "boolean" } }, ye = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } }, qt = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } }, Od = ["1", "2", "3", "4"], fo = { ...re, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: Od, default: "3", responsive: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "600px" }, ...qt }, vo = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], we = { color: { type: "enum", values: vo, default: void 0 } }, Kt = { color: { type: "enum", values: vo, default: "" } }, Ie = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, Fd = ["normal", "start", "end", "both"], Kn = { trim: { type: "enum", className: "rt-r-lt", values: Fd, responsive: !0 } }, Hd = ["left", "center", "right"], Co = { align: { type: "enum", className: "rt-r-ta", values: Hd, responsive: !0 } }, jd = ["wrap", "nowrap", "pretty", "balance"], Nt = { wrap: { type: "enum", className: "rt-r-tw", values: jd, responsive: !0 } }, xt = { truncate: { type: "boolean", className: "rt-truncate" } }, Wd = ["light", "regular", "medium", "bold"], Gn = { weight: { type: "enum", className: "rt-r-weight", values: Wd, responsive: !0 } }, Ld = ["h1", "h2", "h3", "h4", "h5", "h6"], Vd = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], qd = { as: { type: "enum", values: Ld, default: "h1" }, ...re, size: { type: "enum", className: "rt-r-size", values: Vd, default: "6", responsive: !0 }, ...Gn, ...Co, ...Kn, ...xt, ...Nt, ...we, ...Ie }, $s = ["initial", "xs", "sm", "md", "lg", "xl"];
|
|
1267
1267
|
function yo(n, e) {
|
|
1268
1268
|
return Object.prototype.hasOwnProperty.call(n, e);
|
|
1269
1269
|
}
|
|
@@ -1340,30 +1340,30 @@ function F(n, ...e) {
|
|
|
1340
1340
|
if (!l || on(l) && !u) continue;
|
|
1341
1341
|
if (on(l) && (c.default !== void 0 && l.initial === void 0 && (l.initial = c.default), c.type === "enum" && ([c.default, ...c.values].includes(l.initial) || (l.initial = c.default))), c.type === "enum") {
|
|
1342
1342
|
const h = dn({ allowArbitraryValues: !1, value: l, className: c.className, propValues: c.values, parseValue: c.parseValue });
|
|
1343
|
-
t =
|
|
1343
|
+
t = v(t, h);
|
|
1344
1344
|
continue;
|
|
1345
1345
|
}
|
|
1346
1346
|
if (c.type === "string" || c.type === "enum | string") {
|
|
1347
1347
|
const h = c.type === "string" ? [] : c.values, [A, p] = nt({ className: c.className, customProperties: c.customProperties, propValues: h, parseValue: c.parseValue, value: l });
|
|
1348
|
-
s = un(s, p), t =
|
|
1348
|
+
s = un(s, p), t = v(t, A);
|
|
1349
1349
|
continue;
|
|
1350
1350
|
}
|
|
1351
1351
|
if (c.type === "boolean" && l) {
|
|
1352
|
-
t =
|
|
1352
|
+
t = v(t, c.className);
|
|
1353
1353
|
continue;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
return a.className =
|
|
1357
|
+
return a.className = v(t, n.className), a.style = un(s, n.style), a;
|
|
1358
1358
|
}
|
|
1359
1359
|
const pt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], X = { m: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: pt, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, Xn = d.forwardRef((n, e) => {
|
|
1360
1360
|
const { children: t, className: s, asChild: a, as: o = "h1", color: i, ...l } = F(n, qd, X);
|
|
1361
|
-
return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className:
|
|
1361
|
+
return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className: v("rt-Heading", s) }, a ? t : d.createElement(o, null, t));
|
|
1362
1362
|
});
|
|
1363
1363
|
Xn.displayName = "Heading";
|
|
1364
1364
|
const Xd = ["span", "div", "label", "p"], Yd = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Zd = { as: { type: "enum", values: Xd, default: "span" }, ...re, size: { type: "enum", className: "rt-r-size", values: Yd, responsive: !0 }, ...Gn, ...Co, ...Kn, ...xt, ...Nt, ...we, ...Ie }, P = d.forwardRef((n, e) => {
|
|
1365
1365
|
const { children: t, className: s, asChild: a, as: o = "span", color: i, ...l } = F(n, Zd, X);
|
|
1366
|
-
return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className:
|
|
1366
|
+
return d.createElement(ve, { "data-accent-color": i, ...l, ref: e, className: v("rt-Text", s) }, a ? t : d.createElement(o, null, t));
|
|
1367
1367
|
});
|
|
1368
1368
|
P.displayName = "Text";
|
|
1369
1369
|
function _d(n) {
|
|
@@ -1416,19 +1416,19 @@ const ko = d.forwardRef((n, e) => {
|
|
|
1416
1416
|
d.useEffect(() => A(t), [t]);
|
|
1417
1417
|
const [p, k] = d.useState(s);
|
|
1418
1418
|
d.useEffect(() => k(s), [s]);
|
|
1419
|
-
const [
|
|
1419
|
+
const [f, m] = d.useState(a);
|
|
1420
1420
|
d.useEffect(() => m(a), [a]);
|
|
1421
|
-
const [
|
|
1421
|
+
const [C, E] = d.useState(o);
|
|
1422
1422
|
d.useEffect(() => E(o), [o]);
|
|
1423
|
-
const [
|
|
1423
|
+
const [b, I] = d.useState(i);
|
|
1424
1424
|
d.useEffect(() => I(i), [i]);
|
|
1425
|
-
const [S,
|
|
1426
|
-
return d.useEffect(() =>
|
|
1425
|
+
const [S, B] = d.useState(l);
|
|
1426
|
+
return d.useEffect(() => B(l), [l]), d.createElement(er, { ...u, ref: e, isRoot: !0, hasBackground: c, appearance: h, accentColor: p, grayColor: f, panelBackground: C, radius: b, scaling: S, onAppearanceChange: A, onAccentColorChange: k, onGrayColorChange: m, onPanelBackgroundChange: E, onRadiusChange: I, onScalingChange: B });
|
|
1427
1427
|
});
|
|
1428
1428
|
ko.displayName = "ThemeRoot";
|
|
1429
1429
|
const er = d.forwardRef((n, e) => {
|
|
1430
|
-
const t = d.useContext(Dn), { asChild: s, isRoot: a, hasBackground: o, appearance: i = (t == null ? void 0 : t.appearance) ?? Je.appearance.default, accentColor: l = (t == null ? void 0 : t.accentColor) ?? Je.accentColor.default, grayColor: c = (t == null ? void 0 : t.resolvedGrayColor) ?? Je.grayColor.default, panelBackground: u = (t == null ? void 0 : t.panelBackground) ?? Je.panelBackground.default, radius: h = (t == null ? void 0 : t.radius) ?? Je.radius.default, scaling: A = (t == null ? void 0 : t.scaling) ?? Je.scaling.default, onAppearanceChange: p = Tt, onAccentColorChange: k = Tt, onGrayColorChange:
|
|
1431
|
-
return d.createElement(Dn.Provider, { value: d.useMemo(() => ({ appearance: i, accentColor: l, grayColor: c, resolvedGrayColor: S, panelBackground: u, radius: h, scaling: A, onAppearanceChange: p, onAccentColorChange: k, onGrayColorChange:
|
|
1430
|
+
const t = d.useContext(Dn), { asChild: s, isRoot: a, hasBackground: o, appearance: i = (t == null ? void 0 : t.appearance) ?? Je.appearance.default, accentColor: l = (t == null ? void 0 : t.accentColor) ?? Je.accentColor.default, grayColor: c = (t == null ? void 0 : t.resolvedGrayColor) ?? Je.grayColor.default, panelBackground: u = (t == null ? void 0 : t.panelBackground) ?? Je.panelBackground.default, radius: h = (t == null ? void 0 : t.radius) ?? Je.radius.default, scaling: A = (t == null ? void 0 : t.scaling) ?? Je.scaling.default, onAppearanceChange: p = Tt, onAccentColorChange: k = Tt, onGrayColorChange: f = Tt, onPanelBackgroundChange: m = Tt, onRadiusChange: C = Tt, onScalingChange: E = Tt, ...b } = n, I = s ? ve : "div", S = c === "auto" ? _d(l) : c, B = n.appearance === "light" || n.appearance === "dark", w = o === void 0 ? a || B : o;
|
|
1431
|
+
return d.createElement(Dn.Provider, { value: d.useMemo(() => ({ appearance: i, accentColor: l, grayColor: c, resolvedGrayColor: S, panelBackground: u, radius: h, scaling: A, onAppearanceChange: p, onAccentColorChange: k, onGrayColorChange: f, onPanelBackgroundChange: m, onRadiusChange: C, onScalingChange: E }), [i, l, c, S, u, h, A, p, k, f, m, C, E]) }, d.createElement(I, { "data-is-root-theme": a ? "true" : "false", "data-accent-color": l, "data-gray-color": S, "data-has-background": w ? "true" : "false", "data-panel-background": u, "data-radius": h, "data-scaling": A, ref: e, ...b, className: v("radix-themes", { light: i === "light", dark: i === "dark" }, b.className) }));
|
|
1432
1432
|
});
|
|
1433
1433
|
er.displayName = "ThemeImpl";
|
|
1434
1434
|
const ut = (n) => {
|
|
@@ -1440,7 +1440,7 @@ const So = d.forwardRef(({ children: n, ...e }, t) => d.createElement(pl, { ...e
|
|
|
1440
1440
|
So.displayName = "AlertDialog.Trigger";
|
|
1441
1441
|
const Io = d.forwardRef(({ align: n, ...e }, t) => {
|
|
1442
1442
|
const { align: s, ...a } = fo, { className: o } = F({ align: n }, { align: s }), { className: i, forceMount: l, container: c, ...u } = F(e, a);
|
|
1443
|
-
return d.createElement(ll, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(cl, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, d.createElement(dl, { ...u, ref: t, className:
|
|
1443
|
+
return d.createElement(ll, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(cl, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, d.createElement(dl, { ...u, ref: t, className: v("rt-BaseDialogContent", "rt-AlertDialogContent", i) }))))));
|
|
1444
1444
|
});
|
|
1445
1445
|
Io.displayName = "AlertDialog.Content";
|
|
1446
1446
|
const bo = d.forwardRef((n, e) => d.createElement(hl, { asChild: !0 }, d.createElement(Xn, { size: "5", mb: "3", trim: "start", ...n, asChild: !1, ref: e })));
|
|
@@ -1469,12 +1469,12 @@ function tr(n, e) {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
const We = d.forwardRef((n, e) => {
|
|
1471
1471
|
const { asChild: t, children: s, className: a, style: o, color: i, radius: l, ...c } = F(n, su, X);
|
|
1472
|
-
return d.createElement(gl, { "data-accent-color": i, "data-radius": l, className:
|
|
1472
|
+
return d.createElement(gl, { "data-accent-color": i, "data-radius": l, className: v("rt-reset", "rt-AvatarRoot", a), style: o, asChild: t }, tr({ asChild: t, children: s }, d.createElement(No, { ref: e, ...c })));
|
|
1473
1473
|
});
|
|
1474
1474
|
We.displayName = "Avatar";
|
|
1475
1475
|
const No = d.forwardRef(({ fallback: n, ...e }, t) => {
|
|
1476
1476
|
const [s, a] = d.useState("idle");
|
|
1477
|
-
return d.createElement(d.Fragment, null, s === "idle" || s === "loading" ? d.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? d.createElement(fl, { className:
|
|
1477
|
+
return d.createElement(d.Fragment, null, s === "idle" || s === "loading" ? d.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? d.createElement(fl, { className: v("rt-AvatarFallback", { "rt-one-letter": typeof n == "string" && n.length === 1, "rt-two-letters": typeof n == "string" && n.length === 2 }), delayMs: 0 }, n) : null, d.createElement(vl, { ref: t, className: "rt-AvatarImage", ...e, onLoadingStatusChange: (o) => {
|
|
1478
1478
|
var i;
|
|
1479
1479
|
(i = e.onLoadingStatusChange) == null || i.call(e, o), a(o);
|
|
1480
1480
|
} }));
|
|
@@ -1482,17 +1482,17 @@ const No = d.forwardRef(({ fallback: n, ...e }, t) => {
|
|
|
1482
1482
|
No.displayName = "AvatarImpl";
|
|
1483
1483
|
const ru = ["1", "2", "3"], au = ["solid", "soft", "surface", "outline"], ou = { ...re, size: { type: "enum", className: "rt-r-size", values: ru, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: au, default: "soft" }, ...Kt, ...Ie, ...Le }, nr = d.forwardRef((n, e) => {
|
|
1484
1484
|
const { asChild: t, className: s, color: a, radius: o, ...i } = F(n, ou, X), l = t ? ve : "span";
|
|
1485
|
-
return d.createElement(l, { "data-accent-color": a, "data-radius": o, ...i, ref: e, className:
|
|
1485
|
+
return d.createElement(l, { "data-accent-color": a, "data-radius": o, ...i, ref: e, className: v("rt-reset", "rt-Badge", s) });
|
|
1486
1486
|
});
|
|
1487
1487
|
nr.displayName = "Badge";
|
|
1488
1488
|
const iu = d.forwardRef((n, e) => {
|
|
1489
1489
|
const { asChild: t, children: s, className: a, ...o } = n, i = t ? ve : "blockquote";
|
|
1490
|
-
return d.createElement(P, { asChild: !0, ...o, ref: e, className:
|
|
1490
|
+
return d.createElement(P, { asChild: !0, ...o, ref: e, className: v("rt-Blockquote", a) }, d.createElement(i, null, s));
|
|
1491
1491
|
});
|
|
1492
1492
|
iu.displayName = "Blockquote";
|
|
1493
1493
|
const sr = ve, lu = ["div", "span"], cu = ["none", "inline", "inline-block", "block", "contents"], du = { as: { type: "enum", values: lu, default: "div" }, ...re, display: { type: "enum", className: "rt-r-display", values: cu, responsive: !0 } }, mt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], ln = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: mt, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: mt, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: mt, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: mt, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: mt, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: mt, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: mt, responsive: !0 } }, ds = ["visible", "hidden", "clip", "scroll", "auto"], uu = ["static", "relative", "absolute", "fixed", "sticky"], Xt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], Au = ["0", "1"], hu = ["0", "1"], pn = { ...ln, ...ye, ...qt, position: { type: "enum", className: "rt-r-position", values: uu, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: Xt, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: Xt, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: Xt, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: Xt, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: Xt, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: ds, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: ds, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: ds, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: Au, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: hu, responsive: !0 }, gridArea: { type: "string", className: "rt-r-ga", customProperties: ["--grid-area"], responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } }, he = d.forwardRef((n, e) => {
|
|
1494
1494
|
const { className: t, asChild: s, as: a = "div", ...o } = F(n, du, pn, X);
|
|
1495
|
-
return d.createElement(s ? sr : a, { ...o, ref: e, className:
|
|
1495
|
+
return d.createElement(s ? sr : a, { ...o, ref: e, className: v("rt-Box", t) });
|
|
1496
1496
|
});
|
|
1497
1497
|
he.displayName = "Box";
|
|
1498
1498
|
const pu = ["1", "2", "3", "4"], mu = ["classic", "solid", "soft", "surface", "outline", "ghost"], Tr = { ...re, size: { type: "enum", className: "rt-r-size", values: pu, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: mu, default: "solid" }, ...Kt, ...Ie, ...Le, loading: { type: "boolean", className: "rt-loading", default: !1 } }, us = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], xo = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: us, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: us, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: us, responsive: !0 } }, gu = ["div", "span"], fu = ["none", "inline-flex", "flex"], vu = ["row", "column", "row-reverse", "column-reverse"], Cu = ["start", "center", "end", "baseline", "stretch"], yu = ["start", "center", "end", "between"], ku = ["nowrap", "wrap", "wrap-reverse"], Qo = { as: { type: "enum", values: gu, default: "div" }, ...re, display: { type: "enum", className: "rt-r-display", values: fu, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: vu, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Cu, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: yu, parseValue: Eu, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: ku, responsive: !0 }, ...xo };
|
|
@@ -1501,13 +1501,13 @@ function Eu(n) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
const y = d.forwardRef((n, e) => {
|
|
1503
1503
|
const { className: t, asChild: s, as: a = "div", ...o } = F(n, Qo, pn, X);
|
|
1504
|
-
return d.createElement(s ? sr : a, { ...o, ref: e, className:
|
|
1504
|
+
return d.createElement(s ? sr : a, { ...o, ref: e, className: v("rt-Flex", t) });
|
|
1505
1505
|
});
|
|
1506
1506
|
y.displayName = "Flex";
|
|
1507
1507
|
const Su = ["1", "2", "3"], Iu = { size: { type: "enum", className: "rt-r-size", values: Su, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, rr = d.forwardRef((n, e) => {
|
|
1508
1508
|
const { className: t, children: s, loading: a, ...o } = F(n, Iu, X);
|
|
1509
1509
|
if (!a) return s;
|
|
1510
|
-
const i = d.createElement("span", { ...o, ref: e, className:
|
|
1510
|
+
const i = d.createElement("span", { ...o, ref: e, className: v("rt-Spinner", t) }, d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }), d.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
1511
1511
|
return s === void 0 ? i : d.createElement(y, { asChild: !0, position: "relative", align: "center", justify: "center" }, d.createElement("span", null, d.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, s), d.createElement(y, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, d.createElement("span", null, i))));
|
|
1512
1512
|
});
|
|
1513
1513
|
rr.displayName = "Spinner";
|
|
@@ -1531,26 +1531,26 @@ function wu(n) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
const ar = d.forwardRef((n, e) => {
|
|
1533
1533
|
const { size: t = Tr.size.default } = n, { className: s, children: a, asChild: o, color: i, radius: l, disabled: c = n.loading, ...u } = F(n, Tr, X), h = o ? ve : "button";
|
|
1534
|
-
return d.createElement(h, { "data-disabled": c || void 0, "data-accent-color": i, "data-radius": l, ...u, ref: e, className:
|
|
1534
|
+
return d.createElement(h, { "data-disabled": c || void 0, "data-accent-color": i, "data-radius": l, ...u, ref: e, className: v("rt-reset", "rt-BaseButton", s), disabled: c }, n.loading ? d.createElement(d.Fragment, null, d.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, a), d.createElement(bu, null, a), d.createElement(y, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, d.createElement("span", null, d.createElement(rr, { size: To(t, wu) })))) : a);
|
|
1535
1535
|
});
|
|
1536
1536
|
ar.displayName = "BaseButton";
|
|
1537
|
-
const Do = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className:
|
|
1537
|
+
const Do = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className: v("rt-Button", n) }));
|
|
1538
1538
|
Do.displayName = "Button";
|
|
1539
1539
|
const Ru = ["1", "2", "3"], Nu = ["soft", "surface", "outline"], Dr = { ...re, size: { type: "enum", className: "rt-r-size", values: Ru, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Nu, default: "soft" }, ...Kt, ...Ie }, Jo = d.createContext({}), or = d.forwardRef((n, e) => {
|
|
1540
1540
|
const { size: t = Dr.size.default } = n, { asChild: s, children: a, className: o, color: i, ...l } = F(n, Dr, X), c = s ? ve : "div";
|
|
1541
|
-
return d.createElement(c, { "data-accent-color": i, ...l, className:
|
|
1541
|
+
return d.createElement(c, { "data-accent-color": i, ...l, className: v("rt-CalloutRoot", o), ref: e }, d.createElement(Jo.Provider, { value: d.useMemo(() => ({ size: t }), [t]) }, a));
|
|
1542
1542
|
});
|
|
1543
1543
|
or.displayName = "Callout.Root";
|
|
1544
|
-
const ir = d.forwardRef(({ className: n, ...e }, t) => d.createElement("div", { ...e, className:
|
|
1544
|
+
const ir = d.forwardRef(({ className: n, ...e }, t) => d.createElement("div", { ...e, className: v("rt-CalloutIcon", n), ref: t }));
|
|
1545
1545
|
ir.displayName = "Callout.Icon";
|
|
1546
1546
|
const lr = d.forwardRef(({ className: n, ...e }, t) => {
|
|
1547
1547
|
const { size: s } = d.useContext(Jo);
|
|
1548
|
-
return d.createElement(P, { as: "p", size: To(s, Bu), ...e, asChild: !1, ref: t, className:
|
|
1548
|
+
return d.createElement(P, { as: "p", size: To(s, Bu), ...e, asChild: !1, ref: t, className: v("rt-CalloutText", n) });
|
|
1549
1549
|
});
|
|
1550
1550
|
lr.displayName = "Callout.Text";
|
|
1551
1551
|
const xu = ["1", "2", "3", "4", "5"], Qu = ["surface", "classic", "ghost"], Tu = { ...re, size: { type: "enum", className: "rt-r-size", values: xu, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Qu, default: "surface" } }, cr = d.forwardRef((n, e) => {
|
|
1552
1552
|
const { asChild: t, className: s, ...a } = F(n, Tu, X), o = t ? ve : "div";
|
|
1553
|
-
return d.createElement(o, { ref: e, ...a, className:
|
|
1553
|
+
return d.createElement(o, { ref: e, ...a, className: v("rt-reset", "rt-BaseCard", "rt-Card", s) });
|
|
1554
1554
|
});
|
|
1555
1555
|
cr.displayName = "Card";
|
|
1556
1556
|
const Du = ["div", "span"], Ju = ["none", "inline-grid", "grid"], Pu = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Uu = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], zu = ["row", "column", "dense", "row-dense", "column-dense"], Mu = ["start", "center", "end", "baseline", "stretch"], Ou = ["start", "center", "end", "between"], Jn = { as: { type: "enum", values: Du, default: "div" }, ...re, display: { type: "enum", className: "rt-r-display", values: Ju, responsive: !0 }, areas: { type: "string", className: "rt-r-gta", customProperties: ["--grid-template-areas"], responsive: !0 }, columns: { type: "enum | string", className: "rt-r-gtc", customProperties: ["--grid-template-columns"], values: Pu, parseValue: Jr, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: Uu, parseValue: Jr, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: zu, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Mu, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Ou, parseValue: Fu, responsive: !0 }, ...xo };
|
|
@@ -1562,7 +1562,7 @@ function Fu(n) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
const Po = d.forwardRef((n, e) => {
|
|
1564
1564
|
const { className: t, asChild: s, as: a = "div", ...o } = F(n, Jn, pn, X);
|
|
1565
|
-
return d.createElement(s ? sr : a, { ...o, ref: e, className:
|
|
1565
|
+
return d.createElement(s ? sr : a, { ...o, ref: e, className: v("rt-Grid", t) });
|
|
1566
1566
|
});
|
|
1567
1567
|
Po.displayName = "Grid";
|
|
1568
1568
|
const Hu = ge.forwardRef((n, e) => ge.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...n, ref: e }, ge.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z" })));
|
|
@@ -1575,7 +1575,7 @@ const ju = ge.forwardRef((n, e) => ge.createElement("svg", { width: "9", height:
|
|
|
1575
1575
|
ju.displayName = "ThickChevronRightIcon";
|
|
1576
1576
|
const Wu = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Lu = ["solid", "soft", "outline", "ghost"], Vu = { ...re, size: { type: "enum", className: "rt-r-size", values: Wu, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Lu, default: "soft" }, ...Gn, ...Kt, ...Ie, ...xt, ...Nt }, qu = d.forwardRef((n, e) => {
|
|
1577
1577
|
const { asChild: t, className: s, color: a, ...o } = F(n, Vu, X), i = n.variant === "ghost" ? a || void 0 : a, l = t ? ve : "code";
|
|
1578
|
-
return d.createElement(l, { "data-accent-color": i, ...o, ref: e, className:
|
|
1578
|
+
return d.createElement(l, { "data-accent-color": i, ...o, ref: e, className: v("rt-reset", "rt-Code", s) });
|
|
1579
1579
|
});
|
|
1580
1580
|
qu.displayName = "Code";
|
|
1581
1581
|
const Ku = ["1", "2", "3", "4"], Gu = ["none", "initial"], Xu = ["left", "center", "right"], Yu = { ...re, size: { type: "enum", className: "rt-r-size", values: Ku, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: Gu, parseValue: Zu, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Xu, parseValue: _u, responsive: !0 } };
|
|
@@ -1586,8 +1586,8 @@ function _u(n) {
|
|
|
1586
1586
|
return n === "left" ? "start" : n === "right" ? "end" : n;
|
|
1587
1587
|
}
|
|
1588
1588
|
const $u = d.forwardRef(({ width: n, minWidth: e, maxWidth: t, height: s, minHeight: a, maxHeight: o, ...i }, l) => {
|
|
1589
|
-
const { asChild: c, children: u, className: h, ...A } = F(i, Yu, pn, X), { className: p, style: k } = F({ width: n, minWidth: e, maxWidth: t, height: s, minHeight: a, maxHeight: o }, ye, qt),
|
|
1590
|
-
return d.createElement(
|
|
1589
|
+
const { asChild: c, children: u, className: h, ...A } = F(i, Yu, pn, X), { className: p, style: k } = F({ width: n, minWidth: e, maxWidth: t, height: s, minHeight: a, maxHeight: o }, ye, qt), f = c ? ve : "div";
|
|
1590
|
+
return d.createElement(f, { ...A, ref: l, className: v("rt-Container", h) }, tr({ asChild: c, children: u }, (m) => d.createElement("div", { className: v("rt-ContainerInner", p), style: k }, m)));
|
|
1591
1591
|
});
|
|
1592
1592
|
$u.displayName = "Container";
|
|
1593
1593
|
const eA = ["1", "2", "3"], Yt = { ...re, size: { values: eA, default: "1" }, ...Le, scrollbars: { default: "both" } };
|
|
@@ -1597,30 +1597,30 @@ function tA(n) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
const gt = X.m.values;
|
|
1599
1599
|
function nA(n) {
|
|
1600
|
-
const [e, t] = nt({ className: "rt-r-m", customProperties: ["--margin"], propValues: gt, value: n.m }), [s, a] = nt({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: gt, value: n.mx }), [o, i] = nt({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: gt, value: n.my }), [l, c] = nt({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: gt, value: n.mt }), [u, h] = nt({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: gt, value: n.mr }), [A, p] = nt({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: gt, value: n.mb }), [k,
|
|
1601
|
-
return [
|
|
1600
|
+
const [e, t] = nt({ className: "rt-r-m", customProperties: ["--margin"], propValues: gt, value: n.m }), [s, a] = nt({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: gt, value: n.mx }), [o, i] = nt({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: gt, value: n.my }), [l, c] = nt({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: gt, value: n.mt }), [u, h] = nt({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: gt, value: n.mr }), [A, p] = nt({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: gt, value: n.mb }), [k, f] = nt({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: gt, value: n.ml });
|
|
1601
|
+
return [v(e, s, o, l, u, A, k), un(t, a, i, c, h, p, f)];
|
|
1602
1602
|
}
|
|
1603
1603
|
const Qt = d.forwardRef((n, e) => {
|
|
1604
|
-
const { rest: t, ...s } = tA(n), [a, o] = nA(s), { asChild: i, children: l, className: c, style: u, type: h, scrollHideDelay: A = h !== "scroll" ? 0 : void 0, dir: p, size: k = Yt.size.default, radius:
|
|
1605
|
-
return d.createElement(aa, { type: h, scrollHideDelay: A, className:
|
|
1604
|
+
const { rest: t, ...s } = tA(n), [a, o] = nA(s), { asChild: i, children: l, className: c, style: u, type: h, scrollHideDelay: A = h !== "scroll" ? 0 : void 0, dir: p, size: k = Yt.size.default, radius: f = Yt.radius.default, scrollbars: m = Yt.scrollbars.default, ...C } = t;
|
|
1605
|
+
return d.createElement(aa, { type: h, scrollHideDelay: A, className: v("rt-ScrollAreaRoot", a, c), style: un(o, u), asChild: i }, tr({ asChild: i, children: l }, (E) => d.createElement(d.Fragment, null, d.createElement(oa, { ...C, ref: e, className: "rt-ScrollAreaViewport" }, E), d.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), m !== "vertical" ? d.createElement(Es, { "data-radius": f, orientation: "horizontal", className: v("rt-ScrollAreaScrollbar", dn({ className: "rt-r-size", value: k, propValues: Yt.size.values })) }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" })) : null, m !== "horizontal" ? d.createElement(Es, { "data-radius": f, orientation: "vertical", className: v("rt-ScrollAreaScrollbar", dn({ className: "rt-r-size", value: k, propValues: Yt.size.values })) }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" })) : null, m === "both" ? d.createElement(yl, { className: "rt-ScrollAreaCorner" }) : null)));
|
|
1606
1606
|
});
|
|
1607
1607
|
Qt.displayName = "ScrollArea";
|
|
1608
1608
|
const sA = ["start", "center", "end", "baseline", "stretch"], rA = ["horizontal", "vertical"], aA = ["1", "2", "3"], oA = { orientation: { type: "enum", className: "rt-r-orientation", values: rA, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: aA, default: "2", responsive: !0 }, trim: { ...Kn.trim, className: "rt-r-trim" } }, iA = { align: { type: "enum", className: "rt-r-ai", values: sA, responsive: !0 } }, lA = { ...ye, ...we, ...Ie }, Mo = d.forwardRef((n, e) => {
|
|
1609
1609
|
const { className: t, ...s } = F(n, oA, X);
|
|
1610
|
-
return d.createElement(P, { asChild: !0 }, d.createElement("dl", { ...s, ref: e, className:
|
|
1610
|
+
return d.createElement(P, { asChild: !0 }, d.createElement("dl", { ...s, ref: e, className: v("rt-DataListRoot", t) }));
|
|
1611
1611
|
});
|
|
1612
1612
|
Mo.displayName = "DataList.Root";
|
|
1613
1613
|
const Oo = d.forwardRef((n, e) => {
|
|
1614
1614
|
const { className: t, ...s } = F(n, iA);
|
|
1615
|
-
return d.createElement("div", { ...s, ref: e, className:
|
|
1615
|
+
return d.createElement("div", { ...s, ref: e, className: v("rt-DataListItem", t) });
|
|
1616
1616
|
});
|
|
1617
1617
|
Oo.displayName = "DataList.Item";
|
|
1618
1618
|
const Fo = d.forwardRef((n, e) => {
|
|
1619
1619
|
const { className: t, color: s, ...a } = F(n, lA);
|
|
1620
|
-
return d.createElement("dt", { ...a, "data-accent-color": s, ref: e, className:
|
|
1620
|
+
return d.createElement("dt", { ...a, "data-accent-color": s, ref: e, className: v("rt-DataListLabel", t) });
|
|
1621
1621
|
});
|
|
1622
1622
|
Fo.displayName = "DataList.Label";
|
|
1623
|
-
const Ho = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement("dd", { ...t, ref: s, className:
|
|
1623
|
+
const Ho = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement("dd", { ...t, ref: s, className: v(e, "rt-DataListValue") }, n));
|
|
1624
1624
|
Ho.displayName = "DataList.Value";
|
|
1625
1625
|
const PS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1626
1626
|
__proto__: null,
|
|
@@ -1634,7 +1634,7 @@ const Wo = d.forwardRef(({ children: n, ...e }, t) => d.createElement(Rl, { ...e
|
|
|
1634
1634
|
Wo.displayName = "Dialog.Trigger";
|
|
1635
1635
|
const Lo = d.forwardRef(({ align: n, ...e }, t) => {
|
|
1636
1636
|
const { align: s, ...a } = fo, { className: o } = F({ align: n }, { align: s }), { className: i, forceMount: l, container: c, ...u } = F(e, a);
|
|
1637
|
-
return d.createElement(El, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(Sl, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, d.createElement(Il, { ...u, ref: t, className:
|
|
1637
|
+
return d.createElement(El, { container: c, forceMount: l }, d.createElement(dt, { asChild: !0 }, d.createElement(Sl, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, d.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, d.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, d.createElement(Il, { ...u, ref: t, className: v("rt-BaseDialogContent", "rt-DialogContent", i) }))))));
|
|
1638
1638
|
});
|
|
1639
1639
|
Lo.displayName = "Dialog.Content";
|
|
1640
1640
|
const Vo = d.forwardRef((n, e) => d.createElement(wl, { asChild: !0 }, d.createElement(Xn, { size: "5", mb: "3", trim: "start", ...n, asChild: !1, ref: e })));
|
|
@@ -1653,16 +1653,16 @@ const US = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1653
1653
|
Trigger: Wo
|
|
1654
1654
|
}, Symbol.toStringTag, { value: "Module" })), cA = { ...re, ...xt, ...Nt }, dA = d.forwardRef((n, e) => {
|
|
1655
1655
|
const { asChild: t, className: s, ...a } = F(n, cA), o = t ? ve : "em";
|
|
1656
|
-
return d.createElement(o, { ...a, ref: e, className:
|
|
1656
|
+
return d.createElement(o, { ...a, ref: e, className: v("rt-Em", s) });
|
|
1657
1657
|
});
|
|
1658
1658
|
dA.displayName = "Em";
|
|
1659
1659
|
const uA = ["1", "2", "3"], AA = { ...re, size: { type: "enum", className: "rt-r-size", values: uA, default: "2", responsive: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "480px" }, ...qt }, Go = (n) => d.createElement(Ql, { closeDelay: 150, openDelay: 200, ...n });
|
|
1660
1660
|
Go.displayName = "HoverCard.Root";
|
|
1661
|
-
const Xo = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Tl, { ref: s, className:
|
|
1661
|
+
const Xo = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Tl, { ref: s, className: v("rt-HoverCardTrigger", e), ...t, asChild: !0 }, ut(n)));
|
|
1662
1662
|
Xo.displayName = "HoverCard.Trigger";
|
|
1663
1663
|
const Yo = d.forwardRef((n, e) => {
|
|
1664
1664
|
const { className: t, forceMount: s, container: a, ...o } = F(n, AA);
|
|
1665
|
-
return d.createElement(Nl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(xl, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className:
|
|
1665
|
+
return d.createElement(Nl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(xl, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className: v("rt-PopperContent", "rt-HoverCardContent", t) })));
|
|
1666
1666
|
});
|
|
1667
1667
|
Yo.displayName = "HoverCard.Content";
|
|
1668
1668
|
const zS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1670,7 +1670,7 @@ const zS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1670
1670
|
Content: Yo,
|
|
1671
1671
|
Root: Go,
|
|
1672
1672
|
Trigger: Xo
|
|
1673
|
-
}, Symbol.toStringTag, { value: "Module" })), dr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className:
|
|
1673
|
+
}, Symbol.toStringTag, { value: "Module" })), dr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ar, { ...e, ref: t, className: v("rt-IconButton", n) }));
|
|
1674
1674
|
dr.displayName = "IconButton";
|
|
1675
1675
|
const hA = ["all", "x", "y", "top", "bottom", "left", "right"], pA = ["border-box", "padding-box"], ft = ["current", "0"], mA = { ...re, side: { type: "enum", className: "rt-r-side", values: hA, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: pA, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: ft, parseValue: vt, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: ft, parseValue: vt, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: ft, parseValue: vt, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: ft, parseValue: vt, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: ft, parseValue: vt, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: ft, parseValue: vt, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: ft, parseValue: vt, responsive: !0 } };
|
|
1676
1676
|
function vt(n) {
|
|
@@ -1678,17 +1678,17 @@ function vt(n) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
const gA = d.forwardRef((n, e) => {
|
|
1680
1680
|
const { asChild: t, className: s, ...a } = F(n, mA, X), o = t ? ve : "div";
|
|
1681
|
-
return d.createElement(o, { ...a, ref: e, className:
|
|
1681
|
+
return d.createElement(o, { ...a, ref: e, className: v("rt-Inset", s) });
|
|
1682
1682
|
});
|
|
1683
1683
|
gA.displayName = "Inset";
|
|
1684
1684
|
const fA = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], vA = { ...re, size: { type: "enum", className: "rt-r-size", values: fA, responsive: !0 } }, CA = d.forwardRef((n, e) => {
|
|
1685
1685
|
const { asChild: t, className: s, ...a } = F(n, vA, X), o = t ? ve : "kbd";
|
|
1686
|
-
return d.createElement(o, { ...a, ref: e, className:
|
|
1686
|
+
return d.createElement(o, { ...a, ref: e, className: v("rt-reset", "rt-Kbd", s) });
|
|
1687
1687
|
});
|
|
1688
1688
|
CA.displayName = "Kbd";
|
|
1689
1689
|
const yA = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], kA = ["auto", "always", "hover", "none"], EA = { ...re, size: { type: "enum", className: "rt-r-size", values: yA, responsive: !0 }, ...Gn, ...Kn, ...xt, ...Nt, underline: { type: "enum", className: "rt-underline", values: kA, default: "auto" }, ...Kt, ...Ie }, SA = d.forwardRef((n, e) => {
|
|
1690
1690
|
const { children: t, className: s, color: a, asChild: o, ...i } = F(n, EA);
|
|
1691
|
-
return d.createElement(P, { ...i, "data-accent-color": a, ref: e, asChild: !0, className:
|
|
1691
|
+
return d.createElement(P, { ...i, "data-accent-color": a, ref: e, asChild: !0, className: v("rt-reset", "rt-Link", s) }, o ? t : d.createElement("a", null, t));
|
|
1692
1692
|
});
|
|
1693
1693
|
SA.displayName = "Link";
|
|
1694
1694
|
const IA = ["1", "2", "3", "4"], bA = { ...re, size: { type: "enum", className: "rt-r-size", values: IA, default: "2", responsive: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "480px" }, ...qt }, Yn = (n) => d.createElement(la, { ...n });
|
|
@@ -1697,7 +1697,7 @@ const Zn = d.forwardRef(({ children: n, ...e }, t) => d.createElement(ca, { ...e
|
|
|
1697
1697
|
Zn.displayName = "Popover.Trigger";
|
|
1698
1698
|
const _n = d.forwardRef((n, e) => {
|
|
1699
1699
|
const { className: t, forceMount: s, container: a, ...o } = F(n, bA);
|
|
1700
|
-
return d.createElement(Pl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(ia, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className:
|
|
1700
|
+
return d.createElement(Pl, { container: a, forceMount: s }, d.createElement(dt, { asChild: !0 }, d.createElement(ia, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: e, className: v("rt-PopperContent", "rt-PopoverContent", t) })));
|
|
1701
1701
|
});
|
|
1702
1702
|
_n.displayName = "Popover.Content";
|
|
1703
1703
|
const Zo = d.forwardRef(({ children: n, ...e }, t) => d.createElement(Jl, { ...e, ref: t, asChild: !0 }, ut(n)));
|
|
@@ -1713,34 +1713,34 @@ const MS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1713
1713
|
Trigger: Zn
|
|
1714
1714
|
}, Symbol.toStringTag, { value: "Module" })), BA = ["1", "2", "3"], wA = ["classic", "surface", "soft"], RA = { size: { type: "enum", className: "rt-r-size", values: BA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: wA, default: "surface" }, ...we, ...Ie, ...Le, duration: { type: "string" } }, NA = d.forwardRef((n, e) => {
|
|
1715
1715
|
const { className: t, style: s, color: a, radius: o, duration: i, ...l } = F(n, RA, X);
|
|
1716
|
-
return d.createElement(Ul, { "data-accent-color": a, "data-radius": o, ref: e, className:
|
|
1716
|
+
return d.createElement(Ul, { "data-accent-color": a, "data-radius": o, ref: e, className: v("rt-ProgressRoot", t), style: un({ "--progress-duration": "value" in l ? void 0 : i, "--progress-value": "value" in l ? l.value : void 0, "--progress-max": "max" in l ? l.max : void 0 }, s), ...l, asChild: !1 }, d.createElement(zl, { className: "rt-ProgressIndicator" }));
|
|
1717
1717
|
});
|
|
1718
1718
|
NA.displayName = "Progress";
|
|
1719
1719
|
const xA = { ...re, ...xt, ...Nt }, QA = d.forwardRef((n, e) => {
|
|
1720
1720
|
const { asChild: t, className: s, ...a } = F(n, xA), o = t ? ve : "q";
|
|
1721
|
-
return d.createElement(o, { ...a, ref: e, className:
|
|
1721
|
+
return d.createElement(o, { ...a, ref: e, className: v("rt-Quote", s) });
|
|
1722
1722
|
});
|
|
1723
1723
|
QA.displayName = "Quote";
|
|
1724
1724
|
const TA = ["1", "2", "3"], DA = ["surface", "classic"], JA = { ...re, size: { type: "enum", className: "rt-r-size", values: TA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: DA, default: "surface" }, ...we, ...Ie, columns: { ...Jn.columns, default: "repeat(auto-fit, minmax(160px, 1fr))" }, gap: { ...Jn.gap, default: "4" } }, $n = d.forwardRef((n, e) => {
|
|
1725
1725
|
const { className: t, color: s, ...a } = F(n, JA, X);
|
|
1726
|
-
return d.createElement(Po, { asChild: !0 }, d.createElement(da, { "data-accent-color": s, ...a, ref: e, className:
|
|
1726
|
+
return d.createElement(Po, { asChild: !0 }, d.createElement(da, { "data-accent-color": s, ...a, ref: e, className: v("rt-RadioCardsRoot", t) }));
|
|
1727
1727
|
});
|
|
1728
1728
|
$n.displayName = "RadioCards.Root";
|
|
1729
|
-
const mn = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ua, { ...e, asChild: !1, ref: t, className:
|
|
1729
|
+
const mn = d.forwardRef(({ className: n, ...e }, t) => d.createElement(ua, { ...e, asChild: !1, ref: t, className: v("rt-reset", "rt-BaseCard", "rt-RadioCardsItem", n) }));
|
|
1730
1730
|
mn.displayName = "RadioCards.Item";
|
|
1731
1731
|
const PA = ["1", "2", "3"], UA = ["classic", "surface", "soft"], an = { ...re, size: { type: "enum", className: "rt-r-size", values: PA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: UA, default: "surface" }, ...we, ...Ie }, $o = "RadioGroup", [zA] = Ws($o, [Aa]), ei = Aa(), [MA, ti] = zA($o), ni = d.forwardRef(({ color: n = an.color.default, highContrast: e = an.highContrast.default, size: t = an.size.default, variant: s = an.variant.default, ...a }, o) => {
|
|
1732
1732
|
const { __scopeRadioGroup: i, className: l, ...c } = F(a, X), u = ei(i);
|
|
1733
|
-
return d.createElement(MA, { scope: i, color: n, highContrast: e, size: t, variant: s }, d.createElement(da, { ...u, ...c, ref: o, className:
|
|
1733
|
+
return d.createElement(MA, { scope: i, color: n, highContrast: e, size: t, variant: s }, d.createElement(da, { ...u, ...c, ref: o, className: v("rt-RadioGroupRoot", l) }));
|
|
1734
1734
|
});
|
|
1735
1735
|
ni.displayName = "RadioGroup.Root";
|
|
1736
1736
|
const si = d.forwardRef((n, e) => {
|
|
1737
1737
|
const { __scopeRadioGroup: t, children: s, className: a, style: o, ...i } = n, { size: l } = ti("RadioGroupItem", t);
|
|
1738
|
-
return s ? d.createElement(P, { as: "label", size: l, className:
|
|
1738
|
+
return s ? d.createElement(P, { as: "label", size: l, className: v("rt-RadioGroupItem", a), style: o }, d.createElement(Us, { __scopeRadioGroup: t, ...i, ref: e }), s && d.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : d.createElement(Us, { __scopeRadioGroup: t, ...i, ref: e, className: a, style: o });
|
|
1739
1739
|
});
|
|
1740
1740
|
si.displayName = "RadioGroup.Item";
|
|
1741
1741
|
const Us = d.forwardRef(({ __scopeRadioGroup: n, ...e }, t) => {
|
|
1742
1742
|
const s = ti("RadioGroupItemRadio", n), a = ei(n), { color: o, className: i } = F({ ...e, ...s }, an, X);
|
|
1743
|
-
return d.createElement(ua, { ...a, "data-accent-color": o, ...e, asChild: !1, ref: t, className:
|
|
1743
|
+
return d.createElement(ua, { ...a, "data-accent-color": o, ...e, asChild: !1, ref: t, className: v("rt-reset", "rt-BaseRadioRoot", i) });
|
|
1744
1744
|
});
|
|
1745
1745
|
Us.displayName = "RadioGroup.ItemRadio";
|
|
1746
1746
|
const OS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1749,17 +1749,17 @@ const OS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1749
1749
|
Root: ni
|
|
1750
1750
|
}, Symbol.toStringTag, { value: "Module" })), OA = ["1", "2", "3"], FA = ["classic", "surface", "soft"], HA = { size: { type: "enum", className: "rt-r-size", values: OA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: FA, default: "surface" }, ...we, ...Ie }, jA = d.forwardRef((n, e) => {
|
|
1751
1751
|
const t = d.useRef(null), { className: s, color: a, onChange: o, onValueChange: i, ...l } = F(n, HA, X);
|
|
1752
|
-
return d.createElement("input", { type: "radio", "data-accent-color": a, ...l, onChange: ie(o, (c) => i == null ? void 0 : i(c.currentTarget.value)), ref: ha(t, e), className:
|
|
1752
|
+
return d.createElement("input", { type: "radio", "data-accent-color": a, ...l, onChange: ie(o, (c) => i == null ? void 0 : i(c.currentTarget.value)), ref: ha(t, e), className: v("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
|
|
1753
1753
|
});
|
|
1754
1754
|
jA.displayName = "Radio";
|
|
1755
1755
|
const WA = ["1", "2", "3"], LA = ["surface", "classic"], VA = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: WA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: LA, default: "surface" }, ...Le }, ri = d.forwardRef((n, e) => {
|
|
1756
1756
|
const { className: t, children: s, radius: a, value: o, defaultValue: i, onValueChange: l, ...c } = F(n, VA, X), [u, h] = xn({ prop: o, onChange: l, defaultProp: i });
|
|
1757
|
-
return d.createElement(Ml, { "data-disabled": n.disabled || void 0, "data-radius": a, ref: e, className:
|
|
1757
|
+
return d.createElement(Ml, { "data-disabled": n.disabled || void 0, "data-radius": a, ref: e, className: v("rt-SegmentedControlRoot", t), onValueChange: (A) => {
|
|
1758
1758
|
A && h(A);
|
|
1759
1759
|
}, ...c, type: "single", value: u, asChild: !1, disabled: !!n.disabled }, s, d.createElement("div", { className: "rt-SegmentedControlIndicator" }));
|
|
1760
1760
|
});
|
|
1761
1761
|
ri.displayName = "SegmentedControl.Root";
|
|
1762
|
-
const ai = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Ol, { ref: s, className:
|
|
1762
|
+
const ai = d.forwardRef(({ children: n, className: e, ...t }, s) => d.createElement(Ol, { ref: s, className: v("rt-reset", "rt-SegmentedControlItem", e), ...t, disabled: !1, asChild: !1 }, d.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), d.createElement("span", { className: "rt-SegmentedControlItemLabel" }, d.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, n), d.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, n))));
|
|
1763
1763
|
ai.displayName = "SegmentedControl.Item";
|
|
1764
1764
|
const qA = ["1", "2", "3", "4"], KA = ["none", "initial"], GA = { ...re, size: { type: "enum", className: "rt-r-size", values: qA, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: KA, parseValue: XA, responsive: !0 } };
|
|
1765
1765
|
function XA(n) {
|
|
@@ -1767,7 +1767,7 @@ function XA(n) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
const YA = d.forwardRef((n, e) => {
|
|
1769
1769
|
const { asChild: t, className: s, ...a } = F(n, GA, pn, X), o = t ? ve : "section";
|
|
1770
|
-
return d.createElement(o, { ...a, ref: e, className:
|
|
1770
|
+
return d.createElement(o, { ...a, ref: e, className: v("rt-Section", s) });
|
|
1771
1771
|
});
|
|
1772
1772
|
YA.displayName = "Section";
|
|
1773
1773
|
const ZA = ["1", "2", "3"], ur = { size: { type: "enum", className: "rt-r-size", values: ZA, default: "2", responsive: !0 } }, _A = ["classic", "surface", "soft", "ghost"], $A = { variant: { type: "enum", className: "rt-variant", values: _A, default: "surface" }, ...we, ...Le, placeholder: { type: "string" } }, eh = ["solid", "soft"], th = { variant: { type: "enum", className: "rt-variant", values: eh, default: "solid" }, ...we, ...Ie }, Ar = d.createContext({}), hr = (n) => {
|
|
@@ -1777,45 +1777,45 @@ const ZA = ["1", "2", "3"], ur = { size: { type: "enum", className: "rt-r-size",
|
|
|
1777
1777
|
hr.displayName = "Select.Root";
|
|
1778
1778
|
const pr = d.forwardRef((n, e) => {
|
|
1779
1779
|
const t = d.useContext(Ar), { children: s, className: a, color: o, radius: i, placeholder: l, ...c } = F({ size: t == null ? void 0 : t.size, ...n }, { size: ur.size }, $A, X);
|
|
1780
|
-
return d.createElement(ud, { asChild: !0 }, d.createElement("button", { "data-accent-color": o, "data-radius": i, ...c, ref: e, className:
|
|
1780
|
+
return d.createElement(ud, { asChild: !0 }, d.createElement("button", { "data-accent-color": o, "data-radius": i, ...c, ref: e, className: v("rt-reset", "rt-SelectTrigger", a) }, d.createElement("span", { className: "rt-SelectTriggerInner" }, d.createElement(Ad, { placeholder: l }, s)), d.createElement(hd, { asChild: !0 }, d.createElement(zo, { className: "rt-SelectIcon" }))));
|
|
1781
1781
|
});
|
|
1782
1782
|
pr.displayName = "Select.Trigger";
|
|
1783
1783
|
const mr = d.forwardRef((n, e) => {
|
|
1784
1784
|
const t = d.useContext(Ar), { className: s, children: a, color: o, container: i, ...l } = F({ size: t == null ? void 0 : t.size, ...n }, { size: ur.size }, th), c = eu(), u = o || c.accentColor;
|
|
1785
|
-
return d.createElement(pd, { container: i }, d.createElement(dt, { asChild: !0 }, d.createElement(md, { "data-accent-color": u, sideOffset: 4, ...l, asChild: !1, ref: e, className:
|
|
1785
|
+
return d.createElement(pd, { container: i }, d.createElement(dt, { asChild: !0 }, d.createElement(md, { "data-accent-color": u, sideOffset: 4, ...l, asChild: !1, ref: e, className: v({ "rt-PopperContent": l.position === "popper" }, "rt-SelectContent", s) }, d.createElement(aa, { type: "auto", className: "rt-ScrollAreaRoot" }, d.createElement(gd, { asChild: !0, className: "rt-SelectViewport" }, d.createElement(oa, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, a)), d.createElement(Es, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, d.createElement(Ss, { className: "rt-ScrollAreaThumb" }))))));
|
|
1786
1786
|
});
|
|
1787
1787
|
mr.displayName = "Select.Content";
|
|
1788
1788
|
const oi = d.forwardRef((n, e) => {
|
|
1789
1789
|
const { className: t, children: s, ...a } = n;
|
|
1790
|
-
return d.createElement(Cd, { ...a, asChild: !1, ref: e, className:
|
|
1790
|
+
return d.createElement(Cd, { ...a, asChild: !1, ref: e, className: v("rt-SelectItem", t) }, d.createElement(kd, { className: "rt-SelectItemIndicator" }, d.createElement(Uo, { className: "rt-SelectItemIndicatorIcon" })), d.createElement(yd, null, s));
|
|
1791
1791
|
});
|
|
1792
1792
|
oi.displayName = "Select.Item";
|
|
1793
|
-
const gr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(fd, { ...e, asChild: !1, ref: t, className:
|
|
1793
|
+
const gr = d.forwardRef(({ className: n, ...e }, t) => d.createElement(fd, { ...e, asChild: !1, ref: t, className: v("rt-SelectGroup", n) }));
|
|
1794
1794
|
gr.displayName = "Select.Group";
|
|
1795
|
-
const nh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(vd, { ...e, asChild: !1, ref: t, className:
|
|
1795
|
+
const nh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(vd, { ...e, asChild: !1, ref: t, className: v("rt-SelectLabel", n) }));
|
|
1796
1796
|
nh.displayName = "Select.Label";
|
|
1797
|
-
const sh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(Ed, { ...e, asChild: !1, ref: t, className:
|
|
1797
|
+
const sh = d.forwardRef(({ className: n, ...e }, t) => d.createElement(Ed, { ...e, asChild: !1, ref: t, className: v("rt-SelectSeparator", n) }));
|
|
1798
1798
|
sh.displayName = "Select.Separator";
|
|
1799
1799
|
const rh = ["horizontal", "vertical"], ah = ["1", "2", "3", "4"], oh = { orientation: { type: "enum", className: "rt-r-orientation", values: rh, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: ah, default: "1", responsive: !0 }, color: { ...we.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, Ge = d.forwardRef((n, e) => {
|
|
1800
1800
|
const { className: t, color: s, decorative: a, ...o } = F(n, oh, X);
|
|
1801
|
-
return d.createElement("span", { "data-accent-color": s, role: a ? void 0 : "separator", ...o, ref: e, className:
|
|
1801
|
+
return d.createElement("span", { "data-accent-color": s, role: a ? void 0 : "separator", ...o, ref: e, className: v("rt-Separator", t) });
|
|
1802
1802
|
});
|
|
1803
1803
|
Ge.displayName = "Separator";
|
|
1804
1804
|
const ih = parseFloat(d.version) >= 19 || "", lh = { loading: { type: "boolean", default: !0 }, ...ye, ...qt }, ch = d.forwardRef((n, e) => {
|
|
1805
1805
|
const { children: t, className: s, loading: a, ...o } = F(n, lh, X);
|
|
1806
1806
|
if (!a) return t;
|
|
1807
1807
|
const i = d.isValidElement(t) ? ve : "span";
|
|
1808
|
-
return d.createElement(i, { ref: e, "aria-hidden": !0, className:
|
|
1808
|
+
return d.createElement(i, { ref: e, "aria-hidden": !0, className: v("rt-Skeleton", s), "data-inline-skeleton": d.isValidElement(t) ? void 0 : !0, tabIndex: -1, inert: ih, ...o }, t);
|
|
1809
1809
|
});
|
|
1810
1810
|
ch.displayName = "Skeleton";
|
|
1811
1811
|
const dh = { ...re, ...xt, ...Nt }, uh = d.forwardRef((n, e) => {
|
|
1812
1812
|
const { asChild: t, className: s, ...a } = F(n, dh), o = t ? ve : "strong";
|
|
1813
|
-
return d.createElement(o, { ...a, ref: e, className:
|
|
1813
|
+
return d.createElement(o, { ...a, ref: e, className: v("rt-Strong", s) });
|
|
1814
1814
|
});
|
|
1815
1815
|
uh.displayName = "Strong";
|
|
1816
1816
|
const Ah = ["1", "2", "3"], hh = ["classic", "surface", "soft"], ph = { size: { type: "enum", className: "rt-r-size", values: Ah, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: hh, default: "surface" }, ...we, ...Ie, ...Le }, it = d.forwardRef((n, e) => {
|
|
1817
1817
|
const { className: t, color: s, radius: a, ...o } = F(n, ph, X);
|
|
1818
|
-
return d.createElement(Fl, { "data-accent-color": s, "data-radius": a, ...o, asChild: !1, ref: e, className:
|
|
1818
|
+
return d.createElement(Fl, { "data-accent-color": s, "data-radius": a, ...o, asChild: !1, ref: e, className: v("rt-reset", "rt-SwitchRoot", t) }, d.createElement(Hl, { className: v("rt-SwitchThumb", { "rt-high-contrast": n.highContrast }) }));
|
|
1819
1819
|
});
|
|
1820
1820
|
it.displayName = "Switch";
|
|
1821
1821
|
const mh = ["1", "2"], gh = ["nowrap", "wrap", "wrap-reverse"], fh = ["start", "center", "end"], vh = { size: { type: "enum", className: "rt-r-size", values: mh, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: gh, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: fh, responsive: !0 }, ...we, ...Ie }, Ch = ["1", "2", "3"], yh = ["surface", "ghost"], kh = ["auto", "fixed"], As = { size: { type: "enum", className: "rt-r-size", values: Ch, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: yh, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: kh, responsive: !0 } }, Eh = ["start", "center", "end", "baseline"], Sh = { align: { type: "enum", className: "rt-r-va", values: Eh, parseValue: Ih, responsive: !0 } };
|
|
@@ -1828,31 +1828,31 @@ function Bh(n) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
const vr = d.forwardRef((n, e) => {
|
|
1830
1830
|
const { layout: t, ...s } = As, { className: a, children: o, layout: i, ...l } = F(n, s, X), c = dn({ value: i, className: As.layout.className, propValues: As.layout.values });
|
|
1831
|
-
return d.createElement("div", { ref: e, className:
|
|
1831
|
+
return d.createElement("div", { ref: e, className: v("rt-TableRoot", a), ...l }, d.createElement(Qt, null, d.createElement("table", { className: v("rt-TableRootTable", c) }, o)));
|
|
1832
1832
|
});
|
|
1833
1833
|
vr.displayName = "Table.Root";
|
|
1834
|
-
const Cr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("thead", { ...e, ref: t, className:
|
|
1834
|
+
const Cr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("thead", { ...e, ref: t, className: v("rt-TableHeader", n) }));
|
|
1835
1835
|
Cr.displayName = "Table.Header";
|
|
1836
|
-
const yr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("tbody", { ...e, ref: t, className:
|
|
1836
|
+
const yr = d.forwardRef(({ className: n, ...e }, t) => d.createElement("tbody", { ...e, ref: t, className: v("rt-TableBody", n) }));
|
|
1837
1837
|
yr.displayName = "Table.Body";
|
|
1838
1838
|
const es = d.forwardRef((n, e) => {
|
|
1839
1839
|
const { className: t, ...s } = F(n, Sh);
|
|
1840
|
-
return d.createElement("tr", { ...s, ref: e, className:
|
|
1840
|
+
return d.createElement("tr", { ...s, ref: e, className: v("rt-TableRow", t) });
|
|
1841
1841
|
});
|
|
1842
1842
|
es.displayName = "Table.Row";
|
|
1843
1843
|
const Ht = d.forwardRef((n, e) => {
|
|
1844
1844
|
const { className: t, ...s } = F(n, fr);
|
|
1845
|
-
return d.createElement("td", { className:
|
|
1845
|
+
return d.createElement("td", { className: v("rt-TableCell", t), ref: e, ...s });
|
|
1846
1846
|
});
|
|
1847
1847
|
Ht.displayName = "Table.Cell";
|
|
1848
1848
|
const Pn = d.forwardRef((n, e) => {
|
|
1849
1849
|
const { className: t, ...s } = F(n, fr);
|
|
1850
|
-
return d.createElement("th", { className:
|
|
1850
|
+
return d.createElement("th", { className: v("rt-TableCell", "rt-TableColumnHeaderCell", t), scope: "col", ref: e, ...s });
|
|
1851
1851
|
});
|
|
1852
1852
|
Pn.displayName = "Table.ColumnHeaderCell";
|
|
1853
1853
|
const ii = d.forwardRef((n, e) => {
|
|
1854
1854
|
const { className: t, ...s } = F(n, fr);
|
|
1855
|
-
return d.createElement("th", { className:
|
|
1855
|
+
return d.createElement("th", { className: v("rt-TableCell", "rt-TableRowHeaderCell", t), scope: "row", ref: e, ...s });
|
|
1856
1856
|
});
|
|
1857
1857
|
ii.displayName = "Table.RowHeaderCell";
|
|
1858
1858
|
const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1866,22 +1866,22 @@ const FS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1866
1866
|
RowHeaderCell: ii
|
|
1867
1867
|
}, Symbol.toStringTag, { value: "Module" })), li = d.forwardRef((n, e) => {
|
|
1868
1868
|
const { className: t, ...s } = F(n, X);
|
|
1869
|
-
return d.createElement(Ll, { ...s, ref: e, className:
|
|
1869
|
+
return d.createElement(Ll, { ...s, ref: e, className: v("rt-TabsRoot", t) });
|
|
1870
1870
|
});
|
|
1871
1871
|
li.displayName = "Tabs.Root";
|
|
1872
1872
|
const ci = d.forwardRef((n, e) => {
|
|
1873
1873
|
const { className: t, color: s, ...a } = F(n, vh, X);
|
|
1874
|
-
return d.createElement(Wl, { "data-accent-color": s, ...a, asChild: !1, ref: e, className:
|
|
1874
|
+
return d.createElement(Wl, { "data-accent-color": s, ...a, asChild: !1, ref: e, className: v("rt-BaseTabList", "rt-TabsList", t) });
|
|
1875
1875
|
});
|
|
1876
1876
|
ci.displayName = "Tabs.List";
|
|
1877
1877
|
const di = d.forwardRef((n, e) => {
|
|
1878
1878
|
const { className: t, children: s, ...a } = n;
|
|
1879
|
-
return d.createElement(Vl, { ...a, asChild: !1, ref: e, className:
|
|
1879
|
+
return d.createElement(Vl, { ...a, asChild: !1, ref: e, className: v("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", t) }, d.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), d.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
|
|
1880
1880
|
});
|
|
1881
1881
|
di.displayName = "Tabs.Trigger";
|
|
1882
1882
|
const ui = d.forwardRef((n, e) => {
|
|
1883
1883
|
const { className: t, ...s } = F(n, X);
|
|
1884
|
-
return d.createElement(jl, { ...s, ref: e, className:
|
|
1884
|
+
return d.createElement(jl, { ...s, ref: e, className: v("rt-TabsContent", t) });
|
|
1885
1885
|
});
|
|
1886
1886
|
ui.displayName = "Tabs.Content";
|
|
1887
1887
|
const HS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1892,12 +1892,12 @@ const HS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1892
1892
|
Trigger: di
|
|
1893
1893
|
}, Symbol.toStringTag, { value: "Module" })), wh = ["1", "2", "3"], Rh = ["classic", "surface", "soft"], Nh = ["none", "vertical", "horizontal", "both"], xh = { size: { type: "enum", className: "rt-r-size", values: wh, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Rh, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: Nh, responsive: !0 }, ...we, ...Le }, Ai = d.forwardRef((n, e) => {
|
|
1894
1894
|
const { className: t, color: s, radius: a, style: o, ...i } = F(n, xh, X);
|
|
1895
|
-
return d.createElement("div", { "data-accent-color": s, "data-radius": a, className:
|
|
1895
|
+
return d.createElement("div", { "data-accent-color": s, "data-radius": a, className: v("rt-TextAreaRoot", t), style: o }, d.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: e, ...i }));
|
|
1896
1896
|
});
|
|
1897
1897
|
Ai.displayName = "TextArea";
|
|
1898
1898
|
const Qh = ["1", "2", "3"], Th = ["classic", "surface", "soft"], Dh = { size: { type: "enum", className: "rt-r-size", values: Qh, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Th, default: "surface" }, ...we, ...Le }, Jh = ["left", "right"], Ph = { side: { type: "enum", values: Jh }, ...we, gap: Qo.gap, px: ln.px, pl: ln.pl, pr: ln.pr }, hi = d.forwardRef((n, e) => {
|
|
1899
1899
|
const t = d.useRef(null), { children: s, className: a, color: o, radius: i, style: l, ...c } = F(n, Dh, X);
|
|
1900
|
-
return d.createElement("div", { "data-accent-color": o, "data-radius": i, style: l, className:
|
|
1900
|
+
return d.createElement("div", { "data-accent-color": o, "data-radius": i, style: l, className: v("rt-TextFieldRoot", a), onPointerDown: (u) => {
|
|
1901
1901
|
const h = u.target;
|
|
1902
1902
|
if (h.closest("input, button, a")) return;
|
|
1903
1903
|
const A = t.current;
|
|
@@ -1918,12 +1918,12 @@ const Qh = ["1", "2", "3"], Th = ["classic", "surface", "soft"], Dh = { size: {
|
|
|
1918
1918
|
hi.displayName = "TextField.Root";
|
|
1919
1919
|
const pi = d.forwardRef((n, e) => {
|
|
1920
1920
|
const { className: t, color: s, side: a, ...o } = F(n, Ph);
|
|
1921
|
-
return d.createElement("div", { "data-accent-color": s, "data-side": a, ...o, ref: e, className:
|
|
1921
|
+
return d.createElement("div", { "data-accent-color": s, "data-side": a, ...o, ref: e, className: v("rt-TextFieldSlot", t) });
|
|
1922
1922
|
});
|
|
1923
1923
|
pi.displayName = "TextField.Slot";
|
|
1924
1924
|
const Uh = { content: { type: "ReactNode", required: !0 }, width: ye.width, minWidth: ye.minWidth, maxWidth: { ...ye.maxWidth, default: "360px" } }, Gt = d.forwardRef((n, e) => {
|
|
1925
1925
|
const { children: t, className: s, open: a, defaultOpen: o, onOpenChange: i, delayDuration: l, disableHoverableContent: c, content: u, container: h, forceMount: A, ...p } = F(n, Uh), k = { open: a, defaultOpen: o, onOpenChange: i, delayDuration: l, disableHoverableContent: c };
|
|
1926
|
-
return d.createElement(Mn, { ...k }, d.createElement(On, { asChild: !0 }, t), d.createElement(pa, { container: h, forceMount: A }, d.createElement(dt, { asChild: !0 }, d.createElement(Fn, { sideOffset: 4, collisionPadding: 10, ...p, asChild: !1, ref: e, className:
|
|
1926
|
+
return d.createElement(Mn, { ...k }, d.createElement(On, { asChild: !0 }, t), d.createElement(pa, { container: h, forceMount: A }, d.createElement(dt, { asChild: !0 }, d.createElement(Fn, { sideOffset: 4, collisionPadding: 10, ...p, asChild: !1, ref: e, className: v("rt-TooltipContent", s) }, d.createElement(P, { as: "p", className: "rt-TooltipText", size: "1" }, u), d.createElement(Hn, { className: "rt-TooltipArrow" })))));
|
|
1927
1927
|
});
|
|
1928
1928
|
Gt.displayName = "Tooltip";
|
|
1929
1929
|
const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "_upgradeIcon_1isop_26", Fh = "_upgradeText_1isop_30", Hh = "_upgradeContent_1isop_44", jh = "_upgradeContentCollapsed_1isop_58", Wh = "_upgradeItemSelected_1isop_71", Ct = {
|
|
@@ -1955,7 +1955,7 @@ const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "
|
|
|
1955
1955
|
align: "center",
|
|
1956
1956
|
role: "button",
|
|
1957
1957
|
tabIndex: 0,
|
|
1958
|
-
className:
|
|
1958
|
+
className: v(Ct.upgradeItem, {
|
|
1959
1959
|
[Ct.upgradeItemCollapsed]: e,
|
|
1960
1960
|
[Ct.upgradeItemSelected]: l
|
|
1961
1961
|
}),
|
|
@@ -1968,7 +1968,7 @@ const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "
|
|
|
1968
1968
|
/* @__PURE__ */ r(
|
|
1969
1969
|
"div",
|
|
1970
1970
|
{
|
|
1971
|
-
className:
|
|
1971
|
+
className: v(Ct.upgradeContent, {
|
|
1972
1972
|
[Ct.upgradeContentCollapsed]: e
|
|
1973
1973
|
}),
|
|
1974
1974
|
children: /* @__PURE__ */ r(P, { size: "2", className: Ct.upgradeText, children: o.label })
|
|
@@ -2024,7 +2024,7 @@ const zh = "_upgradeItem_1isop_1", Mh = "_upgradeItemCollapsed_1isop_12", Oh = "
|
|
|
2024
2024
|
variant: t,
|
|
2025
2025
|
color: A,
|
|
2026
2026
|
size: a,
|
|
2027
|
-
className:
|
|
2027
|
+
className: v(Ze.Button, e, Ze.button, {
|
|
2028
2028
|
[Ze[A]]: !0,
|
|
2029
2029
|
[Ze[`size${a}`]]: !0,
|
|
2030
2030
|
[Ze[t]]: !0,
|
|
@@ -2076,7 +2076,7 @@ const mp = "_iconButton_dxvji_1", gp = "_ghost_dxvji_7", fp = "_mint_dxvji_7", v
|
|
|
2076
2076
|
dr,
|
|
2077
2077
|
{
|
|
2078
2078
|
onClick: n,
|
|
2079
|
-
className:
|
|
2079
|
+
className: v(
|
|
2080
2080
|
yt.iconButton,
|
|
2081
2081
|
{
|
|
2082
2082
|
[yt[a]]: !0,
|
|
@@ -2128,7 +2128,7 @@ const Qp = ({
|
|
|
2128
2128
|
size: "1",
|
|
2129
2129
|
variant: "solid",
|
|
2130
2130
|
color: e.color,
|
|
2131
|
-
className:
|
|
2131
|
+
className: v(Ye.badge, {
|
|
2132
2132
|
[Ye.badgeGreen]: e.color === "green",
|
|
2133
2133
|
[Ye.badgeNeutral]: e.color === "neutral"
|
|
2134
2134
|
}),
|
|
@@ -2186,7 +2186,7 @@ const Tp = "_size1_18z9r_1", Dp = "_accent_18z9r_5", Jp = "_neutral_18z9r_15", P
|
|
|
2186
2186
|
color: s,
|
|
2187
2187
|
variant: "soft",
|
|
2188
2188
|
highContrast: a,
|
|
2189
|
-
className:
|
|
2189
|
+
className: v(
|
|
2190
2190
|
vn.Callout,
|
|
2191
2191
|
e,
|
|
2192
2192
|
vn[s],
|
|
@@ -2232,12 +2232,12 @@ const Fp = "_card_qkexv_1", Hp = "_iconContainer_qkexv_15", jp = "_icon_qkexv_15
|
|
|
2232
2232
|
size: "3",
|
|
2233
2233
|
color: t,
|
|
2234
2234
|
onClick: i,
|
|
2235
|
-
className:
|
|
2235
|
+
className: v(u, e, Ve.card, s && Ve.drop, a && Ve.dropHover),
|
|
2236
2236
|
...l,
|
|
2237
2237
|
children: /* @__PURE__ */ g(y, { gap: "5", align: "center", children: [
|
|
2238
2238
|
/* @__PURE__ */ g(y, { className: Ve.iconContainer, children: [
|
|
2239
|
-
o ? /* @__PURE__ */ r(o, { width: 16, height: 16, className:
|
|
2240
|
-
/* @__PURE__ */ r(Vs, { width: 16, height: 16, className:
|
|
2239
|
+
o ? /* @__PURE__ */ r(o, { width: 16, height: 16, className: v(Ve.iconDefault, c) }) : /* @__PURE__ */ r(ma, { width: 16, height: 16, className: v(Ve.iconDefault, c) }),
|
|
2240
|
+
/* @__PURE__ */ r(Vs, { width: 16, height: 16, className: v(Ve.iconHover, c) })
|
|
2241
2241
|
] }),
|
|
2242
2242
|
/* @__PURE__ */ r(he, { children: /* @__PURE__ */ r(P, { as: "div", size: "2", weight: "bold", children: n }) })
|
|
2243
2243
|
] })
|
|
@@ -2256,7 +2256,7 @@ const Gp = "_Checkbox_1hm4q_1", Xp = "_CheckboxIndicator_1hm4q_61", Yp = "_Check
|
|
|
2256
2256
|
ql,
|
|
2257
2257
|
{
|
|
2258
2258
|
...e,
|
|
2259
|
-
className:
|
|
2259
|
+
className: v(Cn.Checkbox, n),
|
|
2260
2260
|
size: t,
|
|
2261
2261
|
children: /* @__PURE__ */ g(Kl, { className: Cn.CheckboxIndicator, children: [
|
|
2262
2262
|
/* @__PURE__ */ r(
|
|
@@ -2318,35 +2318,35 @@ const _p = "_clock_1g00b_2", $p = "_column_1g00b_10", em = "_sm_1g00b_18", tm =
|
|
|
2318
2318
|
[se.md]: u === "md",
|
|
2319
2319
|
[se.lg]: u === "lg"
|
|
2320
2320
|
};
|
|
2321
|
-
return l ? /* @__PURE__ */ r("div", { className:
|
|
2321
|
+
return l ? /* @__PURE__ */ r("div", { className: v(se.skeletonBox, p, h), children: /* @__PURE__ */ r("div", { className: se.skeleton }) }) : /* @__PURE__ */ g("div", { className: v(se.clock, h), children: [
|
|
2322
2322
|
A && t > 0 && /* @__PURE__ */ g(pe, { children: [
|
|
2323
2323
|
/* @__PURE__ */ g(
|
|
2324
2324
|
"div",
|
|
2325
2325
|
{
|
|
2326
|
-
className:
|
|
2326
|
+
className: v(se.column, p, {
|
|
2327
2327
|
[se.days]: t > 0
|
|
2328
2328
|
}),
|
|
2329
2329
|
children: [
|
|
2330
|
-
/* @__PURE__ */ r("p", { className:
|
|
2331
|
-
/* @__PURE__ */ r("p", { className:
|
|
2330
|
+
/* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(t) }),
|
|
2331
|
+
/* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Days") })
|
|
2332
2332
|
]
|
|
2333
2333
|
}
|
|
2334
2334
|
),
|
|
2335
|
-
/* @__PURE__ */ r("p", { className:
|
|
2335
|
+
/* @__PURE__ */ r("p", { className: v(se.colon, p), children: ":" })
|
|
2336
2336
|
] }),
|
|
2337
|
-
/* @__PURE__ */ g("div", { className:
|
|
2338
|
-
/* @__PURE__ */ r("p", { className:
|
|
2339
|
-
/* @__PURE__ */ r("p", { className:
|
|
2337
|
+
/* @__PURE__ */ g("div", { className: v(se.column, p), children: [
|
|
2338
|
+
/* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(s) }),
|
|
2339
|
+
/* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Hours") })
|
|
2340
2340
|
] }),
|
|
2341
|
-
/* @__PURE__ */ r("p", { className:
|
|
2342
|
-
/* @__PURE__ */ g("div", { className:
|
|
2343
|
-
/* @__PURE__ */ r("p", { className:
|
|
2344
|
-
/* @__PURE__ */ r("p", { className:
|
|
2341
|
+
/* @__PURE__ */ r("p", { className: v(se.colon, p), children: ":" }),
|
|
2342
|
+
/* @__PURE__ */ g("div", { className: v(se.column, p), children: [
|
|
2343
|
+
/* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(a) }),
|
|
2344
|
+
/* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Minutes") })
|
|
2345
2345
|
] }),
|
|
2346
|
-
(t <= 0 || !A) && /* @__PURE__ */ r("p", { className:
|
|
2347
|
-
(t <= 0 || !A) && /* @__PURE__ */ g("div", { className:
|
|
2348
|
-
/* @__PURE__ */ r("p", { className:
|
|
2349
|
-
/* @__PURE__ */ r("p", { className:
|
|
2346
|
+
(t <= 0 || !A) && /* @__PURE__ */ r("p", { className: v(se.colon, p), children: ":" }),
|
|
2347
|
+
(t <= 0 || !A) && /* @__PURE__ */ g("div", { className: v(se.column, p), children: [
|
|
2348
|
+
/* @__PURE__ */ r("p", { className: v(se.labelBig, p), children: yn(o) }),
|
|
2349
|
+
/* @__PURE__ */ r("p", { className: v(se.labelSmall, p), children: n._("Sec") })
|
|
2350
2350
|
] })
|
|
2351
2351
|
] });
|
|
2352
2352
|
};
|
|
@@ -2385,7 +2385,7 @@ const dm = "_container_1k1mq_1", um = "_content_1k1mq_19", Am = "_title_1k1mq_26
|
|
|
2385
2385
|
return () => clearInterval(c);
|
|
2386
2386
|
}, [s]);
|
|
2387
2387
|
const l = s && o && !o.ended;
|
|
2388
|
-
return /* @__PURE__ */ g("div", { className:
|
|
2388
|
+
return /* @__PURE__ */ g("div", { className: v(Zt.container, n), children: [
|
|
2389
2389
|
/* @__PURE__ */ g("div", { className: Zt.content, children: [
|
|
2390
2390
|
/* @__PURE__ */ r("p", { className: Zt.title, children: e }),
|
|
2391
2391
|
t && /* @__PURE__ */ r("p", { className: Zt.description, children: t })
|
|
@@ -2451,7 +2451,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
|
|
|
2451
2451
|
return /* @__PURE__ */ r(
|
|
2452
2452
|
"div",
|
|
2453
2453
|
{
|
|
2454
|
-
className:
|
|
2454
|
+
className: v(
|
|
2455
2455
|
W.menuItem,
|
|
2456
2456
|
W[`menuItem-size-${s}`]
|
|
2457
2457
|
),
|
|
@@ -2472,7 +2472,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
|
|
|
2472
2472
|
return /* @__PURE__ */ r(
|
|
2473
2473
|
n.Label,
|
|
2474
2474
|
{
|
|
2475
|
-
className:
|
|
2475
|
+
className: v(
|
|
2476
2476
|
W.menuLabel,
|
|
2477
2477
|
W[`menuLabel-size-${s}`]
|
|
2478
2478
|
),
|
|
@@ -2485,7 +2485,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
|
|
|
2485
2485
|
/* @__PURE__ */ g(
|
|
2486
2486
|
n.SubTrigger,
|
|
2487
2487
|
{
|
|
2488
|
-
className:
|
|
2488
|
+
className: v(
|
|
2489
2489
|
W.menuSubTrigger,
|
|
2490
2490
|
W[`menuSubTrigger-size-${s}`],
|
|
2491
2491
|
{
|
|
@@ -2507,7 +2507,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
|
|
|
2507
2507
|
return /* @__PURE__ */ g(
|
|
2508
2508
|
n.Item,
|
|
2509
2509
|
{
|
|
2510
|
-
className:
|
|
2510
|
+
className: v(
|
|
2511
2511
|
W.menuItem,
|
|
2512
2512
|
W[`menuItem-size-${s}`],
|
|
2513
2513
|
{
|
|
@@ -2547,7 +2547,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
|
|
|
2547
2547
|
onSelect: (l) => {
|
|
2548
2548
|
o || l.preventDefault();
|
|
2549
2549
|
},
|
|
2550
|
-
className:
|
|
2550
|
+
className: v(
|
|
2551
2551
|
W.menuItem,
|
|
2552
2552
|
W.menuCheckboxItem,
|
|
2553
2553
|
{
|
|
@@ -2606,7 +2606,7 @@ const gm = "_menuContent_1j71o_1", fm = "_menuSubContent_1j71o_2", vm = "_slideD
|
|
|
2606
2606
|
(e == null ? void 0 : e.length) > 0 && /* @__PURE__ */ r(
|
|
2607
2607
|
Yl,
|
|
2608
2608
|
{
|
|
2609
|
-
className:
|
|
2609
|
+
className: v(W.menuContent, t),
|
|
2610
2610
|
side: l.side,
|
|
2611
2611
|
align: l.align,
|
|
2612
2612
|
sideOffset: 5,
|
|
@@ -2641,7 +2641,7 @@ const Km = "_MoreButton_ats8z_1", Gm = "_hovered_ats8z_29", Xm = "_icon_ats8z_39
|
|
|
2641
2641
|
"button",
|
|
2642
2642
|
{
|
|
2643
2643
|
type: "button",
|
|
2644
|
-
className:
|
|
2644
|
+
className: v(hs.MoreButton, n, {
|
|
2645
2645
|
[hs.hovered]: t
|
|
2646
2646
|
}),
|
|
2647
2647
|
"aria-label": e,
|
|
@@ -2689,25 +2689,25 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2689
2689
|
renderDataCell: k
|
|
2690
2690
|
}) {
|
|
2691
2691
|
var S;
|
|
2692
|
-
const
|
|
2693
|
-
|
|
2694
|
-
},
|
|
2695
|
-
|
|
2696
|
-
|
|
2692
|
+
const f = ee(!1), m = (B) => {
|
|
2693
|
+
B.shiftKey ? (B.preventDefault(), A == null || A(e, t)) : u == null || u(e);
|
|
2694
|
+
}, C = (B) => {
|
|
2695
|
+
B.stopPropagation(), B.shiftKey && (B.preventDefault(), f.current = !0, A == null || A(e, t), setTimeout(() => {
|
|
2696
|
+
f.current = !1;
|
|
2697
2697
|
}, 0));
|
|
2698
|
-
}, E = (
|
|
2699
|
-
|
|
2700
|
-
},
|
|
2701
|
-
if (
|
|
2702
|
-
|
|
2698
|
+
}, E = (B) => {
|
|
2699
|
+
B.stopPropagation(), B.shiftKey ? (B.preventDefault(), A == null || A(e, t)) : h == null || h(e.id, !a);
|
|
2700
|
+
}, b = (B) => {
|
|
2701
|
+
if (f.current) {
|
|
2702
|
+
f.current = !1;
|
|
2703
2703
|
return;
|
|
2704
2704
|
}
|
|
2705
|
-
h == null || h(e.id,
|
|
2705
|
+
h == null || h(e.id, B === !0);
|
|
2706
2706
|
}, I = a && i === 1;
|
|
2707
2707
|
return /* @__PURE__ */ g(
|
|
2708
2708
|
es,
|
|
2709
2709
|
{
|
|
2710
|
-
className:
|
|
2710
|
+
className: v({
|
|
2711
2711
|
[Y.rowSelected]: a,
|
|
2712
2712
|
[Y.showDropdownOnSelect]: I
|
|
2713
2713
|
}),
|
|
@@ -2725,34 +2725,34 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2725
2725
|
{
|
|
2726
2726
|
size: "1",
|
|
2727
2727
|
checked: a,
|
|
2728
|
-
onClick:
|
|
2729
|
-
onCheckedChange:
|
|
2730
|
-
className:
|
|
2728
|
+
onClick: C,
|
|
2729
|
+
onCheckedChange: b,
|
|
2730
|
+
className: v(Y.checkboxCell, {
|
|
2731
2731
|
[Y.showCheckboxCell]: a || o
|
|
2732
2732
|
})
|
|
2733
2733
|
}
|
|
2734
2734
|
)
|
|
2735
2735
|
}
|
|
2736
2736
|
),
|
|
2737
|
-
s.map((
|
|
2737
|
+
s.map((B, w) => /* @__PURE__ */ r(
|
|
2738
2738
|
Ht,
|
|
2739
2739
|
{
|
|
2740
|
-
className:
|
|
2740
|
+
className: v(
|
|
2741
2741
|
Y.projectCell,
|
|
2742
2742
|
w === 0 ? Y.columnProject : Y.dataColumn,
|
|
2743
|
-
{ [Y.sortedColumn]: l ===
|
|
2743
|
+
{ [Y.sortedColumn]: l === B.id }
|
|
2744
2744
|
),
|
|
2745
|
-
"data-column-id":
|
|
2746
|
-
"data-sorted": l ===
|
|
2745
|
+
"data-column-id": B.id,
|
|
2746
|
+
"data-sorted": l === B.id,
|
|
2747
2747
|
onClick: m,
|
|
2748
|
-
children: w === 0 ? p(e) : k(e,
|
|
2748
|
+
children: w === 0 ? p(e) : k(e, B, w)
|
|
2749
2749
|
},
|
|
2750
|
-
|
|
2750
|
+
B.id
|
|
2751
2751
|
)),
|
|
2752
2752
|
c && /* @__PURE__ */ r(
|
|
2753
2753
|
Ht,
|
|
2754
2754
|
{
|
|
2755
|
-
className:
|
|
2755
|
+
className: v(Y.projectCell, Y.dropdownColumn, Y.dropdownColumnCell),
|
|
2756
2756
|
"data-column-id": "actions",
|
|
2757
2757
|
children: (S = e.dropdownOptions) != null && S.length ? /* @__PURE__ */ r(
|
|
2758
2758
|
gn,
|
|
@@ -2761,7 +2761,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2761
2761
|
ss,
|
|
2762
2762
|
{
|
|
2763
2763
|
"aria-label": `More options for ${e.title}`,
|
|
2764
|
-
className:
|
|
2764
|
+
className: v(Y.dropdownTriggerWrapperIcon, Y.dropdownColumnCell)
|
|
2765
2765
|
}
|
|
2766
2766
|
) }),
|
|
2767
2767
|
options: e.dropdownOptions,
|
|
@@ -2789,7 +2789,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2789
2789
|
stickyBodyOffset: A = 0,
|
|
2790
2790
|
...p
|
|
2791
2791
|
}) => {
|
|
2792
|
-
const [k,
|
|
2792
|
+
const [k, f] = q(!1), m = ee(null), C = i == null ? void 0 : i.field, E = _(() => new Set(s), [s]), b = N((R) => E.has(R), [E]), I = s.length, S = (t == null ? void 0 : t.length) ?? 0, B = I > 0, w = S > 0 && I === S, Q = _(
|
|
2793
2793
|
() => t == null ? void 0 : t.some((R) => {
|
|
2794
2794
|
var H;
|
|
2795
2795
|
return (H = R.dropdownOptions) == null ? void 0 : H.length;
|
|
@@ -2838,9 +2838,9 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2838
2838
|
] })
|
|
2839
2839
|
] }), []), U = N(
|
|
2840
2840
|
(R) => {
|
|
2841
|
-
|
|
2841
|
+
B && !w ? c == null || c(!1) : c == null || c(R === !0);
|
|
2842
2842
|
},
|
|
2843
|
-
[
|
|
2843
|
+
[B, w, c]
|
|
2844
2844
|
), J = N((R, H, ae) => {
|
|
2845
2845
|
var le;
|
|
2846
2846
|
const Re = (R == null ? void 0 : R[H.id]) ?? (R == null ? void 0 : R[`${H.id}Formatted`]), xe = ((le = H.render) == null ? void 0 : le.call(H, { row: R, value: Re, column: H, index: ae })) ?? Re;
|
|
@@ -2849,7 +2849,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2849
2849
|
return /* @__PURE__ */ g(
|
|
2850
2850
|
vr,
|
|
2851
2851
|
{
|
|
2852
|
-
className:
|
|
2852
|
+
className: v(Y.DataTable, n),
|
|
2853
2853
|
size: "1",
|
|
2854
2854
|
style: {
|
|
2855
2855
|
"--datatable-sticky-offset": G,
|
|
@@ -2861,14 +2861,14 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2861
2861
|
/* @__PURE__ */ r(
|
|
2862
2862
|
Cr,
|
|
2863
2863
|
{
|
|
2864
|
-
onMouseEnter: () =>
|
|
2865
|
-
onMouseLeave: () =>
|
|
2864
|
+
onMouseEnter: () => f(!0),
|
|
2865
|
+
onMouseLeave: () => f(!1),
|
|
2866
2866
|
children: /* @__PURE__ */ g(es, { className: Y.headerRow, children: [
|
|
2867
2867
|
/* @__PURE__ */ r(
|
|
2868
2868
|
Ht,
|
|
2869
2869
|
{
|
|
2870
|
-
className:
|
|
2871
|
-
[Y.showCheckboxHeader]: k ||
|
|
2870
|
+
className: v(Y.checkboxCell, Y.selectColumn, {
|
|
2871
|
+
[Y.showCheckboxHeader]: k || B
|
|
2872
2872
|
}),
|
|
2873
2873
|
children: /* @__PURE__ */ r(
|
|
2874
2874
|
ns,
|
|
@@ -2876,7 +2876,7 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2876
2876
|
size: "1",
|
|
2877
2877
|
checked: w,
|
|
2878
2878
|
onCheckedChange: U,
|
|
2879
|
-
...
|
|
2879
|
+
...B && !w ? { checked: "indeterminate" } : {}
|
|
2880
2880
|
}
|
|
2881
2881
|
)
|
|
2882
2882
|
}
|
|
@@ -2884,10 +2884,10 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2884
2884
|
e.map((R, H) => /* @__PURE__ */ r(
|
|
2885
2885
|
Pn,
|
|
2886
2886
|
{
|
|
2887
|
-
className:
|
|
2887
|
+
className: v(Y.columnHeaderCell, {
|
|
2888
2888
|
[Y.columnProject]: H === 0,
|
|
2889
2889
|
[Y.dataColumn]: H !== 0,
|
|
2890
|
-
[Y.sortedColumn]: Ur(
|
|
2890
|
+
[Y.sortedColumn]: Ur(C) === Ur(R.id)
|
|
2891
2891
|
}),
|
|
2892
2892
|
children: /* @__PURE__ */ g(y, { align: "center", gap: "3", height: "24px", children: [
|
|
2893
2893
|
H === 0 ? /* @__PURE__ */ r(j, { size: "2", className: Y.headerTextFirst, children: R.label }) : /* @__PURE__ */ g(
|
|
@@ -2898,14 +2898,14 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2898
2898
|
onClick: () => O(R.id),
|
|
2899
2899
|
children: [
|
|
2900
2900
|
/* @__PURE__ */ r(j, { size: "2", children: R.label }),
|
|
2901
|
-
|
|
2901
|
+
C === R.id && ((i == null ? void 0 : i.sort) === "DESC" ? /* @__PURE__ */ r(oc, { width: 16, height: 16 }) : /* @__PURE__ */ r(ic, { width: 16, height: 16 }))
|
|
2902
2902
|
]
|
|
2903
2903
|
}
|
|
2904
2904
|
),
|
|
2905
2905
|
H === 0 && o && /* @__PURE__ */ r(y, { gap: "2", className: Y.headerActions, children: o({
|
|
2906
2906
|
selectedCount: I,
|
|
2907
2907
|
total: S,
|
|
2908
|
-
anySelected:
|
|
2908
|
+
anySelected: B,
|
|
2909
2909
|
allSelected: w
|
|
2910
2910
|
}) })
|
|
2911
2911
|
] })
|
|
@@ -2927,10 +2927,10 @@ const Ym = "_DataTable_17x9s_1", Zm = "_titleText_17x9s_23", _m = "_artistText_1
|
|
|
2927
2927
|
row: R,
|
|
2928
2928
|
rowIndex: H,
|
|
2929
2929
|
columns: e,
|
|
2930
|
-
isSelected:
|
|
2931
|
-
anyRowSelected:
|
|
2930
|
+
isSelected: b(R.id),
|
|
2931
|
+
anyRowSelected: B,
|
|
2932
2932
|
selectedCount: I,
|
|
2933
|
-
sortedKey:
|
|
2933
|
+
sortedKey: C,
|
|
2934
2934
|
hasDropdownOptions: Q,
|
|
2935
2935
|
onRowClick: T,
|
|
2936
2936
|
onSelectRow: z,
|
|
@@ -2968,12 +2968,12 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
|
|
|
2968
2968
|
const [u, h] = q(!1), A = (p) => {
|
|
2969
2969
|
a && (p.preventDefault(), p.stopPropagation(), a(p));
|
|
2970
2970
|
};
|
|
2971
|
-
return /* @__PURE__ */ r(y, { className:
|
|
2971
|
+
return /* @__PURE__ */ r(y, { className: v(Ue.container, t), ...c, children: /* @__PURE__ */ g(la, { open: o, onOpenChange: i, modal: !0, children: [
|
|
2972
2972
|
a && /* @__PURE__ */ r(
|
|
2973
2973
|
y,
|
|
2974
2974
|
{
|
|
2975
2975
|
as: "button",
|
|
2976
|
-
className:
|
|
2976
|
+
className: v({
|
|
2977
2977
|
[Ue.triggerWithClick]: a,
|
|
2978
2978
|
[Ue.hasLeftColor]: l
|
|
2979
2979
|
}),
|
|
@@ -3003,7 +3003,7 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
|
|
|
3003
3003
|
/* @__PURE__ */ r(ca, { asChild: !0, children: /* @__PURE__ */ g(
|
|
3004
3004
|
"div",
|
|
3005
3005
|
{
|
|
3006
|
-
className:
|
|
3006
|
+
className: v({
|
|
3007
3007
|
[Ue.hover]: u,
|
|
3008
3008
|
[Ue.hasLeftColor]: l,
|
|
3009
3009
|
[Ue.hasTriggerWithClick]: a,
|
|
@@ -3032,7 +3032,7 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
|
|
|
3032
3032
|
s && /* @__PURE__ */ r(
|
|
3033
3033
|
"span",
|
|
3034
3034
|
{
|
|
3035
|
-
className:
|
|
3035
|
+
className: v(Ue.separator, {
|
|
3036
3036
|
[Ue.hasLeftColor]: l
|
|
3037
3037
|
})
|
|
3038
3038
|
}
|
|
@@ -3042,7 +3042,7 @@ const yg = "_hasTriggerWithoutClick_4fnob_1", kg = "_hasLeftColor_4fnob_10", Eg
|
|
|
3042
3042
|
{
|
|
3043
3043
|
width: 8,
|
|
3044
3044
|
height: 8,
|
|
3045
|
-
className:
|
|
3045
|
+
className: v(Ue.chevron, {
|
|
3046
3046
|
[Ue.hover]: u
|
|
3047
3047
|
})
|
|
3048
3048
|
}
|
|
@@ -3096,7 +3096,7 @@ const zs = ({ children: n, ...e }) => /* @__PURE__ */ r(
|
|
|
3096
3096
|
$l,
|
|
3097
3097
|
{
|
|
3098
3098
|
asChild: !0,
|
|
3099
|
-
className:
|
|
3099
|
+
className: v(W.menuTrigger, {
|
|
3100
3100
|
[W.showActiveTrigger]: s
|
|
3101
3101
|
}),
|
|
3102
3102
|
disabled: i,
|
|
@@ -3106,7 +3106,7 @@ const zs = ({ children: n, ...e }) => /* @__PURE__ */ r(
|
|
|
3106
3106
|
l ? /* @__PURE__ */ r(br, { className: W.menuPortal, children: /* @__PURE__ */ r(zs, { asChild: !0, children: /* @__PURE__ */ r(
|
|
3107
3107
|
Br,
|
|
3108
3108
|
{
|
|
3109
|
-
className:
|
|
3109
|
+
className: v(W.menuContent, t),
|
|
3110
3110
|
size: a,
|
|
3111
3111
|
side: A.side,
|
|
3112
3112
|
align: A.align,
|
|
@@ -3136,7 +3136,7 @@ const zs = ({ children: n, ...e }) => /* @__PURE__ */ r(
|
|
|
3136
3136
|
) }) }) : /* @__PURE__ */ r(br, { className: W.menuPortal, children: /* @__PURE__ */ r(zs, { asChild: !0, children: /* @__PURE__ */ r(
|
|
3137
3137
|
Br,
|
|
3138
3138
|
{
|
|
3139
|
-
className:
|
|
3139
|
+
className: v(W.menuContent, t),
|
|
3140
3140
|
size: a,
|
|
3141
3141
|
side: A.side,
|
|
3142
3142
|
align: A.align,
|
|
@@ -3275,7 +3275,7 @@ function Dg({ initialScreen: n, animated: e, children: t }) {
|
|
|
3275
3275
|
}, [e]), k = N(
|
|
3276
3276
|
(T, D = {}) => p((z) => [...z, { name: T, params: D }], "forward"),
|
|
3277
3277
|
[p]
|
|
3278
|
-
),
|
|
3278
|
+
), f = N(
|
|
3279
3279
|
() => p((T) => T.length > 1 ? T.slice(0, -1) : T, "back"),
|
|
3280
3280
|
[p]
|
|
3281
3281
|
), m = N(
|
|
@@ -3285,15 +3285,15 @@ function Dg({ initialScreen: n, animated: e, children: t }) {
|
|
|
3285
3285
|
return D.slice(0, z + 1);
|
|
3286
3286
|
}, "back"),
|
|
3287
3287
|
[p]
|
|
3288
|
-
),
|
|
3288
|
+
), C = N(
|
|
3289
3289
|
(T) => p(() => [{ name: T || n, params: {} }]),
|
|
3290
3290
|
[p, n]
|
|
3291
|
-
), E = s.length > 1,
|
|
3292
|
-
() => ({ push: k, pop:
|
|
3293
|
-
[k,
|
|
3291
|
+
), E = s.length > 1, b = _(
|
|
3292
|
+
() => ({ push: k, pop: f, popTo: m, reset: C, canGoBack: E, stack: s }),
|
|
3293
|
+
[k, f, m, C, E, s]
|
|
3294
3294
|
), I = s[s.length - 1], S = A[I.name];
|
|
3295
3295
|
if (!S) return null;
|
|
3296
|
-
const
|
|
3296
|
+
const B = (T, D) => T in o ? o[T] : S[T] ?? D, w = S.component, Q = N(
|
|
3297
3297
|
(T) => {
|
|
3298
3298
|
u.current[u.current.length - 1].name === I.name && i((z) => ({ ...z, ...T }));
|
|
3299
3299
|
},
|
|
@@ -3302,16 +3302,16 @@ function Dg({ initialScreen: n, animated: e, children: t }) {
|
|
|
3302
3302
|
() => ({ name: I.name, params: I.params || {}, setOptions: Q }),
|
|
3303
3303
|
[I.name, I.params, Q]
|
|
3304
3304
|
);
|
|
3305
|
-
return /* @__PURE__ */ r(vi.Provider, { value:
|
|
3305
|
+
return /* @__PURE__ */ r(vi.Provider, { value: b, children: /* @__PURE__ */ g("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
|
|
3306
3306
|
/* @__PURE__ */ r(
|
|
3307
3307
|
yi,
|
|
3308
3308
|
{
|
|
3309
|
-
title:
|
|
3310
|
-
onBack: E ?
|
|
3311
|
-
headerLeft:
|
|
3312
|
-
headerRight:
|
|
3313
|
-
allowClose:
|
|
3314
|
-
onClose:
|
|
3309
|
+
title: B("title"),
|
|
3310
|
+
onBack: E ? f : void 0,
|
|
3311
|
+
headerLeft: B("headerLeft"),
|
|
3312
|
+
headerRight: B("headerRight"),
|
|
3313
|
+
allowClose: B("allowClose", !0),
|
|
3314
|
+
onClose: B("onClose")
|
|
3315
3315
|
}
|
|
3316
3316
|
),
|
|
3317
3317
|
/* @__PURE__ */ r(
|
|
@@ -3367,7 +3367,7 @@ const Jg = "_floatingBanner_uvpwv_1", Pg = "_white_uvpwv_12", Ug = "_error_uvpwv
|
|
|
3367
3367
|
return /* @__PURE__ */ g(
|
|
3368
3368
|
"div",
|
|
3369
3369
|
{
|
|
3370
|
-
className:
|
|
3370
|
+
className: v(Ne.floatingBanner, h, {
|
|
3371
3371
|
[Ne.white]: e === "white",
|
|
3372
3372
|
[Ne.error]: e === "error",
|
|
3373
3373
|
[Ne.warning]: e === "warning",
|
|
@@ -3378,7 +3378,7 @@ const Jg = "_floatingBanner_uvpwv_1", Pg = "_white_uvpwv_12", Ug = "_error_uvpwv
|
|
|
3378
3378
|
/* @__PURE__ */ g(
|
|
3379
3379
|
"div",
|
|
3380
3380
|
{
|
|
3381
|
-
className:
|
|
3381
|
+
className: v(Ne.container, {
|
|
3382
3382
|
[Ne.column]: l
|
|
3383
3383
|
}),
|
|
3384
3384
|
children: [
|
|
@@ -3386,7 +3386,7 @@ const Jg = "_floatingBanner_uvpwv_1", Pg = "_white_uvpwv_12", Ug = "_error_uvpwv
|
|
|
3386
3386
|
t && /* @__PURE__ */ r(
|
|
3387
3387
|
"p",
|
|
3388
3388
|
{
|
|
3389
|
-
className:
|
|
3389
|
+
className: v(Ne.title, {
|
|
3390
3390
|
[Ne.strong]: !!i
|
|
3391
3391
|
}),
|
|
3392
3392
|
children: t
|
|
@@ -3507,7 +3507,7 @@ const Zg = "_messageWithActionInfo_152jv_1", _g = "_messageWithAction_152jv_1",
|
|
|
3507
3507
|
{
|
|
3508
3508
|
size: "1",
|
|
3509
3509
|
color: n === "error" ? "red" : n === "warn" ? "yellow" : "gray",
|
|
3510
|
-
className:
|
|
3510
|
+
className: v(a, {
|
|
3511
3511
|
[Or.messageWithActionInfo]: !o,
|
|
3512
3512
|
[Or.messageWithAction]: o
|
|
3513
3513
|
}),
|
|
@@ -3556,7 +3556,7 @@ function at({
|
|
|
3556
3556
|
{
|
|
3557
3557
|
size: "2",
|
|
3558
3558
|
truncate: !0,
|
|
3559
|
-
className:
|
|
3559
|
+
className: v(_e.neutral12, _e.truncate, {
|
|
3560
3560
|
[_e.trucateWithInterval]: s
|
|
3561
3561
|
}),
|
|
3562
3562
|
children: n
|
|
@@ -3609,7 +3609,7 @@ const af = "_group_1wxsi_1", kn = {
|
|
|
3609
3609
|
},
|
|
3610
3610
|
u
|
|
3611
3611
|
) });
|
|
3612
|
-
return /* @__PURE__ */ g(y, { className:
|
|
3612
|
+
return /* @__PURE__ */ g(y, { className: v(n), style: s, gap: "3", children: [
|
|
3613
3613
|
o.length > 0 && o.map((c, u) => /* @__PURE__ */ r(
|
|
3614
3614
|
y,
|
|
3615
3615
|
{
|
|
@@ -3744,8 +3744,8 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
|
|
|
3744
3744
|
}, Ii = ({ onChangeValue: n, volume: e, disabled: t }) => {
|
|
3745
3745
|
const [s, a] = q(!1), o = ee(), i = ee(0), l = N((S) => {
|
|
3746
3746
|
if (S < 1e-3) return -1 / 0;
|
|
3747
|
-
const
|
|
3748
|
-
return
|
|
3747
|
+
const B = 20 * Math.log10(S);
|
|
3748
|
+
return B < -60 ? -60 : B;
|
|
3749
3749
|
}, []), c = N((S) => S === -1 / 0 || S <= -60 ? 0 : Math.pow(10, S / 20), []), u = _(() => {
|
|
3750
3750
|
const S = l(e);
|
|
3751
3751
|
return S === -1 / 0 ? -60 : Math.max(-60, Math.min(6, S));
|
|
@@ -3760,18 +3760,18 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
|
|
|
3760
3760
|
(S.key === "ArrowUp" || S.key === "ArrowDown") && A(), (S.key === "ArrowLeft" || S.key === "ArrowRight") && (S.preventDefault(), S.stopPropagation(), A());
|
|
3761
3761
|
},
|
|
3762
3762
|
[A]
|
|
3763
|
-
),
|
|
3763
|
+
), f = N(
|
|
3764
3764
|
(S) => {
|
|
3765
3765
|
n(S.map(c));
|
|
3766
3766
|
},
|
|
3767
3767
|
[n, c]
|
|
3768
3768
|
), m = N(() => {
|
|
3769
3769
|
A();
|
|
3770
|
-
}, [A]),
|
|
3770
|
+
}, [A]), C = N(() => {
|
|
3771
3771
|
p();
|
|
3772
3772
|
}, [p]), E = N(() => {
|
|
3773
3773
|
n([1]), A();
|
|
3774
|
-
}, [n, A]),
|
|
3774
|
+
}, [n, A]), b = N(() => {
|
|
3775
3775
|
const S = Date.now();
|
|
3776
3776
|
S - i.current < 300 && E(), i.current = S;
|
|
3777
3777
|
}, [E]), I = _(
|
|
@@ -3789,9 +3789,9 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
|
|
|
3789
3789
|
max: 6,
|
|
3790
3790
|
step: 0.1,
|
|
3791
3791
|
value: [h ? -60 : u],
|
|
3792
|
-
onValueChange:
|
|
3792
|
+
onValueChange: f,
|
|
3793
3793
|
onPointerDown: m,
|
|
3794
|
-
onPointerUp:
|
|
3794
|
+
onPointerUp: C,
|
|
3795
3795
|
disabled: t,
|
|
3796
3796
|
children: /* @__PURE__ */ g("div", { className: kt.sliderContainer, children: [
|
|
3797
3797
|
/* @__PURE__ */ r(ho, { className: kt.sliderTrack, children: /* @__PURE__ */ r(po, { className: kt.sliderRange }) }),
|
|
@@ -3802,8 +3802,8 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
|
|
|
3802
3802
|
className: kt.sliderThumb,
|
|
3803
3803
|
onPointerDown: m,
|
|
3804
3804
|
onKeyDown: k,
|
|
3805
|
-
onBlur:
|
|
3806
|
-
onClick:
|
|
3805
|
+
onBlur: C,
|
|
3806
|
+
onClick: b
|
|
3807
3807
|
}
|
|
3808
3808
|
) }),
|
|
3809
3809
|
/* @__PURE__ */ r(
|
|
@@ -3842,7 +3842,7 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
|
|
|
3842
3842
|
return /* @__PURE__ */ g(
|
|
3843
3843
|
$n,
|
|
3844
3844
|
{
|
|
3845
|
-
className:
|
|
3845
|
+
className: v(_t.RadioCardsRoot, c),
|
|
3846
3846
|
columns: a,
|
|
3847
3847
|
defaultValue: e,
|
|
3848
3848
|
value: h,
|
|
@@ -3850,7 +3850,7 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
|
|
|
3850
3850
|
...u,
|
|
3851
3851
|
children: [
|
|
3852
3852
|
n.map((p, k) => {
|
|
3853
|
-
const
|
|
3853
|
+
const f = p.Icon ?? p.icon, m = p.text ?? p.label ?? p.children;
|
|
3854
3854
|
return /* @__PURE__ */ r(
|
|
3855
3855
|
mn,
|
|
3856
3856
|
{
|
|
@@ -3858,7 +3858,7 @@ const VS = os, lf = "_sliderRoot_7wkh4_23", cf = "_sliderTrack_7wkh4_31", df = "
|
|
|
3858
3858
|
disabled: p.disabled || !1,
|
|
3859
3859
|
className: _t.RadioCardsItem,
|
|
3860
3860
|
children: /* @__PURE__ */ g(y, { align: "center", gap: "3", className: _t.RadioCardsContent, children: [
|
|
3861
|
-
|
|
3861
|
+
f && /* @__PURE__ */ r("span", { className: _t.icon, children: typeof f == "function" ? /* @__PURE__ */ r(f, {}) : f }),
|
|
3862
3862
|
m && /* @__PURE__ */ r(P, { as: "span", size: "2", weight: "regular", className: _t.text, children: m }),
|
|
3863
3863
|
p.children
|
|
3864
3864
|
] })
|
|
@@ -3991,10 +3991,10 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
3991
3991
|
if (I.preventDefault(), I.stopPropagation(), t) return;
|
|
3992
3992
|
const S = I.wheelDelta ?? -I.deltaY * 25;
|
|
3993
3993
|
if (!S || Math.abs(S) <= 50) return;
|
|
3994
|
-
const
|
|
3995
|
-
if (
|
|
3994
|
+
const B = Date.now();
|
|
3995
|
+
if (B - A.current < 100) return;
|
|
3996
3996
|
const w = S > 0 ? 1 : -1, Q = Wr(n, s, w);
|
|
3997
|
-
e(Q), A.current =
|
|
3997
|
+
e(Q), A.current = B;
|
|
3998
3998
|
},
|
|
3999
3999
|
[e, n, s, t]
|
|
4000
4000
|
), k = N(
|
|
@@ -4006,25 +4006,25 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
4006
4006
|
I.preventDefault(), c(!0), h(I.clientY);
|
|
4007
4007
|
},
|
|
4008
4008
|
[t]
|
|
4009
|
-
),
|
|
4009
|
+
), f = N(
|
|
4010
4010
|
(I) => {
|
|
4011
4011
|
if (!l || t) return;
|
|
4012
4012
|
const S = u - I.clientY;
|
|
4013
4013
|
if (Math.abs(S) <= 20) return;
|
|
4014
|
-
const
|
|
4014
|
+
const B = S > 0 ? 1 : -1, w = Wr(n, s, B);
|
|
4015
4015
|
e(w), h(I.clientY), A.current = Date.now();
|
|
4016
4016
|
},
|
|
4017
4017
|
[l, u, n, e, s, t]
|
|
4018
4018
|
), m = N(() => {
|
|
4019
4019
|
c(!1);
|
|
4020
|
-
}, []),
|
|
4020
|
+
}, []), C = N(() => {
|
|
4021
4021
|
c(!1);
|
|
4022
4022
|
}, []), E = N(
|
|
4023
4023
|
(I) => {
|
|
4024
4024
|
I.detail === 2 && !t && e(a);
|
|
4025
4025
|
},
|
|
4026
4026
|
[e, a, t]
|
|
4027
|
-
),
|
|
4027
|
+
), b = N(
|
|
4028
4028
|
(I) => {
|
|
4029
4029
|
if (!o || t) return;
|
|
4030
4030
|
const S = Bf(s, I);
|
|
@@ -4032,11 +4032,11 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
4032
4032
|
},
|
|
4033
4033
|
[o, t, e, s]
|
|
4034
4034
|
);
|
|
4035
|
-
return Ot("wheel", p, i), Ot("mousedown", k, i), Ot("mousemove",
|
|
4035
|
+
return Ot("wheel", p, i), Ot("mousedown", k, i), Ot("mousemove", f), Ot("mouseup", m), Ot("mouseleave", C), {
|
|
4036
4036
|
containerRef: i,
|
|
4037
4037
|
isDragging: l,
|
|
4038
4038
|
handleClick: E,
|
|
4039
|
-
handleDotClick:
|
|
4039
|
+
handleDotClick: b
|
|
4040
4040
|
};
|
|
4041
4041
|
}, xf = ({
|
|
4042
4042
|
className: n,
|
|
@@ -4056,22 +4056,22 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
4056
4056
|
dots: o || [],
|
|
4057
4057
|
defaultDot: c,
|
|
4058
4058
|
clickableDots: a
|
|
4059
|
-
}), k = _(() => typeof e == "object" && e !== null ? e.position : wf(e, o), [e, o]), { pointerRotation:
|
|
4060
|
-
const
|
|
4061
|
-
return s ?
|
|
4059
|
+
}), k = _(() => typeof e == "object" && e !== null ? e.position : wf(e, o), [e, o]), { pointerRotation: f, pointerColor: m } = _(() => Rf(k, s), [k, s]), C = (E) => {
|
|
4060
|
+
const b = jr[E.color] || jr.neutral, I = E.position === k, S = i === E.position && a;
|
|
4061
|
+
return s ? b.default : I ? b.active : S ? b.hover : b.default;
|
|
4062
4062
|
};
|
|
4063
4063
|
return /* @__PURE__ */ r(
|
|
4064
4064
|
"div",
|
|
4065
4065
|
{
|
|
4066
4066
|
ref: u,
|
|
4067
|
-
className:
|
|
4067
|
+
className: v(En.content, n),
|
|
4068
4068
|
"data-no-drag": "true",
|
|
4069
4069
|
onClick: A,
|
|
4070
4070
|
style: { cursor: s ? "default" : "ns-resize" },
|
|
4071
4071
|
children: /* @__PURE__ */ r(
|
|
4072
4072
|
"div",
|
|
4073
4073
|
{
|
|
4074
|
-
className:
|
|
4074
|
+
className: v(
|
|
4075
4075
|
En.pan,
|
|
4076
4076
|
h && En.active,
|
|
4077
4077
|
s && En.disabled
|
|
@@ -4091,7 +4091,7 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
4091
4091
|
/* @__PURE__ */ r(
|
|
4092
4092
|
"g",
|
|
4093
4093
|
{
|
|
4094
|
-
transform: `rotate(${
|
|
4094
|
+
transform: `rotate(${f} ${wn} ${Rn})`,
|
|
4095
4095
|
children: /* @__PURE__ */ r(
|
|
4096
4096
|
"path",
|
|
4097
4097
|
{
|
|
@@ -4104,15 +4104,15 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
4104
4104
|
}
|
|
4105
4105
|
),
|
|
4106
4106
|
o == null ? void 0 : o.map((E) => {
|
|
4107
|
-
const
|
|
4108
|
-
if (!
|
|
4109
|
-
const I =
|
|
4107
|
+
const b = Bi[E.position];
|
|
4108
|
+
if (!b) return null;
|
|
4109
|
+
const I = C(E), S = a && !s;
|
|
4110
4110
|
return /* @__PURE__ */ g(ge.Fragment, { children: [
|
|
4111
4111
|
S && /* @__PURE__ */ r(
|
|
4112
4112
|
"circle",
|
|
4113
4113
|
{
|
|
4114
|
-
cx:
|
|
4115
|
-
cy:
|
|
4114
|
+
cx: b.x,
|
|
4115
|
+
cy: b.y,
|
|
4116
4116
|
r: 4,
|
|
4117
4117
|
style: {
|
|
4118
4118
|
cursor: "pointer",
|
|
@@ -4120,16 +4120,16 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
4120
4120
|
},
|
|
4121
4121
|
onMouseEnter: () => l(E.position),
|
|
4122
4122
|
onMouseLeave: () => l(null),
|
|
4123
|
-
onClick: (
|
|
4124
|
-
|
|
4123
|
+
onClick: (B) => {
|
|
4124
|
+
B.stopPropagation(), p(E.position);
|
|
4125
4125
|
}
|
|
4126
4126
|
}
|
|
4127
4127
|
),
|
|
4128
4128
|
/* @__PURE__ */ r(
|
|
4129
4129
|
"circle",
|
|
4130
4130
|
{
|
|
4131
|
-
cx:
|
|
4132
|
-
cy:
|
|
4131
|
+
cx: b.x,
|
|
4132
|
+
cy: b.y,
|
|
4133
4133
|
r: 1,
|
|
4134
4134
|
fill: I,
|
|
4135
4135
|
style: {
|
|
@@ -4143,8 +4143,8 @@ const wn = 19.5, Rn = 19.5, Fr = 14, Hr = 18, bf = [
|
|
|
4143
4143
|
onMouseLeave: () => {
|
|
4144
4144
|
S && l(null);
|
|
4145
4145
|
},
|
|
4146
|
-
onClick: (
|
|
4147
|
-
S && (
|
|
4146
|
+
onClick: (B) => {
|
|
4147
|
+
S && (B.stopPropagation(), p(E.position));
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
4150
|
)
|
|
@@ -4340,20 +4340,20 @@ const wi = ({
|
|
|
4340
4340
|
...i
|
|
4341
4341
|
}) => {
|
|
4342
4342
|
const l = _(() => Object.keys(Os), []), c = _(() => Object.keys(Ms), []), { color: u, graphic: h } = _(() => {
|
|
4343
|
-
let
|
|
4343
|
+
let f = n, m = e;
|
|
4344
4344
|
if (a) {
|
|
4345
|
-
const
|
|
4346
|
-
|
|
4345
|
+
const C = Pv(a);
|
|
4346
|
+
f = f || C.color, m = m || C.graphic;
|
|
4347
4347
|
}
|
|
4348
|
-
if (!
|
|
4349
|
-
const
|
|
4350
|
-
|
|
4348
|
+
if (!f) {
|
|
4349
|
+
const C = Math.floor(Math.random() * l.length);
|
|
4350
|
+
f = l[C];
|
|
4351
4351
|
}
|
|
4352
4352
|
if (!m) {
|
|
4353
|
-
const
|
|
4354
|
-
m = c[
|
|
4353
|
+
const C = Math.floor(Math.random() * c.length);
|
|
4354
|
+
m = c[C];
|
|
4355
4355
|
}
|
|
4356
|
-
return { color:
|
|
4356
|
+
return { color: f, graphic: m };
|
|
4357
4357
|
}, [n, e, a, l, c]), A = Os[u], p = Ms[h], k = _(
|
|
4358
4358
|
() => ({
|
|
4359
4359
|
background: A.gradient,
|
|
@@ -4366,7 +4366,7 @@ const wi = ({
|
|
|
4366
4366
|
{
|
|
4367
4367
|
width: t + "px",
|
|
4368
4368
|
height: s + "px",
|
|
4369
|
-
className:
|
|
4369
|
+
className: v(o),
|
|
4370
4370
|
style: k,
|
|
4371
4371
|
...i,
|
|
4372
4372
|
children: /* @__PURE__ */ r("img", { src: p, alt: h, width: t, height: s })
|
|
@@ -4389,18 +4389,18 @@ const Uv = ({
|
|
|
4389
4389
|
size: A = "1",
|
|
4390
4390
|
...p
|
|
4391
4391
|
}) => {
|
|
4392
|
-
const k = (o == null ? void 0 : o.id) || a,
|
|
4392
|
+
const k = (o == null ? void 0 : o.id) || a, f = (o == null ? void 0 : o.name) || t, m = (o == null ? void 0 : o.description) || s, C = (o == null ? void 0 : o.image) || e, E = (o == null ? void 0 : o.icon) || l, b = C && (C != null && C.startsWith("url(")) ? C == null ? void 0 : C.substring(4, (C == null ? void 0 : C.length) - 1).replace(/"/g, "") : C, I = (Q) => {
|
|
4393
4393
|
Q.stopPropagation(), Q.preventDefault(), h == null || h();
|
|
4394
4394
|
}, S = {
|
|
4395
4395
|
1: { avatar: 60, icon: 15 },
|
|
4396
4396
|
2: { avatar: 68, icon: 15 },
|
|
4397
4397
|
3: { avatar: 80, icon: 15 }
|
|
4398
|
-
},
|
|
4398
|
+
}, B = typeof A == "string" ? parseInt(A, 10) : A, w = S[B] || S[1];
|
|
4399
4399
|
return /* @__PURE__ */ r(
|
|
4400
4400
|
mn,
|
|
4401
4401
|
{
|
|
4402
4402
|
value: k,
|
|
4403
|
-
className:
|
|
4403
|
+
className: v(
|
|
4404
4404
|
n,
|
|
4405
4405
|
$.listCardsItem,
|
|
4406
4406
|
$[`listCardsItemSize${A}`]
|
|
@@ -4414,7 +4414,7 @@ const Uv = ({
|
|
|
4414
4414
|
wi,
|
|
4415
4415
|
{
|
|
4416
4416
|
id: k,
|
|
4417
|
-
className:
|
|
4417
|
+
className: v(
|
|
4418
4418
|
$.listCardsAvatar,
|
|
4419
4419
|
$[`listCardsAvatarSize${A}`]
|
|
4420
4420
|
),
|
|
@@ -4424,7 +4424,7 @@ const Uv = ({
|
|
|
4424
4424
|
) : c ? /* @__PURE__ */ r(
|
|
4425
4425
|
"div",
|
|
4426
4426
|
{
|
|
4427
|
-
className:
|
|
4427
|
+
className: v(
|
|
4428
4428
|
$.listCardsAvatarIcon,
|
|
4429
4429
|
$[`listCardsAvatarIconSize${A}`]
|
|
4430
4430
|
),
|
|
@@ -4433,7 +4433,7 @@ const Uv = ({
|
|
|
4433
4433
|
) : E ? /* @__PURE__ */ r(
|
|
4434
4434
|
"div",
|
|
4435
4435
|
{
|
|
4436
|
-
className:
|
|
4436
|
+
className: v(
|
|
4437
4437
|
$.listCardsAvatarIcon,
|
|
4438
4438
|
$[`listCardsAvatarIconSize${A}`]
|
|
4439
4439
|
),
|
|
@@ -4442,15 +4442,15 @@ const Uv = ({
|
|
|
4442
4442
|
) : /* @__PURE__ */ r(
|
|
4443
4443
|
We,
|
|
4444
4444
|
{
|
|
4445
|
-
src:
|
|
4446
|
-
className:
|
|
4445
|
+
src: b,
|
|
4446
|
+
className: v(
|
|
4447
4447
|
$.listCardsAvatar,
|
|
4448
4448
|
$[`listCardsAvatarSize${A}`]
|
|
4449
4449
|
)
|
|
4450
4450
|
}
|
|
4451
4451
|
) }),
|
|
4452
4452
|
/* @__PURE__ */ g(y, { direction: "column", justify: "center", gap: "1", children: [
|
|
4453
|
-
/* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children:
|
|
4453
|
+
/* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children: f }),
|
|
4454
4454
|
/* @__PURE__ */ r(
|
|
4455
4455
|
P,
|
|
4456
4456
|
{
|
|
@@ -4479,13 +4479,13 @@ const Uv = ({
|
|
|
4479
4479
|
children: A,
|
|
4480
4480
|
...p
|
|
4481
4481
|
}) => {
|
|
4482
|
-
const k = (a == null ? void 0 : a.id) || s,
|
|
4482
|
+
const k = (a == null ? void 0 : a.id) || s, f = (a == null ? void 0 : a.name) || t, m = (a == null ? void 0 : a.avatar) || e, C = m && (m != null && m.startsWith("url(")) ? m == null ? void 0 : m.substring(4, (m == null ? void 0 : m.length) - 1).replace(/"/g, "") : m;
|
|
4483
4483
|
return /* @__PURE__ */ g("div", { className: $.cardWrapper, children: [
|
|
4484
4484
|
/* @__PURE__ */ r(
|
|
4485
4485
|
mn,
|
|
4486
4486
|
{
|
|
4487
4487
|
value: k,
|
|
4488
|
-
className:
|
|
4488
|
+
className: v(n, $.listCardsItem),
|
|
4489
4489
|
style: {
|
|
4490
4490
|
"--color-surface": "transparent",
|
|
4491
4491
|
width: "100%",
|
|
@@ -4503,9 +4503,9 @@ const Uv = ({
|
|
|
4503
4503
|
overflow: "hidden"
|
|
4504
4504
|
},
|
|
4505
4505
|
children: [
|
|
4506
|
-
!c && /* @__PURE__ */ r(We, { src:
|
|
4506
|
+
!c && /* @__PURE__ */ r(We, { src: C, className: $.listCardsAvatar }),
|
|
4507
4507
|
/* @__PURE__ */ g(y, { direction: "column", justify: "center", children: [
|
|
4508
|
-
/* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children:
|
|
4508
|
+
/* @__PURE__ */ r(P, { as: "div", size: "2", className: $.listCardsItemText, children: f }),
|
|
4509
4509
|
/* @__PURE__ */ r(
|
|
4510
4510
|
y,
|
|
4511
4511
|
{
|
|
@@ -4534,7 +4534,7 @@ const Uv = ({
|
|
|
4534
4534
|
onClick: c ? (E) => {
|
|
4535
4535
|
E.stopPropagation(), E.preventDefault(), c(E);
|
|
4536
4536
|
} : void 0,
|
|
4537
|
-
children: u ? /* @__PURE__ */ r("div", { className: $.avatarContent, children: u }) : /* @__PURE__ */ r(We, { src:
|
|
4537
|
+
children: u ? /* @__PURE__ */ r("div", { className: $.avatarContent, children: u }) : /* @__PURE__ */ r(We, { src: C, className: $.listCardsAvatar })
|
|
4538
4538
|
}
|
|
4539
4539
|
) }),
|
|
4540
4540
|
/* @__PURE__ */ r("div", { className: $.cardActions, children: /* @__PURE__ */ g(
|
|
@@ -4549,7 +4549,7 @@ const Uv = ({
|
|
|
4549
4549
|
i && /* @__PURE__ */ r(
|
|
4550
4550
|
"div",
|
|
4551
4551
|
{
|
|
4552
|
-
className:
|
|
4552
|
+
className: v(
|
|
4553
4553
|
$.favoriteButton,
|
|
4554
4554
|
$.seeDetailsButton
|
|
4555
4555
|
),
|
|
@@ -4562,7 +4562,7 @@ const Uv = ({
|
|
|
4562
4562
|
l && /* @__PURE__ */ r(
|
|
4563
4563
|
"div",
|
|
4564
4564
|
{
|
|
4565
|
-
className:
|
|
4565
|
+
className: v(
|
|
4566
4566
|
$.buttonGhost,
|
|
4567
4567
|
$.seeDetailsButton
|
|
4568
4568
|
),
|
|
@@ -4683,8 +4683,8 @@ const qS = ({
|
|
|
4683
4683
|
placeholder: A = "Select options...",
|
|
4684
4684
|
...p
|
|
4685
4685
|
}) => {
|
|
4686
|
-
const k = (
|
|
4687
|
-
t && t(
|
|
4686
|
+
const k = (f) => {
|
|
4687
|
+
t && t(f);
|
|
4688
4688
|
};
|
|
4689
4689
|
return /* @__PURE__ */ g(he, { width: "100%", children: [
|
|
4690
4690
|
e && /* @__PURE__ */ g(y, { mb: "2", align: "center", gap: "2", children: [
|
|
@@ -4694,7 +4694,7 @@ const qS = ({
|
|
|
4694
4694
|
/* @__PURE__ */ r(y, { direction: "column", maxWidth: h, children: /* @__PURE__ */ g(
|
|
4695
4695
|
hr,
|
|
4696
4696
|
{
|
|
4697
|
-
className:
|
|
4697
|
+
className: v(n),
|
|
4698
4698
|
disabled: l || c,
|
|
4699
4699
|
...p,
|
|
4700
4700
|
children: [
|
|
@@ -4705,25 +4705,25 @@ const qS = ({
|
|
|
4705
4705
|
color: "gray",
|
|
4706
4706
|
size: o,
|
|
4707
4707
|
placeholder: A,
|
|
4708
|
-
className:
|
|
4708
|
+
className: v($e.selectTrigger, {
|
|
4709
4709
|
[$e.ghost]: i === "ghost",
|
|
4710
4710
|
[$e.soft]: i === "soft"
|
|
4711
4711
|
}),
|
|
4712
4712
|
children: A
|
|
4713
4713
|
}
|
|
4714
4714
|
),
|
|
4715
|
-
/* @__PURE__ */ r(mr, { position: "popper", style: { height: u }, children: /* @__PURE__ */ r(gr, { children: s.map((
|
|
4715
|
+
/* @__PURE__ */ r(mr, { position: "popper", style: { height: u }, children: /* @__PURE__ */ r(gr, { children: s.map((f) => /* @__PURE__ */ g(
|
|
4716
4716
|
y,
|
|
4717
4717
|
{
|
|
4718
4718
|
align: "center",
|
|
4719
4719
|
gap: "2",
|
|
4720
4720
|
p: "2",
|
|
4721
|
-
className:
|
|
4721
|
+
className: v($e.selectItem, {
|
|
4722
4722
|
[$e.hideIndicator]: !0,
|
|
4723
4723
|
[$e.size1]: o === "1",
|
|
4724
4724
|
[$e.size2]: o === "2"
|
|
4725
4725
|
}),
|
|
4726
|
-
onClick: () => k(
|
|
4726
|
+
onClick: () => k(f.value),
|
|
4727
4727
|
style: {
|
|
4728
4728
|
cursor: l || c ? "not-allowed" : "pointer",
|
|
4729
4729
|
width: "100%"
|
|
@@ -4733,13 +4733,13 @@ const qS = ({
|
|
|
4733
4733
|
ns,
|
|
4734
4734
|
{
|
|
4735
4735
|
disabled: l || c,
|
|
4736
|
-
checked:
|
|
4736
|
+
checked: f.isActived || !1,
|
|
4737
4737
|
size: o
|
|
4738
4738
|
}
|
|
4739
4739
|
),
|
|
4740
4740
|
/* @__PURE__ */ g(y, { align: "center", gap: "1", style: { flex: 1 }, children: [
|
|
4741
|
-
/* @__PURE__ */ r(P, { size: o, style: { color: "var(--neutral-12)" }, children:
|
|
4742
|
-
|
|
4741
|
+
/* @__PURE__ */ r(P, { size: o, style: { color: "var(--neutral-12)" }, children: f.label }),
|
|
4742
|
+
f.aiDetected && /* @__PURE__ */ r(
|
|
4743
4743
|
P,
|
|
4744
4744
|
{
|
|
4745
4745
|
size: "1",
|
|
@@ -4750,7 +4750,7 @@ const qS = ({
|
|
|
4750
4750
|
children: "✦"
|
|
4751
4751
|
}
|
|
4752
4752
|
),
|
|
4753
|
-
|
|
4753
|
+
f.extra && /* @__PURE__ */ g(
|
|
4754
4754
|
P,
|
|
4755
4755
|
{
|
|
4756
4756
|
size: o,
|
|
@@ -4760,14 +4760,14 @@ const qS = ({
|
|
|
4760
4760
|
},
|
|
4761
4761
|
children: [
|
|
4762
4762
|
" ",
|
|
4763
|
-
|
|
4763
|
+
f.extra
|
|
4764
4764
|
]
|
|
4765
4765
|
}
|
|
4766
4766
|
)
|
|
4767
4767
|
] })
|
|
4768
4768
|
]
|
|
4769
4769
|
},
|
|
4770
|
-
|
|
4770
|
+
f.value
|
|
4771
4771
|
)) }) })
|
|
4772
4772
|
]
|
|
4773
4773
|
}
|
|
@@ -4790,7 +4790,7 @@ const qv = "_customCard_1klw4_2", Kv = "_selected_1klw4_18", Gv = "_disabled_1kl
|
|
|
4790
4790
|
cr,
|
|
4791
4791
|
{
|
|
4792
4792
|
onClick: l ? void 0 : o,
|
|
4793
|
-
className:
|
|
4793
|
+
className: v(Ft.customCard, {
|
|
4794
4794
|
[Ft.selected]: i,
|
|
4795
4795
|
[Ft.disabled]: l
|
|
4796
4796
|
}),
|
|
@@ -4835,7 +4835,7 @@ const qv = "_customCard_1klw4_2", Kv = "_selected_1klw4_18", Gv = "_disabled_1kl
|
|
|
4835
4835
|
}) => /* @__PURE__ */ r(Qt, { height: "100%", width: "100%", scrollbars: "vertical", children: /* @__PURE__ */ r(
|
|
4836
4836
|
he,
|
|
4837
4837
|
{
|
|
4838
|
-
className:
|
|
4838
|
+
className: v(Ft.gridContainer, s),
|
|
4839
4839
|
pr: "3",
|
|
4840
4840
|
...o,
|
|
4841
4841
|
children: n.map((i) => /* @__PURE__ */ r(
|
|
@@ -4867,7 +4867,7 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
|
|
|
4867
4867
|
minValue: a = -0.65,
|
|
4868
4868
|
maxValue: o = 0.65
|
|
4869
4869
|
}) => {
|
|
4870
|
-
const i = ee(null), [l, c] = q(!1), u = ee(), [h, A] = q(!1), p = ee(null), k = ee(0),
|
|
4870
|
+
const i = ee(null), [l, c] = q(!1), u = ee(), [h, A] = q(!1), p = ee(null), k = ee(0), f = ee(e), m = ee(0), C = N(() => {
|
|
4871
4871
|
clearTimeout(u.current), c(!0);
|
|
4872
4872
|
}, []), E = N(() => {
|
|
4873
4873
|
h || (u.current = setTimeout(() => c(!1), 300));
|
|
@@ -4875,17 +4875,17 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
|
|
|
4875
4875
|
de(() => {
|
|
4876
4876
|
if (h) {
|
|
4877
4877
|
const U = document.createElement("style");
|
|
4878
|
-
U.textContent = "* { cursor: ns-resize !important; }", document.head.appendChild(U), p.current = U,
|
|
4878
|
+
U.textContent = "* { cursor: ns-resize !important; }", document.head.appendChild(U), p.current = U, C();
|
|
4879
4879
|
} else
|
|
4880
4880
|
p.current && (document.head.removeChild(p.current), p.current = null), E();
|
|
4881
4881
|
return () => {
|
|
4882
4882
|
p.current && (document.head.removeChild(p.current), p.current = null), E(), m.current && cancelAnimationFrame(m.current);
|
|
4883
4883
|
};
|
|
4884
|
-
}, [h,
|
|
4885
|
-
const
|
|
4884
|
+
}, [h, C, E]);
|
|
4885
|
+
const b = N(
|
|
4886
4886
|
(U) => {
|
|
4887
|
-
|
|
4888
|
-
m.current = 0, t(
|
|
4887
|
+
f.current = Lr(U), !m.current && (m.current = requestAnimationFrame(() => {
|
|
4888
|
+
m.current = 0, t(f.current);
|
|
4889
4889
|
}));
|
|
4890
4890
|
},
|
|
4891
4891
|
[t]
|
|
@@ -4895,9 +4895,9 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
|
|
|
4895
4895
|
const J = U.wheelDelta ?? -U.deltaY * 25;
|
|
4896
4896
|
if (!J) return;
|
|
4897
4897
|
const x = e + (J > 0 ? ms : -ms);
|
|
4898
|
-
|
|
4898
|
+
b(x);
|
|
4899
4899
|
},
|
|
4900
|
-
[e,
|
|
4900
|
+
[e, b]
|
|
4901
4901
|
);
|
|
4902
4902
|
Ot("wheel", I, i);
|
|
4903
4903
|
const S = N(
|
|
@@ -4909,21 +4909,21 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
|
|
|
4909
4909
|
(x = J.setPointerCapture) == null || x.call(J, U.pointerId), A(!0), k.current = U.clientY;
|
|
4910
4910
|
},
|
|
4911
4911
|
[s]
|
|
4912
|
-
),
|
|
4912
|
+
), B = N(
|
|
4913
4913
|
(U) => {
|
|
4914
4914
|
if (!h) return;
|
|
4915
4915
|
const J = k.current - U.clientY, x = e + J * ms;
|
|
4916
|
-
|
|
4916
|
+
b(x), k.current = U.clientY;
|
|
4917
4917
|
},
|
|
4918
|
-
[h, e,
|
|
4918
|
+
[h, e, b]
|
|
4919
4919
|
), w = N((U) => {
|
|
4920
4920
|
var J, x;
|
|
4921
4921
|
(x = (J = U.currentTarget) == null ? void 0 : J.releasePointerCapture) == null || x.call(J, U.pointerId), A(!1);
|
|
4922
4922
|
}, []), Q = N(
|
|
4923
4923
|
(U) => {
|
|
4924
|
-
U.detail === 2 &&
|
|
4924
|
+
U.detail === 2 && b(0);
|
|
4925
4925
|
},
|
|
4926
|
-
[
|
|
4926
|
+
[b]
|
|
4927
4927
|
), { arcPath: O, pointerRotation: T, arcColor: D, pointerColor: z } = _(() => {
|
|
4928
4928
|
const U = Vr(e, a, o), J = Lr(U), x = ps + J * Math.PI, L = $t + Et * Math.cos(ps), G = en + Et * Math.sin(ps), Z = $t + Et * Math.cos(x), R = en + Et * Math.sin(x), H = 0, ae = J > 0 ? 1 : 0;
|
|
4929
4929
|
return {
|
|
@@ -4942,7 +4942,7 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
|
|
|
4942
4942
|
"div",
|
|
4943
4943
|
{
|
|
4944
4944
|
ref: i,
|
|
4945
|
-
className:
|
|
4945
|
+
className: v(Dt.content, n),
|
|
4946
4946
|
"data-no-drag": "true",
|
|
4947
4947
|
onClick: Q,
|
|
4948
4948
|
style: { cursor: s ? "default" : "ns-resize" },
|
|
@@ -4950,13 +4950,13 @@ const $v = "_content_15nbm_1", eC = "_pan_15nbm_13", tC = "_disabled_15nbm_26",
|
|
|
4950
4950
|
/* @__PURE__ */ r(On, { asChild: !0, children: /* @__PURE__ */ r(
|
|
4951
4951
|
"div",
|
|
4952
4952
|
{
|
|
4953
|
-
className:
|
|
4953
|
+
className: v(
|
|
4954
4954
|
Dt.pan,
|
|
4955
4955
|
h && Dt.active,
|
|
4956
4956
|
s && Dt.disabled
|
|
4957
4957
|
),
|
|
4958
4958
|
onPointerDown: S,
|
|
4959
|
-
onPointerMove:
|
|
4959
|
+
onPointerMove: B,
|
|
4960
4960
|
onPointerUp: w,
|
|
4961
4961
|
onPointerCancel: w,
|
|
4962
4962
|
children: /* @__PURE__ */ g("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", children: [
|
|
@@ -5039,7 +5039,7 @@ const aC = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEAkACQAAD/2wBDAAEBAQEBAQEBA
|
|
|
5039
5039
|
width: e,
|
|
5040
5040
|
height: e,
|
|
5041
5041
|
draggable: !1,
|
|
5042
|
-
className:
|
|
5042
|
+
className: v(n),
|
|
5043
5043
|
...a
|
|
5044
5044
|
}
|
|
5045
5045
|
);
|
|
@@ -5073,7 +5073,7 @@ const dC = "_navItem_6drgg_1", uC = "_navItemIcon_6drgg_12", AC = "_navItemConte
|
|
|
5073
5073
|
py: "2",
|
|
5074
5074
|
role: "button",
|
|
5075
5075
|
tabIndex: 0,
|
|
5076
|
-
className:
|
|
5076
|
+
className: v(et.navItem, {
|
|
5077
5077
|
[et.navItemSelected]: c,
|
|
5078
5078
|
[et.collapsed]: s
|
|
5079
5079
|
}),
|
|
@@ -5086,7 +5086,7 @@ const dC = "_navItem_6drgg_1", uC = "_navItemIcon_6drgg_12", AC = "_navItemConte
|
|
|
5086
5086
|
/* @__PURE__ */ g(
|
|
5087
5087
|
"div",
|
|
5088
5088
|
{
|
|
5089
|
-
className:
|
|
5089
|
+
className: v(et.navItemContent, {
|
|
5090
5090
|
[et.navItemContentCollapsed]: s
|
|
5091
5091
|
}),
|
|
5092
5092
|
children: [
|
|
@@ -5141,7 +5141,7 @@ function NC({ className: n, user: e, collapsed: t, ...s }) {
|
|
|
5141
5141
|
onMouseLeave: () => {
|
|
5142
5142
|
o(!1);
|
|
5143
5143
|
},
|
|
5144
|
-
className:
|
|
5144
|
+
className: v(Ke.userProfile, { [Ke.collapsed]: t }, n),
|
|
5145
5145
|
align: "center",
|
|
5146
5146
|
justify: t ? "center" : "between",
|
|
5147
5147
|
...s,
|
|
@@ -5181,7 +5181,7 @@ const xC = ({
|
|
|
5181
5181
|
return /* @__PURE__ */ r(
|
|
5182
5182
|
gn,
|
|
5183
5183
|
{
|
|
5184
|
-
className:
|
|
5184
|
+
className: v(Ke.profileMenu, n),
|
|
5185
5185
|
trigger: /* @__PURE__ */ r(NC, { user: e, collapsed: s }),
|
|
5186
5186
|
options: t,
|
|
5187
5187
|
side: i ? "top" : "right",
|
|
@@ -5248,6 +5248,7 @@ const xC = ({
|
|
|
5248
5248
|
return /* @__PURE__ */ r(Ac, { width: 16, height: 16 });
|
|
5249
5249
|
}
|
|
5250
5250
|
}, xi = hn({
|
|
5251
|
+
projects: [],
|
|
5251
5252
|
onClickTrack: null,
|
|
5252
5253
|
onInsertAllTracks: null,
|
|
5253
5254
|
onProjectClick: null,
|
|
@@ -5266,6 +5267,7 @@ const xC = ({
|
|
|
5266
5267
|
xi.Provider,
|
|
5267
5268
|
{
|
|
5268
5269
|
value: {
|
|
5270
|
+
projects: e,
|
|
5269
5271
|
onClickTrack: t,
|
|
5270
5272
|
onInsertAllTracks: s,
|
|
5271
5273
|
onProjectClick: a,
|
|
@@ -5284,21 +5286,21 @@ const xC = ({
|
|
|
5284
5286
|
tracks: o = [],
|
|
5285
5287
|
...i
|
|
5286
5288
|
}) => {
|
|
5287
|
-
const {
|
|
5288
|
-
|
|
5289
|
-
const
|
|
5290
|
-
|
|
5291
|
-
}, [n,
|
|
5292
|
-
|
|
5293
|
-
}, [
|
|
5289
|
+
const { projects: l, onClickTrack: c, onInsertAllTracks: u, onProjectClick: h, openedItem: A, setOpenedItem: p } = Wt(xi), [k, f] = q(!1), m = N(() => {
|
|
5290
|
+
f(!1);
|
|
5291
|
+
const E = l.find((b) => b.id === n);
|
|
5292
|
+
A === n ? (p(null), h == null || h(E, !1)) : (p(n), h == null || h(E, !0));
|
|
5293
|
+
}, [n, A, p, h, l]), C = N((E) => {
|
|
5294
|
+
E.preventDefault(), E.stopPropagation(), f(!k);
|
|
5295
|
+
}, [k]);
|
|
5294
5296
|
return /* @__PURE__ */ g(
|
|
5295
5297
|
y,
|
|
5296
5298
|
{
|
|
5297
5299
|
direction: "column",
|
|
5298
5300
|
gap: "2",
|
|
5299
5301
|
p: "1",
|
|
5300
|
-
className: `${Oe.item} ${
|
|
5301
|
-
onClick:
|
|
5302
|
+
className: `${Oe.item} ${A === n ? Oe.opened : ""}`,
|
|
5303
|
+
onClick: m,
|
|
5302
5304
|
...i,
|
|
5303
5305
|
children: [
|
|
5304
5306
|
/* @__PURE__ */ g(y, { direction: "row", gap: "3", children: [
|
|
@@ -5308,30 +5310,30 @@ const xC = ({
|
|
|
5308
5310
|
t && /* @__PURE__ */ r(P, { size: "1", className: Oe.projectArtist, children: t })
|
|
5309
5311
|
] })
|
|
5310
5312
|
] }),
|
|
5311
|
-
|
|
5313
|
+
A === n && /* @__PURE__ */ g(y, { direction: "column", children: [
|
|
5312
5314
|
o.length === 0 && /* @__PURE__ */ g(y, { direction: "row", gap: "3", p: "5", pt: "2", align: "center", justify: "center", children: [
|
|
5313
5315
|
/* @__PURE__ */ r(yc, { width: 16, height: 16, style: { color: "var(--neutral-alpha-10)" } }),
|
|
5314
5316
|
/* @__PURE__ */ r(P, { size: "2", style: { color: "var(--neutral-alpha-10)" }, children: "This file has no tracks" })
|
|
5315
5317
|
] }),
|
|
5316
5318
|
o.length > 0 && /* @__PURE__ */ g(y, { direction: "column", gap: "1", children: [
|
|
5317
|
-
o.slice(0,
|
|
5319
|
+
o.slice(0, k ? o.length : 6).map((E) => /* @__PURE__ */ g(
|
|
5318
5320
|
y,
|
|
5319
5321
|
{
|
|
5320
5322
|
direction: "row",
|
|
5321
5323
|
gap: "3",
|
|
5322
5324
|
className: Oe.itemTrack,
|
|
5323
|
-
onClick: (
|
|
5324
|
-
|
|
5325
|
+
onClick: (b) => {
|
|
5326
|
+
b.stopPropagation(), c == null || c(E);
|
|
5325
5327
|
},
|
|
5326
5328
|
children: [
|
|
5327
5329
|
/* @__PURE__ */ g("div", { className: Oe.icon, children: [
|
|
5328
|
-
/* @__PURE__ */ r(y, { className: Oe.iconTrack, children: HC(
|
|
5330
|
+
/* @__PURE__ */ r(y, { className: Oe.iconTrack, children: HC(E.id) }),
|
|
5329
5331
|
/* @__PURE__ */ r(Is, { width: 16, height: 16, className: Oe.iconArrowLeft })
|
|
5330
5332
|
] }),
|
|
5331
|
-
/* @__PURE__ */ r(y, { direction: "column", gap: "1", align: "start", justify: "center", children: /* @__PURE__ */ r(P, { size: "2", className: Oe.trackTitle, children:
|
|
5333
|
+
/* @__PURE__ */ r(y, { direction: "column", gap: "1", align: "start", justify: "center", children: /* @__PURE__ */ r(P, { size: "2", className: Oe.trackTitle, children: E.title }) })
|
|
5332
5334
|
]
|
|
5333
5335
|
},
|
|
5334
|
-
|
|
5336
|
+
E.id
|
|
5335
5337
|
)),
|
|
5336
5338
|
/* @__PURE__ */ g(y, { direction: "row", gap: "3", p: "2", align: "center", justify: "center", children: [
|
|
5337
5339
|
/* @__PURE__ */ g(
|
|
@@ -5340,8 +5342,8 @@ const xC = ({
|
|
|
5340
5342
|
variant: "ghost",
|
|
5341
5343
|
color: "neutral",
|
|
5342
5344
|
style: { flex: "1" },
|
|
5343
|
-
onClick: (
|
|
5344
|
-
|
|
5345
|
+
onClick: (E) => {
|
|
5346
|
+
E.stopPropagation(), u == null || u(o);
|
|
5345
5347
|
},
|
|
5346
5348
|
children: [
|
|
5347
5349
|
/* @__PURE__ */ r(Is, { width: 16, height: 16 }),
|
|
@@ -5351,9 +5353,9 @@ const xC = ({
|
|
|
5351
5353
|
),
|
|
5352
5354
|
o.length > 6 && /* @__PURE__ */ g(pe, { children: [
|
|
5353
5355
|
/* @__PURE__ */ r(Ge, { orientation: "vertical" }),
|
|
5354
|
-
/* @__PURE__ */ g(ke, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick:
|
|
5355
|
-
|
|
5356
|
-
|
|
5356
|
+
/* @__PURE__ */ g(ke, { variant: "ghost", color: "gray", style: { flex: "1" }, onClick: C, children: [
|
|
5357
|
+
k ? "Show less" : "Show more",
|
|
5358
|
+
k ? /* @__PURE__ */ r(kc, { width: 16, height: 16 }) : /* @__PURE__ */ r(fa, { width: 16, height: 16 })
|
|
5357
5359
|
] })
|
|
5358
5360
|
] })
|
|
5359
5361
|
] })
|
|
@@ -5380,7 +5382,7 @@ const LC = "_RadioCardsGroup_95mfr_1", VC = "_RadioCardsGroupItem_95mfr_5", qC =
|
|
|
5380
5382
|
}) => /* @__PURE__ */ r(
|
|
5381
5383
|
$n,
|
|
5382
5384
|
{
|
|
5383
|
-
className:
|
|
5385
|
+
className: v(tn.RadioCardsGroup, n, {
|
|
5384
5386
|
[tn.showRadio]: t
|
|
5385
5387
|
}),
|
|
5386
5388
|
columns: a,
|
|
@@ -5419,36 +5421,36 @@ const YC = "_starButton_azi6g_1", ZC = "_disabled_azi6g_17", _C = "_readOnly_azi
|
|
|
5419
5421
|
maxLabel: h,
|
|
5420
5422
|
...A
|
|
5421
5423
|
}) => {
|
|
5422
|
-
const [p, k] = q(t || 0), [
|
|
5424
|
+
const [p, k] = q(t || 0), [f, m] = q(0), C = e !== void 0 ? e : p, E = e !== void 0, b = N(
|
|
5423
5425
|
(w) => {
|
|
5424
5426
|
if (s || a) return;
|
|
5425
|
-
const Q = w + 1, O = Q ===
|
|
5427
|
+
const Q = w + 1, O = Q === C ? 0 : Q;
|
|
5426
5428
|
E || k(O), o == null || o({ value: O });
|
|
5427
5429
|
},
|
|
5428
|
-
[s, a, E, o,
|
|
5430
|
+
[s, a, E, o, C]
|
|
5429
5431
|
), I = N(
|
|
5430
5432
|
(w) => {
|
|
5431
5433
|
if (s || a) return;
|
|
5432
5434
|
const Q = w.currentTarget.getBoundingClientRect(), O = w.clientX - Q.left, T = Q.width / n, D = Math.floor(O / T), M = Math.max(0, Math.min(D, n - 1)) + 1;
|
|
5433
|
-
M !==
|
|
5435
|
+
M !== f && (m(M), i == null || i({ value: M }));
|
|
5434
5436
|
},
|
|
5435
|
-
[s, a, n,
|
|
5437
|
+
[s, a, n, f, i]
|
|
5436
5438
|
), S = N(() => {
|
|
5437
5439
|
s || a || (m(0), i == null || i({ value: 0 }));
|
|
5438
|
-
}, [s, a, i]),
|
|
5439
|
-
const Q =
|
|
5440
|
+
}, [s, a, i]), B = (w) => {
|
|
5441
|
+
const Q = f > 0 ? w < f : w < C, O = f > 0 && w < f, T = w < C;
|
|
5440
5442
|
return /* @__PURE__ */ r(
|
|
5441
5443
|
"button",
|
|
5442
5444
|
{
|
|
5443
5445
|
type: "button",
|
|
5444
|
-
className:
|
|
5446
|
+
className: v(De.starButton, {
|
|
5445
5447
|
[De.filled]: Q,
|
|
5446
5448
|
[De.hovered]: O,
|
|
5447
5449
|
[De.active]: T,
|
|
5448
5450
|
[De.disabled]: s,
|
|
5449
5451
|
[De.readOnly]: a
|
|
5450
5452
|
}),
|
|
5451
|
-
onClick: () =>
|
|
5453
|
+
onClick: () => b(w),
|
|
5452
5454
|
disabled: s || a,
|
|
5453
5455
|
"aria-label": `Rate ${w + 1} out of ${n}`,
|
|
5454
5456
|
...A,
|
|
@@ -5464,7 +5466,7 @@ const YC = "_starButton_azi6g_1", ZC = "_disabled_azi6g_17", _C = "_readOnly_azi
|
|
|
5464
5466
|
align: "center",
|
|
5465
5467
|
gap: "2",
|
|
5466
5468
|
width: "100%",
|
|
5467
|
-
className:
|
|
5469
|
+
className: v(l),
|
|
5468
5470
|
children: [
|
|
5469
5471
|
c && /* @__PURE__ */ r(P, { size: "2", weight: "medium", className: De.label, children: c }),
|
|
5470
5472
|
/* @__PURE__ */ g(y, { direction: "column", gap: "1", width: "100%", children: [
|
|
@@ -5477,10 +5479,10 @@ const YC = "_starButton_azi6g_1", ZC = "_disabled_azi6g_17", _C = "_readOnly_azi
|
|
|
5477
5479
|
justify: "center",
|
|
5478
5480
|
className: De.starsContainer,
|
|
5479
5481
|
role: "radiogroup",
|
|
5480
|
-
"aria-label": `Rating: ${
|
|
5482
|
+
"aria-label": `Rating: ${C} out of ${n} stars`,
|
|
5481
5483
|
onMouseMove: I,
|
|
5482
5484
|
onMouseLeave: S,
|
|
5483
|
-
children: Array.from({ length: n }, (w, Q) =>
|
|
5485
|
+
children: Array.from({ length: n }, (w, Q) => B(Q))
|
|
5484
5486
|
}
|
|
5485
5487
|
),
|
|
5486
5488
|
(u || h) && /* @__PURE__ */ g(
|
|
@@ -5520,7 +5522,7 @@ const l1 = "_select_egrq6_1", c1 = "_levelMeter_egrq6_5", d1 = "_levelMeterTrack
|
|
|
5520
5522
|
P,
|
|
5521
5523
|
{
|
|
5522
5524
|
size: a ? void 0 : n,
|
|
5523
|
-
className:
|
|
5525
|
+
className: v(e, a && v1.textSize0),
|
|
5524
5526
|
...s,
|
|
5525
5527
|
children: t
|
|
5526
5528
|
}
|
|
@@ -5551,7 +5553,7 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
|
|
|
5551
5553
|
showSelectIndicator: A = !0,
|
|
5552
5554
|
maxWidth: p = "100%",
|
|
5553
5555
|
placeholder: k = null,
|
|
5554
|
-
...
|
|
5556
|
+
...f
|
|
5555
5557
|
}) => /* @__PURE__ */ g(he, { width: "100%", children: [
|
|
5556
5558
|
e && /* @__PURE__ */ g(y, { mb: "2", align: "center", gap: "2", children: [
|
|
5557
5559
|
/* @__PURE__ */ r(P, { size: "1", weight: "bold", children: e }),
|
|
@@ -5562,9 +5564,9 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
|
|
|
5562
5564
|
{
|
|
5563
5565
|
onValueChange: t,
|
|
5564
5566
|
defaultValue: s,
|
|
5565
|
-
className:
|
|
5567
|
+
className: v(n),
|
|
5566
5568
|
disabled: c || u,
|
|
5567
|
-
...
|
|
5569
|
+
...f,
|
|
5568
5570
|
children: [
|
|
5569
5571
|
/* @__PURE__ */ r(
|
|
5570
5572
|
pr,
|
|
@@ -5572,7 +5574,7 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
|
|
|
5572
5574
|
variant: l,
|
|
5573
5575
|
color: "gray",
|
|
5574
5576
|
size: i,
|
|
5575
|
-
className:
|
|
5577
|
+
className: v(qe.selectTrigger, {
|
|
5576
5578
|
[qe.ghost]: l === "ghost",
|
|
5577
5579
|
[qe.soft]: l === "soft"
|
|
5578
5580
|
}),
|
|
@@ -5608,7 +5610,7 @@ const C1 = "_selectContent_183an_2", y1 = "_selectTrigger_183an_68", k1 = "_soft
|
|
|
5608
5610
|
oi,
|
|
5609
5611
|
{
|
|
5610
5612
|
value: m.value,
|
|
5611
|
-
className:
|
|
5613
|
+
className: v(qe.selectItem, {
|
|
5612
5614
|
[qe.hideIndicator]: !A,
|
|
5613
5615
|
[qe.size1]: i === "1",
|
|
5614
5616
|
[qe.size2]: i === "2"
|
|
@@ -5686,9 +5688,9 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
|
|
|
5686
5688
|
disabled: A = !1,
|
|
5687
5689
|
highContrast: p = !1,
|
|
5688
5690
|
markers: k = [],
|
|
5689
|
-
...
|
|
5691
|
+
...f
|
|
5690
5692
|
}) => {
|
|
5691
|
-
const m = (
|
|
5693
|
+
const m = (C) => (C - l) / (c - l) * 100;
|
|
5692
5694
|
return /* @__PURE__ */ g(he, { width: "100%", children: [
|
|
5693
5695
|
e && /* @__PURE__ */ g(y, { mb: "2", justify: "between", align: "center", children: [
|
|
5694
5696
|
/* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
|
|
@@ -5715,12 +5717,12 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
|
|
|
5715
5717
|
onValueChange: t,
|
|
5716
5718
|
disabled: A,
|
|
5717
5719
|
className: n,
|
|
5718
|
-
...
|
|
5720
|
+
...f,
|
|
5719
5721
|
children: /* @__PURE__ */ g(y, { className: Ce.sliderContainer, children: [
|
|
5720
5722
|
/* @__PURE__ */ g(
|
|
5721
5723
|
ho,
|
|
5722
5724
|
{
|
|
5723
|
-
className:
|
|
5725
|
+
className: v(Ce.sliderTrack, {
|
|
5724
5726
|
[Ce.sliderTrackSize1]: h === "1",
|
|
5725
5727
|
[Ce.sliderTrackSize2]: h === "2",
|
|
5726
5728
|
[Ce.sliderTrackSize3]: h === "3"
|
|
@@ -5729,7 +5731,7 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
|
|
|
5729
5731
|
/* @__PURE__ */ r(
|
|
5730
5732
|
po,
|
|
5731
5733
|
{
|
|
5732
|
-
className:
|
|
5734
|
+
className: v(Ce.sliderRange, {
|
|
5733
5735
|
[Ce.sliderRangeAccent]: s === "accent",
|
|
5734
5736
|
[Ce.sliderRangeNeutral]: s === "neutral",
|
|
5735
5737
|
[Ce.sliderRangeHighContrastNeutral]: p && s === "neutral",
|
|
@@ -5740,7 +5742,7 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
|
|
|
5740
5742
|
/* @__PURE__ */ r(
|
|
5741
5743
|
mo,
|
|
5742
5744
|
{
|
|
5743
|
-
className:
|
|
5745
|
+
className: v(Ce.sliderThumb, {
|
|
5744
5746
|
[Ce.sliderThumbSize1]: h === "1",
|
|
5745
5747
|
[Ce.sliderThumbSize2]: h === "2",
|
|
5746
5748
|
[Ce.sliderThumbSize3]: h === "3"
|
|
@@ -5750,14 +5752,14 @@ const w1 = "_sliderTrack_bq3k4_29", R1 = "_sliderTrackSize1_bq3k4_40", N1 = "_sl
|
|
|
5750
5752
|
]
|
|
5751
5753
|
}
|
|
5752
5754
|
),
|
|
5753
|
-
k.length > 0 && /* @__PURE__ */ r("div", { className: Ce.markersContainer, children: k.map((
|
|
5755
|
+
k.length > 0 && /* @__PURE__ */ r("div", { className: Ce.markersContainer, children: k.map((C, E) => /* @__PURE__ */ r(
|
|
5754
5756
|
"div",
|
|
5755
5757
|
{
|
|
5756
|
-
className:
|
|
5758
|
+
className: v(Ce.marker, {
|
|
5757
5759
|
[Ce.markerSize3]: h === "3"
|
|
5758
5760
|
}),
|
|
5759
5761
|
style: {
|
|
5760
|
-
left: `${m(
|
|
5762
|
+
left: `${m(C)}%`
|
|
5761
5763
|
}
|
|
5762
5764
|
},
|
|
5763
5765
|
E
|
|
@@ -5783,7 +5785,7 @@ const L1 = ({
|
|
|
5783
5785
|
inputVolume: A,
|
|
5784
5786
|
onInputVolumeChange: p,
|
|
5785
5787
|
inputVolumeDb: k,
|
|
5786
|
-
inputLevel:
|
|
5788
|
+
inputLevel: f
|
|
5787
5789
|
}) => /* @__PURE__ */ g(y, { direction: "column", gap: "4", width: "200px", children: [
|
|
5788
5790
|
/* @__PURE__ */ g(y, { gap: "1", direction: "column", children: [
|
|
5789
5791
|
/* @__PURE__ */ r(j, { size: "2", mb: "1", weight: "medium", children: n._("Source") }),
|
|
@@ -5814,15 +5816,15 @@ const L1 = ({
|
|
|
5814
5816
|
] }),
|
|
5815
5817
|
/* @__PURE__ */ g(y, { gap: "2", direction: "column", children: [
|
|
5816
5818
|
/* @__PURE__ */ r(j, { size: "2", weight: "medium", children: n._("Input Level") }),
|
|
5817
|
-
/* @__PURE__ */ r("div", { className: tt.levelMeter, children: /* @__PURE__ */ r("div", { className: tt.levelMeterTrack, children: /* @__PURE__ */ r("div", { className: tt.levelMeterRow, children: Array.from({ length: 17 }, (m,
|
|
5818
|
-
const E = Math.max(0, (
|
|
5819
|
+
/* @__PURE__ */ r("div", { className: tt.levelMeter, children: /* @__PURE__ */ r("div", { className: tt.levelMeterTrack, children: /* @__PURE__ */ r("div", { className: tt.levelMeterRow, children: Array.from({ length: 17 }, (m, C) => {
|
|
5820
|
+
const E = Math.max(0, (f - 5) / 25) * 17, b = C < E;
|
|
5819
5821
|
let I = "low";
|
|
5820
|
-
return
|
|
5822
|
+
return C >= 15 ? I = "high" : C >= 11 && (I = "mid"), /* @__PURE__ */ r(
|
|
5821
5823
|
"div",
|
|
5822
5824
|
{
|
|
5823
|
-
className: `${tt.levelMeterSegment} ${
|
|
5825
|
+
className: `${tt.levelMeterSegment} ${b ? `${tt.active} ${tt[I]}` : ""}`
|
|
5824
5826
|
},
|
|
5825
|
-
`level-${
|
|
5827
|
+
`level-${C}`
|
|
5826
5828
|
);
|
|
5827
5829
|
}) }) }) })
|
|
5828
5830
|
] }),
|
|
@@ -5903,7 +5905,7 @@ const V1 = "_sectionExpander_t40ea_1", q1 = "_sectionExpanderHeader_t40ea_6", K1
|
|
|
5903
5905
|
{
|
|
5904
5906
|
width: "100%",
|
|
5905
5907
|
direction: "column",
|
|
5906
|
-
className:
|
|
5908
|
+
className: v(Jt.sectionExpander, t),
|
|
5907
5909
|
...s,
|
|
5908
5910
|
children: [
|
|
5909
5911
|
/* @__PURE__ */ g(
|
|
@@ -5928,7 +5930,7 @@ const V1 = "_sectionExpander_t40ea_1", q1 = "_sectionExpanderHeader_t40ea_6", K1
|
|
|
5928
5930
|
/* @__PURE__ */ r(
|
|
5929
5931
|
Ic,
|
|
5930
5932
|
{
|
|
5931
|
-
className:
|
|
5933
|
+
className: v(Jt.sectionExpanderIcon, {
|
|
5932
5934
|
[Jt.expanded]: a
|
|
5933
5935
|
}),
|
|
5934
5936
|
width: 16,
|
|
@@ -5962,7 +5964,7 @@ const Un = ({
|
|
|
5962
5964
|
onValueChange: s,
|
|
5963
5965
|
variant: "surface",
|
|
5964
5966
|
radius: "medium",
|
|
5965
|
-
className:
|
|
5967
|
+
className: v("customSegmentedControl", n, {
|
|
5966
5968
|
hasIconSegmentedControl: a.some((l) => l.icon)
|
|
5967
5969
|
}),
|
|
5968
5970
|
...i,
|
|
@@ -5970,7 +5972,7 @@ const Un = ({
|
|
|
5970
5972
|
ai,
|
|
5971
5973
|
{
|
|
5972
5974
|
value: l.value,
|
|
5973
|
-
className:
|
|
5975
|
+
className: v("customSegmentedControlItem", {
|
|
5974
5976
|
hasIcon: l.icon
|
|
5975
5977
|
}),
|
|
5976
5978
|
children: [
|
|
@@ -6054,7 +6056,7 @@ const _1 = "_tooltipTriggerWrapper_1hj63_1", $1 = "_newSetlistItem_1hj63_6", ey
|
|
|
6054
6056
|
/* @__PURE__ */ r(pa, { children: /* @__PURE__ */ r(zs, { asChild: !0, children: /* @__PURE__ */ g(
|
|
6055
6057
|
Fn,
|
|
6056
6058
|
{
|
|
6057
|
-
className:
|
|
6059
|
+
className: v(
|
|
6058
6060
|
Pt.TooltipContent,
|
|
6059
6061
|
Pt[`TooltipContent--${s}`]
|
|
6060
6062
|
),
|
|
@@ -6062,7 +6064,7 @@ const _1 = "_tooltipTriggerWrapper_1hj63_1", $1 = "_newSetlistItem_1hj63_6", ey
|
|
|
6062
6064
|
...A,
|
|
6063
6065
|
children: [
|
|
6064
6066
|
/* @__PURE__ */ r(j, { size: "1", className: Pt.TooltipText, children: e }),
|
|
6065
|
-
t && /* @__PURE__ */ r(j, { size: "0", className:
|
|
6067
|
+
t && /* @__PURE__ */ r(j, { size: "0", className: v(
|
|
6066
6068
|
Pt.TooltipShortcut,
|
|
6067
6069
|
Pt[`TooltipShortcut--${s}`]
|
|
6068
6070
|
), children: t }),
|
|
@@ -6079,7 +6081,7 @@ function Jy({ onExpand: n, className: e, style: t, collapsed: s = !1 }) {
|
|
|
6079
6081
|
"button",
|
|
6080
6082
|
{
|
|
6081
6083
|
type: "button",
|
|
6082
|
-
className:
|
|
6084
|
+
className: v(
|
|
6083
6085
|
K.newSetlistItem,
|
|
6084
6086
|
K.collapsedStackItem,
|
|
6085
6087
|
K.collapsedTransition,
|
|
@@ -6107,11 +6109,11 @@ function Py({ onClick: n, className: e, collapsed: t = !1 }) {
|
|
|
6107
6109
|
{
|
|
6108
6110
|
width: 16,
|
|
6109
6111
|
height: 16,
|
|
6110
|
-
className:
|
|
6112
|
+
className: v(K.iconSwapLayer, K.iconVisible, K.plusIcon)
|
|
6111
6113
|
}
|
|
6112
6114
|
) }),
|
|
6113
6115
|
text: "New Setlist",
|
|
6114
|
-
className:
|
|
6116
|
+
className: v(K.newSetlistItemButton, K.collapsedTransition, e),
|
|
6115
6117
|
collapsed: t
|
|
6116
6118
|
}
|
|
6117
6119
|
);
|
|
@@ -6162,11 +6164,11 @@ const Qi = ({
|
|
|
6162
6164
|
collapsed: p = !1,
|
|
6163
6165
|
isMobile: k = !1
|
|
6164
6166
|
}) => {
|
|
6165
|
-
const [
|
|
6167
|
+
const [f, m] = q(!1), C = () => {
|
|
6166
6168
|
m(!0);
|
|
6167
6169
|
}, E = () => {
|
|
6168
6170
|
m(!1);
|
|
6169
|
-
},
|
|
6171
|
+
}, b = (S) => {
|
|
6170
6172
|
S.stopPropagation();
|
|
6171
6173
|
}, I = (S) => {
|
|
6172
6174
|
S.stopPropagation();
|
|
@@ -6179,12 +6181,12 @@ const Qi = ({
|
|
|
6179
6181
|
role: e ? "button" : void 0,
|
|
6180
6182
|
tabIndex: e ? 0 : void 0,
|
|
6181
6183
|
onClick: e,
|
|
6182
|
-
className:
|
|
6184
|
+
className: v(K.newSetlistItem, t, {
|
|
6183
6185
|
[K.navItemSelected]: n,
|
|
6184
6186
|
[K.collapsed]: p,
|
|
6185
6187
|
[K.menuOpen]: c
|
|
6186
6188
|
}),
|
|
6187
|
-
onMouseEnter:
|
|
6189
|
+
onMouseEnter: C,
|
|
6188
6190
|
onMouseLeave: E,
|
|
6189
6191
|
onKeyDown: e ? (S) => {
|
|
6190
6192
|
(S.key === "Enter" || S.key === " ") && (S.preventDefault(), e == null || e());
|
|
@@ -6196,7 +6198,7 @@ const Qi = ({
|
|
|
6196
6198
|
{
|
|
6197
6199
|
gap: "3",
|
|
6198
6200
|
align: "center",
|
|
6199
|
-
className:
|
|
6201
|
+
className: v(K.contentInner, {
|
|
6200
6202
|
[K.collapsedInner]: p
|
|
6201
6203
|
}),
|
|
6202
6204
|
children: [
|
|
@@ -6213,7 +6215,7 @@ const Qi = ({
|
|
|
6213
6215
|
y,
|
|
6214
6216
|
{
|
|
6215
6217
|
direction: "column",
|
|
6216
|
-
className:
|
|
6218
|
+
className: v(K.textWrapper, {
|
|
6217
6219
|
[K.textWrapperHidden]: p
|
|
6218
6220
|
}),
|
|
6219
6221
|
children: [
|
|
@@ -6243,7 +6245,7 @@ const Qi = ({
|
|
|
6243
6245
|
]
|
|
6244
6246
|
}
|
|
6245
6247
|
),
|
|
6246
|
-
l && !p && (
|
|
6248
|
+
l && !p && (f || c) && /* @__PURE__ */ r(
|
|
6247
6249
|
gn,
|
|
6248
6250
|
{
|
|
6249
6251
|
open: c,
|
|
@@ -6251,10 +6253,10 @@ const Qi = ({
|
|
|
6251
6253
|
trigger: /* @__PURE__ */ r(
|
|
6252
6254
|
y,
|
|
6253
6255
|
{
|
|
6254
|
-
className:
|
|
6256
|
+
className: v(K.dropdownTriggerWrapper, {
|
|
6255
6257
|
[K.dropdownTriggerWrapperMobile]: k
|
|
6256
6258
|
}),
|
|
6257
|
-
onPointerDown:
|
|
6259
|
+
onPointerDown: b,
|
|
6258
6260
|
onClick: I,
|
|
6259
6261
|
children: /* @__PURE__ */ r(ss, { hovered: c })
|
|
6260
6262
|
}
|
|
@@ -6277,27 +6279,27 @@ const Qi = ({
|
|
|
6277
6279
|
t == null || t(x), l && i();
|
|
6278
6280
|
}, A = () => {
|
|
6279
6281
|
s == null || s(), l && i();
|
|
6280
|
-
}, [p, k] = q(!1), [
|
|
6281
|
-
a && (
|
|
6282
|
+
}, [p, k] = q(!1), [f, m] = q(!1), C = ee(null), E = ee(null), b = ee(null), I = 260, S = 4, B = a && s ? 1 : 0, w = a && !p, Q = w ? n.slice(0, S) : n, O = 2750, T = () => {
|
|
6283
|
+
a && (C.current && (clearTimeout(C.current), C.current = null), E.current && (clearTimeout(E.current), E.current = null), m(!1));
|
|
6282
6284
|
}, D = () => {
|
|
6283
|
-
a && p && (
|
|
6284
|
-
|
|
6285
|
+
a && p && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
|
|
6286
|
+
C.current = null, m(!0), E.current = setTimeout(() => {
|
|
6285
6287
|
E.current = null, k(!1), m(!1);
|
|
6286
6288
|
}, I);
|
|
6287
6289
|
}, O));
|
|
6288
6290
|
}, z = (x) => {
|
|
6289
|
-
a && (x.stopPropagation(),
|
|
6291
|
+
a && (x.stopPropagation(), C.current && (clearTimeout(C.current), C.current = null), m(!1), k(!0));
|
|
6290
6292
|
}, M = () => {
|
|
6291
6293
|
a && k(!0);
|
|
6292
6294
|
}, U = () => {
|
|
6293
6295
|
if (!a) return;
|
|
6294
|
-
const x =
|
|
6296
|
+
const x = b.current;
|
|
6295
6297
|
x && setTimeout(() => {
|
|
6296
6298
|
x.contains(document.activeElement) || k(!1);
|
|
6297
6299
|
}, 0);
|
|
6298
6300
|
};
|
|
6299
6301
|
de(() => () => {
|
|
6300
|
-
|
|
6302
|
+
C.current && clearTimeout(C.current), E.current && clearTimeout(E.current);
|
|
6301
6303
|
}, []);
|
|
6302
6304
|
const J = (x) => {
|
|
6303
6305
|
if (!a) return;
|
|
@@ -6307,7 +6309,7 @@ const Qi = ({
|
|
|
6307
6309
|
marginTop: 0,
|
|
6308
6310
|
zIndex: "auto"
|
|
6309
6311
|
};
|
|
6310
|
-
const L = x +
|
|
6312
|
+
const L = x + B, G = n.length + B - L;
|
|
6311
6313
|
return {
|
|
6312
6314
|
position: "relative",
|
|
6313
6315
|
marginTop: L === 0 ? 0 : -40,
|
|
@@ -6326,13 +6328,13 @@ const Qi = ({
|
|
|
6326
6328
|
type: "scroll",
|
|
6327
6329
|
scrollbars: "vertical",
|
|
6328
6330
|
style: { flex: 1, minHeight: 0 },
|
|
6329
|
-
className:
|
|
6331
|
+
className: v({
|
|
6330
6332
|
[K.setlistsScrollArea]: a
|
|
6331
6333
|
}),
|
|
6332
6334
|
children: /* @__PURE__ */ r(
|
|
6333
6335
|
"div",
|
|
6334
6336
|
{
|
|
6335
|
-
ref:
|
|
6337
|
+
ref: b,
|
|
6336
6338
|
className: K.hoverRegion,
|
|
6337
6339
|
onMouseEnter: T,
|
|
6338
6340
|
onMouseLeave: D,
|
|
@@ -6342,10 +6344,10 @@ const Qi = ({
|
|
|
6342
6344
|
y,
|
|
6343
6345
|
{
|
|
6344
6346
|
direction: "column",
|
|
6345
|
-
className:
|
|
6347
|
+
className: v(K.setlistsContent, {
|
|
6346
6348
|
[K.collapsedStack]: w,
|
|
6347
6349
|
[K.collapsedMask]: a,
|
|
6348
|
-
[K.collapsedShrinking]:
|
|
6350
|
+
[K.collapsedShrinking]: f
|
|
6349
6351
|
}),
|
|
6350
6352
|
children: [
|
|
6351
6353
|
s && (w ? /* @__PURE__ */ r(
|
|
@@ -6386,7 +6388,7 @@ const Qi = ({
|
|
|
6386
6388
|
dropdownMenuOptions: x.dropdownMenuOptions,
|
|
6387
6389
|
collapsed: a,
|
|
6388
6390
|
isMobile: o,
|
|
6389
|
-
className:
|
|
6391
|
+
className: v({
|
|
6390
6392
|
[K.collapsedStackItem]: w,
|
|
6391
6393
|
[K.collapsedTransition]: a
|
|
6392
6394
|
}),
|
|
@@ -6454,17 +6456,17 @@ const Qi = ({
|
|
|
6454
6456
|
}) => {
|
|
6455
6457
|
const { isMobile: i, isOpen: l, open: c, close: u } = Ti(), [h, A] = q(!1), p = i ? !1 : t, k = () => {
|
|
6456
6458
|
i || (A(!1), s((E) => !E));
|
|
6457
|
-
},
|
|
6459
|
+
}, f = () => {
|
|
6458
6460
|
i || A(!0);
|
|
6459
6461
|
}, m = () => {
|
|
6460
6462
|
i || A(!1);
|
|
6461
|
-
},
|
|
6463
|
+
}, C = (E) => {
|
|
6462
6464
|
p ? k() : a && a(E);
|
|
6463
6465
|
};
|
|
6464
6466
|
return /* @__PURE__ */ r(Lh, { value: { close: u, isMobile: i }, children: /* @__PURE__ */ g(
|
|
6465
6467
|
"div",
|
|
6466
6468
|
{
|
|
6467
|
-
className:
|
|
6469
|
+
className: v(oe.root, {
|
|
6468
6470
|
[oe.rootCollapsed]: p
|
|
6469
6471
|
}),
|
|
6470
6472
|
...o,
|
|
@@ -6474,7 +6476,7 @@ const Qi = ({
|
|
|
6474
6476
|
{
|
|
6475
6477
|
align: "center",
|
|
6476
6478
|
justify: "between",
|
|
6477
|
-
className:
|
|
6479
|
+
className: v(oe.mobileTopBar, {
|
|
6478
6480
|
[oe.mobileTopBarOpen]: i && l
|
|
6479
6481
|
}),
|
|
6480
6482
|
children: [
|
|
@@ -6509,14 +6511,14 @@ const Qi = ({
|
|
|
6509
6511
|
/* @__PURE__ */ r(
|
|
6510
6512
|
"div",
|
|
6511
6513
|
{
|
|
6512
|
-
className:
|
|
6514
|
+
className: v(oe.mobileDrawer, {
|
|
6513
6515
|
[oe.mobileDrawerOpen]: i && l
|
|
6514
6516
|
}),
|
|
6515
6517
|
children: /* @__PURE__ */ r(
|
|
6516
6518
|
y,
|
|
6517
6519
|
{
|
|
6518
6520
|
direction: "column",
|
|
6519
|
-
className:
|
|
6521
|
+
className: v(oe.mobileDrawerContent, {
|
|
6520
6522
|
[oe.mobileDrawerContentOpen]: i && l
|
|
6521
6523
|
}),
|
|
6522
6524
|
children: e
|
|
@@ -6529,7 +6531,7 @@ const Qi = ({
|
|
|
6529
6531
|
{
|
|
6530
6532
|
direction: "column",
|
|
6531
6533
|
className: oe.desktopSidebar,
|
|
6532
|
-
onMouseEnter:
|
|
6534
|
+
onMouseEnter: f,
|
|
6533
6535
|
onMouseLeave: m,
|
|
6534
6536
|
children: [
|
|
6535
6537
|
/* @__PURE__ */ g(
|
|
@@ -6537,7 +6539,7 @@ const Qi = ({
|
|
|
6537
6539
|
{
|
|
6538
6540
|
align: "center",
|
|
6539
6541
|
justify: "between",
|
|
6540
|
-
className:
|
|
6542
|
+
className: v(oe.header, {
|
|
6541
6543
|
[oe.headerCollapsed]: p
|
|
6542
6544
|
}),
|
|
6543
6545
|
children: [
|
|
@@ -6546,13 +6548,13 @@ const Qi = ({
|
|
|
6546
6548
|
{
|
|
6547
6549
|
align: "center",
|
|
6548
6550
|
gap: "2",
|
|
6549
|
-
onClick:
|
|
6551
|
+
onClick: C,
|
|
6550
6552
|
style: { cursor: "pointer" },
|
|
6551
6553
|
children: [
|
|
6552
6554
|
/* @__PURE__ */ g(
|
|
6553
6555
|
"div",
|
|
6554
6556
|
{
|
|
6555
|
-
className:
|
|
6557
|
+
className: v(oe.logoToggleContainer, {
|
|
6556
6558
|
[oe.logoToggleContainerCollapsed]: p
|
|
6557
6559
|
}),
|
|
6558
6560
|
children: [
|
|
@@ -6561,7 +6563,7 @@ const Qi = ({
|
|
|
6561
6563
|
{
|
|
6562
6564
|
width: 32,
|
|
6563
6565
|
height: 17,
|
|
6564
|
-
className:
|
|
6566
|
+
className: v(oe.logoInContainer, {
|
|
6565
6567
|
[oe.logoInContainerHidden]: p && h
|
|
6566
6568
|
})
|
|
6567
6569
|
}
|
|
@@ -6571,7 +6573,7 @@ const Qi = ({
|
|
|
6571
6573
|
{
|
|
6572
6574
|
width: 16,
|
|
6573
6575
|
height: 16,
|
|
6574
|
-
className:
|
|
6576
|
+
className: v(oe.toggleInContainer, {
|
|
6575
6577
|
[oe.toggleInContainerVisible]: p && h
|
|
6576
6578
|
})
|
|
6577
6579
|
}
|
|
@@ -6583,7 +6585,7 @@ const Qi = ({
|
|
|
6583
6585
|
Rr,
|
|
6584
6586
|
{
|
|
6585
6587
|
height: 12.269,
|
|
6586
|
-
className:
|
|
6588
|
+
className: v(oe.moisesIcon, {
|
|
6587
6589
|
[oe.moisesIconHidden]: p
|
|
6588
6590
|
})
|
|
6589
6591
|
}
|
|
@@ -6597,7 +6599,7 @@ const Qi = ({
|
|
|
6597
6599
|
align: "center",
|
|
6598
6600
|
justify: "center",
|
|
6599
6601
|
onClick: k,
|
|
6600
|
-
className:
|
|
6602
|
+
className: v(oe.toggleButton, {
|
|
6601
6603
|
[oe.toggleButtonHidden]: p
|
|
6602
6604
|
}),
|
|
6603
6605
|
children: /* @__PURE__ */ r(Nr, { width: 16, height: 16 })
|
|
@@ -6639,7 +6641,7 @@ const lk = "_sectionTitle_bwlze_1", ck = "_separator_bwlze_17", qr = {
|
|
|
6639
6641
|
onNewSetlistClick: h,
|
|
6640
6642
|
children: A
|
|
6641
6643
|
}) => {
|
|
6642
|
-
const [p, k] = q(!1), { isMobile:
|
|
6644
|
+
const [p, k] = q(!1), { isMobile: f } = Ti(), m = f ? !1 : p;
|
|
6643
6645
|
return /* @__PURE__ */ g(pe, { children: [
|
|
6644
6646
|
/* @__PURE__ */ g(Di, { isCollapsed: p, onCollapsedChange: k, children: [
|
|
6645
6647
|
/* @__PURE__ */ g(y, { direction: "column", children: [
|
|
@@ -6669,7 +6671,7 @@ const lk = "_sectionTitle_bwlze_1", ck = "_separator_bwlze_17", qr = {
|
|
|
6669
6671
|
onSetlistClick: u,
|
|
6670
6672
|
onNewSetlistClick: h,
|
|
6671
6673
|
collapsed: m,
|
|
6672
|
-
isMobile:
|
|
6674
|
+
isMobile: f
|
|
6673
6675
|
}
|
|
6674
6676
|
)
|
|
6675
6677
|
]
|
|
@@ -6742,7 +6744,7 @@ const lk = "_sectionTitle_bwlze_1", ck = "_separator_bwlze_17", qr = {
|
|
|
6742
6744
|
onChange: e,
|
|
6743
6745
|
placeholder: t,
|
|
6744
6746
|
disabled: c,
|
|
6745
|
-
className:
|
|
6747
|
+
className: v(St.textArea, o, {
|
|
6746
6748
|
[St.variantClassic]: i === "classic",
|
|
6747
6749
|
[St.variantSoft]: i === "soft",
|
|
6748
6750
|
[St.disabled]: c,
|
|
@@ -6833,13 +6835,13 @@ const In = (n) => {
|
|
|
6833
6835
|
onFetchSuggestedTags: h,
|
|
6834
6836
|
suggestedTagsLoading: A
|
|
6835
6837
|
}) => {
|
|
6836
|
-
const p = ee(null), k = ee(null), [
|
|
6837
|
-
const w =
|
|
6838
|
+
const p = ee(null), k = ee(null), [f, m] = q(!1), C = N((B) => {
|
|
6839
|
+
const w = B.target, Q = w.scrollLeft + w.clientWidth >= w.scrollWidth - 2;
|
|
6838
6840
|
m(Q);
|
|
6839
|
-
}, []), E = !!i || !!c,
|
|
6840
|
-
(
|
|
6841
|
+
}, []), E = !!i || !!c, b = N(
|
|
6842
|
+
(B) => {
|
|
6841
6843
|
if (E) return;
|
|
6842
|
-
const w =
|
|
6844
|
+
const w = B.target.value;
|
|
6843
6845
|
e((Q) => ({
|
|
6844
6846
|
...Q,
|
|
6845
6847
|
conditioningText: w
|
|
@@ -6858,16 +6860,16 @@ const In = (n) => {
|
|
|
6858
6860
|
m(!1);
|
|
6859
6861
|
}, [u]);
|
|
6860
6862
|
const I = N(
|
|
6861
|
-
(
|
|
6863
|
+
(B) => {
|
|
6862
6864
|
e((w) => ({
|
|
6863
6865
|
...w,
|
|
6864
|
-
conditioningText: (w.conditioningText || "").trimEnd() + " " +
|
|
6866
|
+
conditioningText: (w.conditioningText || "").trimEnd() + " " + B + " "
|
|
6865
6867
|
}));
|
|
6866
6868
|
},
|
|
6867
6869
|
[e]
|
|
6868
6870
|
), S = N(() => {
|
|
6869
|
-
e((
|
|
6870
|
-
...
|
|
6871
|
+
e((B) => ({
|
|
6872
|
+
...B,
|
|
6871
6873
|
conditioningAudio: null,
|
|
6872
6874
|
conditioningAudioName: null,
|
|
6873
6875
|
conditioningAudioSize: null,
|
|
@@ -6908,7 +6910,7 @@ const In = (n) => {
|
|
|
6908
6910
|
{
|
|
6909
6911
|
value: n.conditioningText,
|
|
6910
6912
|
onFocus: a,
|
|
6911
|
-
onChange:
|
|
6913
|
+
onChange: b,
|
|
6912
6914
|
placeholder: t._(
|
|
6913
6915
|
`Describe your desired sound characteristics (ex: ${yk(
|
|
6914
6916
|
n.instrument,
|
|
@@ -6962,11 +6964,11 @@ const In = (n) => {
|
|
|
6962
6964
|
children: /* @__PURE__ */ r(Rc, { width: 14, height: 14 })
|
|
6963
6965
|
}
|
|
6964
6966
|
),
|
|
6965
|
-
A && /* @__PURE__ */ r("div", { className: Fe.tagsWrapper, children: /* @__PURE__ */ r("div", { className: Fe.tagsContainer, children: Qk.map((
|
|
6967
|
+
A && /* @__PURE__ */ r("div", { className: Fe.tagsWrapper, children: /* @__PURE__ */ r("div", { className: Fe.tagsContainer, children: Qk.map((B, w) => /* @__PURE__ */ r(
|
|
6966
6968
|
"div",
|
|
6967
6969
|
{
|
|
6968
6970
|
className: Fe.skeletonChip,
|
|
6969
|
-
style: { width:
|
|
6971
|
+
style: { width: B }
|
|
6970
6972
|
},
|
|
6971
6973
|
w
|
|
6972
6974
|
)) }) }),
|
|
@@ -6974,20 +6976,20 @@ const In = (n) => {
|
|
|
6974
6976
|
"div",
|
|
6975
6977
|
{
|
|
6976
6978
|
className: Fe.tagsWrapper,
|
|
6977
|
-
"data-scrolled-end":
|
|
6979
|
+
"data-scrolled-end": f || void 0,
|
|
6978
6980
|
children: /* @__PURE__ */ r(
|
|
6979
6981
|
"div",
|
|
6980
6982
|
{
|
|
6981
6983
|
ref: k,
|
|
6982
6984
|
className: Fe.tagsContainer,
|
|
6983
|
-
onScroll:
|
|
6984
|
-
children: u.map((
|
|
6985
|
+
onScroll: C,
|
|
6986
|
+
children: u.map((B) => /* @__PURE__ */ r(
|
|
6985
6987
|
ke,
|
|
6986
6988
|
{
|
|
6987
6989
|
className: Fe.tagChip,
|
|
6988
6990
|
variant: "ghost",
|
|
6989
6991
|
size: "2",
|
|
6990
|
-
onClick: () => I(
|
|
6992
|
+
onClick: () => I(B),
|
|
6991
6993
|
style: {
|
|
6992
6994
|
borderRadius: "9999px",
|
|
6993
6995
|
color: "rgba(241, 247, 254, 0.71)",
|
|
@@ -6995,9 +6997,9 @@ const In = (n) => {
|
|
|
6995
6997
|
paddingLeft: 14,
|
|
6996
6998
|
paddingRight: 14
|
|
6997
6999
|
},
|
|
6998
|
-
children:
|
|
7000
|
+
children: B
|
|
6999
7001
|
},
|
|
7000
|
-
|
|
7002
|
+
B
|
|
7001
7003
|
))
|
|
7002
7004
|
}
|
|
7003
7005
|
)
|
|
@@ -7114,14 +7116,14 @@ function Pk({
|
|
|
7114
7116
|
var l, c, u, h, A, p;
|
|
7115
7117
|
const o = n.customizeCreativeFreedom || !1, i = N(
|
|
7116
7118
|
async (k) => {
|
|
7117
|
-
var
|
|
7119
|
+
var f, m, C;
|
|
7118
7120
|
await a() || s({
|
|
7119
7121
|
...n,
|
|
7120
7122
|
customizeCreativeFreedom: k,
|
|
7121
7123
|
// initialize defaults for sliders when enabling
|
|
7122
|
-
guidanceClap: k ? n.guidanceClap ?? ((
|
|
7124
|
+
guidanceClap: k ? n.guidanceClap ?? ((f = je[n.instrument]) == null ? void 0 : f.clap) ?? 4 : null,
|
|
7123
7125
|
guidanceContextAudio: k ? n.guidanceContextAudio ?? ((m = je[n.instrument]) == null ? void 0 : m.context) ?? 4 : null,
|
|
7124
|
-
guidanceContextChroma: k ? n.instrument === "drums" ? null : n.guidanceContextChroma ?? ((
|
|
7126
|
+
guidanceContextChroma: k ? n.instrument === "drums" ? null : n.guidanceContextChroma ?? ((C = je[n.instrument]) == null ? void 0 : C.chroma) ?? 4 : null
|
|
7125
7127
|
});
|
|
7126
7128
|
},
|
|
7127
7129
|
[n, s, a]
|
|
@@ -7277,7 +7279,7 @@ function zk({
|
|
|
7277
7279
|
variant: "soft",
|
|
7278
7280
|
size: "2",
|
|
7279
7281
|
disabled: s,
|
|
7280
|
-
className:
|
|
7282
|
+
className: v([Gr.customIconButton], {
|
|
7281
7283
|
[Gr.disabledIconButton]: s
|
|
7282
7284
|
}),
|
|
7283
7285
|
children: /* @__PURE__ */ r(ya, { width: 16, height: 16 })
|
|
@@ -7475,14 +7477,14 @@ const Nn = {
|
|
|
7475
7477
|
onClickUpgradeConcurrency: A,
|
|
7476
7478
|
error: p,
|
|
7477
7479
|
generateFromTrack: k,
|
|
7478
|
-
inpaintingTrack:
|
|
7480
|
+
inpaintingTrack: f,
|
|
7479
7481
|
generateFromSelectionTrack: m,
|
|
7480
|
-
unmutedTracksCount:
|
|
7482
|
+
unmutedTracksCount: C,
|
|
7481
7483
|
onMountConcurrency: E,
|
|
7482
|
-
onClear:
|
|
7484
|
+
onClear: b,
|
|
7483
7485
|
onInspireMe: I,
|
|
7484
7486
|
inspireMeLoading: S,
|
|
7485
|
-
onBoost:
|
|
7487
|
+
onBoost: B,
|
|
7486
7488
|
boostLoading: w,
|
|
7487
7489
|
suggestedTags: Q,
|
|
7488
7490
|
onFetchSuggestedTags: O,
|
|
@@ -7495,10 +7497,10 @@ const Nn = {
|
|
|
7495
7497
|
(le) => le.instrument === n.instrument
|
|
7496
7498
|
), H = _(() => {
|
|
7497
7499
|
const le = M === "2" && R, be = M === "1" || !R;
|
|
7498
|
-
return u ||
|
|
7500
|
+
return u || C === 0 || le && !n.presetId || be && !n.conditioningText && !n.conditioningAudio;
|
|
7499
7501
|
}, [
|
|
7500
7502
|
u,
|
|
7501
|
-
|
|
7503
|
+
C,
|
|
7502
7504
|
M,
|
|
7503
7505
|
R,
|
|
7504
7506
|
n.presetId,
|
|
@@ -7636,7 +7638,7 @@ const Nn = {
|
|
|
7636
7638
|
onTextConditioningFocus: a,
|
|
7637
7639
|
onInspireMe: I,
|
|
7638
7640
|
inspireMeLoading: S,
|
|
7639
|
-
onBoost:
|
|
7641
|
+
onBoost: B,
|
|
7640
7642
|
boostLoading: w,
|
|
7641
7643
|
suggestedTags: Q,
|
|
7642
7644
|
onFetchSuggestedTags: O,
|
|
@@ -7711,10 +7713,10 @@ const Nn = {
|
|
|
7711
7713
|
Wk,
|
|
7712
7714
|
{
|
|
7713
7715
|
generateFromTrack: k,
|
|
7714
|
-
inpaintingTrack:
|
|
7716
|
+
inpaintingTrack: f,
|
|
7715
7717
|
generateFromSelectionTrack: m,
|
|
7716
|
-
unmutedTracksCount:
|
|
7717
|
-
onClear:
|
|
7718
|
+
unmutedTracksCount: C,
|
|
7719
|
+
onClear: b,
|
|
7718
7720
|
i18n: i
|
|
7719
7721
|
}
|
|
7720
7722
|
) }),
|
|
@@ -7740,7 +7742,7 @@ const Nn = {
|
|
|
7740
7742
|
Pe,
|
|
7741
7743
|
{
|
|
7742
7744
|
type: "error",
|
|
7743
|
-
onClick:
|
|
7745
|
+
onClick: b,
|
|
7744
7746
|
ctaLabel: i._("Clear"),
|
|
7745
7747
|
showBackground: !1,
|
|
7746
7748
|
showIcon: !1,
|
|
@@ -7868,10 +7870,10 @@ const Xr = {
|
|
|
7868
7870
|
showHiFiPaywall: A,
|
|
7869
7871
|
onClearTrack: p,
|
|
7870
7872
|
showStemsPaywall: k,
|
|
7871
|
-
showHiFiSwitch:
|
|
7873
|
+
showHiFiSwitch: f
|
|
7872
7874
|
}) => {
|
|
7873
7875
|
var S;
|
|
7874
|
-
const { submitted: m, handleSubmit:
|
|
7876
|
+
const { submitted: m, handleSubmit: C } = Ir(i), E = [
|
|
7875
7877
|
{
|
|
7876
7878
|
value: "freeVocalInstruments",
|
|
7877
7879
|
name: n._("Vocals & Instruments"),
|
|
@@ -7982,12 +7984,12 @@ const Xr = {
|
|
|
7982
7984
|
name: n._("Other"),
|
|
7983
7985
|
category: "paid"
|
|
7984
7986
|
}
|
|
7985
|
-
],
|
|
7986
|
-
if (
|
|
7987
|
-
k(
|
|
7987
|
+
], b = async (B) => {
|
|
7988
|
+
if (B.isLocked) {
|
|
7989
|
+
k(B.value);
|
|
7988
7990
|
return;
|
|
7989
7991
|
}
|
|
7990
|
-
const w =
|
|
7992
|
+
const w = B.value;
|
|
7991
7993
|
c((Q) => {
|
|
7992
7994
|
let O = [...Q.selectedStems];
|
|
7993
7995
|
if (O.includes(w))
|
|
@@ -8000,10 +8002,10 @@ const Xr = {
|
|
|
8000
8002
|
}
|
|
8001
8003
|
return O.includes("other") && O.length === 1 ? { ...Q, selectedStems: [] } : { ...Q, selectedStems: O };
|
|
8002
8004
|
});
|
|
8003
|
-
}, I = (
|
|
8005
|
+
}, I = (B) => {
|
|
8004
8006
|
c((w) => ({
|
|
8005
8007
|
...w,
|
|
8006
|
-
selectedStems:
|
|
8008
|
+
selectedStems: B.value
|
|
8007
8009
|
}));
|
|
8008
8010
|
};
|
|
8009
8011
|
return /* @__PURE__ */ g(y, { direction: "column", height: "100%", children: [
|
|
@@ -8012,10 +8014,10 @@ const Xr = {
|
|
|
8012
8014
|
/* @__PURE__ */ r(
|
|
8013
8015
|
Fs,
|
|
8014
8016
|
{
|
|
8015
|
-
items: E.filter((
|
|
8016
|
-
name:
|
|
8017
|
-
value:
|
|
8018
|
-
icon: Xr[
|
|
8017
|
+
items: E.filter((B) => B.category === "free").map((B) => ({
|
|
8018
|
+
name: B.name,
|
|
8019
|
+
value: B.value,
|
|
8020
|
+
icon: Xr[B.value]
|
|
8019
8021
|
})),
|
|
8020
8022
|
value: l.selectedStems,
|
|
8021
8023
|
onSelect: I
|
|
@@ -8026,18 +8028,18 @@ const Xr = {
|
|
|
8026
8028
|
/* @__PURE__ */ r(
|
|
8027
8029
|
Fs,
|
|
8028
8030
|
{
|
|
8029
|
-
items: E.filter((
|
|
8031
|
+
items: E.filter((B) => B.category === "paid").filter((B) => t.some((w) => w.value === B.value)).map((B) => {
|
|
8030
8032
|
var w;
|
|
8031
8033
|
return {
|
|
8032
|
-
name:
|
|
8033
|
-
value:
|
|
8034
|
-
icon: Xr[
|
|
8035
|
-
disabled: l.selectedStems.length === 0 &&
|
|
8036
|
-
isLocked: (w = t.find((Q) => Q.value ===
|
|
8034
|
+
name: B.name,
|
|
8035
|
+
value: B.value,
|
|
8036
|
+
icon: Xr[B.value],
|
|
8037
|
+
disabled: l.selectedStems.length === 0 && B.value === "Other",
|
|
8038
|
+
isLocked: (w = t.find((Q) => Q.value === B.value)) == null ? void 0 : w.isLocked
|
|
8037
8039
|
};
|
|
8038
8040
|
}),
|
|
8039
8041
|
value: l.selectedStems,
|
|
8040
|
-
onSelect:
|
|
8042
|
+
onSelect: b,
|
|
8041
8043
|
style: {
|
|
8042
8044
|
marginBottom: "12px"
|
|
8043
8045
|
}
|
|
@@ -8060,9 +8062,9 @@ const Xr = {
|
|
|
8060
8062
|
title: n._("Separate Stems"),
|
|
8061
8063
|
disabled: !((S = l == null ? void 0 : l.selectedStems) != null && S.length) || !(l != null && l.trackName),
|
|
8062
8064
|
loading: u,
|
|
8063
|
-
onClick:
|
|
8065
|
+
onClick: C,
|
|
8064
8066
|
besideFooter: /* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
|
|
8065
|
-
|
|
8067
|
+
f && /* @__PURE__ */ r(it, { checked: !1, onCheckedChange: A }),
|
|
8066
8068
|
/* @__PURE__ */ r(Dc, {})
|
|
8067
8069
|
] }),
|
|
8068
8070
|
color: "cyan",
|
|
@@ -8268,10 +8270,10 @@ const Xr = {
|
|
|
8268
8270
|
startSlot: A,
|
|
8269
8271
|
endSlot: p,
|
|
8270
8272
|
error: k,
|
|
8271
|
-
secondaryText:
|
|
8273
|
+
secondaryText: f,
|
|
8272
8274
|
...m
|
|
8273
8275
|
}) => {
|
|
8274
|
-
const
|
|
8276
|
+
const C = A || (u ? /* @__PURE__ */ r(u, { width: 16, height: 16, className: He.icon }) : null);
|
|
8275
8277
|
return /* @__PURE__ */ g(y, { direction: "column", width: "100%", height: "100%", gap: "1", children: [
|
|
8276
8278
|
s && /* @__PURE__ */ g(y, { align: "center", gap: "2", children: [
|
|
8277
8279
|
/* @__PURE__ */ r(P, { size: c, weight: "medium", children: s }),
|
|
@@ -8284,7 +8286,7 @@ const Xr = {
|
|
|
8284
8286
|
value: n,
|
|
8285
8287
|
onChange: e,
|
|
8286
8288
|
placeholder: t,
|
|
8287
|
-
className:
|
|
8289
|
+
className: v(He.TextField, o, {
|
|
8288
8290
|
[He.Disabled]: i,
|
|
8289
8291
|
[He.ReadOnly]: l,
|
|
8290
8292
|
[He.focusRing]: h || k,
|
|
@@ -8295,20 +8297,20 @@ const Xr = {
|
|
|
8295
8297
|
disabled: i,
|
|
8296
8298
|
...m,
|
|
8297
8299
|
children: [
|
|
8298
|
-
|
|
8300
|
+
C && /* @__PURE__ */ r(pi, { children: C }),
|
|
8299
8301
|
p && /* @__PURE__ */ r("div", { className: He.endSlot, children: p })
|
|
8300
8302
|
]
|
|
8301
8303
|
}
|
|
8302
8304
|
),
|
|
8303
|
-
|
|
8305
|
+
f && /* @__PURE__ */ r(
|
|
8304
8306
|
P,
|
|
8305
8307
|
{
|
|
8306
8308
|
size: "1",
|
|
8307
8309
|
weight: "regular",
|
|
8308
|
-
className:
|
|
8310
|
+
className: v(He.secondaryText, {
|
|
8309
8311
|
[He.errorText]: k
|
|
8310
8312
|
}),
|
|
8311
|
-
children:
|
|
8313
|
+
children: f
|
|
8312
8314
|
}
|
|
8313
8315
|
)
|
|
8314
8316
|
] });
|
|
@@ -8603,7 +8605,7 @@ const fE = "_button_1270x_1", vE = "_active_1270x_7", CE = "_mute_1270x_16", yE
|
|
|
8603
8605
|
return /* @__PURE__ */ r(
|
|
8604
8606
|
ke,
|
|
8605
8607
|
{
|
|
8606
|
-
className:
|
|
8608
|
+
className: v(bn.button, t, {
|
|
8607
8609
|
[bn.mute]: a,
|
|
8608
8610
|
[bn.solo]: !a,
|
|
8609
8611
|
[bn.active]: e
|
|
@@ -8656,19 +8658,19 @@ const kE = "_track_1xe9y_1", EE = "_leftIcon_1xe9y_9", SE = "_name_1xe9y_15", IE
|
|
|
8656
8658
|
// State change listeners
|
|
8657
8659
|
onVolumeChange: p,
|
|
8658
8660
|
onPanChange: k,
|
|
8659
|
-
onMutedChange:
|
|
8661
|
+
onMutedChange: f,
|
|
8660
8662
|
onSoloChange: m,
|
|
8661
|
-
onOpenChange:
|
|
8663
|
+
onOpenChange: C,
|
|
8662
8664
|
// Children (having content means group/takelanes)
|
|
8663
8665
|
children: E
|
|
8664
8666
|
}) => {
|
|
8665
|
-
const
|
|
8666
|
-
return /* @__PURE__ */ g("div", { className:
|
|
8667
|
+
const b = !!E, I = N(() => C == null ? void 0 : C(!A), [A, C]);
|
|
8668
|
+
return /* @__PURE__ */ g("div", { className: v(me.container, { [me.isOpen]: A }), children: [
|
|
8667
8669
|
/* @__PURE__ */ g(
|
|
8668
8670
|
"div",
|
|
8669
8671
|
{
|
|
8670
|
-
className:
|
|
8671
|
-
[me.isParentTrack]:
|
|
8672
|
+
className: v(me.track, {
|
|
8673
|
+
[me.isParentTrack]: b,
|
|
8672
8674
|
[me.isCompact]: i
|
|
8673
8675
|
}),
|
|
8674
8676
|
style: { height: `${o}px` },
|
|
@@ -8691,7 +8693,7 @@ const kE = "_track_1xe9y_1", EE = "_leftIcon_1xe9y_9", SE = "_name_1xe9y_15", IE
|
|
|
8691
8693
|
{
|
|
8692
8694
|
size: "2",
|
|
8693
8695
|
className: me.name,
|
|
8694
|
-
onClick:
|
|
8696
|
+
onClick: b ? I : void 0,
|
|
8695
8697
|
children: n
|
|
8696
8698
|
}
|
|
8697
8699
|
) })
|
|
@@ -8747,7 +8749,7 @@ const kE = "_track_1xe9y_1", EE = "_leftIcon_1xe9y_9", SE = "_name_1xe9y_15", IE
|
|
|
8747
8749
|
className: me.rightButton,
|
|
8748
8750
|
variant: "mute",
|
|
8749
8751
|
isActive: u,
|
|
8750
|
-
onChange:
|
|
8752
|
+
onChange: f
|
|
8751
8753
|
}
|
|
8752
8754
|
),
|
|
8753
8755
|
/* @__PURE__ */ r(
|
|
@@ -8765,7 +8767,7 @@ const kE = "_track_1xe9y_1", EE = "_leftIcon_1xe9y_9", SE = "_name_1xe9y_15", IE
|
|
|
8765
8767
|
]
|
|
8766
8768
|
}
|
|
8767
8769
|
),
|
|
8768
|
-
|
|
8770
|
+
b && A && /* @__PURE__ */ r("div", { className: me.group, children: E })
|
|
8769
8771
|
] });
|
|
8770
8772
|
}
|
|
8771
8773
|
);
|
|
@@ -8788,36 +8790,36 @@ function XS({ schema: n }) {
|
|
|
8788
8790
|
}
|
|
8789
8791
|
for (const m of i.current) m(e);
|
|
8790
8792
|
}, [e]);
|
|
8791
|
-
const c = N((m,
|
|
8792
|
-
t((E) => ({ ...E, [m]:
|
|
8793
|
-
}, []), u = (m,
|
|
8794
|
-
const E = e[m],
|
|
8795
|
-
return
|
|
8793
|
+
const c = N((m, C) => {
|
|
8794
|
+
t((E) => ({ ...E, [m]: C })), a((E) => ({ ...E, [m]: null }));
|
|
8795
|
+
}, []), u = (m, C) => {
|
|
8796
|
+
const E = e[m], b = (I) => c(m, I);
|
|
8797
|
+
return C === "checkbox" || C === "switch" ? { checked: !!E, onCheckedChange: b } : { value: E ?? "", onChange: (I) => {
|
|
8796
8798
|
var S;
|
|
8797
|
-
return
|
|
8799
|
+
return b(((S = I == null ? void 0 : I.target) == null ? void 0 : S.value) ?? I);
|
|
8798
8800
|
} };
|
|
8799
8801
|
}, h = () => {
|
|
8800
8802
|
const m = n.safeParse(e);
|
|
8801
8803
|
if (m.success)
|
|
8802
8804
|
return a({}), { isValid: !0, data: m.data };
|
|
8803
|
-
const
|
|
8805
|
+
const C = {};
|
|
8804
8806
|
for (const E of m.error.issues) {
|
|
8805
|
-
const
|
|
8806
|
-
|
|
8807
|
+
const b = E.path.join(".");
|
|
8808
|
+
C[b] || (C[b] = E.message);
|
|
8807
8809
|
}
|
|
8808
|
-
return a(
|
|
8810
|
+
return a(C), { isValid: !1, data: e };
|
|
8809
8811
|
}, A = N((m) => (i.current.push(m), () => {
|
|
8810
|
-
i.current = i.current.filter((
|
|
8812
|
+
i.current = i.current.filter((C) => C !== m);
|
|
8811
8813
|
}), []), p = (m) => {
|
|
8812
|
-
const
|
|
8813
|
-
return
|
|
8814
|
+
const C = s[m];
|
|
8815
|
+
return C ? /* @__PURE__ */ r(j, { size: "1", color: "red", children: C }) : null;
|
|
8814
8816
|
}, k = (m) => {
|
|
8815
8817
|
t(m ?? n.parse({})), a({});
|
|
8816
|
-
},
|
|
8818
|
+
}, f = N(
|
|
8817
8819
|
(m) => /* @__PURE__ */ r(jE, { ...m, errorsRef: o }),
|
|
8818
8820
|
[]
|
|
8819
8821
|
);
|
|
8820
|
-
return { connectField: u, Field:
|
|
8822
|
+
return { connectField: u, Field: f, error: p, values: e, set: c, reset: k, getValues: h, watchValues: A };
|
|
8821
8823
|
}
|
|
8822
8824
|
const WE = "_overlay_9c05p_1", LE = "_showOverlay_9c05p_18", Cs = {
|
|
8823
8825
|
overlay: WE,
|
|
@@ -8853,7 +8855,7 @@ const VE = ({ isPlaying: n, image: e, name: t, children: s }) => {
|
|
|
8853
8855
|
/* @__PURE__ */ r(
|
|
8854
8856
|
"div",
|
|
8855
8857
|
{
|
|
8856
|
-
className:
|
|
8858
|
+
className: v(Cs.overlay, {
|
|
8857
8859
|
[Cs.showOverlay]: n || a
|
|
8858
8860
|
}),
|
|
8859
8861
|
children: s
|
|
@@ -9235,26 +9237,26 @@ class _E extends fn {
|
|
|
9235
9237
|
};
|
|
9236
9238
|
const A = (p) => {
|
|
9237
9239
|
if (p.button !== o || (c.set(p.pointerId, p), c.size > 1)) return;
|
|
9238
|
-
let k = p.clientX,
|
|
9239
|
-
const
|
|
9240
|
-
if (T.defaultPrevented || c.size > 1 || u && Date.now() -
|
|
9241
|
-
const D = T.clientX, z = T.clientY, M = D - k, U = z -
|
|
9242
|
-
(m || Math.abs(M) > a || Math.abs(U) > a) && (T.preventDefault(), T.stopPropagation(), m || (l.set({ type: "start", x: k -
|
|
9243
|
-
},
|
|
9240
|
+
let k = p.clientX, f = p.clientY, m = !1;
|
|
9241
|
+
const C = Date.now(), E = t.getBoundingClientRect(), { left: b, top: I } = E, S = (T) => {
|
|
9242
|
+
if (T.defaultPrevented || c.size > 1 || u && Date.now() - C < i) return;
|
|
9243
|
+
const D = T.clientX, z = T.clientY, M = D - k, U = z - f;
|
|
9244
|
+
(m || Math.abs(M) > a || Math.abs(U) > a) && (T.preventDefault(), T.stopPropagation(), m || (l.set({ type: "start", x: k - b, y: f - I }), m = !0), l.set({ type: "move", x: D - b, y: z - I, deltaX: M, deltaY: U }), k = D, f = z);
|
|
9245
|
+
}, B = (T) => {
|
|
9244
9246
|
if (c.delete(T.pointerId), m) {
|
|
9245
9247
|
const D = T.clientX, z = T.clientY;
|
|
9246
|
-
l.set({ type: "end", x: D -
|
|
9248
|
+
l.set({ type: "end", x: D - b, y: z - I });
|
|
9247
9249
|
}
|
|
9248
9250
|
h();
|
|
9249
9251
|
}, w = (T) => {
|
|
9250
|
-
c.delete(T.pointerId), T.relatedTarget && T.relatedTarget !== document.documentElement ||
|
|
9252
|
+
c.delete(T.pointerId), T.relatedTarget && T.relatedTarget !== document.documentElement || B(T);
|
|
9251
9253
|
}, Q = (T) => {
|
|
9252
9254
|
m && (T.stopPropagation(), T.preventDefault());
|
|
9253
9255
|
}, O = (T) => {
|
|
9254
9256
|
T.defaultPrevented || c.size > 1 || m && T.preventDefault();
|
|
9255
9257
|
};
|
|
9256
|
-
document.addEventListener("pointermove", S), document.addEventListener("pointerup",
|
|
9257
|
-
document.removeEventListener("pointermove", S), document.removeEventListener("pointerup",
|
|
9258
|
+
document.addEventListener("pointermove", S), document.addEventListener("pointerup", B), document.addEventListener("pointerout", w), document.addEventListener("pointercancel", w), document.addEventListener("touchmove", O, { passive: !1 }), document.addEventListener("click", Q, { capture: !0 }), h = () => {
|
|
9259
|
+
document.removeEventListener("pointermove", S), document.removeEventListener("pointerup", B), document.removeEventListener("pointerout", w), document.removeEventListener("pointercancel", w), document.removeEventListener("touchmove", O), setTimeout(() => {
|
|
9258
9260
|
document.removeEventListener("click", Q, { capture: !0 });
|
|
9259
9261
|
}, 10);
|
|
9260
9262
|
};
|
|
@@ -9417,17 +9419,17 @@ class _E extends fn {
|
|
|
9417
9419
|
var e;
|
|
9418
9420
|
}
|
|
9419
9421
|
renderBarWaveform(e, t, s, a) {
|
|
9420
|
-
const { width: o, height: i } = s.canvas, { halfHeight: l, barWidth: c, barRadius: u, barIndexScale: h, barSpacing: A, barMinHeight: p } = function({ width:
|
|
9421
|
-
const I = m / 2, S = E.barWidth ? E.barWidth *
|
|
9422
|
-
return { halfHeight: I, barWidth: S, barGap:
|
|
9423
|
-
}({ width: o, height: i, length: (e[0] || []).length, options: t, pixelRatio: this.getPixelRatio() }), k = function({ channelData:
|
|
9424
|
-
const Q =
|
|
9422
|
+
const { width: o, height: i } = s.canvas, { halfHeight: l, barWidth: c, barRadius: u, barIndexScale: h, barSpacing: A, barMinHeight: p } = function({ width: f, height: m, length: C, options: E, pixelRatio: b }) {
|
|
9423
|
+
const I = m / 2, S = E.barWidth ? E.barWidth * b : 1, B = E.barGap ? E.barGap * b : E.barWidth ? S / 2 : 0, w = S + B || 1;
|
|
9424
|
+
return { halfHeight: I, barWidth: S, barGap: B, barRadius: E.barRadius || 0, barMinHeight: E.barMinHeight ? E.barMinHeight * b : 0, barIndexScale: C > 0 ? f / w / C : 0, barSpacing: w };
|
|
9425
|
+
}({ width: o, height: i, length: (e[0] || []).length, options: t, pixelRatio: this.getPixelRatio() }), k = function({ channelData: f, barIndexScale: m, barSpacing: C, barWidth: E, halfHeight: b, vScale: I, canvasHeight: S, barAlign: B, barMinHeight: w }) {
|
|
9426
|
+
const Q = f[0] || [], O = f[1] || Q, T = Q.length, D = [];
|
|
9425
9427
|
let z = 0, M = 0, U = 0;
|
|
9426
9428
|
for (let J = 0; J <= T; J++) {
|
|
9427
9429
|
const x = Math.round(J * m);
|
|
9428
9430
|
if (x > z) {
|
|
9429
|
-
const { topHeight: Z, totalHeight: R } = XE({ maxTop: M, maxBottom: U, halfHeight:
|
|
9430
|
-
D.push({ x: z *
|
|
9431
|
+
const { topHeight: Z, totalHeight: R } = XE({ maxTop: M, maxBottom: U, halfHeight: b, vScale: I, barMinHeight: w, barAlign: B }), H = YE({ barAlign: B, halfHeight: b, topHeight: Z, totalHeight: R, canvasHeight: S });
|
|
9432
|
+
D.push({ x: z * C, y: H, width: E, height: R }), z = x, M = 0, U = 0;
|
|
9431
9433
|
}
|
|
9432
9434
|
const L = Math.abs(Q[J] || 0), G = Math.abs(O[J] || 0);
|
|
9433
9435
|
L > M && (M = L), G > U && (U = G);
|
|
@@ -9435,25 +9437,25 @@ class _E extends fn {
|
|
|
9435
9437
|
return D;
|
|
9436
9438
|
}({ channelData: e, barIndexScale: h, barSpacing: A, barWidth: c, halfHeight: l, vScale: a, canvasHeight: i, barAlign: t.barAlign, barMinHeight: p });
|
|
9437
9439
|
s.beginPath();
|
|
9438
|
-
for (const
|
|
9440
|
+
for (const f of k) u && "roundRect" in s ? s.roundRect(f.x, f.y, f.width, f.height, u) : s.rect(f.x, f.y, f.width, f.height);
|
|
9439
9441
|
s.fill(), s.closePath();
|
|
9440
9442
|
}
|
|
9441
9443
|
renderLineWaveform(e, t, s, a) {
|
|
9442
9444
|
const { width: o, height: i } = s.canvas, l = function({ channelData: c, width: u, height: h, vScale: A }) {
|
|
9443
9445
|
const p = h / 2, k = c[0] || [];
|
|
9444
|
-
return [k, c[1] || k].map((
|
|
9445
|
-
const
|
|
9446
|
-
let
|
|
9447
|
-
for (let Q = 0; Q <=
|
|
9446
|
+
return [k, c[1] || k].map((f, m) => {
|
|
9447
|
+
const C = f.length, E = C ? u / C : 0, b = p, I = m === 0 ? -1 : 1, S = [{ x: 0, y: b }];
|
|
9448
|
+
let B = 0, w = 0;
|
|
9449
|
+
for (let Q = 0; Q <= C; Q++) {
|
|
9448
9450
|
const O = Math.round(Q * E);
|
|
9449
|
-
if (O >
|
|
9450
|
-
const D =
|
|
9451
|
-
S.push({ x:
|
|
9451
|
+
if (O > B) {
|
|
9452
|
+
const D = b + (Math.round(w * p * A) || 1) * I;
|
|
9453
|
+
S.push({ x: B, y: D }), B = O, w = 0;
|
|
9452
9454
|
}
|
|
9453
|
-
const T = Math.abs(
|
|
9455
|
+
const T = Math.abs(f[Q] || 0);
|
|
9454
9456
|
T > w && (w = T);
|
|
9455
9457
|
}
|
|
9456
|
-
return S.push({ x:
|
|
9458
|
+
return S.push({ x: B, y: b }), S;
|
|
9457
9459
|
});
|
|
9458
9460
|
}({ channelData: e, width: o, height: i, vScale: a });
|
|
9459
9461
|
s.beginPath();
|
|
@@ -9476,7 +9478,7 @@ class _E extends fn {
|
|
|
9476
9478
|
if (!A || A.length === 0) return h;
|
|
9477
9479
|
let p = c ?? 0;
|
|
9478
9480
|
if (!c) for (let k = 0; k < A.length; k++) {
|
|
9479
|
-
const
|
|
9481
|
+
const f = (u = A[k]) !== null && u !== void 0 ? u : 0, m = Math.abs(f);
|
|
9480
9482
|
m > p && (p = m);
|
|
9481
9483
|
}
|
|
9482
9484
|
return p ? h / p : h;
|
|
@@ -9493,35 +9495,35 @@ class _E extends fn {
|
|
|
9493
9495
|
}
|
|
9494
9496
|
}
|
|
9495
9497
|
renderMultiCanvas(e, t, s, a, o, i) {
|
|
9496
|
-
const l = this.getPixelRatio(), { clientWidth: c } = this.scrollContainer, u = s / l, h = function({ clientWidth:
|
|
9497
|
-
return _r(Math.min(8e3,
|
|
9498
|
+
const l = this.getPixelRatio(), { clientWidth: c } = this.scrollContainer, u = s / l, h = function({ clientWidth: f, totalWidth: m, options: C }) {
|
|
9499
|
+
return _r(Math.min(8e3, f, m), C);
|
|
9498
9500
|
}({ clientWidth: c, totalWidth: u, options: t });
|
|
9499
9501
|
let A = {};
|
|
9500
9502
|
if (h === 0) return;
|
|
9501
|
-
const p = (
|
|
9502
|
-
if (
|
|
9503
|
-
A[
|
|
9504
|
-
const m =
|
|
9505
|
-
let
|
|
9506
|
-
if (
|
|
9507
|
-
const E = function({ channelData:
|
|
9508
|
-
return
|
|
9509
|
-
const Q = Math.floor(I /
|
|
9503
|
+
const p = (f) => {
|
|
9504
|
+
if (f < 0 || f >= k || A[f]) return;
|
|
9505
|
+
A[f] = !0;
|
|
9506
|
+
const m = f * h;
|
|
9507
|
+
let C = Math.min(u - m, h);
|
|
9508
|
+
if (C = _r(C, t), C <= 0) return;
|
|
9509
|
+
const E = function({ channelData: b, offset: I, clampedWidth: S, totalWidth: B }) {
|
|
9510
|
+
return b.map((w) => {
|
|
9511
|
+
const Q = Math.floor(I / B * w.length), O = Math.floor((I + S) / B * w.length);
|
|
9510
9512
|
return w.slice(Q, O);
|
|
9511
9513
|
});
|
|
9512
|
-
}({ channelData: e, offset: m, clampedWidth:
|
|
9513
|
-
this.renderSingleCanvas(E, t,
|
|
9514
|
+
}({ channelData: e, offset: m, clampedWidth: C, totalWidth: u });
|
|
9515
|
+
this.renderSingleCanvas(E, t, C, a, m, o, i);
|
|
9514
9516
|
}, k = Math.ceil(u / h);
|
|
9515
9517
|
if (!this.isScrollable) {
|
|
9516
|
-
for (let
|
|
9518
|
+
for (let f = 0; f < k; f++) p(f);
|
|
9517
9519
|
return;
|
|
9518
9520
|
}
|
|
9519
|
-
if ($r({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth: u, numCanvases: k }).forEach((
|
|
9520
|
-
const
|
|
9521
|
+
if ($r({ scrollLeft: this.scrollContainer.scrollLeft, totalWidth: u, numCanvases: k }).forEach((f) => p(f)), k > 1) {
|
|
9522
|
+
const f = this.on("scroll", () => {
|
|
9521
9523
|
const { scrollLeft: m } = this.scrollContainer;
|
|
9522
|
-
Object.keys(A).length > 10 && (o.innerHTML = "", i.innerHTML = "", A = {}), $r({ scrollLeft: m, totalWidth: u, numCanvases: k }).forEach((
|
|
9524
|
+
Object.keys(A).length > 10 && (o.innerHTML = "", i.innerHTML = "", A = {}), $r({ scrollLeft: m, totalWidth: u, numCanvases: k }).forEach((C) => p(C));
|
|
9523
9525
|
});
|
|
9524
|
-
this.unsubscribeOnScroll.push(
|
|
9526
|
+
this.unsubscribeOnScroll.push(f);
|
|
9525
9527
|
}
|
|
9526
9528
|
}
|
|
9527
9529
|
renderChannel(e, t, s, a) {
|
|
@@ -9529,8 +9531,8 @@ class _E extends fn {
|
|
|
9529
9531
|
var p = {};
|
|
9530
9532
|
for (var k in h) Object.prototype.hasOwnProperty.call(h, k) && A.indexOf(k) < 0 && (p[k] = h[k]);
|
|
9531
9533
|
if (h != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
9532
|
-
var
|
|
9533
|
-
for (k = Object.getOwnPropertySymbols(h);
|
|
9534
|
+
var f = 0;
|
|
9535
|
+
for (k = Object.getOwnPropertySymbols(h); f < k.length; f++) A.indexOf(k[f]) < 0 && Object.prototype.propertyIsEnumerable.call(h, k[f]) && (p[k[f]] = h[k[f]]);
|
|
9534
9536
|
}
|
|
9535
9537
|
return p;
|
|
9536
9538
|
}(t, ["overlay"]);
|
|
@@ -9544,8 +9546,8 @@ class _E extends fn {
|
|
|
9544
9546
|
var t;
|
|
9545
9547
|
this.timeouts.forEach((u) => u()), this.timeouts = [], this.canvasWrapper.innerHTML = "", this.progressWrapper.innerHTML = "", this.options.width != null && (this.scrollContainer.style.width = typeof this.options.width == "number" ? `${this.options.width}px` : this.options.width);
|
|
9546
9548
|
const s = this.getPixelRatio(), a = this.scrollContainer.clientWidth, { scrollWidth: o, isScrollable: i, useParentWidth: l, width: c } = function({ duration: u, minPxPerSec: h = 0, parentWidth: A, fillParent: p, pixelRatio: k }) {
|
|
9547
|
-
const
|
|
9548
|
-
return { scrollWidth:
|
|
9549
|
+
const f = Math.ceil(u * h), m = f > A, C = !!(p && !m);
|
|
9550
|
+
return { scrollWidth: f, isScrollable: m, useParentWidth: C, width: (C ? A : f) * k };
|
|
9549
9551
|
}({ duration: e.duration, minPxPerSec: this.options.minPxPerSec || 0, parentWidth: a, fillParent: this.options.fillParent, pixelRatio: s });
|
|
9550
9552
|
if (this.isScrollable = i, this.wrapper.style.width = l ? "100%" : `${o}px`, this.scrollContainer.style.overflowX = this.isScrollable ? "auto" : "hidden", this.scrollContainer.classList.toggle("noScrollbar", !!this.options.hideScrollbar), this.cursor.style.backgroundColor = `${this.options.cursorColor || this.options.progressColor}`, this.cursor.style.width = `${this.options.cursorWidth}px`, this.audioData = e, this.emit("render"), this.options.splitChannels) for (let u = 0; u < e.numberOfChannels; u++) {
|
|
9551
9553
|
const h = Object.assign(Object.assign({}, this.options), (t = this.options.splitChannels) === null || t === void 0 ? void 0 : t[u]);
|
|
@@ -9758,26 +9760,26 @@ class An extends GE {
|
|
|
9758
9760
|
super({ media: t, mediaControls: e.mediaControls, autoplay: e.autoplay, playbackRate: e.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({}, eS, e);
|
|
9759
9761
|
const { state: s, actions: a } = function(l) {
|
|
9760
9762
|
var c, u, h, A, p, k;
|
|
9761
|
-
const
|
|
9762
|
-
return { state: { currentTime:
|
|
9763
|
+
const f = (c = l == null ? void 0 : l.currentTime) !== null && c !== void 0 ? c : Ae(0), m = (u = l == null ? void 0 : l.duration) !== null && u !== void 0 ? u : Ae(0), C = (h = l == null ? void 0 : l.isPlaying) !== null && h !== void 0 ? h : Ae(!1), E = (A = l == null ? void 0 : l.isSeeking) !== null && A !== void 0 ? A : Ae(!1), b = (p = l == null ? void 0 : l.volume) !== null && p !== void 0 ? p : Ae(1), I = (k = l == null ? void 0 : l.playbackRate) !== null && k !== void 0 ? k : Ae(1), S = Ae(null), B = Ae(null), w = Ae(""), Q = Ae(0), O = Ae(0), T = It(() => !C.value, [C]), D = It(() => S.value !== null, [S]), z = It(() => D.value && m.value > 0, [D, m]), M = It(() => f.value, [f]), U = It(() => m.value > 0 ? f.value / m.value : 0, [f, m]);
|
|
9764
|
+
return { state: { currentTime: f, duration: m, isPlaying: C, isPaused: T, isSeeking: E, volume: b, playbackRate: I, audioBuffer: S, peaks: B, url: w, zoom: Q, scrollPosition: O, canPlay: D, isReady: z, progress: M, progressPercent: U }, actions: { setCurrentTime: (J) => {
|
|
9763
9765
|
const x = Math.max(0, Math.min(m.value || 1 / 0, J));
|
|
9764
|
-
|
|
9766
|
+
f.set(x);
|
|
9765
9767
|
}, setDuration: (J) => {
|
|
9766
9768
|
m.set(Math.max(0, J));
|
|
9767
9769
|
}, setPlaying: (J) => {
|
|
9768
|
-
|
|
9770
|
+
C.set(J);
|
|
9769
9771
|
}, setSeeking: (J) => {
|
|
9770
9772
|
E.set(J);
|
|
9771
9773
|
}, setVolume: (J) => {
|
|
9772
9774
|
const x = Math.max(0, Math.min(1, J));
|
|
9773
|
-
|
|
9775
|
+
b.set(x);
|
|
9774
9776
|
}, setPlaybackRate: (J) => {
|
|
9775
9777
|
const x = Math.max(0.1, Math.min(16, J));
|
|
9776
9778
|
I.set(x);
|
|
9777
9779
|
}, setAudioBuffer: (J) => {
|
|
9778
9780
|
S.set(J), J && m.set(J.duration);
|
|
9779
9781
|
}, setPeaks: (J) => {
|
|
9780
|
-
|
|
9782
|
+
B.set(J);
|
|
9781
9783
|
}, setUrl: (J) => {
|
|
9782
9784
|
w.set(J);
|
|
9783
9785
|
}, setZoom: (J) => {
|
|
@@ -9996,8 +9998,8 @@ class An extends GE {
|
|
|
9996
9998
|
const A = l.slice(Math.floor(h * u), Math.ceil((h + 1) * u));
|
|
9997
9999
|
let p = 0;
|
|
9998
10000
|
for (let k = 0; k < A.length; k++) {
|
|
9999
|
-
const
|
|
10000
|
-
Math.abs(
|
|
10001
|
+
const f = A[k];
|
|
10002
|
+
Math.abs(f) > Math.abs(p) && (p = f);
|
|
10001
10003
|
}
|
|
10002
10004
|
c.push(Math.round(p * s) / s);
|
|
10003
10005
|
}
|
|
@@ -10149,9 +10151,9 @@ function Hi({
|
|
|
10149
10151
|
eventPlayed: A,
|
|
10150
10152
|
showSkeleton: p = !1,
|
|
10151
10153
|
classNamesButton: k,
|
|
10152
|
-
onPlayStateChange:
|
|
10154
|
+
onPlayStateChange: f
|
|
10153
10155
|
}) {
|
|
10154
|
-
const [m,
|
|
10156
|
+
const [m, C] = q(!1), [E, b] = q(!1), [I, S] = q(!1), [B, w] = q(!1);
|
|
10155
10157
|
de(() => {
|
|
10156
10158
|
typeof navigator < "u" && w(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
10157
10159
|
}, []);
|
|
@@ -10164,17 +10166,17 @@ function Hi({
|
|
|
10164
10166
|
D.current && ((R = D.current) == null || R.pause());
|
|
10165
10167
|
}, []), M = N(() => {
|
|
10166
10168
|
var R, H;
|
|
10167
|
-
D.current && (c && c.state.active && c.state.active !== D.current && c.state.active.pause(),
|
|
10168
|
-
}, [
|
|
10169
|
+
D.current && (c && c.state.active && c.state.active !== D.current && c.state.active.pause(), B || (R = D.current) == null || R.setOptions({ progressColor: l }), (H = D.current) == null || H.play());
|
|
10170
|
+
}, [B, l, c]);
|
|
10169
10171
|
de(() => {
|
|
10170
10172
|
var R;
|
|
10171
10173
|
D.current && n && ((R = D.current) == null || R.load(n));
|
|
10172
10174
|
}, [n]);
|
|
10173
10175
|
const U = N((R) => {
|
|
10174
|
-
D.current = R,
|
|
10176
|
+
D.current = R, b(!0), C(!1);
|
|
10175
10177
|
}, []), J = N(
|
|
10176
10178
|
(R) => {
|
|
10177
|
-
if (
|
|
10179
|
+
if (C(!0), t == null || t(!0), f == null || f(!0), c) {
|
|
10178
10180
|
if (c.state.active && c.state.active !== R) {
|
|
10179
10181
|
const H = c.state.active.getCurrentTime();
|
|
10180
10182
|
c.state.active.pause(), R.setTime(H);
|
|
@@ -10188,13 +10190,13 @@ function Hi({
|
|
|
10188
10190
|
}
|
|
10189
10191
|
A == null || A();
|
|
10190
10192
|
},
|
|
10191
|
-
[t, c, A,
|
|
10193
|
+
[t, c, A, f]
|
|
10192
10194
|
), x = N(() => {
|
|
10193
|
-
|
|
10195
|
+
C(!1), t == null || t(!1), f == null || f(!1), c && c.setter((R) => ({
|
|
10194
10196
|
...R,
|
|
10195
10197
|
isPlaying: !1
|
|
10196
10198
|
}));
|
|
10197
|
-
}, [t, c,
|
|
10199
|
+
}, [t, c, f]), L = N(
|
|
10198
10200
|
(R) => {
|
|
10199
10201
|
c && c.setter((H) => ({
|
|
10200
10202
|
...H,
|
|
@@ -10204,12 +10206,12 @@ function Hi({
|
|
|
10204
10206
|
[c]
|
|
10205
10207
|
), G = N(() => {
|
|
10206
10208
|
var R;
|
|
10207
|
-
u ? (R = D.current) == null || R.play() : (
|
|
10209
|
+
u ? (R = D.current) == null || R.play() : (C(!1), t == null || t(!1), f == null || f(!1), c && c.setter((H) => ({
|
|
10208
10210
|
...H,
|
|
10209
10211
|
isPlaying: !1,
|
|
10210
10212
|
active: null
|
|
10211
10213
|
})));
|
|
10212
|
-
}, [u, t, c,
|
|
10214
|
+
}, [u, t, c, f]), Z = N(() => {
|
|
10213
10215
|
var R, H, ae;
|
|
10214
10216
|
(R = D.current) != null && R.isPlaying() ? z() : D.current && ((H = c == null ? void 0 : c.state) != null && H.active && c.state.active !== D.current && (c.state.active.pause(), c.setter((Re) => ({
|
|
10215
10217
|
...Re,
|
|
@@ -10235,7 +10237,7 @@ function Hi({
|
|
|
10235
10237
|
size: "2",
|
|
10236
10238
|
variant: "soft",
|
|
10237
10239
|
color: "gray",
|
|
10238
|
-
className:
|
|
10240
|
+
className: v(k, ks.customButton),
|
|
10239
10241
|
children: m ? /* @__PURE__ */ r(Mc, { width: 20, height: 20 }) : /* @__PURE__ */ r(Oc, { width: 20, height: 20 })
|
|
10240
10242
|
}
|
|
10241
10243
|
),
|
|
@@ -10264,7 +10266,7 @@ function Hi({
|
|
|
10264
10266
|
onPlay: J,
|
|
10265
10267
|
onPause: x,
|
|
10266
10268
|
onFinish: G,
|
|
10267
|
-
backend:
|
|
10269
|
+
backend: B ? "WebAudio" : "MediaElement"
|
|
10268
10270
|
}
|
|
10269
10271
|
)
|
|
10270
10272
|
}
|
|
@@ -10331,7 +10333,7 @@ const dS = "_customButton_14z6y_1", uS = "_descriptionVoiceList_14z6y_5", ea = {
|
|
|
10331
10333
|
onSelect: t,
|
|
10332
10334
|
className: "voice-list",
|
|
10333
10335
|
children: n.map((A) => {
|
|
10334
|
-
var p, k,
|
|
10336
|
+
var p, k, f;
|
|
10335
10337
|
return /* @__PURE__ */ r(
|
|
10336
10338
|
Rt.CardDetails,
|
|
10337
10339
|
{
|
|
@@ -10368,7 +10370,7 @@ const dS = "_customButton_14z6y_1", uS = "_descriptionVoiceList_14z6y_5", ea = {
|
|
|
10368
10370
|
weight: "regular",
|
|
10369
10371
|
className: ea.descriptionVoiceList,
|
|
10370
10372
|
children: [
|
|
10371
|
-
(
|
|
10373
|
+
(f = A == null ? void 0 : A.metadata) == null ? void 0 : f.vocalRange,
|
|
10372
10374
|
" ",
|
|
10373
10375
|
/* @__PURE__ */ r("span", { children: "|" }),
|
|
10374
10376
|
" ",
|
|
@@ -10623,7 +10625,7 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
|
|
|
10623
10625
|
onVoiceDetailsClick: s,
|
|
10624
10626
|
onBackToList: a,
|
|
10625
10627
|
voiceDetailsId: o,
|
|
10626
|
-
i18n: i = { _: (
|
|
10628
|
+
i18n: i = { _: (C) => C },
|
|
10627
10629
|
isLoading: l,
|
|
10628
10630
|
limitReached: c,
|
|
10629
10631
|
error: u,
|
|
@@ -10631,10 +10633,10 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
|
|
|
10631
10633
|
onSelectTrack: A,
|
|
10632
10634
|
onMountConcurrency: p,
|
|
10633
10635
|
showUpgradeConcurrency: k,
|
|
10634
|
-
onClickUpgradeConcurrency:
|
|
10636
|
+
onClickUpgradeConcurrency: f,
|
|
10635
10637
|
onRemoveTrack: m
|
|
10636
10638
|
}) => {
|
|
10637
|
-
const [
|
|
10639
|
+
const [C, E] = q(null), [b, I] = q(null), { submitted: S, handleSubmit: B } = Ir(h), [w, Q] = q({
|
|
10638
10640
|
lastPlayed: null,
|
|
10639
10641
|
active: null,
|
|
10640
10642
|
isPlaying: !1,
|
|
@@ -10651,9 +10653,9 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
|
|
|
10651
10653
|
[n, t]
|
|
10652
10654
|
), T = N(
|
|
10653
10655
|
(x) => {
|
|
10654
|
-
|
|
10656
|
+
b !== x && I(x);
|
|
10655
10657
|
},
|
|
10656
|
-
[
|
|
10658
|
+
[b, I]
|
|
10657
10659
|
), D = N(
|
|
10658
10660
|
(x) => {
|
|
10659
10661
|
I(null), w.active && w.active.pause(), Q((L) => ({
|
|
@@ -10677,14 +10679,14 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
|
|
|
10677
10679
|
[e.trackName, e.trackId, e.customAudio]
|
|
10678
10680
|
), J = N(() => {
|
|
10679
10681
|
if (!o) {
|
|
10680
|
-
|
|
10682
|
+
B();
|
|
10681
10683
|
return;
|
|
10682
10684
|
}
|
|
10683
10685
|
M && (O(M.identifier), a(), t((x) => {
|
|
10684
10686
|
var L;
|
|
10685
10687
|
return ((L = x.selectedVoice) == null ? void 0 : L.identifier) === M.identifier ? x : { ...x, selectedVoice: M };
|
|
10686
|
-
})), U && (M ?
|
|
10687
|
-
}, [o,
|
|
10688
|
+
})), U && (M ? B({ selectedVoice: M }) : B());
|
|
10689
|
+
}, [o, B, M, O, a]);
|
|
10688
10690
|
return de(() => {
|
|
10689
10691
|
var x;
|
|
10690
10692
|
if (w.isPlaying === !1)
|
|
@@ -10700,9 +10702,9 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
|
|
|
10700
10702
|
AS,
|
|
10701
10703
|
{
|
|
10702
10704
|
voices: n,
|
|
10703
|
-
selectedId:
|
|
10705
|
+
selectedId: C,
|
|
10704
10706
|
handleSelect: O,
|
|
10705
|
-
playingItem:
|
|
10707
|
+
playingItem: b,
|
|
10706
10708
|
handleAvatarClick: T,
|
|
10707
10709
|
handleDetailsClick: D,
|
|
10708
10710
|
wavegroup: z,
|
|
@@ -10747,7 +10749,7 @@ const BS = "_footerVoiceForm_lsc2c_2", wS = {
|
|
|
10747
10749
|
IS,
|
|
10748
10750
|
{
|
|
10749
10751
|
showUpgrade: k,
|
|
10750
|
-
onClickUpgrade:
|
|
10752
|
+
onClickUpgrade: f,
|
|
10751
10753
|
i18n: i,
|
|
10752
10754
|
onMountConcurrency: p
|
|
10753
10755
|
}
|