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