@umriss-ui/core 0.4.0 → 0.6.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 +29 -0
- package/README.md +1 -1
- package/dist/core.js +353 -312
- package/dist/de.d.ts +64 -0
- package/dist/index.d.ts +64 -0
- package/dist/wording/de.js +44 -3
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./core.css";
|
|
2
|
-
import { useMemo as se, useContext as He, createContext as
|
|
2
|
+
import { useMemo as se, useContext as He, createContext as je, forwardRef as ae, useId as De, useRef as R, useEffect as ne, useState as I, useCallback as X, useLayoutEffect as Ge, cloneElement as $n, useImperativeHandle as jt } from "react";
|
|
3
3
|
import { jsx as s, jsxs as k, Fragment as we } from "react/jsx-runtime";
|
|
4
|
-
import { D as
|
|
4
|
+
import { D as Et, a as Dn, s as or } from "./formats-DrB9TuzO.js";
|
|
5
5
|
import { createPortal as Vt } from "react-dom";
|
|
6
6
|
function P(...e) {
|
|
7
7
|
return e.filter(Boolean).join(" ");
|
|
@@ -145,6 +145,25 @@ const sr = "_alert_1rqhr_12 _text_1hv7a_23", ir = "_content_1rqhr_26", ar = "_ti
|
|
|
145
145
|
booleanNo: "No",
|
|
146
146
|
footerSum: "Sum",
|
|
147
147
|
footerAverage: "Average",
|
|
148
|
+
footerMinimum: "Minimum",
|
|
149
|
+
footerMaximum: "Maximum",
|
|
150
|
+
footerRange: "Range",
|
|
151
|
+
footerCount: "Count",
|
|
152
|
+
footerDistinct: "Distinct values",
|
|
153
|
+
footerAggregate: "Aggregate",
|
|
154
|
+
grouping: "Grouping",
|
|
155
|
+
groupBy: (e) => `Group by ${e}`,
|
|
156
|
+
groupedBy: "Grouped by",
|
|
157
|
+
removeGrouping: "Remove grouping",
|
|
158
|
+
removeGroupingLevel: (e) => `Stop grouping by ${e}`,
|
|
159
|
+
foldAll: "Fold all",
|
|
160
|
+
unfoldAll: "Unfold all",
|
|
161
|
+
groupNoValue: "No value",
|
|
162
|
+
groupContinued: "continued",
|
|
163
|
+
foldGroup: (e, t) => `Fold ${e}, ${t}`,
|
|
164
|
+
unfoldGroup: (e, t) => `Unfold ${e}, ${t}`,
|
|
165
|
+
selectGroup: (e) => `Select ${e}`,
|
|
166
|
+
calendarWeek: (e, t) => `Week ${e}, ${t}`,
|
|
148
167
|
entries: (e, t) => e === 1 ? "1 entry" : `${t} entries`,
|
|
149
168
|
selectedCount: (e, t) => `${t} selected`,
|
|
150
169
|
noEntries: "No entries",
|
|
@@ -223,16 +242,38 @@ const sr = "_alert_1rqhr_12 _text_1hv7a_23", ir = "_content_1rqhr_26", ar = "_ti
|
|
|
223
242
|
scheduleLaneRefused: "Not this lane",
|
|
224
243
|
scheduleFoldGroup: "Fold group",
|
|
225
244
|
scheduleUnfoldGroup: "Unfold group",
|
|
226
|
-
scheduleLaneCount: (e) => e === 1 ? "1 lane" : `${e} lanes
|
|
245
|
+
scheduleLaneCount: (e) => e === 1 ? "1 lane" : `${e} lanes`,
|
|
246
|
+
calculationSumSymbol: "+",
|
|
247
|
+
calculationDifferenceSymbol: "−",
|
|
248
|
+
calculationProductSymbol: "×",
|
|
249
|
+
calculationQuotientSymbol: "÷",
|
|
250
|
+
calculationSumWord: "plus",
|
|
251
|
+
calculationDifferenceWord: "minus",
|
|
252
|
+
calculationProductWord: "times",
|
|
253
|
+
calculationQuotientWord: "divided by",
|
|
254
|
+
calculationEquals: "equals",
|
|
255
|
+
calculationApproximately: "approximately",
|
|
256
|
+
calculationApproximateNote: "The rounded figures do not give this exactly; it is computed from the unrounded ones.",
|
|
257
|
+
calculationPercent: "percent",
|
|
258
|
+
calculationMissing: (e) => `${e} is missing`,
|
|
259
|
+
calculationDivisionByZero: (e) => `Division by zero: ${e} is 0`,
|
|
260
|
+
calculationAboveTarget: (e) => `above target ${e}`,
|
|
261
|
+
calculationBelowTarget: (e) => `below target ${e}`,
|
|
262
|
+
calculationOnTarget: (e) => `on target ${e}`,
|
|
263
|
+
calculationWorstInside: (e) => `Inside: ${e}`,
|
|
264
|
+
calculationSource: (e) => `Source: ${e}`,
|
|
265
|
+
calculationShowDerivation: (e) => `Show how ${e} is derived`,
|
|
266
|
+
calculationHideDerivation: (e) => `Hide how ${e} is derived`,
|
|
267
|
+
calculationOperandCount: (e) => `${e} operands`
|
|
227
268
|
}, Tn = {
|
|
228
|
-
formats:
|
|
269
|
+
formats: Et,
|
|
229
270
|
wording: st
|
|
230
|
-
}, Mn =
|
|
271
|
+
}, Mn = je(null);
|
|
231
272
|
function _r(e) {
|
|
232
273
|
if (!e) return Tn;
|
|
233
274
|
const { presets: t, ...n } = e.wording ?? {};
|
|
234
275
|
return {
|
|
235
|
-
formats: e.formats ? { ...
|
|
276
|
+
formats: e.formats ? { ...Et, ...e.formats } : Et,
|
|
236
277
|
wording: e.wording ? {
|
|
237
278
|
...st,
|
|
238
279
|
...n,
|
|
@@ -338,14 +379,14 @@ const Tr = "_button_182pk_4 _ring_1hv7a_65 _text_1hv7a_23", Mr = "_sm_182pk_46",
|
|
|
338
379
|
]
|
|
339
380
|
}
|
|
340
381
|
);
|
|
341
|
-
}), Pr = "_field_1jyg7_4 _text_1hv7a_23",
|
|
382
|
+
}), Pr = "_field_1jyg7_4 _text_1hv7a_23", qr = "_label_1jyg7_12", Er = "_required_1jyg7_19", Fr = "_message_1jyg7_24", Ir = "_hint_1jyg7_30", Br = "_error_1jyg7_34", ct = {
|
|
342
383
|
field: Pr,
|
|
343
|
-
label:
|
|
344
|
-
required:
|
|
384
|
+
label: qr,
|
|
385
|
+
required: Er,
|
|
345
386
|
message: Fr,
|
|
346
387
|
hint: Ir,
|
|
347
388
|
error: Br
|
|
348
|
-
}, Ut =
|
|
389
|
+
}, Ut = je(null);
|
|
349
390
|
function Ie() {
|
|
350
391
|
return He(Ut);
|
|
351
392
|
}
|
|
@@ -387,19 +428,19 @@ function Ln() {
|
|
|
387
428
|
const e = window.visualViewport;
|
|
388
429
|
return e ? { top: e.offsetTop, left: e.offsetLeft, width: e.width, height: e.height } : { width: window.innerWidth, height: window.innerHeight };
|
|
389
430
|
}
|
|
390
|
-
const zr = "_panel_1nxpu_8 _text_1hv7a_23",
|
|
431
|
+
const zr = "_panel_1nxpu_8 _text_1hv7a_23", Gr = "_above_1nxpu_21", ln = {
|
|
391
432
|
panel: zr,
|
|
392
|
-
above:
|
|
393
|
-
}, Yt =
|
|
433
|
+
above: Gr
|
|
434
|
+
}, Yt = je(null);
|
|
394
435
|
function Xd(e, t) {
|
|
395
436
|
const n = He(Yt);
|
|
396
437
|
return e !== void 0 ? e : n != null && n.densityGiven ? n.density === "compact" ? "compact" : "regular" : t;
|
|
397
438
|
}
|
|
398
|
-
const
|
|
439
|
+
const jr = {
|
|
399
440
|
density: "comfortable",
|
|
400
441
|
portalTarget: null,
|
|
401
442
|
toast: {}
|
|
402
|
-
}, Kt = () => He(Yt) ??
|
|
443
|
+
}, Kt = () => He(Yt) ?? jr, Qd = () => Kt().density, Vr = () => Kt().toast;
|
|
403
444
|
function Xt() {
|
|
404
445
|
const { portalTarget: e } = Kt();
|
|
405
446
|
return se(
|
|
@@ -450,13 +491,13 @@ function Ze({
|
|
|
450
491
|
ne(() => {
|
|
451
492
|
y.current = o;
|
|
452
493
|
});
|
|
453
|
-
const [g, N] = I(null), [M,
|
|
494
|
+
const [g, N] = I(null), [M, E] = I(null), D = Xt(), _ = X(
|
|
454
495
|
(b) => {
|
|
455
496
|
var F;
|
|
456
497
|
t(!1), b && d && ((F = (r ?? n).current) == null || F.focus());
|
|
457
498
|
},
|
|
458
499
|
[t, d, n, r]
|
|
459
|
-
),
|
|
500
|
+
), q = X(() => {
|
|
460
501
|
var Y;
|
|
461
502
|
const b = (Y = n.current) == null ? void 0 : Y.getBoundingClientRect(), F = w.current;
|
|
462
503
|
if (!b || !F) return;
|
|
@@ -471,15 +512,15 @@ function Ze({
|
|
|
471
512
|
)
|
|
472
513
|
);
|
|
473
514
|
}, [n, i, a, c, l]);
|
|
474
|
-
return
|
|
475
|
-
e &&
|
|
476
|
-
}, [e, n, D]),
|
|
477
|
-
!e || !M ||
|
|
478
|
-
}, [e, M,
|
|
515
|
+
return Ge(() => {
|
|
516
|
+
e && E(Rn(n.current, D));
|
|
517
|
+
}, [e, n, D]), Ge(() => {
|
|
518
|
+
!e || !M || q();
|
|
519
|
+
}, [e, M, q]), ne(() => {
|
|
479
520
|
if (!e) return;
|
|
480
521
|
const b = (U) => {
|
|
481
|
-
var
|
|
482
|
-
return ((
|
|
522
|
+
var j, Q;
|
|
523
|
+
return ((j = w.current) == null ? void 0 : j.contains(U)) || ((Q = n.current) == null ? void 0 : Q.contains(U)) || (y.current ?? []).some((me) => {
|
|
483
524
|
var A;
|
|
484
525
|
return (A = me.current) == null ? void 0 : A.contains(U);
|
|
485
526
|
});
|
|
@@ -491,15 +532,15 @@ function Ze({
|
|
|
491
532
|
let Y = 0;
|
|
492
533
|
const L = () => {
|
|
493
534
|
Y || (Y = requestAnimationFrame(() => {
|
|
494
|
-
Y = 0,
|
|
535
|
+
Y = 0, q();
|
|
495
536
|
}));
|
|
496
|
-
},
|
|
537
|
+
}, G = () => {
|
|
497
538
|
u ? _(!1) : L();
|
|
498
539
|
}, T = window.visualViewport;
|
|
499
|
-
return document.addEventListener("mousedown", F), document.addEventListener("keydown", V), window.addEventListener("scroll",
|
|
500
|
-
T == null || T.removeEventListener("resize", L), T == null || T.removeEventListener("scroll", L), document.removeEventListener("mousedown", F), document.removeEventListener("keydown", V), window.removeEventListener("scroll",
|
|
540
|
+
return document.addEventListener("mousedown", F), document.addEventListener("keydown", V), window.addEventListener("scroll", G, !0), window.addEventListener("resize", G), T == null || T.addEventListener("resize", L), T == null || T.addEventListener("scroll", L), () => {
|
|
541
|
+
T == null || T.removeEventListener("resize", L), T == null || T.removeEventListener("scroll", L), document.removeEventListener("mousedown", F), document.removeEventListener("keydown", V), window.removeEventListener("scroll", G, !0), window.removeEventListener("resize", G), Y && cancelAnimationFrame(Y);
|
|
501
542
|
};
|
|
502
|
-
}, [e, n, _,
|
|
543
|
+
}, [e, n, _, q, u]), !e || !M ? null : Vt(
|
|
503
544
|
/* @__PURE__ */ s(
|
|
504
545
|
"div",
|
|
505
546
|
{
|
|
@@ -530,7 +571,7 @@ const Ur = "_panel_12yoy_4", Yr = "_item_12yoy_15", Kr = "_danger_12yoy_44", Xr
|
|
|
530
571
|
danger: Kr,
|
|
531
572
|
separator: Xr,
|
|
532
573
|
content: Qr
|
|
533
|
-
}, Qt =
|
|
574
|
+
}, Qt = je(null);
|
|
534
575
|
function Pn(e, t, n) {
|
|
535
576
|
var i, a, c, l;
|
|
536
577
|
const r = Array.from((t == null ? void 0 : t.querySelectorAll('[role="menuitem"]:not([disabled])')) ?? []);
|
|
@@ -672,7 +713,7 @@ const Jr = "_group_1886q_9", eo = "_split_1886q_97", to = "_trigger_1886q_97", n
|
|
|
672
713
|
headerRight: mo,
|
|
673
714
|
collapseButton: _o,
|
|
674
715
|
flush: go
|
|
675
|
-
}, Zt =
|
|
716
|
+
}, Zt = je(null);
|
|
676
717
|
function nu({
|
|
677
718
|
collapsible: e = !1,
|
|
678
719
|
defaultCollapsed: t = !1,
|
|
@@ -733,7 +774,7 @@ const vo = "_wrapper_1sdoe_4 _text_1hv7a_23", yo = "_input_1sdoe_13", bo = "_box
|
|
|
733
774
|
label: xo
|
|
734
775
|
}, Jt = ae(function({ label: t, indeterminate: n = !1, className: r, id: o, ...i }, a) {
|
|
735
776
|
const c = R(null);
|
|
736
|
-
|
|
777
|
+
jt(a, () => c.current), ne(() => {
|
|
737
778
|
c.current && (c.current.indeterminate = n);
|
|
738
779
|
}, [n]);
|
|
739
780
|
const l = Ie(), d = o ?? (l == null ? void 0 : l.id);
|
|
@@ -764,7 +805,7 @@ function kt(e, t) {
|
|
|
764
805
|
const n = e.getPropertyValue(t).trim(), r = Number.parseFloat(n);
|
|
765
806
|
return Number.isFinite(r) ? n.endsWith("ms") ? r : n.endsWith("s") ? r * 1e3 : r : 0;
|
|
766
807
|
}
|
|
767
|
-
function
|
|
808
|
+
function qn(e, t, n) {
|
|
768
809
|
const r = R(null), [o, i] = I(!1), a = R(!1), c = () => {
|
|
769
810
|
if (a.current) {
|
|
770
811
|
a.current = !1;
|
|
@@ -800,7 +841,7 @@ function Qe(e) {
|
|
|
800
841
|
(t) => `_${t.codePointAt(0).toString(16)}_`
|
|
801
842
|
);
|
|
802
843
|
}
|
|
803
|
-
function
|
|
844
|
+
function En(e, t) {
|
|
804
845
|
const n = t.trim().toLowerCase();
|
|
805
846
|
return n ? e.filter((r) => r.label.toLowerCase().includes(n)) : e;
|
|
806
847
|
}
|
|
@@ -830,7 +871,7 @@ function Mo(e, t) {
|
|
|
830
871
|
return n === -1 ? 0 : n;
|
|
831
872
|
}
|
|
832
873
|
const Co = 10, So = 8, Ao = 0.5, Lo = /[\p{L}\p{N}]/u, Ro = (e) => e !== e.toLowerCase() && e === e.toUpperCase(), Po = (e) => e !== e.toUpperCase() && e === e.toLowerCase();
|
|
833
|
-
function
|
|
874
|
+
function qo(e, t) {
|
|
834
875
|
if (t === 0) return !0;
|
|
835
876
|
const n = e[t - 1], r = e[t];
|
|
836
877
|
return Lo.test(n) ? Po(n) && Ro(r) : !0;
|
|
@@ -845,7 +886,7 @@ function dn(e, t) {
|
|
|
845
886
|
const p = new Array(t.length).fill(null), h = new Array(t.length).fill(null);
|
|
846
887
|
for (let f = 0; f < t.length; f++) {
|
|
847
888
|
if (r[f] !== n[u]) continue;
|
|
848
|
-
const m =
|
|
889
|
+
const m = qo(t, f) ? Co : 0;
|
|
849
890
|
if (u === 0) {
|
|
850
891
|
p[f] = m;
|
|
851
892
|
continue;
|
|
@@ -869,9 +910,9 @@ function dn(e, t) {
|
|
|
869
910
|
c.push(l), l = i[u][l];
|
|
870
911
|
c.reverse();
|
|
871
912
|
const d = (t.length - n.length) * Ao;
|
|
872
|
-
return { rank: o[a] - d, finds:
|
|
913
|
+
return { rank: o[a] - d, finds: Eo(c) };
|
|
873
914
|
}
|
|
874
|
-
function
|
|
915
|
+
function Eo(e) {
|
|
875
916
|
const t = [];
|
|
876
917
|
for (const n of e) {
|
|
877
918
|
const r = t[t.length - 1];
|
|
@@ -918,13 +959,13 @@ const Io = "_hidden_69gri_7", Bo = "_focusable_69gri_20 _text_1hv7a_23", un = {
|
|
|
918
959
|
children: o
|
|
919
960
|
}
|
|
920
961
|
);
|
|
921
|
-
}), Ho = "_dialog_1yu65_7 _text_1hv7a_23", Oo = "_pane_1yu65_2", Wo = "_field_1yu65_86 _field_1hv7a_34", zo = "_bodyWrap_1yu65_125",
|
|
962
|
+
}), Ho = "_dialog_1yu65_7 _text_1hv7a_23", Oo = "_pane_1yu65_2", Wo = "_field_1yu65_86 _field_1hv7a_34", zo = "_bodyWrap_1yu65_125", Go = "_body_1yu65_125", jo = "_list_1yu65_146 _scroll_1hv7a_40", Vo = "_groupHeading_1yu65_156", Uo = "_row_1yu65_165", Yo = "_rowActive_1yu65_176", Ko = "_icon_1yu65_180", Xo = "_name_1yu65_189", Qo = "_mark_1yu65_200", Zo = "_group_1yu65_156", Jo = "_noFinds_1yu65_211", es = "_footer_1yu65_220", ts = "_key_1yu65_236", ge = {
|
|
922
963
|
dialog: Ho,
|
|
923
964
|
pane: Oo,
|
|
924
965
|
field: Wo,
|
|
925
966
|
bodyWrap: zo,
|
|
926
|
-
body:
|
|
927
|
-
list:
|
|
967
|
+
body: Go,
|
|
968
|
+
list: jo,
|
|
928
969
|
groupHeading: Vo,
|
|
929
970
|
row: Uo,
|
|
930
971
|
rowActive: Yo,
|
|
@@ -953,22 +994,22 @@ function su({
|
|
|
953
994
|
restingItems: o
|
|
954
995
|
}) {
|
|
955
996
|
var me;
|
|
956
|
-
const i = ce(), a = De(), c = `${a}-list`, { dialogRef: l, beimSchliessen: d, beimAbbrechen: u } =
|
|
997
|
+
const i = ce(), a = De(), c = `${a}-list`, { dialogRef: l, beimSchliessen: d, beimAbbrechen: u } = qn(e, 0, t), p = R(null), h = R(null), [f, m] = I(""), [v, w] = I(null), y = f.trim() !== "", g = se(() => n.map(hn), [n]), N = se(() => Fo(g, f), [g, f]), M = se(
|
|
957
998
|
() => (o ?? []).map((A) => ({
|
|
958
999
|
kandidat: hn(A),
|
|
959
1000
|
rank: 0,
|
|
960
1001
|
finds: []
|
|
961
1002
|
})),
|
|
962
1003
|
[o]
|
|
963
|
-
),
|
|
1004
|
+
), E = y ? N : M, D = se(() => {
|
|
964
1005
|
const A = [];
|
|
965
|
-
for (const B of
|
|
1006
|
+
for (const B of E) {
|
|
966
1007
|
const z = B.kandidat.gruppe;
|
|
967
1008
|
let te = A.find((xe) => xe.name === z);
|
|
968
1009
|
te === void 0 && (te = { name: z, finds: [] }, A.push(te)), te.finds.push(B);
|
|
969
1010
|
}
|
|
970
1011
|
return A;
|
|
971
|
-
}, [
|
|
1012
|
+
}, [E]), _ = se(() => D.flatMap((A) => A.finds), [D]), q = v !== null && _.some((A) => A.kandidat.id === v) ? v : ((me = _[0]) == null ? void 0 : me.kandidat.id) ?? null, b = R(!1), F = X(() => {
|
|
972
1013
|
b.current = !1;
|
|
973
1014
|
}, []), V = X((A) => {
|
|
974
1015
|
b.current = !0, w(A);
|
|
@@ -980,9 +1021,9 @@ function su({
|
|
|
980
1021
|
e && (h.current = document.activeElement, m(""), w(null), b.current = !1, (A = p.current) == null || A.focus());
|
|
981
1022
|
}, [e]), ne(() => {
|
|
982
1023
|
var A;
|
|
983
|
-
|
|
984
|
-
}, [
|
|
985
|
-
const L = R(null), [
|
|
1024
|
+
q !== null && ((A = document.getElementById(It(a, q))) == null || A.scrollIntoView({ block: "nearest" }));
|
|
1025
|
+
}, [q, a]);
|
|
1026
|
+
const L = R(null), [G, T] = I(0);
|
|
986
1027
|
ne(() => {
|
|
987
1028
|
const A = L.current;
|
|
988
1029
|
if (!e || A === null) return;
|
|
@@ -992,9 +1033,9 @@ function su({
|
|
|
992
1033
|
}, [e]);
|
|
993
1034
|
const U = (A) => {
|
|
994
1035
|
if (F(), _.length === 0) return;
|
|
995
|
-
const B = _.findIndex((te) => te.kandidat.id ===
|
|
1036
|
+
const B = _.findIndex((te) => te.kandidat.id === q), z = tn(B === -1 ? 0 : B, _.length, A);
|
|
996
1037
|
w(_[z].kandidat.id);
|
|
997
|
-
},
|
|
1038
|
+
}, j = (A) => {
|
|
998
1039
|
if (!A.nativeEvent.isComposing) {
|
|
999
1040
|
if (A.key === "ArrowDown") {
|
|
1000
1041
|
A.preventDefault(), U(1);
|
|
@@ -1005,7 +1046,7 @@ function su({
|
|
|
1005
1046
|
return;
|
|
1006
1047
|
}
|
|
1007
1048
|
if (A.key === "Enter") {
|
|
1008
|
-
A.preventDefault(),
|
|
1049
|
+
A.preventDefault(), q !== null && r(q);
|
|
1009
1050
|
return;
|
|
1010
1051
|
}
|
|
1011
1052
|
A.key === "Escape" && (A.preventDefault(), t());
|
|
@@ -1038,16 +1079,16 @@ function su({
|
|
|
1038
1079
|
role: "combobox",
|
|
1039
1080
|
"aria-expanded": _.length > 0,
|
|
1040
1081
|
"aria-controls": _.length > 0 ? c : void 0,
|
|
1041
|
-
"aria-activedescendant":
|
|
1082
|
+
"aria-activedescendant": q === null ? void 0 : It(a, q),
|
|
1042
1083
|
autoComplete: "off",
|
|
1043
1084
|
spellCheck: !1,
|
|
1044
1085
|
onChange: (A) => {
|
|
1045
1086
|
F(), m(A.target.value);
|
|
1046
1087
|
},
|
|
1047
|
-
onKeyDown:
|
|
1088
|
+
onKeyDown: j
|
|
1048
1089
|
}
|
|
1049
1090
|
),
|
|
1050
|
-
/* @__PURE__ */ s("div", { className: ge.bodyWrap, style: { height: `${
|
|
1091
|
+
/* @__PURE__ */ s("div", { className: ge.bodyWrap, style: { height: `${G}px` }, children: /* @__PURE__ */ k("div", { ref: L, className: ge.body, children: [
|
|
1051
1092
|
_.length > 0 && /* @__PURE__ */ s(
|
|
1052
1093
|
"div",
|
|
1053
1094
|
{
|
|
@@ -1061,7 +1102,7 @@ function su({
|
|
|
1061
1102
|
{
|
|
1062
1103
|
find: te,
|
|
1063
1104
|
baseId: a,
|
|
1064
|
-
active: te.kandidat.id ===
|
|
1105
|
+
active: te.kandidat.id === q,
|
|
1065
1106
|
withIcon: Q,
|
|
1066
1107
|
onSweep: Y,
|
|
1067
1108
|
onMove: V,
|
|
@@ -1247,27 +1288,27 @@ function lu({
|
|
|
1247
1288
|
emptyText: a,
|
|
1248
1289
|
clearable: c = !1
|
|
1249
1290
|
}) {
|
|
1250
|
-
const l = Ie(), d = ce(), u = r ?? d.comboboxPlaceholder, p = a ?? d.noMatches, h = i ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = I(!1), [v, w] = I(null), [y, g] = I(0), N = R(null), M = R(null),
|
|
1291
|
+
const l = Ie(), d = ce(), u = r ?? d.comboboxPlaceholder, p = a ?? d.noMatches, h = i ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = I(!1), [v, w] = I(null), [y, g] = I(0), N = R(null), M = R(null), E = De(), D = se(() => e.find((L) => L.value === t) ?? null, [e, t]), _ = se(() => En(e, v ?? ""), [e, v]), q = () => {
|
|
1251
1292
|
g(Mo(_, t)), m(!0);
|
|
1252
1293
|
}, b = () => {
|
|
1253
1294
|
m(!1), w(null);
|
|
1254
1295
|
}, F = (L) => {
|
|
1255
|
-
var
|
|
1256
|
-
L.disabled || (n(L.value), b(), (
|
|
1296
|
+
var G;
|
|
1297
|
+
L.disabled || (n(L.value), b(), (G = N.current) == null || G.focus());
|
|
1257
1298
|
};
|
|
1258
1299
|
ne(() => {
|
|
1259
|
-
var L,
|
|
1260
|
-
f && ((
|
|
1300
|
+
var L, G;
|
|
1301
|
+
f && ((G = (L = M.current) == null ? void 0 : L.querySelector(`[data-index="${y}"]`)) == null || G.scrollIntoView({ block: "nearest" }));
|
|
1261
1302
|
}, [f, y]);
|
|
1262
1303
|
const V = (L) => {
|
|
1263
1304
|
if (!L.nativeEvent.isComposing) {
|
|
1264
1305
|
if (L.key === "ArrowDown" || L.key === "ArrowUp") {
|
|
1265
1306
|
if (L.preventDefault(), !f) {
|
|
1266
|
-
|
|
1307
|
+
q();
|
|
1267
1308
|
return;
|
|
1268
1309
|
}
|
|
1269
1310
|
if (_.length === 0) return;
|
|
1270
|
-
g((
|
|
1311
|
+
g((G) => tn(G, _.length, L.key === "ArrowDown" ? 1 : -1));
|
|
1271
1312
|
return;
|
|
1272
1313
|
}
|
|
1273
1314
|
if (L.key === "Enter") {
|
|
@@ -1288,9 +1329,9 @@ function lu({
|
|
|
1288
1329
|
id: l == null ? void 0 : l.id,
|
|
1289
1330
|
disabled: o,
|
|
1290
1331
|
"aria-expanded": f,
|
|
1291
|
-
"aria-controls": f ?
|
|
1332
|
+
"aria-controls": f ? E : void 0,
|
|
1292
1333
|
"aria-autocomplete": "list",
|
|
1293
|
-
"aria-activedescendant": f && _[y] ? `${
|
|
1334
|
+
"aria-activedescendant": f && _[y] ? `${E}-${y}` : void 0,
|
|
1294
1335
|
"aria-describedby": l == null ? void 0 : l.describedBy,
|
|
1295
1336
|
"aria-required": (l == null ? void 0 : l.required) || void 0,
|
|
1296
1337
|
"aria-invalid": h || void 0,
|
|
@@ -1298,15 +1339,15 @@ function lu({
|
|
|
1298
1339
|
value: Y,
|
|
1299
1340
|
className: P(Se.input, c && Se.inputClearable, h && Se.invalid),
|
|
1300
1341
|
onChange: (L) => {
|
|
1301
|
-
w(L.target.value), g(0), f ||
|
|
1342
|
+
w(L.target.value), g(0), f || q();
|
|
1302
1343
|
},
|
|
1303
1344
|
onClick: () => {
|
|
1304
|
-
f ||
|
|
1345
|
+
f || q();
|
|
1305
1346
|
},
|
|
1306
1347
|
onKeyDown: V,
|
|
1307
1348
|
onBlur: (L) => {
|
|
1308
|
-
var
|
|
1309
|
-
(
|
|
1349
|
+
var G;
|
|
1350
|
+
(G = M.current) != null && G.contains(L.relatedTarget) || b();
|
|
1310
1351
|
}
|
|
1311
1352
|
}
|
|
1312
1353
|
),
|
|
@@ -1337,21 +1378,21 @@ function lu({
|
|
|
1337
1378
|
anchorRef: N,
|
|
1338
1379
|
width: "anchor",
|
|
1339
1380
|
className: Se.panel,
|
|
1340
|
-
children: /* @__PURE__ */ s("div", { ref: M, role: "listbox", id:
|
|
1381
|
+
children: /* @__PURE__ */ s("div", { ref: M, role: "listbox", id: E, className: Se.list, "aria-label": u, children: _.length === 0 ? /* @__PURE__ */ s("div", { className: Se.empty, children: p }) : _.map((L, G) => /* @__PURE__ */ k(
|
|
1341
1382
|
"div",
|
|
1342
1383
|
{
|
|
1343
|
-
id: `${
|
|
1344
|
-
"data-index":
|
|
1384
|
+
id: `${E}-${G}`,
|
|
1385
|
+
"data-index": G,
|
|
1345
1386
|
role: "option",
|
|
1346
1387
|
"aria-selected": L.value === t,
|
|
1347
1388
|
"aria-disabled": L.disabled || void 0,
|
|
1348
1389
|
className: P(
|
|
1349
1390
|
Se.option,
|
|
1350
|
-
|
|
1391
|
+
G === y && Se.active,
|
|
1351
1392
|
L.value === t && Se.selected,
|
|
1352
1393
|
L.disabled && Se.optionDisabled
|
|
1353
1394
|
),
|
|
1354
|
-
onMouseEnter: () => g(
|
|
1395
|
+
onMouseEnter: () => g(G),
|
|
1355
1396
|
onMouseDown: (T) => T.preventDefault(),
|
|
1356
1397
|
onClick: () => F(L),
|
|
1357
1398
|
children: [
|
|
@@ -1372,7 +1413,7 @@ function xs(e, t, n, r) {
|
|
|
1372
1413
|
return [u, p];
|
|
1373
1414
|
});
|
|
1374
1415
|
}
|
|
1375
|
-
const In = (e) => Math.max(0, Math.min(1, e)), Ns = (e) => Math.round(In(e) * 100), $s = "_meter_378vq_4 _text_1hv7a_23", Ds = "_track_378vq_13", Ts = "_fill_378vq_21", Ms = "_neutral_378vq_28", Cs = "_accent_378vq_29", Ss = "_success_378vq_30", As = "_warning_378vq_31", Ls = "_danger_378vq_32", Rs = "_meterLabel_378vq_34", Ps = "_sparkline_378vq_45 _text_1hv7a_23",
|
|
1416
|
+
const In = (e) => Math.max(0, Math.min(1, e)), Ns = (e) => Math.round(In(e) * 100), $s = "_meter_378vq_4 _text_1hv7a_23", Ds = "_track_378vq_13", Ts = "_fill_378vq_21", Ms = "_neutral_378vq_28", Cs = "_accent_378vq_29", Ss = "_success_378vq_30", As = "_warning_378vq_31", Ls = "_danger_378vq_32", Rs = "_meterLabel_378vq_34", Ps = "_sparkline_378vq_45 _text_1hv7a_23", qs = "_sparklineAccent_378vq_54", Es = "_sparklineDot_378vq_58", Ke = {
|
|
1376
1417
|
meter: $s,
|
|
1377
1418
|
track: Ds,
|
|
1378
1419
|
fill: Ts,
|
|
@@ -1383,8 +1424,8 @@ const In = (e) => Math.max(0, Math.min(1, e)), Ns = (e) => Math.round(In(e) * 10
|
|
|
1383
1424
|
danger: Ls,
|
|
1384
1425
|
meterLabel: Rs,
|
|
1385
1426
|
sparkline: Ps,
|
|
1386
|
-
sparklineAccent:
|
|
1387
|
-
sparklineDot:
|
|
1427
|
+
sparklineAccent: qs,
|
|
1428
|
+
sparklineDot: Es
|
|
1388
1429
|
};
|
|
1389
1430
|
function du({
|
|
1390
1431
|
value: e,
|
|
@@ -1453,8 +1494,8 @@ const Ws = {
|
|
|
1453
1494
|
ArrowRight: 1,
|
|
1454
1495
|
ArrowUp: -7,
|
|
1455
1496
|
ArrowDown: 7
|
|
1456
|
-
}, zs = (e) => Ws[e],
|
|
1457
|
-
trigger:
|
|
1497
|
+
}, zs = (e) => Ws[e], Gs = (e, t) => e.getMonth() !== t.getMonth() || e.getFullYear() !== t.getFullYear(), js = "_trigger_10qsh_4", Vs = "_sm_10qsh_38", Us = "_invalid_10qsh_44", Ys = "_value_10qsh_53", Ks = "_placeholder_10qsh_64", Xs = "_icon_10qsh_70", Qs = "_panel_10qsh_79 _text_1hv7a_23", Zs = "_head_10qsh_89", Js = "_month_10qsh_97", ei = "_page_10qsh_102 _ring_1hv7a_65", ti = "_weekdays_10qsh_122", ni = "_grid_10qsh_123", ri = "_day_10qsh_142 _ring_1hv7a_65", oi = "_otherMonth_10qsh_165", si = "_today_10qsh_169", ii = "_selected_10qsh_175", ai = "_foot_10qsh_182", ci = "_timeRow_10qsh_195", li = "_timeLabel_10qsh_205", di = "_timeGroup_10qsh_213", ui = "_timeFieldWrap_10qsh_223", hi = "_timeField_10qsh_223 _field_1hv7a_34", fi = "_timeStepper_10qsh_262", pi = "_timeSeparator_10qsh_312", mi = "_dstHint_10qsh_318", _i = "_dstChoice_10qsh_325", gi = "_dstButtons_10qsh_331", vi = "_footLeft_10qsh_336", yi = "_triggerWrap_10qsh_345 _text_1hv7a_23", bi = "_triggerClear_10qsh_354", wi = "_rangeDash_10qsh_402", ki = "_rangePanel_10qsh_407 _text_1hv7a_23", xi = "_rangeRight_10qsh_415", Ni = "_rangeBody_10qsh_419", $i = "_presetColumn_10qsh_425", Di = "_preset_10qsh_425 _ring_1hv7a_65", Ti = "_presetActive_10qsh_454", Mi = "_monthPair_10qsh_461", Ci = "_monthColumn_10qsh_466", Si = "_pageSpacer_10qsh_501", Ai = "_dayEmpty_10qsh_507", Li = "_inRange_10qsh_514", Ri = "_rangeFrom_10qsh_524", Pi = "_rangeTo_10qsh_526", qi = "_rangeSingle_10qsh_528", Ei = "_inPreview_10qsh_546", Fi = "_previewEnd_10qsh_551", Ii = "_footNote_10qsh_558", Bi = "_timeRangeRow_10qsh_578", Hi = "_timeHalf_10qsh_587", Oi = "_timeHalfHead_10qsh_595", Wi = "_timeDate_10qsh_602", zi = "_footNoteRight_10qsh_609", Gi = "_timeFieldDisabled_10qsh_615", C = {
|
|
1498
|
+
trigger: js,
|
|
1458
1499
|
sm: Vs,
|
|
1459
1500
|
invalid: Us,
|
|
1460
1501
|
value: Ys,
|
|
@@ -1498,8 +1539,8 @@ const Ws = {
|
|
|
1498
1539
|
inRange: Li,
|
|
1499
1540
|
rangeFrom: Ri,
|
|
1500
1541
|
rangeTo: Pi,
|
|
1501
|
-
rangeSingle:
|
|
1502
|
-
inPreview:
|
|
1542
|
+
rangeSingle: qi,
|
|
1543
|
+
inPreview: Ei,
|
|
1503
1544
|
previewEnd: Fi,
|
|
1504
1545
|
footNote: Ii,
|
|
1505
1546
|
timeRangeRow: Bi,
|
|
@@ -1507,7 +1548,7 @@ const Ws = {
|
|
|
1507
1548
|
timeHalfHead: Oi,
|
|
1508
1549
|
timeDate: Wi,
|
|
1509
1550
|
footNoteRight: zi,
|
|
1510
|
-
timeFieldDisabled:
|
|
1551
|
+
timeFieldDisabled: Gi
|
|
1511
1552
|
};
|
|
1512
1553
|
st.weekdays;
|
|
1513
1554
|
function Nt({
|
|
@@ -1541,13 +1582,13 @@ function Nt({
|
|
|
1541
1582
|
if (F !== void 0) {
|
|
1542
1583
|
b.preventDefault();
|
|
1543
1584
|
const V = it(r, F);
|
|
1544
|
-
o(V),
|
|
1585
|
+
o(V), Gs(V, t) && n(Ce(V));
|
|
1545
1586
|
return;
|
|
1546
1587
|
}
|
|
1547
1588
|
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), a(r));
|
|
1548
1589
|
}, N = (b) => {
|
|
1549
1590
|
n(xt(t, b)), o(Is(r, b));
|
|
1550
|
-
}, M = Hs(t),
|
|
1591
|
+
}, M = Hs(t), E = m ?? /* @__PURE__ */ new Date(), { from: D, to: _, isPreview: q } = Os(c, l, d);
|
|
1551
1592
|
return /* @__PURE__ */ k(we, { children: [
|
|
1552
1593
|
/* @__PURE__ */ k("div", { className: C.head, children: [
|
|
1553
1594
|
p ? /* @__PURE__ */ s("span", { className: C.pageSpacer, "aria-hidden": "true" }) : /* @__PURE__ */ s("button", { type: "button", className: C.page, "aria-label": v.previousMonth, onClick: () => N(-1), children: /* @__PURE__ */ s("svg", { viewBox: "0 0 10 10", width: "10", height: "10", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M6.4 1.8 3.2 5l3.2 3.2", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }),
|
|
@@ -1566,7 +1607,7 @@ function Nt({
|
|
|
1566
1607
|
const F = b.getMonth() === t.getMonth();
|
|
1567
1608
|
if (!F && f)
|
|
1568
1609
|
return /* @__PURE__ */ s("span", { className: C.dayEmpty, "aria-hidden": "true" }, b.toISOString());
|
|
1569
|
-
const V = Re(b, r) && (F || !f), Y = Re(b, D), L = Re(b, _),
|
|
1610
|
+
const V = Re(b, r) && (F || !f), Y = Re(b, D), L = Re(b, _), G = Y && L, T = !!D && !!_ && !Y && !L && Bt(D, b) && Bt(b, _), U = !_ && Re(b, c);
|
|
1570
1611
|
return /* @__PURE__ */ s(
|
|
1571
1612
|
"button",
|
|
1572
1613
|
{
|
|
@@ -1575,18 +1616,18 @@ function Nt({
|
|
|
1575
1616
|
"data-active": V || void 0,
|
|
1576
1617
|
"aria-label": w.dateLong(b),
|
|
1577
1618
|
"aria-pressed": Re(b, i) || Y || L || U,
|
|
1578
|
-
"aria-current": Re(b,
|
|
1619
|
+
"aria-current": Re(b, E) ? "date" : void 0,
|
|
1579
1620
|
className: P(
|
|
1580
1621
|
C.day,
|
|
1581
1622
|
!F && C.otherMonth,
|
|
1582
1623
|
Re(b, i) && C.selected,
|
|
1583
|
-
Re(b,
|
|
1624
|
+
Re(b, E) && C.today,
|
|
1584
1625
|
T && C.inRange,
|
|
1585
|
-
T &&
|
|
1586
|
-
(Y || U) && !
|
|
1587
|
-
L && !
|
|
1588
|
-
|
|
1589
|
-
L &&
|
|
1626
|
+
T && q && C.inPreview,
|
|
1627
|
+
(Y || U) && !G && C.rangeFrom,
|
|
1628
|
+
L && !G && C.rangeTo,
|
|
1629
|
+
G && C.rangeSingle,
|
|
1630
|
+
L && q && C.previewEnd
|
|
1590
1631
|
),
|
|
1591
1632
|
onClick: () => a(b),
|
|
1592
1633
|
onMouseEnter: u ? () => u(b) : void 0,
|
|
@@ -1599,12 +1640,12 @@ function Nt({
|
|
|
1599
1640
|
)
|
|
1600
1641
|
] });
|
|
1601
1642
|
}
|
|
1602
|
-
const Ht = (e) => $e(e),
|
|
1643
|
+
const Ht = (e) => $e(e), ji = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate(), 23, 59, t ? 59 : 0), Vi = (e, t) => e.getTime() <= t.getTime() ? [e, t] : [t, e], Bn = (e, t) => $e(e).getTime() <= $e(t).getTime() ? [e, t] : [t, e];
|
|
1603
1644
|
function Hn(e, t, n, r) {
|
|
1604
1645
|
const [o, i] = Bn(e, t);
|
|
1605
1646
|
return {
|
|
1606
1647
|
from: Ht(o),
|
|
1607
|
-
to: n === "day" ? Ht(i) :
|
|
1648
|
+
to: n === "day" ? Ht(i) : ji(i, r)
|
|
1608
1649
|
};
|
|
1609
1650
|
}
|
|
1610
1651
|
function Mt({
|
|
@@ -1665,13 +1706,13 @@ function uu({
|
|
|
1665
1706
|
size: i = "md",
|
|
1666
1707
|
clearable: a = !1
|
|
1667
1708
|
}) {
|
|
1668
|
-
const c = Ie(), l = ce(), d = Ve(), u = n ?? l.datePlaceholder, p = o ?? (c == null ? void 0 : c.invalid) ?? !1, [h, f] = I(!1), [m, v] = I(() => Ce(e ?? /* @__PURE__ */ new Date())), [w, y] = I(() => e ?? /* @__PURE__ */ new Date()), g = R(null), N = R(null), M = R(null),
|
|
1709
|
+
const c = Ie(), l = ce(), d = Ve(), u = n ?? l.datePlaceholder, p = o ?? (c == null ? void 0 : c.invalid) ?? !1, [h, f] = I(!1), [m, v] = I(() => Ce(e ?? /* @__PURE__ */ new Date())), [w, y] = I(() => e ?? /* @__PURE__ */ new Date()), g = R(null), N = R(null), M = R(null), E = De(), D = () => {
|
|
1669
1710
|
const b = e ?? /* @__PURE__ */ new Date();
|
|
1670
1711
|
v(Ce(b)), y(b), f(!0);
|
|
1671
1712
|
}, _ = (b = !0) => {
|
|
1672
1713
|
var F;
|
|
1673
1714
|
f(!1), b && ((F = g.current) == null || F.focus());
|
|
1674
|
-
},
|
|
1715
|
+
}, q = (b) => {
|
|
1675
1716
|
t(Ht(b)), _();
|
|
1676
1717
|
};
|
|
1677
1718
|
return /* @__PURE__ */ k(we, { children: [
|
|
@@ -1680,7 +1721,7 @@ function uu({
|
|
|
1680
1721
|
{
|
|
1681
1722
|
wrapRef: N,
|
|
1682
1723
|
triggerRef: g,
|
|
1683
|
-
panel: { id:
|
|
1724
|
+
panel: { id: E, open: h, onToggle: () => h ? f(!1) : D() },
|
|
1684
1725
|
field: c,
|
|
1685
1726
|
state: { disabled: r, invalid: p, clearable: a, size: i },
|
|
1686
1727
|
hasValue: !!e,
|
|
@@ -1707,7 +1748,7 @@ function uu({
|
|
|
1707
1748
|
insideRefs: [N],
|
|
1708
1749
|
role: "dialog",
|
|
1709
1750
|
ariaLabel: l.datePanel,
|
|
1710
|
-
id:
|
|
1751
|
+
id: E,
|
|
1711
1752
|
className: C.panel,
|
|
1712
1753
|
children: /* @__PURE__ */ k("div", { ref: M, children: [
|
|
1713
1754
|
/* @__PURE__ */ s(
|
|
@@ -1719,11 +1760,11 @@ function uu({
|
|
|
1719
1760
|
active: w,
|
|
1720
1761
|
onActive: y,
|
|
1721
1762
|
value: e,
|
|
1722
|
-
onPick:
|
|
1763
|
+
onPick: q
|
|
1723
1764
|
}
|
|
1724
1765
|
),
|
|
1725
1766
|
/* @__PURE__ */ k("div", { className: C.foot, children: [
|
|
1726
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () =>
|
|
1767
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => q(/* @__PURE__ */ new Date()), children: l.today }),
|
|
1727
1768
|
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
1728
1769
|
t(null), _();
|
|
1729
1770
|
}, children: l.clear })
|
|
@@ -1857,9 +1898,9 @@ function hu({
|
|
|
1857
1898
|
invalid: a,
|
|
1858
1899
|
clearable: c = !1
|
|
1859
1900
|
}) {
|
|
1860
|
-
const l = Ie(), d = ce(), u = Ve(), p = r ?? d.dateTimePlaceholder, h = a ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = I(!1), [v, w] = I(() => Ce(e ?? /* @__PURE__ */ new Date())), [y, g] = I(() => e ?? /* @__PURE__ */ new Date()), [N, M] = I(e), [
|
|
1901
|
+
const l = Ie(), d = ce(), u = Ve(), p = r ?? d.dateTimePlaceholder, h = a ?? (l == null ? void 0 : l.invalid) ?? !1, [f, m] = I(!1), [v, w] = I(() => Ce(e ?? /* @__PURE__ */ new Date())), [y, g] = I(() => e ?? /* @__PURE__ */ new Date()), [N, M] = I(e), [E, D] = I("00"), [_, q] = I("00"), [b, F] = I("00"), [V, Y] = I("earlier"), L = R(null), G = R(null), T = R(null), U = R(null), j = R(null), Q = R(null), me = De(), A = () => {
|
|
1861
1902
|
const oe = e ?? /* @__PURE__ */ new Date();
|
|
1862
|
-
w(Ce(oe)), g(oe), M(e ? oe : null), D(Xe(e ? oe.getHours() : 0)),
|
|
1903
|
+
w(Ce(oe)), g(oe), M(e ? oe : null), D(Xe(e ? oe.getHours() : 0)), q(Xe(e ? oe.getMinutes() : 0)), F(Xe(e && n ? oe.getSeconds() : 0)), Y(e ? Ot(e) : "earlier"), m(!0);
|
|
1863
1904
|
}, B = (oe = !0) => {
|
|
1864
1905
|
var K;
|
|
1865
1906
|
m(!1), oe && ((K = L.current) == null || K.focus());
|
|
@@ -1867,19 +1908,19 @@ function hu({
|
|
|
1867
1908
|
N.getFullYear(),
|
|
1868
1909
|
N.getMonth(),
|
|
1869
1910
|
N.getDate(),
|
|
1870
|
-
Math.min(23, Number.parseInt(
|
|
1911
|
+
Math.min(23, Number.parseInt(E, 10) || 0),
|
|
1871
1912
|
Math.min(59, Number.parseInt(_, 10) || 0),
|
|
1872
1913
|
n ? Math.min(59, Number.parseInt(b, 10) || 0) : 0
|
|
1873
|
-
) : null, [N,
|
|
1914
|
+
) : null, [N, E, _, b, n]), te = se(() => z ? z.kind === "ambiguous" ? V === "earlier" ? z.earlier : z.later : z.date : null, [z, V]), xe = () => {
|
|
1874
1915
|
te && (t(te), B());
|
|
1875
|
-
},
|
|
1916
|
+
}, qe = () => {
|
|
1876
1917
|
t(Ui(/* @__PURE__ */ new Date(), n)), B();
|
|
1877
1918
|
};
|
|
1878
1919
|
return /* @__PURE__ */ k(we, { children: [
|
|
1879
1920
|
/* @__PURE__ */ s(
|
|
1880
1921
|
Mt,
|
|
1881
1922
|
{
|
|
1882
|
-
wrapRef:
|
|
1923
|
+
wrapRef: G,
|
|
1883
1924
|
triggerRef: L,
|
|
1884
1925
|
panel: { id: me, open: f, onToggle: () => f ? m(!1) : A() },
|
|
1885
1926
|
field: l,
|
|
@@ -1905,7 +1946,7 @@ function hu({
|
|
|
1905
1946
|
oe || m(!1);
|
|
1906
1947
|
},
|
|
1907
1948
|
anchorRef: L,
|
|
1908
|
-
insideRefs: [
|
|
1949
|
+
insideRefs: [G],
|
|
1909
1950
|
role: "dialog",
|
|
1910
1951
|
ariaLabel: d.dateTimePanel,
|
|
1911
1952
|
id: me,
|
|
@@ -1938,9 +1979,9 @@ function hu({
|
|
|
1938
1979
|
children: [
|
|
1939
1980
|
/* @__PURE__ */ s("span", { className: C.timeLabel, children: d.timeOfDay }),
|
|
1940
1981
|
/* @__PURE__ */ k("div", { className: C.timeGroup, children: [
|
|
1941
|
-
/* @__PURE__ */ s(ht, { own: U, value:
|
|
1982
|
+
/* @__PURE__ */ s(ht, { own: U, value: E, onValue: D, max: 23, label: d.hour, next: j }),
|
|
1942
1983
|
/* @__PURE__ */ s("span", { className: C.timeSeparator, children: ":" }),
|
|
1943
|
-
/* @__PURE__ */ s(ht, { own:
|
|
1984
|
+
/* @__PURE__ */ s(ht, { own: j, value: _, onValue: q, max: 59, label: d.minute, next: n ? Q : void 0 }),
|
|
1944
1985
|
n && /* @__PURE__ */ k(we, { children: [
|
|
1945
1986
|
/* @__PURE__ */ s("span", { className: C.timeSeparator, children: ":" }),
|
|
1946
1987
|
/* @__PURE__ */ s(ht, { own: Q, value: b, onValue: F, max: 59, label: d.second })
|
|
@@ -1975,7 +2016,7 @@ function hu({
|
|
|
1975
2016
|
] }),
|
|
1976
2017
|
/* @__PURE__ */ k("div", { className: C.foot, children: [
|
|
1977
2018
|
/* @__PURE__ */ k("div", { className: C.footLeft, children: [
|
|
1978
|
-
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick:
|
|
2019
|
+
/* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: qe, children: d.now }),
|
|
1979
2020
|
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
1980
2021
|
t(null), B();
|
|
1981
2022
|
}, children: d.clear })
|
|
@@ -2075,20 +2116,20 @@ function pu({
|
|
|
2075
2116
|
clearable: a = !1,
|
|
2076
2117
|
presets: c
|
|
2077
2118
|
}) {
|
|
2078
|
-
const l = Ie(), d = ce(), u = Ve(), p = n ?? d.dateRangePlaceholder, h = o ?? (l == null ? void 0 : l.invalid) ?? !1, f = se(() => c ?? rn(d), [c, d]), [m, v] = I(!1), [w, y] = I(() => Ce((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [g, N] = I(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [M,
|
|
2119
|
+
const l = Ie(), d = ce(), u = Ve(), p = n ?? d.dateRangePlaceholder, h = o ?? (l == null ? void 0 : l.invalid) ?? !1, f = se(() => c ?? rn(d), [c, d]), [m, v] = I(!1), [w, y] = I(() => Ce((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [g, N] = I(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [M, E] = I(null), [D, _] = I(null), q = R(null), b = R(null), F = R(null), V = De(), Y = () => {
|
|
2079
2120
|
const B = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2080
|
-
y(Ce(B)), N(B),
|
|
2121
|
+
y(Ce(B)), N(B), E(null), _(null), v(!0);
|
|
2081
2122
|
}, L = (B = !0) => {
|
|
2082
2123
|
var z;
|
|
2083
|
-
v(!1),
|
|
2084
|
-
},
|
|
2124
|
+
v(!1), E(null), _(null), B && ((z = q.current) == null || z.focus());
|
|
2125
|
+
}, G = (B, z) => {
|
|
2085
2126
|
t(Hn(B, z, "day", !1)), L();
|
|
2086
2127
|
}, T = (B) => {
|
|
2087
2128
|
if (!M) {
|
|
2088
|
-
|
|
2129
|
+
E(B), N(B);
|
|
2089
2130
|
return;
|
|
2090
2131
|
}
|
|
2091
|
-
|
|
2132
|
+
G(M, B);
|
|
2092
2133
|
};
|
|
2093
2134
|
ne(() => {
|
|
2094
2135
|
var z, te;
|
|
@@ -2096,7 +2137,7 @@ function pu({
|
|
|
2096
2137
|
const B = F.current;
|
|
2097
2138
|
B && (z = document.activeElement) != null && z.closest(`.${C.grid}`) && ((te = B.querySelector('[data-active="true"]')) == null || te.focus());
|
|
2098
2139
|
}, [g, m]);
|
|
2099
|
-
const U = M ?? (e == null ? void 0 : e.from) ?? null,
|
|
2140
|
+
const U = M ?? (e == null ? void 0 : e.from) ?? null, j = M ? null : (e == null ? void 0 : e.to) ?? null, Q = M ? D : null, me = (() => {
|
|
2100
2141
|
if (M && D) {
|
|
2101
2142
|
const [B, z] = $e(D).getTime() < $e(M).getTime() ? [D, M] : [M, D], te = $t(B, z);
|
|
2102
2143
|
return d.rangePreview(u.dateShort(B), u.dateShort(z), te);
|
|
@@ -2117,7 +2158,7 @@ function pu({
|
|
|
2117
2158
|
Mt,
|
|
2118
2159
|
{
|
|
2119
2160
|
wrapRef: b,
|
|
2120
|
-
triggerRef:
|
|
2161
|
+
triggerRef: q,
|
|
2121
2162
|
panel: { id: V, open: m, onToggle: () => m ? v(!1) : Y() },
|
|
2122
2163
|
field: l,
|
|
2123
2164
|
state: { disabled: r, invalid: h, clearable: a, size: i },
|
|
@@ -2146,7 +2187,7 @@ function pu({
|
|
|
2146
2187
|
onOpenChange: (B) => {
|
|
2147
2188
|
B || v(!1);
|
|
2148
2189
|
},
|
|
2149
|
-
anchorRef:
|
|
2190
|
+
anchorRef: q,
|
|
2150
2191
|
insideRefs: [b],
|
|
2151
2192
|
role: "dialog",
|
|
2152
2193
|
ariaLabel: d.dateRangePanel,
|
|
@@ -2161,7 +2202,7 @@ function pu({
|
|
|
2161
2202
|
isActive: A,
|
|
2162
2203
|
onChoose: (B) => {
|
|
2163
2204
|
const z = B.range();
|
|
2164
|
-
|
|
2205
|
+
G(z.from, z.to);
|
|
2165
2206
|
}
|
|
2166
2207
|
}
|
|
2167
2208
|
),
|
|
@@ -2174,7 +2215,7 @@ function pu({
|
|
|
2174
2215
|
onActive: N,
|
|
2175
2216
|
onPick: T,
|
|
2176
2217
|
bandFrom: U,
|
|
2177
|
-
bandTo:
|
|
2218
|
+
bandTo: j,
|
|
2178
2219
|
previewTo: Q,
|
|
2179
2220
|
onHoverDay: _
|
|
2180
2221
|
}
|
|
@@ -2218,19 +2259,19 @@ function mu({
|
|
|
2218
2259
|
clearable: c = !1,
|
|
2219
2260
|
presets: l
|
|
2220
2261
|
}) {
|
|
2221
|
-
const d = Ie(), u = ce(), p = Ve(), h = r ?? u.dateRangePlaceholder, f = i ?? (d == null ? void 0 : d.invalid) ?? !1, m = se(() => l ?? rn(u), [l, u]), [v, w] = I(!1), [y, g] = I(() => Ce((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [N, M] = I(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [
|
|
2262
|
+
const d = Ie(), u = ce(), p = Ve(), h = r ?? u.dateRangePlaceholder, f = i ?? (d == null ? void 0 : d.invalid) ?? !1, m = se(() => l ?? rn(u), [l, u]), [v, w] = I(!1), [y, g] = I(() => Ce((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [N, M] = I(() => (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date()), [E, D] = I(null), [_, q] = I(null), [b, F] = I(null), [V, Y] = I(Lt), [L, G] = I(() => Rt(n)), [T, U] = I(!0), [j, Q] = I("earlier"), [me, A] = I("earlier"), B = R(null), z = R(null), te = R(null), xe = R(null), qe = R(null), oe = R(null), K = R(null), _e = R(null), ye = R(null), Ne = R(null), $ = De(), H = () => {
|
|
2222
2263
|
const Z = (e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date();
|
|
2223
|
-
g(Ce(Z)), M(Z), D(e ? $e(e.from) : null),
|
|
2264
|
+
g(Ce(Z)), M(Z), D(e ? $e(e.from) : null), q(e ? $e(e.to) : null), Y(e ? fn(e.from, n) : Lt), G(e ? fn(e.to, n) : Rt(n)), U(e ? Ji(e.from, e.to, n) : !0), Q(e ? Ot(e.from) : "earlier"), A(e ? Ot(e.to) : "earlier"), F(null), w(!0);
|
|
2224
2265
|
}, S = (Z = !0) => {
|
|
2225
2266
|
var J;
|
|
2226
2267
|
w(!1), F(null), Z && ((J = B.current) == null || J.focus());
|
|
2227
2268
|
}, W = (Z) => {
|
|
2228
|
-
if (!
|
|
2229
|
-
D(Z),
|
|
2269
|
+
if (!E || _) {
|
|
2270
|
+
D(Z), q(null), M(Z);
|
|
2230
2271
|
return;
|
|
2231
2272
|
}
|
|
2232
|
-
const [J, pe] = Bn(
|
|
2233
|
-
D($e(J)),
|
|
2273
|
+
const [J, pe] = Bn(E, Z);
|
|
2274
|
+
D($e(J)), q($e(pe)), M(Z), Q("earlier"), A("earlier"), requestAnimationFrame(() => {
|
|
2234
2275
|
var Te, et;
|
|
2235
2276
|
T ? (Te = Ne.current) == null || Te.focus() : (et = xe.current) == null || et.focus();
|
|
2236
2277
|
});
|
|
@@ -2246,32 +2287,32 @@ function mu({
|
|
|
2246
2287
|
const x = T ? Lt : V, O = se(
|
|
2247
2288
|
() => T ? Rt(n) : L,
|
|
2248
2289
|
[T, n, L]
|
|
2249
|
-
), ee = se(() => pn(
|
|
2290
|
+
), ee = se(() => pn(E, x, n), [E, x, n]), ie = se(() => pn(_, O, n), [_, O, n]), le = se(() => mn(ee, j), [ee, j]), ue = se(() => mn(ie, me), [ie, me]), de = () => {
|
|
2250
2291
|
if (!le || !ue) return;
|
|
2251
2292
|
const [Z, J] = Vi(le, ue);
|
|
2252
2293
|
t({ from: Z, to: J }), S();
|
|
2253
|
-
}, fe =
|
|
2294
|
+
}, fe = E, be = _, ke = E && !_ ? b : null, he = () => {
|
|
2254
2295
|
if (!le || !ue) return "";
|
|
2255
|
-
if (T &&
|
|
2256
|
-
const Ct = $t(
|
|
2296
|
+
if (T && E && _) {
|
|
2297
|
+
const Ct = $t(E, _);
|
|
2257
2298
|
return u.daysAllDay(Ct);
|
|
2258
2299
|
}
|
|
2259
2300
|
const Z = Math.abs(ue.getTime() - le.getTime()), J = Math.round(Z / 6e4), pe = Math.floor(J / 1440), Te = Math.floor(J % 1440 / 60), et = J % 60, Ue = [];
|
|
2260
2301
|
return pe > 0 && Ue.push(u.days(pe)), Te > 0 && Ue.push(u.hoursShort(Te)), (et > 0 || Ue.length === 0) && Ue.push(u.minutesShort(et)), u.duration(Ue);
|
|
2261
|
-
},
|
|
2262
|
-
if (!
|
|
2302
|
+
}, Ee = (() => {
|
|
2303
|
+
if (!E) return u.chooseStartDate;
|
|
2263
2304
|
if (!_) {
|
|
2264
2305
|
if (b) {
|
|
2265
|
-
const [Z, J] = $e(b).getTime() < $e(
|
|
2306
|
+
const [Z, J] = $e(b).getTime() < $e(E).getTime() ? [b, E] : [E, b], pe = $t(Z, J);
|
|
2266
2307
|
return u.rangePreview(p.dateShort(Z), p.dateShort(J), pe);
|
|
2267
2308
|
}
|
|
2268
2309
|
return u.chooseEndDate;
|
|
2269
2310
|
}
|
|
2270
2311
|
return he();
|
|
2271
2312
|
})(), Je = (Z) => {
|
|
2272
|
-
if (!
|
|
2313
|
+
if (!E || !_ || !T) return !1;
|
|
2273
2314
|
const J = Z.range();
|
|
2274
|
-
return Re(J.from,
|
|
2315
|
+
return Re(J.from, E) && Re(J.to, _);
|
|
2275
2316
|
}, vt = (Z, J, pe, Te, et, Ue) => {
|
|
2276
2317
|
const [Ct, an, cn] = et;
|
|
2277
2318
|
return /* @__PURE__ */ k("div", { className: C.timeHalf, children: [
|
|
@@ -2414,12 +2455,12 @@ function mu({
|
|
|
2414
2455
|
Z.key === "Enter" && (Z.preventDefault(), de());
|
|
2415
2456
|
},
|
|
2416
2457
|
children: [
|
|
2417
|
-
vt("from",
|
|
2418
|
-
vt("to", _, L,
|
|
2458
|
+
vt("from", E, V, Y, [xe, qe, oe], K),
|
|
2459
|
+
vt("to", _, L, G, [K, _e, ye])
|
|
2419
2460
|
]
|
|
2420
2461
|
}
|
|
2421
2462
|
),
|
|
2422
|
-
sn(u.sideFrom, ee,
|
|
2463
|
+
sn(u.sideFrom, ee, j, Q),
|
|
2423
2464
|
sn(u.sideTo, ie, me, A)
|
|
2424
2465
|
] })
|
|
2425
2466
|
] }),
|
|
@@ -2434,12 +2475,12 @@ function mu({
|
|
|
2434
2475
|
const J = Z.target.checked;
|
|
2435
2476
|
U(J), requestAnimationFrame(() => {
|
|
2436
2477
|
var pe, Te;
|
|
2437
|
-
J ?
|
|
2478
|
+
J ? E && _ && ((Te = Ne.current) == null || Te.focus()) : (pe = xe.current) == null || pe.focus();
|
|
2438
2479
|
});
|
|
2439
2480
|
}
|
|
2440
2481
|
}
|
|
2441
2482
|
),
|
|
2442
|
-
/* @__PURE__ */ s("span", { className: P(C.footNote, C.footNoteRight), "aria-live": "polite", children:
|
|
2483
|
+
/* @__PURE__ */ s("span", { className: P(C.footNote, C.footNoteRight), "aria-live": "polite", children: Ee }),
|
|
2443
2484
|
/* @__PURE__ */ k("div", { className: C.footLeft, children: [
|
|
2444
2485
|
e && /* @__PURE__ */ s(ve, { size: "sm", variant: "ghost", onClick: () => {
|
|
2445
2486
|
t(null), S();
|
|
@@ -2570,18 +2611,18 @@ const ua = "_input_14ex4_4 _field_1hv7a_34", ha = "_sm_14ex4_40", fa = "_numeric
|
|
|
2570
2611
|
]
|
|
2571
2612
|
}
|
|
2572
2613
|
);
|
|
2573
|
-
}), wa = "_stack_9r3lk_4", ka = "_grid_9r3lk_9",
|
|
2614
|
+
}), wa = "_stack_9r3lk_4", ka = "_grid_9r3lk_9", Gn = {
|
|
2574
2615
|
stack: wa,
|
|
2575
2616
|
grid: ka
|
|
2576
|
-
},
|
|
2617
|
+
}, jn = (e) => `var(--u-space-${e})`, vu = ae(function({ direction: t = "column", gap: n = 3, align: r, justify: o, wrap: i = !1, className: a, style: c, children: l, ...d }, u) {
|
|
2577
2618
|
return /* @__PURE__ */ s(
|
|
2578
2619
|
"div",
|
|
2579
2620
|
{
|
|
2580
2621
|
ref: u,
|
|
2581
|
-
className: P(
|
|
2622
|
+
className: P(Gn.stack, a),
|
|
2582
2623
|
style: {
|
|
2583
2624
|
flexDirection: t,
|
|
2584
|
-
gap:
|
|
2625
|
+
gap: jn(n),
|
|
2585
2626
|
alignItems: r,
|
|
2586
2627
|
justifyContent: o,
|
|
2587
2628
|
flexWrap: i ? "wrap" : void 0,
|
|
@@ -2596,10 +2637,10 @@ const ua = "_input_14ex4_4 _field_1hv7a_34", ha = "_sm_14ex4_40", fa = "_numeric
|
|
|
2596
2637
|
"div",
|
|
2597
2638
|
{
|
|
2598
2639
|
ref: l,
|
|
2599
|
-
className: P(
|
|
2640
|
+
className: P(Gn.grid, o),
|
|
2600
2641
|
style: {
|
|
2601
2642
|
gridTemplateColumns: n ? `repeat(auto-fit, minmax(min(${n}, 100%), 1fr))` : `repeat(${t}, minmax(0, 1fr))`,
|
|
2602
|
-
gap:
|
|
2643
|
+
gap: jn(r),
|
|
2603
2644
|
...i
|
|
2604
2645
|
},
|
|
2605
2646
|
...c,
|
|
@@ -2657,10 +2698,10 @@ const Ta = "_wrapper_f3ja0_4 _text_1hv7a_23", Ma = "_sm_f3ja0_26", Ca = "_invali
|
|
|
2657
2698
|
onKeyDown: w,
|
|
2658
2699
|
...y
|
|
2659
2700
|
}, g) {
|
|
2660
|
-
const N = Ie(), M = ce(),
|
|
2701
|
+
const N = Ie(), M = ce(), E = Ve(), D = (K) => E.number(K, a), _ = se(() => or(E), [E]), q = (K) => xa(K, _), b = u ?? (N == null ? void 0 : N.invalid) ?? !1, F = se(() => ({ min: r, max: o, decimals: a }), [r, o, a]), [V, Y] = I(() => t === null ? "" : D(t)), [L, G] = I(!1);
|
|
2661
2702
|
ne(() => {
|
|
2662
2703
|
L || Y(t === null ? "" : D(t));
|
|
2663
|
-
}, [t, L, a,
|
|
2704
|
+
}, [t, L, a, E]);
|
|
2664
2705
|
const T = (K) => {
|
|
2665
2706
|
if (K === null) {
|
|
2666
2707
|
Y(""), n(null);
|
|
@@ -2670,10 +2711,10 @@ const Ta = "_wrapper_f3ja0_4 _text_1hv7a_23", Ma = "_sm_f3ja0_26", Ca = "_invali
|
|
|
2670
2711
|
Y(D(_e)), n(_e);
|
|
2671
2712
|
}, U = R(V);
|
|
2672
2713
|
U.current = V;
|
|
2673
|
-
const
|
|
2674
|
-
|
|
2714
|
+
const j = R(t);
|
|
2715
|
+
j.current = t;
|
|
2675
2716
|
const Q = (K, _e = 1) => {
|
|
2676
|
-
const ye =
|
|
2717
|
+
const ye = q(U.current) ?? j.current ?? 0;
|
|
2677
2718
|
T(Da(ye, K, i, _e));
|
|
2678
2719
|
}, me = (K) => {
|
|
2679
2720
|
w == null || w(K), !K.defaultPrevented && (K.key !== "ArrowUp" && K.key !== "ArrowDown" || (K.preventDefault(), Q(K.key === "ArrowUp" ? 1 : -1, K.shiftKey ? 10 : 1)));
|
|
@@ -2689,7 +2730,7 @@ const Ta = "_wrapper_f3ja0_4 _text_1hv7a_23", Ma = "_sm_f3ja0_26", Ca = "_invali
|
|
|
2689
2730
|
}, Ne);
|
|
2690
2731
|
};
|
|
2691
2732
|
ye(400);
|
|
2692
|
-
}, te =
|
|
2733
|
+
}, te = q(V) ?? t, xe = !p && (o === void 0 || te === null || te < o), qe = !p && (r === void 0 || te === null || te > r), oe = (K, _e, ye, Ne) => /* @__PURE__ */ s(
|
|
2693
2734
|
"button",
|
|
2694
2735
|
{
|
|
2695
2736
|
type: "button",
|
|
@@ -2734,31 +2775,31 @@ const Ta = "_wrapper_f3ja0_4 _text_1hv7a_23", Ma = "_sm_f3ja0_26", Ca = "_invali
|
|
|
2734
2775
|
onChange: (K) => {
|
|
2735
2776
|
const _e = $a(K.target.value, F, _);
|
|
2736
2777
|
Y(_e);
|
|
2737
|
-
const ye =
|
|
2778
|
+
const ye = q(_e);
|
|
2738
2779
|
n(ye === null ? null : _n(ye, F));
|
|
2739
2780
|
},
|
|
2740
2781
|
...y,
|
|
2741
2782
|
onKeyDown: me,
|
|
2742
2783
|
onFocus: (K) => {
|
|
2743
|
-
m == null || m(K),
|
|
2784
|
+
m == null || m(K), G(!0);
|
|
2744
2785
|
},
|
|
2745
2786
|
onBlur: (K) => {
|
|
2746
|
-
v == null || v(K),
|
|
2787
|
+
v == null || v(K), G(!1), T(q(K.currentTarget.value));
|
|
2747
2788
|
}
|
|
2748
2789
|
}
|
|
2749
2790
|
),
|
|
2750
2791
|
l && /* @__PURE__ */ s("span", { className: Ye.adornment, children: l }),
|
|
2751
2792
|
/* @__PURE__ */ k("span", { className: Ye.stepper, children: [
|
|
2752
|
-
oe(-1,
|
|
2793
|
+
oe(-1, qe, M.decreaseValue, /* @__PURE__ */ s(bs, {})),
|
|
2753
2794
|
oe(1, xe, M.increaseValue, /* @__PURE__ */ s(ys, {}))
|
|
2754
2795
|
] })
|
|
2755
2796
|
]
|
|
2756
2797
|
}
|
|
2757
2798
|
);
|
|
2758
|
-
}), Pa = "_dialog_105hh_8 _text_1hv7a_23",
|
|
2799
|
+
}), Pa = "_dialog_105hh_8 _text_1hv7a_23", qa = "_spacerTop_105hh_30", Ea = "_spacerBottom_105hh_35", Fa = "_sheet_105hh_2", Ia = "_sm_105hh_52", Ba = "_md_105hh_53", Ha = "_lg_105hh_54", Oa = "_header_105hh_102", Wa = "_headerText_105hh_110", za = "_title_105hh_117", Ga = "_description_105hh_125", ja = "_close_105hh_132 _ring_1hv7a_65", Va = "_footer_105hh_158", Ua = "_body_105hh_162 _scroll_1hv7a_40", Ya = "_modalIn_105hh_1", Ka = "_modalOut_105hh_1", Xa = "_backdropIn_105hh_1", Qa = "_backdropOut_105hh_1", Fe = {
|
|
2759
2800
|
dialog: Pa,
|
|
2760
|
-
spacerTop:
|
|
2761
|
-
spacerBottom:
|
|
2801
|
+
spacerTop: qa,
|
|
2802
|
+
spacerBottom: Ea,
|
|
2762
2803
|
sheet: Fa,
|
|
2763
2804
|
sm: Ia,
|
|
2764
2805
|
md: Ba,
|
|
@@ -2766,15 +2807,15 @@ const Ta = "_wrapper_f3ja0_4 _text_1hv7a_23", Ma = "_sm_f3ja0_26", Ca = "_invali
|
|
|
2766
2807
|
header: Oa,
|
|
2767
2808
|
headerText: Wa,
|
|
2768
2809
|
title: za,
|
|
2769
|
-
description:
|
|
2770
|
-
close:
|
|
2810
|
+
description: Ga,
|
|
2811
|
+
close: ja,
|
|
2771
2812
|
footer: Va,
|
|
2772
2813
|
body: Ua,
|
|
2773
2814
|
modalIn: Ya,
|
|
2774
2815
|
modalOut: Ka,
|
|
2775
2816
|
backdropIn: Xa,
|
|
2776
2817
|
backdropOut: Qa
|
|
2777
|
-
}, Un =
|
|
2818
|
+
}, Un = je(null);
|
|
2778
2819
|
function Za({
|
|
2779
2820
|
open: e,
|
|
2780
2821
|
onClose: t,
|
|
@@ -2784,7 +2825,7 @@ function Za({
|
|
|
2784
2825
|
children: i,
|
|
2785
2826
|
...a
|
|
2786
2827
|
}) {
|
|
2787
|
-
const c = R(null), l = De(), { dialogRef: d, closing: u, beimSchliessen: p, beimAbbrechen: h } =
|
|
2828
|
+
const c = R(null), l = De(), { dialogRef: d, closing: u, beimSchliessen: p, beimAbbrechen: h } = qn(e, "--u-duration-exit", t), f = (m) => {
|
|
2788
2829
|
r && c.current && !c.current.contains(m.target) && t();
|
|
2789
2830
|
};
|
|
2790
2831
|
return /* @__PURE__ */ k(
|
|
@@ -2886,22 +2927,22 @@ function xu({
|
|
|
2886
2927
|
disabled: a = !1,
|
|
2887
2928
|
invalid: c
|
|
2888
2929
|
}) {
|
|
2889
|
-
const l = Ie(), d = ce(), u = r ?? d.multiSelectPlaceholder, p = o ?? d.multiSelectSearchPlaceholder, h = i ?? d.noMatches, f = c ?? (l == null ? void 0 : l.invalid) ?? !1, [m, v] = I(!1), [w, y] = I(""), [g, N] = I("all"), [M,
|
|
2890
|
-
N(x),
|
|
2930
|
+
const l = Ie(), d = ce(), u = r ?? d.multiSelectPlaceholder, p = o ?? d.multiSelectSearchPlaceholder, h = i ?? d.noMatches, f = c ?? (l == null ? void 0 : l.invalid) ?? !1, [m, v] = I(!1), [w, y] = I(""), [g, N] = I("all"), [M, E] = I(/* @__PURE__ */ new Set()), D = R(null), _ = R(null), q = R(null), b = R(null), F = De(), V = (x = "all") => {
|
|
2931
|
+
N(x), E(new Set(t)), y(""), v(!0);
|
|
2891
2932
|
}, Y = (x) => {
|
|
2892
2933
|
var O;
|
|
2893
|
-
N(x), x === "selected" &&
|
|
2934
|
+
N(x), x === "selected" && E(new Set(t)), (O = q.current) == null || O.focus();
|
|
2894
2935
|
}, L = X((x) => {
|
|
2895
2936
|
var O;
|
|
2896
|
-
x && ((O =
|
|
2897
|
-
}, []),
|
|
2937
|
+
x && ((O = q.current) == null || O.focus());
|
|
2938
|
+
}, []), G = se(
|
|
2898
2939
|
() => g === "selected" ? e.filter((x) => M.has(x.value)) : e,
|
|
2899
2940
|
[e, g, M]
|
|
2900
|
-
), T = se(() =>
|
|
2941
|
+
), T = se(() => En(G, w), [G, w]), U = (x) => {
|
|
2901
2942
|
n(
|
|
2902
2943
|
t.includes(x) ? t.filter((O) => O !== x) : [...t, x]
|
|
2903
2944
|
);
|
|
2904
|
-
},
|
|
2945
|
+
}, j = (x) => {
|
|
2905
2946
|
n(t.filter((O) => O !== x));
|
|
2906
2947
|
}, Q = se(() => No(T), [T]), me = () => n($o(t, Q)), A = () => n(Do(t, Q)), B = () => n(To(t, Q)), z = () => {
|
|
2907
2948
|
var x;
|
|
@@ -2923,22 +2964,22 @@ function xu({
|
|
|
2923
2964
|
var ie, le, ue, de, fe;
|
|
2924
2965
|
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(x.key)) return;
|
|
2925
2966
|
const O = z(), ee = O.findIndex((be) => be === document.activeElement);
|
|
2926
|
-
ee !== -1 && (x.preventDefault(), x.key === "ArrowDown" && ((ie = O[Math.min(ee + 1, O.length - 1)]) == null || ie.focus()), x.key === "ArrowUp" && (ee === 0 ? (le =
|
|
2927
|
-
},
|
|
2967
|
+
ee !== -1 && (x.preventDefault(), x.key === "ArrowDown" && ((ie = O[Math.min(ee + 1, O.length - 1)]) == null || ie.focus()), x.key === "ArrowUp" && (ee === 0 ? (le = q.current) == null || le.focus() : (ue = O[ee - 1]) == null || ue.focus()), x.key === "Home" && ((de = O[0]) == null || de.focus()), x.key === "End" && ((fe = O[O.length - 1]) == null || fe.focus()));
|
|
2968
|
+
}, qe = () => {
|
|
2928
2969
|
var x;
|
|
2929
2970
|
return Array.from(((x = D.current) == null ? void 0 : x.querySelectorAll("[data-nav]")) ?? []);
|
|
2930
2971
|
}, oe = (x) => {
|
|
2931
2972
|
var le, ue, de;
|
|
2932
2973
|
if (a) return;
|
|
2933
|
-
const O = x.target, ee =
|
|
2974
|
+
const O = x.target, ee = qe();
|
|
2934
2975
|
if (O === _.current) {
|
|
2935
2976
|
x.key === "ArrowLeft" && ee.length > 0 ? (x.preventDefault(), (le = ee[ee.length - 1]) == null || le.focus()) : x.key === "Backspace" && t.length > 0 && (x.preventDefault(), n(t.slice(0, -1)));
|
|
2936
2977
|
return;
|
|
2937
2978
|
}
|
|
2938
2979
|
const ie = ee.indexOf(O);
|
|
2939
|
-
ie !== -1 && (x.key === "ArrowRight" ? (x.preventDefault(), (ue = ee[ie + 1] ?? _.current) == null || ue.focus()) : x.key === "ArrowLeft" ? (x.preventDefault(), (de = ee[ie - 1]) == null || de.focus()) : (x.key === "Delete" || x.key === "Backspace") && O.dataset.value && (x.preventDefault(),
|
|
2980
|
+
ie !== -1 && (x.key === "ArrowRight" ? (x.preventDefault(), (ue = ee[ie + 1] ?? _.current) == null || ue.focus()) : x.key === "ArrowLeft" ? (x.preventDefault(), (de = ee[ie - 1]) == null || de.focus()) : (x.key === "Delete" || x.key === "Backspace") && O.dataset.value && (x.preventDefault(), j(O.dataset.value), requestAnimationFrame(() => {
|
|
2940
2981
|
var be;
|
|
2941
|
-
const fe =
|
|
2982
|
+
const fe = qe();
|
|
2942
2983
|
(be = fe[Math.min(ie, fe.length - 1)] ?? _.current) == null || be.focus();
|
|
2943
2984
|
})));
|
|
2944
2985
|
}, K = se(
|
|
@@ -2957,7 +2998,7 @@ function xu({
|
|
|
2957
2998
|
let fe = 1;
|
|
2958
2999
|
for (let ke = le.length; ke >= 1; ke -= 1) {
|
|
2959
3000
|
let he = (ke - 1) * de;
|
|
2960
|
-
for (let
|
|
3001
|
+
for (let Ee = 0; Ee < ke; Ee += 1) he += le[Ee] ?? 0;
|
|
2961
3002
|
if (ke < le.length && (he += de + ie), he <= ue) {
|
|
2962
3003
|
fe = ke;
|
|
2963
3004
|
break;
|
|
@@ -2965,7 +3006,7 @@ function xu({
|
|
|
2965
3006
|
}
|
|
2966
3007
|
ye(fe);
|
|
2967
3008
|
}, []);
|
|
2968
|
-
|
|
3009
|
+
Ge(() => {
|
|
2969
3010
|
H();
|
|
2970
3011
|
}), ne(() => {
|
|
2971
3012
|
const x = D.current;
|
|
@@ -2998,7 +3039,7 @@ function xu({
|
|
|
2998
3039
|
className: re.chip,
|
|
2999
3040
|
"aria-label": d.removeSelectedValue(x.label),
|
|
3000
3041
|
onClick: (O) => {
|
|
3001
|
-
O.stopPropagation(),
|
|
3042
|
+
O.stopPropagation(), j(x.value);
|
|
3002
3043
|
},
|
|
3003
3044
|
children: [
|
|
3004
3045
|
/* @__PURE__ */ s("span", { className: re.chipLabel, children: x.label }),
|
|
@@ -3081,7 +3122,7 @@ function xu({
|
|
|
3081
3122
|
/* @__PURE__ */ s(
|
|
3082
3123
|
zn,
|
|
3083
3124
|
{
|
|
3084
|
-
ref:
|
|
3125
|
+
ref: q,
|
|
3085
3126
|
size: "sm",
|
|
3086
3127
|
value: w,
|
|
3087
3128
|
placeholder: p,
|
|
@@ -3089,7 +3130,7 @@ function xu({
|
|
|
3089
3130
|
clearable: !0,
|
|
3090
3131
|
onClear: () => {
|
|
3091
3132
|
var x;
|
|
3092
|
-
y(""), (x =
|
|
3133
|
+
y(""), (x = q.current) == null || x.focus();
|
|
3093
3134
|
},
|
|
3094
3135
|
onChange: (x) => y(x.target.value),
|
|
3095
3136
|
onKeyDown: te
|
|
@@ -3133,7 +3174,7 @@ function xu({
|
|
|
3133
3174
|
role: "group",
|
|
3134
3175
|
"aria-label": d.options,
|
|
3135
3176
|
onKeyDown: xe,
|
|
3136
|
-
children: T.length === 0 ? /* @__PURE__ */ s("div", { className: re.empty, children: g === "selected" &&
|
|
3177
|
+
children: T.length === 0 ? /* @__PURE__ */ s("div", { className: re.empty, children: g === "selected" && G.length === 0 ? d.nothingSelected : h }) : T.map((x) => /* @__PURE__ */ s(
|
|
3137
3178
|
Jt,
|
|
3138
3179
|
{
|
|
3139
3180
|
className: re.option,
|
|
@@ -3178,19 +3219,19 @@ const Nc = "_group_1rlbr_8 _text_1hv7a_23", $c = "_horizontal_1rlbr_15", Dc = "_
|
|
|
3178
3219
|
const f = Ie(), m = De(), v = l ?? (f == null ? void 0 : f.id) ?? m, w = R(null), y = n !== void 0, g = t.filter((D) => !D.disabled && !c), N = (D) => {
|
|
3179
3220
|
o == null || o(D.value);
|
|
3180
3221
|
}, M = (D) => {
|
|
3181
|
-
var
|
|
3222
|
+
var G, T, U, j;
|
|
3182
3223
|
if (u == null || u(D), D.defaultPrevented) return;
|
|
3183
|
-
const _ = D.key === "ArrowDown" || D.key === "ArrowRight",
|
|
3184
|
-
if (!_ && !
|
|
3224
|
+
const _ = D.key === "ArrowDown" || D.key === "ArrowRight", q = D.key === "ArrowUp" || D.key === "ArrowLeft";
|
|
3225
|
+
if (!_ && !q || g.length === 0) return;
|
|
3185
3226
|
D.preventDefault();
|
|
3186
|
-
const b = (y ? n : (T = (
|
|
3227
|
+
const b = (y ? n : (T = (G = w.current) == null ? void 0 : G.querySelector("input:checked")) == null ? void 0 : T.value) ?? null, F = g.findIndex((Q) => Q.value === b), V = F === -1 ? 0 : (F + (_ ? 1 : -1) + g.length) % g.length, Y = g[V];
|
|
3187
3228
|
if (!Y) return;
|
|
3188
|
-
(
|
|
3229
|
+
(j = Array.from(
|
|
3189
3230
|
((U = w.current) == null ? void 0 : U.querySelectorAll('input[type="radio"]')) ?? []
|
|
3190
|
-
).find((Q) => Q.value === Y.value)) == null ||
|
|
3191
|
-
},
|
|
3192
|
-
var
|
|
3193
|
-
return y ? D.disabled || c ? -1 : n === D.value || !g.some((b) => b.value === n) && ((
|
|
3231
|
+
).find((Q) => Q.value === Y.value)) == null || j.focus(), N(Y);
|
|
3232
|
+
}, E = (D) => {
|
|
3233
|
+
var q;
|
|
3234
|
+
return y ? D.disabled || c ? -1 : n === D.value || !g.some((b) => b.value === n) && ((q = g[0]) == null ? void 0 : q.value) === D.value ? 0 : -1 : void 0;
|
|
3194
3235
|
};
|
|
3195
3236
|
return /* @__PURE__ */ s(
|
|
3196
3237
|
"div",
|
|
@@ -3213,7 +3254,7 @@ const Nc = "_group_1rlbr_8 _text_1hv7a_23", $c = "_horizontal_1rlbr_15", Dc = "_
|
|
|
3213
3254
|
...p,
|
|
3214
3255
|
onKeyDown: M,
|
|
3215
3256
|
children: t.map((D) => {
|
|
3216
|
-
const _ = `${m}-${Qe(D.value)}`,
|
|
3257
|
+
const _ = `${m}-${Qe(D.value)}`, q = D.description ? `${_}-description` : void 0, b = c || D.disabled;
|
|
3217
3258
|
return /* @__PURE__ */ k(
|
|
3218
3259
|
"label",
|
|
3219
3260
|
{
|
|
@@ -3228,16 +3269,16 @@ const Nc = "_group_1rlbr_8 _text_1hv7a_23", $c = "_horizontal_1rlbr_15", Dc = "_
|
|
|
3228
3269
|
name: v,
|
|
3229
3270
|
value: D.value,
|
|
3230
3271
|
disabled: b,
|
|
3231
|
-
tabIndex:
|
|
3272
|
+
tabIndex: E(D),
|
|
3232
3273
|
className: Oe.input,
|
|
3233
|
-
"aria-describedby":
|
|
3274
|
+
"aria-describedby": q,
|
|
3234
3275
|
...y ? { checked: n === D.value, onChange: () => N(D) } : { defaultChecked: r === D.value, onChange: () => N(D) }
|
|
3235
3276
|
}
|
|
3236
3277
|
),
|
|
3237
3278
|
/* @__PURE__ */ s("span", { className: Oe.dot, "aria-hidden": "true" }),
|
|
3238
3279
|
/* @__PURE__ */ k("span", { className: Oe.texts, children: [
|
|
3239
3280
|
/* @__PURE__ */ s("span", { className: Oe.label, children: D.label }),
|
|
3240
|
-
D.description && /* @__PURE__ */ s("span", { id:
|
|
3281
|
+
D.description && /* @__PURE__ */ s("span", { id: q, className: Oe.description, children: D.description })
|
|
3241
3282
|
] })
|
|
3242
3283
|
]
|
|
3243
3284
|
},
|
|
@@ -3246,10 +3287,10 @@ const Nc = "_group_1rlbr_8 _text_1hv7a_23", $c = "_horizontal_1rlbr_15", Dc = "_
|
|
|
3246
3287
|
})
|
|
3247
3288
|
}
|
|
3248
3289
|
);
|
|
3249
|
-
}), Pc = "_wrapper_11qvp_4 _text_1hv7a_23",
|
|
3290
|
+
}), Pc = "_wrapper_11qvp_4 _text_1hv7a_23", qc = "_select_11qvp_11 _field_1hv7a_34", Ec = "_sm_11qvp_43", Fc = "_invalid_11qvp_49", Ic = "_chevron_11qvp_58", Bc = "_selectClearable_11qvp_75", Hc = "_clear_11qvp_80", nt = {
|
|
3250
3291
|
wrapper: Pc,
|
|
3251
|
-
select:
|
|
3252
|
-
sm:
|
|
3292
|
+
select: qc,
|
|
3293
|
+
sm: Ec,
|
|
3253
3294
|
invalid: Fc,
|
|
3254
3295
|
chevron: Ic,
|
|
3255
3296
|
selectClearable: Bc,
|
|
@@ -3305,10 +3346,10 @@ function Du({ width: e, height: t, circle: n = !1, className: r, style: o, ...i
|
|
|
3305
3346
|
}
|
|
3306
3347
|
);
|
|
3307
3348
|
}
|
|
3308
|
-
const zc = "_group_aix02_7",
|
|
3349
|
+
const zc = "_group_aix02_7", Gc = "_tag_aix02_16 _text_1hv7a_23", jc = "_removable_aix02_31", Vc = "_disabled_aix02_41", Uc = "_text_aix02_45", Yc = "_neutral_aix02_52", Kc = "_accent_aix02_57", Xc = "_success_aix02_62", Qc = "_warning_aix02_67", Zc = "_danger_aix02_72", Jc = "_remove_aix02_79", ot = {
|
|
3309
3350
|
group: zc,
|
|
3310
|
-
tag:
|
|
3311
|
-
removable:
|
|
3351
|
+
tag: Gc,
|
|
3352
|
+
removable: jc,
|
|
3312
3353
|
disabled: Vc,
|
|
3313
3354
|
text: Uc,
|
|
3314
3355
|
neutral: Yc,
|
|
@@ -3317,7 +3358,7 @@ const zc = "_group_aix02_7", jc = "_tag_aix02_16 _text_1hv7a_23", Gc = "_removab
|
|
|
3317
3358
|
warning: Qc,
|
|
3318
3359
|
danger: Zc,
|
|
3319
3360
|
remove: Jc
|
|
3320
|
-
}, Yn =
|
|
3361
|
+
}, Yn = je(!1), Tu = ae(function({ className: t, children: n, onKeyDown: r, onFocus: o, ...i }, a) {
|
|
3321
3362
|
const c = R(null), l = X(
|
|
3322
3363
|
() => {
|
|
3323
3364
|
var h;
|
|
@@ -3425,7 +3466,7 @@ const zc = "_group_aix02_7", jc = "_tag_aix02_16 _text_1hv7a_23", Gc = "_removab
|
|
|
3425
3466
|
indicator: tl,
|
|
3426
3467
|
tab: nl,
|
|
3427
3468
|
panel: rl
|
|
3428
|
-
}, Kn =
|
|
3469
|
+
}, Kn = je(null);
|
|
3429
3470
|
function on(e) {
|
|
3430
3471
|
const t = He(Kn);
|
|
3431
3472
|
if (!t)
|
|
@@ -3447,7 +3488,7 @@ function Su({ className: e, children: t, onKeyDown: n, ...r }) {
|
|
|
3447
3488
|
}
|
|
3448
3489
|
c({ left: p.offsetLeft, width: p.offsetWidth });
|
|
3449
3490
|
}, []);
|
|
3450
|
-
|
|
3491
|
+
Ge(() => {
|
|
3451
3492
|
l();
|
|
3452
3493
|
}, [l, o.value]), ne(() => {
|
|
3453
3494
|
var p;
|
|
@@ -3540,7 +3581,7 @@ const ol = (e, t) => t === void 0 ? void 0 : t - e.length, sl = (e, t, n) => !n
|
|
|
3540
3581
|
...h
|
|
3541
3582
|
}, f) {
|
|
3542
3583
|
const m = Ie(), v = n ?? (m == null ? void 0 : m.invalid) ?? !1, w = R(null);
|
|
3543
|
-
|
|
3584
|
+
jt(f, () => w.current);
|
|
3544
3585
|
const y = X(() => {
|
|
3545
3586
|
const b = w.current;
|
|
3546
3587
|
if (!b || !r) return;
|
|
@@ -3548,7 +3589,7 @@ const ol = (e, t) => t === void 0 ? void 0 : t - e.length, sl = (e, t, n) => !n
|
|
|
3548
3589
|
const F = Number.parseFloat(getComputedStyle(b).lineHeight) || 0;
|
|
3549
3590
|
b.style.height = `${sl(b.scrollHeight, F, o)}px`, b.style.overflowY = o && b.scrollHeight > b.clientHeight ? "auto" : "hidden";
|
|
3550
3591
|
}, [r, o]);
|
|
3551
|
-
|
|
3592
|
+
Ge(y, [y, h.value, h.defaultValue]), ne(() => {
|
|
3552
3593
|
var F;
|
|
3553
3594
|
if (!r) return;
|
|
3554
3595
|
let b = !1;
|
|
@@ -3558,7 +3599,7 @@ const ol = (e, t) => t === void 0 ? void 0 : t - e.length, sl = (e, t, n) => !n
|
|
|
3558
3599
|
b = !0;
|
|
3559
3600
|
};
|
|
3560
3601
|
}, [r, y]);
|
|
3561
|
-
const [g, N] = I(() => String(h.defaultValue ?? "")), M = h.value !== void 0,
|
|
3602
|
+
const [g, N] = I(() => String(h.defaultValue ?? "")), M = h.value !== void 0, E = M ? String(h.value ?? "") : g, D = ol(E, h.maxLength), _ = i && D !== void 0, q = /* @__PURE__ */ s(
|
|
3562
3603
|
"textarea",
|
|
3563
3604
|
{
|
|
3564
3605
|
ref: w,
|
|
@@ -3582,7 +3623,7 @@ const ol = (e, t) => t === void 0 ? void 0 : t - e.length, sl = (e, t, n) => !n
|
|
|
3582
3623
|
}
|
|
3583
3624
|
);
|
|
3584
3625
|
return _ ? /* @__PURE__ */ k("span", { className: P(ut.wrapper, c), children: [
|
|
3585
|
-
|
|
3626
|
+
q,
|
|
3586
3627
|
/* @__PURE__ */ s(
|
|
3587
3628
|
"span",
|
|
3588
3629
|
{
|
|
@@ -3591,7 +3632,7 @@ const ol = (e, t) => t === void 0 ? void 0 : t - e.length, sl = (e, t, n) => !n
|
|
|
3591
3632
|
children: D
|
|
3592
3633
|
}
|
|
3593
3634
|
)
|
|
3594
|
-
] }) :
|
|
3635
|
+
] }) : q;
|
|
3595
3636
|
}), hl = "_region_18dvk_4 _text_1hv7a_23", fl = "_live_18dvk_17", pl = "_itemWrap_18dvk_26", ml = "_itemWrapLeaving_18dvk_32", _l = "_itemInner_18dvk_36", gl = "_toast_18dvk_46", vl = "_icon_18dvk_79", yl = "_neutral_18dvk_90", bl = "_success_18dvk_95", wl = "_warning_18dvk_100", kl = "_danger_18dvk_105", xl = "_text_18dvk_110", Nl = "_title_18dvk_119", $l = "_descriptionText_18dvk_127", Dl = "_close_18dvk_134 _ring_1hv7a_65", Tl = "_toastIn_18dvk_1", Le = {
|
|
3596
3637
|
region: hl,
|
|
3597
3638
|
live: fl,
|
|
@@ -3609,7 +3650,7 @@ const ol = (e, t) => t === void 0 ? void 0 : t - e.length, sl = (e, t, n) => !n
|
|
|
3609
3650
|
descriptionText: $l,
|
|
3610
3651
|
close: Dl,
|
|
3611
3652
|
toastIn: Tl
|
|
3612
|
-
}, Xn =
|
|
3653
|
+
}, Xn = je(null);
|
|
3613
3654
|
function Pu() {
|
|
3614
3655
|
const e = He(Xn);
|
|
3615
3656
|
if (!e)
|
|
@@ -3630,7 +3671,7 @@ function Ml({ tone: e }) {
|
|
|
3630
3671
|
] })
|
|
3631
3672
|
] }) });
|
|
3632
3673
|
}
|
|
3633
|
-
function
|
|
3674
|
+
function qu({ children: e }) {
|
|
3634
3675
|
const t = Vr().duration ?? 5e3, [n, r] = I([]), o = R(1), i = R(/* @__PURE__ */ new Map()), a = R(null), c = X((y) => {
|
|
3635
3676
|
r((g) => g.filter((N) => N.id !== y)), i.current.delete(y);
|
|
3636
3677
|
}, []), l = X(
|
|
@@ -3643,7 +3684,7 @@ function Eu({ children: e }) {
|
|
|
3643
3684
|
return;
|
|
3644
3685
|
}
|
|
3645
3686
|
r(
|
|
3646
|
-
(
|
|
3687
|
+
(E) => E.map((D) => D.id === y ? { ...D, leaving: !0 } : D)
|
|
3647
3688
|
), setTimeout(() => c(y), M);
|
|
3648
3689
|
},
|
|
3649
3690
|
[c]
|
|
@@ -3742,15 +3783,15 @@ function Eu({ children: e }) {
|
|
|
3742
3783
|
)
|
|
3743
3784
|
] });
|
|
3744
3785
|
}
|
|
3745
|
-
const Cl = "_tree_13ukh_10 _text_1hv7a_23", Sl = "_row_13ukh_23", Al = "_active_13ukh_42", Ll = "_pathOnly_13ukh_54", Rl = "_chevron_13ukh_58", Pl = "_chevronOpen_13ukh_70",
|
|
3786
|
+
const Cl = "_tree_13ukh_10 _text_1hv7a_23", Sl = "_row_13ukh_23", Al = "_active_13ukh_42", Ll = "_pathOnly_13ukh_54", Rl = "_chevron_13ukh_58", Pl = "_chevronOpen_13ukh_70", ql = "_placeholder_13ukh_76", El = "_emptyDot_13ukh_82", Fl = "_check_13ukh_100", Il = "_content_13ukh_106", Bl = "_noMatches_13ukh_120", Hl = "_scrolls_13ukh_131 _scroll_1hv7a_40", Ol = "_disabled_13ukh_139", Wl = "_loading_13ukh_143", Ae = {
|
|
3746
3787
|
tree: Cl,
|
|
3747
3788
|
row: Sl,
|
|
3748
3789
|
active: Al,
|
|
3749
3790
|
pathOnly: Ll,
|
|
3750
3791
|
chevron: Rl,
|
|
3751
3792
|
chevronOpen: Pl,
|
|
3752
|
-
placeholder:
|
|
3753
|
-
emptyDot:
|
|
3793
|
+
placeholder: ql,
|
|
3794
|
+
emptyDot: El,
|
|
3754
3795
|
check: Fl,
|
|
3755
3796
|
content: Il,
|
|
3756
3797
|
noMatches: Bl,
|
|
@@ -3758,7 +3799,7 @@ const Cl = "_tree_13ukh_10 _text_1hv7a_23", Sl = "_row_13ukh_23", Al = "_active_
|
|
|
3758
3799
|
disabled: Ol,
|
|
3759
3800
|
loading: Wl
|
|
3760
3801
|
}, zl = 600;
|
|
3761
|
-
function
|
|
3802
|
+
function Eu({
|
|
3762
3803
|
tree: e,
|
|
3763
3804
|
ariaLabel: t,
|
|
3764
3805
|
checkable: n = !1,
|
|
@@ -3782,8 +3823,8 @@ function qu({
|
|
|
3782
3823
|
return;
|
|
3783
3824
|
}
|
|
3784
3825
|
}
|
|
3785
|
-
const
|
|
3786
|
-
if (w.current = e.revealCount, !v.current && !
|
|
3826
|
+
const q = e.revealCount !== w.current;
|
|
3827
|
+
if (w.current = e.revealCount, !v.current && !q) return;
|
|
3787
3828
|
const b = _.querySelector(
|
|
3788
3829
|
`[data-key="${CSS.escape(String(e.active))}"]`
|
|
3789
3830
|
);
|
|
@@ -3843,7 +3884,7 @@ function qu({
|
|
|
3843
3884
|
}
|
|
3844
3885
|
_.preventDefault();
|
|
3845
3886
|
}
|
|
3846
|
-
}, M = h === void 0 ? e.flattening : e.flattening.slice(h.from, h.to),
|
|
3887
|
+
}, M = h === void 0 ? e.flattening : e.flattening.slice(h.from, h.to), E = e.active !== null && M.some((_) => _.key === e.active) ? e.active : (D = M[0]) == null ? void 0 : D.key;
|
|
3847
3888
|
return /* @__PURE__ */ k(
|
|
3848
3889
|
"div",
|
|
3849
3890
|
{
|
|
@@ -3865,7 +3906,7 @@ function qu({
|
|
|
3865
3906
|
children: [
|
|
3866
3907
|
h !== void 0 && h.fillerBefore > 0 ? /* @__PURE__ */ s("div", { "aria-hidden": "true", style: { height: h.fillerBefore } }) : null,
|
|
3867
3908
|
M.map((_) => {
|
|
3868
|
-
const
|
|
3909
|
+
const q = _.branch && !_.empty;
|
|
3869
3910
|
return /* @__PURE__ */ k(
|
|
3870
3911
|
"div",
|
|
3871
3912
|
{
|
|
@@ -3875,10 +3916,10 @@ function qu({
|
|
|
3875
3916
|
"aria-level": _.level + 1,
|
|
3876
3917
|
"aria-posinset": _.position,
|
|
3877
3918
|
"aria-setsize": _.siblings,
|
|
3878
|
-
"aria-expanded":
|
|
3919
|
+
"aria-expanded": q ? _.expanded : void 0,
|
|
3879
3920
|
"aria-checked": n ? _.indeterminate ? "mixed" : _.checked : void 0,
|
|
3880
3921
|
"aria-disabled": n && _.disabled ? !0 : void 0,
|
|
3881
|
-
tabIndex: _.key ===
|
|
3922
|
+
tabIndex: _.key === E ? 0 : -1,
|
|
3882
3923
|
className: P(
|
|
3883
3924
|
Ae.row,
|
|
3884
3925
|
_.active && Ae.active,
|
|
@@ -3888,7 +3929,7 @@ function qu({
|
|
|
3888
3929
|
style: { "--tree-level": _.level },
|
|
3889
3930
|
onClick: () => e.activate(_.key),
|
|
3890
3931
|
children: [
|
|
3891
|
-
|
|
3932
|
+
q ? /* @__PURE__ */ s(
|
|
3892
3933
|
"span",
|
|
3893
3934
|
{
|
|
3894
3935
|
"aria-hidden": "true",
|
|
@@ -3950,15 +3991,15 @@ function Fu({
|
|
|
3950
3991
|
}
|
|
3951
3992
|
);
|
|
3952
3993
|
}
|
|
3953
|
-
const
|
|
3954
|
-
function
|
|
3994
|
+
const Gl = { from: 0, to: 0, before: 0, after: 0 };
|
|
3995
|
+
function jl({
|
|
3955
3996
|
count: e,
|
|
3956
3997
|
rowHeight: t,
|
|
3957
3998
|
scrollTop: n,
|
|
3958
3999
|
viewportHeight: r,
|
|
3959
4000
|
overscan: o = 4
|
|
3960
4001
|
}) {
|
|
3961
|
-
if (e <= 0 || t <= 0) return
|
|
4002
|
+
if (e <= 0 || t <= 0) return Gl;
|
|
3962
4003
|
const i = Math.max(0, n), a = Math.floor(i / t), c = Math.ceil(Math.max(0, r) / t) + 1, l = Math.max(0, a - o), d = Math.min(e, a + c + o);
|
|
3963
4004
|
return {
|
|
3964
4005
|
from: l,
|
|
@@ -3977,7 +4018,7 @@ function Ul(e, t) {
|
|
|
3977
4018
|
const m = o.current;
|
|
3978
4019
|
m && a(m.scrollTop);
|
|
3979
4020
|
}, []);
|
|
3980
|
-
|
|
4021
|
+
Ge(() => {
|
|
3981
4022
|
const m = o.current;
|
|
3982
4023
|
if (!m) return;
|
|
3983
4024
|
const v = () => l(m.clientHeight);
|
|
@@ -3992,7 +4033,7 @@ function Ul(e, t) {
|
|
|
3992
4033
|
const w = v.getBoundingClientRect().height;
|
|
3993
4034
|
w > 0 && Math.abs(w - d) > 0.5 && u(w);
|
|
3994
4035
|
}, [e, c, d]);
|
|
3995
|
-
const h =
|
|
4036
|
+
const h = jl({ count: e, rowHeight: d, scrollTop: i, viewportHeight: c, overscan: r }), f = X(
|
|
3996
4037
|
(m) => {
|
|
3997
4038
|
const v = o.current;
|
|
3998
4039
|
if (!v) return;
|
|
@@ -4050,7 +4091,7 @@ function Kl(e, t, n) {
|
|
|
4050
4091
|
const u = d ? c : c.filter((p) => !r || o.survives.has(t.key(p)));
|
|
4051
4092
|
u.forEach((p, h) => {
|
|
4052
4093
|
var D, _;
|
|
4053
|
-
const f = t.key(p), m = t.children(p), v = ((D = t.unloaded) == null ? void 0 : D.call(t, p)) === !0, w = m !== void 0 || v, y = w && !v && (m ?? []).length === 0, g = o.matches.has(f), N = r && !g && o.descendantMatches.has(f), M = r && o.descendantMatches.has(f),
|
|
4094
|
+
const f = t.key(p), m = t.children(p), v = ((D = t.unloaded) == null ? void 0 : D.call(t, p)) === !0, w = m !== void 0 || v, y = w && !v && (m ?? []).length === 0, g = o.matches.has(f), N = r && !g && o.descendantMatches.has(f), M = r && o.descendantMatches.has(f), E = !y && w && (M || n.expanded.has(f));
|
|
4054
4095
|
i.push({
|
|
4055
4096
|
node: p,
|
|
4056
4097
|
key: f,
|
|
@@ -4060,7 +4101,7 @@ function Kl(e, t, n) {
|
|
|
4060
4101
|
empty: y,
|
|
4061
4102
|
disabled: ((_ = t.disabled) == null ? void 0 : _.call(t, p)) === !0,
|
|
4062
4103
|
unloaded: v,
|
|
4063
|
-
expanded:
|
|
4104
|
+
expanded: E,
|
|
4064
4105
|
checked: n.checked.has(f),
|
|
4065
4106
|
indeterminate: o.indeterminate.has(f),
|
|
4066
4107
|
active: n.active === f,
|
|
@@ -4068,7 +4109,7 @@ function Kl(e, t, n) {
|
|
|
4068
4109
|
pathOnly: N,
|
|
4069
4110
|
position: h + 1,
|
|
4070
4111
|
siblings: u.length
|
|
4071
|
-
}),
|
|
4112
|
+
}), E && a(m ?? [], l + 1, d || g);
|
|
4072
4113
|
});
|
|
4073
4114
|
}
|
|
4074
4115
|
return a(e, 0, !1), i;
|
|
@@ -4282,12 +4323,12 @@ function Bu(e, t) {
|
|
|
4282
4323
|
virtual: g
|
|
4283
4324
|
} = t, [N, M] = I(
|
|
4284
4325
|
() => new Set(r ?? [])
|
|
4285
|
-
), [
|
|
4326
|
+
), [E, D] = I(
|
|
4286
4327
|
() => new Set(o ?? [])
|
|
4287
|
-
), [_,
|
|
4328
|
+
), [_, q] = I(i), [b, F] = I(null), [V, Y] = I(""), [L, G] = I(0), T = se(
|
|
4288
4329
|
() => ({
|
|
4289
4330
|
expanded: a ?? N,
|
|
4290
|
-
checked: c ??
|
|
4331
|
+
checked: c ?? E,
|
|
4291
4332
|
active: l !== void 0 ? l : _,
|
|
4292
4333
|
anchor: d !== void 0 ? d : b,
|
|
4293
4334
|
search: u ?? V
|
|
@@ -4296,7 +4337,7 @@ function Bu(e, t) {
|
|
|
4296
4337
|
a,
|
|
4297
4338
|
N,
|
|
4298
4339
|
c,
|
|
4299
|
-
|
|
4340
|
+
E,
|
|
4300
4341
|
l,
|
|
4301
4342
|
_,
|
|
4302
4343
|
d,
|
|
@@ -4310,9 +4351,9 @@ function Bu(e, t) {
|
|
|
4310
4351
|
);
|
|
4311
4352
|
ne(() => {
|
|
4312
4353
|
}, [e, n]);
|
|
4313
|
-
const
|
|
4354
|
+
const j = X(
|
|
4314
4355
|
(S) => {
|
|
4315
|
-
S.expanded !== T.expanded && (a === void 0 && M(S.expanded), p == null || p(S.expanded)), S.checked !== T.checked && (c === void 0 && D(S.checked), h == null || h(S.checked)), S.anchor !== T.anchor && (d === void 0 && F(S.anchor), m == null || m(S.anchor)), S.active !== T.active && (l === void 0 &&
|
|
4356
|
+
S.expanded !== T.expanded && (a === void 0 && M(S.expanded), p == null || p(S.expanded)), S.checked !== T.checked && (c === void 0 && D(S.checked), h == null || h(S.checked)), S.anchor !== T.anchor && (d === void 0 && F(S.anchor), m == null || m(S.anchor)), S.active !== T.active && (l === void 0 && q(S.active), f == null || f(S.active));
|
|
4316
4357
|
},
|
|
4317
4358
|
[
|
|
4318
4359
|
T,
|
|
@@ -4333,50 +4374,50 @@ function Bu(e, t) {
|
|
|
4333
4374
|
const W = Q(S);
|
|
4334
4375
|
if (W === void 0 || !W.branch || W.empty) return;
|
|
4335
4376
|
const x = !W.expanded;
|
|
4336
|
-
|
|
4377
|
+
j(x ? Qn(T, S) : Zn(T, S)), x && W.unloaded && (y == null || y(W.node));
|
|
4337
4378
|
},
|
|
4338
|
-
[Q, T,
|
|
4379
|
+
[Q, T, j, y]
|
|
4339
4380
|
), A = X(
|
|
4340
4381
|
(S) => {
|
|
4341
|
-
|
|
4382
|
+
j(yn(bn(e, n, T, S), S));
|
|
4342
4383
|
},
|
|
4343
|
-
[e, n, T,
|
|
4384
|
+
[e, n, T, j]
|
|
4344
4385
|
), B = X(
|
|
4345
4386
|
(S) => {
|
|
4346
4387
|
const W = T.anchor ?? T.active;
|
|
4347
|
-
W !== null &&
|
|
4388
|
+
W !== null && j(Wt(e, n, T, Xl(U, W, S), !0));
|
|
4348
4389
|
},
|
|
4349
|
-
[e, n, T, U,
|
|
4390
|
+
[e, n, T, U, j]
|
|
4350
4391
|
), z = X(
|
|
4351
4392
|
(S) => {
|
|
4352
4393
|
const W = vn(U, T, S);
|
|
4353
|
-
W.active === null || W.active === T.active ||
|
|
4394
|
+
W.active === null || W.active === T.active || j(
|
|
4354
4395
|
yn(
|
|
4355
4396
|
bn(e, n, W, W.active),
|
|
4356
4397
|
W.active
|
|
4357
4398
|
)
|
|
4358
4399
|
);
|
|
4359
4400
|
},
|
|
4360
|
-
[U, T, e, n,
|
|
4401
|
+
[U, T, e, n, j]
|
|
4361
4402
|
), te = X(
|
|
4362
|
-
() =>
|
|
4363
|
-
[e, n, T,
|
|
4403
|
+
() => j(Ql(e, n, T)),
|
|
4404
|
+
[e, n, T, j]
|
|
4364
4405
|
), xe = X(
|
|
4365
4406
|
(S) => {
|
|
4366
|
-
|
|
4407
|
+
j(ze(T, S));
|
|
4367
4408
|
const W = Q(S);
|
|
4368
4409
|
W !== void 0 && (w == null || w(W.node));
|
|
4369
4410
|
},
|
|
4370
|
-
[T,
|
|
4371
|
-
),
|
|
4372
|
-
(S) =>
|
|
4373
|
-
[U, T,
|
|
4411
|
+
[T, j, Q, w]
|
|
4412
|
+
), qe = X(
|
|
4413
|
+
(S) => j(vn(U, T, S)),
|
|
4414
|
+
[U, T, j]
|
|
4374
4415
|
), oe = X(
|
|
4375
4416
|
(S) => {
|
|
4376
4417
|
const { snapshot: W, reached: x } = ed(e, n, T, S);
|
|
4377
|
-
return x === null ? null : (
|
|
4418
|
+
return x === null ? null : (j(ze(W, x)), G((O) => O + 1), x);
|
|
4378
4419
|
},
|
|
4379
|
-
[e, n, T,
|
|
4420
|
+
[e, n, T, j]
|
|
4380
4421
|
), K = X(
|
|
4381
4422
|
(S) => {
|
|
4382
4423
|
const W = Jl(e, n, S);
|
|
@@ -4384,15 +4425,15 @@ function Bu(e, t) {
|
|
|
4384
4425
|
},
|
|
4385
4426
|
[e, n, oe]
|
|
4386
4427
|
), _e = X(() => {
|
|
4387
|
-
|
|
4388
|
-
}, [e, n, T,
|
|
4389
|
-
|
|
4390
|
-
}, [T,
|
|
4428
|
+
j({ ...T, expanded: new Set(td(e, n)) });
|
|
4429
|
+
}, [e, n, T, j]), ye = X(() => {
|
|
4430
|
+
j({ ...T, expanded: /* @__PURE__ */ new Set() });
|
|
4431
|
+
}, [T, j]), Ne = X(
|
|
4391
4432
|
(S) => {
|
|
4392
4433
|
const W = Zl(U, S, T.active);
|
|
4393
|
-
W !== null &&
|
|
4434
|
+
W !== null && j(ze(T, W));
|
|
4394
4435
|
},
|
|
4395
|
-
[U, T,
|
|
4436
|
+
[U, T, j]
|
|
4396
4437
|
), $ = X(
|
|
4397
4438
|
(S) => {
|
|
4398
4439
|
u === void 0 && Y(S), v == null || v(S);
|
|
@@ -4410,7 +4451,7 @@ function Bu(e, t) {
|
|
|
4410
4451
|
toggleExpanded: me,
|
|
4411
4452
|
toggleCheck: A,
|
|
4412
4453
|
activate: xe,
|
|
4413
|
-
move:
|
|
4454
|
+
move: qe,
|
|
4414
4455
|
setSearch: $,
|
|
4415
4456
|
revealNode: K,
|
|
4416
4457
|
revealPath: oe,
|
|
@@ -4525,20 +4566,20 @@ function dd({ content: e, children: t, delay: n = 300 }) {
|
|
|
4525
4566
|
}, y = () => {
|
|
4526
4567
|
m.current && clearTimeout(m.current), o(!1);
|
|
4527
4568
|
};
|
|
4528
|
-
|
|
4569
|
+
Ge(() => {
|
|
4529
4570
|
r && u(Rn(h.current, p));
|
|
4530
|
-
}, [r, p]),
|
|
4571
|
+
}, [r, p]), Ge(() => {
|
|
4531
4572
|
var D;
|
|
4532
4573
|
if (!r || !d) return;
|
|
4533
4574
|
const N = (D = h.current) == null ? void 0 : D.getBoundingClientRect(), M = f.current;
|
|
4534
4575
|
if (!N || !M) return;
|
|
4535
|
-
const
|
|
4576
|
+
const E = An(
|
|
4536
4577
|
N,
|
|
4537
4578
|
{ width: M.offsetWidth, height: M.offsetHeight },
|
|
4538
4579
|
Ln(),
|
|
4539
4580
|
{ align: "center", side: "top", offset: 8 }
|
|
4540
4581
|
);
|
|
4541
|
-
l(
|
|
4582
|
+
l(E.flipped), a({ top: E.top, left: E.left });
|
|
4542
4583
|
}, [r, d, e]), ne(() => {
|
|
4543
4584
|
if (!r) return;
|
|
4544
4585
|
const N = (M) => {
|
|
@@ -4701,7 +4742,7 @@ function Ld({
|
|
|
4701
4742
|
a !== null && /* @__PURE__ */ s("span", { className: We.age, children: n.relative(a) })
|
|
4702
4743
|
] });
|
|
4703
4744
|
}
|
|
4704
|
-
function
|
|
4745
|
+
function Gu({
|
|
4705
4746
|
label: e,
|
|
4706
4747
|
value: t,
|
|
4707
4748
|
unit: n,
|
|
@@ -4713,8 +4754,8 @@ function ju({
|
|
|
4713
4754
|
className: l,
|
|
4714
4755
|
...d
|
|
4715
4756
|
}) {
|
|
4716
|
-
var
|
|
4717
|
-
const u = Ve(), p = ce(), h = pd(t, o), f = h.verdict, m = Sd(f, p), v = f !== "unknown", y = (((
|
|
4757
|
+
var E;
|
|
4758
|
+
const u = Ve(), p = ce(), h = pd(t, o), f = h.verdict, m = Sd(f, p), v = f !== "unknown", y = (((E = o == null ? void 0 : o.limits) == null ? void 0 : E.length) ?? 0) > 0 || !v, g = Ad(h.deviation, r, u, p), N = v ? u.number(t, r) : p.statAbsentValue, M = `${e}: ${v ? `${N}${n ? ` ${n}` : ""}` : m}${v && y && f !== "ok" ? `, ${m}` : ""}`;
|
|
4718
4759
|
return /* @__PURE__ */ k(
|
|
4719
4760
|
"div",
|
|
4720
4761
|
{
|
|
@@ -4749,7 +4790,7 @@ function Rd(e, t) {
|
|
|
4749
4790
|
function rr(e, t) {
|
|
4750
4791
|
return 2 * t.padding + t.grip + e * (t.gap + t.tool);
|
|
4751
4792
|
}
|
|
4752
|
-
function
|
|
4793
|
+
function Gt(e, t, n, r) {
|
|
4753
4794
|
const o = rr(t, r), i = wt(e), a = (i ? n.height : n.width) - 2 * r.margin, c = (i ? n.width : n.height) - 2 * r.margin;
|
|
4754
4795
|
return o <= a && r.thickness <= c;
|
|
4755
4796
|
}
|
|
@@ -4771,13 +4812,13 @@ function Nn(e, t) {
|
|
|
4771
4812
|
const n = Math.abs(bt.indexOf(e) - bt.indexOf(t));
|
|
4772
4813
|
return Math.min(n, bt.length - n);
|
|
4773
4814
|
}
|
|
4774
|
-
function
|
|
4815
|
+
function qd(e, t, n, r) {
|
|
4775
4816
|
return [...bt].sort(
|
|
4776
4817
|
(o, i) => Nn(e, o) - Nn(e, i) || xn.indexOf(o) - xn.indexOf(i)
|
|
4777
|
-
).find((o) =>
|
|
4818
|
+
).find((o) => Gt(o, t, n, r));
|
|
4778
4819
|
}
|
|
4779
|
-
const
|
|
4780
|
-
root:
|
|
4820
|
+
const Ed = "_root_guuz1_22 _text_1hv7a_23", Fd = "_strip_guuz1_31", Id = "_gripSlot_guuz1_111", Bd = "_grip_guuz1_111 _ring_1hv7a_65", Hd = "_tool_guuz1_157 _ring_1hv7a_65", Od = "_inMode_guuz1_187", Wd = "_refusal_guuz1_199", rt = {
|
|
4821
|
+
root: Ed,
|
|
4781
4822
|
strip: Fd,
|
|
4782
4823
|
gripSlot: Id,
|
|
4783
4824
|
grip: Bd,
|
|
@@ -4785,14 +4826,14 @@ const qd = "_root_guuz1_22 _text_1hv7a_23", Fd = "_strip_guuz1_31", Id = "_gripS
|
|
|
4785
4826
|
inMode: Od,
|
|
4786
4827
|
refusal: Wd
|
|
4787
4828
|
};
|
|
4788
|
-
function
|
|
4829
|
+
function qt(e) {
|
|
4789
4830
|
return Array.from(e.children);
|
|
4790
4831
|
}
|
|
4791
4832
|
function _t(e, t) {
|
|
4792
4833
|
const n = Number.parseFloat(e.getPropertyValue(t));
|
|
4793
4834
|
return Number.isFinite(n) ? n : 0;
|
|
4794
4835
|
}
|
|
4795
|
-
const
|
|
4836
|
+
const ju = ae(function({
|
|
4796
4837
|
tools: t,
|
|
4797
4838
|
place: n,
|
|
4798
4839
|
defaultPlace: r = nr,
|
|
@@ -4806,13 +4847,13 @@ const Gu = ae(function({
|
|
|
4806
4847
|
}, p) {
|
|
4807
4848
|
var Ne;
|
|
4808
4849
|
const h = ce(), f = R(null), m = R(null);
|
|
4809
|
-
|
|
4850
|
+
jt(p, () => f.current, []);
|
|
4810
4851
|
const [v, w] = I(r), y = n !== void 0, g = n ?? v, N = R(g);
|
|
4811
4852
|
N.current = g;
|
|
4812
|
-
const [M,
|
|
4853
|
+
const [M, E] = I(null), [D, _] = I(""), q = R(null);
|
|
4813
4854
|
ne(
|
|
4814
4855
|
() => () => {
|
|
4815
|
-
|
|
4856
|
+
q.current !== null && clearTimeout(q.current);
|
|
4816
4857
|
},
|
|
4817
4858
|
[]
|
|
4818
4859
|
);
|
|
@@ -4820,7 +4861,7 @@ const Gu = ae(function({
|
|
|
4820
4861
|
var de;
|
|
4821
4862
|
const $ = m.current;
|
|
4822
4863
|
if ($ === null) return null;
|
|
4823
|
-
const H =
|
|
4864
|
+
const H = qt($), S = H[0];
|
|
4824
4865
|
if (S === void 0) return null;
|
|
4825
4866
|
const W = $.getBoundingClientRect();
|
|
4826
4867
|
if (W.width === 0 && W.height === 0) return null;
|
|
@@ -4851,33 +4892,33 @@ const Gu = ae(function({
|
|
|
4851
4892
|
place: $,
|
|
4852
4893
|
root: S.getBoundingClientRect(),
|
|
4853
4894
|
strip: H.getBoundingClientRect(),
|
|
4854
|
-
children:
|
|
4895
|
+
children: qt(H).map((W) => W.getBoundingClientRect())
|
|
4855
4896
|
};
|
|
4856
|
-
}, []),
|
|
4857
|
-
|
|
4897
|
+
}, []), G = X(() => {
|
|
4898
|
+
q.current !== null && (clearTimeout(q.current), q.current = null), E(null);
|
|
4858
4899
|
}, []), T = X(
|
|
4859
4900
|
($) => {
|
|
4860
|
-
$ !== N.current && (V.current = L(N.current),
|
|
4901
|
+
$ !== N.current && (V.current = L(N.current), G(), y || w($), N.current = $, o == null || o($), _(h.dockPlaced(h.dockPlace($))));
|
|
4861
4902
|
},
|
|
4862
|
-
[y,
|
|
4903
|
+
[y, G, L, o, h]
|
|
4863
4904
|
), U = X(
|
|
4864
4905
|
($, H, S, W) => {
|
|
4865
4906
|
const x = rr(S, H);
|
|
4866
|
-
|
|
4907
|
+
E({
|
|
4867
4908
|
place: $,
|
|
4868
4909
|
width: `${wt($) ? H.thickness : x}px`,
|
|
4869
4910
|
height: `${wt($) ? x : H.thickness}px`
|
|
4870
|
-
}), _(h.dockNoPlace(h.dockPlace($))),
|
|
4911
|
+
}), _(h.dockNoPlace(h.dockPlace($))), q.current !== null && clearTimeout(q.current);
|
|
4871
4912
|
const O = m.current === null ? null : getComputedStyle(m.current), ee = O === null ? 0 : kt(O, "--u-dock-refusal-duration");
|
|
4872
|
-
|
|
4873
|
-
|
|
4913
|
+
q.current = W && ee > 0 ? setTimeout(() => {
|
|
4914
|
+
q.current = null, E(null);
|
|
4874
4915
|
}, ee) : null;
|
|
4875
4916
|
},
|
|
4876
4917
|
[h]
|
|
4877
|
-
),
|
|
4918
|
+
), j = X(
|
|
4878
4919
|
($, H, S, W) => {
|
|
4879
4920
|
if ($ !== N.current) {
|
|
4880
|
-
if (H !== null && S !== null && !
|
|
4921
|
+
if (H !== null && S !== null && !Gt($, t.length, H, S)) {
|
|
4881
4922
|
U($, S, t.length, W);
|
|
4882
4923
|
return;
|
|
4883
4924
|
}
|
|
@@ -4898,19 +4939,19 @@ const Gu = ae(function({
|
|
|
4898
4939
|
H.setPointerCapture(S), H.dataset.dragging = "";
|
|
4899
4940
|
const W = F(), x = b(), O = _t(getComputedStyle(H), "--u-dock-grip-travel"), ee = N.current;
|
|
4900
4941
|
let ie = $.clientX, le = $.clientY;
|
|
4901
|
-
const ue = (he,
|
|
4942
|
+
const ue = (he, Ee) => {
|
|
4902
4943
|
const Je = (vt) => Math.max(-O, Math.min(O, vt));
|
|
4903
|
-
H.style.transform = `translate(${Je(he - ie)}px, ${Je(
|
|
4944
|
+
H.style.transform = `translate(${Je(he - ie)}px, ${Je(Ee - le)}px)`;
|
|
4904
4945
|
}, de = (he) => {
|
|
4905
4946
|
if (he.pointerId !== S) return;
|
|
4906
|
-
const
|
|
4947
|
+
const Ee = N.current;
|
|
4907
4948
|
if (W !== null) {
|
|
4908
4949
|
const Je = Rd({ x: he.clientX, y: he.clientY }, W);
|
|
4909
|
-
Je === N.current ?
|
|
4950
|
+
Je === N.current ? G() : j(Je, W, x, !1);
|
|
4910
4951
|
}
|
|
4911
|
-
N.current !==
|
|
4952
|
+
N.current !== Ee && (ie = he.clientX, le = he.clientY), ue(he.clientX, he.clientY);
|
|
4912
4953
|
}, fe = () => {
|
|
4913
|
-
Q.current = null, H.removeEventListener("pointermove", de), H.removeEventListener("pointerup", be), H.removeEventListener("pointercancel", be), window.removeEventListener("keydown", ke, !0), H.hasPointerCapture(S) && H.releasePointerCapture(S), delete H.dataset.dragging, H.style.transform = "",
|
|
4954
|
+
Q.current = null, H.removeEventListener("pointermove", de), H.removeEventListener("pointerup", be), H.removeEventListener("pointercancel", be), window.removeEventListener("keydown", ke, !0), H.hasPointerCapture(S) && H.releasePointerCapture(S), delete H.dataset.dragging, H.style.transform = "", G();
|
|
4914
4955
|
}, be = (he) => {
|
|
4915
4956
|
he.pointerId === S && fe();
|
|
4916
4957
|
}, ke = (he) => {
|
|
@@ -4919,11 +4960,11 @@ const Gu = ae(function({
|
|
|
4919
4960
|
H.addEventListener("pointermove", de), H.addEventListener("pointerup", be), H.addEventListener("pointercancel", be), window.addEventListener("keydown", ke, !0), Q.current = fe;
|
|
4920
4961
|
}, A = ($) => {
|
|
4921
4962
|
const H = Pd($.key);
|
|
4922
|
-
H !== void 0 && ($.preventDefault(),
|
|
4963
|
+
H !== void 0 && ($.preventDefault(), j(H, F(), b(), !0));
|
|
4923
4964
|
}, B = t.filter(($) => $.disabled !== !0), [z, te] = I(null), xe = ($) => {
|
|
4924
4965
|
var H;
|
|
4925
4966
|
return Array.from(((H = m.current) == null ? void 0 : H.querySelectorAll("[data-tool]")) ?? []).find((S) => S.dataset.tool === $);
|
|
4926
|
-
},
|
|
4967
|
+
}, qe = z !== null && B.some(($) => $.id === z) ? z : ((Ne = B[0]) == null ? void 0 : Ne.id) ?? null, oe = ($) => {
|
|
4927
4968
|
var le;
|
|
4928
4969
|
const H = $.key === "ArrowRight" || $.key === "ArrowDown", S = $.key === "ArrowLeft" || $.key === "ArrowUp", W = $.key === "Home", x = $.key === "End";
|
|
4929
4970
|
if (!H && !S && !W && !x || B.length === 0) return;
|
|
@@ -4935,7 +4976,7 @@ const Gu = ae(function({
|
|
|
4935
4976
|
}, K = ($) => {
|
|
4936
4977
|
te($.id), c == null || c($.id), i !== void 0 && i !== $.id && (a == null || a($.id));
|
|
4937
4978
|
};
|
|
4938
|
-
|
|
4979
|
+
Ge(() => {
|
|
4939
4980
|
const $ = V.current;
|
|
4940
4981
|
if ($ !== null && $.place === g) return;
|
|
4941
4982
|
_e();
|
|
@@ -4967,14 +5008,14 @@ const Gu = ae(function({
|
|
|
4967
5008
|
marginBottom: "0px"
|
|
4968
5009
|
});
|
|
4969
5010
|
Y.current.push(S.animate([ee($), ee(H)], O));
|
|
4970
|
-
const ie =
|
|
5011
|
+
const ie = qt(S), le = $.strip.left - H.strip.left, ue = $.strip.top - H.strip.top;
|
|
4971
5012
|
ie.forEach((de, fe) => {
|
|
4972
5013
|
const be = $.children[fe], ke = H.children[fe];
|
|
4973
5014
|
if (be === void 0 || ke === void 0) return;
|
|
4974
|
-
const he = be.left - ke.left - le,
|
|
4975
|
-
Math.abs(he) < 0.5 && Math.abs(
|
|
5015
|
+
const he = be.left - ke.left - le, Ee = be.top - ke.top - ue;
|
|
5016
|
+
Math.abs(he) < 0.5 && Math.abs(Ee) < 0.5 || Y.current.push(
|
|
4976
5017
|
de.animate(
|
|
4977
|
-
[{ transform: `translate(${he}px, ${
|
|
5018
|
+
[{ transform: `translate(${he}px, ${Ee}px)` }, { transform: "none" }],
|
|
4978
5019
|
O
|
|
4979
5020
|
)
|
|
4980
5021
|
);
|
|
@@ -4985,8 +5026,8 @@ const Gu = ae(function({
|
|
|
4985
5026
|
if ($ === null || typeof ResizeObserver > "u") return;
|
|
4986
5027
|
const H = new ResizeObserver(() => {
|
|
4987
5028
|
const S = F(), W = b();
|
|
4988
|
-
if (S === null || W === null ||
|
|
4989
|
-
const x =
|
|
5029
|
+
if (S === null || W === null || Gt(N.current, t.length, S, W)) return;
|
|
5030
|
+
const x = qd(N.current, t.length, S, W);
|
|
4990
5031
|
x !== void 0 && T(x);
|
|
4991
5032
|
});
|
|
4992
5033
|
return H.observe($), () => H.disconnect();
|
|
@@ -5022,7 +5063,7 @@ const Gu = ae(function({
|
|
|
5022
5063
|
"aria-label": $.label,
|
|
5023
5064
|
"aria-pressed": H ? !0 : void 0,
|
|
5024
5065
|
disabled: $.disabled,
|
|
5025
|
-
tabIndex: $.id ===
|
|
5066
|
+
tabIndex: $.id === qe ? 0 : -1,
|
|
5026
5067
|
onClick: () => K($),
|
|
5027
5068
|
onKeyDown: oe,
|
|
5028
5069
|
onFocus: () => te($.id),
|
|
@@ -5048,7 +5089,7 @@ const Gu = ae(function({
|
|
|
5048
5089
|
});
|
|
5049
5090
|
function Vu({ open: e, onOpenChange: t, position: n, ariaLabel: r, children: o }) {
|
|
5050
5091
|
const i = R(null), a = R(null);
|
|
5051
|
-
|
|
5092
|
+
Ge(() => {
|
|
5052
5093
|
if (!e) return;
|
|
5053
5094
|
const u = document.activeElement;
|
|
5054
5095
|
a.current = u instanceof HTMLElement && u !== document.body ? u : null;
|
|
@@ -5109,7 +5150,7 @@ export {
|
|
|
5109
5150
|
ku as ConfirmDialog,
|
|
5110
5151
|
Vu as ContextMenu,
|
|
5111
5152
|
Tt as CrossGlyph,
|
|
5112
|
-
|
|
5153
|
+
Et as DEFAULT_FORMATS,
|
|
5113
5154
|
Tn as DEFAULT_LANGUAGE,
|
|
5114
5155
|
fu as DEFAULT_PRESETS,
|
|
5115
5156
|
Dn as DEFAULT_SEPARATORS,
|
|
@@ -5119,7 +5160,7 @@ export {
|
|
|
5119
5160
|
hu as DateTimePicker,
|
|
5120
5161
|
mu as DateTimeRangePicker,
|
|
5121
5162
|
_u as Divider,
|
|
5122
|
-
|
|
5163
|
+
ju as Dock,
|
|
5123
5164
|
gu as EmptyState,
|
|
5124
5165
|
Kd as FormField,
|
|
5125
5166
|
Hr as FormFieldBoundary,
|
|
@@ -5151,7 +5192,7 @@ export {
|
|
|
5151
5192
|
Sn as Spinner,
|
|
5152
5193
|
tu as SplitButton,
|
|
5153
5194
|
vu as Stack,
|
|
5154
|
-
|
|
5195
|
+
Gu as Stat,
|
|
5155
5196
|
Au as Tab,
|
|
5156
5197
|
Su as TabList,
|
|
5157
5198
|
Lu as TabPanel,
|
|
@@ -5160,10 +5201,10 @@ export {
|
|
|
5160
5201
|
Tu as TagGroup,
|
|
5161
5202
|
Hu as Text,
|
|
5162
5203
|
Ru as Textarea,
|
|
5163
|
-
|
|
5204
|
+
qu as ToastProvider,
|
|
5164
5205
|
dd as Tooltip,
|
|
5165
5206
|
Fu as TreeSearch,
|
|
5166
|
-
|
|
5207
|
+
Eu as TreeView,
|
|
5167
5208
|
Zd as UmrissProvider,
|
|
5168
5209
|
Fn as VisuallyHidden,
|
|
5169
5210
|
tr as age,
|
|
@@ -5206,5 +5247,5 @@ export {
|
|
|
5206
5247
|
Ul as useVirtual,
|
|
5207
5248
|
ce as useWording,
|
|
5208
5249
|
zu as verdictWeight,
|
|
5209
|
-
|
|
5250
|
+
jl as visibleWindow
|
|
5210
5251
|
};
|