@umriss-ui/core 0.17.0 → 0.19.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 +38 -0
- package/dist/core.css +1 -1
- package/dist/core.js +741 -736
- package/dist/de.d.ts +10 -0
- package/dist/index.d.ts +14 -0
- package/dist/wording/de.js +5 -0
- package/docs/llms-full.md +1 -1
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./core.css";
|
|
2
|
-
import { useMemo as pe, useContext as Ze, createContext as it, forwardRef as V, useState as W, useLayoutEffect as je, version as Or, useRef as
|
|
3
|
-
import { jsx as s, jsxs as
|
|
2
|
+
import { useMemo as pe, useContext as Ze, createContext as it, forwardRef as V, useState as W, useLayoutEffect as je, version as Or, useRef as q, useId as Le, useEffect as ae, cloneElement as Jn, useCallback as re, useImperativeHandle as mn } from "react";
|
|
3
|
+
import { jsx as s, jsxs as w, Fragment as Re } from "react/jsx-runtime";
|
|
4
4
|
import { D as rn, a as er, s as Hr } from "./formats-DrB9TuzO.js";
|
|
5
5
|
import { createPortal as pn } from "react-dom";
|
|
6
6
|
function R(...t) {
|
|
@@ -18,7 +18,7 @@ const zr = "_alert_1pgum_12 _text_ocaqi_23", Wr = "_content_1pgum_27", Gr = "_ti
|
|
|
18
18
|
warning: Xr,
|
|
19
19
|
danger: Zr,
|
|
20
20
|
close: Qr
|
|
21
|
-
},
|
|
21
|
+
}, wt = {
|
|
22
22
|
clearInput: "Clear input",
|
|
23
23
|
clearSelection: "Clear selection",
|
|
24
24
|
decreaseValue: "Decrease value",
|
|
@@ -185,6 +185,11 @@ const zr = "_alert_1pgum_12 _text_ocaqi_23", Wr = "_content_1pgum_27", Gr = "_ti
|
|
|
185
185
|
groupContinued: "continued",
|
|
186
186
|
foldGroup: (t, e) => `Fold ${t}, ${e}`,
|
|
187
187
|
unfoldGroup: (t, e) => `Unfold ${t}, ${e}`,
|
|
188
|
+
foldBranch: (t) => `Fold rows under ${t}`,
|
|
189
|
+
unfoldBranch: (t) => `Unfold rows under ${t}`,
|
|
190
|
+
levelColumn: "Level",
|
|
191
|
+
pathRow: "on the path to a match",
|
|
192
|
+
footerTopLevel: "Top level only",
|
|
188
193
|
selectGroup: (t) => `Select ${t}`,
|
|
189
194
|
calendarWeek: (t, e) => `Week ${t}, ${e}`,
|
|
190
195
|
entries: (t, e) => t === 1 ? "1 entry" : `${e} entries`,
|
|
@@ -316,7 +321,7 @@ const zr = "_alert_1pgum_12 _text_ocaqi_23", Wr = "_content_1pgum_27", Gr = "_ti
|
|
|
316
321
|
calculationOperandCount: (t) => `${t} operands`
|
|
317
322
|
}, tr = {
|
|
318
323
|
formats: rn,
|
|
319
|
-
wording:
|
|
324
|
+
wording: wt
|
|
320
325
|
}, nr = it(null);
|
|
321
326
|
function Jr(t) {
|
|
322
327
|
if (!t) return tr;
|
|
@@ -324,10 +329,10 @@ function Jr(t) {
|
|
|
324
329
|
return {
|
|
325
330
|
formats: t.formats ? { ...rn, ...t.formats } : rn,
|
|
326
331
|
wording: t.wording ? {
|
|
327
|
-
...
|
|
332
|
+
...wt,
|
|
328
333
|
...n,
|
|
329
|
-
presets: e ? { ...
|
|
330
|
-
} :
|
|
334
|
+
presets: e ? { ...wt.presets, ...e } : wt.presets
|
|
335
|
+
} : wt
|
|
331
336
|
};
|
|
332
337
|
}
|
|
333
338
|
function eo({ formats: t, wording: e, children: n }) {
|
|
@@ -372,7 +377,7 @@ const rr = () => Ze(nr) ?? tr, Qe = () => rr().formats, fe = () => rr().wording,
|
|
|
372
377
|
strokeLinecap: "round"
|
|
373
378
|
}
|
|
374
379
|
) });
|
|
375
|
-
}),
|
|
380
|
+
}), yh = V(function({ size: e = 10, ...n }, r) {
|
|
376
381
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
377
382
|
"path",
|
|
378
383
|
{
|
|
@@ -396,7 +401,7 @@ const rr = () => Ze(nr) ?? tr, Qe = () => rr().formats, fe = () => rr().wording,
|
|
|
396
401
|
}
|
|
397
402
|
) });
|
|
398
403
|
}), sr = V(function({ size: e = 12, range: n = !1, ...r }, o) {
|
|
399
|
-
return /* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */ w("svg", { ref: o, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...r, children: [
|
|
400
405
|
/* @__PURE__ */ s("rect", { x: "1", y: "1.6", width: "8", height: "7.7", rx: "1.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
401
406
|
/* @__PURE__ */ s(
|
|
402
407
|
"path",
|
|
@@ -410,7 +415,7 @@ const rr = () => Ze(nr) ?? tr, Qe = () => rr().formats, fe = () => rr().wording,
|
|
|
410
415
|
)
|
|
411
416
|
] });
|
|
412
417
|
}), ir = V(function({ size: e = 12, ...n }, r) {
|
|
413
|
-
return /* @__PURE__ */
|
|
418
|
+
return /* @__PURE__ */ w("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: [
|
|
414
419
|
/* @__PURE__ */ s("circle", { cx: "5", cy: "5", r: "4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
415
420
|
/* @__PURE__ */ s(
|
|
416
421
|
"path",
|
|
@@ -433,7 +438,7 @@ const rr = () => Ze(nr) ?? tr, Qe = () => rr().formats, fe = () => rr().wording,
|
|
|
433
438
|
loading: { role: "status", live: "polite" }
|
|
434
439
|
}, Nh = V(function({ tone: e = "neutral", title: n, actions: r, onDismiss: o, dismissLabel: a, className: i, children: l, ...f }, h) {
|
|
435
440
|
const _ = fe(), { role: v, live: m } = on[e];
|
|
436
|
-
return /* @__PURE__ */
|
|
441
|
+
return /* @__PURE__ */ w(
|
|
437
442
|
"div",
|
|
438
443
|
{
|
|
439
444
|
ref: h,
|
|
@@ -442,7 +447,7 @@ const rr = () => Ze(nr) ?? tr, Qe = () => rr().formats, fe = () => rr().wording,
|
|
|
442
447
|
className: R(mt.alert, mt[e], i),
|
|
443
448
|
...f,
|
|
444
449
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ w("div", { className: mt.content, children: [
|
|
446
451
|
n && /* @__PURE__ */ s("p", { className: mt.title, children: n }),
|
|
447
452
|
l && /* @__PURE__ */ s("div", { className: mt.text, children: l }),
|
|
448
453
|
r && /* @__PURE__ */ s("div", { className: mt.actions, children: r })
|
|
@@ -465,7 +470,7 @@ const rr = () => Ze(nr) ?? tr, Qe = () => rr().formats, fe = () => rr().wording,
|
|
|
465
470
|
spinner: uo
|
|
466
471
|
}, _n = V(function({ size: e = 14, className: n, ...r }, o) {
|
|
467
472
|
const a = fe();
|
|
468
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ w(
|
|
469
474
|
"svg",
|
|
470
475
|
{
|
|
471
476
|
ref: o,
|
|
@@ -518,7 +523,7 @@ function Th({
|
|
|
518
523
|
);
|
|
519
524
|
return /* @__PURE__ */ s(gn.Provider, { value: a, children: /* @__PURE__ */ s(eo, { formats: r == null ? void 0 : r.formats, wording: r == null ? void 0 : r.wording, children: o }) });
|
|
520
525
|
}
|
|
521
|
-
function
|
|
526
|
+
function wn(t, e) {
|
|
522
527
|
return (t == null ? void 0 : t.closest("dialog")) ?? e() ?? document.body;
|
|
523
528
|
}
|
|
524
529
|
const po = 6, _o = 8, go = 240;
|
|
@@ -534,10 +539,10 @@ function ar(t, e, n, r = {}) {
|
|
|
534
539
|
const p = a === "top" ? t.top - i - e.height : t.bottom + i;
|
|
535
540
|
N = Math.max(f + l, Math.min(p, f + n.height - e.height - l));
|
|
536
541
|
}
|
|
537
|
-
const
|
|
538
|
-
return { top: N, left:
|
|
542
|
+
const y = a === "top" !== b, $ = (p) => p === "end" ? t.right - e.width : p === "center" ? t.left + t.width / 2 - e.width / 2 : t.left, E = (p) => p >= h + l && p + e.width <= h + n.width - l, A = [o, o === "start" ? "end" : o === "end" ? "start" : "center", "center"].find((p) => E($(p))) ?? o, P = Math.max(h + l, Math.min($(A), h + n.width - e.width - l));
|
|
543
|
+
return { top: N, left: P, flipped: b, side: y ? "top" : "bottom", align: A, ...k === void 0 ? {} : { maxHeight: k } };
|
|
539
544
|
}
|
|
540
|
-
function
|
|
545
|
+
function yn(t, e) {
|
|
541
546
|
return `${e === "start" ? "left" : e === "end" ? "right" : "center"} ${t === "bottom" ? "top" : "bottom"}`;
|
|
542
547
|
}
|
|
543
548
|
function cr() {
|
|
@@ -574,70 +579,70 @@ const vo = Number(Or.split(".")[0]) >= 19;
|
|
|
574
579
|
function dr(t) {
|
|
575
580
|
return vo ? t.props.ref : t.ref;
|
|
576
581
|
}
|
|
577
|
-
const bo = "_tooltip_t3fvi_4 _text_ocaqi_23",
|
|
582
|
+
const bo = "_tooltip_t3fvi_4 _text_ocaqi_23", wo = {
|
|
578
583
|
tooltip: bo
|
|
579
584
|
};
|
|
580
585
|
function ur({ content: t, children: e, delay: n = 300 }) {
|
|
581
|
-
const [r, o] = W(!1), a = e.props["aria-expanded"] === !0, i = r && !a, [l, f] = W(null), [h, _] = W(null), v = bn(), m =
|
|
586
|
+
const [r, o] = W(!1), a = e.props["aria-expanded"] === !0, i = r && !a, [l, f] = W(null), [h, _] = W(null), v = bn(), m = q(null), d = q(null), c = q(null), g = Le(), b = lr(i, d, "--u-duration-exit-fast"), N = () => {
|
|
582
587
|
c.current && clearTimeout(c.current), c.current = setTimeout(() => o(!0), n);
|
|
583
588
|
}, k = () => {
|
|
584
589
|
c.current && clearTimeout(c.current), o(!1);
|
|
585
590
|
};
|
|
586
591
|
je(() => {
|
|
587
|
-
i && _(
|
|
592
|
+
i && _(wn(m.current, v));
|
|
588
593
|
}, [i, v]), je(() => {
|
|
589
|
-
var
|
|
594
|
+
var P;
|
|
590
595
|
if (!i || !h) return;
|
|
591
|
-
const
|
|
592
|
-
if (!
|
|
596
|
+
const E = (P = m.current) == null ? void 0 : P.getBoundingClientRect(), x = d.current;
|
|
597
|
+
if (!E || !x) return;
|
|
593
598
|
const A = ar(
|
|
594
|
-
|
|
599
|
+
E,
|
|
595
600
|
{ width: x.offsetWidth, height: x.offsetHeight },
|
|
596
601
|
cr(),
|
|
597
602
|
{ align: "center", side: "top", offset: 8 }
|
|
598
603
|
);
|
|
599
|
-
f({ top: A.top, left: A.left, "--_origin":
|
|
604
|
+
f({ top: A.top, left: A.left, "--_origin": yn(A.side, "center") });
|
|
600
605
|
}, [i, h, t]), ae(() => {
|
|
601
606
|
if (!i) return;
|
|
602
|
-
const
|
|
607
|
+
const E = (x) => {
|
|
603
608
|
x.key === "Escape" && k();
|
|
604
609
|
};
|
|
605
|
-
return window.addEventListener("keydown",
|
|
606
|
-
window.removeEventListener("keydown",
|
|
610
|
+
return window.addEventListener("keydown", E), window.addEventListener("scroll", k, !0), () => {
|
|
611
|
+
window.removeEventListener("keydown", E), window.removeEventListener("scroll", k, !0);
|
|
607
612
|
};
|
|
608
613
|
}, [i]), ae(() => () => {
|
|
609
614
|
c.current && clearTimeout(c.current);
|
|
610
615
|
}, []);
|
|
611
|
-
const
|
|
612
|
-
return /* @__PURE__ */
|
|
616
|
+
const y = e.props, $ = i && t !== y["aria-label"];
|
|
617
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
613
618
|
Jn(e, {
|
|
614
619
|
// eslint-disable-next-line react-hooks/refs
|
|
615
620
|
ref: Ve(m, dr(e)),
|
|
616
621
|
/* Added to the child's own description, not put in its place: a field's
|
|
617
622
|
hint went silent for as long as the tooltip stood. */
|
|
618
|
-
"aria-describedby": [
|
|
619
|
-
onPointerEnter: (
|
|
623
|
+
"aria-describedby": [y["aria-describedby"], $ ? g : void 0].filter(Boolean).join(" ") || void 0,
|
|
624
|
+
onPointerEnter: (E) => {
|
|
620
625
|
var x;
|
|
621
|
-
(x =
|
|
626
|
+
(x = y.onPointerEnter) == null || x.call(y, E), N();
|
|
622
627
|
},
|
|
623
628
|
/* A press acts; the tip has said what it would do. */
|
|
624
|
-
onPointerDown: (
|
|
629
|
+
onPointerDown: (E) => {
|
|
625
630
|
var x;
|
|
626
|
-
(x =
|
|
631
|
+
(x = y.onPointerDown) == null || x.call(y, E), k();
|
|
627
632
|
},
|
|
628
|
-
onPointerLeave: (
|
|
633
|
+
onPointerLeave: (E) => {
|
|
629
634
|
var x;
|
|
630
|
-
(x =
|
|
635
|
+
(x = y.onPointerLeave) == null || x.call(y, E), k();
|
|
631
636
|
},
|
|
632
637
|
/* Only a focus the keyboard gave: the one a click hands over follows
|
|
633
638
|
the press, and the press has just hidden the tip. */
|
|
634
|
-
onFocus: (
|
|
639
|
+
onFocus: (E) => {
|
|
635
640
|
var x;
|
|
636
|
-
(x =
|
|
641
|
+
(x = y.onFocus) == null || x.call(y, E), E.currentTarget.matches(":focus-visible") && N();
|
|
637
642
|
},
|
|
638
|
-
onBlur: (
|
|
643
|
+
onBlur: (E) => {
|
|
639
644
|
var x;
|
|
640
|
-
(x =
|
|
645
|
+
(x = y.onBlur) == null || x.call(y, E), k();
|
|
641
646
|
}
|
|
642
647
|
}),
|
|
643
648
|
b && h && pn(
|
|
@@ -647,7 +652,7 @@ function ur({ content: t, children: e, delay: n = 300 }) {
|
|
|
647
652
|
ref: d,
|
|
648
653
|
id: g,
|
|
649
654
|
role: "tooltip",
|
|
650
|
-
className:
|
|
655
|
+
className: wo.tooltip,
|
|
651
656
|
"data-closing": !i || void 0,
|
|
652
657
|
"aria-hidden": !i || void 0,
|
|
653
658
|
style: { ...l, visibility: l ? void 0 : "hidden" },
|
|
@@ -658,8 +663,8 @@ function ur({ content: t, children: e, delay: n = 300 }) {
|
|
|
658
663
|
)
|
|
659
664
|
] });
|
|
660
665
|
}
|
|
661
|
-
const
|
|
662
|
-
button:
|
|
666
|
+
const yo = "_button_brl4b_4 _ring_ocaqi_81 _text_ocaqi_23", ko = "_sm_brl4b_49", No = "_square_brl4b_60", xo = "_label_brl4b_70", $o = "_primary_brl4b_84", So = "_danger_brl4b_95", To = "_secondary_brl4b_110", Do = "_ghost_brl4b_127", Ao = "_plain_brl4b_140", Mo = "_spinner_brl4b_161", At = {
|
|
667
|
+
button: yo,
|
|
663
668
|
sm: ko,
|
|
664
669
|
square: No,
|
|
665
670
|
label: xo,
|
|
@@ -670,7 +675,7 @@ const wo = "_button_b73v9_4 _ring_ocaqi_81 _text_ocaqi_23", ko = "_sm_b73v9_49",
|
|
|
670
675
|
plain: Ao,
|
|
671
676
|
spinner: Mo
|
|
672
677
|
}, Te = V(function({ variant: e = "secondary", size: n = "md", loading: r = !1, disabled: o, className: a, children: i, type: l, ...f }, h) {
|
|
673
|
-
return /* @__PURE__ */
|
|
678
|
+
return /* @__PURE__ */ w(
|
|
674
679
|
"button",
|
|
675
680
|
{
|
|
676
681
|
ref: h,
|
|
@@ -687,24 +692,24 @@ const wo = "_button_b73v9_4 _ring_ocaqi_81 _text_ocaqi_23", ko = "_sm_b73v9_49",
|
|
|
687
692
|
);
|
|
688
693
|
}), sn = V(function({ variant: e = "plain", className: n, ...r }, o) {
|
|
689
694
|
return /* @__PURE__ */ s(ur, { content: r["aria-label"], children: /* @__PURE__ */ s(Te, { ref: o, variant: e, className: R(At.square, n), ...r }) });
|
|
690
|
-
}), Co = "_field_1fqw6_4 _text_ocaqi_23", Ro = "_label_1fqw6_12",
|
|
695
|
+
}), Co = "_field_1fqw6_4 _text_ocaqi_23", Ro = "_label_1fqw6_12", Lo = "_required_1fqw6_19", Po = "_message_1fqw6_24", Eo = "_hint_1fqw6_30", Fo = "_error_1fqw6_34", xt = {
|
|
691
696
|
field: Co,
|
|
692
697
|
label: Ro,
|
|
693
|
-
required:
|
|
694
|
-
message:
|
|
695
|
-
hint:
|
|
696
|
-
error:
|
|
698
|
+
required: Lo,
|
|
699
|
+
message: Po,
|
|
700
|
+
hint: Eo,
|
|
701
|
+
error: Fo
|
|
697
702
|
}, kn = it(null);
|
|
698
703
|
function He() {
|
|
699
704
|
return Ze(kn);
|
|
700
705
|
}
|
|
701
|
-
function
|
|
706
|
+
function qo({ children: t }) {
|
|
702
707
|
return /* @__PURE__ */ s(kn.Provider, { value: null, children: t });
|
|
703
708
|
}
|
|
704
709
|
const Dh = V(function({ label: e, hint: n, error: r, required: o = !1, fieldId: a, className: i, children: l, ...f }, h) {
|
|
705
|
-
const _ =
|
|
706
|
-
return /* @__PURE__ */
|
|
707
|
-
/* @__PURE__ */
|
|
710
|
+
const _ = Le(), v = a ?? _, m = `${v}-message`, d = !!(r ?? n);
|
|
711
|
+
return /* @__PURE__ */ w("div", { ref: h, className: R(xt.field, i), ...f, children: [
|
|
712
|
+
/* @__PURE__ */ w("label", { className: xt.label, htmlFor: v, children: [
|
|
708
713
|
e,
|
|
709
714
|
o && /* @__PURE__ */ s("span", { className: xt.required, "aria-hidden": "true", children: "*" })
|
|
710
715
|
] }),
|
|
@@ -738,11 +743,11 @@ function ft({
|
|
|
738
743
|
className: c,
|
|
739
744
|
children: g
|
|
740
745
|
}) {
|
|
741
|
-
const b =
|
|
746
|
+
const b = q(null), N = q(o);
|
|
742
747
|
ae(() => {
|
|
743
748
|
N.current = o;
|
|
744
749
|
});
|
|
745
|
-
const [k,
|
|
750
|
+
const [k, y] = W(null), [$, E] = W(null), x = bn(), A = lr(t, b, "--u-duration-exit-fast"), P = A && !t, p = re(
|
|
746
751
|
(C) => {
|
|
747
752
|
var D;
|
|
748
753
|
e(!1), C && h && ((D = (r ?? n).current) == null || D.focus());
|
|
@@ -753,16 +758,16 @@ function ft({
|
|
|
753
758
|
const C = (I = n.current) == null ? void 0 : I.getBoundingClientRect(), D = b.current;
|
|
754
759
|
if (!C || !D) return;
|
|
755
760
|
l === "anchor" ? D.style.width = `${f ? Math.max(C.width, f) : C.width}px` : typeof l == "number" && (D.style.width = `${l}px`), D.style.maxHeight = "";
|
|
756
|
-
const
|
|
761
|
+
const F = D.getBoundingClientRect(), Y = getComputedStyle(D).transform, M = Y && Y !== "none" ? new DOMMatrixReadOnly(Y).a : 1, L = ar(
|
|
757
762
|
C,
|
|
758
|
-
{ width:
|
|
763
|
+
{ width: F.width / M, height: F.height / M },
|
|
759
764
|
cr(),
|
|
760
765
|
{ align: a, offset: i }
|
|
761
766
|
);
|
|
762
|
-
|
|
767
|
+
L.maxHeight !== void 0 && (D.style.maxHeight = `${L.maxHeight}px`), y(L);
|
|
763
768
|
}, [n, a, i, l, f]);
|
|
764
769
|
return je(() => {
|
|
765
|
-
t &&
|
|
770
|
+
t && E(wn(n.current, x));
|
|
766
771
|
}, [t, n, x]), je(() => {
|
|
767
772
|
!t || !$ || H();
|
|
768
773
|
}, [t, $, H]), ae(() => {
|
|
@@ -775,7 +780,7 @@ function ft({
|
|
|
775
780
|
});
|
|
776
781
|
}, D = (K) => {
|
|
777
782
|
C(K.target) || p(!1);
|
|
778
|
-
},
|
|
783
|
+
}, F = (K) => {
|
|
779
784
|
K.key === "Escape" && (K.preventDefault(), p(!0));
|
|
780
785
|
};
|
|
781
786
|
let Y = 0;
|
|
@@ -783,12 +788,12 @@ function ft({
|
|
|
783
788
|
Y || (Y = requestAnimationFrame(() => {
|
|
784
789
|
Y = 0, H();
|
|
785
790
|
}));
|
|
786
|
-
},
|
|
791
|
+
}, L = (K) => {
|
|
787
792
|
var ie;
|
|
788
793
|
K.target instanceof Node && ((ie = b.current) != null && ie.contains(K.target)) || (_ ? p(!1) : M());
|
|
789
794
|
}, I = window.visualViewport;
|
|
790
|
-
return document.addEventListener("mousedown", D), document.addEventListener("keydown",
|
|
791
|
-
I == null || I.removeEventListener("resize", M), I == null || I.removeEventListener("scroll", M), document.removeEventListener("mousedown", D), document.removeEventListener("keydown",
|
|
795
|
+
return document.addEventListener("mousedown", D), document.addEventListener("keydown", F), window.addEventListener("scroll", L, !0), window.addEventListener("resize", L), I == null || I.addEventListener("resize", M), I == null || I.addEventListener("scroll", M), () => {
|
|
796
|
+
I == null || I.removeEventListener("resize", M), I == null || I.removeEventListener("scroll", M), document.removeEventListener("mousedown", D), document.removeEventListener("keydown", F), window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L), Y && cancelAnimationFrame(Y);
|
|
792
797
|
};
|
|
793
798
|
}, [t, n, p, H, _]), !A || !$ ? null : pn(
|
|
794
799
|
/* @__PURE__ */ s(
|
|
@@ -799,14 +804,14 @@ function ft({
|
|
|
799
804
|
role: v,
|
|
800
805
|
"aria-label": m,
|
|
801
806
|
className: R(Bo.panel, c),
|
|
802
|
-
"data-closing":
|
|
803
|
-
inert:
|
|
804
|
-
"aria-hidden":
|
|
807
|
+
"data-closing": P || void 0,
|
|
808
|
+
inert: P || void 0,
|
|
809
|
+
"aria-hidden": P || void 0,
|
|
805
810
|
style: {
|
|
806
811
|
top: (k == null ? void 0 : k.top) ?? 0,
|
|
807
812
|
left: (k == null ? void 0 : k.left) ?? 0,
|
|
808
813
|
/* The motion origin, computed here and drawn by the stylesheet. */
|
|
809
|
-
"--_origin": k ?
|
|
814
|
+
"--_origin": k ? yn(k.side, k.align) : void 0,
|
|
810
815
|
/* Not shown before the first measurement, or it flashes in the top
|
|
811
816
|
left. Transparent and not `visibility: hidden`: a hidden panel takes
|
|
812
817
|
no focus, and the first opening of a menu lost its move to the first
|
|
@@ -814,7 +819,7 @@ function ft({
|
|
|
814
819
|
transparent pass is never seen. */
|
|
815
820
|
opacity: k ? void 0 : 0
|
|
816
821
|
},
|
|
817
|
-
children: /* @__PURE__ */ s(
|
|
822
|
+
children: /* @__PURE__ */ s(qo, { children: g })
|
|
818
823
|
}
|
|
819
824
|
),
|
|
820
825
|
$
|
|
@@ -851,14 +856,14 @@ function fr(t, e, n) {
|
|
|
851
856
|
}
|
|
852
857
|
}
|
|
853
858
|
function hr({ trigger: t, children: e, align: n = "start" }) {
|
|
854
|
-
const [r, o] = W(!1), a =
|
|
859
|
+
const [r, o] = W(!1), a = q(null), i = q(null), l = Le(), f = () => {
|
|
855
860
|
var m;
|
|
856
861
|
o(!1), (m = a.current) == null || m.focus();
|
|
857
862
|
}, h = re((m) => {
|
|
858
863
|
var d;
|
|
859
864
|
i.current = m, (d = m == null ? void 0 : m.querySelector('[role="menuitem"]:not([disabled])')) == null || d.focus();
|
|
860
865
|
}, []), _ = (m) => fr(m, i.current, f), v = t.props;
|
|
861
|
-
return /* @__PURE__ */
|
|
866
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
862
867
|
Jn(t, {
|
|
863
868
|
/* The trigger keeps its own ref beside the menu's. The rule takes a
|
|
864
869
|
ref handed on as one read during render; nothing reads `.current`. */
|
|
@@ -906,7 +911,7 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
906
911
|
);
|
|
907
912
|
}), Ah = V(function({ className: e, ...n }, r) {
|
|
908
913
|
return /* @__PURE__ */ s("div", { ref: r, className: R(Nt.separator, e), ...n, role: "separator" });
|
|
909
|
-
}), jo = "
|
|
914
|
+
}), jo = "_group_1ul68_9", Vo = "_split_1ul68_98", Yo = "_trigger_1ul68_98", Ko = "_arrow_1ul68_105", Ot = {
|
|
910
915
|
group: jo,
|
|
911
916
|
split: Vo,
|
|
912
917
|
trigger: Yo,
|
|
@@ -925,7 +930,7 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
925
930
|
...h
|
|
926
931
|
}, _) {
|
|
927
932
|
const v = fe();
|
|
928
|
-
return /* @__PURE__ */
|
|
933
|
+
return /* @__PURE__ */ w(Xo, { className: R(Ot.split, f), children: [
|
|
929
934
|
/* @__PURE__ */ s(Te, { ref: _, variant: r, size: o, disabled: l, ...h, children: e }),
|
|
930
935
|
/* @__PURE__ */ s(
|
|
931
936
|
hr,
|
|
@@ -981,7 +986,7 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
981
986
|
}, f) {
|
|
982
987
|
const [h, _] = W(n), v = r !== void 0, m = v ? r : h, d = () => {
|
|
983
988
|
v || _(!m), o == null || o(!m);
|
|
984
|
-
}, c =
|
|
989
|
+
}, c = Le();
|
|
985
990
|
return /* @__PURE__ */ s("section", { ref: f, className: R(Ke.card, a), ...l, children: /* @__PURE__ */ s(
|
|
986
991
|
xn.Provider,
|
|
987
992
|
{
|
|
@@ -991,12 +996,12 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
991
996
|
) });
|
|
992
997
|
}), Rh = V(function({ title: e, eyebrow: n, actions: r, divider: o = !1, className: a, ...i }, l) {
|
|
993
998
|
const f = Ze(xn), h = fe();
|
|
994
|
-
return /* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
999
|
+
return /* @__PURE__ */ w("div", { ref: l, className: R(Ke.header, o && Ke.divider, a), ...i, children: [
|
|
1000
|
+
/* @__PURE__ */ w("div", { className: Ke.headerText, children: [
|
|
996
1001
|
n && /* @__PURE__ */ s("span", { className: Ke.eyebrow, children: n }),
|
|
997
1002
|
/* @__PURE__ */ s("h2", { className: Ke.title, children: e })
|
|
998
1003
|
] }),
|
|
999
|
-
(r || (f == null ? void 0 : f.collapsible)) && /* @__PURE__ */
|
|
1004
|
+
(r || (f == null ? void 0 : f.collapsible)) && /* @__PURE__ */ w("div", { className: Ke.headerRight, children: [
|
|
1000
1005
|
r,
|
|
1001
1006
|
(f == null ? void 0 : f.collapsible) && /* @__PURE__ */ s(
|
|
1002
1007
|
"button",
|
|
@@ -1011,7 +1016,7 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1011
1016
|
)
|
|
1012
1017
|
] })
|
|
1013
1018
|
] });
|
|
1014
|
-
}),
|
|
1019
|
+
}), Lh = V(function({ flush: e = !1, className: n, children: r, ...o }, a) {
|
|
1015
1020
|
const i = Ze(xn), l = /* @__PURE__ */ s(
|
|
1016
1021
|
"div",
|
|
1017
1022
|
{
|
|
@@ -1031,12 +1036,12 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1031
1036
|
dash: ms,
|
|
1032
1037
|
label: ps
|
|
1033
1038
|
}, $n = V(function({ label: e, indeterminate: n = !1, className: r, id: o, ...a }, i) {
|
|
1034
|
-
const l =
|
|
1039
|
+
const l = q(null);
|
|
1035
1040
|
mn(i, () => l.current), ae(() => {
|
|
1036
1041
|
l.current && (l.current.indeterminate = n);
|
|
1037
1042
|
}, [n]);
|
|
1038
1043
|
const f = He(), h = o ?? (f == null ? void 0 : f.id);
|
|
1039
|
-
return /* @__PURE__ */
|
|
1044
|
+
return /* @__PURE__ */ w("label", { className: R($t.wrapper, r), htmlFor: h, children: [
|
|
1040
1045
|
/* @__PURE__ */ s(
|
|
1041
1046
|
"input",
|
|
1042
1047
|
{
|
|
@@ -1049,7 +1054,7 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1049
1054
|
...a
|
|
1050
1055
|
}
|
|
1051
1056
|
),
|
|
1052
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ w("span", { className: $t.box, "aria-hidden": "true", children: [
|
|
1053
1058
|
/* @__PURE__ */ s("svg", { viewBox: "0 0 10 8", className: $t.check, children: /* @__PURE__ */ s("path", { pathLength: 1, d: "M1 4l2.5 2.5L9 1", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) }),
|
|
1054
1059
|
/* @__PURE__ */ s("span", { className: $t.dash })
|
|
1055
1060
|
] }),
|
|
@@ -1057,7 +1062,7 @@ const Uo = V(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1057
1062
|
] });
|
|
1058
1063
|
});
|
|
1059
1064
|
function mr(t, e, n) {
|
|
1060
|
-
const r =
|
|
1065
|
+
const r = q(null), [o, a] = W(!1), i = q(!1), l = () => {
|
|
1061
1066
|
if (i.current) {
|
|
1062
1067
|
i.current = !1;
|
|
1063
1068
|
return;
|
|
@@ -1116,18 +1121,18 @@ function bs(t, e) {
|
|
|
1116
1121
|
function Sn(t, e, n) {
|
|
1117
1122
|
return e <= 0 ? 0 : (t + n + e) % e;
|
|
1118
1123
|
}
|
|
1119
|
-
function
|
|
1124
|
+
function ws(t, e) {
|
|
1120
1125
|
if (e === null) return 0;
|
|
1121
1126
|
const n = t.findIndex((r) => r.value === e);
|
|
1122
1127
|
return n === -1 ? 0 : n;
|
|
1123
1128
|
}
|
|
1124
|
-
const
|
|
1129
|
+
const ys = 10, ks = 8, Ns = 0.5, xs = /[\p{L}\p{N}]/u, $s = (t) => t !== t.toLowerCase() && t === t.toUpperCase(), Ss = (t) => t !== t.toUpperCase() && t === t.toLowerCase();
|
|
1125
1130
|
function Ts(t, e) {
|
|
1126
1131
|
if (e === 0) return !0;
|
|
1127
1132
|
const n = t[e - 1], r = t[e];
|
|
1128
1133
|
return xs.test(n) ? Ss(n) && $s(r) : !0;
|
|
1129
1134
|
}
|
|
1130
|
-
function
|
|
1135
|
+
function Pn(t, e) {
|
|
1131
1136
|
const n = t.trim().toLowerCase();
|
|
1132
1137
|
if (n === "" || n.length > e.length) return null;
|
|
1133
1138
|
const r = e.toLowerCase();
|
|
@@ -1137,7 +1142,7 @@ function Ln(t, e) {
|
|
|
1137
1142
|
const v = new Array(e.length).fill(null), m = new Array(e.length).fill(null);
|
|
1138
1143
|
for (let d = 0; d < e.length; d++) {
|
|
1139
1144
|
if (r[d] !== n[_]) continue;
|
|
1140
|
-
const c = Ts(e, d) ?
|
|
1145
|
+
const c = Ts(e, d) ? ys : 0;
|
|
1141
1146
|
if (_ === 0) {
|
|
1142
1147
|
v[d] = c;
|
|
1143
1148
|
continue;
|
|
@@ -1176,7 +1181,7 @@ function As(t, e) {
|
|
|
1176
1181
|
if (n === "") return [];
|
|
1177
1182
|
const r = [];
|
|
1178
1183
|
for (const o of t) {
|
|
1179
|
-
const a =
|
|
1184
|
+
const a = Pn(n, o.name);
|
|
1180
1185
|
if (a !== null) {
|
|
1181
1186
|
r.push({
|
|
1182
1187
|
kandidat: o,
|
|
@@ -1185,7 +1190,7 @@ function As(t, e) {
|
|
|
1185
1190
|
});
|
|
1186
1191
|
continue;
|
|
1187
1192
|
}
|
|
1188
|
-
const i = o.gruppe === void 0 ? null :
|
|
1193
|
+
const i = o.gruppe === void 0 ? null : Pn(n, o.gruppe);
|
|
1189
1194
|
i !== null && r.push({
|
|
1190
1195
|
kandidat: o,
|
|
1191
1196
|
rank: i.rank + (o.gewicht ?? 0),
|
|
@@ -1197,33 +1202,33 @@ function As(t, e) {
|
|
|
1197
1202
|
return i !== l ? i ? -1 : 1 : a.rank - o.rank;
|
|
1198
1203
|
});
|
|
1199
1204
|
}
|
|
1200
|
-
const Ms = 150,
|
|
1201
|
-
let
|
|
1205
|
+
const Ms = 150, En = /* @__PURE__ */ new WeakMap();
|
|
1206
|
+
let yt = null;
|
|
1202
1207
|
function Cs(t) {
|
|
1203
|
-
const e =
|
|
1208
|
+
const e = En.get(t);
|
|
1204
1209
|
if ((e == null ? void 0 : e.parentElement) === t) return e;
|
|
1205
1210
|
const n = document.createElement("div");
|
|
1206
|
-
return n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("data-umriss-announcer", ""), n.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0", t.append(n),
|
|
1211
|
+
return n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("data-umriss-announcer", ""), n.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0", t.append(n), En.set(t, n), n;
|
|
1207
1212
|
}
|
|
1208
1213
|
function lt(t, e) {
|
|
1209
1214
|
if (typeof document > "u") return;
|
|
1210
|
-
const n = Cs(
|
|
1211
|
-
|
|
1212
|
-
|
|
1215
|
+
const n = Cs(wn(e, () => null));
|
|
1216
|
+
yt !== null && clearTimeout(yt), yt = setTimeout(() => {
|
|
1217
|
+
yt = null;
|
|
1213
1218
|
const r = document.createElement("div");
|
|
1214
1219
|
r.textContent = t, n.replaceChildren(r);
|
|
1215
1220
|
}, Ms);
|
|
1216
1221
|
}
|
|
1217
1222
|
function pr() {
|
|
1218
|
-
|
|
1223
|
+
yt !== null && clearTimeout(yt), yt = null;
|
|
1219
1224
|
}
|
|
1220
|
-
const Rs = "_dialog_1m9xm_7 _text_ocaqi_23",
|
|
1225
|
+
const Rs = "_dialog_1m9xm_7 _text_ocaqi_23", Ls = "_pane_1m9xm_2", Ps = "_field_1m9xm_87 _field_ocaqi_46", Es = "_bodyWrap_1m9xm_126", Fs = "_body_1m9xm_126", qs = "_list_1m9xm_147 _scroll_ocaqi_52", Is = "_groupHeading_1m9xm_157", Bs = "_row_1m9xm_166", Os = "_rowActive_1m9xm_180", Hs = "_icon_1m9xm_188", zs = "_name_1m9xm_197", Ws = "_mark_1m9xm_208", Gs = "_group_1m9xm_157", Us = "_noFinds_1m9xm_219", js = "_footer_1m9xm_228", Vs = "_key_1m9xm_244", Se = {
|
|
1221
1226
|
dialog: Rs,
|
|
1222
|
-
pane:
|
|
1223
|
-
field:
|
|
1224
|
-
bodyWrap:
|
|
1225
|
-
body:
|
|
1226
|
-
list:
|
|
1227
|
+
pane: Ls,
|
|
1228
|
+
field: Ps,
|
|
1229
|
+
bodyWrap: Es,
|
|
1230
|
+
body: Fs,
|
|
1231
|
+
list: qs,
|
|
1227
1232
|
groupHeading: Is,
|
|
1228
1233
|
row: Bs,
|
|
1229
1234
|
rowActive: Os,
|
|
@@ -1235,7 +1240,7 @@ const Rs = "_dialog_1m9xm_7 _text_ocaqi_23", qs = "_pane_1m9xm_2", Ls = "_field_
|
|
|
1235
1240
|
footer: js,
|
|
1236
1241
|
key: Vs
|
|
1237
1242
|
};
|
|
1238
|
-
function
|
|
1243
|
+
function Fn(t) {
|
|
1239
1244
|
return {
|
|
1240
1245
|
name: t.label,
|
|
1241
1246
|
gruppe: t.group,
|
|
@@ -1244,7 +1249,7 @@ function En(t) {
|
|
|
1244
1249
|
icon: t.icon
|
|
1245
1250
|
};
|
|
1246
1251
|
}
|
|
1247
|
-
const
|
|
1252
|
+
const Ph = V(function({
|
|
1248
1253
|
open: e,
|
|
1249
1254
|
onClose: n,
|
|
1250
1255
|
items: r,
|
|
@@ -1258,31 +1263,31 @@ const Lh = V(function({
|
|
|
1258
1263
|
...v
|
|
1259
1264
|
}, m) {
|
|
1260
1265
|
var de;
|
|
1261
|
-
const d = fe(), c =
|
|
1266
|
+
const d = fe(), c = Le(), g = `${c}-list`, { dialogRef: b, beimSchliessen: N, beimAbbrechen: k } = mr(e, 0, n), y = q(null), $ = q(null), [E, x] = W(""), [A, P] = W(null), p = E.trim() !== "", H = pe(() => r.map(Fn), [r]), C = pe(() => As(H, E), [H, E]), D = pe(
|
|
1262
1267
|
() => (a ?? []).map((O) => ({
|
|
1263
|
-
kandidat:
|
|
1268
|
+
kandidat: Fn(O),
|
|
1264
1269
|
rank: 0,
|
|
1265
1270
|
finds: []
|
|
1266
1271
|
})),
|
|
1267
1272
|
[a]
|
|
1268
|
-
),
|
|
1273
|
+
), F = p ? C : D, Y = pe(() => {
|
|
1269
1274
|
const O = [];
|
|
1270
|
-
for (const se of
|
|
1275
|
+
for (const se of F) {
|
|
1271
1276
|
const T = se.kandidat.gruppe;
|
|
1272
1277
|
let U = O.find((z) => z.name === T);
|
|
1273
1278
|
U === void 0 && (U = { name: T, finds: [] }, O.push(U)), U.finds.push(se);
|
|
1274
1279
|
}
|
|
1275
1280
|
return O;
|
|
1276
|
-
}, [
|
|
1281
|
+
}, [F]), M = pe(() => Y.flatMap((O) => O.finds), [Y]), L = A !== null && M.some((O) => O.kandidat.id === A) ? A : ((de = M[0]) == null ? void 0 : de.kandidat.id) ?? null, I = q(!1), K = re(() => {
|
|
1277
1282
|
I.current = !1;
|
|
1278
1283
|
}, []), ie = re((O) => {
|
|
1279
|
-
I.current = !0,
|
|
1284
|
+
I.current = !0, P(O);
|
|
1280
1285
|
}, []), G = re((O) => {
|
|
1281
|
-
I.current &&
|
|
1286
|
+
I.current && P(O);
|
|
1282
1287
|
}, []);
|
|
1283
1288
|
ae(() => {
|
|
1284
1289
|
var O;
|
|
1285
|
-
e && ($.current = document.activeElement, x(""),
|
|
1290
|
+
e && ($.current = document.activeElement, x(""), P(null), I.current = !1, (O = y.current) == null || O.focus());
|
|
1286
1291
|
}, [e]);
|
|
1287
1292
|
const Q = M.length;
|
|
1288
1293
|
ae(() => {
|
|
@@ -1290,12 +1295,12 @@ const Lh = V(function({
|
|
|
1290
1295
|
pr();
|
|
1291
1296
|
return;
|
|
1292
1297
|
}
|
|
1293
|
-
!p && Q === 0 || lt(Q === 0 ? d.paletteNoFinds : d.paletteFindCount(Q),
|
|
1294
|
-
}, [e,
|
|
1298
|
+
!p && Q === 0 || lt(Q === 0 ? d.paletteNoFinds : d.paletteFindCount(Q), y.current);
|
|
1299
|
+
}, [e, E, p, Q]), ae(() => {
|
|
1295
1300
|
var O;
|
|
1296
|
-
|
|
1297
|
-
}, [
|
|
1298
|
-
const ce =
|
|
1301
|
+
L !== null && ((O = document.getElementById(an(c, L))) == null || O.scrollIntoView({ block: "nearest" }));
|
|
1302
|
+
}, [L, c]);
|
|
1303
|
+
const ce = q(null), [me, _e] = W(0);
|
|
1299
1304
|
ae(() => {
|
|
1300
1305
|
const O = ce.current;
|
|
1301
1306
|
if (!e || O === null) return;
|
|
@@ -1305,8 +1310,8 @@ const Lh = V(function({
|
|
|
1305
1310
|
}, [e]);
|
|
1306
1311
|
const J = (O) => {
|
|
1307
1312
|
if (K(), M.length === 0) return;
|
|
1308
|
-
const se = M.findIndex((U) => U.kandidat.id ===
|
|
1309
|
-
|
|
1313
|
+
const se = M.findIndex((U) => U.kandidat.id === L), T = M[Sn(se === -1 ? 0 : se, M.length, O)].kandidat;
|
|
1314
|
+
P(T.id), lt(d.optionActive(T.name, { group: T.gruppe }), y.current);
|
|
1310
1315
|
}, ee = (O) => {
|
|
1311
1316
|
if (!(O.nativeEvent.isComposing || O.defaultPrevented)) {
|
|
1312
1317
|
if (O.key === "ArrowDown") {
|
|
@@ -1318,7 +1323,7 @@ const Lh = V(function({
|
|
|
1318
1323
|
return;
|
|
1319
1324
|
}
|
|
1320
1325
|
if (O.key === "Enter") {
|
|
1321
|
-
O.preventDefault(),
|
|
1326
|
+
O.preventDefault(), L !== null && o(L);
|
|
1322
1327
|
return;
|
|
1323
1328
|
}
|
|
1324
1329
|
O.key === "Escape" && (O.preventDefault(), n());
|
|
@@ -1344,20 +1349,20 @@ const Lh = V(function({
|
|
|
1344
1349
|
onMouseDown: (O) => {
|
|
1345
1350
|
f == null || f(O), !O.defaultPrevented && (O.target.closest(`.${Se.pane}`) || n());
|
|
1346
1351
|
},
|
|
1347
|
-
children: /* @__PURE__ */
|
|
1352
|
+
children: /* @__PURE__ */ w("div", { className: Se.pane, children: [
|
|
1348
1353
|
/* @__PURE__ */ s(
|
|
1349
1354
|
"input",
|
|
1350
1355
|
{
|
|
1351
|
-
ref:
|
|
1356
|
+
ref: y,
|
|
1352
1357
|
type: "text",
|
|
1353
1358
|
className: Se.field,
|
|
1354
|
-
value:
|
|
1359
|
+
value: E,
|
|
1355
1360
|
placeholder: d.palettePlaceholder,
|
|
1356
1361
|
"aria-label": d.paletteField,
|
|
1357
1362
|
role: "combobox",
|
|
1358
1363
|
"aria-expanded": M.length > 0,
|
|
1359
1364
|
"aria-controls": M.length > 0 ? g : void 0,
|
|
1360
|
-
"aria-activedescendant":
|
|
1365
|
+
"aria-activedescendant": L === null ? void 0 : an(c, L),
|
|
1361
1366
|
autoComplete: "off",
|
|
1362
1367
|
spellCheck: !1,
|
|
1363
1368
|
onChange: (O) => {
|
|
@@ -1366,7 +1371,7 @@ const Lh = V(function({
|
|
|
1366
1371
|
onKeyDown: ee
|
|
1367
1372
|
}
|
|
1368
1373
|
),
|
|
1369
|
-
/* @__PURE__ */ s("div", { className: Se.bodyWrap, style: { height: `${me}px` }, children: /* @__PURE__ */
|
|
1374
|
+
/* @__PURE__ */ s("div", { className: Se.bodyWrap, style: { height: `${me}px` }, children: /* @__PURE__ */ w("div", { ref: ce, className: Se.body, children: [
|
|
1370
1375
|
M.length > 0 && /* @__PURE__ */ s(
|
|
1371
1376
|
"div",
|
|
1372
1377
|
{
|
|
@@ -1380,7 +1385,7 @@ const Lh = V(function({
|
|
|
1380
1385
|
{
|
|
1381
1386
|
find: U,
|
|
1382
1387
|
baseId: c,
|
|
1383
|
-
active: U.kandidat.id ===
|
|
1388
|
+
active: U.kandidat.id === L,
|
|
1384
1389
|
withIcon: te,
|
|
1385
1390
|
onSweep: G,
|
|
1386
1391
|
onMove: ie,
|
|
@@ -1388,7 +1393,7 @@ const Lh = V(function({
|
|
|
1388
1393
|
},
|
|
1389
1394
|
U.kandidat.id
|
|
1390
1395
|
));
|
|
1391
|
-
return O.name === void 0 ? T : /* @__PURE__ */
|
|
1396
|
+
return O.name === void 0 ? T : /* @__PURE__ */ w("div", { role: "group", "aria-labelledby": se, children: [
|
|
1392
1397
|
/* @__PURE__ */ s("div", { id: se, className: Se.groupHeading, children: O.name }),
|
|
1393
1398
|
T
|
|
1394
1399
|
] }, O.name);
|
|
@@ -1396,19 +1401,19 @@ const Lh = V(function({
|
|
|
1396
1401
|
}
|
|
1397
1402
|
),
|
|
1398
1403
|
p && M.length === 0 && /* @__PURE__ */ s("p", { className: Se.noFinds, children: d.paletteNoFinds }),
|
|
1399
|
-
(p || M.length > 0) && /* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
1404
|
+
(p || M.length > 0) && /* @__PURE__ */ w("footer", { className: Se.footer, children: [
|
|
1405
|
+
/* @__PURE__ */ w("span", { children: [
|
|
1401
1406
|
/* @__PURE__ */ s("kbd", { className: Se.key, children: "↑" }),
|
|
1402
1407
|
/* @__PURE__ */ s("kbd", { className: Se.key, children: "↓" }),
|
|
1403
1408
|
" ",
|
|
1404
1409
|
d.paletteHintMove
|
|
1405
1410
|
] }),
|
|
1406
|
-
/* @__PURE__ */
|
|
1411
|
+
/* @__PURE__ */ w("span", { children: [
|
|
1407
1412
|
/* @__PURE__ */ s("kbd", { className: Se.key, children: "↵" }),
|
|
1408
1413
|
" ",
|
|
1409
1414
|
d.paletteHintChoose
|
|
1410
1415
|
] }),
|
|
1411
|
-
/* @__PURE__ */
|
|
1416
|
+
/* @__PURE__ */ w("span", { children: [
|
|
1412
1417
|
/* @__PURE__ */ s("kbd", { className: Se.key, children: d.paletteKeyEsc }),
|
|
1413
1418
|
" ",
|
|
1414
1419
|
d.paletteHintClose
|
|
@@ -1429,7 +1434,7 @@ function Ys({
|
|
|
1429
1434
|
onChoose: i
|
|
1430
1435
|
}) {
|
|
1431
1436
|
const { kandidat: l } = t;
|
|
1432
|
-
return /* @__PURE__ */
|
|
1437
|
+
return /* @__PURE__ */ w(
|
|
1433
1438
|
"div",
|
|
1434
1439
|
{
|
|
1435
1440
|
id: an(e, l.id),
|
|
@@ -1462,8 +1467,8 @@ function Ks(t, e) {
|
|
|
1462
1467
|
function Xs(t) {
|
|
1463
1468
|
return t instanceof HTMLElement ? t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable : !1;
|
|
1464
1469
|
}
|
|
1465
|
-
function
|
|
1466
|
-
const e =
|
|
1470
|
+
function Eh(t) {
|
|
1471
|
+
const e = q(t);
|
|
1467
1472
|
ae(() => {
|
|
1468
1473
|
e.current = t;
|
|
1469
1474
|
}), ae(() => {
|
|
@@ -1492,7 +1497,7 @@ const Zs = "_wrapper_dhmlf_4 _text_ocaqi_23", Qs = "_input_dhmlf_11 _field_ocaqi
|
|
|
1492
1497
|
empty: ci,
|
|
1493
1498
|
inputClearable: li,
|
|
1494
1499
|
clear: di
|
|
1495
|
-
},
|
|
1500
|
+
}, Fh = V(function({
|
|
1496
1501
|
options: e,
|
|
1497
1502
|
value: n,
|
|
1498
1503
|
onChange: r,
|
|
@@ -1506,42 +1511,42 @@ const Zs = "_wrapper_dhmlf_4 _text_ocaqi_23", Qs = "_input_dhmlf_11 _field_ocaqi
|
|
|
1506
1511
|
onKeyDownCapture: v,
|
|
1507
1512
|
...m
|
|
1508
1513
|
}, d) {
|
|
1509
|
-
const c = He(), g = fe(), b = o ?? g.comboboxPlaceholder, N = l ?? g.noMatches, k = i ?? (c == null ? void 0 : c.invalid) ?? !1, [
|
|
1510
|
-
|
|
1511
|
-
},
|
|
1514
|
+
const c = He(), g = fe(), b = o ?? g.comboboxPlaceholder, N = l ?? g.noMatches, k = i ?? (c == null ? void 0 : c.invalid) ?? !1, [y, $] = W(!1), [E, x] = W(null), [A, P] = W(0), p = q(null), H = q(null), C = Le(), D = pe(() => e.find((G) => G.value === n) ?? null, [e, n]), F = pe(() => Wt(e, E ?? ""), [e, E]), Y = (G) => lt(G === 0 ? N : g.optionCount(G), p.current), M = () => {
|
|
1515
|
+
P(ws(F, n)), $(!0), Y(F.length);
|
|
1516
|
+
}, L = () => {
|
|
1512
1517
|
pr(), $(!1), x(null);
|
|
1513
1518
|
}, I = (G) => {
|
|
1514
1519
|
var Q;
|
|
1515
|
-
G.disabled || (r(G.value),
|
|
1520
|
+
G.disabled || (r(G.value), L(), (Q = p.current) == null || Q.focus());
|
|
1516
1521
|
};
|
|
1517
1522
|
ae(() => {
|
|
1518
1523
|
var G, Q;
|
|
1519
|
-
|
|
1520
|
-
}, [
|
|
1524
|
+
y && ((Q = (G = H.current) == null ? void 0 : G.querySelector(`[data-index="${A}"]`)) == null || Q.scrollIntoView({ block: "nearest" }));
|
|
1525
|
+
}, [y, A]);
|
|
1521
1526
|
const K = (G) => {
|
|
1522
1527
|
if (!(G.nativeEvent.isComposing || G.defaultPrevented)) {
|
|
1523
1528
|
if (G.key === "ArrowDown" || G.key === "ArrowUp") {
|
|
1524
|
-
if (G.preventDefault(), !
|
|
1529
|
+
if (G.preventDefault(), !y) {
|
|
1525
1530
|
M();
|
|
1526
1531
|
return;
|
|
1527
1532
|
}
|
|
1528
|
-
const Q = Sn(A,
|
|
1533
|
+
const Q = Sn(A, F.length, G.key === "ArrowDown" ? 1 : -1), ce = F[Q];
|
|
1529
1534
|
if (ce === void 0) return;
|
|
1530
|
-
|
|
1535
|
+
P(Q), lt(
|
|
1531
1536
|
g.optionActive(ce.label, { selected: ce.value === n, disabled: ce.disabled }),
|
|
1532
1537
|
p.current
|
|
1533
1538
|
);
|
|
1534
1539
|
return;
|
|
1535
1540
|
}
|
|
1536
1541
|
if (G.key === "Enter") {
|
|
1537
|
-
|
|
1542
|
+
y && F[A] && (G.preventDefault(), I(F[A]));
|
|
1538
1543
|
return;
|
|
1539
1544
|
}
|
|
1540
|
-
G.key === "Escape" &&
|
|
1545
|
+
G.key === "Escape" && y && (G.preventDefault(), L());
|
|
1541
1546
|
}
|
|
1542
|
-
}, ie =
|
|
1543
|
-
return /* @__PURE__ */
|
|
1544
|
-
/* @__PURE__ */
|
|
1547
|
+
}, ie = E ?? (D == null ? void 0 : D.label) ?? "";
|
|
1548
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
1549
|
+
/* @__PURE__ */ w(
|
|
1545
1550
|
"div",
|
|
1546
1551
|
{
|
|
1547
1552
|
ref: d,
|
|
@@ -1559,10 +1564,10 @@ const Zs = "_wrapper_dhmlf_4 _text_ocaqi_23", Qs = "_input_dhmlf_11 _field_ocaqi
|
|
|
1559
1564
|
role: "combobox",
|
|
1560
1565
|
id: c == null ? void 0 : c.id,
|
|
1561
1566
|
disabled: a,
|
|
1562
|
-
"aria-expanded":
|
|
1563
|
-
"aria-controls":
|
|
1567
|
+
"aria-expanded": y,
|
|
1568
|
+
"aria-controls": y ? C : void 0,
|
|
1564
1569
|
"aria-autocomplete": "list",
|
|
1565
|
-
"aria-activedescendant":
|
|
1570
|
+
"aria-activedescendant": y && F[A] ? `${C}-${A}` : void 0,
|
|
1566
1571
|
"aria-describedby": c == null ? void 0 : c.describedBy,
|
|
1567
1572
|
"aria-required": (c == null ? void 0 : c.required) || void 0,
|
|
1568
1573
|
"aria-invalid": k || void 0,
|
|
@@ -1570,19 +1575,19 @@ const Zs = "_wrapper_dhmlf_4 _text_ocaqi_23", Qs = "_input_dhmlf_11 _field_ocaqi
|
|
|
1570
1575
|
value: ie,
|
|
1571
1576
|
className: R(ze.input, f && ze.inputClearable, k && ze.invalid),
|
|
1572
1577
|
onChange: (G) => {
|
|
1573
|
-
x(G.target.value),
|
|
1578
|
+
x(G.target.value), P(0), y || M(), Y(Wt(e, G.target.value).length);
|
|
1574
1579
|
},
|
|
1575
1580
|
onClick: () => {
|
|
1576
|
-
|
|
1581
|
+
y || M();
|
|
1577
1582
|
},
|
|
1578
1583
|
onKeyDown: K,
|
|
1579
1584
|
onBlur: (G) => {
|
|
1580
1585
|
var Q;
|
|
1581
|
-
(Q = H.current) != null && Q.contains(G.relatedTarget) ||
|
|
1586
|
+
(Q = H.current) != null && Q.contains(G.relatedTarget) || L();
|
|
1582
1587
|
}
|
|
1583
1588
|
}
|
|
1584
1589
|
),
|
|
1585
|
-
f && !a && (n !== null || (
|
|
1590
|
+
f && !a && (n !== null || (E ?? "") !== "") && /* @__PURE__ */ s(
|
|
1586
1591
|
"button",
|
|
1587
1592
|
{
|
|
1588
1593
|
type: "button",
|
|
@@ -1604,14 +1609,14 @@ const Zs = "_wrapper_dhmlf_4 _text_ocaqi_23", Qs = "_input_dhmlf_11 _field_ocaqi
|
|
|
1604
1609
|
/* @__PURE__ */ s(
|
|
1605
1610
|
ft,
|
|
1606
1611
|
{
|
|
1607
|
-
open:
|
|
1612
|
+
open: y,
|
|
1608
1613
|
onOpenChange: (G) => {
|
|
1609
|
-
G ||
|
|
1614
|
+
G || L();
|
|
1610
1615
|
},
|
|
1611
1616
|
anchorRef: p,
|
|
1612
1617
|
width: "anchor",
|
|
1613
1618
|
className: ze.panel,
|
|
1614
|
-
children: /* @__PURE__ */ s("div", { ref: H, role: "listbox", id: C, className: ze.list, "aria-label": b, children:
|
|
1619
|
+
children: /* @__PURE__ */ s("div", { ref: H, role: "listbox", id: C, className: ze.list, "aria-label": b, children: F.length === 0 ? /* @__PURE__ */ s("div", { className: ze.empty, children: N }) : F.map((G, Q) => /* @__PURE__ */ w(
|
|
1615
1620
|
"div",
|
|
1616
1621
|
{
|
|
1617
1622
|
id: `${C}-${Q}`,
|
|
@@ -1625,7 +1630,7 @@ const Zs = "_wrapper_dhmlf_4 _text_ocaqi_23", Qs = "_input_dhmlf_11 _field_ocaqi
|
|
|
1625
1630
|
G.value === n && ze.selected,
|
|
1626
1631
|
G.disabled && ze.optionDisabled
|
|
1627
1632
|
),
|
|
1628
|
-
onMouseEnter: () => !G.disabled &&
|
|
1633
|
+
onMouseEnter: () => !G.disabled && P(Q),
|
|
1629
1634
|
onMouseDown: (ce) => ce.preventDefault(),
|
|
1630
1635
|
onClick: () => I(G),
|
|
1631
1636
|
children: [
|
|
@@ -1646,7 +1651,7 @@ function ui(t, e, n, r) {
|
|
|
1646
1651
|
return [_, v];
|
|
1647
1652
|
});
|
|
1648
1653
|
}
|
|
1649
|
-
const Tn = (t) => Math.max(0, Math.min(1, t)), _r = (t) => Math.round(Tn(t) * 100), fi = "_meter_1wz2z_4 _text_ocaqi_23", hi = "_track_1wz2z_13", mi = "_fill_1wz2z_21", pi = "_neutral_1wz2z_28", _i = "_accent_1wz2z_29", gi = "_success_1wz2z_30", vi = "_warning_1wz2z_31", bi = "_danger_1wz2z_32",
|
|
1654
|
+
const Tn = (t) => Math.max(0, Math.min(1, t)), _r = (t) => Math.round(Tn(t) * 100), fi = "_meter_1wz2z_4 _text_ocaqi_23", hi = "_track_1wz2z_13", mi = "_fill_1wz2z_21", pi = "_neutral_1wz2z_28", _i = "_accent_1wz2z_29", gi = "_success_1wz2z_30", vi = "_warning_1wz2z_31", bi = "_danger_1wz2z_32", wi = "_meterLabel_1wz2z_34", yi = "_sparkline_1wz2z_45 _text_ocaqi_23", ki = "_sparklineFill_1wz2z_56", Ni = "_sparklineEnd_1wz2z_66", xi = "_sparklineAccent_1wz2z_81", $i = "_sparklineDot_1wz2z_85", st = {
|
|
1650
1655
|
meter: fi,
|
|
1651
1656
|
track: hi,
|
|
1652
1657
|
fill: mi,
|
|
@@ -1655,15 +1660,15 @@ const Tn = (t) => Math.max(0, Math.min(1, t)), _r = (t) => Math.round(Tn(t) * 10
|
|
|
1655
1660
|
success: gi,
|
|
1656
1661
|
warning: vi,
|
|
1657
1662
|
danger: bi,
|
|
1658
|
-
meterLabel:
|
|
1659
|
-
sparkline:
|
|
1663
|
+
meterLabel: wi,
|
|
1664
|
+
sparkline: yi,
|
|
1660
1665
|
sparklineFill: ki,
|
|
1661
1666
|
sparklineEnd: Ni,
|
|
1662
1667
|
sparklineAccent: xi,
|
|
1663
1668
|
sparklineDot: $i
|
|
1664
|
-
},
|
|
1669
|
+
}, qh = V(function({ value: e, tone: n = "accent", showLabel: r = !0, label: o, className: a, ...i }, l) {
|
|
1665
1670
|
const f = Qe(), h = fe(), _ = Tn(e);
|
|
1666
|
-
return /* @__PURE__ */
|
|
1671
|
+
return /* @__PURE__ */ w(
|
|
1667
1672
|
"span",
|
|
1668
1673
|
{
|
|
1669
1674
|
ref: l,
|
|
@@ -1681,10 +1686,10 @@ const Tn = (t) => Math.max(0, Math.min(1, t)), _r = (t) => Math.round(Tn(t) * 10
|
|
|
1681
1686
|
}
|
|
1682
1687
|
);
|
|
1683
1688
|
}), Si = V(function({ data: e, width: n = 96, height: r = 28, tone: o = "ink", className: a, ...i }, l) {
|
|
1684
|
-
const f =
|
|
1689
|
+
const f = Le();
|
|
1685
1690
|
if (e.length < 2) return null;
|
|
1686
|
-
const h = n === "fill", _ = h ? 100 : n, v = h ? 100 : r, m = h ? 0 : 3, d = ui(e, _, v, m), c = d.map(([k,
|
|
1687
|
-
return /* @__PURE__ */
|
|
1691
|
+
const h = n === "fill", _ = h ? 100 : n, v = h ? 100 : r, m = h ? 0 : 3, d = ui(e, _, v, m), c = d.map(([k, y]) => `${k},${y}`).join(" "), g = `M${m},${v - m} L${c.replace(/ /g, " L")} L${_ - m},${v - m} Z`, [b, N] = d[d.length - 1] ?? [0, 0];
|
|
1692
|
+
return /* @__PURE__ */ w(
|
|
1688
1693
|
"span",
|
|
1689
1694
|
{
|
|
1690
1695
|
ref: l,
|
|
@@ -1692,7 +1697,7 @@ const Tn = (t) => Math.max(0, Math.min(1, t)), _r = (t) => Math.round(Tn(t) * 10
|
|
|
1692
1697
|
...i,
|
|
1693
1698
|
style: h ? { height: r, ...i.style } : i.style,
|
|
1694
1699
|
children: [
|
|
1695
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ w(
|
|
1696
1701
|
"svg",
|
|
1697
1702
|
{
|
|
1698
1703
|
width: h ? "100%" : n,
|
|
@@ -1702,7 +1707,7 @@ const Tn = (t) => Math.max(0, Math.min(1, t)), _r = (t) => Math.round(Tn(t) * 10
|
|
|
1702
1707
|
overflow: h ? "visible" : void 0,
|
|
1703
1708
|
"aria-hidden": "true",
|
|
1704
1709
|
children: [
|
|
1705
|
-
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ s("defs", { children: /* @__PURE__ */ w("linearGradient", { id: f, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
1706
1711
|
/* @__PURE__ */ s("stop", { offset: "0%", stopColor: "currentColor", stopOpacity: "0.14" }),
|
|
1707
1712
|
/* @__PURE__ */ s("stop", { offset: "100%", stopColor: "currentColor", stopOpacity: "0" })
|
|
1708
1713
|
] }) }),
|
|
@@ -1730,7 +1735,7 @@ const Tn = (t) => Math.max(0, Math.min(1, t)), _r = (t) => Math.round(Tn(t) * 10
|
|
|
1730
1735
|
}), Oe = (t) => new Date(t.getFullYear(), t.getMonth(), 1), kt = (t, e) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + e), Gt = (t, e) => new Date(t.getFullYear(), t.getMonth() + e, 1), Ti = (t, e) => {
|
|
1731
1736
|
const n = new Date(t.getFullYear(), t.getMonth() + e + 1, 0).getDate();
|
|
1732
1737
|
return new Date(t.getFullYear(), t.getMonth() + e, Math.min(t.getDate(), n));
|
|
1733
|
-
}, Ye = (t, e) => !!t && !!e && t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate(),
|
|
1738
|
+
}, Ye = (t, e) => !!t && !!e && t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate(), qe = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), cn = (t, e) => qe(t).getTime() < qe(e).getTime(), Di = 42;
|
|
1734
1739
|
function Ai(t) {
|
|
1735
1740
|
const e = Oe(t), n = (e.getDay() + 6) % 7, r = kt(e, -n);
|
|
1736
1741
|
return Array.from({ length: Di }, (o, a) => kt(r, a));
|
|
@@ -1744,11 +1749,11 @@ const Ci = {
|
|
|
1744
1749
|
ArrowRight: 1,
|
|
1745
1750
|
ArrowUp: -7,
|
|
1746
1751
|
ArrowDown: 7
|
|
1747
|
-
}, Ri = (t) => Ci[t],
|
|
1748
|
-
trigger:
|
|
1749
|
-
sm:
|
|
1750
|
-
invalid:
|
|
1751
|
-
value:
|
|
1752
|
+
}, Ri = (t) => Ci[t], Li = (t, e) => t.getMonth() !== e.getMonth() || t.getFullYear() !== e.getFullYear(), Pi = "_trigger_1nned_4", Ei = "_sm_1nned_38", Fi = "_invalid_1nned_44", qi = "_value_1nned_54", Ii = "_placeholder_1nned_65", Bi = "_icon_1nned_77", Oi = "_panel_1nned_86 _text_ocaqi_23", Hi = "_head_1nned_97", zi = "_month_1nned_105", Wi = "_weekdays_1nned_110", Gi = "_grid_1nned_111", Ui = "_day_1nned_130 _ring_ocaqi_81", ji = "_otherMonth_1nned_158", Vi = "_today_1nned_166", Yi = "_selected_1nned_184", Ki = "_foot_1nned_191", Xi = "_hangStart_1nned_205", Zi = "_hangEnd_1nned_209", Qi = "_timeRow_1nned_217", Ji = "_timeLabel_1nned_227", ea = "_timeGroup_1nned_235", ta = "_timeFieldWrap_1nned_245", na = "_timeField_1nned_245 _field_ocaqi_46", ra = "_timeStepper_1nned_286", oa = "_timeSeparator_1nned_343", sa = "_dstHint_1nned_349", ia = "_dstChoice_1nned_356", aa = "_dstButtons_1nned_362", ca = "_footLeft_1nned_367", la = "_triggerWrap_1nned_376 _text_ocaqi_23", da = "_triggerClear_1nned_385", ua = "_clearable_1nned_412", fa = "_rangeDash_1nned_444", ha = "_rangePanel_1nned_449 _text_ocaqi_23", ma = "_rangeRight_1nned_457", pa = "_rangeBody_1nned_461", _a = "_presetColumn_1nned_467", ga = "_preset_1nned_467 _ring_ocaqi_81", va = "_presetActive_1nned_500", ba = "_monthPair_1nned_507", wa = "_monthColumn_1nned_512", ya = "_pageSpacer_1nned_550", ka = "_dayEmpty_1nned_556", Na = "_inRange_1nned_563", xa = "_rangeFrom_1nned_573", $a = "_rangeTo_1nned_575", Sa = "_rangeSingle_1nned_577", Ta = "_inPreview_1nned_600", Da = "_previewEnd_1nned_605", Aa = "_footNote_1nned_616", Ma = "_timeRangeRow_1nned_636", Ca = "_timeHalf_1nned_655", Ra = "_timeHalfHead_1nned_663", La = "_timeDate_1nned_670", Pa = "_footNoteRight_1nned_677", Ea = "_timeFieldDisabled_1nned_685", B = {
|
|
1753
|
+
trigger: Pi,
|
|
1754
|
+
sm: Ei,
|
|
1755
|
+
invalid: Fi,
|
|
1756
|
+
value: qi,
|
|
1752
1757
|
placeholder: Ii,
|
|
1753
1758
|
icon: Bi,
|
|
1754
1759
|
panel: Oi,
|
|
@@ -1785,8 +1790,8 @@ const Ci = {
|
|
|
1785
1790
|
preset: ga,
|
|
1786
1791
|
presetActive: va,
|
|
1787
1792
|
monthPair: ba,
|
|
1788
|
-
monthColumn:
|
|
1789
|
-
pageSpacer:
|
|
1793
|
+
monthColumn: wa,
|
|
1794
|
+
pageSpacer: ya,
|
|
1790
1795
|
dayEmpty: ka,
|
|
1791
1796
|
inRange: Na,
|
|
1792
1797
|
rangeFrom: xa,
|
|
@@ -1798,11 +1803,11 @@ const Ci = {
|
|
|
1798
1803
|
timeRangeRow: Ma,
|
|
1799
1804
|
timeHalf: Ca,
|
|
1800
1805
|
timeHalfHead: Ra,
|
|
1801
|
-
timeDate:
|
|
1802
|
-
footNoteRight:
|
|
1803
|
-
timeFieldDisabled:
|
|
1806
|
+
timeDate: La,
|
|
1807
|
+
footNoteRight: Pa,
|
|
1808
|
+
timeFieldDisabled: Ea
|
|
1804
1809
|
};
|
|
1805
|
-
|
|
1810
|
+
wt.weekdays;
|
|
1806
1811
|
function Ut({
|
|
1807
1812
|
autoFocus: t = !1,
|
|
1808
1813
|
view: e,
|
|
@@ -1820,7 +1825,7 @@ function Ut({
|
|
|
1820
1825
|
withoutOtherMonth: d = !1,
|
|
1821
1826
|
today: c
|
|
1822
1827
|
}) {
|
|
1823
|
-
const g = fe(), b = Qe(), N =
|
|
1828
|
+
const g = fe(), b = Qe(), N = q(null);
|
|
1824
1829
|
ae(() => {
|
|
1825
1830
|
var p, H;
|
|
1826
1831
|
t && ((H = (p = N.current) == null ? void 0 : p.querySelector('[data-active="true"]')) == null || H.focus());
|
|
@@ -1834,18 +1839,18 @@ function Ut({
|
|
|
1834
1839
|
if (H !== void 0) {
|
|
1835
1840
|
p.preventDefault();
|
|
1836
1841
|
const C = kt(r, H);
|
|
1837
|
-
o(C),
|
|
1842
|
+
o(C), Li(C, e) && n(Oe(C));
|
|
1838
1843
|
return;
|
|
1839
1844
|
}
|
|
1840
1845
|
(p.key === "Enter" || p.key === " ") && (p.preventDefault(), i(r));
|
|
1841
|
-
},
|
|
1846
|
+
}, y = (p) => {
|
|
1842
1847
|
n(Gt(e, p)), o(Ti(r, p));
|
|
1843
|
-
}, $ = Ai(e),
|
|
1844
|
-
return /* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
v ? /* @__PURE__ */ s("span", { className: B.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(sn, { size: "sm", "aria-label": g.previousMonth, onClick: () =>
|
|
1848
|
+
}, $ = Ai(e), E = c ?? /* @__PURE__ */ new Date(), { from: x, to: A, isPreview: P } = Mi(l, f, h);
|
|
1849
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
1850
|
+
/* @__PURE__ */ w("div", { className: B.head, children: [
|
|
1851
|
+
v ? /* @__PURE__ */ s("span", { className: B.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(sn, { size: "sm", "aria-label": g.previousMonth, onClick: () => y(-1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M6.4 1.8 3.2 5l3.2 3.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
1847
1852
|
/* @__PURE__ */ s("span", { className: B.month, children: b.month(e) }),
|
|
1848
|
-
m ? /* @__PURE__ */ s("span", { className: B.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(sn, { size: "sm", "aria-label": g.nextMonth, onClick: () =>
|
|
1853
|
+
m ? /* @__PURE__ */ s("span", { className: B.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(sn, { size: "sm", "aria-label": g.nextMonth, onClick: () => y(1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M3.6 1.8 6.8 5 3.6 8.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
|
|
1849
1854
|
] }),
|
|
1850
1855
|
/* @__PURE__ */ s("div", { className: B.weekdays, "aria-hidden": "true", children: g.weekdays.map((p) => /* @__PURE__ */ s("span", { children: p }, p)) }),
|
|
1851
1856
|
/* @__PURE__ */ s(
|
|
@@ -1859,7 +1864,7 @@ function Ut({
|
|
|
1859
1864
|
const H = p.getMonth() === e.getMonth();
|
|
1860
1865
|
if (!H && d)
|
|
1861
1866
|
return /* @__PURE__ */ s("span", { className: B.dayEmpty, "aria-hidden": "true" }, p.toISOString());
|
|
1862
|
-
const C = Ye(p, r) && (H || !d), D = Ye(p, x),
|
|
1867
|
+
const C = Ye(p, r) && (H || !d), D = Ye(p, x), F = Ye(p, A), Y = D && F, M = !!x && !!A && !D && !F && cn(x, p) && cn(p, A), L = !A && Ye(p, l);
|
|
1863
1868
|
return /* @__PURE__ */ s(
|
|
1864
1869
|
"button",
|
|
1865
1870
|
{
|
|
@@ -1867,19 +1872,19 @@ function Ut({
|
|
|
1867
1872
|
tabIndex: C ? 0 : -1,
|
|
1868
1873
|
"data-active": C || void 0,
|
|
1869
1874
|
"aria-label": b.dateLong(p),
|
|
1870
|
-
"aria-pressed": Ye(p, a) || D ||
|
|
1871
|
-
"aria-current": Ye(p,
|
|
1875
|
+
"aria-pressed": Ye(p, a) || D || F || L,
|
|
1876
|
+
"aria-current": Ye(p, E) ? "date" : void 0,
|
|
1872
1877
|
className: R(
|
|
1873
1878
|
B.day,
|
|
1874
1879
|
!H && B.otherMonth,
|
|
1875
1880
|
Ye(p, a) && B.selected,
|
|
1876
|
-
Ye(p,
|
|
1881
|
+
Ye(p, E) && B.today,
|
|
1877
1882
|
M && B.inRange,
|
|
1878
|
-
M &&
|
|
1879
|
-
(D ||
|
|
1880
|
-
|
|
1883
|
+
M && P && B.inPreview,
|
|
1884
|
+
(D || L) && !Y && B.rangeFrom,
|
|
1885
|
+
F && !Y && B.rangeTo,
|
|
1881
1886
|
Y && B.rangeSingle,
|
|
1882
|
-
|
|
1887
|
+
F && P && B.previewEnd
|
|
1883
1888
|
),
|
|
1884
1889
|
onClick: () => i(p),
|
|
1885
1890
|
onMouseEnter: _ ? () => _(p) : void 0,
|
|
@@ -1892,12 +1897,12 @@ function Ut({
|
|
|
1892
1897
|
)
|
|
1893
1898
|
] });
|
|
1894
1899
|
}
|
|
1895
|
-
const ln = (t) =>
|
|
1900
|
+
const ln = (t) => qe(t), Fa = (t, e) => new Date(t.getFullYear(), t.getMonth(), t.getDate(), 23, 59, e ? 59 : 0), qa = (t, e) => t.getTime() <= e.getTime() ? [t, e] : [e, t], gr = (t, e) => qe(t).getTime() <= qe(e).getTime() ? [t, e] : [e, t];
|
|
1896
1901
|
function vr(t, e, n, r) {
|
|
1897
1902
|
const [o, a] = gr(t, e);
|
|
1898
1903
|
return {
|
|
1899
1904
|
from: ln(o),
|
|
1900
|
-
to: n === "day" ? ln(a) :
|
|
1905
|
+
to: n === "day" ? ln(a) : Fa(a, r)
|
|
1901
1906
|
};
|
|
1902
1907
|
}
|
|
1903
1908
|
function Kt({
|
|
@@ -1917,8 +1922,8 @@ function Kt({
|
|
|
1917
1922
|
ariaLabel: d
|
|
1918
1923
|
}) {
|
|
1919
1924
|
const { disabled: c, invalid: g, clearable: b, size: N } = l;
|
|
1920
|
-
return /* @__PURE__ */
|
|
1921
|
-
/* @__PURE__ */
|
|
1925
|
+
return /* @__PURE__ */ w("span", { ref: Ve(t, e), className: R(B.triggerWrap, r), ...n, children: [
|
|
1926
|
+
/* @__PURE__ */ w(
|
|
1922
1927
|
"button",
|
|
1923
1928
|
{
|
|
1924
1929
|
ref: o,
|
|
@@ -1968,16 +1973,16 @@ const Ih = V(function({
|
|
|
1968
1973
|
className: f,
|
|
1969
1974
|
...h
|
|
1970
1975
|
}, _) {
|
|
1971
|
-
const v = He(), m = fe(), d = Qe(), c = r ?? m.datePlaceholder, g = a ?? (v == null ? void 0 : v.invalid) ?? !1, [b, N] = W(!1), [k,
|
|
1972
|
-
const
|
|
1973
|
-
|
|
1974
|
-
}, C = (
|
|
1976
|
+
const v = He(), m = fe(), d = Qe(), c = r ?? m.datePlaceholder, g = a ?? (v == null ? void 0 : v.invalid) ?? !1, [b, N] = W(!1), [k, y] = W(() => Oe(e ?? /* @__PURE__ */ new Date())), [$, E] = W(() => e ?? /* @__PURE__ */ new Date()), x = q(null), A = q(null), P = q(null), p = Le(), H = () => {
|
|
1977
|
+
const F = e ?? /* @__PURE__ */ new Date();
|
|
1978
|
+
y(Oe(F)), E(F), N(!0);
|
|
1979
|
+
}, C = (F = !0) => {
|
|
1975
1980
|
var Y;
|
|
1976
|
-
N(!1),
|
|
1977
|
-
}, D = (
|
|
1978
|
-
n(ln(
|
|
1981
|
+
N(!1), F && ((Y = x.current) == null || Y.focus());
|
|
1982
|
+
}, D = (F) => {
|
|
1983
|
+
n(ln(F)), C();
|
|
1979
1984
|
};
|
|
1980
|
-
return /* @__PURE__ */
|
|
1985
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
1981
1986
|
/* @__PURE__ */ s(
|
|
1982
1987
|
Kt,
|
|
1983
1988
|
{
|
|
@@ -2003,8 +2008,8 @@ const Ih = V(function({
|
|
|
2003
2008
|
ft,
|
|
2004
2009
|
{
|
|
2005
2010
|
open: b,
|
|
2006
|
-
onOpenChange: (
|
|
2007
|
-
|
|
2011
|
+
onOpenChange: (F) => {
|
|
2012
|
+
F || N(!1);
|
|
2008
2013
|
},
|
|
2009
2014
|
anchorRef: x,
|
|
2010
2015
|
insideRefs: [A],
|
|
@@ -2012,20 +2017,20 @@ const Ih = V(function({
|
|
|
2012
2017
|
ariaLabel: m.datePanel,
|
|
2013
2018
|
id: p,
|
|
2014
2019
|
className: B.panel,
|
|
2015
|
-
children: /* @__PURE__ */
|
|
2020
|
+
children: /* @__PURE__ */ w("div", { ref: P, children: [
|
|
2016
2021
|
/* @__PURE__ */ s(
|
|
2017
2022
|
Ut,
|
|
2018
2023
|
{
|
|
2019
2024
|
autoFocus: !0,
|
|
2020
2025
|
view: k,
|
|
2021
|
-
onView:
|
|
2026
|
+
onView: y,
|
|
2022
2027
|
active: $,
|
|
2023
|
-
onActive:
|
|
2028
|
+
onActive: E,
|
|
2024
2029
|
value: e,
|
|
2025
2030
|
onPick: D
|
|
2026
2031
|
}
|
|
2027
2032
|
),
|
|
2028
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ w("div", { className: B.foot, children: [
|
|
2029
2034
|
/* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", className: B.hangStart, onClick: () => D(/* @__PURE__ */ new Date()), children: m.today }),
|
|
2030
2035
|
e && /* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", className: B.hangEnd, onClick: () => {
|
|
2031
2036
|
n(null), C();
|
|
@@ -2063,12 +2068,12 @@ function Ia(t, e) {
|
|
|
2063
2068
|
}
|
|
2064
2069
|
const dt = (t) => String(t).padStart(2, "0");
|
|
2065
2070
|
function Ct({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled: i = !1 }) {
|
|
2066
|
-
const l = fe(), f =
|
|
2071
|
+
const l = fe(), f = q(t);
|
|
2067
2072
|
f.current = t;
|
|
2068
2073
|
const h = (c) => {
|
|
2069
2074
|
const g = Number.parseInt(f.current, 10) || 0;
|
|
2070
2075
|
e(dt((g + c + n + 1) % (n + 1)));
|
|
2071
|
-
}, _ =
|
|
2076
|
+
}, _ = q(null), v = () => {
|
|
2072
2077
|
_.current !== null && (clearTimeout(_.current), _.current = null);
|
|
2073
2078
|
};
|
|
2074
2079
|
ae(() => v, []);
|
|
@@ -2084,7 +2089,7 @@ function Ct({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
|
|
|
2084
2089
|
}, d = (c) => {
|
|
2085
2090
|
c.key !== "ArrowUp" && c.key !== "ArrowDown" || (c.preventDefault(), h(c.key === "ArrowUp" ? 1 : -1));
|
|
2086
2091
|
};
|
|
2087
|
-
return /* @__PURE__ */
|
|
2092
|
+
return /* @__PURE__ */ w("span", { className: R(B.timeFieldWrap, i && B.timeFieldDisabled), children: [
|
|
2088
2093
|
/* @__PURE__ */ s(
|
|
2089
2094
|
"input",
|
|
2090
2095
|
{
|
|
@@ -2111,7 +2116,7 @@ function Ct({ value: t, onValue: e, max: n, label: r, next: o, own: a, disabled:
|
|
|
2111
2116
|
}
|
|
2112
2117
|
}
|
|
2113
2118
|
),
|
|
2114
|
-
/* @__PURE__ */
|
|
2119
|
+
/* @__PURE__ */ w("span", { className: B.timeStepper, children: [
|
|
2115
2120
|
/* @__PURE__ */ s(
|
|
2116
2121
|
"button",
|
|
2117
2122
|
{
|
|
@@ -2161,9 +2166,9 @@ const Bh = V(function({
|
|
|
2161
2166
|
className: h,
|
|
2162
2167
|
..._
|
|
2163
2168
|
}, v) {
|
|
2164
|
-
const m = He(), d = fe(), c = Qe(), g = o ?? d.dateTimePlaceholder, b = l ?? (m == null ? void 0 : m.invalid) ?? !1, [N, k] = W(!1), [
|
|
2169
|
+
const m = He(), d = fe(), c = Qe(), g = o ?? d.dateTimePlaceholder, b = l ?? (m == null ? void 0 : m.invalid) ?? !1, [N, k] = W(!1), [y, $] = W(() => Oe(e ?? /* @__PURE__ */ new Date())), [E, x] = W(() => e ?? /* @__PURE__ */ new Date()), [A, P] = W(e), [p, H] = W("00"), [C, D] = W("00"), [F, Y] = W("00"), [M, L] = W("earlier"), I = q(null), K = q(null), ie = q(null), G = q(null), Q = q(null), ce = q(null), me = Le(), _e = () => {
|
|
2165
2170
|
const se = e ?? /* @__PURE__ */ new Date();
|
|
2166
|
-
$(Oe(se)), x(se),
|
|
2171
|
+
$(Oe(se)), x(se), P(e ? se : null), H(dt(e ? se.getHours() : 0)), D(dt(e ? se.getMinutes() : 0)), Y(dt(e && r ? se.getSeconds() : 0)), L(e ? dn(e) : "earlier"), k(!0);
|
|
2167
2172
|
}, J = (se = !0) => {
|
|
2168
2173
|
var T;
|
|
2169
2174
|
k(!1), se && ((T = I.current) == null || T.focus());
|
|
@@ -2173,13 +2178,13 @@ const Bh = V(function({
|
|
|
2173
2178
|
A.getDate(),
|
|
2174
2179
|
Math.min(23, Number.parseInt(p, 10) || 0),
|
|
2175
2180
|
Math.min(59, Number.parseInt(C, 10) || 0),
|
|
2176
|
-
r ? Math.min(59, Number.parseInt(
|
|
2177
|
-
) : null, [A, p, C,
|
|
2181
|
+
r ? Math.min(59, Number.parseInt(F, 10) || 0) : 0
|
|
2182
|
+
) : null, [A, p, C, F, r]), te = pe(() => ee ? ee.kind === "ambiguous" ? M === "earlier" ? ee.earlier : ee.later : ee.date : null, [ee, M]), de = () => {
|
|
2178
2183
|
te && (n(te), J());
|
|
2179
2184
|
}, O = () => {
|
|
2180
2185
|
n(Ia(/* @__PURE__ */ new Date(), r)), J();
|
|
2181
2186
|
};
|
|
2182
|
-
return /* @__PURE__ */
|
|
2187
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
2183
2188
|
/* @__PURE__ */ s(
|
|
2184
2189
|
Kt,
|
|
2185
2190
|
{
|
|
@@ -2214,25 +2219,25 @@ const Bh = V(function({
|
|
|
2214
2219
|
ariaLabel: d.dateTimePanel,
|
|
2215
2220
|
id: me,
|
|
2216
2221
|
className: B.panel,
|
|
2217
|
-
children: /* @__PURE__ */
|
|
2222
|
+
children: /* @__PURE__ */ w("div", { ref: ie, children: [
|
|
2218
2223
|
/* @__PURE__ */ s(
|
|
2219
2224
|
Ut,
|
|
2220
2225
|
{
|
|
2221
2226
|
autoFocus: !0,
|
|
2222
|
-
view:
|
|
2227
|
+
view: y,
|
|
2223
2228
|
onView: $,
|
|
2224
|
-
active:
|
|
2229
|
+
active: E,
|
|
2225
2230
|
onActive: x,
|
|
2226
2231
|
value: A,
|
|
2227
2232
|
onPick: (se) => {
|
|
2228
|
-
|
|
2233
|
+
P(se), x(se), L("earlier"), requestAnimationFrame(() => {
|
|
2229
2234
|
var T;
|
|
2230
2235
|
return (T = G.current) == null ? void 0 : T.focus();
|
|
2231
2236
|
});
|
|
2232
2237
|
}
|
|
2233
2238
|
}
|
|
2234
2239
|
),
|
|
2235
|
-
/* @__PURE__ */
|
|
2240
|
+
/* @__PURE__ */ w(
|
|
2236
2241
|
"div",
|
|
2237
2242
|
{
|
|
2238
2243
|
className: B.timeRow,
|
|
@@ -2241,28 +2246,28 @@ const Bh = V(function({
|
|
|
2241
2246
|
},
|
|
2242
2247
|
children: [
|
|
2243
2248
|
/* @__PURE__ */ s("span", { className: B.timeLabel, children: d.timeOfDay }),
|
|
2244
|
-
/* @__PURE__ */
|
|
2249
|
+
/* @__PURE__ */ w("div", { className: B.timeGroup, children: [
|
|
2245
2250
|
/* @__PURE__ */ s(Ct, { own: G, value: p, onValue: H, max: 23, label: d.hour, next: Q }),
|
|
2246
2251
|
/* @__PURE__ */ s("span", { className: B.timeSeparator, children: ":" }),
|
|
2247
2252
|
/* @__PURE__ */ s(Ct, { own: Q, value: C, onValue: D, max: 59, label: d.minute, next: r ? ce : void 0 }),
|
|
2248
|
-
r && /* @__PURE__ */
|
|
2253
|
+
r && /* @__PURE__ */ w(Re, { children: [
|
|
2249
2254
|
/* @__PURE__ */ s("span", { className: B.timeSeparator, children: ":" }),
|
|
2250
|
-
/* @__PURE__ */ s(Ct, { own: ce, value:
|
|
2255
|
+
/* @__PURE__ */ s(Ct, { own: ce, value: F, onValue: Y, max: 59, label: d.second })
|
|
2251
2256
|
] })
|
|
2252
2257
|
] })
|
|
2253
2258
|
]
|
|
2254
2259
|
}
|
|
2255
2260
|
),
|
|
2256
2261
|
(ee == null ? void 0 : ee.kind) === "missing" && /* @__PURE__ */ s("p", { className: B.dstHint, children: d.timeMissingHint(c.time(ee.date, r)) }),
|
|
2257
|
-
(ee == null ? void 0 : ee.kind) === "ambiguous" && /* @__PURE__ */
|
|
2262
|
+
(ee == null ? void 0 : ee.kind) === "ambiguous" && /* @__PURE__ */ w("div", { className: B.dstChoice, children: [
|
|
2258
2263
|
/* @__PURE__ */ s("p", { className: B.dstHint, children: d.timeAmbiguousHint }),
|
|
2259
|
-
/* @__PURE__ */
|
|
2264
|
+
/* @__PURE__ */ w("div", { className: B.dstButtons, children: [
|
|
2260
2265
|
/* @__PURE__ */ s(
|
|
2261
2266
|
Te,
|
|
2262
2267
|
{
|
|
2263
2268
|
size: "sm",
|
|
2264
2269
|
variant: M === "earlier" ? "primary" : "secondary",
|
|
2265
|
-
onClick: () =>
|
|
2270
|
+
onClick: () => L("earlier"),
|
|
2266
2271
|
children: d.timeEarlier(c.offset(ee.earlier))
|
|
2267
2272
|
}
|
|
2268
2273
|
),
|
|
@@ -2271,14 +2276,14 @@ const Bh = V(function({
|
|
|
2271
2276
|
{
|
|
2272
2277
|
size: "sm",
|
|
2273
2278
|
variant: M === "later" ? "primary" : "secondary",
|
|
2274
|
-
onClick: () =>
|
|
2279
|
+
onClick: () => L("later"),
|
|
2275
2280
|
children: d.timeLater(c.offset(ee.later))
|
|
2276
2281
|
}
|
|
2277
2282
|
)
|
|
2278
2283
|
] })
|
|
2279
2284
|
] }),
|
|
2280
|
-
/* @__PURE__ */
|
|
2281
|
-
/* @__PURE__ */
|
|
2285
|
+
/* @__PURE__ */ w("div", { className: B.foot, children: [
|
|
2286
|
+
/* @__PURE__ */ w("div", { className: B.footLeft, children: [
|
|
2282
2287
|
/* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", className: B.hangStart, onClick: O, children: d.now }),
|
|
2283
2288
|
e && /* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", onClick: () => {
|
|
2284
2289
|
n(null), J();
|
|
@@ -2290,7 +2295,7 @@ const Bh = V(function({
|
|
|
2290
2295
|
}
|
|
2291
2296
|
)
|
|
2292
2297
|
] });
|
|
2293
|
-
}), Ba = 1440 * 60 * 1e3, jt = (t, e) => Math.round((
|
|
2298
|
+
}), Ba = 1440 * 60 * 1e3, jt = (t, e) => Math.round((qe(e).getTime() - qe(t).getTime()) / Ba) + 1, Oa = [
|
|
2294
2299
|
"today",
|
|
2295
2300
|
"yesterday",
|
|
2296
2301
|
"last7Days",
|
|
@@ -2301,7 +2306,7 @@ const Bh = V(function({
|
|
|
2301
2306
|
"thisYear"
|
|
2302
2307
|
];
|
|
2303
2308
|
function Ha(t, e) {
|
|
2304
|
-
const n =
|
|
2309
|
+
const n = qe(e);
|
|
2305
2310
|
switch (t) {
|
|
2306
2311
|
case "today":
|
|
2307
2312
|
return { from: n, to: n };
|
|
@@ -2326,7 +2331,7 @@ function Ha(t, e) {
|
|
|
2326
2331
|
const An = (t) => Oa.map((e) => ({
|
|
2327
2332
|
label: t.presets[e],
|
|
2328
2333
|
range: () => Ha(e, /* @__PURE__ */ new Date())
|
|
2329
|
-
})), Oh = An(
|
|
2334
|
+
})), Oh = An(wt);
|
|
2330
2335
|
function za(t, e) {
|
|
2331
2336
|
const n = Oe(t).getTime(), r = Oe(Gt(t, 1)).getTime(), o = Oe(e).getTime();
|
|
2332
2337
|
return o === n || o === r ? null : o < n ? Oe(e) : Gt(Oe(e), -1);
|
|
@@ -2358,12 +2363,12 @@ function br({ presets: t, isActive: e, onChoose: n }) {
|
|
|
2358
2363
|
o.label
|
|
2359
2364
|
)) });
|
|
2360
2365
|
}
|
|
2361
|
-
function
|
|
2366
|
+
function wr({ view: t, onView: e, ...n }) {
|
|
2362
2367
|
const r = Wa(n), o = Gt(t, 1), a = (i) => {
|
|
2363
2368
|
const l = za(t, i);
|
|
2364
2369
|
l && e(l);
|
|
2365
2370
|
};
|
|
2366
|
-
return /* @__PURE__ */
|
|
2371
|
+
return /* @__PURE__ */ w("div", { className: B.monthPair, children: [
|
|
2367
2372
|
/* @__PURE__ */ s("div", { className: B.monthColumn, children: /* @__PURE__ */ s(Ut, { autoFocus: !0, view: t, onView: a, withoutNext: !0, ...r }) }),
|
|
2368
2373
|
/* @__PURE__ */ s("div", { className: B.monthColumn, children: /* @__PURE__ */ s(Ut, { view: o, onView: a, withoutPrevious: !0, ...r }) })
|
|
2369
2374
|
] });
|
|
@@ -2380,20 +2385,20 @@ const Hh = V(function({
|
|
|
2380
2385
|
className: h,
|
|
2381
2386
|
..._
|
|
2382
2387
|
}, v) {
|
|
2383
|
-
const m = He(), d = fe(), c = Qe(), g = r ?? d.dateRangePlaceholder, b = a ?? (m == null ? void 0 : m.invalid) ?? !1, N = pe(() => f ?? An(d), [f, d]), [k,
|
|
2388
|
+
const m = He(), d = fe(), c = Qe(), g = r ?? d.dateRangePlaceholder, b = a ?? (m == null ? void 0 : m.invalid) ?? !1, N = pe(() => f ?? An(d), [f, d]), [k, y] = W(!1), [$, E] = W(() => Oe((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [x, A] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [P, p] = W(null), [H, C] = W(null), D = q(null), F = q(null), Y = q(null), M = Le(), L = () => {
|
|
2384
2389
|
const J = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2385
|
-
|
|
2390
|
+
E(Oe(J)), A(J), p(null), C(null), y(!0);
|
|
2386
2391
|
}, I = (J = !0) => {
|
|
2387
2392
|
var ee;
|
|
2388
|
-
|
|
2393
|
+
y(!1), p(null), C(null), J && ((ee = D.current) == null || ee.focus());
|
|
2389
2394
|
}, K = (J, ee) => {
|
|
2390
2395
|
n(vr(J, ee, "day", !1)), I();
|
|
2391
2396
|
}, ie = (J) => {
|
|
2392
|
-
if (!
|
|
2397
|
+
if (!P) {
|
|
2393
2398
|
p(J), A(J);
|
|
2394
2399
|
return;
|
|
2395
2400
|
}
|
|
2396
|
-
K(
|
|
2401
|
+
K(P, J);
|
|
2397
2402
|
};
|
|
2398
2403
|
ae(() => {
|
|
2399
2404
|
var ee, te;
|
|
@@ -2401,36 +2406,36 @@ const Hh = V(function({
|
|
|
2401
2406
|
const J = Y.current;
|
|
2402
2407
|
J && (ee = document.activeElement) != null && ee.closest(`.${B.grid}`) && ((te = J.querySelector('[data-active="true"]')) == null || te.focus());
|
|
2403
2408
|
}, [x, k]);
|
|
2404
|
-
const G =
|
|
2405
|
-
if (
|
|
2406
|
-
const [J, ee] =
|
|
2409
|
+
const G = P ?? (e == null ? void 0 : e.from) ?? null, Q = P ? null : (e == null ? void 0 : e.to) ?? null, ce = P ? H : null, me = (() => {
|
|
2410
|
+
if (P && H) {
|
|
2411
|
+
const [J, ee] = qe(H).getTime() < qe(P).getTime() ? [H, P] : [P, H], te = jt(J, ee);
|
|
2407
2412
|
return d.rangePreview(c.dateShort(J), c.dateShort(ee), te);
|
|
2408
2413
|
}
|
|
2409
|
-
if (
|
|
2414
|
+
if (P) return d.chooseEndDate;
|
|
2410
2415
|
if (e) {
|
|
2411
2416
|
const J = jt(e.from, e.to);
|
|
2412
2417
|
return d.daysSelected(J);
|
|
2413
2418
|
}
|
|
2414
2419
|
return d.chooseStartDate;
|
|
2415
2420
|
})(), _e = (J) => {
|
|
2416
|
-
if (!e ||
|
|
2421
|
+
if (!e || P) return !1;
|
|
2417
2422
|
const ee = J.range();
|
|
2418
2423
|
return Ye(ee.from, e.from) && Ye(ee.to, e.to);
|
|
2419
2424
|
};
|
|
2420
|
-
return /* @__PURE__ */
|
|
2425
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
2421
2426
|
/* @__PURE__ */ s(
|
|
2422
2427
|
Kt,
|
|
2423
2428
|
{
|
|
2424
2429
|
rootRef: v,
|
|
2425
2430
|
root: _,
|
|
2426
2431
|
className: h,
|
|
2427
|
-
wrapRef:
|
|
2432
|
+
wrapRef: F,
|
|
2428
2433
|
triggerRef: D,
|
|
2429
|
-
panel: { id: M, open: k, onToggle: () => k ?
|
|
2434
|
+
panel: { id: M, open: k, onToggle: () => k ? y(!1) : L() },
|
|
2430
2435
|
field: m,
|
|
2431
2436
|
state: { disabled: o, invalid: b, clearable: l, size: i },
|
|
2432
2437
|
hasValue: !!e,
|
|
2433
|
-
display: e && /* @__PURE__ */
|
|
2438
|
+
display: e && /* @__PURE__ */ w(Re, { children: [
|
|
2434
2439
|
c.date(e.from),
|
|
2435
2440
|
/* @__PURE__ */ s("span", { className: B.rangeDash, children: "–" }),
|
|
2436
2441
|
c.date(e.to)
|
|
@@ -2448,16 +2453,16 @@ const Hh = V(function({
|
|
|
2448
2453
|
{
|
|
2449
2454
|
open: k,
|
|
2450
2455
|
onOpenChange: (J) => {
|
|
2451
|
-
J ||
|
|
2456
|
+
J || y(!1);
|
|
2452
2457
|
},
|
|
2453
2458
|
anchorRef: D,
|
|
2454
|
-
insideRefs: [
|
|
2459
|
+
insideRefs: [F],
|
|
2455
2460
|
role: "dialog",
|
|
2456
2461
|
ariaLabel: d.dateRangePanel,
|
|
2457
2462
|
id: M,
|
|
2458
2463
|
className: R(B.panel, B.rangePanel),
|
|
2459
|
-
children: /* @__PURE__ */
|
|
2460
|
-
/* @__PURE__ */
|
|
2464
|
+
children: /* @__PURE__ */ w("div", { ref: Y, children: [
|
|
2465
|
+
/* @__PURE__ */ w("div", { className: B.rangeBody, children: [
|
|
2461
2466
|
/* @__PURE__ */ s(
|
|
2462
2467
|
br,
|
|
2463
2468
|
{
|
|
@@ -2470,10 +2475,10 @@ const Hh = V(function({
|
|
|
2470
2475
|
}
|
|
2471
2476
|
),
|
|
2472
2477
|
/* @__PURE__ */ s(
|
|
2473
|
-
|
|
2478
|
+
wr,
|
|
2474
2479
|
{
|
|
2475
2480
|
view: $,
|
|
2476
|
-
onView:
|
|
2481
|
+
onView: E,
|
|
2477
2482
|
active: x,
|
|
2478
2483
|
onActive: A,
|
|
2479
2484
|
onPick: ie,
|
|
@@ -2484,9 +2489,9 @@ const Hh = V(function({
|
|
|
2484
2489
|
}
|
|
2485
2490
|
)
|
|
2486
2491
|
] }),
|
|
2487
|
-
/* @__PURE__ */
|
|
2492
|
+
/* @__PURE__ */ w("div", { className: B.foot, children: [
|
|
2488
2493
|
/* @__PURE__ */ s("span", { className: B.footNote, "aria-live": "polite", children: me }),
|
|
2489
|
-
e && !
|
|
2494
|
+
e && !P && /* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", className: B.hangEnd, onClick: () => {
|
|
2490
2495
|
n(null), I();
|
|
2491
2496
|
}, children: d.clear })
|
|
2492
2497
|
] })
|
|
@@ -2498,7 +2503,7 @@ const Hh = V(function({
|
|
|
2498
2503
|
hour: "23",
|
|
2499
2504
|
minute: "59",
|
|
2500
2505
|
second: t ? "59" : "00"
|
|
2501
|
-
}), Ga = (t, e, n) => t.getHours() === 0 && t.getMinutes() === 0 && t.getSeconds() === 0 && e.getHours() === 23 && e.getMinutes() === 59 && (n ? e.getSeconds() === 59 : e.getSeconds() === 0),
|
|
2506
|
+
}), Ga = (t, e, n) => t.getHours() === 0 && t.getMinutes() === 0 && t.getSeconds() === 0 && e.getHours() === 23 && e.getMinutes() === 59 && (n ? e.getSeconds() === 59 : e.getSeconds() === 0), qn = (t, e) => ({
|
|
2502
2507
|
hour: dt(t.getHours()),
|
|
2503
2508
|
minute: dt(t.getMinutes()),
|
|
2504
2509
|
second: dt(e ? t.getSeconds() : 0)
|
|
@@ -2522,51 +2527,51 @@ const Hh = V(function({
|
|
|
2522
2527
|
className: _,
|
|
2523
2528
|
...v
|
|
2524
2529
|
}, m) {
|
|
2525
|
-
const d = He(), c = fe(), g = Qe(), b = o ?? c.dateRangePlaceholder, N = i ?? (d == null ? void 0 : d.invalid) ?? !1, k = pe(() => h ?? An(c), [h, c]), [
|
|
2530
|
+
const d = He(), c = fe(), g = Qe(), b = o ?? c.dateRangePlaceholder, N = i ?? (d == null ? void 0 : d.invalid) ?? !1, k = pe(() => h ?? An(c), [h, c]), [y, $] = W(!1), [E, x] = W(() => Oe((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [A, P] = W(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [p, H] = W(null), [C, D] = W(null), [F, Y] = W(null), [M, L] = W(Jt), [I, K] = W(() => en(r)), [ie, G] = W(!0), [Q, ce] = W("earlier"), [me, _e] = W("earlier"), J = q(null), ee = q(null), te = q(null), de = q(null), O = q(null), se = q(null), T = q(null), U = q(null), z = q(null), Z = q(null), ue = Le(), ge = () => {
|
|
2526
2531
|
const ne = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2527
|
-
x(Oe(ne)),
|
|
2532
|
+
x(Oe(ne)), P(ne), H(e ? qe(e.from) : null), D(e ? qe(e.to) : null), L(e ? qn(e.from, r) : Jt), K(e ? qn(e.to, r) : en(r)), G(e ? Ga(e.from, e.to, r) : !0), ce(e ? dn(e.from) : "earlier"), _e(e ? dn(e.to) : "earlier"), Y(null), $(!0);
|
|
2528
2533
|
}, be = (ne = !0) => {
|
|
2529
2534
|
var oe;
|
|
2530
2535
|
$(!1), Y(null), ne && ((oe = J.current) == null || oe.focus());
|
|
2531
2536
|
}, Ae = (ne) => {
|
|
2532
2537
|
if (!p || C) {
|
|
2533
|
-
H(ne), D(null),
|
|
2538
|
+
H(ne), D(null), P(ne);
|
|
2534
2539
|
return;
|
|
2535
2540
|
}
|
|
2536
2541
|
const [oe, ve] = gr(p, ne);
|
|
2537
|
-
H(
|
|
2542
|
+
H(qe(oe)), D(qe(ve)), P(ne), ce("earlier"), _e("earlier"), requestAnimationFrame(() => {
|
|
2538
2543
|
var Ie, ht;
|
|
2539
2544
|
ie ? (Ie = Z.current) == null || Ie.focus() : (ht = de.current) == null || ht.focus();
|
|
2540
2545
|
});
|
|
2541
2546
|
};
|
|
2542
2547
|
ae(() => {
|
|
2543
2548
|
var ve;
|
|
2544
|
-
if (!
|
|
2549
|
+
if (!y) return;
|
|
2545
2550
|
const ne = te.current;
|
|
2546
2551
|
if (!ne) return;
|
|
2547
2552
|
const oe = document.activeElement;
|
|
2548
2553
|
!oe || !ne.contains(oe) || oe.closest(`.${B.grid}`) && ((ve = ne.querySelector('[data-active="true"]')) == null || ve.focus());
|
|
2549
|
-
}, [A,
|
|
2554
|
+
}, [A, y]);
|
|
2550
2555
|
const Me = ie ? Jt : M, ke = pe(
|
|
2551
2556
|
() => ie ? en(r) : I,
|
|
2552
2557
|
[ie, r, I]
|
|
2553
|
-
),
|
|
2554
|
-
if (!Ne || !
|
|
2555
|
-
const [ne, oe] =
|
|
2558
|
+
), we = pe(() => In(p, Me, r), [p, Me, r]), ye = pe(() => In(C, ke, r), [C, ke, r]), Ne = pe(() => Bn(we, Q), [we, Q]), Pe = pe(() => Bn(ye, me), [ye, me]), u = () => {
|
|
2559
|
+
if (!Ne || !Pe) return;
|
|
2560
|
+
const [ne, oe] = qa(Ne, Pe);
|
|
2556
2561
|
n({ from: ne, to: oe }), be();
|
|
2557
|
-
}, S = p, j = C, X = p && !C ?
|
|
2558
|
-
if (!Ne || !
|
|
2562
|
+
}, S = p, j = C, X = p && !C ? F : null, le = () => {
|
|
2563
|
+
if (!Ne || !Pe) return "";
|
|
2559
2564
|
if (ie && p && C) {
|
|
2560
2565
|
const Xt = jt(p, C);
|
|
2561
2566
|
return c.daysAllDay(Xt);
|
|
2562
2567
|
}
|
|
2563
|
-
const ne = Math.abs(
|
|
2568
|
+
const ne = Math.abs(Pe.getTime() - Ne.getTime()), oe = Math.round(ne / 6e4), ve = Math.floor(oe / 1440), Ie = Math.floor(oe % 1440 / 60), ht = oe % 60, at = [];
|
|
2564
2569
|
return ve > 0 && at.push(c.days(ve)), Ie > 0 && at.push(c.hoursShort(Ie)), (ht > 0 || at.length === 0) && at.push(c.minutesShort(ht)), c.duration(at);
|
|
2565
2570
|
}, xe = (() => {
|
|
2566
2571
|
if (!p) return c.chooseStartDate;
|
|
2567
2572
|
if (!C) {
|
|
2568
|
-
if (
|
|
2569
|
-
const [ne, oe] =
|
|
2573
|
+
if (F) {
|
|
2574
|
+
const [ne, oe] = qe(F).getTime() < qe(p).getTime() ? [F, p] : [p, F], ve = jt(ne, oe);
|
|
2570
2575
|
return c.rangePreview(g.dateShort(ne), g.dateShort(oe), ve);
|
|
2571
2576
|
}
|
|
2572
2577
|
return c.chooseEndDate;
|
|
@@ -2576,20 +2581,20 @@ const Hh = V(function({
|
|
|
2576
2581
|
if (!p || !C || !ie) return !1;
|
|
2577
2582
|
const oe = ne.range();
|
|
2578
2583
|
return Ye(oe.from, p) && Ye(oe.to, C);
|
|
2579
|
-
},
|
|
2580
|
-
const [Xt, Rn,
|
|
2581
|
-
return /* @__PURE__ */
|
|
2582
|
-
/* @__PURE__ */
|
|
2584
|
+
}, Ee = (ne, oe, ve, Ie, ht, at) => {
|
|
2585
|
+
const [Xt, Rn, Ln] = ht;
|
|
2586
|
+
return /* @__PURE__ */ w("div", { className: B.timeHalf, children: [
|
|
2587
|
+
/* @__PURE__ */ w("span", { className: B.timeHalfHead, children: [
|
|
2583
2588
|
/* @__PURE__ */ s("span", { className: B.timeLabel, children: ne === "from" ? c.sideFrom : c.sideTo }),
|
|
2584
2589
|
/* @__PURE__ */ s("span", { className: R(B.timeDate, !oe && B.placeholder), children: oe ? g.dateShort(oe) : "–" })
|
|
2585
2590
|
] }),
|
|
2586
|
-
/* @__PURE__ */
|
|
2591
|
+
/* @__PURE__ */ w("div", { className: B.timeGroup, children: [
|
|
2587
2592
|
/* @__PURE__ */ s(
|
|
2588
2593
|
Ct,
|
|
2589
2594
|
{
|
|
2590
2595
|
own: Xt,
|
|
2591
2596
|
value: ve.hour,
|
|
2592
|
-
onValue: (
|
|
2597
|
+
onValue: (Lt) => Ie({ ...ve, hour: Lt }),
|
|
2593
2598
|
max: 23,
|
|
2594
2599
|
label: ne === "from" ? c.startHour : c.endHour,
|
|
2595
2600
|
next: Rn,
|
|
@@ -2602,21 +2607,21 @@ const Hh = V(function({
|
|
|
2602
2607
|
{
|
|
2603
2608
|
own: Rn,
|
|
2604
2609
|
value: ve.minute,
|
|
2605
|
-
onValue: (
|
|
2610
|
+
onValue: (Lt) => Ie({ ...ve, minute: Lt }),
|
|
2606
2611
|
max: 59,
|
|
2607
2612
|
label: ne === "from" ? c.startMinute : c.endMinute,
|
|
2608
|
-
next: r ?
|
|
2613
|
+
next: r ? Ln : at,
|
|
2609
2614
|
disabled: ie
|
|
2610
2615
|
}
|
|
2611
2616
|
),
|
|
2612
|
-
r && /* @__PURE__ */
|
|
2617
|
+
r && /* @__PURE__ */ w(Re, { children: [
|
|
2613
2618
|
/* @__PURE__ */ s("span", { className: B.timeSeparator, children: ":" }),
|
|
2614
2619
|
/* @__PURE__ */ s(
|
|
2615
2620
|
Ct,
|
|
2616
2621
|
{
|
|
2617
|
-
own:
|
|
2622
|
+
own: Ln,
|
|
2618
2623
|
value: ve.second,
|
|
2619
|
-
onValue: (
|
|
2624
|
+
onValue: (Lt) => Ie({ ...ve, second: Lt }),
|
|
2620
2625
|
max: 59,
|
|
2621
2626
|
label: ne === "from" ? c.startSecond : c.endSecond,
|
|
2622
2627
|
next: at,
|
|
@@ -2626,14 +2631,14 @@ const Hh = V(function({
|
|
|
2626
2631
|
] })
|
|
2627
2632
|
] })
|
|
2628
2633
|
] });
|
|
2629
|
-
},
|
|
2634
|
+
}, Fe = (ne, oe, ve, Ie) => !oe || oe.kind === "ok" ? null : oe.kind === "missing" ? /* @__PURE__ */ s("p", { className: B.dstHint, children: c.timeMissingHintSide(ne, g.time(oe.date, r)) }) : /* @__PURE__ */ w("div", { className: B.dstChoice, children: [
|
|
2630
2635
|
/* @__PURE__ */ s("p", { className: B.dstHint, children: c.timeAmbiguousHintSide(ne) }),
|
|
2631
|
-
/* @__PURE__ */
|
|
2636
|
+
/* @__PURE__ */ w("div", { className: B.dstButtons, children: [
|
|
2632
2637
|
/* @__PURE__ */ s(Te, { size: "sm", variant: ve === "earlier" ? "primary" : "secondary", onClick: () => Ie("earlier"), children: c.timeEarlier(g.offset(oe.earlier)) }),
|
|
2633
2638
|
/* @__PURE__ */ s(Te, { size: "sm", variant: ve === "later" ? "primary" : "secondary", onClick: () => Ie("later"), children: c.timeLater(g.offset(oe.later)) })
|
|
2634
2639
|
] })
|
|
2635
2640
|
] });
|
|
2636
|
-
return /* @__PURE__ */
|
|
2641
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
2637
2642
|
/* @__PURE__ */ s(
|
|
2638
2643
|
Kt,
|
|
2639
2644
|
{
|
|
@@ -2642,17 +2647,17 @@ const Hh = V(function({
|
|
|
2642
2647
|
className: _,
|
|
2643
2648
|
wrapRef: ee,
|
|
2644
2649
|
triggerRef: J,
|
|
2645
|
-
panel: { id: ue, open:
|
|
2650
|
+
panel: { id: ue, open: y, onToggle: () => y ? $(!1) : ge() },
|
|
2646
2651
|
field: d,
|
|
2647
2652
|
state: { disabled: a, invalid: N, clearable: f, size: l },
|
|
2648
2653
|
hasValue: !!e,
|
|
2649
|
-
display: e && (Ye(e.from, e.to) ? /* @__PURE__ */
|
|
2654
|
+
display: e && (Ye(e.from, e.to) ? /* @__PURE__ */ w(Re, { children: [
|
|
2650
2655
|
g.date(e.from),
|
|
2651
2656
|
", ",
|
|
2652
2657
|
g.time(e.from, r),
|
|
2653
2658
|
/* @__PURE__ */ s("span", { className: B.rangeDash, children: "–" }),
|
|
2654
2659
|
g.time(e.to, r)
|
|
2655
|
-
] }) : /* @__PURE__ */
|
|
2660
|
+
] }) : /* @__PURE__ */ w(Re, { children: [
|
|
2656
2661
|
g.date(e.from),
|
|
2657
2662
|
", ",
|
|
2658
2663
|
g.time(e.from, r),
|
|
@@ -2664,7 +2669,7 @@ const Hh = V(function({
|
|
|
2664
2669
|
icon: /* @__PURE__ */ s(ir, { className: B.icon }),
|
|
2665
2670
|
placeholder: b,
|
|
2666
2671
|
onClear: () => {
|
|
2667
|
-
n(null),
|
|
2672
|
+
n(null), y && be(!1);
|
|
2668
2673
|
},
|
|
2669
2674
|
ariaLabel: c.dateTimeRangeClear
|
|
2670
2675
|
}
|
|
@@ -2672,7 +2677,7 @@ const Hh = V(function({
|
|
|
2672
2677
|
/* @__PURE__ */ s(
|
|
2673
2678
|
ft,
|
|
2674
2679
|
{
|
|
2675
|
-
open:
|
|
2680
|
+
open: y,
|
|
2676
2681
|
onOpenChange: (ne) => {
|
|
2677
2682
|
ne || $(!1);
|
|
2678
2683
|
},
|
|
@@ -2682,8 +2687,8 @@ const Hh = V(function({
|
|
|
2682
2687
|
ariaLabel: c.dateTimeRangePanel,
|
|
2683
2688
|
id: ue,
|
|
2684
2689
|
className: R(B.panel, B.rangePanel),
|
|
2685
|
-
children: /* @__PURE__ */
|
|
2686
|
-
/* @__PURE__ */
|
|
2690
|
+
children: /* @__PURE__ */ w("div", { ref: te, children: [
|
|
2691
|
+
/* @__PURE__ */ w("div", { className: B.rangeBody, children: [
|
|
2687
2692
|
/* @__PURE__ */ s(
|
|
2688
2693
|
br,
|
|
2689
2694
|
{
|
|
@@ -2695,14 +2700,14 @@ const Hh = V(function({
|
|
|
2695
2700
|
}
|
|
2696
2701
|
}
|
|
2697
2702
|
),
|
|
2698
|
-
/* @__PURE__ */
|
|
2703
|
+
/* @__PURE__ */ w("div", { className: B.rangeRight, children: [
|
|
2699
2704
|
/* @__PURE__ */ s(
|
|
2700
|
-
|
|
2705
|
+
wr,
|
|
2701
2706
|
{
|
|
2702
|
-
view:
|
|
2707
|
+
view: E,
|
|
2703
2708
|
onView: x,
|
|
2704
2709
|
active: A,
|
|
2705
|
-
onActive:
|
|
2710
|
+
onActive: P,
|
|
2706
2711
|
onPick: Ae,
|
|
2707
2712
|
bandFrom: S,
|
|
2708
2713
|
bandTo: j,
|
|
@@ -2710,7 +2715,7 @@ const Hh = V(function({
|
|
|
2710
2715
|
onHoverDay: Y
|
|
2711
2716
|
}
|
|
2712
2717
|
),
|
|
2713
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ w(
|
|
2714
2719
|
"div",
|
|
2715
2720
|
{
|
|
2716
2721
|
className: B.timeRangeRow,
|
|
@@ -2718,16 +2723,16 @@ const Hh = V(function({
|
|
|
2718
2723
|
ne.key === "Enter" && (ne.preventDefault(), u());
|
|
2719
2724
|
},
|
|
2720
2725
|
children: [
|
|
2721
|
-
|
|
2722
|
-
|
|
2726
|
+
Ee("from", p, M, L, [de, O, se], T),
|
|
2727
|
+
Ee("to", C, I, K, [T, U, z])
|
|
2723
2728
|
]
|
|
2724
2729
|
}
|
|
2725
2730
|
),
|
|
2726
|
-
|
|
2727
|
-
|
|
2731
|
+
Fe(c.sideFrom, we, Q, ce),
|
|
2732
|
+
Fe(c.sideTo, ye, me, _e)
|
|
2728
2733
|
] })
|
|
2729
2734
|
] }),
|
|
2730
|
-
/* @__PURE__ */
|
|
2735
|
+
/* @__PURE__ */ w("div", { className: B.foot, children: [
|
|
2731
2736
|
/* @__PURE__ */ s(
|
|
2732
2737
|
$n,
|
|
2733
2738
|
{
|
|
@@ -2744,7 +2749,7 @@ const Hh = V(function({
|
|
|
2744
2749
|
}
|
|
2745
2750
|
),
|
|
2746
2751
|
/* @__PURE__ */ s("span", { className: R(B.footNote, B.footNoteRight), "aria-live": "polite", children: xe }),
|
|
2747
|
-
/* @__PURE__ */
|
|
2752
|
+
/* @__PURE__ */ w("div", { className: B.footLeft, children: [
|
|
2748
2753
|
e && /* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", onClick: () => {
|
|
2749
2754
|
n(null), be();
|
|
2750
2755
|
}, children: c.clear }),
|
|
@@ -2754,7 +2759,7 @@ const Hh = V(function({
|
|
|
2754
2759
|
ref: Z,
|
|
2755
2760
|
size: "sm",
|
|
2756
2761
|
variant: "primary",
|
|
2757
|
-
disabled: !Ne || !
|
|
2762
|
+
disabled: !Ne || !Pe,
|
|
2758
2763
|
onClick: u,
|
|
2759
2764
|
children: c.apply
|
|
2760
2765
|
}
|
|
@@ -2795,18 +2800,18 @@ const Hh = V(function({
|
|
|
2795
2800
|
children: /* @__PURE__ */ s("span", { className: St.label, children: r })
|
|
2796
2801
|
}
|
|
2797
2802
|
);
|
|
2798
|
-
}), Za = "_empty_1dx25_4 _text_ocaqi_23", Qa = "_icon_1dx25_14", Ja = "_title_1dx25_26", ec = "_description_1dx25_33", tc = "_action_1dx25_41",
|
|
2803
|
+
}), Za = "_empty_1dx25_4 _text_ocaqi_23", Qa = "_icon_1dx25_14", Ja = "_title_1dx25_26", ec = "_description_1dx25_33", tc = "_action_1dx25_41", Pt = {
|
|
2799
2804
|
empty: Za,
|
|
2800
2805
|
icon: Qa,
|
|
2801
2806
|
title: Ja,
|
|
2802
2807
|
description: ec,
|
|
2803
2808
|
action: tc
|
|
2804
2809
|
}, Gh = V(function({ title: e, description: n, action: r, icon: o, className: a, ...i }, l) {
|
|
2805
|
-
return /* @__PURE__ */
|
|
2806
|
-
o && /* @__PURE__ */ s("div", { className:
|
|
2807
|
-
/* @__PURE__ */ s("p", { className:
|
|
2808
|
-
n && /* @__PURE__ */ s("p", { className:
|
|
2809
|
-
r && /* @__PURE__ */ s("div", { className:
|
|
2810
|
+
return /* @__PURE__ */ w("div", { ref: l, className: R(Pt.empty, a), ...i, children: [
|
|
2811
|
+
o && /* @__PURE__ */ s("div", { className: Pt.icon, children: o }),
|
|
2812
|
+
/* @__PURE__ */ s("p", { className: Pt.title, children: e }),
|
|
2813
|
+
n && /* @__PURE__ */ s("p", { className: Pt.description, children: n }),
|
|
2814
|
+
r && /* @__PURE__ */ s("div", { className: Pt.action, children: r })
|
|
2810
2815
|
] });
|
|
2811
2816
|
}), nc = "_input_e4k4a_6 _field_ocaqi_46", rc = "_inner_e4k4a_7 _field_ocaqi_46", oc = "_sm_e4k4a_49", sc = "_numeric_e4k4a_55", ic = "_invalid_e4k4a_63", ac = "_wrapper_e4k4a_78 _text_ocaqi_23", cc = "_wrapperSm_e4k4a_103", lc = "_wrapperInvalid_e4k4a_109", dc = "_wrapperDisabled_e4k4a_94", uc = "_clear_e4k4a_157", Je = {
|
|
2812
2817
|
input: nc,
|
|
@@ -2819,7 +2824,7 @@ const Hh = V(function({
|
|
|
2819
2824
|
wrapperInvalid: lc,
|
|
2820
2825
|
wrapperDisabled: dc,
|
|
2821
2826
|
clear: uc
|
|
2822
|
-
},
|
|
2827
|
+
}, yr = V(function({ size: e = "md", invalid: n, numeric: r = !1, clearable: o = !1, onClear: a, className: i, id: l, disabled: f, ...h }, _) {
|
|
2823
2828
|
const v = He(), m = fe(), d = n ?? (v == null ? void 0 : v.invalid) ?? !1, c = (b) => /* @__PURE__ */ s(
|
|
2824
2829
|
"input",
|
|
2825
2830
|
{
|
|
@@ -2844,7 +2849,7 @@ const Hh = V(function({
|
|
|
2844
2849
|
)
|
|
2845
2850
|
);
|
|
2846
2851
|
const g = String(h.value ?? "").length > 0;
|
|
2847
|
-
return /* @__PURE__ */
|
|
2852
|
+
return /* @__PURE__ */ w(
|
|
2848
2853
|
"span",
|
|
2849
2854
|
{
|
|
2850
2855
|
className: R(
|
|
@@ -2931,11 +2936,11 @@ function _c(t, e = {}, n = er) {
|
|
|
2931
2936
|
function gc(t, e, n, r = 1) {
|
|
2932
2937
|
return t + e * n * r;
|
|
2933
2938
|
}
|
|
2934
|
-
const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28",
|
|
2939
|
+
const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", wc = "_invalid_xmxjl_33", yc = "_disabled_xmxjl_19", kc = "_input_xmxjl_47 _field_ocaqi_46", Nc = "_adornment_xmxjl_75", xc = "_stepper_xmxjl_85", ct = {
|
|
2935
2940
|
wrapper: vc,
|
|
2936
2941
|
sm: bc,
|
|
2937
|
-
invalid:
|
|
2938
|
-
disabled:
|
|
2942
|
+
invalid: wc,
|
|
2943
|
+
disabled: yc,
|
|
2939
2944
|
input: kc,
|
|
2940
2945
|
adornment: Nc,
|
|
2941
2946
|
stepper: xc
|
|
@@ -2958,10 +2963,10 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
2958
2963
|
onKeyDown: b,
|
|
2959
2964
|
...N
|
|
2960
2965
|
}, k) {
|
|
2961
|
-
const
|
|
2966
|
+
const y = He(), $ = fe(), E = Qe(), x = (te) => E.number(te, i), A = pe(() => Hr(E), [E]), P = (te) => mc(te, A), p = _ ?? (y == null ? void 0 : y.invalid) ?? !1, H = pe(() => ({ min: r, max: o, decimals: i }), [r, o, i]), [C, D] = W(() => e === null ? "" : x(e)), [F, Y] = W(!1);
|
|
2962
2967
|
ae(() => {
|
|
2963
|
-
|
|
2964
|
-
}, [e,
|
|
2968
|
+
F || D(e === null ? "" : x(e));
|
|
2969
|
+
}, [e, F, i, E]);
|
|
2965
2970
|
const M = (te) => {
|
|
2966
2971
|
if (te === null) {
|
|
2967
2972
|
D(""), n(null);
|
|
@@ -2969,16 +2974,16 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
2969
2974
|
}
|
|
2970
2975
|
const de = On(te, H);
|
|
2971
2976
|
D(x(de)), n(de);
|
|
2972
|
-
},
|
|
2973
|
-
|
|
2974
|
-
const I =
|
|
2977
|
+
}, L = q(C);
|
|
2978
|
+
L.current = C;
|
|
2979
|
+
const I = q(e);
|
|
2975
2980
|
I.current = e;
|
|
2976
2981
|
const K = (te, de = 1) => {
|
|
2977
|
-
const O = L
|
|
2982
|
+
const O = P(L.current) ?? I.current ?? 0;
|
|
2978
2983
|
M(gc(O, te, a, de));
|
|
2979
2984
|
}, ie = (te) => {
|
|
2980
2985
|
b == null || b(te), !te.defaultPrevented && (te.key !== "ArrowUp" && te.key !== "ArrowDown" || (te.preventDefault(), K(te.key === "ArrowUp" ? 1 : -1, te.shiftKey ? 10 : 1)));
|
|
2981
|
-
}, G =
|
|
2986
|
+
}, G = q(null), Q = () => {
|
|
2982
2987
|
G.current !== null && (clearTimeout(G.current), G.current = null);
|
|
2983
2988
|
};
|
|
2984
2989
|
ae(() => Q, []);
|
|
@@ -2990,7 +2995,7 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
2990
2995
|
}, se);
|
|
2991
2996
|
};
|
|
2992
2997
|
O(400);
|
|
2993
|
-
}, me =
|
|
2998
|
+
}, me = P(C) ?? e, _e = !v && (o === void 0 || me === null || me < o), J = !v && (r === void 0 || me === null || me > r), ee = (te, de, O, se) => /* @__PURE__ */ s(
|
|
2994
2999
|
"button",
|
|
2995
3000
|
{
|
|
2996
3001
|
type: "button",
|
|
@@ -3007,7 +3012,7 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3007
3012
|
children: se
|
|
3008
3013
|
}
|
|
3009
3014
|
);
|
|
3010
|
-
return /* @__PURE__ */
|
|
3015
|
+
return /* @__PURE__ */ w(
|
|
3011
3016
|
"span",
|
|
3012
3017
|
{
|
|
3013
3018
|
className: R(
|
|
@@ -3025,17 +3030,17 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3025
3030
|
ref: k,
|
|
3026
3031
|
type: "text",
|
|
3027
3032
|
inputMode: xr(i) ? "decimal" : "numeric",
|
|
3028
|
-
id: d ?? (
|
|
3033
|
+
id: d ?? (y == null ? void 0 : y.id),
|
|
3029
3034
|
disabled: v,
|
|
3030
|
-
"aria-describedby": N["aria-describedby"] ?? (
|
|
3031
|
-
"aria-required": (
|
|
3035
|
+
"aria-describedby": N["aria-describedby"] ?? (y == null ? void 0 : y.describedBy),
|
|
3036
|
+
"aria-required": (y == null ? void 0 : y.required) || void 0,
|
|
3032
3037
|
"aria-invalid": p || void 0,
|
|
3033
3038
|
className: ct.input,
|
|
3034
3039
|
value: C,
|
|
3035
3040
|
onChange: (te) => {
|
|
3036
3041
|
const de = _c(te.target.value, H, A);
|
|
3037
3042
|
D(de);
|
|
3038
|
-
const O =
|
|
3043
|
+
const O = P(de);
|
|
3039
3044
|
n(O === null ? null : On(O, H));
|
|
3040
3045
|
},
|
|
3041
3046
|
...N,
|
|
@@ -3044,19 +3049,19 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3044
3049
|
c == null || c(te), Y(!0);
|
|
3045
3050
|
},
|
|
3046
3051
|
onBlur: (te) => {
|
|
3047
|
-
g == null || g(te), Y(!1), M(
|
|
3052
|
+
g == null || g(te), Y(!1), M(P(te.currentTarget.value));
|
|
3048
3053
|
}
|
|
3049
3054
|
}
|
|
3050
3055
|
),
|
|
3051
3056
|
f && /* @__PURE__ */ s("span", { className: ct.adornment, children: f }),
|
|
3052
|
-
/* @__PURE__ */
|
|
3057
|
+
/* @__PURE__ */ w("span", { className: ct.stepper, children: [
|
|
3053
3058
|
ee(-1, J, $.decreaseValue, /* @__PURE__ */ s(no, {})),
|
|
3054
3059
|
ee(1, _e, $.increaseValue, /* @__PURE__ */ s(to, {}))
|
|
3055
3060
|
] })
|
|
3056
3061
|
]
|
|
3057
3062
|
}
|
|
3058
3063
|
);
|
|
3059
|
-
}), $c = "_dialog_vmgns_8 _text_ocaqi_23", Sc = "_spacerTop_vmgns_30", Tc = "_spacerBottom_vmgns_35", Dc = "_sheet_vmgns_2", Ac = "_sm_vmgns_53", Mc = "_md_vmgns_54", Cc = "_lg_vmgns_55", Rc = "_header_vmgns_105",
|
|
3064
|
+
}), $c = "_dialog_vmgns_8 _text_ocaqi_23", Sc = "_spacerTop_vmgns_30", Tc = "_spacerBottom_vmgns_35", Dc = "_sheet_vmgns_2", Ac = "_sm_vmgns_53", Mc = "_md_vmgns_54", Cc = "_lg_vmgns_55", Rc = "_header_vmgns_105", Lc = "_headerText_vmgns_113", Pc = "_title_vmgns_120", Ec = "_description_vmgns_128", Fc = "_close_vmgns_138", qc = "_footer_vmgns_144", Ic = "_body_vmgns_148 _scroll_ocaqi_52", Bc = "_drawer_vmgns_177", Oc = "_drawerSheet_vmgns_188", Hc = "_modalIn_vmgns_1", zc = "_modalOut_vmgns_1", Wc = "_backdropIn_vmgns_1", Gc = "_backdropOut_vmgns_1", Uc = "_drawerInRight_vmgns_1", jc = "_drawerInLeft_vmgns_1", Ue = {
|
|
3060
3065
|
dialog: $c,
|
|
3061
3066
|
spacerTop: Sc,
|
|
3062
3067
|
spacerBottom: Tc,
|
|
@@ -3065,11 +3070,11 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3065
3070
|
md: Mc,
|
|
3066
3071
|
lg: Cc,
|
|
3067
3072
|
header: Rc,
|
|
3068
|
-
headerText:
|
|
3069
|
-
title:
|
|
3070
|
-
description:
|
|
3071
|
-
close:
|
|
3072
|
-
footer:
|
|
3073
|
+
headerText: Lc,
|
|
3074
|
+
title: Pc,
|
|
3075
|
+
description: Ec,
|
|
3076
|
+
close: Fc,
|
|
3077
|
+
footer: qc,
|
|
3073
3078
|
body: Ic,
|
|
3074
3079
|
drawer: Bc,
|
|
3075
3080
|
drawerSheet: Oc,
|
|
@@ -3114,10 +3119,10 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3114
3119
|
onMouseDown: _,
|
|
3115
3120
|
...v
|
|
3116
3121
|
}, m) {
|
|
3117
|
-
const d =
|
|
3122
|
+
const d = q(null), c = Le(), { dialogRef: g, closing: b, beimSchliessen: N, beimAbbrechen: k } = mr(e, "--u-duration-exit", n), y = ($) => {
|
|
3118
3123
|
_ == null || _($), !$.defaultPrevented && r && d.current && !d.current.contains($.target) && n();
|
|
3119
3124
|
};
|
|
3120
|
-
return /* @__PURE__ */
|
|
3125
|
+
return /* @__PURE__ */ w(
|
|
3121
3126
|
"dialog",
|
|
3122
3127
|
{
|
|
3123
3128
|
ref: Ve(g, m),
|
|
@@ -3130,7 +3135,7 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3130
3135
|
onCancel: ($) => {
|
|
3131
3136
|
h == null || h($), $.defaultPrevented || k($);
|
|
3132
3137
|
},
|
|
3133
|
-
onMouseDown:
|
|
3138
|
+
onMouseDown: y,
|
|
3134
3139
|
children: [
|
|
3135
3140
|
a && /* @__PURE__ */ s("div", { className: Ue.spacerTop, "aria-hidden": "true" }),
|
|
3136
3141
|
/* @__PURE__ */ s("div", { ref: d, className: o, children: /* @__PURE__ */ s($r.Provider, { value: { onClose: n, titleId: c }, children: f }) }),
|
|
@@ -3140,8 +3145,8 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3140
3145
|
);
|
|
3141
3146
|
}), Yc = V(function({ title: e, description: n, hideClose: r = !1, className: o, ...a }, i) {
|
|
3142
3147
|
const l = Ze($r), f = fe();
|
|
3143
|
-
return /* @__PURE__ */
|
|
3144
|
-
/* @__PURE__ */
|
|
3148
|
+
return /* @__PURE__ */ w("div", { ref: i, className: R(Ue.header, o), ...a, children: [
|
|
3149
|
+
/* @__PURE__ */ w("div", { className: Ue.headerText, children: [
|
|
3145
3150
|
/* @__PURE__ */ s("h2", { id: l == null ? void 0 : l.titleId, className: Ue.title, children: e }),
|
|
3146
3151
|
n && /* @__PURE__ */ s("p", { className: Ue.description, children: n })
|
|
3147
3152
|
] }),
|
|
@@ -3164,14 +3169,14 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3164
3169
|
..._
|
|
3165
3170
|
}, v) {
|
|
3166
3171
|
const m = fe();
|
|
3167
|
-
return /* @__PURE__ */
|
|
3172
|
+
return /* @__PURE__ */ w(Vc, { ref: v, ..._, open: e, onClose: n, size: "sm", closeOnBackdrop: !h, children: [
|
|
3168
3173
|
/* @__PURE__ */ s(Yc, { title: o, description: a, hideClose: !0 }),
|
|
3169
|
-
/* @__PURE__ */
|
|
3174
|
+
/* @__PURE__ */ w(Kc, { children: [
|
|
3170
3175
|
/* @__PURE__ */ s(Te, { onClick: n, disabled: h, children: l ?? m.cancel }),
|
|
3171
3176
|
/* @__PURE__ */ s(Te, { variant: f, loading: h, onClick: r, children: i ?? m.confirm })
|
|
3172
3177
|
] })
|
|
3173
3178
|
] });
|
|
3174
|
-
}), Xc = "
|
|
3179
|
+
}), Xc = "_field_d0dmq_8 _text_ocaqi_23", Zc = "_invalid_d0dmq_35", Qc = "_fieldDisabled_d0dmq_26", Jc = "_placeholder_d0dmq_50", el = "_summary_d0dmq_59", tl = "_measure_d0dmq_72", nl = "_chipLabel_d0dmq_83", rl = "_chip_d0dmq_83 _ring_ocaqi_81", ol = "_chipX_d0dmq_136", sl = "_counter_d0dmq_156 _ring_ocaqi_81", il = "_main_d0dmq_186", al = "_mainEmpty_d0dmq_211", cl = "_chevron_d0dmq_217", ll = "_panel_d0dmq_226", dl = "_scopes_d0dmq_236", ul = "_scope_d0dmq_236 _ring_ocaqi_81", fl = "_scopeActive_d0dmq_269", hl = "_qol_d0dmq_276", ml = "_qolButtons_d0dmq_288", pl = "_count_d0dmq_156", _l = "_list_d0dmq_303 _scroll_ocaqi_52", gl = "_option_d0dmq_315", vl = "_empty_d0dmq_330", he = {
|
|
3175
3180
|
field: Xc,
|
|
3176
3181
|
invalid: Zc,
|
|
3177
3182
|
fieldDisabled: Qc,
|
|
@@ -3209,7 +3214,7 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3209
3214
|
onKeyDown: v,
|
|
3210
3215
|
...m
|
|
3211
3216
|
}, d) {
|
|
3212
|
-
const c = He(), g = fe(), b = o ?? g.multiSelectPlaceholder, N = a ?? g.multiSelectSearchPlaceholder, k = i ?? g.noMatches,
|
|
3217
|
+
const c = He(), g = fe(), b = o ?? g.multiSelectPlaceholder, N = a ?? g.multiSelectSearchPlaceholder, k = i ?? g.noMatches, y = f ?? (c == null ? void 0 : c.invalid) ?? !1, [$, E] = W(!1), [x, A] = W(""), [P, p] = W("all"), [H, C] = W(/* @__PURE__ */ new Set()), D = q(null), F = q(null), Y = q(null), M = q(null), L = Le(), I = (u) => {
|
|
3213
3218
|
var S;
|
|
3214
3219
|
return ((S = e.find((j) => j.value === u)) == null ? void 0 : S.label) ?? u;
|
|
3215
3220
|
}, K = (u, S, j) => {
|
|
@@ -3219,7 +3224,7 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3219
3224
|
D.current
|
|
3220
3225
|
);
|
|
3221
3226
|
}, ie = (u) => u === "selected" ? e.filter((S) => n.includes(S.value)) : e, G = (u) => lt(g.optionRemoved(I(u)), D.current), Q = (u = "all") => {
|
|
3222
|
-
p(u), C(new Set(n)), A(""),
|
|
3227
|
+
p(u), C(new Set(n)), A(""), E(!0), K(u, "", ie(u));
|
|
3223
3228
|
}, ce = (u) => {
|
|
3224
3229
|
var S;
|
|
3225
3230
|
p(u), u === "selected" && C(new Set(n)), (S = Y.current) == null || S.focus(), K(u, x, ie(u));
|
|
@@ -3227,8 +3232,8 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3227
3232
|
var S;
|
|
3228
3233
|
u && ((S = Y.current) == null || S.focus());
|
|
3229
3234
|
}, []), _e = pe(
|
|
3230
|
-
() =>
|
|
3231
|
-
[e,
|
|
3235
|
+
() => P === "selected" ? e.filter((u) => H.has(u.value)) : e,
|
|
3236
|
+
[e, P, H]
|
|
3232
3237
|
), J = pe(() => Wt(_e, x), [_e, x]), ee = (u) => {
|
|
3233
3238
|
r(
|
|
3234
3239
|
n.includes(u) ? n.filter((S) => S !== u) : [...n, u]
|
|
@@ -3256,10 +3261,10 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3256
3261
|
}
|
|
3257
3262
|
}
|
|
3258
3263
|
}, Z = (u) => {
|
|
3259
|
-
var X, le, xe, $e,
|
|
3264
|
+
var X, le, xe, $e, Ee;
|
|
3260
3265
|
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key)) return;
|
|
3261
|
-
const S = U(), j = S.findIndex((
|
|
3262
|
-
j !== -1 && (u.preventDefault(), u.key === "ArrowDown" && ((X = S[Math.min(j + 1, S.length - 1)]) == null || X.focus()), u.key === "ArrowUp" && (j === 0 ? (le = Y.current) == null || le.focus() : (xe = S[j - 1]) == null || xe.focus()), u.key === "Home" && (($e = S[0]) == null || $e.focus()), u.key === "End" && ((
|
|
3266
|
+
const S = U(), j = S.findIndex((Fe) => Fe === document.activeElement);
|
|
3267
|
+
j !== -1 && (u.preventDefault(), u.key === "ArrowDown" && ((X = S[Math.min(j + 1, S.length - 1)]) == null || X.focus()), u.key === "ArrowUp" && (j === 0 ? (le = Y.current) == null || le.focus() : (xe = S[j - 1]) == null || xe.focus()), u.key === "Home" && (($e = S[0]) == null || $e.focus()), u.key === "End" && ((Ee = S[S.length - 1]) == null || Ee.focus()));
|
|
3263
3268
|
}, ue = () => {
|
|
3264
3269
|
var u;
|
|
3265
3270
|
return Array.from(((u = D.current) == null ? void 0 : u.querySelectorAll("[data-nav]")) ?? []);
|
|
@@ -3267,64 +3272,64 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3267
3272
|
var le, xe, $e;
|
|
3268
3273
|
if (v == null || v(u), u.defaultPrevented || l) return;
|
|
3269
3274
|
const S = u.target, j = ue();
|
|
3270
|
-
if (S ===
|
|
3275
|
+
if (S === F.current) {
|
|
3271
3276
|
u.key === "ArrowLeft" && j.length > 0 ? (u.preventDefault(), (le = j[j.length - 1]) == null || le.focus()) : u.key === "Backspace" && n.length > 0 && (u.preventDefault(), r(n.slice(0, -1)), G(n[n.length - 1]));
|
|
3272
3277
|
return;
|
|
3273
3278
|
}
|
|
3274
3279
|
const X = j.indexOf(S);
|
|
3275
|
-
X !== -1 && (u.key === "ArrowRight" ? (u.preventDefault(), (xe = j[X + 1] ??
|
|
3276
|
-
var
|
|
3277
|
-
const
|
|
3278
|
-
(
|
|
3280
|
+
X !== -1 && (u.key === "ArrowRight" ? (u.preventDefault(), (xe = j[X + 1] ?? F.current) == null || xe.focus()) : u.key === "ArrowLeft" ? (u.preventDefault(), ($e = j[X - 1]) == null || $e.focus()) : (u.key === "Delete" || u.key === "Backspace") && S.dataset.value && (u.preventDefault(), te(S.dataset.value), requestAnimationFrame(() => {
|
|
3281
|
+
var Fe;
|
|
3282
|
+
const Ee = ue();
|
|
3283
|
+
(Fe = Ee[Math.min(X, Ee.length - 1)] ?? F.current) == null || Fe.focus();
|
|
3279
3284
|
})));
|
|
3280
3285
|
}, be = pe(
|
|
3281
3286
|
() => e.filter((u) => n.includes(u.value)),
|
|
3282
3287
|
[e, n]
|
|
3283
|
-
), [Ae, Me] = W(1), ke =
|
|
3284
|
-
var
|
|
3285
|
-
const u = ke.current, S =
|
|
3288
|
+
), [Ae, Me] = W(1), ke = q(null), we = q(null), ye = re(() => {
|
|
3289
|
+
var Fe;
|
|
3290
|
+
const u = ke.current, S = we.current;
|
|
3286
3291
|
if (!u || !S) return;
|
|
3287
3292
|
const j = Array.from(S.children);
|
|
3288
3293
|
if (j.length < 2) {
|
|
3289
3294
|
Me(1);
|
|
3290
3295
|
return;
|
|
3291
3296
|
}
|
|
3292
|
-
const X = ((
|
|
3293
|
-
let
|
|
3297
|
+
const X = ((Fe = j[j.length - 1]) == null ? void 0 : Fe.offsetWidth) ?? 0, le = j.slice(0, -1).map((ne) => ne.offsetWidth), xe = u.clientWidth, $e = Number.parseFloat(getComputedStyle(S).columnGap) || 0;
|
|
3298
|
+
let Ee = 1;
|
|
3294
3299
|
for (let ne = le.length; ne >= 1; ne -= 1) {
|
|
3295
3300
|
let oe = (ne - 1) * $e;
|
|
3296
3301
|
for (let ve = 0; ve < ne; ve += 1) oe += le[ve] ?? 0;
|
|
3297
3302
|
if (ne < le.length && (oe += $e + X), oe <= xe) {
|
|
3298
|
-
|
|
3303
|
+
Ee = ne;
|
|
3299
3304
|
break;
|
|
3300
3305
|
}
|
|
3301
3306
|
}
|
|
3302
|
-
Me(
|
|
3307
|
+
Me(Ee);
|
|
3303
3308
|
}, []);
|
|
3304
3309
|
je(() => {
|
|
3305
|
-
|
|
3310
|
+
ye();
|
|
3306
3311
|
}), ae(() => {
|
|
3307
3312
|
const u = D.current;
|
|
3308
3313
|
if (!u) return;
|
|
3309
|
-
const S = new ResizeObserver(() =>
|
|
3314
|
+
const S = new ResizeObserver(() => ye());
|
|
3310
3315
|
return S.observe(u), () => S.disconnect();
|
|
3311
|
-
}, [
|
|
3312
|
-
const Ne = n.length - Ae,
|
|
3313
|
-
return /* @__PURE__ */
|
|
3314
|
-
/* @__PURE__ */
|
|
3316
|
+
}, [ye]);
|
|
3317
|
+
const Ne = n.length - Ae, Pe = /* @__PURE__ */ s(nt, { size: 8 });
|
|
3318
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
3319
|
+
/* @__PURE__ */ w(
|
|
3315
3320
|
"div",
|
|
3316
3321
|
{
|
|
3317
3322
|
ref: Ve(D, d),
|
|
3318
|
-
className: R(he.field,
|
|
3323
|
+
className: R(he.field, y && he.invalid, l && he.fieldDisabled, h),
|
|
3319
3324
|
...m,
|
|
3320
3325
|
onClick: (u) => {
|
|
3321
|
-
_ == null || _(u), !(u.defaultPrevented || l) && ($ ?
|
|
3326
|
+
_ == null || _(u), !(u.defaultPrevented || l) && ($ ? E(!1) : Q("all"));
|
|
3322
3327
|
},
|
|
3323
3328
|
onKeyDown: ge,
|
|
3324
3329
|
children: [
|
|
3325
|
-
n.length > 0 && /* @__PURE__ */
|
|
3326
|
-
/* @__PURE__ */
|
|
3327
|
-
be.slice(0, Ae).map((u) => /* @__PURE__ */
|
|
3330
|
+
n.length > 0 && /* @__PURE__ */ w(Re, { children: [
|
|
3331
|
+
/* @__PURE__ */ w("span", { ref: ke, className: he.summary, children: [
|
|
3332
|
+
be.slice(0, Ae).map((u) => /* @__PURE__ */ w(
|
|
3328
3333
|
"button",
|
|
3329
3334
|
{
|
|
3330
3335
|
type: "button",
|
|
@@ -3339,12 +3344,12 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3339
3344
|
},
|
|
3340
3345
|
children: [
|
|
3341
3346
|
/* @__PURE__ */ s("span", { className: he.chipLabel, children: u.label }),
|
|
3342
|
-
/* @__PURE__ */ s("span", { className: he.chipX, children:
|
|
3347
|
+
/* @__PURE__ */ s("span", { className: he.chipX, children: Pe })
|
|
3343
3348
|
]
|
|
3344
3349
|
},
|
|
3345
3350
|
u.value
|
|
3346
3351
|
)),
|
|
3347
|
-
Ne > 0 && /* @__PURE__ */
|
|
3352
|
+
Ne > 0 && /* @__PURE__ */ w(
|
|
3348
3353
|
"button",
|
|
3349
3354
|
{
|
|
3350
3355
|
type: "button",
|
|
@@ -3363,32 +3368,32 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3363
3368
|
}
|
|
3364
3369
|
)
|
|
3365
3370
|
] }),
|
|
3366
|
-
/* @__PURE__ */
|
|
3367
|
-
be.map((u) => /* @__PURE__ */
|
|
3371
|
+
/* @__PURE__ */ w("span", { ref: we, className: R(he.summary, he.measure), "aria-hidden": "true", children: [
|
|
3372
|
+
be.map((u) => /* @__PURE__ */ w("span", { className: he.chip, children: [
|
|
3368
3373
|
/* @__PURE__ */ s("span", { className: he.chipLabel, children: u.label }),
|
|
3369
|
-
/* @__PURE__ */ s("span", { className: he.chipX, children:
|
|
3374
|
+
/* @__PURE__ */ s("span", { className: he.chipX, children: Pe })
|
|
3370
3375
|
] }, u.value)),
|
|
3371
|
-
/* @__PURE__ */
|
|
3376
|
+
/* @__PURE__ */ w("span", { className: he.counter, children: [
|
|
3372
3377
|
"+",
|
|
3373
3378
|
n.length
|
|
3374
3379
|
] })
|
|
3375
3380
|
] })
|
|
3376
3381
|
] }),
|
|
3377
|
-
/* @__PURE__ */
|
|
3382
|
+
/* @__PURE__ */ w(
|
|
3378
3383
|
"button",
|
|
3379
3384
|
{
|
|
3380
|
-
ref:
|
|
3385
|
+
ref: F,
|
|
3381
3386
|
type: "button",
|
|
3382
3387
|
id: c == null ? void 0 : c.id,
|
|
3383
3388
|
disabled: l,
|
|
3384
3389
|
"aria-haspopup": "dialog",
|
|
3385
3390
|
"aria-expanded": $,
|
|
3386
|
-
"aria-controls": $ ?
|
|
3391
|
+
"aria-controls": $ ? L : void 0,
|
|
3387
3392
|
"aria-describedby": c == null ? void 0 : c.describedBy,
|
|
3388
|
-
"aria-invalid":
|
|
3393
|
+
"aria-invalid": y || void 0,
|
|
3389
3394
|
className: R(he.main, n.length === 0 && he.mainEmpty),
|
|
3390
3395
|
onClick: (u) => {
|
|
3391
|
-
u.stopPropagation(), $ ?
|
|
3396
|
+
u.stopPropagation(), $ ? E(!1) : Q("all");
|
|
3392
3397
|
},
|
|
3393
3398
|
children: [
|
|
3394
3399
|
n.length === 0 && /* @__PURE__ */ s("span", { className: he.placeholder, children: b }),
|
|
@@ -3404,19 +3409,19 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3404
3409
|
{
|
|
3405
3410
|
open: $,
|
|
3406
3411
|
onOpenChange: (u) => {
|
|
3407
|
-
u ||
|
|
3412
|
+
u || E(!1);
|
|
3408
3413
|
},
|
|
3409
3414
|
anchorRef: D,
|
|
3410
|
-
focusRef:
|
|
3415
|
+
focusRef: F,
|
|
3411
3416
|
width: "anchor",
|
|
3412
3417
|
minWidth: 260,
|
|
3413
3418
|
role: "dialog",
|
|
3414
3419
|
ariaLabel: b,
|
|
3415
|
-
id:
|
|
3420
|
+
id: L,
|
|
3416
3421
|
className: he.panel,
|
|
3417
|
-
children: /* @__PURE__ */
|
|
3422
|
+
children: /* @__PURE__ */ w("div", { ref: me, children: [
|
|
3418
3423
|
/* @__PURE__ */ s(
|
|
3419
|
-
|
|
3424
|
+
yr,
|
|
3420
3425
|
{
|
|
3421
3426
|
ref: Y,
|
|
3422
3427
|
size: "sm",
|
|
@@ -3429,18 +3434,18 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3429
3434
|
A(""), (u = Y.current) == null || u.focus();
|
|
3430
3435
|
},
|
|
3431
3436
|
onChange: (u) => {
|
|
3432
|
-
A(u.target.value), K(
|
|
3437
|
+
A(u.target.value), K(P, u.target.value, _e);
|
|
3433
3438
|
},
|
|
3434
3439
|
onKeyDown: z
|
|
3435
3440
|
}
|
|
3436
3441
|
),
|
|
3437
|
-
/* @__PURE__ */
|
|
3442
|
+
/* @__PURE__ */ w("div", { className: he.scopes, role: "group", "aria-label": g.optionScope, children: [
|
|
3438
3443
|
/* @__PURE__ */ s(
|
|
3439
3444
|
"button",
|
|
3440
3445
|
{
|
|
3441
3446
|
type: "button",
|
|
3442
|
-
className: R(he.scope,
|
|
3443
|
-
"aria-pressed":
|
|
3447
|
+
className: R(he.scope, P === "all" && he.scopeActive),
|
|
3448
|
+
"aria-pressed": P === "all",
|
|
3444
3449
|
onClick: () => ce("all"),
|
|
3445
3450
|
children: g.optionScopeAll
|
|
3446
3451
|
}
|
|
@@ -3449,15 +3454,15 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3449
3454
|
"button",
|
|
3450
3455
|
{
|
|
3451
3456
|
type: "button",
|
|
3452
|
-
className: R(he.scope,
|
|
3453
|
-
"aria-pressed":
|
|
3457
|
+
className: R(he.scope, P === "selected" && he.scopeActive),
|
|
3458
|
+
"aria-pressed": P === "selected",
|
|
3454
3459
|
onClick: () => ce("selected"),
|
|
3455
3460
|
children: g.optionScopeSelected(n.length)
|
|
3456
3461
|
}
|
|
3457
3462
|
)
|
|
3458
3463
|
] }),
|
|
3459
|
-
/* @__PURE__ */
|
|
3460
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ w("div", { className: he.qol, children: [
|
|
3465
|
+
/* @__PURE__ */ w("div", { className: he.qolButtons, children: [
|
|
3461
3466
|
/* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", disabled: de.length === 0, onClick: O, children: g.selectAll }),
|
|
3462
3467
|
/* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", disabled: de.length === 0, onClick: se, children: g.selectNone }),
|
|
3463
3468
|
/* @__PURE__ */ s(Te, { size: "sm", variant: "ghost", disabled: de.length === 0, onClick: T, children: g.invertSelection })
|
|
@@ -3472,7 +3477,7 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3472
3477
|
role: "group",
|
|
3473
3478
|
"aria-label": g.options,
|
|
3474
3479
|
onKeyDown: Z,
|
|
3475
|
-
children: J.length === 0 ? /* @__PURE__ */ s("div", { className: he.empty, children:
|
|
3480
|
+
children: J.length === 0 ? /* @__PURE__ */ s("div", { className: he.empty, children: P === "selected" && _e.length === 0 ? g.nothingSelected : k }) : J.map((u) => /* @__PURE__ */ s(
|
|
3476
3481
|
$n,
|
|
3477
3482
|
{
|
|
3478
3483
|
className: he.option,
|
|
@@ -3489,10 +3494,10 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3489
3494
|
}
|
|
3490
3495
|
)
|
|
3491
3496
|
] });
|
|
3492
|
-
}), bl = "_group_96fhv_8 _text_ocaqi_23",
|
|
3497
|
+
}), bl = "_group_96fhv_8 _text_ocaqi_23", wl = "_horizontal_96fhv_15", yl = "_option_96fhv_21", kl = "_disabled_96fhv_28", Nl = "_input_96fhv_35", xl = "_dot_96fhv_44", $l = "_texts_96fhv_103", Sl = "_label_96fhv_110", Tl = "_description_96fhv_118", Dl = "_sm_96fhv_127", rt = {
|
|
3493
3498
|
group: bl,
|
|
3494
|
-
horizontal:
|
|
3495
|
-
option:
|
|
3499
|
+
horizontal: wl,
|
|
3500
|
+
option: yl,
|
|
3496
3501
|
disabled: kl,
|
|
3497
3502
|
input: Nl,
|
|
3498
3503
|
dot: xl,
|
|
@@ -3513,22 +3518,22 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3513
3518
|
onKeyDown: _,
|
|
3514
3519
|
...v
|
|
3515
3520
|
}, m) {
|
|
3516
|
-
const d = He(), c =
|
|
3521
|
+
const d = He(), c = Le(), g = f ?? (d == null ? void 0 : d.id) ?? c, b = q(null), N = n !== void 0, k = e.filter((x) => !x.disabled && !l), y = (x) => {
|
|
3517
3522
|
o == null || o(x.value);
|
|
3518
3523
|
}, $ = (x) => {
|
|
3519
|
-
var Y, M,
|
|
3524
|
+
var Y, M, L, I;
|
|
3520
3525
|
if (_ == null || _(x), x.defaultPrevented) return;
|
|
3521
|
-
const A = x.key === "ArrowDown" || x.key === "ArrowRight",
|
|
3522
|
-
if (!A && !
|
|
3526
|
+
const A = x.key === "ArrowDown" || x.key === "ArrowRight", P = x.key === "ArrowUp" || x.key === "ArrowLeft";
|
|
3527
|
+
if (!A && !P || k.length === 0) return;
|
|
3523
3528
|
x.preventDefault();
|
|
3524
3529
|
const p = (N ? n : (M = (Y = b.current) == null ? void 0 : Y.querySelector("input:checked")) == null ? void 0 : M.value) ?? null, H = k.findIndex((K) => K.value === p), C = H === -1 ? 0 : (H + (A ? 1 : -1) + k.length) % k.length, D = k[C];
|
|
3525
3530
|
if (!D) return;
|
|
3526
3531
|
(I = Array.from(
|
|
3527
|
-
((
|
|
3528
|
-
).find((K) => K.value === D.value)) == null || I.focus(),
|
|
3529
|
-
},
|
|
3530
|
-
var
|
|
3531
|
-
return N ? x.disabled || l ? -1 : n === x.value || !k.some((p) => p.value === n) && ((
|
|
3532
|
+
((L = b.current) == null ? void 0 : L.querySelectorAll('input[type="radio"]')) ?? []
|
|
3533
|
+
).find((K) => K.value === D.value)) == null || I.focus(), y(D);
|
|
3534
|
+
}, E = (x) => {
|
|
3535
|
+
var P;
|
|
3536
|
+
return N ? x.disabled || l ? -1 : n === x.value || !k.some((p) => p.value === n) && ((P = k[0]) == null ? void 0 : P.value) === x.value ? 0 : -1 : void 0;
|
|
3532
3537
|
};
|
|
3533
3538
|
return /* @__PURE__ */ s(
|
|
3534
3539
|
"div",
|
|
@@ -3549,8 +3554,8 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3549
3554
|
...v,
|
|
3550
3555
|
onKeyDown: $,
|
|
3551
3556
|
children: e.map((x) => {
|
|
3552
|
-
const A = `${c}-${ut(x.value)}`,
|
|
3553
|
-
return /* @__PURE__ */
|
|
3557
|
+
const A = `${c}-${ut(x.value)}`, P = x.description ? `${A}-description` : void 0, p = l || x.disabled;
|
|
3558
|
+
return /* @__PURE__ */ w(
|
|
3554
3559
|
"label",
|
|
3555
3560
|
{
|
|
3556
3561
|
className: R(rt.option, p && rt.disabled),
|
|
@@ -3564,16 +3569,16 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3564
3569
|
name: g,
|
|
3565
3570
|
value: x.value,
|
|
3566
3571
|
disabled: p,
|
|
3567
|
-
tabIndex:
|
|
3572
|
+
tabIndex: E(x),
|
|
3568
3573
|
className: rt.input,
|
|
3569
|
-
"aria-describedby":
|
|
3570
|
-
...N ? { checked: n === x.value, onChange: () =>
|
|
3574
|
+
"aria-describedby": P,
|
|
3575
|
+
...N ? { checked: n === x.value, onChange: () => y(x) } : { defaultChecked: r === x.value, onChange: () => y(x) }
|
|
3571
3576
|
}
|
|
3572
3577
|
),
|
|
3573
3578
|
/* @__PURE__ */ s("span", { className: rt.dot, "aria-hidden": "true" }),
|
|
3574
|
-
/* @__PURE__ */
|
|
3579
|
+
/* @__PURE__ */ w("span", { className: rt.texts, children: [
|
|
3575
3580
|
/* @__PURE__ */ s("span", { className: rt.label, children: x.label }),
|
|
3576
|
-
x.description && /* @__PURE__ */ s("span", { id:
|
|
3581
|
+
x.description && /* @__PURE__ */ s("span", { id: P, className: rt.description, children: x.description })
|
|
3577
3582
|
] })
|
|
3578
3583
|
]
|
|
3579
3584
|
},
|
|
@@ -3582,17 +3587,17 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3582
3587
|
})
|
|
3583
3588
|
}
|
|
3584
3589
|
);
|
|
3585
|
-
}), Al = "_wrapper_1j3kz_4 _text_ocaqi_23", Ml = "_select_1j3kz_11 _field_ocaqi_46", Cl = "_sm_1j3kz_58", Rl = "_invalid_1j3kz_64",
|
|
3590
|
+
}), Al = "_wrapper_1j3kz_4 _text_ocaqi_23", Ml = "_select_1j3kz_11 _field_ocaqi_46", Cl = "_sm_1j3kz_58", Rl = "_invalid_1j3kz_64", Ll = "_chevron_1j3kz_74", Pl = "_selectClearable_1j3kz_86", El = "_clear_1j3kz_91", pt = {
|
|
3586
3591
|
wrapper: Al,
|
|
3587
3592
|
select: Ml,
|
|
3588
3593
|
sm: Cl,
|
|
3589
3594
|
invalid: Rl,
|
|
3590
|
-
chevron:
|
|
3591
|
-
selectClearable:
|
|
3592
|
-
clear:
|
|
3595
|
+
chevron: Ll,
|
|
3596
|
+
selectClearable: Pl,
|
|
3597
|
+
clear: El
|
|
3593
3598
|
}, Jh = V(function({ selectSize: e = "md", invalid: n, clearable: r = !1, onClear: o, className: a, id: i, children: l, disabled: f, ...h }, _) {
|
|
3594
3599
|
const v = He(), m = fe(), d = n ?? (v == null ? void 0 : v.invalid) ?? !1, c = r && !h.multiple && String(h.value ?? "") !== "";
|
|
3595
|
-
return /* @__PURE__ */
|
|
3600
|
+
return /* @__PURE__ */ w("span", { className: R(pt.wrapper, a), children: [
|
|
3596
3601
|
/* @__PURE__ */ s(
|
|
3597
3602
|
"select",
|
|
3598
3603
|
{
|
|
@@ -3626,9 +3631,9 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3626
3631
|
),
|
|
3627
3632
|
/* @__PURE__ */ s(Rt, { className: pt.chevron })
|
|
3628
3633
|
] });
|
|
3629
|
-
}),
|
|
3630
|
-
skeleton:
|
|
3631
|
-
circle:
|
|
3634
|
+
}), Fl = "_skeleton_6mkat_4", ql = "_circle_6mkat_19", Hn = {
|
|
3635
|
+
skeleton: Fl,
|
|
3636
|
+
circle: ql
|
|
3632
3637
|
}, em = V(function({ width: e, height: n, circle: r = !1, className: o, style: a, ...i }, l) {
|
|
3633
3638
|
return /* @__PURE__ */ s(
|
|
3634
3639
|
"span",
|
|
@@ -3653,7 +3658,7 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3653
3658
|
danger: Vl,
|
|
3654
3659
|
remove: Yl
|
|
3655
3660
|
}, Tr = it(!1), tm = V(function({ className: e, children: n, onKeyDown: r, onFocus: o, ...a }, i) {
|
|
3656
|
-
const l =
|
|
3661
|
+
const l = q(null), f = re(
|
|
3657
3662
|
() => {
|
|
3658
3663
|
var m;
|
|
3659
3664
|
return Array.from(((m = l.current) == null ? void 0 : m.querySelectorAll("[data-tag]")) ?? []);
|
|
@@ -3704,12 +3709,12 @@ const vc = "_wrapper_xmxjl_4 _text_ocaqi_23", bc = "_sm_xmxjl_28", yc = "_invali
|
|
|
3704
3709
|
r == null || r();
|
|
3705
3710
|
return;
|
|
3706
3711
|
}
|
|
3707
|
-
const N = b.closest('[role="list"]'), k = Array.from((N == null ? void 0 : N.querySelectorAll("[data-tag]")) ?? []),
|
|
3712
|
+
const N = b.closest('[role="list"]'), k = Array.from((N == null ? void 0 : N.querySelectorAll("[data-tag]")) ?? []), y = k.indexOf(b), $ = k[y + 1] ?? k[y - 1];
|
|
3708
3713
|
r == null || r(), $ && requestAnimationFrame(() => $.focus());
|
|
3709
3714
|
}, g = (b) => {
|
|
3710
3715
|
l == null || l(b), !(b.defaultPrevented || !m) && (b.key === "Backspace" || b.key === "Delete") && (b.preventDefault(), c(b.currentTarget));
|
|
3711
3716
|
};
|
|
3712
|
-
return /* @__PURE__ */
|
|
3717
|
+
return /* @__PURE__ */ w(
|
|
3713
3718
|
"span",
|
|
3714
3719
|
{
|
|
3715
3720
|
ref: h,
|
|
@@ -3757,12 +3762,12 @@ function Mn(t) {
|
|
|
3757
3762
|
return e;
|
|
3758
3763
|
}
|
|
3759
3764
|
const rm = V(function({ value: e, defaultValue: n, onChange: r, className: o, children: a, ...i }, l) {
|
|
3760
|
-
const f =
|
|
3765
|
+
const f = Le(), [h, _] = W(n ?? ""), v = e !== void 0, m = (d) => {
|
|
3761
3766
|
v || _(d), r == null || r(d);
|
|
3762
3767
|
};
|
|
3763
3768
|
return /* @__PURE__ */ s("div", { ref: l, className: o, ...i, children: /* @__PURE__ */ s(Dr.Provider, { value: { value: v ? e : h, onChange: m, idBase: f }, children: a }) });
|
|
3764
3769
|
}), om = V(function({ className: e, children: n, onKeyDown: r, ...o }, a) {
|
|
3765
|
-
const i = Mn("TabList"), l =
|
|
3770
|
+
const i = Mn("TabList"), l = q(null), [f, h] = W(null), _ = re(() => {
|
|
3766
3771
|
const m = l.current;
|
|
3767
3772
|
if (!m) return;
|
|
3768
3773
|
const d = m.querySelector('[role="tab"][aria-selected="true"]');
|
|
@@ -3796,7 +3801,7 @@ const rm = V(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
3796
3801
|
let g = c;
|
|
3797
3802
|
m.key === "ArrowRight" && (g = (c + 1) % d.length), m.key === "ArrowLeft" && (g = (c - 1 + d.length) % d.length), m.key === "Home" && (g = 0), m.key === "End" && (g = d.length - 1), (b = d[g]) == null || b.focus(), (N = d[g]) == null || N.click();
|
|
3798
3803
|
};
|
|
3799
|
-
return /* @__PURE__ */
|
|
3804
|
+
return /* @__PURE__ */ w(
|
|
3800
3805
|
"div",
|
|
3801
3806
|
{
|
|
3802
3807
|
ref: Ve(l, a),
|
|
@@ -3873,7 +3878,7 @@ const rm = V(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
3873
3878
|
onInput: v,
|
|
3874
3879
|
...m
|
|
3875
3880
|
}, d) {
|
|
3876
|
-
const c = He(), g = n ?? (c == null ? void 0 : c.invalid) ?? !1, b =
|
|
3881
|
+
const c = He(), g = n ?? (c == null ? void 0 : c.invalid) ?? !1, b = q(null);
|
|
3877
3882
|
mn(d, () => b.current);
|
|
3878
3883
|
const N = re(() => {
|
|
3879
3884
|
const p = b.current;
|
|
@@ -3892,7 +3897,7 @@ const rm = V(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
3892
3897
|
p = !0;
|
|
3893
3898
|
};
|
|
3894
3899
|
}, [r, N]);
|
|
3895
|
-
const [k,
|
|
3900
|
+
const [k, y] = W(() => String(m.defaultValue ?? "")), $ = m.value !== void 0, E = $ ? String(m.value ?? "") : k, x = Jl(E, m.maxLength), A = a && x !== void 0, P = /* @__PURE__ */ s(
|
|
3896
3901
|
"textarea",
|
|
3897
3902
|
{
|
|
3898
3903
|
ref: b,
|
|
@@ -3910,13 +3915,13 @@ const rm = V(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
3910
3915
|
),
|
|
3911
3916
|
style: { resize: i ?? (r ? "none" : "vertical") },
|
|
3912
3917
|
onInput: (p) => {
|
|
3913
|
-
v == null || v(p), $ ||
|
|
3918
|
+
v == null || v(p), $ || y(p.currentTarget.value), N();
|
|
3914
3919
|
},
|
|
3915
3920
|
...m
|
|
3916
3921
|
}
|
|
3917
3922
|
);
|
|
3918
|
-
return A ? /* @__PURE__ */
|
|
3919
|
-
|
|
3923
|
+
return A ? /* @__PURE__ */ w("span", { className: R(Tt.wrapper, l), children: [
|
|
3924
|
+
P,
|
|
3920
3925
|
/* @__PURE__ */ s(
|
|
3921
3926
|
"span",
|
|
3922
3927
|
{
|
|
@@ -3925,8 +3930,8 @@ const rm = V(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
3925
3930
|
children: x
|
|
3926
3931
|
}
|
|
3927
3932
|
)
|
|
3928
|
-
] }) :
|
|
3929
|
-
}), ad = "_region_scwu7_8 _text_ocaqi_23 _ring_ocaqi_81", cd = "_live_scwu7_63", ld = "_card_scwu7_71", dd = "_hidden_scwu7_92", ud = "_toast_scwu7_97", fd = "_behind_scwu7_115", hd = "_leaving_scwu7_119", md = "_content_scwu7_163", pd = "_text_scwu7_188", _d = "_title_scwu7_195", gd = "_glyph_scwu7_211", vd = "_success_scwu7_220", bd = "_description_scwu7_224",
|
|
3933
|
+
] }) : P;
|
|
3934
|
+
}), ad = "_region_scwu7_8 _text_ocaqi_23 _ring_ocaqi_81", cd = "_live_scwu7_63", ld = "_card_scwu7_71", dd = "_hidden_scwu7_92", ud = "_toast_scwu7_97", fd = "_behind_scwu7_115", hd = "_leaving_scwu7_119", md = "_content_scwu7_163", pd = "_text_scwu7_188", _d = "_title_scwu7_195", gd = "_glyph_scwu7_211", vd = "_success_scwu7_220", bd = "_description_scwu7_224", wd = "_action_scwu7_231 _ring_ocaqi_81", yd = "_warning_scwu7_259", kd = "_danger_scwu7_264", Nd = "_tools_scwu7_273", xd = "_count_scwu7_278 _ring_ocaqi_81", $d = "_close_scwu7_279 _ring_ocaqi_81", Sd = "_toastIn_scwu7_1", Td = "_toastInFromTop_scwu7_1", Ce = {
|
|
3930
3935
|
region: ad,
|
|
3931
3936
|
live: cd,
|
|
3932
3937
|
card: ld,
|
|
@@ -3940,8 +3945,8 @@ const rm = V(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
3940
3945
|
glyph: gd,
|
|
3941
3946
|
success: vd,
|
|
3942
3947
|
description: bd,
|
|
3943
|
-
action:
|
|
3944
|
-
warning:
|
|
3948
|
+
action: wd,
|
|
3949
|
+
warning: yd,
|
|
3945
3950
|
danger: kd,
|
|
3946
3951
|
tools: Nd,
|
|
3947
3952
|
count: xd,
|
|
@@ -3968,14 +3973,14 @@ function Ad({ tone: t }) {
|
|
|
3968
3973
|
return t === "loading" ? /* @__PURE__ */ s(_n, { size: 16, "aria-hidden": "true" }) : (
|
|
3969
3974
|
/* The dots of ! and i are strokes of no length: a round cap alone is a dot
|
|
3970
3975
|
as wide as the stem, and the glyph stays drawn with the stroke. */
|
|
3971
|
-
/* @__PURE__ */
|
|
3976
|
+
/* @__PURE__ */ w("svg", { viewBox: "0 0 10 10", width: "16", height: "16", "aria-hidden": "true", children: [
|
|
3972
3977
|
t === "success" && /* @__PURE__ */ s("path", { d: "M2.2 5.3 4.2 7.3l3.6-4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3973
|
-
t === "danger" && /* @__PURE__ */
|
|
3978
|
+
t === "danger" && /* @__PURE__ */ w(Re, { children: [
|
|
3974
3979
|
/* @__PURE__ */ s("circle", { cx: "5", cy: "5", r: "4.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
3975
3980
|
/* @__PURE__ */ s("path", { d: "M5 3v1.9M5 7v0", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" })
|
|
3976
3981
|
] }),
|
|
3977
3982
|
t === "warning" && /* @__PURE__ */ s("path", { d: "M5 1.2 9.2 8.6H.8ZM5 4.1v1.4M5 7.1v0", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3978
|
-
t === "neutral" && /* @__PURE__ */
|
|
3983
|
+
t === "neutral" && /* @__PURE__ */ w(Re, { children: [
|
|
3979
3984
|
/* @__PURE__ */ s("circle", { cx: "5", cy: "5", r: "4.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
3980
3985
|
/* @__PURE__ */ s("path", { d: "M5 3v0M5 5v2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" })
|
|
3981
3986
|
] })
|
|
@@ -3983,18 +3988,18 @@ function Ad({ tone: t }) {
|
|
|
3983
3988
|
);
|
|
3984
3989
|
}
|
|
3985
3990
|
function lm({ children: t }) {
|
|
3986
|
-
const e = mo(), n = e.duration ?? 5e3, r = Math.max(1, e.limit ?? 3), o = e.position ?? "bottom-end", [a, i] = o.split("-"), [l, f] = W([]), h =
|
|
3991
|
+
const e = mo(), n = e.duration ?? 5e3, r = Math.max(1, e.limit ?? 3), o = e.position ?? "bottom-end", [a, i] = o.split("-"), [l, f] = W([]), h = q([]), _ = re((u) => {
|
|
3987
3992
|
h.current = u, f(u);
|
|
3988
|
-
}, []), v =
|
|
3993
|
+
}, []), v = q(1), m = q(/* @__PURE__ */ new Map()), d = q(/* @__PURE__ */ new Set()), c = q(null), [g, b] = W(!1), [N, k] = W(!1), [y, $] = W(!1), [E, x] = W(!1), A = g || N || y, P = q(A), p = q(/* @__PURE__ */ new Map()), H = q(/* @__PURE__ */ new Map()), C = q(null), [D, F] = W({}), Y = q(null), M = re(() => {
|
|
3989
3994
|
var S;
|
|
3990
3995
|
const u = Y.current;
|
|
3991
3996
|
Y.current = null, u != null && u.isConnected ? u.focus() : (S = document.activeElement) == null || S.blur();
|
|
3992
|
-
}, []),
|
|
3997
|
+
}, []), L = re(
|
|
3993
3998
|
(u) => {
|
|
3994
3999
|
var X;
|
|
3995
4000
|
p.current.delete(u);
|
|
3996
4001
|
const S = H.current.get(u);
|
|
3997
|
-
S && ((X = C.current) == null || X.unobserve(S)), H.current.delete(u),
|
|
4002
|
+
S && ((X = C.current) == null || X.unobserve(S)), H.current.delete(u), F((le) => Object.fromEntries(Object.entries(le).filter(([xe]) => Number(xe) !== u)));
|
|
3998
4003
|
const j = h.current.filter((le) => le.id !== u);
|
|
3999
4004
|
_(j), j.some((le) => !le.leaving) || (b(!1), $(!1));
|
|
4000
4005
|
},
|
|
@@ -4004,25 +4009,25 @@ function lm({ children: t }) {
|
|
|
4004
4009
|
S != null && S.timeout && clearTimeout(S.timeout), m.current.delete(u);
|
|
4005
4010
|
}, []), K = re(
|
|
4006
4011
|
(u, S) => {
|
|
4007
|
-
var
|
|
4012
|
+
var Fe, ne;
|
|
4008
4013
|
const j = h.current.find((oe) => oe.id === u);
|
|
4009
4014
|
if (!j || j.leaving) return;
|
|
4010
|
-
I(u), (
|
|
4015
|
+
I(u), (Fe = j.onClose) == null || Fe.call(j, S);
|
|
4011
4016
|
const X = c.current, le = document.activeElement;
|
|
4012
4017
|
X && le instanceof HTMLElement && ((ne = X.querySelector(`[data-toast="${u}"]`)) != null && ne.contains(le)) && tn(le, X) && (h.current.some((oe) => oe.id !== u && !oe.leaving) ? X.focus() : M());
|
|
4013
4018
|
const xe = X === null ? 0 : It(getComputedStyle(X), "--u-duration-exit-collapse");
|
|
4014
4019
|
if (Yt() || xe <= 0) {
|
|
4015
|
-
|
|
4020
|
+
L(u);
|
|
4016
4021
|
return;
|
|
4017
4022
|
}
|
|
4018
4023
|
const $e = p.current.get(u) ?? { offset: 0, behind: !1, scale: 1, hidden: !1, zIndex: 0 };
|
|
4019
4024
|
_(h.current.map((oe) => oe.id === u ? { ...oe, leaving: { ...$e, zIndex: 0 } } : oe));
|
|
4020
|
-
const
|
|
4021
|
-
d.current.delete(
|
|
4025
|
+
const Ee = setTimeout(() => {
|
|
4026
|
+
d.current.delete(Ee), L(u);
|
|
4022
4027
|
}, xe);
|
|
4023
|
-
d.current.add(
|
|
4028
|
+
d.current.add(Ee);
|
|
4024
4029
|
},
|
|
4025
|
-
[I, _,
|
|
4030
|
+
[I, _, L, M]
|
|
4026
4031
|
), ie = re(
|
|
4027
4032
|
(u, S) => {
|
|
4028
4033
|
S.startedAt = Date.now(), S.timeout = setTimeout(() => K(u, "timeout"), S.remaining);
|
|
@@ -4036,12 +4041,12 @@ function lm({ children: t }) {
|
|
|
4036
4041
|
const j = S.duration ?? n;
|
|
4037
4042
|
if (j <= 0) return;
|
|
4038
4043
|
const X = { timeout: null, remaining: j, startedAt: 0 };
|
|
4039
|
-
m.current.set(u, X),
|
|
4044
|
+
m.current.set(u, X), P.current || ie(u, X);
|
|
4040
4045
|
},
|
|
4041
4046
|
[I, n, ie]
|
|
4042
4047
|
);
|
|
4043
4048
|
ae(() => {
|
|
4044
|
-
|
|
4049
|
+
P.current = A, m.current.forEach((u, S) => {
|
|
4045
4050
|
A && u.timeout ? (clearTimeout(u.timeout), u.timeout = null, u.remaining = Math.max(0, u.remaining - (Date.now() - u.startedAt))) : !A && !u.timeout && (u.remaining <= 0 ? K(S, "timeout") : ie(S, u));
|
|
4046
4051
|
});
|
|
4047
4052
|
}, [A, K, ie]);
|
|
@@ -4070,7 +4075,7 @@ function lm({ children: t }) {
|
|
|
4070
4075
|
};
|
|
4071
4076
|
}, []);
|
|
4072
4077
|
const _e = re((u, S) => {
|
|
4073
|
-
|
|
4078
|
+
F((j) => j[u] === S ? j : { ...j, [u]: S });
|
|
4074
4079
|
}, []), J = re(
|
|
4075
4080
|
(u) => {
|
|
4076
4081
|
var X;
|
|
@@ -4078,9 +4083,9 @@ function lm({ children: t }) {
|
|
|
4078
4083
|
const S = Number(u.dataset.toast), j = H.current.get(S);
|
|
4079
4084
|
j !== u && (j && ((X = C.current) == null || X.unobserve(j)), H.current.set(S, u), _e(S, u.offsetHeight), !(typeof ResizeObserver > "u") && (C.current ?? (C.current = new ResizeObserver((le) => {
|
|
4080
4085
|
var xe, $e;
|
|
4081
|
-
for (const
|
|
4082
|
-
const
|
|
4083
|
-
_e(Number(
|
|
4086
|
+
for (const Ee of le) {
|
|
4087
|
+
const Fe = Ee.target;
|
|
4088
|
+
_e(Number(Fe.dataset.toast), (($e = (xe = Ee.borderBoxSize) == null ? void 0 : xe[0]) == null ? void 0 : $e.blockSize) ?? Fe.offsetHeight);
|
|
4084
4089
|
}
|
|
4085
4090
|
})), C.current.observe(u)));
|
|
4086
4091
|
},
|
|
@@ -4102,13 +4107,13 @@ function lm({ children: t }) {
|
|
|
4102
4107
|
};
|
|
4103
4108
|
return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
|
|
4104
4109
|
}, [ee]), ae(() => {
|
|
4105
|
-
if (!
|
|
4110
|
+
if (!y) return;
|
|
4106
4111
|
const u = (S) => {
|
|
4107
4112
|
const j = c.current;
|
|
4108
4113
|
!j || j.contains(S.target) || ($(!1), j.contains(document.activeElement) && document.activeElement.blur());
|
|
4109
4114
|
};
|
|
4110
4115
|
return document.addEventListener("pointerdown", u), () => document.removeEventListener("pointerdown", u);
|
|
4111
|
-
}, [
|
|
4116
|
+
}, [y]);
|
|
4112
4117
|
const te = (u) => {
|
|
4113
4118
|
u.key === "Escape" && ($(!1), M());
|
|
4114
4119
|
}, de = (u) => k(tn(u.target, u.currentTarget)), O = (u) => {
|
|
@@ -4134,7 +4139,7 @@ function lm({ children: t }) {
|
|
|
4134
4139
|
}), je(() => {
|
|
4135
4140
|
p.current = ge;
|
|
4136
4141
|
});
|
|
4137
|
-
const Ae = z === 0 ? 0 : A ? be - Wn : ue + zn * Math.min(z - 1, Gn), Me = pe(() => ({ toast: Q, update: ce, dismiss: me }), [Q, ce, me]), ke = fe(),
|
|
4142
|
+
const Ae = z === 0 ? 0 : A ? be - Wn : ue + zn * Math.min(z - 1, Gn), Me = pe(() => ({ toast: Q, update: ce, dismiss: me }), [Q, ce, me]), ke = fe(), we = bn(), ye = () => {
|
|
4138
4143
|
var u;
|
|
4139
4144
|
$(!0), (u = c.current) == null || u.focus();
|
|
4140
4145
|
}, Ne = (u) => {
|
|
@@ -4155,9 +4160,9 @@ function lm({ children: t }) {
|
|
|
4155
4160
|
u.leaving && Ce.leaving
|
|
4156
4161
|
),
|
|
4157
4162
|
style: le,
|
|
4158
|
-
children: /* @__PURE__ */ s("div", { className: R(Ce.toast, Ce[S]), children: /* @__PURE__ */
|
|
4159
|
-
/* @__PURE__ */
|
|
4160
|
-
/* @__PURE__ */
|
|
4163
|
+
children: /* @__PURE__ */ s("div", { className: R(Ce.toast, Ce[S]), children: /* @__PURE__ */ w("div", { ref: J, "data-toast": u.id, className: Ce.content, children: [
|
|
4164
|
+
/* @__PURE__ */ w("div", { className: Ce.text, children: [
|
|
4165
|
+
/* @__PURE__ */ w("p", { className: Ce.title, children: [
|
|
4161
4166
|
/* @__PURE__ */ s("span", { className: Ce.glyph, children: /* @__PURE__ */ s(Ad, { tone: S }) }),
|
|
4162
4167
|
u.title
|
|
4163
4168
|
] }),
|
|
@@ -4175,12 +4180,12 @@ function lm({ children: t }) {
|
|
|
4175
4180
|
}
|
|
4176
4181
|
)
|
|
4177
4182
|
] }),
|
|
4178
|
-
(j || S !== "loading") && /* @__PURE__ */
|
|
4183
|
+
(j || S !== "loading") && /* @__PURE__ */ w("div", { className: Ce.tools, children: [
|
|
4179
4184
|
j && /* Out of the tab order: a focus on it would open the deck and
|
|
4180
4185
|
take the count away under the focus - which is also why a press
|
|
4181
4186
|
does not focus it. The keyboard opens the deck by entering it,
|
|
4182
4187
|
or by Alt+T. */
|
|
4183
|
-
/* @__PURE__ */
|
|
4188
|
+
/* @__PURE__ */ w(
|
|
4184
4189
|
"button",
|
|
4185
4190
|
{
|
|
4186
4191
|
type: "button",
|
|
@@ -4188,7 +4193,7 @@ function lm({ children: t }) {
|
|
|
4188
4193
|
onMouseDown: ($e) => $e.preventDefault(),
|
|
4189
4194
|
className: Ce.count,
|
|
4190
4195
|
"aria-label": ke.toastDeckCount(z),
|
|
4191
|
-
onClick:
|
|
4196
|
+
onClick: ye,
|
|
4192
4197
|
children: [
|
|
4193
4198
|
"1 / ",
|
|
4194
4199
|
z
|
|
@@ -4210,11 +4215,11 @@ function lm({ children: t }) {
|
|
|
4210
4215
|
},
|
|
4211
4216
|
u.id
|
|
4212
4217
|
);
|
|
4213
|
-
},
|
|
4214
|
-
"--_origin":
|
|
4218
|
+
}, Pe = {
|
|
4219
|
+
"--_origin": yn(a === "bottom" ? "top" : "bottom", i),
|
|
4215
4220
|
height: Ae
|
|
4216
4221
|
};
|
|
4217
|
-
return /* @__PURE__ */
|
|
4222
|
+
return /* @__PURE__ */ w(Ar.Provider, { value: Me, children: [
|
|
4218
4223
|
t,
|
|
4219
4224
|
pn(
|
|
4220
4225
|
/* Two live regions that stand before the first message arrives: a
|
|
@@ -4224,15 +4229,15 @@ function lm({ children: t }) {
|
|
|
4224
4229
|
(library-audit 03 and its review). Both regions are
|
|
4225
4230
|
`display: contents`; the cards lie absolutely in the outer region,
|
|
4226
4231
|
ordered by arrival whatever their tone. */
|
|
4227
|
-
/* @__PURE__ */
|
|
4232
|
+
/* @__PURE__ */ w(
|
|
4228
4233
|
"div",
|
|
4229
4234
|
{
|
|
4230
4235
|
ref: c,
|
|
4231
4236
|
className: Ce.region,
|
|
4232
4237
|
"data-edge": a,
|
|
4233
4238
|
"data-along": i,
|
|
4234
|
-
"data-keys":
|
|
4235
|
-
style:
|
|
4239
|
+
"data-keys": E ? "" : void 0,
|
|
4240
|
+
style: Pe,
|
|
4236
4241
|
...ee ? { role: "region", "aria-label": ke.toastRegion, tabIndex: -1 } : {},
|
|
4237
4242
|
onKeyDown: te,
|
|
4238
4243
|
onFocus: de,
|
|
@@ -4245,19 +4250,19 @@ function lm({ children: t }) {
|
|
|
4245
4250
|
]
|
|
4246
4251
|
}
|
|
4247
4252
|
),
|
|
4248
|
-
|
|
4253
|
+
we() ?? document.body
|
|
4249
4254
|
)
|
|
4250
4255
|
] });
|
|
4251
4256
|
}
|
|
4252
|
-
const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_1epok_46",
|
|
4257
|
+
const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_1epok_46", Ld = "_pathOnly_1epok_58", Pd = "_chevron_1epok_62", Ed = "_chevronOpen_1epok_74", Fd = "_placeholder_1epok_80", qd = "_emptyDot_1epok_86", Id = "_check_1epok_104", Bd = "_content_1epok_110", Od = "_noMatches_1epok_124", Hd = "_scrolls_1epok_135 _scroll_ocaqi_52", zd = "_disabled_1epok_145", Wd = "_loading_1epok_149", We = {
|
|
4253
4258
|
tree: Md,
|
|
4254
4259
|
row: Cd,
|
|
4255
4260
|
active: Rd,
|
|
4256
|
-
pathOnly:
|
|
4257
|
-
chevron:
|
|
4258
|
-
chevronOpen:
|
|
4259
|
-
placeholder:
|
|
4260
|
-
emptyDot:
|
|
4261
|
+
pathOnly: Ld,
|
|
4262
|
+
chevron: Pd,
|
|
4263
|
+
chevronOpen: Ed,
|
|
4264
|
+
placeholder: Fd,
|
|
4265
|
+
emptyDot: qd,
|
|
4261
4266
|
check: Id,
|
|
4262
4267
|
content: Bd,
|
|
4263
4268
|
noMatches: Od,
|
|
@@ -4276,13 +4281,13 @@ const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_
|
|
|
4276
4281
|
onScroll: h,
|
|
4277
4282
|
..._
|
|
4278
4283
|
}, v) {
|
|
4279
|
-
var
|
|
4280
|
-
const m = fe(), d =
|
|
4284
|
+
var P;
|
|
4285
|
+
const m = fe(), d = Le(), c = e.virtual, g = q(null), b = (c == null ? void 0 : c.scrollRef) ?? g, N = q(!1), k = q(0), y = q(""), $ = q(null);
|
|
4281
4286
|
ae(() => {
|
|
4282
4287
|
const p = b.current;
|
|
4283
4288
|
if (p === null || e.active === null) return;
|
|
4284
4289
|
if (c !== void 0) {
|
|
4285
|
-
const D = e.flattening.findIndex((
|
|
4290
|
+
const D = e.flattening.findIndex((F) => F.key === e.active);
|
|
4286
4291
|
if (D >= 0 && (D < c.from || D >= c.to)) {
|
|
4287
4292
|
c.showRow(D);
|
|
4288
4293
|
return;
|
|
@@ -4300,7 +4305,7 @@ const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_
|
|
|
4300
4305
|
},
|
|
4301
4306
|
[]
|
|
4302
4307
|
);
|
|
4303
|
-
const
|
|
4308
|
+
const E = (p) => {
|
|
4304
4309
|
if (i == null || i(p), !p.defaultPrevented) {
|
|
4305
4310
|
if (r && p.key === "a" && (p.ctrlKey || p.metaKey)) {
|
|
4306
4311
|
e.toggleAll(), p.preventDefault();
|
|
@@ -4341,16 +4346,16 @@ const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_
|
|
|
4341
4346
|
break;
|
|
4342
4347
|
default: {
|
|
4343
4348
|
if (p.key.length !== 1 || p.ctrlKey || p.metaKey || p.altKey || p.key === " ") return;
|
|
4344
|
-
$.current !== null && window.clearTimeout($.current),
|
|
4345
|
-
|
|
4346
|
-
}, Gd), e.typeahead(
|
|
4349
|
+
$.current !== null && window.clearTimeout($.current), y.current += p.key, $.current = window.setTimeout(() => {
|
|
4350
|
+
y.current = "", $.current = null;
|
|
4351
|
+
}, Gd), e.typeahead(y.current);
|
|
4347
4352
|
break;
|
|
4348
4353
|
}
|
|
4349
4354
|
}
|
|
4350
4355
|
p.preventDefault();
|
|
4351
4356
|
}
|
|
4352
|
-
}, x = c === void 0 ? e.flattening : e.flattening.slice(c.from, c.to), A = e.active !== null && x.some((p) => p.key === e.active) ? e.active : (
|
|
4353
|
-
return /* @__PURE__ */
|
|
4357
|
+
}, x = c === void 0 ? e.flattening : e.flattening.slice(c.from, c.to), A = e.active !== null && x.some((p) => p.key === e.active) ? e.active : (P = x[0]) == null ? void 0 : P.key;
|
|
4358
|
+
return /* @__PURE__ */ w(
|
|
4354
4359
|
"div",
|
|
4355
4360
|
{
|
|
4356
4361
|
ref: Ve(b, v),
|
|
@@ -4358,7 +4363,7 @@ const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_
|
|
|
4358
4363
|
className: R(We.tree, c !== void 0 && We.scrolls, a),
|
|
4359
4364
|
..._,
|
|
4360
4365
|
role: "tree",
|
|
4361
|
-
onKeyDown:
|
|
4366
|
+
onKeyDown: E,
|
|
4362
4367
|
onScroll: (p) => {
|
|
4363
4368
|
h == null || h(p), c == null || c.onScroll();
|
|
4364
4369
|
},
|
|
@@ -4372,7 +4377,7 @@ const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_
|
|
|
4372
4377
|
c !== void 0 && c.fillerBefore > 0 ? /* @__PURE__ */ s("div", { "aria-hidden": "true", style: { height: c.fillerBefore } }) : null,
|
|
4373
4378
|
x.map((p) => {
|
|
4374
4379
|
const H = p.branch && !p.empty;
|
|
4375
|
-
return /* @__PURE__ */
|
|
4380
|
+
return /* @__PURE__ */ w(
|
|
4376
4381
|
"div",
|
|
4377
4382
|
{
|
|
4378
4383
|
role: "treeitem",
|
|
@@ -4441,7 +4446,7 @@ const Md = "_tree_1epok_10 _text_ocaqi_23", Cd = "_row_1epok_23", Rd = "_active_
|
|
|
4441
4446
|
}), um = V(function({ tree: e, placeholder: n, ...r }, o) {
|
|
4442
4447
|
const a = fe();
|
|
4443
4448
|
return /* @__PURE__ */ s(
|
|
4444
|
-
|
|
4449
|
+
yr,
|
|
4445
4450
|
{
|
|
4446
4451
|
ref: o,
|
|
4447
4452
|
type: "search",
|
|
@@ -4474,7 +4479,7 @@ function Vd(t, { rowHeight: e, scrollTop: n, viewportHeight: r, headerHeight: o
|
|
|
4474
4479
|
return a < n + o ? Math.max(0, a - o) : i > n + r ? Math.max(0, i - r) : null;
|
|
4475
4480
|
}
|
|
4476
4481
|
function Yd(t, e) {
|
|
4477
|
-
const { rowHeight: n, overscan: r = 4 } = e, o =
|
|
4482
|
+
const { rowHeight: n, overscan: r = 4 } = e, o = q(null), [a, i] = W(0), [l, f] = W(0), [h, _] = W(n), v = re(() => {
|
|
4478
4483
|
const c = o.current;
|
|
4479
4484
|
c && i(c.scrollTop);
|
|
4480
4485
|
}, []);
|
|
@@ -4518,7 +4523,7 @@ function Yd(t, e) {
|
|
|
4518
4523
|
onScroll: v
|
|
4519
4524
|
};
|
|
4520
4525
|
}
|
|
4521
|
-
function
|
|
4526
|
+
function qt(t, e) {
|
|
4522
4527
|
var n, r;
|
|
4523
4528
|
return ((n = t.disabled) == null ? void 0 : n.call(t, e)) !== !0 && ((r = t.unloaded) == null ? void 0 : r.call(t, e)) !== !0;
|
|
4524
4529
|
}
|
|
@@ -4531,7 +4536,7 @@ function Kd(t, e, n) {
|
|
|
4531
4536
|
};
|
|
4532
4537
|
function a(i) {
|
|
4533
4538
|
var g;
|
|
4534
|
-
const l = e.key(i), f = e.children(i), h = n.checked.has(l), _ = r === "" || e.label(i).toLowerCase().includes(r);
|
|
4539
|
+
const l = e.key(i), f = e.children(i), h = n.checked.has(l), _ = e.matches ? e.matches(i) : r === "" || e.label(i).toLowerCase().includes(r);
|
|
4535
4540
|
_ && o.matches.add(l);
|
|
4536
4541
|
let v = h, m = !1;
|
|
4537
4542
|
for (const b of f ?? []) {
|
|
@@ -4546,12 +4551,12 @@ function Kd(t, e, n) {
|
|
|
4546
4551
|
return o;
|
|
4547
4552
|
}
|
|
4548
4553
|
function Xd(t, e, n) {
|
|
4549
|
-
const r = n.search.trim() !== "", o = Kd(t, e, n), a = [];
|
|
4554
|
+
const r = e.matches !== void 0 || n.search.trim() !== "", o = Kd(t, e, n), a = [];
|
|
4550
4555
|
function i(l, f, h) {
|
|
4551
4556
|
const _ = h ? l : l.filter((v) => !r || o.survives.has(e.key(v)));
|
|
4552
4557
|
_.forEach((v, m) => {
|
|
4553
4558
|
var x, A;
|
|
4554
|
-
const d = e.key(v), c = e.children(v), g = ((x = e.unloaded) == null ? void 0 : x.call(e, v)) === !0, b = c !== void 0 || g, N = b && !g && (c ?? []).length === 0, k = o.matches.has(d),
|
|
4559
|
+
const d = e.key(v), c = e.children(v), g = ((x = e.unloaded) == null ? void 0 : x.call(e, v)) === !0, b = c !== void 0 || g, N = b && !g && (c ?? []).length === 0, k = o.matches.has(d), y = r && !k && o.descendantMatches.has(d), $ = r && o.descendantMatches.has(d), E = !N && b && ($ || n.expanded.has(d));
|
|
4555
4560
|
a.push({
|
|
4556
4561
|
node: v,
|
|
4557
4562
|
key: d,
|
|
@@ -4561,15 +4566,15 @@ function Xd(t, e, n) {
|
|
|
4561
4566
|
empty: N,
|
|
4562
4567
|
disabled: ((A = e.disabled) == null ? void 0 : A.call(e, v)) === !0,
|
|
4563
4568
|
unloaded: g,
|
|
4564
|
-
expanded:
|
|
4569
|
+
expanded: E,
|
|
4565
4570
|
checked: n.checked.has(d),
|
|
4566
4571
|
indeterminate: o.indeterminate.has(d),
|
|
4567
4572
|
active: n.active === d,
|
|
4568
4573
|
matches: !r || k,
|
|
4569
|
-
pathOnly:
|
|
4574
|
+
pathOnly: y,
|
|
4570
4575
|
position: m + 1,
|
|
4571
4576
|
siblings: _.length
|
|
4572
|
-
}),
|
|
4577
|
+
}), E && i(c ?? [], f + 1, h || k);
|
|
4573
4578
|
});
|
|
4574
4579
|
}
|
|
4575
4580
|
return i(t, 0, !1), a;
|
|
@@ -4647,7 +4652,7 @@ function un(t, e, n, r, o) {
|
|
|
4647
4652
|
if (r.length === 0) return n;
|
|
4648
4653
|
const a = Rr(t, e), i = new Set(n.checked);
|
|
4649
4654
|
function l(m) {
|
|
4650
|
-
if (
|
|
4655
|
+
if (qt(e, m)) {
|
|
4651
4656
|
const d = e.key(m);
|
|
4652
4657
|
o ? i.add(d) : i.delete(d);
|
|
4653
4658
|
}
|
|
@@ -4657,7 +4662,7 @@ function un(t, e, n, r, o) {
|
|
|
4657
4662
|
const d = e.children(m) ?? [];
|
|
4658
4663
|
if (d.length === 0) return;
|
|
4659
4664
|
for (const b of d) f(b);
|
|
4660
|
-
if (!
|
|
4665
|
+
if (!qt(e, m)) return;
|
|
4661
4666
|
const c = e.key(m);
|
|
4662
4667
|
d.every((b) => i.has(e.key(b))) ? i.add(c) : i.delete(c);
|
|
4663
4668
|
}
|
|
@@ -4665,7 +4670,7 @@ function un(t, e, n, r, o) {
|
|
|
4665
4670
|
let _ = !1;
|
|
4666
4671
|
for (const m of r) {
|
|
4667
4672
|
const d = a.nodes.get(m);
|
|
4668
|
-
if (d === void 0 || !
|
|
4673
|
+
if (d === void 0 || !qt(e, d)) continue;
|
|
4669
4674
|
_ = !0, l(d), f(d);
|
|
4670
4675
|
let c = a.parents.get(m) ?? null;
|
|
4671
4676
|
for (; c !== null; )
|
|
@@ -4677,24 +4682,24 @@ function un(t, e, n, r, o) {
|
|
|
4677
4682
|
);
|
|
4678
4683
|
for (const m of v) {
|
|
4679
4684
|
const d = a.nodes.get(m);
|
|
4680
|
-
if (d === void 0 || !
|
|
4685
|
+
if (d === void 0 || !qt(e, d)) continue;
|
|
4681
4686
|
const c = e.children(d) ?? [];
|
|
4682
4687
|
if (c.length === 0) continue;
|
|
4683
4688
|
c.every((b) => i.has(e.key(b))) ? i.add(m) : i.delete(m);
|
|
4684
4689
|
}
|
|
4685
4690
|
return { ...n, checked: i };
|
|
4686
4691
|
}
|
|
4687
|
-
function
|
|
4692
|
+
function Lr(t, e, n, r) {
|
|
4688
4693
|
const o = un(t, e, n, r, !0);
|
|
4689
4694
|
return o.checked.size === n.checked.size && [...o.checked].every((i) => n.checked.has(i)) ? un(t, e, n, r, !1) : o;
|
|
4690
4695
|
}
|
|
4691
4696
|
function Qd(t, e, n) {
|
|
4692
4697
|
const r = Rr(t, e), o = [];
|
|
4693
|
-
for (const [a, i] of r.nodes)
|
|
4694
|
-
return o.length === 0 ? n :
|
|
4698
|
+
for (const [a, i] of r.nodes) qt(e, i) && o.push(a);
|
|
4699
|
+
return o.length === 0 ? n : Lr(t, e, n, o);
|
|
4695
4700
|
}
|
|
4696
4701
|
function Vn(t, e, n, r) {
|
|
4697
|
-
return
|
|
4702
|
+
return Lr(t, e, n, [r]);
|
|
4698
4703
|
}
|
|
4699
4704
|
function Jd(t, e, n) {
|
|
4700
4705
|
const r = e.toLowerCase();
|
|
@@ -4781,23 +4786,23 @@ function hm(t, e) {
|
|
|
4781
4786
|
onActivate: b,
|
|
4782
4787
|
onLoadChildren: N,
|
|
4783
4788
|
virtual: k
|
|
4784
|
-
} = e, [
|
|
4789
|
+
} = e, [y, $] = W(
|
|
4785
4790
|
() => new Set(r ?? [])
|
|
4786
|
-
), [
|
|
4791
|
+
), [E, x] = W(
|
|
4787
4792
|
() => new Set(o ?? [])
|
|
4788
|
-
), [A,
|
|
4793
|
+
), [A, P] = W(a), [p, H] = W(null), [C, D] = W(""), [F, Y] = W(0), M = pe(
|
|
4789
4794
|
() => ({
|
|
4790
|
-
expanded: i ??
|
|
4791
|
-
checked: l ??
|
|
4795
|
+
expanded: i ?? y,
|
|
4796
|
+
checked: l ?? E,
|
|
4792
4797
|
active: f !== void 0 ? f : A,
|
|
4793
4798
|
anchor: h !== void 0 ? h : p,
|
|
4794
4799
|
search: _ ?? C
|
|
4795
4800
|
}),
|
|
4796
4801
|
[
|
|
4797
4802
|
i,
|
|
4798
|
-
|
|
4803
|
+
y,
|
|
4799
4804
|
l,
|
|
4800
|
-
|
|
4805
|
+
E,
|
|
4801
4806
|
f,
|
|
4802
4807
|
A,
|
|
4803
4808
|
h,
|
|
@@ -4805,7 +4810,7 @@ function hm(t, e) {
|
|
|
4805
4810
|
_,
|
|
4806
4811
|
C
|
|
4807
4812
|
]
|
|
4808
|
-
),
|
|
4813
|
+
), L = pe(
|
|
4809
4814
|
() => Xd(t, n, M),
|
|
4810
4815
|
[t, n, M]
|
|
4811
4816
|
);
|
|
@@ -4813,7 +4818,7 @@ function hm(t, e) {
|
|
|
4813
4818
|
}, [t, n]);
|
|
4814
4819
|
const I = re(
|
|
4815
4820
|
(z) => {
|
|
4816
|
-
z.expanded !== M.expanded && (i === void 0 && $(z.expanded), v == null || v(z.expanded)), z.checked !== M.checked && (l === void 0 && x(z.checked), m == null || m(z.checked)), z.anchor !== M.anchor && (h === void 0 && H(z.anchor), c == null || c(z.anchor)), z.active !== M.active && (f === void 0 &&
|
|
4821
|
+
z.expanded !== M.expanded && (i === void 0 && $(z.expanded), v == null || v(z.expanded)), z.checked !== M.checked && (l === void 0 && x(z.checked), m == null || m(z.checked)), z.anchor !== M.anchor && (h === void 0 && H(z.anchor), c == null || c(z.anchor)), z.active !== M.active && (f === void 0 && P(z.active), d == null || d(z.active));
|
|
4817
4822
|
},
|
|
4818
4823
|
[
|
|
4819
4824
|
M,
|
|
@@ -4827,8 +4832,8 @@ function hm(t, e) {
|
|
|
4827
4832
|
c
|
|
4828
4833
|
]
|
|
4829
4834
|
), K = re(
|
|
4830
|
-
(z) =>
|
|
4831
|
-
[
|
|
4835
|
+
(z) => L.find((Z) => Z.key === z),
|
|
4836
|
+
[L]
|
|
4832
4837
|
), ie = re(
|
|
4833
4838
|
(z) => {
|
|
4834
4839
|
const Z = K(z);
|
|
@@ -4845,12 +4850,12 @@ function hm(t, e) {
|
|
|
4845
4850
|
), Q = re(
|
|
4846
4851
|
(z) => {
|
|
4847
4852
|
const Z = M.anchor ?? M.active;
|
|
4848
|
-
Z !== null && I(un(t, n, M, Zd(
|
|
4853
|
+
Z !== null && I(un(t, n, M, Zd(L, Z, z), !0));
|
|
4849
4854
|
},
|
|
4850
|
-
[t, n, M,
|
|
4855
|
+
[t, n, M, L, I]
|
|
4851
4856
|
), ce = re(
|
|
4852
4857
|
(z) => {
|
|
4853
|
-
const Z = Un(
|
|
4858
|
+
const Z = Un(L, M, z);
|
|
4854
4859
|
Z.active === null || Z.active === M.active || I(
|
|
4855
4860
|
jn(
|
|
4856
4861
|
Vn(t, n, Z, Z.active),
|
|
@@ -4858,7 +4863,7 @@ function hm(t, e) {
|
|
|
4858
4863
|
)
|
|
4859
4864
|
);
|
|
4860
4865
|
},
|
|
4861
|
-
[
|
|
4866
|
+
[L, M, t, n, I]
|
|
4862
4867
|
), me = re(
|
|
4863
4868
|
() => I(Qd(t, n, M)),
|
|
4864
4869
|
[t, n, M, I]
|
|
@@ -4870,8 +4875,8 @@ function hm(t, e) {
|
|
|
4870
4875
|
},
|
|
4871
4876
|
[M, I, K, b]
|
|
4872
4877
|
), J = re(
|
|
4873
|
-
(z) => I(Un(
|
|
4874
|
-
[
|
|
4878
|
+
(z) => I(Un(L, M, z)),
|
|
4879
|
+
[L, M, I]
|
|
4875
4880
|
), ee = re(
|
|
4876
4881
|
(z) => {
|
|
4877
4882
|
const { snapshot: Z, reached: ue } = tu(t, n, M, z);
|
|
@@ -4890,21 +4895,21 @@ function hm(t, e) {
|
|
|
4890
4895
|
I({ ...M, expanded: /* @__PURE__ */ new Set() });
|
|
4891
4896
|
}, [M, I]), se = re(
|
|
4892
4897
|
(z) => {
|
|
4893
|
-
const Z = Jd(
|
|
4898
|
+
const Z = Jd(L, z, M.active);
|
|
4894
4899
|
Z !== null && I(ot(M, Z));
|
|
4895
4900
|
},
|
|
4896
|
-
[
|
|
4901
|
+
[L, M, I]
|
|
4897
4902
|
), T = re(
|
|
4898
4903
|
(z) => {
|
|
4899
4904
|
_ === void 0 && D(z), g == null || g(z);
|
|
4900
4905
|
},
|
|
4901
4906
|
[_, g]
|
|
4902
|
-
), U = Yd(k ?
|
|
4907
|
+
), U = Yd(k ? L.length : 0, {
|
|
4903
4908
|
rowHeight: (k == null ? void 0 : k.rowHeight) ?? 0,
|
|
4904
4909
|
overscan: k == null ? void 0 : k.overscan
|
|
4905
4910
|
});
|
|
4906
4911
|
return {
|
|
4907
|
-
flattening:
|
|
4912
|
+
flattening: L,
|
|
4908
4913
|
virtual: k ? U : void 0,
|
|
4909
4914
|
active: M.active,
|
|
4910
4915
|
search: M.search,
|
|
@@ -4915,7 +4920,7 @@ function hm(t, e) {
|
|
|
4915
4920
|
setSearch: T,
|
|
4916
4921
|
revealNode: te,
|
|
4917
4922
|
revealPath: ee,
|
|
4918
|
-
revealCount:
|
|
4923
|
+
revealCount: F,
|
|
4919
4924
|
expandAll: de,
|
|
4920
4925
|
collapseAll: O,
|
|
4921
4926
|
typeahead: se,
|
|
@@ -5020,7 +5025,7 @@ const ru = "_text_1n64h_7 _text_ocaqi_23", ou = "_heading_1n64h_11 _text_ocaqi_2
|
|
|
5020
5025
|
}), du = "_hidden_69gri_7", uu = "_focusable_69gri_20 _text_ocaqi_23", Yn = {
|
|
5021
5026
|
hidden: du,
|
|
5022
5027
|
focusable: uu
|
|
5023
|
-
},
|
|
5028
|
+
}, Pr = V(function({ as: e, focusable: n = !1, className: r, children: o, ...a }, i) {
|
|
5024
5029
|
return /* @__PURE__ */ s(
|
|
5025
5030
|
e ?? "span",
|
|
5026
5031
|
{
|
|
@@ -5069,12 +5074,12 @@ function Kn(t) {
|
|
|
5069
5074
|
return Number.isFinite(e) ? e : null;
|
|
5070
5075
|
}
|
|
5071
5076
|
const Xn = 6e4, _u = 1e3, gu = 10;
|
|
5072
|
-
function
|
|
5077
|
+
function Er(t, e) {
|
|
5073
5078
|
const n = Kn(t), r = Kn(e);
|
|
5074
5079
|
return n === null || r === null ? null : Math.max(0, r - n);
|
|
5075
5080
|
}
|
|
5076
5081
|
function vu(t, e, n) {
|
|
5077
|
-
const r =
|
|
5082
|
+
const r = Er(t, e);
|
|
5078
5083
|
return r === null || r >= n.lost ? "lost" : r >= n.stale ? "stale" : "fresh";
|
|
5079
5084
|
}
|
|
5080
5085
|
function bu(t) {
|
|
@@ -5085,7 +5090,7 @@ function bu(t) {
|
|
|
5085
5090
|
const n = Math.min(...e), r = Math.round(n / gu);
|
|
5086
5091
|
return Math.min(Xn, Math.max(_u, r));
|
|
5087
5092
|
}
|
|
5088
|
-
function
|
|
5093
|
+
function wu(t, e) {
|
|
5089
5094
|
const n = t instanceof Date ? t.getTime() : t, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: a } = e, i = bu({ stale: o, lost: a }), [l, f] = W(() => Date.now());
|
|
5090
5095
|
return ae(() => {
|
|
5091
5096
|
const h = setInterval(() => f(Date.now()), i);
|
|
@@ -5096,14 +5101,14 @@ function yu(t, e) {
|
|
|
5096
5101
|
stale: o,
|
|
5097
5102
|
lost: a
|
|
5098
5103
|
}),
|
|
5099
|
-
age:
|
|
5104
|
+
age: Er(r, l),
|
|
5100
5105
|
now: l
|
|
5101
5106
|
}),
|
|
5102
5107
|
[r, l, o, a]
|
|
5103
5108
|
);
|
|
5104
5109
|
}
|
|
5105
|
-
const
|
|
5106
|
-
stat:
|
|
5110
|
+
const yu = "_stat_y5wyr_11 _text_ocaqi_23", ku = "_body_y5wyr_22", Nu = "_figures_y5wyr_29", xu = "_label_y5wyr_36", $u = "_valueRow_y5wyr_43", Su = "_value_y5wyr_43", Tu = "_unit_y5wyr_62", Du = "_verdict_y5wyr_69", Au = "_deviation_y5wyr_106", Mu = "_history_y5wyr_111", Cu = "_asOf_y5wyr_136", Ru = "_age_y5wyr_154", Xe = {
|
|
5111
|
+
stat: yu,
|
|
5107
5112
|
body: ku,
|
|
5108
5113
|
figures: Nu,
|
|
5109
5114
|
label: xu,
|
|
@@ -5116,7 +5121,7 @@ const wu = "_stat_y5wyr_11 _text_ocaqi_23", ku = "_body_y5wyr_22", Nu = "_figure
|
|
|
5116
5121
|
asOf: Cu,
|
|
5117
5122
|
age: Ru
|
|
5118
5123
|
};
|
|
5119
|
-
function
|
|
5124
|
+
function Lu(t, e) {
|
|
5120
5125
|
switch (t) {
|
|
5121
5126
|
case "alarm":
|
|
5122
5127
|
return e.verdictAlarm;
|
|
@@ -5128,24 +5133,24 @@ function qu(t, e) {
|
|
|
5128
5133
|
return e.verdictOk;
|
|
5129
5134
|
}
|
|
5130
5135
|
}
|
|
5131
|
-
function
|
|
5136
|
+
function Pu(t, e, n, r) {
|
|
5132
5137
|
if (t === void 0) return null;
|
|
5133
5138
|
const o = n.number(Math.abs(t), e);
|
|
5134
5139
|
return t === 0 ? r.deviationOnTarget : t > 0 ? r.deviationAbove(o) : r.deviationBelow(o);
|
|
5135
5140
|
}
|
|
5136
|
-
function
|
|
5141
|
+
function Eu({
|
|
5137
5142
|
asOf: t,
|
|
5138
5143
|
ages: e
|
|
5139
5144
|
}) {
|
|
5140
|
-
const n = Qe(), r = fe(), o =
|
|
5141
|
-
return /* @__PURE__ */
|
|
5145
|
+
const n = Qe(), r = fe(), o = wu(t, e), a = o.freshness === "lost" ? r.freshnessDisconnected : o.freshness === "stale" ? r.freshnessStale : r.freshnessFresh, i = o.age;
|
|
5146
|
+
return /* @__PURE__ */ w("span", { className: Xe.asOf, "data-freshness": o.freshness, children: [
|
|
5142
5147
|
a,
|
|
5143
5148
|
i !== null && /* @__PURE__ */ s("span", { className: Xe.age, children: n.relative(i) })
|
|
5144
5149
|
] });
|
|
5145
5150
|
}
|
|
5146
5151
|
const vm = V(function({ label: e, value: n, unit: r, decimals: o, limits: a, history: i, asOf: l, ages: f, className: h, ..._ }, v) {
|
|
5147
5152
|
var A;
|
|
5148
|
-
const m = Qe(), d = fe(), c = pu(n, a), g = c.verdict, b =
|
|
5153
|
+
const m = Qe(), d = fe(), c = pu(n, a), g = c.verdict, b = Lu(g, d), N = g !== "unknown", y = (((A = a == null ? void 0 : a.limits) == null ? void 0 : A.length) ?? 0) > 0 || !N, $ = Pu(c.deviation, o, m, d), E = N ? m.number(n, o) : d.statAbsentValue, x = `${e}: ${N ? `${E}${r ? ` ${r}` : ""}` : b}${N && y && g !== "ok" ? `, ${b}` : ""}`;
|
|
5149
5154
|
return /* @__PURE__ */ s(
|
|
5150
5155
|
"div",
|
|
5151
5156
|
{
|
|
@@ -5154,39 +5159,39 @@ const vm = V(function({ label: e, value: n, unit: r, decimals: o, limits: a, his
|
|
|
5154
5159
|
..._,
|
|
5155
5160
|
role: "group",
|
|
5156
5161
|
"aria-label": x,
|
|
5157
|
-
"data-verdict":
|
|
5158
|
-
children: /* @__PURE__ */
|
|
5159
|
-
/* @__PURE__ */
|
|
5162
|
+
"data-verdict": y ? g : void 0,
|
|
5163
|
+
children: /* @__PURE__ */ w("div", { className: Xe.body, children: [
|
|
5164
|
+
/* @__PURE__ */ w("div", { className: Xe.figures, children: [
|
|
5160
5165
|
/* @__PURE__ */ s("span", { className: Xe.label, children: e }),
|
|
5161
|
-
/* @__PURE__ */
|
|
5162
|
-
/* @__PURE__ */ s("span", { className: Xe.value, children:
|
|
5166
|
+
/* @__PURE__ */ w("span", { className: Xe.valueRow, children: [
|
|
5167
|
+
/* @__PURE__ */ s("span", { className: Xe.value, children: E }),
|
|
5163
5168
|
N && r !== void 0 && /* @__PURE__ */ s("span", { className: Xe.unit, children: r })
|
|
5164
5169
|
] }),
|
|
5165
|
-
|
|
5170
|
+
y && /* @__PURE__ */ s("span", { className: Xe.verdict, "data-verdict": g, children: b }),
|
|
5166
5171
|
$ !== null && N && /* @__PURE__ */ s("span", { className: Xe.deviation, children: $ }),
|
|
5167
|
-
l !== void 0 && f !== void 0 && /* @__PURE__ */ s(
|
|
5172
|
+
l !== void 0 && f !== void 0 && /* @__PURE__ */ s(Eu, { asOf: l ?? null, ages: f })
|
|
5168
5173
|
] }),
|
|
5169
5174
|
i !== void 0 && i.length >= 2 && /* @__PURE__ */ s(Si, { data: i, width: "fill", className: Xe.history, "aria-hidden": "true" })
|
|
5170
5175
|
] })
|
|
5171
5176
|
}
|
|
5172
5177
|
);
|
|
5173
|
-
}),
|
|
5178
|
+
}), Fr = "bottom", Ht = ["top", "right", "bottom", "left"], Zn = ["bottom", "top", "right", "left"];
|
|
5174
5179
|
function zt(t) {
|
|
5175
5180
|
return t === "left" || t === "right";
|
|
5176
5181
|
}
|
|
5177
|
-
function
|
|
5178
|
-
if (e.width <= 0 || e.height <= 0) return
|
|
5182
|
+
function Fu(t, e) {
|
|
5183
|
+
if (e.width <= 0 || e.height <= 0) return Fr;
|
|
5179
5184
|
const n = (t.x - (e.left + e.width / 2)) / (e.width / 2), r = (t.y - (e.top + e.height / 2)) / (e.height / 2);
|
|
5180
5185
|
return Math.abs(n) > Math.abs(r) ? n > 0 ? "right" : "left" : r < 0 ? "top" : "bottom";
|
|
5181
5186
|
}
|
|
5182
|
-
function
|
|
5187
|
+
function qr(t, e) {
|
|
5183
5188
|
return 2 * e.padding + e.grip + t * (e.gap + e.tool);
|
|
5184
5189
|
}
|
|
5185
5190
|
function hn(t, e, n, r) {
|
|
5186
|
-
const o =
|
|
5191
|
+
const o = qr(e, r), a = zt(t), i = (a ? n.height : n.width) - 2 * r.margin, l = (a ? n.width : n.height) - 2 * r.margin;
|
|
5187
5192
|
return o <= i && r.thickness <= l;
|
|
5188
5193
|
}
|
|
5189
|
-
function
|
|
5194
|
+
function qu(t) {
|
|
5190
5195
|
switch (t) {
|
|
5191
5196
|
case "ArrowUp":
|
|
5192
5197
|
return "top";
|
|
@@ -5221,14 +5226,14 @@ const Bu = "_root_96fcb_22 _text_ocaqi_23", Ou = "_strip_96fcb_31", Hu = "_gripS
|
|
|
5221
5226
|
function nn(t) {
|
|
5222
5227
|
return Array.from(t.children);
|
|
5223
5228
|
}
|
|
5224
|
-
function
|
|
5229
|
+
function Et(t, e) {
|
|
5225
5230
|
const n = Number.parseFloat(t.getPropertyValue(e));
|
|
5226
5231
|
return Number.isFinite(n) ? n : 0;
|
|
5227
5232
|
}
|
|
5228
5233
|
const bm = V(function({
|
|
5229
5234
|
tools: e,
|
|
5230
5235
|
place: n,
|
|
5231
|
-
defaultPlace: r =
|
|
5236
|
+
defaultPlace: r = Fr,
|
|
5232
5237
|
onPlaceChange: o,
|
|
5233
5238
|
mode: a,
|
|
5234
5239
|
onModeChange: i,
|
|
@@ -5238,47 +5243,47 @@ const bm = V(function({
|
|
|
5238
5243
|
..._
|
|
5239
5244
|
}, v) {
|
|
5240
5245
|
var se;
|
|
5241
|
-
const m = fe(), d =
|
|
5246
|
+
const m = fe(), d = q(null), c = q(null);
|
|
5242
5247
|
mn(v, () => d.current, []);
|
|
5243
|
-
const [g, b] = W(r), N = n !== void 0, k = n ?? g,
|
|
5244
|
-
|
|
5245
|
-
const [$,
|
|
5248
|
+
const [g, b] = W(r), N = n !== void 0, k = n ?? g, y = q(k);
|
|
5249
|
+
y.current = k;
|
|
5250
|
+
const [$, E] = W(null), [x, A] = W(""), P = q(null);
|
|
5246
5251
|
ae(
|
|
5247
5252
|
() => () => {
|
|
5248
|
-
|
|
5253
|
+
P.current !== null && clearTimeout(P.current);
|
|
5249
5254
|
},
|
|
5250
5255
|
[]
|
|
5251
5256
|
);
|
|
5252
5257
|
const p = re(() => {
|
|
5253
|
-
var
|
|
5258
|
+
var we;
|
|
5254
5259
|
const T = c.current;
|
|
5255
5260
|
if (T === null) return null;
|
|
5256
5261
|
const U = nn(T), z = U[0];
|
|
5257
5262
|
if (z === void 0) return null;
|
|
5258
5263
|
const Z = T.getBoundingClientRect();
|
|
5259
5264
|
if (Z.width === 0 && Z.height === 0) return null;
|
|
5260
|
-
const ue = getComputedStyle(T), ge = zt(
|
|
5265
|
+
const ue = getComputedStyle(T), ge = zt(y.current), be = (ye) => ge ? ye.height : ye.width, Ae = (ye) => ge ? ye.width : ye.height, Me = z.getBoundingClientRect(), ke = (we = U[1]) == null ? void 0 : we.getBoundingClientRect();
|
|
5261
5266
|
return {
|
|
5262
5267
|
tool: ke === void 0 ? 0 : be(ke),
|
|
5263
5268
|
grip: be(Me),
|
|
5264
|
-
gap:
|
|
5265
|
-
padding:
|
|
5269
|
+
gap: Et(ue, ge ? "row-gap" : "column-gap"),
|
|
5270
|
+
padding: Et(ue, ge ? "padding-top" : "padding-left"),
|
|
5266
5271
|
/* The thickness is calculated and not measured on the strip: its shape is
|
|
5267
5272
|
in motion during a transition, that of a tool field never. Across,
|
|
5268
5273
|
exactly one field stands between the two paddings - grip and tool are
|
|
5269
5274
|
equally wide there. */
|
|
5270
|
-
thickness: Ae(ke === void 0 ? Me : ke) + 2 *
|
|
5275
|
+
thickness: Ae(ke === void 0 ? Me : ke) + 2 * Et(ue, ge ? "padding-left" : "padding-top"),
|
|
5271
5276
|
/* The margin is read from the token and not calculated back from the
|
|
5272
5277
|
position of the strip: it is the same at all four edges, and the
|
|
5273
5278
|
position knows it only at the one the dock currently lies at. */
|
|
5274
|
-
margin:
|
|
5279
|
+
margin: Et(ue, "--u-dock-margin")
|
|
5275
5280
|
};
|
|
5276
5281
|
}, []), H = re(() => {
|
|
5277
5282
|
const T = d.current;
|
|
5278
5283
|
if (T === null) return null;
|
|
5279
5284
|
const U = T.getBoundingClientRect();
|
|
5280
5285
|
return { left: U.left, top: U.top, width: U.width, height: U.height };
|
|
5281
|
-
}, []), C =
|
|
5286
|
+
}, []), C = q(null), D = q([]), F = re((T) => {
|
|
5282
5287
|
const U = c.current, z = d.current;
|
|
5283
5288
|
return U === null || z === null ? null : {
|
|
5284
5289
|
place: T,
|
|
@@ -5287,38 +5292,38 @@ const bm = V(function({
|
|
|
5287
5292
|
children: nn(U).map((Z) => Z.getBoundingClientRect())
|
|
5288
5293
|
};
|
|
5289
5294
|
}, []), Y = re(() => {
|
|
5290
|
-
|
|
5295
|
+
P.current !== null && (clearTimeout(P.current), P.current = null), E(null);
|
|
5291
5296
|
}, []), M = re(
|
|
5292
5297
|
(T) => {
|
|
5293
|
-
T !==
|
|
5298
|
+
T !== y.current && (C.current = F(y.current), Y(), N || b(T), y.current = T, o == null || o(T), A(m.dockPlaced(m.dockPlace(T))));
|
|
5294
5299
|
},
|
|
5295
|
-
[N, Y,
|
|
5296
|
-
),
|
|
5300
|
+
[N, Y, F, o, m]
|
|
5301
|
+
), L = re(
|
|
5297
5302
|
(T, U, z, Z) => {
|
|
5298
|
-
const ue =
|
|
5299
|
-
|
|
5303
|
+
const ue = qr(z, U);
|
|
5304
|
+
E({
|
|
5300
5305
|
place: T,
|
|
5301
5306
|
width: `${zt(T) ? U.thickness : ue}px`,
|
|
5302
5307
|
height: `${zt(T) ? ue : U.thickness}px`
|
|
5303
|
-
}), A(m.dockNoPlace(m.dockPlace(T))),
|
|
5308
|
+
}), A(m.dockNoPlace(m.dockPlace(T))), P.current !== null && clearTimeout(P.current);
|
|
5304
5309
|
const ge = c.current === null ? null : getComputedStyle(c.current), be = ge === null ? 0 : It(ge, "--u-dock-refusal-duration");
|
|
5305
|
-
|
|
5306
|
-
|
|
5310
|
+
P.current = Z && be > 0 ? setTimeout(() => {
|
|
5311
|
+
P.current = null, E(null);
|
|
5307
5312
|
}, be) : null;
|
|
5308
5313
|
},
|
|
5309
5314
|
[m]
|
|
5310
5315
|
), I = re(
|
|
5311
5316
|
(T, U, z, Z) => {
|
|
5312
|
-
if (T !==
|
|
5317
|
+
if (T !== y.current) {
|
|
5313
5318
|
if (U !== null && z !== null && !hn(T, e.length, U, z)) {
|
|
5314
|
-
|
|
5319
|
+
L(T, z, e.length, Z);
|
|
5315
5320
|
return;
|
|
5316
5321
|
}
|
|
5317
5322
|
M(T);
|
|
5318
5323
|
}
|
|
5319
5324
|
},
|
|
5320
|
-
[
|
|
5321
|
-
), K =
|
|
5325
|
+
[L, M, e.length]
|
|
5326
|
+
), K = q(null);
|
|
5322
5327
|
ae(() => () => {
|
|
5323
5328
|
var T;
|
|
5324
5329
|
return (T = K.current) == null ? void 0 : T.call(K);
|
|
@@ -5329,29 +5334,29 @@ const bm = V(function({
|
|
|
5329
5334
|
T.preventDefault();
|
|
5330
5335
|
const z = T.pointerId;
|
|
5331
5336
|
U.setPointerCapture(z), U.dataset.dragging = "";
|
|
5332
|
-
const Z = H(), ue = p(), ge =
|
|
5337
|
+
const Z = H(), ue = p(), ge = Et(getComputedStyle(U), "--u-dock-grip-travel"), be = y.current;
|
|
5333
5338
|
let Ae = T.clientX, Me = T.clientY;
|
|
5334
5339
|
const ke = (u, S) => {
|
|
5335
5340
|
const j = (X) => Math.max(-ge, Math.min(ge, X));
|
|
5336
5341
|
U.style.transform = `translate(${j(u - Ae)}px, ${j(S - Me)}px)`;
|
|
5337
|
-
},
|
|
5342
|
+
}, we = (u) => {
|
|
5338
5343
|
if (u.pointerId !== z) return;
|
|
5339
|
-
const S =
|
|
5344
|
+
const S = y.current;
|
|
5340
5345
|
if (Z !== null) {
|
|
5341
|
-
const j =
|
|
5342
|
-
j ===
|
|
5346
|
+
const j = Fu({ x: u.clientX, y: u.clientY }, Z);
|
|
5347
|
+
j === y.current ? Y() : I(j, Z, ue, !1);
|
|
5343
5348
|
}
|
|
5344
|
-
|
|
5345
|
-
},
|
|
5346
|
-
K.current = null, U.removeEventListener("pointermove",
|
|
5349
|
+
y.current !== S && (Ae = u.clientX, Me = u.clientY), ke(u.clientX, u.clientY);
|
|
5350
|
+
}, ye = () => {
|
|
5351
|
+
K.current = null, U.removeEventListener("pointermove", we), U.removeEventListener("pointerup", Ne), U.removeEventListener("pointercancel", Ne), window.removeEventListener("keydown", Pe, !0), U.hasPointerCapture(z) && U.releasePointerCapture(z), delete U.dataset.dragging, U.style.transform = "", Y();
|
|
5347
5352
|
}, Ne = (u) => {
|
|
5348
|
-
u.pointerId === z &&
|
|
5349
|
-
},
|
|
5350
|
-
u.key === "Escape" && (u.preventDefault(), u.stopPropagation(), M(be),
|
|
5353
|
+
u.pointerId === z && ye();
|
|
5354
|
+
}, Pe = (u) => {
|
|
5355
|
+
u.key === "Escape" && (u.preventDefault(), u.stopPropagation(), M(be), ye());
|
|
5351
5356
|
};
|
|
5352
|
-
U.addEventListener("pointermove",
|
|
5357
|
+
U.addEventListener("pointermove", we), U.addEventListener("pointerup", Ne), U.addEventListener("pointercancel", Ne), window.addEventListener("keydown", Pe, !0), K.current = ye;
|
|
5353
5358
|
}, G = (T) => {
|
|
5354
|
-
const U =
|
|
5359
|
+
const U = qu(T.key);
|
|
5355
5360
|
U !== void 0 && (T.preventDefault(), I(U, H(), p(), !0));
|
|
5356
5361
|
}, Q = e.filter((T) => T.disabled !== !0), [ce, me] = W(null), _e = (T) => {
|
|
5357
5362
|
var U;
|
|
@@ -5372,7 +5377,7 @@ const bm = V(function({
|
|
|
5372
5377
|
const T = C.current;
|
|
5373
5378
|
if (T !== null && T.place === k) return;
|
|
5374
5379
|
de();
|
|
5375
|
-
const U =
|
|
5380
|
+
const U = F(k);
|
|
5376
5381
|
C.current = U, !(T === null || U === null) && (Yt() || O(T, U));
|
|
5377
5382
|
});
|
|
5378
5383
|
function de() {
|
|
@@ -5387,11 +5392,11 @@ const bm = V(function({
|
|
|
5387
5392
|
const ge = {
|
|
5388
5393
|
duration: ue,
|
|
5389
5394
|
easing: Z.getPropertyValue("--u-ease-out").trim() || "ease-out"
|
|
5390
|
-
}, be = (
|
|
5391
|
-
left: `${
|
|
5392
|
-
top: `${
|
|
5393
|
-
width: `${
|
|
5394
|
-
height: `${
|
|
5395
|
+
}, be = (we) => ({
|
|
5396
|
+
left: `${we.strip.left - we.root.left}px`,
|
|
5397
|
+
top: `${we.strip.top - we.root.top}px`,
|
|
5398
|
+
width: `${we.strip.width}px`,
|
|
5399
|
+
height: `${we.strip.height}px`,
|
|
5395
5400
|
right: "auto",
|
|
5396
5401
|
bottom: "auto",
|
|
5397
5402
|
marginLeft: "0px",
|
|
@@ -5401,12 +5406,12 @@ const bm = V(function({
|
|
|
5401
5406
|
});
|
|
5402
5407
|
D.current.push(z.animate([be(T), be(U)], ge));
|
|
5403
5408
|
const Ae = nn(z), Me = T.strip.left - U.strip.left, ke = T.strip.top - U.strip.top;
|
|
5404
|
-
Ae.forEach((
|
|
5405
|
-
const Ne = T.children[
|
|
5406
|
-
if (Ne === void 0 ||
|
|
5407
|
-
const u = Ne.left -
|
|
5409
|
+
Ae.forEach((we, ye) => {
|
|
5410
|
+
const Ne = T.children[ye], Pe = U.children[ye];
|
|
5411
|
+
if (Ne === void 0 || Pe === void 0) return;
|
|
5412
|
+
const u = Ne.left - Pe.left - Me, S = Ne.top - Pe.top - ke;
|
|
5408
5413
|
Math.abs(u) < 0.5 && Math.abs(S) < 0.5 || D.current.push(
|
|
5409
|
-
|
|
5414
|
+
we.animate(
|
|
5410
5415
|
[{ transform: `translate(${u}px, ${S}px)` }, { transform: "none" }],
|
|
5411
5416
|
ge
|
|
5412
5417
|
)
|
|
@@ -5418,13 +5423,13 @@ const bm = V(function({
|
|
|
5418
5423
|
if (T === null || typeof ResizeObserver > "u") return;
|
|
5419
5424
|
const U = new ResizeObserver(() => {
|
|
5420
5425
|
const z = H(), Z = p();
|
|
5421
|
-
if (z === null || Z === null || hn(
|
|
5422
|
-
const ue = Iu(
|
|
5426
|
+
if (z === null || Z === null || hn(y.current, e.length, z, Z)) return;
|
|
5427
|
+
const ue = Iu(y.current, e.length, z, Z);
|
|
5423
5428
|
ue !== void 0 && M(ue);
|
|
5424
5429
|
});
|
|
5425
5430
|
return U.observe(T), () => U.disconnect();
|
|
5426
|
-
}, [p, M, e.length, H]), /* @__PURE__ */
|
|
5427
|
-
/* @__PURE__ */
|
|
5431
|
+
}, [p, M, e.length, H]), /* @__PURE__ */ w("div", { ref: d, className: R(_t.root, h), ..._, children: [
|
|
5432
|
+
/* @__PURE__ */ w(
|
|
5428
5433
|
"div",
|
|
5429
5434
|
{
|
|
5430
5435
|
ref: c,
|
|
@@ -5476,24 +5481,24 @@ const bm = V(function({
|
|
|
5476
5481
|
"aria-hidden": "true"
|
|
5477
5482
|
}
|
|
5478
5483
|
),
|
|
5479
|
-
/* @__PURE__ */ s(
|
|
5484
|
+
/* @__PURE__ */ s(Pr, { role: "status", "aria-live": "polite", children: x })
|
|
5480
5485
|
] });
|
|
5481
5486
|
});
|
|
5482
|
-
function
|
|
5483
|
-
const a =
|
|
5487
|
+
function wm({ open: t, onOpenChange: e, position: n, ariaLabel: r, children: o }) {
|
|
5488
|
+
const a = q(null), i = q(null);
|
|
5484
5489
|
je(() => {
|
|
5485
5490
|
if (!t) return;
|
|
5486
5491
|
const _ = document.activeElement;
|
|
5487
5492
|
i.current = _ instanceof HTMLElement && _ !== document.body ? _ : null;
|
|
5488
5493
|
}, [t]);
|
|
5489
|
-
const l =
|
|
5494
|
+
const l = q(null), f = re((_) => {
|
|
5490
5495
|
var v;
|
|
5491
5496
|
l.current = _, (v = _ == null ? void 0 : _.querySelector('[role="menuitem"]:not([disabled])')) == null || v.focus();
|
|
5492
5497
|
}, []), h = () => {
|
|
5493
5498
|
var _;
|
|
5494
5499
|
e(!1), (_ = i.current) == null || _.focus();
|
|
5495
5500
|
};
|
|
5496
|
-
return /* @__PURE__ */
|
|
5501
|
+
return /* @__PURE__ */ w(Re, { children: [
|
|
5497
5502
|
/* @__PURE__ */ s(
|
|
5498
5503
|
"span",
|
|
5499
5504
|
{
|
|
@@ -5535,9 +5540,9 @@ const ju = "_wrapper_e8tme_8 _text_ocaqi_23", Vu = "_sm_e8tme_23", Yu = "_track_
|
|
|
5535
5540
|
thumb: Xu,
|
|
5536
5541
|
invalid: Zu,
|
|
5537
5542
|
label: Qu
|
|
5538
|
-
},
|
|
5543
|
+
}, ym = V(function({ label: e, size: n = "md", invalid: r, className: o, id: a, ...i }, l) {
|
|
5539
5544
|
const f = He(), h = a ?? (f == null ? void 0 : f.id), _ = r ?? (f == null ? void 0 : f.invalid) ?? !1;
|
|
5540
|
-
return /* @__PURE__ */
|
|
5545
|
+
return /* @__PURE__ */ w("label", { className: R(gt.wrapper, n === "sm" && gt.sm, o), htmlFor: h, children: [
|
|
5541
5546
|
/* @__PURE__ */ s(
|
|
5542
5547
|
"input",
|
|
5543
5548
|
{
|
|
@@ -5606,15 +5611,15 @@ const km = V(function({
|
|
|
5606
5611
|
onKeyDown: c,
|
|
5607
5612
|
...g
|
|
5608
5613
|
}, b) {
|
|
5609
|
-
const N = Qe(), k = He(), [
|
|
5610
|
-
C !== x && (
|
|
5614
|
+
const N = Qe(), k = He(), [y, $] = W(() => Mt(n ?? o, o, a, i)), E = e !== void 0, x = E ? e : y, A = f ? f(x) : N.number(x, Cn(i)), P = (C) => a > o ? (C - o) / (a - o) * 100 : 0, p = (C) => {
|
|
5615
|
+
C !== x && (E || $(C), r == null || r(C));
|
|
5611
5616
|
}, H = (C) => {
|
|
5612
5617
|
if (c == null || c(C), C.defaultPrevented || d) return;
|
|
5613
5618
|
const D = af(C.key, x, o, a, i);
|
|
5614
5619
|
D !== void 0 && (C.preventDefault(), p(D));
|
|
5615
5620
|
};
|
|
5616
|
-
return /* @__PURE__ */
|
|
5617
|
-
/* @__PURE__ */
|
|
5621
|
+
return /* @__PURE__ */ w("div", { className: R(vt.slider, _), children: [
|
|
5622
|
+
/* @__PURE__ */ w("div", { className: vt.control, children: [
|
|
5618
5623
|
/* @__PURE__ */ s(
|
|
5619
5624
|
"input",
|
|
5620
5625
|
{
|
|
@@ -5628,7 +5633,7 @@ const km = V(function({
|
|
|
5628
5633
|
disabled: d,
|
|
5629
5634
|
className: vt.range,
|
|
5630
5635
|
...g,
|
|
5631
|
-
style: { ...v, "--_fill": `${
|
|
5636
|
+
style: { ...v, "--_fill": `${P(x)}%` },
|
|
5632
5637
|
min: o,
|
|
5633
5638
|
max: a,
|
|
5634
5639
|
step: i,
|
|
@@ -5638,13 +5643,13 @@ const km = V(function({
|
|
|
5638
5643
|
}
|
|
5639
5644
|
),
|
|
5640
5645
|
l && l.length > 0 && /* @__PURE__ */ s("div", { className: vt.marks, "aria-hidden": "true", children: l.map((C, D) => {
|
|
5641
|
-
const
|
|
5642
|
-
return /* @__PURE__ */ s("span", { "data-mark": "", className: vt.mark, style: { left: `${
|
|
5646
|
+
const F = typeof C == "number" ? C : C.value, Y = typeof C == "number" ? void 0 : C.label;
|
|
5647
|
+
return /* @__PURE__ */ s("span", { "data-mark": "", className: vt.mark, style: { left: `${P(F)}%` }, children: Y !== void 0 && /* @__PURE__ */ s("span", { className: vt.markLabel, children: Y }) }, D);
|
|
5643
5648
|
}) })
|
|
5644
5649
|
] }),
|
|
5645
5650
|
h && /* @__PURE__ */ s("span", { className: vt.readout, "aria-hidden": "true", children: A })
|
|
5646
5651
|
] });
|
|
5647
|
-
}), cf = "_progress_1g9zo_10 _text_ocaqi_23", lf = "_track_1g9zo_19", df = "_fill_1g9zo_28", uf = "_sweep_1g9zo_41", ff = "_label_1g9zo_63",
|
|
5652
|
+
}), cf = "_progress_1g9zo_10 _text_ocaqi_23", lf = "_track_1g9zo_19", df = "_fill_1g9zo_28", uf = "_sweep_1g9zo_41", ff = "_label_1g9zo_63", Ft = {
|
|
5648
5653
|
progress: cf,
|
|
5649
5654
|
track: lf,
|
|
5650
5655
|
fill: df,
|
|
@@ -5652,12 +5657,12 @@ const km = V(function({
|
|
|
5652
5657
|
label: ff
|
|
5653
5658
|
}, Nm = V(function({ value: e, label: n, valueText: r, showLabel: o = !1, className: a, ...i }, l) {
|
|
5654
5659
|
const f = Qe(), h = fe(), _ = e !== void 0, v = _ ? Tn(e) : 0;
|
|
5655
|
-
return /* @__PURE__ */
|
|
5660
|
+
return /* @__PURE__ */ w(
|
|
5656
5661
|
"div",
|
|
5657
5662
|
{
|
|
5658
5663
|
ref: l,
|
|
5659
5664
|
"aria-label": i["aria-labelledby"] ? void 0 : n ?? h.progress,
|
|
5660
|
-
className: R(
|
|
5665
|
+
className: R(Ft.progress, a),
|
|
5661
5666
|
...i,
|
|
5662
5667
|
role: "progressbar",
|
|
5663
5668
|
"aria-valuemin": _ ? 0 : void 0,
|
|
@@ -5666,18 +5671,18 @@ const km = V(function({
|
|
|
5666
5671
|
"aria-valuetext": _ ? r : void 0,
|
|
5667
5672
|
"data-indeterminate": _ ? void 0 : "",
|
|
5668
5673
|
children: [
|
|
5669
|
-
/* @__PURE__ */ s("span", { className:
|
|
5674
|
+
/* @__PURE__ */ s("span", { className: Ft.track, children: /* @__PURE__ */ s(
|
|
5670
5675
|
"span",
|
|
5671
5676
|
{
|
|
5672
|
-
className: R(
|
|
5677
|
+
className: R(Ft.fill, !_ && Ft.sweep),
|
|
5673
5678
|
style: _ ? { width: `${v * 100}%` } : void 0
|
|
5674
5679
|
}
|
|
5675
5680
|
) }),
|
|
5676
|
-
o && _ && /* @__PURE__ */ s("span", { className:
|
|
5681
|
+
o && _ && /* @__PURE__ */ s("span", { className: Ft.label, children: f.percent(v) })
|
|
5677
5682
|
]
|
|
5678
5683
|
}
|
|
5679
5684
|
);
|
|
5680
|
-
}), hf = "_accordion_amymf_9 _text_ocaqi_23", mf = "_item_amymf_15", pf = "_heading_amymf_19", _f = "_header_amymf_26 _ring_ocaqi_81", gf = "_title_amymf_57", vf = "_chevron_amymf_61", bf = "_chevronOpen_amymf_67",
|
|
5685
|
+
}), hf = "_accordion_amymf_9 _text_ocaqi_23", mf = "_item_amymf_15", pf = "_heading_amymf_19", _f = "_header_amymf_26 _ring_ocaqi_81", gf = "_title_amymf_57", vf = "_chevron_amymf_61", bf = "_chevronOpen_amymf_67", wf = "_collapse_amymf_71", yf = "_collapsed_amymf_77", kf = "_collapseInner_amymf_81", Nf = "_panel_amymf_86", tt = {
|
|
5681
5686
|
accordion: hf,
|
|
5682
5687
|
item: mf,
|
|
5683
5688
|
heading: pf,
|
|
@@ -5685,23 +5690,23 @@ const km = V(function({
|
|
|
5685
5690
|
title: gf,
|
|
5686
5691
|
chevron: vf,
|
|
5687
5692
|
chevronOpen: bf,
|
|
5688
|
-
collapse:
|
|
5689
|
-
collapsed:
|
|
5693
|
+
collapse: wf,
|
|
5694
|
+
collapsed: yf,
|
|
5690
5695
|
collapseInner: kf,
|
|
5691
5696
|
panel: Nf
|
|
5692
5697
|
}, Br = it(null), xm = V(function({ type: e = "single", value: n, defaultValue: r = [], onChange: o, headingLevel: a = 3, className: i, onKeyDown: l, children: f, ...h }, _) {
|
|
5693
5698
|
const [v, m] = W(r), d = n !== void 0, c = d ? n : v, g = (N) => {
|
|
5694
|
-
const
|
|
5695
|
-
d || m(
|
|
5699
|
+
const y = c.includes(N) ? c.filter(($) => $ !== N) : e === "single" ? [N] : [...c, N];
|
|
5700
|
+
d || m(y), o == null || o(y);
|
|
5696
5701
|
}, b = (N) => {
|
|
5697
5702
|
if (l == null || l(N), N.defaultPrevented) return;
|
|
5698
|
-
const k = N.currentTarget,
|
|
5699
|
-
if (!
|
|
5703
|
+
const k = N.currentTarget, y = N.target;
|
|
5704
|
+
if (!y.matches("[data-accordion-header]") || y.closest("[data-accordion]") !== k) return;
|
|
5700
5705
|
const $ = Array.from(k.querySelectorAll("[data-accordion-header]:not(:disabled)")).filter(
|
|
5701
5706
|
(A) => A.closest("[data-accordion]") === k
|
|
5702
|
-
),
|
|
5703
|
-
ArrowDown: $[(
|
|
5704
|
-
ArrowUp: $[(
|
|
5707
|
+
), E = $.indexOf(y), x = {
|
|
5708
|
+
ArrowDown: $[(E + 1) % $.length],
|
|
5709
|
+
ArrowUp: $[(E - 1 + $.length) % $.length],
|
|
5705
5710
|
Home: $[0],
|
|
5706
5711
|
End: $[$.length - 1]
|
|
5707
5712
|
}[N.key];
|
|
@@ -5709,9 +5714,9 @@ const km = V(function({
|
|
|
5709
5714
|
};
|
|
5710
5715
|
return /* @__PURE__ */ s("div", { ref: _, className: R(tt.accordion, i), ...h, "data-accordion": "", onKeyDown: b, children: /* @__PURE__ */ s(Br.Provider, { value: { open: c, toggle: g, headingLevel: a }, children: f }) });
|
|
5711
5716
|
}), $m = V(function({ value: e, title: n, disabled: r = !1, className: o, children: a, ...i }, l) {
|
|
5712
|
-
const f = Ze(Br), h =
|
|
5713
|
-
return /* @__PURE__ */
|
|
5714
|
-
/* @__PURE__ */ s(d, { className: tt.heading, children: /* @__PURE__ */
|
|
5717
|
+
const f = Ze(Br), h = Le(), _ = `${h}-header`, v = `${h}-panel`, m = (f == null ? void 0 : f.open.includes(e)) ?? !1, d = `h${(f == null ? void 0 : f.headingLevel) ?? 3}`;
|
|
5718
|
+
return /* @__PURE__ */ w("div", { ref: l, className: R(tt.item, o), ...i, children: [
|
|
5719
|
+
/* @__PURE__ */ s(d, { className: tt.heading, children: /* @__PURE__ */ w(
|
|
5715
5720
|
"button",
|
|
5716
5721
|
{
|
|
5717
5722
|
type: "button",
|
|
@@ -5740,7 +5745,7 @@ function xf(t, e, n, r) {
|
|
|
5740
5745
|
}
|
|
5741
5746
|
return o - 2;
|
|
5742
5747
|
}
|
|
5743
|
-
const $f = "_breadcrumb_5vnnn_9 _text_ocaqi_23", Sf = "_list_5vnnn_15", Tf = "_item_5vnnn_27", Df = "_lastItem_5vnnn_35", Af = "_link_5vnnn_5 _ring_ocaqi_81", Mf = "_text_5vnnn_5", Cf = "_current_5vnnn_61", Rf = "_more_5vnnn_73 _ring_ocaqi_81",
|
|
5748
|
+
const $f = "_breadcrumb_5vnnn_9 _text_ocaqi_23", Sf = "_list_5vnnn_15", Tf = "_item_5vnnn_27", Df = "_lastItem_5vnnn_35", Af = "_link_5vnnn_5 _ring_ocaqi_81", Mf = "_text_5vnnn_5", Cf = "_current_5vnnn_61", Rf = "_more_5vnnn_73 _ring_ocaqi_81", Lf = "_separator_5vnnn_101", Pf = "_measure_5vnnn_109", De = {
|
|
5744
5749
|
breadcrumb: $f,
|
|
5745
5750
|
list: Sf,
|
|
5746
5751
|
item: Tf,
|
|
@@ -5749,15 +5754,15 @@ const $f = "_breadcrumb_5vnnn_9 _text_ocaqi_23", Sf = "_list_5vnnn_15", Tf = "_i
|
|
|
5749
5754
|
text: Mf,
|
|
5750
5755
|
current: Cf,
|
|
5751
5756
|
more: Rf,
|
|
5752
|
-
separator:
|
|
5753
|
-
measure:
|
|
5757
|
+
separator: Lf,
|
|
5758
|
+
measure: Pf
|
|
5754
5759
|
}, Bt = /* @__PURE__ */ s(Rt, { size: 8, className: De.separator }), Sm = V(function({ items: e, className: n, ...r }, o) {
|
|
5755
|
-
const a = fe(), i =
|
|
5760
|
+
const a = fe(), i = q(null), l = q(null), [f, h] = W(0), _ = re(() => {
|
|
5756
5761
|
var $;
|
|
5757
5762
|
const g = i.current, b = l.current;
|
|
5758
5763
|
if (!g || !b) return;
|
|
5759
|
-
const N = Array.from(b.querySelectorAll("[data-measure-level]")).map((
|
|
5760
|
-
h(xf(N, k,
|
|
5764
|
+
const N = Array.from(b.querySelectorAll("[data-measure-level]")).map((E) => E.offsetWidth), k = (($ = b.querySelector("[data-measure-more]")) == null ? void 0 : $.offsetWidth) ?? 0, y = Number.parseFloat(getComputedStyle(b).columnGap) || 0;
|
|
5765
|
+
h(xf(N, k, y, g.clientWidth));
|
|
5761
5766
|
}, []);
|
|
5762
5767
|
je(() => _()), ae(() => {
|
|
5763
5768
|
const g = i.current;
|
|
@@ -5782,8 +5787,8 @@ const $f = "_breadcrumb_5vnnn_9 _text_ocaqi_23", Sf = "_list_5vnnn_15", Tf = "_i
|
|
|
5782
5787
|
}
|
|
5783
5788
|
) : g.onSelect && !N ? /* @__PURE__ */ s("button", { type: "button", className: De.link, onClick: g.onSelect, children: g.label }) : /* @__PURE__ */ s("span", { "aria-current": N, className: R(De.text, N && De.current), children: g.label });
|
|
5784
5789
|
};
|
|
5785
|
-
return /* @__PURE__ */
|
|
5786
|
-
/* @__PURE__ */ s("ol", { className: De.list, children: e.map((g, b) => b > 0 && b <= f ? b > 1 ? null : /* @__PURE__ */
|
|
5790
|
+
return /* @__PURE__ */ w("nav", { ref: Ve(i, o), "aria-label": a.breadcrumb, className: R(De.breadcrumb, n), ...r, children: [
|
|
5791
|
+
/* @__PURE__ */ s("ol", { className: De.list, children: e.map((g, b) => b > 0 && b <= f ? b > 1 ? null : /* @__PURE__ */ w("li", { className: De.item, children: [
|
|
5787
5792
|
/* @__PURE__ */ s(
|
|
5788
5793
|
hr,
|
|
5789
5794
|
{
|
|
@@ -5792,25 +5797,25 @@ const $f = "_breadcrumb_5vnnn_9 _text_ocaqi_23", Sf = "_list_5vnnn_15", Tf = "_i
|
|
|
5792
5797
|
}
|
|
5793
5798
|
),
|
|
5794
5799
|
Bt
|
|
5795
|
-
] }, "more") : /* @__PURE__ */
|
|
5800
|
+
] }, "more") : /* @__PURE__ */ w("li", { className: R(De.item, b === v && De.lastItem), children: [
|
|
5796
5801
|
c(g, b),
|
|
5797
5802
|
b < v && Bt
|
|
5798
5803
|
] }, b)) }),
|
|
5799
|
-
/* @__PURE__ */
|
|
5800
|
-
e.map((g, b) => /* @__PURE__ */
|
|
5804
|
+
/* @__PURE__ */ w("ol", { ref: l, className: R(De.list, De.measure), "aria-hidden": "true", children: [
|
|
5805
|
+
e.map((g, b) => /* @__PURE__ */ w("li", { className: De.item, "data-measure-level": "", children: [
|
|
5801
5806
|
/* @__PURE__ */ s("span", { className: R(De.text, b === v && De.current), children: g.label }),
|
|
5802
5807
|
b < v && Bt
|
|
5803
5808
|
] }, b)),
|
|
5804
|
-
/* @__PURE__ */
|
|
5809
|
+
/* @__PURE__ */ w("li", { className: De.item, "data-measure-more": "", children: [
|
|
5805
5810
|
/* @__PURE__ */ s("span", { className: De.more, children: "…" }),
|
|
5806
5811
|
Bt
|
|
5807
5812
|
] })
|
|
5808
5813
|
] })
|
|
5809
5814
|
] });
|
|
5810
|
-
}),
|
|
5811
|
-
splitter:
|
|
5812
|
-
vertical:
|
|
5813
|
-
pane:
|
|
5815
|
+
}), Ef = "_splitter_qhaiw_10", Ff = "_vertical_qhaiw_17", qf = "_pane_qhaiw_22 _scroll_ocaqi_52", If = "_separator_qhaiw_29", Bf = "_grip_qhaiw_69", Dt = {
|
|
5816
|
+
splitter: Ef,
|
|
5817
|
+
vertical: Ff,
|
|
5818
|
+
pane: qf,
|
|
5814
5819
|
separator: If,
|
|
5815
5820
|
grip: Bf
|
|
5816
5821
|
}, Tm = V(function({
|
|
@@ -5828,30 +5833,30 @@ const $f = "_breadcrumb_5vnnn_9 _text_ocaqi_23", Sf = "_list_5vnnn_15", Tf = "_i
|
|
|
5828
5833
|
children: m,
|
|
5829
5834
|
...d
|
|
5830
5835
|
}, c) {
|
|
5831
|
-
const g = fe(), b =
|
|
5832
|
-
const I =
|
|
5833
|
-
I !== A && (x ||
|
|
5834
|
-
}, D = (
|
|
5835
|
-
if (v == null || v(
|
|
5836
|
+
const g = fe(), b = Le(), N = q(null), k = q(null), y = (L) => Math.min(i, Math.max(a, L)), [$, E] = W(() => y(r)), x = n !== void 0, A = y(x ? n : $), P = q(null), p = q(null), H = e === "horizontal", C = (L) => {
|
|
5837
|
+
const I = y(L);
|
|
5838
|
+
I !== A && (x || E(I), o == null || o(I));
|
|
5839
|
+
}, D = (L) => {
|
|
5840
|
+
if (v == null || v(L), L.defaultPrevented || L.target !== k.current) return;
|
|
5836
5841
|
const K = {
|
|
5837
5842
|
[H ? "ArrowRight" : "ArrowDown"]: () => A + l,
|
|
5838
5843
|
[H ? "ArrowLeft" : "ArrowUp"]: () => A - l,
|
|
5839
5844
|
Home: () => a,
|
|
5840
5845
|
End: () => i,
|
|
5841
|
-
Enter: () => A > a ? (
|
|
5842
|
-
}[
|
|
5843
|
-
K && (
|
|
5844
|
-
},
|
|
5845
|
-
const I =
|
|
5846
|
+
Enter: () => A > a ? (P.current = A, a) : P.current ?? (a + i) / 2
|
|
5847
|
+
}[L.key];
|
|
5848
|
+
K && (L.preventDefault(), C(K()));
|
|
5849
|
+
}, F = (L) => H ? L.clientX : L.clientY, Y = (L) => {
|
|
5850
|
+
const I = L.getBoundingClientRect();
|
|
5846
5851
|
return H ? I.left + I.width / 2 : I.top + I.height / 2;
|
|
5847
|
-
}, M = (
|
|
5852
|
+
}, M = (L, I) => {
|
|
5848
5853
|
var _e, J;
|
|
5849
5854
|
const K = (_e = N.current) == null ? void 0 : _e.getBoundingClientRect(), ie = (J = k.current) == null ? void 0 : J.getBoundingClientRect();
|
|
5850
5855
|
if (!K || !ie) return;
|
|
5851
|
-
const [G, Q, ce] = H ? [K.left, K.width, ie.width] : [K.top, K.height, ie.height], me = (
|
|
5856
|
+
const [G, Q, ce] = H ? [K.left, K.width, ie.width] : [K.top, K.height, ie.height], me = (F(L) - I - G - ce / 2) / (Q - ce);
|
|
5852
5857
|
Number.isFinite(me) && C(Math.round(me * 1e3) / 10);
|
|
5853
5858
|
};
|
|
5854
|
-
return /* @__PURE__ */
|
|
5859
|
+
return /* @__PURE__ */ w(
|
|
5855
5860
|
"div",
|
|
5856
5861
|
{
|
|
5857
5862
|
ref: Ve(c, N),
|
|
@@ -5874,15 +5879,15 @@ const $f = "_breadcrumb_5vnnn_9 _text_ocaqi_23", Sf = "_list_5vnnn_15", Tf = "_i
|
|
|
5874
5879
|
"aria-valuemin": a,
|
|
5875
5880
|
"aria-valuemax": i,
|
|
5876
5881
|
className: Dt.separator,
|
|
5877
|
-
onPointerDown: (
|
|
5878
|
-
|
|
5882
|
+
onPointerDown: (L) => {
|
|
5883
|
+
L.button === 0 && (L.preventDefault(), L.currentTarget.focus(), L.currentTarget.setPointerCapture(L.pointerId), p.current = { pointer: L.pointerId, offset: F(L) - Y(L.currentTarget) });
|
|
5879
5884
|
},
|
|
5880
|
-
onPointerMove: (
|
|
5885
|
+
onPointerMove: (L) => {
|
|
5881
5886
|
var I;
|
|
5882
|
-
((I = p.current) == null ? void 0 : I.pointer) ===
|
|
5887
|
+
((I = p.current) == null ? void 0 : I.pointer) === L.pointerId && M(L, p.current.offset);
|
|
5883
5888
|
},
|
|
5884
|
-
onPointerUp: (
|
|
5885
|
-
p.current = null,
|
|
5889
|
+
onPointerUp: (L) => {
|
|
5890
|
+
p.current = null, L.currentTarget.releasePointerCapture(L.pointerId);
|
|
5886
5891
|
},
|
|
5887
5892
|
onPointerCancel: () => {
|
|
5888
5893
|
p.current = null;
|
|
@@ -5920,7 +5925,7 @@ const Wf = "_stepper_1w41b_11 _text_ocaqi_23", Gf = "_step_1w41b_11", Uf = "_don
|
|
|
5920
5925
|
upcoming: Qf,
|
|
5921
5926
|
vertical: Jf
|
|
5922
5927
|
}, eh = (t, e, n) => t.failed ? "failed" : e < n ? "done" : e === n ? "current" : "upcoming", Dm = V(function({ steps: e, current: n, orientation: r = "horizontal", className: o, ...a }, i) {
|
|
5923
|
-
const l = fe(), f =
|
|
5928
|
+
const l = fe(), f = q(null), [h, _] = W("row"), v = re(() => {
|
|
5924
5929
|
const d = f.current;
|
|
5925
5930
|
if (!d || r === "vertical" || d.clientWidth <= 0) return;
|
|
5926
5931
|
const c = d.cloneNode(!0);
|
|
@@ -5934,14 +5939,14 @@ const Wf = "_stepper_1w41b_11 _text_ocaqi_23", Gf = "_step_1w41b_11", Uf = "_don
|
|
|
5934
5939
|
for (const $ of N) $.style.display = "";
|
|
5935
5940
|
c.setAttribute("data-fit", "stacked");
|
|
5936
5941
|
for (const $ of b) $.style.width = "min-content";
|
|
5937
|
-
const
|
|
5942
|
+
const y = zf(
|
|
5938
5943
|
b.map(($) => {
|
|
5939
|
-
const
|
|
5940
|
-
return
|
|
5944
|
+
const E = $.querySelector(`.${et.text}`);
|
|
5945
|
+
return E && (E.style.width = "min-content"), Math.max($.getBoundingClientRect().width, (E == null ? void 0 : E.getBoundingClientRect().width) ?? 0);
|
|
5941
5946
|
}),
|
|
5942
5947
|
g
|
|
5943
5948
|
);
|
|
5944
|
-
c.remove(), _(Of(d.clientWidth, k,
|
|
5949
|
+
c.remove(), _(Of(d.clientWidth, k, y));
|
|
5945
5950
|
}, [r]);
|
|
5946
5951
|
je(() => v()), ae(() => {
|
|
5947
5952
|
var b;
|
|
@@ -5970,7 +5975,7 @@ const Wf = "_stepper_1w41b_11 _text_ocaqi_23", Gf = "_step_1w41b_11", Uf = "_don
|
|
|
5970
5975
|
"data-fit": r === "vertical" ? void 0 : h,
|
|
5971
5976
|
children: e.map((d, c) => {
|
|
5972
5977
|
const g = eh(d, c, n), b = m[g];
|
|
5973
|
-
return /* @__PURE__ */
|
|
5978
|
+
return /* @__PURE__ */ w(
|
|
5974
5979
|
"li",
|
|
5975
5980
|
{
|
|
5976
5981
|
className: R(et.step, et[g]),
|
|
@@ -5991,10 +5996,10 @@ const Wf = "_stepper_1w41b_11 _text_ocaqi_23", Gf = "_step_1w41b_11", Uf = "_don
|
|
|
5991
5996
|
}
|
|
5992
5997
|
) })
|
|
5993
5998
|
) : g === "failed" ? /* @__PURE__ */ s(nt, { size: 8 }) : c + 1 }),
|
|
5994
|
-
/* @__PURE__ */
|
|
5995
|
-
/* @__PURE__ */
|
|
5999
|
+
/* @__PURE__ */ w("span", { className: et.text, children: [
|
|
6000
|
+
/* @__PURE__ */ w("span", { className: et.label, children: [
|
|
5996
6001
|
d.label,
|
|
5997
|
-
b && /* @__PURE__ */
|
|
6002
|
+
b && /* @__PURE__ */ w(Pr, { children: [
|
|
5998
6003
|
", ",
|
|
5999
6004
|
b
|
|
6000
6005
|
] })
|
|
@@ -6033,30 +6038,30 @@ const nh = "_zone_1guoh_12 _text_ocaqi_23", rh = "_dragging_1guoh_27", oh = "_in
|
|
|
6033
6038
|
remove: mh,
|
|
6034
6039
|
rejected: ph
|
|
6035
6040
|
}, _h = (t, e) => t < 1e6 ? `${e.number(Math.max(t > 0 ? 1 : 0, Math.round(t / 1e3)), 0)} kB` : `${e.number(t / 1e6, 1)} MB`, Am = V(function({ value: e, onChange: n, invalid: r, accept: o, multiple: a = !1, disabled: i = !1, className: l, id: f, ...h }, _) {
|
|
6036
|
-
const v = fe(), m = Qe(), d = He(), c =
|
|
6041
|
+
const v = fe(), m = Qe(), d = He(), c = q(null), [g, b] = W([]), [N, k] = W([]), [y, $] = W(!1), E = e !== void 0, x = E ? e : g, A = r ?? (d == null ? void 0 : d.invalid) ?? !1;
|
|
6037
6042
|
ae(() => {
|
|
6038
6043
|
const D = c.current;
|
|
6039
6044
|
if (D)
|
|
6040
6045
|
if (typeof DataTransfer == "function") {
|
|
6041
|
-
const
|
|
6042
|
-
for (const Y of x)
|
|
6043
|
-
D.files =
|
|
6046
|
+
const F = new DataTransfer();
|
|
6047
|
+
for (const Y of x) F.items.add(Y);
|
|
6048
|
+
D.files = F.files;
|
|
6044
6049
|
} else x.length === 0 && (D.value = "");
|
|
6045
6050
|
});
|
|
6046
|
-
const
|
|
6047
|
-
|
|
6051
|
+
const P = (D) => {
|
|
6052
|
+
E || b(D), n == null || n(D);
|
|
6048
6053
|
}, p = (D) => {
|
|
6049
|
-
const
|
|
6050
|
-
k(Y), Y.length > 0 && lt(Y.map((M) => v.fileNotAccepted(M)).join(". "), c.current),
|
|
6054
|
+
const F = D.filter((M) => th(M, o)), Y = D.filter((M) => !F.includes(M)).map((M) => M.name);
|
|
6055
|
+
k(Y), Y.length > 0 && lt(Y.map((M) => v.fileNotAccepted(M)).join(". "), c.current), P(a ? F : F.slice(0, 1));
|
|
6051
6056
|
}, H = (D) => {
|
|
6052
|
-
var
|
|
6053
|
-
return Array.from(((
|
|
6057
|
+
var F;
|
|
6058
|
+
return Array.from(((F = D.dataTransfer) == null ? void 0 : F.types) ?? []).includes("Files");
|
|
6054
6059
|
}, C = a ? v.chooseFiles : v.chooseFile;
|
|
6055
|
-
return /* @__PURE__ */
|
|
6060
|
+
return /* @__PURE__ */ w(
|
|
6056
6061
|
"div",
|
|
6057
6062
|
{
|
|
6058
|
-
className: R(Ge.zone,
|
|
6059
|
-
"data-dragging":
|
|
6063
|
+
className: R(Ge.zone, y && Ge.dragging, A && Ge.invalidZone, l),
|
|
6064
|
+
"data-dragging": y ? "" : void 0,
|
|
6060
6065
|
"aria-disabled": i || void 0,
|
|
6061
6066
|
onDragEnter: (D) => {
|
|
6062
6067
|
H(D) && (D.preventDefault(), i || $(!0));
|
|
@@ -6068,11 +6073,11 @@ const nh = "_zone_1guoh_12 _text_ocaqi_23", rh = "_dragging_1guoh_27", oh = "_in
|
|
|
6068
6073
|
D.currentTarget.contains(D.relatedTarget) || $(!1);
|
|
6069
6074
|
},
|
|
6070
6075
|
onDrop: (D) => {
|
|
6071
|
-
var
|
|
6072
|
-
D.preventDefault(), $(!1), i || p(Array.from(((
|
|
6076
|
+
var F;
|
|
6077
|
+
D.preventDefault(), $(!1), i || p(Array.from(((F = D.dataTransfer) == null ? void 0 : F.files) ?? []));
|
|
6073
6078
|
},
|
|
6074
6079
|
children: [
|
|
6075
|
-
/* @__PURE__ */
|
|
6080
|
+
/* @__PURE__ */ w("span", { className: Ge.key, children: [
|
|
6076
6081
|
/* @__PURE__ */ s(
|
|
6077
6082
|
"input",
|
|
6078
6083
|
{
|
|
@@ -6094,7 +6099,7 @@ const nh = "_zone_1guoh_12 _text_ocaqi_23", rh = "_dragging_1guoh_27", oh = "_in
|
|
|
6094
6099
|
/* @__PURE__ */ s("span", { className: Ge.face, "aria-hidden": "true", children: C })
|
|
6095
6100
|
] }),
|
|
6096
6101
|
/* @__PURE__ */ s("span", { className: Ge.hint, children: a ? v.dropFiles : v.dropFile }),
|
|
6097
|
-
x.length > 0 && /* @__PURE__ */ s("ul", { className: Ge.list, children: x.map((D,
|
|
6102
|
+
x.length > 0 && /* @__PURE__ */ s("ul", { className: Ge.list, children: x.map((D, F) => /* @__PURE__ */ w("li", { className: Ge.file, children: [
|
|
6098
6103
|
/* @__PURE__ */ s("span", { className: Ge.name, children: D.name }),
|
|
6099
6104
|
/* @__PURE__ */ s("span", { className: Ge.size, children: _h(D.size, m) }),
|
|
6100
6105
|
/* @__PURE__ */ s(
|
|
@@ -6105,13 +6110,13 @@ const nh = "_zone_1guoh_12 _text_ocaqi_23", rh = "_dragging_1guoh_27", oh = "_in
|
|
|
6105
6110
|
"aria-label": v.removeFile(D.name),
|
|
6106
6111
|
disabled: i,
|
|
6107
6112
|
onClick: () => {
|
|
6108
|
-
k([]),
|
|
6113
|
+
k([]), P(x.filter((Y, M) => M !== F));
|
|
6109
6114
|
},
|
|
6110
6115
|
children: /* @__PURE__ */ s(nt, {})
|
|
6111
6116
|
}
|
|
6112
6117
|
)
|
|
6113
|
-
] }, `${D.name}-${
|
|
6114
|
-
N.map((D,
|
|
6118
|
+
] }, `${D.name}-${F}`)) }),
|
|
6119
|
+
N.map((D, F) => /* @__PURE__ */ s("p", { className: Ge.rejected, children: v.fileNotAccepted(D) }, F))
|
|
6115
6120
|
]
|
|
6116
6121
|
}
|
|
6117
6122
|
);
|
|
@@ -6127,20 +6132,20 @@ export {
|
|
|
6127
6132
|
Xo as ButtonGroup,
|
|
6128
6133
|
sr as CalendarGlyph,
|
|
6129
6134
|
Ch as Card,
|
|
6130
|
-
|
|
6135
|
+
Lh as CardBody,
|
|
6131
6136
|
Rh as CardHeader,
|
|
6132
6137
|
$n as Checkbox,
|
|
6133
6138
|
ir as ClockGlyph,
|
|
6134
|
-
|
|
6135
|
-
|
|
6139
|
+
Fh as Combobox,
|
|
6140
|
+
Ph as CommandPalette,
|
|
6136
6141
|
Xh as ConfirmDialog,
|
|
6137
|
-
|
|
6142
|
+
wm as ContextMenu,
|
|
6138
6143
|
nt as CrossGlyph,
|
|
6139
6144
|
rn as DEFAULT_FORMATS,
|
|
6140
6145
|
tr as DEFAULT_LANGUAGE,
|
|
6141
6146
|
Oh as DEFAULT_PRESETS,
|
|
6142
6147
|
er as DEFAULT_SEPARATORS,
|
|
6143
|
-
|
|
6148
|
+
wt as DEFAULT_WORDING,
|
|
6144
6149
|
Ih as DatePicker,
|
|
6145
6150
|
Hh as DateRangePicker,
|
|
6146
6151
|
Bh as DateTimePicker,
|
|
@@ -6151,20 +6156,20 @@ export {
|
|
|
6151
6156
|
Gh as EmptyState,
|
|
6152
6157
|
Am as FileInput,
|
|
6153
6158
|
Dh as FormField,
|
|
6154
|
-
|
|
6159
|
+
qo as FormFieldBoundary,
|
|
6155
6160
|
jh as Grid,
|
|
6156
|
-
|
|
6161
|
+
yh as GridGlyph,
|
|
6157
6162
|
or as GripGlyph,
|
|
6158
6163
|
pm as Heading,
|
|
6159
6164
|
sn as IconButton,
|
|
6160
|
-
|
|
6165
|
+
yr as Input,
|
|
6161
6166
|
eo as LanguageProvider,
|
|
6162
6167
|
_m as Link,
|
|
6163
6168
|
kh as MeasureGlyph,
|
|
6164
6169
|
hr as Menu,
|
|
6165
6170
|
Uo as MenuItem,
|
|
6166
6171
|
Ah as MenuSeparator,
|
|
6167
|
-
|
|
6172
|
+
qh as Meter,
|
|
6168
6173
|
no as MinusGlyph,
|
|
6169
6174
|
Vc as Modal,
|
|
6170
6175
|
Kh as ModalBody,
|
|
@@ -6186,7 +6191,7 @@ export {
|
|
|
6186
6191
|
Uh as Stack,
|
|
6187
6192
|
vm as Stat,
|
|
6188
6193
|
Dm as Stepper,
|
|
6189
|
-
|
|
6194
|
+
ym as Switch,
|
|
6190
6195
|
sm as Tab,
|
|
6191
6196
|
om as TabList,
|
|
6192
6197
|
im as TabPanel,
|
|
@@ -6200,8 +6205,8 @@ export {
|
|
|
6200
6205
|
um as TreeSearch,
|
|
6201
6206
|
dm as TreeView,
|
|
6202
6207
|
Th as UmrissProvider,
|
|
6203
|
-
|
|
6204
|
-
|
|
6208
|
+
Pr as VisuallyHidden,
|
|
6209
|
+
Er as age,
|
|
6205
6210
|
nu as allBranches,
|
|
6206
6211
|
pu as assess,
|
|
6207
6212
|
bu as cadence,
|
|
@@ -6226,12 +6231,12 @@ export {
|
|
|
6226
6231
|
Vn as toggleCheck,
|
|
6227
6232
|
Xd as treeModel,
|
|
6228
6233
|
Jd as typeaheadTarget,
|
|
6229
|
-
|
|
6234
|
+
Eh as useCommandPaletteShortcut,
|
|
6230
6235
|
Sh as useDensity,
|
|
6231
6236
|
$h as useDensityFor,
|
|
6232
6237
|
He as useFormField,
|
|
6233
6238
|
Qe as useFormats,
|
|
6234
|
-
|
|
6239
|
+
wu as useFreshness,
|
|
6235
6240
|
rr as useLanguage,
|
|
6236
6241
|
bn as usePortalTarget,
|
|
6237
6242
|
cm as useToast,
|