@datawire-ai/busyfile-design-library 1.17.0 → 1.18.0
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/README.md +163 -4
- package/dist/index.js +518 -500
- package/dist/index.umd.cjs +15 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
|
-
import ve, { forwardRef as Yt, useId as bo, useState as $e, createElement as Nr, useLayoutEffect as
|
|
2
|
+
import ve, { forwardRef as Yt, useId as bo, useState as $e, createElement as Nr, useLayoutEffect as Si, useEffect as Ci, useMemo as Ei } from "react";
|
|
3
3
|
import * as qt from "react-dom";
|
|
4
|
-
import
|
|
4
|
+
import ki from "react-dom";
|
|
5
5
|
var Tr = { exports: {} }, pt = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
@@ -13,7 +13,7 @@ var Tr = { exports: {} }, pt = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var Pn;
|
|
16
|
-
function
|
|
16
|
+
function Ri() {
|
|
17
17
|
if (Pn) return pt;
|
|
18
18
|
Pn = 1;
|
|
19
19
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -45,7 +45,7 @@ var mt = {};
|
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
47
|
var An;
|
|
48
|
-
function
|
|
48
|
+
function Pi() {
|
|
49
49
|
return An || (An = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
50
|
function e(E) {
|
|
51
51
|
if (E == null) return null;
|
|
@@ -277,7 +277,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
277
277
|
};
|
|
278
278
|
}()), mt;
|
|
279
279
|
}
|
|
280
|
-
process.env.NODE_ENV === "production" ? Tr.exports =
|
|
280
|
+
process.env.NODE_ENV === "production" ? Tr.exports = Ri() : Tr.exports = Pi();
|
|
281
281
|
var d = Tr.exports;
|
|
282
282
|
function _n(e, t) {
|
|
283
283
|
if (typeof e == "function")
|
|
@@ -305,8 +305,8 @@ function ne(...e) {
|
|
|
305
305
|
}
|
|
306
306
|
// @__NO_SIDE_EFFECTS__
|
|
307
307
|
function ze(e) {
|
|
308
|
-
const t = /* @__PURE__ */
|
|
309
|
-
const { children: a, ...s } = n, i = l.Children.toArray(a), c = i.find(
|
|
308
|
+
const t = /* @__PURE__ */ Ai(e), r = l.forwardRef((n, o) => {
|
|
309
|
+
const { children: a, ...s } = n, i = l.Children.toArray(a), c = i.find(Ni);
|
|
310
310
|
if (c) {
|
|
311
311
|
const u = c.props.children, f = i.map((p) => p === c ? l.Children.count(u) > 1 ? l.Children.only(null) : l.isValidElement(u) ? u.props.children : null : p);
|
|
312
312
|
return /* @__PURE__ */ d.jsx(t, { ...s, ref: o, children: l.isValidElement(u) ? l.cloneElement(u, void 0, f) : null });
|
|
@@ -317,11 +317,11 @@ function ze(e) {
|
|
|
317
317
|
}
|
|
318
318
|
var Jr = /* @__PURE__ */ ze("Slot");
|
|
319
319
|
// @__NO_SIDE_EFFECTS__
|
|
320
|
-
function
|
|
320
|
+
function Ai(e) {
|
|
321
321
|
const t = l.forwardRef((r, n) => {
|
|
322
322
|
const { children: o, ...a } = r;
|
|
323
323
|
if (l.isValidElement(o)) {
|
|
324
|
-
const s =
|
|
324
|
+
const s = Oi(o), i = Ti(a, o.props);
|
|
325
325
|
return o.type !== l.Fragment && (i.ref = n ? Ve(n, s) : s), l.cloneElement(o, i);
|
|
326
326
|
}
|
|
327
327
|
return l.Children.count(o) > 1 ? l.Children.only(null) : null;
|
|
@@ -330,14 +330,14 @@ function Pi(e) {
|
|
|
330
330
|
}
|
|
331
331
|
var yo = Symbol("radix.slottable");
|
|
332
332
|
// @__NO_SIDE_EFFECTS__
|
|
333
|
-
function
|
|
333
|
+
function _i(e) {
|
|
334
334
|
const t = ({ children: r }) => /* @__PURE__ */ d.jsx(d.Fragment, { children: r });
|
|
335
335
|
return t.displayName = `${e}.Slottable`, t.__radixId = yo, t;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Ni(e) {
|
|
338
338
|
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === yo;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Ti(e, t) {
|
|
341
341
|
const r = { ...t };
|
|
342
342
|
for (const n in t) {
|
|
343
343
|
const o = e[n], a = t[n];
|
|
@@ -348,7 +348,7 @@ function Ni(e, t) {
|
|
|
348
348
|
}
|
|
349
349
|
return { ...e, ...r };
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Oi(e) {
|
|
352
352
|
var n, o;
|
|
353
353
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
354
354
|
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -366,15 +366,15 @@ function So() {
|
|
|
366
366
|
for (var e, t, r = 0, n = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = wo(e)) && (n && (n += " "), n += t);
|
|
367
367
|
return n;
|
|
368
368
|
}
|
|
369
|
-
const Qr = "-",
|
|
370
|
-
const t =
|
|
369
|
+
const Qr = "-", Ii = (e) => {
|
|
370
|
+
const t = Mi(e), {
|
|
371
371
|
conflictingClassGroups: r,
|
|
372
372
|
conflictingClassGroupModifiers: n
|
|
373
373
|
} = e;
|
|
374
374
|
return {
|
|
375
375
|
getClassGroupId: (s) => {
|
|
376
376
|
const i = s.split(Qr);
|
|
377
|
-
return i[0] === "" && i.length !== 1 && i.shift(), Co(i, t) ||
|
|
377
|
+
return i[0] === "" && i.length !== 1 && i.shift(), Co(i, t) || ji(s);
|
|
378
378
|
},
|
|
379
379
|
getConflictingClassGroupIds: (s, i) => {
|
|
380
380
|
const c = r[s] || [];
|
|
@@ -394,13 +394,13 @@ const Qr = "-", Oi = (e) => {
|
|
|
394
394
|
return (s = t.validators.find(({
|
|
395
395
|
validator: i
|
|
396
396
|
}) => i(a))) == null ? void 0 : s.classGroupId;
|
|
397
|
-
}, Nn = /^\[(.+)\]$/,
|
|
397
|
+
}, Nn = /^\[(.+)\]$/, ji = (e) => {
|
|
398
398
|
if (Nn.test(e)) {
|
|
399
399
|
const t = Nn.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
400
400
|
if (r)
|
|
401
401
|
return "arbitrary.." + r;
|
|
402
402
|
}
|
|
403
|
-
},
|
|
403
|
+
}, Mi = (e) => {
|
|
404
404
|
const {
|
|
405
405
|
theme: t,
|
|
406
406
|
classGroups: r
|
|
@@ -419,7 +419,7 @@ const Qr = "-", Oi = (e) => {
|
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
421
|
if (typeof o == "function") {
|
|
422
|
-
if (
|
|
422
|
+
if (Di(o)) {
|
|
423
423
|
Or(o(n), t, r, n);
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
@@ -441,7 +441,7 @@ const Qr = "-", Oi = (e) => {
|
|
|
441
441
|
validators: []
|
|
442
442
|
}), r = r.nextPart.get(n);
|
|
443
443
|
}), r;
|
|
444
|
-
},
|
|
444
|
+
}, Di = (e) => e.isThemeGetter, Li = (e) => {
|
|
445
445
|
if (e < 1)
|
|
446
446
|
return {
|
|
447
447
|
get: () => {
|
|
@@ -465,7 +465,7 @@ const Qr = "-", Oi = (e) => {
|
|
|
465
465
|
r.has(a) ? r.set(a, s) : o(a, s);
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
|
-
}, Ir = "!", jr = ":",
|
|
468
|
+
}, Ir = "!", jr = ":", Fi = jr.length, $i = (e) => {
|
|
469
469
|
const {
|
|
470
470
|
prefix: t,
|
|
471
471
|
experimentalParseClassName: r
|
|
@@ -477,7 +477,7 @@ const Qr = "-", Oi = (e) => {
|
|
|
477
477
|
let m = o[v];
|
|
478
478
|
if (s === 0 && i === 0) {
|
|
479
479
|
if (m === jr) {
|
|
480
|
-
a.push(o.slice(c, v)), c = v +
|
|
480
|
+
a.push(o.slice(c, v)), c = v + Fi;
|
|
481
481
|
continue;
|
|
482
482
|
}
|
|
483
483
|
if (m === "/") {
|
|
@@ -487,7 +487,7 @@ const Qr = "-", Oi = (e) => {
|
|
|
487
487
|
}
|
|
488
488
|
m === "[" ? s++ : m === "]" ? s-- : m === "(" ? i++ : m === ")" && i--;
|
|
489
489
|
}
|
|
490
|
-
const f = a.length === 0 ? o : o.substring(c), p =
|
|
490
|
+
const f = a.length === 0 ? o : o.substring(c), p = Vi(f), g = p !== f, h = u && u > c ? u - c : void 0;
|
|
491
491
|
return {
|
|
492
492
|
modifiers: a,
|
|
493
493
|
hasImportantModifier: g,
|
|
@@ -513,7 +513,7 @@ const Qr = "-", Oi = (e) => {
|
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
return n;
|
|
516
|
-
},
|
|
516
|
+
}, Vi = (e) => e.endsWith(Ir) ? e.substring(0, e.length - 1) : e.startsWith(Ir) ? e.substring(1) : e, zi = (e) => {
|
|
517
517
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((n) => [n, !0]));
|
|
518
518
|
return (n) => {
|
|
519
519
|
if (n.length <= 1)
|
|
@@ -524,18 +524,18 @@ const Qr = "-", Oi = (e) => {
|
|
|
524
524
|
s[0] === "[" || t[s] ? (o.push(...a.sort(), s), a = []) : a.push(s);
|
|
525
525
|
}), o.push(...a.sort()), o;
|
|
526
526
|
};
|
|
527
|
-
},
|
|
528
|
-
cache:
|
|
529
|
-
parseClassName:
|
|
530
|
-
sortModifiers:
|
|
531
|
-
...
|
|
532
|
-
}),
|
|
527
|
+
}, Bi = (e) => ({
|
|
528
|
+
cache: Li(e.cacheSize),
|
|
529
|
+
parseClassName: $i(e),
|
|
530
|
+
sortModifiers: zi(e),
|
|
531
|
+
...Ii(e)
|
|
532
|
+
}), Wi = /\s+/, Hi = (e, t) => {
|
|
533
533
|
const {
|
|
534
534
|
parseClassName: r,
|
|
535
535
|
getClassGroupId: n,
|
|
536
536
|
getConflictingClassGroupIds: o,
|
|
537
537
|
sortModifiers: a
|
|
538
|
-
} = t, s = [], i = e.trim().split(
|
|
538
|
+
} = t, s = [], i = e.trim().split(Wi);
|
|
539
539
|
let c = "";
|
|
540
540
|
for (let u = i.length - 1; u >= 0; u -= 1) {
|
|
541
541
|
const f = i[u], {
|
|
@@ -574,7 +574,7 @@ const Qr = "-", Oi = (e) => {
|
|
|
574
574
|
}
|
|
575
575
|
return c;
|
|
576
576
|
};
|
|
577
|
-
function
|
|
577
|
+
function Gi() {
|
|
578
578
|
let e = 0, t, r, n = "";
|
|
579
579
|
for (; e < arguments.length; )
|
|
580
580
|
(t = arguments[e++]) && (r = Eo(t)) && (n && (n += " "), n += r);
|
|
@@ -588,38 +588,38 @@ const Eo = (e) => {
|
|
|
588
588
|
e[n] && (t = Eo(e[n])) && (r && (r += " "), r += t);
|
|
589
589
|
return r;
|
|
590
590
|
};
|
|
591
|
-
function
|
|
591
|
+
function Ui(e, ...t) {
|
|
592
592
|
let r, n, o, a = s;
|
|
593
593
|
function s(c) {
|
|
594
594
|
const u = t.reduce((f, p) => p(f), e());
|
|
595
|
-
return r =
|
|
595
|
+
return r = Bi(u), n = r.cache.get, o = r.cache.set, a = i, i(c);
|
|
596
596
|
}
|
|
597
597
|
function i(c) {
|
|
598
598
|
const u = n(c);
|
|
599
599
|
if (u)
|
|
600
600
|
return u;
|
|
601
|
-
const f =
|
|
601
|
+
const f = Hi(c, r);
|
|
602
602
|
return o(c, f), f;
|
|
603
603
|
}
|
|
604
604
|
return function() {
|
|
605
|
-
return a(
|
|
605
|
+
return a(Gi.apply(null, arguments));
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
608
|
const oe = (e) => {
|
|
609
609
|
const t = (r) => r[e] || [];
|
|
610
610
|
return t.isThemeGetter = !0, t;
|
|
611
|
-
}, ko = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ro = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
611
|
+
}, ko = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ro = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ki = /^\d+\/\d+$/, Yi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Xi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Zi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ji = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ke = (e) => Ki.test(e), J = (e) => !!e && !Number.isNaN(Number(e)), _e = (e) => !!e && Number.isInteger(Number(e)), pr = (e) => e.endsWith("%") && J(e.slice(0, -1)), Ee = (e) => Yi.test(e), Qi = () => !0, el = (e) => (
|
|
612
612
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
613
613
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
614
614
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
615
|
-
|
|
616
|
-
), Po = () => !1,
|
|
615
|
+
qi.test(e) && !Xi.test(e)
|
|
616
|
+
), Po = () => !1, tl = (e) => Zi.test(e), rl = (e) => Ji.test(e), nl = (e) => !j(e) && !M(e), ol = (e) => ot(e, No, Po), j = (e) => ko.test(e), Fe = (e) => ot(e, To, el), mr = (e) => ot(e, cl, J), On = (e) => ot(e, Ao, Po), al = (e) => ot(e, _o, rl), Nt = (e) => ot(e, Oo, tl), M = (e) => Ro.test(e), ht = (e) => at(e, To), sl = (e) => at(e, ul), In = (e) => at(e, Ao), il = (e) => at(e, No), ll = (e) => at(e, _o), Tt = (e) => at(e, Oo, !0), ot = (e, t, r) => {
|
|
617
617
|
const n = ko.exec(e);
|
|
618
618
|
return n ? n[1] ? t(n[1]) : r(n[2]) : !1;
|
|
619
619
|
}, at = (e, t, r = !1) => {
|
|
620
620
|
const n = Ro.exec(e);
|
|
621
621
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
622
|
-
}, Ao = (e) => e === "position" || e === "percentage", _o = (e) => e === "image" || e === "url", No = (e) => e === "length" || e === "size" || e === "bg-size", To = (e) => e === "length",
|
|
622
|
+
}, Ao = (e) => e === "position" || e === "percentage", _o = (e) => e === "image" || e === "url", No = (e) => e === "length" || e === "size" || e === "bg-size", To = (e) => e === "length", cl = (e) => e === "number", ul = (e) => e === "family-name", Oo = (e) => e === "shadow", dl = () => {
|
|
623
623
|
const e = oe("color"), t = oe("font"), r = oe("text"), n = oe("font-weight"), o = oe("tracking"), a = oe("leading"), s = oe("breakpoint"), i = oe("container"), c = oe("spacing"), u = oe("radius"), f = oe("shadow"), p = oe("inset-shadow"), g = oe("text-shadow"), h = oe("drop-shadow"), v = oe("blur"), m = oe("perspective"), x = oe("aspect"), y = oe("ease"), b = oe("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
624
624
|
"center",
|
|
625
625
|
"top",
|
|
@@ -644,7 +644,7 @@ const oe = (e) => {
|
|
|
644
644
|
position: [M, j]
|
|
645
645
|
}], E = () => ["no-repeat", {
|
|
646
646
|
repeat: ["", "x", "y", "space", "round"]
|
|
647
|
-
}], F = () => ["auto", "cover", "contain",
|
|
647
|
+
}], F = () => ["auto", "cover", "contain", il, ol, {
|
|
648
648
|
size: [M, j]
|
|
649
649
|
}], S = () => [pr, ht, Fe], T = () => [
|
|
650
650
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -669,11 +669,11 @@ const oe = (e) => {
|
|
|
669
669
|
aspect: ["video"],
|
|
670
670
|
blur: [Ee],
|
|
671
671
|
breakpoint: [Ee],
|
|
672
|
-
color: [
|
|
672
|
+
color: [Qi],
|
|
673
673
|
container: [Ee],
|
|
674
674
|
"drop-shadow": [Ee],
|
|
675
675
|
ease: ["in", "out", "in-out"],
|
|
676
|
-
font: [
|
|
676
|
+
font: [nl],
|
|
677
677
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
678
678
|
"inset-shadow": [Ee],
|
|
679
679
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1385,7 +1385,7 @@ const oe = (e) => {
|
|
|
1385
1385
|
* @see https://tailwindcss.com/docs/font-family
|
|
1386
1386
|
*/
|
|
1387
1387
|
"font-family": [{
|
|
1388
|
-
font: [
|
|
1388
|
+
font: [sl, j, t]
|
|
1389
1389
|
}],
|
|
1390
1390
|
/**
|
|
1391
1391
|
* Font Variant Numeric
|
|
@@ -1640,7 +1640,7 @@ const oe = (e) => {
|
|
|
1640
1640
|
}, _e, M, j],
|
|
1641
1641
|
radial: ["", M, j],
|
|
1642
1642
|
conic: [_e, M, j]
|
|
1643
|
-
},
|
|
1643
|
+
}, ll, al]
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Background Color
|
|
@@ -3089,9 +3089,9 @@ const oe = (e) => {
|
|
|
3089
3089
|
},
|
|
3090
3090
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3091
3091
|
};
|
|
3092
|
-
},
|
|
3092
|
+
}, fl = /* @__PURE__ */ Ui(dl);
|
|
3093
3093
|
function $(...e) {
|
|
3094
|
-
return
|
|
3094
|
+
return fl(So(e));
|
|
3095
3095
|
}
|
|
3096
3096
|
const jn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = So, de = (e, t) => (r) => {
|
|
3097
3097
|
var n;
|
|
@@ -3122,21 +3122,21 @@ const jn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Mn = So, d
|
|
|
3122
3122
|
] : u;
|
|
3123
3123
|
}, []);
|
|
3124
3124
|
return Mn(e, s, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
3125
|
-
},
|
|
3125
|
+
}, pl = {
|
|
3126
3126
|
default: "bg-neutral-black-1 text-sm font-normal text-white shadow-sm hover:bg-neutral-black-2 focus-visible:ring-neutral-black-1",
|
|
3127
3127
|
primary: "bg-neutral-black-5 text-sm font-normal text-neutral-70 hover:bg-neutral-black-5 focus-visible:ring-bg-neutral-black-5",
|
|
3128
3128
|
outline: "bg-transparent text-black hover:bg-neutral-black-2 focus-visible:ring-4 focus-visible:ring-bg-surface border border-bg-neutral-black-2"
|
|
3129
|
-
},
|
|
3129
|
+
}, ml = {
|
|
3130
3130
|
default: "h-9 px-4 py-2",
|
|
3131
3131
|
sm: "h-8 px-3 text-xs",
|
|
3132
3132
|
lg: "h-10 px-6",
|
|
3133
3133
|
icon: "h-9 w-9"
|
|
3134
|
-
},
|
|
3134
|
+
}, hl = de(
|
|
3135
3135
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
3136
3136
|
{
|
|
3137
3137
|
variants: {
|
|
3138
|
-
variant:
|
|
3139
|
-
size:
|
|
3138
|
+
variant: pl,
|
|
3139
|
+
size: ml
|
|
3140
3140
|
},
|
|
3141
3141
|
defaultVariants: {
|
|
3142
3142
|
variant: "default",
|
|
@@ -3157,7 +3157,7 @@ function Um({
|
|
|
3157
3157
|
s,
|
|
3158
3158
|
{
|
|
3159
3159
|
"data-slot": "button",
|
|
3160
|
-
className: $(
|
|
3160
|
+
className: $(hl({ variant: t, size: r }), e),
|
|
3161
3161
|
...a,
|
|
3162
3162
|
children: o
|
|
3163
3163
|
}
|
|
@@ -3170,7 +3170,7 @@ function W(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
3170
3170
|
};
|
|
3171
3171
|
}
|
|
3172
3172
|
var ae = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
3173
|
-
},
|
|
3173
|
+
}, gl = l[" useInsertionEffect ".trim().toString()] || ae;
|
|
3174
3174
|
function Te({
|
|
3175
3175
|
prop: e,
|
|
3176
3176
|
defaultProp: t,
|
|
@@ -3178,7 +3178,7 @@ function Te({
|
|
|
3178
3178
|
},
|
|
3179
3179
|
caller: n
|
|
3180
3180
|
}) {
|
|
3181
|
-
const [o, a, s] =
|
|
3181
|
+
const [o, a, s] = vl({
|
|
3182
3182
|
defaultProp: t,
|
|
3183
3183
|
onChange: r
|
|
3184
3184
|
}), i = e !== void 0, c = i ? e : o;
|
|
@@ -3195,7 +3195,7 @@ function Te({
|
|
|
3195
3195
|
(f) => {
|
|
3196
3196
|
var p;
|
|
3197
3197
|
if (i) {
|
|
3198
|
-
const g =
|
|
3198
|
+
const g = xl(f) ? f(e) : f;
|
|
3199
3199
|
g !== e && ((p = s.current) == null || p.call(s, g));
|
|
3200
3200
|
} else
|
|
3201
3201
|
a(f);
|
|
@@ -3204,22 +3204,22 @@ function Te({
|
|
|
3204
3204
|
);
|
|
3205
3205
|
return [c, u];
|
|
3206
3206
|
}
|
|
3207
|
-
function
|
|
3207
|
+
function vl({
|
|
3208
3208
|
defaultProp: e,
|
|
3209
3209
|
onChange: t
|
|
3210
3210
|
}) {
|
|
3211
3211
|
const [r, n] = l.useState(e), o = l.useRef(r), a = l.useRef(t);
|
|
3212
|
-
return
|
|
3212
|
+
return gl(() => {
|
|
3213
3213
|
a.current = t;
|
|
3214
3214
|
}, [t]), l.useEffect(() => {
|
|
3215
3215
|
var s;
|
|
3216
3216
|
o.current !== r && ((s = a.current) == null || s.call(a, r), o.current = r);
|
|
3217
3217
|
}, [r, o]), [r, n, a];
|
|
3218
3218
|
}
|
|
3219
|
-
function
|
|
3219
|
+
function xl(e) {
|
|
3220
3220
|
return typeof e == "function";
|
|
3221
3221
|
}
|
|
3222
|
-
var
|
|
3222
|
+
var bl = [
|
|
3223
3223
|
"a",
|
|
3224
3224
|
"button",
|
|
3225
3225
|
"div",
|
|
@@ -3237,14 +3237,14 @@ var xl = [
|
|
|
3237
3237
|
"span",
|
|
3238
3238
|
"svg",
|
|
3239
3239
|
"ul"
|
|
3240
|
-
], V =
|
|
3240
|
+
], V = bl.reduce((e, t) => {
|
|
3241
3241
|
const r = /* @__PURE__ */ ze(`Primitive.${t}`), n = l.forwardRef((o, a) => {
|
|
3242
3242
|
const { asChild: s, ...i } = o, c = s ? r : t;
|
|
3243
3243
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d.jsx(c, { ...i, ref: a });
|
|
3244
3244
|
});
|
|
3245
3245
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
3246
3246
|
}, {});
|
|
3247
|
-
function
|
|
3247
|
+
function yl(e, t) {
|
|
3248
3248
|
e && qt.flushSync(() => e.dispatchEvent(t));
|
|
3249
3249
|
}
|
|
3250
3250
|
var Io = "Toggle", jo = l.forwardRef((e, t) => {
|
|
@@ -3316,7 +3316,7 @@ const Do = de(
|
|
|
3316
3316
|
variant: "classic"
|
|
3317
3317
|
}
|
|
3318
3318
|
}
|
|
3319
|
-
),
|
|
3319
|
+
), wl = Yt(
|
|
3320
3320
|
({
|
|
3321
3321
|
pressed: e = !1,
|
|
3322
3322
|
onPressedChange: t,
|
|
@@ -3395,8 +3395,8 @@ const Do = de(
|
|
|
3395
3395
|
);
|
|
3396
3396
|
}
|
|
3397
3397
|
);
|
|
3398
|
-
|
|
3399
|
-
const
|
|
3398
|
+
wl.displayName = "Toggle";
|
|
3399
|
+
const Sl = Yt(
|
|
3400
3400
|
({
|
|
3401
3401
|
defaultPressed: e = !1,
|
|
3402
3402
|
variant: t = "classic",
|
|
@@ -3468,8 +3468,8 @@ const wl = Yt(
|
|
|
3468
3468
|
);
|
|
3469
3469
|
}
|
|
3470
3470
|
);
|
|
3471
|
-
|
|
3472
|
-
function
|
|
3471
|
+
Sl.displayName = "StatefulToggle";
|
|
3472
|
+
function Cl(e, t) {
|
|
3473
3473
|
const r = l.createContext(t), n = (a) => {
|
|
3474
3474
|
const { children: s, ...i } = a, c = l.useMemo(() => i, Object.values(i));
|
|
3475
3475
|
return /* @__PURE__ */ d.jsx(r.Provider, { value: c, children: s });
|
|
@@ -3513,9 +3513,9 @@ function Se(e, t = []) {
|
|
|
3513
3513
|
);
|
|
3514
3514
|
};
|
|
3515
3515
|
};
|
|
3516
|
-
return o.scopeName = e, [n,
|
|
3516
|
+
return o.scopeName = e, [n, El(o, ...t)];
|
|
3517
3517
|
}
|
|
3518
|
-
function
|
|
3518
|
+
function El(...e) {
|
|
3519
3519
|
const t = e[0];
|
|
3520
3520
|
if (e.length === 1) return t;
|
|
3521
3521
|
const r = () => {
|
|
@@ -3573,12 +3573,12 @@ function Fo(e) {
|
|
|
3573
3573
|
n
|
|
3574
3574
|
];
|
|
3575
3575
|
}
|
|
3576
|
-
var
|
|
3577
|
-
}),
|
|
3576
|
+
var kl = l[" useId ".trim().toString()] || (() => {
|
|
3577
|
+
}), Rl = 0;
|
|
3578
3578
|
function se(e) {
|
|
3579
|
-
const [t, r] = l.useState(
|
|
3579
|
+
const [t, r] = l.useState(kl());
|
|
3580
3580
|
return ae(() => {
|
|
3581
|
-
r((n) => n ?? String(
|
|
3581
|
+
r((n) => n ?? String(Rl++));
|
|
3582
3582
|
}, [e]), t ? `radix-${t}` : "";
|
|
3583
3583
|
}
|
|
3584
3584
|
function ke(e) {
|
|
@@ -3590,19 +3590,19 @@ function ke(e) {
|
|
|
3590
3590
|
return (n = t.current) == null ? void 0 : n.call(t, ...r);
|
|
3591
3591
|
}, []);
|
|
3592
3592
|
}
|
|
3593
|
-
var
|
|
3593
|
+
var Pl = l.createContext(void 0);
|
|
3594
3594
|
function en(e) {
|
|
3595
|
-
const t = l.useContext(
|
|
3595
|
+
const t = l.useContext(Pl);
|
|
3596
3596
|
return e || t || "ltr";
|
|
3597
3597
|
}
|
|
3598
|
-
var hr = "rovingFocusGroup.onEntryFocus",
|
|
3598
|
+
var hr = "rovingFocusGroup.onEntryFocus", Al = { bubbles: !1, cancelable: !0 }, wt = "RovingFocusGroup", [Mr, $o, _l] = Fo(wt), [Nl, Vo] = Se(
|
|
3599
3599
|
wt,
|
|
3600
|
-
[
|
|
3601
|
-
), [
|
|
3602
|
-
(e, t) => /* @__PURE__ */ d.jsx(Mr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(Mr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(
|
|
3600
|
+
[_l]
|
|
3601
|
+
), [Tl, Ol] = Nl(wt), zo = l.forwardRef(
|
|
3602
|
+
(e, t) => /* @__PURE__ */ d.jsx(Mr.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(Mr.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(Il, { ...e, ref: t }) }) })
|
|
3603
3603
|
);
|
|
3604
3604
|
zo.displayName = wt;
|
|
3605
|
-
var
|
|
3605
|
+
var Il = l.forwardRef((e, t) => {
|
|
3606
3606
|
const {
|
|
3607
3607
|
__scopeRovingFocusGroup: r,
|
|
3608
3608
|
orientation: n,
|
|
@@ -3625,7 +3625,7 @@ var Ol = l.forwardRef((e, t) => {
|
|
|
3625
3625
|
if (P)
|
|
3626
3626
|
return P.addEventListener(hr, w), () => P.removeEventListener(hr, w);
|
|
3627
3627
|
}, [w]), /* @__PURE__ */ d.jsx(
|
|
3628
|
-
|
|
3628
|
+
Tl,
|
|
3629
3629
|
{
|
|
3630
3630
|
scope: r,
|
|
3631
3631
|
orientation: n,
|
|
@@ -3659,7 +3659,7 @@ var Ol = l.forwardRef((e, t) => {
|
|
|
3659
3659
|
onFocus: W(e.onFocus, (P) => {
|
|
3660
3660
|
const B = !k.current;
|
|
3661
3661
|
if (P.target === P.currentTarget && B && !y) {
|
|
3662
|
-
const U = new CustomEvent(hr,
|
|
3662
|
+
const U = new CustomEvent(hr, Al);
|
|
3663
3663
|
if (P.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
3664
3664
|
const q = C().filter((D) => D.focusable), Z = q.find((D) => D.active), Q = q.find((D) => D.id === m), Y = [Z, Q, ...q].filter(
|
|
3665
3665
|
Boolean
|
|
@@ -3683,7 +3683,7 @@ var Ol = l.forwardRef((e, t) => {
|
|
|
3683
3683
|
tabStopId: a,
|
|
3684
3684
|
children: s,
|
|
3685
3685
|
...i
|
|
3686
|
-
} = e, c = se(), u = a || c, f =
|
|
3686
|
+
} = e, c = se(), u = a || c, f = Ol(Bo, r), p = f.currentTabStopId === u, g = $o(r), { onFocusableItemAdd: h, onFocusableItemRemove: v, currentTabStopId: m } = f;
|
|
3687
3687
|
return l.useEffect(() => {
|
|
3688
3688
|
if (n)
|
|
3689
3689
|
return h(), () => v();
|
|
@@ -3711,7 +3711,7 @@ var Ol = l.forwardRef((e, t) => {
|
|
|
3711
3711
|
return;
|
|
3712
3712
|
}
|
|
3713
3713
|
if (x.target !== x.currentTarget) return;
|
|
3714
|
-
const y =
|
|
3714
|
+
const y = Dl(x, f.orientation, f.dir);
|
|
3715
3715
|
if (y !== void 0) {
|
|
3716
3716
|
if (x.metaKey || x.ctrlKey || x.altKey || x.shiftKey) return;
|
|
3717
3717
|
x.preventDefault();
|
|
@@ -3720,7 +3720,7 @@ var Ol = l.forwardRef((e, t) => {
|
|
|
3720
3720
|
else if (y === "prev" || y === "next") {
|
|
3721
3721
|
y === "prev" && w.reverse();
|
|
3722
3722
|
const C = w.indexOf(x.currentTarget);
|
|
3723
|
-
w = f.loop ?
|
|
3723
|
+
w = f.loop ? Ll(w, C + 1) : w.slice(C + 1);
|
|
3724
3724
|
}
|
|
3725
3725
|
setTimeout(() => Ho(w));
|
|
3726
3726
|
}
|
|
@@ -3733,7 +3733,7 @@ var Ol = l.forwardRef((e, t) => {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
);
|
|
3735
3735
|
Wo.displayName = Bo;
|
|
3736
|
-
var
|
|
3736
|
+
var jl = {
|
|
3737
3737
|
ArrowLeft: "prev",
|
|
3738
3738
|
ArrowUp: "prev",
|
|
3739
3739
|
ArrowRight: "next",
|
|
@@ -3743,23 +3743,23 @@ var Il = {
|
|
|
3743
3743
|
PageDown: "last",
|
|
3744
3744
|
End: "last"
|
|
3745
3745
|
};
|
|
3746
|
-
function
|
|
3746
|
+
function Ml(e, t) {
|
|
3747
3747
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
3748
3748
|
}
|
|
3749
|
-
function
|
|
3750
|
-
const n =
|
|
3749
|
+
function Dl(e, t, r) {
|
|
3750
|
+
const n = Ml(e.key, r);
|
|
3751
3751
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
|
|
3752
|
-
return
|
|
3752
|
+
return jl[n];
|
|
3753
3753
|
}
|
|
3754
3754
|
function Ho(e, t = !1) {
|
|
3755
3755
|
const r = document.activeElement;
|
|
3756
3756
|
for (const n of e)
|
|
3757
3757
|
if (n === r || (n.focus({ preventScroll: t }), document.activeElement !== r)) return;
|
|
3758
3758
|
}
|
|
3759
|
-
function
|
|
3759
|
+
function Ll(e, t) {
|
|
3760
3760
|
return e.map((r, n) => e[(t + n) % e.length]);
|
|
3761
3761
|
}
|
|
3762
|
-
var
|
|
3762
|
+
var Fl = zo, $l = Wo;
|
|
3763
3763
|
function Go(e) {
|
|
3764
3764
|
const [t, r] = l.useState(void 0);
|
|
3765
3765
|
return ae(() => {
|
|
@@ -3786,16 +3786,16 @@ function Uo(e) {
|
|
|
3786
3786
|
const t = l.useRef({ value: e, previous: e });
|
|
3787
3787
|
return l.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
3788
3788
|
}
|
|
3789
|
-
function
|
|
3789
|
+
function Vl(e, t) {
|
|
3790
3790
|
return l.useReducer((r, n) => t[r][n] ?? r, e);
|
|
3791
3791
|
}
|
|
3792
3792
|
var Ae = (e) => {
|
|
3793
|
-
const { present: t, children: r } = e, n =
|
|
3793
|
+
const { present: t, children: r } = e, n = zl(t), o = typeof r == "function" ? r({ present: n.isPresent }) : l.Children.only(r), a = ne(n.ref, Bl(o));
|
|
3794
3794
|
return typeof r == "function" || n.isPresent ? l.cloneElement(o, { ref: a }) : null;
|
|
3795
3795
|
};
|
|
3796
3796
|
Ae.displayName = "Presence";
|
|
3797
|
-
function
|
|
3798
|
-
const [t, r] = l.useState(), n = l.useRef(null), o = l.useRef(e), a = l.useRef("none"), s = e ? "mounted" : "unmounted", [i, c] =
|
|
3797
|
+
function zl(e) {
|
|
3798
|
+
const [t, r] = l.useState(), n = l.useRef(null), o = l.useRef(e), a = l.useRef("none"), s = e ? "mounted" : "unmounted", [i, c] = Vl(s, {
|
|
3799
3799
|
mounted: {
|
|
3800
3800
|
UNMOUNT: "unmounted",
|
|
3801
3801
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3846,12 +3846,12 @@ function Vl(e) {
|
|
|
3846
3846
|
function Ot(e) {
|
|
3847
3847
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
3848
3848
|
}
|
|
3849
|
-
function
|
|
3849
|
+
function Bl(e) {
|
|
3850
3850
|
var n, o;
|
|
3851
3851
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
3852
3852
|
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
3853
3853
|
}
|
|
3854
|
-
var tn = "Radio", [
|
|
3854
|
+
var tn = "Radio", [Wl, Ko] = Se(tn), [Hl, Gl] = Wl(tn), Yo = l.forwardRef(
|
|
3855
3855
|
(e, t) => {
|
|
3856
3856
|
const {
|
|
3857
3857
|
__scopeRadio: r,
|
|
@@ -3864,7 +3864,7 @@ var tn = "Radio", [Bl, Ko] = Se(tn), [Wl, Hl] = Bl(tn), Yo = l.forwardRef(
|
|
|
3864
3864
|
form: u,
|
|
3865
3865
|
...f
|
|
3866
3866
|
} = e, [p, g] = l.useState(null), h = ne(t, (x) => g(x)), v = l.useRef(!1), m = p ? u || !!p.closest("form") : !0;
|
|
3867
|
-
return /* @__PURE__ */ d.jsxs(
|
|
3867
|
+
return /* @__PURE__ */ d.jsxs(Hl, { scope: r, checked: o, disabled: s, children: [
|
|
3868
3868
|
/* @__PURE__ */ d.jsx(
|
|
3869
3869
|
V.button,
|
|
3870
3870
|
{
|
|
@@ -3902,7 +3902,7 @@ var tn = "Radio", [Bl, Ko] = Se(tn), [Wl, Hl] = Bl(tn), Yo = l.forwardRef(
|
|
|
3902
3902
|
Yo.displayName = tn;
|
|
3903
3903
|
var qo = "RadioIndicator", Xo = l.forwardRef(
|
|
3904
3904
|
(e, t) => {
|
|
3905
|
-
const { __scopeRadio: r, forceMount: n, ...o } = e, a =
|
|
3905
|
+
const { __scopeRadio: r, forceMount: n, ...o } = e, a = Gl(qo, r);
|
|
3906
3906
|
return /* @__PURE__ */ d.jsx(Ae, { present: n || a.checked, children: /* @__PURE__ */ d.jsx(
|
|
3907
3907
|
V.span,
|
|
3908
3908
|
{
|
|
@@ -3915,7 +3915,7 @@ var qo = "RadioIndicator", Xo = l.forwardRef(
|
|
|
3915
3915
|
}
|
|
3916
3916
|
);
|
|
3917
3917
|
Xo.displayName = qo;
|
|
3918
|
-
var
|
|
3918
|
+
var Ul = "RadioBubbleInput", Zo = l.forwardRef(
|
|
3919
3919
|
({
|
|
3920
3920
|
__scopeRadio: e,
|
|
3921
3921
|
control: t,
|
|
@@ -3956,14 +3956,14 @@ var Gl = "RadioBubbleInput", Zo = l.forwardRef(
|
|
|
3956
3956
|
);
|
|
3957
3957
|
}
|
|
3958
3958
|
);
|
|
3959
|
-
Zo.displayName =
|
|
3959
|
+
Zo.displayName = Ul;
|
|
3960
3960
|
function Jo(e) {
|
|
3961
3961
|
return e ? "checked" : "unchecked";
|
|
3962
3962
|
}
|
|
3963
|
-
var
|
|
3963
|
+
var Kl = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup", [Yl, Km] = Se(Xt, [
|
|
3964
3964
|
Vo,
|
|
3965
3965
|
Ko
|
|
3966
|
-
]), Qo = Vo(), ea = Ko(), [
|
|
3966
|
+
]), Qo = Vo(), ea = Ko(), [ql, Xl] = Yl(Xt), ta = l.forwardRef(
|
|
3967
3967
|
(e, t) => {
|
|
3968
3968
|
const {
|
|
3969
3969
|
__scopeRadioGroup: r,
|
|
@@ -3984,7 +3984,7 @@ var Ul = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup",
|
|
|
3984
3984
|
caller: Xt
|
|
3985
3985
|
});
|
|
3986
3986
|
return /* @__PURE__ */ d.jsx(
|
|
3987
|
-
|
|
3987
|
+
ql,
|
|
3988
3988
|
{
|
|
3989
3989
|
scope: r,
|
|
3990
3990
|
name: n,
|
|
@@ -3993,7 +3993,7 @@ var Ul = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup",
|
|
|
3993
3993
|
value: m,
|
|
3994
3994
|
onValueChange: x,
|
|
3995
3995
|
children: /* @__PURE__ */ d.jsx(
|
|
3996
|
-
|
|
3996
|
+
Fl,
|
|
3997
3997
|
{
|
|
3998
3998
|
asChild: !0,
|
|
3999
3999
|
...h,
|
|
@@ -4021,16 +4021,16 @@ var Ul = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], Xt = "RadioGroup",
|
|
|
4021
4021
|
ta.displayName = Xt;
|
|
4022
4022
|
var ra = "RadioGroupItem", na = l.forwardRef(
|
|
4023
4023
|
(e, t) => {
|
|
4024
|
-
const { __scopeRadioGroup: r, disabled: n, ...o } = e, a =
|
|
4024
|
+
const { __scopeRadioGroup: r, disabled: n, ...o } = e, a = Xl(ra, r), s = a.disabled || n, i = Qo(r), c = ea(r), u = l.useRef(null), f = ne(t, u), p = a.value === o.value, g = l.useRef(!1);
|
|
4025
4025
|
return l.useEffect(() => {
|
|
4026
4026
|
const h = (m) => {
|
|
4027
|
-
|
|
4027
|
+
Kl.includes(m.key) && (g.current = !0);
|
|
4028
4028
|
}, v = () => g.current = !1;
|
|
4029
4029
|
return document.addEventListener("keydown", h), document.addEventListener("keyup", v), () => {
|
|
4030
4030
|
document.removeEventListener("keydown", h), document.removeEventListener("keyup", v);
|
|
4031
4031
|
};
|
|
4032
4032
|
}, []), /* @__PURE__ */ d.jsx(
|
|
4033
|
-
|
|
4033
|
+
$l,
|
|
4034
4034
|
{
|
|
4035
4035
|
asChild: !0,
|
|
4036
4036
|
...i,
|
|
@@ -4061,15 +4061,15 @@ var ra = "RadioGroupItem", na = l.forwardRef(
|
|
|
4061
4061
|
}
|
|
4062
4062
|
);
|
|
4063
4063
|
na.displayName = ra;
|
|
4064
|
-
var
|
|
4064
|
+
var Zl = "RadioGroupIndicator", oa = l.forwardRef(
|
|
4065
4065
|
(e, t) => {
|
|
4066
4066
|
const { __scopeRadioGroup: r, ...n } = e, o = ea(r);
|
|
4067
4067
|
return /* @__PURE__ */ d.jsx(Xo, { ...o, ...n, ref: t });
|
|
4068
4068
|
}
|
|
4069
4069
|
);
|
|
4070
|
-
oa.displayName =
|
|
4071
|
-
var aa = ta, sa = na,
|
|
4072
|
-
const
|
|
4070
|
+
oa.displayName = Zl;
|
|
4071
|
+
var aa = ta, sa = na, Jl = oa;
|
|
4072
|
+
const Ql = () => ({
|
|
4073
4073
|
root: $(
|
|
4074
4074
|
"relative inline-flex items-center cursor-pointer",
|
|
4075
4075
|
"data-[disabled]:cursor-not-allowed"
|
|
@@ -4095,7 +4095,7 @@ const Jl = () => ({
|
|
|
4095
4095
|
"ml-2.5 text-md cursor-pointer select-none",
|
|
4096
4096
|
"data-[disabled]:cursor-not-allowed"
|
|
4097
4097
|
)
|
|
4098
|
-
}),
|
|
4098
|
+
}), ec = l.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ d.jsx(
|
|
4099
4099
|
aa,
|
|
4100
4100
|
{
|
|
4101
4101
|
className: $("grid gap-2", e),
|
|
@@ -4103,9 +4103,9 @@ const Jl = () => ({
|
|
|
4103
4103
|
ref: r
|
|
4104
4104
|
}
|
|
4105
4105
|
));
|
|
4106
|
-
|
|
4107
|
-
const
|
|
4108
|
-
const o =
|
|
4106
|
+
ec.displayName = aa.displayName;
|
|
4107
|
+
const tc = l.forwardRef(({ children: e, disabled: t, ...r }, n) => {
|
|
4108
|
+
const o = Ql();
|
|
4109
4109
|
return /* @__PURE__ */ d.jsxs("label", { className: o.root, "data-disabled": t, children: [
|
|
4110
4110
|
/* @__PURE__ */ d.jsx(
|
|
4111
4111
|
sa,
|
|
@@ -4114,14 +4114,14 @@ const ec = l.forwardRef(({ children: e, disabled: t, ...r }, n) => {
|
|
|
4114
4114
|
className: $(o.indicator),
|
|
4115
4115
|
disabled: t,
|
|
4116
4116
|
...r,
|
|
4117
|
-
children: /* @__PURE__ */ d.jsx(
|
|
4117
|
+
children: /* @__PURE__ */ d.jsx(Jl, { className: "flex items-center justify-center", children: /* @__PURE__ */ d.jsx("div", { className: o.innerCircle }) })
|
|
4118
4118
|
}
|
|
4119
4119
|
),
|
|
4120
4120
|
e && /* @__PURE__ */ d.jsx("span", { className: o.label, "data-disabled": t, children: e })
|
|
4121
4121
|
] });
|
|
4122
4122
|
});
|
|
4123
|
-
|
|
4124
|
-
function
|
|
4123
|
+
tc.displayName = sa.displayName;
|
|
4124
|
+
function rc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
4125
4125
|
const r = ke(e);
|
|
4126
4126
|
l.useEffect(() => {
|
|
4127
4127
|
const n = (o) => {
|
|
@@ -4130,7 +4130,7 @@ function tc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4130
4130
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
4131
4131
|
}, [r, t]);
|
|
4132
4132
|
}
|
|
4133
|
-
var
|
|
4133
|
+
var nc = "DismissableLayer", Dr = "dismissableLayer.update", oc = "dismissableLayer.pointerDownOutside", ac = "dismissableLayer.focusOutside", Dn, ia = l.createContext({
|
|
4134
4134
|
layers: /* @__PURE__ */ new Set(),
|
|
4135
4135
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
4136
4136
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -4144,14 +4144,14 @@ var rc = "DismissableLayer", Dr = "dismissableLayer.update", nc = "dismissableLa
|
|
|
4144
4144
|
onInteractOutside: s,
|
|
4145
4145
|
onDismiss: i,
|
|
4146
4146
|
...c
|
|
4147
|
-
} = e, u = l.useContext(ia), [f, p] = l.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = l.useState({}), v = ne(t, (R) => p(R)), m = Array.from(u.layers), [x] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(x), b = f ? m.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = b >= y, k =
|
|
4147
|
+
} = e, u = l.useContext(ia), [f, p] = l.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = l.useState({}), v = ne(t, (R) => p(R)), m = Array.from(u.layers), [x] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(x), b = f ? m.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = b >= y, k = lc((R) => {
|
|
4148
4148
|
const P = R.target, B = [...u.branches].some((U) => U.contains(P));
|
|
4149
4149
|
!C || B || (o == null || o(R), s == null || s(R), R.defaultPrevented || i == null || i());
|
|
4150
|
-
}, g), N =
|
|
4150
|
+
}, g), N = cc((R) => {
|
|
4151
4151
|
const P = R.target;
|
|
4152
4152
|
[...u.branches].some((U) => U.contains(P)) || (a == null || a(R), s == null || s(R), R.defaultPrevented || i == null || i());
|
|
4153
4153
|
}, g);
|
|
4154
|
-
return
|
|
4154
|
+
return rc((R) => {
|
|
4155
4155
|
b === u.layers.size - 1 && (n == null || n(R), !R.defaultPrevented && i && (R.preventDefault(), i()));
|
|
4156
4156
|
}, g), l.useEffect(() => {
|
|
4157
4157
|
if (f)
|
|
@@ -4182,8 +4182,8 @@ var rc = "DismissableLayer", Dr = "dismissableLayer.update", nc = "dismissableLa
|
|
|
4182
4182
|
);
|
|
4183
4183
|
}
|
|
4184
4184
|
);
|
|
4185
|
-
St.displayName =
|
|
4186
|
-
var
|
|
4185
|
+
St.displayName = nc;
|
|
4186
|
+
var sc = "DismissableLayerBranch", ic = l.forwardRef((e, t) => {
|
|
4187
4187
|
const r = l.useContext(ia), n = l.useRef(null), o = ne(t, n);
|
|
4188
4188
|
return l.useEffect(() => {
|
|
4189
4189
|
const a = n.current;
|
|
@@ -4193,8 +4193,8 @@ var ac = "DismissableLayerBranch", sc = l.forwardRef((e, t) => {
|
|
|
4193
4193
|
};
|
|
4194
4194
|
}, [r.branches]), /* @__PURE__ */ d.jsx(V.div, { ...e, ref: o });
|
|
4195
4195
|
});
|
|
4196
|
-
|
|
4197
|
-
function
|
|
4196
|
+
ic.displayName = sc;
|
|
4197
|
+
function lc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
4198
4198
|
const r = ke(e), n = l.useRef(!1), o = l.useRef(() => {
|
|
4199
4199
|
});
|
|
4200
4200
|
return l.useEffect(() => {
|
|
@@ -4202,7 +4202,7 @@ function ic(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4202
4202
|
if (i.target && !n.current) {
|
|
4203
4203
|
let c = function() {
|
|
4204
4204
|
la(
|
|
4205
|
-
|
|
4205
|
+
oc,
|
|
4206
4206
|
r,
|
|
4207
4207
|
u,
|
|
4208
4208
|
{ discrete: !0 }
|
|
@@ -4224,11 +4224,11 @@ function ic(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4224
4224
|
onPointerDownCapture: () => n.current = !0
|
|
4225
4225
|
};
|
|
4226
4226
|
}
|
|
4227
|
-
function
|
|
4227
|
+
function cc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
4228
4228
|
const r = ke(e), n = l.useRef(!1);
|
|
4229
4229
|
return l.useEffect(() => {
|
|
4230
4230
|
const o = (a) => {
|
|
4231
|
-
a.target && !n.current && la(
|
|
4231
|
+
a.target && !n.current && la(ac, r, { originalEvent: a }, {
|
|
4232
4232
|
discrete: !1
|
|
4233
4233
|
});
|
|
4234
4234
|
};
|
|
@@ -4244,9 +4244,9 @@ function Ln() {
|
|
|
4244
4244
|
}
|
|
4245
4245
|
function la(e, t, r, { discrete: n }) {
|
|
4246
4246
|
const o = r.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
4247
|
-
t && o.addEventListener(e, t, { once: !0 }), n ?
|
|
4247
|
+
t && o.addEventListener(e, t, { once: !0 }), n ? yl(o, a) : o.dispatchEvent(a);
|
|
4248
4248
|
}
|
|
4249
|
-
var gr = "focusScope.autoFocusOnMount", vr = "focusScope.autoFocusOnUnmount", Fn = { bubbles: !1, cancelable: !0 },
|
|
4249
|
+
var gr = "focusScope.autoFocusOnMount", vr = "focusScope.autoFocusOnUnmount", Fn = { bubbles: !1, cancelable: !0 }, uc = "FocusScope", Zt = l.forwardRef((e, t) => {
|
|
4250
4250
|
const {
|
|
4251
4251
|
loop: r = !1,
|
|
4252
4252
|
trapped: n = !1,
|
|
@@ -4289,7 +4289,7 @@ var gr = "focusScope.autoFocusOnMount", vr = "focusScope.autoFocusOnUnmount", Fn
|
|
|
4289
4289
|
const m = document.activeElement;
|
|
4290
4290
|
if (!i.contains(m)) {
|
|
4291
4291
|
const y = new CustomEvent(gr, Fn);
|
|
4292
|
-
i.addEventListener(gr, u), i.dispatchEvent(y), y.defaultPrevented || (
|
|
4292
|
+
i.addEventListener(gr, u), i.dispatchEvent(y), y.defaultPrevented || (dc(gc(ca(i)), { select: !0 }), document.activeElement === m && Ne(i));
|
|
4293
4293
|
}
|
|
4294
4294
|
return () => {
|
|
4295
4295
|
i.removeEventListener(gr, u), setTimeout(() => {
|
|
@@ -4304,7 +4304,7 @@ var gr = "focusScope.autoFocusOnMount", vr = "focusScope.autoFocusOnUnmount", Fn
|
|
|
4304
4304
|
if (!r && !n || h.paused) return;
|
|
4305
4305
|
const x = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, y = document.activeElement;
|
|
4306
4306
|
if (x && y) {
|
|
4307
|
-
const b = m.currentTarget, [w, C] =
|
|
4307
|
+
const b = m.currentTarget, [w, C] = fc(b);
|
|
4308
4308
|
w && C ? !m.shiftKey && y === C ? (m.preventDefault(), r && Ne(w, { select: !0 })) : m.shiftKey && y === w && (m.preventDefault(), r && Ne(C, { select: !0 })) : y === b && m.preventDefault();
|
|
4309
4309
|
}
|
|
4310
4310
|
},
|
|
@@ -4312,13 +4312,13 @@ var gr = "focusScope.autoFocusOnMount", vr = "focusScope.autoFocusOnUnmount", Fn
|
|
|
4312
4312
|
);
|
|
4313
4313
|
return /* @__PURE__ */ d.jsx(V.div, { tabIndex: -1, ...s, ref: g, onKeyDown: v });
|
|
4314
4314
|
});
|
|
4315
|
-
Zt.displayName =
|
|
4316
|
-
function
|
|
4315
|
+
Zt.displayName = uc;
|
|
4316
|
+
function dc(e, { select: t = !1 } = {}) {
|
|
4317
4317
|
const r = document.activeElement;
|
|
4318
4318
|
for (const n of e)
|
|
4319
4319
|
if (Ne(n, { select: t }), document.activeElement !== r) return;
|
|
4320
4320
|
}
|
|
4321
|
-
function
|
|
4321
|
+
function fc(e) {
|
|
4322
4322
|
const t = ca(e), r = $n(t, e), n = $n(t.reverse(), e);
|
|
4323
4323
|
return [r, n];
|
|
4324
4324
|
}
|
|
@@ -4334,9 +4334,9 @@ function ca(e) {
|
|
|
4334
4334
|
}
|
|
4335
4335
|
function $n(e, t) {
|
|
4336
4336
|
for (const r of e)
|
|
4337
|
-
if (!
|
|
4337
|
+
if (!pc(r, { upTo: t })) return r;
|
|
4338
4338
|
}
|
|
4339
|
-
function
|
|
4339
|
+
function pc(e, { upTo: t }) {
|
|
4340
4340
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
4341
4341
|
for (; e; ) {
|
|
4342
4342
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -4345,17 +4345,17 @@ function fc(e, { upTo: t }) {
|
|
|
4345
4345
|
}
|
|
4346
4346
|
return !1;
|
|
4347
4347
|
}
|
|
4348
|
-
function
|
|
4348
|
+
function mc(e) {
|
|
4349
4349
|
return e instanceof HTMLInputElement && "select" in e;
|
|
4350
4350
|
}
|
|
4351
4351
|
function Ne(e, { select: t = !1 } = {}) {
|
|
4352
4352
|
if (e && e.focus) {
|
|
4353
4353
|
const r = document.activeElement;
|
|
4354
|
-
e.focus({ preventScroll: !0 }), e !== r &&
|
|
4354
|
+
e.focus({ preventScroll: !0 }), e !== r && mc(e) && t && e.select();
|
|
4355
4355
|
}
|
|
4356
4356
|
}
|
|
4357
|
-
var Vn =
|
|
4358
|
-
function
|
|
4357
|
+
var Vn = hc();
|
|
4358
|
+
function hc() {
|
|
4359
4359
|
let e = [];
|
|
4360
4360
|
return {
|
|
4361
4361
|
add(t) {
|
|
@@ -4372,17 +4372,17 @@ function zn(e, t) {
|
|
|
4372
4372
|
const r = [...e], n = r.indexOf(t);
|
|
4373
4373
|
return n !== -1 && r.splice(n, 1), r;
|
|
4374
4374
|
}
|
|
4375
|
-
function
|
|
4375
|
+
function gc(e) {
|
|
4376
4376
|
return e.filter((t) => t.tagName !== "A");
|
|
4377
4377
|
}
|
|
4378
|
-
var
|
|
4378
|
+
var vc = "Portal", Ct = l.forwardRef((e, t) => {
|
|
4379
4379
|
var i;
|
|
4380
4380
|
const { container: r, ...n } = e, [o, a] = l.useState(!1);
|
|
4381
4381
|
ae(() => a(!0), []);
|
|
4382
4382
|
const s = r || o && ((i = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : i.body);
|
|
4383
|
-
return s ?
|
|
4383
|
+
return s ? ki.createPortal(/* @__PURE__ */ d.jsx(V.div, { ...n, ref: t }), s) : null;
|
|
4384
4384
|
});
|
|
4385
|
-
Ct.displayName =
|
|
4385
|
+
Ct.displayName = vc;
|
|
4386
4386
|
var xr = 0;
|
|
4387
4387
|
function rn() {
|
|
4388
4388
|
l.useEffect(() => {
|
|
@@ -4413,16 +4413,16 @@ function ua(e, t) {
|
|
|
4413
4413
|
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
4414
4414
|
return r;
|
|
4415
4415
|
}
|
|
4416
|
-
function
|
|
4416
|
+
function xc(e, t, r) {
|
|
4417
4417
|
if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++)
|
|
4418
4418
|
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
4419
4419
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
4420
4420
|
}
|
|
4421
|
-
var Ft = "right-scroll-bar-position", $t = "width-before-scroll-bar",
|
|
4421
|
+
var Ft = "right-scroll-bar-position", $t = "width-before-scroll-bar", bc = "with-scroll-bars-hidden", yc = "--removed-body-scroll-bar-size";
|
|
4422
4422
|
function br(e, t) {
|
|
4423
4423
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4424
4424
|
}
|
|
4425
|
-
function
|
|
4425
|
+
function wc(e, t) {
|
|
4426
4426
|
var r = $e(function() {
|
|
4427
4427
|
return {
|
|
4428
4428
|
// value
|
|
@@ -4443,14 +4443,14 @@ function yc(e, t) {
|
|
|
4443
4443
|
})[0];
|
|
4444
4444
|
return r.callback = t, r.facade;
|
|
4445
4445
|
}
|
|
4446
|
-
var
|
|
4447
|
-
function
|
|
4448
|
-
var r =
|
|
4446
|
+
var Sc = typeof window < "u" ? l.useLayoutEffect : l.useEffect, Wn = /* @__PURE__ */ new WeakMap();
|
|
4447
|
+
function Cc(e, t) {
|
|
4448
|
+
var r = wc(null, function(n) {
|
|
4449
4449
|
return e.forEach(function(o) {
|
|
4450
4450
|
return br(o, n);
|
|
4451
4451
|
});
|
|
4452
4452
|
});
|
|
4453
|
-
return
|
|
4453
|
+
return Sc(function() {
|
|
4454
4454
|
var n = Wn.get(r);
|
|
4455
4455
|
if (n) {
|
|
4456
4456
|
var o = new Set(n), a = new Set(e), s = r.current;
|
|
@@ -4463,11 +4463,11 @@ function Sc(e, t) {
|
|
|
4463
4463
|
Wn.set(r, e);
|
|
4464
4464
|
}, [e]), r;
|
|
4465
4465
|
}
|
|
4466
|
-
function
|
|
4466
|
+
function Ec(e) {
|
|
4467
4467
|
return e;
|
|
4468
4468
|
}
|
|
4469
|
-
function
|
|
4470
|
-
t === void 0 && (t =
|
|
4469
|
+
function kc(e, t) {
|
|
4470
|
+
t === void 0 && (t = Ec);
|
|
4471
4471
|
var r = [], n = !1, o = {
|
|
4472
4472
|
read: function() {
|
|
4473
4473
|
if (n)
|
|
@@ -4521,9 +4521,9 @@ function Ec(e, t) {
|
|
|
4521
4521
|
};
|
|
4522
4522
|
return o;
|
|
4523
4523
|
}
|
|
4524
|
-
function
|
|
4524
|
+
function Rc(e) {
|
|
4525
4525
|
e === void 0 && (e = {});
|
|
4526
|
-
var t =
|
|
4526
|
+
var t = kc(null);
|
|
4527
4527
|
return t.options = xe({ async: !0, ssr: !1 }, e), t;
|
|
4528
4528
|
}
|
|
4529
4529
|
var da = function(e) {
|
|
@@ -4536,16 +4536,16 @@ var da = function(e) {
|
|
|
4536
4536
|
return l.createElement(n, xe({}, r));
|
|
4537
4537
|
};
|
|
4538
4538
|
da.isSideCarExport = !0;
|
|
4539
|
-
function
|
|
4539
|
+
function Pc(e, t) {
|
|
4540
4540
|
return e.useMedium(t), da;
|
|
4541
4541
|
}
|
|
4542
|
-
var fa =
|
|
4542
|
+
var fa = Rc(), yr = function() {
|
|
4543
4543
|
}, Jt = l.forwardRef(function(e, t) {
|
|
4544
4544
|
var r = l.useRef(null), n = l.useState({
|
|
4545
4545
|
onScrollCapture: yr,
|
|
4546
4546
|
onWheelCapture: yr,
|
|
4547
4547
|
onTouchMoveCapture: yr
|
|
4548
|
-
}), o = n[0], a = n[1], s = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, h = e.noRelative, v = e.noIsolation, m = e.inert, x = e.allowPinchZoom, y = e.as, b = y === void 0 ? "div" : y, w = e.gapMode, C = ua(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = g, N =
|
|
4548
|
+
}), o = n[0], a = n[1], s = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, h = e.noRelative, v = e.noIsolation, m = e.inert, x = e.allowPinchZoom, y = e.as, b = y === void 0 ? "div" : y, w = e.gapMode, C = ua(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = g, N = Cc([r, t]), R = xe(xe({}, C), o);
|
|
4549
4549
|
return l.createElement(
|
|
4550
4550
|
l.Fragment,
|
|
4551
4551
|
null,
|
|
@@ -4562,37 +4562,37 @@ Jt.classNames = {
|
|
|
4562
4562
|
fullWidth: $t,
|
|
4563
4563
|
zeroRight: Ft
|
|
4564
4564
|
};
|
|
4565
|
-
var
|
|
4565
|
+
var Ac = function() {
|
|
4566
4566
|
if (typeof __webpack_nonce__ < "u")
|
|
4567
4567
|
return __webpack_nonce__;
|
|
4568
4568
|
};
|
|
4569
|
-
function
|
|
4569
|
+
function _c() {
|
|
4570
4570
|
if (!document)
|
|
4571
4571
|
return null;
|
|
4572
4572
|
var e = document.createElement("style");
|
|
4573
4573
|
e.type = "text/css";
|
|
4574
|
-
var t =
|
|
4574
|
+
var t = Ac();
|
|
4575
4575
|
return t && e.setAttribute("nonce", t), e;
|
|
4576
4576
|
}
|
|
4577
|
-
function
|
|
4577
|
+
function Nc(e, t) {
|
|
4578
4578
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
4579
4579
|
}
|
|
4580
|
-
function
|
|
4580
|
+
function Tc(e) {
|
|
4581
4581
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
4582
4582
|
t.appendChild(e);
|
|
4583
4583
|
}
|
|
4584
|
-
var
|
|
4584
|
+
var Oc = function() {
|
|
4585
4585
|
var e = 0, t = null;
|
|
4586
4586
|
return {
|
|
4587
4587
|
add: function(r) {
|
|
4588
|
-
e == 0 && (t =
|
|
4588
|
+
e == 0 && (t = _c()) && (Nc(t, r), Tc(t)), e++;
|
|
4589
4589
|
},
|
|
4590
4590
|
remove: function() {
|
|
4591
4591
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
4592
4592
|
}
|
|
4593
4593
|
};
|
|
4594
|
-
},
|
|
4595
|
-
var e =
|
|
4594
|
+
}, Ic = function() {
|
|
4595
|
+
var e = Oc();
|
|
4596
4596
|
return function(t, r) {
|
|
4597
4597
|
l.useEffect(function() {
|
|
4598
4598
|
return e.add(t), function() {
|
|
@@ -4601,35 +4601,35 @@ var Tc = function() {
|
|
|
4601
4601
|
}, [t && r]);
|
|
4602
4602
|
};
|
|
4603
4603
|
}, pa = function() {
|
|
4604
|
-
var e =
|
|
4604
|
+
var e = Ic(), t = function(r) {
|
|
4605
4605
|
var n = r.styles, o = r.dynamic;
|
|
4606
4606
|
return e(n, o), null;
|
|
4607
4607
|
};
|
|
4608
4608
|
return t;
|
|
4609
|
-
},
|
|
4609
|
+
}, jc = {
|
|
4610
4610
|
left: 0,
|
|
4611
4611
|
top: 0,
|
|
4612
4612
|
right: 0,
|
|
4613
4613
|
gap: 0
|
|
4614
4614
|
}, wr = function(e) {
|
|
4615
4615
|
return parseInt(e || "", 10) || 0;
|
|
4616
|
-
},
|
|
4616
|
+
}, Mc = function(e) {
|
|
4617
4617
|
var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
4618
4618
|
return [wr(r), wr(n), wr(o)];
|
|
4619
|
-
},
|
|
4619
|
+
}, Dc = function(e) {
|
|
4620
4620
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
4621
|
-
return
|
|
4622
|
-
var t =
|
|
4621
|
+
return jc;
|
|
4622
|
+
var t = Mc(e), r = document.documentElement.clientWidth, n = window.innerWidth;
|
|
4623
4623
|
return {
|
|
4624
4624
|
left: t[0],
|
|
4625
4625
|
top: t[1],
|
|
4626
4626
|
right: t[2],
|
|
4627
4627
|
gap: Math.max(0, n - r + t[2] - t[0])
|
|
4628
4628
|
};
|
|
4629
|
-
},
|
|
4629
|
+
}, Lc = pa(), Qe = "data-scroll-locked", Fc = function(e, t, r, n) {
|
|
4630
4630
|
var o = e.left, a = e.top, s = e.right, i = e.gap;
|
|
4631
4631
|
return r === void 0 && (r = "margin"), `
|
|
4632
|
-
.`.concat(
|
|
4632
|
+
.`.concat(bc, ` {
|
|
4633
4633
|
overflow: hidden `).concat(n, `;
|
|
4634
4634
|
padding-right: `).concat(i, "px ").concat(n, `;
|
|
4635
4635
|
}
|
|
@@ -4667,26 +4667,26 @@ var Tc = function() {
|
|
|
4667
4667
|
}
|
|
4668
4668
|
|
|
4669
4669
|
body[`).concat(Qe, `] {
|
|
4670
|
-
`).concat(
|
|
4670
|
+
`).concat(yc, ": ").concat(i, `px;
|
|
4671
4671
|
}
|
|
4672
4672
|
`);
|
|
4673
4673
|
}, Hn = function() {
|
|
4674
4674
|
var e = parseInt(document.body.getAttribute(Qe) || "0", 10);
|
|
4675
4675
|
return isFinite(e) ? e : 0;
|
|
4676
|
-
},
|
|
4676
|
+
}, $c = function() {
|
|
4677
4677
|
l.useEffect(function() {
|
|
4678
4678
|
return document.body.setAttribute(Qe, (Hn() + 1).toString()), function() {
|
|
4679
4679
|
var e = Hn() - 1;
|
|
4680
4680
|
e <= 0 ? document.body.removeAttribute(Qe) : document.body.setAttribute(Qe, e.toString());
|
|
4681
4681
|
};
|
|
4682
4682
|
}, []);
|
|
4683
|
-
},
|
|
4683
|
+
}, Vc = function(e) {
|
|
4684
4684
|
var t = e.noRelative, r = e.noImportant, n = e.gapMode, o = n === void 0 ? "margin" : n;
|
|
4685
|
-
|
|
4685
|
+
$c();
|
|
4686
4686
|
var a = l.useMemo(function() {
|
|
4687
|
-
return
|
|
4687
|
+
return Dc(o);
|
|
4688
4688
|
}, [o]);
|
|
4689
|
-
return l.createElement(
|
|
4689
|
+
return l.createElement(Lc, { styles: Fc(a, !t, o, r ? "" : "!important") });
|
|
4690
4690
|
}, Lr = !1;
|
|
4691
4691
|
if (typeof window < "u")
|
|
4692
4692
|
try {
|
|
@@ -4699,7 +4699,7 @@ if (typeof window < "u")
|
|
|
4699
4699
|
} catch {
|
|
4700
4700
|
Lr = !1;
|
|
4701
4701
|
}
|
|
4702
|
-
var Ye = Lr ? { passive: !1 } : !1,
|
|
4702
|
+
var Ye = Lr ? { passive: !1 } : !1, zc = function(e) {
|
|
4703
4703
|
return e.tagName === "TEXTAREA";
|
|
4704
4704
|
}, ma = function(e, t) {
|
|
4705
4705
|
if (!(e instanceof Element))
|
|
@@ -4708,11 +4708,11 @@ var Ye = Lr ? { passive: !1 } : !1, Vc = function(e) {
|
|
|
4708
4708
|
return (
|
|
4709
4709
|
// not-not-scrollable
|
|
4710
4710
|
r[t] !== "hidden" && // contains scroll inside self
|
|
4711
|
-
!(r.overflowY === r.overflowX && !
|
|
4711
|
+
!(r.overflowY === r.overflowX && !zc(e) && r[t] === "visible")
|
|
4712
4712
|
);
|
|
4713
|
-
}, zc = function(e) {
|
|
4714
|
-
return ma(e, "overflowY");
|
|
4715
4713
|
}, Bc = function(e) {
|
|
4714
|
+
return ma(e, "overflowY");
|
|
4715
|
+
}, Wc = function(e) {
|
|
4716
4716
|
return ma(e, "overflowX");
|
|
4717
4717
|
}, Gn = function(e, t) {
|
|
4718
4718
|
var r = t.ownerDocument, n = t;
|
|
@@ -4727,14 +4727,14 @@ var Ye = Lr ? { passive: !1 } : !1, Vc = function(e) {
|
|
|
4727
4727
|
n = n.parentNode;
|
|
4728
4728
|
} while (n && n !== r.body);
|
|
4729
4729
|
return !1;
|
|
4730
|
-
},
|
|
4730
|
+
}, Hc = function(e) {
|
|
4731
4731
|
var t = e.scrollTop, r = e.scrollHeight, n = e.clientHeight;
|
|
4732
4732
|
return [
|
|
4733
4733
|
t,
|
|
4734
4734
|
r,
|
|
4735
4735
|
n
|
|
4736
4736
|
];
|
|
4737
|
-
},
|
|
4737
|
+
}, Gc = function(e) {
|
|
4738
4738
|
var t = e.scrollLeft, r = e.scrollWidth, n = e.clientWidth;
|
|
4739
4739
|
return [
|
|
4740
4740
|
t,
|
|
@@ -4742,13 +4742,13 @@ var Ye = Lr ? { passive: !1 } : !1, Vc = function(e) {
|
|
|
4742
4742
|
n
|
|
4743
4743
|
];
|
|
4744
4744
|
}, ha = function(e, t) {
|
|
4745
|
-
return e === "v" ?
|
|
4745
|
+
return e === "v" ? Bc(t) : Wc(t);
|
|
4746
4746
|
}, ga = function(e, t) {
|
|
4747
|
-
return e === "v" ?
|
|
4748
|
-
},
|
|
4747
|
+
return e === "v" ? Hc(t) : Gc(t);
|
|
4748
|
+
}, Uc = function(e, t) {
|
|
4749
4749
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4750
|
-
},
|
|
4751
|
-
var a =
|
|
4750
|
+
}, Kc = function(e, t, r, n, o) {
|
|
4751
|
+
var a = Uc(e, window.getComputedStyle(t).direction), s = a * n, i = r.target, c = t.contains(i), u = !1, f = s > 0, p = 0, g = 0;
|
|
4752
4752
|
do {
|
|
4753
4753
|
if (!i)
|
|
4754
4754
|
break;
|
|
@@ -4768,22 +4768,22 @@ var Ye = Lr ? { passive: !1 } : !1, Vc = function(e) {
|
|
|
4768
4768
|
return [e.deltaX, e.deltaY];
|
|
4769
4769
|
}, Kn = function(e) {
|
|
4770
4770
|
return e && "current" in e ? e.current : e;
|
|
4771
|
-
},
|
|
4771
|
+
}, Yc = function(e, t) {
|
|
4772
4772
|
return e[0] === t[0] && e[1] === t[1];
|
|
4773
|
-
},
|
|
4773
|
+
}, qc = function(e) {
|
|
4774
4774
|
return `
|
|
4775
4775
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
4776
4776
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
4777
4777
|
`);
|
|
4778
|
-
},
|
|
4779
|
-
function
|
|
4780
|
-
var t = l.useRef([]), r = l.useRef([0, 0]), n = l.useRef(), o = l.useState(
|
|
4778
|
+
}, Xc = 0, qe = [];
|
|
4779
|
+
function Zc(e) {
|
|
4780
|
+
var t = l.useRef([]), r = l.useRef([0, 0]), n = l.useRef(), o = l.useState(Xc++)[0], a = l.useState(pa)[0], s = l.useRef(e);
|
|
4781
4781
|
l.useEffect(function() {
|
|
4782
4782
|
s.current = e;
|
|
4783
4783
|
}, [e]), l.useEffect(function() {
|
|
4784
4784
|
if (e.inert) {
|
|
4785
4785
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
4786
|
-
var m =
|
|
4786
|
+
var m = xc([e.lockRef.current], (e.shards || []).map(Kn), !0).filter(Boolean);
|
|
4787
4787
|
return m.forEach(function(x) {
|
|
4788
4788
|
return x.classList.add("allow-interactivity-".concat(o));
|
|
4789
4789
|
}), function() {
|
|
@@ -4807,12 +4807,12 @@ function Xc(e) {
|
|
|
4807
4807
|
if (!n.current && "changedTouches" in m && (w || C) && (n.current = k), !k)
|
|
4808
4808
|
return !0;
|
|
4809
4809
|
var B = n.current || k;
|
|
4810
|
-
return
|
|
4810
|
+
return Kc(B, x, m, B === "h" ? w : C);
|
|
4811
4811
|
}, []), c = l.useCallback(function(m) {
|
|
4812
4812
|
var x = m;
|
|
4813
4813
|
if (!(!qe.length || qe[qe.length - 1] !== a)) {
|
|
4814
4814
|
var y = "deltaY" in x ? Un(x) : jt(x), b = t.current.filter(function(k) {
|
|
4815
|
-
return k.name === x.type && (k.target === x.target || x.target === k.shadowParent) &&
|
|
4815
|
+
return k.name === x.type && (k.target === x.target || x.target === k.shadowParent) && Yc(k.delta, y);
|
|
4816
4816
|
})[0];
|
|
4817
4817
|
if (b && b.should) {
|
|
4818
4818
|
x.cancelable && x.preventDefault();
|
|
@@ -4826,7 +4826,7 @@ function Xc(e) {
|
|
|
4826
4826
|
}
|
|
4827
4827
|
}
|
|
4828
4828
|
}, []), u = l.useCallback(function(m, x, y, b) {
|
|
4829
|
-
var w = { name: m, delta: x, target: y, should: b, shadowParent:
|
|
4829
|
+
var w = { name: m, delta: x, target: y, should: b, shadowParent: Jc(y) };
|
|
4830
4830
|
t.current.push(w), setTimeout(function() {
|
|
4831
4831
|
t.current = t.current.filter(function(C) {
|
|
4832
4832
|
return C !== w;
|
|
@@ -4854,28 +4854,28 @@ function Xc(e) {
|
|
|
4854
4854
|
return l.createElement(
|
|
4855
4855
|
l.Fragment,
|
|
4856
4856
|
null,
|
|
4857
|
-
v ? l.createElement(a, { styles:
|
|
4858
|
-
h ? l.createElement(
|
|
4857
|
+
v ? l.createElement(a, { styles: qc(o) }) : null,
|
|
4858
|
+
h ? l.createElement(Vc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
4859
4859
|
);
|
|
4860
4860
|
}
|
|
4861
|
-
function
|
|
4861
|
+
function Jc(e) {
|
|
4862
4862
|
for (var t = null; e !== null; )
|
|
4863
4863
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4864
4864
|
return t;
|
|
4865
4865
|
}
|
|
4866
|
-
const
|
|
4866
|
+
const Qc = Pc(fa, Zc);
|
|
4867
4867
|
var Qt = l.forwardRef(function(e, t) {
|
|
4868
|
-
return l.createElement(Jt, xe({}, e, { ref: t, sideCar:
|
|
4868
|
+
return l.createElement(Jt, xe({}, e, { ref: t, sideCar: Qc }));
|
|
4869
4869
|
});
|
|
4870
4870
|
Qt.classNames = Jt.classNames;
|
|
4871
|
-
var
|
|
4871
|
+
var eu = function(e) {
|
|
4872
4872
|
if (typeof document > "u")
|
|
4873
4873
|
return null;
|
|
4874
4874
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4875
4875
|
return t.ownerDocument.body;
|
|
4876
4876
|
}, Xe = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Dt = {}, Sr = 0, va = function(e) {
|
|
4877
4877
|
return e && (e.host || va(e.parentNode));
|
|
4878
|
-
},
|
|
4878
|
+
}, tu = function(e, t) {
|
|
4879
4879
|
return t.map(function(r) {
|
|
4880
4880
|
if (e.contains(r))
|
|
4881
4881
|
return r;
|
|
@@ -4884,8 +4884,8 @@ var Qc = function(e) {
|
|
|
4884
4884
|
}).filter(function(r) {
|
|
4885
4885
|
return !!r;
|
|
4886
4886
|
});
|
|
4887
|
-
},
|
|
4888
|
-
var o =
|
|
4887
|
+
}, ru = function(e, t, r, n) {
|
|
4888
|
+
var o = tu(t, Array.isArray(e) ? e : [e]);
|
|
4889
4889
|
Dt[r] || (Dt[r] = /* @__PURE__ */ new WeakMap());
|
|
4890
4890
|
var a = Dt[r], s = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(p) {
|
|
4891
4891
|
!p || i.has(p) || (i.add(p), u(p.parentNode));
|
|
@@ -4912,11 +4912,11 @@ var Qc = function(e) {
|
|
|
4912
4912
|
};
|
|
4913
4913
|
}, nn = function(e, t, r) {
|
|
4914
4914
|
r === void 0 && (r = "data-aria-hidden");
|
|
4915
|
-
var n = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
4916
|
-
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
4915
|
+
var n = Array.from(Array.isArray(e) ? e : [e]), o = eu(e);
|
|
4916
|
+
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))), ru(n, o, r, "aria-hidden")) : function() {
|
|
4917
4917
|
return null;
|
|
4918
4918
|
};
|
|
4919
|
-
}, er = "Dialog", [xa, Ym] = Se(er), [
|
|
4919
|
+
}, er = "Dialog", [xa, Ym] = Se(er), [nu, he] = xa(er), ba = (e) => {
|
|
4920
4920
|
const {
|
|
4921
4921
|
__scopeDialog: t,
|
|
4922
4922
|
children: r,
|
|
@@ -4931,7 +4931,7 @@ var Qc = function(e) {
|
|
|
4931
4931
|
caller: er
|
|
4932
4932
|
});
|
|
4933
4933
|
return /* @__PURE__ */ d.jsx(
|
|
4934
|
-
|
|
4934
|
+
nu,
|
|
4935
4935
|
{
|
|
4936
4936
|
scope: t,
|
|
4937
4937
|
triggerRef: i,
|
|
@@ -4967,27 +4967,27 @@ var ya = "DialogTrigger", wa = l.forwardRef(
|
|
|
4967
4967
|
}
|
|
4968
4968
|
);
|
|
4969
4969
|
wa.displayName = ya;
|
|
4970
|
-
var on = "DialogPortal", [
|
|
4970
|
+
var on = "DialogPortal", [ou, Sa] = xa(on, {
|
|
4971
4971
|
forceMount: void 0
|
|
4972
4972
|
}), Ca = (e) => {
|
|
4973
4973
|
const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, a = he(on, t);
|
|
4974
|
-
return /* @__PURE__ */ d.jsx(
|
|
4974
|
+
return /* @__PURE__ */ d.jsx(ou, { scope: t, forceMount: r, children: l.Children.map(n, (s) => /* @__PURE__ */ d.jsx(Ae, { present: r || a.open, children: /* @__PURE__ */ d.jsx(Ct, { asChild: !0, container: o, children: s }) })) });
|
|
4975
4975
|
};
|
|
4976
4976
|
Ca.displayName = on;
|
|
4977
4977
|
var Bt = "DialogOverlay", Ea = l.forwardRef(
|
|
4978
4978
|
(e, t) => {
|
|
4979
4979
|
const r = Sa(Bt, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = he(Bt, e.__scopeDialog);
|
|
4980
|
-
return a.modal ? /* @__PURE__ */ d.jsx(Ae, { present: n || a.open, children: /* @__PURE__ */ d.jsx(
|
|
4980
|
+
return a.modal ? /* @__PURE__ */ d.jsx(Ae, { present: n || a.open, children: /* @__PURE__ */ d.jsx(su, { ...o, ref: t }) }) : null;
|
|
4981
4981
|
}
|
|
4982
4982
|
);
|
|
4983
4983
|
Ea.displayName = Bt;
|
|
4984
|
-
var
|
|
4984
|
+
var au = /* @__PURE__ */ ze("DialogOverlay.RemoveScroll"), su = l.forwardRef(
|
|
4985
4985
|
(e, t) => {
|
|
4986
4986
|
const { __scopeDialog: r, ...n } = e, o = he(Bt, r);
|
|
4987
4987
|
return (
|
|
4988
4988
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4989
4989
|
// ie. when `Overlay` and `Content` are siblings
|
|
4990
|
-
/* @__PURE__ */ d.jsx(Qt, { as:
|
|
4990
|
+
/* @__PURE__ */ d.jsx(Qt, { as: au, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ d.jsx(
|
|
4991
4991
|
V.div,
|
|
4992
4992
|
{
|
|
4993
4993
|
"data-state": sn(o.open),
|
|
@@ -5001,11 +5001,11 @@ var ou = /* @__PURE__ */ ze("DialogOverlay.RemoveScroll"), au = l.forwardRef(
|
|
|
5001
5001
|
), Be = "DialogContent", ka = l.forwardRef(
|
|
5002
5002
|
(e, t) => {
|
|
5003
5003
|
const r = Sa(Be, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = he(Be, e.__scopeDialog);
|
|
5004
|
-
return /* @__PURE__ */ d.jsx(Ae, { present: n || a.open, children: a.modal ? /* @__PURE__ */ d.jsx(
|
|
5004
|
+
return /* @__PURE__ */ d.jsx(Ae, { present: n || a.open, children: a.modal ? /* @__PURE__ */ d.jsx(iu, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(lu, { ...o, ref: t }) });
|
|
5005
5005
|
}
|
|
5006
5006
|
);
|
|
5007
5007
|
ka.displayName = Be;
|
|
5008
|
-
var
|
|
5008
|
+
var iu = l.forwardRef(
|
|
5009
5009
|
(e, t) => {
|
|
5010
5010
|
const r = he(Be, e.__scopeDialog), n = l.useRef(null), o = ne(t, r.contentRef, n);
|
|
5011
5011
|
return l.useEffect(() => {
|
|
@@ -5033,7 +5033,7 @@ var su = l.forwardRef(
|
|
|
5033
5033
|
}
|
|
5034
5034
|
);
|
|
5035
5035
|
}
|
|
5036
|
-
),
|
|
5036
|
+
), lu = l.forwardRef(
|
|
5037
5037
|
(e, t) => {
|
|
5038
5038
|
const r = he(Be, e.__scopeDialog), n = l.useRef(!1), o = l.useRef(!1);
|
|
5039
5039
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -5084,8 +5084,8 @@ var su = l.forwardRef(
|
|
|
5084
5084
|
}
|
|
5085
5085
|
),
|
|
5086
5086
|
/* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
5087
|
-
/* @__PURE__ */ d.jsx(
|
|
5088
|
-
/* @__PURE__ */ d.jsx(
|
|
5087
|
+
/* @__PURE__ */ d.jsx(cu, { titleId: i.titleId }),
|
|
5088
|
+
/* @__PURE__ */ d.jsx(du, { contentRef: c, descriptionId: i.descriptionId })
|
|
5089
5089
|
] })
|
|
5090
5090
|
] });
|
|
5091
5091
|
}
|
|
@@ -5121,11 +5121,11 @@ Ta.displayName = Na;
|
|
|
5121
5121
|
function sn(e) {
|
|
5122
5122
|
return e ? "open" : "closed";
|
|
5123
5123
|
}
|
|
5124
|
-
var Oa = "DialogTitleWarning", [qm, Ia] =
|
|
5124
|
+
var Oa = "DialogTitleWarning", [qm, Ia] = Cl(Oa, {
|
|
5125
5125
|
contentName: Be,
|
|
5126
5126
|
titleName: an,
|
|
5127
5127
|
docsSlug: "dialog"
|
|
5128
|
-
}),
|
|
5128
|
+
}), cu = ({ titleId: e }) => {
|
|
5129
5129
|
const t = Ia(Oa), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
5130
5130
|
|
|
5131
5131
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -5134,27 +5134,27 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5134
5134
|
return l.useEffect(() => {
|
|
5135
5135
|
e && (document.getElementById(e) || console.error(r));
|
|
5136
5136
|
}, [r, e]), null;
|
|
5137
|
-
},
|
|
5138
|
-
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ia(
|
|
5137
|
+
}, uu = "DialogDescriptionWarning", du = ({ contentRef: e, descriptionId: t }) => {
|
|
5138
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ia(uu).contentName}}.`;
|
|
5139
5139
|
return l.useEffect(() => {
|
|
5140
5140
|
var a;
|
|
5141
5141
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
5142
5142
|
t && o && (document.getElementById(t) || console.warn(n));
|
|
5143
5143
|
}, [n, e, t]), null;
|
|
5144
|
-
}, ja = ba,
|
|
5144
|
+
}, ja = ba, fu = wa, Ma = Ca, Da = Ea, La = ka, pu = Pa, mu = _a, Fa = Ta;
|
|
5145
5145
|
/**
|
|
5146
5146
|
* @license lucide-react v0.542.0 - ISC
|
|
5147
5147
|
*
|
|
5148
5148
|
* This source code is licensed under the ISC license.
|
|
5149
5149
|
* See the LICENSE file in the root directory of this source tree.
|
|
5150
5150
|
*/
|
|
5151
|
-
const
|
|
5151
|
+
const hu = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), gu = (e) => e.replace(
|
|
5152
5152
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
5153
5153
|
(t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
5154
5154
|
), Yn = (e) => {
|
|
5155
|
-
const t =
|
|
5155
|
+
const t = gu(e);
|
|
5156
5156
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
5157
|
-
}, $a = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(),
|
|
5157
|
+
}, $a = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), vu = (e) => {
|
|
5158
5158
|
for (const t in e)
|
|
5159
5159
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
5160
5160
|
return !0;
|
|
@@ -5165,7 +5165,7 @@ const mu = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), hu = (
|
|
|
5165
5165
|
* This source code is licensed under the ISC license.
|
|
5166
5166
|
* See the LICENSE file in the root directory of this source tree.
|
|
5167
5167
|
*/
|
|
5168
|
-
var
|
|
5168
|
+
var xu = {
|
|
5169
5169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5170
5170
|
width: 24,
|
|
5171
5171
|
height: 24,
|
|
@@ -5182,7 +5182,7 @@ var vu = {
|
|
|
5182
5182
|
* This source code is licensed under the ISC license.
|
|
5183
5183
|
* See the LICENSE file in the root directory of this source tree.
|
|
5184
5184
|
*/
|
|
5185
|
-
const
|
|
5185
|
+
const bu = Yt(
|
|
5186
5186
|
({
|
|
5187
5187
|
color: e = "currentColor",
|
|
5188
5188
|
size: t = 24,
|
|
@@ -5196,13 +5196,13 @@ const xu = Yt(
|
|
|
5196
5196
|
"svg",
|
|
5197
5197
|
{
|
|
5198
5198
|
ref: c,
|
|
5199
|
-
...
|
|
5199
|
+
...xu,
|
|
5200
5200
|
width: t,
|
|
5201
5201
|
height: t,
|
|
5202
5202
|
stroke: e,
|
|
5203
5203
|
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
5204
5204
|
className: $a("lucide", o),
|
|
5205
|
-
...!a && !
|
|
5205
|
+
...!a && !vu(i) && { "aria-hidden": "true" },
|
|
5206
5206
|
...i
|
|
5207
5207
|
},
|
|
5208
5208
|
[
|
|
@@ -5219,11 +5219,11 @@ const xu = Yt(
|
|
|
5219
5219
|
*/
|
|
5220
5220
|
const ie = (e, t) => {
|
|
5221
5221
|
const r = Yt(
|
|
5222
|
-
({ className: n, ...o }, a) => Nr(
|
|
5222
|
+
({ className: n, ...o }, a) => Nr(bu, {
|
|
5223
5223
|
ref: a,
|
|
5224
5224
|
iconNode: t,
|
|
5225
5225
|
className: $a(
|
|
5226
|
-
`lucide-${
|
|
5226
|
+
`lucide-${hu(Yn(e))}`,
|
|
5227
5227
|
`lucide-${e}`,
|
|
5228
5228
|
n
|
|
5229
5229
|
),
|
|
@@ -5238,7 +5238,7 @@ const ie = (e, t) => {
|
|
|
5238
5238
|
* This source code is licensed under the ISC license.
|
|
5239
5239
|
* See the LICENSE file in the root directory of this source tree.
|
|
5240
5240
|
*/
|
|
5241
|
-
const
|
|
5241
|
+
const yu = [
|
|
5242
5242
|
[
|
|
5243
5243
|
"path",
|
|
5244
5244
|
{
|
|
@@ -5247,14 +5247,14 @@ const bu = [
|
|
|
5247
5247
|
}
|
|
5248
5248
|
],
|
|
5249
5249
|
["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
|
|
5250
|
-
],
|
|
5250
|
+
], wu = ie("camera", yu);
|
|
5251
5251
|
/**
|
|
5252
5252
|
* @license lucide-react v0.542.0 - ISC
|
|
5253
5253
|
*
|
|
5254
5254
|
* This source code is licensed under the ISC license.
|
|
5255
5255
|
* See the LICENSE file in the root directory of this source tree.
|
|
5256
5256
|
*/
|
|
5257
|
-
const
|
|
5257
|
+
const Su = [
|
|
5258
5258
|
[
|
|
5259
5259
|
"path",
|
|
5260
5260
|
{
|
|
@@ -5263,52 +5263,52 @@ const wu = [
|
|
|
5263
5263
|
}
|
|
5264
5264
|
],
|
|
5265
5265
|
["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }]
|
|
5266
|
-
],
|
|
5266
|
+
], Cu = ie("chart-pie", Su);
|
|
5267
5267
|
/**
|
|
5268
5268
|
* @license lucide-react v0.542.0 - ISC
|
|
5269
5269
|
*
|
|
5270
5270
|
* This source code is licensed under the ISC license.
|
|
5271
5271
|
* See the LICENSE file in the root directory of this source tree.
|
|
5272
5272
|
*/
|
|
5273
|
-
const
|
|
5273
|
+
const Eu = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], ku = ie("check", Eu);
|
|
5274
5274
|
/**
|
|
5275
5275
|
* @license lucide-react v0.542.0 - ISC
|
|
5276
5276
|
*
|
|
5277
5277
|
* This source code is licensed under the ISC license.
|
|
5278
5278
|
* See the LICENSE file in the root directory of this source tree.
|
|
5279
5279
|
*/
|
|
5280
|
-
const
|
|
5280
|
+
const Ru = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ln = ie("chevron-down", Ru);
|
|
5281
5281
|
/**
|
|
5282
5282
|
* @license lucide-react v0.542.0 - ISC
|
|
5283
5283
|
*
|
|
5284
5284
|
* This source code is licensed under the ISC license.
|
|
5285
5285
|
* See the LICENSE file in the root directory of this source tree.
|
|
5286
5286
|
*/
|
|
5287
|
-
const
|
|
5287
|
+
const Pu = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Au = ie("chevron-up", Pu);
|
|
5288
5288
|
/**
|
|
5289
5289
|
* @license lucide-react v0.542.0 - ISC
|
|
5290
5290
|
*
|
|
5291
5291
|
* This source code is licensed under the ISC license.
|
|
5292
5292
|
* See the LICENSE file in the root directory of this source tree.
|
|
5293
5293
|
*/
|
|
5294
|
-
const
|
|
5294
|
+
const _u = [
|
|
5295
5295
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5296
5296
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
5297
|
-
],
|
|
5297
|
+
], Nu = ie("circle-check", _u);
|
|
5298
5298
|
/**
|
|
5299
5299
|
* @license lucide-react v0.542.0 - ISC
|
|
5300
5300
|
*
|
|
5301
5301
|
* This source code is licensed under the ISC license.
|
|
5302
5302
|
* See the LICENSE file in the root directory of this source tree.
|
|
5303
5303
|
*/
|
|
5304
|
-
const
|
|
5304
|
+
const Tu = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], Ou = ie("circle", Tu);
|
|
5305
5305
|
/**
|
|
5306
5306
|
* @license lucide-react v0.542.0 - ISC
|
|
5307
5307
|
*
|
|
5308
5308
|
* This source code is licensed under the ISC license.
|
|
5309
5309
|
* See the LICENSE file in the root directory of this source tree.
|
|
5310
5310
|
*/
|
|
5311
|
-
const
|
|
5311
|
+
const Iu = [
|
|
5312
5312
|
[
|
|
5313
5313
|
"path",
|
|
5314
5314
|
{
|
|
@@ -5325,14 +5325,14 @@ const Ou = [
|
|
|
5325
5325
|
}
|
|
5326
5326
|
],
|
|
5327
5327
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
5328
|
-
],
|
|
5328
|
+
], ju = ie("eye-off", Iu);
|
|
5329
5329
|
/**
|
|
5330
5330
|
* @license lucide-react v0.542.0 - ISC
|
|
5331
5331
|
*
|
|
5332
5332
|
* This source code is licensed under the ISC license.
|
|
5333
5333
|
* See the LICENSE file in the root directory of this source tree.
|
|
5334
5334
|
*/
|
|
5335
|
-
const
|
|
5335
|
+
const Mu = [
|
|
5336
5336
|
[
|
|
5337
5337
|
"path",
|
|
5338
5338
|
{
|
|
@@ -5341,57 +5341,57 @@ const ju = [
|
|
|
5341
5341
|
}
|
|
5342
5342
|
],
|
|
5343
5343
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
5344
|
-
],
|
|
5344
|
+
], Du = ie("eye", Mu);
|
|
5345
5345
|
/**
|
|
5346
5346
|
* @license lucide-react v0.542.0 - ISC
|
|
5347
5347
|
*
|
|
5348
5348
|
* This source code is licensed under the ISC license.
|
|
5349
5349
|
* See the LICENSE file in the root directory of this source tree.
|
|
5350
5350
|
*/
|
|
5351
|
-
const
|
|
5351
|
+
const Lu = [
|
|
5352
5352
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
5353
5353
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
5354
5354
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
5355
|
-
],
|
|
5355
|
+
], Fu = ie("image", Lu);
|
|
5356
5356
|
/**
|
|
5357
5357
|
* @license lucide-react v0.542.0 - ISC
|
|
5358
5358
|
*
|
|
5359
5359
|
* This source code is licensed under the ISC license.
|
|
5360
5360
|
* See the LICENSE file in the root directory of this source tree.
|
|
5361
5361
|
*/
|
|
5362
|
-
const
|
|
5362
|
+
const $u = [
|
|
5363
5363
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
5364
5364
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
5365
|
-
], Va = ie("search",
|
|
5365
|
+
], Va = ie("search", $u);
|
|
5366
5366
|
/**
|
|
5367
5367
|
* @license lucide-react v0.542.0 - ISC
|
|
5368
5368
|
*
|
|
5369
5369
|
* This source code is licensed under the ISC license.
|
|
5370
5370
|
* See the LICENSE file in the root directory of this source tree.
|
|
5371
5371
|
*/
|
|
5372
|
-
const
|
|
5372
|
+
const Vu = [
|
|
5373
5373
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
5374
5374
|
["path", { d: "M8 14s1.5 2 4 2 4-2 4-2", key: "1y1vjs" }],
|
|
5375
5375
|
["line", { x1: "9", x2: "9.01", y1: "9", y2: "9", key: "yxxnd0" }],
|
|
5376
5376
|
["line", { x1: "15", x2: "15.01", y1: "9", y2: "9", key: "1p4y9e" }]
|
|
5377
|
-
],
|
|
5377
|
+
], zu = ie("smile", Vu);
|
|
5378
5378
|
/**
|
|
5379
5379
|
* @license lucide-react v0.542.0 - ISC
|
|
5380
5380
|
*
|
|
5381
5381
|
* This source code is licensed under the ISC license.
|
|
5382
5382
|
* See the LICENSE file in the root directory of this source tree.
|
|
5383
5383
|
*/
|
|
5384
|
-
const
|
|
5384
|
+
const Bu = [
|
|
5385
5385
|
["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
|
|
5386
5386
|
["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
|
|
5387
|
-
], qn = ie("user-round",
|
|
5387
|
+
], qn = ie("user-round", Bu);
|
|
5388
5388
|
/**
|
|
5389
5389
|
* @license lucide-react v0.542.0 - ISC
|
|
5390
5390
|
*
|
|
5391
5391
|
* This source code is licensed under the ISC license.
|
|
5392
5392
|
* See the LICENSE file in the root directory of this source tree.
|
|
5393
5393
|
*/
|
|
5394
|
-
const
|
|
5394
|
+
const Wu = [
|
|
5395
5395
|
[
|
|
5396
5396
|
"path",
|
|
5397
5397
|
{
|
|
@@ -5400,17 +5400,17 @@ const Bu = [
|
|
|
5400
5400
|
}
|
|
5401
5401
|
],
|
|
5402
5402
|
["rect", { x: "2", y: "6", width: "14", height: "12", rx: "2", key: "158x01" }]
|
|
5403
|
-
],
|
|
5403
|
+
], Hu = ie("video", Wu);
|
|
5404
5404
|
/**
|
|
5405
5405
|
* @license lucide-react v0.542.0 - ISC
|
|
5406
5406
|
*
|
|
5407
5407
|
* This source code is licensed under the ISC license.
|
|
5408
5408
|
* See the LICENSE file in the root directory of this source tree.
|
|
5409
5409
|
*/
|
|
5410
|
-
const
|
|
5410
|
+
const Gu = [
|
|
5411
5411
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
5412
5412
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
5413
|
-
], za = ie("x",
|
|
5413
|
+
], za = ie("x", Gu);
|
|
5414
5414
|
function Xm({
|
|
5415
5415
|
...e
|
|
5416
5416
|
}) {
|
|
@@ -5419,9 +5419,9 @@ function Xm({
|
|
|
5419
5419
|
function Zm({
|
|
5420
5420
|
...e
|
|
5421
5421
|
}) {
|
|
5422
|
-
return /* @__PURE__ */ d.jsx(
|
|
5422
|
+
return /* @__PURE__ */ d.jsx(fu, { "data-slot": "dialog-trigger", ...e });
|
|
5423
5423
|
}
|
|
5424
|
-
function
|
|
5424
|
+
function Uu({
|
|
5425
5425
|
...e
|
|
5426
5426
|
}) {
|
|
5427
5427
|
return /* @__PURE__ */ d.jsx(Ma, { "data-slot": "dialog-portal", ...e });
|
|
@@ -5431,7 +5431,7 @@ function Jm({
|
|
|
5431
5431
|
}) {
|
|
5432
5432
|
return /* @__PURE__ */ d.jsx(Fa, { "data-slot": "dialog-close", ...e });
|
|
5433
5433
|
}
|
|
5434
|
-
function
|
|
5434
|
+
function Ku({
|
|
5435
5435
|
className: e,
|
|
5436
5436
|
...t
|
|
5437
5437
|
}) {
|
|
@@ -5453,8 +5453,8 @@ function Qm({
|
|
|
5453
5453
|
showCloseButton: r = !0,
|
|
5454
5454
|
...n
|
|
5455
5455
|
}) {
|
|
5456
|
-
return /* @__PURE__ */ d.jsxs(
|
|
5457
|
-
/* @__PURE__ */ d.jsx(
|
|
5456
|
+
return /* @__PURE__ */ d.jsxs(Uu, { "data-slot": "dialog-portal", children: [
|
|
5457
|
+
/* @__PURE__ */ d.jsx(Ku, {}),
|
|
5458
5458
|
/* @__PURE__ */ d.jsxs(
|
|
5459
5459
|
La,
|
|
5460
5460
|
{
|
|
@@ -5510,7 +5510,7 @@ function rh({
|
|
|
5510
5510
|
...t
|
|
5511
5511
|
}) {
|
|
5512
5512
|
return /* @__PURE__ */ d.jsx(
|
|
5513
|
-
|
|
5513
|
+
pu,
|
|
5514
5514
|
{
|
|
5515
5515
|
"data-slot": "dialog-title",
|
|
5516
5516
|
className: $("text-lg leading-none font-semibold ", e),
|
|
@@ -5523,7 +5523,7 @@ function nh({
|
|
|
5523
5523
|
...t
|
|
5524
5524
|
}) {
|
|
5525
5525
|
return /* @__PURE__ */ d.jsx(
|
|
5526
|
-
|
|
5526
|
+
mu,
|
|
5527
5527
|
{
|
|
5528
5528
|
"data-slot": "dialog-description",
|
|
5529
5529
|
className: $("text-muted-foreground text-sm", e),
|
|
@@ -5531,7 +5531,7 @@ function nh({
|
|
|
5531
5531
|
}
|
|
5532
5532
|
);
|
|
5533
5533
|
}
|
|
5534
|
-
const
|
|
5534
|
+
const Yu = de(
|
|
5535
5535
|
"inline-flex items-center justify-center rounded-full font-medium w-fit whitespace-nowrap shrink-0 gap-1 text-sm",
|
|
5536
5536
|
{
|
|
5537
5537
|
variants: {
|
|
@@ -5559,26 +5559,33 @@ const Ku = de(
|
|
|
5559
5559
|
size: "md"
|
|
5560
5560
|
}
|
|
5561
5561
|
}
|
|
5562
|
+
), Ba = l.forwardRef(
|
|
5563
|
+
({
|
|
5564
|
+
className: e,
|
|
5565
|
+
variant: t,
|
|
5566
|
+
type: r = "filled",
|
|
5567
|
+
asChild: n = !1,
|
|
5568
|
+
children: o,
|
|
5569
|
+
...a
|
|
5570
|
+
}, s) => {
|
|
5571
|
+
const i = n ? Jr : "span";
|
|
5572
|
+
return /* @__PURE__ */ d.jsx(
|
|
5573
|
+
i,
|
|
5574
|
+
{
|
|
5575
|
+
ref: s,
|
|
5576
|
+
"data-slot": "badge",
|
|
5577
|
+
className: $(
|
|
5578
|
+
Yu({ variant: t, type: r }),
|
|
5579
|
+
r === "outline" ? "bg-transparent" : "",
|
|
5580
|
+
e
|
|
5581
|
+
),
|
|
5582
|
+
...a,
|
|
5583
|
+
children: o
|
|
5584
|
+
}
|
|
5585
|
+
);
|
|
5586
|
+
}
|
|
5562
5587
|
);
|
|
5563
|
-
|
|
5564
|
-
className: e,
|
|
5565
|
-
variant: t,
|
|
5566
|
-
type: r = "filled",
|
|
5567
|
-
asChild: n = !1,
|
|
5568
|
-
children: o,
|
|
5569
|
-
...a
|
|
5570
|
-
}) {
|
|
5571
|
-
const s = n ? Jr : "span";
|
|
5572
|
-
return /* @__PURE__ */ d.jsx(
|
|
5573
|
-
s,
|
|
5574
|
-
{
|
|
5575
|
-
"data-slot": "badge",
|
|
5576
|
-
className: $(Ku({ variant: t, type: r }), e),
|
|
5577
|
-
...a,
|
|
5578
|
-
children: o
|
|
5579
|
-
}
|
|
5580
|
-
);
|
|
5581
|
-
}
|
|
5588
|
+
Ba.displayName = "Badge";
|
|
5582
5589
|
const qu = ["top", "right", "bottom", "left"], Oe = Math.min, ce = Math.max, Wt = Math.round, Lt = Math.floor, ye = (e) => ({
|
|
5583
5590
|
x: e,
|
|
5584
5591
|
y: e
|
|
@@ -5659,7 +5666,7 @@ function ad(e) {
|
|
|
5659
5666
|
...e
|
|
5660
5667
|
};
|
|
5661
5668
|
}
|
|
5662
|
-
function
|
|
5669
|
+
function Wa(e) {
|
|
5663
5670
|
return typeof e != "number" ? ad(e) : {
|
|
5664
5671
|
top: e,
|
|
5665
5672
|
right: e,
|
|
@@ -5810,7 +5817,7 @@ async function xt(e, t) {
|
|
|
5810
5817
|
elementContext: p = "floating",
|
|
5811
5818
|
altBoundary: g = !1,
|
|
5812
5819
|
padding: h = 0
|
|
5813
|
-
} = Re(t, e), v =
|
|
5820
|
+
} = Re(t, e), v = Wa(h), x = i[g ? p === "floating" ? "reference" : "floating" : p], y = Gt(await a.getClippingRect({
|
|
5814
5821
|
element: (r = await (a.isElement == null ? void 0 : a.isElement(x))) == null || r ? x : x.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
|
|
5815
5822
|
boundary: u,
|
|
5816
5823
|
rootBoundary: f,
|
|
@@ -5857,7 +5864,7 @@ const id = (e) => ({
|
|
|
5857
5864
|
} = Re(e, t) || {};
|
|
5858
5865
|
if (u == null)
|
|
5859
5866
|
return {};
|
|
5860
|
-
const p =
|
|
5867
|
+
const p = Wa(f), g = {
|
|
5861
5868
|
x: r,
|
|
5862
5869
|
y: n
|
|
5863
5870
|
}, h = dn(o), v = un(h), m = await s.getDimensions(u), x = h === "y", y = x ? "top" : "left", b = x ? "bottom" : "right", w = x ? "clientHeight" : "clientWidth", C = a.reference[v] + a.reference[h] - g[h] - a.floating[v], k = g[h] - a.reference[h], N = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
@@ -6010,13 +6017,13 @@ const cd = function(e) {
|
|
|
6010
6017
|
}
|
|
6011
6018
|
}
|
|
6012
6019
|
};
|
|
6013
|
-
},
|
|
6020
|
+
}, Ha = /* @__PURE__ */ new Set(["left", "top"]);
|
|
6014
6021
|
async function ud(e, t) {
|
|
6015
6022
|
const {
|
|
6016
6023
|
placement: r,
|
|
6017
6024
|
platform: n,
|
|
6018
6025
|
elements: o
|
|
6019
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Pe(r), i = st(r), c = be(r) === "y", u =
|
|
6026
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Pe(r), i = st(r), c = be(r) === "y", u = Ha.has(s) ? -1 : 1, f = a && c ? -1 : 1, p = Re(t, e);
|
|
6020
6027
|
let {
|
|
6021
6028
|
mainAxis: g,
|
|
6022
6029
|
crossAxis: h,
|
|
@@ -6149,7 +6156,7 @@ const dd = function(e) {
|
|
|
6149
6156
|
}
|
|
6150
6157
|
if (u) {
|
|
6151
6158
|
var y, b;
|
|
6152
|
-
const w = g === "y" ? "width" : "height", C =
|
|
6159
|
+
const w = g === "y" ? "width" : "height", C = Ha.has(Pe(o)), k = a.reference[p] - a.floating[w] + (C && ((y = s.offset) == null ? void 0 : y[p]) || 0) + (C ? 0 : x.crossAxis), N = a.reference[p] + a.reference[w] + (C ? 0 : ((b = s.offset) == null ? void 0 : b[p]) || 0) - (C ? x.crossAxis : 0);
|
|
6153
6160
|
v < k ? v = k : v > N && (v = N);
|
|
6154
6161
|
}
|
|
6155
6162
|
return {
|
|
@@ -6203,7 +6210,7 @@ function tr() {
|
|
|
6203
6210
|
return typeof window < "u";
|
|
6204
6211
|
}
|
|
6205
6212
|
function it(e) {
|
|
6206
|
-
return
|
|
6213
|
+
return Ga(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6207
6214
|
}
|
|
6208
6215
|
function ue(e) {
|
|
6209
6216
|
var t;
|
|
@@ -6211,9 +6218,9 @@ function ue(e) {
|
|
|
6211
6218
|
}
|
|
6212
6219
|
function Ce(e) {
|
|
6213
6220
|
var t;
|
|
6214
|
-
return (t = (
|
|
6221
|
+
return (t = (Ga(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6215
6222
|
}
|
|
6216
|
-
function
|
|
6223
|
+
function Ga(e) {
|
|
6217
6224
|
return tr() ? e instanceof Node || e instanceof ue(e).Node : !1;
|
|
6218
6225
|
}
|
|
6219
6226
|
function pe(e) {
|
|
@@ -6296,14 +6303,14 @@ function Ie(e) {
|
|
|
6296
6303
|
);
|
|
6297
6304
|
return to(t) ? t.host : t;
|
|
6298
6305
|
}
|
|
6299
|
-
function
|
|
6306
|
+
function Ua(e) {
|
|
6300
6307
|
const t = Ie(e);
|
|
6301
|
-
return tt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : we(t) && Et(t) ? t :
|
|
6308
|
+
return tt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : we(t) && Et(t) ? t : Ua(t);
|
|
6302
6309
|
}
|
|
6303
6310
|
function bt(e, t, r) {
|
|
6304
6311
|
var n;
|
|
6305
6312
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
6306
|
-
const o =
|
|
6313
|
+
const o = Ua(e), a = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ue(o);
|
|
6307
6314
|
if (a) {
|
|
6308
6315
|
const i = Vr(s);
|
|
6309
6316
|
return t.concat(s, s.visualViewport || [], Et(o) ? o : [], i && r ? bt(i) : []);
|
|
@@ -6313,7 +6320,7 @@ function bt(e, t, r) {
|
|
|
6313
6320
|
function Vr(e) {
|
|
6314
6321
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
6315
6322
|
}
|
|
6316
|
-
function
|
|
6323
|
+
function Ka(e) {
|
|
6317
6324
|
const t = me(e);
|
|
6318
6325
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
6319
6326
|
const o = we(e), a = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, i = Wt(r) !== a || Wt(n) !== s;
|
|
@@ -6334,7 +6341,7 @@ function et(e) {
|
|
|
6334
6341
|
width: n,
|
|
6335
6342
|
height: o,
|
|
6336
6343
|
$: a
|
|
6337
|
-
} =
|
|
6344
|
+
} = Ka(t);
|
|
6338
6345
|
let s = (a ? Wt(r.width) : r.width) / n, i = (a ? Wt(r.height) : r.height) / o;
|
|
6339
6346
|
return (!s || !Number.isFinite(s)) && (s = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
6340
6347
|
x: s,
|
|
@@ -6342,7 +6349,7 @@ function et(e) {
|
|
|
6342
6349
|
};
|
|
6343
6350
|
}
|
|
6344
6351
|
const Ed = /* @__PURE__ */ ye(0);
|
|
6345
|
-
function
|
|
6352
|
+
function Ya(e) {
|
|
6346
6353
|
const t = ue(e);
|
|
6347
6354
|
return !pn() || !t.visualViewport ? Ed : {
|
|
6348
6355
|
x: t.visualViewport.offsetLeft,
|
|
@@ -6357,7 +6364,7 @@ function We(e, t, r, n) {
|
|
|
6357
6364
|
const o = e.getBoundingClientRect(), a = mn(e);
|
|
6358
6365
|
let s = ye(1);
|
|
6359
6366
|
t && (n ? pe(n) && (s = et(n)) : s = et(e));
|
|
6360
|
-
const i = kd(a, r, n) ?
|
|
6367
|
+
const i = kd(a, r, n) ? Ya(a) : ye(0);
|
|
6361
6368
|
let c = (o.left + i.x) / s.x, u = (o.top + i.y) / s.y, f = o.width / s.x, p = o.height / s.y;
|
|
6362
6369
|
if (a) {
|
|
6363
6370
|
const g = ue(a), h = n && pe(n) ? ue(n) : n;
|
|
@@ -6378,7 +6385,7 @@ function or(e, t) {
|
|
|
6378
6385
|
const r = nr(e).scrollLeft;
|
|
6379
6386
|
return t ? t.left + r : We(Ce(e)).left + r;
|
|
6380
6387
|
}
|
|
6381
|
-
function
|
|
6388
|
+
function qa(e, t) {
|
|
6382
6389
|
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - or(e, r), o = r.top + t.scrollTop;
|
|
6383
6390
|
return {
|
|
6384
6391
|
x: n,
|
|
@@ -6404,7 +6411,7 @@ function Rd(e) {
|
|
|
6404
6411
|
const h = We(n);
|
|
6405
6412
|
u = et(n), f.x = h.x + n.clientLeft, f.y = h.y + n.clientTop;
|
|
6406
6413
|
}
|
|
6407
|
-
const g = s && !p && !a ?
|
|
6414
|
+
const g = s && !p && !a ? qa(s, c) : ye(0);
|
|
6408
6415
|
return {
|
|
6409
6416
|
width: r.width * u.x,
|
|
6410
6417
|
height: r.height * u.y,
|
|
@@ -6466,7 +6473,7 @@ function no(e, t, r) {
|
|
|
6466
6473
|
else if (pe(t))
|
|
6467
6474
|
n = Td(t, r);
|
|
6468
6475
|
else {
|
|
6469
|
-
const o =
|
|
6476
|
+
const o = Ya(e);
|
|
6470
6477
|
n = {
|
|
6471
6478
|
x: t.x - o.x,
|
|
6472
6479
|
y: t.y - o.y,
|
|
@@ -6476,9 +6483,9 @@ function no(e, t, r) {
|
|
|
6476
6483
|
}
|
|
6477
6484
|
return Gt(n);
|
|
6478
6485
|
}
|
|
6479
|
-
function
|
|
6486
|
+
function Xa(e, t) {
|
|
6480
6487
|
const r = Ie(e);
|
|
6481
|
-
return r === t || !pe(r) || tt(r) ? !1 : me(r).position === "fixed" ||
|
|
6488
|
+
return r === t || !pe(r) || tt(r) ? !1 : me(r).position === "fixed" || Xa(r, t);
|
|
6482
6489
|
}
|
|
6483
6490
|
function Od(e, t) {
|
|
6484
6491
|
const r = t.get(e);
|
|
@@ -6489,7 +6496,7 @@ function Od(e, t) {
|
|
|
6489
6496
|
let s = a ? Ie(e) : e;
|
|
6490
6497
|
for (; pe(s) && !tt(s); ) {
|
|
6491
6498
|
const i = me(s), c = fn(s);
|
|
6492
|
-
!c && i.position === "fixed" && (o = null), (a ? !c && !o : !c && i.position === "static" && !!o && Nd.has(o.position) || Et(s) && !c &&
|
|
6499
|
+
!c && i.position === "fixed" && (o = null), (a ? !c && !o : !c && i.position === "static" && !!o && Nd.has(o.position) || Et(s) && !c && Xa(e, s)) ? n = n.filter((f) => f !== s) : o = i, s = Ie(s);
|
|
6493
6500
|
}
|
|
6494
6501
|
return t.set(e, n), n;
|
|
6495
6502
|
}
|
|
@@ -6515,7 +6522,7 @@ function jd(e) {
|
|
|
6515
6522
|
const {
|
|
6516
6523
|
width: t,
|
|
6517
6524
|
height: r
|
|
6518
|
-
} =
|
|
6525
|
+
} = Ka(e);
|
|
6519
6526
|
return {
|
|
6520
6527
|
width: t,
|
|
6521
6528
|
height: r
|
|
@@ -6537,7 +6544,7 @@ function Md(e, t, r) {
|
|
|
6537
6544
|
c.x = h.x + t.clientLeft, c.y = h.y + t.clientTop;
|
|
6538
6545
|
} else o && u();
|
|
6539
6546
|
a && !n && o && u();
|
|
6540
|
-
const f = o && !n && !a ?
|
|
6547
|
+
const f = o && !n && !a ? qa(o, i) : ye(0), p = s.left + i.scrollLeft - c.x - f.x, g = s.top + i.scrollTop - c.y - f.y;
|
|
6541
6548
|
return {
|
|
6542
6549
|
x: p,
|
|
6543
6550
|
y: g,
|
|
@@ -6556,7 +6563,7 @@ function oo(e, t) {
|
|
|
6556
6563
|
let r = e.offsetParent;
|
|
6557
6564
|
return Ce(e) === r && (r = r.ownerDocument.body), r;
|
|
6558
6565
|
}
|
|
6559
|
-
function
|
|
6566
|
+
function Za(e, t) {
|
|
6560
6567
|
const r = ue(e);
|
|
6561
6568
|
if (rr(e))
|
|
6562
6569
|
return r;
|
|
@@ -6575,7 +6582,7 @@ function Xa(e, t) {
|
|
|
6575
6582
|
return n && tt(n) && Cr(n) && !fn(n) ? r : n || Sd(e) || r;
|
|
6576
6583
|
}
|
|
6577
6584
|
const Dd = async function(e) {
|
|
6578
|
-
const t = this.getOffsetParent ||
|
|
6585
|
+
const t = this.getOffsetParent || Za, r = this.getDimensions, n = await r(e.floating);
|
|
6579
6586
|
return {
|
|
6580
6587
|
reference: Md(e.reference, await t(e.floating), e.strategy),
|
|
6581
6588
|
floating: {
|
|
@@ -6593,7 +6600,7 @@ const Fd = {
|
|
|
6593
6600
|
convertOffsetParentRelativeRectToViewportRelativeRect: Rd,
|
|
6594
6601
|
getDocumentElement: Ce,
|
|
6595
6602
|
getClippingRect: Id,
|
|
6596
|
-
getOffsetParent:
|
|
6603
|
+
getOffsetParent: Za,
|
|
6597
6604
|
getElementRects: Dd,
|
|
6598
6605
|
getClientRects: Pd,
|
|
6599
6606
|
getDimensions: jd,
|
|
@@ -6601,7 +6608,7 @@ const Fd = {
|
|
|
6601
6608
|
isElement: pe,
|
|
6602
6609
|
isRTL: Ld
|
|
6603
6610
|
};
|
|
6604
|
-
function
|
|
6611
|
+
function Ja(e, t) {
|
|
6605
6612
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
6606
6613
|
}
|
|
6607
6614
|
function $d(e, t) {
|
|
@@ -6635,7 +6642,7 @@ function $d(e, t) {
|
|
|
6635
6642
|
s(!1, 1e-7);
|
|
6636
6643
|
}, 1e3);
|
|
6637
6644
|
}
|
|
6638
|
-
R === 1 && !
|
|
6645
|
+
R === 1 && !Ja(u, e.getBoundingClientRect()) && s(), C = !1;
|
|
6639
6646
|
}
|
|
6640
6647
|
try {
|
|
6641
6648
|
r = new IntersectionObserver(k, {
|
|
@@ -6677,7 +6684,7 @@ function Vd(e, t, r, n) {
|
|
|
6677
6684
|
c && x();
|
|
6678
6685
|
function x() {
|
|
6679
6686
|
const y = We(e);
|
|
6680
|
-
m && !
|
|
6687
|
+
m && !Ja(m, y) && r(), m = y, v = requestAnimationFrame(x);
|
|
6681
6688
|
}
|
|
6682
6689
|
return r(), () => {
|
|
6683
6690
|
var y;
|
|
@@ -6700,7 +6707,7 @@ const zd = dd, Bd = fd, Wd = ld, Hd = md, Gd = cd, ao = id, Ud = pd, Kd = (e, t,
|
|
|
6700
6707
|
});
|
|
6701
6708
|
};
|
|
6702
6709
|
var Yd = typeof document < "u", qd = function() {
|
|
6703
|
-
}, Vt = Yd ?
|
|
6710
|
+
}, Vt = Yd ? Si : qd;
|
|
6704
6711
|
function Ut(e, t) {
|
|
6705
6712
|
if (e === t)
|
|
6706
6713
|
return !0;
|
|
@@ -6731,11 +6738,11 @@ function Ut(e, t) {
|
|
|
6731
6738
|
}
|
|
6732
6739
|
return e !== e && t !== t;
|
|
6733
6740
|
}
|
|
6734
|
-
function
|
|
6741
|
+
function Qa(e) {
|
|
6735
6742
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
6736
6743
|
}
|
|
6737
6744
|
function so(e, t) {
|
|
6738
|
-
const r =
|
|
6745
|
+
const r = Qa(e);
|
|
6739
6746
|
return Math.round(t * r) / r;
|
|
6740
6747
|
}
|
|
6741
6748
|
function Er(e) {
|
|
@@ -6829,7 +6836,7 @@ function Xd(e) {
|
|
|
6829
6836
|
return i ? {
|
|
6830
6837
|
...A,
|
|
6831
6838
|
transform: "translate(" + ee + "px, " + E + "px)",
|
|
6832
|
-
...
|
|
6839
|
+
...Qa(D.floating) >= 1.5 && {
|
|
6833
6840
|
willChange: "transform"
|
|
6834
6841
|
}
|
|
6835
6842
|
} : {
|
|
@@ -6889,7 +6896,7 @@ const Zd = (e) => {
|
|
|
6889
6896
|
...Zd(e),
|
|
6890
6897
|
options: [e, t]
|
|
6891
6898
|
});
|
|
6892
|
-
var af = "Arrow",
|
|
6899
|
+
var af = "Arrow", es = l.forwardRef((e, t) => {
|
|
6893
6900
|
const { children: r, width: n = 10, height: o = 5, ...a } = e;
|
|
6894
6901
|
return /* @__PURE__ */ d.jsx(
|
|
6895
6902
|
V.svg,
|
|
@@ -6904,23 +6911,23 @@ var af = "Arrow", Qa = l.forwardRef((e, t) => {
|
|
|
6904
6911
|
}
|
|
6905
6912
|
);
|
|
6906
6913
|
});
|
|
6907
|
-
|
|
6908
|
-
var sf =
|
|
6914
|
+
es.displayName = af;
|
|
6915
|
+
var sf = es, hn = "Popper", [ts, lt] = Se(hn), [lf, rs] = ts(hn), ns = (e) => {
|
|
6909
6916
|
const { __scopePopper: t, children: r } = e, [n, o] = l.useState(null);
|
|
6910
6917
|
return /* @__PURE__ */ d.jsx(lf, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
6911
6918
|
};
|
|
6912
|
-
|
|
6913
|
-
var
|
|
6919
|
+
ns.displayName = hn;
|
|
6920
|
+
var os = "PopperAnchor", as = l.forwardRef(
|
|
6914
6921
|
(e, t) => {
|
|
6915
|
-
const { __scopePopper: r, virtualRef: n, ...o } = e, a =
|
|
6922
|
+
const { __scopePopper: r, virtualRef: n, ...o } = e, a = rs(os, r), s = l.useRef(null), i = ne(t, s), c = l.useRef(null);
|
|
6916
6923
|
return l.useEffect(() => {
|
|
6917
6924
|
const u = c.current;
|
|
6918
6925
|
c.current = (n == null ? void 0 : n.current) || s.current, u !== c.current && a.onAnchorChange(c.current);
|
|
6919
6926
|
}), n ? null : /* @__PURE__ */ d.jsx(V.div, { ...o, ref: i });
|
|
6920
6927
|
}
|
|
6921
6928
|
);
|
|
6922
|
-
|
|
6923
|
-
var gn = "PopperContent", [cf, uf] =
|
|
6929
|
+
as.displayName = os;
|
|
6930
|
+
var gn = "PopperContent", [cf, uf] = ts(gn), ss = l.forwardRef(
|
|
6924
6931
|
(e, t) => {
|
|
6925
6932
|
var _, L, G, X, te, re;
|
|
6926
6933
|
const {
|
|
@@ -6938,7 +6945,7 @@ var gn = "PopperContent", [cf, uf] = es(gn), as = l.forwardRef(
|
|
|
6938
6945
|
updatePositionStrategy: h = "optimized",
|
|
6939
6946
|
onPlaced: v,
|
|
6940
6947
|
...m
|
|
6941
|
-
} = e, x =
|
|
6948
|
+
} = e, x = rs(gn, r), [y, b] = l.useState(null), w = ne(t, (le) => b(le)), [C, k] = l.useState(null), N = Go(C), R = (N == null ? void 0 : N.width) ?? 0, P = (N == null ? void 0 : N.height) ?? 0, B = n + (a !== "center" ? "-" + a : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, q = Array.isArray(u) ? u : [u], Z = q.length > 0, Q = {
|
|
6942
6949
|
padding: U,
|
|
6943
6950
|
boundary: q.filter(ff),
|
|
6944
6951
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6965,15 +6972,15 @@ var gn = "PopperContent", [cf, uf] = es(gn), as = l.forwardRef(
|
|
|
6965
6972
|
rf({
|
|
6966
6973
|
...Q,
|
|
6967
6974
|
apply: ({ elements: le, rects: ge, availableWidth: ut, availableHeight: dt }) => {
|
|
6968
|
-
const { width: ft, height:
|
|
6969
|
-
_t.setProperty("--radix-popper-available-width", `${ut}px`), _t.setProperty("--radix-popper-available-height", `${dt}px`), _t.setProperty("--radix-popper-anchor-width", `${ft}px`), _t.setProperty("--radix-popper-anchor-height", `${
|
|
6975
|
+
const { width: ft, height: wi } = ge.reference, _t = le.floating.style;
|
|
6976
|
+
_t.setProperty("--radix-popper-available-width", `${ut}px`), _t.setProperty("--radix-popper-available-height", `${dt}px`), _t.setProperty("--radix-popper-anchor-width", `${ft}px`), _t.setProperty("--radix-popper-anchor-height", `${wi}px`);
|
|
6970
6977
|
}
|
|
6971
6978
|
}),
|
|
6972
6979
|
C && of({ element: C, padding: i }),
|
|
6973
6980
|
pf({ arrowWidth: R, arrowHeight: P }),
|
|
6974
6981
|
g && nf({ strategy: "referenceHidden", ...Q })
|
|
6975
6982
|
]
|
|
6976
|
-
}), [ee, E] =
|
|
6983
|
+
}), [ee, E] = cs(D), F = ke(v);
|
|
6977
6984
|
ae(() => {
|
|
6978
6985
|
H && (F == null || F());
|
|
6979
6986
|
}, [H, F]);
|
|
@@ -7034,14 +7041,14 @@ var gn = "PopperContent", [cf, uf] = es(gn), as = l.forwardRef(
|
|
|
7034
7041
|
);
|
|
7035
7042
|
}
|
|
7036
7043
|
);
|
|
7037
|
-
|
|
7038
|
-
var
|
|
7044
|
+
ss.displayName = gn;
|
|
7045
|
+
var is = "PopperArrow", df = {
|
|
7039
7046
|
top: "bottom",
|
|
7040
7047
|
right: "left",
|
|
7041
7048
|
bottom: "top",
|
|
7042
7049
|
left: "right"
|
|
7043
|
-
},
|
|
7044
|
-
const { __scopePopper: n, ...o } = t, a = uf(
|
|
7050
|
+
}, ls = l.forwardRef(function(t, r) {
|
|
7051
|
+
const { __scopePopper: n, ...o } = t, a = uf(is, n), s = df[a.placedSide];
|
|
7045
7052
|
return (
|
|
7046
7053
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
7047
7054
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -7085,7 +7092,7 @@ var ss = "PopperArrow", df = {
|
|
|
7085
7092
|
)
|
|
7086
7093
|
);
|
|
7087
7094
|
});
|
|
7088
|
-
|
|
7095
|
+
ls.displayName = is;
|
|
7089
7096
|
function ff(e) {
|
|
7090
7097
|
return e !== null;
|
|
7091
7098
|
}
|
|
@@ -7094,16 +7101,16 @@ var pf = (e) => ({
|
|
|
7094
7101
|
options: e,
|
|
7095
7102
|
fn(t) {
|
|
7096
7103
|
var x, y, b;
|
|
7097
|
-
const { placement: r, rects: n, middlewareData: o } = t, s = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [u, f] =
|
|
7104
|
+
const { placement: r, rects: n, middlewareData: o } = t, s = ((x = o.arrow) == null ? void 0 : x.centerOffset) !== 0, i = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [u, f] = cs(r), p = { start: "0%", center: "50%", end: "100%" }[f], g = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + i / 2, h = (((b = o.arrow) == null ? void 0 : b.y) ?? 0) + c / 2;
|
|
7098
7105
|
let v = "", m = "";
|
|
7099
7106
|
return u === "bottom" ? (v = s ? p : `${g}px`, m = `${-c}px`) : u === "top" ? (v = s ? p : `${g}px`, m = `${n.floating.height + c}px`) : u === "right" ? (v = `${-c}px`, m = s ? p : `${h}px`) : u === "left" && (v = `${n.floating.width + c}px`, m = s ? p : `${h}px`), { data: { x: v, y: m } };
|
|
7100
7107
|
}
|
|
7101
7108
|
});
|
|
7102
|
-
function
|
|
7109
|
+
function cs(e) {
|
|
7103
7110
|
const [t, r = "center"] = e.split("-");
|
|
7104
7111
|
return [t, r];
|
|
7105
7112
|
}
|
|
7106
|
-
var vn =
|
|
7113
|
+
var vn = ns, ar = as, xn = ss, bn = ls, us = Object.freeze({
|
|
7107
7114
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
7108
7115
|
position: "absolute",
|
|
7109
7116
|
border: 0,
|
|
@@ -7115,20 +7122,20 @@ var vn = rs, ar = os, xn = as, bn = is, cs = Object.freeze({
|
|
|
7115
7122
|
clip: "rect(0, 0, 0, 0)",
|
|
7116
7123
|
whiteSpace: "nowrap",
|
|
7117
7124
|
wordWrap: "normal"
|
|
7118
|
-
}), mf = "VisuallyHidden",
|
|
7125
|
+
}), mf = "VisuallyHidden", ds = l.forwardRef(
|
|
7119
7126
|
(e, t) => /* @__PURE__ */ d.jsx(
|
|
7120
7127
|
V.span,
|
|
7121
7128
|
{
|
|
7122
7129
|
...e,
|
|
7123
7130
|
ref: t,
|
|
7124
|
-
style: { ...
|
|
7131
|
+
style: { ...us, ...e.style }
|
|
7125
7132
|
}
|
|
7126
7133
|
)
|
|
7127
7134
|
);
|
|
7128
|
-
|
|
7129
|
-
var hf =
|
|
7135
|
+
ds.displayName = mf;
|
|
7136
|
+
var hf = ds, [sr, oh] = Se("Tooltip", [
|
|
7130
7137
|
lt
|
|
7131
|
-
]), ir = lt(),
|
|
7138
|
+
]), ir = lt(), fs = "TooltipProvider", gf = 700, zr = "tooltip.open", [vf, yn] = sr(fs), ps = (e) => {
|
|
7132
7139
|
const {
|
|
7133
7140
|
__scopeTooltip: t,
|
|
7134
7141
|
delayDuration: r = gf,
|
|
@@ -7163,8 +7170,8 @@ var hf = us, [sr, oh] = Se("Tooltip", [
|
|
|
7163
7170
|
}
|
|
7164
7171
|
);
|
|
7165
7172
|
};
|
|
7166
|
-
|
|
7167
|
-
var yt = "Tooltip", [xf, kt] = sr(yt),
|
|
7173
|
+
ps.displayName = fs;
|
|
7174
|
+
var yt = "Tooltip", [xf, kt] = sr(yt), ms = (e) => {
|
|
7168
7175
|
const {
|
|
7169
7176
|
__scopeTooltip: t,
|
|
7170
7177
|
children: r,
|
|
@@ -7213,8 +7220,8 @@ var yt = "Tooltip", [xf, kt] = sr(yt), ps = (e) => {
|
|
|
7213
7220
|
}
|
|
7214
7221
|
) });
|
|
7215
7222
|
};
|
|
7216
|
-
|
|
7217
|
-
var Br = "TooltipTrigger",
|
|
7223
|
+
ms.displayName = yt;
|
|
7224
|
+
var Br = "TooltipTrigger", hs = l.forwardRef(
|
|
7218
7225
|
(e, t) => {
|
|
7219
7226
|
const { __scopeTooltip: r, ...n } = e, o = kt(Br, r), a = yn(Br, r), s = ir(r), i = l.useRef(null), c = ne(t, i, o.onTriggerChange), u = l.useRef(!1), f = l.useRef(!1), p = l.useCallback(() => u.current = !1, []);
|
|
7220
7227
|
return l.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ d.jsx(ar, { asChild: !0, ...s, children: /* @__PURE__ */ d.jsx(
|
|
@@ -7242,18 +7249,18 @@ var Br = "TooltipTrigger", ms = l.forwardRef(
|
|
|
7242
7249
|
) });
|
|
7243
7250
|
}
|
|
7244
7251
|
);
|
|
7245
|
-
|
|
7252
|
+
hs.displayName = Br;
|
|
7246
7253
|
var wn = "TooltipPortal", [bf, yf] = sr(wn, {
|
|
7247
7254
|
forceMount: void 0
|
|
7248
|
-
}),
|
|
7255
|
+
}), gs = (e) => {
|
|
7249
7256
|
const { __scopeTooltip: t, forceMount: r, children: n, container: o } = e, a = kt(wn, t);
|
|
7250
7257
|
return /* @__PURE__ */ d.jsx(bf, { scope: t, forceMount: r, children: /* @__PURE__ */ d.jsx(Ae, { present: r || a.open, children: /* @__PURE__ */ d.jsx(Ct, { asChild: !0, container: o, children: n }) }) });
|
|
7251
7258
|
};
|
|
7252
|
-
|
|
7253
|
-
var rt = "TooltipContent",
|
|
7259
|
+
gs.displayName = wn;
|
|
7260
|
+
var rt = "TooltipContent", vs = l.forwardRef(
|
|
7254
7261
|
(e, t) => {
|
|
7255
7262
|
const r = yf(rt, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, s = kt(rt, e.__scopeTooltip);
|
|
7256
|
-
return /* @__PURE__ */ d.jsx(Ae, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ d.jsx(
|
|
7263
|
+
return /* @__PURE__ */ d.jsx(Ae, { present: n || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ d.jsx(xs, { side: o, ...a, ref: t }) : /* @__PURE__ */ d.jsx(wf, { side: o, ...a, ref: t }) });
|
|
7257
7264
|
}
|
|
7258
7265
|
), wf = l.forwardRef((e, t) => {
|
|
7259
7266
|
const r = kt(rt, e.__scopeTooltip), n = yn(rt, e.__scopeTooltip), o = l.useRef(null), a = ne(t, o), [s, i] = l.useState(null), { trigger: c, onClose: u } = r, f = o.current, { onPointerInTransitChange: p } = n, g = l.useCallback(() => {
|
|
@@ -7280,8 +7287,8 @@ var rt = "TooltipContent", gs = l.forwardRef(
|
|
|
7280
7287
|
};
|
|
7281
7288
|
return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
|
|
7282
7289
|
}
|
|
7283
|
-
}, [c, f, s, u, g]), /* @__PURE__ */ d.jsx(
|
|
7284
|
-
}), [Sf, Cf] = sr(yt, { isInside: !1 }), Ef = /* @__PURE__ */
|
|
7290
|
+
}, [c, f, s, u, g]), /* @__PURE__ */ d.jsx(xs, { ...e, ref: a });
|
|
7291
|
+
}), [Sf, Cf] = sr(yt, { isInside: !1 }), Ef = /* @__PURE__ */ _i("TooltipContent"), xs = l.forwardRef(
|
|
7285
7292
|
(e, t) => {
|
|
7286
7293
|
const {
|
|
7287
7294
|
__scopeTooltip: r,
|
|
@@ -7333,17 +7340,17 @@ var rt = "TooltipContent", gs = l.forwardRef(
|
|
|
7333
7340
|
);
|
|
7334
7341
|
}
|
|
7335
7342
|
);
|
|
7336
|
-
|
|
7337
|
-
var
|
|
7343
|
+
vs.displayName = rt;
|
|
7344
|
+
var bs = "TooltipArrow", ys = l.forwardRef(
|
|
7338
7345
|
(e, t) => {
|
|
7339
7346
|
const { __scopeTooltip: r, ...n } = e, o = ir(r);
|
|
7340
7347
|
return Cf(
|
|
7341
|
-
|
|
7348
|
+
bs,
|
|
7342
7349
|
r
|
|
7343
7350
|
).isInside ? null : /* @__PURE__ */ d.jsx(bn, { ...o, ...n, ref: t });
|
|
7344
7351
|
}
|
|
7345
7352
|
);
|
|
7346
|
-
|
|
7353
|
+
ys.displayName = bs;
|
|
7347
7354
|
function kf(e, t) {
|
|
7348
7355
|
const r = Math.abs(t.top - e.y), n = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
7349
7356
|
switch (Math.min(r, n, o, a)) {
|
|
@@ -7436,7 +7443,7 @@ function Nf(e) {
|
|
|
7436
7443
|
}
|
|
7437
7444
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
7438
7445
|
}
|
|
7439
|
-
var Tf =
|
|
7446
|
+
var Tf = ps, Of = ms, If = hs, jf = gs, Mf = vs, Df = ys;
|
|
7440
7447
|
function Lf({
|
|
7441
7448
|
delayDuration: e = 0,
|
|
7442
7449
|
...t
|
|
@@ -7578,7 +7585,7 @@ const Ff = de(
|
|
|
7578
7585
|
isValid: /\d/.test(p)
|
|
7579
7586
|
}
|
|
7580
7587
|
])(s), f = u.every((p) => p.isValid);
|
|
7581
|
-
return
|
|
7588
|
+
return Ci(() => {
|
|
7582
7589
|
t && t(f, u);
|
|
7583
7590
|
}, [s, f, u, t]), /* @__PURE__ */ d.jsx("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col gap-2 w-full max-w-sm", children: [
|
|
7584
7591
|
/* @__PURE__ */ d.jsxs("div", { className: "flex justify-between items-center", children: [
|
|
@@ -7605,13 +7612,13 @@ const Ff = de(
|
|
|
7605
7612
|
type: "button",
|
|
7606
7613
|
onClick: () => a(!o),
|
|
7607
7614
|
className: "p-1 text-neutral-0 hover:text-text-neutral-0",
|
|
7608
|
-
children: o ? /* @__PURE__ */ d.jsx(
|
|
7615
|
+
children: o ? /* @__PURE__ */ d.jsx(ju, { size: 18, className: "text-neutral-black-2" }) : /* @__PURE__ */ d.jsx(Du, { size: 18, className: "text-neutral-black-2" })
|
|
7609
7616
|
}
|
|
7610
7617
|
)
|
|
7611
7618
|
}
|
|
7612
7619
|
),
|
|
7613
7620
|
/* @__PURE__ */ d.jsx("div", { className: "grid grid-cols-2 gap-y-1 text-xs mt-3", children: u.map((p, g) => /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
7614
|
-
p.isValid ? /* @__PURE__ */ d.jsx(
|
|
7621
|
+
p.isValid ? /* @__PURE__ */ d.jsx(Nu, { size: 14, className: "text-success-d" }) : /* @__PURE__ */ d.jsx(Ou, { size: 14, className: "text-stroke" }),
|
|
7615
7622
|
/* @__PURE__ */ d.jsx("span", { className: p.isValid ? "text-success-d" : "text-input", children: p.label })
|
|
7616
7623
|
] }, g)) })
|
|
7617
7624
|
] }) });
|
|
@@ -7636,7 +7643,7 @@ function io(e, [t, r]) {
|
|
|
7636
7643
|
var $f = [" ", "Enter", "ArrowUp", "ArrowDown"], Vf = [" ", "Enter"], He = "Select", [lr, cr, zf] = Fo(He), [ct, dh] = Se(He, [
|
|
7637
7644
|
zf,
|
|
7638
7645
|
lt
|
|
7639
|
-
]), ur = lt(), [Bf, Me] = ct(He), [Wf, Hf] = ct(He),
|
|
7646
|
+
]), ur = lt(), [Bf, Me] = ct(He), [Wf, Hf] = ct(He), ws = (e) => {
|
|
7640
7647
|
const {
|
|
7641
7648
|
__scopeSelect: t,
|
|
7642
7649
|
children: r,
|
|
@@ -7700,7 +7707,7 @@ var $f = [" ", "Enter", "ArrowUp", "ArrowDown"], Vf = [" ", "Enter"], He = "Sele
|
|
|
7700
7707
|
}
|
|
7701
7708
|
) }),
|
|
7702
7709
|
Z ? /* @__PURE__ */ d.jsxs(
|
|
7703
|
-
|
|
7710
|
+
Gs,
|
|
7704
7711
|
{
|
|
7705
7712
|
"aria-hidden": !0,
|
|
7706
7713
|
required: h,
|
|
@@ -7722,11 +7729,11 @@ var $f = [" ", "Enter", "ArrowUp", "ArrowDown"], Vf = [" ", "Enter"], He = "Sele
|
|
|
7722
7729
|
}
|
|
7723
7730
|
) });
|
|
7724
7731
|
};
|
|
7725
|
-
|
|
7726
|
-
var
|
|
7732
|
+
ws.displayName = He;
|
|
7733
|
+
var Ss = "SelectTrigger", Cs = l.forwardRef(
|
|
7727
7734
|
(e, t) => {
|
|
7728
|
-
const { __scopeSelect: r, disabled: n = !1, ...o } = e, a = ur(r), s = Me(
|
|
7729
|
-
const x = u().filter((w) => !w.disabled), y = x.find((w) => w.value === s.value), b =
|
|
7735
|
+
const { __scopeSelect: r, disabled: n = !1, ...o } = e, a = ur(r), s = Me(Ss, r), i = s.disabled || n, c = ne(t, s.onTriggerChange), u = cr(r), f = l.useRef("touch"), [p, g, h] = Ks((m) => {
|
|
7736
|
+
const x = u().filter((w) => !w.disabled), y = x.find((w) => w.value === s.value), b = Ys(x, m, y);
|
|
7730
7737
|
b !== void 0 && s.onValueChange(b.value);
|
|
7731
7738
|
}), v = (m) => {
|
|
7732
7739
|
i || (s.onOpenChange(!0), h()), m && (s.triggerPointerDownPosRef.current = {
|
|
@@ -7747,7 +7754,7 @@ var ws = "SelectTrigger", Ss = l.forwardRef(
|
|
|
7747
7754
|
"data-state": s.open ? "open" : "closed",
|
|
7748
7755
|
disabled: i,
|
|
7749
7756
|
"data-disabled": i ? "" : void 0,
|
|
7750
|
-
"data-placeholder":
|
|
7757
|
+
"data-placeholder": Us(s.value) ? "" : void 0,
|
|
7751
7758
|
...o,
|
|
7752
7759
|
ref: c,
|
|
7753
7760
|
onClick: W(o.onClick, (m) => {
|
|
@@ -7766,10 +7773,10 @@ var ws = "SelectTrigger", Ss = l.forwardRef(
|
|
|
7766
7773
|
) });
|
|
7767
7774
|
}
|
|
7768
7775
|
);
|
|
7769
|
-
|
|
7770
|
-
var
|
|
7776
|
+
Cs.displayName = Ss;
|
|
7777
|
+
var Es = "SelectValue", ks = l.forwardRef(
|
|
7771
7778
|
(e, t) => {
|
|
7772
|
-
const { __scopeSelect: r, className: n, style: o, children: a, placeholder: s = "", ...i } = e, c = Me(
|
|
7779
|
+
const { __scopeSelect: r, className: n, style: o, children: a, placeholder: s = "", ...i } = e, c = Me(Es, r), { onValueNodeHasChildrenChange: u } = c, f = a !== void 0, p = ne(t, c.onValueNodeChange);
|
|
7773
7780
|
return ae(() => {
|
|
7774
7781
|
u(f);
|
|
7775
7782
|
}, [u, f]), /* @__PURE__ */ d.jsx(
|
|
@@ -7778,22 +7785,22 @@ var Cs = "SelectValue", Es = l.forwardRef(
|
|
|
7778
7785
|
...i,
|
|
7779
7786
|
ref: p,
|
|
7780
7787
|
style: { pointerEvents: "none" },
|
|
7781
|
-
children:
|
|
7788
|
+
children: Us(c.value) ? /* @__PURE__ */ d.jsx(d.Fragment, { children: s }) : a
|
|
7782
7789
|
}
|
|
7783
7790
|
);
|
|
7784
7791
|
}
|
|
7785
7792
|
);
|
|
7786
|
-
|
|
7787
|
-
var Gf = "SelectIcon",
|
|
7793
|
+
ks.displayName = Es;
|
|
7794
|
+
var Gf = "SelectIcon", Rs = l.forwardRef(
|
|
7788
7795
|
(e, t) => {
|
|
7789
7796
|
const { __scopeSelect: r, children: n, ...o } = e;
|
|
7790
7797
|
return /* @__PURE__ */ d.jsx(V.span, { "aria-hidden": !0, ...o, ref: t, children: n || "▼" });
|
|
7791
7798
|
}
|
|
7792
7799
|
);
|
|
7793
|
-
|
|
7794
|
-
var Uf = "SelectPortal",
|
|
7795
|
-
|
|
7796
|
-
var Ge = "SelectContent",
|
|
7800
|
+
Rs.displayName = Gf;
|
|
7801
|
+
var Uf = "SelectPortal", Ps = (e) => /* @__PURE__ */ d.jsx(Ct, { asChild: !0, ...e });
|
|
7802
|
+
Ps.displayName = Uf;
|
|
7803
|
+
var Ge = "SelectContent", As = l.forwardRef(
|
|
7797
7804
|
(e, t) => {
|
|
7798
7805
|
const r = Me(Ge, e.__scopeSelect), [n, o] = l.useState();
|
|
7799
7806
|
if (ae(() => {
|
|
@@ -7801,15 +7808,15 @@ var Ge = "SelectContent", Ps = l.forwardRef(
|
|
|
7801
7808
|
}, []), !r.open) {
|
|
7802
7809
|
const a = n;
|
|
7803
7810
|
return a ? qt.createPortal(
|
|
7804
|
-
/* @__PURE__ */ d.jsx(
|
|
7811
|
+
/* @__PURE__ */ d.jsx(_s, { scope: e.__scopeSelect, children: /* @__PURE__ */ d.jsx(lr.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ d.jsx("div", { children: e.children }) }) }),
|
|
7805
7812
|
a
|
|
7806
7813
|
) : null;
|
|
7807
7814
|
}
|
|
7808
|
-
return /* @__PURE__ */ d.jsx(
|
|
7815
|
+
return /* @__PURE__ */ d.jsx(Ns, { ...e, ref: t });
|
|
7809
7816
|
}
|
|
7810
7817
|
);
|
|
7811
|
-
|
|
7812
|
-
var fe = 10, [
|
|
7818
|
+
As.displayName = Ge;
|
|
7819
|
+
var fe = 10, [_s, De] = ct(Ge), Kf = "SelectContentImpl", Yf = /* @__PURE__ */ ze("SelectContent.RemoveScroll"), Ns = l.forwardRef(
|
|
7813
7820
|
(e, t) => {
|
|
7814
7821
|
const {
|
|
7815
7822
|
__scopeSelect: r,
|
|
@@ -7874,8 +7881,8 @@ var fe = 10, [As, De] = ct(Ge), Kf = "SelectContentImpl", Yf = /* @__PURE__ */ z
|
|
|
7874
7881
|
window.removeEventListener("blur", _), window.removeEventListener("resize", _);
|
|
7875
7882
|
};
|
|
7876
7883
|
}, [A]);
|
|
7877
|
-
const [E, F] =
|
|
7878
|
-
const L = Z().filter((te) => !te.disabled), G = L.find((te) => te.ref.current === document.activeElement), X =
|
|
7884
|
+
const [E, F] = Ks((_) => {
|
|
7885
|
+
const L = Z().filter((te) => !te.disabled), G = L.find((te) => te.ref.current === document.activeElement), X = Ys(L, _, G);
|
|
7879
7886
|
X && setTimeout(() => X.ref.current.focus());
|
|
7880
7887
|
}), S = l.useCallback(
|
|
7881
7888
|
(_, L, G) => {
|
|
@@ -7889,7 +7896,7 @@ var fe = 10, [As, De] = ct(Ge), Kf = "SelectContentImpl", Yf = /* @__PURE__ */ z
|
|
|
7889
7896
|
(b.value !== void 0 && b.value === L || X) && q(_);
|
|
7890
7897
|
},
|
|
7891
7898
|
[b.value]
|
|
7892
|
-
), O = n === "popper" ? Wr :
|
|
7899
|
+
), O = n === "popper" ? Wr : Ts, K = O === Wr ? {
|
|
7893
7900
|
side: i,
|
|
7894
7901
|
sideOffset: c,
|
|
7895
7902
|
align: u,
|
|
@@ -7902,7 +7909,7 @@ var fe = 10, [As, De] = ct(Ge), Kf = "SelectContentImpl", Yf = /* @__PURE__ */ z
|
|
|
7902
7909
|
avoidCollisions: x
|
|
7903
7910
|
} : {};
|
|
7904
7911
|
return /* @__PURE__ */ d.jsx(
|
|
7905
|
-
|
|
7912
|
+
_s,
|
|
7906
7913
|
{
|
|
7907
7914
|
scope: r,
|
|
7908
7915
|
content: w,
|
|
@@ -7979,8 +7986,8 @@ var fe = 10, [As, De] = ct(Ge), Kf = "SelectContentImpl", Yf = /* @__PURE__ */ z
|
|
|
7979
7986
|
);
|
|
7980
7987
|
}
|
|
7981
7988
|
);
|
|
7982
|
-
|
|
7983
|
-
var qf = "SelectItemAlignedPosition",
|
|
7989
|
+
Ns.displayName = Kf;
|
|
7990
|
+
var qf = "SelectItemAlignedPosition", Ts = l.forwardRef((e, t) => {
|
|
7984
7991
|
const { __scopeSelect: r, onPlaced: n, ...o } = e, a = Me(Ge, r), s = De(Ge, r), [i, c] = l.useState(null), [u, f] = l.useState(null), p = ne(t, (R) => f(R)), g = cr(r), h = l.useRef(!1), v = l.useRef(!0), { viewport: m, selectedItem: x, selectedItemText: y, focusSelectedItem: b } = s, w = l.useCallback(() => {
|
|
7985
7992
|
if (a.trigger && a.valueNode && i && u && m && x && y) {
|
|
7986
7993
|
const R = a.trigger.getBoundingClientRect(), P = u.getBoundingClientRect(), B = a.valueNode.getBoundingClientRect(), U = y.getBoundingClientRect();
|
|
@@ -8084,7 +8091,7 @@ var qf = "SelectItemAlignedPosition", Ns = l.forwardRef((e, t) => {
|
|
|
8084
8091
|
}
|
|
8085
8092
|
);
|
|
8086
8093
|
});
|
|
8087
|
-
|
|
8094
|
+
Ts.displayName = qf;
|
|
8088
8095
|
var Xf = "SelectPopperPosition", Wr = l.forwardRef((e, t) => {
|
|
8089
8096
|
const {
|
|
8090
8097
|
__scopeSelect: r,
|
|
@@ -8114,7 +8121,7 @@ var Xf = "SelectPopperPosition", Wr = l.forwardRef((e, t) => {
|
|
|
8114
8121
|
);
|
|
8115
8122
|
});
|
|
8116
8123
|
Wr.displayName = Xf;
|
|
8117
|
-
var [Zf, Cn] = ct(Ge, {}), Hr = "SelectViewport",
|
|
8124
|
+
var [Zf, Cn] = ct(Ge, {}), Hr = "SelectViewport", Os = l.forwardRef(
|
|
8118
8125
|
(e, t) => {
|
|
8119
8126
|
const { __scopeSelect: r, nonce: n, ...o } = e, a = De(Hr, r), s = Cn(Hr, r), i = ne(t, a.onViewportChange), c = l.useRef(0);
|
|
8120
8127
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
@@ -8166,22 +8173,22 @@ var [Zf, Cn] = ct(Ge, {}), Hr = "SelectViewport", Ts = l.forwardRef(
|
|
|
8166
8173
|
] });
|
|
8167
8174
|
}
|
|
8168
8175
|
);
|
|
8169
|
-
|
|
8170
|
-
var
|
|
8176
|
+
Os.displayName = Hr;
|
|
8177
|
+
var Is = "SelectGroup", [Jf, Qf] = ct(Is), js = l.forwardRef(
|
|
8171
8178
|
(e, t) => {
|
|
8172
8179
|
const { __scopeSelect: r, ...n } = e, o = se();
|
|
8173
8180
|
return /* @__PURE__ */ d.jsx(Jf, { scope: r, id: o, children: /* @__PURE__ */ d.jsx(V.div, { role: "group", "aria-labelledby": o, ...n, ref: t }) });
|
|
8174
8181
|
}
|
|
8175
8182
|
);
|
|
8176
|
-
|
|
8177
|
-
var
|
|
8183
|
+
js.displayName = Is;
|
|
8184
|
+
var Ms = "SelectLabel", Ds = l.forwardRef(
|
|
8178
8185
|
(e, t) => {
|
|
8179
|
-
const { __scopeSelect: r, ...n } = e, o = Qf(
|
|
8186
|
+
const { __scopeSelect: r, ...n } = e, o = Qf(Ms, r);
|
|
8180
8187
|
return /* @__PURE__ */ d.jsx(V.div, { id: o.id, ...n, ref: t });
|
|
8181
8188
|
}
|
|
8182
8189
|
);
|
|
8183
|
-
|
|
8184
|
-
var Kt = "SelectItem", [ep,
|
|
8190
|
+
Ds.displayName = Ms;
|
|
8191
|
+
var Kt = "SelectItem", [ep, Ls] = ct(Kt), Fs = l.forwardRef(
|
|
8185
8192
|
(e, t) => {
|
|
8186
8193
|
const {
|
|
8187
8194
|
__scopeSelect: r,
|
|
@@ -8264,10 +8271,10 @@ var Kt = "SelectItem", [ep, Ds] = ct(Kt), Ls = l.forwardRef(
|
|
|
8264
8271
|
);
|
|
8265
8272
|
}
|
|
8266
8273
|
);
|
|
8267
|
-
|
|
8268
|
-
var vt = "SelectItemText",
|
|
8274
|
+
Fs.displayName = Kt;
|
|
8275
|
+
var vt = "SelectItemText", $s = l.forwardRef(
|
|
8269
8276
|
(e, t) => {
|
|
8270
|
-
const { __scopeSelect: r, className: n, style: o, ...a } = e, s = Me(vt, r), i = De(vt, r), c =
|
|
8277
|
+
const { __scopeSelect: r, className: n, style: o, ...a } = e, s = Me(vt, r), i = De(vt, r), c = Ls(vt, r), u = Hf(vt, r), [f, p] = l.useState(null), g = ne(
|
|
8271
8278
|
t,
|
|
8272
8279
|
(y) => p(y),
|
|
8273
8280
|
c.onItemTextChange,
|
|
@@ -8285,15 +8292,15 @@ var vt = "SelectItemText", Fs = l.forwardRef(
|
|
|
8285
8292
|
] });
|
|
8286
8293
|
}
|
|
8287
8294
|
);
|
|
8288
|
-
|
|
8289
|
-
var
|
|
8295
|
+
$s.displayName = vt;
|
|
8296
|
+
var Vs = "SelectItemIndicator", zs = l.forwardRef(
|
|
8290
8297
|
(e, t) => {
|
|
8291
8298
|
const { __scopeSelect: r, ...n } = e;
|
|
8292
|
-
return
|
|
8299
|
+
return Ls(Vs, r).isSelected ? /* @__PURE__ */ d.jsx(V.span, { "aria-hidden": !0, ...n, ref: t }) : null;
|
|
8293
8300
|
}
|
|
8294
8301
|
);
|
|
8295
|
-
|
|
8296
|
-
var Gr = "SelectScrollUpButton",
|
|
8302
|
+
zs.displayName = Vs;
|
|
8303
|
+
var Gr = "SelectScrollUpButton", Bs = l.forwardRef((e, t) => {
|
|
8297
8304
|
const r = De(Gr, e.__scopeSelect), n = Cn(Gr, e.__scopeSelect), [o, a] = l.useState(!1), s = ne(t, n.onScrollButtonChange);
|
|
8298
8305
|
return ae(() => {
|
|
8299
8306
|
if (r.viewport && r.isPositioned) {
|
|
@@ -8305,7 +8312,7 @@ var Gr = "SelectScrollUpButton", zs = l.forwardRef((e, t) => {
|
|
|
8305
8312
|
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
8306
8313
|
}
|
|
8307
8314
|
}, [r.viewport, r.isPositioned]), o ? /* @__PURE__ */ d.jsx(
|
|
8308
|
-
|
|
8315
|
+
Hs,
|
|
8309
8316
|
{
|
|
8310
8317
|
...e,
|
|
8311
8318
|
ref: s,
|
|
@@ -8316,8 +8323,8 @@ var Gr = "SelectScrollUpButton", zs = l.forwardRef((e, t) => {
|
|
|
8316
8323
|
}
|
|
8317
8324
|
) : null;
|
|
8318
8325
|
});
|
|
8319
|
-
|
|
8320
|
-
var Ur = "SelectScrollDownButton",
|
|
8326
|
+
Bs.displayName = Gr;
|
|
8327
|
+
var Ur = "SelectScrollDownButton", Ws = l.forwardRef((e, t) => {
|
|
8321
8328
|
const r = De(Ur, e.__scopeSelect), n = Cn(Ur, e.__scopeSelect), [o, a] = l.useState(!1), s = ne(t, n.onScrollButtonChange);
|
|
8322
8329
|
return ae(() => {
|
|
8323
8330
|
if (r.viewport && r.isPositioned) {
|
|
@@ -8329,7 +8336,7 @@ var Ur = "SelectScrollDownButton", Bs = l.forwardRef((e, t) => {
|
|
|
8329
8336
|
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
8330
8337
|
}
|
|
8331
8338
|
}, [r.viewport, r.isPositioned]), o ? /* @__PURE__ */ d.jsx(
|
|
8332
|
-
|
|
8339
|
+
Hs,
|
|
8333
8340
|
{
|
|
8334
8341
|
...e,
|
|
8335
8342
|
ref: s,
|
|
@@ -8340,8 +8347,8 @@ var Ur = "SelectScrollDownButton", Bs = l.forwardRef((e, t) => {
|
|
|
8340
8347
|
}
|
|
8341
8348
|
) : null;
|
|
8342
8349
|
});
|
|
8343
|
-
|
|
8344
|
-
var
|
|
8350
|
+
Ws.displayName = Ur;
|
|
8351
|
+
var Hs = l.forwardRef((e, t) => {
|
|
8345
8352
|
const { __scopeSelect: r, onAutoScroll: n, ...o } = e, a = De("SelectScrollButton", r), s = l.useRef(null), i = cr(r), c = l.useCallback(() => {
|
|
8346
8353
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
8347
8354
|
}, []);
|
|
@@ -8382,7 +8389,7 @@ var Kr = "SelectArrow", np = l.forwardRef(
|
|
|
8382
8389
|
}
|
|
8383
8390
|
);
|
|
8384
8391
|
np.displayName = Kr;
|
|
8385
|
-
var op = "SelectBubbleInput",
|
|
8392
|
+
var op = "SelectBubbleInput", Gs = l.forwardRef(
|
|
8386
8393
|
({ __scopeSelect: e, value: t, ...r }, n) => {
|
|
8387
8394
|
const o = l.useRef(null), a = ne(n, o), s = Uo(t);
|
|
8388
8395
|
return l.useEffect(() => {
|
|
@@ -8400,18 +8407,18 @@ var op = "SelectBubbleInput", Hs = l.forwardRef(
|
|
|
8400
8407
|
V.select,
|
|
8401
8408
|
{
|
|
8402
8409
|
...r,
|
|
8403
|
-
style: { ...
|
|
8410
|
+
style: { ...us, ...r.style },
|
|
8404
8411
|
ref: a,
|
|
8405
8412
|
defaultValue: t
|
|
8406
8413
|
}
|
|
8407
8414
|
);
|
|
8408
8415
|
}
|
|
8409
8416
|
);
|
|
8410
|
-
|
|
8411
|
-
function
|
|
8417
|
+
Gs.displayName = op;
|
|
8418
|
+
function Us(e) {
|
|
8412
8419
|
return e === "" || e === void 0;
|
|
8413
8420
|
}
|
|
8414
|
-
function
|
|
8421
|
+
function Ks(e) {
|
|
8415
8422
|
const t = ke(e), r = l.useRef(""), n = l.useRef(0), o = l.useCallback(
|
|
8416
8423
|
(s) => {
|
|
8417
8424
|
const i = r.current + s;
|
|
@@ -8425,7 +8432,7 @@ function Us(e) {
|
|
|
8425
8432
|
}, []);
|
|
8426
8433
|
return l.useEffect(() => () => window.clearTimeout(n.current), []), [r, o, a];
|
|
8427
8434
|
}
|
|
8428
|
-
function
|
|
8435
|
+
function Ys(e, t, r) {
|
|
8429
8436
|
const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, a = r ? e.indexOf(r) : -1;
|
|
8430
8437
|
let s = ap(e, Math.max(a, 0));
|
|
8431
8438
|
o.length === 1 && (s = s.filter((u) => u !== r));
|
|
@@ -8437,7 +8444,7 @@ function Ks(e, t, r) {
|
|
|
8437
8444
|
function ap(e, t) {
|
|
8438
8445
|
return e.map((r, n) => e[(t + n) % e.length]);
|
|
8439
8446
|
}
|
|
8440
|
-
var sp =
|
|
8447
|
+
var sp = ws, ip = Cs, lp = ks, cp = Rs, up = Ps, dp = As, fp = Os, pp = js, mp = Ds, hp = Fs, gp = $s, vp = zs, xp = Bs, bp = Ws;
|
|
8441
8448
|
function yp({
|
|
8442
8449
|
...e
|
|
8443
8450
|
}) {
|
|
@@ -8538,7 +8545,7 @@ function lo({
|
|
|
8538
8545
|
),
|
|
8539
8546
|
...r,
|
|
8540
8547
|
children: [
|
|
8541
|
-
/* @__PURE__ */ d.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ d.jsx(vp, { children: /* @__PURE__ */ d.jsx(
|
|
8548
|
+
/* @__PURE__ */ d.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ d.jsx(vp, { children: /* @__PURE__ */ d.jsx(ku, { className: "size-4" }) }) }),
|
|
8542
8549
|
/* @__PURE__ */ d.jsx(gp, { children: t })
|
|
8543
8550
|
]
|
|
8544
8551
|
}
|
|
@@ -8557,7 +8564,7 @@ function Rp({
|
|
|
8557
8564
|
e
|
|
8558
8565
|
),
|
|
8559
8566
|
...t,
|
|
8560
|
-
children: /* @__PURE__ */ d.jsx(
|
|
8567
|
+
children: /* @__PURE__ */ d.jsx(Au, { className: "size-4" })
|
|
8561
8568
|
}
|
|
8562
8569
|
);
|
|
8563
8570
|
}
|
|
@@ -8578,9 +8585,9 @@ function Pp({
|
|
|
8578
8585
|
}
|
|
8579
8586
|
);
|
|
8580
8587
|
}
|
|
8581
|
-
var dr = "Popover", [
|
|
8588
|
+
var dr = "Popover", [qs, fh] = Se(dr, [
|
|
8582
8589
|
lt
|
|
8583
|
-
]), Rt = lt(), [Ap, Le] =
|
|
8590
|
+
]), Rt = lt(), [Ap, Le] = qs(dr), Xs = (e) => {
|
|
8584
8591
|
const {
|
|
8585
8592
|
__scopePopover: t,
|
|
8586
8593
|
children: r,
|
|
@@ -8611,24 +8618,24 @@ var dr = "Popover", [Ys, fh] = Se(dr, [
|
|
|
8611
8618
|
}
|
|
8612
8619
|
) });
|
|
8613
8620
|
};
|
|
8614
|
-
|
|
8615
|
-
var
|
|
8621
|
+
Xs.displayName = dr;
|
|
8622
|
+
var Zs = "PopoverAnchor", _p = l.forwardRef(
|
|
8616
8623
|
(e, t) => {
|
|
8617
|
-
const { __scopePopover: r, ...n } = e, o = Le(
|
|
8624
|
+
const { __scopePopover: r, ...n } = e, o = Le(Zs, r), a = Rt(r), { onCustomAnchorAdd: s, onCustomAnchorRemove: i } = o;
|
|
8618
8625
|
return l.useEffect(() => (s(), () => i()), [s, i]), /* @__PURE__ */ d.jsx(ar, { ...a, ...n, ref: t });
|
|
8619
8626
|
}
|
|
8620
8627
|
);
|
|
8621
|
-
_p.displayName =
|
|
8622
|
-
var
|
|
8628
|
+
_p.displayName = Zs;
|
|
8629
|
+
var Js = "PopoverTrigger", Qs = l.forwardRef(
|
|
8623
8630
|
(e, t) => {
|
|
8624
|
-
const { __scopePopover: r, ...n } = e, o = Le(
|
|
8631
|
+
const { __scopePopover: r, ...n } = e, o = Le(Js, r), a = Rt(r), s = ne(t, o.triggerRef), i = /* @__PURE__ */ d.jsx(
|
|
8625
8632
|
V.button,
|
|
8626
8633
|
{
|
|
8627
8634
|
type: "button",
|
|
8628
8635
|
"aria-haspopup": "dialog",
|
|
8629
8636
|
"aria-expanded": o.open,
|
|
8630
8637
|
"aria-controls": o.contentId,
|
|
8631
|
-
"data-state":
|
|
8638
|
+
"data-state": oi(o.open),
|
|
8632
8639
|
...n,
|
|
8633
8640
|
ref: s,
|
|
8634
8641
|
onClick: W(e.onClick, o.onOpenToggle)
|
|
@@ -8637,21 +8644,21 @@ var Zs = "PopoverTrigger", Js = l.forwardRef(
|
|
|
8637
8644
|
return o.hasCustomAnchor ? i : /* @__PURE__ */ d.jsx(ar, { asChild: !0, ...a, children: i });
|
|
8638
8645
|
}
|
|
8639
8646
|
);
|
|
8640
|
-
|
|
8641
|
-
var En = "PopoverPortal", [Np, Tp] =
|
|
8647
|
+
Qs.displayName = Js;
|
|
8648
|
+
var En = "PopoverPortal", [Np, Tp] = qs(En, {
|
|
8642
8649
|
forceMount: void 0
|
|
8643
|
-
}),
|
|
8650
|
+
}), ei = (e) => {
|
|
8644
8651
|
const { __scopePopover: t, forceMount: r, children: n, container: o } = e, a = Le(En, t);
|
|
8645
8652
|
return /* @__PURE__ */ d.jsx(Np, { scope: t, forceMount: r, children: /* @__PURE__ */ d.jsx(Ae, { present: r || a.open, children: /* @__PURE__ */ d.jsx(Ct, { asChild: !0, container: o, children: n }) }) });
|
|
8646
8653
|
};
|
|
8647
|
-
|
|
8648
|
-
var nt = "PopoverContent",
|
|
8654
|
+
ei.displayName = En;
|
|
8655
|
+
var nt = "PopoverContent", ti = l.forwardRef(
|
|
8649
8656
|
(e, t) => {
|
|
8650
8657
|
const r = Tp(nt, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, a = Le(nt, e.__scopePopover);
|
|
8651
8658
|
return /* @__PURE__ */ d.jsx(Ae, { present: n || a.open, children: a.modal ? /* @__PURE__ */ d.jsx(Ip, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(jp, { ...o, ref: t }) });
|
|
8652
8659
|
}
|
|
8653
8660
|
);
|
|
8654
|
-
|
|
8661
|
+
ti.displayName = nt;
|
|
8655
8662
|
var Op = /* @__PURE__ */ ze("PopoverContent.RemoveScroll"), Ip = l.forwardRef(
|
|
8656
8663
|
(e, t) => {
|
|
8657
8664
|
const r = Le(nt, e.__scopePopover), n = l.useRef(null), o = ne(t, n), a = l.useRef(!1);
|
|
@@ -8659,7 +8666,7 @@ var Op = /* @__PURE__ */ ze("PopoverContent.RemoveScroll"), Ip = l.forwardRef(
|
|
|
8659
8666
|
const s = n.current;
|
|
8660
8667
|
if (s) return nn(s);
|
|
8661
8668
|
}, []), /* @__PURE__ */ d.jsx(Qt, { as: Op, allowPinchZoom: !0, children: /* @__PURE__ */ d.jsx(
|
|
8662
|
-
|
|
8669
|
+
ri,
|
|
8663
8670
|
{
|
|
8664
8671
|
...e,
|
|
8665
8672
|
ref: o,
|
|
@@ -8689,7 +8696,7 @@ var Op = /* @__PURE__ */ ze("PopoverContent.RemoveScroll"), Ip = l.forwardRef(
|
|
|
8689
8696
|
(e, t) => {
|
|
8690
8697
|
const r = Le(nt, e.__scopePopover), n = l.useRef(!1), o = l.useRef(!1);
|
|
8691
8698
|
return /* @__PURE__ */ d.jsx(
|
|
8692
|
-
|
|
8699
|
+
ri,
|
|
8693
8700
|
{
|
|
8694
8701
|
...e,
|
|
8695
8702
|
ref: t,
|
|
@@ -8708,7 +8715,7 @@ var Op = /* @__PURE__ */ ze("PopoverContent.RemoveScroll"), Ip = l.forwardRef(
|
|
|
8708
8715
|
}
|
|
8709
8716
|
);
|
|
8710
8717
|
}
|
|
8711
|
-
),
|
|
8718
|
+
), ri = l.forwardRef(
|
|
8712
8719
|
(e, t) => {
|
|
8713
8720
|
const {
|
|
8714
8721
|
__scopePopover: r,
|
|
@@ -8743,7 +8750,7 @@ var Op = /* @__PURE__ */ ze("PopoverContent.RemoveScroll"), Ip = l.forwardRef(
|
|
|
8743
8750
|
children: /* @__PURE__ */ d.jsx(
|
|
8744
8751
|
xn,
|
|
8745
8752
|
{
|
|
8746
|
-
"data-state":
|
|
8753
|
+
"data-state": oi(g.open),
|
|
8747
8754
|
role: "dialog",
|
|
8748
8755
|
id: g.contentId,
|
|
8749
8756
|
...h,
|
|
@@ -8764,9 +8771,9 @@ var Op = /* @__PURE__ */ ze("PopoverContent.RemoveScroll"), Ip = l.forwardRef(
|
|
|
8764
8771
|
}
|
|
8765
8772
|
);
|
|
8766
8773
|
}
|
|
8767
|
-
),
|
|
8774
|
+
), ni = "PopoverClose", Mp = l.forwardRef(
|
|
8768
8775
|
(e, t) => {
|
|
8769
|
-
const { __scopePopover: r, ...n } = e, o = Le(
|
|
8776
|
+
const { __scopePopover: r, ...n } = e, o = Le(ni, r);
|
|
8770
8777
|
return /* @__PURE__ */ d.jsx(
|
|
8771
8778
|
V.button,
|
|
8772
8779
|
{
|
|
@@ -8778,7 +8785,7 @@ var Op = /* @__PURE__ */ ze("PopoverContent.RemoveScroll"), Ip = l.forwardRef(
|
|
|
8778
8785
|
);
|
|
8779
8786
|
}
|
|
8780
8787
|
);
|
|
8781
|
-
Mp.displayName =
|
|
8788
|
+
Mp.displayName = ni;
|
|
8782
8789
|
var Dp = "PopoverArrow", Lp = l.forwardRef(
|
|
8783
8790
|
(e, t) => {
|
|
8784
8791
|
const { __scopePopover: r, ...n } = e, o = Rt(r);
|
|
@@ -8786,10 +8793,10 @@ var Dp = "PopoverArrow", Lp = l.forwardRef(
|
|
|
8786
8793
|
}
|
|
8787
8794
|
);
|
|
8788
8795
|
Lp.displayName = Dp;
|
|
8789
|
-
function
|
|
8796
|
+
function oi(e) {
|
|
8790
8797
|
return e ? "open" : "closed";
|
|
8791
8798
|
}
|
|
8792
|
-
var Fp =
|
|
8799
|
+
var Fp = Xs, $p = Qs, Vp = ei, zp = ti;
|
|
8793
8800
|
function Bp({
|
|
8794
8801
|
...e
|
|
8795
8802
|
}) {
|
|
@@ -8820,25 +8827,25 @@ function Hp({
|
|
|
8820
8827
|
}
|
|
8821
8828
|
) });
|
|
8822
8829
|
}
|
|
8823
|
-
var co = 1, Gp = 0.9, Up = 0.8, Kp = 0.17, kr = 0.1, Rr = 0.999, Yp = 0.9999, qp = 0.99, Xp = /[\\\/_+.#"@\[\(\{&]/, Zp = /[\\\/_+.#"@\[\(\{&]/g, Jp = /[\s-]/,
|
|
8830
|
+
var co = 1, Gp = 0.9, Up = 0.8, Kp = 0.17, kr = 0.1, Rr = 0.999, Yp = 0.9999, qp = 0.99, Xp = /[\\\/_+.#"@\[\(\{&]/, Zp = /[\\\/_+.#"@\[\(\{&]/g, Jp = /[\s-]/, ai = /[\s-]/g;
|
|
8824
8831
|
function Yr(e, t, r, n, o, a, s) {
|
|
8825
8832
|
if (a === t.length) return o === e.length ? co : qp;
|
|
8826
8833
|
var i = `${o},${a}`;
|
|
8827
8834
|
if (s[i] !== void 0) return s[i];
|
|
8828
|
-
for (var c = n.charAt(a), u = r.indexOf(c, o), f = 0, p, g, h, v; u >= 0; ) p = Yr(e, t, r, n, u + 1, a + 1, s), p > f && (u === o ? p *= co : Xp.test(e.charAt(u - 1)) ? (p *= Up, h = e.slice(o, u - 1).match(Zp), h && o > 0 && (p *= Math.pow(Rr, h.length))) : Jp.test(e.charAt(u - 1)) ? (p *= Gp, v = e.slice(o, u - 1).match(
|
|
8835
|
+
for (var c = n.charAt(a), u = r.indexOf(c, o), f = 0, p, g, h, v; u >= 0; ) p = Yr(e, t, r, n, u + 1, a + 1, s), p > f && (u === o ? p *= co : Xp.test(e.charAt(u - 1)) ? (p *= Up, h = e.slice(o, u - 1).match(Zp), h && o > 0 && (p *= Math.pow(Rr, h.length))) : Jp.test(e.charAt(u - 1)) ? (p *= Gp, v = e.slice(o, u - 1).match(ai), v && o > 0 && (p *= Math.pow(Rr, v.length))) : (p *= Kp, o > 0 && (p *= Math.pow(Rr, u - o))), e.charAt(u) !== t.charAt(a) && (p *= Yp)), (p < kr && r.charAt(u - 1) === n.charAt(a + 1) || n.charAt(a + 1) === n.charAt(a) && r.charAt(u - 1) !== n.charAt(a)) && (g = Yr(e, t, r, n, u + 1, a + 2, s), g * kr > p && (p = g * kr)), p > f && (f = p), u = r.indexOf(c, u + 1);
|
|
8829
8836
|
return s[i] = f, f;
|
|
8830
8837
|
}
|
|
8831
8838
|
function uo(e) {
|
|
8832
|
-
return e.toLowerCase().replace(
|
|
8839
|
+
return e.toLowerCase().replace(ai, " ");
|
|
8833
8840
|
}
|
|
8834
8841
|
function Qp(e, t, r) {
|
|
8835
8842
|
return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, Yr(e, t, uo(e), uo(t), 0, 0, {});
|
|
8836
8843
|
}
|
|
8837
|
-
var gt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', em = '[cmdk-group-heading=""]',
|
|
8844
|
+
var gt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', em = '[cmdk-group-heading=""]', si = '[cmdk-item=""]', fo = `${si}:not([aria-disabled="true"])`, qr = "cmdk-item-select", Ze = "data-value", tm = (e, t, r) => Qp(e, t, r), ii = l.createContext(void 0), Pt = () => l.useContext(ii), li = l.createContext(void 0), kn = () => l.useContext(li), ci = l.createContext(void 0), ui = l.forwardRef((e, t) => {
|
|
8838
8845
|
let r = Je(() => {
|
|
8839
8846
|
var S, T;
|
|
8840
8847
|
return { search: "", value: (T = (S = e.value) != null ? S : e.defaultValue) != null ? T : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
8841
|
-
}), n = Je(() => /* @__PURE__ */ new Set()), o = Je(() => /* @__PURE__ */ new Map()), a = Je(() => /* @__PURE__ */ new Map()), s = Je(() => /* @__PURE__ */ new Set()), i =
|
|
8848
|
+
}), n = Je(() => /* @__PURE__ */ new Set()), o = Je(() => /* @__PURE__ */ new Map()), a = Je(() => /* @__PURE__ */ new Map()), s = Je(() => /* @__PURE__ */ new Set()), i = di(e), { label: c, children: u, value: f, onValueChange: p, filter: g, shouldFilter: h, loop: v, disablePointerSelection: m = !1, vimBindings: x = !0, ...y } = e, b = se(), w = se(), C = se(), k = l.useRef(null), N = fm();
|
|
8842
8849
|
Ue(() => {
|
|
8843
8850
|
if (f !== void 0) {
|
|
8844
8851
|
let S = f.trim();
|
|
@@ -8943,7 +8950,7 @@ var gt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', em = '[cmdk-group-head
|
|
|
8943
8950
|
}
|
|
8944
8951
|
function z() {
|
|
8945
8952
|
var S;
|
|
8946
|
-
return (S = k.current) == null ? void 0 : S.querySelector(`${
|
|
8953
|
+
return (S = k.current) == null ? void 0 : S.querySelector(`${si}[aria-selected="true"]`);
|
|
8947
8954
|
}
|
|
8948
8955
|
function Y() {
|
|
8949
8956
|
var S;
|
|
@@ -9008,14 +9015,14 @@ var gt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', em = '[cmdk-group-head
|
|
|
9008
9015
|
}
|
|
9009
9016
|
}
|
|
9010
9017
|
}
|
|
9011
|
-
} }, l.createElement("label", { "cmdk-label": "", htmlFor: P.inputId, id: P.labelId, style: mm }, c), fr(e, (S) => l.createElement(
|
|
9018
|
+
} }, l.createElement("label", { "cmdk-label": "", htmlFor: P.inputId, id: P.labelId, style: mm }, c), fr(e, (S) => l.createElement(li.Provider, { value: R }, l.createElement(ii.Provider, { value: P }, S))));
|
|
9012
9019
|
}), rm = l.forwardRef((e, t) => {
|
|
9013
9020
|
var r, n;
|
|
9014
|
-
let o = se(), a = l.useRef(null), s = l.useContext(
|
|
9021
|
+
let o = se(), a = l.useRef(null), s = l.useContext(ci), i = Pt(), c = di(e), u = (n = (r = c.current) == null ? void 0 : r.forceMount) != null ? n : s == null ? void 0 : s.forceMount;
|
|
9015
9022
|
Ue(() => {
|
|
9016
9023
|
if (!u) return i.item(o, s == null ? void 0 : s.id);
|
|
9017
9024
|
}, [u]);
|
|
9018
|
-
let f =
|
|
9025
|
+
let f = fi(o, a, [e.value, e.children, a], e.keywords), p = kn(), g = je((N) => N.value && N.value === f.current), h = je((N) => u || i.filter() === !1 ? !0 : N.search ? N.filtered.items.get(o) > 0 : !0);
|
|
9019
9026
|
l.useEffect(() => {
|
|
9020
9027
|
let N = a.current;
|
|
9021
9028
|
if (!(!N || e.disabled)) return N.addEventListener(qr, v), () => N.removeEventListener(qr, v);
|
|
@@ -9032,9 +9039,9 @@ var gt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', em = '[cmdk-group-head
|
|
|
9032
9039
|
return l.createElement(V.div, { ref: Ve(a, t), ...k, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!x, "aria-selected": !!g, "data-disabled": !!x, "data-selected": !!g, onPointerMove: x || i.getDisablePointerSelection() ? void 0 : m, onClick: x ? void 0 : v }, e.children);
|
|
9033
9040
|
}), nm = l.forwardRef((e, t) => {
|
|
9034
9041
|
let { heading: r, children: n, forceMount: o, ...a } = e, s = se(), i = l.useRef(null), c = l.useRef(null), u = se(), f = Pt(), p = je((h) => o || f.filter() === !1 ? !0 : h.search ? h.filtered.groups.has(s) : !0);
|
|
9035
|
-
Ue(() => f.group(s), []),
|
|
9042
|
+
Ue(() => f.group(s), []), fi(s, i, [e.value, e.heading, c]);
|
|
9036
9043
|
let g = l.useMemo(() => ({ id: s, forceMount: o }), [o]);
|
|
9037
|
-
return l.createElement(V.div, { ref: Ve(i, t), ...a, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, r && l.createElement("div", { ref: c, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, r), fr(e, (h) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(
|
|
9044
|
+
return l.createElement(V.div, { ref: Ve(i, t), ...a, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, r && l.createElement("div", { ref: c, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, r), fr(e, (h) => l.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, l.createElement(ci.Provider, { value: g }, h))));
|
|
9038
9045
|
}), om = l.forwardRef((e, t) => {
|
|
9039
9046
|
let { alwaysRender: r, ...n } = e, o = l.useRef(null), a = je((s) => !s.search);
|
|
9040
9047
|
return !r && !a ? null : l.createElement(V.div, { ref: Ve(o, t), ...n, "cmdk-separator": "", role: "separator" });
|
|
@@ -9062,11 +9069,11 @@ var gt = '[cmdk-group=""]', Pr = '[cmdk-group-items=""]', em = '[cmdk-group-head
|
|
|
9062
9069
|
}, []), l.createElement(V.div, { ref: Ve(a, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": n, id: c.listId }, fr(e, (u) => l.createElement("div", { ref: Ve(s, c.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
9063
9070
|
}), im = l.forwardRef((e, t) => {
|
|
9064
9071
|
let { open: r, onOpenChange: n, overlayClassName: o, contentClassName: a, container: s, ...i } = e;
|
|
9065
|
-
return l.createElement(ja, { open: r, onOpenChange: n }, l.createElement(Ma, { container: s }, l.createElement(Da, { "cmdk-overlay": "", className: o }), l.createElement(La, { "aria-label": e.label, "cmdk-dialog": "", className: a }, l.createElement(
|
|
9072
|
+
return l.createElement(ja, { open: r, onOpenChange: n }, l.createElement(Ma, { container: s }, l.createElement(Da, { "cmdk-overlay": "", className: o }), l.createElement(La, { "aria-label": e.label, "cmdk-dialog": "", className: a }, l.createElement(ui, { ref: t, ...i }))));
|
|
9066
9073
|
}), lm = l.forwardRef((e, t) => je((r) => r.filtered.count === 0) ? l.createElement(V.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), cm = l.forwardRef((e, t) => {
|
|
9067
9074
|
let { progress: r, children: n, label: o = "Loading...", ...a } = e;
|
|
9068
9075
|
return l.createElement(V.div, { ref: t, ...a, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, fr(e, (s) => l.createElement("div", { "aria-hidden": !0 }, s)));
|
|
9069
|
-
}), At = Object.assign(
|
|
9076
|
+
}), At = Object.assign(ui, { List: sm, Item: rm, Input: am, Group: nm, Separator: om, Dialog: im, Empty: lm, Loading: cm });
|
|
9070
9077
|
function um(e, t) {
|
|
9071
9078
|
let r = e.nextElementSibling;
|
|
9072
9079
|
for (; r; ) {
|
|
@@ -9081,7 +9088,7 @@ function dm(e, t) {
|
|
|
9081
9088
|
r = r.previousElementSibling;
|
|
9082
9089
|
}
|
|
9083
9090
|
}
|
|
9084
|
-
function
|
|
9091
|
+
function di(e) {
|
|
9085
9092
|
let t = l.useRef(e);
|
|
9086
9093
|
return Ue(() => {
|
|
9087
9094
|
t.current = e;
|
|
@@ -9096,7 +9103,7 @@ function je(e) {
|
|
|
9096
9103
|
let t = kn(), r = () => e(t.snapshot());
|
|
9097
9104
|
return l.useSyncExternalStore(t.subscribe, r, r);
|
|
9098
9105
|
}
|
|
9099
|
-
function
|
|
9106
|
+
function fi(e, t, r, n = []) {
|
|
9100
9107
|
let o = l.useRef(), a = Pt();
|
|
9101
9108
|
return Ue(() => {
|
|
9102
9109
|
var s;
|
|
@@ -9286,7 +9293,7 @@ const xm = ({
|
|
|
9286
9293
|
value: a,
|
|
9287
9294
|
onChange: s
|
|
9288
9295
|
}) => {
|
|
9289
|
-
const [i, c] = $e(!1), [u, f] = $e([]), p = a ?? u, g =
|
|
9296
|
+
const [i, c] = $e(!1), [u, f] = $e([]), p = a ?? u, g = Ei(() => Xr(e) ? e.flatMap((v) => v.options) : e, [e]), h = (v) => {
|
|
9290
9297
|
const m = p.includes(v) ? p.filter((x) => x !== v) : [...p, v];
|
|
9291
9298
|
f(m), s == null || s(m);
|
|
9292
9299
|
};
|
|
@@ -9306,7 +9313,7 @@ const xm = ({
|
|
|
9306
9313
|
),
|
|
9307
9314
|
children: [
|
|
9308
9315
|
/* @__PURE__ */ d.jsx("div", { className: "flex flex-wrap gap-1", children: p.length > 0 ? p.map((v) => /* @__PURE__ */ d.jsxs(
|
|
9309
|
-
|
|
9316
|
+
Ba,
|
|
9310
9317
|
{
|
|
9311
9318
|
type: "outline",
|
|
9312
9319
|
onClick: (m) => {
|
|
@@ -9535,7 +9542,7 @@ function km() {
|
|
|
9535
9542
|
return () => {
|
|
9536
9543
|
};
|
|
9537
9544
|
}
|
|
9538
|
-
var Rn = "Avatar", [Rm, hh] = Se(Rn), [Pm,
|
|
9545
|
+
var Rn = "Avatar", [Rm, hh] = Se(Rn), [Pm, pi] = Rm(Rn), mi = l.forwardRef(
|
|
9539
9546
|
(e, t) => {
|
|
9540
9547
|
const { __scopeAvatar: r, ...n } = e, [o, a] = l.useState("idle");
|
|
9541
9548
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -9549,11 +9556,11 @@ var Rn = "Avatar", [Rm, hh] = Se(Rn), [Pm, fi] = Rm(Rn), pi = l.forwardRef(
|
|
|
9549
9556
|
);
|
|
9550
9557
|
}
|
|
9551
9558
|
);
|
|
9552
|
-
|
|
9553
|
-
var
|
|
9559
|
+
mi.displayName = Rn;
|
|
9560
|
+
var hi = "AvatarImage", gi = l.forwardRef(
|
|
9554
9561
|
(e, t) => {
|
|
9555
9562
|
const { __scopeAvatar: r, src: n, onLoadingStatusChange: o = () => {
|
|
9556
|
-
}, ...a } = e, s =
|
|
9563
|
+
}, ...a } = e, s = pi(hi, r), i = Am(n, a), c = ke((u) => {
|
|
9557
9564
|
o(u), s.onImageLoadingStatusChange(u);
|
|
9558
9565
|
});
|
|
9559
9566
|
return ae(() => {
|
|
@@ -9561,10 +9568,10 @@ var mi = "AvatarImage", hi = l.forwardRef(
|
|
|
9561
9568
|
}, [i, c]), i === "loaded" ? /* @__PURE__ */ d.jsx(V.img, { ...a, ref: t, src: n }) : null;
|
|
9562
9569
|
}
|
|
9563
9570
|
);
|
|
9564
|
-
|
|
9565
|
-
var
|
|
9571
|
+
gi.displayName = hi;
|
|
9572
|
+
var vi = "AvatarFallback", xi = l.forwardRef(
|
|
9566
9573
|
(e, t) => {
|
|
9567
|
-
const { __scopeAvatar: r, delayMs: n, ...o } = e, a =
|
|
9574
|
+
const { __scopeAvatar: r, delayMs: n, ...o } = e, a = pi(vi, r), [s, i] = l.useState(n === void 0);
|
|
9568
9575
|
return l.useEffect(() => {
|
|
9569
9576
|
if (n !== void 0) {
|
|
9570
9577
|
const c = window.setTimeout(() => i(!0), n);
|
|
@@ -9573,7 +9580,7 @@ var gi = "AvatarFallback", vi = l.forwardRef(
|
|
|
9573
9580
|
}, [n]), s && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ d.jsx(V.span, { ...o, ref: t }) : null;
|
|
9574
9581
|
}
|
|
9575
9582
|
);
|
|
9576
|
-
|
|
9583
|
+
xi.displayName = vi;
|
|
9577
9584
|
function vo(e, t) {
|
|
9578
9585
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
9579
9586
|
}
|
|
@@ -9594,7 +9601,7 @@ function Am(e, { referrerPolicy: t, crossOrigin: r }) {
|
|
|
9594
9601
|
};
|
|
9595
9602
|
}, [a, r, t]), s;
|
|
9596
9603
|
}
|
|
9597
|
-
var _m =
|
|
9604
|
+
var _m = mi, bi = gi, zt = xi;
|
|
9598
9605
|
const Nm = de(
|
|
9599
9606
|
"relative flex items-center justify-center rounded-full bg-[var(--color-neutral-black-4)] text-black font-medium select-none",
|
|
9600
9607
|
{
|
|
@@ -9698,7 +9705,7 @@ function gh(e) {
|
|
|
9698
9705
|
children: [
|
|
9699
9706
|
t === "picture" && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
9700
9707
|
/* @__PURE__ */ d.jsx(
|
|
9701
|
-
|
|
9708
|
+
bi,
|
|
9702
9709
|
{
|
|
9703
9710
|
src: e.src,
|
|
9704
9711
|
alt: "avatar",
|
|
@@ -9746,7 +9753,7 @@ function gh(e) {
|
|
|
9746
9753
|
"data-testid": "avatar-camera-icon",
|
|
9747
9754
|
className: Im({ size: r }),
|
|
9748
9755
|
children: /* @__PURE__ */ d.jsx(
|
|
9749
|
-
|
|
9756
|
+
wu,
|
|
9750
9757
|
{
|
|
9751
9758
|
"data-testid": "avatar-camera",
|
|
9752
9759
|
className: "text-[var(--color-neutral-black-1)]",
|
|
@@ -9764,7 +9771,7 @@ function vh({
|
|
|
9764
9771
|
...t
|
|
9765
9772
|
}) {
|
|
9766
9773
|
return /* @__PURE__ */ d.jsx(
|
|
9767
|
-
|
|
9774
|
+
bi,
|
|
9768
9775
|
{
|
|
9769
9776
|
className: $("aspect-square h-full w-full", e),
|
|
9770
9777
|
...t
|
|
@@ -9786,7 +9793,7 @@ function xh({
|
|
|
9786
9793
|
}
|
|
9787
9794
|
);
|
|
9788
9795
|
}
|
|
9789
|
-
var jm = "Separator", xo = "horizontal", Mm = ["horizontal", "vertical"],
|
|
9796
|
+
var jm = "Separator", xo = "horizontal", Mm = ["horizontal", "vertical"], yi = l.forwardRef((e, t) => {
|
|
9790
9797
|
const { decorative: r, orientation: n = xo, ...o } = e, a = Dm(n) ? n : xo, i = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
9791
9798
|
return /* @__PURE__ */ d.jsx(
|
|
9792
9799
|
V.div,
|
|
@@ -9798,11 +9805,11 @@ var jm = "Separator", xo = "horizontal", Mm = ["horizontal", "vertical"], bi = l
|
|
|
9798
9805
|
}
|
|
9799
9806
|
);
|
|
9800
9807
|
});
|
|
9801
|
-
|
|
9808
|
+
yi.displayName = jm;
|
|
9802
9809
|
function Dm(e) {
|
|
9803
9810
|
return Mm.includes(e);
|
|
9804
9811
|
}
|
|
9805
|
-
var Lm =
|
|
9812
|
+
var Lm = yi;
|
|
9806
9813
|
function bh({
|
|
9807
9814
|
className: e,
|
|
9808
9815
|
orientation: t = "horizontal",
|
|
@@ -9986,14 +9993,14 @@ const wh = ({
|
|
|
9986
9993
|
const s = () => {
|
|
9987
9994
|
switch (e) {
|
|
9988
9995
|
case "image":
|
|
9989
|
-
return /* @__PURE__ */ d.jsx(
|
|
9996
|
+
return /* @__PURE__ */ d.jsx(Fu, { size: n, "data-testid": "placeholder-image" });
|
|
9990
9997
|
case "video":
|
|
9991
|
-
return /* @__PURE__ */ d.jsx(
|
|
9998
|
+
return /* @__PURE__ */ d.jsx(Hu, { size: n, "data-testid": "placeholder-video" });
|
|
9992
9999
|
case "pieChart":
|
|
9993
|
-
return /* @__PURE__ */ d.jsx(
|
|
10000
|
+
return /* @__PURE__ */ d.jsx(Cu, { size: n, "data-testid": "placeholder-pieChart" });
|
|
9994
10001
|
case "icon":
|
|
9995
10002
|
default:
|
|
9996
|
-
return /* @__PURE__ */ d.jsx(
|
|
10003
|
+
return /* @__PURE__ */ d.jsx(zu, { size: n, "data-testid": "placeholder-smile" });
|
|
9997
10004
|
}
|
|
9998
10005
|
};
|
|
9999
10006
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -10088,11 +10095,21 @@ const wh = ({
|
|
|
10088
10095
|
}
|
|
10089
10096
|
);
|
|
10090
10097
|
Wm.displayName = "ProgressIndicator";
|
|
10098
|
+
function Sh({ className: e, ...t }) {
|
|
10099
|
+
return /* @__PURE__ */ d.jsx(
|
|
10100
|
+
"div",
|
|
10101
|
+
{
|
|
10102
|
+
"data-slot": "skeleton",
|
|
10103
|
+
className: $("bg-neutral-black-5 animate-pulse rounded-sm", e),
|
|
10104
|
+
...t
|
|
10105
|
+
}
|
|
10106
|
+
);
|
|
10107
|
+
}
|
|
10091
10108
|
export {
|
|
10092
10109
|
gh as Avatar,
|
|
10093
10110
|
xh as AvatarFallback,
|
|
10094
10111
|
vh as AvatarImage,
|
|
10095
|
-
|
|
10112
|
+
Ba as Badge,
|
|
10096
10113
|
Um as Button,
|
|
10097
10114
|
mh as Card,
|
|
10098
10115
|
Xm as Dialog,
|
|
@@ -10101,8 +10118,8 @@ export {
|
|
|
10101
10118
|
nh as DialogDescription,
|
|
10102
10119
|
th as DialogFooter,
|
|
10103
10120
|
eh as DialogHeader,
|
|
10104
|
-
|
|
10105
|
-
|
|
10121
|
+
Ku as DialogOverlay,
|
|
10122
|
+
Uu as DialogPortal,
|
|
10106
10123
|
rh as DialogTitle,
|
|
10107
10124
|
Zm as DialogTrigger,
|
|
10108
10125
|
bh as Divider,
|
|
@@ -10111,14 +10128,15 @@ export {
|
|
|
10111
10128
|
ch as PasswordInput,
|
|
10112
10129
|
wh as Placeholder,
|
|
10113
10130
|
Wm as ProgressIndicator,
|
|
10114
|
-
|
|
10115
|
-
|
|
10131
|
+
ec as RadioGroup,
|
|
10132
|
+
tc as RadioGroupItem,
|
|
10116
10133
|
uh as SearchInput,
|
|
10117
10134
|
ph as SelectOption,
|
|
10118
10135
|
xm as SingleSelect,
|
|
10119
|
-
|
|
10136
|
+
Sh as Skeleton,
|
|
10137
|
+
Sl as StatefulToggle,
|
|
10120
10138
|
yh as Timeline,
|
|
10121
|
-
|
|
10139
|
+
wl as Toggle,
|
|
10122
10140
|
ah as Tooltip,
|
|
10123
10141
|
ih as TooltipContent,
|
|
10124
10142
|
Lf as TooltipProvider,
|