@mdspl/mds-shared-ui 0.9.5 → 0.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +3 -1
- package/dist/index.js +416 -409
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,16 +11,16 @@ function $o() {
|
|
|
11
11
|
Xn = 1;
|
|
12
12
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
13
13
|
function n(r, o, s) {
|
|
14
|
-
var
|
|
15
|
-
if (s !== void 0 && (
|
|
14
|
+
var c = null;
|
|
15
|
+
if (s !== void 0 && (c = "" + s), o.key !== void 0 && (c = "" + o.key), "key" in o) {
|
|
16
16
|
s = {};
|
|
17
|
-
for (var
|
|
18
|
-
|
|
17
|
+
for (var a in o)
|
|
18
|
+
a !== "key" && (s[a] = o[a]);
|
|
19
19
|
} else s = o;
|
|
20
20
|
return o = s.ref, {
|
|
21
21
|
$$typeof: e,
|
|
22
22
|
type: r,
|
|
23
|
-
key:
|
|
23
|
+
key: c,
|
|
24
24
|
ref: o !== void 0 ? o : null,
|
|
25
25
|
props: s
|
|
26
26
|
};
|
|
@@ -112,14 +112,14 @@ function Io() {
|
|
|
112
112
|
function s() {
|
|
113
113
|
return Error("react-stack-top-frame");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function c(g) {
|
|
116
116
|
if (X.call(g, "key")) {
|
|
117
117
|
var D = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
118
118
|
if (D && D.isReactWarning) return !1;
|
|
119
119
|
}
|
|
120
120
|
return g.key !== void 0;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function a(g, D) {
|
|
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)",
|
|
@@ -201,12 +201,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
201
201
|
H
|
|
202
202
|
), N[H + F] = !0);
|
|
203
203
|
}
|
|
204
|
-
if (H = null, L !== void 0 && (n(L), H = "" + L),
|
|
204
|
+
if (H = null, L !== void 0 && (n(L), H = "" + L), c(D) && (n(D.key), H = "" + D.key), "key" in D) {
|
|
205
205
|
L = {};
|
|
206
206
|
for (var re in D)
|
|
207
207
|
re !== "key" && (L[re] = D[re]);
|
|
208
208
|
} else L = D;
|
|
209
|
-
return H &&
|
|
209
|
+
return H && a(
|
|
210
210
|
L,
|
|
211
211
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
212
212
|
), u(
|
|
@@ -369,9 +369,9 @@ function Ir(e) {
|
|
|
369
369
|
return function(t) {
|
|
370
370
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
371
371
|
r[o - 1] = arguments[o];
|
|
372
|
-
return r.reduce((s,
|
|
373
|
-
const
|
|
374
|
-
for (const [l, u] of
|
|
372
|
+
return r.reduce((s, c) => {
|
|
373
|
+
const a = Object.entries(c);
|
|
374
|
+
for (const [l, u] of a) {
|
|
375
375
|
const f = s[l];
|
|
376
376
|
f != null && (s[l] = f + e * u);
|
|
377
377
|
}
|
|
@@ -537,9 +537,9 @@ function Bo() {
|
|
|
537
537
|
type: o,
|
|
538
538
|
event: s
|
|
539
539
|
} = r;
|
|
540
|
-
e.forEach((
|
|
541
|
-
var
|
|
542
|
-
return (
|
|
540
|
+
e.forEach((c) => {
|
|
541
|
+
var a;
|
|
542
|
+
return (a = c[o]) == null ? void 0 : a.call(c, s);
|
|
543
543
|
});
|
|
544
544
|
}, [e]), t];
|
|
545
545
|
}
|
|
@@ -586,8 +586,8 @@ function Xo(e) {
|
|
|
586
586
|
} = e;
|
|
587
587
|
const {
|
|
588
588
|
announce: s,
|
|
589
|
-
announcement:
|
|
590
|
-
} = Ho(),
|
|
589
|
+
announcement: c
|
|
590
|
+
} = Ho(), a = wt("DndLiveRegion"), [l, u] = J(!1);
|
|
591
591
|
if (Y(() => {
|
|
592
592
|
u(!0);
|
|
593
593
|
}, []), Wo(U(() => ({
|
|
@@ -645,8 +645,8 @@ function Xo(e) {
|
|
|
645
645
|
id: r,
|
|
646
646
|
value: o.draggable
|
|
647
647
|
}), oe.createElement(Vo, {
|
|
648
|
-
id:
|
|
649
|
-
announcement:
|
|
648
|
+
id: a,
|
|
649
|
+
announcement: c
|
|
650
650
|
}));
|
|
651
651
|
return n ? Mo(f, n) : f;
|
|
652
652
|
}
|
|
@@ -725,16 +725,16 @@ const kr = (e) => {
|
|
|
725
725
|
droppableContainers: r
|
|
726
726
|
} = e;
|
|
727
727
|
const o = Zn(t, t.left, t.top), s = [];
|
|
728
|
-
for (const
|
|
728
|
+
for (const c of r) {
|
|
729
729
|
const {
|
|
730
|
-
id:
|
|
731
|
-
} =
|
|
730
|
+
id: a
|
|
731
|
+
} = c, l = n.get(a);
|
|
732
732
|
if (l) {
|
|
733
733
|
const u = Jo(Zn(l), o);
|
|
734
734
|
s.push({
|
|
735
|
-
id:
|
|
735
|
+
id: a,
|
|
736
736
|
data: {
|
|
737
|
-
droppableContainer:
|
|
737
|
+
droppableContainer: c,
|
|
738
738
|
value: u
|
|
739
739
|
}
|
|
740
740
|
});
|
|
@@ -743,9 +743,9 @@ const kr = (e) => {
|
|
|
743
743
|
return s.sort(Zo);
|
|
744
744
|
};
|
|
745
745
|
function ts(e, t) {
|
|
746
|
-
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height),
|
|
746
|
+
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), c = o - r, a = s - n;
|
|
747
747
|
if (r < o && n < s) {
|
|
748
|
-
const l = t.width * t.height, u = e.width * e.height, f =
|
|
748
|
+
const l = t.width * t.height, u = e.width * e.height, f = c * a, d = f / (l + u - f);
|
|
749
749
|
return Number(d.toFixed(4));
|
|
750
750
|
}
|
|
751
751
|
return 0;
|
|
@@ -759,12 +759,12 @@ const ns = (e) => {
|
|
|
759
759
|
const o = [];
|
|
760
760
|
for (const s of r) {
|
|
761
761
|
const {
|
|
762
|
-
id:
|
|
763
|
-
} = s,
|
|
764
|
-
if (
|
|
765
|
-
const l = ts(
|
|
762
|
+
id: c
|
|
763
|
+
} = s, a = n.get(c);
|
|
764
|
+
if (a) {
|
|
765
|
+
const l = ts(a, t);
|
|
766
766
|
l > 0 && o.push({
|
|
767
|
-
id:
|
|
767
|
+
id: c,
|
|
768
768
|
data: {
|
|
769
769
|
droppableContainer: s,
|
|
770
770
|
value: l
|
|
@@ -791,12 +791,12 @@ function os(e) {
|
|
|
791
791
|
return function(n) {
|
|
792
792
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
793
793
|
o[s - 1] = arguments[s];
|
|
794
|
-
return o.reduce((
|
|
795
|
-
...
|
|
796
|
-
top:
|
|
797
|
-
bottom:
|
|
798
|
-
left:
|
|
799
|
-
right:
|
|
794
|
+
return o.reduce((c, a) => ({
|
|
795
|
+
...c,
|
|
796
|
+
top: c.top + e * a.y,
|
|
797
|
+
bottom: c.bottom + e * a.y,
|
|
798
|
+
left: c.left + e * a.x,
|
|
799
|
+
right: c.right + e * a.x
|
|
800
800
|
}), {
|
|
801
801
|
...n
|
|
802
802
|
});
|
|
@@ -830,9 +830,9 @@ function as(e, t, n) {
|
|
|
830
830
|
const {
|
|
831
831
|
scaleX: o,
|
|
832
832
|
scaleY: s,
|
|
833
|
-
x:
|
|
834
|
-
y:
|
|
835
|
-
} = r, l = e.left -
|
|
833
|
+
x: c,
|
|
834
|
+
y: a
|
|
835
|
+
} = r, l = e.left - c - (1 - o) * parseFloat(n), u = e.top - a - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), f = o ? e.width / o : e.width, d = s ? e.height / s : e.height;
|
|
836
836
|
return {
|
|
837
837
|
width: f,
|
|
838
838
|
height: d,
|
|
@@ -859,16 +859,16 @@ function ot(e, t) {
|
|
|
859
859
|
top: r,
|
|
860
860
|
left: o,
|
|
861
861
|
width: s,
|
|
862
|
-
height:
|
|
863
|
-
bottom:
|
|
862
|
+
height: c,
|
|
863
|
+
bottom: a,
|
|
864
864
|
right: l
|
|
865
865
|
} = n;
|
|
866
866
|
return {
|
|
867
867
|
top: r,
|
|
868
868
|
left: o,
|
|
869
869
|
width: s,
|
|
870
|
-
height:
|
|
871
|
-
bottom:
|
|
870
|
+
height: c,
|
|
871
|
+
bottom: a,
|
|
872
872
|
right: l
|
|
873
873
|
};
|
|
874
874
|
}
|
|
@@ -952,12 +952,12 @@ function Yr(e) {
|
|
|
952
952
|
}, r = {
|
|
953
953
|
x: e.scrollWidth - n.width,
|
|
954
954
|
y: e.scrollHeight - n.height
|
|
955
|
-
}, o = e.scrollTop <= t.y, s = e.scrollLeft <= t.x,
|
|
955
|
+
}, o = e.scrollTop <= t.y, s = e.scrollLeft <= t.x, c = e.scrollTop >= r.y, a = e.scrollLeft >= r.x;
|
|
956
956
|
return {
|
|
957
957
|
isTop: o,
|
|
958
958
|
isLeft: s,
|
|
959
|
-
isBottom:
|
|
960
|
-
isRight:
|
|
959
|
+
isBottom: c,
|
|
960
|
+
isRight: a,
|
|
961
961
|
maxScroll: r,
|
|
962
962
|
minScroll: t
|
|
963
963
|
};
|
|
@@ -969,8 +969,8 @@ const fs = {
|
|
|
969
969
|
function hs(e, t, n, r, o) {
|
|
970
970
|
let {
|
|
971
971
|
top: s,
|
|
972
|
-
left:
|
|
973
|
-
right:
|
|
972
|
+
left: c,
|
|
973
|
+
right: a,
|
|
974
974
|
bottom: l
|
|
975
975
|
} = n;
|
|
976
976
|
r === void 0 && (r = 10), o === void 0 && (o = fs);
|
|
@@ -989,7 +989,7 @@ function hs(e, t, n, r, o) {
|
|
|
989
989
|
height: t.height * o.y,
|
|
990
990
|
width: t.width * o.x
|
|
991
991
|
};
|
|
992
|
-
return !u && s <= t.top + v.height ? (p.y = ce.Backward, h.y = r * Math.abs((t.top + v.height - s) / v.height)) : !f && l >= t.bottom - v.height && (p.y = ce.Forward, h.y = r * Math.abs((t.bottom - v.height - l) / v.height)), !x &&
|
|
992
|
+
return !u && s <= t.top + v.height ? (p.y = ce.Backward, h.y = r * Math.abs((t.top + v.height - s) / v.height)) : !f && l >= t.bottom - v.height && (p.y = ce.Forward, h.y = r * Math.abs((t.bottom - v.height - l) / v.height)), !x && a >= t.right - v.width ? (p.x = ce.Forward, h.x = r * Math.abs((t.right - v.width - a) / v.width)) : !d && c <= t.left + v.width && (p.x = ce.Backward, h.x = r * Math.abs((t.left + v.width - c) / v.width)), {
|
|
993
993
|
direction: p,
|
|
994
994
|
speed: h
|
|
995
995
|
};
|
|
@@ -998,15 +998,15 @@ function ps(e) {
|
|
|
998
998
|
if (e === document.scrollingElement) {
|
|
999
999
|
const {
|
|
1000
1000
|
innerWidth: s,
|
|
1001
|
-
innerHeight:
|
|
1001
|
+
innerHeight: c
|
|
1002
1002
|
} = window;
|
|
1003
1003
|
return {
|
|
1004
1004
|
top: 0,
|
|
1005
1005
|
left: 0,
|
|
1006
1006
|
right: s,
|
|
1007
|
-
bottom:
|
|
1007
|
+
bottom: c,
|
|
1008
1008
|
width: s,
|
|
1009
|
-
height:
|
|
1009
|
+
height: c
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
const {
|
|
@@ -1055,11 +1055,11 @@ class In {
|
|
|
1055
1055
|
this.rect = {
|
|
1056
1056
|
...t
|
|
1057
1057
|
}, this.width = t.width, this.height = t.height;
|
|
1058
|
-
for (const [s,
|
|
1059
|
-
for (const l of
|
|
1058
|
+
for (const [s, c, a] of xs)
|
|
1059
|
+
for (const l of c)
|
|
1060
1060
|
Object.defineProperty(this, l, {
|
|
1061
1061
|
get: () => {
|
|
1062
|
-
const u =
|
|
1062
|
+
const u = a(r), f = o[s] - u;
|
|
1063
1063
|
return this.rect[l] + f;
|
|
1064
1064
|
},
|
|
1065
1065
|
enumerable: !0
|
|
@@ -1166,8 +1166,8 @@ class Wr {
|
|
|
1166
1166
|
options: o
|
|
1167
1167
|
} = this.props, {
|
|
1168
1168
|
keyboardCodes: s = Hr,
|
|
1169
|
-
coordinateGetter:
|
|
1170
|
-
scrollBehavior:
|
|
1169
|
+
coordinateGetter: c = ws,
|
|
1170
|
+
scrollBehavior: a = "smooth"
|
|
1171
1171
|
} = o, {
|
|
1172
1172
|
code: l
|
|
1173
1173
|
} = t;
|
|
@@ -1186,7 +1186,7 @@ class Wr {
|
|
|
1186
1186
|
y: u.top
|
|
1187
1187
|
} : je;
|
|
1188
1188
|
this.referenceCoordinates || (this.referenceCoordinates = f);
|
|
1189
|
-
const d =
|
|
1189
|
+
const d = c(t, {
|
|
1190
1190
|
active: n,
|
|
1191
1191
|
context: r.current,
|
|
1192
1192
|
currentCoordinates: f
|
|
@@ -1215,13 +1215,13 @@ class Wr {
|
|
|
1215
1215
|
if (W && !x.y) {
|
|
1216
1216
|
v.scrollTo({
|
|
1217
1217
|
left: S,
|
|
1218
|
-
behavior:
|
|
1218
|
+
behavior: a
|
|
1219
1219
|
});
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
1222
|
W ? p.x = v.scrollLeft - S : p.x = b === B.Right ? v.scrollLeft - M.x : v.scrollLeft - _.x, p.x && v.scrollBy({
|
|
1223
1223
|
left: -p.x,
|
|
1224
|
-
behavior:
|
|
1224
|
+
behavior: a
|
|
1225
1225
|
});
|
|
1226
1226
|
break;
|
|
1227
1227
|
} else if (P && A.y !== d.y) {
|
|
@@ -1229,13 +1229,13 @@ class Wr {
|
|
|
1229
1229
|
if (W && !x.x) {
|
|
1230
1230
|
v.scrollTo({
|
|
1231
1231
|
top: S,
|
|
1232
|
-
behavior:
|
|
1232
|
+
behavior: a
|
|
1233
1233
|
});
|
|
1234
1234
|
return;
|
|
1235
1235
|
}
|
|
1236
1236
|
W ? p.y = v.scrollTop - S : p.y = b === B.Down ? v.scrollTop - M.y : v.scrollTop - _.y, p.y && v.scrollBy({
|
|
1237
1237
|
top: -p.y,
|
|
1238
|
-
behavior:
|
|
1238
|
+
behavior: a
|
|
1239
1239
|
});
|
|
1240
1240
|
break;
|
|
1241
1241
|
}
|
|
@@ -1276,11 +1276,11 @@ Wr.activators = [{
|
|
|
1276
1276
|
active: s
|
|
1277
1277
|
} = n;
|
|
1278
1278
|
const {
|
|
1279
|
-
code:
|
|
1279
|
+
code: c
|
|
1280
1280
|
} = e.nativeEvent;
|
|
1281
|
-
if (r.start.includes(
|
|
1282
|
-
const
|
|
1283
|
-
return
|
|
1281
|
+
if (r.start.includes(c)) {
|
|
1282
|
+
const a = s.activatorNode.current;
|
|
1283
|
+
return a && e.target !== a ? !1 : (e.preventDefault(), o?.({
|
|
1284
1284
|
event: e.nativeEvent
|
|
1285
1285
|
}), !0);
|
|
1286
1286
|
}
|
|
@@ -1300,9 +1300,9 @@ class An {
|
|
|
1300
1300
|
const {
|
|
1301
1301
|
event: s
|
|
1302
1302
|
} = t, {
|
|
1303
|
-
target:
|
|
1303
|
+
target: c
|
|
1304
1304
|
} = s;
|
|
1305
|
-
this.props = t, this.events = n, this.document = rt(
|
|
1305
|
+
this.props = t, this.events = n, this.document = rt(c), this.documentListeners = new ht(this.document), this.listeners = new ht(r), this.windowListeners = new ht(ge(c)), this.initialCoordinates = (o = wn(s)) != null ? o : je, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1306
1306
|
}
|
|
1307
1307
|
attach() {
|
|
1308
1308
|
const {
|
|
@@ -1361,27 +1361,27 @@ class An {
|
|
|
1361
1361
|
initialCoordinates: o,
|
|
1362
1362
|
props: s
|
|
1363
1363
|
} = this, {
|
|
1364
|
-
onMove:
|
|
1364
|
+
onMove: c,
|
|
1365
1365
|
options: {
|
|
1366
|
-
activationConstraint:
|
|
1366
|
+
activationConstraint: a
|
|
1367
1367
|
}
|
|
1368
1368
|
} = s;
|
|
1369
1369
|
if (!o)
|
|
1370
1370
|
return;
|
|
1371
1371
|
const l = (n = wn(t)) != null ? n : je, u = Yt(o, l);
|
|
1372
|
-
if (!r &&
|
|
1373
|
-
if (tr(
|
|
1374
|
-
if (
|
|
1372
|
+
if (!r && a) {
|
|
1373
|
+
if (tr(a)) {
|
|
1374
|
+
if (a.tolerance != null && un(u, a.tolerance))
|
|
1375
1375
|
return this.handleCancel();
|
|
1376
|
-
if (un(u,
|
|
1376
|
+
if (un(u, a.distance))
|
|
1377
1377
|
return this.handleStart();
|
|
1378
1378
|
}
|
|
1379
|
-
if (nr(
|
|
1379
|
+
if (nr(a) && un(u, a.tolerance))
|
|
1380
1380
|
return this.handleCancel();
|
|
1381
|
-
this.handlePending(
|
|
1381
|
+
this.handlePending(a, u);
|
|
1382
1382
|
return;
|
|
1383
1383
|
}
|
|
1384
|
-
t.cancelable && t.preventDefault(),
|
|
1384
|
+
t.cancelable && t.preventDefault(), c(l);
|
|
1385
1385
|
}
|
|
1386
1386
|
handleEnd() {
|
|
1387
1387
|
const {
|
|
@@ -1524,8 +1524,8 @@ function Rs(e) {
|
|
|
1524
1524
|
canScroll: r,
|
|
1525
1525
|
draggingRect: o,
|
|
1526
1526
|
enabled: s,
|
|
1527
|
-
interval:
|
|
1528
|
-
order:
|
|
1527
|
+
interval: c = 5,
|
|
1528
|
+
order: a = Ht.TreeOrder,
|
|
1529
1529
|
pointerCoordinates: l,
|
|
1530
1530
|
scrollableAncestors: u,
|
|
1531
1531
|
scrollableAncestorRects: f,
|
|
@@ -1559,7 +1559,7 @@ function Rs(e) {
|
|
|
1559
1559
|
return;
|
|
1560
1560
|
const I = b.current.x * y.current.x, A = b.current.y * y.current.y;
|
|
1561
1561
|
_.scrollBy(I, A);
|
|
1562
|
-
}, []), M = U(() =>
|
|
1562
|
+
}, []), M = U(() => a === Ht.TreeOrder ? [...u].reverse() : u, [a, u]);
|
|
1563
1563
|
Y(
|
|
1564
1564
|
() => {
|
|
1565
1565
|
if (!s || !u.length || !T) {
|
|
@@ -1579,7 +1579,7 @@ function Rs(e) {
|
|
|
1579
1579
|
for (const S of ["x", "y"])
|
|
1580
1580
|
p[S][V[S]] || (P[S] = 0, V[S] = 0);
|
|
1581
1581
|
if (P.x > 0 || P.y > 0) {
|
|
1582
|
-
v(), j.current = _, h(O,
|
|
1582
|
+
v(), j.current = _, h(O, c), b.current = P, y.current = V;
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
@@ -1598,7 +1598,7 @@ function Rs(e) {
|
|
|
1598
1598
|
r,
|
|
1599
1599
|
v,
|
|
1600
1600
|
s,
|
|
1601
|
-
|
|
1601
|
+
c,
|
|
1602
1602
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1603
1603
|
JSON.stringify(T),
|
|
1604
1604
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1658,9 +1658,9 @@ function Os(e, t) {
|
|
|
1658
1658
|
return U(() => e.reduce((n, r) => {
|
|
1659
1659
|
const {
|
|
1660
1660
|
sensor: o
|
|
1661
|
-
} = r, s = o.activators.map((
|
|
1662
|
-
eventName:
|
|
1663
|
-
handler: t(
|
|
1661
|
+
} = r, s = o.activators.map((c) => ({
|
|
1662
|
+
eventName: c.eventName,
|
|
1663
|
+
handler: t(c.handler, r)
|
|
1664
1664
|
}));
|
|
1665
1665
|
return [...n, ...s];
|
|
1666
1666
|
}, []), [e, t]);
|
|
@@ -1680,12 +1680,12 @@ function Ms(e, t) {
|
|
|
1680
1680
|
dependencies: r,
|
|
1681
1681
|
config: o
|
|
1682
1682
|
} = t;
|
|
1683
|
-
const [s,
|
|
1684
|
-
frequency:
|
|
1683
|
+
const [s, c] = J(null), {
|
|
1684
|
+
frequency: a,
|
|
1685
1685
|
measure: l,
|
|
1686
1686
|
strategy: u
|
|
1687
1687
|
} = o, f = G(e), d = b(), x = vt(d), p = ee(function(y) {
|
|
1688
|
-
y === void 0 && (y = []), !x.current &&
|
|
1688
|
+
y === void 0 && (y = []), !x.current && c((T) => T === null ? y : T.concat(y.filter((j) => !T.includes(j))));
|
|
1689
1689
|
}, [x]), h = G(null), v = yt((y) => {
|
|
1690
1690
|
if (d && !n)
|
|
1691
1691
|
return rr;
|
|
@@ -1715,18 +1715,18 @@ function Ms(e, t) {
|
|
|
1715
1715
|
[n, d]
|
|
1716
1716
|
), Y(
|
|
1717
1717
|
() => {
|
|
1718
|
-
s && s.length > 0 &&
|
|
1718
|
+
s && s.length > 0 && c(null);
|
|
1719
1719
|
},
|
|
1720
1720
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1721
1721
|
[JSON.stringify(s)]
|
|
1722
1722
|
), Y(
|
|
1723
1723
|
() => {
|
|
1724
|
-
d || typeof
|
|
1724
|
+
d || typeof a != "number" || h.current !== null || (h.current = setTimeout(() => {
|
|
1725
1725
|
p(), h.current = null;
|
|
1726
|
-
},
|
|
1726
|
+
}, a));
|
|
1727
1727
|
},
|
|
1728
1728
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1729
|
-
[
|
|
1729
|
+
[a, d, p, ...r]
|
|
1730
1730
|
), {
|
|
1731
1731
|
droppableRects: v,
|
|
1732
1732
|
measureDroppableContainers: p,
|
|
@@ -1801,7 +1801,7 @@ function or(e, t, n) {
|
|
|
1801
1801
|
return JSON.stringify(l) === JSON.stringify(f) ? l : f;
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
|
-
const
|
|
1804
|
+
const c = Is({
|
|
1805
1805
|
callback(l) {
|
|
1806
1806
|
if (e)
|
|
1807
1807
|
for (const u of l) {
|
|
@@ -1815,14 +1815,14 @@ function or(e, t, n) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
|
-
}),
|
|
1818
|
+
}), a = Zt({
|
|
1819
1819
|
callback: s
|
|
1820
1820
|
});
|
|
1821
1821
|
return $e(() => {
|
|
1822
|
-
s(), e ? (
|
|
1822
|
+
s(), e ? (a?.observe(e), c?.observe(document.body, {
|
|
1823
1823
|
childList: !0,
|
|
1824
1824
|
subtree: !0
|
|
1825
|
-
})) : (
|
|
1825
|
+
})) : (a?.disconnect(), c?.disconnect());
|
|
1826
1826
|
}, [e]), r;
|
|
1827
1827
|
}
|
|
1828
1828
|
function ks(e) {
|
|
@@ -1838,31 +1838,31 @@ function Ls(e) {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
function Ns(e) {
|
|
1840
1840
|
const [t, n] = J(null), r = G(e), o = ee((s) => {
|
|
1841
|
-
const
|
|
1842
|
-
|
|
1841
|
+
const c = ln(s.target);
|
|
1842
|
+
c && n((a) => a ? (a.set(c, Sn(c)), new Map(a)) : null);
|
|
1843
1843
|
}, []);
|
|
1844
1844
|
return Y(() => {
|
|
1845
1845
|
const s = r.current;
|
|
1846
1846
|
if (e !== s) {
|
|
1847
|
-
|
|
1848
|
-
const
|
|
1847
|
+
c(s);
|
|
1848
|
+
const a = e.map((l) => {
|
|
1849
1849
|
const u = ln(l);
|
|
1850
1850
|
return u ? (u.addEventListener("scroll", o, {
|
|
1851
1851
|
passive: !0
|
|
1852
1852
|
}), [u, Sn(u)]) : null;
|
|
1853
1853
|
}).filter((l) => l != null);
|
|
1854
|
-
n(
|
|
1854
|
+
n(a.length ? new Map(a) : null), r.current = e;
|
|
1855
1855
|
}
|
|
1856
1856
|
return () => {
|
|
1857
|
-
|
|
1857
|
+
c(e), c(s);
|
|
1858
1858
|
};
|
|
1859
|
-
function a
|
|
1860
|
-
|
|
1859
|
+
function c(a) {
|
|
1860
|
+
a.forEach((l) => {
|
|
1861
1861
|
const u = ln(l);
|
|
1862
1862
|
u?.removeEventListener("scroll", o);
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
}, [o, e]), U(() => e.length ? t ? Array.from(t.values()).reduce((s,
|
|
1865
|
+
}, [o, e]), U(() => e.length ? t ? Array.from(t.values()).reduce((s, c) => Qe(s, c), je) : Vr(e) : je, [e, t]);
|
|
1866
1866
|
}
|
|
1867
1867
|
function ir(e, t) {
|
|
1868
1868
|
t === void 0 && (t = []);
|
|
@@ -1910,8 +1910,8 @@ function Ps(e, t) {
|
|
|
1910
1910
|
eventName: o,
|
|
1911
1911
|
handler: s
|
|
1912
1912
|
} = r;
|
|
1913
|
-
return n[o] = (
|
|
1914
|
-
s(
|
|
1913
|
+
return n[o] = (c) => {
|
|
1914
|
+
s(c, t);
|
|
1915
1915
|
}, n;
|
|
1916
1916
|
}, {}), [e, t]);
|
|
1917
1917
|
}
|
|
@@ -1922,14 +1922,14 @@ const ar = [];
|
|
|
1922
1922
|
function Fs(e, t) {
|
|
1923
1923
|
t === void 0 && (t = ot);
|
|
1924
1924
|
const [n] = e, r = Ur(n ? ge(n) : null), [o, s] = J(ar);
|
|
1925
|
-
function
|
|
1925
|
+
function c() {
|
|
1926
1926
|
s(() => e.length ? e.map((l) => Fr(l) ? r : new In(t(l), l)) : ar);
|
|
1927
1927
|
}
|
|
1928
|
-
const
|
|
1929
|
-
callback:
|
|
1928
|
+
const a = Zt({
|
|
1929
|
+
callback: c
|
|
1930
1930
|
});
|
|
1931
1931
|
return $e(() => {
|
|
1932
|
-
|
|
1932
|
+
a?.disconnect(), c(), e.forEach((l) => a?.observe(l));
|
|
1933
1933
|
}, [e]), o;
|
|
1934
1934
|
}
|
|
1935
1935
|
function Ys(e) {
|
|
@@ -1961,15 +1961,15 @@ function Vs(e) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
}, [t]), s = Zt({
|
|
1963
1963
|
callback: o
|
|
1964
|
-
}),
|
|
1964
|
+
}), c = ee((u) => {
|
|
1965
1965
|
const f = Ys(u);
|
|
1966
1966
|
s?.disconnect(), f && s?.observe(f), r(f ? t(f) : null);
|
|
1967
|
-
}, [t, s]), [
|
|
1967
|
+
}, [t, s]), [a, l] = Ft(c);
|
|
1968
1968
|
return U(() => ({
|
|
1969
|
-
nodeRef:
|
|
1969
|
+
nodeRef: a,
|
|
1970
1970
|
rect: n,
|
|
1971
1971
|
setRef: l
|
|
1972
|
-
}), [n,
|
|
1972
|
+
}), [n, a, l]);
|
|
1973
1973
|
}
|
|
1974
1974
|
const Hs = [{
|
|
1975
1975
|
sensor: kn,
|
|
@@ -2130,15 +2130,15 @@ function Xs(e, t) {
|
|
|
2130
2130
|
} = t, s = e.droppable.containers.get(n);
|
|
2131
2131
|
if (!s || r !== s.key)
|
|
2132
2132
|
return e;
|
|
2133
|
-
const
|
|
2134
|
-
return
|
|
2133
|
+
const c = new gt(e.droppable.containers);
|
|
2134
|
+
return c.set(n, {
|
|
2135
2135
|
...s,
|
|
2136
2136
|
disabled: o
|
|
2137
2137
|
}), {
|
|
2138
2138
|
...e,
|
|
2139
2139
|
droppable: {
|
|
2140
2140
|
...e.droppable,
|
|
2141
|
-
containers:
|
|
2141
|
+
containers: c
|
|
2142
2142
|
}
|
|
2143
2143
|
};
|
|
2144
2144
|
}
|
|
@@ -2170,18 +2170,18 @@ function qs(e) {
|
|
|
2170
2170
|
active: n,
|
|
2171
2171
|
activatorEvent: r,
|
|
2172
2172
|
draggableNodes: o
|
|
2173
|
-
} = Be(Qt), s = yn(r),
|
|
2173
|
+
} = Be(Qt), s = yn(r), c = yn(n?.id);
|
|
2174
2174
|
return Y(() => {
|
|
2175
|
-
if (!t && !r && s &&
|
|
2175
|
+
if (!t && !r && s && c != null) {
|
|
2176
2176
|
if (!Mn(s) || document.activeElement === s.target)
|
|
2177
2177
|
return;
|
|
2178
|
-
const
|
|
2179
|
-
if (!
|
|
2178
|
+
const a = o.get(c);
|
|
2179
|
+
if (!a)
|
|
2180
2180
|
return;
|
|
2181
2181
|
const {
|
|
2182
2182
|
activatorNode: l,
|
|
2183
2183
|
node: u
|
|
2184
|
-
} =
|
|
2184
|
+
} = a;
|
|
2185
2185
|
if (!l.current && !u.current)
|
|
2186
2186
|
return;
|
|
2187
2187
|
requestAnimationFrame(() => {
|
|
@@ -2196,7 +2196,7 @@ function qs(e) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
});
|
|
2198
2198
|
}
|
|
2199
|
-
}, [r, t, o,
|
|
2199
|
+
}, [r, t, o, c, s]), null;
|
|
2200
2200
|
}
|
|
2201
2201
|
function Ks(e, t) {
|
|
2202
2202
|
let {
|
|
@@ -2236,14 +2236,14 @@ function Zs(e) {
|
|
|
2236
2236
|
config: o = !0
|
|
2237
2237
|
} = e;
|
|
2238
2238
|
const s = G(!1), {
|
|
2239
|
-
x:
|
|
2240
|
-
y:
|
|
2239
|
+
x: c,
|
|
2240
|
+
y: a
|
|
2241
2241
|
} = typeof o == "boolean" ? {
|
|
2242
2242
|
x: o,
|
|
2243
2243
|
y: o
|
|
2244
2244
|
} : o;
|
|
2245
2245
|
$e(() => {
|
|
2246
|
-
if (!
|
|
2246
|
+
if (!c && !a || !t) {
|
|
2247
2247
|
s.current = !1;
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
@@ -2253,14 +2253,14 @@ function Zs(e) {
|
|
|
2253
2253
|
if (!u || u.isConnected === !1)
|
|
2254
2254
|
return;
|
|
2255
2255
|
const f = n(u), d = Lr(f, r);
|
|
2256
|
-
if (
|
|
2256
|
+
if (c || (d.x = 0), a || (d.y = 0), s.current = !0, Math.abs(d.x) > 0 || Math.abs(d.y) > 0) {
|
|
2257
2257
|
const x = Nr(u);
|
|
2258
2258
|
x && x.scrollBy({
|
|
2259
2259
|
top: d.y,
|
|
2260
2260
|
left: d.x
|
|
2261
2261
|
});
|
|
2262
2262
|
}
|
|
2263
|
-
}, [t,
|
|
2263
|
+
}, [t, c, a, r, n]);
|
|
2264
2264
|
}
|
|
2265
2265
|
const Xr = /* @__PURE__ */ tt({
|
|
2266
2266
|
...je,
|
|
@@ -2274,8 +2274,8 @@ var He;
|
|
|
2274
2274
|
const qr = /* @__PURE__ */ Do(function(t) {
|
|
2275
2275
|
var n, r, o, s;
|
|
2276
2276
|
let {
|
|
2277
|
-
id:
|
|
2278
|
-
accessibility:
|
|
2277
|
+
id: c,
|
|
2278
|
+
accessibility: a,
|
|
2279
2279
|
autoScroll: l = !0,
|
|
2280
2280
|
children: u,
|
|
2281
2281
|
sensors: f = Hs,
|
|
@@ -2304,7 +2304,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2304
2304
|
data: (de = S?.data) != null ? de : Ws,
|
|
2305
2305
|
rect: W
|
|
2306
2306
|
} : null;
|
|
2307
|
-
}, [I, S]), $ = G(null), [C, w] = J(null), [R, E] = J(null), k = vt(h, Object.values(h)), N = wt("DndDescribedBy",
|
|
2307
|
+
}, [I, S]), $ = G(null), [C, w] = J(null), [R, E] = J(null), k = vt(h, Object.values(h)), N = wt("DndDescribedBy", c), g = U(() => P.getEnabled(), [P]), D = Js(x), {
|
|
2308
2308
|
droppableRects: L,
|
|
2309
2309
|
measureDroppableContainers: F,
|
|
2310
2310
|
measuringScheduled: Z
|
|
@@ -2636,9 +2636,9 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2636
2636
|
}, oe.createElement(Xr.Provider, {
|
|
2637
2637
|
value: xo
|
|
2638
2638
|
}, u)), oe.createElement(qs, {
|
|
2639
|
-
disabled:
|
|
2639
|
+
disabled: a?.restoreFocus === !1
|
|
2640
2640
|
})), oe.createElement(Xo, {
|
|
2641
|
-
...
|
|
2641
|
+
...a,
|
|
2642
2642
|
hiddenTextDescribedById: N
|
|
2643
2643
|
}));
|
|
2644
2644
|
function So() {
|
|
@@ -2659,8 +2659,8 @@ function ti(e) {
|
|
|
2659
2659
|
attributes: o
|
|
2660
2660
|
} = e;
|
|
2661
2661
|
const s = wt(ei), {
|
|
2662
|
-
activators:
|
|
2663
|
-
activatorEvent:
|
|
2662
|
+
activators: c,
|
|
2663
|
+
activatorEvent: a,
|
|
2664
2664
|
active: l,
|
|
2665
2665
|
activeNodeRect: u,
|
|
2666
2666
|
ariaDescribedById: f,
|
|
@@ -2670,7 +2670,7 @@ function ti(e) {
|
|
|
2670
2670
|
role: p = cr,
|
|
2671
2671
|
roleDescription: h = "draggable",
|
|
2672
2672
|
tabIndex: v = 0
|
|
2673
|
-
} = o ?? {}, b = l?.id === t, y = Be(b ? Xr : Qs), [T, j] = Ft(), [O, M] = Ft(), _ = Ps(
|
|
2673
|
+
} = o ?? {}, b = l?.id === t, y = Be(b ? Xr : Qs), [T, j] = Ft(), [O, M] = Ft(), _ = Ps(c, t), I = vt(n);
|
|
2674
2674
|
$e(
|
|
2675
2675
|
() => (d.set(t, {
|
|
2676
2676
|
id: t,
|
|
@@ -2695,7 +2695,7 @@ function ti(e) {
|
|
|
2695
2695
|
}), [r, p, v, b, h, f.draggable]);
|
|
2696
2696
|
return {
|
|
2697
2697
|
active: l,
|
|
2698
|
-
activatorEvent:
|
|
2698
|
+
activatorEvent: a,
|
|
2699
2699
|
activeNodeRect: u,
|
|
2700
2700
|
attributes: A,
|
|
2701
2701
|
isDragging: b,
|
|
@@ -2721,8 +2721,8 @@ function si(e) {
|
|
|
2721
2721
|
resizeObserverConfig: o
|
|
2722
2722
|
} = e;
|
|
2723
2723
|
const s = wt(ri), {
|
|
2724
|
-
active:
|
|
2725
|
-
dispatch:
|
|
2724
|
+
active: c,
|
|
2725
|
+
dispatch: a,
|
|
2726
2726
|
over: l,
|
|
2727
2727
|
measureDroppableContainers: u
|
|
2728
2728
|
} = Be(Qt), f = G({
|
|
@@ -2748,14 +2748,14 @@ function si(e) {
|
|
|
2748
2748
|
[b]
|
|
2749
2749
|
), j = Zt({
|
|
2750
2750
|
callback: T,
|
|
2751
|
-
disabled: h || !
|
|
2751
|
+
disabled: h || !c
|
|
2752
2752
|
}), O = ee((A, V) => {
|
|
2753
2753
|
j && (V && (j.unobserve(V), d.current = !1), A && j.observe(A));
|
|
2754
2754
|
}, [j]), [M, _] = Ft(O), I = vt(t);
|
|
2755
2755
|
return Y(() => {
|
|
2756
2756
|
!j || !M.current || (j.disconnect(), d.current = !1, j.observe(M.current));
|
|
2757
2757
|
}, [M, j]), Y(
|
|
2758
|
-
() => (
|
|
2758
|
+
() => (a({
|
|
2759
2759
|
type: ie.RegisterDroppable,
|
|
2760
2760
|
element: {
|
|
2761
2761
|
id: r,
|
|
@@ -2765,7 +2765,7 @@ function si(e) {
|
|
|
2765
2765
|
rect: x,
|
|
2766
2766
|
data: I
|
|
2767
2767
|
}
|
|
2768
|
-
}), () =>
|
|
2768
|
+
}), () => a({
|
|
2769
2769
|
type: ie.UnregisterDroppable,
|
|
2770
2770
|
key: s,
|
|
2771
2771
|
id: r
|
|
@@ -2773,14 +2773,14 @@ function si(e) {
|
|
|
2773
2773
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2774
2774
|
[r]
|
|
2775
2775
|
), Y(() => {
|
|
2776
|
-
n !== f.current.disabled && (
|
|
2776
|
+
n !== f.current.disabled && (a({
|
|
2777
2777
|
type: ie.SetDroppableDisabled,
|
|
2778
2778
|
id: r,
|
|
2779
2779
|
key: s,
|
|
2780
2780
|
disabled: n
|
|
2781
2781
|
}), f.current.disabled = n);
|
|
2782
|
-
}, [r, s, n,
|
|
2783
|
-
active:
|
|
2782
|
+
}, [r, s, n, a]), {
|
|
2783
|
+
active: c,
|
|
2784
2784
|
rect: x,
|
|
2785
2785
|
isOver: l?.id === r,
|
|
2786
2786
|
node: M,
|
|
@@ -2827,26 +2827,26 @@ const _t = {
|
|
|
2827
2827
|
activeNodeRect: r,
|
|
2828
2828
|
activeIndex: o,
|
|
2829
2829
|
overIndex: s,
|
|
2830
|
-
index:
|
|
2830
|
+
index: c
|
|
2831
2831
|
} = e;
|
|
2832
|
-
const
|
|
2833
|
-
if (!
|
|
2832
|
+
const a = (t = n[o]) != null ? t : r;
|
|
2833
|
+
if (!a)
|
|
2834
2834
|
return null;
|
|
2835
|
-
const l = ui(n,
|
|
2836
|
-
if (
|
|
2835
|
+
const l = ui(n, c, o);
|
|
2836
|
+
if (c === o) {
|
|
2837
2837
|
const u = n[s];
|
|
2838
2838
|
return u ? {
|
|
2839
|
-
x: o < s ? u.left + u.width - (
|
|
2839
|
+
x: o < s ? u.left + u.width - (a.left + a.width) : u.left - a.left,
|
|
2840
2840
|
y: 0,
|
|
2841
2841
|
..._t
|
|
2842
2842
|
} : null;
|
|
2843
2843
|
}
|
|
2844
|
-
return
|
|
2845
|
-
x: -
|
|
2844
|
+
return c > o && c <= s ? {
|
|
2845
|
+
x: -a.width - l,
|
|
2846
2846
|
y: 0,
|
|
2847
2847
|
..._t
|
|
2848
|
-
} :
|
|
2849
|
-
x:
|
|
2848
|
+
} : c < o && c >= s ? {
|
|
2849
|
+
x: a.width + l,
|
|
2850
2850
|
y: 0,
|
|
2851
2851
|
..._t
|
|
2852
2852
|
} : {
|
|
@@ -2866,12 +2866,12 @@ const Kr = (e) => {
|
|
|
2866
2866
|
overIndex: r,
|
|
2867
2867
|
index: o
|
|
2868
2868
|
} = e;
|
|
2869
|
-
const s = en(t, r, n),
|
|
2870
|
-
return !
|
|
2871
|
-
x:
|
|
2872
|
-
y:
|
|
2873
|
-
scaleX:
|
|
2874
|
-
scaleY:
|
|
2869
|
+
const s = en(t, r, n), c = t[o], a = s[o];
|
|
2870
|
+
return !a || !c ? null : {
|
|
2871
|
+
x: a.left - c.left,
|
|
2872
|
+
y: a.top - c.top,
|
|
2873
|
+
scaleX: a.width / c.width,
|
|
2874
|
+
scaleY: a.height / c.height
|
|
2875
2875
|
};
|
|
2876
2876
|
}, Tt = {
|
|
2877
2877
|
scaleX: 1,
|
|
@@ -2883,27 +2883,27 @@ const Kr = (e) => {
|
|
|
2883
2883
|
activeNodeRect: r,
|
|
2884
2884
|
index: o,
|
|
2885
2885
|
rects: s,
|
|
2886
|
-
overIndex:
|
|
2886
|
+
overIndex: c
|
|
2887
2887
|
} = e;
|
|
2888
|
-
const
|
|
2889
|
-
if (!
|
|
2888
|
+
const a = (t = s[n]) != null ? t : r;
|
|
2889
|
+
if (!a)
|
|
2890
2890
|
return null;
|
|
2891
2891
|
if (o === n) {
|
|
2892
|
-
const u = s[
|
|
2892
|
+
const u = s[c];
|
|
2893
2893
|
return u ? {
|
|
2894
2894
|
x: 0,
|
|
2895
|
-
y: n <
|
|
2895
|
+
y: n < c ? u.top + u.height - (a.top + a.height) : u.top - a.top,
|
|
2896
2896
|
...Tt
|
|
2897
2897
|
} : null;
|
|
2898
2898
|
}
|
|
2899
2899
|
const l = fi(s, o, n);
|
|
2900
|
-
return o > n && o <=
|
|
2900
|
+
return o > n && o <= c ? {
|
|
2901
2901
|
x: 0,
|
|
2902
|
-
y: -
|
|
2902
|
+
y: -a.height - l,
|
|
2903
2903
|
...Tt
|
|
2904
|
-
} : o < n && o >=
|
|
2904
|
+
} : o < n && o >= c ? {
|
|
2905
2905
|
x: 0,
|
|
2906
|
-
y:
|
|
2906
|
+
y: a.height + l,
|
|
2907
2907
|
...Tt
|
|
2908
2908
|
} : {
|
|
2909
2909
|
x: 0,
|
|
@@ -2938,12 +2938,12 @@ function Qr(e) {
|
|
|
2938
2938
|
disabled: s = !1
|
|
2939
2939
|
} = e;
|
|
2940
2940
|
const {
|
|
2941
|
-
active:
|
|
2942
|
-
dragOverlay:
|
|
2941
|
+
active: c,
|
|
2942
|
+
dragOverlay: a,
|
|
2943
2943
|
droppableRects: l,
|
|
2944
2944
|
over: u,
|
|
2945
2945
|
measureDroppableContainers: f
|
|
2946
|
-
} = ni(), d = wt(Jr, n), x =
|
|
2946
|
+
} = ni(), d = wt(Jr, n), x = a.rect !== null, p = U(() => r.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [r]), h = c != null, v = c ? p.indexOf(c.id) : -1, b = u ? p.indexOf(u.id) : -1, y = G(p), T = !ai(p, y.current), j = b !== -1 && v === -1 || T, O = ci(s);
|
|
2947
2947
|
$e(() => {
|
|
2948
2948
|
T && h && f(p);
|
|
2949
2949
|
}, [T, p, h, f]), Y(() => {
|
|
@@ -2983,12 +2983,12 @@ const hi = (e) => {
|
|
|
2983
2983
|
wasDragging: r,
|
|
2984
2984
|
index: o,
|
|
2985
2985
|
items: s,
|
|
2986
|
-
newIndex:
|
|
2987
|
-
previousItems:
|
|
2986
|
+
newIndex: c,
|
|
2987
|
+
previousItems: a,
|
|
2988
2988
|
previousContainerId: l,
|
|
2989
2989
|
transition: u
|
|
2990
2990
|
} = e;
|
|
2991
|
-
return !u || !r ||
|
|
2991
|
+
return !u || !r || a !== s && o === c ? !1 : n ? !0 : c !== o && t === l;
|
|
2992
2992
|
}, gi = {
|
|
2993
2993
|
duration: 200,
|
|
2994
2994
|
easing: "ease"
|
|
@@ -3006,9 +3006,9 @@ function xi(e) {
|
|
|
3006
3006
|
node: r,
|
|
3007
3007
|
rect: o
|
|
3008
3008
|
} = e;
|
|
3009
|
-
const [s,
|
|
3009
|
+
const [s, c] = J(null), a = G(n);
|
|
3010
3010
|
return $e(() => {
|
|
3011
|
-
if (!t && n !==
|
|
3011
|
+
if (!t && n !== a.current && r.current) {
|
|
3012
3012
|
const l = o.current;
|
|
3013
3013
|
if (l) {
|
|
3014
3014
|
const u = ot(r.current, {
|
|
@@ -3019,12 +3019,12 @@ function xi(e) {
|
|
|
3019
3019
|
scaleX: l.width / u.width,
|
|
3020
3020
|
scaleY: l.height / u.height
|
|
3021
3021
|
};
|
|
3022
|
-
(f.x || f.y) &&
|
|
3022
|
+
(f.x || f.y) && c(f);
|
|
3023
3023
|
}
|
|
3024
3024
|
}
|
|
3025
|
-
n !==
|
|
3025
|
+
n !== a.current && (a.current = n);
|
|
3026
3026
|
}, [t, n, r, o]), Y(() => {
|
|
3027
|
-
s &&
|
|
3027
|
+
s && c(null);
|
|
3028
3028
|
}, [s]), s;
|
|
3029
3029
|
}
|
|
3030
3030
|
function to(e) {
|
|
@@ -3034,8 +3034,8 @@ function to(e) {
|
|
|
3034
3034
|
disabled: r,
|
|
3035
3035
|
data: o,
|
|
3036
3036
|
getNewIndex: s = hi,
|
|
3037
|
-
id:
|
|
3038
|
-
strategy:
|
|
3037
|
+
id: c,
|
|
3038
|
+
strategy: a,
|
|
3039
3039
|
resizeObserverConfig: l,
|
|
3040
3040
|
transition: u = gi
|
|
3041
3041
|
} = e;
|
|
@@ -3049,20 +3049,20 @@ function to(e) {
|
|
|
3049
3049
|
overIndex: b,
|
|
3050
3050
|
useDragOverlay: y,
|
|
3051
3051
|
strategy: T
|
|
3052
|
-
} = Be(Zr), j = bi(r, p), O = f.indexOf(
|
|
3052
|
+
} = Be(Zr), j = bi(r, p), O = f.indexOf(c), M = U(() => ({
|
|
3053
3053
|
sortable: {
|
|
3054
3054
|
containerId: d,
|
|
3055
3055
|
index: O,
|
|
3056
3056
|
items: f
|
|
3057
3057
|
},
|
|
3058
3058
|
...o
|
|
3059
|
-
}), [d, o, O, f]), _ = U(() => f.slice(f.indexOf(
|
|
3059
|
+
}), [d, o, O, f]), _ = U(() => f.slice(f.indexOf(c)), [f, c]), {
|
|
3060
3060
|
rect: I,
|
|
3061
3061
|
node: A,
|
|
3062
3062
|
isOver: V,
|
|
3063
3063
|
setNodeRef: P
|
|
3064
3064
|
} = si({
|
|
3065
|
-
id:
|
|
3065
|
+
id: c,
|
|
3066
3066
|
data: M,
|
|
3067
3067
|
disabled: j.droppable,
|
|
3068
3068
|
resizeObserverConfig: {
|
|
@@ -3081,21 +3081,21 @@ function to(e) {
|
|
|
3081
3081
|
setActivatorNodeRef: k,
|
|
3082
3082
|
transform: N
|
|
3083
3083
|
} = ti({
|
|
3084
|
-
id:
|
|
3084
|
+
id: c,
|
|
3085
3085
|
data: M,
|
|
3086
3086
|
attributes: {
|
|
3087
3087
|
...mi,
|
|
3088
3088
|
...n
|
|
3089
3089
|
},
|
|
3090
3090
|
disabled: j.draggable
|
|
3091
|
-
}), g = ko(P, C), D = !!S, L = D && !h && Et(x) && Et(b), F = !y && R, Z = F && L ? N : null, H = L ? Z ?? (
|
|
3091
|
+
}), g = ko(P, C), D = !!S, L = D && !h && Et(x) && Et(b), F = !y && R, Z = F && L ? N : null, H = L ? Z ?? (a ?? T)({
|
|
3092
3092
|
rects: v,
|
|
3093
3093
|
activeNodeRect: X,
|
|
3094
3094
|
activeIndex: x,
|
|
3095
3095
|
overIndex: b,
|
|
3096
3096
|
index: O
|
|
3097
3097
|
}) : null, ne = Et(x) && Et(b) ? s({
|
|
3098
|
-
id:
|
|
3098
|
+
id: c,
|
|
3099
3099
|
items: f,
|
|
3100
3100
|
activeIndex: x,
|
|
3101
3101
|
overIndex: b
|
|
@@ -3109,7 +3109,7 @@ function to(e) {
|
|
|
3109
3109
|
containerId: d,
|
|
3110
3110
|
isDragging: R,
|
|
3111
3111
|
isSorting: D,
|
|
3112
|
-
id:
|
|
3112
|
+
id: c,
|
|
3113
3113
|
index: O,
|
|
3114
3114
|
items: f,
|
|
3115
3115
|
newIndex: z.current.newIndex,
|
|
@@ -3194,8 +3194,8 @@ function yi() {
|
|
|
3194
3194
|
function t(d, x) {
|
|
3195
3195
|
return d === x && (d !== 0 || 1 / d === 1 / x) || d !== d && x !== x;
|
|
3196
3196
|
}
|
|
3197
|
-
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect,
|
|
3198
|
-
function
|
|
3197
|
+
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, c = e.useDebugValue;
|
|
3198
|
+
function a(d, x) {
|
|
3199
3199
|
var p = x(), h = r({ inst: { value: p, getSnapshot: x } }), v = h[0].inst, b = h[1];
|
|
3200
3200
|
return s(
|
|
3201
3201
|
function() {
|
|
@@ -3209,7 +3209,7 @@ function yi() {
|
|
|
3209
3209
|
});
|
|
3210
3210
|
},
|
|
3211
3211
|
[d]
|
|
3212
|
-
),
|
|
3212
|
+
), c(p), p;
|
|
3213
3213
|
}
|
|
3214
3214
|
function l(d) {
|
|
3215
3215
|
var x = d.getSnapshot;
|
|
@@ -3224,7 +3224,7 @@ function yi() {
|
|
|
3224
3224
|
function u(d, x) {
|
|
3225
3225
|
return x();
|
|
3226
3226
|
}
|
|
3227
|
-
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u :
|
|
3227
|
+
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : a;
|
|
3228
3228
|
return hn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, hn;
|
|
3229
3229
|
}
|
|
3230
3230
|
var pn = {};
|
|
@@ -3245,7 +3245,7 @@ function wi() {
|
|
|
3245
3245
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
3246
3246
|
), d = !0);
|
|
3247
3247
|
}
|
|
3248
|
-
b =
|
|
3248
|
+
b = c({
|
|
3249
3249
|
inst: { value: v, getSnapshot: h }
|
|
3250
3250
|
});
|
|
3251
3251
|
var y = b[0].inst, T = b[1];
|
|
@@ -3254,7 +3254,7 @@ function wi() {
|
|
|
3254
3254
|
y.value = v, y.getSnapshot = h, n(y) && T({ inst: y });
|
|
3255
3255
|
},
|
|
3256
3256
|
[p, v, h]
|
|
3257
|
-
),
|
|
3257
|
+
), a(
|
|
3258
3258
|
function() {
|
|
3259
3259
|
return n(y) && T({ inst: y }), p(function() {
|
|
3260
3260
|
n(y) && T({ inst: y });
|
|
@@ -3277,7 +3277,7 @@ function wi() {
|
|
|
3277
3277
|
return h();
|
|
3278
3278
|
}
|
|
3279
3279
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3280
|
-
var o = oe, s = typeof Object.is == "function" ? Object.is : e,
|
|
3280
|
+
var o = oe, s = typeof Object.is == "function" ? Object.is : e, c = o.useState, a = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
3281
3281
|
pn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3282
3282
|
})()), pn;
|
|
3283
3283
|
}
|
|
@@ -3293,14 +3293,14 @@ function Si() {
|
|
|
3293
3293
|
function n(u, f) {
|
|
3294
3294
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
3295
3295
|
}
|
|
3296
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef,
|
|
3296
|
+
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, c = e.useEffect, a = e.useMemo, l = e.useDebugValue;
|
|
3297
3297
|
return fn.useSyncExternalStoreWithSelector = function(u, f, d, x, p) {
|
|
3298
3298
|
var h = s(null);
|
|
3299
3299
|
if (h.current === null) {
|
|
3300
3300
|
var v = { hasValue: !1, value: null };
|
|
3301
3301
|
h.current = v;
|
|
3302
3302
|
} else v = h.current;
|
|
3303
|
-
h =
|
|
3303
|
+
h = a(
|
|
3304
3304
|
function() {
|
|
3305
3305
|
function y(_) {
|
|
3306
3306
|
if (!T) {
|
|
@@ -3328,7 +3328,7 @@ function Si() {
|
|
|
3328
3328
|
[f, d, x, p]
|
|
3329
3329
|
);
|
|
3330
3330
|
var b = o(u, h[0], h[1]);
|
|
3331
|
-
return
|
|
3331
|
+
return c(
|
|
3332
3332
|
function() {
|
|
3333
3333
|
v.hasValue = !0, v.value = b;
|
|
3334
3334
|
},
|
|
@@ -3344,14 +3344,14 @@ function Ci() {
|
|
|
3344
3344
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
3345
3345
|
}
|
|
3346
3346
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3347
|
-
var t = oe, n = no(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef,
|
|
3347
|
+
var t = oe, n = no(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, c = t.useEffect, a = t.useMemo, l = t.useDebugValue;
|
|
3348
3348
|
gn.useSyncExternalStoreWithSelector = function(u, f, d, x, p) {
|
|
3349
3349
|
var h = s(null);
|
|
3350
3350
|
if (h.current === null) {
|
|
3351
3351
|
var v = { hasValue: !1, value: null };
|
|
3352
3352
|
h.current = v;
|
|
3353
3353
|
} else v = h.current;
|
|
3354
|
-
h =
|
|
3354
|
+
h = a(
|
|
3355
3355
|
function() {
|
|
3356
3356
|
function y(_) {
|
|
3357
3357
|
if (!T) {
|
|
@@ -3380,7 +3380,7 @@ function Ci() {
|
|
|
3380
3380
|
[f, d, x, p]
|
|
3381
3381
|
);
|
|
3382
3382
|
var b = o(u, h[0], h[1]);
|
|
3383
|
-
return
|
|
3383
|
+
return c(
|
|
3384
3384
|
function() {
|
|
3385
3385
|
v.hasValue = !0, v.value = b;
|
|
3386
3386
|
},
|
|
@@ -3461,9 +3461,9 @@ class oo {
|
|
|
3461
3461
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (r) => {
|
|
3462
3462
|
var o, s;
|
|
3463
3463
|
this.listeners.add(r);
|
|
3464
|
-
const
|
|
3464
|
+
const c = (s = (o = this.options) == null ? void 0 : o.onSubscribe) == null ? void 0 : s.call(o, r, this);
|
|
3465
3465
|
return () => {
|
|
3466
|
-
this.listeners.delete(r),
|
|
3466
|
+
this.listeners.delete(r), c?.();
|
|
3467
3467
|
};
|
|
3468
3468
|
}, this.prevState = t, this.state = t, this.options = n;
|
|
3469
3469
|
}
|
|
@@ -3532,20 +3532,20 @@ const be = new oo({
|
|
|
3532
3532
|
function $i(e, t) {
|
|
3533
3533
|
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((f) => ({ id: f, label: f }))).filter(
|
|
3534
3534
|
(f) => Object.prototype.hasOwnProperty.call(n, f.id)
|
|
3535
|
-
), { tableId: s } = be.state,
|
|
3535
|
+
), { tableId: s } = be.state, c = JSON.parse(
|
|
3536
3536
|
localStorage.getItem(so(s)) || "[]"
|
|
3537
|
-
),
|
|
3538
|
-
...
|
|
3539
|
-
...o.filter((f) => !
|
|
3537
|
+
), a = [
|
|
3538
|
+
...c.map((f) => o.find((d) => d.id === f)).filter(Boolean),
|
|
3539
|
+
...o.filter((f) => !c.includes(f.id))
|
|
3540
3540
|
], l = JSON.parse(
|
|
3541
3541
|
localStorage.getItem(io(s)) || "{}"
|
|
3542
|
-
), u =
|
|
3542
|
+
), u = a.reduce((f, d) => (f[d.id] = l[d.id] ?? !0, f), {});
|
|
3543
3543
|
be.setState((f) => ({
|
|
3544
3544
|
...f,
|
|
3545
3545
|
data: e,
|
|
3546
|
-
columnOrder:
|
|
3546
|
+
columnOrder: a,
|
|
3547
3547
|
visibility: u,
|
|
3548
|
-
sortableColumns:
|
|
3548
|
+
sortableColumns: a.map((d) => ({
|
|
3549
3549
|
id: d.id,
|
|
3550
3550
|
label: d.label,
|
|
3551
3551
|
sortable: !0,
|
|
@@ -3627,8 +3627,8 @@ const Vi = Rn(
|
|
|
3627
3627
|
absoluteStrokeWidth: r,
|
|
3628
3628
|
className: o = "",
|
|
3629
3629
|
children: s,
|
|
3630
|
-
iconNode:
|
|
3631
|
-
...
|
|
3630
|
+
iconNode: c,
|
|
3631
|
+
...a
|
|
3632
3632
|
}, l) => bn(
|
|
3633
3633
|
"svg",
|
|
3634
3634
|
{
|
|
@@ -3639,11 +3639,11 @@ const Vi = Rn(
|
|
|
3639
3639
|
stroke: e,
|
|
3640
3640
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3641
3641
|
className: ao("lucide", o),
|
|
3642
|
-
...!s && !Fi(
|
|
3643
|
-
...
|
|
3642
|
+
...!s && !Fi(a) && { "aria-hidden": "true" },
|
|
3643
|
+
...a
|
|
3644
3644
|
},
|
|
3645
3645
|
[
|
|
3646
|
-
...
|
|
3646
|
+
...c.map(([u, f]) => bn(u, f)),
|
|
3647
3647
|
...Array.isArray(s) ? s : [s]
|
|
3648
3648
|
]
|
|
3649
3649
|
)
|
|
@@ -3792,15 +3792,15 @@ function Ra({
|
|
|
3792
3792
|
cursor: r,
|
|
3793
3793
|
borderRight: o,
|
|
3794
3794
|
borderRightColor: s,
|
|
3795
|
-
backgroundColor:
|
|
3795
|
+
backgroundColor: c
|
|
3796
3796
|
}) {
|
|
3797
|
-
const { setNodeRef:
|
|
3797
|
+
const { setNodeRef: a, attributes: l, listeners: u, transform: f, transition: d } = to({ id: e });
|
|
3798
3798
|
return /* @__PURE__ */ i.jsx(
|
|
3799
3799
|
ae.ColumnHeader,
|
|
3800
3800
|
{
|
|
3801
|
-
ref:
|
|
3801
|
+
ref: a,
|
|
3802
3802
|
onClick: n,
|
|
3803
|
-
backgroundColor:
|
|
3803
|
+
backgroundColor: c,
|
|
3804
3804
|
w: e === "id" || e === "row_number" ? "80px" : void 0,
|
|
3805
3805
|
style: {
|
|
3806
3806
|
transform: et.Transform.toString(f),
|
|
@@ -3818,7 +3818,7 @@ function Ra({
|
|
|
3818
3818
|
);
|
|
3819
3819
|
}
|
|
3820
3820
|
function Ea() {
|
|
3821
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = St(be),
|
|
3821
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = St(be), c = e.map((a) => o.find((l) => l.id === a.id)).filter((a) => a !== void 0).filter((a) => t[a.id]);
|
|
3822
3822
|
return /* @__PURE__ */ i.jsx(ae.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ i.jsxs(ae.Row, { height: "28px", children: [
|
|
3823
3823
|
s?.showSNo && /* @__PURE__ */ i.jsx(
|
|
3824
3824
|
ae.ColumnHeader,
|
|
@@ -3830,16 +3830,16 @@ function Ea() {
|
|
|
3830
3830
|
children: s.indexChildren || "S.No"
|
|
3831
3831
|
}
|
|
3832
3832
|
),
|
|
3833
|
-
|
|
3834
|
-
const l = n ===
|
|
3833
|
+
c.map((a) => {
|
|
3834
|
+
const l = n === a?.id;
|
|
3835
3835
|
return /* @__PURE__ */ i.jsx(
|
|
3836
3836
|
Ra,
|
|
3837
3837
|
{
|
|
3838
|
-
id:
|
|
3839
|
-
onClick: () =>
|
|
3840
|
-
cursor:
|
|
3838
|
+
id: a?.id,
|
|
3839
|
+
onClick: () => a?.sortable && Li(a?.id),
|
|
3840
|
+
cursor: a?.sortable ? "pointer" : "default",
|
|
3841
3841
|
borderRight: "2px solid #dcdcdc",
|
|
3842
|
-
backgroundColor:
|
|
3842
|
+
backgroundColor: a?.backgroundColor,
|
|
3843
3843
|
children: /* @__PURE__ */ i.jsxs(
|
|
3844
3844
|
"span",
|
|
3845
3845
|
{
|
|
@@ -3850,13 +3850,13 @@ function Ea() {
|
|
|
3850
3850
|
userSelect: "none"
|
|
3851
3851
|
},
|
|
3852
3852
|
children: [
|
|
3853
|
-
|
|
3854
|
-
|
|
3853
|
+
a?.label,
|
|
3854
|
+
a?.sortable && (l ? r === "asc" ? /* @__PURE__ */ i.jsx(Xi, { size: 14 }) : /* @__PURE__ */ i.jsx(Wi, { size: 14 }) : /* @__PURE__ */ i.jsx(Ui, { size: 14, opacity: 0.4 }))
|
|
3855
3855
|
]
|
|
3856
3856
|
}
|
|
3857
3857
|
)
|
|
3858
3858
|
},
|
|
3859
|
-
|
|
3859
|
+
a?.id
|
|
3860
3860
|
);
|
|
3861
3861
|
}),
|
|
3862
3862
|
s?.showActionColumn && /* @__PURE__ */ i.jsx(
|
|
@@ -3886,10 +3886,10 @@ function Fa({
|
|
|
3886
3886
|
onPageChange: r,
|
|
3887
3887
|
onPageSizeChange: o,
|
|
3888
3888
|
siblingCount: s = 2,
|
|
3889
|
-
pageSizeOptions:
|
|
3889
|
+
pageSizeOptions: c = _a
|
|
3890
3890
|
}) {
|
|
3891
|
-
const
|
|
3892
|
-
items:
|
|
3891
|
+
const a = Tr({
|
|
3892
|
+
items: c.map((l) => ({
|
|
3893
3893
|
label: String(l),
|
|
3894
3894
|
value: String(l)
|
|
3895
3895
|
}))
|
|
@@ -3900,7 +3900,7 @@ function Fa({
|
|
|
3900
3900
|
/* @__PURE__ */ i.jsxs(
|
|
3901
3901
|
te.Root,
|
|
3902
3902
|
{
|
|
3903
|
-
collection:
|
|
3903
|
+
collection: a,
|
|
3904
3904
|
size: "sm",
|
|
3905
3905
|
width: "60px",
|
|
3906
3906
|
onValueChange: (l) => o?.(Number(l.items[0].value)),
|
|
@@ -3911,7 +3911,7 @@ function Fa({
|
|
|
3911
3911
|
/* @__PURE__ */ i.jsx(La, { children: /* @__PURE__ */ i.jsx(Na, { placeholder: "" }) }),
|
|
3912
3912
|
/* @__PURE__ */ i.jsx(za, { children: /* @__PURE__ */ i.jsx(Pa, {}) })
|
|
3913
3913
|
] }),
|
|
3914
|
-
/* @__PURE__ */ i.jsx(Ge, { children: /* @__PURE__ */ i.jsx(Ta, { children: /* @__PURE__ */ i.jsx(Oa, { children:
|
|
3914
|
+
/* @__PURE__ */ i.jsx(Ge, { children: /* @__PURE__ */ i.jsx(Ta, { children: /* @__PURE__ */ i.jsx(Oa, { children: a.items.map((l) => /* @__PURE__ */ i.jsxs(Ma, { item: l.value, children: [
|
|
3915
3915
|
l.label,
|
|
3916
3916
|
/* @__PURE__ */ i.jsx(te.ItemIndicator, {})
|
|
3917
3917
|
] }, l.value)) }) }) })
|
|
@@ -3957,25 +3957,25 @@ function Ba({
|
|
|
3957
3957
|
onRowSelect: r,
|
|
3958
3958
|
startIndex: o = 0
|
|
3959
3959
|
}) {
|
|
3960
|
-
const { columnOrder: s, visibility:
|
|
3961
|
-
return /* @__PURE__ */ i.jsx(ae.Body, { children: e.map((
|
|
3960
|
+
const { columnOrder: s, visibility: c } = St(be);
|
|
3961
|
+
return /* @__PURE__ */ i.jsx(ae.Body, { children: e.map((a, l) => /* @__PURE__ */ i.jsxs(
|
|
3962
3962
|
ae.Row,
|
|
3963
3963
|
{
|
|
3964
|
-
onClick: () => r?.(
|
|
3964
|
+
onClick: () => r?.(a.__raw),
|
|
3965
3965
|
_hover: {
|
|
3966
3966
|
bg: "blue.50"
|
|
3967
3967
|
},
|
|
3968
3968
|
children: [
|
|
3969
3969
|
n?.showSNo && /* @__PURE__ */ i.jsx(ae.Cell, { textAlign: "center", fontWeight: "medium", children: o + l + 1 }),
|
|
3970
|
-
s.filter((u) =>
|
|
3970
|
+
s.filter((u) => c[u.id]).map((u) => /* @__PURE__ */ i.jsx(ae.Cell, { children: a[u.id] }, u.id)),
|
|
3971
3971
|
n?.showActionColumn && /* @__PURE__ */ i.jsx(ae.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs(Ie.Root, { children: [
|
|
3972
3972
|
/* @__PURE__ */ i.jsx(Wa, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(aa, { size: 16 }) }) }),
|
|
3973
3973
|
/* @__PURE__ */ i.jsx(Ge, { children: /* @__PURE__ */ i.jsx(Ha, { children: /* @__PURE__ */ i.jsx(Va, { children: t.filter(
|
|
3974
|
-
(u) => typeof u.visible == "function" ? u.visible(
|
|
3974
|
+
(u) => typeof u.visible == "function" ? u.visible(a.__raw) : u.visible !== !1
|
|
3975
3975
|
).map((u) => /* @__PURE__ */ i.jsxs(
|
|
3976
3976
|
Ya,
|
|
3977
3977
|
{
|
|
3978
|
-
onClick: () => u.onClick(
|
|
3978
|
+
onClick: () => u.onClick(a.__raw),
|
|
3979
3979
|
colorScheme: u.colorScheme,
|
|
3980
3980
|
value: u.label,
|
|
3981
3981
|
children: [
|
|
@@ -3989,7 +3989,7 @@ function Ba({
|
|
|
3989
3989
|
n?.showColumnVisibilityMenu && /* @__PURE__ */ i.jsx(ae.Cell, {})
|
|
3990
3990
|
]
|
|
3991
3991
|
},
|
|
3992
|
-
|
|
3992
|
+
a.__key || a.id
|
|
3993
3993
|
)) });
|
|
3994
3994
|
}
|
|
3995
3995
|
function Ua({
|
|
@@ -4005,8 +4005,8 @@ function fu({
|
|
|
4005
4005
|
loading: r = !1,
|
|
4006
4006
|
loadingChildren: o,
|
|
4007
4007
|
skeletonLoading: s = !1,
|
|
4008
|
-
emptyMessage:
|
|
4009
|
-
actions:
|
|
4008
|
+
emptyMessage: c = "No data",
|
|
4009
|
+
actions: a,
|
|
4010
4010
|
page: l = 1,
|
|
4011
4011
|
pageSize: u = 10,
|
|
4012
4012
|
onPageChange: f,
|
|
@@ -4061,7 +4061,7 @@ function fu({
|
|
|
4061
4061
|
),
|
|
4062
4062
|
/* @__PURE__ */ i.jsxs(ae.Root, { variant: "outline", w: "100%", size: x, children: [
|
|
4063
4063
|
/* @__PURE__ */ i.jsx(Ea, {}),
|
|
4064
|
-
V ? /* @__PURE__ */ i.jsx(Ua, { rows: u, columns: n.length + (
|
|
4064
|
+
V ? /* @__PURE__ */ i.jsx(Ua, { rows: u, columns: n.length + (a ? 2 : 0) }) : P ? /* @__PURE__ */ i.jsx(ae.Body, { children: /* @__PURE__ */ i.jsx(ae.Row, { children: /* @__PURE__ */ i.jsx(ae.Cell, { colSpan: n.length + (a ? 1 : 0), children: /* @__PURE__ */ i.jsx(
|
|
4065
4065
|
De,
|
|
4066
4066
|
{
|
|
4067
4067
|
display: "flex",
|
|
@@ -4069,13 +4069,13 @@ function fu({
|
|
|
4069
4069
|
justifyContent: "center",
|
|
4070
4070
|
minH: "200px",
|
|
4071
4071
|
color: "gray.500",
|
|
4072
|
-
children:
|
|
4072
|
+
children: c
|
|
4073
4073
|
}
|
|
4074
4074
|
) }) }) }) : /* @__PURE__ */ i.jsx(
|
|
4075
4075
|
Ba,
|
|
4076
4076
|
{
|
|
4077
4077
|
data: M,
|
|
4078
|
-
actions:
|
|
4078
|
+
actions: a,
|
|
4079
4079
|
actionConfig: h,
|
|
4080
4080
|
onRowSelect: b,
|
|
4081
4081
|
startIndex: _
|
|
@@ -4107,16 +4107,16 @@ const Ga = m(Re.Root), Xa = m(Re.HiddenInput), qa = m(Re.Control), Ka = m(Re.Lab
|
|
|
4107
4107
|
label: r,
|
|
4108
4108
|
helperText: o,
|
|
4109
4109
|
isDisabled: s,
|
|
4110
|
-
required:
|
|
4111
|
-
errorText:
|
|
4110
|
+
required: c,
|
|
4111
|
+
errorText: a
|
|
4112
4112
|
}) => /* @__PURE__ */ i.jsxs(Ga, { value: e, onChange: t, size: n, children: [
|
|
4113
4113
|
/* @__PURE__ */ i.jsx(Xa, {}),
|
|
4114
4114
|
/* @__PURE__ */ i.jsx(
|
|
4115
4115
|
qa,
|
|
4116
4116
|
{
|
|
4117
4117
|
disabled: s,
|
|
4118
|
-
required:
|
|
4119
|
-
errorText:
|
|
4118
|
+
required: c,
|
|
4119
|
+
errorText: a,
|
|
4120
4120
|
helperText: o
|
|
4121
4121
|
}
|
|
4122
4122
|
),
|
|
@@ -4129,8 +4129,8 @@ function ic({
|
|
|
4129
4129
|
variant: r = "outline",
|
|
4130
4130
|
items: o = [],
|
|
4131
4131
|
itemToString: s,
|
|
4132
|
-
itemToValue:
|
|
4133
|
-
renderItem:
|
|
4132
|
+
itemToValue: c,
|
|
4133
|
+
renderItem: a,
|
|
4134
4134
|
value: l,
|
|
4135
4135
|
loading: u,
|
|
4136
4136
|
error: f,
|
|
@@ -4150,7 +4150,7 @@ function ic({
|
|
|
4150
4150
|
const [_, I] = J(""), { collection: A, set: V } = _o({
|
|
4151
4151
|
initialItems: o,
|
|
4152
4152
|
itemToString: s,
|
|
4153
|
-
itemToValue:
|
|
4153
|
+
itemToValue: c
|
|
4154
4154
|
}), P = U(() => {
|
|
4155
4155
|
if (!_) return o;
|
|
4156
4156
|
const S = _.toLowerCase();
|
|
@@ -4171,11 +4171,11 @@ function ic({
|
|
|
4171
4171
|
onInputValueChange: (S) => {
|
|
4172
4172
|
h?.(S.inputValue), I(S.inputValue);
|
|
4173
4173
|
},
|
|
4174
|
-
value: l ? [
|
|
4174
|
+
value: l ? [c(l)] : [],
|
|
4175
4175
|
onValueChange: (S) => {
|
|
4176
4176
|
const W = S.value?.[0];
|
|
4177
4177
|
if (!W) return;
|
|
4178
|
-
const X = A.items.find(($) =>
|
|
4178
|
+
const X = A.items.find(($) => c($) === W);
|
|
4179
4179
|
X && v?.(X);
|
|
4180
4180
|
},
|
|
4181
4181
|
positioning: { sameWidth: !1, placement: "bottom-start" },
|
|
@@ -4194,9 +4194,9 @@ function ic({
|
|
|
4194
4194
|
/* @__PURE__ */ i.jsx(Or, { size: "xs", borderWidth: "1px" }),
|
|
4195
4195
|
/* @__PURE__ */ i.jsx(To, { children: "Loading..." })
|
|
4196
4196
|
] }) : f ? /* @__PURE__ */ i.jsx(q, { p: "2", color: "red.500", fontSize: "sm", children: d || "Something went wrong" }) : A.items.map((S) => /* @__PURE__ */ i.jsxs(Me.Item, { item: S, ...M, children: [
|
|
4197
|
-
|
|
4197
|
+
a(S),
|
|
4198
4198
|
/* @__PURE__ */ i.jsx(Me.ItemIndicator, {})
|
|
4199
|
-
] },
|
|
4199
|
+
] }, c(S))),
|
|
4200
4200
|
p && !f && !u && /* @__PURE__ */ i.jsx(q, { p: "2", color: "fg.muted", fontSize: "sm", children: p })
|
|
4201
4201
|
] }) })
|
|
4202
4202
|
]
|
|
@@ -4227,8 +4227,8 @@ const se = " to ", br = 10, We = {
|
|
|
4227
4227
|
if (n === 4)
|
|
4228
4228
|
return r >= We.YEAR_MIN && r <= We.YEAR_MAX ? r : t;
|
|
4229
4229
|
if (n > 0 && n < 4) {
|
|
4230
|
-
const o = t.toString(), s = 4 - n,
|
|
4231
|
-
return parseInt(
|
|
4230
|
+
const o = t.toString(), s = 4 - n, c = o.substring(0, s);
|
|
4231
|
+
return parseInt(c + e);
|
|
4232
4232
|
}
|
|
4233
4233
|
return t;
|
|
4234
4234
|
}, dt = (e) => {
|
|
@@ -4236,8 +4236,8 @@ const se = " to ", br = 10, We = {
|
|
|
4236
4236
|
const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
|
|
4237
4237
|
if (n.length === 0) return null;
|
|
4238
4238
|
const { year: r, month: o, day: s } = Ln();
|
|
4239
|
-
let
|
|
4240
|
-
return n.length === 1 ? (
|
|
4239
|
+
let c, a, l;
|
|
4240
|
+
return n.length === 1 ? (c = parseInt(n[0]) || s, a = o, l = r) : n.length === 2 ? (c = parseInt(n[0]) || s, a = parseInt(n[1]) || o, l = r) : (c = parseInt(n[0]) || s, a = parseInt(n[1]) || o, l = cc(n[2], r)), a = Math.max(1, Math.min(We.MONTH_MAX, a)), c = Math.max(1, Math.min(We.DAY_MAX, c)), `${l}-${String(a).padStart(2, "0")}-${String(c).padStart(2, "0")}`;
|
|
4241
4241
|
}, Ce = (e) => {
|
|
4242
4242
|
if (!e) return "";
|
|
4243
4243
|
const [t, n, r] = e.split("-");
|
|
@@ -4273,7 +4273,7 @@ function pc({
|
|
|
4273
4273
|
onChange: t,
|
|
4274
4274
|
disabled: n = !1
|
|
4275
4275
|
}) {
|
|
4276
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [s,
|
|
4276
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [s, c] = J(() => r && o ? `${Ce(r)}${se}${Ce(o)}` : r ? Ce(r) : ""), [a, l] = J(!1), u = G(null);
|
|
4277
4277
|
Y(() => {
|
|
4278
4278
|
const h = (v) => {
|
|
4279
4279
|
v.ctrlKey && v.key === "d" && !v.shiftKey && !v.metaKey && (v.preventDefault(), u.current?.focus());
|
|
@@ -4292,7 +4292,7 @@ function pc({
|
|
|
4292
4292
|
v = `${ft(b.trim())} to ${ft(y.trim())}`;
|
|
4293
4293
|
} else
|
|
4294
4294
|
v = ft(v);
|
|
4295
|
-
|
|
4295
|
+
c(v);
|
|
4296
4296
|
}, d = () => {
|
|
4297
4297
|
const h = s.trim();
|
|
4298
4298
|
if (!h) {
|
|
@@ -4305,54 +4305,54 @@ function pc({
|
|
|
4305
4305
|
const [j, O] = T < y ? [T, y] : [y, T], M = `${Ce(j)}${se}${Ce(
|
|
4306
4306
|
O
|
|
4307
4307
|
)}`;
|
|
4308
|
-
|
|
4308
|
+
c(M), t(`${j}|${O}`);
|
|
4309
4309
|
} else if (y && !b)
|
|
4310
|
-
|
|
4310
|
+
c(`${Ce(y)}${se}`), t(void 0);
|
|
4311
4311
|
else if (y && b) {
|
|
4312
4312
|
const j = ac(), [O, M] = j < y ? [j, y] : [y, j], _ = `${Ce(O)}${se}${Ce(
|
|
4313
4313
|
M
|
|
4314
4314
|
)}`;
|
|
4315
|
-
|
|
4315
|
+
c(_), t(`${O}|${M}`);
|
|
4316
4316
|
} else
|
|
4317
|
-
|
|
4317
|
+
c(""), t(void 0);
|
|
4318
4318
|
} else {
|
|
4319
4319
|
const v = dt(h);
|
|
4320
|
-
v ? (
|
|
4320
|
+
v ? (c(`${Ce(v)}${se}`), t(void 0)) : (c(""), t(void 0));
|
|
4321
4321
|
}
|
|
4322
4322
|
}, x = (h) => {
|
|
4323
4323
|
if (h.key !== "Enter") return;
|
|
4324
4324
|
h.preventDefault();
|
|
4325
4325
|
const v = u.current?.selectionStart || 0, b = s.indexOf(se);
|
|
4326
4326
|
if (!s.trim()) {
|
|
4327
|
-
|
|
4327
|
+
c(`${yr()}${se}`);
|
|
4328
4328
|
return;
|
|
4329
4329
|
}
|
|
4330
4330
|
if (b === -1) {
|
|
4331
4331
|
const T = dt(s.trim());
|
|
4332
|
-
T &&
|
|
4332
|
+
T && c(`${Ce(T)}${se}`);
|
|
4333
4333
|
return;
|
|
4334
4334
|
}
|
|
4335
4335
|
if (v <= b + se.length) {
|
|
4336
4336
|
const T = s.substring(0, b).trim(), j = s.substring(b + se.length), O = dt(T);
|
|
4337
|
-
O &&
|
|
4337
|
+
O && c(`${Ce(O)}${se}${j}`);
|
|
4338
4338
|
return;
|
|
4339
4339
|
}
|
|
4340
4340
|
if (s.substring(b + se.length).trim())
|
|
4341
4341
|
d(), u.current?.blur();
|
|
4342
4342
|
else {
|
|
4343
4343
|
const T = s.substring(0, b + se.length) + yr();
|
|
4344
|
-
|
|
4344
|
+
c(T), setTimeout(() => {
|
|
4345
4345
|
d(), u.current?.blur();
|
|
4346
4346
|
}, 0);
|
|
4347
4347
|
}
|
|
4348
4348
|
}, p = () => {
|
|
4349
|
-
|
|
4349
|
+
c(""), t(void 0);
|
|
4350
4350
|
};
|
|
4351
4351
|
return /* @__PURE__ */ i.jsx(Mr, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Un, { position: "revert", children: [
|
|
4352
4352
|
/* @__PURE__ */ i.jsxs(
|
|
4353
4353
|
uc,
|
|
4354
4354
|
{
|
|
4355
|
-
open:
|
|
4355
|
+
open: a,
|
|
4356
4356
|
onEscapeKeyDown: () => {
|
|
4357
4357
|
l(!1);
|
|
4358
4358
|
},
|
|
@@ -4436,8 +4436,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4436
4436
|
placeholder: r,
|
|
4437
4437
|
size: o = "xs",
|
|
4438
4438
|
variant: s = "outline",
|
|
4439
|
-
width:
|
|
4440
|
-
label:
|
|
4439
|
+
width: c = "100%",
|
|
4440
|
+
label: a,
|
|
4441
4441
|
helperText: l,
|
|
4442
4442
|
isDisabled: u = !1,
|
|
4443
4443
|
required: f = !1,
|
|
@@ -4447,8 +4447,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4447
4447
|
min: h = 0,
|
|
4448
4448
|
max: v = 100,
|
|
4449
4449
|
step: b = 1
|
|
4450
|
-
}) => /* @__PURE__ */ i.jsxs(gc, { width:
|
|
4451
|
-
x && /* @__PURE__ */ i.jsx(vc, { children:
|
|
4450
|
+
}) => /* @__PURE__ */ i.jsxs(gc, { width: c, children: [
|
|
4451
|
+
x && /* @__PURE__ */ i.jsx(vc, { children: a }),
|
|
4452
4452
|
/* @__PURE__ */ i.jsx(Mr, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4453
4453
|
En,
|
|
4454
4454
|
{
|
|
@@ -4474,8 +4474,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4474
4474
|
onChange: r,
|
|
4475
4475
|
placeholder: o,
|
|
4476
4476
|
size: s = "xs",
|
|
4477
|
-
width:
|
|
4478
|
-
variant:
|
|
4477
|
+
width: c = "100%",
|
|
4478
|
+
variant: a = "outline",
|
|
4479
4479
|
helperText: l,
|
|
4480
4480
|
isDisabled: u,
|
|
4481
4481
|
required: f,
|
|
@@ -4490,9 +4490,9 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4490
4490
|
Sc,
|
|
4491
4491
|
{
|
|
4492
4492
|
collection: p,
|
|
4493
|
-
variant:
|
|
4493
|
+
variant: a,
|
|
4494
4494
|
size: s,
|
|
4495
|
-
width:
|
|
4495
|
+
width: c,
|
|
4496
4496
|
value: n ? [n] : [],
|
|
4497
4497
|
onValueChange: (h) => r?.(h.value[0]),
|
|
4498
4498
|
children: [
|
|
@@ -4545,11 +4545,11 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4545
4545
|
);
|
|
4546
4546
|
Nn(e, r);
|
|
4547
4547
|
}, Pc = m(Re.Root), Fc = m(Re.HiddenInput), Yc = m(Re.Control), Vc = m(xt.Root), Hc = m(xt.Track), Wc = m(xt.Range), Bc = m(xt.Thumbs), Uc = m(xt.Control), Gc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4548
|
-
const { attributes: r, listeners: o, setNodeRef: s, transform:
|
|
4548
|
+
const { attributes: r, listeners: o, setNodeRef: s, transform: c, transition: a } = to({
|
|
4549
4549
|
id: e.id
|
|
4550
4550
|
}), l = {
|
|
4551
|
-
transform: et.Transform.toString(
|
|
4552
|
-
transition:
|
|
4551
|
+
transform: et.Transform.toString(c),
|
|
4552
|
+
transition: a
|
|
4553
4553
|
};
|
|
4554
4554
|
return /* @__PURE__ */ i.jsxs(
|
|
4555
4555
|
Ne,
|
|
@@ -4671,8 +4671,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4671
4671
|
onClear: r,
|
|
4672
4672
|
filters: o,
|
|
4673
4673
|
pageKey: s = "default",
|
|
4674
|
-
onLoadPreset:
|
|
4675
|
-
activePresetName:
|
|
4674
|
+
onLoadPreset: c,
|
|
4675
|
+
activePresetName: a,
|
|
4676
4676
|
onReorder: l,
|
|
4677
4677
|
open: u,
|
|
4678
4678
|
onOpenChange: f
|
|
@@ -4762,7 +4762,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4762
4762
|
{
|
|
4763
4763
|
justify: "space-between",
|
|
4764
4764
|
border: "1px solid",
|
|
4765
|
-
borderColor:
|
|
4765
|
+
borderColor: a === h.name ? "blue.300" : "gray.200",
|
|
4766
4766
|
rounded: "md",
|
|
4767
4767
|
p: 2,
|
|
4768
4768
|
children: [
|
|
@@ -4781,7 +4781,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4781
4781
|
...b,
|
|
4782
4782
|
value: h.values[b.id] ?? b.value
|
|
4783
4783
|
}));
|
|
4784
|
-
|
|
4784
|
+
c?.(v, h.name);
|
|
4785
4785
|
},
|
|
4786
4786
|
children: "Load"
|
|
4787
4787
|
}
|
|
@@ -4815,8 +4815,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4815
4815
|
onReorder: r,
|
|
4816
4816
|
onSizeChange: o,
|
|
4817
4817
|
onClear: s,
|
|
4818
|
-
maxToolbarUnits:
|
|
4819
|
-
pageKey:
|
|
4818
|
+
maxToolbarUnits: c,
|
|
4819
|
+
pageKey: a,
|
|
4820
4820
|
onLoadPreset: l,
|
|
4821
4821
|
activePresetName: u,
|
|
4822
4822
|
filterDrawerSize: f = "sm"
|
|
@@ -4843,8 +4843,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4843
4843
|
onReorder: r,
|
|
4844
4844
|
onSizeChange: o,
|
|
4845
4845
|
onClear: s,
|
|
4846
|
-
maxToolbarUnits:
|
|
4847
|
-
pageKey:
|
|
4846
|
+
maxToolbarUnits: c,
|
|
4847
|
+
pageKey: a,
|
|
4848
4848
|
filters: t,
|
|
4849
4849
|
onLoadPreset: l,
|
|
4850
4850
|
activePresetName: u,
|
|
@@ -4871,8 +4871,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4871
4871
|
label: r,
|
|
4872
4872
|
leftIcon: o,
|
|
4873
4873
|
rightIcon: s,
|
|
4874
|
-
isDisabled:
|
|
4875
|
-
colorScheme:
|
|
4874
|
+
isDisabled: c,
|
|
4875
|
+
colorScheme: a,
|
|
4876
4876
|
loading: l,
|
|
4877
4877
|
loadingText: u,
|
|
4878
4878
|
rounded: f,
|
|
@@ -4883,8 +4883,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4883
4883
|
onClick: e,
|
|
4884
4884
|
size: t,
|
|
4885
4885
|
variant: n,
|
|
4886
|
-
disabled:
|
|
4887
|
-
colorPalette:
|
|
4886
|
+
disabled: c,
|
|
4887
|
+
colorPalette: a,
|
|
4888
4888
|
loading: l,
|
|
4889
4889
|
loadingText: u,
|
|
4890
4890
|
rounded: f,
|
|
@@ -4903,8 +4903,8 @@ function xu({
|
|
|
4903
4903
|
title: r = "Confirm Action",
|
|
4904
4904
|
description: o = "Are you sure you want to continue?",
|
|
4905
4905
|
confirmLabel: s = "Confirm",
|
|
4906
|
-
cancelLabel:
|
|
4907
|
-
icon:
|
|
4906
|
+
cancelLabel: c = "Cancel",
|
|
4907
|
+
icon: a,
|
|
4908
4908
|
isLoading: l = !1,
|
|
4909
4909
|
confirmButtonColorScheme: u = "#4169e1"
|
|
4910
4910
|
}) {
|
|
@@ -4913,7 +4913,7 @@ function xu({
|
|
|
4913
4913
|
/* @__PURE__ */ i.jsx(ll, { children: /* @__PURE__ */ i.jsxs(ul, { maxW: "480px", children: [
|
|
4914
4914
|
/* @__PURE__ */ i.jsx(dl, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(pl, { children: r }) }),
|
|
4915
4915
|
/* @__PURE__ */ i.jsx(fl, { p: 6, children: /* @__PURE__ */ i.jsxs(Pt, { gap: 4, align: "center", textAlign: "center", children: [
|
|
4916
|
-
/* @__PURE__ */ i.jsx(De, { color: "orange.500", children:
|
|
4916
|
+
/* @__PURE__ */ i.jsx(De, { color: "orange.500", children: a ?? /* @__PURE__ */ i.jsx(lo, { size: 40 }) }),
|
|
4917
4917
|
/* @__PURE__ */ i.jsx(q, { fontSize: "sm", color: "gray.600", children: o })
|
|
4918
4918
|
] }) }),
|
|
4919
4919
|
/* @__PURE__ */ i.jsxs(
|
|
@@ -4924,7 +4924,7 @@ function xu({
|
|
|
4924
4924
|
borderTop: "1px solid",
|
|
4925
4925
|
borderColor: "gray.200",
|
|
4926
4926
|
children: [
|
|
4927
|
-
/* @__PURE__ */ i.jsx(Ue, { variant: "outline", size: "sm", onClick: t, children:
|
|
4927
|
+
/* @__PURE__ */ i.jsx(Ue, { variant: "outline", size: "sm", onClick: t, children: c }),
|
|
4928
4928
|
/* @__PURE__ */ i.jsx(
|
|
4929
4929
|
Ue,
|
|
4930
4930
|
{
|
|
@@ -4952,8 +4952,8 @@ function bu({
|
|
|
4952
4952
|
title: r = "Delete Company",
|
|
4953
4953
|
entityName: o,
|
|
4954
4954
|
confirmText: s = "DELETE",
|
|
4955
|
-
confirmLabel:
|
|
4956
|
-
isLoading:
|
|
4955
|
+
confirmLabel: c = "Delete",
|
|
4956
|
+
isLoading: a = !1
|
|
4957
4957
|
}) {
|
|
4958
4958
|
const [l, u] = J(""), f = l === s;
|
|
4959
4959
|
return /* @__PURE__ */ i.jsx(
|
|
@@ -5034,9 +5034,9 @@ function bu({
|
|
|
5034
5034
|
style: {
|
|
5035
5035
|
backgroundColor: "#FF0000"
|
|
5036
5036
|
},
|
|
5037
|
-
loading:
|
|
5037
|
+
loading: a,
|
|
5038
5038
|
onClick: n,
|
|
5039
|
-
children:
|
|
5039
|
+
children: c
|
|
5040
5040
|
}
|
|
5041
5041
|
)
|
|
5042
5042
|
]
|
|
@@ -5055,48 +5055,55 @@ function Ll(e) {
|
|
|
5055
5055
|
oe.isValidElement(r) && (r.type === jl && (t = r.props.children), r.type === Rl && (n = r.props.children));
|
|
5056
5056
|
}), { body: t, actions: n };
|
|
5057
5057
|
}
|
|
5058
|
-
const wu = ({
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
}
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
py: "16px",
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5058
|
+
const wu = ({
|
|
5059
|
+
open: e,
|
|
5060
|
+
onClose: t,
|
|
5061
|
+
title: n,
|
|
5062
|
+
children: r,
|
|
5063
|
+
width: o,
|
|
5064
|
+
position: s
|
|
5065
|
+
}) => {
|
|
5066
|
+
const { body: c, actions: a } = Ll(r);
|
|
5067
|
+
return /* @__PURE__ */ i.jsx(
|
|
5068
|
+
El,
|
|
5069
|
+
{
|
|
5070
|
+
open: e,
|
|
5071
|
+
onOpenChange: (l) => !l.open && t(),
|
|
5072
|
+
placement: s ?? "center",
|
|
5073
|
+
width: o,
|
|
5074
|
+
children: /* @__PURE__ */ i.jsxs(Ge, { children: [
|
|
5075
|
+
/* @__PURE__ */ i.jsx(_l, { bg: "blackAlpha.400" }),
|
|
5076
|
+
/* @__PURE__ */ i.jsx(Tl, { children: /* @__PURE__ */ i.jsxs(Ol, { w: "100%", borderRadius: "6px", overflow: "hidden", boxShadow: "lg", children: [
|
|
5077
|
+
/* @__PURE__ */ i.jsx(
|
|
5078
|
+
Ml,
|
|
5079
|
+
{
|
|
5080
|
+
px: "20px",
|
|
5081
|
+
py: "16px",
|
|
5082
|
+
bg: "white",
|
|
5083
|
+
borderBottom: "1px solid",
|
|
5084
|
+
borderColor: "gray.200",
|
|
5085
|
+
children: /* @__PURE__ */ i.jsxs(an, { align: "center", justify: "space-between", children: [
|
|
5086
|
+
/* @__PURE__ */ i.jsx(Al, { fontSize: "16px", fontWeight: "600", children: n }),
|
|
5087
|
+
/* @__PURE__ */ i.jsx(kl, { asChild: !0, children: /* @__PURE__ */ i.jsx(Xt, { size: "sm" }) })
|
|
5088
|
+
] })
|
|
5089
|
+
}
|
|
5090
|
+
),
|
|
5091
|
+
c && /* @__PURE__ */ i.jsx($l, { px: "20px", py: "16px", bg: "#F8FAFC", type: "submit", children: /* @__PURE__ */ i.jsx(an, { direction: "column", gap: "16px", children: c }) }),
|
|
5092
|
+
a && /* @__PURE__ */ i.jsx(
|
|
5093
|
+
Il,
|
|
5094
|
+
{
|
|
5095
|
+
px: "20px",
|
|
5096
|
+
py: "16px",
|
|
5097
|
+
bg: "white",
|
|
5098
|
+
borderTop: "1px solid",
|
|
5099
|
+
borderColor: "gray.200",
|
|
5100
|
+
children: /* @__PURE__ */ i.jsx(an, { ml: "auto", gap: "12px", children: a })
|
|
5101
|
+
}
|
|
5102
|
+
)
|
|
5103
|
+
] }) })
|
|
5104
|
+
] })
|
|
5105
|
+
}
|
|
5106
|
+
);
|
|
5100
5107
|
}, Nl = m(Ee.Root), zl = m(Ee.Label), Pl = m(Ee.HelperText), Fl = m(Ee.ErrorText), Yl = m(qt.Input), Vl = m(qt.Control), Hl = m(qt.HiddenInput), Wl = m(qt.Root), Su = ({
|
|
5101
5108
|
value: e,
|
|
5102
5109
|
onChange: t,
|
|
@@ -5104,8 +5111,8 @@ const wu = ({ open: e, onClose: t, title: n, children: r }) => {
|
|
|
5104
5111
|
size: r = "xs",
|
|
5105
5112
|
isDisabled: o = !1,
|
|
5106
5113
|
label: s,
|
|
5107
|
-
helperText:
|
|
5108
|
-
errorText:
|
|
5114
|
+
helperText: c,
|
|
5115
|
+
errorText: a,
|
|
5109
5116
|
required: l = !1,
|
|
5110
5117
|
visible: u = !0
|
|
5111
5118
|
}) => {
|
|
@@ -5128,8 +5135,8 @@ const wu = ({ open: e, onClose: t, title: n, children: r }) => {
|
|
|
5128
5135
|
]
|
|
5129
5136
|
}
|
|
5130
5137
|
),
|
|
5131
|
-
|
|
5132
|
-
|
|
5138
|
+
a && /* @__PURE__ */ i.jsx(Fl, { fontSize: "xs", children: a }),
|
|
5139
|
+
c && !a && /* @__PURE__ */ i.jsx(Pl, { fontSize: "xs", children: c })
|
|
5133
5140
|
] });
|
|
5134
5141
|
};
|
|
5135
5142
|
function Cu({
|
|
@@ -5172,7 +5179,7 @@ function Ul() {
|
|
|
5172
5179
|
(function(n, r) {
|
|
5173
5180
|
e.exports = r();
|
|
5174
5181
|
})(Bl, (function() {
|
|
5175
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond",
|
|
5182
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", c = "second", a = "minute", l = "hour", u = "day", f = "week", d = "month", x = "quarter", p = "year", h = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, T = { 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($) {
|
|
5176
5183
|
var C = ["th", "st", "nd", "rd"], w = $ % 100;
|
|
5177
5184
|
return "[" + $ + (C[(w - 20) % 10] || C[w] || C[0]) + "]";
|
|
5178
5185
|
} }, j = function($, C, w) {
|
|
@@ -5188,7 +5195,7 @@ function Ul() {
|
|
|
5188
5195
|
}, a: function($) {
|
|
5189
5196
|
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
|
5190
5197
|
}, p: function($) {
|
|
5191
|
-
return { M: d, y: p, w: f, d: u, D: h, h: l, m:
|
|
5198
|
+
return { M: d, y: p, w: f, d: u, D: h, h: l, m: a, s: c, ms: s, Q: x }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
|
5192
5199
|
}, u: function($) {
|
|
5193
5200
|
return $ === void 0;
|
|
5194
5201
|
} }, M = "en", _ = {};
|
|
@@ -5276,9 +5283,9 @@ function Ul() {
|
|
|
5276
5283
|
return D(Q + "Hours", 0);
|
|
5277
5284
|
case l:
|
|
5278
5285
|
return D(Q + "Minutes", 1);
|
|
5279
|
-
case c:
|
|
5280
|
-
return D(Q + "Seconds", 2);
|
|
5281
5286
|
case a:
|
|
5287
|
+
return D(Q + "Seconds", 2);
|
|
5288
|
+
case c:
|
|
5282
5289
|
return D(Q + "Milliseconds", 3);
|
|
5283
5290
|
default:
|
|
5284
5291
|
return this.clone();
|
|
@@ -5286,7 +5293,7 @@ function Ul() {
|
|
|
5286
5293
|
}, C.endOf = function(w) {
|
|
5287
5294
|
return this.startOf(w, !1);
|
|
5288
5295
|
}, C.$set = function(w, R) {
|
|
5289
|
-
var E, k = S.p(w), N = "set" + (this.$u ? "UTC" : ""), g = (E = {}, E[u] = N + "Date", E[h] = N + "Date", E[d] = N + "Month", E[p] = N + "FullYear", E[l] = N + "Hours", E[
|
|
5296
|
+
var E, k = S.p(w), N = "set" + (this.$u ? "UTC" : ""), g = (E = {}, E[u] = N + "Date", E[h] = N + "Date", E[d] = N + "Month", E[p] = N + "FullYear", E[l] = N + "Hours", E[a] = N + "Minutes", E[c] = N + "Seconds", E[s] = N + "Milliseconds", E)[k], D = k === u ? this.$D + (R - this.$W) : R;
|
|
5290
5297
|
if (k === d || k === p) {
|
|
5291
5298
|
var L = this.clone().set(h, 1);
|
|
5292
5299
|
L.$d[g](D), L.init(), this.$d = L.set(h, Math.min(this.$D, L.daysInMonth())).$d;
|
|
@@ -5307,7 +5314,7 @@ function Ul() {
|
|
|
5307
5314
|
if (N === p) return this.set(p, this.$y + w);
|
|
5308
5315
|
if (N === u) return g(1);
|
|
5309
5316
|
if (N === f) return g(7);
|
|
5310
|
-
var D = (E = {}, E[
|
|
5317
|
+
var D = (E = {}, E[a] = r, E[l] = o, E[c] = n, E)[N] || 1, L = this.$d.getTime() + w * D;
|
|
5311
5318
|
return S.w(L, this);
|
|
5312
5319
|
}, C.subtract = function(w, R) {
|
|
5313
5320
|
return this.add(-1 * w, R);
|
|
@@ -5402,10 +5409,10 @@ function Ul() {
|
|
|
5402
5409
|
case l:
|
|
5403
5410
|
k = F / o;
|
|
5404
5411
|
break;
|
|
5405
|
-
case
|
|
5412
|
+
case a:
|
|
5406
5413
|
k = F / r;
|
|
5407
5414
|
break;
|
|
5408
|
-
case
|
|
5415
|
+
case c:
|
|
5409
5416
|
k = F / n;
|
|
5410
5417
|
break;
|
|
5411
5418
|
default:
|
|
@@ -5432,7 +5439,7 @@ function Ul() {
|
|
|
5432
5439
|
return this.$d.toUTCString();
|
|
5433
5440
|
}, $;
|
|
5434
5441
|
})(), X = W.prototype;
|
|
5435
|
-
return P.prototype = X, [["$ms", s], ["$s",
|
|
5442
|
+
return P.prototype = X, [["$ms", s], ["$s", c], ["$m", a], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", h]].forEach((function($) {
|
|
5436
5443
|
X[$[1]] = function(C) {
|
|
5437
5444
|
return this.$g(C, $[0], $[1]);
|
|
5438
5445
|
};
|
|
@@ -5454,12 +5461,12 @@ function ql() {
|
|
|
5454
5461
|
})(Xl, (function() {
|
|
5455
5462
|
return function(n, r, o) {
|
|
5456
5463
|
n = n || {};
|
|
5457
|
-
var s = r.prototype,
|
|
5458
|
-
function
|
|
5464
|
+
var s = r.prototype, c = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
5465
|
+
function a(u, f, d, x) {
|
|
5459
5466
|
return s.fromToBase(u, f, d, x);
|
|
5460
5467
|
}
|
|
5461
|
-
o.en.relativeTime =
|
|
5462
|
-
for (var h, v, b, y = d.$locale().relativeTime ||
|
|
5468
|
+
o.en.relativeTime = c, s.fromToBase = function(u, f, d, x, p) {
|
|
5469
|
+
for (var h, v, b, y = d.$locale().relativeTime || c, T = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], j = T.length, O = 0; O < j; O += 1) {
|
|
5463
5470
|
var M = T[O];
|
|
5464
5471
|
M.d && (h = x ? o(u).diff(d, M.d, !0) : d.diff(u, M.d, !0));
|
|
5465
5472
|
var _ = (n.rounding || Math.round)(Math.abs(h));
|
|
@@ -5474,9 +5481,9 @@ function ql() {
|
|
|
5474
5481
|
var A = b ? y.future : y.past;
|
|
5475
5482
|
return typeof A == "function" ? A(v) : A.replace("%s", v);
|
|
5476
5483
|
}, s.to = function(u, f) {
|
|
5477
|
-
return
|
|
5484
|
+
return a(u, f, this, !0);
|
|
5478
5485
|
}, s.from = function(u, f) {
|
|
5479
|
-
return
|
|
5486
|
+
return a(u, f, this);
|
|
5480
5487
|
};
|
|
5481
5488
|
var l = function(u) {
|
|
5482
5489
|
return u.$u ? o.utc() : o();
|
|
@@ -5500,8 +5507,8 @@ function Ql() {
|
|
|
5500
5507
|
})(Zl, (function() {
|
|
5501
5508
|
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" };
|
|
5502
5509
|
return function(r, o, s) {
|
|
5503
|
-
var
|
|
5504
|
-
s.en.formats = n,
|
|
5510
|
+
var c = o.prototype, a = c.format;
|
|
5511
|
+
s.en.formats = n, c.format = function(l) {
|
|
5505
5512
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5506
5513
|
var u = this.$locale().formats, f = (function(d, x) {
|
|
5507
5514
|
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, h, v) {
|
|
@@ -5511,7 +5518,7 @@ function Ql() {
|
|
|
5511
5518
|
}));
|
|
5512
5519
|
}));
|
|
5513
5520
|
})(l, u === void 0 ? {} : u);
|
|
5514
|
-
return
|
|
5521
|
+
return a.call(this, f);
|
|
5515
5522
|
};
|
|
5516
5523
|
};
|
|
5517
5524
|
}));
|
|
@@ -5527,38 +5534,38 @@ function ru() {
|
|
|
5527
5534
|
})(nu, (function() {
|
|
5528
5535
|
return function(n, r) {
|
|
5529
5536
|
var o = r.prototype, s = o.format;
|
|
5530
|
-
o.format = function(
|
|
5531
|
-
var
|
|
5532
|
-
if (!this.isValid()) return s.bind(this)(
|
|
5533
|
-
var u = this.$utils(), f = (
|
|
5537
|
+
o.format = function(c) {
|
|
5538
|
+
var a = this, l = this.$locale();
|
|
5539
|
+
if (!this.isValid()) return s.bind(this)(c);
|
|
5540
|
+
var u = this.$utils(), f = (c || "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(d) {
|
|
5534
5541
|
switch (d) {
|
|
5535
5542
|
case "Q":
|
|
5536
|
-
return Math.ceil((
|
|
5543
|
+
return Math.ceil((a.$M + 1) / 3);
|
|
5537
5544
|
case "Do":
|
|
5538
|
-
return l.ordinal(
|
|
5545
|
+
return l.ordinal(a.$D);
|
|
5539
5546
|
case "gggg":
|
|
5540
|
-
return
|
|
5547
|
+
return a.weekYear();
|
|
5541
5548
|
case "GGGG":
|
|
5542
|
-
return
|
|
5549
|
+
return a.isoWeekYear();
|
|
5543
5550
|
case "wo":
|
|
5544
|
-
return l.ordinal(
|
|
5551
|
+
return l.ordinal(a.week(), "W");
|
|
5545
5552
|
case "w":
|
|
5546
5553
|
case "ww":
|
|
5547
|
-
return u.s(
|
|
5554
|
+
return u.s(a.week(), d === "w" ? 1 : 2, "0");
|
|
5548
5555
|
case "W":
|
|
5549
5556
|
case "WW":
|
|
5550
|
-
return u.s(
|
|
5557
|
+
return u.s(a.isoWeek(), d === "W" ? 1 : 2, "0");
|
|
5551
5558
|
case "k":
|
|
5552
5559
|
case "kk":
|
|
5553
|
-
return u.s(String(
|
|
5560
|
+
return u.s(String(a.$H === 0 ? 24 : a.$H), d === "k" ? 1 : 2, "0");
|
|
5554
5561
|
case "X":
|
|
5555
|
-
return Math.floor(
|
|
5562
|
+
return Math.floor(a.$d.getTime() / 1e3);
|
|
5556
5563
|
case "x":
|
|
5557
|
-
return
|
|
5564
|
+
return a.$d.getTime();
|
|
5558
5565
|
case "z":
|
|
5559
|
-
return "[" +
|
|
5566
|
+
return "[" + a.offsetName() + "]";
|
|
5560
5567
|
case "zzz":
|
|
5561
|
-
return "[" +
|
|
5568
|
+
return "[" + a.offsetName("long") + "]";
|
|
5562
5569
|
default:
|
|
5563
5570
|
return d;
|
|
5564
5571
|
}
|
|
@@ -5599,15 +5606,15 @@ function Du({
|
|
|
5599
5606
|
dateFormat: r,
|
|
5600
5607
|
timeFormat: o,
|
|
5601
5608
|
align: s = "start",
|
|
5602
|
-
dateColor:
|
|
5603
|
-
dateFontSize:
|
|
5609
|
+
dateColor: c = "gray.700",
|
|
5610
|
+
dateFontSize: a = "16px",
|
|
5604
5611
|
dateFontWeight: l = "500",
|
|
5605
5612
|
timeColor: u = "gray.500",
|
|
5606
5613
|
timeFontSize: f = "12px",
|
|
5607
5614
|
timeFontWeight: d = "400"
|
|
5608
5615
|
}) {
|
|
5609
5616
|
return /* @__PURE__ */ i.jsxs(Pt, { gap: 0.5, align: s, children: [
|
|
5610
|
-
/* @__PURE__ */ i.jsx(q, { fontSize:
|
|
5617
|
+
/* @__PURE__ */ i.jsx(q, { fontSize: a, fontWeight: l, color: c, children: Rr({
|
|
5611
5618
|
value: e,
|
|
5612
5619
|
variant: t,
|
|
5613
5620
|
format: r
|
|
@@ -5712,11 +5719,11 @@ function Ru(e) {
|
|
|
5712
5719
|
const t = po(), [n, r] = J(t.getRaw(e)?.value);
|
|
5713
5720
|
return Y(() => {
|
|
5714
5721
|
let o = !0;
|
|
5715
|
-
t.getKey(e).then((
|
|
5716
|
-
o && r(
|
|
5722
|
+
t.getKey(e).then((c) => {
|
|
5723
|
+
o && r(c);
|
|
5717
5724
|
});
|
|
5718
|
-
const s = t.subscribe(e, (
|
|
5719
|
-
r(
|
|
5725
|
+
const s = t.subscribe(e, (c) => {
|
|
5726
|
+
r(c?.value);
|
|
5720
5727
|
});
|
|
5721
5728
|
return () => {
|
|
5722
5729
|
o = !1, s();
|
|
@@ -5727,19 +5734,19 @@ function Eu(e) {
|
|
|
5727
5734
|
const t = po(), [n, r] = J({});
|
|
5728
5735
|
return Y(() => {
|
|
5729
5736
|
let o = !0;
|
|
5730
|
-
t.getMultiKey(e).then((
|
|
5731
|
-
o && r(
|
|
5737
|
+
t.getMultiKey(e).then((c) => {
|
|
5738
|
+
o && r(c);
|
|
5732
5739
|
});
|
|
5733
5740
|
const s = e.map(
|
|
5734
|
-
(
|
|
5741
|
+
(c) => t.subscribe(c, (a) => {
|
|
5735
5742
|
r((l) => ({
|
|
5736
5743
|
...l,
|
|
5737
|
-
[
|
|
5744
|
+
[c]: a?.value
|
|
5738
5745
|
}));
|
|
5739
5746
|
})
|
|
5740
5747
|
);
|
|
5741
5748
|
return () => {
|
|
5742
|
-
o = !1, s.forEach((
|
|
5749
|
+
o = !1, s.forEach((c) => c());
|
|
5743
5750
|
};
|
|
5744
5751
|
}, [e.join("|"), t]), n;
|
|
5745
5752
|
}
|
|
@@ -5750,21 +5757,21 @@ async function Tu(e, t) {
|
|
|
5750
5757
|
await e.getMultiKey(t);
|
|
5751
5758
|
}
|
|
5752
5759
|
function Ou(e = {}) {
|
|
5753
|
-
const { initialPage: t = 1, initialLimit: n = 20 } = e, [r, o] = J(t), [s,
|
|
5760
|
+
const { initialPage: t = 1, initialLimit: n = 20 } = e, [r, o] = J(t), [s, c] = J(n), a = ee((x) => {
|
|
5754
5761
|
o(Math.max(1, x));
|
|
5755
5762
|
}, []), l = ee((x) => {
|
|
5756
|
-
|
|
5763
|
+
c(Math.max(1, x)), o(1);
|
|
5757
5764
|
}, []), u = ee(() => {
|
|
5758
5765
|
o((x) => x + 1);
|
|
5759
5766
|
}, []), f = ee(() => {
|
|
5760
5767
|
o((x) => Math.max(1, x - 1));
|
|
5761
5768
|
}, []), d = ee(() => {
|
|
5762
|
-
o(t),
|
|
5769
|
+
o(t), c(n);
|
|
5763
5770
|
}, [t, n]);
|
|
5764
5771
|
return {
|
|
5765
5772
|
page: r,
|
|
5766
5773
|
limit: s,
|
|
5767
|
-
setPage:
|
|
5774
|
+
setPage: a,
|
|
5768
5775
|
setLimit: l,
|
|
5769
5776
|
nextPage: u,
|
|
5770
5777
|
prevPage: f,
|
|
@@ -5772,16 +5779,16 @@ function Ou(e = {}) {
|
|
|
5772
5779
|
};
|
|
5773
5780
|
}
|
|
5774
5781
|
function Mu(e = {}) {
|
|
5775
|
-
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = J(t), s = cu(r, n),
|
|
5782
|
+
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = J(t), s = cu(r, n), c = ee((l) => {
|
|
5776
5783
|
o(l);
|
|
5777
|
-
}, []),
|
|
5784
|
+
}, []), a = ee(() => {
|
|
5778
5785
|
o(t);
|
|
5779
5786
|
}, [t]);
|
|
5780
5787
|
return {
|
|
5781
5788
|
search: r,
|
|
5782
5789
|
debouncedSearch: s,
|
|
5783
|
-
onSearchChange:
|
|
5784
|
-
reset:
|
|
5790
|
+
onSearchChange: c,
|
|
5791
|
+
reset: a
|
|
5785
5792
|
};
|
|
5786
5793
|
}
|
|
5787
5794
|
function cu(e, t = 300) {
|