@mdspl/mds-shared-ui 0.8.2 → 0.8.4
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 +12 -5
- package/dist/index.js +622 -611
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
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 re, { useLayoutEffect as So, useEffect as F, useRef as X, useMemo as G, useCallback as Q, useState as K, createContext as tt, memo as Do, useReducer as Co, 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 _r, Box as Ce, Text as q, ButtonGroup as jo, Skeleton as Ro, Spinner as Or, Combobox as Te, useListCollection as Eo, Span as _o, Popover as Ut, InputGroup as Tr, InputElement as Wn, PopoverArrow as Oo, 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 oe, Stack as Pt, DialogBackdrop as To, DialogHeader as Mo, Flex as Un, DialogCloseTrigger as $o, DialogBody as Io, DialogFooter as Ao } from "@chakra-ui/react";
|
|
3
|
+
import { unstable_batchedUpdates as jt, createPortal as ko } 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 Gn;
|
|
9
|
+
function Lo() {
|
|
10
|
+
if (Gn) return lt;
|
|
11
|
+
Gn = 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 zo() {
|
|
|
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 Xn;
|
|
32
|
+
function No() {
|
|
33
|
+
return Xn || (Xn = 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")
|
|
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
function m(p) {
|
|
225
225
|
return typeof p == "object" && p !== null && p.$$typeof === v;
|
|
226
226
|
}
|
|
227
|
-
var h =
|
|
227
|
+
var h = re, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), j = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), $ = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), V = /* @__PURE__ */ Symbol.for("react.lazy"), P = /* @__PURE__ */ Symbol.for("react.activity"), S = /* @__PURE__ */ Symbol.for("react.client.reference"), B = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, M = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
h = {
|
|
@@ -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 qn;
|
|
263
|
+
function zo() {
|
|
264
|
+
return qn || (qn = 1, process.env.NODE_ENV === "production" ? Rt.exports = Lo() : Rt.exports = No()), Rt.exports;
|
|
265
265
|
}
|
|
266
|
-
var i =
|
|
267
|
-
function
|
|
266
|
+
var i = zo();
|
|
267
|
+
function Po() {
|
|
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 ? So : 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 Yo() {
|
|
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 Fo(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 Vo(e) {
|
|
397
397
|
if (!e)
|
|
398
398
|
return !1;
|
|
399
399
|
const {
|
|
@@ -402,7 +402,7 @@ function Wo(e) {
|
|
|
402
402
|
return t && e instanceof t;
|
|
403
403
|
}
|
|
404
404
|
function xn(e) {
|
|
405
|
-
if (
|
|
405
|
+
if (Vo(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 Fo(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
|
+
}), Kn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
471
|
+
function Ho(e) {
|
|
472
|
+
return e.matches(Kn) ? e : e.querySelector(Kn);
|
|
473
473
|
}
|
|
474
|
-
const
|
|
474
|
+
const Wo = {
|
|
475
475
|
display: "none"
|
|
476
476
|
};
|
|
477
|
-
function
|
|
477
|
+
function Bo(e) {
|
|
478
478
|
let {
|
|
479
479
|
id: t,
|
|
480
480
|
value: n
|
|
481
481
|
} = e;
|
|
482
|
-
return
|
|
482
|
+
return re.createElement("div", {
|
|
483
483
|
id: t,
|
|
484
|
-
style:
|
|
484
|
+
style: Wo
|
|
485
485
|
}, n);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Uo(e) {
|
|
488
488
|
let {
|
|
489
489
|
id: t,
|
|
490
490
|
announcement: n,
|
|
@@ -504,7 +504,7 @@ function Xo(e) {
|
|
|
504
504
|
clipPath: "inset(100%)",
|
|
505
505
|
whiteSpace: "nowrap"
|
|
506
506
|
};
|
|
507
|
-
return
|
|
507
|
+
return re.createElement("div", {
|
|
508
508
|
id: t,
|
|
509
509
|
style: o,
|
|
510
510
|
role: "status",
|
|
@@ -512,7 +512,7 @@ function Xo(e) {
|
|
|
512
512
|
"aria-atomic": !0
|
|
513
513
|
}, n);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Go() {
|
|
516
516
|
const [e, t] = K("");
|
|
517
517
|
return {
|
|
518
518
|
announce: Q((r) => {
|
|
@@ -522,7 +522,7 @@ function qo() {
|
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
const Ir = /* @__PURE__ */ tt(null);
|
|
525
|
-
function
|
|
525
|
+
function Xo(e) {
|
|
526
526
|
const t = We(Ir);
|
|
527
527
|
F(() => {
|
|
528
528
|
if (!t)
|
|
@@ -530,7 +530,7 @@ function Ko(e) {
|
|
|
530
530
|
return t(e);
|
|
531
531
|
}, [e, t]);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function qo() {
|
|
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 Jo() {
|
|
|
543
543
|
});
|
|
544
544
|
}, [e]), t];
|
|
545
545
|
}
|
|
546
|
-
const
|
|
546
|
+
const Ko = {
|
|
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
|
+
}, Jo = {
|
|
553
553
|
onDragStart(e) {
|
|
554
554
|
let {
|
|
555
555
|
active: t
|
|
@@ -577,20 +577,20 @@ const Zo = {
|
|
|
577
577
|
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
|
-
function
|
|
580
|
+
function Zo(e) {
|
|
581
581
|
let {
|
|
582
|
-
announcements: t =
|
|
582
|
+
announcements: t = Jo,
|
|
583
583
|
container: n,
|
|
584
584
|
hiddenTextDescribedById: r,
|
|
585
|
-
screenReaderInstructions: o =
|
|
585
|
+
screenReaderInstructions: o = Ko
|
|
586
586
|
} = e;
|
|
587
587
|
const {
|
|
588
588
|
announce: s,
|
|
589
589
|
announcement: c
|
|
590
|
-
} =
|
|
590
|
+
} = Go(), a = wt("DndLiveRegion"), [l, u] = K(!1);
|
|
591
591
|
if (F(() => {
|
|
592
592
|
u(!0);
|
|
593
|
-
}, []),
|
|
593
|
+
}, []), Xo(G(() => ({
|
|
594
594
|
onDragStart(d) {
|
|
595
595
|
let {
|
|
596
596
|
active: m
|
|
@@ -641,22 +641,22 @@ function es(e) {
|
|
|
641
641
|
}
|
|
642
642
|
}), [s, t])), !l)
|
|
643
643
|
return null;
|
|
644
|
-
const f =
|
|
644
|
+
const f = re.createElement(re.Fragment, null, re.createElement(Bo, {
|
|
645
645
|
id: r,
|
|
646
646
|
value: o.draggable
|
|
647
|
-
}),
|
|
647
|
+
}), re.createElement(Uo, {
|
|
648
648
|
id: a,
|
|
649
649
|
announcement: c
|
|
650
650
|
}));
|
|
651
|
-
return n ?
|
|
651
|
+
return n ? ko(f, n) : f;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
653
|
+
var ie;
|
|
654
654
|
(function(e) {
|
|
655
655
|
e.DragStart = "dragStart", e.DragMove = "dragMove", e.DragEnd = "dragEnd", e.DragCancel = "dragCancel", e.DragOver = "dragOver", e.RegisterDroppable = "registerDroppable", e.SetDroppableDisabled = "setDroppableDisabled", e.UnregisterDroppable = "unregisterDroppable";
|
|
656
|
-
})(
|
|
656
|
+
})(ie || (ie = {}));
|
|
657
657
|
function Vt() {
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Qo(e, t) {
|
|
660
660
|
return G(
|
|
661
661
|
() => ({
|
|
662
662
|
sensor: e,
|
|
@@ -666,7 +666,7 @@ function ts(e, t) {
|
|
|
666
666
|
[e, t]
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function es() {
|
|
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 ts(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 ns(e, t) {
|
|
686
686
|
let {
|
|
687
687
|
data: {
|
|
688
688
|
value: n
|
|
@@ -694,7 +694,7 @@ function os(e, t) {
|
|
|
694
694
|
} = t;
|
|
695
695
|
return n - r;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function rs(e, t) {
|
|
698
698
|
let {
|
|
699
699
|
data: {
|
|
700
700
|
value: n
|
|
@@ -706,13 +706,13 @@ function ss(e, t) {
|
|
|
706
706
|
} = t;
|
|
707
707
|
return r - n;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function os(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 Jn(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 = Jn(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 = ts(Jn(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(ns);
|
|
744
744
|
};
|
|
745
|
-
function
|
|
745
|
+
function ss(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 as(e, t) {
|
|
|
750
750
|
}
|
|
751
751
|
return 0;
|
|
752
752
|
}
|
|
753
|
-
const
|
|
753
|
+
const is = (e) => {
|
|
754
754
|
let {
|
|
755
755
|
collisionRect: t,
|
|
756
756
|
droppableRects: n,
|
|
@@ -762,7 +762,7 @@ const cs = (e) => {
|
|
|
762
762
|
id: c
|
|
763
763
|
} = s, a = n.get(c);
|
|
764
764
|
if (a) {
|
|
765
|
-
const l =
|
|
765
|
+
const l = ss(a, t);
|
|
766
766
|
l > 0 && o.push({
|
|
767
767
|
id: c,
|
|
768
768
|
data: {
|
|
@@ -772,9 +772,9 @@ const cs = (e) => {
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
return o.sort(
|
|
775
|
+
return o.sort(rs);
|
|
776
776
|
};
|
|
777
|
-
function
|
|
777
|
+
function as(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 cs(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 us(e) {
|
|
|
802
802
|
});
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
|
-
const
|
|
806
|
-
function
|
|
805
|
+
const ls = /* @__PURE__ */ cs(1);
|
|
806
|
+
function us(e) {
|
|
807
807
|
if (e.startsWith("matrix3d(")) {
|
|
808
808
|
const t = e.slice(9, -1).split(/, /);
|
|
809
809
|
return {
|
|
@@ -823,8 +823,8 @@ function fs(e) {
|
|
|
823
823
|
}
|
|
824
824
|
return null;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
827
|
-
const r =
|
|
826
|
+
function ds(e, t, n) {
|
|
827
|
+
const r = us(t);
|
|
828
828
|
if (!r)
|
|
829
829
|
return e;
|
|
830
830
|
const {
|
|
@@ -842,18 +842,18 @@ function hs(e, t, n) {
|
|
|
842
842
|
left: l
|
|
843
843
|
};
|
|
844
844
|
}
|
|
845
|
-
const
|
|
845
|
+
const fs = {
|
|
846
846
|
ignoreTransform: !1
|
|
847
847
|
};
|
|
848
848
|
function ot(e, t) {
|
|
849
|
-
t === void 0 && (t =
|
|
849
|
+
t === void 0 && (t = fs);
|
|
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 = ds(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 Zn(e) {
|
|
876
876
|
return ot(e, {
|
|
877
877
|
ignoreTransform: !0
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function hs(e) {
|
|
881
881
|
const t = e.innerWidth, n = e.innerHeight;
|
|
882
882
|
return {
|
|
883
883
|
top: 0,
|
|
@@ -888,10 +888,10 @@ function ps(e) {
|
|
|
888
888
|
height: n
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function gs(e, t) {
|
|
892
892
|
return t === void 0 && (t = pe(e).getComputedStyle(e)), t.position === "fixed";
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function ps(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 && ps(o, s) && n.push(o), gs(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 vs = {
|
|
966
966
|
x: 0.2,
|
|
967
967
|
y: 0.2
|
|
968
968
|
};
|
|
969
|
-
function
|
|
969
|
+
function ms(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 = vs);
|
|
977
977
|
const {
|
|
978
978
|
isTop: u,
|
|
979
979
|
isBottom: f,
|
|
@@ -994,7 +994,7 @@ function bs(e, t, n, r, o) {
|
|
|
994
994
|
speed: v
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
function
|
|
997
|
+
function xs(e) {
|
|
998
998
|
if (e === document.scrollingElement) {
|
|
999
999
|
const {
|
|
1000
1000
|
innerWidth: s,
|
|
@@ -1027,13 +1027,13 @@ function ys(e) {
|
|
|
1027
1027
|
function Fr(e) {
|
|
1028
1028
|
return e.reduce((t, n) => Qe(t, bn(n)), je);
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function bs(e) {
|
|
1031
1031
|
return e.reduce((t, n) => t + Nr(n), 0);
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function ys(e) {
|
|
1034
1034
|
return e.reduce((t, n) => t + zr(n), 0);
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function ws(e, t) {
|
|
1037
1037
|
if (t === void 0 && (t = ot), !e)
|
|
1038
1038
|
return;
|
|
1039
1039
|
const {
|
|
@@ -1047,7 +1047,7 @@ function Ds(e, t) {
|
|
|
1047
1047
|
inline: "center"
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1050
|
+
const Ss = [["x", ["left", "right"], bs], ["y", ["top", "bottom"], ys]];
|
|
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 Ss)
|
|
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 Ds(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 Qn(e) {
|
|
1101
1101
|
e.preventDefault();
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function Cs(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
|
+
}, js = (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 && ws(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 = js,
|
|
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 = xs(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 er(e) {
|
|
1291
1291
|
return !!(e && "distance" in e);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function tr(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 = Ds(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, Qn), this.windowListeners.add(we.VisibilityChange, this.handleCancel), this.windowListeners.add(we.ContextMenu, Qn), 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 (tr(n)) {
|
|
1327
1327
|
this.timeoutId = setTimeout(this.handleStart, n.delay), this.handlePending(n);
|
|
1328
1328
|
return;
|
|
1329
1329
|
}
|
|
1330
|
-
if (
|
|
1330
|
+
if (er(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, Cs, {
|
|
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 (er(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 (tr(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 Rs = {
|
|
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, Rs, 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 Es = {
|
|
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 _s extends $n {
|
|
1453
1453
|
constructor(t) {
|
|
1454
|
-
super(t,
|
|
1454
|
+
super(t, Es, rt(t.event.target));
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
|
|
1457
|
+
_s.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 Os extends $n {
|
|
1482
1482
|
constructor(t) {
|
|
1483
1483
|
super(t, cn);
|
|
1484
1484
|
}
|
|
@@ -1493,7 +1493,7 @@ class Ms extends $n {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
|
-
|
|
1496
|
+
Os.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 Ts(e) {
|
|
1521
1521
|
let {
|
|
1522
1522
|
acceleration: t,
|
|
1523
1523
|
activator: n = gt.Pointer,
|
|
@@ -1532,10 +1532,10 @@ function $s(e) {
|
|
|
1532
1532
|
delta: d,
|
|
1533
1533
|
threshold: m
|
|
1534
1534
|
} = e;
|
|
1535
|
-
const h =
|
|
1535
|
+
const h = $s({
|
|
1536
1536
|
delta: d,
|
|
1537
1537
|
disabled: !s
|
|
1538
|
-
}), [v, g] =
|
|
1538
|
+
}), [v, g] = Yo(), x = X({
|
|
1539
1539
|
x: 0,
|
|
1540
1540
|
y: 0
|
|
1541
1541
|
}), y = X({
|
|
@@ -1575,7 +1575,7 @@ function $s(e) {
|
|
|
1575
1575
|
const {
|
|
1576
1576
|
direction: V,
|
|
1577
1577
|
speed: P
|
|
1578
|
-
} =
|
|
1578
|
+
} = ms(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 $s(e) {
|
|
|
1612
1612
|
]
|
|
1613
1613
|
);
|
|
1614
1614
|
}
|
|
1615
|
-
const
|
|
1615
|
+
const Ms = {
|
|
1616
1616
|
x: {
|
|
1617
1617
|
[ae.Backward]: !1,
|
|
1618
1618
|
[ae.Forward]: !1
|
|
@@ -1622,7 +1622,7 @@ const Is = {
|
|
|
1622
1622
|
[ae.Forward]: !1
|
|
1623
1623
|
}
|
|
1624
1624
|
};
|
|
1625
|
-
function
|
|
1625
|
+
function $s(e) {
|
|
1626
1626
|
let {
|
|
1627
1627
|
delta: t,
|
|
1628
1628
|
disabled: n
|
|
@@ -1630,7 +1630,7 @@ function As(e) {
|
|
|
1630
1630
|
const r = mn(t);
|
|
1631
1631
|
return yt((o) => {
|
|
1632
1632
|
if (n || !r || !o)
|
|
1633
|
-
return
|
|
1633
|
+
return Ms;
|
|
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 As(e) {
|
|
|
1647
1647
|
};
|
|
1648
1648
|
}, [n, t, r]);
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1650
|
+
function Is(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 As(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 nr = /* @__PURE__ */ new Map();
|
|
1677
|
+
function ks(e, t) {
|
|
1678
1678
|
let {
|
|
1679
1679
|
dragging: n,
|
|
1680
1680
|
dependencies: r,
|
|
@@ -1688,8 +1688,8 @@ function Ns(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 nr;
|
|
1692
|
+
if (!y || y === nr || 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 Ns(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 Ls(e, t) {
|
|
1750
1750
|
return Wr(e, t);
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function Ns(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 zs(e) {
|
|
1787
1787
|
return new Mn(ot(e), e);
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1790
|
-
t === void 0 && (t =
|
|
1789
|
+
function rr(e, t, n) {
|
|
1790
|
+
t === void 0 && (t = zs);
|
|
1791
1791
|
const [r, o] = K(null);
|
|
1792
1792
|
function s() {
|
|
1793
1793
|
o((l) => {
|
|
@@ -1801,7 +1801,7 @@ function nr(e, t, n) {
|
|
|
1801
1801
|
return JSON.stringify(l) === JSON.stringify(f) ? l : f;
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
|
-
const c =
|
|
1804
|
+
const c = Ns({
|
|
1805
1805
|
callback(l) {
|
|
1806
1806
|
if (e)
|
|
1807
1807
|
for (const u of l) {
|
|
@@ -1825,18 +1825,18 @@ function nr(e, t, n) {
|
|
|
1825
1825
|
})) : (a?.disconnect(), c?.disconnect());
|
|
1826
1826
|
}, [e]), r;
|
|
1827
1827
|
}
|
|
1828
|
-
function
|
|
1828
|
+
function Ps(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 or = [];
|
|
1833
|
+
function Ys(e) {
|
|
1834
|
+
const t = X(e), n = yt((r) => e ? r && r !== or && e && t.current && e.parentNode === t.current.parentNode ? r : Tn(e) : or, [e]);
|
|
1835
1835
|
return F(() => {
|
|
1836
1836
|
t.current = e;
|
|
1837
1837
|
}, [e]), n;
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function Fs(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 Hs(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 sr(e, t) {
|
|
1868
1868
|
t === void 0 && (t = []);
|
|
1869
1869
|
const n = X(null);
|
|
1870
1870
|
return F(
|
|
@@ -1878,7 +1878,7 @@ function or(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 Vs(e) {
|
|
1882
1882
|
F(
|
|
1883
1883
|
() => {
|
|
1884
1884
|
if (!qt)
|
|
@@ -1904,7 +1904,7 @@ function Ws(e) {
|
|
|
1904
1904
|
})
|
|
1905
1905
|
);
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function Hs(e, t) {
|
|
1908
1908
|
return G(() => e.reduce((n, r) => {
|
|
1909
1909
|
let {
|
|
1910
1910
|
eventName: o,
|
|
@@ -1916,14 +1916,14 @@ function Bs(e, t) {
|
|
|
1916
1916
|
}, {}), [e, t]);
|
|
1917
1917
|
}
|
|
1918
1918
|
function Br(e) {
|
|
1919
|
-
return G(() => e ?
|
|
1919
|
+
return G(() => e ? hs(e) : null, [e]);
|
|
1920
1920
|
}
|
|
1921
|
-
const
|
|
1922
|
-
function
|
|
1921
|
+
const ir = [];
|
|
1922
|
+
function Ws(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(ir);
|
|
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)) : ir);
|
|
1927
1927
|
}
|
|
1928
1928
|
const a = Kt({
|
|
1929
1929
|
callback: c
|
|
@@ -1932,7 +1932,7 @@ function Us(e, t) {
|
|
|
1932
1932
|
a?.disconnect(), c(), e.forEach((l) => a?.observe(l));
|
|
1933
1933
|
}, [e]), o;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Bs(e) {
|
|
1936
1936
|
if (!e)
|
|
1937
1937
|
return null;
|
|
1938
1938
|
if (e.children.length > 1)
|
|
@@ -1940,7 +1940,7 @@ function Gs(e) {
|
|
|
1940
1940
|
const t = e.children[0];
|
|
1941
1941
|
return bt(t) ? t : e;
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Us(e) {
|
|
1944
1944
|
let {
|
|
1945
1945
|
measure: t
|
|
1946
1946
|
} = e;
|
|
@@ -1962,7 +1962,7 @@ function Xs(e) {
|
|
|
1962
1962
|
}, [t]), s = Kt({
|
|
1963
1963
|
callback: o
|
|
1964
1964
|
}), c = Q((u) => {
|
|
1965
|
-
const f =
|
|
1965
|
+
const f = Bs(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 Xs(e) {
|
|
|
1971
1971
|
setRef: l
|
|
1972
1972
|
}), [n, a, l]);
|
|
1973
1973
|
}
|
|
1974
|
-
const
|
|
1974
|
+
const Gs = [{
|
|
1975
1975
|
sensor: In,
|
|
1976
1976
|
options: {}
|
|
1977
1977
|
}, {
|
|
1978
1978
|
sensor: Hr,
|
|
1979
1979
|
options: {}
|
|
1980
|
-
}],
|
|
1980
|
+
}], Xs = {
|
|
1981
1981
|
current: {}
|
|
1982
1982
|
}, It = {
|
|
1983
1983
|
draggable: {
|
|
1984
|
-
measure:
|
|
1984
|
+
measure: Zn
|
|
1985
1985
|
},
|
|
1986
1986
|
droppable: {
|
|
1987
|
-
measure:
|
|
1987
|
+
measure: Zn,
|
|
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 qs = {
|
|
2017
2017
|
activatorEvent: null,
|
|
2018
2018
|
active: null,
|
|
2019
2019
|
activeNode: null,
|
|
@@ -2037,7 +2037,7 @@ const Js = {
|
|
|
2037
2037
|
measureDroppableContainers: Vt,
|
|
2038
2038
|
windowRect: null,
|
|
2039
2039
|
measuringScheduled: !1
|
|
2040
|
-
},
|
|
2040
|
+
}, Ks = {
|
|
2041
2041
|
activatorEvent: null,
|
|
2042
2042
|
activators: [],
|
|
2043
2043
|
active: null,
|
|
@@ -2049,8 +2049,8 @@ const Js = {
|
|
|
2049
2049
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2050
2050
|
over: null,
|
|
2051
2051
|
measureDroppableContainers: Vt
|
|
2052
|
-
}, Jt = /* @__PURE__ */ tt(
|
|
2053
|
-
function
|
|
2052
|
+
}, Jt = /* @__PURE__ */ tt(Ks), Ur = /* @__PURE__ */ tt(qs);
|
|
2053
|
+
function Js() {
|
|
2054
2054
|
return {
|
|
2055
2055
|
draggable: {
|
|
2056
2056
|
active: null,
|
|
@@ -2069,9 +2069,9 @@ function Qs() {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
};
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function Zs(e, t) {
|
|
2073
2073
|
switch (t.type) {
|
|
2074
|
-
case
|
|
2074
|
+
case ie.DragStart:
|
|
2075
2075
|
return {
|
|
2076
2076
|
...e,
|
|
2077
2077
|
draggable: {
|
|
@@ -2080,7 +2080,7 @@ function ei(e, t) {
|
|
|
2080
2080
|
active: t.active
|
|
2081
2081
|
}
|
|
2082
2082
|
};
|
|
2083
|
-
case
|
|
2083
|
+
case ie.DragMove:
|
|
2084
2084
|
return e.draggable.active == null ? e : {
|
|
2085
2085
|
...e,
|
|
2086
2086
|
draggable: {
|
|
@@ -2091,8 +2091,8 @@ function ei(e, t) {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
};
|
|
2094
|
-
case
|
|
2095
|
-
case
|
|
2094
|
+
case ie.DragEnd:
|
|
2095
|
+
case ie.DragCancel:
|
|
2096
2096
|
return {
|
|
2097
2097
|
...e,
|
|
2098
2098
|
draggable: {
|
|
@@ -2108,7 +2108,7 @@ function ei(e, t) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
};
|
|
2111
|
-
case
|
|
2111
|
+
case ie.RegisterDroppable: {
|
|
2112
2112
|
const {
|
|
2113
2113
|
element: n
|
|
2114
2114
|
} = t, {
|
|
@@ -2122,7 +2122,7 @@ function ei(e, t) {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
case
|
|
2125
|
+
case ie.SetDroppableDisabled: {
|
|
2126
2126
|
const {
|
|
2127
2127
|
id: n,
|
|
2128
2128
|
key: r,
|
|
@@ -2142,7 +2142,7 @@ function ei(e, t) {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
};
|
|
2144
2144
|
}
|
|
2145
|
-
case
|
|
2145
|
+
case ie.UnregisterDroppable: {
|
|
2146
2146
|
const {
|
|
2147
2147
|
id: n,
|
|
2148
2148
|
key: r
|
|
@@ -2162,7 +2162,7 @@ function ei(e, t) {
|
|
|
2162
2162
|
return e;
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function Qs(e) {
|
|
2166
2166
|
let {
|
|
2167
2167
|
disabled: t
|
|
2168
2168
|
} = e;
|
|
@@ -2188,7 +2188,7 @@ function ti(e) {
|
|
|
2188
2188
|
for (const f of [l.current, u.current]) {
|
|
2189
2189
|
if (!f)
|
|
2190
2190
|
continue;
|
|
2191
|
-
const d =
|
|
2191
|
+
const d = Ho(f);
|
|
2192
2192
|
if (d) {
|
|
2193
2193
|
d.focus();
|
|
2194
2194
|
break;
|
|
@@ -2198,7 +2198,7 @@ function ti(e) {
|
|
|
2198
2198
|
}
|
|
2199
2199
|
}, [r, t, o, c, s]), null;
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function ei(e, t) {
|
|
2202
2202
|
let {
|
|
2203
2203
|
transform: n,
|
|
2204
2204
|
...r
|
|
@@ -2208,7 +2208,7 @@ function ni(e, t) {
|
|
|
2208
2208
|
...r
|
|
2209
2209
|
}), n) : n;
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function ti(e) {
|
|
2212
2212
|
return G(
|
|
2213
2213
|
() => ({
|
|
2214
2214
|
draggable: {
|
|
@@ -2228,7 +2228,7 @@ function ri(e) {
|
|
|
2228
2228
|
[e?.draggable, e?.droppable, e?.dragOverlay]
|
|
2229
2229
|
);
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function ni(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__ */ Do(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 = Gs,
|
|
2282
|
+
collisionDetection: d = is,
|
|
2283
2283
|
measuring: m,
|
|
2284
2284
|
modifiers: h,
|
|
2285
2285
|
...v
|
|
2286
2286
|
} = t;
|
|
2287
|
-
const g =
|
|
2287
|
+
const g = Co(Zs, void 0, Js), [x, y] = g, [j, R] = qo(), [$, 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__ */ jo(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 : Xs,
|
|
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 = ti(m), {
|
|
2308
2308
|
droppableRects: L,
|
|
2309
2309
|
measureDroppableContainers: Y,
|
|
2310
2310
|
measuringScheduled: J
|
|
2311
|
-
} =
|
|
2311
|
+
} = ks(p, {
|
|
2312
2312
|
dragging: E,
|
|
2313
2313
|
dependencies: [V.x, V.y],
|
|
2314
2314
|
config: C.droppable
|
|
2315
|
-
}), Z =
|
|
2316
|
-
|
|
2315
|
+
}), Z = Is(A, I), H = G(() => _ ? xn(_) : null, [_]), te = wo(), ne = Ls(Z, C.draggable.measure);
|
|
2316
|
+
ni({
|
|
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 = rr(Z, C.draggable.measure, ne), ge = rr(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__ */ jo(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 = Us({
|
|
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 = Ps(Ln ? null : z), tn = Br(Xe ? pe(Xe) : null), Ne = Ys(E ? Se ?? Z : null), Dt = Ws(Ne), Ct = ei(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__ */ jo(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 = Fs(Ne), go = sr(Pn), po = sr(Pn, [z]), Ke = Qe(Ct, go), Je = qe ? ls(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 = os(st, "id"), [ze, Fn] = K(null), vo = Ln ? Ct : Qe(Ct, po), mo = as(vo, (s = ze?.rect) != null ? s : null, z), nn = X(null), Vn = Q(
|
|
2362
2362
|
(de, ve) => {
|
|
2363
2363
|
let {
|
|
2364
2364
|
sensor: me,
|
|
@@ -2425,7 +2425,7 @@ const Xr = /* @__PURE__ */ jo(function(t) {
|
|
|
2425
2425
|
};
|
|
2426
2426
|
jt(() => {
|
|
2427
2427
|
ke?.(it), T(Ve.Initializing), y({
|
|
2428
|
-
type:
|
|
2428
|
+
type: ie.DragStart,
|
|
2429
2429
|
initialCoordinates: ce,
|
|
2430
2430
|
active: Ye
|
|
2431
2431
|
}), j({
|
|
@@ -2436,12 +2436,12 @@ const Xr = /* @__PURE__ */ jo(function(t) {
|
|
|
2436
2436
|
},
|
|
2437
2437
|
onMove(ce) {
|
|
2438
2438
|
y({
|
|
2439
|
-
type:
|
|
2439
|
+
type: ie.DragMove,
|
|
2440
2440
|
coordinates: ce
|
|
2441
2441
|
});
|
|
2442
2442
|
},
|
|
2443
|
-
onEnd: Ze(
|
|
2444
|
-
onCancel: Ze(
|
|
2443
|
+
onEnd: Ze(ie.DragEnd),
|
|
2444
|
+
onCancel: Ze(ie.DragCancel)
|
|
2445
2445
|
});
|
|
2446
2446
|
nn.current = Ee;
|
|
2447
2447
|
function Ze(ce) {
|
|
@@ -2463,13 +2463,13 @@ const Xr = /* @__PURE__ */ jo(function(t) {
|
|
|
2463
2463
|
collisions: ke,
|
|
2464
2464
|
delta: at,
|
|
2465
2465
|
over: it
|
|
2466
|
-
}, ce ===
|
|
2466
|
+
}, ce === ie.DragEnd && typeof ct == "function" && await Promise.resolve(ct(Fe)) && (ce = ie.DragCancel);
|
|
2467
2467
|
}
|
|
2468
2468
|
M.current = null, jt(() => {
|
|
2469
2469
|
y({
|
|
2470
2470
|
type: ce
|
|
2471
2471
|
}), T(Ve.Uninitialized), Fn(null), w(null), O(null), nn.current = null;
|
|
2472
|
-
const ct = ce ===
|
|
2472
|
+
const ct = ce === ie.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2473
2473
|
if (Fe) {
|
|
2474
2474
|
const rn = k.current[ct];
|
|
2475
2475
|
rn?.(Fe), j({
|
|
@@ -2483,7 +2483,7 @@ const Xr = /* @__PURE__ */ jo(function(t) {
|
|
|
2483
2483
|
},
|
|
2484
2484
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2485
2485
|
[A]
|
|
2486
|
-
),
|
|
2486
|
+
), xo = 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__ */ jo(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 = As(f, xo);
|
|
2502
|
+
Vs(f), Me(() => {
|
|
2503
2503
|
z && $ === Ve.Initializing && T(Ve.Initialized);
|
|
2504
2504
|
}, [z, $]), F(
|
|
2505
2505
|
() => {
|
|
@@ -2588,7 +2588,7 @@ const Xr = /* @__PURE__ */ jo(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]), Ts({
|
|
2592
2592
|
...te,
|
|
2593
2593
|
delta: V,
|
|
2594
2594
|
draggingRect: Je,
|
|
@@ -2596,7 +2596,7 @@ const Xr = /* @__PURE__ */ jo(function(t) {
|
|
|
2596
2596
|
scrollableAncestors: Ne,
|
|
2597
2597
|
scrollableAncestorRects: Dt
|
|
2598
2598
|
});
|
|
2599
|
-
const
|
|
2599
|
+
const bo = G(() => ({
|
|
2600
2600
|
active: U,
|
|
2601
2601
|
activeNode: Z,
|
|
2602
2602
|
activeNodeRect: z,
|
|
@@ -2614,7 +2614,7 @@ const Xr = /* @__PURE__ */ jo(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]), yo = G(() => ({
|
|
2618
2618
|
activatorEvent: _,
|
|
2619
2619
|
activators: Hn,
|
|
2620
2620
|
active: U,
|
|
@@ -2627,21 +2627,21 @@ const Xr = /* @__PURE__ */ jo(function(t) {
|
|
|
2627
2627
|
over: ze,
|
|
2628
2628
|
measureDroppableContainers: Y
|
|
2629
2629
|
}), [_, Hn, U, z, y, N, A, ze, Y]);
|
|
2630
|
-
return
|
|
2630
|
+
return re.createElement(Ir.Provider, {
|
|
2631
2631
|
value: R
|
|
2632
|
-
},
|
|
2633
|
-
value:
|
|
2634
|
-
},
|
|
2635
|
-
value: wo
|
|
2636
|
-
}, ie.createElement(Gr.Provider, {
|
|
2632
|
+
}, re.createElement(Jt.Provider, {
|
|
2633
|
+
value: yo
|
|
2634
|
+
}, re.createElement(Ur.Provider, {
|
|
2637
2635
|
value: bo
|
|
2638
|
-
},
|
|
2636
|
+
}, re.createElement(Gr.Provider, {
|
|
2637
|
+
value: mo
|
|
2638
|
+
}, u)), re.createElement(Qs, {
|
|
2639
2639
|
disabled: a?.restoreFocus === !1
|
|
2640
|
-
})),
|
|
2640
|
+
})), re.createElement(Zo, {
|
|
2641
2641
|
...a,
|
|
2642
2642
|
hiddenTextDescribedById: N
|
|
2643
2643
|
}));
|
|
2644
|
-
function
|
|
2644
|
+
function wo() {
|
|
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__ */ jo(function(t) {
|
|
|
2650
2650
|
enabled: me
|
|
2651
2651
|
};
|
|
2652
2652
|
}
|
|
2653
|
-
}),
|
|
2654
|
-
function
|
|
2653
|
+
}), ri = /* @__PURE__ */ tt(null), ar = "button", oi = "Draggable";
|
|
2654
|
+
function si(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(oi), {
|
|
2662
2662
|
activators: c,
|
|
2663
2663
|
activatorEvent: a,
|
|
2664
2664
|
active: l,
|
|
@@ -2667,10 +2667,10 @@ function ai(e) {
|
|
|
2667
2667
|
draggableNodes: d,
|
|
2668
2668
|
over: m
|
|
2669
2669
|
} = We(Jt), {
|
|
2670
|
-
role: h =
|
|
2670
|
+
role: h = ar,
|
|
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 : ri), [j, R] = Yt(), [$, T] = Yt(), E = Hs(c, t), I = vt(n);
|
|
2674
2674
|
Me(
|
|
2675
2675
|
() => (d.set(t, {
|
|
2676
2676
|
id: t,
|
|
@@ -2689,7 +2689,7 @@ function ai(e) {
|
|
|
2689
2689
|
role: h,
|
|
2690
2690
|
tabIndex: g,
|
|
2691
2691
|
"aria-disabled": r,
|
|
2692
|
-
"aria-pressed": x && h ===
|
|
2692
|
+
"aria-pressed": x && h === ar ? !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 ai(e) {
|
|
|
2707
2707
|
transform: y
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2710
|
+
function ii() {
|
|
2711
2711
|
return We(Ur);
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2713
|
+
const ai = "Droppable", ci = {
|
|
2714
2714
|
timeout: 25
|
|
2715
2715
|
};
|
|
2716
|
-
function
|
|
2716
|
+
function li(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(ai), {
|
|
2724
2724
|
active: c,
|
|
2725
2725
|
dispatch: a,
|
|
2726
2726
|
over: l,
|
|
@@ -2732,7 +2732,7 @@ function di(e) {
|
|
|
2732
2732
|
updateMeasurementsFor: g,
|
|
2733
2733
|
timeout: x
|
|
2734
2734
|
} = {
|
|
2735
|
-
...
|
|
2735
|
+
...ci,
|
|
2736
2736
|
...o
|
|
2737
2737
|
}, y = vt(g ?? r), j = Q(
|
|
2738
2738
|
() => {
|
|
@@ -2756,7 +2756,7 @@ function di(e) {
|
|
|
2756
2756
|
!R || !T.current || (R.disconnect(), d.current = !1, R.observe(T.current));
|
|
2757
2757
|
}, [T, R]), F(
|
|
2758
2758
|
() => (a({
|
|
2759
|
-
type:
|
|
2759
|
+
type: ie.RegisterDroppable,
|
|
2760
2760
|
element: {
|
|
2761
2761
|
id: r,
|
|
2762
2762
|
key: s,
|
|
@@ -2766,7 +2766,7 @@ function di(e) {
|
|
|
2766
2766
|
data: I
|
|
2767
2767
|
}
|
|
2768
2768
|
}), () => a({
|
|
2769
|
-
type:
|
|
2769
|
+
type: ie.UnregisterDroppable,
|
|
2770
2770
|
key: s,
|
|
2771
2771
|
id: r
|
|
2772
2772
|
})),
|
|
@@ -2774,7 +2774,7 @@ function di(e) {
|
|
|
2774
2774
|
[r]
|
|
2775
2775
|
), F(() => {
|
|
2776
2776
|
n !== f.current.disabled && (a({
|
|
2777
|
-
type:
|
|
2777
|
+
type: ie.SetDroppableDisabled,
|
|
2778
2778
|
id: r,
|
|
2779
2779
|
key: s,
|
|
2780
2780
|
disabled: n
|
|
@@ -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 ui(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 fi(e, t) {
|
|
|
2801
2801
|
function Et(e) {
|
|
2802
2802
|
return e !== null && e >= 0;
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2804
|
+
function di(e, t) {
|
|
2805
2805
|
if (e === t)
|
|
2806
2806
|
return !0;
|
|
2807
2807
|
if (e.length !== t.length)
|
|
@@ -2811,7 +2811,7 @@ function hi(e, t) {
|
|
|
2811
2811
|
return !1;
|
|
2812
2812
|
return !0;
|
|
2813
2813
|
}
|
|
2814
|
-
function
|
|
2814
|
+
function fi(e) {
|
|
2815
2815
|
return typeof e == "boolean" ? {
|
|
2816
2816
|
draggable: e,
|
|
2817
2817
|
droppable: e
|
|
@@ -2820,7 +2820,7 @@ function gi(e) {
|
|
|
2820
2820
|
const _t = {
|
|
2821
2821
|
scaleX: 1,
|
|
2822
2822
|
scaleY: 1
|
|
2823
|
-
},
|
|
2823
|
+
}, hi = (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 = gi(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 gi(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
|
+
}, pi = (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 = vi(s, o, n);
|
|
2900
2900
|
return o > n && o <= c ? {
|
|
2901
2901
|
x: 0,
|
|
2902
2902
|
y: -a.height - l,
|
|
@@ -2911,11 +2911,11 @@ const qr = (e) => {
|
|
|
2911
2911
|
...Ot
|
|
2912
2912
|
};
|
|
2913
2913
|
};
|
|
2914
|
-
function
|
|
2914
|
+
function vi(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
|
}
|
|
2918
|
-
const Kr = "Sortable", Jr = /* @__PURE__ */
|
|
2918
|
+
const Kr = "Sortable", Jr = /* @__PURE__ */ re.createContext({
|
|
2919
2919
|
activeIndex: -1,
|
|
2920
2920
|
containerId: Kr,
|
|
2921
2921
|
disableTransforms: !1,
|
|
@@ -2943,7 +2943,7 @@ function Zr(e) {
|
|
|
2943
2943
|
droppableRects: l,
|
|
2944
2944
|
over: u,
|
|
2945
2945
|
measureDroppableContainers: f
|
|
2946
|
-
} =
|
|
2946
|
+
} = ii(), 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 = !di(h, y.current), R = x !== -1 && g === -1 || j, $ = fi(s);
|
|
2947
2947
|
Me(() => {
|
|
2948
2948
|
j && v && f(h);
|
|
2949
2949
|
}, [j, h, v, f]), F(() => {
|
|
@@ -2958,17 +2958,17 @@ function Zr(e) {
|
|
|
2958
2958
|
items: h,
|
|
2959
2959
|
overIndex: x,
|
|
2960
2960
|
useDragOverlay: m,
|
|
2961
|
-
sortedRects:
|
|
2961
|
+
sortedRects: ui(h, l),
|
|
2962
2962
|
strategy: o
|
|
2963
2963
|
}),
|
|
2964
2964
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2965
2965
|
[g, d, $.draggable, $.droppable, R, h, x, l, m, o]
|
|
2966
2966
|
);
|
|
2967
|
-
return
|
|
2967
|
+
return re.createElement(Jr.Provider, {
|
|
2968
2968
|
value: T
|
|
2969
2969
|
}, t);
|
|
2970
2970
|
}
|
|
2971
|
-
const
|
|
2971
|
+
const mi = (e) => {
|
|
2972
2972
|
let {
|
|
2973
2973
|
id: t,
|
|
2974
2974
|
items: n,
|
|
@@ -2976,7 +2976,7 @@ const bi = (e) => {
|
|
|
2976
2976
|
overIndex: o
|
|
2977
2977
|
} = e;
|
|
2978
2978
|
return Zt(n, r, o).indexOf(t);
|
|
2979
|
-
},
|
|
2979
|
+
}, xi = (e) => {
|
|
2980
2980
|
let {
|
|
2981
2981
|
containerId: t,
|
|
2982
2982
|
isSorting: n,
|
|
@@ -2989,17 +2989,17 @@ const bi = (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
|
+
}, bi = {
|
|
2993
2993
|
duration: 200,
|
|
2994
2994
|
easing: "ease"
|
|
2995
|
-
}, Qr = "transform",
|
|
2995
|
+
}, Qr = "transform", yi = /* @__PURE__ */ et.Transition.toString({
|
|
2996
2996
|
property: Qr,
|
|
2997
2997
|
duration: 0,
|
|
2998
2998
|
easing: "linear"
|
|
2999
|
-
}),
|
|
2999
|
+
}), wi = {
|
|
3000
3000
|
roleDescription: "sortable"
|
|
3001
3001
|
};
|
|
3002
|
-
function
|
|
3002
|
+
function Si(e) {
|
|
3003
3003
|
let {
|
|
3004
3004
|
disabled: t,
|
|
3005
3005
|
index: n,
|
|
@@ -3029,15 +3029,15 @@ function Ci(e) {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
function eo(e) {
|
|
3031
3031
|
let {
|
|
3032
|
-
animateLayoutChanges: t =
|
|
3032
|
+
animateLayoutChanges: t = xi,
|
|
3033
3033
|
attributes: n,
|
|
3034
3034
|
disabled: r,
|
|
3035
3035
|
data: o,
|
|
3036
|
-
getNewIndex: s =
|
|
3036
|
+
getNewIndex: s = mi,
|
|
3037
3037
|
id: c,
|
|
3038
3038
|
strategy: a,
|
|
3039
3039
|
resizeObserverConfig: l,
|
|
3040
|
-
transition: u =
|
|
3040
|
+
transition: u = bi
|
|
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 = Di(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
|
+
} = li({
|
|
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
|
+
} = si({
|
|
3084
3084
|
id: c,
|
|
3085
3085
|
data: T,
|
|
3086
3086
|
attributes: {
|
|
3087
|
-
...
|
|
3087
|
+
...wi,
|
|
3088
3088
|
...n
|
|
3089
3089
|
},
|
|
3090
3090
|
disabled: R.draggable
|
|
3091
|
-
}), p =
|
|
3091
|
+
}), p = Po(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 = Si({
|
|
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 yi;
|
|
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 Di(e, t) {
|
|
3177
3177
|
var n, r;
|
|
3178
3178
|
return typeof e == "boolean" ? {
|
|
3179
3179
|
draggable: e,
|
|
@@ -3186,11 +3186,11 @@ function ji(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
|
-
|
|
3193
|
-
var e =
|
|
3189
|
+
var cr;
|
|
3190
|
+
function Ci() {
|
|
3191
|
+
if (cr) return un;
|
|
3192
|
+
cr = 1;
|
|
3193
|
+
var e = re;
|
|
3194
3194
|
function t(d, m) {
|
|
3195
3195
|
return d === m && (d !== 0 || 1 / d === 1 / m) || d !== d && m !== m;
|
|
3196
3196
|
}
|
|
@@ -3228,9 +3228,9 @@ function Ri() {
|
|
|
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 lr;
|
|
3232
|
+
function ji() {
|
|
3233
|
+
return lr || (lr = 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
|
}
|
|
@@ -3277,19 +3277,19 @@ function Ei() {
|
|
|
3277
3277
|
return v();
|
|
3278
3278
|
}
|
|
3279
3279
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3280
|
-
var o =
|
|
3280
|
+
var o = re, s = typeof Object.is == "function" ? Object.is : e, c = o.useState, a = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
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 ur;
|
|
3285
3285
|
function to() {
|
|
3286
|
-
return
|
|
3286
|
+
return ur || (ur = 1, process.env.NODE_ENV === "production" ? Mt.exports = Ci() : Mt.exports = ji()), Mt.exports;
|
|
3287
3287
|
}
|
|
3288
|
-
var
|
|
3289
|
-
function
|
|
3290
|
-
if (
|
|
3291
|
-
|
|
3292
|
-
var e =
|
|
3288
|
+
var dr;
|
|
3289
|
+
function Ri() {
|
|
3290
|
+
if (dr) return ln;
|
|
3291
|
+
dr = 1;
|
|
3292
|
+
var e = re, t = to();
|
|
3293
3293
|
function n(u, f) {
|
|
3294
3294
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
3295
3295
|
}
|
|
@@ -3337,14 +3337,14 @@ function _i() {
|
|
|
3337
3337
|
}, ln;
|
|
3338
3338
|
}
|
|
3339
3339
|
var fn = {};
|
|
3340
|
-
var
|
|
3341
|
-
function
|
|
3342
|
-
return
|
|
3340
|
+
var fr;
|
|
3341
|
+
function Ei() {
|
|
3342
|
+
return fr || (fr = 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
|
}
|
|
3346
3346
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3347
|
-
var t =
|
|
3347
|
+
var t = re, n = to(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, c = t.useEffect, a = t.useMemo, l = t.useDebugValue;
|
|
3348
3348
|
fn.useSyncExternalStoreWithSelector = function(u, f, d, m, h) {
|
|
3349
3349
|
var v = s(null);
|
|
3350
3350
|
if (v.current === null) {
|
|
@@ -3389,22 +3389,22 @@ function Oi() {
|
|
|
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 hr;
|
|
3393
|
+
function _i() {
|
|
3394
|
+
return hr || (hr = 1, process.env.NODE_ENV === "production" ? Tt.exports = Ri() : Tt.exports = Ei()), Tt.exports;
|
|
3395
3395
|
}
|
|
3396
|
-
var
|
|
3397
|
-
const Sn = /* @__PURE__ */ new WeakMap(),
|
|
3396
|
+
var Oi = _i();
|
|
3397
|
+
const Sn = /* @__PURE__ */ new WeakMap(), Ti = /* @__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(), gr = /* @__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 = Ti.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 Mi(e) {
|
|
3416
3416
|
const t = {
|
|
3417
3417
|
prevVal: e.prevState,
|
|
3418
3418
|
currentVal: e.state
|
|
@@ -3420,7 +3420,7 @@ function Ii(e) {
|
|
|
3420
3420
|
for (const n of e.listeners)
|
|
3421
3421
|
n(t);
|
|
3422
3422
|
}
|
|
3423
|
-
function
|
|
3423
|
+
function $i(e) {
|
|
3424
3424
|
const t = {
|
|
3425
3425
|
prevVal: e.prevState,
|
|
3426
3426
|
currentVal: e.state
|
|
@@ -3428,15 +3428,15 @@ function Ai(e) {
|
|
|
3428
3428
|
for (const n of e.listeners)
|
|
3429
3429
|
n(t);
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3431
|
+
function Ii(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 = gr.get(n) ?? n.prevState;
|
|
3439
|
+
n.prevState = r, Mi(n);
|
|
3440
3440
|
}
|
|
3441
3441
|
for (const n of t) {
|
|
3442
3442
|
const r = Sn.get(n);
|
|
@@ -3446,14 +3446,14 @@ function ki(e) {
|
|
|
3446
3446
|
const r = Sn.get(n);
|
|
3447
3447
|
if (r)
|
|
3448
3448
|
for (const o of r)
|
|
3449
|
-
|
|
3449
|
+
$i(o);
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
3452
|
} finally {
|
|
3453
|
-
hn = !1, Wt.current = [],
|
|
3453
|
+
hn = !1, Wt.current = [], gr.clear();
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function Ai(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) : Ai(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), Ii(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 ?? ki;
|
|
3477
|
+
return Oi.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 ki(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 Ni(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 = pr(e);
|
|
3505
|
+
if (n.length !== pr(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 pr(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 Li(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 zi(e, t) {
|
|
|
3553
3553
|
}))
|
|
3554
3554
|
}));
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function Ni(e) {
|
|
3557
3557
|
be.setState((t) => ({
|
|
3558
3558
|
...t,
|
|
3559
3559
|
tableId: e,
|
|
@@ -3563,19 +3563,19 @@ function Pi(e) {
|
|
|
3563
3563
|
visibility: {}
|
|
3564
3564
|
}));
|
|
3565
3565
|
}
|
|
3566
|
-
const
|
|
3566
|
+
const zi = (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}`, Pi = (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 Yi(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 Vi(e) {
|
|
|
3585
3585
|
sortDirection: "asc"
|
|
3586
3586
|
});
|
|
3587
3587
|
}
|
|
3588
|
-
const
|
|
3588
|
+
const Fi = (e) => {
|
|
3589
3589
|
be.setState((t) => {
|
|
3590
3590
|
const n = {
|
|
3591
3591
|
...t.visibility,
|
|
@@ -3597,18 +3597,18 @@ const Hi = (e) => {
|
|
|
3597
3597
|
};
|
|
3598
3598
|
});
|
|
3599
3599
|
};
|
|
3600
|
-
const
|
|
3600
|
+
const Vi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Hi = (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
|
+
), vr = (e) => {
|
|
3604
|
+
const t = Hi(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(), Wi = (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 Bi = {
|
|
3612
3612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3613
3613
|
width: 24,
|
|
3614
3614
|
height: 24,
|
|
@@ -3619,7 +3619,7 @@ var Gi = {
|
|
|
3619
3619
|
strokeLinecap: "round",
|
|
3620
3620
|
strokeLinejoin: "round"
|
|
3621
3621
|
};
|
|
3622
|
-
const
|
|
3622
|
+
const Ui = Dn(
|
|
3623
3623
|
({
|
|
3624
3624
|
color: e = "currentColor",
|
|
3625
3625
|
size: t = 24,
|
|
@@ -3633,13 +3633,13 @@ const Xi = Dn(
|
|
|
3633
3633
|
"svg",
|
|
3634
3634
|
{
|
|
3635
3635
|
ref: l,
|
|
3636
|
-
...
|
|
3636
|
+
...Bi,
|
|
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 && !Wi(a) && { "aria-hidden": "true" },
|
|
3643
3643
|
...a
|
|
3644
3644
|
},
|
|
3645
3645
|
[
|
|
@@ -3650,49 +3650,49 @@ const Xi = 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(Ui, {
|
|
3654
3654
|
ref: s,
|
|
3655
3655
|
iconNode: t,
|
|
3656
3656
|
className: io(
|
|
3657
|
-
`lucide-${
|
|
3657
|
+
`lucide-${Vi(vr(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 = vr(e), n;
|
|
3665
3665
|
};
|
|
3666
|
-
const
|
|
3666
|
+
const Gi = [
|
|
3667
3667
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3668
3668
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3669
|
-
],
|
|
3670
|
-
const
|
|
3669
|
+
], Xi = fe("arrow-down", Gi);
|
|
3670
|
+
const qi = [
|
|
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
|
+
], Ki = fe("arrow-up-down", qi);
|
|
3676
|
+
const Ji = [
|
|
3677
3677
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3678
3678
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3679
|
-
],
|
|
3680
|
-
const
|
|
3679
|
+
], Zi = fe("arrow-up", Ji);
|
|
3680
|
+
const Qi = [
|
|
3681
3681
|
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3682
|
-
],
|
|
3683
|
-
const
|
|
3682
|
+
], ea = fe("bookmark", Qi);
|
|
3683
|
+
const ta = [
|
|
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
|
+
], mr = fe("calendar", ta);
|
|
3689
|
+
const na = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ra = fe("chevron-left", na);
|
|
3690
|
+
const oa = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], sa = fe("chevron-right", oa);
|
|
3691
|
+
const ia = [
|
|
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
|
+
], aa = fe("columns-2", ia);
|
|
3695
|
+
const ca = [
|
|
3696
3696
|
[
|
|
3697
3697
|
"path",
|
|
3698
3698
|
{
|
|
@@ -3702,13 +3702,13 @@ const ua = [
|
|
|
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
|
+
], la = fe("delete", ca);
|
|
3706
|
+
const ua = [
|
|
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
|
+
], da = fe("ellipsis", ua);
|
|
3711
|
+
const fa = [
|
|
3712
3712
|
[
|
|
3713
3713
|
"path",
|
|
3714
3714
|
{
|
|
@@ -3716,16 +3716,16 @@ const ga = [
|
|
|
3716
3716
|
key: "sc7q7i"
|
|
3717
3717
|
}
|
|
3718
3718
|
]
|
|
3719
|
-
],
|
|
3720
|
-
const
|
|
3719
|
+
], ha = fe("funnel", fa);
|
|
3720
|
+
const ga = [
|
|
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", ga);
|
|
3728
|
+
const pa = [
|
|
3729
3729
|
[
|
|
3730
3730
|
"path",
|
|
3731
3731
|
{
|
|
@@ -3733,14 +3733,14 @@ const ma = [
|
|
|
3733
3733
|
key: "1a8usu"
|
|
3734
3734
|
}
|
|
3735
3735
|
]
|
|
3736
|
-
],
|
|
3737
|
-
const
|
|
3736
|
+
], va = fe("pen", pa);
|
|
3737
|
+
const ma = [
|
|
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
|
+
], xa = fe("refresh-ccw", ma);
|
|
3743
|
+
const ba = [
|
|
3744
3744
|
[
|
|
3745
3745
|
"path",
|
|
3746
3746
|
{
|
|
@@ -3749,8 +3749,8 @@ const wa = [
|
|
|
3749
3749
|
}
|
|
3750
3750
|
],
|
|
3751
3751
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3752
|
-
],
|
|
3753
|
-
const
|
|
3752
|
+
], ya = fe("settings", ba);
|
|
3753
|
+
const wa = [
|
|
3754
3754
|
[
|
|
3755
3755
|
"path",
|
|
3756
3756
|
{
|
|
@@ -3760,7 +3760,7 @@ const Da = [
|
|
|
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", wa);
|
|
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 Sa = b($e.Trigger), Da = b($e.Positioner), Ca = b($e.Content), ja = b($e.Item), Ra = b(Re.Label), Ea = b(Re.HiddenInput), _a = b(Re.Control);
|
|
3774
|
+
function Oa({ 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(Sa, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ i.jsx(aa, { size: 18 }) }) }),
|
|
3778
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(Da, { children: /* @__PURE__ */ i.jsx(Ca, { 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(ja, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(Re.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3781
|
+
/* @__PURE__ */ i.jsx(Ea, {}),
|
|
3782
|
+
/* @__PURE__ */ i.jsx(_a, {}),
|
|
3783
|
+
/* @__PURE__ */ i.jsx(Ra, { children: r.label })
|
|
3784
3784
|
] }) }, r.id);
|
|
3785
3785
|
}) }) }) })
|
|
3786
3786
|
] });
|
|
3787
3787
|
}
|
|
3788
|
-
function
|
|
3788
|
+
function Ta({
|
|
3789
3789
|
id: e,
|
|
3790
3790
|
children: t,
|
|
3791
3791
|
onClick: n,
|
|
@@ -3817,16 +3817,16 @@ function $a({
|
|
|
3817
3817
|
}
|
|
3818
3818
|
);
|
|
3819
3819
|
}
|
|
3820
|
-
function
|
|
3820
|
+
function Ma() {
|
|
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
|
+
Ta,
|
|
3827
3827
|
{
|
|
3828
3828
|
id: a?.id,
|
|
3829
|
-
onClick: () => a?.sortable &&
|
|
3829
|
+
onClick: () => a?.sortable && Yi(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 Ia() {
|
|
|
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(Zi, { size: 14 }) : /* @__PURE__ */ i.jsx(Xi, { size: 14 }) : /* @__PURE__ */ i.jsx(Ki, { size: 14, opacity: 0.4 }))
|
|
3845
3845
|
]
|
|
3846
3846
|
}
|
|
3847
3847
|
)
|
|
@@ -3863,22 +3863,22 @@ function Ia() {
|
|
|
3863
3863
|
{
|
|
3864
3864
|
boxSize: "0.5",
|
|
3865
3865
|
backgroundColor: s.backgroundColorColumnVisibilityMenu,
|
|
3866
|
-
children: /* @__PURE__ */ i.jsx(
|
|
3866
|
+
children: /* @__PURE__ */ i.jsx(Oa, { visibility: t, onToggle: Fi })
|
|
3867
3867
|
}
|
|
3868
3868
|
)
|
|
3869
3869
|
] }) });
|
|
3870
3870
|
}
|
|
3871
|
-
const
|
|
3872
|
-
function
|
|
3871
|
+
const $a = [10, 20, 50, 100], Ia = b(ee.Positioner), Aa = b(ee.Content), ka = b(ee.Item), La = b(zt.PrevTrigger), Na = b(zt.NextTrigger), za = b(ee.HiddenSelect), Pa = b(ee.Control), Ya = b(ee.Trigger), Fa = b(ee.ValueText), Va = b(ee.IndicatorGroup), Ha = b(ee.Indicator);
|
|
3872
|
+
function Wa({
|
|
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 = $a
|
|
3880
3880
|
}) {
|
|
3881
|
-
const a =
|
|
3881
|
+
const a = _r({
|
|
3882
3882
|
items: c.map((l) => ({
|
|
3883
3883
|
label: String(l),
|
|
3884
3884
|
value: String(l)
|
|
@@ -3896,12 +3896,12 @@ function Ua({
|
|
|
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(za, {}),
|
|
3900
|
+
/* @__PURE__ */ i.jsxs(Pa, { children: [
|
|
3901
|
+
/* @__PURE__ */ i.jsx(Ya, { children: /* @__PURE__ */ i.jsx(Fa, { placeholder: "" }) }),
|
|
3902
|
+
/* @__PURE__ */ i.jsx(Va, { children: /* @__PURE__ */ i.jsx(Ha, {}) })
|
|
3903
3903
|
] }),
|
|
3904
|
-
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(
|
|
3904
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(Ia, { children: /* @__PURE__ */ i.jsx(Aa, { children: a.items.map((l) => /* @__PURE__ */ i.jsxs(ka, { item: l.value, children: [
|
|
3905
3905
|
l.label,
|
|
3906
3906
|
/* @__PURE__ */ i.jsx(ee.ItemIndicator, {})
|
|
3907
3907
|
] }, l.value)) }) }) })
|
|
@@ -3917,8 +3917,8 @@ function Ua({
|
|
|
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(jo, { size: "sm", variant: "ghost", children: [
|
|
3921
|
+
/* @__PURE__ */ i.jsx(La, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(ra, { size: 18 }) }) }),
|
|
3922
3922
|
/* @__PURE__ */ i.jsx(
|
|
3923
3923
|
zt.Items,
|
|
3924
3924
|
{
|
|
@@ -3933,14 +3933,14 @@ function Ua({
|
|
|
3933
3933
|
)
|
|
3934
3934
|
}
|
|
3935
3935
|
),
|
|
3936
|
-
/* @__PURE__ */ i.jsx(
|
|
3936
|
+
/* @__PURE__ */ i.jsx(Na, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Next page", children: /* @__PURE__ */ i.jsx(sa, { size: 18 }) }) })
|
|
3937
3937
|
] })
|
|
3938
3938
|
}
|
|
3939
3939
|
)
|
|
3940
3940
|
] }) });
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3943
|
-
function
|
|
3942
|
+
const Ba = b($e.Item), Ua = b($e.Content), Ga = b($e.Positioner), Xa = b($e.Trigger);
|
|
3943
|
+
function qa({
|
|
3944
3944
|
data: e = [],
|
|
3945
3945
|
actions: t = [],
|
|
3946
3946
|
actionConfig: n,
|
|
@@ -3957,11 +3957,11 @@ function Ja({
|
|
|
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(Xa, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(da, { size: 16 }) }) }),
|
|
3961
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(Ga, { children: /* @__PURE__ */ i.jsx(Ua, { 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
|
+
Ba,
|
|
3965
3965
|
{
|
|
3966
3966
|
onClick: () => a.onClick(c.__raw),
|
|
3967
3967
|
colorScheme: a.colorScheme,
|
|
@@ -3980,13 +3980,13 @@ function Ja({
|
|
|
3980
3980
|
c.__key || c.id
|
|
3981
3981
|
)) });
|
|
3982
3982
|
}
|
|
3983
|
-
function
|
|
3983
|
+
function Ka({
|
|
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(Ro, { height: "25px" }) }, s)) }, r)) });
|
|
3988
3988
|
}
|
|
3989
|
-
function
|
|
3989
|
+
function tu({
|
|
3990
3990
|
tableId: e,
|
|
3991
3991
|
data: t = [],
|
|
3992
3992
|
headers: n = [],
|
|
@@ -4007,11 +4007,11 @@ function nu({
|
|
|
4007
4007
|
onRowSelect: y
|
|
4008
4008
|
}) {
|
|
4009
4009
|
F(() => {
|
|
4010
|
-
|
|
4010
|
+
Ni(e);
|
|
4011
4011
|
}, [e]), F(() => {
|
|
4012
|
-
|
|
4012
|
+
Li(t, n);
|
|
4013
4013
|
}, [t, n]), F(() => {
|
|
4014
|
-
g &&
|
|
4014
|
+
g && zi(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 nu({
|
|
|
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
|
+
Pi(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: hi,
|
|
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 nu({
|
|
|
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(Or, {})
|
|
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(Ma, {}),
|
|
4057
|
+
V ? /* @__PURE__ */ i.jsx(Ka, { 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 nu({
|
|
|
4065
4065
|
children: c
|
|
4066
4066
|
}
|
|
4067
4067
|
) }) }) }) : /* @__PURE__ */ i.jsx(
|
|
4068
|
-
|
|
4068
|
+
qa,
|
|
4069
4069
|
{
|
|
4070
4070
|
data: E,
|
|
4071
4071
|
actions: a,
|
|
@@ -4076,7 +4076,7 @@ function nu({
|
|
|
4076
4076
|
] })
|
|
4077
4077
|
] }),
|
|
4078
4078
|
/* @__PURE__ */ i.jsx(Ce, { mt: 0.5, children: /* @__PURE__ */ i.jsx(
|
|
4079
|
-
|
|
4079
|
+
Wa,
|
|
4080
4080
|
{
|
|
4081
4081
|
totalCount: h,
|
|
4082
4082
|
pageSize: u,
|
|
@@ -4092,7 +4092,7 @@ function nu({
|
|
|
4092
4092
|
}
|
|
4093
4093
|
) });
|
|
4094
4094
|
}
|
|
4095
|
-
const
|
|
4095
|
+
const Ja = b(Re.Root), Za = b(Re.HiddenInput), Qa = b(Re.Control), ec = b(Re.Label), tc = ({
|
|
4096
4096
|
value: e,
|
|
4097
4097
|
onChange: t,
|
|
4098
4098
|
size: n = "sm",
|
|
@@ -4101,10 +4101,10 @@ const Qa = b(Re.Root), ec = b(Re.HiddenInput), tc = b(Re.Control), nc = 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(Ja, { value: e, onChange: t, size: n, children: [
|
|
4105
|
+
/* @__PURE__ */ i.jsx(Za, {}),
|
|
4106
4106
|
/* @__PURE__ */ i.jsx(
|
|
4107
|
-
|
|
4107
|
+
Qa,
|
|
4108
4108
|
{
|
|
4109
4109
|
disabled: s,
|
|
4110
4110
|
required: c,
|
|
@@ -4112,9 +4112,9 @@ const Qa = b(Re.Root), ec = b(Re.HiddenInput), tc = b(Re.Control), nc = b(Re.Lab
|
|
|
4112
4112
|
helperText: o
|
|
4113
4113
|
}
|
|
4114
4114
|
),
|
|
4115
|
-
r && /* @__PURE__ */ i.jsx(
|
|
4116
|
-
] }),
|
|
4117
|
-
function
|
|
4115
|
+
r && /* @__PURE__ */ i.jsx(ec, { children: r })
|
|
4116
|
+
] }), nc = b(Te.Root), rc = b(Te.Control), oc = b(Te.Input), sc = b(Te.IndicatorGroup), ic = b(Te.ClearTrigger), ac = b(Te.Trigger), cc = b(Te.Positioner), lc = b(Te.Content);
|
|
4117
|
+
function uc({
|
|
4118
4118
|
label: e,
|
|
4119
4119
|
size: t = "sm",
|
|
4120
4120
|
width: n = "100%",
|
|
@@ -4139,7 +4139,7 @@ function fc({
|
|
|
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 } = Eo({
|
|
4143
4143
|
initialItems: o,
|
|
4144
4144
|
itemToString: s,
|
|
4145
4145
|
itemToValue: c
|
|
@@ -4153,7 +4153,7 @@ function fc({
|
|
|
4153
4153
|
}, [P, V]), F(() => {
|
|
4154
4154
|
l && I(s(l));
|
|
4155
4155
|
}, [l, s]), /* @__PURE__ */ i.jsxs(
|
|
4156
|
-
|
|
4156
|
+
nc,
|
|
4157
4157
|
{
|
|
4158
4158
|
width: n,
|
|
4159
4159
|
size: t,
|
|
@@ -4174,17 +4174,17 @@ function fc({
|
|
|
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(rc, { ...R, children: [
|
|
4178
|
+
/* @__PURE__ */ i.jsx(oc, { placeholder: m ?? "Type to search", ...j }),
|
|
4179
|
+
/* @__PURE__ */ i.jsxs(sc, { children: [
|
|
4180
|
+
/* @__PURE__ */ i.jsx(ic, {}),
|
|
4181
|
+
/* @__PURE__ */ i.jsx(ac, {})
|
|
4182
4182
|
] })
|
|
4183
4183
|
] }),
|
|
4184
|
-
/* @__PURE__ */ i.jsx(
|
|
4184
|
+
/* @__PURE__ */ i.jsx(cc, { children: /* @__PURE__ */ i.jsxs(lc, { 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(Or, { size: "xs", borderWidth: "1px" }),
|
|
4187
|
+
/* @__PURE__ */ i.jsx(_o, { 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 fc({
|
|
|
4195
4195
|
}
|
|
4196
4196
|
);
|
|
4197
4197
|
}
|
|
4198
|
-
const
|
|
4198
|
+
const se = " to ", xr = 10, He = {
|
|
4199
4199
|
DAY_MAX: 31,
|
|
4200
4200
|
MONTH_MAX: 12,
|
|
4201
4201
|
YEAR_MIN: 1900,
|
|
@@ -4207,13 +4207,13 @@ const oe = " to ", mr = 10, He = {
|
|
|
4207
4207
|
month: e.getMonth() + 1,
|
|
4208
4208
|
day: e.getDate()
|
|
4209
4209
|
};
|
|
4210
|
-
},
|
|
4210
|
+
}, br = () => {
|
|
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
|
+
}, dc = () => {
|
|
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
|
+
}, fc = (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 ", mr = 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 = fc(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
|
+
}, hc = (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,20 +4252,20 @@ const oe = " to ", mr = 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, xr);
|
|
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, xr), hc(n, e) || t;
|
|
4262
|
+
}, gc = b(Ut.Root), pc = b(Ut.Trigger), vc = b(Ut.Content), mc = b(Ut.Positioner);
|
|
4263
|
+
function xc({
|
|
4264
4264
|
value: e,
|
|
4265
4265
|
onChange: t,
|
|
4266
4266
|
disabled: n = !1
|
|
4267
4267
|
}) {
|
|
4268
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [s, c] = K(() => r && o ? `${De(r)}${
|
|
4268
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [s, c] = K(() => r && o ? `${De(r)}${se}${De(o)}` : r ? De(r) : ""), [a, l] = K(!1), u = X(null);
|
|
4269
4269
|
F(() => {
|
|
4270
4270
|
const v = (g) => {
|
|
4271
4271
|
g.ctrlKey && g.key === "d" && !g.shiftKey && !g.metaKey && (g.preventDefault(), u.current?.focus());
|
|
@@ -4274,9 +4274,9 @@ function yc({
|
|
|
4274
4274
|
}, []);
|
|
4275
4275
|
const f = (v) => {
|
|
4276
4276
|
let g = v;
|
|
4277
|
-
if (g.includes(
|
|
4278
|
-
const [x, y = ""] = g.split(
|
|
4279
|
-
g = `${ft(x.trim())}${
|
|
4277
|
+
if (g.includes(se)) {
|
|
4278
|
+
const [x, y = ""] = g.split(se);
|
|
4279
|
+
g = `${ft(x.trim())}${se}${ft(
|
|
4280
4280
|
y.trim()
|
|
4281
4281
|
)}`;
|
|
4282
4282
|
} else if (g.toLowerCase().includes(" to ")) {
|
|
@@ -4291,17 +4291,17 @@ function yc({
|
|
|
4291
4291
|
t(void 0);
|
|
4292
4292
|
return;
|
|
4293
4293
|
}
|
|
4294
|
-
if (v.includes(
|
|
4295
|
-
const [g, x = ""] = v.split(
|
|
4294
|
+
if (v.includes(se)) {
|
|
4295
|
+
const [g, x = ""] = v.split(se).map((R) => R.trim()), y = dt(g), j = x ? dt(x) : null;
|
|
4296
4296
|
if (y && j) {
|
|
4297
|
-
const [R, $] = j < y ? [j, y] : [y, j], T = `${De(R)}${
|
|
4297
|
+
const [R, $] = j < y ? [j, y] : [y, j], T = `${De(R)}${se}${De(
|
|
4298
4298
|
$
|
|
4299
4299
|
)}`;
|
|
4300
4300
|
c(T), t(`${R}|${$}`);
|
|
4301
4301
|
} else if (y && !x)
|
|
4302
|
-
c(`${De(y)}${
|
|
4302
|
+
c(`${De(y)}${se}`), t(void 0);
|
|
4303
4303
|
else if (y && x) {
|
|
4304
|
-
const R =
|
|
4304
|
+
const R = dc(), [$, T] = R < y ? [R, y] : [y, R], E = `${De($)}${se}${De(
|
|
4305
4305
|
T
|
|
4306
4306
|
)}`;
|
|
4307
4307
|
c(E), t(`${$}|${T}`);
|
|
@@ -4309,30 +4309,30 @@ function yc({
|
|
|
4309
4309
|
c(""), t(void 0);
|
|
4310
4310
|
} else {
|
|
4311
4311
|
const g = dt(v);
|
|
4312
|
-
g ? (c(`${De(g)}${
|
|
4312
|
+
g ? (c(`${De(g)}${se}`), t(void 0)) : (c(""), t(void 0));
|
|
4313
4313
|
}
|
|
4314
4314
|
}, m = (v) => {
|
|
4315
4315
|
if (v.key !== "Enter") return;
|
|
4316
4316
|
v.preventDefault();
|
|
4317
|
-
const g = u.current?.selectionStart || 0, x = s.indexOf(
|
|
4317
|
+
const g = u.current?.selectionStart || 0, x = s.indexOf(se);
|
|
4318
4318
|
if (!s.trim()) {
|
|
4319
|
-
c(`${
|
|
4319
|
+
c(`${br()}${se}`);
|
|
4320
4320
|
return;
|
|
4321
4321
|
}
|
|
4322
4322
|
if (x === -1) {
|
|
4323
4323
|
const j = dt(s.trim());
|
|
4324
|
-
j && c(`${De(j)}${
|
|
4324
|
+
j && c(`${De(j)}${se}`);
|
|
4325
4325
|
return;
|
|
4326
4326
|
}
|
|
4327
|
-
if (g <= x +
|
|
4328
|
-
const j = s.substring(0, x).trim(), R = s.substring(x +
|
|
4329
|
-
$ && c(`${De($)}${
|
|
4327
|
+
if (g <= x + se.length) {
|
|
4328
|
+
const j = s.substring(0, x).trim(), R = s.substring(x + se.length), $ = dt(j);
|
|
4329
|
+
$ && c(`${De($)}${se}${R}`);
|
|
4330
4330
|
return;
|
|
4331
4331
|
}
|
|
4332
|
-
if (s.substring(x +
|
|
4332
|
+
if (s.substring(x + se.length).trim())
|
|
4333
4333
|
d(), u.current?.blur();
|
|
4334
4334
|
else {
|
|
4335
|
-
const j = s.substring(0, x +
|
|
4335
|
+
const j = s.substring(0, x + se.length) + br();
|
|
4336
4336
|
c(j), setTimeout(() => {
|
|
4337
4337
|
d(), u.current?.blur();
|
|
4338
4338
|
}, 0);
|
|
@@ -4340,37 +4340,37 @@ function yc({
|
|
|
4340
4340
|
}, h = () => {
|
|
4341
4341
|
c(""), t(void 0);
|
|
4342
4342
|
};
|
|
4343
|
-
return /* @__PURE__ */ i.jsx(
|
|
4343
|
+
return /* @__PURE__ */ i.jsx(Tr, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Wn, { position: "revert", children: [
|
|
4344
4344
|
/* @__PURE__ */ i.jsxs(
|
|
4345
|
-
|
|
4345
|
+
gc,
|
|
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(pc, { 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(mr, { 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(mc, { children: /* @__PURE__ */ i.jsxs(vc, { p: 4, children: [
|
|
4363
|
+
/* @__PURE__ */ i.jsx(Oo, {}),
|
|
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(mr, { 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: [
|
|
4370
4370
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
|
|
4371
4371
|
/* @__PURE__ */ i.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
|
|
4372
4372
|
"DD-MM-YYYY",
|
|
4373
|
-
|
|
4373
|
+
se,
|
|
4374
4374
|
"DD-MM-YYYY"
|
|
4375
4375
|
] })
|
|
4376
4376
|
] }),
|
|
@@ -4421,7 +4421,7 @@ function yc({
|
|
|
4421
4421
|
) })
|
|
4422
4422
|
] }) }) });
|
|
4423
4423
|
}
|
|
4424
|
-
const
|
|
4424
|
+
const bc = b(Ge.Root), yc = b(Ge.Label), wc = b(Ge.HelperText), Sc = b(Ge.ErrorText), yr = ({
|
|
4425
4425
|
icon: e,
|
|
4426
4426
|
value: t,
|
|
4427
4427
|
onChange: n,
|
|
@@ -4435,9 +4435,9 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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(bc, { width: c, children: [
|
|
4439
|
+
m && /* @__PURE__ */ i.jsx(yc, { children: a }),
|
|
4440
|
+
/* @__PURE__ */ i.jsx(Tr, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4441
4441
|
Cn,
|
|
4442
4442
|
{
|
|
4443
4443
|
value: t,
|
|
@@ -4449,9 +4449,9 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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(Sc, { fontSize: "xs", children: d }),
|
|
4453
|
+
l && /* @__PURE__ */ i.jsx(wc, { fontSize: "xs", children: l })
|
|
4454
|
+
] }), Dc = b(Ge.Root), Cc = b(Ge.HelperText), jc = b(Ge.ErrorText), Rc = b(ee.Root), Ec = b(ee.Label), _c = b(ee.Control), Oc = b(ee.Trigger), Tc = b(ee.ValueText), Mc = b(ee.IndicatorGroup), $c = b(ee.Indicator), Ic = b(ee.Content), Ac = b(ee.Item), kc = b(ee.ItemIndicator), Lc = b(ee.HiddenSelect), Nc = b(ee.Positioner), zc = ({
|
|
4455
4455
|
options: e = [],
|
|
4456
4456
|
label: t,
|
|
4457
4457
|
value: n,
|
|
@@ -4466,12 +4466,12 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4466
4466
|
errorText: d,
|
|
4467
4467
|
visible: m
|
|
4468
4468
|
}) => {
|
|
4469
|
-
const h =
|
|
4469
|
+
const h = _r({
|
|
4470
4470
|
items: e
|
|
4471
4471
|
});
|
|
4472
|
-
return /* @__PURE__ */ i.jsxs(
|
|
4472
|
+
return /* @__PURE__ */ i.jsxs(Dc, { disabled: u, required: f, children: [
|
|
4473
4473
|
/* @__PURE__ */ i.jsxs(
|
|
4474
|
-
|
|
4474
|
+
Rc,
|
|
4475
4475
|
{
|
|
4476
4476
|
collection: h,
|
|
4477
4477
|
variant: a,
|
|
@@ -4480,34 +4480,34 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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(Lc, {}),
|
|
4484
|
+
m && /* @__PURE__ */ i.jsx(Ec, { children: t }),
|
|
4485
|
+
/* @__PURE__ */ i.jsxs(_c, { children: [
|
|
4486
|
+
/* @__PURE__ */ i.jsx(Oc, { children: /* @__PURE__ */ i.jsx(Tc, { placeholder: o }) }),
|
|
4487
|
+
/* @__PURE__ */ i.jsx(Mc, { children: /* @__PURE__ */ i.jsx($c, {}) })
|
|
4488
4488
|
] }),
|
|
4489
|
-
/* @__PURE__ */ i.jsx(
|
|
4489
|
+
/* @__PURE__ */ i.jsx(Nc, { children: /* @__PURE__ */ i.jsx(Ic, { children: h.items.map((v) => /* @__PURE__ */ i.jsxs(Ac, { item: v, children: [
|
|
4490
4490
|
v.label,
|
|
4491
|
-
/* @__PURE__ */ i.jsx(
|
|
4491
|
+
/* @__PURE__ */ i.jsx(kc, {})
|
|
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(Cc, { children: l }),
|
|
4497
|
+
d && /* @__PURE__ */ i.jsx(jc, { children: d })
|
|
4498
4498
|
] });
|
|
4499
|
-
}, lo = (e = "default") => `FILTER_PRESETS_${e}`,
|
|
4499
|
+
}, lo = (e = "default") => `FILTER_PRESETS_${e}`, Pc = (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
|
+
}, Yc = (e) => typeof window > "u" ? [] : Pc(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 = Yc(e);
|
|
4511
4511
|
return Bt.setState((r) => ({
|
|
4512
4512
|
...r,
|
|
4513
4513
|
[e]: n
|
|
@@ -4517,18 +4517,18 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4517
4517
|
...n,
|
|
4518
4518
|
[e]: t
|
|
4519
4519
|
})), typeof window < "u" && localStorage.setItem(lo(e), JSON.stringify(t));
|
|
4520
|
-
},
|
|
4520
|
+
}, Fc = (e, t) => {
|
|
4521
4521
|
const n = [t, ...Qt(e)];
|
|
4522
4522
|
kn(e, n);
|
|
4523
|
-
},
|
|
4523
|
+
}, Vc = (e, t) => {
|
|
4524
4524
|
const n = Qt(e).filter((r) => r.id !== t);
|
|
4525
4525
|
kn(e, n);
|
|
4526
|
-
},
|
|
4526
|
+
}, nu = (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
|
+
}, Hc = b(Re.Root), Wc = b(Re.HiddenInput), Bc = b(Re.Control), Uc = b(xt.Root), Gc = b(xt.Track), Xc = b(xt.Range), qc = b(xt.Thumbs), Kc = b(xt.Control), Jc = ({ 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 wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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
|
+
Hc,
|
|
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(Wc, {}),
|
|
4565
|
+
/* @__PURE__ */ i.jsx(Bc, {})
|
|
4566
4566
|
]
|
|
4567
4567
|
}
|
|
4568
4568
|
)
|
|
@@ -4570,16 +4570,16 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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
|
+
Uc,
|
|
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(Kc, { children: [
|
|
4581
|
+
/* @__PURE__ */ i.jsx(Gc, { children: /* @__PURE__ */ i.jsx(Xc, {}) }),
|
|
4582
|
+
/* @__PURE__ */ i.jsx(qc, {})
|
|
4583
4583
|
] })
|
|
4584
4584
|
}
|
|
4585
4585
|
)
|
|
@@ -4587,13 +4587,13 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4587
4587
|
]
|
|
4588
4588
|
}
|
|
4589
4589
|
);
|
|
4590
|
-
},
|
|
4590
|
+
}, Zc = b(Ie.Root), Qc = b(Ie.Trigger), el = b(Ie.Backdrop), tl = b(Ie.Positioner), nl = b(Ie.Content), rl = b(Ie.Header), ol = b(Ie.Title), sl = b(Ie.Body), il = b(Ie.Footer), al = b(Ie.CloseTrigger), cl = b(Gt.Root), ll = 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
|
+
yr,
|
|
4597
4597
|
{
|
|
4598
4598
|
placeholder: e.label,
|
|
4599
4599
|
value: e.value,
|
|
@@ -4603,10 +4603,10 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4603
4603
|
}
|
|
4604
4604
|
);
|
|
4605
4605
|
case "number":
|
|
4606
|
-
return /* @__PURE__ */ i.jsx(
|
|
4606
|
+
return /* @__PURE__ */ i.jsx(yr, { label: e.label, value: e.value, onChange: e.onChange });
|
|
4607
4607
|
case "checkbox":
|
|
4608
4608
|
return /* @__PURE__ */ i.jsx(
|
|
4609
|
-
|
|
4609
|
+
tc,
|
|
4610
4610
|
{
|
|
4611
4611
|
label: e.label,
|
|
4612
4612
|
value: e.value,
|
|
@@ -4615,7 +4615,7 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4615
4615
|
);
|
|
4616
4616
|
case "select":
|
|
4617
4617
|
return /* @__PURE__ */ i.jsx(
|
|
4618
|
-
|
|
4618
|
+
zc,
|
|
4619
4619
|
{
|
|
4620
4620
|
label: e.label,
|
|
4621
4621
|
value: e.value,
|
|
@@ -4627,7 +4627,7 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4627
4627
|
);
|
|
4628
4628
|
case "date":
|
|
4629
4629
|
return /* @__PURE__ */ i.jsx(
|
|
4630
|
-
|
|
4630
|
+
xc,
|
|
4631
4631
|
{
|
|
4632
4632
|
value: e.value,
|
|
4633
4633
|
onChange: e.onChange
|
|
@@ -4635,7 +4635,7 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4635
4635
|
);
|
|
4636
4636
|
case "combobox":
|
|
4637
4637
|
return /* @__PURE__ */ i.jsx(
|
|
4638
|
-
|
|
4638
|
+
uc,
|
|
4639
4639
|
{
|
|
4640
4640
|
visible: !0,
|
|
4641
4641
|
label: e.label,
|
|
@@ -4648,7 +4648,7 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4648
4648
|
default:
|
|
4649
4649
|
return null;
|
|
4650
4650
|
}
|
|
4651
|
-
},
|
|
4651
|
+
}, ul = ({
|
|
4652
4652
|
filterDrawerSize: e = "sm",
|
|
4653
4653
|
onVisibilityChange: t,
|
|
4654
4654
|
onSizeChange: n,
|
|
@@ -4665,34 +4665,34 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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
|
+
Fc(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(Zc, { size: e, open: u, onOpenChange: f, children: [
|
|
4676
|
+
/* @__PURE__ */ i.jsx(Qc, { asChild: !0, children: /* @__PURE__ */ i.jsxs(Oe, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4677
|
+
/* @__PURE__ */ i.jsx(ha, { 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(el, {}),
|
|
4682
|
+
/* @__PURE__ */ i.jsx(tl, { children: /* @__PURE__ */ i.jsxs(nl, { children: [
|
|
4683
|
+
/* @__PURE__ */ i.jsx(rl, { children: /* @__PURE__ */ i.jsx(ol, { children: "Filters" }) }),
|
|
4684
|
+
/* @__PURE__ */ i.jsx(sl, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(cl, { defaultValue: "view", children: [
|
|
4685
|
+
/* @__PURE__ */ i.jsxs(ll, { mb: 4, children: [
|
|
4686
4686
|
/* @__PURE__ */ i.jsxs(gn, { value: "view", children: [
|
|
4687
|
-
/* @__PURE__ */ i.jsx(
|
|
4687
|
+
/* @__PURE__ */ i.jsx(va, { size: 16 }),
|
|
4688
4688
|
"Edit"
|
|
4689
4689
|
] }),
|
|
4690
4690
|
/* @__PURE__ */ i.jsxs(gn, { value: "settings", children: [
|
|
4691
|
-
/* @__PURE__ */ i.jsx(
|
|
4691
|
+
/* @__PURE__ */ i.jsx(ya, { size: 16 }),
|
|
4692
4692
|
"Settings"
|
|
4693
4693
|
] }),
|
|
4694
4694
|
/* @__PURE__ */ i.jsxs(gn, { value: "presets", children: [
|
|
4695
|
-
/* @__PURE__ */ i.jsx(
|
|
4695
|
+
/* @__PURE__ */ i.jsx(ea, { size: 16 }),
|
|
4696
4696
|
"Presets"
|
|
4697
4697
|
] })
|
|
4698
4698
|
] }),
|
|
@@ -4714,7 +4714,7 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4714
4714
|
/* @__PURE__ */ i.jsx(pn, { value: "settings", children: /* @__PURE__ */ i.jsx(
|
|
4715
4715
|
Xr,
|
|
4716
4716
|
{
|
|
4717
|
-
sensors:
|
|
4717
|
+
sensors: es(Qo(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 wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4725
4725
|
Zr,
|
|
4726
4726
|
{
|
|
4727
4727
|
items: o.map((v) => v.id),
|
|
4728
|
-
strategy:
|
|
4728
|
+
strategy: pi,
|
|
4729
4729
|
children: o.map((v) => /* @__PURE__ */ i.jsx(
|
|
4730
|
-
|
|
4730
|
+
Jc,
|
|
4731
4731
|
{
|
|
4732
4732
|
filter: v,
|
|
4733
4733
|
onVisibilityChange: t,
|
|
@@ -4776,8 +4776,8 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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: () => Vc(s, v.id),
|
|
4780
|
+
children: /* @__PURE__ */ i.jsx(la, { size: 14 })
|
|
4781
4781
|
}
|
|
4782
4782
|
)
|
|
4783
4783
|
] })
|
|
@@ -4788,11 +4788,11 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = 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(il, { justify: "space-between", children: /* @__PURE__ */ i.jsx(al, { asChild: !0, children: /* @__PURE__ */ i.jsx(jn, {}) }) })
|
|
4792
4792
|
] }) })
|
|
4793
4793
|
] })
|
|
4794
4794
|
] }) });
|
|
4795
|
-
},
|
|
4795
|
+
}, ru = ({
|
|
4796
4796
|
title: e,
|
|
4797
4797
|
filters: t,
|
|
4798
4798
|
onVisibilityChange: n,
|
|
@@ -4820,7 +4820,7 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4820
4820
|
h.id
|
|
4821
4821
|
)),
|
|
4822
4822
|
/* @__PURE__ */ i.jsx(
|
|
4823
|
-
|
|
4823
|
+
ul,
|
|
4824
4824
|
{
|
|
4825
4825
|
filterDrawerSize: f,
|
|
4826
4826
|
onVisibilityChange: n,
|
|
@@ -4840,15 +4840,15 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4840
4840
|
)
|
|
4841
4841
|
] })
|
|
4842
4842
|
] });
|
|
4843
|
-
},
|
|
4843
|
+
}, ou = (e, t) => {
|
|
4844
4844
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4845
|
-
},
|
|
4845
|
+
}, su = (e) => {
|
|
4846
4846
|
try {
|
|
4847
4847
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4848
4848
|
} catch {
|
|
4849
4849
|
return [];
|
|
4850
4850
|
}
|
|
4851
|
-
},
|
|
4851
|
+
}, iu = ({
|
|
4852
4852
|
onClick: e,
|
|
4853
4853
|
size: t = "xs",
|
|
4854
4854
|
variant: n = "solid",
|
|
@@ -4879,8 +4879,8 @@ const wc = b(Ge.Root), Sc = b(Ge.Label), Dc = b(Ge.HelperText), Cc = b(Ge.ErrorT
|
|
|
4879
4879
|
s
|
|
4880
4880
|
] })
|
|
4881
4881
|
}
|
|
4882
|
-
),
|
|
4883
|
-
function
|
|
4882
|
+
), dl = b(oe.Root), fl = b(oe.Backdrop), hl = b(oe.Positioner), gl = b(oe.Content), pl = b(oe.Header), vl = b(oe.Body), ml = b(oe.Footer), xl = b(oe.Title), bl = b(oe.CloseTrigger);
|
|
4883
|
+
function au({
|
|
4884
4884
|
open: e,
|
|
4885
4885
|
onClose: t,
|
|
4886
4886
|
onConfirm: n,
|
|
@@ -4892,16 +4892,16 @@ function cu({
|
|
|
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(dl, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ i.jsxs(Ue, { children: [
|
|
4896
|
+
/* @__PURE__ */ i.jsx(fl, {}),
|
|
4897
|
+
/* @__PURE__ */ i.jsx(hl, { children: /* @__PURE__ */ i.jsxs(gl, { maxW: "480px", children: [
|
|
4898
|
+
/* @__PURE__ */ i.jsx(pl, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(xl, { children: r }) }),
|
|
4899
|
+
/* @__PURE__ */ i.jsx(vl, { 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
|
+
ml,
|
|
4905
4905
|
{
|
|
4906
4906
|
justifyContent: "flex-end",
|
|
4907
4907
|
gap: 2,
|
|
@@ -4924,12 +4924,12 @@ function cu({
|
|
|
4924
4924
|
]
|
|
4925
4925
|
}
|
|
4926
4926
|
),
|
|
4927
|
-
/* @__PURE__ */ i.jsx(
|
|
4927
|
+
/* @__PURE__ */ i.jsx(bl, { asChild: !0, children: /* @__PURE__ */ i.jsx(jn, { size: "sm" }) })
|
|
4928
4928
|
] }) })
|
|
4929
4929
|
] }) });
|
|
4930
4930
|
}
|
|
4931
|
-
const
|
|
4932
|
-
function
|
|
4931
|
+
const yl = b(oe.Root), wl = b(oe.Backdrop), Sl = b(oe.Positioner), Dl = b(oe.Content), Cl = b(oe.Header), jl = b(oe.Body), Rl = b(oe.Footer), El = b(oe.Title), _l = b(oe.CloseTrigger);
|
|
4932
|
+
function cu({
|
|
4933
4933
|
open: e,
|
|
4934
4934
|
onClose: t,
|
|
4935
4935
|
onConfirm: n,
|
|
@@ -4941,7 +4941,7 @@ function lu({
|
|
|
4941
4941
|
}) {
|
|
4942
4942
|
const [l, u] = K(""), f = l === s;
|
|
4943
4943
|
return /* @__PURE__ */ i.jsx(
|
|
4944
|
-
|
|
4944
|
+
yl,
|
|
4945
4945
|
{
|
|
4946
4946
|
open: e,
|
|
4947
4947
|
placement: "center",
|
|
@@ -4949,11 +4949,11 @@ function lu({
|
|
|
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(wl, {}),
|
|
4953
|
+
/* @__PURE__ */ i.jsx(Sl, { children: /* @__PURE__ */ i.jsxs(Dl, { maxW: "550px", children: [
|
|
4954
|
+
/* @__PURE__ */ i.jsx(Cl, { borderBottom: "1px solid", borderColor: "#d3d3d3", children: /* @__PURE__ */ i.jsx(El, { color: "red.600", children: r }) }),
|
|
4955
4955
|
/* @__PURE__ */ i.jsx(
|
|
4956
|
-
|
|
4956
|
+
jl,
|
|
4957
4957
|
{
|
|
4958
4958
|
p: 2,
|
|
4959
4959
|
style: {
|
|
@@ -4992,7 +4992,7 @@ function lu({
|
|
|
4992
4992
|
}
|
|
4993
4993
|
),
|
|
4994
4994
|
/* @__PURE__ */ i.jsxs(
|
|
4995
|
-
|
|
4995
|
+
Rl,
|
|
4996
4996
|
{
|
|
4997
4997
|
justifyContent: "flex-end",
|
|
4998
4998
|
gap: 2,
|
|
@@ -5026,32 +5026,40 @@ function lu({
|
|
|
5026
5026
|
]
|
|
5027
5027
|
}
|
|
5028
5028
|
),
|
|
5029
|
-
/* @__PURE__ */ i.jsx(
|
|
5029
|
+
/* @__PURE__ */ i.jsx(_l, { asChild: !0, children: /* @__PURE__ */ i.jsx(jn, { size: "sm" }) })
|
|
5030
5030
|
] }) })
|
|
5031
5031
|
] })
|
|
5032
5032
|
}
|
|
5033
5033
|
);
|
|
5034
5034
|
}
|
|
5035
|
-
const
|
|
5035
|
+
const Ol = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), Tl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), lu = Be, Ml = b(oe.Title), $l = b(oe.Content);
|
|
5036
|
+
function Il(e) {
|
|
5037
|
+
let t = null, n = null;
|
|
5038
|
+
return re.Children.forEach(e, (r) => {
|
|
5039
|
+
re.isValidElement(r) && (r.type === Ol && (t = r.props.children), r.type === Tl && (n = r.props.children));
|
|
5040
|
+
}), { body: t, actions: n };
|
|
5041
|
+
}
|
|
5042
|
+
const uu = ({
|
|
5036
5043
|
open: e,
|
|
5037
5044
|
onClose: t,
|
|
5038
5045
|
title: n,
|
|
5039
5046
|
children: r,
|
|
5040
5047
|
size: o = "md"
|
|
5041
|
-
}) =>
|
|
5042
|
-
|
|
5043
|
-
/* @__PURE__ */ i.jsxs(
|
|
5044
|
-
/* @__PURE__ */ i.jsx(
|
|
5045
|
-
|
|
5046
|
-
/* @__PURE__ */ i.jsx(
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5048
|
+
}) => {
|
|
5049
|
+
const { body: s, actions: c } = Il(r);
|
|
5050
|
+
return /* @__PURE__ */ i.jsxs(oe.Root, { open: e, onOpenChange: () => t(), children: [
|
|
5051
|
+
/* @__PURE__ */ i.jsx(To, {}),
|
|
5052
|
+
/* @__PURE__ */ i.jsxs($l, { maxW: o, borderRadius: "12px", p: "0", children: [
|
|
5053
|
+
/* @__PURE__ */ i.jsx(Mo, { px: "20px", py: "16px", borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsxs(Un, { justify: "space-between", align: "center", children: [
|
|
5054
|
+
/* @__PURE__ */ i.jsx(Ml, { fontSize: "16px", fontWeight: "600", children: n }),
|
|
5055
|
+
/* @__PURE__ */ i.jsx($o, {})
|
|
5056
|
+
] }) }),
|
|
5057
|
+
s && /* @__PURE__ */ i.jsx(Io, { px: "20px", py: "16px", children: s }),
|
|
5058
|
+
c && /* @__PURE__ */ i.jsx(Ao, { px: "20px", py: "16px", borderTop: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(Un, { ml: "auto", gap: "12px", children: c }) })
|
|
5059
|
+
] })
|
|
5060
|
+
] });
|
|
5061
|
+
};
|
|
5062
|
+
function du({
|
|
5055
5063
|
refetch: e,
|
|
5056
5064
|
isLoading: t = !1,
|
|
5057
5065
|
label: n = "Refresh"
|
|
@@ -5074,7 +5082,7 @@ function uu({
|
|
|
5074
5082
|
onClick: s,
|
|
5075
5083
|
ml: 2,
|
|
5076
5084
|
children: /* @__PURE__ */ i.jsx(
|
|
5077
|
-
|
|
5085
|
+
xa,
|
|
5078
5086
|
{
|
|
5079
5087
|
size: 14,
|
|
5080
5088
|
style: {
|
|
@@ -5085,12 +5093,12 @@ function uu({
|
|
|
5085
5093
|
}
|
|
5086
5094
|
);
|
|
5087
5095
|
}
|
|
5088
|
-
var At = { exports: {} },
|
|
5089
|
-
function
|
|
5090
|
-
return
|
|
5096
|
+
var At = { exports: {} }, Al = At.exports, wr;
|
|
5097
|
+
function kl() {
|
|
5098
|
+
return wr || (wr = 1, (function(e, t) {
|
|
5091
5099
|
(function(n, r) {
|
|
5092
5100
|
e.exports = r();
|
|
5093
|
-
})(
|
|
5101
|
+
})(Al, (function() {
|
|
5094
5102
|
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) {
|
|
5095
5103
|
var D = ["th", "st", "nd", "rd"], w = M % 100;
|
|
5096
5104
|
return "[" + M + (D[(w - 20) % 10] || D[w] || D[0]) + "]";
|
|
@@ -5363,14 +5371,14 @@ function Ll() {
|
|
|
5363
5371
|
}));
|
|
5364
5372
|
})(At)), At.exports;
|
|
5365
5373
|
}
|
|
5366
|
-
var
|
|
5367
|
-
const en = /* @__PURE__ */ Xt(
|
|
5368
|
-
var kt = { exports: {} },
|
|
5369
|
-
function
|
|
5370
|
-
return
|
|
5374
|
+
var Ll = kl();
|
|
5375
|
+
const en = /* @__PURE__ */ Xt(Ll);
|
|
5376
|
+
var kt = { exports: {} }, Nl = kt.exports, Sr;
|
|
5377
|
+
function zl() {
|
|
5378
|
+
return Sr || (Sr = 1, (function(e, t) {
|
|
5371
5379
|
(function(n, r) {
|
|
5372
5380
|
e.exports = r();
|
|
5373
|
-
})(
|
|
5381
|
+
})(Nl, (function() {
|
|
5374
5382
|
return function(n, r, o) {
|
|
5375
5383
|
n = n || {};
|
|
5376
5384
|
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" };
|
|
@@ -5409,14 +5417,14 @@ function Pl() {
|
|
|
5409
5417
|
}));
|
|
5410
5418
|
})(kt)), kt.exports;
|
|
5411
5419
|
}
|
|
5412
|
-
var
|
|
5413
|
-
const
|
|
5414
|
-
var Lt = { exports: {} },
|
|
5415
|
-
function
|
|
5416
|
-
return
|
|
5420
|
+
var Pl = zl();
|
|
5421
|
+
const Yl = /* @__PURE__ */ Xt(Pl);
|
|
5422
|
+
var Lt = { exports: {} }, Fl = Lt.exports, Dr;
|
|
5423
|
+
function Vl() {
|
|
5424
|
+
return Dr || (Dr = 1, (function(e, t) {
|
|
5417
5425
|
(function(n, r) {
|
|
5418
5426
|
e.exports = r();
|
|
5419
|
-
})(
|
|
5427
|
+
})(Fl, (function() {
|
|
5420
5428
|
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" };
|
|
5421
5429
|
return function(r, o, s) {
|
|
5422
5430
|
var c = o.prototype, a = c.format;
|
|
@@ -5436,14 +5444,14 @@ function Hl() {
|
|
|
5436
5444
|
}));
|
|
5437
5445
|
})(Lt)), Lt.exports;
|
|
5438
5446
|
}
|
|
5439
|
-
var
|
|
5440
|
-
const
|
|
5441
|
-
var Nt = { exports: {} },
|
|
5442
|
-
function
|
|
5443
|
-
return
|
|
5447
|
+
var Hl = Vl();
|
|
5448
|
+
const Wl = /* @__PURE__ */ Xt(Hl);
|
|
5449
|
+
var Nt = { exports: {} }, Bl = Nt.exports, Cr;
|
|
5450
|
+
function Ul() {
|
|
5451
|
+
return Cr || (Cr = 1, (function(e, t) {
|
|
5444
5452
|
(function(n, r) {
|
|
5445
5453
|
e.exports = r();
|
|
5446
|
-
})(
|
|
5454
|
+
})(Bl, (function() {
|
|
5447
5455
|
return function(n, r) {
|
|
5448
5456
|
var o = r.prototype, s = o.format;
|
|
5449
5457
|
o.format = function(c) {
|
|
@@ -5488,12 +5496,12 @@ function Gl() {
|
|
|
5488
5496
|
}));
|
|
5489
5497
|
})(Nt)), Nt.exports;
|
|
5490
5498
|
}
|
|
5491
|
-
var
|
|
5492
|
-
const
|
|
5493
|
-
en.extend(
|
|
5494
|
-
en.extend(
|
|
5495
|
-
en.extend(
|
|
5496
|
-
const
|
|
5499
|
+
var Gl = Ul();
|
|
5500
|
+
const Xl = /* @__PURE__ */ Xt(Gl);
|
|
5501
|
+
en.extend(Yl);
|
|
5502
|
+
en.extend(Wl);
|
|
5503
|
+
en.extend(Xl);
|
|
5504
|
+
const ql = {
|
|
5497
5505
|
date: "DD MMM YYYY",
|
|
5498
5506
|
time: "hh:mm A",
|
|
5499
5507
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5501,7 +5509,7 @@ const Kl = {
|
|
|
5501
5509
|
short: "DD/MM/YY",
|
|
5502
5510
|
relative: ""
|
|
5503
5511
|
};
|
|
5504
|
-
function
|
|
5512
|
+
function jr({
|
|
5505
5513
|
value: e,
|
|
5506
5514
|
variant: t = "dateTime",
|
|
5507
5515
|
format: n,
|
|
@@ -5509,9 +5517,9 @@ function Cr({
|
|
|
5509
5517
|
}) {
|
|
5510
5518
|
if (!e) return r;
|
|
5511
5519
|
const o = en(e);
|
|
5512
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5520
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? ql[t]) : r;
|
|
5513
5521
|
}
|
|
5514
|
-
function
|
|
5522
|
+
function fu({
|
|
5515
5523
|
value: e,
|
|
5516
5524
|
dateVariant: t = "date",
|
|
5517
5525
|
timeVariant: n = "time",
|
|
@@ -5526,19 +5534,19 @@ function du({
|
|
|
5526
5534
|
timeFontWeight: d = "400"
|
|
5527
5535
|
}) {
|
|
5528
5536
|
return /* @__PURE__ */ i.jsxs(Pt, { gap: 0.5, align: s, children: [
|
|
5529
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children:
|
|
5537
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children: jr({
|
|
5530
5538
|
value: e,
|
|
5531
5539
|
variant: t,
|
|
5532
5540
|
format: r
|
|
5533
5541
|
}) }),
|
|
5534
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: f, fontWeight: d, color: u, children:
|
|
5542
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: f, fontWeight: d, color: u, children: jr({
|
|
5535
5543
|
value: e,
|
|
5536
5544
|
variant: n,
|
|
5537
5545
|
format: o
|
|
5538
5546
|
}) })
|
|
5539
5547
|
] });
|
|
5540
5548
|
}
|
|
5541
|
-
class
|
|
5549
|
+
class Kl {
|
|
5542
5550
|
state = /* @__PURE__ */ new Map();
|
|
5543
5551
|
listeners = /* @__PURE__ */ new Map();
|
|
5544
5552
|
get(t) {
|
|
@@ -5562,7 +5570,7 @@ class Jl {
|
|
|
5562
5570
|
this.state.clear();
|
|
5563
5571
|
}
|
|
5564
5572
|
}
|
|
5565
|
-
class
|
|
5573
|
+
class Rr {
|
|
5566
5574
|
constructor(t) {
|
|
5567
5575
|
this.baseUrl = t;
|
|
5568
5576
|
}
|
|
@@ -5571,11 +5579,11 @@ class jr {
|
|
|
5571
5579
|
return n.set("keys", t.join(",")), (await (await fetch(`${this.baseUrl}/options?${n}`)).json()).data;
|
|
5572
5580
|
}
|
|
5573
5581
|
}
|
|
5574
|
-
class
|
|
5582
|
+
class Er {
|
|
5575
5583
|
constructor(t) {
|
|
5576
5584
|
this.api = t;
|
|
5577
5585
|
}
|
|
5578
|
-
store = new
|
|
5586
|
+
store = new Kl();
|
|
5579
5587
|
inflight = /* @__PURE__ */ new Map();
|
|
5580
5588
|
getRaw(t) {
|
|
5581
5589
|
return this.store.get(t);
|
|
@@ -5613,22 +5621,22 @@ class Rr {
|
|
|
5613
5621
|
n.forEach((o) => this.inflight.set(o, r)), await r;
|
|
5614
5622
|
}
|
|
5615
5623
|
}
|
|
5616
|
-
const
|
|
5617
|
-
function
|
|
5618
|
-
const e = We(
|
|
5624
|
+
const fo = tt(null);
|
|
5625
|
+
function ho() {
|
|
5626
|
+
const e = We(fo);
|
|
5619
5627
|
if (!e)
|
|
5620
5628
|
throw new Error("OptionsProvider is missing. Wrap your app with <OptionsProvider />");
|
|
5621
5629
|
return e;
|
|
5622
5630
|
}
|
|
5623
|
-
function
|
|
5631
|
+
function hu({
|
|
5624
5632
|
client: { apiUrl: e },
|
|
5625
5633
|
children: t
|
|
5626
5634
|
}) {
|
|
5627
|
-
const n = X(new
|
|
5628
|
-
return n.current || (n.current = new
|
|
5635
|
+
const n = X(new Er(new Rr(e)));
|
|
5636
|
+
return n.current || (n.current = new Er(new Rr(e))), /* @__PURE__ */ i.jsx(fo.Provider, { value: n.current, children: t });
|
|
5629
5637
|
}
|
|
5630
|
-
function
|
|
5631
|
-
const t =
|
|
5638
|
+
function gu(e) {
|
|
5639
|
+
const t = ho(), [n, r] = K(t.getRaw(e)?.value);
|
|
5632
5640
|
return F(() => {
|
|
5633
5641
|
let o = !0;
|
|
5634
5642
|
t.getKey(e).then((c) => {
|
|
@@ -5642,8 +5650,8 @@ function hu(e) {
|
|
|
5642
5650
|
};
|
|
5643
5651
|
}, [e, t]), n;
|
|
5644
5652
|
}
|
|
5645
|
-
function
|
|
5646
|
-
const t =
|
|
5653
|
+
function pu(e) {
|
|
5654
|
+
const t = ho(), [n, r] = K({});
|
|
5647
5655
|
return F(() => {
|
|
5648
5656
|
let o = !0;
|
|
5649
5657
|
t.getMultiKey(e).then((c) => {
|
|
@@ -5662,13 +5670,13 @@ function gu(e) {
|
|
|
5662
5670
|
};
|
|
5663
5671
|
}, [e.join("|"), t]), n;
|
|
5664
5672
|
}
|
|
5665
|
-
async function
|
|
5673
|
+
async function vu(e, t) {
|
|
5666
5674
|
return e.getKey(t);
|
|
5667
5675
|
}
|
|
5668
|
-
async function
|
|
5676
|
+
async function mu(e, t) {
|
|
5669
5677
|
await e.getMultiKey(t);
|
|
5670
5678
|
}
|
|
5671
|
-
function
|
|
5679
|
+
function xu(e = {}) {
|
|
5672
5680
|
const { initialPage: t = 1, initialLimit: n = 20 } = e, [r, o] = K(t), [s, c] = K(n), a = Q((m) => {
|
|
5673
5681
|
o(Math.max(1, m));
|
|
5674
5682
|
}, []), l = Q((m) => {
|
|
@@ -5690,8 +5698,8 @@ function mu(e = {}) {
|
|
|
5690
5698
|
reset: d
|
|
5691
5699
|
};
|
|
5692
5700
|
}
|
|
5693
|
-
function
|
|
5694
|
-
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = K(t), s =
|
|
5701
|
+
function bu(e = {}) {
|
|
5702
|
+
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = K(t), s = Jl(r, n), c = Q((l) => {
|
|
5695
5703
|
o(l);
|
|
5696
5704
|
}, []), a = Q(() => {
|
|
5697
5705
|
o(t);
|
|
@@ -5703,7 +5711,7 @@ function xu(e = {}) {
|
|
|
5703
5711
|
reset: a
|
|
5704
5712
|
};
|
|
5705
5713
|
}
|
|
5706
|
-
function
|
|
5714
|
+
function Jl(e, t = 300) {
|
|
5707
5715
|
const [n, r] = K(e);
|
|
5708
5716
|
return F(() => {
|
|
5709
5717
|
const o = setTimeout(() => {
|
|
@@ -5713,41 +5721,44 @@ function Zl(e, t = 300) {
|
|
|
5713
5721
|
}, [e, t]), n;
|
|
5714
5722
|
}
|
|
5715
5723
|
export {
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5724
|
+
tu as DataTable,
|
|
5725
|
+
ru as Filters,
|
|
5726
|
+
Rr as HttpOptionsApi,
|
|
5727
|
+
iu as MDSButton,
|
|
5728
|
+
tc as MDSCheckbox,
|
|
5729
|
+
uc as MDSCombobox,
|
|
5730
|
+
au as MDSConfirmActionDialog,
|
|
5731
|
+
cu as MDSConfirmDeleteDialog,
|
|
5732
|
+
lu as MDSDialogAction,
|
|
5733
|
+
Tl as MDSDialogActions,
|
|
5734
|
+
Ol as MDSDialogBody,
|
|
5735
|
+
uu as MDSDialogWrapper,
|
|
5736
|
+
yr as MDSInput,
|
|
5737
|
+
du as MDSRefreshButton,
|
|
5738
|
+
zc as MDSSelectBox,
|
|
5739
|
+
Er as OptionsClientImpl,
|
|
5740
|
+
hu as OptionsProvider,
|
|
5741
|
+
Kl as OptionsStore,
|
|
5742
|
+
du as RefreshButton,
|
|
5743
|
+
fu as StackedDateTime,
|
|
5744
|
+
Fc as addPreset,
|
|
5745
|
+
Vc as deletePreset,
|
|
5746
|
+
jr as formatDateTime,
|
|
5747
|
+
vu as getOption,
|
|
5737
5748
|
Qt as getPresets,
|
|
5738
|
-
|
|
5739
|
-
|
|
5749
|
+
su as loadOrder,
|
|
5750
|
+
mu as prefetchOptions,
|
|
5740
5751
|
Bt as presetStore,
|
|
5741
|
-
|
|
5752
|
+
ou as saveOrder,
|
|
5742
5753
|
kn as savePresets,
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5754
|
+
zi as setActionsConfig,
|
|
5755
|
+
Li as setData,
|
|
5756
|
+
Ni as setTableId,
|
|
5746
5757
|
be as tableStore,
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5758
|
+
nu as updatePreset,
|
|
5759
|
+
bu as useDebouncedSearch,
|
|
5760
|
+
gu as useOption,
|
|
5761
|
+
pu as useOptions,
|
|
5762
|
+
xu as usePagination,
|
|
5752
5763
|
b as withChildren
|
|
5753
5764
|
};
|