@mdspl/mds-shared-ui 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +563 -562
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import ie, { useLayoutEffect as
|
|
2
|
-
import { Menu as $e, Checkbox as Re, IconButton as Oe, Portal as Ue, Table as le, HStack as he, Select as ee, Pagination as zt, createListCollection as
|
|
3
|
-
import { unstable_batchedUpdates as jt, createPortal as
|
|
1
|
+
import ie, { useLayoutEffect as Co, useEffect as F, useRef as X, useMemo as G, useCallback as Q, useState as K, createContext as tt, memo as jo, useReducer as Ro, useContext as We, forwardRef as Dn, createElement as vn } from "react";
|
|
2
|
+
import { Menu as $e, Checkbox as Re, IconButton as Oe, Portal as Ue, Table as le, HStack as he, Select as ee, Pagination as zt, createListCollection as Er, Box as Ce, Text as q, ButtonGroup as Eo, Skeleton as _o, Spinner as _r, Combobox as Te, useListCollection as Oo, Span as To, Popover as Ut, InputGroup as Or, InputElement as Wn, PopoverArrow as Mo, VStack as Le, Kbd as Bn, Input as Cn, Field as Ge, Slider as xt, Drawer as Ie, Tabs as Gt, Button as Be, CloseButton as jn, Dialog as re, Stack as Pt, Flex as Tr, DialogBackdrop as $o, DialogHeader as Io, DialogCloseTrigger as Ao, DialogBody as ko, DialogFooter as Lo } from "@chakra-ui/react";
|
|
3
|
+
import { unstable_batchedUpdates as jt, createPortal as No } from "react-dom";
|
|
4
4
|
function Xt(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
7
|
var Rt = { exports: {} }, lt = {};
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
11
|
-
|
|
8
|
+
var Un;
|
|
9
|
+
function zo() {
|
|
10
|
+
if (Un) return lt;
|
|
11
|
+
Un = 1;
|
|
12
12
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
13
13
|
function n(r, o, s) {
|
|
14
14
|
var c = null;
|
|
@@ -28,9 +28,9 @@ function Lo() {
|
|
|
28
28
|
return lt.Fragment = t, lt.jsx = n, lt.jsxs = n, lt;
|
|
29
29
|
}
|
|
30
30
|
var ut = {};
|
|
31
|
-
var
|
|
32
|
-
function
|
|
33
|
-
return
|
|
31
|
+
var Gn;
|
|
32
|
+
function Po() {
|
|
33
|
+
return Gn || (Gn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
34
34
|
function e(p) {
|
|
35
35
|
if (p == null) return null;
|
|
36
36
|
if (typeof p == "function")
|
|
@@ -259,12 +259,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
};
|
|
260
260
|
})()), ut;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
263
|
-
function
|
|
264
|
-
return
|
|
262
|
+
var Xn;
|
|
263
|
+
function Yo() {
|
|
264
|
+
return Xn || (Xn = 1, process.env.NODE_ENV === "production" ? Rt.exports = zo() : Rt.exports = Po()), Rt.exports;
|
|
265
265
|
}
|
|
266
|
-
var i =
|
|
267
|
-
function
|
|
266
|
+
var i = Yo();
|
|
267
|
+
function Fo() {
|
|
268
268
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
269
269
|
t[n] = arguments[n];
|
|
270
270
|
return G(
|
|
@@ -303,7 +303,7 @@ function Mr(e) {
|
|
|
303
303
|
function rt(e) {
|
|
304
304
|
return e ? nt(e) ? e.document : Rn(e) ? En(e) ? e : bt(e) || Mr(e) ? e.ownerDocument : document : document : document;
|
|
305
305
|
}
|
|
306
|
-
const Me = qt ?
|
|
306
|
+
const Me = qt ? Co : F;
|
|
307
307
|
function _n(e) {
|
|
308
308
|
const t = X(e);
|
|
309
309
|
return Me(() => {
|
|
@@ -314,7 +314,7 @@ function _n(e) {
|
|
|
314
314
|
return t.current == null ? void 0 : t.current(...r);
|
|
315
315
|
}, []);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Vo() {
|
|
318
318
|
const e = X(null), t = Q((r, o) => {
|
|
319
319
|
e.current = setInterval(r, o);
|
|
320
320
|
}, []), n = Q(() => {
|
|
@@ -382,7 +382,7 @@ function $r(e) {
|
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
const Qe = /* @__PURE__ */ $r(1), Ft = /* @__PURE__ */ $r(-1);
|
|
385
|
-
function
|
|
385
|
+
function Ho(e) {
|
|
386
386
|
return "clientX" in e && "clientY" in e;
|
|
387
387
|
}
|
|
388
388
|
function On(e) {
|
|
@@ -393,7 +393,7 @@ function On(e) {
|
|
|
393
393
|
} = pe(e.target);
|
|
394
394
|
return t && e instanceof t;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Wo(e) {
|
|
397
397
|
if (!e)
|
|
398
398
|
return !1;
|
|
399
399
|
const {
|
|
@@ -402,7 +402,7 @@ function Vo(e) {
|
|
|
402
402
|
return t && e instanceof t;
|
|
403
403
|
}
|
|
404
404
|
function xn(e) {
|
|
405
|
-
if (
|
|
405
|
+
if (Wo(e)) {
|
|
406
406
|
if (e.touches && e.touches.length) {
|
|
407
407
|
const {
|
|
408
408
|
clientX: t,
|
|
@@ -423,7 +423,7 @@ function xn(e) {
|
|
|
423
423
|
};
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
return
|
|
426
|
+
return Ho(e) ? {
|
|
427
427
|
x: e.clientX,
|
|
428
428
|
y: e.clientY
|
|
429
429
|
} : null;
|
|
@@ -467,24 +467,24 @@ const et = /* @__PURE__ */ Object.freeze({
|
|
|
467
467
|
return t + " " + n + "ms " + r;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
}),
|
|
471
|
-
function
|
|
472
|
-
return e.matches(
|
|
470
|
+
}), qn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
471
|
+
function Bo(e) {
|
|
472
|
+
return e.matches(qn) ? e : e.querySelector(qn);
|
|
473
473
|
}
|
|
474
|
-
const
|
|
474
|
+
const Uo = {
|
|
475
475
|
display: "none"
|
|
476
476
|
};
|
|
477
|
-
function
|
|
477
|
+
function Go(e) {
|
|
478
478
|
let {
|
|
479
479
|
id: t,
|
|
480
480
|
value: n
|
|
481
481
|
} = e;
|
|
482
482
|
return ie.createElement("div", {
|
|
483
483
|
id: t,
|
|
484
|
-
style:
|
|
484
|
+
style: Uo
|
|
485
485
|
}, n);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Xo(e) {
|
|
488
488
|
let {
|
|
489
489
|
id: t,
|
|
490
490
|
announcement: n,
|
|
@@ -512,7 +512,7 @@ function Uo(e) {
|
|
|
512
512
|
"aria-atomic": !0
|
|
513
513
|
}, n);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function qo() {
|
|
516
516
|
const [e, t] = K("");
|
|
517
517
|
return {
|
|
518
518
|
announce: Q((r) => {
|
|
@@ -522,7 +522,7 @@ function Go() {
|
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
const Ir = /* @__PURE__ */ tt(null);
|
|
525
|
-
function
|
|
525
|
+
function Ko(e) {
|
|
526
526
|
const t = We(Ir);
|
|
527
527
|
F(() => {
|
|
528
528
|
if (!t)
|
|
@@ -530,7 +530,7 @@ function Xo(e) {
|
|
|
530
530
|
return t(e);
|
|
531
531
|
}, [e, t]);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Jo() {
|
|
534
534
|
const [e] = K(() => /* @__PURE__ */ new Set()), t = Q((r) => (e.add(r), () => e.delete(r)), [e]);
|
|
535
535
|
return [Q((r) => {
|
|
536
536
|
let {
|
|
@@ -543,13 +543,13 @@ function qo() {
|
|
|
543
543
|
});
|
|
544
544
|
}, [e]), t];
|
|
545
545
|
}
|
|
546
|
-
const
|
|
546
|
+
const Zo = {
|
|
547
547
|
draggable: `
|
|
548
548
|
To pick up a draggable item, press the space bar.
|
|
549
549
|
While dragging, use the arrow keys to move the item.
|
|
550
550
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
551
551
|
`
|
|
552
|
-
},
|
|
552
|
+
}, Qo = {
|
|
553
553
|
onDragStart(e) {
|
|
554
554
|
let {
|
|
555
555
|
active: t
|
|
@@ -577,20 +577,20 @@ const Ko = {
|
|
|
577
577
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
|
-
function
|
|
580
|
+
function es(e) {
|
|
581
581
|
let {
|
|
582
|
-
announcements: t =
|
|
582
|
+
announcements: t = Qo,
|
|
583
583
|
container: n,
|
|
584
584
|
hiddenTextDescribedById: r,
|
|
585
|
-
screenReaderInstructions: o =
|
|
585
|
+
screenReaderInstructions: o = Zo
|
|
586
586
|
} = e;
|
|
587
587
|
const {
|
|
588
588
|
announce: s,
|
|
589
589
|
announcement: c
|
|
590
|
-
} =
|
|
590
|
+
} = qo(), a = wt("DndLiveRegion"), [l, u] = K(!1);
|
|
591
591
|
if (F(() => {
|
|
592
592
|
u(!0);
|
|
593
|
-
}, []),
|
|
593
|
+
}, []), Ko(G(() => ({
|
|
594
594
|
onDragStart(d) {
|
|
595
595
|
let {
|
|
596
596
|
active: m
|
|
@@ -641,14 +641,14 @@ function Zo(e) {
|
|
|
641
641
|
}
|
|
642
642
|
}), [s, t])), !l)
|
|
643
643
|
return null;
|
|
644
|
-
const f = ie.createElement(ie.Fragment, null, ie.createElement(
|
|
644
|
+
const f = ie.createElement(ie.Fragment, null, ie.createElement(Go, {
|
|
645
645
|
id: r,
|
|
646
646
|
value: o.draggable
|
|
647
|
-
}), ie.createElement(
|
|
647
|
+
}), ie.createElement(Xo, {
|
|
648
648
|
id: a,
|
|
649
649
|
announcement: c
|
|
650
650
|
}));
|
|
651
|
-
return n ?
|
|
651
|
+
return n ? No(f, n) : f;
|
|
652
652
|
}
|
|
653
653
|
var se;
|
|
654
654
|
(function(e) {
|
|
@@ -656,7 +656,7 @@ var se;
|
|
|
656
656
|
})(se || (se = {}));
|
|
657
657
|
function Vt() {
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function ts(e, t) {
|
|
660
660
|
return G(
|
|
661
661
|
() => ({
|
|
662
662
|
sensor: e,
|
|
@@ -666,7 +666,7 @@ function Qo(e, t) {
|
|
|
666
666
|
[e, t]
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function ns() {
|
|
670
670
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
671
671
|
t[n] = arguments[n];
|
|
672
672
|
return G(
|
|
@@ -679,10 +679,10 @@ const je = /* @__PURE__ */ Object.freeze({
|
|
|
679
679
|
x: 0,
|
|
680
680
|
y: 0
|
|
681
681
|
});
|
|
682
|
-
function
|
|
682
|
+
function rs(e, t) {
|
|
683
683
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function os(e, t) {
|
|
686
686
|
let {
|
|
687
687
|
data: {
|
|
688
688
|
value: n
|
|
@@ -694,7 +694,7 @@ function ns(e, t) {
|
|
|
694
694
|
} = t;
|
|
695
695
|
return n - r;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function ss(e, t) {
|
|
698
698
|
let {
|
|
699
699
|
data: {
|
|
700
700
|
value: n
|
|
@@ -706,13 +706,13 @@ function rs(e, t) {
|
|
|
706
706
|
} = t;
|
|
707
707
|
return r - n;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function is(e, t) {
|
|
710
710
|
if (!e || e.length === 0)
|
|
711
711
|
return null;
|
|
712
712
|
const [n] = e;
|
|
713
713
|
return n[t];
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Kn(e, t, n) {
|
|
716
716
|
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
|
|
717
717
|
x: t + e.width * 0.5,
|
|
718
718
|
y: n + e.height * 0.5
|
|
@@ -724,13 +724,13 @@ const Ar = (e) => {
|
|
|
724
724
|
droppableRects: n,
|
|
725
725
|
droppableContainers: r
|
|
726
726
|
} = e;
|
|
727
|
-
const o =
|
|
727
|
+
const o = Kn(t, t.left, t.top), s = [];
|
|
728
728
|
for (const c of r) {
|
|
729
729
|
const {
|
|
730
730
|
id: a
|
|
731
731
|
} = c, l = n.get(a);
|
|
732
732
|
if (l) {
|
|
733
|
-
const u =
|
|
733
|
+
const u = rs(Kn(l), o);
|
|
734
734
|
s.push({
|
|
735
735
|
id: a,
|
|
736
736
|
data: {
|
|
@@ -740,9 +740,9 @@ const Ar = (e) => {
|
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
return s.sort(
|
|
743
|
+
return s.sort(os);
|
|
744
744
|
};
|
|
745
|
-
function
|
|
745
|
+
function as(e, t) {
|
|
746
746
|
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), c = o - r, a = s - n;
|
|
747
747
|
if (r < o && n < s) {
|
|
748
748
|
const l = t.width * t.height, u = e.width * e.height, f = c * a, d = f / (l + u - f);
|
|
@@ -750,7 +750,7 @@ function ss(e, t) {
|
|
|
750
750
|
}
|
|
751
751
|
return 0;
|
|
752
752
|
}
|
|
753
|
-
const
|
|
753
|
+
const cs = (e) => {
|
|
754
754
|
let {
|
|
755
755
|
collisionRect: t,
|
|
756
756
|
droppableRects: n,
|
|
@@ -762,7 +762,7 @@ const is = (e) => {
|
|
|
762
762
|
id: c
|
|
763
763
|
} = s, a = n.get(c);
|
|
764
764
|
if (a) {
|
|
765
|
-
const l =
|
|
765
|
+
const l = as(a, t);
|
|
766
766
|
l > 0 && o.push({
|
|
767
767
|
id: c,
|
|
768
768
|
data: {
|
|
@@ -772,9 +772,9 @@ const is = (e) => {
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
return o.sort(
|
|
775
|
+
return o.sort(ss);
|
|
776
776
|
};
|
|
777
|
-
function
|
|
777
|
+
function ls(e, t, n) {
|
|
778
778
|
return {
|
|
779
779
|
...e,
|
|
780
780
|
scaleX: t && n ? t.width / n.width : 1,
|
|
@@ -787,7 +787,7 @@ function kr(e, t) {
|
|
|
787
787
|
y: e.top - t.top
|
|
788
788
|
} : je;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function us(e) {
|
|
791
791
|
return function(n) {
|
|
792
792
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
793
793
|
o[s - 1] = arguments[s];
|
|
@@ -802,8 +802,8 @@ function cs(e) {
|
|
|
802
802
|
});
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
|
-
const
|
|
806
|
-
function
|
|
805
|
+
const ds = /* @__PURE__ */ us(1);
|
|
806
|
+
function fs(e) {
|
|
807
807
|
if (e.startsWith("matrix3d(")) {
|
|
808
808
|
const t = e.slice(9, -1).split(/, /);
|
|
809
809
|
return {
|
|
@@ -823,8 +823,8 @@ function us(e) {
|
|
|
823
823
|
}
|
|
824
824
|
return null;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
const r =
|
|
826
|
+
function hs(e, t, n) {
|
|
827
|
+
const r = fs(t);
|
|
828
828
|
if (!r)
|
|
829
829
|
return e;
|
|
830
830
|
const {
|
|
@@ -842,18 +842,18 @@ function ds(e, t, n) {
|
|
|
842
842
|
left: l
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
const
|
|
845
|
+
const gs = {
|
|
846
846
|
ignoreTransform: !1
|
|
847
847
|
};
|
|
848
848
|
function ot(e, t) {
|
|
849
|
-
t === void 0 && (t =
|
|
849
|
+
t === void 0 && (t = gs);
|
|
850
850
|
let n = e.getBoundingClientRect();
|
|
851
851
|
if (t.ignoreTransform) {
|
|
852
852
|
const {
|
|
853
853
|
transform: u,
|
|
854
854
|
transformOrigin: f
|
|
855
855
|
} = pe(e).getComputedStyle(e);
|
|
856
|
-
u && (n =
|
|
856
|
+
u && (n = hs(n, u, f));
|
|
857
857
|
}
|
|
858
858
|
const {
|
|
859
859
|
top: r,
|
|
@@ -872,12 +872,12 @@ function ot(e, t) {
|
|
|
872
872
|
right: l
|
|
873
873
|
};
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function Jn(e) {
|
|
876
876
|
return ot(e, {
|
|
877
877
|
ignoreTransform: !0
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function ps(e) {
|
|
881
881
|
const t = e.innerWidth, n = e.innerHeight;
|
|
882
882
|
return {
|
|
883
883
|
top: 0,
|
|
@@ -888,10 +888,10 @@ function hs(e) {
|
|
|
888
888
|
height: n
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function vs(e, t) {
|
|
892
892
|
return t === void 0 && (t = pe(e).getComputedStyle(e)), t.position === "fixed";
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function ms(e, t) {
|
|
895
895
|
t === void 0 && (t = pe(e).getComputedStyle(e));
|
|
896
896
|
const n = /(auto|scroll|overlay)/;
|
|
897
897
|
return ["overflow", "overflowX", "overflowY"].some((o) => {
|
|
@@ -909,7 +909,7 @@ function Tn(e, t) {
|
|
|
909
909
|
if (!bt(o) || Mr(o) || n.includes(o))
|
|
910
910
|
return n;
|
|
911
911
|
const s = pe(e).getComputedStyle(o);
|
|
912
|
-
return o !== e &&
|
|
912
|
+
return o !== e && ms(o, s) && n.push(o), vs(o, s) ? n : r(o.parentNode);
|
|
913
913
|
}
|
|
914
914
|
return e ? r(e) : n;
|
|
915
915
|
}
|
|
@@ -962,18 +962,18 @@ function Yr(e) {
|
|
|
962
962
|
minScroll: t
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
const
|
|
965
|
+
const xs = {
|
|
966
966
|
x: 0.2,
|
|
967
967
|
y: 0.2
|
|
968
968
|
};
|
|
969
|
-
function
|
|
969
|
+
function bs(e, t, n, r, o) {
|
|
970
970
|
let {
|
|
971
971
|
top: s,
|
|
972
972
|
left: c,
|
|
973
973
|
right: a,
|
|
974
974
|
bottom: l
|
|
975
975
|
} = n;
|
|
976
|
-
r === void 0 && (r = 10), o === void 0 && (o =
|
|
976
|
+
r === void 0 && (r = 10), o === void 0 && (o = xs);
|
|
977
977
|
const {
|
|
978
978
|
isTop: u,
|
|
979
979
|
isBottom: f,
|
|
@@ -994,7 +994,7 @@ function ms(e, t, n, r, o) {
|
|
|
994
994
|
speed: v
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function ys(e) {
|
|
998
998
|
if (e === document.scrollingElement) {
|
|
999
999
|
const {
|
|
1000
1000
|
innerWidth: s,
|
|
@@ -1027,13 +1027,13 @@ function xs(e) {
|
|
|
1027
1027
|
function Fr(e) {
|
|
1028
1028
|
return e.reduce((t, n) => Qe(t, bn(n)), je);
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function ws(e) {
|
|
1031
1031
|
return e.reduce((t, n) => t + Nr(n), 0);
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Ss(e) {
|
|
1034
1034
|
return e.reduce((t, n) => t + zr(n), 0);
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Ds(e, t) {
|
|
1037
1037
|
if (t === void 0 && (t = ot), !e)
|
|
1038
1038
|
return;
|
|
1039
1039
|
const {
|
|
@@ -1047,7 +1047,7 @@ function ws(e, t) {
|
|
|
1047
1047
|
inline: "center"
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1050
|
+
const Cs = [["x", ["left", "right"], ws], ["y", ["top", "bottom"], Ss]];
|
|
1051
1051
|
class Mn {
|
|
1052
1052
|
constructor(t, n) {
|
|
1053
1053
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
@@ -1055,7 +1055,7 @@ class Mn {
|
|
|
1055
1055
|
this.rect = {
|
|
1056
1056
|
...t
|
|
1057
1057
|
}, this.width = t.width, this.height = t.height;
|
|
1058
|
-
for (const [s, c, a] of
|
|
1058
|
+
for (const [s, c, a] of Cs)
|
|
1059
1059
|
for (const l of c)
|
|
1060
1060
|
Object.defineProperty(this, l, {
|
|
1061
1061
|
get: () => {
|
|
@@ -1083,7 +1083,7 @@ class ht {
|
|
|
1083
1083
|
(o = this.target) == null || o.addEventListener(t, n, r), this.listeners.push([t, n, r]);
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function js(e) {
|
|
1087
1087
|
const {
|
|
1088
1088
|
EventTarget: t
|
|
1089
1089
|
} = pe(e);
|
|
@@ -1097,10 +1097,10 @@ var we;
|
|
|
1097
1097
|
(function(e) {
|
|
1098
1098
|
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
1099
1099
|
})(we || (we = {}));
|
|
1100
|
-
function
|
|
1100
|
+
function Zn(e) {
|
|
1101
1101
|
e.preventDefault();
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function Rs(e) {
|
|
1104
1104
|
e.stopPropagation();
|
|
1105
1105
|
}
|
|
1106
1106
|
var W;
|
|
@@ -1111,7 +1111,7 @@ const Vr = {
|
|
|
1111
1111
|
start: [W.Space, W.Enter],
|
|
1112
1112
|
cancel: [W.Esc],
|
|
1113
1113
|
end: [W.Space, W.Enter, W.Tab]
|
|
1114
|
-
},
|
|
1114
|
+
}, Es = (e, t) => {
|
|
1115
1115
|
let {
|
|
1116
1116
|
currentCoordinates: n
|
|
1117
1117
|
} = t;
|
|
@@ -1156,7 +1156,7 @@ class Hr {
|
|
|
1156
1156
|
activeNode: t,
|
|
1157
1157
|
onStart: n
|
|
1158
1158
|
} = this.props, r = t.node.current;
|
|
1159
|
-
r &&
|
|
1159
|
+
r && Ds(r), n(je);
|
|
1160
1160
|
}
|
|
1161
1161
|
handleKeyDown(t) {
|
|
1162
1162
|
if (On(t)) {
|
|
@@ -1166,7 +1166,7 @@ class Hr {
|
|
|
1166
1166
|
options: o
|
|
1167
1167
|
} = this.props, {
|
|
1168
1168
|
keyboardCodes: s = Vr,
|
|
1169
|
-
coordinateGetter: c =
|
|
1169
|
+
coordinateGetter: c = Es,
|
|
1170
1170
|
scrollBehavior: a = "smooth"
|
|
1171
1171
|
} = o, {
|
|
1172
1172
|
code: l
|
|
@@ -1206,7 +1206,7 @@ class Hr {
|
|
|
1206
1206
|
isBottom: $,
|
|
1207
1207
|
maxScroll: T,
|
|
1208
1208
|
minScroll: E
|
|
1209
|
-
} = Yr(g), I =
|
|
1209
|
+
} = Yr(g), I = ys(g), A = {
|
|
1210
1210
|
x: Math.min(x === W.Right ? I.right - I.width / 2 : I.right, Math.max(x === W.Right ? I.left : I.left + I.width / 2, d.x)),
|
|
1211
1211
|
y: Math.min(x === W.Down ? I.bottom - I.height / 2 : I.bottom, Math.max(x === W.Down ? I.top : I.top + I.height / 2, d.y))
|
|
1212
1212
|
}, V = x === W.Right && !j || x === W.Left && !R, P = x === W.Down && !$ || x === W.Up && !y;
|
|
@@ -1287,16 +1287,16 @@ Hr.activators = [{
|
|
|
1287
1287
|
return !1;
|
|
1288
1288
|
}
|
|
1289
1289
|
}];
|
|
1290
|
-
function
|
|
1290
|
+
function Qn(e) {
|
|
1291
1291
|
return !!(e && "distance" in e);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function er(e) {
|
|
1294
1294
|
return !!(e && "delay" in e);
|
|
1295
1295
|
}
|
|
1296
1296
|
class $n {
|
|
1297
1297
|
constructor(t, n, r) {
|
|
1298
1298
|
var o;
|
|
1299
|
-
r === void 0 && (r =
|
|
1299
|
+
r === void 0 && (r = js(t.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = t, this.events = n;
|
|
1300
1300
|
const {
|
|
1301
1301
|
event: s
|
|
1302
1302
|
} = t, {
|
|
@@ -1316,18 +1316,18 @@ class $n {
|
|
|
1316
1316
|
} = this;
|
|
1317
1317
|
if (this.listeners.add(t.move.name, this.handleMove, {
|
|
1318
1318
|
passive: !1
|
|
1319
|
-
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(we.Resize, this.handleCancel), this.windowListeners.add(we.DragStart,
|
|
1319
|
+
}), this.listeners.add(t.end.name, this.handleEnd), t.cancel && this.listeners.add(t.cancel.name, this.handleCancel), this.windowListeners.add(we.Resize, this.handleCancel), this.windowListeners.add(we.DragStart, Zn), this.windowListeners.add(we.VisibilityChange, this.handleCancel), this.windowListeners.add(we.ContextMenu, Zn), this.documentListeners.add(we.Keydown, this.handleKeydown), n) {
|
|
1320
1320
|
if (r != null && r({
|
|
1321
1321
|
event: this.props.event,
|
|
1322
1322
|
activeNode: this.props.activeNode,
|
|
1323
1323
|
options: this.props.options
|
|
1324
1324
|
}))
|
|
1325
1325
|
return this.handleStart();
|
|
1326
|
-
if (
|
|
1326
|
+
if (er(n)) {
|
|
1327
1327
|
this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
|
|
1328
1328
|
return;
|
|
1329
1329
|
}
|
|
1330
|
-
if (
|
|
1330
|
+
if (Qn(n)) {
|
|
1331
1331
|
this.handlePending(n);
|
|
1332
1332
|
return;
|
|
1333
1333
|
}
|
|
@@ -1350,7 +1350,7 @@ class $n {
|
|
|
1350
1350
|
} = this, {
|
|
1351
1351
|
onStart: n
|
|
1352
1352
|
} = this.props;
|
|
1353
|
-
t && (this.activated = !0, this.documentListeners.add(we.Click,
|
|
1353
|
+
t && (this.activated = !0, this.documentListeners.add(we.Click, Rs, {
|
|
1354
1354
|
capture: !0
|
|
1355
1355
|
}), this.removeTextSelection(), this.documentListeners.add(we.SelectionChange, this.removeTextSelection), n(t));
|
|
1356
1356
|
}
|
|
@@ -1370,13 +1370,13 @@ class $n {
|
|
|
1370
1370
|
return;
|
|
1371
1371
|
const l = (n = xn(t)) != null ? n : je, u = Ft(o, l);
|
|
1372
1372
|
if (!r && a) {
|
|
1373
|
-
if (
|
|
1373
|
+
if (Qn(a)) {
|
|
1374
1374
|
if (a.tolerance != null && an(u, a.tolerance))
|
|
1375
1375
|
return this.handleCancel();
|
|
1376
1376
|
if (an(u, a.distance))
|
|
1377
1377
|
return this.handleStart();
|
|
1378
1378
|
}
|
|
1379
|
-
if (
|
|
1379
|
+
if (er(a) && an(u, a.tolerance))
|
|
1380
1380
|
return this.handleCancel();
|
|
1381
1381
|
this.handlePending(a, u);
|
|
1382
1382
|
return;
|
|
@@ -1405,7 +1405,7 @@ class $n {
|
|
|
1405
1405
|
(t = this.document.getSelection()) == null || t.removeAllRanges();
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
const
|
|
1408
|
+
const _s = {
|
|
1409
1409
|
cancel: {
|
|
1410
1410
|
name: "pointercancel"
|
|
1411
1411
|
},
|
|
@@ -1421,7 +1421,7 @@ class In extends $n {
|
|
|
1421
1421
|
const {
|
|
1422
1422
|
event: n
|
|
1423
1423
|
} = t, r = rt(n.target);
|
|
1424
|
-
super(t,
|
|
1424
|
+
super(t, _s, r);
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
In.activators = [{
|
|
@@ -1437,7 +1437,7 @@ In.activators = [{
|
|
|
1437
1437
|
}), !0);
|
|
1438
1438
|
}
|
|
1439
1439
|
}];
|
|
1440
|
-
const
|
|
1440
|
+
const Os = {
|
|
1441
1441
|
move: {
|
|
1442
1442
|
name: "mousemove"
|
|
1443
1443
|
},
|
|
@@ -1449,12 +1449,12 @@ var yn;
|
|
|
1449
1449
|
(function(e) {
|
|
1450
1450
|
e[e.RightClick = 2] = "RightClick";
|
|
1451
1451
|
})(yn || (yn = {}));
|
|
1452
|
-
class
|
|
1452
|
+
class Ts extends $n {
|
|
1453
1453
|
constructor(t) {
|
|
1454
|
-
super(t,
|
|
1454
|
+
super(t, Os, rt(t.event.target));
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
|
|
1457
|
+
Ts.activators = [{
|
|
1458
1458
|
eventName: "onMouseDown",
|
|
1459
1459
|
handler: (e, t) => {
|
|
1460
1460
|
let {
|
|
@@ -1478,7 +1478,7 @@ const cn = {
|
|
|
1478
1478
|
name: "touchend"
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
|
-
class
|
|
1481
|
+
class Ms extends $n {
|
|
1482
1482
|
constructor(t) {
|
|
1483
1483
|
super(t, cn);
|
|
1484
1484
|
}
|
|
@@ -1493,7 +1493,7 @@ class Os extends $n {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
|
|
1496
|
+
Ms.activators = [{
|
|
1497
1497
|
eventName: "onTouchStart",
|
|
1498
1498
|
handler: (e, t) => {
|
|
1499
1499
|
let {
|
|
@@ -1517,7 +1517,7 @@ var Ht;
|
|
|
1517
1517
|
(function(e) {
|
|
1518
1518
|
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
1519
1519
|
})(Ht || (Ht = {}));
|
|
1520
|
-
function
|
|
1520
|
+
function $s(e) {
|
|
1521
1521
|
let {
|
|
1522
1522
|
acceleration: t,
|
|
1523
1523
|
activator: n = gt.Pointer,
|
|
@@ -1532,10 +1532,10 @@ function Ts(e) {
|
|
|
1532
1532
|
delta: d,
|
|
1533
1533
|
threshold: m
|
|
1534
1534
|
} = e;
|
|
1535
|
-
const h =
|
|
1535
|
+
const h = As({
|
|
1536
1536
|
delta: d,
|
|
1537
1537
|
disabled: !s
|
|
1538
|
-
}), [v, g] =
|
|
1538
|
+
}), [v, g] = Vo(), x = X({
|
|
1539
1539
|
x: 0,
|
|
1540
1540
|
y: 0
|
|
1541
1541
|
}), y = X({
|
|
@@ -1575,7 +1575,7 @@ function Ts(e) {
|
|
|
1575
1575
|
const {
|
|
1576
1576
|
direction: V,
|
|
1577
1577
|
speed: P
|
|
1578
|
-
} =
|
|
1578
|
+
} = bs(E, A, j, t, m);
|
|
1579
1579
|
for (const S of ["x", "y"])
|
|
1580
1580
|
h[S][V[S]] || (P[S] = 0, V[S] = 0);
|
|
1581
1581
|
if (P.x > 0 || P.y > 0) {
|
|
@@ -1612,7 +1612,7 @@ function Ts(e) {
|
|
|
1612
1612
|
]
|
|
1613
1613
|
);
|
|
1614
1614
|
}
|
|
1615
|
-
const
|
|
1615
|
+
const Is = {
|
|
1616
1616
|
x: {
|
|
1617
1617
|
[ae.Backward]: !1,
|
|
1618
1618
|
[ae.Forward]: !1
|
|
@@ -1622,7 +1622,7 @@ const Ms = {
|
|
|
1622
1622
|
[ae.Forward]: !1
|
|
1623
1623
|
}
|
|
1624
1624
|
};
|
|
1625
|
-
function
|
|
1625
|
+
function As(e) {
|
|
1626
1626
|
let {
|
|
1627
1627
|
delta: t,
|
|
1628
1628
|
disabled: n
|
|
@@ -1630,7 +1630,7 @@ function $s(e) {
|
|
|
1630
1630
|
const r = mn(t);
|
|
1631
1631
|
return yt((o) => {
|
|
1632
1632
|
if (n || !r || !o)
|
|
1633
|
-
return
|
|
1633
|
+
return Is;
|
|
1634
1634
|
const s = {
|
|
1635
1635
|
x: Math.sign(t.x - r.x),
|
|
1636
1636
|
y: Math.sign(t.y - r.y)
|
|
@@ -1647,14 +1647,14 @@ function $s(e) {
|
|
|
1647
1647
|
};
|
|
1648
1648
|
}, [n, t, r]);
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1650
|
+
function ks(e, t) {
|
|
1651
1651
|
const n = t != null ? e.get(t) : void 0, r = n ? n.node.current : null;
|
|
1652
1652
|
return yt((o) => {
|
|
1653
1653
|
var s;
|
|
1654
1654
|
return t == null ? null : (s = r ?? o) != null ? s : null;
|
|
1655
1655
|
}, [r, t]);
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Ls(e, t) {
|
|
1658
1658
|
return G(() => e.reduce((n, r) => {
|
|
1659
1659
|
const {
|
|
1660
1660
|
sensor: o
|
|
@@ -1673,8 +1673,8 @@ var wn;
|
|
|
1673
1673
|
(function(e) {
|
|
1674
1674
|
e.Optimized = "optimized";
|
|
1675
1675
|
})(wn || (wn = {}));
|
|
1676
|
-
const
|
|
1677
|
-
function
|
|
1676
|
+
const tr = /* @__PURE__ */ new Map();
|
|
1677
|
+
function Ns(e, t) {
|
|
1678
1678
|
let {
|
|
1679
1679
|
dragging: n,
|
|
1680
1680
|
dependencies: r,
|
|
@@ -1688,8 +1688,8 @@ function ks(e, t) {
|
|
|
1688
1688
|
y === void 0 && (y = []), !m.current && c((j) => j === null ? y : j.concat(y.filter((R) => !j.includes(R))));
|
|
1689
1689
|
}, [m]), v = X(null), g = yt((y) => {
|
|
1690
1690
|
if (d && !n)
|
|
1691
|
-
return
|
|
1692
|
-
if (!y || y ===
|
|
1691
|
+
return tr;
|
|
1692
|
+
if (!y || y === tr || f.current !== e || s != null) {
|
|
1693
1693
|
const j = /* @__PURE__ */ new Map();
|
|
1694
1694
|
for (let R of e) {
|
|
1695
1695
|
if (!R)
|
|
@@ -1746,10 +1746,10 @@ function ks(e, t) {
|
|
|
1746
1746
|
function Wr(e, t) {
|
|
1747
1747
|
return yt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function zs(e, t) {
|
|
1750
1750
|
return Wr(e, t);
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function Ps(e) {
|
|
1753
1753
|
let {
|
|
1754
1754
|
callback: t,
|
|
1755
1755
|
disabled: n
|
|
@@ -1783,11 +1783,11 @@ function Kt(e) {
|
|
|
1783
1783
|
);
|
|
1784
1784
|
return F(() => () => o?.disconnect(), [o]), o;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Ys(e) {
|
|
1787
1787
|
return new Mn(ot(e), e);
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1790
|
-
t === void 0 && (t =
|
|
1789
|
+
function nr(e, t, n) {
|
|
1790
|
+
t === void 0 && (t = Ys);
|
|
1791
1791
|
const [r, o] = K(null);
|
|
1792
1792
|
function s() {
|
|
1793
1793
|
o((l) => {
|
|
@@ -1801,7 +1801,7 @@ function rr(e, t, n) {
|
|
|
1801
1801
|
return JSON.stringify(l) === JSON.stringify(f) ? l : f;
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
|
-
const c =
|
|
1804
|
+
const c = Ps({
|
|
1805
1805
|
callback(l) {
|
|
1806
1806
|
if (e)
|
|
1807
1807
|
for (const u of l) {
|
|
@@ -1825,18 +1825,18 @@ function rr(e, t, n) {
|
|
|
1825
1825
|
})) : (a?.disconnect(), c?.disconnect());
|
|
1826
1826
|
}, [e]), r;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function Fs(e) {
|
|
1829
1829
|
const t = Wr(e);
|
|
1830
1830
|
return kr(e, t);
|
|
1831
1831
|
}
|
|
1832
|
-
const
|
|
1833
|
-
function
|
|
1834
|
-
const t = X(e), n = yt((r) => e ? r && r !==
|
|
1832
|
+
const rr = [];
|
|
1833
|
+
function Vs(e) {
|
|
1834
|
+
const t = X(e), n = yt((r) => e ? r && r !== rr && e && t.current && e.parentNode === t.current.parentNode ? r : Tn(e) : rr, [e]);
|
|
1835
1835
|
return F(() => {
|
|
1836
1836
|
t.current = e;
|
|
1837
1837
|
}, [e]), n;
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function Hs(e) {
|
|
1840
1840
|
const [t, n] = K(null), r = X(e), o = Q((s) => {
|
|
1841
1841
|
const c = sn(s.target);
|
|
1842
1842
|
c && n((a) => a ? (a.set(c, bn(c)), new Map(a)) : null);
|
|
@@ -1864,7 +1864,7 @@ function Fs(e) {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
}, [o, e]), G(() => e.length ? t ? Array.from(t.values()).reduce((s, c) => Qe(s, c), je) : Fr(e) : je, [e, t]);
|
|
1866
1866
|
}
|
|
1867
|
-
function
|
|
1867
|
+
function or(e, t) {
|
|
1868
1868
|
t === void 0 && (t = []);
|
|
1869
1869
|
const n = X(null);
|
|
1870
1870
|
return F(
|
|
@@ -1878,7 +1878,7 @@ function sr(e, t) {
|
|
|
1878
1878
|
r && !n.current && (n.current = e), !r && n.current && (n.current = null);
|
|
1879
1879
|
}, [e]), n.current ? Ft(e, n.current) : je;
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function Ws(e) {
|
|
1882
1882
|
F(
|
|
1883
1883
|
() => {
|
|
1884
1884
|
if (!qt)
|
|
@@ -1904,7 +1904,7 @@ function Vs(e) {
|
|
|
1904
1904
|
})
|
|
1905
1905
|
);
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function Bs(e, t) {
|
|
1908
1908
|
return G(() => e.reduce((n, r) => {
|
|
1909
1909
|
let {
|
|
1910
1910
|
eventName: o,
|
|
@@ -1916,14 +1916,14 @@ function Hs(e, t) {
|
|
|
1916
1916
|
}, {}), [e, t]);
|
|
1917
1917
|
}
|
|
1918
1918
|
function Br(e) {
|
|
1919
|
-
return G(() => e ?
|
|
1919
|
+
return G(() => e ? ps(e) : null, [e]);
|
|
1920
1920
|
}
|
|
1921
|
-
const
|
|
1922
|
-
function
|
|
1921
|
+
const sr = [];
|
|
1922
|
+
function Us(e, t) {
|
|
1923
1923
|
t === void 0 && (t = ot);
|
|
1924
|
-
const [n] = e, r = Br(n ? pe(n) : null), [o, s] = K(
|
|
1924
|
+
const [n] = e, r = Br(n ? pe(n) : null), [o, s] = K(sr);
|
|
1925
1925
|
function c() {
|
|
1926
|
-
s(() => e.length ? e.map((l) => Pr(l) ? r : new Mn(t(l), l)) :
|
|
1926
|
+
s(() => e.length ? e.map((l) => Pr(l) ? r : new Mn(t(l), l)) : sr);
|
|
1927
1927
|
}
|
|
1928
1928
|
const a = Kt({
|
|
1929
1929
|
callback: c
|
|
@@ -1932,7 +1932,7 @@ function Ws(e, t) {
|
|
|
1932
1932
|
a?.disconnect(), c(), e.forEach((l) => a?.observe(l));
|
|
1933
1933
|
}, [e]), o;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Gs(e) {
|
|
1936
1936
|
if (!e)
|
|
1937
1937
|
return null;
|
|
1938
1938
|
if (e.children.length > 1)
|
|
@@ -1940,7 +1940,7 @@ function Bs(e) {
|
|
|
1940
1940
|
const t = e.children[0];
|
|
1941
1941
|
return bt(t) ? t : e;
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Xs(e) {
|
|
1944
1944
|
let {
|
|
1945
1945
|
measure: t
|
|
1946
1946
|
} = e;
|
|
@@ -1962,7 +1962,7 @@ function Us(e) {
|
|
|
1962
1962
|
}, [t]), s = Kt({
|
|
1963
1963
|
callback: o
|
|
1964
1964
|
}), c = Q((u) => {
|
|
1965
|
-
const f =
|
|
1965
|
+
const f = Gs(u);
|
|
1966
1966
|
s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
|
|
1967
1967
|
}, [t, s]), [a, l] = Yt(c);
|
|
1968
1968
|
return G(() => ({
|
|
@@ -1971,20 +1971,20 @@ function Us(e) {
|
|
|
1971
1971
|
setRef: l
|
|
1972
1972
|
}), [n, a, l]);
|
|
1973
1973
|
}
|
|
1974
|
-
const
|
|
1974
|
+
const qs = [{
|
|
1975
1975
|
sensor: In,
|
|
1976
1976
|
options: {}
|
|
1977
1977
|
}, {
|
|
1978
1978
|
sensor: Hr,
|
|
1979
1979
|
options: {}
|
|
1980
|
-
}],
|
|
1980
|
+
}], Ks = {
|
|
1981
1981
|
current: {}
|
|
1982
1982
|
}, It = {
|
|
1983
1983
|
draggable: {
|
|
1984
|
-
measure:
|
|
1984
|
+
measure: Jn
|
|
1985
1985
|
},
|
|
1986
1986
|
droppable: {
|
|
1987
|
-
measure:
|
|
1987
|
+
measure: Jn,
|
|
1988
1988
|
strategy: mt.WhileDragging,
|
|
1989
1989
|
frequency: wn.Optimized
|
|
1990
1990
|
},
|
|
@@ -2013,7 +2013,7 @@ class pt extends Map {
|
|
|
2013
2013
|
return (n = (r = this.get(t)) == null ? void 0 : r.node.current) != null ? n : void 0;
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
const
|
|
2016
|
+
const Js = {
|
|
2017
2017
|
activatorEvent: null,
|
|
2018
2018
|
active: null,
|
|
2019
2019
|
activeNode: null,
|
|
@@ -2037,7 +2037,7 @@ const qs = {
|
|
|
2037
2037
|
measureDroppableContainers: Vt,
|
|
2038
2038
|
windowRect: null,
|
|
2039
2039
|
measuringScheduled: !1
|
|
2040
|
-
},
|
|
2040
|
+
}, Zs = {
|
|
2041
2041
|
activatorEvent: null,
|
|
2042
2042
|
activators: [],
|
|
2043
2043
|
active: null,
|
|
@@ -2049,8 +2049,8 @@ const qs = {
|
|
|
2049
2049
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2050
2050
|
over: null,
|
|
2051
2051
|
measureDroppableContainers: Vt
|
|
2052
|
-
}, Jt = /* @__PURE__ */ tt(
|
|
2053
|
-
function
|
|
2052
|
+
}, Jt = /* @__PURE__ */ tt(Zs), Ur = /* @__PURE__ */ tt(Js);
|
|
2053
|
+
function Qs() {
|
|
2054
2054
|
return {
|
|
2055
2055
|
draggable: {
|
|
2056
2056
|
active: null,
|
|
@@ -2069,7 +2069,7 @@ function Js() {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
};
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function ei(e, t) {
|
|
2073
2073
|
switch (t.type) {
|
|
2074
2074
|
case se.DragStart:
|
|
2075
2075
|
return {
|
|
@@ -2162,7 +2162,7 @@ function Zs(e, t) {
|
|
|
2162
2162
|
return e;
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function ti(e) {
|
|
2166
2166
|
let {
|
|
2167
2167
|
disabled: t
|
|
2168
2168
|
} = e;
|
|
@@ -2188,7 +2188,7 @@ function Qs(e) {
|
|
|
2188
2188
|
for (const f of [l.current, u.current]) {
|
|
2189
2189
|
if (!f)
|
|
2190
2190
|
continue;
|
|
2191
|
-
const d =
|
|
2191
|
+
const d = Bo(f);
|
|
2192
2192
|
if (d) {
|
|
2193
2193
|
d.focus();
|
|
2194
2194
|
break;
|
|
@@ -2198,7 +2198,7 @@ function Qs(e) {
|
|
|
2198
2198
|
}
|
|
2199
2199
|
}, [r, t, o, c, s]), null;
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function ni(e, t) {
|
|
2202
2202
|
let {
|
|
2203
2203
|
transform: n,
|
|
2204
2204
|
...r
|
|
@@ -2208,7 +2208,7 @@ function ei(e, t) {
|
|
|
2208
2208
|
...r
|
|
2209
2209
|
}), n) : n;
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function ri(e) {
|
|
2212
2212
|
return G(
|
|
2213
2213
|
() => ({
|
|
2214
2214
|
draggable: {
|
|
@@ -2228,7 +2228,7 @@ function ti(e) {
|
|
|
2228
2228
|
[e?.draggable, e?.droppable, e?.dragOverlay]
|
|
2229
2229
|
);
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function oi(e) {
|
|
2232
2232
|
let {
|
|
2233
2233
|
activeNode: t,
|
|
2234
2234
|
measure: n,
|
|
@@ -2271,20 +2271,20 @@ var Ve;
|
|
|
2271
2271
|
(function(e) {
|
|
2272
2272
|
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
2273
2273
|
})(Ve || (Ve = {}));
|
|
2274
|
-
const Xr = /* @__PURE__ */
|
|
2274
|
+
const Xr = /* @__PURE__ */ jo(function(t) {
|
|
2275
2275
|
var n, r, o, s;
|
|
2276
2276
|
let {
|
|
2277
2277
|
id: c,
|
|
2278
2278
|
accessibility: a,
|
|
2279
2279
|
autoScroll: l = !0,
|
|
2280
2280
|
children: u,
|
|
2281
|
-
sensors: f =
|
|
2282
|
-
collisionDetection: d =
|
|
2281
|
+
sensors: f = qs,
|
|
2282
|
+
collisionDetection: d = cs,
|
|
2283
2283
|
measuring: m,
|
|
2284
2284
|
modifiers: h,
|
|
2285
2285
|
...v
|
|
2286
2286
|
} = t;
|
|
2287
|
-
const g =
|
|
2287
|
+
const g = Ro(ei, void 0, Qs), [x, y] = g, [j, R] = Jo(), [$, T] = K(Ve.Uninitialized), E = $ === Ve.Initialized, {
|
|
2288
2288
|
draggable: {
|
|
2289
2289
|
active: I,
|
|
2290
2290
|
nodes: A,
|
|
@@ -2301,25 +2301,25 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2301
2301
|
return I != null ? {
|
|
2302
2302
|
id: I,
|
|
2303
2303
|
// It's possible for the active node to unmount while dragging
|
|
2304
|
-
data: (de = S?.data) != null ? de :
|
|
2304
|
+
data: (de = S?.data) != null ? de : Ks,
|
|
2305
2305
|
rect: B
|
|
2306
2306
|
} : null;
|
|
2307
|
-
}, [I, S]), M = X(null), [D, w] = K(null), [_, O] = K(null), k = vt(v, Object.values(v)), N = wt("DndDescribedBy", c), p = G(() => P.getEnabled(), [P]), C =
|
|
2307
|
+
}, [I, S]), M = X(null), [D, w] = K(null), [_, O] = K(null), k = vt(v, Object.values(v)), N = wt("DndDescribedBy", c), p = G(() => P.getEnabled(), [P]), C = ri(m), {
|
|
2308
2308
|
droppableRects: L,
|
|
2309
2309
|
measureDroppableContainers: Y,
|
|
2310
2310
|
measuringScheduled: J
|
|
2311
|
-
} =
|
|
2311
|
+
} = Ns(p, {
|
|
2312
2312
|
dragging: E,
|
|
2313
2313
|
dependencies: [V.x, V.y],
|
|
2314
2314
|
config: C.droppable
|
|
2315
|
-
}), Z =
|
|
2316
|
-
|
|
2315
|
+
}), Z = ks(A, I), H = G(() => _ ? xn(_) : null, [_]), te = Do(), ne = zs(Z, C.draggable.measure);
|
|
2316
|
+
oi({
|
|
2317
2317
|
activeNode: I != null ? A.get(I) : null,
|
|
2318
2318
|
config: te.layoutShiftCompensation,
|
|
2319
2319
|
initialRect: ne,
|
|
2320
2320
|
measure: C.draggable.measure
|
|
2321
2321
|
});
|
|
2322
|
-
const z =
|
|
2322
|
+
const z = nr(Z, C.draggable.measure, ne), ge = nr(Z ? Z.parentElement : null), ue = X({
|
|
2323
2323
|
activatorEvent: null,
|
|
2324
2324
|
active: null,
|
|
2325
2325
|
activeNode: Z,
|
|
@@ -2333,9 +2333,9 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2333
2333
|
over: null,
|
|
2334
2334
|
scrollableAncestors: [],
|
|
2335
2335
|
scrollAdjustedTranslate: null
|
|
2336
|
-
}), Se = P.getNodeFor((n = ue.current.over) == null ? void 0 : n.id), Ae =
|
|
2336
|
+
}), Se = P.getNodeFor((n = ue.current.over) == null ? void 0 : n.id), Ae = Xs({
|
|
2337
2337
|
measure: C.dragOverlay.measure
|
|
2338
|
-
}), Xe = (r = Ae.nodeRef.current) != null ? r : Z, qe = E ? (o = Ae.rect) != null ? o : z : null, Ln = !!(Ae.nodeRef.current && Ae.rect), Nn =
|
|
2338
|
+
}), Xe = (r = Ae.nodeRef.current) != null ? r : Z, qe = E ? (o = Ae.rect) != null ? o : z : null, Ln = !!(Ae.nodeRef.current && Ae.rect), Nn = Fs(Ln ? null : z), tn = Br(Xe ? pe(Xe) : null), Ne = Vs(E ? Se ?? Z : null), Dt = Us(Ne), Ct = ni(h, {
|
|
2339
2339
|
transform: {
|
|
2340
2340
|
x: V.x - Nn.x,
|
|
2341
2341
|
y: V.y - Nn.y,
|
|
@@ -2352,13 +2352,13 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2352
2352
|
scrollableAncestors: Ne,
|
|
2353
2353
|
scrollableAncestorRects: Dt,
|
|
2354
2354
|
windowRect: tn
|
|
2355
|
-
}), zn = H ? Qe(H, V) : null, Pn =
|
|
2355
|
+
}), zn = H ? Qe(H, V) : null, Pn = Hs(Ne), vo = or(Pn), mo = or(Pn, [z]), Ke = Qe(Ct, vo), Je = qe ? ds(qe, Ct) : null, st = U && Je ? d({
|
|
2356
2356
|
active: U,
|
|
2357
2357
|
collisionRect: Je,
|
|
2358
2358
|
droppableRects: L,
|
|
2359
2359
|
droppableContainers: p,
|
|
2360
2360
|
pointerCoordinates: zn
|
|
2361
|
-
}) : null, Yn =
|
|
2361
|
+
}) : null, Yn = is(st, "id"), [ze, Fn] = K(null), xo = Ln ? Ct : Qe(Ct, mo), bo = ls(xo, (s = ze?.rect) != null ? s : null, z), nn = X(null), Vn = Q(
|
|
2362
2362
|
(de, ve) => {
|
|
2363
2363
|
let {
|
|
2364
2364
|
sensor: me,
|
|
@@ -2483,7 +2483,7 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2483
2483
|
},
|
|
2484
2484
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2485
2485
|
[A]
|
|
2486
|
-
),
|
|
2486
|
+
), yo = Q((de, ve) => (me, Pe) => {
|
|
2487
2487
|
const ye = me.nativeEvent, xe = A.get(Pe);
|
|
2488
2488
|
if (
|
|
2489
2489
|
// Another sensor is already instantiating
|
|
@@ -2498,8 +2498,8 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2498
2498
|
de(me, ve.options, Ee) === !0 && (ye.dndKit = {
|
|
2499
2499
|
capturedBy: ve.sensor
|
|
2500
2500
|
}, M.current = Pe, Vn(me, ve));
|
|
2501
|
-
}, [A, Vn]), Hn =
|
|
2502
|
-
|
|
2501
|
+
}, [A, Vn]), Hn = Ls(f, yo);
|
|
2502
|
+
Ws(f), Me(() => {
|
|
2503
2503
|
z && $ === Ve.Initializing && T(Ve.Initialized);
|
|
2504
2504
|
}, [z, $]), F(
|
|
2505
2505
|
() => {
|
|
@@ -2588,7 +2588,7 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2588
2588
|
initial: qe,
|
|
2589
2589
|
translated: Je
|
|
2590
2590
|
};
|
|
2591
|
-
}, [U, Z, st, Je, A, Xe, qe, L, P, ze, Ne, Ke]),
|
|
2591
|
+
}, [U, Z, st, Je, A, Xe, qe, L, P, ze, Ne, Ke]), $s({
|
|
2592
2592
|
...te,
|
|
2593
2593
|
delta: V,
|
|
2594
2594
|
draggingRect: Je,
|
|
@@ -2596,7 +2596,7 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2596
2596
|
scrollableAncestors: Ne,
|
|
2597
2597
|
scrollableAncestorRects: Dt
|
|
2598
2598
|
});
|
|
2599
|
-
const
|
|
2599
|
+
const wo = G(() => ({
|
|
2600
2600
|
active: U,
|
|
2601
2601
|
activeNode: Z,
|
|
2602
2602
|
activeNodeRect: z,
|
|
@@ -2614,7 +2614,7 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2614
2614
|
measuringConfiguration: C,
|
|
2615
2615
|
measuringScheduled: J,
|
|
2616
2616
|
windowRect: tn
|
|
2617
|
-
}), [U, Z, z, _, st, ge, Ae, A, P, L, ze, Y, Ne, Dt, C, J, tn]),
|
|
2617
|
+
}), [U, Z, z, _, st, ge, Ae, A, P, L, ze, Y, Ne, Dt, C, J, tn]), So = G(() => ({
|
|
2618
2618
|
activatorEvent: _,
|
|
2619
2619
|
activators: Hn,
|
|
2620
2620
|
active: U,
|
|
@@ -2630,18 +2630,18 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2630
2630
|
return ie.createElement(Ir.Provider, {
|
|
2631
2631
|
value: R
|
|
2632
2632
|
}, ie.createElement(Jt.Provider, {
|
|
2633
|
-
value:
|
|
2633
|
+
value: So
|
|
2634
2634
|
}, ie.createElement(Ur.Provider, {
|
|
2635
|
-
value:
|
|
2635
|
+
value: wo
|
|
2636
2636
|
}, ie.createElement(Gr.Provider, {
|
|
2637
|
-
value:
|
|
2638
|
-
}, u)), ie.createElement(
|
|
2637
|
+
value: bo
|
|
2638
|
+
}, u)), ie.createElement(ti, {
|
|
2639
2639
|
disabled: a?.restoreFocus === !1
|
|
2640
|
-
})), ie.createElement(
|
|
2640
|
+
})), ie.createElement(es, {
|
|
2641
2641
|
...a,
|
|
2642
2642
|
hiddenTextDescribedById: N
|
|
2643
2643
|
}));
|
|
2644
|
-
function
|
|
2644
|
+
function Do() {
|
|
2645
2645
|
const de = D?.autoScrollEnabled === !1, ve = typeof l == "object" ? l.enabled === !1 : l === !1, me = E && !de && !ve;
|
|
2646
2646
|
return typeof l == "object" ? {
|
|
2647
2647
|
...l,
|
|
@@ -2650,15 +2650,15 @@ const Xr = /* @__PURE__ */ Do(function(t) {
|
|
|
2650
2650
|
enabled: me
|
|
2651
2651
|
};
|
|
2652
2652
|
}
|
|
2653
|
-
}),
|
|
2654
|
-
function
|
|
2653
|
+
}), si = /* @__PURE__ */ tt(null), ir = "button", ii = "Draggable";
|
|
2654
|
+
function ai(e) {
|
|
2655
2655
|
let {
|
|
2656
2656
|
id: t,
|
|
2657
2657
|
data: n,
|
|
2658
2658
|
disabled: r = !1,
|
|
2659
2659
|
attributes: o
|
|
2660
2660
|
} = e;
|
|
2661
|
-
const s = wt(
|
|
2661
|
+
const s = wt(ii), {
|
|
2662
2662
|
activators: c,
|
|
2663
2663
|
activatorEvent: a,
|
|
2664
2664
|
active: l,
|
|
@@ -2667,10 +2667,10 @@ function si(e) {
|
|
|
2667
2667
|
draggableNodes: d,
|
|
2668
2668
|
over: m
|
|
2669
2669
|
} = We(Jt), {
|
|
2670
|
-
role: h =
|
|
2670
|
+
role: h = ir,
|
|
2671
2671
|
roleDescription: v = "draggable",
|
|
2672
2672
|
tabIndex: g = 0
|
|
2673
|
-
} = o ?? {}, x = l?.id === t, y = We(x ? Gr :
|
|
2673
|
+
} = o ?? {}, x = l?.id === t, y = We(x ? Gr : si), [j, R] = Yt(), [$, T] = Yt(), E = Bs(c, t), I = vt(n);
|
|
2674
2674
|
Me(
|
|
2675
2675
|
() => (d.set(t, {
|
|
2676
2676
|
id: t,
|
|
@@ -2689,7 +2689,7 @@ function si(e) {
|
|
|
2689
2689
|
role: h,
|
|
2690
2690
|
tabIndex: g,
|
|
2691
2691
|
"aria-disabled": r,
|
|
2692
|
-
"aria-pressed": x && h ===
|
|
2692
|
+
"aria-pressed": x && h === ir ? !0 : void 0,
|
|
2693
2693
|
"aria-roledescription": v,
|
|
2694
2694
|
"aria-describedby": f.draggable
|
|
2695
2695
|
}), [r, h, g, x, v, f.draggable]);
|
|
@@ -2707,20 +2707,20 @@ function si(e) {
|
|
|
2707
2707
|
transform: y
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2710
|
+
function ci() {
|
|
2711
2711
|
return We(Ur);
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2713
|
+
const li = "Droppable", ui = {
|
|
2714
2714
|
timeout: 25
|
|
2715
2715
|
};
|
|
2716
|
-
function
|
|
2716
|
+
function di(e) {
|
|
2717
2717
|
let {
|
|
2718
2718
|
data: t,
|
|
2719
2719
|
disabled: n = !1,
|
|
2720
2720
|
id: r,
|
|
2721
2721
|
resizeObserverConfig: o
|
|
2722
2722
|
} = e;
|
|
2723
|
-
const s = wt(
|
|
2723
|
+
const s = wt(li), {
|
|
2724
2724
|
active: c,
|
|
2725
2725
|
dispatch: a,
|
|
2726
2726
|
over: l,
|
|
@@ -2732,7 +2732,7 @@ function li(e) {
|
|
|
2732
2732
|
updateMeasurementsFor: g,
|
|
2733
2733
|
timeout: x
|
|
2734
2734
|
} = {
|
|
2735
|
-
...
|
|
2735
|
+
...ui,
|
|
2736
2736
|
...o
|
|
2737
2737
|
}, y = vt(g ?? r), j = Q(
|
|
2738
2738
|
() => {
|
|
@@ -2792,7 +2792,7 @@ function Zt(e, t, n) {
|
|
|
2792
2792
|
const r = e.slice();
|
|
2793
2793
|
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function fi(e, t) {
|
|
2796
2796
|
return e.reduce((n, r, o) => {
|
|
2797
2797
|
const s = t.get(r);
|
|
2798
2798
|
return s && (n[o] = s), n;
|
|
@@ -2801,7 +2801,7 @@ function ui(e, t) {
|
|
|
2801
2801
|
function Et(e) {
|
|
2802
2802
|
return e !== null && e >= 0;
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2804
|
+
function hi(e, t) {
|
|
2805
2805
|
if (e === t)
|
|
2806
2806
|
return !0;
|
|
2807
2807
|
if (e.length !== t.length)
|
|
@@ -2811,7 +2811,7 @@ function di(e, t) {
|
|
|
2811
2811
|
return !1;
|
|
2812
2812
|
return !0;
|
|
2813
2813
|
}
|
|
2814
|
-
function
|
|
2814
|
+
function gi(e) {
|
|
2815
2815
|
return typeof e == "boolean" ? {
|
|
2816
2816
|
draggable: e,
|
|
2817
2817
|
droppable: e
|
|
@@ -2820,7 +2820,7 @@ function fi(e) {
|
|
|
2820
2820
|
const _t = {
|
|
2821
2821
|
scaleX: 1,
|
|
2822
2822
|
scaleY: 1
|
|
2823
|
-
},
|
|
2823
|
+
}, pi = (e) => {
|
|
2824
2824
|
var t;
|
|
2825
2825
|
let {
|
|
2826
2826
|
rects: n,
|
|
@@ -2832,7 +2832,7 @@ const _t = {
|
|
|
2832
2832
|
const a = (t = n[o]) != null ? t : r;
|
|
2833
2833
|
if (!a)
|
|
2834
2834
|
return null;
|
|
2835
|
-
const l =
|
|
2835
|
+
const l = vi(n, c, o);
|
|
2836
2836
|
if (c === o) {
|
|
2837
2837
|
const u = n[s];
|
|
2838
2838
|
return u ? {
|
|
@@ -2855,7 +2855,7 @@ const _t = {
|
|
|
2855
2855
|
..._t
|
|
2856
2856
|
};
|
|
2857
2857
|
};
|
|
2858
|
-
function
|
|
2858
|
+
function vi(e, t, n) {
|
|
2859
2859
|
const r = e[t], o = e[t - 1], s = e[t + 1];
|
|
2860
2860
|
return !r || !o && !s ? 0 : n < t ? o ? r.left - (o.left + o.width) : s.left - (r.left + r.width) : s ? s.left - (r.left + r.width) : r.left - (o.left + o.width);
|
|
2861
2861
|
}
|
|
@@ -2876,7 +2876,7 @@ const qr = (e) => {
|
|
|
2876
2876
|
}, Ot = {
|
|
2877
2877
|
scaleX: 1,
|
|
2878
2878
|
scaleY: 1
|
|
2879
|
-
},
|
|
2879
|
+
}, mi = (e) => {
|
|
2880
2880
|
var t;
|
|
2881
2881
|
let {
|
|
2882
2882
|
activeIndex: n,
|
|
@@ -2896,7 +2896,7 @@ const qr = (e) => {
|
|
|
2896
2896
|
...Ot
|
|
2897
2897
|
} : null;
|
|
2898
2898
|
}
|
|
2899
|
-
const l =
|
|
2899
|
+
const l = xi(s, o, n);
|
|
2900
2900
|
return o > n && o <= c ? {
|
|
2901
2901
|
x: 0,
|
|
2902
2902
|
y: -a.height - l,
|
|
@@ -2911,7 +2911,7 @@ const qr = (e) => {
|
|
|
2911
2911
|
...Ot
|
|
2912
2912
|
};
|
|
2913
2913
|
};
|
|
2914
|
-
function
|
|
2914
|
+
function xi(e, t, n) {
|
|
2915
2915
|
const r = e[t], o = e[t - 1], s = e[t + 1];
|
|
2916
2916
|
return r ? n < t ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
2917
2917
|
}
|
|
@@ -2943,7 +2943,7 @@ function Zr(e) {
|
|
|
2943
2943
|
droppableRects: l,
|
|
2944
2944
|
over: u,
|
|
2945
2945
|
measureDroppableContainers: f
|
|
2946
|
-
} =
|
|
2946
|
+
} = ci(), d = wt(Kr, n), m = a.rect !== null, h = G(() => r.map((E) => typeof E == "object" && "id" in E ? E.id : E), [r]), v = c != null, g = c ? h.indexOf(c.id) : -1, x = u ? h.indexOf(u.id) : -1, y = X(h), j = !hi(h, y.current), R = x !== -1 && g === -1 || j, $ = gi(s);
|
|
2947
2947
|
Me(() => {
|
|
2948
2948
|
j && v && f(h);
|
|
2949
2949
|
}, [j, h, v, f]), F(() => {
|
|
@@ -2958,7 +2958,7 @@ function Zr(e) {
|
|
|
2958
2958
|
items: h,
|
|
2959
2959
|
overIndex: x,
|
|
2960
2960
|
useDragOverlay: m,
|
|
2961
|
-
sortedRects:
|
|
2961
|
+
sortedRects: fi(h, l),
|
|
2962
2962
|
strategy: o
|
|
2963
2963
|
}),
|
|
2964
2964
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -2968,7 +2968,7 @@ function Zr(e) {
|
|
|
2968
2968
|
value: T
|
|
2969
2969
|
}, t);
|
|
2970
2970
|
}
|
|
2971
|
-
const
|
|
2971
|
+
const bi = (e) => {
|
|
2972
2972
|
let {
|
|
2973
2973
|
id: t,
|
|
2974
2974
|
items: n,
|
|
@@ -2976,7 +2976,7 @@ const mi = (e) => {
|
|
|
2976
2976
|
overIndex: o
|
|
2977
2977
|
} = e;
|
|
2978
2978
|
return Zt(n, r, o).indexOf(t);
|
|
2979
|
-
},
|
|
2979
|
+
}, yi = (e) => {
|
|
2980
2980
|
let {
|
|
2981
2981
|
containerId: t,
|
|
2982
2982
|
isSorting: n,
|
|
@@ -2989,17 +2989,17 @@ const mi = (e) => {
|
|
|
2989
2989
|
transition: u
|
|
2990
2990
|
} = e;
|
|
2991
2991
|
return !u || !r || a !== s && o === c ? !1 : n ? !0 : c !== o && t === l;
|
|
2992
|
-
},
|
|
2992
|
+
}, wi = {
|
|
2993
2993
|
duration: 200,
|
|
2994
2994
|
easing: "ease"
|
|
2995
|
-
}, Qr = "transform",
|
|
2995
|
+
}, Qr = "transform", Si = /* @__PURE__ */ et.Transition.toString({
|
|
2996
2996
|
property: Qr,
|
|
2997
2997
|
duration: 0,
|
|
2998
2998
|
easing: "linear"
|
|
2999
|
-
}),
|
|
2999
|
+
}), Di = {
|
|
3000
3000
|
roleDescription: "sortable"
|
|
3001
3001
|
};
|
|
3002
|
-
function
|
|
3002
|
+
function Ci(e) {
|
|
3003
3003
|
let {
|
|
3004
3004
|
disabled: t,
|
|
3005
3005
|
index: n,
|
|
@@ -3029,15 +3029,15 @@ function Si(e) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
function eo(e) {
|
|
3031
3031
|
let {
|
|
3032
|
-
animateLayoutChanges: t =
|
|
3032
|
+
animateLayoutChanges: t = yi,
|
|
3033
3033
|
attributes: n,
|
|
3034
3034
|
disabled: r,
|
|
3035
3035
|
data: o,
|
|
3036
|
-
getNewIndex: s =
|
|
3036
|
+
getNewIndex: s = bi,
|
|
3037
3037
|
id: c,
|
|
3038
3038
|
strategy: a,
|
|
3039
3039
|
resizeObserverConfig: l,
|
|
3040
|
-
transition: u =
|
|
3040
|
+
transition: u = wi
|
|
3041
3041
|
} = e;
|
|
3042
3042
|
const {
|
|
3043
3043
|
items: f,
|
|
@@ -3049,7 +3049,7 @@ function eo(e) {
|
|
|
3049
3049
|
overIndex: x,
|
|
3050
3050
|
useDragOverlay: y,
|
|
3051
3051
|
strategy: j
|
|
3052
|
-
} = We(Jr), R =
|
|
3052
|
+
} = We(Jr), R = ji(r, h), $ = f.indexOf(c), T = G(() => ({
|
|
3053
3053
|
sortable: {
|
|
3054
3054
|
containerId: d,
|
|
3055
3055
|
index: $,
|
|
@@ -3061,7 +3061,7 @@ function eo(e) {
|
|
|
3061
3061
|
node: A,
|
|
3062
3062
|
isOver: V,
|
|
3063
3063
|
setNodeRef: P
|
|
3064
|
-
} =
|
|
3064
|
+
} = di({
|
|
3065
3065
|
id: c,
|
|
3066
3066
|
data: T,
|
|
3067
3067
|
disabled: R.droppable,
|
|
@@ -3080,15 +3080,15 @@ function eo(e) {
|
|
|
3080
3080
|
over: O,
|
|
3081
3081
|
setActivatorNodeRef: k,
|
|
3082
3082
|
transform: N
|
|
3083
|
-
} =
|
|
3083
|
+
} = ai({
|
|
3084
3084
|
id: c,
|
|
3085
3085
|
data: T,
|
|
3086
3086
|
attributes: {
|
|
3087
|
-
...
|
|
3087
|
+
...Di,
|
|
3088
3088
|
...n
|
|
3089
3089
|
},
|
|
3090
3090
|
disabled: R.draggable
|
|
3091
|
-
}), p =
|
|
3091
|
+
}), p = Fo(P, D), C = !!S, L = C && !v && Et(m) && Et(x), Y = !y && _, J = Y && L ? N : null, H = L ? J ?? (a ?? j)({
|
|
3092
3092
|
rects: g,
|
|
3093
3093
|
activeNodeRect: U,
|
|
3094
3094
|
activeIndex: m,
|
|
@@ -3117,7 +3117,7 @@ function eo(e) {
|
|
|
3117
3117
|
previousContainerId: z.current.containerId,
|
|
3118
3118
|
transition: u,
|
|
3119
3119
|
wasDragging: z.current.activeId != null
|
|
3120
|
-
}), Se =
|
|
3120
|
+
}), Se = Ci({
|
|
3121
3121
|
disabled: !ue,
|
|
3122
3122
|
index: $,
|
|
3123
3123
|
node: A,
|
|
@@ -3165,7 +3165,7 @@ function eo(e) {
|
|
|
3165
3165
|
Se || // Or to prevent items jumping to back to their "new" position when items change
|
|
3166
3166
|
ge && z.current.newIndex === $
|
|
3167
3167
|
)
|
|
3168
|
-
return
|
|
3168
|
+
return Si;
|
|
3169
3169
|
if (!(Y && !On(B) || !u) && (C || ue))
|
|
3170
3170
|
return et.Transition.toString({
|
|
3171
3171
|
...u,
|
|
@@ -3173,7 +3173,7 @@ function eo(e) {
|
|
|
3173
3173
|
});
|
|
3174
3174
|
}
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3176
|
+
function ji(e, t) {
|
|
3177
3177
|
var n, r;
|
|
3178
3178
|
return typeof e == "boolean" ? {
|
|
3179
3179
|
draggable: e,
|
|
@@ -3186,10 +3186,10 @@ function Di(e, t) {
|
|
|
3186
3186
|
}
|
|
3187
3187
|
W.Down, W.Right, W.Up, W.Left;
|
|
3188
3188
|
var Tt = { exports: {} }, ln = {}, Mt = { exports: {} }, un = {};
|
|
3189
|
-
var
|
|
3190
|
-
function
|
|
3191
|
-
if (
|
|
3192
|
-
|
|
3189
|
+
var ar;
|
|
3190
|
+
function Ri() {
|
|
3191
|
+
if (ar) return un;
|
|
3192
|
+
ar = 1;
|
|
3193
3193
|
var e = ie;
|
|
3194
3194
|
function t(d, m) {
|
|
3195
3195
|
return d === m && (d !== 0 || 1 / d === 1 / m) || d !== d && m !== m;
|
|
@@ -3228,9 +3228,9 @@ function Ci() {
|
|
|
3228
3228
|
return un.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, un;
|
|
3229
3229
|
}
|
|
3230
3230
|
var dn = {};
|
|
3231
|
-
var
|
|
3232
|
-
function
|
|
3233
|
-
return
|
|
3231
|
+
var cr;
|
|
3232
|
+
function Ei() {
|
|
3233
|
+
return cr || (cr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3234
3234
|
function e(h, v) {
|
|
3235
3235
|
return h === v && (h !== 0 || 1 / h === 1 / v) || h !== h && v !== v;
|
|
3236
3236
|
}
|
|
@@ -3281,14 +3281,14 @@ function ji() {
|
|
|
3281
3281
|
dn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3282
3282
|
})()), dn;
|
|
3283
3283
|
}
|
|
3284
|
-
var
|
|
3284
|
+
var lr;
|
|
3285
3285
|
function to() {
|
|
3286
|
-
return
|
|
3286
|
+
return lr || (lr = 1, process.env.NODE_ENV === "production" ? Mt.exports = Ri() : Mt.exports = Ei()), Mt.exports;
|
|
3287
3287
|
}
|
|
3288
|
-
var
|
|
3289
|
-
function
|
|
3290
|
-
if (
|
|
3291
|
-
|
|
3288
|
+
var ur;
|
|
3289
|
+
function _i() {
|
|
3290
|
+
if (ur) return ln;
|
|
3291
|
+
ur = 1;
|
|
3292
3292
|
var e = ie, t = to();
|
|
3293
3293
|
function n(u, f) {
|
|
3294
3294
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
@@ -3337,9 +3337,9 @@ function Ri() {
|
|
|
3337
3337
|
}, ln;
|
|
3338
3338
|
}
|
|
3339
3339
|
var fn = {};
|
|
3340
|
-
var
|
|
3341
|
-
function
|
|
3342
|
-
return
|
|
3340
|
+
var dr;
|
|
3341
|
+
function Oi() {
|
|
3342
|
+
return dr || (dr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3343
3343
|
function e(u, f) {
|
|
3344
3344
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
3345
3345
|
}
|
|
@@ -3389,22 +3389,22 @@ function Ei() {
|
|
|
3389
3389
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3390
3390
|
})()), fn;
|
|
3391
3391
|
}
|
|
3392
|
-
var
|
|
3393
|
-
function
|
|
3394
|
-
return
|
|
3392
|
+
var fr;
|
|
3393
|
+
function Ti() {
|
|
3394
|
+
return fr || (fr = 1, process.env.NODE_ENV === "production" ? Tt.exports = _i() : Tt.exports = Oi()), Tt.exports;
|
|
3395
3395
|
}
|
|
3396
|
-
var
|
|
3397
|
-
const Sn = /* @__PURE__ */ new WeakMap(),
|
|
3396
|
+
var Mi = Ti();
|
|
3397
|
+
const Sn = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakMap(), Wt = {
|
|
3398
3398
|
current: []
|
|
3399
3399
|
};
|
|
3400
3400
|
let hn = !1;
|
|
3401
|
-
const $t = /* @__PURE__ */ new Set(),
|
|
3401
|
+
const $t = /* @__PURE__ */ new Set(), hr = /* @__PURE__ */ new Map();
|
|
3402
3402
|
function no(e) {
|
|
3403
3403
|
for (const t of e) {
|
|
3404
3404
|
if (Wt.current.includes(t))
|
|
3405
3405
|
continue;
|
|
3406
3406
|
Wt.current.push(t), t.recompute();
|
|
3407
|
-
const n =
|
|
3407
|
+
const n = $i.get(t);
|
|
3408
3408
|
if (n)
|
|
3409
3409
|
for (const r of n) {
|
|
3410
3410
|
const o = Sn.get(r);
|
|
@@ -3412,7 +3412,7 @@ function no(e) {
|
|
|
3412
3412
|
}
|
|
3413
3413
|
}
|
|
3414
3414
|
}
|
|
3415
|
-
function
|
|
3415
|
+
function Ii(e) {
|
|
3416
3416
|
const t = {
|
|
3417
3417
|
prevVal: e.prevState,
|
|
3418
3418
|
currentVal: e.state
|
|
@@ -3420,7 +3420,7 @@ function Mi(e) {
|
|
|
3420
3420
|
for (const n of e.listeners)
|
|
3421
3421
|
n(t);
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function Ai(e) {
|
|
3424
3424
|
const t = {
|
|
3425
3425
|
prevVal: e.prevState,
|
|
3426
3426
|
currentVal: e.state
|
|
@@ -3428,15 +3428,15 @@ function $i(e) {
|
|
|
3428
3428
|
for (const n of e.listeners)
|
|
3429
3429
|
n(t);
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3431
|
+
function ki(e) {
|
|
3432
3432
|
if ($t.add(e), !hn)
|
|
3433
3433
|
try {
|
|
3434
3434
|
for (hn = !0; $t.size > 0; ) {
|
|
3435
3435
|
const t = Array.from($t);
|
|
3436
3436
|
$t.clear();
|
|
3437
3437
|
for (const n of t) {
|
|
3438
|
-
const r =
|
|
3439
|
-
n.prevState = r,
|
|
3438
|
+
const r = hr.get(n) ?? n.prevState;
|
|
3439
|
+
n.prevState = r, Ii(n);
|
|
3440
3440
|
}
|
|
3441
3441
|
for (const n of t) {
|
|
3442
3442
|
const r = Sn.get(n);
|
|
@@ -3446,14 +3446,14 @@ function Ii(e) {
|
|
|
3446
3446
|
const r = Sn.get(n);
|
|
3447
3447
|
if (r)
|
|
3448
3448
|
for (const o of r)
|
|
3449
|
-
|
|
3449
|
+
Ai(o);
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
3452
|
} finally {
|
|
3453
|
-
hn = !1, Wt.current = [],
|
|
3453
|
+
hn = !1, Wt.current = [], hr.clear();
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function Li(e) {
|
|
3457
3457
|
return typeof e == "function";
|
|
3458
3458
|
}
|
|
3459
3459
|
class ro {
|
|
@@ -3469,12 +3469,12 @@ class ro {
|
|
|
3469
3469
|
}
|
|
3470
3470
|
setState(t) {
|
|
3471
3471
|
var n, r, o;
|
|
3472
|
-
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) :
|
|
3472
|
+
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : Li(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), ki(this);
|
|
3473
3473
|
}
|
|
3474
3474
|
}
|
|
3475
3475
|
function St(e, t = (r) => r, n = {}) {
|
|
3476
|
-
const r = n.equal ??
|
|
3477
|
-
return
|
|
3476
|
+
const r = n.equal ?? Ni;
|
|
3477
|
+
return Mi.useSyncExternalStoreWithSelector(
|
|
3478
3478
|
e.subscribe,
|
|
3479
3479
|
() => e.state,
|
|
3480
3480
|
() => e.state,
|
|
@@ -3482,7 +3482,7 @@ function St(e, t = (r) => r, n = {}) {
|
|
|
3482
3482
|
r
|
|
3483
3483
|
);
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function Ni(e, t) {
|
|
3486
3486
|
if (Object.is(e, t))
|
|
3487
3487
|
return !0;
|
|
3488
3488
|
if (typeof e != "object" || e === null || typeof t != "object" || t === null)
|
|
@@ -3501,15 +3501,15 @@ function ki(e, t) {
|
|
|
3501
3501
|
}
|
|
3502
3502
|
if (e instanceof Date && t instanceof Date)
|
|
3503
3503
|
return e.getTime() === t.getTime();
|
|
3504
|
-
const n =
|
|
3505
|
-
if (n.length !==
|
|
3504
|
+
const n = gr(e);
|
|
3505
|
+
if (n.length !== gr(t).length)
|
|
3506
3506
|
return !1;
|
|
3507
3507
|
for (let r = 0; r < n.length; r++)
|
|
3508
3508
|
if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]]))
|
|
3509
3509
|
return !1;
|
|
3510
3510
|
return !0;
|
|
3511
3511
|
}
|
|
3512
|
-
function
|
|
3512
|
+
function gr(e) {
|
|
3513
3513
|
return Object.keys(e).concat(
|
|
3514
3514
|
Object.getOwnPropertySymbols(e)
|
|
3515
3515
|
);
|
|
@@ -3529,7 +3529,7 @@ const be = new ro({
|
|
|
3529
3529
|
width: "100px"
|
|
3530
3530
|
}
|
|
3531
3531
|
});
|
|
3532
|
-
function
|
|
3532
|
+
function zi(e, t) {
|
|
3533
3533
|
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((f) => ({ id: f, label: f }))).filter(
|
|
3534
3534
|
(f) => Object.prototype.hasOwnProperty.call(n, f.id)
|
|
3535
3535
|
), { tableId: s } = be.state, c = JSON.parse(
|
|
@@ -3553,7 +3553,7 @@ function Li(e, t) {
|
|
|
3553
3553
|
}))
|
|
3554
3554
|
}));
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function Pi(e) {
|
|
3557
3557
|
be.setState((t) => ({
|
|
3558
3558
|
...t,
|
|
3559
3559
|
tableId: e,
|
|
@@ -3563,19 +3563,19 @@ function Ni(e) {
|
|
|
3563
3563
|
visibility: {}
|
|
3564
3564
|
}));
|
|
3565
3565
|
}
|
|
3566
|
-
const
|
|
3566
|
+
const Yi = (e) => {
|
|
3567
3567
|
be.setState((t) => ({
|
|
3568
3568
|
...t,
|
|
3569
3569
|
actionsConfig: e
|
|
3570
3570
|
}));
|
|
3571
|
-
}, oo = (e) => `table_column_order_v1:${e}`, so = (e) => `table_column_visibility_v1:${e}`,
|
|
3571
|
+
}, oo = (e) => `table_column_order_v1:${e}`, so = (e) => `table_column_visibility_v1:${e}`, Fi = (e) => {
|
|
3572
3572
|
const { tableId: t } = be.state;
|
|
3573
3573
|
localStorage.setItem(oo(t), JSON.stringify(e.map((n) => n.id))), be.setState((n) => ({
|
|
3574
3574
|
...n,
|
|
3575
3575
|
columnOrder: e
|
|
3576
3576
|
})), be.setState((n) => ({ ...n, columnOrder: e }));
|
|
3577
3577
|
};
|
|
3578
|
-
function
|
|
3578
|
+
function Vi(e) {
|
|
3579
3579
|
be.setState((t) => t.sortColumn === e ? {
|
|
3580
3580
|
...t,
|
|
3581
3581
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
@@ -3585,7 +3585,7 @@ function Yi(e) {
|
|
|
3585
3585
|
sortDirection: "asc"
|
|
3586
3586
|
});
|
|
3587
3587
|
}
|
|
3588
|
-
const
|
|
3588
|
+
const Hi = (e) => {
|
|
3589
3589
|
be.setState((t) => {
|
|
3590
3590
|
const n = {
|
|
3591
3591
|
...t.visibility,
|
|
@@ -3597,18 +3597,18 @@ const Fi = (e) => {
|
|
|
3597
3597
|
};
|
|
3598
3598
|
});
|
|
3599
3599
|
};
|
|
3600
|
-
const
|
|
3600
|
+
const Wi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bi = (e) => e.replace(
|
|
3601
3601
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3602
3602
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
3603
|
-
),
|
|
3604
|
-
const t =
|
|
3603
|
+
), pr = (e) => {
|
|
3604
|
+
const t = Bi(e);
|
|
3605
3605
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3606
|
-
}, io = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
3606
|
+
}, io = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Ui = (e) => {
|
|
3607
3607
|
for (const t in e)
|
|
3608
3608
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3609
3609
|
return !0;
|
|
3610
3610
|
};
|
|
3611
|
-
var
|
|
3611
|
+
var Gi = {
|
|
3612
3612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3613
3613
|
width: 24,
|
|
3614
3614
|
height: 24,
|
|
@@ -3619,7 +3619,7 @@ var Bi = {
|
|
|
3619
3619
|
strokeLinecap: "round",
|
|
3620
3620
|
strokeLinejoin: "round"
|
|
3621
3621
|
};
|
|
3622
|
-
const
|
|
3622
|
+
const Xi = Dn(
|
|
3623
3623
|
({
|
|
3624
3624
|
color: e = "currentColor",
|
|
3625
3625
|
size: t = 24,
|
|
@@ -3633,13 +3633,13 @@ const Ui = Dn(
|
|
|
3633
3633
|
"svg",
|
|
3634
3634
|
{
|
|
3635
3635
|
ref: l,
|
|
3636
|
-
...
|
|
3636
|
+
...Gi,
|
|
3637
3637
|
width: t,
|
|
3638
3638
|
height: t,
|
|
3639
3639
|
stroke: e,
|
|
3640
3640
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3641
3641
|
className: io("lucide", o),
|
|
3642
|
-
...!s && !
|
|
3642
|
+
...!s && !Ui(a) && { "aria-hidden": "true" },
|
|
3643
3643
|
...a
|
|
3644
3644
|
},
|
|
3645
3645
|
[
|
|
@@ -3650,49 +3650,49 @@ const Ui = Dn(
|
|
|
3650
3650
|
);
|
|
3651
3651
|
const fe = (e, t) => {
|
|
3652
3652
|
const n = Dn(
|
|
3653
|
-
({ className: r, ...o }, s) => vn(
|
|
3653
|
+
({ className: r, ...o }, s) => vn(Xi, {
|
|
3654
3654
|
ref: s,
|
|
3655
3655
|
iconNode: t,
|
|
3656
3656
|
className: io(
|
|
3657
|
-
`lucide-${
|
|
3657
|
+
`lucide-${Wi(pr(e))}`,
|
|
3658
3658
|
`lucide-${e}`,
|
|
3659
3659
|
r
|
|
3660
3660
|
),
|
|
3661
3661
|
...o
|
|
3662
3662
|
})
|
|
3663
3663
|
);
|
|
3664
|
-
return n.displayName =
|
|
3664
|
+
return n.displayName = pr(e), n;
|
|
3665
3665
|
};
|
|
3666
|
-
const
|
|
3666
|
+
const qi = [
|
|
3667
3667
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3668
3668
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3669
|
-
],
|
|
3670
|
-
const
|
|
3669
|
+
], Ki = fe("arrow-down", qi);
|
|
3670
|
+
const Ji = [
|
|
3671
3671
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
3672
3672
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
3673
3673
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3674
3674
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
3675
|
-
],
|
|
3676
|
-
const
|
|
3675
|
+
], Zi = fe("arrow-up-down", Ji);
|
|
3676
|
+
const Qi = [
|
|
3677
3677
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3678
3678
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3679
|
-
],
|
|
3680
|
-
const Qi = [
|
|
3681
|
-
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3682
|
-
], ea = fe("bookmark", Qi);
|
|
3679
|
+
], ea = fe("arrow-up", Qi);
|
|
3683
3680
|
const ta = [
|
|
3681
|
+
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3682
|
+
], na = fe("bookmark", ta);
|
|
3683
|
+
const ra = [
|
|
3684
3684
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3685
3685
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3686
3686
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3687
3687
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3688
|
-
],
|
|
3689
|
-
const
|
|
3690
|
-
const
|
|
3691
|
-
const
|
|
3688
|
+
], vr = fe("calendar", ra);
|
|
3689
|
+
const oa = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], sa = fe("chevron-left", oa);
|
|
3690
|
+
const ia = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], aa = fe("chevron-right", ia);
|
|
3691
|
+
const ca = [
|
|
3692
3692
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3693
3693
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3694
|
-
],
|
|
3695
|
-
const
|
|
3694
|
+
], la = fe("columns-2", ca);
|
|
3695
|
+
const ua = [
|
|
3696
3696
|
[
|
|
3697
3697
|
"path",
|
|
3698
3698
|
{
|
|
@@ -3702,13 +3702,13 @@ const ca = [
|
|
|
3702
3702
|
],
|
|
3703
3703
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3704
3704
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3705
|
-
],
|
|
3706
|
-
const
|
|
3705
|
+
], da = fe("delete", ua);
|
|
3706
|
+
const fa = [
|
|
3707
3707
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3708
3708
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3709
3709
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3710
|
-
],
|
|
3711
|
-
const
|
|
3710
|
+
], ha = fe("ellipsis", fa);
|
|
3711
|
+
const ga = [
|
|
3712
3712
|
[
|
|
3713
3713
|
"path",
|
|
3714
3714
|
{
|
|
@@ -3716,16 +3716,16 @@ const fa = [
|
|
|
3716
3716
|
key: "sc7q7i"
|
|
3717
3717
|
}
|
|
3718
3718
|
]
|
|
3719
|
-
],
|
|
3720
|
-
const
|
|
3719
|
+
], pa = fe("funnel", ga);
|
|
3720
|
+
const va = [
|
|
3721
3721
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3722
3722
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
3723
3723
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
3724
3724
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3725
3725
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3726
3726
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3727
|
-
], ao = fe("grip-vertical",
|
|
3728
|
-
const
|
|
3727
|
+
], ao = fe("grip-vertical", va);
|
|
3728
|
+
const ma = [
|
|
3729
3729
|
[
|
|
3730
3730
|
"path",
|
|
3731
3731
|
{
|
|
@@ -3733,14 +3733,14 @@ const pa = [
|
|
|
3733
3733
|
key: "1a8usu"
|
|
3734
3734
|
}
|
|
3735
3735
|
]
|
|
3736
|
-
],
|
|
3737
|
-
const
|
|
3736
|
+
], xa = fe("pen", ma);
|
|
3737
|
+
const ba = [
|
|
3738
3738
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
3739
3739
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
3740
3740
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
3741
3741
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
3742
|
-
],
|
|
3743
|
-
const
|
|
3742
|
+
], ya = fe("refresh-ccw", ba);
|
|
3743
|
+
const wa = [
|
|
3744
3744
|
[
|
|
3745
3745
|
"path",
|
|
3746
3746
|
{
|
|
@@ -3749,8 +3749,8 @@ const ba = [
|
|
|
3749
3749
|
}
|
|
3750
3750
|
],
|
|
3751
3751
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3752
|
-
],
|
|
3753
|
-
const
|
|
3752
|
+
], Sa = fe("settings", wa);
|
|
3753
|
+
const Da = [
|
|
3754
3754
|
[
|
|
3755
3755
|
"path",
|
|
3756
3756
|
{
|
|
@@ -3760,7 +3760,7 @@ const wa = [
|
|
|
3760
3760
|
],
|
|
3761
3761
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3762
3762
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3763
|
-
], co = fe("triangle-alert",
|
|
3763
|
+
], co = fe("triangle-alert", Da);
|
|
3764
3764
|
function b(e) {
|
|
3765
3765
|
return Dn((t, n) => {
|
|
3766
3766
|
const { children: r, ...o } = t;
|
|
@@ -3770,22 +3770,22 @@ function b(e) {
|
|
|
3770
3770
|
);
|
|
3771
3771
|
});
|
|
3772
3772
|
}
|
|
3773
|
-
const
|
|
3774
|
-
function
|
|
3773
|
+
const Ca = b($e.Trigger), ja = b($e.Positioner), Ra = b($e.Content), Ea = b($e.Item), _a = b(Re.Label), Oa = b(Re.HiddenInput), Ta = b(Re.Control);
|
|
3774
|
+
function Ma({ visibility: e, onToggle: t }) {
|
|
3775
3775
|
const { sortableColumns: n } = St(be);
|
|
3776
3776
|
return /* @__PURE__ */ i.jsxs($e.Root, { closeOnSelect: !1, children: [
|
|
3777
|
-
/* @__PURE__ */ i.jsx(
|
|
3778
|
-
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(
|
|
3777
|
+
/* @__PURE__ */ i.jsx(Ca, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ i.jsx(la, { size: 18 }) }) }),
|
|
3778
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(ja, { children: /* @__PURE__ */ i.jsx(Ra, { minW: "220px", children: n.map((r) => {
|
|
3779
3779
|
const o = !!e[r.id];
|
|
3780
|
-
return /* @__PURE__ */ i.jsx(
|
|
3781
|
-
/* @__PURE__ */ i.jsx(
|
|
3782
|
-
/* @__PURE__ */ i.jsx(
|
|
3783
|
-
/* @__PURE__ */ i.jsx(
|
|
3780
|
+
return /* @__PURE__ */ i.jsx(Ea, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(Re.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3781
|
+
/* @__PURE__ */ i.jsx(Oa, {}),
|
|
3782
|
+
/* @__PURE__ */ i.jsx(Ta, {}),
|
|
3783
|
+
/* @__PURE__ */ i.jsx(_a, { children: r.label })
|
|
3784
3784
|
] }) }, r.id);
|
|
3785
3785
|
}) }) }) })
|
|
3786
3786
|
] });
|
|
3787
3787
|
}
|
|
3788
|
-
function
|
|
3788
|
+
function $a({
|
|
3789
3789
|
id: e,
|
|
3790
3790
|
children: t,
|
|
3791
3791
|
onClick: n,
|
|
@@ -3817,16 +3817,16 @@ function Ta({
|
|
|
3817
3817
|
}
|
|
3818
3818
|
);
|
|
3819
3819
|
}
|
|
3820
|
-
function
|
|
3820
|
+
function Ia() {
|
|
3821
3821
|
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = St(be), c = e.map((a) => o.find((l) => l.id === a.id)).filter((a) => a !== void 0).filter((a) => t[a.id]);
|
|
3822
3822
|
return /* @__PURE__ */ i.jsx(le.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ i.jsxs(le.Row, { height: "28px", children: [
|
|
3823
3823
|
c.map((a) => {
|
|
3824
3824
|
const l = n === a?.id;
|
|
3825
3825
|
return /* @__PURE__ */ i.jsx(
|
|
3826
|
-
|
|
3826
|
+
$a,
|
|
3827
3827
|
{
|
|
3828
3828
|
id: a?.id,
|
|
3829
|
-
onClick: () => a?.sortable &&
|
|
3829
|
+
onClick: () => a?.sortable && Vi(a?.id),
|
|
3830
3830
|
cursor: a?.sortable ? "pointer" : "default",
|
|
3831
3831
|
borderRight: "2px solid #dcdcdc",
|
|
3832
3832
|
backgroundColor: a?.backgroundColor,
|
|
@@ -3841,7 +3841,7 @@ function Ma() {
|
|
|
3841
3841
|
},
|
|
3842
3842
|
children: [
|
|
3843
3843
|
a?.label,
|
|
3844
|
-
a?.sortable && (l ? r === "asc" ? /* @__PURE__ */ i.jsx(
|
|
3844
|
+
a?.sortable && (l ? r === "asc" ? /* @__PURE__ */ i.jsx(ea, { size: 14 }) : /* @__PURE__ */ i.jsx(Ki, { size: 14 }) : /* @__PURE__ */ i.jsx(Zi, { size: 14, opacity: 0.4 }))
|
|
3845
3845
|
]
|
|
3846
3846
|
}
|
|
3847
3847
|
)
|
|
@@ -3863,22 +3863,22 @@ function Ma() {
|
|
|
3863
3863
|
{
|
|
3864
3864
|
boxSize: "0.5",
|
|
3865
3865
|
backgroundColor: s.backgroundColorColumnVisibilityMenu,
|
|
3866
|
-
children: /* @__PURE__ */ i.jsx(
|
|
3866
|
+
children: /* @__PURE__ */ i.jsx(Ma, { visibility: t, onToggle: Hi })
|
|
3867
3867
|
}
|
|
3868
3868
|
)
|
|
3869
3869
|
] }) });
|
|
3870
3870
|
}
|
|
3871
|
-
const
|
|
3872
|
-
function
|
|
3871
|
+
const Aa = [10, 20, 50, 100], ka = b(ee.Positioner), La = b(ee.Content), Na = b(ee.Item), za = b(zt.PrevTrigger), Pa = b(zt.NextTrigger), Ya = b(ee.HiddenSelect), Fa = b(ee.Control), Va = b(ee.Trigger), Ha = b(ee.ValueText), Wa = b(ee.IndicatorGroup), Ba = b(ee.Indicator);
|
|
3872
|
+
function Ua({
|
|
3873
3873
|
totalCount: e,
|
|
3874
3874
|
pageSize: t,
|
|
3875
3875
|
currentPage: n,
|
|
3876
3876
|
onPageChange: r,
|
|
3877
3877
|
onPageSizeChange: o,
|
|
3878
3878
|
siblingCount: s = 2,
|
|
3879
|
-
pageSizeOptions: c =
|
|
3879
|
+
pageSizeOptions: c = Aa
|
|
3880
3880
|
}) {
|
|
3881
|
-
const a =
|
|
3881
|
+
const a = Er({
|
|
3882
3882
|
items: c.map((l) => ({
|
|
3883
3883
|
label: String(l),
|
|
3884
3884
|
value: String(l)
|
|
@@ -3896,12 +3896,12 @@ function Wa({
|
|
|
3896
3896
|
onValueChange: (l) => o?.(Number(l.items[0].value)),
|
|
3897
3897
|
value: [String(t)],
|
|
3898
3898
|
children: [
|
|
3899
|
-
/* @__PURE__ */ i.jsx(
|
|
3900
|
-
/* @__PURE__ */ i.jsxs(
|
|
3901
|
-
/* @__PURE__ */ i.jsx(
|
|
3902
|
-
/* @__PURE__ */ i.jsx(
|
|
3899
|
+
/* @__PURE__ */ i.jsx(Ya, {}),
|
|
3900
|
+
/* @__PURE__ */ i.jsxs(Fa, { children: [
|
|
3901
|
+
/* @__PURE__ */ i.jsx(Va, { children: /* @__PURE__ */ i.jsx(Ha, { placeholder: "" }) }),
|
|
3902
|
+
/* @__PURE__ */ i.jsx(Wa, { children: /* @__PURE__ */ i.jsx(Ba, {}) })
|
|
3903
3903
|
] }),
|
|
3904
|
-
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(
|
|
3904
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(ka, { children: /* @__PURE__ */ i.jsx(La, { children: a.items.map((l) => /* @__PURE__ */ i.jsxs(Na, { item: l.value, children: [
|
|
3905
3905
|
l.label,
|
|
3906
3906
|
/* @__PURE__ */ i.jsx(ee.ItemIndicator, {})
|
|
3907
3907
|
] }, l.value)) }) }) })
|
|
@@ -3917,8 +3917,8 @@ function Wa({
|
|
|
3917
3917
|
page: n,
|
|
3918
3918
|
siblingCount: s,
|
|
3919
3919
|
onPageChange: (l) => r && r(l.page),
|
|
3920
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
3921
|
-
/* @__PURE__ */ i.jsx(
|
|
3920
|
+
children: /* @__PURE__ */ i.jsxs(Eo, { size: "sm", variant: "ghost", children: [
|
|
3921
|
+
/* @__PURE__ */ i.jsx(za, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(sa, { size: 18 }) }) }),
|
|
3922
3922
|
/* @__PURE__ */ i.jsx(
|
|
3923
3923
|
zt.Items,
|
|
3924
3924
|
{
|
|
@@ -3933,14 +3933,14 @@ function Wa({
|
|
|
3933
3933
|
)
|
|
3934
3934
|
}
|
|
3935
3935
|
),
|
|
3936
|
-
/* @__PURE__ */ i.jsx(
|
|
3936
|
+
/* @__PURE__ */ i.jsx(Pa, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Next page", children: /* @__PURE__ */ i.jsx(aa, { size: 18 }) }) })
|
|
3937
3937
|
] })
|
|
3938
3938
|
}
|
|
3939
3939
|
)
|
|
3940
3940
|
] }) });
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3943
|
-
function
|
|
3942
|
+
const Ga = b($e.Item), Xa = b($e.Content), qa = b($e.Positioner), Ka = b($e.Trigger);
|
|
3943
|
+
function Ja({
|
|
3944
3944
|
data: e = [],
|
|
3945
3945
|
actions: t = [],
|
|
3946
3946
|
actionConfig: n,
|
|
@@ -3957,11 +3957,11 @@ function qa({
|
|
|
3957
3957
|
children: [
|
|
3958
3958
|
o.filter((a) => s[a.id]).map((a) => /* @__PURE__ */ i.jsx(le.Cell, { children: c[a.id] }, a.id)),
|
|
3959
3959
|
n?.showActionColumn && /* @__PURE__ */ i.jsx(le.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs($e.Root, { children: [
|
|
3960
|
-
/* @__PURE__ */ i.jsx(
|
|
3961
|
-
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(
|
|
3960
|
+
/* @__PURE__ */ i.jsx(Ka, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(ha, { size: 16 }) }) }),
|
|
3961
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(qa, { children: /* @__PURE__ */ i.jsx(Xa, { children: t.filter(
|
|
3962
3962
|
(a) => typeof a.visible == "function" ? a.visible(c.__raw) : a.visible !== !1
|
|
3963
3963
|
).map((a) => /* @__PURE__ */ i.jsxs(
|
|
3964
|
-
|
|
3964
|
+
Ga,
|
|
3965
3965
|
{
|
|
3966
3966
|
onClick: () => a.onClick(c.__raw),
|
|
3967
3967
|
colorScheme: a.colorScheme,
|
|
@@ -3980,13 +3980,13 @@ function qa({
|
|
|
3980
3980
|
c.__key || c.id
|
|
3981
3981
|
)) });
|
|
3982
3982
|
}
|
|
3983
|
-
function
|
|
3983
|
+
function Za({
|
|
3984
3984
|
rows: e = 6,
|
|
3985
3985
|
columns: t
|
|
3986
3986
|
}) {
|
|
3987
|
-
return /* @__PURE__ */ i.jsx(le.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ i.jsx(le.Row, { children: Array.from({ length: t }).map((o, s) => /* @__PURE__ */ i.jsx(le.Cell, { children: /* @__PURE__ */ i.jsx(
|
|
3987
|
+
return /* @__PURE__ */ i.jsx(le.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ i.jsx(le.Row, { children: Array.from({ length: t }).map((o, s) => /* @__PURE__ */ i.jsx(le.Cell, { children: /* @__PURE__ */ i.jsx(_o, { height: "25px" }) }, s)) }, r)) });
|
|
3988
3988
|
}
|
|
3989
|
-
function
|
|
3989
|
+
function nu({
|
|
3990
3990
|
tableId: e,
|
|
3991
3991
|
data: t = [],
|
|
3992
3992
|
headers: n = [],
|
|
@@ -4007,11 +4007,11 @@ function Ql({
|
|
|
4007
4007
|
onRowSelect: y
|
|
4008
4008
|
}) {
|
|
4009
4009
|
F(() => {
|
|
4010
|
-
|
|
4010
|
+
Pi(e);
|
|
4011
4011
|
}, [e]), F(() => {
|
|
4012
|
-
|
|
4012
|
+
zi(t, n);
|
|
4013
4013
|
}, [t, n]), F(() => {
|
|
4014
|
-
g &&
|
|
4014
|
+
g && Yi(g);
|
|
4015
4015
|
}, [g]);
|
|
4016
4016
|
const { sortColumn: j, sortDirection: R, data: $, columnOrder: T } = St(be), E = G(() => {
|
|
4017
4017
|
const S = [...$], B = Math.max(1, l || 1);
|
|
@@ -4030,13 +4030,13 @@ function Ql({
|
|
|
4030
4030
|
const { active: B, over: U } = S;
|
|
4031
4031
|
if (!U || B.id === U.id) return;
|
|
4032
4032
|
const M = T.findIndex((_) => _.id === B.id), D = T.findIndex((_) => _.id === U.id), w = Zt(T, M, D);
|
|
4033
|
-
|
|
4033
|
+
Fi(w);
|
|
4034
4034
|
}, A = r && !s, V = s && !r, P = !r && !s && E.length === 0;
|
|
4035
4035
|
return /* @__PURE__ */ i.jsx(Xr, { collisionDetection: Ar, onDragEnd: I, children: /* @__PURE__ */ i.jsx(
|
|
4036
4036
|
Zr,
|
|
4037
4037
|
{
|
|
4038
4038
|
items: T.map((S) => S.id),
|
|
4039
|
-
strategy:
|
|
4039
|
+
strategy: pi,
|
|
4040
4040
|
children: /* @__PURE__ */ i.jsxs(Ce, { flex: "1", minH: 0, display: "flex", flexDirection: "column", p: 2, children: [
|
|
4041
4041
|
/* @__PURE__ */ i.jsxs(Ce, { flex: "1", minH: 0, position: "relative", overflow: "auto", children: [
|
|
4042
4042
|
A && /* @__PURE__ */ i.jsx(
|
|
@@ -4049,12 +4049,12 @@ function Ql({
|
|
|
4049
4049
|
justifyContent: "center",
|
|
4050
4050
|
zIndex: 10,
|
|
4051
4051
|
bg: "whiteAlpha.600",
|
|
4052
|
-
children: o ?? /* @__PURE__ */ i.jsx(
|
|
4052
|
+
children: o ?? /* @__PURE__ */ i.jsx(_r, {})
|
|
4053
4053
|
}
|
|
4054
4054
|
),
|
|
4055
4055
|
/* @__PURE__ */ i.jsxs(le.Root, { variant: "outline", w: "100%", size: m, children: [
|
|
4056
|
-
/* @__PURE__ */ i.jsx(
|
|
4057
|
-
V ? /* @__PURE__ */ i.jsx(
|
|
4056
|
+
/* @__PURE__ */ i.jsx(Ia, {}),
|
|
4057
|
+
V ? /* @__PURE__ */ i.jsx(Za, { rows: u, columns: n.length + (a ? 2 : 0) }) : P ? /* @__PURE__ */ i.jsx(le.Body, { children: /* @__PURE__ */ i.jsx(le.Row, { children: /* @__PURE__ */ i.jsx(le.Cell, { colSpan: n.length + (a ? 1 : 0), children: /* @__PURE__ */ i.jsx(
|
|
4058
4058
|
Ce,
|
|
4059
4059
|
{
|
|
4060
4060
|
display: "flex",
|
|
@@ -4065,7 +4065,7 @@ function Ql({
|
|
|
4065
4065
|
children: c
|
|
4066
4066
|
}
|
|
4067
4067
|
) }) }) }) : /* @__PURE__ */ i.jsx(
|
|
4068
|
-
|
|
4068
|
+
Ja,
|
|
4069
4069
|
{
|
|
4070
4070
|
data: E,
|
|
4071
4071
|
actions: a,
|
|
@@ -4076,7 +4076,7 @@ function Ql({
|
|
|
4076
4076
|
] })
|
|
4077
4077
|
] }),
|
|
4078
4078
|
/* @__PURE__ */ i.jsx(Ce, { mt: 0.5, children: /* @__PURE__ */ i.jsx(
|
|
4079
|
-
|
|
4079
|
+
Ua,
|
|
4080
4080
|
{
|
|
4081
4081
|
totalCount: h,
|
|
4082
4082
|
pageSize: u,
|
|
@@ -4092,7 +4092,7 @@ function Ql({
|
|
|
4092
4092
|
}
|
|
4093
4093
|
) });
|
|
4094
4094
|
}
|
|
4095
|
-
const
|
|
4095
|
+
const Qa = b(Re.Root), ec = b(Re.HiddenInput), tc = b(Re.Control), nc = b(Re.Label), rc = ({
|
|
4096
4096
|
value: e,
|
|
4097
4097
|
onChange: t,
|
|
4098
4098
|
size: n = "sm",
|
|
@@ -4101,10 +4101,10 @@ const Ja = b(Re.Root), Za = b(Re.HiddenInput), Qa = b(Re.Control), ec = b(Re.Lab
|
|
|
4101
4101
|
isDisabled: s,
|
|
4102
4102
|
required: c,
|
|
4103
4103
|
errorText: a
|
|
4104
|
-
}) => /* @__PURE__ */ i.jsxs(
|
|
4105
|
-
/* @__PURE__ */ i.jsx(
|
|
4104
|
+
}) => /* @__PURE__ */ i.jsxs(Qa, { value: e, onChange: t, size: n, children: [
|
|
4105
|
+
/* @__PURE__ */ i.jsx(ec, {}),
|
|
4106
4106
|
/* @__PURE__ */ i.jsx(
|
|
4107
|
-
|
|
4107
|
+
tc,
|
|
4108
4108
|
{
|
|
4109
4109
|
disabled: s,
|
|
4110
4110
|
required: c,
|
|
@@ -4112,9 +4112,9 @@ const Ja = b(Re.Root), Za = b(Re.HiddenInput), Qa = b(Re.Control), ec = b(Re.Lab
|
|
|
4112
4112
|
helperText: o
|
|
4113
4113
|
}
|
|
4114
4114
|
),
|
|
4115
|
-
r && /* @__PURE__ */ i.jsx(
|
|
4116
|
-
] }),
|
|
4117
|
-
function
|
|
4115
|
+
r && /* @__PURE__ */ i.jsx(nc, { children: r })
|
|
4116
|
+
] }), oc = b(Te.Root), sc = b(Te.Control), ic = b(Te.Input), ac = b(Te.IndicatorGroup), cc = b(Te.ClearTrigger), lc = b(Te.Trigger), uc = b(Te.Positioner), dc = b(Te.Content);
|
|
4117
|
+
function fc({
|
|
4118
4118
|
label: e,
|
|
4119
4119
|
size: t = "sm",
|
|
4120
4120
|
width: n = "100%",
|
|
@@ -4139,7 +4139,7 @@ function uc({
|
|
|
4139
4139
|
contentProps: $,
|
|
4140
4140
|
itemProps: T
|
|
4141
4141
|
}) {
|
|
4142
|
-
const [E, I] = K(""), { collection: A, set: V } =
|
|
4142
|
+
const [E, I] = K(""), { collection: A, set: V } = Oo({
|
|
4143
4143
|
initialItems: o,
|
|
4144
4144
|
itemToString: s,
|
|
4145
4145
|
itemToValue: c
|
|
@@ -4153,7 +4153,7 @@ function uc({
|
|
|
4153
4153
|
}, [P, V]), F(() => {
|
|
4154
4154
|
l && I(s(l));
|
|
4155
4155
|
}, [l, s]), /* @__PURE__ */ i.jsxs(
|
|
4156
|
-
|
|
4156
|
+
oc,
|
|
4157
4157
|
{
|
|
4158
4158
|
width: n,
|
|
4159
4159
|
size: t,
|
|
@@ -4174,17 +4174,17 @@ function uc({
|
|
|
4174
4174
|
...y,
|
|
4175
4175
|
children: [
|
|
4176
4176
|
x && e && /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: e }),
|
|
4177
|
-
/* @__PURE__ */ i.jsxs(
|
|
4178
|
-
/* @__PURE__ */ i.jsx(
|
|
4179
|
-
/* @__PURE__ */ i.jsxs(
|
|
4180
|
-
/* @__PURE__ */ i.jsx(
|
|
4181
|
-
/* @__PURE__ */ i.jsx(
|
|
4177
|
+
/* @__PURE__ */ i.jsxs(sc, { ...R, children: [
|
|
4178
|
+
/* @__PURE__ */ i.jsx(ic, { placeholder: m ?? "Type to search", ...j }),
|
|
4179
|
+
/* @__PURE__ */ i.jsxs(ac, { children: [
|
|
4180
|
+
/* @__PURE__ */ i.jsx(cc, {}),
|
|
4181
|
+
/* @__PURE__ */ i.jsx(lc, {})
|
|
4182
4182
|
] })
|
|
4183
4183
|
] }),
|
|
4184
|
-
/* @__PURE__ */ i.jsx(
|
|
4184
|
+
/* @__PURE__ */ i.jsx(uc, { children: /* @__PURE__ */ i.jsxs(dc, { minW: "sm", ...$, children: [
|
|
4185
4185
|
u ? /* @__PURE__ */ i.jsxs(he, { p: "2", children: [
|
|
4186
|
-
/* @__PURE__ */ i.jsx(
|
|
4187
|
-
/* @__PURE__ */ i.jsx(
|
|
4186
|
+
/* @__PURE__ */ i.jsx(_r, { size: "xs", borderWidth: "1px" }),
|
|
4187
|
+
/* @__PURE__ */ i.jsx(To, { children: "Loading..." })
|
|
4188
4188
|
] }) : f ? /* @__PURE__ */ i.jsx(q, { p: "2", color: "red.500", fontSize: "sm", children: d || "Something went wrong" }) : A.items.map((S) => /* @__PURE__ */ i.jsxs(Te.Item, { item: S, ...T, children: [
|
|
4189
4189
|
a(S),
|
|
4190
4190
|
/* @__PURE__ */ i.jsx(Te.ItemIndicator, {})
|
|
@@ -4195,7 +4195,7 @@ function uc({
|
|
|
4195
4195
|
}
|
|
4196
4196
|
);
|
|
4197
4197
|
}
|
|
4198
|
-
const oe = " to ",
|
|
4198
|
+
const oe = " to ", mr = 10, He = {
|
|
4199
4199
|
DAY_MAX: 31,
|
|
4200
4200
|
MONTH_MAX: 12,
|
|
4201
4201
|
YEAR_MIN: 1900,
|
|
@@ -4207,13 +4207,13 @@ const oe = " to ", xr = 10, He = {
|
|
|
4207
4207
|
month: e.getMonth() + 1,
|
|
4208
4208
|
day: e.getDate()
|
|
4209
4209
|
};
|
|
4210
|
-
},
|
|
4210
|
+
}, xr = () => {
|
|
4211
4211
|
const { year: e, month: t, day: n } = An();
|
|
4212
4212
|
return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
|
|
4213
|
-
},
|
|
4213
|
+
}, hc = () => {
|
|
4214
4214
|
const { year: e, month: t, day: n } = An();
|
|
4215
4215
|
return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
|
|
4216
|
-
},
|
|
4216
|
+
}, gc = (e, t) => {
|
|
4217
4217
|
const n = e.length, r = parseInt(e);
|
|
4218
4218
|
if (!e || isNaN(r)) return t;
|
|
4219
4219
|
if (n === 4)
|
|
@@ -4229,12 +4229,12 @@ const oe = " to ", xr = 10, He = {
|
|
|
4229
4229
|
if (n.length === 0) return null;
|
|
4230
4230
|
const { year: r, month: o, day: s } = An();
|
|
4231
4231
|
let c, a, l;
|
|
4232
|
-
return n.length === 1 ? (c = parseInt(n[0]) || s, a = o, l = r) : n.length === 2 ? (c = parseInt(n[0]) || s, a = parseInt(n[1]) || o, l = r) : (c = parseInt(n[0]) || s, a = parseInt(n[1]) || o, l =
|
|
4232
|
+
return n.length === 1 ? (c = parseInt(n[0]) || s, a = o, l = r) : n.length === 2 ? (c = parseInt(n[0]) || s, a = parseInt(n[1]) || o, l = r) : (c = parseInt(n[0]) || s, a = parseInt(n[1]) || o, l = gc(n[2], r)), a = Math.max(1, Math.min(He.MONTH_MAX, a)), c = Math.max(1, Math.min(He.DAY_MAX, c)), `${l}-${String(a).padStart(2, "0")}-${String(c).padStart(2, "0")}`;
|
|
4233
4233
|
}, De = (e) => {
|
|
4234
4234
|
if (!e) return "";
|
|
4235
4235
|
const [t, n, r] = e.split("-");
|
|
4236
4236
|
return `${r}-${n}-${t}`;
|
|
4237
|
-
},
|
|
4237
|
+
}, pc = (e, t) => {
|
|
4238
4238
|
if (e[0]?.length > 0) {
|
|
4239
4239
|
const n = parseInt(e[0]);
|
|
4240
4240
|
if (isNaN(n) || n === 0 || e[0].length === 2 && n > He.DAY_MAX)
|
|
@@ -4252,15 +4252,15 @@ const oe = " to ", xr = 10, He = {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
return null;
|
|
4254
4254
|
}, ft = (e) => {
|
|
4255
|
-
let t = e.replace(/[^\d-]/g, "").substring(0,
|
|
4255
|
+
let t = e.replace(/[^\d-]/g, "").substring(0, mr);
|
|
4256
4256
|
if (t.length >= 3 && t[2] !== "-" && (t = t.substring(0, 2) + "-" + t.substring(2).replace(/-/g, "")), t.length >= 6 && t[5] !== "-") {
|
|
4257
4257
|
const o = t.split("-");
|
|
4258
4258
|
o.length >= 2 && (t = `${o[0]}-${o[1].substring(0, 2)}-${o[1].substring(2)}${o[2] || ""}`);
|
|
4259
4259
|
}
|
|
4260
4260
|
const n = t.split("-");
|
|
4261
|
-
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0,
|
|
4262
|
-
},
|
|
4263
|
-
function
|
|
4261
|
+
return n[0] = n[0]?.substring(0, 2) || "", n[1] = n[1]?.substring(0, 2) || "", n[2] = n[2]?.substring(0, 4) || "", t = n.filter((o) => o !== "").join("-"), t = t.substring(0, mr), pc(n, e) || t;
|
|
4262
|
+
}, vc = b(Ut.Root), mc = b(Ut.Trigger), xc = b(Ut.Content), bc = b(Ut.Positioner);
|
|
4263
|
+
function yc({
|
|
4264
4264
|
value: e,
|
|
4265
4265
|
onChange: t,
|
|
4266
4266
|
disabled: n = !1
|
|
@@ -4301,7 +4301,7 @@ function xc({
|
|
|
4301
4301
|
} else if (y && !x)
|
|
4302
4302
|
c(`${De(y)}${oe}`), t(void 0);
|
|
4303
4303
|
else if (y && x) {
|
|
4304
|
-
const R =
|
|
4304
|
+
const R = hc(), [$, T] = R < y ? [R, y] : [y, R], E = `${De($)}${oe}${De(
|
|
4305
4305
|
T
|
|
4306
4306
|
)}`;
|
|
4307
4307
|
c(E), t(`${$}|${T}`);
|
|
@@ -4316,7 +4316,7 @@ function xc({
|
|
|
4316
4316
|
v.preventDefault();
|
|
4317
4317
|
const g = u.current?.selectionStart || 0, x = s.indexOf(oe);
|
|
4318
4318
|
if (!s.trim()) {
|
|
4319
|
-
c(`${
|
|
4319
|
+
c(`${xr()}${oe}`);
|
|
4320
4320
|
return;
|
|
4321
4321
|
}
|
|
4322
4322
|
if (x === -1) {
|
|
@@ -4332,7 +4332,7 @@ function xc({
|
|
|
4332
4332
|
if (s.substring(x + oe.length).trim())
|
|
4333
4333
|
d(), u.current?.blur();
|
|
4334
4334
|
else {
|
|
4335
|
-
const j = s.substring(0, x + oe.length) +
|
|
4335
|
+
const j = s.substring(0, x + oe.length) + xr();
|
|
4336
4336
|
c(j), setTimeout(() => {
|
|
4337
4337
|
d(), u.current?.blur();
|
|
4338
4338
|
}, 0);
|
|
@@ -4340,30 +4340,30 @@ function xc({
|
|
|
4340
4340
|
}, h = () => {
|
|
4341
4341
|
c(""), t(void 0);
|
|
4342
4342
|
};
|
|
4343
|
-
return /* @__PURE__ */ i.jsx(
|
|
4343
|
+
return /* @__PURE__ */ i.jsx(Or, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Wn, { position: "revert", children: [
|
|
4344
4344
|
/* @__PURE__ */ i.jsxs(
|
|
4345
|
-
|
|
4345
|
+
vc,
|
|
4346
4346
|
{
|
|
4347
4347
|
open: a,
|
|
4348
4348
|
onEscapeKeyDown: () => {
|
|
4349
4349
|
l(!1);
|
|
4350
4350
|
},
|
|
4351
4351
|
children: [
|
|
4352
|
-
/* @__PURE__ */ i.jsx(
|
|
4352
|
+
/* @__PURE__ */ i.jsx(mc, { asChild: !0, children: /* @__PURE__ */ i.jsx(
|
|
4353
4353
|
Oe,
|
|
4354
4354
|
{
|
|
4355
4355
|
size: "sm",
|
|
4356
4356
|
variant: "ghost",
|
|
4357
4357
|
"aria-label": "Date range help",
|
|
4358
4358
|
onClick: () => l((v) => !v),
|
|
4359
|
-
children: /* @__PURE__ */ i.jsx(
|
|
4359
|
+
children: /* @__PURE__ */ i.jsx(vr, { size: 16 })
|
|
4360
4360
|
}
|
|
4361
4361
|
) }),
|
|
4362
|
-
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(
|
|
4363
|
-
/* @__PURE__ */ i.jsx(
|
|
4362
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(bc, { children: /* @__PURE__ */ i.jsxs(xc, { p: 4, children: [
|
|
4363
|
+
/* @__PURE__ */ i.jsx(Mo, {}),
|
|
4364
4364
|
/* @__PURE__ */ i.jsxs(Le, { align: "start", gap: 4, children: [
|
|
4365
4365
|
/* @__PURE__ */ i.jsxs(he, { children: [
|
|
4366
|
-
/* @__PURE__ */ i.jsx(
|
|
4366
|
+
/* @__PURE__ */ i.jsx(vr, { size: 16 }),
|
|
4367
4367
|
/* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4368
4368
|
] }),
|
|
4369
4369
|
/* @__PURE__ */ i.jsxs(Le, { align: "start", gap: 1, children: [
|
|
@@ -4421,7 +4421,7 @@ function xc({
|
|
|
4421
4421
|
) })
|
|
4422
4422
|
] }) }) });
|
|
4423
4423
|
}
|
|
4424
|
-
const
|
|
4424
|
+
const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorText), br = ({
|
|
4425
4425
|
icon: e,
|
|
4426
4426
|
value: t,
|
|
4427
4427
|
onChange: n,
|
|
@@ -4435,9 +4435,9 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4435
4435
|
required: f = !1,
|
|
4436
4436
|
errorText: d,
|
|
4437
4437
|
visible: m
|
|
4438
|
-
}) => /* @__PURE__ */ i.jsxs(
|
|
4439
|
-
m && /* @__PURE__ */ i.jsx(
|
|
4440
|
-
/* @__PURE__ */ i.jsx(
|
|
4438
|
+
}) => /* @__PURE__ */ i.jsxs(wc, { width: c, children: [
|
|
4439
|
+
m && /* @__PURE__ */ i.jsx(Sc, { children: a }),
|
|
4440
|
+
/* @__PURE__ */ i.jsx(Or, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4441
4441
|
Cn,
|
|
4442
4442
|
{
|
|
4443
4443
|
value: t,
|
|
@@ -4449,9 +4449,9 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4449
4449
|
required: f
|
|
4450
4450
|
}
|
|
4451
4451
|
) }),
|
|
4452
|
-
d && /* @__PURE__ */ i.jsx(
|
|
4453
|
-
l && /* @__PURE__ */ i.jsx(
|
|
4454
|
-
] }),
|
|
4452
|
+
d && /* @__PURE__ */ i.jsx(Cc, { fontSize: "xs", children: d }),
|
|
4453
|
+
l && /* @__PURE__ */ i.jsx(Dc, { fontSize: "xs", children: l })
|
|
4454
|
+
] }), jc = b(Ge.Root), Rc = b(Ge.HelperText), Ec = b(Ge.ErrorText), _c = b(ee.Root), Oc = b(ee.Label), Tc = b(ee.Control), Mc = b(ee.Trigger), $c = b(ee.ValueText), Ic = b(ee.IndicatorGroup), Ac = b(ee.Indicator), kc = b(ee.Content), Lc = b(ee.Item), Nc = b(ee.ItemIndicator), zc = b(ee.HiddenSelect), Pc = b(ee.Positioner), Yc = ({
|
|
4455
4455
|
options: e = [],
|
|
4456
4456
|
label: t,
|
|
4457
4457
|
value: n,
|
|
@@ -4466,12 +4466,12 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4466
4466
|
errorText: d,
|
|
4467
4467
|
visible: m
|
|
4468
4468
|
}) => {
|
|
4469
|
-
const h =
|
|
4469
|
+
const h = Er({
|
|
4470
4470
|
items: e
|
|
4471
4471
|
});
|
|
4472
|
-
return /* @__PURE__ */ i.jsxs(
|
|
4472
|
+
return /* @__PURE__ */ i.jsxs(jc, { disabled: u, required: f, children: [
|
|
4473
4473
|
/* @__PURE__ */ i.jsxs(
|
|
4474
|
-
|
|
4474
|
+
_c,
|
|
4475
4475
|
{
|
|
4476
4476
|
collection: h,
|
|
4477
4477
|
variant: a,
|
|
@@ -4480,34 +4480,34 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4480
4480
|
value: n ? [n] : [],
|
|
4481
4481
|
onValueChange: (v) => r?.(v.value[0]),
|
|
4482
4482
|
children: [
|
|
4483
|
-
/* @__PURE__ */ i.jsx(
|
|
4484
|
-
m && /* @__PURE__ */ i.jsx(
|
|
4485
|
-
/* @__PURE__ */ i.jsxs(
|
|
4486
|
-
/* @__PURE__ */ i.jsx(
|
|
4487
|
-
/* @__PURE__ */ i.jsx(
|
|
4483
|
+
/* @__PURE__ */ i.jsx(zc, {}),
|
|
4484
|
+
m && /* @__PURE__ */ i.jsx(Oc, { children: t }),
|
|
4485
|
+
/* @__PURE__ */ i.jsxs(Tc, { children: [
|
|
4486
|
+
/* @__PURE__ */ i.jsx(Mc, { children: /* @__PURE__ */ i.jsx($c, { placeholder: o }) }),
|
|
4487
|
+
/* @__PURE__ */ i.jsx(Ic, { children: /* @__PURE__ */ i.jsx(Ac, {}) })
|
|
4488
4488
|
] }),
|
|
4489
|
-
/* @__PURE__ */ i.jsx(
|
|
4489
|
+
/* @__PURE__ */ i.jsx(Pc, { children: /* @__PURE__ */ i.jsx(kc, { children: h.items.map((v) => /* @__PURE__ */ i.jsxs(Lc, { item: v, children: [
|
|
4490
4490
|
v.label,
|
|
4491
|
-
/* @__PURE__ */ i.jsx(
|
|
4491
|
+
/* @__PURE__ */ i.jsx(Nc, {})
|
|
4492
4492
|
] }, v.value)) }) })
|
|
4493
4493
|
]
|
|
4494
4494
|
}
|
|
4495
4495
|
),
|
|
4496
|
-
l && /* @__PURE__ */ i.jsx(
|
|
4497
|
-
d && /* @__PURE__ */ i.jsx(
|
|
4496
|
+
l && /* @__PURE__ */ i.jsx(Rc, { children: l }),
|
|
4497
|
+
d && /* @__PURE__ */ i.jsx(Ec, { children: d })
|
|
4498
4498
|
] });
|
|
4499
|
-
}, lo = (e = "default") => `FILTER_PRESETS_${e}`,
|
|
4499
|
+
}, lo = (e = "default") => `FILTER_PRESETS_${e}`, Fc = (e) => {
|
|
4500
4500
|
if (!e) return [];
|
|
4501
4501
|
try {
|
|
4502
4502
|
return JSON.parse(e);
|
|
4503
4503
|
} catch {
|
|
4504
4504
|
return [];
|
|
4505
4505
|
}
|
|
4506
|
-
},
|
|
4506
|
+
}, Vc = (e) => typeof window > "u" ? [] : Fc(localStorage.getItem(lo(e))), Bt = new ro({}), Qt = (e) => {
|
|
4507
4507
|
const t = Bt.state;
|
|
4508
4508
|
if (e in t)
|
|
4509
4509
|
return t[e];
|
|
4510
|
-
const n =
|
|
4510
|
+
const n = Vc(e);
|
|
4511
4511
|
return Bt.setState((r) => ({
|
|
4512
4512
|
...r,
|
|
4513
4513
|
[e]: n
|
|
@@ -4517,18 +4517,18 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4517
4517
|
...n,
|
|
4518
4518
|
[e]: t
|
|
4519
4519
|
})), typeof window < "u" && localStorage.setItem(lo(e), JSON.stringify(t));
|
|
4520
|
-
},
|
|
4520
|
+
}, Hc = (e, t) => {
|
|
4521
4521
|
const n = [t, ...Qt(e)];
|
|
4522
4522
|
kn(e, n);
|
|
4523
|
-
},
|
|
4523
|
+
}, Wc = (e, t) => {
|
|
4524
4524
|
const n = Qt(e).filter((r) => r.id !== t);
|
|
4525
4525
|
kn(e, n);
|
|
4526
|
-
},
|
|
4526
|
+
}, ru = (e, t, n) => {
|
|
4527
4527
|
const r = Qt(e).map(
|
|
4528
4528
|
(o) => o.id === t ? n(o) : o
|
|
4529
4529
|
);
|
|
4530
4530
|
kn(e, r);
|
|
4531
|
-
},
|
|
4531
|
+
}, Bc = b(Re.Root), Uc = b(Re.HiddenInput), Gc = b(Re.Control), Xc = b(xt.Root), qc = b(xt.Track), Kc = b(xt.Range), Jc = b(xt.Thumbs), Zc = b(xt.Control), Qc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4532
4532
|
const { attributes: r, listeners: o, setNodeRef: s, transform: c, transition: a } = eo({
|
|
4533
4533
|
id: e.id
|
|
4534
4534
|
}), l = {
|
|
@@ -4555,14 +4555,14 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4555
4555
|
/* @__PURE__ */ i.jsxs(he, { justify: "space-between", children: [
|
|
4556
4556
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Visible" }),
|
|
4557
4557
|
/* @__PURE__ */ i.jsxs(
|
|
4558
|
-
|
|
4558
|
+
Bc,
|
|
4559
4559
|
{
|
|
4560
4560
|
checked: e.visible,
|
|
4561
4561
|
size: "sm",
|
|
4562
4562
|
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4563
4563
|
children: [
|
|
4564
|
-
/* @__PURE__ */ i.jsx(
|
|
4565
|
-
/* @__PURE__ */ i.jsx(
|
|
4564
|
+
/* @__PURE__ */ i.jsx(Uc, {}),
|
|
4565
|
+
/* @__PURE__ */ i.jsx(Gc, {})
|
|
4566
4566
|
]
|
|
4567
4567
|
}
|
|
4568
4568
|
)
|
|
@@ -4570,16 +4570,16 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4570
4570
|
/* @__PURE__ */ i.jsxs(Le, { align: "stretch", gap: 1, children: [
|
|
4571
4571
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: "Size" }),
|
|
4572
4572
|
/* @__PURE__ */ i.jsx(
|
|
4573
|
-
|
|
4573
|
+
Xc,
|
|
4574
4574
|
{
|
|
4575
4575
|
min: 1,
|
|
4576
4576
|
max: 5,
|
|
4577
4577
|
step: 0.5,
|
|
4578
4578
|
value: [e.size ?? 1],
|
|
4579
4579
|
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4580
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
4581
|
-
/* @__PURE__ */ i.jsx(
|
|
4582
|
-
/* @__PURE__ */ i.jsx(
|
|
4580
|
+
children: /* @__PURE__ */ i.jsxs(Zc, { children: [
|
|
4581
|
+
/* @__PURE__ */ i.jsx(qc, { children: /* @__PURE__ */ i.jsx(Kc, {}) }),
|
|
4582
|
+
/* @__PURE__ */ i.jsx(Jc, {})
|
|
4583
4583
|
] })
|
|
4584
4584
|
}
|
|
4585
4585
|
)
|
|
@@ -4587,13 +4587,13 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4587
4587
|
]
|
|
4588
4588
|
}
|
|
4589
4589
|
);
|
|
4590
|
-
},
|
|
4590
|
+
}, el = b(Ie.Root), tl = b(Ie.Trigger), nl = b(Ie.Backdrop), rl = b(Ie.Positioner), ol = b(Ie.Content), sl = b(Ie.Header), il = b(Ie.Title), al = b(Ie.Body), cl = b(Ie.Footer), ll = b(Ie.CloseTrigger), ul = b(Gt.Root), dl = b(Gt.List), gn = b(Gt.Trigger), pn = b(Gt.Content), uo = (e, t) => {
|
|
4591
4591
|
if (e.customComponent)
|
|
4592
4592
|
return e.customComponent;
|
|
4593
4593
|
switch (e.type) {
|
|
4594
4594
|
case "text":
|
|
4595
4595
|
return /* @__PURE__ */ i.jsx(
|
|
4596
|
-
|
|
4596
|
+
br,
|
|
4597
4597
|
{
|
|
4598
4598
|
placeholder: e.label,
|
|
4599
4599
|
value: e.value,
|
|
@@ -4603,10 +4603,10 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4603
4603
|
}
|
|
4604
4604
|
);
|
|
4605
4605
|
case "number":
|
|
4606
|
-
return /* @__PURE__ */ i.jsx(
|
|
4606
|
+
return /* @__PURE__ */ i.jsx(br, { label: e.label, value: e.value, onChange: e.onChange });
|
|
4607
4607
|
case "checkbox":
|
|
4608
4608
|
return /* @__PURE__ */ i.jsx(
|
|
4609
|
-
|
|
4609
|
+
rc,
|
|
4610
4610
|
{
|
|
4611
4611
|
label: e.label,
|
|
4612
4612
|
value: e.value,
|
|
@@ -4615,7 +4615,7 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4615
4615
|
);
|
|
4616
4616
|
case "select":
|
|
4617
4617
|
return /* @__PURE__ */ i.jsx(
|
|
4618
|
-
|
|
4618
|
+
Yc,
|
|
4619
4619
|
{
|
|
4620
4620
|
label: e.label,
|
|
4621
4621
|
value: e.value,
|
|
@@ -4627,7 +4627,7 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4627
4627
|
);
|
|
4628
4628
|
case "date":
|
|
4629
4629
|
return /* @__PURE__ */ i.jsx(
|
|
4630
|
-
|
|
4630
|
+
yc,
|
|
4631
4631
|
{
|
|
4632
4632
|
value: e.value,
|
|
4633
4633
|
onChange: e.onChange
|
|
@@ -4635,7 +4635,7 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4635
4635
|
);
|
|
4636
4636
|
case "combobox":
|
|
4637
4637
|
return /* @__PURE__ */ i.jsx(
|
|
4638
|
-
|
|
4638
|
+
fc,
|
|
4639
4639
|
{
|
|
4640
4640
|
visible: !0,
|
|
4641
4641
|
label: e.label,
|
|
@@ -4648,7 +4648,7 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4648
4648
|
default:
|
|
4649
4649
|
return null;
|
|
4650
4650
|
}
|
|
4651
|
-
},
|
|
4651
|
+
}, fl = ({
|
|
4652
4652
|
filterDrawerSize: e = "sm",
|
|
4653
4653
|
onVisibilityChange: t,
|
|
4654
4654
|
onSizeChange: n,
|
|
@@ -4665,34 +4665,34 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4665
4665
|
const v = prompt("Preset name?");
|
|
4666
4666
|
if (!v) return;
|
|
4667
4667
|
const g = o.reduce((x, y) => (x[y.id] = y.value, x), {});
|
|
4668
|
-
|
|
4668
|
+
Hc(s, {
|
|
4669
4669
|
id: crypto.randomUUID(),
|
|
4670
4670
|
name: v,
|
|
4671
4671
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4672
4672
|
values: g
|
|
4673
4673
|
});
|
|
4674
4674
|
};
|
|
4675
|
-
return /* @__PURE__ */ i.jsx(he, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(
|
|
4676
|
-
/* @__PURE__ */ i.jsx(
|
|
4677
|
-
/* @__PURE__ */ i.jsx(
|
|
4675
|
+
return /* @__PURE__ */ i.jsx(he, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(el, { size: e, open: u, onOpenChange: f, children: [
|
|
4676
|
+
/* @__PURE__ */ i.jsx(tl, { asChild: !0, children: /* @__PURE__ */ i.jsxs(Oe, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4677
|
+
/* @__PURE__ */ i.jsx(pa, { size: 16 }),
|
|
4678
4678
|
"Filters"
|
|
4679
4679
|
] }) }),
|
|
4680
4680
|
/* @__PURE__ */ i.jsxs(Ue, { children: [
|
|
4681
|
-
/* @__PURE__ */ i.jsx(
|
|
4682
|
-
/* @__PURE__ */ i.jsx(
|
|
4683
|
-
/* @__PURE__ */ i.jsx(
|
|
4684
|
-
/* @__PURE__ */ i.jsx(
|
|
4685
|
-
/* @__PURE__ */ i.jsxs(
|
|
4681
|
+
/* @__PURE__ */ i.jsx(nl, {}),
|
|
4682
|
+
/* @__PURE__ */ i.jsx(rl, { children: /* @__PURE__ */ i.jsxs(ol, { children: [
|
|
4683
|
+
/* @__PURE__ */ i.jsx(sl, { children: /* @__PURE__ */ i.jsx(il, { children: "Filters" }) }),
|
|
4684
|
+
/* @__PURE__ */ i.jsx(al, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(ul, { defaultValue: "view", children: [
|
|
4685
|
+
/* @__PURE__ */ i.jsxs(dl, { mb: 4, children: [
|
|
4686
4686
|
/* @__PURE__ */ i.jsxs(gn, { value: "view", children: [
|
|
4687
|
-
/* @__PURE__ */ i.jsx(
|
|
4687
|
+
/* @__PURE__ */ i.jsx(xa, { size: 16 }),
|
|
4688
4688
|
"Edit"
|
|
4689
4689
|
] }),
|
|
4690
4690
|
/* @__PURE__ */ i.jsxs(gn, { value: "settings", children: [
|
|
4691
|
-
/* @__PURE__ */ i.jsx(
|
|
4691
|
+
/* @__PURE__ */ i.jsx(Sa, { size: 16 }),
|
|
4692
4692
|
"Settings"
|
|
4693
4693
|
] }),
|
|
4694
4694
|
/* @__PURE__ */ i.jsxs(gn, { value: "presets", children: [
|
|
4695
|
-
/* @__PURE__ */ i.jsx(
|
|
4695
|
+
/* @__PURE__ */ i.jsx(na, { size: 16 }),
|
|
4696
4696
|
"Presets"
|
|
4697
4697
|
] })
|
|
4698
4698
|
] }),
|
|
@@ -4714,7 +4714,7 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4714
4714
|
/* @__PURE__ */ i.jsx(pn, { value: "settings", children: /* @__PURE__ */ i.jsx(
|
|
4715
4715
|
Xr,
|
|
4716
4716
|
{
|
|
4717
|
-
sensors:
|
|
4717
|
+
sensors: ns(ts(In)),
|
|
4718
4718
|
collisionDetection: Ar,
|
|
4719
4719
|
onDragEnd: ({ active: v, over: g }) => {
|
|
4720
4720
|
if (!g || v.id === g.id) return;
|
|
@@ -4725,9 +4725,9 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4725
4725
|
Zr,
|
|
4726
4726
|
{
|
|
4727
4727
|
items: o.map((v) => v.id),
|
|
4728
|
-
strategy:
|
|
4728
|
+
strategy: mi,
|
|
4729
4729
|
children: o.map((v) => /* @__PURE__ */ i.jsx(
|
|
4730
|
-
|
|
4730
|
+
Qc,
|
|
4731
4731
|
{
|
|
4732
4732
|
filter: v,
|
|
4733
4733
|
onVisibilityChange: t,
|
|
@@ -4776,8 +4776,8 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4776
4776
|
size: "xs",
|
|
4777
4777
|
"aria-label": "Delete preset",
|
|
4778
4778
|
variant: "ghost",
|
|
4779
|
-
onClick: () =>
|
|
4780
|
-
children: /* @__PURE__ */ i.jsx(
|
|
4779
|
+
onClick: () => Wc(s, v.id),
|
|
4780
|
+
children: /* @__PURE__ */ i.jsx(da, { size: 14 })
|
|
4781
4781
|
}
|
|
4782
4782
|
)
|
|
4783
4783
|
] })
|
|
@@ -4788,11 +4788,11 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4788
4788
|
/* @__PURE__ */ i.jsx(Be, { size: "sm", colorScheme: "blue", onClick: h, children: "Save Current Filters" })
|
|
4789
4789
|
] }) })
|
|
4790
4790
|
] }) }),
|
|
4791
|
-
/* @__PURE__ */ i.jsx(
|
|
4791
|
+
/* @__PURE__ */ i.jsx(cl, { justify: "space-between", children: /* @__PURE__ */ i.jsx(ll, { asChild: !0, children: /* @__PURE__ */ i.jsx(jn, {}) }) })
|
|
4792
4792
|
] }) })
|
|
4793
4793
|
] })
|
|
4794
4794
|
] }) });
|
|
4795
|
-
},
|
|
4795
|
+
}, ou = ({
|
|
4796
4796
|
title: e,
|
|
4797
4797
|
filters: t,
|
|
4798
4798
|
onVisibilityChange: n,
|
|
@@ -4820,7 +4820,7 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4820
4820
|
h.id
|
|
4821
4821
|
)),
|
|
4822
4822
|
/* @__PURE__ */ i.jsx(
|
|
4823
|
-
|
|
4823
|
+
fl,
|
|
4824
4824
|
{
|
|
4825
4825
|
filterDrawerSize: f,
|
|
4826
4826
|
onVisibilityChange: n,
|
|
@@ -4840,15 +4840,15 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4840
4840
|
)
|
|
4841
4841
|
] })
|
|
4842
4842
|
] });
|
|
4843
|
-
},
|
|
4843
|
+
}, su = (e, t) => {
|
|
4844
4844
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4845
|
-
},
|
|
4845
|
+
}, iu = (e) => {
|
|
4846
4846
|
try {
|
|
4847
4847
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4848
4848
|
} catch {
|
|
4849
4849
|
return [];
|
|
4850
4850
|
}
|
|
4851
|
-
},
|
|
4851
|
+
}, au = ({
|
|
4852
4852
|
onClick: e,
|
|
4853
4853
|
size: t = "xs",
|
|
4854
4854
|
variant: n = "solid",
|
|
@@ -4879,8 +4879,8 @@ const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorT
|
|
|
4879
4879
|
s
|
|
4880
4880
|
] })
|
|
4881
4881
|
}
|
|
4882
|
-
),
|
|
4883
|
-
function
|
|
4882
|
+
), hl = b(re.Root), gl = b(re.Backdrop), pl = b(re.Positioner), vl = b(re.Content), ml = b(re.Header), xl = b(re.Body), bl = b(re.Footer), yl = b(re.Title), wl = b(re.CloseTrigger);
|
|
4883
|
+
function cu({
|
|
4884
4884
|
open: e,
|
|
4885
4885
|
onClose: t,
|
|
4886
4886
|
onConfirm: n,
|
|
@@ -4892,16 +4892,16 @@ function su({
|
|
|
4892
4892
|
isLoading: l = !1,
|
|
4893
4893
|
confirmButtonColorScheme: u = "#4169e1"
|
|
4894
4894
|
}) {
|
|
4895
|
-
return /* @__PURE__ */ i.jsx(
|
|
4896
|
-
/* @__PURE__ */ i.jsx(
|
|
4897
|
-
/* @__PURE__ */ i.jsx(
|
|
4898
|
-
/* @__PURE__ */ i.jsx(
|
|
4899
|
-
/* @__PURE__ */ i.jsx(
|
|
4895
|
+
return /* @__PURE__ */ i.jsx(hl, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ i.jsxs(Ue, { children: [
|
|
4896
|
+
/* @__PURE__ */ i.jsx(gl, {}),
|
|
4897
|
+
/* @__PURE__ */ i.jsx(pl, { children: /* @__PURE__ */ i.jsxs(vl, { maxW: "480px", children: [
|
|
4898
|
+
/* @__PURE__ */ i.jsx(ml, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(yl, { children: r }) }),
|
|
4899
|
+
/* @__PURE__ */ i.jsx(xl, { p: 6, children: /* @__PURE__ */ i.jsxs(Pt, { gap: 4, align: "center", textAlign: "center", children: [
|
|
4900
4900
|
/* @__PURE__ */ i.jsx(Ce, { color: "orange.500", children: a ?? /* @__PURE__ */ i.jsx(co, { size: 40 }) }),
|
|
4901
4901
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", children: o })
|
|
4902
4902
|
] }) }),
|
|
4903
4903
|
/* @__PURE__ */ i.jsxs(
|
|
4904
|
-
|
|
4904
|
+
bl,
|
|
4905
4905
|
{
|
|
4906
4906
|
justifyContent: "flex-end",
|
|
4907
4907
|
gap: 2,
|
|
@@ -4924,12 +4924,12 @@ function su({
|
|
|
4924
4924
|
]
|
|
4925
4925
|
}
|
|
4926
4926
|
),
|
|
4927
|
-
/* @__PURE__ */ i.jsx(
|
|
4927
|
+
/* @__PURE__ */ i.jsx(wl, { asChild: !0, children: /* @__PURE__ */ i.jsx(jn, { size: "sm" }) })
|
|
4928
4928
|
] }) })
|
|
4929
4929
|
] }) });
|
|
4930
4930
|
}
|
|
4931
|
-
const
|
|
4932
|
-
function
|
|
4931
|
+
const Sl = b(re.Root), Dl = b(re.Backdrop), Cl = b(re.Positioner), jl = b(re.Content), Rl = b(re.Header), El = b(re.Body), _l = b(re.Footer), Ol = b(re.Title), Tl = b(re.CloseTrigger);
|
|
4932
|
+
function lu({
|
|
4933
4933
|
open: e,
|
|
4934
4934
|
onClose: t,
|
|
4935
4935
|
onConfirm: n,
|
|
@@ -4941,7 +4941,7 @@ function iu({
|
|
|
4941
4941
|
}) {
|
|
4942
4942
|
const [l, u] = K(""), f = l === s;
|
|
4943
4943
|
return /* @__PURE__ */ i.jsx(
|
|
4944
|
-
|
|
4944
|
+
Sl,
|
|
4945
4945
|
{
|
|
4946
4946
|
open: e,
|
|
4947
4947
|
placement: "center",
|
|
@@ -4949,11 +4949,11 @@ function iu({
|
|
|
4949
4949
|
!d.open && t(), u("");
|
|
4950
4950
|
},
|
|
4951
4951
|
children: /* @__PURE__ */ i.jsxs(Ue, { children: [
|
|
4952
|
-
/* @__PURE__ */ i.jsx(
|
|
4953
|
-
/* @__PURE__ */ i.jsx(
|
|
4954
|
-
/* @__PURE__ */ i.jsx(
|
|
4952
|
+
/* @__PURE__ */ i.jsx(Dl, {}),
|
|
4953
|
+
/* @__PURE__ */ i.jsx(Cl, { children: /* @__PURE__ */ i.jsxs(jl, { maxW: "550px", children: [
|
|
4954
|
+
/* @__PURE__ */ i.jsx(Rl, { borderBottom: "1px solid", borderColor: "#d3d3d3", children: /* @__PURE__ */ i.jsx(Ol, { color: "red.600", children: r }) }),
|
|
4955
4955
|
/* @__PURE__ */ i.jsx(
|
|
4956
|
-
|
|
4956
|
+
El,
|
|
4957
4957
|
{
|
|
4958
4958
|
p: 2,
|
|
4959
4959
|
style: {
|
|
@@ -4992,7 +4992,7 @@ function iu({
|
|
|
4992
4992
|
}
|
|
4993
4993
|
),
|
|
4994
4994
|
/* @__PURE__ */ i.jsxs(
|
|
4995
|
-
|
|
4995
|
+
_l,
|
|
4996
4996
|
{
|
|
4997
4997
|
justifyContent: "flex-end",
|
|
4998
4998
|
gap: 2,
|
|
@@ -5026,31 +5026,32 @@ function iu({
|
|
|
5026
5026
|
]
|
|
5027
5027
|
}
|
|
5028
5028
|
),
|
|
5029
|
-
/* @__PURE__ */ i.jsx(
|
|
5029
|
+
/* @__PURE__ */ i.jsx(Tl, { asChild: !0, children: /* @__PURE__ */ i.jsx(jn, { size: "sm" }) })
|
|
5030
5030
|
] }) })
|
|
5031
5031
|
] })
|
|
5032
5032
|
}
|
|
5033
5033
|
);
|
|
5034
5034
|
}
|
|
5035
|
-
const
|
|
5035
|
+
const Ml = b(re.Root), fo = b(Tr), $l = b(Be), Il = b(re.Title), Al = b(re.Content), ho = ({
|
|
5036
5036
|
open: e,
|
|
5037
5037
|
onClose: t,
|
|
5038
5038
|
title: n,
|
|
5039
5039
|
children: r,
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
/* @__PURE__ */ i.
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
/* @__PURE__ */ i.jsx(
|
|
5047
|
-
/* @__PURE__ */ i.jsx($o, {})
|
|
5040
|
+
size: o = "md"
|
|
5041
|
+
}) => /* @__PURE__ */ i.jsxs(Ml, { open: e, onOpenChange: () => t(), children: [
|
|
5042
|
+
/* @__PURE__ */ i.jsx($o, {}),
|
|
5043
|
+
/* @__PURE__ */ i.jsxs(Al, { maxW: o, borderRadius: "12px", p: "0", children: [
|
|
5044
|
+
/* @__PURE__ */ i.jsx(Io, { px: "20px", py: "16px", borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsxs(Tr, { align: "center", justify: "space-between", children: [
|
|
5045
|
+
/* @__PURE__ */ i.jsx(Il, { fontSize: "16px", fontWeight: "600", children: n }),
|
|
5046
|
+
/* @__PURE__ */ i.jsx(Ao, {})
|
|
5048
5047
|
] }) }),
|
|
5049
|
-
/* @__PURE__ */ i.jsx(
|
|
5050
|
-
/* @__PURE__ */ i.jsx(
|
|
5048
|
+
/* @__PURE__ */ i.jsx(ko, { px: "20px", py: "16px", children: r }),
|
|
5049
|
+
/* @__PURE__ */ i.jsx(Lo, { px: "20px", py: "16px", borderTop: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(fo, { gap: "12px", ml: "auto" }) })
|
|
5051
5050
|
] })
|
|
5052
5051
|
] });
|
|
5053
|
-
|
|
5052
|
+
ho.Actions = fo;
|
|
5053
|
+
ho.Action = $l;
|
|
5054
|
+
function uu({
|
|
5054
5055
|
refetch: e,
|
|
5055
5056
|
isLoading: t = !1,
|
|
5056
5057
|
label: n = "Refresh"
|
|
@@ -5073,7 +5074,7 @@ function cu({
|
|
|
5073
5074
|
onClick: s,
|
|
5074
5075
|
ml: 2,
|
|
5075
5076
|
children: /* @__PURE__ */ i.jsx(
|
|
5076
|
-
|
|
5077
|
+
ya,
|
|
5077
5078
|
{
|
|
5078
5079
|
size: 14,
|
|
5079
5080
|
style: {
|
|
@@ -5084,12 +5085,12 @@ function cu({
|
|
|
5084
5085
|
}
|
|
5085
5086
|
);
|
|
5086
5087
|
}
|
|
5087
|
-
var At = { exports: {} },
|
|
5088
|
-
function
|
|
5089
|
-
return
|
|
5088
|
+
var At = { exports: {} }, kl = At.exports, yr;
|
|
5089
|
+
function Ll() {
|
|
5090
|
+
return yr || (yr = 1, (function(e, t) {
|
|
5090
5091
|
(function(n, r) {
|
|
5091
5092
|
e.exports = r();
|
|
5092
|
-
})(
|
|
5093
|
+
})(kl, (function() {
|
|
5093
5094
|
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", c = "second", a = "minute", l = "hour", u = "day", f = "week", d = "month", m = "quarter", h = "year", v = "date", g = "Invalid Date", x = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
|
|
5094
5095
|
var D = ["th", "st", "nd", "rd"], w = M % 100;
|
|
5095
5096
|
return "[" + M + (D[(w - 20) % 10] || D[w] || D[0]) + "]";
|
|
@@ -5362,14 +5363,14 @@ function Il() {
|
|
|
5362
5363
|
}));
|
|
5363
5364
|
})(At)), At.exports;
|
|
5364
5365
|
}
|
|
5365
|
-
var
|
|
5366
|
-
const en = /* @__PURE__ */ Xt(
|
|
5367
|
-
var kt = { exports: {} },
|
|
5368
|
-
function
|
|
5369
|
-
return
|
|
5366
|
+
var Nl = Ll();
|
|
5367
|
+
const en = /* @__PURE__ */ Xt(Nl);
|
|
5368
|
+
var kt = { exports: {} }, zl = kt.exports, wr;
|
|
5369
|
+
function Pl() {
|
|
5370
|
+
return wr || (wr = 1, (function(e, t) {
|
|
5370
5371
|
(function(n, r) {
|
|
5371
5372
|
e.exports = r();
|
|
5372
|
-
})(
|
|
5373
|
+
})(zl, (function() {
|
|
5373
5374
|
return function(n, r, o) {
|
|
5374
5375
|
n = n || {};
|
|
5375
5376
|
var s = r.prototype, c = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
@@ -5408,14 +5409,14 @@ function Ll() {
|
|
|
5408
5409
|
}));
|
|
5409
5410
|
})(kt)), kt.exports;
|
|
5410
5411
|
}
|
|
5411
|
-
var
|
|
5412
|
-
const
|
|
5413
|
-
var Lt = { exports: {} },
|
|
5414
|
-
function
|
|
5415
|
-
return
|
|
5412
|
+
var Yl = Pl();
|
|
5413
|
+
const Fl = /* @__PURE__ */ Xt(Yl);
|
|
5414
|
+
var Lt = { exports: {} }, Vl = Lt.exports, Sr;
|
|
5415
|
+
function Hl() {
|
|
5416
|
+
return Sr || (Sr = 1, (function(e, t) {
|
|
5416
5417
|
(function(n, r) {
|
|
5417
5418
|
e.exports = r();
|
|
5418
|
-
})(
|
|
5419
|
+
})(Vl, (function() {
|
|
5419
5420
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
5420
5421
|
return function(r, o, s) {
|
|
5421
5422
|
var c = o.prototype, a = c.format;
|
|
@@ -5435,14 +5436,14 @@ function Yl() {
|
|
|
5435
5436
|
}));
|
|
5436
5437
|
})(Lt)), Lt.exports;
|
|
5437
5438
|
}
|
|
5438
|
-
var
|
|
5439
|
-
const
|
|
5440
|
-
var Nt = { exports: {} },
|
|
5441
|
-
function
|
|
5442
|
-
return
|
|
5439
|
+
var Wl = Hl();
|
|
5440
|
+
const Bl = /* @__PURE__ */ Xt(Wl);
|
|
5441
|
+
var Nt = { exports: {} }, Ul = Nt.exports, Dr;
|
|
5442
|
+
function Gl() {
|
|
5443
|
+
return Dr || (Dr = 1, (function(e, t) {
|
|
5443
5444
|
(function(n, r) {
|
|
5444
5445
|
e.exports = r();
|
|
5445
|
-
})(
|
|
5446
|
+
})(Ul, (function() {
|
|
5446
5447
|
return function(n, r) {
|
|
5447
5448
|
var o = r.prototype, s = o.format;
|
|
5448
5449
|
o.format = function(c) {
|
|
@@ -5487,12 +5488,12 @@ function Wl() {
|
|
|
5487
5488
|
}));
|
|
5488
5489
|
})(Nt)), Nt.exports;
|
|
5489
5490
|
}
|
|
5490
|
-
var
|
|
5491
|
-
const
|
|
5492
|
-
en.extend(
|
|
5493
|
-
en.extend(
|
|
5494
|
-
en.extend(
|
|
5495
|
-
const
|
|
5491
|
+
var Xl = Gl();
|
|
5492
|
+
const ql = /* @__PURE__ */ Xt(Xl);
|
|
5493
|
+
en.extend(Fl);
|
|
5494
|
+
en.extend(Bl);
|
|
5495
|
+
en.extend(ql);
|
|
5496
|
+
const Kl = {
|
|
5496
5497
|
date: "DD MMM YYYY",
|
|
5497
5498
|
time: "hh:mm A",
|
|
5498
5499
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5500,7 +5501,7 @@ const Gl = {
|
|
|
5500
5501
|
short: "DD/MM/YY",
|
|
5501
5502
|
relative: ""
|
|
5502
5503
|
};
|
|
5503
|
-
function
|
|
5504
|
+
function Cr({
|
|
5504
5505
|
value: e,
|
|
5505
5506
|
variant: t = "dateTime",
|
|
5506
5507
|
format: n,
|
|
@@ -5508,9 +5509,9 @@ function jr({
|
|
|
5508
5509
|
}) {
|
|
5509
5510
|
if (!e) return r;
|
|
5510
5511
|
const o = en(e);
|
|
5511
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5512
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? Kl[t]) : r;
|
|
5512
5513
|
}
|
|
5513
|
-
function
|
|
5514
|
+
function du({
|
|
5514
5515
|
value: e,
|
|
5515
5516
|
dateVariant: t = "date",
|
|
5516
5517
|
timeVariant: n = "time",
|
|
@@ -5525,19 +5526,19 @@ function lu({
|
|
|
5525
5526
|
timeFontWeight: d = "400"
|
|
5526
5527
|
}) {
|
|
5527
5528
|
return /* @__PURE__ */ i.jsxs(Pt, { gap: 0.5, align: s, children: [
|
|
5528
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children:
|
|
5529
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children: Cr({
|
|
5529
5530
|
value: e,
|
|
5530
5531
|
variant: t,
|
|
5531
5532
|
format: r
|
|
5532
5533
|
}) }),
|
|
5533
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: f, fontWeight: d, color: u, children:
|
|
5534
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: f, fontWeight: d, color: u, children: Cr({
|
|
5534
5535
|
value: e,
|
|
5535
5536
|
variant: n,
|
|
5536
5537
|
format: o
|
|
5537
5538
|
}) })
|
|
5538
5539
|
] });
|
|
5539
5540
|
}
|
|
5540
|
-
class
|
|
5541
|
+
class Jl {
|
|
5541
5542
|
state = /* @__PURE__ */ new Map();
|
|
5542
5543
|
listeners = /* @__PURE__ */ new Map();
|
|
5543
5544
|
get(t) {
|
|
@@ -5561,7 +5562,7 @@ class Xl {
|
|
|
5561
5562
|
this.state.clear();
|
|
5562
5563
|
}
|
|
5563
5564
|
}
|
|
5564
|
-
class
|
|
5565
|
+
class jr {
|
|
5565
5566
|
constructor(t) {
|
|
5566
5567
|
this.baseUrl = t;
|
|
5567
5568
|
}
|
|
@@ -5570,11 +5571,11 @@ class Rr {
|
|
|
5570
5571
|
return n.set("keys", t.join(",")), (await (await fetch(`${this.baseUrl}/options?${n}`)).json()).data;
|
|
5571
5572
|
}
|
|
5572
5573
|
}
|
|
5573
|
-
class
|
|
5574
|
+
class Rr {
|
|
5574
5575
|
constructor(t) {
|
|
5575
5576
|
this.api = t;
|
|
5576
5577
|
}
|
|
5577
|
-
store = new
|
|
5578
|
+
store = new Jl();
|
|
5578
5579
|
inflight = /* @__PURE__ */ new Map();
|
|
5579
5580
|
getRaw(t) {
|
|
5580
5581
|
return this.store.get(t);
|
|
@@ -5612,22 +5613,22 @@ class Er {
|
|
|
5612
5613
|
n.forEach((o) => this.inflight.set(o, r)), await r;
|
|
5613
5614
|
}
|
|
5614
5615
|
}
|
|
5615
|
-
const
|
|
5616
|
-
function
|
|
5617
|
-
const e = We(
|
|
5616
|
+
const go = tt(null);
|
|
5617
|
+
function po() {
|
|
5618
|
+
const e = We(go);
|
|
5618
5619
|
if (!e)
|
|
5619
5620
|
throw new Error("OptionsProvider is missing. Wrap your app with <OptionsProvider />");
|
|
5620
5621
|
return e;
|
|
5621
5622
|
}
|
|
5622
|
-
function
|
|
5623
|
+
function fu({
|
|
5623
5624
|
client: { apiUrl: e },
|
|
5624
5625
|
children: t
|
|
5625
5626
|
}) {
|
|
5626
|
-
const n = X(new
|
|
5627
|
-
return n.current || (n.current = new
|
|
5627
|
+
const n = X(new Rr(new jr(e)));
|
|
5628
|
+
return n.current || (n.current = new Rr(new jr(e))), /* @__PURE__ */ i.jsx(go.Provider, { value: n.current, children: t });
|
|
5628
5629
|
}
|
|
5629
|
-
function
|
|
5630
|
-
const t =
|
|
5630
|
+
function hu(e) {
|
|
5631
|
+
const t = po(), [n, r] = K(t.getRaw(e)?.value);
|
|
5631
5632
|
return F(() => {
|
|
5632
5633
|
let o = !0;
|
|
5633
5634
|
t.getKey(e).then((c) => {
|
|
@@ -5641,8 +5642,8 @@ function du(e) {
|
|
|
5641
5642
|
};
|
|
5642
5643
|
}, [e, t]), n;
|
|
5643
5644
|
}
|
|
5644
|
-
function
|
|
5645
|
-
const t =
|
|
5645
|
+
function gu(e) {
|
|
5646
|
+
const t = po(), [n, r] = K({});
|
|
5646
5647
|
return F(() => {
|
|
5647
5648
|
let o = !0;
|
|
5648
5649
|
t.getMultiKey(e).then((c) => {
|
|
@@ -5661,13 +5662,13 @@ function fu(e) {
|
|
|
5661
5662
|
};
|
|
5662
5663
|
}, [e.join("|"), t]), n;
|
|
5663
5664
|
}
|
|
5664
|
-
async function
|
|
5665
|
+
async function pu(e, t) {
|
|
5665
5666
|
return e.getKey(t);
|
|
5666
5667
|
}
|
|
5667
|
-
async function
|
|
5668
|
+
async function vu(e, t) {
|
|
5668
5669
|
await e.getMultiKey(t);
|
|
5669
5670
|
}
|
|
5670
|
-
function
|
|
5671
|
+
function mu(e = {}) {
|
|
5671
5672
|
const { initialPage: t = 1, initialLimit: n = 20 } = e, [r, o] = K(t), [s, c] = K(n), a = Q((m) => {
|
|
5672
5673
|
o(Math.max(1, m));
|
|
5673
5674
|
}, []), l = Q((m) => {
|
|
@@ -5689,8 +5690,8 @@ function pu(e = {}) {
|
|
|
5689
5690
|
reset: d
|
|
5690
5691
|
};
|
|
5691
5692
|
}
|
|
5692
|
-
function
|
|
5693
|
-
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = K(t), s =
|
|
5693
|
+
function xu(e = {}) {
|
|
5694
|
+
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = K(t), s = Zl(r, n), c = Q((l) => {
|
|
5694
5695
|
o(l);
|
|
5695
5696
|
}, []), a = Q(() => {
|
|
5696
5697
|
o(t);
|
|
@@ -5702,7 +5703,7 @@ function vu(e = {}) {
|
|
|
5702
5703
|
reset: a
|
|
5703
5704
|
};
|
|
5704
5705
|
}
|
|
5705
|
-
function
|
|
5706
|
+
function Zl(e, t = 300) {
|
|
5706
5707
|
const [n, r] = K(e);
|
|
5707
5708
|
return F(() => {
|
|
5708
5709
|
const o = setTimeout(() => {
|
|
@@ -5712,41 +5713,41 @@ function ql(e, t = 300) {
|
|
|
5712
5713
|
}, [e, t]), n;
|
|
5713
5714
|
}
|
|
5714
5715
|
export {
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5716
|
+
nu as DataTable,
|
|
5717
|
+
ou as Filters,
|
|
5718
|
+
jr as HttpOptionsApi,
|
|
5719
|
+
au as MDSButton,
|
|
5720
|
+
rc as MDSCheckbox,
|
|
5721
|
+
fc as MDSCombobox,
|
|
5722
|
+
cu as MDSConfirmActionDialog,
|
|
5723
|
+
lu as MDSConfirmDeleteDialog,
|
|
5724
|
+
ho as MDSDialogWrapper,
|
|
5725
|
+
br as MDSInput,
|
|
5726
|
+
uu as MDSRefreshButton,
|
|
5727
|
+
Yc as MDSSelectBox,
|
|
5728
|
+
Rr as OptionsClientImpl,
|
|
5729
|
+
fu as OptionsProvider,
|
|
5730
|
+
Jl as OptionsStore,
|
|
5731
|
+
uu as RefreshButton,
|
|
5732
|
+
du as StackedDateTime,
|
|
5733
|
+
Hc as addPreset,
|
|
5734
|
+
Wc as deletePreset,
|
|
5735
|
+
Cr as formatDateTime,
|
|
5736
|
+
pu as getOption,
|
|
5736
5737
|
Qt as getPresets,
|
|
5737
|
-
|
|
5738
|
-
|
|
5738
|
+
iu as loadOrder,
|
|
5739
|
+
vu as prefetchOptions,
|
|
5739
5740
|
Bt as presetStore,
|
|
5740
|
-
|
|
5741
|
+
su as saveOrder,
|
|
5741
5742
|
kn as savePresets,
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5743
|
+
Yi as setActionsConfig,
|
|
5744
|
+
zi as setData,
|
|
5745
|
+
Pi as setTableId,
|
|
5745
5746
|
be as tableStore,
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5747
|
+
ru as updatePreset,
|
|
5748
|
+
xu as useDebouncedSearch,
|
|
5749
|
+
hu as useOption,
|
|
5750
|
+
gu as useOptions,
|
|
5751
|
+
mu as usePagination,
|
|
5751
5752
|
b as withChildren
|
|
5752
5753
|
};
|