@umriss-ui/core 0.47.1 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +5 -0
- package/dist/core.css +1 -1
- package/dist/core.js +1109 -1085
- package/dist/touch-scale.css +9 -0
- package/docs/llms-full.md +174 -132
- package/package.json +8 -1
package/dist/core.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./core.css";
|
|
3
|
-
import { useMemo as ue, useContext as Ke, createContext as nt, useSyncExternalStore as
|
|
3
|
+
import { useMemo as ue, useContext as Ke, createContext as nt, useSyncExternalStore as Gr, useRef as P, useLayoutEffect as Me, useState as E, useEffect as J, useId as ke, cloneElement as Zo, useCallback as ne, useImperativeHandle as Jo } from "react";
|
|
4
4
|
import { jsx as i, jsxs as N, Fragment as we } from "react/jsx-runtime";
|
|
5
|
-
import { D as qn, f as
|
|
6
|
-
import { w as
|
|
7
|
-
import { flushSync as
|
|
5
|
+
import { D as qn, f as Vr, I as er, b as Yr, a as tr, s as Xr } from "./formats-Bo0qM01D.js";
|
|
6
|
+
import { w as ng } from "./formats-Bo0qM01D.js";
|
|
7
|
+
import { flushSync as Qr, createPortal as Hn } from "react-dom";
|
|
8
8
|
function L(...e) {
|
|
9
9
|
return e.filter(Boolean).join(" ");
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
alert:
|
|
13
|
-
content:
|
|
14
|
-
title:
|
|
15
|
-
text:
|
|
16
|
-
actions:
|
|
17
|
-
neutral:
|
|
18
|
-
accent:
|
|
19
|
-
success:
|
|
20
|
-
warning:
|
|
21
|
-
danger:
|
|
22
|
-
close:
|
|
11
|
+
const Zr = "_alert_1hqrw_8 _text_18806_22", Jr = "_content_1hqrw_23", es = "_title_1hqrw_31", ts = "_text_1hqrw_39", ns = "_actions_1hqrw_49", os = "_neutral_1hqrw_58", rs = "_accent_1hqrw_66", ss = "_success_1hqrw_74", as = "_warning_1hqrw_82", is = "_danger_1hqrw_90", ls = "_close_1hqrw_100", It = {
|
|
12
|
+
alert: Zr,
|
|
13
|
+
content: Jr,
|
|
14
|
+
title: es,
|
|
15
|
+
text: ts,
|
|
16
|
+
actions: ns,
|
|
17
|
+
neutral: os,
|
|
18
|
+
accent: rs,
|
|
19
|
+
success: ss,
|
|
20
|
+
warning: as,
|
|
21
|
+
danger: is,
|
|
22
|
+
close: ls
|
|
23
23
|
}, Bt = {
|
|
24
24
|
clearInput: "Clear input",
|
|
25
25
|
clearSelection: "Clear selection",
|
|
@@ -417,15 +417,15 @@ const Qr = "_alert_1hqrw_8 _text_18806_22", Zr = "_content_1hqrw_23", Jr = "_tit
|
|
|
417
417
|
alarmAvailabilityDisabled: "Out of service",
|
|
418
418
|
alarmHidden: (e) => `Suppressed or shelved: ${e}`,
|
|
419
419
|
alarmColumnAvailability: "Availability"
|
|
420
|
-
},
|
|
420
|
+
}, nr = {
|
|
421
421
|
formats: qn,
|
|
422
422
|
wording: Bt
|
|
423
|
-
},
|
|
424
|
-
function
|
|
425
|
-
if (!e) return
|
|
423
|
+
}, or = /* @__PURE__ */ nt(null);
|
|
424
|
+
function cs(e) {
|
|
425
|
+
if (!e) return nr;
|
|
426
426
|
const { presets: t, ...n } = e.wording ?? {};
|
|
427
427
|
return {
|
|
428
|
-
formats: e.formats ?
|
|
428
|
+
formats: e.formats ? ds(e.formats) : qn,
|
|
429
429
|
wording: e.wording ? {
|
|
430
430
|
...Bt,
|
|
431
431
|
...n,
|
|
@@ -433,35 +433,35 @@ function ls(e) {
|
|
|
433
433
|
} : Bt
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function ds(e) {
|
|
437
437
|
const t = { ...qn, ...e };
|
|
438
438
|
if (t.timeZone === void 0) return t;
|
|
439
|
-
const n =
|
|
440
|
-
for (const r of
|
|
439
|
+
const n = Vr(t.locale, t.timeZone), o = t;
|
|
440
|
+
for (const r of er) Yr.has(t[r]) && (o[r] = n[r]);
|
|
441
441
|
return t;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
const o = ue(() =>
|
|
445
|
-
return /* @__PURE__ */ i(
|
|
443
|
+
function us({ formats: e, wording: t, children: n }) {
|
|
444
|
+
const o = ue(() => cs({ formats: e, wording: t }), [e, t]);
|
|
445
|
+
return /* @__PURE__ */ i(or, { value: o, children: n });
|
|
446
446
|
}
|
|
447
|
-
const Rt = () => Ke(
|
|
448
|
-
},
|
|
449
|
-
function
|
|
447
|
+
const Rt = () => Ke(or) ?? nr, fs = () => () => {
|
|
448
|
+
}, rr = () => Gr(fs, () => !0, () => !1), hs = () => "", po = /* @__PURE__ */ new WeakMap();
|
|
449
|
+
function ms(e) {
|
|
450
450
|
let t = po.get(e);
|
|
451
451
|
if (!t) {
|
|
452
452
|
t = { ...e };
|
|
453
|
-
for (const n of
|
|
453
|
+
for (const n of er) t[n] = hs;
|
|
454
454
|
po.set(e, t);
|
|
455
455
|
}
|
|
456
456
|
return t;
|
|
457
457
|
}
|
|
458
458
|
function Ue() {
|
|
459
459
|
const e = Rt().formats;
|
|
460
|
-
return
|
|
460
|
+
return rr() || e.timeZone !== void 0 ? e : ms(e);
|
|
461
461
|
}
|
|
462
462
|
const _o = (e) => new Intl.DateTimeFormat("en", { timeZone: e }).resolvedOptions().timeZone;
|
|
463
|
-
function
|
|
464
|
-
const { timeZone: e, timeZoneName: t } = Rt().formats, n =
|
|
463
|
+
function sr() {
|
|
464
|
+
const { timeZone: e, timeZoneName: t } = Rt().formats, n = rr();
|
|
465
465
|
return ue(() => {
|
|
466
466
|
if (!n || e === void 0) return null;
|
|
467
467
|
const o = new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -481,17 +481,17 @@ function Xe({ ref: e, size: t = 9, ...n }) {
|
|
|
481
481
|
}
|
|
482
482
|
) });
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Kp({ ref: e, size: t = 12, ...n }) {
|
|
485
485
|
return /* @__PURE__ */ N("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: [
|
|
486
486
|
/* @__PURE__ */ i("path", { d: "M2 5h0", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
487
487
|
/* @__PURE__ */ i("path", { d: "M5 5h0", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
488
488
|
/* @__PURE__ */ i("path", { d: "M8 5h0", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" })
|
|
489
489
|
] });
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function ps({ ref: e, size: t = 10, ...n }) {
|
|
492
492
|
return /* @__PURE__ */ i("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ i("path", { d: "M5 2v6M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function _s({ ref: e, size: t = 10, ...n }) {
|
|
495
495
|
return /* @__PURE__ */ i("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ i("path", { d: "M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
496
496
|
}
|
|
497
497
|
function Zt({ ref: e, size: t = 10, ...n }) {
|
|
@@ -507,7 +507,7 @@ function Zt({ ref: e, size: t = 10, ...n }) {
|
|
|
507
507
|
}
|
|
508
508
|
) });
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function gs({ ref: e, size: t = 10, ...n }) {
|
|
511
511
|
return /* @__PURE__ */ i("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ i(
|
|
512
512
|
"path",
|
|
513
513
|
{
|
|
@@ -519,7 +519,7 @@ function _s({ ref: e, size: t = 10, ...n }) {
|
|
|
519
519
|
}
|
|
520
520
|
) });
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Up({ ref: e, size: t = 10, ...n }) {
|
|
523
523
|
return /* @__PURE__ */ i("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ i(
|
|
524
524
|
"path",
|
|
525
525
|
{
|
|
@@ -531,7 +531,7 @@ function Wp({ ref: e, size: t = 10, ...n }) {
|
|
|
531
531
|
}
|
|
532
532
|
) });
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function jp({ ref: e, size: t = 10, ...n }) {
|
|
535
535
|
return /* @__PURE__ */ i("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ i(
|
|
536
536
|
"path",
|
|
537
537
|
{
|
|
@@ -544,7 +544,7 @@ function Kp({ ref: e, size: t = 10, ...n }) {
|
|
|
544
544
|
}
|
|
545
545
|
) });
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function ar({ ref: e, size: t = 12, range: n = !1, ...o }) {
|
|
548
548
|
return /* @__PURE__ */ N("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...o, children: [
|
|
549
549
|
/* @__PURE__ */ i("rect", { x: "1", y: "1.6", width: "8", height: "7.7", rx: "1.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
550
550
|
/* @__PURE__ */ i(
|
|
@@ -559,7 +559,7 @@ function sr({ ref: e, size: t = 12, range: n = !1, ...o }) {
|
|
|
559
559
|
)
|
|
560
560
|
] });
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function ir({ ref: e, size: t = 12, ...n }) {
|
|
563
563
|
return /* @__PURE__ */ N("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: [
|
|
564
564
|
/* @__PURE__ */ i("circle", { cx: "5", cy: "5", r: "4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
565
565
|
/* @__PURE__ */ i(
|
|
@@ -583,7 +583,7 @@ const An = {
|
|
|
583
583
|
danger: { role: "alert" },
|
|
584
584
|
loading: { role: "status", live: "polite" }
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function Gp({ ref: e, tone: t = "neutral", title: n, actions: o, onDismiss: r, dismissLabel: s, className: a, children: l, ...d }) {
|
|
587
587
|
const c = fe(), { role: f, live: h } = An[t];
|
|
588
588
|
return /* @__PURE__ */ N(
|
|
589
589
|
"div",
|
|
@@ -604,20 +604,20 @@ function Up({ ref: e, tone: t = "neutral", title: n, actions: o, onDismiss: r, d
|
|
|
604
604
|
}
|
|
605
605
|
);
|
|
606
606
|
}
|
|
607
|
-
const
|
|
608
|
-
badge:
|
|
609
|
-
pill:
|
|
610
|
-
neutral:
|
|
611
|
-
accent:
|
|
612
|
-
success:
|
|
613
|
-
warning:
|
|
614
|
-
danger:
|
|
607
|
+
const bs = "_badge_1xdg9_4 _text_18806_22", vs = "_pill_1xdg9_22", ys = "_neutral_1xdg9_40", ws = "_accent_1xdg9_45", ks = "_success_1xdg9_50", Ns = "_warning_1xdg9_55", $s = "_danger_1xdg9_60", kn = {
|
|
608
|
+
badge: bs,
|
|
609
|
+
pill: vs,
|
|
610
|
+
neutral: ys,
|
|
611
|
+
accent: ws,
|
|
612
|
+
success: ks,
|
|
613
|
+
warning: Ns,
|
|
614
|
+
danger: $s
|
|
615
615
|
};
|
|
616
|
-
function
|
|
616
|
+
function Vp({ ref: e, tone: t = "neutral", pill: n = !1, className: o, children: r, ...s }) {
|
|
617
617
|
return /* @__PURE__ */ i("span", { ref: e, className: L(kn.badge, n && kn.pill, kn[t], o), ...s, children: r });
|
|
618
618
|
}
|
|
619
619
|
const Wn = /* @__PURE__ */ nt(null);
|
|
620
|
-
function
|
|
620
|
+
function xs({ size: e, children: t }) {
|
|
621
621
|
return /* @__PURE__ */ i(Wn, { value: e, children: t });
|
|
622
622
|
}
|
|
623
623
|
function Kn({ children: e }) {
|
|
@@ -627,8 +627,8 @@ function Pe(e) {
|
|
|
627
627
|
const t = Ke(Wn);
|
|
628
628
|
return e ?? t ?? "md";
|
|
629
629
|
}
|
|
630
|
-
const
|
|
631
|
-
spinner:
|
|
630
|
+
const Cs = "_spinner_1tmf7_4", Ds = {
|
|
631
|
+
spinner: Cs
|
|
632
632
|
};
|
|
633
633
|
function Un({ ref: e, size: t = 14, className: n, ...o }) {
|
|
634
634
|
const r = fe();
|
|
@@ -636,7 +636,7 @@ function Un({ ref: e, size: t = 14, className: n, ...o }) {
|
|
|
636
636
|
"svg",
|
|
637
637
|
{
|
|
638
638
|
ref: e,
|
|
639
|
-
className: L(
|
|
639
|
+
className: L(Ds.spinner, n),
|
|
640
640
|
width: t,
|
|
641
641
|
height: t,
|
|
642
642
|
viewBox: "0 0 16 16",
|
|
@@ -651,8 +651,8 @@ function Un({ ref: e, size: t = 14, className: n, ...o }) {
|
|
|
651
651
|
}
|
|
652
652
|
);
|
|
653
653
|
}
|
|
654
|
-
const
|
|
655
|
-
function
|
|
654
|
+
const Ss = 500, Ms = 10, Ts = 500;
|
|
655
|
+
function As(e, t) {
|
|
656
656
|
const n = {
|
|
657
657
|
timer: null,
|
|
658
658
|
at: { x: 0, y: 0 },
|
|
@@ -662,16 +662,16 @@ function Ts(e, t) {
|
|
|
662
662
|
}, o = () => {
|
|
663
663
|
n.timer && clearTimeout(n.timer), n.timer = null;
|
|
664
664
|
}, r = () => {
|
|
665
|
-
o(), n.fired && (n.fired = !1, n.swallowUntil = Date.now() +
|
|
665
|
+
o(), n.fired && (n.fired = !1, n.swallowUntil = Date.now() + Ts, t?.());
|
|
666
666
|
};
|
|
667
667
|
return {
|
|
668
668
|
pointerDown(s) {
|
|
669
669
|
o(), n.fired = !1, n.swallowUntil = 0, n.touch = s.pointerType === "touch", n.touch && (n.at = { x: s.clientX, y: s.clientY }, n.timer = setTimeout(() => {
|
|
670
670
|
n.timer = null, n.fired = !0, n.swallowUntil = 1 / 0, e(n.at);
|
|
671
|
-
},
|
|
671
|
+
}, Ss));
|
|
672
672
|
},
|
|
673
673
|
pointerMove(s) {
|
|
674
|
-
n.timer && Math.hypot(s.clientX - n.at.x, s.clientY - n.at.y) >
|
|
674
|
+
n.timer && Math.hypot(s.clientX - n.at.x, s.clientY - n.at.y) > Ms && o();
|
|
675
675
|
},
|
|
676
676
|
pointerUp: r,
|
|
677
677
|
pointerCancel: r,
|
|
@@ -682,13 +682,13 @@ function Ts(e, t) {
|
|
|
682
682
|
dispose: o
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function lr(e, t) {
|
|
686
686
|
const n = P({ onPress: e, onEnd: t });
|
|
687
687
|
Me(() => {
|
|
688
688
|
n.current = { onPress: e, onEnd: t };
|
|
689
689
|
});
|
|
690
690
|
const o = ue(
|
|
691
|
-
() =>
|
|
691
|
+
() => As((s) => n.current.onPress(s), () => n.current.onEnd?.()),
|
|
692
692
|
[]
|
|
693
693
|
), r = ue(
|
|
694
694
|
() => ({
|
|
@@ -705,15 +705,15 @@ function ir(e, t) {
|
|
|
705
705
|
return Me(() => o.dispose, [o]), { handlers: r, touching: o.touching };
|
|
706
706
|
}
|
|
707
707
|
const jn = /* @__PURE__ */ nt(null);
|
|
708
|
-
function
|
|
708
|
+
function Yp(e, t) {
|
|
709
709
|
const n = Ke(jn);
|
|
710
710
|
return e !== void 0 ? e : n?.densityGiven ? n.density === "compact" ? "compact" : "regular" : t;
|
|
711
711
|
}
|
|
712
|
-
const
|
|
712
|
+
const Rs = {
|
|
713
713
|
density: "comfortable",
|
|
714
714
|
portalTarget: null,
|
|
715
715
|
toast: {}
|
|
716
|
-
}, Gn = () => Ke(jn) ??
|
|
716
|
+
}, Gn = () => Ke(jn) ?? Rs, Xp = () => Gn().density, Fs = () => Gn().toast;
|
|
717
717
|
function Vn() {
|
|
718
718
|
const { portalTarget: e } = Gn();
|
|
719
719
|
return ue(
|
|
@@ -721,7 +721,7 @@ function Vn() {
|
|
|
721
721
|
[e]
|
|
722
722
|
);
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function Qp({
|
|
725
725
|
density: e,
|
|
726
726
|
portalTarget: t = null,
|
|
727
727
|
toast: n,
|
|
@@ -738,7 +738,7 @@ function Yp({
|
|
|
738
738
|
[e, t, n]
|
|
739
739
|
);
|
|
740
740
|
return /* @__PURE__ */ i(jn, { value: a, children: /* @__PURE__ */ i(
|
|
741
|
-
|
|
741
|
+
us,
|
|
742
742
|
{
|
|
743
743
|
formats: o ? o.formats : s.formats,
|
|
744
744
|
wording: o ? o.wording : s.wording,
|
|
@@ -749,7 +749,7 @@ function Yp({
|
|
|
749
749
|
function Yn(e, t) {
|
|
750
750
|
return e?.closest("dialog") ?? t() ?? document.body;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function Ls(e, t) {
|
|
753
753
|
return e ?? t() ?? document.body;
|
|
754
754
|
}
|
|
755
755
|
const gn = (e) => e?.nodeName === "DIALOG";
|
|
@@ -760,10 +760,10 @@ function Nn(e) {
|
|
|
760
760
|
return e.open;
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function cr(e) {
|
|
764
764
|
return gn(e) && "showPopover" in HTMLElement.prototype ? "manual" : void 0;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function dr(e) {
|
|
767
767
|
Me(() => {
|
|
768
768
|
const t = e.current;
|
|
769
769
|
if (!t?.isConnected || t.getAttribute("popover") !== "manual") return;
|
|
@@ -775,7 +775,7 @@ function cr(e) {
|
|
|
775
775
|
n || t.showPopover();
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Ps() {
|
|
779
779
|
const [e, t] = E(null);
|
|
780
780
|
return J(() => {
|
|
781
781
|
let n = [...document.querySelectorAll("dialog")].filter(Nn);
|
|
@@ -790,14 +790,14 @@ function Ls() {
|
|
|
790
790
|
function a(l = !1) {
|
|
791
791
|
n = n.filter((c) => c.isConnected && Nn(c));
|
|
792
792
|
const d = n.at(-1) ?? null;
|
|
793
|
-
d !== s && (s = d, r(d !== null), l ?
|
|
793
|
+
d !== s && (s = d, r(d !== null), l ? Qr(() => t(d)) : t(d));
|
|
794
794
|
}
|
|
795
795
|
return r(!1), a(), () => o.disconnect();
|
|
796
796
|
}, []), e;
|
|
797
797
|
}
|
|
798
|
-
const
|
|
799
|
-
function
|
|
800
|
-
const { align: r = "start", side: s = "bottom", offset: a =
|
|
798
|
+
const Es = 6, Is = 8, zs = 240;
|
|
799
|
+
function ur(e, t, n, o = {}) {
|
|
800
|
+
const { align: r = "start", side: s = "bottom", offset: a = Es, margin: l = Is } = o, { top: d = 0, left: c = 0 } = n, f = d + n.height - e.bottom - a - l, h = e.top - d - a - l, m = s === "top" ? h : f, u = s === "top" ? f : h, _ = m >= t.height || u >= t.height, p = Math.max(m, u) >= zs;
|
|
801
801
|
let g, b, w;
|
|
802
802
|
if (_)
|
|
803
803
|
g = m < t.height, b = s === "top" !== g ? e.top - a - t.height : e.bottom + a;
|
|
@@ -814,7 +814,7 @@ function dr(e, t, n, o = {}) {
|
|
|
814
814
|
function Xn(e, t) {
|
|
815
815
|
return `${t === "start" ? "left" : t === "end" ? "right" : "center"} ${e === "bottom" ? "top" : "bottom"}`;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function fr() {
|
|
818
818
|
const e = window.visualViewport;
|
|
819
819
|
return e ? { top: e.offsetTop, left: e.offsetLeft, width: e.width, height: e.height } : { width: window.innerWidth, height: window.innerHeight };
|
|
820
820
|
}
|
|
@@ -825,7 +825,7 @@ function Zn(e, t) {
|
|
|
825
825
|
const n = e.getPropertyValue(t).trim(), o = Number.parseFloat(n);
|
|
826
826
|
return Number.isFinite(o) ? n.endsWith("ms") ? o : n.endsWith("s") ? o * 1e3 : o : 0;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function hr(e, t, n) {
|
|
829
829
|
const [o, r] = E(e);
|
|
830
830
|
return e && !o && r(!0), Me(() => {
|
|
831
831
|
if (e || !o) return;
|
|
@@ -844,19 +844,19 @@ function Re(...e) {
|
|
|
844
844
|
typeof n == "function" ? n(t) : n && (n.current = t);
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function mr(e) {
|
|
848
848
|
return e.props.ref;
|
|
849
849
|
}
|
|
850
|
-
const
|
|
851
|
-
tooltip:
|
|
852
|
-
content:
|
|
850
|
+
const Os = "_tooltip_7fnmg_4 _text_18806_22", Bs = "_content_7fnmg_35 _ink_18806_49", go = {
|
|
851
|
+
tooltip: Os,
|
|
852
|
+
content: Bs
|
|
853
853
|
};
|
|
854
|
-
function
|
|
855
|
-
const [o, r] = E(!1), s = t.props["aria-expanded"] === !0, a = o && !s, [l, d] = E(null), [c, f] = E(null), h = Vn(), m = P(null), u = P(null), _ = P(null), p = ke(), g =
|
|
854
|
+
function qs({ content: e, children: t, delay: n = 300 }) {
|
|
855
|
+
const [o, r] = E(!1), s = t.props["aria-expanded"] === !0, a = o && !s, [l, d] = E(null), [c, f] = E(null), h = Vn(), m = P(null), u = P(null), _ = P(null), p = ke(), g = hr(a, u, "--u-duration-exit-fast"), b = () => {
|
|
856
856
|
_.current && clearTimeout(_.current), _.current = setTimeout(() => r(!0), n);
|
|
857
857
|
}, w = () => {
|
|
858
858
|
_.current && clearTimeout(_.current), r(!1);
|
|
859
|
-
}, v =
|
|
859
|
+
}, v = lr(
|
|
860
860
|
() => {
|
|
861
861
|
_.current && clearTimeout(_.current), r(!0);
|
|
862
862
|
},
|
|
@@ -866,14 +866,14 @@ function Bs({ content: e, children: t, delay: n = 300 }) {
|
|
|
866
866
|
);
|
|
867
867
|
Me(() => {
|
|
868
868
|
a && f(Yn(m.current, h));
|
|
869
|
-
}, [a, h]),
|
|
869
|
+
}, [a, h]), dr(u), Me(() => {
|
|
870
870
|
if (!a || !c) return;
|
|
871
871
|
const y = m.current?.getBoundingClientRect(), S = u.current;
|
|
872
872
|
if (!y || !S) return;
|
|
873
|
-
const O =
|
|
873
|
+
const O = ur(
|
|
874
874
|
y,
|
|
875
875
|
{ width: S.offsetWidth, height: S.offsetHeight },
|
|
876
|
-
|
|
876
|
+
fr(),
|
|
877
877
|
{ align: "center", side: "top", offset: 8 }
|
|
878
878
|
);
|
|
879
879
|
d({ top: O.top, left: O.left, "--_origin": Xn(O.side, "center") });
|
|
@@ -890,9 +890,9 @@ function Bs({ content: e, children: t, delay: n = 300 }) {
|
|
|
890
890
|
}, []);
|
|
891
891
|
const C = t.props, D = a && e !== C["aria-label"];
|
|
892
892
|
return /* @__PURE__ */ N(we, { children: [
|
|
893
|
-
|
|
893
|
+
Zo(t, {
|
|
894
894
|
// eslint-disable-next-line react-hooks/refs
|
|
895
|
-
ref: Re(m,
|
|
895
|
+
ref: Re(m, mr(t)),
|
|
896
896
|
// Added to the child's own description, not put in its place.
|
|
897
897
|
"aria-describedby": [C["aria-describedby"], D ? p : void 0].filter(Boolean).join(" ") || void 0,
|
|
898
898
|
onPointerEnter: (y) => {
|
|
@@ -939,7 +939,7 @@ function Bs({ content: e, children: t, delay: n = 300 }) {
|
|
|
939
939
|
ref: u,
|
|
940
940
|
id: p,
|
|
941
941
|
role: "tooltip",
|
|
942
|
-
popover:
|
|
942
|
+
popover: cr(c),
|
|
943
943
|
className: go.tooltip,
|
|
944
944
|
"data-closing": !a || void 0,
|
|
945
945
|
"aria-hidden": !a || void 0,
|
|
@@ -951,17 +951,17 @@ function Bs({ content: e, children: t, delay: n = 300 }) {
|
|
|
951
951
|
)
|
|
952
952
|
] });
|
|
953
953
|
}
|
|
954
|
-
const
|
|
955
|
-
button:
|
|
956
|
-
sm:
|
|
957
|
-
square:
|
|
958
|
-
label:
|
|
959
|
-
primary:
|
|
960
|
-
danger:
|
|
961
|
-
secondary:
|
|
962
|
-
ghost:
|
|
963
|
-
plain:
|
|
964
|
-
spinner:
|
|
954
|
+
const Hs = "_button_640tc_4 _ring_18806_125 _text_18806_22", Ws = "_sm_640tc_48", Ks = "_square_640tc_67", Us = "_label_640tc_77", js = "_primary_640tc_91", Gs = "_danger_640tc_102", Vs = "_secondary_640tc_117", Ys = "_ghost_640tc_134", Xs = "_plain_640tc_147", Qs = "_spinner_640tc_183", jt = {
|
|
955
|
+
button: Hs,
|
|
956
|
+
sm: Ws,
|
|
957
|
+
square: Ks,
|
|
958
|
+
label: Us,
|
|
959
|
+
primary: js,
|
|
960
|
+
danger: Gs,
|
|
961
|
+
secondary: Vs,
|
|
962
|
+
ghost: Ys,
|
|
963
|
+
plain: Xs,
|
|
964
|
+
spinner: Qs
|
|
965
965
|
};
|
|
966
966
|
function Ne({
|
|
967
967
|
ref: e,
|
|
@@ -992,25 +992,25 @@ function Ne({
|
|
|
992
992
|
);
|
|
993
993
|
}
|
|
994
994
|
function dn({ ref: e, variant: t = "plain", className: n, ...o }) {
|
|
995
|
-
return /* @__PURE__ */ i(
|
|
996
|
-
}
|
|
997
|
-
const
|
|
998
|
-
field:
|
|
999
|
-
start:
|
|
1000
|
-
label:
|
|
1001
|
-
fieldPart:
|
|
1002
|
-
required:
|
|
1003
|
-
message:
|
|
1004
|
-
hint:
|
|
1005
|
-
error:
|
|
995
|
+
return /* @__PURE__ */ i(qs, { content: o["aria-label"], children: /* @__PURE__ */ i(Ne, { ref: e, variant: t, className: L(jt.square, n), ...o }) });
|
|
996
|
+
}
|
|
997
|
+
const Zs = "_field_1da4p_4 _text_18806_22", Js = "_start_1da4p_18", ea = "_label_1da4p_24", ta = "_fieldPart_1da4p_29", na = "_required_1da4p_44", oa = "_message_1da4p_52", ra = "_hint_1da4p_59", sa = "_error_1da4p_63", Nt = {
|
|
998
|
+
field: Zs,
|
|
999
|
+
start: Js,
|
|
1000
|
+
label: ea,
|
|
1001
|
+
fieldPart: ta,
|
|
1002
|
+
required: na,
|
|
1003
|
+
message: oa,
|
|
1004
|
+
hint: ra,
|
|
1005
|
+
error: sa
|
|
1006
1006
|
}, Jn = /* @__PURE__ */ nt(null);
|
|
1007
1007
|
function Ee() {
|
|
1008
1008
|
return Ke(Jn);
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function aa({ children: e }) {
|
|
1011
1011
|
return /* @__PURE__ */ i(Jn, { value: null, children: e });
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Zp({ ref: e, label: t, hint: n, error: o, required: r = !1, fieldId: s, labelPlacement: a = "top", className: l, children: d, ...c }) {
|
|
1014
1014
|
const f = ke(), h = s ?? f, m = `${h}-message`, u = `${h}-label`, _ = !!(o ?? n), p = /* @__PURE__ */ N(we, { children: [
|
|
1015
1015
|
/* @__PURE__ */ i(
|
|
1016
1016
|
Jn,
|
|
@@ -1029,9 +1029,33 @@ function Xp({ ref: e, label: t, hint: n, error: o, required: r = !1, fieldId: s,
|
|
|
1029
1029
|
a === "start" ? /* @__PURE__ */ i("div", { className: Nt.fieldPart, children: p }) : p
|
|
1030
1030
|
] });
|
|
1031
1031
|
}
|
|
1032
|
-
const
|
|
1033
|
-
panel:
|
|
1034
|
-
},
|
|
1032
|
+
const ia = "_panel_1yr9w_8 _text_18806_22", la = {
|
|
1033
|
+
panel: ia
|
|
1034
|
+
}, ca = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]';
|
|
1035
|
+
function bo(e) {
|
|
1036
|
+
if (e.closest("[inert]")) return !1;
|
|
1037
|
+
if (typeof e.checkVisibility == "function")
|
|
1038
|
+
return e.checkVisibility({ visibilityProperty: !0 });
|
|
1039
|
+
for (let t = e; t; t = t.parentElement)
|
|
1040
|
+
if (getComputedStyle(t).display === "none") return !1;
|
|
1041
|
+
return getComputedStyle(e).visibility !== "hidden";
|
|
1042
|
+
}
|
|
1043
|
+
function da(e) {
|
|
1044
|
+
const t = (n, o) => [...e.querySelectorAll('input[type="radio"]')].filter(
|
|
1045
|
+
(r) => r.name === n && r.form === o && !r.disabled && bo(r)
|
|
1046
|
+
);
|
|
1047
|
+
for (const n of e.querySelectorAll(ca))
|
|
1048
|
+
if (!(n.tabIndex < 0 || !bo(n))) {
|
|
1049
|
+
if (n instanceof HTMLInputElement && n.type === "radio" && n.name) {
|
|
1050
|
+
const o = t(n.name, n.form);
|
|
1051
|
+
if ((o.find((s) => s.checked) ?? o[0]) === n) return n;
|
|
1052
|
+
continue;
|
|
1053
|
+
}
|
|
1054
|
+
return n;
|
|
1055
|
+
}
|
|
1056
|
+
return null;
|
|
1057
|
+
}
|
|
1058
|
+
const vo = nt(null), an = [];
|
|
1035
1059
|
function Ft({
|
|
1036
1060
|
open: e,
|
|
1037
1061
|
onOpenChange: t,
|
|
@@ -1050,11 +1074,11 @@ function Ft({
|
|
|
1050
1074
|
className: _,
|
|
1051
1075
|
children: p
|
|
1052
1076
|
}) {
|
|
1053
|
-
const g = P(null), b = Ke(
|
|
1077
|
+
const g = P(null), b = Ke(vo), w = P(/* @__PURE__ */ new Set()), v = ne((B) => (w.current.add(B), () => void w.current.delete(B)), []), C = P(r);
|
|
1054
1078
|
J(() => {
|
|
1055
1079
|
C.current = r;
|
|
1056
1080
|
});
|
|
1057
|
-
const [D, y] = E(null), [S, O] = E(null), A = Vn(), q =
|
|
1081
|
+
const [D, y] = E(null), [S, O] = E(null), A = Vn(), q = hr(e, g, "--u-duration-exit-fast"), $ = q && !e, M = ne(
|
|
1058
1082
|
(B) => {
|
|
1059
1083
|
t(!1), B && c && (o ?? n).current?.focus();
|
|
1060
1084
|
},
|
|
@@ -1067,10 +1091,10 @@ function Ft({
|
|
|
1067
1091
|
const B = n.current?.getBoundingClientRect(), x = g.current;
|
|
1068
1092
|
if (!B || !x) return;
|
|
1069
1093
|
l === "anchor" ? x.style.width = `${d ? Math.max(B.width, d) : B.width}px` : typeof l == "number" && (x.style.width = `${l}px`), x.style.maxHeight = "";
|
|
1070
|
-
const G = x.getBoundingClientRect(), V = getComputedStyle(x).transform, j = V && V !== "none" ? new DOMMatrixReadOnly(V).a : 1, F =
|
|
1094
|
+
const G = x.getBoundingClientRect(), V = getComputedStyle(x).transform, j = V && V !== "none" ? new DOMMatrixReadOnly(V).a : 1, F = ur(
|
|
1071
1095
|
B,
|
|
1072
1096
|
{ width: G.width / j, height: G.height / j },
|
|
1073
|
-
|
|
1097
|
+
fr(),
|
|
1074
1098
|
{ align: s, offset: a }
|
|
1075
1099
|
);
|
|
1076
1100
|
F.maxHeight !== void 0 && (x.style.maxHeight = `${F.maxHeight}px`), y(F);
|
|
@@ -1105,7 +1129,7 @@ function Ft({
|
|
|
1105
1129
|
const B = g.current;
|
|
1106
1130
|
if (!k || !e || h !== "dialog" || !B) return;
|
|
1107
1131
|
const x = B.getRootNode(), G = x instanceof ShadowRoot ? x.activeElement : document.activeElement;
|
|
1108
|
-
G && B.contains(G) || (B
|
|
1132
|
+
G && B.contains(G) || (da(B) ?? B).focus({ preventScroll: !0 });
|
|
1109
1133
|
}, [k, e, h]), k ? Hn(
|
|
1110
1134
|
/* @__PURE__ */ i(
|
|
1111
1135
|
"div",
|
|
@@ -1115,7 +1139,7 @@ function Ft({
|
|
|
1115
1139
|
role: h,
|
|
1116
1140
|
tabIndex: h === "dialog" ? -1 : void 0,
|
|
1117
1141
|
"aria-label": m,
|
|
1118
|
-
className: L(
|
|
1142
|
+
className: L(la.panel, _),
|
|
1119
1143
|
"data-closing": $ || void 0,
|
|
1120
1144
|
inert: $,
|
|
1121
1145
|
"aria-hidden": $ || void 0,
|
|
@@ -1128,20 +1152,20 @@ function Ft({
|
|
|
1128
1152
|
`visibility: hidden`: a hidden panel takes no focus. */
|
|
1129
1153
|
opacity: D ? void 0 : 0
|
|
1130
1154
|
},
|
|
1131
|
-
children: /* @__PURE__ */ i(
|
|
1155
|
+
children: /* @__PURE__ */ i(aa, { children: /* @__PURE__ */ i(Kn, { children: /* @__PURE__ */ i(vo.Provider, { value: v, children: p }) }) })
|
|
1132
1156
|
}
|
|
1133
1157
|
),
|
|
1134
1158
|
S
|
|
1135
1159
|
) : null;
|
|
1136
1160
|
}
|
|
1137
|
-
const
|
|
1138
|
-
panel:
|
|
1139
|
-
item:
|
|
1140
|
-
danger:
|
|
1141
|
-
separator:
|
|
1142
|
-
content:
|
|
1161
|
+
const ua = "_panel_1geom_4", fa = "_item_1geom_16", ha = "_danger_1geom_57", ma = "_separator_1geom_69", pa = "_content_1geom_76", Ht = {
|
|
1162
|
+
panel: ua,
|
|
1163
|
+
item: fa,
|
|
1164
|
+
danger: ha,
|
|
1165
|
+
separator: ma,
|
|
1166
|
+
content: pa
|
|
1143
1167
|
}, eo = /* @__PURE__ */ nt(null);
|
|
1144
|
-
function
|
|
1168
|
+
function pr(e, t, n) {
|
|
1145
1169
|
const o = Array.from(t?.querySelectorAll('[role="menuitem"]:not([disabled])') ?? []);
|
|
1146
1170
|
if (o.length === 0) return;
|
|
1147
1171
|
const r = o.findIndex((s) => s === document.activeElement);
|
|
@@ -1163,18 +1187,18 @@ function mr(e, t, n) {
|
|
|
1163
1187
|
break;
|
|
1164
1188
|
}
|
|
1165
1189
|
}
|
|
1166
|
-
function
|
|
1190
|
+
function _r({ trigger: e, children: t, align: n = "start" }) {
|
|
1167
1191
|
const [o, r] = E(!1), s = P(null), a = P(null), l = ke(), d = () => {
|
|
1168
1192
|
r(!1), s.current?.focus();
|
|
1169
1193
|
}, c = ne((m) => {
|
|
1170
1194
|
a.current = m, m?.querySelector('[role="menuitem"]:not([disabled])')?.focus();
|
|
1171
|
-
}, []), f = (m) =>
|
|
1195
|
+
}, []), f = (m) => pr(m, a.current, d), h = e.props;
|
|
1172
1196
|
return /* @__PURE__ */ N(we, { children: [
|
|
1173
|
-
|
|
1197
|
+
Zo(e, {
|
|
1174
1198
|
/* The trigger keeps its own ref beside the menu's. The rule takes a
|
|
1175
1199
|
ref handed on as one read during render; nothing reads `.current`. */
|
|
1176
1200
|
// eslint-disable-next-line react-hooks/refs
|
|
1177
|
-
ref: Re(s,
|
|
1201
|
+
ref: Re(s, mr(e)),
|
|
1178
1202
|
"aria-haspopup": "menu",
|
|
1179
1203
|
"aria-expanded": o,
|
|
1180
1204
|
"aria-controls": o ? l : void 0,
|
|
@@ -1197,7 +1221,7 @@ function pr({ trigger: e, children: t, align: n = "start" }) {
|
|
|
1197
1221
|
)
|
|
1198
1222
|
] });
|
|
1199
1223
|
}
|
|
1200
|
-
function
|
|
1224
|
+
function _a({ ref: e, onSelect: t, tone: n = "default", className: o, children: r, onClick: s, ...a }) {
|
|
1201
1225
|
const l = Ke(eo);
|
|
1202
1226
|
return /* @__PURE__ */ i(
|
|
1203
1227
|
"button",
|
|
@@ -1215,19 +1239,19 @@ function ma({ ref: e, onSelect: t, tone: n = "default", className: o, children:
|
|
|
1215
1239
|
}
|
|
1216
1240
|
);
|
|
1217
1241
|
}
|
|
1218
|
-
function
|
|
1242
|
+
function Jp({ ref: e, className: t, ...n }) {
|
|
1219
1243
|
return /* @__PURE__ */ i("div", { ref: e, className: L(Ht.separator, t), ...n, role: "separator" });
|
|
1220
1244
|
}
|
|
1221
|
-
const
|
|
1222
|
-
group:
|
|
1223
|
-
split:
|
|
1224
|
-
trigger:
|
|
1225
|
-
arrow:
|
|
1245
|
+
const ga = "_group_8xmlt_9", ba = "_split_8xmlt_90", va = "_trigger_8xmlt_90", ya = "_arrow_8xmlt_97", cn = {
|
|
1246
|
+
group: ga,
|
|
1247
|
+
split: ba,
|
|
1248
|
+
trigger: va,
|
|
1249
|
+
arrow: ya
|
|
1226
1250
|
};
|
|
1227
|
-
function
|
|
1228
|
-
return /* @__PURE__ */ i("div", { ref: e, role: "group", className: L(cn.group, n), ...r, children: t ? /* @__PURE__ */ i(
|
|
1251
|
+
function wa({ ref: e, size: t, className: n, children: o, ...r }) {
|
|
1252
|
+
return /* @__PURE__ */ i("div", { ref: e, role: "group", className: L(cn.group, n), ...r, children: t ? /* @__PURE__ */ i(xs, { size: t, children: o }) : o });
|
|
1229
1253
|
}
|
|
1230
|
-
function
|
|
1254
|
+
function e_({
|
|
1231
1255
|
ref: e,
|
|
1232
1256
|
children: t,
|
|
1233
1257
|
menu: n,
|
|
@@ -1240,10 +1264,10 @@ function Zp({
|
|
|
1240
1264
|
...c
|
|
1241
1265
|
}) {
|
|
1242
1266
|
const f = fe(), h = Pe(r);
|
|
1243
|
-
return /* @__PURE__ */ N(
|
|
1267
|
+
return /* @__PURE__ */ N(wa, { className: L(cn.split, d), children: [
|
|
1244
1268
|
/* @__PURE__ */ i(Ne, { ref: e, variant: o, size: h, disabled: l, ...c, children: t }),
|
|
1245
1269
|
/* @__PURE__ */ i(
|
|
1246
|
-
|
|
1270
|
+
_r,
|
|
1247
1271
|
{
|
|
1248
1272
|
align: a,
|
|
1249
1273
|
trigger: /* @__PURE__ */ i(
|
|
@@ -1272,22 +1296,22 @@ function Zp({
|
|
|
1272
1296
|
)
|
|
1273
1297
|
] });
|
|
1274
1298
|
}
|
|
1275
|
-
const
|
|
1276
|
-
card:
|
|
1277
|
-
header:
|
|
1278
|
-
divider:
|
|
1279
|
-
body:
|
|
1280
|
-
collapse:
|
|
1281
|
-
collapsed:
|
|
1282
|
-
collapseInner:
|
|
1283
|
-
headerText:
|
|
1284
|
-
eyebrow:
|
|
1285
|
-
title:
|
|
1286
|
-
headerRight:
|
|
1287
|
-
collapseButton:
|
|
1288
|
-
flush:
|
|
1299
|
+
const ka = "_card_1sofu_4 _text_18806_22", Na = "_header_1sofu_22", $a = "_divider_1sofu_31", xa = "_body_1sofu_37", Ca = "_collapse_1sofu_38", Da = "_collapsed_1sofu_50", Sa = "_collapseInner_1sofu_54", Ma = "_headerText_1sofu_61", Ta = "_eyebrow_1sofu_69", Aa = "_title_1sofu_77", Ra = "_headerRight_1sofu_86", Fa = "_collapseButton_1sofu_93 _ring_18806_125", La = "_flush_1sofu_37", Ye = {
|
|
1300
|
+
card: ka,
|
|
1301
|
+
header: Na,
|
|
1302
|
+
divider: $a,
|
|
1303
|
+
body: xa,
|
|
1304
|
+
collapse: Ca,
|
|
1305
|
+
collapsed: Da,
|
|
1306
|
+
collapseInner: Sa,
|
|
1307
|
+
headerText: Ma,
|
|
1308
|
+
eyebrow: Ta,
|
|
1309
|
+
title: Aa,
|
|
1310
|
+
headerRight: Ra,
|
|
1311
|
+
collapseButton: Fa,
|
|
1312
|
+
flush: La
|
|
1289
1313
|
}, to = /* @__PURE__ */ nt(null);
|
|
1290
|
-
function
|
|
1314
|
+
function t_({
|
|
1291
1315
|
ref: e,
|
|
1292
1316
|
collapsible: t = !1,
|
|
1293
1317
|
defaultCollapsed: n = !1,
|
|
@@ -1308,7 +1332,7 @@ function Jp({
|
|
|
1308
1332
|
}
|
|
1309
1333
|
) });
|
|
1310
1334
|
}
|
|
1311
|
-
function
|
|
1335
|
+
function n_({ ref: e, title: t, eyebrow: n, actions: o, divider: r = !1, className: s, ...a }) {
|
|
1312
1336
|
const l = Ke(to), d = fe();
|
|
1313
1337
|
return /* @__PURE__ */ N("div", { ref: e, className: L(Ye.header, r && Ye.divider, s), ...a, children: [
|
|
1314
1338
|
/* @__PURE__ */ N("div", { className: Ye.headerText, children: [
|
|
@@ -1331,7 +1355,7 @@ function e_({ ref: e, title: t, eyebrow: n, actions: o, divider: r = !1, classNa
|
|
|
1331
1355
|
] })
|
|
1332
1356
|
] });
|
|
1333
1357
|
}
|
|
1334
|
-
function
|
|
1358
|
+
function o_({ ref: e, flush: t = !1, className: n, children: o, ...r }) {
|
|
1335
1359
|
const s = Ke(to), a = /* @__PURE__ */ i(
|
|
1336
1360
|
"div",
|
|
1337
1361
|
{
|
|
@@ -1344,19 +1368,19 @@ function t_({ ref: e, flush: t = !1, className: n, children: o, ...r }) {
|
|
|
1344
1368
|
);
|
|
1345
1369
|
return s?.collapsible ? /* @__PURE__ */ i("div", { className: L(Ye.collapse, s.collapsed && Ye.collapsed), children: /* @__PURE__ */ i("div", { className: Ye.collapseInner, inert: s.collapsed, children: a }) }) : a;
|
|
1346
1370
|
}
|
|
1347
|
-
const
|
|
1348
|
-
wrapper:
|
|
1349
|
-
input:
|
|
1350
|
-
box:
|
|
1351
|
-
check:
|
|
1352
|
-
dash:
|
|
1353
|
-
label:
|
|
1354
|
-
field:
|
|
1355
|
-
sm:
|
|
1371
|
+
const Pa = "_wrapper_13q3u_6 _text_18806_22", Ea = "_input_13q3u_19", Ia = "_box_13q3u_26", za = "_check_13q3u_45", Oa = "_dash_13q3u_78", Ba = "_label_13q3u_122", qa = "_field_13q3u_134", Ha = "_sm_13q3u_144", $t = {
|
|
1372
|
+
wrapper: Pa,
|
|
1373
|
+
input: Ea,
|
|
1374
|
+
box: Ia,
|
|
1375
|
+
check: za,
|
|
1376
|
+
dash: Oa,
|
|
1377
|
+
label: Ba,
|
|
1378
|
+
field: qa,
|
|
1379
|
+
sm: Ha
|
|
1356
1380
|
};
|
|
1357
1381
|
function un({ ref: e, label: t, indeterminate: n = !1, className: o, style: r, id: s, ...a }) {
|
|
1358
1382
|
const l = P(null);
|
|
1359
|
-
|
|
1383
|
+
Jo(e, () => l.current), J(() => {
|
|
1360
1384
|
l.current && (l.current.indeterminate = n);
|
|
1361
1385
|
}, [n]);
|
|
1362
1386
|
const d = Ee(), c = s ?? d?.id, f = Pe(void 0);
|
|
@@ -1380,7 +1404,7 @@ function un({ ref: e, label: t, indeterminate: n = !1, className: o, style: r, i
|
|
|
1380
1404
|
t && /* @__PURE__ */ i("span", { className: $t.label, children: t })
|
|
1381
1405
|
] });
|
|
1382
1406
|
}
|
|
1383
|
-
function
|
|
1407
|
+
function gr(e, t, n) {
|
|
1384
1408
|
const o = P(null), [r, s] = E(!1), a = P(!1), l = () => {
|
|
1385
1409
|
if (a.current) {
|
|
1386
1410
|
a.current = !1;
|
|
@@ -1416,48 +1440,48 @@ function At(e) {
|
|
|
1416
1440
|
(t) => `_${t.codePointAt(0).toString(16)}_`
|
|
1417
1441
|
);
|
|
1418
1442
|
}
|
|
1419
|
-
const
|
|
1443
|
+
const Wa = 150, yo = /* @__PURE__ */ new WeakMap();
|
|
1420
1444
|
let qt = null;
|
|
1421
|
-
function
|
|
1422
|
-
const t =
|
|
1445
|
+
function Ka(e) {
|
|
1446
|
+
const t = yo.get(e);
|
|
1423
1447
|
if (t?.parentElement === e) return t;
|
|
1424
1448
|
const n = document.createElement("div");
|
|
1425
|
-
return n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("data-umriss-announcer", ""), n.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0", e.append(n),
|
|
1449
|
+
return n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("data-umriss-announcer", ""), n.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0", e.append(n), yo.set(e, n), n;
|
|
1426
1450
|
}
|
|
1427
1451
|
function at(e, t) {
|
|
1428
1452
|
if (typeof document > "u") return;
|
|
1429
|
-
const n =
|
|
1453
|
+
const n = Ka(Yn(t, () => null));
|
|
1430
1454
|
qt !== null && clearTimeout(qt), qt = setTimeout(() => {
|
|
1431
1455
|
if (qt = null, typeof document > "u") return;
|
|
1432
1456
|
const o = document.createElement("div");
|
|
1433
1457
|
o.textContent = e, n.replaceChildren(o);
|
|
1434
|
-
},
|
|
1458
|
+
}, Wa);
|
|
1435
1459
|
}
|
|
1436
1460
|
function no() {
|
|
1437
1461
|
qt !== null && clearTimeout(qt), qt = null;
|
|
1438
1462
|
}
|
|
1439
|
-
const
|
|
1440
|
-
dialog:
|
|
1441
|
-
pane:
|
|
1442
|
-
head:
|
|
1443
|
-
close:
|
|
1444
|
-
field:
|
|
1445
|
-
bodyWrap:
|
|
1446
|
-
body:
|
|
1447
|
-
list:
|
|
1448
|
-
groupHeading:
|
|
1449
|
-
row:
|
|
1450
|
-
rowActive:
|
|
1451
|
-
icon:
|
|
1452
|
-
name:
|
|
1453
|
-
mark:
|
|
1454
|
-
group:
|
|
1455
|
-
noFinds:
|
|
1456
|
-
moreFinds:
|
|
1457
|
-
footer:
|
|
1458
|
-
key:
|
|
1463
|
+
const Ua = "_dialog_2uspb_7 _text_18806_22", ja = "_pane_2uspb_2", Ga = "_head_2uspb_91", Va = "_close_2uspb_98", Ya = "_field_2uspb_112 _field_18806_90", Xa = "_bodyWrap_2uspb_152", Qa = "_body_2uspb_152", Za = "_list_2uspb_173 _scroll_18806_96", Ja = "_groupHeading_2uspb_183", ei = "_row_2uspb_192", ti = "_rowActive_2uspb_206", ni = "_icon_2uspb_214", oi = "_name_2uspb_223", ri = "_mark_2uspb_234", si = "_group_2uspb_183", ai = "_noFinds_2uspb_245", ii = "_moreFinds_2uspb_246", li = "_footer_2uspb_255", ci = "_key_2uspb_271", ye = {
|
|
1464
|
+
dialog: Ua,
|
|
1465
|
+
pane: ja,
|
|
1466
|
+
head: Ga,
|
|
1467
|
+
close: Va,
|
|
1468
|
+
field: Ya,
|
|
1469
|
+
bodyWrap: Xa,
|
|
1470
|
+
body: Qa,
|
|
1471
|
+
list: Za,
|
|
1472
|
+
groupHeading: Ja,
|
|
1473
|
+
row: ei,
|
|
1474
|
+
rowActive: ti,
|
|
1475
|
+
icon: ni,
|
|
1476
|
+
name: oi,
|
|
1477
|
+
mark: ri,
|
|
1478
|
+
group: si,
|
|
1479
|
+
noFinds: ai,
|
|
1480
|
+
moreFinds: ii,
|
|
1481
|
+
footer: li,
|
|
1482
|
+
key: ci
|
|
1459
1483
|
}, Rn = (e, t) => `${e}-${At(t)}`;
|
|
1460
|
-
function
|
|
1484
|
+
function di({
|
|
1461
1485
|
find: e,
|
|
1462
1486
|
baseId: t,
|
|
1463
1487
|
active: n,
|
|
@@ -1481,13 +1505,13 @@ function li({
|
|
|
1481
1505
|
},
|
|
1482
1506
|
children: [
|
|
1483
1507
|
o && /* @__PURE__ */ i("span", { className: ye.icon, "aria-hidden": "true", children: l.icon }),
|
|
1484
|
-
/* @__PURE__ */ i("span", { className: ye.name, children:
|
|
1508
|
+
/* @__PURE__ */ i("span", { className: ye.name, children: ui(l.name, e.finds) }),
|
|
1485
1509
|
l.heading !== void 0 && /* @__PURE__ */ i("span", { className: ye.group, children: l.heading })
|
|
1486
1510
|
]
|
|
1487
1511
|
}
|
|
1488
1512
|
);
|
|
1489
1513
|
}
|
|
1490
|
-
function
|
|
1514
|
+
function ui(e, t) {
|
|
1491
1515
|
if (t.length === 0) return e;
|
|
1492
1516
|
const n = [];
|
|
1493
1517
|
let o = 0;
|
|
@@ -1497,13 +1521,13 @@ function ci(e, t) {
|
|
|
1497
1521
|
), o = r.to;
|
|
1498
1522
|
}), o < e.length && n.push(e.slice(o)), n;
|
|
1499
1523
|
}
|
|
1500
|
-
const
|
|
1501
|
-
function
|
|
1524
|
+
const fi = 10, hi = 8, mi = 0.5, pi = 3, _i = /[\p{L}\p{N}]/u, gi = (e) => e !== e.toLowerCase() && e === e.toUpperCase(), bi = (e) => e !== e.toUpperCase() && e === e.toLowerCase();
|
|
1525
|
+
function vi(e, t) {
|
|
1502
1526
|
if (t === 0) return !0;
|
|
1503
1527
|
const n = e[t - 1], o = e[t];
|
|
1504
|
-
return
|
|
1528
|
+
return _i.test(n) ? bi(n) && gi(o) : !0;
|
|
1505
1529
|
}
|
|
1506
|
-
function
|
|
1530
|
+
function wo(e, t) {
|
|
1507
1531
|
const n = e.trim().toLowerCase();
|
|
1508
1532
|
if (n === "" || n.length > t.length) return null;
|
|
1509
1533
|
const o = t.toLowerCase();
|
|
@@ -1513,7 +1537,7 @@ function yo(e, t) {
|
|
|
1513
1537
|
const h = new Array(t.length).fill(null), m = new Array(t.length).fill(null);
|
|
1514
1538
|
for (let u = 0; u < t.length; u++) {
|
|
1515
1539
|
if (o[u] !== n[f]) continue;
|
|
1516
|
-
const _ =
|
|
1540
|
+
const _ = vi(t, u) ? fi : 0;
|
|
1517
1541
|
if (f === 0) {
|
|
1518
1542
|
h[u] = _;
|
|
1519
1543
|
continue;
|
|
@@ -1521,7 +1545,7 @@ function yo(e, t) {
|
|
|
1521
1545
|
for (let p = 0; p < u; p++) {
|
|
1522
1546
|
const g = r[p] ?? null;
|
|
1523
1547
|
if (g === null) continue;
|
|
1524
|
-
const b = g + _ + (p === u - 1 ?
|
|
1548
|
+
const b = g + _ + (p === u - 1 ? hi : 0);
|
|
1525
1549
|
(h[u] === null || b > h[u]) && (h[u] = b, m[u] = p);
|
|
1526
1550
|
}
|
|
1527
1551
|
}
|
|
@@ -1536,10 +1560,10 @@ function yo(e, t) {
|
|
|
1536
1560
|
for (let f = n.length - 1; f >= 0 && d !== null; f--)
|
|
1537
1561
|
l.push(d), d = s[f][d];
|
|
1538
1562
|
l.reverse();
|
|
1539
|
-
const c = (t.length - n.length) *
|
|
1540
|
-
return { rank: r[a] - c, finds:
|
|
1563
|
+
const c = (t.length - n.length) * mi;
|
|
1564
|
+
return { rank: r[a] - c, finds: yi(l) };
|
|
1541
1565
|
}
|
|
1542
|
-
function
|
|
1566
|
+
function yi(e) {
|
|
1543
1567
|
const t = [];
|
|
1544
1568
|
for (const n of e) {
|
|
1545
1569
|
const o = t[t.length - 1];
|
|
@@ -1547,17 +1571,17 @@ function bi(e) {
|
|
|
1547
1571
|
}
|
|
1548
1572
|
return t;
|
|
1549
1573
|
}
|
|
1550
|
-
function
|
|
1574
|
+
function wi(e, t) {
|
|
1551
1575
|
const n = t.trim();
|
|
1552
1576
|
if (n === "") return [];
|
|
1553
|
-
const o = n.toLowerCase(), r = n.length >=
|
|
1577
|
+
const o = n.toLowerCase(), r = n.length >= pi, s = [];
|
|
1554
1578
|
for (const a of e) {
|
|
1555
|
-
const l = a.weight ?? 0, d =
|
|
1579
|
+
const l = a.weight ?? 0, d = wo(n, a.name);
|
|
1556
1580
|
if (d !== null) {
|
|
1557
1581
|
s.push({ tier: 0, find: { candidate: a, rank: d.rank + l, finds: d.finds } });
|
|
1558
1582
|
continue;
|
|
1559
1583
|
}
|
|
1560
|
-
const c = a.group === void 0 ? null :
|
|
1584
|
+
const c = a.group === void 0 ? null : wo(n, a.group);
|
|
1561
1585
|
if (c !== null) {
|
|
1562
1586
|
s.push({ tier: 1, find: { candidate: a, rank: c.rank + l, finds: [] } });
|
|
1563
1587
|
continue;
|
|
@@ -1566,7 +1590,7 @@ function vi(e, t) {
|
|
|
1566
1590
|
}
|
|
1567
1591
|
return s.sort((a, l) => a.tier - l.tier || l.find.rank - a.find.rank).map((a) => a.find);
|
|
1568
1592
|
}
|
|
1569
|
-
function
|
|
1593
|
+
function ko(e) {
|
|
1570
1594
|
return {
|
|
1571
1595
|
name: e.label,
|
|
1572
1596
|
group: e.searchedGroup ?? e.group,
|
|
@@ -1577,10 +1601,10 @@ function wo(e) {
|
|
|
1577
1601
|
icon: e.icon
|
|
1578
1602
|
};
|
|
1579
1603
|
}
|
|
1580
|
-
function
|
|
1581
|
-
const r = n.trim() !== "", s = ue(() => e.map(
|
|
1604
|
+
function ki(e, t, n, o) {
|
|
1605
|
+
const r = n.trim() !== "", s = ue(() => e.map(ko), [e]), a = ue(() => wi(s, n), [s, n]), l = ue(
|
|
1582
1606
|
() => (t ?? []).map((m) => ({
|
|
1583
|
-
candidate:
|
|
1607
|
+
candidate: ko(m),
|
|
1584
1608
|
rank: 0,
|
|
1585
1609
|
finds: []
|
|
1586
1610
|
})),
|
|
@@ -1596,7 +1620,7 @@ function yi(e, t, n, o) {
|
|
|
1596
1620
|
}, [d]), h = ue(() => f.flatMap((m) => m.finds), [f]);
|
|
1597
1621
|
return { searching: r, groups: f, order: h, moreFinds: c };
|
|
1598
1622
|
}
|
|
1599
|
-
function
|
|
1623
|
+
function Ni(e) {
|
|
1600
1624
|
const t = P(null), [n, o] = E(0);
|
|
1601
1625
|
return J(() => {
|
|
1602
1626
|
const r = t.current;
|
|
@@ -1610,32 +1634,32 @@ function fn(e, t) {
|
|
|
1610
1634
|
const n = t.trim().toLowerCase();
|
|
1611
1635
|
return n ? e.filter((o) => o.label.toLowerCase().includes(n)) : e;
|
|
1612
1636
|
}
|
|
1613
|
-
function
|
|
1637
|
+
function No(e) {
|
|
1614
1638
|
return e.filter((t) => !t.disabled).map((t) => t.value);
|
|
1615
1639
|
}
|
|
1616
|
-
function
|
|
1640
|
+
function $i(e, t) {
|
|
1617
1641
|
const n = new Set(e);
|
|
1618
1642
|
return t.forEach((o) => n.add(o)), [...n];
|
|
1619
1643
|
}
|
|
1620
|
-
function
|
|
1644
|
+
function $o(e, t) {
|
|
1621
1645
|
const n = new Set(t);
|
|
1622
1646
|
return e.filter((o) => !n.has(o));
|
|
1623
1647
|
}
|
|
1624
|
-
function
|
|
1648
|
+
function xi(e, t) {
|
|
1625
1649
|
const n = new Set(e);
|
|
1626
1650
|
return t.forEach((o) => {
|
|
1627
1651
|
n.has(o) ? n.delete(o) : n.add(o);
|
|
1628
1652
|
}), [...n];
|
|
1629
1653
|
}
|
|
1630
|
-
function
|
|
1654
|
+
function br(e, t, n) {
|
|
1631
1655
|
return t <= 0 ? 0 : (e + n + t) % t;
|
|
1632
1656
|
}
|
|
1633
|
-
function
|
|
1657
|
+
function Ci(e, t) {
|
|
1634
1658
|
if (t === null) return 0;
|
|
1635
1659
|
const n = e.findIndex((o) => o.value === t);
|
|
1636
1660
|
return n === -1 ? 0 : n;
|
|
1637
1661
|
}
|
|
1638
|
-
function
|
|
1662
|
+
function Di({
|
|
1639
1663
|
order: e,
|
|
1640
1664
|
activeId: t,
|
|
1641
1665
|
setHeld: n,
|
|
@@ -1646,7 +1670,7 @@ function xi({
|
|
|
1646
1670
|
}) {
|
|
1647
1671
|
const l = fe(), d = (c) => {
|
|
1648
1672
|
if (o(), e.length === 0) return;
|
|
1649
|
-
const f = e.findIndex((m) => m.candidate.id === t), h = e[
|
|
1673
|
+
const f = e.findIndex((m) => m.candidate.id === t), h = e[br(f === -1 ? 0 : f, e.length, c)].candidate;
|
|
1650
1674
|
n(h.id), at(l.optionActive(h.name, { group: h.group }), r.current);
|
|
1651
1675
|
};
|
|
1652
1676
|
return (c) => {
|
|
@@ -1667,7 +1691,7 @@ function xi({
|
|
|
1667
1691
|
}
|
|
1668
1692
|
};
|
|
1669
1693
|
}
|
|
1670
|
-
function
|
|
1694
|
+
function Si(e) {
|
|
1671
1695
|
const [t, n] = E(null), o = t !== null && e.some((d) => d.candidate.id === t) ? t : e[0]?.candidate.id ?? null, r = P(!1), s = ne(() => {
|
|
1672
1696
|
r.current = !1;
|
|
1673
1697
|
}, []), a = ne((d) => {
|
|
@@ -1677,7 +1701,7 @@ function Ci(e) {
|
|
|
1677
1701
|
}, []);
|
|
1678
1702
|
return { activeId: o, setHeld: n, keyboardTakesOver: s, pointerMoves: a, pointerSweeps: l };
|
|
1679
1703
|
}
|
|
1680
|
-
function
|
|
1704
|
+
function r_({
|
|
1681
1705
|
ref: e,
|
|
1682
1706
|
open: t,
|
|
1683
1707
|
onClose: n,
|
|
@@ -1692,7 +1716,7 @@ function n_({
|
|
|
1692
1716
|
onKeyDownCapture: h,
|
|
1693
1717
|
...m
|
|
1694
1718
|
}) {
|
|
1695
|
-
const u = fe(), _ = ke(), p = `${_}-list`, { dialogRef: g, onDialogClose: b, onDialogCancel: w } =
|
|
1719
|
+
const u = fe(), _ = ke(), p = `${_}-list`, { dialogRef: g, onDialogClose: b, onDialogCancel: w } = gr(t, 0, n), v = P(null), C = P(null), [D, y] = E(""), { searching: S, groups: O, order: A, moreFinds: q } = ki(o, s, D, a), { activeId: $, setHeld: M, keyboardTakesOver: K, pointerMoves: X, pointerSweeps: k } = Si(A);
|
|
1696
1720
|
J(() => {
|
|
1697
1721
|
t && (C.current = document.activeElement, y(""), M(null), K(), v.current?.focus());
|
|
1698
1722
|
}, [t, M, K]);
|
|
@@ -1706,7 +1730,7 @@ function n_({
|
|
|
1706
1730
|
}, [t, D, S, B]), J(() => {
|
|
1707
1731
|
$ !== null && document.getElementById(Rn(_, $))?.scrollIntoView({ block: "nearest" });
|
|
1708
1732
|
}, [$, _]);
|
|
1709
|
-
const { bodyRef: x, bodyHeight: G } =
|
|
1733
|
+
const { bodyRef: x, bodyHeight: G } = Ni(t), V = Di({ order: A, activeId: $, setHeld: M, keyboardTakesOver: K, fieldRef: v, onChoose: r, onClose: n }), j = o.some((F) => F.icon !== void 0) || (s ?? []).some((F) => F.icon !== void 0);
|
|
1710
1734
|
return /* @__PURE__ */ i(
|
|
1711
1735
|
"dialog",
|
|
1712
1736
|
{
|
|
@@ -1762,7 +1786,7 @@ function n_({
|
|
|
1762
1786
|
className: ye.list,
|
|
1763
1787
|
children: O.map((F) => {
|
|
1764
1788
|
const U = `${_}-group-${At(F.name ?? "")}`, re = F.finds.map((z) => /* @__PURE__ */ i(
|
|
1765
|
-
|
|
1789
|
+
di,
|
|
1766
1790
|
{
|
|
1767
1791
|
find: z,
|
|
1768
1792
|
baseId: _,
|
|
@@ -1806,40 +1830,40 @@ function n_({
|
|
|
1806
1830
|
}
|
|
1807
1831
|
);
|
|
1808
1832
|
}
|
|
1809
|
-
const
|
|
1810
|
-
function
|
|
1811
|
-
return e instanceof HTMLElement ? e.isContentEditable || e.closest(
|
|
1833
|
+
const Mi = 'input, textarea, select, [contenteditable]:not([contenteditable="false"]), [role="textbox"], [role="searchbox"], [role="combobox"]';
|
|
1834
|
+
function Ti(e) {
|
|
1835
|
+
return e instanceof HTMLElement ? e.isContentEditable || e.closest(Mi) !== null : !1;
|
|
1812
1836
|
}
|
|
1813
|
-
function
|
|
1837
|
+
function Ai(e) {
|
|
1814
1838
|
for (let t = e instanceof Element ? e : null; t; t = t.parentElement)
|
|
1815
|
-
if (t.getAttribute("aria-modal") === "true" || t.tagName === "DIALOG" &&
|
|
1839
|
+
if (t.getAttribute("aria-modal") === "true" || t.tagName === "DIALOG" && Ri(t)) return !0;
|
|
1816
1840
|
return !1;
|
|
1817
1841
|
}
|
|
1818
|
-
function
|
|
1842
|
+
function Ri(e) {
|
|
1819
1843
|
try {
|
|
1820
1844
|
return e.matches(":modal");
|
|
1821
1845
|
} catch {
|
|
1822
1846
|
return !1;
|
|
1823
1847
|
}
|
|
1824
1848
|
}
|
|
1825
|
-
function
|
|
1849
|
+
function s_(e, t = {}) {
|
|
1826
1850
|
const n = P({ onOpen: e, options: t });
|
|
1827
1851
|
J(() => {
|
|
1828
1852
|
n.current = { onOpen: e, options: t };
|
|
1829
1853
|
}), J(() => {
|
|
1830
1854
|
const o = (r) => {
|
|
1831
|
-
if (!
|
|
1855
|
+
if (!Ai(r.target)) {
|
|
1832
1856
|
if ((r.key === "k" || r.key === "K") && (r.metaKey || r.ctrlKey)) {
|
|
1833
1857
|
r.preventDefault(), n.current.onOpen();
|
|
1834
1858
|
return;
|
|
1835
1859
|
}
|
|
1836
|
-
r.key === "/" && n.current.options.slash !== !1 && !r.metaKey && !r.ctrlKey && !
|
|
1860
|
+
r.key === "/" && n.current.options.slash !== !1 && !r.metaKey && !r.ctrlKey && !Ti(r.target) && (r.preventDefault(), n.current.onOpen());
|
|
1837
1861
|
}
|
|
1838
1862
|
};
|
|
1839
1863
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
1840
1864
|
}, []);
|
|
1841
1865
|
}
|
|
1842
|
-
const
|
|
1866
|
+
const Fi = { from: 0, to: 0, before: 0, after: 0 };
|
|
1843
1867
|
function $n({
|
|
1844
1868
|
count: e,
|
|
1845
1869
|
rowHeight: t,
|
|
@@ -1847,7 +1871,7 @@ function $n({
|
|
|
1847
1871
|
viewportHeight: o,
|
|
1848
1872
|
overscan: r = 4
|
|
1849
1873
|
}) {
|
|
1850
|
-
if (e <= 0 || t <= 0) return
|
|
1874
|
+
if (e <= 0 || t <= 0) return Fi;
|
|
1851
1875
|
const s = Math.max(0, n), a = Math.floor(s / t), l = Math.ceil(Math.max(0, o) / t) + 1, d = Math.max(0, a - r), c = Math.min(e, a + l + r);
|
|
1852
1876
|
return {
|
|
1853
1877
|
from: d,
|
|
@@ -1856,7 +1880,7 @@ function $n({
|
|
|
1856
1880
|
after: (e - c) * t
|
|
1857
1881
|
};
|
|
1858
1882
|
}
|
|
1859
|
-
function
|
|
1883
|
+
function Li(e, { rowHeight: t, scrollTop: n, viewportHeight: o, headerHeight: r = 0 }) {
|
|
1860
1884
|
if (t <= 0) return null;
|
|
1861
1885
|
const s = e * t, a = s + t;
|
|
1862
1886
|
return s < n + r ? Math.max(0, s - r) : a > n + o ? Math.max(0, a - o) : null;
|
|
@@ -1889,7 +1913,7 @@ function oo(e, t) {
|
|
|
1889
1913
|
(_) => {
|
|
1890
1914
|
const p = r.current;
|
|
1891
1915
|
if (!p) return;
|
|
1892
|
-
const g = p.querySelector("thead"), b =
|
|
1916
|
+
const g = p.querySelector("thead"), b = Li(_, {
|
|
1893
1917
|
rowHeight: c,
|
|
1894
1918
|
scrollTop: p.scrollTop,
|
|
1895
1919
|
viewportHeight: p.clientHeight,
|
|
@@ -1910,18 +1934,18 @@ function oo(e, t) {
|
|
|
1910
1934
|
onScroll: h
|
|
1911
1935
|
};
|
|
1912
1936
|
}
|
|
1913
|
-
const
|
|
1914
|
-
panel:
|
|
1915
|
-
list:
|
|
1916
|
-
option:
|
|
1917
|
-
active:
|
|
1918
|
-
selected:
|
|
1919
|
-
optionDisabled:
|
|
1920
|
-
optionLabel:
|
|
1921
|
-
groupLabel:
|
|
1922
|
-
empty:
|
|
1937
|
+
const Pi = "_panel_1qu8p_6", Ei = "_list_1qu8p_14 _scroll_18806_96", Ii = "_option_1qu8p_22", zi = "_active_1qu8p_37", Oi = "_selected_1qu8p_41", Bi = "_optionDisabled_1qu8p_46", qi = "_optionLabel_1qu8p_55", Hi = "_groupLabel_1qu8p_63", Wi = "_empty_1qu8p_70", et = {
|
|
1938
|
+
panel: Pi,
|
|
1939
|
+
list: Ei,
|
|
1940
|
+
option: Ii,
|
|
1941
|
+
active: zi,
|
|
1942
|
+
selected: Oi,
|
|
1943
|
+
optionDisabled: Bi,
|
|
1944
|
+
optionLabel: qi,
|
|
1945
|
+
groupLabel: Hi,
|
|
1946
|
+
empty: Wi
|
|
1923
1947
|
}, hn = 500, ro = (e, t) => `${e}-${t}`;
|
|
1924
|
-
function
|
|
1948
|
+
function vr({
|
|
1925
1949
|
open: e,
|
|
1926
1950
|
onClose: t,
|
|
1927
1951
|
anchorRef: n,
|
|
@@ -1999,7 +2023,7 @@ function br({
|
|
|
1999
2023
|
minWidth: 200,
|
|
2000
2024
|
className: et.panel,
|
|
2001
2025
|
children: _ ? /* @__PURE__ */ i(
|
|
2002
|
-
|
|
2026
|
+
Ki,
|
|
2003
2027
|
{
|
|
2004
2028
|
listRef: u,
|
|
2005
2029
|
id: r,
|
|
@@ -2017,7 +2041,7 @@ function br({
|
|
|
2017
2041
|
}
|
|
2018
2042
|
);
|
|
2019
2043
|
}
|
|
2020
|
-
function
|
|
2044
|
+
function Ki({ listRef: e, id: t, ariaLabel: n, count: o, activeIndex: r, open: s, option: a, busyText: l }) {
|
|
2021
2045
|
const { scrollRef: d, from: c, to: f, fillerBefore: h, fillerAfter: m, showRow: u, onScroll: _ } = oo(o, { rowHeight: 32 }), p = ne(
|
|
2022
2046
|
(C) => {
|
|
2023
2047
|
d.current = C, e(C);
|
|
@@ -2055,23 +2079,23 @@ function Hi({ listRef: e, id: t, ariaLabel: n, count: o, activeIndex: r, open: s
|
|
|
2055
2079
|
}
|
|
2056
2080
|
);
|
|
2057
2081
|
}
|
|
2058
|
-
const
|
|
2059
|
-
wrapper:
|
|
2060
|
-
wrapperSm:
|
|
2061
|
-
wrapperClearable:
|
|
2062
|
-
input:
|
|
2063
|
-
sm:
|
|
2064
|
-
invalid:
|
|
2065
|
-
chevron:
|
|
2066
|
-
toggle:
|
|
2067
|
-
inputClearable:
|
|
2068
|
-
clear:
|
|
2069
|
-
},
|
|
2082
|
+
const Ui = "_wrapper_uwl21_8 _text_18806_22 _extent_18806_75 _fieldRoot_18806_145", ji = "_wrapperSm_uwl21_16", Gi = "_wrapperClearable_uwl21_20", Vi = "_input_uwl21_24 _field_18806_90", Yi = "_sm_uwl21_41", Xi = "_invalid_uwl21_65", Qi = "_chevron_uwl21_75", Zi = "_toggle_uwl21_88", Ji = "_inputClearable_uwl21_101", el = "_clear_uwl21_105", dt = {
|
|
2083
|
+
wrapper: Ui,
|
|
2084
|
+
wrapperSm: ji,
|
|
2085
|
+
wrapperClearable: Gi,
|
|
2086
|
+
input: Vi,
|
|
2087
|
+
sm: Yi,
|
|
2088
|
+
invalid: Xi,
|
|
2089
|
+
chevron: Qi,
|
|
2090
|
+
toggle: Zi,
|
|
2091
|
+
inputClearable: Ji,
|
|
2092
|
+
clear: el
|
|
2093
|
+
}, xo = (e) => Math.max(1, Math.round(e));
|
|
2070
2094
|
function Wt(e, { natural: t, extra: n } = {}) {
|
|
2071
2095
|
const o = e !== void 0 && Number.isFinite(e), r = {};
|
|
2072
|
-
return o ? (r["--_chars"] =
|
|
2096
|
+
return o ? (r["--_chars"] = xo(e), r.inlineSize = "fit-content") : t !== void 0 && Number.isFinite(t) && (r["--_chars"] = xo(t)), n !== void 0 && n > 0 && (r["--_extra"] = n), Object.keys(r).length > 0 ? r : void 0;
|
|
2073
2097
|
}
|
|
2074
|
-
function
|
|
2098
|
+
function a_({
|
|
2075
2099
|
ref: e,
|
|
2076
2100
|
options: t,
|
|
2077
2101
|
value: n,
|
|
@@ -2097,7 +2121,7 @@ function r_({
|
|
|
2097
2121
|
const D = Pe(s), y = Ee(), S = fe(), O = r ?? S.comboboxPlaceholder, A = c ?? S.noMatches, q = d ?? y?.invalid ?? !1, [$, M] = E(!1), [K, X] = E(null), [k, B] = E(0), x = P(null), G = P(null), V = ke(), j = ue(() => t.find((R) => R.value === n) ?? null, [t, n]), F = ue(() => m ? fn(t, K ?? "") : t, [t, K, m]), [U, re] = E(null);
|
|
2098
2122
|
j && (U?.value !== j.value || U.label !== j.label) && re({ value: j.value, label: j.label });
|
|
2099
2123
|
const z = j?.label ?? (n !== null && U?.value === n ? U.label : ""), H = (R) => at(R === 0 ? A : S.optionCount(R), x.current), ae = (R = !1) => {
|
|
2100
|
-
B(
|
|
2124
|
+
B(Ci(F, n)), M(!0), R || H(F.length);
|
|
2101
2125
|
}, ee = P({ options: t, loading: u });
|
|
2102
2126
|
J(() => {
|
|
2103
2127
|
const R = ee.current;
|
|
@@ -2116,7 +2140,7 @@ function r_({
|
|
|
2116
2140
|
ae();
|
|
2117
2141
|
return;
|
|
2118
2142
|
}
|
|
2119
|
-
const se =
|
|
2143
|
+
const se = br(k, F.length, R.key === "ArrowDown" ? 1 : -1), me = F[se];
|
|
2120
2144
|
if (me === void 0) return;
|
|
2121
2145
|
B(se), at(
|
|
2122
2146
|
S.optionActive(me.label, { selected: me.value === n, disabled: me.disabled }),
|
|
@@ -2218,7 +2242,7 @@ function r_({
|
|
|
2218
2242
|
}
|
|
2219
2243
|
),
|
|
2220
2244
|
/* @__PURE__ */ i(
|
|
2221
|
-
|
|
2245
|
+
vr,
|
|
2222
2246
|
{
|
|
2223
2247
|
open: $,
|
|
2224
2248
|
onClose: he,
|
|
@@ -2236,30 +2260,30 @@ function r_({
|
|
|
2236
2260
|
)
|
|
2237
2261
|
] });
|
|
2238
2262
|
}
|
|
2239
|
-
function
|
|
2263
|
+
function tl(e, t, n, o) {
|
|
2240
2264
|
const r = Math.min(...e), a = Math.max(...e) - r || 1, l = Math.max(1, e.length - 1);
|
|
2241
2265
|
return e.map((d, c) => {
|
|
2242
2266
|
const f = o + c / l * (t - o * 2), h = o + (1 - (d - r) / a) * (n - o * 2);
|
|
2243
2267
|
return [f, h];
|
|
2244
2268
|
});
|
|
2245
2269
|
}
|
|
2246
|
-
const so = (e) => Math.max(0, Math.min(1, e)),
|
|
2247
|
-
meter:
|
|
2248
|
-
track:
|
|
2249
|
-
fill:
|
|
2250
|
-
neutral:
|
|
2251
|
-
accent:
|
|
2252
|
-
success:
|
|
2253
|
-
warning:
|
|
2254
|
-
danger:
|
|
2255
|
-
meterLabel:
|
|
2256
|
-
sparkline:
|
|
2257
|
-
sparklineFill:
|
|
2258
|
-
sparklineEnd:
|
|
2259
|
-
sparklineAccent:
|
|
2260
|
-
sparklineDot:
|
|
2270
|
+
const so = (e) => Math.max(0, Math.min(1, e)), yr = (e) => Math.round(so(e) * 100), nl = "_meter_jyopq_4 _text_18806_22", ol = "_track_jyopq_13", rl = "_fill_jyopq_21", sl = "_neutral_jyopq_28", al = "_accent_jyopq_29", il = "_success_jyopq_30", ll = "_warning_jyopq_31", cl = "_danger_jyopq_32", dl = "_meterLabel_jyopq_34", ul = "_sparkline_jyopq_45 _text_18806_22", fl = "_sparklineFill_jyopq_56", hl = "_sparklineEnd_jyopq_66", ml = "_sparklineAccent_jyopq_80", pl = "_sparklineDot_jyopq_84", ht = {
|
|
2271
|
+
meter: nl,
|
|
2272
|
+
track: ol,
|
|
2273
|
+
fill: rl,
|
|
2274
|
+
neutral: sl,
|
|
2275
|
+
accent: al,
|
|
2276
|
+
success: il,
|
|
2277
|
+
warning: ll,
|
|
2278
|
+
danger: cl,
|
|
2279
|
+
meterLabel: dl,
|
|
2280
|
+
sparkline: ul,
|
|
2281
|
+
sparklineFill: fl,
|
|
2282
|
+
sparklineEnd: hl,
|
|
2283
|
+
sparklineAccent: ml,
|
|
2284
|
+
sparklineDot: pl
|
|
2261
2285
|
};
|
|
2262
|
-
function
|
|
2286
|
+
function i_({ ref: e, value: t, tone: n = "accent", showLabel: o = !0, label: r, className: s, ...a }) {
|
|
2263
2287
|
const l = Ue(), d = fe(), c = so(t);
|
|
2264
2288
|
return /* @__PURE__ */ N(
|
|
2265
2289
|
"span",
|
|
@@ -2271,7 +2295,7 @@ function s_({ ref: e, value: t, tone: n = "accent", showLabel: o = !0, label: r,
|
|
|
2271
2295
|
role: "meter",
|
|
2272
2296
|
"aria-valuemin": 0,
|
|
2273
2297
|
"aria-valuemax": 100,
|
|
2274
|
-
"aria-valuenow":
|
|
2298
|
+
"aria-valuenow": yr(t),
|
|
2275
2299
|
children: [
|
|
2276
2300
|
/* @__PURE__ */ i("span", { className: ht.track, children: /* @__PURE__ */ i("span", { className: L(ht.fill, ht[n]), style: { width: `${c * 100}%` } }) }),
|
|
2277
2301
|
o && /* @__PURE__ */ i("span", { className: ht.meterLabel, children: l.percent(c) })
|
|
@@ -2279,10 +2303,10 @@ function s_({ ref: e, value: t, tone: n = "accent", showLabel: o = !0, label: r,
|
|
|
2279
2303
|
}
|
|
2280
2304
|
);
|
|
2281
2305
|
}
|
|
2282
|
-
function
|
|
2306
|
+
function _l({ ref: e, data: t, width: n = 96, height: o = 28, tone: r = "ink", className: s, ...a }) {
|
|
2283
2307
|
const l = ke();
|
|
2284
2308
|
if (t.length < 2) return null;
|
|
2285
|
-
const d = n === "fill", c = d ? 100 : n, f = d ? 100 : o, h = d ? 0 : 3, m =
|
|
2309
|
+
const d = n === "fill", c = d ? 100 : n, f = d ? 100 : o, h = d ? 0 : 3, m = tl(t, c, f, h), u = m.map(([b, w]) => `${b},${w}`).join(" "), _ = `M${h},${f - h} L${u.replace(/ /g, " L")} L${c - h},${f - h} Z`, [p, g] = m[m.length - 1] ?? [0, 0];
|
|
2286
2310
|
return /* @__PURE__ */ N(
|
|
2287
2311
|
"span",
|
|
2288
2312
|
{
|
|
@@ -2327,15 +2351,15 @@ function ml({ ref: e, data: t, width: n = 96, height: o = 28, tone: r = "ink", c
|
|
|
2327
2351
|
}
|
|
2328
2352
|
);
|
|
2329
2353
|
}
|
|
2330
|
-
const
|
|
2331
|
-
wrapper:
|
|
2332
|
-
wrapperSm:
|
|
2333
|
-
wrapperClearable:
|
|
2334
|
-
wrapperInvalid:
|
|
2335
|
-
wrapperDisabled:
|
|
2336
|
-
inner:
|
|
2337
|
-
numeric:
|
|
2338
|
-
clear:
|
|
2354
|
+
const gl = "_wrapper_epo32_11 _text_18806_22 _extent_18806_75 _fieldRoot_18806_145", bl = "_wrapperSm_epo32_38", vl = "_wrapperClearable_epo32_46", yl = "_wrapperInvalid_epo32_51", wl = "_wrapperDisabled_epo32_27", kl = "_inner_epo32_67 _field_18806_90", Nl = "_numeric_epo32_108", $l = "_clear_epo32_116", xt = {
|
|
2355
|
+
wrapper: gl,
|
|
2356
|
+
wrapperSm: bl,
|
|
2357
|
+
wrapperClearable: vl,
|
|
2358
|
+
wrapperInvalid: yl,
|
|
2359
|
+
wrapperDisabled: wl,
|
|
2360
|
+
inner: kl,
|
|
2361
|
+
numeric: Nl,
|
|
2362
|
+
clear: $l
|
|
2339
2363
|
};
|
|
2340
2364
|
function ao({ ref: e, size: t, chars: n, invalid: o, numeric: r = !1, clearable: s = !1, onClear: a, className: l, style: d, id: c, disabled: f, ...h }) {
|
|
2341
2365
|
const m = Pe(t), u = Ee(), _ = fe(), p = o ?? u?.invalid ?? !1, g = String(h.value ?? "").length > 0;
|
|
@@ -2381,9 +2405,9 @@ function ao({ ref: e, size: t, chars: n, invalid: o, numeric: r = !1, clearable:
|
|
|
2381
2405
|
}
|
|
2382
2406
|
);
|
|
2383
2407
|
}
|
|
2384
|
-
const
|
|
2385
|
-
hidden:
|
|
2386
|
-
focusable:
|
|
2408
|
+
const xl = "_hidden_69gri_7", Cl = "_focusable_69gri_20 _text_18806_22", Co = {
|
|
2409
|
+
hidden: xl,
|
|
2410
|
+
focusable: Cl
|
|
2387
2411
|
};
|
|
2388
2412
|
function io({
|
|
2389
2413
|
ref: e,
|
|
@@ -2397,15 +2421,15 @@ function io({
|
|
|
2397
2421
|
t ?? "span",
|
|
2398
2422
|
{
|
|
2399
2423
|
ref: e,
|
|
2400
|
-
className: L(
|
|
2424
|
+
className: L(Co.hidden, n && Co.focusable, o),
|
|
2401
2425
|
...s,
|
|
2402
2426
|
children: r
|
|
2403
2427
|
}
|
|
2404
2428
|
);
|
|
2405
2429
|
}
|
|
2406
|
-
const Fn = 9e5, Vt = 864e5,
|
|
2407
|
-
function
|
|
2408
|
-
let t =
|
|
2430
|
+
const Fn = 9e5, Vt = 864e5, Do = /* @__PURE__ */ new Map();
|
|
2431
|
+
function Dl(e) {
|
|
2432
|
+
let t = Do.get(e);
|
|
2409
2433
|
return t || (t = { format: new Intl.DateTimeFormat("en-US", {
|
|
2410
2434
|
timeZone: e,
|
|
2411
2435
|
hourCycle: "h23",
|
|
@@ -2416,12 +2440,12 @@ function xl(e) {
|
|
|
2416
2440
|
minute: "numeric",
|
|
2417
2441
|
second: "numeric",
|
|
2418
2442
|
era: "short"
|
|
2419
|
-
}), offsets: /* @__PURE__ */ new Map(), days: /* @__PURE__ */ new Map() },
|
|
2443
|
+
}), offsets: /* @__PURE__ */ new Map(), days: /* @__PURE__ */ new Map() }, Do.set(e, t)), t;
|
|
2420
2444
|
}
|
|
2421
2445
|
function nn(e, t) {
|
|
2422
|
-
const n = Math.floor(e / Vt), o =
|
|
2446
|
+
const n = Math.floor(e / Vt), o = Sl[(n % 8 + 8) % 8];
|
|
2423
2447
|
if (o.day === n && o.zone === t) return o.offset;
|
|
2424
|
-
const r =
|
|
2448
|
+
const r = Dl(t);
|
|
2425
2449
|
let s = r.days.get(n);
|
|
2426
2450
|
if (s === void 0) {
|
|
2427
2451
|
const a = xn(n * Vt, r);
|
|
@@ -2429,7 +2453,7 @@ function nn(e, t) {
|
|
|
2429
2453
|
}
|
|
2430
2454
|
return s === null ? xn(e, r) : (o.day = n, o.zone = t, o.offset = s, s);
|
|
2431
2455
|
}
|
|
2432
|
-
const
|
|
2456
|
+
const Sl = /* @__PURE__ */ Array.from({ length: 8 }, () => ({ day: NaN, zone: "", offset: 0 }));
|
|
2433
2457
|
function xn(e, t) {
|
|
2434
2458
|
const n = Math.floor(e / Fn);
|
|
2435
2459
|
let o = t.offsets.get(n);
|
|
@@ -2455,7 +2479,7 @@ function wt(e, t) {
|
|
|
2455
2479
|
weekday: c.getDay()
|
|
2456
2480
|
};
|
|
2457
2481
|
}
|
|
2458
|
-
const o = n + nn(n, t), r = Math.floor(o / Vt), [s, a, l] =
|
|
2482
|
+
const o = n + nn(n, t), r = Math.floor(o / Vt), [s, a, l] = Ml(r), d = o - r * Vt;
|
|
2459
2483
|
return {
|
|
2460
2484
|
year: s,
|
|
2461
2485
|
month: a,
|
|
@@ -2466,23 +2490,23 @@ function wt(e, t) {
|
|
|
2466
2490
|
weekday: ((r + 4) % 7 + 7) % 7
|
|
2467
2491
|
};
|
|
2468
2492
|
}
|
|
2469
|
-
function
|
|
2493
|
+
function Ml(e) {
|
|
2470
2494
|
const t = e + 719468, n = Math.floor(t / 146097), o = t - n * 146097, r = Math.floor((o - Math.floor(o / 1460) + Math.floor(o / 36524) - Math.floor(o / 146096)) / 365), s = o - (365 * r + Math.floor(r / 4) - Math.floor(r / 100)), a = Math.floor((5 * s + 2) / 153), l = s - Math.floor((153 * a + 2) / 5) + 1, d = a < 10 ? a + 2 : a - 10;
|
|
2471
2495
|
return [r + n * 400 + (d < 2 ? 1 : 0), d, l];
|
|
2472
2496
|
}
|
|
2473
|
-
function
|
|
2497
|
+
function Tl(e, t, n) {
|
|
2474
2498
|
const o = (t % 12 + 12) % 12, r = e + Math.floor(t / 12) - (o < 2 ? 1 : 0), s = Math.floor(r / 400), a = r - s * 400, l = Math.floor((153 * (o < 2 ? o + 10 : o - 2) + 2) / 5), d = a * 365 + Math.floor(a / 4) - Math.floor(a / 100) + l;
|
|
2475
2499
|
return s * 146097 + d - 719468 + n - 1;
|
|
2476
2500
|
}
|
|
2477
2501
|
function sn(e, t) {
|
|
2478
2502
|
const { year: n, month: o, day: r, hours: s = 0, minutes: a = 0, seconds: l = 0, milliseconds: d = 0 } = e;
|
|
2479
2503
|
if (t === void 0) return new Date(n, o, r, s, a, l, d);
|
|
2480
|
-
const c =
|
|
2504
|
+
const c = Tl(n, o, r) * Vt + s * 36e5 + a * 6e4 + l * 1e3 + d, f = nn(c - 864e5, t), h = nn(c + 864e5, t);
|
|
2481
2505
|
if (f === h) return new Date(c - f);
|
|
2482
2506
|
const m = c - f, u = c - h;
|
|
2483
2507
|
return nn(m, t) === f ? new Date(m) : new Date(nn(u, t) === h ? u : m);
|
|
2484
2508
|
}
|
|
2485
|
-
function
|
|
2509
|
+
function l_(e, t) {
|
|
2486
2510
|
const { year: n, month: o, day: r } = wt(e, t);
|
|
2487
2511
|
return sn({ year: n, month: o, day: r }, t);
|
|
2488
2512
|
}
|
|
@@ -2490,28 +2514,28 @@ function De(e, t) {
|
|
|
2490
2514
|
const n = wt(e, t);
|
|
2491
2515
|
return new Date(n.year, n.month, n.day);
|
|
2492
2516
|
}
|
|
2493
|
-
const He = (e) => De(/* @__PURE__ */ new Date(), e), rn = (e, t) => sn({ year: e.getFullYear(), month: e.getMonth(), day: e.getDate() }, t),
|
|
2517
|
+
const He = (e) => De(/* @__PURE__ */ new Date(), e), rn = (e, t) => sn({ year: e.getFullYear(), month: e.getMonth(), day: e.getDate() }, t), Al = (e, t, n) => sn(
|
|
2494
2518
|
{ year: e.getFullYear(), month: e.getMonth(), day: e.getDate(), hours: 23, minutes: 59, seconds: t ? 59 : 0 },
|
|
2495
2519
|
n
|
|
2496
2520
|
), _t = (e, t) => t === void 0 ? e : sn({ year: e.getFullYear(), month: e.getMonth(), day: e.getDate(), hours: 12 }, t);
|
|
2497
|
-
function
|
|
2521
|
+
function Rl(e, t) {
|
|
2498
2522
|
const n = wt(e, t);
|
|
2499
2523
|
return n.hours === 0 && n.minutes === 0 && n.seconds === 0 && e.getTime() % 1e3 === 0;
|
|
2500
2524
|
}
|
|
2501
|
-
const
|
|
2502
|
-
function
|
|
2503
|
-
const t = e.date(
|
|
2525
|
+
const Fl = new Date(2031, 11, 25), wr = (e) => _t(Fl, e.timeZone), Ll = (e) => e.date(wr(e));
|
|
2526
|
+
function Pl(e) {
|
|
2527
|
+
const t = e.date(wr(e)).match(/\d+/g) ?? [], n = { 25: "d", 12: "m", 2031: "y" }, o = t.map((r) => n[r]).filter((r) => !!r);
|
|
2504
2528
|
return o.length === 3 ? o : ["d", "m", "y"];
|
|
2505
2529
|
}
|
|
2506
|
-
function
|
|
2530
|
+
function El(e, t) {
|
|
2507
2531
|
const n = Math.floor(t / 100) * 100 + e;
|
|
2508
2532
|
return [n - 100, n, n + 100].reduce(
|
|
2509
2533
|
(o, r) => Math.abs(r - t) < Math.abs(o - t) ? r : o
|
|
2510
2534
|
);
|
|
2511
2535
|
}
|
|
2512
|
-
function
|
|
2536
|
+
function So(e, t, n = /* @__PURE__ */ new Date()) {
|
|
2513
2537
|
const o = e.trim();
|
|
2514
|
-
let r =
|
|
2538
|
+
let r = Pl(t), s = o.split(/\D+/).filter(Boolean);
|
|
2515
2539
|
if (/^\d+$/.test(o)) {
|
|
2516
2540
|
const h = o.length === 6 ? [2, 2, 2] : r[0] === "y" ? [4, 2, 2] : [2, 2, 4];
|
|
2517
2541
|
if (o.length !== 6 && o.length !== 8) return null;
|
|
@@ -2521,99 +2545,99 @@ function Do(e, t, n = /* @__PURE__ */ new Date()) {
|
|
|
2521
2545
|
if (s.length !== 3) return null;
|
|
2522
2546
|
const a = { d: "", m: "", y: "" };
|
|
2523
2547
|
if (r.forEach((h, m) => a[h] = s[m]), a.d.length > 2 || a.m.length > 2 || a.y.length !== 2 && a.y.length !== 4) return null;
|
|
2524
|
-
const l = Number(a.d), d = Number(a.m), c = a.y.length === 2 ?
|
|
2548
|
+
const l = Number(a.d), d = Number(a.m), c = a.y.length === 2 ? El(Number(a.y), n.getFullYear()) : Number(a.y), f = new Date(c, d - 1, l);
|
|
2525
2549
|
return f.setFullYear(c), f.getFullYear() !== c || f.getMonth() !== d - 1 || f.getDate() !== l ? null : f;
|
|
2526
2550
|
}
|
|
2527
2551
|
const Se = (e) => new Date(e.getFullYear(), e.getMonth(), 1), mt = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Yt = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Ln = (e, t) => {
|
|
2528
2552
|
const n = new Date(e.getFullYear(), e.getMonth() + t + 1, 0).getDate();
|
|
2529
2553
|
return new Date(e.getFullYear(), e.getMonth() + t, Math.min(e.getDate(), n));
|
|
2530
|
-
}, Ve = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), We = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Pn = (e, t) => We(e).getTime() < We(t).getTime(),
|
|
2531
|
-
function
|
|
2554
|
+
}, Ve = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), We = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Pn = (e, t) => We(e).getTime() < We(t).getTime(), Il = 42;
|
|
2555
|
+
function zl(e) {
|
|
2532
2556
|
const t = Se(e), n = (t.getDay() + 6) % 7, o = mt(t, -n);
|
|
2533
|
-
return Array.from({ length:
|
|
2557
|
+
return Array.from({ length: Il }, (r, s) => mt(o, s));
|
|
2534
2558
|
}
|
|
2535
|
-
function
|
|
2559
|
+
function Ol(e, t, n) {
|
|
2536
2560
|
const o = t ?? n ?? null, r = !t && !!n;
|
|
2537
2561
|
return !e || !o ? { from: null, to: null, isPreview: r } : Pn(o, e) ? { from: o, to: e, isPreview: r } : { from: e, to: o, isPreview: r };
|
|
2538
2562
|
}
|
|
2539
|
-
const
|
|
2563
|
+
const Bl = {
|
|
2540
2564
|
ArrowLeft: -1,
|
|
2541
2565
|
ArrowRight: 1,
|
|
2542
2566
|
ArrowUp: -7,
|
|
2543
2567
|
ArrowDown: 7
|
|
2544
|
-
},
|
|
2545
|
-
trigger:
|
|
2546
|
-
sm:
|
|
2547
|
-
invalid:
|
|
2548
|
-
value:
|
|
2549
|
-
placeholder:
|
|
2550
|
-
icon:
|
|
2551
|
-
panel:
|
|
2552
|
-
head:
|
|
2553
|
-
jump:
|
|
2554
|
-
month:
|
|
2555
|
-
weekdays:
|
|
2556
|
-
grid:
|
|
2557
|
-
day:
|
|
2558
|
-
otherMonth:
|
|
2559
|
-
outside:
|
|
2560
|
-
today:
|
|
2561
|
-
selected:
|
|
2562
|
-
foot:
|
|
2563
|
-
typed:
|
|
2564
|
-
hangStart:
|
|
2565
|
-
hangEnd:
|
|
2566
|
-
timeRow:
|
|
2567
|
-
timeLabel:
|
|
2568
|
-
timeGroup:
|
|
2569
|
-
timeFieldWrap:
|
|
2570
|
-
timeField:
|
|
2571
|
-
timeStepper:
|
|
2572
|
-
timeSeparator:
|
|
2573
|
-
dstHint:
|
|
2574
|
-
dstChoice:
|
|
2575
|
-
dstButtons:
|
|
2576
|
-
footLeft:
|
|
2577
|
-
triggerWrap:
|
|
2578
|
-
triggerWrapClearable:
|
|
2579
|
-
triggerClear:
|
|
2580
|
-
clearable:
|
|
2581
|
-
rangeDash:
|
|
2582
|
-
rangePanel:
|
|
2583
|
-
rangeRight:
|
|
2584
|
-
rangeBody:
|
|
2585
|
-
presetColumn:
|
|
2586
|
-
preset:
|
|
2587
|
-
presetActive:
|
|
2588
|
-
monthPair:
|
|
2589
|
-
monthColumn:
|
|
2590
|
-
pageSpacer:
|
|
2591
|
-
dayEmpty:
|
|
2592
|
-
inRange:
|
|
2593
|
-
rangeFrom:
|
|
2594
|
-
rangeTo:
|
|
2595
|
-
rangeSingle:
|
|
2596
|
-
inPreview:
|
|
2597
|
-
previewEnd:
|
|
2598
|
-
footNote:
|
|
2599
|
-
timeRangeRow:
|
|
2600
|
-
timeHalf:
|
|
2601
|
-
timeHalfHead:
|
|
2602
|
-
timeDate:
|
|
2603
|
-
footNoteRight:
|
|
2604
|
-
timeFieldDisabled:
|
|
2605
|
-
},
|
|
2606
|
-
wrapper:
|
|
2607
|
-
wrapperSm:
|
|
2608
|
-
wrapperClearable:
|
|
2609
|
-
select:
|
|
2610
|
-
sm:
|
|
2611
|
-
invalid:
|
|
2612
|
-
chevron:
|
|
2613
|
-
selectClearable:
|
|
2614
|
-
clear:
|
|
2568
|
+
}, ql = (e) => Bl[e], Mo = (e, t) => e.getMonth() !== t.getMonth() || e.getFullYear() !== t.getFullYear(), To = (e) => mt(e, -((e.getDay() + 6) % 7)), Hl = "_trigger_5tnnr_4", Wl = "_sm_5tnnr_38", Kl = "_invalid_5tnnr_44", Ul = "_value_5tnnr_54", jl = "_placeholder_5tnnr_65", Gl = "_icon_5tnnr_77", Vl = "_panel_5tnnr_86 _text_18806_22", Yl = "_head_5tnnr_97", Xl = "_jump_5tnnr_105", Ql = "_month_5tnnr_110", Zl = "_weekdays_5tnnr_115", Jl = "_grid_5tnnr_116", ec = "_day_5tnnr_135 _ring_18806_125", tc = "_otherMonth_5tnnr_163", nc = "_outside_5tnnr_168", oc = "_today_5tnnr_180", rc = "_selected_5tnnr_198", sc = "_foot_5tnnr_205", ac = "_typed_5tnnr_223", ic = "_hangStart_5tnnr_229", lc = "_hangEnd_5tnnr_233", cc = "_timeRow_5tnnr_241", dc = "_timeLabel_5tnnr_251", uc = "_timeGroup_5tnnr_259", fc = "_timeFieldWrap_5tnnr_269", hc = "_timeField_5tnnr_269 _field_18806_90", mc = "_timeStepper_5tnnr_310", pc = "_timeSeparator_5tnnr_375", _c = "_dstHint_5tnnr_381", gc = "_dstChoice_5tnnr_388", bc = "_dstButtons_5tnnr_394", vc = "_footLeft_5tnnr_399", yc = "_triggerWrap_5tnnr_414 _text_18806_22 _extent_18806_75", wc = "_triggerWrapClearable_5tnnr_424", kc = "_triggerClear_5tnnr_430", Nc = "_clearable_5tnnr_457", $c = "_rangeDash_5tnnr_489", xc = "_rangePanel_5tnnr_494 _text_18806_22", Cc = "_rangeRight_5tnnr_502", Dc = "_rangeBody_5tnnr_506", Sc = "_presetColumn_5tnnr_512", Mc = "_preset_5tnnr_512 _ring_18806_125", Tc = "_presetActive_5tnnr_550", Ac = "_monthPair_5tnnr_557", Rc = "_monthColumn_5tnnr_562", Fc = "_pageSpacer_5tnnr_600", Lc = "_dayEmpty_5tnnr_606", Pc = "_inRange_5tnnr_613", Ec = "_rangeFrom_5tnnr_623", Ic = "_rangeTo_5tnnr_625", zc = "_rangeSingle_5tnnr_627", Oc = "_inPreview_5tnnr_650", Bc = "_previewEnd_5tnnr_655", qc = "_footNote_5tnnr_666", Hc = "_timeRangeRow_5tnnr_686", Wc = "_timeHalf_5tnnr_705", Kc = "_timeHalfHead_5tnnr_713", Uc = "_timeDate_5tnnr_720", jc = "_footNoteRight_5tnnr_727", Gc = "_timeFieldDisabled_5tnnr_735", I = {
|
|
2569
|
+
trigger: Hl,
|
|
2570
|
+
sm: Wl,
|
|
2571
|
+
invalid: Kl,
|
|
2572
|
+
value: Ul,
|
|
2573
|
+
placeholder: jl,
|
|
2574
|
+
icon: Gl,
|
|
2575
|
+
panel: Vl,
|
|
2576
|
+
head: Yl,
|
|
2577
|
+
jump: Xl,
|
|
2578
|
+
month: Ql,
|
|
2579
|
+
weekdays: Zl,
|
|
2580
|
+
grid: Jl,
|
|
2581
|
+
day: ec,
|
|
2582
|
+
otherMonth: tc,
|
|
2583
|
+
outside: nc,
|
|
2584
|
+
today: oc,
|
|
2585
|
+
selected: rc,
|
|
2586
|
+
foot: sc,
|
|
2587
|
+
typed: ac,
|
|
2588
|
+
hangStart: ic,
|
|
2589
|
+
hangEnd: lc,
|
|
2590
|
+
timeRow: cc,
|
|
2591
|
+
timeLabel: dc,
|
|
2592
|
+
timeGroup: uc,
|
|
2593
|
+
timeFieldWrap: fc,
|
|
2594
|
+
timeField: hc,
|
|
2595
|
+
timeStepper: mc,
|
|
2596
|
+
timeSeparator: pc,
|
|
2597
|
+
dstHint: _c,
|
|
2598
|
+
dstChoice: gc,
|
|
2599
|
+
dstButtons: bc,
|
|
2600
|
+
footLeft: vc,
|
|
2601
|
+
triggerWrap: yc,
|
|
2602
|
+
triggerWrapClearable: wc,
|
|
2603
|
+
triggerClear: kc,
|
|
2604
|
+
clearable: Nc,
|
|
2605
|
+
rangeDash: $c,
|
|
2606
|
+
rangePanel: xc,
|
|
2607
|
+
rangeRight: Cc,
|
|
2608
|
+
rangeBody: Dc,
|
|
2609
|
+
presetColumn: Sc,
|
|
2610
|
+
preset: Mc,
|
|
2611
|
+
presetActive: Tc,
|
|
2612
|
+
monthPair: Ac,
|
|
2613
|
+
monthColumn: Rc,
|
|
2614
|
+
pageSpacer: Fc,
|
|
2615
|
+
dayEmpty: Lc,
|
|
2616
|
+
inRange: Pc,
|
|
2617
|
+
rangeFrom: Ec,
|
|
2618
|
+
rangeTo: Ic,
|
|
2619
|
+
rangeSingle: zc,
|
|
2620
|
+
inPreview: Oc,
|
|
2621
|
+
previewEnd: Bc,
|
|
2622
|
+
footNote: qc,
|
|
2623
|
+
timeRangeRow: Hc,
|
|
2624
|
+
timeHalf: Wc,
|
|
2625
|
+
timeHalfHead: Kc,
|
|
2626
|
+
timeDate: Uc,
|
|
2627
|
+
footNoteRight: jc,
|
|
2628
|
+
timeFieldDisabled: Gc
|
|
2629
|
+
}, Vc = "_wrapper_1muba_8 _text_18806_22 _extent_18806_75 _fieldRoot_18806_145", Yc = "_wrapperSm_1muba_16", Xc = "_wrapperClearable_1muba_20", Qc = "_select_1muba_24 _field_18806_90", Zc = "_sm_1muba_76", Jc = "_invalid_1muba_82", ed = "_chevron_1muba_93", td = "_selectClearable_1muba_105", nd = "_clear_1muba_110", yt = {
|
|
2630
|
+
wrapper: Vc,
|
|
2631
|
+
wrapperSm: Yc,
|
|
2632
|
+
wrapperClearable: Xc,
|
|
2633
|
+
select: Qc,
|
|
2634
|
+
sm: Zc,
|
|
2635
|
+
invalid: Jc,
|
|
2636
|
+
chevron: ed,
|
|
2637
|
+
selectClearable: td,
|
|
2638
|
+
clear: nd
|
|
2615
2639
|
};
|
|
2616
|
-
function
|
|
2640
|
+
function Ao({
|
|
2617
2641
|
ref: e,
|
|
2618
2642
|
size: t,
|
|
2619
2643
|
chars: n,
|
|
@@ -2636,13 +2660,13 @@ function To({
|
|
|
2636
2660
|
const B = P("mouse"), x = P({ text: "", at: 0 }), G = () => {
|
|
2637
2661
|
const z = y.current;
|
|
2638
2662
|
if (!z) return;
|
|
2639
|
-
const H =
|
|
2663
|
+
const H = Ro(z);
|
|
2640
2664
|
$(H), k(p["aria-label"] ?? z.labels?.[0]?.textContent ?? w.options), K(Math.max(0, z.selectedIndex)), A(!0), at(H.length === 0 ? w.noMatches : w.optionCount(H.length), z);
|
|
2641
2665
|
}, V = () => {
|
|
2642
2666
|
no(), A(!1);
|
|
2643
2667
|
};
|
|
2644
2668
|
J(() => {
|
|
2645
|
-
O && y.current && $(
|
|
2669
|
+
O && y.current && $(Ro(y.current));
|
|
2646
2670
|
}, [O, c]);
|
|
2647
2671
|
const j = (z) => {
|
|
2648
2672
|
const H = y.current;
|
|
@@ -2668,7 +2692,7 @@ function To({
|
|
|
2668
2692
|
if (u?.(z), !D || z.defaultPrevented || z.nativeEvent.isComposing) return;
|
|
2669
2693
|
const { key: H } = z;
|
|
2670
2694
|
if (!O) {
|
|
2671
|
-
|
|
2695
|
+
od.has(H) && (z.preventDefault(), G());
|
|
2672
2696
|
return;
|
|
2673
2697
|
}
|
|
2674
2698
|
if (H === "Tab") {
|
|
@@ -2676,7 +2700,7 @@ function To({
|
|
|
2676
2700
|
return;
|
|
2677
2701
|
}
|
|
2678
2702
|
if (H === "Escape") return;
|
|
2679
|
-
const ae = q.length - 1, ee =
|
|
2703
|
+
const ae = q.length - 1, ee = rd[H];
|
|
2680
2704
|
ee !== void 0 ? (z.preventDefault(), F(Math.max(0, Math.min(ae, M + ee)))) : H === "Home" || H === "End" ? (z.preventDefault(), F(H === "Home" ? 0 : ae)) : H === "Enter" || H === " " && z.timeStamp - x.current.at >= 500 ? (z.preventDefault(), j(M)) : H.length === 1 && !z.ctrlKey && !z.metaKey && !z.altKey && (z.preventDefault(), U(H, z.timeStamp));
|
|
2681
2705
|
};
|
|
2682
2706
|
return /* @__PURE__ */ N(
|
|
@@ -2736,7 +2760,7 @@ function To({
|
|
|
2736
2760
|
),
|
|
2737
2761
|
/* @__PURE__ */ i(Zt, { className: yt.chevron }),
|
|
2738
2762
|
D && /* @__PURE__ */ i(
|
|
2739
|
-
|
|
2763
|
+
vr,
|
|
2740
2764
|
{
|
|
2741
2765
|
open: O,
|
|
2742
2766
|
onClose: V,
|
|
@@ -2754,8 +2778,8 @@ function To({
|
|
|
2754
2778
|
}
|
|
2755
2779
|
);
|
|
2756
2780
|
}
|
|
2757
|
-
const
|
|
2758
|
-
function
|
|
2781
|
+
const od = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", " ", "F4"]), rd = { ArrowDown: 1, ArrowUp: -1, PageDown: 10, PageUp: -10 };
|
|
2782
|
+
function Ro(e) {
|
|
2759
2783
|
return Array.from(e.options, (t) => {
|
|
2760
2784
|
const n = t.parentElement instanceof HTMLOptGroupElement ? t.parentElement : null;
|
|
2761
2785
|
return {
|
|
@@ -2768,7 +2792,7 @@ function Ao(e) {
|
|
|
2768
2792
|
};
|
|
2769
2793
|
});
|
|
2770
2794
|
}
|
|
2771
|
-
const
|
|
2795
|
+
const sd = { min: null, max: null };
|
|
2772
2796
|
function bn(e, t) {
|
|
2773
2797
|
const { timeZone: n } = Ue();
|
|
2774
2798
|
return { min: e ? De(e, n) : null, max: t ? De(t, n) : null };
|
|
@@ -2782,11 +2806,11 @@ function Xt(e, t, n) {
|
|
|
2782
2806
|
return t.min && tt(s) < tt(t.min) || t.max && tt(r) > tt(t.max) ? null : [pt(r, t), pt(s, t)];
|
|
2783
2807
|
}
|
|
2784
2808
|
Bt.weekdays;
|
|
2785
|
-
function
|
|
2809
|
+
function ad(e, t, n) {
|
|
2786
2810
|
if (e === "PageUp") return Ln(n, t ? -12 : -1);
|
|
2787
2811
|
if (e === "PageDown") return Ln(n, t ? 12 : 1);
|
|
2788
|
-
if (e === "Home") return
|
|
2789
|
-
if (e === "End") return mt(
|
|
2812
|
+
if (e === "Home") return To(n);
|
|
2813
|
+
if (e === "End") return mt(To(n), 6);
|
|
2790
2814
|
}
|
|
2791
2815
|
function mn({
|
|
2792
2816
|
autoFocus: e = !1,
|
|
@@ -2805,7 +2829,7 @@ function mn({
|
|
|
2805
2829
|
withoutOtherMonth: u = !1,
|
|
2806
2830
|
today: _,
|
|
2807
2831
|
onDigit: p,
|
|
2808
|
-
bounds: g =
|
|
2832
|
+
bounds: g = sd
|
|
2809
2833
|
}) {
|
|
2810
2834
|
const b = fe(), w = Ue(), v = P(null), { timeZone: C } = w;
|
|
2811
2835
|
J(() => {
|
|
@@ -2815,17 +2839,17 @@ function mn({
|
|
|
2815
2839
|
x && x.contains(document.activeElement) && x.querySelector('[data-active="true"]')?.focus();
|
|
2816
2840
|
}, [o]);
|
|
2817
2841
|
const D = (x) => {
|
|
2818
|
-
const G =
|
|
2842
|
+
const G = ql(x.key);
|
|
2819
2843
|
if (G !== void 0) {
|
|
2820
2844
|
x.preventDefault();
|
|
2821
2845
|
const j = pt(mt(o, G), g);
|
|
2822
|
-
r(j),
|
|
2846
|
+
r(j), Mo(j, t) && n(Se(j));
|
|
2823
2847
|
return;
|
|
2824
2848
|
}
|
|
2825
|
-
const V =
|
|
2849
|
+
const V = ad(x.key, x.shiftKey, o);
|
|
2826
2850
|
if (V) {
|
|
2827
2851
|
const j = pt(V, g);
|
|
2828
|
-
x.preventDefault(), r(j),
|
|
2852
|
+
x.preventDefault(), r(j), Mo(j, t) && n(Se(j));
|
|
2829
2853
|
return;
|
|
2830
2854
|
}
|
|
2831
2855
|
if (p && /^\d$/.test(x.key) && !x.ctrlKey && !x.metaKey && !x.altKey) {
|
|
@@ -2835,13 +2859,13 @@ function mn({
|
|
|
2835
2859
|
(x.key === "Enter" || x.key === " ") && (x.preventDefault(), Mt(o, g) || a(o));
|
|
2836
2860
|
}, y = (x) => {
|
|
2837
2861
|
n(Se(pt(Yt(t, x), g))), r(pt(Ln(o, x), g));
|
|
2838
|
-
}, S = t.getFullYear(), O = (_ ?? He(C)).getFullYear(), A = Math.min(Math.max(O - 100, g.min?.getFullYear() ?? -1 / 0), S), q = Math.max(Math.min(O + 100, g.max?.getFullYear() ?? 1 / 0), S), $ = Array.from({ length: q - A + 1 }, (x, G) => A + G), M =
|
|
2862
|
+
}, S = t.getFullYear(), O = (_ ?? He(C)).getFullYear(), A = Math.min(Math.max(O - 100, g.min?.getFullYear() ?? -1 / 0), S), q = Math.max(Math.min(O + 100, g.max?.getFullYear() ?? 1 / 0), S), $ = Array.from({ length: q - A + 1 }, (x, G) => A + G), M = zl(t), K = _ ?? He(C), { from: X, to: k, isPreview: B } = Ol(l, d, c);
|
|
2839
2863
|
return /* @__PURE__ */ N(we, { children: [
|
|
2840
2864
|
/* @__PURE__ */ N("div", { className: I.head, children: [
|
|
2841
2865
|
h ? /* @__PURE__ */ i("span", { className: I.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ i(dn, { size: "sm", "aria-label": b.previousMonth, disabled: Cn(Yt(t, -1), g), onClick: () => y(-1), children: /* @__PURE__ */ i("svg", { viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ i("path", { d: "M6.4 1.8 3.2 5l3.2 3.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
2842
2866
|
h ? /* @__PURE__ */ i("span", { className: I.month, children: w.month(_t(t, C)) }) : /* @__PURE__ */ N("span", { className: I.jump, children: [
|
|
2843
2867
|
/* @__PURE__ */ i(
|
|
2844
|
-
|
|
2868
|
+
Ao,
|
|
2845
2869
|
{
|
|
2846
2870
|
size: "sm",
|
|
2847
2871
|
chars: 9,
|
|
@@ -2852,7 +2876,7 @@ function mn({
|
|
|
2852
2876
|
}
|
|
2853
2877
|
),
|
|
2854
2878
|
/* @__PURE__ */ i(
|
|
2855
|
-
|
|
2879
|
+
Ao,
|
|
2856
2880
|
{
|
|
2857
2881
|
size: "sm",
|
|
2858
2882
|
chars: 4,
|
|
@@ -2919,26 +2943,26 @@ function lo() {
|
|
|
2919
2943
|
return !1;
|
|
2920
2944
|
}
|
|
2921
2945
|
}
|
|
2922
|
-
const
|
|
2923
|
-
function
|
|
2924
|
-
!lo() ||
|
|
2946
|
+
const Fo = /* @__PURE__ */ new Set();
|
|
2947
|
+
function id(e, t) {
|
|
2948
|
+
!lo() || Fo.has(e) || (Fo.add(e), console.warn(`@umriss-ui/core: ${t}`));
|
|
2925
2949
|
}
|
|
2926
2950
|
function vn() {
|
|
2927
|
-
const e =
|
|
2951
|
+
const e = sr();
|
|
2928
2952
|
return e === null ? null : /* @__PURE__ */ i("span", { className: I.footNote, children: e });
|
|
2929
2953
|
}
|
|
2930
|
-
function
|
|
2931
|
-
const t = ke(), { timeZone: n } = Ue(), o = n !== void 0 && e.some((r) => r && !
|
|
2954
|
+
function kr(e) {
|
|
2955
|
+
const t = ke(), { timeZone: n } = Ue(), o = n !== void 0 && e.some((r) => r && !Rl(r, n));
|
|
2932
2956
|
J(() => {
|
|
2933
|
-
o &&
|
|
2957
|
+
o && id(
|
|
2934
2958
|
`midnight:${t}`,
|
|
2935
2959
|
`a date picker's value is a day: the instant of midnight in the formats' zone (${n}). This value is not on that midnight.`
|
|
2936
2960
|
);
|
|
2937
2961
|
}, [o, t, n]);
|
|
2938
2962
|
}
|
|
2939
|
-
const
|
|
2963
|
+
const ld = new Date(2026, 11, 28, 23, 58, 58);
|
|
2940
2964
|
function yn(e, t) {
|
|
2941
|
-
return Math.max(e(
|
|
2965
|
+
return Math.max(e(ld), t.length);
|
|
2942
2966
|
}
|
|
2943
2967
|
function wn({
|
|
2944
2968
|
wrapRef: e,
|
|
@@ -2958,7 +2982,7 @@ function wn({
|
|
|
2958
2982
|
chars: _,
|
|
2959
2983
|
natural: p
|
|
2960
2984
|
}) {
|
|
2961
|
-
const { disabled: g, invalid: b, clearable: w, size: v } = l, { style: C, id: D, onClick: y, ...S } = n ?? {}, O =
|
|
2985
|
+
const { disabled: g, invalid: b, clearable: w, size: v } = l, { style: C, id: D, onClick: y, ...S } = n ?? {}, O = sr(), A = ke(), q = [S["aria-describedby"] ?? a?.describedBy, O ? A : void 0].filter(Boolean).join(" ");
|
|
2962
2986
|
return /* @__PURE__ */ N(
|
|
2963
2987
|
"span",
|
|
2964
2988
|
{
|
|
@@ -3011,7 +3035,7 @@ function wn({
|
|
|
3011
3035
|
}
|
|
3012
3036
|
);
|
|
3013
3037
|
}
|
|
3014
|
-
function
|
|
3038
|
+
function c_({
|
|
3015
3039
|
ref: e,
|
|
3016
3040
|
value: t,
|
|
3017
3041
|
onChange: n,
|
|
@@ -3027,15 +3051,15 @@ function i_({
|
|
|
3027
3051
|
...m
|
|
3028
3052
|
}) {
|
|
3029
3053
|
const u = Pe(a), _ = Ee(), p = fe(), g = Ue(), b = Rt().formats, w = o ?? p.datePlaceholder, v = s ?? _?.invalid ?? !1, { timeZone: C } = g, D = bn(c, f);
|
|
3030
|
-
|
|
3031
|
-
const y = t && De(t, C), S = He(C), [O, A] = E(!1), [q, $] = E(() => Se(y ?? S)), [M, K] = E(() => y ?? S), [X, k] = E(""), [B, x] = E(!1), G = P(null), V = P(null), j = P(null), F = ke(), U =
|
|
3054
|
+
kr([t]);
|
|
3055
|
+
const y = t && De(t, C), S = He(C), [O, A] = E(!1), [q, $] = E(() => Se(y ?? S)), [M, K] = E(() => y ?? S), [X, k] = E(""), [B, x] = E(!1), G = P(null), V = P(null), j = P(null), F = ke(), U = So(X, g, S), re = () => {
|
|
3032
3056
|
const ee = pt(y ?? S, D);
|
|
3033
3057
|
$(Se(ee)), K(ee), k(""), x(!1), A(!0);
|
|
3034
3058
|
}, z = (ee = !0) => {
|
|
3035
3059
|
A(!1), ee && V.current?.focus();
|
|
3036
3060
|
}, H = (ee) => {
|
|
3037
3061
|
k(ee), x(!1);
|
|
3038
|
-
const he =
|
|
3062
|
+
const he = So(ee, g, S);
|
|
3039
3063
|
he && !Mt(he, D) && ($(Se(he)), K(he));
|
|
3040
3064
|
}, ae = (ee) => {
|
|
3041
3065
|
n(rn(ee, C)), z();
|
|
@@ -3054,7 +3078,7 @@ function i_({
|
|
|
3054
3078
|
state: { disabled: r, invalid: v, clearable: d, size: u },
|
|
3055
3079
|
hasValue: !!t,
|
|
3056
3080
|
display: t && g.date(t),
|
|
3057
|
-
icon: /* @__PURE__ */ i(
|
|
3081
|
+
icon: /* @__PURE__ */ i(ar, { className: I.icon }),
|
|
3058
3082
|
placeholder: w,
|
|
3059
3083
|
onClear: () => {
|
|
3060
3084
|
n(null), O && z(!1);
|
|
@@ -3102,7 +3126,7 @@ function i_({
|
|
|
3102
3126
|
size: "sm",
|
|
3103
3127
|
className: I.typed,
|
|
3104
3128
|
"aria-label": p.typeDate,
|
|
3105
|
-
placeholder:
|
|
3129
|
+
placeholder: Ll(g),
|
|
3106
3130
|
autoComplete: "off",
|
|
3107
3131
|
invalid: B,
|
|
3108
3132
|
value: X,
|
|
@@ -3131,7 +3155,7 @@ const Dn = (e, t, n, o, r) => {
|
|
|
3131
3155
|
const s = wt(e, r);
|
|
3132
3156
|
return s.hours === t && s.minutes === n && s.seconds === o;
|
|
3133
3157
|
};
|
|
3134
|
-
function
|
|
3158
|
+
function Nr(e, t, n, o, r, s, a) {
|
|
3135
3159
|
const l = sn({ year: e, month: t, day: n, hours: o, minutes: r, seconds: s }, a);
|
|
3136
3160
|
if (!Dn(l, o, r, s, a))
|
|
3137
3161
|
return { kind: "missing", date: l };
|
|
@@ -3142,14 +3166,14 @@ function kr(e, t, n, o, r, s, a) {
|
|
|
3142
3166
|
return Dn(f, o, r, s, a) ? { kind: "ambiguous", earlier: l, later: f } : { kind: "ok", date: l };
|
|
3143
3167
|
}
|
|
3144
3168
|
function En(e, t) {
|
|
3145
|
-
const n = wt(e, t), o =
|
|
3169
|
+
const n = wt(e, t), o = Nr(n.year, n.month, n.day, n.hours, n.minutes, n.seconds, t);
|
|
3146
3170
|
return o.kind === "ambiguous" && e.getTime() >= o.later.getTime() ? "later" : "earlier";
|
|
3147
3171
|
}
|
|
3148
|
-
function
|
|
3172
|
+
function cd(e, t) {
|
|
3149
3173
|
const n = t ? 1e3 : 6e4;
|
|
3150
3174
|
return new Date(Math.floor(e.getTime() / n) * n);
|
|
3151
3175
|
}
|
|
3152
|
-
const Tt = (e) => String(e).padStart(2, "0"), In = (e, t, n, o) => e ?
|
|
3176
|
+
const Tt = (e) => String(e).padStart(2, "0"), In = (e, t, n, o) => e ? Nr(
|
|
3153
3177
|
e.getFullYear(),
|
|
3154
3178
|
e.getMonth(),
|
|
3155
3179
|
e.getDate(),
|
|
@@ -3246,7 +3270,7 @@ function Qt({ value: e, onValue: t, max: n, label: o, next: r, own: s, disabled:
|
|
|
3246
3270
|
] })
|
|
3247
3271
|
] });
|
|
3248
3272
|
}
|
|
3249
|
-
function
|
|
3273
|
+
function d_({
|
|
3250
3274
|
ref: e,
|
|
3251
3275
|
value: t,
|
|
3252
3276
|
onChange: n,
|
|
@@ -3270,7 +3294,7 @@ function l_({
|
|
|
3270
3294
|
}, te = ue(() => K ? In(K, { hour: k, minute: x, second: V }, o, D) : null, [K, k, x, V, o, D]), R = ue(() => te ? te.kind === "ambiguous" ? F === "earlier" ? te.earlier : te.later : te.date : null, [te, F]), se = () => {
|
|
3271
3295
|
R && (n(R), Q());
|
|
3272
3296
|
}, me = () => {
|
|
3273
|
-
n(
|
|
3297
|
+
n(cd(/* @__PURE__ */ new Date(), o)), Q();
|
|
3274
3298
|
};
|
|
3275
3299
|
return /* @__PURE__ */ N(we, { children: [
|
|
3276
3300
|
/* @__PURE__ */ i(
|
|
@@ -3286,7 +3310,7 @@ function l_({
|
|
|
3286
3310
|
state: { disabled: s, invalid: C, clearable: c, size: _ },
|
|
3287
3311
|
hasValue: !!t,
|
|
3288
3312
|
display: t && b.dateTime(t, o),
|
|
3289
|
-
icon: /* @__PURE__ */ i(
|
|
3313
|
+
icon: /* @__PURE__ */ i(ir, { className: I.icon }),
|
|
3290
3314
|
placeholder: v,
|
|
3291
3315
|
onClear: () => {
|
|
3292
3316
|
n(null), S && Q(!1);
|
|
@@ -3385,7 +3409,7 @@ function l_({
|
|
|
3385
3409
|
)
|
|
3386
3410
|
] });
|
|
3387
3411
|
}
|
|
3388
|
-
const
|
|
3412
|
+
const dd = 1440 * 60 * 1e3, pn = (e, t) => Math.round((We(t).getTime() - We(e).getTime()) / dd) + 1, ud = [
|
|
3389
3413
|
"today",
|
|
3390
3414
|
"yesterday",
|
|
3391
3415
|
"last7Days",
|
|
@@ -3395,7 +3419,7 @@ const ld = 1440 * 60 * 1e3, pn = (e, t) => Math.round((We(t).getTime() - We(e).g
|
|
|
3395
3419
|
"thisQuarter",
|
|
3396
3420
|
"thisYear"
|
|
3397
3421
|
];
|
|
3398
|
-
function
|
|
3422
|
+
function fd(e, t) {
|
|
3399
3423
|
const n = We(t);
|
|
3400
3424
|
switch (e) {
|
|
3401
3425
|
case "today":
|
|
@@ -3418,18 +3442,18 @@ function dd(e, t) {
|
|
|
3418
3442
|
return { from: new Date(n.getFullYear(), 0, 1), to: new Date(n.getFullYear(), 11, 31) };
|
|
3419
3443
|
}
|
|
3420
3444
|
}
|
|
3421
|
-
const co = (e, t) =>
|
|
3445
|
+
const co = (e, t) => ud.map((n) => ({
|
|
3422
3446
|
label: e.presets[n],
|
|
3423
3447
|
range: () => {
|
|
3424
|
-
const { from: o, to: r } =
|
|
3448
|
+
const { from: o, to: r } = fd(n, He(t));
|
|
3425
3449
|
return { from: rn(o, t), to: rn(r, t) };
|
|
3426
3450
|
}
|
|
3427
|
-
})),
|
|
3428
|
-
function
|
|
3451
|
+
})), u_ = co(Bt);
|
|
3452
|
+
function hd(e, t) {
|
|
3429
3453
|
const n = Se(e).getTime(), o = Se(Yt(e, 1)).getTime(), r = Se(t).getTime();
|
|
3430
3454
|
return r === n || r === o ? null : r < n ? Se(t) : Yt(Se(t), -1);
|
|
3431
3455
|
}
|
|
3432
|
-
function
|
|
3456
|
+
function md(e) {
|
|
3433
3457
|
const { active: t, onActive: n, onPick: o, bandFrom: r, bandTo: s, previewTo: a, onHoverDay: l, bounds: d } = e;
|
|
3434
3458
|
return {
|
|
3435
3459
|
active: t,
|
|
@@ -3444,7 +3468,7 @@ function fd(e) {
|
|
|
3444
3468
|
withoutOtherMonth: !0
|
|
3445
3469
|
};
|
|
3446
3470
|
}
|
|
3447
|
-
function
|
|
3471
|
+
function $r({ presets: e, isActive: t, isDisabled: n, onChoose: o }) {
|
|
3448
3472
|
const r = fe();
|
|
3449
3473
|
return e.length === 0 ? null : /* @__PURE__ */ i("div", { className: I.presetColumn, role: "group", "aria-label": r.quickSelect, children: e.map((s) => /* @__PURE__ */ i(
|
|
3450
3474
|
"button",
|
|
@@ -3458,9 +3482,9 @@ function Nr({ presets: e, isActive: t, isDisabled: n, onChoose: o }) {
|
|
|
3458
3482
|
s.label
|
|
3459
3483
|
)) });
|
|
3460
3484
|
}
|
|
3461
|
-
function
|
|
3462
|
-
const o =
|
|
3463
|
-
const l =
|
|
3485
|
+
function xr({ view: e, onView: t, ...n }) {
|
|
3486
|
+
const o = md(n), r = Yt(e, 1), s = (a) => {
|
|
3487
|
+
const l = hd(e, a);
|
|
3464
3488
|
l && t(l);
|
|
3465
3489
|
};
|
|
3466
3490
|
return /* @__PURE__ */ N("div", { className: I.monthPair, children: [
|
|
@@ -3468,15 +3492,15 @@ function $r({ view: e, onView: t, ...n }) {
|
|
|
3468
3492
|
/* @__PURE__ */ i("div", { className: I.monthColumn, children: /* @__PURE__ */ i(mn, { view: r, onView: s, withoutPrevious: !0, ...o }) })
|
|
3469
3493
|
] });
|
|
3470
3494
|
}
|
|
3471
|
-
const
|
|
3472
|
-
function
|
|
3473
|
-
const [s, a] =
|
|
3495
|
+
const pd = (e, t) => e.getTime() <= t.getTime() ? [e, t] : [t, e], Cr = (e, t) => We(e).getTime() <= We(t).getTime() ? [e, t] : [t, e];
|
|
3496
|
+
function Dr(e, t, n, o, r) {
|
|
3497
|
+
const [s, a] = Cr(e, t);
|
|
3474
3498
|
return {
|
|
3475
3499
|
from: rn(s, r),
|
|
3476
|
-
to: n === "day" ? rn(a, r) :
|
|
3500
|
+
to: n === "day" ? rn(a, r) : Al(a, o, r)
|
|
3477
3501
|
};
|
|
3478
3502
|
}
|
|
3479
|
-
function
|
|
3503
|
+
function f_({
|
|
3480
3504
|
ref: e,
|
|
3481
3505
|
value: t,
|
|
3482
3506
|
onChange: n,
|
|
@@ -3493,14 +3517,14 @@ function d_({
|
|
|
3493
3517
|
...u
|
|
3494
3518
|
}) {
|
|
3495
3519
|
const _ = Pe(a), p = Ee(), g = fe(), b = Ue(), w = Rt().formats, v = o ?? g.dateRangePlaceholder, C = s ?? p?.invalid ?? !1, { timeZone: D } = b, y = bn(f, h);
|
|
3496
|
-
|
|
3520
|
+
kr([t?.from, t?.to]);
|
|
3497
3521
|
const S = t && { from: De(t.from, D), to: De(t.to, D) }, O = ue(() => c ?? co(g, b.timeZone), [c, g, b.timeZone]), [A, q] = E(!1), [$, M] = E(() => Se(S?.from ?? He(D))), [K, X] = E(() => S?.from ?? He(D)), [k, B] = E(null), [x, G] = E(null), V = P(null), j = P(null), F = P(null), U = ke(), re = () => {
|
|
3498
3522
|
const R = pt(S?.from ?? He(D), y);
|
|
3499
3523
|
M(Se(R)), X(R), B(null), G(null), q(!0);
|
|
3500
3524
|
}, z = (R = !0) => {
|
|
3501
3525
|
q(!1), B(null), G(null), R && V.current?.focus();
|
|
3502
3526
|
}, H = (R, se) => {
|
|
3503
|
-
n(
|
|
3527
|
+
n(Dr(R, se, "day", !1, D)), z();
|
|
3504
3528
|
}, ae = (R) => {
|
|
3505
3529
|
if (!k) {
|
|
3506
3530
|
B(R), X(R);
|
|
@@ -3542,7 +3566,7 @@ function d_({
|
|
|
3542
3566
|
/* @__PURE__ */ i("span", { className: I.rangeDash, children: "–" }),
|
|
3543
3567
|
b.date(t.to)
|
|
3544
3568
|
] }),
|
|
3545
|
-
icon: /* @__PURE__ */ i(
|
|
3569
|
+
icon: /* @__PURE__ */ i(ar, { range: !0, className: I.icon }),
|
|
3546
3570
|
placeholder: v,
|
|
3547
3571
|
onClear: () => {
|
|
3548
3572
|
n(null), A && z(!1);
|
|
@@ -3568,7 +3592,7 @@ function d_({
|
|
|
3568
3592
|
children: /* @__PURE__ */ N("div", { ref: F, children: [
|
|
3569
3593
|
/* @__PURE__ */ N("div", { className: I.rangeBody, children: [
|
|
3570
3594
|
/* @__PURE__ */ i(
|
|
3571
|
-
|
|
3595
|
+
$r,
|
|
3572
3596
|
{
|
|
3573
3597
|
presets: O,
|
|
3574
3598
|
isActive: te,
|
|
@@ -3580,7 +3604,7 @@ function d_({
|
|
|
3580
3604
|
}
|
|
3581
3605
|
),
|
|
3582
3606
|
/* @__PURE__ */ i(
|
|
3583
|
-
|
|
3607
|
+
xr,
|
|
3584
3608
|
{
|
|
3585
3609
|
view: $,
|
|
3586
3610
|
onView: M,
|
|
@@ -3611,14 +3635,14 @@ const Sn = { hour: "00", minute: "00", second: "00" }, Mn = (e) => ({
|
|
|
3611
3635
|
hour: "23",
|
|
3612
3636
|
minute: "59",
|
|
3613
3637
|
second: e ? "59" : "00"
|
|
3614
|
-
}),
|
|
3638
|
+
}), _d = (e, t, n, o) => {
|
|
3615
3639
|
const r = wt(e, o), s = wt(t, o);
|
|
3616
3640
|
return r.hours === 0 && r.minutes === 0 && r.seconds === 0 && s.hours === 23 && s.minutes === 59 && (n ? s.seconds === 59 : s.seconds === 0);
|
|
3617
|
-
},
|
|
3641
|
+
}, Lo = (e, t, n) => {
|
|
3618
3642
|
const o = wt(e, n);
|
|
3619
3643
|
return { hour: Tt(o.hours), minute: Tt(o.minutes), second: Tt(t ? o.seconds : 0) };
|
|
3620
|
-
},
|
|
3621
|
-
function
|
|
3644
|
+
}, Po = (e, t) => e ? e.kind === "ambiguous" ? t === "earlier" ? e.earlier : e.later : e.date : null;
|
|
3645
|
+
function h_({
|
|
3622
3646
|
ref: e,
|
|
3623
3647
|
value: t,
|
|
3624
3648
|
onChange: n,
|
|
@@ -3637,7 +3661,7 @@ function u_({
|
|
|
3637
3661
|
}) {
|
|
3638
3662
|
const p = Pe(l), g = Ee(), b = fe(), w = Ue(), v = Rt().formats, C = r ?? b.dateRangePlaceholder, D = a ?? g?.invalid ?? !1, { timeZone: y } = w, S = bn(h, m), O = ue(() => f ?? co(b, w.timeZone), [f, b, w.timeZone]), [A, q] = E(!1), [$, M] = E(() => Se(t ? De(t.from, y) : He(y))), [K, X] = E(() => t ? De(t.from, y) : He(y)), [k, B] = E(null), [x, G] = E(null), [V, j] = E(null), [F, U] = E(Sn), [re, z] = E(() => Mn(o)), [H, ae] = E(!0), [ee, he] = E("earlier"), [ve, Q] = E("earlier"), te = P(null), R = P(null), se = P(null), me = P(null), ge = P(null), Fe = P(null), je = P(null), Y = P(null), le = P(null), Te = P(null), gt = ke(), it = () => {
|
|
3639
3663
|
const Z = pt(t ? De(t.from, y) : He(y), S);
|
|
3640
|
-
M(Se(Z)), X(Z), B(t ? De(t.from, y) : null), G(t ? De(t.to, y) : null), U(t ?
|
|
3664
|
+
M(Se(Z)), X(Z), B(t ? De(t.from, y) : null), G(t ? De(t.to, y) : null), U(t ? Lo(t.from, o, y) : Sn), z(t ? Lo(t.to, o, y) : Mn(o)), ae(t ? _d(t.from, t.to, o, y) : !0), he(t ? En(t.from, y) : "earlier"), Q(t ? En(t.to, y) : "earlier"), j(null), q(!0);
|
|
3641
3665
|
}, Qe = (Z = !0) => {
|
|
3642
3666
|
q(!1), j(null), Z && te.current?.focus();
|
|
3643
3667
|
}, lt = (Z) => {
|
|
@@ -3645,7 +3669,7 @@ function u_({
|
|
|
3645
3669
|
B(Z), G(null), X(Z);
|
|
3646
3670
|
return;
|
|
3647
3671
|
}
|
|
3648
|
-
const [ie, xe] =
|
|
3672
|
+
const [ie, xe] = Cr(k, Z);
|
|
3649
3673
|
B(We(ie)), G(We(xe)), X(Z), he("earlier"), Q("earlier"), requestAnimationFrame(() => {
|
|
3650
3674
|
H ? Te.current?.focus() : me.current?.focus();
|
|
3651
3675
|
});
|
|
@@ -3660,9 +3684,9 @@ function u_({
|
|
|
3660
3684
|
const Lt = H ? Sn : F, Pt = ue(
|
|
3661
3685
|
() => H ? Mn(o) : re,
|
|
3662
3686
|
[H, o, re]
|
|
3663
|
-
), kt = ue(() => In(k, Lt, o, y), [k, Lt, o, y]), bt = ue(() => In(x, Pt, o, y), [x, Pt, o, y]), ct = ue(() =>
|
|
3687
|
+
), kt = ue(() => In(k, Lt, o, y), [k, Lt, o, y]), bt = ue(() => In(x, Pt, o, y), [x, Pt, o, y]), ct = ue(() => Po(kt, ee), [kt, ee]), W = ue(() => Po(bt, ve), [bt, ve]), pe = () => {
|
|
3664
3688
|
if (!ct || !W) return;
|
|
3665
|
-
const [Z, ie] =
|
|
3689
|
+
const [Z, ie] = pd(ct, W);
|
|
3666
3690
|
n({ from: Z, to: ie }), Qe();
|
|
3667
3691
|
}, _e = k, be = x, Le = k && !x ? V : null, vt = () => {
|
|
3668
3692
|
if (!ct || !W) return "";
|
|
@@ -3771,7 +3795,7 @@ function u_({
|
|
|
3771
3795
|
", ",
|
|
3772
3796
|
w.time(t.to, o)
|
|
3773
3797
|
] })),
|
|
3774
|
-
icon: /* @__PURE__ */ i(
|
|
3798
|
+
icon: /* @__PURE__ */ i(ir, { className: I.icon }),
|
|
3775
3799
|
placeholder: C,
|
|
3776
3800
|
onClear: () => {
|
|
3777
3801
|
n(null), A && Qe(!1);
|
|
@@ -3797,20 +3821,20 @@ function u_({
|
|
|
3797
3821
|
children: /* @__PURE__ */ N("div", { ref: se, children: [
|
|
3798
3822
|
/* @__PURE__ */ N("div", { className: I.rangeBody, children: [
|
|
3799
3823
|
/* @__PURE__ */ i(
|
|
3800
|
-
|
|
3824
|
+
$r,
|
|
3801
3825
|
{
|
|
3802
3826
|
presets: O,
|
|
3803
3827
|
isActive: oe,
|
|
3804
3828
|
isDisabled: (Z) => !Xt(Z, S, y),
|
|
3805
3829
|
onChoose: (Z) => {
|
|
3806
3830
|
const ie = Xt(Z, S, y);
|
|
3807
|
-
ie && (n(
|
|
3831
|
+
ie && (n(Dr(ie[0], ie[1], "instant", o, y)), Qe());
|
|
3808
3832
|
}
|
|
3809
3833
|
}
|
|
3810
3834
|
),
|
|
3811
3835
|
/* @__PURE__ */ N("div", { className: I.rangeRight, children: [
|
|
3812
3836
|
/* @__PURE__ */ i(
|
|
3813
|
-
|
|
3837
|
+
xr,
|
|
3814
3838
|
{
|
|
3815
3839
|
view: $,
|
|
3816
3840
|
onView: M,
|
|
@@ -3880,15 +3904,15 @@ function u_({
|
|
|
3880
3904
|
)
|
|
3881
3905
|
] });
|
|
3882
3906
|
}
|
|
3883
|
-
const
|
|
3884
|
-
divider:
|
|
3885
|
-
strong:
|
|
3886
|
-
horizontal:
|
|
3887
|
-
vertical:
|
|
3888
|
-
withLabel:
|
|
3889
|
-
label:
|
|
3907
|
+
const gd = "_divider_1q6fz_7", bd = "_strong_1q6fz_12", vd = "_horizontal_1q6fz_16", yd = "_vertical_1q6fz_24", wd = "_withLabel_1q6fz_35", kd = "_label_1q6fz_53 _text_18806_22", Kt = {
|
|
3908
|
+
divider: gd,
|
|
3909
|
+
strong: bd,
|
|
3910
|
+
horizontal: vd,
|
|
3911
|
+
vertical: yd,
|
|
3912
|
+
withLabel: wd,
|
|
3913
|
+
label: kd
|
|
3890
3914
|
};
|
|
3891
|
-
function
|
|
3915
|
+
function m_({ ref: e, orientation: t = "horizontal", strong: n = !1, label: o, className: r, ...s }) {
|
|
3892
3916
|
const a = L(
|
|
3893
3917
|
Kt.divider,
|
|
3894
3918
|
t === "vertical" ? Kt.vertical : Kt.horizontal,
|
|
@@ -3912,14 +3936,14 @@ function f_({ ref: e, orientation: t = "horizontal", strong: n = !1, label: o, c
|
|
|
3912
3936
|
}
|
|
3913
3937
|
);
|
|
3914
3938
|
}
|
|
3915
|
-
const
|
|
3916
|
-
empty:
|
|
3917
|
-
icon:
|
|
3918
|
-
title:
|
|
3919
|
-
description:
|
|
3920
|
-
action:
|
|
3939
|
+
const Nd = "_empty_1dx25_4 _text_18806_22", $d = "_icon_1dx25_14", xd = "_title_1dx25_26", Cd = "_description_1dx25_33", Dd = "_action_1dx25_41", en = {
|
|
3940
|
+
empty: Nd,
|
|
3941
|
+
icon: $d,
|
|
3942
|
+
title: xd,
|
|
3943
|
+
description: Cd,
|
|
3944
|
+
action: Dd
|
|
3921
3945
|
};
|
|
3922
|
-
function
|
|
3946
|
+
function p_({ ref: e, title: t, description: n, action: o, icon: r, className: s, ...a }) {
|
|
3923
3947
|
return /* @__PURE__ */ N("div", { ref: e, className: L(en.empty, s), ...a, children: [
|
|
3924
3948
|
r && /* @__PURE__ */ i("div", { className: en.icon, children: r }),
|
|
3925
3949
|
/* @__PURE__ */ i("p", { className: en.title, children: t }),
|
|
@@ -3927,19 +3951,19 @@ function h_({ ref: e, title: t, description: n, action: o, icon: r, className: s
|
|
|
3927
3951
|
o && /* @__PURE__ */ i("div", { className: en.action, children: o })
|
|
3928
3952
|
] });
|
|
3929
3953
|
}
|
|
3930
|
-
const
|
|
3931
|
-
stack:
|
|
3932
|
-
grid:
|
|
3933
|
-
},
|
|
3934
|
-
function
|
|
3954
|
+
const Sd = "_stack_9r3lk_4", Md = "_grid_9r3lk_9", Sr = {
|
|
3955
|
+
stack: Sd,
|
|
3956
|
+
grid: Md
|
|
3957
|
+
}, Mr = (e) => `var(--u-space-${e})`;
|
|
3958
|
+
function __({ ref: e, direction: t = "column", gap: n = 3, align: o, justify: r, wrap: s = !1, className: a, style: l, children: d, ...c }) {
|
|
3935
3959
|
return /* @__PURE__ */ i(
|
|
3936
3960
|
"div",
|
|
3937
3961
|
{
|
|
3938
3962
|
ref: e,
|
|
3939
|
-
className: L(
|
|
3963
|
+
className: L(Sr.stack, a),
|
|
3940
3964
|
style: {
|
|
3941
3965
|
flexDirection: t,
|
|
3942
|
-
gap:
|
|
3966
|
+
gap: Mr(n),
|
|
3943
3967
|
alignItems: o,
|
|
3944
3968
|
justifyContent: r,
|
|
3945
3969
|
flexWrap: s ? "wrap" : void 0,
|
|
@@ -3950,16 +3974,16 @@ function m_({ ref: e, direction: t = "column", gap: n = 3, align: o, justify: r,
|
|
|
3950
3974
|
}
|
|
3951
3975
|
);
|
|
3952
3976
|
}
|
|
3953
|
-
const
|
|
3954
|
-
function
|
|
3977
|
+
const Eo = "minmax(0, 1fr)";
|
|
3978
|
+
function g_({ ref: e, columns: t = 2, minItemWidth: n, gap: o = 4, className: r, style: s, children: a, ...l }) {
|
|
3955
3979
|
return /* @__PURE__ */ i(
|
|
3956
3980
|
"div",
|
|
3957
3981
|
{
|
|
3958
3982
|
ref: e,
|
|
3959
|
-
className: L(
|
|
3983
|
+
className: L(Sr.grid, r),
|
|
3960
3984
|
style: {
|
|
3961
|
-
gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : typeof t == "number" ? `repeat(${t}, ${
|
|
3962
|
-
gap:
|
|
3985
|
+
gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : typeof t == "number" ? `repeat(${t}, ${Eo})` : t.map((d) => d === "fill" ? Eo : `${d}px`).join(" "),
|
|
3986
|
+
gap: Mr(o),
|
|
3963
3987
|
...s
|
|
3964
3988
|
},
|
|
3965
3989
|
...l,
|
|
@@ -3967,13 +3991,13 @@ function p_({ ref: e, columns: t = 2, minItemWidth: n, gap: o = 4, className: r,
|
|
|
3967
3991
|
}
|
|
3968
3992
|
);
|
|
3969
3993
|
}
|
|
3970
|
-
function
|
|
3994
|
+
function Td(e, t = tr) {
|
|
3971
3995
|
const n = [...e].filter((r) => !/\s/.test(r) && (t.group === "" || r !== t.group)).map((r) => r === t.decimal ? "." : r).join("");
|
|
3972
3996
|
if (n === "" || n === "-") return null;
|
|
3973
3997
|
const o = Number(n);
|
|
3974
3998
|
return Number.isFinite(o) ? o : null;
|
|
3975
3999
|
}
|
|
3976
|
-
function
|
|
4000
|
+
function Io(e, t = {}) {
|
|
3977
4001
|
const { min: n, max: o, decimals: r } = t;
|
|
3978
4002
|
let s = e;
|
|
3979
4003
|
if (n !== void 0 && (s = Math.max(n, s)), o !== void 0 && (s = Math.min(o, s)), r !== void 0) {
|
|
@@ -3982,24 +4006,24 @@ function Eo(e, t = {}) {
|
|
|
3982
4006
|
}
|
|
3983
4007
|
return s;
|
|
3984
4008
|
}
|
|
3985
|
-
const
|
|
3986
|
-
function
|
|
4009
|
+
const Tr = (e) => e === void 0 || e < 0, Ar = (e) => e !== 0;
|
|
4010
|
+
function Ad(e, t = {}, n = tr) {
|
|
3987
4011
|
const o = /* @__PURE__ */ new Set([..."0123456789", n.group]);
|
|
3988
|
-
return
|
|
4012
|
+
return Ar(t.decimals) && o.add(n.decimal), Tr(t.min) && o.add("-"), o.delete(""), [...e].filter((r) => o.has(r)).join("");
|
|
3989
4013
|
}
|
|
3990
|
-
function
|
|
4014
|
+
function Rd(e, t, n, o = 1) {
|
|
3991
4015
|
return e + t * n * o;
|
|
3992
4016
|
}
|
|
3993
|
-
const
|
|
3994
|
-
wrapper:
|
|
3995
|
-
sm:
|
|
3996
|
-
invalid:
|
|
3997
|
-
disabled:
|
|
3998
|
-
input:
|
|
3999
|
-
adornment:
|
|
4000
|
-
stepper:
|
|
4001
|
-
},
|
|
4002
|
-
function
|
|
4017
|
+
const Fd = "_wrapper_a68z6_8 _text_18806_22 _extent_18806_75 _fieldRoot_18806_145", Ld = "_sm_a68z6_34", Pd = "_invalid_a68z6_41", Ed = "_disabled_a68z6_25", Id = "_input_a68z6_55 _field_18806_90", zd = "_adornment_a68z6_83", Od = "_stepper_a68z6_93", Ct = {
|
|
4018
|
+
wrapper: Fd,
|
|
4019
|
+
sm: Ld,
|
|
4020
|
+
invalid: Pd,
|
|
4021
|
+
disabled: Ed,
|
|
4022
|
+
input: Id,
|
|
4023
|
+
adornment: zd,
|
|
4024
|
+
stepper: Od
|
|
4025
|
+
}, zo = (e) => typeof e == "string" || typeof e == "number" ? String(e).length + 1 : 0;
|
|
4026
|
+
function b_({
|
|
4003
4027
|
ref: e,
|
|
4004
4028
|
value: t,
|
|
4005
4029
|
onChange: n,
|
|
@@ -4022,10 +4046,10 @@ function __({
|
|
|
4022
4046
|
onKeyDown: v,
|
|
4023
4047
|
...C
|
|
4024
4048
|
}) {
|
|
4025
|
-
const D = Pe(f), y = Ee(), S = fe(), O = Ue(), A = ue(() =>
|
|
4049
|
+
const D = Pe(f), y = Ee(), S = fe(), O = Ue(), A = ue(() => Xr(O), [O]), q = (Q) => {
|
|
4026
4050
|
const te = O.number(Q, a);
|
|
4027
4051
|
return l || A.group === "" ? te : te.replaceAll(A.group, "");
|
|
4028
|
-
}, $ = (Q) =>
|
|
4052
|
+
}, $ = (Q) => Td(Q, A), M = m ?? y?.invalid ?? !1, K = ue(() => ({ min: o, max: r, decimals: a }), [o, r, a]), [X, k] = E(() => t === null ? "" : q(t)), [B, x] = E(!1);
|
|
4029
4053
|
J(() => {
|
|
4030
4054
|
B || k(t === null ? "" : q(t));
|
|
4031
4055
|
}, [t, B, a, l, O]);
|
|
@@ -4034,7 +4058,7 @@ function __({
|
|
|
4034
4058
|
k(""), n(null);
|
|
4035
4059
|
return;
|
|
4036
4060
|
}
|
|
4037
|
-
const te =
|
|
4061
|
+
const te = Io(Q, K);
|
|
4038
4062
|
k(q(te)), n(te);
|
|
4039
4063
|
}, V = P(X);
|
|
4040
4064
|
V.current = X;
|
|
@@ -4042,7 +4066,7 @@ function __({
|
|
|
4042
4066
|
j.current = t;
|
|
4043
4067
|
const F = (Q, te = 1) => {
|
|
4044
4068
|
const R = $(V.current) ?? j.current ?? 0;
|
|
4045
|
-
G(
|
|
4069
|
+
G(Rd(R, Q, s, te));
|
|
4046
4070
|
}, U = (Q) => {
|
|
4047
4071
|
v?.(Q), !Q.defaultPrevented && (Q.key !== "ArrowUp" && Q.key !== "ArrowDown" || (Q.preventDefault(), F(Q.key === "ArrowUp" ? 1 : -1, Q.shiftKey ? 10 : 1)));
|
|
4048
4072
|
}, re = P(null), z = () => {
|
|
@@ -4084,7 +4108,7 @@ function __({
|
|
|
4084
4108
|
u && Ct.disabled,
|
|
4085
4109
|
_
|
|
4086
4110
|
),
|
|
4087
|
-
style: { ...Wt(h, { extra:
|
|
4111
|
+
style: { ...Wt(h, { extra: zo(d) + zo(c) }), ...p },
|
|
4088
4112
|
children: [
|
|
4089
4113
|
d && /* @__PURE__ */ i("span", { className: Ct.adornment, children: d }),
|
|
4090
4114
|
/* @__PURE__ */ i(
|
|
@@ -4092,7 +4116,7 @@ function __({
|
|
|
4092
4116
|
{
|
|
4093
4117
|
ref: e,
|
|
4094
4118
|
type: "text",
|
|
4095
|
-
inputMode:
|
|
4119
|
+
inputMode: Tr(o) ? "text" : Ar(a) ? "decimal" : "numeric",
|
|
4096
4120
|
id: g ?? y?.id,
|
|
4097
4121
|
disabled: u,
|
|
4098
4122
|
"aria-describedby": C["aria-describedby"] ?? y?.describedBy,
|
|
@@ -4101,10 +4125,10 @@ function __({
|
|
|
4101
4125
|
className: Ct.input,
|
|
4102
4126
|
value: X,
|
|
4103
4127
|
onChange: (Q) => {
|
|
4104
|
-
const te =
|
|
4128
|
+
const te = Ad(Q.target.value, K, A);
|
|
4105
4129
|
k(te);
|
|
4106
4130
|
const R = $(te);
|
|
4107
|
-
n(R === null ? null :
|
|
4131
|
+
n(R === null ? null : Io(R, K));
|
|
4108
4132
|
},
|
|
4109
4133
|
...C,
|
|
4110
4134
|
onKeyDown: U,
|
|
@@ -4118,40 +4142,40 @@ function __({
|
|
|
4118
4142
|
),
|
|
4119
4143
|
c && /* @__PURE__ */ i("span", { className: Ct.adornment, children: c }),
|
|
4120
4144
|
/* @__PURE__ */ N("span", { className: Ct.stepper, children: [
|
|
4121
|
-
ve(-1, he, S.decreaseValue, /* @__PURE__ */ i(
|
|
4122
|
-
ve(1, ee, S.increaseValue, /* @__PURE__ */ i(
|
|
4145
|
+
ve(-1, he, S.decreaseValue, /* @__PURE__ */ i(_s, {})),
|
|
4146
|
+
ve(1, ee, S.increaseValue, /* @__PURE__ */ i(ps, {}))
|
|
4123
4147
|
] })
|
|
4124
4148
|
]
|
|
4125
4149
|
}
|
|
4126
4150
|
);
|
|
4127
4151
|
}
|
|
4128
|
-
const
|
|
4129
|
-
dialog:
|
|
4130
|
-
spacerTop:
|
|
4131
|
-
spacerBottom:
|
|
4132
|
-
sheet:
|
|
4133
|
-
sm:
|
|
4134
|
-
md:
|
|
4135
|
-
lg:
|
|
4136
|
-
header:
|
|
4137
|
-
headerText:
|
|
4138
|
-
title:
|
|
4139
|
-
description:
|
|
4140
|
-
close:
|
|
4141
|
-
footer:
|
|
4142
|
-
body:
|
|
4143
|
-
drawer:
|
|
4144
|
-
drawerSheet:
|
|
4145
|
-
modalIn:
|
|
4146
|
-
modalOut:
|
|
4147
|
-
backdropIn:
|
|
4148
|
-
backdropOut:
|
|
4149
|
-
drawerInRight:
|
|
4150
|
-
drawerInLeft:
|
|
4151
|
-
},
|
|
4152
|
-
function
|
|
4152
|
+
const Bd = "_dialog_ogbce_12 _text_18806_22", qd = "_spacerTop_ogbce_35", Hd = "_spacerBottom_ogbce_40", Wd = "_sheet_ogbce_2", Kd = "_sm_ogbce_58", Ud = "_md_ogbce_59", jd = "_lg_ogbce_60", Gd = "_header_ogbce_110", Vd = "_headerText_ogbce_118", Yd = "_title_ogbce_125", Xd = "_description_ogbce_133", Qd = "_close_ogbce_143", Zd = "_footer_ogbce_149", Jd = "_body_ogbce_153 _scroll_18806_96", eu = "_drawer_ogbce_182", tu = "_drawerSheet_ogbce_198", nu = "_modalIn_ogbce_1", ou = "_modalOut_ogbce_1", ru = "_backdropIn_ogbce_1", su = "_backdropOut_ogbce_1", au = "_drawerInRight_ogbce_1", iu = "_drawerInLeft_ogbce_1", qe = {
|
|
4153
|
+
dialog: Bd,
|
|
4154
|
+
spacerTop: qd,
|
|
4155
|
+
spacerBottom: Hd,
|
|
4156
|
+
sheet: Wd,
|
|
4157
|
+
sm: Kd,
|
|
4158
|
+
md: Ud,
|
|
4159
|
+
lg: jd,
|
|
4160
|
+
header: Gd,
|
|
4161
|
+
headerText: Vd,
|
|
4162
|
+
title: Yd,
|
|
4163
|
+
description: Xd,
|
|
4164
|
+
close: Qd,
|
|
4165
|
+
footer: Zd,
|
|
4166
|
+
body: Jd,
|
|
4167
|
+
drawer: eu,
|
|
4168
|
+
drawerSheet: tu,
|
|
4169
|
+
modalIn: nu,
|
|
4170
|
+
modalOut: ou,
|
|
4171
|
+
backdropIn: ru,
|
|
4172
|
+
backdropOut: su,
|
|
4173
|
+
drawerInRight: au,
|
|
4174
|
+
drawerInLeft: iu
|
|
4175
|
+
}, Rr = /* @__PURE__ */ nt(null);
|
|
4176
|
+
function lu({ ref: e, size: t = "md", closeOnBackdrop: n = !0, ...o }) {
|
|
4153
4177
|
return /* @__PURE__ */ i(
|
|
4154
|
-
|
|
4178
|
+
Fr,
|
|
4155
4179
|
{
|
|
4156
4180
|
ref: e,
|
|
4157
4181
|
sheetClassName: L(qe.sheet, qe[t]),
|
|
@@ -4161,9 +4185,9 @@ function au({ ref: e, size: t = "md", closeOnBackdrop: n = !0, ...o }) {
|
|
|
4161
4185
|
}
|
|
4162
4186
|
);
|
|
4163
4187
|
}
|
|
4164
|
-
function
|
|
4188
|
+
function v_({ ref: e, side: t = "right", className: n, ...o }) {
|
|
4165
4189
|
return /* @__PURE__ */ i(
|
|
4166
|
-
|
|
4190
|
+
Fr,
|
|
4167
4191
|
{
|
|
4168
4192
|
ref: e,
|
|
4169
4193
|
className: L(qe.drawer, n),
|
|
@@ -4173,7 +4197,7 @@ function g_({ ref: e, side: t = "right", className: n, ...o }) {
|
|
|
4173
4197
|
}
|
|
4174
4198
|
);
|
|
4175
4199
|
}
|
|
4176
|
-
function
|
|
4200
|
+
function Fr({
|
|
4177
4201
|
ref: e,
|
|
4178
4202
|
open: t,
|
|
4179
4203
|
onClose: n,
|
|
@@ -4187,7 +4211,7 @@ function Rr({
|
|
|
4187
4211
|
onMouseDown: f,
|
|
4188
4212
|
...h
|
|
4189
4213
|
}) {
|
|
4190
|
-
const m = P(null), u = P(null), _ = ke(), { dialogRef: p, closing: g, onDialogClose: b, onDialogCancel: w } =
|
|
4214
|
+
const m = P(null), u = P(null), _ = ke(), { dialogRef: p, closing: g, onDialogClose: b, onDialogCancel: w } = gr(t, "--u-duration-exit", n), v = (C) => {
|
|
4191
4215
|
if (f?.(C), C.defaultPrevented) return;
|
|
4192
4216
|
const D = C.target;
|
|
4193
4217
|
o && (D === C.currentTarget || D === m.current || D === u.current) && n();
|
|
@@ -4208,14 +4232,14 @@ function Rr({
|
|
|
4208
4232
|
onMouseDown: v,
|
|
4209
4233
|
children: [
|
|
4210
4234
|
s && /* @__PURE__ */ i("div", { ref: m, className: qe.spacerTop, "aria-hidden": "true" }),
|
|
4211
|
-
/* @__PURE__ */ i("div", { className: r, children: /* @__PURE__ */ i(Kn, { children: /* @__PURE__ */ i(
|
|
4235
|
+
/* @__PURE__ */ i("div", { className: r, children: /* @__PURE__ */ i(Kn, { children: /* @__PURE__ */ i(Rr, { value: { onClose: n, titleId: _ }, children: d }) }) }),
|
|
4212
4236
|
s && /* @__PURE__ */ i("div", { ref: u, className: qe.spacerBottom, "aria-hidden": "true" })
|
|
4213
4237
|
]
|
|
4214
4238
|
}
|
|
4215
4239
|
);
|
|
4216
4240
|
}
|
|
4217
|
-
function
|
|
4218
|
-
const a = Ke(
|
|
4241
|
+
function cu({ ref: e, title: t, description: n, hideClose: o = !1, className: r, ...s }) {
|
|
4242
|
+
const a = Ke(Rr), l = fe();
|
|
4219
4243
|
return /* @__PURE__ */ N("div", { ref: e, className: L(qe.header, r), ...s, children: [
|
|
4220
4244
|
/* @__PURE__ */ N("div", { className: qe.headerText, children: [
|
|
4221
4245
|
/* @__PURE__ */ i("h2", { id: a?.titleId, className: qe.title, children: t }),
|
|
@@ -4224,7 +4248,7 @@ function iu({ ref: e, title: t, description: n, hideClose: o = !1, className: r,
|
|
|
4224
4248
|
!o && /* @__PURE__ */ i(dn, { size: "sm", "aria-label": l.close, className: qe.close, onClick: () => a?.onClose(), children: /* @__PURE__ */ i(Xe, {}) })
|
|
4225
4249
|
] });
|
|
4226
4250
|
}
|
|
4227
|
-
function
|
|
4251
|
+
function y_({
|
|
4228
4252
|
ref: e,
|
|
4229
4253
|
className: t,
|
|
4230
4254
|
children: n,
|
|
@@ -4232,7 +4256,7 @@ function b_({
|
|
|
4232
4256
|
}) {
|
|
4233
4257
|
return /* @__PURE__ */ i("div", { ref: e, className: L(qe.body, t), ...o, children: n });
|
|
4234
4258
|
}
|
|
4235
|
-
function
|
|
4259
|
+
function du({
|
|
4236
4260
|
ref: e,
|
|
4237
4261
|
className: t,
|
|
4238
4262
|
children: n,
|
|
@@ -4240,7 +4264,7 @@ function lu({
|
|
|
4240
4264
|
}) {
|
|
4241
4265
|
return /* @__PURE__ */ i("div", { ref: e, className: L(qe.footer, t), ...o, children: n });
|
|
4242
4266
|
}
|
|
4243
|
-
function
|
|
4267
|
+
function w_({
|
|
4244
4268
|
ref: e,
|
|
4245
4269
|
open: t,
|
|
4246
4270
|
onClose: n,
|
|
@@ -4254,44 +4278,44 @@ function v_({
|
|
|
4254
4278
|
...f
|
|
4255
4279
|
}) {
|
|
4256
4280
|
const h = fe();
|
|
4257
|
-
return /* @__PURE__ */ N(
|
|
4258
|
-
/* @__PURE__ */ i(
|
|
4259
|
-
/* @__PURE__ */ N(
|
|
4281
|
+
return /* @__PURE__ */ N(lu, { ref: e, ...f, open: t, onClose: n, size: "sm", closeOnBackdrop: !c, children: [
|
|
4282
|
+
/* @__PURE__ */ i(cu, { title: r, description: s, hideClose: !0 }),
|
|
4283
|
+
/* @__PURE__ */ N(du, { children: [
|
|
4260
4284
|
/* @__PURE__ */ i(Ne, { onClick: n, disabled: c, children: l ?? h.cancel }),
|
|
4261
4285
|
/* @__PURE__ */ i(Ne, { variant: d, loading: c, onClick: o, children: a ?? h.confirm })
|
|
4262
4286
|
] })
|
|
4263
4287
|
] });
|
|
4264
4288
|
}
|
|
4265
|
-
const
|
|
4266
|
-
field:
|
|
4267
|
-
fieldClearable:
|
|
4268
|
-
sm:
|
|
4269
|
-
placeholder:
|
|
4270
|
-
main:
|
|
4271
|
-
invalid:
|
|
4272
|
-
fieldDisabled:
|
|
4273
|
-
summary:
|
|
4274
|
-
measure:
|
|
4275
|
-
chipLabel:
|
|
4276
|
-
chip:
|
|
4277
|
-
chipX:
|
|
4278
|
-
counter:
|
|
4279
|
-
mainEmpty:
|
|
4280
|
-
chevron:
|
|
4281
|
-
clear:
|
|
4282
|
-
panel:
|
|
4283
|
-
scopes:
|
|
4284
|
-
scope:
|
|
4285
|
-
scopeActive:
|
|
4286
|
-
qol:
|
|
4287
|
-
qolButtons:
|
|
4288
|
-
count:
|
|
4289
|
-
list:
|
|
4290
|
-
option:
|
|
4291
|
-
row:
|
|
4292
|
-
empty:
|
|
4289
|
+
const uu = "_field_z8o7n_15 _text_18806_22 _extent_18806_75", fu = "_fieldClearable_z8o7n_36", hu = "_sm_z8o7n_42", mu = "_placeholder_z8o7n_48", pu = "_main_z8o7n_49", _u = "_invalid_z8o7n_62", gu = "_fieldDisabled_z8o7n_53", bu = "_summary_z8o7n_86", vu = "_measure_z8o7n_99", yu = "_chipLabel_z8o7n_110", wu = "_chip_z8o7n_110 _ring_18806_125", ku = "_chipX_z8o7n_163", Nu = "_counter_z8o7n_183 _ring_18806_125", $u = "_mainEmpty_z8o7n_238", xu = "_chevron_z8o7n_244", Cu = "_clear_z8o7n_253", Du = "_panel_z8o7n_296", Su = "_scopes_z8o7n_306", Mu = "_scope_z8o7n_306 _ring_18806_125", Tu = "_scopeActive_z8o7n_339", Au = "_qol_z8o7n_346", Ru = "_qolButtons_z8o7n_358", Fu = "_count_z8o7n_183", Lu = "_list_z8o7n_373 _scroll_18806_96", Pu = "_option_z8o7n_385", Eu = "_row_z8o7n_396", Iu = "_empty_z8o7n_410", ce = {
|
|
4290
|
+
field: uu,
|
|
4291
|
+
fieldClearable: fu,
|
|
4292
|
+
sm: hu,
|
|
4293
|
+
placeholder: mu,
|
|
4294
|
+
main: pu,
|
|
4295
|
+
invalid: _u,
|
|
4296
|
+
fieldDisabled: gu,
|
|
4297
|
+
summary: bu,
|
|
4298
|
+
measure: vu,
|
|
4299
|
+
chipLabel: yu,
|
|
4300
|
+
chip: wu,
|
|
4301
|
+
chipX: ku,
|
|
4302
|
+
counter: Nu,
|
|
4303
|
+
mainEmpty: $u,
|
|
4304
|
+
chevron: xu,
|
|
4305
|
+
clear: Cu,
|
|
4306
|
+
panel: Du,
|
|
4307
|
+
scopes: Su,
|
|
4308
|
+
scope: Mu,
|
|
4309
|
+
scopeActive: Tu,
|
|
4310
|
+
qol: Au,
|
|
4311
|
+
qolButtons: Ru,
|
|
4312
|
+
count: Fu,
|
|
4313
|
+
list: Lu,
|
|
4314
|
+
option: Pu,
|
|
4315
|
+
row: Eu,
|
|
4316
|
+
empty: Iu
|
|
4293
4317
|
};
|
|
4294
|
-
function
|
|
4318
|
+
function k_({
|
|
4295
4319
|
ref: e,
|
|
4296
4320
|
options: t,
|
|
4297
4321
|
value: n,
|
|
@@ -4337,7 +4361,7 @@ function y_({
|
|
|
4337
4361
|
);
|
|
4338
4362
|
}, ge = (T) => {
|
|
4339
4363
|
o(n.filter((oe) => oe !== T)), he(T);
|
|
4340
|
-
}, Fe = ue(() =>
|
|
4364
|
+
}, Fe = ue(() => No(se), [se]), je = () => o($i(n, Fe)), Y = () => o($o(n, Fe)), le = () => o(xi(n, Fe)), Te = () => Array.from(V.current?.querySelectorAll("input:not(:disabled)") ?? []), gt = (T) => {
|
|
4341
4365
|
if (!T.nativeEvent.isComposing) {
|
|
4342
4366
|
if (T.key === "ArrowDown") {
|
|
4343
4367
|
T.preventDefault(), Qe ? z(it[0] ?? null) : Te()[0]?.focus();
|
|
@@ -4408,7 +4432,7 @@ function y_({
|
|
|
4408
4432
|
const oe = new ResizeObserver(() => _e());
|
|
4409
4433
|
return oe.observe(T), () => oe.disconnect();
|
|
4410
4434
|
}, [_e]);
|
|
4411
|
-
const be = n.length - bt, Le =
|
|
4435
|
+
const be = n.length - bt, Le = $o(n, No(t)), vt = /* @__PURE__ */ i(Xe, { size: 8 });
|
|
4412
4436
|
return /* @__PURE__ */ N(we, { children: [
|
|
4413
4437
|
/* @__PURE__ */ N(
|
|
4414
4438
|
"div",
|
|
@@ -4582,7 +4606,7 @@ function y_({
|
|
|
4582
4606
|
/* @__PURE__ */ i("span", { className: ce.count, children: v.multiSelectSummary(n.length, t.length) })
|
|
4583
4607
|
] }),
|
|
4584
4608
|
se.length === 0 ? /* @__PURE__ */ i("div", { ref: V, className: ce.list, role: "group", "aria-label": v.options, onKeyDown: lt, children: /* @__PURE__ */ i("div", { className: ce.empty, children: M === "selected" && R.length === 0 ? v.nothingSelected : y }) }) : Qe ? /* @__PURE__ */ i(
|
|
4585
|
-
|
|
4609
|
+
zu,
|
|
4586
4610
|
{
|
|
4587
4611
|
listRef: V,
|
|
4588
4612
|
count: se.length,
|
|
@@ -4619,7 +4643,7 @@ function y_({
|
|
|
4619
4643
|
)
|
|
4620
4644
|
] });
|
|
4621
4645
|
}
|
|
4622
|
-
function
|
|
4646
|
+
function zu({ listRef: e, count: t, wanted: n, onWanted: o, onKeyDown: r, row: s }) {
|
|
4623
4647
|
const { scrollRef: a, from: l, to: d, fillerBefore: c, fillerAfter: f, showRow: h, onScroll: m } = oo(t, { rowHeight: 36 }), u = fe(), [_, p] = E(null), g = n ?? _;
|
|
4624
4648
|
J(() => {
|
|
4625
4649
|
n !== null && (h(n), e.current?.querySelector(`[data-index="${n}"] input`)?.focus(), o());
|
|
@@ -4655,19 +4679,19 @@ function Eu({ listRef: e, count: t, wanted: n, onWanted: o, onKeyDown: r, row: s
|
|
|
4655
4679
|
}
|
|
4656
4680
|
);
|
|
4657
4681
|
}
|
|
4658
|
-
const
|
|
4659
|
-
group:
|
|
4660
|
-
horizontal:
|
|
4661
|
-
sm:
|
|
4662
|
-
option:
|
|
4663
|
-
disabled:
|
|
4664
|
-
input:
|
|
4665
|
-
dot:
|
|
4666
|
-
texts:
|
|
4667
|
-
label:
|
|
4668
|
-
description:
|
|
4682
|
+
const Ou = "_group_13hsq_8 _text_18806_22", Bu = "_horizontal_13hsq_19", qu = "_sm_13hsq_26", Hu = "_option_13hsq_30", Wu = "_disabled_13hsq_40", Ku = "_input_13hsq_47", Uu = "_dot_13hsq_56", ju = "_texts_13hsq_114", Gu = "_label_13hsq_121", Vu = "_description_13hsq_128", ut = {
|
|
4683
|
+
group: Ou,
|
|
4684
|
+
horizontal: Bu,
|
|
4685
|
+
sm: qu,
|
|
4686
|
+
option: Hu,
|
|
4687
|
+
disabled: Wu,
|
|
4688
|
+
input: Ku,
|
|
4689
|
+
dot: Uu,
|
|
4690
|
+
texts: ju,
|
|
4691
|
+
label: Gu,
|
|
4692
|
+
description: Vu
|
|
4669
4693
|
};
|
|
4670
|
-
function
|
|
4694
|
+
function Lr({
|
|
4671
4695
|
options: e,
|
|
4672
4696
|
value: t,
|
|
4673
4697
|
defaultValue: n,
|
|
@@ -4725,7 +4749,7 @@ function Fr({
|
|
|
4725
4749
|
})
|
|
4726
4750
|
};
|
|
4727
4751
|
}
|
|
4728
|
-
function
|
|
4752
|
+
function N_({
|
|
4729
4753
|
ref: e,
|
|
4730
4754
|
options: t,
|
|
4731
4755
|
value: n,
|
|
@@ -4739,7 +4763,7 @@ function w_({
|
|
|
4739
4763
|
onKeyDown: f,
|
|
4740
4764
|
...h
|
|
4741
4765
|
}) {
|
|
4742
|
-
const m = Pe(a), u =
|
|
4766
|
+
const m = Pe(a), u = Lr({
|
|
4743
4767
|
options: t,
|
|
4744
4768
|
value: n,
|
|
4745
4769
|
defaultValue: o,
|
|
@@ -4786,36 +4810,36 @@ function w_({
|
|
|
4786
4810
|
}
|
|
4787
4811
|
);
|
|
4788
4812
|
}
|
|
4789
|
-
const
|
|
4790
|
-
skeleton:
|
|
4791
|
-
circle:
|
|
4813
|
+
const Yu = "_skeleton_6mkat_4", Xu = "_circle_6mkat_19", Oo = {
|
|
4814
|
+
skeleton: Yu,
|
|
4815
|
+
circle: Xu
|
|
4792
4816
|
};
|
|
4793
|
-
function
|
|
4817
|
+
function $_({ ref: e, width: t, height: n, circle: o = !1, className: r, style: s, ...a }) {
|
|
4794
4818
|
return /* @__PURE__ */ i(
|
|
4795
4819
|
"span",
|
|
4796
4820
|
{
|
|
4797
4821
|
ref: e,
|
|
4798
4822
|
"aria-hidden": "true",
|
|
4799
|
-
className: L(
|
|
4823
|
+
className: L(Oo.skeleton, o && Oo.circle, r),
|
|
4800
4824
|
style: { width: t, height: n, ...s },
|
|
4801
4825
|
...a
|
|
4802
4826
|
}
|
|
4803
4827
|
);
|
|
4804
4828
|
}
|
|
4805
|
-
const
|
|
4806
|
-
group:
|
|
4807
|
-
tag:
|
|
4808
|
-
removable:
|
|
4809
|
-
disabled:
|
|
4810
|
-
text:
|
|
4811
|
-
neutral:
|
|
4812
|
-
accent:
|
|
4813
|
-
success:
|
|
4814
|
-
warning:
|
|
4815
|
-
danger:
|
|
4816
|
-
remove:
|
|
4817
|
-
},
|
|
4818
|
-
function
|
|
4829
|
+
const Qu = "_group_1fno2_7", Zu = "_tag_1fno2_16 _text_18806_22", Ju = "_removable_1fno2_32", ef = "_disabled_1fno2_42", tf = "_text_1fno2_50", nf = "_neutral_1fno2_58", of = "_accent_1fno2_63", rf = "_success_1fno2_68", sf = "_warning_1fno2_73", af = "_danger_1fno2_78", lf = "_remove_1fno2_85", Ot = {
|
|
4830
|
+
group: Qu,
|
|
4831
|
+
tag: Zu,
|
|
4832
|
+
removable: Ju,
|
|
4833
|
+
disabled: ef,
|
|
4834
|
+
text: tf,
|
|
4835
|
+
neutral: nf,
|
|
4836
|
+
accent: of,
|
|
4837
|
+
success: rf,
|
|
4838
|
+
warning: sf,
|
|
4839
|
+
danger: af,
|
|
4840
|
+
remove: lf
|
|
4841
|
+
}, Pr = /* @__PURE__ */ nt(!1);
|
|
4842
|
+
function x_({ ref: e, className: t, children: n, onKeyDown: o, onFocus: r, ...s }) {
|
|
4819
4843
|
const a = P(null), l = ne(
|
|
4820
4844
|
() => Array.from(a.current?.querySelectorAll("[data-tag]") ?? []),
|
|
4821
4845
|
[]
|
|
@@ -4855,12 +4879,12 @@ function N_({ ref: e, className: t, children: n, onKeyDown: o, onFocus: r, ...s
|
|
|
4855
4879
|
onKeyDown: f,
|
|
4856
4880
|
onFocus: c,
|
|
4857
4881
|
...s,
|
|
4858
|
-
children: /* @__PURE__ */ i(
|
|
4882
|
+
children: /* @__PURE__ */ i(Pr, { value: !0, children: n })
|
|
4859
4883
|
}
|
|
4860
4884
|
);
|
|
4861
4885
|
}
|
|
4862
|
-
function
|
|
4863
|
-
const c = Ke(
|
|
4886
|
+
function C_({ ref: e, tone: t = "neutral", children: n, onRemove: o, removeLabel: r, disabled: s = !1, className: a, onKeyDown: l, ...d }) {
|
|
4887
|
+
const c = Ke(Pr), f = fe(), h = !!o && !s, m = r ?? (typeof n == "string" ? f.removeTag(n) : f.remove), u = (p) => {
|
|
4864
4888
|
if (!p) {
|
|
4865
4889
|
o?.();
|
|
4866
4890
|
return;
|
|
@@ -4906,29 +4930,29 @@ function $_({ ref: e, tone: t = "neutral", children: n, onRemove: o, removeLabel
|
|
|
4906
4930
|
}
|
|
4907
4931
|
);
|
|
4908
4932
|
}
|
|
4909
|
-
const
|
|
4910
|
-
list:
|
|
4911
|
-
indicator:
|
|
4912
|
-
tab:
|
|
4913
|
-
panel:
|
|
4914
|
-
},
|
|
4933
|
+
const cf = "_list_1evn5_4 _text_18806_22", df = "_indicator_1evn5_23", uf = "_tab_1evn5_34 _ring_18806_125", ff = "_panel_1evn5_64 _text_18806_22 _ring_18806_125", _n = {
|
|
4934
|
+
list: cf,
|
|
4935
|
+
indicator: df,
|
|
4936
|
+
tab: uf,
|
|
4937
|
+
panel: ff
|
|
4938
|
+
}, Er = /* @__PURE__ */ nt(null);
|
|
4915
4939
|
function uo(e) {
|
|
4916
|
-
const t = Ke(
|
|
4940
|
+
const t = Ke(Er);
|
|
4917
4941
|
if (!t)
|
|
4918
4942
|
throw new Error(`${e} must be used inside <Tabs>.`);
|
|
4919
4943
|
return t;
|
|
4920
4944
|
}
|
|
4921
|
-
function
|
|
4945
|
+
function D_({ ref: e, value: t, defaultValue: n, onChange: o, className: r, children: s, ...a }) {
|
|
4922
4946
|
const l = ke(), [d, c] = E(n ?? ""), f = t !== void 0;
|
|
4923
|
-
return /* @__PURE__ */ i("div", { ref: e, className: r, ...a, children: /* @__PURE__ */ i(
|
|
4947
|
+
return /* @__PURE__ */ i("div", { ref: e, className: r, ...a, children: /* @__PURE__ */ i(Er, { value: { value: f ? t : d, onChange: (m) => {
|
|
4924
4948
|
f || c(m), o?.(m);
|
|
4925
4949
|
}, idBase: l }, children: s }) });
|
|
4926
4950
|
}
|
|
4927
|
-
function
|
|
4951
|
+
function Bo(e, t) {
|
|
4928
4952
|
const n = t.offsetLeft, o = n + t.offsetWidth;
|
|
4929
4953
|
n < e.scrollLeft ? e.scrollLeft = n : o > e.scrollLeft + e.clientWidth && (e.scrollLeft = o - e.clientWidth);
|
|
4930
4954
|
}
|
|
4931
|
-
function
|
|
4955
|
+
function S_({
|
|
4932
4956
|
ref: e,
|
|
4933
4957
|
className: t,
|
|
4934
4958
|
children: n,
|
|
@@ -4943,7 +4967,7 @@ function C_({
|
|
|
4943
4967
|
d(null);
|
|
4944
4968
|
return;
|
|
4945
4969
|
}
|
|
4946
|
-
d({ left: m.offsetLeft, width: m.offsetWidth }),
|
|
4970
|
+
d({ left: m.offsetLeft, width: m.offsetWidth }), Bo(h, m);
|
|
4947
4971
|
}, []);
|
|
4948
4972
|
Me(() => {
|
|
4949
4973
|
c();
|
|
@@ -4967,7 +4991,7 @@ function C_({
|
|
|
4967
4991
|
let _ = u;
|
|
4968
4992
|
h.key === "ArrowRight" && (_ = (u + 1) % m.length), h.key === "ArrowLeft" && (_ = (u - 1 + m.length) % m.length), h.key === "Home" && (_ = 0), h.key === "End" && (_ = m.length - 1);
|
|
4969
4993
|
const p = m[_];
|
|
4970
|
-
p && (p.focus({ preventScroll: !0 }),
|
|
4994
|
+
p && (p.focus({ preventScroll: !0 }), Bo(h.currentTarget, p), p.click());
|
|
4971
4995
|
};
|
|
4972
4996
|
return /* @__PURE__ */ N(
|
|
4973
4997
|
"div",
|
|
@@ -4991,7 +5015,7 @@ function C_({
|
|
|
4991
5015
|
}
|
|
4992
5016
|
);
|
|
4993
5017
|
}
|
|
4994
|
-
function
|
|
5018
|
+
function M_({ ref: e, value: t, className: n, children: o, onClick: r, ...s }) {
|
|
4995
5019
|
const a = uo("Tab"), l = a.value === t, d = a.value === "";
|
|
4996
5020
|
return /* @__PURE__ */ i(
|
|
4997
5021
|
"button",
|
|
@@ -5012,7 +5036,7 @@ function D_({ ref: e, value: t, className: n, children: o, onClick: r, ...s }) {
|
|
|
5012
5036
|
}
|
|
5013
5037
|
);
|
|
5014
5038
|
}
|
|
5015
|
-
function
|
|
5039
|
+
function T_({ ref: e, value: t, className: n, children: o, ...r }) {
|
|
5016
5040
|
const s = uo("TabPanel");
|
|
5017
5041
|
return s.value !== t ? null : /* @__PURE__ */ i(
|
|
5018
5042
|
"div",
|
|
@@ -5028,17 +5052,17 @@ function S_({ ref: e, value: t, className: n, children: o, ...r }) {
|
|
|
5028
5052
|
}
|
|
5029
5053
|
);
|
|
5030
5054
|
}
|
|
5031
|
-
const
|
|
5032
|
-
textarea:
|
|
5033
|
-
sm:
|
|
5034
|
-
invalid:
|
|
5035
|
-
wrapper:
|
|
5036
|
-
wrapperSm:
|
|
5037
|
-
counted:
|
|
5038
|
-
count:
|
|
5039
|
-
countOver:
|
|
5055
|
+
const hf = (e, t) => t === void 0 ? void 0 : t - e.length, mf = (e, t, n) => !n || !t ? e : Math.min(e, t * n), pf = "_textarea_yuh8c_7 _field_18806_90", _f = "_sm_yuh8c_45", gf = "_invalid_yuh8c_52", bf = "_wrapper_yuh8c_69 _text_18806_22 _extent_18806_75 _fieldRoot_18806_145", vf = "_wrapperSm_yuh8c_78", yf = "_counted_yuh8c_85", wf = "_count_yuh8c_85", kf = "_countOver_yuh8c_104", Dt = {
|
|
5056
|
+
textarea: pf,
|
|
5057
|
+
sm: _f,
|
|
5058
|
+
invalid: gf,
|
|
5059
|
+
wrapper: bf,
|
|
5060
|
+
wrapperSm: vf,
|
|
5061
|
+
counted: yf,
|
|
5062
|
+
count: wf,
|
|
5063
|
+
countOver: kf
|
|
5040
5064
|
};
|
|
5041
|
-
function
|
|
5065
|
+
function A_({
|
|
5042
5066
|
ref: e,
|
|
5043
5067
|
size: t,
|
|
5044
5068
|
chars: n,
|
|
@@ -5056,13 +5080,13 @@ function M_({
|
|
|
5056
5080
|
..._
|
|
5057
5081
|
}) {
|
|
5058
5082
|
const p = Pe(t), g = Ee(), b = o ?? g?.invalid ?? !1, w = P(null);
|
|
5059
|
-
|
|
5083
|
+
Jo(e, () => w.current);
|
|
5060
5084
|
const v = ne(() => {
|
|
5061
5085
|
const q = w.current;
|
|
5062
5086
|
if (!q || !r) return;
|
|
5063
5087
|
q.style.height = "auto";
|
|
5064
5088
|
const $ = Number.parseFloat(getComputedStyle(q).lineHeight) || 0;
|
|
5065
|
-
q.style.height = `${
|
|
5089
|
+
q.style.height = `${mf(q.scrollHeight, $, s)}px`, q.style.overflowY = s && q.scrollHeight > q.clientHeight ? "auto" : "hidden";
|
|
5066
5090
|
}, [r, s]);
|
|
5067
5091
|
Me(v, [v, _.value, _.defaultValue]), J(() => {
|
|
5068
5092
|
if (!r) return;
|
|
@@ -5073,7 +5097,7 @@ function M_({
|
|
|
5073
5097
|
q = !0;
|
|
5074
5098
|
};
|
|
5075
5099
|
}, [r, v]);
|
|
5076
|
-
const [C, D] = E(() => String(_.defaultValue ?? "")), y = _.value !== void 0, S = y ? String(_.value ?? "") : C, O =
|
|
5100
|
+
const [C, D] = E(() => String(_.defaultValue ?? "")), y = _.value !== void 0, S = y ? String(_.value ?? "") : C, O = hf(S, _.maxLength), A = a && O !== void 0;
|
|
5077
5101
|
return /* @__PURE__ */ N(
|
|
5078
5102
|
"span",
|
|
5079
5103
|
{
|
|
@@ -5104,30 +5128,30 @@ function M_({
|
|
|
5104
5128
|
}
|
|
5105
5129
|
);
|
|
5106
5130
|
}
|
|
5107
|
-
const
|
|
5108
|
-
region:
|
|
5109
|
-
live:
|
|
5110
|
-
card:
|
|
5111
|
-
leaving:
|
|
5112
|
-
hidden:
|
|
5113
|
-
toast:
|
|
5114
|
-
behind:
|
|
5115
|
-
content:
|
|
5116
|
-
text:
|
|
5117
|
-
title:
|
|
5118
|
-
glyph:
|
|
5119
|
-
success:
|
|
5120
|
-
description:
|
|
5121
|
-
action:
|
|
5122
|
-
warning:
|
|
5123
|
-
danger:
|
|
5124
|
-
tools:
|
|
5125
|
-
count:
|
|
5126
|
-
close:
|
|
5127
|
-
toastIn:
|
|
5128
|
-
toastInFromTop:
|
|
5131
|
+
const Nf = "_region_1o3bn_36 _text_18806_22 _ring_18806_125", $f = "_live_1o3bn_145", xf = "_card_1o3bn_153", Cf = "_leaving_1o3bn_176", Df = "_hidden_1o3bn_194", Sf = "_toast_1o3bn_199", Mf = "_behind_1o3bn_220", Tf = "_content_1o3bn_268", Af = "_text_1o3bn_293", Rf = "_title_1o3bn_300", Ff = "_glyph_1o3bn_316", Lf = "_success_1o3bn_325", Pf = "_description_1o3bn_329", Ef = "_action_1o3bn_336 _ring_18806_125", If = "_warning_1o3bn_364", zf = "_danger_1o3bn_369", Of = "_tools_1o3bn_378", Bf = "_count_1o3bn_383 _ring_18806_125", qf = "_close_1o3bn_384 _ring_18806_125", Hf = "_toastIn_1o3bn_1", Wf = "_toastInFromTop_1o3bn_1", Ae = {
|
|
5132
|
+
region: Nf,
|
|
5133
|
+
live: $f,
|
|
5134
|
+
card: xf,
|
|
5135
|
+
leaving: Cf,
|
|
5136
|
+
hidden: Df,
|
|
5137
|
+
toast: Sf,
|
|
5138
|
+
behind: Mf,
|
|
5139
|
+
content: Tf,
|
|
5140
|
+
text: Af,
|
|
5141
|
+
title: Rf,
|
|
5142
|
+
glyph: Ff,
|
|
5143
|
+
success: Lf,
|
|
5144
|
+
description: Pf,
|
|
5145
|
+
action: Ef,
|
|
5146
|
+
warning: If,
|
|
5147
|
+
danger: zf,
|
|
5148
|
+
tools: Of,
|
|
5149
|
+
count: Bf,
|
|
5150
|
+
close: qf,
|
|
5151
|
+
toastIn: Hf,
|
|
5152
|
+
toastInFromTop: Wf
|
|
5129
5153
|
};
|
|
5130
|
-
function
|
|
5154
|
+
function Kf() {
|
|
5131
5155
|
const e = P(/* @__PURE__ */ new Map()), t = P(null), [n, o] = E({}), r = ne((l) => {
|
|
5132
5156
|
const d = e.current.get(l);
|
|
5133
5157
|
d && t.current?.unobserve(d), e.current.delete(l), o((c) => Object.fromEntries(Object.entries(c).filter(([f]) => Number(f) !== l)));
|
|
@@ -5156,7 +5180,7 @@ function zn(e, t) {
|
|
|
5156
5180
|
return !0;
|
|
5157
5181
|
}
|
|
5158
5182
|
}
|
|
5159
|
-
function
|
|
5183
|
+
function Uf(e, t) {
|
|
5160
5184
|
const [n, o] = E(!1), [r, s] = E(!1), [a, l] = E(!1), d = n || r || a;
|
|
5161
5185
|
return J(() => {
|
|
5162
5186
|
if (!a) return;
|
|
@@ -5170,29 +5194,29 @@ function Wf(e, t) {
|
|
|
5170
5194
|
s(!!c && f instanceof HTMLElement && c.contains(f) && zn(f, c));
|
|
5171
5195
|
}, [t, e]), { open: d, setHovered: o, setFocused: s, setPinned: l };
|
|
5172
5196
|
}
|
|
5173
|
-
const
|
|
5174
|
-
function
|
|
5197
|
+
const qo = 14, Ho = 8, jf = 0.04, Wo = 2;
|
|
5198
|
+
function Gf(e, t, n, o) {
|
|
5175
5199
|
const r = P(/* @__PURE__ */ new Map()), s = e.filter((m) => !m.leaving), a = s.length, l = [...s].reverse(), d = l[0] ? n[l[0].id] ?? 0 : 0, c = /* @__PURE__ */ new Map();
|
|
5176
5200
|
let f = 0;
|
|
5177
5201
|
l.forEach((m, u) => {
|
|
5178
5202
|
const _ = !t && u > 0;
|
|
5179
5203
|
c.set(m.id, {
|
|
5180
|
-
offset: t ? f : u *
|
|
5204
|
+
offset: t ? f : u * qo,
|
|
5181
5205
|
behind: _,
|
|
5182
|
-
scale: _ ? 1 - u *
|
|
5183
|
-
hidden: !t && u >
|
|
5206
|
+
scale: _ ? 1 - u * jf : 1,
|
|
5207
|
+
hidden: !t && u > Wo,
|
|
5184
5208
|
zIndex: t && o === "top" ? u + 1 : a - u
|
|
5185
|
-
}), f += (n[m.id] ?? 0) +
|
|
5209
|
+
}), f += (n[m.id] ?? 0) + Ho;
|
|
5186
5210
|
}), Me(() => {
|
|
5187
5211
|
r.current = c;
|
|
5188
5212
|
});
|
|
5189
|
-
const h = a === 0 ? 0 : t ? f -
|
|
5213
|
+
const h = a === 0 ? 0 : t ? f - Ho : d + qo * Math.min(a - 1, Wo);
|
|
5190
5214
|
return { lastPlaceRef: r, places: c, count: a, byRank: l, frontHeight: d, regionHeight: h };
|
|
5191
5215
|
}
|
|
5192
|
-
function
|
|
5216
|
+
function Ir(e) {
|
|
5193
5217
|
return e.isConnected && !(gn(e) && !e.open);
|
|
5194
5218
|
}
|
|
5195
|
-
function
|
|
5219
|
+
function Ko(e) {
|
|
5196
5220
|
const [t, n] = E(e), [o, r] = E(!0);
|
|
5197
5221
|
return e !== t && (n(e), r(t === null)), J(() => {
|
|
5198
5222
|
if (o) return;
|
|
@@ -5202,39 +5226,39 @@ function Wo(e) {
|
|
|
5202
5226
|
return () => cancelAnimationFrame(s);
|
|
5203
5227
|
}, [e, o]), o;
|
|
5204
5228
|
}
|
|
5205
|
-
function
|
|
5229
|
+
function Vf(e, t, n) {
|
|
5206
5230
|
const [o, r] = E(null), [s, a] = E(0), l = t.at(-1)?.id ?? 0;
|
|
5207
5231
|
e && o === null ? r(s + 1) : !e && o === null && l !== s && a(l);
|
|
5208
|
-
const d =
|
|
5232
|
+
const d = Ko(n);
|
|
5209
5233
|
Me(() => {
|
|
5210
|
-
!e && o !== null && d && n &&
|
|
5234
|
+
!e && o !== null && d && n && Ir(n) && r(null);
|
|
5211
5235
|
}, [e, n, o, d]);
|
|
5212
|
-
const c = (h) => o === null || h.id < o, f =
|
|
5236
|
+
const c = (h) => o === null || h.id < o, f = Ko(e);
|
|
5213
5237
|
return { entered: c, settled: f };
|
|
5214
5238
|
}
|
|
5215
|
-
function
|
|
5239
|
+
function Uo(e) {
|
|
5216
5240
|
const t = getComputedStyle(e), n = (o) => t.getPropertyValue(`--_toast-${o}`);
|
|
5217
5241
|
return { "--_from-top": n("top"), "--_from-bottom": n("bottom"), "--_from-start": n("start"), "--_from-end": n("end") };
|
|
5218
5242
|
}
|
|
5219
|
-
function
|
|
5243
|
+
function Yf(e, t) {
|
|
5220
5244
|
const n = P(null);
|
|
5221
5245
|
J(() => {
|
|
5222
5246
|
if (n.current = null, !t) return;
|
|
5223
5247
|
let a = requestAnimationFrame(function l() {
|
|
5224
|
-
e.current && (n.current =
|
|
5248
|
+
e.current && (n.current = Uo(e.current)), a = requestAnimationFrame(l);
|
|
5225
5249
|
});
|
|
5226
5250
|
return () => cancelAnimationFrame(a);
|
|
5227
5251
|
}, [e, t]);
|
|
5228
5252
|
const [o, r] = E(null), s = ne(
|
|
5229
5253
|
(a, l) => {
|
|
5230
5254
|
const d = e.current;
|
|
5231
|
-
r(l && d ?
|
|
5255
|
+
r(l && d ? Ir(a) ? Uo(d) : n.current : null);
|
|
5232
5256
|
},
|
|
5233
5257
|
[e]
|
|
5234
5258
|
);
|
|
5235
5259
|
return { from: o, handOn: s };
|
|
5236
5260
|
}
|
|
5237
|
-
function
|
|
5261
|
+
function Xf(e, t) {
|
|
5238
5262
|
const [n, o] = E(!1), r = P(null), s = ne(() => {
|
|
5239
5263
|
const a = r.current;
|
|
5240
5264
|
r.current = null, a?.isConnected ? a.focus() : document.activeElement?.blur();
|
|
@@ -5250,10 +5274,10 @@ function Vf(e, t) {
|
|
|
5250
5274
|
return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
5251
5275
|
}, [t, e]), { byKeys: n, setByKeys: o, returnFocusRef: r, leaveRegion: s };
|
|
5252
5276
|
}
|
|
5253
|
-
function
|
|
5277
|
+
function zr(e, t) {
|
|
5254
5278
|
return (e.duration ?? t) > 0 && e.tone !== "loading";
|
|
5255
5279
|
}
|
|
5256
|
-
function
|
|
5280
|
+
function Qf() {
|
|
5257
5281
|
const e = P(/* @__PURE__ */ new Map()), t = P(/* @__PURE__ */ new Set()), n = ne((o) => {
|
|
5258
5282
|
const r = e.current.get(o);
|
|
5259
5283
|
r?.timeout && clearTimeout(r.timeout), e.current.delete(o);
|
|
@@ -5267,7 +5291,7 @@ function Yf() {
|
|
|
5267
5291
|
};
|
|
5268
5292
|
}, []), { timersRef: e, leavesRef: t, clearTimer: n };
|
|
5269
5293
|
}
|
|
5270
|
-
function
|
|
5294
|
+
function Zf({
|
|
5271
5295
|
timersRef: e,
|
|
5272
5296
|
clearTimer: t,
|
|
5273
5297
|
itemsRef: n,
|
|
@@ -5284,7 +5308,7 @@ function Xf({
|
|
|
5284
5308
|
(c) => {
|
|
5285
5309
|
t(c);
|
|
5286
5310
|
const f = n.current.find((u) => u.id === c);
|
|
5287
|
-
if (!f || !
|
|
5311
|
+
if (!f || !zr(f, r)) return;
|
|
5288
5312
|
const m = { timeout: null, remaining: f.duration ?? r, startedAt: 0 };
|
|
5289
5313
|
e.current.set(c, m), a.current || l(c, m);
|
|
5290
5314
|
},
|
|
@@ -5296,14 +5320,14 @@ function Xf({
|
|
|
5296
5320
|
});
|
|
5297
5321
|
}, [o, s, l, e]), d;
|
|
5298
5322
|
}
|
|
5299
|
-
const
|
|
5300
|
-
function
|
|
5301
|
-
const e = Ke(
|
|
5323
|
+
const Or = /* @__PURE__ */ nt(null);
|
|
5324
|
+
function R_() {
|
|
5325
|
+
const e = Ke(Or);
|
|
5302
5326
|
if (!e)
|
|
5303
5327
|
throw new Error("useToast requires a <ToastProvider> around the application.");
|
|
5304
5328
|
return e;
|
|
5305
5329
|
}
|
|
5306
|
-
function
|
|
5330
|
+
function Jf({ tone: e }) {
|
|
5307
5331
|
return e === "loading" ? /* @__PURE__ */ i(Un, { size: 16, "aria-hidden": "true" }) : (
|
|
5308
5332
|
/* The dots of ! and i are strokes of no length: a round cap alone is a dot
|
|
5309
5333
|
as wide as the stem, and the glyph stays drawn with the stroke. */
|
|
@@ -5322,8 +5346,8 @@ function Qf({ tone: e }) {
|
|
|
5322
5346
|
);
|
|
5323
5347
|
}
|
|
5324
5348
|
let Tn = 0;
|
|
5325
|
-
function
|
|
5326
|
-
const n =
|
|
5349
|
+
function F_({ children: e, held: t = !1 }) {
|
|
5350
|
+
const n = Fs(), o = P(!1);
|
|
5327
5351
|
J(() => (lo() && Tn > 0 && !o.current && (o.current = !0, console.warn(
|
|
5328
5352
|
"@umriss-ui/core: a second ToastProvider is mounted while another one stands. Use one ToastProvider per application, at its root: two decks stand at the same place."
|
|
5329
5353
|
)), Tn += 1, () => {
|
|
@@ -5331,7 +5355,7 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5331
5355
|
}), []);
|
|
5332
5356
|
const r = n.duration ?? 5e3, s = Math.max(1, n.limit ?? 3), a = n.position ?? "bottom-end", [l, d] = a.split("-"), [c, f] = E([]), h = P([]), m = ne((W) => {
|
|
5333
5357
|
h.current = W, f(W);
|
|
5334
|
-
}, []), u = P(1), _ = P(/* @__PURE__ */ new Map()), { timersRef: p, leavesRef: g, clearTimer: b } =
|
|
5358
|
+
}, []), u = P(1), _ = P(/* @__PURE__ */ new Map()), { timersRef: p, leavesRef: g, clearTimer: b } = Qf(), w = P(null), { open: v, setHovered: C, setFocused: D, setPinned: y } = Uf(w, c), { heights: S, measureRef: O, forget: A } = Kf(), { lastPlaceRef: q, places: $, count: M, byRank: K, frontHeight: X, regionHeight: k } = Gf(c, v, S, l), B = c.some((W) => !W.leaving) && !t, { byKeys: x, setByKeys: G, returnFocusRef: V, leaveRegion: j } = Xf(w, B), F = ne(
|
|
5335
5359
|
(W) => {
|
|
5336
5360
|
q.current.delete(W), _.current.delete(W), A(W);
|
|
5337
5361
|
const pe = h.current.filter((_e) => _e.id !== W);
|
|
@@ -5358,11 +5382,11 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5358
5382
|
g.current.add(oe);
|
|
5359
5383
|
},
|
|
5360
5384
|
[b, m, F, j, q, g, w]
|
|
5361
|
-
), z =
|
|
5385
|
+
), z = Zf({ timersRef: p, clearTimer: b, itemsRef: h, still: v || t, defaultDuration: r, beginLeave: re }), H = ne(
|
|
5362
5386
|
(W) => {
|
|
5363
5387
|
const pe = u.current++;
|
|
5364
5388
|
_.current.set(pe, performance.now()), m([...h.current, { ...W, id: pe }]);
|
|
5365
|
-
const _e = h.current.filter((be) => !be.leaving &&
|
|
5389
|
+
const _e = h.current.filter((be) => !be.leaving && zr(be, r));
|
|
5366
5390
|
return _e.slice(0, Math.max(0, _e.length - s)).forEach((be) => re(be.id, "dismiss")), z(pe), pe;
|
|
5367
5391
|
},
|
|
5368
5392
|
[re, m, r, s, z]
|
|
@@ -5381,9 +5405,9 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5381
5405
|
G(!1), !W.currentTarget.contains(W.relatedTarget) && Q();
|
|
5382
5406
|
}, R = (W) => {
|
|
5383
5407
|
W.pointerType !== "touch" && C(!0);
|
|
5384
|
-
}, se = () => C(!1), me = ue(() => ({ toast: H, update: ae, dismiss: ee }), [H, ae, ee]), ge = fe(), Fe = Vn(), je =
|
|
5408
|
+
}, se = () => C(!1), me = ue(() => ({ toast: H, update: ae, dismiss: ee }), [H, ae, ee]), ge = fe(), Fe = Vn(), je = Ps(), [Y, le] = E(null), { entered: Te, settled: gt } = Vf(t, c, Y), [it, Qe] = E(/* @__PURE__ */ new Map()), lt = B && gt, { from: Lt, handOn: Pt } = Yf(w, gn(Y) && lt);
|
|
5385
5409
|
Me(() => {
|
|
5386
|
-
const W =
|
|
5410
|
+
const W = Ls(je, Fe);
|
|
5387
5411
|
if (W !== Y) {
|
|
5388
5412
|
if (Y) {
|
|
5389
5413
|
C(!1), Q();
|
|
@@ -5394,7 +5418,7 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5394
5418
|
}
|
|
5395
5419
|
}, [je, Fe, c, Y, C, Q, Pt, lt]), Me(() => {
|
|
5396
5420
|
U.current = t, t && (h.current.filter((W) => W.leaving).forEach((W) => F(W.id)), w.current?.contains(document.activeElement) && j(), C(!1), Q());
|
|
5397
|
-
}, [t, F, j, C, Q]), t && it.size > 0 && Qe(/* @__PURE__ */ new Map()),
|
|
5421
|
+
}, [t, F, j, C, Q]), t && it.size > 0 && Qe(/* @__PURE__ */ new Map()), dr(w);
|
|
5398
5422
|
const kt = () => {
|
|
5399
5423
|
y(!0), w.current?.focus();
|
|
5400
5424
|
}, bt = (W) => {
|
|
@@ -5419,7 +5443,7 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5419
5443
|
children: /* @__PURE__ */ i("div", { className: L(Ae.toast, Ae[pe]), children: /* @__PURE__ */ N("div", { ref: O, "data-toast": W.id, className: Ae.content, children: [
|
|
5420
5444
|
/* @__PURE__ */ N("div", { className: Ae.text, children: [
|
|
5421
5445
|
/* @__PURE__ */ N("p", { className: Ae.title, children: [
|
|
5422
|
-
/* @__PURE__ */ i("span", { className: Ae.glyph, children: /* @__PURE__ */ i(
|
|
5446
|
+
/* @__PURE__ */ i("span", { className: Ae.glyph, children: /* @__PURE__ */ i(Jf, { tone: pe }) }),
|
|
5423
5447
|
W.title
|
|
5424
5448
|
] }),
|
|
5425
5449
|
W.description && /* @__PURE__ */ i("p", { className: Ae.description, children: W.description }),
|
|
@@ -5477,7 +5501,7 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5477
5501
|
/* Held back, its box is no wall over what lies beneath. */
|
|
5478
5502
|
pointerEvents: t ? "none" : void 0
|
|
5479
5503
|
};
|
|
5480
|
-
return /* @__PURE__ */ N(
|
|
5504
|
+
return /* @__PURE__ */ N(Or, { value: me, children: [
|
|
5481
5505
|
e,
|
|
5482
5506
|
Y && Hn(
|
|
5483
5507
|
/* Two live regions that stand before the first message arrives: a
|
|
@@ -5490,7 +5514,7 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5490
5514
|
{
|
|
5491
5515
|
ref: w,
|
|
5492
5516
|
className: Ae.region,
|
|
5493
|
-
popover:
|
|
5517
|
+
popover: cr(Y),
|
|
5494
5518
|
"data-edge": l,
|
|
5495
5519
|
"data-along": d,
|
|
5496
5520
|
"data-open": v ? "" : void 0,
|
|
@@ -5513,23 +5537,23 @@ function A_({ children: e, held: t = !1 }) {
|
|
|
5513
5537
|
)
|
|
5514
5538
|
] });
|
|
5515
5539
|
}
|
|
5516
|
-
const
|
|
5517
|
-
tree:
|
|
5518
|
-
row:
|
|
5519
|
-
active:
|
|
5520
|
-
pathOnly:
|
|
5521
|
-
chevron:
|
|
5522
|
-
chevronOpen:
|
|
5523
|
-
placeholder:
|
|
5524
|
-
emptyDot:
|
|
5525
|
-
check:
|
|
5526
|
-
content:
|
|
5527
|
-
noMatches:
|
|
5528
|
-
scrolls:
|
|
5529
|
-
disabled:
|
|
5530
|
-
loading:
|
|
5531
|
-
},
|
|
5532
|
-
function
|
|
5540
|
+
const eh = "_tree_fglrg_10 _text_18806_22", th = "_row_fglrg_23", nh = "_active_fglrg_46", oh = "_pathOnly_fglrg_58", rh = "_chevron_fglrg_62", sh = "_chevronOpen_fglrg_74", ah = "_placeholder_fglrg_80", ih = "_emptyDot_fglrg_86", lh = "_check_fglrg_104", ch = "_content_fglrg_110", dh = "_noMatches_fglrg_124", uh = "_scrolls_fglrg_133 _scroll_18806_96", fh = "_disabled_fglrg_141", hh = "_loading_fglrg_145", ze = {
|
|
5541
|
+
tree: eh,
|
|
5542
|
+
row: th,
|
|
5543
|
+
active: nh,
|
|
5544
|
+
pathOnly: oh,
|
|
5545
|
+
chevron: rh,
|
|
5546
|
+
chevronOpen: sh,
|
|
5547
|
+
placeholder: ah,
|
|
5548
|
+
emptyDot: ih,
|
|
5549
|
+
check: lh,
|
|
5550
|
+
content: ch,
|
|
5551
|
+
noMatches: dh,
|
|
5552
|
+
scrolls: uh,
|
|
5553
|
+
disabled: fh,
|
|
5554
|
+
loading: hh
|
|
5555
|
+
}, mh = 600;
|
|
5556
|
+
function L_({
|
|
5533
5557
|
ref: e,
|
|
5534
5558
|
tree: t,
|
|
5535
5559
|
"aria-label": n,
|
|
@@ -5609,7 +5633,7 @@ function R_({
|
|
|
5609
5633
|
if ($.key.length !== 1 || $.ctrlKey || $.metaKey || $.altKey || $.key === " ") return;
|
|
5610
5634
|
v.current !== null && window.clearTimeout(v.current), w.current += $.key, v.current = window.setTimeout(() => {
|
|
5611
5635
|
w.current = "", v.current = null;
|
|
5612
|
-
},
|
|
5636
|
+
}, mh), t.typeahead(w.current);
|
|
5613
5637
|
break;
|
|
5614
5638
|
}
|
|
5615
5639
|
}
|
|
@@ -5704,7 +5728,7 @@ function R_({
|
|
|
5704
5728
|
}
|
|
5705
5729
|
);
|
|
5706
5730
|
}
|
|
5707
|
-
function
|
|
5731
|
+
function P_({ ref: e, tree: t, placeholder: n, ...o }) {
|
|
5708
5732
|
const r = fe();
|
|
5709
5733
|
return /* @__PURE__ */ i(
|
|
5710
5734
|
ao,
|
|
@@ -5723,7 +5747,7 @@ function F_({ ref: e, tree: t, placeholder: n, ...o }) {
|
|
|
5723
5747
|
function on(e, t) {
|
|
5724
5748
|
return e.disabled?.(t) !== !0 && e.unloaded?.(t) !== !0;
|
|
5725
5749
|
}
|
|
5726
|
-
function
|
|
5750
|
+
function ph(e, t, n) {
|
|
5727
5751
|
const o = n.search.trim().toLowerCase(), r = {
|
|
5728
5752
|
indeterminate: /* @__PURE__ */ new Set(),
|
|
5729
5753
|
survives: /* @__PURE__ */ new Set(),
|
|
@@ -5745,8 +5769,8 @@ function hh(e, t, n) {
|
|
|
5745
5769
|
for (const a of e) s(a);
|
|
5746
5770
|
return r;
|
|
5747
5771
|
}
|
|
5748
|
-
function
|
|
5749
|
-
const o = t.matches !== void 0 || n.search.trim() !== "", r =
|
|
5772
|
+
function _h(e, t, n) {
|
|
5773
|
+
const o = t.matches !== void 0 || n.search.trim() !== "", r = ph(e, t, n), s = [];
|
|
5750
5774
|
function a(l, d, c) {
|
|
5751
5775
|
const f = c ? l : l.filter((h) => !o || r.survives.has(t.key(h)));
|
|
5752
5776
|
f.forEach((h, m) => {
|
|
@@ -5773,12 +5797,12 @@ function mh(e, t, n) {
|
|
|
5773
5797
|
}
|
|
5774
5798
|
return a(e, 0, !1), s;
|
|
5775
5799
|
}
|
|
5776
|
-
function
|
|
5800
|
+
function Br(e, t) {
|
|
5777
5801
|
if (e.expanded.has(t)) return e;
|
|
5778
5802
|
const n = new Set(e.expanded);
|
|
5779
5803
|
return n.add(t), { ...e, expanded: n };
|
|
5780
5804
|
}
|
|
5781
|
-
function
|
|
5805
|
+
function qr(e, t) {
|
|
5782
5806
|
if (!e.expanded.has(t)) return e;
|
|
5783
5807
|
const n = new Set(e.expanded);
|
|
5784
5808
|
return n.delete(t), { ...e, expanded: n };
|
|
@@ -5786,7 +5810,7 @@ function Br(e, t) {
|
|
|
5786
5810
|
function ft(e, t) {
|
|
5787
5811
|
return e.active === t ? e : { ...e, active: t };
|
|
5788
5812
|
}
|
|
5789
|
-
function
|
|
5813
|
+
function jo(e, t, n) {
|
|
5790
5814
|
if (e.length === 0) return t;
|
|
5791
5815
|
const o = e[0], r = e[e.length - 1];
|
|
5792
5816
|
if (n === "start") return ft(t, o.key);
|
|
@@ -5805,12 +5829,12 @@ function Uo(e, t, n) {
|
|
|
5805
5829
|
}
|
|
5806
5830
|
case "in": {
|
|
5807
5831
|
if (!a.branch || a.empty) return t;
|
|
5808
|
-
if (!a.expanded) return
|
|
5832
|
+
if (!a.expanded) return Br(t, a.key);
|
|
5809
5833
|
const l = e[s + 1];
|
|
5810
5834
|
return l === void 0 ? t : ft(t, l.key);
|
|
5811
5835
|
}
|
|
5812
5836
|
case "out": {
|
|
5813
|
-
if (a.branch && a.expanded) return
|
|
5837
|
+
if (a.branch && a.expanded) return qr(t, a.key);
|
|
5814
5838
|
for (let l = s - 1; l >= 0; l--) {
|
|
5815
5839
|
const d = e[l];
|
|
5816
5840
|
if (d.level < a.level) return ft(t, d.key);
|
|
@@ -5819,10 +5843,10 @@ function Uo(e, t, n) {
|
|
|
5819
5843
|
}
|
|
5820
5844
|
}
|
|
5821
5845
|
}
|
|
5822
|
-
function
|
|
5846
|
+
function Go(e, t) {
|
|
5823
5847
|
return e.anchor === t ? e : { ...e, anchor: t };
|
|
5824
5848
|
}
|
|
5825
|
-
function
|
|
5849
|
+
function gh(e, t, n) {
|
|
5826
5850
|
const o = e.findIndex((d) => d.key === t), r = e.findIndex((d) => d.key === n);
|
|
5827
5851
|
if (o < 0 || r < 0) return [];
|
|
5828
5852
|
const [s, a] = o <= r ? [o, r] : [r, o], l = [];
|
|
@@ -5832,7 +5856,7 @@ function ph(e, t, n) {
|
|
|
5832
5856
|
}
|
|
5833
5857
|
return l;
|
|
5834
5858
|
}
|
|
5835
|
-
function
|
|
5859
|
+
function Hr(e, t) {
|
|
5836
5860
|
const n = { nodes: /* @__PURE__ */ new Map(), parents: /* @__PURE__ */ new Map(), depth: /* @__PURE__ */ new Map() };
|
|
5837
5861
|
function o(r, s, a) {
|
|
5838
5862
|
const l = t.key(r);
|
|
@@ -5844,7 +5868,7 @@ function qr(e, t) {
|
|
|
5844
5868
|
}
|
|
5845
5869
|
function On(e, t, n, o, r) {
|
|
5846
5870
|
if (o.length === 0) return n;
|
|
5847
|
-
const s =
|
|
5871
|
+
const s = Hr(e, t), a = new Set(n.checked);
|
|
5848
5872
|
function l(m) {
|
|
5849
5873
|
if (on(t, m)) {
|
|
5850
5874
|
const u = t.key(m);
|
|
@@ -5883,19 +5907,19 @@ function On(e, t, n, o, r) {
|
|
|
5883
5907
|
}
|
|
5884
5908
|
return { ...n, checked: a };
|
|
5885
5909
|
}
|
|
5886
|
-
function
|
|
5910
|
+
function Wr(e, t, n, o) {
|
|
5887
5911
|
const r = On(e, t, n, o, !0);
|
|
5888
5912
|
return r.checked.size === n.checked.size && [...r.checked].every((a) => n.checked.has(a)) ? On(e, t, n, o, !1) : r;
|
|
5889
5913
|
}
|
|
5890
|
-
function
|
|
5891
|
-
const o =
|
|
5914
|
+
function bh(e, t, n) {
|
|
5915
|
+
const o = Hr(e, t), r = [];
|
|
5892
5916
|
for (const [s, a] of o.nodes) on(t, a) && r.push(s);
|
|
5893
|
-
return r.length === 0 ? n :
|
|
5917
|
+
return r.length === 0 ? n : Wr(e, t, n, r);
|
|
5894
5918
|
}
|
|
5895
|
-
function
|
|
5896
|
-
return
|
|
5919
|
+
function Vo(e, t, n, o) {
|
|
5920
|
+
return Wr(e, t, n, [o]);
|
|
5897
5921
|
}
|
|
5898
|
-
function
|
|
5922
|
+
function vh(e, t, n) {
|
|
5899
5923
|
const o = t.toLowerCase();
|
|
5900
5924
|
if (o === "" || e.length === 0) return null;
|
|
5901
5925
|
const r = e.findIndex((a) => a.key === n), s = r < 0 ? 0 : o.length === 1 ? r + 1 : r;
|
|
@@ -5905,7 +5929,7 @@ function gh(e, t, n) {
|
|
|
5905
5929
|
}
|
|
5906
5930
|
return null;
|
|
5907
5931
|
}
|
|
5908
|
-
function
|
|
5932
|
+
function yh(e, t, n) {
|
|
5909
5933
|
function o(r, s) {
|
|
5910
5934
|
const a = t.key(r);
|
|
5911
5935
|
if (s.push(a), a === n) return s;
|
|
@@ -5921,7 +5945,7 @@ function bh(e, t, n) {
|
|
|
5921
5945
|
}
|
|
5922
5946
|
return null;
|
|
5923
5947
|
}
|
|
5924
|
-
function
|
|
5948
|
+
function wh(e, t, n, o) {
|
|
5925
5949
|
let r = e, s = null;
|
|
5926
5950
|
const a = new Set(n.expanded);
|
|
5927
5951
|
for (let l = 0; l < o.length; l++) {
|
|
@@ -5933,7 +5957,7 @@ function vh(e, t, n, o) {
|
|
|
5933
5957
|
}
|
|
5934
5958
|
return s === null ? { snapshot: n, reached: null } : { snapshot: { ...n, expanded: a }, reached: s };
|
|
5935
5959
|
}
|
|
5936
|
-
function
|
|
5960
|
+
function kh(e, t) {
|
|
5937
5961
|
const n = [];
|
|
5938
5962
|
function o(r) {
|
|
5939
5963
|
const s = t.children(r);
|
|
@@ -5943,7 +5967,7 @@ function yh(e, t) {
|
|
|
5943
5967
|
for (const r of e) o(r);
|
|
5944
5968
|
return n;
|
|
5945
5969
|
}
|
|
5946
|
-
function
|
|
5970
|
+
function Nh(e, t) {
|
|
5947
5971
|
const n = /* @__PURE__ */ new Set();
|
|
5948
5972
|
let o = null;
|
|
5949
5973
|
function r(s) {
|
|
@@ -5959,7 +5983,7 @@ function wh(e, t) {
|
|
|
5959
5983
|
for (const s of e) r(s);
|
|
5960
5984
|
return o;
|
|
5961
5985
|
}
|
|
5962
|
-
function
|
|
5986
|
+
function E_(e, t) {
|
|
5963
5987
|
const {
|
|
5964
5988
|
reader: n,
|
|
5965
5989
|
defaultExpanded: o,
|
|
@@ -6003,7 +6027,7 @@ function L_(e, t) {
|
|
|
6003
6027
|
$
|
|
6004
6028
|
]
|
|
6005
6029
|
), { expanded: B, checked: x, search: G, active: V } = k, j = ue(
|
|
6006
|
-
() =>
|
|
6030
|
+
() => _h(e, n, {
|
|
6007
6031
|
expanded: B,
|
|
6008
6032
|
checked: x,
|
|
6009
6033
|
active: null,
|
|
@@ -6019,7 +6043,7 @@ function L_(e, t) {
|
|
|
6019
6043
|
}, [j, V]);
|
|
6020
6044
|
J(() => {
|
|
6021
6045
|
if (!lo()) return;
|
|
6022
|
-
const Y =
|
|
6046
|
+
const Y = Nh(e, n);
|
|
6023
6047
|
Y !== null && console.warn(
|
|
6024
6048
|
`@umriss-ui/core: the key "${String(Y)}" occurs more than once in the tree. The cascade and the active node presuppose unique keys.`
|
|
6025
6049
|
);
|
|
@@ -6047,33 +6071,33 @@ function L_(e, t) {
|
|
|
6047
6071
|
const le = re(Y);
|
|
6048
6072
|
if (le === void 0 || !le.branch || le.empty) return;
|
|
6049
6073
|
const Te = !le.expanded;
|
|
6050
|
-
U(Te ?
|
|
6074
|
+
U(Te ? Br(k, Y) : qr(k, Y)), Te && le.unloaded && b?.(le.node);
|
|
6051
6075
|
},
|
|
6052
6076
|
[re, k, U, b]
|
|
6053
6077
|
), H = ne(
|
|
6054
6078
|
(Y) => {
|
|
6055
|
-
U(
|
|
6079
|
+
U(Go(Vo(e, n, k, Y), Y));
|
|
6056
6080
|
},
|
|
6057
6081
|
[e, n, k, U]
|
|
6058
6082
|
), ae = ne(
|
|
6059
6083
|
(Y) => {
|
|
6060
6084
|
const le = k.anchor ?? k.active;
|
|
6061
|
-
le !== null && U(On(e, n, k,
|
|
6085
|
+
le !== null && U(On(e, n, k, gh(F, le, Y), !0));
|
|
6062
6086
|
},
|
|
6063
6087
|
[e, n, k, F, U]
|
|
6064
6088
|
), ee = ne(
|
|
6065
6089
|
(Y) => {
|
|
6066
|
-
const le =
|
|
6090
|
+
const le = jo(F, k, Y);
|
|
6067
6091
|
le.active === null || le.active === k.active || U(
|
|
6068
|
-
|
|
6069
|
-
|
|
6092
|
+
Go(
|
|
6093
|
+
Vo(e, n, le, le.active),
|
|
6070
6094
|
le.active
|
|
6071
6095
|
)
|
|
6072
6096
|
);
|
|
6073
6097
|
},
|
|
6074
6098
|
[F, k, e, n, U]
|
|
6075
6099
|
), he = ne(
|
|
6076
|
-
() => U(
|
|
6100
|
+
() => U(bh(e, n, k)),
|
|
6077
6101
|
[e, n, k, U]
|
|
6078
6102
|
), ve = ne(
|
|
6079
6103
|
(Y) => {
|
|
@@ -6083,27 +6107,27 @@ function L_(e, t) {
|
|
|
6083
6107
|
},
|
|
6084
6108
|
[k, U, re, g]
|
|
6085
6109
|
), Q = ne(
|
|
6086
|
-
(Y) => U(
|
|
6110
|
+
(Y) => U(jo(F, k, Y)),
|
|
6087
6111
|
[F, k, U]
|
|
6088
6112
|
), te = ne(
|
|
6089
6113
|
(Y) => {
|
|
6090
|
-
const { snapshot: le, reached: Te } =
|
|
6114
|
+
const { snapshot: le, reached: Te } = wh(e, n, k, Y);
|
|
6091
6115
|
return Te === null ? null : (U(ft(le, Te)), X((gt) => gt + 1), Te);
|
|
6092
6116
|
},
|
|
6093
6117
|
[e, n, k, U]
|
|
6094
6118
|
), R = ne(
|
|
6095
6119
|
(Y) => {
|
|
6096
|
-
const le =
|
|
6120
|
+
const le = yh(e, n, Y);
|
|
6097
6121
|
return le === null ? null : te(le);
|
|
6098
6122
|
},
|
|
6099
6123
|
[e, n, te]
|
|
6100
6124
|
), se = ne(() => {
|
|
6101
|
-
U({ ...k, expanded: new Set(
|
|
6125
|
+
U({ ...k, expanded: new Set(kh(e, n)) });
|
|
6102
6126
|
}, [e, n, k, U]), me = ne(() => {
|
|
6103
6127
|
U({ ...k, expanded: /* @__PURE__ */ new Set() });
|
|
6104
6128
|
}, [k, U]), ge = ne(
|
|
6105
6129
|
(Y) => {
|
|
6106
|
-
const le =
|
|
6130
|
+
const le = vh(F, Y, k.active);
|
|
6107
6131
|
le !== null && U(ft(k, le));
|
|
6108
6132
|
},
|
|
6109
6133
|
[F, k, U]
|
|
@@ -6137,9 +6161,9 @@ function L_(e, t) {
|
|
|
6137
6161
|
toggleAll: he
|
|
6138
6162
|
};
|
|
6139
6163
|
}
|
|
6140
|
-
const
|
|
6141
|
-
text:
|
|
6142
|
-
heading:
|
|
6164
|
+
const $h = "_text_1xt1b_7 _text_18806_22", xh = "_heading_1xt1b_11 _text_18806_22", Ch = "_trackingDisplay_1xt1b_100", Dh = "_trackingTight_1xt1b_104", Sh = "_mono_1xt1b_110", Mh = "_link_1xt1b_119", Ie = {
|
|
6165
|
+
text: $h,
|
|
6166
|
+
heading: xh,
|
|
6143
6167
|
"size-xs": "_size-xs_1xt1b_30",
|
|
6144
6168
|
"size-sm": "_size-sm_1xt1b_33",
|
|
6145
6169
|
"size-md": "_size-md_1xt1b_36",
|
|
@@ -6158,12 +6182,12 @@ const kh = "_text_1xt1b_7 _text_18806_22", Nh = "_heading_1xt1b_11 _text_18806_2
|
|
|
6158
6182
|
"tracking-caps": "_tracking-caps_1xt1b_85",
|
|
6159
6183
|
"leading-normal": "_leading-normal_1xt1b_92",
|
|
6160
6184
|
"leading-tight": "_leading-tight_1xt1b_95",
|
|
6161
|
-
trackingDisplay:
|
|
6162
|
-
trackingTight:
|
|
6163
|
-
mono:
|
|
6164
|
-
link:
|
|
6185
|
+
trackingDisplay: Ch,
|
|
6186
|
+
trackingTight: Dh,
|
|
6187
|
+
mono: Sh,
|
|
6188
|
+
link: Mh
|
|
6165
6189
|
};
|
|
6166
|
-
function
|
|
6190
|
+
function I_({
|
|
6167
6191
|
ref: e,
|
|
6168
6192
|
as: t = "p",
|
|
6169
6193
|
size: n = "md",
|
|
@@ -6195,7 +6219,7 @@ function P_({
|
|
|
6195
6219
|
}
|
|
6196
6220
|
);
|
|
6197
6221
|
}
|
|
6198
|
-
const
|
|
6222
|
+
const Th = {
|
|
6199
6223
|
1: "2xl",
|
|
6200
6224
|
2: "xl",
|
|
6201
6225
|
3: "lg",
|
|
@@ -6203,7 +6227,7 @@ const Sh = {
|
|
|
6203
6227
|
5: "sm",
|
|
6204
6228
|
6: "xs"
|
|
6205
6229
|
};
|
|
6206
|
-
function
|
|
6230
|
+
function z_({
|
|
6207
6231
|
ref: e,
|
|
6208
6232
|
level: t = 2,
|
|
6209
6233
|
size: n,
|
|
@@ -6213,7 +6237,7 @@ function E_({
|
|
|
6213
6237
|
children: a,
|
|
6214
6238
|
...l
|
|
6215
6239
|
}) {
|
|
6216
|
-
const d = `h${t}`, c = n ??
|
|
6240
|
+
const d = `h${t}`, c = n ?? Th[t];
|
|
6217
6241
|
return /* @__PURE__ */ i(
|
|
6218
6242
|
d,
|
|
6219
6243
|
{
|
|
@@ -6233,7 +6257,7 @@ function E_({
|
|
|
6233
6257
|
}
|
|
6234
6258
|
);
|
|
6235
6259
|
}
|
|
6236
|
-
function
|
|
6260
|
+
function O_({ ref: e, size: t = "md", external: n = !1, className: o, children: r, ...s }) {
|
|
6237
6261
|
return /* @__PURE__ */ i(
|
|
6238
6262
|
"a",
|
|
6239
6263
|
{
|
|
@@ -6251,25 +6275,25 @@ const Bn = {
|
|
|
6251
6275
|
warning: 2,
|
|
6252
6276
|
alarm: 3
|
|
6253
6277
|
};
|
|
6254
|
-
function
|
|
6278
|
+
function B_(e) {
|
|
6255
6279
|
return Bn[e];
|
|
6256
6280
|
}
|
|
6257
|
-
function
|
|
6281
|
+
function Ah(e) {
|
|
6258
6282
|
return typeof e == "number" && Number.isFinite(e);
|
|
6259
6283
|
}
|
|
6260
|
-
function
|
|
6284
|
+
function Rh(e, t) {
|
|
6261
6285
|
if (!Number.isFinite(t.value)) return null;
|
|
6262
6286
|
const n = t.side === "upper" ? e - t.value : t.value - e;
|
|
6263
6287
|
return n > 0 ? { limit: t, excess: n } : null;
|
|
6264
6288
|
}
|
|
6265
|
-
function
|
|
6289
|
+
function Fh(e, t) {
|
|
6266
6290
|
const n = Bn[e.limit.severity], o = Bn[t.limit.severity];
|
|
6267
6291
|
return n !== o ? n > o : e.excess > t.excess;
|
|
6268
6292
|
}
|
|
6269
|
-
function
|
|
6270
|
-
if (!
|
|
6271
|
-
const o = (t.limits ?? []).map((a) =>
|
|
6272
|
-
(a, l) => a === null ||
|
|
6293
|
+
function Lh(e, t = {}) {
|
|
6294
|
+
if (!Ah(e)) return { verdict: "unknown" };
|
|
6295
|
+
const o = (t.limits ?? []).map((a) => Rh(e, a)).filter((a) => a !== null).reduce(
|
|
6296
|
+
(a, l) => a === null || Fh(l, a) ? l : a,
|
|
6273
6297
|
null
|
|
6274
6298
|
), r = o === null ? { verdict: "ok" } : {
|
|
6275
6299
|
verdict: o.limit.severity,
|
|
@@ -6278,62 +6302,62 @@ function Rh(e, t = {}) {
|
|
|
6278
6302
|
}, s = t.target;
|
|
6279
6303
|
return s !== void 0 && Number.isFinite(s) && (r.deviation = e - s), r;
|
|
6280
6304
|
}
|
|
6281
|
-
function
|
|
6305
|
+
function Yo(e) {
|
|
6282
6306
|
if (e == null) return null;
|
|
6283
6307
|
const t = e instanceof Date ? e.getTime() : e;
|
|
6284
6308
|
return Number.isFinite(t) ? t : null;
|
|
6285
6309
|
}
|
|
6286
|
-
const
|
|
6287
|
-
function
|
|
6288
|
-
const n =
|
|
6310
|
+
const Xo = 6e4, Ph = 1e3, Eh = 10;
|
|
6311
|
+
function Kr(e, t) {
|
|
6312
|
+
const n = Yo(e), o = Yo(t);
|
|
6289
6313
|
return n === null || o === null ? null : Math.max(0, o - n);
|
|
6290
6314
|
}
|
|
6291
|
-
function
|
|
6292
|
-
const o =
|
|
6315
|
+
function Ih(e, t, n) {
|
|
6316
|
+
const o = Kr(e, t);
|
|
6293
6317
|
return o === null || o >= n.lost ? "lost" : o >= n.stale ? "stale" : "fresh";
|
|
6294
6318
|
}
|
|
6295
|
-
function
|
|
6319
|
+
function zh(e) {
|
|
6296
6320
|
const t = [e.stale, e.lost].filter(
|
|
6297
6321
|
(r) => Number.isFinite(r) && r > 0
|
|
6298
6322
|
);
|
|
6299
|
-
if (t.length === 0) return
|
|
6300
|
-
const n = Math.min(...t), o = Math.round(n /
|
|
6301
|
-
return Math.min(
|
|
6323
|
+
if (t.length === 0) return Xo;
|
|
6324
|
+
const n = Math.min(...t), o = Math.round(n / Eh);
|
|
6325
|
+
return Math.min(Xo, Math.max(Ph, o));
|
|
6302
6326
|
}
|
|
6303
|
-
function
|
|
6304
|
-
const n = e instanceof Date ? e.getTime() : e, o = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: r, lost: s } = t, a =
|
|
6327
|
+
function Oh(e, t) {
|
|
6328
|
+
const n = e instanceof Date ? e.getTime() : e, o = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: r, lost: s } = t, a = zh({ stale: r, lost: s }), [l, d] = E(() => Date.now());
|
|
6305
6329
|
return J(() => {
|
|
6306
6330
|
const c = setInterval(() => d(Date.now()), a);
|
|
6307
6331
|
return () => clearInterval(c);
|
|
6308
6332
|
}, [a]), ue(
|
|
6309
6333
|
() => ({
|
|
6310
|
-
freshness:
|
|
6334
|
+
freshness: Ih(o, l, {
|
|
6311
6335
|
stale: r,
|
|
6312
6336
|
lost: s
|
|
6313
6337
|
}),
|
|
6314
|
-
age:
|
|
6338
|
+
age: Kr(o, l),
|
|
6315
6339
|
now: l
|
|
6316
6340
|
}),
|
|
6317
6341
|
[o, l, r, s]
|
|
6318
6342
|
);
|
|
6319
6343
|
}
|
|
6320
|
-
const
|
|
6321
|
-
stat:
|
|
6322
|
-
body:
|
|
6323
|
-
figures:
|
|
6324
|
-
label:
|
|
6325
|
-
valueRow:
|
|
6326
|
-
value:
|
|
6327
|
-
unit:
|
|
6328
|
-
verdict:
|
|
6329
|
-
deviation:
|
|
6330
|
-
history:
|
|
6331
|
-
asOf:
|
|
6332
|
-
statusLine:
|
|
6333
|
-
quality:
|
|
6334
|
-
age:
|
|
6344
|
+
const Bh = "_stat_dhe6e_9 _text_18806_22", qh = "_body_dhe6e_20", Hh = "_figures_dhe6e_27", Wh = "_label_dhe6e_34", Kh = "_valueRow_dhe6e_41", Uh = "_value_dhe6e_41", jh = "_unit_dhe6e_60", Gh = "_verdict_dhe6e_67", Vh = "_deviation_dhe6e_104", Yh = "_history_dhe6e_109", Xh = "_asOf_dhe6e_132", Qh = "_statusLine_dhe6e_151", Zh = "_quality_dhe6e_157", Jh = "_age_dhe6e_178", Be = {
|
|
6345
|
+
stat: Bh,
|
|
6346
|
+
body: qh,
|
|
6347
|
+
figures: Hh,
|
|
6348
|
+
label: Wh,
|
|
6349
|
+
valueRow: Kh,
|
|
6350
|
+
value: Uh,
|
|
6351
|
+
unit: jh,
|
|
6352
|
+
verdict: Gh,
|
|
6353
|
+
deviation: Vh,
|
|
6354
|
+
history: Yh,
|
|
6355
|
+
asOf: Xh,
|
|
6356
|
+
statusLine: Qh,
|
|
6357
|
+
quality: Zh,
|
|
6358
|
+
age: Jh
|
|
6335
6359
|
};
|
|
6336
|
-
function
|
|
6360
|
+
function em(e, t) {
|
|
6337
6361
|
switch (e) {
|
|
6338
6362
|
case "alarm":
|
|
6339
6363
|
return t.verdictAlarm;
|
|
@@ -6345,23 +6369,23 @@ function Zh(e, t) {
|
|
|
6345
6369
|
return t.verdictOk;
|
|
6346
6370
|
}
|
|
6347
6371
|
}
|
|
6348
|
-
function
|
|
6372
|
+
function tm(e, t, n, o) {
|
|
6349
6373
|
if (e === void 0) return null;
|
|
6350
6374
|
const r = n.number(Math.abs(e), t);
|
|
6351
6375
|
return e === 0 ? o.deviationOnTarget : e > 0 ? o.deviationAbove(r) : o.deviationBelow(r);
|
|
6352
6376
|
}
|
|
6353
|
-
function
|
|
6377
|
+
function Qo({
|
|
6354
6378
|
asOf: e,
|
|
6355
6379
|
ages: t
|
|
6356
6380
|
}) {
|
|
6357
|
-
const n = Ue(), o = fe(), r =
|
|
6381
|
+
const n = Ue(), o = fe(), r = Oh(e, t), s = r.freshness === "lost" ? o.freshnessDisconnected : r.freshness === "stale" ? o.freshnessStale : o.freshnessFresh, a = r.age;
|
|
6358
6382
|
return /* @__PURE__ */ N("span", { className: Be.asOf, "data-freshness": r.freshness, children: [
|
|
6359
6383
|
s,
|
|
6360
6384
|
a !== null && /* @__PURE__ */ i("span", { className: Be.age, children: n.relative(a) })
|
|
6361
6385
|
] });
|
|
6362
6386
|
}
|
|
6363
|
-
function
|
|
6364
|
-
const m = Ue(), u = fe(), _ =
|
|
6387
|
+
function q_({ ref: e, label: t, value: n, unit: o, decimals: r, limits: s, history: a, asOf: l, ages: d, quality: c, className: f, ...h }) {
|
|
6388
|
+
const m = Ue(), u = fe(), _ = Lh(n, s), p = _.verdict, g = em(p, u), b = p !== "unknown", v = (s?.limits?.length ?? 0) > 0 || !b, C = tm(_.deviation, r, m, u), D = b ? m.number(n, r) : u.statAbsentValue, y = c === "bad" ? u.qualityBad : c === "uncertain" ? u.qualityUncertain : null, S = l !== void 0 && d !== void 0, O = `${t}: ${b ? `${D}${o ? ` ${o}` : ""}` : g}${b && v && p !== "ok" ? `, ${g}` : ""}${y ? `, ${y}` : ""}`, A = y && /* @__PURE__ */ i("span", { className: Be.quality, "data-quality": c, children: y });
|
|
6365
6389
|
return /* @__PURE__ */ i(
|
|
6366
6390
|
"div",
|
|
6367
6391
|
{
|
|
@@ -6382,17 +6406,17 @@ function O_({ ref: e, label: t, value: n, unit: o, decimals: r, limits: s, histo
|
|
|
6382
6406
|
C !== null && b && /* @__PURE__ */ i("span", { className: Be.deviation, children: C }),
|
|
6383
6407
|
S && A ? /* @__PURE__ */ N("span", { className: Be.statusLine, children: [
|
|
6384
6408
|
A,
|
|
6385
|
-
/* @__PURE__ */ i(
|
|
6386
|
-
] }) : S ? /* @__PURE__ */ i(
|
|
6409
|
+
/* @__PURE__ */ i(Qo, { asOf: l ?? null, ages: d })
|
|
6410
|
+
] }) : S ? /* @__PURE__ */ i(Qo, { asOf: l ?? null, ages: d }) : A
|
|
6387
6411
|
] }),
|
|
6388
|
-
a !== void 0 && a.length >= 2 && /* @__PURE__ */ i(
|
|
6412
|
+
a !== void 0 && a.length >= 2 && /* @__PURE__ */ i(_l, { data: a, width: "fill", className: Be.history, "aria-hidden": "true" })
|
|
6389
6413
|
] })
|
|
6390
6414
|
}
|
|
6391
6415
|
);
|
|
6392
6416
|
}
|
|
6393
|
-
const
|
|
6394
|
-
function
|
|
6395
|
-
const { handlers: t, touching: n } =
|
|
6417
|
+
const nm = { userSelect: "none", WebkitTouchCallout: "none" };
|
|
6418
|
+
function H_(e) {
|
|
6419
|
+
const { handlers: t, touching: n } = lr(e);
|
|
6396
6420
|
return {
|
|
6397
6421
|
...t,
|
|
6398
6422
|
onContextMenu: (o) => {
|
|
@@ -6404,10 +6428,10 @@ function B_(e) {
|
|
|
6404
6428
|
const r = o.currentTarget.getBoundingClientRect();
|
|
6405
6429
|
e({ x: r.left, y: r.bottom });
|
|
6406
6430
|
},
|
|
6407
|
-
style:
|
|
6431
|
+
style: nm
|
|
6408
6432
|
};
|
|
6409
6433
|
}
|
|
6410
|
-
function
|
|
6434
|
+
function W_({ open: e, onOpenChange: t, position: n, "aria-label": o, children: r }) {
|
|
6411
6435
|
const s = P(null), a = P(null);
|
|
6412
6436
|
Me(() => {
|
|
6413
6437
|
if (!e) return;
|
|
@@ -6445,7 +6469,7 @@ function q_({ open: e, onOpenChange: t, position: n, "aria-label": o, children:
|
|
|
6445
6469
|
{
|
|
6446
6470
|
ref: d,
|
|
6447
6471
|
className: Ht.content,
|
|
6448
|
-
onKeyDown: (f) =>
|
|
6472
|
+
onKeyDown: (f) => pr(f, l.current, c),
|
|
6449
6473
|
children: /* @__PURE__ */ i(eo, { value: { close: c }, children: r })
|
|
6450
6474
|
}
|
|
6451
6475
|
)
|
|
@@ -6453,17 +6477,17 @@ function q_({ open: e, onOpenChange: t, position: n, "aria-label": o, children:
|
|
|
6453
6477
|
)
|
|
6454
6478
|
] });
|
|
6455
6479
|
}
|
|
6456
|
-
const
|
|
6457
|
-
wrapper:
|
|
6458
|
-
sm:
|
|
6459
|
-
track:
|
|
6460
|
-
field:
|
|
6461
|
-
input:
|
|
6462
|
-
thumb:
|
|
6463
|
-
invalid:
|
|
6464
|
-
label:
|
|
6480
|
+
const om = "_wrapper_uanqi_8 _text_18806_22", rm = "_sm_uanqi_26", sm = "_track_uanqi_33", am = "_field_uanqi_40", im = "_input_uanqi_54", lm = "_thumb_uanqi_75", cm = "_invalid_uanqi_119", dm = "_label_uanqi_33", St = {
|
|
6481
|
+
wrapper: om,
|
|
6482
|
+
sm: rm,
|
|
6483
|
+
track: sm,
|
|
6484
|
+
field: am,
|
|
6485
|
+
input: im,
|
|
6486
|
+
thumb: lm,
|
|
6487
|
+
invalid: cm,
|
|
6488
|
+
label: dm
|
|
6465
6489
|
};
|
|
6466
|
-
function
|
|
6490
|
+
function K_({ ref: e, label: t, size: n, invalid: o, className: r, style: s, id: a, ...l }) {
|
|
6467
6491
|
const d = Pe(n), c = Ee(), f = a ?? c?.id, h = o ?? c?.invalid ?? !1;
|
|
6468
6492
|
return /* @__PURE__ */ N("label", { className: L(St.wrapper, d === "sm" && St.sm, c && St.field, r), style: s, htmlFor: f, children: [
|
|
6469
6493
|
/* @__PURE__ */ i(
|
|
@@ -6484,20 +6508,20 @@ function H_({ ref: e, label: t, size: n, invalid: o, className: r, style: s, id:
|
|
|
6484
6508
|
t && /* @__PURE__ */ i("span", { className: St.label, children: t })
|
|
6485
6509
|
] });
|
|
6486
6510
|
}
|
|
6487
|
-
const
|
|
6488
|
-
slider:
|
|
6489
|
-
control:
|
|
6490
|
-
range:
|
|
6491
|
-
marks:
|
|
6492
|
-
mark:
|
|
6493
|
-
markLabel:
|
|
6494
|
-
readout:
|
|
6495
|
-
}, fo = (e) => (String(e).split(".")[1] ?? "").length,
|
|
6511
|
+
const um = "_slider_14d78_12 _text_18806_22 _extent_18806_75", fm = "_control_14d78_21", hm = "_range_14d78_27", mm = "_marks_14d78_141", pm = "_mark_14d78_141", _m = "_markLabel_14d78_156", gm = "_readout_14d78_174", zt = {
|
|
6512
|
+
slider: um,
|
|
6513
|
+
control: fm,
|
|
6514
|
+
range: hm,
|
|
6515
|
+
marks: mm,
|
|
6516
|
+
mark: pm,
|
|
6517
|
+
markLabel: _m,
|
|
6518
|
+
readout: gm
|
|
6519
|
+
}, fo = (e) => (String(e).split(".")[1] ?? "").length, Ur = (e, t, n) => Number((e + Math.floor((t - e) / n + 1e-9) * n).toFixed(fo(n)));
|
|
6496
6520
|
function Gt(e, t, n, o) {
|
|
6497
6521
|
const r = Number((t + Math.round((e - t) / o) * o).toFixed(fo(o)));
|
|
6498
|
-
return Math.min(
|
|
6522
|
+
return Math.min(Ur(t, n, o), Math.max(t, r));
|
|
6499
6523
|
}
|
|
6500
|
-
function
|
|
6524
|
+
function bm(e, t, n, o, r) {
|
|
6501
6525
|
const s = Math.max(r, Math.round((o - n) / 10 / r) * r);
|
|
6502
6526
|
switch (e) {
|
|
6503
6527
|
case "ArrowRight":
|
|
@@ -6513,12 +6537,12 @@ function _m(e, t, n, o, r) {
|
|
|
6513
6537
|
case "Home":
|
|
6514
6538
|
return n;
|
|
6515
6539
|
case "End":
|
|
6516
|
-
return
|
|
6540
|
+
return Ur(n, o, r);
|
|
6517
6541
|
default:
|
|
6518
6542
|
return;
|
|
6519
6543
|
}
|
|
6520
6544
|
}
|
|
6521
|
-
function
|
|
6545
|
+
function U_({
|
|
6522
6546
|
ref: e,
|
|
6523
6547
|
value: t,
|
|
6524
6548
|
defaultValue: n,
|
|
@@ -6540,7 +6564,7 @@ function W_({
|
|
|
6540
6564
|
M !== D && (C || v(M), o?.(M));
|
|
6541
6565
|
}, $ = (M) => {
|
|
6542
6566
|
if (_?.(M), M.defaultPrevented || u) return;
|
|
6543
|
-
const K =
|
|
6567
|
+
const K = bm(M.key, D, r, s, a);
|
|
6544
6568
|
K !== void 0 && (M.preventDefault(), q(K));
|
|
6545
6569
|
};
|
|
6546
6570
|
return /* @__PURE__ */ N("div", { className: L(zt.slider, f), style: h, children: [
|
|
@@ -6575,14 +6599,14 @@ function W_({
|
|
|
6575
6599
|
c && /* @__PURE__ */ i("span", { className: zt.readout, style: { "--_room": O }, "aria-hidden": "true", children: S })
|
|
6576
6600
|
] });
|
|
6577
6601
|
}
|
|
6578
|
-
const
|
|
6579
|
-
progress:
|
|
6580
|
-
track:
|
|
6581
|
-
fill:
|
|
6582
|
-
sweep:
|
|
6583
|
-
label:
|
|
6602
|
+
const vm = "_progress_12jrb_10 _text_18806_22", ym = "_track_12jrb_19", wm = "_fill_12jrb_28", km = "_sweep_12jrb_40", Nm = "_label_12jrb_62", tn = {
|
|
6603
|
+
progress: vm,
|
|
6604
|
+
track: ym,
|
|
6605
|
+
fill: wm,
|
|
6606
|
+
sweep: km,
|
|
6607
|
+
label: Nm
|
|
6584
6608
|
};
|
|
6585
|
-
function
|
|
6609
|
+
function j_({ ref: e, value: t, label: n, valueText: o, showLabel: r = !1, className: s, ...a }) {
|
|
6586
6610
|
const l = Ue(), d = fe(), c = t !== void 0, f = c ? so(t) : 0;
|
|
6587
6611
|
return /* @__PURE__ */ N(
|
|
6588
6612
|
"div",
|
|
@@ -6594,7 +6618,7 @@ function K_({ ref: e, value: t, label: n, valueText: o, showLabel: r = !1, class
|
|
|
6594
6618
|
role: "progressbar",
|
|
6595
6619
|
"aria-valuemin": c ? 0 : void 0,
|
|
6596
6620
|
"aria-valuemax": c ? 100 : void 0,
|
|
6597
|
-
"aria-valuenow": c ?
|
|
6621
|
+
"aria-valuenow": c ? yr(f) : void 0,
|
|
6598
6622
|
"aria-valuetext": c ? o : void 0,
|
|
6599
6623
|
"data-indeterminate": c ? void 0 : "",
|
|
6600
6624
|
children: [
|
|
@@ -6610,20 +6634,20 @@ function K_({ ref: e, value: t, label: n, valueText: o, showLabel: r = !1, class
|
|
|
6610
6634
|
}
|
|
6611
6635
|
);
|
|
6612
6636
|
}
|
|
6613
|
-
const
|
|
6614
|
-
accordion:
|
|
6615
|
-
item:
|
|
6616
|
-
heading:
|
|
6617
|
-
header:
|
|
6618
|
-
title:
|
|
6619
|
-
chevron:
|
|
6620
|
-
chevronOpen:
|
|
6621
|
-
collapse:
|
|
6622
|
-
collapsed:
|
|
6623
|
-
collapseInner:
|
|
6624
|
-
panel:
|
|
6625
|
-
},
|
|
6626
|
-
function
|
|
6637
|
+
const $m = "_accordion_13syu_8 _text_18806_22", xm = "_item_13syu_14", Cm = "_heading_13syu_18", Dm = "_header_13syu_25 _ring_18806_125", Sm = "_title_13syu_56", Mm = "_chevron_13syu_60", Tm = "_chevronOpen_13syu_66", Am = "_collapse_13syu_70", Rm = "_collapsed_13syu_76", Fm = "_collapseInner_13syu_80", Lm = "_panel_13syu_85", st = {
|
|
6638
|
+
accordion: $m,
|
|
6639
|
+
item: xm,
|
|
6640
|
+
heading: Cm,
|
|
6641
|
+
header: Dm,
|
|
6642
|
+
title: Sm,
|
|
6643
|
+
chevron: Mm,
|
|
6644
|
+
chevronOpen: Tm,
|
|
6645
|
+
collapse: Am,
|
|
6646
|
+
collapsed: Rm,
|
|
6647
|
+
collapseInner: Fm,
|
|
6648
|
+
panel: Lm
|
|
6649
|
+
}, jr = /* @__PURE__ */ nt(null);
|
|
6650
|
+
function G_({
|
|
6627
6651
|
ref: e,
|
|
6628
6652
|
type: t = "single",
|
|
6629
6653
|
value: n,
|
|
@@ -6652,10 +6676,10 @@ function U_({
|
|
|
6652
6676
|
}[g.key];
|
|
6653
6677
|
D && (g.preventDefault(), D.focus());
|
|
6654
6678
|
};
|
|
6655
|
-
return /* @__PURE__ */ i("div", { ref: e, className: L(st.accordion, a), ...c, "data-accordion": "", onKeyDown: p, children: /* @__PURE__ */ i(
|
|
6679
|
+
return /* @__PURE__ */ i("div", { ref: e, className: L(st.accordion, a), ...c, "data-accordion": "", onKeyDown: p, children: /* @__PURE__ */ i(jr, { value: { open: u, toggle: _, headingLevel: s }, children: d }) });
|
|
6656
6680
|
}
|
|
6657
|
-
function
|
|
6658
|
-
const l = Ke(
|
|
6681
|
+
function V_({ ref: e, value: t, title: n, disabled: o = !1, className: r, children: s, ...a }) {
|
|
6682
|
+
const l = Ke(jr), d = ke(), c = `${d}-header`, f = `${d}-panel`, h = l?.open.includes(t) ?? !1, m = `h${l?.headingLevel ?? 3}`;
|
|
6659
6683
|
return /* @__PURE__ */ N("div", { ref: e, className: L(st.item, r), ...a, children: [
|
|
6660
6684
|
/* @__PURE__ */ i(m, { className: st.heading, children: /* @__PURE__ */ N(
|
|
6661
6685
|
"button",
|
|
@@ -6677,7 +6701,7 @@ function j_({ ref: e, value: t, title: n, disabled: o = !1, className: r, childr
|
|
|
6677
6701
|
/* @__PURE__ */ i("div", { className: L(st.collapse, !h && st.collapsed), children: /* @__PURE__ */ i("div", { className: st.collapseInner, inert: !h, children: /* @__PURE__ */ i("div", { id: f, role: "region", "aria-labelledby": c, className: st.panel, children: s }) }) })
|
|
6678
6702
|
] });
|
|
6679
6703
|
}
|
|
6680
|
-
function
|
|
6704
|
+
function Pm(e, t, n, o) {
|
|
6681
6705
|
const r = e.length, s = (a) => e.slice(a).reduce((l, d) => l + d, 0);
|
|
6682
6706
|
if (r <= 2 || s(0) + (r - 1) * n <= o) return 0;
|
|
6683
6707
|
for (let a = 1; a < r - 2; a++) {
|
|
@@ -6686,31 +6710,31 @@ function Fm(e, t, n, o) {
|
|
|
6686
6710
|
}
|
|
6687
6711
|
return r - 2;
|
|
6688
6712
|
}
|
|
6689
|
-
const
|
|
6690
|
-
breadcrumb:
|
|
6691
|
-
list:
|
|
6692
|
-
item:
|
|
6693
|
-
lastItem:
|
|
6694
|
-
link:
|
|
6695
|
-
text:
|
|
6696
|
-
current:
|
|
6697
|
-
more:
|
|
6698
|
-
separator:
|
|
6699
|
-
measure:
|
|
6700
|
-
}, ln = /* @__PURE__ */ i(Zt, { size: 8, className: Ce.separator }),
|
|
6701
|
-
function
|
|
6713
|
+
const Em = "_breadcrumb_18s1i_9 _text_18806_22", Im = "_list_18s1i_15", zm = "_item_18s1i_27", Om = "_lastItem_18s1i_35", Bm = "_link_18s1i_5 _ring_18806_125", qm = "_text_18s1i_5", Hm = "_current_18s1i_61", Wm = "_more_18s1i_72 _ring_18806_125", Km = "_separator_18s1i_100", Um = "_measure_18s1i_108", Ce = {
|
|
6714
|
+
breadcrumb: Em,
|
|
6715
|
+
list: Im,
|
|
6716
|
+
item: zm,
|
|
6717
|
+
lastItem: Om,
|
|
6718
|
+
link: Bm,
|
|
6719
|
+
text: qm,
|
|
6720
|
+
current: Hm,
|
|
6721
|
+
more: Wm,
|
|
6722
|
+
separator: Km,
|
|
6723
|
+
measure: Um
|
|
6724
|
+
}, ln = /* @__PURE__ */ i(Zt, { size: 8, className: Ce.separator }), jm = ["http:", "https:", "mailto:", "tel:"];
|
|
6725
|
+
function Gm(e) {
|
|
6702
6726
|
try {
|
|
6703
|
-
return
|
|
6727
|
+
return jm.includes(new URL(e, document.baseURI).protocol);
|
|
6704
6728
|
} catch {
|
|
6705
6729
|
return !1;
|
|
6706
6730
|
}
|
|
6707
6731
|
}
|
|
6708
|
-
function
|
|
6732
|
+
function Y_({ ref: e, items: t, className: n, ...o }) {
|
|
6709
6733
|
const r = fe(), s = P(null), a = P(null), [l, d] = E(0), c = ne(() => {
|
|
6710
6734
|
const _ = s.current, p = a.current;
|
|
6711
6735
|
if (!_ || !p) return;
|
|
6712
6736
|
const g = Array.from(p.querySelectorAll("[data-measure-level]")).map((v) => v.offsetWidth), b = p.querySelector("[data-measure-more]")?.offsetWidth ?? 0, w = Number.parseFloat(getComputedStyle(p).columnGap) || 0;
|
|
6713
|
-
d(
|
|
6737
|
+
d(Pm(g, b, w, _.clientWidth));
|
|
6714
6738
|
}, []);
|
|
6715
6739
|
Me(() => c()), J(() => {
|
|
6716
6740
|
const _ = s.current;
|
|
@@ -6719,7 +6743,7 @@ function G_({ ref: e, items: t, className: n, ...o }) {
|
|
|
6719
6743
|
return p.observe(_), () => p.disconnect();
|
|
6720
6744
|
}, [c]);
|
|
6721
6745
|
const f = t.length - 1, h = t.slice(1, 1 + l), m = (_) => {
|
|
6722
|
-
_.onSelect ? _.onSelect() : _.href &&
|
|
6746
|
+
_.onSelect ? _.onSelect() : _.href && Gm(_.href) && window.location.assign(_.href);
|
|
6723
6747
|
}, u = (_, p) => {
|
|
6724
6748
|
const g = p === f ? "page" : void 0;
|
|
6725
6749
|
return _.href !== void 0 ? /* @__PURE__ */ i(
|
|
@@ -6738,10 +6762,10 @@ function G_({ ref: e, items: t, className: n, ...o }) {
|
|
|
6738
6762
|
return /* @__PURE__ */ N("nav", { ref: Re(s, e), "aria-label": r.breadcrumb, className: L(Ce.breadcrumb, n), ...o, children: [
|
|
6739
6763
|
/* @__PURE__ */ i("ol", { className: Ce.list, children: t.map((_, p) => p > 0 && p <= l ? p > 1 ? null : /* @__PURE__ */ N("li", { className: Ce.item, children: [
|
|
6740
6764
|
/* @__PURE__ */ i(
|
|
6741
|
-
|
|
6765
|
+
_r,
|
|
6742
6766
|
{
|
|
6743
6767
|
trigger: /* @__PURE__ */ i("button", { type: "button", className: Ce.more, "aria-label": r.breadcrumbFolded, children: "…" }),
|
|
6744
|
-
children: h.map((g, b) => /* @__PURE__ */ i(
|
|
6768
|
+
children: h.map((g, b) => /* @__PURE__ */ i(_a, { disabled: !g.href && !g.onSelect, onSelect: () => m(g), children: g.label }, b))
|
|
6745
6769
|
}
|
|
6746
6770
|
),
|
|
6747
6771
|
ln
|
|
@@ -6761,14 +6785,14 @@ function G_({ ref: e, items: t, className: n, ...o }) {
|
|
|
6761
6785
|
] })
|
|
6762
6786
|
] });
|
|
6763
6787
|
}
|
|
6764
|
-
const
|
|
6765
|
-
splitter:
|
|
6766
|
-
vertical:
|
|
6767
|
-
pane:
|
|
6768
|
-
separator:
|
|
6769
|
-
grip:
|
|
6788
|
+
const Vm = "_splitter_1qwga_10", Ym = "_vertical_1qwga_17", Xm = "_pane_1qwga_22 _scroll_18806_96", Qm = "_separator_1qwga_29", Zm = "_grip_1qwga_68", Ut = {
|
|
6789
|
+
splitter: Vm,
|
|
6790
|
+
vertical: Ym,
|
|
6791
|
+
pane: Xm,
|
|
6792
|
+
separator: Qm,
|
|
6793
|
+
grip: Zm
|
|
6770
6794
|
};
|
|
6771
|
-
function
|
|
6795
|
+
function X_({
|
|
6772
6796
|
ref: e,
|
|
6773
6797
|
orientation: t = "horizontal",
|
|
6774
6798
|
value: n,
|
|
@@ -6841,7 +6865,7 @@ function V_({
|
|
|
6841
6865
|
onPointerCancel: () => {
|
|
6842
6866
|
O.current = null;
|
|
6843
6867
|
},
|
|
6844
|
-
children: /* @__PURE__ */ i(
|
|
6868
|
+
children: /* @__PURE__ */ i(gs, { className: Ut.grip })
|
|
6845
6869
|
}
|
|
6846
6870
|
),
|
|
6847
6871
|
/* @__PURE__ */ i("div", { className: Ut.pane, inert: y >= 100, children: m[1] })
|
|
@@ -6849,32 +6873,32 @@ function V_({
|
|
|
6849
6873
|
}
|
|
6850
6874
|
);
|
|
6851
6875
|
}
|
|
6852
|
-
function
|
|
6876
|
+
function Jm(e, t, n) {
|
|
6853
6877
|
return e <= 0 || t <= e ? "row" : n <= e ? "stacked" : "column";
|
|
6854
6878
|
}
|
|
6855
|
-
function
|
|
6879
|
+
function ep(e, t) {
|
|
6856
6880
|
const n = e.length;
|
|
6857
6881
|
if (n === 0) return 0;
|
|
6858
6882
|
const o = e[n - 1];
|
|
6859
6883
|
return n === 1 ? o : (n - 1) * Math.max(...e.slice(0, -1)) + o + (n - 1) * t;
|
|
6860
6884
|
}
|
|
6861
|
-
function
|
|
6885
|
+
function tp(e, t) {
|
|
6862
6886
|
return e.length === 0 ? 0 : e.length * Math.max(...e) + (e.length - 1) * t;
|
|
6863
6887
|
}
|
|
6864
|
-
const
|
|
6865
|
-
stepper:
|
|
6866
|
-
step:
|
|
6867
|
-
done:
|
|
6868
|
-
marker:
|
|
6869
|
-
current:
|
|
6870
|
-
failed:
|
|
6871
|
-
text:
|
|
6872
|
-
label:
|
|
6873
|
-
description:
|
|
6874
|
-
upcoming:
|
|
6875
|
-
vertical:
|
|
6876
|
-
},
|
|
6877
|
-
function
|
|
6888
|
+
const np = "_stepper_1oo0f_11 _text_18806_22", op = "_step_1oo0f_11", rp = "_done_1oo0f_43", sp = "_marker_1oo0f_47", ap = "_current_1oo0f_74", ip = "_failed_1oo0f_79", lp = "_text_1oo0f_85", cp = "_label_1oo0f_95", dp = "_description_1oo0f_96", up = "_upcoming_1oo0f_110", fp = "_vertical_1oo0f_122", ot = {
|
|
6889
|
+
stepper: np,
|
|
6890
|
+
step: op,
|
|
6891
|
+
done: rp,
|
|
6892
|
+
marker: sp,
|
|
6893
|
+
current: ap,
|
|
6894
|
+
failed: ip,
|
|
6895
|
+
text: lp,
|
|
6896
|
+
label: cp,
|
|
6897
|
+
description: dp,
|
|
6898
|
+
upcoming: up,
|
|
6899
|
+
vertical: fp
|
|
6900
|
+
}, hp = (e, t, n) => e.failed ? "failed" : t < n ? "done" : t === n ? "current" : "upcoming";
|
|
6901
|
+
function Q_({ ref: e, steps: t, current: n, orientation: o = "horizontal", className: r, ...s }) {
|
|
6878
6902
|
const a = fe(), l = P(null), [d, c] = E("row"), f = ne(() => {
|
|
6879
6903
|
const m = l.current;
|
|
6880
6904
|
if (!m || o === "vertical" || m.clientWidth <= 0) return;
|
|
@@ -6885,18 +6909,18 @@ function Y_({ ref: e, steps: t, current: n, orientation: o = "horizontal", class
|
|
|
6885
6909
|
const _ = Number.parseFloat(getComputedStyle(u).columnGap) || 0, p = Array.from(u.children), g = Array.from(u.querySelectorAll(`.${ot.description}`));
|
|
6886
6910
|
for (const v of g) v.style.display = "none";
|
|
6887
6911
|
for (const v of p) v.style.cssText = "flex:none;width:max-content";
|
|
6888
|
-
const b =
|
|
6912
|
+
const b = ep(p.map((v) => v.getBoundingClientRect().width), _);
|
|
6889
6913
|
for (const v of g) v.style.display = "";
|
|
6890
6914
|
u.setAttribute("data-fit", "stacked");
|
|
6891
6915
|
for (const v of p) v.style.width = "min-content";
|
|
6892
|
-
const w =
|
|
6916
|
+
const w = tp(
|
|
6893
6917
|
p.map((v) => {
|
|
6894
6918
|
const C = v.querySelector(`.${ot.text}`);
|
|
6895
6919
|
return C && (C.style.width = "min-content"), Math.max(v.getBoundingClientRect().width, C?.getBoundingClientRect().width ?? 0);
|
|
6896
6920
|
}),
|
|
6897
6921
|
_
|
|
6898
6922
|
);
|
|
6899
|
-
u.remove(), c(
|
|
6923
|
+
u.remove(), c(Jm(m.clientWidth, b, w));
|
|
6900
6924
|
}, [o]);
|
|
6901
6925
|
Me(() => f()), J(() => {
|
|
6902
6926
|
const m = l.current;
|
|
@@ -6923,7 +6947,7 @@ function Y_({ ref: e, steps: t, current: n, orientation: o = "horizontal", class
|
|
|
6923
6947
|
"data-orientation": o,
|
|
6924
6948
|
"data-fit": o === "vertical" ? void 0 : d,
|
|
6925
6949
|
children: t.map((m, u) => {
|
|
6926
|
-
const _ =
|
|
6950
|
+
const _ = hp(m, u, n), p = h[_];
|
|
6927
6951
|
return /* @__PURE__ */ N(
|
|
6928
6952
|
"li",
|
|
6929
6953
|
{
|
|
@@ -6963,7 +6987,7 @@ function Y_({ ref: e, steps: t, current: n, orientation: o = "horizontal", class
|
|
|
6963
6987
|
}
|
|
6964
6988
|
);
|
|
6965
6989
|
}
|
|
6966
|
-
function
|
|
6990
|
+
function mp(e, t) {
|
|
6967
6991
|
const n = (t ?? "").split(",").map((s) => s.trim().toLowerCase()).filter(Boolean);
|
|
6968
6992
|
if (n.length === 0) return !0;
|
|
6969
6993
|
const o = e.name.toLowerCase(), r = e.type.toLowerCase();
|
|
@@ -6971,23 +6995,23 @@ function fp(e, t) {
|
|
|
6971
6995
|
(s) => s.startsWith(".") ? o.endsWith(s) : s.endsWith("/*") ? r.startsWith(s.slice(0, -1)) : r === s
|
|
6972
6996
|
);
|
|
6973
6997
|
}
|
|
6974
|
-
const
|
|
6975
|
-
zone:
|
|
6976
|
-
dragging:
|
|
6977
|
-
invalidZone:
|
|
6978
|
-
key:
|
|
6979
|
-
input:
|
|
6980
|
-
face:
|
|
6981
|
-
invalid:
|
|
6982
|
-
hint:
|
|
6983
|
-
list:
|
|
6984
|
-
file:
|
|
6985
|
-
name:
|
|
6986
|
-
size:
|
|
6987
|
-
remove:
|
|
6988
|
-
rejected:
|
|
6989
|
-
},
|
|
6990
|
-
function
|
|
6998
|
+
const pp = "_zone_rwoao_13 _text_18806_22 _extent_18806_75", _p = "_dragging_rwoao_29", gp = "_invalidZone_rwoao_36", bp = "_key_rwoao_40", vp = "_input_rwoao_45", yp = "_face_rwoao_55", wp = "_invalid_rwoao_36", kp = "_hint_rwoao_104", Np = "_list_rwoao_112", $p = "_file_rwoao_123", xp = "_name_rwoao_132", Cp = "_size_rwoao_139", Dp = "_remove_rwoao_148 _ring_18806_125", Sp = "_rejected_rwoao_177", Oe = {
|
|
6999
|
+
zone: pp,
|
|
7000
|
+
dragging: _p,
|
|
7001
|
+
invalidZone: gp,
|
|
7002
|
+
key: bp,
|
|
7003
|
+
input: vp,
|
|
7004
|
+
face: yp,
|
|
7005
|
+
invalid: wp,
|
|
7006
|
+
hint: kp,
|
|
7007
|
+
list: Np,
|
|
7008
|
+
file: $p,
|
|
7009
|
+
name: xp,
|
|
7010
|
+
size: Cp,
|
|
7011
|
+
remove: Dp,
|
|
7012
|
+
rejected: Sp
|
|
7013
|
+
}, Mp = (e, t) => e < 1e6 ? `${t.number(Math.max(e > 0 ? 1 : 0, Math.round(e / 1e3)), 0)} kB` : `${t.number(e / 1e6, 1)} MB`;
|
|
7014
|
+
function Z_({ ref: e, value: t, onChange: n, invalid: o, accept: r, multiple: s = !1, disabled: a = !1, className: l, style: d, id: c, ...f }) {
|
|
6991
7015
|
const h = fe(), m = Ue(), u = Ee(), _ = P(null), [p, g] = E([]), [b, w] = E([]), [v, C] = E(!1), D = t !== void 0, y = D ? t : p, S = o ?? u?.invalid ?? !1;
|
|
6992
7016
|
J(() => {
|
|
6993
7017
|
const M = _.current;
|
|
@@ -7001,7 +7025,7 @@ function X_({ ref: e, value: t, onChange: n, invalid: o, accept: r, multiple: s
|
|
|
7001
7025
|
const O = (M) => {
|
|
7002
7026
|
D || g(M), n?.(M);
|
|
7003
7027
|
}, A = (M) => {
|
|
7004
|
-
const K = M.filter((k) =>
|
|
7028
|
+
const K = M.filter((k) => mp(k, r)), X = M.filter((k) => !K.includes(k)).map((k) => k.name);
|
|
7005
7029
|
w(X), X.length > 0 && at(X.map((k) => h.fileNotAccepted(k)).join(". "), _.current), O(s ? K : K.slice(0, 1));
|
|
7006
7030
|
}, q = (M) => Array.from(M.dataTransfer?.types ?? []).includes("Files"), $ = s ? h.chooseFiles : h.chooseFile;
|
|
7007
7031
|
return /* @__PURE__ */ N(
|
|
@@ -7048,7 +7072,7 @@ function X_({ ref: e, value: t, onChange: n, invalid: o, accept: r, multiple: s
|
|
|
7048
7072
|
/* @__PURE__ */ i("span", { className: Oe.hint, children: s ? h.dropFiles : h.dropFile }),
|
|
7049
7073
|
y.length > 0 && /* @__PURE__ */ i("ul", { className: Oe.list, children: y.map((M, K) => /* @__PURE__ */ N("li", { className: Oe.file, children: [
|
|
7050
7074
|
/* @__PURE__ */ i("span", { className: Oe.name, children: M.name }),
|
|
7051
|
-
/* @__PURE__ */ i("span", { className: Oe.size, children:
|
|
7075
|
+
/* @__PURE__ */ i("span", { className: Oe.size, children: Mp(M.size, m) }),
|
|
7052
7076
|
/* @__PURE__ */ i(
|
|
7053
7077
|
"button",
|
|
7054
7078
|
{
|
|
@@ -7068,19 +7092,19 @@ function X_({ ref: e, value: t, onChange: n, invalid: o, accept: r, multiple: s
|
|
|
7068
7092
|
}
|
|
7069
7093
|
);
|
|
7070
7094
|
}
|
|
7071
|
-
const
|
|
7072
|
-
control:
|
|
7073
|
-
fill:
|
|
7074
|
-
segment:
|
|
7075
|
-
invalid:
|
|
7076
|
-
input:
|
|
7077
|
-
icon:
|
|
7078
|
-
label:
|
|
7079
|
-
disabled:
|
|
7080
|
-
sm:
|
|
7081
|
-
inset:
|
|
7095
|
+
const Tp = "_control_dii28_13 _text_18806_22", Ap = "_fill_dii28_33", Rp = "_segment_dii28_38", Fp = "_invalid_dii28_44", Lp = "_input_dii28_91", Pp = "_icon_dii28_108", Ep = "_label_dii28_119", Ip = "_disabled_dii28_156", zp = "_sm_dii28_217", Op = "_inset_dii28_172", rt = {
|
|
7096
|
+
control: Tp,
|
|
7097
|
+
fill: Ap,
|
|
7098
|
+
segment: Rp,
|
|
7099
|
+
invalid: Fp,
|
|
7100
|
+
input: Lp,
|
|
7101
|
+
icon: Pp,
|
|
7102
|
+
label: Ep,
|
|
7103
|
+
disabled: Ip,
|
|
7104
|
+
sm: zp,
|
|
7105
|
+
inset: Op
|
|
7082
7106
|
};
|
|
7083
|
-
function
|
|
7107
|
+
function J_({
|
|
7084
7108
|
ref: e,
|
|
7085
7109
|
options: t,
|
|
7086
7110
|
value: n,
|
|
@@ -7095,7 +7119,7 @@ function Q_({
|
|
|
7095
7119
|
onKeyDown: h,
|
|
7096
7120
|
...m
|
|
7097
7121
|
}) {
|
|
7098
|
-
const u = Pe(s), _ = Ee(), p =
|
|
7122
|
+
const u = Pe(s), _ = Ee(), p = Lr({
|
|
7099
7123
|
options: t,
|
|
7100
7124
|
value: n,
|
|
7101
7125
|
defaultValue: o,
|
|
@@ -7139,125 +7163,125 @@ function Q_({
|
|
|
7139
7163
|
);
|
|
7140
7164
|
}
|
|
7141
7165
|
export {
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7166
|
+
G_ as Accordion,
|
|
7167
|
+
V_ as AccordionItem,
|
|
7168
|
+
Gp as Alert,
|
|
7145
7169
|
Zt as AngleGlyph,
|
|
7146
|
-
|
|
7147
|
-
|
|
7170
|
+
Vp as Badge,
|
|
7171
|
+
Y_ as Breadcrumb,
|
|
7148
7172
|
Ne as Button,
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7173
|
+
wa as ButtonGroup,
|
|
7174
|
+
ar as CalendarGlyph,
|
|
7175
|
+
t_ as Card,
|
|
7176
|
+
o_ as CardBody,
|
|
7177
|
+
n_ as CardHeader,
|
|
7154
7178
|
un as Checkbox,
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7179
|
+
ir as ClockGlyph,
|
|
7180
|
+
a_ as Combobox,
|
|
7181
|
+
r_ as CommandPalette,
|
|
7182
|
+
w_ as ConfirmDialog,
|
|
7183
|
+
W_ as ContextMenu,
|
|
7184
|
+
xs as ControlSizeProvider,
|
|
7161
7185
|
Xe as CrossGlyph,
|
|
7162
7186
|
qn as DEFAULT_FORMATS,
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7187
|
+
nr as DEFAULT_LANGUAGE,
|
|
7188
|
+
u_ as DEFAULT_PRESETS,
|
|
7189
|
+
tr as DEFAULT_SEPARATORS,
|
|
7166
7190
|
Bt as DEFAULT_WORDING,
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7191
|
+
c_ as DatePicker,
|
|
7192
|
+
f_ as DateRangePicker,
|
|
7193
|
+
d_ as DateTimePicker,
|
|
7194
|
+
h_ as DateTimeRangePicker,
|
|
7195
|
+
m_ as Divider,
|
|
7196
|
+
v_ as Drawer,
|
|
7197
|
+
p_ as EmptyState,
|
|
7198
|
+
Z_ as FileInput,
|
|
7199
|
+
Zp as FormField,
|
|
7200
|
+
aa as FormFieldBoundary,
|
|
7201
|
+
g_ as Grid,
|
|
7202
|
+
Up as GridGlyph,
|
|
7203
|
+
gs as GripGlyph,
|
|
7204
|
+
z_ as Heading,
|
|
7181
7205
|
dn as IconButton,
|
|
7182
7206
|
ao as Input,
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7207
|
+
us as LanguageProvider,
|
|
7208
|
+
O_ as Link,
|
|
7209
|
+
jp as MeasureGlyph,
|
|
7210
|
+
_r as Menu,
|
|
7211
|
+
_a as MenuItem,
|
|
7212
|
+
Jp as MenuSeparator,
|
|
7213
|
+
i_ as Meter,
|
|
7214
|
+
_s as MinusGlyph,
|
|
7215
|
+
lu as Modal,
|
|
7216
|
+
y_ as ModalBody,
|
|
7217
|
+
du as ModalFooter,
|
|
7218
|
+
cu as ModalHeader,
|
|
7219
|
+
Kp as MoreGlyph,
|
|
7220
|
+
k_ as MultiSelect,
|
|
7221
|
+
b_ as NumberInput,
|
|
7222
|
+
ps as PlusGlyph,
|
|
7199
7223
|
Ft as Popover,
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7224
|
+
j_ as ProgressBar,
|
|
7225
|
+
N_ as RadioGroup,
|
|
7226
|
+
J_ as SegmentedControl,
|
|
7227
|
+
Ao as Select,
|
|
7228
|
+
$_ as Skeleton,
|
|
7229
|
+
U_ as Slider,
|
|
7230
|
+
_l as Sparkline,
|
|
7207
7231
|
Un as Spinner,
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7232
|
+
e_ as SplitButton,
|
|
7233
|
+
X_ as Splitter,
|
|
7234
|
+
__ as Stack,
|
|
7235
|
+
q_ as Stat,
|
|
7236
|
+
Q_ as Stepper,
|
|
7237
|
+
K_ as Switch,
|
|
7238
|
+
M_ as Tab,
|
|
7239
|
+
S_ as TabList,
|
|
7240
|
+
T_ as TabPanel,
|
|
7241
|
+
D_ as Tabs,
|
|
7242
|
+
C_ as Tag,
|
|
7243
|
+
x_ as TagGroup,
|
|
7244
|
+
I_ as Text,
|
|
7245
|
+
A_ as Textarea,
|
|
7246
|
+
F_ as ToastProvider,
|
|
7247
|
+
qs as Tooltip,
|
|
7248
|
+
P_ as TreeSearch,
|
|
7249
|
+
L_ as TreeView,
|
|
7250
|
+
Qp as UmrissProvider,
|
|
7227
7251
|
io as VisuallyHidden,
|
|
7228
|
-
|
|
7229
|
-
|
|
7252
|
+
Kr as age,
|
|
7253
|
+
kh as allBranches,
|
|
7230
7254
|
at as announce,
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7255
|
+
Lh as assess,
|
|
7256
|
+
zh as cadence,
|
|
7257
|
+
As as createLongPress,
|
|
7258
|
+
Nh as duplicateKey,
|
|
7259
|
+
Ih as freshness,
|
|
7260
|
+
cs as mergeLanguage,
|
|
7237
7261
|
pn as rangeDays,
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7262
|
+
Li as scrollForRow,
|
|
7263
|
+
Xr as separatorsOf,
|
|
7264
|
+
_h as treeModel,
|
|
7265
|
+
s_ as useCommandPaletteShortcut,
|
|
7266
|
+
H_ as useContextMenuTrigger,
|
|
7267
|
+
Xp as useDensity,
|
|
7268
|
+
Yp as useDensityFor,
|
|
7245
7269
|
Ee as useFormField,
|
|
7246
7270
|
Ue as useFormats,
|
|
7247
|
-
|
|
7271
|
+
Oh as useFreshness,
|
|
7248
7272
|
Rt as useLanguage,
|
|
7249
7273
|
Vn as usePortalTarget,
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7274
|
+
sr as useTimeZoneLabel,
|
|
7275
|
+
R_ as useToast,
|
|
7276
|
+
Fs as useToastConfig,
|
|
7277
|
+
E_ as useTree,
|
|
7254
7278
|
Gn as useUmriss,
|
|
7255
7279
|
oo as useVirtual,
|
|
7256
7280
|
fe as useWording,
|
|
7257
|
-
|
|
7281
|
+
B_ as verdictWeight,
|
|
7258
7282
|
$n as visibleWindow,
|
|
7259
|
-
|
|
7260
|
-
|
|
7283
|
+
ng as writeNumber,
|
|
7284
|
+
l_ as zoneDayStart,
|
|
7261
7285
|
wt as zoneFields,
|
|
7262
7286
|
sn as zoneInstant
|
|
7263
7287
|
};
|