@umriss-ui/core 0.29.0 → 0.30.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/CHANGELOG.md +12 -0
- package/dist/core.css +1 -1
- package/dist/core.js +622 -622
- package/docs/llms-full.md +48 -46
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "./core.css";
|
|
2
2
|
import { useMemo as ye, useContext as Qe, createContext as at, forwardRef as K, useState as W, useLayoutEffect as Ke, version as so, useRef as O, useId as Me, useEffect as le, cloneElement as vr, useCallback as se, useImperativeHandle as Nn } from "react";
|
|
3
3
|
import { jsx as s, jsxs as x, Fragment as Re } from "react/jsx-runtime";
|
|
4
|
-
import { D as
|
|
4
|
+
import { D as hn, a as br, s as io } from "./formats-DrB9TuzO.js";
|
|
5
5
|
import { createPortal as xn } from "react-dom";
|
|
6
6
|
function F(...t) {
|
|
7
7
|
return t.filter(Boolean).join(" ");
|
|
8
8
|
}
|
|
9
|
-
const ao = "_alert_1pgum_12 _text_r8i8z_23", co = "_content_1pgum_27", lo = "_title_1pgum_35", uo = "_text_1pgum_43", fo = "_actions_1pgum_53",
|
|
9
|
+
const ao = "_alert_1pgum_12 _text_r8i8z_23", co = "_content_1pgum_27", lo = "_title_1pgum_35", uo = "_text_1pgum_43", fo = "_actions_1pgum_53", ho = "_neutral_1pgum_62", po = "_accent_1pgum_70", mo = "_success_1pgum_78", _o = "_warning_1pgum_86", go = "_danger_1pgum_94", vo = "_close_1pgum_104", St = {
|
|
10
10
|
alert: ao,
|
|
11
11
|
content: co,
|
|
12
12
|
title: lo,
|
|
13
13
|
text: uo,
|
|
14
14
|
actions: fo,
|
|
15
|
-
neutral:
|
|
16
|
-
accent:
|
|
15
|
+
neutral: ho,
|
|
16
|
+
accent: po,
|
|
17
17
|
success: mo,
|
|
18
18
|
warning: _o,
|
|
19
19
|
danger: go,
|
|
@@ -322,14 +322,14 @@ const ao = "_alert_1pgum_12 _text_r8i8z_23", co = "_content_1pgum_27", lo = "_ti
|
|
|
322
322
|
calculationOperandCount: (t) => `${t} operands`,
|
|
323
323
|
calculationNoOperands: "no entries"
|
|
324
324
|
}, yr = {
|
|
325
|
-
formats:
|
|
325
|
+
formats: hn,
|
|
326
326
|
wording: Mt
|
|
327
327
|
}, wr = at(null);
|
|
328
328
|
function bo(t) {
|
|
329
329
|
if (!t) return yr;
|
|
330
330
|
const { presets: e, ...n } = t.wording ?? {};
|
|
331
331
|
return {
|
|
332
|
-
formats: t.formats ? { ...
|
|
332
|
+
formats: t.formats ? { ...hn, ...t.formats } : hn,
|
|
333
333
|
wording: t.wording ? {
|
|
334
334
|
...Mt,
|
|
335
335
|
...n,
|
|
@@ -379,7 +379,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
379
379
|
strokeLinecap: "round"
|
|
380
380
|
}
|
|
381
381
|
) });
|
|
382
|
-
}),
|
|
382
|
+
}), pp = K(function({ size: e = 10, ...n }, r) {
|
|
383
383
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
384
384
|
"path",
|
|
385
385
|
{
|
|
@@ -390,7 +390,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
390
390
|
strokeLinecap: "round"
|
|
391
391
|
}
|
|
392
392
|
) });
|
|
393
|
-
}),
|
|
393
|
+
}), mp = K(function({ size: e = 10, ...n }, r) {
|
|
394
394
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
395
395
|
"path",
|
|
396
396
|
{
|
|
@@ -431,15 +431,15 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
431
431
|
}
|
|
432
432
|
)
|
|
433
433
|
] });
|
|
434
|
-
}),
|
|
434
|
+
}), pn = {
|
|
435
435
|
neutral: { role: "status", live: "polite" },
|
|
436
436
|
accent: { role: "status", live: "polite" },
|
|
437
437
|
success: { role: "status", live: "polite" },
|
|
438
438
|
warning: { role: "alert" },
|
|
439
439
|
danger: { role: "alert" },
|
|
440
440
|
loading: { role: "status", live: "polite" }
|
|
441
|
-
},
|
|
442
|
-
const
|
|
441
|
+
}, _p = K(function({ tone: e = "neutral", title: n, actions: r, onDismiss: o, dismissLabel: a, className: i, children: c, ...f }, d) {
|
|
442
|
+
const p = ve(), { role: v, live: m } = pn[e];
|
|
443
443
|
return /* @__PURE__ */ x(
|
|
444
444
|
"div",
|
|
445
445
|
{
|
|
@@ -454,7 +454,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
454
454
|
c && /* @__PURE__ */ s("div", { className: St.text, children: c }),
|
|
455
455
|
r && /* @__PURE__ */ s("div", { className: St.actions, children: r })
|
|
456
456
|
] }),
|
|
457
|
-
o && /* @__PURE__ */ s("button", { type: "button", "aria-label": a ??
|
|
457
|
+
o && /* @__PURE__ */ s("button", { type: "button", "aria-label": a ?? p.closeToast, className: St.close, onClick: o, children: /* @__PURE__ */ s(et, {}) })
|
|
458
458
|
]
|
|
459
459
|
}
|
|
460
460
|
);
|
|
@@ -466,7 +466,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
466
466
|
success: To,
|
|
467
467
|
warning: Do,
|
|
468
468
|
danger: Ao
|
|
469
|
-
},
|
|
469
|
+
}, gp = K(function({ tone: e = "neutral", pill: n = !1, className: r, children: o, ...a }, i) {
|
|
470
470
|
return /* @__PURE__ */ s("span", { ref: i, className: F(an.badge, n && an.pill, an[e], r), ...a, children: o });
|
|
471
471
|
}), Sn = at(null);
|
|
472
472
|
function Mo({ size: t, children: e }) {
|
|
@@ -502,7 +502,7 @@ const Co = "_spinner_1tmf7_4", zo = {
|
|
|
502
502
|
}
|
|
503
503
|
);
|
|
504
504
|
}), An = at(null);
|
|
505
|
-
function
|
|
505
|
+
function vp(t, e) {
|
|
506
506
|
const n = Qe(An);
|
|
507
507
|
return t !== void 0 ? t : n != null && n.densityGiven ? n.density === "compact" ? "compact" : "regular" : e;
|
|
508
508
|
}
|
|
@@ -510,7 +510,7 @@ const Ro = {
|
|
|
510
510
|
density: "comfortable",
|
|
511
511
|
portalTarget: null,
|
|
512
512
|
toast: {}
|
|
513
|
-
}, Mn = () => Qe(An) ?? Ro,
|
|
513
|
+
}, Mn = () => Qe(An) ?? Ro, bp = () => Mn().density, Lo = () => Mn().toast;
|
|
514
514
|
function Cn() {
|
|
515
515
|
const { portalTarget: t } = Mn();
|
|
516
516
|
return ye(
|
|
@@ -518,7 +518,7 @@ function Cn() {
|
|
|
518
518
|
[t]
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function yp({
|
|
522
522
|
density: t,
|
|
523
523
|
portalTarget: e = null,
|
|
524
524
|
toast: n,
|
|
@@ -548,19 +548,19 @@ function zn(t, e) {
|
|
|
548
548
|
}
|
|
549
549
|
const Eo = 6, Po = 8, Fo = 240;
|
|
550
550
|
function $r(t, e, n, r = {}) {
|
|
551
|
-
const { align: o = "start", side: a = "bottom", offset: i = Eo, margin: c = Po } = r, { top: f = 0, left: d = 0 } = n,
|
|
552
|
-
let
|
|
551
|
+
const { align: o = "start", side: a = "bottom", offset: i = Eo, margin: c = Po } = r, { top: f = 0, left: d = 0 } = n, p = f + n.height - t.bottom - i - c, v = t.top - f - i - c, m = a === "top" ? v : p, _ = a === "top" ? p : v, l = m >= e.height || _ >= e.height, u = Math.max(m, _) >= Fo;
|
|
552
|
+
let h, y, w;
|
|
553
553
|
if (l)
|
|
554
|
-
|
|
554
|
+
h = m < e.height, y = a === "top" !== h ? t.top - i - e.height : t.bottom + i;
|
|
555
555
|
else if (u)
|
|
556
|
-
|
|
556
|
+
h = _ > m, w = Math.max(m, _), y = a === "top" !== h ? t.top - i - w : t.bottom + i;
|
|
557
557
|
else {
|
|
558
|
-
|
|
558
|
+
h = !1;
|
|
559
559
|
const g = a === "top" ? t.top - i - e.height : t.bottom + i;
|
|
560
560
|
y = Math.max(f + c, Math.min(g, f + n.height - e.height - c));
|
|
561
561
|
}
|
|
562
|
-
const k = a === "top" !==
|
|
563
|
-
return { top: y, left: U, flipped:
|
|
562
|
+
const k = a === "top" !== h, S = (g) => g === "end" ? t.right - e.width : g === "center" ? t.left + t.width / 2 - e.width / 2 : t.left, E = (g) => g >= d + c && g + e.width <= d + n.width - c, D = [o, o === "start" ? "end" : o === "end" ? "start" : "center", "center"].find((g) => E(S(g))) ?? o, U = Math.max(d + c, Math.min(S(D), d + n.width - e.width - c));
|
|
563
|
+
return { top: y, left: U, flipped: h, side: k ? "top" : "bottom", align: D, ...w === void 0 ? {} : { maxHeight: w } };
|
|
564
564
|
}
|
|
565
565
|
function Rn(t, e) {
|
|
566
566
|
return `${e === "start" ? "left" : e === "end" ? "right" : "center"} ${t === "bottom" ? "top" : "bottom"}`;
|
|
@@ -604,13 +604,13 @@ const Bo = "_tooltip_1hs6u_4 _text_r8i8z_23", Oo = "_content_1hs6u_24 _ink_r8i8z
|
|
|
604
604
|
content: Oo
|
|
605
605
|
};
|
|
606
606
|
function Ar({ content: t, children: e, delay: n = 300 }) {
|
|
607
|
-
const [r, o] = W(!1), a = e.props["aria-expanded"] === !0, i = r && !a, [c, f] = W(null), [d,
|
|
607
|
+
const [r, o] = W(!1), a = e.props["aria-expanded"] === !0, i = r && !a, [c, f] = W(null), [d, p] = W(null), v = Cn(), m = O(null), _ = O(null), l = O(null), u = Me(), h = Tr(i, _, "--u-duration-exit-fast"), y = () => {
|
|
608
608
|
l.current && clearTimeout(l.current), l.current = setTimeout(() => o(!0), n);
|
|
609
609
|
}, w = () => {
|
|
610
610
|
l.current && clearTimeout(l.current), o(!1);
|
|
611
611
|
};
|
|
612
612
|
Ke(() => {
|
|
613
|
-
i &&
|
|
613
|
+
i && p(zn(m.current, v));
|
|
614
614
|
}, [i, v]), Ke(() => {
|
|
615
615
|
var U;
|
|
616
616
|
if (!i || !d) return;
|
|
@@ -666,7 +666,7 @@ function Ar({ content: t, children: e, delay: n = 300 }) {
|
|
|
666
666
|
(T = k.onBlur) == null || T.call(k, E), w();
|
|
667
667
|
}
|
|
668
668
|
}),
|
|
669
|
-
|
|
669
|
+
h && d && xn(
|
|
670
670
|
/* @__PURE__ */ s(
|
|
671
671
|
"div",
|
|
672
672
|
{
|
|
@@ -696,13 +696,13 @@ const Ho = "_button_brl4b_4 _ring_r8i8z_125 _text_r8i8z_23", qo = "_sm_brl4b_49"
|
|
|
696
696
|
plain: Ko,
|
|
697
697
|
spinner: Xo
|
|
698
698
|
}, $e = K(function({ variant: e = "secondary", size: n, loading: r = !1, disabled: o, className: a, children: i, type: c, ...f }, d) {
|
|
699
|
-
const
|
|
699
|
+
const p = Be(n);
|
|
700
700
|
return /* @__PURE__ */ x(
|
|
701
701
|
"button",
|
|
702
702
|
{
|
|
703
703
|
ref: d,
|
|
704
704
|
type: c ?? "button",
|
|
705
|
-
className: F(Bt.button, Bt[e], Bt[
|
|
705
|
+
className: F(Bt.button, Bt[e], Bt[p], a),
|
|
706
706
|
disabled: o || r,
|
|
707
707
|
"aria-busy": r || void 0,
|
|
708
708
|
...f,
|
|
@@ -728,8 +728,8 @@ function He() {
|
|
|
728
728
|
function rs({ children: t }) {
|
|
729
729
|
return /* @__PURE__ */ s(Ln.Provider, { value: null, children: t });
|
|
730
730
|
}
|
|
731
|
-
const
|
|
732
|
-
const
|
|
731
|
+
const wp = K(function({ label: e, hint: n, error: r, required: o = !1, fieldId: a, className: i, children: c, ...f }, d) {
|
|
732
|
+
const p = Me(), v = a ?? p, m = `${v}-message`, _ = `${v}-label`, l = !!(r ?? n);
|
|
733
733
|
return /* @__PURE__ */ x("div", { ref: d, className: F(Pt.field, i), ...f, children: [
|
|
734
734
|
/* @__PURE__ */ x("label", { id: _, className: Pt.label, htmlFor: v, children: [
|
|
735
735
|
e,
|
|
@@ -758,18 +758,18 @@ function $t({
|
|
|
758
758
|
width: c = "auto",
|
|
759
759
|
minWidth: f,
|
|
760
760
|
restoreFocus: d = !0,
|
|
761
|
-
hideOnScroll:
|
|
761
|
+
hideOnScroll: p = !1,
|
|
762
762
|
role: v,
|
|
763
763
|
ariaLabel: m,
|
|
764
764
|
id: _,
|
|
765
765
|
className: l,
|
|
766
766
|
children: u
|
|
767
767
|
}) {
|
|
768
|
-
const
|
|
768
|
+
const h = O(null), y = O(o);
|
|
769
769
|
le(() => {
|
|
770
770
|
y.current = o;
|
|
771
771
|
});
|
|
772
|
-
const [w, k] = W(null), [S, E] = W(null), T = Cn(), D = Tr(t,
|
|
772
|
+
const [w, k] = W(null), [S, E] = W(null), T = Cn(), D = Tr(t, h, "--u-duration-exit-fast"), U = D && !t, g = se(
|
|
773
773
|
($) => {
|
|
774
774
|
var j;
|
|
775
775
|
e(!1), $ && d && ((j = (r ?? n).current) == null || j.focus());
|
|
@@ -777,7 +777,7 @@ function $t({
|
|
|
777
777
|
[e, d, n, r]
|
|
778
778
|
), P = se(() => {
|
|
779
779
|
var B;
|
|
780
|
-
const $ = (B = n.current) == null ? void 0 : B.getBoundingClientRect(), j =
|
|
780
|
+
const $ = (B = n.current) == null ? void 0 : B.getBoundingClientRect(), j = h.current;
|
|
781
781
|
if (!$ || !j) return;
|
|
782
782
|
c === "anchor" ? j.style.width = `${f ? Math.max($.width, f) : $.width}px` : typeof c == "number" && (j.style.width = `${c}px`), j.style.maxHeight = "";
|
|
783
783
|
const C = j.getBoundingClientRect(), H = getComputedStyle(j).transform, M = H && H !== "none" ? new DOMMatrixReadOnly(H).a : 1, z = $r(
|
|
@@ -796,7 +796,7 @@ function $t({
|
|
|
796
796
|
if (!t) return;
|
|
797
797
|
const $ = (Y) => {
|
|
798
798
|
var ce, ne;
|
|
799
|
-
return ((ce =
|
|
799
|
+
return ((ce = h.current) == null ? void 0 : ce.contains(Y)) || ((ne = n.current) == null ? void 0 : ne.contains(Y)) || (y.current ?? []).some((ie) => {
|
|
800
800
|
var de;
|
|
801
801
|
return (de = ie.current) == null ? void 0 : de.contains(Y);
|
|
802
802
|
});
|
|
@@ -812,16 +812,16 @@ function $t({
|
|
|
812
812
|
}));
|
|
813
813
|
}, z = (Y) => {
|
|
814
814
|
var ce;
|
|
815
|
-
Y.target instanceof Node && ((ce =
|
|
815
|
+
Y.target instanceof Node && ((ce = h.current) != null && ce.contains(Y.target)) || (p ? g(!1) : M());
|
|
816
816
|
}, B = window.visualViewport;
|
|
817
817
|
return document.addEventListener("mousedown", j), document.addEventListener("keydown", C), window.addEventListener("scroll", z, !0), window.addEventListener("resize", z), B == null || B.addEventListener("resize", M), B == null || B.addEventListener("scroll", M), () => {
|
|
818
818
|
B == null || B.removeEventListener("resize", M), B == null || B.removeEventListener("scroll", M), document.removeEventListener("mousedown", j), document.removeEventListener("keydown", C), window.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z), H && cancelAnimationFrame(H);
|
|
819
819
|
};
|
|
820
|
-
}, [t, n, g, P,
|
|
820
|
+
}, [t, n, g, P, p]), !D || !S ? null : xn(
|
|
821
821
|
/* @__PURE__ */ s(
|
|
822
822
|
"div",
|
|
823
823
|
{
|
|
824
|
-
ref:
|
|
824
|
+
ref: h,
|
|
825
825
|
id: _,
|
|
826
826
|
role: v,
|
|
827
827
|
"aria-label": m,
|
|
@@ -884,7 +884,7 @@ function Cr({ trigger: t, children: e, align: n = "start" }) {
|
|
|
884
884
|
}, d = se((m) => {
|
|
885
885
|
var _;
|
|
886
886
|
i.current = m, (_ = m == null ? void 0 : m.querySelector('[role="menuitem"]:not([disabled])')) == null || _.focus();
|
|
887
|
-
}, []),
|
|
887
|
+
}, []), p = (m) => Mr(m, i.current, f), v = t.props;
|
|
888
888
|
return /* @__PURE__ */ x(Re, { children: [
|
|
889
889
|
vr(t, {
|
|
890
890
|
/* The trigger keeps its own ref beside the menu's. The rule takes a
|
|
@@ -909,7 +909,7 @@ function Cr({ trigger: t, children: e, align: n = "start" }) {
|
|
|
909
909
|
role: "menu",
|
|
910
910
|
id: c,
|
|
911
911
|
className: Rt.panel,
|
|
912
|
-
children: /* @__PURE__ */ s("div", { ref: d, className: Rt.content, onKeyDown:
|
|
912
|
+
children: /* @__PURE__ */ s("div", { ref: d, className: Rt.content, onKeyDown: p, children: /* @__PURE__ */ s(En.Provider, { value: { close: f }, children: e }) })
|
|
913
913
|
}
|
|
914
914
|
)
|
|
915
915
|
] });
|
|
@@ -931,16 +931,16 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
931
931
|
children: o
|
|
932
932
|
}
|
|
933
933
|
);
|
|
934
|
-
}),
|
|
934
|
+
}), kp = K(function({ className: e, ...n }, r) {
|
|
935
935
|
return /* @__PURE__ */ s("div", { ref: r, className: F(Rt.separator, e), ...n, role: "separator" });
|
|
936
|
-
}), fs = "_group_1ul68_9",
|
|
936
|
+
}), fs = "_group_1ul68_9", hs = "_split_1ul68_98", ps = "_trigger_1ul68_98", ms = "_arrow_1ul68_105", Kt = {
|
|
937
937
|
group: fs,
|
|
938
|
-
split:
|
|
939
|
-
trigger:
|
|
938
|
+
split: hs,
|
|
939
|
+
trigger: ps,
|
|
940
940
|
arrow: ms
|
|
941
941
|
}, _s = K(function({ size: e, className: n, children: r, ...o }, a) {
|
|
942
942
|
return /* @__PURE__ */ s("div", { ref: a, role: "group", className: F(Kt.group, n), ...o, children: e ? /* @__PURE__ */ s(Mo, { size: e, children: r }) : r });
|
|
943
|
-
}),
|
|
943
|
+
}), Np = K(function({
|
|
944
944
|
children: e,
|
|
945
945
|
menu: n,
|
|
946
946
|
variant: r = "secondary",
|
|
@@ -950,10 +950,10 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
950
950
|
disabled: c,
|
|
951
951
|
className: f,
|
|
952
952
|
...d
|
|
953
|
-
},
|
|
953
|
+
}, p) {
|
|
954
954
|
const v = ve(), m = Be(o);
|
|
955
955
|
return /* @__PURE__ */ x(_s, { className: F(Kt.split, f), children: [
|
|
956
|
-
/* @__PURE__ */ s($e, { ref:
|
|
956
|
+
/* @__PURE__ */ s($e, { ref: p, variant: r, size: m, disabled: c, ...d, children: e }),
|
|
957
957
|
/* @__PURE__ */ s(
|
|
958
958
|
Cr,
|
|
959
959
|
{
|
|
@@ -983,7 +983,7 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
983
983
|
}
|
|
984
984
|
)
|
|
985
985
|
] });
|
|
986
|
-
}), gs = "
|
|
986
|
+
}), gs = "_card_14fhx_4 _text_r8i8z_23", vs = "_header_14fhx_22", bs = "_divider_14fhx_31", ys = "_body_14fhx_37", ws = "_collapse_14fhx_38", ks = "_collapsed_14fhx_50", Ns = "_collapseInner_14fhx_54", xs = "_headerText_14fhx_61", $s = "_eyebrow_14fhx_69", Ss = "_title_14fhx_77", Ts = "_headerRight_14fhx_86", Ds = "_collapseButton_14fhx_93 _ring_r8i8z_125", As = "_flush_14fhx_37", Ze = {
|
|
987
987
|
card: gs,
|
|
988
988
|
header: vs,
|
|
989
989
|
divider: bs,
|
|
@@ -997,7 +997,7 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
997
997
|
headerRight: Ts,
|
|
998
998
|
collapseButton: Ds,
|
|
999
999
|
flush: As
|
|
1000
|
-
}, Pn = at(null),
|
|
1000
|
+
}, Pn = at(null), xp = K(function({
|
|
1001
1001
|
collapsible: e = !1,
|
|
1002
1002
|
defaultCollapsed: n = !1,
|
|
1003
1003
|
collapsed: r,
|
|
@@ -1006,8 +1006,8 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1006
1006
|
children: i,
|
|
1007
1007
|
...c
|
|
1008
1008
|
}, f) {
|
|
1009
|
-
const [d,
|
|
1010
|
-
v ||
|
|
1009
|
+
const [d, p] = W(n), v = r !== void 0, m = v ? r : d, _ = () => {
|
|
1010
|
+
v || p(!m), o == null || o(!m);
|
|
1011
1011
|
}, l = Me();
|
|
1012
1012
|
return /* @__PURE__ */ s("section", { ref: f, className: F(Ze.card, a), ...c, children: /* @__PURE__ */ s(
|
|
1013
1013
|
Pn.Provider,
|
|
@@ -1016,7 +1016,7 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1016
1016
|
children: i
|
|
1017
1017
|
}
|
|
1018
1018
|
) });
|
|
1019
|
-
}), $
|
|
1019
|
+
}), $p = K(function({ title: e, eyebrow: n, actions: r, divider: o = !1, className: a, ...i }, c) {
|
|
1020
1020
|
const f = Qe(Pn), d = ve();
|
|
1021
1021
|
return /* @__PURE__ */ x("div", { ref: c, className: F(Ze.header, o && Ze.divider, a), ...i, children: [
|
|
1022
1022
|
/* @__PURE__ */ x("div", { className: Ze.headerText, children: [
|
|
@@ -1038,7 +1038,7 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1038
1038
|
)
|
|
1039
1039
|
] })
|
|
1040
1040
|
] });
|
|
1041
|
-
}),
|
|
1041
|
+
}), Sp = K(function({ flush: e = !1, className: n, children: r, ...o }, a) {
|
|
1042
1042
|
const i = Qe(Pn), c = /* @__PURE__ */ s(
|
|
1043
1043
|
"div",
|
|
1044
1044
|
{
|
|
@@ -1064,14 +1064,14 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1064
1064
|
Nn(c, () => f.current), le(() => {
|
|
1065
1065
|
f.current && (f.current.indeterminate = n);
|
|
1066
1066
|
}, [n]);
|
|
1067
|
-
const d = He(),
|
|
1068
|
-
return /* @__PURE__ */ x("label", { className: F(vt.wrapper, d && vt.field, d && v === "sm" && vt.sm, r), style: o, htmlFor:
|
|
1067
|
+
const d = He(), p = a ?? (d == null ? void 0 : d.id), v = Be(void 0);
|
|
1068
|
+
return /* @__PURE__ */ x("label", { className: F(vt.wrapper, d && vt.field, d && v === "sm" && vt.sm, r), style: o, htmlFor: p, children: [
|
|
1069
1069
|
/* @__PURE__ */ s(
|
|
1070
1070
|
"input",
|
|
1071
1071
|
{
|
|
1072
1072
|
ref: f,
|
|
1073
1073
|
type: "checkbox",
|
|
1074
|
-
id:
|
|
1074
|
+
id: p,
|
|
1075
1075
|
"aria-describedby": i["aria-describedby"] ?? (d == null ? void 0 : d.describedBy),
|
|
1076
1076
|
"aria-required": (d == null ? void 0 : d.required) || void 0,
|
|
1077
1077
|
className: vt.input,
|
|
@@ -1103,15 +1103,15 @@ function zr(t, e, n) {
|
|
|
1103
1103
|
return;
|
|
1104
1104
|
}
|
|
1105
1105
|
if (!d.open) return;
|
|
1106
|
-
const
|
|
1107
|
-
if (
|
|
1106
|
+
const p = typeof e == "number" ? e : Vt(getComputedStyle(d), e);
|
|
1107
|
+
if (p <= 0 || rn()) {
|
|
1108
1108
|
i.current = !0, d.close();
|
|
1109
1109
|
return;
|
|
1110
1110
|
}
|
|
1111
1111
|
a(!0);
|
|
1112
1112
|
const v = window.setTimeout(() => {
|
|
1113
1113
|
a(!1), i.current = !0, d.close();
|
|
1114
|
-
},
|
|
1114
|
+
}, p);
|
|
1115
1115
|
return () => window.clearTimeout(v);
|
|
1116
1116
|
}, [t, e]), { dialogRef: r, closing: o, beimSchliessen: c, beimAbbrechen: f };
|
|
1117
1117
|
}
|
|
@@ -1162,32 +1162,32 @@ function Kn(t, e) {
|
|
|
1162
1162
|
const r = e.toLowerCase();
|
|
1163
1163
|
let o = new Array(e.length).fill(null);
|
|
1164
1164
|
const a = [];
|
|
1165
|
-
for (let
|
|
1165
|
+
for (let p = 0; p < n.length; p++) {
|
|
1166
1166
|
const v = new Array(e.length).fill(null), m = new Array(e.length).fill(null);
|
|
1167
1167
|
for (let _ = 0; _ < e.length; _++) {
|
|
1168
|
-
if (r[_] !== n[
|
|
1168
|
+
if (r[_] !== n[p]) continue;
|
|
1169
1169
|
const l = Ys(e, _) ? Hs : 0;
|
|
1170
|
-
if (
|
|
1170
|
+
if (p === 0) {
|
|
1171
1171
|
v[_] = l;
|
|
1172
1172
|
continue;
|
|
1173
1173
|
}
|
|
1174
1174
|
for (let u = 0; u < _; u++) {
|
|
1175
|
-
const
|
|
1176
|
-
if (
|
|
1177
|
-
const y =
|
|
1175
|
+
const h = o[u] ?? null;
|
|
1176
|
+
if (h === null) continue;
|
|
1177
|
+
const y = h + l + (u === _ - 1 ? qs : 0);
|
|
1178
1178
|
(v[_] === null || y > v[_]) && (v[_] = y, m[_] = u);
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
1181
|
o = v, a.push(m);
|
|
1182
1182
|
}
|
|
1183
1183
|
let i = null;
|
|
1184
|
-
for (let
|
|
1185
|
-
o[
|
|
1184
|
+
for (let p = 0; p < e.length; p++)
|
|
1185
|
+
o[p] !== null && (i === null || o[p] > o[i]) && (i = p);
|
|
1186
1186
|
if (i === null) return null;
|
|
1187
1187
|
const c = [];
|
|
1188
1188
|
let f = i;
|
|
1189
|
-
for (let
|
|
1190
|
-
c.push(f), f = a[
|
|
1189
|
+
for (let p = n.length - 1; p >= 0 && f !== null; p--)
|
|
1190
|
+
c.push(f), f = a[p][f];
|
|
1191
1191
|
c.reverse();
|
|
1192
1192
|
const d = (e.length - n.length) * js;
|
|
1193
1193
|
return { rank: o[i] - d, finds: Ks(c) };
|
|
@@ -1211,9 +1211,9 @@ function Xs(t, e) {
|
|
|
1211
1211
|
a.push({ tier: 0, find: { kandidat: c, rank: d.rank + f, finds: d.finds } });
|
|
1212
1212
|
continue;
|
|
1213
1213
|
}
|
|
1214
|
-
const
|
|
1215
|
-
if (
|
|
1216
|
-
a.push({ tier: 1, find: { kandidat: c, rank:
|
|
1214
|
+
const p = c.gruppe === void 0 ? null : Kn(n, c.gruppe);
|
|
1215
|
+
if (p !== null) {
|
|
1216
|
+
a.push({ tier: 1, find: { kandidat: c, rank: p.rank + f, finds: [] } });
|
|
1217
1217
|
continue;
|
|
1218
1218
|
}
|
|
1219
1219
|
o && ((i = c.keywords) != null && i.some((v) => v.toLowerCase().includes(r))) && a.push({ tier: 2, find: { kandidat: c, rank: f, finds: [] } });
|
|
@@ -1228,7 +1228,7 @@ function Qs(t) {
|
|
|
1228
1228
|
const n = document.createElement("div");
|
|
1229
1229
|
return n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("data-umriss-announcer", ""), n.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0", t.append(n), Xn.set(t, n), n;
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function pt(t, e) {
|
|
1232
1232
|
if (typeof document > "u") return;
|
|
1233
1233
|
const n = Qs(zn(e, () => null));
|
|
1234
1234
|
Ct !== null && clearTimeout(Ct), Ct = setTimeout(() => {
|
|
@@ -1240,7 +1240,7 @@ function ht(t, e) {
|
|
|
1240
1240
|
function Bn() {
|
|
1241
1241
|
Ct !== null && clearTimeout(Ct), Ct = null;
|
|
1242
1242
|
}
|
|
1243
|
-
const Js = "_dialog_1kg16_7 _text_r8i8z_23", ei = "_pane_1kg16_2", ti = "_field_1kg16_87 _field_r8i8z_90", ni = "_bodyWrap_1kg16_126", ri = "_body_1kg16_126", oi = "_list_1kg16_147 _scroll_r8i8z_96", si = "_groupHeading_1kg16_157", ii = "_row_1kg16_166", ai = "_rowActive_1kg16_180", ci = "_icon_1kg16_188", li = "_name_1kg16_197", di = "_mark_1kg16_208", ui = "_group_1kg16_157", fi = "_noFinds_1kg16_219",
|
|
1243
|
+
const Js = "_dialog_1kg16_7 _text_r8i8z_23", ei = "_pane_1kg16_2", ti = "_field_1kg16_87 _field_r8i8z_90", ni = "_bodyWrap_1kg16_126", ri = "_body_1kg16_126", oi = "_list_1kg16_147 _scroll_r8i8z_96", si = "_groupHeading_1kg16_157", ii = "_row_1kg16_166", ai = "_rowActive_1kg16_180", ci = "_icon_1kg16_188", li = "_name_1kg16_197", di = "_mark_1kg16_208", ui = "_group_1kg16_157", fi = "_noFinds_1kg16_219", hi = "_moreFinds_1kg16_220", pi = "_footer_1kg16_229", mi = "_key_1kg16_245", xe = {
|
|
1244
1244
|
dialog: Js,
|
|
1245
1245
|
pane: ei,
|
|
1246
1246
|
field: ti,
|
|
@@ -1255,8 +1255,8 @@ const Js = "_dialog_1kg16_7 _text_r8i8z_23", ei = "_pane_1kg16_2", ti = "_field_
|
|
|
1255
1255
|
mark: di,
|
|
1256
1256
|
group: ui,
|
|
1257
1257
|
noFinds: fi,
|
|
1258
|
-
moreFinds:
|
|
1259
|
-
footer:
|
|
1258
|
+
moreFinds: hi,
|
|
1259
|
+
footer: pi,
|
|
1260
1260
|
key: mi
|
|
1261
1261
|
};
|
|
1262
1262
|
function Zn(t) {
|
|
@@ -1270,7 +1270,7 @@ function Zn(t) {
|
|
|
1270
1270
|
icon: t.icon
|
|
1271
1271
|
};
|
|
1272
1272
|
}
|
|
1273
|
-
const
|
|
1273
|
+
const Tp = K(function({
|
|
1274
1274
|
open: e,
|
|
1275
1275
|
onClose: n,
|
|
1276
1276
|
items: r,
|
|
@@ -1280,12 +1280,12 @@ const Th = K(function({
|
|
|
1280
1280
|
className: c,
|
|
1281
1281
|
onCancel: f,
|
|
1282
1282
|
onMouseDown: d,
|
|
1283
|
-
onKeyDown:
|
|
1283
|
+
onKeyDown: p,
|
|
1284
1284
|
onKeyDownCapture: v,
|
|
1285
1285
|
...m
|
|
1286
1286
|
}, _) {
|
|
1287
1287
|
var ae;
|
|
1288
|
-
const l = ve(), u = Me(),
|
|
1288
|
+
const l = ve(), u = Me(), h = `${u}-list`, { dialogRef: y, beimSchliessen: w, beimAbbrechen: k } = zr(e, 0, n), S = O(null), E = O(null), [T, D] = W(""), [U, g] = W(null), P = T.trim() !== "", $ = ye(() => r.map(Zn), [r]), j = ye(() => Xs($, T), [$, T]), C = ye(
|
|
1289
1289
|
() => (a ?? []).map((b) => ({
|
|
1290
1290
|
kandidat: Zn(b),
|
|
1291
1291
|
rank: 0,
|
|
@@ -1296,7 +1296,7 @@ const Th = K(function({
|
|
|
1296
1296
|
const b = [];
|
|
1297
1297
|
for (const A of H) {
|
|
1298
1298
|
const R = A.kandidat.group;
|
|
1299
|
-
let V = b.find((
|
|
1299
|
+
let V = b.find((he) => he.name === R);
|
|
1300
1300
|
V === void 0 && (V = { name: R, finds: [] }, b.push(V)), V.finds.push(A);
|
|
1301
1301
|
}
|
|
1302
1302
|
return b;
|
|
@@ -1317,7 +1317,7 @@ const Th = K(function({
|
|
|
1317
1317
|
Bn();
|
|
1318
1318
|
return;
|
|
1319
1319
|
}
|
|
1320
|
-
!P && ue === 0 ||
|
|
1320
|
+
!P && ue === 0 || pt(ue === 0 ? l.paletteNoFinds : l.paletteFindCount(ue), S.current);
|
|
1321
1321
|
}, [e, T, P, ue]), le(() => {
|
|
1322
1322
|
var b;
|
|
1323
1323
|
Y !== null && ((b = document.getElementById(_n(u, Y))) == null || b.scrollIntoView({ block: "nearest" }));
|
|
@@ -1333,7 +1333,7 @@ const Th = K(function({
|
|
|
1333
1333
|
const I = (b) => {
|
|
1334
1334
|
if (ne(), B.length === 0) return;
|
|
1335
1335
|
const A = B.findIndex((V) => V.kandidat.id === Y), R = B[In(A === -1 ? 0 : A, B.length, b)].kandidat;
|
|
1336
|
-
g(R.id),
|
|
1336
|
+
g(R.id), pt(l.optionActive(R.name, { group: R.gruppe }), S.current);
|
|
1337
1337
|
}, J = (b) => {
|
|
1338
1338
|
if (!(b.nativeEvent.isComposing || b.defaultPrevented)) {
|
|
1339
1339
|
if (b.key === "ArrowDown") {
|
|
@@ -1350,7 +1350,7 @@ const Th = K(function({
|
|
|
1350
1350
|
}
|
|
1351
1351
|
b.key === "Escape" && (b.preventDefault(), n());
|
|
1352
1352
|
}
|
|
1353
|
-
},
|
|
1353
|
+
}, pe = r.some((b) => b.icon !== void 0) || (a ?? []).some((b) => b.icon !== void 0);
|
|
1354
1354
|
return /* @__PURE__ */ s(
|
|
1355
1355
|
"dialog",
|
|
1356
1356
|
{
|
|
@@ -1359,7 +1359,7 @@ const Th = K(function({
|
|
|
1359
1359
|
"aria-label": l.palettePanel,
|
|
1360
1360
|
...m,
|
|
1361
1361
|
onKeyDownCapture: (b) => {
|
|
1362
|
-
v == null || v(b),
|
|
1362
|
+
v == null || v(b), p == null || p(b);
|
|
1363
1363
|
},
|
|
1364
1364
|
onClose: () => {
|
|
1365
1365
|
var b, A;
|
|
@@ -1383,7 +1383,7 @@ const Th = K(function({
|
|
|
1383
1383
|
"aria-label": l.paletteField,
|
|
1384
1384
|
role: "combobox",
|
|
1385
1385
|
"aria-expanded": B.length > 0,
|
|
1386
|
-
"aria-controls": B.length > 0 ?
|
|
1386
|
+
"aria-controls": B.length > 0 ? h : void 0,
|
|
1387
1387
|
"aria-activedescendant": Y === null ? void 0 : _n(u, Y),
|
|
1388
1388
|
autoComplete: "off",
|
|
1389
1389
|
spellCheck: !1,
|
|
@@ -1397,7 +1397,7 @@ const Th = K(function({
|
|
|
1397
1397
|
B.length > 0 && /* @__PURE__ */ s(
|
|
1398
1398
|
"div",
|
|
1399
1399
|
{
|
|
1400
|
-
id:
|
|
1400
|
+
id: h,
|
|
1401
1401
|
role: "listbox",
|
|
1402
1402
|
"aria-label": l.paletteList,
|
|
1403
1403
|
className: xe.list,
|
|
@@ -1408,7 +1408,7 @@ const Th = K(function({
|
|
|
1408
1408
|
find: V,
|
|
1409
1409
|
baseId: u,
|
|
1410
1410
|
active: V.kandidat.id === Y,
|
|
1411
|
-
withIcon:
|
|
1411
|
+
withIcon: pe,
|
|
1412
1412
|
onSweep: de,
|
|
1413
1413
|
onMove: ie,
|
|
1414
1414
|
onChoose: o
|
|
@@ -1490,7 +1490,7 @@ function gi(t, e) {
|
|
|
1490
1490
|
function vi(t) {
|
|
1491
1491
|
return t instanceof HTMLElement ? t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable : !1;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function Dp(t) {
|
|
1494
1494
|
const e = O(t);
|
|
1495
1495
|
le(() => {
|
|
1496
1496
|
e.current = t;
|
|
@@ -1527,7 +1527,7 @@ function Rr({
|
|
|
1527
1527
|
activeIndex: c,
|
|
1528
1528
|
onActivate: f,
|
|
1529
1529
|
onChoose: d,
|
|
1530
|
-
emptyText:
|
|
1530
|
+
emptyText: p
|
|
1531
1531
|
}) {
|
|
1532
1532
|
const [v, m] = W(null);
|
|
1533
1533
|
le(() => {
|
|
@@ -1536,44 +1536,44 @@ function Rr({
|
|
|
1536
1536
|
}, [t, c, v]), le(() => {
|
|
1537
1537
|
const u = v == null ? void 0 : v.parentElement;
|
|
1538
1538
|
if (!u) return;
|
|
1539
|
-
const
|
|
1540
|
-
return u.addEventListener("mousedown",
|
|
1539
|
+
const h = (y) => y.preventDefault();
|
|
1540
|
+
return u.addEventListener("mousedown", h), () => u.removeEventListener("mousedown", h);
|
|
1541
1541
|
}, [v]);
|
|
1542
|
-
const _ = (u,
|
|
1542
|
+
const _ = (u, h) => /* @__PURE__ */ x(
|
|
1543
1543
|
"div",
|
|
1544
1544
|
{
|
|
1545
|
-
id: On(o,
|
|
1546
|
-
"data-index":
|
|
1545
|
+
id: On(o, h),
|
|
1546
|
+
"data-index": h,
|
|
1547
1547
|
role: "option",
|
|
1548
1548
|
"aria-selected": u.selected ?? !1,
|
|
1549
1549
|
"aria-disabled": u.disabled || void 0,
|
|
1550
1550
|
className: F(
|
|
1551
1551
|
_t.option,
|
|
1552
|
-
|
|
1552
|
+
h === c && _t.active,
|
|
1553
1553
|
u.selected && _t.selected,
|
|
1554
1554
|
u.disabled && _t.optionDisabled
|
|
1555
1555
|
),
|
|
1556
|
-
onMouseEnter: () => !u.disabled && f(
|
|
1557
|
-
onClick: () => !u.disabled && d(
|
|
1556
|
+
onMouseEnter: () => !u.disabled && f(h),
|
|
1557
|
+
onClick: () => !u.disabled && d(h),
|
|
1558
1558
|
children: [
|
|
1559
1559
|
/* @__PURE__ */ s("span", { className: _t.optionLabel, children: u.label }),
|
|
1560
1560
|
u.selected && /* @__PURE__ */ s("svg", { viewBox: "0 0 10 8", width: "10", height: "8", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M1 4l2.5 2.5L9 1", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
1561
1561
|
]
|
|
1562
1562
|
},
|
|
1563
|
-
|
|
1563
|
+
h
|
|
1564
1564
|
), l = [];
|
|
1565
1565
|
for (let u = 0; u < i.length; ) {
|
|
1566
|
-
const
|
|
1567
|
-
if (
|
|
1566
|
+
const h = i[u].group;
|
|
1567
|
+
if (h === void 0) {
|
|
1568
1568
|
l.push(_(i[u], u)), u += 1;
|
|
1569
1569
|
continue;
|
|
1570
1570
|
}
|
|
1571
1571
|
const y = u;
|
|
1572
|
-
for (; u < i.length && i[u].group ===
|
|
1572
|
+
for (; u < i.length && i[u].group === h; ) u += 1;
|
|
1573
1573
|
const w = `${o}-group-${y}`;
|
|
1574
1574
|
l.push(
|
|
1575
1575
|
/* @__PURE__ */ x("div", { role: "group", "aria-labelledby": w, children: [
|
|
1576
|
-
/* @__PURE__ */ s("div", { id: w, role: "presentation", className: _t.groupLabel, children:
|
|
1576
|
+
/* @__PURE__ */ s("div", { id: w, role: "presentation", className: _t.groupLabel, children: h }),
|
|
1577
1577
|
i.slice(y, u).map((k, S) => _(k, y + S))
|
|
1578
1578
|
] }, `group-${y}`)
|
|
1579
1579
|
);
|
|
@@ -1590,7 +1590,7 @@ function Rr({
|
|
|
1590
1590
|
width: "anchor",
|
|
1591
1591
|
minWidth: 200,
|
|
1592
1592
|
className: _t.panel,
|
|
1593
|
-
children: /* @__PURE__ */ s("div", { ref: m, role: "listbox", id: o, className: _t.list, "aria-label": a, children: i.length === 0 ? /* @__PURE__ */ s("div", { className: _t.empty, children:
|
|
1593
|
+
children: /* @__PURE__ */ s("div", { ref: m, role: "listbox", id: o, className: _t.list, "aria-label": a, children: i.length === 0 ? /* @__PURE__ */ s("div", { className: _t.empty, children: p }) : l })
|
|
1594
1594
|
}
|
|
1595
1595
|
);
|
|
1596
1596
|
}
|
|
@@ -1610,7 +1610,7 @@ function Lt(t, { natural: e, extra: n } = {}) {
|
|
|
1610
1610
|
const r = t !== void 0 && Number.isFinite(t), o = {};
|
|
1611
1611
|
return r ? (o["--_chars"] = Qn(t), o.inlineSize = "fit-content") : e !== void 0 && Number.isFinite(e) && (o["--_chars"] = Qn(e)), n !== void 0 && n > 0 && (o["--_extra"] = n), Object.keys(o).length > 0 ? o : void 0;
|
|
1612
1612
|
}
|
|
1613
|
-
const
|
|
1613
|
+
const Ap = K(function({
|
|
1614
1614
|
options: e,
|
|
1615
1615
|
value: n,
|
|
1616
1616
|
onChange: r,
|
|
@@ -1620,17 +1620,17 @@ const Ah = K(function({
|
|
|
1620
1620
|
disabled: c = !1,
|
|
1621
1621
|
invalid: f,
|
|
1622
1622
|
emptyText: d,
|
|
1623
|
-
clearable:
|
|
1623
|
+
clearable: p = !1,
|
|
1624
1624
|
className: v,
|
|
1625
1625
|
style: m,
|
|
1626
1626
|
onKeyDown: _,
|
|
1627
1627
|
onKeyDownCapture: l,
|
|
1628
1628
|
"aria-label": u,
|
|
1629
|
-
"aria-labelledby":
|
|
1629
|
+
"aria-labelledby": h,
|
|
1630
1630
|
"aria-describedby": y,
|
|
1631
1631
|
...w
|
|
1632
1632
|
}, k) {
|
|
1633
|
-
const S = Be(a), E = He(), T = ve(), D = o ?? T.comboboxPlaceholder, U = d ?? T.noMatches, g = f ?? (E == null ? void 0 : E.invalid) ?? !1, [P, $] = W(!1), [j, C] = W(null), [H, M] = W(0), z = O(null), B = O(null), Y = Me(), ce = ye(() => e.find((I) => I.value === n) ?? null, [e, n]), ne = ye(() => Qt(e, j ?? ""), [e, j]), ie = (I) =>
|
|
1633
|
+
const S = Be(a), E = He(), T = ve(), D = o ?? T.comboboxPlaceholder, U = d ?? T.noMatches, g = f ?? (E == null ? void 0 : E.invalid) ?? !1, [P, $] = W(!1), [j, C] = W(null), [H, M] = W(0), z = O(null), B = O(null), Y = Me(), ce = ye(() => e.find((I) => I.value === n) ?? null, [e, n]), ne = ye(() => Qt(e, j ?? ""), [e, j]), ie = (I) => pt(I === 0 ? U : T.optionCount(I), z.current), de = () => {
|
|
1634
1634
|
M(Os(ne, n)), $(!0), ie(ne.length);
|
|
1635
1635
|
}, ue = () => {
|
|
1636
1636
|
Bn(), $(!1), C(null);
|
|
@@ -1644,10 +1644,10 @@ const Ah = K(function({
|
|
|
1644
1644
|
de();
|
|
1645
1645
|
return;
|
|
1646
1646
|
}
|
|
1647
|
-
const J = In(H, ne.length, I.key === "ArrowDown" ? 1 : -1),
|
|
1648
|
-
if (
|
|
1649
|
-
M(J),
|
|
1650
|
-
T.optionActive(
|
|
1647
|
+
const J = In(H, ne.length, I.key === "ArrowDown" ? 1 : -1), pe = ne[J];
|
|
1648
|
+
if (pe === void 0) return;
|
|
1649
|
+
M(J), pt(
|
|
1650
|
+
T.optionActive(pe.label, { selected: pe.value === n, disabled: pe.disabled }),
|
|
1651
1651
|
z.current
|
|
1652
1652
|
);
|
|
1653
1653
|
return;
|
|
@@ -1667,7 +1667,7 @@ const Ah = K(function({
|
|
|
1667
1667
|
className: F(
|
|
1668
1668
|
dt.wrapper,
|
|
1669
1669
|
S === "sm" && dt.wrapperSm,
|
|
1670
|
-
|
|
1670
|
+
p && dt.wrapperClearable,
|
|
1671
1671
|
v
|
|
1672
1672
|
),
|
|
1673
1673
|
...w,
|
|
@@ -1689,13 +1689,13 @@ const Ah = K(function({
|
|
|
1689
1689
|
"aria-autocomplete": "list",
|
|
1690
1690
|
"aria-activedescendant": P && ne[H] ? On(Y, H) : void 0,
|
|
1691
1691
|
"aria-label": u,
|
|
1692
|
-
"aria-labelledby":
|
|
1692
|
+
"aria-labelledby": h,
|
|
1693
1693
|
"aria-describedby": y ?? (E == null ? void 0 : E.describedBy),
|
|
1694
1694
|
"aria-required": (E == null ? void 0 : E.required) || void 0,
|
|
1695
1695
|
"aria-invalid": g || void 0,
|
|
1696
1696
|
placeholder: D,
|
|
1697
1697
|
value: Q,
|
|
1698
|
-
className: F(dt.input, S === "sm" && dt.sm,
|
|
1698
|
+
className: F(dt.input, S === "sm" && dt.sm, p && dt.inputClearable, g && dt.invalid),
|
|
1699
1699
|
onChange: (I) => {
|
|
1700
1700
|
C(I.target.value), M(0), P || de(), ie(Qt(e, I.target.value).length);
|
|
1701
1701
|
},
|
|
@@ -1706,7 +1706,7 @@ const Ah = K(function({
|
|
|
1706
1706
|
onBlur: () => ue()
|
|
1707
1707
|
}
|
|
1708
1708
|
),
|
|
1709
|
-
|
|
1709
|
+
p && !c && (n !== null || (j ?? "") !== "") && /* @__PURE__ */ s(
|
|
1710
1710
|
"button",
|
|
1711
1711
|
{
|
|
1712
1712
|
type: "button",
|
|
@@ -1759,11 +1759,11 @@ const Ah = K(function({
|
|
|
1759
1759
|
function Ii(t, e, n, r) {
|
|
1760
1760
|
const o = Math.min(...t), i = Math.max(...t) - o || 1, c = Math.max(1, t.length - 1);
|
|
1761
1761
|
return t.map((f, d) => {
|
|
1762
|
-
const
|
|
1763
|
-
return [
|
|
1762
|
+
const p = r + d / c * (e - r * 2), v = r + (1 - (f - o) / i) * (n - r * 2);
|
|
1763
|
+
return [p, v];
|
|
1764
1764
|
});
|
|
1765
1765
|
}
|
|
1766
|
-
const Hn = (t) => Math.max(0, Math.min(1, t)), Lr = (t) => Math.round(Hn(t) * 100), Bi = "_meter_1wz2z_4 _text_r8i8z_23", Oi = "_track_1wz2z_13", Hi = "_fill_1wz2z_21", qi = "_neutral_1wz2z_28", ji = "_accent_1wz2z_29", Wi = "_success_1wz2z_30", Gi = "_warning_1wz2z_31", Ui = "_danger_1wz2z_32", Vi = "_meterLabel_1wz2z_34", Yi = "_sparkline_1wz2z_45 _text_r8i8z_23", Ki = "_sparklineFill_1wz2z_56", Xi = "_sparklineEnd_1wz2z_66", Zi = "_sparklineAccent_1wz2z_81", Qi = "_sparklineDot_1wz2z_85",
|
|
1766
|
+
const Hn = (t) => Math.max(0, Math.min(1, t)), Lr = (t) => Math.round(Hn(t) * 100), Bi = "_meter_1wz2z_4 _text_r8i8z_23", Oi = "_track_1wz2z_13", Hi = "_fill_1wz2z_21", qi = "_neutral_1wz2z_28", ji = "_accent_1wz2z_29", Wi = "_success_1wz2z_30", Gi = "_warning_1wz2z_31", Ui = "_danger_1wz2z_32", Vi = "_meterLabel_1wz2z_34", Yi = "_sparkline_1wz2z_45 _text_r8i8z_23", Ki = "_sparklineFill_1wz2z_56", Xi = "_sparklineEnd_1wz2z_66", Zi = "_sparklineAccent_1wz2z_81", Qi = "_sparklineDot_1wz2z_85", ht = {
|
|
1767
1767
|
meter: Bi,
|
|
1768
1768
|
track: Oi,
|
|
1769
1769
|
fill: Hi,
|
|
@@ -1778,34 +1778,34 @@ const Hn = (t) => Math.max(0, Math.min(1, t)), Lr = (t) => Math.round(Hn(t) * 10
|
|
|
1778
1778
|
sparklineEnd: Xi,
|
|
1779
1779
|
sparklineAccent: Zi,
|
|
1780
1780
|
sparklineDot: Qi
|
|
1781
|
-
},
|
|
1782
|
-
const f = tt(), d = ve(),
|
|
1781
|
+
}, Mp = K(function({ value: e, tone: n = "accent", showLabel: r = !0, label: o, className: a, ...i }, c) {
|
|
1782
|
+
const f = tt(), d = ve(), p = Hn(e);
|
|
1783
1783
|
return /* @__PURE__ */ x(
|
|
1784
1784
|
"span",
|
|
1785
1785
|
{
|
|
1786
1786
|
ref: c,
|
|
1787
1787
|
"aria-label": i["aria-labelledby"] ? void 0 : o ?? d.fillLevel,
|
|
1788
|
-
className: F(
|
|
1788
|
+
className: F(ht.meter, a),
|
|
1789
1789
|
...i,
|
|
1790
1790
|
role: "meter",
|
|
1791
1791
|
"aria-valuemin": 0,
|
|
1792
1792
|
"aria-valuemax": 100,
|
|
1793
1793
|
"aria-valuenow": Lr(e),
|
|
1794
1794
|
children: [
|
|
1795
|
-
/* @__PURE__ */ s("span", { className:
|
|
1796
|
-
r && /* @__PURE__ */ s("span", { className:
|
|
1795
|
+
/* @__PURE__ */ s("span", { className: ht.track, children: /* @__PURE__ */ s("span", { className: F(ht.fill, ht[n]), style: { width: `${p * 100}%` } }) }),
|
|
1796
|
+
r && /* @__PURE__ */ s("span", { className: ht.meterLabel, children: f.percent(p) })
|
|
1797
1797
|
]
|
|
1798
1798
|
}
|
|
1799
1799
|
);
|
|
1800
1800
|
}), Ji = K(function({ data: e, width: n = 96, height: r = 28, tone: o = "ink", className: a, ...i }, c) {
|
|
1801
1801
|
const f = Me();
|
|
1802
1802
|
if (e.length < 2) return null;
|
|
1803
|
-
const d = n === "fill",
|
|
1803
|
+
const d = n === "fill", p = d ? 100 : n, v = d ? 100 : r, m = d ? 0 : 3, _ = Ii(e, p, v, m), l = _.map(([w, k]) => `${w},${k}`).join(" "), u = `M${m},${v - m} L${l.replace(/ /g, " L")} L${p - m},${v - m} Z`, [h, y] = _[_.length - 1] ?? [0, 0];
|
|
1804
1804
|
return /* @__PURE__ */ x(
|
|
1805
1805
|
"span",
|
|
1806
1806
|
{
|
|
1807
1807
|
ref: c,
|
|
1808
|
-
className: F(
|
|
1808
|
+
className: F(ht.sparkline, d && ht.sparklineFill, o === "accent" && ht.sparklineAccent, a),
|
|
1809
1809
|
...i,
|
|
1810
1810
|
style: d ? { height: r, ...i.style } : i.style,
|
|
1811
1811
|
children: [
|
|
@@ -1814,7 +1814,7 @@ const Hn = (t) => Math.max(0, Math.min(1, t)), Lr = (t) => Math.round(Hn(t) * 10
|
|
|
1814
1814
|
{
|
|
1815
1815
|
width: d ? "100%" : n,
|
|
1816
1816
|
height: d ? "100%" : r,
|
|
1817
|
-
viewBox: `0 0 ${
|
|
1817
|
+
viewBox: `0 0 ${p} ${v}`,
|
|
1818
1818
|
preserveAspectRatio: d ? "none" : void 0,
|
|
1819
1819
|
overflow: d ? "visible" : void 0,
|
|
1820
1820
|
"aria-hidden": "true",
|
|
@@ -1836,11 +1836,11 @@ const Hn = (t) => Math.max(0, Math.min(1, t)), Lr = (t) => Math.round(Hn(t) * 10
|
|
|
1836
1836
|
vectorEffect: d ? "non-scaling-stroke" : void 0
|
|
1837
1837
|
}
|
|
1838
1838
|
),
|
|
1839
|
-
!d && /* @__PURE__ */ s("circle", { cx:
|
|
1839
|
+
!d && /* @__PURE__ */ s("circle", { cx: h, cy: y, r: "2.2", className: ht.sparklineDot })
|
|
1840
1840
|
]
|
|
1841
1841
|
}
|
|
1842
1842
|
),
|
|
1843
|
-
d && /* @__PURE__ */ s("span", { className:
|
|
1843
|
+
d && /* @__PURE__ */ s("span", { className: ht.sparklineEnd, style: { left: `${h}%`, top: `${y}%` } })
|
|
1844
1844
|
]
|
|
1845
1845
|
}
|
|
1846
1846
|
);
|
|
@@ -1861,15 +1861,15 @@ const oa = {
|
|
|
1861
1861
|
ArrowRight: 1,
|
|
1862
1862
|
ArrowUp: -7,
|
|
1863
1863
|
ArrowDown: 7
|
|
1864
|
-
}, sa = (t) => oa[t], ia = (t, e) => t.getMonth() !== e.getMonth() || t.getFullYear() !== e.getFullYear(), aa = "_trigger_sksjy_4", ca = "_sm_sksjy_38", la = "_invalid_sksjy_44", da = "_value_sksjy_54", ua = "_placeholder_sksjy_65", fa = "_icon_sksjy_77",
|
|
1864
|
+
}, sa = (t) => oa[t], ia = (t, e) => t.getMonth() !== e.getMonth() || t.getFullYear() !== e.getFullYear(), aa = "_trigger_sksjy_4", ca = "_sm_sksjy_38", la = "_invalid_sksjy_44", da = "_value_sksjy_54", ua = "_placeholder_sksjy_65", fa = "_icon_sksjy_77", ha = "_panel_sksjy_86 _text_r8i8z_23", pa = "_head_sksjy_97", ma = "_month_sksjy_105", _a = "_weekdays_sksjy_110", ga = "_grid_sksjy_111", va = "_day_sksjy_130 _ring_r8i8z_125", ba = "_otherMonth_sksjy_158", ya = "_today_sksjy_166", wa = "_selected_sksjy_184", ka = "_foot_sksjy_191", Na = "_hangStart_sksjy_205", xa = "_hangEnd_sksjy_209", $a = "_timeRow_sksjy_217", Sa = "_timeLabel_sksjy_227", Ta = "_timeGroup_sksjy_235", Da = "_timeFieldWrap_sksjy_245", Aa = "_timeField_sksjy_245 _field_r8i8z_90", Ma = "_timeStepper_sksjy_286", Ca = "_timeSeparator_sksjy_343", za = "_dstHint_sksjy_349", Ra = "_dstChoice_sksjy_356", La = "_dstButtons_sksjy_362", Ea = "_footLeft_sksjy_367", Pa = "_triggerWrap_sksjy_382 _text_r8i8z_23 _extent_r8i8z_75", Fa = "_triggerWrapClearable_sksjy_392", Ia = "_triggerClear_sksjy_398", Ba = "_clearable_sksjy_425", Oa = "_rangeDash_sksjy_457", Ha = "_rangePanel_sksjy_462 _text_r8i8z_23", qa = "_rangeRight_sksjy_470", ja = "_rangeBody_sksjy_474", Wa = "_presetColumn_sksjy_480", Ga = "_preset_sksjy_480 _ring_r8i8z_125", Ua = "_presetActive_sksjy_513", Va = "_monthPair_sksjy_520", Ya = "_monthColumn_sksjy_525", Ka = "_pageSpacer_sksjy_563", Xa = "_dayEmpty_sksjy_569", Za = "_inRange_sksjy_576", Qa = "_rangeFrom_sksjy_586", Ja = "_rangeTo_sksjy_588", ec = "_rangeSingle_sksjy_590", tc = "_inPreview_sksjy_613", nc = "_previewEnd_sksjy_618", rc = "_footNote_sksjy_629", oc = "_timeRangeRow_sksjy_649", sc = "_timeHalf_sksjy_668", ic = "_timeHalfHead_sksjy_676", ac = "_timeDate_sksjy_683", cc = "_footNoteRight_sksjy_690", lc = "_timeFieldDisabled_sksjy_698", q = {
|
|
1865
1865
|
trigger: aa,
|
|
1866
1866
|
sm: ca,
|
|
1867
1867
|
invalid: la,
|
|
1868
1868
|
value: da,
|
|
1869
1869
|
placeholder: ua,
|
|
1870
1870
|
icon: fa,
|
|
1871
|
-
panel:
|
|
1872
|
-
head:
|
|
1871
|
+
panel: ha,
|
|
1872
|
+
head: pa,
|
|
1873
1873
|
month: ma,
|
|
1874
1874
|
weekdays: _a,
|
|
1875
1875
|
grid: ga,
|
|
@@ -1932,13 +1932,13 @@ function en({
|
|
|
1932
1932
|
rangeFrom: c = null,
|
|
1933
1933
|
rangeTo: f = null,
|
|
1934
1934
|
previewTo: d = null,
|
|
1935
|
-
onHoverDay:
|
|
1935
|
+
onHoverDay: p,
|
|
1936
1936
|
withoutPrevious: v = !1,
|
|
1937
1937
|
withoutNext: m = !1,
|
|
1938
1938
|
withoutOtherMonth: _ = !1,
|
|
1939
1939
|
today: l
|
|
1940
1940
|
}) {
|
|
1941
|
-
const u = ve(),
|
|
1941
|
+
const u = ve(), h = tt(), y = O(null);
|
|
1942
1942
|
le(() => {
|
|
1943
1943
|
var g, P;
|
|
1944
1944
|
t && ((P = (g = y.current) == null ? void 0 : g.querySelector('[data-active="true"]')) == null || P.focus());
|
|
@@ -1962,7 +1962,7 @@ function en({
|
|
|
1962
1962
|
return /* @__PURE__ */ x(Re, { children: [
|
|
1963
1963
|
/* @__PURE__ */ x("div", { className: q.head, children: [
|
|
1964
1964
|
v ? /* @__PURE__ */ s("span", { className: q.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(mn, { size: "sm", "aria-label": u.previousMonth, onClick: () => k(-1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M6.4 1.8 3.2 5l3.2 3.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
1965
|
-
/* @__PURE__ */ s("span", { className: q.month, children:
|
|
1965
|
+
/* @__PURE__ */ s("span", { className: q.month, children: h.month(e) }),
|
|
1966
1966
|
m ? /* @__PURE__ */ s("span", { className: q.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(mn, { size: "sm", "aria-label": u.nextMonth, onClick: () => k(1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M3.6 1.8 6.8 5 3.6 8.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
|
|
1967
1967
|
] }),
|
|
1968
1968
|
/* @__PURE__ */ s("div", { className: q.weekdays, "aria-hidden": "true", children: u.weekdays.map((g) => /* @__PURE__ */ s("span", { children: g }, g)) }),
|
|
@@ -1972,7 +1972,7 @@ function en({
|
|
|
1972
1972
|
ref: y,
|
|
1973
1973
|
className: q.grid,
|
|
1974
1974
|
onKeyDown: w,
|
|
1975
|
-
onMouseLeave:
|
|
1975
|
+
onMouseLeave: p ? () => p(null) : void 0,
|
|
1976
1976
|
children: S.map((g) => {
|
|
1977
1977
|
const P = g.getMonth() === e.getMonth();
|
|
1978
1978
|
if (!P && _)
|
|
@@ -1984,7 +1984,7 @@ function en({
|
|
|
1984
1984
|
type: "button",
|
|
1985
1985
|
tabIndex: $ ? 0 : -1,
|
|
1986
1986
|
"data-active": $ || void 0,
|
|
1987
|
-
"aria-label":
|
|
1987
|
+
"aria-label": h.dateLong(g),
|
|
1988
1988
|
"aria-pressed": Xe(g, a) || j || C || z,
|
|
1989
1989
|
"aria-current": Xe(g, E) ? "date" : void 0,
|
|
1990
1990
|
className: F(
|
|
@@ -2000,7 +2000,7 @@ function en({
|
|
|
2000
2000
|
C && U && q.previewEnd
|
|
2001
2001
|
),
|
|
2002
2002
|
onClick: () => i(g),
|
|
2003
|
-
onMouseEnter:
|
|
2003
|
+
onMouseEnter: p ? () => p(g) : void 0,
|
|
2004
2004
|
children: g.getDate()
|
|
2005
2005
|
},
|
|
2006
2006
|
g.toISOString()
|
|
@@ -2033,14 +2033,14 @@ function sn({
|
|
|
2033
2033
|
state: c,
|
|
2034
2034
|
display: f,
|
|
2035
2035
|
icon: d,
|
|
2036
|
-
hasValue:
|
|
2036
|
+
hasValue: p,
|
|
2037
2037
|
placeholder: v,
|
|
2038
2038
|
onClear: m,
|
|
2039
2039
|
ariaLabel: _,
|
|
2040
2040
|
chars: l,
|
|
2041
2041
|
natural: u
|
|
2042
2042
|
}) {
|
|
2043
|
-
const { disabled:
|
|
2043
|
+
const { disabled: h, invalid: y, clearable: w, size: k } = c, { "aria-label": S, "aria-labelledby": E, "aria-describedby": T, ...D } = n ?? {};
|
|
2044
2044
|
return /* @__PURE__ */ x(
|
|
2045
2045
|
"span",
|
|
2046
2046
|
{
|
|
@@ -2055,7 +2055,7 @@ function sn({
|
|
|
2055
2055
|
ref: o,
|
|
2056
2056
|
type: "button",
|
|
2057
2057
|
id: i == null ? void 0 : i.id,
|
|
2058
|
-
disabled:
|
|
2058
|
+
disabled: h,
|
|
2059
2059
|
"aria-haspopup": "dialog",
|
|
2060
2060
|
"aria-expanded": a.open,
|
|
2061
2061
|
"aria-controls": a.open ? a.id : void 0,
|
|
@@ -2067,16 +2067,16 @@ function sn({
|
|
|
2067
2067
|
q.trigger,
|
|
2068
2068
|
k === "sm" && q.sm,
|
|
2069
2069
|
y && q.invalid,
|
|
2070
|
-
w &&
|
|
2070
|
+
w && p && !h && q.clearable
|
|
2071
2071
|
),
|
|
2072
2072
|
onClick: a.onToggle,
|
|
2073
2073
|
children: [
|
|
2074
|
-
/* @__PURE__ */ s("span", { className: F(q.value, !
|
|
2074
|
+
/* @__PURE__ */ s("span", { className: F(q.value, !p && q.placeholder), children: p ? f : v }),
|
|
2075
2075
|
d
|
|
2076
2076
|
]
|
|
2077
2077
|
}
|
|
2078
2078
|
),
|
|
2079
|
-
w &&
|
|
2079
|
+
w && p && !h && /* @__PURE__ */ s(
|
|
2080
2080
|
"button",
|
|
2081
2081
|
{
|
|
2082
2082
|
type: "button",
|
|
@@ -2092,7 +2092,7 @@ function sn({
|
|
|
2092
2092
|
}
|
|
2093
2093
|
);
|
|
2094
2094
|
}
|
|
2095
|
-
const
|
|
2095
|
+
const Cp = K(function({
|
|
2096
2096
|
value: e,
|
|
2097
2097
|
onChange: n,
|
|
2098
2098
|
placeholder: r,
|
|
@@ -2102,9 +2102,9 @@ const Ch = K(function({
|
|
|
2102
2102
|
chars: c,
|
|
2103
2103
|
clearable: f = !1,
|
|
2104
2104
|
className: d,
|
|
2105
|
-
...
|
|
2105
|
+
...p
|
|
2106
2106
|
}, v) {
|
|
2107
|
-
const m = Be(i), _ = He(), l = ve(), u = tt(),
|
|
2107
|
+
const m = Be(i), _ = He(), l = ve(), u = tt(), h = r ?? l.datePlaceholder, y = a ?? (_ == null ? void 0 : _.invalid) ?? !1, [w, k] = W(!1), [S, E] = W(() => je(e ?? /* @__PURE__ */ new Date())), [T, D] = W(() => e ?? /* @__PURE__ */ new Date()), U = O(null), g = O(null), P = O(null), $ = Me(), j = () => {
|
|
2108
2108
|
const M = e ?? /* @__PURE__ */ new Date();
|
|
2109
2109
|
E(je(M)), D(M), k(!0);
|
|
2110
2110
|
}, C = (M = !0) => {
|
|
@@ -2118,7 +2118,7 @@ const Ch = K(function({
|
|
|
2118
2118
|
sn,
|
|
2119
2119
|
{
|
|
2120
2120
|
rootRef: v,
|
|
2121
|
-
root:
|
|
2121
|
+
root: p,
|
|
2122
2122
|
className: d,
|
|
2123
2123
|
wrapRef: g,
|
|
2124
2124
|
triggerRef: U,
|
|
@@ -2128,13 +2128,13 @@ const Ch = K(function({
|
|
|
2128
2128
|
hasValue: !!e,
|
|
2129
2129
|
display: e && u.date(e),
|
|
2130
2130
|
icon: /* @__PURE__ */ s(Nr, { className: q.icon }),
|
|
2131
|
-
placeholder:
|
|
2131
|
+
placeholder: h,
|
|
2132
2132
|
onClear: () => {
|
|
2133
2133
|
n(null), w && C(!1);
|
|
2134
2134
|
},
|
|
2135
2135
|
ariaLabel: l.dateClear,
|
|
2136
2136
|
chars: c,
|
|
2137
|
-
natural: on((M) => u.date(M).length,
|
|
2137
|
+
natural: on((M) => u.date(M).length, h)
|
|
2138
2138
|
}
|
|
2139
2139
|
),
|
|
2140
2140
|
/* @__PURE__ */ s(
|
|
@@ -2195,7 +2195,7 @@ function bn(t) {
|
|
|
2195
2195
|
);
|
|
2196
2196
|
return e.kind === "ambiguous" && t.getTime() >= e.later.getTime() ? "later" : "earlier";
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2198
|
+
function hc(t, e) {
|
|
2199
2199
|
const n = e ? 1e3 : 6e4;
|
|
2200
2200
|
return new Date(Math.floor(t.getTime() / n) * n);
|
|
2201
2201
|
}
|
|
@@ -2206,15 +2206,15 @@ function Ht({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
|
|
|
2206
2206
|
const d = (l) => {
|
|
2207
2207
|
const u = Number.parseInt(f.current, 10) || 0;
|
|
2208
2208
|
e(Nt((u + l + n + 1) % (n + 1)));
|
|
2209
|
-
},
|
|
2210
|
-
|
|
2209
|
+
}, p = O(null), v = () => {
|
|
2210
|
+
p.current !== null && (clearTimeout(p.current), p.current = null);
|
|
2211
2211
|
};
|
|
2212
2212
|
le(() => v, []);
|
|
2213
2213
|
const m = (l) => {
|
|
2214
|
-
var
|
|
2215
|
-
d(l), (
|
|
2214
|
+
var h;
|
|
2215
|
+
d(l), (h = a == null ? void 0 : a.current) == null || h.focus();
|
|
2216
2216
|
const u = (y) => {
|
|
2217
|
-
|
|
2217
|
+
p.current = setTimeout(() => {
|
|
2218
2218
|
d(l), u(Math.max(60, y * 0.9));
|
|
2219
2219
|
}, y);
|
|
2220
2220
|
};
|
|
@@ -2237,8 +2237,8 @@ function Ht({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
|
|
|
2237
2237
|
onChange: (l) => {
|
|
2238
2238
|
const u = l.target.value.replace(/\D/g, "").slice(0, 2);
|
|
2239
2239
|
if (e(u), u.length === 2 && (o != null && o.current)) {
|
|
2240
|
-
const
|
|
2241
|
-
requestAnimationFrame(() =>
|
|
2240
|
+
const h = o.current;
|
|
2241
|
+
requestAnimationFrame(() => h.focus());
|
|
2242
2242
|
}
|
|
2243
2243
|
},
|
|
2244
2244
|
onKeyDown: _,
|
|
@@ -2287,7 +2287,7 @@ function Ht({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
|
|
|
2287
2287
|
] })
|
|
2288
2288
|
] });
|
|
2289
2289
|
}
|
|
2290
|
-
const
|
|
2290
|
+
const zp = K(function({
|
|
2291
2291
|
value: e,
|
|
2292
2292
|
onChange: n,
|
|
2293
2293
|
withSeconds: r = !1,
|
|
@@ -2297,10 +2297,10 @@ const zh = K(function({
|
|
|
2297
2297
|
chars: c,
|
|
2298
2298
|
invalid: f,
|
|
2299
2299
|
clearable: d = !1,
|
|
2300
|
-
className:
|
|
2300
|
+
className: p,
|
|
2301
2301
|
...v
|
|
2302
2302
|
}, m) {
|
|
2303
|
-
const _ = Be(i), l = He(), u = ve(),
|
|
2303
|
+
const _ = Be(i), l = He(), u = ve(), h = tt(), y = o ?? u.dateTimePlaceholder, w = f ?? (l == null ? void 0 : l.invalid) ?? !1, [k, S] = W(!1), [E, T] = W(() => je(e ?? /* @__PURE__ */ new Date())), [D, U] = W(() => e ?? /* @__PURE__ */ new Date()), [g, P] = W(e), [$, j] = W("00"), [C, H] = W("00"), [M, z] = W("00"), [B, Y] = W("earlier"), ce = O(null), ne = O(null), ie = O(null), de = O(null), ue = O(null), fe = O(null), Z = Me(), Q = () => {
|
|
2304
2304
|
const A = e ?? /* @__PURE__ */ new Date();
|
|
2305
2305
|
T(je(A)), U(A), P(e ? A : null), j(Nt(e ? A.getHours() : 0)), H(Nt(e ? A.getMinutes() : 0)), z(Nt(e && r ? A.getSeconds() : 0)), Y(e ? bn(e) : "earlier"), S(!0);
|
|
2306
2306
|
}, I = (A = !0) => {
|
|
@@ -2313,10 +2313,10 @@ const zh = K(function({
|
|
|
2313
2313
|
Math.min(23, Number.parseInt($, 10) || 0),
|
|
2314
2314
|
Math.min(59, Number.parseInt(C, 10) || 0),
|
|
2315
2315
|
r ? Math.min(59, Number.parseInt(M, 10) || 0) : 0
|
|
2316
|
-
) : null, [g, $, C, M, r]),
|
|
2317
|
-
|
|
2316
|
+
) : null, [g, $, C, M, r]), pe = ye(() => J ? J.kind === "ambiguous" ? B === "earlier" ? J.earlier : J.later : J.date : null, [J, B]), ae = () => {
|
|
2317
|
+
pe && (n(pe), I());
|
|
2318
2318
|
}, b = () => {
|
|
2319
|
-
n(
|
|
2319
|
+
n(hc(/* @__PURE__ */ new Date(), r)), I();
|
|
2320
2320
|
};
|
|
2321
2321
|
return /* @__PURE__ */ x(Re, { children: [
|
|
2322
2322
|
/* @__PURE__ */ s(
|
|
@@ -2324,14 +2324,14 @@ const zh = K(function({
|
|
|
2324
2324
|
{
|
|
2325
2325
|
rootRef: m,
|
|
2326
2326
|
root: v,
|
|
2327
|
-
className:
|
|
2327
|
+
className: p,
|
|
2328
2328
|
wrapRef: ne,
|
|
2329
2329
|
triggerRef: ce,
|
|
2330
2330
|
panel: { id: Z, open: k, onToggle: () => k ? S(!1) : Q() },
|
|
2331
2331
|
field: l,
|
|
2332
2332
|
state: { disabled: a, invalid: w, clearable: d, size: _ },
|
|
2333
2333
|
hasValue: !!e,
|
|
2334
|
-
display: e &&
|
|
2334
|
+
display: e && h.dateTime(e, r),
|
|
2335
2335
|
icon: /* @__PURE__ */ s(xr, { className: q.icon }),
|
|
2336
2336
|
placeholder: y,
|
|
2337
2337
|
onClear: () => {
|
|
@@ -2339,7 +2339,7 @@ const zh = K(function({
|
|
|
2339
2339
|
},
|
|
2340
2340
|
ariaLabel: u.dateTimeClear,
|
|
2341
2341
|
chars: c,
|
|
2342
|
-
natural: on((A) =>
|
|
2342
|
+
natural: on((A) => h.dateTime(A, r).length, y)
|
|
2343
2343
|
}
|
|
2344
2344
|
),
|
|
2345
2345
|
/* @__PURE__ */ s(
|
|
@@ -2394,7 +2394,7 @@ const zh = K(function({
|
|
|
2394
2394
|
]
|
|
2395
2395
|
}
|
|
2396
2396
|
),
|
|
2397
|
-
(J == null ? void 0 : J.kind) === "missing" && /* @__PURE__ */ s("p", { className: q.dstHint, children: u.timeMissingHint(
|
|
2397
|
+
(J == null ? void 0 : J.kind) === "missing" && /* @__PURE__ */ s("p", { className: q.dstHint, children: u.timeMissingHint(h.time(J.date, r)) }),
|
|
2398
2398
|
(J == null ? void 0 : J.kind) === "ambiguous" && /* @__PURE__ */ x("div", { className: q.dstChoice, children: [
|
|
2399
2399
|
/* @__PURE__ */ s("p", { className: q.dstHint, children: u.timeAmbiguousHint }),
|
|
2400
2400
|
/* @__PURE__ */ x("div", { className: q.dstButtons, children: [
|
|
@@ -2404,7 +2404,7 @@ const zh = K(function({
|
|
|
2404
2404
|
size: "sm",
|
|
2405
2405
|
variant: B === "earlier" ? "primary" : "secondary",
|
|
2406
2406
|
onClick: () => Y("earlier"),
|
|
2407
|
-
children: u.timeEarlier(
|
|
2407
|
+
children: u.timeEarlier(h.offset(J.earlier))
|
|
2408
2408
|
}
|
|
2409
2409
|
),
|
|
2410
2410
|
/* @__PURE__ */ s(
|
|
@@ -2413,7 +2413,7 @@ const zh = K(function({
|
|
|
2413
2413
|
size: "sm",
|
|
2414
2414
|
variant: B === "later" ? "primary" : "secondary",
|
|
2415
2415
|
onClick: () => Y("later"),
|
|
2416
|
-
children: u.timeLater(
|
|
2416
|
+
children: u.timeLater(h.offset(J.later))
|
|
2417
2417
|
}
|
|
2418
2418
|
)
|
|
2419
2419
|
] })
|
|
@@ -2425,13 +2425,13 @@ const zh = K(function({
|
|
|
2425
2425
|
n(null), I();
|
|
2426
2426
|
}, children: u.clear })
|
|
2427
2427
|
] }),
|
|
2428
|
-
/* @__PURE__ */ s($e, { size: "sm", variant: "primary", disabled: !
|
|
2428
|
+
/* @__PURE__ */ s($e, { size: "sm", variant: "primary", disabled: !pe, onClick: ae, children: u.apply })
|
|
2429
2429
|
] })
|
|
2430
2430
|
] })
|
|
2431
2431
|
}
|
|
2432
2432
|
)
|
|
2433
2433
|
] });
|
|
2434
|
-
}),
|
|
2434
|
+
}), pc = 1440 * 60 * 1e3, tn = (t, e) => Math.round((Ie(e).getTime() - Ie(t).getTime()) / pc) + 1, mc = [
|
|
2435
2435
|
"today",
|
|
2436
2436
|
"yesterday",
|
|
2437
2437
|
"last7Days",
|
|
@@ -2467,7 +2467,7 @@ function _c(t, e) {
|
|
|
2467
2467
|
const jn = (t) => mc.map((e) => ({
|
|
2468
2468
|
label: t.presets[e],
|
|
2469
2469
|
range: () => _c(e, /* @__PURE__ */ new Date())
|
|
2470
|
-
})),
|
|
2470
|
+
})), Rp = jn(Mt);
|
|
2471
2471
|
function gc(t, e) {
|
|
2472
2472
|
const n = je(t).getTime(), r = je(Jt(t, 1)).getTime(), o = je(e).getTime();
|
|
2473
2473
|
return o === n || o === r ? null : o < n ? je(e) : Jt(je(e), -1);
|
|
@@ -2509,7 +2509,7 @@ function Ir({ view: t, onView: e, ...n }) {
|
|
|
2509
2509
|
/* @__PURE__ */ s("div", { className: q.monthColumn, children: /* @__PURE__ */ s(en, { view: o, onView: a, withoutPrevious: !0, ...r }) })
|
|
2510
2510
|
] });
|
|
2511
2511
|
}
|
|
2512
|
-
const
|
|
2512
|
+
const Lp = K(function({
|
|
2513
2513
|
value: e,
|
|
2514
2514
|
onChange: n,
|
|
2515
2515
|
placeholder: r,
|
|
@@ -2519,10 +2519,10 @@ const Lh = K(function({
|
|
|
2519
2519
|
chars: c,
|
|
2520
2520
|
clearable: f = !1,
|
|
2521
2521
|
presets: d,
|
|
2522
|
-
className:
|
|
2522
|
+
className: p,
|
|
2523
2523
|
...v
|
|
2524
2524
|
}, m) {
|
|
2525
|
-
const _ = Be(i), l = He(), u = ve(),
|
|
2525
|
+
const _ = Be(i), l = He(), u = ve(), h = tt(), y = r ?? u.dateRangePlaceholder, w = a ?? (l == null ? void 0 : l.invalid) ?? !1, k = ye(() => d ?? jn(u), [d, u]), [S, E] = W(!1), [T, D] = W(() => je((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [U, g] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [P, $] = W(null), [j, C] = W(null), H = O(null), M = O(null), z = O(null), B = Me(), Y = () => {
|
|
2526
2526
|
const I = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2527
2527
|
D(je(I)), g(I), $(null), C(null), E(!0);
|
|
2528
2528
|
}, ce = (I = !0) => {
|
|
@@ -2538,15 +2538,15 @@ const Lh = K(function({
|
|
|
2538
2538
|
ne(P, I);
|
|
2539
2539
|
};
|
|
2540
2540
|
le(() => {
|
|
2541
|
-
var J,
|
|
2541
|
+
var J, pe;
|
|
2542
2542
|
if (!S) return;
|
|
2543
2543
|
const I = z.current;
|
|
2544
|
-
I && (J = document.activeElement) != null && J.closest(`.${q.grid}`) && ((
|
|
2544
|
+
I && (J = document.activeElement) != null && J.closest(`.${q.grid}`) && ((pe = I.querySelector('[data-active="true"]')) == null || pe.focus());
|
|
2545
2545
|
}, [U, S]);
|
|
2546
2546
|
const de = P ?? (e == null ? void 0 : e.from) ?? null, ue = P ? null : (e == null ? void 0 : e.to) ?? null, fe = P ? j : null, Z = (() => {
|
|
2547
2547
|
if (P && j) {
|
|
2548
|
-
const [I, J] = Ie(j).getTime() < Ie(P).getTime() ? [j, P] : [P, j],
|
|
2549
|
-
return u.rangePreview(
|
|
2548
|
+
const [I, J] = Ie(j).getTime() < Ie(P).getTime() ? [j, P] : [P, j], pe = tn(I, J);
|
|
2549
|
+
return u.rangePreview(h.dateShort(I), h.dateShort(J), pe);
|
|
2550
2550
|
}
|
|
2551
2551
|
if (P) return u.chooseEndDate;
|
|
2552
2552
|
if (e) {
|
|
@@ -2565,7 +2565,7 @@ const Lh = K(function({
|
|
|
2565
2565
|
{
|
|
2566
2566
|
rootRef: m,
|
|
2567
2567
|
root: v,
|
|
2568
|
-
className:
|
|
2568
|
+
className: p,
|
|
2569
2569
|
wrapRef: M,
|
|
2570
2570
|
triggerRef: H,
|
|
2571
2571
|
panel: { id: B, open: S, onToggle: () => S ? E(!1) : Y() },
|
|
@@ -2573,9 +2573,9 @@ const Lh = K(function({
|
|
|
2573
2573
|
state: { disabled: o, invalid: w, clearable: f, size: _ },
|
|
2574
2574
|
hasValue: !!e,
|
|
2575
2575
|
display: e && /* @__PURE__ */ x(Re, { children: [
|
|
2576
|
-
|
|
2576
|
+
h.date(e.from),
|
|
2577
2577
|
/* @__PURE__ */ s("span", { className: q.rangeDash, children: "–" }),
|
|
2578
|
-
|
|
2578
|
+
h.date(e.to)
|
|
2579
2579
|
] }),
|
|
2580
2580
|
icon: /* @__PURE__ */ s(Nr, { range: !0, className: q.icon }),
|
|
2581
2581
|
placeholder: y,
|
|
@@ -2584,7 +2584,7 @@ const Lh = K(function({
|
|
|
2584
2584
|
},
|
|
2585
2585
|
ariaLabel: u.dateRangeClear,
|
|
2586
2586
|
chars: c,
|
|
2587
|
-
natural: on((I) => 2 *
|
|
2587
|
+
natural: on((I) => 2 * h.date(I).length + 3, y)
|
|
2588
2588
|
}
|
|
2589
2589
|
),
|
|
2590
2590
|
/* @__PURE__ */ s(
|
|
@@ -2653,7 +2653,7 @@ const Lh = K(function({
|
|
|
2653
2653
|
Math.min(23, Number.parseInt(e.hour, 10) || 0),
|
|
2654
2654
|
Math.min(59, Number.parseInt(e.minute, 10) || 0),
|
|
2655
2655
|
n ? Math.min(59, Number.parseInt(e.second, 10) || 0) : 0
|
|
2656
|
-
) : null, tr = (t, e) => t ? t.kind === "ambiguous" ? e === "earlier" ? t.earlier : t.later : t.date : null,
|
|
2656
|
+
) : null, tr = (t, e) => t ? t.kind === "ambiguous" ? e === "earlier" ? t.earlier : t.later : t.date : null, Ep = K(function({
|
|
2657
2657
|
value: e,
|
|
2658
2658
|
onChange: n,
|
|
2659
2659
|
withSeconds: r = !1,
|
|
@@ -2663,11 +2663,11 @@ const Lh = K(function({
|
|
|
2663
2663
|
size: c,
|
|
2664
2664
|
chars: f,
|
|
2665
2665
|
clearable: d = !1,
|
|
2666
|
-
presets:
|
|
2666
|
+
presets: p,
|
|
2667
2667
|
className: v,
|
|
2668
2668
|
...m
|
|
2669
2669
|
}, _) {
|
|
2670
|
-
const l = Be(c), u = He(),
|
|
2670
|
+
const l = Be(c), u = He(), h = ve(), y = tt(), w = o ?? h.dateRangePlaceholder, k = i ?? (u == null ? void 0 : u.invalid) ?? !1, S = ye(() => p ?? jn(h), [p, h]), [E, T] = W(!1), [D, U] = W(() => je((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [g, P] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [$, j] = W(null), [C, H] = W(null), [M, z] = W(null), [B, Y] = W(ln), [ce, ne] = W(() => dn(r)), [ie, de] = W(!0), [ue, fe] = W("earlier"), [Z, Q] = W("earlier"), I = O(null), J = O(null), pe = O(null), ae = O(null), b = O(null), A = O(null), R = O(null), V = O(null), he = O(null), me = O(null), ke = Me(), Le = () => {
|
|
2671
2671
|
const X = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2672
2672
|
U(je(X)), P(X), j(e ? Ie(e.from) : null), H(e ? Ie(e.to) : null), Y(e ? Jn(e.from, r) : ln), ne(e ? Jn(e.to, r) : dn(r)), de(e ? bc(e.from, e.to, r) : !0), fe(e ? bn(e.from) : "earlier"), Q(e ? bn(e.to) : "earlier"), z(null), T(!0);
|
|
2673
2673
|
}, Se = (X = !0) => {
|
|
@@ -2687,7 +2687,7 @@ const Lh = K(function({
|
|
|
2687
2687
|
le(() => {
|
|
2688
2688
|
var ge;
|
|
2689
2689
|
if (!E) return;
|
|
2690
|
-
const X =
|
|
2690
|
+
const X = pe.current;
|
|
2691
2691
|
if (!X) return;
|
|
2692
2692
|
const oe = document.activeElement;
|
|
2693
2693
|
!oe || !X.contains(oe) || oe.closest(`.${q.grid}`) && ((ge = X.querySelector('[data-active="true"]')) == null || ge.focus());
|
|
@@ -2703,18 +2703,18 @@ const Lh = K(function({
|
|
|
2703
2703
|
if (!N || !G) return "";
|
|
2704
2704
|
if (ie && $ && C) {
|
|
2705
2705
|
const nt = tn($, C);
|
|
2706
|
-
return
|
|
2706
|
+
return h.daysAllDay(nt);
|
|
2707
2707
|
}
|
|
2708
2708
|
const X = Math.abs(G.getTime() - N.getTime()), oe = Math.round(X / 6e4), ge = Math.floor(oe / 1440), we = Math.floor(oe % 1440 / 60), Fe = oe % 60, Ee = [];
|
|
2709
|
-
return ge > 0 && Ee.push(
|
|
2709
|
+
return ge > 0 && Ee.push(h.days(ge)), we > 0 && Ee.push(h.hoursShort(we)), (Fe > 0 || Ee.length === 0) && Ee.push(h.minutesShort(Fe)), h.duration(Ee);
|
|
2710
2710
|
}, ct = (() => {
|
|
2711
|
-
if (!$) return
|
|
2711
|
+
if (!$) return h.chooseStartDate;
|
|
2712
2712
|
if (!C) {
|
|
2713
2713
|
if (M) {
|
|
2714
2714
|
const [X, oe] = Ie(M).getTime() < Ie($).getTime() ? [M, $] : [$, M], ge = tn(X, oe);
|
|
2715
|
-
return
|
|
2715
|
+
return h.rangePreview(y.dateShort(X), y.dateShort(oe), ge);
|
|
2716
2716
|
}
|
|
2717
|
-
return
|
|
2717
|
+
return h.chooseEndDate;
|
|
2718
2718
|
}
|
|
2719
2719
|
return Ge();
|
|
2720
2720
|
})(), lt = (X) => {
|
|
@@ -2725,7 +2725,7 @@ const Lh = K(function({
|
|
|
2725
2725
|
const [nt, rt, Et] = Fe;
|
|
2726
2726
|
return /* @__PURE__ */ x("div", { className: q.timeHalf, children: [
|
|
2727
2727
|
/* @__PURE__ */ x("span", { className: q.timeHalfHead, children: [
|
|
2728
|
-
/* @__PURE__ */ s("span", { className: q.timeLabel, children: X === "from" ?
|
|
2728
|
+
/* @__PURE__ */ s("span", { className: q.timeLabel, children: X === "from" ? h.sideFrom : h.sideTo }),
|
|
2729
2729
|
/* @__PURE__ */ s("span", { className: F(q.timeDate, !oe && q.placeholder), children: oe ? y.dateShort(oe) : "–" })
|
|
2730
2730
|
] }),
|
|
2731
2731
|
/* @__PURE__ */ x("div", { className: q.timeGroup, children: [
|
|
@@ -2736,7 +2736,7 @@ const Lh = K(function({
|
|
|
2736
2736
|
value: ge.hour,
|
|
2737
2737
|
onValue: (mt) => we({ ...ge, hour: mt }),
|
|
2738
2738
|
max: 23,
|
|
2739
|
-
label: X === "from" ?
|
|
2739
|
+
label: X === "from" ? h.startHour : h.endHour,
|
|
2740
2740
|
next: rt,
|
|
2741
2741
|
disabled: ie
|
|
2742
2742
|
}
|
|
@@ -2749,7 +2749,7 @@ const Lh = K(function({
|
|
|
2749
2749
|
value: ge.minute,
|
|
2750
2750
|
onValue: (mt) => we({ ...ge, minute: mt }),
|
|
2751
2751
|
max: 59,
|
|
2752
|
-
label: X === "from" ?
|
|
2752
|
+
label: X === "from" ? h.startMinute : h.endMinute,
|
|
2753
2753
|
next: r ? Et : Ee,
|
|
2754
2754
|
disabled: ie
|
|
2755
2755
|
}
|
|
@@ -2763,7 +2763,7 @@ const Lh = K(function({
|
|
|
2763
2763
|
value: ge.second,
|
|
2764
2764
|
onValue: (mt) => we({ ...ge, second: mt }),
|
|
2765
2765
|
max: 59,
|
|
2766
|
-
label: X === "from" ?
|
|
2766
|
+
label: X === "from" ? h.startSecond : h.endSecond,
|
|
2767
2767
|
next: Ee,
|
|
2768
2768
|
disabled: ie
|
|
2769
2769
|
}
|
|
@@ -2771,11 +2771,11 @@ const Lh = K(function({
|
|
|
2771
2771
|
] })
|
|
2772
2772
|
] })
|
|
2773
2773
|
] });
|
|
2774
|
-
}, ee = (X, oe, ge, we) => !oe || oe.kind === "ok" ? null : oe.kind === "missing" ? /* @__PURE__ */ s("p", { className: q.dstHint, children:
|
|
2775
|
-
/* @__PURE__ */ s("p", { className: q.dstHint, children:
|
|
2774
|
+
}, ee = (X, oe, ge, we) => !oe || oe.kind === "ok" ? null : oe.kind === "missing" ? /* @__PURE__ */ s("p", { className: q.dstHint, children: h.timeMissingHintSide(X, y.time(oe.date, r)) }) : /* @__PURE__ */ x("div", { className: q.dstChoice, children: [
|
|
2775
|
+
/* @__PURE__ */ s("p", { className: q.dstHint, children: h.timeAmbiguousHintSide(X) }),
|
|
2776
2776
|
/* @__PURE__ */ x("div", { className: q.dstButtons, children: [
|
|
2777
|
-
/* @__PURE__ */ s($e, { size: "sm", variant: ge === "earlier" ? "primary" : "secondary", onClick: () => we("earlier"), children:
|
|
2778
|
-
/* @__PURE__ */ s($e, { size: "sm", variant: ge === "later" ? "primary" : "secondary", onClick: () => we("later"), children:
|
|
2777
|
+
/* @__PURE__ */ s($e, { size: "sm", variant: ge === "earlier" ? "primary" : "secondary", onClick: () => we("earlier"), children: h.timeEarlier(y.offset(oe.earlier)) }),
|
|
2778
|
+
/* @__PURE__ */ s($e, { size: "sm", variant: ge === "later" ? "primary" : "secondary", onClick: () => we("later"), children: h.timeLater(y.offset(oe.later)) })
|
|
2779
2779
|
] })
|
|
2780
2780
|
] });
|
|
2781
2781
|
return /* @__PURE__ */ x(Re, { children: [
|
|
@@ -2811,7 +2811,7 @@ const Lh = K(function({
|
|
|
2811
2811
|
onClear: () => {
|
|
2812
2812
|
n(null), E && Se(!1);
|
|
2813
2813
|
},
|
|
2814
|
-
ariaLabel:
|
|
2814
|
+
ariaLabel: h.dateTimeRangeClear,
|
|
2815
2815
|
chars: f,
|
|
2816
2816
|
natural: on((X) => 2 * (y.date(X).length + 2 + y.time(X, r).length) + 3, w)
|
|
2817
2817
|
}
|
|
@@ -2826,10 +2826,10 @@ const Lh = K(function({
|
|
|
2826
2826
|
anchorRef: I,
|
|
2827
2827
|
insideRefs: [J],
|
|
2828
2828
|
role: "dialog",
|
|
2829
|
-
ariaLabel:
|
|
2829
|
+
ariaLabel: h.dateTimeRangePanel,
|
|
2830
2830
|
id: ke,
|
|
2831
2831
|
className: F(q.panel, q.rangePanel),
|
|
2832
|
-
children: /* @__PURE__ */ x("div", { ref:
|
|
2832
|
+
children: /* @__PURE__ */ x("div", { ref: pe, children: [
|
|
2833
2833
|
/* @__PURE__ */ x("div", { className: q.rangeBody, children: [
|
|
2834
2834
|
/* @__PURE__ */ s(
|
|
2835
2835
|
Fr,
|
|
@@ -2866,12 +2866,12 @@ const Lh = K(function({
|
|
|
2866
2866
|
},
|
|
2867
2867
|
children: [
|
|
2868
2868
|
L("from", $, B, Y, [ae, b, A], R),
|
|
2869
|
-
L("to", C, ce, ne, [R, V,
|
|
2869
|
+
L("to", C, ce, ne, [R, V, he])
|
|
2870
2870
|
]
|
|
2871
2871
|
}
|
|
2872
2872
|
),
|
|
2873
|
-
ee(
|
|
2874
|
-
ee(
|
|
2873
|
+
ee(h.sideFrom, Ce, ue, fe),
|
|
2874
|
+
ee(h.sideTo, We, Z, Q)
|
|
2875
2875
|
] })
|
|
2876
2876
|
] }),
|
|
2877
2877
|
/* @__PURE__ */ x("div", { className: q.foot, children: [
|
|
@@ -2879,7 +2879,7 @@ const Lh = K(function({
|
|
|
2879
2879
|
Fn,
|
|
2880
2880
|
{
|
|
2881
2881
|
id: `${ke}-allday`,
|
|
2882
|
-
label:
|
|
2882
|
+
label: h.allDay,
|
|
2883
2883
|
checked: ie,
|
|
2884
2884
|
onChange: (X) => {
|
|
2885
2885
|
const oe = X.target.checked;
|
|
@@ -2894,7 +2894,7 @@ const Lh = K(function({
|
|
|
2894
2894
|
/* @__PURE__ */ x("div", { className: q.footLeft, children: [
|
|
2895
2895
|
e && /* @__PURE__ */ s($e, { size: "sm", variant: "ghost", onClick: () => {
|
|
2896
2896
|
n(null), Se();
|
|
2897
|
-
}, children:
|
|
2897
|
+
}, children: h.clear }),
|
|
2898
2898
|
/* @__PURE__ */ s(
|
|
2899
2899
|
$e,
|
|
2900
2900
|
{
|
|
@@ -2903,7 +2903,7 @@ const Lh = K(function({
|
|
|
2903
2903
|
variant: "primary",
|
|
2904
2904
|
disabled: !N || !G,
|
|
2905
2905
|
onClick: te,
|
|
2906
|
-
children:
|
|
2906
|
+
children: h.apply
|
|
2907
2907
|
}
|
|
2908
2908
|
)
|
|
2909
2909
|
] })
|
|
@@ -2919,7 +2919,7 @@ const Lh = K(function({
|
|
|
2919
2919
|
vertical: Nc,
|
|
2920
2920
|
withLabel: xc,
|
|
2921
2921
|
label: $c
|
|
2922
|
-
},
|
|
2922
|
+
}, Pp = K(function({ orientation: e = "horizontal", strong: n = !1, label: r, className: o, ...a }, i) {
|
|
2923
2923
|
const c = F(
|
|
2924
2924
|
Ft.divider,
|
|
2925
2925
|
e === "vertical" ? Ft.vertical : Ft.horizontal,
|
|
@@ -2948,7 +2948,7 @@ const Lh = K(function({
|
|
|
2948
2948
|
title: Dc,
|
|
2949
2949
|
description: Ac,
|
|
2950
2950
|
action: Mc
|
|
2951
|
-
},
|
|
2951
|
+
}, Fp = K(function({ title: e, description: n, action: r, icon: o, className: a, ...i }, c) {
|
|
2952
2952
|
return /* @__PURE__ */ x("div", { ref: c, className: F(jt.empty, a), ...i, children: [
|
|
2953
2953
|
o && /* @__PURE__ */ s("div", { className: jt.icon, children: o }),
|
|
2954
2954
|
/* @__PURE__ */ s("p", { className: jt.title, children: e }),
|
|
@@ -2964,8 +2964,8 @@ const Lh = K(function({
|
|
|
2964
2964
|
inner: Pc,
|
|
2965
2965
|
numeric: Fc,
|
|
2966
2966
|
clear: Ic
|
|
2967
|
-
}, Br = K(function({ size: e, chars: n, invalid: r, numeric: o = !1, clearable: a = !1, onClear: i, className: c, style: f, id: d, disabled:
|
|
2968
|
-
const _ = Be(e), l = He(), u = ve(),
|
|
2967
|
+
}, Br = K(function({ size: e, chars: n, invalid: r, numeric: o = !1, clearable: a = !1, onClear: i, className: c, style: f, id: d, disabled: p, ...v }, m) {
|
|
2968
|
+
const _ = Be(e), l = He(), u = ve(), h = r ?? (l == null ? void 0 : l.invalid) ?? !1, y = String(v.value ?? "").length > 0;
|
|
2969
2969
|
return v.type === "hidden" ? /* @__PURE__ */ s("input", { ref: m, id: d, className: c, style: f, ...v }) : /* @__PURE__ */ x(
|
|
2970
2970
|
"span",
|
|
2971
2971
|
{
|
|
@@ -2973,8 +2973,8 @@ const Lh = K(function({
|
|
|
2973
2973
|
bt.wrapper,
|
|
2974
2974
|
_ === "sm" && bt.wrapperSm,
|
|
2975
2975
|
a && bt.wrapperClearable,
|
|
2976
|
-
|
|
2977
|
-
|
|
2976
|
+
h && bt.wrapperInvalid,
|
|
2977
|
+
p && bt.wrapperDisabled,
|
|
2978
2978
|
c
|
|
2979
2979
|
),
|
|
2980
2980
|
style: { ...Lt(n), ...f },
|
|
@@ -2984,15 +2984,15 @@ const Lh = K(function({
|
|
|
2984
2984
|
{
|
|
2985
2985
|
ref: m,
|
|
2986
2986
|
id: d ?? (l == null ? void 0 : l.id),
|
|
2987
|
-
disabled:
|
|
2987
|
+
disabled: p,
|
|
2988
2988
|
"aria-describedby": v["aria-describedby"] ?? (l == null ? void 0 : l.describedBy),
|
|
2989
2989
|
"aria-required": (l == null ? void 0 : l.required) || void 0,
|
|
2990
|
-
"aria-invalid":
|
|
2990
|
+
"aria-invalid": h || void 0,
|
|
2991
2991
|
className: F(bt.inner, o && bt.numeric),
|
|
2992
2992
|
...v
|
|
2993
2993
|
}
|
|
2994
2994
|
),
|
|
2995
|
-
a && y && !
|
|
2995
|
+
a && y && !p && /* @__PURE__ */ s(
|
|
2996
2996
|
"button",
|
|
2997
2997
|
{
|
|
2998
2998
|
type: "button",
|
|
@@ -3010,11 +3010,11 @@ const Lh = K(function({
|
|
|
3010
3010
|
}), Bc = "_stack_9r3lk_4", Oc = "_grid_9r3lk_9", Or = {
|
|
3011
3011
|
stack: Bc,
|
|
3012
3012
|
grid: Oc
|
|
3013
|
-
}, Hr = (t) => `var(--u-space-${t})`,
|
|
3013
|
+
}, Hr = (t) => `var(--u-space-${t})`, Ip = K(function({ direction: e = "column", gap: n = 3, align: r, justify: o, wrap: a = !1, className: i, style: c, children: f, ...d }, p) {
|
|
3014
3014
|
return /* @__PURE__ */ s(
|
|
3015
3015
|
"div",
|
|
3016
3016
|
{
|
|
3017
|
-
ref:
|
|
3017
|
+
ref: p,
|
|
3018
3018
|
className: F(Or.stack, i),
|
|
3019
3019
|
style: {
|
|
3020
3020
|
flexDirection: e,
|
|
@@ -3028,7 +3028,7 @@ const Lh = K(function({
|
|
|
3028
3028
|
children: f
|
|
3029
3029
|
}
|
|
3030
3030
|
);
|
|
3031
|
-
}), nr = "minmax(0, 1fr)",
|
|
3031
|
+
}), nr = "minmax(0, 1fr)", Bp = K(function({ columns: e = 2, minItemWidth: n, gap: r = 4, className: o, style: a, children: i, ...c }, f) {
|
|
3032
3032
|
return /* @__PURE__ */ s(
|
|
3033
3033
|
"div",
|
|
3034
3034
|
{
|
|
@@ -3075,7 +3075,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3075
3075
|
input: Kc,
|
|
3076
3076
|
adornment: Xc,
|
|
3077
3077
|
stepper: Zc
|
|
3078
|
-
}, or = (t) => typeof t == "string" || typeof t == "number" ? String(t).length + 1 : 0,
|
|
3078
|
+
}, or = (t) => typeof t == "string" || typeof t == "number" ? String(t).length + 1 : 0, Op = K(function({
|
|
3079
3079
|
value: e,
|
|
3080
3080
|
onChange: n,
|
|
3081
3081
|
min: r,
|
|
@@ -3085,13 +3085,13 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3085
3085
|
prefix: c,
|
|
3086
3086
|
suffix: f,
|
|
3087
3087
|
size: d,
|
|
3088
|
-
chars:
|
|
3088
|
+
chars: p,
|
|
3089
3089
|
invalid: v,
|
|
3090
3090
|
disabled: m,
|
|
3091
3091
|
className: _,
|
|
3092
3092
|
style: l,
|
|
3093
3093
|
id: u,
|
|
3094
|
-
onFocus:
|
|
3094
|
+
onFocus: h,
|
|
3095
3095
|
onBlur: y,
|
|
3096
3096
|
onKeyDown: w,
|
|
3097
3097
|
...k
|
|
@@ -3128,7 +3128,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3128
3128
|
}, R);
|
|
3129
3129
|
};
|
|
3130
3130
|
A(400);
|
|
3131
|
-
}, Q = $(H) ?? e, I = !m && (o === void 0 || Q === null || Q < o), J = !m && (r === void 0 || Q === null || Q > r),
|
|
3131
|
+
}, Q = $(H) ?? e, I = !m && (o === void 0 || Q === null || Q < o), J = !m && (r === void 0 || Q === null || Q > r), pe = (ae, b, A, R) => /* @__PURE__ */ s(
|
|
3132
3132
|
"button",
|
|
3133
3133
|
{
|
|
3134
3134
|
type: "button",
|
|
@@ -3155,7 +3155,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3155
3155
|
m && yt.disabled,
|
|
3156
3156
|
_
|
|
3157
3157
|
),
|
|
3158
|
-
style: { ...Lt(
|
|
3158
|
+
style: { ...Lt(p, { extra: or(c) + or(f) }), ...l },
|
|
3159
3159
|
children: [
|
|
3160
3160
|
c && /* @__PURE__ */ s("span", { className: yt.adornment, children: c }),
|
|
3161
3161
|
/* @__PURE__ */ s(
|
|
@@ -3180,7 +3180,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3180
3180
|
...k,
|
|
3181
3181
|
onKeyDown: de,
|
|
3182
3182
|
onFocus: (ae) => {
|
|
3183
|
-
|
|
3183
|
+
h == null || h(ae), B(!0);
|
|
3184
3184
|
},
|
|
3185
3185
|
onBlur: (ae) => {
|
|
3186
3186
|
y == null || y(ae), B(!1), Y($(ae.currentTarget.value));
|
|
@@ -3189,13 +3189,13 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3189
3189
|
),
|
|
3190
3190
|
f && /* @__PURE__ */ s("span", { className: yt.adornment, children: f }),
|
|
3191
3191
|
/* @__PURE__ */ x("span", { className: yt.stepper, children: [
|
|
3192
|
-
|
|
3193
|
-
|
|
3192
|
+
pe(-1, J, D.decreaseValue, /* @__PURE__ */ s(ko, {})),
|
|
3193
|
+
pe(1, I, D.increaseValue, /* @__PURE__ */ s(wo, {}))
|
|
3194
3194
|
] })
|
|
3195
3195
|
]
|
|
3196
3196
|
}
|
|
3197
3197
|
);
|
|
3198
|
-
}), Qc = "_dialog_vmgns_8 _text_r8i8z_23", Jc = "_spacerTop_vmgns_30", el = "_spacerBottom_vmgns_35", tl = "_sheet_vmgns_2", nl = "_sm_vmgns_53", rl = "_md_vmgns_54", ol = "_lg_vmgns_55", sl = "_header_vmgns_105", il = "_headerText_vmgns_113", al = "_title_vmgns_120", cl = "_description_vmgns_128", ll = "_close_vmgns_138", dl = "_footer_vmgns_144", ul = "_body_vmgns_148 _scroll_r8i8z_96", fl = "_drawer_vmgns_177",
|
|
3198
|
+
}), Qc = "_dialog_vmgns_8 _text_r8i8z_23", Jc = "_spacerTop_vmgns_30", el = "_spacerBottom_vmgns_35", tl = "_sheet_vmgns_2", nl = "_sm_vmgns_53", rl = "_md_vmgns_54", ol = "_lg_vmgns_55", sl = "_header_vmgns_105", il = "_headerText_vmgns_113", al = "_title_vmgns_120", cl = "_description_vmgns_128", ll = "_close_vmgns_138", dl = "_footer_vmgns_144", ul = "_body_vmgns_148 _scroll_r8i8z_96", fl = "_drawer_vmgns_177", hl = "_drawerSheet_vmgns_188", pl = "_modalIn_vmgns_1", ml = "_modalOut_vmgns_1", _l = "_backdropIn_vmgns_1", gl = "_backdropOut_vmgns_1", vl = "_drawerInRight_vmgns_1", bl = "_drawerInLeft_vmgns_1", Ye = {
|
|
3199
3199
|
dialog: Qc,
|
|
3200
3200
|
spacerTop: Jc,
|
|
3201
3201
|
spacerBottom: el,
|
|
@@ -3211,8 +3211,8 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3211
3211
|
footer: dl,
|
|
3212
3212
|
body: ul,
|
|
3213
3213
|
drawer: fl,
|
|
3214
|
-
drawerSheet:
|
|
3215
|
-
modalIn:
|
|
3214
|
+
drawerSheet: hl,
|
|
3215
|
+
modalIn: pl,
|
|
3216
3216
|
modalOut: ml,
|
|
3217
3217
|
backdropIn: _l,
|
|
3218
3218
|
backdropOut: gl,
|
|
@@ -3229,7 +3229,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3229
3229
|
...r
|
|
3230
3230
|
}
|
|
3231
3231
|
);
|
|
3232
|
-
}),
|
|
3232
|
+
}), Hp = K(function({ side: e = "right", className: n, ...r }, o) {
|
|
3233
3233
|
return /* @__PURE__ */ s(
|
|
3234
3234
|
Wr,
|
|
3235
3235
|
{
|
|
@@ -3250,11 +3250,11 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3250
3250
|
className: c,
|
|
3251
3251
|
children: f,
|
|
3252
3252
|
onCancel: d,
|
|
3253
|
-
onMouseDown:
|
|
3253
|
+
onMouseDown: p,
|
|
3254
3254
|
...v
|
|
3255
3255
|
}, m) {
|
|
3256
|
-
const _ = O(null), l = Me(), { dialogRef: u, closing:
|
|
3257
|
-
|
|
3256
|
+
const _ = O(null), l = Me(), { dialogRef: u, closing: h, beimSchliessen: y, beimAbbrechen: w } = zr(e, "--u-duration-exit", n), k = (S) => {
|
|
3257
|
+
p == null || p(S), !S.defaultPrevented && r && _.current && !_.current.contains(S.target) && n();
|
|
3258
3258
|
};
|
|
3259
3259
|
return /* @__PURE__ */ x(
|
|
3260
3260
|
"dialog",
|
|
@@ -3264,7 +3264,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3264
3264
|
"aria-labelledby": l,
|
|
3265
3265
|
...v,
|
|
3266
3266
|
"data-side": i,
|
|
3267
|
-
"data-closing":
|
|
3267
|
+
"data-closing": h || void 0,
|
|
3268
3268
|
onClose: y,
|
|
3269
3269
|
onCancel: (S) => {
|
|
3270
3270
|
d == null || d(S), S.defaultPrevented || w(S);
|
|
@@ -3286,11 +3286,11 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3286
3286
|
] }),
|
|
3287
3287
|
!r && /* @__PURE__ */ s(mn, { size: "sm", "aria-label": f.close, className: Ye.close, onClick: () => c == null ? void 0 : c.onClose(), children: /* @__PURE__ */ s(et, {}) })
|
|
3288
3288
|
] });
|
|
3289
|
-
}),
|
|
3289
|
+
}), qp = K(function({ className: e, children: n, ...r }, o) {
|
|
3290
3290
|
return /* @__PURE__ */ s("div", { ref: o, className: F(Ye.body, e), ...r, children: n });
|
|
3291
3291
|
}), kl = K(function({ className: e, children: n, ...r }, o) {
|
|
3292
3292
|
return /* @__PURE__ */ s("div", { ref: o, className: F(Ye.footer, e), ...r, children: n });
|
|
3293
|
-
}),
|
|
3293
|
+
}), jp = K(function({
|
|
3294
3294
|
open: e,
|
|
3295
3295
|
onClose: n,
|
|
3296
3296
|
onConfirm: r,
|
|
@@ -3300,10 +3300,10 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3300
3300
|
cancelLabel: c,
|
|
3301
3301
|
tone: f = "primary",
|
|
3302
3302
|
loading: d = !1,
|
|
3303
|
-
...
|
|
3303
|
+
...p
|
|
3304
3304
|
}, v) {
|
|
3305
3305
|
const m = ve();
|
|
3306
|
-
return /* @__PURE__ */ x(yl, { ref: v, ...
|
|
3306
|
+
return /* @__PURE__ */ x(yl, { ref: v, ...p, open: e, onClose: n, size: "sm", closeOnBackdrop: !d, children: [
|
|
3307
3307
|
/* @__PURE__ */ s(wl, { title: o, description: a, hideClose: !0 }),
|
|
3308
3308
|
/* @__PURE__ */ x(kl, { children: [
|
|
3309
3309
|
/* @__PURE__ */ s($e, { onClick: n, disabled: d, children: c ?? m.cancel }),
|
|
@@ -3337,7 +3337,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3337
3337
|
list: Ul,
|
|
3338
3338
|
option: Vl,
|
|
3339
3339
|
empty: Yl
|
|
3340
|
-
},
|
|
3340
|
+
}, Wp = K(function({
|
|
3341
3341
|
options: e,
|
|
3342
3342
|
value: n,
|
|
3343
3343
|
onChange: r,
|
|
@@ -3347,27 +3347,27 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3347
3347
|
size: c,
|
|
3348
3348
|
chars: f,
|
|
3349
3349
|
disabled: d = !1,
|
|
3350
|
-
invalid:
|
|
3350
|
+
invalid: p,
|
|
3351
3351
|
clearable: v = !1,
|
|
3352
3352
|
className: m,
|
|
3353
3353
|
style: _,
|
|
3354
3354
|
onClick: l,
|
|
3355
3355
|
onKeyDown: u,
|
|
3356
|
-
"aria-label":
|
|
3356
|
+
"aria-label": h,
|
|
3357
3357
|
"aria-labelledby": y,
|
|
3358
3358
|
"aria-describedby": w,
|
|
3359
3359
|
...k
|
|
3360
3360
|
}, S) {
|
|
3361
|
-
const E = Be(c), T = He(), D = ve(), U = o ?? D.multiSelectPlaceholder, g = a ?? D.multiSelectSearchPlaceholder, P = i ?? D.noMatches, $ =
|
|
3361
|
+
const E = Be(c), T = He(), D = ve(), U = o ?? D.multiSelectPlaceholder, g = a ?? D.multiSelectSearchPlaceholder, P = i ?? D.noMatches, $ = p ?? (T == null ? void 0 : T.invalid) ?? !1, [j, C] = W(!1), [H, M] = W(""), [z, B] = W("all"), [Y, ce] = W(/* @__PURE__ */ new Set()), ne = O(null), ie = O(null), de = O(null), ue = O(null), fe = Me(), Z = (L) => {
|
|
3362
3362
|
var ee;
|
|
3363
3363
|
return ((ee = e.find((X) => X.value === L)) == null ? void 0 : ee.label) ?? L;
|
|
3364
3364
|
}, Q = (L, ee, X) => {
|
|
3365
3365
|
const oe = Qt(X, ee).length;
|
|
3366
|
-
|
|
3366
|
+
pt(
|
|
3367
3367
|
oe > 0 ? D.optionCount(oe) : L === "selected" && X.length === 0 ? D.nothingSelected : P,
|
|
3368
3368
|
ne.current
|
|
3369
3369
|
);
|
|
3370
|
-
}, I = (L) => L === "selected" ? e.filter((ee) => n.includes(ee.value)) : e, J = (L) =>
|
|
3370
|
+
}, I = (L) => L === "selected" ? e.filter((ee) => n.includes(ee.value)) : e, J = (L) => pt(D.optionRemoved(Z(L)), ne.current), pe = (L = "all") => {
|
|
3371
3371
|
B(L), ce(new Set(n)), M(""), C(!0), Q(L, "", I(L));
|
|
3372
3372
|
}, ae = (L) => {
|
|
3373
3373
|
var ee;
|
|
@@ -3382,7 +3382,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3382
3382
|
r(
|
|
3383
3383
|
n.includes(L) ? n.filter((ee) => ee !== L) : [...n, L]
|
|
3384
3384
|
);
|
|
3385
|
-
},
|
|
3385
|
+
}, he = (L) => {
|
|
3386
3386
|
r(n.filter((ee) => ee !== L)), J(L);
|
|
3387
3387
|
}, me = ye(() => Vn(R), [R]), ke = () => r(Is(n, me)), Le = () => r(Yn(n, me)), Se = () => r(Bs(n, me)), Te = () => {
|
|
3388
3388
|
var L;
|
|
@@ -3398,7 +3398,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3398
3398
|
L.preventDefault();
|
|
3399
3399
|
const X = R.find((oe) => !oe.disabled);
|
|
3400
3400
|
if (!X) return;
|
|
3401
|
-
V(X.value),
|
|
3401
|
+
V(X.value), pt(
|
|
3402
3402
|
(n.includes(X.value) ? D.optionRemoved : D.optionAdded)(X.label),
|
|
3403
3403
|
ne.current
|
|
3404
3404
|
);
|
|
@@ -3421,7 +3421,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3421
3421
|
return;
|
|
3422
3422
|
}
|
|
3423
3423
|
const oe = X.indexOf(ee);
|
|
3424
|
-
oe !== -1 && (L.key === "ArrowRight" ? (L.preventDefault(), (we = X[oe + 1] ?? ie.current) == null || we.focus()) : L.key === "ArrowLeft" ? (L.preventDefault(), (Fe = X[oe - 1]) == null || Fe.focus()) : (L.key === "Delete" || L.key === "Backspace") && ee.dataset.value && (L.preventDefault(),
|
|
3424
|
+
oe !== -1 && (L.key === "ArrowRight" ? (L.preventDefault(), (we = X[oe + 1] ?? ie.current) == null || we.focus()) : L.key === "ArrowLeft" ? (L.preventDefault(), (Fe = X[oe - 1]) == null || Fe.focus()) : (L.key === "Delete" || L.key === "Backspace") && ee.dataset.value && (L.preventDefault(), he(ee.dataset.value), requestAnimationFrame(() => {
|
|
3425
3425
|
var nt;
|
|
3426
3426
|
const Ee = Ce();
|
|
3427
3427
|
(nt = Ee[Math.min(oe, Ee.length - 1)] ?? ie.current) == null || nt.focus();
|
|
@@ -3468,7 +3468,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3468
3468
|
...k,
|
|
3469
3469
|
style: { ...Lt(f), ..._ },
|
|
3470
3470
|
onClick: (L) => {
|
|
3471
|
-
l == null || l(L), !(L.defaultPrevented || d) && (j ? C(!1) :
|
|
3471
|
+
l == null || l(L), !(L.defaultPrevented || d) && (j ? C(!1) : pe("all"));
|
|
3472
3472
|
},
|
|
3473
3473
|
onKeyDown: We,
|
|
3474
3474
|
children: [
|
|
@@ -3485,7 +3485,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3485
3485
|
className: _e.chip,
|
|
3486
3486
|
"aria-label": D.removeSelectedValue(L.label),
|
|
3487
3487
|
onClick: (ee) => {
|
|
3488
|
-
ee.stopPropagation(),
|
|
3488
|
+
ee.stopPropagation(), he(L.value);
|
|
3489
3489
|
},
|
|
3490
3490
|
children: [
|
|
3491
3491
|
/* @__PURE__ */ s("span", { className: _e.chipLabel, children: L.label }),
|
|
@@ -3504,7 +3504,7 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3504
3504
|
className: _e.counter,
|
|
3505
3505
|
"aria-label": D.manageMoreSelected(n.length),
|
|
3506
3506
|
onClick: (L) => {
|
|
3507
|
-
L.stopPropagation(),
|
|
3507
|
+
L.stopPropagation(), pe("selected");
|
|
3508
3508
|
},
|
|
3509
3509
|
children: [
|
|
3510
3510
|
"+",
|
|
@@ -3549,13 +3549,13 @@ const Gc = "_wrapper_7dtka_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_14
|
|
|
3549
3549
|
"aria-haspopup": "dialog",
|
|
3550
3550
|
"aria-expanded": j,
|
|
3551
3551
|
"aria-controls": j ? fe : void 0,
|
|
3552
|
-
"aria-label":
|
|
3552
|
+
"aria-label": h,
|
|
3553
3553
|
"aria-labelledby": y,
|
|
3554
3554
|
"aria-describedby": w ?? (T == null ? void 0 : T.describedBy),
|
|
3555
3555
|
"aria-invalid": $ || void 0,
|
|
3556
3556
|
className: F(_e.main, n.length === 0 && _e.mainEmpty),
|
|
3557
3557
|
onClick: (L) => {
|
|
3558
|
-
L.stopPropagation(), j ? C(!1) :
|
|
3558
|
+
L.stopPropagation(), j ? C(!1) : pe("all");
|
|
3559
3559
|
},
|
|
3560
3560
|
children: [
|
|
3561
3561
|
n.length === 0 && /* @__PURE__ */ s("span", { className: _e.placeholder, children: U }),
|
|
@@ -3679,9 +3679,9 @@ function Gr({
|
|
|
3679
3679
|
describedBy: c,
|
|
3680
3680
|
label: f
|
|
3681
3681
|
}) {
|
|
3682
|
-
const d = He(),
|
|
3682
|
+
const d = He(), p = Me(), v = a ?? (d == null ? void 0 : d.id) ?? p, m = O(null), _ = e !== void 0, l = t.filter((k) => !k.disabled && !o), u = (k) => {
|
|
3683
3683
|
r == null || r(k.value);
|
|
3684
|
-
},
|
|
3684
|
+
}, h = (k) => {
|
|
3685
3685
|
var $, j, C, H;
|
|
3686
3686
|
if (i == null || i(k), k.defaultPrevented) return;
|
|
3687
3687
|
const S = k.key === "ArrowDown" || k.key === "ArrowRight", E = k.key === "ArrowUp" || k.key === "ArrowLeft";
|
|
@@ -3695,7 +3695,7 @@ function Gr({
|
|
|
3695
3695
|
}, y = (k) => {
|
|
3696
3696
|
var E;
|
|
3697
3697
|
return _ ? k.disabled || o ? -1 : e === k.value || !l.some((T) => T.value === e) && ((E = l[0]) == null ? void 0 : E.value) === k.value ? 0 : -1 : void 0;
|
|
3698
|
-
}, w = (k) => `${
|
|
3698
|
+
}, w = (k) => `${p}-${xt(k.value)}`;
|
|
3699
3699
|
return {
|
|
3700
3700
|
/** The group's root; merge it with a forwarded ref in the JSX, where a
|
|
3701
3701
|
ref may be passed during render. */
|
|
@@ -3716,7 +3716,7 @@ function Gr({
|
|
|
3716
3716
|
"aria-invalid": (d == null ? void 0 : d.invalid) || void 0
|
|
3717
3717
|
},
|
|
3718
3718
|
/** The group's key handler; set it after the caller's attributes. */
|
|
3719
|
-
onKeyDown:
|
|
3719
|
+
onKeyDown: h,
|
|
3720
3720
|
optionId: w,
|
|
3721
3721
|
/** The radio input of one possibility. */
|
|
3722
3722
|
inputProps: (k, S) => ({
|
|
@@ -3731,7 +3731,7 @@ function Gr({
|
|
|
3731
3731
|
})
|
|
3732
3732
|
};
|
|
3733
3733
|
}
|
|
3734
|
-
const
|
|
3734
|
+
const Gp = K(function({
|
|
3735
3735
|
options: e,
|
|
3736
3736
|
value: n,
|
|
3737
3737
|
defaultValue: r,
|
|
@@ -3741,7 +3741,7 @@ const Gh = K(function({
|
|
|
3741
3741
|
disabled: c = !1,
|
|
3742
3742
|
name: f,
|
|
3743
3743
|
className: d,
|
|
3744
|
-
onKeyDown:
|
|
3744
|
+
onKeyDown: p,
|
|
3745
3745
|
...v
|
|
3746
3746
|
}, m) {
|
|
3747
3747
|
const _ = Be(i), l = Gr({
|
|
@@ -3751,7 +3751,7 @@ const Gh = K(function({
|
|
|
3751
3751
|
onChange: o,
|
|
3752
3752
|
disabled: c,
|
|
3753
3753
|
name: f,
|
|
3754
|
-
onKeyDown:
|
|
3754
|
+
onKeyDown: p,
|
|
3755
3755
|
describedBy: v["aria-describedby"],
|
|
3756
3756
|
label: v["aria-label"]
|
|
3757
3757
|
});
|
|
@@ -3770,12 +3770,12 @@ const Gh = K(function({
|
|
|
3770
3770
|
...v,
|
|
3771
3771
|
onKeyDown: l.onKeyDown,
|
|
3772
3772
|
children: e.map((u) => {
|
|
3773
|
-
const
|
|
3773
|
+
const h = l.optionId(u), y = u.description ? `${h}-description` : void 0, w = c || u.disabled;
|
|
3774
3774
|
return /* @__PURE__ */ x(
|
|
3775
3775
|
"label",
|
|
3776
3776
|
{
|
|
3777
3777
|
className: F(ut.option, w && ut.disabled),
|
|
3778
|
-
htmlFor:
|
|
3778
|
+
htmlFor: h,
|
|
3779
3779
|
children: [
|
|
3780
3780
|
/* @__PURE__ */ s("input", { ...l.inputProps(u, y), className: ut.input }),
|
|
3781
3781
|
/* @__PURE__ */ s("span", { className: ut.dot, "aria-hidden": "true" }),
|
|
@@ -3790,7 +3790,7 @@ const Gh = K(function({
|
|
|
3790
3790
|
})
|
|
3791
3791
|
}
|
|
3792
3792
|
);
|
|
3793
|
-
}), sd = "_wrapper_1qusv_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_145", id = "_wrapperSm_1qusv_16", ad = "_wrapperClearable_1qusv_20", cd = "_select_1qusv_24 _field_r8i8z_90", ld = "_sm_1qusv_77", dd = "_invalid_1qusv_83", ud = "_chevron_1qusv_94", fd = "_selectClearable_1qusv_106",
|
|
3793
|
+
}), sd = "_wrapper_1qusv_8 _text_r8i8z_23 _extent_r8i8z_75 _fieldRoot_r8i8z_145", id = "_wrapperSm_1qusv_16", ad = "_wrapperClearable_1qusv_20", cd = "_select_1qusv_24 _field_r8i8z_90", ld = "_sm_1qusv_77", dd = "_invalid_1qusv_83", ud = "_chevron_1qusv_94", fd = "_selectClearable_1qusv_106", hd = "_clear_1qusv_111", gt = {
|
|
3794
3794
|
wrapper: sd,
|
|
3795
3795
|
wrapperSm: id,
|
|
3796
3796
|
wrapperClearable: ad,
|
|
@@ -3799,8 +3799,8 @@ const Gh = K(function({
|
|
|
3799
3799
|
invalid: dd,
|
|
3800
3800
|
chevron: ud,
|
|
3801
3801
|
selectClearable: fd,
|
|
3802
|
-
clear:
|
|
3803
|
-
},
|
|
3802
|
+
clear: hd
|
|
3803
|
+
}, Up = K(function({
|
|
3804
3804
|
size: e,
|
|
3805
3805
|
chars: n,
|
|
3806
3806
|
invalid: r,
|
|
@@ -3810,21 +3810,21 @@ const Gh = K(function({
|
|
|
3810
3810
|
style: c,
|
|
3811
3811
|
id: f,
|
|
3812
3812
|
children: d,
|
|
3813
|
-
disabled:
|
|
3813
|
+
disabled: p,
|
|
3814
3814
|
onPointerDown: v,
|
|
3815
3815
|
onMouseDown: m,
|
|
3816
3816
|
onKeyDown: _,
|
|
3817
3817
|
onBlur: l,
|
|
3818
3818
|
...u
|
|
3819
|
-
},
|
|
3820
|
-
const y = Be(e), w = He(), k = ve(), S = r ?? (w == null ? void 0 : w.invalid) ?? !1, E = o && !u.multiple && String(u.value ?? "") !== "", T = !u.multiple && !
|
|
3819
|
+
}, h) {
|
|
3820
|
+
const y = Be(e), w = He(), k = ve(), S = r ?? (w == null ? void 0 : w.invalid) ?? !1, E = o && !u.multiple && String(u.value ?? "") !== "", T = !u.multiple && !p, D = O(null), U = Me(), [g, P] = W(!1), [$, j] = W([]), [C, H] = W(0), [M, z] = W("");
|
|
3821
3821
|
g && !T && P(!1);
|
|
3822
3822
|
const B = O("mouse"), Y = O({ text: "", at: 0 }), ce = () => {
|
|
3823
3823
|
var I, J;
|
|
3824
3824
|
const Z = D.current;
|
|
3825
3825
|
if (!Z) return;
|
|
3826
3826
|
const Q = sr(Z);
|
|
3827
|
-
j(Q), z(u["aria-label"] ?? ((J = (I = Z.labels) == null ? void 0 : I[0]) == null ? void 0 : J.textContent) ?? k.options), H(Math.max(0, Z.selectedIndex)), P(!0),
|
|
3827
|
+
j(Q), z(u["aria-label"] ?? ((J = (I = Z.labels) == null ? void 0 : I[0]) == null ? void 0 : J.textContent) ?? k.options), H(Math.max(0, Z.selectedIndex)), P(!0), pt(Q.length === 0 ? k.noMatches : k.optionCount(Q.length), Z);
|
|
3828
3828
|
}, ne = () => {
|
|
3829
3829
|
Bn(), P(!1);
|
|
3830
3830
|
};
|
|
@@ -3836,14 +3836,14 @@ const Gh = K(function({
|
|
|
3836
3836
|
!Q || $[Z] === void 0 || $[Z].disabled || (ne(), Q.focus(), Q.selectedIndex !== Z && (Q.selectedIndex = Z, Q.dispatchEvent(new Event("input", { bubbles: !0 })), Q.dispatchEvent(new Event("change", { bubbles: !0 }))));
|
|
3837
3837
|
}, de = (Z) => {
|
|
3838
3838
|
const Q = $[Z];
|
|
3839
|
-
Q !== void 0 && (H(Z),
|
|
3839
|
+
Q !== void 0 && (H(Z), pt(
|
|
3840
3840
|
k.optionActive(Q.label, { selected: Q.selected, disabled: Q.disabled }),
|
|
3841
3841
|
D.current
|
|
3842
3842
|
));
|
|
3843
3843
|
}, ue = (Z, Q) => {
|
|
3844
3844
|
const I = Z.toLowerCase(), J = Q - Y.current.at < 500 ? Y.current.text + I : I;
|
|
3845
3845
|
Y.current = { text: J, at: Q };
|
|
3846
|
-
const
|
|
3846
|
+
const pe = [...J].every((A) => A === I), ae = pe ? I : J, b = pe ? C + 1 : C;
|
|
3847
3847
|
for (let A = 0; A < $.length; A += 1) {
|
|
3848
3848
|
const R = (b + A) % $.length;
|
|
3849
3849
|
if ($[R].label.toLowerCase().startsWith(ae)) {
|
|
@@ -3855,7 +3855,7 @@ const Gh = K(function({
|
|
|
3855
3855
|
if (_ == null || _(Z), !T || Z.defaultPrevented || Z.nativeEvent.isComposing) return;
|
|
3856
3856
|
const { key: Q } = Z;
|
|
3857
3857
|
if (!g) {
|
|
3858
|
-
|
|
3858
|
+
pd.has(Q) && (Z.preventDefault(), ce());
|
|
3859
3859
|
return;
|
|
3860
3860
|
}
|
|
3861
3861
|
if (Q === "Tab") {
|
|
@@ -3880,9 +3880,9 @@ const Gh = K(function({
|
|
|
3880
3880
|
/* @__PURE__ */ s(
|
|
3881
3881
|
"select",
|
|
3882
3882
|
{
|
|
3883
|
-
ref: Oe(D,
|
|
3883
|
+
ref: Oe(D, h),
|
|
3884
3884
|
id: f ?? (w == null ? void 0 : w.id),
|
|
3885
|
-
disabled:
|
|
3885
|
+
disabled: p,
|
|
3886
3886
|
"aria-describedby": u["aria-describedby"] ?? (w == null ? void 0 : w.describedBy),
|
|
3887
3887
|
"aria-required": (w == null ? void 0 : w.required) || void 0,
|
|
3888
3888
|
"aria-invalid": S || void 0,
|
|
@@ -3910,7 +3910,7 @@ const Gh = K(function({
|
|
|
3910
3910
|
children: d
|
|
3911
3911
|
}
|
|
3912
3912
|
),
|
|
3913
|
-
E && !
|
|
3913
|
+
E && !p && /* @__PURE__ */ s(
|
|
3914
3914
|
"button",
|
|
3915
3915
|
{
|
|
3916
3916
|
type: "button",
|
|
@@ -3941,7 +3941,7 @@ const Gh = K(function({
|
|
|
3941
3941
|
]
|
|
3942
3942
|
}
|
|
3943
3943
|
);
|
|
3944
|
-
}),
|
|
3944
|
+
}), pd = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", " ", "F4"]), md = { ArrowDown: 1, ArrowUp: -1, PageDown: 10, PageUp: -10 };
|
|
3945
3945
|
function sr(t) {
|
|
3946
3946
|
return Array.from(t.options, (e) => {
|
|
3947
3947
|
const n = e.parentElement instanceof HTMLOptGroupElement ? e.parentElement : null;
|
|
@@ -3958,7 +3958,7 @@ function sr(t) {
|
|
|
3958
3958
|
const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ir = {
|
|
3959
3959
|
skeleton: _d,
|
|
3960
3960
|
circle: gd
|
|
3961
|
-
},
|
|
3961
|
+
}, Vp = K(function({ width: e, height: n, circle: r = !1, className: o, style: a, ...i }, c) {
|
|
3962
3962
|
return /* @__PURE__ */ s(
|
|
3963
3963
|
"span",
|
|
3964
3964
|
{
|
|
@@ -3981,7 +3981,7 @@ const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ir = {
|
|
|
3981
3981
|
warning: Sd,
|
|
3982
3982
|
danger: Td,
|
|
3983
3983
|
remove: Dd
|
|
3984
|
-
}, Ur = at(!1),
|
|
3984
|
+
}, Ur = at(!1), Yp = K(function({ className: e, children: n, onKeyDown: r, onFocus: o, ...a }, i) {
|
|
3985
3985
|
const c = O(null), f = se(
|
|
3986
3986
|
() => {
|
|
3987
3987
|
var m;
|
|
@@ -4000,7 +4000,7 @@ const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ir = {
|
|
|
4000
4000
|
const _ = f().find((l) => l.tabIndex === 0);
|
|
4001
4001
|
d(_);
|
|
4002
4002
|
});
|
|
4003
|
-
const
|
|
4003
|
+
const p = (m) => {
|
|
4004
4004
|
o == null || o(m);
|
|
4005
4005
|
const _ = f().find((l) => l.contains(m.target));
|
|
4006
4006
|
_ && d(_);
|
|
@@ -4008,10 +4008,10 @@ const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ir = {
|
|
|
4008
4008
|
if (r == null || r(m), m.defaultPrevented) return;
|
|
4009
4009
|
const _ = f();
|
|
4010
4010
|
if (_.length === 0) return;
|
|
4011
|
-
const l = _.findIndex((
|
|
4011
|
+
const l = _.findIndex((h) => h.contains(document.activeElement));
|
|
4012
4012
|
if (l === -1) return;
|
|
4013
|
-
const u = (
|
|
4014
|
-
|
|
4013
|
+
const u = (h) => {
|
|
4014
|
+
h && (m.preventDefault(), d(h), h.focus());
|
|
4015
4015
|
};
|
|
4016
4016
|
m.key === "ArrowRight" || m.key === "ArrowDown" ? u(_[(l + 1) % _.length]) : m.key === "ArrowLeft" || m.key === "ArrowUp" ? u(_[(l - 1 + _.length) % _.length]) : m.key === "Home" ? u(_[0]) : m.key === "End" && u(_[_.length - 1]);
|
|
4017
4017
|
};
|
|
@@ -4022,30 +4022,30 @@ const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ir = {
|
|
|
4022
4022
|
role: "list",
|
|
4023
4023
|
className: F(At.group, e),
|
|
4024
4024
|
onKeyDown: v,
|
|
4025
|
-
onFocus:
|
|
4025
|
+
onFocus: p,
|
|
4026
4026
|
...a,
|
|
4027
4027
|
children: /* @__PURE__ */ s(Ur.Provider, { value: !0, children: n })
|
|
4028
4028
|
}
|
|
4029
4029
|
);
|
|
4030
|
-
}),
|
|
4031
|
-
const
|
|
4032
|
-
if (!
|
|
4030
|
+
}), Kp = K(function({ tone: e = "neutral", children: n, onRemove: r, removeLabel: o, disabled: a = !1, className: i, onKeyDown: c, ...f }, d) {
|
|
4031
|
+
const p = Qe(Ur), v = ve(), m = !!r && !a, _ = o ?? (typeof n == "string" ? v.removeTag(n) : v.remove), l = (h) => {
|
|
4032
|
+
if (!h) {
|
|
4033
4033
|
r == null || r();
|
|
4034
4034
|
return;
|
|
4035
4035
|
}
|
|
4036
|
-
const y =
|
|
4036
|
+
const y = h.closest('[role="list"]'), w = Array.from((y == null ? void 0 : y.querySelectorAll("[data-tag]")) ?? []), k = w.indexOf(h), S = w[k + 1] ?? w[k - 1];
|
|
4037
4037
|
r == null || r(), S && requestAnimationFrame(() => S.focus());
|
|
4038
|
-
}, u = (
|
|
4039
|
-
c == null || c(
|
|
4038
|
+
}, u = (h) => {
|
|
4039
|
+
c == null || c(h), !(h.defaultPrevented || !m) && (h.key === "Backspace" || h.key === "Delete") && (h.preventDefault(), l(h.currentTarget));
|
|
4040
4040
|
};
|
|
4041
4041
|
return /* @__PURE__ */ x(
|
|
4042
4042
|
"span",
|
|
4043
4043
|
{
|
|
4044
4044
|
ref: d,
|
|
4045
4045
|
"data-tag": m ? "" : void 0,
|
|
4046
|
-
role:
|
|
4046
|
+
role: p ? "listitem" : void 0,
|
|
4047
4047
|
"aria-disabled": a || void 0,
|
|
4048
|
-
tabIndex: m ?
|
|
4048
|
+
tabIndex: m ? p ? -1 : 0 : void 0,
|
|
4049
4049
|
className: F(
|
|
4050
4050
|
At.tag,
|
|
4051
4051
|
At[e],
|
|
@@ -4064,8 +4064,8 @@ const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ir = {
|
|
|
4064
4064
|
tabIndex: -1,
|
|
4065
4065
|
"aria-label": _,
|
|
4066
4066
|
className: At.remove,
|
|
4067
|
-
onClick: (
|
|
4068
|
-
|
|
4067
|
+
onClick: (h) => {
|
|
4068
|
+
h.stopPropagation(), l(h.currentTarget.closest("[data-tag]"));
|
|
4069
4069
|
},
|
|
4070
4070
|
children: /* @__PURE__ */ s(et, { size: 8 })
|
|
4071
4071
|
}
|
|
@@ -4085,13 +4085,13 @@ function Wn(t) {
|
|
|
4085
4085
|
throw new Error(`${t} must be used inside <Tabs>.`);
|
|
4086
4086
|
return e;
|
|
4087
4087
|
}
|
|
4088
|
-
const
|
|
4089
|
-
const f = Me(), [d,
|
|
4090
|
-
v ||
|
|
4088
|
+
const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, children: a, ...i }, c) {
|
|
4089
|
+
const f = Me(), [d, p] = W(n ?? ""), v = e !== void 0, m = (_) => {
|
|
4090
|
+
v || p(_), r == null || r(_);
|
|
4091
4091
|
};
|
|
4092
4092
|
return /* @__PURE__ */ s("div", { ref: c, className: o, ...i, children: /* @__PURE__ */ s(Vr.Provider, { value: { value: v ? e : d, onChange: m, idBase: f }, children: a }) });
|
|
4093
|
-
}),
|
|
4094
|
-
const i = Wn("TabList"), c = O(null), [f, d] = W(null),
|
|
4093
|
+
}), Zp = K(function({ className: e, children: n, onKeyDown: r, ...o }, a) {
|
|
4094
|
+
const i = Wn("TabList"), c = O(null), [f, d] = W(null), p = se(() => {
|
|
4095
4095
|
const m = c.current;
|
|
4096
4096
|
if (!m) return;
|
|
4097
4097
|
const _ = m.querySelector('[role="tab"][aria-selected="true"]');
|
|
@@ -4102,19 +4102,19 @@ const Xh = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4102
4102
|
d({ left: _.offsetLeft, width: _.offsetWidth });
|
|
4103
4103
|
}, []);
|
|
4104
4104
|
Ke(() => {
|
|
4105
|
-
|
|
4106
|
-
}, [
|
|
4105
|
+
p();
|
|
4106
|
+
}, [p, i.value]), le(() => {
|
|
4107
4107
|
var _;
|
|
4108
|
-
window.addEventListener("resize",
|
|
4108
|
+
window.addEventListener("resize", p);
|
|
4109
4109
|
let m = !1;
|
|
4110
4110
|
return (_ = document.fonts) == null || _.ready.then(() => {
|
|
4111
|
-
m ||
|
|
4111
|
+
m || p();
|
|
4112
4112
|
}), () => {
|
|
4113
|
-
m = !0, window.removeEventListener("resize",
|
|
4113
|
+
m = !0, window.removeEventListener("resize", p);
|
|
4114
4114
|
};
|
|
4115
|
-
}, [
|
|
4115
|
+
}, [p]);
|
|
4116
4116
|
const v = (m) => {
|
|
4117
|
-
var
|
|
4117
|
+
var h, y;
|
|
4118
4118
|
if (r == null || r(m), m.defaultPrevented || !["ArrowLeft", "ArrowRight", "Home", "End"].includes(m.key)) return;
|
|
4119
4119
|
const _ = Array.from(
|
|
4120
4120
|
m.currentTarget.querySelectorAll('[role="tab"]:not([disabled])')
|
|
@@ -4123,7 +4123,7 @@ const Xh = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4123
4123
|
const l = _.findIndex((w) => w === document.activeElement);
|
|
4124
4124
|
m.preventDefault();
|
|
4125
4125
|
let u = l;
|
|
4126
|
-
m.key === "ArrowRight" && (u = (l + 1) % _.length), m.key === "ArrowLeft" && (u = (l - 1 + _.length) % _.length), m.key === "Home" && (u = 0), m.key === "End" && (u = _.length - 1), (
|
|
4126
|
+
m.key === "ArrowRight" && (u = (l + 1) % _.length), m.key === "ArrowLeft" && (u = (l - 1 + _.length) % _.length), m.key === "Home" && (u = 0), m.key === "End" && (u = _.length - 1), (h = _[u]) == null || h.focus(), (y = _[u]) == null || y.click();
|
|
4127
4127
|
};
|
|
4128
4128
|
return /* @__PURE__ */ x(
|
|
4129
4129
|
"div",
|
|
@@ -4146,7 +4146,7 @@ const Xh = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4146
4146
|
]
|
|
4147
4147
|
}
|
|
4148
4148
|
);
|
|
4149
|
-
}),
|
|
4149
|
+
}), Qp = K(function({ value: e, className: n, children: r, onClick: o, ...a }, i) {
|
|
4150
4150
|
const c = Wn("Tab"), f = c.value === e, d = c.value === "";
|
|
4151
4151
|
return /* @__PURE__ */ s(
|
|
4152
4152
|
"button",
|
|
@@ -4160,13 +4160,13 @@ const Xh = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4160
4160
|
"aria-selected": f,
|
|
4161
4161
|
"aria-controls": `${c.idBase}-panel-${xt(e)}`,
|
|
4162
4162
|
tabIndex: f || d ? 0 : -1,
|
|
4163
|
-
onClick: (
|
|
4164
|
-
o == null || o(
|
|
4163
|
+
onClick: (p) => {
|
|
4164
|
+
o == null || o(p), p.defaultPrevented || c.onChange(e);
|
|
4165
4165
|
},
|
|
4166
4166
|
children: r
|
|
4167
4167
|
}
|
|
4168
4168
|
);
|
|
4169
|
-
}),
|
|
4169
|
+
}), Jp = K(function({ value: e, className: n, children: r, ...o }, a) {
|
|
4170
4170
|
const i = Wn("TabPanel");
|
|
4171
4171
|
return i.value !== e ? null : /* @__PURE__ */ s(
|
|
4172
4172
|
"div",
|
|
@@ -4200,13 +4200,13 @@ const Xh = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4200
4200
|
resize: c,
|
|
4201
4201
|
className: f,
|
|
4202
4202
|
style: d,
|
|
4203
|
-
id:
|
|
4203
|
+
id: p,
|
|
4204
4204
|
disabled: v,
|
|
4205
4205
|
rows: m = 3,
|
|
4206
4206
|
onInput: _,
|
|
4207
4207
|
...l
|
|
4208
4208
|
}, u) {
|
|
4209
|
-
const
|
|
4209
|
+
const h = Be(e), y = He(), w = r ?? (y == null ? void 0 : y.invalid) ?? !1, k = O(null);
|
|
4210
4210
|
Nn(u, () => k.current);
|
|
4211
4211
|
const S = se(() => {
|
|
4212
4212
|
const $ = k.current;
|
|
@@ -4229,20 +4229,20 @@ const Xh = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4229
4229
|
return /* @__PURE__ */ x(
|
|
4230
4230
|
"span",
|
|
4231
4231
|
{
|
|
4232
|
-
className: F(wt.wrapper,
|
|
4232
|
+
className: F(wt.wrapper, h === "sm" && wt.wrapperSm, P && wt.counted, f),
|
|
4233
4233
|
style: { ...Lt(n), ...d },
|
|
4234
4234
|
children: [
|
|
4235
4235
|
/* @__PURE__ */ s(
|
|
4236
4236
|
"textarea",
|
|
4237
4237
|
{
|
|
4238
4238
|
ref: k,
|
|
4239
|
-
id:
|
|
4239
|
+
id: p ?? (y == null ? void 0 : y.id),
|
|
4240
4240
|
rows: m,
|
|
4241
4241
|
disabled: v,
|
|
4242
4242
|
"aria-describedby": l["aria-describedby"] ?? (y == null ? void 0 : y.describedBy),
|
|
4243
4243
|
"aria-required": (y == null ? void 0 : y.required) || void 0,
|
|
4244
4244
|
"aria-invalid": w || void 0,
|
|
4245
|
-
className: F(wt.textarea,
|
|
4245
|
+
className: F(wt.textarea, h === "sm" && wt.sm, w && wt.invalid),
|
|
4246
4246
|
style: { resize: c ?? (o ? "none" : "vertical") },
|
|
4247
4247
|
onInput: ($) => {
|
|
4248
4248
|
_ == null || _($), D || T($.currentTarget.value), S();
|
|
@@ -4313,9 +4313,9 @@ function uu({ tone: t }) {
|
|
|
4313
4313
|
);
|
|
4314
4314
|
}
|
|
4315
4315
|
function nm({ children: t }) {
|
|
4316
|
-
const e = Lo(), n = e.duration ?? 5e3, r = Math.max(1, e.limit ?? 3), o = e.position ?? "bottom-end", [a, i] = o.split("-"), [c, f] = W([]), d = O([]),
|
|
4316
|
+
const e = Lo(), n = e.duration ?? 5e3, r = Math.max(1, e.limit ?? 3), o = e.position ?? "bottom-end", [a, i] = o.split("-"), [c, f] = W([]), d = O([]), p = se((N) => {
|
|
4317
4317
|
d.current = N, f(N);
|
|
4318
|
-
}, []), v = O(1), m = O(/* @__PURE__ */ new Map()), _ = O(/* @__PURE__ */ new Set()), l = O(null), [u,
|
|
4318
|
+
}, []), v = O(1), m = O(/* @__PURE__ */ new Map()), _ = O(/* @__PURE__ */ new Set()), l = O(null), [u, h] = W(!1), [y, w] = W(!1), [k, S] = W(!1), [E, T] = W(!1), D = u || y || k, U = O(D), g = O(/* @__PURE__ */ new Map()), P = O(/* @__PURE__ */ new Map()), $ = O(null), [j, C] = W({}), H = O(null), M = se(() => {
|
|
4319
4319
|
var G;
|
|
4320
4320
|
const N = H.current;
|
|
4321
4321
|
H.current = null, N != null && N.isConnected ? N.focus() : (G = document.activeElement) == null || G.blur();
|
|
@@ -4326,9 +4326,9 @@ function nm({ children: t }) {
|
|
|
4326
4326
|
const G = P.current.get(N);
|
|
4327
4327
|
G && ((re = $.current) == null || re.unobserve(G)), P.current.delete(N), C((be) => Object.fromEntries(Object.entries(be).filter(([Pe]) => Number(Pe) !== N)));
|
|
4328
4328
|
const te = d.current.filter((be) => be.id !== N);
|
|
4329
|
-
|
|
4329
|
+
p(te), te.some((be) => !be.leaving) || (h(!1), S(!1));
|
|
4330
4330
|
},
|
|
4331
|
-
[
|
|
4331
|
+
[p]
|
|
4332
4332
|
), B = se((N) => {
|
|
4333
4333
|
const G = m.current.get(N);
|
|
4334
4334
|
G != null && G.timeout && clearTimeout(G.timeout), m.current.delete(N);
|
|
@@ -4346,13 +4346,13 @@ function nm({ children: t }) {
|
|
|
4346
4346
|
return;
|
|
4347
4347
|
}
|
|
4348
4348
|
const Ge = g.current.get(N) ?? { offset: 0, behind: !1, scale: 1, hidden: !1, zIndex: 0 };
|
|
4349
|
-
|
|
4349
|
+
p(d.current.map((ee) => ee.id === N ? { ...ee, leaving: { ...Ge, zIndex: 0 } } : ee));
|
|
4350
4350
|
const ct = setTimeout(() => {
|
|
4351
4351
|
_.current.delete(ct), z(N);
|
|
4352
4352
|
}, Pe);
|
|
4353
4353
|
_.current.add(ct);
|
|
4354
4354
|
},
|
|
4355
|
-
[B,
|
|
4355
|
+
[B, p, z, M]
|
|
4356
4356
|
), ce = se(
|
|
4357
4357
|
(N, G) => {
|
|
4358
4358
|
G.startedAt = Date.now(), G.timeout = setTimeout(() => Y(N, "timeout"), G.remaining);
|
|
@@ -4378,18 +4378,18 @@ function nm({ children: t }) {
|
|
|
4378
4378
|
const ie = se(
|
|
4379
4379
|
(N) => {
|
|
4380
4380
|
const G = v.current++;
|
|
4381
|
-
|
|
4381
|
+
p([...d.current, { ...N, id: G }]);
|
|
4382
4382
|
const te = d.current.filter((re) => !re.leaving);
|
|
4383
4383
|
return te.slice(0, Math.max(0, te.length - r)).forEach((re) => Y(re.id, "dismiss")), ne(G), G;
|
|
4384
4384
|
},
|
|
4385
|
-
[Y,
|
|
4385
|
+
[Y, p, r, ne]
|
|
4386
4386
|
), de = se(
|
|
4387
4387
|
(N, G) => {
|
|
4388
4388
|
const te = d.current.find((be) => be.id === N);
|
|
4389
4389
|
if (!te || te.leaving) return;
|
|
4390
|
-
|
|
4390
|
+
p(d.current.map((be) => be.id === N ? { ...be, ...G, id: N } : be)), (G.tone !== void 0 && G.tone !== (te.tone ?? "neutral") || G.duration !== void 0) && ne(N);
|
|
4391
4391
|
},
|
|
4392
|
-
[
|
|
4392
|
+
[p, ne]
|
|
4393
4393
|
), ue = se((N) => Y(N, "dismiss"), [Y]);
|
|
4394
4394
|
le(() => {
|
|
4395
4395
|
const N = m.current, G = _.current;
|
|
@@ -4441,7 +4441,7 @@ function nm({ children: t }) {
|
|
|
4441
4441
|
}, [k]);
|
|
4442
4442
|
const I = (N) => {
|
|
4443
4443
|
N.key === "Escape" && (S(!1), M());
|
|
4444
|
-
}, J = (N) => w(un(N.target, N.currentTarget)),
|
|
4444
|
+
}, J = (N) => w(un(N.target, N.currentTarget)), pe = (N) => {
|
|
4445
4445
|
T(!1), !N.currentTarget.contains(N.relatedTarget) && (w(!1), S(!1), H.current = null);
|
|
4446
4446
|
};
|
|
4447
4447
|
le(() => {
|
|
@@ -4449,8 +4449,8 @@ function nm({ children: t }) {
|
|
|
4449
4449
|
w(!!N && G instanceof HTMLElement && N.contains(G) && un(G, N));
|
|
4450
4450
|
}, [c]);
|
|
4451
4451
|
const ae = (N) => {
|
|
4452
|
-
N.pointerType !== "touch" &&
|
|
4453
|
-
}, b = () =>
|
|
4452
|
+
N.pointerType !== "touch" && h(!0);
|
|
4453
|
+
}, b = () => h(!1), A = c.filter((N) => !N.leaving), R = A.length, V = [...A].reverse(), he = V[0] ? j[V[0].id] ?? 0 : 0, me = /* @__PURE__ */ new Map();
|
|
4454
4454
|
let ke = 0;
|
|
4455
4455
|
V.forEach((N, G) => {
|
|
4456
4456
|
const te = !D && G > 0;
|
|
@@ -4464,7 +4464,7 @@ function nm({ children: t }) {
|
|
|
4464
4464
|
}), Ke(() => {
|
|
4465
4465
|
g.current = me;
|
|
4466
4466
|
});
|
|
4467
|
-
const Le = R === 0 ? 0 : D ? ke - cr :
|
|
4467
|
+
const Le = R === 0 ? 0 : D ? ke - cr : he + ar * Math.min(R - 1, lr), Se = ye(() => ({ toast: ie, update: de, dismiss: ue }), [ie, de, ue]), Te = ve(), Ne = Cn(), De = () => {
|
|
4468
4468
|
var N;
|
|
4469
4469
|
S(!0), (N = l.current) == null || N.focus();
|
|
4470
4470
|
}, Ce = (N) => {
|
|
@@ -4472,7 +4472,7 @@ function nm({ children: t }) {
|
|
|
4472
4472
|
const G = N.tone ?? "neutral", te = ((Pe = V[0]) == null ? void 0 : Pe.id) === N.id && !D && R > 1, re = N.leaving ?? me.get(N.id), be = {
|
|
4473
4473
|
"--_y": `${a === "bottom" ? -((re == null ? void 0 : re.offset) ?? 0) : (re == null ? void 0 : re.offset) ?? 0}px`,
|
|
4474
4474
|
"--_scale": (re == null ? void 0 : re.scale) ?? 1,
|
|
4475
|
-
"--_front": re != null && re.behind ? `${
|
|
4475
|
+
"--_front": re != null && re.behind ? `${he}px` : void 0,
|
|
4476
4476
|
zIndex: (re == null ? void 0 : re.zIndex) ?? 0
|
|
4477
4477
|
};
|
|
4478
4478
|
return /* @__PURE__ */ s(
|
|
@@ -4566,12 +4566,12 @@ function nm({ children: t }) {
|
|
|
4566
4566
|
...Q ? { role: "region", "aria-label": Te.toastRegion, tabIndex: -1 } : {},
|
|
4567
4567
|
onKeyDown: I,
|
|
4568
4568
|
onFocus: J,
|
|
4569
|
-
onBlur:
|
|
4569
|
+
onBlur: pe,
|
|
4570
4570
|
onPointerEnter: ae,
|
|
4571
4571
|
onPointerLeave: b,
|
|
4572
4572
|
children: [
|
|
4573
|
-
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: ze.live, children: c.filter((N) =>
|
|
4574
|
-
/* @__PURE__ */ s("div", { role: "alert", className: ze.live, children: c.filter((N) =>
|
|
4573
|
+
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: ze.live, children: c.filter((N) => pn[N.tone ?? "neutral"].role === "status").map(Ce) }),
|
|
4574
|
+
/* @__PURE__ */ s("div", { role: "alert", className: ze.live, children: c.filter((N) => pn[N.tone ?? "neutral"].role === "alert").map(Ce) })
|
|
4575
4575
|
]
|
|
4576
4576
|
}
|
|
4577
4577
|
),
|
|
@@ -4579,10 +4579,10 @@ function nm({ children: t }) {
|
|
|
4579
4579
|
)
|
|
4580
4580
|
] });
|
|
4581
4581
|
}
|
|
4582
|
-
const fu = "_tree_1epok_10 _text_r8i8z_23",
|
|
4582
|
+
const fu = "_tree_1epok_10 _text_r8i8z_23", hu = "_row_1epok_23", pu = "_active_1epok_46", mu = "_pathOnly_1epok_58", _u = "_chevron_1epok_62", gu = "_chevronOpen_1epok_74", vu = "_placeholder_1epok_80", bu = "_emptyDot_1epok_86", yu = "_check_1epok_104", wu = "_content_1epok_110", ku = "_noMatches_1epok_124", Nu = "_scrolls_1epok_135 _scroll_r8i8z_96", xu = "_disabled_1epok_145", $u = "_loading_1epok_149", Ue = {
|
|
4583
4583
|
tree: fu,
|
|
4584
|
-
row:
|
|
4585
|
-
active:
|
|
4584
|
+
row: hu,
|
|
4585
|
+
active: pu,
|
|
4586
4586
|
pathOnly: mu,
|
|
4587
4587
|
chevron: _u,
|
|
4588
4588
|
chevronOpen: gu,
|
|
@@ -4604,12 +4604,12 @@ const fu = "_tree_1epok_10 _text_r8i8z_23", pu = "_row_1epok_23", hu = "_active_
|
|
|
4604
4604
|
onFocus: c,
|
|
4605
4605
|
onBlur: f,
|
|
4606
4606
|
onScroll: d,
|
|
4607
|
-
...
|
|
4607
|
+
...p
|
|
4608
4608
|
}, v) {
|
|
4609
4609
|
var U;
|
|
4610
|
-
const m = ve(), _ = Me(), l = e.virtual, u = O(null),
|
|
4610
|
+
const m = ve(), _ = Me(), l = e.virtual, u = O(null), h = (l == null ? void 0 : l.scrollRef) ?? u, y = O(!1), w = O(0), k = O(""), S = O(null);
|
|
4611
4611
|
le(() => {
|
|
4612
|
-
const g =
|
|
4612
|
+
const g = h.current;
|
|
4613
4613
|
if (g === null || e.active === null) return;
|
|
4614
4614
|
if (l !== void 0) {
|
|
4615
4615
|
const j = e.flattening.findIndex((C) => C.key === e.active);
|
|
@@ -4624,7 +4624,7 @@ const fu = "_tree_1epok_10 _text_r8i8z_23", pu = "_row_1epok_23", hu = "_active_
|
|
|
4624
4624
|
`[data-key="${CSS.escape(String(e.active))}"]`
|
|
4625
4625
|
);
|
|
4626
4626
|
$ !== null && $ !== document.activeElement && $.focus();
|
|
4627
|
-
}, [e.active, e.flattening, e.revealCount, l,
|
|
4627
|
+
}, [e.active, e.flattening, e.revealCount, l, h]), le(
|
|
4628
4628
|
() => () => {
|
|
4629
4629
|
S.current !== null && window.clearTimeout(S.current);
|
|
4630
4630
|
},
|
|
@@ -4683,10 +4683,10 @@ const fu = "_tree_1epok_10 _text_r8i8z_23", pu = "_row_1epok_23", hu = "_active_
|
|
|
4683
4683
|
return /* @__PURE__ */ x(
|
|
4684
4684
|
"div",
|
|
4685
4685
|
{
|
|
4686
|
-
ref: Oe(
|
|
4686
|
+
ref: Oe(h, v),
|
|
4687
4687
|
"aria-label": n,
|
|
4688
4688
|
className: F(Ue.tree, l !== void 0 && Ue.scrolls, a),
|
|
4689
|
-
...
|
|
4689
|
+
...p,
|
|
4690
4690
|
role: "tree",
|
|
4691
4691
|
onKeyDown: E,
|
|
4692
4692
|
onScroll: (g) => {
|
|
@@ -4804,7 +4804,7 @@ function Au(t, { rowHeight: e, scrollTop: n, viewportHeight: r, headerHeight: o
|
|
|
4804
4804
|
return a < n + o ? Math.max(0, a - o) : i > n + r ? Math.max(0, i - r) : null;
|
|
4805
4805
|
}
|
|
4806
4806
|
function Mu(t, e) {
|
|
4807
|
-
const { rowHeight: n, overscan: r = 4 } = e, o = O(null), [a, i] = W(0), [c, f] = W(0), [d,
|
|
4807
|
+
const { rowHeight: n, overscan: r = 4 } = e, o = O(null), [a, i] = W(0), [c, f] = W(0), [d, p] = W(n), v = se(() => {
|
|
4808
4808
|
const l = o.current;
|
|
4809
4809
|
l && i(l.scrollTop);
|
|
4810
4810
|
}, []);
|
|
@@ -4813,25 +4813,25 @@ function Mu(t, e) {
|
|
|
4813
4813
|
if (!l) return;
|
|
4814
4814
|
const u = () => f(l.clientHeight);
|
|
4815
4815
|
if (u(), typeof ResizeObserver > "u") return;
|
|
4816
|
-
const
|
|
4817
|
-
return
|
|
4816
|
+
const h = new ResizeObserver(u);
|
|
4817
|
+
return h.observe(l), () => h.disconnect();
|
|
4818
4818
|
}, []), le(() => {
|
|
4819
4819
|
const l = o.current;
|
|
4820
4820
|
if (!l) return;
|
|
4821
4821
|
const u = l.querySelector("[data-row]");
|
|
4822
4822
|
if (!u) return;
|
|
4823
|
-
const
|
|
4824
|
-
|
|
4823
|
+
const h = u.getBoundingClientRect().height;
|
|
4824
|
+
h > 0 && Math.abs(h - d) > 0.01 && p(h);
|
|
4825
4825
|
}, [t, c, d]);
|
|
4826
4826
|
const m = Du({ count: t, rowHeight: d, scrollTop: a, viewportHeight: c, overscan: r }), _ = se(
|
|
4827
4827
|
(l) => {
|
|
4828
4828
|
const u = o.current;
|
|
4829
4829
|
if (!u) return;
|
|
4830
|
-
const
|
|
4830
|
+
const h = u.querySelector("thead"), y = Au(l, {
|
|
4831
4831
|
rowHeight: d,
|
|
4832
4832
|
scrollTop: u.scrollTop,
|
|
4833
4833
|
viewportHeight: u.clientHeight,
|
|
4834
|
-
headerHeight: (
|
|
4834
|
+
headerHeight: (h == null ? void 0 : h.getBoundingClientRect().height) ?? 0
|
|
4835
4835
|
});
|
|
4836
4836
|
y !== null && (u.scrollTop = y, i(y));
|
|
4837
4837
|
},
|
|
@@ -4861,15 +4861,15 @@ function Cu(t, e, n) {
|
|
|
4861
4861
|
};
|
|
4862
4862
|
function a(i) {
|
|
4863
4863
|
var u;
|
|
4864
|
-
const c = e.key(i), f = e.children(i), d = n.checked.has(c),
|
|
4865
|
-
|
|
4864
|
+
const c = e.key(i), f = e.children(i), d = n.checked.has(c), p = e.matches ? e.matches(i) : r === "" || e.label(i).toLowerCase().includes(r);
|
|
4865
|
+
p && o.matches.add(c);
|
|
4866
4866
|
let v = d, m = !1;
|
|
4867
|
-
for (const
|
|
4868
|
-
const [y, w] = a(
|
|
4867
|
+
for (const h of f ?? []) {
|
|
4868
|
+
const [y, w] = a(h);
|
|
4869
4869
|
y && (v = !0), w && (m = !0);
|
|
4870
4870
|
}
|
|
4871
4871
|
f !== void 0 && !d && v && o.indeterminate.add(c), m && o.descendantMatches.add(c);
|
|
4872
|
-
const l =
|
|
4872
|
+
const l = p || m || ((u = e.unloaded) == null ? void 0 : u.call(e, i)) === !0;
|
|
4873
4873
|
return l && o.survives.add(c), [v, l];
|
|
4874
4874
|
}
|
|
4875
4875
|
for (const i of t) a(i);
|
|
@@ -4878,16 +4878,16 @@ function Cu(t, e, n) {
|
|
|
4878
4878
|
function zu(t, e, n) {
|
|
4879
4879
|
const r = e.matches !== void 0 || n.search.trim() !== "", o = Cu(t, e, n), a = [];
|
|
4880
4880
|
function i(c, f, d) {
|
|
4881
|
-
const
|
|
4882
|
-
|
|
4881
|
+
const p = d ? c : c.filter((v) => !r || o.survives.has(e.key(v)));
|
|
4882
|
+
p.forEach((v, m) => {
|
|
4883
4883
|
var T, D;
|
|
4884
|
-
const _ = e.key(v), l = e.children(v), u = ((T = e.unloaded) == null ? void 0 : T.call(e, v)) === !0,
|
|
4884
|
+
const _ = e.key(v), l = e.children(v), u = ((T = e.unloaded) == null ? void 0 : T.call(e, v)) === !0, h = l !== void 0 || u, y = h && !u && (l ?? []).length === 0, w = o.matches.has(_), k = r && !w && o.descendantMatches.has(_), S = r && o.descendantMatches.has(_), E = !y && h && (S || n.expanded.has(_));
|
|
4885
4885
|
a.push({
|
|
4886
4886
|
node: v,
|
|
4887
4887
|
key: _,
|
|
4888
4888
|
level: f,
|
|
4889
4889
|
label: e.label(v),
|
|
4890
|
-
branch:
|
|
4890
|
+
branch: h,
|
|
4891
4891
|
empty: y,
|
|
4892
4892
|
disabled: ((D = e.disabled) == null ? void 0 : D.call(e, v)) === !0,
|
|
4893
4893
|
unloaded: u,
|
|
@@ -4898,7 +4898,7 @@ function zu(t, e, n) {
|
|
|
4898
4898
|
matches: !r || w,
|
|
4899
4899
|
pathOnly: k,
|
|
4900
4900
|
position: m + 1,
|
|
4901
|
-
siblings:
|
|
4901
|
+
siblings: p.length
|
|
4902
4902
|
}), E && i(l ?? [], f + 1, d || w);
|
|
4903
4903
|
});
|
|
4904
4904
|
}
|
|
@@ -4986,22 +4986,22 @@ function yn(t, e, n, r, o) {
|
|
|
4986
4986
|
function f(m) {
|
|
4987
4987
|
const _ = e.children(m) ?? [];
|
|
4988
4988
|
if (_.length === 0) return;
|
|
4989
|
-
for (const
|
|
4989
|
+
for (const h of _) f(h);
|
|
4990
4990
|
if (!Ut(e, m)) return;
|
|
4991
4991
|
const l = e.key(m);
|
|
4992
|
-
_.every((
|
|
4992
|
+
_.every((h) => i.has(e.key(h))) ? i.add(l) : i.delete(l);
|
|
4993
4993
|
}
|
|
4994
4994
|
const d = /* @__PURE__ */ new Set();
|
|
4995
|
-
let
|
|
4995
|
+
let p = !1;
|
|
4996
4996
|
for (const m of r) {
|
|
4997
4997
|
const _ = a.nodes.get(m);
|
|
4998
4998
|
if (_ === void 0 || !Ut(e, _)) continue;
|
|
4999
|
-
|
|
4999
|
+
p = !0, c(_), f(_);
|
|
5000
5000
|
let l = a.parents.get(m) ?? null;
|
|
5001
5001
|
for (; l !== null; )
|
|
5002
5002
|
d.add(l), l = a.parents.get(l) ?? null;
|
|
5003
5003
|
}
|
|
5004
|
-
if (!
|
|
5004
|
+
if (!p) return n;
|
|
5005
5005
|
const v = [...d].sort(
|
|
5006
5006
|
(m, _) => (a.depth.get(_) ?? 0) - (a.depth.get(m) ?? 0)
|
|
5007
5007
|
);
|
|
@@ -5010,7 +5010,7 @@ function yn(t, e, n, r, o) {
|
|
|
5010
5010
|
if (_ === void 0 || !Ut(e, _)) continue;
|
|
5011
5011
|
const l = e.children(_) ?? [];
|
|
5012
5012
|
if (l.length === 0) continue;
|
|
5013
|
-
l.every((
|
|
5013
|
+
l.every((h) => i.has(e.key(h))) ? i.add(m) : i.delete(m);
|
|
5014
5014
|
}
|
|
5015
5015
|
return { ...n, checked: i };
|
|
5016
5016
|
}
|
|
@@ -5057,11 +5057,11 @@ function Fu(t, e, n, r) {
|
|
|
5057
5057
|
let o = t, a = null;
|
|
5058
5058
|
const i = new Set(n.expanded);
|
|
5059
5059
|
for (let d = 0; d < r.length; d++) {
|
|
5060
|
-
const
|
|
5060
|
+
const p = r[d], v = o.find((u) => e.key(u) === p);
|
|
5061
5061
|
if (v === void 0) break;
|
|
5062
|
-
a =
|
|
5062
|
+
a = p;
|
|
5063
5063
|
const m = e.children(v), _ = m !== void 0 || ((c = e.unloaded) == null ? void 0 : c.call(e, v)) === !0, l = _ && ((f = e.unloaded) == null ? void 0 : f.call(e, v)) !== !0 && (m ?? []).length === 0;
|
|
5064
|
-
d < r.length - 1 && _ && !l && i.add(
|
|
5064
|
+
d < r.length - 1 && _ && !l && i.add(p), o = m ?? [];
|
|
5065
5065
|
}
|
|
5066
5066
|
return a === null ? { snapshot: n, reached: null } : { snapshot: { ...n, expanded: i }, reached: a };
|
|
5067
5067
|
}
|
|
@@ -5102,13 +5102,13 @@ function im(t, e) {
|
|
|
5102
5102
|
checked: c,
|
|
5103
5103
|
active: f,
|
|
5104
5104
|
anchor: d,
|
|
5105
|
-
search:
|
|
5105
|
+
search: p,
|
|
5106
5106
|
onExpanded: v,
|
|
5107
5107
|
onChecked: m,
|
|
5108
5108
|
onActive: _,
|
|
5109
5109
|
onAnchor: l,
|
|
5110
5110
|
onSearch: u,
|
|
5111
|
-
onActivate:
|
|
5111
|
+
onActivate: h,
|
|
5112
5112
|
onLoadChildren: y,
|
|
5113
5113
|
virtual: w
|
|
5114
5114
|
} = e, [k, S] = W(
|
|
@@ -5121,7 +5121,7 @@ function im(t, e) {
|
|
|
5121
5121
|
checked: c ?? E,
|
|
5122
5122
|
active: f !== void 0 ? f : D,
|
|
5123
5123
|
anchor: d !== void 0 ? d : g,
|
|
5124
|
-
search:
|
|
5124
|
+
search: p ?? $
|
|
5125
5125
|
}),
|
|
5126
5126
|
[
|
|
5127
5127
|
i,
|
|
@@ -5132,7 +5132,7 @@ function im(t, e) {
|
|
|
5132
5132
|
D,
|
|
5133
5133
|
d,
|
|
5134
5134
|
g,
|
|
5135
|
-
|
|
5135
|
+
p,
|
|
5136
5136
|
$
|
|
5137
5137
|
]
|
|
5138
5138
|
), z = ye(
|
|
@@ -5163,8 +5163,8 @@ function im(t, e) {
|
|
|
5163
5163
|
(R) => {
|
|
5164
5164
|
const V = Y(R);
|
|
5165
5165
|
if (V === void 0 || !V.branch || V.empty) return;
|
|
5166
|
-
const
|
|
5167
|
-
B(
|
|
5166
|
+
const he = !V.expanded;
|
|
5167
|
+
B(he ? Kr(M, R) : Xr(M, R)), he && V.unloaded && (y == null || y(V.node));
|
|
5168
5168
|
},
|
|
5169
5169
|
[Y, M, B, y]
|
|
5170
5170
|
), ne = se(
|
|
@@ -5196,16 +5196,16 @@ function im(t, e) {
|
|
|
5196
5196
|
(R) => {
|
|
5197
5197
|
B(ft(M, R));
|
|
5198
5198
|
const V = Y(R);
|
|
5199
|
-
V !== void 0 && (
|
|
5199
|
+
V !== void 0 && (h == null || h(V.node));
|
|
5200
5200
|
},
|
|
5201
|
-
[M, B, Y,
|
|
5201
|
+
[M, B, Y, h]
|
|
5202
5202
|
), Z = se(
|
|
5203
5203
|
(R) => B(dr(z, M, R)),
|
|
5204
5204
|
[z, M, B]
|
|
5205
5205
|
), Q = se(
|
|
5206
5206
|
(R) => {
|
|
5207
|
-
const { snapshot: V, reached:
|
|
5208
|
-
return
|
|
5207
|
+
const { snapshot: V, reached: he } = Fu(t, n, M, R);
|
|
5208
|
+
return he === null ? null : (B(ft(V, he)), H((me) => me + 1), he);
|
|
5209
5209
|
},
|
|
5210
5210
|
[t, n, M, B]
|
|
5211
5211
|
), I = se(
|
|
@@ -5216,7 +5216,7 @@ function im(t, e) {
|
|
|
5216
5216
|
[t, n, Q]
|
|
5217
5217
|
), J = se(() => {
|
|
5218
5218
|
B({ ...M, expanded: new Set(Iu(t, n)) });
|
|
5219
|
-
}, [t, n, M, B]),
|
|
5219
|
+
}, [t, n, M, B]), pe = se(() => {
|
|
5220
5220
|
B({ ...M, expanded: /* @__PURE__ */ new Set() });
|
|
5221
5221
|
}, [M, B]), ae = se(
|
|
5222
5222
|
(R) => {
|
|
@@ -5226,9 +5226,9 @@ function im(t, e) {
|
|
|
5226
5226
|
[z, M, B]
|
|
5227
5227
|
), b = se(
|
|
5228
5228
|
(R) => {
|
|
5229
|
-
|
|
5229
|
+
p === void 0 && j(R), u == null || u(R);
|
|
5230
5230
|
},
|
|
5231
|
-
[
|
|
5231
|
+
[p, u]
|
|
5232
5232
|
), A = Mu(w ? z.length : 0, {
|
|
5233
5233
|
rowHeight: (w == null ? void 0 : w.rowHeight) ?? 0,
|
|
5234
5234
|
overscan: w == null ? void 0 : w.overscan
|
|
@@ -5247,7 +5247,7 @@ function im(t, e) {
|
|
|
5247
5247
|
revealPath: Q,
|
|
5248
5248
|
revealCount: C,
|
|
5249
5249
|
expandAll: J,
|
|
5250
|
-
collapseAll:
|
|
5250
|
+
collapseAll: pe,
|
|
5251
5251
|
typeahead: ae,
|
|
5252
5252
|
checkTo: ie,
|
|
5253
5253
|
moveAndCheck: de,
|
|
@@ -5289,7 +5289,7 @@ const Bu = "_text_1n64h_7 _text_r8i8z_23", Ou = "_heading_1n64h_11 _text_r8i8z_2
|
|
|
5289
5289
|
leading: c = "normal",
|
|
5290
5290
|
className: f,
|
|
5291
5291
|
children: d,
|
|
5292
|
-
...
|
|
5292
|
+
...p
|
|
5293
5293
|
}, v) {
|
|
5294
5294
|
return /* @__PURE__ */ s(
|
|
5295
5295
|
e,
|
|
@@ -5305,7 +5305,7 @@ const Bu = "_text_1n64h_7 _text_r8i8z_23", Ou = "_heading_1n64h_11 _text_r8i8z_2
|
|
|
5305
5305
|
qe[`leading-${c}`],
|
|
5306
5306
|
f
|
|
5307
5307
|
),
|
|
5308
|
-
...
|
|
5308
|
+
...p,
|
|
5309
5309
|
children: d
|
|
5310
5310
|
}
|
|
5311
5311
|
);
|
|
@@ -5317,19 +5317,19 @@ const Bu = "_text_1n64h_7 _text_r8i8z_23", Ou = "_heading_1n64h_11 _text_r8i8z_2
|
|
|
5317
5317
|
5: "sm",
|
|
5318
5318
|
6: "xs"
|
|
5319
5319
|
}, cm = K(function({ level: e = 2, size: n, weight: r = "semibold", tone: o = "default", className: a, children: i, ...c }, f) {
|
|
5320
|
-
const d = `h${e}`,
|
|
5320
|
+
const d = `h${e}`, p = n ?? Gu[e];
|
|
5321
5321
|
return /* @__PURE__ */ s(
|
|
5322
5322
|
d,
|
|
5323
5323
|
{
|
|
5324
5324
|
ref: f,
|
|
5325
5325
|
className: F(
|
|
5326
5326
|
qe.heading,
|
|
5327
|
-
qe[`size-${
|
|
5327
|
+
qe[`size-${p}`],
|
|
5328
5328
|
qe[`weight-${r}`],
|
|
5329
5329
|
qe[`tone-${o}`],
|
|
5330
5330
|
// Large titles run slightly compressed, medium ones less so.
|
|
5331
|
-
(
|
|
5332
|
-
|
|
5331
|
+
(p === "2xl" || p === "xl") && qe.trackingDisplay,
|
|
5332
|
+
p === "lg" && qe.trackingTight,
|
|
5333
5333
|
a
|
|
5334
5334
|
),
|
|
5335
5335
|
...c,
|
|
@@ -5347,7 +5347,7 @@ const Bu = "_text_1n64h_7 _text_r8i8z_23", Ou = "_heading_1n64h_11 _text_r8i8z_2
|
|
|
5347
5347
|
children: o
|
|
5348
5348
|
}
|
|
5349
5349
|
);
|
|
5350
|
-
}), Uu = "_hidden_69gri_7", Vu = "_focusable_69gri_20 _text_r8i8z_23",
|
|
5350
|
+
}), Uu = "_hidden_69gri_7", Vu = "_focusable_69gri_20 _text_r8i8z_23", hr = {
|
|
5351
5351
|
hidden: Uu,
|
|
5352
5352
|
focusable: Vu
|
|
5353
5353
|
}, Jr = K(function({ as: e, focusable: n = !1, className: r, children: o, ...a }, i) {
|
|
@@ -5355,7 +5355,7 @@ const Bu = "_text_1n64h_7 _text_r8i8z_23", Ou = "_heading_1n64h_11 _text_r8i8z_2
|
|
|
5355
5355
|
e ?? "span",
|
|
5356
5356
|
{
|
|
5357
5357
|
ref: i,
|
|
5358
|
-
className: F(
|
|
5358
|
+
className: F(hr.hidden, n && hr.focusable, r),
|
|
5359
5359
|
...a,
|
|
5360
5360
|
children: o
|
|
5361
5361
|
}
|
|
@@ -5393,14 +5393,14 @@ function Zu(t, e = {}) {
|
|
|
5393
5393
|
}, a = e.target;
|
|
5394
5394
|
return a !== void 0 && Number.isFinite(a) && (o.deviation = t - a), o;
|
|
5395
5395
|
}
|
|
5396
|
-
function
|
|
5396
|
+
function pr(t) {
|
|
5397
5397
|
if (t == null) return null;
|
|
5398
5398
|
const e = t instanceof Date ? t.getTime() : t;
|
|
5399
5399
|
return Number.isFinite(e) ? e : null;
|
|
5400
5400
|
}
|
|
5401
5401
|
const mr = 6e4, Qu = 1e3, Ju = 10;
|
|
5402
5402
|
function eo(t, e) {
|
|
5403
|
-
const n =
|
|
5403
|
+
const n = pr(t), r = pr(e);
|
|
5404
5404
|
return n === null || r === null ? null : Math.max(0, r - n);
|
|
5405
5405
|
}
|
|
5406
5406
|
function ef(t, e, n) {
|
|
@@ -5432,7 +5432,7 @@ function nf(t, e) {
|
|
|
5432
5432
|
[r, c, o, a]
|
|
5433
5433
|
);
|
|
5434
5434
|
}
|
|
5435
|
-
const rf = "_stat_y5wyr_11 _text_r8i8z_23", of = "_body_y5wyr_22", sf = "_figures_y5wyr_29", af = "_label_y5wyr_36", cf = "_valueRow_y5wyr_43", lf = "_value_y5wyr_43", df = "_unit_y5wyr_62", uf = "_verdict_y5wyr_69", ff = "_deviation_y5wyr_106",
|
|
5435
|
+
const rf = "_stat_y5wyr_11 _text_r8i8z_23", of = "_body_y5wyr_22", sf = "_figures_y5wyr_29", af = "_label_y5wyr_36", cf = "_valueRow_y5wyr_43", lf = "_value_y5wyr_43", df = "_unit_y5wyr_62", uf = "_verdict_y5wyr_69", ff = "_deviation_y5wyr_106", hf = "_history_y5wyr_111", pf = "_asOf_y5wyr_136", mf = "_age_y5wyr_154", Je = {
|
|
5436
5436
|
stat: rf,
|
|
5437
5437
|
body: of,
|
|
5438
5438
|
figures: sf,
|
|
@@ -5442,8 +5442,8 @@ const rf = "_stat_y5wyr_11 _text_r8i8z_23", of = "_body_y5wyr_22", sf = "_figure
|
|
|
5442
5442
|
unit: df,
|
|
5443
5443
|
verdict: uf,
|
|
5444
5444
|
deviation: ff,
|
|
5445
|
-
history:
|
|
5446
|
-
asOf:
|
|
5445
|
+
history: hf,
|
|
5446
|
+
asOf: pf,
|
|
5447
5447
|
age: mf
|
|
5448
5448
|
};
|
|
5449
5449
|
function _f(t, e) {
|
|
@@ -5473,15 +5473,15 @@ function vf({
|
|
|
5473
5473
|
i !== null && /* @__PURE__ */ s("span", { className: Je.age, children: n.relative(i) })
|
|
5474
5474
|
] });
|
|
5475
5475
|
}
|
|
5476
|
-
const um = K(function({ label: e, value: n, unit: r, decimals: o, limits: a, history: i, asOf: c, ages: f, className: d, ...
|
|
5476
|
+
const um = K(function({ label: e, value: n, unit: r, decimals: o, limits: a, history: i, asOf: c, ages: f, className: d, ...p }, v) {
|
|
5477
5477
|
var D;
|
|
5478
|
-
const m = tt(), _ = ve(), l = Zu(n, a), u = l.verdict,
|
|
5478
|
+
const m = tt(), _ = ve(), l = Zu(n, a), u = l.verdict, h = _f(u, _), y = u !== "unknown", k = (((D = a == null ? void 0 : a.limits) == null ? void 0 : D.length) ?? 0) > 0 || !y, S = gf(l.deviation, o, m, _), E = y ? m.number(n, o) : _.statAbsentValue, T = `${e}: ${y ? `${E}${r ? ` ${r}` : ""}` : h}${y && k && u !== "ok" ? `, ${h}` : ""}`;
|
|
5479
5479
|
return /* @__PURE__ */ s(
|
|
5480
5480
|
"div",
|
|
5481
5481
|
{
|
|
5482
5482
|
ref: v,
|
|
5483
5483
|
className: F(Je.stat, d),
|
|
5484
|
-
...
|
|
5484
|
+
...p,
|
|
5485
5485
|
role: "group",
|
|
5486
5486
|
"aria-label": T,
|
|
5487
5487
|
"data-verdict": k ? u : void 0,
|
|
@@ -5492,7 +5492,7 @@ const um = K(function({ label: e, value: n, unit: r, decimals: o, limits: a, his
|
|
|
5492
5492
|
/* @__PURE__ */ s("span", { className: Je.value, children: E }),
|
|
5493
5493
|
y && r !== void 0 && /* @__PURE__ */ s("span", { className: Je.unit, children: r })
|
|
5494
5494
|
] }),
|
|
5495
|
-
k && /* @__PURE__ */ s("span", { className: Je.verdict, "data-verdict": u, children:
|
|
5495
|
+
k && /* @__PURE__ */ s("span", { className: Je.verdict, "data-verdict": u, children: h }),
|
|
5496
5496
|
S !== null && y && /* @__PURE__ */ s("span", { className: Je.deviation, children: S }),
|
|
5497
5497
|
c !== void 0 && f !== void 0 && /* @__PURE__ */ s(vf, { asOf: c ?? null, ages: f })
|
|
5498
5498
|
] }),
|
|
@@ -5565,12 +5565,12 @@ const fm = K(function({
|
|
|
5565
5565
|
onUse: c,
|
|
5566
5566
|
label: f,
|
|
5567
5567
|
className: d,
|
|
5568
|
-
...
|
|
5568
|
+
...p
|
|
5569
5569
|
}, v) {
|
|
5570
5570
|
var ae;
|
|
5571
5571
|
const m = ve(), _ = O(null), l = O(null);
|
|
5572
5572
|
Nn(v, () => _.current, []);
|
|
5573
|
-
const [u,
|
|
5573
|
+
const [u, h] = W(r), y = n !== void 0, w = n ?? u, k = O(w);
|
|
5574
5574
|
k.current = w;
|
|
5575
5575
|
const [S, E] = W(null), [T, D] = W(""), U = O(null);
|
|
5576
5576
|
le(
|
|
@@ -5587,21 +5587,21 @@ const fm = K(function({
|
|
|
5587
5587
|
if (R === void 0) return null;
|
|
5588
5588
|
const V = b.getBoundingClientRect();
|
|
5589
5589
|
if (V.width === 0 && V.height === 0) return null;
|
|
5590
|
-
const
|
|
5590
|
+
const he = getComputedStyle(b), me = Zt(k.current), ke = (De) => me ? De.height : De.width, Le = (De) => me ? De.width : De.height, Se = R.getBoundingClientRect(), Te = (Ne = A[1]) == null ? void 0 : Ne.getBoundingClientRect();
|
|
5591
5591
|
return {
|
|
5592
5592
|
tool: Te === void 0 ? 0 : ke(Te),
|
|
5593
5593
|
grip: ke(Se),
|
|
5594
|
-
gap: Wt(
|
|
5595
|
-
padding: Wt(
|
|
5594
|
+
gap: Wt(he, me ? "row-gap" : "column-gap"),
|
|
5595
|
+
padding: Wt(he, me ? "padding-top" : "padding-left"),
|
|
5596
5596
|
/* The thickness is calculated and not measured on the strip: its shape is
|
|
5597
5597
|
in motion during a transition, that of a tool field never. Across,
|
|
5598
5598
|
exactly one field stands between the two paddings - grip and tool are
|
|
5599
5599
|
equally wide there. */
|
|
5600
|
-
thickness: Le(Te === void 0 ? Se : Te) + 2 * Wt(
|
|
5600
|
+
thickness: Le(Te === void 0 ? Se : Te) + 2 * Wt(he, me ? "padding-left" : "padding-top"),
|
|
5601
5601
|
/* The margin is read from the token and not calculated back from the
|
|
5602
5602
|
position of the strip: it is the same at all four edges, and the
|
|
5603
5603
|
position knows it only at the one the dock currently lies at. */
|
|
5604
|
-
margin: Wt(
|
|
5604
|
+
margin: Wt(he, "--u-dock-margin")
|
|
5605
5605
|
};
|
|
5606
5606
|
}, []), P = se(() => {
|
|
5607
5607
|
const b = _.current;
|
|
@@ -5620,16 +5620,16 @@ const fm = K(function({
|
|
|
5620
5620
|
U.current !== null && (clearTimeout(U.current), U.current = null), E(null);
|
|
5621
5621
|
}, []), M = se(
|
|
5622
5622
|
(b) => {
|
|
5623
|
-
b !== k.current && ($.current = C(k.current), H(), y ||
|
|
5623
|
+
b !== k.current && ($.current = C(k.current), H(), y || h(b), k.current = b, o == null || o(b), D(m.dockPlaced(m.dockPlace(b))));
|
|
5624
5624
|
},
|
|
5625
5625
|
[y, H, C, o, m]
|
|
5626
5626
|
), z = se(
|
|
5627
5627
|
(b, A, R, V) => {
|
|
5628
|
-
const
|
|
5628
|
+
const he = no(R, A);
|
|
5629
5629
|
E({
|
|
5630
5630
|
place: b,
|
|
5631
|
-
width: `${Zt(b) ? A.thickness :
|
|
5632
|
-
height: `${Zt(b) ?
|
|
5631
|
+
width: `${Zt(b) ? A.thickness : he}px`,
|
|
5632
|
+
height: `${Zt(b) ? he : A.thickness}px`
|
|
5633
5633
|
}), D(m.dockNoPlace(m.dockPlace(b))), U.current !== null && clearTimeout(U.current);
|
|
5634
5634
|
const me = l.current === null ? null : getComputedStyle(l.current), ke = me === null ? 0 : Vt(me, "--u-dock-refusal-duration");
|
|
5635
5635
|
U.current = V && ke > 0 ? setTimeout(() => {
|
|
@@ -5659,7 +5659,7 @@ const fm = K(function({
|
|
|
5659
5659
|
b.preventDefault();
|
|
5660
5660
|
const R = b.pointerId;
|
|
5661
5661
|
A.setPointerCapture(R), A.dataset.dragging = "";
|
|
5662
|
-
const V = P(),
|
|
5662
|
+
const V = P(), he = g(), me = Wt(getComputedStyle(A), "--u-dock-grip-travel"), ke = k.current;
|
|
5663
5663
|
let Le = b.clientX, Se = b.clientY;
|
|
5664
5664
|
const Te = (N, G) => {
|
|
5665
5665
|
const te = (re) => Math.max(-me, Math.min(me, re));
|
|
@@ -5669,7 +5669,7 @@ const fm = K(function({
|
|
|
5669
5669
|
const G = k.current;
|
|
5670
5670
|
if (V !== null) {
|
|
5671
5671
|
const te = bf({ x: N.clientX, y: N.clientY }, V);
|
|
5672
|
-
te === k.current ? H() : B(te, V,
|
|
5672
|
+
te === k.current ? H() : B(te, V, he, !1);
|
|
5673
5673
|
}
|
|
5674
5674
|
k.current !== G && (Le = N.clientX, Se = N.clientY), Te(N.clientX, N.clientY);
|
|
5675
5675
|
}, De = () => {
|
|
@@ -5688,12 +5688,12 @@ const fm = K(function({
|
|
|
5688
5688
|
return Array.from(((A = l.current) == null ? void 0 : A.querySelectorAll("[data-tool]")) ?? []).find((R) => R.dataset.tool === b);
|
|
5689
5689
|
}, Z = de !== null && ie.some((b) => b.id === de) ? de : ((ae = ie[0]) == null ? void 0 : ae.id) ?? null, Q = (b) => {
|
|
5690
5690
|
var Se;
|
|
5691
|
-
const A = b.key === "ArrowRight" || b.key === "ArrowDown", R = b.key === "ArrowLeft" || b.key === "ArrowUp", V = b.key === "Home",
|
|
5692
|
-
if (!A && !R && !V && !
|
|
5691
|
+
const A = b.key === "ArrowRight" || b.key === "ArrowDown", R = b.key === "ArrowLeft" || b.key === "ArrowUp", V = b.key === "Home", he = b.key === "End";
|
|
5692
|
+
if (!A && !R && !V && !he || ie.length === 0) return;
|
|
5693
5693
|
b.preventDefault();
|
|
5694
5694
|
const me = ie.findIndex(
|
|
5695
5695
|
(Te) => Te.id === b.currentTarget.dataset.tool
|
|
5696
|
-
), ke = V ? 0 :
|
|
5696
|
+
), ke = V ? 0 : he ? ie.length - 1 : In(me === -1 ? 0 : me, ie.length, A ? 1 : -1), Le = ie[ke];
|
|
5697
5697
|
Le !== void 0 && (ue(Le.id), (Se = fe(Le.id)) == null || Se.focus());
|
|
5698
5698
|
}, I = (b) => {
|
|
5699
5699
|
ue(b.id), c == null || c(b.id), a !== void 0 && a !== b.id && (i == null || i(b.id));
|
|
@@ -5703,19 +5703,19 @@ const fm = K(function({
|
|
|
5703
5703
|
if (b !== null && b.place === w) return;
|
|
5704
5704
|
J();
|
|
5705
5705
|
const A = C(w);
|
|
5706
|
-
$.current = A, !(b === null || A === null) && (rn() ||
|
|
5706
|
+
$.current = A, !(b === null || A === null) && (rn() || pe(b, A));
|
|
5707
5707
|
});
|
|
5708
5708
|
function J() {
|
|
5709
5709
|
for (const b of j.current) b.cancel();
|
|
5710
5710
|
j.current = [];
|
|
5711
5711
|
}
|
|
5712
|
-
function
|
|
5712
|
+
function pe(b, A) {
|
|
5713
5713
|
const R = l.current;
|
|
5714
5714
|
if (R === null || typeof R.animate != "function") return;
|
|
5715
|
-
const V = getComputedStyle(R),
|
|
5716
|
-
if (
|
|
5715
|
+
const V = getComputedStyle(R), he = Vt(V, "--u-duration-medium");
|
|
5716
|
+
if (he <= 0) return;
|
|
5717
5717
|
const me = {
|
|
5718
|
-
duration:
|
|
5718
|
+
duration: he,
|
|
5719
5719
|
easing: V.getPropertyValue("--u-ease-out").trim() || "ease-out"
|
|
5720
5720
|
}, ke = (Ne) => ({
|
|
5721
5721
|
left: `${Ne.strip.left - Ne.root.left}px`,
|
|
@@ -5749,11 +5749,11 @@ const fm = K(function({
|
|
|
5749
5749
|
const A = new ResizeObserver(() => {
|
|
5750
5750
|
const R = P(), V = g();
|
|
5751
5751
|
if (R === null || V === null || kn(k.current, e.length, R, V)) return;
|
|
5752
|
-
const
|
|
5753
|
-
|
|
5752
|
+
const he = wf(k.current, e.length, R, V);
|
|
5753
|
+
he !== void 0 && M(he);
|
|
5754
5754
|
});
|
|
5755
5755
|
return A.observe(b), () => A.disconnect();
|
|
5756
|
-
}, [g, M, e.length, P]), /* @__PURE__ */ x("div", { ref: _, className: F(Tt.root, d), ...
|
|
5756
|
+
}, [g, M, e.length, P]), /* @__PURE__ */ x("div", { ref: _, className: F(Tt.root, d), ...p, children: [
|
|
5757
5757
|
/* @__PURE__ */ x(
|
|
5758
5758
|
"div",
|
|
5759
5759
|
{
|
|
@@ -5809,19 +5809,19 @@ const fm = K(function({
|
|
|
5809
5809
|
/* @__PURE__ */ s(Jr, { role: "status", "aria-live": "polite", children: T })
|
|
5810
5810
|
] });
|
|
5811
5811
|
});
|
|
5812
|
-
function
|
|
5812
|
+
function hm({ open: t, onOpenChange: e, position: n, ariaLabel: r, children: o }) {
|
|
5813
5813
|
const a = O(null), i = O(null);
|
|
5814
5814
|
Ke(() => {
|
|
5815
5815
|
if (!t) return;
|
|
5816
|
-
const
|
|
5817
|
-
i.current =
|
|
5816
|
+
const p = document.activeElement;
|
|
5817
|
+
i.current = p instanceof HTMLElement && p !== document.body ? p : null;
|
|
5818
5818
|
}, [t]);
|
|
5819
|
-
const c = O(null), f = se((
|
|
5819
|
+
const c = O(null), f = se((p) => {
|
|
5820
5820
|
var v;
|
|
5821
|
-
c.current =
|
|
5821
|
+
c.current = p, (v = p == null ? void 0 : p.querySelector('[role="menuitem"]:not([disabled])')) == null || v.focus();
|
|
5822
5822
|
}, []), d = () => {
|
|
5823
|
-
var
|
|
5824
|
-
e(!1), (
|
|
5823
|
+
var p;
|
|
5824
|
+
e(!1), (p = i.current) == null || p.focus();
|
|
5825
5825
|
};
|
|
5826
5826
|
return /* @__PURE__ */ x(Re, { children: [
|
|
5827
5827
|
/* @__PURE__ */ s(
|
|
@@ -5849,7 +5849,7 @@ function pm({ open: t, onOpenChange: e, position: n, ariaLabel: r, children: o }
|
|
|
5849
5849
|
{
|
|
5850
5850
|
ref: f,
|
|
5851
5851
|
className: Rt.content,
|
|
5852
|
-
onKeyDown: (
|
|
5852
|
+
onKeyDown: (p) => Mr(p, c.current, d),
|
|
5853
5853
|
children: /* @__PURE__ */ s(En.Provider, { value: { close: d }, children: o })
|
|
5854
5854
|
}
|
|
5855
5855
|
)
|
|
@@ -5866,17 +5866,17 @@ const Af = "_wrapper_uislv_8 _text_r8i8z_23", Mf = "_sm_uislv_26", Cf = "_track_
|
|
|
5866
5866
|
thumb: Lf,
|
|
5867
5867
|
invalid: Ef,
|
|
5868
5868
|
label: Pf
|
|
5869
|
-
},
|
|
5870
|
-
const d = Be(n),
|
|
5871
|
-
return /* @__PURE__ */ x("label", { className: F(kt.wrapper, d === "sm" && kt.sm,
|
|
5869
|
+
}, pm = K(function({ label: e, size: n, invalid: r, className: o, style: a, id: i, ...c }, f) {
|
|
5870
|
+
const d = Be(n), p = He(), v = i ?? (p == null ? void 0 : p.id), m = r ?? (p == null ? void 0 : p.invalid) ?? !1;
|
|
5871
|
+
return /* @__PURE__ */ x("label", { className: F(kt.wrapper, d === "sm" && kt.sm, p && kt.field, o), style: a, htmlFor: v, children: [
|
|
5872
5872
|
/* @__PURE__ */ s(
|
|
5873
5873
|
"input",
|
|
5874
5874
|
{
|
|
5875
5875
|
ref: f,
|
|
5876
5876
|
type: "checkbox",
|
|
5877
5877
|
id: v,
|
|
5878
|
-
"aria-describedby": c["aria-describedby"] ?? (
|
|
5879
|
-
"aria-required": (
|
|
5878
|
+
"aria-describedby": c["aria-describedby"] ?? (p == null ? void 0 : p.describedBy),
|
|
5879
|
+
"aria-required": (p == null ? void 0 : p.required) || void 0,
|
|
5880
5880
|
"aria-invalid": m || void 0,
|
|
5881
5881
|
className: F(kt.input, m && kt.invalid),
|
|
5882
5882
|
...c,
|
|
@@ -5930,13 +5930,13 @@ const mm = K(function({
|
|
|
5930
5930
|
marks: c,
|
|
5931
5931
|
format: f,
|
|
5932
5932
|
showValue: d = !0,
|
|
5933
|
-
className:
|
|
5933
|
+
className: p,
|
|
5934
5934
|
style: v,
|
|
5935
5935
|
id: m,
|
|
5936
5936
|
disabled: _,
|
|
5937
5937
|
onKeyDown: l,
|
|
5938
5938
|
...u
|
|
5939
|
-
},
|
|
5939
|
+
}, h) {
|
|
5940
5940
|
const y = tt(), w = He(), [k, S] = W(() => Ot(n ?? o, o, a, i)), E = e !== void 0, T = E ? e : k, D = f ? f(T) : y.number(T, Gn(i)), U = ($) => a > o ? ($ - o) / (a - o) * 100 : 0, g = ($) => {
|
|
5941
5941
|
$ !== T && (E || S($), r == null || r($));
|
|
5942
5942
|
}, P = ($) => {
|
|
@@ -5944,12 +5944,12 @@ const mm = K(function({
|
|
|
5944
5944
|
const j = Wf($.key, T, o, a, i);
|
|
5945
5945
|
j !== void 0 && ($.preventDefault(), g(j));
|
|
5946
5946
|
};
|
|
5947
|
-
return /* @__PURE__ */ x("div", { className: F(Dt.slider,
|
|
5947
|
+
return /* @__PURE__ */ x("div", { className: F(Dt.slider, p), style: v, children: [
|
|
5948
5948
|
/* @__PURE__ */ x("div", { className: Dt.control, children: [
|
|
5949
5949
|
/* @__PURE__ */ s(
|
|
5950
5950
|
"input",
|
|
5951
5951
|
{
|
|
5952
|
-
ref:
|
|
5952
|
+
ref: h,
|
|
5953
5953
|
type: "range",
|
|
5954
5954
|
id: m ?? (w == null ? void 0 : w.id),
|
|
5955
5955
|
"aria-describedby": u["aria-describedby"] ?? (w == null ? void 0 : w.describedBy),
|
|
@@ -5982,7 +5982,7 @@ const mm = K(function({
|
|
|
5982
5982
|
sweep: Yf,
|
|
5983
5983
|
label: Kf
|
|
5984
5984
|
}, _m = K(function({ value: e, label: n, valueText: r, showLabel: o = !1, className: a, ...i }, c) {
|
|
5985
|
-
const f = tt(), d = ve(),
|
|
5985
|
+
const f = tt(), d = ve(), p = e !== void 0, v = p ? Hn(e) : 0;
|
|
5986
5986
|
return /* @__PURE__ */ x(
|
|
5987
5987
|
"div",
|
|
5988
5988
|
{
|
|
@@ -5991,40 +5991,40 @@ const mm = K(function({
|
|
|
5991
5991
|
className: F(Gt.progress, a),
|
|
5992
5992
|
...i,
|
|
5993
5993
|
role: "progressbar",
|
|
5994
|
-
"aria-valuemin":
|
|
5995
|
-
"aria-valuemax":
|
|
5996
|
-
"aria-valuenow":
|
|
5997
|
-
"aria-valuetext":
|
|
5998
|
-
"data-indeterminate":
|
|
5994
|
+
"aria-valuemin": p ? 0 : void 0,
|
|
5995
|
+
"aria-valuemax": p ? 100 : void 0,
|
|
5996
|
+
"aria-valuenow": p ? Lr(v) : void 0,
|
|
5997
|
+
"aria-valuetext": p ? r : void 0,
|
|
5998
|
+
"data-indeterminate": p ? void 0 : "",
|
|
5999
5999
|
children: [
|
|
6000
6000
|
/* @__PURE__ */ s("span", { className: Gt.track, children: /* @__PURE__ */ s(
|
|
6001
6001
|
"span",
|
|
6002
6002
|
{
|
|
6003
|
-
className: F(Gt.fill, !
|
|
6004
|
-
style:
|
|
6003
|
+
className: F(Gt.fill, !p && Gt.sweep),
|
|
6004
|
+
style: p ? { width: `${v * 100}%` } : void 0
|
|
6005
6005
|
}
|
|
6006
6006
|
) }),
|
|
6007
|
-
o &&
|
|
6007
|
+
o && p && /* @__PURE__ */ s("span", { className: Gt.label, children: f.percent(v) })
|
|
6008
6008
|
]
|
|
6009
6009
|
}
|
|
6010
6010
|
);
|
|
6011
|
-
}), Xf = "_accordion_amymf_9 _text_r8i8z_23", Zf = "_item_amymf_15", Qf = "_heading_amymf_19", Jf = "_header_amymf_26 _ring_r8i8z_125",
|
|
6011
|
+
}), Xf = "_accordion_amymf_9 _text_r8i8z_23", Zf = "_item_amymf_15", Qf = "_heading_amymf_19", Jf = "_header_amymf_26 _ring_r8i8z_125", eh = "_title_amymf_57", th = "_chevron_amymf_61", nh = "_chevronOpen_amymf_67", rh = "_collapse_amymf_71", oh = "_collapsed_amymf_77", sh = "_collapseInner_amymf_81", ih = "_panel_amymf_86", it = {
|
|
6012
6012
|
accordion: Xf,
|
|
6013
6013
|
item: Zf,
|
|
6014
6014
|
heading: Qf,
|
|
6015
6015
|
header: Jf,
|
|
6016
|
-
title:
|
|
6017
|
-
chevron:
|
|
6018
|
-
chevronOpen:
|
|
6019
|
-
collapse:
|
|
6020
|
-
collapsed:
|
|
6021
|
-
collapseInner:
|
|
6022
|
-
panel:
|
|
6023
|
-
}, oo = at(null), gm = K(function({ type: e = "single", value: n, defaultValue: r = [], onChange: o, headingLevel: a = 3, className: i, onKeyDown: c, children: f, ...d },
|
|
6016
|
+
title: eh,
|
|
6017
|
+
chevron: th,
|
|
6018
|
+
chevronOpen: nh,
|
|
6019
|
+
collapse: rh,
|
|
6020
|
+
collapsed: oh,
|
|
6021
|
+
collapseInner: sh,
|
|
6022
|
+
panel: ih
|
|
6023
|
+
}, oo = at(null), gm = K(function({ type: e = "single", value: n, defaultValue: r = [], onChange: o, headingLevel: a = 3, className: i, onKeyDown: c, children: f, ...d }, p) {
|
|
6024
6024
|
const [v, m] = W(r), _ = n !== void 0, l = _ ? n : v, u = (y) => {
|
|
6025
6025
|
const k = l.includes(y) ? l.filter((S) => S !== y) : e === "single" ? [y] : [...l, y];
|
|
6026
6026
|
_ || m(k), o == null || o(k);
|
|
6027
|
-
},
|
|
6027
|
+
}, h = (y) => {
|
|
6028
6028
|
if (c == null || c(y), y.defaultPrevented) return;
|
|
6029
6029
|
const w = y.currentTarget, k = y.target;
|
|
6030
6030
|
if (!k.matches("[data-accordion-header]") || k.closest("[data-accordion]") !== w) return;
|
|
@@ -6038,15 +6038,15 @@ const mm = K(function({
|
|
|
6038
6038
|
}[y.key];
|
|
6039
6039
|
T && (y.preventDefault(), T.focus());
|
|
6040
6040
|
};
|
|
6041
|
-
return /* @__PURE__ */ s("div", { ref:
|
|
6041
|
+
return /* @__PURE__ */ s("div", { ref: p, className: F(it.accordion, i), ...d, "data-accordion": "", onKeyDown: h, children: /* @__PURE__ */ s(oo.Provider, { value: { open: l, toggle: u, headingLevel: a }, children: f }) });
|
|
6042
6042
|
}), vm = K(function({ value: e, title: n, disabled: r = !1, className: o, children: a, ...i }, c) {
|
|
6043
|
-
const f = Qe(oo), d = Me(),
|
|
6043
|
+
const f = Qe(oo), d = Me(), p = `${d}-header`, v = `${d}-panel`, m = (f == null ? void 0 : f.open.includes(e)) ?? !1, _ = `h${(f == null ? void 0 : f.headingLevel) ?? 3}`;
|
|
6044
6044
|
return /* @__PURE__ */ x("div", { ref: c, className: F(it.item, o), ...i, children: [
|
|
6045
6045
|
/* @__PURE__ */ s(_, { className: it.heading, children: /* @__PURE__ */ x(
|
|
6046
6046
|
"button",
|
|
6047
6047
|
{
|
|
6048
6048
|
type: "button",
|
|
6049
|
-
id:
|
|
6049
|
+
id: p,
|
|
6050
6050
|
className: it.header,
|
|
6051
6051
|
"aria-expanded": m,
|
|
6052
6052
|
"aria-controls": v,
|
|
@@ -6059,10 +6059,10 @@ const mm = K(function({
|
|
|
6059
6059
|
]
|
|
6060
6060
|
}
|
|
6061
6061
|
) }),
|
|
6062
|
-
/* @__PURE__ */ s("div", { className: F(it.collapse, !m && it.collapsed), children: /* @__PURE__ */ s("div", { className: it.collapseInner, inert: !m || void 0, children: /* @__PURE__ */ s("div", { id: v, role: "region", "aria-labelledby":
|
|
6062
|
+
/* @__PURE__ */ s("div", { className: F(it.collapse, !m && it.collapsed), children: /* @__PURE__ */ s("div", { className: it.collapseInner, inert: !m || void 0, children: /* @__PURE__ */ s("div", { id: v, role: "region", "aria-labelledby": p, className: it.panel, children: a }) }) })
|
|
6063
6063
|
] });
|
|
6064
6064
|
});
|
|
6065
|
-
function
|
|
6065
|
+
function ah(t, e, n, r) {
|
|
6066
6066
|
const o = t.length, a = (i) => t.slice(i).reduce((c, f) => c + f, 0);
|
|
6067
6067
|
if (o <= 2 || a(0) + (o - 1) * n <= r) return 0;
|
|
6068
6068
|
for (let i = 1; i < o - 2; i++) {
|
|
@@ -6071,35 +6071,35 @@ function ap(t, e, n, r) {
|
|
|
6071
6071
|
}
|
|
6072
6072
|
return o - 2;
|
|
6073
6073
|
}
|
|
6074
|
-
const
|
|
6075
|
-
breadcrumb:
|
|
6076
|
-
list:
|
|
6077
|
-
item:
|
|
6078
|
-
lastItem:
|
|
6079
|
-
link:
|
|
6080
|
-
text:
|
|
6081
|
-
current:
|
|
6082
|
-
more:
|
|
6083
|
-
separator:
|
|
6084
|
-
measure:
|
|
6074
|
+
const ch = "_breadcrumb_5vnnn_9 _text_r8i8z_23", lh = "_list_5vnnn_15", dh = "_item_5vnnn_27", uh = "_lastItem_5vnnn_35", fh = "_link_5vnnn_5 _ring_r8i8z_125", hh = "_text_5vnnn_5", ph = "_current_5vnnn_61", mh = "_more_5vnnn_73 _ring_r8i8z_125", _h = "_separator_5vnnn_101", gh = "_measure_5vnnn_109", Ae = {
|
|
6075
|
+
breadcrumb: ch,
|
|
6076
|
+
list: lh,
|
|
6077
|
+
item: dh,
|
|
6078
|
+
lastItem: uh,
|
|
6079
|
+
link: fh,
|
|
6080
|
+
text: hh,
|
|
6081
|
+
current: ph,
|
|
6082
|
+
more: mh,
|
|
6083
|
+
separator: _h,
|
|
6084
|
+
measure: gh
|
|
6085
6085
|
}, Yt = /* @__PURE__ */ s(qt, { size: 8, className: Ae.separator }), bm = K(function({ items: e, className: n, ...r }, o) {
|
|
6086
|
-
const a = ve(), i = O(null), c = O(null), [f, d] = W(0),
|
|
6086
|
+
const a = ve(), i = O(null), c = O(null), [f, d] = W(0), p = se(() => {
|
|
6087
6087
|
var S;
|
|
6088
|
-
const u = i.current,
|
|
6089
|
-
if (!u || !
|
|
6090
|
-
const y = Array.from(
|
|
6091
|
-
d(
|
|
6088
|
+
const u = i.current, h = c.current;
|
|
6089
|
+
if (!u || !h) return;
|
|
6090
|
+
const y = Array.from(h.querySelectorAll("[data-measure-level]")).map((E) => E.offsetWidth), w = ((S = h.querySelector("[data-measure-more]")) == null ? void 0 : S.offsetWidth) ?? 0, k = Number.parseFloat(getComputedStyle(h).columnGap) || 0;
|
|
6091
|
+
d(ah(y, w, k, u.clientWidth));
|
|
6092
6092
|
}, []);
|
|
6093
|
-
Ke(() =>
|
|
6093
|
+
Ke(() => p()), le(() => {
|
|
6094
6094
|
const u = i.current;
|
|
6095
6095
|
if (!u) return;
|
|
6096
|
-
const
|
|
6097
|
-
return
|
|
6098
|
-
}, [
|
|
6096
|
+
const h = new ResizeObserver(() => p());
|
|
6097
|
+
return h.observe(u), () => h.disconnect();
|
|
6098
|
+
}, [p]);
|
|
6099
6099
|
const v = e.length - 1, m = e.slice(1, 1 + f), _ = (u) => {
|
|
6100
6100
|
u.onSelect ? u.onSelect() : u.href && window.location.assign(u.href);
|
|
6101
|
-
}, l = (u,
|
|
6102
|
-
const y =
|
|
6101
|
+
}, l = (u, h) => {
|
|
6102
|
+
const y = h === v ? "page" : void 0;
|
|
6103
6103
|
return u.href !== void 0 ? /* @__PURE__ */ s(
|
|
6104
6104
|
"a",
|
|
6105
6105
|
{
|
|
@@ -6114,7 +6114,7 @@ const cp = "_breadcrumb_5vnnn_9 _text_r8i8z_23", lp = "_list_5vnnn_15", dp = "_i
|
|
|
6114
6114
|
) : u.onSelect && !y ? /* @__PURE__ */ s("button", { type: "button", className: Ae.link, onClick: u.onSelect, children: u.label }) : /* @__PURE__ */ s("span", { "aria-current": y, className: F(Ae.text, y && Ae.current), children: u.label });
|
|
6115
6115
|
};
|
|
6116
6116
|
return /* @__PURE__ */ x("nav", { ref: Oe(i, o), "aria-label": a.breadcrumb, className: F(Ae.breadcrumb, n), ...r, children: [
|
|
6117
|
-
/* @__PURE__ */ s("ol", { className: Ae.list, children: e.map((u,
|
|
6117
|
+
/* @__PURE__ */ s("ol", { className: Ae.list, children: e.map((u, h) => h > 0 && h <= f ? h > 1 ? null : /* @__PURE__ */ x("li", { className: Ae.item, children: [
|
|
6118
6118
|
/* @__PURE__ */ s(
|
|
6119
6119
|
Cr,
|
|
6120
6120
|
{
|
|
@@ -6123,27 +6123,27 @@ const cp = "_breadcrumb_5vnnn_9 _text_r8i8z_23", lp = "_list_5vnnn_15", dp = "_i
|
|
|
6123
6123
|
}
|
|
6124
6124
|
),
|
|
6125
6125
|
Yt
|
|
6126
|
-
] }, "more") : /* @__PURE__ */ x("li", { className: F(Ae.item,
|
|
6127
|
-
l(u,
|
|
6128
|
-
|
|
6129
|
-
] },
|
|
6126
|
+
] }, "more") : /* @__PURE__ */ x("li", { className: F(Ae.item, h === v && Ae.lastItem), children: [
|
|
6127
|
+
l(u, h),
|
|
6128
|
+
h < v && Yt
|
|
6129
|
+
] }, h)) }),
|
|
6130
6130
|
/* @__PURE__ */ x("ol", { ref: c, className: F(Ae.list, Ae.measure), "aria-hidden": "true", children: [
|
|
6131
|
-
e.map((u,
|
|
6132
|
-
/* @__PURE__ */ s("span", { className: F(Ae.text,
|
|
6133
|
-
|
|
6134
|
-
] },
|
|
6131
|
+
e.map((u, h) => /* @__PURE__ */ x("li", { className: Ae.item, "data-measure-level": "", children: [
|
|
6132
|
+
/* @__PURE__ */ s("span", { className: F(Ae.text, h === v && Ae.current), children: u.label }),
|
|
6133
|
+
h < v && Yt
|
|
6134
|
+
] }, h)),
|
|
6135
6135
|
/* @__PURE__ */ x("li", { className: Ae.item, "data-measure-more": "", children: [
|
|
6136
6136
|
/* @__PURE__ */ s("span", { className: Ae.more, children: "…" }),
|
|
6137
6137
|
Yt
|
|
6138
6138
|
] })
|
|
6139
6139
|
] })
|
|
6140
6140
|
] });
|
|
6141
|
-
}),
|
|
6142
|
-
splitter:
|
|
6143
|
-
vertical:
|
|
6144
|
-
pane:
|
|
6145
|
-
separator:
|
|
6146
|
-
grip:
|
|
6141
|
+
}), vh = "_splitter_qhaiw_10", bh = "_vertical_qhaiw_17", yh = "_pane_qhaiw_22 _scroll_r8i8z_96", wh = "_separator_qhaiw_29", kh = "_grip_qhaiw_69", It = {
|
|
6142
|
+
splitter: vh,
|
|
6143
|
+
vertical: bh,
|
|
6144
|
+
pane: yh,
|
|
6145
|
+
separator: wh,
|
|
6146
|
+
grip: kh
|
|
6147
6147
|
}, ym = K(function({
|
|
6148
6148
|
orientation: e = "horizontal",
|
|
6149
6149
|
value: n,
|
|
@@ -6154,12 +6154,12 @@ const cp = "_breadcrumb_5vnnn_9 _text_r8i8z_23", lp = "_list_5vnnn_15", dp = "_i
|
|
|
6154
6154
|
step: c = 5,
|
|
6155
6155
|
separatorLabel: f,
|
|
6156
6156
|
className: d,
|
|
6157
|
-
style:
|
|
6157
|
+
style: p,
|
|
6158
6158
|
onKeyDown: v,
|
|
6159
6159
|
children: m,
|
|
6160
6160
|
..._
|
|
6161
6161
|
}, l) {
|
|
6162
|
-
const u = ve(),
|
|
6162
|
+
const u = ve(), h = Me(), y = O(null), w = O(null), k = (z) => Math.min(i, Math.max(a, z)), [S, E] = W(() => k(r)), T = n !== void 0, D = k(T ? n : S), U = O(null), g = O(null), P = e === "horizontal", $ = (z) => {
|
|
6163
6163
|
const B = k(z);
|
|
6164
6164
|
B !== D && (T || E(B), o == null || o(B));
|
|
6165
6165
|
}, j = (z) => {
|
|
@@ -6189,9 +6189,9 @@ const cp = "_breadcrumb_5vnnn_9 _text_r8i8z_23", lp = "_list_5vnnn_15", dp = "_i
|
|
|
6189
6189
|
className: F(It.splitter, !P && It.vertical, d),
|
|
6190
6190
|
..._,
|
|
6191
6191
|
onKeyDown: j,
|
|
6192
|
-
style: { ...
|
|
6192
|
+
style: { ...p, "--_first": `${D}fr`, "--_second": `${100 - D}fr` },
|
|
6193
6193
|
children: [
|
|
6194
|
-
/* @__PURE__ */ s("div", { id:
|
|
6194
|
+
/* @__PURE__ */ s("div", { id: h, className: It.pane, inert: D <= 0 || void 0, children: m[0] }),
|
|
6195
6195
|
/* @__PURE__ */ s(
|
|
6196
6196
|
"div",
|
|
6197
6197
|
{
|
|
@@ -6199,7 +6199,7 @@ const cp = "_breadcrumb_5vnnn_9 _text_r8i8z_23", lp = "_list_5vnnn_15", dp = "_i
|
|
|
6199
6199
|
role: "separator",
|
|
6200
6200
|
tabIndex: 0,
|
|
6201
6201
|
"aria-label": f ?? u.splitter,
|
|
6202
|
-
"aria-controls":
|
|
6202
|
+
"aria-controls": h,
|
|
6203
6203
|
"aria-orientation": P ? "vertical" : "horizontal",
|
|
6204
6204
|
"aria-valuenow": Math.round(D),
|
|
6205
6205
|
"aria-valuemin": a,
|
|
@@ -6226,62 +6226,62 @@ const cp = "_breadcrumb_5vnnn_9 _text_r8i8z_23", lp = "_list_5vnnn_15", dp = "_i
|
|
|
6226
6226
|
}
|
|
6227
6227
|
);
|
|
6228
6228
|
});
|
|
6229
|
-
function
|
|
6229
|
+
function Nh(t, e, n) {
|
|
6230
6230
|
return t <= 0 || e <= t ? "row" : n <= t ? "stacked" : "column";
|
|
6231
6231
|
}
|
|
6232
|
-
function
|
|
6232
|
+
function xh(t, e) {
|
|
6233
6233
|
const n = t.length;
|
|
6234
6234
|
if (n === 0) return 0;
|
|
6235
6235
|
const r = t[n - 1];
|
|
6236
6236
|
return n === 1 ? r : (n - 1) * Math.max(...t.slice(0, -1)) + r + (n - 1) * e;
|
|
6237
6237
|
}
|
|
6238
|
-
function $
|
|
6238
|
+
function $h(t, e) {
|
|
6239
6239
|
return t.length === 0 ? 0 : t.length * Math.max(...t) + (t.length - 1) * e;
|
|
6240
6240
|
}
|
|
6241
|
-
const
|
|
6242
|
-
stepper:
|
|
6243
|
-
step:
|
|
6244
|
-
done:
|
|
6245
|
-
marker:
|
|
6246
|
-
current:
|
|
6247
|
-
failed:
|
|
6248
|
-
text:
|
|
6249
|
-
label:
|
|
6250
|
-
description:
|
|
6251
|
-
upcoming:
|
|
6252
|
-
vertical:
|
|
6253
|
-
},
|
|
6254
|
-
const c = ve(), f = O(null), [d,
|
|
6241
|
+
const Sh = "_stepper_1w41b_11 _text_r8i8z_23", Th = "_step_1w41b_11", Dh = "_done_1w41b_43", Ah = "_marker_1w41b_47", Mh = "_current_1w41b_74", Ch = "_failed_1w41b_79", zh = "_text_1w41b_85", Rh = "_label_1w41b_95", Lh = "_description_1w41b_96", Eh = "_upcoming_1w41b_110", Ph = "_vertical_1w41b_122", ot = {
|
|
6242
|
+
stepper: Sh,
|
|
6243
|
+
step: Th,
|
|
6244
|
+
done: Dh,
|
|
6245
|
+
marker: Ah,
|
|
6246
|
+
current: Mh,
|
|
6247
|
+
failed: Ch,
|
|
6248
|
+
text: zh,
|
|
6249
|
+
label: Rh,
|
|
6250
|
+
description: Lh,
|
|
6251
|
+
upcoming: Eh,
|
|
6252
|
+
vertical: Ph
|
|
6253
|
+
}, Fh = (t, e, n) => t.failed ? "failed" : e < n ? "done" : e === n ? "current" : "upcoming", wm = K(function({ steps: e, current: n, orientation: r = "horizontal", className: o, ...a }, i) {
|
|
6254
|
+
const c = ve(), f = O(null), [d, p] = W("row"), v = se(() => {
|
|
6255
6255
|
const _ = f.current;
|
|
6256
6256
|
if (!_ || r === "vertical" || _.clientWidth <= 0) return;
|
|
6257
6257
|
const l = _.cloneNode(!0);
|
|
6258
6258
|
l.classList.remove(ot.vertical);
|
|
6259
6259
|
for (const S of [l, ...l.querySelectorAll("[id]")]) S.removeAttribute("id");
|
|
6260
6260
|
l.removeAttribute("data-fit"), l.setAttribute("aria-hidden", "true"), l.style.cssText = "position:absolute;top:0;left:0;visibility:hidden;pointer-events:none;width:max-content;max-width:none", _.after(l);
|
|
6261
|
-
const u = Number.parseFloat(getComputedStyle(l).columnGap) || 0,
|
|
6261
|
+
const u = Number.parseFloat(getComputedStyle(l).columnGap) || 0, h = Array.from(l.children), y = Array.from(l.querySelectorAll(`.${ot.description}`));
|
|
6262
6262
|
for (const S of y) S.style.display = "none";
|
|
6263
|
-
for (const S of
|
|
6264
|
-
const w =
|
|
6263
|
+
for (const S of h) S.style.cssText = "flex:none;width:max-content";
|
|
6264
|
+
const w = xh(h.map((S) => S.getBoundingClientRect().width), u);
|
|
6265
6265
|
for (const S of y) S.style.display = "";
|
|
6266
6266
|
l.setAttribute("data-fit", "stacked");
|
|
6267
|
-
for (const S of
|
|
6268
|
-
const k = $
|
|
6269
|
-
|
|
6267
|
+
for (const S of h) S.style.width = "min-content";
|
|
6268
|
+
const k = $h(
|
|
6269
|
+
h.map((S) => {
|
|
6270
6270
|
const E = S.querySelector(`.${ot.text}`);
|
|
6271
6271
|
return E && (E.style.width = "min-content"), Math.max(S.getBoundingClientRect().width, (E == null ? void 0 : E.getBoundingClientRect().width) ?? 0);
|
|
6272
6272
|
}),
|
|
6273
6273
|
u
|
|
6274
6274
|
);
|
|
6275
|
-
l.remove(),
|
|
6275
|
+
l.remove(), p(Nh(_.clientWidth, w, k));
|
|
6276
6276
|
}, [r]);
|
|
6277
6277
|
Ke(() => v()), le(() => {
|
|
6278
|
-
var
|
|
6278
|
+
var h;
|
|
6279
6279
|
const _ = f.current;
|
|
6280
6280
|
if (!_ || r === "vertical") return;
|
|
6281
6281
|
const l = new ResizeObserver(() => v());
|
|
6282
6282
|
l.observe(_);
|
|
6283
6283
|
let u = !0;
|
|
6284
|
-
return (
|
|
6284
|
+
return (h = _.ownerDocument.fonts) == null || h.ready.then(() => u && v()), () => {
|
|
6285
6285
|
u = !1, l.disconnect();
|
|
6286
6286
|
};
|
|
6287
6287
|
}, [v, r]);
|
|
@@ -6300,7 +6300,7 @@ const Sp = "_stepper_1w41b_11 _text_r8i8z_23", Tp = "_step_1w41b_11", Dp = "_don
|
|
|
6300
6300
|
"data-orientation": r,
|
|
6301
6301
|
"data-fit": r === "vertical" ? void 0 : d,
|
|
6302
6302
|
children: e.map((_, l) => {
|
|
6303
|
-
const u =
|
|
6303
|
+
const u = Fh(_, l, n), h = m[u];
|
|
6304
6304
|
return /* @__PURE__ */ x(
|
|
6305
6305
|
"li",
|
|
6306
6306
|
{
|
|
@@ -6325,9 +6325,9 @@ const Sp = "_stepper_1w41b_11 _text_r8i8z_23", Tp = "_step_1w41b_11", Dp = "_don
|
|
|
6325
6325
|
/* @__PURE__ */ x("span", { className: ot.text, children: [
|
|
6326
6326
|
/* @__PURE__ */ x("span", { className: ot.label, children: [
|
|
6327
6327
|
_.label,
|
|
6328
|
-
|
|
6328
|
+
h && /* @__PURE__ */ x(Jr, { children: [
|
|
6329
6329
|
", ",
|
|
6330
|
-
|
|
6330
|
+
h
|
|
6331
6331
|
] })
|
|
6332
6332
|
] }),
|
|
6333
6333
|
_.description && /* @__PURE__ */ s("span", { className: ot.description, children: _.description })
|
|
@@ -6340,7 +6340,7 @@ const Sp = "_stepper_1w41b_11 _text_r8i8z_23", Tp = "_step_1w41b_11", Dp = "_don
|
|
|
6340
6340
|
}
|
|
6341
6341
|
);
|
|
6342
6342
|
});
|
|
6343
|
-
function
|
|
6343
|
+
function Ih(t, e) {
|
|
6344
6344
|
const n = (e ?? "").split(",").map((a) => a.trim().toLowerCase()).filter(Boolean);
|
|
6345
6345
|
if (n.length === 0) return !0;
|
|
6346
6346
|
const r = t.name.toLowerCase(), o = t.type.toLowerCase();
|
|
@@ -6348,23 +6348,23 @@ function Ip(t, e) {
|
|
|
6348
6348
|
(a) => a.startsWith(".") ? r.endsWith(a) : a.endsWith("/*") ? o.startsWith(a.slice(0, -1)) : o === a
|
|
6349
6349
|
);
|
|
6350
6350
|
}
|
|
6351
|
-
const
|
|
6352
|
-
zone:
|
|
6353
|
-
dragging:
|
|
6354
|
-
invalidZone:
|
|
6355
|
-
key:
|
|
6356
|
-
input:
|
|
6357
|
-
face:
|
|
6358
|
-
invalid:
|
|
6359
|
-
hint:
|
|
6360
|
-
list:
|
|
6361
|
-
file:
|
|
6362
|
-
name:
|
|
6363
|
-
size:
|
|
6364
|
-
remove:
|
|
6365
|
-
rejected:
|
|
6366
|
-
},
|
|
6367
|
-
const m = ve(), _ = tt(), l = He(), u = O(null), [
|
|
6351
|
+
const Bh = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Oh = "_dragging_1agii_31", Hh = "_invalidZone_1agii_38", qh = "_key_1agii_42", jh = "_input_1agii_47", Wh = "_face_1agii_57", Gh = "_invalid_1agii_38", Uh = "_hint_1agii_106", Vh = "_list_1agii_114", Yh = "_file_1agii_125", Kh = "_name_1agii_134", Xh = "_size_1agii_141", Zh = "_remove_1agii_150 _ring_r8i8z_125", Qh = "_rejected_1agii_179", Ve = {
|
|
6352
|
+
zone: Bh,
|
|
6353
|
+
dragging: Oh,
|
|
6354
|
+
invalidZone: Hh,
|
|
6355
|
+
key: qh,
|
|
6356
|
+
input: jh,
|
|
6357
|
+
face: Wh,
|
|
6358
|
+
invalid: Gh,
|
|
6359
|
+
hint: Uh,
|
|
6360
|
+
list: Vh,
|
|
6361
|
+
file: Yh,
|
|
6362
|
+
name: Kh,
|
|
6363
|
+
size: Xh,
|
|
6364
|
+
remove: Zh,
|
|
6365
|
+
rejected: Qh
|
|
6366
|
+
}, Jh = (t, e) => t < 1e6 ? `${e.number(Math.max(t > 0 ? 1 : 0, Math.round(t / 1e3)), 0)} kB` : `${e.number(t / 1e6, 1)} MB`, km = K(function({ value: e, onChange: n, invalid: r, accept: o, multiple: a = !1, disabled: i = !1, className: c, style: f, id: d, ...p }, v) {
|
|
6367
|
+
const m = ve(), _ = tt(), l = He(), u = O(null), [h, y] = W([]), [w, k] = W([]), [S, E] = W(!1), T = e !== void 0, D = T ? e : h, U = r ?? (l == null ? void 0 : l.invalid) ?? !1;
|
|
6368
6368
|
le(() => {
|
|
6369
6369
|
const C = u.current;
|
|
6370
6370
|
if (C)
|
|
@@ -6377,8 +6377,8 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6377
6377
|
const g = (C) => {
|
|
6378
6378
|
T || y(C), n == null || n(C);
|
|
6379
6379
|
}, P = (C) => {
|
|
6380
|
-
const H = C.filter((z) =>
|
|
6381
|
-
k(M), M.length > 0 &&
|
|
6380
|
+
const H = C.filter((z) => Ih(z, o)), M = C.filter((z) => !H.includes(z)).map((z) => z.name);
|
|
6381
|
+
k(M), M.length > 0 && pt(M.map((z) => m.fileNotAccepted(z)).join(". "), u.current), g(a ? H : H.slice(0, 1));
|
|
6382
6382
|
}, $ = (C) => {
|
|
6383
6383
|
var H;
|
|
6384
6384
|
return Array.from(((H = C.dataTransfer) == null ? void 0 : H.types) ?? []).includes("Files");
|
|
@@ -6412,11 +6412,11 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6412
6412
|
type: "file",
|
|
6413
6413
|
id: d ?? (l == null ? void 0 : l.id),
|
|
6414
6414
|
"aria-label": l ? void 0 : j,
|
|
6415
|
-
"aria-describedby":
|
|
6415
|
+
"aria-describedby": p["aria-describedby"] ?? (l == null ? void 0 : l.describedBy),
|
|
6416
6416
|
"aria-required": (l == null ? void 0 : l.required) || void 0,
|
|
6417
6417
|
"aria-invalid": U || void 0,
|
|
6418
6418
|
className: F(Ve.input, U && Ve.invalid),
|
|
6419
|
-
...
|
|
6419
|
+
...p,
|
|
6420
6420
|
accept: o,
|
|
6421
6421
|
multiple: a,
|
|
6422
6422
|
disabled: i,
|
|
@@ -6428,7 +6428,7 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6428
6428
|
/* @__PURE__ */ s("span", { className: Ve.hint, children: a ? m.dropFiles : m.dropFile }),
|
|
6429
6429
|
D.length > 0 && /* @__PURE__ */ s("ul", { className: Ve.list, children: D.map((C, H) => /* @__PURE__ */ x("li", { className: Ve.file, children: [
|
|
6430
6430
|
/* @__PURE__ */ s("span", { className: Ve.name, children: C.name }),
|
|
6431
|
-
/* @__PURE__ */ s("span", { className: Ve.size, children:
|
|
6431
|
+
/* @__PURE__ */ s("span", { className: Ve.size, children: Jh(C.size, _) }),
|
|
6432
6432
|
/* @__PURE__ */ s(
|
|
6433
6433
|
"button",
|
|
6434
6434
|
{
|
|
@@ -6447,17 +6447,17 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6447
6447
|
]
|
|
6448
6448
|
}
|
|
6449
6449
|
);
|
|
6450
|
-
}),
|
|
6451
|
-
control:
|
|
6452
|
-
fill:
|
|
6453
|
-
segment:
|
|
6454
|
-
invalid:
|
|
6455
|
-
input:
|
|
6456
|
-
icon:
|
|
6457
|
-
label:
|
|
6458
|
-
disabled:
|
|
6459
|
-
sm:
|
|
6460
|
-
inset:
|
|
6450
|
+
}), ep = "_control_1wb07_13 _text_r8i8z_23", tp = "_fill_1wb07_33", np = "_segment_1wb07_38", rp = "_invalid_1wb07_44", op = "_input_1wb07_91", sp = "_icon_1wb07_109", ip = "_label_1wb07_120", ap = "_disabled_1wb07_157", cp = "_sm_1wb07_218", lp = "_inset_1wb07_173", st = {
|
|
6451
|
+
control: ep,
|
|
6452
|
+
fill: tp,
|
|
6453
|
+
segment: np,
|
|
6454
|
+
invalid: rp,
|
|
6455
|
+
input: op,
|
|
6456
|
+
icon: sp,
|
|
6457
|
+
label: ip,
|
|
6458
|
+
disabled: ap,
|
|
6459
|
+
sm: cp,
|
|
6460
|
+
inset: lp
|
|
6461
6461
|
}, Nm = K(function({
|
|
6462
6462
|
options: e,
|
|
6463
6463
|
value: n,
|
|
@@ -6468,11 +6468,11 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6468
6468
|
fill: c = !1,
|
|
6469
6469
|
disabled: f = !1,
|
|
6470
6470
|
name: d,
|
|
6471
|
-
className:
|
|
6471
|
+
className: p,
|
|
6472
6472
|
onKeyDown: v,
|
|
6473
6473
|
...m
|
|
6474
6474
|
}, _) {
|
|
6475
|
-
const l = Be(a), u = He(),
|
|
6475
|
+
const l = Be(a), u = He(), h = Gr({
|
|
6476
6476
|
options: e,
|
|
6477
6477
|
value: n,
|
|
6478
6478
|
defaultValue: r,
|
|
@@ -6486,8 +6486,8 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6486
6486
|
return /* @__PURE__ */ s(
|
|
6487
6487
|
"div",
|
|
6488
6488
|
{
|
|
6489
|
-
ref: Oe(
|
|
6490
|
-
...
|
|
6489
|
+
ref: Oe(h.groupRef, _),
|
|
6490
|
+
...h.groupProps,
|
|
6491
6491
|
className: F(
|
|
6492
6492
|
st.control,
|
|
6493
6493
|
l === "sm" && st.sm,
|
|
@@ -6495,17 +6495,17 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6495
6495
|
c && st.fill,
|
|
6496
6496
|
f && st.disabled,
|
|
6497
6497
|
(u == null ? void 0 : u.invalid) && st.invalid,
|
|
6498
|
-
|
|
6498
|
+
p
|
|
6499
6499
|
),
|
|
6500
6500
|
...m,
|
|
6501
|
-
onKeyDown:
|
|
6501
|
+
onKeyDown: h.onKeyDown,
|
|
6502
6502
|
children: e.map((y) => /* @__PURE__ */ x(
|
|
6503
6503
|
"label",
|
|
6504
6504
|
{
|
|
6505
6505
|
className: F(st.segment, !f && y.disabled && st.disabled),
|
|
6506
|
-
htmlFor:
|
|
6506
|
+
htmlFor: h.optionId(y),
|
|
6507
6507
|
children: [
|
|
6508
|
-
/* @__PURE__ */ s("input", { ...
|
|
6508
|
+
/* @__PURE__ */ s("input", { ...h.inputProps(y), className: st.input }),
|
|
6509
6509
|
y.icon && /* @__PURE__ */ s("span", { className: st.icon, "aria-hidden": "true", children: y.icon }),
|
|
6510
6510
|
/* @__PURE__ */ s("span", { className: st.label, children: y.label })
|
|
6511
6511
|
]
|
|
@@ -6518,89 +6518,89 @@ const Bp = "_zone_1agii_15 _text_r8i8z_23 _extent_r8i8z_75", Op = "_dragging_1ag
|
|
|
6518
6518
|
export {
|
|
6519
6519
|
gm as Accordion,
|
|
6520
6520
|
vm as AccordionItem,
|
|
6521
|
-
|
|
6521
|
+
_p as Alert,
|
|
6522
6522
|
qt as AngleGlyph,
|
|
6523
|
-
|
|
6523
|
+
gp as Badge,
|
|
6524
6524
|
bm as Breadcrumb,
|
|
6525
6525
|
$e as Button,
|
|
6526
6526
|
_s as ButtonGroup,
|
|
6527
6527
|
Nr as CalendarGlyph,
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
$
|
|
6528
|
+
xp as Card,
|
|
6529
|
+
Sp as CardBody,
|
|
6530
|
+
$p as CardHeader,
|
|
6531
6531
|
Fn as Checkbox,
|
|
6532
6532
|
xr as ClockGlyph,
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6533
|
+
Ap as Combobox,
|
|
6534
|
+
Tp as CommandPalette,
|
|
6535
|
+
jp as ConfirmDialog,
|
|
6536
|
+
hm as ContextMenu,
|
|
6537
6537
|
Mo as ControlSizeProvider,
|
|
6538
6538
|
et as CrossGlyph,
|
|
6539
|
-
|
|
6539
|
+
hn as DEFAULT_FORMATS,
|
|
6540
6540
|
yr as DEFAULT_LANGUAGE,
|
|
6541
|
-
|
|
6541
|
+
Rp as DEFAULT_PRESETS,
|
|
6542
6542
|
br as DEFAULT_SEPARATORS,
|
|
6543
6543
|
Mt as DEFAULT_WORDING,
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6544
|
+
Cp as DatePicker,
|
|
6545
|
+
Lp as DateRangePicker,
|
|
6546
|
+
zp as DateTimePicker,
|
|
6547
|
+
Ep as DateTimeRangePicker,
|
|
6548
|
+
Pp as Divider,
|
|
6549
6549
|
fm as Dock,
|
|
6550
|
-
|
|
6551
|
-
|
|
6550
|
+
Hp as Drawer,
|
|
6551
|
+
Fp as EmptyState,
|
|
6552
6552
|
km as FileInput,
|
|
6553
|
-
|
|
6553
|
+
wp as FormField,
|
|
6554
6554
|
rs as FormFieldBoundary,
|
|
6555
|
-
|
|
6556
|
-
|
|
6555
|
+
Bp as Grid,
|
|
6556
|
+
pp as GridGlyph,
|
|
6557
6557
|
kr as GripGlyph,
|
|
6558
6558
|
cm as Heading,
|
|
6559
6559
|
mn as IconButton,
|
|
6560
6560
|
Br as Input,
|
|
6561
6561
|
yo as LanguageProvider,
|
|
6562
6562
|
lm as Link,
|
|
6563
|
-
|
|
6563
|
+
mp as MeasureGlyph,
|
|
6564
6564
|
Cr as Menu,
|
|
6565
6565
|
us as MenuItem,
|
|
6566
|
-
|
|
6567
|
-
|
|
6566
|
+
kp as MenuSeparator,
|
|
6567
|
+
Mp as Meter,
|
|
6568
6568
|
ko as MinusGlyph,
|
|
6569
6569
|
yl as Modal,
|
|
6570
|
-
|
|
6570
|
+
qp as ModalBody,
|
|
6571
6571
|
kl as ModalFooter,
|
|
6572
6572
|
wl as ModalHeader,
|
|
6573
|
-
|
|
6574
|
-
|
|
6573
|
+
Wp as MultiSelect,
|
|
6574
|
+
Op as NumberInput,
|
|
6575
6575
|
wo as PlusGlyph,
|
|
6576
6576
|
$t as Popover,
|
|
6577
6577
|
_m as ProgressBar,
|
|
6578
|
-
|
|
6578
|
+
Gp as RadioGroup,
|
|
6579
6579
|
Nm as SegmentedControl,
|
|
6580
|
-
|
|
6581
|
-
|
|
6580
|
+
Up as Select,
|
|
6581
|
+
Vp as Skeleton,
|
|
6582
6582
|
mm as Slider,
|
|
6583
6583
|
Ji as Sparkline,
|
|
6584
6584
|
Dn as Spinner,
|
|
6585
|
-
|
|
6585
|
+
Np as SplitButton,
|
|
6586
6586
|
ym as Splitter,
|
|
6587
|
-
|
|
6587
|
+
Ip as Stack,
|
|
6588
6588
|
um as Stat,
|
|
6589
6589
|
wm as Stepper,
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6590
|
+
pm as Switch,
|
|
6591
|
+
Qp as Tab,
|
|
6592
|
+
Zp as TabList,
|
|
6593
|
+
Jp as TabPanel,
|
|
6594
|
+
Xp as Tabs,
|
|
6595
|
+
Kp as Tag,
|
|
6596
|
+
Yp as TagGroup,
|
|
6597
6597
|
am as Text,
|
|
6598
6598
|
em as Textarea,
|
|
6599
6599
|
nm as ToastProvider,
|
|
6600
6600
|
Ar as Tooltip,
|
|
6601
6601
|
om as TreeSearch,
|
|
6602
6602
|
rm as TreeView,
|
|
6603
|
-
|
|
6603
|
+
yp as UmrissProvider,
|
|
6604
6604
|
Jr as VisuallyHidden,
|
|
6605
6605
|
eo as age,
|
|
6606
6606
|
Iu as allBranches,
|
|
@@ -6627,9 +6627,9 @@ export {
|
|
|
6627
6627
|
fr as toggleCheck,
|
|
6628
6628
|
zu as treeModel,
|
|
6629
6629
|
Eu as typeaheadTarget,
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6630
|
+
Dp as useCommandPaletteShortcut,
|
|
6631
|
+
bp as useDensity,
|
|
6632
|
+
vp as useDensityFor,
|
|
6633
6633
|
He as useFormField,
|
|
6634
6634
|
tt as useFormats,
|
|
6635
6635
|
nf as useFreshness,
|