@umriss-ui/core 0.32.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +11 -3
- package/dist/core.js +1169 -1160
- package/dist/de.d.ts +9 -2
- package/dist/index.d.ts +26 -3
- package/dist/wording/de.js +5 -1
- package/docs/llms-full.md +42 -11
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import "./core.css";
|
|
2
|
-
import { useMemo as ye, useContext as Qe, createContext as it, forwardRef as K, useState as j, useLayoutEffect as Ke, version as
|
|
3
|
+
import { useMemo as ye, useContext as Qe, createContext as it, forwardRef as K, useState as j, useLayoutEffect as Ke, version as br, useRef as O, useId as Me, useEffect as le, cloneElement as yr, useCallback as se, useImperativeHandle as xn } from "react";
|
|
3
4
|
import { jsx as s, jsxs as x, Fragment as Le } from "react/jsx-runtime";
|
|
4
|
-
import { D as
|
|
5
|
-
import { createPortal as
|
|
5
|
+
import { D as pn, a as wr, s as io } from "./formats-DrB9TuzO.js";
|
|
6
|
+
import { createPortal as $n } from "react-dom";
|
|
6
7
|
function z(...t) {
|
|
7
8
|
return t.filter(Boolean).join(" ");
|
|
8
9
|
}
|
|
9
|
-
const
|
|
10
|
-
alert:
|
|
11
|
-
content:
|
|
12
|
-
title:
|
|
13
|
-
text:
|
|
14
|
-
actions:
|
|
15
|
-
neutral:
|
|
16
|
-
accent:
|
|
17
|
-
success:
|
|
18
|
-
warning:
|
|
19
|
-
danger:
|
|
20
|
-
close:
|
|
10
|
+
const co = "_alert_1pgum_12 _text_1krlf_23", lo = "_content_1pgum_27", uo = "_title_1pgum_35", fo = "_text_1pgum_43", ho = "_actions_1pgum_53", po = "_neutral_1pgum_62", mo = "_accent_1pgum_70", _o = "_success_1pgum_78", go = "_warning_1pgum_86", vo = "_danger_1pgum_94", bo = "_close_1pgum_104", St = {
|
|
11
|
+
alert: co,
|
|
12
|
+
content: lo,
|
|
13
|
+
title: uo,
|
|
14
|
+
text: fo,
|
|
15
|
+
actions: ho,
|
|
16
|
+
neutral: po,
|
|
17
|
+
accent: mo,
|
|
18
|
+
success: _o,
|
|
19
|
+
warning: go,
|
|
20
|
+
danger: vo,
|
|
21
|
+
close: bo
|
|
21
22
|
}, Mt = {
|
|
22
23
|
clearInput: "Clear input",
|
|
23
24
|
clearSelection: "Clear selection",
|
|
@@ -195,6 +196,9 @@ const io = "_alert_1pgum_12 _text_1krlf_23", co = "_content_1pgum_27", lo = "_ti
|
|
|
195
196
|
calendarWeek: (t, e) => `Week ${t}, ${e}`,
|
|
196
197
|
entries: (t, e) => t === 1 ? "1 entry" : `${e} entries`,
|
|
197
198
|
selectedCount: (t, e) => `${e} selected`,
|
|
199
|
+
copiedRows: (t, e) => t === 1 ? "1 row copied" : `${e} rows copied`,
|
|
200
|
+
copiedCell: "Cell copied",
|
|
201
|
+
copyFailed: "Could not copy",
|
|
198
202
|
noEntries: "No entries",
|
|
199
203
|
nothingMatchesFilters: "Nothing matches the search and filters",
|
|
200
204
|
treeSearchPlaceholder: "Search the tree …",
|
|
@@ -254,7 +258,7 @@ const io = "_alert_1pgum_12 _text_1krlf_23", co = "_content_1pgum_27", lo = "_ti
|
|
|
254
258
|
columnFrequency: "Frequency",
|
|
255
259
|
columnAcknowledgement: "Acknowledgement",
|
|
256
260
|
columnAge: "Age",
|
|
257
|
-
availabilitySnoozed: (t, e) => `Snoozed until ${t} by ${e}`,
|
|
261
|
+
availabilitySnoozed: (t, e, n) => `Snoozed until ${t} by ${e}${n ? `: ${n}` : ""}`,
|
|
258
262
|
availabilitySnoozedShort: "Snoozed",
|
|
259
263
|
availabilitySuppressed: "Suppressed",
|
|
260
264
|
availabilityDisabled: "Disabled",
|
|
@@ -328,15 +332,15 @@ const io = "_alert_1pgum_12 _text_1krlf_23", co = "_content_1pgum_27", lo = "_ti
|
|
|
328
332
|
calculationHideDerivation: (t) => `Hide how ${t} is derived`,
|
|
329
333
|
calculationOperandCount: (t) => `${t} operands`,
|
|
330
334
|
calculationNoOperands: "no entries"
|
|
331
|
-
},
|
|
332
|
-
formats:
|
|
335
|
+
}, kr = {
|
|
336
|
+
formats: pn,
|
|
333
337
|
wording: Mt
|
|
334
|
-
},
|
|
335
|
-
function
|
|
336
|
-
if (!t) return
|
|
338
|
+
}, Nr = it(null);
|
|
339
|
+
function yo(t) {
|
|
340
|
+
if (!t) return kr;
|
|
337
341
|
const { presets: e, ...n } = t.wording ?? {};
|
|
338
342
|
return {
|
|
339
|
-
formats: t.formats ? { ...
|
|
343
|
+
formats: t.formats ? { ...pn, ...t.formats } : pn,
|
|
340
344
|
wording: t.wording ? {
|
|
341
345
|
...Mt,
|
|
342
346
|
...n,
|
|
@@ -344,11 +348,11 @@ function bo(t) {
|
|
|
344
348
|
} : Mt
|
|
345
349
|
};
|
|
346
350
|
}
|
|
347
|
-
function
|
|
348
|
-
const r = ye(() =>
|
|
349
|
-
return /* @__PURE__ */ s(
|
|
351
|
+
function wo({ formats: t, wording: e, children: n }) {
|
|
352
|
+
const r = ye(() => yo({ formats: t, wording: e }), [t, e]);
|
|
353
|
+
return /* @__PURE__ */ s(Nr.Provider, { value: r, children: n });
|
|
350
354
|
}
|
|
351
|
-
const
|
|
355
|
+
const Sn = () => Qe(Nr) ?? kr, tt = () => Sn().formats, ve = () => Sn().wording, et = K(function({ size: e = 9, ...n }, r) {
|
|
352
356
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
353
357
|
"path",
|
|
354
358
|
{
|
|
@@ -359,9 +363,9 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
359
363
|
strokeLinecap: "round"
|
|
360
364
|
}
|
|
361
365
|
) });
|
|
362
|
-
}), wo = K(function({ size: e = 10, ...n }, r) {
|
|
363
|
-
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M5 2v6M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
364
366
|
}), ko = K(function({ size: e = 10, ...n }, r) {
|
|
367
|
+
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M5 2v6M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
368
|
+
}), No = K(function({ size: e = 10, ...n }, r) {
|
|
365
369
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s("path", { d: "M2 5h6", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }) });
|
|
366
370
|
}), qt = K(function({ size: e = 10, ...n }, r) {
|
|
367
371
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
@@ -375,7 +379,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
375
379
|
strokeLinejoin: "round"
|
|
376
380
|
}
|
|
377
381
|
) });
|
|
378
|
-
}),
|
|
382
|
+
}), xr = K(function({ size: e = 10, ...n }, r) {
|
|
379
383
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
380
384
|
"path",
|
|
381
385
|
{
|
|
@@ -386,7 +390,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
386
390
|
strokeLinecap: "round"
|
|
387
391
|
}
|
|
388
392
|
) });
|
|
389
|
-
}),
|
|
393
|
+
}), _p = K(function({ size: e = 10, ...n }, r) {
|
|
390
394
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
391
395
|
"path",
|
|
392
396
|
{
|
|
@@ -397,7 +401,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
397
401
|
strokeLinecap: "round"
|
|
398
402
|
}
|
|
399
403
|
) });
|
|
400
|
-
}),
|
|
404
|
+
}), gp = K(function({ size: e = 10, ...n }, r) {
|
|
401
405
|
return /* @__PURE__ */ s("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: /* @__PURE__ */ s(
|
|
402
406
|
"path",
|
|
403
407
|
{
|
|
@@ -409,7 +413,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
409
413
|
strokeLinejoin: "round"
|
|
410
414
|
}
|
|
411
415
|
) });
|
|
412
|
-
}),
|
|
416
|
+
}), $r = K(function({ size: e = 12, range: n = !1, ...r }, o) {
|
|
413
417
|
return /* @__PURE__ */ x("svg", { ref: o, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...r, children: [
|
|
414
418
|
/* @__PURE__ */ s("rect", { x: "1", y: "1.6", width: "8", height: "7.7", rx: "1.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
415
419
|
/* @__PURE__ */ s(
|
|
@@ -423,7 +427,7 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
423
427
|
}
|
|
424
428
|
)
|
|
425
429
|
] });
|
|
426
|
-
}),
|
|
430
|
+
}), Sr = K(function({ size: e = 12, ...n }, r) {
|
|
427
431
|
return /* @__PURE__ */ x("svg", { ref: r, viewBox: "0 0 10 10", width: e, height: e, "aria-hidden": "true", ...n, children: [
|
|
428
432
|
/* @__PURE__ */ s("circle", { cx: "5", cy: "5", r: "4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4" }),
|
|
429
433
|
/* @__PURE__ */ s(
|
|
@@ -438,15 +442,15 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
438
442
|
}
|
|
439
443
|
)
|
|
440
444
|
] });
|
|
441
|
-
}),
|
|
445
|
+
}), mn = {
|
|
442
446
|
neutral: { role: "status", live: "polite" },
|
|
443
447
|
accent: { role: "status", live: "polite" },
|
|
444
448
|
success: { role: "status", live: "polite" },
|
|
445
449
|
warning: { role: "alert" },
|
|
446
450
|
danger: { role: "alert" },
|
|
447
451
|
loading: { role: "status", live: "polite" }
|
|
448
|
-
},
|
|
449
|
-
const p = ve(), { role: v, live: m } =
|
|
452
|
+
}, vp = K(function({ tone: e = "neutral", title: n, actions: r, onDismiss: o, dismissLabel: i, className: a, children: c, ...f }, d) {
|
|
453
|
+
const p = ve(), { role: v, live: m } = mn[e];
|
|
450
454
|
return /* @__PURE__ */ x(
|
|
451
455
|
"div",
|
|
452
456
|
{
|
|
@@ -465,36 +469,36 @@ const $n = () => Qe(wr) ?? yr, tt = () => $n().formats, ve = () => $n().wording,
|
|
|
465
469
|
]
|
|
466
470
|
}
|
|
467
471
|
);
|
|
468
|
-
}),
|
|
469
|
-
badge:
|
|
470
|
-
pill:
|
|
471
|
-
neutral:
|
|
472
|
-
accent:
|
|
473
|
-
success:
|
|
474
|
-
warning:
|
|
475
|
-
danger:
|
|
476
|
-
},
|
|
477
|
-
return /* @__PURE__ */ s("span", { ref: a, className: z(
|
|
478
|
-
}),
|
|
479
|
-
function
|
|
480
|
-
return /* @__PURE__ */ s(
|
|
481
|
-
}
|
|
482
|
-
function
|
|
483
|
-
return /* @__PURE__ */ s(
|
|
472
|
+
}), xo = "_badge_19q39_4 _text_1krlf_23", $o = "_pill_19q39_19", So = "_neutral_19q39_34", To = "_accent_19q39_39", Do = "_success_19q39_44", Ao = "_warning_19q39_49", Mo = "_danger_19q39_54", cn = {
|
|
473
|
+
badge: xo,
|
|
474
|
+
pill: $o,
|
|
475
|
+
neutral: So,
|
|
476
|
+
accent: To,
|
|
477
|
+
success: Do,
|
|
478
|
+
warning: Ao,
|
|
479
|
+
danger: Mo
|
|
480
|
+
}, bp = K(function({ tone: e = "neutral", pill: n = !1, className: r, children: o, ...i }, a) {
|
|
481
|
+
return /* @__PURE__ */ s("span", { ref: a, className: z(cn.badge, n && cn.pill, cn[e], r), ...i, children: o });
|
|
482
|
+
}), Tn = it(null);
|
|
483
|
+
function Co({ size: t, children: e }) {
|
|
484
|
+
return /* @__PURE__ */ s(Tn.Provider, { value: t, children: e });
|
|
485
|
+
}
|
|
486
|
+
function Dn({ children: t }) {
|
|
487
|
+
return /* @__PURE__ */ s(Tn.Provider, { value: null, children: t });
|
|
484
488
|
}
|
|
485
489
|
function Be(t) {
|
|
486
|
-
const e = Qe(
|
|
490
|
+
const e = Qe(Tn);
|
|
487
491
|
return t ?? e ?? "md";
|
|
488
492
|
}
|
|
489
|
-
const
|
|
490
|
-
spinner:
|
|
491
|
-
},
|
|
493
|
+
const Ro = "_spinner_1tmf7_4", Lo = {
|
|
494
|
+
spinner: Ro
|
|
495
|
+
}, An = K(function({ size: e = 14, className: n, ...r }, o) {
|
|
492
496
|
const i = ve();
|
|
493
497
|
return /* @__PURE__ */ x(
|
|
494
498
|
"svg",
|
|
495
499
|
{
|
|
496
500
|
ref: o,
|
|
497
|
-
className: z(
|
|
501
|
+
className: z(Lo.spinner, n),
|
|
498
502
|
width: e,
|
|
499
503
|
height: e,
|
|
500
504
|
viewBox: "0 0 16 16",
|
|
@@ -508,31 +512,31 @@ const Co = "_spinner_1tmf7_4", Ro = {
|
|
|
508
512
|
]
|
|
509
513
|
}
|
|
510
514
|
);
|
|
511
|
-
}),
|
|
512
|
-
function
|
|
513
|
-
const n = Qe(
|
|
515
|
+
}), Mn = it(null);
|
|
516
|
+
function yp(t, e) {
|
|
517
|
+
const n = Qe(Mn);
|
|
514
518
|
return t !== void 0 ? t : n != null && n.densityGiven ? n.density === "compact" ? "compact" : "regular" : e;
|
|
515
519
|
}
|
|
516
|
-
const
|
|
520
|
+
const Eo = {
|
|
517
521
|
density: "comfortable",
|
|
518
522
|
portalTarget: null,
|
|
519
523
|
toast: {}
|
|
520
|
-
},
|
|
521
|
-
function
|
|
522
|
-
const { portalTarget: t } =
|
|
524
|
+
}, Cn = () => Qe(Mn) ?? Eo, wp = () => Cn().density, Po = () => Cn().toast;
|
|
525
|
+
function Rn() {
|
|
526
|
+
const { portalTarget: t } = Cn();
|
|
523
527
|
return ye(
|
|
524
528
|
() => typeof t == "function" ? t : () => t,
|
|
525
529
|
[t]
|
|
526
530
|
);
|
|
527
531
|
}
|
|
528
|
-
function
|
|
532
|
+
function kp({
|
|
529
533
|
density: t,
|
|
530
534
|
portalTarget: e = null,
|
|
531
535
|
toast: n,
|
|
532
536
|
language: r,
|
|
533
537
|
children: o
|
|
534
538
|
}) {
|
|
535
|
-
const i =
|
|
539
|
+
const i = Sn(), a = ye(
|
|
536
540
|
() => ({
|
|
537
541
|
density: t ?? "comfortable",
|
|
538
542
|
densityGiven: t !== void 0,
|
|
@@ -541,8 +545,8 @@ function yp({
|
|
|
541
545
|
}),
|
|
542
546
|
[t, e, n]
|
|
543
547
|
);
|
|
544
|
-
return /* @__PURE__ */ s(
|
|
545
|
-
|
|
548
|
+
return /* @__PURE__ */ s(Mn.Provider, { value: a, children: /* @__PURE__ */ s(
|
|
549
|
+
wo,
|
|
546
550
|
{
|
|
547
551
|
formats: r ? r.formats : i.formats,
|
|
548
552
|
wording: r ? r.wording : i.wording,
|
|
@@ -550,12 +554,12 @@ function yp({
|
|
|
550
554
|
}
|
|
551
555
|
) });
|
|
552
556
|
}
|
|
553
|
-
function
|
|
557
|
+
function Ln(t, e) {
|
|
554
558
|
return (t == null ? void 0 : t.closest("dialog")) ?? e() ?? document.body;
|
|
555
559
|
}
|
|
556
|
-
const
|
|
557
|
-
function
|
|
558
|
-
const { align: o = "start", side: i = "bottom", offset: a =
|
|
560
|
+
const Fo = 6, zo = 8, Io = 240;
|
|
561
|
+
function Tr(t, e, n, r = {}) {
|
|
562
|
+
const { align: o = "start", side: i = "bottom", offset: a = Fo, margin: c = zo } = r, { top: f = 0, left: d = 0 } = n, p = f + n.height - t.bottom - a - c, v = t.top - f - a - c, m = i === "top" ? v : p, _ = i === "top" ? p : v, l = m >= e.height || _ >= e.height, u = Math.max(m, _) >= Io;
|
|
559
563
|
let h, y, w;
|
|
560
564
|
if (l)
|
|
561
565
|
h = m < e.height, y = i === "top" !== h ? t.top - a - e.height : t.bottom + a;
|
|
@@ -569,25 +573,25 @@ function $r(t, e, n, r = {}) {
|
|
|
569
573
|
const k = i === "top" !== h, S = (g) => g === "end" ? t.right - e.width : g === "center" ? t.left + t.width / 2 - e.width / 2 : t.left, P = (g) => g >= d + c && g + e.width <= d + n.width - c, T = [o, o === "start" ? "end" : o === "end" ? "start" : "center", "center"].find((g) => P(S(g))) ?? o, U = Math.max(d + c, Math.min(S(T), d + n.width - e.width - c));
|
|
570
574
|
return { top: y, left: U, flipped: h, side: k ? "top" : "bottom", align: T, ...w === void 0 ? {} : { maxHeight: w } };
|
|
571
575
|
}
|
|
572
|
-
function
|
|
576
|
+
function En(t, e) {
|
|
573
577
|
return `${e === "start" ? "left" : e === "end" ? "right" : "center"} ${t === "bottom" ? "top" : "bottom"}`;
|
|
574
578
|
}
|
|
575
|
-
function
|
|
579
|
+
function Dr() {
|
|
576
580
|
const t = window.visualViewport;
|
|
577
581
|
return t ? { top: t.offsetTop, left: t.offsetLeft, width: t.width, height: t.height } : { width: window.innerWidth, height: window.innerHeight };
|
|
578
582
|
}
|
|
579
|
-
function
|
|
583
|
+
function on() {
|
|
580
584
|
return typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
581
585
|
}
|
|
582
586
|
function Vt(t, e) {
|
|
583
587
|
const n = t.getPropertyValue(e).trim(), r = Number.parseFloat(n);
|
|
584
588
|
return Number.isFinite(r) ? n.endsWith("ms") ? r : n.endsWith("s") ? r * 1e3 : r : 0;
|
|
585
589
|
}
|
|
586
|
-
function
|
|
590
|
+
function Ar(t, e, n) {
|
|
587
591
|
const [r, o] = j(t);
|
|
588
592
|
return t && !r && o(!0), Ke(() => {
|
|
589
593
|
if (t || !r) return;
|
|
590
|
-
const i = e.current, a = i && !
|
|
594
|
+
const i = e.current, a = i && !on() ? Vt(getComputedStyle(i), n) : 0;
|
|
591
595
|
if (a <= 0) {
|
|
592
596
|
o(!1);
|
|
593
597
|
return;
|
|
@@ -602,34 +606,34 @@ function Oe(...t) {
|
|
|
602
606
|
typeof n == "function" ? n(e) : n && (n.current = e);
|
|
603
607
|
};
|
|
604
608
|
}
|
|
605
|
-
const
|
|
606
|
-
function
|
|
607
|
-
return
|
|
609
|
+
const Bo = Number(br.split(".")[0]) >= 19;
|
|
610
|
+
function Mr(t) {
|
|
611
|
+
return Bo ? t.props.ref : t.ref;
|
|
608
612
|
}
|
|
609
|
-
const
|
|
610
|
-
tooltip:
|
|
611
|
-
content:
|
|
613
|
+
const Oo = "_tooltip_1hs6u_4 _text_1krlf_23", Ho = "_content_1hs6u_24 _ink_1krlf_50", Vn = {
|
|
614
|
+
tooltip: Oo,
|
|
615
|
+
content: Ho
|
|
612
616
|
};
|
|
613
|
-
function
|
|
614
|
-
const [r, o] = j(!1), i = e.props["aria-expanded"] === !0, a = r && !i, [c, f] = j(null), [d, p] = j(null), v =
|
|
617
|
+
function Cr({ content: t, children: e, delay: n = 300 }) {
|
|
618
|
+
const [r, o] = j(!1), i = e.props["aria-expanded"] === !0, a = r && !i, [c, f] = j(null), [d, p] = j(null), v = Rn(), m = O(null), _ = O(null), l = O(null), u = Me(), h = Ar(a, _, "--u-duration-exit-fast"), y = () => {
|
|
615
619
|
l.current && clearTimeout(l.current), l.current = setTimeout(() => o(!0), n);
|
|
616
620
|
}, w = () => {
|
|
617
621
|
l.current && clearTimeout(l.current), o(!1);
|
|
618
622
|
};
|
|
619
623
|
Ke(() => {
|
|
620
|
-
a && p(
|
|
624
|
+
a && p(Ln(m.current, v));
|
|
621
625
|
}, [a, v]), Ke(() => {
|
|
622
626
|
var U;
|
|
623
627
|
if (!a || !d) return;
|
|
624
628
|
const P = (U = m.current) == null ? void 0 : U.getBoundingClientRect(), D = _.current;
|
|
625
629
|
if (!P || !D) return;
|
|
626
|
-
const T =
|
|
630
|
+
const T = Tr(
|
|
627
631
|
P,
|
|
628
632
|
{ width: D.offsetWidth, height: D.offsetHeight },
|
|
629
|
-
|
|
633
|
+
Dr(),
|
|
630
634
|
{ align: "center", side: "top", offset: 8 }
|
|
631
635
|
);
|
|
632
|
-
f({ top: T.top, left: T.left, "--_origin":
|
|
636
|
+
f({ top: T.top, left: T.left, "--_origin": En(T.side, "center") });
|
|
633
637
|
}, [a, d, t]), le(() => {
|
|
634
638
|
if (!a) return;
|
|
635
639
|
const P = (D) => {
|
|
@@ -643,9 +647,9 @@ function Ar({ content: t, children: e, delay: n = 300 }) {
|
|
|
643
647
|
}, []);
|
|
644
648
|
const k = e.props, S = a && t !== k["aria-label"];
|
|
645
649
|
return /* @__PURE__ */ x(Le, { children: [
|
|
646
|
-
|
|
650
|
+
yr(e, {
|
|
647
651
|
// eslint-disable-next-line react-hooks/refs
|
|
648
|
-
ref: Oe(m,
|
|
652
|
+
ref: Oe(m, Mr(e)),
|
|
649
653
|
/* Added to the child's own description, not put in its place: a field's
|
|
650
654
|
hint went silent for as long as the tooltip stood. */
|
|
651
655
|
"aria-describedby": [k["aria-describedby"], S ? u : void 0].filter(Boolean).join(" ") || void 0,
|
|
@@ -673,35 +677,35 @@ function Ar({ content: t, children: e, delay: n = 300 }) {
|
|
|
673
677
|
(D = k.onBlur) == null || D.call(k, P), w();
|
|
674
678
|
}
|
|
675
679
|
}),
|
|
676
|
-
h && d &&
|
|
680
|
+
h && d && $n(
|
|
677
681
|
/* @__PURE__ */ s(
|
|
678
682
|
"div",
|
|
679
683
|
{
|
|
680
684
|
ref: _,
|
|
681
685
|
id: u,
|
|
682
686
|
role: "tooltip",
|
|
683
|
-
className:
|
|
687
|
+
className: Vn.tooltip,
|
|
684
688
|
"data-closing": !a || void 0,
|
|
685
689
|
"aria-hidden": !a || void 0,
|
|
686
690
|
style: { ...c, visibility: c ? void 0 : "hidden" },
|
|
687
|
-
children: /* @__PURE__ */ s(
|
|
691
|
+
children: /* @__PURE__ */ s(Dn, { children: /* @__PURE__ */ s("div", { className: Vn.content, children: t }) })
|
|
688
692
|
}
|
|
689
693
|
),
|
|
690
694
|
d
|
|
691
695
|
)
|
|
692
696
|
] });
|
|
693
697
|
}
|
|
694
|
-
const
|
|
695
|
-
button:
|
|
696
|
-
sm:
|
|
697
|
-
square:
|
|
698
|
-
label:
|
|
699
|
-
primary:
|
|
700
|
-
danger:
|
|
701
|
-
secondary:
|
|
702
|
-
ghost:
|
|
703
|
-
plain:
|
|
704
|
-
spinner:
|
|
698
|
+
const qo = "_button_brl4b_4 _ring_1krlf_126 _text_1krlf_23", jo = "_sm_brl4b_49", Wo = "_square_brl4b_60", Go = "_label_brl4b_70", Uo = "_primary_brl4b_84", Vo = "_danger_brl4b_95", Yo = "_secondary_brl4b_110", Ko = "_ghost_brl4b_127", Xo = "_plain_brl4b_140", Zo = "_spinner_brl4b_161", Bt = {
|
|
699
|
+
button: qo,
|
|
700
|
+
sm: jo,
|
|
701
|
+
square: Wo,
|
|
702
|
+
label: Go,
|
|
703
|
+
primary: Uo,
|
|
704
|
+
danger: Vo,
|
|
705
|
+
secondary: Yo,
|
|
706
|
+
ghost: Ko,
|
|
707
|
+
plain: Xo,
|
|
708
|
+
spinner: Zo
|
|
705
709
|
}, $e = K(function({ variant: e = "secondary", size: n, loading: r = !1, disabled: o, className: i, children: a, type: c, ...f }, d) {
|
|
706
710
|
const p = Be(n);
|
|
707
711
|
return /* @__PURE__ */ x(
|
|
@@ -714,28 +718,32 @@ const Ho = "_button_brl4b_4 _ring_1krlf_126 _text_1krlf_23", qo = "_sm_brl4b_49"
|
|
|
714
718
|
"aria-busy": r || void 0,
|
|
715
719
|
...f,
|
|
716
720
|
children: [
|
|
717
|
-
r && /* @__PURE__ */ s(
|
|
721
|
+
r && /* @__PURE__ */ s(An, { className: Bt.spinner }),
|
|
718
722
|
/* @__PURE__ */ s("span", { className: Bt.label, children: a })
|
|
719
723
|
]
|
|
720
724
|
}
|
|
721
725
|
);
|
|
722
|
-
}),
|
|
723
|
-
return /* @__PURE__ */ s(
|
|
724
|
-
}),
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
726
|
+
}), _n = K(function({ variant: e = "plain", className: n, ...r }, o) {
|
|
727
|
+
return /* @__PURE__ */ s(Cr, { content: r["aria-label"], children: /* @__PURE__ */ s($e, { ref: o, variant: e, className: z(Bt.square, n), ...r }) });
|
|
728
|
+
}), Qo = Number.parseInt(br, 10) >= 19 ? !0 : "";
|
|
729
|
+
function Yt(t) {
|
|
730
|
+
return { inert: t ? Qo : void 0 };
|
|
731
|
+
}
|
|
732
|
+
const Jo = "_field_u6mkr_4 _text_1krlf_23", es = "_label_u6mkr_16", ts = "_required_u6mkr_23", ns = "_message_u6mkr_32", rs = "_hint_u6mkr_39", os = "_error_u6mkr_43", Ft = {
|
|
733
|
+
field: Jo,
|
|
734
|
+
label: es,
|
|
735
|
+
required: ts,
|
|
736
|
+
message: ns,
|
|
737
|
+
hint: rs,
|
|
738
|
+
error: os
|
|
739
|
+
}, Pn = it(null);
|
|
732
740
|
function He() {
|
|
733
|
-
return Qe(
|
|
741
|
+
return Qe(Pn);
|
|
734
742
|
}
|
|
735
|
-
function
|
|
736
|
-
return /* @__PURE__ */ s(
|
|
743
|
+
function ss({ children: t }) {
|
|
744
|
+
return /* @__PURE__ */ s(Pn.Provider, { value: null, children: t });
|
|
737
745
|
}
|
|
738
|
-
const
|
|
746
|
+
const Np = K(function({ label: e, hint: n, error: r, required: o = !1, fieldId: i, className: a, children: c, ...f }, d) {
|
|
739
747
|
const p = Me(), v = i ?? p, m = `${v}-message`, _ = `${v}-label`, l = !!(r ?? n);
|
|
740
748
|
return /* @__PURE__ */ x("div", { ref: d, className: z(Ft.field, a), ...f, children: [
|
|
741
749
|
/* @__PURE__ */ x("label", { id: _, className: Ft.label, htmlFor: v, children: [
|
|
@@ -743,7 +751,7 @@ const wp = K(function({ label: e, hint: n, error: r, required: o = !1, fieldId:
|
|
|
743
751
|
o && /* @__PURE__ */ s("span", { className: Ft.required, "aria-hidden": "true", children: "*" })
|
|
744
752
|
] }),
|
|
745
753
|
/* @__PURE__ */ s(
|
|
746
|
-
|
|
754
|
+
Pn.Provider,
|
|
747
755
|
{
|
|
748
756
|
value: { id: v, labelId: _, describedBy: l ? m : void 0, invalid: !!r, required: o },
|
|
749
757
|
children: c
|
|
@@ -751,8 +759,8 @@ const wp = K(function({ label: e, hint: n, error: r, required: o = !1, fieldId:
|
|
|
751
759
|
),
|
|
752
760
|
l && /* @__PURE__ */ s("p", { id: m, className: z(Ft.message, r ? Ft.error : Ft.hint), children: r ?? n })
|
|
753
761
|
] });
|
|
754
|
-
}),
|
|
755
|
-
panel:
|
|
762
|
+
}), as = "_panel_ixtzk_9 _text_1krlf_23", is = {
|
|
763
|
+
panel: as
|
|
756
764
|
};
|
|
757
765
|
function $t({
|
|
758
766
|
open: t,
|
|
@@ -776,7 +784,7 @@ function $t({
|
|
|
776
784
|
le(() => {
|
|
777
785
|
y.current = o;
|
|
778
786
|
});
|
|
779
|
-
const [w, k] = j(null), [S, P] = j(null), D =
|
|
787
|
+
const [w, k] = j(null), [S, P] = j(null), D = Rn(), T = Ar(t, h, "--u-duration-exit-fast"), U = T && !t, g = se(
|
|
780
788
|
(M) => {
|
|
781
789
|
var W;
|
|
782
790
|
e(!1), M && d && ((W = (r ?? n).current) == null || W.focus());
|
|
@@ -787,16 +795,16 @@ function $t({
|
|
|
787
795
|
const M = (B = n.current) == null ? void 0 : B.getBoundingClientRect(), W = h.current;
|
|
788
796
|
if (!M || !W) return;
|
|
789
797
|
c === "anchor" ? W.style.width = `${f ? Math.max(M.width, f) : M.width}px` : typeof c == "number" && (W.style.width = `${c}px`), W.style.maxHeight = "";
|
|
790
|
-
const $ = W.getBoundingClientRect(), H = getComputedStyle(W).transform, C = H && H !== "none" ? new DOMMatrixReadOnly(H).a : 1, R =
|
|
798
|
+
const $ = W.getBoundingClientRect(), H = getComputedStyle(W).transform, C = H && H !== "none" ? new DOMMatrixReadOnly(H).a : 1, R = Tr(
|
|
791
799
|
M,
|
|
792
800
|
{ width: $.width / C, height: $.height / C },
|
|
793
|
-
|
|
801
|
+
Dr(),
|
|
794
802
|
{ align: i, offset: a }
|
|
795
803
|
);
|
|
796
804
|
R.maxHeight !== void 0 && (W.style.maxHeight = `${R.maxHeight}px`), k(R);
|
|
797
805
|
}, [n, i, a, c, f]);
|
|
798
806
|
return Ke(() => {
|
|
799
|
-
t && P(
|
|
807
|
+
t && P(Ln(n.current, D));
|
|
800
808
|
}, [t, n, D]), Ke(() => {
|
|
801
809
|
!t || !S || F();
|
|
802
810
|
}, [t, S, F]), le(() => {
|
|
@@ -824,7 +832,7 @@ function $t({
|
|
|
824
832
|
return document.addEventListener("mousedown", W), document.addEventListener("keydown", $), window.addEventListener("scroll", R, !0), window.addEventListener("resize", R), B == null || B.addEventListener("resize", C), B == null || B.addEventListener("scroll", C), () => {
|
|
825
833
|
B == null || B.removeEventListener("resize", C), B == null || B.removeEventListener("scroll", C), document.removeEventListener("mousedown", W), document.removeEventListener("keydown", $), window.removeEventListener("scroll", R, !0), window.removeEventListener("resize", R), H && cancelAnimationFrame(H);
|
|
826
834
|
};
|
|
827
|
-
}, [t, n, g, F, p]), !T || !S ? null :
|
|
835
|
+
}, [t, n, g, F, p]), !T || !S ? null : $n(
|
|
828
836
|
/* @__PURE__ */ s(
|
|
829
837
|
"div",
|
|
830
838
|
{
|
|
@@ -832,15 +840,15 @@ function $t({
|
|
|
832
840
|
id: _,
|
|
833
841
|
role: v,
|
|
834
842
|
"aria-label": m,
|
|
835
|
-
className: z(
|
|
843
|
+
className: z(is.panel, l),
|
|
836
844
|
"data-closing": U || void 0,
|
|
837
|
-
|
|
845
|
+
...Yt(U),
|
|
838
846
|
"aria-hidden": U || void 0,
|
|
839
847
|
style: {
|
|
840
848
|
top: (w == null ? void 0 : w.top) ?? 0,
|
|
841
849
|
left: (w == null ? void 0 : w.left) ?? 0,
|
|
842
850
|
/* The motion origin, computed here and drawn by the stylesheet. */
|
|
843
|
-
"--_origin": w ?
|
|
851
|
+
"--_origin": w ? En(w.side, w.align) : void 0,
|
|
844
852
|
/* Not shown before the first measurement, or it flashes in the top
|
|
845
853
|
left. Transparent and not `visibility: hidden`: a hidden panel takes
|
|
846
854
|
no focus, and the first opening of a menu lost its move to the first
|
|
@@ -848,20 +856,20 @@ function $t({
|
|
|
848
856
|
transparent pass is never seen. */
|
|
849
857
|
opacity: w ? void 0 : 0
|
|
850
858
|
},
|
|
851
|
-
children: /* @__PURE__ */ s(
|
|
859
|
+
children: /* @__PURE__ */ s(ss, { children: /* @__PURE__ */ s(Dn, { children: u }) })
|
|
852
860
|
}
|
|
853
861
|
),
|
|
854
862
|
S
|
|
855
863
|
);
|
|
856
864
|
}
|
|
857
|
-
const
|
|
858
|
-
panel:
|
|
859
|
-
item:
|
|
860
|
-
danger:
|
|
861
|
-
separator:
|
|
862
|
-
content:
|
|
863
|
-
},
|
|
864
|
-
function
|
|
865
|
+
const cs = "_panel_1j8wy_4", ls = "_item_1j8wy_16", ds = "_danger_1j8wy_58", us = "_separator_1j8wy_70", fs = "_content_1j8wy_77", Lt = {
|
|
866
|
+
panel: cs,
|
|
867
|
+
item: ls,
|
|
868
|
+
danger: ds,
|
|
869
|
+
separator: us,
|
|
870
|
+
content: fs
|
|
871
|
+
}, Fn = it(null);
|
|
872
|
+
function Rr(t, e, n) {
|
|
865
873
|
var i, a, c, f;
|
|
866
874
|
const r = Array.from((e == null ? void 0 : e.querySelectorAll('[role="menuitem"]:not([disabled])')) ?? []);
|
|
867
875
|
if (r.length === 0) return;
|
|
@@ -884,20 +892,20 @@ function Mr(t, e, n) {
|
|
|
884
892
|
break;
|
|
885
893
|
}
|
|
886
894
|
}
|
|
887
|
-
function
|
|
895
|
+
function Lr({ trigger: t, children: e, align: n = "start" }) {
|
|
888
896
|
const [r, o] = j(!1), i = O(null), a = O(null), c = Me(), f = () => {
|
|
889
897
|
var m;
|
|
890
898
|
o(!1), (m = i.current) == null || m.focus();
|
|
891
899
|
}, d = se((m) => {
|
|
892
900
|
var _;
|
|
893
901
|
a.current = m, (_ = m == null ? void 0 : m.querySelector('[role="menuitem"]:not([disabled])')) == null || _.focus();
|
|
894
|
-
}, []), p = (m) =>
|
|
902
|
+
}, []), p = (m) => Rr(m, a.current, f), v = t.props;
|
|
895
903
|
return /* @__PURE__ */ x(Le, { children: [
|
|
896
|
-
|
|
904
|
+
yr(t, {
|
|
897
905
|
/* The trigger keeps its own ref beside the menu's. The rule takes a
|
|
898
906
|
ref handed on as one read during render; nothing reads `.current`. */
|
|
899
907
|
// eslint-disable-next-line react-hooks/refs
|
|
900
|
-
ref: Oe(i,
|
|
908
|
+
ref: Oe(i, Mr(t)),
|
|
901
909
|
"aria-haspopup": "menu",
|
|
902
910
|
"aria-expanded": r,
|
|
903
911
|
"aria-controls": r ? c : void 0,
|
|
@@ -916,13 +924,13 @@ function Cr({ trigger: t, children: e, align: n = "start" }) {
|
|
|
916
924
|
role: "menu",
|
|
917
925
|
id: c,
|
|
918
926
|
className: Lt.panel,
|
|
919
|
-
children: /* @__PURE__ */ s("div", { ref: d, className: Lt.content, onKeyDown: p, children: /* @__PURE__ */ s(
|
|
927
|
+
children: /* @__PURE__ */ s("div", { ref: d, className: Lt.content, onKeyDown: p, children: /* @__PURE__ */ s(Fn.Provider, { value: { close: f }, children: e }) })
|
|
920
928
|
}
|
|
921
929
|
)
|
|
922
930
|
] });
|
|
923
931
|
}
|
|
924
|
-
const
|
|
925
|
-
const f = Qe(
|
|
932
|
+
const hs = K(function({ onSelect: e, tone: n = "default", className: r, children: o, onClick: i, ...a }, c) {
|
|
933
|
+
const f = Qe(Fn);
|
|
926
934
|
return /* @__PURE__ */ s(
|
|
927
935
|
"button",
|
|
928
936
|
{
|
|
@@ -938,16 +946,16 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
938
946
|
children: o
|
|
939
947
|
}
|
|
940
948
|
);
|
|
941
|
-
}),
|
|
949
|
+
}), xp = K(function({ className: e, ...n }, r) {
|
|
942
950
|
return /* @__PURE__ */ s("div", { ref: r, className: z(Lt.separator, e), ...n, role: "separator" });
|
|
943
|
-
}),
|
|
944
|
-
group:
|
|
945
|
-
split:
|
|
946
|
-
trigger:
|
|
947
|
-
arrow:
|
|
948
|
-
},
|
|
949
|
-
return /* @__PURE__ */ s("div", { ref: i, role: "group", className: z(
|
|
950
|
-
}),
|
|
951
|
+
}), ps = "_group_1ul68_9", ms = "_split_1ul68_98", _s = "_trigger_1ul68_98", gs = "_arrow_1ul68_105", Xt = {
|
|
952
|
+
group: ps,
|
|
953
|
+
split: ms,
|
|
954
|
+
trigger: _s,
|
|
955
|
+
arrow: gs
|
|
956
|
+
}, vs = K(function({ size: e, className: n, children: r, ...o }, i) {
|
|
957
|
+
return /* @__PURE__ */ s("div", { ref: i, role: "group", className: z(Xt.group, n), ...o, children: e ? /* @__PURE__ */ s(Co, { size: e, children: r }) : r });
|
|
958
|
+
}), $p = K(function({
|
|
951
959
|
children: e,
|
|
952
960
|
menu: n,
|
|
953
961
|
variant: r = "secondary",
|
|
@@ -959,10 +967,10 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
959
967
|
...d
|
|
960
968
|
}, p) {
|
|
961
969
|
const v = ve(), m = Be(o);
|
|
962
|
-
return /* @__PURE__ */ x(
|
|
970
|
+
return /* @__PURE__ */ x(vs, { className: z(Xt.split, f), children: [
|
|
963
971
|
/* @__PURE__ */ s($e, { ref: p, variant: r, size: m, disabled: c, ...d, children: e }),
|
|
964
972
|
/* @__PURE__ */ s(
|
|
965
|
-
|
|
973
|
+
Lr,
|
|
966
974
|
{
|
|
967
975
|
align: a,
|
|
968
976
|
trigger: /* @__PURE__ */ s(
|
|
@@ -972,8 +980,8 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
972
980
|
size: m,
|
|
973
981
|
disabled: c,
|
|
974
982
|
"aria-label": i ?? v.moreActions,
|
|
975
|
-
className:
|
|
976
|
-
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 6", "aria-hidden": "true", className:
|
|
983
|
+
className: Xt.trigger,
|
|
984
|
+
children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 6", "aria-hidden": "true", className: Xt.arrow, children: /* @__PURE__ */ s(
|
|
977
985
|
"path",
|
|
978
986
|
{
|
|
979
987
|
d: "M1 1.2 5 4.8 9 1.2",
|
|
@@ -990,21 +998,21 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
990
998
|
}
|
|
991
999
|
)
|
|
992
1000
|
] });
|
|
993
|
-
}),
|
|
994
|
-
card:
|
|
995
|
-
header:
|
|
996
|
-
divider:
|
|
997
|
-
body:
|
|
998
|
-
collapse:
|
|
999
|
-
collapsed:
|
|
1000
|
-
collapseInner:
|
|
1001
|
-
headerText:
|
|
1002
|
-
eyebrow:
|
|
1003
|
-
title:
|
|
1004
|
-
headerRight:
|
|
1005
|
-
collapseButton:
|
|
1006
|
-
flush:
|
|
1007
|
-
},
|
|
1001
|
+
}), bs = "_card_14fhx_4 _text_1krlf_23", ys = "_header_14fhx_22", ws = "_divider_14fhx_31", ks = "_body_14fhx_37", Ns = "_collapse_14fhx_38", xs = "_collapsed_14fhx_50", $s = "_collapseInner_14fhx_54", Ss = "_headerText_14fhx_61", Ts = "_eyebrow_14fhx_69", Ds = "_title_14fhx_77", As = "_headerRight_14fhx_86", Ms = "_collapseButton_14fhx_93 _ring_1krlf_126", Cs = "_flush_14fhx_37", Ze = {
|
|
1002
|
+
card: bs,
|
|
1003
|
+
header: ys,
|
|
1004
|
+
divider: ws,
|
|
1005
|
+
body: ks,
|
|
1006
|
+
collapse: Ns,
|
|
1007
|
+
collapsed: xs,
|
|
1008
|
+
collapseInner: $s,
|
|
1009
|
+
headerText: Ss,
|
|
1010
|
+
eyebrow: Ts,
|
|
1011
|
+
title: Ds,
|
|
1012
|
+
headerRight: As,
|
|
1013
|
+
collapseButton: Ms,
|
|
1014
|
+
flush: Cs
|
|
1015
|
+
}, zn = it(null), Sp = K(function({
|
|
1008
1016
|
collapsible: e = !1,
|
|
1009
1017
|
defaultCollapsed: n = !1,
|
|
1010
1018
|
collapsed: r,
|
|
@@ -1017,14 +1025,14 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1017
1025
|
v || p(!m), o == null || o(!m);
|
|
1018
1026
|
}, l = Me();
|
|
1019
1027
|
return /* @__PURE__ */ s("section", { ref: f, className: z(Ze.card, i), ...c, children: /* @__PURE__ */ s(
|
|
1020
|
-
|
|
1028
|
+
zn.Provider,
|
|
1021
1029
|
{
|
|
1022
1030
|
value: { collapsible: e, collapsed: m, toggle: _, bodyId: l },
|
|
1023
1031
|
children: a
|
|
1024
1032
|
}
|
|
1025
1033
|
) });
|
|
1026
|
-
}),
|
|
1027
|
-
const f = Qe(
|
|
1034
|
+
}), Tp = K(function({ title: e, eyebrow: n, actions: r, divider: o = !1, className: i, ...a }, c) {
|
|
1035
|
+
const f = Qe(zn), d = ve();
|
|
1028
1036
|
return /* @__PURE__ */ x("div", { ref: c, className: z(Ze.header, o && Ze.divider, i), ...a, children: [
|
|
1029
1037
|
/* @__PURE__ */ x("div", { className: Ze.headerText, children: [
|
|
1030
1038
|
n && /* @__PURE__ */ s("span", { className: Ze.eyebrow, children: n }),
|
|
@@ -1045,8 +1053,8 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1045
1053
|
)
|
|
1046
1054
|
] })
|
|
1047
1055
|
] });
|
|
1048
|
-
}),
|
|
1049
|
-
const a = Qe(
|
|
1056
|
+
}), Dp = K(function({ flush: e = !1, className: n, children: r, ...o }, i) {
|
|
1057
|
+
const a = Qe(zn), c = /* @__PURE__ */ s(
|
|
1050
1058
|
"div",
|
|
1051
1059
|
{
|
|
1052
1060
|
ref: i,
|
|
@@ -1056,19 +1064,19 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1056
1064
|
children: r
|
|
1057
1065
|
}
|
|
1058
1066
|
);
|
|
1059
|
-
return a != null && a.collapsible ? /* @__PURE__ */ s("div", { className: z(Ze.collapse, a.collapsed && Ze.collapsed), children: /* @__PURE__ */ s("div", { className: Ze.collapseInner,
|
|
1060
|
-
}),
|
|
1061
|
-
wrapper:
|
|
1062
|
-
input:
|
|
1063
|
-
box:
|
|
1064
|
-
check:
|
|
1065
|
-
dash:
|
|
1066
|
-
label:
|
|
1067
|
-
field:
|
|
1068
|
-
sm:
|
|
1069
|
-
},
|
|
1067
|
+
return a != null && a.collapsible ? /* @__PURE__ */ s("div", { className: z(Ze.collapse, a.collapsed && Ze.collapsed), children: /* @__PURE__ */ s("div", { className: Ze.collapseInner, ...Yt(a.collapsed), children: c }) }) : c;
|
|
1068
|
+
}), Rs = "_wrapper_lde7v_6 _text_1krlf_23", Ls = "_input_lde7v_20", Es = "_box_lde7v_27", Ps = "_check_lde7v_46", Fs = "_dash_lde7v_79", zs = "_label_lde7v_125", Is = "_field_lde7v_138", Bs = "_sm_lde7v_148", vt = {
|
|
1069
|
+
wrapper: Rs,
|
|
1070
|
+
input: Ls,
|
|
1071
|
+
box: Es,
|
|
1072
|
+
check: Ps,
|
|
1073
|
+
dash: Fs,
|
|
1074
|
+
label: zs,
|
|
1075
|
+
field: Is,
|
|
1076
|
+
sm: Bs
|
|
1077
|
+
}, In = K(function({ label: e, indeterminate: n = !1, className: r, style: o, id: i, ...a }, c) {
|
|
1070
1078
|
const f = O(null);
|
|
1071
|
-
|
|
1079
|
+
xn(c, () => f.current), le(() => {
|
|
1072
1080
|
f.current && (f.current.indeterminate = n);
|
|
1073
1081
|
}, [n]);
|
|
1074
1082
|
const d = He(), p = i ?? (d == null ? void 0 : d.id), v = Be(void 0);
|
|
@@ -1092,7 +1100,7 @@ const us = K(function({ onSelect: e, tone: n = "default", className: r, children
|
|
|
1092
1100
|
e && /* @__PURE__ */ s("span", { className: vt.label, children: e })
|
|
1093
1101
|
] });
|
|
1094
1102
|
});
|
|
1095
|
-
function
|
|
1103
|
+
function Er(t, e, n) {
|
|
1096
1104
|
const r = O(null), [o, i] = j(!1), a = O(!1), c = () => {
|
|
1097
1105
|
if (a.current) {
|
|
1098
1106
|
a.current = !1;
|
|
@@ -1111,7 +1119,7 @@ function Rr(t, e, n) {
|
|
|
1111
1119
|
}
|
|
1112
1120
|
if (!d.open) return;
|
|
1113
1121
|
const p = typeof e == "number" ? e : Vt(getComputedStyle(d), e);
|
|
1114
|
-
if (p <= 0 ||
|
|
1122
|
+
if (p <= 0 || on()) {
|
|
1115
1123
|
a.current = !0, d.close();
|
|
1116
1124
|
return;
|
|
1117
1125
|
}
|
|
@@ -1128,42 +1136,42 @@ function xt(t) {
|
|
|
1128
1136
|
(e) => `_${e.codePointAt(0).toString(16)}_`
|
|
1129
1137
|
);
|
|
1130
1138
|
}
|
|
1131
|
-
function
|
|
1139
|
+
function Jt(t, e) {
|
|
1132
1140
|
const n = e.trim().toLowerCase();
|
|
1133
1141
|
return n ? t.filter((r) => r.label.toLowerCase().includes(n)) : t;
|
|
1134
1142
|
}
|
|
1135
|
-
function
|
|
1143
|
+
function Yn(t) {
|
|
1136
1144
|
return t.filter((e) => !e.disabled).map((e) => e.value);
|
|
1137
1145
|
}
|
|
1138
|
-
function
|
|
1146
|
+
function Os(t, e) {
|
|
1139
1147
|
const n = new Set(t);
|
|
1140
1148
|
return e.forEach((r) => n.add(r)), [...n];
|
|
1141
1149
|
}
|
|
1142
|
-
function
|
|
1150
|
+
function Kn(t, e) {
|
|
1143
1151
|
const n = new Set(e);
|
|
1144
1152
|
return t.filter((r) => !n.has(r));
|
|
1145
1153
|
}
|
|
1146
|
-
function
|
|
1154
|
+
function Hs(t, e) {
|
|
1147
1155
|
const n = new Set(t);
|
|
1148
1156
|
return e.forEach((r) => {
|
|
1149
1157
|
n.has(r) ? n.delete(r) : n.add(r);
|
|
1150
1158
|
}), [...n];
|
|
1151
1159
|
}
|
|
1152
|
-
function
|
|
1160
|
+
function Bn(t, e, n) {
|
|
1153
1161
|
return e <= 0 ? 0 : (t + n + e) % e;
|
|
1154
1162
|
}
|
|
1155
|
-
function
|
|
1163
|
+
function qs(t, e) {
|
|
1156
1164
|
if (e === null) return 0;
|
|
1157
1165
|
const n = t.findIndex((r) => r.value === e);
|
|
1158
1166
|
return n === -1 ? 0 : n;
|
|
1159
1167
|
}
|
|
1160
|
-
const
|
|
1161
|
-
function
|
|
1168
|
+
const js = 10, Ws = 8, Gs = 0.5, Us = 3, Vs = /[\p{L}\p{N}]/u, Ys = (t) => t !== t.toLowerCase() && t === t.toUpperCase(), Ks = (t) => t !== t.toUpperCase() && t === t.toLowerCase();
|
|
1169
|
+
function Xs(t, e) {
|
|
1162
1170
|
if (e === 0) return !0;
|
|
1163
1171
|
const n = t[e - 1], r = t[e];
|
|
1164
|
-
return
|
|
1172
|
+
return Vs.test(n) ? Ks(n) && Ys(r) : !0;
|
|
1165
1173
|
}
|
|
1166
|
-
function
|
|
1174
|
+
function Xn(t, e) {
|
|
1167
1175
|
const n = t.trim().toLowerCase();
|
|
1168
1176
|
if (n === "" || n.length > e.length) return null;
|
|
1169
1177
|
const r = e.toLowerCase();
|
|
@@ -1173,7 +1181,7 @@ function Kn(t, e) {
|
|
|
1173
1181
|
const v = new Array(e.length).fill(null), m = new Array(e.length).fill(null);
|
|
1174
1182
|
for (let _ = 0; _ < e.length; _++) {
|
|
1175
1183
|
if (r[_] !== n[p]) continue;
|
|
1176
|
-
const l =
|
|
1184
|
+
const l = Xs(e, _) ? js : 0;
|
|
1177
1185
|
if (p === 0) {
|
|
1178
1186
|
v[_] = l;
|
|
1179
1187
|
continue;
|
|
@@ -1181,7 +1189,7 @@ function Kn(t, e) {
|
|
|
1181
1189
|
for (let u = 0; u < _; u++) {
|
|
1182
1190
|
const h = o[u] ?? null;
|
|
1183
1191
|
if (h === null) continue;
|
|
1184
|
-
const y = h + l + (u === _ - 1 ?
|
|
1192
|
+
const y = h + l + (u === _ - 1 ? Ws : 0);
|
|
1185
1193
|
(v[_] === null || y > v[_]) && (v[_] = y, m[_] = u);
|
|
1186
1194
|
}
|
|
1187
1195
|
}
|
|
@@ -1196,10 +1204,10 @@ function Kn(t, e) {
|
|
|
1196
1204
|
for (let p = n.length - 1; p >= 0 && f !== null; p--)
|
|
1197
1205
|
c.push(f), f = i[p][f];
|
|
1198
1206
|
c.reverse();
|
|
1199
|
-
const d = (e.length - n.length) *
|
|
1200
|
-
return { rank: o[a] - d, finds:
|
|
1207
|
+
const d = (e.length - n.length) * Gs;
|
|
1208
|
+
return { rank: o[a] - d, finds: Zs(c) };
|
|
1201
1209
|
}
|
|
1202
|
-
function
|
|
1210
|
+
function Zs(t) {
|
|
1203
1211
|
const e = [];
|
|
1204
1212
|
for (const n of t) {
|
|
1205
1213
|
const r = e[e.length - 1];
|
|
@@ -1207,18 +1215,18 @@ function Ks(t) {
|
|
|
1207
1215
|
}
|
|
1208
1216
|
return e;
|
|
1209
1217
|
}
|
|
1210
|
-
function
|
|
1218
|
+
function Qs(t, e) {
|
|
1211
1219
|
var a;
|
|
1212
1220
|
const n = e.trim();
|
|
1213
1221
|
if (n === "") return [];
|
|
1214
|
-
const r = n.toLowerCase(), o = n.length >=
|
|
1222
|
+
const r = n.toLowerCase(), o = n.length >= Us, i = [];
|
|
1215
1223
|
for (const c of t) {
|
|
1216
|
-
const f = c.gewicht ?? 0, d =
|
|
1224
|
+
const f = c.gewicht ?? 0, d = Xn(n, c.name);
|
|
1217
1225
|
if (d !== null) {
|
|
1218
1226
|
i.push({ tier: 0, find: { kandidat: c, rank: d.rank + f, finds: d.finds } });
|
|
1219
1227
|
continue;
|
|
1220
1228
|
}
|
|
1221
|
-
const p = c.gruppe === void 0 ? null :
|
|
1229
|
+
const p = c.gruppe === void 0 ? null : Xn(n, c.gruppe);
|
|
1222
1230
|
if (p !== null) {
|
|
1223
1231
|
i.push({ tier: 1, find: { kandidat: c, rank: p.rank + f, finds: [] } });
|
|
1224
1232
|
continue;
|
|
@@ -1227,46 +1235,46 @@ function Xs(t, e) {
|
|
|
1227
1235
|
}
|
|
1228
1236
|
return i.sort((c, f) => c.tier - f.tier || f.find.rank - c.find.rank).map((c) => c.find);
|
|
1229
1237
|
}
|
|
1230
|
-
const
|
|
1238
|
+
const Js = 150, Zn = /* @__PURE__ */ new WeakMap();
|
|
1231
1239
|
let Ct = null;
|
|
1232
|
-
function
|
|
1233
|
-
const e =
|
|
1240
|
+
function ea(t) {
|
|
1241
|
+
const e = Zn.get(t);
|
|
1234
1242
|
if ((e == null ? void 0 : e.parentElement) === t) return e;
|
|
1235
1243
|
const n = document.createElement("div");
|
|
1236
|
-
return n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("data-umriss-announcer", ""), n.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0", t.append(n),
|
|
1244
|
+
return n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("data-umriss-announcer", ""), n.style.cssText = "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0", t.append(n), Zn.set(t, n), n;
|
|
1237
1245
|
}
|
|
1238
1246
|
function pt(t, e) {
|
|
1239
1247
|
if (typeof document > "u") return;
|
|
1240
|
-
const n =
|
|
1248
|
+
const n = ea(Ln(e, () => null));
|
|
1241
1249
|
Ct !== null && clearTimeout(Ct), Ct = setTimeout(() => {
|
|
1242
1250
|
Ct = null;
|
|
1243
1251
|
const r = document.createElement("div");
|
|
1244
1252
|
r.textContent = t, n.replaceChildren(r);
|
|
1245
|
-
},
|
|
1253
|
+
}, Js);
|
|
1246
1254
|
}
|
|
1247
|
-
function
|
|
1255
|
+
function On() {
|
|
1248
1256
|
Ct !== null && clearTimeout(Ct), Ct = null;
|
|
1249
1257
|
}
|
|
1250
|
-
const
|
|
1251
|
-
dialog:
|
|
1252
|
-
pane:
|
|
1253
|
-
field:
|
|
1254
|
-
bodyWrap:
|
|
1255
|
-
body:
|
|
1256
|
-
list:
|
|
1257
|
-
groupHeading:
|
|
1258
|
-
row:
|
|
1259
|
-
rowActive:
|
|
1260
|
-
icon:
|
|
1261
|
-
name:
|
|
1262
|
-
mark:
|
|
1263
|
-
group:
|
|
1264
|
-
noFinds:
|
|
1265
|
-
moreFinds:
|
|
1266
|
-
footer:
|
|
1267
|
-
key:
|
|
1258
|
+
const ta = "_dialog_1kg16_7 _text_1krlf_23", na = "_pane_1kg16_2", ra = "_field_1kg16_87 _field_1krlf_91", oa = "_bodyWrap_1kg16_126", sa = "_body_1kg16_126", aa = "_list_1kg16_147 _scroll_1krlf_97", ia = "_groupHeading_1kg16_157", ca = "_row_1kg16_166", la = "_rowActive_1kg16_180", da = "_icon_1kg16_188", ua = "_name_1kg16_197", fa = "_mark_1kg16_208", ha = "_group_1kg16_157", pa = "_noFinds_1kg16_219", ma = "_moreFinds_1kg16_220", _a = "_footer_1kg16_229", ga = "_key_1kg16_245", xe = {
|
|
1259
|
+
dialog: ta,
|
|
1260
|
+
pane: na,
|
|
1261
|
+
field: ra,
|
|
1262
|
+
bodyWrap: oa,
|
|
1263
|
+
body: sa,
|
|
1264
|
+
list: aa,
|
|
1265
|
+
groupHeading: ia,
|
|
1266
|
+
row: ca,
|
|
1267
|
+
rowActive: la,
|
|
1268
|
+
icon: da,
|
|
1269
|
+
name: ua,
|
|
1270
|
+
mark: fa,
|
|
1271
|
+
group: ha,
|
|
1272
|
+
noFinds: pa,
|
|
1273
|
+
moreFinds: ma,
|
|
1274
|
+
footer: _a,
|
|
1275
|
+
key: ga
|
|
1268
1276
|
};
|
|
1269
|
-
function
|
|
1277
|
+
function Qn(t) {
|
|
1270
1278
|
return {
|
|
1271
1279
|
name: t.label,
|
|
1272
1280
|
gruppe: t.searchedGroup ?? t.group,
|
|
@@ -1277,7 +1285,7 @@ function Zn(t) {
|
|
|
1277
1285
|
icon: t.icon
|
|
1278
1286
|
};
|
|
1279
1287
|
}
|
|
1280
|
-
const
|
|
1288
|
+
const Ap = K(function({
|
|
1281
1289
|
open: e,
|
|
1282
1290
|
onClose: n,
|
|
1283
1291
|
items: r,
|
|
@@ -1292,9 +1300,9 @@ const Tp = K(function({
|
|
|
1292
1300
|
...m
|
|
1293
1301
|
}, _) {
|
|
1294
1302
|
var ie;
|
|
1295
|
-
const l = ve(), u = Me(), h = `${u}-list`, { dialogRef: y, beimSchliessen: w, beimAbbrechen: k } =
|
|
1303
|
+
const l = ve(), u = Me(), h = `${u}-list`, { dialogRef: y, beimSchliessen: w, beimAbbrechen: k } = Er(e, 0, n), S = O(null), P = O(null), [D, T] = j(""), [U, g] = j(null), F = D.trim() !== "", M = ye(() => r.map(Qn), [r]), W = ye(() => Qs(M, D), [M, D]), $ = ye(
|
|
1296
1304
|
() => (i ?? []).map((b) => ({
|
|
1297
|
-
kandidat:
|
|
1305
|
+
kandidat: Qn(b),
|
|
1298
1306
|
rank: 0,
|
|
1299
1307
|
finds: []
|
|
1300
1308
|
})),
|
|
@@ -1321,13 +1329,13 @@ const Tp = K(function({
|
|
|
1321
1329
|
const ue = B.length + C;
|
|
1322
1330
|
le(() => {
|
|
1323
1331
|
if (!e) {
|
|
1324
|
-
|
|
1332
|
+
On();
|
|
1325
1333
|
return;
|
|
1326
1334
|
}
|
|
1327
1335
|
!F && ue === 0 || pt(ue === 0 ? l.paletteNoFinds : l.paletteFindCount(ue), S.current);
|
|
1328
1336
|
}, [e, D, F, ue]), le(() => {
|
|
1329
1337
|
var b;
|
|
1330
|
-
Y !== null && ((b = document.getElementById(
|
|
1338
|
+
Y !== null && ((b = document.getElementById(gn(u, Y))) == null || b.scrollIntoView({ block: "nearest" }));
|
|
1331
1339
|
}, [Y, u]);
|
|
1332
1340
|
const fe = O(null), [Z, Q] = j(0);
|
|
1333
1341
|
le(() => {
|
|
@@ -1339,7 +1347,7 @@ const Tp = K(function({
|
|
|
1339
1347
|
}, [e]);
|
|
1340
1348
|
const I = (b) => {
|
|
1341
1349
|
if (ne(), B.length === 0) return;
|
|
1342
|
-
const A = B.findIndex((V) => V.kandidat.id === Y), L = B[
|
|
1350
|
+
const A = B.findIndex((V) => V.kandidat.id === Y), L = B[Bn(A === -1 ? 0 : A, B.length, b)].kandidat;
|
|
1343
1351
|
g(L.id), pt(l.optionActive(L.name, { group: L.gruppe }), S.current);
|
|
1344
1352
|
}, J = (b) => {
|
|
1345
1353
|
if (!(b.nativeEvent.isComposing || b.defaultPrevented)) {
|
|
@@ -1391,7 +1399,7 @@ const Tp = K(function({
|
|
|
1391
1399
|
role: "combobox",
|
|
1392
1400
|
"aria-expanded": B.length > 0,
|
|
1393
1401
|
"aria-controls": B.length > 0 ? h : void 0,
|
|
1394
|
-
"aria-activedescendant": Y === null ? void 0 :
|
|
1402
|
+
"aria-activedescendant": Y === null ? void 0 : gn(u, Y),
|
|
1395
1403
|
autoComplete: "off",
|
|
1396
1404
|
spellCheck: !1,
|
|
1397
1405
|
onChange: (b) => {
|
|
@@ -1410,7 +1418,7 @@ const Tp = K(function({
|
|
|
1410
1418
|
className: xe.list,
|
|
1411
1419
|
children: R.map((b) => {
|
|
1412
1420
|
const A = `${u}-group-${xt(b.name ?? "")}`, L = b.finds.map((V) => /* @__PURE__ */ s(
|
|
1413
|
-
|
|
1421
|
+
va,
|
|
1414
1422
|
{
|
|
1415
1423
|
find: V,
|
|
1416
1424
|
baseId: u,
|
|
@@ -1453,8 +1461,8 @@ const Tp = K(function({
|
|
|
1453
1461
|
] })
|
|
1454
1462
|
}
|
|
1455
1463
|
);
|
|
1456
|
-
}),
|
|
1457
|
-
function
|
|
1464
|
+
}), gn = (t, e) => `${t}-${xt(e)}`;
|
|
1465
|
+
function va({
|
|
1458
1466
|
find: t,
|
|
1459
1467
|
baseId: e,
|
|
1460
1468
|
active: n,
|
|
@@ -1467,7 +1475,7 @@ function _a({
|
|
|
1467
1475
|
return /* @__PURE__ */ x(
|
|
1468
1476
|
"div",
|
|
1469
1477
|
{
|
|
1470
|
-
id:
|
|
1478
|
+
id: gn(e, c.id),
|
|
1471
1479
|
role: "option",
|
|
1472
1480
|
"aria-selected": n,
|
|
1473
1481
|
className: z(xe.row, n && xe.rowActive),
|
|
@@ -1478,13 +1486,13 @@ function _a({
|
|
|
1478
1486
|
},
|
|
1479
1487
|
children: [
|
|
1480
1488
|
r && /* @__PURE__ */ s("span", { className: xe.icon, "aria-hidden": "true", children: c.icon }),
|
|
1481
|
-
/* @__PURE__ */ s("span", { className: xe.name, children:
|
|
1489
|
+
/* @__PURE__ */ s("span", { className: xe.name, children: ba(c.name, t.finds) }),
|
|
1482
1490
|
c.group !== void 0 && /* @__PURE__ */ s("span", { className: xe.group, children: c.group })
|
|
1483
1491
|
]
|
|
1484
1492
|
}
|
|
1485
1493
|
);
|
|
1486
1494
|
}
|
|
1487
|
-
function
|
|
1495
|
+
function ba(t, e) {
|
|
1488
1496
|
if (e.length === 0) return t;
|
|
1489
1497
|
const n = [];
|
|
1490
1498
|
let r = 0;
|
|
@@ -1494,10 +1502,10 @@ function ga(t, e) {
|
|
|
1494
1502
|
), r = o.to;
|
|
1495
1503
|
}), r < t.length && n.push(t.slice(r)), n;
|
|
1496
1504
|
}
|
|
1497
|
-
function
|
|
1505
|
+
function ya(t) {
|
|
1498
1506
|
return t instanceof HTMLElement ? t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable : !1;
|
|
1499
1507
|
}
|
|
1500
|
-
function
|
|
1508
|
+
function Mp(t) {
|
|
1501
1509
|
const e = O(t);
|
|
1502
1510
|
le(() => {
|
|
1503
1511
|
e.current = t;
|
|
@@ -1507,23 +1515,23 @@ function Dp(t) {
|
|
|
1507
1515
|
r.preventDefault(), e.current();
|
|
1508
1516
|
return;
|
|
1509
1517
|
}
|
|
1510
|
-
r.key === "/" && !r.metaKey && !r.ctrlKey && !
|
|
1518
|
+
r.key === "/" && !r.metaKey && !r.ctrlKey && !ya(r.target) && (r.preventDefault(), e.current());
|
|
1511
1519
|
};
|
|
1512
1520
|
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
1513
1521
|
}, []);
|
|
1514
1522
|
}
|
|
1515
|
-
const
|
|
1516
|
-
panel:
|
|
1517
|
-
list:
|
|
1518
|
-
option:
|
|
1519
|
-
active:
|
|
1520
|
-
selected:
|
|
1521
|
-
optionDisabled:
|
|
1522
|
-
optionLabel:
|
|
1523
|
-
groupLabel:
|
|
1524
|
-
empty:
|
|
1525
|
-
},
|
|
1526
|
-
function
|
|
1523
|
+
const wa = "_panel_14isp_6", ka = "_list_14isp_14 _scroll_1krlf_97", Na = "_option_14isp_22", xa = "_active_14isp_37", $a = "_selected_14isp_41", Sa = "_optionDisabled_14isp_46", Ta = "_optionLabel_14isp_55", Da = "_groupLabel_14isp_63", Aa = "_empty_14isp_70", _t = {
|
|
1524
|
+
panel: wa,
|
|
1525
|
+
list: ka,
|
|
1526
|
+
option: Na,
|
|
1527
|
+
active: xa,
|
|
1528
|
+
selected: $a,
|
|
1529
|
+
optionDisabled: Sa,
|
|
1530
|
+
optionLabel: Ta,
|
|
1531
|
+
groupLabel: Da,
|
|
1532
|
+
empty: Aa
|
|
1533
|
+
}, Hn = (t, e) => `${t}-${e}`;
|
|
1534
|
+
function Pr({
|
|
1527
1535
|
open: t,
|
|
1528
1536
|
onClose: e,
|
|
1529
1537
|
anchorRef: n,
|
|
@@ -1549,7 +1557,7 @@ function Lr({
|
|
|
1549
1557
|
const _ = (u, h) => /* @__PURE__ */ x(
|
|
1550
1558
|
"div",
|
|
1551
1559
|
{
|
|
1552
|
-
id:
|
|
1560
|
+
id: Hn(o, h),
|
|
1553
1561
|
"data-index": h,
|
|
1554
1562
|
role: "option",
|
|
1555
1563
|
"aria-selected": u.selected ?? !1,
|
|
@@ -1601,23 +1609,23 @@ function Lr({
|
|
|
1601
1609
|
}
|
|
1602
1610
|
);
|
|
1603
1611
|
}
|
|
1604
|
-
const
|
|
1605
|
-
wrapper:
|
|
1606
|
-
wrapperSm:
|
|
1607
|
-
wrapperClearable:
|
|
1608
|
-
input:
|
|
1609
|
-
sm:
|
|
1610
|
-
invalid:
|
|
1611
|
-
chevron:
|
|
1612
|
-
toggle:
|
|
1613
|
-
inputClearable:
|
|
1614
|
-
clear:
|
|
1615
|
-
},
|
|
1612
|
+
const Ma = "_wrapper_1ccfk_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_146", Ca = "_wrapperSm_1ccfk_16", Ra = "_wrapperClearable_1ccfk_20", La = "_input_1ccfk_24 _field_1krlf_91", Ea = "_sm_1ccfk_41", Pa = "_invalid_1ccfk_65", Fa = "_chevron_1ccfk_75", za = "_toggle_1ccfk_88", Ia = "_inputClearable_1ccfk_101", Ba = "_clear_1ccfk_105", dt = {
|
|
1613
|
+
wrapper: Ma,
|
|
1614
|
+
wrapperSm: Ca,
|
|
1615
|
+
wrapperClearable: Ra,
|
|
1616
|
+
input: La,
|
|
1617
|
+
sm: Ea,
|
|
1618
|
+
invalid: Pa,
|
|
1619
|
+
chevron: Fa,
|
|
1620
|
+
toggle: za,
|
|
1621
|
+
inputClearable: Ia,
|
|
1622
|
+
clear: Ba
|
|
1623
|
+
}, Jn = (t) => Math.max(1, Math.round(t));
|
|
1616
1624
|
function Et(t, { natural: e, extra: n } = {}) {
|
|
1617
1625
|
const r = t !== void 0 && Number.isFinite(t), o = {};
|
|
1618
|
-
return r ? (o["--_chars"] =
|
|
1626
|
+
return r ? (o["--_chars"] = Jn(t), o.inlineSize = "fit-content") : e !== void 0 && Number.isFinite(e) && (o["--_chars"] = Jn(e)), n !== void 0 && n > 0 && (o["--_extra"] = n), Object.keys(o).length > 0 ? o : void 0;
|
|
1619
1627
|
}
|
|
1620
|
-
const
|
|
1628
|
+
const Cp = K(function({
|
|
1621
1629
|
options: e,
|
|
1622
1630
|
value: n,
|
|
1623
1631
|
onChange: r,
|
|
@@ -1637,10 +1645,10 @@ const Ap = K(function({
|
|
|
1637
1645
|
"aria-describedby": y,
|
|
1638
1646
|
...w
|
|
1639
1647
|
}, k) {
|
|
1640
|
-
const S = Be(i), P = He(), D = ve(), T = o ?? D.comboboxPlaceholder, U = d ?? D.noMatches, g = f ?? (P == null ? void 0 : P.invalid) ?? !1, [F, M] = j(!1), [W, $] = j(null), [H, C] = j(0), R = O(null), B = O(null), Y = Me(), ce = ye(() => e.find((I) => I.value === n) ?? null, [e, n]), ne = ye(() =>
|
|
1641
|
-
C(
|
|
1648
|
+
const S = Be(i), P = He(), D = ve(), T = o ?? D.comboboxPlaceholder, U = d ?? D.noMatches, g = f ?? (P == null ? void 0 : P.invalid) ?? !1, [F, M] = j(!1), [W, $] = j(null), [H, C] = j(0), R = O(null), B = O(null), Y = Me(), ce = ye(() => e.find((I) => I.value === n) ?? null, [e, n]), ne = ye(() => Jt(e, W ?? ""), [e, W]), ae = (I) => pt(I === 0 ? U : D.optionCount(I), R.current), de = () => {
|
|
1649
|
+
C(qs(ne, n)), M(!0), ae(ne.length);
|
|
1642
1650
|
}, ue = () => {
|
|
1643
|
-
|
|
1651
|
+
On(), M(!1), $(null);
|
|
1644
1652
|
}, fe = (I) => {
|
|
1645
1653
|
var J;
|
|
1646
1654
|
I.disabled || (r(I.value), ue(), (J = R.current) == null || J.focus());
|
|
@@ -1651,7 +1659,7 @@ const Ap = K(function({
|
|
|
1651
1659
|
de();
|
|
1652
1660
|
return;
|
|
1653
1661
|
}
|
|
1654
|
-
const J =
|
|
1662
|
+
const J = Bn(H, ne.length, I.key === "ArrowDown" ? 1 : -1), pe = ne[J];
|
|
1655
1663
|
if (pe === void 0) return;
|
|
1656
1664
|
C(J), pt(
|
|
1657
1665
|
D.optionActive(pe.label, { selected: pe.value === n, disabled: pe.disabled }),
|
|
@@ -1694,7 +1702,7 @@ const Ap = K(function({
|
|
|
1694
1702
|
"aria-expanded": F,
|
|
1695
1703
|
"aria-controls": F ? Y : void 0,
|
|
1696
1704
|
"aria-autocomplete": "list",
|
|
1697
|
-
"aria-activedescendant": F && ne[H] ?
|
|
1705
|
+
"aria-activedescendant": F && ne[H] ? Hn(Y, H) : void 0,
|
|
1698
1706
|
"aria-label": u,
|
|
1699
1707
|
"aria-labelledby": h,
|
|
1700
1708
|
"aria-describedby": y ?? (P == null ? void 0 : P.describedBy),
|
|
@@ -1704,7 +1712,7 @@ const Ap = K(function({
|
|
|
1704
1712
|
value: Q,
|
|
1705
1713
|
className: z(dt.input, S === "sm" && dt.sm, p && dt.inputClearable, g && dt.invalid),
|
|
1706
1714
|
onChange: (I) => {
|
|
1707
|
-
$(I.target.value), C(0), F || de(), ae(
|
|
1715
|
+
$(I.target.value), C(0), F || de(), ae(Jt(e, I.target.value).length);
|
|
1708
1716
|
},
|
|
1709
1717
|
onClick: () => {
|
|
1710
1718
|
F || de();
|
|
@@ -1746,7 +1754,7 @@ const Ap = K(function({
|
|
|
1746
1754
|
}
|
|
1747
1755
|
),
|
|
1748
1756
|
/* @__PURE__ */ s(
|
|
1749
|
-
|
|
1757
|
+
Pr,
|
|
1750
1758
|
{
|
|
1751
1759
|
open: F,
|
|
1752
1760
|
onClose: ue,
|
|
@@ -1763,30 +1771,30 @@ const Ap = K(function({
|
|
|
1763
1771
|
)
|
|
1764
1772
|
] });
|
|
1765
1773
|
});
|
|
1766
|
-
function
|
|
1774
|
+
function Oa(t, e, n, r) {
|
|
1767
1775
|
const o = Math.min(...t), a = Math.max(...t) - o || 1, c = Math.max(1, t.length - 1);
|
|
1768
1776
|
return t.map((f, d) => {
|
|
1769
1777
|
const p = r + d / c * (e - r * 2), v = r + (1 - (f - o) / a) * (n - r * 2);
|
|
1770
1778
|
return [p, v];
|
|
1771
1779
|
});
|
|
1772
1780
|
}
|
|
1773
|
-
const
|
|
1774
|
-
meter:
|
|
1775
|
-
track:
|
|
1776
|
-
fill:
|
|
1777
|
-
neutral:
|
|
1778
|
-
accent:
|
|
1779
|
-
success:
|
|
1780
|
-
warning:
|
|
1781
|
-
danger:
|
|
1782
|
-
meterLabel:
|
|
1783
|
-
sparkline:
|
|
1784
|
-
sparklineFill:
|
|
1785
|
-
sparklineEnd:
|
|
1786
|
-
sparklineAccent:
|
|
1787
|
-
sparklineDot:
|
|
1788
|
-
},
|
|
1789
|
-
const f = tt(), d = ve(), p =
|
|
1781
|
+
const qn = (t) => Math.max(0, Math.min(1, t)), Fr = (t) => Math.round(qn(t) * 100), Ha = "_meter_1wz2z_4 _text_1krlf_23", qa = "_track_1wz2z_13", ja = "_fill_1wz2z_21", Wa = "_neutral_1wz2z_28", Ga = "_accent_1wz2z_29", Ua = "_success_1wz2z_30", Va = "_warning_1wz2z_31", Ya = "_danger_1wz2z_32", Ka = "_meterLabel_1wz2z_34", Xa = "_sparkline_1wz2z_45 _text_1krlf_23", Za = "_sparklineFill_1wz2z_56", Qa = "_sparklineEnd_1wz2z_66", Ja = "_sparklineAccent_1wz2z_81", ei = "_sparklineDot_1wz2z_85", ht = {
|
|
1782
|
+
meter: Ha,
|
|
1783
|
+
track: qa,
|
|
1784
|
+
fill: ja,
|
|
1785
|
+
neutral: Wa,
|
|
1786
|
+
accent: Ga,
|
|
1787
|
+
success: Ua,
|
|
1788
|
+
warning: Va,
|
|
1789
|
+
danger: Ya,
|
|
1790
|
+
meterLabel: Ka,
|
|
1791
|
+
sparkline: Xa,
|
|
1792
|
+
sparklineFill: Za,
|
|
1793
|
+
sparklineEnd: Qa,
|
|
1794
|
+
sparklineAccent: Ja,
|
|
1795
|
+
sparklineDot: ei
|
|
1796
|
+
}, Rp = K(function({ value: e, tone: n = "accent", showLabel: r = !0, label: o, className: i, ...a }, c) {
|
|
1797
|
+
const f = tt(), d = ve(), p = qn(e);
|
|
1790
1798
|
return /* @__PURE__ */ x(
|
|
1791
1799
|
"span",
|
|
1792
1800
|
{
|
|
@@ -1797,17 +1805,17 @@ const Hn = (t) => Math.max(0, Math.min(1, t)), Er = (t) => Math.round(Hn(t) * 10
|
|
|
1797
1805
|
role: "meter",
|
|
1798
1806
|
"aria-valuemin": 0,
|
|
1799
1807
|
"aria-valuemax": 100,
|
|
1800
|
-
"aria-valuenow":
|
|
1808
|
+
"aria-valuenow": Fr(e),
|
|
1801
1809
|
children: [
|
|
1802
1810
|
/* @__PURE__ */ s("span", { className: ht.track, children: /* @__PURE__ */ s("span", { className: z(ht.fill, ht[n]), style: { width: `${p * 100}%` } }) }),
|
|
1803
1811
|
r && /* @__PURE__ */ s("span", { className: ht.meterLabel, children: f.percent(p) })
|
|
1804
1812
|
]
|
|
1805
1813
|
}
|
|
1806
1814
|
);
|
|
1807
|
-
}),
|
|
1815
|
+
}), ti = K(function({ data: e, width: n = 96, height: r = 28, tone: o = "ink", className: i, ...a }, c) {
|
|
1808
1816
|
const f = Me();
|
|
1809
1817
|
if (e.length < 2) return null;
|
|
1810
|
-
const d = n === "fill", p = d ? 100 : n, v = d ? 100 : r, m = d ? 0 : 3, _ =
|
|
1818
|
+
const d = n === "fill", p = d ? 100 : n, v = d ? 100 : r, m = d ? 0 : 3, _ = Oa(e, p, v, m), l = _.map(([w, k]) => `${w},${k}`).join(" "), u = `M${m},${v - m} L${l.replace(/ /g, " L")} L${p - m},${v - m} Z`, [h, y] = _[_.length - 1] ?? [0, 0];
|
|
1811
1819
|
return /* @__PURE__ */ x(
|
|
1812
1820
|
"span",
|
|
1813
1821
|
{
|
|
@@ -1851,84 +1859,84 @@ const Hn = (t) => Math.max(0, Math.min(1, t)), Er = (t) => Math.round(Hn(t) * 10
|
|
|
1851
1859
|
]
|
|
1852
1860
|
}
|
|
1853
1861
|
);
|
|
1854
|
-
}), je = (t) => new Date(t.getFullYear(), t.getMonth(), 1), Rt = (t, e) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + e),
|
|
1862
|
+
}), je = (t) => new Date(t.getFullYear(), t.getMonth(), 1), Rt = (t, e) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + e), en = (t, e) => new Date(t.getFullYear(), t.getMonth() + e, 1), ni = (t, e) => {
|
|
1855
1863
|
const n = new Date(t.getFullYear(), t.getMonth() + e + 1, 0).getDate();
|
|
1856
1864
|
return new Date(t.getFullYear(), t.getMonth() + e, Math.min(t.getDate(), n));
|
|
1857
|
-
}, Xe = (t, e) => !!t && !!e && t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate(), Ie = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()),
|
|
1858
|
-
function
|
|
1865
|
+
}, Xe = (t, e) => !!t && !!e && t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate(), Ie = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), vn = (t, e) => Ie(t).getTime() < Ie(e).getTime(), ri = 42;
|
|
1866
|
+
function oi(t) {
|
|
1859
1867
|
const e = je(t), n = (e.getDay() + 6) % 7, r = Rt(e, -n);
|
|
1860
|
-
return Array.from({ length:
|
|
1868
|
+
return Array.from({ length: ri }, (o, i) => Rt(r, i));
|
|
1861
1869
|
}
|
|
1862
|
-
function
|
|
1870
|
+
function si(t, e, n) {
|
|
1863
1871
|
const r = e ?? n ?? null, o = !e && !!n;
|
|
1864
|
-
return !t || !r ? { from: null, to: null, isPreview: o } :
|
|
1872
|
+
return !t || !r ? { from: null, to: null, isPreview: o } : vn(r, t) ? { from: r, to: t, isPreview: o } : { from: t, to: r, isPreview: o };
|
|
1865
1873
|
}
|
|
1866
|
-
const
|
|
1874
|
+
const ai = {
|
|
1867
1875
|
ArrowLeft: -1,
|
|
1868
1876
|
ArrowRight: 1,
|
|
1869
1877
|
ArrowUp: -7,
|
|
1870
1878
|
ArrowDown: 7
|
|
1871
|
-
},
|
|
1872
|
-
trigger:
|
|
1873
|
-
sm:
|
|
1874
|
-
invalid:
|
|
1875
|
-
value:
|
|
1876
|
-
placeholder:
|
|
1877
|
-
icon:
|
|
1878
|
-
panel:
|
|
1879
|
-
head:
|
|
1880
|
-
month:
|
|
1881
|
-
weekdays:
|
|
1882
|
-
grid:
|
|
1883
|
-
day:
|
|
1884
|
-
otherMonth:
|
|
1885
|
-
today:
|
|
1886
|
-
selected:
|
|
1887
|
-
foot:
|
|
1888
|
-
hangStart:
|
|
1889
|
-
hangEnd:
|
|
1890
|
-
timeRow:
|
|
1891
|
-
timeLabel:
|
|
1892
|
-
timeGroup:
|
|
1893
|
-
timeFieldWrap:
|
|
1894
|
-
timeField:
|
|
1895
|
-
timeStepper:
|
|
1896
|
-
timeSeparator:
|
|
1897
|
-
dstHint:
|
|
1898
|
-
dstChoice:
|
|
1899
|
-
dstButtons:
|
|
1900
|
-
footLeft:
|
|
1901
|
-
triggerWrap:
|
|
1902
|
-
triggerWrapClearable:
|
|
1903
|
-
triggerClear:
|
|
1904
|
-
clearable:
|
|
1905
|
-
rangeDash:
|
|
1906
|
-
rangePanel:
|
|
1907
|
-
rangeRight:
|
|
1908
|
-
rangeBody:
|
|
1909
|
-
presetColumn:
|
|
1910
|
-
preset:
|
|
1911
|
-
presetActive:
|
|
1912
|
-
monthPair:
|
|
1913
|
-
monthColumn:
|
|
1914
|
-
pageSpacer:
|
|
1915
|
-
dayEmpty:
|
|
1916
|
-
inRange:
|
|
1917
|
-
rangeFrom:
|
|
1918
|
-
rangeTo:
|
|
1919
|
-
rangeSingle:
|
|
1920
|
-
inPreview:
|
|
1921
|
-
previewEnd:
|
|
1922
|
-
footNote:
|
|
1923
|
-
timeRangeRow:
|
|
1924
|
-
timeHalf:
|
|
1925
|
-
timeHalfHead:
|
|
1926
|
-
timeDate:
|
|
1927
|
-
footNoteRight:
|
|
1928
|
-
timeFieldDisabled:
|
|
1879
|
+
}, ii = (t) => ai[t], ci = (t, e) => t.getMonth() !== e.getMonth() || t.getFullYear() !== e.getFullYear(), li = "_trigger_sksjy_4", di = "_sm_sksjy_38", ui = "_invalid_sksjy_44", fi = "_value_sksjy_54", hi = "_placeholder_sksjy_65", pi = "_icon_sksjy_77", mi = "_panel_sksjy_86 _text_1krlf_23", _i = "_head_sksjy_97", gi = "_month_sksjy_105", vi = "_weekdays_sksjy_110", bi = "_grid_sksjy_111", yi = "_day_sksjy_130 _ring_1krlf_126", wi = "_otherMonth_sksjy_158", ki = "_today_sksjy_166", Ni = "_selected_sksjy_184", xi = "_foot_sksjy_191", $i = "_hangStart_sksjy_205", Si = "_hangEnd_sksjy_209", Ti = "_timeRow_sksjy_217", Di = "_timeLabel_sksjy_227", Ai = "_timeGroup_sksjy_235", Mi = "_timeFieldWrap_sksjy_245", Ci = "_timeField_sksjy_245 _field_1krlf_91", Ri = "_timeStepper_sksjy_286", Li = "_timeSeparator_sksjy_343", Ei = "_dstHint_sksjy_349", Pi = "_dstChoice_sksjy_356", Fi = "_dstButtons_sksjy_362", zi = "_footLeft_sksjy_367", Ii = "_triggerWrap_sksjy_382 _text_1krlf_23 _extent_1krlf_76", Bi = "_triggerWrapClearable_sksjy_392", Oi = "_triggerClear_sksjy_398", Hi = "_clearable_sksjy_425", qi = "_rangeDash_sksjy_457", ji = "_rangePanel_sksjy_462 _text_1krlf_23", Wi = "_rangeRight_sksjy_470", Gi = "_rangeBody_sksjy_474", Ui = "_presetColumn_sksjy_480", Vi = "_preset_sksjy_480 _ring_1krlf_126", Yi = "_presetActive_sksjy_513", Ki = "_monthPair_sksjy_520", Xi = "_monthColumn_sksjy_525", Zi = "_pageSpacer_sksjy_563", Qi = "_dayEmpty_sksjy_569", Ji = "_inRange_sksjy_576", ec = "_rangeFrom_sksjy_586", tc = "_rangeTo_sksjy_588", nc = "_rangeSingle_sksjy_590", rc = "_inPreview_sksjy_613", oc = "_previewEnd_sksjy_618", sc = "_footNote_sksjy_629", ac = "_timeRangeRow_sksjy_649", ic = "_timeHalf_sksjy_668", cc = "_timeHalfHead_sksjy_676", lc = "_timeDate_sksjy_683", dc = "_footNoteRight_sksjy_690", uc = "_timeFieldDisabled_sksjy_698", q = {
|
|
1880
|
+
trigger: li,
|
|
1881
|
+
sm: di,
|
|
1882
|
+
invalid: ui,
|
|
1883
|
+
value: fi,
|
|
1884
|
+
placeholder: hi,
|
|
1885
|
+
icon: pi,
|
|
1886
|
+
panel: mi,
|
|
1887
|
+
head: _i,
|
|
1888
|
+
month: gi,
|
|
1889
|
+
weekdays: vi,
|
|
1890
|
+
grid: bi,
|
|
1891
|
+
day: yi,
|
|
1892
|
+
otherMonth: wi,
|
|
1893
|
+
today: ki,
|
|
1894
|
+
selected: Ni,
|
|
1895
|
+
foot: xi,
|
|
1896
|
+
hangStart: $i,
|
|
1897
|
+
hangEnd: Si,
|
|
1898
|
+
timeRow: Ti,
|
|
1899
|
+
timeLabel: Di,
|
|
1900
|
+
timeGroup: Ai,
|
|
1901
|
+
timeFieldWrap: Mi,
|
|
1902
|
+
timeField: Ci,
|
|
1903
|
+
timeStepper: Ri,
|
|
1904
|
+
timeSeparator: Li,
|
|
1905
|
+
dstHint: Ei,
|
|
1906
|
+
dstChoice: Pi,
|
|
1907
|
+
dstButtons: Fi,
|
|
1908
|
+
footLeft: zi,
|
|
1909
|
+
triggerWrap: Ii,
|
|
1910
|
+
triggerWrapClearable: Bi,
|
|
1911
|
+
triggerClear: Oi,
|
|
1912
|
+
clearable: Hi,
|
|
1913
|
+
rangeDash: qi,
|
|
1914
|
+
rangePanel: ji,
|
|
1915
|
+
rangeRight: Wi,
|
|
1916
|
+
rangeBody: Gi,
|
|
1917
|
+
presetColumn: Ui,
|
|
1918
|
+
preset: Vi,
|
|
1919
|
+
presetActive: Yi,
|
|
1920
|
+
monthPair: Ki,
|
|
1921
|
+
monthColumn: Xi,
|
|
1922
|
+
pageSpacer: Zi,
|
|
1923
|
+
dayEmpty: Qi,
|
|
1924
|
+
inRange: Ji,
|
|
1925
|
+
rangeFrom: ec,
|
|
1926
|
+
rangeTo: tc,
|
|
1927
|
+
rangeSingle: nc,
|
|
1928
|
+
inPreview: rc,
|
|
1929
|
+
previewEnd: oc,
|
|
1930
|
+
footNote: sc,
|
|
1931
|
+
timeRangeRow: ac,
|
|
1932
|
+
timeHalf: ic,
|
|
1933
|
+
timeHalfHead: cc,
|
|
1934
|
+
timeDate: lc,
|
|
1935
|
+
footNoteRight: dc,
|
|
1936
|
+
timeFieldDisabled: uc
|
|
1929
1937
|
};
|
|
1930
1938
|
Mt.weekdays;
|
|
1931
|
-
function
|
|
1939
|
+
function tn({
|
|
1932
1940
|
autoFocus: t = !1,
|
|
1933
1941
|
view: e,
|
|
1934
1942
|
onView: n,
|
|
@@ -1955,22 +1963,22 @@ function en({
|
|
|
1955
1963
|
g && g.contains(document.activeElement) && ((F = g.querySelector('[data-active="true"]')) == null || F.focus());
|
|
1956
1964
|
}, [r]);
|
|
1957
1965
|
const w = (g) => {
|
|
1958
|
-
const F =
|
|
1966
|
+
const F = ii(g.key);
|
|
1959
1967
|
if (F !== void 0) {
|
|
1960
1968
|
g.preventDefault();
|
|
1961
1969
|
const M = Rt(r, F);
|
|
1962
|
-
o(M),
|
|
1970
|
+
o(M), ci(M, e) && n(je(M));
|
|
1963
1971
|
return;
|
|
1964
1972
|
}
|
|
1965
1973
|
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), a(r));
|
|
1966
1974
|
}, k = (g) => {
|
|
1967
|
-
n(
|
|
1968
|
-
}, S =
|
|
1975
|
+
n(en(e, g)), o(ni(r, g));
|
|
1976
|
+
}, S = oi(e), P = l ?? /* @__PURE__ */ new Date(), { from: D, to: T, isPreview: U } = si(c, f, d);
|
|
1969
1977
|
return /* @__PURE__ */ x(Le, { children: [
|
|
1970
1978
|
/* @__PURE__ */ x("div", { className: q.head, children: [
|
|
1971
|
-
v ? /* @__PURE__ */ s("span", { className: q.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(
|
|
1979
|
+
v ? /* @__PURE__ */ s("span", { className: q.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(_n, { size: "sm", "aria-label": u.previousMonth, onClick: () => k(-1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M6.4 1.8 3.2 5l3.2 3.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
1972
1980
|
/* @__PURE__ */ s("span", { className: q.month, children: h.month(e) }),
|
|
1973
|
-
m ? /* @__PURE__ */ s("span", { className: q.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(
|
|
1981
|
+
m ? /* @__PURE__ */ s("span", { className: q.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s(_n, { size: "sm", "aria-label": u.nextMonth, onClick: () => k(1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M3.6 1.8 6.8 5 3.6 8.2", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }) }) })
|
|
1974
1982
|
] }),
|
|
1975
1983
|
/* @__PURE__ */ s("div", { className: q.weekdays, "aria-hidden": "true", children: u.weekdays.map((g) => /* @__PURE__ */ s("span", { children: g }, g)) }),
|
|
1976
1984
|
/* @__PURE__ */ s(
|
|
@@ -1984,7 +1992,7 @@ function en({
|
|
|
1984
1992
|
const F = g.getMonth() === e.getMonth();
|
|
1985
1993
|
if (!F && _)
|
|
1986
1994
|
return /* @__PURE__ */ s("span", { className: q.dayEmpty, "aria-hidden": "true" }, g.toISOString());
|
|
1987
|
-
const M = Xe(g, r) && (F || !_), W = Xe(g, D), $ = Xe(g, T), H = W && $, C = !!D && !!T && !W && !$ &&
|
|
1995
|
+
const M = Xe(g, r) && (F || !_), W = Xe(g, D), $ = Xe(g, T), H = W && $, C = !!D && !!T && !W && !$ && vn(D, g) && vn(g, T), R = !T && Xe(g, c);
|
|
1988
1996
|
return /* @__PURE__ */ s(
|
|
1989
1997
|
"button",
|
|
1990
1998
|
{
|
|
@@ -2017,19 +2025,19 @@ function en({
|
|
|
2017
2025
|
)
|
|
2018
2026
|
] });
|
|
2019
2027
|
}
|
|
2020
|
-
const
|
|
2021
|
-
function
|
|
2022
|
-
const [o, i] =
|
|
2028
|
+
const bn = (t) => Ie(t), fc = (t, e) => new Date(t.getFullYear(), t.getMonth(), t.getDate(), 23, 59, e ? 59 : 0), hc = (t, e) => t.getTime() <= e.getTime() ? [t, e] : [e, t], zr = (t, e) => Ie(t).getTime() <= Ie(e).getTime() ? [t, e] : [e, t];
|
|
2029
|
+
function Ir(t, e, n, r) {
|
|
2030
|
+
const [o, i] = zr(t, e);
|
|
2023
2031
|
return {
|
|
2024
|
-
from:
|
|
2025
|
-
to: n === "day" ?
|
|
2032
|
+
from: bn(o),
|
|
2033
|
+
to: n === "day" ? bn(i) : fc(i, r)
|
|
2026
2034
|
};
|
|
2027
2035
|
}
|
|
2028
|
-
const
|
|
2029
|
-
function
|
|
2030
|
-
return Math.max(t(
|
|
2036
|
+
const pc = new Date(2026, 11, 28, 23, 58, 58);
|
|
2037
|
+
function sn(t, e) {
|
|
2038
|
+
return Math.max(t(pc), e.length);
|
|
2031
2039
|
}
|
|
2032
|
-
function
|
|
2040
|
+
function an({
|
|
2033
2041
|
wrapRef: t,
|
|
2034
2042
|
rootRef: e,
|
|
2035
2043
|
root: n,
|
|
@@ -2099,7 +2107,7 @@ function sn({
|
|
|
2099
2107
|
}
|
|
2100
2108
|
);
|
|
2101
2109
|
}
|
|
2102
|
-
const
|
|
2110
|
+
const Lp = K(function({
|
|
2103
2111
|
value: e,
|
|
2104
2112
|
onChange: n,
|
|
2105
2113
|
placeholder: r,
|
|
@@ -2118,11 +2126,11 @@ const Cp = K(function({
|
|
|
2118
2126
|
var R;
|
|
2119
2127
|
k(!1), C && ((R = U.current) == null || R.focus());
|
|
2120
2128
|
}, H = (C) => {
|
|
2121
|
-
n(
|
|
2129
|
+
n(bn(C)), $();
|
|
2122
2130
|
};
|
|
2123
2131
|
return /* @__PURE__ */ x(Le, { children: [
|
|
2124
2132
|
/* @__PURE__ */ s(
|
|
2125
|
-
|
|
2133
|
+
an,
|
|
2126
2134
|
{
|
|
2127
2135
|
rootRef: v,
|
|
2128
2136
|
root: p,
|
|
@@ -2134,14 +2142,14 @@ const Cp = K(function({
|
|
|
2134
2142
|
state: { disabled: o, invalid: y, clearable: f, size: m },
|
|
2135
2143
|
hasValue: !!e,
|
|
2136
2144
|
display: e && u.date(e),
|
|
2137
|
-
icon: /* @__PURE__ */ s(
|
|
2145
|
+
icon: /* @__PURE__ */ s($r, { className: q.icon }),
|
|
2138
2146
|
placeholder: h,
|
|
2139
2147
|
onClear: () => {
|
|
2140
2148
|
n(null), w && $(!1);
|
|
2141
2149
|
},
|
|
2142
2150
|
ariaLabel: l.dateClear,
|
|
2143
2151
|
chars: c,
|
|
2144
|
-
natural:
|
|
2152
|
+
natural: sn((C) => u.date(C).length, h)
|
|
2145
2153
|
}
|
|
2146
2154
|
),
|
|
2147
2155
|
/* @__PURE__ */ s(
|
|
@@ -2159,7 +2167,7 @@ const Cp = K(function({
|
|
|
2159
2167
|
className: q.panel,
|
|
2160
2168
|
children: /* @__PURE__ */ x("div", { ref: F, children: [
|
|
2161
2169
|
/* @__PURE__ */ s(
|
|
2162
|
-
|
|
2170
|
+
tn,
|
|
2163
2171
|
{
|
|
2164
2172
|
autoFocus: !0,
|
|
2165
2173
|
view: S,
|
|
@@ -2180,19 +2188,19 @@ const Cp = K(function({
|
|
|
2180
2188
|
}
|
|
2181
2189
|
)
|
|
2182
2190
|
] });
|
|
2183
|
-
}),
|
|
2184
|
-
function
|
|
2191
|
+
}), ln = (t, e, n, r) => t.getHours() === e && t.getMinutes() === n && t.getSeconds() === r;
|
|
2192
|
+
function jn(t, e, n, r, o, i) {
|
|
2185
2193
|
const a = new Date(t, e, n, r, o, i);
|
|
2186
|
-
if (!
|
|
2194
|
+
if (!ln(a, r, o, i))
|
|
2187
2195
|
return { kind: "missing", date: a };
|
|
2188
2196
|
const c = 36e5, f = new Date(a.getTime() - c);
|
|
2189
|
-
if (
|
|
2197
|
+
if (ln(f, r, o, i))
|
|
2190
2198
|
return { kind: "ambiguous", earlier: f, later: a };
|
|
2191
2199
|
const d = new Date(a.getTime() + c);
|
|
2192
|
-
return
|
|
2200
|
+
return ln(d, r, o, i) ? { kind: "ambiguous", earlier: a, later: d } : { kind: "ok", date: a };
|
|
2193
2201
|
}
|
|
2194
|
-
function
|
|
2195
|
-
const e =
|
|
2202
|
+
function yn(t) {
|
|
2203
|
+
const e = jn(
|
|
2196
2204
|
t.getFullYear(),
|
|
2197
2205
|
t.getMonth(),
|
|
2198
2206
|
t.getDate(),
|
|
@@ -2202,7 +2210,7 @@ function bn(t) {
|
|
|
2202
2210
|
);
|
|
2203
2211
|
return e.kind === "ambiguous" && t.getTime() >= e.later.getTime() ? "later" : "earlier";
|
|
2204
2212
|
}
|
|
2205
|
-
function
|
|
2213
|
+
function mc(t, e) {
|
|
2206
2214
|
const n = e ? 1e3 : 6e4;
|
|
2207
2215
|
return new Date(Math.floor(t.getTime() / n) * n);
|
|
2208
2216
|
}
|
|
@@ -2294,7 +2302,7 @@ function Ht({ value: t, onValue: e, max: n, label: r, next: o, own: i, disabled:
|
|
|
2294
2302
|
] })
|
|
2295
2303
|
] });
|
|
2296
2304
|
}
|
|
2297
|
-
const
|
|
2305
|
+
const Ep = K(function({
|
|
2298
2306
|
value: e,
|
|
2299
2307
|
onChange: n,
|
|
2300
2308
|
withSeconds: r = !1,
|
|
@@ -2309,11 +2317,11 @@ const Rp = K(function({
|
|
|
2309
2317
|
}, m) {
|
|
2310
2318
|
const _ = Be(a), l = He(), u = ve(), h = tt(), y = o ?? u.dateTimePlaceholder, w = f ?? (l == null ? void 0 : l.invalid) ?? !1, [k, S] = j(!1), [P, D] = j(() => je(e ?? /* @__PURE__ */ new Date())), [T, U] = j(() => e ?? /* @__PURE__ */ new Date()), [g, F] = j(e), [M, W] = j("00"), [$, H] = j("00"), [C, R] = j("00"), [B, Y] = j("earlier"), ce = O(null), ne = O(null), ae = O(null), de = O(null), ue = O(null), fe = O(null), Z = Me(), Q = () => {
|
|
2311
2319
|
const A = e ?? /* @__PURE__ */ new Date();
|
|
2312
|
-
D(je(A)), U(A), F(e ? A : null), W(Nt(e ? A.getHours() : 0)), H(Nt(e ? A.getMinutes() : 0)), R(Nt(e && r ? A.getSeconds() : 0)), Y(e ?
|
|
2320
|
+
D(je(A)), U(A), F(e ? A : null), W(Nt(e ? A.getHours() : 0)), H(Nt(e ? A.getMinutes() : 0)), R(Nt(e && r ? A.getSeconds() : 0)), Y(e ? yn(e) : "earlier"), S(!0);
|
|
2313
2321
|
}, I = (A = !0) => {
|
|
2314
2322
|
var L;
|
|
2315
2323
|
S(!1), A && ((L = ce.current) == null || L.focus());
|
|
2316
|
-
}, J = ye(() => g ?
|
|
2324
|
+
}, J = ye(() => g ? jn(
|
|
2317
2325
|
g.getFullYear(),
|
|
2318
2326
|
g.getMonth(),
|
|
2319
2327
|
g.getDate(),
|
|
@@ -2323,11 +2331,11 @@ const Rp = K(function({
|
|
|
2323
2331
|
) : null, [g, M, $, C, r]), pe = ye(() => J ? J.kind === "ambiguous" ? B === "earlier" ? J.earlier : J.later : J.date : null, [J, B]), ie = () => {
|
|
2324
2332
|
pe && (n(pe), I());
|
|
2325
2333
|
}, b = () => {
|
|
2326
|
-
n(
|
|
2334
|
+
n(mc(/* @__PURE__ */ new Date(), r)), I();
|
|
2327
2335
|
};
|
|
2328
2336
|
return /* @__PURE__ */ x(Le, { children: [
|
|
2329
2337
|
/* @__PURE__ */ s(
|
|
2330
|
-
|
|
2338
|
+
an,
|
|
2331
2339
|
{
|
|
2332
2340
|
rootRef: m,
|
|
2333
2341
|
root: v,
|
|
@@ -2339,14 +2347,14 @@ const Rp = K(function({
|
|
|
2339
2347
|
state: { disabled: i, invalid: w, clearable: d, size: _ },
|
|
2340
2348
|
hasValue: !!e,
|
|
2341
2349
|
display: e && h.dateTime(e, r),
|
|
2342
|
-
icon: /* @__PURE__ */ s(
|
|
2350
|
+
icon: /* @__PURE__ */ s(Sr, { className: q.icon }),
|
|
2343
2351
|
placeholder: y,
|
|
2344
2352
|
onClear: () => {
|
|
2345
2353
|
n(null), k && I(!1);
|
|
2346
2354
|
},
|
|
2347
2355
|
ariaLabel: u.dateTimeClear,
|
|
2348
2356
|
chars: c,
|
|
2349
|
-
natural:
|
|
2357
|
+
natural: sn((A) => h.dateTime(A, r).length, y)
|
|
2350
2358
|
}
|
|
2351
2359
|
),
|
|
2352
2360
|
/* @__PURE__ */ s(
|
|
@@ -2364,7 +2372,7 @@ const Rp = K(function({
|
|
|
2364
2372
|
className: q.panel,
|
|
2365
2373
|
children: /* @__PURE__ */ x("div", { ref: ae, children: [
|
|
2366
2374
|
/* @__PURE__ */ s(
|
|
2367
|
-
|
|
2375
|
+
tn,
|
|
2368
2376
|
{
|
|
2369
2377
|
autoFocus: !0,
|
|
2370
2378
|
view: P,
|
|
@@ -2438,7 +2446,7 @@ const Rp = K(function({
|
|
|
2438
2446
|
}
|
|
2439
2447
|
)
|
|
2440
2448
|
] });
|
|
2441
|
-
}),
|
|
2449
|
+
}), _c = 1440 * 60 * 1e3, nn = (t, e) => Math.round((Ie(e).getTime() - Ie(t).getTime()) / _c) + 1, gc = [
|
|
2442
2450
|
"today",
|
|
2443
2451
|
"yesterday",
|
|
2444
2452
|
"last7Days",
|
|
@@ -2448,7 +2456,7 @@ const Rp = K(function({
|
|
|
2448
2456
|
"thisQuarter",
|
|
2449
2457
|
"thisYear"
|
|
2450
2458
|
];
|
|
2451
|
-
function
|
|
2459
|
+
function vc(t, e) {
|
|
2452
2460
|
const n = Ie(e);
|
|
2453
2461
|
switch (t) {
|
|
2454
2462
|
case "today":
|
|
@@ -2471,15 +2479,15 @@ function _c(t, e) {
|
|
|
2471
2479
|
return { from: new Date(n.getFullYear(), 0, 1), to: new Date(n.getFullYear(), 11, 31) };
|
|
2472
2480
|
}
|
|
2473
2481
|
}
|
|
2474
|
-
const
|
|
2482
|
+
const Wn = (t) => gc.map((e) => ({
|
|
2475
2483
|
label: t.presets[e],
|
|
2476
|
-
range: () =>
|
|
2477
|
-
})),
|
|
2478
|
-
function
|
|
2479
|
-
const n = je(t).getTime(), r = je(
|
|
2480
|
-
return o === n || o === r ? null : o < n ? je(e) :
|
|
2484
|
+
range: () => vc(e, /* @__PURE__ */ new Date())
|
|
2485
|
+
})), Pp = Wn(Mt);
|
|
2486
|
+
function bc(t, e) {
|
|
2487
|
+
const n = je(t).getTime(), r = je(en(t, 1)).getTime(), o = je(e).getTime();
|
|
2488
|
+
return o === n || o === r ? null : o < n ? je(e) : en(je(e), -1);
|
|
2481
2489
|
}
|
|
2482
|
-
function
|
|
2490
|
+
function yc(t) {
|
|
2483
2491
|
const { active: e, onActive: n, onPick: r, bandFrom: o, bandTo: i, previewTo: a, onHoverDay: c } = t;
|
|
2484
2492
|
return {
|
|
2485
2493
|
active: e,
|
|
@@ -2493,7 +2501,7 @@ function vc(t) {
|
|
|
2493
2501
|
withoutOtherMonth: !0
|
|
2494
2502
|
};
|
|
2495
2503
|
}
|
|
2496
|
-
function
|
|
2504
|
+
function Br({ presets: t, isActive: e, onChoose: n }) {
|
|
2497
2505
|
const r = ve();
|
|
2498
2506
|
return t.length === 0 ? null : /* @__PURE__ */ s("div", { className: q.presetColumn, role: "group", "aria-label": r.quickSelect, children: t.map((o) => /* @__PURE__ */ s(
|
|
2499
2507
|
"button",
|
|
@@ -2506,17 +2514,17 @@ function zr({ presets: t, isActive: e, onChoose: n }) {
|
|
|
2506
2514
|
o.label
|
|
2507
2515
|
)) });
|
|
2508
2516
|
}
|
|
2509
|
-
function
|
|
2510
|
-
const r =
|
|
2511
|
-
const c =
|
|
2517
|
+
function Or({ view: t, onView: e, ...n }) {
|
|
2518
|
+
const r = yc(n), o = en(t, 1), i = (a) => {
|
|
2519
|
+
const c = bc(t, a);
|
|
2512
2520
|
c && e(c);
|
|
2513
2521
|
};
|
|
2514
2522
|
return /* @__PURE__ */ x("div", { className: q.monthPair, children: [
|
|
2515
|
-
/* @__PURE__ */ s("div", { className: q.monthColumn, children: /* @__PURE__ */ s(
|
|
2516
|
-
/* @__PURE__ */ s("div", { className: q.monthColumn, children: /* @__PURE__ */ s(
|
|
2523
|
+
/* @__PURE__ */ s("div", { className: q.monthColumn, children: /* @__PURE__ */ s(tn, { autoFocus: !0, view: t, onView: i, withoutNext: !0, ...r }) }),
|
|
2524
|
+
/* @__PURE__ */ s("div", { className: q.monthColumn, children: /* @__PURE__ */ s(tn, { view: o, onView: i, withoutPrevious: !0, ...r }) })
|
|
2517
2525
|
] });
|
|
2518
2526
|
}
|
|
2519
|
-
const
|
|
2527
|
+
const Fp = K(function({
|
|
2520
2528
|
value: e,
|
|
2521
2529
|
onChange: n,
|
|
2522
2530
|
placeholder: r,
|
|
@@ -2529,14 +2537,14 @@ const Ep = K(function({
|
|
|
2529
2537
|
className: p,
|
|
2530
2538
|
...v
|
|
2531
2539
|
}, m) {
|
|
2532
|
-
const _ = Be(a), l = He(), u = ve(), h = tt(), y = r ?? u.dateRangePlaceholder, w = i ?? (l == null ? void 0 : l.invalid) ?? !1, k = ye(() => d ??
|
|
2540
|
+
const _ = Be(a), l = He(), u = ve(), h = tt(), y = r ?? u.dateRangePlaceholder, w = i ?? (l == null ? void 0 : l.invalid) ?? !1, k = ye(() => d ?? Wn(u), [d, u]), [S, P] = j(!1), [D, T] = j(() => je((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [U, g] = j(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [F, M] = j(null), [W, $] = j(null), H = O(null), C = O(null), R = O(null), B = Me(), Y = () => {
|
|
2533
2541
|
const I = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2534
2542
|
T(je(I)), g(I), M(null), $(null), P(!0);
|
|
2535
2543
|
}, ce = (I = !0) => {
|
|
2536
2544
|
var J;
|
|
2537
2545
|
P(!1), M(null), $(null), I && ((J = H.current) == null || J.focus());
|
|
2538
2546
|
}, ne = (I, J) => {
|
|
2539
|
-
n(
|
|
2547
|
+
n(Ir(I, J, "day", !1)), ce();
|
|
2540
2548
|
}, ae = (I) => {
|
|
2541
2549
|
if (!F) {
|
|
2542
2550
|
M(I), g(I);
|
|
@@ -2552,12 +2560,12 @@ const Ep = K(function({
|
|
|
2552
2560
|
}, [U, S]);
|
|
2553
2561
|
const de = F ?? (e == null ? void 0 : e.from) ?? null, ue = F ? null : (e == null ? void 0 : e.to) ?? null, fe = F ? W : null, Z = (() => {
|
|
2554
2562
|
if (F && W) {
|
|
2555
|
-
const [I, J] = Ie(W).getTime() < Ie(F).getTime() ? [W, F] : [F, W], pe =
|
|
2563
|
+
const [I, J] = Ie(W).getTime() < Ie(F).getTime() ? [W, F] : [F, W], pe = nn(I, J);
|
|
2556
2564
|
return u.rangePreview(h.dateShort(I), h.dateShort(J), pe);
|
|
2557
2565
|
}
|
|
2558
2566
|
if (F) return u.chooseEndDate;
|
|
2559
2567
|
if (e) {
|
|
2560
|
-
const I =
|
|
2568
|
+
const I = nn(e.from, e.to);
|
|
2561
2569
|
return u.daysSelected(I);
|
|
2562
2570
|
}
|
|
2563
2571
|
return u.chooseStartDate;
|
|
@@ -2568,7 +2576,7 @@ const Ep = K(function({
|
|
|
2568
2576
|
};
|
|
2569
2577
|
return /* @__PURE__ */ x(Le, { children: [
|
|
2570
2578
|
/* @__PURE__ */ s(
|
|
2571
|
-
|
|
2579
|
+
an,
|
|
2572
2580
|
{
|
|
2573
2581
|
rootRef: m,
|
|
2574
2582
|
root: v,
|
|
@@ -2584,14 +2592,14 @@ const Ep = K(function({
|
|
|
2584
2592
|
/* @__PURE__ */ s("span", { className: q.rangeDash, children: "–" }),
|
|
2585
2593
|
h.date(e.to)
|
|
2586
2594
|
] }),
|
|
2587
|
-
icon: /* @__PURE__ */ s(
|
|
2595
|
+
icon: /* @__PURE__ */ s($r, { range: !0, className: q.icon }),
|
|
2588
2596
|
placeholder: y,
|
|
2589
2597
|
onClear: () => {
|
|
2590
2598
|
n(null), S && ce(!1);
|
|
2591
2599
|
},
|
|
2592
2600
|
ariaLabel: u.dateRangeClear,
|
|
2593
2601
|
chars: c,
|
|
2594
|
-
natural:
|
|
2602
|
+
natural: sn((I) => 2 * h.date(I).length + 3, y)
|
|
2595
2603
|
}
|
|
2596
2604
|
),
|
|
2597
2605
|
/* @__PURE__ */ s(
|
|
@@ -2610,7 +2618,7 @@ const Ep = K(function({
|
|
|
2610
2618
|
children: /* @__PURE__ */ x("div", { ref: R, children: [
|
|
2611
2619
|
/* @__PURE__ */ x("div", { className: q.rangeBody, children: [
|
|
2612
2620
|
/* @__PURE__ */ s(
|
|
2613
|
-
|
|
2621
|
+
Br,
|
|
2614
2622
|
{
|
|
2615
2623
|
presets: k,
|
|
2616
2624
|
isActive: Q,
|
|
@@ -2621,7 +2629,7 @@ const Ep = K(function({
|
|
|
2621
2629
|
}
|
|
2622
2630
|
),
|
|
2623
2631
|
/* @__PURE__ */ s(
|
|
2624
|
-
|
|
2632
|
+
Or,
|
|
2625
2633
|
{
|
|
2626
2634
|
view: D,
|
|
2627
2635
|
onView: T,
|
|
@@ -2645,22 +2653,22 @@ const Ep = K(function({
|
|
|
2645
2653
|
}
|
|
2646
2654
|
)
|
|
2647
2655
|
] });
|
|
2648
|
-
}),
|
|
2656
|
+
}), dn = { hour: "00", minute: "00", second: "00" }, un = (t) => ({
|
|
2649
2657
|
hour: "23",
|
|
2650
2658
|
minute: "59",
|
|
2651
2659
|
second: t ? "59" : "00"
|
|
2652
|
-
}),
|
|
2660
|
+
}), wc = (t, e, n) => t.getHours() === 0 && t.getMinutes() === 0 && t.getSeconds() === 0 && e.getHours() === 23 && e.getMinutes() === 59 && (n ? e.getSeconds() === 59 : e.getSeconds() === 0), er = (t, e) => ({
|
|
2653
2661
|
hour: Nt(t.getHours()),
|
|
2654
2662
|
minute: Nt(t.getMinutes()),
|
|
2655
2663
|
second: Nt(e ? t.getSeconds() : 0)
|
|
2656
|
-
}),
|
|
2664
|
+
}), tr = (t, e, n) => t ? jn(
|
|
2657
2665
|
t.getFullYear(),
|
|
2658
2666
|
t.getMonth(),
|
|
2659
2667
|
t.getDate(),
|
|
2660
2668
|
Math.min(23, Number.parseInt(e.hour, 10) || 0),
|
|
2661
2669
|
Math.min(59, Number.parseInt(e.minute, 10) || 0),
|
|
2662
2670
|
n ? Math.min(59, Number.parseInt(e.second, 10) || 0) : 0
|
|
2663
|
-
) : null,
|
|
2671
|
+
) : null, nr = (t, e) => t ? t.kind === "ambiguous" ? e === "earlier" ? t.earlier : t.later : t.date : null, zp = K(function({
|
|
2664
2672
|
value: e,
|
|
2665
2673
|
onChange: n,
|
|
2666
2674
|
withSeconds: r = !1,
|
|
@@ -2674,9 +2682,9 @@ const Ep = K(function({
|
|
|
2674
2682
|
className: v,
|
|
2675
2683
|
...m
|
|
2676
2684
|
}, _) {
|
|
2677
|
-
const l = Be(c), u = He(), h = ve(), y = tt(), w = o ?? h.dateRangePlaceholder, k = a ?? (u == null ? void 0 : u.invalid) ?? !1, S = ye(() => p ??
|
|
2685
|
+
const l = Be(c), u = He(), h = ve(), y = tt(), w = o ?? h.dateRangePlaceholder, k = a ?? (u == null ? void 0 : u.invalid) ?? !1, S = ye(() => p ?? Wn(h), [p, h]), [P, D] = j(!1), [T, U] = j(() => je((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [g, F] = j(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [M, W] = j(null), [$, H] = j(null), [C, R] = j(null), [B, Y] = j(dn), [ce, ne] = j(() => un(r)), [ae, de] = j(!0), [ue, fe] = j("earlier"), [Z, Q] = j("earlier"), I = O(null), J = O(null), pe = O(null), ie = O(null), b = O(null), A = O(null), L = O(null), V = O(null), he = O(null), me = O(null), ke = Me(), Ee = () => {
|
|
2678
2686
|
const X = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2679
|
-
U(je(X)), F(X), W(e ? Ie(e.from) : null), H(e ? Ie(e.to) : null), Y(e ?
|
|
2687
|
+
U(je(X)), F(X), W(e ? Ie(e.from) : null), H(e ? Ie(e.to) : null), Y(e ? er(e.from, r) : dn), ne(e ? er(e.to, r) : un(r)), de(e ? wc(e.from, e.to, r) : !0), fe(e ? yn(e.from) : "earlier"), Q(e ? yn(e.to) : "earlier"), R(null), D(!0);
|
|
2680
2688
|
}, Se = (X = !0) => {
|
|
2681
2689
|
var oe;
|
|
2682
2690
|
D(!1), R(null), X && ((oe = I.current) == null || oe.focus());
|
|
@@ -2685,7 +2693,7 @@ const Ep = K(function({
|
|
|
2685
2693
|
W(X), H(null), F(X);
|
|
2686
2694
|
return;
|
|
2687
2695
|
}
|
|
2688
|
-
const [oe, ge] =
|
|
2696
|
+
const [oe, ge] = zr(M, X);
|
|
2689
2697
|
W(Ie(oe)), H(Ie(ge)), F(X), fe("earlier"), Q("earlier"), requestAnimationFrame(() => {
|
|
2690
2698
|
var we, ze;
|
|
2691
2699
|
ae ? (we = me.current) == null || we.focus() : (ze = ie.current) == null || ze.focus();
|
|
@@ -2699,17 +2707,17 @@ const Ep = K(function({
|
|
|
2699
2707
|
const oe = document.activeElement;
|
|
2700
2708
|
!oe || !X.contains(oe) || oe.closest(`.${q.grid}`) && ((ge = X.querySelector('[data-active="true"]')) == null || ge.focus());
|
|
2701
2709
|
}, [g, P]);
|
|
2702
|
-
const Ne = ae ?
|
|
2703
|
-
() => ae ?
|
|
2710
|
+
const Ne = ae ? dn : B, De = ye(
|
|
2711
|
+
() => ae ? un(r) : ce,
|
|
2704
2712
|
[ae, r, ce]
|
|
2705
|
-
), Ce = ye(() =>
|
|
2713
|
+
), Ce = ye(() => tr(M, Ne, r), [M, Ne, r]), We = ye(() => tr($, De, r), [$, De, r]), N = ye(() => nr(Ce, ue), [Ce, ue]), G = ye(() => nr(We, Z), [We, Z]), te = () => {
|
|
2706
2714
|
if (!N || !G) return;
|
|
2707
|
-
const [X, oe] =
|
|
2715
|
+
const [X, oe] = hc(N, G);
|
|
2708
2716
|
n({ from: X, to: oe }), Se();
|
|
2709
2717
|
}, re = M, be = $, Fe = M && !$ ? C : null, Ge = () => {
|
|
2710
2718
|
if (!N || !G) return "";
|
|
2711
2719
|
if (ae && M && $) {
|
|
2712
|
-
const nt =
|
|
2720
|
+
const nt = nn(M, $);
|
|
2713
2721
|
return h.daysAllDay(nt);
|
|
2714
2722
|
}
|
|
2715
2723
|
const X = Math.abs(G.getTime() - N.getTime()), oe = Math.round(X / 6e4), ge = Math.floor(oe / 1440), we = Math.floor(oe % 1440 / 60), ze = oe % 60, Pe = [];
|
|
@@ -2718,7 +2726,7 @@ const Ep = K(function({
|
|
|
2718
2726
|
if (!M) return h.chooseStartDate;
|
|
2719
2727
|
if (!$) {
|
|
2720
2728
|
if (C) {
|
|
2721
|
-
const [X, oe] = Ie(C).getTime() < Ie(M).getTime() ? [C, M] : [M, C], ge =
|
|
2729
|
+
const [X, oe] = Ie(C).getTime() < Ie(M).getTime() ? [C, M] : [M, C], ge = nn(X, oe);
|
|
2722
2730
|
return h.rangePreview(y.dateShort(X), y.dateShort(oe), ge);
|
|
2723
2731
|
}
|
|
2724
2732
|
return h.chooseEndDate;
|
|
@@ -2787,7 +2795,7 @@ const Ep = K(function({
|
|
|
2787
2795
|
] });
|
|
2788
2796
|
return /* @__PURE__ */ x(Le, { children: [
|
|
2789
2797
|
/* @__PURE__ */ s(
|
|
2790
|
-
|
|
2798
|
+
an,
|
|
2791
2799
|
{
|
|
2792
2800
|
rootRef: _,
|
|
2793
2801
|
root: m,
|
|
@@ -2813,14 +2821,14 @@ const Ep = K(function({
|
|
|
2813
2821
|
", ",
|
|
2814
2822
|
y.time(e.to, r)
|
|
2815
2823
|
] })),
|
|
2816
|
-
icon: /* @__PURE__ */ s(
|
|
2824
|
+
icon: /* @__PURE__ */ s(Sr, { className: q.icon }),
|
|
2817
2825
|
placeholder: w,
|
|
2818
2826
|
onClear: () => {
|
|
2819
2827
|
n(null), P && Se(!1);
|
|
2820
2828
|
},
|
|
2821
2829
|
ariaLabel: h.dateTimeRangeClear,
|
|
2822
2830
|
chars: f,
|
|
2823
|
-
natural:
|
|
2831
|
+
natural: sn((X) => 2 * (y.date(X).length + 2 + y.time(X, r).length) + 3, w)
|
|
2824
2832
|
}
|
|
2825
2833
|
),
|
|
2826
2834
|
/* @__PURE__ */ s(
|
|
@@ -2839,19 +2847,19 @@ const Ep = K(function({
|
|
|
2839
2847
|
children: /* @__PURE__ */ x("div", { ref: pe, children: [
|
|
2840
2848
|
/* @__PURE__ */ x("div", { className: q.rangeBody, children: [
|
|
2841
2849
|
/* @__PURE__ */ s(
|
|
2842
|
-
|
|
2850
|
+
Br,
|
|
2843
2851
|
{
|
|
2844
2852
|
presets: S,
|
|
2845
2853
|
isActive: lt,
|
|
2846
2854
|
onChoose: (X) => {
|
|
2847
2855
|
const oe = X.range();
|
|
2848
|
-
n(
|
|
2856
|
+
n(Ir(oe.from, oe.to, "instant", r)), Se();
|
|
2849
2857
|
}
|
|
2850
2858
|
}
|
|
2851
2859
|
),
|
|
2852
2860
|
/* @__PURE__ */ x("div", { className: q.rangeRight, children: [
|
|
2853
2861
|
/* @__PURE__ */ s(
|
|
2854
|
-
|
|
2862
|
+
Or,
|
|
2855
2863
|
{
|
|
2856
2864
|
view: T,
|
|
2857
2865
|
onView: U,
|
|
@@ -2883,7 +2891,7 @@ const Ep = K(function({
|
|
|
2883
2891
|
] }),
|
|
2884
2892
|
/* @__PURE__ */ x("div", { className: q.foot, children: [
|
|
2885
2893
|
/* @__PURE__ */ s(
|
|
2886
|
-
|
|
2894
|
+
In,
|
|
2887
2895
|
{
|
|
2888
2896
|
id: `${ke}-allday`,
|
|
2889
2897
|
label: h.allDay,
|
|
@@ -2919,14 +2927,14 @@ const Ep = K(function({
|
|
|
2919
2927
|
}
|
|
2920
2928
|
)
|
|
2921
2929
|
] });
|
|
2922
|
-
}),
|
|
2923
|
-
divider:
|
|
2924
|
-
strong:
|
|
2925
|
-
horizontal:
|
|
2926
|
-
vertical:
|
|
2927
|
-
withLabel:
|
|
2928
|
-
label:
|
|
2929
|
-
},
|
|
2930
|
+
}), kc = "_divider_1ayu4_7", Nc = "_strong_1ayu4_12", xc = "_horizontal_1ayu4_16", $c = "_vertical_1ayu4_24", Sc = "_withLabel_1ayu4_35", Tc = "_label_1ayu4_53 _text_1krlf_23", zt = {
|
|
2931
|
+
divider: kc,
|
|
2932
|
+
strong: Nc,
|
|
2933
|
+
horizontal: xc,
|
|
2934
|
+
vertical: $c,
|
|
2935
|
+
withLabel: Sc,
|
|
2936
|
+
label: Tc
|
|
2937
|
+
}, Ip = K(function({ orientation: e = "horizontal", strong: n = !1, label: r, className: o, ...i }, a) {
|
|
2930
2938
|
const c = z(
|
|
2931
2939
|
zt.divider,
|
|
2932
2940
|
e === "vertical" ? zt.vertical : zt.horizontal,
|
|
@@ -2949,29 +2957,29 @@ const Ep = K(function({
|
|
|
2949
2957
|
children: /* @__PURE__ */ s("span", { className: zt.label, children: r })
|
|
2950
2958
|
}
|
|
2951
2959
|
);
|
|
2952
|
-
}),
|
|
2953
|
-
empty:
|
|
2954
|
-
icon:
|
|
2955
|
-
title:
|
|
2956
|
-
description:
|
|
2957
|
-
action:
|
|
2958
|
-
},
|
|
2960
|
+
}), Dc = "_empty_1dx25_4 _text_1krlf_23", Ac = "_icon_1dx25_14", Mc = "_title_1dx25_26", Cc = "_description_1dx25_33", Rc = "_action_1dx25_41", jt = {
|
|
2961
|
+
empty: Dc,
|
|
2962
|
+
icon: Ac,
|
|
2963
|
+
title: Mc,
|
|
2964
|
+
description: Cc,
|
|
2965
|
+
action: Rc
|
|
2966
|
+
}, Bp = K(function({ title: e, description: n, action: r, icon: o, className: i, ...a }, c) {
|
|
2959
2967
|
return /* @__PURE__ */ x("div", { ref: c, className: z(jt.empty, i), ...a, children: [
|
|
2960
2968
|
o && /* @__PURE__ */ s("div", { className: jt.icon, children: o }),
|
|
2961
2969
|
/* @__PURE__ */ s("p", { className: jt.title, children: e }),
|
|
2962
2970
|
n && /* @__PURE__ */ s("p", { className: jt.description, children: n }),
|
|
2963
2971
|
r && /* @__PURE__ */ s("div", { className: jt.action, children: r })
|
|
2964
2972
|
] });
|
|
2965
|
-
}),
|
|
2966
|
-
wrapper:
|
|
2967
|
-
wrapperSm:
|
|
2968
|
-
wrapperClearable:
|
|
2969
|
-
wrapperInvalid:
|
|
2970
|
-
wrapperDisabled:
|
|
2971
|
-
inner:
|
|
2972
|
-
numeric:
|
|
2973
|
-
clear:
|
|
2974
|
-
},
|
|
2973
|
+
}), Lc = "_wrapper_164ts_11 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_146", Ec = "_wrapperSm_164ts_38", Pc = "_wrapperClearable_164ts_46", Fc = "_wrapperInvalid_164ts_51", zc = "_wrapperDisabled_164ts_27", Ic = "_inner_164ts_68 _field_1krlf_91", Bc = "_numeric_164ts_109", Oc = "_clear_164ts_117", bt = {
|
|
2974
|
+
wrapper: Lc,
|
|
2975
|
+
wrapperSm: Ec,
|
|
2976
|
+
wrapperClearable: Pc,
|
|
2977
|
+
wrapperInvalid: Fc,
|
|
2978
|
+
wrapperDisabled: zc,
|
|
2979
|
+
inner: Ic,
|
|
2980
|
+
numeric: Bc,
|
|
2981
|
+
clear: Oc
|
|
2982
|
+
}, Hr = K(function({ size: e, chars: n, invalid: r, numeric: o = !1, clearable: i = !1, onClear: a, className: c, style: f, id: d, disabled: p, ...v }, m) {
|
|
2975
2983
|
const _ = Be(e), l = He(), u = ve(), h = r ?? (l == null ? void 0 : l.invalid) ?? !1, y = String(v.value ?? "").length > 0;
|
|
2976
2984
|
return v.type === "hidden" ? /* @__PURE__ */ s("input", { ref: m, id: d, className: c, style: f, ...v }) : /* @__PURE__ */ x(
|
|
2977
2985
|
"span",
|
|
@@ -3014,18 +3022,18 @@ const Ep = K(function({
|
|
|
3014
3022
|
]
|
|
3015
3023
|
}
|
|
3016
3024
|
);
|
|
3017
|
-
}),
|
|
3018
|
-
stack:
|
|
3019
|
-
grid:
|
|
3020
|
-
},
|
|
3025
|
+
}), Hc = "_stack_9r3lk_4", qc = "_grid_9r3lk_9", qr = {
|
|
3026
|
+
stack: Hc,
|
|
3027
|
+
grid: qc
|
|
3028
|
+
}, jr = (t) => `var(--u-space-${t})`, Op = K(function({ direction: e = "column", gap: n = 3, align: r, justify: o, wrap: i = !1, className: a, style: c, children: f, ...d }, p) {
|
|
3021
3029
|
return /* @__PURE__ */ s(
|
|
3022
3030
|
"div",
|
|
3023
3031
|
{
|
|
3024
3032
|
ref: p,
|
|
3025
|
-
className: z(
|
|
3033
|
+
className: z(qr.stack, a),
|
|
3026
3034
|
style: {
|
|
3027
3035
|
flexDirection: e,
|
|
3028
|
-
gap:
|
|
3036
|
+
gap: jr(n),
|
|
3029
3037
|
alignItems: r,
|
|
3030
3038
|
justifyContent: o,
|
|
3031
3039
|
flexWrap: i ? "wrap" : void 0,
|
|
@@ -3035,15 +3043,15 @@ const Ep = K(function({
|
|
|
3035
3043
|
children: f
|
|
3036
3044
|
}
|
|
3037
3045
|
);
|
|
3038
|
-
}),
|
|
3046
|
+
}), rr = "minmax(0, 1fr)", Hp = K(function({ columns: e = 2, minItemWidth: n, gap: r = 4, className: o, style: i, children: a, ...c }, f) {
|
|
3039
3047
|
return /* @__PURE__ */ s(
|
|
3040
3048
|
"div",
|
|
3041
3049
|
{
|
|
3042
3050
|
ref: f,
|
|
3043
|
-
className: z(
|
|
3051
|
+
className: z(qr.grid, o),
|
|
3044
3052
|
style: {
|
|
3045
|
-
gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : typeof e == "number" ? `repeat(${e}, ${
|
|
3046
|
-
gap:
|
|
3053
|
+
gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : typeof e == "number" ? `repeat(${e}, ${rr})` : e.map((d) => d === "fill" ? rr : `${d}px`).join(" "),
|
|
3054
|
+
gap: jr(r),
|
|
3047
3055
|
...i
|
|
3048
3056
|
},
|
|
3049
3057
|
...c,
|
|
@@ -3051,13 +3059,13 @@ const Ep = K(function({
|
|
|
3051
3059
|
}
|
|
3052
3060
|
);
|
|
3053
3061
|
});
|
|
3054
|
-
function
|
|
3062
|
+
function jc(t, e = wr) {
|
|
3055
3063
|
const n = [...t].filter((o) => !/\s/.test(o) && (e.group === "" || o !== e.group)).map((o) => o === e.decimal ? "." : o).join("");
|
|
3056
3064
|
if (n === "" || n === "-") return null;
|
|
3057
3065
|
const r = Number(n);
|
|
3058
3066
|
return Number.isFinite(r) ? r : null;
|
|
3059
3067
|
}
|
|
3060
|
-
function
|
|
3068
|
+
function or(t, e = {}) {
|
|
3061
3069
|
const { min: n, max: r, decimals: o } = e;
|
|
3062
3070
|
let i = t;
|
|
3063
3071
|
if (n !== void 0 && (i = Math.max(n, i)), r !== void 0 && (i = Math.min(r, i)), o !== void 0) {
|
|
@@ -3066,23 +3074,23 @@ function rr(t, e = {}) {
|
|
|
3066
3074
|
}
|
|
3067
3075
|
return i;
|
|
3068
3076
|
}
|
|
3069
|
-
const
|
|
3070
|
-
function
|
|
3077
|
+
const Wc = (t) => t === void 0 || t < 0, Wr = (t) => t !== 0;
|
|
3078
|
+
function Gc(t, e = {}, n = wr) {
|
|
3071
3079
|
const r = /* @__PURE__ */ new Set([..."0123456789", n.group]);
|
|
3072
|
-
return
|
|
3080
|
+
return Wr(e.decimals) && r.add(n.decimal), Wc(e.min) && r.add("-"), r.delete(""), [...t].filter((o) => r.has(o)).join("");
|
|
3073
3081
|
}
|
|
3074
|
-
function
|
|
3082
|
+
function Uc(t, e, n, r = 1) {
|
|
3075
3083
|
return t + e * n * r;
|
|
3076
3084
|
}
|
|
3077
|
-
const
|
|
3078
|
-
wrapper:
|
|
3079
|
-
sm:
|
|
3080
|
-
invalid:
|
|
3081
|
-
disabled:
|
|
3082
|
-
input:
|
|
3083
|
-
adornment:
|
|
3084
|
-
stepper:
|
|
3085
|
-
},
|
|
3085
|
+
const Vc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_146", Yc = "_sm_7dtka_34", Kc = "_invalid_7dtka_41", Xc = "_disabled_7dtka_25", Zc = "_input_7dtka_55 _field_1krlf_91", Qc = "_adornment_7dtka_83", Jc = "_stepper_7dtka_93", yt = {
|
|
3086
|
+
wrapper: Vc,
|
|
3087
|
+
sm: Yc,
|
|
3088
|
+
invalid: Kc,
|
|
3089
|
+
disabled: Xc,
|
|
3090
|
+
input: Zc,
|
|
3091
|
+
adornment: Qc,
|
|
3092
|
+
stepper: Jc
|
|
3093
|
+
}, sr = (t) => typeof t == "string" || typeof t == "number" ? String(t).length + 1 : 0, qp = K(function({
|
|
3086
3094
|
value: e,
|
|
3087
3095
|
onChange: n,
|
|
3088
3096
|
min: r,
|
|
@@ -3103,7 +3111,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3103
3111
|
onKeyDown: w,
|
|
3104
3112
|
...k
|
|
3105
3113
|
}, S) {
|
|
3106
|
-
const P = Be(d), D = He(), T = ve(), U = tt(), g = (ie) => U.number(ie, a), F = ye(() =>
|
|
3114
|
+
const P = Be(d), D = He(), T = ve(), U = tt(), g = (ie) => U.number(ie, a), F = ye(() => io(U), [U]), M = (ie) => jc(ie, F), W = v ?? (D == null ? void 0 : D.invalid) ?? !1, $ = ye(() => ({ min: r, max: o, decimals: a }), [r, o, a]), [H, C] = j(() => e === null ? "" : g(e)), [R, B] = j(!1);
|
|
3107
3115
|
le(() => {
|
|
3108
3116
|
R || C(e === null ? "" : g(e));
|
|
3109
3117
|
}, [e, R, a, U]);
|
|
@@ -3112,7 +3120,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3112
3120
|
C(""), n(null);
|
|
3113
3121
|
return;
|
|
3114
3122
|
}
|
|
3115
|
-
const b =
|
|
3123
|
+
const b = or(ie, $);
|
|
3116
3124
|
C(g(b)), n(b);
|
|
3117
3125
|
}, ce = O(H);
|
|
3118
3126
|
ce.current = H;
|
|
@@ -3120,7 +3128,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3120
3128
|
ne.current = e;
|
|
3121
3129
|
const ae = (ie, b = 1) => {
|
|
3122
3130
|
const A = M(ce.current) ?? ne.current ?? 0;
|
|
3123
|
-
Y(
|
|
3131
|
+
Y(Uc(A, ie, i, b));
|
|
3124
3132
|
}, de = (ie) => {
|
|
3125
3133
|
w == null || w(ie), !ie.defaultPrevented && (ie.key !== "ArrowUp" && ie.key !== "ArrowDown" || (ie.preventDefault(), ae(ie.key === "ArrowUp" ? 1 : -1, ie.shiftKey ? 10 : 1)));
|
|
3126
3134
|
}, ue = O(null), fe = () => {
|
|
@@ -3162,7 +3170,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3162
3170
|
m && yt.disabled,
|
|
3163
3171
|
_
|
|
3164
3172
|
),
|
|
3165
|
-
style: { ...Et(p, { extra:
|
|
3173
|
+
style: { ...Et(p, { extra: sr(c) + sr(f) }), ...l },
|
|
3166
3174
|
children: [
|
|
3167
3175
|
c && /* @__PURE__ */ s("span", { className: yt.adornment, children: c }),
|
|
3168
3176
|
/* @__PURE__ */ s(
|
|
@@ -3170,7 +3178,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3170
3178
|
{
|
|
3171
3179
|
ref: S,
|
|
3172
3180
|
type: "text",
|
|
3173
|
-
inputMode:
|
|
3181
|
+
inputMode: Wr(a) ? "decimal" : "numeric",
|
|
3174
3182
|
id: u ?? (D == null ? void 0 : D.id),
|
|
3175
3183
|
disabled: m,
|
|
3176
3184
|
"aria-describedby": k["aria-describedby"] ?? (D == null ? void 0 : D.describedBy),
|
|
@@ -3179,10 +3187,10 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3179
3187
|
className: yt.input,
|
|
3180
3188
|
value: H,
|
|
3181
3189
|
onChange: (ie) => {
|
|
3182
|
-
const b =
|
|
3190
|
+
const b = Gc(ie.target.value, $, F);
|
|
3183
3191
|
C(b);
|
|
3184
3192
|
const A = M(b);
|
|
3185
|
-
n(A === null ? null :
|
|
3193
|
+
n(A === null ? null : or(A, $));
|
|
3186
3194
|
},
|
|
3187
3195
|
...k,
|
|
3188
3196
|
onKeyDown: de,
|
|
@@ -3196,38 +3204,38 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3196
3204
|
),
|
|
3197
3205
|
f && /* @__PURE__ */ s("span", { className: yt.adornment, children: f }),
|
|
3198
3206
|
/* @__PURE__ */ x("span", { className: yt.stepper, children: [
|
|
3199
|
-
pe(-1, J, T.decreaseValue, /* @__PURE__ */ s(
|
|
3200
|
-
pe(1, I, T.increaseValue, /* @__PURE__ */ s(
|
|
3207
|
+
pe(-1, J, T.decreaseValue, /* @__PURE__ */ s(No, {})),
|
|
3208
|
+
pe(1, I, T.increaseValue, /* @__PURE__ */ s(ko, {}))
|
|
3201
3209
|
] })
|
|
3202
3210
|
]
|
|
3203
3211
|
}
|
|
3204
3212
|
);
|
|
3205
|
-
}),
|
|
3206
|
-
dialog:
|
|
3207
|
-
spacerTop:
|
|
3208
|
-
spacerBottom:
|
|
3209
|
-
sheet:
|
|
3210
|
-
sm:
|
|
3211
|
-
md:
|
|
3212
|
-
lg:
|
|
3213
|
-
header:
|
|
3214
|
-
headerText:
|
|
3215
|
-
title:
|
|
3216
|
-
description:
|
|
3217
|
-
close:
|
|
3218
|
-
footer:
|
|
3219
|
-
body:
|
|
3220
|
-
drawer:
|
|
3221
|
-
drawerSheet:
|
|
3222
|
-
modalIn:
|
|
3223
|
-
modalOut:
|
|
3224
|
-
backdropIn:
|
|
3225
|
-
backdropOut:
|
|
3226
|
-
drawerInRight:
|
|
3227
|
-
drawerInLeft:
|
|
3228
|
-
},
|
|
3213
|
+
}), el = "_dialog_vmgns_8 _text_1krlf_23", tl = "_spacerTop_vmgns_30", nl = "_spacerBottom_vmgns_35", rl = "_sheet_vmgns_2", ol = "_sm_vmgns_53", sl = "_md_vmgns_54", al = "_lg_vmgns_55", il = "_header_vmgns_105", cl = "_headerText_vmgns_113", ll = "_title_vmgns_120", dl = "_description_vmgns_128", ul = "_close_vmgns_138", fl = "_footer_vmgns_144", hl = "_body_vmgns_148 _scroll_1krlf_97", pl = "_drawer_vmgns_177", ml = "_drawerSheet_vmgns_188", _l = "_modalIn_vmgns_1", gl = "_modalOut_vmgns_1", vl = "_backdropIn_vmgns_1", bl = "_backdropOut_vmgns_1", yl = "_drawerInRight_vmgns_1", wl = "_drawerInLeft_vmgns_1", Ye = {
|
|
3214
|
+
dialog: el,
|
|
3215
|
+
spacerTop: tl,
|
|
3216
|
+
spacerBottom: nl,
|
|
3217
|
+
sheet: rl,
|
|
3218
|
+
sm: ol,
|
|
3219
|
+
md: sl,
|
|
3220
|
+
lg: al,
|
|
3221
|
+
header: il,
|
|
3222
|
+
headerText: cl,
|
|
3223
|
+
title: ll,
|
|
3224
|
+
description: dl,
|
|
3225
|
+
close: ul,
|
|
3226
|
+
footer: fl,
|
|
3227
|
+
body: hl,
|
|
3228
|
+
drawer: pl,
|
|
3229
|
+
drawerSheet: ml,
|
|
3230
|
+
modalIn: _l,
|
|
3231
|
+
modalOut: gl,
|
|
3232
|
+
backdropIn: vl,
|
|
3233
|
+
backdropOut: bl,
|
|
3234
|
+
drawerInRight: yl,
|
|
3235
|
+
drawerInLeft: wl
|
|
3236
|
+
}, Gr = it(null), kl = K(function({ size: e = "md", closeOnBackdrop: n = !0, ...r }, o) {
|
|
3229
3237
|
return /* @__PURE__ */ s(
|
|
3230
|
-
|
|
3238
|
+
Ur,
|
|
3231
3239
|
{
|
|
3232
3240
|
ref: o,
|
|
3233
3241
|
sheetClassName: z(Ye.sheet, Ye[e]),
|
|
@@ -3236,9 +3244,9 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3236
3244
|
...r
|
|
3237
3245
|
}
|
|
3238
3246
|
);
|
|
3239
|
-
}),
|
|
3247
|
+
}), jp = K(function({ side: e = "right", className: n, ...r }, o) {
|
|
3240
3248
|
return /* @__PURE__ */ s(
|
|
3241
|
-
|
|
3249
|
+
Ur,
|
|
3242
3250
|
{
|
|
3243
3251
|
ref: o,
|
|
3244
3252
|
className: z(Ye.drawer, n),
|
|
@@ -3247,7 +3255,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3247
3255
|
...r
|
|
3248
3256
|
}
|
|
3249
3257
|
);
|
|
3250
|
-
}),
|
|
3258
|
+
}), Ur = K(function({
|
|
3251
3259
|
open: e,
|
|
3252
3260
|
onClose: n,
|
|
3253
3261
|
closeOnBackdrop: r = !0,
|
|
@@ -3260,7 +3268,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3260
3268
|
onMouseDown: p,
|
|
3261
3269
|
...v
|
|
3262
3270
|
}, m) {
|
|
3263
|
-
const _ = O(null), l = Me(), { dialogRef: u, closing: h, beimSchliessen: y, beimAbbrechen: w } =
|
|
3271
|
+
const _ = O(null), l = Me(), { dialogRef: u, closing: h, beimSchliessen: y, beimAbbrechen: w } = Er(e, "--u-duration-exit", n), k = (S) => {
|
|
3264
3272
|
p == null || p(S), !S.defaultPrevented && r && _.current && !_.current.contains(S.target) && n();
|
|
3265
3273
|
};
|
|
3266
3274
|
return /* @__PURE__ */ x(
|
|
@@ -3279,25 +3287,25 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3279
3287
|
onMouseDown: k,
|
|
3280
3288
|
children: [
|
|
3281
3289
|
i && /* @__PURE__ */ s("div", { className: Ye.spacerTop, "aria-hidden": "true" }),
|
|
3282
|
-
/* @__PURE__ */ s("div", { ref: _, className: o, children: /* @__PURE__ */ s(
|
|
3290
|
+
/* @__PURE__ */ s("div", { ref: _, className: o, children: /* @__PURE__ */ s(Dn, { children: /* @__PURE__ */ s(Gr.Provider, { value: { onClose: n, titleId: l }, children: f }) }) }),
|
|
3283
3291
|
i && /* @__PURE__ */ s("div", { className: Ye.spacerBottom, "aria-hidden": "true" })
|
|
3284
3292
|
]
|
|
3285
3293
|
}
|
|
3286
3294
|
);
|
|
3287
|
-
}),
|
|
3288
|
-
const c = Qe(
|
|
3295
|
+
}), Nl = K(function({ title: e, description: n, hideClose: r = !1, className: o, ...i }, a) {
|
|
3296
|
+
const c = Qe(Gr), f = ve();
|
|
3289
3297
|
return /* @__PURE__ */ x("div", { ref: a, className: z(Ye.header, o), ...i, children: [
|
|
3290
3298
|
/* @__PURE__ */ x("div", { className: Ye.headerText, children: [
|
|
3291
3299
|
/* @__PURE__ */ s("h2", { id: c == null ? void 0 : c.titleId, className: Ye.title, children: e }),
|
|
3292
3300
|
n && /* @__PURE__ */ s("p", { className: Ye.description, children: n })
|
|
3293
3301
|
] }),
|
|
3294
|
-
!r && /* @__PURE__ */ s(
|
|
3302
|
+
!r && /* @__PURE__ */ s(_n, { size: "sm", "aria-label": f.close, className: Ye.close, onClick: () => c == null ? void 0 : c.onClose(), children: /* @__PURE__ */ s(et, {}) })
|
|
3295
3303
|
] });
|
|
3296
|
-
}),
|
|
3304
|
+
}), Wp = K(function({ className: e, children: n, ...r }, o) {
|
|
3297
3305
|
return /* @__PURE__ */ s("div", { ref: o, className: z(Ye.body, e), ...r, children: n });
|
|
3298
|
-
}),
|
|
3306
|
+
}), xl = K(function({ className: e, children: n, ...r }, o) {
|
|
3299
3307
|
return /* @__PURE__ */ s("div", { ref: o, className: z(Ye.footer, e), ...r, children: n });
|
|
3300
|
-
}),
|
|
3308
|
+
}), Gp = K(function({
|
|
3301
3309
|
open: e,
|
|
3302
3310
|
onClose: n,
|
|
3303
3311
|
onConfirm: r,
|
|
@@ -3310,41 +3318,41 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3310
3318
|
...p
|
|
3311
3319
|
}, v) {
|
|
3312
3320
|
const m = ve();
|
|
3313
|
-
return /* @__PURE__ */ x(
|
|
3314
|
-
/* @__PURE__ */ s(
|
|
3315
|
-
/* @__PURE__ */ x(
|
|
3321
|
+
return /* @__PURE__ */ x(kl, { ref: v, ...p, open: e, onClose: n, size: "sm", closeOnBackdrop: !d, children: [
|
|
3322
|
+
/* @__PURE__ */ s(Nl, { title: o, description: i, hideClose: !0 }),
|
|
3323
|
+
/* @__PURE__ */ x(xl, { children: [
|
|
3316
3324
|
/* @__PURE__ */ s($e, { onClick: n, disabled: d, children: c ?? m.cancel }),
|
|
3317
3325
|
/* @__PURE__ */ s($e, { variant: f, loading: d, onClick: r, children: a ?? m.confirm })
|
|
3318
3326
|
] })
|
|
3319
3327
|
] });
|
|
3320
|
-
}),
|
|
3321
|
-
field:
|
|
3322
|
-
fieldClearable:
|
|
3323
|
-
sm:
|
|
3324
|
-
placeholder:
|
|
3325
|
-
main:
|
|
3326
|
-
invalid:
|
|
3327
|
-
fieldDisabled:
|
|
3328
|
-
summary:
|
|
3329
|
-
measure:
|
|
3330
|
-
chipLabel:
|
|
3331
|
-
chip:
|
|
3332
|
-
chipX:
|
|
3333
|
-
counter:
|
|
3334
|
-
mainEmpty:
|
|
3335
|
-
chevron:
|
|
3336
|
-
clear:
|
|
3337
|
-
panel:
|
|
3338
|
-
scopes:
|
|
3339
|
-
scope:
|
|
3340
|
-
scopeActive:
|
|
3341
|
-
qol:
|
|
3342
|
-
qolButtons:
|
|
3343
|
-
count:
|
|
3344
|
-
list:
|
|
3345
|
-
option:
|
|
3346
|
-
empty:
|
|
3347
|
-
},
|
|
3328
|
+
}), $l = "_field_z2u1d_19 _text_1krlf_23 _extent_1krlf_76", Sl = "_fieldClearable_z2u1d_40", Tl = "_sm_z2u1d_46", Dl = "_placeholder_z2u1d_52", Al = "_main_z2u1d_53", Ml = "_invalid_z2u1d_66", Cl = "_fieldDisabled_z2u1d_57", Rl = "_summary_z2u1d_90", Ll = "_measure_z2u1d_103", El = "_chipLabel_z2u1d_114", Pl = "_chip_z2u1d_114 _ring_1krlf_126", Fl = "_chipX_z2u1d_167", zl = "_counter_z2u1d_187 _ring_1krlf_126", Il = "_mainEmpty_z2u1d_242", Bl = "_chevron_z2u1d_248", Ol = "_clear_z2u1d_257", Hl = "_panel_z2u1d_300", ql = "_scopes_z2u1d_310", jl = "_scope_z2u1d_310 _ring_1krlf_126", Wl = "_scopeActive_z2u1d_343", Gl = "_qol_z2u1d_350", Ul = "_qolButtons_z2u1d_362", Vl = "_count_z2u1d_187", Yl = "_list_z2u1d_377 _scroll_1krlf_97", Kl = "_option_z2u1d_389", Xl = "_empty_z2u1d_404", _e = {
|
|
3329
|
+
field: $l,
|
|
3330
|
+
fieldClearable: Sl,
|
|
3331
|
+
sm: Tl,
|
|
3332
|
+
placeholder: Dl,
|
|
3333
|
+
main: Al,
|
|
3334
|
+
invalid: Ml,
|
|
3335
|
+
fieldDisabled: Cl,
|
|
3336
|
+
summary: Rl,
|
|
3337
|
+
measure: Ll,
|
|
3338
|
+
chipLabel: El,
|
|
3339
|
+
chip: Pl,
|
|
3340
|
+
chipX: Fl,
|
|
3341
|
+
counter: zl,
|
|
3342
|
+
mainEmpty: Il,
|
|
3343
|
+
chevron: Bl,
|
|
3344
|
+
clear: Ol,
|
|
3345
|
+
panel: Hl,
|
|
3346
|
+
scopes: ql,
|
|
3347
|
+
scope: jl,
|
|
3348
|
+
scopeActive: Wl,
|
|
3349
|
+
qol: Gl,
|
|
3350
|
+
qolButtons: Ul,
|
|
3351
|
+
count: Vl,
|
|
3352
|
+
list: Yl,
|
|
3353
|
+
option: Kl,
|
|
3354
|
+
empty: Xl
|
|
3355
|
+
}, Up = K(function({
|
|
3348
3356
|
options: e,
|
|
3349
3357
|
value: n,
|
|
3350
3358
|
onChange: r,
|
|
@@ -3369,7 +3377,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3369
3377
|
var ee;
|
|
3370
3378
|
return ((ee = e.find((X) => X.value === E)) == null ? void 0 : ee.label) ?? E;
|
|
3371
3379
|
}, Q = (E, ee, X) => {
|
|
3372
|
-
const oe =
|
|
3380
|
+
const oe = Jt(X, ee).length;
|
|
3373
3381
|
pt(
|
|
3374
3382
|
oe > 0 ? T.optionCount(oe) : E === "selected" && X.length === 0 ? T.nothingSelected : F,
|
|
3375
3383
|
ne.current
|
|
@@ -3385,13 +3393,13 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3385
3393
|
}, []), A = ye(
|
|
3386
3394
|
() => R === "selected" ? e.filter((E) => Y.has(E.value)) : e,
|
|
3387
3395
|
[e, R, Y]
|
|
3388
|
-
), L = ye(() =>
|
|
3396
|
+
), L = ye(() => Jt(A, H), [A, H]), V = (E) => {
|
|
3389
3397
|
r(
|
|
3390
3398
|
n.includes(E) ? n.filter((ee) => ee !== E) : [...n, E]
|
|
3391
3399
|
);
|
|
3392
3400
|
}, he = (E) => {
|
|
3393
3401
|
r(n.filter((ee) => ee !== E)), J(E);
|
|
3394
|
-
}, me = ye(() =>
|
|
3402
|
+
}, me = ye(() => Yn(L), [L]), ke = () => r(Os(n, me)), Ee = () => r(Kn(n, me)), Se = () => r(Hs(n, me)), Te = () => {
|
|
3395
3403
|
var E;
|
|
3396
3404
|
return Array.from(((E = ue.current) == null ? void 0 : E.querySelectorAll("input:not(:disabled)")) ?? []);
|
|
3397
3405
|
}, Ne = (E) => {
|
|
@@ -3465,7 +3473,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3465
3473
|
const ee = new ResizeObserver(() => Fe());
|
|
3466
3474
|
return ee.observe(E), () => ee.disconnect();
|
|
3467
3475
|
}, [Fe]);
|
|
3468
|
-
const Ge = n.length - G, ct =
|
|
3476
|
+
const Ge = n.length - G, ct = Kn(n, Yn(e)), lt = /* @__PURE__ */ s(et, { size: 8 });
|
|
3469
3477
|
return /* @__PURE__ */ x(Le, { children: [
|
|
3470
3478
|
/* @__PURE__ */ x(
|
|
3471
3479
|
"div",
|
|
@@ -3590,7 +3598,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3590
3598
|
className: _e.panel,
|
|
3591
3599
|
children: /* @__PURE__ */ x("div", { ref: b, children: [
|
|
3592
3600
|
/* @__PURE__ */ s(
|
|
3593
|
-
|
|
3601
|
+
Hr,
|
|
3594
3602
|
{
|
|
3595
3603
|
ref: de,
|
|
3596
3604
|
size: "sm",
|
|
@@ -3647,7 +3655,7 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3647
3655
|
"aria-label": T.options,
|
|
3648
3656
|
onKeyDown: De,
|
|
3649
3657
|
children: L.length === 0 ? /* @__PURE__ */ s("div", { className: _e.empty, children: R === "selected" && A.length === 0 ? T.nothingSelected : F }) : L.map((E) => /* @__PURE__ */ s(
|
|
3650
|
-
|
|
3658
|
+
In,
|
|
3651
3659
|
{
|
|
3652
3660
|
className: _e.option,
|
|
3653
3661
|
label: E.label,
|
|
@@ -3663,19 +3671,19 @@ const Gc = "_wrapper_7dtka_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_14
|
|
|
3663
3671
|
}
|
|
3664
3672
|
)
|
|
3665
3673
|
] });
|
|
3666
|
-
}),
|
|
3667
|
-
group:
|
|
3668
|
-
horizontal:
|
|
3669
|
-
sm:
|
|
3670
|
-
option:
|
|
3671
|
-
disabled:
|
|
3672
|
-
input:
|
|
3673
|
-
dot:
|
|
3674
|
-
texts:
|
|
3675
|
-
label:
|
|
3676
|
-
description:
|
|
3674
|
+
}), Zl = "_group_1fskj_8 _text_1krlf_23", Ql = "_horizontal_1fskj_19", Jl = "_sm_1fskj_26", ed = "_option_1fskj_30", td = "_disabled_1fskj_40", nd = "_input_1fskj_47", rd = "_dot_1fskj_56", od = "_texts_1fskj_115", sd = "_label_1fskj_122", ad = "_description_1fskj_130", ut = {
|
|
3675
|
+
group: Zl,
|
|
3676
|
+
horizontal: Ql,
|
|
3677
|
+
sm: Jl,
|
|
3678
|
+
option: ed,
|
|
3679
|
+
disabled: td,
|
|
3680
|
+
input: nd,
|
|
3681
|
+
dot: rd,
|
|
3682
|
+
texts: od,
|
|
3683
|
+
label: sd,
|
|
3684
|
+
description: ad
|
|
3677
3685
|
};
|
|
3678
|
-
function
|
|
3686
|
+
function Vr({
|
|
3679
3687
|
options: t,
|
|
3680
3688
|
value: e,
|
|
3681
3689
|
defaultValue: n,
|
|
@@ -3738,7 +3746,7 @@ function Gr({
|
|
|
3738
3746
|
})
|
|
3739
3747
|
};
|
|
3740
3748
|
}
|
|
3741
|
-
const
|
|
3749
|
+
const Vp = K(function({
|
|
3742
3750
|
options: e,
|
|
3743
3751
|
value: n,
|
|
3744
3752
|
defaultValue: r,
|
|
@@ -3751,7 +3759,7 @@ const Gp = K(function({
|
|
|
3751
3759
|
onKeyDown: p,
|
|
3752
3760
|
...v
|
|
3753
3761
|
}, m) {
|
|
3754
|
-
const _ = Be(a), l =
|
|
3762
|
+
const _ = Be(a), l = Vr({
|
|
3755
3763
|
options: e,
|
|
3756
3764
|
value: n,
|
|
3757
3765
|
defaultValue: r,
|
|
@@ -3797,17 +3805,17 @@ const Gp = K(function({
|
|
|
3797
3805
|
})
|
|
3798
3806
|
}
|
|
3799
3807
|
);
|
|
3800
|
-
}),
|
|
3801
|
-
wrapper:
|
|
3802
|
-
wrapperSm:
|
|
3803
|
-
wrapperClearable:
|
|
3804
|
-
select:
|
|
3805
|
-
sm:
|
|
3806
|
-
invalid:
|
|
3807
|
-
chevron:
|
|
3808
|
-
selectClearable:
|
|
3809
|
-
clear:
|
|
3810
|
-
},
|
|
3808
|
+
}), id = "_wrapper_1qusv_8 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_146", cd = "_wrapperSm_1qusv_16", ld = "_wrapperClearable_1qusv_20", dd = "_select_1qusv_24 _field_1krlf_91", ud = "_sm_1qusv_77", fd = "_invalid_1qusv_83", hd = "_chevron_1qusv_94", pd = "_selectClearable_1qusv_106", md = "_clear_1qusv_111", gt = {
|
|
3809
|
+
wrapper: id,
|
|
3810
|
+
wrapperSm: cd,
|
|
3811
|
+
wrapperClearable: ld,
|
|
3812
|
+
select: dd,
|
|
3813
|
+
sm: ud,
|
|
3814
|
+
invalid: fd,
|
|
3815
|
+
chevron: hd,
|
|
3816
|
+
selectClearable: pd,
|
|
3817
|
+
clear: md
|
|
3818
|
+
}, Yp = K(function({
|
|
3811
3819
|
size: e,
|
|
3812
3820
|
chars: n,
|
|
3813
3821
|
invalid: r,
|
|
@@ -3830,13 +3838,13 @@ const Gp = K(function({
|
|
|
3830
3838
|
var I, J;
|
|
3831
3839
|
const Z = T.current;
|
|
3832
3840
|
if (!Z) return;
|
|
3833
|
-
const Q =
|
|
3841
|
+
const Q = ar(Z);
|
|
3834
3842
|
W(Q), R(u["aria-label"] ?? ((J = (I = Z.labels) == null ? void 0 : I[0]) == null ? void 0 : J.textContent) ?? k.options), H(Math.max(0, Z.selectedIndex)), F(!0), pt(Q.length === 0 ? k.noMatches : k.optionCount(Q.length), Z);
|
|
3835
3843
|
}, ne = () => {
|
|
3836
|
-
|
|
3844
|
+
On(), F(!1);
|
|
3837
3845
|
};
|
|
3838
3846
|
le(() => {
|
|
3839
|
-
g && T.current && W(
|
|
3847
|
+
g && T.current && W(ar(T.current));
|
|
3840
3848
|
}, [g, d]);
|
|
3841
3849
|
const ae = (Z) => {
|
|
3842
3850
|
const Q = T.current;
|
|
@@ -3862,7 +3870,7 @@ const Gp = K(function({
|
|
|
3862
3870
|
if (_ == null || _(Z), !D || Z.defaultPrevented || Z.nativeEvent.isComposing) return;
|
|
3863
3871
|
const { key: Q } = Z;
|
|
3864
3872
|
if (!g) {
|
|
3865
|
-
|
|
3873
|
+
_d.has(Q) && (Z.preventDefault(), ce());
|
|
3866
3874
|
return;
|
|
3867
3875
|
}
|
|
3868
3876
|
if (Q === "Tab") {
|
|
@@ -3870,7 +3878,7 @@ const Gp = K(function({
|
|
|
3870
3878
|
return;
|
|
3871
3879
|
}
|
|
3872
3880
|
if (Q === "Escape") return;
|
|
3873
|
-
const I = M.length - 1, J =
|
|
3881
|
+
const I = M.length - 1, J = gd[Q];
|
|
3874
3882
|
J !== void 0 ? (Z.preventDefault(), de(Math.max(0, Math.min(I, $ + J)))) : Q === "Home" || Q === "End" ? (Z.preventDefault(), de(Q === "Home" ? 0 : I)) : Q === "Enter" || Q === " " && Z.timeStamp - Y.current.at >= 500 ? (Z.preventDefault(), ae($)) : Q.length === 1 && !Z.ctrlKey && !Z.metaKey && !Z.altKey && (Z.preventDefault(), ue(Q, Z.timeStamp));
|
|
3875
3883
|
};
|
|
3876
3884
|
return /* @__PURE__ */ x(
|
|
@@ -3895,7 +3903,7 @@ const Gp = K(function({
|
|
|
3895
3903
|
"aria-invalid": S || void 0,
|
|
3896
3904
|
"aria-expanded": D ? g : void 0,
|
|
3897
3905
|
"aria-controls": g ? U : void 0,
|
|
3898
|
-
"aria-activedescendant": g && M[$] ?
|
|
3906
|
+
"aria-activedescendant": g && M[$] ? Hn(U, $) : void 0,
|
|
3899
3907
|
className: z(
|
|
3900
3908
|
gt.select,
|
|
3901
3909
|
y === "sm" && gt.sm,
|
|
@@ -3931,7 +3939,7 @@ const Gp = K(function({
|
|
|
3931
3939
|
),
|
|
3932
3940
|
/* @__PURE__ */ s(qt, { className: gt.chevron }),
|
|
3933
3941
|
D && /* @__PURE__ */ s(
|
|
3934
|
-
|
|
3942
|
+
Pr,
|
|
3935
3943
|
{
|
|
3936
3944
|
open: g,
|
|
3937
3945
|
onClose: ne,
|
|
@@ -3948,8 +3956,8 @@ const Gp = K(function({
|
|
|
3948
3956
|
]
|
|
3949
3957
|
}
|
|
3950
3958
|
);
|
|
3951
|
-
}),
|
|
3952
|
-
function
|
|
3959
|
+
}), _d = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", " ", "F4"]), gd = { ArrowDown: 1, ArrowUp: -1, PageDown: 10, PageUp: -10 };
|
|
3960
|
+
function ar(t) {
|
|
3953
3961
|
return Array.from(t.options, (e) => {
|
|
3954
3962
|
const n = e.parentElement instanceof HTMLOptGroupElement ? e.parentElement : null;
|
|
3955
3963
|
return {
|
|
@@ -3962,33 +3970,33 @@ function sr(t) {
|
|
|
3962
3970
|
};
|
|
3963
3971
|
});
|
|
3964
3972
|
}
|
|
3965
|
-
const
|
|
3966
|
-
skeleton:
|
|
3967
|
-
circle:
|
|
3968
|
-
},
|
|
3973
|
+
const vd = "_skeleton_6mkat_4", bd = "_circle_6mkat_19", ir = {
|
|
3974
|
+
skeleton: vd,
|
|
3975
|
+
circle: bd
|
|
3976
|
+
}, Kp = K(function({ width: e, height: n, circle: r = !1, className: o, style: i, ...a }, c) {
|
|
3969
3977
|
return /* @__PURE__ */ s(
|
|
3970
3978
|
"span",
|
|
3971
3979
|
{
|
|
3972
3980
|
ref: c,
|
|
3973
3981
|
"aria-hidden": "true",
|
|
3974
|
-
className: z(
|
|
3982
|
+
className: z(ir.skeleton, r && ir.circle, o),
|
|
3975
3983
|
style: { width: e, height: n, ...i },
|
|
3976
3984
|
...a
|
|
3977
3985
|
}
|
|
3978
3986
|
);
|
|
3979
|
-
}),
|
|
3980
|
-
group:
|
|
3981
|
-
tag:
|
|
3982
|
-
removable:
|
|
3983
|
-
disabled:
|
|
3984
|
-
text:
|
|
3985
|
-
neutral:
|
|
3986
|
-
accent:
|
|
3987
|
-
success:
|
|
3988
|
-
warning:
|
|
3989
|
-
danger:
|
|
3990
|
-
remove:
|
|
3991
|
-
},
|
|
3987
|
+
}), yd = "_group_14w77_7", wd = "_tag_14w77_16 _text_1krlf_23", kd = "_removable_14w77_31", Nd = "_disabled_14w77_41", xd = "_text_14w77_49", $d = "_neutral_14w77_57", Sd = "_accent_14w77_62", Td = "_success_14w77_67", Dd = "_warning_14w77_72", Ad = "_danger_14w77_77", Md = "_remove_14w77_84", At = {
|
|
3988
|
+
group: yd,
|
|
3989
|
+
tag: wd,
|
|
3990
|
+
removable: kd,
|
|
3991
|
+
disabled: Nd,
|
|
3992
|
+
text: xd,
|
|
3993
|
+
neutral: $d,
|
|
3994
|
+
accent: Sd,
|
|
3995
|
+
success: Td,
|
|
3996
|
+
warning: Dd,
|
|
3997
|
+
danger: Ad,
|
|
3998
|
+
remove: Md
|
|
3999
|
+
}, Yr = it(!1), Xp = K(function({ className: e, children: n, onKeyDown: r, onFocus: o, ...i }, a) {
|
|
3992
4000
|
const c = O(null), f = se(
|
|
3993
4001
|
() => {
|
|
3994
4002
|
var m;
|
|
@@ -4031,11 +4039,11 @@ const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ar = {
|
|
|
4031
4039
|
onKeyDown: v,
|
|
4032
4040
|
onFocus: p,
|
|
4033
4041
|
...i,
|
|
4034
|
-
children: /* @__PURE__ */ s(
|
|
4042
|
+
children: /* @__PURE__ */ s(Yr.Provider, { value: !0, children: n })
|
|
4035
4043
|
}
|
|
4036
4044
|
);
|
|
4037
|
-
}),
|
|
4038
|
-
const p = Qe(
|
|
4045
|
+
}), Zp = K(function({ tone: e = "neutral", children: n, onRemove: r, removeLabel: o, disabled: i = !1, className: a, onKeyDown: c, ...f }, d) {
|
|
4046
|
+
const p = Qe(Yr), v = ve(), m = !!r && !i, _ = o ?? (typeof n == "string" ? v.removeTag(n) : v.remove), l = (h) => {
|
|
4039
4047
|
if (!h) {
|
|
4040
4048
|
r == null || r();
|
|
4041
4049
|
return;
|
|
@@ -4080,25 +4088,25 @@ const _d = "_skeleton_6mkat_4", gd = "_circle_6mkat_19", ar = {
|
|
|
4080
4088
|
]
|
|
4081
4089
|
}
|
|
4082
4090
|
);
|
|
4083
|
-
}),
|
|
4084
|
-
list:
|
|
4085
|
-
indicator:
|
|
4086
|
-
tab:
|
|
4087
|
-
panel:
|
|
4088
|
-
},
|
|
4089
|
-
function
|
|
4090
|
-
const e = Qe(
|
|
4091
|
+
}), Cd = "_list_6c8ur_4 _text_1krlf_23", Rd = "_indicator_6c8ur_13", Ld = "_tab_6c8ur_24 _ring_1krlf_126", Ed = "_panel_6c8ur_55 _text_1krlf_23 _ring_1krlf_126", rn = {
|
|
4092
|
+
list: Cd,
|
|
4093
|
+
indicator: Rd,
|
|
4094
|
+
tab: Ld,
|
|
4095
|
+
panel: Ed
|
|
4096
|
+
}, Kr = it(null);
|
|
4097
|
+
function Gn(t) {
|
|
4098
|
+
const e = Qe(Kr);
|
|
4091
4099
|
if (!e)
|
|
4092
4100
|
throw new Error(`${t} must be used inside <Tabs>.`);
|
|
4093
4101
|
return e;
|
|
4094
4102
|
}
|
|
4095
|
-
const
|
|
4103
|
+
const Qp = K(function({ value: e, defaultValue: n, onChange: r, className: o, children: i, ...a }, c) {
|
|
4096
4104
|
const f = Me(), [d, p] = j(n ?? ""), v = e !== void 0, m = (_) => {
|
|
4097
4105
|
v || p(_), r == null || r(_);
|
|
4098
4106
|
};
|
|
4099
|
-
return /* @__PURE__ */ s("div", { ref: c, className: o, ...a, children: /* @__PURE__ */ s(
|
|
4100
|
-
}),
|
|
4101
|
-
const a =
|
|
4107
|
+
return /* @__PURE__ */ s("div", { ref: c, className: o, ...a, children: /* @__PURE__ */ s(Kr.Provider, { value: { value: v ? e : d, onChange: m, idBase: f }, children: i }) });
|
|
4108
|
+
}), Jp = K(function({ className: e, children: n, onKeyDown: r, ...o }, i) {
|
|
4109
|
+
const a = Gn("TabList"), c = O(null), [f, d] = j(null), p = se(() => {
|
|
4102
4110
|
const m = c.current;
|
|
4103
4111
|
if (!m) return;
|
|
4104
4112
|
const _ = m.querySelector('[role="tab"][aria-selected="true"]');
|
|
@@ -4136,7 +4144,7 @@ const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4136
4144
|
"div",
|
|
4137
4145
|
{
|
|
4138
4146
|
ref: Oe(c, i),
|
|
4139
|
-
className: z(
|
|
4147
|
+
className: z(rn.list, e),
|
|
4140
4148
|
...o,
|
|
4141
4149
|
role: "tablist",
|
|
4142
4150
|
onKeyDown: v,
|
|
@@ -4146,21 +4154,21 @@ const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4146
4154
|
"span",
|
|
4147
4155
|
{
|
|
4148
4156
|
"aria-hidden": "true",
|
|
4149
|
-
className:
|
|
4157
|
+
className: rn.indicator,
|
|
4150
4158
|
style: { left: f.left, width: f.width }
|
|
4151
4159
|
}
|
|
4152
4160
|
)
|
|
4153
4161
|
]
|
|
4154
4162
|
}
|
|
4155
4163
|
);
|
|
4156
|
-
}),
|
|
4157
|
-
const c =
|
|
4164
|
+
}), em = K(function({ value: e, className: n, children: r, onClick: o, ...i }, a) {
|
|
4165
|
+
const c = Gn("Tab"), f = c.value === e, d = c.value === "";
|
|
4158
4166
|
return /* @__PURE__ */ s(
|
|
4159
4167
|
"button",
|
|
4160
4168
|
{
|
|
4161
4169
|
ref: a,
|
|
4162
4170
|
type: "button",
|
|
4163
|
-
className: z(
|
|
4171
|
+
className: z(rn.tab, n),
|
|
4164
4172
|
...i,
|
|
4165
4173
|
role: "tab",
|
|
4166
4174
|
id: `${c.idBase}-tab-${xt(e)}`,
|
|
@@ -4173,14 +4181,14 @@ const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4173
4181
|
children: r
|
|
4174
4182
|
}
|
|
4175
4183
|
);
|
|
4176
|
-
}),
|
|
4177
|
-
const a =
|
|
4184
|
+
}), tm = K(function({ value: e, className: n, children: r, ...o }, i) {
|
|
4185
|
+
const a = Gn("TabPanel");
|
|
4178
4186
|
return a.value !== e ? null : /* @__PURE__ */ s(
|
|
4179
4187
|
"div",
|
|
4180
4188
|
{
|
|
4181
4189
|
ref: i,
|
|
4182
4190
|
tabIndex: 0,
|
|
4183
|
-
className: z(
|
|
4191
|
+
className: z(rn.panel, n),
|
|
4184
4192
|
...o,
|
|
4185
4193
|
role: "tabpanel",
|
|
4186
4194
|
id: `${a.idBase}-panel-${xt(e)}`,
|
|
@@ -4188,16 +4196,16 @@ const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4188
4196
|
children: r
|
|
4189
4197
|
}
|
|
4190
4198
|
);
|
|
4191
|
-
}),
|
|
4192
|
-
textarea:
|
|
4193
|
-
sm:
|
|
4194
|
-
invalid:
|
|
4195
|
-
wrapper:
|
|
4196
|
-
wrapperSm:
|
|
4197
|
-
counted:
|
|
4198
|
-
count:
|
|
4199
|
-
countOver:
|
|
4200
|
-
},
|
|
4199
|
+
}), Pd = (t, e) => e === void 0 ? void 0 : e - t.length, Fd = (t, e, n) => !n || !e ? t : Math.min(t, e * n), zd = "_textarea_mu8ql_7 _field_1krlf_91", Id = "_sm_mu8ql_45", Bd = "_invalid_mu8ql_52", Od = "_wrapper_mu8ql_69 _text_1krlf_23 _extent_1krlf_76 _fieldRoot_1krlf_146", Hd = "_wrapperSm_mu8ql_78", qd = "_counted_mu8ql_86", jd = "_count_mu8ql_86", Wd = "_countOver_mu8ql_105", wt = {
|
|
4200
|
+
textarea: zd,
|
|
4201
|
+
sm: Id,
|
|
4202
|
+
invalid: Bd,
|
|
4203
|
+
wrapper: Od,
|
|
4204
|
+
wrapperSm: Hd,
|
|
4205
|
+
counted: qd,
|
|
4206
|
+
count: jd,
|
|
4207
|
+
countOver: Wd
|
|
4208
|
+
}, nm = K(function({
|
|
4201
4209
|
size: e,
|
|
4202
4210
|
chars: n,
|
|
4203
4211
|
invalid: r,
|
|
@@ -4214,13 +4222,13 @@ const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4214
4222
|
...l
|
|
4215
4223
|
}, u) {
|
|
4216
4224
|
const h = Be(e), y = He(), w = r ?? (y == null ? void 0 : y.invalid) ?? !1, k = O(null);
|
|
4217
|
-
|
|
4225
|
+
xn(u, () => k.current);
|
|
4218
4226
|
const S = se(() => {
|
|
4219
4227
|
const M = k.current;
|
|
4220
4228
|
if (!M || !o) return;
|
|
4221
4229
|
M.style.height = "auto";
|
|
4222
4230
|
const W = Number.parseFloat(getComputedStyle(M).lineHeight) || 0;
|
|
4223
|
-
M.style.height = `${
|
|
4231
|
+
M.style.height = `${Fd(M.scrollHeight, W, i)}px`, M.style.overflowY = i && M.scrollHeight > M.clientHeight ? "auto" : "hidden";
|
|
4224
4232
|
}, [o, i]);
|
|
4225
4233
|
Ke(S, [S, l.value, l.defaultValue]), le(() => {
|
|
4226
4234
|
var W;
|
|
@@ -4232,7 +4240,7 @@ const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4232
4240
|
M = !0;
|
|
4233
4241
|
};
|
|
4234
4242
|
}, [o, S]);
|
|
4235
|
-
const [P, D] = j(() => String(l.defaultValue ?? "")), T = l.value !== void 0, U = T ? String(l.value ?? "") : P, g =
|
|
4243
|
+
const [P, D] = j(() => String(l.defaultValue ?? "")), T = l.value !== void 0, U = T ? String(l.value ?? "") : P, g = Pd(U, l.maxLength), F = a && g !== void 0;
|
|
4236
4244
|
return /* @__PURE__ */ x(
|
|
4237
4245
|
"span",
|
|
4238
4246
|
{
|
|
@@ -4263,37 +4271,37 @@ const Xp = K(function({ value: e, defaultValue: n, onChange: r, className: o, ch
|
|
|
4263
4271
|
]
|
|
4264
4272
|
}
|
|
4265
4273
|
);
|
|
4266
|
-
}),
|
|
4267
|
-
region:
|
|
4268
|
-
live:
|
|
4269
|
-
card:
|
|
4270
|
-
hidden:
|
|
4271
|
-
toast:
|
|
4272
|
-
behind:
|
|
4273
|
-
leaving:
|
|
4274
|
-
content:
|
|
4275
|
-
text:
|
|
4276
|
-
title:
|
|
4277
|
-
glyph:
|
|
4278
|
-
success:
|
|
4279
|
-
description:
|
|
4280
|
-
action:
|
|
4281
|
-
warning:
|
|
4282
|
-
danger:
|
|
4283
|
-
tools:
|
|
4284
|
-
count:
|
|
4285
|
-
close:
|
|
4286
|
-
toastIn:
|
|
4287
|
-
toastInFromTop:
|
|
4288
|
-
},
|
|
4289
|
-
function
|
|
4290
|
-
const t = Qe(
|
|
4274
|
+
}), Gd = "_region_10xzi_8 _text_1krlf_23 _ring_1krlf_126", Ud = "_live_10xzi_59", Vd = "_card_10xzi_67", Yd = "_hidden_10xzi_88", Kd = "_toast_10xzi_93", Xd = "_behind_10xzi_111", Zd = "_leaving_10xzi_115", Qd = "_content_10xzi_159", Jd = "_text_10xzi_184", eu = "_title_10xzi_191", tu = "_glyph_10xzi_207", nu = "_success_10xzi_216", ru = "_description_10xzi_220", ou = "_action_10xzi_227 _ring_1krlf_126", su = "_warning_10xzi_255", au = "_danger_10xzi_260", iu = "_tools_10xzi_269", cu = "_count_10xzi_274 _ring_1krlf_126", lu = "_close_10xzi_275 _ring_1krlf_126", du = "_toastIn_10xzi_1", uu = "_toastInFromTop_10xzi_1", Re = {
|
|
4275
|
+
region: Gd,
|
|
4276
|
+
live: Ud,
|
|
4277
|
+
card: Vd,
|
|
4278
|
+
hidden: Yd,
|
|
4279
|
+
toast: Kd,
|
|
4280
|
+
behind: Xd,
|
|
4281
|
+
leaving: Zd,
|
|
4282
|
+
content: Qd,
|
|
4283
|
+
text: Jd,
|
|
4284
|
+
title: eu,
|
|
4285
|
+
glyph: tu,
|
|
4286
|
+
success: nu,
|
|
4287
|
+
description: ru,
|
|
4288
|
+
action: ou,
|
|
4289
|
+
warning: su,
|
|
4290
|
+
danger: au,
|
|
4291
|
+
tools: iu,
|
|
4292
|
+
count: cu,
|
|
4293
|
+
close: lu,
|
|
4294
|
+
toastIn: du,
|
|
4295
|
+
toastInFromTop: uu
|
|
4296
|
+
}, Xr = it(null);
|
|
4297
|
+
function rm() {
|
|
4298
|
+
const t = Qe(Xr);
|
|
4291
4299
|
if (!t)
|
|
4292
4300
|
throw new Error("useToast requires a <ToastProvider> around the application.");
|
|
4293
4301
|
return t;
|
|
4294
4302
|
}
|
|
4295
|
-
const
|
|
4296
|
-
function
|
|
4303
|
+
const cr = 14, lr = 8, fu = 0.04, dr = 2;
|
|
4304
|
+
function fn(t, e) {
|
|
4297
4305
|
if (t === e) return !0;
|
|
4298
4306
|
try {
|
|
4299
4307
|
return t.matches(":focus-visible");
|
|
@@ -4301,8 +4309,8 @@ function un(t, e) {
|
|
|
4301
4309
|
return !0;
|
|
4302
4310
|
}
|
|
4303
4311
|
}
|
|
4304
|
-
function
|
|
4305
|
-
return t === "loading" ? /* @__PURE__ */ s(
|
|
4312
|
+
function hu({ tone: t }) {
|
|
4313
|
+
return t === "loading" ? /* @__PURE__ */ s(An, { size: 16, "aria-hidden": "true" }) : (
|
|
4306
4314
|
/* The dots of ! and i are strokes of no length: a round cap alone is a dot
|
|
4307
4315
|
as wide as the stem, and the glyph stays drawn with the stroke. */
|
|
4308
4316
|
/* @__PURE__ */ x("svg", { viewBox: "0 0 10 10", width: "16", height: "16", "aria-hidden": "true", children: [
|
|
@@ -4319,8 +4327,8 @@ function uu({ tone: t }) {
|
|
|
4319
4327
|
] })
|
|
4320
4328
|
);
|
|
4321
4329
|
}
|
|
4322
|
-
function
|
|
4323
|
-
const e =
|
|
4330
|
+
function om({ children: t }) {
|
|
4331
|
+
const e = Po(), n = e.duration ?? 5e3, r = Math.max(1, e.limit ?? 3), o = e.position ?? "bottom-end", [i, a] = o.split("-"), [c, f] = j([]), d = O([]), p = se((N) => {
|
|
4324
4332
|
d.current = N, f(N);
|
|
4325
4333
|
}, []), v = O(1), m = O(/* @__PURE__ */ new Map()), _ = O(/* @__PURE__ */ new Set()), l = O(null), [u, h] = j(!1), [y, w] = j(!1), [k, S] = j(!1), [P, D] = j(!1), T = u || y || k, U = O(T), g = O(/* @__PURE__ */ new Map()), F = O(/* @__PURE__ */ new Map()), M = O(null), [W, $] = j({}), H = O(null), C = se(() => {
|
|
4326
4334
|
var G;
|
|
@@ -4346,9 +4354,9 @@ function nm({ children: t }) {
|
|
|
4346
4354
|
if (!te || te.leaving) return;
|
|
4347
4355
|
B(N), (lt = te.onClose) == null || lt.call(te, G);
|
|
4348
4356
|
const re = l.current, be = document.activeElement;
|
|
4349
|
-
re && be instanceof HTMLElement && ((E = re.querySelector(`[data-toast="${N}"]`)) != null && E.contains(be)) &&
|
|
4357
|
+
re && be instanceof HTMLElement && ((E = re.querySelector(`[data-toast="${N}"]`)) != null && E.contains(be)) && fn(be, re) && (d.current.some((ee) => ee.id !== N && !ee.leaving) ? re.focus() : C());
|
|
4350
4358
|
const Fe = re === null ? 0 : Vt(getComputedStyle(re), "--u-duration-exit-collapse");
|
|
4351
|
-
if (
|
|
4359
|
+
if (on() || Fe <= 0) {
|
|
4352
4360
|
R(N);
|
|
4353
4361
|
return;
|
|
4354
4362
|
}
|
|
@@ -4448,12 +4456,12 @@ function nm({ children: t }) {
|
|
|
4448
4456
|
}, [k]);
|
|
4449
4457
|
const I = (N) => {
|
|
4450
4458
|
N.key === "Escape" && (S(!1), C());
|
|
4451
|
-
}, J = (N) => w(
|
|
4459
|
+
}, J = (N) => w(fn(N.target, N.currentTarget)), pe = (N) => {
|
|
4452
4460
|
D(!1), !N.currentTarget.contains(N.relatedTarget) && (w(!1), S(!1), H.current = null);
|
|
4453
4461
|
};
|
|
4454
4462
|
le(() => {
|
|
4455
4463
|
const N = l.current, G = document.activeElement;
|
|
4456
|
-
w(!!N && G instanceof HTMLElement && N.contains(G) &&
|
|
4464
|
+
w(!!N && G instanceof HTMLElement && N.contains(G) && fn(G, N));
|
|
4457
4465
|
}, [c]);
|
|
4458
4466
|
const ie = (N) => {
|
|
4459
4467
|
N.pointerType !== "touch" && h(!0);
|
|
@@ -4462,16 +4470,16 @@ function nm({ children: t }) {
|
|
|
4462
4470
|
V.forEach((N, G) => {
|
|
4463
4471
|
const te = !T && G > 0;
|
|
4464
4472
|
me.set(N.id, {
|
|
4465
|
-
offset: T ? ke : G *
|
|
4473
|
+
offset: T ? ke : G * cr,
|
|
4466
4474
|
behind: te,
|
|
4467
|
-
scale: te ? 1 - G *
|
|
4468
|
-
hidden: !T && G >
|
|
4475
|
+
scale: te ? 1 - G * fu : 1,
|
|
4476
|
+
hidden: !T && G > dr,
|
|
4469
4477
|
zIndex: L - G
|
|
4470
|
-
}), ke += (W[N.id] ?? 0) +
|
|
4478
|
+
}), ke += (W[N.id] ?? 0) + lr;
|
|
4471
4479
|
}), Ke(() => {
|
|
4472
4480
|
g.current = me;
|
|
4473
4481
|
});
|
|
4474
|
-
const Ee = L === 0 ? 0 : T ? ke -
|
|
4482
|
+
const Ee = L === 0 ? 0 : T ? ke - lr : he + cr * Math.min(L - 1, dr), Se = ye(() => ({ toast: ae, update: de, dismiss: ue }), [ae, de, ue]), Te = ve(), Ne = Rn(), De = () => {
|
|
4475
4483
|
var N;
|
|
4476
4484
|
S(!0), (N = l.current) == null || N.focus();
|
|
4477
4485
|
}, Ce = (N) => {
|
|
@@ -4495,7 +4503,7 @@ function nm({ children: t }) {
|
|
|
4495
4503
|
children: /* @__PURE__ */ s("div", { className: z(Re.toast, Re[G]), children: /* @__PURE__ */ x("div", { ref: Z, "data-toast": N.id, className: Re.content, children: [
|
|
4496
4504
|
/* @__PURE__ */ x("div", { className: Re.text, children: [
|
|
4497
4505
|
/* @__PURE__ */ x("p", { className: Re.title, children: [
|
|
4498
|
-
/* @__PURE__ */ s("span", { className: Re.glyph, children: /* @__PURE__ */ s(
|
|
4506
|
+
/* @__PURE__ */ s("span", { className: Re.glyph, children: /* @__PURE__ */ s(hu, { tone: G }) }),
|
|
4499
4507
|
N.title
|
|
4500
4508
|
] }),
|
|
4501
4509
|
N.description && /* @__PURE__ */ s("p", { className: Re.description, children: N.description }),
|
|
@@ -4548,12 +4556,12 @@ function nm({ children: t }) {
|
|
|
4548
4556
|
N.id
|
|
4549
4557
|
);
|
|
4550
4558
|
}, We = {
|
|
4551
|
-
"--_origin":
|
|
4559
|
+
"--_origin": En(i === "bottom" ? "top" : "bottom", a),
|
|
4552
4560
|
height: Ee
|
|
4553
4561
|
};
|
|
4554
|
-
return /* @__PURE__ */ x(
|
|
4562
|
+
return /* @__PURE__ */ x(Xr.Provider, { value: Se, children: [
|
|
4555
4563
|
t,
|
|
4556
|
-
|
|
4564
|
+
$n(
|
|
4557
4565
|
/* Two live regions that stand before the first message arrives: a
|
|
4558
4566
|
region that comes into the document with its text already in it is
|
|
4559
4567
|
often not read out at all by a screen reader. The message goes into
|
|
@@ -4577,8 +4585,8 @@ function nm({ children: t }) {
|
|
|
4577
4585
|
onPointerEnter: ie,
|
|
4578
4586
|
onPointerLeave: b,
|
|
4579
4587
|
children: [
|
|
4580
|
-
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: Re.live, children: c.filter((N) =>
|
|
4581
|
-
/* @__PURE__ */ s("div", { role: "alert", className: Re.live, children: c.filter((N) =>
|
|
4588
|
+
/* @__PURE__ */ s("div", { role: "status", "aria-live": "polite", className: Re.live, children: c.filter((N) => mn[N.tone ?? "neutral"].role === "status").map(Ce) }),
|
|
4589
|
+
/* @__PURE__ */ s("div", { role: "alert", className: Re.live, children: c.filter((N) => mn[N.tone ?? "neutral"].role === "alert").map(Ce) })
|
|
4582
4590
|
]
|
|
4583
4591
|
}
|
|
4584
4592
|
),
|
|
@@ -4586,22 +4594,22 @@ function nm({ children: t }) {
|
|
|
4586
4594
|
)
|
|
4587
4595
|
] });
|
|
4588
4596
|
}
|
|
4589
|
-
const
|
|
4590
|
-
tree:
|
|
4591
|
-
row:
|
|
4592
|
-
active:
|
|
4593
|
-
pathOnly:
|
|
4594
|
-
chevron:
|
|
4595
|
-
chevronOpen:
|
|
4596
|
-
placeholder:
|
|
4597
|
-
emptyDot:
|
|
4598
|
-
check:
|
|
4599
|
-
content:
|
|
4600
|
-
noMatches:
|
|
4601
|
-
scrolls:
|
|
4602
|
-
disabled:
|
|
4603
|
-
loading:
|
|
4604
|
-
},
|
|
4597
|
+
const pu = "_tree_1epok_10 _text_1krlf_23", mu = "_row_1epok_23", _u = "_active_1epok_46", gu = "_pathOnly_1epok_58", vu = "_chevron_1epok_62", bu = "_chevronOpen_1epok_74", yu = "_placeholder_1epok_80", wu = "_emptyDot_1epok_86", ku = "_check_1epok_104", Nu = "_content_1epok_110", xu = "_noMatches_1epok_124", $u = "_scrolls_1epok_135 _scroll_1krlf_97", Su = "_disabled_1epok_145", Tu = "_loading_1epok_149", Ue = {
|
|
4598
|
+
tree: pu,
|
|
4599
|
+
row: mu,
|
|
4600
|
+
active: _u,
|
|
4601
|
+
pathOnly: gu,
|
|
4602
|
+
chevron: vu,
|
|
4603
|
+
chevronOpen: bu,
|
|
4604
|
+
placeholder: yu,
|
|
4605
|
+
emptyDot: wu,
|
|
4606
|
+
check: ku,
|
|
4607
|
+
content: Nu,
|
|
4608
|
+
noMatches: xu,
|
|
4609
|
+
scrolls: $u,
|
|
4610
|
+
disabled: Su,
|
|
4611
|
+
loading: Tu
|
|
4612
|
+
}, Du = 600, sm = K(function({
|
|
4605
4613
|
tree: e,
|
|
4606
4614
|
ariaLabel: n,
|
|
4607
4615
|
checkable: r = !1,
|
|
@@ -4680,7 +4688,7 @@ const fu = "_tree_1epok_10 _text_1krlf_23", hu = "_row_1epok_23", pu = "_active_
|
|
|
4680
4688
|
if (g.key.length !== 1 || g.ctrlKey || g.metaKey || g.altKey || g.key === " ") return;
|
|
4681
4689
|
S.current !== null && window.clearTimeout(S.current), k.current += g.key, S.current = window.setTimeout(() => {
|
|
4682
4690
|
k.current = "", S.current = null;
|
|
4683
|
-
},
|
|
4691
|
+
}, Du), e.typeahead(k.current);
|
|
4684
4692
|
break;
|
|
4685
4693
|
}
|
|
4686
4694
|
}
|
|
@@ -4751,7 +4759,7 @@ const fu = "_tree_1epok_10 _text_1krlf_23", hu = "_row_1epok_23", pu = "_active_
|
|
|
4751
4759
|
click ran through both paths and toggled twice - in the
|
|
4752
4760
|
browser nothing happened at all. */
|
|
4753
4761
|
/* @__PURE__ */ s("span", { className: Ue.check, onClick: (M) => M.stopPropagation(), children: /* @__PURE__ */ s(
|
|
4754
|
-
|
|
4762
|
+
In,
|
|
4755
4763
|
{
|
|
4756
4764
|
id: `${_}-check-${xt(String(g.key))}`,
|
|
4757
4765
|
checked: g.checked,
|
|
@@ -4764,7 +4772,7 @@ const fu = "_tree_1epok_10 _text_1krlf_23", hu = "_row_1epok_23", pu = "_active_
|
|
|
4764
4772
|
) })
|
|
4765
4773
|
) : null,
|
|
4766
4774
|
/* @__PURE__ */ s("span", { className: Ue.content, children: o(g) }),
|
|
4767
|
-
g.unloaded && g.expanded ? /* @__PURE__ */ s(
|
|
4775
|
+
g.unloaded && g.expanded ? /* @__PURE__ */ s(An, { size: 12, className: Ue.loading }) : null
|
|
4768
4776
|
]
|
|
4769
4777
|
},
|
|
4770
4778
|
String(g.key)
|
|
@@ -4775,10 +4783,10 @@ const fu = "_tree_1epok_10 _text_1krlf_23", hu = "_row_1epok_23", pu = "_active_
|
|
|
4775
4783
|
]
|
|
4776
4784
|
}
|
|
4777
4785
|
);
|
|
4778
|
-
}),
|
|
4786
|
+
}), am = K(function({ tree: e, placeholder: n, ...r }, o) {
|
|
4779
4787
|
const i = ve();
|
|
4780
4788
|
return /* @__PURE__ */ s(
|
|
4781
|
-
|
|
4789
|
+
Hr,
|
|
4782
4790
|
{
|
|
4783
4791
|
ref: o,
|
|
4784
4792
|
type: "search",
|
|
@@ -4788,15 +4796,15 @@ const fu = "_tree_1epok_10 _text_1krlf_23", hu = "_row_1epok_23", pu = "_active_
|
|
|
4788
4796
|
...r
|
|
4789
4797
|
}
|
|
4790
4798
|
);
|
|
4791
|
-
}),
|
|
4792
|
-
function
|
|
4799
|
+
}), Au = { from: 0, to: 0, before: 0, after: 0 };
|
|
4800
|
+
function Mu({
|
|
4793
4801
|
count: t,
|
|
4794
4802
|
rowHeight: e,
|
|
4795
4803
|
scrollTop: n,
|
|
4796
4804
|
viewportHeight: r,
|
|
4797
4805
|
overscan: o = 4
|
|
4798
4806
|
}) {
|
|
4799
|
-
if (t <= 0 || e <= 0) return
|
|
4807
|
+
if (t <= 0 || e <= 0) return Au;
|
|
4800
4808
|
const i = Math.max(0, n), a = Math.floor(i / e), c = Math.ceil(Math.max(0, r) / e) + 1, f = Math.max(0, a - o), d = Math.min(t, a + c + o);
|
|
4801
4809
|
return {
|
|
4802
4810
|
from: f,
|
|
@@ -4805,12 +4813,12 @@ function Du({
|
|
|
4805
4813
|
after: (t - d) * e
|
|
4806
4814
|
};
|
|
4807
4815
|
}
|
|
4808
|
-
function
|
|
4816
|
+
function Cu(t, { rowHeight: e, scrollTop: n, viewportHeight: r, headerHeight: o = 0 }) {
|
|
4809
4817
|
if (e <= 0) return null;
|
|
4810
4818
|
const i = t * e, a = i + e;
|
|
4811
4819
|
return i < n + o ? Math.max(0, i - o) : a > n + r ? Math.max(0, a - r) : null;
|
|
4812
4820
|
}
|
|
4813
|
-
function
|
|
4821
|
+
function Ru(t, e) {
|
|
4814
4822
|
const { rowHeight: n, overscan: r = 4 } = e, o = O(null), [i, a] = j(0), [c, f] = j(0), [d, p] = j(n), v = se(() => {
|
|
4815
4823
|
const l = o.current;
|
|
4816
4824
|
l && a(l.scrollTop);
|
|
@@ -4830,11 +4838,11 @@ function Mu(t, e) {
|
|
|
4830
4838
|
const h = u.getBoundingClientRect().height;
|
|
4831
4839
|
h > 0 && Math.abs(h - d) > 0.01 && p(h);
|
|
4832
4840
|
}, [t, c, d]);
|
|
4833
|
-
const m =
|
|
4841
|
+
const m = Mu({ count: t, rowHeight: d, scrollTop: i, viewportHeight: c, overscan: r }), _ = se(
|
|
4834
4842
|
(l) => {
|
|
4835
4843
|
const u = o.current;
|
|
4836
4844
|
if (!u) return;
|
|
4837
|
-
const h = u.querySelector("thead"), y =
|
|
4845
|
+
const h = u.querySelector("thead"), y = Cu(l, {
|
|
4838
4846
|
rowHeight: d,
|
|
4839
4847
|
scrollTop: u.scrollTop,
|
|
4840
4848
|
viewportHeight: u.clientHeight,
|
|
@@ -4859,7 +4867,7 @@ function Ut(t, e) {
|
|
|
4859
4867
|
var n, r;
|
|
4860
4868
|
return ((n = t.disabled) == null ? void 0 : n.call(t, e)) !== !0 && ((r = t.unloaded) == null ? void 0 : r.call(t, e)) !== !0;
|
|
4861
4869
|
}
|
|
4862
|
-
function
|
|
4870
|
+
function Lu(t, e, n) {
|
|
4863
4871
|
const r = n.search.trim().toLowerCase(), o = {
|
|
4864
4872
|
indeterminate: /* @__PURE__ */ new Set(),
|
|
4865
4873
|
survives: /* @__PURE__ */ new Set(),
|
|
@@ -4882,8 +4890,8 @@ function Cu(t, e, n) {
|
|
|
4882
4890
|
for (const a of t) i(a);
|
|
4883
4891
|
return o;
|
|
4884
4892
|
}
|
|
4885
|
-
function
|
|
4886
|
-
const r = e.matches !== void 0 || n.search.trim() !== "", o =
|
|
4893
|
+
function Eu(t, e, n) {
|
|
4894
|
+
const r = e.matches !== void 0 || n.search.trim() !== "", o = Lu(t, e, n), i = [];
|
|
4887
4895
|
function a(c, f, d) {
|
|
4888
4896
|
const p = d ? c : c.filter((v) => !r || o.survives.has(e.key(v)));
|
|
4889
4897
|
p.forEach((v, m) => {
|
|
@@ -4911,12 +4919,12 @@ function Ru(t, e, n) {
|
|
|
4911
4919
|
}
|
|
4912
4920
|
return a(t, 0, !1), i;
|
|
4913
4921
|
}
|
|
4914
|
-
function
|
|
4922
|
+
function Zr(t, e) {
|
|
4915
4923
|
if (t.expanded.has(e)) return t;
|
|
4916
4924
|
const n = new Set(t.expanded);
|
|
4917
4925
|
return n.add(e), { ...t, expanded: n };
|
|
4918
4926
|
}
|
|
4919
|
-
function
|
|
4927
|
+
function Qr(t, e) {
|
|
4920
4928
|
if (!t.expanded.has(e)) return t;
|
|
4921
4929
|
const n = new Set(t.expanded);
|
|
4922
4930
|
return n.delete(e), { ...t, expanded: n };
|
|
@@ -4924,7 +4932,7 @@ function Xr(t, e) {
|
|
|
4924
4932
|
function ft(t, e) {
|
|
4925
4933
|
return t.active === e ? t : { ...t, active: e };
|
|
4926
4934
|
}
|
|
4927
|
-
function
|
|
4935
|
+
function ur(t, e, n) {
|
|
4928
4936
|
if (t.length === 0) return e;
|
|
4929
4937
|
const r = t[0], o = t[t.length - 1];
|
|
4930
4938
|
if (n === "start") return ft(e, r.key);
|
|
@@ -4943,12 +4951,12 @@ function dr(t, e, n) {
|
|
|
4943
4951
|
}
|
|
4944
4952
|
case "in": {
|
|
4945
4953
|
if (!a.branch || a.empty) return e;
|
|
4946
|
-
if (!a.expanded) return
|
|
4954
|
+
if (!a.expanded) return Zr(e, a.key);
|
|
4947
4955
|
const c = t[i + 1];
|
|
4948
4956
|
return c === void 0 ? e : ft(e, c.key);
|
|
4949
4957
|
}
|
|
4950
4958
|
case "out": {
|
|
4951
|
-
if (a.branch && a.expanded) return
|
|
4959
|
+
if (a.branch && a.expanded) return Qr(e, a.key);
|
|
4952
4960
|
for (let c = i - 1; c >= 0; c--) {
|
|
4953
4961
|
const f = t[c];
|
|
4954
4962
|
if (f.level < a.level) return ft(e, f.key);
|
|
@@ -4957,10 +4965,10 @@ function dr(t, e, n) {
|
|
|
4957
4965
|
}
|
|
4958
4966
|
}
|
|
4959
4967
|
}
|
|
4960
|
-
function
|
|
4968
|
+
function fr(t, e) {
|
|
4961
4969
|
return t.anchor === e ? t : { ...t, anchor: e };
|
|
4962
4970
|
}
|
|
4963
|
-
function
|
|
4971
|
+
function Pu(t, e, n) {
|
|
4964
4972
|
const r = t.findIndex((f) => f.key === e), o = t.findIndex((f) => f.key === n);
|
|
4965
4973
|
if (r < 0 || o < 0) return [];
|
|
4966
4974
|
const [i, a] = r <= o ? [r, o] : [o, r], c = [];
|
|
@@ -4970,7 +4978,7 @@ function Lu(t, e, n) {
|
|
|
4970
4978
|
}
|
|
4971
4979
|
return c;
|
|
4972
4980
|
}
|
|
4973
|
-
function
|
|
4981
|
+
function Jr(t, e) {
|
|
4974
4982
|
const n = { nodes: /* @__PURE__ */ new Map(), parents: /* @__PURE__ */ new Map(), depth: /* @__PURE__ */ new Map() };
|
|
4975
4983
|
function r(o, i, a) {
|
|
4976
4984
|
const c = e.key(o);
|
|
@@ -4980,9 +4988,9 @@ function Zr(t, e) {
|
|
|
4980
4988
|
for (const o of t) r(o, null, 0);
|
|
4981
4989
|
return n;
|
|
4982
4990
|
}
|
|
4983
|
-
function
|
|
4991
|
+
function wn(t, e, n, r, o) {
|
|
4984
4992
|
if (r.length === 0) return n;
|
|
4985
|
-
const i =
|
|
4993
|
+
const i = Jr(t, e), a = new Set(n.checked);
|
|
4986
4994
|
function c(m) {
|
|
4987
4995
|
if (Ut(e, m)) {
|
|
4988
4996
|
const _ = e.key(m);
|
|
@@ -5021,19 +5029,19 @@ function yn(t, e, n, r, o) {
|
|
|
5021
5029
|
}
|
|
5022
5030
|
return { ...n, checked: a };
|
|
5023
5031
|
}
|
|
5024
|
-
function
|
|
5025
|
-
const o =
|
|
5026
|
-
return o.checked.size === n.checked.size && [...o.checked].every((a) => n.checked.has(a)) ?
|
|
5032
|
+
function eo(t, e, n, r) {
|
|
5033
|
+
const o = wn(t, e, n, r, !0);
|
|
5034
|
+
return o.checked.size === n.checked.size && [...o.checked].every((a) => n.checked.has(a)) ? wn(t, e, n, r, !1) : o;
|
|
5027
5035
|
}
|
|
5028
|
-
function
|
|
5029
|
-
const r =
|
|
5036
|
+
function Fu(t, e, n) {
|
|
5037
|
+
const r = Jr(t, e), o = [];
|
|
5030
5038
|
for (const [i, a] of r.nodes) Ut(e, a) && o.push(i);
|
|
5031
|
-
return o.length === 0 ? n :
|
|
5039
|
+
return o.length === 0 ? n : eo(t, e, n, o);
|
|
5032
5040
|
}
|
|
5033
|
-
function
|
|
5034
|
-
return
|
|
5041
|
+
function hr(t, e, n, r) {
|
|
5042
|
+
return eo(t, e, n, [r]);
|
|
5035
5043
|
}
|
|
5036
|
-
function
|
|
5044
|
+
function zu(t, e, n) {
|
|
5037
5045
|
const r = e.toLowerCase();
|
|
5038
5046
|
if (r === "" || t.length === 0) return null;
|
|
5039
5047
|
const o = t.findIndex((a) => a.key === n), i = o < 0 ? 0 : r.length === 1 ? o + 1 : o;
|
|
@@ -5043,7 +5051,7 @@ function Pu(t, e, n) {
|
|
|
5043
5051
|
}
|
|
5044
5052
|
return null;
|
|
5045
5053
|
}
|
|
5046
|
-
function
|
|
5054
|
+
function Iu(t, e, n) {
|
|
5047
5055
|
function r(o, i) {
|
|
5048
5056
|
const a = e.key(o);
|
|
5049
5057
|
if (i.push(a), a === n) return i;
|
|
@@ -5059,7 +5067,7 @@ function Fu(t, e, n) {
|
|
|
5059
5067
|
}
|
|
5060
5068
|
return null;
|
|
5061
5069
|
}
|
|
5062
|
-
function
|
|
5070
|
+
function Bu(t, e, n, r) {
|
|
5063
5071
|
var c, f;
|
|
5064
5072
|
let o = t, i = null;
|
|
5065
5073
|
const a = new Set(n.expanded);
|
|
@@ -5072,7 +5080,7 @@ function zu(t, e, n, r) {
|
|
|
5072
5080
|
}
|
|
5073
5081
|
return i === null ? { snapshot: n, reached: null } : { snapshot: { ...n, expanded: a }, reached: i };
|
|
5074
5082
|
}
|
|
5075
|
-
function
|
|
5083
|
+
function Ou(t, e) {
|
|
5076
5084
|
const n = [];
|
|
5077
5085
|
function r(o) {
|
|
5078
5086
|
var a;
|
|
@@ -5083,7 +5091,7 @@ function Iu(t, e) {
|
|
|
5083
5091
|
for (const o of t) r(o);
|
|
5084
5092
|
return n;
|
|
5085
5093
|
}
|
|
5086
|
-
function
|
|
5094
|
+
function im(t, e) {
|
|
5087
5095
|
const n = /* @__PURE__ */ new Set();
|
|
5088
5096
|
let r = null;
|
|
5089
5097
|
function o(i) {
|
|
@@ -5099,7 +5107,7 @@ function sm(t, e) {
|
|
|
5099
5107
|
for (const i of t) o(i);
|
|
5100
5108
|
return r;
|
|
5101
5109
|
}
|
|
5102
|
-
function
|
|
5110
|
+
function cm(t, e) {
|
|
5103
5111
|
const {
|
|
5104
5112
|
reader: n,
|
|
5105
5113
|
defaultExpanded: r,
|
|
@@ -5143,7 +5151,7 @@ function am(t, e) {
|
|
|
5143
5151
|
M
|
|
5144
5152
|
]
|
|
5145
5153
|
), R = ye(
|
|
5146
|
-
() =>
|
|
5154
|
+
() => Eu(t, n, C),
|
|
5147
5155
|
[t, n, C]
|
|
5148
5156
|
);
|
|
5149
5157
|
le(() => {
|
|
@@ -5171,33 +5179,33 @@ function am(t, e) {
|
|
|
5171
5179
|
const V = Y(L);
|
|
5172
5180
|
if (V === void 0 || !V.branch || V.empty) return;
|
|
5173
5181
|
const he = !V.expanded;
|
|
5174
|
-
B(he ?
|
|
5182
|
+
B(he ? Zr(C, L) : Qr(C, L)), he && V.unloaded && (y == null || y(V.node));
|
|
5175
5183
|
},
|
|
5176
5184
|
[Y, C, B, y]
|
|
5177
5185
|
), ne = se(
|
|
5178
5186
|
(L) => {
|
|
5179
|
-
B(
|
|
5187
|
+
B(fr(hr(t, n, C, L), L));
|
|
5180
5188
|
},
|
|
5181
5189
|
[t, n, C, B]
|
|
5182
5190
|
), ae = se(
|
|
5183
5191
|
(L) => {
|
|
5184
5192
|
const V = C.anchor ?? C.active;
|
|
5185
|
-
V !== null && B(
|
|
5193
|
+
V !== null && B(wn(t, n, C, Pu(R, V, L), !0));
|
|
5186
5194
|
},
|
|
5187
5195
|
[t, n, C, R, B]
|
|
5188
5196
|
), de = se(
|
|
5189
5197
|
(L) => {
|
|
5190
|
-
const V =
|
|
5198
|
+
const V = ur(R, C, L);
|
|
5191
5199
|
V.active === null || V.active === C.active || B(
|
|
5192
|
-
|
|
5193
|
-
|
|
5200
|
+
fr(
|
|
5201
|
+
hr(t, n, V, V.active),
|
|
5194
5202
|
V.active
|
|
5195
5203
|
)
|
|
5196
5204
|
);
|
|
5197
5205
|
},
|
|
5198
5206
|
[R, C, t, n, B]
|
|
5199
5207
|
), ue = se(
|
|
5200
|
-
() => B(
|
|
5208
|
+
() => B(Fu(t, n, C)),
|
|
5201
5209
|
[t, n, C, B]
|
|
5202
5210
|
), fe = se(
|
|
5203
5211
|
(L) => {
|
|
@@ -5207,27 +5215,27 @@ function am(t, e) {
|
|
|
5207
5215
|
},
|
|
5208
5216
|
[C, B, Y, h]
|
|
5209
5217
|
), Z = se(
|
|
5210
|
-
(L) => B(
|
|
5218
|
+
(L) => B(ur(R, C, L)),
|
|
5211
5219
|
[R, C, B]
|
|
5212
5220
|
), Q = se(
|
|
5213
5221
|
(L) => {
|
|
5214
|
-
const { snapshot: V, reached: he } =
|
|
5222
|
+
const { snapshot: V, reached: he } = Bu(t, n, C, L);
|
|
5215
5223
|
return he === null ? null : (B(ft(V, he)), H((me) => me + 1), he);
|
|
5216
5224
|
},
|
|
5217
5225
|
[t, n, C, B]
|
|
5218
5226
|
), I = se(
|
|
5219
5227
|
(L) => {
|
|
5220
|
-
const V =
|
|
5228
|
+
const V = Iu(t, n, L);
|
|
5221
5229
|
return V === null ? null : Q(V);
|
|
5222
5230
|
},
|
|
5223
5231
|
[t, n, Q]
|
|
5224
5232
|
), J = se(() => {
|
|
5225
|
-
B({ ...C, expanded: new Set(
|
|
5233
|
+
B({ ...C, expanded: new Set(Ou(t, n)) });
|
|
5226
5234
|
}, [t, n, C, B]), pe = se(() => {
|
|
5227
5235
|
B({ ...C, expanded: /* @__PURE__ */ new Set() });
|
|
5228
5236
|
}, [C, B]), ie = se(
|
|
5229
5237
|
(L) => {
|
|
5230
|
-
const V =
|
|
5238
|
+
const V = zu(R, L, C.active);
|
|
5231
5239
|
V !== null && B(ft(C, V));
|
|
5232
5240
|
},
|
|
5233
5241
|
[R, C, B]
|
|
@@ -5236,7 +5244,7 @@ function am(t, e) {
|
|
|
5236
5244
|
p === void 0 && W(L), u == null || u(L);
|
|
5237
5245
|
},
|
|
5238
5246
|
[p, u]
|
|
5239
|
-
), A =
|
|
5247
|
+
), A = Ru(w ? R.length : 0, {
|
|
5240
5248
|
rowHeight: (w == null ? void 0 : w.rowHeight) ?? 0,
|
|
5241
5249
|
overscan: w == null ? void 0 : w.overscan
|
|
5242
5250
|
});
|
|
@@ -5261,9 +5269,9 @@ function am(t, e) {
|
|
|
5261
5269
|
toggleAll: ue
|
|
5262
5270
|
};
|
|
5263
5271
|
}
|
|
5264
|
-
const
|
|
5265
|
-
text:
|
|
5266
|
-
heading:
|
|
5272
|
+
const Hu = "_text_1n64h_7 _text_1krlf_23", qu = "_heading_1n64h_11 _text_1krlf_23", ju = "_trackingDisplay_1n64h_100", Wu = "_trackingTight_1n64h_104", Gu = "_mono_1n64h_110", Uu = "_link_1n64h_119", qe = {
|
|
5273
|
+
text: Hu,
|
|
5274
|
+
heading: qu,
|
|
5267
5275
|
"size-xs": "_size-xs_1n64h_30",
|
|
5268
5276
|
"size-sm": "_size-sm_1n64h_33",
|
|
5269
5277
|
"size-md": "_size-md_1n64h_36",
|
|
@@ -5282,11 +5290,11 @@ const Bu = "_text_1n64h_7 _text_1krlf_23", Ou = "_heading_1n64h_11 _text_1krlf_2
|
|
|
5282
5290
|
"tracking-caps": "_tracking-caps_1n64h_85",
|
|
5283
5291
|
"leading-normal": "_leading-normal_1n64h_92",
|
|
5284
5292
|
"leading-tight": "_leading-tight_1n64h_95",
|
|
5285
|
-
trackingDisplay:
|
|
5286
|
-
trackingTight:
|
|
5287
|
-
mono:
|
|
5288
|
-
link:
|
|
5289
|
-
},
|
|
5293
|
+
trackingDisplay: ju,
|
|
5294
|
+
trackingTight: Wu,
|
|
5295
|
+
mono: Gu,
|
|
5296
|
+
link: Uu
|
|
5297
|
+
}, lm = K(function({
|
|
5290
5298
|
as: e = "p",
|
|
5291
5299
|
size: n = "md",
|
|
5292
5300
|
weight: r = "regular",
|
|
@@ -5316,15 +5324,15 @@ const Bu = "_text_1n64h_7 _text_1krlf_23", Ou = "_heading_1n64h_11 _text_1krlf_2
|
|
|
5316
5324
|
children: d
|
|
5317
5325
|
}
|
|
5318
5326
|
);
|
|
5319
|
-
}),
|
|
5327
|
+
}), Vu = {
|
|
5320
5328
|
1: "2xl",
|
|
5321
5329
|
2: "xl",
|
|
5322
5330
|
3: "lg",
|
|
5323
5331
|
4: "md",
|
|
5324
5332
|
5: "sm",
|
|
5325
5333
|
6: "xs"
|
|
5326
|
-
},
|
|
5327
|
-
const d = `h${e}`, p = n ??
|
|
5334
|
+
}, dm = K(function({ level: e = 2, size: n, weight: r = "semibold", tone: o = "default", className: i, children: a, ...c }, f) {
|
|
5335
|
+
const d = `h${e}`, p = n ?? Vu[e];
|
|
5328
5336
|
return /* @__PURE__ */ s(
|
|
5329
5337
|
d,
|
|
5330
5338
|
{
|
|
@@ -5343,7 +5351,7 @@ const Bu = "_text_1n64h_7 _text_1krlf_23", Ou = "_heading_1n64h_11 _text_1krlf_2
|
|
|
5343
5351
|
children: a
|
|
5344
5352
|
}
|
|
5345
5353
|
);
|
|
5346
|
-
}),
|
|
5354
|
+
}), um = K(function({ size: e = "md", external: n = !1, className: r, children: o, ...i }, a) {
|
|
5347
5355
|
return /* @__PURE__ */ s(
|
|
5348
5356
|
"a",
|
|
5349
5357
|
{
|
|
@@ -5354,44 +5362,44 @@ const Bu = "_text_1n64h_7 _text_1krlf_23", Ou = "_heading_1n64h_11 _text_1krlf_2
|
|
|
5354
5362
|
children: o
|
|
5355
5363
|
}
|
|
5356
5364
|
);
|
|
5357
|
-
}),
|
|
5358
|
-
hidden:
|
|
5359
|
-
focusable:
|
|
5360
|
-
},
|
|
5365
|
+
}), Yu = "_hidden_69gri_7", Ku = "_focusable_69gri_20 _text_1krlf_23", pr = {
|
|
5366
|
+
hidden: Yu,
|
|
5367
|
+
focusable: Ku
|
|
5368
|
+
}, to = K(function({ as: e, focusable: n = !1, className: r, children: o, ...i }, a) {
|
|
5361
5369
|
return /* @__PURE__ */ s(
|
|
5362
5370
|
e ?? "span",
|
|
5363
5371
|
{
|
|
5364
5372
|
ref: a,
|
|
5365
|
-
className: z(
|
|
5373
|
+
className: z(pr.hidden, n && pr.focusable, r),
|
|
5366
5374
|
...i,
|
|
5367
5375
|
children: o
|
|
5368
5376
|
}
|
|
5369
5377
|
);
|
|
5370
|
-
}),
|
|
5378
|
+
}), kn = {
|
|
5371
5379
|
ok: 0,
|
|
5372
5380
|
unknown: 1,
|
|
5373
5381
|
warning: 2,
|
|
5374
5382
|
alarm: 3
|
|
5375
5383
|
};
|
|
5376
|
-
function
|
|
5377
|
-
return
|
|
5384
|
+
function fm(t) {
|
|
5385
|
+
return kn[t];
|
|
5378
5386
|
}
|
|
5379
|
-
function
|
|
5387
|
+
function Xu(t) {
|
|
5380
5388
|
return typeof t == "number" && Number.isFinite(t);
|
|
5381
5389
|
}
|
|
5382
|
-
function
|
|
5390
|
+
function Zu(t, e) {
|
|
5383
5391
|
if (!Number.isFinite(e.value)) return null;
|
|
5384
5392
|
const n = e.side === "upper" ? t - e.value : e.value - t;
|
|
5385
5393
|
return n > 0 ? { limit: e, excess: n } : null;
|
|
5386
5394
|
}
|
|
5387
|
-
function
|
|
5388
|
-
const n =
|
|
5395
|
+
function Qu(t, e) {
|
|
5396
|
+
const n = kn[t.limit.severity], r = kn[e.limit.severity];
|
|
5389
5397
|
return n !== r ? n > r : t.excess > e.excess;
|
|
5390
5398
|
}
|
|
5391
|
-
function
|
|
5392
|
-
if (!
|
|
5393
|
-
const r = (e.limits ?? []).map((a) =>
|
|
5394
|
-
(a, c) => a === null ||
|
|
5399
|
+
function Ju(t, e = {}) {
|
|
5400
|
+
if (!Xu(t)) return { verdict: "unknown" };
|
|
5401
|
+
const r = (e.limits ?? []).map((a) => Zu(t, a)).filter((a) => a !== null).reduce(
|
|
5402
|
+
(a, c) => a === null || Qu(c, a) ? c : a,
|
|
5395
5403
|
null
|
|
5396
5404
|
), o = r === null ? { verdict: "ok" } : {
|
|
5397
5405
|
verdict: r.limit.severity,
|
|
@@ -5400,60 +5408,60 @@ function Zu(t, e = {}) {
|
|
|
5400
5408
|
}, i = e.target;
|
|
5401
5409
|
return i !== void 0 && Number.isFinite(i) && (o.deviation = t - i), o;
|
|
5402
5410
|
}
|
|
5403
|
-
function
|
|
5411
|
+
function mr(t) {
|
|
5404
5412
|
if (t == null) return null;
|
|
5405
5413
|
const e = t instanceof Date ? t.getTime() : t;
|
|
5406
5414
|
return Number.isFinite(e) ? e : null;
|
|
5407
5415
|
}
|
|
5408
|
-
const
|
|
5409
|
-
function
|
|
5410
|
-
const n =
|
|
5416
|
+
const _r = 6e4, ef = 1e3, tf = 10;
|
|
5417
|
+
function no(t, e) {
|
|
5418
|
+
const n = mr(t), r = mr(e);
|
|
5411
5419
|
return n === null || r === null ? null : Math.max(0, r - n);
|
|
5412
5420
|
}
|
|
5413
|
-
function
|
|
5414
|
-
const r =
|
|
5421
|
+
function nf(t, e, n) {
|
|
5422
|
+
const r = no(t, e);
|
|
5415
5423
|
return r === null || r >= n.lost ? "lost" : r >= n.stale ? "stale" : "fresh";
|
|
5416
5424
|
}
|
|
5417
|
-
function
|
|
5425
|
+
function rf(t) {
|
|
5418
5426
|
const e = [t.stale, t.lost].filter(
|
|
5419
5427
|
(o) => Number.isFinite(o) && o > 0
|
|
5420
5428
|
);
|
|
5421
|
-
if (e.length === 0) return
|
|
5422
|
-
const n = Math.min(...e), r = Math.round(n /
|
|
5423
|
-
return Math.min(
|
|
5429
|
+
if (e.length === 0) return _r;
|
|
5430
|
+
const n = Math.min(...e), r = Math.round(n / tf);
|
|
5431
|
+
return Math.min(_r, Math.max(ef, r));
|
|
5424
5432
|
}
|
|
5425
|
-
function
|
|
5426
|
-
const n = t instanceof Date ? t.getTime() : t, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: i } = e, a =
|
|
5433
|
+
function of(t, e) {
|
|
5434
|
+
const n = t instanceof Date ? t.getTime() : t, r = typeof n == "number" && Number.isFinite(n) ? n : null, { stale: o, lost: i } = e, a = rf({ stale: o, lost: i }), [c, f] = j(() => Date.now());
|
|
5427
5435
|
return le(() => {
|
|
5428
5436
|
const d = setInterval(() => f(Date.now()), a);
|
|
5429
5437
|
return () => clearInterval(d);
|
|
5430
5438
|
}, [a]), ye(
|
|
5431
5439
|
() => ({
|
|
5432
|
-
freshness:
|
|
5440
|
+
freshness: nf(r, c, {
|
|
5433
5441
|
stale: o,
|
|
5434
5442
|
lost: i
|
|
5435
5443
|
}),
|
|
5436
|
-
age:
|
|
5444
|
+
age: no(r, c),
|
|
5437
5445
|
now: c
|
|
5438
5446
|
}),
|
|
5439
5447
|
[r, c, o, i]
|
|
5440
5448
|
);
|
|
5441
5449
|
}
|
|
5442
|
-
const
|
|
5443
|
-
stat:
|
|
5444
|
-
body:
|
|
5445
|
-
figures:
|
|
5446
|
-
label:
|
|
5447
|
-
valueRow:
|
|
5448
|
-
value:
|
|
5449
|
-
unit:
|
|
5450
|
-
verdict:
|
|
5451
|
-
deviation:
|
|
5452
|
-
history:
|
|
5453
|
-
asOf:
|
|
5454
|
-
age:
|
|
5450
|
+
const sf = "_stat_y5wyr_11 _text_1krlf_23", af = "_body_y5wyr_22", cf = "_figures_y5wyr_29", lf = "_label_y5wyr_36", df = "_valueRow_y5wyr_43", uf = "_value_y5wyr_43", ff = "_unit_y5wyr_62", hf = "_verdict_y5wyr_69", pf = "_deviation_y5wyr_106", mf = "_history_y5wyr_111", _f = "_asOf_y5wyr_136", gf = "_age_y5wyr_154", Je = {
|
|
5451
|
+
stat: sf,
|
|
5452
|
+
body: af,
|
|
5453
|
+
figures: cf,
|
|
5454
|
+
label: lf,
|
|
5455
|
+
valueRow: df,
|
|
5456
|
+
value: uf,
|
|
5457
|
+
unit: ff,
|
|
5458
|
+
verdict: hf,
|
|
5459
|
+
deviation: pf,
|
|
5460
|
+
history: mf,
|
|
5461
|
+
asOf: _f,
|
|
5462
|
+
age: gf
|
|
5455
5463
|
};
|
|
5456
|
-
function
|
|
5464
|
+
function vf(t, e) {
|
|
5457
5465
|
switch (t) {
|
|
5458
5466
|
case "alarm":
|
|
5459
5467
|
return e.verdictAlarm;
|
|
@@ -5465,24 +5473,24 @@ function _f(t, e) {
|
|
|
5465
5473
|
return e.verdictOk;
|
|
5466
5474
|
}
|
|
5467
5475
|
}
|
|
5468
|
-
function
|
|
5476
|
+
function bf(t, e, n, r) {
|
|
5469
5477
|
if (t === void 0) return null;
|
|
5470
5478
|
const o = n.number(Math.abs(t), e);
|
|
5471
5479
|
return t === 0 ? r.deviationOnTarget : t > 0 ? r.deviationAbove(o) : r.deviationBelow(o);
|
|
5472
5480
|
}
|
|
5473
|
-
function
|
|
5481
|
+
function yf({
|
|
5474
5482
|
asOf: t,
|
|
5475
5483
|
ages: e
|
|
5476
5484
|
}) {
|
|
5477
|
-
const n = tt(), r = ve(), o =
|
|
5485
|
+
const n = tt(), r = ve(), o = of(t, e), i = o.freshness === "lost" ? r.freshnessDisconnected : o.freshness === "stale" ? r.freshnessStale : r.freshnessFresh, a = o.age;
|
|
5478
5486
|
return /* @__PURE__ */ x("span", { className: Je.asOf, "data-freshness": o.freshness, children: [
|
|
5479
5487
|
i,
|
|
5480
5488
|
a !== null && /* @__PURE__ */ s("span", { className: Je.age, children: n.relative(a) })
|
|
5481
5489
|
] });
|
|
5482
5490
|
}
|
|
5483
|
-
const
|
|
5491
|
+
const hm = K(function({ label: e, value: n, unit: r, decimals: o, limits: i, history: a, asOf: c, ages: f, className: d, ...p }, v) {
|
|
5484
5492
|
var T;
|
|
5485
|
-
const m = tt(), _ = ve(), l =
|
|
5493
|
+
const m = tt(), _ = ve(), l = Ju(n, i), u = l.verdict, h = vf(u, _), y = u !== "unknown", k = (((T = i == null ? void 0 : i.limits) == null ? void 0 : T.length) ?? 0) > 0 || !y, S = bf(l.deviation, o, m, _), P = y ? m.number(n, o) : _.statAbsentValue, D = `${e}: ${y ? `${P}${r ? ` ${r}` : ""}` : h}${y && k && u !== "ok" ? `, ${h}` : ""}`;
|
|
5486
5494
|
return /* @__PURE__ */ s(
|
|
5487
5495
|
"div",
|
|
5488
5496
|
{
|
|
@@ -5501,29 +5509,29 @@ const um = K(function({ label: e, value: n, unit: r, decimals: o, limits: i, his
|
|
|
5501
5509
|
] }),
|
|
5502
5510
|
k && /* @__PURE__ */ s("span", { className: Je.verdict, "data-verdict": u, children: h }),
|
|
5503
5511
|
S !== null && y && /* @__PURE__ */ s("span", { className: Je.deviation, children: S }),
|
|
5504
|
-
c !== void 0 && f !== void 0 && /* @__PURE__ */ s(
|
|
5512
|
+
c !== void 0 && f !== void 0 && /* @__PURE__ */ s(yf, { asOf: c ?? null, ages: f })
|
|
5505
5513
|
] }),
|
|
5506
|
-
a !== void 0 && a.length >= 2 && /* @__PURE__ */ s(
|
|
5514
|
+
a !== void 0 && a.length >= 2 && /* @__PURE__ */ s(ti, { data: a, width: "fill", className: Je.history, "aria-hidden": "true" })
|
|
5507
5515
|
] })
|
|
5508
5516
|
}
|
|
5509
5517
|
);
|
|
5510
|
-
}),
|
|
5511
|
-
function
|
|
5518
|
+
}), ro = "bottom", Zt = ["top", "right", "bottom", "left"], gr = ["bottom", "top", "right", "left"];
|
|
5519
|
+
function Qt(t) {
|
|
5512
5520
|
return t === "left" || t === "right";
|
|
5513
5521
|
}
|
|
5514
|
-
function
|
|
5515
|
-
if (e.width <= 0 || e.height <= 0) return
|
|
5522
|
+
function wf(t, e) {
|
|
5523
|
+
if (e.width <= 0 || e.height <= 0) return ro;
|
|
5516
5524
|
const n = (t.x - (e.left + e.width / 2)) / (e.width / 2), r = (t.y - (e.top + e.height / 2)) / (e.height / 2);
|
|
5517
5525
|
return Math.abs(n) > Math.abs(r) ? n > 0 ? "right" : "left" : r < 0 ? "top" : "bottom";
|
|
5518
5526
|
}
|
|
5519
|
-
function
|
|
5527
|
+
function oo(t, e) {
|
|
5520
5528
|
return 2 * e.padding + e.grip + t * (e.gap + e.tool);
|
|
5521
5529
|
}
|
|
5522
|
-
function
|
|
5523
|
-
const o =
|
|
5530
|
+
function Nn(t, e, n, r) {
|
|
5531
|
+
const o = oo(e, r), i = Qt(t), a = (i ? n.height : n.width) - 2 * r.margin, c = (i ? n.width : n.height) - 2 * r.margin;
|
|
5524
5532
|
return o <= a && r.thickness <= c;
|
|
5525
5533
|
}
|
|
5526
|
-
function
|
|
5534
|
+
function kf(t) {
|
|
5527
5535
|
switch (t) {
|
|
5528
5536
|
case "ArrowUp":
|
|
5529
5537
|
return "top";
|
|
@@ -5537,35 +5545,35 @@ function yf(t) {
|
|
|
5537
5545
|
return;
|
|
5538
5546
|
}
|
|
5539
5547
|
}
|
|
5540
|
-
function
|
|
5541
|
-
const n = Math.abs(
|
|
5542
|
-
return Math.min(n,
|
|
5543
|
-
}
|
|
5544
|
-
function
|
|
5545
|
-
return [...
|
|
5546
|
-
(o, i) =>
|
|
5547
|
-
).find((o) =>
|
|
5548
|
-
}
|
|
5549
|
-
const
|
|
5550
|
-
root:
|
|
5551
|
-
strip:
|
|
5552
|
-
gripSlot:
|
|
5553
|
-
grip:
|
|
5554
|
-
tool:
|
|
5555
|
-
inMode:
|
|
5556
|
-
refusal:
|
|
5548
|
+
function vr(t, e) {
|
|
5549
|
+
const n = Math.abs(Zt.indexOf(t) - Zt.indexOf(e));
|
|
5550
|
+
return Math.min(n, Zt.length - n);
|
|
5551
|
+
}
|
|
5552
|
+
function Nf(t, e, n, r) {
|
|
5553
|
+
return [...Zt].sort(
|
|
5554
|
+
(o, i) => vr(t, o) - vr(t, i) || gr.indexOf(o) - gr.indexOf(i)
|
|
5555
|
+
).find((o) => Nn(o, e, n, r));
|
|
5556
|
+
}
|
|
5557
|
+
const xf = "_root_96fcb_22 _text_1krlf_23", $f = "_strip_96fcb_31", Sf = "_gripSlot_96fcb_112", Tf = "_grip_96fcb_112 _ring_1krlf_126", Df = "_tool_96fcb_162 _ring_1krlf_126", Af = "_inMode_96fcb_196", Mf = "_refusal_96fcb_212", Tt = {
|
|
5558
|
+
root: xf,
|
|
5559
|
+
strip: $f,
|
|
5560
|
+
gripSlot: Sf,
|
|
5561
|
+
grip: Tf,
|
|
5562
|
+
tool: Df,
|
|
5563
|
+
inMode: Af,
|
|
5564
|
+
refusal: Mf
|
|
5557
5565
|
};
|
|
5558
|
-
function
|
|
5566
|
+
function hn(t) {
|
|
5559
5567
|
return Array.from(t.children);
|
|
5560
5568
|
}
|
|
5561
5569
|
function Wt(t, e) {
|
|
5562
5570
|
const n = Number.parseFloat(t.getPropertyValue(e));
|
|
5563
5571
|
return Number.isFinite(n) ? n : 0;
|
|
5564
5572
|
}
|
|
5565
|
-
const
|
|
5573
|
+
const pm = K(function({
|
|
5566
5574
|
tools: e,
|
|
5567
5575
|
place: n,
|
|
5568
|
-
defaultPlace: r =
|
|
5576
|
+
defaultPlace: r = ro,
|
|
5569
5577
|
onPlaceChange: o,
|
|
5570
5578
|
mode: i,
|
|
5571
5579
|
onModeChange: a,
|
|
@@ -5576,7 +5584,7 @@ const fm = K(function({
|
|
|
5576
5584
|
}, v) {
|
|
5577
5585
|
var ie;
|
|
5578
5586
|
const m = ve(), _ = O(null), l = O(null);
|
|
5579
|
-
|
|
5587
|
+
xn(v, () => _.current, []);
|
|
5580
5588
|
const [u, h] = j(r), y = n !== void 0, w = n ?? u, k = O(w);
|
|
5581
5589
|
k.current = w;
|
|
5582
5590
|
const [S, P] = j(null), [D, T] = j(""), U = O(null);
|
|
@@ -5590,11 +5598,11 @@ const fm = K(function({
|
|
|
5590
5598
|
var Ne;
|
|
5591
5599
|
const b = l.current;
|
|
5592
5600
|
if (b === null) return null;
|
|
5593
|
-
const A =
|
|
5601
|
+
const A = hn(b), L = A[0];
|
|
5594
5602
|
if (L === void 0) return null;
|
|
5595
5603
|
const V = b.getBoundingClientRect();
|
|
5596
5604
|
if (V.width === 0 && V.height === 0) return null;
|
|
5597
|
-
const he = getComputedStyle(b), me =
|
|
5605
|
+
const he = getComputedStyle(b), me = Qt(k.current), ke = (De) => me ? De.height : De.width, Ee = (De) => me ? De.width : De.height, Se = L.getBoundingClientRect(), Te = (Ne = A[1]) == null ? void 0 : Ne.getBoundingClientRect();
|
|
5598
5606
|
return {
|
|
5599
5607
|
tool: Te === void 0 ? 0 : ke(Te),
|
|
5600
5608
|
grip: ke(Se),
|
|
@@ -5621,7 +5629,7 @@ const fm = K(function({
|
|
|
5621
5629
|
place: b,
|
|
5622
5630
|
root: L.getBoundingClientRect(),
|
|
5623
5631
|
strip: A.getBoundingClientRect(),
|
|
5624
|
-
children:
|
|
5632
|
+
children: hn(A).map((V) => V.getBoundingClientRect())
|
|
5625
5633
|
};
|
|
5626
5634
|
}, []), H = se(() => {
|
|
5627
5635
|
U.current !== null && (clearTimeout(U.current), U.current = null), P(null);
|
|
@@ -5632,11 +5640,11 @@ const fm = K(function({
|
|
|
5632
5640
|
[y, H, $, o, m]
|
|
5633
5641
|
), R = se(
|
|
5634
5642
|
(b, A, L, V) => {
|
|
5635
|
-
const he =
|
|
5643
|
+
const he = oo(L, A);
|
|
5636
5644
|
P({
|
|
5637
5645
|
place: b,
|
|
5638
|
-
width: `${
|
|
5639
|
-
height: `${
|
|
5646
|
+
width: `${Qt(b) ? A.thickness : he}px`,
|
|
5647
|
+
height: `${Qt(b) ? he : A.thickness}px`
|
|
5640
5648
|
}), T(m.dockNoPlace(m.dockPlace(b))), U.current !== null && clearTimeout(U.current);
|
|
5641
5649
|
const me = l.current === null ? null : getComputedStyle(l.current), ke = me === null ? 0 : Vt(me, "--u-dock-refusal-duration");
|
|
5642
5650
|
U.current = V && ke > 0 ? setTimeout(() => {
|
|
@@ -5647,7 +5655,7 @@ const fm = K(function({
|
|
|
5647
5655
|
), B = se(
|
|
5648
5656
|
(b, A, L, V) => {
|
|
5649
5657
|
if (b !== k.current) {
|
|
5650
|
-
if (A !== null && L !== null && !
|
|
5658
|
+
if (A !== null && L !== null && !Nn(b, e.length, A, L)) {
|
|
5651
5659
|
R(b, L, e.length, V);
|
|
5652
5660
|
return;
|
|
5653
5661
|
}
|
|
@@ -5675,7 +5683,7 @@ const fm = K(function({
|
|
|
5675
5683
|
if (N.pointerId !== L) return;
|
|
5676
5684
|
const G = k.current;
|
|
5677
5685
|
if (V !== null) {
|
|
5678
|
-
const te =
|
|
5686
|
+
const te = wf({ x: N.clientX, y: N.clientY }, V);
|
|
5679
5687
|
te === k.current ? H() : B(te, V, he, !1);
|
|
5680
5688
|
}
|
|
5681
5689
|
k.current !== G && (Ee = N.clientX, Se = N.clientY), Te(N.clientX, N.clientY);
|
|
@@ -5688,7 +5696,7 @@ const fm = K(function({
|
|
|
5688
5696
|
};
|
|
5689
5697
|
A.addEventListener("pointermove", Ne), A.addEventListener("pointerup", Ce), A.addEventListener("pointercancel", Ce), window.addEventListener("keydown", We, !0), Y.current = De;
|
|
5690
5698
|
}, ne = (b) => {
|
|
5691
|
-
const A =
|
|
5699
|
+
const A = kf(b.key);
|
|
5692
5700
|
A !== void 0 && (b.preventDefault(), B(A, F(), g(), !0));
|
|
5693
5701
|
}, ae = e.filter((b) => b.disabled !== !0), [de, ue] = j(null), fe = (b) => {
|
|
5694
5702
|
var A;
|
|
@@ -5700,7 +5708,7 @@ const fm = K(function({
|
|
|
5700
5708
|
b.preventDefault();
|
|
5701
5709
|
const me = ae.findIndex(
|
|
5702
5710
|
(Te) => Te.id === b.currentTarget.dataset.tool
|
|
5703
|
-
), ke = V ? 0 : he ? ae.length - 1 :
|
|
5711
|
+
), ke = V ? 0 : he ? ae.length - 1 : Bn(me === -1 ? 0 : me, ae.length, A ? 1 : -1), Ee = ae[ke];
|
|
5704
5712
|
Ee !== void 0 && (ue(Ee.id), (Se = fe(Ee.id)) == null || Se.focus());
|
|
5705
5713
|
}, I = (b) => {
|
|
5706
5714
|
ue(b.id), c == null || c(b.id), i !== void 0 && i !== b.id && (a == null || a(b.id));
|
|
@@ -5710,7 +5718,7 @@ const fm = K(function({
|
|
|
5710
5718
|
if (b !== null && b.place === w) return;
|
|
5711
5719
|
J();
|
|
5712
5720
|
const A = $(w);
|
|
5713
|
-
M.current = A, !(b === null || A === null) && (
|
|
5721
|
+
M.current = A, !(b === null || A === null) && (on() || pe(b, A));
|
|
5714
5722
|
});
|
|
5715
5723
|
function J() {
|
|
5716
5724
|
for (const b of W.current) b.cancel();
|
|
@@ -5737,7 +5745,7 @@ const fm = K(function({
|
|
|
5737
5745
|
marginBottom: "0px"
|
|
5738
5746
|
});
|
|
5739
5747
|
W.current.push(L.animate([ke(b), ke(A)], me));
|
|
5740
|
-
const Ee =
|
|
5748
|
+
const Ee = hn(L), Se = b.strip.left - A.strip.left, Te = b.strip.top - A.strip.top;
|
|
5741
5749
|
Ee.forEach((Ne, De) => {
|
|
5742
5750
|
const Ce = b.children[De], We = A.children[De];
|
|
5743
5751
|
if (Ce === void 0 || We === void 0) return;
|
|
@@ -5755,8 +5763,8 @@ const fm = K(function({
|
|
|
5755
5763
|
if (b === null || typeof ResizeObserver > "u") return;
|
|
5756
5764
|
const A = new ResizeObserver(() => {
|
|
5757
5765
|
const L = F(), V = g();
|
|
5758
|
-
if (L === null || V === null ||
|
|
5759
|
-
const he =
|
|
5766
|
+
if (L === null || V === null || Nn(k.current, e.length, L, V)) return;
|
|
5767
|
+
const he = Nf(k.current, e.length, L, V);
|
|
5760
5768
|
he !== void 0 && C(he);
|
|
5761
5769
|
});
|
|
5762
5770
|
return A.observe(b), () => A.disconnect();
|
|
@@ -5778,12 +5786,12 @@ const fm = K(function({
|
|
|
5778
5786
|
"aria-label": m.dockGrip,
|
|
5779
5787
|
onPointerDown: ce,
|
|
5780
5788
|
onKeyDown: ne,
|
|
5781
|
-
children: /* @__PURE__ */ s(
|
|
5789
|
+
children: /* @__PURE__ */ s(xr, {})
|
|
5782
5790
|
}
|
|
5783
5791
|
) }),
|
|
5784
5792
|
e.map((b) => {
|
|
5785
5793
|
const A = i !== void 0 && i === b.id;
|
|
5786
|
-
return /* @__PURE__ */ s(
|
|
5794
|
+
return /* @__PURE__ */ s(Cr, { content: b.label, children: /* @__PURE__ */ s(
|
|
5787
5795
|
"button",
|
|
5788
5796
|
{
|
|
5789
5797
|
type: "button",
|
|
@@ -5813,10 +5821,10 @@ const fm = K(function({
|
|
|
5813
5821
|
"aria-hidden": "true"
|
|
5814
5822
|
}
|
|
5815
5823
|
),
|
|
5816
|
-
/* @__PURE__ */ s(
|
|
5824
|
+
/* @__PURE__ */ s(to, { role: "status", "aria-live": "polite", children: D })
|
|
5817
5825
|
] });
|
|
5818
5826
|
});
|
|
5819
|
-
function
|
|
5827
|
+
function mm({ open: t, onOpenChange: e, position: n, ariaLabel: r, children: o }) {
|
|
5820
5828
|
const i = O(null), a = O(null);
|
|
5821
5829
|
Ke(() => {
|
|
5822
5830
|
if (!t) return;
|
|
@@ -5856,24 +5864,24 @@ function hm({ open: t, onOpenChange: e, position: n, ariaLabel: r, children: o }
|
|
|
5856
5864
|
{
|
|
5857
5865
|
ref: f,
|
|
5858
5866
|
className: Lt.content,
|
|
5859
|
-
onKeyDown: (p) =>
|
|
5860
|
-
children: /* @__PURE__ */ s(
|
|
5867
|
+
onKeyDown: (p) => Rr(p, c.current, d),
|
|
5868
|
+
children: /* @__PURE__ */ s(Fn.Provider, { value: { close: d }, children: o })
|
|
5861
5869
|
}
|
|
5862
5870
|
)
|
|
5863
5871
|
}
|
|
5864
5872
|
)
|
|
5865
5873
|
] });
|
|
5866
5874
|
}
|
|
5867
|
-
const
|
|
5868
|
-
wrapper:
|
|
5869
|
-
sm:
|
|
5870
|
-
track:
|
|
5871
|
-
field:
|
|
5872
|
-
input:
|
|
5873
|
-
thumb:
|
|
5874
|
-
invalid:
|
|
5875
|
-
label:
|
|
5876
|
-
},
|
|
5875
|
+
const Cf = "_wrapper_uislv_8 _text_1krlf_23", Rf = "_sm_uislv_26", Lf = "_track_uislv_33", Ef = "_field_uislv_40", Pf = "_input_uislv_54", Ff = "_thumb_uislv_75", zf = "_invalid_uislv_119", If = "_label_uislv_33", kt = {
|
|
5876
|
+
wrapper: Cf,
|
|
5877
|
+
sm: Rf,
|
|
5878
|
+
track: Lf,
|
|
5879
|
+
field: Ef,
|
|
5880
|
+
input: Pf,
|
|
5881
|
+
thumb: Ff,
|
|
5882
|
+
invalid: zf,
|
|
5883
|
+
label: If
|
|
5884
|
+
}, _m = K(function({ label: e, size: n, invalid: r, className: o, style: i, id: a, ...c }, f) {
|
|
5877
5885
|
const d = Be(n), p = He(), v = a ?? (p == null ? void 0 : p.id), m = r ?? (p == null ? void 0 : p.invalid) ?? !1;
|
|
5878
5886
|
return /* @__PURE__ */ x("label", { className: z(kt.wrapper, d === "sm" && kt.sm, p && kt.field, o), style: i, htmlFor: v, children: [
|
|
5879
5887
|
/* @__PURE__ */ s(
|
|
@@ -5893,20 +5901,20 @@ const Af = "_wrapper_uislv_8 _text_1krlf_23", Mf = "_sm_uislv_26", Cf = "_track_
|
|
|
5893
5901
|
/* @__PURE__ */ s("span", { className: kt.track, "aria-hidden": "true", children: /* @__PURE__ */ s("span", { className: kt.thumb }) }),
|
|
5894
5902
|
e && /* @__PURE__ */ s("span", { className: kt.label, children: e })
|
|
5895
5903
|
] });
|
|
5896
|
-
}),
|
|
5897
|
-
slider:
|
|
5898
|
-
control:
|
|
5899
|
-
range:
|
|
5900
|
-
marks:
|
|
5901
|
-
mark:
|
|
5902
|
-
markLabel:
|
|
5903
|
-
readout:
|
|
5904
|
-
},
|
|
5904
|
+
}), Bf = "_slider_1nioq_13 _text_1krlf_23 _extent_1krlf_76", Of = "_control_1nioq_22", Hf = "_range_1nioq_28", qf = "_marks_1nioq_142", jf = "_mark_1nioq_142", Wf = "_markLabel_1nioq_157", Gf = "_readout_1nioq_175", Dt = {
|
|
5905
|
+
slider: Bf,
|
|
5906
|
+
control: Of,
|
|
5907
|
+
range: Hf,
|
|
5908
|
+
marks: qf,
|
|
5909
|
+
mark: jf,
|
|
5910
|
+
markLabel: Wf,
|
|
5911
|
+
readout: Gf
|
|
5912
|
+
}, Un = (t) => (String(t).split(".")[1] ?? "").length, so = (t, e, n) => Number((t + Math.floor((e - t) / n + 1e-9) * n).toFixed(Un(n)));
|
|
5905
5913
|
function Ot(t, e, n, r) {
|
|
5906
|
-
const o = Number((e + Math.round((t - e) / r) * r).toFixed(
|
|
5907
|
-
return Math.min(
|
|
5914
|
+
const o = Number((e + Math.round((t - e) / r) * r).toFixed(Un(r)));
|
|
5915
|
+
return Math.min(so(e, n, r), Math.max(e, o));
|
|
5908
5916
|
}
|
|
5909
|
-
function
|
|
5917
|
+
function Uf(t, e, n, r, o) {
|
|
5910
5918
|
const i = Math.max(o, Math.round((r - n) / 10 / o) * o);
|
|
5911
5919
|
switch (t) {
|
|
5912
5920
|
case "ArrowRight":
|
|
@@ -5922,12 +5930,12 @@ function Wf(t, e, n, r, o) {
|
|
|
5922
5930
|
case "Home":
|
|
5923
5931
|
return n;
|
|
5924
5932
|
case "End":
|
|
5925
|
-
return
|
|
5933
|
+
return so(n, r, o);
|
|
5926
5934
|
default:
|
|
5927
5935
|
return;
|
|
5928
5936
|
}
|
|
5929
5937
|
}
|
|
5930
|
-
const
|
|
5938
|
+
const gm = K(function({
|
|
5931
5939
|
value: e,
|
|
5932
5940
|
defaultValue: n,
|
|
5933
5941
|
onChange: r,
|
|
@@ -5944,11 +5952,11 @@ const mm = K(function({
|
|
|
5944
5952
|
onKeyDown: l,
|
|
5945
5953
|
...u
|
|
5946
5954
|
}, h) {
|
|
5947
|
-
const y = tt(), w = He(), [k, S] = j(() => Ot(n ?? o, o, i, a)), P = e !== void 0, D = P ? e : k, T = ($) => f ? f($) : y.number($,
|
|
5955
|
+
const y = tt(), w = He(), [k, S] = j(() => Ot(n ?? o, o, i, a)), P = e !== void 0, D = P ? e : k, T = ($) => f ? f($) : y.number($, Un(a)), U = T(D), g = Math.max(T(o).length, T(i).length), F = ($) => i > o ? ($ - o) / (i - o) * 100 : 0, M = ($) => {
|
|
5948
5956
|
$ !== D && (P || S($), r == null || r($));
|
|
5949
5957
|
}, W = ($) => {
|
|
5950
5958
|
if (l == null || l($), $.defaultPrevented || _) return;
|
|
5951
|
-
const H =
|
|
5959
|
+
const H = Uf($.key, D, o, i, a);
|
|
5952
5960
|
H !== void 0 && ($.preventDefault(), M(H));
|
|
5953
5961
|
};
|
|
5954
5962
|
return /* @__PURE__ */ x("div", { className: z(Dt.slider, p), style: v, children: [
|
|
@@ -5982,14 +5990,14 @@ const mm = K(function({
|
|
|
5982
5990
|
] }),
|
|
5983
5991
|
d && /* @__PURE__ */ s("span", { className: Dt.readout, style: { "--_room": g }, "aria-hidden": "true", children: U })
|
|
5984
5992
|
] });
|
|
5985
|
-
}),
|
|
5986
|
-
progress:
|
|
5987
|
-
track:
|
|
5988
|
-
fill:
|
|
5989
|
-
sweep:
|
|
5990
|
-
label:
|
|
5991
|
-
},
|
|
5992
|
-
const f = tt(), d = ve(), p = e !== void 0, v = p ?
|
|
5993
|
+
}), Vf = "_progress_1g9zo_10 _text_1krlf_23", Yf = "_track_1g9zo_19", Kf = "_fill_1g9zo_28", Xf = "_sweep_1g9zo_41", Zf = "_label_1g9zo_63", Gt = {
|
|
5994
|
+
progress: Vf,
|
|
5995
|
+
track: Yf,
|
|
5996
|
+
fill: Kf,
|
|
5997
|
+
sweep: Xf,
|
|
5998
|
+
label: Zf
|
|
5999
|
+
}, vm = K(function({ value: e, label: n, valueText: r, showLabel: o = !1, className: i, ...a }, c) {
|
|
6000
|
+
const f = tt(), d = ve(), p = e !== void 0, v = p ? qn(e) : 0;
|
|
5993
6001
|
return /* @__PURE__ */ x(
|
|
5994
6002
|
"div",
|
|
5995
6003
|
{
|
|
@@ -6000,7 +6008,7 @@ const mm = K(function({
|
|
|
6000
6008
|
role: "progressbar",
|
|
6001
6009
|
"aria-valuemin": p ? 0 : void 0,
|
|
6002
6010
|
"aria-valuemax": p ? 100 : void 0,
|
|
6003
|
-
"aria-valuenow": p ?
|
|
6011
|
+
"aria-valuenow": p ? Fr(v) : void 0,
|
|
6004
6012
|
"aria-valuetext": p ? r : void 0,
|
|
6005
6013
|
"data-indeterminate": p ? void 0 : "",
|
|
6006
6014
|
children: [
|
|
@@ -6015,19 +6023,19 @@ const mm = K(function({
|
|
|
6015
6023
|
]
|
|
6016
6024
|
}
|
|
6017
6025
|
);
|
|
6018
|
-
}),
|
|
6019
|
-
accordion:
|
|
6020
|
-
item:
|
|
6021
|
-
heading:
|
|
6022
|
-
header:
|
|
6023
|
-
title:
|
|
6024
|
-
chevron:
|
|
6025
|
-
chevronOpen:
|
|
6026
|
-
collapse:
|
|
6027
|
-
collapsed:
|
|
6028
|
-
collapseInner:
|
|
6029
|
-
panel:
|
|
6030
|
-
},
|
|
6026
|
+
}), Qf = "_accordion_amymf_9 _text_1krlf_23", Jf = "_item_amymf_15", eh = "_heading_amymf_19", th = "_header_amymf_26 _ring_1krlf_126", nh = "_title_amymf_57", rh = "_chevron_amymf_61", oh = "_chevronOpen_amymf_67", sh = "_collapse_amymf_71", ah = "_collapsed_amymf_77", ih = "_collapseInner_amymf_81", ch = "_panel_amymf_86", at = {
|
|
6027
|
+
accordion: Qf,
|
|
6028
|
+
item: Jf,
|
|
6029
|
+
heading: eh,
|
|
6030
|
+
header: th,
|
|
6031
|
+
title: nh,
|
|
6032
|
+
chevron: rh,
|
|
6033
|
+
chevronOpen: oh,
|
|
6034
|
+
collapse: sh,
|
|
6035
|
+
collapsed: ah,
|
|
6036
|
+
collapseInner: ih,
|
|
6037
|
+
panel: ch
|
|
6038
|
+
}, ao = it(null), bm = K(function({ type: e = "single", value: n, defaultValue: r = [], onChange: o, headingLevel: i = 3, className: a, onKeyDown: c, children: f, ...d }, p) {
|
|
6031
6039
|
const [v, m] = j(r), _ = n !== void 0, l = _ ? n : v, u = (y) => {
|
|
6032
6040
|
const k = l.includes(y) ? l.filter((S) => S !== y) : e === "single" ? [y] : [...l, y];
|
|
6033
6041
|
_ || m(k), o == null || o(k);
|
|
@@ -6045,9 +6053,9 @@ const mm = K(function({
|
|
|
6045
6053
|
}[y.key];
|
|
6046
6054
|
D && (y.preventDefault(), D.focus());
|
|
6047
6055
|
};
|
|
6048
|
-
return /* @__PURE__ */ s("div", { ref: p, className: z(at.accordion, a), ...d, "data-accordion": "", onKeyDown: h, children: /* @__PURE__ */ s(
|
|
6049
|
-
}),
|
|
6050
|
-
const f = Qe(
|
|
6056
|
+
return /* @__PURE__ */ s("div", { ref: p, className: z(at.accordion, a), ...d, "data-accordion": "", onKeyDown: h, children: /* @__PURE__ */ s(ao.Provider, { value: { open: l, toggle: u, headingLevel: i }, children: f }) });
|
|
6057
|
+
}), ym = K(function({ value: e, title: n, disabled: r = !1, className: o, children: i, ...a }, c) {
|
|
6058
|
+
const f = Qe(ao), d = Me(), p = `${d}-header`, v = `${d}-panel`, m = (f == null ? void 0 : f.open.includes(e)) ?? !1, _ = `h${(f == null ? void 0 : f.headingLevel) ?? 3}`;
|
|
6051
6059
|
return /* @__PURE__ */ x("div", { ref: c, className: z(at.item, o), ...a, children: [
|
|
6052
6060
|
/* @__PURE__ */ s(_, { className: at.heading, children: /* @__PURE__ */ x(
|
|
6053
6061
|
"button",
|
|
@@ -6066,10 +6074,10 @@ const mm = K(function({
|
|
|
6066
6074
|
]
|
|
6067
6075
|
}
|
|
6068
6076
|
) }),
|
|
6069
|
-
/* @__PURE__ */ s("div", { className: z(at.collapse, !m && at.collapsed), children: /* @__PURE__ */ s("div", { className: at.collapseInner,
|
|
6077
|
+
/* @__PURE__ */ s("div", { className: z(at.collapse, !m && at.collapsed), children: /* @__PURE__ */ s("div", { className: at.collapseInner, ...Yt(!m), children: /* @__PURE__ */ s("div", { id: v, role: "region", "aria-labelledby": p, className: at.panel, children: i }) }) })
|
|
6070
6078
|
] });
|
|
6071
6079
|
});
|
|
6072
|
-
function
|
|
6080
|
+
function lh(t, e, n, r) {
|
|
6073
6081
|
const o = t.length, i = (a) => t.slice(a).reduce((c, f) => c + f, 0);
|
|
6074
6082
|
if (o <= 2 || i(0) + (o - 1) * n <= r) return 0;
|
|
6075
6083
|
for (let a = 1; a < o - 2; a++) {
|
|
@@ -6078,24 +6086,24 @@ function ih(t, e, n, r) {
|
|
|
6078
6086
|
}
|
|
6079
6087
|
return o - 2;
|
|
6080
6088
|
}
|
|
6081
|
-
const
|
|
6082
|
-
breadcrumb:
|
|
6083
|
-
list:
|
|
6084
|
-
item:
|
|
6085
|
-
lastItem:
|
|
6086
|
-
link:
|
|
6087
|
-
text:
|
|
6088
|
-
current:
|
|
6089
|
-
more:
|
|
6090
|
-
separator:
|
|
6091
|
-
measure:
|
|
6092
|
-
},
|
|
6089
|
+
const dh = "_breadcrumb_5vnnn_9 _text_1krlf_23", uh = "_list_5vnnn_15", fh = "_item_5vnnn_27", hh = "_lastItem_5vnnn_35", ph = "_link_5vnnn_5 _ring_1krlf_126", mh = "_text_5vnnn_5", _h = "_current_5vnnn_61", gh = "_more_5vnnn_73 _ring_1krlf_126", vh = "_separator_5vnnn_101", bh = "_measure_5vnnn_109", Ae = {
|
|
6090
|
+
breadcrumb: dh,
|
|
6091
|
+
list: uh,
|
|
6092
|
+
item: fh,
|
|
6093
|
+
lastItem: hh,
|
|
6094
|
+
link: ph,
|
|
6095
|
+
text: mh,
|
|
6096
|
+
current: _h,
|
|
6097
|
+
more: gh,
|
|
6098
|
+
separator: vh,
|
|
6099
|
+
measure: bh
|
|
6100
|
+
}, Kt = /* @__PURE__ */ s(qt, { size: 8, className: Ae.separator }), wm = K(function({ items: e, className: n, ...r }, o) {
|
|
6093
6101
|
const i = ve(), a = O(null), c = O(null), [f, d] = j(0), p = se(() => {
|
|
6094
6102
|
var S;
|
|
6095
6103
|
const u = a.current, h = c.current;
|
|
6096
6104
|
if (!u || !h) return;
|
|
6097
6105
|
const y = Array.from(h.querySelectorAll("[data-measure-level]")).map((P) => P.offsetWidth), w = ((S = h.querySelector("[data-measure-more]")) == null ? void 0 : S.offsetWidth) ?? 0, k = Number.parseFloat(getComputedStyle(h).columnGap) || 0;
|
|
6098
|
-
d(
|
|
6106
|
+
d(lh(y, w, k, u.clientWidth));
|
|
6099
6107
|
}, []);
|
|
6100
6108
|
Ke(() => p()), le(() => {
|
|
6101
6109
|
const u = a.current;
|
|
@@ -6123,35 +6131,35 @@ const ch = "_breadcrumb_5vnnn_9 _text_1krlf_23", lh = "_list_5vnnn_15", dh = "_i
|
|
|
6123
6131
|
return /* @__PURE__ */ x("nav", { ref: Oe(a, o), "aria-label": i.breadcrumb, className: z(Ae.breadcrumb, n), ...r, children: [
|
|
6124
6132
|
/* @__PURE__ */ s("ol", { className: Ae.list, children: e.map((u, h) => h > 0 && h <= f ? h > 1 ? null : /* @__PURE__ */ x("li", { className: Ae.item, children: [
|
|
6125
6133
|
/* @__PURE__ */ s(
|
|
6126
|
-
|
|
6134
|
+
Lr,
|
|
6127
6135
|
{
|
|
6128
6136
|
trigger: /* @__PURE__ */ s("button", { type: "button", className: Ae.more, "aria-label": i.breadcrumbFolded, children: "…" }),
|
|
6129
|
-
children: m.map((y, w) => /* @__PURE__ */ s(
|
|
6137
|
+
children: m.map((y, w) => /* @__PURE__ */ s(hs, { disabled: !y.href && !y.onSelect, onSelect: () => _(y), children: y.label }, w))
|
|
6130
6138
|
}
|
|
6131
6139
|
),
|
|
6132
|
-
|
|
6140
|
+
Kt
|
|
6133
6141
|
] }, "more") : /* @__PURE__ */ x("li", { className: z(Ae.item, h === v && Ae.lastItem), children: [
|
|
6134
6142
|
l(u, h),
|
|
6135
|
-
h < v &&
|
|
6143
|
+
h < v && Kt
|
|
6136
6144
|
] }, h)) }),
|
|
6137
6145
|
/* @__PURE__ */ x("ol", { ref: c, className: z(Ae.list, Ae.measure), "aria-hidden": "true", children: [
|
|
6138
6146
|
e.map((u, h) => /* @__PURE__ */ x("li", { className: Ae.item, "data-measure-level": "", children: [
|
|
6139
6147
|
/* @__PURE__ */ s("span", { className: z(Ae.text, h === v && Ae.current), children: u.label }),
|
|
6140
|
-
h < v &&
|
|
6148
|
+
h < v && Kt
|
|
6141
6149
|
] }, h)),
|
|
6142
6150
|
/* @__PURE__ */ x("li", { className: Ae.item, "data-measure-more": "", children: [
|
|
6143
6151
|
/* @__PURE__ */ s("span", { className: Ae.more, children: "…" }),
|
|
6144
|
-
|
|
6152
|
+
Kt
|
|
6145
6153
|
] })
|
|
6146
6154
|
] })
|
|
6147
6155
|
] });
|
|
6148
|
-
}),
|
|
6149
|
-
splitter:
|
|
6150
|
-
vertical:
|
|
6151
|
-
pane:
|
|
6152
|
-
separator:
|
|
6153
|
-
grip:
|
|
6154
|
-
},
|
|
6156
|
+
}), yh = "_splitter_qhaiw_10", wh = "_vertical_qhaiw_17", kh = "_pane_qhaiw_22 _scroll_1krlf_97", Nh = "_separator_qhaiw_29", xh = "_grip_qhaiw_69", It = {
|
|
6157
|
+
splitter: yh,
|
|
6158
|
+
vertical: wh,
|
|
6159
|
+
pane: kh,
|
|
6160
|
+
separator: Nh,
|
|
6161
|
+
grip: xh
|
|
6162
|
+
}, km = K(function({
|
|
6155
6163
|
orientation: e = "horizontal",
|
|
6156
6164
|
value: n,
|
|
6157
6165
|
defaultValue: r = 50,
|
|
@@ -6198,7 +6206,7 @@ const ch = "_breadcrumb_5vnnn_9 _text_1krlf_23", lh = "_list_5vnnn_15", dh = "_i
|
|
|
6198
6206
|
onKeyDown: W,
|
|
6199
6207
|
style: { ...p, "--_first": `${T}fr`, "--_second": `${100 - T}fr` },
|
|
6200
6208
|
children: [
|
|
6201
|
-
/* @__PURE__ */ s("div", { id: h, className: It.pane,
|
|
6209
|
+
/* @__PURE__ */ s("div", { id: h, className: It.pane, ...Yt(T <= 0), children: m[0] }),
|
|
6202
6210
|
/* @__PURE__ */ s(
|
|
6203
6211
|
"div",
|
|
6204
6212
|
{
|
|
@@ -6225,39 +6233,39 @@ const ch = "_breadcrumb_5vnnn_9 _text_1krlf_23", lh = "_list_5vnnn_15", dh = "_i
|
|
|
6225
6233
|
onPointerCancel: () => {
|
|
6226
6234
|
g.current = null;
|
|
6227
6235
|
},
|
|
6228
|
-
children: /* @__PURE__ */ s(
|
|
6236
|
+
children: /* @__PURE__ */ s(xr, { className: It.grip })
|
|
6229
6237
|
}
|
|
6230
6238
|
),
|
|
6231
|
-
/* @__PURE__ */ s("div", { className: It.pane,
|
|
6239
|
+
/* @__PURE__ */ s("div", { className: It.pane, ...Yt(T >= 100), children: m[1] })
|
|
6232
6240
|
]
|
|
6233
6241
|
}
|
|
6234
6242
|
);
|
|
6235
6243
|
});
|
|
6236
|
-
function
|
|
6244
|
+
function $h(t, e, n) {
|
|
6237
6245
|
return t <= 0 || e <= t ? "row" : n <= t ? "stacked" : "column";
|
|
6238
6246
|
}
|
|
6239
|
-
function
|
|
6247
|
+
function Sh(t, e) {
|
|
6240
6248
|
const n = t.length;
|
|
6241
6249
|
if (n === 0) return 0;
|
|
6242
6250
|
const r = t[n - 1];
|
|
6243
6251
|
return n === 1 ? r : (n - 1) * Math.max(...t.slice(0, -1)) + r + (n - 1) * e;
|
|
6244
6252
|
}
|
|
6245
|
-
function
|
|
6253
|
+
function Th(t, e) {
|
|
6246
6254
|
return t.length === 0 ? 0 : t.length * Math.max(...t) + (t.length - 1) * e;
|
|
6247
6255
|
}
|
|
6248
|
-
const
|
|
6249
|
-
stepper:
|
|
6250
|
-
step:
|
|
6251
|
-
done:
|
|
6252
|
-
marker:
|
|
6253
|
-
current:
|
|
6254
|
-
failed:
|
|
6255
|
-
text:
|
|
6256
|
-
label:
|
|
6257
|
-
description:
|
|
6258
|
-
upcoming:
|
|
6259
|
-
vertical:
|
|
6260
|
-
},
|
|
6256
|
+
const Dh = "_stepper_1w41b_11 _text_1krlf_23", Ah = "_step_1w41b_11", Mh = "_done_1w41b_43", Ch = "_marker_1w41b_47", Rh = "_current_1w41b_74", Lh = "_failed_1w41b_79", Eh = "_text_1w41b_85", Ph = "_label_1w41b_95", Fh = "_description_1w41b_96", zh = "_upcoming_1w41b_110", Ih = "_vertical_1w41b_122", ot = {
|
|
6257
|
+
stepper: Dh,
|
|
6258
|
+
step: Ah,
|
|
6259
|
+
done: Mh,
|
|
6260
|
+
marker: Ch,
|
|
6261
|
+
current: Rh,
|
|
6262
|
+
failed: Lh,
|
|
6263
|
+
text: Eh,
|
|
6264
|
+
label: Ph,
|
|
6265
|
+
description: Fh,
|
|
6266
|
+
upcoming: zh,
|
|
6267
|
+
vertical: Ih
|
|
6268
|
+
}, Bh = (t, e, n) => t.failed ? "failed" : e < n ? "done" : e === n ? "current" : "upcoming", Nm = K(function({ steps: e, current: n, orientation: r = "horizontal", className: o, ...i }, a) {
|
|
6261
6269
|
const c = ve(), f = O(null), [d, p] = j("row"), v = se(() => {
|
|
6262
6270
|
const _ = f.current;
|
|
6263
6271
|
if (!_ || r === "vertical" || _.clientWidth <= 0) return;
|
|
@@ -6268,18 +6276,18 @@ const Sh = "_stepper_1w41b_11 _text_1krlf_23", Th = "_step_1w41b_11", Dh = "_don
|
|
|
6268
6276
|
const u = Number.parseFloat(getComputedStyle(l).columnGap) || 0, h = Array.from(l.children), y = Array.from(l.querySelectorAll(`.${ot.description}`));
|
|
6269
6277
|
for (const S of y) S.style.display = "none";
|
|
6270
6278
|
for (const S of h) S.style.cssText = "flex:none;width:max-content";
|
|
6271
|
-
const w =
|
|
6279
|
+
const w = Sh(h.map((S) => S.getBoundingClientRect().width), u);
|
|
6272
6280
|
for (const S of y) S.style.display = "";
|
|
6273
6281
|
l.setAttribute("data-fit", "stacked");
|
|
6274
6282
|
for (const S of h) S.style.width = "min-content";
|
|
6275
|
-
const k =
|
|
6283
|
+
const k = Th(
|
|
6276
6284
|
h.map((S) => {
|
|
6277
6285
|
const P = S.querySelector(`.${ot.text}`);
|
|
6278
6286
|
return P && (P.style.width = "min-content"), Math.max(S.getBoundingClientRect().width, (P == null ? void 0 : P.getBoundingClientRect().width) ?? 0);
|
|
6279
6287
|
}),
|
|
6280
6288
|
u
|
|
6281
6289
|
);
|
|
6282
|
-
l.remove(), p(
|
|
6290
|
+
l.remove(), p($h(_.clientWidth, w, k));
|
|
6283
6291
|
}, [r]);
|
|
6284
6292
|
Ke(() => v()), le(() => {
|
|
6285
6293
|
var h;
|
|
@@ -6307,7 +6315,7 @@ const Sh = "_stepper_1w41b_11 _text_1krlf_23", Th = "_step_1w41b_11", Dh = "_don
|
|
|
6307
6315
|
"data-orientation": r,
|
|
6308
6316
|
"data-fit": r === "vertical" ? void 0 : d,
|
|
6309
6317
|
children: e.map((_, l) => {
|
|
6310
|
-
const u =
|
|
6318
|
+
const u = Bh(_, l, n), h = m[u];
|
|
6311
6319
|
return /* @__PURE__ */ x(
|
|
6312
6320
|
"li",
|
|
6313
6321
|
{
|
|
@@ -6332,7 +6340,7 @@ const Sh = "_stepper_1w41b_11 _text_1krlf_23", Th = "_step_1w41b_11", Dh = "_don
|
|
|
6332
6340
|
/* @__PURE__ */ x("span", { className: ot.text, children: [
|
|
6333
6341
|
/* @__PURE__ */ x("span", { className: ot.label, children: [
|
|
6334
6342
|
_.label,
|
|
6335
|
-
h && /* @__PURE__ */ x(
|
|
6343
|
+
h && /* @__PURE__ */ x(to, { children: [
|
|
6336
6344
|
", ",
|
|
6337
6345
|
h
|
|
6338
6346
|
] })
|
|
@@ -6347,7 +6355,7 @@ const Sh = "_stepper_1w41b_11 _text_1krlf_23", Th = "_step_1w41b_11", Dh = "_don
|
|
|
6347
6355
|
}
|
|
6348
6356
|
);
|
|
6349
6357
|
});
|
|
6350
|
-
function
|
|
6358
|
+
function Oh(t, e) {
|
|
6351
6359
|
const n = (e ?? "").split(",").map((i) => i.trim().toLowerCase()).filter(Boolean);
|
|
6352
6360
|
if (n.length === 0) return !0;
|
|
6353
6361
|
const r = t.name.toLowerCase(), o = t.type.toLowerCase();
|
|
@@ -6355,22 +6363,22 @@ function Ih(t, e) {
|
|
|
6355
6363
|
(i) => i.startsWith(".") ? r.endsWith(i) : i.endsWith("/*") ? o.startsWith(i.slice(0, -1)) : o === i
|
|
6356
6364
|
);
|
|
6357
6365
|
}
|
|
6358
|
-
const
|
|
6359
|
-
zone:
|
|
6360
|
-
dragging:
|
|
6361
|
-
invalidZone:
|
|
6362
|
-
key:
|
|
6363
|
-
input:
|
|
6364
|
-
face:
|
|
6365
|
-
invalid:
|
|
6366
|
-
hint:
|
|
6367
|
-
list:
|
|
6368
|
-
file:
|
|
6369
|
-
name:
|
|
6370
|
-
size:
|
|
6371
|
-
remove:
|
|
6372
|
-
rejected:
|
|
6373
|
-
},
|
|
6366
|
+
const Hh = "_zone_1agii_15 _text_1krlf_23 _extent_1krlf_76", qh = "_dragging_1agii_31", jh = "_invalidZone_1agii_38", Wh = "_key_1agii_42", Gh = "_input_1agii_47", Uh = "_face_1agii_57", Vh = "_invalid_1agii_38", Yh = "_hint_1agii_106", Kh = "_list_1agii_114", Xh = "_file_1agii_125", Zh = "_name_1agii_134", Qh = "_size_1agii_141", Jh = "_remove_1agii_150 _ring_1krlf_126", ep = "_rejected_1agii_179", Ve = {
|
|
6367
|
+
zone: Hh,
|
|
6368
|
+
dragging: qh,
|
|
6369
|
+
invalidZone: jh,
|
|
6370
|
+
key: Wh,
|
|
6371
|
+
input: Gh,
|
|
6372
|
+
face: Uh,
|
|
6373
|
+
invalid: Vh,
|
|
6374
|
+
hint: Yh,
|
|
6375
|
+
list: Kh,
|
|
6376
|
+
file: Xh,
|
|
6377
|
+
name: Zh,
|
|
6378
|
+
size: Qh,
|
|
6379
|
+
remove: Jh,
|
|
6380
|
+
rejected: ep
|
|
6381
|
+
}, tp = (t, e) => t < 1e6 ? `${e.number(Math.max(t > 0 ? 1 : 0, Math.round(t / 1e3)), 0)} kB` : `${e.number(t / 1e6, 1)} MB`, xm = K(function({ value: e, onChange: n, invalid: r, accept: o, multiple: i = !1, disabled: a = !1, className: c, style: f, id: d, ...p }, v) {
|
|
6374
6382
|
const m = ve(), _ = tt(), l = He(), u = O(null), [h, y] = j([]), [w, k] = j([]), [S, P] = j(!1), D = e !== void 0, T = D ? e : h, U = r ?? (l == null ? void 0 : l.invalid) ?? !1;
|
|
6375
6383
|
le(() => {
|
|
6376
6384
|
const $ = u.current;
|
|
@@ -6384,7 +6392,7 @@ const Bh = "_zone_1agii_15 _text_1krlf_23 _extent_1krlf_76", Oh = "_dragging_1ag
|
|
|
6384
6392
|
const g = ($) => {
|
|
6385
6393
|
D || y($), n == null || n($);
|
|
6386
6394
|
}, F = ($) => {
|
|
6387
|
-
const H = $.filter((R) =>
|
|
6395
|
+
const H = $.filter((R) => Oh(R, o)), C = $.filter((R) => !H.includes(R)).map((R) => R.name);
|
|
6388
6396
|
k(C), C.length > 0 && pt(C.map((R) => m.fileNotAccepted(R)).join(". "), u.current), g(i ? H : H.slice(0, 1));
|
|
6389
6397
|
}, M = ($) => {
|
|
6390
6398
|
var H;
|
|
@@ -6435,7 +6443,7 @@ const Bh = "_zone_1agii_15 _text_1krlf_23 _extent_1krlf_76", Oh = "_dragging_1ag
|
|
|
6435
6443
|
/* @__PURE__ */ s("span", { className: Ve.hint, children: i ? m.dropFiles : m.dropFile }),
|
|
6436
6444
|
T.length > 0 && /* @__PURE__ */ s("ul", { className: Ve.list, children: T.map(($, H) => /* @__PURE__ */ x("li", { className: Ve.file, children: [
|
|
6437
6445
|
/* @__PURE__ */ s("span", { className: Ve.name, children: $.name }),
|
|
6438
|
-
/* @__PURE__ */ s("span", { className: Ve.size, children:
|
|
6446
|
+
/* @__PURE__ */ s("span", { className: Ve.size, children: tp($.size, _) }),
|
|
6439
6447
|
/* @__PURE__ */ s(
|
|
6440
6448
|
"button",
|
|
6441
6449
|
{
|
|
@@ -6454,18 +6462,18 @@ const Bh = "_zone_1agii_15 _text_1krlf_23 _extent_1krlf_76", Oh = "_dragging_1ag
|
|
|
6454
6462
|
]
|
|
6455
6463
|
}
|
|
6456
6464
|
);
|
|
6457
|
-
}),
|
|
6458
|
-
control:
|
|
6459
|
-
fill:
|
|
6460
|
-
segment:
|
|
6461
|
-
invalid:
|
|
6462
|
-
input:
|
|
6463
|
-
icon:
|
|
6464
|
-
label:
|
|
6465
|
-
disabled:
|
|
6466
|
-
sm:
|
|
6467
|
-
inset:
|
|
6468
|
-
},
|
|
6465
|
+
}), np = "_control_1wb07_13 _text_1krlf_23", rp = "_fill_1wb07_33", op = "_segment_1wb07_38", sp = "_invalid_1wb07_44", ap = "_input_1wb07_91", ip = "_icon_1wb07_109", cp = "_label_1wb07_120", lp = "_disabled_1wb07_157", dp = "_sm_1wb07_218", up = "_inset_1wb07_173", st = {
|
|
6466
|
+
control: np,
|
|
6467
|
+
fill: rp,
|
|
6468
|
+
segment: op,
|
|
6469
|
+
invalid: sp,
|
|
6470
|
+
input: ap,
|
|
6471
|
+
icon: ip,
|
|
6472
|
+
label: cp,
|
|
6473
|
+
disabled: lp,
|
|
6474
|
+
sm: dp,
|
|
6475
|
+
inset: up
|
|
6476
|
+
}, $m = K(function({
|
|
6469
6477
|
options: e,
|
|
6470
6478
|
value: n,
|
|
6471
6479
|
defaultValue: r,
|
|
@@ -6479,7 +6487,7 @@ const Bh = "_zone_1agii_15 _text_1krlf_23 _extent_1krlf_76", Oh = "_dragging_1ag
|
|
|
6479
6487
|
onKeyDown: v,
|
|
6480
6488
|
...m
|
|
6481
6489
|
}, _) {
|
|
6482
|
-
const l = Be(i), u = He(), h =
|
|
6490
|
+
const l = Be(i), u = He(), h = Vr({
|
|
6483
6491
|
options: e,
|
|
6484
6492
|
value: n,
|
|
6485
6493
|
defaultValue: r,
|
|
@@ -6523,131 +6531,132 @@ const Bh = "_zone_1agii_15 _text_1krlf_23 _extent_1krlf_76", Oh = "_dragging_1ag
|
|
|
6523
6531
|
);
|
|
6524
6532
|
});
|
|
6525
6533
|
export {
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6534
|
+
bm as Accordion,
|
|
6535
|
+
ym as AccordionItem,
|
|
6536
|
+
vp as Alert,
|
|
6529
6537
|
qt as AngleGlyph,
|
|
6530
|
-
|
|
6531
|
-
|
|
6538
|
+
bp as Badge,
|
|
6539
|
+
wm as Breadcrumb,
|
|
6532
6540
|
$e as Button,
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6541
|
+
vs as ButtonGroup,
|
|
6542
|
+
$r as CalendarGlyph,
|
|
6543
|
+
Sp as Card,
|
|
6544
|
+
Dp as CardBody,
|
|
6545
|
+
Tp as CardHeader,
|
|
6546
|
+
In as Checkbox,
|
|
6547
|
+
Sr as ClockGlyph,
|
|
6548
|
+
Cp as Combobox,
|
|
6549
|
+
Ap as CommandPalette,
|
|
6550
|
+
Gp as ConfirmDialog,
|
|
6551
|
+
mm as ContextMenu,
|
|
6552
|
+
Co as ControlSizeProvider,
|
|
6545
6553
|
et as CrossGlyph,
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6554
|
+
pn as DEFAULT_FORMATS,
|
|
6555
|
+
kr as DEFAULT_LANGUAGE,
|
|
6556
|
+
Pp as DEFAULT_PRESETS,
|
|
6557
|
+
wr as DEFAULT_SEPARATORS,
|
|
6550
6558
|
Mt as DEFAULT_WORDING,
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6559
|
+
Lp as DatePicker,
|
|
6560
|
+
Fp as DateRangePicker,
|
|
6561
|
+
Ep as DateTimePicker,
|
|
6562
|
+
zp as DateTimeRangePicker,
|
|
6563
|
+
Ip as Divider,
|
|
6564
|
+
pm as Dock,
|
|
6565
|
+
jp as Drawer,
|
|
6566
|
+
Bp as EmptyState,
|
|
6567
|
+
xm as FileInput,
|
|
6568
|
+
Np as FormField,
|
|
6569
|
+
ss as FormFieldBoundary,
|
|
6570
|
+
Hp as Grid,
|
|
6571
|
+
_p as GridGlyph,
|
|
6572
|
+
xr as GripGlyph,
|
|
6573
|
+
dm as Heading,
|
|
6574
|
+
_n as IconButton,
|
|
6575
|
+
Hr as Input,
|
|
6576
|
+
wo as LanguageProvider,
|
|
6577
|
+
um as Link,
|
|
6578
|
+
gp as MeasureGlyph,
|
|
6579
|
+
Lr as Menu,
|
|
6580
|
+
hs as MenuItem,
|
|
6581
|
+
xp as MenuSeparator,
|
|
6582
|
+
Rp as Meter,
|
|
6583
|
+
No as MinusGlyph,
|
|
6584
|
+
kl as Modal,
|
|
6585
|
+
Wp as ModalBody,
|
|
6586
|
+
xl as ModalFooter,
|
|
6587
|
+
Nl as ModalHeader,
|
|
6588
|
+
Up as MultiSelect,
|
|
6589
|
+
qp as NumberInput,
|
|
6590
|
+
ko as PlusGlyph,
|
|
6583
6591
|
$t as Popover,
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6592
|
+
vm as ProgressBar,
|
|
6593
|
+
Vp as RadioGroup,
|
|
6594
|
+
$m as SegmentedControl,
|
|
6595
|
+
Yp as Select,
|
|
6596
|
+
Kp as Skeleton,
|
|
6597
|
+
gm as Slider,
|
|
6598
|
+
ti as Sparkline,
|
|
6599
|
+
An as Spinner,
|
|
6600
|
+
$p as SplitButton,
|
|
6601
|
+
km as Splitter,
|
|
6602
|
+
Op as Stack,
|
|
6603
|
+
hm as Stat,
|
|
6604
|
+
Nm as Stepper,
|
|
6605
|
+
_m as Switch,
|
|
6606
|
+
em as Tab,
|
|
6607
|
+
Jp as TabList,
|
|
6608
|
+
tm as TabPanel,
|
|
6609
|
+
Qp as Tabs,
|
|
6610
|
+
Zp as Tag,
|
|
6611
|
+
Xp as TagGroup,
|
|
6612
|
+
lm as Text,
|
|
6613
|
+
nm as Textarea,
|
|
6614
|
+
om as ToastProvider,
|
|
6615
|
+
Cr as Tooltip,
|
|
6616
|
+
am as TreeSearch,
|
|
6617
|
+
sm as TreeView,
|
|
6618
|
+
kp as UmrissProvider,
|
|
6619
|
+
to as VisuallyHidden,
|
|
6620
|
+
no as age,
|
|
6621
|
+
Ou as allBranches,
|
|
6622
|
+
pt as announce,
|
|
6623
|
+
Ju as assess,
|
|
6624
|
+
rf as cadence,
|
|
6625
|
+
Fd as clampedHeight,
|
|
6626
|
+
Qr as collapse,
|
|
6627
|
+
im as duplicateKey,
|
|
6628
|
+
Zr as expand,
|
|
6629
|
+
nf as freshness,
|
|
6630
|
+
Pu as keysBetween,
|
|
6631
|
+
yo as mergeLanguage,
|
|
6632
|
+
ur as move,
|
|
6633
|
+
Iu as pathTo,
|
|
6634
|
+
nn as rangeDays,
|
|
6635
|
+
Pd as remainingChars,
|
|
6636
|
+
Bu as revealPath,
|
|
6637
|
+
Cu as scrollForRow,
|
|
6638
|
+
io as separatorsOf,
|
|
6630
6639
|
ft as setActive,
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
+
fr as setAnchor,
|
|
6641
|
+
wn as setChecked,
|
|
6642
|
+
Fu as toggleAll,
|
|
6643
|
+
hr as toggleCheck,
|
|
6644
|
+
Eu as treeModel,
|
|
6645
|
+
zu as typeaheadTarget,
|
|
6646
|
+
Mp as useCommandPaletteShortcut,
|
|
6647
|
+
wp as useDensity,
|
|
6648
|
+
yp as useDensityFor,
|
|
6640
6649
|
He as useFormField,
|
|
6641
6650
|
tt as useFormats,
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6651
|
+
of as useFreshness,
|
|
6652
|
+
Sn as useLanguage,
|
|
6653
|
+
Rn as usePortalTarget,
|
|
6654
|
+
rm as useToast,
|
|
6655
|
+
Po as useToastConfig,
|
|
6656
|
+
cm as useTree,
|
|
6657
|
+
Cn as useUmriss,
|
|
6658
|
+
Ru as useVirtual,
|
|
6650
6659
|
ve as useWording,
|
|
6651
|
-
|
|
6652
|
-
|
|
6660
|
+
fm as verdictWeight,
|
|
6661
|
+
Mu as visibleWindow
|
|
6653
6662
|
};
|