@moises.ai/design-system 2.2.8 → 2.2.9
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 +681 -659
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import { jsx as i, jsxs as f, Fragment as ye } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
4
|
import re, { useState as de, useRef as Ce, useCallback as x, useMemo as ne, memo as vs, useLayoutEffect as Ln, useEffect as Ge } from "react";
|
|
5
|
-
import { aj as Bs, h as Ns, f as
|
|
6
|
-
import { f7 as Ks, iP as zs, iQ as vi, iR as Bi, aH as Ni, h as Jt, iS as wi, gH as bi, au as Ji, cZ as Qi, cY as Ui, e as Vs, f as qs, E as
|
|
5
|
+
import { aj as Bs, h as Ns, f as vt, ak as Yn, c as wa, d as ba, a as ws, g as ie, al as Xn, P as te, i as L, u as be, U as Zn, F as bs, am as _n, E as $n, an as eo, ao as to, ap as ao, aq as so, ar as ro, D as no, as as oo, K as Wt, at as io, au as lo, av as ae, aw as Ja, ax as co, ay as Ao, az as uo, aA as go, aB as mo, aC as po, aD as ho, aE as fo, aF as Co, aG as So, aH as Io, aI as ko, aJ as Eo, aK as yo, R as Ro, aL as vo, aM as Bo, aN as Js, aO as Qs, aP as ua, aQ as ga, aR as No, aS as wo, aT as bo, aU as Jo, aV as Qo, aW as Uo, aX as xo, aY as To, aZ as Do, a_ as Mo, a$ as Fo, b0 as Oo, b1 as Ko, b2 as zo, b3 as Vo, b4 as qo, b5 as Us, b6 as xs, b7 as Ts, b8 as Po, b9 as Wo, ba as Ds, bb as Ms, bc as Fs, H as Os, X as jo, Y as Ho, bd as Go, be as Lo, bf as Yo, bg as Xo, bh as Zo, bi as _o, bj as Qa, bk as Ua, bl as $o, bm as xa, bn as Ta, bo as ei, bp as ti, bq as is, br as ls, bs as ai, bt as si, bu as ri, bv as ni, bw as oi, bx as ii, by as li, bz as ci, bA as Ai, e as di, C as ui, bB as gi, bC as mi, bD as pi, bE as hi, bF as fi, bG as Ci, bH as Si, bI as Ii, bJ as ki, bK as Ei, bL as yi, bM as Ri } from "./index-C1QPPQ0M.js";
|
|
6
|
+
import { f7 as Ks, iP as zs, iQ as vi, iR as Bi, aH as Ni, h as Jt, iS as wi, gH as bi, au as Ji, cZ as Qi, cY as Ui, e as Vs, f as qs, E as St, c1 as xi, dH as Ti, c_ as Di, U as Mi, aE as Fi, aw as Oi, d0 as Ki, c as zi, H as Vi, j as cs, I as gt, W as qi, K as Pi, g as Wi, i as ji, A as Hi, d as As, V as ds } from "./NoSearchIcon-Hxl3mNF0.js";
|
|
7
7
|
import * as Ps from "react-dom";
|
|
8
8
|
function Gi(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
10
|
}
|
|
11
|
-
var Li = [" ", "Enter", "ArrowUp", "ArrowDown"], Yi = [" ", "Enter"], We = "Select", [Yt, Xt, Xi] = ws(We), [
|
|
11
|
+
var Li = [" ", "Enter", "ArrowUp", "ArrowDown"], Yi = [" ", "Enter"], We = "Select", [Yt, Xt, Xi] = ws(We), [it] = wa(We, [
|
|
12
12
|
Xi,
|
|
13
13
|
Bs
|
|
14
|
-
]), Zt = Bs(), [Zi, Je] =
|
|
14
|
+
]), Zt = Bs(), [Zi, Je] = it(We), [_i, $i] = it(We), Ws = (e) => {
|
|
15
15
|
const {
|
|
16
16
|
__scopeSelect: t,
|
|
17
17
|
children: a,
|
|
@@ -25,28 +25,28 @@ var Li = [" ", "Enter", "ArrowUp", "ArrowDown"], Yi = [" ", "Enter"], We = "Sele
|
|
|
25
25
|
name: u,
|
|
26
26
|
autoComplete: g,
|
|
27
27
|
disabled: C,
|
|
28
|
-
required:
|
|
29
|
-
form:
|
|
30
|
-
} = e,
|
|
28
|
+
required: I,
|
|
29
|
+
form: y
|
|
30
|
+
} = e, m = Zt(t), [h, S] = n.useState(null), [R, k] = n.useState(null), [v, B] = n.useState(!1), N = Ns(d), [b, M] = vt({
|
|
31
31
|
prop: s,
|
|
32
32
|
defaultProp: r ?? !1,
|
|
33
33
|
onChange: o,
|
|
34
34
|
caller: We
|
|
35
|
-
}), [Y, _] =
|
|
35
|
+
}), [Y, _] = vt({
|
|
36
36
|
prop: l,
|
|
37
37
|
defaultProp: c,
|
|
38
38
|
onChange: A,
|
|
39
39
|
caller: We
|
|
40
|
-
}), O = n.useRef(null), P = h ?
|
|
41
|
-
return /* @__PURE__ */ i(Yn, { ...
|
|
40
|
+
}), O = n.useRef(null), P = h ? y || !!h.closest("form") : !0, [Q, T] = n.useState(/* @__PURE__ */ new Set()), K = Array.from(Q).map((G) => G.props.value).join(";");
|
|
41
|
+
return /* @__PURE__ */ i(Yn, { ...m, children: /* @__PURE__ */ f(
|
|
42
42
|
Zi,
|
|
43
43
|
{
|
|
44
|
-
required:
|
|
44
|
+
required: I,
|
|
45
45
|
scope: t,
|
|
46
46
|
trigger: h,
|
|
47
47
|
onTriggerChange: S,
|
|
48
48
|
valueNode: R,
|
|
49
|
-
onValueNodeChange:
|
|
49
|
+
onValueNodeChange: k,
|
|
50
50
|
valueNodeHasChildren: v,
|
|
51
51
|
onValueNodeHasChildrenChange: B,
|
|
52
52
|
contentId: ba(),
|
|
@@ -78,17 +78,17 @@ var Li = [" ", "Enter", "ArrowUp", "ArrowDown"], Yi = [" ", "Enter"], We = "Sele
|
|
|
78
78
|
gr,
|
|
79
79
|
{
|
|
80
80
|
"aria-hidden": !0,
|
|
81
|
-
required:
|
|
81
|
+
required: I,
|
|
82
82
|
tabIndex: -1,
|
|
83
83
|
name: u,
|
|
84
84
|
autoComplete: g,
|
|
85
85
|
value: Y,
|
|
86
86
|
onChange: (G) => _(G.target.value),
|
|
87
87
|
disabled: C,
|
|
88
|
-
form:
|
|
88
|
+
form: y,
|
|
89
89
|
children: [
|
|
90
90
|
Y === void 0 ? /* @__PURE__ */ i("option", { value: "" }) : null,
|
|
91
|
-
Array.from(
|
|
91
|
+
Array.from(Q)
|
|
92
92
|
]
|
|
93
93
|
},
|
|
94
94
|
K
|
|
@@ -100,13 +100,13 @@ var Li = [" ", "Enter", "ArrowUp", "ArrowDown"], Yi = [" ", "Enter"], We = "Sele
|
|
|
100
100
|
Ws.displayName = We;
|
|
101
101
|
var js = "SelectTrigger", Hs = n.forwardRef(
|
|
102
102
|
(e, t) => {
|
|
103
|
-
const { __scopeSelect: a, disabled: s = !1, ...r } = e, o = Zt(a), l = Je(js, a), c = l.disabled || s, A = ie(t, l.onTriggerChange), d = Xt(a), u = n.useRef("touch"), [g, C,
|
|
104
|
-
const h = d().filter((
|
|
103
|
+
const { __scopeSelect: a, disabled: s = !1, ...r } = e, o = Zt(a), l = Je(js, a), c = l.disabled || s, A = ie(t, l.onTriggerChange), d = Xt(a), u = n.useRef("touch"), [g, C, I] = pr((m) => {
|
|
104
|
+
const h = d().filter((k) => !k.disabled), S = h.find((k) => k.value === l.value), R = hr(h, m, S);
|
|
105
105
|
R !== void 0 && l.onValueChange(R.value);
|
|
106
|
-
}),
|
|
107
|
-
c || (l.onOpenChange(!0),
|
|
108
|
-
x: Math.round(
|
|
109
|
-
y: Math.round(
|
|
106
|
+
}), y = (m) => {
|
|
107
|
+
c || (l.onOpenChange(!0), I()), m && (l.triggerPointerDownPosRef.current = {
|
|
108
|
+
x: Math.round(m.pageX),
|
|
109
|
+
y: Math.round(m.pageY)
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
return /* @__PURE__ */ i(Xn, { asChild: !0, ...o, children: /* @__PURE__ */ i(
|
|
@@ -125,17 +125,17 @@ var js = "SelectTrigger", Hs = n.forwardRef(
|
|
|
125
125
|
"data-placeholder": mr(l.value) ? "" : void 0,
|
|
126
126
|
...r,
|
|
127
127
|
ref: A,
|
|
128
|
-
onClick: L(r.onClick, (
|
|
129
|
-
|
|
128
|
+
onClick: L(r.onClick, (m) => {
|
|
129
|
+
m.currentTarget.focus(), u.current !== "mouse" && y(m);
|
|
130
130
|
}),
|
|
131
|
-
onPointerDown: L(r.onPointerDown, (
|
|
132
|
-
u.current =
|
|
133
|
-
const h =
|
|
134
|
-
h.hasPointerCapture(
|
|
131
|
+
onPointerDown: L(r.onPointerDown, (m) => {
|
|
132
|
+
u.current = m.pointerType;
|
|
133
|
+
const h = m.target;
|
|
134
|
+
h.hasPointerCapture(m.pointerId) && h.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (y(m), m.preventDefault());
|
|
135
135
|
}),
|
|
136
|
-
onKeyDown: L(r.onKeyDown, (
|
|
136
|
+
onKeyDown: L(r.onKeyDown, (m) => {
|
|
137
137
|
const h = g.current !== "";
|
|
138
|
-
!(
|
|
138
|
+
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && C(m.key), !(h && m.key === " ") && Li.includes(m.key) && (y(), m.preventDefault());
|
|
139
139
|
})
|
|
140
140
|
}
|
|
141
141
|
) });
|
|
@@ -184,7 +184,7 @@ var je = "SelectContent", Zs = n.forwardRef(
|
|
|
184
184
|
}
|
|
185
185
|
);
|
|
186
186
|
Zs.displayName = je;
|
|
187
|
-
var fe = 10, [_s, Qe] =
|
|
187
|
+
var fe = 10, [_s, Qe] = it(je), al = "SelectContentImpl", sl = so("SelectContent.RemoveScroll"), $s = n.forwardRef(
|
|
188
188
|
(e, t) => {
|
|
189
189
|
const {
|
|
190
190
|
__scopeSelect: a,
|
|
@@ -200,18 +200,18 @@ var fe = 10, [_s, Qe] = ot(je), al = "SelectContentImpl", sl = so("SelectContent
|
|
|
200
200
|
alignOffset: u,
|
|
201
201
|
arrowPadding: g,
|
|
202
202
|
collisionBoundary: C,
|
|
203
|
-
collisionPadding:
|
|
204
|
-
sticky:
|
|
205
|
-
hideWhenDetached:
|
|
203
|
+
collisionPadding: I,
|
|
204
|
+
sticky: y,
|
|
205
|
+
hideWhenDetached: m,
|
|
206
206
|
avoidCollisions: h,
|
|
207
207
|
//
|
|
208
208
|
...S
|
|
209
|
-
} = e, R = Je(je, a), [
|
|
209
|
+
} = e, R = Je(je, a), [k, v] = n.useState(null), [B, N] = n.useState(null), b = ie(t, (U) => v(U)), [M, Y] = n.useState(null), [_, O] = n.useState(
|
|
210
210
|
null
|
|
211
|
-
), P = Xt(a), [
|
|
211
|
+
), P = Xt(a), [Q, T] = n.useState(!1), K = n.useRef(!1);
|
|
212
212
|
n.useEffect(() => {
|
|
213
|
-
if (
|
|
214
|
-
}, [
|
|
213
|
+
if (k) return eo(k);
|
|
214
|
+
}, [k]), to();
|
|
215
215
|
const G = n.useCallback(
|
|
216
216
|
(U) => {
|
|
217
217
|
const [Z, ...ue] = P().map((j) => j.ref.current), [X] = ue.slice(-1), W = document.activeElement;
|
|
@@ -220,15 +220,15 @@ var fe = 10, [_s, Qe] = ot(je), al = "SelectContentImpl", sl = so("SelectContent
|
|
|
220
220
|
},
|
|
221
221
|
[P, B]
|
|
222
222
|
), F = n.useCallback(
|
|
223
|
-
() => G([M,
|
|
224
|
-
[G, M,
|
|
223
|
+
() => G([M, k]),
|
|
224
|
+
[G, M, k]
|
|
225
225
|
);
|
|
226
226
|
n.useEffect(() => {
|
|
227
|
-
|
|
228
|
-
}, [
|
|
227
|
+
Q && F();
|
|
228
|
+
}, [Q, F]);
|
|
229
229
|
const { onOpenChange: z, triggerPointerDownPosRef: ee } = R;
|
|
230
230
|
n.useEffect(() => {
|
|
231
|
-
if (
|
|
231
|
+
if (k) {
|
|
232
232
|
let U = { x: 0, y: 0 };
|
|
233
233
|
const Z = (X) => {
|
|
234
234
|
var W, j;
|
|
@@ -237,19 +237,19 @@ var fe = 10, [_s, Qe] = ot(je), al = "SelectContentImpl", sl = so("SelectContent
|
|
|
237
237
|
y: Math.abs(Math.round(X.pageY) - (((j = ee.current) == null ? void 0 : j.y) ?? 0))
|
|
238
238
|
};
|
|
239
239
|
}, ue = (X) => {
|
|
240
|
-
U.x <= 10 && U.y <= 10 ? X.preventDefault() :
|
|
240
|
+
U.x <= 10 && U.y <= 10 ? X.preventDefault() : k.contains(X.target) || z(!1), document.removeEventListener("pointermove", Z), ee.current = null;
|
|
241
241
|
};
|
|
242
242
|
return ee.current !== null && (document.addEventListener("pointermove", Z), document.addEventListener("pointerup", ue, { capture: !0, once: !0 })), () => {
|
|
243
243
|
document.removeEventListener("pointermove", Z), document.removeEventListener("pointerup", ue, { capture: !0 });
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
}, [
|
|
246
|
+
}, [k, z, ee]), n.useEffect(() => {
|
|
247
247
|
const U = () => z(!1);
|
|
248
248
|
return window.addEventListener("blur", U), window.addEventListener("resize", U), () => {
|
|
249
249
|
window.removeEventListener("blur", U), window.removeEventListener("resize", U);
|
|
250
250
|
};
|
|
251
251
|
}, [z]);
|
|
252
|
-
const [
|
|
252
|
+
const [dt, Ze] = pr((U) => {
|
|
253
253
|
const Z = P().filter((W) => !W.disabled), ue = Z.find((W) => W.ref.current === document.activeElement), X = hr(Z, U, ue);
|
|
254
254
|
X && setTimeout(() => X.ref.current.focus());
|
|
255
255
|
}), ta = n.useCallback(
|
|
@@ -258,29 +258,29 @@ var fe = 10, [_s, Qe] = ot(je), al = "SelectContentImpl", sl = so("SelectContent
|
|
|
258
258
|
(R.value !== void 0 && R.value === Z || X) && (Y(U), X && (K.current = !0));
|
|
259
259
|
},
|
|
260
260
|
[R.value]
|
|
261
|
-
), aa = n.useCallback(() =>
|
|
261
|
+
), aa = n.useCallback(() => k == null ? void 0 : k.focus(), [k]), _e = n.useCallback(
|
|
262
262
|
(U, Z, ue) => {
|
|
263
263
|
const X = !K.current && !ue;
|
|
264
264
|
(R.value !== void 0 && R.value === Z || X) && O(U);
|
|
265
265
|
},
|
|
266
266
|
[R.value]
|
|
267
|
-
), Tt = s === "popper" ? ma : er,
|
|
267
|
+
), Tt = s === "popper" ? ma : er, ut = Tt === ma ? {
|
|
268
268
|
side: c,
|
|
269
269
|
sideOffset: A,
|
|
270
270
|
align: d,
|
|
271
271
|
alignOffset: u,
|
|
272
272
|
arrowPadding: g,
|
|
273
273
|
collisionBoundary: C,
|
|
274
|
-
collisionPadding:
|
|
275
|
-
sticky:
|
|
276
|
-
hideWhenDetached:
|
|
274
|
+
collisionPadding: I,
|
|
275
|
+
sticky: y,
|
|
276
|
+
hideWhenDetached: m,
|
|
277
277
|
avoidCollisions: h
|
|
278
278
|
} : {};
|
|
279
279
|
return /* @__PURE__ */ i(
|
|
280
280
|
_s,
|
|
281
281
|
{
|
|
282
282
|
scope: a,
|
|
283
|
-
content:
|
|
283
|
+
content: k,
|
|
284
284
|
viewport: B,
|
|
285
285
|
onViewportChange: N,
|
|
286
286
|
itemRefCallback: ta,
|
|
@@ -290,8 +290,8 @@ var fe = 10, [_s, Qe] = ot(je), al = "SelectContentImpl", sl = so("SelectContent
|
|
|
290
290
|
focusSelectedItem: F,
|
|
291
291
|
selectedItemText: _,
|
|
292
292
|
position: s,
|
|
293
|
-
isPositioned:
|
|
294
|
-
searchRef:
|
|
293
|
+
isPositioned: Q,
|
|
294
|
+
searchRef: dt,
|
|
295
295
|
children: /* @__PURE__ */ i(ao, { as: sl, allowPinchZoom: !0, children: /* @__PURE__ */ i(
|
|
296
296
|
ro,
|
|
297
297
|
{
|
|
@@ -322,7 +322,7 @@ var fe = 10, [_s, Qe] = ot(je), al = "SelectContentImpl", sl = so("SelectContent
|
|
|
322
322
|
dir: R.dir,
|
|
323
323
|
onContextMenu: (U) => U.preventDefault(),
|
|
324
324
|
...S,
|
|
325
|
-
...
|
|
325
|
+
...ut,
|
|
326
326
|
onPlaced: () => T(!0),
|
|
327
327
|
ref: b,
|
|
328
328
|
style: {
|
|
@@ -356,8 +356,8 @@ var fe = 10, [_s, Qe] = ot(je), al = "SelectContentImpl", sl = so("SelectContent
|
|
|
356
356
|
);
|
|
357
357
|
$s.displayName = al;
|
|
358
358
|
var rl = "SelectItemAlignedPosition", er = n.forwardRef((e, t) => {
|
|
359
|
-
const { __scopeSelect: a, onPlaced: s, ...r } = e, o = Je(je, a), l = Qe(je, a), [c, A] = n.useState(null), [d, u] = n.useState(null), g = ie(t, (b) => u(b)), C = Xt(a),
|
|
360
|
-
if (o.trigger && o.valueNode && c && d &&
|
|
359
|
+
const { __scopeSelect: a, onPlaced: s, ...r } = e, o = Je(je, a), l = Qe(je, a), [c, A] = n.useState(null), [d, u] = n.useState(null), g = ie(t, (b) => u(b)), C = Xt(a), I = n.useRef(!1), y = n.useRef(!0), { viewport: m, selectedItem: h, selectedItemText: S, focusSelectedItem: R } = l, k = n.useCallback(() => {
|
|
360
|
+
if (o.trigger && o.valueNode && c && d && m && h && S) {
|
|
361
361
|
const b = o.trigger.getBoundingClientRect(), M = d.getBoundingClientRect(), Y = o.valueNode.getBoundingClientRect(), _ = S.getBoundingClientRect();
|
|
362
362
|
if (o.dir !== "rtl") {
|
|
363
363
|
const W = _.left - M.left, j = Y.left - W, Te = b.left - j, De = b.width + Te, sa = Math.max(De, M.width), ra = window.innerWidth - fe, na = Wt(j, [
|
|
@@ -377,13 +377,13 @@ var rl = "SelectItemAlignedPosition", er = n.forwardRef((e, t) => {
|
|
|
377
377
|
]);
|
|
378
378
|
c.style.minWidth = De + "px", c.style.right = na + "px";
|
|
379
379
|
}
|
|
380
|
-
const O = C(), P = window.innerHeight - fe * 2,
|
|
380
|
+
const O = C(), P = window.innerHeight - fe * 2, Q = m.scrollHeight, T = window.getComputedStyle(d), K = parseInt(T.borderTopWidth, 10), G = parseInt(T.paddingTop, 10), F = parseInt(T.borderBottomWidth, 10), z = parseInt(T.paddingBottom, 10), ee = K + G + Q + z + F, dt = Math.min(h.offsetHeight * 5, ee), Ze = window.getComputedStyle(m), ta = parseInt(Ze.paddingTop, 10), aa = parseInt(Ze.paddingBottom, 10), _e = b.top + b.height / 2 - fe, Tt = P - _e, ut = h.offsetHeight / 2, U = h.offsetTop + ut, Z = K + G + U, ue = ee - Z;
|
|
381
381
|
if (Z <= _e) {
|
|
382
382
|
const W = O.length > 0 && h === O[O.length - 1].ref.current;
|
|
383
383
|
c.style.bottom = "0px";
|
|
384
|
-
const j = d.clientHeight -
|
|
384
|
+
const j = d.clientHeight - m.offsetTop - m.offsetHeight, Te = Math.max(
|
|
385
385
|
Tt,
|
|
386
|
-
|
|
386
|
+
ut + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
387
387
|
(W ? aa : 0) + j + F
|
|
388
388
|
), De = Z + Te;
|
|
389
389
|
c.style.height = De + "px";
|
|
@@ -392,12 +392,12 @@ var rl = "SelectItemAlignedPosition", er = n.forwardRef((e, t) => {
|
|
|
392
392
|
c.style.top = "0px";
|
|
393
393
|
const Te = Math.max(
|
|
394
394
|
_e,
|
|
395
|
-
K +
|
|
396
|
-
(W ? ta : 0) +
|
|
395
|
+
K + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
396
|
+
(W ? ta : 0) + ut
|
|
397
397
|
) + ue;
|
|
398
|
-
c.style.height = Te + "px",
|
|
398
|
+
c.style.height = Te + "px", m.scrollTop = Z - _e + m.offsetTop;
|
|
399
399
|
}
|
|
400
|
-
c.style.margin = `${fe}px 0`, c.style.minHeight =
|
|
400
|
+
c.style.margin = `${fe}px 0`, c.style.minHeight = dt + "px", c.style.maxHeight = P + "px", s == null || s(), requestAnimationFrame(() => I.current = !0);
|
|
401
401
|
}
|
|
402
402
|
}, [
|
|
403
403
|
C,
|
|
@@ -405,29 +405,29 @@ var rl = "SelectItemAlignedPosition", er = n.forwardRef((e, t) => {
|
|
|
405
405
|
o.valueNode,
|
|
406
406
|
c,
|
|
407
407
|
d,
|
|
408
|
-
|
|
408
|
+
m,
|
|
409
409
|
h,
|
|
410
410
|
S,
|
|
411
411
|
o.dir,
|
|
412
412
|
s
|
|
413
413
|
]);
|
|
414
|
-
be(() =>
|
|
414
|
+
be(() => k(), [k]);
|
|
415
415
|
const [v, B] = n.useState();
|
|
416
416
|
be(() => {
|
|
417
417
|
d && B(window.getComputedStyle(d).zIndex);
|
|
418
418
|
}, [d]);
|
|
419
419
|
const N = n.useCallback(
|
|
420
420
|
(b) => {
|
|
421
|
-
b &&
|
|
421
|
+
b && y.current === !0 && (k(), R == null || R(), y.current = !1);
|
|
422
422
|
},
|
|
423
|
-
[
|
|
423
|
+
[k, R]
|
|
424
424
|
);
|
|
425
425
|
return /* @__PURE__ */ i(
|
|
426
426
|
ol,
|
|
427
427
|
{
|
|
428
428
|
scope: a,
|
|
429
429
|
contentWrapper: c,
|
|
430
|
-
shouldExpandOnScrollRef:
|
|
430
|
+
shouldExpandOnScrollRef: I,
|
|
431
431
|
onScrollButtonChange: N,
|
|
432
432
|
children: /* @__PURE__ */ i(
|
|
433
433
|
"div",
|
|
@@ -489,7 +489,7 @@ var nl = "SelectPopperPosition", ma = n.forwardRef((e, t) => {
|
|
|
489
489
|
);
|
|
490
490
|
});
|
|
491
491
|
ma.displayName = nl;
|
|
492
|
-
var [ol, Da] =
|
|
492
|
+
var [ol, Da] = it(je, {}), pa = "SelectViewport", tr = n.forwardRef(
|
|
493
493
|
(e, t) => {
|
|
494
494
|
const { __scopeSelect: a, nonce: s, ...r } = e, o = Qe(pa, a), l = Da(pa, a), c = ie(t, o.onViewportChange), A = n.useRef(0);
|
|
495
495
|
return /* @__PURE__ */ f(ye, { children: [
|
|
@@ -525,12 +525,12 @@ var [ol, Da] = ot(je, {}), pa = "SelectViewport", tr = n.forwardRef(
|
|
|
525
525
|
onScroll: L(r.onScroll, (d) => {
|
|
526
526
|
const u = d.currentTarget, { contentWrapper: g, shouldExpandOnScrollRef: C } = l;
|
|
527
527
|
if (C != null && C.current && g) {
|
|
528
|
-
const
|
|
529
|
-
if (
|
|
530
|
-
const
|
|
531
|
-
if (S <
|
|
532
|
-
const R = S +
|
|
533
|
-
g.style.height =
|
|
528
|
+
const I = Math.abs(A.current - u.scrollTop);
|
|
529
|
+
if (I > 0) {
|
|
530
|
+
const y = window.innerHeight - fe * 2, m = parseFloat(g.style.minHeight), h = parseFloat(g.style.height), S = Math.max(m, h);
|
|
531
|
+
if (S < y) {
|
|
532
|
+
const R = S + I, k = Math.min(y, R), v = R - k;
|
|
533
|
+
g.style.height = k + "px", g.style.bottom === "0px" && (u.scrollTop = v > 0 ? v : 0, g.style.justifyContent = "flex-end");
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
@@ -542,7 +542,7 @@ var [ol, Da] = ot(je, {}), pa = "SelectViewport", tr = n.forwardRef(
|
|
|
542
542
|
}
|
|
543
543
|
);
|
|
544
544
|
tr.displayName = pa;
|
|
545
|
-
var ar = "SelectGroup", [il, ll] =
|
|
545
|
+
var ar = "SelectGroup", [il, ll] = it(ar), sr = n.forwardRef(
|
|
546
546
|
(e, t) => {
|
|
547
547
|
const { __scopeSelect: a, ...s } = e, r = ba();
|
|
548
548
|
return /* @__PURE__ */ i(il, { scope: a, id: r, children: /* @__PURE__ */ i(te.div, { role: "group", "aria-labelledby": r, ...s, ref: t }) });
|
|
@@ -556,7 +556,7 @@ var rr = "SelectLabel", nr = n.forwardRef(
|
|
|
556
556
|
}
|
|
557
557
|
);
|
|
558
558
|
nr.displayName = rr;
|
|
559
|
-
var jt = "SelectItem", [cl, or] =
|
|
559
|
+
var jt = "SelectItem", [cl, or] = it(jt), ir = n.forwardRef(
|
|
560
560
|
(e, t) => {
|
|
561
561
|
const {
|
|
562
562
|
__scopeSelect: a,
|
|
@@ -564,13 +564,13 @@ var jt = "SelectItem", [cl, or] = ot(jt), ir = n.forwardRef(
|
|
|
564
564
|
disabled: r = !1,
|
|
565
565
|
textValue: o,
|
|
566
566
|
...l
|
|
567
|
-
} = e, c = Je(jt, a), A = Qe(jt, a), d = c.value === s, [u, g] = n.useState(o ?? ""), [C,
|
|
567
|
+
} = e, c = Je(jt, a), A = Qe(jt, a), d = c.value === s, [u, g] = n.useState(o ?? ""), [C, I] = n.useState(!1), y = ie(
|
|
568
568
|
t,
|
|
569
569
|
(R) => {
|
|
570
|
-
var
|
|
571
|
-
return (
|
|
570
|
+
var k;
|
|
571
|
+
return (k = A.itemRefCallback) == null ? void 0 : k.call(A, R, s, r);
|
|
572
572
|
}
|
|
573
|
-
),
|
|
573
|
+
), m = ba(), h = n.useRef("touch"), S = () => {
|
|
574
574
|
r || (c.onValueChange(s), c.onOpenChange(!1));
|
|
575
575
|
};
|
|
576
576
|
if (s === "")
|
|
@@ -583,10 +583,10 @@ var jt = "SelectItem", [cl, or] = ot(jt), ir = n.forwardRef(
|
|
|
583
583
|
scope: a,
|
|
584
584
|
value: s,
|
|
585
585
|
disabled: r,
|
|
586
|
-
textId:
|
|
586
|
+
textId: m,
|
|
587
587
|
isSelected: d,
|
|
588
588
|
onItemTextChange: n.useCallback((R) => {
|
|
589
|
-
g((
|
|
589
|
+
g((k) => k || ((R == null ? void 0 : R.textContent) ?? "").trim());
|
|
590
590
|
}, []),
|
|
591
591
|
children: /* @__PURE__ */ i(
|
|
592
592
|
Yt.ItemSlot,
|
|
@@ -599,7 +599,7 @@ var jt = "SelectItem", [cl, or] = ot(jt), ir = n.forwardRef(
|
|
|
599
599
|
te.div,
|
|
600
600
|
{
|
|
601
601
|
role: "option",
|
|
602
|
-
"aria-labelledby":
|
|
602
|
+
"aria-labelledby": m,
|
|
603
603
|
"data-highlighted": C ? "" : void 0,
|
|
604
604
|
"aria-selected": d && C,
|
|
605
605
|
"data-state": d ? "checked" : "unchecked",
|
|
@@ -607,9 +607,9 @@ var jt = "SelectItem", [cl, or] = ot(jt), ir = n.forwardRef(
|
|
|
607
607
|
"data-disabled": r ? "" : void 0,
|
|
608
608
|
tabIndex: r ? void 0 : -1,
|
|
609
609
|
...l,
|
|
610
|
-
ref:
|
|
611
|
-
onFocus: L(l.onFocus, () =>
|
|
612
|
-
onBlur: L(l.onBlur, () =>
|
|
610
|
+
ref: y,
|
|
611
|
+
onFocus: L(l.onFocus, () => I(!0)),
|
|
612
|
+
onBlur: L(l.onBlur, () => I(!1)),
|
|
613
613
|
onClick: L(l.onClick, () => {
|
|
614
614
|
h.current !== "mouse" && S();
|
|
615
615
|
}),
|
|
@@ -620,12 +620,12 @@ var jt = "SelectItem", [cl, or] = ot(jt), ir = n.forwardRef(
|
|
|
620
620
|
h.current = R.pointerType;
|
|
621
621
|
}),
|
|
622
622
|
onPointerMove: L(l.onPointerMove, (R) => {
|
|
623
|
-
var
|
|
624
|
-
h.current = R.pointerType, r ? (
|
|
623
|
+
var k;
|
|
624
|
+
h.current = R.pointerType, r ? (k = A.onItemLeave) == null || k.call(A) : h.current === "mouse" && R.currentTarget.focus({ preventScroll: !0 });
|
|
625
625
|
}),
|
|
626
626
|
onPointerLeave: L(l.onPointerLeave, (R) => {
|
|
627
|
-
var
|
|
628
|
-
R.currentTarget === document.activeElement && ((
|
|
627
|
+
var k;
|
|
628
|
+
R.currentTarget === document.activeElement && ((k = A.onItemLeave) == null || k.call(A));
|
|
629
629
|
}),
|
|
630
630
|
onKeyDown: L(l.onKeyDown, (R) => {
|
|
631
631
|
var v;
|
|
@@ -640,9 +640,9 @@ var jt = "SelectItem", [cl, or] = ot(jt), ir = n.forwardRef(
|
|
|
640
640
|
}
|
|
641
641
|
);
|
|
642
642
|
ir.displayName = jt;
|
|
643
|
-
var
|
|
643
|
+
var It = "SelectItemText", lr = n.forwardRef(
|
|
644
644
|
(e, t) => {
|
|
645
|
-
const { __scopeSelect: a, className: s, style: r, ...o } = e, l = Je(
|
|
645
|
+
const { __scopeSelect: a, className: s, style: r, ...o } = e, l = Je(It, a), c = Qe(It, a), A = or(It, a), d = $i(It, a), [u, g] = n.useState(null), C = ie(
|
|
646
646
|
t,
|
|
647
647
|
(S) => g(S),
|
|
648
648
|
A.onItemTextChange,
|
|
@@ -650,17 +650,17 @@ var St = "SelectItemText", lr = n.forwardRef(
|
|
|
650
650
|
var R;
|
|
651
651
|
return (R = c.itemTextRefCallback) == null ? void 0 : R.call(c, S, A.value, A.disabled);
|
|
652
652
|
}
|
|
653
|
-
),
|
|
654
|
-
() => /* @__PURE__ */ i("option", { value: A.value, disabled: A.disabled, children:
|
|
655
|
-
[A.disabled, A.value,
|
|
656
|
-
), { onNativeOptionAdd:
|
|
657
|
-
return be(() => (
|
|
653
|
+
), I = u == null ? void 0 : u.textContent, y = n.useMemo(
|
|
654
|
+
() => /* @__PURE__ */ i("option", { value: A.value, disabled: A.disabled, children: I }, A.value),
|
|
655
|
+
[A.disabled, A.value, I]
|
|
656
|
+
), { onNativeOptionAdd: m, onNativeOptionRemove: h } = d;
|
|
657
|
+
return be(() => (m(y), () => h(y)), [m, h, y]), /* @__PURE__ */ f(ye, { children: [
|
|
658
658
|
/* @__PURE__ */ i(te.span, { id: A.textId, ...o, ref: C }),
|
|
659
659
|
A.isSelected && l.valueNode && !l.valueNodeHasChildren ? Ps.createPortal(o.children, l.valueNode) : null
|
|
660
660
|
] });
|
|
661
661
|
}
|
|
662
662
|
);
|
|
663
|
-
lr.displayName =
|
|
663
|
+
lr.displayName = It;
|
|
664
664
|
var cr = "SelectItemIndicator", Ar = n.forwardRef(
|
|
665
665
|
(e, t) => {
|
|
666
666
|
const { __scopeSelect: a, ...s } = e;
|
|
@@ -817,9 +817,9 @@ var hl = Ws, fl = Hs, Cl = Ls, Sl = Ys, Il = Xs, kl = Zs, El = tr, yl = sr, Rl =
|
|
|
817
817
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
818
818
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
819
819
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
820
|
-
},
|
|
820
|
+
}, lt = "Slider", [Sa, bl, Jl] = ws(lt), [Ir] = wa(lt, [
|
|
821
821
|
Jl
|
|
822
|
-
]), [Ql, _t] = Ir(
|
|
822
|
+
]), [Ql, _t] = Ir(lt), kr = n.forwardRef(
|
|
823
823
|
(e, t) => {
|
|
824
824
|
const {
|
|
825
825
|
name: a,
|
|
@@ -835,15 +835,15 @@ var hl = Ws, fl = Hs, Cl = Ls, Sl = Ys, Il = Xs, kl = Zs, El = tr, yl = sr, Rl =
|
|
|
835
835
|
},
|
|
836
836
|
onValueCommit: C = () => {
|
|
837
837
|
},
|
|
838
|
-
inverted:
|
|
839
|
-
form:
|
|
840
|
-
...
|
|
841
|
-
} = e, h = n.useRef(/* @__PURE__ */ new Set()), S = n.useRef(0),
|
|
838
|
+
inverted: I = !1,
|
|
839
|
+
form: y,
|
|
840
|
+
...m
|
|
841
|
+
} = e, h = n.useRef(/* @__PURE__ */ new Set()), S = n.useRef(0), k = l === "horizontal" ? Ul : xl, [v = [], B] = vt({
|
|
842
842
|
prop: u,
|
|
843
843
|
defaultProp: d,
|
|
844
844
|
onChange: (O) => {
|
|
845
|
-
var
|
|
846
|
-
(
|
|
845
|
+
var Q;
|
|
846
|
+
(Q = [...h.current][S.current]) == null || Q.focus(), g(O);
|
|
847
847
|
}
|
|
848
848
|
}), N = n.useRef(v);
|
|
849
849
|
function b(O) {
|
|
@@ -857,14 +857,14 @@ var hl = Ws, fl = Hs, Cl = Ls, Sl = Ys, Il = Xs, kl = Zs, El = tr, yl = sr, Rl =
|
|
|
857
857
|
const O = N.current[S.current];
|
|
858
858
|
v[S.current] !== O && C(v);
|
|
859
859
|
}
|
|
860
|
-
function _(O, P, { commit:
|
|
860
|
+
function _(O, P, { commit: Q } = { commit: !1 }) {
|
|
861
861
|
const T = ql(o), K = Pl(Math.round((O - s) / o) * o + s, T), G = Wt(K, [s, r]);
|
|
862
862
|
B((F = []) => {
|
|
863
863
|
const z = Ml(F, G, P);
|
|
864
864
|
if (Vl(z, A * o)) {
|
|
865
865
|
S.current = z.indexOf(G);
|
|
866
866
|
const ee = String(z) !== String(F);
|
|
867
|
-
return ee &&
|
|
867
|
+
return ee && Q && C(z), ee ? z : F;
|
|
868
868
|
} else
|
|
869
869
|
return F;
|
|
870
870
|
});
|
|
@@ -881,20 +881,20 @@ var hl = Ws, fl = Hs, Cl = Ls, Sl = Ys, Il = Xs, kl = Zs, El = tr, yl = sr, Rl =
|
|
|
881
881
|
thumbs: h.current,
|
|
882
882
|
values: v,
|
|
883
883
|
orientation: l,
|
|
884
|
-
form:
|
|
884
|
+
form: y,
|
|
885
885
|
children: /* @__PURE__ */ i(Sa.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ i(Sa.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ i(
|
|
886
|
-
|
|
886
|
+
k,
|
|
887
887
|
{
|
|
888
888
|
"aria-disabled": c,
|
|
889
889
|
"data-disabled": c ? "" : void 0,
|
|
890
|
-
...
|
|
890
|
+
...m,
|
|
891
891
|
ref: t,
|
|
892
|
-
onPointerDown: L(
|
|
892
|
+
onPointerDown: L(m.onPointerDown, () => {
|
|
893
893
|
c || (N.current = v);
|
|
894
894
|
}),
|
|
895
895
|
min: s,
|
|
896
896
|
max: r,
|
|
897
|
-
inverted:
|
|
897
|
+
inverted: I,
|
|
898
898
|
onSlideStart: c ? void 0 : b,
|
|
899
899
|
onSlideMove: c ? void 0 : M,
|
|
900
900
|
onSlideEnd: c ? void 0 : Y,
|
|
@@ -912,8 +912,8 @@ var hl = Ws, fl = Hs, Cl = Ls, Sl = Ys, Il = Xs, kl = Zs, El = tr, yl = sr, Rl =
|
|
|
912
912
|
);
|
|
913
913
|
}
|
|
914
914
|
);
|
|
915
|
-
kr.displayName =
|
|
916
|
-
var [Er, yr] = Ir(
|
|
915
|
+
kr.displayName = lt;
|
|
916
|
+
var [Er, yr] = Ir(lt, {
|
|
917
917
|
startEdge: "left",
|
|
918
918
|
endEdge: "right",
|
|
919
919
|
size: "width",
|
|
@@ -930,10 +930,10 @@ var [Er, yr] = Ir(it, {
|
|
|
930
930
|
onSlideEnd: A,
|
|
931
931
|
onStepKeyDown: d,
|
|
932
932
|
...u
|
|
933
|
-
} = e, [g, C] = n.useState(null),
|
|
934
|
-
function R(
|
|
935
|
-
const v =
|
|
936
|
-
return
|
|
933
|
+
} = e, [g, C] = n.useState(null), I = ie(t, (k) => C(k)), y = n.useRef(void 0), m = Ns(r), h = m === "ltr", S = h && !o || !h && o;
|
|
934
|
+
function R(k) {
|
|
935
|
+
const v = y.current || g.getBoundingClientRect(), B = [0, v.width], b = Ma(B, S ? [a, s] : [s, a]);
|
|
936
|
+
return y.current = v, b(k - v.left);
|
|
937
937
|
}
|
|
938
938
|
return /* @__PURE__ */ i(
|
|
939
939
|
Er,
|
|
@@ -946,28 +946,28 @@ var [Er, yr] = Ir(it, {
|
|
|
946
946
|
children: /* @__PURE__ */ i(
|
|
947
947
|
Rr,
|
|
948
948
|
{
|
|
949
|
-
dir:
|
|
949
|
+
dir: m,
|
|
950
950
|
"data-orientation": "horizontal",
|
|
951
951
|
...u,
|
|
952
|
-
ref:
|
|
952
|
+
ref: I,
|
|
953
953
|
style: {
|
|
954
954
|
...u.style,
|
|
955
955
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
956
956
|
},
|
|
957
|
-
onSlideStart: (
|
|
958
|
-
const v = R(
|
|
957
|
+
onSlideStart: (k) => {
|
|
958
|
+
const v = R(k.clientX);
|
|
959
959
|
l == null || l(v);
|
|
960
960
|
},
|
|
961
|
-
onSlideMove: (
|
|
962
|
-
const v = R(
|
|
961
|
+
onSlideMove: (k) => {
|
|
962
|
+
const v = R(k.clientX);
|
|
963
963
|
c == null || c(v);
|
|
964
964
|
},
|
|
965
965
|
onSlideEnd: () => {
|
|
966
|
-
|
|
966
|
+
y.current = void 0, A == null || A();
|
|
967
967
|
},
|
|
968
|
-
onStepKeyDown: (
|
|
969
|
-
const B = Sr[S ? "from-left" : "from-right"].includes(
|
|
970
|
-
d == null || d({ event:
|
|
968
|
+
onStepKeyDown: (k) => {
|
|
969
|
+
const B = Sr[S ? "from-left" : "from-right"].includes(k.key);
|
|
970
|
+
d == null || d({ event: k, direction: B ? -1 : 1 });
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
)
|
|
@@ -985,19 +985,19 @@ var [Er, yr] = Ir(it, {
|
|
|
985
985
|
onSlideEnd: c,
|
|
986
986
|
onStepKeyDown: A,
|
|
987
987
|
...d
|
|
988
|
-
} = e, u = n.useRef(null), g = ie(t, u), C = n.useRef(void 0),
|
|
989
|
-
function
|
|
990
|
-
const h = C.current || u.current.getBoundingClientRect(), S = [0, h.height],
|
|
991
|
-
return C.current = h,
|
|
988
|
+
} = e, u = n.useRef(null), g = ie(t, u), C = n.useRef(void 0), I = !r;
|
|
989
|
+
function y(m) {
|
|
990
|
+
const h = C.current || u.current.getBoundingClientRect(), S = [0, h.height], k = Ma(S, I ? [s, a] : [a, s]);
|
|
991
|
+
return C.current = h, k(m - h.top);
|
|
992
992
|
}
|
|
993
993
|
return /* @__PURE__ */ i(
|
|
994
994
|
Er,
|
|
995
995
|
{
|
|
996
996
|
scope: e.__scopeSlider,
|
|
997
|
-
startEdge:
|
|
998
|
-
endEdge:
|
|
997
|
+
startEdge: I ? "bottom" : "top",
|
|
998
|
+
endEdge: I ? "top" : "bottom",
|
|
999
999
|
size: "height",
|
|
1000
|
-
direction:
|
|
1000
|
+
direction: I ? 1 : -1,
|
|
1001
1001
|
children: /* @__PURE__ */ i(
|
|
1002
1002
|
Rr,
|
|
1003
1003
|
{
|
|
@@ -1008,20 +1008,20 @@ var [Er, yr] = Ir(it, {
|
|
|
1008
1008
|
...d.style,
|
|
1009
1009
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
1010
1010
|
},
|
|
1011
|
-
onSlideStart: (
|
|
1012
|
-
const h =
|
|
1011
|
+
onSlideStart: (m) => {
|
|
1012
|
+
const h = y(m.clientY);
|
|
1013
1013
|
o == null || o(h);
|
|
1014
1014
|
},
|
|
1015
|
-
onSlideMove: (
|
|
1016
|
-
const h =
|
|
1015
|
+
onSlideMove: (m) => {
|
|
1016
|
+
const h = y(m.clientY);
|
|
1017
1017
|
l == null || l(h);
|
|
1018
1018
|
},
|
|
1019
1019
|
onSlideEnd: () => {
|
|
1020
1020
|
C.current = void 0, c == null || c();
|
|
1021
1021
|
},
|
|
1022
|
-
onStepKeyDown: (
|
|
1023
|
-
const S = Sr[
|
|
1024
|
-
A == null || A({ event:
|
|
1022
|
+
onStepKeyDown: (m) => {
|
|
1023
|
+
const S = Sr[I ? "from-bottom" : "from-top"].includes(m.key);
|
|
1024
|
+
A == null || A({ event: m, direction: S ? -1 : 1 });
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
)
|
|
@@ -1039,7 +1039,7 @@ var [Er, yr] = Ir(it, {
|
|
|
1039
1039
|
onEndKeyDown: c,
|
|
1040
1040
|
onStepKeyDown: A,
|
|
1041
1041
|
...d
|
|
1042
|
-
} = e, u = _t(
|
|
1042
|
+
} = e, u = _t(lt, a);
|
|
1043
1043
|
return /* @__PURE__ */ i(
|
|
1044
1044
|
te.span,
|
|
1045
1045
|
{
|
|
@@ -1109,7 +1109,7 @@ var ka = "SliderThumb", wr = n.forwardRef(
|
|
|
1109
1109
|
}
|
|
1110
1110
|
), Tl = n.forwardRef(
|
|
1111
1111
|
(e, t) => {
|
|
1112
|
-
const { __scopeSlider: a, index: s, name: r, ...o } = e, l = _t(ka, a), c = yr(ka, a), [A, d] = n.useState(null), u = ie(t, (R) => d(R)), g = A ? l.form || !!A.closest("form") : !0, C = lo(A),
|
|
1112
|
+
const { __scopeSlider: a, index: s, name: r, ...o } = e, l = _t(ka, a), c = yr(ka, a), [A, d] = n.useState(null), u = ie(t, (R) => d(R)), g = A ? l.form || !!A.closest("form") : !0, C = lo(A), I = l.values[s], y = I === void 0 ? 0 : Jr(I, l.min, l.max), m = Fl(s, l.values.length), h = C == null ? void 0 : C[c.size], S = h ? Kl(h, y, c.direction) : 0;
|
|
1113
1113
|
return n.useEffect(() => {
|
|
1114
1114
|
if (A)
|
|
1115
1115
|
return l.thumbs.add(A), () => {
|
|
@@ -1121,16 +1121,16 @@ var ka = "SliderThumb", wr = n.forwardRef(
|
|
|
1121
1121
|
style: {
|
|
1122
1122
|
transform: "var(--radix-slider-thumb-transform)",
|
|
1123
1123
|
position: "absolute",
|
|
1124
|
-
[c.startEdge]: `calc(${
|
|
1124
|
+
[c.startEdge]: `calc(${y}% + ${S}px)`
|
|
1125
1125
|
},
|
|
1126
1126
|
children: [
|
|
1127
1127
|
/* @__PURE__ */ i(Sa.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ i(
|
|
1128
1128
|
te.span,
|
|
1129
1129
|
{
|
|
1130
1130
|
role: "slider",
|
|
1131
|
-
"aria-label": e["aria-label"] ||
|
|
1131
|
+
"aria-label": e["aria-label"] || m,
|
|
1132
1132
|
"aria-valuemin": l.min,
|
|
1133
|
-
"aria-valuenow":
|
|
1133
|
+
"aria-valuenow": I,
|
|
1134
1134
|
"aria-valuemax": l.max,
|
|
1135
1135
|
"aria-orientation": l.orientation,
|
|
1136
1136
|
"data-orientation": l.orientation,
|
|
@@ -1138,7 +1138,7 @@ var ka = "SliderThumb", wr = n.forwardRef(
|
|
|
1138
1138
|
tabIndex: l.disabled ? void 0 : 0,
|
|
1139
1139
|
...o,
|
|
1140
1140
|
ref: u,
|
|
1141
|
-
style:
|
|
1141
|
+
style: I === void 0 ? { display: "none" } : e.style,
|
|
1142
1142
|
onFocus: L(e.onFocus, () => {
|
|
1143
1143
|
l.valueIndexToChangeRef.current = s;
|
|
1144
1144
|
})
|
|
@@ -1149,7 +1149,7 @@ var ka = "SliderThumb", wr = n.forwardRef(
|
|
|
1149
1149
|
{
|
|
1150
1150
|
name: r ?? (l.name ? l.name + (l.values.length > 1 ? "[]" : "") : void 0),
|
|
1151
1151
|
form: l.form,
|
|
1152
|
-
value:
|
|
1152
|
+
value: I
|
|
1153
1153
|
},
|
|
1154
1154
|
s
|
|
1155
1155
|
)
|
|
@@ -1263,22 +1263,22 @@ var Qr = kr, Ur = Br, xr = Nr, Tr = wr, Dr = { exports: {} };
|
|
|
1263
1263
|
})();
|
|
1264
1264
|
})(Dr);
|
|
1265
1265
|
var Wl = Dr.exports;
|
|
1266
|
-
const
|
|
1266
|
+
const p = /* @__PURE__ */ Gi(Wl), H = { asChild: { type: "boolean" } }, oe = { 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 } }, ct = { 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 } }, jl = ["1", "2", "3", "4"], Mr = { ...H, align: { type: "enum", className: "rt-r-align", values: ["start", "center"], default: "center" }, size: { type: "enum", className: "rt-r-size", values: jl, default: "3", responsive: !0 }, width: oe.width, minWidth: oe.minWidth, maxWidth: { ...oe.maxWidth, default: "600px" }, ...ct }, Fr = ["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"], Ae = { color: { type: "enum", values: Fr, default: void 0 } }, At = { color: { type: "enum", values: Fr, default: "" } }, le = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, Hl = ["normal", "start", "end", "both"], Fa = { trim: { type: "enum", className: "rt-r-lt", values: Hl, responsive: !0 } }, Gl = ["left", "center", "right"], Or = { align: { type: "enum", className: "rt-r-ta", values: Gl, responsive: !0 } }, Ll = ["wrap", "nowrap", "pretty", "balance"], Le = { wrap: { type: "enum", className: "rt-r-tw", values: Ll, responsive: !0 } }, Ye = { truncate: { type: "boolean", className: "rt-truncate" } }, Yl = ["light", "regular", "medium", "bold"], $t = { weight: { type: "enum", className: "rt-r-weight", values: Yl, responsive: !0 } }, Xl = ["h1", "h2", "h3", "h4", "h5", "h6"], Zl = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], _l = { as: { type: "enum", values: Xl, default: "h1" }, ...H, size: { type: "enum", className: "rt-r-size", values: Zl, default: "6", responsive: !0 }, ...$t, ...Or, ...Fa, ...Ye, ...Le, ...Ae, ...le }, Oa = ["initial", "xs", "sm", "md", "lg", "xl"];
|
|
1267
1267
|
function Kr(e, t) {
|
|
1268
1268
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Et(e) {
|
|
1271
1271
|
return typeof e == "object" && Object.keys(e).some((t) => Oa.includes(t));
|
|
1272
1272
|
}
|
|
1273
1273
|
function we({ className: e, customProperties: t, ...a }) {
|
|
1274
|
-
const s =
|
|
1274
|
+
const s = Bt({ allowArbitraryValues: !0, className: e, ...a }), r = $l({ customProperties: t, ...a });
|
|
1275
1275
|
return [s, r];
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Bt({ allowArbitraryValues: e, value: t, className: a, propValues: s, parseValue: r = (o) => o }) {
|
|
1278
1278
|
const o = [];
|
|
1279
1279
|
if (t) {
|
|
1280
1280
|
if (typeof t == "string" && s.includes(t)) return us(a, t, r);
|
|
1281
|
-
if (
|
|
1281
|
+
if (Et(t)) {
|
|
1282
1282
|
const l = t;
|
|
1283
1283
|
for (const c in l) {
|
|
1284
1284
|
if (!Kr(l, c) || !Oa.includes(c)) continue;
|
|
@@ -1305,7 +1305,7 @@ function us(e, t, a) {
|
|
|
1305
1305
|
function $l({ customProperties: e, value: t, propValues: a, parseValue: s = (r) => r }) {
|
|
1306
1306
|
let r = {};
|
|
1307
1307
|
if (!(!t || typeof t == "string" && a.includes(t))) {
|
|
1308
|
-
if (typeof t == "string" && (r = Object.fromEntries(e.map((o) => [o, t]))),
|
|
1308
|
+
if (typeof t == "string" && (r = Object.fromEntries(e.map((o) => [o, t]))), Et(t)) {
|
|
1309
1309
|
const o = t;
|
|
1310
1310
|
for (const l in o) {
|
|
1311
1311
|
if (!Kr(o, l) || !Oa.includes(l)) continue;
|
|
@@ -1320,7 +1320,7 @@ function $l({ customProperties: e, value: t, propValues: a, parseValue: s = (r)
|
|
|
1320
1320
|
return r;
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Nt(...e) {
|
|
1324
1324
|
let t = {};
|
|
1325
1325
|
for (const a of e) a && (t = { ...t, ...a });
|
|
1326
1326
|
return Object.keys(t).length ? t : void 0;
|
|
@@ -1334,38 +1334,38 @@ function w(e, ...t) {
|
|
|
1334
1334
|
for (const l in o) {
|
|
1335
1335
|
let c = r[l];
|
|
1336
1336
|
const A = o[l];
|
|
1337
|
-
if (A.default !== void 0 && c === void 0 && (c = A.default), A.type === "enum" && ![A.default, ...A.values].includes(c) && !
|
|
1337
|
+
if (A.default !== void 0 && c === void 0 && (c = A.default), A.type === "enum" && ![A.default, ...A.values].includes(c) && !Et(c) && (c = A.default), r[l] = c, "className" in A && A.className) {
|
|
1338
1338
|
delete r[l];
|
|
1339
1339
|
const d = "responsive" in A;
|
|
1340
|
-
if (!c ||
|
|
1341
|
-
if (
|
|
1342
|
-
const u =
|
|
1343
|
-
a =
|
|
1340
|
+
if (!c || Et(c) && !d) continue;
|
|
1341
|
+
if (Et(c) && (A.default !== void 0 && c.initial === void 0 && (c.initial = A.default), A.type === "enum" && ([A.default, ...A.values].includes(c.initial) || (c.initial = A.default))), A.type === "enum") {
|
|
1342
|
+
const u = Bt({ allowArbitraryValues: !1, value: c, className: A.className, propValues: A.values, parseValue: A.parseValue });
|
|
1343
|
+
a = p(a, u);
|
|
1344
1344
|
continue;
|
|
1345
1345
|
}
|
|
1346
1346
|
if (A.type === "string" || A.type === "enum | string") {
|
|
1347
1347
|
const u = A.type === "string" ? [] : A.values, [g, C] = we({ className: A.className, customProperties: A.customProperties, propValues: u, parseValue: A.parseValue, value: c });
|
|
1348
|
-
s =
|
|
1348
|
+
s = Nt(s, C), a = p(a, g);
|
|
1349
1349
|
continue;
|
|
1350
1350
|
}
|
|
1351
1351
|
if (A.type === "boolean" && c) {
|
|
1352
|
-
a =
|
|
1352
|
+
a = p(a, A.className);
|
|
1353
1353
|
continue;
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
}
|
|
1357
|
-
return r.className =
|
|
1357
|
+
return r.className = p(a, e.className), r.style = Nt(s, e.style), r;
|
|
1358
1358
|
}
|
|
1359
1359
|
const Me = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], D = { m: { type: "enum | string", values: Me, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: Me, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: Me, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: Me, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: Me, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: Me, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: Me, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, Ka = n.forwardRef((e, t) => {
|
|
1360
1360
|
const { children: a, className: s, asChild: r, as: o = "h1", color: l, ...c } = w(e, _l, D);
|
|
1361
|
-
return n.createElement(ae, { "data-accent-color": l, ...c, ref: t, className:
|
|
1361
|
+
return n.createElement(ae, { "data-accent-color": l, ...c, ref: t, className: p("rt-Heading", s) }, r ? a : n.createElement(o, null, a));
|
|
1362
1362
|
});
|
|
1363
1363
|
Ka.displayName = "Heading";
|
|
1364
|
-
const tc = ["span", "div", "label", "p"], ac = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], sc = { as: { type: "enum", values: tc, default: "span" }, ...H, size: { type: "enum", className: "rt-r-size", values: ac, responsive: !0 }, ...$t, ...Or, ...Fa, ...Ye, ...Le, ...Ae, ...le },
|
|
1364
|
+
const tc = ["span", "div", "label", "p"], ac = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], sc = { as: { type: "enum", values: tc, default: "span" }, ...H, size: { type: "enum", className: "rt-r-size", values: ac, responsive: !0 }, ...$t, ...Or, ...Fa, ...Ye, ...Le, ...Ae, ...le }, J = n.forwardRef((e, t) => {
|
|
1365
1365
|
const { children: a, className: s, asChild: r, as: o = "span", color: l, ...c } = w(e, sc, D);
|
|
1366
|
-
return n.createElement(ae, { "data-accent-color": l, ...c, ref: t, className:
|
|
1366
|
+
return n.createElement(ae, { "data-accent-color": l, ...c, ref: t, className: p("rt-Text", s) }, r ? a : n.createElement(o, null, a));
|
|
1367
1367
|
});
|
|
1368
|
-
|
|
1368
|
+
J.displayName = "Text";
|
|
1369
1369
|
function rc(e) {
|
|
1370
1370
|
switch (e) {
|
|
1371
1371
|
case "tomato":
|
|
@@ -1414,21 +1414,21 @@ Ue.displayName = "Theme";
|
|
|
1414
1414
|
const zr = n.forwardRef((e, t) => {
|
|
1415
1415
|
const { appearance: a = me.appearance.default, accentColor: s = me.accentColor.default, grayColor: r = me.grayColor.default, panelBackground: o = me.panelBackground.default, radius: l = me.radius.default, scaling: c = me.scaling.default, hasBackground: A = me.hasBackground.default, ...d } = e, [u, g] = n.useState(a);
|
|
1416
1416
|
n.useEffect(() => g(a), [a]);
|
|
1417
|
-
const [C,
|
|
1418
|
-
n.useEffect(() =>
|
|
1419
|
-
const [
|
|
1420
|
-
n.useEffect(() =>
|
|
1417
|
+
const [C, I] = n.useState(s);
|
|
1418
|
+
n.useEffect(() => I(s), [s]);
|
|
1419
|
+
const [y, m] = n.useState(r);
|
|
1420
|
+
n.useEffect(() => m(r), [r]);
|
|
1421
1421
|
const [h, S] = n.useState(o);
|
|
1422
1422
|
n.useEffect(() => S(o), [o]);
|
|
1423
|
-
const [R,
|
|
1424
|
-
n.useEffect(() =>
|
|
1423
|
+
const [R, k] = n.useState(l);
|
|
1424
|
+
n.useEffect(() => k(l), [l]);
|
|
1425
1425
|
const [v, B] = n.useState(c);
|
|
1426
|
-
return n.useEffect(() => B(c), [c]), n.createElement(za, { ...d, ref: t, isRoot: !0, hasBackground: A, appearance: u, accentColor: C, grayColor:
|
|
1426
|
+
return n.useEffect(() => B(c), [c]), n.createElement(za, { ...d, ref: t, isRoot: !0, hasBackground: A, appearance: u, accentColor: C, grayColor: y, panelBackground: h, radius: R, scaling: v, onAppearanceChange: g, onAccentColorChange: I, onGrayColorChange: m, onPanelBackgroundChange: S, onRadiusChange: k, onScalingChange: B });
|
|
1427
1427
|
});
|
|
1428
1428
|
zr.displayName = "ThemeRoot";
|
|
1429
1429
|
const za = n.forwardRef((e, t) => {
|
|
1430
|
-
const a = n.useContext(Ht), { asChild: s, isRoot: r, hasBackground: o, appearance: l = (a == null ? void 0 : a.appearance) ?? me.appearance.default, accentColor: c = (a == null ? void 0 : a.accentColor) ?? me.accentColor.default, grayColor: A = (a == null ? void 0 : a.resolvedGrayColor) ?? me.grayColor.default, panelBackground: d = (a == null ? void 0 : a.panelBackground) ?? me.panelBackground.default, radius: u = (a == null ? void 0 : a.radius) ?? me.radius.default, scaling: g = (a == null ? void 0 : a.scaling) ?? me.scaling.default, onAppearanceChange: C = $e, onAccentColorChange:
|
|
1431
|
-
return n.createElement(Ht.Provider, { value: n.useMemo(() => ({ appearance: l, accentColor: c, grayColor: A, resolvedGrayColor: v, panelBackground: d, radius: u, scaling: g, onAppearanceChange: C, onAccentColorChange:
|
|
1430
|
+
const a = n.useContext(Ht), { asChild: s, isRoot: r, hasBackground: o, appearance: l = (a == null ? void 0 : a.appearance) ?? me.appearance.default, accentColor: c = (a == null ? void 0 : a.accentColor) ?? me.accentColor.default, grayColor: A = (a == null ? void 0 : a.resolvedGrayColor) ?? me.grayColor.default, panelBackground: d = (a == null ? void 0 : a.panelBackground) ?? me.panelBackground.default, radius: u = (a == null ? void 0 : a.radius) ?? me.radius.default, scaling: g = (a == null ? void 0 : a.scaling) ?? me.scaling.default, onAppearanceChange: C = $e, onAccentColorChange: I = $e, onGrayColorChange: y = $e, onPanelBackgroundChange: m = $e, onRadiusChange: h = $e, onScalingChange: S = $e, ...R } = e, k = s ? ae : "div", v = A === "auto" ? rc(c) : A, B = e.appearance === "light" || e.appearance === "dark", N = o === void 0 ? r || B : o;
|
|
1431
|
+
return n.createElement(Ht.Provider, { value: n.useMemo(() => ({ appearance: l, accentColor: c, grayColor: A, resolvedGrayColor: v, panelBackground: d, radius: u, scaling: g, onAppearanceChange: C, onAccentColorChange: I, onGrayColorChange: y, onPanelBackgroundChange: m, onRadiusChange: h, onScalingChange: S }), [l, c, A, v, d, u, g, C, I, y, m, h, S]) }, n.createElement(k, { "data-is-root-theme": r ? "true" : "false", "data-accent-color": c, "data-gray-color": v, "data-has-background": N ? "true" : "false", "data-panel-background": d, "data-radius": u, "data-scaling": g, ref: t, ...R, className: p("radix-themes", { light: l === "light", dark: l === "dark" }, R.className) }));
|
|
1432
1432
|
});
|
|
1433
1433
|
za.displayName = "ThemeImpl";
|
|
1434
1434
|
const xe = (e) => {
|
|
@@ -1440,12 +1440,12 @@ const qr = n.forwardRef(({ children: e, ...t }, a) => n.createElement(So, { ...t
|
|
|
1440
1440
|
qr.displayName = "AlertDialog.Trigger";
|
|
1441
1441
|
const Pr = n.forwardRef(({ align: e, ...t }, a) => {
|
|
1442
1442
|
const { align: s, ...r } = Mr, { className: o } = w({ align: e }, { align: s }), { className: l, forceMount: c, container: A, ...d } = w(t, r);
|
|
1443
|
-
return n.createElement(go, { container: A, forceMount: c }, n.createElement(Ue, { asChild: !0 }, n.createElement(mo, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, n.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, n.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, n.createElement(po, { ...d, ref: a, className:
|
|
1443
|
+
return n.createElement(go, { container: A, forceMount: c }, n.createElement(Ue, { asChild: !0 }, n.createElement(mo, { className: "rt-BaseDialogOverlay rt-AlertDialogOverlay" }, n.createElement("div", { className: "rt-BaseDialogScroll rt-AlertDialogScroll" }, n.createElement("div", { className: `rt-BaseDialogScrollPadding rt-AlertDialogScrollPadding ${o}` }, n.createElement(po, { ...d, ref: a, className: p("rt-BaseDialogContent", "rt-AlertDialogContent", l) }))))));
|
|
1444
1444
|
});
|
|
1445
1445
|
Pr.displayName = "AlertDialog.Content";
|
|
1446
1446
|
const Wr = n.forwardRef((e, t) => n.createElement(Co, { asChild: !0 }, n.createElement(Ka, { size: "5", mb: "3", trim: "start", ...e, asChild: !1, ref: t })));
|
|
1447
1447
|
Wr.displayName = "AlertDialog.Title";
|
|
1448
|
-
const jr = n.forwardRef((e, t) => n.createElement(ho, { asChild: !0 }, n.createElement(
|
|
1448
|
+
const jr = n.forwardRef((e, t) => n.createElement(ho, { asChild: !0 }, n.createElement(J, { as: "p", size: "3", ...e, asChild: !1, ref: t })));
|
|
1449
1449
|
jr.displayName = "AlertDialog.Description";
|
|
1450
1450
|
const Hr = n.forwardRef(({ children: e, ...t }, a) => n.createElement(Ao, { ...t, ref: a, asChild: !0 }, xe(e)));
|
|
1451
1451
|
Hr.displayName = "AlertDialog.Action";
|
|
@@ -1460,7 +1460,7 @@ const Fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1460
1460
|
Root: Vr,
|
|
1461
1461
|
Title: Wr,
|
|
1462
1462
|
Trigger: qr
|
|
1463
|
-
}, Symbol.toStringTag, { value: "Module" })), Oh = Io, ic = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], lc = ["solid", "soft"], cc = { ...H, size: { type: "enum", className: "rt-r-size", values: ic, default: "3", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: lc, default: "soft" }, ...
|
|
1463
|
+
}, Symbol.toStringTag, { value: "Module" })), Oh = Io, ic = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], lc = ["solid", "soft"], cc = { ...H, size: { type: "enum", className: "rt-r-size", values: ic, default: "3", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: lc, default: "soft" }, ...At, ...le, ...ke, fallback: { type: "ReactNode", required: !0 } };
|
|
1464
1464
|
function Va(e, t) {
|
|
1465
1465
|
const { asChild: a, children: s } = e;
|
|
1466
1466
|
if (!a) return typeof t == "function" ? t(s) : t;
|
|
@@ -1469,46 +1469,46 @@ function Va(e, t) {
|
|
|
1469
1469
|
}
|
|
1470
1470
|
const Gt = n.forwardRef((e, t) => {
|
|
1471
1471
|
const { asChild: a, children: s, className: r, style: o, color: l, radius: c, ...A } = w(e, cc, D);
|
|
1472
|
-
return n.createElement(ko, { "data-accent-color": l, "data-radius": c, className:
|
|
1472
|
+
return n.createElement(ko, { "data-accent-color": l, "data-radius": c, className: p("rt-reset", "rt-AvatarRoot", r), style: o, asChild: a }, Va({ asChild: a, children: s }, n.createElement(Lr, { ref: t, ...A })));
|
|
1473
1473
|
});
|
|
1474
1474
|
Gt.displayName = "Avatar";
|
|
1475
1475
|
const Lr = n.forwardRef(({ fallback: e, ...t }, a) => {
|
|
1476
1476
|
const [s, r] = n.useState("idle");
|
|
1477
|
-
return n.createElement(n.Fragment, null, s === "idle" || s === "loading" ? n.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? n.createElement(Eo, { className:
|
|
1477
|
+
return n.createElement(n.Fragment, null, s === "idle" || s === "loading" ? n.createElement("span", { className: "rt-AvatarFallback" }) : null, s === "error" ? n.createElement(Eo, { className: p("rt-AvatarFallback", { "rt-one-letter": typeof e == "string" && e.length === 1, "rt-two-letters": typeof e == "string" && e.length === 2 }), delayMs: 0 }, e) : null, n.createElement(yo, { ref: a, className: "rt-AvatarImage", ...t, onLoadingStatusChange: (o) => {
|
|
1478
1478
|
var l;
|
|
1479
1479
|
(l = t.onLoadingStatusChange) == null || l.call(t, o), r(o);
|
|
1480
1480
|
} }));
|
|
1481
1481
|
});
|
|
1482
1482
|
Lr.displayName = "AvatarImpl";
|
|
1483
|
-
const Ac = ["1", "2", "3"], dc = ["solid", "soft", "surface", "outline"], uc = { ...H, size: { type: "enum", className: "rt-r-size", values: Ac, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: dc, default: "soft" }, ...
|
|
1483
|
+
const Ac = ["1", "2", "3"], dc = ["solid", "soft", "surface", "outline"], uc = { ...H, size: { type: "enum", className: "rt-r-size", values: Ac, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: dc, default: "soft" }, ...At, ...le, ...ke }, gc = n.forwardRef((e, t) => {
|
|
1484
1484
|
const { asChild: a, className: s, color: r, radius: o, ...l } = w(e, uc, D), c = a ? ae : "span";
|
|
1485
|
-
return n.createElement(c, { "data-accent-color": r, "data-radius": o, ...l, ref: t, className:
|
|
1485
|
+
return n.createElement(c, { "data-accent-color": r, "data-radius": o, ...l, ref: t, className: p("rt-reset", "rt-Badge", s) });
|
|
1486
1486
|
});
|
|
1487
1487
|
gc.displayName = "Badge";
|
|
1488
1488
|
const mc = n.forwardRef((e, t) => {
|
|
1489
1489
|
const { asChild: a, children: s, className: r, ...o } = e, l = a ? ae : "blockquote";
|
|
1490
|
-
return n.createElement(
|
|
1490
|
+
return n.createElement(J, { asChild: !0, ...o, ref: t, className: p("rt-Blockquote", r) }, n.createElement(l, null, s));
|
|
1491
1491
|
});
|
|
1492
1492
|
mc.displayName = "Blockquote";
|
|
1493
|
-
const qa = ae, pc = ["div", "span"], hc = ["none", "inline", "inline-block", "block", "contents"], fc = { as: { type: "enum", values: pc, default: "div" }, ...H, display: { type: "enum", className: "rt-r-display", values: hc, responsive: !0 } }, Fe = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
|
1493
|
+
const qa = ae, pc = ["div", "span"], hc = ["none", "inline", "inline-block", "block", "contents"], fc = { as: { type: "enum", values: pc, default: "div" }, ...H, display: { type: "enum", className: "rt-r-display", values: hc, responsive: !0 } }, Fe = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], yt = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: Fe, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: Fe, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: Fe, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: Fe, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: Fe, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: Fe, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: Fe, responsive: !0 } }, oa = ["visible", "hidden", "clip", "scroll", "auto"], Cc = ["static", "relative", "absolute", "fixed", "sticky"], mt = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], Sc = ["0", "1"], Ic = ["0", "1"], Qt = { ...yt, ...oe, ...ct, position: { type: "enum", className: "rt-r-position", values: Cc, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: mt, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: mt, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: mt, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: mt, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: mt, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: oa, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: oa, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: oa, 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: Sc, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: Ic, 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 } }, ce = n.forwardRef((e, t) => {
|
|
1494
1494
|
const { className: a, asChild: s, as: r = "div", ...o } = w(e, fc, Qt, D);
|
|
1495
|
-
return n.createElement(s ? qa : r, { ...o, ref: t, className:
|
|
1495
|
+
return n.createElement(s ? qa : r, { ...o, ref: t, className: p("rt-Box", a) });
|
|
1496
1496
|
});
|
|
1497
1497
|
ce.displayName = "Box";
|
|
1498
|
-
const kc = ["1", "2", "3", "4"], Ec = ["classic", "solid", "soft", "surface", "outline", "ghost"], gs = { ...H, size: { type: "enum", className: "rt-r-size", values: kc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Ec, default: "solid" }, ...
|
|
1498
|
+
const kc = ["1", "2", "3", "4"], Ec = ["classic", "solid", "soft", "surface", "outline", "ghost"], gs = { ...H, size: { type: "enum", className: "rt-r-size", values: kc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Ec, default: "solid" }, ...At, ...le, ...ke, loading: { type: "boolean", className: "rt-loading", default: !1 } }, ia = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], Yr = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: ia, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: ia, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: ia, responsive: !0 } }, yc = ["div", "span"], Rc = ["none", "inline-flex", "flex"], vc = ["row", "column", "row-reverse", "column-reverse"], Bc = ["start", "center", "end", "baseline", "stretch"], Nc = ["start", "center", "end", "between"], wc = ["nowrap", "wrap", "wrap-reverse"], Xr = { as: { type: "enum", values: yc, default: "div" }, ...H, display: { type: "enum", className: "rt-r-display", values: Rc, responsive: !0 }, direction: { type: "enum", className: "rt-r-fd", values: vc, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: Bc, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Nc, parseValue: bc, responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: wc, responsive: !0 }, ...Yr };
|
|
1499
1499
|
function bc(e) {
|
|
1500
1500
|
return e === "between" ? "space-between" : e;
|
|
1501
1501
|
}
|
|
1502
|
-
const
|
|
1502
|
+
const E = n.forwardRef((e, t) => {
|
|
1503
1503
|
const { className: a, asChild: s, as: r = "div", ...o } = w(e, Xr, Qt, D);
|
|
1504
|
-
return n.createElement(s ? qa : r, { ...o, ref: t, className:
|
|
1504
|
+
return n.createElement(s ? qa : r, { ...o, ref: t, className: p("rt-Flex", a) });
|
|
1505
1505
|
});
|
|
1506
|
-
|
|
1506
|
+
E.displayName = "Flex";
|
|
1507
1507
|
const Jc = ["1", "2", "3"], Qc = { size: { type: "enum", className: "rt-r-size", values: Jc, default: "2", responsive: !0 }, loading: { type: "boolean", default: !0 } }, Pa = n.forwardRef((e, t) => {
|
|
1508
1508
|
const { className: a, children: s, loading: r, ...o } = w(e, Qc, D);
|
|
1509
1509
|
if (!r) return s;
|
|
1510
|
-
const l = n.createElement("span", { ...o, ref: t, className:
|
|
1511
|
-
return s === void 0 ? l : n.createElement(
|
|
1510
|
+
const l = n.createElement("span", { ...o, ref: t, className: p("rt-Spinner", a) }, n.createElement("span", { className: "rt-SpinnerLeaf" }), n.createElement("span", { className: "rt-SpinnerLeaf" }), n.createElement("span", { className: "rt-SpinnerLeaf" }), n.createElement("span", { className: "rt-SpinnerLeaf" }), n.createElement("span", { className: "rt-SpinnerLeaf" }), n.createElement("span", { className: "rt-SpinnerLeaf" }), n.createElement("span", { className: "rt-SpinnerLeaf" }), n.createElement("span", { className: "rt-SpinnerLeaf" }));
|
|
1511
|
+
return s === void 0 ? l : n.createElement(E, { asChild: !0, position: "relative", align: "center", justify: "center" }, n.createElement("span", null, n.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, s), n.createElement(E, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, n.createElement("span", null, l))));
|
|
1512
1512
|
});
|
|
1513
1513
|
Pa.displayName = "Spinner";
|
|
1514
1514
|
const Uc = Ro;
|
|
@@ -1531,26 +1531,26 @@ function Tc(e) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
const Wa = n.forwardRef((e, t) => {
|
|
1533
1533
|
const { size: a = gs.size.default } = e, { className: s, children: r, asChild: o, color: l, radius: c, disabled: A = e.loading, ...d } = w(e, gs, D), u = o ? ae : "button";
|
|
1534
|
-
return n.createElement(u, { "data-disabled": A || void 0, "data-accent-color": l, "data-radius": c, ...d, ref: t, className:
|
|
1534
|
+
return n.createElement(u, { "data-disabled": A || void 0, "data-accent-color": l, "data-radius": c, ...d, ref: t, className: p("rt-reset", "rt-BaseButton", s), disabled: A }, e.loading ? n.createElement(n.Fragment, null, n.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, r), n.createElement(Uc, null, r), n.createElement(E, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, n.createElement("span", null, n.createElement(Pa, { size: Zr(a, Tc) })))) : r);
|
|
1535
1535
|
});
|
|
1536
1536
|
Wa.displayName = "BaseButton";
|
|
1537
|
-
const _r = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Wa, { ...t, ref: a, className:
|
|
1537
|
+
const _r = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Wa, { ...t, ref: a, className: p("rt-Button", e) }));
|
|
1538
1538
|
_r.displayName = "Button";
|
|
1539
|
-
const Dc = ["1", "2", "3"], Mc = ["soft", "surface", "outline"], ms = { ...H, size: { type: "enum", className: "rt-r-size", values: Dc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Mc, default: "soft" }, ...
|
|
1539
|
+
const Dc = ["1", "2", "3"], Mc = ["soft", "surface", "outline"], ms = { ...H, size: { type: "enum", className: "rt-r-size", values: Dc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Mc, default: "soft" }, ...At, ...le }, $r = n.createContext({}), ja = n.forwardRef((e, t) => {
|
|
1540
1540
|
const { size: a = ms.size.default } = e, { asChild: s, children: r, className: o, color: l, ...c } = w(e, ms, D), A = s ? ae : "div";
|
|
1541
|
-
return n.createElement(A, { "data-accent-color": l, ...c, className:
|
|
1541
|
+
return n.createElement(A, { "data-accent-color": l, ...c, className: p("rt-CalloutRoot", o), ref: t }, n.createElement($r.Provider, { value: n.useMemo(() => ({ size: a }), [a]) }, r));
|
|
1542
1542
|
});
|
|
1543
1543
|
ja.displayName = "Callout.Root";
|
|
1544
|
-
const Ha = n.forwardRef(({ className: e, ...t }, a) => n.createElement("div", { ...t, className:
|
|
1544
|
+
const Ha = n.forwardRef(({ className: e, ...t }, a) => n.createElement("div", { ...t, className: p("rt-CalloutIcon", e), ref: a }));
|
|
1545
1545
|
Ha.displayName = "Callout.Icon";
|
|
1546
1546
|
const Ga = n.forwardRef(({ className: e, ...t }, a) => {
|
|
1547
1547
|
const { size: s } = n.useContext($r);
|
|
1548
|
-
return n.createElement(
|
|
1548
|
+
return n.createElement(J, { as: "p", size: Zr(s, xc), ...t, asChild: !1, ref: a, className: p("rt-CalloutText", e) });
|
|
1549
1549
|
});
|
|
1550
1550
|
Ga.displayName = "Callout.Text";
|
|
1551
1551
|
const Fc = ["1", "2", "3", "4", "5"], Oc = ["surface", "classic", "ghost"], Kc = { ...H, size: { type: "enum", className: "rt-r-size", values: Fc, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Oc, default: "surface" } }, en = n.forwardRef((e, t) => {
|
|
1552
1552
|
const { asChild: a, className: s, ...r } = w(e, Kc, D), o = a ? ae : "div";
|
|
1553
|
-
return n.createElement(o, { ref: t, ...r, className:
|
|
1553
|
+
return n.createElement(o, { ref: t, ...r, className: p("rt-reset", "rt-BaseCard", "rt-Card", s) });
|
|
1554
1554
|
});
|
|
1555
1555
|
en.displayName = "Card";
|
|
1556
1556
|
const zc = ["div", "span"], Vc = ["none", "inline-grid", "grid"], qc = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Pc = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Wc = ["row", "column", "dense", "row-dense", "column-dense"], jc = ["start", "center", "end", "baseline", "stretch"], Hc = ["start", "center", "end", "between"], Lt = { as: { type: "enum", values: zc, default: "div" }, ...H, display: { type: "enum", className: "rt-r-display", values: Vc, 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: qc, parseValue: ps, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: Pc, parseValue: ps, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: Wc, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: jc, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Hc, parseValue: Gc, responsive: !0 }, ...Yr };
|
|
@@ -1562,7 +1562,7 @@ function Gc(e) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
const Lc = ["1", "2", "3"], Yc = ["classic", "surface", "soft"], Xc = { size: { type: "enum", className: "rt-r-size", values: Lc, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Yc, default: "surface" }, ...Ae, ...le }, tn = n.forwardRef((e, t) => {
|
|
1564
1564
|
const { className: a, asChild: s, as: r = "div", ...o } = w(e, Lt, Qt, D);
|
|
1565
|
-
return n.createElement(s ? qa : r, { ...o, ref: t, className:
|
|
1565
|
+
return n.createElement(s ? qa : r, { ...o, ref: t, className: p("rt-Grid", a) });
|
|
1566
1566
|
});
|
|
1567
1567
|
tn.displayName = "Grid";
|
|
1568
1568
|
const an = re.forwardRef((e, t) => re.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: t }, re.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" })));
|
|
@@ -1574,13 +1574,13 @@ sn.displayName = "ChevronDownIcon";
|
|
|
1574
1574
|
const Zc = re.forwardRef((e, t) => re.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", ...e, ref: t }, re.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })));
|
|
1575
1575
|
Zc.displayName = "ThickChevronRightIcon";
|
|
1576
1576
|
const rn = n.forwardRef((e, t) => {
|
|
1577
|
-
const { className: a, color: s, checked: r, defaultChecked: o, onCheckedChange: l, ...c } = w(e, Xc, D), [A, d] =
|
|
1578
|
-
return n.createElement(vo, { "data-accent-color": s, ...c, defaultChecked: o, checked: A, onCheckedChange: d, asChild: !1, ref: t, className:
|
|
1577
|
+
const { className: a, color: s, checked: r, defaultChecked: o, onCheckedChange: l, ...c } = w(e, Xc, D), [A, d] = vt({ prop: r, defaultProp: o, onChange: l });
|
|
1578
|
+
return n.createElement(vo, { "data-accent-color": s, ...c, defaultChecked: o, checked: A, onCheckedChange: d, asChild: !1, ref: t, className: p("rt-reset", "rt-BaseCheckboxRoot", "rt-CheckboxRoot", a) }, n.createElement(Bo, { asChild: !0, className: "rt-BaseCheckboxIndicator rt-CheckboxIndicator" }, n.createElement(A === "indeterminate" ? an : La, null)));
|
|
1579
1579
|
});
|
|
1580
1580
|
rn.displayName = "Checkbox";
|
|
1581
|
-
const _c = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], $c = ["solid", "soft", "outline", "ghost"], eA = { ...H, size: { type: "enum", className: "rt-r-size", values: _c, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: $c, default: "soft" }, ...$t, ...
|
|
1581
|
+
const _c = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], $c = ["solid", "soft", "outline", "ghost"], eA = { ...H, size: { type: "enum", className: "rt-r-size", values: _c, responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: $c, default: "soft" }, ...$t, ...At, ...le, ...Ye, ...Le }, tA = n.forwardRef((e, t) => {
|
|
1582
1582
|
const { asChild: a, className: s, color: r, ...o } = w(e, eA, D), l = e.variant === "ghost" ? r || void 0 : r, c = a ? ae : "code";
|
|
1583
|
-
return n.createElement(c, { "data-accent-color": l, ...o, ref: t, className:
|
|
1583
|
+
return n.createElement(c, { "data-accent-color": l, ...o, ref: t, className: p("rt-reset", "rt-Code", s) });
|
|
1584
1584
|
});
|
|
1585
1585
|
tA.displayName = "Code";
|
|
1586
1586
|
const aA = ["1", "2", "3", "4"], sA = ["none", "initial"], rA = ["left", "center", "right"], nA = { ...H, size: { type: "enum", className: "rt-r-size", values: aA, default: "4", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: sA, parseValue: oA, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: rA, parseValue: iA, responsive: !0 } };
|
|
@@ -1591,23 +1591,23 @@ function iA(e) {
|
|
|
1591
1591
|
return e === "left" ? "start" : e === "right" ? "end" : e;
|
|
1592
1592
|
}
|
|
1593
1593
|
const lA = n.forwardRef(({ width: e, minWidth: t, maxWidth: a, height: s, minHeight: r, maxHeight: o, ...l }, c) => {
|
|
1594
|
-
const { asChild: A, children: d, className: u, ...g } = w(l, nA, Qt, D), { className: C, style:
|
|
1595
|
-
return n.createElement(
|
|
1594
|
+
const { asChild: A, children: d, className: u, ...g } = w(l, nA, Qt, D), { className: C, style: I } = w({ width: e, minWidth: t, maxWidth: a, height: s, minHeight: r, maxHeight: o }, oe, ct), y = A ? ae : "div";
|
|
1595
|
+
return n.createElement(y, { ...g, ref: c, className: p("rt-Container", u) }, Va({ asChild: A, children: d }, (m) => n.createElement("div", { className: p("rt-ContainerInner", C), style: I }, m)));
|
|
1596
1596
|
});
|
|
1597
1597
|
lA.displayName = "Container";
|
|
1598
|
-
const cA = ["1", "2", "3"],
|
|
1598
|
+
const cA = ["1", "2", "3"], pt = { ...H, size: { values: cA, default: "1" }, ...ke, scrollbars: { default: "both" } };
|
|
1599
1599
|
function AA(e) {
|
|
1600
1600
|
const { m: t, mx: a, my: s, mt: r, mr: o, mb: l, ml: c, ...A } = e;
|
|
1601
1601
|
return { m: t, mx: a, my: s, mt: r, mr: o, mb: l, ml: c, rest: A };
|
|
1602
1602
|
}
|
|
1603
1603
|
const Oe = D.m.values;
|
|
1604
1604
|
function dA(e) {
|
|
1605
|
-
const [t, a] = we({ className: "rt-r-m", customProperties: ["--margin"], propValues: Oe, value: e.m }), [s, r] = we({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: Oe, value: e.mx }), [o, l] = we({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: Oe, value: e.my }), [c, A] = we({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: Oe, value: e.mt }), [d, u] = we({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: Oe, value: e.mr }), [g, C] = we({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: Oe, value: e.mb }), [
|
|
1606
|
-
return [
|
|
1605
|
+
const [t, a] = we({ className: "rt-r-m", customProperties: ["--margin"], propValues: Oe, value: e.m }), [s, r] = we({ className: "rt-r-mx", customProperties: ["--margin-left", "--margin-right"], propValues: Oe, value: e.mx }), [o, l] = we({ className: "rt-r-my", customProperties: ["--margin-top", "--margin-bottom"], propValues: Oe, value: e.my }), [c, A] = we({ className: "rt-r-mt", customProperties: ["--margin-top"], propValues: Oe, value: e.mt }), [d, u] = we({ className: "rt-r-mr", customProperties: ["--margin-right"], propValues: Oe, value: e.mr }), [g, C] = we({ className: "rt-r-mb", customProperties: ["--margin-bottom"], propValues: Oe, value: e.mb }), [I, y] = we({ className: "rt-r-ml", customProperties: ["--margin-left"], propValues: Oe, value: e.ml });
|
|
1606
|
+
return [p(t, s, o, c, d, g, I), Nt(a, r, l, A, u, C, y)];
|
|
1607
1607
|
}
|
|
1608
1608
|
const Ut = n.forwardRef((e, t) => {
|
|
1609
|
-
const { rest: a, ...s } = AA(e), [r, o] = dA(s), { asChild: l, children: c, className: A, style: d, type: u, scrollHideDelay: g = u !== "scroll" ? 0 : void 0, dir: C, size:
|
|
1610
|
-
return n.createElement(Js, { type: u, scrollHideDelay: g, className:
|
|
1609
|
+
const { rest: a, ...s } = AA(e), [r, o] = dA(s), { asChild: l, children: c, className: A, style: d, type: u, scrollHideDelay: g = u !== "scroll" ? 0 : void 0, dir: C, size: I = pt.size.default, radius: y = pt.radius.default, scrollbars: m = pt.scrollbars.default, ...h } = a;
|
|
1610
|
+
return n.createElement(Js, { type: u, scrollHideDelay: g, className: p("rt-ScrollAreaRoot", r, A), style: Nt(o, d), asChild: l }, Va({ asChild: l, children: c }, (S) => n.createElement(n.Fragment, null, n.createElement(Qs, { ...h, ref: t, className: "rt-ScrollAreaViewport" }, S), n.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), m !== "vertical" ? n.createElement(ua, { "data-radius": y, orientation: "horizontal", className: p("rt-ScrollAreaScrollbar", Bt({ className: "rt-r-size", value: I, propValues: pt.size.values })) }, n.createElement(ga, { className: "rt-ScrollAreaThumb" })) : null, m !== "horizontal" ? n.createElement(ua, { "data-radius": y, orientation: "vertical", className: p("rt-ScrollAreaScrollbar", Bt({ className: "rt-r-size", value: I, propValues: pt.size.values })) }, n.createElement(ga, { className: "rt-ScrollAreaThumb" })) : null, m === "both" ? n.createElement(No, { className: "rt-ScrollAreaCorner" }) : null)));
|
|
1611
1611
|
});
|
|
1612
1612
|
Ut.displayName = "ScrollArea";
|
|
1613
1613
|
const nn = (e) => n.createElement(xo, { ...e, modal: !0 });
|
|
@@ -1616,12 +1616,12 @@ const on = n.forwardRef(({ children: e, ...t }, a) => n.createElement(Do, { ...t
|
|
|
1616
1616
|
on.displayName = "Dialog.Trigger";
|
|
1617
1617
|
const ln = n.forwardRef(({ align: e, ...t }, a) => {
|
|
1618
1618
|
const { align: s, ...r } = Mr, { className: o } = w({ align: e }, { align: s }), { className: l, forceMount: c, container: A, ...d } = w(t, r);
|
|
1619
|
-
return n.createElement(bo, { container: A, forceMount: c }, n.createElement(Ue, { asChild: !0 }, n.createElement(Jo, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, n.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, n.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, n.createElement(Qo, { ...d, ref: a, className:
|
|
1619
|
+
return n.createElement(bo, { container: A, forceMount: c }, n.createElement(Ue, { asChild: !0 }, n.createElement(Jo, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, n.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, n.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${o}` }, n.createElement(Qo, { ...d, ref: a, className: p("rt-BaseDialogContent", "rt-DialogContent", l) }))))));
|
|
1620
1620
|
});
|
|
1621
1621
|
ln.displayName = "Dialog.Content";
|
|
1622
1622
|
const cn = n.forwardRef((e, t) => n.createElement(To, { asChild: !0 }, n.createElement(Ka, { size: "5", mb: "3", trim: "start", ...e, asChild: !1, ref: t })));
|
|
1623
1623
|
cn.displayName = "Dialog.Title";
|
|
1624
|
-
const An = n.forwardRef((e, t) => n.createElement(Uo, { asChild: !0 }, n.createElement(
|
|
1624
|
+
const An = n.forwardRef((e, t) => n.createElement(Uo, { asChild: !0 }, n.createElement(J, { as: "p", size: "3", ...e, asChild: !1, ref: t })));
|
|
1625
1625
|
An.displayName = "Dialog.Description";
|
|
1626
1626
|
const dn = n.forwardRef(({ children: e, ...t }, a) => n.createElement(wo, { ...t, ref: a, asChild: !0 }, xe(e)));
|
|
1627
1627
|
dn.displayName = "Dialog.Close";
|
|
@@ -1635,16 +1635,16 @@ const Kh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1635
1635
|
Trigger: on
|
|
1636
1636
|
}, Symbol.toStringTag, { value: "Module" })), uA = { ...H, ...Ye, ...Le }, gA = n.forwardRef((e, t) => {
|
|
1637
1637
|
const { asChild: a, className: s, ...r } = w(e, uA), o = a ? ae : "em";
|
|
1638
|
-
return n.createElement(o, { ...r, ref: t, className:
|
|
1638
|
+
return n.createElement(o, { ...r, ref: t, className: p("rt-Em", s) });
|
|
1639
1639
|
});
|
|
1640
1640
|
gA.displayName = "Em";
|
|
1641
|
-
const mA = ["1", "2", "3"], pA = { ...H, size: { type: "enum", className: "rt-r-size", values: mA, default: "2", responsive: !0 }, width: oe.width, minWidth: oe.minWidth, maxWidth: { ...oe.maxWidth, default: "480px" }, ...
|
|
1641
|
+
const mA = ["1", "2", "3"], pA = { ...H, size: { type: "enum", className: "rt-r-size", values: mA, default: "2", responsive: !0 }, width: oe.width, minWidth: oe.minWidth, maxWidth: { ...oe.maxWidth, default: "480px" }, ...ct }, un = (e) => n.createElement(Oo, { closeDelay: 150, openDelay: 200, ...e });
|
|
1642
1642
|
un.displayName = "HoverCard.Root";
|
|
1643
|
-
const gn = n.forwardRef(({ children: e, className: t, ...a }, s) => n.createElement(Ko, { ref: s, className:
|
|
1643
|
+
const gn = n.forwardRef(({ children: e, className: t, ...a }, s) => n.createElement(Ko, { ref: s, className: p("rt-HoverCardTrigger", t), ...a, asChild: !0 }, xe(e)));
|
|
1644
1644
|
gn.displayName = "HoverCard.Trigger";
|
|
1645
1645
|
const mn = n.forwardRef((e, t) => {
|
|
1646
1646
|
const { className: a, forceMount: s, container: r, ...o } = w(e, pA);
|
|
1647
|
-
return n.createElement(Mo, { container: r, forceMount: s }, n.createElement(Ue, { asChild: !0 }, n.createElement(Fo, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: t, className:
|
|
1647
|
+
return n.createElement(Mo, { container: r, forceMount: s }, n.createElement(Ue, { asChild: !0 }, n.createElement(Fo, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: t, className: p("rt-PopperContent", "rt-HoverCardContent", a) })));
|
|
1648
1648
|
});
|
|
1649
1649
|
mn.displayName = "HoverCard.Content";
|
|
1650
1650
|
const zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1652,7 +1652,7 @@ const zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1652
1652
|
Content: mn,
|
|
1653
1653
|
Root: un,
|
|
1654
1654
|
Trigger: gn
|
|
1655
|
-
}, Symbol.toStringTag, { value: "Module" })), pn = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Wa, { ...t, ref: a, className:
|
|
1655
|
+
}, Symbol.toStringTag, { value: "Module" })), pn = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Wa, { ...t, ref: a, className: p("rt-IconButton", e) }));
|
|
1656
1656
|
pn.displayName = "IconButton";
|
|
1657
1657
|
const hA = ["all", "x", "y", "top", "bottom", "left", "right"], fA = ["border-box", "padding-box"], Ke = ["current", "0"], CA = { ...H, side: { type: "enum", className: "rt-r-side", values: hA, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: fA, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: Ke, parseValue: ze, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: Ke, parseValue: ze, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: Ke, parseValue: ze, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: Ke, parseValue: ze, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: Ke, parseValue: ze, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: Ke, parseValue: ze, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: Ke, parseValue: ze, responsive: !0 } };
|
|
1658
1658
|
function ze(e) {
|
|
@@ -1660,26 +1660,26 @@ function ze(e) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
const SA = n.forwardRef((e, t) => {
|
|
1662
1662
|
const { asChild: a, className: s, ...r } = w(e, CA, D), o = a ? ae : "div";
|
|
1663
|
-
return n.createElement(o, { ...r, ref: t, className:
|
|
1663
|
+
return n.createElement(o, { ...r, ref: t, className: p("rt-Inset", s) });
|
|
1664
1664
|
});
|
|
1665
1665
|
SA.displayName = "Inset";
|
|
1666
1666
|
const IA = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], kA = { ...H, size: { type: "enum", className: "rt-r-size", values: IA, responsive: !0 } }, EA = n.forwardRef((e, t) => {
|
|
1667
1667
|
const { asChild: a, className: s, ...r } = w(e, kA, D), o = a ? ae : "kbd";
|
|
1668
|
-
return n.createElement(o, { ...r, ref: t, className:
|
|
1668
|
+
return n.createElement(o, { ...r, ref: t, className: p("rt-reset", "rt-Kbd", s) });
|
|
1669
1669
|
});
|
|
1670
1670
|
EA.displayName = "Kbd";
|
|
1671
|
-
const yA = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], RA = ["auto", "always", "hover", "none"], vA = { ...H, size: { type: "enum", className: "rt-r-size", values: yA, responsive: !0 }, ...$t, ...Fa, ...Ye, ...Le, underline: { type: "enum", className: "rt-underline", values: RA, default: "auto" }, ...
|
|
1671
|
+
const yA = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], RA = ["auto", "always", "hover", "none"], vA = { ...H, size: { type: "enum", className: "rt-r-size", values: yA, responsive: !0 }, ...$t, ...Fa, ...Ye, ...Le, underline: { type: "enum", className: "rt-underline", values: RA, default: "auto" }, ...At, ...le }, BA = n.forwardRef((e, t) => {
|
|
1672
1672
|
const { children: a, className: s, color: r, asChild: o, ...l } = w(e, vA);
|
|
1673
|
-
return n.createElement(
|
|
1673
|
+
return n.createElement(J, { ...l, "data-accent-color": r, ref: t, asChild: !0, className: p("rt-reset", "rt-Link", s) }, o ? a : n.createElement("a", null, a));
|
|
1674
1674
|
});
|
|
1675
1675
|
BA.displayName = "Link";
|
|
1676
|
-
const NA = ["1", "2", "3", "4"], wA = { ...H, size: { type: "enum", className: "rt-r-size", values: NA, default: "2", responsive: !0 }, width: oe.width, minWidth: oe.minWidth, maxWidth: { ...oe.maxWidth, default: "480px" }, ...
|
|
1676
|
+
const NA = ["1", "2", "3", "4"], wA = { ...H, size: { type: "enum", className: "rt-r-size", values: NA, default: "2", responsive: !0 }, width: oe.width, minWidth: oe.minWidth, maxWidth: { ...oe.maxWidth, default: "480px" }, ...ct }, Ya = (e) => n.createElement(xs, { ...e });
|
|
1677
1677
|
Ya.displayName = "Popover.Root";
|
|
1678
1678
|
const Xa = n.forwardRef(({ children: e, ...t }, a) => n.createElement(Ts, { ...t, ref: a, asChild: !0 }, xe(e)));
|
|
1679
1679
|
Xa.displayName = "Popover.Trigger";
|
|
1680
1680
|
const Za = n.forwardRef((e, t) => {
|
|
1681
1681
|
const { className: a, forceMount: s, container: r, ...o } = w(e, wA);
|
|
1682
|
-
return n.createElement(qo, { container: r, forceMount: s }, n.createElement(Ue, { asChild: !0 }, n.createElement(Us, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: t, className:
|
|
1682
|
+
return n.createElement(qo, { container: r, forceMount: s }, n.createElement(Ue, { asChild: !0 }, n.createElement(Us, { align: "start", sideOffset: 8, collisionPadding: 10, ...o, ref: t, className: p("rt-PopperContent", "rt-PopoverContent", a) })));
|
|
1683
1683
|
});
|
|
1684
1684
|
Za.displayName = "Popover.Content";
|
|
1685
1685
|
const hn = n.forwardRef(({ children: e, ...t }, a) => n.createElement(Vo, { ...t, ref: a, asChild: !0 }, xe(e)));
|
|
@@ -1695,34 +1695,34 @@ const Vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1695
1695
|
Trigger: Xa
|
|
1696
1696
|
}, Symbol.toStringTag, { value: "Module" })), bA = ["1", "2", "3"], JA = ["classic", "surface", "soft"], QA = { size: { type: "enum", className: "rt-r-size", values: bA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: JA, default: "surface" }, ...Ae, ...le, ...ke, duration: { type: "string" } }, UA = n.forwardRef((e, t) => {
|
|
1697
1697
|
const { className: a, style: s, color: r, radius: o, duration: l, ...c } = w(e, QA, D);
|
|
1698
|
-
return n.createElement(Po, { "data-accent-color": r, "data-radius": o, ref: t, className:
|
|
1698
|
+
return n.createElement(Po, { "data-accent-color": r, "data-radius": o, ref: t, className: p("rt-ProgressRoot", a), style: Nt({ "--progress-duration": "value" in c ? void 0 : l, "--progress-value": "value" in c ? c.value : void 0, "--progress-max": "max" in c ? c.max : void 0 }, s), ...c, asChild: !1 }, n.createElement(Wo, { className: "rt-ProgressIndicator" }));
|
|
1699
1699
|
});
|
|
1700
1700
|
UA.displayName = "Progress";
|
|
1701
1701
|
const xA = { ...H, ...Ye, ...Le }, TA = n.forwardRef((e, t) => {
|
|
1702
1702
|
const { asChild: a, className: s, ...r } = w(e, xA), o = a ? ae : "q";
|
|
1703
|
-
return n.createElement(o, { ...r, ref: t, className:
|
|
1703
|
+
return n.createElement(o, { ...r, ref: t, className: p("rt-Quote", s) });
|
|
1704
1704
|
});
|
|
1705
1705
|
TA.displayName = "Quote";
|
|
1706
1706
|
const DA = ["1", "2", "3"], MA = ["surface", "classic"], FA = { ...H, size: { type: "enum", className: "rt-r-size", values: DA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: MA, default: "surface" }, ...Ae, ...le, columns: { ...Lt.columns, default: "repeat(auto-fit, minmax(160px, 1fr))" }, gap: { ...Lt.gap, default: "4" } }, Cn = n.forwardRef((e, t) => {
|
|
1707
1707
|
const { className: a, color: s, ...r } = w(e, FA, D);
|
|
1708
|
-
return n.createElement(tn, { asChild: !0 }, n.createElement(Ds, { "data-accent-color": s, ...r, ref: t, className:
|
|
1708
|
+
return n.createElement(tn, { asChild: !0 }, n.createElement(Ds, { "data-accent-color": s, ...r, ref: t, className: p("rt-RadioCardsRoot", a) }));
|
|
1709
1709
|
});
|
|
1710
1710
|
Cn.displayName = "RadioCards.Root";
|
|
1711
|
-
const _a = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Ms, { ...t, asChild: !1, ref: a, className:
|
|
1711
|
+
const _a = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Ms, { ...t, asChild: !1, ref: a, className: p("rt-reset", "rt-BaseCard", "rt-RadioCardsItem", e) }));
|
|
1712
1712
|
_a.displayName = "RadioCards.Item";
|
|
1713
|
-
const OA = ["1", "2", "3"], KA = ["classic", "surface", "soft"],
|
|
1713
|
+
const OA = ["1", "2", "3"], KA = ["classic", "surface", "soft"], kt = { ...H, size: { type: "enum", className: "rt-r-size", values: OA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: KA, default: "surface" }, ...Ae, ...le }, Sn = "RadioGroup", [zA] = wa(Sn, [Fs]), In = Fs(), [VA, kn] = zA(Sn), En = n.forwardRef(({ color: e = kt.color.default, highContrast: t = kt.highContrast.default, size: a = kt.size.default, variant: s = kt.variant.default, ...r }, o) => {
|
|
1714
1714
|
const { __scopeRadioGroup: l, className: c, ...A } = w(r, D), d = In(l);
|
|
1715
|
-
return n.createElement(VA, { scope: l, color: e, highContrast: t, size: a, variant: s }, n.createElement(Ds, { ...d, ...A, ref: o, className:
|
|
1715
|
+
return n.createElement(VA, { scope: l, color: e, highContrast: t, size: a, variant: s }, n.createElement(Ds, { ...d, ...A, ref: o, className: p("rt-RadioGroupRoot", c) }));
|
|
1716
1716
|
});
|
|
1717
1717
|
En.displayName = "RadioGroup.Root";
|
|
1718
1718
|
const yn = n.forwardRef((e, t) => {
|
|
1719
1719
|
const { __scopeRadioGroup: a, children: s, className: r, style: o, ...l } = e, { size: c } = kn("RadioGroupItem", a);
|
|
1720
|
-
return s ? n.createElement(
|
|
1720
|
+
return s ? n.createElement(J, { as: "label", size: c, className: p("rt-RadioGroupItem", r), style: o }, n.createElement(Ea, { __scopeRadioGroup: a, ...l, ref: t }), s && n.createElement("span", { className: "rt-RadioGroupItemInner" }, s)) : n.createElement(Ea, { __scopeRadioGroup: a, ...l, ref: t, className: r, style: o });
|
|
1721
1721
|
});
|
|
1722
1722
|
yn.displayName = "RadioGroup.Item";
|
|
1723
1723
|
const Ea = n.forwardRef(({ __scopeRadioGroup: e, ...t }, a) => {
|
|
1724
|
-
const s = kn("RadioGroupItemRadio", e), r = In(e), { color: o, className: l } = w({ ...t, ...s },
|
|
1725
|
-
return n.createElement(Ms, { ...r, "data-accent-color": o, ...t, asChild: !1, ref: a, className:
|
|
1724
|
+
const s = kn("RadioGroupItemRadio", e), r = In(e), { color: o, className: l } = w({ ...t, ...s }, kt, D);
|
|
1725
|
+
return n.createElement(Ms, { ...r, "data-accent-color": o, ...t, asChild: !1, ref: a, className: p("rt-reset", "rt-BaseRadioRoot", l) });
|
|
1726
1726
|
});
|
|
1727
1727
|
Ea.displayName = "RadioGroup.ItemRadio";
|
|
1728
1728
|
const qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1731,17 +1731,17 @@ const qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1731
1731
|
Root: En
|
|
1732
1732
|
}, Symbol.toStringTag, { value: "Module" })), qA = ["1", "2", "3"], PA = ["classic", "surface", "soft"], WA = { size: { type: "enum", className: "rt-r-size", values: qA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: PA, default: "surface" }, ...Ae, ...le }, jA = n.forwardRef((e, t) => {
|
|
1733
1733
|
const a = n.useRef(null), { className: s, color: r, onChange: o, onValueChange: l, ...c } = w(e, WA, D);
|
|
1734
|
-
return n.createElement("input", { type: "radio", "data-accent-color": r, ...c, onChange: L(o, (A) => l == null ? void 0 : l(A.currentTarget.value)), ref: Os(a, t), className:
|
|
1734
|
+
return n.createElement("input", { type: "radio", "data-accent-color": r, ...c, onChange: L(o, (A) => l == null ? void 0 : l(A.currentTarget.value)), ref: Os(a, t), className: p("rt-reset", "rt-BaseRadioRoot", "rt-RadioRoot", s) });
|
|
1735
1735
|
});
|
|
1736
1736
|
jA.displayName = "Radio";
|
|
1737
1737
|
const HA = ["1", "2", "3"], GA = ["surface", "classic"], LA = { disabled: { type: "boolean", className: "disabled", default: !1 }, size: { type: "enum", className: "rt-r-size", values: HA, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: GA, default: "surface" }, ...ke }, Rn = n.forwardRef((e, t) => {
|
|
1738
|
-
const { className: a, children: s, radius: r, value: o, defaultValue: l, onValueChange: c, ...A } = w(e, LA, D), [d, u] =
|
|
1739
|
-
return n.createElement(jo, { "data-disabled": e.disabled || void 0, "data-radius": r, ref: t, className:
|
|
1738
|
+
const { className: a, children: s, radius: r, value: o, defaultValue: l, onValueChange: c, ...A } = w(e, LA, D), [d, u] = vt({ prop: o, onChange: c, defaultProp: l });
|
|
1739
|
+
return n.createElement(jo, { "data-disabled": e.disabled || void 0, "data-radius": r, ref: t, className: p("rt-SegmentedControlRoot", a), onValueChange: (g) => {
|
|
1740
1740
|
g && u(g);
|
|
1741
1741
|
}, ...A, type: "single", value: d, asChild: !1, disabled: !!e.disabled }, s, n.createElement("div", { className: "rt-SegmentedControlIndicator" }));
|
|
1742
1742
|
});
|
|
1743
1743
|
Rn.displayName = "SegmentedControl.Root";
|
|
1744
|
-
const vn = n.forwardRef(({ children: e, className: t, ...a }, s) => n.createElement(Ho, { ref: s, className:
|
|
1744
|
+
const vn = n.forwardRef(({ children: e, className: t, ...a }, s) => n.createElement(Ho, { ref: s, className: p("rt-reset", "rt-SegmentedControlItem", t), ...a, disabled: !1, asChild: !1 }, n.createElement("span", { className: "rt-SegmentedControlItemSeparator" }), n.createElement("span", { className: "rt-SegmentedControlItemLabel" }, n.createElement("span", { className: "rt-SegmentedControlItemLabelActive" }, e), n.createElement("span", { className: "rt-SegmentedControlItemLabelInactive", "aria-hidden": !0 }, e))));
|
|
1745
1745
|
vn.displayName = "SegmentedControl.Item";
|
|
1746
1746
|
const YA = ["1", "2", "3", "4"], XA = ["none", "initial"], ZA = { ...H, size: { type: "enum", className: "rt-r-size", values: YA, default: "3", responsive: !0 }, display: { type: "enum", className: "rt-r-display", values: XA, parseValue: _A, responsive: !0 } };
|
|
1747
1747
|
function _A(e) {
|
|
@@ -1749,7 +1749,7 @@ function _A(e) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
const $A = n.forwardRef((e, t) => {
|
|
1751
1751
|
const { asChild: a, className: s, ...r } = w(e, ZA, Qt, D), o = a ? ae : "section";
|
|
1752
|
-
return n.createElement(o, { ...r, ref: t, className:
|
|
1752
|
+
return n.createElement(o, { ...r, ref: t, className: p("rt-Section", s) });
|
|
1753
1753
|
});
|
|
1754
1754
|
$A.displayName = "Section";
|
|
1755
1755
|
const ed = ["1", "2", "3"], $a = { size: { type: "enum", className: "rt-r-size", values: ed, default: "2", responsive: !0 } }, td = ["classic", "surface", "soft", "ghost"], ad = { variant: { type: "enum", className: "rt-variant", values: td, default: "surface" }, ...Ae, ...ke, placeholder: { type: "string" } }, sd = ["solid", "soft"], rd = { variant: { type: "enum", className: "rt-variant", values: sd, default: "solid" }, ...Ae, ...le }, es = n.createContext({}), ts = (e) => {
|
|
@@ -1759,82 +1759,82 @@ const ed = ["1", "2", "3"], $a = { size: { type: "enum", className: "rt-r-size",
|
|
|
1759
1759
|
ts.displayName = "Select.Root";
|
|
1760
1760
|
const as = n.forwardRef((e, t) => {
|
|
1761
1761
|
const a = n.useContext(es), { children: s, className: r, color: o, radius: l, placeholder: c, ...A } = w({ size: a == null ? void 0 : a.size, ...e }, { size: $a.size }, ad, D);
|
|
1762
|
-
return n.createElement(fl, { asChild: !0 }, n.createElement("button", { "data-accent-color": o, "data-radius": l, ...A, ref: t, className:
|
|
1762
|
+
return n.createElement(fl, { asChild: !0 }, n.createElement("button", { "data-accent-color": o, "data-radius": l, ...A, ref: t, className: p("rt-reset", "rt-SelectTrigger", r) }, n.createElement("span", { className: "rt-SelectTriggerInner" }, n.createElement(Cl, { placeholder: c }, s)), n.createElement(Sl, { asChild: !0 }, n.createElement(sn, { className: "rt-SelectIcon" }))));
|
|
1763
1763
|
});
|
|
1764
1764
|
as.displayName = "Select.Trigger";
|
|
1765
1765
|
const ss = n.forwardRef((e, t) => {
|
|
1766
1766
|
const a = n.useContext(es), { className: s, children: r, color: o, container: l, ...c } = w({ size: a == null ? void 0 : a.size, ...e }, { size: $a.size }, rd), A = oc(), d = o || A.accentColor;
|
|
1767
|
-
return n.createElement(Il, { container: l }, n.createElement(Ue, { asChild: !0 }, n.createElement(kl, { "data-accent-color": d, sideOffset: 4, ...c, asChild: !1, ref: t, className:
|
|
1767
|
+
return n.createElement(Il, { container: l }, n.createElement(Ue, { asChild: !0 }, n.createElement(kl, { "data-accent-color": d, sideOffset: 4, ...c, asChild: !1, ref: t, className: p({ "rt-PopperContent": c.position === "popper" }, "rt-SelectContent", s) }, n.createElement(Js, { type: "auto", className: "rt-ScrollAreaRoot" }, n.createElement(El, { asChild: !0, className: "rt-SelectViewport" }, n.createElement(Qs, { className: "rt-ScrollAreaViewport", style: { overflowY: void 0 } }, r)), n.createElement(ua, { className: "rt-ScrollAreaScrollbar rt-r-size-1", orientation: "vertical" }, n.createElement(ga, { className: "rt-ScrollAreaThumb" }))))));
|
|
1768
1768
|
});
|
|
1769
1769
|
ss.displayName = "Select.Content";
|
|
1770
1770
|
const Bn = n.forwardRef((e, t) => {
|
|
1771
1771
|
const { className: a, children: s, ...r } = e;
|
|
1772
|
-
return n.createElement(vl, { ...r, asChild: !1, ref: t, className:
|
|
1772
|
+
return n.createElement(vl, { ...r, asChild: !1, ref: t, className: p("rt-SelectItem", a) }, n.createElement(Nl, { className: "rt-SelectItemIndicator" }, n.createElement(La, { className: "rt-SelectItemIndicatorIcon" })), n.createElement(Bl, null, s));
|
|
1773
1773
|
});
|
|
1774
1774
|
Bn.displayName = "Select.Item";
|
|
1775
|
-
const rs = n.forwardRef(({ className: e, ...t }, a) => n.createElement(yl, { ...t, asChild: !1, ref: a, className:
|
|
1775
|
+
const rs = n.forwardRef(({ className: e, ...t }, a) => n.createElement(yl, { ...t, asChild: !1, ref: a, className: p("rt-SelectGroup", e) }));
|
|
1776
1776
|
rs.displayName = "Select.Group";
|
|
1777
|
-
const nd = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Rl, { ...t, asChild: !1, ref: a, className:
|
|
1777
|
+
const nd = n.forwardRef(({ className: e, ...t }, a) => n.createElement(Rl, { ...t, asChild: !1, ref: a, className: p("rt-SelectLabel", e) }));
|
|
1778
1778
|
nd.displayName = "Select.Label";
|
|
1779
|
-
const od = n.forwardRef(({ className: e, ...t }, a) => n.createElement(wl, { ...t, asChild: !1, ref: a, className:
|
|
1779
|
+
const od = n.forwardRef(({ className: e, ...t }, a) => n.createElement(wl, { ...t, asChild: !1, ref: a, className: p("rt-SelectSeparator", e) }));
|
|
1780
1780
|
od.displayName = "Select.Separator";
|
|
1781
|
-
const id = ["horizontal", "vertical"], ld = ["1", "2", "3", "4"], cd = { orientation: { type: "enum", className: "rt-r-orientation", values: id, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: ld, default: "1", responsive: !0 }, color: { ...Ae.color, default: "gray" }, decorative: { type: "boolean", default: !0 } },
|
|
1781
|
+
const id = ["horizontal", "vertical"], ld = ["1", "2", "3", "4"], cd = { orientation: { type: "enum", className: "rt-r-orientation", values: id, default: "horizontal", responsive: !0 }, size: { type: "enum", className: "rt-r-size", values: ld, default: "1", responsive: !0 }, color: { ...Ae.color, default: "gray" }, decorative: { type: "boolean", default: !0 } }, ot = n.forwardRef((e, t) => {
|
|
1782
1782
|
const { className: a, color: s, decorative: r, ...o } = w(e, cd, D);
|
|
1783
|
-
return n.createElement("span", { "data-accent-color": s, role: r ? void 0 : "separator", ...o, ref: t, className:
|
|
1783
|
+
return n.createElement("span", { "data-accent-color": s, role: r ? void 0 : "separator", ...o, ref: t, className: p("rt-Separator", a) });
|
|
1784
1784
|
});
|
|
1785
|
-
|
|
1786
|
-
const Ad = parseFloat(n.version) >= 19 || "", dd = { loading: { type: "boolean", default: !0 }, ...oe, ...
|
|
1785
|
+
ot.displayName = "Separator";
|
|
1786
|
+
const Ad = parseFloat(n.version) >= 19 || "", dd = { loading: { type: "boolean", default: !0 }, ...oe, ...ct }, ud = n.forwardRef((e, t) => {
|
|
1787
1787
|
const { children: a, className: s, loading: r, ...o } = w(e, dd, D);
|
|
1788
1788
|
if (!r) return a;
|
|
1789
1789
|
const l = n.isValidElement(a) ? ae : "span";
|
|
1790
|
-
return n.createElement(l, { ref: t, "aria-hidden": !0, className:
|
|
1790
|
+
return n.createElement(l, { ref: t, "aria-hidden": !0, className: p("rt-Skeleton", s), "data-inline-skeleton": n.isValidElement(a) ? void 0 : !0, tabIndex: -1, inert: Ad, ...o }, a);
|
|
1791
1791
|
});
|
|
1792
1792
|
ud.displayName = "Skeleton";
|
|
1793
1793
|
const gd = { ...H, ...Ye, ...Le }, md = n.forwardRef((e, t) => {
|
|
1794
1794
|
const { asChild: a, className: s, ...r } = w(e, gd), o = a ? ae : "strong";
|
|
1795
|
-
return n.createElement(o, { ...r, ref: t, className:
|
|
1795
|
+
return n.createElement(o, { ...r, ref: t, className: p("rt-Strong", s) });
|
|
1796
1796
|
});
|
|
1797
1797
|
md.displayName = "Strong";
|
|
1798
1798
|
const pd = ["1", "2", "3"], hd = ["classic", "surface", "soft"], fd = { size: { type: "enum", className: "rt-r-size", values: pd, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: hd, default: "surface" }, ...Ae, ...le, ...ke }, wt = n.forwardRef((e, t) => {
|
|
1799
1799
|
const { className: a, color: s, radius: r, ...o } = w(e, fd, D);
|
|
1800
|
-
return n.createElement(Go, { "data-accent-color": s, "data-radius": r, ...o, asChild: !1, ref: t, className:
|
|
1800
|
+
return n.createElement(Go, { "data-accent-color": s, "data-radius": r, ...o, asChild: !1, ref: t, className: p("rt-reset", "rt-SwitchRoot", a) }, n.createElement(Lo, { className: p("rt-SwitchThumb", { "rt-high-contrast": e.highContrast }) }));
|
|
1801
1801
|
});
|
|
1802
1802
|
wt.displayName = "Switch";
|
|
1803
1803
|
const Cd = ["1", "2"], Sd = ["nowrap", "wrap", "wrap-reverse"], Id = ["start", "center", "end"], kd = { size: { type: "enum", className: "rt-r-size", values: Cd, default: "2", responsive: !0 }, wrap: { type: "enum", className: "rt-r-fw", values: Sd, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Id, responsive: !0 }, ...Ae, ...le }, Ed = ["1", "2", "3"], yd = ["surface", "ghost"], Rd = ["auto", "fixed"], la = { size: { type: "enum", className: "rt-r-size", values: Ed, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: yd, default: "ghost" }, layout: { type: "enum", className: "rt-r-tl", values: Rd, responsive: !0 } }, vd = ["start", "center", "end", "baseline"], Bd = { align: { type: "enum", className: "rt-r-va", values: vd, parseValue: Nd, responsive: !0 } };
|
|
1804
1804
|
function Nd(e) {
|
|
1805
1805
|
return { baseline: "baseline", start: "top", center: "middle", end: "bottom" }[e];
|
|
1806
1806
|
}
|
|
1807
|
-
const wd = ["start", "center", "end"], ns = { justify: { type: "enum", className: "rt-r-ta", values: wd, parseValue: bd, responsive: !0 }, ...oe, ...
|
|
1807
|
+
const wd = ["start", "center", "end"], ns = { justify: { type: "enum", className: "rt-r-ta", values: wd, parseValue: bd, responsive: !0 }, ...oe, ...yt };
|
|
1808
1808
|
function bd(e) {
|
|
1809
1809
|
return { start: "left", center: "center", end: "right" }[e];
|
|
1810
1810
|
}
|
|
1811
1811
|
const Nn = n.forwardRef((e, t) => {
|
|
1812
|
-
const { layout: a, ...s } = la, { className: r, children: o, layout: l, ...c } = w(e, s, D), A =
|
|
1813
|
-
return n.createElement("div", { ref: t, className:
|
|
1812
|
+
const { layout: a, ...s } = la, { className: r, children: o, layout: l, ...c } = w(e, s, D), A = Bt({ value: l, className: la.layout.className, propValues: la.layout.values });
|
|
1813
|
+
return n.createElement("div", { ref: t, className: p("rt-TableRoot", r), ...c }, n.createElement(Ut, null, n.createElement("table", { className: p("rt-TableRootTable", A) }, o)));
|
|
1814
1814
|
});
|
|
1815
1815
|
Nn.displayName = "Table.Root";
|
|
1816
|
-
const wn = n.forwardRef(({ className: e, ...t }, a) => n.createElement("thead", { ...t, ref: a, className:
|
|
1816
|
+
const wn = n.forwardRef(({ className: e, ...t }, a) => n.createElement("thead", { ...t, ref: a, className: p("rt-TableHeader", e) }));
|
|
1817
1817
|
wn.displayName = "Table.Header";
|
|
1818
|
-
const bn = n.forwardRef(({ className: e, ...t }, a) => n.createElement("tbody", { ...t, ref: a, className:
|
|
1818
|
+
const bn = n.forwardRef(({ className: e, ...t }, a) => n.createElement("tbody", { ...t, ref: a, className: p("rt-TableBody", e) }));
|
|
1819
1819
|
bn.displayName = "Table.Body";
|
|
1820
1820
|
const Jn = n.forwardRef((e, t) => {
|
|
1821
1821
|
const { className: a, ...s } = w(e, Bd);
|
|
1822
|
-
return n.createElement("tr", { ...s, ref: t, className:
|
|
1822
|
+
return n.createElement("tr", { ...s, ref: t, className: p("rt-TableRow", a) });
|
|
1823
1823
|
});
|
|
1824
1824
|
Jn.displayName = "Table.Row";
|
|
1825
1825
|
const Qn = n.forwardRef((e, t) => {
|
|
1826
1826
|
const { className: a, ...s } = w(e, ns);
|
|
1827
|
-
return n.createElement("td", { className:
|
|
1827
|
+
return n.createElement("td", { className: p("rt-TableCell", a), ref: t, ...s });
|
|
1828
1828
|
});
|
|
1829
1829
|
Qn.displayName = "Table.Cell";
|
|
1830
1830
|
const Un = n.forwardRef((e, t) => {
|
|
1831
1831
|
const { className: a, ...s } = w(e, ns);
|
|
1832
|
-
return n.createElement("th", { className:
|
|
1832
|
+
return n.createElement("th", { className: p("rt-TableCell", "rt-TableColumnHeaderCell", a), scope: "col", ref: t, ...s });
|
|
1833
1833
|
});
|
|
1834
1834
|
Un.displayName = "Table.ColumnHeaderCell";
|
|
1835
1835
|
const xn = n.forwardRef((e, t) => {
|
|
1836
1836
|
const { className: a, ...s } = w(e, ns);
|
|
1837
|
-
return n.createElement("th", { className:
|
|
1837
|
+
return n.createElement("th", { className: p("rt-TableCell", "rt-TableRowHeaderCell", a), scope: "row", ref: t, ...s });
|
|
1838
1838
|
});
|
|
1839
1839
|
xn.displayName = "Table.RowHeaderCell";
|
|
1840
1840
|
const Ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1848,22 +1848,22 @@ const Ph = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1848
1848
|
RowHeaderCell: xn
|
|
1849
1849
|
}, Symbol.toStringTag, { value: "Module" })), Tn = n.forwardRef((e, t) => {
|
|
1850
1850
|
const { className: a, ...s } = w(e, D);
|
|
1851
|
-
return n.createElement(Zo, { ...s, ref: t, className:
|
|
1851
|
+
return n.createElement(Zo, { ...s, ref: t, className: p("rt-TabsRoot", a) });
|
|
1852
1852
|
});
|
|
1853
1853
|
Tn.displayName = "Tabs.Root";
|
|
1854
1854
|
const Dn = n.forwardRef((e, t) => {
|
|
1855
1855
|
const { className: a, color: s, ...r } = w(e, kd, D);
|
|
1856
|
-
return n.createElement(Xo, { "data-accent-color": s, ...r, asChild: !1, ref: t, className:
|
|
1856
|
+
return n.createElement(Xo, { "data-accent-color": s, ...r, asChild: !1, ref: t, className: p("rt-BaseTabList", "rt-TabsList", a) });
|
|
1857
1857
|
});
|
|
1858
1858
|
Dn.displayName = "Tabs.List";
|
|
1859
1859
|
const Mn = n.forwardRef((e, t) => {
|
|
1860
1860
|
const { className: a, children: s, ...r } = e;
|
|
1861
|
-
return n.createElement(_o, { ...r, asChild: !1, ref: t, className:
|
|
1861
|
+
return n.createElement(_o, { ...r, asChild: !1, ref: t, className: p("rt-reset", "rt-BaseTabListTrigger", "rt-TabsTrigger", a) }, n.createElement("span", { className: "rt-BaseTabListTriggerInner rt-TabsTriggerInner" }, s), n.createElement("span", { className: "rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden" }, s));
|
|
1862
1862
|
});
|
|
1863
1863
|
Mn.displayName = "Tabs.Trigger";
|
|
1864
1864
|
const Fn = n.forwardRef((e, t) => {
|
|
1865
1865
|
const { className: a, ...s } = w(e, D);
|
|
1866
|
-
return n.createElement(Yo, { ...s, ref: t, className:
|
|
1866
|
+
return n.createElement(Yo, { ...s, ref: t, className: p("rt-TabsContent", a) });
|
|
1867
1867
|
});
|
|
1868
1868
|
Fn.displayName = "Tabs.Content";
|
|
1869
1869
|
const Wh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1874,12 +1874,12 @@ const Wh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1874
1874
|
Trigger: Mn
|
|
1875
1875
|
}, Symbol.toStringTag, { value: "Module" })), Jd = ["1", "2", "3"], Qd = ["classic", "surface", "soft"], Ud = ["none", "vertical", "horizontal", "both"], xd = { size: { type: "enum", className: "rt-r-size", values: Jd, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Qd, default: "surface" }, resize: { type: "enum", className: "rt-r-resize", values: Ud, responsive: !0 }, ...Ae, ...ke }, On = n.forwardRef((e, t) => {
|
|
1876
1876
|
const { className: a, color: s, radius: r, style: o, ...l } = w(e, xd, D);
|
|
1877
|
-
return n.createElement("div", { "data-accent-color": s, "data-radius": r, className:
|
|
1877
|
+
return n.createElement("div", { "data-accent-color": s, "data-radius": r, className: p("rt-TextAreaRoot", a), style: o }, n.createElement("textarea", { className: "rt-reset rt-TextAreaInput", ref: t, ...l }));
|
|
1878
1878
|
});
|
|
1879
1879
|
On.displayName = "TextArea";
|
|
1880
|
-
const Td = ["1", "2", "3"], Dd = ["classic", "surface", "soft"], Md = { size: { type: "enum", className: "rt-r-size", values: Td, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Dd, default: "surface" }, ...Ae, ...ke }, Fd = ["left", "right"], Od = { side: { type: "enum", values: Fd }, ...Ae, gap: Xr.gap, px:
|
|
1880
|
+
const Td = ["1", "2", "3"], Dd = ["classic", "surface", "soft"], Md = { size: { type: "enum", className: "rt-r-size", values: Td, default: "2", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Dd, default: "surface" }, ...Ae, ...ke }, Fd = ["left", "right"], Od = { side: { type: "enum", values: Fd }, ...Ae, gap: Xr.gap, px: yt.px, pl: yt.pl, pr: yt.pr }, Kn = n.forwardRef((e, t) => {
|
|
1881
1881
|
const a = n.useRef(null), { children: s, className: r, color: o, radius: l, style: c, ...A } = w(e, Md, D);
|
|
1882
|
-
return n.createElement("div", { "data-accent-color": o, "data-radius": l, style: c, className:
|
|
1882
|
+
return n.createElement("div", { "data-accent-color": o, "data-radius": l, style: c, className: p("rt-TextFieldRoot", r), onPointerDown: (d) => {
|
|
1883
1883
|
const u = d.target;
|
|
1884
1884
|
if (u.closest("input, button, a")) return;
|
|
1885
1885
|
const g = a.current;
|
|
@@ -1900,12 +1900,12 @@ const Td = ["1", "2", "3"], Dd = ["classic", "surface", "soft"], Md = { size: {
|
|
|
1900
1900
|
Kn.displayName = "TextField.Root";
|
|
1901
1901
|
const zn = n.forwardRef((e, t) => {
|
|
1902
1902
|
const { className: a, color: s, side: r, ...o } = w(e, Od);
|
|
1903
|
-
return n.createElement("div", { "data-accent-color": s, "data-side": r, ...o, ref: t, className:
|
|
1903
|
+
return n.createElement("div", { "data-accent-color": s, "data-side": r, ...o, ref: t, className: p("rt-TextFieldSlot", a) });
|
|
1904
1904
|
});
|
|
1905
1905
|
zn.displayName = "TextField.Slot";
|
|
1906
1906
|
const Kd = { content: { type: "ReactNode", required: !0 }, width: oe.width, minWidth: oe.minWidth, maxWidth: { ...oe.maxWidth, default: "360px" } }, Xe = n.forwardRef((e, t) => {
|
|
1907
|
-
const { children: a, className: s, open: r, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: A, content: d, container: u, forceMount: g, ...C } = w(e, Kd),
|
|
1908
|
-
return n.createElement(Qa, { ...
|
|
1907
|
+
const { children: a, className: s, open: r, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: A, content: d, container: u, forceMount: g, ...C } = w(e, Kd), I = { open: r, defaultOpen: o, onOpenChange: l, delayDuration: c, disableHoverableContent: A };
|
|
1908
|
+
return n.createElement(Qa, { ...I }, n.createElement(Ua, { asChild: !0 }, a), n.createElement($o, { container: u, forceMount: g }, n.createElement(Ue, { asChild: !0 }, n.createElement(xa, { sideOffset: 4, collisionPadding: 10, ...C, asChild: !1, ref: t, className: p("rt-TooltipContent", s) }, n.createElement(J, { as: "p", className: "rt-TooltipText", size: "1" }, d), n.createElement(Ta, { className: "rt-TooltipArrow" })))));
|
|
1909
1909
|
});
|
|
1910
1910
|
Xe.displayName = "Tooltip";
|
|
1911
1911
|
const zd = "_iconButton_do0d3_1", Vd = "_ghost_do0d3_7", qd = "_mint_do0d3_7", Pd = "_highContrast_do0d3_12", Wd = "_disabled_do0d3_17", jd = "_red_do0d3_40", Hd = "_gray_do0d3_61", Gd = "_cyan_do0d3_83", Ld = "_loading_do0d3_119", Yd = "_solid_do0d3_135", Xd = "_surface_do0d3_137", Zd = "_size1_do0d3_144", _d = "_size2_do0d3_152", $d = "_size3_do0d3_160", eu = "_size4_do0d3_168", tu = "_soft_do0d3_236", Ve = {
|
|
@@ -1941,7 +1941,7 @@ const zd = "_iconButton_do0d3_1", Vd = "_ghost_do0d3_7", qd = "_mint_do0d3_7", P
|
|
|
1941
1941
|
pn,
|
|
1942
1942
|
{
|
|
1943
1943
|
onClick: e,
|
|
1944
|
-
className:
|
|
1944
|
+
className: p(
|
|
1945
1945
|
Ve.iconButton,
|
|
1946
1946
|
{
|
|
1947
1947
|
[Ve[r]]: !0,
|
|
@@ -1996,17 +1996,17 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
1996
1996
|
o.current = setTimeout(() => {
|
|
1997
1997
|
r(!1);
|
|
1998
1998
|
}, 300);
|
|
1999
|
-
}, []),
|
|
1999
|
+
}, []), I = x(
|
|
2000
2000
|
(v) => {
|
|
2001
2001
|
(v.key === "ArrowUp" || v.key === "ArrowDown") && g(), (v.key === "ArrowLeft" || v.key === "ArrowRight") && (v.preventDefault(), v.stopPropagation(), g());
|
|
2002
2002
|
},
|
|
2003
2003
|
[g]
|
|
2004
|
-
),
|
|
2004
|
+
), y = x(
|
|
2005
2005
|
(v) => {
|
|
2006
2006
|
e(v.map(A));
|
|
2007
2007
|
},
|
|
2008
2008
|
[e, A]
|
|
2009
|
-
),
|
|
2009
|
+
), m = x(() => {
|
|
2010
2010
|
g();
|
|
2011
2011
|
}, [g]), h = x(() => {
|
|
2012
2012
|
C();
|
|
@@ -2015,7 +2015,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2015
2015
|
}, [e, g]), R = x(() => {
|
|
2016
2016
|
const v = Date.now();
|
|
2017
2017
|
v - l.current < 300 && S(), l.current = v;
|
|
2018
|
-
}, [S]),
|
|
2018
|
+
}, [S]), k = ne(
|
|
2019
2019
|
() => /* @__PURE__ */ f(ye, { children: [
|
|
2020
2020
|
u ? "-∞ dB" : `${d.toFixed(1)} dB`,
|
|
2021
2021
|
/* @__PURE__ */ i(Ta, { className: qe.tooltipArrow })
|
|
@@ -2030,8 +2030,8 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2030
2030
|
max: 6,
|
|
2031
2031
|
step: 0.1,
|
|
2032
2032
|
value: [u ? -60 : d],
|
|
2033
|
-
onValueChange:
|
|
2034
|
-
onPointerDown:
|
|
2033
|
+
onValueChange: y,
|
|
2034
|
+
onPointerDown: m,
|
|
2035
2035
|
onPointerUp: h,
|
|
2036
2036
|
disabled: a,
|
|
2037
2037
|
children: /* @__PURE__ */ f("div", { className: qe.sliderContainer, children: [
|
|
@@ -2041,8 +2041,8 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2041
2041
|
Tr,
|
|
2042
2042
|
{
|
|
2043
2043
|
className: qe.sliderThumb,
|
|
2044
|
-
onPointerDown:
|
|
2045
|
-
onKeyDown:
|
|
2044
|
+
onPointerDown: m,
|
|
2045
|
+
onKeyDown: I,
|
|
2046
2046
|
onBlur: h,
|
|
2047
2047
|
onClick: R
|
|
2048
2048
|
}
|
|
@@ -2054,7 +2054,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2054
2054
|
side: "bottom",
|
|
2055
2055
|
align: "center",
|
|
2056
2056
|
sideOffset: 10,
|
|
2057
|
-
children:
|
|
2057
|
+
children: k
|
|
2058
2058
|
}
|
|
2059
2059
|
)
|
|
2060
2060
|
] }) })
|
|
@@ -2098,7 +2098,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2098
2098
|
return /* @__PURE__ */ i(
|
|
2099
2099
|
ci,
|
|
2100
2100
|
{
|
|
2101
|
-
className:
|
|
2101
|
+
className: p(
|
|
2102
2102
|
V.dropdownMenuLabel,
|
|
2103
2103
|
V[`dropdownMenuLabel-size-${t}`]
|
|
2104
2104
|
),
|
|
@@ -2111,7 +2111,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2111
2111
|
/* @__PURE__ */ f(
|
|
2112
2112
|
ii,
|
|
2113
2113
|
{
|
|
2114
|
-
className:
|
|
2114
|
+
className: p(
|
|
2115
2115
|
V.dropdownMenuSubTrigger,
|
|
2116
2116
|
V[`dropdownMenuSubTrigger-size-${t}`],
|
|
2117
2117
|
{
|
|
@@ -2139,7 +2139,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2139
2139
|
return /* @__PURE__ */ f(
|
|
2140
2140
|
ni,
|
|
2141
2141
|
{
|
|
2142
|
-
className:
|
|
2142
|
+
className: p(
|
|
2143
2143
|
V.dropdownMenuItem,
|
|
2144
2144
|
V[`dropdownMenuItem-size-${t}`],
|
|
2145
2145
|
{
|
|
@@ -2172,7 +2172,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2172
2172
|
si,
|
|
2173
2173
|
{
|
|
2174
2174
|
value: e.value,
|
|
2175
|
-
className:
|
|
2175
|
+
className: p(V.dropdownMenuItem, {
|
|
2176
2176
|
[V.dropdownMenuItemSelected]: e.value === e.radioValue,
|
|
2177
2177
|
[V[`dropdownMenuItem-size-${t}`]]: t,
|
|
2178
2178
|
[V.red]: e.color === "red" && !e.disabled,
|
|
@@ -2220,7 +2220,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2220
2220
|
ti,
|
|
2221
2221
|
{
|
|
2222
2222
|
asChild: !0,
|
|
2223
|
-
className:
|
|
2223
|
+
className: p(V.dropdownMenuTrigger, {
|
|
2224
2224
|
[V.showActiveTrigger]: s
|
|
2225
2225
|
}),
|
|
2226
2226
|
disabled: l,
|
|
@@ -2230,7 +2230,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2230
2230
|
c ? /* @__PURE__ */ i(is, { className: V.dropdownMenuPortal, children: /* @__PURE__ */ i(
|
|
2231
2231
|
ls,
|
|
2232
2232
|
{
|
|
2233
|
-
className:
|
|
2233
|
+
className: p(V.dropdownMenuContent, a),
|
|
2234
2234
|
size: r,
|
|
2235
2235
|
side: A.side,
|
|
2236
2236
|
align: A.align,
|
|
@@ -2254,7 +2254,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2254
2254
|
) }) : /* @__PURE__ */ i(is, { className: V.dropdownMenuPortal, children: /* @__PURE__ */ i(
|
|
2255
2255
|
ls,
|
|
2256
2256
|
{
|
|
2257
|
-
className:
|
|
2257
|
+
className: p(V.dropdownMenuContent, a),
|
|
2258
2258
|
size: r,
|
|
2259
2259
|
side: A.side,
|
|
2260
2260
|
align: A.align,
|
|
@@ -2284,7 +2284,7 @@ const jh = ({ children: e, ...t }) => /* @__PURE__ */ i(
|
|
|
2284
2284
|
}
|
|
2285
2285
|
)
|
|
2286
2286
|
), qn = re.forwardRef(
|
|
2287
|
-
({ children: e, className: t, ...a }, s) => /* @__PURE__ */ i(
|
|
2287
|
+
({ children: e, className: t, ...a }, s) => /* @__PURE__ */ i(E, { ref: s, className: t, ...a, children: e })
|
|
2288
2288
|
);
|
|
2289
2289
|
qn.displayName = "HeaderPanel.Details";
|
|
2290
2290
|
Vn.displayName = "HeaderPanel.Button";
|
|
@@ -2299,7 +2299,7 @@ const ea = re.forwardRef(
|
|
|
2299
2299
|
titlePosition: l = "left",
|
|
2300
2300
|
...c
|
|
2301
2301
|
}, A) => /* @__PURE__ */ f(
|
|
2302
|
-
|
|
2302
|
+
E,
|
|
2303
2303
|
{
|
|
2304
2304
|
ref: A,
|
|
2305
2305
|
gap: "4",
|
|
@@ -2313,11 +2313,11 @@ const ea = re.forwardRef(
|
|
|
2313
2313
|
className: s,
|
|
2314
2314
|
...c,
|
|
2315
2315
|
children: [
|
|
2316
|
-
l === "center" && !t && /* @__PURE__ */ i(
|
|
2316
|
+
l === "center" && !t && /* @__PURE__ */ i(E, { style: { flex: "1" } }),
|
|
2317
2317
|
l !== "center" && t && t,
|
|
2318
|
-
l === "center" && t && /* @__PURE__ */ i(
|
|
2318
|
+
l === "center" && t && /* @__PURE__ */ i(E, { style: { flex: "1" }, children: t }),
|
|
2319
2319
|
/* @__PURE__ */ i(
|
|
2320
|
-
|
|
2320
|
+
E,
|
|
2321
2321
|
{
|
|
2322
2322
|
align: "center",
|
|
2323
2323
|
gap: "2",
|
|
@@ -2326,7 +2326,7 @@ const ea = re.forwardRef(
|
|
|
2326
2326
|
flex: "2"
|
|
2327
2327
|
},
|
|
2328
2328
|
children: /* @__PURE__ */ i(
|
|
2329
|
-
|
|
2329
|
+
J,
|
|
2330
2330
|
{
|
|
2331
2331
|
size: r,
|
|
2332
2332
|
weight: o,
|
|
@@ -2337,9 +2337,9 @@ const ea = re.forwardRef(
|
|
|
2337
2337
|
)
|
|
2338
2338
|
}
|
|
2339
2339
|
),
|
|
2340
|
-
l === "center" && !a && /* @__PURE__ */ i(
|
|
2340
|
+
l === "center" && !a && /* @__PURE__ */ i(E, { style: { flex: "1" } }),
|
|
2341
2341
|
a && /* @__PURE__ */ i(
|
|
2342
|
-
|
|
2342
|
+
E,
|
|
2343
2343
|
{
|
|
2344
2344
|
gap: "3",
|
|
2345
2345
|
align: "center",
|
|
@@ -2540,21 +2540,21 @@ const Pn = ({
|
|
|
2540
2540
|
...l
|
|
2541
2541
|
}) => {
|
|
2542
2542
|
const c = ne(() => Object.keys(va), []), A = ne(() => Object.keys(Ra), []), { color: d, graphic: u } = ne(() => {
|
|
2543
|
-
let
|
|
2543
|
+
let y = e, m = t;
|
|
2544
2544
|
if (r) {
|
|
2545
2545
|
const h = wg(r);
|
|
2546
|
-
|
|
2546
|
+
y = y || h.color, m = m || h.graphic;
|
|
2547
2547
|
}
|
|
2548
|
-
if (!
|
|
2548
|
+
if (!y) {
|
|
2549
2549
|
const h = Math.floor(Math.random() * c.length);
|
|
2550
|
-
|
|
2550
|
+
y = c[h];
|
|
2551
2551
|
}
|
|
2552
|
-
if (!
|
|
2552
|
+
if (!m) {
|
|
2553
2553
|
const h = Math.floor(Math.random() * A.length);
|
|
2554
|
-
|
|
2554
|
+
m = A[h];
|
|
2555
2555
|
}
|
|
2556
|
-
return { color:
|
|
2557
|
-
}, [e, t, r, c, A]), g = va[d], C = Ra[u],
|
|
2556
|
+
return { color: y, graphic: m };
|
|
2557
|
+
}, [e, t, r, c, A]), g = va[d], C = Ra[u], I = ne(
|
|
2558
2558
|
() => ({
|
|
2559
2559
|
background: g.gradient,
|
|
2560
2560
|
opacity: g.opacity
|
|
@@ -2566,8 +2566,8 @@ const Pn = ({
|
|
|
2566
2566
|
{
|
|
2567
2567
|
width: a + "px",
|
|
2568
2568
|
height: s + "px",
|
|
2569
|
-
className:
|
|
2570
|
-
style:
|
|
2569
|
+
className: p(o),
|
|
2570
|
+
style: I,
|
|
2571
2571
|
...l,
|
|
2572
2572
|
children: /* @__PURE__ */ i("img", { src: C, alt: u, width: a, height: s })
|
|
2573
2573
|
}
|
|
@@ -2589,7 +2589,7 @@ const bg = ({
|
|
|
2589
2589
|
size: g = "1",
|
|
2590
2590
|
...C
|
|
2591
2591
|
}) => {
|
|
2592
|
-
const
|
|
2592
|
+
const I = (o == null ? void 0 : o.id) || r, y = (o == null ? void 0 : o.name) || a, m = (o == null ? void 0 : o.description) || s, h = (o == null ? void 0 : o.image) || t, S = (o == null ? void 0 : o.icon) || c, R = h && (h != null && h.startsWith("url(")) ? h == null ? void 0 : h.substring(4, (h == null ? void 0 : h.length) - 1).replace(/"/g, "") : h, k = (b) => {
|
|
2593
2593
|
b.stopPropagation(), b.preventDefault(), u == null || u();
|
|
2594
2594
|
}, v = {
|
|
2595
2595
|
1: { avatar: 60, icon: 15 },
|
|
@@ -2599,22 +2599,22 @@ const bg = ({
|
|
|
2599
2599
|
return /* @__PURE__ */ i(
|
|
2600
2600
|
_a,
|
|
2601
2601
|
{
|
|
2602
|
-
value:
|
|
2603
|
-
className:
|
|
2602
|
+
value: I,
|
|
2603
|
+
className: p(
|
|
2604
2604
|
e,
|
|
2605
2605
|
q.listCardsItem,
|
|
2606
2606
|
q[`listCardsItemSize${g}`]
|
|
2607
2607
|
),
|
|
2608
2608
|
style: { "--color-surface": "transparent" },
|
|
2609
2609
|
"data-state": d ? "checked" : "unchecked",
|
|
2610
|
-
onClick:
|
|
2610
|
+
onClick: k,
|
|
2611
2611
|
...C,
|
|
2612
|
-
children: /* @__PURE__ */ f(
|
|
2613
|
-
/* @__PURE__ */ i(
|
|
2612
|
+
children: /* @__PURE__ */ f(E, { gap: "2", children: [
|
|
2613
|
+
/* @__PURE__ */ i(E, { width: `${N.avatar}px`, height: `${N.avatar}px`, children: l ? /* @__PURE__ */ i(
|
|
2614
2614
|
Pn,
|
|
2615
2615
|
{
|
|
2616
|
-
id:
|
|
2617
|
-
className:
|
|
2616
|
+
id: I,
|
|
2617
|
+
className: p(
|
|
2618
2618
|
q.listCardsAvatar,
|
|
2619
2619
|
q[`listCardsAvatarSize${g}`]
|
|
2620
2620
|
),
|
|
@@ -2624,7 +2624,7 @@ const bg = ({
|
|
|
2624
2624
|
) : A ? /* @__PURE__ */ i(
|
|
2625
2625
|
"div",
|
|
2626
2626
|
{
|
|
2627
|
-
className:
|
|
2627
|
+
className: p(
|
|
2628
2628
|
q.listCardsAvatarIcon,
|
|
2629
2629
|
q[`listCardsAvatarIconSize${g}`]
|
|
2630
2630
|
),
|
|
@@ -2633,7 +2633,7 @@ const bg = ({
|
|
|
2633
2633
|
) : S ? /* @__PURE__ */ i(
|
|
2634
2634
|
"div",
|
|
2635
2635
|
{
|
|
2636
|
-
className:
|
|
2636
|
+
className: p(
|
|
2637
2637
|
q.listCardsAvatarIcon,
|
|
2638
2638
|
q[`listCardsAvatarIconSize${g}`]
|
|
2639
2639
|
),
|
|
@@ -2643,21 +2643,21 @@ const bg = ({
|
|
|
2643
2643
|
Gt,
|
|
2644
2644
|
{
|
|
2645
2645
|
src: R,
|
|
2646
|
-
className:
|
|
2646
|
+
className: p(
|
|
2647
2647
|
q.listCardsAvatar,
|
|
2648
2648
|
q[`listCardsAvatarSize${g}`]
|
|
2649
2649
|
)
|
|
2650
2650
|
}
|
|
2651
2651
|
) }),
|
|
2652
|
-
/* @__PURE__ */ f(
|
|
2653
|
-
/* @__PURE__ */ i(
|
|
2652
|
+
/* @__PURE__ */ f(E, { direction: "column", justify: "center", gap: "1", children: [
|
|
2653
|
+
/* @__PURE__ */ i(J, { as: "div", size: "2", className: q.listCardsItemText, children: y }),
|
|
2654
2654
|
/* @__PURE__ */ i(
|
|
2655
|
-
|
|
2655
|
+
J,
|
|
2656
2656
|
{
|
|
2657
2657
|
as: "div",
|
|
2658
2658
|
size: "1",
|
|
2659
2659
|
className: q.listCardsItemDescriptionWrappable,
|
|
2660
|
-
children:
|
|
2660
|
+
children: m
|
|
2661
2661
|
}
|
|
2662
2662
|
)
|
|
2663
2663
|
] })
|
|
@@ -2679,13 +2679,13 @@ const bg = ({
|
|
|
2679
2679
|
children: g,
|
|
2680
2680
|
...C
|
|
2681
2681
|
}) => {
|
|
2682
|
-
const
|
|
2682
|
+
const I = (r == null ? void 0 : r.id) || s, y = (r == null ? void 0 : r.name) || a, m = (r == null ? void 0 : r.avatar) || t, h = m && (m != null && m.startsWith("url(")) ? m == null ? void 0 : m.substring(4, (m == null ? void 0 : m.length) - 1).replace(/"/g, "") : m;
|
|
2683
2683
|
return /* @__PURE__ */ f("div", { className: q.cardWrapper, children: [
|
|
2684
2684
|
/* @__PURE__ */ i(
|
|
2685
2685
|
_a,
|
|
2686
2686
|
{
|
|
2687
|
-
value:
|
|
2688
|
-
className:
|
|
2687
|
+
value: I,
|
|
2688
|
+
className: p(e, q.listCardsItem),
|
|
2689
2689
|
style: {
|
|
2690
2690
|
"--color-surface": "transparent",
|
|
2691
2691
|
width: "100%",
|
|
@@ -2693,7 +2693,7 @@ const bg = ({
|
|
|
2693
2693
|
},
|
|
2694
2694
|
...C,
|
|
2695
2695
|
children: /* @__PURE__ */ f(
|
|
2696
|
-
|
|
2696
|
+
E,
|
|
2697
2697
|
{
|
|
2698
2698
|
gap: "2",
|
|
2699
2699
|
width: "100%",
|
|
@@ -2704,10 +2704,10 @@ const bg = ({
|
|
|
2704
2704
|
},
|
|
2705
2705
|
children: [
|
|
2706
2706
|
!A && /* @__PURE__ */ i(Gt, { src: h, className: q.listCardsAvatar }),
|
|
2707
|
-
/* @__PURE__ */ f(
|
|
2708
|
-
/* @__PURE__ */ i(
|
|
2707
|
+
/* @__PURE__ */ f(E, { direction: "column", justify: "center", children: [
|
|
2708
|
+
/* @__PURE__ */ i(J, { as: "div", size: "2", className: q.listCardsItemText, children: y }),
|
|
2709
2709
|
/* @__PURE__ */ i(
|
|
2710
|
-
|
|
2710
|
+
E,
|
|
2711
2711
|
{
|
|
2712
2712
|
direction: "row",
|
|
2713
2713
|
gap: "1",
|
|
@@ -2738,7 +2738,7 @@ const bg = ({
|
|
|
2738
2738
|
}
|
|
2739
2739
|
) }),
|
|
2740
2740
|
/* @__PURE__ */ i("div", { className: q.cardActions, children: /* @__PURE__ */ f(
|
|
2741
|
-
|
|
2741
|
+
E,
|
|
2742
2742
|
{
|
|
2743
2743
|
direction: "column",
|
|
2744
2744
|
align: "end",
|
|
@@ -2749,7 +2749,7 @@ const bg = ({
|
|
|
2749
2749
|
l && /* @__PURE__ */ i(
|
|
2750
2750
|
"div",
|
|
2751
2751
|
{
|
|
2752
|
-
className:
|
|
2752
|
+
className: p(
|
|
2753
2753
|
q.favoriteButton,
|
|
2754
2754
|
q.seeDetailsButton
|
|
2755
2755
|
),
|
|
@@ -2762,7 +2762,7 @@ const bg = ({
|
|
|
2762
2762
|
c && /* @__PURE__ */ i(
|
|
2763
2763
|
"div",
|
|
2764
2764
|
{
|
|
2765
|
-
className:
|
|
2765
|
+
className: p(
|
|
2766
2766
|
q.buttonGhost,
|
|
2767
2767
|
q.seeDetailsButton
|
|
2768
2768
|
),
|
|
@@ -2818,13 +2818,13 @@ const Qg = "_customCard_1klw4_2", Ug = "_selected_1klw4_18", xg = "_disabled_1kl
|
|
|
2818
2818
|
en,
|
|
2819
2819
|
{
|
|
2820
2820
|
onClick: c ? void 0 : o,
|
|
2821
|
-
className:
|
|
2821
|
+
className: p(st.customCard, {
|
|
2822
2822
|
[st.selected]: l,
|
|
2823
2823
|
[st.disabled]: c
|
|
2824
2824
|
}),
|
|
2825
2825
|
variant: "surface",
|
|
2826
|
-
children: /* @__PURE__ */ f(
|
|
2827
|
-
/* @__PURE__ */ f(
|
|
2826
|
+
children: /* @__PURE__ */ f(E, { align: "start", direction: "column", height: "70px", justify: "between", children: [
|
|
2827
|
+
/* @__PURE__ */ f(E, { align: "center", justify: "between", width: "100%", children: [
|
|
2828
2828
|
e.icon && /* @__PURE__ */ i(
|
|
2829
2829
|
ce,
|
|
2830
2830
|
{
|
|
@@ -2838,7 +2838,7 @@ const Qg = "_customCard_1klw4_2", Ug = "_selected_1klw4_18", xg = "_disabled_1kl
|
|
|
2838
2838
|
e.isLocked && /* @__PURE__ */ i(Ni, { width: 12, height: 12, className: st.lockedIcon })
|
|
2839
2839
|
] }),
|
|
2840
2840
|
/* @__PURE__ */ i(
|
|
2841
|
-
|
|
2841
|
+
J,
|
|
2842
2842
|
{
|
|
2843
2843
|
as: "div",
|
|
2844
2844
|
size: "2",
|
|
@@ -2863,7 +2863,7 @@ const Qg = "_customCard_1klw4_2", Ug = "_selected_1klw4_18", xg = "_disabled_1kl
|
|
|
2863
2863
|
}) => /* @__PURE__ */ i(Ut, { height: "100%", width: "100%", scrollbars: "vertical", children: /* @__PURE__ */ i(
|
|
2864
2864
|
ce,
|
|
2865
2865
|
{
|
|
2866
|
-
className:
|
|
2866
|
+
className: p(st.gridContainer, s),
|
|
2867
2867
|
pr: "3",
|
|
2868
2868
|
...o,
|
|
2869
2869
|
children: e.map((l) => /* @__PURE__ */ i(
|
|
@@ -2888,7 +2888,7 @@ const Na = ({
|
|
|
2888
2888
|
items: r,
|
|
2889
2889
|
iconProps: o = {},
|
|
2890
2890
|
...l
|
|
2891
|
-
}) => /* @__PURE__ */ i(
|
|
2891
|
+
}) => /* @__PURE__ */ i(E, { padding: "1", width: "100%", children: /* @__PURE__ */ i(
|
|
2892
2892
|
Rn,
|
|
2893
2893
|
{
|
|
2894
2894
|
size: a,
|
|
@@ -2896,7 +2896,7 @@ const Na = ({
|
|
|
2896
2896
|
onValueChange: s,
|
|
2897
2897
|
variant: "surface",
|
|
2898
2898
|
radius: "medium",
|
|
2899
|
-
className:
|
|
2899
|
+
className: p("customSegmentedControl", e, {
|
|
2900
2900
|
hasIconSegmentedControl: r.some((c) => c.icon)
|
|
2901
2901
|
}),
|
|
2902
2902
|
...l,
|
|
@@ -2904,7 +2904,7 @@ const Na = ({
|
|
|
2904
2904
|
vn,
|
|
2905
2905
|
{
|
|
2906
2906
|
value: c.value,
|
|
2907
|
-
className:
|
|
2907
|
+
className: p("customSegmentedControlItem", {
|
|
2908
2908
|
hasIcon: c.icon
|
|
2909
2909
|
}),
|
|
2910
2910
|
children: [
|
|
@@ -2950,7 +2950,7 @@ const Og = "_button_pdqt9_1", Kg = "_size2_pdqt9_5", zg = "_size3_pdqt9_9", Vg =
|
|
|
2950
2950
|
variant: a,
|
|
2951
2951
|
color: s,
|
|
2952
2952
|
size: r,
|
|
2953
|
-
className:
|
|
2953
|
+
className: p(Re.Button, t, Re.button, {
|
|
2954
2954
|
[Re[s]]: !0,
|
|
2955
2955
|
[Re[`size${r}`]]: !0,
|
|
2956
2956
|
[Re[a]]: !0,
|
|
@@ -2986,18 +2986,18 @@ const _g = "_messageWithActionInfo_152jv_1", $g = "_messageWithAction_152jv_1",
|
|
|
2986
2986
|
{
|
|
2987
2987
|
size: "1",
|
|
2988
2988
|
color: e === "error" ? "red" : e === "warn" ? "yellow" : "gray",
|
|
2989
|
-
className:
|
|
2989
|
+
className: p(r, {
|
|
2990
2990
|
[hs.messageWithActionInfo]: !o,
|
|
2991
2991
|
[hs.messageWithAction]: o
|
|
2992
2992
|
}),
|
|
2993
2993
|
...A,
|
|
2994
|
-
children: /* @__PURE__ */ f(
|
|
2995
|
-
/* @__PURE__ */ f(
|
|
2994
|
+
children: /* @__PURE__ */ f(E, { align: "center", width: "100%", gap: "2", justify: "between", children: [
|
|
2995
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
2996
2996
|
l && /* @__PURE__ */ i(Ha, { children: /* @__PURE__ */ i(Jt, {}) }),
|
|
2997
2997
|
t && /* @__PURE__ */ i(Ga, { children: t }),
|
|
2998
2998
|
c && c
|
|
2999
2999
|
] }),
|
|
3000
|
-
/* @__PURE__ */ i(
|
|
3000
|
+
/* @__PURE__ */ i(E, { children: a && /* @__PURE__ */ i(He, { size: "1", variant: "soft", color: "gray", onClick: s, children: a }) })
|
|
3001
3001
|
] })
|
|
3002
3002
|
}
|
|
3003
3003
|
);
|
|
@@ -3024,20 +3024,21 @@ const em = "_selectTrigger_1nzeo_1", tm = "_soft_1nzeo_1", am = "_ghost_1nzeo_2"
|
|
|
3024
3024
|
maxHeight: u = "auto",
|
|
3025
3025
|
showSelectIndicator: g = !0,
|
|
3026
3026
|
maxWidth: C = "100%",
|
|
3027
|
-
|
|
3027
|
+
placeholder: I = null,
|
|
3028
|
+
...y
|
|
3028
3029
|
}) => /* @__PURE__ */ f(ce, { width: "100%", children: [
|
|
3029
|
-
t && /* @__PURE__ */ f(
|
|
3030
|
-
/* @__PURE__ */ i(
|
|
3030
|
+
t && /* @__PURE__ */ f(E, { mb: "2", align: "center", gap: "2", children: [
|
|
3031
|
+
/* @__PURE__ */ i(J, { size: "1", weight: "bold", children: t }),
|
|
3031
3032
|
o && /* @__PURE__ */ i(Xe, { content: o, children: /* @__PURE__ */ i(Jt, {}) })
|
|
3032
3033
|
] }),
|
|
3033
|
-
/* @__PURE__ */ i(
|
|
3034
|
+
/* @__PURE__ */ i(E, { direction: "column", maxWidth: C, children: /* @__PURE__ */ f(
|
|
3034
3035
|
ts,
|
|
3035
3036
|
{
|
|
3036
3037
|
onValueChange: a,
|
|
3037
3038
|
defaultValue: s,
|
|
3038
|
-
className:
|
|
3039
|
+
className: p(e),
|
|
3039
3040
|
disabled: A || d,
|
|
3040
|
-
...
|
|
3041
|
+
...y,
|
|
3041
3042
|
children: [
|
|
3042
3043
|
/* @__PURE__ */ i(
|
|
3043
3044
|
as,
|
|
@@ -3045,53 +3046,74 @@ const em = "_selectTrigger_1nzeo_1", tm = "_soft_1nzeo_1", am = "_ghost_1nzeo_2"
|
|
|
3045
3046
|
variant: c,
|
|
3046
3047
|
color: "gray",
|
|
3047
3048
|
size: l,
|
|
3048
|
-
className:
|
|
3049
|
+
className: p(ve.selectTrigger, {
|
|
3049
3050
|
[ve.ghost]: c === "ghost",
|
|
3050
3051
|
[ve.soft]: c === "soft"
|
|
3051
|
-
})
|
|
3052
|
+
}),
|
|
3053
|
+
children: s === null ? /* @__PURE__ */ i(
|
|
3054
|
+
J,
|
|
3055
|
+
{
|
|
3056
|
+
size: l,
|
|
3057
|
+
ml: "1",
|
|
3058
|
+
style: { color: "var(--neutral-alpha-9)" },
|
|
3059
|
+
children: I
|
|
3060
|
+
}
|
|
3061
|
+
) : void 0
|
|
3052
3062
|
}
|
|
3053
3063
|
),
|
|
3054
|
-
/* @__PURE__ */ i(ss, { position: "popper", style: { height: u }, children: /* @__PURE__ */ i(rs, { children: r.map(
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3064
|
+
/* @__PURE__ */ i(ss, { position: "popper", style: { height: u }, children: /* @__PURE__ */ i(rs, { children: r.map(
|
|
3065
|
+
(m) => m.type === "separator" ? /* @__PURE__ */ i(
|
|
3066
|
+
ot,
|
|
3067
|
+
{
|
|
3068
|
+
my: "2",
|
|
3069
|
+
style: {
|
|
3070
|
+
width: "100%",
|
|
3071
|
+
background: "var(--neutral-alpha-4)"
|
|
3072
|
+
}
|
|
3073
|
+
},
|
|
3074
|
+
m.value
|
|
3075
|
+
) : /* @__PURE__ */ f(
|
|
3076
|
+
Bn,
|
|
3077
|
+
{
|
|
3078
|
+
value: m.value,
|
|
3079
|
+
className: p(ve.selectItem, {
|
|
3080
|
+
[ve.hideIndicator]: !g,
|
|
3081
|
+
[ve.size1]: l === "1",
|
|
3082
|
+
[ve.size2]: l === "2"
|
|
3083
|
+
}),
|
|
3084
|
+
disabled: A || d,
|
|
3085
|
+
children: [
|
|
3086
|
+
/* @__PURE__ */ i(J, { size: l, style: { color: "var(--neutral-12)" }, children: m.label }),
|
|
3087
|
+
m.aiDetected && /* @__PURE__ */ i(
|
|
3088
|
+
J,
|
|
3089
|
+
{
|
|
3090
|
+
size: "1",
|
|
3091
|
+
style: {
|
|
3092
|
+
color: "var(--aqua-dark-alpha-9)",
|
|
3093
|
+
verticalAlign: "top"
|
|
3094
|
+
},
|
|
3095
|
+
children: "✦"
|
|
3096
|
+
}
|
|
3097
|
+
),
|
|
3098
|
+
m.extra && /* @__PURE__ */ f(
|
|
3099
|
+
J,
|
|
3100
|
+
{
|
|
3101
|
+
size: l,
|
|
3102
|
+
className: ve.extra,
|
|
3103
|
+
style: {
|
|
3104
|
+
color: "var(--neutral-alpha-9)"
|
|
3105
|
+
},
|
|
3106
|
+
children: [
|
|
3107
|
+
" ",
|
|
3108
|
+
m.extra
|
|
3109
|
+
]
|
|
3110
|
+
}
|
|
3111
|
+
)
|
|
3112
|
+
]
|
|
3113
|
+
},
|
|
3114
|
+
m.value
|
|
3115
|
+
)
|
|
3116
|
+
) }) })
|
|
3095
3117
|
]
|
|
3096
3118
|
}
|
|
3097
3119
|
) })
|
|
@@ -3120,18 +3142,18 @@ const lm = "_selectTrigger_1b07c_1", cm = "_soft_1b07c_1", Am = "_ghost_1b07c_2"
|
|
|
3120
3142
|
placeholder: g = "Select options...",
|
|
3121
3143
|
...C
|
|
3122
3144
|
}) => {
|
|
3123
|
-
const
|
|
3124
|
-
a && a(
|
|
3145
|
+
const I = (y) => {
|
|
3146
|
+
a && a(y);
|
|
3125
3147
|
};
|
|
3126
3148
|
return /* @__PURE__ */ f(ce, { width: "100%", children: [
|
|
3127
|
-
t && /* @__PURE__ */ f(
|
|
3128
|
-
/* @__PURE__ */ i(
|
|
3149
|
+
t && /* @__PURE__ */ f(E, { mb: "2", align: "center", gap: "2", children: [
|
|
3150
|
+
/* @__PURE__ */ i(J, { size: "1", weight: "bold", children: t }),
|
|
3129
3151
|
r && /* @__PURE__ */ i(Xe, { content: r, children: /* @__PURE__ */ i(Jt, {}) })
|
|
3130
3152
|
] }),
|
|
3131
|
-
/* @__PURE__ */ i(
|
|
3153
|
+
/* @__PURE__ */ i(E, { direction: "column", maxWidth: u, children: /* @__PURE__ */ f(
|
|
3132
3154
|
ts,
|
|
3133
3155
|
{
|
|
3134
|
-
className:
|
|
3156
|
+
className: p(e),
|
|
3135
3157
|
disabled: c || A,
|
|
3136
3158
|
...C,
|
|
3137
3159
|
children: [
|
|
@@ -3142,25 +3164,25 @@ const lm = "_selectTrigger_1b07c_1", cm = "_soft_1b07c_1", Am = "_ghost_1b07c_2"
|
|
|
3142
3164
|
color: "gray",
|
|
3143
3165
|
size: o,
|
|
3144
3166
|
placeholder: g,
|
|
3145
|
-
className:
|
|
3167
|
+
className: p(Be.selectTrigger, {
|
|
3146
3168
|
[Be.ghost]: l === "ghost",
|
|
3147
3169
|
[Be.soft]: l === "soft"
|
|
3148
3170
|
}),
|
|
3149
3171
|
children: g
|
|
3150
3172
|
}
|
|
3151
3173
|
),
|
|
3152
|
-
/* @__PURE__ */ i(ss, { position: "popper", style: { height: d }, children: /* @__PURE__ */ i(rs, { children: s.map((
|
|
3153
|
-
|
|
3174
|
+
/* @__PURE__ */ i(ss, { position: "popper", style: { height: d }, children: /* @__PURE__ */ i(rs, { children: s.map((y) => /* @__PURE__ */ f(
|
|
3175
|
+
E,
|
|
3154
3176
|
{
|
|
3155
3177
|
align: "center",
|
|
3156
3178
|
gap: "2",
|
|
3157
3179
|
p: "2",
|
|
3158
|
-
className:
|
|
3180
|
+
className: p(Be.selectItem, {
|
|
3159
3181
|
[Be.hideIndicator]: !0,
|
|
3160
3182
|
[Be.size1]: o === "1",
|
|
3161
3183
|
[Be.size2]: o === "2"
|
|
3162
3184
|
}),
|
|
3163
|
-
onClick: () =>
|
|
3185
|
+
onClick: () => I(y.value),
|
|
3164
3186
|
style: {
|
|
3165
3187
|
cursor: c || A ? "not-allowed" : "pointer",
|
|
3166
3188
|
width: "100%"
|
|
@@ -3170,14 +3192,14 @@ const lm = "_selectTrigger_1b07c_1", cm = "_soft_1b07c_1", Am = "_ghost_1b07c_2"
|
|
|
3170
3192
|
rn,
|
|
3171
3193
|
{
|
|
3172
3194
|
disabled: c || A,
|
|
3173
|
-
checked:
|
|
3195
|
+
checked: y.isActived || !1,
|
|
3174
3196
|
size: o
|
|
3175
3197
|
}
|
|
3176
3198
|
),
|
|
3177
|
-
/* @__PURE__ */ f(
|
|
3178
|
-
/* @__PURE__ */ i(
|
|
3179
|
-
|
|
3180
|
-
|
|
3199
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "1", style: { flex: 1 }, children: [
|
|
3200
|
+
/* @__PURE__ */ i(J, { size: o, style: { color: "var(--neutral-12)" }, children: y.label }),
|
|
3201
|
+
y.aiDetected && /* @__PURE__ */ i(
|
|
3202
|
+
J,
|
|
3181
3203
|
{
|
|
3182
3204
|
size: "1",
|
|
3183
3205
|
style: {
|
|
@@ -3187,8 +3209,8 @@ const lm = "_selectTrigger_1b07c_1", cm = "_soft_1b07c_1", Am = "_ghost_1b07c_2"
|
|
|
3187
3209
|
children: "✦"
|
|
3188
3210
|
}
|
|
3189
3211
|
),
|
|
3190
|
-
|
|
3191
|
-
|
|
3212
|
+
y.extra && /* @__PURE__ */ f(
|
|
3213
|
+
J,
|
|
3192
3214
|
{
|
|
3193
3215
|
size: o,
|
|
3194
3216
|
className: Be.extra,
|
|
@@ -3197,14 +3219,14 @@ const lm = "_selectTrigger_1b07c_1", cm = "_soft_1b07c_1", Am = "_ghost_1b07c_2"
|
|
|
3197
3219
|
},
|
|
3198
3220
|
children: [
|
|
3199
3221
|
" ",
|
|
3200
|
-
|
|
3222
|
+
y.extra
|
|
3201
3223
|
]
|
|
3202
3224
|
}
|
|
3203
3225
|
)
|
|
3204
3226
|
] })
|
|
3205
3227
|
]
|
|
3206
3228
|
},
|
|
3207
|
-
|
|
3229
|
+
y.value
|
|
3208
3230
|
)) }) })
|
|
3209
3231
|
]
|
|
3210
3232
|
}
|
|
@@ -3234,7 +3256,7 @@ function rt(e, t, a) {
|
|
|
3234
3256
|
};
|
|
3235
3257
|
}, [e, a]);
|
|
3236
3258
|
}
|
|
3237
|
-
const
|
|
3259
|
+
const ht = 10, ft = 10, Pe = 9.5, ca = -Math.PI / 2, Aa = 0.01, fs = (e) => Math.max(-1, Math.min(1, e)), Cs = (e, t, a) => (e + 1) / 2 * (a - t) + t, ym = ({
|
|
3238
3260
|
className: e,
|
|
3239
3261
|
value: t,
|
|
3240
3262
|
onChange: a,
|
|
@@ -3242,82 +3264,82 @@ const pt = 10, ht = 10, Pe = 9.5, ca = -Math.PI / 2, Aa = 0.01, fs = (e) => Math
|
|
|
3242
3264
|
minValue: r = -0.65,
|
|
3243
3265
|
maxValue: o = 0.65
|
|
3244
3266
|
}) => {
|
|
3245
|
-
const l = Ce(null), [c, A] = de(!1), d = Ce(), [u, g] = de(!1), C = Ce(null),
|
|
3267
|
+
const l = Ce(null), [c, A] = de(!1), d = Ce(), [u, g] = de(!1), C = Ce(null), I = Ce(0), y = Ce(t), m = Ce(0), h = x(() => {
|
|
3246
3268
|
clearTimeout(d.current), A(!0);
|
|
3247
3269
|
}, []), S = x(() => {
|
|
3248
3270
|
u || (d.current = setTimeout(() => A(!1), 300));
|
|
3249
3271
|
}, [u]);
|
|
3250
3272
|
Ge(() => {
|
|
3251
3273
|
if (u) {
|
|
3252
|
-
const
|
|
3253
|
-
|
|
3274
|
+
const Q = document.createElement("style");
|
|
3275
|
+
Q.textContent = "* { cursor: ns-resize !important; }", document.head.appendChild(Q), C.current = Q, h();
|
|
3254
3276
|
} else
|
|
3255
3277
|
C.current && (document.head.removeChild(C.current), C.current = null), S();
|
|
3256
3278
|
return () => {
|
|
3257
|
-
C.current && (document.head.removeChild(C.current), C.current = null), S(),
|
|
3279
|
+
C.current && (document.head.removeChild(C.current), C.current = null), S(), m.current && cancelAnimationFrame(m.current);
|
|
3258
3280
|
};
|
|
3259
3281
|
}, [u, h, S]);
|
|
3260
3282
|
const R = x(
|
|
3261
|
-
(
|
|
3262
|
-
|
|
3263
|
-
|
|
3283
|
+
(Q) => {
|
|
3284
|
+
y.current = fs(Q), !m.current && (m.current = requestAnimationFrame(() => {
|
|
3285
|
+
m.current = 0, a(y.current);
|
|
3264
3286
|
}));
|
|
3265
3287
|
},
|
|
3266
3288
|
[a]
|
|
3267
|
-
),
|
|
3268
|
-
(
|
|
3269
|
-
|
|
3270
|
-
const T =
|
|
3289
|
+
), k = x(
|
|
3290
|
+
(Q) => {
|
|
3291
|
+
Q.preventDefault(), Q.stopPropagation();
|
|
3292
|
+
const T = Q.wheelDelta ?? -Q.deltaY * 25;
|
|
3271
3293
|
if (!T) return;
|
|
3272
3294
|
const K = t + (T > 0 ? Aa : -Aa);
|
|
3273
3295
|
R(K);
|
|
3274
3296
|
},
|
|
3275
3297
|
[t, R]
|
|
3276
3298
|
);
|
|
3277
|
-
rt("wheel",
|
|
3299
|
+
rt("wheel", k, l);
|
|
3278
3300
|
const v = x(
|
|
3279
|
-
(
|
|
3301
|
+
(Q) => {
|
|
3280
3302
|
var K;
|
|
3281
3303
|
if (s) return;
|
|
3282
|
-
|
|
3283
|
-
const T =
|
|
3284
|
-
(K = T.setPointerCapture) == null || K.call(T,
|
|
3304
|
+
Q.preventDefault();
|
|
3305
|
+
const T = Q.currentTarget;
|
|
3306
|
+
(K = T.setPointerCapture) == null || K.call(T, Q.pointerId), g(!0), I.current = Q.clientY;
|
|
3285
3307
|
},
|
|
3286
3308
|
[s]
|
|
3287
3309
|
), B = x(
|
|
3288
|
-
(
|
|
3310
|
+
(Q) => {
|
|
3289
3311
|
if (!u) return;
|
|
3290
|
-
const T =
|
|
3291
|
-
R(K),
|
|
3312
|
+
const T = I.current - Q.clientY, K = t + T * Aa;
|
|
3313
|
+
R(K), I.current = Q.clientY;
|
|
3292
3314
|
},
|
|
3293
3315
|
[u, t, R]
|
|
3294
|
-
), N = x((
|
|
3316
|
+
), N = x((Q) => {
|
|
3295
3317
|
var T, K;
|
|
3296
|
-
(K = (T =
|
|
3318
|
+
(K = (T = Q.currentTarget) == null ? void 0 : T.releasePointerCapture) == null || K.call(T, Q.pointerId), g(!1);
|
|
3297
3319
|
}, []), b = x(
|
|
3298
|
-
(
|
|
3299
|
-
|
|
3320
|
+
(Q) => {
|
|
3321
|
+
Q.detail === 2 && R(0);
|
|
3300
3322
|
},
|
|
3301
3323
|
[R]
|
|
3302
3324
|
), { arcPath: M, pointerRotation: Y, arcColor: _, pointerColor: O } = ne(() => {
|
|
3303
|
-
const
|
|
3325
|
+
const Q = Cs(t, r, o), T = fs(Q), K = ca + T * Math.PI, G = ht + Pe * Math.cos(ca), F = ft + Pe * Math.sin(ca), z = ht + Pe * Math.cos(K), ee = ft + Pe * Math.sin(K), dt = 0, Ze = T > 0 ? 1 : 0;
|
|
3304
3326
|
return {
|
|
3305
3327
|
arcPath: `M ${G.toFixed(3)} ${F.toFixed(3)}
|
|
3306
|
-
A ${Pe} ${Pe} 0 ${
|
|
3328
|
+
A ${Pe} ${Pe} 0 ${dt} ${Ze}
|
|
3307
3329
|
${z.toFixed(3)} ${ee.toFixed(3)}`,
|
|
3308
3330
|
pointerRotation: T * 180,
|
|
3309
3331
|
arcColor: s ? "#5A6169" : "#19E4F1",
|
|
3310
3332
|
pointerColor: s ? "#43484E" : "#B0B4BA"
|
|
3311
3333
|
};
|
|
3312
3334
|
}, [t, s, r, o]), P = ne(() => {
|
|
3313
|
-
const
|
|
3335
|
+
const Q = Cs(t, r, o), T = Math.round(Q * 100);
|
|
3314
3336
|
return `Pan: ${Math.abs(T) < 1 ? 0 : T}`;
|
|
3315
3337
|
}, [t, r, o]);
|
|
3316
3338
|
return /* @__PURE__ */ i(
|
|
3317
3339
|
"div",
|
|
3318
3340
|
{
|
|
3319
3341
|
ref: l,
|
|
3320
|
-
className:
|
|
3342
|
+
className: p(et.content, e),
|
|
3321
3343
|
"data-no-drag": "true",
|
|
3322
3344
|
onClick: b,
|
|
3323
3345
|
style: { cursor: s ? "default" : "ns-resize" },
|
|
@@ -3325,7 +3347,7 @@ const pt = 10, ht = 10, Pe = 9.5, ca = -Math.PI / 2, Aa = 0.01, fs = (e) => Math
|
|
|
3325
3347
|
/* @__PURE__ */ i(Ua, { asChild: !0, children: /* @__PURE__ */ i(
|
|
3326
3348
|
"div",
|
|
3327
3349
|
{
|
|
3328
|
-
className:
|
|
3350
|
+
className: p(
|
|
3329
3351
|
et.pan,
|
|
3330
3352
|
u && et.active,
|
|
3331
3353
|
s && et.disabled
|
|
@@ -3335,12 +3357,12 @@ const pt = 10, ht = 10, Pe = 9.5, ca = -Math.PI / 2, Aa = 0.01, fs = (e) => Math
|
|
|
3335
3357
|
onPointerUp: N,
|
|
3336
3358
|
onPointerCancel: N,
|
|
3337
3359
|
children: /* @__PURE__ */ f("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", children: [
|
|
3338
|
-
/* @__PURE__ */ i("circle", { cx:
|
|
3360
|
+
/* @__PURE__ */ i("circle", { cx: ht, cy: ft, r: 10 }),
|
|
3339
3361
|
/* @__PURE__ */ i(
|
|
3340
3362
|
"circle",
|
|
3341
3363
|
{
|
|
3342
|
-
cx:
|
|
3343
|
-
cy:
|
|
3364
|
+
cx: ht,
|
|
3365
|
+
cy: ft,
|
|
3344
3366
|
r: Pe,
|
|
3345
3367
|
stroke: "#D3EDF8",
|
|
3346
3368
|
strokeOpacity: 0.113725
|
|
@@ -3359,7 +3381,7 @@ const pt = 10, ht = 10, Pe = 9.5, ca = -Math.PI / 2, Aa = 0.01, fs = (e) => Math
|
|
|
3359
3381
|
/* @__PURE__ */ i(
|
|
3360
3382
|
"g",
|
|
3361
3383
|
{
|
|
3362
|
-
transform: `rotate(${Y} ${
|
|
3384
|
+
transform: `rotate(${Y} ${ht} ${ft})`,
|
|
3363
3385
|
children: /* @__PURE__ */ i(
|
|
3364
3386
|
"path",
|
|
3365
3387
|
{
|
|
@@ -3406,7 +3428,7 @@ const os = ({
|
|
|
3406
3428
|
besideFooter: u,
|
|
3407
3429
|
...g
|
|
3408
3430
|
}) => /* @__PURE__ */ f(
|
|
3409
|
-
|
|
3431
|
+
E,
|
|
3410
3432
|
{
|
|
3411
3433
|
gap: "4",
|
|
3412
3434
|
align: "center",
|
|
@@ -3419,8 +3441,8 @@ const os = ({
|
|
|
3419
3441
|
className: t,
|
|
3420
3442
|
...g,
|
|
3421
3443
|
children: [
|
|
3422
|
-
e && /* @__PURE__ */ i(
|
|
3423
|
-
/* @__PURE__ */ f(
|
|
3444
|
+
e && /* @__PURE__ */ i(E, { width: "100%", children: e }),
|
|
3445
|
+
/* @__PURE__ */ f(E, { width: "100%", justify: "between", gap: "3", align: "center", children: [
|
|
3424
3446
|
u,
|
|
3425
3447
|
/* @__PURE__ */ f(
|
|
3426
3448
|
He,
|
|
@@ -3433,7 +3455,7 @@ const os = ({
|
|
|
3433
3455
|
style: { flex: 1 },
|
|
3434
3456
|
children: [
|
|
3435
3457
|
d ? /* @__PURE__ */ i(Pa, { loading: !0, children: s && /* @__PURE__ */ i(s, { width: 16, height: 16 }) }) : s && /* @__PURE__ */ i(s, { width: 16, height: 16 }),
|
|
3436
|
-
/* @__PURE__ */ i(
|
|
3458
|
+
/* @__PURE__ */ i(J, { size: "2", weight: "medium", children: a })
|
|
3437
3459
|
]
|
|
3438
3460
|
}
|
|
3439
3461
|
)
|
|
@@ -3474,18 +3496,18 @@ const Rm = "_sliderTrack_bq3k4_29", vm = "_sliderTrackSize1_bq3k4_40", Bm = "_sl
|
|
|
3474
3496
|
size: u = "2",
|
|
3475
3497
|
disabled: g = !1,
|
|
3476
3498
|
highContrast: C = !1,
|
|
3477
|
-
markers:
|
|
3478
|
-
...
|
|
3499
|
+
markers: I = [],
|
|
3500
|
+
...y
|
|
3479
3501
|
}) => {
|
|
3480
|
-
const
|
|
3502
|
+
const m = (h) => (h - c) / (A - c) * 100;
|
|
3481
3503
|
return /* @__PURE__ */ f(ce, { width: "100%", children: [
|
|
3482
|
-
t && /* @__PURE__ */ f(
|
|
3483
|
-
/* @__PURE__ */ f(
|
|
3484
|
-
/* @__PURE__ */ i(
|
|
3504
|
+
t && /* @__PURE__ */ f(E, { mb: "2", justify: "between", align: "center", children: [
|
|
3505
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
3506
|
+
/* @__PURE__ */ i(J, { size: "2", weight: "medium", style: { color: "var(--white)" }, children: t }),
|
|
3485
3507
|
l && /* @__PURE__ */ i(Xe, { content: l, children: /* @__PURE__ */ i(Jt, {}) })
|
|
3486
3508
|
] }),
|
|
3487
3509
|
o && /* @__PURE__ */ i(
|
|
3488
|
-
|
|
3510
|
+
J,
|
|
3489
3511
|
{
|
|
3490
3512
|
size: "2",
|
|
3491
3513
|
weight: "regular",
|
|
@@ -3494,7 +3516,7 @@ const Rm = "_sliderTrack_bq3k4_29", vm = "_sliderTrackSize1_bq3k4_40", Bm = "_sl
|
|
|
3494
3516
|
}
|
|
3495
3517
|
)
|
|
3496
3518
|
] }),
|
|
3497
|
-
/* @__PURE__ */ i(
|
|
3519
|
+
/* @__PURE__ */ i(E, { direction: "column", children: /* @__PURE__ */ i(
|
|
3498
3520
|
Qr,
|
|
3499
3521
|
{
|
|
3500
3522
|
min: c,
|
|
@@ -3504,12 +3526,12 @@ const Rm = "_sliderTrack_bq3k4_29", vm = "_sliderTrackSize1_bq3k4_40", Bm = "_sl
|
|
|
3504
3526
|
onValueChange: a,
|
|
3505
3527
|
disabled: g,
|
|
3506
3528
|
className: e,
|
|
3507
|
-
...
|
|
3508
|
-
children: /* @__PURE__ */ f(
|
|
3529
|
+
...y,
|
|
3530
|
+
children: /* @__PURE__ */ f(E, { className: se.sliderContainer, children: [
|
|
3509
3531
|
/* @__PURE__ */ f(
|
|
3510
3532
|
Ur,
|
|
3511
3533
|
{
|
|
3512
|
-
className:
|
|
3534
|
+
className: p(se.sliderTrack, {
|
|
3513
3535
|
[se.sliderTrackSize1]: u === "1",
|
|
3514
3536
|
[se.sliderTrackSize2]: u === "2",
|
|
3515
3537
|
[se.sliderTrackSize3]: u === "3"
|
|
@@ -3518,7 +3540,7 @@ const Rm = "_sliderTrack_bq3k4_29", vm = "_sliderTrackSize1_bq3k4_40", Bm = "_sl
|
|
|
3518
3540
|
/* @__PURE__ */ i(
|
|
3519
3541
|
xr,
|
|
3520
3542
|
{
|
|
3521
|
-
className:
|
|
3543
|
+
className: p(se.sliderRange, {
|
|
3522
3544
|
[se.sliderRangeAccent]: s === "accent",
|
|
3523
3545
|
[se.sliderRangeNeutral]: s === "neutral",
|
|
3524
3546
|
[se.sliderRangeHighContrastNeutral]: C && s === "neutral",
|
|
@@ -3529,7 +3551,7 @@ const Rm = "_sliderTrack_bq3k4_29", vm = "_sliderTrackSize1_bq3k4_40", Bm = "_sl
|
|
|
3529
3551
|
/* @__PURE__ */ i(
|
|
3530
3552
|
Tr,
|
|
3531
3553
|
{
|
|
3532
|
-
className:
|
|
3554
|
+
className: p(se.sliderThumb, {
|
|
3533
3555
|
[se.sliderThumbSize1]: u === "1",
|
|
3534
3556
|
[se.sliderThumbSize2]: u === "2",
|
|
3535
3557
|
[se.sliderThumbSize3]: u === "3"
|
|
@@ -3539,14 +3561,14 @@ const Rm = "_sliderTrack_bq3k4_29", vm = "_sliderTrackSize1_bq3k4_40", Bm = "_sl
|
|
|
3539
3561
|
]
|
|
3540
3562
|
}
|
|
3541
3563
|
),
|
|
3542
|
-
|
|
3564
|
+
I.length > 0 && /* @__PURE__ */ i("div", { className: se.markersContainer, children: I.map((h, S) => /* @__PURE__ */ i(
|
|
3543
3565
|
"div",
|
|
3544
3566
|
{
|
|
3545
|
-
className:
|
|
3567
|
+
className: p(se.marker, {
|
|
3546
3568
|
[se.markerSize3]: u === "3"
|
|
3547
3569
|
}),
|
|
3548
3570
|
style: {
|
|
3549
|
-
left: `${
|
|
3571
|
+
left: `${m(h)}%`
|
|
3550
3572
|
}
|
|
3551
3573
|
},
|
|
3552
3574
|
S
|
|
@@ -3588,12 +3610,12 @@ const Pm = "_textArea_wfiz0_1", Wm = "_variantClassic_wfiz0_12", jm = "_variantS
|
|
|
3588
3610
|
size: d = "2",
|
|
3589
3611
|
focusRing: u = !1,
|
|
3590
3612
|
...g
|
|
3591
|
-
}) => /* @__PURE__ */ f(
|
|
3592
|
-
s && /* @__PURE__ */ f(
|
|
3593
|
-
/* @__PURE__ */ i(
|
|
3613
|
+
}) => /* @__PURE__ */ f(E, { direction: "column", width: "100%", height: "100%", children: [
|
|
3614
|
+
s && /* @__PURE__ */ f(E, { mb: "2", align: "center", gap: "2", children: [
|
|
3615
|
+
/* @__PURE__ */ i(J, { size: "2", weight: "regular", children: s }),
|
|
3594
3616
|
r && /* @__PURE__ */ i(Ie, { content: r })
|
|
3595
3617
|
] }),
|
|
3596
|
-
/* @__PURE__ */ i(
|
|
3618
|
+
/* @__PURE__ */ i(E, { className: tt.fullSize, style: { flex: 1 }, children: /* @__PURE__ */ i(
|
|
3597
3619
|
On,
|
|
3598
3620
|
{
|
|
3599
3621
|
size: d,
|
|
@@ -3603,7 +3625,7 @@ const Pm = "_textArea_wfiz0_1", Wm = "_variantClassic_wfiz0_12", jm = "_variantS
|
|
|
3603
3625
|
onChange: t,
|
|
3604
3626
|
placeholder: a,
|
|
3605
3627
|
disabled: A,
|
|
3606
|
-
className:
|
|
3628
|
+
className: p(tt.textArea, o, {
|
|
3607
3629
|
[tt.variantClassic]: l === "classic",
|
|
3608
3630
|
[tt.variantSoft]: l === "soft",
|
|
3609
3631
|
[tt.disabled]: A,
|
|
@@ -3625,25 +3647,25 @@ const Gm = "_sectionExpander_t40ea_1", Lm = "_sectionExpanderHeader_t40ea_6", Ym
|
|
|
3625
3647
|
}, $m = ({ title: e, children: t, className: a, ...s }) => {
|
|
3626
3648
|
const [r, o] = de(!1);
|
|
3627
3649
|
return /* @__PURE__ */ f(
|
|
3628
|
-
|
|
3650
|
+
E,
|
|
3629
3651
|
{
|
|
3630
3652
|
width: "100%",
|
|
3631
3653
|
direction: "column",
|
|
3632
|
-
className:
|
|
3654
|
+
className: p(at.sectionExpander, a),
|
|
3633
3655
|
...s,
|
|
3634
3656
|
children: [
|
|
3635
3657
|
/* @__PURE__ */ f(
|
|
3636
|
-
|
|
3658
|
+
E,
|
|
3637
3659
|
{
|
|
3638
3660
|
className: at.sectionExpanderHeader,
|
|
3639
3661
|
align: "center",
|
|
3640
3662
|
justify: "between",
|
|
3641
3663
|
onClick: () => o(!r),
|
|
3642
3664
|
children: [
|
|
3643
|
-
/* @__PURE__ */ i(
|
|
3644
|
-
/* @__PURE__ */ f(
|
|
3665
|
+
/* @__PURE__ */ i(ot, { style: { width: "100%" } }),
|
|
3666
|
+
/* @__PURE__ */ f(E, { align: "center", justify: "center", width: "100%", gap: "1", px: "4", children: [
|
|
3645
3667
|
/* @__PURE__ */ i(
|
|
3646
|
-
|
|
3668
|
+
J,
|
|
3647
3669
|
{
|
|
3648
3670
|
size: "2",
|
|
3649
3671
|
truncate: "true",
|
|
@@ -3654,7 +3676,7 @@ const Gm = "_sectionExpander_t40ea_1", Lm = "_sectionExpanderHeader_t40ea_6", Ym
|
|
|
3654
3676
|
/* @__PURE__ */ i(
|
|
3655
3677
|
wi,
|
|
3656
3678
|
{
|
|
3657
|
-
className:
|
|
3679
|
+
className: p(at.sectionExpanderIcon, {
|
|
3658
3680
|
[at.expanded]: r
|
|
3659
3681
|
}),
|
|
3660
3682
|
width: 16,
|
|
@@ -3662,7 +3684,7 @@ const Gm = "_sectionExpander_t40ea_1", Lm = "_sectionExpanderHeader_t40ea_6", Ym
|
|
|
3662
3684
|
}
|
|
3663
3685
|
)
|
|
3664
3686
|
] }),
|
|
3665
|
-
/* @__PURE__ */ i(
|
|
3687
|
+
/* @__PURE__ */ i(ot, { style: { width: "100%" } })
|
|
3666
3688
|
]
|
|
3667
3689
|
}
|
|
3668
3690
|
),
|
|
@@ -3701,7 +3723,7 @@ const ep = "_contextMenuContent_p1zf8_5", tp = "_contextMenuSubContent_p1zf8_5",
|
|
|
3701
3723
|
return /* @__PURE__ */ i(
|
|
3702
3724
|
yi,
|
|
3703
3725
|
{
|
|
3704
|
-
className:
|
|
3726
|
+
className: p($.contextMenuLabel),
|
|
3705
3727
|
children: e.label
|
|
3706
3728
|
},
|
|
3707
3729
|
e.key
|
|
@@ -3711,7 +3733,7 @@ const ep = "_contextMenuContent_p1zf8_5", tp = "_contextMenuSubContent_p1zf8_5",
|
|
|
3711
3733
|
/* @__PURE__ */ f(
|
|
3712
3734
|
ki,
|
|
3713
3735
|
{
|
|
3714
|
-
className:
|
|
3736
|
+
className: p($.contextMenuSubTrigger, {
|
|
3715
3737
|
[$.red]: e.color === "red" && !e.disabled,
|
|
3716
3738
|
[$.cyan]: e.color === "cyan" && !e.disabled
|
|
3717
3739
|
}),
|
|
@@ -3729,7 +3751,7 @@ const ep = "_contextMenuContent_p1zf8_5", tp = "_contextMenuSubContent_p1zf8_5",
|
|
|
3729
3751
|
return /* @__PURE__ */ f(
|
|
3730
3752
|
Si,
|
|
3731
3753
|
{
|
|
3732
|
-
className:
|
|
3754
|
+
className: p($.contextMenuItem, {
|
|
3733
3755
|
[$.red]: e.color === "red" && !e.disabled,
|
|
3734
3756
|
[$.cyan]: e.color === "cyan" && !e.disabled
|
|
3735
3757
|
}),
|
|
@@ -3758,7 +3780,7 @@ const ep = "_contextMenuContent_p1zf8_5", tp = "_contextMenuSubContent_p1zf8_5",
|
|
|
3758
3780
|
fi,
|
|
3759
3781
|
{
|
|
3760
3782
|
value: e.value,
|
|
3761
|
-
className:
|
|
3783
|
+
className: p($.contextMenuItem, {
|
|
3762
3784
|
[$.contextMenuItemSelected]: e.value === e.radioValue,
|
|
3763
3785
|
[$.red]: e.color === "red" && !e.disabled,
|
|
3764
3786
|
[$.cyan]: e.color === "cyan" && !e.disabled
|
|
@@ -3796,7 +3818,7 @@ const ep = "_contextMenuContent_p1zf8_5", tp = "_contextMenuSubContent_p1zf8_5",
|
|
|
3796
3818
|
(t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ i(
|
|
3797
3819
|
pi,
|
|
3798
3820
|
{
|
|
3799
|
-
className:
|
|
3821
|
+
className: p($.contextMenuContent, a),
|
|
3800
3822
|
side: o.side,
|
|
3801
3823
|
align: o.align,
|
|
3802
3824
|
sideOffset: 5,
|
|
@@ -3828,9 +3850,9 @@ const mp = "_TextField_jg5ru_1", pp = "_Disabled_jg5ru_18", hp = "_ReadOnly_jg5r
|
|
|
3828
3850
|
Icon: d,
|
|
3829
3851
|
focusRing: u = !1,
|
|
3830
3852
|
...g
|
|
3831
|
-
}) => /* @__PURE__ */ f(
|
|
3832
|
-
s && /* @__PURE__ */ f(
|
|
3833
|
-
/* @__PURE__ */ i(
|
|
3853
|
+
}) => /* @__PURE__ */ f(E, { direction: "column", width: "100%", height: "100%", children: [
|
|
3854
|
+
s && /* @__PURE__ */ f(E, { mb: "2", align: "center", gap: "2", children: [
|
|
3855
|
+
/* @__PURE__ */ i(J, { size: "1", weight: "regular", children: s }),
|
|
3834
3856
|
r && /* @__PURE__ */ i(Ie, { content: r })
|
|
3835
3857
|
] }),
|
|
3836
3858
|
/* @__PURE__ */ i(
|
|
@@ -3840,7 +3862,7 @@ const mp = "_TextField_jg5ru_1", pp = "_Disabled_jg5ru_18", hp = "_ReadOnly_jg5r
|
|
|
3840
3862
|
value: e,
|
|
3841
3863
|
onChange: t,
|
|
3842
3864
|
placeholder: a,
|
|
3843
|
-
className:
|
|
3865
|
+
className: p(Dt.TextField, o, {
|
|
3844
3866
|
[Dt.Disabled]: l,
|
|
3845
3867
|
[Dt.ReadOnly]: c,
|
|
3846
3868
|
[Dt.focusRing]: u
|
|
@@ -3890,9 +3912,9 @@ const Sp = "_group_1wxsi_1", Mt = {
|
|
|
3890
3912
|
},
|
|
3891
3913
|
d
|
|
3892
3914
|
) });
|
|
3893
|
-
return /* @__PURE__ */ f(
|
|
3915
|
+
return /* @__PURE__ */ f(E, { className: p(e), style: s, gap: "3", children: [
|
|
3894
3916
|
o.length > 0 && o.map((A, d) => /* @__PURE__ */ i(
|
|
3895
|
-
|
|
3917
|
+
E,
|
|
3896
3918
|
{
|
|
3897
3919
|
className: Mt.group,
|
|
3898
3920
|
align: "center",
|
|
@@ -3901,10 +3923,10 @@ const Sp = "_group_1wxsi_1", Mt = {
|
|
|
3901
3923
|
},
|
|
3902
3924
|
`left-group-${d}`
|
|
3903
3925
|
)),
|
|
3904
|
-
/* @__PURE__ */ i(
|
|
3926
|
+
/* @__PURE__ */ i(E, { className: Mt.group, align: "center", gap: "1", children: t.map((A, d) => /* @__PURE__ */ f(re.Fragment, { children: [
|
|
3905
3927
|
c(A, `g-${d}`, r),
|
|
3906
3928
|
d < t.length - 1 && /* @__PURE__ */ i(
|
|
3907
|
-
|
|
3929
|
+
ot,
|
|
3908
3930
|
{
|
|
3909
3931
|
className: Mt.separator,
|
|
3910
3932
|
orientation: "vertical",
|
|
@@ -3916,7 +3938,7 @@ const Sp = "_group_1wxsi_1", Mt = {
|
|
|
3916
3938
|
)
|
|
3917
3939
|
] }, d)) }),
|
|
3918
3940
|
l.length > 0 && l.map((A, d) => /* @__PURE__ */ i(
|
|
3919
|
-
|
|
3941
|
+
E,
|
|
3920
3942
|
{
|
|
3921
3943
|
className: Mt.group,
|
|
3922
3944
|
align: "center",
|
|
@@ -3959,7 +3981,7 @@ const kp = "_size1_18z9r_1", Ep = "_accent_18z9r_5", yp = "_neutral_18z9r_15", R
|
|
|
3959
3981
|
color: s,
|
|
3960
3982
|
variant: "soft",
|
|
3961
3983
|
highContrast: r,
|
|
3962
|
-
className:
|
|
3984
|
+
className: p(
|
|
3963
3985
|
Ft.Callout,
|
|
3964
3986
|
t,
|
|
3965
3987
|
Ft[s],
|
|
@@ -3997,12 +4019,12 @@ const bp = "_hasTriggerWithoutClick_1ss22_1", Jp = "_hasLeftColor_1ss22_10", Qp
|
|
|
3997
4019
|
const [d, u] = de(!1), g = (C) => {
|
|
3998
4020
|
r && (C.preventDefault(), C.stopPropagation(), r(C));
|
|
3999
4021
|
};
|
|
4000
|
-
return /* @__PURE__ */ i(
|
|
4022
|
+
return /* @__PURE__ */ i(E, { className: p(pe.container, a), ...A, children: /* @__PURE__ */ f(xs, { open: o, onOpenChange: l, modal: !0, children: [
|
|
4001
4023
|
r && /* @__PURE__ */ i(
|
|
4002
|
-
|
|
4024
|
+
E,
|
|
4003
4025
|
{
|
|
4004
4026
|
as: "button",
|
|
4005
|
-
className:
|
|
4027
|
+
className: p({
|
|
4006
4028
|
[pe.triggerWithClick]: r,
|
|
4007
4029
|
[pe.hasLeftColor]: c
|
|
4008
4030
|
}),
|
|
@@ -4032,7 +4054,7 @@ const bp = "_hasTriggerWithoutClick_1ss22_1", Jp = "_hasLeftColor_1ss22_10", Qp
|
|
|
4032
4054
|
/* @__PURE__ */ i(Ts, { asChild: !0, children: /* @__PURE__ */ f(
|
|
4033
4055
|
"div",
|
|
4034
4056
|
{
|
|
4035
|
-
className:
|
|
4057
|
+
className: p({
|
|
4036
4058
|
[pe.hover]: d,
|
|
4037
4059
|
[pe.hasLeftColor]: c,
|
|
4038
4060
|
[pe.hasTriggerWithClick]: r,
|
|
@@ -4061,7 +4083,7 @@ const bp = "_hasTriggerWithoutClick_1ss22_1", Jp = "_hasLeftColor_1ss22_10", Qp
|
|
|
4061
4083
|
s && /* @__PURE__ */ i(
|
|
4062
4084
|
"span",
|
|
4063
4085
|
{
|
|
4064
|
-
className:
|
|
4086
|
+
className: p(pe.separator, {
|
|
4065
4087
|
[pe.hasLeftColor]: c
|
|
4066
4088
|
})
|
|
4067
4089
|
}
|
|
@@ -4071,7 +4093,7 @@ const bp = "_hasTriggerWithoutClick_1ss22_1", Jp = "_hasLeftColor_1ss22_10", Qp
|
|
|
4071
4093
|
{
|
|
4072
4094
|
width: 8,
|
|
4073
4095
|
height: 8,
|
|
4074
|
-
className:
|
|
4096
|
+
className: p(pe.chevron, {
|
|
4075
4097
|
[pe.hover]: d
|
|
4076
4098
|
})
|
|
4077
4099
|
}
|
|
@@ -4121,18 +4143,18 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4121
4143
|
x: Vt + Is * Math.cos(e),
|
|
4122
4144
|
y: qt + Is * Math.sin(e),
|
|
4123
4145
|
position: t
|
|
4124
|
-
})),
|
|
4146
|
+
})), Rt = (e) => e / 7 * 2 - 1, Pp = (e, t) => e.find((a) => a.position === t), Es = (e, t, a) => {
|
|
4125
4147
|
if (t.length === 0) return e;
|
|
4126
4148
|
let s;
|
|
4127
4149
|
if (typeof e == "object" && e !== null)
|
|
4128
4150
|
s = e.position;
|
|
4129
4151
|
else {
|
|
4130
4152
|
let l = t[0], c = Math.abs(
|
|
4131
|
-
|
|
4153
|
+
Rt(l.position) - e
|
|
4132
4154
|
);
|
|
4133
4155
|
for (let A = 1; A < t.length; A++) {
|
|
4134
4156
|
const d = t[A], u = Math.abs(
|
|
4135
|
-
|
|
4157
|
+
Rt(d.position) - e
|
|
4136
4158
|
);
|
|
4137
4159
|
u < c && (c = u, l = d);
|
|
4138
4160
|
}
|
|
@@ -4152,15 +4174,15 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4152
4174
|
}, Wp = (e, t) => {
|
|
4153
4175
|
if (t.length === 0) return null;
|
|
4154
4176
|
for (const r of t) {
|
|
4155
|
-
const o =
|
|
4177
|
+
const o = Rt(r.position);
|
|
4156
4178
|
if (Math.abs(o - e) < 0.01)
|
|
4157
4179
|
return r.position;
|
|
4158
4180
|
}
|
|
4159
4181
|
let a = t[0], s = Math.abs(
|
|
4160
|
-
|
|
4182
|
+
Rt(a.position) - e
|
|
4161
4183
|
);
|
|
4162
4184
|
for (let r = 1; r < t.length; r++) {
|
|
4163
|
-
const o = t[r], l = Math.abs(
|
|
4185
|
+
const o = t[r], l = Math.abs(Rt(o.position) - e);
|
|
4164
4186
|
l < s && (s = l, a = o);
|
|
4165
4187
|
}
|
|
4166
4188
|
return a.position;
|
|
@@ -4183,9 +4205,9 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4183
4205
|
e == null && t(r);
|
|
4184
4206
|
}, [e, t, r]);
|
|
4185
4207
|
const C = x(
|
|
4186
|
-
(
|
|
4187
|
-
if (
|
|
4188
|
-
const v =
|
|
4208
|
+
(k) => {
|
|
4209
|
+
if (k.preventDefault(), k.stopPropagation(), a) return;
|
|
4210
|
+
const v = k.wheelDelta ?? -k.deltaY * 25;
|
|
4189
4211
|
if (!v || Math.abs(v) <= 50) return;
|
|
4190
4212
|
const B = Date.now();
|
|
4191
4213
|
if (B - g.current < 100) return;
|
|
@@ -4193,42 +4215,42 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4193
4215
|
t(b), g.current = B;
|
|
4194
4216
|
},
|
|
4195
4217
|
[t, e, s, a]
|
|
4196
|
-
),
|
|
4197
|
-
(
|
|
4218
|
+
), I = x(
|
|
4219
|
+
(k) => {
|
|
4198
4220
|
if (a) {
|
|
4199
|
-
|
|
4221
|
+
k.preventDefault();
|
|
4200
4222
|
return;
|
|
4201
4223
|
}
|
|
4202
|
-
|
|
4224
|
+
k.preventDefault(), A(!0), u(k.clientY);
|
|
4203
4225
|
},
|
|
4204
4226
|
[a]
|
|
4205
|
-
),
|
|
4206
|
-
(
|
|
4227
|
+
), y = x(
|
|
4228
|
+
(k) => {
|
|
4207
4229
|
if (!c || a) return;
|
|
4208
|
-
const v = d -
|
|
4230
|
+
const v = d - k.clientY;
|
|
4209
4231
|
if (Math.abs(v) <= 20) return;
|
|
4210
4232
|
const B = v > 0 ? 1 : -1, N = Es(e, s, B);
|
|
4211
|
-
t(N), u(
|
|
4233
|
+
t(N), u(k.clientY), g.current = Date.now();
|
|
4212
4234
|
},
|
|
4213
4235
|
[c, d, e, t, s, a]
|
|
4214
|
-
),
|
|
4236
|
+
), m = x(() => {
|
|
4215
4237
|
A(!1);
|
|
4216
4238
|
}, []), h = x(() => {
|
|
4217
4239
|
A(!1);
|
|
4218
4240
|
}, []), S = x(
|
|
4219
|
-
(
|
|
4220
|
-
|
|
4241
|
+
(k) => {
|
|
4242
|
+
k.detail === 2 && !a && t(r);
|
|
4221
4243
|
},
|
|
4222
4244
|
[t, r, a]
|
|
4223
4245
|
), R = x(
|
|
4224
|
-
(
|
|
4246
|
+
(k) => {
|
|
4225
4247
|
if (!o || a) return;
|
|
4226
|
-
const v = Pp(s,
|
|
4248
|
+
const v = Pp(s, k);
|
|
4227
4249
|
v && t(v);
|
|
4228
4250
|
},
|
|
4229
4251
|
[o, a, t, s]
|
|
4230
4252
|
);
|
|
4231
|
-
return rt("wheel", C, l), rt("mousedown",
|
|
4253
|
+
return rt("wheel", C, l), rt("mousedown", I, l), rt("mousemove", y), rt("mouseup", m), rt("mouseleave", h), {
|
|
4232
4254
|
containerRef: l,
|
|
4233
4255
|
isDragging: c,
|
|
4234
4256
|
handleClick: S,
|
|
@@ -4252,22 +4274,22 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4252
4274
|
dots: o || [],
|
|
4253
4275
|
defaultDot: A,
|
|
4254
4276
|
clickableDots: r
|
|
4255
|
-
}),
|
|
4256
|
-
const R = ks[S.color] || ks.neutral,
|
|
4257
|
-
return s ? R.default :
|
|
4277
|
+
}), I = ne(() => typeof t == "object" && t !== null ? t.position : Wp(t, o), [t, o]), { pointerRotation: y, pointerColor: m } = ne(() => jp(I, s), [I, s]), h = (S) => {
|
|
4278
|
+
const R = ks[S.color] || ks.neutral, k = S.position === I, v = l === S.position && r;
|
|
4279
|
+
return s ? R.default : k ? R.active : v ? R.hover : R.default;
|
|
4258
4280
|
};
|
|
4259
4281
|
return /* @__PURE__ */ i(
|
|
4260
4282
|
"div",
|
|
4261
4283
|
{
|
|
4262
4284
|
ref: d,
|
|
4263
|
-
className:
|
|
4285
|
+
className: p(Ot.content, e),
|
|
4264
4286
|
"data-no-drag": "true",
|
|
4265
4287
|
onClick: g,
|
|
4266
4288
|
style: { cursor: s ? "default" : "ns-resize" },
|
|
4267
4289
|
children: /* @__PURE__ */ i(
|
|
4268
4290
|
"div",
|
|
4269
4291
|
{
|
|
4270
|
-
className:
|
|
4292
|
+
className: p(
|
|
4271
4293
|
Ot.pan,
|
|
4272
4294
|
u && Ot.active,
|
|
4273
4295
|
s && Ot.disabled
|
|
@@ -4287,12 +4309,12 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4287
4309
|
/* @__PURE__ */ i(
|
|
4288
4310
|
"g",
|
|
4289
4311
|
{
|
|
4290
|
-
transform: `rotate(${
|
|
4312
|
+
transform: `rotate(${y} ${Vt} ${qt})`,
|
|
4291
4313
|
children: /* @__PURE__ */ i(
|
|
4292
4314
|
"path",
|
|
4293
4315
|
{
|
|
4294
4316
|
d: "M19.5 4.5 L19.5 12",
|
|
4295
|
-
stroke:
|
|
4317
|
+
stroke: m,
|
|
4296
4318
|
strokeWidth: 1,
|
|
4297
4319
|
transform: "rotate(90 19.5 19.5)"
|
|
4298
4320
|
}
|
|
@@ -4302,7 +4324,7 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4302
4324
|
o == null ? void 0 : o.map((S) => {
|
|
4303
4325
|
const R = Hn[S.position];
|
|
4304
4326
|
if (!R) return null;
|
|
4305
|
-
const
|
|
4327
|
+
const k = h(S), v = r && !s;
|
|
4306
4328
|
return /* @__PURE__ */ f(re.Fragment, { children: [
|
|
4307
4329
|
v && /* @__PURE__ */ i(
|
|
4308
4330
|
"circle",
|
|
@@ -4327,7 +4349,7 @@ const Op = "_content_1vf1h_1", Kp = "_pan_1vf1h_13", zp = "_disabled_1vf1h_26",
|
|
|
4327
4349
|
cx: R.x,
|
|
4328
4350
|
cy: R.y,
|
|
4329
4351
|
r: 1,
|
|
4330
|
-
fill:
|
|
4352
|
+
fill: k,
|
|
4331
4353
|
style: {
|
|
4332
4354
|
cursor: v ? "pointer" : "default",
|
|
4333
4355
|
transition: "fill 0.2s ease",
|
|
@@ -4358,10 +4380,10 @@ const Lp = "_textSize0_1rdyc_1", Yp = {
|
|
|
4358
4380
|
}, he = ({ size: e, className: t, children: a, ...s }) => {
|
|
4359
4381
|
const r = e === "0";
|
|
4360
4382
|
return /* @__PURE__ */ i(
|
|
4361
|
-
|
|
4383
|
+
J,
|
|
4362
4384
|
{
|
|
4363
4385
|
size: r ? void 0 : e,
|
|
4364
|
-
className:
|
|
4386
|
+
className: p(t, r && Yp.textSize0),
|
|
4365
4387
|
...s,
|
|
4366
4388
|
children: a
|
|
4367
4389
|
}
|
|
@@ -4394,29 +4416,29 @@ const Xp = "_starButton_azi6g_1", Zp = "_disabled_azi6g_17", _p = "_readOnly_azi
|
|
|
4394
4416
|
maxLabel: u,
|
|
4395
4417
|
...g
|
|
4396
4418
|
}) => {
|
|
4397
|
-
const [C,
|
|
4419
|
+
const [C, I] = de(a || 0), [y, m] = de(0), h = t !== void 0 ? t : C, S = t !== void 0, R = x(
|
|
4398
4420
|
(N) => {
|
|
4399
4421
|
if (s || r) return;
|
|
4400
4422
|
const b = N + 1, M = b === h ? 0 : b;
|
|
4401
|
-
S ||
|
|
4423
|
+
S || I(M), o == null || o({ value: M });
|
|
4402
4424
|
},
|
|
4403
4425
|
[s, r, S, o, h]
|
|
4404
|
-
),
|
|
4426
|
+
), k = x(
|
|
4405
4427
|
(N) => {
|
|
4406
4428
|
if (s || r) return;
|
|
4407
4429
|
const b = N.currentTarget.getBoundingClientRect(), M = N.clientX - b.left, Y = b.width / e, _ = Math.floor(M / Y), P = Math.max(0, Math.min(_, e - 1)) + 1;
|
|
4408
|
-
P !==
|
|
4430
|
+
P !== y && (m(P), l == null || l({ value: P }));
|
|
4409
4431
|
},
|
|
4410
|
-
[s, r, e,
|
|
4432
|
+
[s, r, e, y, l]
|
|
4411
4433
|
), v = x(() => {
|
|
4412
|
-
s || r || (
|
|
4434
|
+
s || r || (m(0), l == null || l({ value: 0 }));
|
|
4413
4435
|
}, [s, r, l]), B = (N) => {
|
|
4414
|
-
const b =
|
|
4436
|
+
const b = y > 0 ? N < y : N < h, M = y > 0 && N < y, Y = N < h;
|
|
4415
4437
|
return /* @__PURE__ */ i(
|
|
4416
4438
|
"button",
|
|
4417
4439
|
{
|
|
4418
4440
|
type: "button",
|
|
4419
|
-
className:
|
|
4441
|
+
className: p(ge.starButton, {
|
|
4420
4442
|
[ge.filled]: b,
|
|
4421
4443
|
[ge.hovered]: M,
|
|
4422
4444
|
[ge.active]: Y,
|
|
@@ -4433,18 +4455,18 @@ const Xp = "_starButton_azi6g_1", Zp = "_disabled_azi6g_17", _p = "_readOnly_azi
|
|
|
4433
4455
|
);
|
|
4434
4456
|
};
|
|
4435
4457
|
return /* @__PURE__ */ f(
|
|
4436
|
-
|
|
4458
|
+
E,
|
|
4437
4459
|
{
|
|
4438
4460
|
direction: "column",
|
|
4439
4461
|
align: "center",
|
|
4440
4462
|
gap: "2",
|
|
4441
4463
|
width: "100%",
|
|
4442
|
-
className:
|
|
4464
|
+
className: p(c),
|
|
4443
4465
|
children: [
|
|
4444
|
-
A && /* @__PURE__ */ i(
|
|
4445
|
-
/* @__PURE__ */ f(
|
|
4466
|
+
A && /* @__PURE__ */ i(J, { size: "2", weight: "medium", className: ge.label, children: A }),
|
|
4467
|
+
/* @__PURE__ */ f(E, { direction: "column", gap: "1", width: "100%", children: [
|
|
4446
4468
|
/* @__PURE__ */ i(
|
|
4447
|
-
|
|
4469
|
+
E,
|
|
4448
4470
|
{
|
|
4449
4471
|
direction: "row",
|
|
4450
4472
|
align: "center",
|
|
@@ -4453,21 +4475,21 @@ const Xp = "_starButton_azi6g_1", Zp = "_disabled_azi6g_17", _p = "_readOnly_azi
|
|
|
4453
4475
|
className: ge.starsContainer,
|
|
4454
4476
|
role: "radiogroup",
|
|
4455
4477
|
"aria-label": `Rating: ${h} out of ${e} stars`,
|
|
4456
|
-
onMouseMove:
|
|
4478
|
+
onMouseMove: k,
|
|
4457
4479
|
onMouseLeave: v,
|
|
4458
4480
|
children: Array.from({ length: e }, (N, b) => B(b))
|
|
4459
4481
|
}
|
|
4460
4482
|
),
|
|
4461
4483
|
(d || u) && /* @__PURE__ */ f(
|
|
4462
|
-
|
|
4484
|
+
E,
|
|
4463
4485
|
{
|
|
4464
4486
|
direction: "row",
|
|
4465
4487
|
align: "center",
|
|
4466
4488
|
justify: "between",
|
|
4467
4489
|
className: ge.labelsContainer,
|
|
4468
4490
|
children: [
|
|
4469
|
-
d ? /* @__PURE__ */ i(
|
|
4470
|
-
u ? /* @__PURE__ */ i(
|
|
4491
|
+
d ? /* @__PURE__ */ i(J, { size: "2", className: ge.smallLabel, weight: "regular", children: d }) : /* @__PURE__ */ i("div", {}),
|
|
4492
|
+
u ? /* @__PURE__ */ i(J, { size: "2", className: ge.smallLabel, weight: "regular", children: u }) : /* @__PURE__ */ i("div", {})
|
|
4471
4493
|
]
|
|
4472
4494
|
}
|
|
4473
4495
|
)
|
|
@@ -4498,7 +4520,7 @@ const Kt = (e) => {
|
|
|
4498
4520
|
}, Ah = (e = { _: (t) => t }) => [
|
|
4499
4521
|
{ value: "drums", label: e._("Drums"), icon: Vs },
|
|
4500
4522
|
{ value: "bass", label: e._("Bass"), icon: qs },
|
|
4501
|
-
{ value: "guitar", label: e._("Guitar"), icon:
|
|
4523
|
+
{ value: "guitar", label: e._("Guitar"), icon: St },
|
|
4502
4524
|
{ value: "generic", label: e._("Others"), icon: xi }
|
|
4503
4525
|
], dh = {
|
|
4504
4526
|
steps: 50,
|
|
@@ -4551,7 +4573,7 @@ const Kt = (e) => {
|
|
|
4551
4573
|
}));
|
|
4552
4574
|
}, [t]);
|
|
4553
4575
|
return /* @__PURE__ */ i(
|
|
4554
|
-
|
|
4576
|
+
E,
|
|
4555
4577
|
{
|
|
4556
4578
|
mt: "2",
|
|
4557
4579
|
direction: "column",
|
|
@@ -4561,7 +4583,7 @@ const Kt = (e) => {
|
|
|
4561
4583
|
maxHeight: "100%"
|
|
4562
4584
|
},
|
|
4563
4585
|
children: /* @__PURE__ */ f(
|
|
4564
|
-
|
|
4586
|
+
E,
|
|
4565
4587
|
{
|
|
4566
4588
|
direction: "column",
|
|
4567
4589
|
p: "2",
|
|
@@ -4572,7 +4594,7 @@ const Kt = (e) => {
|
|
|
4572
4594
|
flex: "0 0 auto"
|
|
4573
4595
|
},
|
|
4574
4596
|
children: [
|
|
4575
|
-
e.conditioningAudio ? /* @__PURE__ */ f(
|
|
4597
|
+
e.conditioningAudio ? /* @__PURE__ */ f(E, { direction: "row", align: "center", gap: "2", justify: "center", children: [
|
|
4576
4598
|
/* @__PURE__ */ i(Ti, { width: 16, height: 16 }),
|
|
4577
4599
|
/* @__PURE__ */ f(he, { size: "1", children: [
|
|
4578
4600
|
e.conditioningAudioName,
|
|
@@ -4602,7 +4624,7 @@ const Kt = (e) => {
|
|
|
4602
4624
|
}
|
|
4603
4625
|
),
|
|
4604
4626
|
/* @__PURE__ */ i(
|
|
4605
|
-
|
|
4627
|
+
ot,
|
|
4606
4628
|
{
|
|
4607
4629
|
size: "4",
|
|
4608
4630
|
style: { backgroundColor: "var(--neutral-alpha-4)" }
|
|
@@ -4637,7 +4659,7 @@ const Kt = (e) => {
|
|
|
4637
4659
|
(r) => r.instrument === e.instrument
|
|
4638
4660
|
), [a, e.instrument]);
|
|
4639
4661
|
return /* @__PURE__ */ i(
|
|
4640
|
-
|
|
4662
|
+
E,
|
|
4641
4663
|
{
|
|
4642
4664
|
direction: "column",
|
|
4643
4665
|
gap: "0",
|
|
@@ -4670,23 +4692,23 @@ function ph({
|
|
|
4670
4692
|
}) {
|
|
4671
4693
|
var c, A, d, u, g, C;
|
|
4672
4694
|
const o = e.customizeCreativeFreedom || !1, l = x(
|
|
4673
|
-
async (
|
|
4674
|
-
var
|
|
4695
|
+
async (I) => {
|
|
4696
|
+
var y, m, h;
|
|
4675
4697
|
await r() || s({
|
|
4676
4698
|
...e,
|
|
4677
|
-
customizeCreativeFreedom:
|
|
4699
|
+
customizeCreativeFreedom: I,
|
|
4678
4700
|
// initialize defaults for sliders when enabling
|
|
4679
|
-
guidanceClap:
|
|
4680
|
-
guidanceContextAudio:
|
|
4681
|
-
guidanceContextChroma:
|
|
4701
|
+
guidanceClap: I ? e.guidanceClap ?? ((y = Se[e.instrument]) == null ? void 0 : y.clap) ?? 4 : null,
|
|
4702
|
+
guidanceContextAudio: I ? e.guidanceContextAudio ?? ((m = Se[e.instrument]) == null ? void 0 : m.context) ?? 4 : null,
|
|
4703
|
+
guidanceContextChroma: I ? e.instrument === "drums" ? null : e.guidanceContextChroma ?? ((h = Se[e.instrument]) == null ? void 0 : h.chroma) ?? 4 : null
|
|
4682
4704
|
});
|
|
4683
4705
|
},
|
|
4684
4706
|
[e, s, r]
|
|
4685
4707
|
);
|
|
4686
|
-
return /* @__PURE__ */ i(
|
|
4687
|
-
/* @__PURE__ */ f(
|
|
4688
|
-
/* @__PURE__ */ f(
|
|
4689
|
-
/* @__PURE__ */ i(
|
|
4708
|
+
return /* @__PURE__ */ i(E, { direction: "column", gap: "5", children: /* @__PURE__ */ f(E, { direction: "column", gap: "2", children: [
|
|
4709
|
+
/* @__PURE__ */ f(E, { justify: "between", align: "center", children: [
|
|
4710
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
4711
|
+
/* @__PURE__ */ i(J, { size: "2", children: a._("Creative Control") }),
|
|
4690
4712
|
/* @__PURE__ */ i(
|
|
4691
4713
|
Ie,
|
|
4692
4714
|
{
|
|
@@ -4704,11 +4726,11 @@ function ph({
|
|
|
4704
4726
|
}
|
|
4705
4727
|
)
|
|
4706
4728
|
] }),
|
|
4707
|
-
o && /* @__PURE__ */ f(
|
|
4708
|
-
/* @__PURE__ */ f(
|
|
4709
|
-
/* @__PURE__ */ f(
|
|
4710
|
-
/* @__PURE__ */ f(
|
|
4711
|
-
/* @__PURE__ */ i(
|
|
4729
|
+
o && /* @__PURE__ */ f(E, { direction: "column", gap: "2", children: [
|
|
4730
|
+
/* @__PURE__ */ f(E, { direction: "column", gap: "2", children: [
|
|
4731
|
+
/* @__PURE__ */ f(E, { align: "center", justify: "between", children: [
|
|
4732
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
4733
|
+
/* @__PURE__ */ i(J, { size: "2", children: a._("Conditioning strictness") }),
|
|
4712
4734
|
/* @__PURE__ */ i(
|
|
4713
4735
|
Ie,
|
|
4714
4736
|
{
|
|
@@ -4718,7 +4740,7 @@ function ph({
|
|
|
4718
4740
|
}
|
|
4719
4741
|
)
|
|
4720
4742
|
] }),
|
|
4721
|
-
/* @__PURE__ */ i(
|
|
4743
|
+
/* @__PURE__ */ i(J, { size: "2", className: da.neutral9, children: (e.guidanceClap ?? ((c = Se[t]) == null ? void 0 : c.clap) ?? 4).toFixed(1) })
|
|
4722
4744
|
] }),
|
|
4723
4745
|
/* @__PURE__ */ i(
|
|
4724
4746
|
zt,
|
|
@@ -4727,17 +4749,17 @@ function ph({
|
|
|
4727
4749
|
e.guidanceClap ?? ((A = Se[t]) == null ? void 0 : A.clap) ?? 4
|
|
4728
4750
|
],
|
|
4729
4751
|
size: "1",
|
|
4730
|
-
onValueChange: (
|
|
4752
|
+
onValueChange: (I) => s({ ...e, guidanceClap: I[0] }),
|
|
4731
4753
|
max: 16,
|
|
4732
4754
|
min: 0,
|
|
4733
4755
|
step: 0.1
|
|
4734
4756
|
}
|
|
4735
4757
|
)
|
|
4736
4758
|
] }),
|
|
4737
|
-
/* @__PURE__ */ f(
|
|
4738
|
-
/* @__PURE__ */ f(
|
|
4739
|
-
/* @__PURE__ */ f(
|
|
4740
|
-
/* @__PURE__ */ i(
|
|
4759
|
+
/* @__PURE__ */ f(E, { direction: "column", gap: "2", children: [
|
|
4760
|
+
/* @__PURE__ */ f(E, { align: "center", justify: "between", children: [
|
|
4761
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
4762
|
+
/* @__PURE__ */ i(J, { size: "2", children: a._("Context strictness") }),
|
|
4741
4763
|
/* @__PURE__ */ i(
|
|
4742
4764
|
Ie,
|
|
4743
4765
|
{
|
|
@@ -4747,7 +4769,7 @@ function ph({
|
|
|
4747
4769
|
}
|
|
4748
4770
|
)
|
|
4749
4771
|
] }),
|
|
4750
|
-
/* @__PURE__ */ i(
|
|
4772
|
+
/* @__PURE__ */ i(J, { size: "2", className: da.neutral9, children: (e.guidanceContextAudio ?? ((d = Se[t]) == null ? void 0 : d.context) ?? 4).toFixed(1) })
|
|
4751
4773
|
] }),
|
|
4752
4774
|
/* @__PURE__ */ i(
|
|
4753
4775
|
zt,
|
|
@@ -4756,9 +4778,9 @@ function ph({
|
|
|
4756
4778
|
e.guidanceContextAudio ?? ((u = Se[t]) == null ? void 0 : u.context) ?? 4
|
|
4757
4779
|
],
|
|
4758
4780
|
size: "1",
|
|
4759
|
-
onValueChange: (
|
|
4781
|
+
onValueChange: (I) => s({
|
|
4760
4782
|
...e,
|
|
4761
|
-
guidanceContextAudio:
|
|
4783
|
+
guidanceContextAudio: I[0]
|
|
4762
4784
|
}),
|
|
4763
4785
|
max: 16,
|
|
4764
4786
|
min: 0,
|
|
@@ -4766,10 +4788,10 @@ function ph({
|
|
|
4766
4788
|
}
|
|
4767
4789
|
)
|
|
4768
4790
|
] }),
|
|
4769
|
-
/* @__PURE__ */ f(
|
|
4770
|
-
/* @__PURE__ */ f(
|
|
4771
|
-
/* @__PURE__ */ f(
|
|
4772
|
-
/* @__PURE__ */ i(
|
|
4791
|
+
/* @__PURE__ */ f(E, { direction: "column", gap: "2", children: [
|
|
4792
|
+
/* @__PURE__ */ f(E, { align: "center", justify: "between", children: [
|
|
4793
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
4794
|
+
/* @__PURE__ */ i(J, { size: "2", children: a._("Harmonic strictness") }),
|
|
4773
4795
|
/* @__PURE__ */ i(
|
|
4774
4796
|
Ie,
|
|
4775
4797
|
{
|
|
@@ -4779,7 +4801,7 @@ function ph({
|
|
|
4779
4801
|
}
|
|
4780
4802
|
)
|
|
4781
4803
|
] }),
|
|
4782
|
-
/* @__PURE__ */ i(
|
|
4804
|
+
/* @__PURE__ */ i(J, { size: "2", className: da.neutral9, children: (e.guidanceContextChroma ?? ((g = Se[t]) == null ? void 0 : g.chroma) ?? 4).toFixed(1) })
|
|
4783
4805
|
] }),
|
|
4784
4806
|
/* @__PURE__ */ i(
|
|
4785
4807
|
zt,
|
|
@@ -4788,9 +4810,9 @@ function ph({
|
|
|
4788
4810
|
e.guidanceContextChroma ?? ((C = Se[t]) == null ? void 0 : C.chroma) ?? 4
|
|
4789
4811
|
],
|
|
4790
4812
|
size: "1",
|
|
4791
|
-
onValueChange: (
|
|
4813
|
+
onValueChange: (I) => s({
|
|
4792
4814
|
...e,
|
|
4793
|
-
guidanceContextChroma:
|
|
4815
|
+
guidanceContextChroma: I[0]
|
|
4794
4816
|
}),
|
|
4795
4817
|
max: 16,
|
|
4796
4818
|
min: 0,
|
|
@@ -4834,13 +4856,13 @@ function fh({
|
|
|
4834
4856
|
variant: "soft",
|
|
4835
4857
|
size: "2",
|
|
4836
4858
|
disabled: s,
|
|
4837
|
-
className:
|
|
4859
|
+
className: p([ys.customIconButton], {
|
|
4838
4860
|
[ys.disabledIconButton]: s
|
|
4839
4861
|
}),
|
|
4840
4862
|
children: /* @__PURE__ */ i(Oi, { width: 16, height: 16 })
|
|
4841
4863
|
}
|
|
4842
4864
|
) }),
|
|
4843
|
-
/* @__PURE__ */ i(Za, { minWidth: "350px", maxWidth: "100%", children: /* @__PURE__ */ i(ce, { children: /* @__PURE__ */ f(
|
|
4865
|
+
/* @__PURE__ */ i(Za, { minWidth: "350px", maxWidth: "100%", children: /* @__PURE__ */ i(ce, { children: /* @__PURE__ */ f(E, { direction: "column", gap: "5", children: [
|
|
4844
4866
|
/* @__PURE__ */ i(
|
|
4845
4867
|
ph,
|
|
4846
4868
|
{
|
|
@@ -4851,8 +4873,8 @@ function fh({
|
|
|
4851
4873
|
showAdvancedControlsPaywall: o
|
|
4852
4874
|
}
|
|
4853
4875
|
),
|
|
4854
|
-
r === "1" && /* @__PURE__ */ f(
|
|
4855
|
-
/* @__PURE__ */ f(
|
|
4876
|
+
r === "1" && /* @__PURE__ */ f(E, { justify: "between", align: "center", children: [
|
|
4877
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
4856
4878
|
/* @__PURE__ */ i(he, { size: "2", children: a._("Optimize Conditioning") }),
|
|
4857
4879
|
/* @__PURE__ */ i(
|
|
4858
4880
|
Ie,
|
|
@@ -4863,7 +4885,7 @@ function fh({
|
|
|
4863
4885
|
}
|
|
4864
4886
|
)
|
|
4865
4887
|
] }),
|
|
4866
|
-
/* @__PURE__ */ i(
|
|
4888
|
+
/* @__PURE__ */ i(E, { align: "center", gap: "2", children: /* @__PURE__ */ i(
|
|
4867
4889
|
wt,
|
|
4868
4890
|
{
|
|
4869
4891
|
checked: e.clapNn,
|
|
@@ -4871,8 +4893,8 @@ function fh({
|
|
|
4871
4893
|
}
|
|
4872
4894
|
) })
|
|
4873
4895
|
] }),
|
|
4874
|
-
/* @__PURE__ */ f(
|
|
4875
|
-
/* @__PURE__ */ f(
|
|
4896
|
+
/* @__PURE__ */ f(E, { justify: "between", align: "center", children: [
|
|
4897
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
4876
4898
|
/* @__PURE__ */ i(he, { size: "2", children: a._("Use Project Chords") }),
|
|
4877
4899
|
/* @__PURE__ */ i(
|
|
4878
4900
|
Ie,
|
|
@@ -4883,7 +4905,7 @@ function fh({
|
|
|
4883
4905
|
}
|
|
4884
4906
|
)
|
|
4885
4907
|
] }),
|
|
4886
|
-
/* @__PURE__ */ i(
|
|
4908
|
+
/* @__PURE__ */ i(E, { align: "center", gap: "2", children: /* @__PURE__ */ i(
|
|
4887
4909
|
wt,
|
|
4888
4910
|
{
|
|
4889
4911
|
disabled: e.instrument === "drums",
|
|
@@ -4895,7 +4917,7 @@ function fh({
|
|
|
4895
4917
|
] }) }) })
|
|
4896
4918
|
] });
|
|
4897
4919
|
}
|
|
4898
|
-
const Ch = "_neutral11_vo8kx_2", Sh = "_infoIcon_vo8kx_6", Ih = "_messageWithActionCustom_vo8kx_11", kh = "_upgradeButton_vo8kx_16",
|
|
4920
|
+
const Ch = "_neutral11_vo8kx_2", Sh = "_infoIcon_vo8kx_6", Ih = "_messageWithActionCustom_vo8kx_11", kh = "_upgradeButton_vo8kx_16", Ct = {
|
|
4899
4921
|
neutral11: Ch,
|
|
4900
4922
|
infoIcon: Sh,
|
|
4901
4923
|
messageWithActionCustom: Ih,
|
|
@@ -4912,14 +4934,14 @@ const Ch = "_neutral11_vo8kx_2", Sh = "_infoIcon_vo8kx_6", Ih = "_messageWithAct
|
|
|
4912
4934
|
{
|
|
4913
4935
|
type: "info",
|
|
4914
4936
|
showIcon: !1,
|
|
4915
|
-
className:
|
|
4916
|
-
children: /* @__PURE__ */ f(
|
|
4917
|
-
/* @__PURE__ */ i(
|
|
4918
|
-
/* @__PURE__ */ f(
|
|
4937
|
+
className: Ct.messageWithActionCustom,
|
|
4938
|
+
children: /* @__PURE__ */ f(E, { direction: "row", gap: "2", children: [
|
|
4939
|
+
/* @__PURE__ */ i(E, { className: Ct.infoIcon, children: /* @__PURE__ */ i(Ki, { width: 16, height: 16 }) }),
|
|
4940
|
+
/* @__PURE__ */ f(J, { size: "2", className: Ct.neutral11, children: [
|
|
4919
4941
|
a._(
|
|
4920
4942
|
"You’ve reached the simultaneous stem generation limit. Wait to finish before continuing."
|
|
4921
4943
|
),
|
|
4922
|
-
e && /* @__PURE__ */ f(
|
|
4944
|
+
e && /* @__PURE__ */ f(J, { size: "2", className: Ct.neutral11, weight: "bold", children: [
|
|
4923
4945
|
" ",
|
|
4924
4946
|
a._("Unlock up to 10 simultaneous generations,"),
|
|
4925
4947
|
" ",
|
|
@@ -4930,7 +4952,7 @@ const Ch = "_neutral11_vo8kx_2", Sh = "_infoIcon_vo8kx_6", Ih = "_messageWithAct
|
|
|
4930
4952
|
onClick: (r) => {
|
|
4931
4953
|
r.preventDefault(), t == null || t();
|
|
4932
4954
|
},
|
|
4933
|
-
className:
|
|
4955
|
+
className: Ct.upgradeButton,
|
|
4934
4956
|
children: a._("upgrade to PRO.")
|
|
4935
4957
|
}
|
|
4936
4958
|
)
|
|
@@ -4963,24 +4985,24 @@ function nt({
|
|
|
4963
4985
|
showIcon: !1,
|
|
4964
4986
|
showBackground: !1,
|
|
4965
4987
|
className: Ne.customMessageWithAction,
|
|
4966
|
-
children: /* @__PURE__ */ f(
|
|
4967
|
-
/* @__PURE__ */ i(
|
|
4968
|
-
/* @__PURE__ */ f(
|
|
4988
|
+
children: /* @__PURE__ */ f(E, { gap: "1", align: "center", className: Ne.calloutContainer, children: [
|
|
4989
|
+
/* @__PURE__ */ i(J, { size: "2", className: Ne.neutral10, children: o._("Using") }),
|
|
4990
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "1", children: [
|
|
4969
4991
|
/* @__PURE__ */ i(
|
|
4970
|
-
|
|
4992
|
+
J,
|
|
4971
4993
|
{
|
|
4972
4994
|
size: "2",
|
|
4973
4995
|
truncate: !0,
|
|
4974
|
-
className:
|
|
4996
|
+
className: p(Ne.neutral12, Ne.truncate, {
|
|
4975
4997
|
[Ne.trucateWithInterval]: s
|
|
4976
4998
|
}),
|
|
4977
4999
|
children: e
|
|
4978
5000
|
}
|
|
4979
5001
|
),
|
|
4980
|
-
s && /* @__PURE__ */ i(
|
|
5002
|
+
s && /* @__PURE__ */ i(J, { size: "2", wrap: "nowrap", className: Ne.neutral12, children: s })
|
|
4981
5003
|
] }),
|
|
4982
|
-
/* @__PURE__ */ f(
|
|
4983
|
-
/* @__PURE__ */ i(
|
|
5004
|
+
/* @__PURE__ */ f(E, { align: "center", gap: "1", children: [
|
|
5005
|
+
/* @__PURE__ */ i(J, { size: "2", className: Ne.neutral10, children: o._("to generate") }),
|
|
4984
5006
|
/* @__PURE__ */ i(Ie, { content: r })
|
|
4985
5007
|
] })
|
|
4986
5008
|
] })
|
|
@@ -5044,7 +5066,7 @@ function bh({
|
|
|
5044
5066
|
),
|
|
5045
5067
|
i18n: o
|
|
5046
5068
|
}
|
|
5047
|
-
) : /* @__PURE__ */ i(Ee, { type: "error", showIcon: !1, showBackground: !1, children: /* @__PURE__ */ i(
|
|
5069
|
+
) : /* @__PURE__ */ i(Ee, { type: "error", showIcon: !1, showBackground: !1, children: /* @__PURE__ */ i(J, { size: "2", children: o._("No active tracks available for generation context") }) });
|
|
5048
5070
|
}
|
|
5049
5071
|
const Pt = {
|
|
5050
5072
|
timeouts: {
|
|
@@ -5069,21 +5091,21 @@ const Pt = {
|
|
|
5069
5091
|
onAddConditioningAudio: s,
|
|
5070
5092
|
showConditioningTextPaywall: r,
|
|
5071
5093
|
showAdvancedControlsPaywall: o,
|
|
5072
|
-
i18n: l = { _: (
|
|
5094
|
+
i18n: l = { _: (k) => k },
|
|
5073
5095
|
loading: c,
|
|
5074
5096
|
onSubmit: A,
|
|
5075
5097
|
limitReached: d,
|
|
5076
5098
|
showUpgradeConcurrency: u,
|
|
5077
5099
|
onClickUpgradeConcurrency: g,
|
|
5078
5100
|
error: C,
|
|
5079
|
-
generateFromTrack:
|
|
5080
|
-
inpaintingTrack:
|
|
5081
|
-
generateFromSelectionTrack:
|
|
5101
|
+
generateFromTrack: I,
|
|
5102
|
+
inpaintingTrack: y,
|
|
5103
|
+
generateFromSelectionTrack: m,
|
|
5082
5104
|
unmutedTracksCount: h,
|
|
5083
5105
|
onMountConcurrency: S,
|
|
5084
5106
|
onClear: R
|
|
5085
5107
|
}) => {
|
|
5086
|
-
const [
|
|
5108
|
+
const [k, v] = de(!1), [B, N] = de("2"), [b, M] = de(B), { submitted: Y, handleSubmit: _ } = Gn(A), O = ne(() => [
|
|
5087
5109
|
{ value: "2", label: l._("Presets") },
|
|
5088
5110
|
{ value: "1", label: l._("Custom") }
|
|
5089
5111
|
], []), P = ne(() => d || h === 0 || B === "2" && !e.presetId || B === "1" && !e.conditioningText && !e.conditioningAudio, [
|
|
@@ -5093,7 +5115,7 @@ const Pt = {
|
|
|
5093
5115
|
e.presetId,
|
|
5094
5116
|
e.conditioningText,
|
|
5095
5117
|
e.conditioningAudio
|
|
5096
|
-
]),
|
|
5118
|
+
]), Q = ne(
|
|
5097
5119
|
() => Ah(l),
|
|
5098
5120
|
[l]
|
|
5099
5121
|
), T = x(
|
|
@@ -5114,15 +5136,15 @@ const Pt = {
|
|
|
5114
5136
|
presetId: F,
|
|
5115
5137
|
presetName: a.find((z) => z.id === F).presetName,
|
|
5116
5138
|
presetNameLocalized: a.find((z) => z.id === F).name,
|
|
5117
|
-
trackName:
|
|
5139
|
+
trackName: I ? I.name : m ? m.name : null
|
|
5118
5140
|
});
|
|
5119
5141
|
},
|
|
5120
5142
|
[
|
|
5121
5143
|
t,
|
|
5122
5144
|
e,
|
|
5123
5145
|
a,
|
|
5124
|
-
|
|
5125
|
-
|
|
5146
|
+
I,
|
|
5147
|
+
m
|
|
5126
5148
|
]
|
|
5127
5149
|
), G = x(
|
|
5128
5150
|
(F) => {
|
|
@@ -5149,7 +5171,7 @@ const Pt = {
|
|
|
5149
5171
|
return () => clearTimeout(F);
|
|
5150
5172
|
}
|
|
5151
5173
|
}, [B, b]), /* @__PURE__ */ f(
|
|
5152
|
-
|
|
5174
|
+
E,
|
|
5153
5175
|
{
|
|
5154
5176
|
direction: "column",
|
|
5155
5177
|
height: "100%",
|
|
@@ -5160,7 +5182,7 @@ const Pt = {
|
|
|
5160
5182
|
/* @__PURE__ */ i(ce, { mb: "20px", children: /* @__PURE__ */ i(
|
|
5161
5183
|
Na,
|
|
5162
5184
|
{
|
|
5163
|
-
items:
|
|
5185
|
+
items: Q,
|
|
5164
5186
|
selectedType: e == null ? void 0 : e.instrument,
|
|
5165
5187
|
handleTypeChange: G,
|
|
5166
5188
|
size: "2",
|
|
@@ -5168,7 +5190,7 @@ const Pt = {
|
|
|
5168
5190
|
}
|
|
5169
5191
|
) }),
|
|
5170
5192
|
/* @__PURE__ */ f(
|
|
5171
|
-
|
|
5193
|
+
E,
|
|
5172
5194
|
{
|
|
5173
5195
|
direction: "column",
|
|
5174
5196
|
gap: "2",
|
|
@@ -5197,7 +5219,7 @@ const Pt = {
|
|
|
5197
5219
|
top: "130px",
|
|
5198
5220
|
zIndex: 10,
|
|
5199
5221
|
backgroundColor: "var(--neutral-2)",
|
|
5200
|
-
opacity:
|
|
5222
|
+
opacity: k ? 0 : 1,
|
|
5201
5223
|
transition: `opacity ${Pt.timeouts.animationDuration}ms ease-in-out`
|
|
5202
5224
|
}
|
|
5203
5225
|
}
|
|
@@ -5206,13 +5228,13 @@ const Pt = {
|
|
|
5206
5228
|
}
|
|
5207
5229
|
),
|
|
5208
5230
|
/* @__PURE__ */ f(
|
|
5209
|
-
|
|
5231
|
+
E,
|
|
5210
5232
|
{
|
|
5211
5233
|
direction: "column",
|
|
5212
5234
|
style: {
|
|
5213
5235
|
position: "relative",
|
|
5214
5236
|
flex: 1,
|
|
5215
|
-
opacity:
|
|
5237
|
+
opacity: k ? 0 : 1,
|
|
5216
5238
|
transition: `opacity ${Pt.timeouts.animationDuration}ms ease-in-out`,
|
|
5217
5239
|
overflow: "hidden"
|
|
5218
5240
|
},
|
|
@@ -5250,7 +5272,7 @@ const Pt = {
|
|
|
5250
5272
|
backgroundColor: "var(--neutral-2)"
|
|
5251
5273
|
},
|
|
5252
5274
|
children: /* @__PURE__ */ i(
|
|
5253
|
-
|
|
5275
|
+
E,
|
|
5254
5276
|
{
|
|
5255
5277
|
justify: "between",
|
|
5256
5278
|
gap: "2",
|
|
@@ -5281,7 +5303,7 @@ const Pt = {
|
|
|
5281
5303
|
onClick: _,
|
|
5282
5304
|
Icon: zi,
|
|
5283
5305
|
title: l._("Generate Stem"),
|
|
5284
|
-
children: /* @__PURE__ */ f(
|
|
5306
|
+
children: /* @__PURE__ */ f(E, { pt: "4", width: "100%", children: [
|
|
5285
5307
|
d && /* @__PURE__ */ i(
|
|
5286
5308
|
Eh,
|
|
5287
5309
|
{
|
|
@@ -5294,9 +5316,9 @@ const Pt = {
|
|
|
5294
5316
|
!d && !Y && !C && /* @__PURE__ */ i(ye, { children: /* @__PURE__ */ i(
|
|
5295
5317
|
bh,
|
|
5296
5318
|
{
|
|
5297
|
-
generateFromTrack:
|
|
5298
|
-
inpaintingTrack:
|
|
5299
|
-
generateFromSelectionTrack:
|
|
5319
|
+
generateFromTrack: I,
|
|
5320
|
+
inpaintingTrack: y,
|
|
5321
|
+
generateFromSelectionTrack: m,
|
|
5300
5322
|
unmutedTracksCount: h,
|
|
5301
5323
|
onClear: R,
|
|
5302
5324
|
i18n: l
|
|
@@ -5406,21 +5428,21 @@ const Rs = {
|
|
|
5406
5428
|
leadVocals: /* @__PURE__ */ i(As, { width: 16, height: 16 }),
|
|
5407
5429
|
backingVocals: /* @__PURE__ */ i(As, { width: 16, height: 16 }),
|
|
5408
5430
|
bass: /* @__PURE__ */ i(qs, { width: 16, height: 16 }),
|
|
5409
|
-
guitars: /* @__PURE__ */ i(
|
|
5410
|
-
rhythmGuitars: /* @__PURE__ */ i(
|
|
5411
|
-
soloGuitars: /* @__PURE__ */ i(
|
|
5431
|
+
guitars: /* @__PURE__ */ i(St, { width: 16, height: 16 }),
|
|
5432
|
+
rhythmGuitars: /* @__PURE__ */ i(St, { width: 16, height: 16 }),
|
|
5433
|
+
soloGuitars: /* @__PURE__ */ i(St, { width: 16, height: 16 }),
|
|
5412
5434
|
acousticGuitar: /* @__PURE__ */ i(Hi, { width: 16, height: 16 }),
|
|
5413
|
-
electricGuitar: /* @__PURE__ */ i(
|
|
5435
|
+
electricGuitar: /* @__PURE__ */ i(St, { width: 16, height: 16 }),
|
|
5414
5436
|
strings: /* @__PURE__ */ i(ji, { width: 16, height: 16 }),
|
|
5415
5437
|
piano: /* @__PURE__ */ i(Wi, { width: 16, height: 16 }),
|
|
5416
5438
|
keys: /* @__PURE__ */ i(Pi, { width: 16, height: 16 }),
|
|
5417
5439
|
wind: /* @__PURE__ */ i(qi, { width: 16, height: 16 }),
|
|
5418
5440
|
drums: /* @__PURE__ */ i(Vs, { width: 16, height: 16 }),
|
|
5419
|
-
kickDrums: /* @__PURE__ */ i(
|
|
5420
|
-
snareDrums: /* @__PURE__ */ i(
|
|
5421
|
-
toms: /* @__PURE__ */ i(
|
|
5422
|
-
hiHat: /* @__PURE__ */ i(
|
|
5423
|
-
cymbals: /* @__PURE__ */ i(
|
|
5441
|
+
kickDrums: /* @__PURE__ */ i(gt, { width: 16, height: 16 }),
|
|
5442
|
+
snareDrums: /* @__PURE__ */ i(gt, { width: 16, height: 16 }),
|
|
5443
|
+
toms: /* @__PURE__ */ i(gt, { width: 16, height: 16 }),
|
|
5444
|
+
hiHat: /* @__PURE__ */ i(gt, { width: 16, height: 16 }),
|
|
5445
|
+
cymbals: /* @__PURE__ */ i(gt, { width: 16, height: 16 }),
|
|
5424
5446
|
other: /* @__PURE__ */ i(cs, { width: 16, height: 16 })
|
|
5425
5447
|
}, Uh = {
|
|
5426
5448
|
vocals: ["leadVocals", "backingVocals"],
|
|
@@ -5438,7 +5460,7 @@ const Rs = {
|
|
|
5438
5460
|
hiHat: ["drums"],
|
|
5439
5461
|
cymbals: ["drums"]
|
|
5440
5462
|
}, Yh = ({
|
|
5441
|
-
i18n: e = { _: (
|
|
5463
|
+
i18n: e = { _: (m) => m },
|
|
5442
5464
|
freeStems: t,
|
|
5443
5465
|
paidStems: a,
|
|
5444
5466
|
input: s,
|
|
@@ -5451,11 +5473,11 @@ const Rs = {
|
|
|
5451
5473
|
error: u,
|
|
5452
5474
|
showHiFiPaywall: g,
|
|
5453
5475
|
onClearTrack: C,
|
|
5454
|
-
showStemsPaywall:
|
|
5455
|
-
showHiFiSwitch:
|
|
5476
|
+
showStemsPaywall: I,
|
|
5477
|
+
showHiFiSwitch: y
|
|
5456
5478
|
}) => {
|
|
5457
5479
|
var v;
|
|
5458
|
-
const { submitted:
|
|
5480
|
+
const { submitted: m, handleSubmit: h } = Gn(l), S = [
|
|
5459
5481
|
{
|
|
5460
5482
|
value: "freeVocalInstruments",
|
|
5461
5483
|
name: e._("Vocals & Instruments"),
|
|
@@ -5568,7 +5590,7 @@ const Rs = {
|
|
|
5568
5590
|
}
|
|
5569
5591
|
], R = async (B) => {
|
|
5570
5592
|
if (B.isLocked) {
|
|
5571
|
-
|
|
5593
|
+
I(B.value);
|
|
5572
5594
|
return;
|
|
5573
5595
|
}
|
|
5574
5596
|
const N = B.value;
|
|
@@ -5584,14 +5606,14 @@ const Rs = {
|
|
|
5584
5606
|
}
|
|
5585
5607
|
return M.includes("other") && M.length === 1 ? { ...b, selectedStems: [] } : { ...b, selectedStems: M };
|
|
5586
5608
|
});
|
|
5587
|
-
},
|
|
5609
|
+
}, k = (B) => {
|
|
5588
5610
|
A((N) => ({
|
|
5589
5611
|
...N,
|
|
5590
5612
|
selectedStems: B.value
|
|
5591
5613
|
}));
|
|
5592
5614
|
};
|
|
5593
|
-
return /* @__PURE__ */ f(
|
|
5594
|
-
t && /* @__PURE__ */ f(
|
|
5615
|
+
return /* @__PURE__ */ f(E, { direction: "column", height: "100%", children: [
|
|
5616
|
+
t && /* @__PURE__ */ f(E, { direction: "column", pb: "2", children: [
|
|
5595
5617
|
/* @__PURE__ */ i(he, { size: "2", weight: "medium", mb: "2", children: e._("Basic Models") }),
|
|
5596
5618
|
/* @__PURE__ */ i(
|
|
5597
5619
|
Ba,
|
|
@@ -5602,7 +5624,7 @@ const Rs = {
|
|
|
5602
5624
|
icon: Rs[B.value]
|
|
5603
5625
|
})),
|
|
5604
5626
|
value: c.selectedStems,
|
|
5605
|
-
onSelect:
|
|
5627
|
+
onSelect: k
|
|
5606
5628
|
}
|
|
5607
5629
|
),
|
|
5608
5630
|
/* @__PURE__ */ i(he, { size: "2", weight: "medium", mt: "2", children: e._("Music Stems") })
|
|
@@ -5645,8 +5667,8 @@ const Rs = {
|
|
|
5645
5667
|
disabled: !((v = c == null ? void 0 : c.selectedStems) != null && v.length) || !(c != null && c.trackName),
|
|
5646
5668
|
loading: d,
|
|
5647
5669
|
onClick: h,
|
|
5648
|
-
besideFooter: /* @__PURE__ */ f(
|
|
5649
|
-
|
|
5670
|
+
besideFooter: /* @__PURE__ */ f(E, { align: "center", gap: "2", children: [
|
|
5671
|
+
y && /* @__PURE__ */ i(wt, { checked: !1, onCheckedChange: g }),
|
|
5650
5672
|
/* @__PURE__ */ i(Vi, {})
|
|
5651
5673
|
] }),
|
|
5652
5674
|
color: "cyan",
|
|
@@ -5655,7 +5677,7 @@ const Rs = {
|
|
|
5655
5677
|
paddingRight: "12px"
|
|
5656
5678
|
},
|
|
5657
5679
|
children: /* @__PURE__ */ f(
|
|
5658
|
-
|
|
5680
|
+
E,
|
|
5659
5681
|
{
|
|
5660
5682
|
pt: "4",
|
|
5661
5683
|
width: "100%",
|
|
@@ -5663,7 +5685,7 @@ const Rs = {
|
|
|
5663
5685
|
borderTop: "1px solid var(--neutral-alpha-3)"
|
|
5664
5686
|
},
|
|
5665
5687
|
children: [
|
|
5666
|
-
!
|
|
5688
|
+
!m && !u && /* @__PURE__ */ i(
|
|
5667
5689
|
Qh,
|
|
5668
5690
|
{
|
|
5669
5691
|
i18n: e,
|
|
@@ -5675,7 +5697,7 @@ const Rs = {
|
|
|
5675
5697
|
handleFileChange: r
|
|
5676
5698
|
}
|
|
5677
5699
|
),
|
|
5678
|
-
|
|
5700
|
+
m && !u && /* @__PURE__ */ i(Ee, { showIcon: !1, showBackground: !1, children: /* @__PURE__ */ i(he, { size: "2", children: e._("Stems separation initialized!") }) }),
|
|
5679
5701
|
u && /* @__PURE__ */ i(
|
|
5680
5702
|
Ee,
|
|
5681
5703
|
{
|
|
@@ -5712,7 +5734,7 @@ export {
|
|
|
5712
5734
|
Fp as DropdownButton,
|
|
5713
5735
|
Gh as DropdownMenu,
|
|
5714
5736
|
gA as Em,
|
|
5715
|
-
|
|
5737
|
+
E as Flex,
|
|
5716
5738
|
os as FooterPanel,
|
|
5717
5739
|
tn as Grid,
|
|
5718
5740
|
Ip as GroupButtons,
|
|
@@ -5741,7 +5763,7 @@ export {
|
|
|
5741
5763
|
$m as SectionExpander,
|
|
5742
5764
|
Na as SegmentedControl,
|
|
5743
5765
|
im as Select,
|
|
5744
|
-
|
|
5766
|
+
ot as Separator,
|
|
5745
5767
|
ud as Skeleton,
|
|
5746
5768
|
zt as Slider,
|
|
5747
5769
|
Pa as Spinner,
|