@mdspl/mds-shared-ui 0.4.9 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.js +515 -505
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import re, { useLayoutEffect as go, useEffect as W, useRef as U, useMemo as B, useCallback as ue, useState as ie, createContext as vt, memo as po, useReducer as vo, useContext as He, forwardRef as Sn, createElement as gn } from "react";
|
|
2
|
-
import { Menu as Oe, Checkbox as Ce, IconButton as _e, Portal as Ze, Table as
|
|
2
|
+
import { Menu as Oe, Checkbox as Ce, IconButton as _e, Portal as Ze, Table as ee, HStack as he, Select as J, Pagination as Nt, createListCollection as Dr, Box as Ee, Text as q, ButtonGroup as mo, Skeleton as bo, Popover as Wt, InputGroup as Cr, InputElement as Vn, PopoverArrow as xo, VStack as ke, Kbd as Hn, Input as Dn, Field as We, Slider as mt, Drawer as Me, Tabs as Bt, Button as ht, CloseButton as jr, Dialog as Ae, Stack as pn } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as Ct, createPortal as yo } from "react-dom";
|
|
4
4
|
function Ut(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -14,8 +14,8 @@ function wo() {
|
|
|
14
14
|
var a = null;
|
|
15
15
|
if (i !== void 0 && (a = "" + i), o.key !== void 0 && (a = "" + o.key), "key" in o) {
|
|
16
16
|
i = {};
|
|
17
|
-
for (var
|
|
18
|
-
|
|
17
|
+
for (var l in o)
|
|
18
|
+
l !== "key" && (i[l] = o[l]);
|
|
19
19
|
} else i = o;
|
|
20
20
|
return o = i.ref, {
|
|
21
21
|
$$typeof: e,
|
|
@@ -119,7 +119,7 @@ function So() {
|
|
|
119
119
|
}
|
|
120
120
|
return h.key !== void 0;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function l(h, S) {
|
|
123
123
|
function L() {
|
|
124
124
|
w || (w = !0, console.error(
|
|
125
125
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
@@ -131,7 +131,7 @@ function So() {
|
|
|
131
131
|
configurable: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function c() {
|
|
135
135
|
var h = e(this.type);
|
|
136
136
|
return E[h] || (E[h] = !0, console.error(
|
|
137
137
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
@@ -147,7 +147,7 @@ function So() {
|
|
|
147
147
|
_owner: P
|
|
148
148
|
}, (V !== void 0 ? V : null) !== null ? Object.defineProperty(h, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
150
|
-
get:
|
|
150
|
+
get: c
|
|
151
151
|
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
152
152
|
configurable: !1,
|
|
153
153
|
enumerable: !1,
|
|
@@ -206,7 +206,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
206
206
|
for (var Z in S)
|
|
207
207
|
Z !== "key" && (L[Z] = S[Z]);
|
|
208
208
|
} else L = S;
|
|
209
|
-
return V &&
|
|
209
|
+
return V && l(
|
|
210
210
|
L,
|
|
211
211
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
212
212
|
), u(
|
|
@@ -273,23 +273,23 @@ function Co() {
|
|
|
273
273
|
return f === b && (f !== 0 || 1 / f === 1 / b) || f !== f && b !== b;
|
|
274
274
|
}
|
|
275
275
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, i = e.useLayoutEffect, a = e.useDebugValue;
|
|
276
|
-
function
|
|
276
|
+
function l(f, b) {
|
|
277
277
|
var g = b(), p = r({ inst: { value: g, getSnapshot: b } }), v = p[0].inst, m = p[1];
|
|
278
278
|
return i(
|
|
279
279
|
function() {
|
|
280
|
-
v.value = g, v.getSnapshot = b,
|
|
280
|
+
v.value = g, v.getSnapshot = b, c(v) && m({ inst: v });
|
|
281
281
|
},
|
|
282
282
|
[f, g, b]
|
|
283
283
|
), o(
|
|
284
284
|
function() {
|
|
285
|
-
return
|
|
286
|
-
|
|
285
|
+
return c(v) && m({ inst: v }), f(function() {
|
|
286
|
+
c(v) && m({ inst: v });
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
289
|
[f]
|
|
290
290
|
), a(g), g;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function c(f) {
|
|
293
293
|
var b = f.getSnapshot;
|
|
294
294
|
f = f.value;
|
|
295
295
|
try {
|
|
@@ -302,7 +302,7 @@ function Co() {
|
|
|
302
302
|
function u(f, b) {
|
|
303
303
|
return b();
|
|
304
304
|
}
|
|
305
|
-
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u :
|
|
305
|
+
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : l;
|
|
306
306
|
return rn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, rn;
|
|
307
307
|
}
|
|
308
308
|
var on = {};
|
|
@@ -327,12 +327,12 @@ function jo() {
|
|
|
327
327
|
inst: { value: v, getSnapshot: p }
|
|
328
328
|
});
|
|
329
329
|
var x = m[0].inst, _ = m[1];
|
|
330
|
-
return
|
|
330
|
+
return c(
|
|
331
331
|
function() {
|
|
332
332
|
x.value = v, x.getSnapshot = p, n(x) && _({ inst: x });
|
|
333
333
|
},
|
|
334
334
|
[g, v, p]
|
|
335
|
-
),
|
|
335
|
+
), l(
|
|
336
336
|
function() {
|
|
337
337
|
return n(x) && _({ inst: x }), g(function() {
|
|
338
338
|
n(x) && _({ inst: x });
|
|
@@ -355,7 +355,7 @@ function jo() {
|
|
|
355
355
|
return p();
|
|
356
356
|
}
|
|
357
357
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
358
|
-
var o = re, i = typeof Object.is == "function" ? Object.is : e, a = o.useState,
|
|
358
|
+
var o = re, i = typeof Object.is == "function" ? Object.is : e, a = o.useState, l = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, d = !1, f = !1, b = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
359
359
|
on.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
360
360
|
})()), on;
|
|
361
361
|
}
|
|
@@ -371,14 +371,14 @@ function Ro() {
|
|
|
371
371
|
function n(u, d) {
|
|
372
372
|
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
373
373
|
}
|
|
374
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, a = e.useEffect,
|
|
374
|
+
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, i = e.useRef, a = e.useEffect, l = e.useMemo, c = e.useDebugValue;
|
|
375
375
|
return nn.useSyncExternalStoreWithSelector = function(u, d, f, b, g) {
|
|
376
376
|
var p = i(null);
|
|
377
377
|
if (p.current === null) {
|
|
378
378
|
var v = { hasValue: !1, value: null };
|
|
379
379
|
p.current = v;
|
|
380
380
|
} else v = p.current;
|
|
381
|
-
p =
|
|
381
|
+
p = l(
|
|
382
382
|
function() {
|
|
383
383
|
function x(j) {
|
|
384
384
|
if (!_) {
|
|
@@ -411,7 +411,7 @@ function Ro() {
|
|
|
411
411
|
v.hasValue = !0, v.value = m;
|
|
412
412
|
},
|
|
413
413
|
[m]
|
|
414
|
-
),
|
|
414
|
+
), c(m), m;
|
|
415
415
|
}, nn;
|
|
416
416
|
}
|
|
417
417
|
var sn = {};
|
|
@@ -422,14 +422,14 @@ function Eo() {
|
|
|
422
422
|
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
423
423
|
}
|
|
424
424
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
425
|
-
var t = re, n = Rr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, a = t.useEffect,
|
|
425
|
+
var t = re, n = Rr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, a = t.useEffect, l = t.useMemo, c = t.useDebugValue;
|
|
426
426
|
sn.useSyncExternalStoreWithSelector = function(u, d, f, b, g) {
|
|
427
427
|
var p = i(null);
|
|
428
428
|
if (p.current === null) {
|
|
429
429
|
var v = { hasValue: !1, value: null };
|
|
430
430
|
p.current = v;
|
|
431
431
|
} else v = p.current;
|
|
432
|
-
p =
|
|
432
|
+
p = l(
|
|
433
433
|
function() {
|
|
434
434
|
function x(j) {
|
|
435
435
|
if (!_) {
|
|
@@ -463,7 +463,7 @@ function Eo() {
|
|
|
463
463
|
v.hasValue = !0, v.value = m;
|
|
464
464
|
},
|
|
465
465
|
[m]
|
|
466
|
-
),
|
|
466
|
+
), c(m), m;
|
|
467
467
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
468
468
|
})()), sn;
|
|
469
469
|
}
|
|
@@ -684,13 +684,13 @@ function mn(e) {
|
|
|
684
684
|
t.current = e;
|
|
685
685
|
}, [e]), t.current;
|
|
686
686
|
}
|
|
687
|
-
let
|
|
687
|
+
let ln = {};
|
|
688
688
|
function wt(e, t) {
|
|
689
689
|
return B(() => {
|
|
690
690
|
if (t)
|
|
691
691
|
return t;
|
|
692
|
-
const n =
|
|
693
|
-
return
|
|
692
|
+
const n = ln[e] == null ? 0 : ln[e] + 1;
|
|
693
|
+
return ln[e] = n, e + "-" + n;
|
|
694
694
|
}, [e, t]);
|
|
695
695
|
}
|
|
696
696
|
function Or(e) {
|
|
@@ -698,10 +698,10 @@ function Or(e) {
|
|
|
698
698
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
699
699
|
r[o - 1] = arguments[o];
|
|
700
700
|
return r.reduce((i, a) => {
|
|
701
|
-
const
|
|
702
|
-
for (const [
|
|
703
|
-
const d = i[
|
|
704
|
-
d != null && (i[
|
|
701
|
+
const l = Object.entries(a);
|
|
702
|
+
for (const [c, u] of l) {
|
|
703
|
+
const d = i[c];
|
|
704
|
+
d != null && (i[c] = d + e * u);
|
|
705
705
|
}
|
|
706
706
|
return i;
|
|
707
707
|
}, {
|
|
@@ -866,8 +866,8 @@ function Uo() {
|
|
|
866
866
|
event: i
|
|
867
867
|
} = r;
|
|
868
868
|
e.forEach((a) => {
|
|
869
|
-
var
|
|
870
|
-
return (
|
|
869
|
+
var l;
|
|
870
|
+
return (l = a[o]) == null ? void 0 : l.call(a, i);
|
|
871
871
|
});
|
|
872
872
|
}, [e]), t];
|
|
873
873
|
}
|
|
@@ -915,7 +915,7 @@ function qo(e) {
|
|
|
915
915
|
const {
|
|
916
916
|
announce: i,
|
|
917
917
|
announcement: a
|
|
918
|
-
} = Wo(),
|
|
918
|
+
} = Wo(), l = wt("DndLiveRegion"), [c, u] = ie(!1);
|
|
919
919
|
if (W(() => {
|
|
920
920
|
u(!0);
|
|
921
921
|
}, []), Bo(B(() => ({
|
|
@@ -967,13 +967,13 @@ function qo(e) {
|
|
|
967
967
|
over: g
|
|
968
968
|
}));
|
|
969
969
|
}
|
|
970
|
-
}), [i, t])), !
|
|
970
|
+
}), [i, t])), !c)
|
|
971
971
|
return null;
|
|
972
972
|
const d = re.createElement(re.Fragment, null, re.createElement(Vo, {
|
|
973
973
|
id: r,
|
|
974
974
|
value: o.draggable
|
|
975
975
|
}), re.createElement(Ho, {
|
|
976
|
-
id:
|
|
976
|
+
id: l,
|
|
977
977
|
announcement: a
|
|
978
978
|
}));
|
|
979
979
|
return n ? yo(d, n) : d;
|
|
@@ -1055,12 +1055,12 @@ const $r = (e) => {
|
|
|
1055
1055
|
const o = nr(t, t.left, t.top), i = [];
|
|
1056
1056
|
for (const a of r) {
|
|
1057
1057
|
const {
|
|
1058
|
-
id:
|
|
1059
|
-
} = a,
|
|
1060
|
-
if (
|
|
1061
|
-
const u = Zo(nr(
|
|
1058
|
+
id: l
|
|
1059
|
+
} = a, c = n.get(l);
|
|
1060
|
+
if (c) {
|
|
1061
|
+
const u = Zo(nr(c), o);
|
|
1062
1062
|
i.push({
|
|
1063
|
-
id:
|
|
1063
|
+
id: l,
|
|
1064
1064
|
data: {
|
|
1065
1065
|
droppableContainer: a,
|
|
1066
1066
|
value: u
|
|
@@ -1071,9 +1071,9 @@ const $r = (e) => {
|
|
|
1071
1071
|
return i.sort(Qo);
|
|
1072
1072
|
};
|
|
1073
1073
|
function ni(e, t) {
|
|
1074
|
-
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), a = o - r,
|
|
1074
|
+
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), i = Math.min(t.top + t.height, e.top + e.height), a = o - r, l = i - n;
|
|
1075
1075
|
if (r < o && n < i) {
|
|
1076
|
-
const
|
|
1076
|
+
const c = t.width * t.height, u = e.width * e.height, d = a * l, f = d / (c + u - d);
|
|
1077
1077
|
return Number(f.toFixed(4));
|
|
1078
1078
|
}
|
|
1079
1079
|
return 0;
|
|
@@ -1088,14 +1088,14 @@ const ri = (e) => {
|
|
|
1088
1088
|
for (const i of r) {
|
|
1089
1089
|
const {
|
|
1090
1090
|
id: a
|
|
1091
|
-
} = i,
|
|
1092
|
-
if (
|
|
1093
|
-
const
|
|
1094
|
-
|
|
1091
|
+
} = i, l = n.get(a);
|
|
1092
|
+
if (l) {
|
|
1093
|
+
const c = ni(l, t);
|
|
1094
|
+
c > 0 && o.push({
|
|
1095
1095
|
id: a,
|
|
1096
1096
|
data: {
|
|
1097
1097
|
droppableContainer: i,
|
|
1098
|
-
value:
|
|
1098
|
+
value: c
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
@@ -1119,12 +1119,12 @@ function ii(e) {
|
|
|
1119
1119
|
return function(n) {
|
|
1120
1120
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
1121
1121
|
o[i - 1] = arguments[i];
|
|
1122
|
-
return o.reduce((a,
|
|
1122
|
+
return o.reduce((a, l) => ({
|
|
1123
1123
|
...a,
|
|
1124
|
-
top: a.top + e *
|
|
1125
|
-
bottom: a.bottom + e *
|
|
1126
|
-
left: a.left + e *
|
|
1127
|
-
right: a.right + e *
|
|
1124
|
+
top: a.top + e * l.y,
|
|
1125
|
+
bottom: a.bottom + e * l.y,
|
|
1126
|
+
left: a.left + e * l.x,
|
|
1127
|
+
right: a.right + e * l.x
|
|
1128
1128
|
}), {
|
|
1129
1129
|
...n
|
|
1130
1130
|
});
|
|
@@ -1151,7 +1151,7 @@ function ai(e) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
return null;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function li(e, t, n) {
|
|
1155
1155
|
const r = ai(t);
|
|
1156
1156
|
if (!r)
|
|
1157
1157
|
return e;
|
|
@@ -1159,45 +1159,45 @@ function ci(e, t, n) {
|
|
|
1159
1159
|
scaleX: o,
|
|
1160
1160
|
scaleY: i,
|
|
1161
1161
|
x: a,
|
|
1162
|
-
y:
|
|
1163
|
-
} = r,
|
|
1162
|
+
y: l
|
|
1163
|
+
} = r, c = e.left - a - (1 - o) * parseFloat(n), u = e.top - l - (1 - i) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = o ? e.width / o : e.width, f = i ? e.height / i : e.height;
|
|
1164
1164
|
return {
|
|
1165
1165
|
width: d,
|
|
1166
1166
|
height: f,
|
|
1167
1167
|
top: u,
|
|
1168
|
-
right:
|
|
1168
|
+
right: c + d,
|
|
1169
1169
|
bottom: u + f,
|
|
1170
|
-
left:
|
|
1170
|
+
left: c
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
|
-
const
|
|
1173
|
+
const ci = {
|
|
1174
1174
|
ignoreTransform: !1
|
|
1175
1175
|
};
|
|
1176
1176
|
function tt(e, t) {
|
|
1177
|
-
t === void 0 && (t =
|
|
1177
|
+
t === void 0 && (t = ci);
|
|
1178
1178
|
let n = e.getBoundingClientRect();
|
|
1179
1179
|
if (t.ignoreTransform) {
|
|
1180
1180
|
const {
|
|
1181
1181
|
transform: u,
|
|
1182
1182
|
transformOrigin: d
|
|
1183
1183
|
} = ge(e).getComputedStyle(e);
|
|
1184
|
-
u && (n =
|
|
1184
|
+
u && (n = li(n, u, d));
|
|
1185
1185
|
}
|
|
1186
1186
|
const {
|
|
1187
1187
|
top: r,
|
|
1188
1188
|
left: o,
|
|
1189
1189
|
width: i,
|
|
1190
1190
|
height: a,
|
|
1191
|
-
bottom:
|
|
1192
|
-
right:
|
|
1191
|
+
bottom: l,
|
|
1192
|
+
right: c
|
|
1193
1193
|
} = n;
|
|
1194
1194
|
return {
|
|
1195
1195
|
top: r,
|
|
1196
1196
|
left: o,
|
|
1197
1197
|
width: i,
|
|
1198
1198
|
height: a,
|
|
1199
|
-
bottom:
|
|
1200
|
-
right:
|
|
1199
|
+
bottom: l,
|
|
1200
|
+
right: c
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
1203
|
function rr(e) {
|
|
@@ -1245,7 +1245,7 @@ function kr(e) {
|
|
|
1245
1245
|
const [t] = _n(e, 1);
|
|
1246
1246
|
return t ?? null;
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function cn(e) {
|
|
1249
1249
|
return !Gt || !e ? null : Qe(e) ? e : Cn(e) ? jn(e) || e === et(e).scrollingElement ? window : xt(e) ? e : null : null;
|
|
1250
1250
|
}
|
|
1251
1251
|
function Ar(e) {
|
|
@@ -1280,12 +1280,12 @@ function zr(e) {
|
|
|
1280
1280
|
}, r = {
|
|
1281
1281
|
x: e.scrollWidth - n.width,
|
|
1282
1282
|
y: e.scrollHeight - n.height
|
|
1283
|
-
}, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, a = e.scrollTop >= r.y,
|
|
1283
|
+
}, o = e.scrollTop <= t.y, i = e.scrollLeft <= t.x, a = e.scrollTop >= r.y, l = e.scrollLeft >= r.x;
|
|
1284
1284
|
return {
|
|
1285
1285
|
isTop: o,
|
|
1286
1286
|
isLeft: i,
|
|
1287
1287
|
isBottom: a,
|
|
1288
|
-
isRight:
|
|
1288
|
+
isRight: l,
|
|
1289
1289
|
maxScroll: r,
|
|
1290
1290
|
minScroll: t
|
|
1291
1291
|
};
|
|
@@ -1298,8 +1298,8 @@ function gi(e, t, n, r, o) {
|
|
|
1298
1298
|
let {
|
|
1299
1299
|
top: i,
|
|
1300
1300
|
left: a,
|
|
1301
|
-
right:
|
|
1302
|
-
bottom:
|
|
1301
|
+
right: l,
|
|
1302
|
+
bottom: c
|
|
1303
1303
|
} = n;
|
|
1304
1304
|
r === void 0 && (r = 10), o === void 0 && (o = hi);
|
|
1305
1305
|
const {
|
|
@@ -1317,7 +1317,7 @@ function gi(e, t, n, r, o) {
|
|
|
1317
1317
|
height: t.height * o.y,
|
|
1318
1318
|
width: t.width * o.x
|
|
1319
1319
|
};
|
|
1320
|
-
return !u && i <= t.top + v.height ? (g.y = oe.Backward, p.y = r * Math.abs((t.top + v.height - i) / v.height)) : !d &&
|
|
1320
|
+
return !u && i <= t.top + v.height ? (g.y = oe.Backward, p.y = r * Math.abs((t.top + v.height - i) / v.height)) : !d && c >= t.bottom - v.height && (g.y = oe.Forward, p.y = r * Math.abs((t.bottom - v.height - c) / v.height)), !b && l >= t.right - v.width ? (g.x = oe.Forward, p.x = r * Math.abs((t.right - v.width - l) / v.width)) : !f && a <= t.left + v.width && (g.x = oe.Backward, p.x = r * Math.abs((t.left + v.width - a) / v.width)), {
|
|
1321
1321
|
direction: g,
|
|
1322
1322
|
speed: p
|
|
1323
1323
|
};
|
|
@@ -1383,12 +1383,12 @@ class Tn {
|
|
|
1383
1383
|
this.rect = {
|
|
1384
1384
|
...t
|
|
1385
1385
|
}, this.width = t.width, this.height = t.height;
|
|
1386
|
-
for (const [i, a,
|
|
1387
|
-
for (const
|
|
1388
|
-
Object.defineProperty(this,
|
|
1386
|
+
for (const [i, a, l] of xi)
|
|
1387
|
+
for (const c of a)
|
|
1388
|
+
Object.defineProperty(this, c, {
|
|
1389
1389
|
get: () => {
|
|
1390
|
-
const u =
|
|
1391
|
-
return this.rect[
|
|
1390
|
+
const u = l(r), d = o[i] - u;
|
|
1391
|
+
return this.rect[c] + d;
|
|
1392
1392
|
},
|
|
1393
1393
|
enumerable: !0
|
|
1394
1394
|
});
|
|
@@ -1495,15 +1495,15 @@ class Fr {
|
|
|
1495
1495
|
} = this.props, {
|
|
1496
1496
|
keyboardCodes: i = Yr,
|
|
1497
1497
|
coordinateGetter: a = Si,
|
|
1498
|
-
scrollBehavior:
|
|
1498
|
+
scrollBehavior: l = "smooth"
|
|
1499
1499
|
} = o, {
|
|
1500
|
-
code:
|
|
1500
|
+
code: c
|
|
1501
1501
|
} = t;
|
|
1502
|
-
if (i.end.includes(
|
|
1502
|
+
if (i.end.includes(c)) {
|
|
1503
1503
|
this.handleEnd(t);
|
|
1504
1504
|
return;
|
|
1505
1505
|
}
|
|
1506
|
-
if (i.cancel.includes(
|
|
1506
|
+
if (i.cancel.includes(c)) {
|
|
1507
1507
|
this.handleCancel(t);
|
|
1508
1508
|
return;
|
|
1509
1509
|
}
|
|
@@ -1543,13 +1543,13 @@ class Fr {
|
|
|
1543
1543
|
if (Q && !b.y) {
|
|
1544
1544
|
v.scrollTo({
|
|
1545
1545
|
left: k,
|
|
1546
|
-
behavior:
|
|
1546
|
+
behavior: l
|
|
1547
1547
|
});
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
1550
|
Q ? g.x = v.scrollLeft - k : g.x = m === H.Right ? v.scrollLeft - O.x : v.scrollLeft - j.x, g.x && v.scrollBy({
|
|
1551
1551
|
left: -g.x,
|
|
1552
|
-
behavior:
|
|
1552
|
+
behavior: l
|
|
1553
1553
|
});
|
|
1554
1554
|
break;
|
|
1555
1555
|
} else if (Y && I.y !== f.y) {
|
|
@@ -1557,13 +1557,13 @@ class Fr {
|
|
|
1557
1557
|
if (Q && !b.x) {
|
|
1558
1558
|
v.scrollTo({
|
|
1559
1559
|
top: k,
|
|
1560
|
-
behavior:
|
|
1560
|
+
behavior: l
|
|
1561
1561
|
});
|
|
1562
1562
|
return;
|
|
1563
1563
|
}
|
|
1564
1564
|
Q ? g.y = v.scrollTop - k : g.y = m === H.Down ? v.scrollTop - O.y : v.scrollTop - j.y, g.y && v.scrollBy({
|
|
1565
1565
|
top: -g.y,
|
|
1566
|
-
behavior:
|
|
1566
|
+
behavior: l
|
|
1567
1567
|
});
|
|
1568
1568
|
break;
|
|
1569
1569
|
}
|
|
@@ -1607,8 +1607,8 @@ Fr.activators = [{
|
|
|
1607
1607
|
code: a
|
|
1608
1608
|
} = e.nativeEvent;
|
|
1609
1609
|
if (r.start.includes(a)) {
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1610
|
+
const l = i.activatorNode.current;
|
|
1611
|
+
return l && e.target !== l ? !1 : (e.preventDefault(), o?.({
|
|
1612
1612
|
event: e.nativeEvent
|
|
1613
1613
|
}), !0);
|
|
1614
1614
|
}
|
|
@@ -1691,25 +1691,25 @@ class On {
|
|
|
1691
1691
|
} = this, {
|
|
1692
1692
|
onMove: a,
|
|
1693
1693
|
options: {
|
|
1694
|
-
activationConstraint:
|
|
1694
|
+
activationConstraint: l
|
|
1695
1695
|
}
|
|
1696
1696
|
} = i;
|
|
1697
1697
|
if (!o)
|
|
1698
1698
|
return;
|
|
1699
|
-
const
|
|
1700
|
-
if (!r &&
|
|
1701
|
-
if (ir(
|
|
1702
|
-
if (
|
|
1699
|
+
const c = (n = bn(t)) != null ? n : De, u = Yt(o, c);
|
|
1700
|
+
if (!r && l) {
|
|
1701
|
+
if (ir(l)) {
|
|
1702
|
+
if (l.tolerance != null && un(u, l.tolerance))
|
|
1703
1703
|
return this.handleCancel();
|
|
1704
|
-
if (un(u,
|
|
1704
|
+
if (un(u, l.distance))
|
|
1705
1705
|
return this.handleStart();
|
|
1706
1706
|
}
|
|
1707
|
-
if (sr(
|
|
1707
|
+
if (sr(l) && un(u, l.tolerance))
|
|
1708
1708
|
return this.handleCancel();
|
|
1709
|
-
this.handlePending(
|
|
1709
|
+
this.handlePending(l, u);
|
|
1710
1710
|
return;
|
|
1711
1711
|
}
|
|
1712
|
-
t.cancelable && t.preventDefault(), a(
|
|
1712
|
+
t.cancelable && t.preventDefault(), a(c);
|
|
1713
1713
|
}
|
|
1714
1714
|
handleEnd() {
|
|
1715
1715
|
const {
|
|
@@ -1853,8 +1853,8 @@ function Ei(e) {
|
|
|
1853
1853
|
draggingRect: o,
|
|
1854
1854
|
enabled: i,
|
|
1855
1855
|
interval: a = 5,
|
|
1856
|
-
order:
|
|
1857
|
-
pointerCoordinates:
|
|
1856
|
+
order: l = Vt.TreeOrder,
|
|
1857
|
+
pointerCoordinates: c,
|
|
1858
1858
|
scrollableAncestors: u,
|
|
1859
1859
|
scrollableAncestorRects: d,
|
|
1860
1860
|
delta: f,
|
|
@@ -1872,22 +1872,22 @@ function Ei(e) {
|
|
|
1872
1872
|
}), _ = B(() => {
|
|
1873
1873
|
switch (n) {
|
|
1874
1874
|
case dt.Pointer:
|
|
1875
|
-
return
|
|
1876
|
-
top:
|
|
1877
|
-
bottom:
|
|
1878
|
-
left:
|
|
1879
|
-
right:
|
|
1875
|
+
return c ? {
|
|
1876
|
+
top: c.y,
|
|
1877
|
+
bottom: c.y,
|
|
1878
|
+
left: c.x,
|
|
1879
|
+
right: c.x
|
|
1880
1880
|
} : null;
|
|
1881
1881
|
case dt.DraggableRect:
|
|
1882
1882
|
return o;
|
|
1883
1883
|
}
|
|
1884
|
-
}, [n, o,
|
|
1884
|
+
}, [n, o, c]), R = U(null), T = ue(() => {
|
|
1885
1885
|
const j = R.current;
|
|
1886
1886
|
if (!j)
|
|
1887
1887
|
return;
|
|
1888
1888
|
const M = m.current.x * x.current.x, I = m.current.y * x.current.y;
|
|
1889
1889
|
j.scrollBy(M, I);
|
|
1890
|
-
}, []), O = B(() =>
|
|
1890
|
+
}, []), O = B(() => l === Vt.TreeOrder ? [...u].reverse() : u, [l, u]);
|
|
1891
1891
|
W(
|
|
1892
1892
|
() => {
|
|
1893
1893
|
if (!i || !u.length || !_) {
|
|
@@ -2009,8 +2009,8 @@ function $i(e, t) {
|
|
|
2009
2009
|
config: o
|
|
2010
2010
|
} = t;
|
|
2011
2011
|
const [i, a] = ie(null), {
|
|
2012
|
-
frequency:
|
|
2013
|
-
measure:
|
|
2012
|
+
frequency: l,
|
|
2013
|
+
measure: c,
|
|
2014
2014
|
strategy: u
|
|
2015
2015
|
} = o, d = U(e), f = m(), b = gt(f), g = ue(function(x) {
|
|
2016
2016
|
x === void 0 && (x = []), !b.current && a((_) => _ === null ? x : _.concat(x.filter((R) => !_.includes(R))));
|
|
@@ -2026,13 +2026,13 @@ function $i(e, t) {
|
|
|
2026
2026
|
_.set(R.id, R.rect.current);
|
|
2027
2027
|
continue;
|
|
2028
2028
|
}
|
|
2029
|
-
const T = R.node.current, O = T ? new Tn(
|
|
2029
|
+
const T = R.node.current, O = T ? new Tn(c(T), T) : null;
|
|
2030
2030
|
R.rect.current = O, O && _.set(R.id, O);
|
|
2031
2031
|
}
|
|
2032
2032
|
return _;
|
|
2033
2033
|
}
|
|
2034
2034
|
return x;
|
|
2035
|
-
}, [e, i, n, f,
|
|
2035
|
+
}, [e, i, n, f, c]);
|
|
2036
2036
|
return W(() => {
|
|
2037
2037
|
d.current = e;
|
|
2038
2038
|
}, [e]), W(
|
|
@@ -2049,12 +2049,12 @@ function $i(e, t) {
|
|
|
2049
2049
|
[JSON.stringify(i)]
|
|
2050
2050
|
), W(
|
|
2051
2051
|
() => {
|
|
2052
|
-
f || typeof
|
|
2052
|
+
f || typeof l != "number" || p.current !== null || (p.current = setTimeout(() => {
|
|
2053
2053
|
g(), p.current = null;
|
|
2054
|
-
},
|
|
2054
|
+
}, l));
|
|
2055
2055
|
},
|
|
2056
2056
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2057
|
-
[
|
|
2057
|
+
[l, f, g, ...r]
|
|
2058
2058
|
), {
|
|
2059
2059
|
droppableRects: v,
|
|
2060
2060
|
measureDroppableContainers: g,
|
|
@@ -2114,25 +2114,25 @@ function Xt(e) {
|
|
|
2114
2114
|
function Ai(e) {
|
|
2115
2115
|
return new Tn(tt(e), e);
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function lr(e, t, n) {
|
|
2118
2118
|
t === void 0 && (t = Ai);
|
|
2119
2119
|
const [r, o] = ie(null);
|
|
2120
2120
|
function i() {
|
|
2121
|
-
o((
|
|
2121
|
+
o((c) => {
|
|
2122
2122
|
if (!e)
|
|
2123
2123
|
return null;
|
|
2124
2124
|
if (e.isConnected === !1) {
|
|
2125
2125
|
var u;
|
|
2126
|
-
return (u =
|
|
2126
|
+
return (u = c ?? n) != null ? u : null;
|
|
2127
2127
|
}
|
|
2128
2128
|
const d = t(e);
|
|
2129
|
-
return JSON.stringify(
|
|
2129
|
+
return JSON.stringify(c) === JSON.stringify(d) ? c : d;
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
2132
|
const a = ki({
|
|
2133
|
-
callback(
|
|
2133
|
+
callback(c) {
|
|
2134
2134
|
if (e)
|
|
2135
|
-
for (const u of
|
|
2135
|
+
for (const u of c) {
|
|
2136
2136
|
const {
|
|
2137
2137
|
type: d,
|
|
2138
2138
|
target: f
|
|
@@ -2143,50 +2143,50 @@ function cr(e, t, n) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
2145
|
}
|
|
2146
|
-
}),
|
|
2146
|
+
}), l = Xt({
|
|
2147
2147
|
callback: i
|
|
2148
2148
|
});
|
|
2149
2149
|
return Te(() => {
|
|
2150
|
-
i(), e ? (
|
|
2150
|
+
i(), e ? (l?.observe(e), a?.observe(document.body, {
|
|
2151
2151
|
childList: !0,
|
|
2152
2152
|
subtree: !0
|
|
2153
|
-
})) : (
|
|
2153
|
+
})) : (l?.disconnect(), a?.disconnect());
|
|
2154
2154
|
}, [e]), r;
|
|
2155
2155
|
}
|
|
2156
2156
|
function Li(e) {
|
|
2157
2157
|
const t = Vr(e);
|
|
2158
2158
|
return Ir(e, t);
|
|
2159
2159
|
}
|
|
2160
|
-
const
|
|
2160
|
+
const cr = [];
|
|
2161
2161
|
function Ni(e) {
|
|
2162
|
-
const t = U(e), n = yt((r) => e ? r && r !==
|
|
2162
|
+
const t = U(e), n = yt((r) => e ? r && r !== cr && e && t.current && e.parentNode === t.current.parentNode ? r : _n(e) : cr, [e]);
|
|
2163
2163
|
return W(() => {
|
|
2164
2164
|
t.current = e;
|
|
2165
2165
|
}, [e]), n;
|
|
2166
2166
|
}
|
|
2167
2167
|
function zi(e) {
|
|
2168
2168
|
const [t, n] = ie(null), r = U(e), o = ue((i) => {
|
|
2169
|
-
const a =
|
|
2170
|
-
a && n((
|
|
2169
|
+
const a = cn(i.target);
|
|
2170
|
+
a && n((l) => l ? (l.set(a, xn(a)), new Map(l)) : null);
|
|
2171
2171
|
}, []);
|
|
2172
2172
|
return W(() => {
|
|
2173
2173
|
const i = r.current;
|
|
2174
2174
|
if (e !== i) {
|
|
2175
2175
|
a(i);
|
|
2176
|
-
const
|
|
2177
|
-
const u =
|
|
2176
|
+
const l = e.map((c) => {
|
|
2177
|
+
const u = cn(c);
|
|
2178
2178
|
return u ? (u.addEventListener("scroll", o, {
|
|
2179
2179
|
passive: !0
|
|
2180
2180
|
}), [u, xn(u)]) : null;
|
|
2181
|
-
}).filter((
|
|
2182
|
-
n(
|
|
2181
|
+
}).filter((c) => c != null);
|
|
2182
|
+
n(l.length ? new Map(l) : null), r.current = e;
|
|
2183
2183
|
}
|
|
2184
2184
|
return () => {
|
|
2185
2185
|
a(e), a(i);
|
|
2186
2186
|
};
|
|
2187
|
-
function a(
|
|
2188
|
-
|
|
2189
|
-
const u =
|
|
2187
|
+
function a(l) {
|
|
2188
|
+
l.forEach((c) => {
|
|
2189
|
+
const u = cn(c);
|
|
2190
2190
|
u?.removeEventListener("scroll", o);
|
|
2191
2191
|
});
|
|
2192
2192
|
}
|
|
@@ -2251,13 +2251,13 @@ function Fi(e, t) {
|
|
|
2251
2251
|
t === void 0 && (t = tt);
|
|
2252
2252
|
const [n] = e, r = Hr(n ? ge(n) : null), [o, i] = ie(dr);
|
|
2253
2253
|
function a() {
|
|
2254
|
-
i(() => e.length ? e.map((
|
|
2254
|
+
i(() => e.length ? e.map((c) => Nr(c) ? r : new Tn(t(c), c)) : dr);
|
|
2255
2255
|
}
|
|
2256
|
-
const
|
|
2256
|
+
const l = Xt({
|
|
2257
2257
|
callback: a
|
|
2258
2258
|
});
|
|
2259
2259
|
return Te(() => {
|
|
2260
|
-
|
|
2260
|
+
l?.disconnect(), a(), e.forEach((c) => l?.observe(c));
|
|
2261
2261
|
}, [e]), o;
|
|
2262
2262
|
}
|
|
2263
2263
|
function Vi(e) {
|
|
@@ -2292,12 +2292,12 @@ function Hi(e) {
|
|
|
2292
2292
|
}), a = ue((u) => {
|
|
2293
2293
|
const d = Vi(u);
|
|
2294
2294
|
i?.disconnect(), d && i?.observe(d), r(d ? t(d) : null);
|
|
2295
|
-
}, [t, i]), [
|
|
2295
|
+
}, [t, i]), [l, c] = Pt(a);
|
|
2296
2296
|
return B(() => ({
|
|
2297
|
-
nodeRef:
|
|
2297
|
+
nodeRef: l,
|
|
2298
2298
|
rect: n,
|
|
2299
|
-
setRef:
|
|
2300
|
-
}), [n,
|
|
2299
|
+
setRef: c
|
|
2300
|
+
}), [n, l, c]);
|
|
2301
2301
|
}
|
|
2302
2302
|
const Wi = [{
|
|
2303
2303
|
sensor: Mn,
|
|
@@ -2503,17 +2503,17 @@ function Ji(e) {
|
|
|
2503
2503
|
if (!t && !r && i && a != null) {
|
|
2504
2504
|
if (!En(i) || document.activeElement === i.target)
|
|
2505
2505
|
return;
|
|
2506
|
-
const
|
|
2507
|
-
if (!
|
|
2506
|
+
const l = o.get(a);
|
|
2507
|
+
if (!l)
|
|
2508
2508
|
return;
|
|
2509
2509
|
const {
|
|
2510
|
-
activatorNode:
|
|
2510
|
+
activatorNode: c,
|
|
2511
2511
|
node: u
|
|
2512
|
-
} =
|
|
2513
|
-
if (!
|
|
2512
|
+
} = l;
|
|
2513
|
+
if (!c.current && !u.current)
|
|
2514
2514
|
return;
|
|
2515
2515
|
requestAnimationFrame(() => {
|
|
2516
|
-
for (const d of [
|
|
2516
|
+
for (const d of [c.current, u.current]) {
|
|
2517
2517
|
if (!d)
|
|
2518
2518
|
continue;
|
|
2519
2519
|
const f = Yo(d);
|
|
@@ -2565,13 +2565,13 @@ function Qi(e) {
|
|
|
2565
2565
|
} = e;
|
|
2566
2566
|
const i = U(!1), {
|
|
2567
2567
|
x: a,
|
|
2568
|
-
y:
|
|
2568
|
+
y: l
|
|
2569
2569
|
} = typeof o == "boolean" ? {
|
|
2570
2570
|
x: o,
|
|
2571
2571
|
y: o
|
|
2572
2572
|
} : o;
|
|
2573
2573
|
Te(() => {
|
|
2574
|
-
if (!a && !
|
|
2574
|
+
if (!a && !l || !t) {
|
|
2575
2575
|
i.current = !1;
|
|
2576
2576
|
return;
|
|
2577
2577
|
}
|
|
@@ -2581,14 +2581,14 @@ function Qi(e) {
|
|
|
2581
2581
|
if (!u || u.isConnected === !1)
|
|
2582
2582
|
return;
|
|
2583
2583
|
const d = n(u), f = Ir(d, r);
|
|
2584
|
-
if (a || (f.x = 0),
|
|
2584
|
+
if (a || (f.x = 0), l || (f.y = 0), i.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
|
|
2585
2585
|
const b = kr(u);
|
|
2586
2586
|
b && b.scrollBy({
|
|
2587
2587
|
top: f.y,
|
|
2588
2588
|
left: f.x
|
|
2589
2589
|
});
|
|
2590
2590
|
}
|
|
2591
|
-
}, [t, a,
|
|
2591
|
+
}, [t, a, l, r, n]);
|
|
2592
2592
|
}
|
|
2593
2593
|
const Br = /* @__PURE__ */ vt({
|
|
2594
2594
|
...De,
|
|
@@ -2603,8 +2603,8 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2603
2603
|
var n, r, o, i;
|
|
2604
2604
|
let {
|
|
2605
2605
|
id: a,
|
|
2606
|
-
accessibility:
|
|
2607
|
-
autoScroll:
|
|
2606
|
+
accessibility: l,
|
|
2607
|
+
autoScroll: c = !0,
|
|
2608
2608
|
children: u,
|
|
2609
2609
|
sensors: d = Wi,
|
|
2610
2610
|
collisionDetection: f = ri,
|
|
@@ -2625,11 +2625,11 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2625
2625
|
initial: null,
|
|
2626
2626
|
translated: null
|
|
2627
2627
|
}), se = B(() => {
|
|
2628
|
-
var
|
|
2628
|
+
var ce;
|
|
2629
2629
|
return M != null ? {
|
|
2630
2630
|
id: M,
|
|
2631
2631
|
// It's possible for the active node to unmount while dragging
|
|
2632
|
-
data: (
|
|
2632
|
+
data: (ce = k?.data) != null ? ce : Bi,
|
|
2633
2633
|
rect: Q
|
|
2634
2634
|
} : null;
|
|
2635
2635
|
}, [M, k]), $ = U(null), [D, w] = ie(null), [E, C] = ie(null), A = gt(p, Object.values(p)), N = wt("DndDescribedBy", a), h = B(() => Y.getEnabled(), [Y]), S = Zi(b), {
|
|
@@ -2647,7 +2647,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2647
2647
|
initialRect: Z,
|
|
2648
2648
|
measure: S.draggable.measure
|
|
2649
2649
|
});
|
|
2650
|
-
const z =
|
|
2650
|
+
const z = lr(X, S.draggable.measure, Z), fe = lr(X ? X.parentElement : null), le = U({
|
|
2651
2651
|
activatorEvent: null,
|
|
2652
2652
|
active: null,
|
|
2653
2653
|
activeNode: X,
|
|
@@ -2661,7 +2661,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2661
2661
|
over: null,
|
|
2662
2662
|
scrollableAncestors: [],
|
|
2663
2663
|
scrollAdjustedTranslate: null
|
|
2664
|
-
}), we = Y.getNodeFor((n =
|
|
2664
|
+
}), we = Y.getNodeFor((n = le.current.over) == null ? void 0 : n.id), $e = Hi({
|
|
2665
2665
|
measure: S.dragOverlay.measure
|
|
2666
2666
|
}), Be = (r = $e.nodeRef.current) != null ? r : X, Ue = j ? (o = $e.rect) != null ? o : z : null, kn = !!($e.nodeRef.current && $e.rect), An = Li(kn ? null : z), Qt = Hr(Be ? ge(Be) : null), Le = Ni(j ? we ?? X : null), St = Fi(Le), Dt = Ki(g, {
|
|
2667
2667
|
transform: {
|
|
@@ -2675,7 +2675,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2675
2675
|
activeNodeRect: z,
|
|
2676
2676
|
containerNodeRect: fe,
|
|
2677
2677
|
draggingNodeRect: Ue,
|
|
2678
|
-
over:
|
|
2678
|
+
over: le.current.over,
|
|
2679
2679
|
overlayNodeRect: $e.rect,
|
|
2680
2680
|
scrollableAncestors: Le,
|
|
2681
2681
|
scrollableAncestorRects: St,
|
|
@@ -2686,8 +2686,8 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2686
2686
|
droppableRects: L,
|
|
2687
2687
|
droppableContainers: h,
|
|
2688
2688
|
pointerCoordinates: Ln
|
|
2689
|
-
}) : null, zn = ti(nt, "id"), [Ne, Pn] = ie(null), ao = kn ? Dt : Je(Dt, so),
|
|
2690
|
-
(
|
|
2689
|
+
}) : null, zn = ti(nt, "id"), [Ne, Pn] = ie(null), ao = kn ? Dt : Je(Dt, so), lo = oi(ao, (i = Ne?.rect) != null ? i : null, z), en = U(null), Yn = ue(
|
|
2690
|
+
(ce, pe) => {
|
|
2691
2691
|
let {
|
|
2692
2692
|
sensor: ve,
|
|
2693
2693
|
options: ze
|
|
@@ -2697,14 +2697,14 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2697
2697
|
const xe = I.get($.current);
|
|
2698
2698
|
if (!xe)
|
|
2699
2699
|
return;
|
|
2700
|
-
const me =
|
|
2700
|
+
const me = ce.nativeEvent, je = new ve({
|
|
2701
2701
|
active: $.current,
|
|
2702
2702
|
activeNode: xe,
|
|
2703
2703
|
event: me,
|
|
2704
2704
|
options: ze,
|
|
2705
2705
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2706
2706
|
// otherwise they are frozen in time with the stale arguments
|
|
2707
|
-
context:
|
|
2707
|
+
context: le,
|
|
2708
2708
|
onAbort(ae) {
|
|
2709
2709
|
if (!I.get(ae))
|
|
2710
2710
|
return;
|
|
@@ -2779,7 +2779,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2779
2779
|
collisions: Ie,
|
|
2780
2780
|
over: rt,
|
|
2781
2781
|
scrollAdjustedTranslate: ot
|
|
2782
|
-
} =
|
|
2782
|
+
} = le.current;
|
|
2783
2783
|
let Ye = null;
|
|
2784
2784
|
if (Re && ot) {
|
|
2785
2785
|
const {
|
|
@@ -2811,7 +2811,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2811
2811
|
},
|
|
2812
2812
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2813
2813
|
[I]
|
|
2814
|
-
),
|
|
2814
|
+
), co = ue((ce, pe) => (ve, ze) => {
|
|
2815
2815
|
const xe = ve.nativeEvent, me = I.get(ze);
|
|
2816
2816
|
if (
|
|
2817
2817
|
// Another sensor is already instantiating
|
|
@@ -2823,22 +2823,22 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2823
2823
|
const je = {
|
|
2824
2824
|
active: me
|
|
2825
2825
|
};
|
|
2826
|
-
|
|
2826
|
+
ce(ve, pe.options, je) === !0 && (xe.dndKit = {
|
|
2827
2827
|
capturedBy: pe.sensor
|
|
2828
2828
|
}, $.current = ze, Yn(ve, pe));
|
|
2829
|
-
}, [I, Yn]), Fn = Mi(d,
|
|
2829
|
+
}, [I, Yn]), Fn = Mi(d, co);
|
|
2830
2830
|
Pi(d), Te(() => {
|
|
2831
2831
|
z && T === Fe.Initializing && O(Fe.Initialized);
|
|
2832
2832
|
}, [z, T]), W(
|
|
2833
2833
|
() => {
|
|
2834
2834
|
const {
|
|
2835
|
-
onDragMove:
|
|
2835
|
+
onDragMove: ce
|
|
2836
2836
|
} = A.current, {
|
|
2837
2837
|
active: pe,
|
|
2838
2838
|
activatorEvent: ve,
|
|
2839
2839
|
collisions: ze,
|
|
2840
2840
|
over: xe
|
|
2841
|
-
} =
|
|
2841
|
+
} = le.current;
|
|
2842
2842
|
if (!pe || !ve)
|
|
2843
2843
|
return;
|
|
2844
2844
|
const me = {
|
|
@@ -2852,7 +2852,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2852
2852
|
over: xe
|
|
2853
2853
|
};
|
|
2854
2854
|
Ct(() => {
|
|
2855
|
-
|
|
2855
|
+
ce?.(me), _({
|
|
2856
2856
|
type: "onDragMove",
|
|
2857
2857
|
event: me
|
|
2858
2858
|
});
|
|
@@ -2863,13 +2863,13 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2863
2863
|
), W(
|
|
2864
2864
|
() => {
|
|
2865
2865
|
const {
|
|
2866
|
-
active:
|
|
2866
|
+
active: ce,
|
|
2867
2867
|
activatorEvent: pe,
|
|
2868
2868
|
collisions: ve,
|
|
2869
2869
|
droppableContainers: ze,
|
|
2870
2870
|
scrollAdjustedTranslate: xe
|
|
2871
|
-
} =
|
|
2872
|
-
if (!
|
|
2871
|
+
} = le.current;
|
|
2872
|
+
if (!ce || $.current == null || !pe || !xe)
|
|
2873
2873
|
return;
|
|
2874
2874
|
const {
|
|
2875
2875
|
onDragOver: me
|
|
@@ -2879,7 +2879,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2879
2879
|
data: je.data,
|
|
2880
2880
|
disabled: je.disabled
|
|
2881
2881
|
} : null, ae = {
|
|
2882
|
-
active:
|
|
2882
|
+
active: ce,
|
|
2883
2883
|
activatorEvent: pe,
|
|
2884
2884
|
collisions: ve,
|
|
2885
2885
|
delta: {
|
|
@@ -2898,7 +2898,7 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2898
2898
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2899
2899
|
[zn]
|
|
2900
2900
|
), Te(() => {
|
|
2901
|
-
|
|
2901
|
+
le.current = {
|
|
2902
2902
|
activatorEvent: E,
|
|
2903
2903
|
active: se,
|
|
2904
2904
|
activeNode: X,
|
|
@@ -2962,17 +2962,17 @@ const Ur = /* @__PURE__ */ po(function(t) {
|
|
|
2962
2962
|
}, re.createElement(Wr.Provider, {
|
|
2963
2963
|
value: uo
|
|
2964
2964
|
}, re.createElement(Br.Provider, {
|
|
2965
|
-
value:
|
|
2965
|
+
value: lo
|
|
2966
2966
|
}, u)), re.createElement(Ji, {
|
|
2967
|
-
disabled:
|
|
2967
|
+
disabled: l?.restoreFocus === !1
|
|
2968
2968
|
})), re.createElement(qo, {
|
|
2969
|
-
...
|
|
2969
|
+
...l,
|
|
2970
2970
|
hiddenTextDescribedById: N
|
|
2971
2971
|
}));
|
|
2972
2972
|
function ho() {
|
|
2973
|
-
const
|
|
2974
|
-
return typeof
|
|
2975
|
-
...
|
|
2973
|
+
const ce = D?.autoScrollEnabled === !1, pe = typeof c == "object" ? c.enabled === !1 : c === !1, ve = j && !ce && !pe;
|
|
2974
|
+
return typeof c == "object" ? {
|
|
2975
|
+
...c,
|
|
2976
2976
|
enabled: ve
|
|
2977
2977
|
} : {
|
|
2978
2978
|
enabled: ve
|
|
@@ -2988,8 +2988,8 @@ function ns(e) {
|
|
|
2988
2988
|
} = e;
|
|
2989
2989
|
const i = wt(ts), {
|
|
2990
2990
|
activators: a,
|
|
2991
|
-
activatorEvent:
|
|
2992
|
-
active:
|
|
2991
|
+
activatorEvent: l,
|
|
2992
|
+
active: c,
|
|
2993
2993
|
activeNodeRect: u,
|
|
2994
2994
|
ariaDescribedById: d,
|
|
2995
2995
|
draggableNodes: f,
|
|
@@ -2998,7 +2998,7 @@ function ns(e) {
|
|
|
2998
2998
|
role: g = fr,
|
|
2999
2999
|
roleDescription: p = "draggable",
|
|
3000
3000
|
tabIndex: v = 0
|
|
3001
|
-
} = o ?? {}, m =
|
|
3001
|
+
} = o ?? {}, m = c?.id === t, x = He(m ? Br : es), [_, R] = Pt(), [T, O] = Pt(), j = Yi(a, t), M = gt(n);
|
|
3002
3002
|
Te(
|
|
3003
3003
|
() => (f.set(t, {
|
|
3004
3004
|
id: t,
|
|
@@ -3022,8 +3022,8 @@ function ns(e) {
|
|
|
3022
3022
|
"aria-describedby": d.draggable
|
|
3023
3023
|
}), [r, g, v, m, p, d.draggable]);
|
|
3024
3024
|
return {
|
|
3025
|
-
active:
|
|
3026
|
-
activatorEvent:
|
|
3025
|
+
active: c,
|
|
3026
|
+
activatorEvent: l,
|
|
3027
3027
|
activeNodeRect: u,
|
|
3028
3028
|
attributes: I,
|
|
3029
3029
|
isDragging: m,
|
|
@@ -3050,8 +3050,8 @@ function ss(e) {
|
|
|
3050
3050
|
} = e;
|
|
3051
3051
|
const i = wt(os), {
|
|
3052
3052
|
active: a,
|
|
3053
|
-
dispatch:
|
|
3054
|
-
over:
|
|
3053
|
+
dispatch: l,
|
|
3054
|
+
over: c,
|
|
3055
3055
|
measureDroppableContainers: u
|
|
3056
3056
|
} = He(qt), d = U({
|
|
3057
3057
|
disabled: n
|
|
@@ -3083,7 +3083,7 @@ function ss(e) {
|
|
|
3083
3083
|
return W(() => {
|
|
3084
3084
|
!R || !O.current || (R.disconnect(), f.current = !1, R.observe(O.current));
|
|
3085
3085
|
}, [O, R]), W(
|
|
3086
|
-
() => (
|
|
3086
|
+
() => (l({
|
|
3087
3087
|
type: ne.RegisterDroppable,
|
|
3088
3088
|
element: {
|
|
3089
3089
|
id: r,
|
|
@@ -3093,7 +3093,7 @@ function ss(e) {
|
|
|
3093
3093
|
rect: b,
|
|
3094
3094
|
data: M
|
|
3095
3095
|
}
|
|
3096
|
-
}), () =>
|
|
3096
|
+
}), () => l({
|
|
3097
3097
|
type: ne.UnregisterDroppable,
|
|
3098
3098
|
key: i,
|
|
3099
3099
|
id: r
|
|
@@ -3101,18 +3101,18 @@ function ss(e) {
|
|
|
3101
3101
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3102
3102
|
[r]
|
|
3103
3103
|
), W(() => {
|
|
3104
|
-
n !== d.current.disabled && (
|
|
3104
|
+
n !== d.current.disabled && (l({
|
|
3105
3105
|
type: ne.SetDroppableDisabled,
|
|
3106
3106
|
id: r,
|
|
3107
3107
|
key: i,
|
|
3108
3108
|
disabled: n
|
|
3109
3109
|
}), d.current.disabled = n);
|
|
3110
|
-
}, [r, i, n,
|
|
3110
|
+
}, [r, i, n, l]), {
|
|
3111
3111
|
active: a,
|
|
3112
3112
|
rect: b,
|
|
3113
|
-
isOver:
|
|
3113
|
+
isOver: c?.id === r,
|
|
3114
3114
|
node: O,
|
|
3115
|
-
over:
|
|
3115
|
+
over: c,
|
|
3116
3116
|
setNodeRef: j
|
|
3117
3117
|
};
|
|
3118
3118
|
}
|
|
@@ -3129,7 +3129,7 @@ function as(e, t) {
|
|
|
3129
3129
|
function Tt(e) {
|
|
3130
3130
|
return e !== null && e >= 0;
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3132
|
+
function ls(e, t) {
|
|
3133
3133
|
if (e === t)
|
|
3134
3134
|
return !0;
|
|
3135
3135
|
if (e.length !== t.length)
|
|
@@ -3139,7 +3139,7 @@ function cs(e, t) {
|
|
|
3139
3139
|
return !1;
|
|
3140
3140
|
return !0;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function cs(e) {
|
|
3143
3143
|
return typeof e == "boolean" ? {
|
|
3144
3144
|
draggable: e,
|
|
3145
3145
|
droppable: e
|
|
@@ -3157,24 +3157,24 @@ const Ot = {
|
|
|
3157
3157
|
overIndex: i,
|
|
3158
3158
|
index: a
|
|
3159
3159
|
} = e;
|
|
3160
|
-
const
|
|
3161
|
-
if (!
|
|
3160
|
+
const l = (t = n[o]) != null ? t : r;
|
|
3161
|
+
if (!l)
|
|
3162
3162
|
return null;
|
|
3163
|
-
const
|
|
3163
|
+
const c = ds(n, a, o);
|
|
3164
3164
|
if (a === o) {
|
|
3165
3165
|
const u = n[i];
|
|
3166
3166
|
return u ? {
|
|
3167
|
-
x: o < i ? u.left + u.width - (
|
|
3167
|
+
x: o < i ? u.left + u.width - (l.left + l.width) : u.left - l.left,
|
|
3168
3168
|
y: 0,
|
|
3169
3169
|
...Ot
|
|
3170
3170
|
} : null;
|
|
3171
3171
|
}
|
|
3172
3172
|
return a > o && a <= i ? {
|
|
3173
|
-
x: -
|
|
3173
|
+
x: -l.width - c,
|
|
3174
3174
|
y: 0,
|
|
3175
3175
|
...Ot
|
|
3176
3176
|
} : a < o && a >= i ? {
|
|
3177
|
-
x:
|
|
3177
|
+
x: l.width + c,
|
|
3178
3178
|
y: 0,
|
|
3179
3179
|
...Ot
|
|
3180
3180
|
} : {
|
|
@@ -3194,12 +3194,12 @@ const Gr = (e) => {
|
|
|
3194
3194
|
overIndex: r,
|
|
3195
3195
|
index: o
|
|
3196
3196
|
} = e;
|
|
3197
|
-
const i = Jt(t, r, n), a = t[o],
|
|
3198
|
-
return !
|
|
3199
|
-
x:
|
|
3200
|
-
y:
|
|
3201
|
-
scaleX:
|
|
3202
|
-
scaleY:
|
|
3197
|
+
const i = Jt(t, r, n), a = t[o], l = i[o];
|
|
3198
|
+
return !l || !a ? null : {
|
|
3199
|
+
x: l.left - a.left,
|
|
3200
|
+
y: l.top - a.top,
|
|
3201
|
+
scaleX: l.width / a.width,
|
|
3202
|
+
scaleY: l.height / a.height
|
|
3203
3203
|
};
|
|
3204
3204
|
}, Mt = {
|
|
3205
3205
|
scaleX: 1,
|
|
@@ -3213,25 +3213,25 @@ const Gr = (e) => {
|
|
|
3213
3213
|
rects: i,
|
|
3214
3214
|
overIndex: a
|
|
3215
3215
|
} = e;
|
|
3216
|
-
const
|
|
3217
|
-
if (!
|
|
3216
|
+
const l = (t = i[n]) != null ? t : r;
|
|
3217
|
+
if (!l)
|
|
3218
3218
|
return null;
|
|
3219
3219
|
if (o === n) {
|
|
3220
3220
|
const u = i[a];
|
|
3221
3221
|
return u ? {
|
|
3222
3222
|
x: 0,
|
|
3223
|
-
y: n < a ? u.top + u.height - (
|
|
3223
|
+
y: n < a ? u.top + u.height - (l.top + l.height) : u.top - l.top,
|
|
3224
3224
|
...Mt
|
|
3225
3225
|
} : null;
|
|
3226
3226
|
}
|
|
3227
|
-
const
|
|
3227
|
+
const c = hs(i, o, n);
|
|
3228
3228
|
return o > n && o <= a ? {
|
|
3229
3229
|
x: 0,
|
|
3230
|
-
y: -
|
|
3230
|
+
y: -l.height - c,
|
|
3231
3231
|
...Mt
|
|
3232
3232
|
} : o < n && o >= a ? {
|
|
3233
3233
|
x: 0,
|
|
3234
|
-
y:
|
|
3234
|
+
y: l.height + c,
|
|
3235
3235
|
...Mt
|
|
3236
3236
|
} : {
|
|
3237
3237
|
x: 0,
|
|
@@ -3267,11 +3267,11 @@ function Jr(e) {
|
|
|
3267
3267
|
} = e;
|
|
3268
3268
|
const {
|
|
3269
3269
|
active: a,
|
|
3270
|
-
dragOverlay:
|
|
3271
|
-
droppableRects:
|
|
3270
|
+
dragOverlay: l,
|
|
3271
|
+
droppableRects: c,
|
|
3272
3272
|
over: u,
|
|
3273
3273
|
measureDroppableContainers: d
|
|
3274
|
-
} = rs(), f = wt(Xr, n), b =
|
|
3274
|
+
} = rs(), f = wt(Xr, n), b = l.rect !== null, g = B(() => r.map((j) => typeof j == "object" && "id" in j ? j.id : j), [r]), p = a != null, v = a ? g.indexOf(a.id) : -1, m = u ? g.indexOf(u.id) : -1, x = U(g), _ = !ls(g, x.current), R = m !== -1 && v === -1 || _, T = cs(i);
|
|
3275
3275
|
Te(() => {
|
|
3276
3276
|
_ && p && d(g);
|
|
3277
3277
|
}, [_, g, p, d]), W(() => {
|
|
@@ -3286,11 +3286,11 @@ function Jr(e) {
|
|
|
3286
3286
|
items: g,
|
|
3287
3287
|
overIndex: m,
|
|
3288
3288
|
useDragOverlay: b,
|
|
3289
|
-
sortedRects: as(g,
|
|
3289
|
+
sortedRects: as(g, c),
|
|
3290
3290
|
strategy: o
|
|
3291
3291
|
}),
|
|
3292
3292
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3293
|
-
[v, f, T.draggable, T.droppable, R, g, m,
|
|
3293
|
+
[v, f, T.draggable, T.droppable, R, g, m, c, b, o]
|
|
3294
3294
|
);
|
|
3295
3295
|
return re.createElement(qr.Provider, {
|
|
3296
3296
|
value: O
|
|
@@ -3312,11 +3312,11 @@ const gs = (e) => {
|
|
|
3312
3312
|
index: o,
|
|
3313
3313
|
items: i,
|
|
3314
3314
|
newIndex: a,
|
|
3315
|
-
previousItems:
|
|
3316
|
-
previousContainerId:
|
|
3315
|
+
previousItems: l,
|
|
3316
|
+
previousContainerId: c,
|
|
3317
3317
|
transition: u
|
|
3318
3318
|
} = e;
|
|
3319
|
-
return !u || !r ||
|
|
3319
|
+
return !u || !r || l !== i && o === a ? !1 : n ? !0 : a !== o && t === c;
|
|
3320
3320
|
}, vs = {
|
|
3321
3321
|
duration: 200,
|
|
3322
3322
|
easing: "ease"
|
|
@@ -3334,23 +3334,23 @@ function xs(e) {
|
|
|
3334
3334
|
node: r,
|
|
3335
3335
|
rect: o
|
|
3336
3336
|
} = e;
|
|
3337
|
-
const [i, a] = ie(null),
|
|
3337
|
+
const [i, a] = ie(null), l = U(n);
|
|
3338
3338
|
return Te(() => {
|
|
3339
|
-
if (!t && n !==
|
|
3340
|
-
const
|
|
3341
|
-
if (
|
|
3339
|
+
if (!t && n !== l.current && r.current) {
|
|
3340
|
+
const c = o.current;
|
|
3341
|
+
if (c) {
|
|
3342
3342
|
const u = tt(r.current, {
|
|
3343
3343
|
ignoreTransform: !0
|
|
3344
3344
|
}), d = {
|
|
3345
|
-
x:
|
|
3346
|
-
y:
|
|
3347
|
-
scaleX:
|
|
3348
|
-
scaleY:
|
|
3345
|
+
x: c.left - u.left,
|
|
3346
|
+
y: c.top - u.top,
|
|
3347
|
+
scaleX: c.width / u.width,
|
|
3348
|
+
scaleY: c.height / u.height
|
|
3349
3349
|
};
|
|
3350
3350
|
(d.x || d.y) && a(d);
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
|
-
n !==
|
|
3353
|
+
n !== l.current && (l.current = n);
|
|
3354
3354
|
}, [t, n, r, o]), W(() => {
|
|
3355
3355
|
i && a(null);
|
|
3356
3356
|
}, [i]), i;
|
|
@@ -3363,8 +3363,8 @@ function Zr(e) {
|
|
|
3363
3363
|
data: o,
|
|
3364
3364
|
getNewIndex: i = gs,
|
|
3365
3365
|
id: a,
|
|
3366
|
-
strategy:
|
|
3367
|
-
resizeObserverConfig:
|
|
3366
|
+
strategy: l,
|
|
3367
|
+
resizeObserverConfig: c,
|
|
3368
3368
|
transition: u = vs
|
|
3369
3369
|
} = e;
|
|
3370
3370
|
const {
|
|
@@ -3395,7 +3395,7 @@ function Zr(e) {
|
|
|
3395
3395
|
disabled: R.droppable,
|
|
3396
3396
|
resizeObserverConfig: {
|
|
3397
3397
|
updateMeasurementsFor: j,
|
|
3398
|
-
...
|
|
3398
|
+
...c
|
|
3399
3399
|
}
|
|
3400
3400
|
}), {
|
|
3401
3401
|
active: k,
|
|
@@ -3416,7 +3416,7 @@ function Zr(e) {
|
|
|
3416
3416
|
...n
|
|
3417
3417
|
},
|
|
3418
3418
|
disabled: R.draggable
|
|
3419
|
-
}), h = Lo(Y, D), S = !!k, L = S && !p && Tt(b) && Tt(m), P = !x && E, G = P && L ? N : null, V = L ? G ?? (
|
|
3419
|
+
}), h = Lo(Y, D), S = !!k, L = S && !p && Tt(b) && Tt(m), P = !x && E, G = P && L ? N : null, V = L ? G ?? (l ?? _)({
|
|
3420
3420
|
rects: v,
|
|
3421
3421
|
activeNodeRect: se,
|
|
3422
3422
|
activeIndex: b,
|
|
@@ -3432,7 +3432,7 @@ function Zr(e) {
|
|
|
3432
3432
|
items: d,
|
|
3433
3433
|
newIndex: K,
|
|
3434
3434
|
containerId: f
|
|
3435
|
-
}), fe = d !== z.current.items,
|
|
3435
|
+
}), fe = d !== z.current.items, le = t({
|
|
3436
3436
|
active: k,
|
|
3437
3437
|
containerId: f,
|
|
3438
3438
|
isDragging: E,
|
|
@@ -3446,7 +3446,7 @@ function Zr(e) {
|
|
|
3446
3446
|
transition: u,
|
|
3447
3447
|
wasDragging: z.current.activeId != null
|
|
3448
3448
|
}), we = xs({
|
|
3449
|
-
disabled: !
|
|
3449
|
+
disabled: !le,
|
|
3450
3450
|
index: T,
|
|
3451
3451
|
node: I,
|
|
3452
3452
|
rect: M
|
|
@@ -3494,7 +3494,7 @@ function Zr(e) {
|
|
|
3494
3494
|
fe && z.current.newIndex === T
|
|
3495
3495
|
)
|
|
3496
3496
|
return ms;
|
|
3497
|
-
if (!(P && !En(Q) || !u) && (S ||
|
|
3497
|
+
if (!(P && !En(Q) || !u) && (S || le))
|
|
3498
3498
|
return Ke.Transition.toString({
|
|
3499
3499
|
...u,
|
|
3500
3500
|
property: Kr
|
|
@@ -3544,19 +3544,19 @@ const js = Sn(
|
|
|
3544
3544
|
className: o = "",
|
|
3545
3545
|
children: i,
|
|
3546
3546
|
iconNode: a,
|
|
3547
|
-
...
|
|
3548
|
-
},
|
|
3547
|
+
...l
|
|
3548
|
+
}, c) => gn(
|
|
3549
3549
|
"svg",
|
|
3550
3550
|
{
|
|
3551
|
-
ref:
|
|
3551
|
+
ref: c,
|
|
3552
3552
|
...Cs,
|
|
3553
3553
|
width: t,
|
|
3554
3554
|
height: t,
|
|
3555
3555
|
stroke: e,
|
|
3556
3556
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3557
3557
|
className: Qr("lucide", o),
|
|
3558
|
-
...!i && !Ds(
|
|
3559
|
-
...
|
|
3558
|
+
...!i && !Ds(l) && { "aria-hidden": "true" },
|
|
3559
|
+
...l
|
|
3560
3560
|
},
|
|
3561
3561
|
[
|
|
3562
3562
|
...a.map(([u, d]) => gn(u, d)),
|
|
@@ -3735,18 +3735,18 @@ function ia(e, t) {
|
|
|
3735
3735
|
(d) => Object.prototype.hasOwnProperty.call(n, d.id)
|
|
3736
3736
|
), { tableId: i } = be.state, a = JSON.parse(
|
|
3737
3737
|
localStorage.getItem(to(i)) || "[]"
|
|
3738
|
-
),
|
|
3738
|
+
), l = [
|
|
3739
3739
|
...a.map((d) => o.find((f) => f.id === d)).filter(Boolean),
|
|
3740
3740
|
...o.filter((d) => !a.includes(d.id))
|
|
3741
|
-
],
|
|
3741
|
+
], c = JSON.parse(
|
|
3742
3742
|
localStorage.getItem(no(i)) || "{}"
|
|
3743
|
-
), u =
|
|
3743
|
+
), u = l.reduce((d, f) => (d[f.id] = c[f.id] ?? !0, d), {});
|
|
3744
3744
|
be.setState((d) => ({
|
|
3745
3745
|
...d,
|
|
3746
3746
|
data: e,
|
|
3747
|
-
columnOrder:
|
|
3747
|
+
columnOrder: l,
|
|
3748
3748
|
visibility: u,
|
|
3749
|
-
sortableColumns:
|
|
3749
|
+
sortableColumns: l.map((f) => ({
|
|
3750
3750
|
id: f.id,
|
|
3751
3751
|
label: f.label,
|
|
3752
3752
|
sortable: !0,
|
|
@@ -3765,12 +3765,12 @@ const aa = (e) => {
|
|
|
3765
3765
|
...t,
|
|
3766
3766
|
actionsConfig: e
|
|
3767
3767
|
}));
|
|
3768
|
-
},
|
|
3768
|
+
}, la = y(Oe.Trigger), ca = y(Oe.Positioner), ua = y(Oe.Content), da = y(Oe.Item), fa = y(Ce.Label), ha = y(Ce.HiddenInput), ga = y(Ce.Control);
|
|
3769
3769
|
function pa({ visibility: e, onToggle: t }) {
|
|
3770
3770
|
const { sortableColumns: n } = bt(be);
|
|
3771
3771
|
return /* @__PURE__ */ s.jsxs(Oe.Root, { closeOnSelect: !1, children: [
|
|
3772
|
-
/* @__PURE__ */ s.jsx(
|
|
3773
|
-
/* @__PURE__ */ s.jsx(Ze, { children: /* @__PURE__ */ s.jsx(
|
|
3772
|
+
/* @__PURE__ */ s.jsx(la, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ s.jsx(Ys, { size: 18 }) }) }),
|
|
3773
|
+
/* @__PURE__ */ s.jsx(Ze, { children: /* @__PURE__ */ s.jsx(ca, { children: /* @__PURE__ */ s.jsx(ua, { minW: "220px", children: n.map((r) => {
|
|
3774
3774
|
const o = !!e[r.id];
|
|
3775
3775
|
return /* @__PURE__ */ s.jsx(da, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ s.jsxs(Ce.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3776
3776
|
/* @__PURE__ */ s.jsx(ha, {}),
|
|
@@ -3789,11 +3789,11 @@ function va({
|
|
|
3789
3789
|
borderRightColor: i,
|
|
3790
3790
|
backgroundColor: a
|
|
3791
3791
|
}) {
|
|
3792
|
-
const { setNodeRef:
|
|
3792
|
+
const { setNodeRef: l, attributes: c, listeners: u, transform: d, transition: f } = Zr({ id: e });
|
|
3793
3793
|
return /* @__PURE__ */ s.jsx(
|
|
3794
|
-
|
|
3794
|
+
ee.ColumnHeader,
|
|
3795
3795
|
{
|
|
3796
|
-
ref:
|
|
3796
|
+
ref: l,
|
|
3797
3797
|
onClick: n,
|
|
3798
3798
|
backgroundColor: a,
|
|
3799
3799
|
w: e === "id" ? "80px" : void 0,
|
|
@@ -3804,7 +3804,7 @@ function va({
|
|
|
3804
3804
|
borderRight: o,
|
|
3805
3805
|
borderRightColor: i
|
|
3806
3806
|
},
|
|
3807
|
-
...
|
|
3807
|
+
...c,
|
|
3808
3808
|
children: /* @__PURE__ */ s.jsxs(he, { justify: "space-between", children: [
|
|
3809
3809
|
t,
|
|
3810
3810
|
/* @__PURE__ */ s.jsx("span", { ...u, children: /* @__PURE__ */ s.jsx(eo, { size: 12 }) })
|
|
@@ -3813,28 +3813,28 @@ function va({
|
|
|
3813
3813
|
);
|
|
3814
3814
|
}
|
|
3815
3815
|
function ma() {
|
|
3816
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: i } = bt(be), a = e.map((
|
|
3817
|
-
const { active: u, over: d } =
|
|
3816
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: i } = bt(be), a = e.map((c) => o.find((u) => u.id === c.id)).filter((c) => c !== void 0).filter((c) => t[c.id]), l = (c) => {
|
|
3817
|
+
const { active: u, over: d } = c;
|
|
3818
3818
|
if (!d || u.id === d.id) return;
|
|
3819
3819
|
const f = e.findIndex((p) => p.id === u.id), b = e.findIndex((p) => p.id === d.id), g = Jt(e, f, b);
|
|
3820
3820
|
na(g);
|
|
3821
3821
|
};
|
|
3822
|
-
return /* @__PURE__ */ s.jsx(
|
|
3822
|
+
return /* @__PURE__ */ s.jsx(ee.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ s.jsx(Ur, { collisionDetection: $r, onDragEnd: l, children: /* @__PURE__ */ s.jsx(
|
|
3823
3823
|
Jr,
|
|
3824
3824
|
{
|
|
3825
|
-
items: e.map((
|
|
3825
|
+
items: e.map((c) => c.id),
|
|
3826
3826
|
strategy: us,
|
|
3827
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
3828
|
-
a.map((
|
|
3829
|
-
const u = n ===
|
|
3827
|
+
children: /* @__PURE__ */ s.jsxs(ee.Row, { height: "28px", children: [
|
|
3828
|
+
a.map((c) => {
|
|
3829
|
+
const u = n === c?.id;
|
|
3830
3830
|
return /* @__PURE__ */ s.jsx(
|
|
3831
3831
|
va,
|
|
3832
3832
|
{
|
|
3833
|
-
id:
|
|
3834
|
-
onClick: () =>
|
|
3835
|
-
cursor:
|
|
3833
|
+
id: c?.id,
|
|
3834
|
+
onClick: () => c?.sortable && ra(c?.id),
|
|
3835
|
+
cursor: c?.sortable ? "pointer" : "default",
|
|
3836
3836
|
borderRight: "2px solid #dcdcdc",
|
|
3837
|
-
backgroundColor:
|
|
3837
|
+
backgroundColor: c?.backgroundColor,
|
|
3838
3838
|
children: /* @__PURE__ */ s.jsxs(
|
|
3839
3839
|
"span",
|
|
3840
3840
|
{
|
|
@@ -3845,17 +3845,17 @@ function ma() {
|
|
|
3845
3845
|
userSelect: "none"
|
|
3846
3846
|
},
|
|
3847
3847
|
children: [
|
|
3848
|
-
|
|
3849
|
-
|
|
3848
|
+
c?.label,
|
|
3849
|
+
c?.sortable && (u ? r === "asc" ? /* @__PURE__ */ s.jsx(Ms, { size: 14 }) : /* @__PURE__ */ s.jsx(Es, { size: 14 }) : /* @__PURE__ */ s.jsx(Ts, { size: 14, opacity: 0.4 }))
|
|
3850
3850
|
]
|
|
3851
3851
|
}
|
|
3852
3852
|
)
|
|
3853
3853
|
},
|
|
3854
|
-
|
|
3854
|
+
c?.id
|
|
3855
3855
|
);
|
|
3856
3856
|
}),
|
|
3857
3857
|
i?.showActionColumn && /* @__PURE__ */ s.jsx(
|
|
3858
|
-
|
|
3858
|
+
ee.ColumnHeader,
|
|
3859
3859
|
{
|
|
3860
3860
|
width: i.width,
|
|
3861
3861
|
backgroundColor: i.backgroundColor,
|
|
@@ -3864,7 +3864,7 @@ function ma() {
|
|
|
3864
3864
|
}
|
|
3865
3865
|
),
|
|
3866
3866
|
i?.showColumnVisibilityMenu && /* @__PURE__ */ s.jsx(
|
|
3867
|
-
|
|
3867
|
+
ee.ColumnHeader,
|
|
3868
3868
|
{
|
|
3869
3869
|
boxSize: "0.5",
|
|
3870
3870
|
backgroundColor: i.backgroundColorColumnVisibilityMenu,
|
|
@@ -3885,10 +3885,10 @@ function Oa({
|
|
|
3885
3885
|
siblingCount: i = 2,
|
|
3886
3886
|
pageSizeOptions: a = ba
|
|
3887
3887
|
}) {
|
|
3888
|
-
const
|
|
3889
|
-
items: a.map((
|
|
3890
|
-
label: String(
|
|
3891
|
-
value: String(
|
|
3888
|
+
const l = Dr({
|
|
3889
|
+
items: a.map((c) => ({
|
|
3890
|
+
label: String(c),
|
|
3891
|
+
value: String(c)
|
|
3892
3892
|
}))
|
|
3893
3893
|
});
|
|
3894
3894
|
return /* @__PURE__ */ s.jsx(Ee, { width: "100%", children: /* @__PURE__ */ s.jsxs(he, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
@@ -3897,10 +3897,10 @@ function Oa({
|
|
|
3897
3897
|
/* @__PURE__ */ s.jsxs(
|
|
3898
3898
|
J.Root,
|
|
3899
3899
|
{
|
|
3900
|
-
collection:
|
|
3900
|
+
collection: l,
|
|
3901
3901
|
size: "sm",
|
|
3902
3902
|
width: "60px",
|
|
3903
|
-
onValueChange: (
|
|
3903
|
+
onValueChange: (c) => o?.(Number(c.items[0].value)),
|
|
3904
3904
|
value: [String(t)],
|
|
3905
3905
|
children: [
|
|
3906
3906
|
/* @__PURE__ */ s.jsx(Ca, {}),
|
|
@@ -3908,10 +3908,10 @@ function Oa({
|
|
|
3908
3908
|
/* @__PURE__ */ s.jsx(Ra, { children: /* @__PURE__ */ s.jsx(Ea, { placeholder: "" }) }),
|
|
3909
3909
|
/* @__PURE__ */ s.jsx(_a, { children: /* @__PURE__ */ s.jsx(Ta, {}) })
|
|
3910
3910
|
] }),
|
|
3911
|
-
/* @__PURE__ */ s.jsx(Ze, { children: /* @__PURE__ */ s.jsx(xa, { children: /* @__PURE__ */ s.jsx(ya, { children:
|
|
3912
|
-
|
|
3911
|
+
/* @__PURE__ */ s.jsx(Ze, { children: /* @__PURE__ */ s.jsx(xa, { children: /* @__PURE__ */ s.jsx(ya, { children: l.items.map((c) => /* @__PURE__ */ s.jsxs(wa, { item: c.value, children: [
|
|
3912
|
+
c.label,
|
|
3913
3913
|
/* @__PURE__ */ s.jsx(J.ItemIndicator, {})
|
|
3914
|
-
] },
|
|
3914
|
+
] }, c.value)) }) }) })
|
|
3915
3915
|
]
|
|
3916
3916
|
}
|
|
3917
3917
|
)
|
|
@@ -3923,20 +3923,20 @@ function Oa({
|
|
|
3923
3923
|
pageSize: t,
|
|
3924
3924
|
page: n,
|
|
3925
3925
|
siblingCount: i,
|
|
3926
|
-
onPageChange: (
|
|
3926
|
+
onPageChange: (c) => r && r(c.page),
|
|
3927
3927
|
children: /* @__PURE__ */ s.jsxs(mo, { size: "sm", variant: "ghost", children: [
|
|
3928
3928
|
/* @__PURE__ */ s.jsx(Sa, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Previous page", children: /* @__PURE__ */ s.jsx(Ls, { size: 18 }) }) }),
|
|
3929
3929
|
/* @__PURE__ */ s.jsx(
|
|
3930
3930
|
Nt.Items,
|
|
3931
3931
|
{
|
|
3932
|
-
render: (
|
|
3932
|
+
render: (c) => /* @__PURE__ */ s.jsx(
|
|
3933
3933
|
_e,
|
|
3934
3934
|
{
|
|
3935
|
-
variant:
|
|
3936
|
-
"aria-current":
|
|
3937
|
-
children:
|
|
3935
|
+
variant: c.type === "page" && c.value === n ? "outline" : "ghost",
|
|
3936
|
+
"aria-current": c.type === "page" && c.value === n ? "page" : void 0,
|
|
3937
|
+
children: c.type === "page" ? c.value : "…"
|
|
3938
3938
|
},
|
|
3939
|
-
|
|
3939
|
+
c.value ?? c.type
|
|
3940
3940
|
)
|
|
3941
3941
|
}
|
|
3942
3942
|
),
|
|
@@ -3952,33 +3952,43 @@ function Aa({
|
|
|
3952
3952
|
actions: t = []
|
|
3953
3953
|
}) {
|
|
3954
3954
|
const { columnOrder: n, visibility: r } = bt(be);
|
|
3955
|
-
return /* @__PURE__ */ s.jsx(
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
children:
|
|
3966
|
-
|
|
3955
|
+
return /* @__PURE__ */ s.jsx(ee.Body, { children: e.map((o) => /* @__PURE__ */ s.jsxs(
|
|
3956
|
+
ee.Row,
|
|
3957
|
+
{
|
|
3958
|
+
_hover: {
|
|
3959
|
+
bg: "blue.50"
|
|
3960
|
+
},
|
|
3961
|
+
children: [
|
|
3962
|
+
n.filter((i) => r[i.id]).map((i) => /* @__PURE__ */ s.jsx(ee.Cell, { children: o[i.id] }, i.id)),
|
|
3963
|
+
/* @__PURE__ */ s.jsx(ee.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ s.jsxs(Oe.Root, { children: [
|
|
3964
|
+
/* @__PURE__ */ s.jsx(ka, { asChild: !0, children: /* @__PURE__ */ s.jsx(_e, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ s.jsx(Ws, { size: 16 }) }) }),
|
|
3965
|
+
/* @__PURE__ */ s.jsx(Ze, { children: /* @__PURE__ */ s.jsx(Ia, { children: /* @__PURE__ */ s.jsx($a, { children: t.map((i) => /* @__PURE__ */ s.jsxs(
|
|
3966
|
+
Ma,
|
|
3967
|
+
{
|
|
3968
|
+
onClick: () => i.onClick(o),
|
|
3969
|
+
colorScheme: i.colorScheme,
|
|
3970
|
+
value: i.label,
|
|
3971
|
+
children: [
|
|
3972
|
+
i.icon,
|
|
3973
|
+
i.label
|
|
3974
|
+
]
|
|
3975
|
+
},
|
|
3967
3976
|
i.label
|
|
3968
|
-
|
|
3969
|
-
},
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3977
|
+
)) }) }) })
|
|
3978
|
+
] }) }),
|
|
3979
|
+
/* @__PURE__ */ s.jsx(ee.Cell, {})
|
|
3980
|
+
]
|
|
3981
|
+
},
|
|
3982
|
+
o.id
|
|
3983
|
+
)) });
|
|
3974
3984
|
}
|
|
3975
3985
|
function La({
|
|
3976
3986
|
rows: e = 6,
|
|
3977
3987
|
columns: t
|
|
3978
3988
|
}) {
|
|
3979
|
-
return /* @__PURE__ */ s.jsx(
|
|
3989
|
+
return /* @__PURE__ */ s.jsx(ee.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ s.jsx(ee.Row, { children: Array.from({ length: t }).map((o, i) => /* @__PURE__ */ s.jsx(ee.Cell, { children: /* @__PURE__ */ s.jsx(bo, { height: "25px" }) }, i)) }, r)) });
|
|
3980
3990
|
}
|
|
3981
|
-
function
|
|
3991
|
+
function vc({
|
|
3982
3992
|
tableId: e,
|
|
3983
3993
|
data: t = [],
|
|
3984
3994
|
headers: n = [],
|
|
@@ -3986,8 +3996,8 @@ function vl({
|
|
|
3986
3996
|
loadingChildren: o,
|
|
3987
3997
|
skeletonLoading: i = !1,
|
|
3988
3998
|
emptyMessage: a = "No data",
|
|
3989
|
-
actions:
|
|
3990
|
-
page:
|
|
3999
|
+
actions: l,
|
|
4000
|
+
page: c = 1,
|
|
3991
4001
|
pageSize: u = 10,
|
|
3992
4002
|
onPageChange: d,
|
|
3993
4003
|
onPageSizeChange: f,
|
|
@@ -4005,7 +4015,7 @@ function vl({
|
|
|
4005
4015
|
v && aa(v);
|
|
4006
4016
|
}, [v]);
|
|
4007
4017
|
const { sortColumn: x, sortDirection: _, data: R, columnOrder: T } = bt(be), O = B(() => {
|
|
4008
|
-
const j = [...R], M = Math.max(1,
|
|
4018
|
+
const j = [...R], M = Math.max(1, c || 1);
|
|
4009
4019
|
if (x && j.sort(
|
|
4010
4020
|
(I, F) => _ === "asc" ? String(I[x]).localeCompare(String(F[x])) : String(F[x]).localeCompare(String(I[x]))
|
|
4011
4021
|
), p === "client") {
|
|
@@ -4013,13 +4023,13 @@ function vl({
|
|
|
4013
4023
|
return j.slice(I, I + u);
|
|
4014
4024
|
}
|
|
4015
4025
|
return j;
|
|
4016
|
-
}, [R, x, _,
|
|
4026
|
+
}, [R, x, _, c, u, p]);
|
|
4017
4027
|
return W(() => {
|
|
4018
|
-
|
|
4019
|
-
}, [
|
|
4020
|
-
/* @__PURE__ */ s.jsx(Ee, { flex: "1", minHeight: 0, overflow: "auto", h: "100%", children: /* @__PURE__ */ s.jsxs(
|
|
4028
|
+
c < 1 && d && d(1);
|
|
4029
|
+
}, [c, d]), /* @__PURE__ */ s.jsxs(Ee, { h: "100%", display: "flex", flexDirection: "column", p: 2, pt: 2, minHeight: 0, children: [
|
|
4030
|
+
/* @__PURE__ */ s.jsx(Ee, { flex: "1", minHeight: 0, overflow: "auto", h: "100%", children: /* @__PURE__ */ s.jsxs(ee.Root, { variant: "outline", w: "100%", size: b, children: [
|
|
4021
4031
|
/* @__PURE__ */ s.jsx(ma, {}),
|
|
4022
|
-
r ? /* @__PURE__ */ s.jsx(
|
|
4032
|
+
r ? /* @__PURE__ */ s.jsx(ee.Body, { children: /* @__PURE__ */ s.jsx(ee.Row, { children: /* @__PURE__ */ s.jsx(ee.Cell, { colSpan: T.length + (l ? 1 : 0), children: /* @__PURE__ */ s.jsx(
|
|
4023
4033
|
Ee,
|
|
4024
4034
|
{
|
|
4025
4035
|
display: "flex",
|
|
@@ -4029,7 +4039,7 @@ function vl({
|
|
|
4029
4039
|
w: "100%",
|
|
4030
4040
|
children: o ?? "Loading..."
|
|
4031
4041
|
}
|
|
4032
|
-
) }) }) }) : i ? /* @__PURE__ */ s.jsx(La, { rows: u, columns: n.length + (
|
|
4042
|
+
) }) }) }) : i ? /* @__PURE__ */ s.jsx(La, { rows: u, columns: n.length + (l ? 2 : 0) }) : O.length === 0 ? /* @__PURE__ */ s.jsx(ee.Body, { children: /* @__PURE__ */ s.jsx(ee.Row, { children: /* @__PURE__ */ s.jsx(ee.Cell, { colSpan: n.length + (l ? 1 : 0), children: /* @__PURE__ */ s.jsx(
|
|
4033
4043
|
Ee,
|
|
4034
4044
|
{
|
|
4035
4045
|
display: "flex",
|
|
@@ -4039,17 +4049,17 @@ function vl({
|
|
|
4039
4049
|
color: "gray.500",
|
|
4040
4050
|
children: a
|
|
4041
4051
|
}
|
|
4042
|
-
) }) }) }) : /* @__PURE__ */ s.jsx(Aa, { data: O, actions:
|
|
4052
|
+
) }) }) }) : /* @__PURE__ */ s.jsx(Aa, { data: O, actions: l })
|
|
4043
4053
|
] }) }),
|
|
4044
4054
|
/* @__PURE__ */ s.jsx(Ee, { mt: 0.5, children: /* @__PURE__ */ s.jsx(
|
|
4045
4055
|
Oa,
|
|
4046
4056
|
{
|
|
4047
4057
|
totalCount: g,
|
|
4048
4058
|
pageSize: u,
|
|
4049
|
-
currentPage:
|
|
4059
|
+
currentPage: c,
|
|
4050
4060
|
onPageChange: d,
|
|
4051
4061
|
onPageSizeChange: (j) => {
|
|
4052
|
-
f && f(j),
|
|
4062
|
+
f && f(j), c > 1 && d && d(1);
|
|
4053
4063
|
},
|
|
4054
4064
|
pageSizeOptions: m
|
|
4055
4065
|
}
|
|
@@ -4064,7 +4074,7 @@ const Na = y(Ce.Root), za = y(Ce.HiddenInput), Pa = y(Ce.Control), Ya = y(Ce.Lab
|
|
|
4064
4074
|
helperText: o,
|
|
4065
4075
|
isDisabled: i,
|
|
4066
4076
|
required: a,
|
|
4067
|
-
errorText:
|
|
4077
|
+
errorText: l
|
|
4068
4078
|
}) => /* @__PURE__ */ s.jsxs(Na, { value: e, onChange: t, size: n, children: [
|
|
4069
4079
|
/* @__PURE__ */ s.jsx(za, {}),
|
|
4070
4080
|
/* @__PURE__ */ s.jsx(
|
|
@@ -4072,12 +4082,12 @@ const Na = y(Ce.Root), za = y(Ce.HiddenInput), Pa = y(Ce.Control), Ya = y(Ce.Lab
|
|
|
4072
4082
|
{
|
|
4073
4083
|
disabled: i,
|
|
4074
4084
|
required: a,
|
|
4075
|
-
errorText:
|
|
4085
|
+
errorText: l,
|
|
4076
4086
|
helperText: o
|
|
4077
4087
|
}
|
|
4078
4088
|
),
|
|
4079
4089
|
r && /* @__PURE__ */ s.jsx(Ya, { children: r })
|
|
4080
|
-
] }),
|
|
4090
|
+
] }), te = " to ", pr = 10, Ve = {
|
|
4081
4091
|
DAY_MAX: 31,
|
|
4082
4092
|
MONTH_MAX: 12,
|
|
4083
4093
|
YEAR_MIN: 1900,
|
|
@@ -4105,13 +4115,13 @@ const Na = y(Ce.Root), za = y(Ce.HiddenInput), Pa = y(Ce.Control), Ya = y(Ce.Lab
|
|
|
4105
4115
|
return parseInt(a + e);
|
|
4106
4116
|
}
|
|
4107
4117
|
return t;
|
|
4108
|
-
},
|
|
4118
|
+
}, lt = (e) => {
|
|
4109
4119
|
if (!e?.trim()) return null;
|
|
4110
4120
|
const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
|
|
4111
4121
|
if (n.length === 0) return null;
|
|
4112
4122
|
const { year: r, month: o, day: i } = $n();
|
|
4113
|
-
let a,
|
|
4114
|
-
return n.length === 1 ? (a = parseInt(n[0]) || i,
|
|
4123
|
+
let a, l, c;
|
|
4124
|
+
return n.length === 1 ? (a = parseInt(n[0]) || i, l = o, c = r) : n.length === 2 ? (a = parseInt(n[0]) || i, l = parseInt(n[1]) || o, c = r) : (a = parseInt(n[0]) || i, l = parseInt(n[1]) || o, c = Ha(n[2], r)), l = Math.max(1, Math.min(Ve.MONTH_MAX, l)), a = Math.max(1, Math.min(Ve.DAY_MAX, a)), `${c}-${String(l).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
|
|
4115
4125
|
}, Se = (e) => {
|
|
4116
4126
|
if (!e) return "";
|
|
4117
4127
|
const [t, n, r] = e.split("-");
|
|
@@ -4133,7 +4143,7 @@ const Na = y(Ce.Root), za = y(Ce.HiddenInput), Pa = y(Ce.Control), Ya = y(Ce.Lab
|
|
|
4133
4143
|
return t;
|
|
4134
4144
|
}
|
|
4135
4145
|
return null;
|
|
4136
|
-
},
|
|
4146
|
+
}, ct = (e) => {
|
|
4137
4147
|
let t = e.replace(/[^\d-]/g, "").substring(0, pr);
|
|
4138
4148
|
if (t.length >= 3 && t[2] !== "-" && (t = t.substring(0, 2) + "-" + t.substring(2).replace(/-/g, "")), t.length >= 6 && t[5] !== "-") {
|
|
4139
4149
|
const o = t.split("-");
|
|
@@ -4147,7 +4157,7 @@ function qa({
|
|
|
4147
4157
|
onChange: t,
|
|
4148
4158
|
disabled: n = !1
|
|
4149
4159
|
}) {
|
|
4150
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [i, a] = ie(() => r && o ? `${Se(r)}${
|
|
4160
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [i, a] = ie(() => r && o ? `${Se(r)}${te}${Se(o)}` : r ? Se(r) : ""), [l, c] = ie(!1), u = U(null);
|
|
4151
4161
|
W(() => {
|
|
4152
4162
|
const p = (v) => {
|
|
4153
4163
|
v.ctrlKey && v.key === "d" && !v.shiftKey && !v.metaKey && (v.preventDefault(), u.current?.focus());
|
|
@@ -4156,16 +4166,16 @@ function qa({
|
|
|
4156
4166
|
}, []);
|
|
4157
4167
|
const d = (p) => {
|
|
4158
4168
|
let v = p;
|
|
4159
|
-
if (v.includes(
|
|
4160
|
-
const [m, x = ""] = v.split(
|
|
4161
|
-
v = `${
|
|
4169
|
+
if (v.includes(te)) {
|
|
4170
|
+
const [m, x = ""] = v.split(te);
|
|
4171
|
+
v = `${ct(m.trim())}${te}${ct(
|
|
4162
4172
|
x.trim()
|
|
4163
4173
|
)}`;
|
|
4164
4174
|
} else if (v.toLowerCase().includes(" to ")) {
|
|
4165
4175
|
const [m, x = ""] = v.split(/\s+to\s+/i);
|
|
4166
|
-
v = `${
|
|
4176
|
+
v = `${ct(m.trim())} to ${ct(x.trim())}`;
|
|
4167
4177
|
} else
|
|
4168
|
-
v =
|
|
4178
|
+
v = ct(v);
|
|
4169
4179
|
a(v);
|
|
4170
4180
|
}, f = () => {
|
|
4171
4181
|
const p = i.trim();
|
|
@@ -4173,48 +4183,48 @@ function qa({
|
|
|
4173
4183
|
t(void 0);
|
|
4174
4184
|
return;
|
|
4175
4185
|
}
|
|
4176
|
-
if (p.includes(
|
|
4177
|
-
const [v, m = ""] = p.split(
|
|
4186
|
+
if (p.includes(te)) {
|
|
4187
|
+
const [v, m = ""] = p.split(te).map((R) => R.trim()), x = lt(v), _ = m ? lt(m) : null;
|
|
4178
4188
|
if (x && _) {
|
|
4179
|
-
const [R, T] = _ < x ? [_, x] : [x, _], O = `${Se(R)}${
|
|
4189
|
+
const [R, T] = _ < x ? [_, x] : [x, _], O = `${Se(R)}${te}${Se(
|
|
4180
4190
|
T
|
|
4181
4191
|
)}`;
|
|
4182
4192
|
a(O), t(`${R}|${T}`);
|
|
4183
4193
|
} else if (x && !m)
|
|
4184
|
-
a(`${Se(x)}${
|
|
4194
|
+
a(`${Se(x)}${te}`), t(void 0);
|
|
4185
4195
|
else if (x && m) {
|
|
4186
|
-
const R = Va(), [T, O] = R < x ? [R, x] : [x, R], j = `${Se(T)}${
|
|
4196
|
+
const R = Va(), [T, O] = R < x ? [R, x] : [x, R], j = `${Se(T)}${te}${Se(
|
|
4187
4197
|
O
|
|
4188
4198
|
)}`;
|
|
4189
4199
|
a(j), t(`${T}|${O}`);
|
|
4190
4200
|
} else
|
|
4191
4201
|
a(""), t(void 0);
|
|
4192
4202
|
} else {
|
|
4193
|
-
const v =
|
|
4194
|
-
v ? (a(`${Se(v)}${
|
|
4203
|
+
const v = lt(p);
|
|
4204
|
+
v ? (a(`${Se(v)}${te}`), t(void 0)) : (a(""), t(void 0));
|
|
4195
4205
|
}
|
|
4196
4206
|
}, b = (p) => {
|
|
4197
4207
|
if (p.key !== "Enter") return;
|
|
4198
4208
|
p.preventDefault();
|
|
4199
|
-
const v = u.current?.selectionStart || 0, m = i.indexOf(
|
|
4209
|
+
const v = u.current?.selectionStart || 0, m = i.indexOf(te);
|
|
4200
4210
|
if (!i.trim()) {
|
|
4201
|
-
a(`${vr()}${
|
|
4211
|
+
a(`${vr()}${te}`);
|
|
4202
4212
|
return;
|
|
4203
4213
|
}
|
|
4204
4214
|
if (m === -1) {
|
|
4205
|
-
const _ =
|
|
4206
|
-
_ && a(`${Se(_)}${
|
|
4215
|
+
const _ = lt(i.trim());
|
|
4216
|
+
_ && a(`${Se(_)}${te}`);
|
|
4207
4217
|
return;
|
|
4208
4218
|
}
|
|
4209
|
-
if (v <= m +
|
|
4210
|
-
const _ = i.substring(0, m).trim(), R = i.substring(m +
|
|
4211
|
-
T && a(`${Se(T)}${
|
|
4219
|
+
if (v <= m + te.length) {
|
|
4220
|
+
const _ = i.substring(0, m).trim(), R = i.substring(m + te.length), T = lt(_);
|
|
4221
|
+
T && a(`${Se(T)}${te}${R}`);
|
|
4212
4222
|
return;
|
|
4213
4223
|
}
|
|
4214
|
-
if (i.substring(m +
|
|
4224
|
+
if (i.substring(m + te.length).trim())
|
|
4215
4225
|
f(), u.current?.blur();
|
|
4216
4226
|
else {
|
|
4217
|
-
const _ = i.substring(0, m +
|
|
4227
|
+
const _ = i.substring(0, m + te.length) + vr();
|
|
4218
4228
|
a(_), setTimeout(() => {
|
|
4219
4229
|
f(), u.current?.blur();
|
|
4220
4230
|
}, 0);
|
|
@@ -4226,9 +4236,9 @@ function qa({
|
|
|
4226
4236
|
/* @__PURE__ */ s.jsxs(
|
|
4227
4237
|
Ba,
|
|
4228
4238
|
{
|
|
4229
|
-
open:
|
|
4239
|
+
open: l,
|
|
4230
4240
|
onEscapeKeyDown: () => {
|
|
4231
|
-
|
|
4241
|
+
c(!1);
|
|
4232
4242
|
},
|
|
4233
4243
|
children: [
|
|
4234
4244
|
/* @__PURE__ */ s.jsx(Ua, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
@@ -4237,7 +4247,7 @@ function qa({
|
|
|
4237
4247
|
size: "sm",
|
|
4238
4248
|
variant: "ghost",
|
|
4239
4249
|
"aria-label": "Date range help",
|
|
4240
|
-
onClick: () =>
|
|
4250
|
+
onClick: () => c((p) => !p),
|
|
4241
4251
|
children: /* @__PURE__ */ s.jsx(gr, { size: 16 })
|
|
4242
4252
|
}
|
|
4243
4253
|
) }),
|
|
@@ -4252,7 +4262,7 @@ function qa({
|
|
|
4252
4262
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
|
|
4253
4263
|
/* @__PURE__ */ s.jsxs(q, { fontSize: "xs", color: "gray.600", children: [
|
|
4254
4264
|
"DD-MM-YYYY",
|
|
4255
|
-
|
|
4265
|
+
te,
|
|
4256
4266
|
"DD-MM-YYYY"
|
|
4257
4267
|
] })
|
|
4258
4268
|
] }),
|
|
@@ -4311,14 +4321,14 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4311
4321
|
size: o = "xs",
|
|
4312
4322
|
variant: i = "outline",
|
|
4313
4323
|
width: a = "100%",
|
|
4314
|
-
label:
|
|
4315
|
-
helperText:
|
|
4324
|
+
label: l,
|
|
4325
|
+
helperText: c,
|
|
4316
4326
|
isDisabled: u = !1,
|
|
4317
4327
|
required: d = !1,
|
|
4318
4328
|
errorText: f,
|
|
4319
4329
|
visible: b
|
|
4320
4330
|
}) => /* @__PURE__ */ s.jsxs(Ja, { width: a, children: [
|
|
4321
|
-
b && /* @__PURE__ */ s.jsx(Ka, { children:
|
|
4331
|
+
b && /* @__PURE__ */ s.jsx(Ka, { children: l }),
|
|
4322
4332
|
/* @__PURE__ */ s.jsx(Cr, { startElement: e, children: /* @__PURE__ */ s.jsx(
|
|
4323
4333
|
Dn,
|
|
4324
4334
|
{
|
|
@@ -4332,8 +4342,8 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4332
4342
|
}
|
|
4333
4343
|
) }),
|
|
4334
4344
|
f && /* @__PURE__ */ s.jsx(Qa, { fontSize: "xs", children: f }),
|
|
4335
|
-
|
|
4336
|
-
] }),
|
|
4345
|
+
c && /* @__PURE__ */ s.jsx(Za, { fontSize: "xs", children: c })
|
|
4346
|
+
] }), el = y(We.Root), tl = y(We.HelperText), nl = y(We.ErrorText), rl = y(J.Root), ol = y(J.Label), il = y(J.Control), sl = y(J.Trigger), al = y(J.ValueText), ll = y(J.IndicatorGroup), cl = y(J.Indicator), ul = y(J.Content), dl = y(J.Item), fl = y(J.ItemIndicator), hl = y(J.HiddenSelect), gl = y(J.Positioner), pl = ({
|
|
4337
4347
|
options: e = [],
|
|
4338
4348
|
label: t,
|
|
4339
4349
|
value: n,
|
|
@@ -4341,8 +4351,8 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4341
4351
|
placeholder: o,
|
|
4342
4352
|
size: i = "xs",
|
|
4343
4353
|
width: a = "100%",
|
|
4344
|
-
variant:
|
|
4345
|
-
helperText:
|
|
4354
|
+
variant: l = "outline",
|
|
4355
|
+
helperText: c,
|
|
4346
4356
|
isDisabled: u,
|
|
4347
4357
|
required: d,
|
|
4348
4358
|
errorText: f,
|
|
@@ -4351,45 +4361,45 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4351
4361
|
const g = Dr({
|
|
4352
4362
|
items: e
|
|
4353
4363
|
});
|
|
4354
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4364
|
+
return /* @__PURE__ */ s.jsxs(el, { disabled: u, required: d, children: [
|
|
4355
4365
|
/* @__PURE__ */ s.jsxs(
|
|
4356
|
-
|
|
4366
|
+
rl,
|
|
4357
4367
|
{
|
|
4358
4368
|
collection: g,
|
|
4359
|
-
variant:
|
|
4369
|
+
variant: l,
|
|
4360
4370
|
size: i,
|
|
4361
4371
|
width: a,
|
|
4362
4372
|
value: n ? [n] : [],
|
|
4363
4373
|
onValueChange: (p) => r?.(p.value[0]),
|
|
4364
4374
|
children: [
|
|
4365
|
-
/* @__PURE__ */ s.jsx(
|
|
4366
|
-
b && /* @__PURE__ */ s.jsx(
|
|
4367
|
-
/* @__PURE__ */ s.jsxs(
|
|
4368
|
-
/* @__PURE__ */ s.jsx(
|
|
4369
|
-
/* @__PURE__ */ s.jsx(
|
|
4375
|
+
/* @__PURE__ */ s.jsx(hl, {}),
|
|
4376
|
+
b && /* @__PURE__ */ s.jsx(ol, { children: t }),
|
|
4377
|
+
/* @__PURE__ */ s.jsxs(il, { children: [
|
|
4378
|
+
/* @__PURE__ */ s.jsx(sl, { children: /* @__PURE__ */ s.jsx(al, { placeholder: o }) }),
|
|
4379
|
+
/* @__PURE__ */ s.jsx(ll, { children: /* @__PURE__ */ s.jsx(cl, {}) })
|
|
4370
4380
|
] }),
|
|
4371
|
-
/* @__PURE__ */ s.jsx(
|
|
4381
|
+
/* @__PURE__ */ s.jsx(gl, { children: /* @__PURE__ */ s.jsx(ul, { children: g.items.map((p) => /* @__PURE__ */ s.jsxs(dl, { item: p, children: [
|
|
4372
4382
|
p.label,
|
|
4373
|
-
/* @__PURE__ */ s.jsx(
|
|
4383
|
+
/* @__PURE__ */ s.jsx(fl, {})
|
|
4374
4384
|
] }, p.value)) }) })
|
|
4375
4385
|
]
|
|
4376
4386
|
}
|
|
4377
4387
|
),
|
|
4378
|
-
|
|
4379
|
-
f && /* @__PURE__ */ s.jsx(
|
|
4388
|
+
c && /* @__PURE__ */ s.jsx(tl, { children: c }),
|
|
4389
|
+
f && /* @__PURE__ */ s.jsx(nl, { children: f })
|
|
4380
4390
|
] });
|
|
4381
|
-
}, ro = (e = "default") => `FILTER_PRESETS_${e}`,
|
|
4391
|
+
}, ro = (e = "default") => `FILTER_PRESETS_${e}`, vl = (e) => {
|
|
4382
4392
|
if (!e) return [];
|
|
4383
4393
|
try {
|
|
4384
4394
|
return JSON.parse(e);
|
|
4385
4395
|
} catch {
|
|
4386
4396
|
return [];
|
|
4387
4397
|
}
|
|
4388
|
-
},
|
|
4398
|
+
}, ml = (e) => typeof window > "u" ? [] : vl(localStorage.getItem(ro(e))), Ht = new _r({}), Kt = (e) => {
|
|
4389
4399
|
const t = Ht.state;
|
|
4390
4400
|
if (e in t)
|
|
4391
4401
|
return t[e];
|
|
4392
|
-
const n =
|
|
4402
|
+
const n = ml(e);
|
|
4393
4403
|
return Ht.setState((r) => ({
|
|
4394
4404
|
...r,
|
|
4395
4405
|
[e]: n
|
|
@@ -4399,29 +4409,29 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4399
4409
|
...n,
|
|
4400
4410
|
[e]: t
|
|
4401
4411
|
})), typeof window < "u" && localStorage.setItem(ro(e), JSON.stringify(t));
|
|
4402
|
-
},
|
|
4412
|
+
}, bl = (e, t) => {
|
|
4403
4413
|
const n = [t, ...Kt(e)];
|
|
4404
4414
|
In(e, n);
|
|
4405
|
-
},
|
|
4415
|
+
}, xl = (e, t) => {
|
|
4406
4416
|
const n = Kt(e).filter((r) => r.id !== t);
|
|
4407
4417
|
In(e, n);
|
|
4408
|
-
},
|
|
4418
|
+
}, mc = (e, t, n) => {
|
|
4409
4419
|
const r = Kt(e).map(
|
|
4410
4420
|
(o) => o.id === t ? n(o) : o
|
|
4411
4421
|
);
|
|
4412
4422
|
In(e, r);
|
|
4413
|
-
},
|
|
4414
|
-
const { attributes: r, listeners: o, setNodeRef: i, transform: a, transition:
|
|
4423
|
+
}, yl = y(Ce.Root), wl = y(Ce.HiddenInput), Sl = y(Ce.Control), Dl = y(mt.Root), Cl = y(mt.Track), jl = y(mt.Range), Rl = y(mt.Thumbs), El = y(mt.Control), _l = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4424
|
+
const { attributes: r, listeners: o, setNodeRef: i, transform: a, transition: l } = Zr({
|
|
4415
4425
|
id: e.id
|
|
4416
|
-
}),
|
|
4426
|
+
}), c = {
|
|
4417
4427
|
transform: Ke.Transform.toString(a),
|
|
4418
|
-
transition:
|
|
4428
|
+
transition: l
|
|
4419
4429
|
};
|
|
4420
4430
|
return /* @__PURE__ */ s.jsxs(
|
|
4421
4431
|
ke,
|
|
4422
4432
|
{
|
|
4423
4433
|
ref: i,
|
|
4424
|
-
style:
|
|
4434
|
+
style: c,
|
|
4425
4435
|
align: "stretch",
|
|
4426
4436
|
border: "1px solid",
|
|
4427
4437
|
borderColor: "gray.200",
|
|
@@ -4437,14 +4447,14 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4437
4447
|
/* @__PURE__ */ s.jsxs(he, { justify: "space-between", children: [
|
|
4438
4448
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Visible" }),
|
|
4439
4449
|
/* @__PURE__ */ s.jsxs(
|
|
4440
|
-
|
|
4450
|
+
yl,
|
|
4441
4451
|
{
|
|
4442
4452
|
checked: e.visible,
|
|
4443
4453
|
size: "sm",
|
|
4444
4454
|
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4445
4455
|
children: [
|
|
4446
|
-
/* @__PURE__ */ s.jsx(
|
|
4447
|
-
/* @__PURE__ */ s.jsx(
|
|
4456
|
+
/* @__PURE__ */ s.jsx(wl, {}),
|
|
4457
|
+
/* @__PURE__ */ s.jsx(Sl, {})
|
|
4448
4458
|
]
|
|
4449
4459
|
}
|
|
4450
4460
|
)
|
|
@@ -4452,16 +4462,16 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4452
4462
|
/* @__PURE__ */ s.jsxs(ke, { align: "stretch", gap: 1, children: [
|
|
4453
4463
|
/* @__PURE__ */ s.jsx(q, { fontSize: "sm", children: "Size" }),
|
|
4454
4464
|
/* @__PURE__ */ s.jsx(
|
|
4455
|
-
|
|
4465
|
+
Dl,
|
|
4456
4466
|
{
|
|
4457
4467
|
min: 1,
|
|
4458
4468
|
max: 5,
|
|
4459
4469
|
step: 0.5,
|
|
4460
4470
|
value: [e.size ?? 1],
|
|
4461
4471
|
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4462
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
4463
|
-
/* @__PURE__ */ s.jsx(
|
|
4464
|
-
/* @__PURE__ */ s.jsx(
|
|
4472
|
+
children: /* @__PURE__ */ s.jsxs(El, { children: [
|
|
4473
|
+
/* @__PURE__ */ s.jsx(Cl, { children: /* @__PURE__ */ s.jsx(jl, {}) }),
|
|
4474
|
+
/* @__PURE__ */ s.jsx(Rl, {})
|
|
4465
4475
|
] })
|
|
4466
4476
|
}
|
|
4467
4477
|
)
|
|
@@ -4469,7 +4479,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4469
4479
|
]
|
|
4470
4480
|
}
|
|
4471
4481
|
);
|
|
4472
|
-
},
|
|
4482
|
+
}, Tl = y(Me.Root), Ol = y(Me.Trigger), Ml = y(Me.Backdrop), $l = y(Me.Positioner), Il = y(Me.Content), kl = y(Me.Header), Al = y(Me.Title), Ll = y(Me.Body), Nl = y(Me.Footer), zl = y(Me.CloseTrigger), Pl = y(Bt.Root), Yl = y(Bt.List), fn = y(Bt.Trigger), hn = y(Bt.Content), oo = (e, t) => {
|
|
4473
4483
|
if (e.customComponent)
|
|
4474
4484
|
return e.customComponent;
|
|
4475
4485
|
switch (e.type) {
|
|
@@ -4497,7 +4507,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4497
4507
|
);
|
|
4498
4508
|
case "select":
|
|
4499
4509
|
return /* @__PURE__ */ s.jsx(
|
|
4500
|
-
|
|
4510
|
+
pl,
|
|
4501
4511
|
{
|
|
4502
4512
|
label: e.label,
|
|
4503
4513
|
value: e.value,
|
|
@@ -4517,7 +4527,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4517
4527
|
default:
|
|
4518
4528
|
return null;
|
|
4519
4529
|
}
|
|
4520
|
-
},
|
|
4530
|
+
}, Fl = ({
|
|
4521
4531
|
filterDrawerSize: e = "sm",
|
|
4522
4532
|
onVisibilityChange: t,
|
|
4523
4533
|
onSizeChange: n,
|
|
@@ -4525,8 +4535,8 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4525
4535
|
filters: o,
|
|
4526
4536
|
pageKey: i = "default",
|
|
4527
4537
|
onLoadPreset: a,
|
|
4528
|
-
activePresetName:
|
|
4529
|
-
onReorder:
|
|
4538
|
+
activePresetName: l,
|
|
4539
|
+
onReorder: c,
|
|
4530
4540
|
open: u,
|
|
4531
4541
|
onOpenChange: d
|
|
4532
4542
|
}) => {
|
|
@@ -4534,24 +4544,24 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4534
4544
|
const p = prompt("Preset name?");
|
|
4535
4545
|
if (!p) return;
|
|
4536
4546
|
const v = o.reduce((m, x) => (m[x.id] = x.value, m), {});
|
|
4537
|
-
|
|
4547
|
+
bl(i, {
|
|
4538
4548
|
id: crypto.randomUUID(),
|
|
4539
4549
|
name: p,
|
|
4540
4550
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4541
4551
|
values: v
|
|
4542
4552
|
});
|
|
4543
4553
|
};
|
|
4544
|
-
return /* @__PURE__ */ s.jsx(he, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(
|
|
4545
|
-
/* @__PURE__ */ s.jsx(
|
|
4554
|
+
return /* @__PURE__ */ s.jsx(he, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(Tl, { size: e, open: u, onOpenChange: d, children: [
|
|
4555
|
+
/* @__PURE__ */ s.jsx(Ol, { asChild: !0, children: /* @__PURE__ */ s.jsxs(_e, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4546
4556
|
/* @__PURE__ */ s.jsx(Us, { size: 16 }),
|
|
4547
4557
|
"Filters"
|
|
4548
4558
|
] }) }),
|
|
4549
4559
|
/* @__PURE__ */ s.jsxs(Ze, { children: [
|
|
4550
|
-
/* @__PURE__ */ s.jsx(
|
|
4551
|
-
/* @__PURE__ */ s.jsx($
|
|
4552
|
-
/* @__PURE__ */ s.jsx(
|
|
4553
|
-
/* @__PURE__ */ s.jsx(
|
|
4554
|
-
/* @__PURE__ */ s.jsxs(
|
|
4560
|
+
/* @__PURE__ */ s.jsx(Ml, {}),
|
|
4561
|
+
/* @__PURE__ */ s.jsx($l, { children: /* @__PURE__ */ s.jsxs(Il, { children: [
|
|
4562
|
+
/* @__PURE__ */ s.jsx(kl, { children: /* @__PURE__ */ s.jsx(Al, { children: "Filters" }) }),
|
|
4563
|
+
/* @__PURE__ */ s.jsx(Ll, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ s.jsxs(Pl, { defaultValue: "view", children: [
|
|
4564
|
+
/* @__PURE__ */ s.jsxs(Yl, { mb: 4, children: [
|
|
4555
4565
|
/* @__PURE__ */ s.jsxs(fn, { value: "view", children: [
|
|
4556
4566
|
/* @__PURE__ */ s.jsx(qs, { size: 16 }),
|
|
4557
4567
|
"Edit"
|
|
@@ -4588,7 +4598,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4588
4598
|
onDragEnd: ({ active: p, over: v }) => {
|
|
4589
4599
|
if (!v || p.id === v.id) return;
|
|
4590
4600
|
const m = o.findIndex((R) => R.id === p.id), x = o.findIndex((R) => R.id === v.id), _ = Jt(o, m, x);
|
|
4591
|
-
|
|
4601
|
+
c?.(_);
|
|
4592
4602
|
},
|
|
4593
4603
|
children: /* @__PURE__ */ s.jsx(
|
|
4594
4604
|
Jr,
|
|
@@ -4596,7 +4606,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4596
4606
|
items: o.map((p) => p.id),
|
|
4597
4607
|
strategy: fs,
|
|
4598
4608
|
children: o.map((p) => /* @__PURE__ */ s.jsx(
|
|
4599
|
-
|
|
4609
|
+
_l,
|
|
4600
4610
|
{
|
|
4601
4611
|
filter: p,
|
|
4602
4612
|
onVisibilityChange: t,
|
|
@@ -4615,7 +4625,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4615
4625
|
{
|
|
4616
4626
|
justify: "space-between",
|
|
4617
4627
|
border: "1px solid",
|
|
4618
|
-
borderColor:
|
|
4628
|
+
borderColor: l === p.name ? "blue.300" : "gray.200",
|
|
4619
4629
|
rounded: "md",
|
|
4620
4630
|
p: 2,
|
|
4621
4631
|
children: [
|
|
@@ -4645,7 +4655,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4645
4655
|
size: "xs",
|
|
4646
4656
|
"aria-label": "Delete preset",
|
|
4647
4657
|
variant: "ghost",
|
|
4648
|
-
onClick: () =>
|
|
4658
|
+
onClick: () => xl(i, p.id),
|
|
4649
4659
|
children: /* @__PURE__ */ s.jsx(Vs, { size: 14 })
|
|
4650
4660
|
}
|
|
4651
4661
|
)
|
|
@@ -4657,11 +4667,11 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4657
4667
|
/* @__PURE__ */ s.jsx(ht, { size: "sm", colorScheme: "blue", onClick: g, children: "Save Current Filters" })
|
|
4658
4668
|
] }) })
|
|
4659
4669
|
] }) }),
|
|
4660
|
-
/* @__PURE__ */ s.jsx(
|
|
4670
|
+
/* @__PURE__ */ s.jsx(Nl, { justify: "space-between", children: /* @__PURE__ */ s.jsx(zl, { asChild: !0, children: /* @__PURE__ */ s.jsx(jr, {}) }) })
|
|
4661
4671
|
] }) })
|
|
4662
4672
|
] })
|
|
4663
4673
|
] }) });
|
|
4664
|
-
},
|
|
4674
|
+
}, bc = ({
|
|
4665
4675
|
title: e,
|
|
4666
4676
|
filters: t,
|
|
4667
4677
|
onVisibilityChange: n,
|
|
@@ -4669,8 +4679,8 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4669
4679
|
onSizeChange: o,
|
|
4670
4680
|
onClear: i,
|
|
4671
4681
|
maxToolbarUnits: a,
|
|
4672
|
-
pageKey:
|
|
4673
|
-
onLoadPreset:
|
|
4682
|
+
pageKey: l,
|
|
4683
|
+
onLoadPreset: c,
|
|
4674
4684
|
activePresetName: u,
|
|
4675
4685
|
filterDrawerSize: d = "sm"
|
|
4676
4686
|
}) => {
|
|
@@ -4689,7 +4699,7 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4689
4699
|
g.id
|
|
4690
4700
|
)),
|
|
4691
4701
|
/* @__PURE__ */ s.jsx(
|
|
4692
|
-
|
|
4702
|
+
Fl,
|
|
4693
4703
|
{
|
|
4694
4704
|
filterDrawerSize: d,
|
|
4695
4705
|
onVisibilityChange: n,
|
|
@@ -4697,9 +4707,9 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4697
4707
|
onSizeChange: o,
|
|
4698
4708
|
onClear: i,
|
|
4699
4709
|
maxToolbarUnits: a,
|
|
4700
|
-
pageKey:
|
|
4710
|
+
pageKey: l,
|
|
4701
4711
|
filters: t,
|
|
4702
|
-
onLoadPreset:
|
|
4712
|
+
onLoadPreset: c,
|
|
4703
4713
|
activePresetName: u,
|
|
4704
4714
|
open: f,
|
|
4705
4715
|
onOpenChange: (g) => {
|
|
@@ -4709,15 +4719,15 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4709
4719
|
)
|
|
4710
4720
|
] })
|
|
4711
4721
|
] });
|
|
4712
|
-
},
|
|
4722
|
+
}, xc = (e, t) => {
|
|
4713
4723
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4714
|
-
},
|
|
4724
|
+
}, yc = (e) => {
|
|
4715
4725
|
try {
|
|
4716
4726
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4717
4727
|
} catch {
|
|
4718
4728
|
return [];
|
|
4719
4729
|
}
|
|
4720
|
-
},
|
|
4730
|
+
}, wc = ({
|
|
4721
4731
|
onClick: e,
|
|
4722
4732
|
size: t = "xs",
|
|
4723
4733
|
variant: n = "solid",
|
|
@@ -4725,8 +4735,8 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4725
4735
|
leftIcon: o,
|
|
4726
4736
|
rightIcon: i,
|
|
4727
4737
|
isDisabled: a,
|
|
4728
|
-
colorScheme:
|
|
4729
|
-
loading:
|
|
4738
|
+
colorScheme: l,
|
|
4739
|
+
loading: c,
|
|
4730
4740
|
loadingText: u,
|
|
4731
4741
|
rounded: d,
|
|
4732
4742
|
type: f = "button"
|
|
@@ -4737,8 +4747,8 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4737
4747
|
size: t,
|
|
4738
4748
|
variant: n,
|
|
4739
4749
|
disabled: a,
|
|
4740
|
-
colorPalette:
|
|
4741
|
-
loading:
|
|
4750
|
+
colorPalette: l,
|
|
4751
|
+
loading: c,
|
|
4742
4752
|
loadingText: u,
|
|
4743
4753
|
rounded: d,
|
|
4744
4754
|
type: f,
|
|
@@ -4748,8 +4758,8 @@ const Ja = y(We.Root), Ka = y(We.Label), Za = y(We.HelperText), Qa = y(We.ErrorT
|
|
|
4748
4758
|
i
|
|
4749
4759
|
] })
|
|
4750
4760
|
}
|
|
4751
|
-
),
|
|
4752
|
-
function
|
|
4761
|
+
), Vl = y(Ae.Root), Hl = y(Ae.Backdrop), Wl = y(Ae.Positioner), Bl = y(Ae.Content), Ul = y(Ae.Header), Gl = y(Ae.Body), Xl = y(Ae.Footer), ql = y(Ae.Title), Jl = y(Ae.CloseTrigger);
|
|
4762
|
+
function Sc({
|
|
4753
4763
|
open: e,
|
|
4754
4764
|
onClose: t,
|
|
4755
4765
|
onConfirm: n,
|
|
@@ -4757,14 +4767,14 @@ function Sl({
|
|
|
4757
4767
|
entityName: o,
|
|
4758
4768
|
confirmText: i = "DELETE",
|
|
4759
4769
|
confirmLabel: a = "Delete",
|
|
4760
|
-
isLoading:
|
|
4770
|
+
isLoading: l = !1
|
|
4761
4771
|
}) {
|
|
4762
|
-
const [
|
|
4763
|
-
return /* @__PURE__ */ s.jsx(
|
|
4764
|
-
/* @__PURE__ */ s.jsx(
|
|
4765
|
-
/* @__PURE__ */ s.jsx(
|
|
4766
|
-
/* @__PURE__ */ s.jsx(
|
|
4767
|
-
/* @__PURE__ */ s.jsx(
|
|
4772
|
+
const [c, u] = ie("");
|
|
4773
|
+
return /* @__PURE__ */ s.jsx(Vl, { open: e, placement: "center", onOpenChange: (d) => !d.open && t(), children: /* @__PURE__ */ s.jsxs(Ze, { children: [
|
|
4774
|
+
/* @__PURE__ */ s.jsx(Hl, {}),
|
|
4775
|
+
/* @__PURE__ */ s.jsx(Wl, { children: /* @__PURE__ */ s.jsxs(Bl, { maxW: "520px", children: [
|
|
4776
|
+
/* @__PURE__ */ s.jsx(Ul, { borderBottom: "1px solid", borderColor: "red.200", boxShadow: "sm", children: /* @__PURE__ */ s.jsx(ql, { color: "red.600", children: r }) }),
|
|
4777
|
+
/* @__PURE__ */ s.jsx(Gl, { children: /* @__PURE__ */ s.jsxs(pn, { gap: 4, boxShadow: "lg", border: "1px solid gray.200", borderRadius: "md", p: 4, children: [
|
|
4768
4778
|
/* @__PURE__ */ s.jsx(Ee, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ s.jsxs(pn, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4769
4779
|
/* @__PURE__ */ s.jsx(Ee, { color: "red.600", mt: "2px", children: /* @__PURE__ */ s.jsx(ta, { size: 20 }) }),
|
|
4770
4780
|
/* @__PURE__ */ s.jsxs(Ee, { children: [
|
|
@@ -4787,7 +4797,7 @@ function Sl({
|
|
|
4787
4797
|
Dn,
|
|
4788
4798
|
{
|
|
4789
4799
|
placeholder: `Type ${i} here`,
|
|
4790
|
-
value:
|
|
4800
|
+
value: c,
|
|
4791
4801
|
onChange: (d) => u(d.target.value),
|
|
4792
4802
|
size: "xs"
|
|
4793
4803
|
}
|
|
@@ -4795,7 +4805,7 @@ function Sl({
|
|
|
4795
4805
|
] })
|
|
4796
4806
|
] }) }),
|
|
4797
4807
|
/* @__PURE__ */ s.jsxs(
|
|
4798
|
-
|
|
4808
|
+
Xl,
|
|
4799
4809
|
{
|
|
4800
4810
|
justifyContent: "flex-end",
|
|
4801
4811
|
gap: 3,
|
|
@@ -4811,7 +4821,7 @@ function Sl({
|
|
|
4811
4821
|
style: {
|
|
4812
4822
|
backgroundColor: "#FF0000"
|
|
4813
4823
|
},
|
|
4814
|
-
loading:
|
|
4824
|
+
loading: l,
|
|
4815
4825
|
onClick: n,
|
|
4816
4826
|
children: a
|
|
4817
4827
|
}
|
|
@@ -4819,11 +4829,11 @@ function Sl({
|
|
|
4819
4829
|
]
|
|
4820
4830
|
}
|
|
4821
4831
|
),
|
|
4822
|
-
/* @__PURE__ */ s.jsx(
|
|
4832
|
+
/* @__PURE__ */ s.jsx(Jl, { asChild: !0, children: /* @__PURE__ */ s.jsx(jr, { size: "sm" }) })
|
|
4823
4833
|
] }) })
|
|
4824
4834
|
] }) });
|
|
4825
4835
|
}
|
|
4826
|
-
function
|
|
4836
|
+
function Dc({
|
|
4827
4837
|
refetch: e,
|
|
4828
4838
|
isLoading: t = !1,
|
|
4829
4839
|
label: n = "Refresh"
|
|
@@ -4857,13 +4867,13 @@ function Dl({
|
|
|
4857
4867
|
}
|
|
4858
4868
|
);
|
|
4859
4869
|
}
|
|
4860
|
-
var It = { exports: {} },
|
|
4861
|
-
function
|
|
4870
|
+
var It = { exports: {} }, Kl = It.exports, br;
|
|
4871
|
+
function Zl() {
|
|
4862
4872
|
return br || (br = 1, (function(e, t) {
|
|
4863
4873
|
(function(n, r) {
|
|
4864
4874
|
e.exports = r();
|
|
4865
|
-
})(
|
|
4866
|
-
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second",
|
|
4875
|
+
})(Kl, (function() {
|
|
4876
|
+
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second", l = "minute", c = "hour", u = "day", d = "week", f = "month", b = "quarter", g = "year", p = "date", v = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|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, _ = { 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($) {
|
|
4867
4877
|
var D = ["th", "st", "nd", "rd"], w = $ % 100;
|
|
4868
4878
|
return "[" + $ + (D[(w - 20) % 10] || D[w] || D[0]) + "]";
|
|
4869
4879
|
} }, R = function($, D, w) {
|
|
@@ -4879,7 +4889,7 @@ function Zc() {
|
|
|
4879
4889
|
}, a: function($) {
|
|
4880
4890
|
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
|
4881
4891
|
}, p: function($) {
|
|
4882
|
-
return { M: f, y: g, w: d, d: u, D: p, h:
|
|
4892
|
+
return { M: f, y: g, w: d, d: u, D: p, h: c, m: l, s: a, ms: i, Q: b }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
4883
4893
|
}, u: function($) {
|
|
4884
4894
|
return $ === void 0;
|
|
4885
4895
|
} }, O = "en", j = {};
|
|
@@ -4965,9 +4975,9 @@ function Zc() {
|
|
|
4965
4975
|
case u:
|
|
4966
4976
|
case p:
|
|
4967
4977
|
return S(X + "Hours", 0);
|
|
4968
|
-
case l:
|
|
4969
|
-
return S(X + "Minutes", 1);
|
|
4970
4978
|
case c:
|
|
4979
|
+
return S(X + "Minutes", 1);
|
|
4980
|
+
case l:
|
|
4971
4981
|
return S(X + "Seconds", 2);
|
|
4972
4982
|
case a:
|
|
4973
4983
|
return S(X + "Milliseconds", 3);
|
|
@@ -4977,7 +4987,7 @@ function Zc() {
|
|
|
4977
4987
|
}, D.endOf = function(w) {
|
|
4978
4988
|
return this.startOf(w, !1);
|
|
4979
4989
|
}, D.$set = function(w, E) {
|
|
4980
|
-
var C, A = k.p(w), N = "set" + (this.$u ? "UTC" : ""), h = (C = {}, C[u] = N + "Date", C[p] = N + "Date", C[f] = N + "Month", C[g] = N + "FullYear", C[
|
|
4990
|
+
var C, A = k.p(w), N = "set" + (this.$u ? "UTC" : ""), h = (C = {}, C[u] = N + "Date", C[p] = N + "Date", C[f] = N + "Month", C[g] = N + "FullYear", C[c] = N + "Hours", C[l] = N + "Minutes", C[a] = N + "Seconds", C[i] = N + "Milliseconds", C)[A], S = A === u ? this.$D + (E - this.$W) : E;
|
|
4981
4991
|
if (A === f || A === g) {
|
|
4982
4992
|
var L = this.clone().set(p, 1);
|
|
4983
4993
|
L.$d[h](S), L.init(), this.$d = L.set(p, Math.min(this.$D, L.daysInMonth())).$d;
|
|
@@ -4998,24 +5008,24 @@ function Zc() {
|
|
|
4998
5008
|
if (N === g) return this.set(g, this.$y + w);
|
|
4999
5009
|
if (N === u) return h(1);
|
|
5000
5010
|
if (N === d) return h(7);
|
|
5001
|
-
var S = (C = {}, C[
|
|
5011
|
+
var S = (C = {}, C[l] = r, C[c] = o, C[a] = n, C)[N] || 1, L = this.$d.getTime() + w * S;
|
|
5002
5012
|
return k.w(L, this);
|
|
5003
5013
|
}, D.subtract = function(w, E) {
|
|
5004
5014
|
return this.add(-1 * w, E);
|
|
5005
5015
|
}, D.format = function(w) {
|
|
5006
5016
|
var E = this, C = this.$locale();
|
|
5007
5017
|
if (!this.isValid()) return C.invalidDate || v;
|
|
5008
|
-
var A = w || "YYYY-MM-DDTHH:mm:ssZ", N = k.z(this), h = this.$H, S = this.$m, L = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, V = function(z, fe,
|
|
5009
|
-
return z && (z[fe] || z(E, A)) ||
|
|
5018
|
+
var A = w || "YYYY-MM-DDTHH:mm:ssZ", N = k.z(this), h = this.$H, S = this.$m, L = this.$M, P = C.weekdays, G = C.months, X = C.meridiem, V = function(z, fe, le, we) {
|
|
5019
|
+
return z && (z[fe] || z(E, A)) || le[fe].slice(0, we);
|
|
5010
5020
|
}, K = function(z) {
|
|
5011
5021
|
return k.s(h % 12 || 12, z, "0");
|
|
5012
|
-
}, Z = X || function(z, fe,
|
|
5022
|
+
}, Z = X || function(z, fe, le) {
|
|
5013
5023
|
var we = z < 12 ? "AM" : "PM";
|
|
5014
|
-
return
|
|
5024
|
+
return le ? we.toLowerCase() : we;
|
|
5015
5025
|
};
|
|
5016
5026
|
return A.replace(x, (function(z, fe) {
|
|
5017
|
-
return fe || (function(
|
|
5018
|
-
switch (
|
|
5027
|
+
return fe || (function(le) {
|
|
5028
|
+
switch (le) {
|
|
5019
5029
|
case "YY":
|
|
5020
5030
|
return String(E.$y).slice(-2);
|
|
5021
5031
|
case "YYYY":
|
|
@@ -5090,10 +5100,10 @@ function Zc() {
|
|
|
5090
5100
|
case u:
|
|
5091
5101
|
A = (P - L) / 864e5;
|
|
5092
5102
|
break;
|
|
5093
|
-
case
|
|
5103
|
+
case c:
|
|
5094
5104
|
A = P / o;
|
|
5095
5105
|
break;
|
|
5096
|
-
case
|
|
5106
|
+
case l:
|
|
5097
5107
|
A = P / r;
|
|
5098
5108
|
break;
|
|
5099
5109
|
case a:
|
|
@@ -5123,7 +5133,7 @@ function Zc() {
|
|
|
5123
5133
|
return this.$d.toUTCString();
|
|
5124
5134
|
}, $;
|
|
5125
5135
|
})(), se = Q.prototype;
|
|
5126
|
-
return Y.prototype = se, [["$ms", i], ["$s", a], ["$m",
|
|
5136
|
+
return Y.prototype = se, [["$ms", i], ["$s", a], ["$m", l], ["$H", c], ["$W", u], ["$M", f], ["$y", g], ["$D", p]].forEach((function($) {
|
|
5127
5137
|
se[$[1]] = function(D) {
|
|
5128
5138
|
return this.$g(D, $[0], $[1]);
|
|
5129
5139
|
};
|
|
@@ -5135,18 +5145,18 @@ function Zc() {
|
|
|
5135
5145
|
}));
|
|
5136
5146
|
})(It)), It.exports;
|
|
5137
5147
|
}
|
|
5138
|
-
var
|
|
5139
|
-
const Zt = /* @__PURE__ */ Ut(
|
|
5140
|
-
var kt = { exports: {} },
|
|
5141
|
-
function
|
|
5148
|
+
var Ql = Zl();
|
|
5149
|
+
const Zt = /* @__PURE__ */ Ut(Ql);
|
|
5150
|
+
var kt = { exports: {} }, ec = kt.exports, xr;
|
|
5151
|
+
function tc() {
|
|
5142
5152
|
return xr || (xr = 1, (function(e, t) {
|
|
5143
5153
|
(function(n, r) {
|
|
5144
5154
|
e.exports = r();
|
|
5145
|
-
})(
|
|
5155
|
+
})(ec, (function() {
|
|
5146
5156
|
return function(n, r, o) {
|
|
5147
5157
|
n = n || {};
|
|
5148
5158
|
var i = r.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
5149
|
-
function
|
|
5159
|
+
function l(u, d, f, b) {
|
|
5150
5160
|
return i.fromToBase(u, d, f, b);
|
|
5151
5161
|
}
|
|
5152
5162
|
o.en.relativeTime = a, i.fromToBase = function(u, d, f, b, g) {
|
|
@@ -5165,35 +5175,35 @@ function tl() {
|
|
|
5165
5175
|
var I = m ? x.future : x.past;
|
|
5166
5176
|
return typeof I == "function" ? I(v) : I.replace("%s", v);
|
|
5167
5177
|
}, i.to = function(u, d) {
|
|
5168
|
-
return
|
|
5178
|
+
return l(u, d, this, !0);
|
|
5169
5179
|
}, i.from = function(u, d) {
|
|
5170
|
-
return
|
|
5180
|
+
return l(u, d, this);
|
|
5171
5181
|
};
|
|
5172
|
-
var
|
|
5182
|
+
var c = function(u) {
|
|
5173
5183
|
return u.$u ? o.utc() : o();
|
|
5174
5184
|
};
|
|
5175
5185
|
i.toNow = function(u) {
|
|
5176
|
-
return this.to(
|
|
5186
|
+
return this.to(c(this), u);
|
|
5177
5187
|
}, i.fromNow = function(u) {
|
|
5178
|
-
return this.from(
|
|
5188
|
+
return this.from(c(this), u);
|
|
5179
5189
|
};
|
|
5180
5190
|
};
|
|
5181
5191
|
}));
|
|
5182
5192
|
})(kt)), kt.exports;
|
|
5183
5193
|
}
|
|
5184
|
-
var
|
|
5185
|
-
const
|
|
5186
|
-
var At = { exports: {} },
|
|
5187
|
-
function
|
|
5194
|
+
var nc = tc();
|
|
5195
|
+
const rc = /* @__PURE__ */ Ut(nc);
|
|
5196
|
+
var At = { exports: {} }, oc = At.exports, yr;
|
|
5197
|
+
function ic() {
|
|
5188
5198
|
return yr || (yr = 1, (function(e, t) {
|
|
5189
5199
|
(function(n, r) {
|
|
5190
5200
|
e.exports = r();
|
|
5191
|
-
})(
|
|
5201
|
+
})(oc, (function() {
|
|
5192
5202
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
5193
5203
|
return function(r, o, i) {
|
|
5194
|
-
var a = o.prototype,
|
|
5195
|
-
i.en.formats = n, a.format = function(
|
|
5196
|
-
|
|
5204
|
+
var a = o.prototype, l = a.format;
|
|
5205
|
+
i.en.formats = n, a.format = function(c) {
|
|
5206
|
+
c === void 0 && (c = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5197
5207
|
var u = this.$locale().formats, d = (function(f, b) {
|
|
5198
5208
|
return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(g, p, v) {
|
|
5199
5209
|
var m = v && v.toUpperCase();
|
|
@@ -5201,55 +5211,55 @@ function il() {
|
|
|
5201
5211
|
return _ || R.slice(1);
|
|
5202
5212
|
}));
|
|
5203
5213
|
}));
|
|
5204
|
-
})(
|
|
5205
|
-
return
|
|
5214
|
+
})(c, u === void 0 ? {} : u);
|
|
5215
|
+
return l.call(this, d);
|
|
5206
5216
|
};
|
|
5207
5217
|
};
|
|
5208
5218
|
}));
|
|
5209
5219
|
})(At)), At.exports;
|
|
5210
5220
|
}
|
|
5211
|
-
var
|
|
5212
|
-
const
|
|
5213
|
-
var Lt = { exports: {} },
|
|
5214
|
-
function
|
|
5221
|
+
var sc = ic();
|
|
5222
|
+
const ac = /* @__PURE__ */ Ut(sc);
|
|
5223
|
+
var Lt = { exports: {} }, lc = Lt.exports, wr;
|
|
5224
|
+
function cc() {
|
|
5215
5225
|
return wr || (wr = 1, (function(e, t) {
|
|
5216
5226
|
(function(n, r) {
|
|
5217
5227
|
e.exports = r();
|
|
5218
|
-
})(
|
|
5228
|
+
})(lc, (function() {
|
|
5219
5229
|
return function(n, r) {
|
|
5220
5230
|
var o = r.prototype, i = o.format;
|
|
5221
5231
|
o.format = function(a) {
|
|
5222
|
-
var
|
|
5232
|
+
var l = this, c = this.$locale();
|
|
5223
5233
|
if (!this.isValid()) return i.bind(this)(a);
|
|
5224
5234
|
var u = this.$utils(), d = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(f) {
|
|
5225
5235
|
switch (f) {
|
|
5226
5236
|
case "Q":
|
|
5227
|
-
return Math.ceil((
|
|
5237
|
+
return Math.ceil((l.$M + 1) / 3);
|
|
5228
5238
|
case "Do":
|
|
5229
|
-
return
|
|
5239
|
+
return c.ordinal(l.$D);
|
|
5230
5240
|
case "gggg":
|
|
5231
|
-
return
|
|
5241
|
+
return l.weekYear();
|
|
5232
5242
|
case "GGGG":
|
|
5233
|
-
return
|
|
5243
|
+
return l.isoWeekYear();
|
|
5234
5244
|
case "wo":
|
|
5235
|
-
return
|
|
5245
|
+
return c.ordinal(l.week(), "W");
|
|
5236
5246
|
case "w":
|
|
5237
5247
|
case "ww":
|
|
5238
|
-
return u.s(
|
|
5248
|
+
return u.s(l.week(), f === "w" ? 1 : 2, "0");
|
|
5239
5249
|
case "W":
|
|
5240
5250
|
case "WW":
|
|
5241
|
-
return u.s(
|
|
5251
|
+
return u.s(l.isoWeek(), f === "W" ? 1 : 2, "0");
|
|
5242
5252
|
case "k":
|
|
5243
5253
|
case "kk":
|
|
5244
|
-
return u.s(String(
|
|
5254
|
+
return u.s(String(l.$H === 0 ? 24 : l.$H), f === "k" ? 1 : 2, "0");
|
|
5245
5255
|
case "X":
|
|
5246
|
-
return Math.floor(
|
|
5256
|
+
return Math.floor(l.$d.getTime() / 1e3);
|
|
5247
5257
|
case "x":
|
|
5248
|
-
return
|
|
5258
|
+
return l.$d.getTime();
|
|
5249
5259
|
case "z":
|
|
5250
|
-
return "[" +
|
|
5260
|
+
return "[" + l.offsetName() + "]";
|
|
5251
5261
|
case "zzz":
|
|
5252
|
-
return "[" +
|
|
5262
|
+
return "[" + l.offsetName("long") + "]";
|
|
5253
5263
|
default:
|
|
5254
5264
|
return f;
|
|
5255
5265
|
}
|
|
@@ -5260,12 +5270,12 @@ function ll() {
|
|
|
5260
5270
|
}));
|
|
5261
5271
|
})(Lt)), Lt.exports;
|
|
5262
5272
|
}
|
|
5263
|
-
var
|
|
5264
|
-
const
|
|
5265
|
-
Zt.extend(
|
|
5266
|
-
Zt.extend(
|
|
5267
|
-
Zt.extend(
|
|
5268
|
-
const
|
|
5273
|
+
var uc = cc();
|
|
5274
|
+
const dc = /* @__PURE__ */ Ut(uc);
|
|
5275
|
+
Zt.extend(rc);
|
|
5276
|
+
Zt.extend(ac);
|
|
5277
|
+
Zt.extend(dc);
|
|
5278
|
+
const fc = {
|
|
5269
5279
|
date: "DD MMM YYYY",
|
|
5270
5280
|
time: "hh:mm A",
|
|
5271
5281
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5281,9 +5291,9 @@ function Sr({
|
|
|
5281
5291
|
}) {
|
|
5282
5292
|
if (!e) return r;
|
|
5283
5293
|
const o = Zt(e);
|
|
5284
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5294
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? fc[t]) : r;
|
|
5285
5295
|
}
|
|
5286
|
-
function
|
|
5296
|
+
function Cc({
|
|
5287
5297
|
value: e,
|
|
5288
5298
|
dateVariant: t = "date",
|
|
5289
5299
|
timeVariant: n = "time",
|
|
@@ -5305,28 +5315,28 @@ function Cl({
|
|
|
5305
5315
|
] });
|
|
5306
5316
|
}
|
|
5307
5317
|
export {
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5318
|
+
vc as DataTable,
|
|
5319
|
+
bc as Filters,
|
|
5320
|
+
wc as MDSButton,
|
|
5311
5321
|
Fa as MDSCheckbox,
|
|
5312
|
-
|
|
5322
|
+
Sc as MDSConfirmDeleteDialog,
|
|
5313
5323
|
mr as MDSInput,
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5324
|
+
Dc as MDSRefreshButton,
|
|
5325
|
+
pl as MDSSelectBox,
|
|
5326
|
+
Dc as RefreshButton,
|
|
5327
|
+
Cc as StackedDateTime,
|
|
5328
|
+
bl as addPreset,
|
|
5329
|
+
xl as deletePreset,
|
|
5320
5330
|
Sr as formatDateTime,
|
|
5321
5331
|
Kt as getPresets,
|
|
5322
|
-
|
|
5332
|
+
yc as loadOrder,
|
|
5323
5333
|
Ht as presetStore,
|
|
5324
|
-
|
|
5334
|
+
xc as saveOrder,
|
|
5325
5335
|
In as savePresets,
|
|
5326
5336
|
aa as setActionsConfig,
|
|
5327
5337
|
ia as setData,
|
|
5328
5338
|
sa as setTableId,
|
|
5329
5339
|
be as tableStore,
|
|
5330
|
-
|
|
5340
|
+
mc as updatePreset,
|
|
5331
5341
|
y as withChildren
|
|
5332
5342
|
};
|