@mdspl/mds-shared-ui 0.8.6 → 0.8.7
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.js +489 -459
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import oe, { useLayoutEffect as
|
|
2
|
-
import { Menu as $e, Checkbox as Re, IconButton as Oe, Portal as Ue, Table as le, HStack as he, Select as te, Pagination as zt, createListCollection as
|
|
1
|
+
import oe, { useLayoutEffect as So, useEffect as F, useRef as X, useMemo as G, useCallback as ee, useState as J, createContext as tt, memo as Do, useReducer as Co, useContext as We, forwardRef as jn, createElement as xn } from "react";
|
|
2
|
+
import { Menu as $e, Checkbox as Re, IconButton as Oe, Portal as Ue, Table as le, HStack as he, Select as te, 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 Bn, PopoverArrow as Oo, VStack as Le, Kbd as Un, Input as Rn, Field as Ge, Slider as xt, Drawer as Ie, Tabs as Gt, Button as Be, CloseButton as Xt, Dialog as K, Stack as Pt, Flex as sn } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as jt, createPortal as To } from "react-dom";
|
|
4
4
|
function qt(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
|
|
8
|
+
var Gn;
|
|
9
9
|
function Mo() {
|
|
10
|
-
if (
|
|
11
|
-
|
|
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,16 +28,16 @@ function Mo() {
|
|
|
28
28
|
return lt.Fragment = t, lt.jsx = n, lt.jsxs = n, lt;
|
|
29
29
|
}
|
|
30
30
|
var ut = {};
|
|
31
|
-
var
|
|
31
|
+
var Xn;
|
|
32
32
|
function $o() {
|
|
33
|
-
return
|
|
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")
|
|
37
37
|
return p.$$typeof === S ? null : p.displayName || p.name || null;
|
|
38
38
|
if (typeof p == "string") return p;
|
|
39
39
|
switch (p) {
|
|
40
|
-
case
|
|
40
|
+
case b:
|
|
41
41
|
return "Fragment";
|
|
42
42
|
case j:
|
|
43
43
|
return "Profiler";
|
|
@@ -95,7 +95,7 @@ function $o() {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
function r(p) {
|
|
98
|
-
if (p ===
|
|
98
|
+
if (p === b) return "<>";
|
|
99
99
|
if (typeof p == "object" && p !== null && p.$$typeof === V)
|
|
100
100
|
return "<...>";
|
|
101
101
|
try {
|
|
@@ -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 = oe, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"),
|
|
227
|
+
var h = oe, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), g = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__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 = {
|
|
@@ -236,7 +236,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
h,
|
|
237
237
|
s
|
|
238
238
|
)(), k = D(r(s)), N = {};
|
|
239
|
-
ut.Fragment =
|
|
239
|
+
ut.Fragment = b, ut.jsx = function(p, C, L) {
|
|
240
240
|
var Y = 1e4 > B.recentlyCreatedOwnerStacks++;
|
|
241
241
|
return f(
|
|
242
242
|
p,
|
|
@@ -259,9 +259,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
};
|
|
260
260
|
})()), ut;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
var qn;
|
|
263
263
|
function Io() {
|
|
264
|
-
return
|
|
264
|
+
return qn || (qn = 1, process.env.NODE_ENV === "production" ? Rt.exports = Mo() : Rt.exports = $o()), Rt.exports;
|
|
265
265
|
}
|
|
266
266
|
var i = Io();
|
|
267
267
|
function Ao() {
|
|
@@ -281,30 +281,30 @@ function nt(e) {
|
|
|
281
281
|
return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
|
|
282
282
|
t === "[object global]";
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function En(e) {
|
|
285
285
|
return "nodeType" in e;
|
|
286
286
|
}
|
|
287
287
|
function pe(e) {
|
|
288
288
|
var t, n;
|
|
289
|
-
return e ? nt(e) ? e :
|
|
289
|
+
return e ? nt(e) ? e : En(e) && (t = (n = e.ownerDocument) == null ? void 0 : n.defaultView) != null ? t : window : window;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function _n(e) {
|
|
292
292
|
const {
|
|
293
293
|
Document: t
|
|
294
294
|
} = pe(e);
|
|
295
295
|
return e instanceof t;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function bt(e) {
|
|
298
298
|
return nt(e) ? !1 : e instanceof pe(e).HTMLElement;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Mr(e) {
|
|
301
301
|
return e instanceof pe(e).SVGElement;
|
|
302
302
|
}
|
|
303
303
|
function rt(e) {
|
|
304
|
-
return e ? nt(e) ? e.document :
|
|
304
|
+
return e ? nt(e) ? e.document : En(e) ? _n(e) ? e : bt(e) || Mr(e) ? e.ownerDocument : document : document : document;
|
|
305
305
|
}
|
|
306
|
-
const Me = Kt ?
|
|
307
|
-
function
|
|
306
|
+
const Me = Kt ? So : F;
|
|
307
|
+
function On(e) {
|
|
308
308
|
const t = X(e);
|
|
309
309
|
return Me(() => {
|
|
310
310
|
t.current = e;
|
|
@@ -341,7 +341,7 @@ function yt(e, t) {
|
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
343
|
function Yt(e) {
|
|
344
|
-
const t =
|
|
344
|
+
const t = On(e), n = X(null), r = ee(
|
|
345
345
|
(o) => {
|
|
346
346
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
347
347
|
},
|
|
@@ -356,16 +356,16 @@ function bn(e) {
|
|
|
356
356
|
t.current = e;
|
|
357
357
|
}, [e]), t.current;
|
|
358
358
|
}
|
|
359
|
-
let
|
|
359
|
+
let an = {};
|
|
360
360
|
function wt(e, t) {
|
|
361
361
|
return G(() => {
|
|
362
362
|
if (t)
|
|
363
363
|
return t;
|
|
364
|
-
const n =
|
|
365
|
-
return
|
|
364
|
+
const n = an[e] == null ? 0 : an[e] + 1;
|
|
365
|
+
return an[e] = n, e + "-" + n;
|
|
366
366
|
}, [e, t]);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function $r(e) {
|
|
369
369
|
return function(t) {
|
|
370
370
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
371
371
|
r[o - 1] = arguments[o];
|
|
@@ -381,11 +381,11 @@ function Mr(e) {
|
|
|
381
381
|
});
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
const Qe = /* @__PURE__ */
|
|
384
|
+
const Qe = /* @__PURE__ */ $r(1), Ft = /* @__PURE__ */ $r(-1);
|
|
385
385
|
function Lo(e) {
|
|
386
386
|
return "clientX" in e && "clientY" in e;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Tn(e) {
|
|
389
389
|
if (!e)
|
|
390
390
|
return !1;
|
|
391
391
|
const {
|
|
@@ -401,7 +401,7 @@ function No(e) {
|
|
|
401
401
|
} = pe(e.target);
|
|
402
402
|
return t && e instanceof t;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function yn(e) {
|
|
405
405
|
if (No(e)) {
|
|
406
406
|
if (e.touches && e.touches.length) {
|
|
407
407
|
const {
|
|
@@ -467,9 +467,9 @@ const et = /* @__PURE__ */ Object.freeze({
|
|
|
467
467
|
return t + " " + n + "ms " + r;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
}),
|
|
470
|
+
}), Kn = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
471
471
|
function zo(e) {
|
|
472
|
-
return e.matches(
|
|
472
|
+
return e.matches(Kn) ? e : e.querySelector(Kn);
|
|
473
473
|
}
|
|
474
474
|
const Po = {
|
|
475
475
|
display: "none"
|
|
@@ -521,9 +521,9 @@ function Vo() {
|
|
|
521
521
|
announcement: e
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
|
-
const
|
|
524
|
+
const Ir = /* @__PURE__ */ tt(null);
|
|
525
525
|
function Ho(e) {
|
|
526
|
-
const t = We(
|
|
526
|
+
const t = We(Ir);
|
|
527
527
|
F(() => {
|
|
528
528
|
if (!t)
|
|
529
529
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
@@ -712,25 +712,25 @@ function Qo(e, t) {
|
|
|
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
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
|
-
const
|
|
721
|
+
const Ar = (e) => {
|
|
722
722
|
let {
|
|
723
723
|
collisionRect: t,
|
|
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 = Ko(
|
|
733
|
+
const u = Ko(Jn(l), o);
|
|
734
734
|
s.push({
|
|
735
735
|
id: a,
|
|
736
736
|
data: {
|
|
@@ -781,7 +781,7 @@ function ns(e, t, n) {
|
|
|
781
781
|
scaleY: t && n ? t.height / n.height : 1
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function kr(e, t) {
|
|
785
785
|
return e && t ? {
|
|
786
786
|
x: e.left - t.left,
|
|
787
787
|
y: e.top - t.top
|
|
@@ -872,7 +872,7 @@ 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
|
});
|
|
@@ -899,51 +899,51 @@ function us(e, t) {
|
|
|
899
899
|
return typeof s == "string" ? n.test(s) : !1;
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function Mn(e, t) {
|
|
903
903
|
const n = [];
|
|
904
904
|
function r(o) {
|
|
905
905
|
if (t != null && n.length >= t || !o)
|
|
906
906
|
return n;
|
|
907
|
-
if (
|
|
907
|
+
if (_n(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
|
|
908
908
|
return n.push(o.scrollingElement), n;
|
|
909
|
-
if (!
|
|
909
|
+
if (!bt(o) || Mr(o) || n.includes(o))
|
|
910
910
|
return n;
|
|
911
911
|
const s = pe(e).getComputedStyle(o);
|
|
912
912
|
return o !== e && us(o, s) && n.push(o), ls(o, s) ? n : r(o.parentNode);
|
|
913
913
|
}
|
|
914
914
|
return e ? r(e) : n;
|
|
915
915
|
}
|
|
916
|
-
function
|
|
917
|
-
const [t] =
|
|
916
|
+
function Lr(e) {
|
|
917
|
+
const [t] = Mn(e, 1);
|
|
918
918
|
return t ?? null;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
return !Kt || !e ? null : nt(e) ? e :
|
|
920
|
+
function cn(e) {
|
|
921
|
+
return !Kt || !e ? null : nt(e) ? e : En(e) ? _n(e) || e === rt(e).scrollingElement ? window : bt(e) ? e : null : null;
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Nr(e) {
|
|
924
924
|
return nt(e) ? e.scrollX : e.scrollLeft;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function zr(e) {
|
|
927
927
|
return nt(e) ? e.scrollY : e.scrollTop;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function wn(e) {
|
|
930
930
|
return {
|
|
931
|
-
x:
|
|
932
|
-
y:
|
|
931
|
+
x: Nr(e),
|
|
932
|
+
y: zr(e)
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
935
|
var ae;
|
|
936
936
|
(function(e) {
|
|
937
937
|
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
938
938
|
})(ae || (ae = {}));
|
|
939
|
-
function
|
|
939
|
+
function Pr(e) {
|
|
940
940
|
return !Kt || !e ? !1 : e === document.scrollingElement;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Yr(e) {
|
|
943
943
|
const t = {
|
|
944
944
|
x: 0,
|
|
945
945
|
y: 0
|
|
946
|
-
}, n =
|
|
946
|
+
}, n = Pr(e) ? {
|
|
947
947
|
height: window.innerHeight,
|
|
948
948
|
width: window.innerWidth
|
|
949
949
|
} : {
|
|
@@ -979,7 +979,7 @@ function fs(e, t, n, r, o) {
|
|
|
979
979
|
isBottom: f,
|
|
980
980
|
isLeft: d,
|
|
981
981
|
isRight: m
|
|
982
|
-
} =
|
|
982
|
+
} = Yr(e), h = {
|
|
983
983
|
x: 0,
|
|
984
984
|
y: 0
|
|
985
985
|
}, v = {
|
|
@@ -1024,14 +1024,14 @@ function hs(e) {
|
|
|
1024
1024
|
height: e.clientHeight
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return e.reduce((t, n) => Qe(t,
|
|
1027
|
+
function Fr(e) {
|
|
1028
|
+
return e.reduce((t, n) => Qe(t, wn(n)), je);
|
|
1029
1029
|
}
|
|
1030
1030
|
function gs(e) {
|
|
1031
|
-
return e.reduce((t, n) => t +
|
|
1031
|
+
return e.reduce((t, n) => t + Nr(n), 0);
|
|
1032
1032
|
}
|
|
1033
1033
|
function ps(e) {
|
|
1034
|
-
return e.reduce((t, n) => t +
|
|
1034
|
+
return e.reduce((t, n) => t + zr(n), 0);
|
|
1035
1035
|
}
|
|
1036
1036
|
function vs(e, t) {
|
|
1037
1037
|
if (t === void 0 && (t = ot), !e)
|
|
@@ -1042,16 +1042,16 @@ function vs(e, t) {
|
|
|
1042
1042
|
bottom: o,
|
|
1043
1043
|
right: s
|
|
1044
1044
|
} = t(e);
|
|
1045
|
-
|
|
1045
|
+
Lr(e) && (o <= 0 || s <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
1046
1046
|
block: "center",
|
|
1047
1047
|
inline: "center"
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
1050
|
const ms = [["x", ["left", "right"], gs], ["y", ["top", "bottom"], ps]];
|
|
1051
|
-
class
|
|
1051
|
+
class $n {
|
|
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;
|
|
1054
|
-
const r =
|
|
1054
|
+
const r = Mn(n), o = Fr(r);
|
|
1055
1055
|
this.rect = {
|
|
1056
1056
|
...t
|
|
1057
1057
|
}, this.width = t.width, this.height = t.height;
|
|
@@ -1083,13 +1083,13 @@ 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 xs(e) {
|
|
1087
1087
|
const {
|
|
1088
1088
|
EventTarget: t
|
|
1089
1089
|
} = pe(e);
|
|
1090
1090
|
return e instanceof t ? e : rt(e);
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function ln(e, t) {
|
|
1093
1093
|
const n = Math.abs(e.x), r = Math.abs(e.y);
|
|
1094
1094
|
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t ? r > t.y : !1;
|
|
1095
1095
|
}
|
|
@@ -1097,17 +1097,17 @@ 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 bs(e) {
|
|
1104
1104
|
e.stopPropagation();
|
|
1105
1105
|
}
|
|
1106
1106
|
var W;
|
|
1107
1107
|
(function(e) {
|
|
1108
1108
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
1109
1109
|
})(W || (W = {}));
|
|
1110
|
-
const
|
|
1110
|
+
const Vr = {
|
|
1111
1111
|
start: [W.Space, W.Enter],
|
|
1112
1112
|
cancel: [W.Esc],
|
|
1113
1113
|
end: [W.Space, W.Enter, W.Tab]
|
|
@@ -1138,7 +1138,7 @@ const Fr = {
|
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
};
|
|
1141
|
-
class
|
|
1141
|
+
class Hr {
|
|
1142
1142
|
constructor(t) {
|
|
1143
1143
|
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = t;
|
|
1144
1144
|
const {
|
|
@@ -1159,13 +1159,13 @@ class Vr {
|
|
|
1159
1159
|
r && vs(r), n(je);
|
|
1160
1160
|
}
|
|
1161
1161
|
handleKeyDown(t) {
|
|
1162
|
-
if (
|
|
1162
|
+
if (Tn(t)) {
|
|
1163
1163
|
const {
|
|
1164
1164
|
active: n,
|
|
1165
1165
|
context: r,
|
|
1166
1166
|
options: o
|
|
1167
1167
|
} = this.props, {
|
|
1168
|
-
keyboardCodes: s =
|
|
1168
|
+
keyboardCodes: s = Vr,
|
|
1169
1169
|
coordinateGetter: c = ys,
|
|
1170
1170
|
scrollBehavior: a = "smooth"
|
|
1171
1171
|
} = o, {
|
|
@@ -1199,19 +1199,19 @@ class Vr {
|
|
|
1199
1199
|
scrollableAncestors: v
|
|
1200
1200
|
} = r.current;
|
|
1201
1201
|
for (const g of v) {
|
|
1202
|
-
const
|
|
1202
|
+
const b = t.code, {
|
|
1203
1203
|
isTop: y,
|
|
1204
1204
|
isRight: j,
|
|
1205
1205
|
isLeft: R,
|
|
1206
1206
|
isBottom: $,
|
|
1207
1207
|
maxScroll: T,
|
|
1208
1208
|
minScroll: E
|
|
1209
|
-
} =
|
|
1210
|
-
x: Math.min(
|
|
1211
|
-
y: Math.min(
|
|
1212
|
-
}, V =
|
|
1209
|
+
} = Yr(g), I = hs(g), A = {
|
|
1210
|
+
x: Math.min(b === W.Right ? I.right - I.width / 2 : I.right, Math.max(b === W.Right ? I.left : I.left + I.width / 2, d.x)),
|
|
1211
|
+
y: Math.min(b === W.Down ? I.bottom - I.height / 2 : I.bottom, Math.max(b === W.Down ? I.top : I.top + I.height / 2, d.y))
|
|
1212
|
+
}, V = b === W.Right && !j || b === W.Left && !R, P = b === W.Down && !$ || b === W.Up && !y;
|
|
1213
1213
|
if (V && A.x !== d.x) {
|
|
1214
|
-
const S = g.scrollLeft + m.x, B =
|
|
1214
|
+
const S = g.scrollLeft + m.x, B = b === W.Right && S <= T.x || b === W.Left && S >= E.x;
|
|
1215
1215
|
if (B && !m.y) {
|
|
1216
1216
|
g.scrollTo({
|
|
1217
1217
|
left: S,
|
|
@@ -1219,13 +1219,13 @@ class Vr {
|
|
|
1219
1219
|
});
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
|
-
B ? h.x = g.scrollLeft - S : h.x =
|
|
1222
|
+
B ? h.x = g.scrollLeft - S : h.x = b === W.Right ? g.scrollLeft - T.x : g.scrollLeft - E.x, h.x && g.scrollBy({
|
|
1223
1223
|
left: -h.x,
|
|
1224
1224
|
behavior: a
|
|
1225
1225
|
});
|
|
1226
1226
|
break;
|
|
1227
1227
|
} else if (P && A.y !== d.y) {
|
|
1228
|
-
const S = g.scrollTop + m.y, B =
|
|
1228
|
+
const S = g.scrollTop + m.y, B = b === W.Down && S <= T.y || b === W.Up && S >= E.y;
|
|
1229
1229
|
if (B && !m.x) {
|
|
1230
1230
|
g.scrollTo({
|
|
1231
1231
|
top: S,
|
|
@@ -1233,7 +1233,7 @@ class Vr {
|
|
|
1233
1233
|
});
|
|
1234
1234
|
return;
|
|
1235
1235
|
}
|
|
1236
|
-
B ? h.y = g.scrollTop - S : h.y =
|
|
1236
|
+
B ? h.y = g.scrollTop - S : h.y = b === W.Down ? g.scrollTop - T.y : g.scrollTop - E.y, h.y && g.scrollBy({
|
|
1237
1237
|
top: -h.y,
|
|
1238
1238
|
behavior: a
|
|
1239
1239
|
});
|
|
@@ -1266,11 +1266,11 @@ class Vr {
|
|
|
1266
1266
|
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
|
-
|
|
1269
|
+
Hr.activators = [{
|
|
1270
1270
|
eventName: "onKeyDown",
|
|
1271
1271
|
handler: (e, t, n) => {
|
|
1272
1272
|
let {
|
|
1273
|
-
keyboardCodes: r =
|
|
1273
|
+
keyboardCodes: r = Vr,
|
|
1274
1274
|
onActivation: o
|
|
1275
1275
|
} = t, {
|
|
1276
1276
|
active: s
|
|
@@ -1287,22 +1287,22 @@ Vr.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
|
-
class
|
|
1296
|
+
class In {
|
|
1297
1297
|
constructor(t, n, r) {
|
|
1298
1298
|
var o;
|
|
1299
|
-
r === void 0 && (r =
|
|
1299
|
+
r === void 0 && (r = xs(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, {
|
|
1303
1303
|
target: c
|
|
1304
1304
|
} = s;
|
|
1305
|
-
this.props = t, this.events = n, this.document = rt(c), this.documentListeners = new ht(this.document), this.listeners = new ht(r), this.windowListeners = new ht(pe(c)), this.initialCoordinates = (o =
|
|
1305
|
+
this.props = t, this.events = n, this.document = rt(c), this.documentListeners = new ht(this.document), this.listeners = new ht(r), this.windowListeners = new ht(pe(c)), this.initialCoordinates = (o = yn(s)) != null ? o : je, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1306
1306
|
}
|
|
1307
1307
|
attach() {
|
|
1308
1308
|
const {
|
|
@@ -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, bs, {
|
|
1354
1354
|
capture: !0
|
|
1355
1355
|
}), this.removeTextSelection(), this.documentListeners.add(we.SelectionChange, this.removeTextSelection), n(t));
|
|
1356
1356
|
}
|
|
@@ -1368,15 +1368,15 @@ class $n {
|
|
|
1368
1368
|
} = s;
|
|
1369
1369
|
if (!o)
|
|
1370
1370
|
return;
|
|
1371
|
-
const l = (n =
|
|
1371
|
+
const l = (n = yn(t)) != null ? n : je, u = Ft(o, l);
|
|
1372
1372
|
if (!r && a) {
|
|
1373
|
-
if (
|
|
1374
|
-
if (a.tolerance != null &&
|
|
1373
|
+
if (er(a)) {
|
|
1374
|
+
if (a.tolerance != null && ln(u, a.tolerance))
|
|
1375
1375
|
return this.handleCancel();
|
|
1376
|
-
if (
|
|
1376
|
+
if (ln(u, a.distance))
|
|
1377
1377
|
return this.handleStart();
|
|
1378
1378
|
}
|
|
1379
|
-
if (
|
|
1379
|
+
if (tr(a) && ln(u, a.tolerance))
|
|
1380
1380
|
return this.handleCancel();
|
|
1381
1381
|
this.handlePending(a, u);
|
|
1382
1382
|
return;
|
|
@@ -1416,7 +1416,7 @@ const ws = {
|
|
|
1416
1416
|
name: "pointerup"
|
|
1417
1417
|
}
|
|
1418
1418
|
};
|
|
1419
|
-
class
|
|
1419
|
+
class An extends In {
|
|
1420
1420
|
constructor(t) {
|
|
1421
1421
|
const {
|
|
1422
1422
|
event: n
|
|
@@ -1424,7 +1424,7 @@ class In extends $n {
|
|
|
1424
1424
|
super(t, ws, r);
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
-
|
|
1427
|
+
An.activators = [{
|
|
1428
1428
|
eventName: "onPointerDown",
|
|
1429
1429
|
handler: (e, t) => {
|
|
1430
1430
|
let {
|
|
@@ -1445,11 +1445,11 @@ const Ss = {
|
|
|
1445
1445
|
name: "mouseup"
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
var
|
|
1448
|
+
var Sn;
|
|
1449
1449
|
(function(e) {
|
|
1450
1450
|
e[e.RightClick = 2] = "RightClick";
|
|
1451
|
-
})(
|
|
1452
|
-
class Ds extends
|
|
1451
|
+
})(Sn || (Sn = {}));
|
|
1452
|
+
class Ds extends In {
|
|
1453
1453
|
constructor(t) {
|
|
1454
1454
|
super(t, Ss, rt(t.event.target));
|
|
1455
1455
|
}
|
|
@@ -1462,12 +1462,12 @@ Ds.activators = [{
|
|
|
1462
1462
|
} = e, {
|
|
1463
1463
|
onActivation: r
|
|
1464
1464
|
} = t;
|
|
1465
|
-
return n.button ===
|
|
1465
|
+
return n.button === Sn.RightClick ? !1 : (r?.({
|
|
1466
1466
|
event: n
|
|
1467
1467
|
}), !0);
|
|
1468
1468
|
}
|
|
1469
1469
|
}];
|
|
1470
|
-
const
|
|
1470
|
+
const un = {
|
|
1471
1471
|
cancel: {
|
|
1472
1472
|
name: "touchcancel"
|
|
1473
1473
|
},
|
|
@@ -1478,16 +1478,16 @@ const ln = {
|
|
|
1478
1478
|
name: "touchend"
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
|
-
class Cs extends
|
|
1481
|
+
class Cs extends In {
|
|
1482
1482
|
constructor(t) {
|
|
1483
|
-
super(t,
|
|
1483
|
+
super(t, un);
|
|
1484
1484
|
}
|
|
1485
1485
|
static setup() {
|
|
1486
|
-
return window.addEventListener(
|
|
1486
|
+
return window.addEventListener(un.move.name, t, {
|
|
1487
1487
|
capture: !1,
|
|
1488
1488
|
passive: !1
|
|
1489
1489
|
}), function() {
|
|
1490
|
-
window.removeEventListener(
|
|
1490
|
+
window.removeEventListener(un.move.name, t);
|
|
1491
1491
|
};
|
|
1492
1492
|
function t() {
|
|
1493
1493
|
}
|
|
@@ -1535,7 +1535,7 @@ function js(e) {
|
|
|
1535
1535
|
const h = Es({
|
|
1536
1536
|
delta: d,
|
|
1537
1537
|
disabled: !s
|
|
1538
|
-
}), [v, g] = ko(),
|
|
1538
|
+
}), [v, g] = ko(), b = X({
|
|
1539
1539
|
x: 0,
|
|
1540
1540
|
y: 0
|
|
1541
1541
|
}), y = X({
|
|
@@ -1557,7 +1557,7 @@ function js(e) {
|
|
|
1557
1557
|
const E = R.current;
|
|
1558
1558
|
if (!E)
|
|
1559
1559
|
return;
|
|
1560
|
-
const I =
|
|
1560
|
+
const I = b.current.x * y.current.x, A = b.current.y * y.current.y;
|
|
1561
1561
|
E.scrollBy(I, A);
|
|
1562
1562
|
}, []), T = G(() => a === Ht.TreeOrder ? [...u].reverse() : u, [a, u]);
|
|
1563
1563
|
F(
|
|
@@ -1579,11 +1579,11 @@ function js(e) {
|
|
|
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) {
|
|
1582
|
-
g(), R.current = E, v($, c),
|
|
1582
|
+
g(), R.current = E, v($, c), b.current = P, y.current = V;
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
|
-
|
|
1586
|
+
b.current = {
|
|
1587
1587
|
x: 0,
|
|
1588
1588
|
y: 0
|
|
1589
1589
|
}, y.current = {
|
|
@@ -1669,11 +1669,11 @@ var mt;
|
|
|
1669
1669
|
(function(e) {
|
|
1670
1670
|
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
1671
1671
|
})(mt || (mt = {}));
|
|
1672
|
-
var
|
|
1672
|
+
var Dn;
|
|
1673
1673
|
(function(e) {
|
|
1674
1674
|
e.Optimized = "optimized";
|
|
1675
|
-
})(
|
|
1676
|
-
const
|
|
1675
|
+
})(Dn || (Dn = {}));
|
|
1676
|
+
const nr = /* @__PURE__ */ new Map();
|
|
1677
1677
|
function Ts(e, t) {
|
|
1678
1678
|
let {
|
|
1679
1679
|
dragging: n,
|
|
@@ -1684,12 +1684,12 @@ function Ts(e, t) {
|
|
|
1684
1684
|
frequency: a,
|
|
1685
1685
|
measure: l,
|
|
1686
1686
|
strategy: u
|
|
1687
|
-
} = o, f = X(e), d =
|
|
1687
|
+
} = o, f = X(e), d = b(), m = vt(d), h = ee(function(y) {
|
|
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)
|
|
@@ -1698,7 +1698,7 @@ function Ts(e, t) {
|
|
|
1698
1698
|
j.set(R.id, R.rect.current);
|
|
1699
1699
|
continue;
|
|
1700
1700
|
}
|
|
1701
|
-
const $ = R.node.current, T = $ ? new
|
|
1701
|
+
const $ = R.node.current, T = $ ? new $n(l($), $) : null;
|
|
1702
1702
|
R.rect.current = T, T && j.set(R.id, T);
|
|
1703
1703
|
}
|
|
1704
1704
|
return j;
|
|
@@ -1732,7 +1732,7 @@ function Ts(e, t) {
|
|
|
1732
1732
|
measureDroppableContainers: h,
|
|
1733
1733
|
measuringScheduled: s != null
|
|
1734
1734
|
};
|
|
1735
|
-
function
|
|
1735
|
+
function b() {
|
|
1736
1736
|
switch (u) {
|
|
1737
1737
|
case mt.Always:
|
|
1738
1738
|
return !1;
|
|
@@ -1743,18 +1743,18 @@ function Ts(e, t) {
|
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1746
|
+
function Wr(e, t) {
|
|
1747
1747
|
return yt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
1748
1748
|
}
|
|
1749
1749
|
function Ms(e, t) {
|
|
1750
|
-
return
|
|
1750
|
+
return Wr(e, t);
|
|
1751
1751
|
}
|
|
1752
1752
|
function $s(e) {
|
|
1753
1753
|
let {
|
|
1754
1754
|
callback: t,
|
|
1755
1755
|
disabled: n
|
|
1756
1756
|
} = e;
|
|
1757
|
-
const r =
|
|
1757
|
+
const r = On(t), o = G(() => {
|
|
1758
1758
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1759
1759
|
return;
|
|
1760
1760
|
const {
|
|
@@ -1769,7 +1769,7 @@ function Jt(e) {
|
|
|
1769
1769
|
callback: t,
|
|
1770
1770
|
disabled: n
|
|
1771
1771
|
} = e;
|
|
1772
|
-
const r =
|
|
1772
|
+
const r = On(t), o = G(
|
|
1773
1773
|
() => {
|
|
1774
1774
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1775
1775
|
return;
|
|
@@ -1784,9 +1784,9 @@ function Jt(e) {
|
|
|
1784
1784
|
return F(() => () => o?.disconnect(), [o]), o;
|
|
1785
1785
|
}
|
|
1786
1786
|
function Is(e) {
|
|
1787
|
-
return new
|
|
1787
|
+
return new $n(ot(e), e);
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1789
|
+
function rr(e, t, n) {
|
|
1790
1790
|
t === void 0 && (t = Is);
|
|
1791
1791
|
const [r, o] = J(null);
|
|
1792
1792
|
function s() {
|
|
@@ -1826,30 +1826,30 @@ function nr(e, t, n) {
|
|
|
1826
1826
|
}, [e]), r;
|
|
1827
1827
|
}
|
|
1828
1828
|
function As(e) {
|
|
1829
|
-
const t =
|
|
1830
|
-
return
|
|
1829
|
+
const t = Wr(e);
|
|
1830
|
+
return kr(e, t);
|
|
1831
1831
|
}
|
|
1832
|
-
const
|
|
1832
|
+
const or = [];
|
|
1833
1833
|
function ks(e) {
|
|
1834
|
-
const t = X(e), n = yt((r) => e ? r && r !==
|
|
1834
|
+
const t = X(e), n = yt((r) => e ? r && r !== or && e && t.current && e.parentNode === t.current.parentNode ? r : Mn(e) : or, [e]);
|
|
1835
1835
|
return F(() => {
|
|
1836
1836
|
t.current = e;
|
|
1837
1837
|
}, [e]), n;
|
|
1838
1838
|
}
|
|
1839
1839
|
function Ls(e) {
|
|
1840
1840
|
const [t, n] = J(null), r = X(e), o = ee((s) => {
|
|
1841
|
-
const c =
|
|
1842
|
-
c && n((a) => a ? (a.set(c,
|
|
1841
|
+
const c = cn(s.target);
|
|
1842
|
+
c && n((a) => a ? (a.set(c, wn(c)), new Map(a)) : null);
|
|
1843
1843
|
}, []);
|
|
1844
1844
|
return F(() => {
|
|
1845
1845
|
const s = r.current;
|
|
1846
1846
|
if (e !== s) {
|
|
1847
1847
|
c(s);
|
|
1848
1848
|
const a = e.map((l) => {
|
|
1849
|
-
const u =
|
|
1849
|
+
const u = cn(l);
|
|
1850
1850
|
return u ? (u.addEventListener("scroll", o, {
|
|
1851
1851
|
passive: !0
|
|
1852
|
-
}), [u,
|
|
1852
|
+
}), [u, wn(u)]) : null;
|
|
1853
1853
|
}).filter((l) => l != null);
|
|
1854
1854
|
n(a.length ? new Map(a) : null), r.current = e;
|
|
1855
1855
|
}
|
|
@@ -1858,13 +1858,13 @@ function Ls(e) {
|
|
|
1858
1858
|
};
|
|
1859
1859
|
function c(a) {
|
|
1860
1860
|
a.forEach((l) => {
|
|
1861
|
-
const u =
|
|
1861
|
+
const u = cn(l);
|
|
1862
1862
|
u?.removeEventListener("scroll", o);
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
}, [o, e]), G(() => e.length ? t ? Array.from(t.values()).reduce((s, c) => Qe(s, c), je) :
|
|
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(
|
|
@@ -1915,15 +1915,15 @@ function zs(e, t) {
|
|
|
1915
1915
|
}, n;
|
|
1916
1916
|
}, {}), [e, t]);
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Br(e) {
|
|
1919
1919
|
return G(() => e ? cs(e) : null, [e]);
|
|
1920
1920
|
}
|
|
1921
|
-
const
|
|
1921
|
+
const ir = [];
|
|
1922
1922
|
function Ps(e, t) {
|
|
1923
1923
|
t === void 0 && (t = ot);
|
|
1924
|
-
const [n] = e, r =
|
|
1924
|
+
const [n] = e, r = Br(n ? pe(n) : null), [o, s] = J(ir);
|
|
1925
1925
|
function c() {
|
|
1926
|
-
s(() => e.length ? e.map((l) =>
|
|
1926
|
+
s(() => e.length ? e.map((l) => Pr(l) ? r : new $n(t(l), l)) : ir);
|
|
1927
1927
|
}
|
|
1928
1928
|
const a = Jt({
|
|
1929
1929
|
callback: c
|
|
@@ -1938,7 +1938,7 @@ function Ys(e) {
|
|
|
1938
1938
|
if (e.children.length > 1)
|
|
1939
1939
|
return e;
|
|
1940
1940
|
const t = e.children[0];
|
|
1941
|
-
return
|
|
1941
|
+
return bt(t) ? t : e;
|
|
1942
1942
|
}
|
|
1943
1943
|
function Fs(e) {
|
|
1944
1944
|
let {
|
|
@@ -1948,7 +1948,7 @@ function Fs(e) {
|
|
|
1948
1948
|
for (const {
|
|
1949
1949
|
target: f
|
|
1950
1950
|
} of u)
|
|
1951
|
-
if (
|
|
1951
|
+
if (bt(f)) {
|
|
1952
1952
|
r((d) => {
|
|
1953
1953
|
const m = t(f);
|
|
1954
1954
|
return d ? {
|
|
@@ -1972,21 +1972,21 @@ function Fs(e) {
|
|
|
1972
1972
|
}), [n, a, l]);
|
|
1973
1973
|
}
|
|
1974
1974
|
const Vs = [{
|
|
1975
|
-
sensor:
|
|
1975
|
+
sensor: An,
|
|
1976
1976
|
options: {}
|
|
1977
1977
|
}, {
|
|
1978
|
-
sensor:
|
|
1978
|
+
sensor: Hr,
|
|
1979
1979
|
options: {}
|
|
1980
1980
|
}], Hs = {
|
|
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
|
-
frequency:
|
|
1989
|
+
frequency: Dn.Optimized
|
|
1990
1990
|
},
|
|
1991
1991
|
dragOverlay: {
|
|
1992
1992
|
measure: ot
|
|
@@ -2049,7 +2049,7 @@ const Ws = {
|
|
|
2049
2049
|
draggableNodes: /* @__PURE__ */ new Map(),
|
|
2050
2050
|
over: null,
|
|
2051
2051
|
measureDroppableContainers: Vt
|
|
2052
|
-
}, Zt = /* @__PURE__ */ tt(Bs),
|
|
2052
|
+
}, Zt = /* @__PURE__ */ tt(Bs), Ur = /* @__PURE__ */ tt(Ws);
|
|
2053
2053
|
function Us() {
|
|
2054
2054
|
return {
|
|
2055
2055
|
draggable: {
|
|
@@ -2173,7 +2173,7 @@ function Xs(e) {
|
|
|
2173
2173
|
} = We(Zt), s = bn(r), c = bn(n?.id);
|
|
2174
2174
|
return F(() => {
|
|
2175
2175
|
if (!t && !r && s && c != null) {
|
|
2176
|
-
if (!
|
|
2176
|
+
if (!Tn(s) || document.activeElement === s.target)
|
|
2177
2177
|
return;
|
|
2178
2178
|
const a = o.get(c);
|
|
2179
2179
|
if (!a)
|
|
@@ -2252,9 +2252,9 @@ function Js(e) {
|
|
|
2252
2252
|
const u = t?.node.current;
|
|
2253
2253
|
if (!u || u.isConnected === !1)
|
|
2254
2254
|
return;
|
|
2255
|
-
const f = n(u), d =
|
|
2255
|
+
const f = n(u), d = kr(f, r);
|
|
2256
2256
|
if (c || (d.x = 0), a || (d.y = 0), s.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
|
|
2257
|
-
const m =
|
|
2257
|
+
const m = Lr(u);
|
|
2258
2258
|
m && m.scrollBy({
|
|
2259
2259
|
top: d.y,
|
|
2260
2260
|
left: d.x
|
|
@@ -2262,7 +2262,7 @@ function Js(e) {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
}, [t, c, a, r, n]);
|
|
2264
2264
|
}
|
|
2265
|
-
const
|
|
2265
|
+
const Gr = /* @__PURE__ */ tt({
|
|
2266
2266
|
...je,
|
|
2267
2267
|
scaleX: 1,
|
|
2268
2268
|
scaleY: 1
|
|
@@ -2271,7 +2271,7 @@ 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
|
|
2274
|
+
const Xr = /* @__PURE__ */ Do(function(t) {
|
|
2275
2275
|
var n, r, o, s;
|
|
2276
2276
|
let {
|
|
2277
2277
|
id: c,
|
|
@@ -2284,7 +2284,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2284
2284
|
modifiers: h,
|
|
2285
2285
|
...v
|
|
2286
2286
|
} = t;
|
|
2287
|
-
const g =
|
|
2287
|
+
const g = Co(Gs, void 0, Us), [b, y] = g, [j, R] = Wo(), [$, T] = J(Ve.Uninitialized), E = $ === Ve.Initialized, {
|
|
2288
2288
|
draggable: {
|
|
2289
2289
|
active: I,
|
|
2290
2290
|
nodes: A,
|
|
@@ -2293,7 +2293,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2293
2293
|
droppable: {
|
|
2294
2294
|
containers: P
|
|
2295
2295
|
}
|
|
2296
|
-
} =
|
|
2296
|
+
} = b, S = I != null ? A.get(I) : null, B = X({
|
|
2297
2297
|
initial: null,
|
|
2298
2298
|
translated: null
|
|
2299
2299
|
}), U = G(() => {
|
|
@@ -2312,14 +2312,14 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2312
2312
|
dragging: E,
|
|
2313
2313
|
dependencies: [V.x, V.y],
|
|
2314
2314
|
config: C.droppable
|
|
2315
|
-
}), Q = _s(A, I), H = G(() => _ ?
|
|
2315
|
+
}), Q = _s(A, I), H = G(() => _ ? yn(_) : null, [_]), ne = wo(), re = Ms(Q, C.draggable.measure);
|
|
2316
2316
|
Js({
|
|
2317
2317
|
activeNode: I != null ? A.get(I) : null,
|
|
2318
2318
|
config: ne.layoutShiftCompensation,
|
|
2319
2319
|
initialRect: re,
|
|
2320
2320
|
measure: C.draggable.measure
|
|
2321
2321
|
});
|
|
2322
|
-
const z =
|
|
2322
|
+
const z = rr(Q, C.draggable.measure, re), ge = rr(Q ? Q.parentElement : null), ue = X({
|
|
2323
2323
|
activatorEvent: null,
|
|
2324
2324
|
active: null,
|
|
2325
2325
|
activeNode: Q,
|
|
@@ -2335,10 +2335,10 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2335
2335
|
scrollAdjustedTranslate: null
|
|
2336
2336
|
}), Se = P.getNodeFor((n = ue.current.over) == null ? void 0 : n.id), Ae = Fs({
|
|
2337
2337
|
measure: C.dragOverlay.measure
|
|
2338
|
-
}), Xe = (r = Ae.nodeRef.current) != null ? r : Q, qe = E ? (o = Ae.rect) != null ? o : z : null,
|
|
2338
|
+
}), Xe = (r = Ae.nodeRef.current) != null ? r : Q, qe = E ? (o = Ae.rect) != null ? o : z : null, Nn = !!(Ae.nodeRef.current && Ae.rect), zn = As(Nn ? null : z), nn = Br(Xe ? pe(Xe) : null), Ne = ks(E ? Se ?? Q : null), Dt = Ps(Ne), Ct = qs(h, {
|
|
2339
2339
|
transform: {
|
|
2340
|
-
x: V.x -
|
|
2341
|
-
y: V.y -
|
|
2340
|
+
x: V.x - zn.x,
|
|
2341
|
+
y: V.y - zn.y,
|
|
2342
2342
|
scaleX: 1,
|
|
2343
2343
|
scaleY: 1
|
|
2344
2344
|
},
|
|
@@ -2352,13 +2352,13 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2352
2352
|
scrollableAncestors: Ne,
|
|
2353
2353
|
scrollableAncestorRects: Dt,
|
|
2354
2354
|
windowRect: nn
|
|
2355
|
-
}),
|
|
2355
|
+
}), Pn = H ? Qe(H, V) : null, Yn = Ls(Ne), go = sr(Yn), po = sr(Yn, [z]), Ke = Qe(Ct, go), Je = qe ? os(qe, Ct) : null, st = U && Je ? d({
|
|
2356
2356
|
active: U,
|
|
2357
2357
|
collisionRect: Je,
|
|
2358
2358
|
droppableRects: L,
|
|
2359
2359
|
droppableContainers: p,
|
|
2360
|
-
pointerCoordinates:
|
|
2361
|
-
}) : null,
|
|
2360
|
+
pointerCoordinates: Pn
|
|
2361
|
+
}) : null, Fn = Qo(st, "id"), [ze, Vn] = J(null), vo = Nn ? Ct : Qe(Ct, po), mo = ns(vo, (s = ze?.rect) != null ? s : null, z), rn = X(null), Hn = ee(
|
|
2362
2362
|
(de, ve) => {
|
|
2363
2363
|
let {
|
|
2364
2364
|
sensor: me,
|
|
@@ -2369,10 +2369,10 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2369
2369
|
const ye = A.get(M.current);
|
|
2370
2370
|
if (!ye)
|
|
2371
2371
|
return;
|
|
2372
|
-
const
|
|
2372
|
+
const xe = de.nativeEvent, Ee = new me({
|
|
2373
2373
|
active: M.current,
|
|
2374
2374
|
activeNode: ye,
|
|
2375
|
-
event:
|
|
2375
|
+
event: xe,
|
|
2376
2376
|
options: Pe,
|
|
2377
2377
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2378
2378
|
// otherwise they are frozen in time with the stale arguments
|
|
@@ -2416,7 +2416,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2416
2416
|
const {
|
|
2417
2417
|
onDragStart: ke
|
|
2418
2418
|
} = k.current, it = {
|
|
2419
|
-
activatorEvent:
|
|
2419
|
+
activatorEvent: xe,
|
|
2420
2420
|
active: {
|
|
2421
2421
|
id: Ye,
|
|
2422
2422
|
data: _e.data,
|
|
@@ -2431,7 +2431,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2431
2431
|
}), j({
|
|
2432
2432
|
type: "onDragStart",
|
|
2433
2433
|
event: it
|
|
2434
|
-
}), w(rn.current), O(
|
|
2434
|
+
}), w(rn.current), O(xe);
|
|
2435
2435
|
});
|
|
2436
2436
|
},
|
|
2437
2437
|
onMove(ce) {
|
|
@@ -2458,7 +2458,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2458
2458
|
cancelDrop: ct
|
|
2459
2459
|
} = k.current;
|
|
2460
2460
|
Fe = {
|
|
2461
|
-
activatorEvent:
|
|
2461
|
+
activatorEvent: xe,
|
|
2462
2462
|
active: _e,
|
|
2463
2463
|
collisions: ke,
|
|
2464
2464
|
delta: at,
|
|
@@ -2468,7 +2468,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2468
2468
|
M.current = null, jt(() => {
|
|
2469
2469
|
y({
|
|
2470
2470
|
type: ce
|
|
2471
|
-
}), T(Ve.Uninitialized),
|
|
2471
|
+
}), T(Ve.Uninitialized), Vn(null), w(null), O(null), rn.current = null;
|
|
2472
2472
|
const ct = ce === ie.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2473
2473
|
if (Fe) {
|
|
2474
2474
|
const on = k.current[ct];
|
|
@@ -2483,22 +2483,22 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2483
2483
|
},
|
|
2484
2484
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2485
2485
|
[A]
|
|
2486
|
-
),
|
|
2487
|
-
const ye = me.nativeEvent,
|
|
2486
|
+
), xo = ee((de, ve) => (me, Pe) => {
|
|
2487
|
+
const ye = me.nativeEvent, xe = A.get(Pe);
|
|
2488
2488
|
if (
|
|
2489
2489
|
// Another sensor is already instantiating
|
|
2490
2490
|
M.current !== null || // No active draggable
|
|
2491
|
-
!
|
|
2491
|
+
!xe || // Event has already been captured
|
|
2492
2492
|
ye.dndKit || ye.defaultPrevented
|
|
2493
2493
|
)
|
|
2494
2494
|
return;
|
|
2495
2495
|
const Ee = {
|
|
2496
|
-
active:
|
|
2496
|
+
active: xe
|
|
2497
2497
|
};
|
|
2498
2498
|
de(me, ve.options, Ee) === !0 && (ye.dndKit = {
|
|
2499
2499
|
capturedBy: ve.sensor
|
|
2500
|
-
}, M.current = Pe,
|
|
2501
|
-
}, [A,
|
|
2500
|
+
}, M.current = Pe, Hn(me, ve));
|
|
2501
|
+
}, [A, Hn]), Wn = Os(f, xo);
|
|
2502
2502
|
Ns(f), Me(() => {
|
|
2503
2503
|
z && $ === Ve.Initializing && T(Ve.Initialized);
|
|
2504
2504
|
}, [z, $]), F(
|
|
@@ -2513,7 +2513,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2513
2513
|
} = ue.current;
|
|
2514
2514
|
if (!ve || !me)
|
|
2515
2515
|
return;
|
|
2516
|
-
const
|
|
2516
|
+
const xe = {
|
|
2517
2517
|
active: ve,
|
|
2518
2518
|
activatorEvent: me,
|
|
2519
2519
|
collisions: Pe,
|
|
@@ -2524,9 +2524,9 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2524
2524
|
over: ye
|
|
2525
2525
|
};
|
|
2526
2526
|
jt(() => {
|
|
2527
|
-
de?.(
|
|
2527
|
+
de?.(xe), j({
|
|
2528
2528
|
type: "onDragMove",
|
|
2529
|
-
event:
|
|
2529
|
+
event: xe
|
|
2530
2530
|
});
|
|
2531
2531
|
});
|
|
2532
2532
|
},
|
|
@@ -2544,8 +2544,8 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2544
2544
|
if (!de || M.current == null || !ve || !ye)
|
|
2545
2545
|
return;
|
|
2546
2546
|
const {
|
|
2547
|
-
onDragOver:
|
|
2548
|
-
} = k.current, Ee = Pe.get(
|
|
2547
|
+
onDragOver: xe
|
|
2548
|
+
} = k.current, Ee = Pe.get(Fn), Ze = Ee && Ee.rect.current ? {
|
|
2549
2549
|
id: Ee.id,
|
|
2550
2550
|
rect: Ee.rect.current,
|
|
2551
2551
|
data: Ee.data,
|
|
@@ -2561,14 +2561,14 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2561
2561
|
over: Ze
|
|
2562
2562
|
};
|
|
2563
2563
|
jt(() => {
|
|
2564
|
-
|
|
2564
|
+
Vn(Ze), xe?.(ce), j({
|
|
2565
2565
|
type: "onDragOver",
|
|
2566
2566
|
event: ce
|
|
2567
2567
|
});
|
|
2568
2568
|
});
|
|
2569
2569
|
},
|
|
2570
2570
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2571
|
-
[
|
|
2571
|
+
[Fn]
|
|
2572
2572
|
), Me(() => {
|
|
2573
2573
|
ue.current = {
|
|
2574
2574
|
activatorEvent: _,
|
|
@@ -2592,7 +2592,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2592
2592
|
...ne,
|
|
2593
2593
|
delta: V,
|
|
2594
2594
|
draggingRect: Je,
|
|
2595
|
-
pointerCoordinates:
|
|
2595
|
+
pointerCoordinates: Pn,
|
|
2596
2596
|
scrollableAncestors: Ne,
|
|
2597
2597
|
scrollableAncestorRects: Dt
|
|
2598
2598
|
});
|
|
@@ -2614,9 +2614,9 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2614
2614
|
measuringConfiguration: C,
|
|
2615
2615
|
measuringScheduled: Z,
|
|
2616
2616
|
windowRect: nn
|
|
2617
|
-
}), [U, Q, z, _, st, ge, Ae, A, P, L, ze, Y, Ne, Dt, C, Z, nn]),
|
|
2617
|
+
}), [U, Q, z, _, st, ge, Ae, A, P, L, ze, Y, Ne, Dt, C, Z, nn]), yo = G(() => ({
|
|
2618
2618
|
activatorEvent: _,
|
|
2619
|
-
activators:
|
|
2619
|
+
activators: Wn,
|
|
2620
2620
|
active: U,
|
|
2621
2621
|
activeNodeRect: z,
|
|
2622
2622
|
ariaDescribedById: {
|
|
@@ -2626,22 +2626,22 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2626
2626
|
draggableNodes: A,
|
|
2627
2627
|
over: ze,
|
|
2628
2628
|
measureDroppableContainers: Y
|
|
2629
|
-
}), [_,
|
|
2630
|
-
return oe.createElement(
|
|
2629
|
+
}), [_, Wn, U, z, y, N, A, ze, Y]);
|
|
2630
|
+
return oe.createElement(Ir.Provider, {
|
|
2631
2631
|
value: R
|
|
2632
2632
|
}, oe.createElement(Zt.Provider, {
|
|
2633
|
-
value:
|
|
2634
|
-
}, oe.createElement(Br.Provider, {
|
|
2635
|
-
value: bo
|
|
2633
|
+
value: yo
|
|
2636
2634
|
}, oe.createElement(Ur.Provider, {
|
|
2637
|
-
value:
|
|
2635
|
+
value: bo
|
|
2636
|
+
}, oe.createElement(Gr.Provider, {
|
|
2637
|
+
value: mo
|
|
2638
2638
|
}, u)), oe.createElement(Xs, {
|
|
2639
2639
|
disabled: a?.restoreFocus === !1
|
|
2640
2640
|
})), oe.createElement(Go, {
|
|
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,7 +2650,7 @@ const Gr = /* @__PURE__ */ So(function(t) {
|
|
|
2650
2650
|
enabled: me
|
|
2651
2651
|
};
|
|
2652
2652
|
}
|
|
2653
|
-
}), Zs = /* @__PURE__ */ tt(null),
|
|
2653
|
+
}), Zs = /* @__PURE__ */ tt(null), ar = "button", Qs = "Draggable";
|
|
2654
2654
|
function ei(e) {
|
|
2655
2655
|
let {
|
|
2656
2656
|
id: t,
|
|
@@ -2667,10 +2667,10 @@ function ei(e) {
|
|
|
2667
2667
|
draggableNodes: d,
|
|
2668
2668
|
over: m
|
|
2669
2669
|
} = We(Zt), {
|
|
2670
|
-
role: h =
|
|
2670
|
+
role: h = ar,
|
|
2671
2671
|
roleDescription: v = "draggable",
|
|
2672
2672
|
tabIndex: g = 0
|
|
2673
|
-
} = o ?? {},
|
|
2673
|
+
} = o ?? {}, b = l?.id === t, y = We(b ? Gr : Zs), [j, R] = Yt(), [$, T] = Yt(), E = zs(c, t), I = vt(n);
|
|
2674
2674
|
Me(
|
|
2675
2675
|
() => (d.set(t, {
|
|
2676
2676
|
id: t,
|
|
@@ -2689,16 +2689,16 @@ function ei(e) {
|
|
|
2689
2689
|
role: h,
|
|
2690
2690
|
tabIndex: g,
|
|
2691
2691
|
"aria-disabled": r,
|
|
2692
|
-
"aria-pressed":
|
|
2692
|
+
"aria-pressed": b && h === ar ? !0 : void 0,
|
|
2693
2693
|
"aria-roledescription": v,
|
|
2694
2694
|
"aria-describedby": f.draggable
|
|
2695
|
-
}), [r, h, g,
|
|
2695
|
+
}), [r, h, g, b, v, f.draggable]);
|
|
2696
2696
|
return {
|
|
2697
2697
|
active: l,
|
|
2698
2698
|
activatorEvent: a,
|
|
2699
2699
|
activeNodeRect: u,
|
|
2700
2700
|
attributes: A,
|
|
2701
|
-
isDragging:
|
|
2701
|
+
isDragging: b,
|
|
2702
2702
|
listeners: r ? void 0 : E,
|
|
2703
2703
|
node: j,
|
|
2704
2704
|
over: m,
|
|
@@ -2708,7 +2708,7 @@ function ei(e) {
|
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
2710
|
function ti() {
|
|
2711
|
-
return We(
|
|
2711
|
+
return We(Ur);
|
|
2712
2712
|
}
|
|
2713
2713
|
const ni = "Droppable", ri = {
|
|
2714
2714
|
timeout: 25
|
|
@@ -2730,7 +2730,7 @@ function oi(e) {
|
|
|
2730
2730
|
}), d = X(!1), m = X(null), h = X(null), {
|
|
2731
2731
|
disabled: v,
|
|
2732
2732
|
updateMeasurementsFor: g,
|
|
2733
|
-
timeout:
|
|
2733
|
+
timeout: b
|
|
2734
2734
|
} = {
|
|
2735
2735
|
...ri,
|
|
2736
2736
|
...o
|
|
@@ -2742,10 +2742,10 @@ function oi(e) {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
h.current != null && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
2744
2744
|
u(Array.isArray(y.current) ? y.current : [y.current]), h.current = null;
|
|
2745
|
-
},
|
|
2745
|
+
}, b);
|
|
2746
2746
|
},
|
|
2747
2747
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2748
|
-
[
|
|
2748
|
+
[b]
|
|
2749
2749
|
), R = Jt({
|
|
2750
2750
|
callback: j,
|
|
2751
2751
|
disabled: v || !c
|
|
@@ -2859,7 +2859,7 @@ function li(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
|
}
|
|
2862
|
-
const
|
|
2862
|
+
const qr = (e) => {
|
|
2863
2863
|
let {
|
|
2864
2864
|
rects: t,
|
|
2865
2865
|
activeIndex: n,
|
|
@@ -2915,26 +2915,26 @@ function di(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
|
|
2918
|
+
const Kr = "Sortable", Jr = /* @__PURE__ */ oe.createContext({
|
|
2919
2919
|
activeIndex: -1,
|
|
2920
|
-
containerId:
|
|
2920
|
+
containerId: Kr,
|
|
2921
2921
|
disableTransforms: !1,
|
|
2922
2922
|
items: [],
|
|
2923
2923
|
overIndex: -1,
|
|
2924
2924
|
useDragOverlay: !1,
|
|
2925
2925
|
sortedRects: [],
|
|
2926
|
-
strategy:
|
|
2926
|
+
strategy: qr,
|
|
2927
2927
|
disabled: {
|
|
2928
2928
|
draggable: !1,
|
|
2929
2929
|
droppable: !1
|
|
2930
2930
|
}
|
|
2931
2931
|
});
|
|
2932
|
-
function
|
|
2932
|
+
function Zr(e) {
|
|
2933
2933
|
let {
|
|
2934
2934
|
children: t,
|
|
2935
2935
|
id: n,
|
|
2936
2936
|
items: r,
|
|
2937
|
-
strategy: o =
|
|
2937
|
+
strategy: o = qr,
|
|
2938
2938
|
disabled: s = !1
|
|
2939
2939
|
} = e;
|
|
2940
2940
|
const {
|
|
@@ -2943,7 +2943,7 @@ function Jr(e) {
|
|
|
2943
2943
|
droppableRects: l,
|
|
2944
2944
|
over: u,
|
|
2945
2945
|
measureDroppableContainers: f
|
|
2946
|
-
} = ti(), d = wt(
|
|
2946
|
+
} = ti(), 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, b = u ? h.indexOf(u.id) : -1, y = X(h), j = !ii(h, y.current), R = b !== -1 && g === -1 || j, $ = ai(s);
|
|
2947
2947
|
Me(() => {
|
|
2948
2948
|
j && v && f(h);
|
|
2949
2949
|
}, [j, h, v, f]), F(() => {
|
|
@@ -2956,15 +2956,15 @@ function Jr(e) {
|
|
|
2956
2956
|
disabled: $,
|
|
2957
2957
|
disableTransforms: R,
|
|
2958
2958
|
items: h,
|
|
2959
|
-
overIndex:
|
|
2959
|
+
overIndex: b,
|
|
2960
2960
|
useDragOverlay: m,
|
|
2961
2961
|
sortedRects: si(h, l),
|
|
2962
2962
|
strategy: o
|
|
2963
2963
|
}),
|
|
2964
2964
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2965
|
-
[g, d, $.draggable, $.droppable, R, h,
|
|
2965
|
+
[g, d, $.draggable, $.droppable, R, h, b, l, m, o]
|
|
2966
2966
|
);
|
|
2967
|
-
return oe.createElement(
|
|
2967
|
+
return oe.createElement(Jr.Provider, {
|
|
2968
2968
|
value: T
|
|
2969
2969
|
}, t);
|
|
2970
2970
|
}
|
|
@@ -2992,8 +2992,8 @@ const fi = (e) => {
|
|
|
2992
2992
|
}, gi = {
|
|
2993
2993
|
duration: 200,
|
|
2994
2994
|
easing: "ease"
|
|
2995
|
-
},
|
|
2996
|
-
property:
|
|
2995
|
+
}, Qr = "transform", pi = /* @__PURE__ */ et.Transition.toString({
|
|
2996
|
+
property: Qr,
|
|
2997
2997
|
duration: 0,
|
|
2998
2998
|
easing: "linear"
|
|
2999
2999
|
}), vi = {
|
|
@@ -3027,7 +3027,7 @@ function mi(e) {
|
|
|
3027
3027
|
s && c(null);
|
|
3028
3028
|
}, [s]), s;
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function eo(e) {
|
|
3031
3031
|
let {
|
|
3032
3032
|
animateLayoutChanges: t = hi,
|
|
3033
3033
|
attributes: n,
|
|
@@ -3046,10 +3046,10 @@ function Qr(e) {
|
|
|
3046
3046
|
disabled: h,
|
|
3047
3047
|
disableTransforms: v,
|
|
3048
3048
|
sortedRects: g,
|
|
3049
|
-
overIndex:
|
|
3049
|
+
overIndex: b,
|
|
3050
3050
|
useDragOverlay: y,
|
|
3051
3051
|
strategy: j
|
|
3052
|
-
} = We(
|
|
3052
|
+
} = We(Jr), R = xi(r, h), $ = f.indexOf(c), T = G(() => ({
|
|
3053
3053
|
sortable: {
|
|
3054
3054
|
containerId: d,
|
|
3055
3055
|
index: $,
|
|
@@ -3088,17 +3088,17 @@ function Qr(e) {
|
|
|
3088
3088
|
...n
|
|
3089
3089
|
},
|
|
3090
3090
|
disabled: R.draggable
|
|
3091
|
-
}), p = Ao(P, D), C = !!S, L = C && !v && Et(m) && Et(
|
|
3091
|
+
}), p = Ao(P, D), C = !!S, L = C && !v && Et(m) && Et(b), Y = !y && _, Z = Y && L ? N : null, H = L ? Z ?? (a ?? j)({
|
|
3092
3092
|
rects: g,
|
|
3093
3093
|
activeNodeRect: U,
|
|
3094
3094
|
activeIndex: m,
|
|
3095
|
-
overIndex:
|
|
3095
|
+
overIndex: b,
|
|
3096
3096
|
index: $
|
|
3097
|
-
}) : null, ne = Et(m) && Et(
|
|
3097
|
+
}) : null, ne = Et(m) && Et(b) ? s({
|
|
3098
3098
|
id: c,
|
|
3099
3099
|
items: f,
|
|
3100
3100
|
activeIndex: m,
|
|
3101
|
-
overIndex:
|
|
3101
|
+
overIndex: b
|
|
3102
3102
|
}) : $, re = S?.id, z = X({
|
|
3103
3103
|
activeId: re,
|
|
3104
3104
|
items: f,
|
|
@@ -3150,7 +3150,7 @@ function Qr(e) {
|
|
|
3150
3150
|
isDragging: _,
|
|
3151
3151
|
listeners: w,
|
|
3152
3152
|
node: A,
|
|
3153
|
-
overIndex:
|
|
3153
|
+
overIndex: b,
|
|
3154
3154
|
over: O,
|
|
3155
3155
|
setNodeRef: p,
|
|
3156
3156
|
setActivatorNodeRef: k,
|
|
@@ -3166,14 +3166,14 @@ function Qr(e) {
|
|
|
3166
3166
|
ge && z.current.newIndex === $
|
|
3167
3167
|
)
|
|
3168
3168
|
return pi;
|
|
3169
|
-
if (!(Y && !
|
|
3169
|
+
if (!(Y && !Tn(B) || !u) && (C || ue))
|
|
3170
3170
|
return et.Transition.toString({
|
|
3171
3171
|
...u,
|
|
3172
|
-
property:
|
|
3172
|
+
property: Qr
|
|
3173
3173
|
});
|
|
3174
3174
|
}
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3176
|
+
function xi(e, t) {
|
|
3177
3177
|
var n, r;
|
|
3178
3178
|
return typeof e == "boolean" ? {
|
|
3179
3179
|
draggable: e,
|
|
@@ -3185,27 +3185,27 @@ function bi(e, t) {
|
|
|
3185
3185
|
};
|
|
3186
3186
|
}
|
|
3187
3187
|
W.Down, W.Right, W.Up, W.Left;
|
|
3188
|
-
var Tt = { exports: {} },
|
|
3189
|
-
var
|
|
3190
|
-
function
|
|
3191
|
-
if (
|
|
3192
|
-
|
|
3188
|
+
var Tt = { exports: {} }, dn = {}, Mt = { exports: {} }, fn = {};
|
|
3189
|
+
var cr;
|
|
3190
|
+
function bi() {
|
|
3191
|
+
if (cr) return fn;
|
|
3192
|
+
cr = 1;
|
|
3193
3193
|
var e = oe;
|
|
3194
3194
|
function t(d, m) {
|
|
3195
3195
|
return d === m && (d !== 0 || 1 / d === 1 / m) || d !== d && m !== m;
|
|
3196
3196
|
}
|
|
3197
3197
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, c = e.useDebugValue;
|
|
3198
3198
|
function a(d, m) {
|
|
3199
|
-
var h = m(), v = r({ inst: { value: h, getSnapshot: m } }), g = v[0].inst,
|
|
3199
|
+
var h = m(), v = r({ inst: { value: h, getSnapshot: m } }), g = v[0].inst, b = v[1];
|
|
3200
3200
|
return s(
|
|
3201
3201
|
function() {
|
|
3202
|
-
g.value = h, g.getSnapshot = m, l(g) &&
|
|
3202
|
+
g.value = h, g.getSnapshot = m, l(g) && b({ inst: g });
|
|
3203
3203
|
},
|
|
3204
3204
|
[d, h, m]
|
|
3205
3205
|
), o(
|
|
3206
3206
|
function() {
|
|
3207
|
-
return l(g) &&
|
|
3208
|
-
l(g) &&
|
|
3207
|
+
return l(g) && b({ inst: g }), d(function() {
|
|
3208
|
+
l(g) && b({ inst: g });
|
|
3209
3209
|
});
|
|
3210
3210
|
},
|
|
3211
3211
|
[d]
|
|
@@ -3225,12 +3225,12 @@ function xi() {
|
|
|
3225
3225
|
return m();
|
|
3226
3226
|
}
|
|
3227
3227
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : a;
|
|
3228
|
-
return
|
|
3228
|
+
return fn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, fn;
|
|
3229
3229
|
}
|
|
3230
|
-
var
|
|
3231
|
-
var
|
|
3230
|
+
var hn = {};
|
|
3231
|
+
var lr;
|
|
3232
3232
|
function yi() {
|
|
3233
|
-
return
|
|
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
|
}
|
|
@@ -3240,15 +3240,15 @@ function yi() {
|
|
|
3240
3240
|
));
|
|
3241
3241
|
var g = v();
|
|
3242
3242
|
if (!d) {
|
|
3243
|
-
var
|
|
3244
|
-
s(g,
|
|
3243
|
+
var b = v();
|
|
3244
|
+
s(g, b) || (console.error(
|
|
3245
3245
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
3246
3246
|
), d = !0);
|
|
3247
3247
|
}
|
|
3248
|
-
|
|
3248
|
+
b = c({
|
|
3249
3249
|
inst: { value: g, getSnapshot: v }
|
|
3250
3250
|
});
|
|
3251
|
-
var y =
|
|
3251
|
+
var y = b[0].inst, j = b[1];
|
|
3252
3252
|
return l(
|
|
3253
3253
|
function() {
|
|
3254
3254
|
y.value = g, y.getSnapshot = v, n(y) && j({ inst: y });
|
|
@@ -3278,23 +3278,23 @@ function yi() {
|
|
|
3278
3278
|
}
|
|
3279
3279
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3280
3280
|
var o = oe, 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
|
-
|
|
3282
|
-
})()),
|
|
3283
|
-
}
|
|
3284
|
-
var lr;
|
|
3285
|
-
function eo() {
|
|
3286
|
-
return lr || (lr = 1, process.env.NODE_ENV === "production" ? Mt.exports = xi() : Mt.exports = yi()), Mt.exports;
|
|
3281
|
+
hn.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
|
+
})()), hn;
|
|
3287
3283
|
}
|
|
3288
3284
|
var ur;
|
|
3285
|
+
function to() {
|
|
3286
|
+
return ur || (ur = 1, process.env.NODE_ENV === "production" ? Mt.exports = bi() : Mt.exports = yi()), Mt.exports;
|
|
3287
|
+
}
|
|
3288
|
+
var dr;
|
|
3289
3289
|
function wi() {
|
|
3290
|
-
if (
|
|
3291
|
-
|
|
3292
|
-
var e = oe, t =
|
|
3290
|
+
if (dr) return dn;
|
|
3291
|
+
dr = 1;
|
|
3292
|
+
var e = oe, 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
|
}
|
|
3296
3296
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, c = e.useEffect, a = e.useMemo, l = e.useDebugValue;
|
|
3297
|
-
return
|
|
3297
|
+
return dn.useSyncExternalStoreWithSelector = function(u, f, d, m, h) {
|
|
3298
3298
|
var v = s(null);
|
|
3299
3299
|
if (v.current === null) {
|
|
3300
3300
|
var g = { hasValue: !1, value: null };
|
|
@@ -3327,25 +3327,25 @@ function wi() {
|
|
|
3327
3327
|
},
|
|
3328
3328
|
[f, d, m, h]
|
|
3329
3329
|
);
|
|
3330
|
-
var
|
|
3330
|
+
var b = o(u, v[0], v[1]);
|
|
3331
3331
|
return c(
|
|
3332
3332
|
function() {
|
|
3333
|
-
g.hasValue = !0, g.value =
|
|
3333
|
+
g.hasValue = !0, g.value = b;
|
|
3334
3334
|
},
|
|
3335
|
-
[
|
|
3336
|
-
), l(
|
|
3337
|
-
},
|
|
3335
|
+
[b]
|
|
3336
|
+
), l(b), b;
|
|
3337
|
+
}, dn;
|
|
3338
3338
|
}
|
|
3339
|
-
var
|
|
3340
|
-
var
|
|
3339
|
+
var gn = {};
|
|
3340
|
+
var fr;
|
|
3341
3341
|
function Si() {
|
|
3342
|
-
return
|
|
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 = oe, n =
|
|
3348
|
-
|
|
3347
|
+
var t = oe, 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
|
+
gn.useSyncExternalStoreWithSelector = function(u, f, d, m, h) {
|
|
3349
3349
|
var v = s(null);
|
|
3350
3350
|
if (v.current === null) {
|
|
3351
3351
|
var g = { hasValue: !1, value: null };
|
|
@@ -3379,27 +3379,27 @@ function Si() {
|
|
|
3379
3379
|
},
|
|
3380
3380
|
[f, d, m, h]
|
|
3381
3381
|
);
|
|
3382
|
-
var
|
|
3382
|
+
var b = o(u, v[0], v[1]);
|
|
3383
3383
|
return c(
|
|
3384
3384
|
function() {
|
|
3385
|
-
g.hasValue = !0, g.value =
|
|
3385
|
+
g.hasValue = !0, g.value = b;
|
|
3386
3386
|
},
|
|
3387
|
-
[
|
|
3388
|
-
), l(
|
|
3387
|
+
[b]
|
|
3388
|
+
), l(b), b;
|
|
3389
3389
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3390
|
-
})()),
|
|
3390
|
+
})()), gn;
|
|
3391
3391
|
}
|
|
3392
|
-
var
|
|
3392
|
+
var hr;
|
|
3393
3393
|
function Di() {
|
|
3394
|
-
return
|
|
3394
|
+
return hr || (hr = 1, process.env.NODE_ENV === "production" ? Tt.exports = wi() : Tt.exports = Si()), Tt.exports;
|
|
3395
3395
|
}
|
|
3396
3396
|
var Ci = Di();
|
|
3397
|
-
const
|
|
3397
|
+
const Cn = /* @__PURE__ */ new WeakMap(), ji = /* @__PURE__ */ new WeakMap(), Wt = {
|
|
3398
3398
|
current: []
|
|
3399
3399
|
};
|
|
3400
|
-
let
|
|
3401
|
-
const $t = /* @__PURE__ */ new Set(),
|
|
3402
|
-
function
|
|
3400
|
+
let pn = !1;
|
|
3401
|
+
const $t = /* @__PURE__ */ new Set(), gr = /* @__PURE__ */ new Map();
|
|
3402
|
+
function no(e) {
|
|
3403
3403
|
for (const t of e) {
|
|
3404
3404
|
if (Wt.current.includes(t))
|
|
3405
3405
|
continue;
|
|
@@ -3407,8 +3407,8 @@ function to(e) {
|
|
|
3407
3407
|
const n = ji.get(t);
|
|
3408
3408
|
if (n)
|
|
3409
3409
|
for (const r of n) {
|
|
3410
|
-
const o =
|
|
3411
|
-
o?.length &&
|
|
3410
|
+
const o = Cn.get(r);
|
|
3411
|
+
o?.length && no(o);
|
|
3412
3412
|
}
|
|
3413
3413
|
}
|
|
3414
3414
|
}
|
|
@@ -3429,34 +3429,34 @@ function Ei(e) {
|
|
|
3429
3429
|
n(t);
|
|
3430
3430
|
}
|
|
3431
3431
|
function _i(e) {
|
|
3432
|
-
if ($t.add(e), !
|
|
3432
|
+
if ($t.add(e), !pn)
|
|
3433
3433
|
try {
|
|
3434
|
-
for (
|
|
3434
|
+
for (pn = !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 =
|
|
3438
|
+
const r = gr.get(n) ?? n.prevState;
|
|
3439
3439
|
n.prevState = r, Ri(n);
|
|
3440
3440
|
}
|
|
3441
3441
|
for (const n of t) {
|
|
3442
|
-
const r =
|
|
3443
|
-
r && (Wt.current.push(n),
|
|
3442
|
+
const r = Cn.get(n);
|
|
3443
|
+
r && (Wt.current.push(n), no(r));
|
|
3444
3444
|
}
|
|
3445
3445
|
for (const n of t) {
|
|
3446
|
-
const r =
|
|
3446
|
+
const r = Cn.get(n);
|
|
3447
3447
|
if (r)
|
|
3448
3448
|
for (const o of r)
|
|
3449
3449
|
Ei(o);
|
|
3450
3450
|
}
|
|
3451
3451
|
}
|
|
3452
3452
|
} finally {
|
|
3453
|
-
|
|
3453
|
+
pn = !1, Wt.current = [], gr.clear();
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
3456
|
function Oi(e) {
|
|
3457
3457
|
return typeof e == "function";
|
|
3458
3458
|
}
|
|
3459
|
-
class
|
|
3459
|
+
class ro {
|
|
3460
3460
|
constructor(t, n) {
|
|
3461
3461
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (r) => {
|
|
3462
3462
|
var o, s;
|
|
@@ -3501,20 +3501,20 @@ function Ti(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
|
);
|
|
3516
3516
|
}
|
|
3517
|
-
const
|
|
3517
|
+
const be = new ro({
|
|
3518
3518
|
tableId: "",
|
|
3519
3519
|
sortColumn: null,
|
|
3520
3520
|
sortDirection: "asc",
|
|
@@ -3532,15 +3532,15 @@ const xe = new no({
|
|
|
3532
3532
|
function Mi(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
|
-
), { tableId: s } =
|
|
3536
|
-
localStorage.getItem(
|
|
3535
|
+
), { tableId: s } = be.state, c = JSON.parse(
|
|
3536
|
+
localStorage.getItem(oo(s)) || "[]"
|
|
3537
3537
|
), a = [
|
|
3538
3538
|
...c.map((f) => o.find((d) => d.id === f)).filter(Boolean),
|
|
3539
3539
|
...o.filter((f) => !c.includes(f.id))
|
|
3540
3540
|
], l = JSON.parse(
|
|
3541
|
-
localStorage.getItem(
|
|
3541
|
+
localStorage.getItem(so(s)) || "{}"
|
|
3542
3542
|
), u = a.reduce((f, d) => (f[d.id] = l[d.id] ?? !0, f), {});
|
|
3543
|
-
|
|
3543
|
+
be.setState((f) => ({
|
|
3544
3544
|
...f,
|
|
3545
3545
|
data: e,
|
|
3546
3546
|
columnOrder: a,
|
|
@@ -3554,7 +3554,7 @@ function Mi(e, t) {
|
|
|
3554
3554
|
}));
|
|
3555
3555
|
}
|
|
3556
3556
|
function $i(e) {
|
|
3557
|
-
|
|
3557
|
+
be.setState((t) => ({
|
|
3558
3558
|
...t,
|
|
3559
3559
|
tableId: e,
|
|
3560
3560
|
sortColumn: null,
|
|
@@ -3564,19 +3564,19 @@ function $i(e) {
|
|
|
3564
3564
|
}));
|
|
3565
3565
|
}
|
|
3566
3566
|
const Ii = (e) => {
|
|
3567
|
-
|
|
3567
|
+
be.setState((t) => ({
|
|
3568
3568
|
...t,
|
|
3569
3569
|
actionsConfig: e
|
|
3570
3570
|
}));
|
|
3571
|
-
},
|
|
3572
|
-
const { tableId: t } =
|
|
3573
|
-
localStorage.setItem(
|
|
3571
|
+
}, oo = (e) => `table_column_order_v1:${e}`, so = (e) => `table_column_visibility_v1:${e}`, Ai = (e) => {
|
|
3572
|
+
const { tableId: t } = be.state;
|
|
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
3578
|
function ki(e) {
|
|
3579
|
-
|
|
3579
|
+
be.setState((t) => t.sortColumn === e ? {
|
|
3580
3580
|
...t,
|
|
3581
3581
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
3582
3582
|
} : {
|
|
@@ -3586,12 +3586,12 @@ function ki(e) {
|
|
|
3586
3586
|
});
|
|
3587
3587
|
}
|
|
3588
3588
|
const Li = (e) => {
|
|
3589
|
-
|
|
3589
|
+
be.setState((t) => {
|
|
3590
3590
|
const n = {
|
|
3591
3591
|
...t.visibility,
|
|
3592
3592
|
[e]: !t.visibility[e]
|
|
3593
3593
|
};
|
|
3594
|
-
return t.tableId && localStorage.setItem(
|
|
3594
|
+
return t.tableId && localStorage.setItem(so(t.tableId), JSON.stringify(n)), {
|
|
3595
3595
|
...t,
|
|
3596
3596
|
visibility: n
|
|
3597
3597
|
};
|
|
@@ -3600,10 +3600,10 @@ const Li = (e) => {
|
|
|
3600
3600
|
const Ni = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), zi = (e) => e.replace(
|
|
3601
3601
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3602
3602
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
3603
|
-
),
|
|
3603
|
+
), vr = (e) => {
|
|
3604
3604
|
const t = zi(e);
|
|
3605
3605
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3606
|
-
},
|
|
3606
|
+
}, io = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Pi = (e) => {
|
|
3607
3607
|
for (const t in e)
|
|
3608
3608
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3609
3609
|
return !0;
|
|
@@ -3619,7 +3619,7 @@ var Yi = {
|
|
|
3619
3619
|
strokeLinecap: "round",
|
|
3620
3620
|
strokeLinejoin: "round"
|
|
3621
3621
|
};
|
|
3622
|
-
const Fi =
|
|
3622
|
+
const Fi = jn(
|
|
3623
3623
|
({
|
|
3624
3624
|
color: e = "currentColor",
|
|
3625
3625
|
size: t = 24,
|
|
@@ -3629,7 +3629,7 @@ const Fi = Cn(
|
|
|
3629
3629
|
children: s,
|
|
3630
3630
|
iconNode: c,
|
|
3631
3631
|
...a
|
|
3632
|
-
}, l) =>
|
|
3632
|
+
}, l) => xn(
|
|
3633
3633
|
"svg",
|
|
3634
3634
|
{
|
|
3635
3635
|
ref: l,
|
|
@@ -3638,30 +3638,30 @@ const Fi = Cn(
|
|
|
3638
3638
|
height: t,
|
|
3639
3639
|
stroke: e,
|
|
3640
3640
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3641
|
-
className:
|
|
3641
|
+
className: io("lucide", o),
|
|
3642
3642
|
...!s && !Pi(a) && { "aria-hidden": "true" },
|
|
3643
3643
|
...a
|
|
3644
3644
|
},
|
|
3645
3645
|
[
|
|
3646
|
-
...c.map(([u, f]) =>
|
|
3646
|
+
...c.map(([u, f]) => xn(u, f)),
|
|
3647
3647
|
...Array.isArray(s) ? s : [s]
|
|
3648
3648
|
]
|
|
3649
3649
|
)
|
|
3650
3650
|
);
|
|
3651
3651
|
const fe = (e, t) => {
|
|
3652
|
-
const n =
|
|
3653
|
-
({ className: r, ...o }, s) =>
|
|
3652
|
+
const n = jn(
|
|
3653
|
+
({ className: r, ...o }, s) => xn(Fi, {
|
|
3654
3654
|
ref: s,
|
|
3655
3655
|
iconNode: t,
|
|
3656
|
-
className:
|
|
3657
|
-
`lucide-${Ni(
|
|
3656
|
+
className: io(
|
|
3657
|
+
`lucide-${Ni(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
3666
|
const Vi = [
|
|
3667
3667
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
@@ -3685,7 +3685,7 @@ const Ki = [
|
|
|
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
|
-
],
|
|
3688
|
+
], mr = fe("calendar", Ki);
|
|
3689
3689
|
const Ji = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Zi = fe("chevron-left", Ji);
|
|
3690
3690
|
const Qi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ea = fe("chevron-right", Qi);
|
|
3691
3691
|
const ta = [
|
|
@@ -3724,7 +3724,7 @@ const la = [
|
|
|
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
|
-
],
|
|
3727
|
+
], ao = fe("grip-vertical", la);
|
|
3728
3728
|
const ua = [
|
|
3729
3729
|
[
|
|
3730
3730
|
"path",
|
|
@@ -3760,9 +3760,9 @@ const va = [
|
|
|
3760
3760
|
],
|
|
3761
3761
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3762
3762
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3763
|
-
],
|
|
3764
|
-
function
|
|
3765
|
-
return
|
|
3763
|
+
], co = fe("triangle-alert", va);
|
|
3764
|
+
function x(e) {
|
|
3765
|
+
return jn((t, n) => {
|
|
3766
3766
|
const { children: r, ...o } = t;
|
|
3767
3767
|
return (
|
|
3768
3768
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -3770,12 +3770,12 @@ function b(e) {
|
|
|
3770
3770
|
);
|
|
3771
3771
|
});
|
|
3772
3772
|
}
|
|
3773
|
-
const ma =
|
|
3773
|
+
const ma = x($e.Trigger), xa = x($e.Positioner), ba = x($e.Content), ya = x($e.Item), wa = x(Re.Label), Sa = x(Re.HiddenInput), Da = x(Re.Control);
|
|
3774
3774
|
function Ca({ visibility: e, onToggle: t }) {
|
|
3775
|
-
const { sortableColumns: n } = St(
|
|
3775
|
+
const { sortableColumns: n } = St(be);
|
|
3776
3776
|
return /* @__PURE__ */ i.jsxs($e.Root, { closeOnSelect: !1, children: [
|
|
3777
3777
|
/* @__PURE__ */ i.jsx(ma, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ i.jsx(na, { size: 18 }) }) }),
|
|
3778
|
-
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(
|
|
3778
|
+
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(xa, { children: /* @__PURE__ */ i.jsx(ba, { minW: "220px", children: n.map((r) => {
|
|
3779
3779
|
const o = !!e[r.id];
|
|
3780
3780
|
return /* @__PURE__ */ i.jsx(ya, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ i.jsxs(Re.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3781
3781
|
/* @__PURE__ */ i.jsx(Sa, {}),
|
|
@@ -3794,7 +3794,7 @@ function ja({
|
|
|
3794
3794
|
borderRightColor: s,
|
|
3795
3795
|
backgroundColor: c
|
|
3796
3796
|
}) {
|
|
3797
|
-
const { setNodeRef: a, attributes: l, listeners: u, transform: f, transition: d } =
|
|
3797
|
+
const { setNodeRef: a, attributes: l, listeners: u, transform: f, transition: d } = eo({ id: e });
|
|
3798
3798
|
return /* @__PURE__ */ i.jsx(
|
|
3799
3799
|
le.ColumnHeader,
|
|
3800
3800
|
{
|
|
@@ -3812,13 +3812,13 @@ function ja({
|
|
|
3812
3812
|
...l,
|
|
3813
3813
|
children: /* @__PURE__ */ i.jsxs(he, { justify: "space-between", children: [
|
|
3814
3814
|
t,
|
|
3815
|
-
/* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(
|
|
3815
|
+
/* @__PURE__ */ i.jsx("span", { ...u, children: /* @__PURE__ */ i.jsx(ao, { size: 12 }) })
|
|
3816
3816
|
] })
|
|
3817
3817
|
}
|
|
3818
3818
|
);
|
|
3819
3819
|
}
|
|
3820
3820
|
function Ra() {
|
|
3821
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = St(
|
|
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;
|
|
@@ -3868,7 +3868,7 @@ function Ra() {
|
|
|
3868
3868
|
)
|
|
3869
3869
|
] }) });
|
|
3870
3870
|
}
|
|
3871
|
-
const Ea = [10, 20, 50, 100], _a =
|
|
3871
|
+
const Ea = [10, 20, 50, 100], _a = x(te.Positioner), Oa = x(te.Content), Ta = x(te.Item), Ma = x(zt.PrevTrigger), $a = x(zt.NextTrigger), Ia = x(te.HiddenSelect), Aa = x(te.Control), ka = x(te.Trigger), La = x(te.ValueText), Na = x(te.IndicatorGroup), za = x(te.Indicator);
|
|
3872
3872
|
function Pa({
|
|
3873
3873
|
totalCount: e,
|
|
3874
3874
|
pageSize: t,
|
|
@@ -3878,7 +3878,7 @@ function Pa({
|
|
|
3878
3878
|
siblingCount: s = 2,
|
|
3879
3879
|
pageSizeOptions: c = Ea
|
|
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)
|
|
@@ -3917,7 +3917,7 @@ function Pa({
|
|
|
3917
3917
|
page: n,
|
|
3918
3918
|
siblingCount: s,
|
|
3919
3919
|
onPageChange: (l) => r && r(l.page),
|
|
3920
|
-
children: /* @__PURE__ */ i.jsxs(
|
|
3920
|
+
children: /* @__PURE__ */ i.jsxs(jo, { size: "sm", variant: "ghost", children: [
|
|
3921
3921
|
/* @__PURE__ */ i.jsx(Ma, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Previous page", children: /* @__PURE__ */ i.jsx(Zi, { size: 18 }) }) }),
|
|
3922
3922
|
/* @__PURE__ */ i.jsx(
|
|
3923
3923
|
zt.Items,
|
|
@@ -3939,14 +3939,14 @@ function Pa({
|
|
|
3939
3939
|
)
|
|
3940
3940
|
] }) });
|
|
3941
3941
|
}
|
|
3942
|
-
const Ya =
|
|
3942
|
+
const Ya = x($e.Item), Fa = x($e.Content), Va = x($e.Positioner), Ha = x($e.Trigger);
|
|
3943
3943
|
function Wa({
|
|
3944
3944
|
data: e = [],
|
|
3945
3945
|
actions: t = [],
|
|
3946
3946
|
actionConfig: n,
|
|
3947
3947
|
onRowSelect: r
|
|
3948
3948
|
}) {
|
|
3949
|
-
const { columnOrder: o, visibility: s } = St(
|
|
3949
|
+
const { columnOrder: o, visibility: s } = St(be);
|
|
3950
3950
|
return /* @__PURE__ */ i.jsx(le.Body, { children: e.map((c) => /* @__PURE__ */ i.jsxs(
|
|
3951
3951
|
le.Row,
|
|
3952
3952
|
{
|
|
@@ -3984,7 +3984,7 @@ function Ba({
|
|
|
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
3989
|
function ru({
|
|
3990
3990
|
tableId: e,
|
|
@@ -4003,7 +4003,7 @@ function ru({
|
|
|
4003
4003
|
totalCount: h = 0,
|
|
4004
4004
|
paginationMode: v = "client",
|
|
4005
4005
|
actionConfig: g,
|
|
4006
|
-
pageSizeOptions:
|
|
4006
|
+
pageSizeOptions: b,
|
|
4007
4007
|
onRowSelect: y
|
|
4008
4008
|
}) {
|
|
4009
4009
|
F(() => {
|
|
@@ -4013,7 +4013,7 @@ function ru({
|
|
|
4013
4013
|
}, [t, n]), F(() => {
|
|
4014
4014
|
g && Ii(g);
|
|
4015
4015
|
}, [g]);
|
|
4016
|
-
const { sortColumn: j, sortDirection: R, data: $, columnOrder: T } = St(
|
|
4016
|
+
const { sortColumn: j, sortDirection: R, data: $, columnOrder: T } = St(be), E = G(() => {
|
|
4017
4017
|
const S = [...$], B = Math.max(1, l || 1);
|
|
4018
4018
|
if (j && S.sort(
|
|
4019
4019
|
(U, M) => R === "asc" ? String(U[j]).localeCompare(String(M[j])) : String(M[j]).localeCompare(String(U[j]))
|
|
@@ -4032,8 +4032,8 @@ function ru({
|
|
|
4032
4032
|
const M = T.findIndex((_) => _.id === B.id), D = T.findIndex((_) => _.id === U.id), w = Qt(T, M, D);
|
|
4033
4033
|
Ai(w);
|
|
4034
4034
|
}, A = r && !s, V = s && !r, P = !r && !s && E.length === 0;
|
|
4035
|
-
return /* @__PURE__ */ i.jsx(
|
|
4036
|
-
|
|
4035
|
+
return /* @__PURE__ */ i.jsx(Xr, { collisionDetection: Ar, onDragEnd: I, children: /* @__PURE__ */ i.jsx(
|
|
4036
|
+
Zr,
|
|
4037
4037
|
{
|
|
4038
4038
|
items: T.map((S) => S.id),
|
|
4039
4039
|
strategy: ci,
|
|
@@ -4049,7 +4049,7 @@ function ru({
|
|
|
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: [
|
|
@@ -4085,14 +4085,14 @@ function ru({
|
|
|
4085
4085
|
onPageSizeChange: (S) => {
|
|
4086
4086
|
d?.(S), l > 1 && f?.(1);
|
|
4087
4087
|
},
|
|
4088
|
-
pageSizeOptions:
|
|
4088
|
+
pageSizeOptions: b
|
|
4089
4089
|
}
|
|
4090
4090
|
) })
|
|
4091
4091
|
] })
|
|
4092
4092
|
}
|
|
4093
4093
|
) });
|
|
4094
4094
|
}
|
|
4095
|
-
const Ua =
|
|
4095
|
+
const Ua = x(Re.Root), Ga = x(Re.HiddenInput), Xa = x(Re.Control), qa = x(Re.Label), Ka = ({
|
|
4096
4096
|
value: e,
|
|
4097
4097
|
onChange: t,
|
|
4098
4098
|
size: n = "sm",
|
|
@@ -4113,7 +4113,7 @@ const Ua = b(Re.Root), Ga = b(Re.HiddenInput), Xa = b(Re.Control), qa = b(Re.Lab
|
|
|
4113
4113
|
}
|
|
4114
4114
|
),
|
|
4115
4115
|
r && /* @__PURE__ */ i.jsx(qa, { children: r })
|
|
4116
|
-
] }), Ja =
|
|
4116
|
+
] }), Ja = x(Te.Root), Za = x(Te.Control), Qa = x(Te.Input), ec = x(Te.IndicatorGroup), tc = x(Te.ClearTrigger), nc = x(Te.Trigger), rc = x(Te.Positioner), oc = x(Te.Content);
|
|
4117
4117
|
function sc({
|
|
4118
4118
|
label: e,
|
|
4119
4119
|
size: t = "sm",
|
|
@@ -4131,7 +4131,7 @@ function sc({
|
|
|
4131
4131
|
helpText: h,
|
|
4132
4132
|
onInputChange: v,
|
|
4133
4133
|
onSelect: g,
|
|
4134
|
-
visible:
|
|
4134
|
+
visible: b = !0,
|
|
4135
4135
|
// 🔑 SLOT PROPS
|
|
4136
4136
|
rootProps: y,
|
|
4137
4137
|
inputProps: j,
|
|
@@ -4139,7 +4139,7 @@ function sc({
|
|
|
4139
4139
|
contentProps: $,
|
|
4140
4140
|
itemProps: T
|
|
4141
4141
|
}) {
|
|
4142
|
-
const [E, I] = J(""), { collection: A, set: V } =
|
|
4142
|
+
const [E, I] = J(""), { collection: A, set: V } = Eo({
|
|
4143
4143
|
initialItems: o,
|
|
4144
4144
|
itemToString: s,
|
|
4145
4145
|
itemToValue: c
|
|
@@ -4173,7 +4173,7 @@ function sc({
|
|
|
4173
4173
|
positioning: { sameWidth: !1, placement: "bottom-start" },
|
|
4174
4174
|
...y,
|
|
4175
4175
|
children: [
|
|
4176
|
-
|
|
4176
|
+
b && e && /* @__PURE__ */ i.jsx(q, { fontSize: "sm", children: e }),
|
|
4177
4177
|
/* @__PURE__ */ i.jsxs(Za, { ...R, children: [
|
|
4178
4178
|
/* @__PURE__ */ i.jsx(Qa, { placeholder: m ?? "Type to search", ...j }),
|
|
4179
4179
|
/* @__PURE__ */ i.jsxs(ec, { children: [
|
|
@@ -4183,8 +4183,8 @@ function sc({
|
|
|
4183
4183
|
] }),
|
|
4184
4184
|
/* @__PURE__ */ i.jsx(rc, { children: /* @__PURE__ */ i.jsxs(oc, { 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,12 +4195,12 @@ function sc({
|
|
|
4195
4195
|
}
|
|
4196
4196
|
);
|
|
4197
4197
|
}
|
|
4198
|
-
const se = " to ",
|
|
4198
|
+
const se = " to ", xr = 10, He = {
|
|
4199
4199
|
DAY_MAX: 31,
|
|
4200
4200
|
MONTH_MAX: 12,
|
|
4201
4201
|
YEAR_MIN: 1900,
|
|
4202
4202
|
YEAR_MAX: 2100
|
|
4203
|
-
},
|
|
4203
|
+
}, kn = () => {
|
|
4204
4204
|
const e = /* @__PURE__ */ new Date();
|
|
4205
4205
|
return {
|
|
4206
4206
|
year: e.getFullYear(),
|
|
@@ -4208,10 +4208,10 @@ const se = " to ", mr = 10, He = {
|
|
|
4208
4208
|
day: e.getDate()
|
|
4209
4209
|
};
|
|
4210
4210
|
}, br = () => {
|
|
4211
|
-
const { year: e, month: t, day: n } =
|
|
4211
|
+
const { year: e, month: t, day: n } = kn();
|
|
4212
4212
|
return `${String(n).padStart(2, "0")}-${String(t).padStart(2, "0")}-${e}`;
|
|
4213
4213
|
}, ic = () => {
|
|
4214
|
-
const { year: e, month: t, day: n } =
|
|
4214
|
+
const { year: e, month: t, day: n } = kn();
|
|
4215
4215
|
return `${e}-${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
|
|
4216
4216
|
}, ac = (e, t) => {
|
|
4217
4217
|
const n = e.length, r = parseInt(e);
|
|
@@ -4227,7 +4227,7 @@ const se = " to ", mr = 10, He = {
|
|
|
4227
4227
|
if (!e?.trim()) return null;
|
|
4228
4228
|
const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
|
|
4229
4229
|
if (n.length === 0) return null;
|
|
4230
|
-
const { year: r, month: o, day: s } =
|
|
4230
|
+
const { year: r, month: o, day: s } = kn();
|
|
4231
4231
|
let c, a, l;
|
|
4232
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 = ac(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) => {
|
|
@@ -4252,14 +4252,14 @@ const se = " 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
|
-
}, lc =
|
|
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), cc(n, e) || t;
|
|
4262
|
+
}, lc = x(Ut.Root), uc = x(Ut.Trigger), dc = x(Ut.Content), fc = x(Ut.Positioner);
|
|
4263
4263
|
function hc({
|
|
4264
4264
|
value: e,
|
|
4265
4265
|
onChange: t,
|
|
@@ -4275,13 +4275,13 @@ function hc({
|
|
|
4275
4275
|
const f = (v) => {
|
|
4276
4276
|
let g = v;
|
|
4277
4277
|
if (g.includes(se)) {
|
|
4278
|
-
const [
|
|
4279
|
-
g = `${ft(
|
|
4278
|
+
const [b, y = ""] = g.split(se);
|
|
4279
|
+
g = `${ft(b.trim())}${se}${ft(
|
|
4280
4280
|
y.trim()
|
|
4281
4281
|
)}`;
|
|
4282
4282
|
} else if (g.toLowerCase().includes(" to ")) {
|
|
4283
|
-
const [
|
|
4284
|
-
g = `${ft(
|
|
4283
|
+
const [b, y = ""] = g.split(/\s+to\s+/i);
|
|
4284
|
+
g = `${ft(b.trim())} to ${ft(y.trim())}`;
|
|
4285
4285
|
} else
|
|
4286
4286
|
g = ft(g);
|
|
4287
4287
|
c(g);
|
|
@@ -4292,15 +4292,15 @@ function hc({
|
|
|
4292
4292
|
return;
|
|
4293
4293
|
}
|
|
4294
4294
|
if (v.includes(se)) {
|
|
4295
|
-
const [g,
|
|
4295
|
+
const [g, b = ""] = v.split(se).map((R) => R.trim()), y = dt(g), j = b ? dt(b) : null;
|
|
4296
4296
|
if (y && j) {
|
|
4297
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
|
-
} else if (y && !
|
|
4301
|
+
} else if (y && !b)
|
|
4302
4302
|
c(`${De(y)}${se}`), t(void 0);
|
|
4303
|
-
else if (y &&
|
|
4303
|
+
else if (y && b) {
|
|
4304
4304
|
const R = ic(), [$, T] = R < y ? [R, y] : [y, R], E = `${De($)}${se}${De(
|
|
4305
4305
|
T
|
|
4306
4306
|
)}`;
|
|
@@ -4314,25 +4314,25 @@ function hc({
|
|
|
4314
4314
|
}, m = (v) => {
|
|
4315
4315
|
if (v.key !== "Enter") return;
|
|
4316
4316
|
v.preventDefault();
|
|
4317
|
-
const g = u.current?.selectionStart || 0,
|
|
4317
|
+
const g = u.current?.selectionStart || 0, b = s.indexOf(se);
|
|
4318
4318
|
if (!s.trim()) {
|
|
4319
4319
|
c(`${br()}${se}`);
|
|
4320
4320
|
return;
|
|
4321
4321
|
}
|
|
4322
|
-
if (
|
|
4322
|
+
if (b === -1) {
|
|
4323
4323
|
const j = dt(s.trim());
|
|
4324
4324
|
j && c(`${De(j)}${se}`);
|
|
4325
4325
|
return;
|
|
4326
4326
|
}
|
|
4327
|
-
if (g <=
|
|
4328
|
-
const j = s.substring(0,
|
|
4327
|
+
if (g <= b + se.length) {
|
|
4328
|
+
const j = s.substring(0, b).trim(), R = s.substring(b + se.length), $ = dt(j);
|
|
4329
4329
|
$ && c(`${De($)}${se}${R}`);
|
|
4330
4330
|
return;
|
|
4331
4331
|
}
|
|
4332
|
-
if (s.substring(
|
|
4332
|
+
if (s.substring(b + se.length).trim())
|
|
4333
4333
|
d(), u.current?.blur();
|
|
4334
4334
|
else {
|
|
4335
|
-
const j = s.substring(0,
|
|
4335
|
+
const j = s.substring(0, b + se.length) + br();
|
|
4336
4336
|
c(j), setTimeout(() => {
|
|
4337
4337
|
d(), u.current?.blur();
|
|
4338
4338
|
}, 0);
|
|
@@ -4340,7 +4340,7 @@ function hc({
|
|
|
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(Bn, { position: "revert", children: [
|
|
4344
4344
|
/* @__PURE__ */ i.jsxs(
|
|
4345
4345
|
lc,
|
|
4346
4346
|
{
|
|
@@ -4356,14 +4356,14 @@ function hc({
|
|
|
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
4362
|
/* @__PURE__ */ i.jsx(Ue, { children: /* @__PURE__ */ i.jsx(fc, { children: /* @__PURE__ */ i.jsxs(dc, { p: 4, children: [
|
|
4363
|
-
/* @__PURE__ */ i.jsx(
|
|
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: [
|
|
@@ -4384,9 +4384,9 @@ function hc({
|
|
|
4384
4384
|
/* @__PURE__ */ i.jsxs(Le, { align: "start", gap: 1, children: [
|
|
4385
4385
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4386
4386
|
/* @__PURE__ */ i.jsxs(he, { children: [
|
|
4387
|
-
/* @__PURE__ */ i.jsx(
|
|
4387
|
+
/* @__PURE__ */ i.jsx(Un, { children: "Ctrl" }),
|
|
4388
4388
|
/* @__PURE__ */ i.jsx(q, { children: "+" }),
|
|
4389
|
-
/* @__PURE__ */ i.jsx(
|
|
4389
|
+
/* @__PURE__ */ i.jsx(Un, { children: "D" })
|
|
4390
4390
|
] })
|
|
4391
4391
|
] })
|
|
4392
4392
|
] })
|
|
@@ -4395,7 +4395,7 @@ function hc({
|
|
|
4395
4395
|
}
|
|
4396
4396
|
),
|
|
4397
4397
|
/* @__PURE__ */ i.jsx(
|
|
4398
|
-
|
|
4398
|
+
Rn,
|
|
4399
4399
|
{
|
|
4400
4400
|
ref: u,
|
|
4401
4401
|
placeholder: "15-06-2025 to 20-06-2025",
|
|
@@ -4409,7 +4409,7 @@ function hc({
|
|
|
4409
4409
|
w: "100%"
|
|
4410
4410
|
}
|
|
4411
4411
|
),
|
|
4412
|
-
s && /* @__PURE__ */ i.jsx(
|
|
4412
|
+
s && /* @__PURE__ */ i.jsx(Bn, { children: /* @__PURE__ */ i.jsx(
|
|
4413
4413
|
Oe,
|
|
4414
4414
|
{
|
|
4415
4415
|
size: "sm",
|
|
@@ -4421,7 +4421,7 @@ function hc({
|
|
|
4421
4421
|
) })
|
|
4422
4422
|
] }) }) });
|
|
4423
4423
|
}
|
|
4424
|
-
const gc =
|
|
4424
|
+
const gc = x(Ge.Root), pc = x(Ge.Label), vc = x(Ge.HelperText), mc = x(Ge.ErrorText), yr = ({
|
|
4425
4425
|
icon: e,
|
|
4426
4426
|
value: t,
|
|
4427
4427
|
onChange: n,
|
|
@@ -4437,8 +4437,8 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4437
4437
|
visible: m
|
|
4438
4438
|
}) => /* @__PURE__ */ i.jsxs(gc, { width: c, children: [
|
|
4439
4439
|
m && /* @__PURE__ */ i.jsx(pc, { children: a }),
|
|
4440
|
-
/* @__PURE__ */ i.jsx(
|
|
4441
|
-
|
|
4440
|
+
/* @__PURE__ */ i.jsx(Tr, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4441
|
+
Rn,
|
|
4442
4442
|
{
|
|
4443
4443
|
value: t,
|
|
4444
4444
|
onChange: (h) => n?.(h.target.value),
|
|
@@ -4451,7 +4451,7 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4451
4451
|
) }),
|
|
4452
4452
|
d && /* @__PURE__ */ i.jsx(mc, { fontSize: "xs", children: d }),
|
|
4453
4453
|
l && /* @__PURE__ */ i.jsx(vc, { fontSize: "xs", children: l })
|
|
4454
|
-
] }),
|
|
4454
|
+
] }), xc = x(Ge.Root), bc = x(Ge.HelperText), yc = x(Ge.ErrorText), wc = x(te.Root), Sc = x(te.Label), Dc = x(te.Control), Cc = x(te.Trigger), jc = x(te.ValueText), Rc = x(te.IndicatorGroup), Ec = x(te.Indicator), _c = x(te.Content), Oc = x(te.Item), Tc = x(te.ItemIndicator), Mc = x(te.HiddenSelect), $c = x(te.Positioner), Ic = ({
|
|
4455
4455
|
options: e = [],
|
|
4456
4456
|
label: t,
|
|
4457
4457
|
value: n,
|
|
@@ -4466,10 +4466,10 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = 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(xc, { disabled: u, required: f, children: [
|
|
4473
4473
|
/* @__PURE__ */ i.jsxs(
|
|
4474
4474
|
wc,
|
|
4475
4475
|
{
|
|
@@ -4493,17 +4493,17 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4493
4493
|
]
|
|
4494
4494
|
}
|
|
4495
4495
|
),
|
|
4496
|
-
l && /* @__PURE__ */ i.jsx(
|
|
4496
|
+
l && /* @__PURE__ */ i.jsx(bc, { children: l }),
|
|
4497
4497
|
d && /* @__PURE__ */ i.jsx(yc, { children: d })
|
|
4498
4498
|
] });
|
|
4499
|
-
},
|
|
4499
|
+
}, lo = (e = "default") => `FILTER_PRESETS_${e}`, Ac = (e) => {
|
|
4500
4500
|
if (!e) return [];
|
|
4501
4501
|
try {
|
|
4502
4502
|
return JSON.parse(e);
|
|
4503
4503
|
} catch {
|
|
4504
4504
|
return [];
|
|
4505
4505
|
}
|
|
4506
|
-
}, kc = (e) => typeof window > "u" ? [] : Ac(localStorage.getItem(
|
|
4506
|
+
}, kc = (e) => typeof window > "u" ? [] : Ac(localStorage.getItem(lo(e))), Bt = new ro({}), en = (e) => {
|
|
4507
4507
|
const t = Bt.state;
|
|
4508
4508
|
if (e in t)
|
|
4509
4509
|
return t[e];
|
|
@@ -4512,24 +4512,24 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4512
4512
|
...r,
|
|
4513
4513
|
[e]: n
|
|
4514
4514
|
})), n;
|
|
4515
|
-
},
|
|
4515
|
+
}, Ln = (e, t) => {
|
|
4516
4516
|
Bt.setState((n) => ({
|
|
4517
4517
|
...n,
|
|
4518
4518
|
[e]: t
|
|
4519
|
-
})), typeof window < "u" && localStorage.setItem(
|
|
4519
|
+
})), typeof window < "u" && localStorage.setItem(lo(e), JSON.stringify(t));
|
|
4520
4520
|
}, Lc = (e, t) => {
|
|
4521
4521
|
const n = [t, ...en(e)];
|
|
4522
|
-
|
|
4522
|
+
Ln(e, n);
|
|
4523
4523
|
}, Nc = (e, t) => {
|
|
4524
4524
|
const n = en(e).filter((r) => r.id !== t);
|
|
4525
|
-
|
|
4525
|
+
Ln(e, n);
|
|
4526
4526
|
}, ou = (e, t, n) => {
|
|
4527
4527
|
const r = en(e).map(
|
|
4528
4528
|
(o) => o.id === t ? n(o) : o
|
|
4529
4529
|
);
|
|
4530
|
-
|
|
4531
|
-
}, zc =
|
|
4532
|
-
const { attributes: r, listeners: o, setNodeRef: s, transform: c, transition: a } =
|
|
4530
|
+
Ln(e, r);
|
|
4531
|
+
}, zc = x(Re.Root), Pc = x(Re.HiddenInput), Yc = x(Re.Control), Fc = x(xt.Root), Vc = x(xt.Track), Hc = x(xt.Range), Wc = x(xt.Thumbs), Bc = x(xt.Control), Uc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4532
|
+
const { attributes: r, listeners: o, setNodeRef: s, transform: c, transition: a } = eo({
|
|
4533
4533
|
id: e.id
|
|
4534
4534
|
}), l = {
|
|
4535
4535
|
transform: et.Transform.toString(c),
|
|
@@ -4549,7 +4549,7 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4549
4549
|
bg: "white",
|
|
4550
4550
|
children: [
|
|
4551
4551
|
/* @__PURE__ */ i.jsxs(he, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
|
|
4552
|
-
/* @__PURE__ */ i.jsx(
|
|
4552
|
+
/* @__PURE__ */ i.jsx(ao, { size: 16 }),
|
|
4553
4553
|
/* @__PURE__ */ i.jsx(q, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
|
|
4554
4554
|
] }),
|
|
4555
4555
|
/* @__PURE__ */ i.jsxs(he, { justify: "space-between", children: [
|
|
@@ -4587,13 +4587,13 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4587
4587
|
]
|
|
4588
4588
|
}
|
|
4589
4589
|
);
|
|
4590
|
-
}, Gc =
|
|
4590
|
+
}, Gc = x(Ie.Root), Xc = x(Ie.Trigger), qc = x(Ie.Backdrop), Kc = x(Ie.Positioner), Jc = x(Ie.Content), Zc = x(Ie.Header), Qc = x(Ie.Title), el = x(Ie.Body), tl = x(Ie.Footer), nl = x(Ie.CloseTrigger), rl = x(Gt.Root), ol = x(Gt.List), vn = x(Gt.Trigger), mn = x(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,7 +4603,7 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = 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
|
Ka,
|
|
@@ -4664,7 +4664,7 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4664
4664
|
const m = St(Bt)[s] ?? en(s), h = () => {
|
|
4665
4665
|
const v = prompt("Preset name?");
|
|
4666
4666
|
if (!v) return;
|
|
4667
|
-
const g = o.reduce((
|
|
4667
|
+
const g = o.reduce((b, y) => (b[y.id] = y.value, b), {});
|
|
4668
4668
|
Lc(s, {
|
|
4669
4669
|
id: crypto.randomUUID(),
|
|
4670
4670
|
name: v,
|
|
@@ -4683,20 +4683,20 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4683
4683
|
/* @__PURE__ */ i.jsx(Zc, { children: /* @__PURE__ */ i.jsx(Qc, { children: "Filters" }) }),
|
|
4684
4684
|
/* @__PURE__ */ i.jsx(el, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ i.jsxs(rl, { defaultValue: "view", children: [
|
|
4685
4685
|
/* @__PURE__ */ i.jsxs(ol, { mb: 4, children: [
|
|
4686
|
-
/* @__PURE__ */ i.jsxs(
|
|
4686
|
+
/* @__PURE__ */ i.jsxs(vn, { value: "view", children: [
|
|
4687
4687
|
/* @__PURE__ */ i.jsx(da, { size: 16 }),
|
|
4688
4688
|
"Edit"
|
|
4689
4689
|
] }),
|
|
4690
|
-
/* @__PURE__ */ i.jsxs(
|
|
4690
|
+
/* @__PURE__ */ i.jsxs(vn, { value: "settings", children: [
|
|
4691
4691
|
/* @__PURE__ */ i.jsx(pa, { size: 16 }),
|
|
4692
4692
|
"Settings"
|
|
4693
4693
|
] }),
|
|
4694
|
-
/* @__PURE__ */ i.jsxs(
|
|
4694
|
+
/* @__PURE__ */ i.jsxs(vn, { value: "presets", children: [
|
|
4695
4695
|
/* @__PURE__ */ i.jsx(qi, { size: 16 }),
|
|
4696
4696
|
"Presets"
|
|
4697
4697
|
] })
|
|
4698
4698
|
] }),
|
|
4699
|
-
/* @__PURE__ */ i.jsx(
|
|
4699
|
+
/* @__PURE__ */ i.jsx(mn, { value: "view", children: o.filter((v) => v.visible).map((v) => /* @__PURE__ */ i.jsx(
|
|
4700
4700
|
Le,
|
|
4701
4701
|
{
|
|
4702
4702
|
align: "stretch",
|
|
@@ -4707,22 +4707,22 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4707
4707
|
rounded: "md",
|
|
4708
4708
|
p: 3,
|
|
4709
4709
|
mb: 3,
|
|
4710
|
-
children:
|
|
4710
|
+
children: uo(v, u)
|
|
4711
4711
|
},
|
|
4712
4712
|
v.id
|
|
4713
4713
|
)) }),
|
|
4714
|
-
/* @__PURE__ */ i.jsx(
|
|
4715
|
-
|
|
4714
|
+
/* @__PURE__ */ i.jsx(mn, { value: "settings", children: /* @__PURE__ */ i.jsx(
|
|
4715
|
+
Xr,
|
|
4716
4716
|
{
|
|
4717
|
-
sensors: qo(Xo(
|
|
4718
|
-
collisionDetection:
|
|
4717
|
+
sensors: qo(Xo(An)),
|
|
4718
|
+
collisionDetection: Ar,
|
|
4719
4719
|
onDragEnd: ({ active: v, over: g }) => {
|
|
4720
4720
|
if (!g || v.id === g.id) return;
|
|
4721
|
-
const
|
|
4721
|
+
const b = o.findIndex((R) => R.id === v.id), y = o.findIndex((R) => R.id === g.id), j = Qt(o, b, y);
|
|
4722
4722
|
l?.(j);
|
|
4723
4723
|
},
|
|
4724
4724
|
children: /* @__PURE__ */ i.jsx(
|
|
4725
|
-
|
|
4725
|
+
Zr,
|
|
4726
4726
|
{
|
|
4727
4727
|
items: o.map((v) => v.id),
|
|
4728
4728
|
strategy: ui,
|
|
@@ -4739,7 +4739,7 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4739
4739
|
)
|
|
4740
4740
|
}
|
|
4741
4741
|
) }),
|
|
4742
|
-
/* @__PURE__ */ i.jsx(
|
|
4742
|
+
/* @__PURE__ */ i.jsx(mn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Le, { align: "stretch", mb: 3, children: [
|
|
4743
4743
|
m.length === 0 && /* @__PURE__ */ i.jsx(q, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4744
4744
|
m.map((v) => /* @__PURE__ */ i.jsxs(
|
|
4745
4745
|
he,
|
|
@@ -4761,9 +4761,9 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4761
4761
|
size: "xs",
|
|
4762
4762
|
variant: "ghost",
|
|
4763
4763
|
onClick: () => {
|
|
4764
|
-
const g = o.map((
|
|
4765
|
-
...
|
|
4766
|
-
value: v.values[
|
|
4764
|
+
const g = o.map((b) => ({
|
|
4765
|
+
...b,
|
|
4766
|
+
value: v.values[b.id] ?? b.value
|
|
4767
4767
|
}));
|
|
4768
4768
|
c?.(g, v.name);
|
|
4769
4769
|
},
|
|
@@ -4815,7 +4815,7 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4815
4815
|
flex: h.size ?? 1,
|
|
4816
4816
|
minW: `${(h.size ?? 1) * 100}px`,
|
|
4817
4817
|
alignItems: "center",
|
|
4818
|
-
children:
|
|
4818
|
+
children: uo(h)
|
|
4819
4819
|
},
|
|
4820
4820
|
h.id
|
|
4821
4821
|
)),
|
|
@@ -4879,7 +4879,7 @@ const gc = b(Ge.Root), pc = b(Ge.Label), vc = b(Ge.HelperText), mc = b(Ge.ErrorT
|
|
|
4879
4879
|
s
|
|
4880
4880
|
] })
|
|
4881
4881
|
}
|
|
4882
|
-
), il =
|
|
4882
|
+
), il = x(K.Root), al = x(K.Backdrop), cl = x(K.Positioner), ll = x(K.Content), ul = x(K.Header), dl = x(K.Body), fl = x(K.Footer), hl = x(K.Title), gl = x(K.CloseTrigger);
|
|
4883
4883
|
function lu({
|
|
4884
4884
|
open: e,
|
|
4885
4885
|
onClose: t,
|
|
@@ -4897,7 +4897,7 @@ function lu({
|
|
|
4897
4897
|
/* @__PURE__ */ i.jsx(cl, { children: /* @__PURE__ */ i.jsxs(ll, { maxW: "480px", children: [
|
|
4898
4898
|
/* @__PURE__ */ i.jsx(ul, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(hl, { children: r }) }),
|
|
4899
4899
|
/* @__PURE__ */ i.jsx(dl, { p: 6, children: /* @__PURE__ */ i.jsxs(Pt, { gap: 4, align: "center", textAlign: "center", children: [
|
|
4900
|
-
/* @__PURE__ */ i.jsx(Ce, { color: "orange.500", children: a ?? /* @__PURE__ */ i.jsx(
|
|
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(
|
|
@@ -4928,7 +4928,7 @@ function lu({
|
|
|
4928
4928
|
] }) })
|
|
4929
4929
|
] }) });
|
|
4930
4930
|
}
|
|
4931
|
-
const pl =
|
|
4931
|
+
const pl = x(K.Root), vl = x(K.Backdrop), ml = x(K.Positioner), xl = x(K.Content), bl = x(K.Header), yl = x(K.Body), wl = x(K.Footer), Sl = x(K.Title), Dl = x(K.CloseTrigger);
|
|
4932
4932
|
function uu({
|
|
4933
4933
|
open: e,
|
|
4934
4934
|
onClose: t,
|
|
@@ -4950,8 +4950,8 @@ function uu({
|
|
|
4950
4950
|
},
|
|
4951
4951
|
children: /* @__PURE__ */ i.jsxs(Ue, { children: [
|
|
4952
4952
|
/* @__PURE__ */ i.jsx(vl, {}),
|
|
4953
|
-
/* @__PURE__ */ i.jsx(ml, { children: /* @__PURE__ */ i.jsxs(
|
|
4954
|
-
/* @__PURE__ */ i.jsx(
|
|
4953
|
+
/* @__PURE__ */ i.jsx(ml, { children: /* @__PURE__ */ i.jsxs(xl, { maxW: "550px", children: [
|
|
4954
|
+
/* @__PURE__ */ i.jsx(bl, { borderBottom: "1px solid", borderColor: "#d3d3d3", children: /* @__PURE__ */ i.jsx(Sl, { color: "red.600", children: r }) }),
|
|
4955
4955
|
/* @__PURE__ */ i.jsx(
|
|
4956
4956
|
yl,
|
|
4957
4957
|
{
|
|
@@ -4961,7 +4961,7 @@ function uu({
|
|
|
4961
4961
|
},
|
|
4962
4962
|
children: /* @__PURE__ */ i.jsxs(Pt, { gap: 4, borderRadius: "md", p: 4, bg: "white", children: [
|
|
4963
4963
|
/* @__PURE__ */ i.jsx(Ce, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(Pt, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4964
|
-
/* @__PURE__ */ i.jsx(Ce, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(
|
|
4964
|
+
/* @__PURE__ */ i.jsx(Ce, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(co, { size: 20 }) }),
|
|
4965
4965
|
/* @__PURE__ */ i.jsxs(Ce, { children: [
|
|
4966
4966
|
/* @__PURE__ */ i.jsx(q, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
|
|
4967
4967
|
/* @__PURE__ */ i.jsxs(q, { fontSize: "sm", color: "red.600", children: [
|
|
@@ -4979,7 +4979,7 @@ function uu({
|
|
|
4979
4979
|
" to continue"
|
|
4980
4980
|
] }),
|
|
4981
4981
|
/* @__PURE__ */ i.jsx(
|
|
4982
|
-
|
|
4982
|
+
Rn,
|
|
4983
4983
|
{
|
|
4984
4984
|
placeholder: `Type ${s} here`,
|
|
4985
4985
|
value: l,
|
|
@@ -5032,7 +5032,7 @@ function uu({
|
|
|
5032
5032
|
}
|
|
5033
5033
|
);
|
|
5034
5034
|
}
|
|
5035
|
-
const Cl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), jl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), du = Be, Rl =
|
|
5035
|
+
const Cl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), jl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), du = Be, Rl = x(K.Root), El = x(K.Backdrop), _l = x(K.Positioner), Ol = x(K.Content), Tl = x(K.Header), Ml = x(K.Body), $l = x(K.Footer), Il = x(K.Title), Al = x(K.CloseTrigger);
|
|
5036
5036
|
function kl(e) {
|
|
5037
5037
|
let t = null, n = null;
|
|
5038
5038
|
return oe.Children.forEach(e, (r) => {
|
|
@@ -5042,12 +5042,42 @@ function kl(e) {
|
|
|
5042
5042
|
const fu = ({ open: e, onClose: t, title: n, children: r }) => {
|
|
5043
5043
|
const { body: o, actions: s } = kl(r);
|
|
5044
5044
|
return /* @__PURE__ */ i.jsx(Rl, { open: e, onOpenChange: (c) => !c.open && t(), children: /* @__PURE__ */ i.jsxs(Ue, { children: [
|
|
5045
|
-
/* @__PURE__ */ i.jsx(El, {}),
|
|
5046
|
-
/* @__PURE__ */ i.jsx(_l, { children: /* @__PURE__ */ i.jsxs(Ol, { children: [
|
|
5047
|
-
/* @__PURE__ */ i.jsx(
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5045
|
+
/* @__PURE__ */ i.jsx(El, { bg: "blackAlpha.400" }),
|
|
5046
|
+
/* @__PURE__ */ i.jsx(_l, { children: /* @__PURE__ */ i.jsxs(Ol, { w: "100%", maxW: "520px", borderRadius: "12px", overflow: "hidden", boxShadow: "lg", children: [
|
|
5047
|
+
/* @__PURE__ */ i.jsx(
|
|
5048
|
+
Tl,
|
|
5049
|
+
{
|
|
5050
|
+
px: "20px",
|
|
5051
|
+
py: "16px",
|
|
5052
|
+
bg: "white",
|
|
5053
|
+
borderBottom: "1px solid",
|
|
5054
|
+
borderColor: "gray.200",
|
|
5055
|
+
children: /* @__PURE__ */ i.jsxs(sn, { align: "center", justify: "space-between", children: [
|
|
5056
|
+
/* @__PURE__ */ i.jsx(Il, { fontSize: "16px", fontWeight: "600", children: n }),
|
|
5057
|
+
/* @__PURE__ */ i.jsx(Al, { asChild: !0, children: /* @__PURE__ */ i.jsx(Xt, { size: "sm" }) })
|
|
5058
|
+
] })
|
|
5059
|
+
}
|
|
5060
|
+
),
|
|
5061
|
+
o && /* @__PURE__ */ i.jsx(
|
|
5062
|
+
Ml,
|
|
5063
|
+
{
|
|
5064
|
+
px: "20px",
|
|
5065
|
+
py: "16px",
|
|
5066
|
+
bg: "#F8FAFC",
|
|
5067
|
+
children: /* @__PURE__ */ i.jsx(sn, { direction: "column", gap: "16px", children: o })
|
|
5068
|
+
}
|
|
5069
|
+
),
|
|
5070
|
+
s && /* @__PURE__ */ i.jsx(
|
|
5071
|
+
$l,
|
|
5072
|
+
{
|
|
5073
|
+
px: "20px",
|
|
5074
|
+
py: "16px",
|
|
5075
|
+
bg: "white",
|
|
5076
|
+
borderTop: "1px solid",
|
|
5077
|
+
borderColor: "gray.200",
|
|
5078
|
+
children: /* @__PURE__ */ i.jsx(sn, { ml: "auto", gap: "12px", children: s })
|
|
5079
|
+
}
|
|
5080
|
+
)
|
|
5051
5081
|
] }) })
|
|
5052
5082
|
] }) });
|
|
5053
5083
|
};
|
|
@@ -5085,13 +5115,13 @@ function hu({
|
|
|
5085
5115
|
}
|
|
5086
5116
|
);
|
|
5087
5117
|
}
|
|
5088
|
-
var At = { exports: {} }, Ll = At.exports,
|
|
5118
|
+
var At = { exports: {} }, Ll = At.exports, wr;
|
|
5089
5119
|
function Nl() {
|
|
5090
|
-
return
|
|
5120
|
+
return wr || (wr = 1, (function(e, t) {
|
|
5091
5121
|
(function(n, r) {
|
|
5092
5122
|
e.exports = r();
|
|
5093
5123
|
})(Ll, (function() {
|
|
5094
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", c = "second", a = "minute", l = "hour", u = "day", f = "week", d = "month", m = "quarter", h = "year", v = "date", g = "Invalid Date",
|
|
5124
|
+
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", b = /^(\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
5125
|
var D = ["th", "st", "nd", "rd"], w = M % 100;
|
|
5096
5126
|
return "[" + M + (D[(w - 20) % 10] || D[w] || D[0]) + "]";
|
|
5097
5127
|
} }, R = function(M, D, w) {
|
|
@@ -5147,7 +5177,7 @@ function Nl() {
|
|
|
5147
5177
|
if (S.u(O)) return /* @__PURE__ */ new Date();
|
|
5148
5178
|
if (O instanceof Date) return new Date(O);
|
|
5149
5179
|
if (typeof O == "string" && !/Z$/i.test(O)) {
|
|
5150
|
-
var N = O.match(
|
|
5180
|
+
var N = O.match(b);
|
|
5151
5181
|
if (N) {
|
|
5152
5182
|
var p = N[2] - 1 || 0, C = (N[7] || "0").substring(0, 3);
|
|
5153
5183
|
return k ? new Date(Date.UTC(N[1], p, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, C)) : new Date(N[1], p, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, C);
|
|
@@ -5365,9 +5395,9 @@ function Nl() {
|
|
|
5365
5395
|
}
|
|
5366
5396
|
var zl = Nl();
|
|
5367
5397
|
const tn = /* @__PURE__ */ qt(zl);
|
|
5368
|
-
var kt = { exports: {} }, Pl = kt.exports,
|
|
5398
|
+
var kt = { exports: {} }, Pl = kt.exports, Sr;
|
|
5369
5399
|
function Yl() {
|
|
5370
|
-
return
|
|
5400
|
+
return Sr || (Sr = 1, (function(e, t) {
|
|
5371
5401
|
(function(n, r) {
|
|
5372
5402
|
e.exports = r();
|
|
5373
5403
|
})(Pl, (function() {
|
|
@@ -5378,19 +5408,19 @@ function Yl() {
|
|
|
5378
5408
|
return s.fromToBase(u, f, d, m);
|
|
5379
5409
|
}
|
|
5380
5410
|
o.en.relativeTime = c, s.fromToBase = function(u, f, d, m, h) {
|
|
5381
|
-
for (var v, g,
|
|
5411
|
+
for (var v, g, b, y = d.$locale().relativeTime || c, j = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = j.length, $ = 0; $ < R; $ += 1) {
|
|
5382
5412
|
var T = j[$];
|
|
5383
5413
|
T.d && (v = m ? o(u).diff(d, T.d, !0) : d.diff(u, T.d, !0));
|
|
5384
5414
|
var E = (n.rounding || Math.round)(Math.abs(v));
|
|
5385
|
-
if (
|
|
5415
|
+
if (b = v > 0, E <= T.r || !T.r) {
|
|
5386
5416
|
E <= 1 && $ > 0 && (T = j[$ - 1]);
|
|
5387
5417
|
var I = y[T.l];
|
|
5388
|
-
h && (E = h("" + E)), g = typeof I == "string" ? I.replace("%d", E) : I(E, f, T.l,
|
|
5418
|
+
h && (E = h("" + E)), g = typeof I == "string" ? I.replace("%d", E) : I(E, f, T.l, b);
|
|
5389
5419
|
break;
|
|
5390
5420
|
}
|
|
5391
5421
|
}
|
|
5392
5422
|
if (f) return g;
|
|
5393
|
-
var A =
|
|
5423
|
+
var A = b ? y.future : y.past;
|
|
5394
5424
|
return typeof A == "function" ? A(g) : A.replace("%s", g);
|
|
5395
5425
|
}, s.to = function(u, f) {
|
|
5396
5426
|
return a(u, f, this, !0);
|
|
@@ -5411,9 +5441,9 @@ function Yl() {
|
|
|
5411
5441
|
}
|
|
5412
5442
|
var Fl = Yl();
|
|
5413
5443
|
const Vl = /* @__PURE__ */ qt(Fl);
|
|
5414
|
-
var Lt = { exports: {} }, Hl = Lt.exports,
|
|
5444
|
+
var Lt = { exports: {} }, Hl = Lt.exports, Dr;
|
|
5415
5445
|
function Wl() {
|
|
5416
|
-
return
|
|
5446
|
+
return Dr || (Dr = 1, (function(e, t) {
|
|
5417
5447
|
(function(n, r) {
|
|
5418
5448
|
e.exports = r();
|
|
5419
5449
|
})(Hl, (function() {
|
|
@@ -5424,8 +5454,8 @@ function Wl() {
|
|
|
5424
5454
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5425
5455
|
var u = this.$locale().formats, f = (function(d, m) {
|
|
5426
5456
|
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(h, v, g) {
|
|
5427
|
-
var
|
|
5428
|
-
return v || m[g] || n[g] || m[
|
|
5457
|
+
var b = g && g.toUpperCase();
|
|
5458
|
+
return v || m[g] || n[g] || m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(y, j, R) {
|
|
5429
5459
|
return j || R.slice(1);
|
|
5430
5460
|
}));
|
|
5431
5461
|
}));
|
|
@@ -5438,9 +5468,9 @@ function Wl() {
|
|
|
5438
5468
|
}
|
|
5439
5469
|
var Bl = Wl();
|
|
5440
5470
|
const Ul = /* @__PURE__ */ qt(Bl);
|
|
5441
|
-
var Nt = { exports: {} }, Gl = Nt.exports,
|
|
5471
|
+
var Nt = { exports: {} }, Gl = Nt.exports, Cr;
|
|
5442
5472
|
function Xl() {
|
|
5443
|
-
return
|
|
5473
|
+
return Cr || (Cr = 1, (function(e, t) {
|
|
5444
5474
|
(function(n, r) {
|
|
5445
5475
|
e.exports = r();
|
|
5446
5476
|
})(Gl, (function() {
|
|
@@ -5501,7 +5531,7 @@ const Jl = {
|
|
|
5501
5531
|
short: "DD/MM/YY",
|
|
5502
5532
|
relative: ""
|
|
5503
5533
|
};
|
|
5504
|
-
function
|
|
5534
|
+
function jr({
|
|
5505
5535
|
value: e,
|
|
5506
5536
|
variant: t = "dateTime",
|
|
5507
5537
|
format: n,
|
|
@@ -5526,12 +5556,12 @@ function gu({
|
|
|
5526
5556
|
timeFontWeight: d = "400"
|
|
5527
5557
|
}) {
|
|
5528
5558
|
return /* @__PURE__ */ i.jsxs(Pt, { gap: 0.5, align: s, children: [
|
|
5529
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children:
|
|
5559
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children: jr({
|
|
5530
5560
|
value: e,
|
|
5531
5561
|
variant: t,
|
|
5532
5562
|
format: r
|
|
5533
5563
|
}) }),
|
|
5534
|
-
/* @__PURE__ */ i.jsx(q, { fontSize: f, fontWeight: d, color: u, children:
|
|
5564
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: f, fontWeight: d, color: u, children: jr({
|
|
5535
5565
|
value: e,
|
|
5536
5566
|
variant: n,
|
|
5537
5567
|
format: o
|
|
@@ -5562,7 +5592,7 @@ class Zl {
|
|
|
5562
5592
|
this.state.clear();
|
|
5563
5593
|
}
|
|
5564
5594
|
}
|
|
5565
|
-
class
|
|
5595
|
+
class Rr {
|
|
5566
5596
|
constructor(t) {
|
|
5567
5597
|
this.baseUrl = t;
|
|
5568
5598
|
}
|
|
@@ -5571,7 +5601,7 @@ class jr {
|
|
|
5571
5601
|
return n.set("keys", t.join(",")), (await (await fetch(`${this.baseUrl}/options?${n}`)).json()).data;
|
|
5572
5602
|
}
|
|
5573
5603
|
}
|
|
5574
|
-
class
|
|
5604
|
+
class Er {
|
|
5575
5605
|
constructor(t) {
|
|
5576
5606
|
this.api = t;
|
|
5577
5607
|
}
|
|
@@ -5613,9 +5643,9 @@ class Rr {
|
|
|
5613
5643
|
n.forEach((o) => this.inflight.set(o, r)), await r;
|
|
5614
5644
|
}
|
|
5615
5645
|
}
|
|
5616
|
-
const
|
|
5617
|
-
function
|
|
5618
|
-
const e = We(
|
|
5646
|
+
const fo = tt(null);
|
|
5647
|
+
function ho() {
|
|
5648
|
+
const e = We(fo);
|
|
5619
5649
|
if (!e)
|
|
5620
5650
|
throw new Error("OptionsProvider is missing. Wrap your app with <OptionsProvider />");
|
|
5621
5651
|
return e;
|
|
@@ -5624,11 +5654,11 @@ function pu({
|
|
|
5624
5654
|
client: { apiUrl: e },
|
|
5625
5655
|
children: t
|
|
5626
5656
|
}) {
|
|
5627
|
-
const n = X(new
|
|
5628
|
-
return n.current || (n.current = new
|
|
5657
|
+
const n = X(new Er(new Rr(e)));
|
|
5658
|
+
return n.current || (n.current = new Er(new Rr(e))), /* @__PURE__ */ i.jsx(fo.Provider, { value: n.current, children: t });
|
|
5629
5659
|
}
|
|
5630
5660
|
function vu(e) {
|
|
5631
|
-
const t =
|
|
5661
|
+
const t = ho(), [n, r] = J(t.getRaw(e)?.value);
|
|
5632
5662
|
return F(() => {
|
|
5633
5663
|
let o = !0;
|
|
5634
5664
|
t.getKey(e).then((c) => {
|
|
@@ -5643,7 +5673,7 @@ function vu(e) {
|
|
|
5643
5673
|
}, [e, t]), n;
|
|
5644
5674
|
}
|
|
5645
5675
|
function mu(e) {
|
|
5646
|
-
const t =
|
|
5676
|
+
const t = ho(), [n, r] = J({});
|
|
5647
5677
|
return F(() => {
|
|
5648
5678
|
let o = !0;
|
|
5649
5679
|
t.getMultiKey(e).then((c) => {
|
|
@@ -5662,10 +5692,10 @@ function mu(e) {
|
|
|
5662
5692
|
};
|
|
5663
5693
|
}, [e.join("|"), t]), n;
|
|
5664
5694
|
}
|
|
5665
|
-
async function
|
|
5695
|
+
async function xu(e, t) {
|
|
5666
5696
|
return e.getKey(t);
|
|
5667
5697
|
}
|
|
5668
|
-
async function
|
|
5698
|
+
async function bu(e, t) {
|
|
5669
5699
|
await e.getMultiKey(t);
|
|
5670
5700
|
}
|
|
5671
5701
|
function yu(e = {}) {
|
|
@@ -5715,7 +5745,7 @@ function Ql(e, t = 300) {
|
|
|
5715
5745
|
export {
|
|
5716
5746
|
ru as DataTable,
|
|
5717
5747
|
su as Filters,
|
|
5718
|
-
|
|
5748
|
+
Rr as HttpOptionsApi,
|
|
5719
5749
|
cu as MDSButton,
|
|
5720
5750
|
Ka as MDSCheckbox,
|
|
5721
5751
|
sc as MDSCombobox,
|
|
@@ -5725,32 +5755,32 @@ export {
|
|
|
5725
5755
|
jl as MDSDialogActions,
|
|
5726
5756
|
Cl as MDSDialogBody,
|
|
5727
5757
|
fu as MDSDialogWrapper,
|
|
5728
|
-
|
|
5758
|
+
yr as MDSInput,
|
|
5729
5759
|
hu as MDSRefreshButton,
|
|
5730
5760
|
Ic as MDSSelectBox,
|
|
5731
|
-
|
|
5761
|
+
Er as OptionsClientImpl,
|
|
5732
5762
|
pu as OptionsProvider,
|
|
5733
5763
|
Zl as OptionsStore,
|
|
5734
5764
|
hu as RefreshButton,
|
|
5735
5765
|
gu as StackedDateTime,
|
|
5736
5766
|
Lc as addPreset,
|
|
5737
5767
|
Nc as deletePreset,
|
|
5738
|
-
|
|
5739
|
-
|
|
5768
|
+
jr as formatDateTime,
|
|
5769
|
+
xu as getOption,
|
|
5740
5770
|
en as getPresets,
|
|
5741
5771
|
au as loadOrder,
|
|
5742
|
-
|
|
5772
|
+
bu as prefetchOptions,
|
|
5743
5773
|
Bt as presetStore,
|
|
5744
5774
|
iu as saveOrder,
|
|
5745
|
-
|
|
5775
|
+
Ln as savePresets,
|
|
5746
5776
|
Ii as setActionsConfig,
|
|
5747
5777
|
Mi as setData,
|
|
5748
5778
|
$i as setTableId,
|
|
5749
|
-
|
|
5779
|
+
be as tableStore,
|
|
5750
5780
|
ou as updatePreset,
|
|
5751
5781
|
wu as useDebouncedSearch,
|
|
5752
5782
|
vu as useOption,
|
|
5753
5783
|
mu as useOptions,
|
|
5754
5784
|
yu as usePagination,
|
|
5755
|
-
|
|
5785
|
+
x as withChildren
|
|
5756
5786
|
};
|