@umriss-ui/core 0.8.0 → 0.9.1
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 +26 -0
- package/dist/core.css +1 -1
- package/dist/core.js +1247 -1245
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import "./core.css";
|
|
2
|
-
import { useMemo as se, useContext as
|
|
2
|
+
import { useMemo as se, useContext as He, createContext as Ve, forwardRef as ie, useId as De, useState as B, useLayoutEffect as Oe, useRef as R, useEffect as ne, useCallback as Q, cloneElement as Nn, useImperativeHandle as Vt } from "react";
|
|
3
3
|
import { jsx as s, jsxs as k, Fragment as $e } from "react/jsx-runtime";
|
|
4
4
|
import { D as Ft, a as $n, s as ir } from "./formats-DrB9TuzO.js";
|
|
5
|
-
import { createPortal as
|
|
5
|
+
import { createPortal as jt } from "react-dom";
|
|
6
6
|
function P(...e) {
|
|
7
7
|
return e.filter(Boolean).join(" ");
|
|
8
8
|
}
|
|
9
|
-
const ar = "_alert_3un7t_12 _text_1hv7a_23", cr = "_content_3un7t_26", lr = "_title_3un7t_34", dr = "_text_3un7t_42", ur = "_actions_3un7t_52",
|
|
9
|
+
const ar = "_alert_3un7t_12 _text_1hv7a_23", cr = "_content_3un7t_26", lr = "_title_3un7t_34", dr = "_text_3un7t_42", ur = "_actions_3un7t_52", fr = "_neutral_3un7t_61", hr = "_accent_3un7t_69", pr = "_success_3un7t_77", mr = "_warning_3un7t_85", _r = "_danger_3un7t_93", gr = "_close_3un7t_103", nt = {
|
|
10
10
|
alert: ar,
|
|
11
11
|
content: cr,
|
|
12
12
|
title: lr,
|
|
13
13
|
text: dr,
|
|
14
14
|
actions: ur,
|
|
15
|
-
neutral:
|
|
16
|
-
accent:
|
|
15
|
+
neutral: fr,
|
|
16
|
+
accent: hr,
|
|
17
17
|
success: pr,
|
|
18
18
|
warning: mr,
|
|
19
19
|
danger: _r,
|
|
@@ -281,11 +281,11 @@ function vr(e) {
|
|
|
281
281
|
} : it
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function yr({ formats: e, wording: t, children: n }) {
|
|
285
285
|
const r = se(() => vr({ formats: e, wording: t }), [e, t]);
|
|
286
286
|
return /* @__PURE__ */ s(Tn.Provider, { value: r, children: n });
|
|
287
287
|
}
|
|
288
|
-
const Sn = () =>
|
|
288
|
+
const Sn = () => He(Tn) ?? Dn, je = () => Sn().formats, ce = () => Sn().wording, Ue = ie(function({ size: t = 9, ...n }, r) {
|
|
289
289
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
290
290
|
"path",
|
|
291
291
|
{
|
|
@@ -296,9 +296,9 @@ const Sn = () => qe(Tn) ?? Dn, Ue = () => Sn().formats, ce = () => Sn().wording,
|
|
|
296
296
|
strokeLinecap: "round"
|
|
297
297
|
}
|
|
298
298
|
) });
|
|
299
|
-
}), yr = ie(function({ size: t = 10, ...n }, r) {
|
|
300
|
-
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M5 2v6M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
301
299
|
}), br = ie(function({ size: t = 10, ...n }, r) {
|
|
300
|
+
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M5 2v6M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
301
|
+
}), wr = ie(function({ size: t = 10, ...n }, r) {
|
|
302
302
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
303
303
|
}), kr = ie(function({ size: t = 10, ...n }, r) {
|
|
304
304
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
@@ -323,7 +323,7 @@ const Sn = () => qe(Tn) ?? Dn, Ue = () => Sn().formats, ce = () => Sn().wording,
|
|
|
323
323
|
strokeLinecap: "round"
|
|
324
324
|
}
|
|
325
325
|
) });
|
|
326
|
-
}),
|
|
326
|
+
}), Jd = ie(function({ size: t = 10, ...n }, r) {
|
|
327
327
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
328
328
|
"path",
|
|
329
329
|
{
|
|
@@ -334,7 +334,7 @@ const Sn = () => qe(Tn) ?? Dn, Ue = () => Sn().formats, ce = () => Sn().wording,
|
|
|
334
334
|
strokeLinecap: "round"
|
|
335
335
|
}
|
|
336
336
|
) });
|
|
337
|
-
}),
|
|
337
|
+
}), eu = ie(function({ size: t = 10, ...n }, r) {
|
|
338
338
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
339
339
|
"path",
|
|
340
340
|
{
|
|
@@ -381,14 +381,14 @@ const Sn = () => qe(Tn) ?? Dn, Ue = () => Sn().formats, ce = () => Sn().wording,
|
|
|
381
381
|
success: { role: "status", live: "polite" },
|
|
382
382
|
warning: { role: "alert" },
|
|
383
383
|
danger: { role: "alert" }
|
|
384
|
-
},
|
|
385
|
-
const u = ce(), { role: p, live:
|
|
384
|
+
}, tu = ie(function({ tone: t = "neutral", title: n, actions: r, onDismiss: o, dismissLabel: i, className: a, children: c, ...l }, d) {
|
|
385
|
+
const u = ce(), { role: p, live: f } = It[t];
|
|
386
386
|
return /* @__PURE__ */ k(
|
|
387
387
|
"div",
|
|
388
388
|
{
|
|
389
389
|
ref: d,
|
|
390
390
|
role: p,
|
|
391
|
-
"aria-live":
|
|
391
|
+
"aria-live": f,
|
|
392
392
|
className: P(nt.alert, nt[t], a),
|
|
393
393
|
...l,
|
|
394
394
|
children: [
|
|
@@ -397,7 +397,7 @@ const Sn = () => qe(Tn) ?? Dn, Ue = () => Sn().formats, ce = () => Sn().wording,
|
|
|
397
397
|
c && /* @__PURE__ */ s("div", { className: nt.text, children: c }),
|
|
398
398
|
r && /* @__PURE__ */ s("div", { className: nt.actions, children: r })
|
|
399
399
|
] }),
|
|
400
|
-
o && /* @__PURE__ */ s("button", { type: "button", "aria-label": i ?? u.closeToast, className: nt.close, onClick: o, children: /* @__PURE__ */ s(
|
|
400
|
+
o && /* @__PURE__ */ s("button", { type: "button", "aria-label": i ?? u.closeToast, className: nt.close, onClick: o, children: /* @__PURE__ */ s(Ue, {}) })
|
|
401
401
|
]
|
|
402
402
|
}
|
|
403
403
|
);
|
|
@@ -410,7 +410,7 @@ const Sn = () => qe(Tn) ?? Dn, Ue = () => Sn().formats, ce = () => Sn().wording,
|
|
|
410
410
|
warning: Mr,
|
|
411
411
|
danger: Cr
|
|
412
412
|
};
|
|
413
|
-
function
|
|
413
|
+
function nu({ tone: e = "neutral", pill: t = !1, className: n, children: r, ...o }) {
|
|
414
414
|
return /* @__PURE__ */ s("span", { className: P(At.badge, t && At.pill, At[e], n), ...o, children: r });
|
|
415
415
|
}
|
|
416
416
|
const Ar = "_spinner_1tmf7_4", Lr = {
|
|
@@ -436,14 +436,14 @@ function An({ size: e = 14, className: t, ...n }) {
|
|
|
436
436
|
}
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
|
-
const Rr = "_button_18a70_4 _ring_1hv7a_65 _text_1hv7a_23", Pr = "_sm_18a70_46", Er = "_primary_18a70_58", Fr = "_danger_18a70_69", Ir = "_secondary_18a70_84", Br = "_ghost_18a70_100",
|
|
439
|
+
const Rr = "_button_18a70_4 _ring_1hv7a_65 _text_1hv7a_23", Pr = "_sm_18a70_46", Er = "_primary_18a70_58", Fr = "_danger_18a70_69", Ir = "_secondary_18a70_84", Br = "_ghost_18a70_100", qr = "_label_18a70_111", mt = {
|
|
440
440
|
button: Rr,
|
|
441
441
|
sm: Pr,
|
|
442
442
|
primary: Er,
|
|
443
443
|
danger: Fr,
|
|
444
444
|
secondary: Ir,
|
|
445
445
|
ghost: Br,
|
|
446
|
-
label:
|
|
446
|
+
label: qr
|
|
447
447
|
}, ve = ie(function({ variant: t = "secondary", size: n = "md", loading: r = !1, disabled: o, className: i, children: a, type: c, ...l }, d) {
|
|
448
448
|
return /* @__PURE__ */ k(
|
|
449
449
|
"button",
|
|
@@ -460,21 +460,21 @@ const Rr = "_button_18a70_4 _ring_1hv7a_65 _text_1hv7a_23", Pr = "_sm_18a70_46",
|
|
|
460
460
|
]
|
|
461
461
|
}
|
|
462
462
|
);
|
|
463
|
-
}),
|
|
464
|
-
field:
|
|
465
|
-
label:
|
|
463
|
+
}), Or = "_field_1fqw6_4 _text_1hv7a_23", Hr = "_label_1fqw6_12", zr = "_required_1fqw6_19", Wr = "_message_1fqw6_24", Gr = "_hint_1fqw6_30", Vr = "_error_1fqw6_34", lt = {
|
|
464
|
+
field: Or,
|
|
465
|
+
label: Hr,
|
|
466
466
|
required: zr,
|
|
467
467
|
message: Wr,
|
|
468
468
|
hint: Gr,
|
|
469
469
|
error: Vr
|
|
470
|
-
},
|
|
470
|
+
}, Ut = Ve(null);
|
|
471
471
|
function Be() {
|
|
472
|
-
return
|
|
472
|
+
return He(Ut);
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
return /* @__PURE__ */ s(
|
|
474
|
+
function jr({ children: e }) {
|
|
475
|
+
return /* @__PURE__ */ s(Ut.Provider, { value: null, children: e });
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function ru({
|
|
478
478
|
label: e,
|
|
479
479
|
hint: t,
|
|
480
480
|
error: n,
|
|
@@ -491,7 +491,7 @@ function tu({
|
|
|
491
491
|
r && /* @__PURE__ */ s("span", { className: lt.required, "aria-hidden": "true", children: "*" })
|
|
492
492
|
] }),
|
|
493
493
|
/* @__PURE__ */ s(
|
|
494
|
-
|
|
494
|
+
Ut.Provider,
|
|
495
495
|
{
|
|
496
496
|
value: { id: d, describedBy: p ? u : void 0, invalid: !!n, required: r },
|
|
497
497
|
children: a
|
|
@@ -500,30 +500,30 @@ function tu({
|
|
|
500
500
|
p && /* @__PURE__ */ s("p", { id: u, className: P(lt.message, n ? lt.error : lt.hint), children: n ?? t })
|
|
501
501
|
] });
|
|
502
502
|
}
|
|
503
|
-
const
|
|
503
|
+
const Ur = 6, Yr = 8;
|
|
504
504
|
function Ln(e, t, n, r = {}) {
|
|
505
|
-
const { align: o = "start", side: i = "bottom", offset: a =
|
|
506
|
-
return { top: g, left: L, flipped: m, side:
|
|
505
|
+
const { align: o = "start", side: i = "bottom", offset: a = Ur, margin: c = Yr } = r, { top: l = 0, left: d = 0 } = n, u = l + n.height - e.bottom - a, p = e.top - l - a, f = i === "top" ? p : u, h = i === "top" ? u : p, m = f < t.height && h >= t.height, y = i === "top" !== m, b = y ? e.top - a - t.height : e.bottom + a, g = f >= t.height || h >= t.height ? b : Math.max(l + c, Math.min(b, l + n.height - t.height - c)), N = o === "end" ? e.right - t.width : o === "center" ? e.left + e.width / 2 - t.width / 2 : e.left, L = Math.max(d + c, Math.min(N, d + n.width - t.width - c));
|
|
506
|
+
return { top: g, left: L, flipped: m, side: y ? "top" : "bottom" };
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Yt(e, t) {
|
|
509
509
|
return `${t === "start" ? "left" : t === "end" ? "right" : "center"} ${e === "bottom" ? "top" : "bottom"}`;
|
|
510
510
|
}
|
|
511
511
|
function Rn() {
|
|
512
512
|
const e = window.visualViewport;
|
|
513
513
|
return e ? { top: e.offsetTop, left: e.offsetLeft, width: e.width, height: e.height } : { width: window.innerWidth, height: window.innerHeight };
|
|
514
514
|
}
|
|
515
|
-
const
|
|
516
|
-
panel:
|
|
517
|
-
},
|
|
518
|
-
function
|
|
519
|
-
const n =
|
|
515
|
+
const Kr = "_panel_ireao_8 _text_1hv7a_23", Xr = {
|
|
516
|
+
panel: Kr
|
|
517
|
+
}, Kt = Ve(null);
|
|
518
|
+
function ou(e, t) {
|
|
519
|
+
const n = He(Kt);
|
|
520
520
|
return e !== void 0 ? e : n != null && n.densityGiven ? n.density === "compact" ? "compact" : "regular" : t;
|
|
521
521
|
}
|
|
522
522
|
const Qr = {
|
|
523
523
|
density: "comfortable",
|
|
524
524
|
portalTarget: null,
|
|
525
525
|
toast: {}
|
|
526
|
-
}, Xt = () =>
|
|
526
|
+
}, Xt = () => He(Kt) ?? Qr, su = () => Xt().density, Zr = () => Xt().toast;
|
|
527
527
|
function Qt() {
|
|
528
528
|
const { portalTarget: e } = Xt();
|
|
529
529
|
return se(
|
|
@@ -531,7 +531,7 @@ function Qt() {
|
|
|
531
531
|
[e]
|
|
532
532
|
);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function iu({
|
|
535
535
|
density: e,
|
|
536
536
|
portalTarget: t = null,
|
|
537
537
|
toast: n,
|
|
@@ -547,7 +547,7 @@ function ou({
|
|
|
547
547
|
}),
|
|
548
548
|
[e, t, n]
|
|
549
549
|
);
|
|
550
|
-
return /* @__PURE__ */ s(
|
|
550
|
+
return /* @__PURE__ */ s(Kt.Provider, { value: i, children: /* @__PURE__ */ s(yr, { formats: r == null ? void 0 : r.formats, wording: r == null ? void 0 : r.wording, children: o }) });
|
|
551
551
|
}
|
|
552
552
|
function Pn(e, t) {
|
|
553
553
|
return (e == null ? void 0 : e.closest("dialog")) ?? t() ?? document.body;
|
|
@@ -555,15 +555,15 @@ function Pn(e, t) {
|
|
|
555
555
|
function St() {
|
|
556
556
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function yt(e, t) {
|
|
559
559
|
const n = e.getPropertyValue(t).trim(), r = Number.parseFloat(n);
|
|
560
560
|
return Number.isFinite(r) ? n.endsWith("ms") ? r : n.endsWith("s") ? r * 1e3 : r : 0;
|
|
561
561
|
}
|
|
562
562
|
function En(e, t, n) {
|
|
563
563
|
const [r, o] = B(e);
|
|
564
|
-
return e && !r && o(!0),
|
|
564
|
+
return e && !r && o(!0), Oe(() => {
|
|
565
565
|
if (e || !r) return;
|
|
566
|
-
const i = t.current, a = i && !St() ?
|
|
566
|
+
const i = t.current, a = i && !St() ? yt(getComputedStyle(i), n) : 0;
|
|
567
567
|
if (a <= 0) {
|
|
568
568
|
o(!1);
|
|
569
569
|
return;
|
|
@@ -585,72 +585,72 @@ function Je({
|
|
|
585
585
|
restoreFocus: d = !0,
|
|
586
586
|
hideOnScroll: u = !1,
|
|
587
587
|
role: p,
|
|
588
|
-
ariaLabel:
|
|
589
|
-
id:
|
|
588
|
+
ariaLabel: f,
|
|
589
|
+
id: h,
|
|
590
590
|
className: m,
|
|
591
|
-
children:
|
|
591
|
+
children: y
|
|
592
592
|
}) {
|
|
593
|
-
const
|
|
593
|
+
const b = R(null), v = R(o);
|
|
594
594
|
ne(() => {
|
|
595
595
|
v.current = o;
|
|
596
596
|
});
|
|
597
|
-
const [g, N] = B(null), [L, F] = B(null), D = Qt(), _ = En(e,
|
|
598
|
-
(
|
|
599
|
-
var
|
|
600
|
-
t(!1),
|
|
597
|
+
const [g, N] = B(null), [L, F] = B(null), D = Qt(), _ = En(e, b, "--u-duration-exit-fast"), E = _ && !e, w = Q(
|
|
598
|
+
(j) => {
|
|
599
|
+
var U;
|
|
600
|
+
t(!1), j && d && ((U = (r ?? n).current) == null || U.focus());
|
|
601
601
|
},
|
|
602
602
|
[t, d, n, r]
|
|
603
|
-
),
|
|
603
|
+
), O = Q(() => {
|
|
604
604
|
var G;
|
|
605
|
-
const
|
|
606
|
-
if (!
|
|
607
|
-
c === "anchor" ?
|
|
608
|
-
const C =
|
|
605
|
+
const j = (G = n.current) == null ? void 0 : G.getBoundingClientRect(), U = b.current;
|
|
606
|
+
if (!j || !U) return;
|
|
607
|
+
c === "anchor" ? U.style.width = `${l ? Math.max(j.width, l) : j.width}px` : typeof c == "number" && (U.style.width = `${c}px`);
|
|
608
|
+
const C = U.getBoundingClientRect();
|
|
609
609
|
N(
|
|
610
610
|
Ln(
|
|
611
|
-
|
|
611
|
+
j,
|
|
612
612
|
{ width: C.width, height: C.height },
|
|
613
613
|
Rn(),
|
|
614
614
|
{ align: i, offset: a }
|
|
615
615
|
)
|
|
616
616
|
);
|
|
617
617
|
}, [n, i, a, c, l]);
|
|
618
|
-
return
|
|
618
|
+
return Oe(() => {
|
|
619
619
|
e && F(Pn(n.current, D));
|
|
620
|
-
}, [e, n, D]),
|
|
621
|
-
!e || !L ||
|
|
622
|
-
}, [e, L,
|
|
620
|
+
}, [e, n, D]), Oe(() => {
|
|
621
|
+
!e || !L || O();
|
|
622
|
+
}, [e, L, O]), ne(() => {
|
|
623
623
|
if (!e) return;
|
|
624
|
-
const
|
|
624
|
+
const j = (Y) => {
|
|
625
625
|
var pe, A;
|
|
626
|
-
return ((pe =
|
|
626
|
+
return ((pe = b.current) == null ? void 0 : pe.contains(Y)) || ((A = n.current) == null ? void 0 : A.contains(Y)) || (v.current ?? []).some((I) => {
|
|
627
627
|
var z;
|
|
628
|
-
return (z = I.current) == null ? void 0 : z.contains(
|
|
628
|
+
return (z = I.current) == null ? void 0 : z.contains(Y);
|
|
629
629
|
});
|
|
630
|
-
},
|
|
631
|
-
|
|
632
|
-
}, C = (
|
|
633
|
-
|
|
630
|
+
}, U = (Y) => {
|
|
631
|
+
j(Y.target) || w(!1);
|
|
632
|
+
}, C = (Y) => {
|
|
633
|
+
Y.key === "Escape" && (Y.preventDefault(), w(!0));
|
|
634
634
|
};
|
|
635
635
|
let G = 0;
|
|
636
636
|
const S = () => {
|
|
637
637
|
G || (G = requestAnimationFrame(() => {
|
|
638
|
-
G = 0,
|
|
638
|
+
G = 0, O();
|
|
639
639
|
}));
|
|
640
640
|
}, X = () => {
|
|
641
|
-
u ?
|
|
642
|
-
},
|
|
643
|
-
return document.addEventListener("mousedown",
|
|
644
|
-
|
|
641
|
+
u ? w(!1) : S();
|
|
642
|
+
}, H = window.visualViewport;
|
|
643
|
+
return document.addEventListener("mousedown", U), document.addEventListener("keydown", C), window.addEventListener("scroll", X, !0), window.addEventListener("resize", X), H == null || H.addEventListener("resize", S), H == null || H.addEventListener("scroll", S), () => {
|
|
644
|
+
H == null || H.removeEventListener("resize", S), H == null || H.removeEventListener("scroll", S), document.removeEventListener("mousedown", U), document.removeEventListener("keydown", C), window.removeEventListener("scroll", X, !0), window.removeEventListener("resize", X), G && cancelAnimationFrame(G);
|
|
645
645
|
};
|
|
646
|
-
}, [e, n,
|
|
646
|
+
}, [e, n, w, O, u]), !_ || !L ? null : jt(
|
|
647
647
|
/* @__PURE__ */ s(
|
|
648
648
|
"div",
|
|
649
649
|
{
|
|
650
|
-
ref:
|
|
651
|
-
id:
|
|
650
|
+
ref: b,
|
|
651
|
+
id: h,
|
|
652
652
|
role: p,
|
|
653
|
-
"aria-label":
|
|
653
|
+
"aria-label": f,
|
|
654
654
|
className: P(Xr.panel, m),
|
|
655
655
|
"data-closing": E || void 0,
|
|
656
656
|
inert: E || void 0,
|
|
@@ -659,7 +659,7 @@ function Je({
|
|
|
659
659
|
top: (g == null ? void 0 : g.top) ?? 0,
|
|
660
660
|
left: (g == null ? void 0 : g.left) ?? 0,
|
|
661
661
|
/* The motion origin, computed here and drawn by the stylesheet. */
|
|
662
|
-
"--_origin": g ?
|
|
662
|
+
"--_origin": g ? Yt(g.side, i) : void 0,
|
|
663
663
|
/* Not shown before the first measurement, or it flashes in the top
|
|
664
664
|
left. Transparent and not `visibility: hidden`: a hidden panel takes
|
|
665
665
|
no focus, and the first opening of a menu lost its move to the first
|
|
@@ -667,7 +667,7 @@ function Je({
|
|
|
667
667
|
transparent pass is never seen. */
|
|
668
668
|
opacity: g ? void 0 : 0
|
|
669
669
|
},
|
|
670
|
-
children: /* @__PURE__ */ s(
|
|
670
|
+
children: /* @__PURE__ */ s(jr, { children: y })
|
|
671
671
|
}
|
|
672
672
|
),
|
|
673
673
|
L
|
|
@@ -705,21 +705,21 @@ function Fn(e, t, n) {
|
|
|
705
705
|
}
|
|
706
706
|
function oo({ trigger: e, children: t, align: n = "start" }) {
|
|
707
707
|
const [r, o] = B(!1), i = R(null), a = R(null), c = De(), l = () => {
|
|
708
|
-
var h;
|
|
709
|
-
o(!1), (h = i.current) == null || h.focus();
|
|
710
|
-
}, d = Q((h) => {
|
|
711
708
|
var f;
|
|
712
|
-
|
|
713
|
-
},
|
|
709
|
+
o(!1), (f = i.current) == null || f.focus();
|
|
710
|
+
}, d = Q((f) => {
|
|
711
|
+
var h;
|
|
712
|
+
a.current = f, (h = f == null ? void 0 : f.querySelector('[role="menuitem"]:not([disabled])')) == null || h.focus();
|
|
713
|
+
}, []), u = (f) => Fn(f, a.current, l), p = e.props;
|
|
714
714
|
return /* @__PURE__ */ k($e, { children: [
|
|
715
715
|
Nn(e, {
|
|
716
716
|
ref: i,
|
|
717
717
|
"aria-haspopup": "menu",
|
|
718
718
|
"aria-expanded": r,
|
|
719
719
|
"aria-controls": r ? c : void 0,
|
|
720
|
-
onClick: (
|
|
721
|
-
var
|
|
722
|
-
(
|
|
720
|
+
onClick: (f) => {
|
|
721
|
+
var h;
|
|
722
|
+
(h = p.onClick) == null || h.call(p, f), o(!r);
|
|
723
723
|
}
|
|
724
724
|
}),
|
|
725
725
|
/* @__PURE__ */ s(
|
|
@@ -737,8 +737,8 @@ function oo({ trigger: e, children: t, align: n = "start" }) {
|
|
|
737
737
|
)
|
|
738
738
|
] });
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
const a =
|
|
740
|
+
function au({ onSelect: e, tone: t = "default", className: n, children: r, onClick: o, ...i }) {
|
|
741
|
+
const a = He(Zt);
|
|
742
742
|
return /* @__PURE__ */ s(
|
|
743
743
|
"button",
|
|
744
744
|
{
|
|
@@ -754,17 +754,17 @@ function su({ onSelect: e, tone: t = "default", className: n, children: r, onCli
|
|
|
754
754
|
}
|
|
755
755
|
);
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function cu() {
|
|
758
758
|
return /* @__PURE__ */ s("div", { role: "separator", className: ct.separator });
|
|
759
759
|
}
|
|
760
|
-
const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", co = "_arrow_elxi9_102",
|
|
760
|
+
const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", co = "_arrow_elxi9_102", wt = {
|
|
761
761
|
group: so,
|
|
762
762
|
split: io,
|
|
763
763
|
trigger: ao,
|
|
764
764
|
arrow: co
|
|
765
765
|
}, lo = ie(function({ className: t, children: n, ...r }, o) {
|
|
766
|
-
return /* @__PURE__ */ s("div", { ref: o, role: "group", className: P(
|
|
767
|
-
}),
|
|
766
|
+
return /* @__PURE__ */ s("div", { ref: o, role: "group", className: P(wt.group, t), ...r, children: n });
|
|
767
|
+
}), lu = ie(function({
|
|
768
768
|
children: t,
|
|
769
769
|
menu: n,
|
|
770
770
|
variant: r = "secondary",
|
|
@@ -776,7 +776,7 @@ const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", c
|
|
|
776
776
|
...d
|
|
777
777
|
}, u) {
|
|
778
778
|
const p = ce();
|
|
779
|
-
return /* @__PURE__ */ k(lo, { className: P(
|
|
779
|
+
return /* @__PURE__ */ k(lo, { className: P(wt.split, l), children: [
|
|
780
780
|
/* @__PURE__ */ s(ve, { ref: u, variant: r, size: o, disabled: c, ...d, children: t }),
|
|
781
781
|
/* @__PURE__ */ s(
|
|
782
782
|
oo,
|
|
@@ -789,8 +789,8 @@ const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", c
|
|
|
789
789
|
size: o,
|
|
790
790
|
disabled: c,
|
|
791
791
|
"aria-label": i ?? p.moreActions,
|
|
792
|
-
className:
|
|
793
|
-
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 6", width: "9", height: "6", "aria-hidden": "true", className:
|
|
792
|
+
className: wt.trigger,
|
|
793
|
+
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 6", width: "9", height: "6", "aria-hidden": "true", className: wt.arrow, children: /* @__PURE__ */ s(
|
|
794
794
|
"path",
|
|
795
795
|
{
|
|
796
796
|
d: "M1 1.2 5 4.8 9 1.2",
|
|
@@ -807,22 +807,22 @@ const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", c
|
|
|
807
807
|
}
|
|
808
808
|
)
|
|
809
809
|
] });
|
|
810
|
-
}), uo = "_card_9q2sr_4 _text_1hv7a_23",
|
|
810
|
+
}), uo = "_card_9q2sr_4 _text_1hv7a_23", fo = "_header_9q2sr_13", ho = "_divider_9q2sr_21", po = "_body_9q2sr_27", mo = "_collapse_9q2sr_28", _o = "_collapsed_9q2sr_39", go = "_collapseInner_9q2sr_43", vo = "_headerText_9q2sr_48", yo = "_eyebrow_9q2sr_55", bo = "_title_9q2sr_63", wo = "_headerRight_9q2sr_72", ko = "_collapseButton_9q2sr_79 _ring_1hv7a_65", xo = "_flush_9q2sr_27", Pe = {
|
|
811
811
|
card: uo,
|
|
812
|
-
header:
|
|
813
|
-
divider:
|
|
812
|
+
header: fo,
|
|
813
|
+
divider: ho,
|
|
814
814
|
body: po,
|
|
815
815
|
collapse: mo,
|
|
816
816
|
collapsed: _o,
|
|
817
817
|
collapseInner: go,
|
|
818
818
|
headerText: vo,
|
|
819
|
-
eyebrow:
|
|
820
|
-
title:
|
|
821
|
-
headerRight:
|
|
819
|
+
eyebrow: yo,
|
|
820
|
+
title: bo,
|
|
821
|
+
headerRight: wo,
|
|
822
822
|
collapseButton: ko,
|
|
823
823
|
flush: xo
|
|
824
824
|
}, Jt = Ve(null);
|
|
825
|
-
function
|
|
825
|
+
function du({
|
|
826
826
|
collapsible: e = !1,
|
|
827
827
|
defaultCollapsed: t = !1,
|
|
828
828
|
className: n,
|
|
@@ -838,8 +838,8 @@ function cu({
|
|
|
838
838
|
}
|
|
839
839
|
) });
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
const a =
|
|
841
|
+
function uu({ title: e, eyebrow: t, actions: n, divider: r = !1, className: o, ...i }) {
|
|
842
|
+
const a = He(Jt), c = ce();
|
|
843
843
|
return /* @__PURE__ */ k("div", { className: P(Pe.header, r && Pe.divider, o), ...i, children: [
|
|
844
844
|
/* @__PURE__ */ k("div", { className: Pe.headerText, children: [
|
|
845
845
|
t && /* @__PURE__ */ s("span", { className: Pe.eyebrow, children: t }),
|
|
@@ -861,8 +861,8 @@ function lu({ title: e, eyebrow: t, actions: n, divider: r = !1, className: o, .
|
|
|
861
861
|
] })
|
|
862
862
|
] });
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
const o =
|
|
864
|
+
function fu({ flush: e = !1, className: t, children: n, ...r }) {
|
|
865
|
+
const o = He(Jt), i = /* @__PURE__ */ s(
|
|
866
866
|
"div",
|
|
867
867
|
{
|
|
868
868
|
id: o == null ? void 0 : o.bodyId,
|
|
@@ -924,7 +924,7 @@ function In(e, t, n) {
|
|
|
924
924
|
return;
|
|
925
925
|
}
|
|
926
926
|
if (!d.open) return;
|
|
927
|
-
const u = typeof t == "number" ? t :
|
|
927
|
+
const u = typeof t == "number" ? t : yt(getComputedStyle(d), t);
|
|
928
928
|
if (u <= 0 || St()) {
|
|
929
929
|
a.current = !0, d.close();
|
|
930
930
|
return;
|
|
@@ -971,11 +971,11 @@ function Po(e, t) {
|
|
|
971
971
|
const n = e.findIndex((r) => r.value === t);
|
|
972
972
|
return n === -1 ? 0 : n;
|
|
973
973
|
}
|
|
974
|
-
const Eo = 10, Fo = 8, Io = 0.5, Bo = /[\p{L}\p{N}]/u,
|
|
975
|
-
function
|
|
974
|
+
const Eo = 10, Fo = 8, Io = 0.5, Bo = /[\p{L}\p{N}]/u, qo = (e) => e !== e.toLowerCase() && e === e.toUpperCase(), Oo = (e) => e !== e.toUpperCase() && e === e.toLowerCase();
|
|
975
|
+
function Ho(e, t) {
|
|
976
976
|
if (t === 0) return !0;
|
|
977
977
|
const n = e[t - 1], r = e[t];
|
|
978
|
-
return Bo.test(n) ?
|
|
978
|
+
return Bo.test(n) ? Oo(n) && qo(r) : !0;
|
|
979
979
|
}
|
|
980
980
|
function ln(e, t) {
|
|
981
981
|
const n = e.trim().toLowerCase();
|
|
@@ -984,22 +984,22 @@ function ln(e, t) {
|
|
|
984
984
|
let o = new Array(t.length).fill(null);
|
|
985
985
|
const i = [];
|
|
986
986
|
for (let u = 0; u < n.length; u++) {
|
|
987
|
-
const p = new Array(t.length).fill(null),
|
|
988
|
-
for (let
|
|
989
|
-
if (r[
|
|
990
|
-
const m =
|
|
987
|
+
const p = new Array(t.length).fill(null), f = new Array(t.length).fill(null);
|
|
988
|
+
for (let h = 0; h < t.length; h++) {
|
|
989
|
+
if (r[h] !== n[u]) continue;
|
|
990
|
+
const m = Ho(t, h) ? Eo : 0;
|
|
991
991
|
if (u === 0) {
|
|
992
|
-
p[
|
|
992
|
+
p[h] = m;
|
|
993
993
|
continue;
|
|
994
994
|
}
|
|
995
|
-
for (let
|
|
996
|
-
const
|
|
997
|
-
if (
|
|
998
|
-
const v =
|
|
999
|
-
(p[
|
|
995
|
+
for (let y = 0; y < h; y++) {
|
|
996
|
+
const b = o[y] ?? null;
|
|
997
|
+
if (b === null) continue;
|
|
998
|
+
const v = b + m + (y === h - 1 ? Fo : 0);
|
|
999
|
+
(p[h] === null || v > p[h]) && (p[h] = v, f[h] = y);
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
o = p, i.push(
|
|
1002
|
+
o = p, i.push(f);
|
|
1003
1003
|
}
|
|
1004
1004
|
let a = null;
|
|
1005
1005
|
for (let u = 0; u < t.length; u++)
|
|
@@ -1050,7 +1050,7 @@ function Wo(e, t) {
|
|
|
1050
1050
|
const Go = "_hidden_69gri_7", Vo = "_focusable_69gri_20 _text_1hv7a_23", dn = {
|
|
1051
1051
|
hidden: Go,
|
|
1052
1052
|
focusable: Vo
|
|
1053
|
-
},
|
|
1053
|
+
}, qn = ie(function({ as: t, focusable: n = !1, className: r, children: o, ...i }, a) {
|
|
1054
1054
|
return /* @__PURE__ */ s(
|
|
1055
1055
|
t ?? "span",
|
|
1056
1056
|
{
|
|
@@ -1060,11 +1060,11 @@ const Go = "_hidden_69gri_7", Vo = "_focusable_69gri_20 _text_1hv7a_23", dn = {
|
|
|
1060
1060
|
children: o
|
|
1061
1061
|
}
|
|
1062
1062
|
);
|
|
1063
|
-
}),
|
|
1064
|
-
dialog:
|
|
1065
|
-
pane:
|
|
1066
|
-
field:
|
|
1067
|
-
bodyWrap:
|
|
1063
|
+
}), jo = "_dialog_11oxz_7 _text_1hv7a_23", Uo = "_pane_11oxz_2", Yo = "_field_11oxz_86 _field_1hv7a_34", Ko = "_bodyWrap_11oxz_125", Xo = "_body_11oxz_125", Qo = "_list_11oxz_146 _scroll_1hv7a_40", Zo = "_groupHeading_11oxz_156", Jo = "_row_11oxz_165", es = "_rowActive_11oxz_179", ts = "_icon_11oxz_187", ns = "_name_11oxz_196", rs = "_mark_11oxz_207", os = "_group_11oxz_156", ss = "_noFinds_11oxz_218", is = "_footer_11oxz_227", as = "_key_11oxz_243", ge = {
|
|
1064
|
+
dialog: jo,
|
|
1065
|
+
pane: Uo,
|
|
1066
|
+
field: Yo,
|
|
1067
|
+
bodyWrap: Ko,
|
|
1068
1068
|
body: Xo,
|
|
1069
1069
|
list: Qo,
|
|
1070
1070
|
groupHeading: Zo,
|
|
@@ -1087,7 +1087,7 @@ function un(e) {
|
|
|
1087
1087
|
icon: e.icon
|
|
1088
1088
|
};
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function hu({
|
|
1091
1091
|
open: e,
|
|
1092
1092
|
onClose: t,
|
|
1093
1093
|
items: n,
|
|
@@ -1095,7 +1095,7 @@ function uu({
|
|
|
1095
1095
|
restingItems: o
|
|
1096
1096
|
}) {
|
|
1097
1097
|
var pe;
|
|
1098
|
-
const i = ce(), a = De(), c = `${a}-list`, { dialogRef: l, beimSchliessen: d, beimAbbrechen: u } = In(e, 0, t), p = R(null),
|
|
1098
|
+
const i = ce(), a = De(), c = `${a}-list`, { dialogRef: l, beimSchliessen: d, beimAbbrechen: u } = In(e, 0, t), p = R(null), f = R(null), [h, m] = B(""), [y, b] = B(null), v = h.trim() !== "", g = se(() => n.map(un), [n]), N = se(() => Wo(g, h), [g, h]), L = se(
|
|
1099
1099
|
() => (o ?? []).map((A) => ({
|
|
1100
1100
|
kandidat: un(A),
|
|
1101
1101
|
rank: 0,
|
|
@@ -1110,16 +1110,16 @@ function uu({
|
|
|
1110
1110
|
te === void 0 && (te = { name: z, finds: [] }, A.push(te)), te.finds.push(I);
|
|
1111
1111
|
}
|
|
1112
1112
|
return A;
|
|
1113
|
-
}, [F]), _ = se(() => D.flatMap((A) => A.finds), [D]), E =
|
|
1114
|
-
|
|
1113
|
+
}, [F]), _ = se(() => D.flatMap((A) => A.finds), [D]), E = y !== null && _.some((A) => A.kandidat.id === y) ? y : ((pe = _[0]) == null ? void 0 : pe.kandidat.id) ?? null, w = R(!1), O = Q(() => {
|
|
1114
|
+
w.current = !1;
|
|
1115
|
+
}, []), j = Q((A) => {
|
|
1116
|
+
w.current = !0, b(A);
|
|
1115
1117
|
}, []), U = Q((A) => {
|
|
1116
|
-
|
|
1117
|
-
}, []), Y = Q((A) => {
|
|
1118
|
-
b.current && y(A);
|
|
1118
|
+
w.current && b(A);
|
|
1119
1119
|
}, []);
|
|
1120
1120
|
ne(() => {
|
|
1121
1121
|
var A;
|
|
1122
|
-
e && (
|
|
1122
|
+
e && (f.current = document.activeElement, m(""), b(null), w.current = !1, (A = p.current) == null || A.focus());
|
|
1123
1123
|
}, [e]), ne(() => {
|
|
1124
1124
|
var A;
|
|
1125
1125
|
E !== null && ((A = document.getElementById(Bt(a, E))) == null || A.scrollIntoView({ block: "nearest" }));
|
|
@@ -1133,10 +1133,10 @@ function uu({
|
|
|
1133
1133
|
return I.observe(A), () => I.disconnect();
|
|
1134
1134
|
}, [e]);
|
|
1135
1135
|
const X = (A) => {
|
|
1136
|
-
if (
|
|
1136
|
+
if (O(), _.length === 0) return;
|
|
1137
1137
|
const I = _.findIndex((te) => te.kandidat.id === E), z = tn(I === -1 ? 0 : I, _.length, A);
|
|
1138
|
-
|
|
1139
|
-
},
|
|
1138
|
+
b(_[z].kandidat.id);
|
|
1139
|
+
}, H = (A) => {
|
|
1140
1140
|
if (!A.nativeEvent.isComposing) {
|
|
1141
1141
|
if (A.key === "ArrowDown") {
|
|
1142
1142
|
A.preventDefault(), X(1);
|
|
@@ -1152,7 +1152,7 @@ function uu({
|
|
|
1152
1152
|
}
|
|
1153
1153
|
A.key === "Escape" && (A.preventDefault(), t());
|
|
1154
1154
|
}
|
|
1155
|
-
},
|
|
1155
|
+
}, Y = n.some((A) => A.icon !== void 0) || (o ?? []).some((A) => A.icon !== void 0);
|
|
1156
1156
|
return /* @__PURE__ */ s(
|
|
1157
1157
|
"dialog",
|
|
1158
1158
|
{
|
|
@@ -1161,7 +1161,7 @@ function uu({
|
|
|
1161
1161
|
"aria-label": i.palettePanel,
|
|
1162
1162
|
onClose: () => {
|
|
1163
1163
|
var A, I;
|
|
1164
|
-
d(), (I = (A =
|
|
1164
|
+
d(), (I = (A = f.current) == null ? void 0 : A.focus) == null || I.call(A);
|
|
1165
1165
|
},
|
|
1166
1166
|
onCancel: u,
|
|
1167
1167
|
onMouseDown: (A) => {
|
|
@@ -1174,7 +1174,7 @@ function uu({
|
|
|
1174
1174
|
ref: p,
|
|
1175
1175
|
type: "text",
|
|
1176
1176
|
className: ge.field,
|
|
1177
|
-
value:
|
|
1177
|
+
value: h,
|
|
1178
1178
|
placeholder: i.palettePlaceholder,
|
|
1179
1179
|
"aria-label": i.paletteField,
|
|
1180
1180
|
role: "combobox",
|
|
@@ -1184,9 +1184,9 @@ function uu({
|
|
|
1184
1184
|
autoComplete: "off",
|
|
1185
1185
|
spellCheck: !1,
|
|
1186
1186
|
onChange: (A) => {
|
|
1187
|
-
|
|
1187
|
+
O(), m(A.target.value);
|
|
1188
1188
|
},
|
|
1189
|
-
onKeyDown:
|
|
1189
|
+
onKeyDown: H
|
|
1190
1190
|
}
|
|
1191
1191
|
),
|
|
1192
1192
|
/* @__PURE__ */ s("div", { className: ge.bodyWrap, style: { height: `${G}px` }, children: /* @__PURE__ */ k("div", { ref: C, className: ge.body, children: [
|
|
@@ -1204,9 +1204,9 @@ function uu({
|
|
|
1204
1204
|
find: te,
|
|
1205
1205
|
baseId: a,
|
|
1206
1206
|
active: te.kandidat.id === E,
|
|
1207
|
-
withIcon:
|
|
1208
|
-
onSweep:
|
|
1209
|
-
onMove:
|
|
1207
|
+
withIcon: Y,
|
|
1208
|
+
onSweep: U,
|
|
1209
|
+
onMove: j,
|
|
1210
1210
|
onChoose: r
|
|
1211
1211
|
},
|
|
1212
1212
|
te.kandidat.id
|
|
@@ -1238,7 +1238,7 @@ function uu({
|
|
|
1238
1238
|
] })
|
|
1239
1239
|
] })
|
|
1240
1240
|
] }) }),
|
|
1241
|
-
/* @__PURE__ */ s(
|
|
1241
|
+
/* @__PURE__ */ s(qn, { role: "status", "aria-live": "polite", children: v ? i.paletteFindCount(_.length) : "" })
|
|
1242
1242
|
] })
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
@@ -1287,7 +1287,7 @@ function ls(e, t) {
|
|
|
1287
1287
|
function ds(e) {
|
|
1288
1288
|
return e instanceof HTMLElement ? e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable : !1;
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function pu(e) {
|
|
1291
1291
|
const t = R(e);
|
|
1292
1292
|
ne(() => {
|
|
1293
1293
|
t.current = e;
|
|
@@ -1302,23 +1302,23 @@ function hu(e) {
|
|
|
1302
1302
|
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
1303
1303
|
}, []);
|
|
1304
1304
|
}
|
|
1305
|
-
const us = "
|
|
1305
|
+
const us = "_wrapper_woydv_4 _text_1hv7a_23", fs = "_input_woydv_11 _field_1hv7a_34", hs = "_invalid_woydv_44", ps = "_chevron_woydv_53", ms = "_panel_woydv_68", _s = "_list_woydv_75 _scroll_1hv7a_40", gs = "_option_woydv_83", vs = "_active_woydv_98", ys = "_selected_woydv_102", bs = "_optionDisabled_woydv_107", ws = "_optionLabel_woydv_116", ks = "_empty_woydv_122", xs = "_inputClearable_woydv_130", Ns = "_clear_woydv_134", Ce = {
|
|
1306
1306
|
wrapper: us,
|
|
1307
|
-
input:
|
|
1308
|
-
invalid:
|
|
1307
|
+
input: fs,
|
|
1308
|
+
invalid: hs,
|
|
1309
1309
|
chevron: ps,
|
|
1310
1310
|
panel: ms,
|
|
1311
1311
|
list: _s,
|
|
1312
1312
|
option: gs,
|
|
1313
1313
|
active: vs,
|
|
1314
|
-
selected:
|
|
1315
|
-
optionDisabled:
|
|
1316
|
-
optionLabel:
|
|
1314
|
+
selected: ys,
|
|
1315
|
+
optionDisabled: bs,
|
|
1316
|
+
optionLabel: ws,
|
|
1317
1317
|
empty: ks,
|
|
1318
1318
|
inputClearable: xs,
|
|
1319
1319
|
clear: Ns
|
|
1320
1320
|
};
|
|
1321
|
-
function
|
|
1321
|
+
function mu({
|
|
1322
1322
|
options: e,
|
|
1323
1323
|
value: t,
|
|
1324
1324
|
onChange: n,
|
|
@@ -1328,22 +1328,22 @@ function fu({
|
|
|
1328
1328
|
emptyText: a,
|
|
1329
1329
|
clearable: c = !1
|
|
1330
1330
|
}) {
|
|
1331
|
-
const l = Be(), d = ce(), u = r ?? d.comboboxPlaceholder, p = a ?? d.noMatches,
|
|
1331
|
+
const l = Be(), d = ce(), u = r ?? d.comboboxPlaceholder, p = a ?? d.noMatches, f = i ?? (l == null ? void 0 : l.invalid) ?? !1, [h, m] = B(!1), [y, b] = B(null), [v, g] = B(0), N = R(null), L = R(null), F = De(), D = se(() => e.find((C) => C.value === t) ?? null, [e, t]), _ = se(() => Bn(e, y ?? ""), [e, y]), E = () => {
|
|
1332
1332
|
g(Po(_, t)), m(!0);
|
|
1333
|
-
},
|
|
1334
|
-
m(!1),
|
|
1335
|
-
},
|
|
1333
|
+
}, w = () => {
|
|
1334
|
+
m(!1), b(null);
|
|
1335
|
+
}, O = (C) => {
|
|
1336
1336
|
var G;
|
|
1337
|
-
C.disabled || (n(C.value),
|
|
1337
|
+
C.disabled || (n(C.value), w(), (G = N.current) == null || G.focus());
|
|
1338
1338
|
};
|
|
1339
1339
|
ne(() => {
|
|
1340
1340
|
var C, G;
|
|
1341
|
-
|
|
1342
|
-
}, [
|
|
1343
|
-
const
|
|
1341
|
+
h && ((G = (C = L.current) == null ? void 0 : C.querySelector(`[data-index="${v}"]`)) == null || G.scrollIntoView({ block: "nearest" }));
|
|
1342
|
+
}, [h, v]);
|
|
1343
|
+
const j = (C) => {
|
|
1344
1344
|
if (!C.nativeEvent.isComposing) {
|
|
1345
1345
|
if (C.key === "ArrowDown" || C.key === "ArrowUp") {
|
|
1346
|
-
if (C.preventDefault(), !
|
|
1346
|
+
if (C.preventDefault(), !h) {
|
|
1347
1347
|
E();
|
|
1348
1348
|
return;
|
|
1349
1349
|
}
|
|
@@ -1352,12 +1352,12 @@ function fu({
|
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
1354
|
if (C.key === "Enter") {
|
|
1355
|
-
|
|
1355
|
+
h && _[v] && (C.preventDefault(), O(_[v]));
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
|
-
C.key === "Escape" &&
|
|
1358
|
+
C.key === "Escape" && h && (C.preventDefault(), w());
|
|
1359
1359
|
}
|
|
1360
|
-
},
|
|
1360
|
+
}, U = y ?? (D == null ? void 0 : D.label) ?? "";
|
|
1361
1361
|
return /* @__PURE__ */ k($e, { children: [
|
|
1362
1362
|
/* @__PURE__ */ k("div", { className: Ce.wrapper, children: [
|
|
1363
1363
|
/* @__PURE__ */ s(
|
|
@@ -1368,30 +1368,30 @@ function fu({
|
|
|
1368
1368
|
role: "combobox",
|
|
1369
1369
|
id: l == null ? void 0 : l.id,
|
|
1370
1370
|
disabled: o,
|
|
1371
|
-
"aria-expanded":
|
|
1372
|
-
"aria-controls":
|
|
1371
|
+
"aria-expanded": h,
|
|
1372
|
+
"aria-controls": h ? F : void 0,
|
|
1373
1373
|
"aria-autocomplete": "list",
|
|
1374
|
-
"aria-activedescendant":
|
|
1374
|
+
"aria-activedescendant": h && _[v] ? `${F}-${v}` : void 0,
|
|
1375
1375
|
"aria-describedby": l == null ? void 0 : l.describedBy,
|
|
1376
1376
|
"aria-required": (l == null ? void 0 : l.required) || void 0,
|
|
1377
|
-
"aria-invalid":
|
|
1377
|
+
"aria-invalid": f || void 0,
|
|
1378
1378
|
placeholder: u,
|
|
1379
|
-
value:
|
|
1380
|
-
className: P(Ce.input, c && Ce.inputClearable,
|
|
1379
|
+
value: U,
|
|
1380
|
+
className: P(Ce.input, c && Ce.inputClearable, f && Ce.invalid),
|
|
1381
1381
|
onChange: (C) => {
|
|
1382
|
-
|
|
1382
|
+
b(C.target.value), g(0), h || E();
|
|
1383
1383
|
},
|
|
1384
1384
|
onClick: () => {
|
|
1385
|
-
|
|
1385
|
+
h || E();
|
|
1386
1386
|
},
|
|
1387
|
-
onKeyDown:
|
|
1387
|
+
onKeyDown: j,
|
|
1388
1388
|
onBlur: (C) => {
|
|
1389
1389
|
var G;
|
|
1390
|
-
(G = L.current) != null && G.contains(C.relatedTarget) ||
|
|
1390
|
+
(G = L.current) != null && G.contains(C.relatedTarget) || w();
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
),
|
|
1394
|
-
c && !o && (t !== null || (
|
|
1394
|
+
c && !o && (t !== null || (y ?? "") !== "") && /* @__PURE__ */ s(
|
|
1395
1395
|
"button",
|
|
1396
1396
|
{
|
|
1397
1397
|
type: "button",
|
|
@@ -1401,9 +1401,9 @@ function fu({
|
|
|
1401
1401
|
onMouseDown: (C) => C.preventDefault(),
|
|
1402
1402
|
onClick: () => {
|
|
1403
1403
|
var C;
|
|
1404
|
-
n(null),
|
|
1404
|
+
n(null), b(null), (C = N.current) == null || C.focus();
|
|
1405
1405
|
},
|
|
1406
|
-
children: /* @__PURE__ */ s(
|
|
1406
|
+
children: /* @__PURE__ */ s(Ue, {})
|
|
1407
1407
|
}
|
|
1408
1408
|
),
|
|
1409
1409
|
/* @__PURE__ */ s("span", { className: Ce.chevron, "aria-hidden": "true" })
|
|
@@ -1411,9 +1411,9 @@ function fu({
|
|
|
1411
1411
|
/* @__PURE__ */ s(
|
|
1412
1412
|
Je,
|
|
1413
1413
|
{
|
|
1414
|
-
open:
|
|
1414
|
+
open: h,
|
|
1415
1415
|
onOpenChange: (C) => {
|
|
1416
|
-
C ||
|
|
1416
|
+
C || w();
|
|
1417
1417
|
},
|
|
1418
1418
|
anchorRef: N,
|
|
1419
1419
|
width: "anchor",
|
|
@@ -1434,7 +1434,7 @@ function fu({
|
|
|
1434
1434
|
),
|
|
1435
1435
|
onMouseEnter: () => !C.disabled && g(G),
|
|
1436
1436
|
onMouseDown: (S) => S.preventDefault(),
|
|
1437
|
-
onClick: () =>
|
|
1437
|
+
onClick: () => O(C),
|
|
1438
1438
|
children: [
|
|
1439
1439
|
/* @__PURE__ */ s("span", { className: Ce.optionLabel, children: C.label }),
|
|
1440
1440
|
C.value === t && /* @__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" }) })
|
|
@@ -1453,7 +1453,7 @@ function $s(e, t, n, r) {
|
|
|
1453
1453
|
return [u, p];
|
|
1454
1454
|
});
|
|
1455
1455
|
}
|
|
1456
|
-
const
|
|
1456
|
+
const On = (e) => Math.max(0, Math.min(1, e)), Ds = (e) => Math.round(On(e) * 100), Ts = "_meter_jhra4_4 _text_1hv7a_23", Ss = "_track_jhra4_13", Ms = "_fill_jhra4_21", Cs = "_neutral_jhra4_28", As = "_accent_jhra4_29", Ls = "_success_jhra4_30", Rs = "_warning_jhra4_31", Ps = "_danger_jhra4_32", Es = "_meterLabel_jhra4_34", Fs = "_sparkline_jhra4_45 _text_1hv7a_23", Is = "_sparklineAccent_jhra4_54", Bs = "_sparklineDot_jhra4_58", Xe = {
|
|
1457
1457
|
meter: Ts,
|
|
1458
1458
|
track: Ss,
|
|
1459
1459
|
fill: Ms,
|
|
@@ -1467,7 +1467,7 @@ const Hn = (e) => Math.max(0, Math.min(1, e)), Ds = (e) => Math.round(Hn(e) * 10
|
|
|
1467
1467
|
sparklineAccent: Is,
|
|
1468
1468
|
sparklineDot: Bs
|
|
1469
1469
|
};
|
|
1470
|
-
function
|
|
1470
|
+
function _u({
|
|
1471
1471
|
value: e,
|
|
1472
1472
|
tone: t = "accent",
|
|
1473
1473
|
showLabel: n = !0,
|
|
@@ -1475,7 +1475,7 @@ function pu({
|
|
|
1475
1475
|
className: o,
|
|
1476
1476
|
...i
|
|
1477
1477
|
}) {
|
|
1478
|
-
const a =
|
|
1478
|
+
const a = je(), c = ce(), l = On(e);
|
|
1479
1479
|
return /* @__PURE__ */ k(
|
|
1480
1480
|
"span",
|
|
1481
1481
|
{
|
|
@@ -1493,10 +1493,10 @@ function pu({
|
|
|
1493
1493
|
}
|
|
1494
1494
|
);
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function qs({ data: e, width: t = 96, height: n = 28, tone: r = "ink", className: o, ...i }) {
|
|
1497
1497
|
const a = De();
|
|
1498
1498
|
if (e.length < 2) return null;
|
|
1499
|
-
const c = 3, l = $s(e, t, n, c), d = l.map(([
|
|
1499
|
+
const c = 3, l = $s(e, t, n, c), d = l.map(([h, m]) => `${h},${m}`).join(" "), u = `M${c},${n - c} L${d.replace(/ /g, " L")} L${t - c},${n - c} Z`, [p, f] = l[l.length - 1] ?? [0, 0];
|
|
1500
1500
|
return /* @__PURE__ */ s("span", { className: P(Xe.sparkline, r === "accent" && Xe.sparklineAccent, o), ...i, children: /* @__PURE__ */ k("svg", { width: t, height: n, viewBox: `0 0 ${t} ${n}`, "aria-hidden": "true", children: [
|
|
1501
1501
|
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ k("linearGradient", { id: a, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1502
1502
|
/* @__PURE__ */ s("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.14" }),
|
|
@@ -1514,30 +1514,30 @@ function Os({ data: e, width: t = 96, height: n = 28, tone: r = "ink", className
|
|
|
1514
1514
|
strokeLinejoin: "round"
|
|
1515
1515
|
}
|
|
1516
1516
|
),
|
|
1517
|
-
/* @__PURE__ */ s("circle", { cx: p, cy:
|
|
1517
|
+
/* @__PURE__ */ s("circle", { cx: p, cy: f, r: "2.2", className: Xe.sparklineDot })
|
|
1518
1518
|
] }) });
|
|
1519
1519
|
}
|
|
1520
|
-
const Me = (e) => new Date(e.getFullYear(), e.getMonth(), 1), at = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Nt = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1),
|
|
1520
|
+
const Me = (e) => new Date(e.getFullYear(), e.getMonth(), 1), at = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Nt = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Os = (e, t) => {
|
|
1521
1521
|
const n = new Date(e.getFullYear(), e.getMonth() + t + 1, 0).getDate();
|
|
1522
1522
|
return new Date(e.getFullYear(), e.getMonth() + t, Math.min(e.getDate(), n));
|
|
1523
|
-
}, Re = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ne = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()),
|
|
1523
|
+
}, Re = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ne = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), qt = (e, t) => Ne(e).getTime() < Ne(t).getTime(), Hs = 42;
|
|
1524
1524
|
function zs(e) {
|
|
1525
1525
|
const t = Me(e), n = (t.getDay() + 6) % 7, r = at(t, -n);
|
|
1526
|
-
return Array.from({ length:
|
|
1526
|
+
return Array.from({ length: Hs }, (o, i) => at(r, i));
|
|
1527
1527
|
}
|
|
1528
1528
|
function Ws(e, t, n) {
|
|
1529
1529
|
const r = t ?? n ?? null, o = !t && !!n;
|
|
1530
|
-
return !e || !r ? { from: null, to: null, isPreview: o } :
|
|
1530
|
+
return !e || !r ? { from: null, to: null, isPreview: o } : qt(r, e) ? { from: r, to: e, isPreview: o } : { from: e, to: r, isPreview: o };
|
|
1531
1531
|
}
|
|
1532
1532
|
const Gs = {
|
|
1533
1533
|
ArrowLeft: -1,
|
|
1534
1534
|
ArrowRight: 1,
|
|
1535
1535
|
ArrowUp: -7,
|
|
1536
1536
|
ArrowDown: 7
|
|
1537
|
-
}, Vs = (e) => Gs[e],
|
|
1538
|
-
trigger:
|
|
1539
|
-
sm:
|
|
1540
|
-
invalid:
|
|
1537
|
+
}, Vs = (e) => Gs[e], js = (e, t) => e.getMonth() !== t.getMonth() || e.getFullYear() !== t.getFullYear(), Us = "_trigger_fn44c_4", Ys = "_sm_fn44c_37", Ks = "_invalid_fn44c_43", Xs = "_value_fn44c_52", Qs = "_placeholder_fn44c_63", Zs = "_icon_fn44c_75", Js = "_panel_fn44c_84 _text_1hv7a_23", ei = "_head_fn44c_94", ti = "_month_fn44c_102", ni = "_page_fn44c_107 _ring_1hv7a_65", ri = "_weekdays_fn44c_131", oi = "_grid_fn44c_132", si = "_day_fn44c_151 _ring_1hv7a_65", ii = "_otherMonth_fn44c_179", ai = "_today_fn44c_183", ci = "_selected_fn44c_189", li = "_foot_fn44c_200", di = "_hangStart_fn44c_214", ui = "_hangEnd_fn44c_219", fi = "_timeRow_fn44c_228", hi = "_timeLabel_fn44c_238", pi = "_timeGroup_fn44c_246", mi = "_timeFieldWrap_fn44c_256", _i = "_timeField_fn44c_256 _field_1hv7a_34", gi = "_timeStepper_fn44c_295", vi = "_timeSeparator_fn44c_352", yi = "_dstHint_fn44c_358", bi = "_dstChoice_fn44c_365", wi = "_dstButtons_fn44c_371", ki = "_footLeft_fn44c_376", xi = "_triggerWrap_fn44c_385 _text_1hv7a_23", Ni = "_triggerClear_fn44c_394", $i = "_rangeDash_fn44c_446", Di = "_rangePanel_fn44c_451 _text_1hv7a_23", Ti = "_rangeRight_fn44c_459", Si = "_rangeBody_fn44c_463", Mi = "_presetColumn_fn44c_469", Ci = "_preset_fn44c_469 _ring_1hv7a_65", Ai = "_presetActive_fn44c_502", Li = "_monthPair_fn44c_509", Ri = "_monthColumn_fn44c_514", Pi = "_pageSpacer_fn44c_549", Ei = "_dayEmpty_fn44c_555", Fi = "_inRange_fn44c_562", Ii = "_rangeFrom_fn44c_572", Bi = "_rangeTo_fn44c_574", qi = "_rangeSingle_fn44c_576", Oi = "_inPreview_fn44c_599", Hi = "_previewEnd_fn44c_604", zi = "_footNote_fn44c_615", Wi = "_timeRangeRow_fn44c_635", Gi = "_timeHalf_fn44c_644", Vi = "_timeHalfHead_fn44c_652", ji = "_timeDate_fn44c_659", Ui = "_footNoteRight_fn44c_666", Yi = "_timeFieldDisabled_fn44c_674", T = {
|
|
1538
|
+
trigger: Us,
|
|
1539
|
+
sm: Ys,
|
|
1540
|
+
invalid: Ks,
|
|
1541
1541
|
value: Xs,
|
|
1542
1542
|
placeholder: Qs,
|
|
1543
1543
|
icon: Zs,
|
|
@@ -1552,43 +1552,45 @@ const Gs = {
|
|
|
1552
1552
|
today: ai,
|
|
1553
1553
|
selected: ci,
|
|
1554
1554
|
foot: li,
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1555
|
+
hangStart: di,
|
|
1556
|
+
hangEnd: ui,
|
|
1557
|
+
timeRow: fi,
|
|
1558
|
+
timeLabel: hi,
|
|
1559
|
+
timeGroup: pi,
|
|
1560
|
+
timeFieldWrap: mi,
|
|
1561
|
+
timeField: _i,
|
|
1562
|
+
timeStepper: gi,
|
|
1563
|
+
timeSeparator: vi,
|
|
1564
|
+
dstHint: yi,
|
|
1565
|
+
dstChoice: bi,
|
|
1564
1566
|
dstButtons: wi,
|
|
1565
|
-
footLeft:
|
|
1566
|
-
triggerWrap:
|
|
1567
|
-
triggerClear:
|
|
1568
|
-
rangeDash:
|
|
1569
|
-
rangePanel:
|
|
1570
|
-
rangeRight:
|
|
1571
|
-
rangeBody:
|
|
1572
|
-
presetColumn:
|
|
1573
|
-
preset:
|
|
1574
|
-
presetActive:
|
|
1575
|
-
monthPair:
|
|
1576
|
-
monthColumn:
|
|
1577
|
-
pageSpacer:
|
|
1578
|
-
dayEmpty:
|
|
1579
|
-
inRange:
|
|
1580
|
-
rangeFrom:
|
|
1581
|
-
rangeTo:
|
|
1582
|
-
rangeSingle:
|
|
1583
|
-
inPreview:
|
|
1584
|
-
previewEnd:
|
|
1585
|
-
footNote:
|
|
1586
|
-
timeRangeRow:
|
|
1587
|
-
timeHalf:
|
|
1588
|
-
timeHalfHead:
|
|
1589
|
-
timeDate:
|
|
1590
|
-
footNoteRight:
|
|
1591
|
-
timeFieldDisabled:
|
|
1567
|
+
footLeft: ki,
|
|
1568
|
+
triggerWrap: xi,
|
|
1569
|
+
triggerClear: Ni,
|
|
1570
|
+
rangeDash: $i,
|
|
1571
|
+
rangePanel: Di,
|
|
1572
|
+
rangeRight: Ti,
|
|
1573
|
+
rangeBody: Si,
|
|
1574
|
+
presetColumn: Mi,
|
|
1575
|
+
preset: Ci,
|
|
1576
|
+
presetActive: Ai,
|
|
1577
|
+
monthPair: Li,
|
|
1578
|
+
monthColumn: Ri,
|
|
1579
|
+
pageSpacer: Pi,
|
|
1580
|
+
dayEmpty: Ei,
|
|
1581
|
+
inRange: Fi,
|
|
1582
|
+
rangeFrom: Ii,
|
|
1583
|
+
rangeTo: Bi,
|
|
1584
|
+
rangeSingle: qi,
|
|
1585
|
+
inPreview: Oi,
|
|
1586
|
+
previewEnd: Hi,
|
|
1587
|
+
footNote: zi,
|
|
1588
|
+
timeRangeRow: Wi,
|
|
1589
|
+
timeHalf: Gi,
|
|
1590
|
+
timeHalfHead: Vi,
|
|
1591
|
+
timeDate: ji,
|
|
1592
|
+
footNoteRight: Ui,
|
|
1593
|
+
timeFieldDisabled: Yi
|
|
1592
1594
|
};
|
|
1593
1595
|
it.weekdays;
|
|
1594
1596
|
function $t({
|
|
@@ -1604,38 +1606,38 @@ function $t({
|
|
|
1604
1606
|
previewTo: d = null,
|
|
1605
1607
|
onHoverDay: u,
|
|
1606
1608
|
withoutPrevious: p = !1,
|
|
1607
|
-
withoutNext:
|
|
1608
|
-
withoutOtherMonth:
|
|
1609
|
+
withoutNext: f = !1,
|
|
1610
|
+
withoutOtherMonth: h = !1,
|
|
1609
1611
|
today: m
|
|
1610
1612
|
}) {
|
|
1611
|
-
const
|
|
1613
|
+
const y = ce(), b = je(), v = R(null);
|
|
1612
1614
|
ne(() => {
|
|
1613
|
-
var
|
|
1614
|
-
e && ((
|
|
1615
|
+
var w, O;
|
|
1616
|
+
e && ((O = (w = v.current) == null ? void 0 : w.querySelector('[data-active="true"]')) == null || O.focus());
|
|
1615
1617
|
}, []), ne(() => {
|
|
1616
|
-
var
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1618
|
+
var O;
|
|
1619
|
+
const w = v.current;
|
|
1620
|
+
w && w.contains(document.activeElement) && ((O = w.querySelector('[data-active="true"]')) == null || O.focus());
|
|
1619
1621
|
}, [r]);
|
|
1620
|
-
const g = (
|
|
1621
|
-
const
|
|
1622
|
-
if (
|
|
1623
|
-
|
|
1624
|
-
const
|
|
1625
|
-
o(
|
|
1622
|
+
const g = (w) => {
|
|
1623
|
+
const O = Vs(w.key);
|
|
1624
|
+
if (O !== void 0) {
|
|
1625
|
+
w.preventDefault();
|
|
1626
|
+
const j = at(r, O);
|
|
1627
|
+
o(j), js(j, t) && n(Me(j));
|
|
1626
1628
|
return;
|
|
1627
1629
|
}
|
|
1628
|
-
(
|
|
1629
|
-
}, N = (
|
|
1630
|
-
n(Nt(t,
|
|
1630
|
+
(w.key === "Enter" || w.key === " ") && (w.preventDefault(), a(r));
|
|
1631
|
+
}, N = (w) => {
|
|
1632
|
+
n(Nt(t, w)), o(Os(r, w));
|
|
1631
1633
|
}, L = zs(t), F = m ?? /* @__PURE__ */ new Date(), { from: D, to: _, isPreview: E } = Ws(c, l, d);
|
|
1632
1634
|
return /* @__PURE__ */ k($e, { children: [
|
|
1633
1635
|
/* @__PURE__ */ k("div", { className: T.head, children: [
|
|
1634
|
-
p ? /* @__PURE__ */ s("span", { className: T.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s("button", { type: "button", className: T.page, "aria-label":
|
|
1635
|
-
/* @__PURE__ */ s("span", { className: T.month, children:
|
|
1636
|
-
|
|
1636
|
+
p ? /* @__PURE__ */ s("span", { className: T.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s("button", { type: "button", className: T.page, "aria-label": y.previousMonth, onClick: () => N(-1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", width: "10", height: "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" }) }) }),
|
|
1637
|
+
/* @__PURE__ */ s("span", { className: T.month, children: b.month(t) }),
|
|
1638
|
+
f ? /* @__PURE__ */ s("span", { className: T.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s("button", { type: "button", className: T.page, "aria-label": y.nextMonth, onClick: () => N(1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", width: "10", height: "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" }) }) })
|
|
1637
1639
|
] }),
|
|
1638
|
-
/* @__PURE__ */ s("div", { className: T.weekdays, "aria-hidden": "true", children:
|
|
1640
|
+
/* @__PURE__ */ s("div", { className: T.weekdays, "aria-hidden": "true", children: y.weekdays.map((w) => /* @__PURE__ */ s("span", { children: w }, w)) }),
|
|
1639
1641
|
/* @__PURE__ */ s(
|
|
1640
1642
|
"div",
|
|
1641
1643
|
{
|
|
@@ -1643,49 +1645,49 @@ function $t({
|
|
|
1643
1645
|
className: T.grid,
|
|
1644
1646
|
onKeyDown: g,
|
|
1645
1647
|
onMouseLeave: u ? () => u(null) : void 0,
|
|
1646
|
-
children: L.map((
|
|
1647
|
-
const
|
|
1648
|
-
if (!
|
|
1649
|
-
return /* @__PURE__ */ s("span", { className: T.dayEmpty, "aria-hidden": "true" },
|
|
1650
|
-
const
|
|
1648
|
+
children: L.map((w) => {
|
|
1649
|
+
const O = w.getMonth() === t.getMonth();
|
|
1650
|
+
if (!O && h)
|
|
1651
|
+
return /* @__PURE__ */ s("span", { className: T.dayEmpty, "aria-hidden": "true" }, w.toISOString());
|
|
1652
|
+
const j = Re(w, r) && (O || !h), U = Re(w, D), C = Re(w, _), G = U && C, S = !!D && !!_ && !U && !C && qt(D, w) && qt(w, _), X = !_ && Re(w, c);
|
|
1651
1653
|
return /* @__PURE__ */ s(
|
|
1652
1654
|
"button",
|
|
1653
1655
|
{
|
|
1654
1656
|
type: "button",
|
|
1655
|
-
tabIndex:
|
|
1656
|
-
"data-active":
|
|
1657
|
-
"aria-label":
|
|
1658
|
-
"aria-pressed": Re(
|
|
1659
|
-
"aria-current": Re(
|
|
1657
|
+
tabIndex: j ? 0 : -1,
|
|
1658
|
+
"data-active": j || void 0,
|
|
1659
|
+
"aria-label": b.dateLong(w),
|
|
1660
|
+
"aria-pressed": Re(w, i) || U || C || X,
|
|
1661
|
+
"aria-current": Re(w, F) ? "date" : void 0,
|
|
1660
1662
|
className: P(
|
|
1661
1663
|
T.day,
|
|
1662
|
-
!
|
|
1663
|
-
Re(
|
|
1664
|
-
Re(
|
|
1664
|
+
!O && T.otherMonth,
|
|
1665
|
+
Re(w, i) && T.selected,
|
|
1666
|
+
Re(w, F) && T.today,
|
|
1665
1667
|
S && T.inRange,
|
|
1666
1668
|
S && E && T.inPreview,
|
|
1667
|
-
(
|
|
1669
|
+
(U || X) && !G && T.rangeFrom,
|
|
1668
1670
|
C && !G && T.rangeTo,
|
|
1669
1671
|
G && T.rangeSingle,
|
|
1670
1672
|
C && E && T.previewEnd
|
|
1671
1673
|
),
|
|
1672
|
-
onClick: () => a(
|
|
1673
|
-
onMouseEnter: u ? () => u(
|
|
1674
|
-
children:
|
|
1674
|
+
onClick: () => a(w),
|
|
1675
|
+
onMouseEnter: u ? () => u(w) : void 0,
|
|
1676
|
+
children: w.getDate()
|
|
1675
1677
|
},
|
|
1676
|
-
|
|
1678
|
+
w.toISOString()
|
|
1677
1679
|
);
|
|
1678
1680
|
})
|
|
1679
1681
|
}
|
|
1680
1682
|
)
|
|
1681
1683
|
] });
|
|
1682
1684
|
}
|
|
1683
|
-
const
|
|
1685
|
+
const Ot = (e) => Ne(e), Ki = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate(), 23, 59, t ? 59 : 0), Xi = (e, t) => e.getTime() <= t.getTime() ? [e, t] : [t, e], Hn = (e, t) => Ne(e).getTime() <= Ne(t).getTime() ? [e, t] : [t, e];
|
|
1684
1686
|
function zn(e, t, n, r) {
|
|
1685
|
-
const [o, i] =
|
|
1687
|
+
const [o, i] = Hn(e, t);
|
|
1686
1688
|
return {
|
|
1687
|
-
from:
|
|
1688
|
-
to: n === "day" ?
|
|
1689
|
+
from: Ot(o),
|
|
1690
|
+
to: n === "day" ? Ot(i) : Ki(i, r)
|
|
1689
1691
|
};
|
|
1690
1692
|
}
|
|
1691
1693
|
function Mt({
|
|
@@ -1701,7 +1703,7 @@ function Mt({
|
|
|
1701
1703
|
onClear: d,
|
|
1702
1704
|
ariaLabel: u
|
|
1703
1705
|
}) {
|
|
1704
|
-
const { disabled: p, invalid:
|
|
1706
|
+
const { disabled: p, invalid: f, clearable: h, size: m } = o;
|
|
1705
1707
|
return /* @__PURE__ */ k("span", { ref: e, className: T.triggerWrap, children: [
|
|
1706
1708
|
/* @__PURE__ */ k(
|
|
1707
1709
|
"button",
|
|
@@ -1714,8 +1716,8 @@ function Mt({
|
|
|
1714
1716
|
"aria-expanded": n.open,
|
|
1715
1717
|
"aria-controls": n.open ? n.id : void 0,
|
|
1716
1718
|
"aria-describedby": r == null ? void 0 : r.describedBy,
|
|
1717
|
-
"aria-invalid":
|
|
1718
|
-
className: P(T.trigger, m === "sm" && T.sm,
|
|
1719
|
+
"aria-invalid": f || void 0,
|
|
1720
|
+
className: P(T.trigger, m === "sm" && T.sm, f && T.invalid),
|
|
1719
1721
|
onClick: n.onToggle,
|
|
1720
1722
|
children: [
|
|
1721
1723
|
/* @__PURE__ */ s("span", { className: P(T.value, !c && T.placeholder), children: c ? i : l }),
|
|
@@ -1723,21 +1725,21 @@ function Mt({
|
|
|
1723
1725
|
]
|
|
1724
1726
|
}
|
|
1725
1727
|
),
|
|
1726
|
-
|
|
1728
|
+
h && c && !p && /* @__PURE__ */ s(
|
|
1727
1729
|
"button",
|
|
1728
1730
|
{
|
|
1729
1731
|
type: "button",
|
|
1730
1732
|
tabIndex: -1,
|
|
1731
1733
|
"aria-label": u,
|
|
1732
1734
|
className: T.triggerClear,
|
|
1733
|
-
onMouseDown: (
|
|
1735
|
+
onMouseDown: (y) => y.preventDefault(),
|
|
1734
1736
|
onClick: d,
|
|
1735
|
-
children: /* @__PURE__ */ s(
|
|
1737
|
+
children: /* @__PURE__ */ s(Ue, {})
|
|
1736
1738
|
}
|
|
1737
1739
|
)
|
|
1738
1740
|
] });
|
|
1739
1741
|
}
|
|
1740
|
-
function
|
|
1742
|
+
function gu({
|
|
1741
1743
|
value: e,
|
|
1742
1744
|
onChange: t,
|
|
1743
1745
|
placeholder: n,
|
|
@@ -1746,14 +1748,14 @@ function mu({
|
|
|
1746
1748
|
size: i = "md",
|
|
1747
1749
|
clearable: a = !1
|
|
1748
1750
|
}) {
|
|
1749
|
-
const c = Be(), l = ce(), d =
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1752
|
-
}, _ = (
|
|
1753
|
-
var
|
|
1754
|
-
|
|
1755
|
-
}, E = (
|
|
1756
|
-
t(
|
|
1751
|
+
const c = Be(), l = ce(), d = je(), u = n ?? l.datePlaceholder, p = o ?? (c == null ? void 0 : c.invalid) ?? !1, [f, h] = B(!1), [m, y] = B(() => Me(e ?? /* @__PURE__ */ new Date())), [b, v] = B(() => e ?? /* @__PURE__ */ new Date()), g = R(null), N = R(null), L = R(null), F = De(), D = () => {
|
|
1752
|
+
const w = e ?? /* @__PURE__ */ new Date();
|
|
1753
|
+
y(Me(w)), v(w), h(!0);
|
|
1754
|
+
}, _ = (w = !0) => {
|
|
1755
|
+
var O;
|
|
1756
|
+
h(!1), w && ((O = g.current) == null || O.focus());
|
|
1757
|
+
}, E = (w) => {
|
|
1758
|
+
t(Ot(w)), _();
|
|
1757
1759
|
};
|
|
1758
1760
|
return /* @__PURE__ */ k($e, { children: [
|
|
1759
1761
|
/* @__PURE__ */ s(
|
|
@@ -1761,7 +1763,7 @@ function mu({
|
|
|
1761
1763
|
{
|
|
1762
1764
|
wrapRef: N,
|
|
1763
1765
|
triggerRef: g,
|
|
1764
|
-
panel: { id: F, open:
|
|
1766
|
+
panel: { id: F, open: f, onToggle: () => f ? h(!1) : D() },
|
|
1765
1767
|
field: c,
|
|
1766
1768
|
state: { disabled: r, invalid: p, clearable: a, size: i },
|
|
1767
1769
|
hasValue: !!e,
|
|
@@ -1769,7 +1771,7 @@ function mu({
|
|
|
1769
1771
|
icon: /* @__PURE__ */ s(Mn, { className: T.icon }),
|
|
1770
1772
|
placeholder: u,
|
|
1771
1773
|
onClear: () => {
|
|
1772
|
-
t(null),
|
|
1774
|
+
t(null), f && _(!1);
|
|
1773
1775
|
},
|
|
1774
1776
|
ariaLabel: l.dateClear
|
|
1775
1777
|
}
|
|
@@ -1777,9 +1779,9 @@ function mu({
|
|
|
1777
1779
|
/* @__PURE__ */ s(
|
|
1778
1780
|
Je,
|
|
1779
1781
|
{
|
|
1780
|
-
open:
|
|
1781
|
-
onOpenChange: (
|
|
1782
|
-
|
|
1782
|
+
open: f,
|
|
1783
|
+
onOpenChange: (w) => {
|
|
1784
|
+
w || h(!1);
|
|
1783
1785
|
},
|
|
1784
1786
|
anchorRef: g,
|
|
1785
1787
|
insideRefs: [N],
|
|
@@ -1793,16 +1795,16 @@ function mu({
|
|
|
1793
1795
|
{
|
|
1794
1796
|
autoFocus: !0,
|
|
1795
1797
|
view: m,
|
|
1796
|
-
onView:
|
|
1797
|
-
active:
|
|
1798
|
+
onView: y,
|
|
1799
|
+
active: b,
|
|
1798
1800
|
onActive: v,
|
|
1799
1801
|
value: e,
|
|
1800
1802
|
onPick: E
|
|
1801
1803
|
}
|
|
1802
1804
|
),
|
|
1803
1805
|
/* @__PURE__ */ k("div", { className: T.foot, children: [
|
|
1804
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => E(/* @__PURE__ */ new Date()), children: l.today }),
|
|
1805
|
-
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
1806
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangStart, onClick: () => E(/* @__PURE__ */ new Date()), children: l.today }),
|
|
1807
|
+
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangEnd, onClick: () => {
|
|
1806
1808
|
t(null), _();
|
|
1807
1809
|
}, children: l.clear })
|
|
1808
1810
|
] })
|
|
@@ -1822,7 +1824,7 @@ function nn(e, t, n, r, o, i) {
|
|
|
1822
1824
|
const d = new Date(a.getTime() + c);
|
|
1823
1825
|
return Lt(d, r, o, i) ? { kind: "ambiguous", earlier: a, later: d } : { kind: "ok", date: a };
|
|
1824
1826
|
}
|
|
1825
|
-
function
|
|
1827
|
+
function Ht(e) {
|
|
1826
1828
|
const t = nn(
|
|
1827
1829
|
e.getFullYear(),
|
|
1828
1830
|
e.getMonth(),
|
|
@@ -1833,31 +1835,31 @@ function qt(e) {
|
|
|
1833
1835
|
);
|
|
1834
1836
|
return t.kind === "ambiguous" && e.getTime() >= t.later.getTime() ? "later" : "earlier";
|
|
1835
1837
|
}
|
|
1836
|
-
function
|
|
1838
|
+
function Qi(e, t) {
|
|
1837
1839
|
const n = t ? 1e3 : 6e4;
|
|
1838
1840
|
return new Date(Math.floor(e.getTime() / n) * n);
|
|
1839
1841
|
}
|
|
1840
1842
|
const Qe = (e) => String(e).padStart(2, "0");
|
|
1841
|
-
function
|
|
1843
|
+
function ht({ value: e, onValue: t, max: n, label: r, next: o, own: i, disabled: a = !1 }) {
|
|
1842
1844
|
const c = ce(), l = R(e);
|
|
1843
1845
|
l.current = e;
|
|
1844
1846
|
const d = (m) => {
|
|
1845
|
-
const
|
|
1846
|
-
t(Qe((
|
|
1847
|
+
const y = Number.parseInt(l.current, 10) || 0;
|
|
1848
|
+
t(Qe((y + m + n + 1) % (n + 1)));
|
|
1847
1849
|
}, u = R(null), p = () => {
|
|
1848
1850
|
u.current !== null && (clearTimeout(u.current), u.current = null);
|
|
1849
1851
|
};
|
|
1850
1852
|
ne(() => p, []);
|
|
1851
|
-
const
|
|
1852
|
-
var
|
|
1853
|
-
d(m), (
|
|
1854
|
-
const
|
|
1853
|
+
const f = (m) => {
|
|
1854
|
+
var b;
|
|
1855
|
+
d(m), (b = i == null ? void 0 : i.current) == null || b.focus();
|
|
1856
|
+
const y = (v) => {
|
|
1855
1857
|
u.current = setTimeout(() => {
|
|
1856
|
-
d(m),
|
|
1858
|
+
d(m), y(Math.max(60, v * 0.9));
|
|
1857
1859
|
}, v);
|
|
1858
1860
|
};
|
|
1859
|
-
|
|
1860
|
-
},
|
|
1861
|
+
y(400);
|
|
1862
|
+
}, h = (m) => {
|
|
1861
1863
|
m.key !== "ArrowUp" && m.key !== "ArrowDown" || (m.preventDefault(), d(m.key === "ArrowUp" ? 1 : -1));
|
|
1862
1864
|
};
|
|
1863
1865
|
return /* @__PURE__ */ k("span", { className: P(T.timeFieldWrap, a && T.timeFieldDisabled), children: [
|
|
@@ -1873,17 +1875,17 @@ function ft({ value: e, onValue: t, max: n, label: r, next: o, own: i, disabled:
|
|
|
1873
1875
|
className: T.timeField,
|
|
1874
1876
|
value: e,
|
|
1875
1877
|
onChange: (m) => {
|
|
1876
|
-
const
|
|
1877
|
-
if (t(
|
|
1878
|
-
const
|
|
1879
|
-
requestAnimationFrame(() =>
|
|
1878
|
+
const y = m.target.value.replace(/\D/g, "").slice(0, 2);
|
|
1879
|
+
if (t(y), y.length === 2 && (o != null && o.current)) {
|
|
1880
|
+
const b = o.current;
|
|
1881
|
+
requestAnimationFrame(() => b.focus());
|
|
1880
1882
|
}
|
|
1881
1883
|
},
|
|
1882
|
-
onKeyDown:
|
|
1884
|
+
onKeyDown: h,
|
|
1883
1885
|
onFocus: (m) => m.target.select(),
|
|
1884
1886
|
onBlur: (m) => {
|
|
1885
|
-
const
|
|
1886
|
-
t(Qe(
|
|
1887
|
+
const y = Math.min(n, Number.parseInt(m.currentTarget.value, 10) || 0);
|
|
1888
|
+
t(Qe(y));
|
|
1887
1889
|
}
|
|
1888
1890
|
}
|
|
1889
1891
|
),
|
|
@@ -1896,7 +1898,7 @@ function ft({ value: e, onValue: t, max: n, label: r, next: o, own: i, disabled:
|
|
|
1896
1898
|
"aria-label": c.timeFieldIncrease(r),
|
|
1897
1899
|
disabled: a,
|
|
1898
1900
|
onPointerDown: (m) => {
|
|
1899
|
-
m.preventDefault(), !(m.button !== 0 || a) &&
|
|
1901
|
+
m.preventDefault(), !(m.button !== 0 || a) && f(1);
|
|
1900
1902
|
},
|
|
1901
1903
|
onPointerUp: p,
|
|
1902
1904
|
onPointerLeave: p,
|
|
@@ -1913,7 +1915,7 @@ function ft({ value: e, onValue: t, max: n, label: r, next: o, own: i, disabled:
|
|
|
1913
1915
|
"aria-label": c.timeFieldDecrease(r),
|
|
1914
1916
|
disabled: a,
|
|
1915
1917
|
onPointerDown: (m) => {
|
|
1916
|
-
m.preventDefault(), !(m.button !== 0 || a) &&
|
|
1918
|
+
m.preventDefault(), !(m.button !== 0 || a) && f(-1);
|
|
1917
1919
|
},
|
|
1918
1920
|
onPointerUp: p,
|
|
1919
1921
|
onPointerLeave: p,
|
|
@@ -1925,7 +1927,7 @@ function ft({ value: e, onValue: t, max: n, label: r, next: o, own: i, disabled:
|
|
|
1925
1927
|
] })
|
|
1926
1928
|
] });
|
|
1927
1929
|
}
|
|
1928
|
-
function
|
|
1930
|
+
function vu({
|
|
1929
1931
|
value: e,
|
|
1930
1932
|
onChange: t,
|
|
1931
1933
|
withSeconds: n = !1,
|
|
@@ -1935,23 +1937,23 @@ function _u({
|
|
|
1935
1937
|
invalid: a,
|
|
1936
1938
|
clearable: c = !1
|
|
1937
1939
|
}) {
|
|
1938
|
-
const l = Be(), d = ce(), u =
|
|
1940
|
+
const l = Be(), d = ce(), u = je(), p = r ?? d.dateTimePlaceholder, f = a ?? (l == null ? void 0 : l.invalid) ?? !1, [h, m] = B(!1), [y, b] = B(() => Me(e ?? /* @__PURE__ */ new Date())), [v, g] = B(() => e ?? /* @__PURE__ */ new Date()), [N, L] = B(e), [F, D] = B("00"), [_, E] = B("00"), [w, O] = B("00"), [j, U] = B("earlier"), C = R(null), G = R(null), S = R(null), X = R(null), H = R(null), Y = R(null), pe = De(), A = () => {
|
|
1939
1941
|
const oe = e ?? /* @__PURE__ */ new Date();
|
|
1940
|
-
|
|
1942
|
+
b(Me(oe)), g(oe), L(e ? oe : null), D(Qe(e ? oe.getHours() : 0)), E(Qe(e ? oe.getMinutes() : 0)), O(Qe(e && n ? oe.getSeconds() : 0)), U(e ? Ht(e) : "earlier"), m(!0);
|
|
1941
1943
|
}, I = (oe = !0) => {
|
|
1942
|
-
var
|
|
1943
|
-
m(!1), oe && ((
|
|
1944
|
+
var K;
|
|
1945
|
+
m(!1), oe && ((K = C.current) == null || K.focus());
|
|
1944
1946
|
}, z = se(() => N ? nn(
|
|
1945
1947
|
N.getFullYear(),
|
|
1946
1948
|
N.getMonth(),
|
|
1947
1949
|
N.getDate(),
|
|
1948
1950
|
Math.min(23, Number.parseInt(F, 10) || 0),
|
|
1949
1951
|
Math.min(59, Number.parseInt(_, 10) || 0),
|
|
1950
|
-
n ? Math.min(59, Number.parseInt(
|
|
1951
|
-
) : null, [N, F, _,
|
|
1952
|
+
n ? Math.min(59, Number.parseInt(w, 10) || 0) : 0
|
|
1953
|
+
) : null, [N, F, _, w, n]), te = se(() => z ? z.kind === "ambiguous" ? j === "earlier" ? z.earlier : z.later : z.date : null, [z, j]), ke = () => {
|
|
1952
1954
|
te && (t(te), I());
|
|
1953
1955
|
}, Ee = () => {
|
|
1954
|
-
t(
|
|
1956
|
+
t(Qi(/* @__PURE__ */ new Date(), n)), I();
|
|
1955
1957
|
};
|
|
1956
1958
|
return /* @__PURE__ */ k($e, { children: [
|
|
1957
1959
|
/* @__PURE__ */ s(
|
|
@@ -1959,15 +1961,15 @@ function _u({
|
|
|
1959
1961
|
{
|
|
1960
1962
|
wrapRef: G,
|
|
1961
1963
|
triggerRef: C,
|
|
1962
|
-
panel: { id: pe, open:
|
|
1964
|
+
panel: { id: pe, open: h, onToggle: () => h ? m(!1) : A() },
|
|
1963
1965
|
field: l,
|
|
1964
|
-
state: { disabled: o, invalid:
|
|
1966
|
+
state: { disabled: o, invalid: f, clearable: c, size: i },
|
|
1965
1967
|
hasValue: !!e,
|
|
1966
1968
|
display: e && u.dateTime(e, n),
|
|
1967
1969
|
icon: /* @__PURE__ */ s(Cn, { className: T.icon }),
|
|
1968
1970
|
placeholder: p,
|
|
1969
1971
|
onClear: () => {
|
|
1970
|
-
t(null),
|
|
1972
|
+
t(null), h && I(!1);
|
|
1971
1973
|
},
|
|
1972
1974
|
ariaLabel: d.dateTimeClear
|
|
1973
1975
|
}
|
|
@@ -1975,7 +1977,7 @@ function _u({
|
|
|
1975
1977
|
/* @__PURE__ */ s(
|
|
1976
1978
|
Je,
|
|
1977
1979
|
{
|
|
1978
|
-
open:
|
|
1980
|
+
open: h,
|
|
1979
1981
|
onOpenChange: (oe) => {
|
|
1980
1982
|
oe || m(!1);
|
|
1981
1983
|
},
|
|
@@ -1990,15 +1992,15 @@ function _u({
|
|
|
1990
1992
|
$t,
|
|
1991
1993
|
{
|
|
1992
1994
|
autoFocus: !0,
|
|
1993
|
-
view:
|
|
1994
|
-
onView:
|
|
1995
|
+
view: y,
|
|
1996
|
+
onView: b,
|
|
1995
1997
|
active: v,
|
|
1996
1998
|
onActive: g,
|
|
1997
1999
|
value: N,
|
|
1998
2000
|
onPick: (oe) => {
|
|
1999
|
-
L(oe), g(oe),
|
|
2000
|
-
var
|
|
2001
|
-
return (
|
|
2001
|
+
L(oe), g(oe), U("earlier"), requestAnimationFrame(() => {
|
|
2002
|
+
var K;
|
|
2003
|
+
return (K = X.current) == null ? void 0 : K.focus();
|
|
2002
2004
|
});
|
|
2003
2005
|
}
|
|
2004
2006
|
}
|
|
@@ -2013,12 +2015,12 @@ function _u({
|
|
|
2013
2015
|
children: [
|
|
2014
2016
|
/* @__PURE__ */ s("span", { className: T.timeLabel, children: d.timeOfDay }),
|
|
2015
2017
|
/* @__PURE__ */ k("div", { className: T.timeGroup, children: [
|
|
2016
|
-
/* @__PURE__ */ s(
|
|
2018
|
+
/* @__PURE__ */ s(ht, { own: X, value: F, onValue: D, max: 23, label: d.hour, next: H }),
|
|
2017
2019
|
/* @__PURE__ */ s("span", { className: T.timeSeparator, children: ":" }),
|
|
2018
|
-
/* @__PURE__ */ s(
|
|
2020
|
+
/* @__PURE__ */ s(ht, { own: H, value: _, onValue: E, max: 59, label: d.minute, next: n ? Y : void 0 }),
|
|
2019
2021
|
n && /* @__PURE__ */ k($e, { children: [
|
|
2020
2022
|
/* @__PURE__ */ s("span", { className: T.timeSeparator, children: ":" }),
|
|
2021
|
-
/* @__PURE__ */ s(
|
|
2023
|
+
/* @__PURE__ */ s(ht, { own: Y, value: w, onValue: O, max: 59, label: d.second })
|
|
2022
2024
|
] })
|
|
2023
2025
|
] })
|
|
2024
2026
|
]
|
|
@@ -2032,8 +2034,8 @@ function _u({
|
|
|
2032
2034
|
ve,
|
|
2033
2035
|
{
|
|
2034
2036
|
size: "sm",
|
|
2035
|
-
variant:
|
|
2036
|
-
onClick: () =>
|
|
2037
|
+
variant: j === "earlier" ? "primary" : "secondary",
|
|
2038
|
+
onClick: () => U("earlier"),
|
|
2037
2039
|
children: d.timeEarlier(u.offset(z.earlier))
|
|
2038
2040
|
}
|
|
2039
2041
|
),
|
|
@@ -2041,8 +2043,8 @@ function _u({
|
|
|
2041
2043
|
ve,
|
|
2042
2044
|
{
|
|
2043
2045
|
size: "sm",
|
|
2044
|
-
variant:
|
|
2045
|
-
onClick: () =>
|
|
2046
|
+
variant: j === "later" ? "primary" : "secondary",
|
|
2047
|
+
onClick: () => U("later"),
|
|
2046
2048
|
children: d.timeLater(u.offset(z.later))
|
|
2047
2049
|
}
|
|
2048
2050
|
)
|
|
@@ -2050,7 +2052,7 @@ function _u({
|
|
|
2050
2052
|
] }),
|
|
2051
2053
|
/* @__PURE__ */ k("div", { className: T.foot, children: [
|
|
2052
2054
|
/* @__PURE__ */ k("div", { className: T.footLeft, children: [
|
|
2053
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: Ee, children: d.now }),
|
|
2055
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangStart, onClick: Ee, children: d.now }),
|
|
2054
2056
|
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
2055
2057
|
t(null), I();
|
|
2056
2058
|
}, children: d.clear })
|
|
@@ -2062,7 +2064,7 @@ function _u({
|
|
|
2062
2064
|
)
|
|
2063
2065
|
] });
|
|
2064
2066
|
}
|
|
2065
|
-
const
|
|
2067
|
+
const Zi = 1440 * 60 * 1e3, Dt = (e, t) => Math.round((Ne(t).getTime() - Ne(e).getTime()) / Zi) + 1, Ji = [
|
|
2066
2068
|
"today",
|
|
2067
2069
|
"yesterday",
|
|
2068
2070
|
"last7Days",
|
|
@@ -2072,7 +2074,7 @@ const Xi = 1440 * 60 * 1e3, Dt = (e, t) => Math.round((Ne(t).getTime() - Ne(e).g
|
|
|
2072
2074
|
"thisQuarter",
|
|
2073
2075
|
"thisYear"
|
|
2074
2076
|
];
|
|
2075
|
-
function
|
|
2077
|
+
function ea(e, t) {
|
|
2076
2078
|
const n = Ne(t);
|
|
2077
2079
|
switch (e) {
|
|
2078
2080
|
case "today":
|
|
@@ -2095,15 +2097,15 @@ function Zi(e, t) {
|
|
|
2095
2097
|
return { from: new Date(n.getFullYear(), 0, 1), to: new Date(n.getFullYear(), 11, 31) };
|
|
2096
2098
|
}
|
|
2097
2099
|
}
|
|
2098
|
-
const rn = (e) =>
|
|
2100
|
+
const rn = (e) => Ji.map((t) => ({
|
|
2099
2101
|
label: e.presets[t],
|
|
2100
|
-
range: () =>
|
|
2101
|
-
})),
|
|
2102
|
-
function
|
|
2102
|
+
range: () => ea(t, /* @__PURE__ */ new Date())
|
|
2103
|
+
})), yu = rn(it);
|
|
2104
|
+
function ta(e, t) {
|
|
2103
2105
|
const n = Me(e).getTime(), r = Me(Nt(e, 1)).getTime(), o = Me(t).getTime();
|
|
2104
2106
|
return o === n || o === r ? null : o < n ? Me(t) : Nt(Me(t), -1);
|
|
2105
2107
|
}
|
|
2106
|
-
function
|
|
2108
|
+
function na(e) {
|
|
2107
2109
|
const { active: t, onActive: n, onPick: r, bandFrom: o, bandTo: i, previewTo: a, onHoverDay: c } = e;
|
|
2108
2110
|
return {
|
|
2109
2111
|
active: t,
|
|
@@ -2131,8 +2133,8 @@ function Wn({ presets: e, isActive: t, onChoose: n }) {
|
|
|
2131
2133
|
)) });
|
|
2132
2134
|
}
|
|
2133
2135
|
function Gn({ view: e, onView: t, ...n }) {
|
|
2134
|
-
const r =
|
|
2135
|
-
const c =
|
|
2136
|
+
const r = na(n), o = Nt(e, 1), i = (a) => {
|
|
2137
|
+
const c = ta(e, a);
|
|
2136
2138
|
c && t(c);
|
|
2137
2139
|
};
|
|
2138
2140
|
return /* @__PURE__ */ k("div", { className: T.monthPair, children: [
|
|
@@ -2140,7 +2142,7 @@ function Gn({ view: e, onView: t, ...n }) {
|
|
|
2140
2142
|
/* @__PURE__ */ s("div", { className: T.monthColumn, children: /* @__PURE__ */ s($t, { view: o, onView: i, withoutPrevious: !0, ...r }) })
|
|
2141
2143
|
] });
|
|
2142
2144
|
}
|
|
2143
|
-
function
|
|
2145
|
+
function bu({
|
|
2144
2146
|
value: e,
|
|
2145
2147
|
onChange: t,
|
|
2146
2148
|
placeholder: n,
|
|
@@ -2150,12 +2152,12 @@ function vu({
|
|
|
2150
2152
|
clearable: a = !1,
|
|
2151
2153
|
presets: c
|
|
2152
2154
|
}) {
|
|
2153
|
-
const l = Be(), d = ce(), u =
|
|
2155
|
+
const l = Be(), d = ce(), u = je(), p = n ?? d.dateRangePlaceholder, f = o ?? (l == null ? void 0 : l.invalid) ?? !1, h = se(() => c ?? rn(d), [c, d]), [m, y] = B(!1), [b, v] = B(() => Me((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [g, N] = B(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [L, F] = B(null), [D, _] = B(null), E = R(null), w = R(null), O = R(null), j = De(), U = () => {
|
|
2154
2156
|
const I = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2155
|
-
v(Me(I)), N(I), F(null), _(null),
|
|
2157
|
+
v(Me(I)), N(I), F(null), _(null), y(!0);
|
|
2156
2158
|
}, C = (I = !0) => {
|
|
2157
2159
|
var z;
|
|
2158
|
-
|
|
2160
|
+
y(!1), F(null), _(null), I && ((z = E.current) == null || z.focus());
|
|
2159
2161
|
}, G = (I, z) => {
|
|
2160
2162
|
t(zn(I, z, "day", !1)), C();
|
|
2161
2163
|
}, S = (I) => {
|
|
@@ -2168,10 +2170,10 @@ function vu({
|
|
|
2168
2170
|
ne(() => {
|
|
2169
2171
|
var z, te;
|
|
2170
2172
|
if (!m) return;
|
|
2171
|
-
const I =
|
|
2173
|
+
const I = O.current;
|
|
2172
2174
|
I && (z = document.activeElement) != null && z.closest(`.${T.grid}`) && ((te = I.querySelector('[data-active="true"]')) == null || te.focus());
|
|
2173
2175
|
}, [g, m]);
|
|
2174
|
-
const X = L ?? (e == null ? void 0 : e.from) ?? null,
|
|
2176
|
+
const X = L ?? (e == null ? void 0 : e.from) ?? null, H = L ? null : (e == null ? void 0 : e.to) ?? null, Y = L ? D : null, pe = (() => {
|
|
2175
2177
|
if (L && D) {
|
|
2176
2178
|
const [I, z] = Ne(D).getTime() < Ne(L).getTime() ? [D, L] : [L, D], te = Dt(I, z);
|
|
2177
2179
|
return d.rangePreview(u.dateShort(I), u.dateShort(z), te);
|
|
@@ -2191,11 +2193,11 @@ function vu({
|
|
|
2191
2193
|
/* @__PURE__ */ s(
|
|
2192
2194
|
Mt,
|
|
2193
2195
|
{
|
|
2194
|
-
wrapRef:
|
|
2196
|
+
wrapRef: w,
|
|
2195
2197
|
triggerRef: E,
|
|
2196
|
-
panel: { id:
|
|
2198
|
+
panel: { id: j, open: m, onToggle: () => m ? y(!1) : U() },
|
|
2197
2199
|
field: l,
|
|
2198
|
-
state: { disabled: r, invalid:
|
|
2200
|
+
state: { disabled: r, invalid: f, clearable: a, size: i },
|
|
2199
2201
|
hasValue: !!e,
|
|
2200
2202
|
display: e && /* @__PURE__ */ k($e, { children: [
|
|
2201
2203
|
u.date(e.from),
|
|
@@ -2215,20 +2217,20 @@ function vu({
|
|
|
2215
2217
|
{
|
|
2216
2218
|
open: m,
|
|
2217
2219
|
onOpenChange: (I) => {
|
|
2218
|
-
I ||
|
|
2220
|
+
I || y(!1);
|
|
2219
2221
|
},
|
|
2220
2222
|
anchorRef: E,
|
|
2221
|
-
insideRefs: [
|
|
2223
|
+
insideRefs: [w],
|
|
2222
2224
|
role: "dialog",
|
|
2223
2225
|
ariaLabel: d.dateRangePanel,
|
|
2224
|
-
id:
|
|
2226
|
+
id: j,
|
|
2225
2227
|
className: P(T.panel, T.rangePanel),
|
|
2226
|
-
children: /* @__PURE__ */ k("div", { ref:
|
|
2228
|
+
children: /* @__PURE__ */ k("div", { ref: O, children: [
|
|
2227
2229
|
/* @__PURE__ */ k("div", { className: T.rangeBody, children: [
|
|
2228
2230
|
/* @__PURE__ */ s(
|
|
2229
2231
|
Wn,
|
|
2230
2232
|
{
|
|
2231
|
-
presets:
|
|
2233
|
+
presets: h,
|
|
2232
2234
|
isActive: A,
|
|
2233
2235
|
onChoose: (I) => {
|
|
2234
2236
|
const z = I.range();
|
|
@@ -2239,21 +2241,21 @@ function vu({
|
|
|
2239
2241
|
/* @__PURE__ */ s(
|
|
2240
2242
|
Gn,
|
|
2241
2243
|
{
|
|
2242
|
-
view:
|
|
2244
|
+
view: b,
|
|
2243
2245
|
onView: v,
|
|
2244
2246
|
active: g,
|
|
2245
2247
|
onActive: N,
|
|
2246
2248
|
onPick: S,
|
|
2247
2249
|
bandFrom: X,
|
|
2248
|
-
bandTo:
|
|
2249
|
-
previewTo:
|
|
2250
|
+
bandTo: H,
|
|
2251
|
+
previewTo: Y,
|
|
2250
2252
|
onHoverDay: _
|
|
2251
2253
|
}
|
|
2252
2254
|
)
|
|
2253
2255
|
] }),
|
|
2254
2256
|
/* @__PURE__ */ k("div", { className: T.foot, children: [
|
|
2255
2257
|
/* @__PURE__ */ s("span", { className: T.footNote, "aria-live": "polite", children: pe }),
|
|
2256
|
-
e && !L && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
2258
|
+
e && !L && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangEnd, onClick: () => {
|
|
2257
2259
|
t(null), C();
|
|
2258
2260
|
}, children: d.clear })
|
|
2259
2261
|
] })
|
|
@@ -2266,11 +2268,11 @@ const Rt = { hour: "00", minute: "00", second: "00" }, Pt = (e) => ({
|
|
|
2266
2268
|
hour: "23",
|
|
2267
2269
|
minute: "59",
|
|
2268
2270
|
second: e ? "59" : "00"
|
|
2269
|
-
}),
|
|
2271
|
+
}), ra = (e, t, n) => e.getHours() === 0 && e.getMinutes() === 0 && e.getSeconds() === 0 && t.getHours() === 23 && t.getMinutes() === 59 && (n ? t.getSeconds() === 59 : t.getSeconds() === 0), fn = (e, t) => ({
|
|
2270
2272
|
hour: Qe(e.getHours()),
|
|
2271
2273
|
minute: Qe(e.getMinutes()),
|
|
2272
2274
|
second: Qe(t ? e.getSeconds() : 0)
|
|
2273
|
-
}),
|
|
2275
|
+
}), hn = (e, t, n) => e ? nn(
|
|
2274
2276
|
e.getFullYear(),
|
|
2275
2277
|
e.getMonth(),
|
|
2276
2278
|
e.getDate(),
|
|
@@ -2289,61 +2291,61 @@ function wu({
|
|
|
2289
2291
|
clearable: c = !1,
|
|
2290
2292
|
presets: l
|
|
2291
2293
|
}) {
|
|
2292
|
-
const d = Be(), u = ce(), p =
|
|
2294
|
+
const d = Be(), u = ce(), p = je(), f = r ?? u.dateRangePlaceholder, h = i ?? (d == null ? void 0 : d.invalid) ?? !1, m = se(() => l ?? rn(u), [l, u]), [y, b] = B(!1), [v, g] = B(() => Me((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [N, L] = B(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [F, D] = B(null), [_, E] = B(null), [w, O] = B(null), [j, U] = B(Rt), [C, G] = B(() => Pt(n)), [S, X] = B(!0), [H, Y] = B("earlier"), [pe, A] = B("earlier"), I = R(null), z = R(null), te = R(null), ke = R(null), Ee = R(null), oe = R(null), K = R(null), _e = R(null), ye = R(null), xe = R(null), $ = De(), q = () => {
|
|
2293
2295
|
const Z = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2294
|
-
g(Me(Z)), L(Z), D(e ? Ne(e.from) : null), E(e ? Ne(e.to) : null),
|
|
2296
|
+
g(Me(Z)), L(Z), D(e ? Ne(e.from) : null), E(e ? Ne(e.to) : null), U(e ? fn(e.from, n) : Rt), G(e ? fn(e.to, n) : Pt(n)), X(e ? ra(e.from, e.to, n) : !0), Y(e ? Ht(e.from) : "earlier"), A(e ? Ht(e.to) : "earlier"), O(null), b(!0);
|
|
2295
2297
|
}, M = (Z = !0) => {
|
|
2296
2298
|
var J;
|
|
2297
|
-
|
|
2299
|
+
b(!1), O(null), Z && ((J = I.current) == null || J.focus());
|
|
2298
2300
|
}, V = (Z) => {
|
|
2299
2301
|
if (!F || _) {
|
|
2300
2302
|
D(Z), E(null), L(Z);
|
|
2301
2303
|
return;
|
|
2302
2304
|
}
|
|
2303
|
-
const [J, me] =
|
|
2304
|
-
D(Ne(J)), E(Ne(me)), L(Z),
|
|
2305
|
+
const [J, me] = Hn(F, Z);
|
|
2306
|
+
D(Ne(J)), E(Ne(me)), L(Z), Y("earlier"), A("earlier"), requestAnimationFrame(() => {
|
|
2305
2307
|
var Te, tt;
|
|
2306
2308
|
S ? (Te = xe.current) == null || Te.focus() : (tt = ke.current) == null || tt.focus();
|
|
2307
2309
|
});
|
|
2308
2310
|
};
|
|
2309
2311
|
ne(() => {
|
|
2310
2312
|
var me;
|
|
2311
|
-
if (!
|
|
2313
|
+
if (!y) return;
|
|
2312
2314
|
const Z = te.current;
|
|
2313
2315
|
if (!Z) return;
|
|
2314
2316
|
const J = document.activeElement;
|
|
2315
2317
|
!J || !Z.contains(J) || J.closest(`.${T.grid}`) && ((me = Z.querySelector('[data-active="true"]')) == null || me.focus());
|
|
2316
|
-
}, [N,
|
|
2317
|
-
const x = S ? Rt :
|
|
2318
|
+
}, [N, y]);
|
|
2319
|
+
const x = S ? Rt : j, W = se(
|
|
2318
2320
|
() => S ? Pt(n) : C,
|
|
2319
2321
|
[S, n, C]
|
|
2320
|
-
), ee = se(() =>
|
|
2322
|
+
), ee = se(() => hn(F, x, n), [F, x, n]), ae = se(() => hn(_, W, n), [_, W, n]), le = se(() => pn(ee, H), [ee, H]), ue = se(() => pn(ae, pe), [ae, pe]), de = () => {
|
|
2321
2323
|
if (!le || !ue) return;
|
|
2322
|
-
const [Z, J] =
|
|
2324
|
+
const [Z, J] = Xi(le, ue);
|
|
2323
2325
|
t({ from: Z, to: J }), M();
|
|
2324
|
-
},
|
|
2326
|
+
}, he = F, be = _, we = F && !_ ? w : null, fe = () => {
|
|
2325
2327
|
if (!le || !ue) return "";
|
|
2326
2328
|
if (S && F && _) {
|
|
2327
2329
|
const Ct = Dt(F, _);
|
|
2328
2330
|
return u.daysAllDay(Ct);
|
|
2329
2331
|
}
|
|
2330
|
-
const Z = Math.abs(ue.getTime() - le.getTime()), J = Math.round(Z / 6e4), me = Math.floor(J / 1440), Te = Math.floor(J % 1440 / 60), tt = J % 60,
|
|
2331
|
-
return me > 0 &&
|
|
2332
|
+
const Z = Math.abs(ue.getTime() - le.getTime()), J = Math.round(Z / 6e4), me = Math.floor(J / 1440), Te = Math.floor(J % 1440 / 60), tt = J % 60, Ye = [];
|
|
2333
|
+
return me > 0 && Ye.push(u.days(me)), Te > 0 && Ye.push(u.hoursShort(Te)), (tt > 0 || Ye.length === 0) && Ye.push(u.minutesShort(tt)), u.duration(Ye);
|
|
2332
2334
|
}, Fe = (() => {
|
|
2333
2335
|
if (!F) return u.chooseStartDate;
|
|
2334
2336
|
if (!_) {
|
|
2335
|
-
if (
|
|
2336
|
-
const [Z, J] = Ne(
|
|
2337
|
+
if (w) {
|
|
2338
|
+
const [Z, J] = Ne(w).getTime() < Ne(F).getTime() ? [w, F] : [F, w], me = Dt(Z, J);
|
|
2337
2339
|
return u.rangePreview(p.dateShort(Z), p.dateShort(J), me);
|
|
2338
2340
|
}
|
|
2339
2341
|
return u.chooseEndDate;
|
|
2340
2342
|
}
|
|
2341
|
-
return
|
|
2343
|
+
return fe();
|
|
2342
2344
|
})(), et = (Z) => {
|
|
2343
2345
|
if (!F || !_ || !S) return !1;
|
|
2344
2346
|
const J = Z.range();
|
|
2345
2347
|
return Re(J.from, F) && Re(J.to, _);
|
|
2346
|
-
},
|
|
2348
|
+
}, bt = (Z, J, me, Te, tt, Ye) => {
|
|
2347
2349
|
const [Ct, an, cn] = tt;
|
|
2348
2350
|
return /* @__PURE__ */ k("div", { className: T.timeHalf, children: [
|
|
2349
2351
|
/* @__PURE__ */ k("span", { className: T.timeHalfHead, children: [
|
|
@@ -2352,7 +2354,7 @@ function wu({
|
|
|
2352
2354
|
] }),
|
|
2353
2355
|
/* @__PURE__ */ k("div", { className: T.timeGroup, children: [
|
|
2354
2356
|
/* @__PURE__ */ s(
|
|
2355
|
-
|
|
2357
|
+
ht,
|
|
2356
2358
|
{
|
|
2357
2359
|
own: Ct,
|
|
2358
2360
|
value: me.hour,
|
|
@@ -2365,28 +2367,28 @@ function wu({
|
|
|
2365
2367
|
),
|
|
2366
2368
|
/* @__PURE__ */ s("span", { className: T.timeSeparator, children: ":" }),
|
|
2367
2369
|
/* @__PURE__ */ s(
|
|
2368
|
-
|
|
2370
|
+
ht,
|
|
2369
2371
|
{
|
|
2370
2372
|
own: an,
|
|
2371
2373
|
value: me.minute,
|
|
2372
2374
|
onValue: (pt) => Te({ ...me, minute: pt }),
|
|
2373
2375
|
max: 59,
|
|
2374
2376
|
label: Z === "from" ? u.startMinute : u.endMinute,
|
|
2375
|
-
next: n ? cn :
|
|
2377
|
+
next: n ? cn : Ye,
|
|
2376
2378
|
disabled: S
|
|
2377
2379
|
}
|
|
2378
2380
|
),
|
|
2379
2381
|
n && /* @__PURE__ */ k($e, { children: [
|
|
2380
2382
|
/* @__PURE__ */ s("span", { className: T.timeSeparator, children: ":" }),
|
|
2381
2383
|
/* @__PURE__ */ s(
|
|
2382
|
-
|
|
2384
|
+
ht,
|
|
2383
2385
|
{
|
|
2384
2386
|
own: cn,
|
|
2385
2387
|
value: me.second,
|
|
2386
2388
|
onValue: (pt) => Te({ ...me, second: pt }),
|
|
2387
2389
|
max: 59,
|
|
2388
2390
|
label: Z === "from" ? u.startSecond : u.endSecond,
|
|
2389
|
-
next:
|
|
2391
|
+
next: Ye,
|
|
2390
2392
|
disabled: S
|
|
2391
2393
|
}
|
|
2392
2394
|
)
|
|
@@ -2406,9 +2408,9 @@ function wu({
|
|
|
2406
2408
|
{
|
|
2407
2409
|
wrapRef: z,
|
|
2408
2410
|
triggerRef: I,
|
|
2409
|
-
panel: { id: $, open:
|
|
2411
|
+
panel: { id: $, open: y, onToggle: () => y ? b(!1) : q() },
|
|
2410
2412
|
field: d,
|
|
2411
|
-
state: { disabled: o, invalid:
|
|
2413
|
+
state: { disabled: o, invalid: h, clearable: c, size: a },
|
|
2412
2414
|
hasValue: !!e,
|
|
2413
2415
|
display: e && (Re(e.from, e.to) ? /* @__PURE__ */ k($e, { children: [
|
|
2414
2416
|
p.date(e.from),
|
|
@@ -2426,9 +2428,9 @@ function wu({
|
|
|
2426
2428
|
p.time(e.to, n)
|
|
2427
2429
|
] })),
|
|
2428
2430
|
icon: /* @__PURE__ */ s(Cn, { className: T.icon }),
|
|
2429
|
-
placeholder:
|
|
2431
|
+
placeholder: f,
|
|
2430
2432
|
onClear: () => {
|
|
2431
|
-
t(null),
|
|
2433
|
+
t(null), y && M(!1);
|
|
2432
2434
|
},
|
|
2433
2435
|
ariaLabel: u.dateTimeRangeClear
|
|
2434
2436
|
}
|
|
@@ -2436,9 +2438,9 @@ function wu({
|
|
|
2436
2438
|
/* @__PURE__ */ s(
|
|
2437
2439
|
Je,
|
|
2438
2440
|
{
|
|
2439
|
-
open:
|
|
2441
|
+
open: y,
|
|
2440
2442
|
onOpenChange: (Z) => {
|
|
2441
|
-
Z ||
|
|
2443
|
+
Z || b(!1);
|
|
2442
2444
|
},
|
|
2443
2445
|
anchorRef: I,
|
|
2444
2446
|
insideRefs: [z],
|
|
@@ -2468,10 +2470,10 @@ function wu({
|
|
|
2468
2470
|
active: N,
|
|
2469
2471
|
onActive: L,
|
|
2470
2472
|
onPick: V,
|
|
2471
|
-
bandFrom:
|
|
2472
|
-
bandTo:
|
|
2473
|
-
previewTo:
|
|
2474
|
-
onHoverDay:
|
|
2473
|
+
bandFrom: he,
|
|
2474
|
+
bandTo: be,
|
|
2475
|
+
previewTo: we,
|
|
2476
|
+
onHoverDay: O
|
|
2475
2477
|
}
|
|
2476
2478
|
),
|
|
2477
2479
|
/* @__PURE__ */ k(
|
|
@@ -2482,12 +2484,12 @@ function wu({
|
|
|
2482
2484
|
Z.key === "Enter" && (Z.preventDefault(), de());
|
|
2483
2485
|
},
|
|
2484
2486
|
children: [
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
+
bt("from", F, j, U, [ke, Ee, oe], K),
|
|
2488
|
+
bt("to", _, C, G, [K, _e, ye])
|
|
2487
2489
|
]
|
|
2488
2490
|
}
|
|
2489
2491
|
),
|
|
2490
|
-
sn(u.sideFrom, ee,
|
|
2492
|
+
sn(u.sideFrom, ee, H, Y),
|
|
2491
2493
|
sn(u.sideTo, ae, pe, A)
|
|
2492
2494
|
] })
|
|
2493
2495
|
] }),
|
|
@@ -2530,14 +2532,14 @@ function wu({
|
|
|
2530
2532
|
)
|
|
2531
2533
|
] });
|
|
2532
2534
|
}
|
|
2533
|
-
const
|
|
2534
|
-
divider:
|
|
2535
|
-
strong:
|
|
2536
|
-
horizontal:
|
|
2537
|
-
vertical:
|
|
2538
|
-
withLabel:
|
|
2539
|
-
label:
|
|
2540
|
-
},
|
|
2535
|
+
const oa = "_divider_39bkm_7", sa = "_strong_39bkm_12", ia = "_horizontal_39bkm_16", aa = "_vertical_39bkm_24", ca = "_withLabel_39bkm_35", la = "_label_39bkm_53 _text_1hv7a_23", ut = {
|
|
2536
|
+
divider: oa,
|
|
2537
|
+
strong: sa,
|
|
2538
|
+
horizontal: ia,
|
|
2539
|
+
vertical: aa,
|
|
2540
|
+
withLabel: ca,
|
|
2541
|
+
label: la
|
|
2542
|
+
}, ku = ie(function({ orientation: t = "horizontal", strong: n = !1, label: r, className: o, ...i }, a) {
|
|
2541
2543
|
const c = P(
|
|
2542
2544
|
ut.divider,
|
|
2543
2545
|
t === "vertical" ? ut.vertical : ut.horizontal,
|
|
@@ -2560,14 +2562,14 @@ const na = "_divider_39bkm_7", ra = "_strong_39bkm_12", oa = "_horizontal_39bkm_
|
|
|
2560
2562
|
children: /* @__PURE__ */ s("span", { className: ut.label, children: r })
|
|
2561
2563
|
}
|
|
2562
2564
|
);
|
|
2563
|
-
}),
|
|
2564
|
-
empty:
|
|
2565
|
-
icon:
|
|
2566
|
-
title:
|
|
2567
|
-
description:
|
|
2568
|
-
action:
|
|
2565
|
+
}), da = "_empty_1dx25_4 _text_1hv7a_23", ua = "_icon_1dx25_14", fa = "_title_1dx25_26", ha = "_description_1dx25_33", pa = "_action_1dx25_41", _t = {
|
|
2566
|
+
empty: da,
|
|
2567
|
+
icon: ua,
|
|
2568
|
+
title: fa,
|
|
2569
|
+
description: ha,
|
|
2570
|
+
action: pa
|
|
2569
2571
|
};
|
|
2570
|
-
function
|
|
2572
|
+
function xu({ title: e, description: t, action: n, icon: r, className: o, ...i }) {
|
|
2571
2573
|
return /* @__PURE__ */ k("div", { className: P(_t.empty, o), ...i, children: [
|
|
2572
2574
|
r && /* @__PURE__ */ s("div", { className: _t.icon, children: r }),
|
|
2573
2575
|
/* @__PURE__ */ s("p", { className: _t.title, children: e }),
|
|
@@ -2575,19 +2577,19 @@ function bu({ title: e, description: t, action: n, icon: r, className: o, ...i }
|
|
|
2575
2577
|
n && /* @__PURE__ */ s("div", { className: _t.action, children: n })
|
|
2576
2578
|
] });
|
|
2577
2579
|
}
|
|
2578
|
-
const
|
|
2579
|
-
input:
|
|
2580
|
-
sm:
|
|
2581
|
-
numeric:
|
|
2582
|
-
invalid:
|
|
2583
|
-
wrapper:
|
|
2584
|
-
wrapperSm:
|
|
2580
|
+
const ma = "_input_grwj8_4 _field_1hv7a_34", _a = "_sm_grwj8_41", ga = "_numeric_grwj8_47", va = "_invalid_grwj8_55", ya = "_wrapper_grwj8_69 _text_1hv7a_23", ba = "_wrapperSm_grwj8_92", wa = "_wrapperInvalid_grwj8_98", ka = "_wrapperDisabled_grwj8_84", xa = "_inner_grwj8_112 _field_1hv7a_34", Na = "_clear_grwj8_139", qe = {
|
|
2581
|
+
input: ma,
|
|
2582
|
+
sm: _a,
|
|
2583
|
+
numeric: ga,
|
|
2584
|
+
invalid: va,
|
|
2585
|
+
wrapper: ya,
|
|
2586
|
+
wrapperSm: ba,
|
|
2585
2587
|
wrapperInvalid: wa,
|
|
2586
|
-
wrapperDisabled:
|
|
2587
|
-
inner:
|
|
2588
|
-
clear:
|
|
2588
|
+
wrapperDisabled: ka,
|
|
2589
|
+
inner: xa,
|
|
2590
|
+
clear: Na
|
|
2589
2591
|
}, Vn = ie(function({ size: t = "md", invalid: n, numeric: r = !1, clearable: o = !1, onClear: i, className: a, id: c, disabled: l, ...d }, u) {
|
|
2590
|
-
const p = Be(),
|
|
2592
|
+
const p = Be(), f = ce(), h = n ?? (p == null ? void 0 : p.invalid) ?? !1, m = (b) => /* @__PURE__ */ s(
|
|
2591
2593
|
"input",
|
|
2592
2594
|
{
|
|
2593
2595
|
ref: u,
|
|
@@ -2595,61 +2597,61 @@ const fa = "_input_6m79r_4 _field_1hv7a_34", pa = "_sm_6m79r_41", ma = "_numeric
|
|
|
2595
2597
|
disabled: l,
|
|
2596
2598
|
"aria-describedby": d["aria-describedby"] ?? (p == null ? void 0 : p.describedBy),
|
|
2597
2599
|
"aria-required": (p == null ? void 0 : p.required) || void 0,
|
|
2598
|
-
"aria-invalid":
|
|
2599
|
-
className:
|
|
2600
|
+
"aria-invalid": h || void 0,
|
|
2601
|
+
className: b,
|
|
2600
2602
|
...d
|
|
2601
2603
|
}
|
|
2602
2604
|
);
|
|
2603
2605
|
if (!o)
|
|
2604
2606
|
return m(
|
|
2605
2607
|
P(
|
|
2606
|
-
|
|
2607
|
-
t === "sm" &&
|
|
2608
|
-
r &&
|
|
2609
|
-
|
|
2608
|
+
qe.input,
|
|
2609
|
+
t === "sm" && qe.sm,
|
|
2610
|
+
r && qe.numeric,
|
|
2611
|
+
h && qe.invalid,
|
|
2610
2612
|
a
|
|
2611
2613
|
)
|
|
2612
2614
|
);
|
|
2613
|
-
const
|
|
2615
|
+
const y = String(d.value ?? "").length > 0;
|
|
2614
2616
|
return /* @__PURE__ */ k(
|
|
2615
2617
|
"span",
|
|
2616
2618
|
{
|
|
2617
2619
|
className: P(
|
|
2618
|
-
|
|
2619
|
-
t === "sm" &&
|
|
2620
|
-
|
|
2621
|
-
l &&
|
|
2620
|
+
qe.wrapper,
|
|
2621
|
+
t === "sm" && qe.wrapperSm,
|
|
2622
|
+
h && qe.wrapperInvalid,
|
|
2623
|
+
l && qe.wrapperDisabled,
|
|
2622
2624
|
a
|
|
2623
2625
|
),
|
|
2624
2626
|
children: [
|
|
2625
|
-
m(P(
|
|
2626
|
-
|
|
2627
|
+
m(P(qe.inner, r && qe.numeric)),
|
|
2628
|
+
y && !l && /* @__PURE__ */ s(
|
|
2627
2629
|
"button",
|
|
2628
2630
|
{
|
|
2629
2631
|
type: "button",
|
|
2630
2632
|
tabIndex: -1,
|
|
2631
|
-
"aria-label":
|
|
2632
|
-
className:
|
|
2633
|
-
onMouseDown: (
|
|
2633
|
+
"aria-label": f.clearInput,
|
|
2634
|
+
className: qe.clear,
|
|
2635
|
+
onMouseDown: (b) => b.preventDefault(),
|
|
2634
2636
|
onClick: () => i == null ? void 0 : i(),
|
|
2635
|
-
children: /* @__PURE__ */ s(
|
|
2637
|
+
children: /* @__PURE__ */ s(Ue, {})
|
|
2636
2638
|
}
|
|
2637
2639
|
)
|
|
2638
2640
|
]
|
|
2639
2641
|
}
|
|
2640
2642
|
);
|
|
2641
|
-
}),
|
|
2642
|
-
stack:
|
|
2643
|
-
grid:
|
|
2644
|
-
},
|
|
2643
|
+
}), $a = "_stack_9r3lk_4", Da = "_grid_9r3lk_9", jn = {
|
|
2644
|
+
stack: $a,
|
|
2645
|
+
grid: Da
|
|
2646
|
+
}, Un = (e) => `var(--u-space-${e})`, Nu = ie(function({ direction: t = "column", gap: n = 3, align: r, justify: o, wrap: i = !1, className: a, style: c, children: l, ...d }, u) {
|
|
2645
2647
|
return /* @__PURE__ */ s(
|
|
2646
2648
|
"div",
|
|
2647
2649
|
{
|
|
2648
2650
|
ref: u,
|
|
2649
|
-
className: P(
|
|
2651
|
+
className: P(jn.stack, a),
|
|
2650
2652
|
style: {
|
|
2651
2653
|
flexDirection: t,
|
|
2652
|
-
gap:
|
|
2654
|
+
gap: Un(n),
|
|
2653
2655
|
alignItems: r,
|
|
2654
2656
|
justifyContent: o,
|
|
2655
2657
|
flexWrap: i ? "wrap" : void 0,
|
|
@@ -2659,15 +2661,15 @@ const fa = "_input_6m79r_4 _field_1hv7a_34", pa = "_sm_6m79r_41", ma = "_numeric
|
|
|
2659
2661
|
children: l
|
|
2660
2662
|
}
|
|
2661
2663
|
);
|
|
2662
|
-
}),
|
|
2664
|
+
}), $u = ie(function({ columns: t = 2, minItemWidth: n, gap: r = 4, className: o, style: i, children: a, ...c }, l) {
|
|
2663
2665
|
return /* @__PURE__ */ s(
|
|
2664
2666
|
"div",
|
|
2665
2667
|
{
|
|
2666
2668
|
ref: l,
|
|
2667
|
-
className: P(
|
|
2669
|
+
className: P(jn.grid, o),
|
|
2668
2670
|
style: {
|
|
2669
2671
|
gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : `repeat(${t}, minmax(0, 1fr))`,
|
|
2670
|
-
gap:
|
|
2672
|
+
gap: Un(r),
|
|
2671
2673
|
...i
|
|
2672
2674
|
},
|
|
2673
2675
|
...c,
|
|
@@ -2675,7 +2677,7 @@ const fa = "_input_6m79r_4 _field_1hv7a_34", pa = "_sm_6m79r_41", ma = "_numeric
|
|
|
2675
2677
|
}
|
|
2676
2678
|
);
|
|
2677
2679
|
});
|
|
2678
|
-
function
|
|
2680
|
+
function Ta(e, t = $n) {
|
|
2679
2681
|
const n = [...e].filter((o) => !/\s/.test(o) && (t.group === "" || o !== t.group)).map((o) => o === t.decimal ? "." : o).join("");
|
|
2680
2682
|
if (n === "" || n === "-") return null;
|
|
2681
2683
|
const r = Number(n);
|
|
@@ -2690,23 +2692,23 @@ function mn(e, t = {}) {
|
|
|
2690
2692
|
}
|
|
2691
2693
|
return i;
|
|
2692
2694
|
}
|
|
2693
|
-
const
|
|
2694
|
-
function
|
|
2695
|
+
const Sa = (e) => e === void 0 || e < 0, Yn = (e) => e !== 0;
|
|
2696
|
+
function Ma(e, t = {}, n = $n) {
|
|
2695
2697
|
const r = /* @__PURE__ */ new Set([..."0123456789", n.group]);
|
|
2696
|
-
return
|
|
2698
|
+
return Yn(t.decimals) && r.add(n.decimal), Sa(t.min) && r.add("-"), r.delete(""), [...e].filter((o) => r.has(o)).join("");
|
|
2697
2699
|
}
|
|
2698
|
-
function
|
|
2700
|
+
function Ca(e, t, n, r = 1) {
|
|
2699
2701
|
return e + t * n * r;
|
|
2700
2702
|
}
|
|
2701
|
-
const
|
|
2702
|
-
wrapper:
|
|
2703
|
-
sm:
|
|
2704
|
-
invalid:
|
|
2705
|
-
disabled:
|
|
2706
|
-
input:
|
|
2707
|
-
adornment:
|
|
2708
|
-
stepper:
|
|
2709
|
-
},
|
|
2703
|
+
const Aa = "_wrapper_7i1oo_4 _text_1hv7a_23", La = "_sm_7i1oo_26", Ra = "_invalid_7i1oo_31", Pa = "_disabled_7i1oo_18", Ea = "_input_7i1oo_44 _field_1hv7a_34", Fa = "_adornment_7i1oo_72", Ia = "_stepper_7i1oo_82", Ke = {
|
|
2704
|
+
wrapper: Aa,
|
|
2705
|
+
sm: La,
|
|
2706
|
+
invalid: Ra,
|
|
2707
|
+
disabled: Pa,
|
|
2708
|
+
input: Ea,
|
|
2709
|
+
adornment: Fa,
|
|
2710
|
+
stepper: Ia
|
|
2711
|
+
}, Du = ie(function({
|
|
2710
2712
|
value: t,
|
|
2711
2713
|
onChange: n,
|
|
2712
2714
|
min: r,
|
|
@@ -2718,54 +2720,54 @@ const Ma = "_wrapper_lgrws_4 _text_1hv7a_23", Ca = "_sm_lgrws_26", Aa = "_invali
|
|
|
2718
2720
|
size: d = "md",
|
|
2719
2721
|
invalid: u,
|
|
2720
2722
|
disabled: p,
|
|
2721
|
-
className:
|
|
2722
|
-
id:
|
|
2723
|
+
className: f,
|
|
2724
|
+
id: h,
|
|
2723
2725
|
onFocus: m,
|
|
2724
|
-
onBlur:
|
|
2725
|
-
onKeyDown:
|
|
2726
|
+
onBlur: y,
|
|
2727
|
+
onKeyDown: b,
|
|
2726
2728
|
...v
|
|
2727
2729
|
}, g) {
|
|
2728
|
-
const N = Be(), L = ce(), F =
|
|
2730
|
+
const N = Be(), L = ce(), F = je(), D = (K) => F.number(K, a), _ = se(() => ir(F), [F]), E = (K) => Ta(K, _), w = u ?? (N == null ? void 0 : N.invalid) ?? !1, O = se(() => ({ min: r, max: o, decimals: a }), [r, o, a]), [j, U] = B(() => t === null ? "" : D(t)), [C, G] = B(!1);
|
|
2729
2731
|
ne(() => {
|
|
2730
|
-
C ||
|
|
2732
|
+
C || U(t === null ? "" : D(t));
|
|
2731
2733
|
}, [t, C, a, F]);
|
|
2732
|
-
const S = (
|
|
2733
|
-
if (
|
|
2734
|
-
|
|
2734
|
+
const S = (K) => {
|
|
2735
|
+
if (K === null) {
|
|
2736
|
+
U(""), n(null);
|
|
2735
2737
|
return;
|
|
2736
2738
|
}
|
|
2737
|
-
const _e = mn(
|
|
2738
|
-
|
|
2739
|
-
}, X = R(
|
|
2740
|
-
X.current =
|
|
2741
|
-
const
|
|
2742
|
-
|
|
2743
|
-
const
|
|
2744
|
-
const
|
|
2745
|
-
S(
|
|
2746
|
-
}, pe = (
|
|
2747
|
-
|
|
2739
|
+
const _e = mn(K, O);
|
|
2740
|
+
U(D(_e)), n(_e);
|
|
2741
|
+
}, X = R(j);
|
|
2742
|
+
X.current = j;
|
|
2743
|
+
const H = R(t);
|
|
2744
|
+
H.current = t;
|
|
2745
|
+
const Y = (K, _e = 1) => {
|
|
2746
|
+
const ye = E(X.current) ?? H.current ?? 0;
|
|
2747
|
+
S(Ca(ye, K, i, _e));
|
|
2748
|
+
}, pe = (K) => {
|
|
2749
|
+
b == null || b(K), !K.defaultPrevented && (K.key !== "ArrowUp" && K.key !== "ArrowDown" || (K.preventDefault(), Y(K.key === "ArrowUp" ? 1 : -1, K.shiftKey ? 10 : 1)));
|
|
2748
2750
|
}, A = R(null), I = () => {
|
|
2749
2751
|
A.current !== null && (clearTimeout(A.current), A.current = null);
|
|
2750
2752
|
};
|
|
2751
2753
|
ne(() => I, []);
|
|
2752
|
-
const z = (
|
|
2753
|
-
K
|
|
2754
|
-
const
|
|
2754
|
+
const z = (K, _e) => {
|
|
2755
|
+
Y(K, _e ? 10 : 1);
|
|
2756
|
+
const ye = (xe) => {
|
|
2755
2757
|
A.current = setTimeout(() => {
|
|
2756
|
-
K
|
|
2758
|
+
Y(K, _e ? 10 : 1), ye(Math.max(40, xe * 0.9));
|
|
2757
2759
|
}, xe);
|
|
2758
2760
|
};
|
|
2759
|
-
|
|
2760
|
-
}, te = E(
|
|
2761
|
+
ye(400);
|
|
2762
|
+
}, te = E(j) ?? t, ke = !p && (o === void 0 || te === null || te < o), Ee = !p && (r === void 0 || te === null || te > r), oe = (K, _e, ye, xe) => /* @__PURE__ */ s(
|
|
2761
2763
|
"button",
|
|
2762
2764
|
{
|
|
2763
2765
|
type: "button",
|
|
2764
2766
|
tabIndex: -1,
|
|
2765
2767
|
disabled: p || !_e,
|
|
2766
|
-
"aria-label":
|
|
2768
|
+
"aria-label": ye,
|
|
2767
2769
|
onPointerDown: ($) => {
|
|
2768
|
-
$.preventDefault(), $.button === 0 && z(
|
|
2770
|
+
$.preventDefault(), $.button === 0 && z(K, $.shiftKey);
|
|
2769
2771
|
},
|
|
2770
2772
|
onPointerUp: I,
|
|
2771
2773
|
onPointerLeave: I,
|
|
@@ -2778,72 +2780,72 @@ const Ma = "_wrapper_lgrws_4 _text_1hv7a_23", Ca = "_sm_lgrws_26", Aa = "_invali
|
|
|
2778
2780
|
"span",
|
|
2779
2781
|
{
|
|
2780
2782
|
className: P(
|
|
2781
|
-
|
|
2782
|
-
d === "sm" &&
|
|
2783
|
-
|
|
2784
|
-
p &&
|
|
2785
|
-
|
|
2783
|
+
Ke.wrapper,
|
|
2784
|
+
d === "sm" && Ke.sm,
|
|
2785
|
+
w && Ke.invalid,
|
|
2786
|
+
p && Ke.disabled,
|
|
2787
|
+
f
|
|
2786
2788
|
),
|
|
2787
2789
|
children: [
|
|
2788
|
-
c && /* @__PURE__ */ s("span", { className:
|
|
2790
|
+
c && /* @__PURE__ */ s("span", { className: Ke.adornment, children: c }),
|
|
2789
2791
|
/* @__PURE__ */ s(
|
|
2790
2792
|
"input",
|
|
2791
2793
|
{
|
|
2792
2794
|
ref: g,
|
|
2793
2795
|
type: "text",
|
|
2794
|
-
inputMode:
|
|
2795
|
-
id:
|
|
2796
|
+
inputMode: Yn(a) ? "decimal" : "numeric",
|
|
2797
|
+
id: h ?? (N == null ? void 0 : N.id),
|
|
2796
2798
|
disabled: p,
|
|
2797
2799
|
"aria-describedby": v["aria-describedby"] ?? (N == null ? void 0 : N.describedBy),
|
|
2798
2800
|
"aria-required": (N == null ? void 0 : N.required) || void 0,
|
|
2799
|
-
"aria-invalid":
|
|
2800
|
-
className:
|
|
2801
|
-
value:
|
|
2802
|
-
onChange: (
|
|
2803
|
-
const _e =
|
|
2804
|
-
|
|
2805
|
-
const
|
|
2806
|
-
n(
|
|
2801
|
+
"aria-invalid": w || void 0,
|
|
2802
|
+
className: Ke.input,
|
|
2803
|
+
value: j,
|
|
2804
|
+
onChange: (K) => {
|
|
2805
|
+
const _e = Ma(K.target.value, O, _);
|
|
2806
|
+
U(_e);
|
|
2807
|
+
const ye = E(_e);
|
|
2808
|
+
n(ye === null ? null : mn(ye, O));
|
|
2807
2809
|
},
|
|
2808
2810
|
...v,
|
|
2809
2811
|
onKeyDown: pe,
|
|
2810
|
-
onFocus: (
|
|
2811
|
-
m == null || m(
|
|
2812
|
+
onFocus: (K) => {
|
|
2813
|
+
m == null || m(K), G(!0);
|
|
2812
2814
|
},
|
|
2813
|
-
onBlur: (
|
|
2814
|
-
|
|
2815
|
+
onBlur: (K) => {
|
|
2816
|
+
y == null || y(K), G(!1), S(E(K.currentTarget.value));
|
|
2815
2817
|
}
|
|
2816
2818
|
}
|
|
2817
2819
|
),
|
|
2818
|
-
l && /* @__PURE__ */ s("span", { className:
|
|
2819
|
-
/* @__PURE__ */ k("span", { className:
|
|
2820
|
-
oe(-1, Ee, L.decreaseValue, /* @__PURE__ */ s(
|
|
2821
|
-
oe(1, ke, L.increaseValue, /* @__PURE__ */ s(
|
|
2820
|
+
l && /* @__PURE__ */ s("span", { className: Ke.adornment, children: l }),
|
|
2821
|
+
/* @__PURE__ */ k("span", { className: Ke.stepper, children: [
|
|
2822
|
+
oe(-1, Ee, L.decreaseValue, /* @__PURE__ */ s(wr, {})),
|
|
2823
|
+
oe(1, ke, L.increaseValue, /* @__PURE__ */ s(br, {}))
|
|
2822
2824
|
] })
|
|
2823
2825
|
]
|
|
2824
2826
|
}
|
|
2825
2827
|
);
|
|
2826
|
-
}),
|
|
2827
|
-
dialog:
|
|
2828
|
-
spacerTop:
|
|
2829
|
-
spacerBottom:
|
|
2830
|
-
sheet:
|
|
2831
|
-
sm:
|
|
2832
|
-
md:
|
|
2833
|
-
lg:
|
|
2834
|
-
header:
|
|
2835
|
-
headerText:
|
|
2836
|
-
title:
|
|
2837
|
-
description:
|
|
2838
|
-
close:
|
|
2839
|
-
footer:
|
|
2840
|
-
body:
|
|
2841
|
-
modalIn:
|
|
2842
|
-
modalOut:
|
|
2843
|
-
backdropIn:
|
|
2844
|
-
backdropOut:
|
|
2845
|
-
},
|
|
2846
|
-
function
|
|
2828
|
+
}), Ba = "_dialog_1hit9_8 _text_1hv7a_23", qa = "_spacerTop_1hit9_30", Oa = "_spacerBottom_1hit9_35", Ha = "_sheet_1hit9_2", za = "_sm_1hit9_52", Wa = "_md_1hit9_53", Ga = "_lg_1hit9_54", Va = "_header_1hit9_104", ja = "_headerText_1hit9_112", Ua = "_title_1hit9_119", Ya = "_description_1hit9_127", Ka = "_close_1hit9_134 _ring_1hv7a_65", Xa = "_footer_1hit9_164", Qa = "_body_1hit9_168 _scroll_1hv7a_40", Za = "_modalIn_1hit9_1", Ja = "_modalOut_1hit9_1", ec = "_backdropIn_1hit9_1", tc = "_backdropOut_1hit9_1", Ie = {
|
|
2829
|
+
dialog: Ba,
|
|
2830
|
+
spacerTop: qa,
|
|
2831
|
+
spacerBottom: Oa,
|
|
2832
|
+
sheet: Ha,
|
|
2833
|
+
sm: za,
|
|
2834
|
+
md: Wa,
|
|
2835
|
+
lg: Ga,
|
|
2836
|
+
header: Va,
|
|
2837
|
+
headerText: ja,
|
|
2838
|
+
title: Ua,
|
|
2839
|
+
description: Ya,
|
|
2840
|
+
close: Ka,
|
|
2841
|
+
footer: Xa,
|
|
2842
|
+
body: Qa,
|
|
2843
|
+
modalIn: Za,
|
|
2844
|
+
modalOut: Ja,
|
|
2845
|
+
backdropIn: ec,
|
|
2846
|
+
backdropOut: tc
|
|
2847
|
+
}, Kn = Ve(null);
|
|
2848
|
+
function nc({
|
|
2847
2849
|
open: e,
|
|
2848
2850
|
onClose: t,
|
|
2849
2851
|
size: n = "md",
|
|
@@ -2852,7 +2854,7 @@ function ec({
|
|
|
2852
2854
|
children: i,
|
|
2853
2855
|
...a
|
|
2854
2856
|
}) {
|
|
2855
|
-
const c = R(null), l = De(), { dialogRef: d, closing: u, beimSchliessen: p, beimAbbrechen:
|
|
2857
|
+
const c = R(null), l = De(), { dialogRef: d, closing: u, beimSchliessen: p, beimAbbrechen: f } = In(e, "--u-duration-exit", t), h = (m) => {
|
|
2856
2858
|
r && c.current && !c.current.contains(m.target) && t();
|
|
2857
2859
|
};
|
|
2858
2860
|
return /* @__PURE__ */ k(
|
|
@@ -2862,20 +2864,20 @@ function ec({
|
|
|
2862
2864
|
"data-closing": u || void 0,
|
|
2863
2865
|
className: P(Ie.dialog, o),
|
|
2864
2866
|
onClose: p,
|
|
2865
|
-
onCancel:
|
|
2866
|
-
onMouseDown:
|
|
2867
|
+
onCancel: f,
|
|
2868
|
+
onMouseDown: h,
|
|
2867
2869
|
"aria-labelledby": l,
|
|
2868
2870
|
...a,
|
|
2869
2871
|
children: [
|
|
2870
2872
|
/* @__PURE__ */ s("div", { className: Ie.spacerTop, "aria-hidden": "true" }),
|
|
2871
|
-
/* @__PURE__ */ s("div", { ref: c, className: P(Ie.sheet, Ie[n]), children: /* @__PURE__ */ s(
|
|
2873
|
+
/* @__PURE__ */ s("div", { ref: c, className: P(Ie.sheet, Ie[n]), children: /* @__PURE__ */ s(Kn.Provider, { value: { onClose: t, titleId: l }, children: i }) }),
|
|
2872
2874
|
/* @__PURE__ */ s("div", { className: Ie.spacerBottom, "aria-hidden": "true" })
|
|
2873
2875
|
]
|
|
2874
2876
|
}
|
|
2875
2877
|
);
|
|
2876
2878
|
}
|
|
2877
|
-
function
|
|
2878
|
-
const i =
|
|
2879
|
+
function rc({ title: e, description: t, hideClose: n = !1, className: r, ...o }) {
|
|
2880
|
+
const i = He(Kn), a = ce();
|
|
2879
2881
|
return /* @__PURE__ */ k("div", { className: P(Ie.header, r), ...o, children: [
|
|
2880
2882
|
/* @__PURE__ */ k("div", { className: Ie.headerText, children: [
|
|
2881
2883
|
/* @__PURE__ */ s("h2", { id: i == null ? void 0 : i.titleId, className: Ie.title, children: e }),
|
|
@@ -2888,18 +2890,18 @@ function tc({ title: e, description: t, hideClose: n = !1, className: r, ...o })
|
|
|
2888
2890
|
className: Ie.close,
|
|
2889
2891
|
"aria-label": a.close,
|
|
2890
2892
|
onClick: () => i == null ? void 0 : i.onClose(),
|
|
2891
|
-
children: /* @__PURE__ */ s(
|
|
2893
|
+
children: /* @__PURE__ */ s(Ue, { size: 12 })
|
|
2892
2894
|
}
|
|
2893
2895
|
)
|
|
2894
2896
|
] });
|
|
2895
2897
|
}
|
|
2896
|
-
function
|
|
2898
|
+
function Tu({ className: e, children: t, ...n }) {
|
|
2897
2899
|
return /* @__PURE__ */ s("div", { className: P(Ie.body, e), ...n, children: t });
|
|
2898
2900
|
}
|
|
2899
|
-
function
|
|
2901
|
+
function oc({ className: e, children: t, ...n }) {
|
|
2900
2902
|
return /* @__PURE__ */ s("div", { className: P(Ie.footer, e), ...n, children: t });
|
|
2901
2903
|
}
|
|
2902
|
-
function
|
|
2904
|
+
function Su({
|
|
2903
2905
|
open: e,
|
|
2904
2906
|
onClose: t,
|
|
2905
2907
|
onConfirm: n,
|
|
@@ -2911,40 +2913,40 @@ function Du({
|
|
|
2911
2913
|
loading: l = !1
|
|
2912
2914
|
}) {
|
|
2913
2915
|
const d = ce();
|
|
2914
|
-
return /* @__PURE__ */ k(
|
|
2915
|
-
/* @__PURE__ */ s(
|
|
2916
|
-
/* @__PURE__ */ k(
|
|
2916
|
+
return /* @__PURE__ */ k(nc, { open: e, onClose: t, size: "sm", closeOnBackdrop: !l, children: [
|
|
2917
|
+
/* @__PURE__ */ s(rc, { title: r, description: o, hideClose: !0 }),
|
|
2918
|
+
/* @__PURE__ */ k(oc, { children: [
|
|
2917
2919
|
/* @__PURE__ */ s(ve, { onClick: t, disabled: l, children: a ?? d.cancel }),
|
|
2918
2920
|
/* @__PURE__ */ s(ve, { variant: c, loading: l, onClick: n, children: i ?? d.confirm })
|
|
2919
2921
|
] })
|
|
2920
2922
|
] });
|
|
2921
2923
|
}
|
|
2922
|
-
const
|
|
2923
|
-
field:
|
|
2924
|
-
invalid:
|
|
2925
|
-
fieldDisabled:
|
|
2926
|
-
placeholder:
|
|
2927
|
-
summary:
|
|
2928
|
-
measure:
|
|
2929
|
-
chipLabel:
|
|
2930
|
-
chip:
|
|
2931
|
-
chipX:
|
|
2932
|
-
counter:
|
|
2933
|
-
main:
|
|
2934
|
-
mainEmpty:
|
|
2935
|
-
chevron:
|
|
2936
|
-
panel:
|
|
2937
|
-
scopes:
|
|
2938
|
-
scope:
|
|
2924
|
+
const sc = "_field_docqp_8 _text_1hv7a_23", ic = "_invalid_docqp_33", ac = "_fieldDisabled_docqp_25", cc = "_placeholder_docqp_47", lc = "_summary_docqp_56", dc = "_measure_docqp_69", uc = "_chipLabel_docqp_80", fc = "_chip_docqp_80 _ring_1hv7a_65", hc = "_chipX_docqp_133", pc = "_counter_docqp_153 _ring_1hv7a_65", mc = "_main_docqp_183", _c = "_mainEmpty_docqp_208", gc = "_chevron_docqp_214", vc = "_panel_docqp_228", yc = "_scopes_docqp_237", bc = "_scope_docqp_237 _ring_1hv7a_65", wc = "_scopeActive_docqp_270", kc = "_qol_docqp_276", xc = "_qolButtons_docqp_286", Nc = "_count_docqp_153", $c = "_list_docqp_301 _scroll_1hv7a_40", Dc = "_option_docqp_313", Tc = "_empty_docqp_328", re = {
|
|
2925
|
+
field: sc,
|
|
2926
|
+
invalid: ic,
|
|
2927
|
+
fieldDisabled: ac,
|
|
2928
|
+
placeholder: cc,
|
|
2929
|
+
summary: lc,
|
|
2930
|
+
measure: dc,
|
|
2931
|
+
chipLabel: uc,
|
|
2932
|
+
chip: fc,
|
|
2933
|
+
chipX: hc,
|
|
2934
|
+
counter: pc,
|
|
2935
|
+
main: mc,
|
|
2936
|
+
mainEmpty: _c,
|
|
2937
|
+
chevron: gc,
|
|
2938
|
+
panel: vc,
|
|
2939
|
+
scopes: yc,
|
|
2940
|
+
scope: bc,
|
|
2939
2941
|
scopeActive: wc,
|
|
2940
|
-
qol:
|
|
2941
|
-
qolButtons:
|
|
2942
|
-
count:
|
|
2943
|
-
list:
|
|
2944
|
-
option:
|
|
2945
|
-
empty:
|
|
2942
|
+
qol: kc,
|
|
2943
|
+
qolButtons: xc,
|
|
2944
|
+
count: Nc,
|
|
2945
|
+
list: $c,
|
|
2946
|
+
option: Dc,
|
|
2947
|
+
empty: Tc
|
|
2946
2948
|
};
|
|
2947
|
-
function
|
|
2949
|
+
function Mu({
|
|
2948
2950
|
options: e,
|
|
2949
2951
|
value: t,
|
|
2950
2952
|
onChange: n,
|
|
@@ -2954,9 +2956,9 @@ function Tu({
|
|
|
2954
2956
|
disabled: a = !1,
|
|
2955
2957
|
invalid: c
|
|
2956
2958
|
}) {
|
|
2957
|
-
const l = Be(), d = ce(), u = r ?? d.multiSelectPlaceholder, p = o ?? d.multiSelectSearchPlaceholder,
|
|
2958
|
-
N(x), F(new Set(t)), v(""),
|
|
2959
|
-
},
|
|
2959
|
+
const l = Be(), d = ce(), u = r ?? d.multiSelectPlaceholder, p = o ?? d.multiSelectSearchPlaceholder, f = i ?? d.noMatches, h = c ?? (l == null ? void 0 : l.invalid) ?? !1, [m, y] = B(!1), [b, v] = B(""), [g, N] = B("all"), [L, F] = B(/* @__PURE__ */ new Set()), D = R(null), _ = R(null), E = R(null), w = R(null), O = De(), j = (x = "all") => {
|
|
2960
|
+
N(x), F(new Set(t)), v(""), y(!0);
|
|
2961
|
+
}, U = (x) => {
|
|
2960
2962
|
var W;
|
|
2961
2963
|
N(x), x === "selected" && F(new Set(t)), (W = E.current) == null || W.focus();
|
|
2962
2964
|
}, C = Q((x) => {
|
|
@@ -2965,15 +2967,15 @@ function Tu({
|
|
|
2965
2967
|
}, []), G = se(
|
|
2966
2968
|
() => g === "selected" ? e.filter((x) => L.has(x.value)) : e,
|
|
2967
2969
|
[e, g, L]
|
|
2968
|
-
), S = se(() => Bn(G,
|
|
2970
|
+
), S = se(() => Bn(G, b), [G, b]), X = (x) => {
|
|
2969
2971
|
n(
|
|
2970
2972
|
t.includes(x) ? t.filter((W) => W !== x) : [...t, x]
|
|
2971
2973
|
);
|
|
2972
|
-
},
|
|
2974
|
+
}, H = (x) => {
|
|
2973
2975
|
n(t.filter((W) => W !== x));
|
|
2974
|
-
},
|
|
2976
|
+
}, Y = se(() => Co(S), [S]), pe = () => n(Ao(t, Y)), A = () => n(Lo(t, Y)), I = () => n(Ro(t, Y)), z = () => {
|
|
2975
2977
|
var x;
|
|
2976
|
-
return Array.from(((x =
|
|
2978
|
+
return Array.from(((x = w.current) == null ? void 0 : x.querySelectorAll("input:not(:disabled)")) ?? []);
|
|
2977
2979
|
}, te = (x) => {
|
|
2978
2980
|
var W;
|
|
2979
2981
|
if (!x.nativeEvent.isComposing) {
|
|
@@ -2988,10 +2990,10 @@ function Tu({
|
|
|
2988
2990
|
}
|
|
2989
2991
|
}
|
|
2990
2992
|
}, ke = (x) => {
|
|
2991
|
-
var ae, le, ue, de,
|
|
2993
|
+
var ae, le, ue, de, he;
|
|
2992
2994
|
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(x.key)) return;
|
|
2993
|
-
const W = z(), ee = W.findIndex((
|
|
2994
|
-
ee !== -1 && (x.preventDefault(), x.key === "ArrowDown" && ((ae = W[Math.min(ee + 1, W.length - 1)]) == null || ae.focus()), x.key === "ArrowUp" && (ee === 0 ? (le = E.current) == null || le.focus() : (ue = W[ee - 1]) == null || ue.focus()), x.key === "Home" && ((de = W[0]) == null || de.focus()), x.key === "End" && ((
|
|
2995
|
+
const W = z(), ee = W.findIndex((be) => be === document.activeElement);
|
|
2996
|
+
ee !== -1 && (x.preventDefault(), x.key === "ArrowDown" && ((ae = W[Math.min(ee + 1, W.length - 1)]) == null || ae.focus()), x.key === "ArrowUp" && (ee === 0 ? (le = E.current) == null || le.focus() : (ue = W[ee - 1]) == null || ue.focus()), x.key === "Home" && ((de = W[0]) == null || de.focus()), x.key === "End" && ((he = W[W.length - 1]) == null || he.focus()));
|
|
2995
2997
|
}, Ee = () => {
|
|
2996
2998
|
var x;
|
|
2997
2999
|
return Array.from(((x = D.current) == null ? void 0 : x.querySelectorAll("[data-nav]")) ?? []);
|
|
@@ -3004,58 +3006,58 @@ function Tu({
|
|
|
3004
3006
|
return;
|
|
3005
3007
|
}
|
|
3006
3008
|
const ae = ee.indexOf(W);
|
|
3007
|
-
ae !== -1 && (x.key === "ArrowRight" ? (x.preventDefault(), (ue = ee[ae + 1] ?? _.current) == null || ue.focus()) : x.key === "ArrowLeft" ? (x.preventDefault(), (de = ee[ae - 1]) == null || de.focus()) : (x.key === "Delete" || x.key === "Backspace") && W.dataset.value && (x.preventDefault(),
|
|
3008
|
-
var
|
|
3009
|
-
const
|
|
3010
|
-
(
|
|
3009
|
+
ae !== -1 && (x.key === "ArrowRight" ? (x.preventDefault(), (ue = ee[ae + 1] ?? _.current) == null || ue.focus()) : x.key === "ArrowLeft" ? (x.preventDefault(), (de = ee[ae - 1]) == null || de.focus()) : (x.key === "Delete" || x.key === "Backspace") && W.dataset.value && (x.preventDefault(), H(W.dataset.value), requestAnimationFrame(() => {
|
|
3010
|
+
var be;
|
|
3011
|
+
const he = Ee();
|
|
3012
|
+
(be = he[Math.min(ae, he.length - 1)] ?? _.current) == null || be.focus();
|
|
3011
3013
|
})));
|
|
3012
|
-
},
|
|
3014
|
+
}, K = se(
|
|
3013
3015
|
() => e.filter((x) => t.includes(x.value)),
|
|
3014
3016
|
[e, t]
|
|
3015
|
-
), [_e,
|
|
3016
|
-
var
|
|
3017
|
+
), [_e, ye] = B(1), xe = R(null), $ = R(null), q = Q(() => {
|
|
3018
|
+
var be;
|
|
3017
3019
|
const x = xe.current, W = $.current;
|
|
3018
3020
|
if (!x || !W) return;
|
|
3019
3021
|
const ee = Array.from(W.children);
|
|
3020
3022
|
if (ee.length < 2) {
|
|
3021
|
-
|
|
3023
|
+
ye(1);
|
|
3022
3024
|
return;
|
|
3023
3025
|
}
|
|
3024
|
-
const ae = ((
|
|
3025
|
-
let
|
|
3026
|
-
for (let
|
|
3027
|
-
let
|
|
3028
|
-
for (let Fe = 0; Fe <
|
|
3029
|
-
if (
|
|
3030
|
-
|
|
3026
|
+
const ae = ((be = ee[ee.length - 1]) == null ? void 0 : be.offsetWidth) ?? 0, le = ee.slice(0, -1).map((we) => we.offsetWidth), ue = x.clientWidth, de = Number.parseFloat(getComputedStyle(W).columnGap) || 0;
|
|
3027
|
+
let he = 1;
|
|
3028
|
+
for (let we = le.length; we >= 1; we -= 1) {
|
|
3029
|
+
let fe = (we - 1) * de;
|
|
3030
|
+
for (let Fe = 0; Fe < we; Fe += 1) fe += le[Fe] ?? 0;
|
|
3031
|
+
if (we < le.length && (fe += de + ae), fe <= ue) {
|
|
3032
|
+
he = we;
|
|
3031
3033
|
break;
|
|
3032
3034
|
}
|
|
3033
3035
|
}
|
|
3034
|
-
|
|
3036
|
+
ye(he);
|
|
3035
3037
|
}, []);
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
+
Oe(() => {
|
|
3039
|
+
q();
|
|
3038
3040
|
}), ne(() => {
|
|
3039
3041
|
const x = D.current;
|
|
3040
3042
|
if (!x) return;
|
|
3041
|
-
const W = new ResizeObserver(() =>
|
|
3043
|
+
const W = new ResizeObserver(() => q());
|
|
3042
3044
|
return W.observe(x), () => W.disconnect();
|
|
3043
|
-
}, [
|
|
3044
|
-
const M = t.length - _e, V = /* @__PURE__ */ s(
|
|
3045
|
+
}, [q]);
|
|
3046
|
+
const M = t.length - _e, V = /* @__PURE__ */ s(Ue, { size: 8 });
|
|
3045
3047
|
return /* @__PURE__ */ k($e, { children: [
|
|
3046
3048
|
/* @__PURE__ */ k(
|
|
3047
3049
|
"div",
|
|
3048
3050
|
{
|
|
3049
3051
|
ref: D,
|
|
3050
|
-
className: P(re.field,
|
|
3052
|
+
className: P(re.field, h && re.invalid, a && re.fieldDisabled),
|
|
3051
3053
|
onClick: () => {
|
|
3052
|
-
a || (m ?
|
|
3054
|
+
a || (m ? y(!1) : j("all"));
|
|
3053
3055
|
},
|
|
3054
3056
|
onKeyDown: oe,
|
|
3055
3057
|
children: [
|
|
3056
3058
|
t.length > 0 && /* @__PURE__ */ k($e, { children: [
|
|
3057
3059
|
/* @__PURE__ */ k("span", { ref: xe, className: re.summary, children: [
|
|
3058
|
-
|
|
3060
|
+
K.slice(0, _e).map((x) => /* @__PURE__ */ k(
|
|
3059
3061
|
"button",
|
|
3060
3062
|
{
|
|
3061
3063
|
type: "button",
|
|
@@ -3066,7 +3068,7 @@ function Tu({
|
|
|
3066
3068
|
className: re.chip,
|
|
3067
3069
|
"aria-label": d.removeSelectedValue(x.label),
|
|
3068
3070
|
onClick: (W) => {
|
|
3069
|
-
W.stopPropagation(),
|
|
3071
|
+
W.stopPropagation(), H(x.value);
|
|
3070
3072
|
},
|
|
3071
3073
|
children: [
|
|
3072
3074
|
/* @__PURE__ */ s("span", { className: re.chipLabel, children: x.label }),
|
|
@@ -3085,7 +3087,7 @@ function Tu({
|
|
|
3085
3087
|
className: re.counter,
|
|
3086
3088
|
"aria-label": d.manageMoreSelected(t.length),
|
|
3087
3089
|
onClick: (x) => {
|
|
3088
|
-
x.stopPropagation(),
|
|
3090
|
+
x.stopPropagation(), j("selected");
|
|
3089
3091
|
},
|
|
3090
3092
|
children: [
|
|
3091
3093
|
"+",
|
|
@@ -3095,7 +3097,7 @@ function Tu({
|
|
|
3095
3097
|
)
|
|
3096
3098
|
] }),
|
|
3097
3099
|
/* @__PURE__ */ k("span", { ref: $, className: P(re.summary, re.measure), "aria-hidden": "true", children: [
|
|
3098
|
-
|
|
3100
|
+
K.map((x) => /* @__PURE__ */ k("span", { className: re.chip, children: [
|
|
3099
3101
|
/* @__PURE__ */ s("span", { className: re.chipLabel, children: x.label }),
|
|
3100
3102
|
/* @__PURE__ */ s("span", { className: re.chipX, children: V })
|
|
3101
3103
|
] }, x.value)),
|
|
@@ -3114,12 +3116,12 @@ function Tu({
|
|
|
3114
3116
|
disabled: a,
|
|
3115
3117
|
"aria-haspopup": "dialog",
|
|
3116
3118
|
"aria-expanded": m,
|
|
3117
|
-
"aria-controls": m ?
|
|
3119
|
+
"aria-controls": m ? O : void 0,
|
|
3118
3120
|
"aria-describedby": l == null ? void 0 : l.describedBy,
|
|
3119
|
-
"aria-invalid":
|
|
3121
|
+
"aria-invalid": h || void 0,
|
|
3120
3122
|
className: P(re.main, t.length === 0 && re.mainEmpty),
|
|
3121
3123
|
onClick: (x) => {
|
|
3122
|
-
x.stopPropagation(), m ?
|
|
3124
|
+
x.stopPropagation(), m ? y(!1) : j("all");
|
|
3123
3125
|
},
|
|
3124
3126
|
children: [
|
|
3125
3127
|
t.length === 0 && /* @__PURE__ */ s("span", { className: re.placeholder, children: u }),
|
|
@@ -3135,7 +3137,7 @@ function Tu({
|
|
|
3135
3137
|
{
|
|
3136
3138
|
open: m,
|
|
3137
3139
|
onOpenChange: (x) => {
|
|
3138
|
-
x ||
|
|
3140
|
+
x || y(!1);
|
|
3139
3141
|
},
|
|
3140
3142
|
anchorRef: D,
|
|
3141
3143
|
focusRef: _,
|
|
@@ -3143,7 +3145,7 @@ function Tu({
|
|
|
3143
3145
|
minWidth: 260,
|
|
3144
3146
|
role: "dialog",
|
|
3145
3147
|
ariaLabel: u,
|
|
3146
|
-
id:
|
|
3148
|
+
id: O,
|
|
3147
3149
|
className: re.panel,
|
|
3148
3150
|
children: /* @__PURE__ */ k("div", { ref: C, children: [
|
|
3149
3151
|
/* @__PURE__ */ s(
|
|
@@ -3151,7 +3153,7 @@ function Tu({
|
|
|
3151
3153
|
{
|
|
3152
3154
|
ref: E,
|
|
3153
3155
|
size: "sm",
|
|
3154
|
-
value:
|
|
3156
|
+
value: b,
|
|
3155
3157
|
placeholder: p,
|
|
3156
3158
|
"aria-label": d.searchOptions,
|
|
3157
3159
|
clearable: !0,
|
|
@@ -3170,7 +3172,7 @@ function Tu({
|
|
|
3170
3172
|
type: "button",
|
|
3171
3173
|
className: P(re.scope, g === "all" && re.scopeActive),
|
|
3172
3174
|
"aria-pressed": g === "all",
|
|
3173
|
-
onClick: () =>
|
|
3175
|
+
onClick: () => U("all"),
|
|
3174
3176
|
children: d.optionScopeAll
|
|
3175
3177
|
}
|
|
3176
3178
|
),
|
|
@@ -3180,28 +3182,28 @@ function Tu({
|
|
|
3180
3182
|
type: "button",
|
|
3181
3183
|
className: P(re.scope, g === "selected" && re.scopeActive),
|
|
3182
3184
|
"aria-pressed": g === "selected",
|
|
3183
|
-
onClick: () =>
|
|
3185
|
+
onClick: () => U("selected"),
|
|
3184
3186
|
children: d.optionScopeSelected(t.length)
|
|
3185
3187
|
}
|
|
3186
3188
|
)
|
|
3187
3189
|
] }),
|
|
3188
3190
|
/* @__PURE__ */ k("div", { className: re.qol, children: [
|
|
3189
3191
|
/* @__PURE__ */ k("div", { className: re.qolButtons, children: [
|
|
3190
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", disabled:
|
|
3191
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", disabled:
|
|
3192
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", disabled:
|
|
3192
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", disabled: Y.length === 0, onClick: pe, children: d.selectAll }),
|
|
3193
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", disabled: Y.length === 0, onClick: A, children: d.selectNone }),
|
|
3194
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", disabled: Y.length === 0, onClick: I, children: d.invertSelection })
|
|
3193
3195
|
] }),
|
|
3194
3196
|
/* @__PURE__ */ s("span", { className: re.count, children: d.multiSelectSummary(t.length, e.length) })
|
|
3195
3197
|
] }),
|
|
3196
3198
|
/* @__PURE__ */ s(
|
|
3197
3199
|
"div",
|
|
3198
3200
|
{
|
|
3199
|
-
ref:
|
|
3201
|
+
ref: w,
|
|
3200
3202
|
className: re.list,
|
|
3201
3203
|
role: "group",
|
|
3202
3204
|
"aria-label": d.options,
|
|
3203
3205
|
onKeyDown: ke,
|
|
3204
|
-
children: S.length === 0 ? /* @__PURE__ */ s("div", { className: re.empty, children: g === "selected" && G.length === 0 ? d.nothingSelected :
|
|
3206
|
+
children: S.length === 0 ? /* @__PURE__ */ s("div", { className: re.empty, children: g === "selected" && G.length === 0 ? d.nothingSelected : f }) : S.map((x) => /* @__PURE__ */ s(
|
|
3205
3207
|
en,
|
|
3206
3208
|
{
|
|
3207
3209
|
className: re.option,
|
|
@@ -3219,18 +3221,18 @@ function Tu({
|
|
|
3219
3221
|
)
|
|
3220
3222
|
] });
|
|
3221
3223
|
}
|
|
3222
|
-
const
|
|
3223
|
-
group:
|
|
3224
|
-
horizontal:
|
|
3225
|
-
option:
|
|
3226
|
-
disabled:
|
|
3227
|
-
input:
|
|
3228
|
-
dot:
|
|
3229
|
-
texts:
|
|
3230
|
-
label:
|
|
3231
|
-
description:
|
|
3232
|
-
sm:
|
|
3233
|
-
},
|
|
3224
|
+
const Sc = "_group_4y2h4_8 _text_1hv7a_23", Mc = "_horizontal_4y2h4_15", Cc = "_option_4y2h4_21", Ac = "_disabled_4y2h4_28", Lc = "_input_4y2h4_35", Rc = "_dot_4y2h4_44", Pc = "_texts_4y2h4_100", Ec = "_label_4y2h4_107", Fc = "_description_4y2h4_115", Ic = "_sm_4y2h4_124", ze = {
|
|
3225
|
+
group: Sc,
|
|
3226
|
+
horizontal: Mc,
|
|
3227
|
+
option: Cc,
|
|
3228
|
+
disabled: Ac,
|
|
3229
|
+
input: Lc,
|
|
3230
|
+
dot: Rc,
|
|
3231
|
+
texts: Pc,
|
|
3232
|
+
label: Ec,
|
|
3233
|
+
description: Fc,
|
|
3234
|
+
sm: Ic
|
|
3235
|
+
}, Cu = ie(function({
|
|
3234
3236
|
options: t,
|
|
3235
3237
|
value: n,
|
|
3236
3238
|
defaultValue: r,
|
|
@@ -3242,36 +3244,36 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3242
3244
|
className: d,
|
|
3243
3245
|
onKeyDown: u,
|
|
3244
3246
|
...p
|
|
3245
|
-
},
|
|
3246
|
-
const
|
|
3247
|
+
}, f) {
|
|
3248
|
+
const h = Be(), m = De(), y = l ?? (h == null ? void 0 : h.id) ?? m, b = R(null), v = n !== void 0, g = t.filter((D) => !D.disabled && !c), N = (D) => {
|
|
3247
3249
|
o == null || o(D.value);
|
|
3248
3250
|
}, L = (D) => {
|
|
3249
|
-
var G, S, X,
|
|
3251
|
+
var G, S, X, H;
|
|
3250
3252
|
if (u == null || u(D), D.defaultPrevented) return;
|
|
3251
3253
|
const _ = D.key === "ArrowDown" || D.key === "ArrowRight", E = D.key === "ArrowUp" || D.key === "ArrowLeft";
|
|
3252
3254
|
if (!_ && !E || g.length === 0) return;
|
|
3253
3255
|
D.preventDefault();
|
|
3254
|
-
const
|
|
3255
|
-
if (!
|
|
3256
|
-
(
|
|
3257
|
-
((X =
|
|
3258
|
-
).find((
|
|
3256
|
+
const w = (v ? n : (S = (G = b.current) == null ? void 0 : G.querySelector("input:checked")) == null ? void 0 : S.value) ?? null, O = g.findIndex((Y) => Y.value === w), j = O === -1 ? 0 : (O + (_ ? 1 : -1) + g.length) % g.length, U = g[j];
|
|
3257
|
+
if (!U) return;
|
|
3258
|
+
(H = Array.from(
|
|
3259
|
+
((X = b.current) == null ? void 0 : X.querySelectorAll('input[type="radio"]')) ?? []
|
|
3260
|
+
).find((Y) => Y.value === U.value)) == null || H.focus(), N(U);
|
|
3259
3261
|
}, F = (D) => {
|
|
3260
3262
|
var E;
|
|
3261
|
-
return v ? D.disabled || c ? -1 : n === D.value || !g.some((
|
|
3263
|
+
return v ? D.disabled || c ? -1 : n === D.value || !g.some((w) => w.value === n) && ((E = g[0]) == null ? void 0 : E.value) === D.value ? 0 : -1 : void 0;
|
|
3262
3264
|
};
|
|
3263
3265
|
return /* @__PURE__ */ s(
|
|
3264
3266
|
"div",
|
|
3265
3267
|
{
|
|
3266
3268
|
ref: (D) => {
|
|
3267
|
-
|
|
3269
|
+
b.current = D, typeof f == "function" ? f(D) : f && (f.current = D);
|
|
3268
3270
|
},
|
|
3269
|
-
id:
|
|
3271
|
+
id: h == null ? void 0 : h.id,
|
|
3270
3272
|
role: "radiogroup",
|
|
3271
3273
|
"aria-orientation": i,
|
|
3272
|
-
"aria-describedby": p["aria-describedby"] ?? (
|
|
3273
|
-
"aria-required": (
|
|
3274
|
-
"aria-invalid": (
|
|
3274
|
+
"aria-describedby": p["aria-describedby"] ?? (h == null ? void 0 : h.describedBy),
|
|
3275
|
+
"aria-required": (h == null ? void 0 : h.required) || void 0,
|
|
3276
|
+
"aria-invalid": (h == null ? void 0 : h.invalid) || void 0,
|
|
3275
3277
|
className: P(
|
|
3276
3278
|
ze.group,
|
|
3277
3279
|
i === "horizontal" && ze.horizontal,
|
|
@@ -3281,11 +3283,11 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3281
3283
|
...p,
|
|
3282
3284
|
onKeyDown: L,
|
|
3283
3285
|
children: t.map((D) => {
|
|
3284
|
-
const _ = `${m}-${Ze(D.value)}`, E = D.description ? `${_}-description` : void 0,
|
|
3286
|
+
const _ = `${m}-${Ze(D.value)}`, E = D.description ? `${_}-description` : void 0, w = c || D.disabled;
|
|
3285
3287
|
return /* @__PURE__ */ k(
|
|
3286
3288
|
"label",
|
|
3287
3289
|
{
|
|
3288
|
-
className: P(ze.option,
|
|
3290
|
+
className: P(ze.option, w && ze.disabled),
|
|
3289
3291
|
htmlFor: _,
|
|
3290
3292
|
children: [
|
|
3291
3293
|
/* @__PURE__ */ s(
|
|
@@ -3293,9 +3295,9 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3293
3295
|
{
|
|
3294
3296
|
type: "radio",
|
|
3295
3297
|
id: _,
|
|
3296
|
-
name:
|
|
3298
|
+
name: y,
|
|
3297
3299
|
value: D.value,
|
|
3298
|
-
disabled:
|
|
3300
|
+
disabled: w,
|
|
3299
3301
|
tabIndex: F(D),
|
|
3300
3302
|
className: ze.input,
|
|
3301
3303
|
"aria-describedby": E,
|
|
@@ -3314,16 +3316,16 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3314
3316
|
})
|
|
3315
3317
|
}
|
|
3316
3318
|
);
|
|
3317
|
-
}),
|
|
3318
|
-
wrapper:
|
|
3319
|
-
select:
|
|
3320
|
-
sm:
|
|
3321
|
-
invalid:
|
|
3322
|
-
chevron:
|
|
3323
|
-
selectClearable:
|
|
3324
|
-
clear:
|
|
3325
|
-
},
|
|
3326
|
-
const p = Be(),
|
|
3319
|
+
}), Bc = "_wrapper_14fvz_4 _text_1hv7a_23", qc = "_select_14fvz_11 _field_1hv7a_34", Oc = "_sm_14fvz_57", Hc = "_invalid_14fvz_63", zc = "_chevron_14fvz_72", Wc = "_selectClearable_14fvz_88", Gc = "_clear_14fvz_93", rt = {
|
|
3320
|
+
wrapper: Bc,
|
|
3321
|
+
select: qc,
|
|
3322
|
+
sm: Oc,
|
|
3323
|
+
invalid: Hc,
|
|
3324
|
+
chevron: zc,
|
|
3325
|
+
selectClearable: Wc,
|
|
3326
|
+
clear: Gc
|
|
3327
|
+
}, Au = ie(function({ selectSize: t = "md", invalid: n, clearable: r = !1, onClear: o, className: i, id: a, children: c, disabled: l, ...d }, u) {
|
|
3328
|
+
const p = Be(), f = ce(), h = n ?? (p == null ? void 0 : p.invalid) ?? !1, m = r && !d.multiple && String(d.value ?? "") !== "";
|
|
3327
3329
|
return /* @__PURE__ */ k("span", { className: P(rt.wrapper, i), children: [
|
|
3328
3330
|
/* @__PURE__ */ s(
|
|
3329
3331
|
"select",
|
|
@@ -3333,12 +3335,12 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3333
3335
|
disabled: l,
|
|
3334
3336
|
"aria-describedby": d["aria-describedby"] ?? (p == null ? void 0 : p.describedBy),
|
|
3335
3337
|
"aria-required": (p == null ? void 0 : p.required) || void 0,
|
|
3336
|
-
"aria-invalid":
|
|
3338
|
+
"aria-invalid": h || void 0,
|
|
3337
3339
|
className: P(
|
|
3338
3340
|
rt.select,
|
|
3339
3341
|
t === "sm" && rt.sm,
|
|
3340
3342
|
r && rt.selectClearable,
|
|
3341
|
-
|
|
3343
|
+
h && rt.invalid
|
|
3342
3344
|
),
|
|
3343
3345
|
...d,
|
|
3344
3346
|
children: c
|
|
@@ -3349,20 +3351,20 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3349
3351
|
{
|
|
3350
3352
|
type: "button",
|
|
3351
3353
|
tabIndex: -1,
|
|
3352
|
-
"aria-label":
|
|
3354
|
+
"aria-label": f.clearSelection,
|
|
3353
3355
|
className: rt.clear,
|
|
3354
|
-
onMouseDown: (
|
|
3356
|
+
onMouseDown: (y) => y.preventDefault(),
|
|
3355
3357
|
onClick: () => o == null ? void 0 : o(),
|
|
3356
|
-
children: /* @__PURE__ */ s(
|
|
3358
|
+
children: /* @__PURE__ */ s(Ue, {})
|
|
3357
3359
|
}
|
|
3358
3360
|
),
|
|
3359
3361
|
/* @__PURE__ */ s("span", { className: rt.chevron, "aria-hidden": "true" })
|
|
3360
3362
|
] });
|
|
3361
|
-
}),
|
|
3362
|
-
skeleton:
|
|
3363
|
-
circle:
|
|
3363
|
+
}), Vc = "_skeleton_6mkat_4", jc = "_circle_6mkat_19", _n = {
|
|
3364
|
+
skeleton: Vc,
|
|
3365
|
+
circle: jc
|
|
3364
3366
|
};
|
|
3365
|
-
function
|
|
3367
|
+
function Lu({ width: e, height: t, circle: n = !1, className: r, style: o, ...i }) {
|
|
3366
3368
|
return /* @__PURE__ */ s(
|
|
3367
3369
|
"span",
|
|
3368
3370
|
{
|
|
@@ -3373,57 +3375,57 @@ function Cu({ width: e, height: t, circle: n = !1, className: r, style: o, ...i
|
|
|
3373
3375
|
}
|
|
3374
3376
|
);
|
|
3375
3377
|
}
|
|
3376
|
-
const
|
|
3377
|
-
group:
|
|
3378
|
-
tag:
|
|
3379
|
-
removable:
|
|
3380
|
-
disabled:
|
|
3381
|
-
text:
|
|
3382
|
-
neutral:
|
|
3383
|
-
accent:
|
|
3384
|
-
success:
|
|
3385
|
-
warning:
|
|
3386
|
-
danger:
|
|
3387
|
-
remove:
|
|
3388
|
-
}, Xn = Ve(!1),
|
|
3378
|
+
const Uc = "_group_13w8u_7", Yc = "_tag_13w8u_16 _text_1hv7a_23", Kc = "_removable_13w8u_31", Xc = "_disabled_13w8u_41", Qc = "_text_13w8u_45", Zc = "_neutral_13w8u_52", Jc = "_accent_13w8u_57", el = "_success_13w8u_62", tl = "_warning_13w8u_67", nl = "_danger_13w8u_72", rl = "_remove_13w8u_79", st = {
|
|
3379
|
+
group: Uc,
|
|
3380
|
+
tag: Yc,
|
|
3381
|
+
removable: Kc,
|
|
3382
|
+
disabled: Xc,
|
|
3383
|
+
text: Qc,
|
|
3384
|
+
neutral: Zc,
|
|
3385
|
+
accent: Jc,
|
|
3386
|
+
success: el,
|
|
3387
|
+
warning: tl,
|
|
3388
|
+
danger: nl,
|
|
3389
|
+
remove: rl
|
|
3390
|
+
}, Xn = Ve(!1), Ru = ie(function({ className: t, children: n, onKeyDown: r, onFocus: o, ...i }, a) {
|
|
3389
3391
|
const c = R(null), l = Q(
|
|
3390
3392
|
() => {
|
|
3391
|
-
var
|
|
3392
|
-
return Array.from(((
|
|
3393
|
+
var f;
|
|
3394
|
+
return Array.from(((f = c.current) == null ? void 0 : f.querySelectorAll("[data-tag]")) ?? []);
|
|
3393
3395
|
},
|
|
3394
3396
|
[]
|
|
3395
3397
|
), d = Q(
|
|
3396
|
-
(
|
|
3397
|
-
const
|
|
3398
|
-
for (const
|
|
3399
|
-
|
|
3398
|
+
(f) => {
|
|
3399
|
+
const h = l(), m = f ?? h[0];
|
|
3400
|
+
for (const y of h)
|
|
3401
|
+
y.tabIndex = y === m ? 0 : -1;
|
|
3400
3402
|
},
|
|
3401
3403
|
[l]
|
|
3402
3404
|
);
|
|
3403
3405
|
ne(() => {
|
|
3404
|
-
const
|
|
3405
|
-
d(
|
|
3406
|
+
const h = l().find((m) => m.tabIndex === 0);
|
|
3407
|
+
d(h);
|
|
3406
3408
|
});
|
|
3407
|
-
const u = (
|
|
3408
|
-
o == null || o(
|
|
3409
|
-
const
|
|
3410
|
-
|
|
3411
|
-
}, p = (
|
|
3412
|
-
if (r == null || r(
|
|
3413
|
-
const
|
|
3414
|
-
if (
|
|
3415
|
-
const m =
|
|
3409
|
+
const u = (f) => {
|
|
3410
|
+
o == null || o(f);
|
|
3411
|
+
const h = l().find((m) => m.contains(f.target));
|
|
3412
|
+
h && d(h);
|
|
3413
|
+
}, p = (f) => {
|
|
3414
|
+
if (r == null || r(f), f.defaultPrevented) return;
|
|
3415
|
+
const h = l();
|
|
3416
|
+
if (h.length === 0) return;
|
|
3417
|
+
const m = h.findIndex((b) => b.contains(document.activeElement));
|
|
3416
3418
|
if (m === -1) return;
|
|
3417
|
-
const
|
|
3418
|
-
|
|
3419
|
+
const y = (b) => {
|
|
3420
|
+
b && (f.preventDefault(), d(b), b.focus());
|
|
3419
3421
|
};
|
|
3420
|
-
|
|
3422
|
+
f.key === "ArrowRight" || f.key === "ArrowDown" ? y(h[(m + 1) % h.length]) : f.key === "ArrowLeft" || f.key === "ArrowUp" ? y(h[(m - 1 + h.length) % h.length]) : f.key === "Home" ? y(h[0]) : f.key === "End" && y(h[h.length - 1]);
|
|
3421
3423
|
};
|
|
3422
3424
|
return /* @__PURE__ */ s(
|
|
3423
3425
|
"div",
|
|
3424
3426
|
{
|
|
3425
|
-
ref: (
|
|
3426
|
-
c.current =
|
|
3427
|
+
ref: (f) => {
|
|
3428
|
+
c.current = f, typeof a == "function" ? a(f) : a && (a.current = f);
|
|
3427
3429
|
},
|
|
3428
3430
|
role: "list",
|
|
3429
3431
|
className: P(st.group, t),
|
|
@@ -3433,69 +3435,69 @@ const Vc = "_group_13w8u_7", Uc = "_tag_13w8u_16 _text_1hv7a_23", Yc = "_removab
|
|
|
3433
3435
|
children: /* @__PURE__ */ s(Xn.Provider, { value: !0, children: n })
|
|
3434
3436
|
}
|
|
3435
3437
|
);
|
|
3436
|
-
}),
|
|
3437
|
-
const u =
|
|
3438
|
-
if (!
|
|
3438
|
+
}), Pu = ie(function({ tone: t = "neutral", children: n, onRemove: r, removeLabel: o, disabled: i = !1, className: a, onKeyDown: c, ...l }, d) {
|
|
3439
|
+
const u = He(Xn), p = ce(), f = !!r && !i, h = o ?? (typeof n == "string" ? p.removeTag(n) : p.remove), m = (b) => {
|
|
3440
|
+
if (!b) {
|
|
3439
3441
|
r == null || r();
|
|
3440
3442
|
return;
|
|
3441
3443
|
}
|
|
3442
|
-
const v =
|
|
3444
|
+
const v = b.closest('[role="list"]'), g = Array.from((v == null ? void 0 : v.querySelectorAll("[data-tag]")) ?? []), N = g.indexOf(b), L = g[N + 1] ?? g[N - 1];
|
|
3443
3445
|
r == null || r(), L && requestAnimationFrame(() => L.focus());
|
|
3444
|
-
},
|
|
3445
|
-
c == null || c(
|
|
3446
|
+
}, y = (b) => {
|
|
3447
|
+
c == null || c(b), !(b.defaultPrevented || !f) && (b.key === "Backspace" || b.key === "Delete") && (b.preventDefault(), m(b.currentTarget));
|
|
3446
3448
|
};
|
|
3447
3449
|
return /* @__PURE__ */ k(
|
|
3448
3450
|
"span",
|
|
3449
3451
|
{
|
|
3450
3452
|
ref: d,
|
|
3451
|
-
"data-tag":
|
|
3453
|
+
"data-tag": f ? "" : void 0,
|
|
3452
3454
|
role: u ? "listitem" : void 0,
|
|
3453
3455
|
"aria-disabled": i || void 0,
|
|
3454
|
-
tabIndex:
|
|
3456
|
+
tabIndex: f ? u ? -1 : 0 : void 0,
|
|
3455
3457
|
className: P(
|
|
3456
3458
|
st.tag,
|
|
3457
3459
|
st[t],
|
|
3458
|
-
|
|
3460
|
+
f && st.removable,
|
|
3459
3461
|
i && st.disabled,
|
|
3460
3462
|
a
|
|
3461
3463
|
),
|
|
3462
3464
|
...l,
|
|
3463
|
-
onKeyDown:
|
|
3465
|
+
onKeyDown: y,
|
|
3464
3466
|
children: [
|
|
3465
3467
|
/* @__PURE__ */ s("span", { className: st.text, children: n }),
|
|
3466
|
-
|
|
3468
|
+
f && /* @__PURE__ */ s(
|
|
3467
3469
|
"button",
|
|
3468
3470
|
{
|
|
3469
3471
|
type: "button",
|
|
3470
3472
|
tabIndex: -1,
|
|
3471
|
-
"aria-label":
|
|
3473
|
+
"aria-label": h,
|
|
3472
3474
|
className: st.remove,
|
|
3473
|
-
onClick: (
|
|
3474
|
-
|
|
3475
|
+
onClick: (b) => {
|
|
3476
|
+
b.stopPropagation(), m(b.currentTarget.closest("[data-tag]"));
|
|
3475
3477
|
},
|
|
3476
|
-
children: /* @__PURE__ */ s(
|
|
3478
|
+
children: /* @__PURE__ */ s(Ue, { size: 8 })
|
|
3477
3479
|
}
|
|
3478
3480
|
)
|
|
3479
3481
|
]
|
|
3480
3482
|
}
|
|
3481
3483
|
);
|
|
3482
|
-
}),
|
|
3483
|
-
list:
|
|
3484
|
-
indicator:
|
|
3485
|
-
tab:
|
|
3486
|
-
panel:
|
|
3484
|
+
}), ol = "_list_35isc_4 _text_1hv7a_23", sl = "_indicator_35isc_13", il = "_tab_35isc_24 _ring_1hv7a_65", al = "_panel_35isc_55 _text_1hv7a_23 _ring_1hv7a_65", Tt = {
|
|
3485
|
+
list: ol,
|
|
3486
|
+
indicator: sl,
|
|
3487
|
+
tab: il,
|
|
3488
|
+
panel: al
|
|
3487
3489
|
}, Qn = Ve(null);
|
|
3488
3490
|
function on(e) {
|
|
3489
|
-
const t =
|
|
3491
|
+
const t = He(Qn);
|
|
3490
3492
|
if (!t)
|
|
3491
3493
|
throw new Error(`${e} must be used inside <Tabs>.`);
|
|
3492
3494
|
return t;
|
|
3493
3495
|
}
|
|
3494
|
-
function
|
|
3496
|
+
function Eu({ value: e, onChange: t, className: n, children: r, ...o }) {
|
|
3495
3497
|
const i = De();
|
|
3496
3498
|
return /* @__PURE__ */ s("div", { className: n, ...o, children: /* @__PURE__ */ s(Qn.Provider, { value: { value: e, onChange: t, idBase: i }, children: r }) });
|
|
3497
3499
|
}
|
|
3498
|
-
function
|
|
3500
|
+
function Fu({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
3499
3501
|
const o = on("TabList"), i = R(null), [a, c] = B(null), l = Q(() => {
|
|
3500
3502
|
const u = i.current;
|
|
3501
3503
|
if (!u) return;
|
|
@@ -3506,7 +3508,7 @@ function Pu({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
|
3506
3508
|
}
|
|
3507
3509
|
c({ left: p.offsetLeft, width: p.offsetWidth });
|
|
3508
3510
|
}, []);
|
|
3509
|
-
|
|
3511
|
+
Oe(() => {
|
|
3510
3512
|
l();
|
|
3511
3513
|
}, [l, o.value]), ne(() => {
|
|
3512
3514
|
var p;
|
|
@@ -3519,16 +3521,16 @@ function Pu({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
|
3519
3521
|
};
|
|
3520
3522
|
}, [l]);
|
|
3521
3523
|
const d = (u) => {
|
|
3522
|
-
var m,
|
|
3524
|
+
var m, y;
|
|
3523
3525
|
if (n == null || n(u), u.defaultPrevented || !["ArrowLeft", "ArrowRight", "Home", "End"].includes(u.key)) return;
|
|
3524
3526
|
const p = Array.from(
|
|
3525
3527
|
u.currentTarget.querySelectorAll('[role="tab"]:not([disabled])')
|
|
3526
3528
|
);
|
|
3527
3529
|
if (p.length === 0) return;
|
|
3528
|
-
const
|
|
3530
|
+
const f = p.findIndex((b) => b === document.activeElement);
|
|
3529
3531
|
u.preventDefault();
|
|
3530
|
-
let
|
|
3531
|
-
u.key === "ArrowRight" && (
|
|
3532
|
+
let h = f;
|
|
3533
|
+
u.key === "ArrowRight" && (h = (f + 1) % p.length), u.key === "ArrowLeft" && (h = (f - 1 + p.length) % p.length), u.key === "Home" && (h = 0), u.key === "End" && (h = p.length - 1), (m = p[h]) == null || m.focus(), (y = p[h]) == null || y.click();
|
|
3532
3534
|
};
|
|
3533
3535
|
return /* @__PURE__ */ k("div", { ref: i, role: "tablist", className: P(Tt.list, e), ...r, onKeyDown: d, children: [
|
|
3534
3536
|
t,
|
|
@@ -3542,7 +3544,7 @@ function Pu({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
|
3542
3544
|
)
|
|
3543
3545
|
] });
|
|
3544
3546
|
}
|
|
3545
|
-
function
|
|
3547
|
+
function Iu({ value: e, className: t, children: n, onClick: r, ...o }) {
|
|
3546
3548
|
const i = on("Tab"), a = i.value === e;
|
|
3547
3549
|
return /* @__PURE__ */ s(
|
|
3548
3550
|
"button",
|
|
@@ -3562,7 +3564,7 @@ function Eu({ value: e, className: t, children: n, onClick: r, ...o }) {
|
|
|
3562
3564
|
}
|
|
3563
3565
|
);
|
|
3564
3566
|
}
|
|
3565
|
-
function
|
|
3567
|
+
function Bu({ value: e, className: t, children: n, ...r }) {
|
|
3566
3568
|
const o = on("TabPanel");
|
|
3567
3569
|
return o.value !== e ? null : /* @__PURE__ */ s(
|
|
3568
3570
|
"div",
|
|
@@ -3577,14 +3579,14 @@ function Fu({ value: e, className: t, children: n, ...r }) {
|
|
|
3577
3579
|
}
|
|
3578
3580
|
);
|
|
3579
3581
|
}
|
|
3580
|
-
const
|
|
3581
|
-
textarea:
|
|
3582
|
-
sm:
|
|
3583
|
-
invalid:
|
|
3584
|
-
wrapper:
|
|
3585
|
-
count:
|
|
3586
|
-
countOver:
|
|
3587
|
-
},
|
|
3582
|
+
const cl = (e, t) => t === void 0 ? void 0 : t - e.length, ll = (e, t, n) => !n || !t ? e : Math.min(e, t * n), dl = "_textarea_mutkx_7 _field_1hv7a_34", ul = "_sm_mutkx_44", fl = "_invalid_mutkx_51", hl = "_wrapper_mutkx_63 _text_1hv7a_23", pl = "_count_mutkx_76", ml = "_countOver_mutkx_90", ft = {
|
|
3583
|
+
textarea: dl,
|
|
3584
|
+
sm: ul,
|
|
3585
|
+
invalid: fl,
|
|
3586
|
+
wrapper: hl,
|
|
3587
|
+
count: pl,
|
|
3588
|
+
countOver: ml
|
|
3589
|
+
}, qu = ie(function({
|
|
3588
3590
|
size: t = "md",
|
|
3589
3591
|
invalid: n,
|
|
3590
3592
|
autoGrow: r = !1,
|
|
@@ -3596,86 +3598,86 @@ const il = (e, t) => t === void 0 ? void 0 : t - e.length, al = (e, t, n) => !n
|
|
|
3596
3598
|
disabled: d,
|
|
3597
3599
|
rows: u = 3,
|
|
3598
3600
|
onInput: p,
|
|
3599
|
-
...
|
|
3600
|
-
},
|
|
3601
|
-
const m = Be(),
|
|
3602
|
-
Vt(
|
|
3601
|
+
...f
|
|
3602
|
+
}, h) {
|
|
3603
|
+
const m = Be(), y = n ?? (m == null ? void 0 : m.invalid) ?? !1, b = R(null);
|
|
3604
|
+
Vt(h, () => b.current);
|
|
3603
3605
|
const v = Q(() => {
|
|
3604
|
-
const
|
|
3605
|
-
if (!
|
|
3606
|
-
|
|
3607
|
-
const
|
|
3608
|
-
|
|
3606
|
+
const w = b.current;
|
|
3607
|
+
if (!w || !r) return;
|
|
3608
|
+
w.style.height = "auto";
|
|
3609
|
+
const O = Number.parseFloat(getComputedStyle(w).lineHeight) || 0;
|
|
3610
|
+
w.style.height = `${ll(w.scrollHeight, O, o)}px`, w.style.overflowY = o && w.scrollHeight > w.clientHeight ? "auto" : "hidden";
|
|
3609
3611
|
}, [r, o]);
|
|
3610
|
-
|
|
3611
|
-
var
|
|
3612
|
+
Oe(v, [v, f.value, f.defaultValue]), ne(() => {
|
|
3613
|
+
var O;
|
|
3612
3614
|
if (!r) return;
|
|
3613
|
-
let
|
|
3614
|
-
return (
|
|
3615
|
-
|
|
3615
|
+
let w = !1;
|
|
3616
|
+
return (O = document.fonts) == null || O.ready.then(() => {
|
|
3617
|
+
w || v();
|
|
3616
3618
|
}), () => {
|
|
3617
|
-
|
|
3619
|
+
w = !0;
|
|
3618
3620
|
};
|
|
3619
3621
|
}, [r, v]);
|
|
3620
|
-
const [g, N] = B(() => String(
|
|
3622
|
+
const [g, N] = B(() => String(f.defaultValue ?? "")), L = f.value !== void 0, F = L ? String(f.value ?? "") : g, D = cl(F, f.maxLength), _ = i && D !== void 0, E = /* @__PURE__ */ s(
|
|
3621
3623
|
"textarea",
|
|
3622
3624
|
{
|
|
3623
|
-
ref:
|
|
3625
|
+
ref: b,
|
|
3624
3626
|
id: l ?? (m == null ? void 0 : m.id),
|
|
3625
3627
|
rows: u,
|
|
3626
3628
|
disabled: d,
|
|
3627
|
-
"aria-describedby":
|
|
3629
|
+
"aria-describedby": f["aria-describedby"] ?? (m == null ? void 0 : m.describedBy),
|
|
3628
3630
|
"aria-required": (m == null ? void 0 : m.required) || void 0,
|
|
3629
|
-
"aria-invalid":
|
|
3631
|
+
"aria-invalid": y || void 0,
|
|
3630
3632
|
className: P(
|
|
3631
|
-
|
|
3632
|
-
t === "sm" &&
|
|
3633
|
-
|
|
3633
|
+
ft.textarea,
|
|
3634
|
+
t === "sm" && ft.sm,
|
|
3635
|
+
y && ft.invalid,
|
|
3634
3636
|
!_ && c
|
|
3635
3637
|
),
|
|
3636
3638
|
style: { resize: a ?? (r ? "none" : "vertical") },
|
|
3637
|
-
onInput: (
|
|
3638
|
-
p == null || p(
|
|
3639
|
+
onInput: (w) => {
|
|
3640
|
+
p == null || p(w), L || N(w.currentTarget.value), v();
|
|
3639
3641
|
},
|
|
3640
|
-
...
|
|
3642
|
+
...f
|
|
3641
3643
|
}
|
|
3642
3644
|
);
|
|
3643
|
-
return _ ? /* @__PURE__ */ k("span", { className: P(
|
|
3645
|
+
return _ ? /* @__PURE__ */ k("span", { className: P(ft.wrapper, c), children: [
|
|
3644
3646
|
E,
|
|
3645
3647
|
/* @__PURE__ */ s(
|
|
3646
3648
|
"span",
|
|
3647
3649
|
{
|
|
3648
3650
|
"aria-live": "polite",
|
|
3649
|
-
className: P(
|
|
3651
|
+
className: P(ft.count, D < 0 && ft.countOver),
|
|
3650
3652
|
children: D
|
|
3651
3653
|
}
|
|
3652
3654
|
)
|
|
3653
3655
|
] }) : E;
|
|
3654
|
-
}),
|
|
3655
|
-
region:
|
|
3656
|
-
live:
|
|
3657
|
-
itemWrap:
|
|
3658
|
-
itemWrapLeaving:
|
|
3659
|
-
itemInner:
|
|
3656
|
+
}), _l = "_region_bxght_4 _text_1hv7a_23", gl = "_live_bxght_17", vl = "_itemWrap_bxght_26", yl = "_itemWrapLeaving_bxght_32", bl = "_itemInner_bxght_36", wl = "_toast_bxght_46", kl = "_icon_bxght_80", xl = "_neutral_bxght_91", Nl = "_success_bxght_96", $l = "_warning_bxght_101", Dl = "_danger_bxght_106", Tl = "_text_bxght_111", Sl = "_title_bxght_120", Ml = "_descriptionText_bxght_128", Cl = "_close_bxght_135 _ring_1hv7a_65", Al = "_toastIn_bxght_1", Le = {
|
|
3657
|
+
region: _l,
|
|
3658
|
+
live: gl,
|
|
3659
|
+
itemWrap: vl,
|
|
3660
|
+
itemWrapLeaving: yl,
|
|
3661
|
+
itemInner: bl,
|
|
3660
3662
|
toast: wl,
|
|
3661
|
-
icon:
|
|
3662
|
-
neutral:
|
|
3663
|
-
success:
|
|
3664
|
-
warning:
|
|
3665
|
-
danger:
|
|
3666
|
-
text:
|
|
3667
|
-
title:
|
|
3668
|
-
descriptionText:
|
|
3669
|
-
close:
|
|
3670
|
-
toastIn:
|
|
3671
|
-
},
|
|
3672
|
-
function
|
|
3673
|
-
const e =
|
|
3663
|
+
icon: kl,
|
|
3664
|
+
neutral: xl,
|
|
3665
|
+
success: Nl,
|
|
3666
|
+
warning: $l,
|
|
3667
|
+
danger: Dl,
|
|
3668
|
+
text: Tl,
|
|
3669
|
+
title: Sl,
|
|
3670
|
+
descriptionText: Ml,
|
|
3671
|
+
close: Cl,
|
|
3672
|
+
toastIn: Al
|
|
3673
|
+
}, Ll = { "--_origin": Yt("top", "end") }, Zn = Ve(null);
|
|
3674
|
+
function Ou() {
|
|
3675
|
+
const e = He(Zn);
|
|
3674
3676
|
if (!e)
|
|
3675
3677
|
throw new Error("useToast requires a <ToastProvider> around the application.");
|
|
3676
3678
|
return e;
|
|
3677
3679
|
}
|
|
3678
|
-
function
|
|
3680
|
+
function Rl({ tone: e }) {
|
|
3679
3681
|
return /* @__PURE__ */ s("span", { className: P(Le.icon, Le[e]), "aria-hidden": "true", children: /* @__PURE__ */ k("svg", { viewBox: "0 0 10 10", width: "12", height: "12", "aria-hidden": "true", children: [
|
|
3680
3682
|
e === "success" && /* @__PURE__ */ s("path", { d: "M2.2 5.3 4.2 7.3l3.6-4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3681
3683
|
e === "danger" && /* @__PURE__ */ s("path", { d: "M3 3l4 4M7 3 3 7", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
@@ -3683,14 +3685,14 @@ function Al({ tone: e }) {
|
|
|
3683
3685
|
e === "neutral" && /* @__PURE__ */ s("path", { d: "M5 2.4v0M5 4.4v3.3", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" })
|
|
3684
3686
|
] }) });
|
|
3685
3687
|
}
|
|
3686
|
-
function
|
|
3688
|
+
function Hu({ children: e }) {
|
|
3687
3689
|
const t = Zr().duration ?? 5e3, [n, r] = B([]), o = R(1), i = R(/* @__PURE__ */ new Map()), a = R(null), c = Q((v) => {
|
|
3688
3690
|
r((g) => g.filter((N) => N.id !== v)), i.current.delete(v);
|
|
3689
3691
|
}, []), l = Q(
|
|
3690
3692
|
(v) => {
|
|
3691
3693
|
const g = i.current.get(v);
|
|
3692
3694
|
g != null && g.timeout && clearTimeout(g.timeout);
|
|
3693
|
-
const N = a.current, L = N === null ? 0 :
|
|
3695
|
+
const N = a.current, L = N === null ? 0 : yt(getComputedStyle(N), "--u-duration-exit-collapse");
|
|
3694
3696
|
if (St() || L <= 0) {
|
|
3695
3697
|
c(v);
|
|
3696
3698
|
return;
|
|
@@ -3720,7 +3722,7 @@ function Ou({ children: e }) {
|
|
|
3720
3722
|
), p = Q((v) => {
|
|
3721
3723
|
const g = i.current.get(v);
|
|
3722
3724
|
g != null && g.timeout && (clearTimeout(g.timeout), g.timeout = null, g.remaining = Math.max(0, g.remaining - (Date.now() - g.startedAt)));
|
|
3723
|
-
}, []),
|
|
3725
|
+
}, []), f = Q(
|
|
3724
3726
|
(v) => {
|
|
3725
3727
|
const g = i.current.get(v);
|
|
3726
3728
|
if (!(!g || g.timeout)) {
|
|
@@ -3741,7 +3743,7 @@ function Ou({ children: e }) {
|
|
|
3741
3743
|
}), v.clear();
|
|
3742
3744
|
};
|
|
3743
3745
|
}, []);
|
|
3744
|
-
const
|
|
3746
|
+
const h = se(() => ({ toast: u, dismiss: l }), [u, l]), m = ce(), y = Qt(), b = (v) => {
|
|
3745
3747
|
const g = v.tone ?? "neutral";
|
|
3746
3748
|
return /* @__PURE__ */ s(
|
|
3747
3749
|
"div",
|
|
@@ -3753,9 +3755,9 @@ function Ou({ children: e }) {
|
|
|
3753
3755
|
{
|
|
3754
3756
|
className: Le.toast,
|
|
3755
3757
|
onPointerEnter: () => p(v.id),
|
|
3756
|
-
onPointerLeave: () =>
|
|
3758
|
+
onPointerLeave: () => f(v.id),
|
|
3757
3759
|
children: [
|
|
3758
|
-
/* @__PURE__ */ s(
|
|
3760
|
+
/* @__PURE__ */ s(Rl, { tone: g }),
|
|
3759
3761
|
/* @__PURE__ */ k("div", { className: Le.text, children: [
|
|
3760
3762
|
/* @__PURE__ */ s("p", { className: Le.title, children: v.title }),
|
|
3761
3763
|
v.description && /* @__PURE__ */ s("p", { className: Le.descriptionText, children: v.description })
|
|
@@ -3767,7 +3769,7 @@ function Ou({ children: e }) {
|
|
|
3767
3769
|
className: Le.close,
|
|
3768
3770
|
"aria-label": m.closeToast,
|
|
3769
3771
|
onClick: () => l(v.id),
|
|
3770
|
-
children: /* @__PURE__ */ s(
|
|
3772
|
+
children: /* @__PURE__ */ s(Ue, { size: 10 })
|
|
3771
3773
|
}
|
|
3772
3774
|
)
|
|
3773
3775
|
]
|
|
@@ -3777,9 +3779,9 @@ function Ou({ children: e }) {
|
|
|
3777
3779
|
v.id
|
|
3778
3780
|
);
|
|
3779
3781
|
};
|
|
3780
|
-
return /* @__PURE__ */ k(Zn.Provider, { value:
|
|
3782
|
+
return /* @__PURE__ */ k(Zn.Provider, { value: h, children: [
|
|
3781
3783
|
e,
|
|
3782
|
-
|
|
3784
|
+
jt(
|
|
3783
3785
|
/* Two live regions that stand before the first message arrives: a
|
|
3784
3786
|
region that comes into the document with its text already in it is
|
|
3785
3787
|
often not read out at all by a screen reader. The message goes into
|
|
@@ -3787,31 +3789,31 @@ function Ou({ children: e }) {
|
|
|
3787
3789
|
(library-audit 03 and its review). Both regions are
|
|
3788
3790
|
`display: contents`, and `order` keeps on screen the order in which
|
|
3789
3791
|
the messages arrived - whatever their tone. */
|
|
3790
|
-
/* @__PURE__ */ k("div", { ref: a, className: Le.region, style:
|
|
3791
|
-
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: Le.live, children: n.filter((v) => It[v.tone ?? "neutral"].role === "status").map(
|
|
3792
|
-
/* @__PURE__ */ s("div", { role: "alert", className: Le.live, children: n.filter((v) => It[v.tone ?? "neutral"].role === "alert").map(
|
|
3792
|
+
/* @__PURE__ */ k("div", { ref: a, className: Le.region, style: Ll, children: [
|
|
3793
|
+
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: Le.live, children: n.filter((v) => It[v.tone ?? "neutral"].role === "status").map(b) }),
|
|
3794
|
+
/* @__PURE__ */ s("div", { role: "alert", className: Le.live, children: n.filter((v) => It[v.tone ?? "neutral"].role === "alert").map(b) })
|
|
3793
3795
|
] }),
|
|
3794
|
-
|
|
3796
|
+
y() ?? document.body
|
|
3795
3797
|
)
|
|
3796
3798
|
] });
|
|
3797
3799
|
}
|
|
3798
|
-
const
|
|
3799
|
-
tree:
|
|
3800
|
-
row:
|
|
3801
|
-
active:
|
|
3802
|
-
pathOnly:
|
|
3803
|
-
chevron:
|
|
3804
|
-
chevronOpen:
|
|
3805
|
-
placeholder:
|
|
3806
|
-
emptyDot:
|
|
3807
|
-
check:
|
|
3808
|
-
content:
|
|
3809
|
-
noMatches:
|
|
3810
|
-
scrolls:
|
|
3811
|
-
disabled:
|
|
3812
|
-
loading:
|
|
3813
|
-
},
|
|
3814
|
-
function
|
|
3800
|
+
const Pl = "_tree_14dbz_10 _text_1hv7a_23", El = "_row_14dbz_23", Fl = "_active_14dbz_46", Il = "_pathOnly_14dbz_58", Bl = "_chevron_14dbz_62", ql = "_chevronOpen_14dbz_74", Ol = "_placeholder_14dbz_80", Hl = "_emptyDot_14dbz_86", zl = "_check_14dbz_104", Wl = "_content_14dbz_110", Gl = "_noMatches_14dbz_124", Vl = "_scrolls_14dbz_135 _scroll_1hv7a_40", jl = "_disabled_14dbz_145", Ul = "_loading_14dbz_149", Ae = {
|
|
3801
|
+
tree: Pl,
|
|
3802
|
+
row: El,
|
|
3803
|
+
active: Fl,
|
|
3804
|
+
pathOnly: Il,
|
|
3805
|
+
chevron: Bl,
|
|
3806
|
+
chevronOpen: ql,
|
|
3807
|
+
placeholder: Ol,
|
|
3808
|
+
emptyDot: Hl,
|
|
3809
|
+
check: zl,
|
|
3810
|
+
content: Wl,
|
|
3811
|
+
noMatches: Gl,
|
|
3812
|
+
scrolls: Vl,
|
|
3813
|
+
disabled: jl,
|
|
3814
|
+
loading: Ul
|
|
3815
|
+
}, Yl = 600;
|
|
3816
|
+
function zu({
|
|
3815
3817
|
tree: e,
|
|
3816
3818
|
ariaLabel: t,
|
|
3817
3819
|
checkable: n = !1,
|
|
@@ -3824,24 +3826,24 @@ function Hu({
|
|
|
3824
3826
|
...d
|
|
3825
3827
|
}) {
|
|
3826
3828
|
var D;
|
|
3827
|
-
const u = ce(), p = De(),
|
|
3829
|
+
const u = ce(), p = De(), f = e.virtual, h = R(null), m = (f == null ? void 0 : f.scrollRef) ?? h, y = R(!1), b = R(0), v = R(""), g = R(null);
|
|
3828
3830
|
ne(() => {
|
|
3829
3831
|
const _ = m.current;
|
|
3830
3832
|
if (_ === null || e.active === null) return;
|
|
3831
|
-
if (
|
|
3832
|
-
const
|
|
3833
|
-
if (
|
|
3834
|
-
|
|
3833
|
+
if (f !== void 0) {
|
|
3834
|
+
const O = e.flattening.findIndex((j) => j.key === e.active);
|
|
3835
|
+
if (O >= 0 && (O < f.from || O >= f.to)) {
|
|
3836
|
+
f.showRow(O);
|
|
3835
3837
|
return;
|
|
3836
3838
|
}
|
|
3837
3839
|
}
|
|
3838
|
-
const E = e.revealCount !==
|
|
3839
|
-
if (
|
|
3840
|
-
const
|
|
3840
|
+
const E = e.revealCount !== b.current;
|
|
3841
|
+
if (b.current = e.revealCount, !y.current && !E) return;
|
|
3842
|
+
const w = _.querySelector(
|
|
3841
3843
|
`[data-key="${CSS.escape(String(e.active))}"]`
|
|
3842
3844
|
);
|
|
3843
|
-
|
|
3844
|
-
}, [e.active, e.flattening, e.revealCount,
|
|
3845
|
+
w !== null && w !== document.activeElement && w.focus();
|
|
3846
|
+
}, [e.active, e.flattening, e.revealCount, f, m]), ne(
|
|
3845
3847
|
() => () => {
|
|
3846
3848
|
g.current !== null && window.clearTimeout(g.current);
|
|
3847
3849
|
},
|
|
@@ -3890,33 +3892,33 @@ function Hu({
|
|
|
3890
3892
|
if (_.key.length !== 1 || _.ctrlKey || _.metaKey || _.altKey || _.key === " ") return;
|
|
3891
3893
|
g.current !== null && window.clearTimeout(g.current), v.current += _.key, g.current = window.setTimeout(() => {
|
|
3892
3894
|
v.current = "", g.current = null;
|
|
3893
|
-
},
|
|
3895
|
+
}, Yl), e.typeahead(v.current);
|
|
3894
3896
|
break;
|
|
3895
3897
|
}
|
|
3896
3898
|
}
|
|
3897
3899
|
_.preventDefault();
|
|
3898
3900
|
}
|
|
3899
|
-
}, L =
|
|
3901
|
+
}, L = f === void 0 ? e.flattening : e.flattening.slice(f.from, f.to), F = e.active !== null && L.some((_) => _.key === e.active) ? e.active : (D = L[0]) == null ? void 0 : D.key;
|
|
3900
3902
|
return /* @__PURE__ */ k(
|
|
3901
3903
|
"div",
|
|
3902
3904
|
{
|
|
3903
3905
|
ref: m,
|
|
3904
3906
|
role: "tree",
|
|
3905
3907
|
"aria-label": t,
|
|
3906
|
-
className: P(Ae.tree,
|
|
3908
|
+
className: P(Ae.tree, f !== void 0 && Ae.scrolls, o),
|
|
3907
3909
|
...d,
|
|
3908
3910
|
onKeyDown: N,
|
|
3909
3911
|
onScroll: (_) => {
|
|
3910
|
-
l == null || l(_),
|
|
3912
|
+
l == null || l(_), f == null || f.onScroll();
|
|
3911
3913
|
},
|
|
3912
3914
|
onFocus: (_) => {
|
|
3913
|
-
a == null || a(_),
|
|
3915
|
+
a == null || a(_), y.current = !0;
|
|
3914
3916
|
},
|
|
3915
3917
|
onBlur: (_) => {
|
|
3916
|
-
c == null || c(_), _.currentTarget.contains(_.relatedTarget) || (
|
|
3918
|
+
c == null || c(_), _.currentTarget.contains(_.relatedTarget) || (y.current = !1);
|
|
3917
3919
|
},
|
|
3918
3920
|
children: [
|
|
3919
|
-
|
|
3921
|
+
f !== void 0 && f.fillerBefore > 0 ? /* @__PURE__ */ s("div", { "aria-hidden": "true", style: { height: f.fillerBefore } }) : null,
|
|
3920
3922
|
L.map((_) => {
|
|
3921
3923
|
const E = _.branch && !_.empty;
|
|
3922
3924
|
return /* @__PURE__ */ k(
|
|
@@ -3946,8 +3948,8 @@ function Hu({
|
|
|
3946
3948
|
{
|
|
3947
3949
|
"aria-hidden": "true",
|
|
3948
3950
|
className: P(Ae.chevron, _.expanded && Ae.chevronOpen),
|
|
3949
|
-
onClick: (
|
|
3950
|
-
|
|
3951
|
+
onClick: (w) => {
|
|
3952
|
+
w.stopPropagation(), e.toggleExpanded(_.key);
|
|
3951
3953
|
},
|
|
3952
3954
|
children: /* @__PURE__ */ s(kr, {})
|
|
3953
3955
|
}
|
|
@@ -3960,7 +3962,7 @@ function Hu({
|
|
|
3960
3962
|
Doing both was a defect: the box lies inside a label, so a
|
|
3961
3963
|
click ran through both paths and toggled twice - in the
|
|
3962
3964
|
browser nothing happened at all. */
|
|
3963
|
-
/* @__PURE__ */ s("span", { className: Ae.check, onClick: (
|
|
3965
|
+
/* @__PURE__ */ s("span", { className: Ae.check, onClick: (w) => w.stopPropagation(), children: /* @__PURE__ */ s(
|
|
3964
3966
|
en,
|
|
3965
3967
|
{
|
|
3966
3968
|
id: `${p}-check-${Ze(String(_.key))}`,
|
|
@@ -3980,13 +3982,13 @@ function Hu({
|
|
|
3980
3982
|
String(_.key)
|
|
3981
3983
|
);
|
|
3982
3984
|
}),
|
|
3983
|
-
|
|
3985
|
+
f !== void 0 && f.fillerAfter > 0 ? /* @__PURE__ */ s("div", { "aria-hidden": "true", style: { height: f.fillerAfter } }) : null,
|
|
3984
3986
|
e.flattening.length === 0 && e.search.trim() !== "" ? /* @__PURE__ */ s("p", { className: Ae.noMatches, children: u.treeNoMatches }) : null
|
|
3985
3987
|
]
|
|
3986
3988
|
}
|
|
3987
3989
|
);
|
|
3988
3990
|
}
|
|
3989
|
-
function
|
|
3991
|
+
function Wu({
|
|
3990
3992
|
tree: e,
|
|
3991
3993
|
placeholder: t,
|
|
3992
3994
|
...n
|
|
@@ -4003,15 +4005,15 @@ function qu({
|
|
|
4003
4005
|
}
|
|
4004
4006
|
);
|
|
4005
4007
|
}
|
|
4006
|
-
const
|
|
4007
|
-
function
|
|
4008
|
+
const Kl = { from: 0, to: 0, before: 0, after: 0 };
|
|
4009
|
+
function Xl({
|
|
4008
4010
|
count: e,
|
|
4009
4011
|
rowHeight: t,
|
|
4010
4012
|
scrollTop: n,
|
|
4011
4013
|
viewportHeight: r,
|
|
4012
4014
|
overscan: o = 4
|
|
4013
4015
|
}) {
|
|
4014
|
-
if (e <= 0 || t <= 0) return
|
|
4016
|
+
if (e <= 0 || t <= 0) return Kl;
|
|
4015
4017
|
const i = Math.max(0, n), a = Math.floor(i / t), c = Math.ceil(Math.max(0, r) / t) + 1, l = Math.max(0, a - o), d = Math.min(e, a + c + o);
|
|
4016
4018
|
return {
|
|
4017
4019
|
from: l,
|
|
@@ -4020,53 +4022,53 @@ function Kl({
|
|
|
4020
4022
|
after: (e - d) * t
|
|
4021
4023
|
};
|
|
4022
4024
|
}
|
|
4023
|
-
function
|
|
4025
|
+
function Ql(e, { rowHeight: t, scrollTop: n, viewportHeight: r, headerHeight: o = 0 }) {
|
|
4024
4026
|
if (t <= 0) return null;
|
|
4025
4027
|
const i = e * t, a = i + t;
|
|
4026
4028
|
return i < n + o ? Math.max(0, i - o) : a > n + r ? Math.max(0, a - r) : null;
|
|
4027
4029
|
}
|
|
4028
|
-
function
|
|
4030
|
+
function Zl(e, t) {
|
|
4029
4031
|
const { rowHeight: n, overscan: r = 4 } = t, o = R(null), [i, a] = B(0), [c, l] = B(0), [d, u] = B(n), p = Q(() => {
|
|
4030
4032
|
const m = o.current;
|
|
4031
4033
|
m && a(m.scrollTop);
|
|
4032
4034
|
}, []);
|
|
4033
|
-
|
|
4035
|
+
Oe(() => {
|
|
4034
4036
|
const m = o.current;
|
|
4035
4037
|
if (!m) return;
|
|
4036
|
-
const
|
|
4037
|
-
if (
|
|
4038
|
-
const
|
|
4039
|
-
return
|
|
4038
|
+
const y = () => l(m.clientHeight);
|
|
4039
|
+
if (y(), typeof ResizeObserver > "u") return;
|
|
4040
|
+
const b = new ResizeObserver(y);
|
|
4041
|
+
return b.observe(m), () => b.disconnect();
|
|
4040
4042
|
}, []), ne(() => {
|
|
4041
4043
|
const m = o.current;
|
|
4042
4044
|
if (!m) return;
|
|
4043
|
-
const
|
|
4044
|
-
if (!
|
|
4045
|
-
const
|
|
4046
|
-
|
|
4045
|
+
const y = m.querySelector("[data-row]");
|
|
4046
|
+
if (!y) return;
|
|
4047
|
+
const b = y.getBoundingClientRect().height;
|
|
4048
|
+
b > 0 && Math.abs(b - d) > 0.5 && u(b);
|
|
4047
4049
|
}, [e, c, d]);
|
|
4048
|
-
const
|
|
4050
|
+
const f = Xl({ count: e, rowHeight: d, scrollTop: i, viewportHeight: c, overscan: r }), h = Q(
|
|
4049
4051
|
(m) => {
|
|
4050
|
-
const
|
|
4051
|
-
if (!
|
|
4052
|
-
const
|
|
4052
|
+
const y = o.current;
|
|
4053
|
+
if (!y) return;
|
|
4054
|
+
const b = y.querySelector("thead"), v = Ql(m, {
|
|
4053
4055
|
rowHeight: d,
|
|
4054
|
-
scrollTop:
|
|
4055
|
-
viewportHeight:
|
|
4056
|
-
headerHeight: (
|
|
4056
|
+
scrollTop: y.scrollTop,
|
|
4057
|
+
viewportHeight: y.clientHeight,
|
|
4058
|
+
headerHeight: (b == null ? void 0 : b.getBoundingClientRect().height) ?? 0
|
|
4057
4059
|
});
|
|
4058
|
-
v !== null && (
|
|
4060
|
+
v !== null && (y.scrollTop = v, a(v));
|
|
4059
4061
|
},
|
|
4060
4062
|
[d]
|
|
4061
4063
|
);
|
|
4062
4064
|
return {
|
|
4063
4065
|
scrollRef: o,
|
|
4064
|
-
from:
|
|
4065
|
-
to:
|
|
4066
|
-
fillerBefore:
|
|
4067
|
-
fillerAfter:
|
|
4066
|
+
from: f.from,
|
|
4067
|
+
to: f.to,
|
|
4068
|
+
fillerBefore: f.before,
|
|
4069
|
+
fillerAfter: f.after,
|
|
4068
4070
|
count: e,
|
|
4069
|
-
showRow:
|
|
4071
|
+
showRow: h,
|
|
4070
4072
|
onScroll: p
|
|
4071
4073
|
};
|
|
4072
4074
|
}
|
|
@@ -4074,7 +4076,7 @@ function vt(e, t) {
|
|
|
4074
4076
|
var n, r;
|
|
4075
4077
|
return ((n = e.disabled) == null ? void 0 : n.call(e, t)) !== !0 && ((r = e.unloaded) == null ? void 0 : r.call(e, t)) !== !0;
|
|
4076
4078
|
}
|
|
4077
|
-
function
|
|
4079
|
+
function Jl(e, t, n) {
|
|
4078
4080
|
const r = n.search.trim().toLowerCase(), o = {
|
|
4079
4081
|
indeterminate: /* @__PURE__ */ new Set(),
|
|
4080
4082
|
survives: /* @__PURE__ */ new Set(),
|
|
@@ -4082,44 +4084,44 @@ function Ql(e, t, n) {
|
|
|
4082
4084
|
descendantMatches: /* @__PURE__ */ new Set()
|
|
4083
4085
|
};
|
|
4084
4086
|
function i(a) {
|
|
4085
|
-
var
|
|
4087
|
+
var y;
|
|
4086
4088
|
const c = t.key(a), l = t.children(a), d = n.checked.has(c), u = r === "" || t.label(a).toLowerCase().includes(r);
|
|
4087
4089
|
u && o.matches.add(c);
|
|
4088
|
-
let p = d,
|
|
4089
|
-
for (const
|
|
4090
|
-
const [v, g] = i(
|
|
4091
|
-
v && (p = !0), g && (
|
|
4090
|
+
let p = d, f = !1;
|
|
4091
|
+
for (const b of l ?? []) {
|
|
4092
|
+
const [v, g] = i(b);
|
|
4093
|
+
v && (p = !0), g && (f = !0);
|
|
4092
4094
|
}
|
|
4093
|
-
l !== void 0 && !d && p && o.indeterminate.add(c),
|
|
4094
|
-
const m = u ||
|
|
4095
|
+
l !== void 0 && !d && p && o.indeterminate.add(c), f && o.descendantMatches.add(c);
|
|
4096
|
+
const m = u || f || ((y = t.unloaded) == null ? void 0 : y.call(t, a)) === !0;
|
|
4095
4097
|
return m && o.survives.add(c), [p, m];
|
|
4096
4098
|
}
|
|
4097
4099
|
for (const a of e) i(a);
|
|
4098
4100
|
return o;
|
|
4099
4101
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const r = n.search.trim() !== "", o =
|
|
4102
|
+
function ed(e, t, n) {
|
|
4103
|
+
const r = n.search.trim() !== "", o = Jl(e, t, n), i = [];
|
|
4102
4104
|
function a(c, l, d) {
|
|
4103
4105
|
const u = d ? c : c.filter((p) => !r || o.survives.has(t.key(p)));
|
|
4104
|
-
u.forEach((p,
|
|
4106
|
+
u.forEach((p, f) => {
|
|
4105
4107
|
var D, _;
|
|
4106
|
-
const
|
|
4108
|
+
const h = t.key(p), m = t.children(p), y = ((D = t.unloaded) == null ? void 0 : D.call(t, p)) === !0, b = m !== void 0 || y, v = b && !y && (m ?? []).length === 0, g = o.matches.has(h), N = r && !g && o.descendantMatches.has(h), L = r && o.descendantMatches.has(h), F = !v && b && (L || n.expanded.has(h));
|
|
4107
4109
|
i.push({
|
|
4108
4110
|
node: p,
|
|
4109
|
-
key:
|
|
4111
|
+
key: h,
|
|
4110
4112
|
level: l,
|
|
4111
4113
|
label: t.label(p),
|
|
4112
|
-
branch:
|
|
4114
|
+
branch: b,
|
|
4113
4115
|
empty: v,
|
|
4114
4116
|
disabled: ((_ = t.disabled) == null ? void 0 : _.call(t, p)) === !0,
|
|
4115
|
-
unloaded:
|
|
4117
|
+
unloaded: y,
|
|
4116
4118
|
expanded: F,
|
|
4117
|
-
checked: n.checked.has(
|
|
4118
|
-
indeterminate: o.indeterminate.has(
|
|
4119
|
-
active: n.active ===
|
|
4119
|
+
checked: n.checked.has(h),
|
|
4120
|
+
indeterminate: o.indeterminate.has(h),
|
|
4121
|
+
active: n.active === h,
|
|
4120
4122
|
matches: !r || g,
|
|
4121
4123
|
pathOnly: N,
|
|
4122
|
-
position:
|
|
4124
|
+
position: f + 1,
|
|
4123
4125
|
siblings: u.length
|
|
4124
4126
|
}), F && a(m ?? [], l + 1, d || g);
|
|
4125
4127
|
});
|
|
@@ -4175,7 +4177,7 @@ function gn(e, t, n) {
|
|
|
4175
4177
|
function vn(e, t) {
|
|
4176
4178
|
return e.anchor === t ? e : { ...e, anchor: t };
|
|
4177
4179
|
}
|
|
4178
|
-
function
|
|
4180
|
+
function td(e, t, n) {
|
|
4179
4181
|
const r = e.findIndex((l) => l.key === t), o = e.findIndex((l) => l.key === n);
|
|
4180
4182
|
if (r < 0 || o < 0) return [];
|
|
4181
4183
|
const [i, a] = r <= o ? [r, o] : [o, r], c = [];
|
|
@@ -4198,41 +4200,41 @@ function tr(e, t) {
|
|
|
4198
4200
|
function zt(e, t, n, r, o) {
|
|
4199
4201
|
if (r.length === 0) return n;
|
|
4200
4202
|
const i = tr(e, t), a = new Set(n.checked);
|
|
4201
|
-
function c(
|
|
4202
|
-
if (vt(t,
|
|
4203
|
-
const
|
|
4204
|
-
o ? a.add(
|
|
4203
|
+
function c(f) {
|
|
4204
|
+
if (vt(t, f)) {
|
|
4205
|
+
const h = t.key(f);
|
|
4206
|
+
o ? a.add(h) : a.delete(h);
|
|
4205
4207
|
}
|
|
4206
|
-
for (const
|
|
4208
|
+
for (const h of t.children(f) ?? []) c(h);
|
|
4207
4209
|
}
|
|
4208
|
-
function l(
|
|
4209
|
-
const
|
|
4210
|
-
if (
|
|
4211
|
-
for (const
|
|
4212
|
-
if (!vt(t,
|
|
4213
|
-
const m = t.key(
|
|
4214
|
-
|
|
4210
|
+
function l(f) {
|
|
4211
|
+
const h = t.children(f) ?? [];
|
|
4212
|
+
if (h.length === 0) return;
|
|
4213
|
+
for (const b of h) l(b);
|
|
4214
|
+
if (!vt(t, f)) return;
|
|
4215
|
+
const m = t.key(f);
|
|
4216
|
+
h.every((b) => a.has(t.key(b))) ? a.add(m) : a.delete(m);
|
|
4215
4217
|
}
|
|
4216
4218
|
const d = /* @__PURE__ */ new Set();
|
|
4217
4219
|
let u = !1;
|
|
4218
|
-
for (const
|
|
4219
|
-
const
|
|
4220
|
-
if (
|
|
4221
|
-
u = !0, c(
|
|
4222
|
-
let m = i.parents.get(
|
|
4220
|
+
for (const f of r) {
|
|
4221
|
+
const h = i.nodes.get(f);
|
|
4222
|
+
if (h === void 0 || !vt(t, h)) continue;
|
|
4223
|
+
u = !0, c(h), l(h);
|
|
4224
|
+
let m = i.parents.get(f) ?? null;
|
|
4223
4225
|
for (; m !== null; )
|
|
4224
4226
|
d.add(m), m = i.parents.get(m) ?? null;
|
|
4225
4227
|
}
|
|
4226
4228
|
if (!u) return n;
|
|
4227
4229
|
const p = [...d].sort(
|
|
4228
|
-
(
|
|
4230
|
+
(f, h) => (i.depth.get(h) ?? 0) - (i.depth.get(f) ?? 0)
|
|
4229
4231
|
);
|
|
4230
|
-
for (const
|
|
4231
|
-
const
|
|
4232
|
-
if (
|
|
4233
|
-
const m = t.children(
|
|
4232
|
+
for (const f of p) {
|
|
4233
|
+
const h = i.nodes.get(f);
|
|
4234
|
+
if (h === void 0 || !vt(t, h)) continue;
|
|
4235
|
+
const m = t.children(h) ?? [];
|
|
4234
4236
|
if (m.length === 0) continue;
|
|
4235
|
-
m.every((
|
|
4237
|
+
m.every((b) => a.has(t.key(b))) ? a.add(f) : a.delete(f);
|
|
4236
4238
|
}
|
|
4237
4239
|
return { ...n, checked: a };
|
|
4238
4240
|
}
|
|
@@ -4240,15 +4242,15 @@ function nr(e, t, n, r) {
|
|
|
4240
4242
|
const o = zt(e, t, n, r, !0);
|
|
4241
4243
|
return o.checked.size === n.checked.size && [...o.checked].every((a) => n.checked.has(a)) ? zt(e, t, n, r, !1) : o;
|
|
4242
4244
|
}
|
|
4243
|
-
function
|
|
4245
|
+
function nd(e, t, n) {
|
|
4244
4246
|
const r = tr(e, t), o = [];
|
|
4245
4247
|
for (const [i, a] of r.nodes) vt(t, a) && o.push(i);
|
|
4246
4248
|
return o.length === 0 ? n : nr(e, t, n, o);
|
|
4247
4249
|
}
|
|
4248
|
-
function
|
|
4250
|
+
function yn(e, t, n, r) {
|
|
4249
4251
|
return nr(e, t, n, [r]);
|
|
4250
4252
|
}
|
|
4251
|
-
function
|
|
4253
|
+
function rd(e, t, n) {
|
|
4252
4254
|
const r = t.toLowerCase();
|
|
4253
4255
|
if (r === "" || e.length === 0) return null;
|
|
4254
4256
|
const o = e.findIndex((a) => a.key === n), i = o < 0 ? 0 : r.length === 1 ? o + 1 : o;
|
|
@@ -4258,7 +4260,7 @@ function td(e, t, n) {
|
|
|
4258
4260
|
}
|
|
4259
4261
|
return null;
|
|
4260
4262
|
}
|
|
4261
|
-
function
|
|
4263
|
+
function od(e, t, n) {
|
|
4262
4264
|
function r(o, i) {
|
|
4263
4265
|
const a = t.key(o);
|
|
4264
4266
|
if (i.push(a), a === n) return i;
|
|
@@ -4274,20 +4276,20 @@ function nd(e, t, n) {
|
|
|
4274
4276
|
}
|
|
4275
4277
|
return null;
|
|
4276
4278
|
}
|
|
4277
|
-
function
|
|
4279
|
+
function sd(e, t, n, r) {
|
|
4278
4280
|
var c, l;
|
|
4279
4281
|
let o = e, i = null;
|
|
4280
4282
|
const a = new Set(n.expanded);
|
|
4281
4283
|
for (let d = 0; d < r.length; d++) {
|
|
4282
|
-
const u = r[d], p = o.find((
|
|
4284
|
+
const u = r[d], p = o.find((y) => t.key(y) === u);
|
|
4283
4285
|
if (p === void 0) break;
|
|
4284
4286
|
i = u;
|
|
4285
|
-
const
|
|
4286
|
-
d < r.length - 1 &&
|
|
4287
|
+
const f = t.children(p), h = f !== void 0 || ((c = t.unloaded) == null ? void 0 : c.call(t, p)) === !0, m = h && ((l = t.unloaded) == null ? void 0 : l.call(t, p)) !== !0 && (f ?? []).length === 0;
|
|
4288
|
+
d < r.length - 1 && h && !m && a.add(u), o = f ?? [];
|
|
4287
4289
|
}
|
|
4288
4290
|
return i === null ? { snapshot: n, reached: null } : { snapshot: { ...n, expanded: a }, reached: i };
|
|
4289
4291
|
}
|
|
4290
|
-
function
|
|
4292
|
+
function id(e, t) {
|
|
4291
4293
|
const n = [];
|
|
4292
4294
|
function r(o) {
|
|
4293
4295
|
var a;
|
|
@@ -4298,7 +4300,7 @@ function od(e, t) {
|
|
|
4298
4300
|
for (const o of e) r(o);
|
|
4299
4301
|
return n;
|
|
4300
4302
|
}
|
|
4301
|
-
function
|
|
4303
|
+
function Gu(e, t) {
|
|
4302
4304
|
const n = /* @__PURE__ */ new Set();
|
|
4303
4305
|
let r = null;
|
|
4304
4306
|
function o(i) {
|
|
@@ -4314,7 +4316,7 @@ function zu(e, t) {
|
|
|
4314
4316
|
for (const i of e) o(i);
|
|
4315
4317
|
return r;
|
|
4316
4318
|
}
|
|
4317
|
-
function
|
|
4319
|
+
function Vu(e, t) {
|
|
4318
4320
|
const {
|
|
4319
4321
|
reader: n,
|
|
4320
4322
|
defaultExpanded: r,
|
|
@@ -4326,24 +4328,24 @@ function Wu(e, t) {
|
|
|
4326
4328
|
anchor: d,
|
|
4327
4329
|
search: u,
|
|
4328
4330
|
onExpanded: p,
|
|
4329
|
-
onChecked:
|
|
4330
|
-
onActive:
|
|
4331
|
+
onChecked: f,
|
|
4332
|
+
onActive: h,
|
|
4331
4333
|
onAnchor: m,
|
|
4332
|
-
onSearch:
|
|
4333
|
-
onActivate:
|
|
4334
|
+
onSearch: y,
|
|
4335
|
+
onActivate: b,
|
|
4334
4336
|
onLoadChildren: v,
|
|
4335
4337
|
virtual: g
|
|
4336
4338
|
} = t, [N, L] = B(
|
|
4337
4339
|
() => new Set(r ?? [])
|
|
4338
4340
|
), [F, D] = B(
|
|
4339
4341
|
() => new Set(o ?? [])
|
|
4340
|
-
), [_, E] = B(i), [
|
|
4342
|
+
), [_, E] = B(i), [w, O] = B(null), [j, U] = B(""), [C, G] = B(0), S = se(
|
|
4341
4343
|
() => ({
|
|
4342
4344
|
expanded: a ?? N,
|
|
4343
4345
|
checked: c ?? F,
|
|
4344
4346
|
active: l !== void 0 ? l : _,
|
|
4345
|
-
anchor: d !== void 0 ? d :
|
|
4346
|
-
search: u ??
|
|
4347
|
+
anchor: d !== void 0 ? d : w,
|
|
4348
|
+
search: u ?? j
|
|
4347
4349
|
}),
|
|
4348
4350
|
[
|
|
4349
4351
|
a,
|
|
@@ -4353,19 +4355,19 @@ function Wu(e, t) {
|
|
|
4353
4355
|
l,
|
|
4354
4356
|
_,
|
|
4355
4357
|
d,
|
|
4356
|
-
|
|
4358
|
+
w,
|
|
4357
4359
|
u,
|
|
4358
|
-
|
|
4360
|
+
j
|
|
4359
4361
|
]
|
|
4360
4362
|
), X = se(
|
|
4361
|
-
() =>
|
|
4363
|
+
() => ed(e, n, S),
|
|
4362
4364
|
[e, n, S]
|
|
4363
4365
|
);
|
|
4364
4366
|
ne(() => {
|
|
4365
4367
|
}, [e, n]);
|
|
4366
|
-
const
|
|
4368
|
+
const H = Q(
|
|
4367
4369
|
(M) => {
|
|
4368
|
-
M.expanded !== S.expanded && (a === void 0 && L(M.expanded), p == null || p(M.expanded)), M.checked !== S.checked && (c === void 0 && D(M.checked),
|
|
4370
|
+
M.expanded !== S.expanded && (a === void 0 && L(M.expanded), p == null || p(M.expanded)), M.checked !== S.checked && (c === void 0 && D(M.checked), f == null || f(M.checked)), M.anchor !== S.anchor && (d === void 0 && O(M.anchor), m == null || m(M.anchor)), M.active !== S.active && (l === void 0 && E(M.active), h == null || h(M.active));
|
|
4369
4371
|
},
|
|
4370
4372
|
[
|
|
4371
4373
|
S,
|
|
@@ -4374,90 +4376,90 @@ function Wu(e, t) {
|
|
|
4374
4376
|
l,
|
|
4375
4377
|
d,
|
|
4376
4378
|
p,
|
|
4377
|
-
h,
|
|
4378
4379
|
f,
|
|
4380
|
+
h,
|
|
4379
4381
|
m
|
|
4380
4382
|
]
|
|
4381
|
-
),
|
|
4383
|
+
), Y = Q(
|
|
4382
4384
|
(M) => X.find((V) => V.key === M),
|
|
4383
4385
|
[X]
|
|
4384
4386
|
), pe = Q(
|
|
4385
4387
|
(M) => {
|
|
4386
|
-
const V =
|
|
4388
|
+
const V = Y(M);
|
|
4387
4389
|
if (V === void 0 || !V.branch || V.empty) return;
|
|
4388
4390
|
const x = !V.expanded;
|
|
4389
|
-
|
|
4391
|
+
H(x ? Jn(S, M) : er(S, M)), x && V.unloaded && (v == null || v(V.node));
|
|
4390
4392
|
},
|
|
4391
|
-
[
|
|
4393
|
+
[Y, S, H, v]
|
|
4392
4394
|
), A = Q(
|
|
4393
4395
|
(M) => {
|
|
4394
|
-
|
|
4396
|
+
H(vn(yn(e, n, S, M), M));
|
|
4395
4397
|
},
|
|
4396
|
-
[e, n, S,
|
|
4398
|
+
[e, n, S, H]
|
|
4397
4399
|
), I = Q(
|
|
4398
4400
|
(M) => {
|
|
4399
4401
|
const V = S.anchor ?? S.active;
|
|
4400
|
-
V !== null &&
|
|
4402
|
+
V !== null && H(zt(e, n, S, td(X, V, M), !0));
|
|
4401
4403
|
},
|
|
4402
|
-
[e, n, S, X,
|
|
4404
|
+
[e, n, S, X, H]
|
|
4403
4405
|
), z = Q(
|
|
4404
4406
|
(M) => {
|
|
4405
4407
|
const V = gn(X, S, M);
|
|
4406
|
-
V.active === null || V.active === S.active ||
|
|
4408
|
+
V.active === null || V.active === S.active || H(
|
|
4407
4409
|
vn(
|
|
4408
|
-
|
|
4410
|
+
yn(e, n, V, V.active),
|
|
4409
4411
|
V.active
|
|
4410
4412
|
)
|
|
4411
4413
|
);
|
|
4412
4414
|
},
|
|
4413
|
-
[X, S, e, n,
|
|
4415
|
+
[X, S, e, n, H]
|
|
4414
4416
|
), te = Q(
|
|
4415
|
-
() =>
|
|
4416
|
-
[e, n, S,
|
|
4417
|
+
() => H(nd(e, n, S)),
|
|
4418
|
+
[e, n, S, H]
|
|
4417
4419
|
), ke = Q(
|
|
4418
4420
|
(M) => {
|
|
4419
|
-
|
|
4420
|
-
const V =
|
|
4421
|
-
V !== void 0 && (
|
|
4421
|
+
H(Ge(S, M));
|
|
4422
|
+
const V = Y(M);
|
|
4423
|
+
V !== void 0 && (b == null || b(V.node));
|
|
4422
4424
|
},
|
|
4423
|
-
[S,
|
|
4425
|
+
[S, H, Y, b]
|
|
4424
4426
|
), Ee = Q(
|
|
4425
|
-
(M) =>
|
|
4426
|
-
[X, S,
|
|
4427
|
+
(M) => H(gn(X, S, M)),
|
|
4428
|
+
[X, S, H]
|
|
4427
4429
|
), oe = Q(
|
|
4428
4430
|
(M) => {
|
|
4429
|
-
const { snapshot: V, reached: x } =
|
|
4430
|
-
return x === null ? null : (
|
|
4431
|
+
const { snapshot: V, reached: x } = sd(e, n, S, M);
|
|
4432
|
+
return x === null ? null : (H(Ge(V, x)), G((W) => W + 1), x);
|
|
4431
4433
|
},
|
|
4432
|
-
[e, n, S,
|
|
4433
|
-
),
|
|
4434
|
+
[e, n, S, H]
|
|
4435
|
+
), K = Q(
|
|
4434
4436
|
(M) => {
|
|
4435
|
-
const V =
|
|
4437
|
+
const V = od(e, n, M);
|
|
4436
4438
|
return V === null ? null : oe(V);
|
|
4437
4439
|
},
|
|
4438
4440
|
[e, n, oe]
|
|
4439
4441
|
), _e = Q(() => {
|
|
4440
|
-
|
|
4441
|
-
}, [e, n, S,
|
|
4442
|
-
|
|
4443
|
-
}, [S,
|
|
4442
|
+
H({ ...S, expanded: new Set(id(e, n)) });
|
|
4443
|
+
}, [e, n, S, H]), ye = Q(() => {
|
|
4444
|
+
H({ ...S, expanded: /* @__PURE__ */ new Set() });
|
|
4445
|
+
}, [S, H]), xe = Q(
|
|
4444
4446
|
(M) => {
|
|
4445
|
-
const V =
|
|
4446
|
-
V !== null &&
|
|
4447
|
+
const V = rd(X, M, S.active);
|
|
4448
|
+
V !== null && H(Ge(S, V));
|
|
4447
4449
|
},
|
|
4448
|
-
[X, S,
|
|
4450
|
+
[X, S, H]
|
|
4449
4451
|
), $ = Q(
|
|
4450
4452
|
(M) => {
|
|
4451
|
-
u === void 0 &&
|
|
4453
|
+
u === void 0 && U(M), y == null || y(M);
|
|
4452
4454
|
},
|
|
4453
|
-
[u,
|
|
4454
|
-
),
|
|
4455
|
+
[u, y]
|
|
4456
|
+
), q = Zl(g ? X.length : 0, {
|
|
4455
4457
|
rowHeight: (g == null ? void 0 : g.rowHeight) ?? 0,
|
|
4456
4458
|
overscan: g == null ? void 0 : g.overscan
|
|
4457
4459
|
});
|
|
4458
4460
|
return {
|
|
4459
4461
|
flattening: X,
|
|
4460
|
-
virtual: g ?
|
|
4462
|
+
virtual: g ? q : void 0,
|
|
4461
4463
|
active: S.active,
|
|
4462
4464
|
search: S.search,
|
|
4463
4465
|
toggleExpanded: pe,
|
|
@@ -4465,20 +4467,20 @@ function Wu(e, t) {
|
|
|
4465
4467
|
activate: ke,
|
|
4466
4468
|
move: Ee,
|
|
4467
4469
|
setSearch: $,
|
|
4468
|
-
revealNode:
|
|
4470
|
+
revealNode: K,
|
|
4469
4471
|
revealPath: oe,
|
|
4470
4472
|
revealCount: C,
|
|
4471
4473
|
expandAll: _e,
|
|
4472
|
-
collapseAll:
|
|
4474
|
+
collapseAll: ye,
|
|
4473
4475
|
typeahead: xe,
|
|
4474
4476
|
checkTo: I,
|
|
4475
4477
|
moveAndCheck: z,
|
|
4476
4478
|
toggleAll: te
|
|
4477
4479
|
};
|
|
4478
4480
|
}
|
|
4479
|
-
const
|
|
4480
|
-
text:
|
|
4481
|
-
heading:
|
|
4481
|
+
const ad = "_text_yelu1_7 _text_1hv7a_23", cd = "_heading_yelu1_11 _text_1hv7a_23", ld = "_trackingDisplay_yelu1_100", dd = "_trackingTight_yelu1_104", ud = "_mono_yelu1_110", fd = "_link_yelu1_119", Se = {
|
|
4482
|
+
text: ad,
|
|
4483
|
+
heading: cd,
|
|
4482
4484
|
"size-xs": "_size-xs_yelu1_30",
|
|
4483
4485
|
"size-sm": "_size-sm_yelu1_33",
|
|
4484
4486
|
"size-md": "_size-md_yelu1_36",
|
|
@@ -4497,11 +4499,11 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4497
4499
|
"tracking-caps": "_tracking-caps_yelu1_85",
|
|
4498
4500
|
"leading-normal": "_leading-normal_yelu1_92",
|
|
4499
4501
|
"leading-tight": "_leading-tight_yelu1_95",
|
|
4500
|
-
trackingDisplay:
|
|
4501
|
-
trackingTight:
|
|
4502
|
-
mono:
|
|
4503
|
-
link:
|
|
4504
|
-
},
|
|
4502
|
+
trackingDisplay: ld,
|
|
4503
|
+
trackingTight: dd,
|
|
4504
|
+
mono: ud,
|
|
4505
|
+
link: fd
|
|
4506
|
+
}, ju = ie(function({
|
|
4505
4507
|
as: t = "p",
|
|
4506
4508
|
size: n = "md",
|
|
4507
4509
|
weight: r = "regular",
|
|
@@ -4531,15 +4533,15 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4531
4533
|
children: d
|
|
4532
4534
|
}
|
|
4533
4535
|
);
|
|
4534
|
-
}),
|
|
4536
|
+
}), hd = {
|
|
4535
4537
|
1: "2xl",
|
|
4536
4538
|
2: "xl",
|
|
4537
4539
|
3: "lg",
|
|
4538
4540
|
4: "md",
|
|
4539
4541
|
5: "sm",
|
|
4540
4542
|
6: "xs"
|
|
4541
|
-
},
|
|
4542
|
-
const d = `h${t}`, u = n ??
|
|
4543
|
+
}, Uu = ie(function({ level: t = 2, size: n, weight: r = "semibold", tone: o = "default", className: i, children: a, ...c }, l) {
|
|
4544
|
+
const d = `h${t}`, u = n ?? hd[t];
|
|
4543
4545
|
return /* @__PURE__ */ s(
|
|
4544
4546
|
d,
|
|
4545
4547
|
{
|
|
@@ -4558,7 +4560,7 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4558
4560
|
children: a
|
|
4559
4561
|
}
|
|
4560
4562
|
);
|
|
4561
|
-
}),
|
|
4563
|
+
}), Yu = ie(function({ size: t = "md", external: n = !1, className: r, children: o, ...i }, a) {
|
|
4562
4564
|
return /* @__PURE__ */ s(
|
|
4563
4565
|
"a",
|
|
4564
4566
|
{
|
|
@@ -4569,18 +4571,18 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4569
4571
|
children: o
|
|
4570
4572
|
}
|
|
4571
4573
|
);
|
|
4572
|
-
}),
|
|
4573
|
-
tooltip:
|
|
4574
|
+
}), pd = "_tooltip_t3fvi_4 _text_1hv7a_23", md = {
|
|
4575
|
+
tooltip: pd
|
|
4574
4576
|
};
|
|
4575
|
-
function
|
|
4576
|
-
const [r, o] = B(!1), [i, a] = B(null), [c, l] = B(null), d = Qt(), u = R(null), p = R(null),
|
|
4577
|
-
|
|
4578
|
-
},
|
|
4579
|
-
|
|
4577
|
+
function _d({ content: e, children: t, delay: n = 300 }) {
|
|
4578
|
+
const [r, o] = B(!1), [i, a] = B(null), [c, l] = B(null), d = Qt(), u = R(null), p = R(null), f = R(null), h = De(), m = En(r, p, "--u-duration-exit-fast"), y = () => {
|
|
4579
|
+
f.current && clearTimeout(f.current), f.current = setTimeout(() => o(!0), n);
|
|
4580
|
+
}, b = () => {
|
|
4581
|
+
f.current && clearTimeout(f.current), o(!1);
|
|
4580
4582
|
};
|
|
4581
|
-
|
|
4583
|
+
Oe(() => {
|
|
4582
4584
|
r && l(Pn(u.current, d));
|
|
4583
|
-
}, [r, d]),
|
|
4585
|
+
}, [r, d]), Oe(() => {
|
|
4584
4586
|
var F;
|
|
4585
4587
|
if (!r || !c) return;
|
|
4586
4588
|
const g = (F = u.current) == null ? void 0 : F.getBoundingClientRect(), N = p.current;
|
|
@@ -4591,17 +4593,17 @@ function pd({ content: e, children: t, delay: n = 300 }) {
|
|
|
4591
4593
|
Rn(),
|
|
4592
4594
|
{ align: "center", side: "top", offset: 8 }
|
|
4593
4595
|
);
|
|
4594
|
-
a({ top: L.top, left: L.left, "--_origin":
|
|
4596
|
+
a({ top: L.top, left: L.left, "--_origin": Yt(L.side, "center") });
|
|
4595
4597
|
}, [r, c, e]), ne(() => {
|
|
4596
4598
|
if (!r) return;
|
|
4597
4599
|
const g = (N) => {
|
|
4598
|
-
N.key === "Escape" &&
|
|
4600
|
+
N.key === "Escape" && b();
|
|
4599
4601
|
};
|
|
4600
|
-
return window.addEventListener("keydown", g), window.addEventListener("scroll",
|
|
4601
|
-
window.removeEventListener("keydown", g), window.removeEventListener("scroll",
|
|
4602
|
+
return window.addEventListener("keydown", g), window.addEventListener("scroll", b, !0), () => {
|
|
4603
|
+
window.removeEventListener("keydown", g), window.removeEventListener("scroll", b, !0);
|
|
4602
4604
|
};
|
|
4603
4605
|
}, [r]), ne(() => () => {
|
|
4604
|
-
|
|
4606
|
+
f.current && clearTimeout(f.current);
|
|
4605
4607
|
}, []);
|
|
4606
4608
|
const v = t.props;
|
|
4607
4609
|
return /* @__PURE__ */ k($e, { children: [
|
|
@@ -4609,32 +4611,32 @@ function pd({ content: e, children: t, delay: n = 300 }) {
|
|
|
4609
4611
|
ref: u,
|
|
4610
4612
|
/* Added to the child's own description, not put in its place: a field's
|
|
4611
4613
|
hint went silent for as long as the tooltip stood. */
|
|
4612
|
-
"aria-describedby": [v["aria-describedby"], r ?
|
|
4614
|
+
"aria-describedby": [v["aria-describedby"], r ? h : void 0].filter(Boolean).join(" ") || void 0,
|
|
4613
4615
|
onPointerEnter: (g) => {
|
|
4614
4616
|
var N;
|
|
4615
|
-
(N = v.onPointerEnter) == null || N.call(v, g),
|
|
4617
|
+
(N = v.onPointerEnter) == null || N.call(v, g), y();
|
|
4616
4618
|
},
|
|
4617
4619
|
onPointerLeave: (g) => {
|
|
4618
4620
|
var N;
|
|
4619
|
-
(N = v.onPointerLeave) == null || N.call(v, g),
|
|
4621
|
+
(N = v.onPointerLeave) == null || N.call(v, g), b();
|
|
4620
4622
|
},
|
|
4621
4623
|
onFocus: (g) => {
|
|
4622
4624
|
var N;
|
|
4623
|
-
(N = v.onFocus) == null || N.call(v, g),
|
|
4625
|
+
(N = v.onFocus) == null || N.call(v, g), y();
|
|
4624
4626
|
},
|
|
4625
4627
|
onBlur: (g) => {
|
|
4626
4628
|
var N;
|
|
4627
|
-
(N = v.onBlur) == null || N.call(v, g),
|
|
4629
|
+
(N = v.onBlur) == null || N.call(v, g), b();
|
|
4628
4630
|
}
|
|
4629
4631
|
}),
|
|
4630
|
-
m && c &&
|
|
4632
|
+
m && c && jt(
|
|
4631
4633
|
/* @__PURE__ */ s(
|
|
4632
4634
|
"div",
|
|
4633
4635
|
{
|
|
4634
4636
|
ref: p,
|
|
4635
|
-
id:
|
|
4637
|
+
id: h,
|
|
4636
4638
|
role: "tooltip",
|
|
4637
|
-
className:
|
|
4639
|
+
className: md.tooltip,
|
|
4638
4640
|
"data-closing": !r || void 0,
|
|
4639
4641
|
"aria-hidden": !r || void 0,
|
|
4640
4642
|
style: { ...i, visibility: i ? void 0 : "hidden" },
|
|
@@ -4651,25 +4653,25 @@ const Wt = {
|
|
|
4651
4653
|
warning: 2,
|
|
4652
4654
|
alarm: 3
|
|
4653
4655
|
};
|
|
4654
|
-
function
|
|
4656
|
+
function Ku(e) {
|
|
4655
4657
|
return Wt[e];
|
|
4656
4658
|
}
|
|
4657
|
-
function
|
|
4659
|
+
function gd(e) {
|
|
4658
4660
|
return typeof e == "number" && Number.isFinite(e);
|
|
4659
4661
|
}
|
|
4660
|
-
function
|
|
4662
|
+
function vd(e, t) {
|
|
4661
4663
|
if (!Number.isFinite(t.value)) return null;
|
|
4662
4664
|
const n = t.side === "upper" ? e - t.value : t.value - e;
|
|
4663
4665
|
return n > 0 ? { limit: t, excess: n } : null;
|
|
4664
4666
|
}
|
|
4665
|
-
function
|
|
4667
|
+
function yd(e, t) {
|
|
4666
4668
|
const n = Wt[e.limit.severity], r = Wt[t.limit.severity];
|
|
4667
4669
|
return n !== r ? n > r : e.excess > t.excess;
|
|
4668
4670
|
}
|
|
4669
|
-
function
|
|
4670
|
-
if (!
|
|
4671
|
-
const r = (t.limits ?? []).map((a) =>
|
|
4672
|
-
(a, c) => a === null ||
|
|
4671
|
+
function bd(e, t = {}) {
|
|
4672
|
+
if (!gd(e)) return { verdict: "unknown" };
|
|
4673
|
+
const r = (t.limits ?? []).map((a) => vd(e, a)).filter((a) => a !== null).reduce(
|
|
4674
|
+
(a, c) => a === null || yd(c, a) ? c : a,
|
|
4673
4675
|
null
|
|
4674
4676
|
), o = r === null ? { verdict: "ok" } : {
|
|
4675
4677
|
verdict: r.limit.severity,
|
|
@@ -4678,36 +4680,36 @@ function vd(e, t = {}) {
|
|
|
4678
4680
|
}, i = t.target;
|
|
4679
4681
|
return i !== void 0 && Number.isFinite(i) && (o.deviation = e - i), o;
|
|
4680
4682
|
}
|
|
4681
|
-
function
|
|
4683
|
+
function bn(e) {
|
|
4682
4684
|
if (e == null) return null;
|
|
4683
4685
|
const t = e instanceof Date ? e.getTime() : e;
|
|
4684
4686
|
return Number.isFinite(t) ? t : null;
|
|
4685
4687
|
}
|
|
4686
|
-
const
|
|
4688
|
+
const wn = 6e4, wd = 1e3, kd = 10;
|
|
4687
4689
|
function rr(e, t) {
|
|
4688
|
-
const n =
|
|
4690
|
+
const n = bn(e), r = bn(t);
|
|
4689
4691
|
return n === null || r === null ? null : Math.max(0, r - n);
|
|
4690
4692
|
}
|
|
4691
|
-
function
|
|
4693
|
+
function xd(e, t, n) {
|
|
4692
4694
|
const r = rr(e, t);
|
|
4693
4695
|
return r === null || r >= n.lost ? "lost" : r >= n.stale ? "stale" : "fresh";
|
|
4694
4696
|
}
|
|
4695
|
-
function
|
|
4697
|
+
function Nd(e) {
|
|
4696
4698
|
const t = [e.stale, e.lost].filter(
|
|
4697
4699
|
(o) => Number.isFinite(o) && o > 0
|
|
4698
4700
|
);
|
|
4699
|
-
if (t.length === 0) return
|
|
4700
|
-
const n = Math.min(...t), r = Math.round(n /
|
|
4701
|
-
return Math.min(
|
|
4701
|
+
if (t.length === 0) return wn;
|
|
4702
|
+
const n = Math.min(...t), r = Math.round(n / kd);
|
|
4703
|
+
return Math.min(wn, Math.max(wd, r));
|
|
4702
4704
|
}
|
|
4703
|
-
function
|
|
4704
|
-
const n = e instanceof Date ? e.getTime() : e, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: i } = t, a =
|
|
4705
|
+
function $d(e, t) {
|
|
4706
|
+
const n = e instanceof Date ? e.getTime() : e, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: i } = t, a = Nd({ stale: o, lost: i }), [c, l] = B(() => Date.now());
|
|
4705
4707
|
return ne(() => {
|
|
4706
4708
|
const d = setInterval(() => l(Date.now()), a);
|
|
4707
4709
|
return () => clearInterval(d);
|
|
4708
4710
|
}, [a]), se(
|
|
4709
4711
|
() => ({
|
|
4710
|
-
freshness:
|
|
4712
|
+
freshness: xd(r, c, {
|
|
4711
4713
|
stale: o,
|
|
4712
4714
|
lost: i
|
|
4713
4715
|
}),
|
|
@@ -4717,19 +4719,19 @@ function xd(e, t) {
|
|
|
4717
4719
|
[r, c, o, i]
|
|
4718
4720
|
);
|
|
4719
4721
|
}
|
|
4720
|
-
const
|
|
4721
|
-
stat:
|
|
4722
|
-
label:
|
|
4723
|
-
valueRow:
|
|
4724
|
-
value:
|
|
4725
|
-
unit:
|
|
4726
|
-
verdict:
|
|
4727
|
-
deviation:
|
|
4728
|
-
history:
|
|
4729
|
-
asOf:
|
|
4730
|
-
age:
|
|
4722
|
+
const Dd = "_stat_hgd6y_9 _text_1hv7a_23", Td = "_label_hgd6y_22", Sd = "_valueRow_hgd6y_29", Md = "_value_hgd6y_29", Cd = "_unit_hgd6y_48", Ad = "_verdict_hgd6y_55", Ld = "_deviation_hgd6y_92", Rd = "_history_hgd6y_97", Pd = "_asOf_hgd6y_101", Ed = "_age_hgd6y_119", We = {
|
|
4723
|
+
stat: Dd,
|
|
4724
|
+
label: Td,
|
|
4725
|
+
valueRow: Sd,
|
|
4726
|
+
value: Md,
|
|
4727
|
+
unit: Cd,
|
|
4728
|
+
verdict: Ad,
|
|
4729
|
+
deviation: Ld,
|
|
4730
|
+
history: Rd,
|
|
4731
|
+
asOf: Pd,
|
|
4732
|
+
age: Ed
|
|
4731
4733
|
};
|
|
4732
|
-
function
|
|
4734
|
+
function Fd(e, t) {
|
|
4733
4735
|
switch (e) {
|
|
4734
4736
|
case "alarm":
|
|
4735
4737
|
return t.verdictAlarm;
|
|
@@ -4741,22 +4743,22 @@ function Pd(e, t) {
|
|
|
4741
4743
|
return t.verdictOk;
|
|
4742
4744
|
}
|
|
4743
4745
|
}
|
|
4744
|
-
function
|
|
4746
|
+
function Id(e, t, n, r) {
|
|
4745
4747
|
if (e === void 0) return null;
|
|
4746
4748
|
const o = n.number(Math.abs(e), t);
|
|
4747
4749
|
return e === 0 ? r.deviationOnTarget : e > 0 ? r.deviationAbove(o) : r.deviationBelow(o);
|
|
4748
4750
|
}
|
|
4749
|
-
function
|
|
4751
|
+
function Bd({
|
|
4750
4752
|
asOf: e,
|
|
4751
4753
|
ages: t
|
|
4752
4754
|
}) {
|
|
4753
|
-
const n =
|
|
4755
|
+
const n = je(), r = ce(), o = $d(e, t), i = o.freshness === "lost" ? r.freshnessDisconnected : o.freshness === "stale" ? r.freshnessStale : r.freshnessFresh, a = o.age;
|
|
4754
4756
|
return /* @__PURE__ */ k("span", { className: We.asOf, "data-freshness": o.freshness, children: [
|
|
4755
4757
|
i,
|
|
4756
4758
|
a !== null && /* @__PURE__ */ s("span", { className: We.age, children: n.relative(a) })
|
|
4757
4759
|
] });
|
|
4758
4760
|
}
|
|
4759
|
-
function
|
|
4761
|
+
function Xu({
|
|
4760
4762
|
label: e,
|
|
4761
4763
|
value: t,
|
|
4762
4764
|
unit: n,
|
|
@@ -4769,25 +4771,25 @@ function Ku({
|
|
|
4769
4771
|
...d
|
|
4770
4772
|
}) {
|
|
4771
4773
|
var F;
|
|
4772
|
-
const u =
|
|
4774
|
+
const u = je(), p = ce(), f = bd(t, o), h = f.verdict, m = Fd(h, p), y = h !== "unknown", v = (((F = o == null ? void 0 : o.limits) == null ? void 0 : F.length) ?? 0) > 0 || !y, g = Id(f.deviation, r, u, p), N = y ? u.number(t, r) : p.statAbsentValue, L = `${e}: ${y ? `${N}${n ? ` ${n}` : ""}` : m}${y && v && h !== "ok" ? `, ${m}` : ""}`;
|
|
4773
4775
|
return /* @__PURE__ */ k(
|
|
4774
4776
|
"div",
|
|
4775
4777
|
{
|
|
4776
4778
|
role: "group",
|
|
4777
4779
|
"aria-label": L,
|
|
4778
|
-
"data-verdict": v ?
|
|
4780
|
+
"data-verdict": v ? h : void 0,
|
|
4779
4781
|
className: P(We.stat, l),
|
|
4780
4782
|
...d,
|
|
4781
4783
|
children: [
|
|
4782
4784
|
/* @__PURE__ */ s("span", { className: We.label, children: e }),
|
|
4783
4785
|
/* @__PURE__ */ k("span", { className: We.valueRow, children: [
|
|
4784
4786
|
/* @__PURE__ */ s("span", { className: We.value, children: N }),
|
|
4785
|
-
|
|
4787
|
+
y && n !== void 0 && /* @__PURE__ */ s("span", { className: We.unit, children: n })
|
|
4786
4788
|
] }),
|
|
4787
|
-
v && /* @__PURE__ */ s("span", { className: We.verdict, "data-verdict":
|
|
4788
|
-
g !== null &&
|
|
4789
|
-
i !== void 0 && i.length >= 2 && /* @__PURE__ */ s(
|
|
4790
|
-
a !== void 0 && c !== void 0 && /* @__PURE__ */ s(
|
|
4789
|
+
v && /* @__PURE__ */ s("span", { className: We.verdict, "data-verdict": h, children: m }),
|
|
4790
|
+
g !== null && y && /* @__PURE__ */ s("span", { className: We.deviation, children: g }),
|
|
4791
|
+
i !== void 0 && i.length >= 2 && /* @__PURE__ */ s(qs, { data: i, className: We.history, "aria-hidden": "true" }),
|
|
4792
|
+
a !== void 0 && c !== void 0 && /* @__PURE__ */ s(Bd, { asOf: a ?? null, ages: c })
|
|
4791
4793
|
]
|
|
4792
4794
|
}
|
|
4793
4795
|
);
|
|
@@ -4796,7 +4798,7 @@ const or = "bottom", kt = ["top", "right", "bottom", "left"], kn = ["bottom", "t
|
|
|
4796
4798
|
function xt(e) {
|
|
4797
4799
|
return e === "left" || e === "right";
|
|
4798
4800
|
}
|
|
4799
|
-
function
|
|
4801
|
+
function qd(e, t) {
|
|
4800
4802
|
if (t.width <= 0 || t.height <= 0) return or;
|
|
4801
4803
|
const n = (e.x - (t.left + t.width / 2)) / (t.width / 2), r = (e.y - (t.top + t.height / 2)) / (t.height / 2);
|
|
4802
4804
|
return Math.abs(n) > Math.abs(r) ? n > 0 ? "right" : "left" : r < 0 ? "top" : "bottom";
|
|
@@ -4808,7 +4810,7 @@ function Gt(e, t, n, r) {
|
|
|
4808
4810
|
const o = sr(t, r), i = xt(e), a = (i ? n.height : n.width) - 2 * r.margin, c = (i ? n.width : n.height) - 2 * r.margin;
|
|
4809
4811
|
return o <= a && r.thickness <= c;
|
|
4810
4812
|
}
|
|
4811
|
-
function
|
|
4813
|
+
function Od(e) {
|
|
4812
4814
|
switch (e) {
|
|
4813
4815
|
case "ArrowUp":
|
|
4814
4816
|
return "top";
|
|
@@ -4826,19 +4828,19 @@ function xn(e, t) {
|
|
|
4826
4828
|
const n = Math.abs(kt.indexOf(e) - kt.indexOf(t));
|
|
4827
4829
|
return Math.min(n, kt.length - n);
|
|
4828
4830
|
}
|
|
4829
|
-
function
|
|
4831
|
+
function Hd(e, t, n, r) {
|
|
4830
4832
|
return [...kt].sort(
|
|
4831
4833
|
(o, i) => xn(e, o) - xn(e, i) || kn.indexOf(o) - kn.indexOf(i)
|
|
4832
4834
|
).find((o) => Gt(o, t, n, r));
|
|
4833
4835
|
}
|
|
4834
|
-
const
|
|
4835
|
-
root:
|
|
4836
|
-
strip:
|
|
4837
|
-
gripSlot:
|
|
4838
|
-
grip:
|
|
4839
|
-
tool:
|
|
4840
|
-
inMode:
|
|
4841
|
-
refusal:
|
|
4836
|
+
const zd = "_root_1oavz_22 _text_1hv7a_23", Wd = "_strip_1oavz_31", Gd = "_gripSlot_1oavz_111", Vd = "_grip_1oavz_111 _ring_1hv7a_65", jd = "_tool_1oavz_161 _ring_1hv7a_65", Ud = "_inMode_1oavz_195", Yd = "_refusal_1oavz_211", ot = {
|
|
4837
|
+
root: zd,
|
|
4838
|
+
strip: Wd,
|
|
4839
|
+
gripSlot: Gd,
|
|
4840
|
+
grip: Vd,
|
|
4841
|
+
tool: jd,
|
|
4842
|
+
inMode: Ud,
|
|
4843
|
+
refusal: Yd
|
|
4842
4844
|
};
|
|
4843
4845
|
function Et(e) {
|
|
4844
4846
|
return Array.from(e.children);
|
|
@@ -4847,7 +4849,7 @@ function gt(e, t) {
|
|
|
4847
4849
|
const n = Number.parseFloat(e.getPropertyValue(t));
|
|
4848
4850
|
return Number.isFinite(n) ? n : 0;
|
|
4849
4851
|
}
|
|
4850
|
-
const
|
|
4852
|
+
const Qu = ie(function({
|
|
4851
4853
|
tools: t,
|
|
4852
4854
|
place: n,
|
|
4853
4855
|
defaultPlace: r = or,
|
|
@@ -4860,9 +4862,9 @@ const ju = ie(function({
|
|
|
4860
4862
|
...u
|
|
4861
4863
|
}, p) {
|
|
4862
4864
|
var xe;
|
|
4863
|
-
const
|
|
4864
|
-
Vt(p, () =>
|
|
4865
|
-
const [
|
|
4865
|
+
const f = ce(), h = R(null), m = R(null);
|
|
4866
|
+
Vt(p, () => h.current, []);
|
|
4867
|
+
const [y, b] = B(r), v = n !== void 0, g = n ?? y, N = R(g);
|
|
4866
4868
|
N.current = g;
|
|
4867
4869
|
const [L, F] = B(null), [D, _] = B(""), E = R(null);
|
|
4868
4870
|
ne(
|
|
@@ -4871,15 +4873,15 @@ const ju = ie(function({
|
|
|
4871
4873
|
},
|
|
4872
4874
|
[]
|
|
4873
4875
|
);
|
|
4874
|
-
const
|
|
4876
|
+
const w = Q(() => {
|
|
4875
4877
|
var de;
|
|
4876
4878
|
const $ = m.current;
|
|
4877
4879
|
if ($ === null) return null;
|
|
4878
|
-
const
|
|
4880
|
+
const q = Et($), M = q[0];
|
|
4879
4881
|
if (M === void 0) return null;
|
|
4880
4882
|
const V = $.getBoundingClientRect();
|
|
4881
4883
|
if (V.width === 0 && V.height === 0) return null;
|
|
4882
|
-
const x = getComputedStyle($), W = xt(N.current), ee = (
|
|
4884
|
+
const x = getComputedStyle($), W = xt(N.current), ee = (he) => W ? he.height : he.width, ae = (he) => W ? he.width : he.height, le = M.getBoundingClientRect(), ue = (de = q[1]) == null ? void 0 : de.getBoundingClientRect();
|
|
4883
4885
|
return {
|
|
4884
4886
|
tool: ue === void 0 ? 0 : ee(ue),
|
|
4885
4887
|
grip: ee(le),
|
|
@@ -4895,44 +4897,44 @@ const ju = ie(function({
|
|
|
4895
4897
|
position knows it only at the one the dock currently lies at. */
|
|
4896
4898
|
margin: gt(x, "--u-dock-margin")
|
|
4897
4899
|
};
|
|
4898
|
-
}, []),
|
|
4899
|
-
const $ =
|
|
4900
|
+
}, []), O = Q(() => {
|
|
4901
|
+
const $ = h.current;
|
|
4900
4902
|
if ($ === null) return null;
|
|
4901
|
-
const
|
|
4902
|
-
return { left:
|
|
4903
|
-
}, []),
|
|
4904
|
-
const
|
|
4905
|
-
return
|
|
4903
|
+
const q = $.getBoundingClientRect();
|
|
4904
|
+
return { left: q.left, top: q.top, width: q.width, height: q.height };
|
|
4905
|
+
}, []), j = R(null), U = R([]), C = Q(($) => {
|
|
4906
|
+
const q = m.current, M = h.current;
|
|
4907
|
+
return q === null || M === null ? null : {
|
|
4906
4908
|
place: $,
|
|
4907
4909
|
root: M.getBoundingClientRect(),
|
|
4908
|
-
strip:
|
|
4909
|
-
children: Et(
|
|
4910
|
+
strip: q.getBoundingClientRect(),
|
|
4911
|
+
children: Et(q).map((V) => V.getBoundingClientRect())
|
|
4910
4912
|
};
|
|
4911
4913
|
}, []), G = Q(() => {
|
|
4912
4914
|
E.current !== null && (clearTimeout(E.current), E.current = null), F(null);
|
|
4913
4915
|
}, []), S = Q(
|
|
4914
4916
|
($) => {
|
|
4915
|
-
$ !== N.current && (
|
|
4917
|
+
$ !== N.current && (j.current = C(N.current), G(), v || b($), N.current = $, o == null || o($), _(f.dockPlaced(f.dockPlace($))));
|
|
4916
4918
|
},
|
|
4917
|
-
[v, G, C, o,
|
|
4919
|
+
[v, G, C, o, f]
|
|
4918
4920
|
), X = Q(
|
|
4919
|
-
($,
|
|
4920
|
-
const x = sr(M,
|
|
4921
|
+
($, q, M, V) => {
|
|
4922
|
+
const x = sr(M, q);
|
|
4921
4923
|
F({
|
|
4922
4924
|
place: $,
|
|
4923
|
-
width: `${xt($) ?
|
|
4924
|
-
height: `${xt($) ? x :
|
|
4925
|
-
}), _(
|
|
4926
|
-
const W = m.current === null ? null : getComputedStyle(m.current), ee = W === null ? 0 :
|
|
4925
|
+
width: `${xt($) ? q.thickness : x}px`,
|
|
4926
|
+
height: `${xt($) ? x : q.thickness}px`
|
|
4927
|
+
}), _(f.dockNoPlace(f.dockPlace($))), E.current !== null && clearTimeout(E.current);
|
|
4928
|
+
const W = m.current === null ? null : getComputedStyle(m.current), ee = W === null ? 0 : yt(W, "--u-dock-refusal-duration");
|
|
4927
4929
|
E.current = V && ee > 0 ? setTimeout(() => {
|
|
4928
4930
|
E.current = null, F(null);
|
|
4929
4931
|
}, ee) : null;
|
|
4930
4932
|
},
|
|
4931
|
-
[
|
|
4932
|
-
),
|
|
4933
|
-
($,
|
|
4933
|
+
[f]
|
|
4934
|
+
), H = Q(
|
|
4935
|
+
($, q, M, V) => {
|
|
4934
4936
|
if ($ !== N.current) {
|
|
4935
|
-
if (
|
|
4937
|
+
if (q !== null && M !== null && !Gt($, t.length, q, M)) {
|
|
4936
4938
|
X($, M, t.length, V);
|
|
4937
4939
|
return;
|
|
4938
4940
|
}
|
|
@@ -4940,71 +4942,71 @@ const ju = ie(function({
|
|
|
4940
4942
|
}
|
|
4941
4943
|
},
|
|
4942
4944
|
[X, S, t.length]
|
|
4943
|
-
),
|
|
4945
|
+
), Y = R(null);
|
|
4944
4946
|
ne(() => () => {
|
|
4945
4947
|
var $;
|
|
4946
|
-
return ($ =
|
|
4948
|
+
return ($ = Y.current) == null ? void 0 : $.call(Y);
|
|
4947
4949
|
}, []);
|
|
4948
4950
|
const pe = ($) => {
|
|
4949
|
-
const
|
|
4951
|
+
const q = $.currentTarget;
|
|
4950
4952
|
if ($.button !== 0) return;
|
|
4951
4953
|
$.preventDefault();
|
|
4952
4954
|
const M = $.pointerId;
|
|
4953
|
-
|
|
4954
|
-
const V =
|
|
4955
|
+
q.setPointerCapture(M), q.dataset.dragging = "";
|
|
4956
|
+
const V = O(), x = w(), W = gt(getComputedStyle(q), "--u-dock-grip-travel"), ee = N.current;
|
|
4955
4957
|
let ae = $.clientX, le = $.clientY;
|
|
4956
|
-
const ue = (
|
|
4957
|
-
const et = (
|
|
4958
|
-
|
|
4959
|
-
}, de = (
|
|
4960
|
-
if (
|
|
4958
|
+
const ue = (fe, Fe) => {
|
|
4959
|
+
const et = (bt) => Math.max(-W, Math.min(W, bt));
|
|
4960
|
+
q.style.transform = `translate(${et(fe - ae)}px, ${et(Fe - le)}px)`;
|
|
4961
|
+
}, de = (fe) => {
|
|
4962
|
+
if (fe.pointerId !== M) return;
|
|
4961
4963
|
const Fe = N.current;
|
|
4962
4964
|
if (V !== null) {
|
|
4963
|
-
const et =
|
|
4964
|
-
et === N.current ? G() :
|
|
4965
|
+
const et = qd({ x: fe.clientX, y: fe.clientY }, V);
|
|
4966
|
+
et === N.current ? G() : H(et, V, x, !1);
|
|
4965
4967
|
}
|
|
4966
|
-
N.current !== Fe && (ae =
|
|
4967
|
-
},
|
|
4968
|
-
|
|
4969
|
-
},
|
|
4970
|
-
|
|
4971
|
-
},
|
|
4972
|
-
|
|
4968
|
+
N.current !== Fe && (ae = fe.clientX, le = fe.clientY), ue(fe.clientX, fe.clientY);
|
|
4969
|
+
}, he = () => {
|
|
4970
|
+
Y.current = null, q.removeEventListener("pointermove", de), q.removeEventListener("pointerup", be), q.removeEventListener("pointercancel", be), window.removeEventListener("keydown", we, !0), q.hasPointerCapture(M) && q.releasePointerCapture(M), delete q.dataset.dragging, q.style.transform = "", G();
|
|
4971
|
+
}, be = (fe) => {
|
|
4972
|
+
fe.pointerId === M && he();
|
|
4973
|
+
}, we = (fe) => {
|
|
4974
|
+
fe.key === "Escape" && (fe.preventDefault(), fe.stopPropagation(), S(ee), he());
|
|
4973
4975
|
};
|
|
4974
|
-
|
|
4976
|
+
q.addEventListener("pointermove", de), q.addEventListener("pointerup", be), q.addEventListener("pointercancel", be), window.addEventListener("keydown", we, !0), Y.current = he;
|
|
4975
4977
|
}, A = ($) => {
|
|
4976
|
-
const
|
|
4977
|
-
|
|
4978
|
+
const q = Od($.key);
|
|
4979
|
+
q !== void 0 && ($.preventDefault(), H(q, O(), w(), !0));
|
|
4978
4980
|
}, I = t.filter(($) => $.disabled !== !0), [z, te] = B(null), ke = ($) => {
|
|
4979
|
-
var
|
|
4980
|
-
return Array.from(((
|
|
4981
|
+
var q;
|
|
4982
|
+
return Array.from(((q = m.current) == null ? void 0 : q.querySelectorAll("[data-tool]")) ?? []).find((M) => M.dataset.tool === $);
|
|
4981
4983
|
}, Ee = z !== null && I.some(($) => $.id === z) ? z : ((xe = I[0]) == null ? void 0 : xe.id) ?? null, oe = ($) => {
|
|
4982
4984
|
var le;
|
|
4983
|
-
const
|
|
4984
|
-
if (!
|
|
4985
|
+
const q = $.key === "ArrowRight" || $.key === "ArrowDown", M = $.key === "ArrowLeft" || $.key === "ArrowUp", V = $.key === "Home", x = $.key === "End";
|
|
4986
|
+
if (!q && !M && !V && !x || I.length === 0) return;
|
|
4985
4987
|
$.preventDefault();
|
|
4986
4988
|
const W = I.findIndex(
|
|
4987
4989
|
(ue) => ue.id === $.currentTarget.dataset.tool
|
|
4988
|
-
), ee = V ? 0 : x ? I.length - 1 : tn(W === -1 ? 0 : W, I.length,
|
|
4990
|
+
), ee = V ? 0 : x ? I.length - 1 : tn(W === -1 ? 0 : W, I.length, q ? 1 : -1), ae = I[ee];
|
|
4989
4991
|
ae !== void 0 && (te(ae.id), (le = ke(ae.id)) == null || le.focus());
|
|
4990
|
-
},
|
|
4992
|
+
}, K = ($) => {
|
|
4991
4993
|
te($.id), c == null || c($.id), i !== void 0 && i !== $.id && (a == null || a($.id));
|
|
4992
4994
|
};
|
|
4993
|
-
|
|
4994
|
-
const $ =
|
|
4995
|
+
Oe(() => {
|
|
4996
|
+
const $ = j.current;
|
|
4995
4997
|
if ($ !== null && $.place === g) return;
|
|
4996
4998
|
_e();
|
|
4997
|
-
const
|
|
4998
|
-
|
|
4999
|
+
const q = C(g);
|
|
5000
|
+
j.current = q, !($ === null || q === null) && (St() || ye($, q));
|
|
4999
5001
|
});
|
|
5000
5002
|
function _e() {
|
|
5001
|
-
for (const $ of
|
|
5002
|
-
|
|
5003
|
+
for (const $ of U.current) $.cancel();
|
|
5004
|
+
U.current = [];
|
|
5003
5005
|
}
|
|
5004
|
-
function
|
|
5006
|
+
function ye($, q) {
|
|
5005
5007
|
const M = m.current;
|
|
5006
5008
|
if (M === null || typeof M.animate != "function") return;
|
|
5007
|
-
const V = getComputedStyle(M), x =
|
|
5009
|
+
const V = getComputedStyle(M), x = yt(V, "--u-duration-medium");
|
|
5008
5010
|
if (x <= 0) return;
|
|
5009
5011
|
const W = {
|
|
5010
5012
|
duration: x,
|
|
@@ -5021,31 +5023,31 @@ const ju = ie(function({
|
|
|
5021
5023
|
marginTop: "0px",
|
|
5022
5024
|
marginBottom: "0px"
|
|
5023
5025
|
});
|
|
5024
|
-
|
|
5025
|
-
const ae = Et(M), le = $.strip.left -
|
|
5026
|
-
ae.forEach((de,
|
|
5027
|
-
const
|
|
5028
|
-
if (
|
|
5029
|
-
const
|
|
5030
|
-
Math.abs(
|
|
5026
|
+
U.current.push(M.animate([ee($), ee(q)], W));
|
|
5027
|
+
const ae = Et(M), le = $.strip.left - q.strip.left, ue = $.strip.top - q.strip.top;
|
|
5028
|
+
ae.forEach((de, he) => {
|
|
5029
|
+
const be = $.children[he], we = q.children[he];
|
|
5030
|
+
if (be === void 0 || we === void 0) return;
|
|
5031
|
+
const fe = be.left - we.left - le, Fe = be.top - we.top - ue;
|
|
5032
|
+
Math.abs(fe) < 0.5 && Math.abs(Fe) < 0.5 || U.current.push(
|
|
5031
5033
|
de.animate(
|
|
5032
|
-
[{ transform: `translate(${
|
|
5034
|
+
[{ transform: `translate(${fe}px, ${Fe}px)` }, { transform: "none" }],
|
|
5033
5035
|
W
|
|
5034
5036
|
)
|
|
5035
5037
|
);
|
|
5036
5038
|
});
|
|
5037
5039
|
}
|
|
5038
5040
|
return ne(() => {
|
|
5039
|
-
const $ =
|
|
5041
|
+
const $ = h.current;
|
|
5040
5042
|
if ($ === null || typeof ResizeObserver > "u") return;
|
|
5041
|
-
const
|
|
5042
|
-
const M =
|
|
5043
|
+
const q = new ResizeObserver(() => {
|
|
5044
|
+
const M = O(), V = w();
|
|
5043
5045
|
if (M === null || V === null || Gt(N.current, t.length, M, V)) return;
|
|
5044
|
-
const x =
|
|
5046
|
+
const x = Hd(N.current, t.length, M, V);
|
|
5045
5047
|
x !== void 0 && S(x);
|
|
5046
5048
|
});
|
|
5047
|
-
return
|
|
5048
|
-
}, [
|
|
5049
|
+
return q.observe($), () => q.disconnect();
|
|
5050
|
+
}, [w, S, t.length, O]), /* @__PURE__ */ k("div", { ref: h, className: P(ot.root, d), ...u, children: [
|
|
5049
5051
|
/* @__PURE__ */ k(
|
|
5050
5052
|
"div",
|
|
5051
5053
|
{
|
|
@@ -5053,32 +5055,32 @@ const ju = ie(function({
|
|
|
5053
5055
|
"data-place": g,
|
|
5054
5056
|
className: ot.strip,
|
|
5055
5057
|
role: "group",
|
|
5056
|
-
"aria-label": l ??
|
|
5058
|
+
"aria-label": l ?? f.dockTools,
|
|
5057
5059
|
children: [
|
|
5058
5060
|
/* @__PURE__ */ s("span", { className: ot.gripSlot, children: /* @__PURE__ */ s(
|
|
5059
5061
|
"button",
|
|
5060
5062
|
{
|
|
5061
5063
|
type: "button",
|
|
5062
5064
|
className: ot.grip,
|
|
5063
|
-
"aria-label":
|
|
5065
|
+
"aria-label": f.dockGrip,
|
|
5064
5066
|
onPointerDown: pe,
|
|
5065
5067
|
onKeyDown: A,
|
|
5066
5068
|
children: /* @__PURE__ */ s(xr, {})
|
|
5067
5069
|
}
|
|
5068
5070
|
) }),
|
|
5069
5071
|
t.map(($) => {
|
|
5070
|
-
const
|
|
5071
|
-
return /* @__PURE__ */ s(
|
|
5072
|
+
const q = i !== void 0 && i === $.id;
|
|
5073
|
+
return /* @__PURE__ */ s(_d, { content: $.label, children: /* @__PURE__ */ s(
|
|
5072
5074
|
"button",
|
|
5073
5075
|
{
|
|
5074
5076
|
type: "button",
|
|
5075
5077
|
"data-tool": $.id,
|
|
5076
|
-
className: P(ot.tool,
|
|
5078
|
+
className: P(ot.tool, q && ot.inMode),
|
|
5077
5079
|
"aria-label": $.label,
|
|
5078
|
-
"aria-pressed":
|
|
5080
|
+
"aria-pressed": q ? !0 : void 0,
|
|
5079
5081
|
disabled: $.disabled,
|
|
5080
5082
|
tabIndex: $.id === Ee ? 0 : -1,
|
|
5081
|
-
onClick: () =>
|
|
5083
|
+
onClick: () => K($),
|
|
5082
5084
|
onKeyDown: oe,
|
|
5083
5085
|
onFocus: () => te($.id),
|
|
5084
5086
|
children: $.icon
|
|
@@ -5098,12 +5100,12 @@ const ju = ie(function({
|
|
|
5098
5100
|
"aria-hidden": "true"
|
|
5099
5101
|
}
|
|
5100
5102
|
),
|
|
5101
|
-
/* @__PURE__ */ s(
|
|
5103
|
+
/* @__PURE__ */ s(qn, { role: "status", "aria-live": "polite", children: D })
|
|
5102
5104
|
] });
|
|
5103
5105
|
});
|
|
5104
|
-
function
|
|
5106
|
+
function Zu({ open: e, onOpenChange: t, position: n, ariaLabel: r, children: o }) {
|
|
5105
5107
|
const i = R(null), a = R(null);
|
|
5106
|
-
|
|
5108
|
+
Oe(() => {
|
|
5107
5109
|
if (!e) return;
|
|
5108
5110
|
const u = document.activeElement;
|
|
5109
5111
|
a.current = u instanceof HTMLElement && u !== document.body ? u : null;
|
|
@@ -5150,118 +5152,118 @@ function Xu({ open: e, onOpenChange: t, position: n, ariaLabel: r, children: o }
|
|
|
5150
5152
|
] });
|
|
5151
5153
|
}
|
|
5152
5154
|
export {
|
|
5153
|
-
|
|
5155
|
+
tu as Alert,
|
|
5154
5156
|
kr as AngleGlyph,
|
|
5155
|
-
|
|
5157
|
+
nu as Badge,
|
|
5156
5158
|
ve as Button,
|
|
5157
5159
|
lo as ButtonGroup,
|
|
5158
5160
|
Mn as CalendarGlyph,
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5161
|
+
du as Card,
|
|
5162
|
+
fu as CardBody,
|
|
5163
|
+
uu as CardHeader,
|
|
5162
5164
|
en as Checkbox,
|
|
5163
5165
|
Cn as ClockGlyph,
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5166
|
+
mu as Combobox,
|
|
5167
|
+
hu as CommandPalette,
|
|
5168
|
+
Su as ConfirmDialog,
|
|
5169
|
+
Zu as ContextMenu,
|
|
5170
|
+
Ue as CrossGlyph,
|
|
5169
5171
|
Ft as DEFAULT_FORMATS,
|
|
5170
5172
|
Dn as DEFAULT_LANGUAGE,
|
|
5171
|
-
|
|
5173
|
+
yu as DEFAULT_PRESETS,
|
|
5172
5174
|
$n as DEFAULT_SEPARATORS,
|
|
5173
5175
|
it as DEFAULT_WORDING,
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5176
|
+
gu as DatePicker,
|
|
5177
|
+
bu as DateRangePicker,
|
|
5178
|
+
vu as DateTimePicker,
|
|
5177
5179
|
wu as DateTimeRangePicker,
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5180
|
+
ku as Divider,
|
|
5181
|
+
Qu as Dock,
|
|
5182
|
+
xu as EmptyState,
|
|
5183
|
+
ru as FormField,
|
|
5184
|
+
jr as FormFieldBoundary,
|
|
5185
|
+
$u as Grid,
|
|
5186
|
+
Jd as GridGlyph,
|
|
5185
5187
|
xr as GripGlyph,
|
|
5186
|
-
|
|
5188
|
+
Uu as Heading,
|
|
5187
5189
|
Vn as Input,
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5190
|
+
yr as LanguageProvider,
|
|
5191
|
+
Yu as Link,
|
|
5192
|
+
eu as MeasureGlyph,
|
|
5191
5193
|
oo as Menu,
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5194
|
+
au as MenuItem,
|
|
5195
|
+
cu as MenuSeparator,
|
|
5196
|
+
_u as Meter,
|
|
5197
|
+
wr as MinusGlyph,
|
|
5198
|
+
nc as Modal,
|
|
5199
|
+
Tu as ModalBody,
|
|
5200
|
+
oc as ModalFooter,
|
|
5201
|
+
rc as ModalHeader,
|
|
5202
|
+
Mu as MultiSelect,
|
|
5203
|
+
Du as NumberInput,
|
|
5204
|
+
br as PlusGlyph,
|
|
5203
5205
|
Je as Popover,
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5206
|
+
Cu as RadioGroup,
|
|
5207
|
+
Au as Select,
|
|
5208
|
+
Lu as Skeleton,
|
|
5209
|
+
qs as Sparkline,
|
|
5208
5210
|
An as Spinner,
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5211
|
+
lu as SplitButton,
|
|
5212
|
+
Nu as Stack,
|
|
5213
|
+
Xu as Stat,
|
|
5214
|
+
Iu as Tab,
|
|
5215
|
+
Fu as TabList,
|
|
5216
|
+
Bu as TabPanel,
|
|
5217
|
+
Eu as Tabs,
|
|
5218
|
+
Pu as Tag,
|
|
5219
|
+
Ru as TagGroup,
|
|
5220
|
+
ju as Text,
|
|
5221
|
+
qu as Textarea,
|
|
5222
|
+
Hu as ToastProvider,
|
|
5223
|
+
_d as Tooltip,
|
|
5224
|
+
Wu as TreeSearch,
|
|
5225
|
+
zu as TreeView,
|
|
5226
|
+
iu as UmrissProvider,
|
|
5227
|
+
qn as VisuallyHidden,
|
|
5226
5228
|
rr as age,
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5229
|
+
id as allBranches,
|
|
5230
|
+
bd as assess,
|
|
5231
|
+
Nd as cadence,
|
|
5232
|
+
ll as clampedHeight,
|
|
5231
5233
|
er as collapse,
|
|
5232
|
-
|
|
5234
|
+
Gu as duplicateKey,
|
|
5233
5235
|
Jn as expand,
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
+
xd as freshness,
|
|
5237
|
+
td as keysBetween,
|
|
5236
5238
|
vr as mergeLanguage,
|
|
5237
5239
|
gn as move,
|
|
5238
|
-
|
|
5240
|
+
od as pathTo,
|
|
5239
5241
|
Dt as rangeDays,
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5242
|
+
cl as remainingChars,
|
|
5243
|
+
sd as revealPath,
|
|
5244
|
+
Ql as scrollForRow,
|
|
5243
5245
|
ir as separatorsOf,
|
|
5244
5246
|
Ge as setActive,
|
|
5245
5247
|
vn as setAnchor,
|
|
5246
5248
|
zt as setChecked,
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5249
|
+
nd as toggleAll,
|
|
5250
|
+
yn as toggleCheck,
|
|
5251
|
+
ed as treeModel,
|
|
5252
|
+
rd as typeaheadTarget,
|
|
5253
|
+
pu as useCommandPaletteShortcut,
|
|
5254
|
+
su as useDensity,
|
|
5255
|
+
ou as useDensityFor,
|
|
5254
5256
|
Be as useFormField,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
+
je as useFormats,
|
|
5258
|
+
$d as useFreshness,
|
|
5257
5259
|
Sn as useLanguage,
|
|
5258
5260
|
Qt as usePortalTarget,
|
|
5259
|
-
|
|
5261
|
+
Ou as useToast,
|
|
5260
5262
|
Zr as useToastConfig,
|
|
5261
|
-
|
|
5263
|
+
Vu as useTree,
|
|
5262
5264
|
Xt as useUmriss,
|
|
5263
|
-
|
|
5265
|
+
Zl as useVirtual,
|
|
5264
5266
|
ce as useWording,
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
+
Ku as verdictWeight,
|
|
5268
|
+
Xl as visibleWindow
|
|
5267
5269
|
};
|