@umriss-ui/core 0.9.0 → 0.9.2
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 +29 -0
- package/dist/core.css +1 -1
- package/dist/core.js +931 -929
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import "./core.css";
|
|
2
|
-
import { useMemo as se, useContext as
|
|
2
|
+
import { useMemo as se, useContext as He, createContext as je, forwardRef as ie, useId as De, useState as B, useLayoutEffect as Oe, useRef as R, useEffect as ne, useCallback as Q, cloneElement as $n, useImperativeHandle as Vt } from "react";
|
|
3
3
|
import { jsx as s, jsxs as k, Fragment as $e } from "react/jsx-runtime";
|
|
4
|
-
import { D as
|
|
5
|
-
import { createPortal as
|
|
4
|
+
import { D as It, a as Dn, s as ar } from "./formats-DrB9TuzO.js";
|
|
5
|
+
import { createPortal as Ut } from "react-dom";
|
|
6
6
|
function P(...e) {
|
|
7
7
|
return e.filter(Boolean).join(" ");
|
|
8
8
|
}
|
|
9
|
-
const
|
|
10
|
-
alert:
|
|
11
|
-
content:
|
|
12
|
-
title:
|
|
13
|
-
text:
|
|
14
|
-
actions:
|
|
15
|
-
neutral:
|
|
16
|
-
accent:
|
|
17
|
-
success:
|
|
18
|
-
warning:
|
|
19
|
-
danger:
|
|
20
|
-
close:
|
|
9
|
+
const cr = "_alert_3un7t_12 _text_1hv7a_23", lr = "_content_3un7t_26", dr = "_title_3un7t_34", ur = "_text_3un7t_42", hr = "_actions_3un7t_52", fr = "_neutral_3un7t_61", pr = "_accent_3un7t_69", mr = "_success_3un7t_77", _r = "_warning_3un7t_85", gr = "_danger_3un7t_93", vr = "_close_3un7t_103", nt = {
|
|
10
|
+
alert: cr,
|
|
11
|
+
content: lr,
|
|
12
|
+
title: dr,
|
|
13
|
+
text: ur,
|
|
14
|
+
actions: hr,
|
|
15
|
+
neutral: fr,
|
|
16
|
+
accent: pr,
|
|
17
|
+
success: mr,
|
|
18
|
+
warning: _r,
|
|
19
|
+
danger: gr,
|
|
20
|
+
close: vr
|
|
21
21
|
}, it = {
|
|
22
22
|
clearInput: "Clear input",
|
|
23
23
|
clearSelection: "Clear selection",
|
|
@@ -265,15 +265,15 @@ const ar = "_alert_3un7t_12 _text_1hv7a_23", cr = "_content_3un7t_26", lr = "_ti
|
|
|
265
265
|
calculationShowDerivation: (e) => `Show how ${e} is derived`,
|
|
266
266
|
calculationHideDerivation: (e) => `Hide how ${e} is derived`,
|
|
267
267
|
calculationOperandCount: (e) => `${e} operands`
|
|
268
|
-
},
|
|
269
|
-
formats:
|
|
268
|
+
}, Tn = {
|
|
269
|
+
formats: It,
|
|
270
270
|
wording: it
|
|
271
|
-
},
|
|
272
|
-
function
|
|
273
|
-
if (!e) return
|
|
271
|
+
}, Sn = je(null);
|
|
272
|
+
function yr(e) {
|
|
273
|
+
if (!e) return Tn;
|
|
274
274
|
const { presets: t, ...n } = e.wording ?? {};
|
|
275
275
|
return {
|
|
276
|
-
formats: e.formats ? { ...
|
|
276
|
+
formats: e.formats ? { ...It, ...e.formats } : It,
|
|
277
277
|
wording: e.wording ? {
|
|
278
278
|
...it,
|
|
279
279
|
...n,
|
|
@@ -281,11 +281,11 @@ function vr(e) {
|
|
|
281
281
|
} : it
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
const r = se(() =>
|
|
286
|
-
return /* @__PURE__ */ s(
|
|
284
|
+
function br({ formats: e, wording: t, children: n }) {
|
|
285
|
+
const r = se(() => yr({ formats: e, wording: t }), [e, t]);
|
|
286
|
+
return /* @__PURE__ */ s(Sn.Provider, { value: r, children: n });
|
|
287
287
|
}
|
|
288
|
-
const
|
|
288
|
+
const Mn = () => He(Sn) ?? Tn, Ve = () => Mn().formats, ce = () => Mn().wording, Ue = ie(function({ size: t = 9, ...n }, r) {
|
|
289
289
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
290
290
|
"path",
|
|
291
291
|
{
|
|
@@ -296,11 +296,11 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
296
296
|
strokeLinecap: "round"
|
|
297
297
|
}
|
|
298
298
|
) });
|
|
299
|
-
}), br = ie(function({ size: t = 10, ...n }, r) {
|
|
300
|
-
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M5 2v6M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
301
299
|
}), wr = ie(function({ size: t = 10, ...n }, r) {
|
|
302
|
-
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "
|
|
300
|
+
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M5 2v6M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
303
301
|
}), kr = ie(function({ size: t = 10, ...n }, r) {
|
|
302
|
+
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
303
|
+
}), St = ie(function({ size: t = 10, ...n }, r) {
|
|
304
304
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
305
305
|
"path",
|
|
306
306
|
{
|
|
@@ -323,7 +323,7 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
323
323
|
strokeLinecap: "round"
|
|
324
324
|
}
|
|
325
325
|
) });
|
|
326
|
-
}),
|
|
326
|
+
}), Jd = ie(function({ size: t = 10, ...n }, r) {
|
|
327
327
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
328
328
|
"path",
|
|
329
329
|
{
|
|
@@ -334,7 +334,7 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
334
334
|
strokeLinecap: "round"
|
|
335
335
|
}
|
|
336
336
|
) });
|
|
337
|
-
}),
|
|
337
|
+
}), eu = ie(function({ size: t = 10, ...n }, r) {
|
|
338
338
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
339
339
|
"path",
|
|
340
340
|
{
|
|
@@ -346,7 +346,7 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
346
346
|
strokeLinejoin: "round"
|
|
347
347
|
}
|
|
348
348
|
) });
|
|
349
|
-
}),
|
|
349
|
+
}), Cn = ie(function({ size: t = 12, range: n = !1, ...r }, o) {
|
|
350
350
|
return /* @__PURE__ */ k("svg", { ref: o, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...r, children: [
|
|
351
351
|
/* @__PURE__ */ s("rect", { x: "1", y: "1.6", width: "8", height: "7.7", rx: "1.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
352
352
|
/* @__PURE__ */ s(
|
|
@@ -360,7 +360,7 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
360
360
|
}
|
|
361
361
|
)
|
|
362
362
|
] });
|
|
363
|
-
}),
|
|
363
|
+
}), An = ie(function({ size: t = 12, ...n }, r) {
|
|
364
364
|
return /* @__PURE__ */ k("svg", { ref: r, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: [
|
|
365
365
|
/* @__PURE__ */ s("circle", { cx: "5", cy: "5", r: "4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
366
366
|
/* @__PURE__ */ s(
|
|
@@ -375,14 +375,14 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
375
375
|
}
|
|
376
376
|
)
|
|
377
377
|
] });
|
|
378
|
-
}),
|
|
378
|
+
}), Bt = {
|
|
379
379
|
neutral: { role: "status", live: "polite" },
|
|
380
380
|
accent: { role: "status", live: "polite" },
|
|
381
381
|
success: { role: "status", live: "polite" },
|
|
382
382
|
warning: { role: "alert" },
|
|
383
383
|
danger: { role: "alert" }
|
|
384
|
-
},
|
|
385
|
-
const u = ce(), { role: p, live: h } =
|
|
384
|
+
}, tu = ie(function({ tone: t = "neutral", title: n, actions: r, onDismiss: o, dismissLabel: i, className: a, children: c, ...l }, d) {
|
|
385
|
+
const u = ce(), { role: p, live: h } = Bt[t];
|
|
386
386
|
return /* @__PURE__ */ k(
|
|
387
387
|
"div",
|
|
388
388
|
{
|
|
@@ -401,7 +401,7 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
401
401
|
]
|
|
402
402
|
}
|
|
403
403
|
);
|
|
404
|
-
}), Nr = "_badge_5ftit_4 _text_1hv7a_23", $r = "_pill_5ftit_19", Dr = "_neutral_5ftit_34", Tr = "_accent_5ftit_39", Sr = "_success_5ftit_44", Mr = "_warning_5ftit_49", Cr = "_danger_5ftit_54",
|
|
404
|
+
}), Nr = "_badge_5ftit_4 _text_1hv7a_23", $r = "_pill_5ftit_19", Dr = "_neutral_5ftit_34", Tr = "_accent_5ftit_39", Sr = "_success_5ftit_44", Mr = "_warning_5ftit_49", Cr = "_danger_5ftit_54", Lt = {
|
|
405
405
|
badge: Nr,
|
|
406
406
|
pill: $r,
|
|
407
407
|
neutral: Dr,
|
|
@@ -410,13 +410,13 @@ const Sn = () => ze(Tn) ?? Dn, Ve = () => Sn().formats, ce = () => Sn().wording,
|
|
|
410
410
|
warning: Mr,
|
|
411
411
|
danger: Cr
|
|
412
412
|
};
|
|
413
|
-
function
|
|
414
|
-
return /* @__PURE__ */ s("span", { className: P(
|
|
413
|
+
function nu({ tone: e = "neutral", pill: t = !1, className: n, children: r, ...o }) {
|
|
414
|
+
return /* @__PURE__ */ s("span", { className: P(Lt.badge, t && Lt.pill, Lt[e], n), ...o, children: r });
|
|
415
415
|
}
|
|
416
416
|
const Ar = "_spinner_1tmf7_4", Lr = {
|
|
417
417
|
spinner: Ar
|
|
418
418
|
};
|
|
419
|
-
function
|
|
419
|
+
function Ln({ size: e = 14, className: t, ...n }) {
|
|
420
420
|
const r = ce();
|
|
421
421
|
return /* @__PURE__ */ k(
|
|
422
422
|
"svg",
|
|
@@ -436,14 +436,14 @@ function An({ size: e = 14, className: t, ...n }) {
|
|
|
436
436
|
}
|
|
437
437
|
);
|
|
438
438
|
}
|
|
439
|
-
const Rr = "_button_18a70_4 _ring_1hv7a_65 _text_1hv7a_23", Pr = "_sm_18a70_46", Er = "_primary_18a70_58", Fr = "_danger_18a70_69", Ir = "_secondary_18a70_84", Br = "_ghost_18a70_100",
|
|
439
|
+
const Rr = "_button_18a70_4 _ring_1hv7a_65 _text_1hv7a_23", Pr = "_sm_18a70_46", Er = "_primary_18a70_58", Fr = "_danger_18a70_69", Ir = "_secondary_18a70_84", Br = "_ghost_18a70_100", zr = "_label_18a70_111", mt = {
|
|
440
440
|
button: Rr,
|
|
441
441
|
sm: Pr,
|
|
442
442
|
primary: Er,
|
|
443
443
|
danger: Fr,
|
|
444
444
|
secondary: Ir,
|
|
445
445
|
ghost: Br,
|
|
446
|
-
label:
|
|
446
|
+
label: zr
|
|
447
447
|
}, ve = ie(function({ variant: t = "secondary", size: n = "md", loading: r = !1, disabled: o, className: i, children: a, type: c, ...l }, d) {
|
|
448
448
|
return /* @__PURE__ */ k(
|
|
449
449
|
"button",
|
|
@@ -455,26 +455,26 @@ const Rr = "_button_18a70_4 _ring_1hv7a_65 _text_1hv7a_23", Pr = "_sm_18a70_46",
|
|
|
455
455
|
"aria-busy": r || void 0,
|
|
456
456
|
...l,
|
|
457
457
|
children: [
|
|
458
|
-
r && /* @__PURE__ */ s(
|
|
458
|
+
r && /* @__PURE__ */ s(Ln, { size: n === "sm" ? 12 : 14, className: mt.spinner }),
|
|
459
459
|
/* @__PURE__ */ s("span", { className: mt.label, children: a })
|
|
460
460
|
]
|
|
461
461
|
}
|
|
462
462
|
);
|
|
463
|
-
}),
|
|
464
|
-
field:
|
|
465
|
-
label:
|
|
463
|
+
}), Or = "_field_1fqw6_4 _text_1hv7a_23", Hr = "_label_1fqw6_12", qr = "_required_1fqw6_19", Wr = "_message_1fqw6_24", Gr = "_hint_1fqw6_30", jr = "_error_1fqw6_34", lt = {
|
|
464
|
+
field: Or,
|
|
465
|
+
label: Hr,
|
|
466
466
|
required: qr,
|
|
467
467
|
message: Wr,
|
|
468
|
-
hint:
|
|
469
|
-
error:
|
|
470
|
-
},
|
|
468
|
+
hint: Gr,
|
|
469
|
+
error: jr
|
|
470
|
+
}, Yt = je(null);
|
|
471
471
|
function Be() {
|
|
472
|
-
return
|
|
472
|
+
return He(Yt);
|
|
473
473
|
}
|
|
474
474
|
function Vr({ children: e }) {
|
|
475
|
-
return /* @__PURE__ */ s(
|
|
475
|
+
return /* @__PURE__ */ s(Yt.Provider, { value: null, children: e });
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function ru({
|
|
478
478
|
label: e,
|
|
479
479
|
hint: t,
|
|
480
480
|
error: n,
|
|
@@ -491,7 +491,7 @@ function tu({
|
|
|
491
491
|
r && /* @__PURE__ */ s("span", { className: lt.required, "aria-hidden": "true", children: "*" })
|
|
492
492
|
] }),
|
|
493
493
|
/* @__PURE__ */ s(
|
|
494
|
-
|
|
494
|
+
Yt.Provider,
|
|
495
495
|
{
|
|
496
496
|
value: { id: d, describedBy: p ? u : void 0, invalid: !!n, required: r },
|
|
497
497
|
children: a
|
|
@@ -501,37 +501,37 @@ function tu({
|
|
|
501
501
|
] });
|
|
502
502
|
}
|
|
503
503
|
const Ur = 6, Yr = 8;
|
|
504
|
-
function
|
|
504
|
+
function Rn(e, t, n, r = {}) {
|
|
505
505
|
const { align: o = "start", side: i = "bottom", offset: a = Ur, margin: c = Yr } = r, { top: l = 0, left: d = 0 } = n, u = l + n.height - e.bottom - a, p = e.top - l - a, h = i === "top" ? p : u, f = i === "top" ? u : p, m = h < t.height && f >= t.height, y = i === "top" !== m, b = y ? e.top - a - t.height : e.bottom + a, g = h >= t.height || f >= t.height ? b : Math.max(l + c, Math.min(b, l + n.height - t.height - c)), N = o === "end" ? e.right - t.width : o === "center" ? e.left + e.width / 2 - t.width / 2 : e.left, L = Math.max(d + c, Math.min(N, d + n.width - t.width - c));
|
|
506
506
|
return { top: g, left: L, flipped: m, side: y ? "top" : "bottom" };
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Kt(e, t) {
|
|
509
509
|
return `${t === "start" ? "left" : t === "end" ? "right" : "center"} ${e === "bottom" ? "top" : "bottom"}`;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Pn() {
|
|
512
512
|
const e = window.visualViewport;
|
|
513
513
|
return e ? { top: e.offsetTop, left: e.offsetLeft, width: e.width, height: e.height } : { width: window.innerWidth, height: window.innerHeight };
|
|
514
514
|
}
|
|
515
515
|
const Kr = "_panel_ireao_8 _text_1hv7a_23", Xr = {
|
|
516
516
|
panel: Kr
|
|
517
|
-
},
|
|
518
|
-
function
|
|
519
|
-
const n =
|
|
517
|
+
}, Xt = je(null);
|
|
518
|
+
function ou(e, t) {
|
|
519
|
+
const n = He(Xt);
|
|
520
520
|
return e !== void 0 ? e : n != null && n.densityGiven ? n.density === "compact" ? "compact" : "regular" : t;
|
|
521
521
|
}
|
|
522
522
|
const Qr = {
|
|
523
523
|
density: "comfortable",
|
|
524
524
|
portalTarget: null,
|
|
525
525
|
toast: {}
|
|
526
|
-
},
|
|
527
|
-
function
|
|
528
|
-
const { portalTarget: e } =
|
|
526
|
+
}, Qt = () => He(Xt) ?? Qr, su = () => Qt().density, Zr = () => Qt().toast;
|
|
527
|
+
function Zt() {
|
|
528
|
+
const { portalTarget: e } = Qt();
|
|
529
529
|
return se(
|
|
530
530
|
() => typeof e == "function" ? e : () => e,
|
|
531
531
|
[e]
|
|
532
532
|
);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function iu({
|
|
535
535
|
density: e,
|
|
536
536
|
portalTarget: t = null,
|
|
537
537
|
toast: n,
|
|
@@ -547,23 +547,23 @@ function ou({
|
|
|
547
547
|
}),
|
|
548
548
|
[e, t, n]
|
|
549
549
|
);
|
|
550
|
-
return /* @__PURE__ */ s(
|
|
550
|
+
return /* @__PURE__ */ s(Xt.Provider, { value: i, children: /* @__PURE__ */ s(br, { formats: r == null ? void 0 : r.formats, wording: r == null ? void 0 : r.wording, children: o }) });
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function En(e, t) {
|
|
553
553
|
return (e == null ? void 0 : e.closest("dialog")) ?? t() ?? document.body;
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function Mt() {
|
|
556
556
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
557
557
|
}
|
|
558
558
|
function yt(e, t) {
|
|
559
559
|
const n = e.getPropertyValue(t).trim(), r = Number.parseFloat(n);
|
|
560
560
|
return Number.isFinite(r) ? n.endsWith("ms") ? r : n.endsWith("s") ? r * 1e3 : r : 0;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Fn(e, t, n) {
|
|
563
563
|
const [r, o] = B(e);
|
|
564
|
-
return e && !r && o(!0),
|
|
564
|
+
return e && !r && o(!0), Oe(() => {
|
|
565
565
|
if (e || !r) return;
|
|
566
|
-
const i = t.current, a = i && !
|
|
566
|
+
const i = t.current, a = i && !Mt() ? yt(getComputedStyle(i), n) : 0;
|
|
567
567
|
if (a <= 0) {
|
|
568
568
|
o(!1);
|
|
569
569
|
return;
|
|
@@ -594,32 +594,32 @@ function Je({
|
|
|
594
594
|
ne(() => {
|
|
595
595
|
v.current = o;
|
|
596
596
|
});
|
|
597
|
-
const [g, N] = B(null), [L, F] = B(null), D =
|
|
597
|
+
const [g, N] = B(null), [L, F] = B(null), D = Zt(), _ = Fn(e, b, "--u-duration-exit-fast"), E = _ && !e, w = Q(
|
|
598
598
|
(V) => {
|
|
599
599
|
var U;
|
|
600
600
|
t(!1), V && d && ((U = (r ?? n).current) == null || U.focus());
|
|
601
601
|
},
|
|
602
602
|
[t, d, n, r]
|
|
603
|
-
),
|
|
604
|
-
var
|
|
605
|
-
const V = (
|
|
603
|
+
), O = Q(() => {
|
|
604
|
+
var G;
|
|
605
|
+
const V = (G = n.current) == null ? void 0 : G.getBoundingClientRect(), U = b.current;
|
|
606
606
|
if (!V || !U) return;
|
|
607
607
|
c === "anchor" ? U.style.width = `${l ? Math.max(V.width, l) : V.width}px` : typeof c == "number" && (U.style.width = `${c}px`);
|
|
608
608
|
const C = U.getBoundingClientRect();
|
|
609
609
|
N(
|
|
610
|
-
|
|
610
|
+
Rn(
|
|
611
611
|
V,
|
|
612
612
|
{ width: C.width, height: C.height },
|
|
613
|
-
|
|
613
|
+
Pn(),
|
|
614
614
|
{ align: i, offset: a }
|
|
615
615
|
)
|
|
616
616
|
);
|
|
617
617
|
}, [n, i, a, c, l]);
|
|
618
|
-
return
|
|
619
|
-
e && F(
|
|
620
|
-
}, [e, n, D]),
|
|
621
|
-
!e || !L ||
|
|
622
|
-
}, [e, L,
|
|
618
|
+
return Oe(() => {
|
|
619
|
+
e && F(En(n.current, D));
|
|
620
|
+
}, [e, n, D]), Oe(() => {
|
|
621
|
+
!e || !L || O();
|
|
622
|
+
}, [e, L, O]), ne(() => {
|
|
623
623
|
if (!e) return;
|
|
624
624
|
const V = (Y) => {
|
|
625
625
|
var pe, A;
|
|
@@ -632,18 +632,18 @@ function Je({
|
|
|
632
632
|
}, C = (Y) => {
|
|
633
633
|
Y.key === "Escape" && (Y.preventDefault(), w(!0));
|
|
634
634
|
};
|
|
635
|
-
let
|
|
635
|
+
let G = 0;
|
|
636
636
|
const S = () => {
|
|
637
|
-
|
|
638
|
-
|
|
637
|
+
G || (G = requestAnimationFrame(() => {
|
|
638
|
+
G = 0, O();
|
|
639
639
|
}));
|
|
640
640
|
}, X = () => {
|
|
641
641
|
u ? w(!1) : S();
|
|
642
|
-
},
|
|
643
|
-
return document.addEventListener("mousedown", U), document.addEventListener("keydown", C), window.addEventListener("scroll", X, !0), window.addEventListener("resize", X),
|
|
644
|
-
|
|
642
|
+
}, H = window.visualViewport;
|
|
643
|
+
return document.addEventListener("mousedown", U), document.addEventListener("keydown", C), window.addEventListener("scroll", X, !0), window.addEventListener("resize", X), H == null || H.addEventListener("resize", S), H == null || H.addEventListener("scroll", S), () => {
|
|
644
|
+
H == null || H.removeEventListener("resize", S), H == null || H.removeEventListener("scroll", S), document.removeEventListener("mousedown", U), document.removeEventListener("keydown", C), window.removeEventListener("scroll", X, !0), window.removeEventListener("resize", X), G && cancelAnimationFrame(G);
|
|
645
645
|
};
|
|
646
|
-
}, [e, n, w,
|
|
646
|
+
}, [e, n, w, O, u]), !_ || !L ? null : Ut(
|
|
647
647
|
/* @__PURE__ */ s(
|
|
648
648
|
"div",
|
|
649
649
|
{
|
|
@@ -659,7 +659,7 @@ function Je({
|
|
|
659
659
|
top: (g == null ? void 0 : g.top) ?? 0,
|
|
660
660
|
left: (g == null ? void 0 : g.left) ?? 0,
|
|
661
661
|
/* The motion origin, computed here and drawn by the stylesheet. */
|
|
662
|
-
"--_origin": g ?
|
|
662
|
+
"--_origin": g ? Kt(g.side, i) : void 0,
|
|
663
663
|
/* Not shown before the first measurement, or it flashes in the top
|
|
664
664
|
left. Transparent and not `visibility: hidden`: a hidden panel takes
|
|
665
665
|
no focus, and the first opening of a menu lost its move to the first
|
|
@@ -679,8 +679,8 @@ const Jr = "_panel_1527b_4", eo = "_item_1527b_15", to = "_danger_1527b_57", no
|
|
|
679
679
|
danger: to,
|
|
680
680
|
separator: no,
|
|
681
681
|
content: ro
|
|
682
|
-
},
|
|
683
|
-
function
|
|
682
|
+
}, Jt = je(null);
|
|
683
|
+
function In(e, t, n) {
|
|
684
684
|
var i, a, c, l;
|
|
685
685
|
const r = Array.from((t == null ? void 0 : t.querySelectorAll('[role="menuitem"]:not([disabled])')) ?? []);
|
|
686
686
|
if (r.length === 0) return;
|
|
@@ -710,9 +710,9 @@ function oo({ trigger: e, children: t, align: n = "start" }) {
|
|
|
710
710
|
}, d = Q((h) => {
|
|
711
711
|
var f;
|
|
712
712
|
a.current = h, (f = h == null ? void 0 : h.querySelector('[role="menuitem"]:not([disabled])')) == null || f.focus();
|
|
713
|
-
}, []), u = (h) =>
|
|
713
|
+
}, []), u = (h) => In(h, a.current, l), p = e.props;
|
|
714
714
|
return /* @__PURE__ */ k($e, { children: [
|
|
715
|
-
|
|
715
|
+
$n(e, {
|
|
716
716
|
ref: i,
|
|
717
717
|
"aria-haspopup": "menu",
|
|
718
718
|
"aria-expanded": r,
|
|
@@ -732,13 +732,13 @@ function oo({ trigger: e, children: t, align: n = "start" }) {
|
|
|
732
732
|
role: "menu",
|
|
733
733
|
id: c,
|
|
734
734
|
className: ct.panel,
|
|
735
|
-
children: /* @__PURE__ */ s("div", { ref: d, className: ct.content, onKeyDown: u, children: /* @__PURE__ */ s(
|
|
735
|
+
children: /* @__PURE__ */ s("div", { ref: d, className: ct.content, onKeyDown: u, children: /* @__PURE__ */ s(Jt.Provider, { value: { close: l }, children: t }) })
|
|
736
736
|
}
|
|
737
737
|
)
|
|
738
738
|
] });
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
const a =
|
|
740
|
+
function au({ onSelect: e, tone: t = "default", className: n, children: r, onClick: o, ...i }) {
|
|
741
|
+
const a = He(Jt);
|
|
742
742
|
return /* @__PURE__ */ s(
|
|
743
743
|
"button",
|
|
744
744
|
{
|
|
@@ -754,7 +754,7 @@ function su({ onSelect: e, tone: t = "default", className: n, children: r, onCli
|
|
|
754
754
|
}
|
|
755
755
|
);
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function cu() {
|
|
758
758
|
return /* @__PURE__ */ s("div", { role: "separator", className: ct.separator });
|
|
759
759
|
}
|
|
760
760
|
const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", co = "_arrow_elxi9_102", wt = {
|
|
@@ -764,7 +764,7 @@ const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", c
|
|
|
764
764
|
arrow: co
|
|
765
765
|
}, lo = ie(function({ className: t, children: n, ...r }, o) {
|
|
766
766
|
return /* @__PURE__ */ s("div", { ref: o, role: "group", className: P(wt.group, t), ...r, children: n });
|
|
767
|
-
}),
|
|
767
|
+
}), lu = ie(function({
|
|
768
768
|
children: t,
|
|
769
769
|
menu: n,
|
|
770
770
|
variant: r = "secondary",
|
|
@@ -821,8 +821,8 @@ const so = "_group_elxi9_9", io = "_split_elxi9_97", ao = "_trigger_elxi9_97", c
|
|
|
821
821
|
headerRight: wo,
|
|
822
822
|
collapseButton: ko,
|
|
823
823
|
flush: xo
|
|
824
|
-
},
|
|
825
|
-
function
|
|
824
|
+
}, en = je(null);
|
|
825
|
+
function du({
|
|
826
826
|
collapsible: e = !1,
|
|
827
827
|
defaultCollapsed: t = !1,
|
|
828
828
|
className: n,
|
|
@@ -831,15 +831,15 @@ function cu({
|
|
|
831
831
|
}) {
|
|
832
832
|
const [i, a] = B(t), c = De();
|
|
833
833
|
return /* @__PURE__ */ s("section", { className: P(Pe.card, n), ...o, children: /* @__PURE__ */ s(
|
|
834
|
-
|
|
834
|
+
en.Provider,
|
|
835
835
|
{
|
|
836
836
|
value: { collapsible: e, collapsed: i, toggle: () => a((l) => !l), bodyId: c },
|
|
837
837
|
children: r
|
|
838
838
|
}
|
|
839
839
|
) });
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
const a =
|
|
841
|
+
function uu({ title: e, eyebrow: t, actions: n, divider: r = !1, className: o, ...i }) {
|
|
842
|
+
const a = He(en), c = ce();
|
|
843
843
|
return /* @__PURE__ */ k("div", { className: P(Pe.header, r && Pe.divider, o), ...i, children: [
|
|
844
844
|
/* @__PURE__ */ k("div", { className: Pe.headerText, children: [
|
|
845
845
|
t && /* @__PURE__ */ s("span", { className: Pe.eyebrow, children: t }),
|
|
@@ -861,8 +861,8 @@ function lu({ title: e, eyebrow: t, actions: n, divider: r = !1, className: o, .
|
|
|
861
861
|
] })
|
|
862
862
|
] });
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
const o =
|
|
864
|
+
function hu({ flush: e = !1, className: t, children: n, ...r }) {
|
|
865
|
+
const o = He(en), i = /* @__PURE__ */ s(
|
|
866
866
|
"div",
|
|
867
867
|
{
|
|
868
868
|
id: o == null ? void 0 : o.bodyId,
|
|
@@ -880,9 +880,9 @@ const No = "_wrapper_1pp8c_4 _text_1hv7a_23", $o = "_input_1pp8c_13", Do = "_box
|
|
|
880
880
|
check: To,
|
|
881
881
|
dash: So,
|
|
882
882
|
label: Mo
|
|
883
|
-
},
|
|
883
|
+
}, tn = ie(function({ label: t, indeterminate: n = !1, className: r, id: o, ...i }, a) {
|
|
884
884
|
const c = R(null);
|
|
885
|
-
|
|
885
|
+
Vt(a, () => c.current), ne(() => {
|
|
886
886
|
c.current && (c.current.indeterminate = n);
|
|
887
887
|
}, [n]);
|
|
888
888
|
const l = Be(), d = o ?? (l == null ? void 0 : l.id);
|
|
@@ -906,7 +906,7 @@ const No = "_wrapper_1pp8c_4 _text_1hv7a_23", $o = "_input_1pp8c_13", Do = "_box
|
|
|
906
906
|
t && /* @__PURE__ */ s("span", { className: dt.label, children: t })
|
|
907
907
|
] });
|
|
908
908
|
});
|
|
909
|
-
function
|
|
909
|
+
function Bn(e, t, n) {
|
|
910
910
|
const r = R(null), [o, i] = B(!1), a = R(!1), c = () => {
|
|
911
911
|
if (a.current) {
|
|
912
912
|
a.current = !1;
|
|
@@ -925,7 +925,7 @@ function In(e, t, n) {
|
|
|
925
925
|
}
|
|
926
926
|
if (!d.open) return;
|
|
927
927
|
const u = typeof t == "number" ? t : yt(getComputedStyle(d), t);
|
|
928
|
-
if (u <= 0 ||
|
|
928
|
+
if (u <= 0 || Mt()) {
|
|
929
929
|
a.current = !0, d.close();
|
|
930
930
|
return;
|
|
931
931
|
}
|
|
@@ -942,7 +942,7 @@ function Ze(e) {
|
|
|
942
942
|
(t) => `_${t.codePointAt(0).toString(16)}_`
|
|
943
943
|
);
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function zn(e, t) {
|
|
946
946
|
const n = t.trim().toLowerCase();
|
|
947
947
|
return n ? e.filter((r) => r.label.toLowerCase().includes(n)) : e;
|
|
948
948
|
}
|
|
@@ -963,7 +963,7 @@ function Ro(e, t) {
|
|
|
963
963
|
n.has(r) ? n.delete(r) : n.add(r);
|
|
964
964
|
}), [...n];
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function nn(e, t, n) {
|
|
967
967
|
return t <= 0 ? 0 : (e + n + t) % t;
|
|
968
968
|
}
|
|
969
969
|
function Po(e, t) {
|
|
@@ -971,13 +971,13 @@ function Po(e, t) {
|
|
|
971
971
|
const n = e.findIndex((r) => r.value === t);
|
|
972
972
|
return n === -1 ? 0 : n;
|
|
973
973
|
}
|
|
974
|
-
const Eo = 10, Fo = 8, Io = 0.5, Bo = /[\p{L}\p{N}]/u,
|
|
975
|
-
function
|
|
974
|
+
const Eo = 10, Fo = 8, Io = 0.5, Bo = /[\p{L}\p{N}]/u, zo = (e) => e !== e.toLowerCase() && e === e.toUpperCase(), Oo = (e) => e !== e.toUpperCase() && e === e.toLowerCase();
|
|
975
|
+
function Ho(e, t) {
|
|
976
976
|
if (t === 0) return !0;
|
|
977
977
|
const n = e[t - 1], r = e[t];
|
|
978
|
-
return Bo.test(n) ?
|
|
978
|
+
return Bo.test(n) ? Oo(n) && zo(r) : !0;
|
|
979
979
|
}
|
|
980
|
-
function
|
|
980
|
+
function dn(e, t) {
|
|
981
981
|
const n = e.trim().toLowerCase();
|
|
982
982
|
if (n === "" || n.length > t.length) return null;
|
|
983
983
|
const r = t.toLowerCase();
|
|
@@ -987,7 +987,7 @@ function ln(e, t) {
|
|
|
987
987
|
const p = new Array(t.length).fill(null), h = new Array(t.length).fill(null);
|
|
988
988
|
for (let f = 0; f < t.length; f++) {
|
|
989
989
|
if (r[f] !== n[u]) continue;
|
|
990
|
-
const m =
|
|
990
|
+
const m = Ho(t, f) ? Eo : 0;
|
|
991
991
|
if (u === 0) {
|
|
992
992
|
p[f] = m;
|
|
993
993
|
continue;
|
|
@@ -1026,7 +1026,7 @@ function Wo(e, t) {
|
|
|
1026
1026
|
if (n === "") return [];
|
|
1027
1027
|
const r = [];
|
|
1028
1028
|
for (const o of e) {
|
|
1029
|
-
const i =
|
|
1029
|
+
const i = dn(n, o.name);
|
|
1030
1030
|
if (i !== null) {
|
|
1031
1031
|
r.push({
|
|
1032
1032
|
kandidat: o,
|
|
@@ -1035,7 +1035,7 @@ function Wo(e, t) {
|
|
|
1035
1035
|
});
|
|
1036
1036
|
continue;
|
|
1037
1037
|
}
|
|
1038
|
-
const a = o.gruppe === void 0 ? null :
|
|
1038
|
+
const a = o.gruppe === void 0 ? null : dn(n, o.gruppe);
|
|
1039
1039
|
a !== null && r.push({
|
|
1040
1040
|
kandidat: o,
|
|
1041
1041
|
rank: a.rank + (o.gewicht ?? 0),
|
|
@@ -1047,15 +1047,15 @@ function Wo(e, t) {
|
|
|
1047
1047
|
return a !== c ? a ? -1 : 1 : i.rank - o.rank;
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1051
|
-
hidden:
|
|
1052
|
-
focusable:
|
|
1050
|
+
const Go = "_hidden_69gri_7", jo = "_focusable_69gri_20 _text_1hv7a_23", un = {
|
|
1051
|
+
hidden: Go,
|
|
1052
|
+
focusable: jo
|
|
1053
1053
|
}, On = ie(function({ as: t, focusable: n = !1, className: r, children: o, ...i }, a) {
|
|
1054
1054
|
return /* @__PURE__ */ s(
|
|
1055
1055
|
t ?? "span",
|
|
1056
1056
|
{
|
|
1057
1057
|
ref: a,
|
|
1058
|
-
className: P(
|
|
1058
|
+
className: P(un.hidden, n && un.focusable, r),
|
|
1059
1059
|
...i,
|
|
1060
1060
|
children: o
|
|
1061
1061
|
}
|
|
@@ -1078,7 +1078,7 @@ const jo = "_hidden_69gri_7", Go = "_focusable_69gri_20 _text_1hv7a_23", dn = {
|
|
|
1078
1078
|
footer: is,
|
|
1079
1079
|
key: as
|
|
1080
1080
|
};
|
|
1081
|
-
function
|
|
1081
|
+
function hn(e) {
|
|
1082
1082
|
return {
|
|
1083
1083
|
name: e.label,
|
|
1084
1084
|
gruppe: e.group,
|
|
@@ -1087,7 +1087,7 @@ function un(e) {
|
|
|
1087
1087
|
icon: e.icon
|
|
1088
1088
|
};
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function fu({
|
|
1091
1091
|
open: e,
|
|
1092
1092
|
onClose: t,
|
|
1093
1093
|
items: n,
|
|
@@ -1095,9 +1095,9 @@ function uu({
|
|
|
1095
1095
|
restingItems: o
|
|
1096
1096
|
}) {
|
|
1097
1097
|
var pe;
|
|
1098
|
-
const i = ce(), a = De(), c = `${a}-list`, { dialogRef: l, beimSchliessen: d, beimAbbrechen: u } =
|
|
1098
|
+
const i = ce(), a = De(), c = `${a}-list`, { dialogRef: l, beimSchliessen: d, beimAbbrechen: u } = Bn(e, 0, t), p = R(null), h = R(null), [f, m] = B(""), [y, b] = B(null), v = f.trim() !== "", g = se(() => n.map(hn), [n]), N = se(() => Wo(g, f), [g, f]), L = se(
|
|
1099
1099
|
() => (o ?? []).map((A) => ({
|
|
1100
|
-
kandidat:
|
|
1100
|
+
kandidat: hn(A),
|
|
1101
1101
|
rank: 0,
|
|
1102
1102
|
finds: []
|
|
1103
1103
|
})),
|
|
@@ -1110,7 +1110,7 @@ function uu({
|
|
|
1110
1110
|
te === void 0 && (te = { name: q, finds: [] }, A.push(te)), te.finds.push(I);
|
|
1111
1111
|
}
|
|
1112
1112
|
return A;
|
|
1113
|
-
}, [F]), _ = se(() => D.flatMap((A) => A.finds), [D]), E = y !== null && _.some((A) => A.kandidat.id === y) ? y : ((pe = _[0]) == null ? void 0 : pe.kandidat.id) ?? null, w = R(!1),
|
|
1113
|
+
}, [F]), _ = se(() => D.flatMap((A) => A.finds), [D]), E = y !== null && _.some((A) => A.kandidat.id === y) ? y : ((pe = _[0]) == null ? void 0 : pe.kandidat.id) ?? null, w = R(!1), O = Q(() => {
|
|
1114
1114
|
w.current = !1;
|
|
1115
1115
|
}, []), V = Q((A) => {
|
|
1116
1116
|
w.current = !0, b(A);
|
|
@@ -1122,9 +1122,9 @@ function uu({
|
|
|
1122
1122
|
e && (h.current = document.activeElement, m(""), b(null), w.current = !1, (A = p.current) == null || A.focus());
|
|
1123
1123
|
}, [e]), ne(() => {
|
|
1124
1124
|
var A;
|
|
1125
|
-
E !== null && ((A = document.getElementById(
|
|
1125
|
+
E !== null && ((A = document.getElementById(zt(a, E))) == null || A.scrollIntoView({ block: "nearest" }));
|
|
1126
1126
|
}, [E, a]);
|
|
1127
|
-
const C = R(null), [
|
|
1127
|
+
const C = R(null), [G, S] = B(0);
|
|
1128
1128
|
ne(() => {
|
|
1129
1129
|
const A = C.current;
|
|
1130
1130
|
if (!e || A === null) return;
|
|
@@ -1133,10 +1133,10 @@ function uu({
|
|
|
1133
1133
|
return I.observe(A), () => I.disconnect();
|
|
1134
1134
|
}, [e]);
|
|
1135
1135
|
const X = (A) => {
|
|
1136
|
-
if (
|
|
1137
|
-
const I = _.findIndex((te) => te.kandidat.id === E), q =
|
|
1136
|
+
if (O(), _.length === 0) return;
|
|
1137
|
+
const I = _.findIndex((te) => te.kandidat.id === E), q = nn(I === -1 ? 0 : I, _.length, A);
|
|
1138
1138
|
b(_[q].kandidat.id);
|
|
1139
|
-
},
|
|
1139
|
+
}, H = (A) => {
|
|
1140
1140
|
if (!A.nativeEvent.isComposing) {
|
|
1141
1141
|
if (A.key === "ArrowDown") {
|
|
1142
1142
|
A.preventDefault(), X(1);
|
|
@@ -1180,16 +1180,16 @@ function uu({
|
|
|
1180
1180
|
role: "combobox",
|
|
1181
1181
|
"aria-expanded": _.length > 0,
|
|
1182
1182
|
"aria-controls": _.length > 0 ? c : void 0,
|
|
1183
|
-
"aria-activedescendant": E === null ? void 0 :
|
|
1183
|
+
"aria-activedescendant": E === null ? void 0 : zt(a, E),
|
|
1184
1184
|
autoComplete: "off",
|
|
1185
1185
|
spellCheck: !1,
|
|
1186
1186
|
onChange: (A) => {
|
|
1187
|
-
|
|
1187
|
+
O(), m(A.target.value);
|
|
1188
1188
|
},
|
|
1189
|
-
onKeyDown:
|
|
1189
|
+
onKeyDown: H
|
|
1190
1190
|
}
|
|
1191
1191
|
),
|
|
1192
|
-
/* @__PURE__ */ s("div", { className: ge.bodyWrap, style: { height: `${
|
|
1192
|
+
/* @__PURE__ */ s("div", { className: ge.bodyWrap, style: { height: `${G}px` }, children: /* @__PURE__ */ k("div", { ref: C, className: ge.body, children: [
|
|
1193
1193
|
_.length > 0 && /* @__PURE__ */ s(
|
|
1194
1194
|
"div",
|
|
1195
1195
|
{
|
|
@@ -1243,7 +1243,7 @@ function uu({
|
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
1245
1245
|
}
|
|
1246
|
-
const
|
|
1246
|
+
const zt = (e, t) => `${e}-${Ze(t)}`;
|
|
1247
1247
|
function cs({
|
|
1248
1248
|
find: e,
|
|
1249
1249
|
baseId: t,
|
|
@@ -1257,7 +1257,7 @@ function cs({
|
|
|
1257
1257
|
return /* @__PURE__ */ k(
|
|
1258
1258
|
"div",
|
|
1259
1259
|
{
|
|
1260
|
-
id:
|
|
1260
|
+
id: zt(t, c.id),
|
|
1261
1261
|
role: "option",
|
|
1262
1262
|
"aria-selected": n,
|
|
1263
1263
|
className: P(ge.row, n && ge.rowActive),
|
|
@@ -1287,7 +1287,7 @@ function ls(e, t) {
|
|
|
1287
1287
|
function ds(e) {
|
|
1288
1288
|
return e instanceof HTMLElement ? e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable : !1;
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function pu(e) {
|
|
1291
1291
|
const t = R(e);
|
|
1292
1292
|
ne(() => {
|
|
1293
1293
|
t.current = e;
|
|
@@ -1302,7 +1302,7 @@ function hu(e) {
|
|
|
1302
1302
|
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
1303
1303
|
}, []);
|
|
1304
1304
|
}
|
|
1305
|
-
const us = "
|
|
1305
|
+
const us = "_wrapper_16ore_4 _text_1hv7a_23", hs = "_input_16ore_11 _field_1hv7a_34", fs = "_invalid_16ore_44", ps = "_chevron_16ore_53", ms = "_panel_16ore_64", _s = "_list_16ore_71 _scroll_1hv7a_40", gs = "_option_16ore_79", vs = "_active_16ore_94", ys = "_selected_16ore_98", bs = "_optionDisabled_16ore_103", ws = "_optionLabel_16ore_112", ks = "_empty_16ore_118", xs = "_inputClearable_16ore_126", Ns = "_clear_16ore_130", Ce = {
|
|
1306
1306
|
wrapper: us,
|
|
1307
1307
|
input: hs,
|
|
1308
1308
|
invalid: fs,
|
|
@@ -1318,7 +1318,7 @@ const us = "_wrapper_l6itp_4 _text_1hv7a_23", hs = "_input_l6itp_11 _field_1hv7a
|
|
|
1318
1318
|
inputClearable: xs,
|
|
1319
1319
|
clear: Ns
|
|
1320
1320
|
};
|
|
1321
|
-
function
|
|
1321
|
+
function mu({
|
|
1322
1322
|
options: e,
|
|
1323
1323
|
value: t,
|
|
1324
1324
|
onChange: n,
|
|
@@ -1328,17 +1328,17 @@ function fu({
|
|
|
1328
1328
|
emptyText: a,
|
|
1329
1329
|
clearable: c = !1
|
|
1330
1330
|
}) {
|
|
1331
|
-
const l = Be(), d = ce(), u = r ?? d.comboboxPlaceholder, p = a ?? d.noMatches, h = i ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = B(!1), [y, b] = B(null), [v, g] = B(0), N = R(null), L = R(null), F = De(), D = se(() => e.find((C) => C.value === t) ?? null, [e, t]), _ = se(() =>
|
|
1331
|
+
const l = Be(), d = ce(), u = r ?? d.comboboxPlaceholder, p = a ?? d.noMatches, h = i ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = B(!1), [y, b] = B(null), [v, g] = B(0), N = R(null), L = R(null), F = De(), D = se(() => e.find((C) => C.value === t) ?? null, [e, t]), _ = se(() => zn(e, y ?? ""), [e, y]), E = () => {
|
|
1332
1332
|
g(Po(_, t)), m(!0);
|
|
1333
1333
|
}, w = () => {
|
|
1334
1334
|
m(!1), b(null);
|
|
1335
|
-
},
|
|
1336
|
-
var
|
|
1337
|
-
C.disabled || (n(C.value), w(), (
|
|
1335
|
+
}, O = (C) => {
|
|
1336
|
+
var G;
|
|
1337
|
+
C.disabled || (n(C.value), w(), (G = N.current) == null || G.focus());
|
|
1338
1338
|
};
|
|
1339
1339
|
ne(() => {
|
|
1340
|
-
var C,
|
|
1341
|
-
f && ((
|
|
1340
|
+
var C, G;
|
|
1341
|
+
f && ((G = (C = L.current) == null ? void 0 : C.querySelector(`[data-index="${v}"]`)) == null || G.scrollIntoView({ block: "nearest" }));
|
|
1342
1342
|
}, [f, v]);
|
|
1343
1343
|
const V = (C) => {
|
|
1344
1344
|
if (!C.nativeEvent.isComposing) {
|
|
@@ -1348,11 +1348,11 @@ function fu({
|
|
|
1348
1348
|
return;
|
|
1349
1349
|
}
|
|
1350
1350
|
if (_.length === 0) return;
|
|
1351
|
-
g((
|
|
1351
|
+
g((G) => nn(G, _.length, C.key === "ArrowDown" ? 1 : -1));
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
1354
|
if (C.key === "Enter") {
|
|
1355
|
-
f && _[v] && (C.preventDefault(),
|
|
1355
|
+
f && _[v] && (C.preventDefault(), O(_[v]));
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
1358
|
C.key === "Escape" && f && (C.preventDefault(), w());
|
|
@@ -1386,8 +1386,8 @@ function fu({
|
|
|
1386
1386
|
},
|
|
1387
1387
|
onKeyDown: V,
|
|
1388
1388
|
onBlur: (C) => {
|
|
1389
|
-
var
|
|
1390
|
-
(
|
|
1389
|
+
var G;
|
|
1390
|
+
(G = L.current) != null && G.contains(C.relatedTarget) || w();
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
),
|
|
@@ -1406,7 +1406,7 @@ function fu({
|
|
|
1406
1406
|
children: /* @__PURE__ */ s(Ue, {})
|
|
1407
1407
|
}
|
|
1408
1408
|
),
|
|
1409
|
-
/* @__PURE__ */ s(
|
|
1409
|
+
/* @__PURE__ */ s(St, { className: Ce.chevron })
|
|
1410
1410
|
] }),
|
|
1411
1411
|
/* @__PURE__ */ s(
|
|
1412
1412
|
Je,
|
|
@@ -1418,23 +1418,23 @@ function fu({
|
|
|
1418
1418
|
anchorRef: N,
|
|
1419
1419
|
width: "anchor",
|
|
1420
1420
|
className: Ce.panel,
|
|
1421
|
-
children: /* @__PURE__ */ s("div", { ref: L, role: "listbox", id: F, className: Ce.list, "aria-label": u, children: _.length === 0 ? /* @__PURE__ */ s("div", { className: Ce.empty, children: p }) : _.map((C,
|
|
1421
|
+
children: /* @__PURE__ */ s("div", { ref: L, role: "listbox", id: F, className: Ce.list, "aria-label": u, children: _.length === 0 ? /* @__PURE__ */ s("div", { className: Ce.empty, children: p }) : _.map((C, G) => /* @__PURE__ */ k(
|
|
1422
1422
|
"div",
|
|
1423
1423
|
{
|
|
1424
|
-
id: `${F}-${
|
|
1425
|
-
"data-index":
|
|
1424
|
+
id: `${F}-${G}`,
|
|
1425
|
+
"data-index": G,
|
|
1426
1426
|
role: "option",
|
|
1427
1427
|
"aria-selected": C.value === t,
|
|
1428
1428
|
"aria-disabled": C.disabled || void 0,
|
|
1429
1429
|
className: P(
|
|
1430
1430
|
Ce.option,
|
|
1431
|
-
|
|
1431
|
+
G === v && Ce.active,
|
|
1432
1432
|
C.value === t && Ce.selected,
|
|
1433
1433
|
C.disabled && Ce.optionDisabled
|
|
1434
1434
|
),
|
|
1435
|
-
onMouseEnter: () => !C.disabled && g(
|
|
1435
|
+
onMouseEnter: () => !C.disabled && g(G),
|
|
1436
1436
|
onMouseDown: (S) => S.preventDefault(),
|
|
1437
|
-
onClick: () =>
|
|
1437
|
+
onClick: () => O(C),
|
|
1438
1438
|
children: [
|
|
1439
1439
|
/* @__PURE__ */ s("span", { className: Ce.optionLabel, children: C.label }),
|
|
1440
1440
|
C.value === t && /* @__PURE__ */ s("svg", { viewBox: "0 0 10 8", width: "10", height: "8", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M1 4l2.5 2.5L9 1", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
@@ -1467,7 +1467,7 @@ const Hn = (e) => Math.max(0, Math.min(1, e)), Ds = (e) => Math.round(Hn(e) * 10
|
|
|
1467
1467
|
sparklineAccent: Is,
|
|
1468
1468
|
sparklineDot: Bs
|
|
1469
1469
|
};
|
|
1470
|
-
function
|
|
1470
|
+
function _u({
|
|
1471
1471
|
value: e,
|
|
1472
1472
|
tone: t = "accent",
|
|
1473
1473
|
showLabel: n = !0,
|
|
@@ -1493,7 +1493,7 @@ function pu({
|
|
|
1493
1493
|
}
|
|
1494
1494
|
);
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function zs({ data: e, width: t = 96, height: n = 28, tone: r = "ink", className: o, ...i }) {
|
|
1497
1497
|
const a = De();
|
|
1498
1498
|
if (e.length < 2) return null;
|
|
1499
1499
|
const c = 3, l = $s(e, t, n, c), d = l.map(([f, m]) => `${f},${m}`).join(" "), u = `M${c},${n - c} L${d.replace(/ /g, " L")} L${t - c},${n - c} Z`, [p, h] = l[l.length - 1] ?? [0, 0];
|
|
@@ -1517,24 +1517,24 @@ function Os({ data: e, width: t = 96, height: n = 28, tone: r = "ink", className
|
|
|
1517
1517
|
/* @__PURE__ */ s("circle", { cx: p, cy: h, r: "2.2", className: Xe.sparklineDot })
|
|
1518
1518
|
] }) });
|
|
1519
1519
|
}
|
|
1520
|
-
const Me = (e) => new Date(e.getFullYear(), e.getMonth(), 1), at = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Nt = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1),
|
|
1520
|
+
const Me = (e) => new Date(e.getFullYear(), e.getMonth(), 1), at = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Nt = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Os = (e, t) => {
|
|
1521
1521
|
const n = new Date(e.getFullYear(), e.getMonth() + t + 1, 0).getDate();
|
|
1522
1522
|
return new Date(e.getFullYear(), e.getMonth() + t, Math.min(e.getDate(), n));
|
|
1523
|
-
}, Re = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ne = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ot = (e, t) => Ne(e).getTime() < Ne(t).getTime(),
|
|
1523
|
+
}, Re = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ne = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ot = (e, t) => Ne(e).getTime() < Ne(t).getTime(), Hs = 42;
|
|
1524
1524
|
function qs(e) {
|
|
1525
1525
|
const t = Me(e), n = (t.getDay() + 6) % 7, r = at(t, -n);
|
|
1526
|
-
return Array.from({ length:
|
|
1526
|
+
return Array.from({ length: Hs }, (o, i) => at(r, i));
|
|
1527
1527
|
}
|
|
1528
1528
|
function Ws(e, t, n) {
|
|
1529
1529
|
const r = t ?? n ?? null, o = !t && !!n;
|
|
1530
1530
|
return !e || !r ? { from: null, to: null, isPreview: o } : Ot(r, e) ? { from: r, to: e, isPreview: o } : { from: e, to: r, isPreview: o };
|
|
1531
1531
|
}
|
|
1532
|
-
const
|
|
1532
|
+
const Gs = {
|
|
1533
1533
|
ArrowLeft: -1,
|
|
1534
1534
|
ArrowRight: 1,
|
|
1535
1535
|
ArrowUp: -7,
|
|
1536
1536
|
ArrowDown: 7
|
|
1537
|
-
},
|
|
1537
|
+
}, js = (e) => Gs[e], Vs = (e, t) => e.getMonth() !== t.getMonth() || e.getFullYear() !== t.getFullYear(), Us = "_trigger_1cs0e_4", Ys = "_sm_1cs0e_37", Ks = "_invalid_1cs0e_43", Xs = "_value_1cs0e_52", Qs = "_placeholder_1cs0e_63", Zs = "_icon_1cs0e_75", Js = "_panel_1cs0e_84 _text_1hv7a_23", ei = "_head_1cs0e_94", ti = "_month_1cs0e_102", ni = "_page_1cs0e_107 _ring_1hv7a_65", ri = "_weekdays_1cs0e_131", oi = "_grid_1cs0e_132", si = "_day_1cs0e_151 _ring_1hv7a_65", ii = "_otherMonth_1cs0e_179", ai = "_today_1cs0e_187", ci = "_selected_1cs0e_205", li = "_foot_1cs0e_212", di = "_hangStart_1cs0e_226", ui = "_hangEnd_1cs0e_231", hi = "_timeRow_1cs0e_240", fi = "_timeLabel_1cs0e_250", pi = "_timeGroup_1cs0e_258", mi = "_timeFieldWrap_1cs0e_268", _i = "_timeField_1cs0e_268 _field_1hv7a_34", gi = "_timeStepper_1cs0e_307", vi = "_timeSeparator_1cs0e_364", yi = "_dstHint_1cs0e_370", bi = "_dstChoice_1cs0e_377", wi = "_dstButtons_1cs0e_383", ki = "_footLeft_1cs0e_388", xi = "_triggerWrap_1cs0e_397 _text_1hv7a_23", Ni = "_triggerClear_1cs0e_406", $i = "_rangeDash_1cs0e_458", Di = "_rangePanel_1cs0e_463 _text_1hv7a_23", Ti = "_rangeRight_1cs0e_471", Si = "_rangeBody_1cs0e_475", Mi = "_presetColumn_1cs0e_481", Ci = "_preset_1cs0e_481 _ring_1hv7a_65", Ai = "_presetActive_1cs0e_514", Li = "_monthPair_1cs0e_521", Ri = "_monthColumn_1cs0e_526", Pi = "_pageSpacer_1cs0e_561", Ei = "_dayEmpty_1cs0e_567", Fi = "_inRange_1cs0e_574", Ii = "_rangeFrom_1cs0e_584", Bi = "_rangeTo_1cs0e_586", zi = "_rangeSingle_1cs0e_588", Oi = "_inPreview_1cs0e_611", Hi = "_previewEnd_1cs0e_616", qi = "_footNote_1cs0e_627", Wi = "_timeRangeRow_1cs0e_647", Gi = "_timeHalf_1cs0e_656", ji = "_timeHalfHead_1cs0e_664", Vi = "_timeDate_1cs0e_671", Ui = "_footNoteRight_1cs0e_678", Yi = "_timeFieldDisabled_1cs0e_686", T = {
|
|
1538
1538
|
trigger: Us,
|
|
1539
1539
|
sm: Ys,
|
|
1540
1540
|
invalid: Ks,
|
|
@@ -1552,43 +1552,45 @@ const js = {
|
|
|
1552
1552
|
today: ai,
|
|
1553
1553
|
selected: ci,
|
|
1554
1554
|
foot: li,
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1555
|
+
hangStart: di,
|
|
1556
|
+
hangEnd: ui,
|
|
1557
|
+
timeRow: hi,
|
|
1558
|
+
timeLabel: fi,
|
|
1559
|
+
timeGroup: pi,
|
|
1560
|
+
timeFieldWrap: mi,
|
|
1561
|
+
timeField: _i,
|
|
1562
|
+
timeStepper: gi,
|
|
1563
|
+
timeSeparator: vi,
|
|
1564
|
+
dstHint: yi,
|
|
1565
|
+
dstChoice: bi,
|
|
1566
|
+
dstButtons: wi,
|
|
1567
|
+
footLeft: ki,
|
|
1568
|
+
triggerWrap: xi,
|
|
1569
|
+
triggerClear: Ni,
|
|
1570
|
+
rangeDash: $i,
|
|
1571
|
+
rangePanel: Di,
|
|
1572
|
+
rangeRight: Ti,
|
|
1573
|
+
rangeBody: Si,
|
|
1574
|
+
presetColumn: Mi,
|
|
1575
|
+
preset: Ci,
|
|
1576
|
+
presetActive: Ai,
|
|
1577
|
+
monthPair: Li,
|
|
1578
|
+
monthColumn: Ri,
|
|
1579
|
+
pageSpacer: Pi,
|
|
1580
|
+
dayEmpty: Ei,
|
|
1581
|
+
inRange: Fi,
|
|
1582
|
+
rangeFrom: Ii,
|
|
1583
|
+
rangeTo: Bi,
|
|
1584
|
+
rangeSingle: zi,
|
|
1585
|
+
inPreview: Oi,
|
|
1586
|
+
previewEnd: Hi,
|
|
1587
|
+
footNote: qi,
|
|
1588
|
+
timeRangeRow: Wi,
|
|
1589
|
+
timeHalf: Gi,
|
|
1590
|
+
timeHalfHead: ji,
|
|
1591
|
+
timeDate: Vi,
|
|
1592
|
+
footNoteRight: Ui,
|
|
1593
|
+
timeFieldDisabled: Yi
|
|
1592
1594
|
};
|
|
1593
1595
|
it.weekdays;
|
|
1594
1596
|
function $t({
|
|
@@ -1610,24 +1612,24 @@ function $t({
|
|
|
1610
1612
|
}) {
|
|
1611
1613
|
const y = ce(), b = Ve(), v = R(null);
|
|
1612
1614
|
ne(() => {
|
|
1613
|
-
var w,
|
|
1614
|
-
e && ((
|
|
1615
|
+
var w, O;
|
|
1616
|
+
e && ((O = (w = v.current) == null ? void 0 : w.querySelector('[data-active="true"]')) == null || O.focus());
|
|
1615
1617
|
}, []), ne(() => {
|
|
1616
|
-
var
|
|
1618
|
+
var O;
|
|
1617
1619
|
const w = v.current;
|
|
1618
|
-
w && w.contains(document.activeElement) && ((
|
|
1620
|
+
w && w.contains(document.activeElement) && ((O = w.querySelector('[data-active="true"]')) == null || O.focus());
|
|
1619
1621
|
}, [r]);
|
|
1620
1622
|
const g = (w) => {
|
|
1621
|
-
const
|
|
1622
|
-
if (
|
|
1623
|
+
const O = js(w.key);
|
|
1624
|
+
if (O !== void 0) {
|
|
1623
1625
|
w.preventDefault();
|
|
1624
|
-
const V = at(r,
|
|
1626
|
+
const V = at(r, O);
|
|
1625
1627
|
o(V), Vs(V, t) && n(Me(V));
|
|
1626
1628
|
return;
|
|
1627
1629
|
}
|
|
1628
1630
|
(w.key === "Enter" || w.key === " ") && (w.preventDefault(), a(r));
|
|
1629
1631
|
}, N = (w) => {
|
|
1630
|
-
n(Nt(t, w)), o(
|
|
1632
|
+
n(Nt(t, w)), o(Os(r, w));
|
|
1631
1633
|
}, L = qs(t), F = m ?? /* @__PURE__ */ new Date(), { from: D, to: _, isPreview: E } = Ws(c, l, d);
|
|
1632
1634
|
return /* @__PURE__ */ k($e, { children: [
|
|
1633
1635
|
/* @__PURE__ */ k("div", { className: T.head, children: [
|
|
@@ -1644,10 +1646,10 @@ function $t({
|
|
|
1644
1646
|
onKeyDown: g,
|
|
1645
1647
|
onMouseLeave: u ? () => u(null) : void 0,
|
|
1646
1648
|
children: L.map((w) => {
|
|
1647
|
-
const
|
|
1648
|
-
if (!
|
|
1649
|
+
const O = w.getMonth() === t.getMonth();
|
|
1650
|
+
if (!O && f)
|
|
1649
1651
|
return /* @__PURE__ */ s("span", { className: T.dayEmpty, "aria-hidden": "true" }, w.toISOString());
|
|
1650
|
-
const V = Re(w, r) && (
|
|
1652
|
+
const V = Re(w, r) && (O || !f), U = Re(w, D), C = Re(w, _), G = U && C, S = !!D && !!_ && !U && !C && Ot(D, w) && Ot(w, _), X = !_ && Re(w, c);
|
|
1651
1653
|
return /* @__PURE__ */ s(
|
|
1652
1654
|
"button",
|
|
1653
1655
|
{
|
|
@@ -1659,14 +1661,14 @@ function $t({
|
|
|
1659
1661
|
"aria-current": Re(w, F) ? "date" : void 0,
|
|
1660
1662
|
className: P(
|
|
1661
1663
|
T.day,
|
|
1662
|
-
!
|
|
1664
|
+
!O && T.otherMonth,
|
|
1663
1665
|
Re(w, i) && T.selected,
|
|
1664
1666
|
Re(w, F) && T.today,
|
|
1665
1667
|
S && T.inRange,
|
|
1666
1668
|
S && E && T.inPreview,
|
|
1667
|
-
(U || X) && !
|
|
1668
|
-
C && !
|
|
1669
|
-
|
|
1669
|
+
(U || X) && !G && T.rangeFrom,
|
|
1670
|
+
C && !G && T.rangeTo,
|
|
1671
|
+
G && T.rangeSingle,
|
|
1670
1672
|
C && E && T.previewEnd
|
|
1671
1673
|
),
|
|
1672
1674
|
onClick: () => a(w),
|
|
@@ -1680,15 +1682,15 @@ function $t({
|
|
|
1680
1682
|
)
|
|
1681
1683
|
] });
|
|
1682
1684
|
}
|
|
1683
|
-
const Ht = (e) => Ne(e),
|
|
1684
|
-
function
|
|
1685
|
-
const [o, i] =
|
|
1685
|
+
const Ht = (e) => Ne(e), Ki = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate(), 23, 59, t ? 59 : 0), Xi = (e, t) => e.getTime() <= t.getTime() ? [e, t] : [t, e], qn = (e, t) => Ne(e).getTime() <= Ne(t).getTime() ? [e, t] : [t, e];
|
|
1686
|
+
function Wn(e, t, n, r) {
|
|
1687
|
+
const [o, i] = qn(e, t);
|
|
1686
1688
|
return {
|
|
1687
1689
|
from: Ht(o),
|
|
1688
|
-
to: n === "day" ? Ht(i) :
|
|
1690
|
+
to: n === "day" ? Ht(i) : Ki(i, r)
|
|
1689
1691
|
};
|
|
1690
1692
|
}
|
|
1691
|
-
function
|
|
1693
|
+
function Ct({
|
|
1692
1694
|
wrapRef: e,
|
|
1693
1695
|
triggerRef: t,
|
|
1694
1696
|
panel: n,
|
|
@@ -1737,7 +1739,7 @@ function Mt({
|
|
|
1737
1739
|
)
|
|
1738
1740
|
] });
|
|
1739
1741
|
}
|
|
1740
|
-
function
|
|
1742
|
+
function gu({
|
|
1741
1743
|
value: e,
|
|
1742
1744
|
onChange: t,
|
|
1743
1745
|
placeholder: n,
|
|
@@ -1750,14 +1752,14 @@ function mu({
|
|
|
1750
1752
|
const w = e ?? /* @__PURE__ */ new Date();
|
|
1751
1753
|
y(Me(w)), v(w), f(!0);
|
|
1752
1754
|
}, _ = (w = !0) => {
|
|
1753
|
-
var
|
|
1754
|
-
f(!1), w && ((
|
|
1755
|
+
var O;
|
|
1756
|
+
f(!1), w && ((O = g.current) == null || O.focus());
|
|
1755
1757
|
}, E = (w) => {
|
|
1756
1758
|
t(Ht(w)), _();
|
|
1757
1759
|
};
|
|
1758
1760
|
return /* @__PURE__ */ k($e, { children: [
|
|
1759
1761
|
/* @__PURE__ */ s(
|
|
1760
|
-
|
|
1762
|
+
Ct,
|
|
1761
1763
|
{
|
|
1762
1764
|
wrapRef: N,
|
|
1763
1765
|
triggerRef: g,
|
|
@@ -1766,7 +1768,7 @@ function mu({
|
|
|
1766
1768
|
state: { disabled: r, invalid: p, clearable: a, size: i },
|
|
1767
1769
|
hasValue: !!e,
|
|
1768
1770
|
display: e && d.date(e),
|
|
1769
|
-
icon: /* @__PURE__ */ s(
|
|
1771
|
+
icon: /* @__PURE__ */ s(Cn, { className: T.icon }),
|
|
1770
1772
|
placeholder: u,
|
|
1771
1773
|
onClear: () => {
|
|
1772
1774
|
t(null), h && _(!1);
|
|
@@ -1801,8 +1803,8 @@ function mu({
|
|
|
1801
1803
|
}
|
|
1802
1804
|
),
|
|
1803
1805
|
/* @__PURE__ */ k("div", { className: T.foot, children: [
|
|
1804
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => E(/* @__PURE__ */ new Date()), children: l.today }),
|
|
1805
|
-
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
1806
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangStart, onClick: () => E(/* @__PURE__ */ new Date()), children: l.today }),
|
|
1807
|
+
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangEnd, onClick: () => {
|
|
1806
1808
|
t(null), _();
|
|
1807
1809
|
}, children: l.clear })
|
|
1808
1810
|
] })
|
|
@@ -1811,19 +1813,19 @@ function mu({
|
|
|
1811
1813
|
)
|
|
1812
1814
|
] });
|
|
1813
1815
|
}
|
|
1814
|
-
const
|
|
1815
|
-
function
|
|
1816
|
+
const Rt = (e, t, n, r) => e.getHours() === t && e.getMinutes() === n && e.getSeconds() === r;
|
|
1817
|
+
function rn(e, t, n, r, o, i) {
|
|
1816
1818
|
const a = new Date(e, t, n, r, o, i);
|
|
1817
|
-
if (!
|
|
1819
|
+
if (!Rt(a, r, o, i))
|
|
1818
1820
|
return { kind: "missing", date: a };
|
|
1819
1821
|
const c = 36e5, l = new Date(a.getTime() - c);
|
|
1820
|
-
if (
|
|
1822
|
+
if (Rt(l, r, o, i))
|
|
1821
1823
|
return { kind: "ambiguous", earlier: l, later: a };
|
|
1822
1824
|
const d = new Date(a.getTime() + c);
|
|
1823
|
-
return
|
|
1825
|
+
return Rt(d, r, o, i) ? { kind: "ambiguous", earlier: a, later: d } : { kind: "ok", date: a };
|
|
1824
1826
|
}
|
|
1825
|
-
function
|
|
1826
|
-
const t =
|
|
1827
|
+
function qt(e) {
|
|
1828
|
+
const t = rn(
|
|
1827
1829
|
e.getFullYear(),
|
|
1828
1830
|
e.getMonth(),
|
|
1829
1831
|
e.getDate(),
|
|
@@ -1833,7 +1835,7 @@ function zt(e) {
|
|
|
1833
1835
|
);
|
|
1834
1836
|
return t.kind === "ambiguous" && e.getTime() >= t.later.getTime() ? "later" : "earlier";
|
|
1835
1837
|
}
|
|
1836
|
-
function
|
|
1838
|
+
function Qi(e, t) {
|
|
1837
1839
|
const n = t ? 1e3 : 6e4;
|
|
1838
1840
|
return new Date(Math.floor(e.getTime() / n) * n);
|
|
1839
1841
|
}
|
|
@@ -1925,7 +1927,7 @@ function ft({ value: e, onValue: t, max: n, label: r, next: o, own: i, disabled:
|
|
|
1925
1927
|
] })
|
|
1926
1928
|
] });
|
|
1927
1929
|
}
|
|
1928
|
-
function
|
|
1930
|
+
function vu({
|
|
1929
1931
|
value: e,
|
|
1930
1932
|
onChange: t,
|
|
1931
1933
|
withSeconds: n = !1,
|
|
@@ -1935,13 +1937,13 @@ function _u({
|
|
|
1935
1937
|
invalid: a,
|
|
1936
1938
|
clearable: c = !1
|
|
1937
1939
|
}) {
|
|
1938
|
-
const l = Be(), d = ce(), u = Ve(), p = r ?? d.dateTimePlaceholder, h = a ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = B(!1), [y, b] = B(() => Me(e ?? /* @__PURE__ */ new Date())), [v, g] = B(() => e ?? /* @__PURE__ */ new Date()), [N, L] = B(e), [F, D] = B("00"), [_, E] = B("00"), [w,
|
|
1940
|
+
const l = Be(), d = ce(), u = Ve(), p = r ?? d.dateTimePlaceholder, h = a ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = B(!1), [y, b] = B(() => Me(e ?? /* @__PURE__ */ new Date())), [v, g] = B(() => e ?? /* @__PURE__ */ new Date()), [N, L] = B(e), [F, D] = B("00"), [_, E] = B("00"), [w, O] = B("00"), [V, U] = B("earlier"), C = R(null), G = R(null), S = R(null), X = R(null), H = R(null), Y = R(null), pe = De(), A = () => {
|
|
1939
1941
|
const oe = e ?? /* @__PURE__ */ new Date();
|
|
1940
|
-
b(Me(oe)), g(oe), L(e ? oe : null), D(Qe(e ? oe.getHours() : 0)), E(Qe(e ? oe.getMinutes() : 0)),
|
|
1942
|
+
b(Me(oe)), g(oe), L(e ? oe : null), D(Qe(e ? oe.getHours() : 0)), E(Qe(e ? oe.getMinutes() : 0)), O(Qe(e && n ? oe.getSeconds() : 0)), U(e ? qt(e) : "earlier"), m(!0);
|
|
1941
1943
|
}, I = (oe = !0) => {
|
|
1942
1944
|
var K;
|
|
1943
1945
|
m(!1), oe && ((K = C.current) == null || K.focus());
|
|
1944
|
-
}, q = se(() => N ?
|
|
1946
|
+
}, q = se(() => N ? rn(
|
|
1945
1947
|
N.getFullYear(),
|
|
1946
1948
|
N.getMonth(),
|
|
1947
1949
|
N.getDate(),
|
|
@@ -1951,20 +1953,20 @@ function _u({
|
|
|
1951
1953
|
) : null, [N, F, _, w, n]), te = se(() => q ? q.kind === "ambiguous" ? V === "earlier" ? q.earlier : q.later : q.date : null, [q, V]), ke = () => {
|
|
1952
1954
|
te && (t(te), I());
|
|
1953
1955
|
}, Ee = () => {
|
|
1954
|
-
t(
|
|
1956
|
+
t(Qi(/* @__PURE__ */ new Date(), n)), I();
|
|
1955
1957
|
};
|
|
1956
1958
|
return /* @__PURE__ */ k($e, { children: [
|
|
1957
1959
|
/* @__PURE__ */ s(
|
|
1958
|
-
|
|
1960
|
+
Ct,
|
|
1959
1961
|
{
|
|
1960
|
-
wrapRef:
|
|
1962
|
+
wrapRef: G,
|
|
1961
1963
|
triggerRef: C,
|
|
1962
1964
|
panel: { id: pe, open: f, onToggle: () => f ? m(!1) : A() },
|
|
1963
1965
|
field: l,
|
|
1964
1966
|
state: { disabled: o, invalid: h, clearable: c, size: i },
|
|
1965
1967
|
hasValue: !!e,
|
|
1966
1968
|
display: e && u.dateTime(e, n),
|
|
1967
|
-
icon: /* @__PURE__ */ s(
|
|
1969
|
+
icon: /* @__PURE__ */ s(An, { className: T.icon }),
|
|
1968
1970
|
placeholder: p,
|
|
1969
1971
|
onClear: () => {
|
|
1970
1972
|
t(null), f && I(!1);
|
|
@@ -1980,7 +1982,7 @@ function _u({
|
|
|
1980
1982
|
oe || m(!1);
|
|
1981
1983
|
},
|
|
1982
1984
|
anchorRef: C,
|
|
1983
|
-
insideRefs: [
|
|
1985
|
+
insideRefs: [G],
|
|
1984
1986
|
role: "dialog",
|
|
1985
1987
|
ariaLabel: d.dateTimePanel,
|
|
1986
1988
|
id: pe,
|
|
@@ -2013,12 +2015,12 @@ function _u({
|
|
|
2013
2015
|
children: [
|
|
2014
2016
|
/* @__PURE__ */ s("span", { className: T.timeLabel, children: d.timeOfDay }),
|
|
2015
2017
|
/* @__PURE__ */ k("div", { className: T.timeGroup, children: [
|
|
2016
|
-
/* @__PURE__ */ s(ft, { own: X, value: F, onValue: D, max: 23, label: d.hour, next:
|
|
2018
|
+
/* @__PURE__ */ s(ft, { own: X, value: F, onValue: D, max: 23, label: d.hour, next: H }),
|
|
2017
2019
|
/* @__PURE__ */ s("span", { className: T.timeSeparator, children: ":" }),
|
|
2018
|
-
/* @__PURE__ */ s(ft, { own:
|
|
2020
|
+
/* @__PURE__ */ s(ft, { own: H, value: _, onValue: E, max: 59, label: d.minute, next: n ? Y : void 0 }),
|
|
2019
2021
|
n && /* @__PURE__ */ k($e, { children: [
|
|
2020
2022
|
/* @__PURE__ */ s("span", { className: T.timeSeparator, children: ":" }),
|
|
2021
|
-
/* @__PURE__ */ s(ft, { own: Y, value: w, onValue:
|
|
2023
|
+
/* @__PURE__ */ s(ft, { own: Y, value: w, onValue: O, max: 59, label: d.second })
|
|
2022
2024
|
] })
|
|
2023
2025
|
] })
|
|
2024
2026
|
]
|
|
@@ -2050,7 +2052,7 @@ function _u({
|
|
|
2050
2052
|
] }),
|
|
2051
2053
|
/* @__PURE__ */ k("div", { className: T.foot, children: [
|
|
2052
2054
|
/* @__PURE__ */ k("div", { className: T.footLeft, children: [
|
|
2053
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: Ee, children: d.now }),
|
|
2055
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangStart, onClick: Ee, children: d.now }),
|
|
2054
2056
|
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
2055
2057
|
t(null), I();
|
|
2056
2058
|
}, children: d.clear })
|
|
@@ -2062,7 +2064,7 @@ function _u({
|
|
|
2062
2064
|
)
|
|
2063
2065
|
] });
|
|
2064
2066
|
}
|
|
2065
|
-
const
|
|
2067
|
+
const Zi = 1440 * 60 * 1e3, Dt = (e, t) => Math.round((Ne(t).getTime() - Ne(e).getTime()) / Zi) + 1, Ji = [
|
|
2066
2068
|
"today",
|
|
2067
2069
|
"yesterday",
|
|
2068
2070
|
"last7Days",
|
|
@@ -2072,7 +2074,7 @@ const Xi = 1440 * 60 * 1e3, Dt = (e, t) => Math.round((Ne(t).getTime() - Ne(e).g
|
|
|
2072
2074
|
"thisQuarter",
|
|
2073
2075
|
"thisYear"
|
|
2074
2076
|
];
|
|
2075
|
-
function
|
|
2077
|
+
function ea(e, t) {
|
|
2076
2078
|
const n = Ne(t);
|
|
2077
2079
|
switch (e) {
|
|
2078
2080
|
case "today":
|
|
@@ -2095,15 +2097,15 @@ function Zi(e, t) {
|
|
|
2095
2097
|
return { from: new Date(n.getFullYear(), 0, 1), to: new Date(n.getFullYear(), 11, 31) };
|
|
2096
2098
|
}
|
|
2097
2099
|
}
|
|
2098
|
-
const
|
|
2100
|
+
const on = (e) => Ji.map((t) => ({
|
|
2099
2101
|
label: e.presets[t],
|
|
2100
|
-
range: () =>
|
|
2101
|
-
})),
|
|
2102
|
-
function
|
|
2102
|
+
range: () => ea(t, /* @__PURE__ */ new Date())
|
|
2103
|
+
})), yu = on(it);
|
|
2104
|
+
function ta(e, t) {
|
|
2103
2105
|
const n = Me(e).getTime(), r = Me(Nt(e, 1)).getTime(), o = Me(t).getTime();
|
|
2104
2106
|
return o === n || o === r ? null : o < n ? Me(t) : Nt(Me(t), -1);
|
|
2105
2107
|
}
|
|
2106
|
-
function
|
|
2108
|
+
function na(e) {
|
|
2107
2109
|
const { active: t, onActive: n, onPick: r, bandFrom: o, bandTo: i, previewTo: a, onHoverDay: c } = e;
|
|
2108
2110
|
return {
|
|
2109
2111
|
active: t,
|
|
@@ -2117,7 +2119,7 @@ function ea(e) {
|
|
|
2117
2119
|
withoutOtherMonth: !0
|
|
2118
2120
|
};
|
|
2119
2121
|
}
|
|
2120
|
-
function
|
|
2122
|
+
function Gn({ presets: e, isActive: t, onChoose: n }) {
|
|
2121
2123
|
const r = ce();
|
|
2122
2124
|
return e.length === 0 ? null : /* @__PURE__ */ s("div", { className: T.presetColumn, role: "group", "aria-label": r.quickSelect, children: e.map((o) => /* @__PURE__ */ s(
|
|
2123
2125
|
"button",
|
|
@@ -2131,8 +2133,8 @@ function Wn({ presets: e, isActive: t, onChoose: n }) {
|
|
|
2131
2133
|
)) });
|
|
2132
2134
|
}
|
|
2133
2135
|
function jn({ view: e, onView: t, ...n }) {
|
|
2134
|
-
const r =
|
|
2135
|
-
const c =
|
|
2136
|
+
const r = na(n), o = Nt(e, 1), i = (a) => {
|
|
2137
|
+
const c = ta(e, a);
|
|
2136
2138
|
c && t(c);
|
|
2137
2139
|
};
|
|
2138
2140
|
return /* @__PURE__ */ k("div", { className: T.monthPair, children: [
|
|
@@ -2140,7 +2142,7 @@ function jn({ view: e, onView: t, ...n }) {
|
|
|
2140
2142
|
/* @__PURE__ */ s("div", { className: T.monthColumn, children: /* @__PURE__ */ s($t, { view: o, onView: i, withoutPrevious: !0, ...r }) })
|
|
2141
2143
|
] });
|
|
2142
2144
|
}
|
|
2143
|
-
function
|
|
2145
|
+
function bu({
|
|
2144
2146
|
value: e,
|
|
2145
2147
|
onChange: t,
|
|
2146
2148
|
placeholder: n,
|
|
@@ -2150,28 +2152,28 @@ function vu({
|
|
|
2150
2152
|
clearable: a = !1,
|
|
2151
2153
|
presets: c
|
|
2152
2154
|
}) {
|
|
2153
|
-
const l = Be(), d = ce(), u = Ve(), p = n ?? d.dateRangePlaceholder, h = o ?? (l == null ? void 0 : l.invalid) ?? !1, f = se(() => c ??
|
|
2155
|
+
const l = Be(), d = ce(), u = Ve(), p = n ?? d.dateRangePlaceholder, h = o ?? (l == null ? void 0 : l.invalid) ?? !1, f = se(() => c ?? on(d), [c, d]), [m, y] = B(!1), [b, v] = B(() => Me((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [g, N] = B(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [L, F] = B(null), [D, _] = B(null), E = R(null), w = R(null), O = R(null), V = De(), U = () => {
|
|
2154
2156
|
const I = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2155
2157
|
v(Me(I)), N(I), F(null), _(null), y(!0);
|
|
2156
2158
|
}, C = (I = !0) => {
|
|
2157
2159
|
var q;
|
|
2158
2160
|
y(!1), F(null), _(null), I && ((q = E.current) == null || q.focus());
|
|
2159
|
-
},
|
|
2160
|
-
t(
|
|
2161
|
+
}, G = (I, q) => {
|
|
2162
|
+
t(Wn(I, q, "day", !1)), C();
|
|
2161
2163
|
}, S = (I) => {
|
|
2162
2164
|
if (!L) {
|
|
2163
2165
|
F(I), N(I);
|
|
2164
2166
|
return;
|
|
2165
2167
|
}
|
|
2166
|
-
|
|
2168
|
+
G(L, I);
|
|
2167
2169
|
};
|
|
2168
2170
|
ne(() => {
|
|
2169
2171
|
var q, te;
|
|
2170
2172
|
if (!m) return;
|
|
2171
|
-
const I =
|
|
2173
|
+
const I = O.current;
|
|
2172
2174
|
I && (q = document.activeElement) != null && q.closest(`.${T.grid}`) && ((te = I.querySelector('[data-active="true"]')) == null || te.focus());
|
|
2173
2175
|
}, [g, m]);
|
|
2174
|
-
const X = L ?? (e == null ? void 0 : e.from) ?? null,
|
|
2176
|
+
const X = L ?? (e == null ? void 0 : e.from) ?? null, H = L ? null : (e == null ? void 0 : e.to) ?? null, Y = L ? D : null, pe = (() => {
|
|
2175
2177
|
if (L && D) {
|
|
2176
2178
|
const [I, q] = Ne(D).getTime() < Ne(L).getTime() ? [D, L] : [L, D], te = Dt(I, q);
|
|
2177
2179
|
return d.rangePreview(u.dateShort(I), u.dateShort(q), te);
|
|
@@ -2189,7 +2191,7 @@ function vu({
|
|
|
2189
2191
|
};
|
|
2190
2192
|
return /* @__PURE__ */ k($e, { children: [
|
|
2191
2193
|
/* @__PURE__ */ s(
|
|
2192
|
-
|
|
2194
|
+
Ct,
|
|
2193
2195
|
{
|
|
2194
2196
|
wrapRef: w,
|
|
2195
2197
|
triggerRef: E,
|
|
@@ -2202,7 +2204,7 @@ function vu({
|
|
|
2202
2204
|
/* @__PURE__ */ s("span", { className: T.rangeDash, children: "–" }),
|
|
2203
2205
|
u.date(e.to)
|
|
2204
2206
|
] }),
|
|
2205
|
-
icon: /* @__PURE__ */ s(
|
|
2207
|
+
icon: /* @__PURE__ */ s(Cn, { range: !0, className: T.icon }),
|
|
2206
2208
|
placeholder: p,
|
|
2207
2209
|
onClear: () => {
|
|
2208
2210
|
t(null), m && C(!1);
|
|
@@ -2223,16 +2225,16 @@ function vu({
|
|
|
2223
2225
|
ariaLabel: d.dateRangePanel,
|
|
2224
2226
|
id: V,
|
|
2225
2227
|
className: P(T.panel, T.rangePanel),
|
|
2226
|
-
children: /* @__PURE__ */ k("div", { ref:
|
|
2228
|
+
children: /* @__PURE__ */ k("div", { ref: O, children: [
|
|
2227
2229
|
/* @__PURE__ */ k("div", { className: T.rangeBody, children: [
|
|
2228
2230
|
/* @__PURE__ */ s(
|
|
2229
|
-
|
|
2231
|
+
Gn,
|
|
2230
2232
|
{
|
|
2231
2233
|
presets: f,
|
|
2232
2234
|
isActive: A,
|
|
2233
2235
|
onChoose: (I) => {
|
|
2234
2236
|
const q = I.range();
|
|
2235
|
-
|
|
2237
|
+
G(q.from, q.to);
|
|
2236
2238
|
}
|
|
2237
2239
|
}
|
|
2238
2240
|
),
|
|
@@ -2245,7 +2247,7 @@ function vu({
|
|
|
2245
2247
|
onActive: N,
|
|
2246
2248
|
onPick: S,
|
|
2247
2249
|
bandFrom: X,
|
|
2248
|
-
bandTo:
|
|
2250
|
+
bandTo: H,
|
|
2249
2251
|
previewTo: Y,
|
|
2250
2252
|
onHoverDay: _
|
|
2251
2253
|
}
|
|
@@ -2253,7 +2255,7 @@ function vu({
|
|
|
2253
2255
|
] }),
|
|
2254
2256
|
/* @__PURE__ */ k("div", { className: T.foot, children: [
|
|
2255
2257
|
/* @__PURE__ */ s("span", { className: T.footNote, "aria-live": "polite", children: pe }),
|
|
2256
|
-
e && !L && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
2258
|
+
e && !L && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", className: T.hangEnd, onClick: () => {
|
|
2257
2259
|
t(null), C();
|
|
2258
2260
|
}, children: d.clear })
|
|
2259
2261
|
] })
|
|
@@ -2262,23 +2264,23 @@ function vu({
|
|
|
2262
2264
|
)
|
|
2263
2265
|
] });
|
|
2264
2266
|
}
|
|
2265
|
-
const
|
|
2267
|
+
const Pt = { hour: "00", minute: "00", second: "00" }, Et = (e) => ({
|
|
2266
2268
|
hour: "23",
|
|
2267
2269
|
minute: "59",
|
|
2268
2270
|
second: e ? "59" : "00"
|
|
2269
|
-
}),
|
|
2271
|
+
}), ra = (e, t, n) => e.getHours() === 0 && e.getMinutes() === 0 && e.getSeconds() === 0 && t.getHours() === 23 && t.getMinutes() === 59 && (n ? t.getSeconds() === 59 : t.getSeconds() === 0), fn = (e, t) => ({
|
|
2270
2272
|
hour: Qe(e.getHours()),
|
|
2271
2273
|
minute: Qe(e.getMinutes()),
|
|
2272
2274
|
second: Qe(t ? e.getSeconds() : 0)
|
|
2273
|
-
}),
|
|
2275
|
+
}), pn = (e, t, n) => e ? rn(
|
|
2274
2276
|
e.getFullYear(),
|
|
2275
2277
|
e.getMonth(),
|
|
2276
2278
|
e.getDate(),
|
|
2277
2279
|
Math.min(23, Number.parseInt(t.hour, 10) || 0),
|
|
2278
2280
|
Math.min(59, Number.parseInt(t.minute, 10) || 0),
|
|
2279
2281
|
n ? Math.min(59, Number.parseInt(t.second, 10) || 0) : 0
|
|
2280
|
-
) : null,
|
|
2281
|
-
function
|
|
2282
|
+
) : null, mn = (e, t) => e ? e.kind === "ambiguous" ? t === "earlier" ? e.earlier : e.later : e.date : null;
|
|
2283
|
+
function wu({
|
|
2282
2284
|
value: e,
|
|
2283
2285
|
onChange: t,
|
|
2284
2286
|
withSeconds: n = !1,
|
|
@@ -2289,18 +2291,18 @@ function yu({
|
|
|
2289
2291
|
clearable: c = !1,
|
|
2290
2292
|
presets: l
|
|
2291
2293
|
}) {
|
|
2292
|
-
const d = Be(), u = ce(), p = Ve(), h = r ?? u.dateRangePlaceholder, f = i ?? (d == null ? void 0 : d.invalid) ?? !1, m = se(() => l ??
|
|
2294
|
+
const d = Be(), u = ce(), p = Ve(), h = r ?? u.dateRangePlaceholder, f = i ?? (d == null ? void 0 : d.invalid) ?? !1, m = se(() => l ?? on(u), [l, u]), [y, b] = B(!1), [v, g] = B(() => Me((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [N, L] = B(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [F, D] = B(null), [_, E] = B(null), [w, O] = B(null), [V, U] = B(Pt), [C, G] = B(() => Et(n)), [S, X] = B(!0), [H, Y] = B("earlier"), [pe, A] = B("earlier"), I = R(null), q = R(null), te = R(null), ke = R(null), Ee = R(null), oe = R(null), K = R(null), _e = R(null), ye = R(null), xe = R(null), $ = De(), z = () => {
|
|
2293
2295
|
const Z = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2294
|
-
g(Me(Z)), L(Z), D(e ? Ne(e.from) : null), E(e ? Ne(e.to) : null), U(e ?
|
|
2296
|
+
g(Me(Z)), L(Z), D(e ? Ne(e.from) : null), E(e ? Ne(e.to) : null), U(e ? fn(e.from, n) : Pt), G(e ? fn(e.to, n) : Et(n)), X(e ? ra(e.from, e.to, n) : !0), Y(e ? qt(e.from) : "earlier"), A(e ? qt(e.to) : "earlier"), O(null), b(!0);
|
|
2295
2297
|
}, M = (Z = !0) => {
|
|
2296
2298
|
var J;
|
|
2297
|
-
b(!1),
|
|
2298
|
-
},
|
|
2299
|
+
b(!1), O(null), Z && ((J = I.current) == null || J.focus());
|
|
2300
|
+
}, j = (Z) => {
|
|
2299
2301
|
if (!F || _) {
|
|
2300
2302
|
D(Z), E(null), L(Z);
|
|
2301
2303
|
return;
|
|
2302
2304
|
}
|
|
2303
|
-
const [J, me] =
|
|
2305
|
+
const [J, me] = qn(F, Z);
|
|
2304
2306
|
D(Ne(J)), E(Ne(me)), L(Z), Y("earlier"), A("earlier"), requestAnimationFrame(() => {
|
|
2305
2307
|
var Te, tt;
|
|
2306
2308
|
S ? (Te = xe.current) == null || Te.focus() : (tt = ke.current) == null || tt.focus();
|
|
@@ -2314,18 +2316,18 @@ function yu({
|
|
|
2314
2316
|
const J = document.activeElement;
|
|
2315
2317
|
!J || !Z.contains(J) || J.closest(`.${T.grid}`) && ((me = Z.querySelector('[data-active="true"]')) == null || me.focus());
|
|
2316
2318
|
}, [N, y]);
|
|
2317
|
-
const x = S ?
|
|
2318
|
-
() => S ?
|
|
2319
|
+
const x = S ? Pt : V, W = se(
|
|
2320
|
+
() => S ? Et(n) : C,
|
|
2319
2321
|
[S, n, C]
|
|
2320
|
-
), ee = se(() =>
|
|
2322
|
+
), ee = se(() => pn(F, x, n), [F, x, n]), ae = se(() => pn(_, W, n), [_, W, n]), le = se(() => mn(ee, H), [ee, H]), ue = se(() => mn(ae, pe), [ae, pe]), de = () => {
|
|
2321
2323
|
if (!le || !ue) return;
|
|
2322
|
-
const [Z, J] =
|
|
2324
|
+
const [Z, J] = Xi(le, ue);
|
|
2323
2325
|
t({ from: Z, to: J }), M();
|
|
2324
2326
|
}, fe = F, be = _, we = F && !_ ? w : null, he = () => {
|
|
2325
2327
|
if (!le || !ue) return "";
|
|
2326
2328
|
if (S && F && _) {
|
|
2327
|
-
const
|
|
2328
|
-
return u.daysAllDay(
|
|
2329
|
+
const At = Dt(F, _);
|
|
2330
|
+
return u.daysAllDay(At);
|
|
2329
2331
|
}
|
|
2330
2332
|
const Z = Math.abs(ue.getTime() - le.getTime()), J = Math.round(Z / 6e4), me = Math.floor(J / 1440), Te = Math.floor(J % 1440 / 60), tt = J % 60, Ye = [];
|
|
2331
2333
|
return me > 0 && Ye.push(u.days(me)), Te > 0 && Ye.push(u.hoursShort(Te)), (tt > 0 || Ye.length === 0) && Ye.push(u.minutesShort(tt)), u.duration(Ye);
|
|
@@ -2344,7 +2346,7 @@ function yu({
|
|
|
2344
2346
|
const J = Z.range();
|
|
2345
2347
|
return Re(J.from, F) && Re(J.to, _);
|
|
2346
2348
|
}, bt = (Z, J, me, Te, tt, Ye) => {
|
|
2347
|
-
const [
|
|
2349
|
+
const [At, cn, ln] = tt;
|
|
2348
2350
|
return /* @__PURE__ */ k("div", { className: T.timeHalf, children: [
|
|
2349
2351
|
/* @__PURE__ */ k("span", { className: T.timeHalfHead, children: [
|
|
2350
2352
|
/* @__PURE__ */ s("span", { className: T.timeLabel, children: Z === "from" ? u.sideFrom : u.sideTo }),
|
|
@@ -2354,12 +2356,12 @@ function yu({
|
|
|
2354
2356
|
/* @__PURE__ */ s(
|
|
2355
2357
|
ft,
|
|
2356
2358
|
{
|
|
2357
|
-
own:
|
|
2359
|
+
own: At,
|
|
2358
2360
|
value: me.hour,
|
|
2359
2361
|
onValue: (pt) => Te({ ...me, hour: pt }),
|
|
2360
2362
|
max: 23,
|
|
2361
2363
|
label: Z === "from" ? u.startHour : u.endHour,
|
|
2362
|
-
next:
|
|
2364
|
+
next: cn,
|
|
2363
2365
|
disabled: S
|
|
2364
2366
|
}
|
|
2365
2367
|
),
|
|
@@ -2367,12 +2369,12 @@ function yu({
|
|
|
2367
2369
|
/* @__PURE__ */ s(
|
|
2368
2370
|
ft,
|
|
2369
2371
|
{
|
|
2370
|
-
own:
|
|
2372
|
+
own: cn,
|
|
2371
2373
|
value: me.minute,
|
|
2372
2374
|
onValue: (pt) => Te({ ...me, minute: pt }),
|
|
2373
2375
|
max: 59,
|
|
2374
2376
|
label: Z === "from" ? u.startMinute : u.endMinute,
|
|
2375
|
-
next: n ?
|
|
2377
|
+
next: n ? ln : Ye,
|
|
2376
2378
|
disabled: S
|
|
2377
2379
|
}
|
|
2378
2380
|
),
|
|
@@ -2381,7 +2383,7 @@ function yu({
|
|
|
2381
2383
|
/* @__PURE__ */ s(
|
|
2382
2384
|
ft,
|
|
2383
2385
|
{
|
|
2384
|
-
own:
|
|
2386
|
+
own: ln,
|
|
2385
2387
|
value: me.second,
|
|
2386
2388
|
onValue: (pt) => Te({ ...me, second: pt }),
|
|
2387
2389
|
max: 59,
|
|
@@ -2393,7 +2395,7 @@ function yu({
|
|
|
2393
2395
|
] })
|
|
2394
2396
|
] })
|
|
2395
2397
|
] });
|
|
2396
|
-
},
|
|
2398
|
+
}, an = (Z, J, me, Te) => !J || J.kind === "ok" ? null : J.kind === "missing" ? /* @__PURE__ */ s("p", { className: T.dstHint, children: u.timeMissingHintSide(Z, p.time(J.date, n)) }) : /* @__PURE__ */ k("div", { className: T.dstChoice, children: [
|
|
2397
2399
|
/* @__PURE__ */ s("p", { className: T.dstHint, children: u.timeAmbiguousHintSide(Z) }),
|
|
2398
2400
|
/* @__PURE__ */ k("div", { className: T.dstButtons, children: [
|
|
2399
2401
|
/* @__PURE__ */ s(ve, { size: "sm", variant: me === "earlier" ? "primary" : "secondary", onClick: () => Te("earlier"), children: u.timeEarlier(p.offset(J.earlier)) }),
|
|
@@ -2402,11 +2404,11 @@ function yu({
|
|
|
2402
2404
|
] });
|
|
2403
2405
|
return /* @__PURE__ */ k($e, { children: [
|
|
2404
2406
|
/* @__PURE__ */ s(
|
|
2405
|
-
|
|
2407
|
+
Ct,
|
|
2406
2408
|
{
|
|
2407
2409
|
wrapRef: q,
|
|
2408
2410
|
triggerRef: I,
|
|
2409
|
-
panel: { id: $, open: y, onToggle: () => y ? b(!1) :
|
|
2411
|
+
panel: { id: $, open: y, onToggle: () => y ? b(!1) : z() },
|
|
2410
2412
|
field: d,
|
|
2411
2413
|
state: { disabled: o, invalid: f, clearable: c, size: a },
|
|
2412
2414
|
hasValue: !!e,
|
|
@@ -2425,7 +2427,7 @@ function yu({
|
|
|
2425
2427
|
", ",
|
|
2426
2428
|
p.time(e.to, n)
|
|
2427
2429
|
] })),
|
|
2428
|
-
icon: /* @__PURE__ */ s(
|
|
2430
|
+
icon: /* @__PURE__ */ s(An, { className: T.icon }),
|
|
2429
2431
|
placeholder: h,
|
|
2430
2432
|
onClear: () => {
|
|
2431
2433
|
t(null), y && M(!1);
|
|
@@ -2449,13 +2451,13 @@ function yu({
|
|
|
2449
2451
|
children: /* @__PURE__ */ k("div", { ref: te, children: [
|
|
2450
2452
|
/* @__PURE__ */ k("div", { className: T.rangeBody, children: [
|
|
2451
2453
|
/* @__PURE__ */ s(
|
|
2452
|
-
|
|
2454
|
+
Gn,
|
|
2453
2455
|
{
|
|
2454
2456
|
presets: m,
|
|
2455
2457
|
isActive: et,
|
|
2456
2458
|
onChoose: (Z) => {
|
|
2457
2459
|
const J = Z.range();
|
|
2458
|
-
t(
|
|
2460
|
+
t(Wn(J.from, J.to, "instant", n)), M();
|
|
2459
2461
|
}
|
|
2460
2462
|
}
|
|
2461
2463
|
),
|
|
@@ -2467,11 +2469,11 @@ function yu({
|
|
|
2467
2469
|
onView: g,
|
|
2468
2470
|
active: N,
|
|
2469
2471
|
onActive: L,
|
|
2470
|
-
onPick:
|
|
2472
|
+
onPick: j,
|
|
2471
2473
|
bandFrom: fe,
|
|
2472
2474
|
bandTo: be,
|
|
2473
2475
|
previewTo: we,
|
|
2474
|
-
onHoverDay:
|
|
2476
|
+
onHoverDay: O
|
|
2475
2477
|
}
|
|
2476
2478
|
),
|
|
2477
2479
|
/* @__PURE__ */ k(
|
|
@@ -2483,17 +2485,17 @@ function yu({
|
|
|
2483
2485
|
},
|
|
2484
2486
|
children: [
|
|
2485
2487
|
bt("from", F, V, U, [ke, Ee, oe], K),
|
|
2486
|
-
bt("to", _, C,
|
|
2488
|
+
bt("to", _, C, G, [K, _e, ye])
|
|
2487
2489
|
]
|
|
2488
2490
|
}
|
|
2489
2491
|
),
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
+
an(u.sideFrom, ee, H, Y),
|
|
2493
|
+
an(u.sideTo, ae, pe, A)
|
|
2492
2494
|
] })
|
|
2493
2495
|
] }),
|
|
2494
2496
|
/* @__PURE__ */ k("div", { className: T.foot, children: [
|
|
2495
2497
|
/* @__PURE__ */ s(
|
|
2496
|
-
|
|
2498
|
+
tn,
|
|
2497
2499
|
{
|
|
2498
2500
|
id: `${$}-allday`,
|
|
2499
2501
|
label: u.allDay,
|
|
@@ -2530,14 +2532,14 @@ function yu({
|
|
|
2530
2532
|
)
|
|
2531
2533
|
] });
|
|
2532
2534
|
}
|
|
2533
|
-
const
|
|
2534
|
-
divider:
|
|
2535
|
-
strong:
|
|
2536
|
-
horizontal:
|
|
2537
|
-
vertical:
|
|
2538
|
-
withLabel:
|
|
2539
|
-
label:
|
|
2540
|
-
},
|
|
2535
|
+
const oa = "_divider_39bkm_7", sa = "_strong_39bkm_12", ia = "_horizontal_39bkm_16", aa = "_vertical_39bkm_24", ca = "_withLabel_39bkm_35", la = "_label_39bkm_53 _text_1hv7a_23", ut = {
|
|
2536
|
+
divider: oa,
|
|
2537
|
+
strong: sa,
|
|
2538
|
+
horizontal: ia,
|
|
2539
|
+
vertical: aa,
|
|
2540
|
+
withLabel: ca,
|
|
2541
|
+
label: la
|
|
2542
|
+
}, ku = ie(function({ orientation: t = "horizontal", strong: n = !1, label: r, className: o, ...i }, a) {
|
|
2541
2543
|
const c = P(
|
|
2542
2544
|
ut.divider,
|
|
2543
2545
|
t === "vertical" ? ut.vertical : ut.horizontal,
|
|
@@ -2560,14 +2562,14 @@ const na = "_divider_39bkm_7", ra = "_strong_39bkm_12", oa = "_horizontal_39bkm_
|
|
|
2560
2562
|
children: /* @__PURE__ */ s("span", { className: ut.label, children: r })
|
|
2561
2563
|
}
|
|
2562
2564
|
);
|
|
2563
|
-
}),
|
|
2564
|
-
empty:
|
|
2565
|
-
icon:
|
|
2566
|
-
title:
|
|
2567
|
-
description:
|
|
2568
|
-
action:
|
|
2565
|
+
}), da = "_empty_1dx25_4 _text_1hv7a_23", ua = "_icon_1dx25_14", ha = "_title_1dx25_26", fa = "_description_1dx25_33", pa = "_action_1dx25_41", _t = {
|
|
2566
|
+
empty: da,
|
|
2567
|
+
icon: ua,
|
|
2568
|
+
title: ha,
|
|
2569
|
+
description: fa,
|
|
2570
|
+
action: pa
|
|
2569
2571
|
};
|
|
2570
|
-
function
|
|
2572
|
+
function xu({ title: e, description: t, action: n, icon: r, className: o, ...i }) {
|
|
2571
2573
|
return /* @__PURE__ */ k("div", { className: P(_t.empty, o), ...i, children: [
|
|
2572
2574
|
r && /* @__PURE__ */ s("div", { className: _t.icon, children: r }),
|
|
2573
2575
|
/* @__PURE__ */ s("p", { className: _t.title, children: e }),
|
|
@@ -2575,18 +2577,18 @@ function wu({ title: e, description: t, action: n, icon: r, className: o, ...i }
|
|
|
2575
2577
|
n && /* @__PURE__ */ s("div", { className: _t.action, children: n })
|
|
2576
2578
|
] });
|
|
2577
2579
|
}
|
|
2578
|
-
const
|
|
2579
|
-
input:
|
|
2580
|
-
sm:
|
|
2581
|
-
numeric:
|
|
2582
|
-
invalid:
|
|
2583
|
-
wrapper:
|
|
2584
|
-
wrapperSm:
|
|
2585
|
-
wrapperInvalid:
|
|
2586
|
-
wrapperDisabled:
|
|
2587
|
-
inner:
|
|
2588
|
-
clear:
|
|
2589
|
-
},
|
|
2580
|
+
const ma = "_input_grwj8_4 _field_1hv7a_34", _a = "_sm_grwj8_41", ga = "_numeric_grwj8_47", va = "_invalid_grwj8_55", ya = "_wrapper_grwj8_69 _text_1hv7a_23", ba = "_wrapperSm_grwj8_92", wa = "_wrapperInvalid_grwj8_98", ka = "_wrapperDisabled_grwj8_84", xa = "_inner_grwj8_112 _field_1hv7a_34", Na = "_clear_grwj8_139", ze = {
|
|
2581
|
+
input: ma,
|
|
2582
|
+
sm: _a,
|
|
2583
|
+
numeric: ga,
|
|
2584
|
+
invalid: va,
|
|
2585
|
+
wrapper: ya,
|
|
2586
|
+
wrapperSm: ba,
|
|
2587
|
+
wrapperInvalid: wa,
|
|
2588
|
+
wrapperDisabled: ka,
|
|
2589
|
+
inner: xa,
|
|
2590
|
+
clear: Na
|
|
2591
|
+
}, Vn = ie(function({ size: t = "md", invalid: n, numeric: r = !1, clearable: o = !1, onClear: i, className: a, id: c, disabled: l, ...d }, u) {
|
|
2590
2592
|
const p = Be(), h = ce(), f = n ?? (p == null ? void 0 : p.invalid) ?? !1, m = (b) => /* @__PURE__ */ s(
|
|
2591
2593
|
"input",
|
|
2592
2594
|
{
|
|
@@ -2603,10 +2605,10 @@ const fa = "_input_grwj8_4 _field_1hv7a_34", pa = "_sm_grwj8_41", ma = "_numeric
|
|
|
2603
2605
|
if (!o)
|
|
2604
2606
|
return m(
|
|
2605
2607
|
P(
|
|
2606
|
-
|
|
2607
|
-
t === "sm" &&
|
|
2608
|
-
r &&
|
|
2609
|
-
f &&
|
|
2608
|
+
ze.input,
|
|
2609
|
+
t === "sm" && ze.sm,
|
|
2610
|
+
r && ze.numeric,
|
|
2611
|
+
f && ze.invalid,
|
|
2610
2612
|
a
|
|
2611
2613
|
)
|
|
2612
2614
|
);
|
|
@@ -2615,21 +2617,21 @@ const fa = "_input_grwj8_4 _field_1hv7a_34", pa = "_sm_grwj8_41", ma = "_numeric
|
|
|
2615
2617
|
"span",
|
|
2616
2618
|
{
|
|
2617
2619
|
className: P(
|
|
2618
|
-
|
|
2619
|
-
t === "sm" &&
|
|
2620
|
-
f &&
|
|
2621
|
-
l &&
|
|
2620
|
+
ze.wrapper,
|
|
2621
|
+
t === "sm" && ze.wrapperSm,
|
|
2622
|
+
f && ze.wrapperInvalid,
|
|
2623
|
+
l && ze.wrapperDisabled,
|
|
2622
2624
|
a
|
|
2623
2625
|
),
|
|
2624
2626
|
children: [
|
|
2625
|
-
m(P(
|
|
2627
|
+
m(P(ze.inner, r && ze.numeric)),
|
|
2626
2628
|
y && !l && /* @__PURE__ */ s(
|
|
2627
2629
|
"button",
|
|
2628
2630
|
{
|
|
2629
2631
|
type: "button",
|
|
2630
2632
|
tabIndex: -1,
|
|
2631
2633
|
"aria-label": h.clearInput,
|
|
2632
|
-
className:
|
|
2634
|
+
className: ze.clear,
|
|
2633
2635
|
onMouseDown: (b) => b.preventDefault(),
|
|
2634
2636
|
onClick: () => i == null ? void 0 : i(),
|
|
2635
2637
|
children: /* @__PURE__ */ s(Ue, {})
|
|
@@ -2638,18 +2640,18 @@ const fa = "_input_grwj8_4 _field_1hv7a_34", pa = "_sm_grwj8_41", ma = "_numeric
|
|
|
2638
2640
|
]
|
|
2639
2641
|
}
|
|
2640
2642
|
);
|
|
2641
|
-
}),
|
|
2642
|
-
stack:
|
|
2643
|
-
grid:
|
|
2644
|
-
},
|
|
2643
|
+
}), $a = "_stack_9r3lk_4", Da = "_grid_9r3lk_9", Un = {
|
|
2644
|
+
stack: $a,
|
|
2645
|
+
grid: Da
|
|
2646
|
+
}, Yn = (e) => `var(--u-space-${e})`, Nu = ie(function({ direction: t = "column", gap: n = 3, align: r, justify: o, wrap: i = !1, className: a, style: c, children: l, ...d }, u) {
|
|
2645
2647
|
return /* @__PURE__ */ s(
|
|
2646
2648
|
"div",
|
|
2647
2649
|
{
|
|
2648
2650
|
ref: u,
|
|
2649
|
-
className: P(
|
|
2651
|
+
className: P(Un.stack, a),
|
|
2650
2652
|
style: {
|
|
2651
2653
|
flexDirection: t,
|
|
2652
|
-
gap:
|
|
2654
|
+
gap: Yn(n),
|
|
2653
2655
|
alignItems: r,
|
|
2654
2656
|
justifyContent: o,
|
|
2655
2657
|
flexWrap: i ? "wrap" : void 0,
|
|
@@ -2659,15 +2661,15 @@ const fa = "_input_grwj8_4 _field_1hv7a_34", pa = "_sm_grwj8_41", ma = "_numeric
|
|
|
2659
2661
|
children: l
|
|
2660
2662
|
}
|
|
2661
2663
|
);
|
|
2662
|
-
}),
|
|
2664
|
+
}), $u = ie(function({ columns: t = 2, minItemWidth: n, gap: r = 4, className: o, style: i, children: a, ...c }, l) {
|
|
2663
2665
|
return /* @__PURE__ */ s(
|
|
2664
2666
|
"div",
|
|
2665
2667
|
{
|
|
2666
2668
|
ref: l,
|
|
2667
|
-
className: P(
|
|
2669
|
+
className: P(Un.grid, o),
|
|
2668
2670
|
style: {
|
|
2669
2671
|
gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : `repeat(${t}, minmax(0, 1fr))`,
|
|
2670
|
-
gap:
|
|
2672
|
+
gap: Yn(r),
|
|
2671
2673
|
...i
|
|
2672
2674
|
},
|
|
2673
2675
|
...c,
|
|
@@ -2675,13 +2677,13 @@ const fa = "_input_grwj8_4 _field_1hv7a_34", pa = "_sm_grwj8_41", ma = "_numeric
|
|
|
2675
2677
|
}
|
|
2676
2678
|
);
|
|
2677
2679
|
});
|
|
2678
|
-
function
|
|
2680
|
+
function Ta(e, t = Dn) {
|
|
2679
2681
|
const n = [...e].filter((o) => !/\s/.test(o) && (t.group === "" || o !== t.group)).map((o) => o === t.decimal ? "." : o).join("");
|
|
2680
2682
|
if (n === "" || n === "-") return null;
|
|
2681
2683
|
const r = Number(n);
|
|
2682
2684
|
return Number.isFinite(r) ? r : null;
|
|
2683
2685
|
}
|
|
2684
|
-
function
|
|
2686
|
+
function _n(e, t = {}) {
|
|
2685
2687
|
const { min: n, max: r, decimals: o } = t;
|
|
2686
2688
|
let i = e;
|
|
2687
2689
|
if (n !== void 0 && (i = Math.max(n, i)), r !== void 0 && (i = Math.min(r, i)), o !== void 0) {
|
|
@@ -2690,23 +2692,23 @@ function mn(e, t = {}) {
|
|
|
2690
2692
|
}
|
|
2691
2693
|
return i;
|
|
2692
2694
|
}
|
|
2693
|
-
const
|
|
2694
|
-
function
|
|
2695
|
+
const Sa = (e) => e === void 0 || e < 0, Kn = (e) => e !== 0;
|
|
2696
|
+
function Ma(e, t = {}, n = Dn) {
|
|
2695
2697
|
const r = /* @__PURE__ */ new Set([..."0123456789", n.group]);
|
|
2696
|
-
return
|
|
2698
|
+
return Kn(t.decimals) && r.add(n.decimal), Sa(t.min) && r.add("-"), r.delete(""), [...e].filter((o) => r.has(o)).join("");
|
|
2697
2699
|
}
|
|
2698
|
-
function
|
|
2700
|
+
function Ca(e, t, n, r = 1) {
|
|
2699
2701
|
return e + t * n * r;
|
|
2700
2702
|
}
|
|
2701
|
-
const
|
|
2702
|
-
wrapper:
|
|
2703
|
-
sm:
|
|
2704
|
-
invalid:
|
|
2705
|
-
disabled:
|
|
2706
|
-
input:
|
|
2707
|
-
adornment:
|
|
2708
|
-
stepper:
|
|
2709
|
-
},
|
|
2703
|
+
const Aa = "_wrapper_7i1oo_4 _text_1hv7a_23", La = "_sm_7i1oo_26", Ra = "_invalid_7i1oo_31", Pa = "_disabled_7i1oo_18", Ea = "_input_7i1oo_44 _field_1hv7a_34", Fa = "_adornment_7i1oo_72", Ia = "_stepper_7i1oo_82", Ke = {
|
|
2704
|
+
wrapper: Aa,
|
|
2705
|
+
sm: La,
|
|
2706
|
+
invalid: Ra,
|
|
2707
|
+
disabled: Pa,
|
|
2708
|
+
input: Ea,
|
|
2709
|
+
adornment: Fa,
|
|
2710
|
+
stepper: Ia
|
|
2711
|
+
}, Du = ie(function({
|
|
2710
2712
|
value: t,
|
|
2711
2713
|
onChange: n,
|
|
2712
2714
|
min: r,
|
|
@@ -2725,7 +2727,7 @@ const Ma = "_wrapper_7i1oo_4 _text_1hv7a_23", Ca = "_sm_7i1oo_26", Aa = "_invali
|
|
|
2725
2727
|
onKeyDown: b,
|
|
2726
2728
|
...v
|
|
2727
2729
|
}, g) {
|
|
2728
|
-
const N = Be(), L = ce(), F = Ve(), D = (K) => F.number(K, a), _ = se(() =>
|
|
2730
|
+
const N = Be(), L = ce(), F = Ve(), D = (K) => F.number(K, a), _ = se(() => ar(F), [F]), E = (K) => Ta(K, _), w = u ?? (N == null ? void 0 : N.invalid) ?? !1, O = se(() => ({ min: r, max: o, decimals: a }), [r, o, a]), [V, U] = B(() => t === null ? "" : D(t)), [C, G] = B(!1);
|
|
2729
2731
|
ne(() => {
|
|
2730
2732
|
C || U(t === null ? "" : D(t));
|
|
2731
2733
|
}, [t, C, a, F]);
|
|
@@ -2734,15 +2736,15 @@ const Ma = "_wrapper_7i1oo_4 _text_1hv7a_23", Ca = "_sm_7i1oo_26", Aa = "_invali
|
|
|
2734
2736
|
U(""), n(null);
|
|
2735
2737
|
return;
|
|
2736
2738
|
}
|
|
2737
|
-
const _e =
|
|
2739
|
+
const _e = _n(K, O);
|
|
2738
2740
|
U(D(_e)), n(_e);
|
|
2739
2741
|
}, X = R(V);
|
|
2740
2742
|
X.current = V;
|
|
2741
|
-
const
|
|
2742
|
-
|
|
2743
|
+
const H = R(t);
|
|
2744
|
+
H.current = t;
|
|
2743
2745
|
const Y = (K, _e = 1) => {
|
|
2744
|
-
const ye = E(X.current) ??
|
|
2745
|
-
S(
|
|
2746
|
+
const ye = E(X.current) ?? H.current ?? 0;
|
|
2747
|
+
S(Ca(ye, K, i, _e));
|
|
2746
2748
|
}, pe = (K) => {
|
|
2747
2749
|
b == null || b(K), !K.defaultPrevented && (K.key !== "ArrowUp" && K.key !== "ArrowDown" || (K.preventDefault(), Y(K.key === "ArrowUp" ? 1 : -1, K.shiftKey ? 10 : 1)));
|
|
2748
2750
|
}, A = R(null), I = () => {
|
|
@@ -2791,7 +2793,7 @@ const Ma = "_wrapper_7i1oo_4 _text_1hv7a_23", Ca = "_sm_7i1oo_26", Aa = "_invali
|
|
|
2791
2793
|
{
|
|
2792
2794
|
ref: g,
|
|
2793
2795
|
type: "text",
|
|
2794
|
-
inputMode:
|
|
2796
|
+
inputMode: Kn(a) ? "decimal" : "numeric",
|
|
2795
2797
|
id: f ?? (N == null ? void 0 : N.id),
|
|
2796
2798
|
disabled: p,
|
|
2797
2799
|
"aria-describedby": v["aria-describedby"] ?? (N == null ? void 0 : N.describedBy),
|
|
@@ -2800,50 +2802,50 @@ const Ma = "_wrapper_7i1oo_4 _text_1hv7a_23", Ca = "_sm_7i1oo_26", Aa = "_invali
|
|
|
2800
2802
|
className: Ke.input,
|
|
2801
2803
|
value: V,
|
|
2802
2804
|
onChange: (K) => {
|
|
2803
|
-
const _e =
|
|
2805
|
+
const _e = Ma(K.target.value, O, _);
|
|
2804
2806
|
U(_e);
|
|
2805
2807
|
const ye = E(_e);
|
|
2806
|
-
n(ye === null ? null :
|
|
2808
|
+
n(ye === null ? null : _n(ye, O));
|
|
2807
2809
|
},
|
|
2808
2810
|
...v,
|
|
2809
2811
|
onKeyDown: pe,
|
|
2810
2812
|
onFocus: (K) => {
|
|
2811
|
-
m == null || m(K),
|
|
2813
|
+
m == null || m(K), G(!0);
|
|
2812
2814
|
},
|
|
2813
2815
|
onBlur: (K) => {
|
|
2814
|
-
y == null || y(K),
|
|
2816
|
+
y == null || y(K), G(!1), S(E(K.currentTarget.value));
|
|
2815
2817
|
}
|
|
2816
2818
|
}
|
|
2817
2819
|
),
|
|
2818
2820
|
l && /* @__PURE__ */ s("span", { className: Ke.adornment, children: l }),
|
|
2819
2821
|
/* @__PURE__ */ k("span", { className: Ke.stepper, children: [
|
|
2820
|
-
oe(-1, Ee, L.decreaseValue, /* @__PURE__ */ s(
|
|
2821
|
-
oe(1, ke, L.increaseValue, /* @__PURE__ */ s(
|
|
2822
|
+
oe(-1, Ee, L.decreaseValue, /* @__PURE__ */ s(kr, {})),
|
|
2823
|
+
oe(1, ke, L.increaseValue, /* @__PURE__ */ s(wr, {}))
|
|
2822
2824
|
] })
|
|
2823
2825
|
]
|
|
2824
2826
|
}
|
|
2825
2827
|
);
|
|
2826
|
-
}),
|
|
2827
|
-
dialog:
|
|
2828
|
-
spacerTop:
|
|
2829
|
-
spacerBottom:
|
|
2830
|
-
sheet:
|
|
2831
|
-
sm:
|
|
2832
|
-
md:
|
|
2833
|
-
lg:
|
|
2834
|
-
header:
|
|
2835
|
-
headerText:
|
|
2836
|
-
title:
|
|
2837
|
-
description:
|
|
2838
|
-
close:
|
|
2839
|
-
footer:
|
|
2840
|
-
body:
|
|
2841
|
-
modalIn:
|
|
2842
|
-
modalOut:
|
|
2843
|
-
backdropIn:
|
|
2844
|
-
backdropOut:
|
|
2845
|
-
},
|
|
2846
|
-
function
|
|
2828
|
+
}), Ba = "_dialog_1hit9_8 _text_1hv7a_23", za = "_spacerTop_1hit9_30", Oa = "_spacerBottom_1hit9_35", Ha = "_sheet_1hit9_2", qa = "_sm_1hit9_52", Wa = "_md_1hit9_53", Ga = "_lg_1hit9_54", ja = "_header_1hit9_104", Va = "_headerText_1hit9_112", Ua = "_title_1hit9_119", Ya = "_description_1hit9_127", Ka = "_close_1hit9_134 _ring_1hv7a_65", Xa = "_footer_1hit9_164", Qa = "_body_1hit9_168 _scroll_1hv7a_40", Za = "_modalIn_1hit9_1", Ja = "_modalOut_1hit9_1", ec = "_backdropIn_1hit9_1", tc = "_backdropOut_1hit9_1", Ie = {
|
|
2829
|
+
dialog: Ba,
|
|
2830
|
+
spacerTop: za,
|
|
2831
|
+
spacerBottom: Oa,
|
|
2832
|
+
sheet: Ha,
|
|
2833
|
+
sm: qa,
|
|
2834
|
+
md: Wa,
|
|
2835
|
+
lg: Ga,
|
|
2836
|
+
header: ja,
|
|
2837
|
+
headerText: Va,
|
|
2838
|
+
title: Ua,
|
|
2839
|
+
description: Ya,
|
|
2840
|
+
close: Ka,
|
|
2841
|
+
footer: Xa,
|
|
2842
|
+
body: Qa,
|
|
2843
|
+
modalIn: Za,
|
|
2844
|
+
modalOut: Ja,
|
|
2845
|
+
backdropIn: ec,
|
|
2846
|
+
backdropOut: tc
|
|
2847
|
+
}, Xn = je(null);
|
|
2848
|
+
function nc({
|
|
2847
2849
|
open: e,
|
|
2848
2850
|
onClose: t,
|
|
2849
2851
|
size: n = "md",
|
|
@@ -2852,7 +2854,7 @@ function ec({
|
|
|
2852
2854
|
children: i,
|
|
2853
2855
|
...a
|
|
2854
2856
|
}) {
|
|
2855
|
-
const c = R(null), l = De(), { dialogRef: d, closing: u, beimSchliessen: p, beimAbbrechen: h } =
|
|
2857
|
+
const c = R(null), l = De(), { dialogRef: d, closing: u, beimSchliessen: p, beimAbbrechen: h } = Bn(e, "--u-duration-exit", t), f = (m) => {
|
|
2856
2858
|
r && c.current && !c.current.contains(m.target) && t();
|
|
2857
2859
|
};
|
|
2858
2860
|
return /* @__PURE__ */ k(
|
|
@@ -2868,14 +2870,14 @@ function ec({
|
|
|
2868
2870
|
...a,
|
|
2869
2871
|
children: [
|
|
2870
2872
|
/* @__PURE__ */ s("div", { className: Ie.spacerTop, "aria-hidden": "true" }),
|
|
2871
|
-
/* @__PURE__ */ s("div", { ref: c, className: P(Ie.sheet, Ie[n]), children: /* @__PURE__ */ s(
|
|
2873
|
+
/* @__PURE__ */ s("div", { ref: c, className: P(Ie.sheet, Ie[n]), children: /* @__PURE__ */ s(Xn.Provider, { value: { onClose: t, titleId: l }, children: i }) }),
|
|
2872
2874
|
/* @__PURE__ */ s("div", { className: Ie.spacerBottom, "aria-hidden": "true" })
|
|
2873
2875
|
]
|
|
2874
2876
|
}
|
|
2875
2877
|
);
|
|
2876
2878
|
}
|
|
2877
|
-
function
|
|
2878
|
-
const i =
|
|
2879
|
+
function rc({ title: e, description: t, hideClose: n = !1, className: r, ...o }) {
|
|
2880
|
+
const i = He(Xn), a = ce();
|
|
2879
2881
|
return /* @__PURE__ */ k("div", { className: P(Ie.header, r), ...o, children: [
|
|
2880
2882
|
/* @__PURE__ */ k("div", { className: Ie.headerText, children: [
|
|
2881
2883
|
/* @__PURE__ */ s("h2", { id: i == null ? void 0 : i.titleId, className: Ie.title, children: e }),
|
|
@@ -2893,13 +2895,13 @@ function tc({ title: e, description: t, hideClose: n = !1, className: r, ...o })
|
|
|
2893
2895
|
)
|
|
2894
2896
|
] });
|
|
2895
2897
|
}
|
|
2896
|
-
function
|
|
2898
|
+
function Tu({ className: e, children: t, ...n }) {
|
|
2897
2899
|
return /* @__PURE__ */ s("div", { className: P(Ie.body, e), ...n, children: t });
|
|
2898
2900
|
}
|
|
2899
|
-
function
|
|
2901
|
+
function oc({ className: e, children: t, ...n }) {
|
|
2900
2902
|
return /* @__PURE__ */ s("div", { className: P(Ie.footer, e), ...n, children: t });
|
|
2901
2903
|
}
|
|
2902
|
-
function
|
|
2904
|
+
function Su({
|
|
2903
2905
|
open: e,
|
|
2904
2906
|
onClose: t,
|
|
2905
2907
|
onConfirm: n,
|
|
@@ -2911,40 +2913,40 @@ function Du({
|
|
|
2911
2913
|
loading: l = !1
|
|
2912
2914
|
}) {
|
|
2913
2915
|
const d = ce();
|
|
2914
|
-
return /* @__PURE__ */ k(
|
|
2915
|
-
/* @__PURE__ */ s(
|
|
2916
|
-
/* @__PURE__ */ k(
|
|
2916
|
+
return /* @__PURE__ */ k(nc, { open: e, onClose: t, size: "sm", closeOnBackdrop: !l, children: [
|
|
2917
|
+
/* @__PURE__ */ s(rc, { title: r, description: o, hideClose: !0 }),
|
|
2918
|
+
/* @__PURE__ */ k(oc, { children: [
|
|
2917
2919
|
/* @__PURE__ */ s(ve, { onClick: t, disabled: l, children: a ?? d.cancel }),
|
|
2918
2920
|
/* @__PURE__ */ s(ve, { variant: c, loading: l, onClick: n, children: i ?? d.confirm })
|
|
2919
2921
|
] })
|
|
2920
2922
|
] });
|
|
2921
2923
|
}
|
|
2922
|
-
const
|
|
2923
|
-
field:
|
|
2924
|
-
invalid:
|
|
2925
|
-
fieldDisabled:
|
|
2926
|
-
placeholder:
|
|
2927
|
-
summary:
|
|
2928
|
-
measure:
|
|
2929
|
-
chipLabel:
|
|
2930
|
-
chip:
|
|
2931
|
-
chipX:
|
|
2932
|
-
counter:
|
|
2933
|
-
main:
|
|
2934
|
-
mainEmpty:
|
|
2935
|
-
chevron:
|
|
2936
|
-
panel:
|
|
2937
|
-
scopes:
|
|
2938
|
-
scope:
|
|
2939
|
-
scopeActive:
|
|
2940
|
-
qol:
|
|
2941
|
-
qolButtons:
|
|
2942
|
-
count:
|
|
2943
|
-
list:
|
|
2944
|
-
option:
|
|
2945
|
-
empty:
|
|
2924
|
+
const sc = "_field_ovdvz_8 _text_1hv7a_23", ic = "_invalid_ovdvz_33", ac = "_fieldDisabled_ovdvz_25", cc = "_placeholder_ovdvz_47", lc = "_summary_ovdvz_56", dc = "_measure_ovdvz_69", uc = "_chipLabel_ovdvz_80", hc = "_chip_ovdvz_80 _ring_1hv7a_65", fc = "_chipX_ovdvz_133", pc = "_counter_ovdvz_153 _ring_1hv7a_65", mc = "_main_ovdvz_183", _c = "_mainEmpty_ovdvz_208", gc = "_chevron_ovdvz_214", vc = "_panel_ovdvz_223", yc = "_scopes_ovdvz_232", bc = "_scope_ovdvz_232 _ring_1hv7a_65", wc = "_scopeActive_ovdvz_265", kc = "_qol_ovdvz_271", xc = "_qolButtons_ovdvz_281", Nc = "_count_ovdvz_153", $c = "_list_ovdvz_296 _scroll_1hv7a_40", Dc = "_option_ovdvz_308", Tc = "_empty_ovdvz_323", re = {
|
|
2925
|
+
field: sc,
|
|
2926
|
+
invalid: ic,
|
|
2927
|
+
fieldDisabled: ac,
|
|
2928
|
+
placeholder: cc,
|
|
2929
|
+
summary: lc,
|
|
2930
|
+
measure: dc,
|
|
2931
|
+
chipLabel: uc,
|
|
2932
|
+
chip: hc,
|
|
2933
|
+
chipX: fc,
|
|
2934
|
+
counter: pc,
|
|
2935
|
+
main: mc,
|
|
2936
|
+
mainEmpty: _c,
|
|
2937
|
+
chevron: gc,
|
|
2938
|
+
panel: vc,
|
|
2939
|
+
scopes: yc,
|
|
2940
|
+
scope: bc,
|
|
2941
|
+
scopeActive: wc,
|
|
2942
|
+
qol: kc,
|
|
2943
|
+
qolButtons: xc,
|
|
2944
|
+
count: Nc,
|
|
2945
|
+
list: $c,
|
|
2946
|
+
option: Dc,
|
|
2947
|
+
empty: Tc
|
|
2946
2948
|
};
|
|
2947
|
-
function
|
|
2949
|
+
function Mu({
|
|
2948
2950
|
options: e,
|
|
2949
2951
|
value: t,
|
|
2950
2952
|
onChange: n,
|
|
@@ -2954,7 +2956,7 @@ function Tu({
|
|
|
2954
2956
|
disabled: a = !1,
|
|
2955
2957
|
invalid: c
|
|
2956
2958
|
}) {
|
|
2957
|
-
const l = Be(), d = ce(), u = r ?? d.multiSelectPlaceholder, p = o ?? d.multiSelectSearchPlaceholder, h = i ?? d.noMatches, f = c ?? (l == null ? void 0 : l.invalid) ?? !1, [m, y] = B(!1), [b, v] = B(""), [g, N] = B("all"), [L, F] = B(/* @__PURE__ */ new Set()), D = R(null), _ = R(null), E = R(null), w = R(null),
|
|
2959
|
+
const l = Be(), d = ce(), u = r ?? d.multiSelectPlaceholder, p = o ?? d.multiSelectSearchPlaceholder, h = i ?? d.noMatches, f = c ?? (l == null ? void 0 : l.invalid) ?? !1, [m, y] = B(!1), [b, v] = B(""), [g, N] = B("all"), [L, F] = B(/* @__PURE__ */ new Set()), D = R(null), _ = R(null), E = R(null), w = R(null), O = De(), V = (x = "all") => {
|
|
2958
2960
|
N(x), F(new Set(t)), v(""), y(!0);
|
|
2959
2961
|
}, U = (x) => {
|
|
2960
2962
|
var W;
|
|
@@ -2962,14 +2964,14 @@ function Tu({
|
|
|
2962
2964
|
}, C = Q((x) => {
|
|
2963
2965
|
var W;
|
|
2964
2966
|
x && ((W = E.current) == null || W.focus());
|
|
2965
|
-
}, []),
|
|
2967
|
+
}, []), G = se(
|
|
2966
2968
|
() => g === "selected" ? e.filter((x) => L.has(x.value)) : e,
|
|
2967
2969
|
[e, g, L]
|
|
2968
|
-
), S = se(() =>
|
|
2970
|
+
), S = se(() => zn(G, b), [G, b]), X = (x) => {
|
|
2969
2971
|
n(
|
|
2970
2972
|
t.includes(x) ? t.filter((W) => W !== x) : [...t, x]
|
|
2971
2973
|
);
|
|
2972
|
-
},
|
|
2974
|
+
}, H = (x) => {
|
|
2973
2975
|
n(t.filter((W) => W !== x));
|
|
2974
2976
|
}, Y = se(() => Co(S), [S]), pe = () => n(Ao(t, Y)), A = () => n(Lo(t, Y)), I = () => n(Ro(t, Y)), q = () => {
|
|
2975
2977
|
var x;
|
|
@@ -3004,7 +3006,7 @@ function Tu({
|
|
|
3004
3006
|
return;
|
|
3005
3007
|
}
|
|
3006
3008
|
const ae = ee.indexOf(W);
|
|
3007
|
-
ae !== -1 && (x.key === "ArrowRight" ? (x.preventDefault(), (ue = ee[ae + 1] ?? _.current) == null || ue.focus()) : x.key === "ArrowLeft" ? (x.preventDefault(), (de = ee[ae - 1]) == null || de.focus()) : (x.key === "Delete" || x.key === "Backspace") && W.dataset.value && (x.preventDefault(),
|
|
3009
|
+
ae !== -1 && (x.key === "ArrowRight" ? (x.preventDefault(), (ue = ee[ae + 1] ?? _.current) == null || ue.focus()) : x.key === "ArrowLeft" ? (x.preventDefault(), (de = ee[ae - 1]) == null || de.focus()) : (x.key === "Delete" || x.key === "Backspace") && W.dataset.value && (x.preventDefault(), H(W.dataset.value), requestAnimationFrame(() => {
|
|
3008
3010
|
var be;
|
|
3009
3011
|
const fe = Ee();
|
|
3010
3012
|
(be = fe[Math.min(ae, fe.length - 1)] ?? _.current) == null || be.focus();
|
|
@@ -3012,7 +3014,7 @@ function Tu({
|
|
|
3012
3014
|
}, K = se(
|
|
3013
3015
|
() => e.filter((x) => t.includes(x.value)),
|
|
3014
3016
|
[e, t]
|
|
3015
|
-
), [_e, ye] = B(1), xe = R(null), $ = R(null),
|
|
3017
|
+
), [_e, ye] = B(1), xe = R(null), $ = R(null), z = Q(() => {
|
|
3016
3018
|
var be;
|
|
3017
3019
|
const x = xe.current, W = $.current;
|
|
3018
3020
|
if (!x || !W) return;
|
|
@@ -3033,15 +3035,15 @@ function Tu({
|
|
|
3033
3035
|
}
|
|
3034
3036
|
ye(fe);
|
|
3035
3037
|
}, []);
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
+
Oe(() => {
|
|
3039
|
+
z();
|
|
3038
3040
|
}), ne(() => {
|
|
3039
3041
|
const x = D.current;
|
|
3040
3042
|
if (!x) return;
|
|
3041
|
-
const W = new ResizeObserver(() =>
|
|
3043
|
+
const W = new ResizeObserver(() => z());
|
|
3042
3044
|
return W.observe(x), () => W.disconnect();
|
|
3043
|
-
}, [
|
|
3044
|
-
const M = t.length - _e,
|
|
3045
|
+
}, [z]);
|
|
3046
|
+
const M = t.length - _e, j = /* @__PURE__ */ s(Ue, { size: 8 });
|
|
3045
3047
|
return /* @__PURE__ */ k($e, { children: [
|
|
3046
3048
|
/* @__PURE__ */ k(
|
|
3047
3049
|
"div",
|
|
@@ -3066,11 +3068,11 @@ function Tu({
|
|
|
3066
3068
|
className: re.chip,
|
|
3067
3069
|
"aria-label": d.removeSelectedValue(x.label),
|
|
3068
3070
|
onClick: (W) => {
|
|
3069
|
-
W.stopPropagation(),
|
|
3071
|
+
W.stopPropagation(), H(x.value);
|
|
3070
3072
|
},
|
|
3071
3073
|
children: [
|
|
3072
3074
|
/* @__PURE__ */ s("span", { className: re.chipLabel, children: x.label }),
|
|
3073
|
-
/* @__PURE__ */ s("span", { className: re.chipX, children:
|
|
3075
|
+
/* @__PURE__ */ s("span", { className: re.chipX, children: j })
|
|
3074
3076
|
]
|
|
3075
3077
|
},
|
|
3076
3078
|
x.value
|
|
@@ -3097,7 +3099,7 @@ function Tu({
|
|
|
3097
3099
|
/* @__PURE__ */ k("span", { ref: $, className: P(re.summary, re.measure), "aria-hidden": "true", children: [
|
|
3098
3100
|
K.map((x) => /* @__PURE__ */ k("span", { className: re.chip, children: [
|
|
3099
3101
|
/* @__PURE__ */ s("span", { className: re.chipLabel, children: x.label }),
|
|
3100
|
-
/* @__PURE__ */ s("span", { className: re.chipX, children:
|
|
3102
|
+
/* @__PURE__ */ s("span", { className: re.chipX, children: j })
|
|
3101
3103
|
] }, x.value)),
|
|
3102
3104
|
/* @__PURE__ */ k("span", { className: re.counter, children: [
|
|
3103
3105
|
"+",
|
|
@@ -3114,7 +3116,7 @@ function Tu({
|
|
|
3114
3116
|
disabled: a,
|
|
3115
3117
|
"aria-haspopup": "dialog",
|
|
3116
3118
|
"aria-expanded": m,
|
|
3117
|
-
"aria-controls": m ?
|
|
3119
|
+
"aria-controls": m ? O : void 0,
|
|
3118
3120
|
"aria-describedby": l == null ? void 0 : l.describedBy,
|
|
3119
3121
|
"aria-invalid": f || void 0,
|
|
3120
3122
|
className: P(re.main, t.length === 0 && re.mainEmpty),
|
|
@@ -3123,7 +3125,7 @@ function Tu({
|
|
|
3123
3125
|
},
|
|
3124
3126
|
children: [
|
|
3125
3127
|
t.length === 0 && /* @__PURE__ */ s("span", { className: re.placeholder, children: u }),
|
|
3126
|
-
/* @__PURE__ */ s(
|
|
3128
|
+
/* @__PURE__ */ s(St, { className: re.chevron })
|
|
3127
3129
|
]
|
|
3128
3130
|
}
|
|
3129
3131
|
)
|
|
@@ -3143,11 +3145,11 @@ function Tu({
|
|
|
3143
3145
|
minWidth: 260,
|
|
3144
3146
|
role: "dialog",
|
|
3145
3147
|
ariaLabel: u,
|
|
3146
|
-
id:
|
|
3148
|
+
id: O,
|
|
3147
3149
|
className: re.panel,
|
|
3148
3150
|
children: /* @__PURE__ */ k("div", { ref: C, children: [
|
|
3149
3151
|
/* @__PURE__ */ s(
|
|
3150
|
-
|
|
3152
|
+
Vn,
|
|
3151
3153
|
{
|
|
3152
3154
|
ref: E,
|
|
3153
3155
|
size: "sm",
|
|
@@ -3201,8 +3203,8 @@ function Tu({
|
|
|
3201
3203
|
role: "group",
|
|
3202
3204
|
"aria-label": d.options,
|
|
3203
3205
|
onKeyDown: ke,
|
|
3204
|
-
children: S.length === 0 ? /* @__PURE__ */ s("div", { className: re.empty, children: g === "selected" &&
|
|
3205
|
-
|
|
3206
|
+
children: S.length === 0 ? /* @__PURE__ */ s("div", { className: re.empty, children: g === "selected" && G.length === 0 ? d.nothingSelected : h }) : S.map((x) => /* @__PURE__ */ s(
|
|
3207
|
+
tn,
|
|
3206
3208
|
{
|
|
3207
3209
|
className: re.option,
|
|
3208
3210
|
label: x.label,
|
|
@@ -3219,18 +3221,18 @@ function Tu({
|
|
|
3219
3221
|
)
|
|
3220
3222
|
] });
|
|
3221
3223
|
}
|
|
3222
|
-
const
|
|
3223
|
-
group:
|
|
3224
|
-
horizontal:
|
|
3225
|
-
option:
|
|
3226
|
-
disabled:
|
|
3227
|
-
input:
|
|
3228
|
-
dot:
|
|
3229
|
-
texts:
|
|
3230
|
-
label:
|
|
3231
|
-
description:
|
|
3232
|
-
sm:
|
|
3233
|
-
},
|
|
3224
|
+
const Sc = "_group_4y2h4_8 _text_1hv7a_23", Mc = "_horizontal_4y2h4_15", Cc = "_option_4y2h4_21", Ac = "_disabled_4y2h4_28", Lc = "_input_4y2h4_35", Rc = "_dot_4y2h4_44", Pc = "_texts_4y2h4_100", Ec = "_label_4y2h4_107", Fc = "_description_4y2h4_115", Ic = "_sm_4y2h4_124", qe = {
|
|
3225
|
+
group: Sc,
|
|
3226
|
+
horizontal: Mc,
|
|
3227
|
+
option: Cc,
|
|
3228
|
+
disabled: Ac,
|
|
3229
|
+
input: Lc,
|
|
3230
|
+
dot: Rc,
|
|
3231
|
+
texts: Pc,
|
|
3232
|
+
label: Ec,
|
|
3233
|
+
description: Fc,
|
|
3234
|
+
sm: Ic
|
|
3235
|
+
}, Cu = ie(function({
|
|
3234
3236
|
options: t,
|
|
3235
3237
|
value: n,
|
|
3236
3238
|
defaultValue: r,
|
|
@@ -3246,16 +3248,16 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3246
3248
|
const f = Be(), m = De(), y = l ?? (f == null ? void 0 : f.id) ?? m, b = R(null), v = n !== void 0, g = t.filter((D) => !D.disabled && !c), N = (D) => {
|
|
3247
3249
|
o == null || o(D.value);
|
|
3248
3250
|
}, L = (D) => {
|
|
3249
|
-
var
|
|
3251
|
+
var G, S, X, H;
|
|
3250
3252
|
if (u == null || u(D), D.defaultPrevented) return;
|
|
3251
3253
|
const _ = D.key === "ArrowDown" || D.key === "ArrowRight", E = D.key === "ArrowUp" || D.key === "ArrowLeft";
|
|
3252
3254
|
if (!_ && !E || g.length === 0) return;
|
|
3253
3255
|
D.preventDefault();
|
|
3254
|
-
const w = (v ? n : (S = (
|
|
3256
|
+
const w = (v ? n : (S = (G = b.current) == null ? void 0 : G.querySelector("input:checked")) == null ? void 0 : S.value) ?? null, O = g.findIndex((Y) => Y.value === w), V = O === -1 ? 0 : (O + (_ ? 1 : -1) + g.length) % g.length, U = g[V];
|
|
3255
3257
|
if (!U) return;
|
|
3256
|
-
(
|
|
3258
|
+
(H = Array.from(
|
|
3257
3259
|
((X = b.current) == null ? void 0 : X.querySelectorAll('input[type="radio"]')) ?? []
|
|
3258
|
-
).find((Y) => Y.value === U.value)) == null ||
|
|
3260
|
+
).find((Y) => Y.value === U.value)) == null || H.focus(), N(U);
|
|
3259
3261
|
}, F = (D) => {
|
|
3260
3262
|
var E;
|
|
3261
3263
|
return v ? D.disabled || c ? -1 : n === D.value || !g.some((w) => w.value === n) && ((E = g[0]) == null ? void 0 : E.value) === D.value ? 0 : -1 : void 0;
|
|
@@ -3314,15 +3316,15 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3314
3316
|
})
|
|
3315
3317
|
}
|
|
3316
3318
|
);
|
|
3317
|
-
}),
|
|
3318
|
-
wrapper:
|
|
3319
|
-
select:
|
|
3320
|
-
sm:
|
|
3321
|
-
invalid:
|
|
3322
|
-
chevron:
|
|
3323
|
-
selectClearable:
|
|
3324
|
-
clear:
|
|
3325
|
-
},
|
|
3319
|
+
}), Bc = "_wrapper_19yjk_4 _text_1hv7a_23", zc = "_select_19yjk_11 _field_1hv7a_34", Oc = "_sm_19yjk_57", Hc = "_invalid_19yjk_63", qc = "_chevron_19yjk_72", Wc = "_selectClearable_19yjk_84", Gc = "_clear_19yjk_89", rt = {
|
|
3320
|
+
wrapper: Bc,
|
|
3321
|
+
select: zc,
|
|
3322
|
+
sm: Oc,
|
|
3323
|
+
invalid: Hc,
|
|
3324
|
+
chevron: qc,
|
|
3325
|
+
selectClearable: Wc,
|
|
3326
|
+
clear: Gc
|
|
3327
|
+
}, Au = ie(function({ selectSize: t = "md", invalid: n, clearable: r = !1, onClear: o, className: i, id: a, children: c, disabled: l, ...d }, u) {
|
|
3326
3328
|
const p = Be(), h = ce(), f = n ?? (p == null ? void 0 : p.invalid) ?? !1, m = r && !d.multiple && String(d.value ?? "") !== "";
|
|
3327
3329
|
return /* @__PURE__ */ k("span", { className: P(rt.wrapper, i), children: [
|
|
3328
3330
|
/* @__PURE__ */ s(
|
|
@@ -3356,36 +3358,36 @@ const Dc = "_group_4y2h4_8 _text_1hv7a_23", Tc = "_horizontal_4y2h4_15", Sc = "_
|
|
|
3356
3358
|
children: /* @__PURE__ */ s(Ue, {})
|
|
3357
3359
|
}
|
|
3358
3360
|
),
|
|
3359
|
-
/* @__PURE__ */ s(
|
|
3361
|
+
/* @__PURE__ */ s(St, { className: rt.chevron })
|
|
3360
3362
|
] });
|
|
3361
|
-
}),
|
|
3362
|
-
skeleton:
|
|
3363
|
-
circle:
|
|
3363
|
+
}), jc = "_skeleton_6mkat_4", Vc = "_circle_6mkat_19", gn = {
|
|
3364
|
+
skeleton: jc,
|
|
3365
|
+
circle: Vc
|
|
3364
3366
|
};
|
|
3365
|
-
function
|
|
3367
|
+
function Lu({ width: e, height: t, circle: n = !1, className: r, style: o, ...i }) {
|
|
3366
3368
|
return /* @__PURE__ */ s(
|
|
3367
3369
|
"span",
|
|
3368
3370
|
{
|
|
3369
3371
|
"aria-hidden": "true",
|
|
3370
|
-
className: P(
|
|
3372
|
+
className: P(gn.skeleton, n && gn.circle, r),
|
|
3371
3373
|
style: { width: e, height: t, ...o },
|
|
3372
3374
|
...i
|
|
3373
3375
|
}
|
|
3374
3376
|
);
|
|
3375
3377
|
}
|
|
3376
|
-
const
|
|
3377
|
-
group:
|
|
3378
|
-
tag:
|
|
3379
|
-
removable:
|
|
3380
|
-
disabled:
|
|
3381
|
-
text:
|
|
3382
|
-
neutral:
|
|
3383
|
-
accent:
|
|
3384
|
-
success:
|
|
3385
|
-
warning:
|
|
3386
|
-
danger:
|
|
3387
|
-
remove:
|
|
3388
|
-
},
|
|
3378
|
+
const Uc = "_group_13w8u_7", Yc = "_tag_13w8u_16 _text_1hv7a_23", Kc = "_removable_13w8u_31", Xc = "_disabled_13w8u_41", Qc = "_text_13w8u_45", Zc = "_neutral_13w8u_52", Jc = "_accent_13w8u_57", el = "_success_13w8u_62", tl = "_warning_13w8u_67", nl = "_danger_13w8u_72", rl = "_remove_13w8u_79", st = {
|
|
3379
|
+
group: Uc,
|
|
3380
|
+
tag: Yc,
|
|
3381
|
+
removable: Kc,
|
|
3382
|
+
disabled: Xc,
|
|
3383
|
+
text: Qc,
|
|
3384
|
+
neutral: Zc,
|
|
3385
|
+
accent: Jc,
|
|
3386
|
+
success: el,
|
|
3387
|
+
warning: tl,
|
|
3388
|
+
danger: nl,
|
|
3389
|
+
remove: rl
|
|
3390
|
+
}, Qn = je(!1), Ru = ie(function({ className: t, children: n, onKeyDown: r, onFocus: o, ...i }, a) {
|
|
3389
3391
|
const c = R(null), l = Q(
|
|
3390
3392
|
() => {
|
|
3391
3393
|
var h;
|
|
@@ -3430,11 +3432,11 @@ const Gc = "_group_13w8u_7", Vc = "_tag_13w8u_16 _text_1hv7a_23", Uc = "_removab
|
|
|
3430
3432
|
onKeyDown: p,
|
|
3431
3433
|
onFocus: u,
|
|
3432
3434
|
...i,
|
|
3433
|
-
children: /* @__PURE__ */ s(
|
|
3435
|
+
children: /* @__PURE__ */ s(Qn.Provider, { value: !0, children: n })
|
|
3434
3436
|
}
|
|
3435
3437
|
);
|
|
3436
|
-
}),
|
|
3437
|
-
const u =
|
|
3438
|
+
}), Pu = ie(function({ tone: t = "neutral", children: n, onRemove: r, removeLabel: o, disabled: i = !1, className: a, onKeyDown: c, ...l }, d) {
|
|
3439
|
+
const u = He(Qn), p = ce(), h = !!r && !i, f = o ?? (typeof n == "string" ? p.removeTag(n) : p.remove), m = (b) => {
|
|
3438
3440
|
if (!b) {
|
|
3439
3441
|
r == null || r();
|
|
3440
3442
|
return;
|
|
@@ -3479,24 +3481,24 @@ const Gc = "_group_13w8u_7", Vc = "_tag_13w8u_16 _text_1hv7a_23", Uc = "_removab
|
|
|
3479
3481
|
]
|
|
3480
3482
|
}
|
|
3481
3483
|
);
|
|
3482
|
-
}),
|
|
3483
|
-
list:
|
|
3484
|
-
indicator:
|
|
3485
|
-
tab:
|
|
3486
|
-
panel:
|
|
3487
|
-
},
|
|
3488
|
-
function
|
|
3489
|
-
const t =
|
|
3484
|
+
}), ol = "_list_35isc_4 _text_1hv7a_23", sl = "_indicator_35isc_13", il = "_tab_35isc_24 _ring_1hv7a_65", al = "_panel_35isc_55 _text_1hv7a_23 _ring_1hv7a_65", Tt = {
|
|
3485
|
+
list: ol,
|
|
3486
|
+
indicator: sl,
|
|
3487
|
+
tab: il,
|
|
3488
|
+
panel: al
|
|
3489
|
+
}, Zn = je(null);
|
|
3490
|
+
function sn(e) {
|
|
3491
|
+
const t = He(Zn);
|
|
3490
3492
|
if (!t)
|
|
3491
3493
|
throw new Error(`${e} must be used inside <Tabs>.`);
|
|
3492
3494
|
return t;
|
|
3493
3495
|
}
|
|
3494
|
-
function
|
|
3496
|
+
function Eu({ value: e, onChange: t, className: n, children: r, ...o }) {
|
|
3495
3497
|
const i = De();
|
|
3496
|
-
return /* @__PURE__ */ s("div", { className: n, ...o, children: /* @__PURE__ */ s(
|
|
3498
|
+
return /* @__PURE__ */ s("div", { className: n, ...o, children: /* @__PURE__ */ s(Zn.Provider, { value: { value: e, onChange: t, idBase: i }, children: r }) });
|
|
3497
3499
|
}
|
|
3498
|
-
function
|
|
3499
|
-
const o =
|
|
3500
|
+
function Fu({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
3501
|
+
const o = sn("TabList"), i = R(null), [a, c] = B(null), l = Q(() => {
|
|
3500
3502
|
const u = i.current;
|
|
3501
3503
|
if (!u) return;
|
|
3502
3504
|
const p = u.querySelector('[role="tab"][aria-selected="true"]');
|
|
@@ -3506,7 +3508,7 @@ function Pu({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
|
3506
3508
|
}
|
|
3507
3509
|
c({ left: p.offsetLeft, width: p.offsetWidth });
|
|
3508
3510
|
}, []);
|
|
3509
|
-
|
|
3511
|
+
Oe(() => {
|
|
3510
3512
|
l();
|
|
3511
3513
|
}, [l, o.value]), ne(() => {
|
|
3512
3514
|
var p;
|
|
@@ -3542,8 +3544,8 @@ function Pu({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
|
3542
3544
|
)
|
|
3543
3545
|
] });
|
|
3544
3546
|
}
|
|
3545
|
-
function
|
|
3546
|
-
const i =
|
|
3547
|
+
function Iu({ value: e, className: t, children: n, onClick: r, ...o }) {
|
|
3548
|
+
const i = sn("Tab"), a = i.value === e;
|
|
3547
3549
|
return /* @__PURE__ */ s(
|
|
3548
3550
|
"button",
|
|
3549
3551
|
{
|
|
@@ -3562,8 +3564,8 @@ function Eu({ value: e, className: t, children: n, onClick: r, ...o }) {
|
|
|
3562
3564
|
}
|
|
3563
3565
|
);
|
|
3564
3566
|
}
|
|
3565
|
-
function
|
|
3566
|
-
const o =
|
|
3567
|
+
function Bu({ value: e, className: t, children: n, ...r }) {
|
|
3568
|
+
const o = sn("TabPanel");
|
|
3567
3569
|
return o.value !== e ? null : /* @__PURE__ */ s(
|
|
3568
3570
|
"div",
|
|
3569
3571
|
{
|
|
@@ -3577,14 +3579,14 @@ function Fu({ value: e, className: t, children: n, ...r }) {
|
|
|
3577
3579
|
}
|
|
3578
3580
|
);
|
|
3579
3581
|
}
|
|
3580
|
-
const
|
|
3581
|
-
textarea:
|
|
3582
|
-
sm:
|
|
3583
|
-
invalid:
|
|
3584
|
-
wrapper:
|
|
3585
|
-
count:
|
|
3586
|
-
countOver:
|
|
3587
|
-
},
|
|
3582
|
+
const cl = (e, t) => t === void 0 ? void 0 : t - e.length, ll = (e, t, n) => !n || !t ? e : Math.min(e, t * n), dl = "_textarea_mutkx_7 _field_1hv7a_34", ul = "_sm_mutkx_44", hl = "_invalid_mutkx_51", fl = "_wrapper_mutkx_63 _text_1hv7a_23", pl = "_count_mutkx_76", ml = "_countOver_mutkx_90", ht = {
|
|
3583
|
+
textarea: dl,
|
|
3584
|
+
sm: ul,
|
|
3585
|
+
invalid: hl,
|
|
3586
|
+
wrapper: fl,
|
|
3587
|
+
count: pl,
|
|
3588
|
+
countOver: ml
|
|
3589
|
+
}, zu = ie(function({
|
|
3588
3590
|
size: t = "md",
|
|
3589
3591
|
invalid: n,
|
|
3590
3592
|
autoGrow: r = !1,
|
|
@@ -3599,25 +3601,25 @@ const il = (e, t) => t === void 0 ? void 0 : t - e.length, al = (e, t, n) => !n
|
|
|
3599
3601
|
...h
|
|
3600
3602
|
}, f) {
|
|
3601
3603
|
const m = Be(), y = n ?? (m == null ? void 0 : m.invalid) ?? !1, b = R(null);
|
|
3602
|
-
|
|
3604
|
+
Vt(f, () => b.current);
|
|
3603
3605
|
const v = Q(() => {
|
|
3604
3606
|
const w = b.current;
|
|
3605
3607
|
if (!w || !r) return;
|
|
3606
3608
|
w.style.height = "auto";
|
|
3607
|
-
const
|
|
3608
|
-
w.style.height = `${
|
|
3609
|
+
const O = Number.parseFloat(getComputedStyle(w).lineHeight) || 0;
|
|
3610
|
+
w.style.height = `${ll(w.scrollHeight, O, o)}px`, w.style.overflowY = o && w.scrollHeight > w.clientHeight ? "auto" : "hidden";
|
|
3609
3611
|
}, [r, o]);
|
|
3610
|
-
|
|
3611
|
-
var
|
|
3612
|
+
Oe(v, [v, h.value, h.defaultValue]), ne(() => {
|
|
3613
|
+
var O;
|
|
3612
3614
|
if (!r) return;
|
|
3613
3615
|
let w = !1;
|
|
3614
|
-
return (
|
|
3616
|
+
return (O = document.fonts) == null || O.ready.then(() => {
|
|
3615
3617
|
w || v();
|
|
3616
3618
|
}), () => {
|
|
3617
3619
|
w = !0;
|
|
3618
3620
|
};
|
|
3619
3621
|
}, [r, v]);
|
|
3620
|
-
const [g, N] = B(() => String(h.defaultValue ?? "")), L = h.value !== void 0, F = L ? String(h.value ?? "") : g, D =
|
|
3622
|
+
const [g, N] = B(() => String(h.defaultValue ?? "")), L = h.value !== void 0, F = L ? String(h.value ?? "") : g, D = cl(F, h.maxLength), _ = i && D !== void 0, E = /* @__PURE__ */ s(
|
|
3621
3623
|
"textarea",
|
|
3622
3624
|
{
|
|
3623
3625
|
ref: b,
|
|
@@ -3651,31 +3653,31 @@ const il = (e, t) => t === void 0 ? void 0 : t - e.length, al = (e, t, n) => !n
|
|
|
3651
3653
|
}
|
|
3652
3654
|
)
|
|
3653
3655
|
] }) : E;
|
|
3654
|
-
}),
|
|
3655
|
-
region:
|
|
3656
|
-
live:
|
|
3657
|
-
itemWrap:
|
|
3658
|
-
itemWrapLeaving:
|
|
3659
|
-
itemInner:
|
|
3660
|
-
toast:
|
|
3661
|
-
icon:
|
|
3662
|
-
neutral:
|
|
3663
|
-
success:
|
|
3664
|
-
warning:
|
|
3665
|
-
danger:
|
|
3666
|
-
text:
|
|
3667
|
-
title:
|
|
3668
|
-
descriptionText:
|
|
3669
|
-
close:
|
|
3670
|
-
toastIn:
|
|
3671
|
-
},
|
|
3672
|
-
function
|
|
3673
|
-
const e =
|
|
3656
|
+
}), _l = "_region_bxght_4 _text_1hv7a_23", gl = "_live_bxght_17", vl = "_itemWrap_bxght_26", yl = "_itemWrapLeaving_bxght_32", bl = "_itemInner_bxght_36", wl = "_toast_bxght_46", kl = "_icon_bxght_80", xl = "_neutral_bxght_91", Nl = "_success_bxght_96", $l = "_warning_bxght_101", Dl = "_danger_bxght_106", Tl = "_text_bxght_111", Sl = "_title_bxght_120", Ml = "_descriptionText_bxght_128", Cl = "_close_bxght_135 _ring_1hv7a_65", Al = "_toastIn_bxght_1", Le = {
|
|
3657
|
+
region: _l,
|
|
3658
|
+
live: gl,
|
|
3659
|
+
itemWrap: vl,
|
|
3660
|
+
itemWrapLeaving: yl,
|
|
3661
|
+
itemInner: bl,
|
|
3662
|
+
toast: wl,
|
|
3663
|
+
icon: kl,
|
|
3664
|
+
neutral: xl,
|
|
3665
|
+
success: Nl,
|
|
3666
|
+
warning: $l,
|
|
3667
|
+
danger: Dl,
|
|
3668
|
+
text: Tl,
|
|
3669
|
+
title: Sl,
|
|
3670
|
+
descriptionText: Ml,
|
|
3671
|
+
close: Cl,
|
|
3672
|
+
toastIn: Al
|
|
3673
|
+
}, Ll = { "--_origin": Kt("top", "end") }, Jn = je(null);
|
|
3674
|
+
function Ou() {
|
|
3675
|
+
const e = He(Jn);
|
|
3674
3676
|
if (!e)
|
|
3675
3677
|
throw new Error("useToast requires a <ToastProvider> around the application.");
|
|
3676
3678
|
return e;
|
|
3677
3679
|
}
|
|
3678
|
-
function
|
|
3680
|
+
function Rl({ tone: e }) {
|
|
3679
3681
|
return /* @__PURE__ */ s("span", { className: P(Le.icon, Le[e]), "aria-hidden": "true", children: /* @__PURE__ */ k("svg", { viewBox: "0 0 10 10", width: "12", height: "12", "aria-hidden": "true", children: [
|
|
3680
3682
|
e === "success" && /* @__PURE__ */ s("path", { d: "M2.2 5.3 4.2 7.3l3.6-4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
3681
3683
|
e === "danger" && /* @__PURE__ */ s("path", { d: "M3 3l4 4M7 3 3 7", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
@@ -3683,7 +3685,7 @@ function Al({ tone: e }) {
|
|
|
3683
3685
|
e === "neutral" && /* @__PURE__ */ s("path", { d: "M5 2.4v0M5 4.4v3.3", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" })
|
|
3684
3686
|
] }) });
|
|
3685
3687
|
}
|
|
3686
|
-
function
|
|
3688
|
+
function Hu({ children: e }) {
|
|
3687
3689
|
const t = Zr().duration ?? 5e3, [n, r] = B([]), o = R(1), i = R(/* @__PURE__ */ new Map()), a = R(null), c = Q((v) => {
|
|
3688
3690
|
r((g) => g.filter((N) => N.id !== v)), i.current.delete(v);
|
|
3689
3691
|
}, []), l = Q(
|
|
@@ -3691,7 +3693,7 @@ function Ou({ children: e }) {
|
|
|
3691
3693
|
const g = i.current.get(v);
|
|
3692
3694
|
g != null && g.timeout && clearTimeout(g.timeout);
|
|
3693
3695
|
const N = a.current, L = N === null ? 0 : yt(getComputedStyle(N), "--u-duration-exit-collapse");
|
|
3694
|
-
if (
|
|
3696
|
+
if (Mt() || L <= 0) {
|
|
3695
3697
|
c(v);
|
|
3696
3698
|
return;
|
|
3697
3699
|
}
|
|
@@ -3741,7 +3743,7 @@ function Ou({ children: e }) {
|
|
|
3741
3743
|
}), v.clear();
|
|
3742
3744
|
};
|
|
3743
3745
|
}, []);
|
|
3744
|
-
const f = se(() => ({ toast: u, dismiss: l }), [u, l]), m = ce(), y =
|
|
3746
|
+
const f = se(() => ({ toast: u, dismiss: l }), [u, l]), m = ce(), y = Zt(), b = (v) => {
|
|
3745
3747
|
const g = v.tone ?? "neutral";
|
|
3746
3748
|
return /* @__PURE__ */ s(
|
|
3747
3749
|
"div",
|
|
@@ -3755,7 +3757,7 @@ function Ou({ children: e }) {
|
|
|
3755
3757
|
onPointerEnter: () => p(v.id),
|
|
3756
3758
|
onPointerLeave: () => h(v.id),
|
|
3757
3759
|
children: [
|
|
3758
|
-
/* @__PURE__ */ s(
|
|
3760
|
+
/* @__PURE__ */ s(Rl, { tone: g }),
|
|
3759
3761
|
/* @__PURE__ */ k("div", { className: Le.text, children: [
|
|
3760
3762
|
/* @__PURE__ */ s("p", { className: Le.title, children: v.title }),
|
|
3761
3763
|
v.description && /* @__PURE__ */ s("p", { className: Le.descriptionText, children: v.description })
|
|
@@ -3777,9 +3779,9 @@ function Ou({ children: e }) {
|
|
|
3777
3779
|
v.id
|
|
3778
3780
|
);
|
|
3779
3781
|
};
|
|
3780
|
-
return /* @__PURE__ */ k(
|
|
3782
|
+
return /* @__PURE__ */ k(Jn.Provider, { value: f, children: [
|
|
3781
3783
|
e,
|
|
3782
|
-
|
|
3784
|
+
Ut(
|
|
3783
3785
|
/* Two live regions that stand before the first message arrives: a
|
|
3784
3786
|
region that comes into the document with its text already in it is
|
|
3785
3787
|
often not read out at all by a screen reader. The message goes into
|
|
@@ -3787,31 +3789,31 @@ function Ou({ children: e }) {
|
|
|
3787
3789
|
(library-audit 03 and its review). Both regions are
|
|
3788
3790
|
`display: contents`, and `order` keeps on screen the order in which
|
|
3789
3791
|
the messages arrived - whatever their tone. */
|
|
3790
|
-
/* @__PURE__ */ k("div", { ref: a, className: Le.region, style:
|
|
3791
|
-
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: Le.live, children: n.filter((v) =>
|
|
3792
|
-
/* @__PURE__ */ s("div", { role: "alert", className: Le.live, children: n.filter((v) =>
|
|
3792
|
+
/* @__PURE__ */ k("div", { ref: a, className: Le.region, style: Ll, children: [
|
|
3793
|
+
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: Le.live, children: n.filter((v) => Bt[v.tone ?? "neutral"].role === "status").map(b) }),
|
|
3794
|
+
/* @__PURE__ */ s("div", { role: "alert", className: Le.live, children: n.filter((v) => Bt[v.tone ?? "neutral"].role === "alert").map(b) })
|
|
3793
3795
|
] }),
|
|
3794
3796
|
y() ?? document.body
|
|
3795
3797
|
)
|
|
3796
3798
|
] });
|
|
3797
3799
|
}
|
|
3798
|
-
const
|
|
3799
|
-
tree:
|
|
3800
|
-
row:
|
|
3801
|
-
active:
|
|
3802
|
-
pathOnly:
|
|
3803
|
-
chevron:
|
|
3804
|
-
chevronOpen:
|
|
3805
|
-
placeholder:
|
|
3806
|
-
emptyDot:
|
|
3807
|
-
check:
|
|
3808
|
-
content:
|
|
3809
|
-
noMatches:
|
|
3810
|
-
scrolls:
|
|
3811
|
-
disabled:
|
|
3812
|
-
loading:
|
|
3813
|
-
},
|
|
3814
|
-
function
|
|
3800
|
+
const Pl = "_tree_14dbz_10 _text_1hv7a_23", El = "_row_14dbz_23", Fl = "_active_14dbz_46", Il = "_pathOnly_14dbz_58", Bl = "_chevron_14dbz_62", zl = "_chevronOpen_14dbz_74", Ol = "_placeholder_14dbz_80", Hl = "_emptyDot_14dbz_86", ql = "_check_14dbz_104", Wl = "_content_14dbz_110", Gl = "_noMatches_14dbz_124", jl = "_scrolls_14dbz_135 _scroll_1hv7a_40", Vl = "_disabled_14dbz_145", Ul = "_loading_14dbz_149", Ae = {
|
|
3801
|
+
tree: Pl,
|
|
3802
|
+
row: El,
|
|
3803
|
+
active: Fl,
|
|
3804
|
+
pathOnly: Il,
|
|
3805
|
+
chevron: Bl,
|
|
3806
|
+
chevronOpen: zl,
|
|
3807
|
+
placeholder: Ol,
|
|
3808
|
+
emptyDot: Hl,
|
|
3809
|
+
check: ql,
|
|
3810
|
+
content: Wl,
|
|
3811
|
+
noMatches: Gl,
|
|
3812
|
+
scrolls: jl,
|
|
3813
|
+
disabled: Vl,
|
|
3814
|
+
loading: Ul
|
|
3815
|
+
}, Yl = 600;
|
|
3816
|
+
function qu({
|
|
3815
3817
|
tree: e,
|
|
3816
3818
|
ariaLabel: t,
|
|
3817
3819
|
checkable: n = !1,
|
|
@@ -3829,9 +3831,9 @@ function Hu({
|
|
|
3829
3831
|
const _ = m.current;
|
|
3830
3832
|
if (_ === null || e.active === null) return;
|
|
3831
3833
|
if (h !== void 0) {
|
|
3832
|
-
const
|
|
3833
|
-
if (
|
|
3834
|
-
h.showRow(
|
|
3834
|
+
const O = e.flattening.findIndex((V) => V.key === e.active);
|
|
3835
|
+
if (O >= 0 && (O < h.from || O >= h.to)) {
|
|
3836
|
+
h.showRow(O);
|
|
3835
3837
|
return;
|
|
3836
3838
|
}
|
|
3837
3839
|
}
|
|
@@ -3890,7 +3892,7 @@ function Hu({
|
|
|
3890
3892
|
if (_.key.length !== 1 || _.ctrlKey || _.metaKey || _.altKey || _.key === " ") return;
|
|
3891
3893
|
g.current !== null && window.clearTimeout(g.current), v.current += _.key, g.current = window.setTimeout(() => {
|
|
3892
3894
|
v.current = "", g.current = null;
|
|
3893
|
-
},
|
|
3895
|
+
}, Yl), e.typeahead(v.current);
|
|
3894
3896
|
break;
|
|
3895
3897
|
}
|
|
3896
3898
|
}
|
|
@@ -3949,7 +3951,7 @@ function Hu({
|
|
|
3949
3951
|
onClick: (w) => {
|
|
3950
3952
|
w.stopPropagation(), e.toggleExpanded(_.key);
|
|
3951
3953
|
},
|
|
3952
|
-
children: /* @__PURE__ */ s(
|
|
3954
|
+
children: /* @__PURE__ */ s(St, {})
|
|
3953
3955
|
}
|
|
3954
3956
|
) : _.empty ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Ae.emptyDot }) : /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Ae.placeholder }),
|
|
3955
3957
|
n ? (
|
|
@@ -3961,7 +3963,7 @@ function Hu({
|
|
|
3961
3963
|
click ran through both paths and toggled twice - in the
|
|
3962
3964
|
browser nothing happened at all. */
|
|
3963
3965
|
/* @__PURE__ */ s("span", { className: Ae.check, onClick: (w) => w.stopPropagation(), children: /* @__PURE__ */ s(
|
|
3964
|
-
|
|
3966
|
+
tn,
|
|
3965
3967
|
{
|
|
3966
3968
|
id: `${p}-check-${Ze(String(_.key))}`,
|
|
3967
3969
|
checked: _.checked,
|
|
@@ -3974,7 +3976,7 @@ function Hu({
|
|
|
3974
3976
|
) })
|
|
3975
3977
|
) : null,
|
|
3976
3978
|
/* @__PURE__ */ s("span", { className: Ae.content, children: r(_) }),
|
|
3977
|
-
_.unloaded && _.expanded ? /* @__PURE__ */ s(
|
|
3979
|
+
_.unloaded && _.expanded ? /* @__PURE__ */ s(Ln, { size: 12, className: Ae.loading }) : null
|
|
3978
3980
|
]
|
|
3979
3981
|
},
|
|
3980
3982
|
String(_.key)
|
|
@@ -3986,14 +3988,14 @@ function Hu({
|
|
|
3986
3988
|
}
|
|
3987
3989
|
);
|
|
3988
3990
|
}
|
|
3989
|
-
function
|
|
3991
|
+
function Wu({
|
|
3990
3992
|
tree: e,
|
|
3991
3993
|
placeholder: t,
|
|
3992
3994
|
...n
|
|
3993
3995
|
}) {
|
|
3994
3996
|
const r = ce();
|
|
3995
3997
|
return /* @__PURE__ */ s(
|
|
3996
|
-
|
|
3998
|
+
Vn,
|
|
3997
3999
|
{
|
|
3998
4000
|
type: "search",
|
|
3999
4001
|
value: e.search,
|
|
@@ -4003,15 +4005,15 @@ function zu({
|
|
|
4003
4005
|
}
|
|
4004
4006
|
);
|
|
4005
4007
|
}
|
|
4006
|
-
const
|
|
4007
|
-
function
|
|
4008
|
+
const Kl = { from: 0, to: 0, before: 0, after: 0 };
|
|
4009
|
+
function Xl({
|
|
4008
4010
|
count: e,
|
|
4009
4011
|
rowHeight: t,
|
|
4010
4012
|
scrollTop: n,
|
|
4011
4013
|
viewportHeight: r,
|
|
4012
4014
|
overscan: o = 4
|
|
4013
4015
|
}) {
|
|
4014
|
-
if (e <= 0 || t <= 0) return
|
|
4016
|
+
if (e <= 0 || t <= 0) return Kl;
|
|
4015
4017
|
const i = Math.max(0, n), a = Math.floor(i / t), c = Math.ceil(Math.max(0, r) / t) + 1, l = Math.max(0, a - o), d = Math.min(e, a + c + o);
|
|
4016
4018
|
return {
|
|
4017
4019
|
from: l,
|
|
@@ -4020,17 +4022,17 @@ function Yl({
|
|
|
4020
4022
|
after: (e - d) * t
|
|
4021
4023
|
};
|
|
4022
4024
|
}
|
|
4023
|
-
function
|
|
4025
|
+
function Ql(e, { rowHeight: t, scrollTop: n, viewportHeight: r, headerHeight: o = 0 }) {
|
|
4024
4026
|
if (t <= 0) return null;
|
|
4025
4027
|
const i = e * t, a = i + t;
|
|
4026
4028
|
return i < n + o ? Math.max(0, i - o) : a > n + r ? Math.max(0, a - r) : null;
|
|
4027
4029
|
}
|
|
4028
|
-
function
|
|
4030
|
+
function Zl(e, t) {
|
|
4029
4031
|
const { rowHeight: n, overscan: r = 4 } = t, o = R(null), [i, a] = B(0), [c, l] = B(0), [d, u] = B(n), p = Q(() => {
|
|
4030
4032
|
const m = o.current;
|
|
4031
4033
|
m && a(m.scrollTop);
|
|
4032
4034
|
}, []);
|
|
4033
|
-
|
|
4035
|
+
Oe(() => {
|
|
4034
4036
|
const m = o.current;
|
|
4035
4037
|
if (!m) return;
|
|
4036
4038
|
const y = () => l(m.clientHeight);
|
|
@@ -4045,11 +4047,11 @@ function Xl(e, t) {
|
|
|
4045
4047
|
const b = y.getBoundingClientRect().height;
|
|
4046
4048
|
b > 0 && Math.abs(b - d) > 0.5 && u(b);
|
|
4047
4049
|
}, [e, c, d]);
|
|
4048
|
-
const h =
|
|
4050
|
+
const h = Xl({ count: e, rowHeight: d, scrollTop: i, viewportHeight: c, overscan: r }), f = Q(
|
|
4049
4051
|
(m) => {
|
|
4050
4052
|
const y = o.current;
|
|
4051
4053
|
if (!y) return;
|
|
4052
|
-
const b = y.querySelector("thead"), v =
|
|
4054
|
+
const b = y.querySelector("thead"), v = Ql(m, {
|
|
4053
4055
|
rowHeight: d,
|
|
4054
4056
|
scrollTop: y.scrollTop,
|
|
4055
4057
|
viewportHeight: y.clientHeight,
|
|
@@ -4074,7 +4076,7 @@ function vt(e, t) {
|
|
|
4074
4076
|
var n, r;
|
|
4075
4077
|
return ((n = e.disabled) == null ? void 0 : n.call(e, t)) !== !0 && ((r = e.unloaded) == null ? void 0 : r.call(e, t)) !== !0;
|
|
4076
4078
|
}
|
|
4077
|
-
function
|
|
4079
|
+
function Jl(e, t, n) {
|
|
4078
4080
|
const r = n.search.trim().toLowerCase(), o = {
|
|
4079
4081
|
indeterminate: /* @__PURE__ */ new Set(),
|
|
4080
4082
|
survives: /* @__PURE__ */ new Set(),
|
|
@@ -4097,8 +4099,8 @@ function Ql(e, t, n) {
|
|
|
4097
4099
|
for (const a of e) i(a);
|
|
4098
4100
|
return o;
|
|
4099
4101
|
}
|
|
4100
|
-
function
|
|
4101
|
-
const r = n.search.trim() !== "", o =
|
|
4102
|
+
function ed(e, t, n) {
|
|
4103
|
+
const r = n.search.trim() !== "", o = Jl(e, t, n), i = [];
|
|
4102
4104
|
function a(c, l, d) {
|
|
4103
4105
|
const u = d ? c : c.filter((p) => !r || o.survives.has(t.key(p)));
|
|
4104
4106
|
u.forEach((p, h) => {
|
|
@@ -4126,56 +4128,56 @@ function Zl(e, t, n) {
|
|
|
4126
4128
|
}
|
|
4127
4129
|
return a(e, 0, !1), i;
|
|
4128
4130
|
}
|
|
4129
|
-
function
|
|
4131
|
+
function er(e, t) {
|
|
4130
4132
|
if (e.expanded.has(t)) return e;
|
|
4131
4133
|
const n = new Set(e.expanded);
|
|
4132
4134
|
return n.add(t), { ...e, expanded: n };
|
|
4133
4135
|
}
|
|
4134
|
-
function
|
|
4136
|
+
function tr(e, t) {
|
|
4135
4137
|
if (!e.expanded.has(t)) return e;
|
|
4136
4138
|
const n = new Set(e.expanded);
|
|
4137
4139
|
return n.delete(t), { ...e, expanded: n };
|
|
4138
4140
|
}
|
|
4139
|
-
function
|
|
4141
|
+
function Ge(e, t) {
|
|
4140
4142
|
return e.active === t ? e : { ...e, active: t };
|
|
4141
4143
|
}
|
|
4142
|
-
function
|
|
4144
|
+
function vn(e, t, n) {
|
|
4143
4145
|
if (e.length === 0) return t;
|
|
4144
4146
|
const r = e[0], o = e[e.length - 1];
|
|
4145
|
-
if (n === "start") return
|
|
4146
|
-
if (n === "end") return
|
|
4147
|
+
if (n === "start") return Ge(t, r.key);
|
|
4148
|
+
if (n === "end") return Ge(t, o.key);
|
|
4147
4149
|
const i = e.findIndex((c) => c.key === t.active);
|
|
4148
|
-
if (i < 0) return
|
|
4150
|
+
if (i < 0) return Ge(t, r.key);
|
|
4149
4151
|
const a = e[i];
|
|
4150
4152
|
switch (n) {
|
|
4151
4153
|
case "down": {
|
|
4152
4154
|
const c = e[i + 1];
|
|
4153
|
-
return c === void 0 ? t :
|
|
4155
|
+
return c === void 0 ? t : Ge(t, c.key);
|
|
4154
4156
|
}
|
|
4155
4157
|
case "up": {
|
|
4156
4158
|
const c = e[i - 1];
|
|
4157
|
-
return c === void 0 ? t :
|
|
4159
|
+
return c === void 0 ? t : Ge(t, c.key);
|
|
4158
4160
|
}
|
|
4159
4161
|
case "in": {
|
|
4160
4162
|
if (!a.branch || a.empty) return t;
|
|
4161
|
-
if (!a.expanded) return
|
|
4163
|
+
if (!a.expanded) return er(t, a.key);
|
|
4162
4164
|
const c = e[i + 1];
|
|
4163
|
-
return c === void 0 ? t :
|
|
4165
|
+
return c === void 0 ? t : Ge(t, c.key);
|
|
4164
4166
|
}
|
|
4165
4167
|
case "out": {
|
|
4166
|
-
if (a.branch && a.expanded) return
|
|
4168
|
+
if (a.branch && a.expanded) return tr(t, a.key);
|
|
4167
4169
|
for (let c = i - 1; c >= 0; c--) {
|
|
4168
4170
|
const l = e[c];
|
|
4169
|
-
if (l.level < a.level) return
|
|
4171
|
+
if (l.level < a.level) return Ge(t, l.key);
|
|
4170
4172
|
}
|
|
4171
4173
|
return t;
|
|
4172
4174
|
}
|
|
4173
4175
|
}
|
|
4174
4176
|
}
|
|
4175
|
-
function
|
|
4177
|
+
function yn(e, t) {
|
|
4176
4178
|
return e.anchor === t ? e : { ...e, anchor: t };
|
|
4177
4179
|
}
|
|
4178
|
-
function
|
|
4180
|
+
function td(e, t, n) {
|
|
4179
4181
|
const r = e.findIndex((l) => l.key === t), o = e.findIndex((l) => l.key === n);
|
|
4180
4182
|
if (r < 0 || o < 0) return [];
|
|
4181
4183
|
const [i, a] = r <= o ? [r, o] : [o, r], c = [];
|
|
@@ -4185,7 +4187,7 @@ function Jl(e, t, n) {
|
|
|
4185
4187
|
}
|
|
4186
4188
|
return c;
|
|
4187
4189
|
}
|
|
4188
|
-
function
|
|
4190
|
+
function nr(e, t) {
|
|
4189
4191
|
const n = { nodes: /* @__PURE__ */ new Map(), parents: /* @__PURE__ */ new Map(), depth: /* @__PURE__ */ new Map() };
|
|
4190
4192
|
function r(o, i, a) {
|
|
4191
4193
|
const c = t.key(o);
|
|
@@ -4195,9 +4197,9 @@ function tr(e, t) {
|
|
|
4195
4197
|
for (const o of e) r(o, null, 0);
|
|
4196
4198
|
return n;
|
|
4197
4199
|
}
|
|
4198
|
-
function
|
|
4200
|
+
function Wt(e, t, n, r, o) {
|
|
4199
4201
|
if (r.length === 0) return n;
|
|
4200
|
-
const i =
|
|
4202
|
+
const i = nr(e, t), a = new Set(n.checked);
|
|
4201
4203
|
function c(h) {
|
|
4202
4204
|
if (vt(t, h)) {
|
|
4203
4205
|
const f = t.key(h);
|
|
@@ -4236,19 +4238,19 @@ function qt(e, t, n, r, o) {
|
|
|
4236
4238
|
}
|
|
4237
4239
|
return { ...n, checked: a };
|
|
4238
4240
|
}
|
|
4239
|
-
function
|
|
4240
|
-
const o =
|
|
4241
|
-
return o.checked.size === n.checked.size && [...o.checked].every((a) => n.checked.has(a)) ?
|
|
4241
|
+
function rr(e, t, n, r) {
|
|
4242
|
+
const o = Wt(e, t, n, r, !0);
|
|
4243
|
+
return o.checked.size === n.checked.size && [...o.checked].every((a) => n.checked.has(a)) ? Wt(e, t, n, r, !1) : o;
|
|
4242
4244
|
}
|
|
4243
|
-
function
|
|
4244
|
-
const r =
|
|
4245
|
+
function nd(e, t, n) {
|
|
4246
|
+
const r = nr(e, t), o = [];
|
|
4245
4247
|
for (const [i, a] of r.nodes) vt(t, a) && o.push(i);
|
|
4246
|
-
return o.length === 0 ? n :
|
|
4248
|
+
return o.length === 0 ? n : rr(e, t, n, o);
|
|
4247
4249
|
}
|
|
4248
|
-
function
|
|
4249
|
-
return
|
|
4250
|
+
function bn(e, t, n, r) {
|
|
4251
|
+
return rr(e, t, n, [r]);
|
|
4250
4252
|
}
|
|
4251
|
-
function
|
|
4253
|
+
function rd(e, t, n) {
|
|
4252
4254
|
const r = t.toLowerCase();
|
|
4253
4255
|
if (r === "" || e.length === 0) return null;
|
|
4254
4256
|
const o = e.findIndex((a) => a.key === n), i = o < 0 ? 0 : r.length === 1 ? o + 1 : o;
|
|
@@ -4258,7 +4260,7 @@ function td(e, t, n) {
|
|
|
4258
4260
|
}
|
|
4259
4261
|
return null;
|
|
4260
4262
|
}
|
|
4261
|
-
function
|
|
4263
|
+
function od(e, t, n) {
|
|
4262
4264
|
function r(o, i) {
|
|
4263
4265
|
const a = t.key(o);
|
|
4264
4266
|
if (i.push(a), a === n) return i;
|
|
@@ -4274,7 +4276,7 @@ function nd(e, t, n) {
|
|
|
4274
4276
|
}
|
|
4275
4277
|
return null;
|
|
4276
4278
|
}
|
|
4277
|
-
function
|
|
4279
|
+
function sd(e, t, n, r) {
|
|
4278
4280
|
var c, l;
|
|
4279
4281
|
let o = e, i = null;
|
|
4280
4282
|
const a = new Set(n.expanded);
|
|
@@ -4287,7 +4289,7 @@ function rd(e, t, n, r) {
|
|
|
4287
4289
|
}
|
|
4288
4290
|
return i === null ? { snapshot: n, reached: null } : { snapshot: { ...n, expanded: a }, reached: i };
|
|
4289
4291
|
}
|
|
4290
|
-
function
|
|
4292
|
+
function id(e, t) {
|
|
4291
4293
|
const n = [];
|
|
4292
4294
|
function r(o) {
|
|
4293
4295
|
var a;
|
|
@@ -4298,7 +4300,7 @@ function od(e, t) {
|
|
|
4298
4300
|
for (const o of e) r(o);
|
|
4299
4301
|
return n;
|
|
4300
4302
|
}
|
|
4301
|
-
function
|
|
4303
|
+
function Gu(e, t) {
|
|
4302
4304
|
const n = /* @__PURE__ */ new Set();
|
|
4303
4305
|
let r = null;
|
|
4304
4306
|
function o(i) {
|
|
@@ -4314,7 +4316,7 @@ function qu(e, t) {
|
|
|
4314
4316
|
for (const i of e) o(i);
|
|
4315
4317
|
return r;
|
|
4316
4318
|
}
|
|
4317
|
-
function
|
|
4319
|
+
function ju(e, t) {
|
|
4318
4320
|
const {
|
|
4319
4321
|
reader: n,
|
|
4320
4322
|
defaultExpanded: r,
|
|
@@ -4337,7 +4339,7 @@ function Wu(e, t) {
|
|
|
4337
4339
|
() => new Set(r ?? [])
|
|
4338
4340
|
), [F, D] = B(
|
|
4339
4341
|
() => new Set(o ?? [])
|
|
4340
|
-
), [_, E] = B(i), [w,
|
|
4342
|
+
), [_, E] = B(i), [w, O] = B(null), [V, U] = B(""), [C, G] = B(0), S = se(
|
|
4341
4343
|
() => ({
|
|
4342
4344
|
expanded: a ?? N,
|
|
4343
4345
|
checked: c ?? F,
|
|
@@ -4358,14 +4360,14 @@ function Wu(e, t) {
|
|
|
4358
4360
|
V
|
|
4359
4361
|
]
|
|
4360
4362
|
), X = se(
|
|
4361
|
-
() =>
|
|
4363
|
+
() => ed(e, n, S),
|
|
4362
4364
|
[e, n, S]
|
|
4363
4365
|
);
|
|
4364
4366
|
ne(() => {
|
|
4365
4367
|
}, [e, n]);
|
|
4366
|
-
const
|
|
4368
|
+
const H = Q(
|
|
4367
4369
|
(M) => {
|
|
4368
|
-
M.expanded !== S.expanded && (a === void 0 && L(M.expanded), p == null || p(M.expanded)), M.checked !== S.checked && (c === void 0 && D(M.checked), h == null || h(M.checked)), M.anchor !== S.anchor && (d === void 0 &&
|
|
4370
|
+
M.expanded !== S.expanded && (a === void 0 && L(M.expanded), p == null || p(M.expanded)), M.checked !== S.checked && (c === void 0 && D(M.checked), h == null || h(M.checked)), M.anchor !== S.anchor && (d === void 0 && O(M.anchor), m == null || m(M.anchor)), M.active !== S.active && (l === void 0 && E(M.active), f == null || f(M.active));
|
|
4369
4371
|
},
|
|
4370
4372
|
[
|
|
4371
4373
|
S,
|
|
@@ -4379,85 +4381,85 @@ function Wu(e, t) {
|
|
|
4379
4381
|
m
|
|
4380
4382
|
]
|
|
4381
4383
|
), Y = Q(
|
|
4382
|
-
(M) => X.find((
|
|
4384
|
+
(M) => X.find((j) => j.key === M),
|
|
4383
4385
|
[X]
|
|
4384
4386
|
), pe = Q(
|
|
4385
4387
|
(M) => {
|
|
4386
|
-
const
|
|
4387
|
-
if (
|
|
4388
|
-
const x = !
|
|
4389
|
-
|
|
4388
|
+
const j = Y(M);
|
|
4389
|
+
if (j === void 0 || !j.branch || j.empty) return;
|
|
4390
|
+
const x = !j.expanded;
|
|
4391
|
+
H(x ? er(S, M) : tr(S, M)), x && j.unloaded && (v == null || v(j.node));
|
|
4390
4392
|
},
|
|
4391
|
-
[Y, S,
|
|
4393
|
+
[Y, S, H, v]
|
|
4392
4394
|
), A = Q(
|
|
4393
4395
|
(M) => {
|
|
4394
|
-
|
|
4396
|
+
H(yn(bn(e, n, S, M), M));
|
|
4395
4397
|
},
|
|
4396
|
-
[e, n, S,
|
|
4398
|
+
[e, n, S, H]
|
|
4397
4399
|
), I = Q(
|
|
4398
4400
|
(M) => {
|
|
4399
|
-
const
|
|
4400
|
-
|
|
4401
|
+
const j = S.anchor ?? S.active;
|
|
4402
|
+
j !== null && H(Wt(e, n, S, td(X, j, M), !0));
|
|
4401
4403
|
},
|
|
4402
|
-
[e, n, S, X,
|
|
4404
|
+
[e, n, S, X, H]
|
|
4403
4405
|
), q = Q(
|
|
4404
4406
|
(M) => {
|
|
4405
|
-
const
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4407
|
+
const j = vn(X, S, M);
|
|
4408
|
+
j.active === null || j.active === S.active || H(
|
|
4409
|
+
yn(
|
|
4410
|
+
bn(e, n, j, j.active),
|
|
4411
|
+
j.active
|
|
4410
4412
|
)
|
|
4411
4413
|
);
|
|
4412
4414
|
},
|
|
4413
|
-
[X, S, e, n,
|
|
4415
|
+
[X, S, e, n, H]
|
|
4414
4416
|
), te = Q(
|
|
4415
|
-
() =>
|
|
4416
|
-
[e, n, S,
|
|
4417
|
+
() => H(nd(e, n, S)),
|
|
4418
|
+
[e, n, S, H]
|
|
4417
4419
|
), ke = Q(
|
|
4418
4420
|
(M) => {
|
|
4419
|
-
|
|
4420
|
-
const
|
|
4421
|
-
|
|
4421
|
+
H(Ge(S, M));
|
|
4422
|
+
const j = Y(M);
|
|
4423
|
+
j !== void 0 && (b == null || b(j.node));
|
|
4422
4424
|
},
|
|
4423
|
-
[S,
|
|
4425
|
+
[S, H, Y, b]
|
|
4424
4426
|
), Ee = Q(
|
|
4425
|
-
(M) =>
|
|
4426
|
-
[X, S,
|
|
4427
|
+
(M) => H(vn(X, S, M)),
|
|
4428
|
+
[X, S, H]
|
|
4427
4429
|
), oe = Q(
|
|
4428
4430
|
(M) => {
|
|
4429
|
-
const { snapshot:
|
|
4430
|
-
return x === null ? null : (
|
|
4431
|
+
const { snapshot: j, reached: x } = sd(e, n, S, M);
|
|
4432
|
+
return x === null ? null : (H(Ge(j, x)), G((W) => W + 1), x);
|
|
4431
4433
|
},
|
|
4432
|
-
[e, n, S,
|
|
4434
|
+
[e, n, S, H]
|
|
4433
4435
|
), K = Q(
|
|
4434
4436
|
(M) => {
|
|
4435
|
-
const
|
|
4436
|
-
return
|
|
4437
|
+
const j = od(e, n, M);
|
|
4438
|
+
return j === null ? null : oe(j);
|
|
4437
4439
|
},
|
|
4438
4440
|
[e, n, oe]
|
|
4439
4441
|
), _e = Q(() => {
|
|
4440
|
-
|
|
4441
|
-
}, [e, n, S,
|
|
4442
|
-
|
|
4443
|
-
}, [S,
|
|
4442
|
+
H({ ...S, expanded: new Set(id(e, n)) });
|
|
4443
|
+
}, [e, n, S, H]), ye = Q(() => {
|
|
4444
|
+
H({ ...S, expanded: /* @__PURE__ */ new Set() });
|
|
4445
|
+
}, [S, H]), xe = Q(
|
|
4444
4446
|
(M) => {
|
|
4445
|
-
const
|
|
4446
|
-
|
|
4447
|
+
const j = rd(X, M, S.active);
|
|
4448
|
+
j !== null && H(Ge(S, j));
|
|
4447
4449
|
},
|
|
4448
|
-
[X, S,
|
|
4450
|
+
[X, S, H]
|
|
4449
4451
|
), $ = Q(
|
|
4450
4452
|
(M) => {
|
|
4451
4453
|
u === void 0 && U(M), y == null || y(M);
|
|
4452
4454
|
},
|
|
4453
4455
|
[u, y]
|
|
4454
|
-
),
|
|
4456
|
+
), z = Zl(g ? X.length : 0, {
|
|
4455
4457
|
rowHeight: (g == null ? void 0 : g.rowHeight) ?? 0,
|
|
4456
4458
|
overscan: g == null ? void 0 : g.overscan
|
|
4457
4459
|
});
|
|
4458
4460
|
return {
|
|
4459
4461
|
flattening: X,
|
|
4460
|
-
virtual: g ?
|
|
4462
|
+
virtual: g ? z : void 0,
|
|
4461
4463
|
active: S.active,
|
|
4462
4464
|
search: S.search,
|
|
4463
4465
|
toggleExpanded: pe,
|
|
@@ -4476,9 +4478,9 @@ function Wu(e, t) {
|
|
|
4476
4478
|
toggleAll: te
|
|
4477
4479
|
};
|
|
4478
4480
|
}
|
|
4479
|
-
const
|
|
4480
|
-
text:
|
|
4481
|
-
heading:
|
|
4481
|
+
const ad = "_text_yelu1_7 _text_1hv7a_23", cd = "_heading_yelu1_11 _text_1hv7a_23", ld = "_trackingDisplay_yelu1_100", dd = "_trackingTight_yelu1_104", ud = "_mono_yelu1_110", hd = "_link_yelu1_119", Se = {
|
|
4482
|
+
text: ad,
|
|
4483
|
+
heading: cd,
|
|
4482
4484
|
"size-xs": "_size-xs_yelu1_30",
|
|
4483
4485
|
"size-sm": "_size-sm_yelu1_33",
|
|
4484
4486
|
"size-md": "_size-md_yelu1_36",
|
|
@@ -4497,11 +4499,11 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4497
4499
|
"tracking-caps": "_tracking-caps_yelu1_85",
|
|
4498
4500
|
"leading-normal": "_leading-normal_yelu1_92",
|
|
4499
4501
|
"leading-tight": "_leading-tight_yelu1_95",
|
|
4500
|
-
trackingDisplay:
|
|
4501
|
-
trackingTight:
|
|
4502
|
-
mono:
|
|
4503
|
-
link:
|
|
4504
|
-
},
|
|
4502
|
+
trackingDisplay: ld,
|
|
4503
|
+
trackingTight: dd,
|
|
4504
|
+
mono: ud,
|
|
4505
|
+
link: hd
|
|
4506
|
+
}, Vu = ie(function({
|
|
4505
4507
|
as: t = "p",
|
|
4506
4508
|
size: n = "md",
|
|
4507
4509
|
weight: r = "regular",
|
|
@@ -4531,15 +4533,15 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4531
4533
|
children: d
|
|
4532
4534
|
}
|
|
4533
4535
|
);
|
|
4534
|
-
}),
|
|
4536
|
+
}), fd = {
|
|
4535
4537
|
1: "2xl",
|
|
4536
4538
|
2: "xl",
|
|
4537
4539
|
3: "lg",
|
|
4538
4540
|
4: "md",
|
|
4539
4541
|
5: "sm",
|
|
4540
4542
|
6: "xs"
|
|
4541
|
-
},
|
|
4542
|
-
const d = `h${t}`, u = n ??
|
|
4543
|
+
}, Uu = ie(function({ level: t = 2, size: n, weight: r = "semibold", tone: o = "default", className: i, children: a, ...c }, l) {
|
|
4544
|
+
const d = `h${t}`, u = n ?? fd[t];
|
|
4543
4545
|
return /* @__PURE__ */ s(
|
|
4544
4546
|
d,
|
|
4545
4547
|
{
|
|
@@ -4558,7 +4560,7 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4558
4560
|
children: a
|
|
4559
4561
|
}
|
|
4560
4562
|
);
|
|
4561
|
-
}),
|
|
4563
|
+
}), Yu = ie(function({ size: t = "md", external: n = !1, className: r, children: o, ...i }, a) {
|
|
4562
4564
|
return /* @__PURE__ */ s(
|
|
4563
4565
|
"a",
|
|
4564
4566
|
{
|
|
@@ -4569,29 +4571,29 @@ const sd = "_text_yelu1_7 _text_1hv7a_23", id = "_heading_yelu1_11 _text_1hv7a_2
|
|
|
4569
4571
|
children: o
|
|
4570
4572
|
}
|
|
4571
4573
|
);
|
|
4572
|
-
}),
|
|
4573
|
-
tooltip:
|
|
4574
|
+
}), pd = "_tooltip_t3fvi_4 _text_1hv7a_23", md = {
|
|
4575
|
+
tooltip: pd
|
|
4574
4576
|
};
|
|
4575
|
-
function
|
|
4576
|
-
const [r, o] = B(!1), [i, a] = B(null), [c, l] = B(null), d =
|
|
4577
|
+
function _d({ content: e, children: t, delay: n = 300 }) {
|
|
4578
|
+
const [r, o] = B(!1), [i, a] = B(null), [c, l] = B(null), d = Zt(), u = R(null), p = R(null), h = R(null), f = De(), m = Fn(r, p, "--u-duration-exit-fast"), y = () => {
|
|
4577
4579
|
h.current && clearTimeout(h.current), h.current = setTimeout(() => o(!0), n);
|
|
4578
4580
|
}, b = () => {
|
|
4579
4581
|
h.current && clearTimeout(h.current), o(!1);
|
|
4580
4582
|
};
|
|
4581
|
-
|
|
4582
|
-
r && l(
|
|
4583
|
-
}, [r, d]),
|
|
4583
|
+
Oe(() => {
|
|
4584
|
+
r && l(En(u.current, d));
|
|
4585
|
+
}, [r, d]), Oe(() => {
|
|
4584
4586
|
var F;
|
|
4585
4587
|
if (!r || !c) return;
|
|
4586
4588
|
const g = (F = u.current) == null ? void 0 : F.getBoundingClientRect(), N = p.current;
|
|
4587
4589
|
if (!g || !N) return;
|
|
4588
|
-
const L =
|
|
4590
|
+
const L = Rn(
|
|
4589
4591
|
g,
|
|
4590
4592
|
{ width: N.offsetWidth, height: N.offsetHeight },
|
|
4591
|
-
|
|
4593
|
+
Pn(),
|
|
4592
4594
|
{ align: "center", side: "top", offset: 8 }
|
|
4593
4595
|
);
|
|
4594
|
-
a({ top: L.top, left: L.left, "--_origin":
|
|
4596
|
+
a({ top: L.top, left: L.left, "--_origin": Kt(L.side, "center") });
|
|
4595
4597
|
}, [r, c, e]), ne(() => {
|
|
4596
4598
|
if (!r) return;
|
|
4597
4599
|
const g = (N) => {
|
|
@@ -4605,7 +4607,7 @@ function pd({ content: e, children: t, delay: n = 300 }) {
|
|
|
4605
4607
|
}, []);
|
|
4606
4608
|
const v = t.props;
|
|
4607
4609
|
return /* @__PURE__ */ k($e, { children: [
|
|
4608
|
-
|
|
4610
|
+
$n(t, {
|
|
4609
4611
|
ref: u,
|
|
4610
4612
|
/* Added to the child's own description, not put in its place: a field's
|
|
4611
4613
|
hint went silent for as long as the tooltip stood. */
|
|
@@ -4627,14 +4629,14 @@ function pd({ content: e, children: t, delay: n = 300 }) {
|
|
|
4627
4629
|
(N = v.onBlur) == null || N.call(v, g), b();
|
|
4628
4630
|
}
|
|
4629
4631
|
}),
|
|
4630
|
-
m && c &&
|
|
4632
|
+
m && c && Ut(
|
|
4631
4633
|
/* @__PURE__ */ s(
|
|
4632
4634
|
"div",
|
|
4633
4635
|
{
|
|
4634
4636
|
ref: p,
|
|
4635
4637
|
id: f,
|
|
4636
4638
|
role: "tooltip",
|
|
4637
|
-
className:
|
|
4639
|
+
className: md.tooltip,
|
|
4638
4640
|
"data-closing": !r || void 0,
|
|
4639
4641
|
"aria-hidden": !r || void 0,
|
|
4640
4642
|
style: { ...i, visibility: i ? void 0 : "hidden" },
|
|
@@ -4645,31 +4647,31 @@ function pd({ content: e, children: t, delay: n = 300 }) {
|
|
|
4645
4647
|
)
|
|
4646
4648
|
] });
|
|
4647
4649
|
}
|
|
4648
|
-
const
|
|
4650
|
+
const Gt = {
|
|
4649
4651
|
ok: 0,
|
|
4650
4652
|
unknown: 1,
|
|
4651
4653
|
warning: 2,
|
|
4652
4654
|
alarm: 3
|
|
4653
4655
|
};
|
|
4654
|
-
function
|
|
4655
|
-
return
|
|
4656
|
+
function Ku(e) {
|
|
4657
|
+
return Gt[e];
|
|
4656
4658
|
}
|
|
4657
|
-
function
|
|
4659
|
+
function gd(e) {
|
|
4658
4660
|
return typeof e == "number" && Number.isFinite(e);
|
|
4659
4661
|
}
|
|
4660
|
-
function
|
|
4662
|
+
function vd(e, t) {
|
|
4661
4663
|
if (!Number.isFinite(t.value)) return null;
|
|
4662
4664
|
const n = t.side === "upper" ? e - t.value : t.value - e;
|
|
4663
4665
|
return n > 0 ? { limit: t, excess: n } : null;
|
|
4664
4666
|
}
|
|
4665
|
-
function
|
|
4666
|
-
const n =
|
|
4667
|
+
function yd(e, t) {
|
|
4668
|
+
const n = Gt[e.limit.severity], r = Gt[t.limit.severity];
|
|
4667
4669
|
return n !== r ? n > r : e.excess > t.excess;
|
|
4668
4670
|
}
|
|
4669
|
-
function
|
|
4670
|
-
if (!
|
|
4671
|
-
const r = (t.limits ?? []).map((a) =>
|
|
4672
|
-
(a, c) => a === null ||
|
|
4671
|
+
function bd(e, t = {}) {
|
|
4672
|
+
if (!gd(e)) return { verdict: "unknown" };
|
|
4673
|
+
const r = (t.limits ?? []).map((a) => vd(e, a)).filter((a) => a !== null).reduce(
|
|
4674
|
+
(a, c) => a === null || yd(c, a) ? c : a,
|
|
4673
4675
|
null
|
|
4674
4676
|
), o = r === null ? { verdict: "ok" } : {
|
|
4675
4677
|
verdict: r.limit.severity,
|
|
@@ -4678,58 +4680,58 @@ function vd(e, t = {}) {
|
|
|
4678
4680
|
}, i = t.target;
|
|
4679
4681
|
return i !== void 0 && Number.isFinite(i) && (o.deviation = e - i), o;
|
|
4680
4682
|
}
|
|
4681
|
-
function
|
|
4683
|
+
function wn(e) {
|
|
4682
4684
|
if (e == null) return null;
|
|
4683
4685
|
const t = e instanceof Date ? e.getTime() : e;
|
|
4684
4686
|
return Number.isFinite(t) ? t : null;
|
|
4685
4687
|
}
|
|
4686
|
-
const
|
|
4687
|
-
function
|
|
4688
|
-
const n =
|
|
4688
|
+
const kn = 6e4, wd = 1e3, kd = 10;
|
|
4689
|
+
function or(e, t) {
|
|
4690
|
+
const n = wn(e), r = wn(t);
|
|
4689
4691
|
return n === null || r === null ? null : Math.max(0, r - n);
|
|
4690
4692
|
}
|
|
4691
|
-
function
|
|
4692
|
-
const r =
|
|
4693
|
+
function xd(e, t, n) {
|
|
4694
|
+
const r = or(e, t);
|
|
4693
4695
|
return r === null || r >= n.lost ? "lost" : r >= n.stale ? "stale" : "fresh";
|
|
4694
4696
|
}
|
|
4695
|
-
function
|
|
4697
|
+
function Nd(e) {
|
|
4696
4698
|
const t = [e.stale, e.lost].filter(
|
|
4697
4699
|
(o) => Number.isFinite(o) && o > 0
|
|
4698
4700
|
);
|
|
4699
|
-
if (t.length === 0) return
|
|
4700
|
-
const n = Math.min(...t), r = Math.round(n /
|
|
4701
|
-
return Math.min(
|
|
4701
|
+
if (t.length === 0) return kn;
|
|
4702
|
+
const n = Math.min(...t), r = Math.round(n / kd);
|
|
4703
|
+
return Math.min(kn, Math.max(wd, r));
|
|
4702
4704
|
}
|
|
4703
|
-
function
|
|
4704
|
-
const n = e instanceof Date ? e.getTime() : e, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: i } = t, a =
|
|
4705
|
+
function $d(e, t) {
|
|
4706
|
+
const n = e instanceof Date ? e.getTime() : e, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: i } = t, a = Nd({ stale: o, lost: i }), [c, l] = B(() => Date.now());
|
|
4705
4707
|
return ne(() => {
|
|
4706
4708
|
const d = setInterval(() => l(Date.now()), a);
|
|
4707
4709
|
return () => clearInterval(d);
|
|
4708
4710
|
}, [a]), se(
|
|
4709
4711
|
() => ({
|
|
4710
|
-
freshness:
|
|
4712
|
+
freshness: xd(r, c, {
|
|
4711
4713
|
stale: o,
|
|
4712
4714
|
lost: i
|
|
4713
4715
|
}),
|
|
4714
|
-
age:
|
|
4716
|
+
age: or(r, c),
|
|
4715
4717
|
now: c
|
|
4716
4718
|
}),
|
|
4717
4719
|
[r, c, o, i]
|
|
4718
4720
|
);
|
|
4719
4721
|
}
|
|
4720
|
-
const
|
|
4721
|
-
stat:
|
|
4722
|
-
label:
|
|
4723
|
-
valueRow:
|
|
4724
|
-
value:
|
|
4725
|
-
unit:
|
|
4726
|
-
verdict:
|
|
4727
|
-
deviation:
|
|
4728
|
-
history:
|
|
4729
|
-
asOf:
|
|
4730
|
-
age:
|
|
4722
|
+
const Dd = "_stat_hgd6y_9 _text_1hv7a_23", Td = "_label_hgd6y_22", Sd = "_valueRow_hgd6y_29", Md = "_value_hgd6y_29", Cd = "_unit_hgd6y_48", Ad = "_verdict_hgd6y_55", Ld = "_deviation_hgd6y_92", Rd = "_history_hgd6y_97", Pd = "_asOf_hgd6y_101", Ed = "_age_hgd6y_119", We = {
|
|
4723
|
+
stat: Dd,
|
|
4724
|
+
label: Td,
|
|
4725
|
+
valueRow: Sd,
|
|
4726
|
+
value: Md,
|
|
4727
|
+
unit: Cd,
|
|
4728
|
+
verdict: Ad,
|
|
4729
|
+
deviation: Ld,
|
|
4730
|
+
history: Rd,
|
|
4731
|
+
asOf: Pd,
|
|
4732
|
+
age: Ed
|
|
4731
4733
|
};
|
|
4732
|
-
function
|
|
4734
|
+
function Fd(e, t) {
|
|
4733
4735
|
switch (e) {
|
|
4734
4736
|
case "alarm":
|
|
4735
4737
|
return t.verdictAlarm;
|
|
@@ -4741,22 +4743,22 @@ function Pd(e, t) {
|
|
|
4741
4743
|
return t.verdictOk;
|
|
4742
4744
|
}
|
|
4743
4745
|
}
|
|
4744
|
-
function
|
|
4746
|
+
function Id(e, t, n, r) {
|
|
4745
4747
|
if (e === void 0) return null;
|
|
4746
4748
|
const o = n.number(Math.abs(e), t);
|
|
4747
4749
|
return e === 0 ? r.deviationOnTarget : e > 0 ? r.deviationAbove(o) : r.deviationBelow(o);
|
|
4748
4750
|
}
|
|
4749
|
-
function
|
|
4751
|
+
function Bd({
|
|
4750
4752
|
asOf: e,
|
|
4751
4753
|
ages: t
|
|
4752
4754
|
}) {
|
|
4753
|
-
const n = Ve(), r = ce(), o =
|
|
4755
|
+
const n = Ve(), r = ce(), o = $d(e, t), i = o.freshness === "lost" ? r.freshnessDisconnected : o.freshness === "stale" ? r.freshnessStale : r.freshnessFresh, a = o.age;
|
|
4754
4756
|
return /* @__PURE__ */ k("span", { className: We.asOf, "data-freshness": o.freshness, children: [
|
|
4755
4757
|
i,
|
|
4756
4758
|
a !== null && /* @__PURE__ */ s("span", { className: We.age, children: n.relative(a) })
|
|
4757
4759
|
] });
|
|
4758
4760
|
}
|
|
4759
|
-
function
|
|
4761
|
+
function Xu({
|
|
4760
4762
|
label: e,
|
|
4761
4763
|
value: t,
|
|
4762
4764
|
unit: n,
|
|
@@ -4769,7 +4771,7 @@ function Yu({
|
|
|
4769
4771
|
...d
|
|
4770
4772
|
}) {
|
|
4771
4773
|
var F;
|
|
4772
|
-
const u = Ve(), p = ce(), h =
|
|
4774
|
+
const u = Ve(), p = ce(), h = bd(t, o), f = h.verdict, m = Fd(f, p), y = f !== "unknown", v = (((F = o == null ? void 0 : o.limits) == null ? void 0 : F.length) ?? 0) > 0 || !y, g = Id(h.deviation, r, u, p), N = y ? u.number(t, r) : p.statAbsentValue, L = `${e}: ${y ? `${N}${n ? ` ${n}` : ""}` : m}${y && v && f !== "ok" ? `, ${m}` : ""}`;
|
|
4773
4775
|
return /* @__PURE__ */ k(
|
|
4774
4776
|
"div",
|
|
4775
4777
|
{
|
|
@@ -4786,29 +4788,29 @@ function Yu({
|
|
|
4786
4788
|
] }),
|
|
4787
4789
|
v && /* @__PURE__ */ s("span", { className: We.verdict, "data-verdict": f, children: m }),
|
|
4788
4790
|
g !== null && y && /* @__PURE__ */ s("span", { className: We.deviation, children: g }),
|
|
4789
|
-
i !== void 0 && i.length >= 2 && /* @__PURE__ */ s(
|
|
4790
|
-
a !== void 0 && c !== void 0 && /* @__PURE__ */ s(
|
|
4791
|
+
i !== void 0 && i.length >= 2 && /* @__PURE__ */ s(zs, { data: i, className: We.history, "aria-hidden": "true" }),
|
|
4792
|
+
a !== void 0 && c !== void 0 && /* @__PURE__ */ s(Bd, { asOf: a ?? null, ages: c })
|
|
4791
4793
|
]
|
|
4792
4794
|
}
|
|
4793
4795
|
);
|
|
4794
4796
|
}
|
|
4795
|
-
const
|
|
4797
|
+
const sr = "bottom", kt = ["top", "right", "bottom", "left"], xn = ["bottom", "top", "right", "left"];
|
|
4796
4798
|
function xt(e) {
|
|
4797
4799
|
return e === "left" || e === "right";
|
|
4798
4800
|
}
|
|
4799
|
-
function
|
|
4800
|
-
if (t.width <= 0 || t.height <= 0) return
|
|
4801
|
+
function zd(e, t) {
|
|
4802
|
+
if (t.width <= 0 || t.height <= 0) return sr;
|
|
4801
4803
|
const n = (e.x - (t.left + t.width / 2)) / (t.width / 2), r = (e.y - (t.top + t.height / 2)) / (t.height / 2);
|
|
4802
4804
|
return Math.abs(n) > Math.abs(r) ? n > 0 ? "right" : "left" : r < 0 ? "top" : "bottom";
|
|
4803
4805
|
}
|
|
4804
|
-
function
|
|
4806
|
+
function ir(e, t) {
|
|
4805
4807
|
return 2 * t.padding + t.grip + e * (t.gap + t.tool);
|
|
4806
4808
|
}
|
|
4807
4809
|
function jt(e, t, n, r) {
|
|
4808
|
-
const o =
|
|
4810
|
+
const o = ir(t, r), i = xt(e), a = (i ? n.height : n.width) - 2 * r.margin, c = (i ? n.width : n.height) - 2 * r.margin;
|
|
4809
4811
|
return o <= a && r.thickness <= c;
|
|
4810
4812
|
}
|
|
4811
|
-
function
|
|
4813
|
+
function Od(e) {
|
|
4812
4814
|
switch (e) {
|
|
4813
4815
|
case "ArrowUp":
|
|
4814
4816
|
return "top";
|
|
@@ -4822,35 +4824,35 @@ function Bd(e) {
|
|
|
4822
4824
|
return;
|
|
4823
4825
|
}
|
|
4824
4826
|
}
|
|
4825
|
-
function
|
|
4827
|
+
function Nn(e, t) {
|
|
4826
4828
|
const n = Math.abs(kt.indexOf(e) - kt.indexOf(t));
|
|
4827
4829
|
return Math.min(n, kt.length - n);
|
|
4828
4830
|
}
|
|
4829
|
-
function
|
|
4831
|
+
function Hd(e, t, n, r) {
|
|
4830
4832
|
return [...kt].sort(
|
|
4831
|
-
(o, i) =>
|
|
4833
|
+
(o, i) => Nn(e, o) - Nn(e, i) || xn.indexOf(o) - xn.indexOf(i)
|
|
4832
4834
|
).find((o) => jt(o, t, n, r));
|
|
4833
4835
|
}
|
|
4834
|
-
const
|
|
4835
|
-
root:
|
|
4836
|
-
strip:
|
|
4837
|
-
gripSlot:
|
|
4838
|
-
grip:
|
|
4839
|
-
tool:
|
|
4840
|
-
inMode:
|
|
4841
|
-
refusal:
|
|
4836
|
+
const qd = "_root_1oavz_22 _text_1hv7a_23", Wd = "_strip_1oavz_31", Gd = "_gripSlot_1oavz_111", jd = "_grip_1oavz_111 _ring_1hv7a_65", Vd = "_tool_1oavz_161 _ring_1hv7a_65", Ud = "_inMode_1oavz_195", Yd = "_refusal_1oavz_211", ot = {
|
|
4837
|
+
root: qd,
|
|
4838
|
+
strip: Wd,
|
|
4839
|
+
gripSlot: Gd,
|
|
4840
|
+
grip: jd,
|
|
4841
|
+
tool: Vd,
|
|
4842
|
+
inMode: Ud,
|
|
4843
|
+
refusal: Yd
|
|
4842
4844
|
};
|
|
4843
|
-
function
|
|
4845
|
+
function Ft(e) {
|
|
4844
4846
|
return Array.from(e.children);
|
|
4845
4847
|
}
|
|
4846
4848
|
function gt(e, t) {
|
|
4847
4849
|
const n = Number.parseFloat(e.getPropertyValue(t));
|
|
4848
4850
|
return Number.isFinite(n) ? n : 0;
|
|
4849
4851
|
}
|
|
4850
|
-
const
|
|
4852
|
+
const Qu = ie(function({
|
|
4851
4853
|
tools: t,
|
|
4852
4854
|
place: n,
|
|
4853
|
-
defaultPlace: r =
|
|
4855
|
+
defaultPlace: r = sr,
|
|
4854
4856
|
onPlaceChange: o,
|
|
4855
4857
|
mode: i,
|
|
4856
4858
|
onModeChange: a,
|
|
@@ -4861,7 +4863,7 @@ const Ku = ie(function({
|
|
|
4861
4863
|
}, p) {
|
|
4862
4864
|
var xe;
|
|
4863
4865
|
const h = ce(), f = R(null), m = R(null);
|
|
4864
|
-
|
|
4866
|
+
Vt(p, () => f.current, []);
|
|
4865
4867
|
const [y, b] = B(r), v = n !== void 0, g = n ?? y, N = R(g);
|
|
4866
4868
|
N.current = g;
|
|
4867
4869
|
const [L, F] = B(null), [D, _] = B(""), E = R(null);
|
|
@@ -4875,11 +4877,11 @@ const Ku = ie(function({
|
|
|
4875
4877
|
var de;
|
|
4876
4878
|
const $ = m.current;
|
|
4877
4879
|
if ($ === null) return null;
|
|
4878
|
-
const
|
|
4880
|
+
const z = Ft($), M = z[0];
|
|
4879
4881
|
if (M === void 0) return null;
|
|
4880
|
-
const
|
|
4881
|
-
if (
|
|
4882
|
-
const x = getComputedStyle($), W = xt(N.current), ee = (fe) => W ? fe.height : fe.width, ae = (fe) => W ? fe.width : fe.height, le = M.getBoundingClientRect(), ue = (de =
|
|
4882
|
+
const j = $.getBoundingClientRect();
|
|
4883
|
+
if (j.width === 0 && j.height === 0) return null;
|
|
4884
|
+
const x = getComputedStyle($), W = xt(N.current), ee = (fe) => W ? fe.height : fe.width, ae = (fe) => W ? fe.width : fe.height, le = M.getBoundingClientRect(), ue = (de = z[1]) == null ? void 0 : de.getBoundingClientRect();
|
|
4883
4885
|
return {
|
|
4884
4886
|
tool: ue === void 0 ? 0 : ee(ue),
|
|
4885
4887
|
grip: ee(le),
|
|
@@ -4895,45 +4897,45 @@ const Ku = ie(function({
|
|
|
4895
4897
|
position knows it only at the one the dock currently lies at. */
|
|
4896
4898
|
margin: gt(x, "--u-dock-margin")
|
|
4897
4899
|
};
|
|
4898
|
-
}, []),
|
|
4900
|
+
}, []), O = Q(() => {
|
|
4899
4901
|
const $ = f.current;
|
|
4900
4902
|
if ($ === null) return null;
|
|
4901
|
-
const
|
|
4902
|
-
return { left:
|
|
4903
|
+
const z = $.getBoundingClientRect();
|
|
4904
|
+
return { left: z.left, top: z.top, width: z.width, height: z.height };
|
|
4903
4905
|
}, []), V = R(null), U = R([]), C = Q(($) => {
|
|
4904
|
-
const
|
|
4905
|
-
return
|
|
4906
|
+
const z = m.current, M = f.current;
|
|
4907
|
+
return z === null || M === null ? null : {
|
|
4906
4908
|
place: $,
|
|
4907
4909
|
root: M.getBoundingClientRect(),
|
|
4908
|
-
strip:
|
|
4909
|
-
children:
|
|
4910
|
+
strip: z.getBoundingClientRect(),
|
|
4911
|
+
children: Ft(z).map((j) => j.getBoundingClientRect())
|
|
4910
4912
|
};
|
|
4911
|
-
}, []),
|
|
4913
|
+
}, []), G = Q(() => {
|
|
4912
4914
|
E.current !== null && (clearTimeout(E.current), E.current = null), F(null);
|
|
4913
4915
|
}, []), S = Q(
|
|
4914
4916
|
($) => {
|
|
4915
|
-
$ !== N.current && (V.current = C(N.current),
|
|
4917
|
+
$ !== N.current && (V.current = C(N.current), G(), v || b($), N.current = $, o == null || o($), _(h.dockPlaced(h.dockPlace($))));
|
|
4916
4918
|
},
|
|
4917
|
-
[v,
|
|
4919
|
+
[v, G, C, o, h]
|
|
4918
4920
|
), X = Q(
|
|
4919
|
-
($,
|
|
4920
|
-
const x =
|
|
4921
|
+
($, z, M, j) => {
|
|
4922
|
+
const x = ir(M, z);
|
|
4921
4923
|
F({
|
|
4922
4924
|
place: $,
|
|
4923
|
-
width: `${xt($) ?
|
|
4924
|
-
height: `${xt($) ? x :
|
|
4925
|
+
width: `${xt($) ? z.thickness : x}px`,
|
|
4926
|
+
height: `${xt($) ? x : z.thickness}px`
|
|
4925
4927
|
}), _(h.dockNoPlace(h.dockPlace($))), E.current !== null && clearTimeout(E.current);
|
|
4926
4928
|
const W = m.current === null ? null : getComputedStyle(m.current), ee = W === null ? 0 : yt(W, "--u-dock-refusal-duration");
|
|
4927
|
-
E.current =
|
|
4929
|
+
E.current = j && ee > 0 ? setTimeout(() => {
|
|
4928
4930
|
E.current = null, F(null);
|
|
4929
4931
|
}, ee) : null;
|
|
4930
4932
|
},
|
|
4931
4933
|
[h]
|
|
4932
|
-
),
|
|
4933
|
-
($,
|
|
4934
|
+
), H = Q(
|
|
4935
|
+
($, z, M, j) => {
|
|
4934
4936
|
if ($ !== N.current) {
|
|
4935
|
-
if (
|
|
4936
|
-
X($, M, t.length,
|
|
4937
|
+
if (z !== null && M !== null && !jt($, t.length, z, M)) {
|
|
4938
|
+
X($, M, t.length, j);
|
|
4937
4939
|
return;
|
|
4938
4940
|
}
|
|
4939
4941
|
S($);
|
|
@@ -4946,69 +4948,69 @@ const Ku = ie(function({
|
|
|
4946
4948
|
return ($ = Y.current) == null ? void 0 : $.call(Y);
|
|
4947
4949
|
}, []);
|
|
4948
4950
|
const pe = ($) => {
|
|
4949
|
-
const
|
|
4951
|
+
const z = $.currentTarget;
|
|
4950
4952
|
if ($.button !== 0) return;
|
|
4951
4953
|
$.preventDefault();
|
|
4952
4954
|
const M = $.pointerId;
|
|
4953
|
-
|
|
4954
|
-
const
|
|
4955
|
+
z.setPointerCapture(M), z.dataset.dragging = "";
|
|
4956
|
+
const j = O(), x = w(), W = gt(getComputedStyle(z), "--u-dock-grip-travel"), ee = N.current;
|
|
4955
4957
|
let ae = $.clientX, le = $.clientY;
|
|
4956
4958
|
const ue = (he, Fe) => {
|
|
4957
4959
|
const et = (bt) => Math.max(-W, Math.min(W, bt));
|
|
4958
|
-
|
|
4960
|
+
z.style.transform = `translate(${et(he - ae)}px, ${et(Fe - le)}px)`;
|
|
4959
4961
|
}, de = (he) => {
|
|
4960
4962
|
if (he.pointerId !== M) return;
|
|
4961
4963
|
const Fe = N.current;
|
|
4962
|
-
if (
|
|
4963
|
-
const et =
|
|
4964
|
-
et === N.current ?
|
|
4964
|
+
if (j !== null) {
|
|
4965
|
+
const et = zd({ x: he.clientX, y: he.clientY }, j);
|
|
4966
|
+
et === N.current ? G() : H(et, j, x, !1);
|
|
4965
4967
|
}
|
|
4966
4968
|
N.current !== Fe && (ae = he.clientX, le = he.clientY), ue(he.clientX, he.clientY);
|
|
4967
4969
|
}, fe = () => {
|
|
4968
|
-
Y.current = null,
|
|
4970
|
+
Y.current = null, z.removeEventListener("pointermove", de), z.removeEventListener("pointerup", be), z.removeEventListener("pointercancel", be), window.removeEventListener("keydown", we, !0), z.hasPointerCapture(M) && z.releasePointerCapture(M), delete z.dataset.dragging, z.style.transform = "", G();
|
|
4969
4971
|
}, be = (he) => {
|
|
4970
4972
|
he.pointerId === M && fe();
|
|
4971
4973
|
}, we = (he) => {
|
|
4972
4974
|
he.key === "Escape" && (he.preventDefault(), he.stopPropagation(), S(ee), fe());
|
|
4973
4975
|
};
|
|
4974
|
-
|
|
4976
|
+
z.addEventListener("pointermove", de), z.addEventListener("pointerup", be), z.addEventListener("pointercancel", be), window.addEventListener("keydown", we, !0), Y.current = fe;
|
|
4975
4977
|
}, A = ($) => {
|
|
4976
|
-
const
|
|
4977
|
-
|
|
4978
|
+
const z = Od($.key);
|
|
4979
|
+
z !== void 0 && ($.preventDefault(), H(z, O(), w(), !0));
|
|
4978
4980
|
}, I = t.filter(($) => $.disabled !== !0), [q, te] = B(null), ke = ($) => {
|
|
4979
|
-
var
|
|
4980
|
-
return Array.from(((
|
|
4981
|
+
var z;
|
|
4982
|
+
return Array.from(((z = m.current) == null ? void 0 : z.querySelectorAll("[data-tool]")) ?? []).find((M) => M.dataset.tool === $);
|
|
4981
4983
|
}, Ee = q !== null && I.some(($) => $.id === q) ? q : ((xe = I[0]) == null ? void 0 : xe.id) ?? null, oe = ($) => {
|
|
4982
4984
|
var le;
|
|
4983
|
-
const
|
|
4984
|
-
if (!
|
|
4985
|
+
const z = $.key === "ArrowRight" || $.key === "ArrowDown", M = $.key === "ArrowLeft" || $.key === "ArrowUp", j = $.key === "Home", x = $.key === "End";
|
|
4986
|
+
if (!z && !M && !j && !x || I.length === 0) return;
|
|
4985
4987
|
$.preventDefault();
|
|
4986
4988
|
const W = I.findIndex(
|
|
4987
4989
|
(ue) => ue.id === $.currentTarget.dataset.tool
|
|
4988
|
-
), ee =
|
|
4990
|
+
), ee = j ? 0 : x ? I.length - 1 : nn(W === -1 ? 0 : W, I.length, z ? 1 : -1), ae = I[ee];
|
|
4989
4991
|
ae !== void 0 && (te(ae.id), (le = ke(ae.id)) == null || le.focus());
|
|
4990
4992
|
}, K = ($) => {
|
|
4991
4993
|
te($.id), c == null || c($.id), i !== void 0 && i !== $.id && (a == null || a($.id));
|
|
4992
4994
|
};
|
|
4993
|
-
|
|
4995
|
+
Oe(() => {
|
|
4994
4996
|
const $ = V.current;
|
|
4995
4997
|
if ($ !== null && $.place === g) return;
|
|
4996
4998
|
_e();
|
|
4997
|
-
const
|
|
4998
|
-
V.current =
|
|
4999
|
+
const z = C(g);
|
|
5000
|
+
V.current = z, !($ === null || z === null) && (Mt() || ye($, z));
|
|
4999
5001
|
});
|
|
5000
5002
|
function _e() {
|
|
5001
5003
|
for (const $ of U.current) $.cancel();
|
|
5002
5004
|
U.current = [];
|
|
5003
5005
|
}
|
|
5004
|
-
function ye($,
|
|
5006
|
+
function ye($, z) {
|
|
5005
5007
|
const M = m.current;
|
|
5006
5008
|
if (M === null || typeof M.animate != "function") return;
|
|
5007
|
-
const
|
|
5009
|
+
const j = getComputedStyle(M), x = yt(j, "--u-duration-medium");
|
|
5008
5010
|
if (x <= 0) return;
|
|
5009
5011
|
const W = {
|
|
5010
5012
|
duration: x,
|
|
5011
|
-
easing:
|
|
5013
|
+
easing: j.getPropertyValue("--u-ease-out").trim() || "ease-out"
|
|
5012
5014
|
}, ee = (de) => ({
|
|
5013
5015
|
left: `${de.strip.left - de.root.left}px`,
|
|
5014
5016
|
top: `${de.strip.top - de.root.top}px`,
|
|
@@ -5021,10 +5023,10 @@ const Ku = ie(function({
|
|
|
5021
5023
|
marginTop: "0px",
|
|
5022
5024
|
marginBottom: "0px"
|
|
5023
5025
|
});
|
|
5024
|
-
U.current.push(M.animate([ee($), ee(
|
|
5025
|
-
const ae =
|
|
5026
|
+
U.current.push(M.animate([ee($), ee(z)], W));
|
|
5027
|
+
const ae = Ft(M), le = $.strip.left - z.strip.left, ue = $.strip.top - z.strip.top;
|
|
5026
5028
|
ae.forEach((de, fe) => {
|
|
5027
|
-
const be = $.children[fe], we =
|
|
5029
|
+
const be = $.children[fe], we = z.children[fe];
|
|
5028
5030
|
if (be === void 0 || we === void 0) return;
|
|
5029
5031
|
const he = be.left - we.left - le, Fe = be.top - we.top - ue;
|
|
5030
5032
|
Math.abs(he) < 0.5 && Math.abs(Fe) < 0.5 || U.current.push(
|
|
@@ -5038,14 +5040,14 @@ const Ku = ie(function({
|
|
|
5038
5040
|
return ne(() => {
|
|
5039
5041
|
const $ = f.current;
|
|
5040
5042
|
if ($ === null || typeof ResizeObserver > "u") return;
|
|
5041
|
-
const
|
|
5042
|
-
const M =
|
|
5043
|
-
if (M === null ||
|
|
5044
|
-
const x =
|
|
5043
|
+
const z = new ResizeObserver(() => {
|
|
5044
|
+
const M = O(), j = w();
|
|
5045
|
+
if (M === null || j === null || jt(N.current, t.length, M, j)) return;
|
|
5046
|
+
const x = Hd(N.current, t.length, M, j);
|
|
5045
5047
|
x !== void 0 && S(x);
|
|
5046
5048
|
});
|
|
5047
|
-
return
|
|
5048
|
-
}, [w, S, t.length,
|
|
5049
|
+
return z.observe($), () => z.disconnect();
|
|
5050
|
+
}, [w, S, t.length, O]), /* @__PURE__ */ k("div", { ref: f, className: P(ot.root, d), ...u, children: [
|
|
5049
5051
|
/* @__PURE__ */ k(
|
|
5050
5052
|
"div",
|
|
5051
5053
|
{
|
|
@@ -5067,15 +5069,15 @@ const Ku = ie(function({
|
|
|
5067
5069
|
}
|
|
5068
5070
|
) }),
|
|
5069
5071
|
t.map(($) => {
|
|
5070
|
-
const
|
|
5071
|
-
return /* @__PURE__ */ s(
|
|
5072
|
+
const z = i !== void 0 && i === $.id;
|
|
5073
|
+
return /* @__PURE__ */ s(_d, { content: $.label, children: /* @__PURE__ */ s(
|
|
5072
5074
|
"button",
|
|
5073
5075
|
{
|
|
5074
5076
|
type: "button",
|
|
5075
5077
|
"data-tool": $.id,
|
|
5076
|
-
className: P(ot.tool,
|
|
5078
|
+
className: P(ot.tool, z && ot.inMode),
|
|
5077
5079
|
"aria-label": $.label,
|
|
5078
|
-
"aria-pressed":
|
|
5080
|
+
"aria-pressed": z ? !0 : void 0,
|
|
5079
5081
|
disabled: $.disabled,
|
|
5080
5082
|
tabIndex: $.id === Ee ? 0 : -1,
|
|
5081
5083
|
onClick: () => K($),
|
|
@@ -5101,9 +5103,9 @@ const Ku = ie(function({
|
|
|
5101
5103
|
/* @__PURE__ */ s(On, { role: "status", "aria-live": "polite", children: D })
|
|
5102
5104
|
] });
|
|
5103
5105
|
});
|
|
5104
|
-
function
|
|
5106
|
+
function Zu({ open: e, onOpenChange: t, position: n, ariaLabel: r, children: o }) {
|
|
5105
5107
|
const i = R(null), a = R(null);
|
|
5106
|
-
|
|
5108
|
+
Oe(() => {
|
|
5107
5109
|
if (!e) return;
|
|
5108
5110
|
const u = document.activeElement;
|
|
5109
5111
|
a.current = u instanceof HTMLElement && u !== document.body ? u : null;
|
|
@@ -5141,8 +5143,8 @@ function Xu({ open: e, onOpenChange: t, position: n, ariaLabel: r, children: o }
|
|
|
5141
5143
|
{
|
|
5142
5144
|
ref: l,
|
|
5143
5145
|
className: ct.content,
|
|
5144
|
-
onKeyDown: (u) =>
|
|
5145
|
-
children: /* @__PURE__ */ s(
|
|
5146
|
+
onKeyDown: (u) => In(u, c.current, d),
|
|
5147
|
+
children: /* @__PURE__ */ s(Jt.Provider, { value: { close: d }, children: o })
|
|
5146
5148
|
}
|
|
5147
5149
|
)
|
|
5148
5150
|
}
|
|
@@ -5150,118 +5152,118 @@ function Xu({ open: e, onOpenChange: t, position: n, ariaLabel: r, children: o }
|
|
|
5150
5152
|
] });
|
|
5151
5153
|
}
|
|
5152
5154
|
export {
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5155
|
+
tu as Alert,
|
|
5156
|
+
St as AngleGlyph,
|
|
5157
|
+
nu as Badge,
|
|
5156
5158
|
ve as Button,
|
|
5157
5159
|
lo as ButtonGroup,
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5160
|
+
Cn as CalendarGlyph,
|
|
5161
|
+
du as Card,
|
|
5162
|
+
hu as CardBody,
|
|
5163
|
+
uu as CardHeader,
|
|
5164
|
+
tn as Checkbox,
|
|
5165
|
+
An as ClockGlyph,
|
|
5166
|
+
mu as Combobox,
|
|
5167
|
+
fu as CommandPalette,
|
|
5168
|
+
Su as ConfirmDialog,
|
|
5169
|
+
Zu as ContextMenu,
|
|
5168
5170
|
Ue as CrossGlyph,
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5171
|
+
It as DEFAULT_FORMATS,
|
|
5172
|
+
Tn as DEFAULT_LANGUAGE,
|
|
5173
|
+
yu as DEFAULT_PRESETS,
|
|
5174
|
+
Dn as DEFAULT_SEPARATORS,
|
|
5173
5175
|
it as DEFAULT_WORDING,
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5176
|
+
gu as DatePicker,
|
|
5177
|
+
bu as DateRangePicker,
|
|
5178
|
+
vu as DateTimePicker,
|
|
5179
|
+
wu as DateTimeRangePicker,
|
|
5180
|
+
ku as Divider,
|
|
5181
|
+
Qu as Dock,
|
|
5182
|
+
xu as EmptyState,
|
|
5183
|
+
ru as FormField,
|
|
5182
5184
|
Vr as FormFieldBoundary,
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
+
$u as Grid,
|
|
5186
|
+
Jd as GridGlyph,
|
|
5185
5187
|
xr as GripGlyph,
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5188
|
+
Uu as Heading,
|
|
5189
|
+
Vn as Input,
|
|
5190
|
+
br as LanguageProvider,
|
|
5191
|
+
Yu as Link,
|
|
5192
|
+
eu as MeasureGlyph,
|
|
5191
5193
|
oo as Menu,
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5194
|
+
au as MenuItem,
|
|
5195
|
+
cu as MenuSeparator,
|
|
5196
|
+
_u as Meter,
|
|
5197
|
+
kr as MinusGlyph,
|
|
5198
|
+
nc as Modal,
|
|
5199
|
+
Tu as ModalBody,
|
|
5200
|
+
oc as ModalFooter,
|
|
5201
|
+
rc as ModalHeader,
|
|
5202
|
+
Mu as MultiSelect,
|
|
5203
|
+
Du as NumberInput,
|
|
5204
|
+
wr as PlusGlyph,
|
|
5203
5205
|
Je as Popover,
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5206
|
+
Cu as RadioGroup,
|
|
5207
|
+
Au as Select,
|
|
5208
|
+
Lu as Skeleton,
|
|
5209
|
+
zs as Sparkline,
|
|
5210
|
+
Ln as Spinner,
|
|
5211
|
+
lu as SplitButton,
|
|
5212
|
+
Nu as Stack,
|
|
5213
|
+
Xu as Stat,
|
|
5214
|
+
Iu as Tab,
|
|
5215
|
+
Fu as TabList,
|
|
5216
|
+
Bu as TabPanel,
|
|
5217
|
+
Eu as Tabs,
|
|
5218
|
+
Pu as Tag,
|
|
5219
|
+
Ru as TagGroup,
|
|
5220
|
+
Vu as Text,
|
|
5221
|
+
zu as Textarea,
|
|
5222
|
+
Hu as ToastProvider,
|
|
5223
|
+
_d as Tooltip,
|
|
5224
|
+
Wu as TreeSearch,
|
|
5225
|
+
qu as TreeView,
|
|
5226
|
+
iu as UmrissProvider,
|
|
5225
5227
|
On as VisuallyHidden,
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5228
|
+
or as age,
|
|
5229
|
+
id as allBranches,
|
|
5230
|
+
bd as assess,
|
|
5231
|
+
Nd as cadence,
|
|
5232
|
+
ll as clampedHeight,
|
|
5233
|
+
tr as collapse,
|
|
5234
|
+
Gu as duplicateKey,
|
|
5235
|
+
er as expand,
|
|
5236
|
+
xd as freshness,
|
|
5237
|
+
td as keysBetween,
|
|
5238
|
+
yr as mergeLanguage,
|
|
5239
|
+
vn as move,
|
|
5240
|
+
od as pathTo,
|
|
5239
5241
|
Dt as rangeDays,
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5242
|
+
cl as remainingChars,
|
|
5243
|
+
sd as revealPath,
|
|
5244
|
+
Ql as scrollForRow,
|
|
5245
|
+
ar as separatorsOf,
|
|
5246
|
+
Ge as setActive,
|
|
5247
|
+
yn as setAnchor,
|
|
5248
|
+
Wt as setChecked,
|
|
5249
|
+
nd as toggleAll,
|
|
5250
|
+
bn as toggleCheck,
|
|
5251
|
+
ed as treeModel,
|
|
5252
|
+
rd as typeaheadTarget,
|
|
5253
|
+
pu as useCommandPaletteShortcut,
|
|
5254
|
+
su as useDensity,
|
|
5255
|
+
ou as useDensityFor,
|
|
5254
5256
|
Be as useFormField,
|
|
5255
5257
|
Ve as useFormats,
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5258
|
+
$d as useFreshness,
|
|
5259
|
+
Mn as useLanguage,
|
|
5260
|
+
Zt as usePortalTarget,
|
|
5261
|
+
Ou as useToast,
|
|
5260
5262
|
Zr as useToastConfig,
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5263
|
+
ju as useTree,
|
|
5264
|
+
Qt as useUmriss,
|
|
5265
|
+
Zl as useVirtual,
|
|
5264
5266
|
ce as useWording,
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
+
Ku as verdictWeight,
|
|
5268
|
+
Xl as visibleWindow
|
|
5267
5269
|
};
|