@mdspl/mds-shared-ui 1.4.5 → 1.4.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 +4 -4
- package/dist/index.js +426 -407
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as bt from "react";
|
|
2
|
-
import oe, { useLayoutEffect as Ao, useEffect as V, useRef as G, useMemo as B, useCallback as Q, useState as H, createContext as rt, memo as zr, useReducer as ko, useContext as
|
|
3
|
-
import { Menu as St, Checkbox as Re, IconButton as we, Portal as
|
|
2
|
+
import oe, { useLayoutEffect as Ao, useEffect as V, useRef as G, useMemo as B, useCallback as Q, useState as H, createContext as rt, memo as zr, useReducer as ko, useContext as He, forwardRef as Tn, createElement as Sn } from "react";
|
|
3
|
+
import { Menu as St, Checkbox as Re, IconButton as we, Portal as Be, Table as ae, HStack as fe, Box as le, Select as ee, Pagination as Yt, createListCollection as _n, Text as X, ButtonGroup as zo, Skeleton as Lo, Spinner as Lr, Combobox as Ue, Popover as $e, Group as Nr, Input as Kt, InputAddon as Pr, Grid as Fr, Button as _e, Field as Me, InputGroup as No, CloseButton as Ct, Slider as Dt, VStack as pt, Drawer as Ae, Tabs as Jt, Dialog as K, Stack as Ht, Flex as cn, PinInput as Zt, Tooltip as ot } from "@chakra-ui/react";
|
|
4
4
|
import { unstable_batchedUpdates as Tt, createPortal as Po, flushSync as Fo } from "react-dom";
|
|
5
5
|
function Qt(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -35,7 +35,7 @@ function Vo() {
|
|
|
35
35
|
function e(v) {
|
|
36
36
|
if (v == null) return null;
|
|
37
37
|
if (typeof v == "function")
|
|
38
|
-
return v.$$typeof ===
|
|
38
|
+
return v.$$typeof === A ? null : v.displayName || v.name || null;
|
|
39
39
|
if (typeof v == "string") return v;
|
|
40
40
|
switch (v) {
|
|
41
41
|
case x:
|
|
@@ -55,7 +55,7 @@ function Vo() {
|
|
|
55
55
|
switch (typeof v.tag == "number" && console.error(
|
|
56
56
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
57
57
|
), v.$$typeof) {
|
|
58
|
-
case
|
|
58
|
+
case m:
|
|
59
59
|
return "Portal";
|
|
60
60
|
case O:
|
|
61
61
|
return v.displayName || "Context";
|
|
@@ -64,7 +64,7 @@ function Vo() {
|
|
|
64
64
|
case I:
|
|
65
65
|
var _ = v.render;
|
|
66
66
|
return v = v.displayName, v || (v = _.displayName || _.name || "", v = v !== "" ? "ForwardRef(" + v + ")" : "ForwardRef"), v;
|
|
67
|
-
case
|
|
67
|
+
case k:
|
|
68
68
|
return _ = v.displayName || null, _ !== null ? _ : e(v.type) || "Memo";
|
|
69
69
|
case W:
|
|
70
70
|
_ = v._payload, v = v._init;
|
|
@@ -141,7 +141,7 @@ function Vo() {
|
|
|
141
141
|
function u(v, _, L, N, J, q) {
|
|
142
142
|
var Y = L.ref;
|
|
143
143
|
return v = {
|
|
144
|
-
$$typeof:
|
|
144
|
+
$$typeof: p,
|
|
145
145
|
type: v,
|
|
146
146
|
key: _,
|
|
147
147
|
props: L,
|
|
@@ -223,9 +223,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
f(v) ? v._store && (v._store.validated = 1) : typeof v == "object" && v !== null && v.$$typeof === W && (v._payload.status === "fulfilled" ? f(v._payload.value) && v._payload.value._store && (v._payload.value._store.validated = 1) : v._store && (v._store.validated = 1));
|
|
224
224
|
}
|
|
225
225
|
function f(v) {
|
|
226
|
-
return typeof v == "object" && v !== null && v.$$typeof ===
|
|
226
|
+
return typeof v == "object" && v !== null && v.$$typeof === p;
|
|
227
227
|
}
|
|
228
|
-
var g = oe,
|
|
228
|
+
var g = oe, p = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), D = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.consumer"), O = /* @__PURE__ */ Symbol.for("react.context"), I = /* @__PURE__ */ Symbol.for("react.forward_ref"), M = /* @__PURE__ */ Symbol.for("react.suspense"), $ = /* @__PURE__ */ Symbol.for("react.suspense_list"), k = /* @__PURE__ */ Symbol.for("react.memo"), W = /* @__PURE__ */ Symbol.for("react.lazy"), P = /* @__PURE__ */ Symbol.for("react.activity"), A = /* @__PURE__ */ Symbol.for("react.client.reference"), Z = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, R = Array.isArray, w = console.createTask ? console.createTask : function() {
|
|
229
229
|
return null;
|
|
230
230
|
};
|
|
231
231
|
g = {
|
|
@@ -524,7 +524,7 @@ function Zo() {
|
|
|
524
524
|
}
|
|
525
525
|
const Yr = /* @__PURE__ */ rt(null);
|
|
526
526
|
function Qo(e) {
|
|
527
|
-
const t =
|
|
527
|
+
const t = He(Yr);
|
|
528
528
|
V(() => {
|
|
529
529
|
if (!t)
|
|
530
530
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
@@ -983,16 +983,16 @@ function Ss(e, t, n, r, o) {
|
|
|
983
983
|
} = Kr(e), g = {
|
|
984
984
|
x: 0,
|
|
985
985
|
y: 0
|
|
986
|
-
},
|
|
986
|
+
}, p = {
|
|
987
987
|
x: 0,
|
|
988
988
|
y: 0
|
|
989
|
-
},
|
|
989
|
+
}, m = {
|
|
990
990
|
height: t.height * o.y,
|
|
991
991
|
width: t.width * o.x
|
|
992
992
|
};
|
|
993
|
-
return !u && s <= t.top +
|
|
993
|
+
return !u && s <= t.top + m.height ? (g.y = ie.Backward, p.y = r * Math.abs((t.top + m.height - s) / m.height)) : !h && c >= t.bottom - m.height && (g.y = ie.Forward, p.y = r * Math.abs((t.bottom - m.height - c) / m.height)), !f && i >= t.right - m.width ? (g.x = ie.Forward, p.x = r * Math.abs((t.right - m.width - i) / m.width)) : !d && a <= t.left + m.width && (g.x = ie.Backward, p.x = r * Math.abs((t.left + m.width - a) / m.width)), {
|
|
994
994
|
direction: g,
|
|
995
|
-
speed:
|
|
995
|
+
speed: p
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
998
|
function Cs(e) {
|
|
@@ -1197,9 +1197,9 @@ class Qr {
|
|
|
1197
1197
|
x: 0,
|
|
1198
1198
|
y: 0
|
|
1199
1199
|
}, {
|
|
1200
|
-
scrollableAncestors:
|
|
1200
|
+
scrollableAncestors: p
|
|
1201
1201
|
} = r.current;
|
|
1202
|
-
for (const
|
|
1202
|
+
for (const m of p) {
|
|
1203
1203
|
const x = t.code, {
|
|
1204
1204
|
isTop: b,
|
|
1205
1205
|
isRight: D,
|
|
@@ -1207,34 +1207,34 @@ class Qr {
|
|
|
1207
1207
|
isBottom: O,
|
|
1208
1208
|
maxScroll: I,
|
|
1209
1209
|
minScroll: M
|
|
1210
|
-
} = Kr(
|
|
1210
|
+
} = Kr(m), $ = Cs(m), k = {
|
|
1211
1211
|
x: Math.min(x === U.Right ? $.right - $.width / 2 : $.right, Math.max(x === U.Right ? $.left : $.left + $.width / 2, d.x)),
|
|
1212
1212
|
y: Math.min(x === U.Down ? $.bottom - $.height / 2 : $.bottom, Math.max(x === U.Down ? $.top : $.top + $.height / 2, d.y))
|
|
1213
1213
|
}, W = x === U.Right && !D || x === U.Left && !j, P = x === U.Down && !O || x === U.Up && !b;
|
|
1214
|
-
if (W &&
|
|
1215
|
-
const
|
|
1214
|
+
if (W && k.x !== d.x) {
|
|
1215
|
+
const A = m.scrollLeft + f.x, Z = x === U.Right && A <= I.x || x === U.Left && A >= M.x;
|
|
1216
1216
|
if (Z && !f.y) {
|
|
1217
|
-
|
|
1218
|
-
left:
|
|
1217
|
+
m.scrollTo({
|
|
1218
|
+
left: A,
|
|
1219
1219
|
behavior: i
|
|
1220
1220
|
});
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
|
-
Z ? g.x =
|
|
1223
|
+
Z ? g.x = m.scrollLeft - A : g.x = x === U.Right ? m.scrollLeft - I.x : m.scrollLeft - M.x, g.x && m.scrollBy({
|
|
1224
1224
|
left: -g.x,
|
|
1225
1225
|
behavior: i
|
|
1226
1226
|
});
|
|
1227
1227
|
break;
|
|
1228
|
-
} else if (P &&
|
|
1229
|
-
const
|
|
1228
|
+
} else if (P && k.y !== d.y) {
|
|
1229
|
+
const A = m.scrollTop + f.y, Z = x === U.Down && A <= I.y || x === U.Up && A >= M.y;
|
|
1230
1230
|
if (Z && !f.x) {
|
|
1231
|
-
|
|
1232
|
-
top:
|
|
1231
|
+
m.scrollTo({
|
|
1232
|
+
top: A,
|
|
1233
1233
|
behavior: i
|
|
1234
1234
|
});
|
|
1235
1235
|
return;
|
|
1236
1236
|
}
|
|
1237
|
-
Z ? g.y =
|
|
1237
|
+
Z ? g.y = m.scrollTop - A : g.y = x === U.Down ? m.scrollTop - I.y : m.scrollTop - M.y, g.y && m.scrollBy({
|
|
1238
1238
|
top: -g.y,
|
|
1239
1239
|
behavior: i
|
|
1240
1240
|
});
|
|
@@ -1536,7 +1536,7 @@ function ks(e) {
|
|
|
1536
1536
|
const g = Ls({
|
|
1537
1537
|
delta: d,
|
|
1538
1538
|
disabled: !s
|
|
1539
|
-
}), [
|
|
1539
|
+
}), [p, m] = Bo(), x = G({
|
|
1540
1540
|
x: 0,
|
|
1541
1541
|
y: 0
|
|
1542
1542
|
}), b = G({
|
|
@@ -1558,29 +1558,29 @@ function ks(e) {
|
|
|
1558
1558
|
const M = j.current;
|
|
1559
1559
|
if (!M)
|
|
1560
1560
|
return;
|
|
1561
|
-
const $ = x.current.x * b.current.x,
|
|
1562
|
-
M.scrollBy($,
|
|
1561
|
+
const $ = x.current.x * b.current.x, k = x.current.y * b.current.y;
|
|
1562
|
+
M.scrollBy($, k);
|
|
1563
1563
|
}, []), I = B(() => i === qt.TreeOrder ? [...u].reverse() : u, [i, u]);
|
|
1564
1564
|
V(
|
|
1565
1565
|
() => {
|
|
1566
1566
|
if (!s || !u.length || !D) {
|
|
1567
|
-
|
|
1567
|
+
m();
|
|
1568
1568
|
return;
|
|
1569
1569
|
}
|
|
1570
1570
|
for (const M of I) {
|
|
1571
1571
|
if (r?.(M) === !1)
|
|
1572
1572
|
continue;
|
|
1573
|
-
const $ = u.indexOf(M),
|
|
1574
|
-
if (!
|
|
1573
|
+
const $ = u.indexOf(M), k = h[$];
|
|
1574
|
+
if (!k)
|
|
1575
1575
|
continue;
|
|
1576
1576
|
const {
|
|
1577
1577
|
direction: W,
|
|
1578
1578
|
speed: P
|
|
1579
|
-
} = Ss(M,
|
|
1580
|
-
for (const
|
|
1581
|
-
g[
|
|
1579
|
+
} = Ss(M, k, D, t, f);
|
|
1580
|
+
for (const A of ["x", "y"])
|
|
1581
|
+
g[A][W[A]] || (P[A] = 0, W[A] = 0);
|
|
1582
1582
|
if (P.x > 0 || P.y > 0) {
|
|
1583
|
-
|
|
1583
|
+
m(), j.current = M, p(O, a), x.current = P, b.current = W;
|
|
1584
1584
|
return;
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
@@ -1590,21 +1590,21 @@ function ks(e) {
|
|
|
1590
1590
|
}, b.current = {
|
|
1591
1591
|
x: 0,
|
|
1592
1592
|
y: 0
|
|
1593
|
-
},
|
|
1593
|
+
}, m();
|
|
1594
1594
|
},
|
|
1595
1595
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1596
1596
|
[
|
|
1597
1597
|
t,
|
|
1598
1598
|
O,
|
|
1599
1599
|
r,
|
|
1600
|
-
|
|
1600
|
+
m,
|
|
1601
1601
|
s,
|
|
1602
1602
|
a,
|
|
1603
1603
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1604
1604
|
JSON.stringify(D),
|
|
1605
1605
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1606
1606
|
JSON.stringify(g),
|
|
1607
|
-
|
|
1607
|
+
p,
|
|
1608
1608
|
u,
|
|
1609
1609
|
I,
|
|
1610
1610
|
h,
|
|
@@ -1687,7 +1687,7 @@ function Fs(e, t) {
|
|
|
1687
1687
|
strategy: u
|
|
1688
1688
|
} = o, h = G(e), d = x(), f = yt(d), g = Q(function(b) {
|
|
1689
1689
|
b === void 0 && (b = []), !f.current && a((D) => D === null ? b : D.concat(b.filter((j) => !D.includes(j))));
|
|
1690
|
-
}, [f]),
|
|
1690
|
+
}, [f]), p = G(null), m = Et((b) => {
|
|
1691
1691
|
if (d && !n)
|
|
1692
1692
|
return sr;
|
|
1693
1693
|
if (!b || b === sr || h.current !== e || s != null) {
|
|
@@ -1722,14 +1722,14 @@ function Fs(e, t) {
|
|
|
1722
1722
|
[JSON.stringify(s)]
|
|
1723
1723
|
), V(
|
|
1724
1724
|
() => {
|
|
1725
|
-
d || typeof i != "number" ||
|
|
1726
|
-
g(),
|
|
1725
|
+
d || typeof i != "number" || p.current !== null || (p.current = setTimeout(() => {
|
|
1726
|
+
g(), p.current = null;
|
|
1727
1727
|
}, i));
|
|
1728
1728
|
},
|
|
1729
1729
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1730
1730
|
[i, d, g, ...r]
|
|
1731
1731
|
), {
|
|
1732
|
-
droppableRects:
|
|
1732
|
+
droppableRects: m,
|
|
1733
1733
|
measureDroppableContainers: g,
|
|
1734
1734
|
measuringScheduled: s != null
|
|
1735
1735
|
};
|
|
@@ -2171,7 +2171,7 @@ function oi(e) {
|
|
|
2171
2171
|
active: n,
|
|
2172
2172
|
activatorEvent: r,
|
|
2173
2173
|
draggableNodes: o
|
|
2174
|
-
} =
|
|
2174
|
+
} = He(nn), s = Cn(r), a = Cn(n?.id);
|
|
2175
2175
|
return V(() => {
|
|
2176
2176
|
if (!t && !r && s && a != null) {
|
|
2177
2177
|
if (!kn(s) || document.activeElement === s.target)
|
|
@@ -2283,18 +2283,18 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2283
2283
|
collisionDetection: d = ds,
|
|
2284
2284
|
measuring: f,
|
|
2285
2285
|
modifiers: g,
|
|
2286
|
-
...
|
|
2286
|
+
...p
|
|
2287
2287
|
} = t;
|
|
2288
|
-
const
|
|
2288
|
+
const m = ko(ri, void 0, ni), [x, b] = m, [D, j] = es(), [O, I] = H(Ve.Uninitialized), M = O === Ve.Initialized, {
|
|
2289
2289
|
draggable: {
|
|
2290
2290
|
active: $,
|
|
2291
|
-
nodes:
|
|
2291
|
+
nodes: k,
|
|
2292
2292
|
translate: W
|
|
2293
2293
|
},
|
|
2294
2294
|
droppable: {
|
|
2295
2295
|
containers: P
|
|
2296
2296
|
}
|
|
2297
|
-
} = x,
|
|
2297
|
+
} = x, A = $ != null ? k.get($) : null, Z = G({
|
|
2298
2298
|
initial: null,
|
|
2299
2299
|
translated: null
|
|
2300
2300
|
}), te = B(() => {
|
|
@@ -2302,10 +2302,10 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2302
2302
|
return $ != null ? {
|
|
2303
2303
|
id: $,
|
|
2304
2304
|
// It's possible for the active node to unmount while dragging
|
|
2305
|
-
data: (he =
|
|
2305
|
+
data: (he = A?.data) != null ? he : Qs,
|
|
2306
2306
|
rect: Z
|
|
2307
2307
|
} : null;
|
|
2308
|
-
}, [$,
|
|
2308
|
+
}, [$, A]), R = G(null), [w, S] = H(null), [E, C] = H(null), T = yt(p, Object.values(p)), z = Rt("DndDescribedBy", a), v = B(() => P.getEnabled(), [P]), _ = ii(f), {
|
|
2309
2309
|
droppableRects: L,
|
|
2310
2310
|
measureDroppableContainers: N,
|
|
2311
2311
|
measuringScheduled: J
|
|
@@ -2313,9 +2313,9 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2313
2313
|
dragging: M,
|
|
2314
2314
|
dependencies: [W.x, W.y],
|
|
2315
2315
|
config: _.droppable
|
|
2316
|
-
}), q = Ns(
|
|
2316
|
+
}), q = Ns(k, $), Y = B(() => E ? Dn(E) : null, [E]), ne = $o(), re = Ws(q, _.draggable.measure);
|
|
2317
2317
|
ai({
|
|
2318
|
-
activeNode: $ != null ?
|
|
2318
|
+
activeNode: $ != null ? k.get($) : null,
|
|
2319
2319
|
config: ne.layoutShiftCompensation,
|
|
2320
2320
|
initialRect: re,
|
|
2321
2321
|
measure: _.draggable.measure
|
|
@@ -2327,7 +2327,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2327
2327
|
collisionRect: null,
|
|
2328
2328
|
collisions: null,
|
|
2329
2329
|
droppableRects: L,
|
|
2330
|
-
draggableNodes:
|
|
2330
|
+
draggableNodes: k,
|
|
2331
2331
|
draggingNode: null,
|
|
2332
2332
|
draggingNodeRect: null,
|
|
2333
2333
|
droppableContainers: P,
|
|
@@ -2336,7 +2336,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2336
2336
|
scrollAdjustedTranslate: null
|
|
2337
2337
|
}), De = P.getNodeFor((n = de.current.over) == null ? void 0 : n.id), ke = Js({
|
|
2338
2338
|
measure: _.dragOverlay.measure
|
|
2339
|
-
}),
|
|
2339
|
+
}), Xe = (r = ke.nodeRef.current) != null ? r : q, Ke = M ? (o = ke.rect) != null ? o : F : null, Vn = !!(ke.nodeRef.current && ke.rect), Yn = Hs(Vn ? null : F), sn = to(Xe ? me(Xe) : null), Le = Bs(M ? De ?? q : null), Mt = Xs(Le), Ot = si(g, {
|
|
2340
2340
|
transform: {
|
|
2341
2341
|
x: W.x - Yn.x,
|
|
2342
2342
|
y: W.y - Yn.y,
|
|
@@ -2347,15 +2347,15 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2347
2347
|
active: te,
|
|
2348
2348
|
activeNodeRect: F,
|
|
2349
2349
|
containerNodeRect: pe,
|
|
2350
|
-
draggingNodeRect:
|
|
2350
|
+
draggingNodeRect: Ke,
|
|
2351
2351
|
over: de.current.over,
|
|
2352
2352
|
overlayNodeRect: ke.rect,
|
|
2353
2353
|
scrollableAncestors: Le,
|
|
2354
2354
|
scrollableAncestorRects: Mt,
|
|
2355
2355
|
windowRect: sn
|
|
2356
|
-
}), Hn = Y ? tt(Y, W) : null, Bn = Us(Le), Eo = lr(Bn), Ro = lr(Bn, [F]),
|
|
2356
|
+
}), Hn = Y ? tt(Y, W) : null, Bn = Us(Le), Eo = lr(Bn), Ro = lr(Bn, [F]), Je = tt(Ot, Eo), Ze = Ke ? gs(Ke, Ot) : null, ct = te && Ze ? d({
|
|
2357
2357
|
active: te,
|
|
2358
|
-
collisionRect:
|
|
2358
|
+
collisionRect: Ze,
|
|
2359
2359
|
droppableRects: L,
|
|
2360
2360
|
droppableContainers: v,
|
|
2361
2361
|
pointerCoordinates: Hn
|
|
@@ -2367,7 +2367,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2367
2367
|
} = xe;
|
|
2368
2368
|
if (R.current == null)
|
|
2369
2369
|
return;
|
|
2370
|
-
const Se =
|
|
2370
|
+
const Se = k.get(R.current);
|
|
2371
2371
|
if (!Se)
|
|
2372
2372
|
return;
|
|
2373
2373
|
const ye = he.nativeEvent, Oe = new be({
|
|
@@ -2378,26 +2378,26 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2378
2378
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2379
2379
|
// otherwise they are frozen in time with the stale arguments
|
|
2380
2380
|
context: de,
|
|
2381
|
-
onAbort(
|
|
2382
|
-
if (!
|
|
2381
|
+
onAbort(ce) {
|
|
2382
|
+
if (!k.get(ce))
|
|
2383
2383
|
return;
|
|
2384
2384
|
const {
|
|
2385
2385
|
onDragAbort: Te
|
|
2386
2386
|
} = T.current, ze = {
|
|
2387
|
-
id:
|
|
2387
|
+
id: ce
|
|
2388
2388
|
};
|
|
2389
2389
|
Te?.(ze), D({
|
|
2390
2390
|
type: "onDragAbort",
|
|
2391
2391
|
event: ze
|
|
2392
2392
|
});
|
|
2393
2393
|
},
|
|
2394
|
-
onPending(
|
|
2395
|
-
if (!
|
|
2394
|
+
onPending(ce, Fe, Te, ze) {
|
|
2395
|
+
if (!k.get(ce))
|
|
2396
2396
|
return;
|
|
2397
2397
|
const {
|
|
2398
2398
|
onDragPending: dt
|
|
2399
2399
|
} = T.current, We = {
|
|
2400
|
-
id:
|
|
2400
|
+
id: ce,
|
|
2401
2401
|
constraint: Fe,
|
|
2402
2402
|
initialCoordinates: Te,
|
|
2403
2403
|
offset: ze
|
|
@@ -2407,11 +2407,11 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2407
2407
|
event: We
|
|
2408
2408
|
});
|
|
2409
2409
|
},
|
|
2410
|
-
onStart(
|
|
2410
|
+
onStart(ce) {
|
|
2411
2411
|
const Fe = R.current;
|
|
2412
2412
|
if (Fe == null)
|
|
2413
2413
|
return;
|
|
2414
|
-
const Te =
|
|
2414
|
+
const Te = k.get(Fe);
|
|
2415
2415
|
if (!Te)
|
|
2416
2416
|
return;
|
|
2417
2417
|
const {
|
|
@@ -2427,7 +2427,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2427
2427
|
Tt(() => {
|
|
2428
2428
|
ze?.(ut), I(Ve.Initializing), b({
|
|
2429
2429
|
type: se.DragStart,
|
|
2430
|
-
initialCoordinates:
|
|
2430
|
+
initialCoordinates: ce,
|
|
2431
2431
|
active: Fe
|
|
2432
2432
|
}), D({
|
|
2433
2433
|
type: "onDragStart",
|
|
@@ -2435,17 +2435,17 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2435
2435
|
}), S(an.current), C(ye);
|
|
2436
2436
|
});
|
|
2437
2437
|
},
|
|
2438
|
-
onMove(
|
|
2438
|
+
onMove(ce) {
|
|
2439
2439
|
b({
|
|
2440
2440
|
type: se.DragMove,
|
|
2441
|
-
coordinates:
|
|
2441
|
+
coordinates: ce
|
|
2442
2442
|
});
|
|
2443
2443
|
},
|
|
2444
|
-
onEnd:
|
|
2445
|
-
onCancel:
|
|
2444
|
+
onEnd: Qe(se.DragEnd),
|
|
2445
|
+
onCancel: Qe(se.DragCancel)
|
|
2446
2446
|
});
|
|
2447
2447
|
an.current = Oe;
|
|
2448
|
-
function
|
|
2448
|
+
function Qe(ce) {
|
|
2449
2449
|
return async function() {
|
|
2450
2450
|
const {
|
|
2451
2451
|
active: Te,
|
|
@@ -2464,13 +2464,13 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2464
2464
|
collisions: ze,
|
|
2465
2465
|
delta: dt,
|
|
2466
2466
|
over: ut
|
|
2467
|
-
},
|
|
2467
|
+
}, ce === se.DragEnd && typeof ht == "function" && await Promise.resolve(ht(We)) && (ce = se.DragCancel);
|
|
2468
2468
|
}
|
|
2469
2469
|
R.current = null, Tt(() => {
|
|
2470
2470
|
b({
|
|
2471
|
-
type:
|
|
2471
|
+
type: ce
|
|
2472
2472
|
}), I(Ve.Uninitialized), Gn(null), S(null), C(null), an.current = null;
|
|
2473
|
-
const ht =
|
|
2473
|
+
const ht = ce === se.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2474
2474
|
if (We) {
|
|
2475
2475
|
const ln = T.current[ht];
|
|
2476
2476
|
ln?.(We), D({
|
|
@@ -2483,9 +2483,9 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2483
2483
|
}
|
|
2484
2484
|
},
|
|
2485
2485
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2486
|
-
[
|
|
2486
|
+
[k]
|
|
2487
2487
|
), To = Q((he, xe) => (be, Pe) => {
|
|
2488
|
-
const Se = be.nativeEvent, ye =
|
|
2488
|
+
const Se = be.nativeEvent, ye = k.get(Pe);
|
|
2489
2489
|
if (
|
|
2490
2490
|
// Another sensor is already instantiating
|
|
2491
2491
|
R.current !== null || // No active draggable
|
|
@@ -2499,7 +2499,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2499
2499
|
he(be, xe.options, Oe) === !0 && (Se.dndKit = {
|
|
2500
2500
|
capturedBy: xe.sensor
|
|
2501
2501
|
}, R.current = Pe, qn(be, xe));
|
|
2502
|
-
}, [
|
|
2502
|
+
}, [k, qn]), Xn = Ps(h, To);
|
|
2503
2503
|
Gs(h), Ie(() => {
|
|
2504
2504
|
F && O === Ve.Initializing && I(Ve.Initialized);
|
|
2505
2505
|
}, [F, O]), V(
|
|
@@ -2519,8 +2519,8 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2519
2519
|
activatorEvent: be,
|
|
2520
2520
|
collisions: Pe,
|
|
2521
2521
|
delta: {
|
|
2522
|
-
x:
|
|
2523
|
-
y:
|
|
2522
|
+
x: Je.x,
|
|
2523
|
+
y: Je.y
|
|
2524
2524
|
},
|
|
2525
2525
|
over: Se
|
|
2526
2526
|
};
|
|
@@ -2532,7 +2532,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2532
2532
|
});
|
|
2533
2533
|
},
|
|
2534
2534
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2535
|
-
[
|
|
2535
|
+
[Je.x, Je.y]
|
|
2536
2536
|
), V(
|
|
2537
2537
|
() => {
|
|
2538
2538
|
const {
|
|
@@ -2546,12 +2546,12 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2546
2546
|
return;
|
|
2547
2547
|
const {
|
|
2548
2548
|
onDragOver: ye
|
|
2549
|
-
} = T.current, Oe = Pe.get(Un),
|
|
2549
|
+
} = T.current, Oe = Pe.get(Un), Qe = Oe && Oe.rect.current ? {
|
|
2550
2550
|
id: Oe.id,
|
|
2551
2551
|
rect: Oe.rect.current,
|
|
2552
2552
|
data: Oe.data,
|
|
2553
2553
|
disabled: Oe.disabled
|
|
2554
|
-
} : null,
|
|
2554
|
+
} : null, ce = {
|
|
2555
2555
|
active: he,
|
|
2556
2556
|
activatorEvent: xe,
|
|
2557
2557
|
collisions: be,
|
|
@@ -2559,12 +2559,12 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2559
2559
|
x: Se.x,
|
|
2560
2560
|
y: Se.y
|
|
2561
2561
|
},
|
|
2562
|
-
over:
|
|
2562
|
+
over: Qe
|
|
2563
2563
|
};
|
|
2564
2564
|
Tt(() => {
|
|
2565
|
-
Gn(
|
|
2565
|
+
Gn(Qe), ye?.(ce), D({
|
|
2566
2566
|
type: "onDragOver",
|
|
2567
|
-
event:
|
|
2567
|
+
event: ce
|
|
2568
2568
|
});
|
|
2569
2569
|
});
|
|
2570
2570
|
},
|
|
@@ -2575,24 +2575,24 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2575
2575
|
activatorEvent: E,
|
|
2576
2576
|
active: te,
|
|
2577
2577
|
activeNode: q,
|
|
2578
|
-
collisionRect:
|
|
2578
|
+
collisionRect: Ze,
|
|
2579
2579
|
collisions: ct,
|
|
2580
2580
|
droppableRects: L,
|
|
2581
|
-
draggableNodes:
|
|
2582
|
-
draggingNode:
|
|
2583
|
-
draggingNodeRect:
|
|
2581
|
+
draggableNodes: k,
|
|
2582
|
+
draggingNode: Xe,
|
|
2583
|
+
draggingNodeRect: Ke,
|
|
2584
2584
|
droppableContainers: P,
|
|
2585
2585
|
over: Ne,
|
|
2586
2586
|
scrollableAncestors: Le,
|
|
2587
|
-
scrollAdjustedTranslate:
|
|
2587
|
+
scrollAdjustedTranslate: Je
|
|
2588
2588
|
}, Z.current = {
|
|
2589
|
-
initial:
|
|
2590
|
-
translated:
|
|
2589
|
+
initial: Ke,
|
|
2590
|
+
translated: Ze
|
|
2591
2591
|
};
|
|
2592
|
-
}, [te, q, ct,
|
|
2592
|
+
}, [te, q, ct, Ze, k, Xe, Ke, L, P, Ne, Le, Je]), ks({
|
|
2593
2593
|
...ne,
|
|
2594
2594
|
delta: W,
|
|
2595
|
-
draggingRect:
|
|
2595
|
+
draggingRect: Ze,
|
|
2596
2596
|
pointerCoordinates: Hn,
|
|
2597
2597
|
scrollableAncestors: Le,
|
|
2598
2598
|
scrollableAncestorRects: Mt
|
|
@@ -2605,7 +2605,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2605
2605
|
collisions: ct,
|
|
2606
2606
|
containerNodeRect: pe,
|
|
2607
2607
|
dragOverlay: ke,
|
|
2608
|
-
draggableNodes:
|
|
2608
|
+
draggableNodes: k,
|
|
2609
2609
|
droppableContainers: P,
|
|
2610
2610
|
droppableRects: L,
|
|
2611
2611
|
over: Ne,
|
|
@@ -2615,7 +2615,7 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2615
2615
|
measuringConfiguration: _,
|
|
2616
2616
|
measuringScheduled: J,
|
|
2617
2617
|
windowRect: sn
|
|
2618
|
-
}), [te, q, F, E, ct, pe, ke,
|
|
2618
|
+
}), [te, q, F, E, ct, pe, ke, k, P, L, Ne, N, Le, Mt, _, J, sn]), Io = B(() => ({
|
|
2619
2619
|
activatorEvent: E,
|
|
2620
2620
|
activators: Xn,
|
|
2621
2621
|
active: te,
|
|
@@ -2624,10 +2624,10 @@ const oo = /* @__PURE__ */ zr(function(t) {
|
|
|
2624
2624
|
draggable: z
|
|
2625
2625
|
},
|
|
2626
2626
|
dispatch: b,
|
|
2627
|
-
draggableNodes:
|
|
2627
|
+
draggableNodes: k,
|
|
2628
2628
|
over: Ne,
|
|
2629
2629
|
measureDroppableContainers: N
|
|
2630
|
-
}), [E, Xn, te, F, b, z,
|
|
2630
|
+
}), [E, Xn, te, F, b, z, k, Ne, N]);
|
|
2631
2631
|
return oe.createElement(Yr.Provider, {
|
|
2632
2632
|
value: j
|
|
2633
2633
|
}, oe.createElement(nn.Provider, {
|
|
@@ -2667,11 +2667,11 @@ function ui(e) {
|
|
|
2667
2667
|
ariaDescribedById: h,
|
|
2668
2668
|
draggableNodes: d,
|
|
2669
2669
|
over: f
|
|
2670
|
-
} =
|
|
2670
|
+
} = He(nn), {
|
|
2671
2671
|
role: g = ur,
|
|
2672
|
-
roleDescription:
|
|
2673
|
-
tabIndex:
|
|
2674
|
-
} = o ?? {}, x = c?.id === t, b =
|
|
2672
|
+
roleDescription: p = "draggable",
|
|
2673
|
+
tabIndex: m = 0
|
|
2674
|
+
} = o ?? {}, x = c?.id === t, b = He(x ? ro : li), [D, j] = Bt(), [O, I] = Bt(), M = qs(a, t), $ = yt(n);
|
|
2675
2675
|
Ie(
|
|
2676
2676
|
() => (d.set(t, {
|
|
2677
2677
|
id: t,
|
|
@@ -2686,19 +2686,19 @@ function ui(e) {
|
|
|
2686
2686
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2687
2687
|
[d, t]
|
|
2688
2688
|
);
|
|
2689
|
-
const
|
|
2689
|
+
const k = B(() => ({
|
|
2690
2690
|
role: g,
|
|
2691
|
-
tabIndex:
|
|
2691
|
+
tabIndex: m,
|
|
2692
2692
|
"aria-disabled": r,
|
|
2693
2693
|
"aria-pressed": x && g === ur ? !0 : void 0,
|
|
2694
|
-
"aria-roledescription":
|
|
2694
|
+
"aria-roledescription": p,
|
|
2695
2695
|
"aria-describedby": h.draggable
|
|
2696
|
-
}), [r, g,
|
|
2696
|
+
}), [r, g, m, x, p, h.draggable]);
|
|
2697
2697
|
return {
|
|
2698
2698
|
active: c,
|
|
2699
2699
|
activatorEvent: i,
|
|
2700
2700
|
activeNodeRect: u,
|
|
2701
|
-
attributes:
|
|
2701
|
+
attributes: k,
|
|
2702
2702
|
isDragging: x,
|
|
2703
2703
|
listeners: r ? void 0 : M,
|
|
2704
2704
|
node: D,
|
|
@@ -2709,7 +2709,7 @@ function ui(e) {
|
|
|
2709
2709
|
};
|
|
2710
2710
|
}
|
|
2711
2711
|
function di() {
|
|
2712
|
-
return
|
|
2712
|
+
return He(no);
|
|
2713
2713
|
}
|
|
2714
2714
|
const hi = "Droppable", fi = {
|
|
2715
2715
|
timeout: 25
|
|
@@ -2726,16 +2726,16 @@ function gi(e) {
|
|
|
2726
2726
|
dispatch: i,
|
|
2727
2727
|
over: c,
|
|
2728
2728
|
measureDroppableContainers: u
|
|
2729
|
-
} =
|
|
2729
|
+
} = He(nn), h = G({
|
|
2730
2730
|
disabled: n
|
|
2731
2731
|
}), d = G(!1), f = G(null), g = G(null), {
|
|
2732
|
-
disabled:
|
|
2733
|
-
updateMeasurementsFor:
|
|
2732
|
+
disabled: p,
|
|
2733
|
+
updateMeasurementsFor: m,
|
|
2734
2734
|
timeout: x
|
|
2735
2735
|
} = {
|
|
2736
2736
|
...fi,
|
|
2737
2737
|
...o
|
|
2738
|
-
}, b = yt(
|
|
2738
|
+
}, b = yt(m ?? r), D = Q(
|
|
2739
2739
|
() => {
|
|
2740
2740
|
if (!d.current) {
|
|
2741
2741
|
d.current = !0;
|
|
@@ -2749,9 +2749,9 @@ function gi(e) {
|
|
|
2749
2749
|
[x]
|
|
2750
2750
|
), j = tn({
|
|
2751
2751
|
callback: D,
|
|
2752
|
-
disabled:
|
|
2753
|
-
}), O = Q((
|
|
2754
|
-
j && (W && (j.unobserve(W), d.current = !1),
|
|
2752
|
+
disabled: p || !a
|
|
2753
|
+
}), O = Q((k, W) => {
|
|
2754
|
+
j && (W && (j.unobserve(W), d.current = !1), k && j.observe(k));
|
|
2755
2755
|
}, [j]), [I, M] = Bt(O), $ = yt(t);
|
|
2756
2756
|
return V(() => {
|
|
2757
2757
|
!j || !I.current || (j.disconnect(), d.current = !1, j.observe(I.current));
|
|
@@ -2944,15 +2944,15 @@ function lo(e) {
|
|
|
2944
2944
|
droppableRects: c,
|
|
2945
2945
|
over: u,
|
|
2946
2946
|
measureDroppableContainers: h
|
|
2947
|
-
} = di(), d = Rt(io, n), f = i.rect !== null, g = B(() => r.map((M) => typeof M == "object" && "id" in M ? M.id : M), [r]),
|
|
2947
|
+
} = di(), d = Rt(io, n), f = i.rect !== null, g = B(() => r.map((M) => typeof M == "object" && "id" in M ? M.id : M), [r]), p = a != null, m = a ? g.indexOf(a.id) : -1, x = u ? g.indexOf(u.id) : -1, b = G(g), D = !mi(g, b.current), j = x !== -1 && m === -1 || D, O = vi(s);
|
|
2948
2948
|
Ie(() => {
|
|
2949
|
-
D &&
|
|
2950
|
-
}, [D, g,
|
|
2949
|
+
D && p && h(g);
|
|
2950
|
+
}, [D, g, p, h]), V(() => {
|
|
2951
2951
|
b.current = g;
|
|
2952
2952
|
}, [g]);
|
|
2953
2953
|
const I = B(
|
|
2954
2954
|
() => ({
|
|
2955
|
-
activeIndex:
|
|
2955
|
+
activeIndex: m,
|
|
2956
2956
|
containerId: d,
|
|
2957
2957
|
disabled: O,
|
|
2958
2958
|
disableTransforms: j,
|
|
@@ -2963,7 +2963,7 @@ function lo(e) {
|
|
|
2963
2963
|
strategy: o
|
|
2964
2964
|
}),
|
|
2965
2965
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2966
|
-
[
|
|
2966
|
+
[m, d, O.draggable, O.droppable, j, g, x, c, f, o]
|
|
2967
2967
|
);
|
|
2968
2968
|
return oe.createElement(ao.Provider, {
|
|
2969
2969
|
value: I
|
|
@@ -3045,12 +3045,12 @@ function uo(e) {
|
|
|
3045
3045
|
containerId: d,
|
|
3046
3046
|
activeIndex: f,
|
|
3047
3047
|
disabled: g,
|
|
3048
|
-
disableTransforms:
|
|
3049
|
-
sortedRects:
|
|
3048
|
+
disableTransforms: p,
|
|
3049
|
+
sortedRects: m,
|
|
3050
3050
|
overIndex: x,
|
|
3051
3051
|
useDragOverlay: b,
|
|
3052
3052
|
strategy: D
|
|
3053
|
-
} =
|
|
3053
|
+
} = He(ao), j = Mi(r, g), O = h.indexOf(a), I = B(() => ({
|
|
3054
3054
|
sortable: {
|
|
3055
3055
|
containerId: d,
|
|
3056
3056
|
index: O,
|
|
@@ -3059,7 +3059,7 @@ function uo(e) {
|
|
|
3059
3059
|
...o
|
|
3060
3060
|
}), [d, o, O, h]), M = B(() => h.slice(h.indexOf(a)), [h, a]), {
|
|
3061
3061
|
rect: $,
|
|
3062
|
-
node:
|
|
3062
|
+
node: k,
|
|
3063
3063
|
isOver: W,
|
|
3064
3064
|
setNodeRef: P
|
|
3065
3065
|
} = gi({
|
|
@@ -3071,7 +3071,7 @@ function uo(e) {
|
|
|
3071
3071
|
...c
|
|
3072
3072
|
}
|
|
3073
3073
|
}), {
|
|
3074
|
-
active:
|
|
3074
|
+
active: A,
|
|
3075
3075
|
activatorEvent: Z,
|
|
3076
3076
|
activeNodeRect: te,
|
|
3077
3077
|
attributes: R,
|
|
@@ -3089,8 +3089,8 @@ function uo(e) {
|
|
|
3089
3089
|
...n
|
|
3090
3090
|
},
|
|
3091
3091
|
disabled: j.draggable
|
|
3092
|
-
}), v = Ho(P, w), _ = !!
|
|
3093
|
-
rects:
|
|
3092
|
+
}), v = Ho(P, w), _ = !!A, L = _ && !p && It(f) && It(x), N = !b && E, J = N && L ? z : null, Y = L ? J ?? (i ?? D)({
|
|
3093
|
+
rects: m,
|
|
3094
3094
|
activeNodeRect: te,
|
|
3095
3095
|
activeIndex: f,
|
|
3096
3096
|
overIndex: x,
|
|
@@ -3100,13 +3100,13 @@ function uo(e) {
|
|
|
3100
3100
|
items: h,
|
|
3101
3101
|
activeIndex: f,
|
|
3102
3102
|
overIndex: x
|
|
3103
|
-
}) : O, re =
|
|
3103
|
+
}) : O, re = A?.id, F = G({
|
|
3104
3104
|
activeId: re,
|
|
3105
3105
|
items: h,
|
|
3106
3106
|
newIndex: ne,
|
|
3107
3107
|
containerId: d
|
|
3108
3108
|
}), pe = h !== F.current.items, de = t({
|
|
3109
|
-
active:
|
|
3109
|
+
active: A,
|
|
3110
3110
|
containerId: d,
|
|
3111
3111
|
isDragging: E,
|
|
3112
3112
|
isSorting: _,
|
|
@@ -3121,7 +3121,7 @@ function uo(e) {
|
|
|
3121
3121
|
}), De = Ri({
|
|
3122
3122
|
disabled: !de,
|
|
3123
3123
|
index: O,
|
|
3124
|
-
node:
|
|
3124
|
+
node: k,
|
|
3125
3125
|
rect: $
|
|
3126
3126
|
});
|
|
3127
3127
|
return V(() => {
|
|
@@ -3133,12 +3133,12 @@ function uo(e) {
|
|
|
3133
3133
|
F.current.activeId = re;
|
|
3134
3134
|
return;
|
|
3135
3135
|
}
|
|
3136
|
-
const
|
|
3136
|
+
const Xe = setTimeout(() => {
|
|
3137
3137
|
F.current.activeId = re;
|
|
3138
3138
|
}, 50);
|
|
3139
|
-
return () => clearTimeout(
|
|
3139
|
+
return () => clearTimeout(Xe);
|
|
3140
3140
|
}, [re]), {
|
|
3141
|
-
active:
|
|
3141
|
+
active: A,
|
|
3142
3142
|
activeIndex: f,
|
|
3143
3143
|
attributes: R,
|
|
3144
3144
|
data: I,
|
|
@@ -3150,7 +3150,7 @@ function uo(e) {
|
|
|
3150
3150
|
isSorting: _,
|
|
3151
3151
|
isDragging: E,
|
|
3152
3152
|
listeners: S,
|
|
3153
|
-
node:
|
|
3153
|
+
node: k,
|
|
3154
3154
|
overIndex: x,
|
|
3155
3155
|
over: C,
|
|
3156
3156
|
setNodeRef: v,
|
|
@@ -3197,16 +3197,16 @@ function Oi() {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
3199
3199
|
function i(d, f) {
|
|
3200
|
-
var g = f(),
|
|
3200
|
+
var g = f(), p = r({ inst: { value: g, getSnapshot: f } }), m = p[0].inst, x = p[1];
|
|
3201
3201
|
return s(
|
|
3202
3202
|
function() {
|
|
3203
|
-
|
|
3203
|
+
m.value = g, m.getSnapshot = f, c(m) && x({ inst: m });
|
|
3204
3204
|
},
|
|
3205
3205
|
[d, g, f]
|
|
3206
3206
|
), o(
|
|
3207
3207
|
function() {
|
|
3208
|
-
return c(
|
|
3209
|
-
c(
|
|
3208
|
+
return c(m) && x({ inst: m }), d(function() {
|
|
3209
|
+
c(m) && x({ inst: m });
|
|
3210
3210
|
});
|
|
3211
3211
|
},
|
|
3212
3212
|
[d]
|
|
@@ -3232,29 +3232,29 @@ var mn = {};
|
|
|
3232
3232
|
var hr;
|
|
3233
3233
|
function Ti() {
|
|
3234
3234
|
return hr || (hr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3235
|
-
function e(g,
|
|
3236
|
-
return g ===
|
|
3235
|
+
function e(g, p) {
|
|
3236
|
+
return g === p && (g !== 0 || 1 / g === 1 / p) || g !== g && p !== p;
|
|
3237
3237
|
}
|
|
3238
|
-
function t(g,
|
|
3238
|
+
function t(g, p) {
|
|
3239
3239
|
h || o.startTransition === void 0 || (h = !0, console.error(
|
|
3240
3240
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
3241
3241
|
));
|
|
3242
|
-
var
|
|
3242
|
+
var m = p();
|
|
3243
3243
|
if (!d) {
|
|
3244
|
-
var x =
|
|
3245
|
-
s(
|
|
3244
|
+
var x = p();
|
|
3245
|
+
s(m, x) || (console.error(
|
|
3246
3246
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
3247
3247
|
), d = !0);
|
|
3248
3248
|
}
|
|
3249
3249
|
x = a({
|
|
3250
|
-
inst: { value:
|
|
3250
|
+
inst: { value: m, getSnapshot: p }
|
|
3251
3251
|
});
|
|
3252
3252
|
var b = x[0].inst, D = x[1];
|
|
3253
3253
|
return c(
|
|
3254
3254
|
function() {
|
|
3255
|
-
b.value =
|
|
3255
|
+
b.value = m, b.getSnapshot = p, n(b) && D({ inst: b });
|
|
3256
3256
|
},
|
|
3257
|
-
[g,
|
|
3257
|
+
[g, m, p]
|
|
3258
3258
|
), i(
|
|
3259
3259
|
function() {
|
|
3260
3260
|
return n(b) && D({ inst: b }), g(function() {
|
|
@@ -3262,20 +3262,20 @@ function Ti() {
|
|
|
3262
3262
|
});
|
|
3263
3263
|
},
|
|
3264
3264
|
[g]
|
|
3265
|
-
), u(
|
|
3265
|
+
), u(m), m;
|
|
3266
3266
|
}
|
|
3267
3267
|
function n(g) {
|
|
3268
|
-
var
|
|
3268
|
+
var p = g.getSnapshot;
|
|
3269
3269
|
g = g.value;
|
|
3270
3270
|
try {
|
|
3271
|
-
var
|
|
3272
|
-
return !s(g,
|
|
3271
|
+
var m = p();
|
|
3272
|
+
return !s(g, m);
|
|
3273
3273
|
} catch {
|
|
3274
3274
|
return !0;
|
|
3275
3275
|
}
|
|
3276
3276
|
}
|
|
3277
|
-
function r(g,
|
|
3278
|
-
return
|
|
3277
|
+
function r(g, p) {
|
|
3278
|
+
return p();
|
|
3279
3279
|
}
|
|
3280
3280
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3281
3281
|
var o = oe, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, i = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, h = !1, d = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
@@ -3296,25 +3296,25 @@ function _i() {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, i = e.useMemo, c = e.useDebugValue;
|
|
3298
3298
|
return gn.useSyncExternalStoreWithSelector = function(u, h, d, f, g) {
|
|
3299
|
-
var
|
|
3300
|
-
if (
|
|
3301
|
-
var
|
|
3302
|
-
|
|
3303
|
-
} else
|
|
3304
|
-
|
|
3299
|
+
var p = s(null);
|
|
3300
|
+
if (p.current === null) {
|
|
3301
|
+
var m = { hasValue: !1, value: null };
|
|
3302
|
+
p.current = m;
|
|
3303
|
+
} else m = p.current;
|
|
3304
|
+
p = i(
|
|
3305
3305
|
function() {
|
|
3306
3306
|
function b(M) {
|
|
3307
3307
|
if (!D) {
|
|
3308
|
-
if (D = !0, j = M, M = f(M), g !== void 0 &&
|
|
3309
|
-
var $ =
|
|
3308
|
+
if (D = !0, j = M, M = f(M), g !== void 0 && m.hasValue) {
|
|
3309
|
+
var $ = m.value;
|
|
3310
3310
|
if (g($, M))
|
|
3311
3311
|
return O = $;
|
|
3312
3312
|
}
|
|
3313
3313
|
return O = M;
|
|
3314
3314
|
}
|
|
3315
3315
|
if ($ = O, r(j, M)) return $;
|
|
3316
|
-
var
|
|
3317
|
-
return g !== void 0 && g($,
|
|
3316
|
+
var k = f(M);
|
|
3317
|
+
return g !== void 0 && g($, k) ? (j = M, $) : (j = M, O = k);
|
|
3318
3318
|
}
|
|
3319
3319
|
var D = !1, j, O, I = d === void 0 ? null : d;
|
|
3320
3320
|
return [
|
|
@@ -3328,10 +3328,10 @@ function _i() {
|
|
|
3328
3328
|
},
|
|
3329
3329
|
[h, d, f, g]
|
|
3330
3330
|
);
|
|
3331
|
-
var x = o(u,
|
|
3331
|
+
var x = o(u, p[0], p[1]);
|
|
3332
3332
|
return a(
|
|
3333
3333
|
function() {
|
|
3334
|
-
|
|
3334
|
+
m.hasValue = !0, m.value = x;
|
|
3335
3335
|
},
|
|
3336
3336
|
[x]
|
|
3337
3337
|
), c(x), x;
|
|
@@ -3347,17 +3347,17 @@ function Ii() {
|
|
|
3347
3347
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3348
3348
|
var t = oe, n = ho(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, i = t.useMemo, c = t.useDebugValue;
|
|
3349
3349
|
vn.useSyncExternalStoreWithSelector = function(u, h, d, f, g) {
|
|
3350
|
-
var
|
|
3351
|
-
if (
|
|
3352
|
-
var
|
|
3353
|
-
|
|
3354
|
-
} else
|
|
3355
|
-
|
|
3350
|
+
var p = s(null);
|
|
3351
|
+
if (p.current === null) {
|
|
3352
|
+
var m = { hasValue: !1, value: null };
|
|
3353
|
+
p.current = m;
|
|
3354
|
+
} else m = p.current;
|
|
3355
|
+
p = i(
|
|
3356
3356
|
function() {
|
|
3357
3357
|
function b(M) {
|
|
3358
3358
|
if (!D) {
|
|
3359
|
-
if (D = !0, j = M, M = f(M), g !== void 0 &&
|
|
3360
|
-
var $ =
|
|
3359
|
+
if (D = !0, j = M, M = f(M), g !== void 0 && m.hasValue) {
|
|
3360
|
+
var $ = m.value;
|
|
3361
3361
|
if (g($, M))
|
|
3362
3362
|
return O = $;
|
|
3363
3363
|
}
|
|
@@ -3365,8 +3365,8 @@ function Ii() {
|
|
|
3365
3365
|
}
|
|
3366
3366
|
if ($ = O, r(j, M))
|
|
3367
3367
|
return $;
|
|
3368
|
-
var
|
|
3369
|
-
return g !== void 0 && g($,
|
|
3368
|
+
var k = f(M);
|
|
3369
|
+
return g !== void 0 && g($, k) ? (j = M, $) : (j = M, O = k);
|
|
3370
3370
|
}
|
|
3371
3371
|
var D = !1, j, O, I = d === void 0 ? null : d;
|
|
3372
3372
|
return [
|
|
@@ -3380,10 +3380,10 @@ function Ii() {
|
|
|
3380
3380
|
},
|
|
3381
3381
|
[h, d, f, g]
|
|
3382
3382
|
);
|
|
3383
|
-
var x = o(u,
|
|
3383
|
+
var x = o(u, p[0], p[1]);
|
|
3384
3384
|
return a(
|
|
3385
3385
|
function() {
|
|
3386
|
-
|
|
3386
|
+
m.hasValue = !0, m.value = x;
|
|
3387
3387
|
},
|
|
3388
3388
|
[x]
|
|
3389
3389
|
), c(x), x;
|
|
@@ -3515,25 +3515,25 @@ function xr(e) {
|
|
|
3515
3515
|
Object.getOwnPropertySymbols(e)
|
|
3516
3516
|
);
|
|
3517
3517
|
}
|
|
3518
|
-
function
|
|
3518
|
+
function et(e, t, n) {
|
|
3519
3519
|
let r = n.initialDeps ?? [], o, s = !0;
|
|
3520
3520
|
function a() {
|
|
3521
3521
|
var i, c, u;
|
|
3522
3522
|
let h;
|
|
3523
3523
|
n.key && ((i = n.debug) != null && i.call(n)) && (h = Date.now());
|
|
3524
3524
|
const d = e();
|
|
3525
|
-
if (!(d.length !== r.length || d.some((
|
|
3525
|
+
if (!(d.length !== r.length || d.some((p, m) => r[m] !== p)))
|
|
3526
3526
|
return o;
|
|
3527
3527
|
r = d;
|
|
3528
3528
|
let g;
|
|
3529
3529
|
if (n.key && ((c = n.debug) != null && c.call(n)) && (g = Date.now()), o = t(...d), n.key && ((u = n.debug) != null && u.call(n))) {
|
|
3530
|
-
const
|
|
3530
|
+
const p = Math.round((Date.now() - h) * 100) / 100, m = Math.round((Date.now() - g) * 100) / 100, x = m / 16, b = (D, j) => {
|
|
3531
3531
|
for (D = String(D); D.length < j; )
|
|
3532
3532
|
D = " " + D;
|
|
3533
3533
|
return D;
|
|
3534
3534
|
};
|
|
3535
3535
|
console.info(
|
|
3536
|
-
`%c⏱ ${b(
|
|
3536
|
+
`%c⏱ ${b(m, 5)} /${b(p, 5)} ms`,
|
|
3537
3537
|
`
|
|
3538
3538
|
font-size: .6rem;
|
|
3539
3539
|
font-weight: bold;
|
|
@@ -3704,7 +3704,7 @@ class Ki {
|
|
|
3704
3704
|
}, this.notify = (n) => {
|
|
3705
3705
|
var r, o;
|
|
3706
3706
|
(o = (r = this.options).onChange) == null || o.call(r, this, n);
|
|
3707
|
-
}, this.maybeNotify =
|
|
3707
|
+
}, this.maybeNotify = et(
|
|
3708
3708
|
() => (this.calculateRange(), [
|
|
3709
3709
|
this.isScrolling,
|
|
3710
3710
|
this.range ? this.range.startIndex : null,
|
|
@@ -3762,7 +3762,7 @@ class Ki {
|
|
|
3762
3762
|
break;
|
|
3763
3763
|
}
|
|
3764
3764
|
return s.size === this.options.lanes ? Array.from(s.values()).sort((a, i) => a.end === i.end ? a.index - i.index : a.end - i.end)[0] : void 0;
|
|
3765
|
-
}, this.getMeasurementOptions =
|
|
3765
|
+
}, this.getMeasurementOptions = et(
|
|
3766
3766
|
() => [
|
|
3767
3767
|
this.options.count,
|
|
3768
3768
|
this.options.paddingStart,
|
|
@@ -3782,7 +3782,7 @@ class Ki {
|
|
|
3782
3782
|
{
|
|
3783
3783
|
key: !1
|
|
3784
3784
|
}
|
|
3785
|
-
), this.getMeasurements =
|
|
3785
|
+
), this.getMeasurements = et(
|
|
3786
3786
|
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
3787
3787
|
({ count: n, paddingStart: r, scrollMargin: o, getItemKey: s, enabled: a, lanes: i }, c) => {
|
|
3788
3788
|
if (!a)
|
|
@@ -3803,15 +3803,15 @@ class Ki {
|
|
|
3803
3803
|
g && (d[g.lane] = f);
|
|
3804
3804
|
}
|
|
3805
3805
|
for (let f = u; f < n; f++) {
|
|
3806
|
-
const g = s(f),
|
|
3807
|
-
let
|
|
3808
|
-
if (
|
|
3809
|
-
|
|
3810
|
-
const O = d[
|
|
3806
|
+
const g = s(f), p = this.laneAssignments.get(f);
|
|
3807
|
+
let m, x;
|
|
3808
|
+
if (p !== void 0 && this.options.lanes > 1) {
|
|
3809
|
+
m = p;
|
|
3810
|
+
const O = d[m], I = O !== void 0 ? h[O] : void 0;
|
|
3811
3811
|
x = I ? I.end + this.options.gap : r + o;
|
|
3812
3812
|
} else {
|
|
3813
3813
|
const O = this.options.lanes === 1 ? h[f - 1] : this.getFurthestMeasurement(h, f);
|
|
3814
|
-
x = O ? O.end + this.options.gap : r + o,
|
|
3814
|
+
x = O ? O.end + this.options.gap : r + o, m = O ? O.lane : f % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(f, m);
|
|
3815
3815
|
}
|
|
3816
3816
|
const b = c.get(g), D = typeof b == "number" ? b : this.options.estimateSize(f), j = x + D;
|
|
3817
3817
|
h[f] = {
|
|
@@ -3820,8 +3820,8 @@ class Ki {
|
|
|
3820
3820
|
size: D,
|
|
3821
3821
|
end: j,
|
|
3822
3822
|
key: g,
|
|
3823
|
-
lane:
|
|
3824
|
-
}, d[
|
|
3823
|
+
lane: m
|
|
3824
|
+
}, d[m] = f;
|
|
3825
3825
|
}
|
|
3826
3826
|
return this.measurementsCache = h, h;
|
|
3827
3827
|
},
|
|
@@ -3829,7 +3829,7 @@ class Ki {
|
|
|
3829
3829
|
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
3830
3830
|
debug: () => this.options.debug
|
|
3831
3831
|
}
|
|
3832
|
-
), this.calculateRange =
|
|
3832
|
+
), this.calculateRange = et(
|
|
3833
3833
|
() => [
|
|
3834
3834
|
this.getMeasurements(),
|
|
3835
3835
|
this.getSize(),
|
|
@@ -3846,7 +3846,7 @@ class Ki {
|
|
|
3846
3846
|
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
3847
3847
|
debug: () => this.options.debug
|
|
3848
3848
|
}
|
|
3849
|
-
), this.getVirtualIndexes =
|
|
3849
|
+
), this.getVirtualIndexes = et(
|
|
3850
3850
|
() => {
|
|
3851
3851
|
let n = null, r = null;
|
|
3852
3852
|
const o = this.calculateRange();
|
|
@@ -3896,7 +3896,7 @@ class Ki {
|
|
|
3896
3896
|
return;
|
|
3897
3897
|
}
|
|
3898
3898
|
this._measureElement(n, void 0);
|
|
3899
|
-
}, this.getVirtualItems =
|
|
3899
|
+
}, this.getVirtualItems = et(
|
|
3900
3900
|
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
3901
3901
|
(n, r) => {
|
|
3902
3902
|
const o = [];
|
|
@@ -3978,12 +3978,12 @@ class Ki {
|
|
|
3978
3978
|
this._scrollToOffset(d, { adjustments: void 0, behavior: o }), this.targetWindow.requestAnimationFrame(() => {
|
|
3979
3979
|
const g = () => {
|
|
3980
3980
|
if (this.currentScrollToIndex !== n) return;
|
|
3981
|
-
const
|
|
3982
|
-
if (!
|
|
3981
|
+
const p = this.getScrollOffset(), m = this.getOffsetForIndex(n, f);
|
|
3982
|
+
if (!m) {
|
|
3983
3983
|
console.warn("Failed to get offset for index:", n);
|
|
3984
3984
|
return;
|
|
3985
3985
|
}
|
|
3986
|
-
Vi(
|
|
3986
|
+
Vi(m[0], p) || c(f);
|
|
3987
3987
|
};
|
|
3988
3988
|
this.isDynamicMode() ? this.targetWindow.requestAnimationFrame(g) : g();
|
|
3989
3989
|
});
|
|
@@ -4103,7 +4103,7 @@ function Qi(e) {
|
|
|
4103
4103
|
...e
|
|
4104
4104
|
});
|
|
4105
4105
|
}
|
|
4106
|
-
const
|
|
4106
|
+
const Ye = "__actions__", je = "__visibility__", ge = new Fi({
|
|
4107
4107
|
tableId: "",
|
|
4108
4108
|
sortColumn: null,
|
|
4109
4109
|
sortDirection: null,
|
|
@@ -4115,19 +4115,19 @@ const et = "__actions__", je = "__visibility__", ge = new Fi({
|
|
|
4115
4115
|
enableColumnVisibility: !0
|
|
4116
4116
|
}), Fn = (e) => `datatable:${e}:column-widths`;
|
|
4117
4117
|
function ea(e, t, n = !0) {
|
|
4118
|
-
const r = e[0] ?? {}, o = 180, a = (t && t.length ? t : Object.keys(r).map((
|
|
4119
|
-
id:
|
|
4120
|
-
label:
|
|
4118
|
+
const r = e[0] ?? {}, o = 180, a = (t && t.length ? t : Object.keys(r).map((p) => ({
|
|
4119
|
+
id: p,
|
|
4120
|
+
label: p
|
|
4121
4121
|
}))).filter(
|
|
4122
|
-
(
|
|
4122
|
+
(p) => p.id === Ye || Object.prototype.hasOwnProperty.call(r, p.id)
|
|
4123
4123
|
), { tableId: i } = ge.state, c = JSON.parse(
|
|
4124
4124
|
localStorage.getItem(po(i)) || "[]"
|
|
4125
4125
|
);
|
|
4126
4126
|
let u = [
|
|
4127
|
-
...c.map((
|
|
4128
|
-
...a.filter((
|
|
4127
|
+
...c.map((p) => a.find((m) => m.id === p)).filter(Boolean),
|
|
4128
|
+
...a.filter((p) => !c.includes(p.id))
|
|
4129
4129
|
];
|
|
4130
|
-
n ? u.some((
|
|
4130
|
+
n ? u.some((m) => m.id === je) || (u = [
|
|
4131
4131
|
...u,
|
|
4132
4132
|
{
|
|
4133
4133
|
type: "visibility",
|
|
@@ -4135,32 +4135,32 @@ function ea(e, t, n = !0) {
|
|
|
4135
4135
|
label: "",
|
|
4136
4136
|
minWidth: 20
|
|
4137
4137
|
}
|
|
4138
|
-
]) : u = u.filter((
|
|
4138
|
+
]) : u = u.filter((p) => p.id !== je);
|
|
4139
4139
|
const h = JSON.parse(
|
|
4140
4140
|
localStorage.getItem(On(i)) || "{}"
|
|
4141
4141
|
), d = {};
|
|
4142
4142
|
if (n) {
|
|
4143
|
-
for (const
|
|
4144
|
-
|
|
4143
|
+
for (const p of u)
|
|
4144
|
+
p.id === je || p.id === Ye ? d[p.id] = !0 : d[p.id] = h[p.id] ?? !0;
|
|
4145
4145
|
localStorage.setItem(On(i), JSON.stringify(d));
|
|
4146
4146
|
}
|
|
4147
4147
|
const f = JSON.parse(
|
|
4148
4148
|
localStorage.getItem(Fn(i)) || "{}"
|
|
4149
4149
|
), g = { ...f };
|
|
4150
|
-
u.forEach((
|
|
4151
|
-
|
|
4152
|
-
}), ge.setState((
|
|
4153
|
-
...
|
|
4150
|
+
u.forEach((p) => {
|
|
4151
|
+
p.id !== je && p.id !== Ye && !(p.id in f) && (g[p.id] = typeof p.minWidth == "number" ? p.minWidth : o);
|
|
4152
|
+
}), ge.setState((p) => ({
|
|
4153
|
+
...p,
|
|
4154
4154
|
data: e,
|
|
4155
4155
|
columnOrder: u,
|
|
4156
4156
|
visibility: d,
|
|
4157
4157
|
columnWidths: g,
|
|
4158
4158
|
enableColumnVisibility: n,
|
|
4159
|
-
sortableColumns: u.filter((
|
|
4160
|
-
id:
|
|
4161
|
-
label:
|
|
4162
|
-
sortable:
|
|
4163
|
-
minWidth:
|
|
4159
|
+
sortableColumns: u.filter((m) => m.id !== je).map((m) => ({
|
|
4160
|
+
id: m.id,
|
|
4161
|
+
label: m.label,
|
|
4162
|
+
sortable: m.id !== Ye,
|
|
4163
|
+
minWidth: m.minWidth
|
|
4164
4164
|
}))
|
|
4165
4165
|
}));
|
|
4166
4166
|
}
|
|
@@ -4393,7 +4393,7 @@ function Va({ visibility: e }) {
|
|
|
4393
4393
|
const { sortableColumns: t } = lt(ge);
|
|
4394
4394
|
return /* @__PURE__ */ l.jsxs(St.Root, { closeOnSelect: !1, children: [
|
|
4395
4395
|
/* @__PURE__ */ l.jsx(ka, { asChild: !0, children: /* @__PURE__ */ l.jsx(we, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ l.jsx(Ia, { size: 18 }) }) }),
|
|
4396
|
-
/* @__PURE__ */ l.jsx(
|
|
4396
|
+
/* @__PURE__ */ l.jsx(Be, { children: /* @__PURE__ */ l.jsx(za, { children: /* @__PURE__ */ l.jsx(La, { minW: "220px", children: t.map((n) => {
|
|
4397
4397
|
const r = !!e[n.id];
|
|
4398
4398
|
return /* @__PURE__ */ l.jsx(Na, { value: n.id, closeOnSelect: !1, children: /* @__PURE__ */ l.jsxs(Re.Root, { checked: r, onCheckedChange: () => oa(n.id), children: [
|
|
4399
4399
|
/* @__PURE__ */ l.jsx(Fa, {}),
|
|
@@ -4412,55 +4412,60 @@ function Ya({
|
|
|
4412
4412
|
backgroundColor: s,
|
|
4413
4413
|
minW: a
|
|
4414
4414
|
}) {
|
|
4415
|
-
const { columnWidths: i } = lt(ge),
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4415
|
+
const { columnWidths: i } = lt(ge), c = e === Ye, u = i[e], f = `${c ? 30 : u ?? 100}px`, g = G(0), p = G(0), { setNodeRef: m, attributes: x, listeners: b, transform: D, transition: j } = uo({ id: e }), O = ($) => {
|
|
4416
|
+
if (c) return;
|
|
4417
|
+
$.stopPropagation(), g.current = $.clientX;
|
|
4418
|
+
const k = $.currentTarget.closest("th");
|
|
4419
|
+
p.current = k?.getBoundingClientRect().width || i[e] || 180;
|
|
4420
|
+
const W = (A) => {
|
|
4421
|
+
let Z = p.current + (A.clientX - g.current);
|
|
4422
|
+
sa(e, Z);
|
|
4423
|
+
}, P = () => {
|
|
4424
|
+
document.removeEventListener("mousemove", W), document.removeEventListener("mouseup", P);
|
|
4424
4425
|
};
|
|
4425
|
-
document.addEventListener("mousemove",
|
|
4426
|
-
}, [
|
|
4426
|
+
document.addEventListener("mousemove", W), document.addEventListener("mouseup", P);
|
|
4427
|
+
}, [I, M] = H(!1);
|
|
4427
4428
|
return /* @__PURE__ */ l.jsx(
|
|
4428
4429
|
ae.ColumnHeader,
|
|
4429
4430
|
{
|
|
4430
4431
|
ref: m,
|
|
4431
4432
|
onClick: n,
|
|
4432
4433
|
backgroundColor: s,
|
|
4433
|
-
width:
|
|
4434
|
-
minWidth: a || "20px",
|
|
4434
|
+
width: f,
|
|
4435
|
+
minWidth: c ? "30px" : a || "20px",
|
|
4436
|
+
maxWidth: c ? "30px" : void 0,
|
|
4437
|
+
px: 2,
|
|
4438
|
+
py: 1,
|
|
4439
|
+
h: "32px",
|
|
4435
4440
|
style: {
|
|
4436
|
-
transform: nt.Transform.toString(
|
|
4437
|
-
transition:
|
|
4441
|
+
transform: nt.Transform.toString(D),
|
|
4442
|
+
transition: j,
|
|
4438
4443
|
cursor: r,
|
|
4439
|
-
borderRight: o,
|
|
4444
|
+
borderRight: c ? "none" : o,
|
|
4440
4445
|
boxSizing: "border-box"
|
|
4441
4446
|
},
|
|
4442
4447
|
bg: "gray.100",
|
|
4443
|
-
...
|
|
4444
|
-
children: /* @__PURE__ */ l.jsxs(fe, { position: "relative", width: "100%", children: [
|
|
4445
|
-
/* @__PURE__ */ l.jsx("span", { ...
|
|
4446
|
-
t,
|
|
4447
|
-
/* @__PURE__ */ l.jsx(
|
|
4448
|
-
|
|
4448
|
+
...x,
|
|
4449
|
+
children: /* @__PURE__ */ l.jsxs(fe, { position: "relative", width: "100%", gap: 1, children: [
|
|
4450
|
+
!c && /* @__PURE__ */ l.jsx("span", { ...b, style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ l.jsx(xo, { size: 12, style: { cursor: "grab", color: "#a0aebc" } }) }),
|
|
4451
|
+
/* @__PURE__ */ l.jsx(le, { flex: "1", overflow: "hidden", display: "flex", justifyContent: c ? "center" : "flex-start", children: t }),
|
|
4452
|
+
!c && /* @__PURE__ */ l.jsx(
|
|
4453
|
+
le,
|
|
4449
4454
|
{
|
|
4450
4455
|
position: "absolute",
|
|
4451
|
-
right:
|
|
4456
|
+
right: -2,
|
|
4452
4457
|
top: 0,
|
|
4453
4458
|
h: "100%",
|
|
4454
4459
|
w: "10px",
|
|
4455
4460
|
cursor: "col-resize",
|
|
4456
|
-
onMouseDown:
|
|
4457
|
-
onMouseEnter: () =>
|
|
4458
|
-
onMouseLeave: () =>
|
|
4461
|
+
onMouseDown: O,
|
|
4462
|
+
onMouseEnter: () => M(!0),
|
|
4463
|
+
onMouseLeave: () => M(!1),
|
|
4459
4464
|
display: "flex",
|
|
4460
4465
|
alignItems: "center",
|
|
4461
4466
|
justifyContent: "center",
|
|
4462
4467
|
zIndex: 2,
|
|
4463
|
-
children:
|
|
4468
|
+
children: I && /* @__PURE__ */ l.jsx(ha, { size: 14, style: { pointerEvents: "none", opacity: 0.8 } })
|
|
4464
4469
|
}
|
|
4465
4470
|
)
|
|
4466
4471
|
] })
|
|
@@ -4468,7 +4473,7 @@ function Ya({
|
|
|
4468
4473
|
);
|
|
4469
4474
|
}
|
|
4470
4475
|
function Ha() {
|
|
4471
|
-
const { columnOrder: e, visibility: t, enableColumnVisibility: n, sortColumn: r, sortDirection: o } = lt(ge), s = e.filter((a) => !n && a.id === je ? !1 : a.id === je || a.id ===
|
|
4476
|
+
const { columnOrder: e, visibility: t, enableColumnVisibility: n, sortColumn: r, sortDirection: o } = lt(ge), s = e.filter((a) => !n && a.id === je ? !1 : a.id === je || a.id === Ye ? !0 : t[a.id] !== !1).sort((a, i) => a.id === je ? 1 : i.id === je ? -1 : 0);
|
|
4472
4477
|
return /* @__PURE__ */ l.jsx(
|
|
4473
4478
|
ae.Header,
|
|
4474
4479
|
{
|
|
@@ -4479,11 +4484,22 @@ function Ha() {
|
|
|
4479
4484
|
contain: "layout style paint",
|
|
4480
4485
|
backgroundColor: "white"
|
|
4481
4486
|
},
|
|
4482
|
-
children: /* @__PURE__ */ l.jsx(ae.Row, {
|
|
4487
|
+
children: /* @__PURE__ */ l.jsx(ae.Row, { children: s.map((a) => {
|
|
4483
4488
|
if (a.id === je)
|
|
4484
|
-
return /* @__PURE__ */ l.jsx(
|
|
4489
|
+
return /* @__PURE__ */ l.jsx(
|
|
4490
|
+
ae.ColumnHeader,
|
|
4491
|
+
{
|
|
4492
|
+
bg: "gray.100",
|
|
4493
|
+
w: "40px",
|
|
4494
|
+
px: 1,
|
|
4495
|
+
py: 1,
|
|
4496
|
+
h: "32px",
|
|
4497
|
+
children: /* @__PURE__ */ l.jsx(Va, { visibility: t })
|
|
4498
|
+
},
|
|
4499
|
+
a.id
|
|
4500
|
+
);
|
|
4485
4501
|
const i = a.type !== "actions" && a.type !== "visibility", c = r === a.id;
|
|
4486
|
-
return /* @__PURE__ */ l.jsx(
|
|
4502
|
+
return a.id, /* @__PURE__ */ l.jsx(
|
|
4487
4503
|
Ya,
|
|
4488
4504
|
{
|
|
4489
4505
|
id: a.id,
|
|
@@ -4497,8 +4513,11 @@ function Ha() {
|
|
|
4497
4513
|
style: {
|
|
4498
4514
|
display: "flex",
|
|
4499
4515
|
alignItems: "center",
|
|
4500
|
-
gap:
|
|
4501
|
-
userSelect: "none"
|
|
4516
|
+
gap: 4,
|
|
4517
|
+
userSelect: "none",
|
|
4518
|
+
fontSize: "12px",
|
|
4519
|
+
// Slightly smaller text for compactness
|
|
4520
|
+
whiteSpace: "nowrap"
|
|
4502
4521
|
},
|
|
4503
4522
|
children: [
|
|
4504
4523
|
a.label,
|
|
@@ -4529,7 +4548,7 @@ function rl({
|
|
|
4529
4548
|
value: String(c)
|
|
4530
4549
|
}))
|
|
4531
4550
|
});
|
|
4532
|
-
return /* @__PURE__ */ l.jsx(
|
|
4551
|
+
return /* @__PURE__ */ l.jsx(le, { width: "100%", children: /* @__PURE__ */ l.jsxs(fe, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
4533
4552
|
/* @__PURE__ */ l.jsxs(fe, { children: [
|
|
4534
4553
|
/* @__PURE__ */ l.jsx(X, { fontSize: "sm", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
4535
4554
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -4547,7 +4566,7 @@ function rl({
|
|
|
4547
4566
|
/* @__PURE__ */ l.jsx(Qa, { children: /* @__PURE__ */ l.jsx(el, { placeholder: "" }) }),
|
|
4548
4567
|
/* @__PURE__ */ l.jsx(tl, { children: /* @__PURE__ */ l.jsx(nl, {}) })
|
|
4549
4568
|
] }),
|
|
4550
|
-
/* @__PURE__ */ l.jsx(
|
|
4569
|
+
/* @__PURE__ */ l.jsx(Be, { children: /* @__PURE__ */ l.jsx(Ua, { children: /* @__PURE__ */ l.jsx(Ga, { children: i.items.map((c) => /* @__PURE__ */ l.jsxs(qa, { item: c.value, children: [
|
|
4551
4570
|
c.label,
|
|
4552
4571
|
/* @__PURE__ */ l.jsx(ee.ItemIndicator, {})
|
|
4553
4572
|
] }, c.value)) }) }) })
|
|
@@ -4612,13 +4631,13 @@ function ol({
|
|
|
4612
4631
|
onContextMenu: (c) => {
|
|
4613
4632
|
(o === "right" || o === "both") && (c.preventDefault(), r?.(e, c));
|
|
4614
4633
|
},
|
|
4615
|
-
children: t.map((c) => c.id !==
|
|
4634
|
+
children: t.map((c) => c.id !== Ye && n[c.id] === !1 ? null : /* @__PURE__ */ l.jsx(
|
|
4616
4635
|
ae.Cell,
|
|
4617
4636
|
{
|
|
4618
4637
|
py: 0,
|
|
4619
4638
|
height: `${a}px`,
|
|
4620
4639
|
width: `${i[c.id] ?? 20}px`,
|
|
4621
|
-
minWidth: c.minWidth
|
|
4640
|
+
minWidth: c.minWidth ?? "20px",
|
|
4622
4641
|
maxWidth: `${i[c.id] ?? 180}px`,
|
|
4623
4642
|
whiteSpace: "nowrap",
|
|
4624
4643
|
overflow: "hidden",
|
|
@@ -4688,8 +4707,8 @@ function Bu({
|
|
|
4688
4707
|
density: d = "sm",
|
|
4689
4708
|
totalCount: f = 0,
|
|
4690
4709
|
pageSizeOptions: g,
|
|
4691
|
-
onRowSelect:
|
|
4692
|
-
onRowSelectEvent:
|
|
4710
|
+
onRowSelect: p,
|
|
4711
|
+
onRowSelectEvent: m = "left",
|
|
4693
4712
|
enableColumnVisibility: x = !0,
|
|
4694
4713
|
dataType: b = "pagination",
|
|
4695
4714
|
manualPagination: D = !1
|
|
@@ -4700,31 +4719,31 @@ function Bu({
|
|
|
4700
4719
|
}, [e]), V(() => {
|
|
4701
4720
|
ea(t, n, x);
|
|
4702
4721
|
}, [t, n, x]);
|
|
4703
|
-
const { sortColumn: O, sortDirection: I, data: M, columnOrder: $ } = lt(ge),
|
|
4722
|
+
const { sortColumn: O, sortDirection: I, data: M, columnOrder: $ } = lt(ge), k = B(
|
|
4704
4723
|
() => $.length ? $ : n,
|
|
4705
4724
|
[$, n]
|
|
4706
4725
|
), W = B(() => {
|
|
4707
4726
|
if (!O || !I) return M;
|
|
4708
|
-
const T =
|
|
4727
|
+
const T = k.find((z) => z.id === O);
|
|
4709
4728
|
return ll(M, T, I);
|
|
4710
|
-
}, [M, O, I,
|
|
4711
|
-
count:
|
|
4729
|
+
}, [M, O, I, k]), P = (Math.max(1, i) - 1) * c, A = B(() => b === "infinite" || D || f > W.length || i > 1 && W.length > 0 && W.length <= c ? W : W.slice(P, P + c), [W, P, c, b, i, f, D]), te = d === "sm" ? 45 : d === "md" ? 56 : 64, R = Qi({
|
|
4730
|
+
count: A.length,
|
|
4712
4731
|
getScrollElement: () => j.current,
|
|
4713
4732
|
estimateSize: () => te,
|
|
4714
4733
|
overscan: 25
|
|
4715
4734
|
}), w = (T) => {
|
|
4716
4735
|
const { active: z, over: v } = T;
|
|
4717
4736
|
if (!v || z.id === v.id) return;
|
|
4718
|
-
const _ =
|
|
4719
|
-
na(rn(
|
|
4720
|
-
}, S = r && !s, E = s && !r, C = !r && !s &&
|
|
4737
|
+
const _ = k.findIndex((N) => N.id === z.id), L = k.findIndex((N) => N.id === v.id);
|
|
4738
|
+
na(rn(k, _, L));
|
|
4739
|
+
}, S = r && !s, E = s && !r, C = !r && !s && A.length === 0;
|
|
4721
4740
|
return /* @__PURE__ */ l.jsx(oo, { collisionDetection: Hr, onDragEnd: w, children: /* @__PURE__ */ l.jsx(
|
|
4722
4741
|
lo,
|
|
4723
4742
|
{
|
|
4724
|
-
items:
|
|
4743
|
+
items: k.map((T) => T.id),
|
|
4725
4744
|
strategy: xi,
|
|
4726
4745
|
children: /* @__PURE__ */ l.jsxs(
|
|
4727
|
-
|
|
4746
|
+
le,
|
|
4728
4747
|
{
|
|
4729
4748
|
flex: "1",
|
|
4730
4749
|
minH: 0,
|
|
@@ -4735,7 +4754,7 @@ function Bu({
|
|
|
4735
4754
|
borderRadius: "sm",
|
|
4736
4755
|
children: [
|
|
4737
4756
|
/* @__PURE__ */ l.jsxs(
|
|
4738
|
-
|
|
4757
|
+
le,
|
|
4739
4758
|
{
|
|
4740
4759
|
ref: j,
|
|
4741
4760
|
flex: "1",
|
|
@@ -4748,7 +4767,7 @@ function Bu({
|
|
|
4748
4767
|
},
|
|
4749
4768
|
children: [
|
|
4750
4769
|
S && /* @__PURE__ */ l.jsx(
|
|
4751
|
-
|
|
4770
|
+
le,
|
|
4752
4771
|
{
|
|
4753
4772
|
position: "absolute",
|
|
4754
4773
|
inset: 0,
|
|
@@ -4776,10 +4795,10 @@ function Bu({
|
|
|
4776
4795
|
},
|
|
4777
4796
|
children: [
|
|
4778
4797
|
/* @__PURE__ */ l.jsx(Ha, {}),
|
|
4779
|
-
E ? /* @__PURE__ */ l.jsx(al, { rows: c, columns:
|
|
4798
|
+
E ? /* @__PURE__ */ l.jsx(al, { rows: c, columns: k.length }) : C ? /* @__PURE__ */ l.jsx(ae.Body, { children: /* @__PURE__ */ l.jsx(ae.Row, { children: /* @__PURE__ */ l.jsx(
|
|
4780
4799
|
ae.Cell,
|
|
4781
4800
|
{
|
|
4782
|
-
colSpan:
|
|
4801
|
+
colSpan: k.length,
|
|
4783
4802
|
textAlign: "center",
|
|
4784
4803
|
h: "200px",
|
|
4785
4804
|
color: "gray.500",
|
|
@@ -4788,11 +4807,11 @@ function Bu({
|
|
|
4788
4807
|
) }) }) : /* @__PURE__ */ l.jsx(
|
|
4789
4808
|
il,
|
|
4790
4809
|
{
|
|
4791
|
-
data:
|
|
4792
|
-
columns:
|
|
4810
|
+
data: A,
|
|
4811
|
+
columns: k,
|
|
4793
4812
|
rowVirtualizer: R,
|
|
4794
|
-
onRowSelect:
|
|
4795
|
-
onRowSelectEvent:
|
|
4813
|
+
onRowSelect: p,
|
|
4814
|
+
onRowSelectEvent: m,
|
|
4796
4815
|
rowHeight: te
|
|
4797
4816
|
}
|
|
4798
4817
|
)
|
|
@@ -4802,7 +4821,7 @@ function Bu({
|
|
|
4802
4821
|
]
|
|
4803
4822
|
}
|
|
4804
4823
|
),
|
|
4805
|
-
b === "pagination" && /* @__PURE__ */ l.jsx(
|
|
4824
|
+
b === "pagination" && /* @__PURE__ */ l.jsx(le, { mt: 0.5, bg: "gray.100", color: "gray.600", p: 2, children: /* @__PURE__ */ l.jsx(
|
|
4806
4825
|
rl,
|
|
4807
4826
|
{
|
|
4808
4827
|
totalCount: f,
|
|
@@ -4817,9 +4836,9 @@ function Bu({
|
|
|
4817
4836
|
pageSizeOptions: g
|
|
4818
4837
|
}
|
|
4819
4838
|
) }),
|
|
4820
|
-
b === "infinite" && /* @__PURE__ */ l.jsxs(
|
|
4839
|
+
b === "infinite" && /* @__PURE__ */ l.jsxs(le, { mt: 2, px: 2, fontSize: "sm", color: "white", children: [
|
|
4821
4840
|
"Showing ",
|
|
4822
|
-
|
|
4841
|
+
A.length,
|
|
4823
4842
|
" rows"
|
|
4824
4843
|
] })
|
|
4825
4844
|
]
|
|
@@ -4828,11 +4847,11 @@ function Bu({
|
|
|
4828
4847
|
}
|
|
4829
4848
|
) });
|
|
4830
4849
|
}
|
|
4831
|
-
const
|
|
4850
|
+
const ue = [];
|
|
4832
4851
|
for (let e = 0; e < 256; ++e)
|
|
4833
|
-
|
|
4852
|
+
ue.push((e + 256).toString(16).slice(1));
|
|
4834
4853
|
function cl(e, t = 0) {
|
|
4835
|
-
return (
|
|
4854
|
+
return (ue[e[t + 0]] + ue[e[t + 1]] + ue[e[t + 2]] + ue[e[t + 3]] + "-" + ue[e[t + 4]] + ue[e[t + 5]] + "-" + ue[e[t + 6]] + ue[e[t + 7]] + "-" + ue[e[t + 8]] + ue[e[t + 9]] + "-" + ue[e[t + 10]] + ue[e[t + 11]] + ue[e[t + 12]] + ue[e[t + 13]] + ue[e[t + 14]] + ue[e[t + 15]]).toLowerCase();
|
|
4836
4855
|
}
|
|
4837
4856
|
let bn;
|
|
4838
4857
|
const ul = new Uint8Array(16);
|
|
@@ -4876,7 +4895,7 @@ const pl = y(Re.Root), ml = y(Re.HiddenInput), vl = y(Re.Control), xl = y(Re.Lab
|
|
|
4876
4895
|
}
|
|
4877
4896
|
),
|
|
4878
4897
|
r && /* @__PURE__ */ l.jsx(xl, { children: r })
|
|
4879
|
-
] }), yl = y(
|
|
4898
|
+
] }), yl = y(Ue.Root), wl = y(Ue.Input), Sl = y(Ue.Trigger), Cl = y(Ue.Control), Dl = y(Ue.Content), jl = y(Ue.Positioner), El = y(Ue.Item), Rl = y(Ue.ItemText);
|
|
4880
4899
|
function Ml({
|
|
4881
4900
|
label: e = "Select Option",
|
|
4882
4901
|
size: t = "sm",
|
|
@@ -4891,20 +4910,20 @@ function Ml({
|
|
|
4891
4910
|
onSelect: h,
|
|
4892
4911
|
visible: d = !0
|
|
4893
4912
|
}) {
|
|
4894
|
-
const [f, g] = H(""),
|
|
4913
|
+
const [f, g] = H(""), p = B(() => [
|
|
4895
4914
|
{ label: "Option 1", value: "1" },
|
|
4896
4915
|
{ label: "Option 2", value: "2" },
|
|
4897
4916
|
{ label: "Option 3", value: "3" }
|
|
4898
|
-
], []),
|
|
4917
|
+
], []), m = r && r.length > 0 ? r : p;
|
|
4899
4918
|
V(() => {
|
|
4900
4919
|
g(i ? o(i) : "");
|
|
4901
4920
|
}, [i, o]);
|
|
4902
4921
|
const x = B(() => _n({
|
|
4903
|
-
items:
|
|
4922
|
+
items: m,
|
|
4904
4923
|
itemToString: o,
|
|
4905
4924
|
itemToValue: s
|
|
4906
|
-
}), [
|
|
4907
|
-
return d ? /* @__PURE__ */ l.jsx(
|
|
4925
|
+
}), [m, o, s]);
|
|
4926
|
+
return d ? /* @__PURE__ */ l.jsx(le, { minW: n, children: /* @__PURE__ */ l.jsxs(
|
|
4908
4927
|
yl,
|
|
4909
4928
|
{
|
|
4910
4929
|
width: "100%",
|
|
@@ -4914,7 +4933,7 @@ function Ml({
|
|
|
4914
4933
|
onInputValueChange: (b) => g(b.inputValue),
|
|
4915
4934
|
value: i ? [s(i)] : [],
|
|
4916
4935
|
onValueChange: (b) => {
|
|
4917
|
-
const D = b.value[0], j =
|
|
4936
|
+
const D = b.value[0], j = m.find((O) => s(O) === D);
|
|
4918
4937
|
j && h?.(j);
|
|
4919
4938
|
},
|
|
4920
4939
|
children: [
|
|
@@ -4930,10 +4949,10 @@ function Ml({
|
|
|
4930
4949
|
),
|
|
4931
4950
|
/* @__PURE__ */ l.jsx(Sl, {})
|
|
4932
4951
|
] }),
|
|
4933
|
-
/* @__PURE__ */ l.jsx(
|
|
4952
|
+
/* @__PURE__ */ l.jsx(Be, { children: /* @__PURE__ */ l.jsx(jl, { zIndex: "max", children: /* @__PURE__ */ l.jsx(Dl, { bg: "white", boxShadow: "md", py: 1, borderRadius: "md", minW: "200px", children: c ? /* @__PURE__ */ l.jsxs(fe, { p: "3", justify: "center", children: [
|
|
4934
4953
|
/* @__PURE__ */ l.jsx(Lr, { size: "xs" }),
|
|
4935
4954
|
/* @__PURE__ */ l.jsx(X, { fontSize: "sm", children: "Loading..." })
|
|
4936
|
-
] }) :
|
|
4955
|
+
] }) : m.length === 0 ? /* @__PURE__ */ l.jsx(X, { p: "3", fontSize: "sm", color: "gray.500", children: "No results found" }) : x.items.map((b) => /* @__PURE__ */ l.jsx(
|
|
4937
4956
|
El,
|
|
4938
4957
|
{
|
|
4939
4958
|
item: b,
|
|
@@ -4948,8 +4967,8 @@ function Ml({
|
|
|
4948
4967
|
}
|
|
4949
4968
|
) }) : null;
|
|
4950
4969
|
}
|
|
4951
|
-
const Ol = y($e.Root), Tl = y($e.Content), _l = y($e.Arrow), Il = y($e.Trigger), $l = y($e.Positioner),
|
|
4952
|
-
function
|
|
4970
|
+
const Ol = y($e.Root), Tl = y($e.Content), _l = y($e.Arrow), Il = y($e.Trigger), $l = y($e.Positioner), Ge = (e) => e ? new Date(e.getFullYear(), e.getMonth(), e.getDate()) : null;
|
|
4971
|
+
function qe(e) {
|
|
4953
4972
|
if (!e) return "";
|
|
4954
4973
|
const t = String(e.getDate()).padStart(2, "0"), n = String(e.getMonth() + 1).padStart(2, "0"), r = e.getFullYear();
|
|
4955
4974
|
return `${t}-${n}-${r}`;
|
|
@@ -4959,10 +4978,10 @@ function Er(e) {
|
|
|
4959
4978
|
if (!i) return null;
|
|
4960
4979
|
const c = i.trim().split("-");
|
|
4961
4980
|
if (c.length !== 3) return null;
|
|
4962
|
-
const [u, h, d] = c, f = parseInt(u), g = parseInt(h) - 1,
|
|
4963
|
-
if (isNaN(f) || isNaN(g) || isNaN(
|
|
4964
|
-
const
|
|
4965
|
-
return
|
|
4981
|
+
const [u, h, d] = c, f = parseInt(u), g = parseInt(h) - 1, p = parseInt(d);
|
|
4982
|
+
if (isNaN(f) || isNaN(g) || isNaN(p) || d.length !== 4) return null;
|
|
4983
|
+
const m = new Date(p, g, f);
|
|
4984
|
+
return m.getDate() === f && m.getMonth() === g ? m : null;
|
|
4966
4985
|
}, s = o(n), a = o(r);
|
|
4967
4986
|
return { start: s, end: a };
|
|
4968
4987
|
}
|
|
@@ -4975,49 +4994,49 @@ function Al({
|
|
|
4975
4994
|
label: s = "Select date range",
|
|
4976
4995
|
visible: a = !0
|
|
4977
4996
|
}) {
|
|
4978
|
-
const [i, c] = H(!1), [u, h] = H(e || /* @__PURE__ */ new Date()), [d, f] = H(null), [g,
|
|
4979
|
-
b(
|
|
4997
|
+
const [i, c] = H(!1), [u, h] = H(e || /* @__PURE__ */ new Date()), [d, f] = H(null), [g, p] = H(Ge(e)), [m, x] = H(Ge(t)), b = (R, w) => R && w ? `${qe(R)} to ${qe(w)}` : R ? `${qe(R)}` : "", [D, j] = H(
|
|
4998
|
+
b(Ge(e), Ge(t))
|
|
4980
4999
|
), O = e?.getTime(), I = t?.getTime();
|
|
4981
5000
|
V(() => {
|
|
4982
|
-
const R =
|
|
4983
|
-
|
|
5001
|
+
const R = Ge(e), w = Ge(t);
|
|
5002
|
+
p(R), x(w), j(b(R, w)), R && h(new Date(R.getFullYear(), R.getMonth(), 1));
|
|
4984
5003
|
}, [O, I]);
|
|
4985
|
-
const M = new Date(u.getFullYear(), u.getMonth() + 1, 0).getDate(), $ = new Date(u.getFullYear(), u.getMonth(), 1).getDay(),
|
|
5004
|
+
const M = new Date(u.getFullYear(), u.getMonth() + 1, 0).getDate(), $ = new Date(u.getFullYear(), u.getMonth(), 1).getDay(), k = () => h(new Date(u.getFullYear(), u.getMonth() - 1, 1)), W = () => h(new Date(u.getFullYear(), u.getMonth() + 1, 1)), P = (R) => {
|
|
4986
5005
|
const w = new Date(u.getFullYear(), u.getMonth(), R);
|
|
4987
|
-
if (!g || g &&
|
|
4988
|
-
|
|
5006
|
+
if (!g || g && m) {
|
|
5007
|
+
p(w), x(null), n(w, null), j(qe(w));
|
|
4989
5008
|
return;
|
|
4990
5009
|
}
|
|
4991
|
-
if (g && !
|
|
5010
|
+
if (g && !m) {
|
|
4992
5011
|
const S = w < g ? w : g, E = w < g ? g : w;
|
|
4993
|
-
|
|
5012
|
+
p(S), x(E), n(S, E), j(`${qe(S)} to ${qe(E)}`), c(!1);
|
|
4994
5013
|
}
|
|
4995
|
-
},
|
|
5014
|
+
}, A = (R) => {
|
|
4996
5015
|
const w = R.target.value;
|
|
4997
5016
|
j(w);
|
|
4998
5017
|
const { start: S, end: E } = Er(w);
|
|
4999
5018
|
if (S && E) {
|
|
5000
5019
|
const C = S < E ? S : E, T = S < E ? E : S;
|
|
5001
|
-
|
|
5002
|
-
} else S && !w.toLowerCase().includes("to") ? (
|
|
5020
|
+
p(C), x(T), n(C, T), h(C);
|
|
5021
|
+
} else S && !w.toLowerCase().includes("to") ? (p(S), x(null), n(S, null)) : w.trim() || (p(null), x(null), n(null, null));
|
|
5003
5022
|
}, Z = (R) => {
|
|
5004
5023
|
if (R.key !== "Enter") return;
|
|
5005
5024
|
const { start: w, end: S } = Er(D);
|
|
5006
5025
|
if (w && !S && !D.toLowerCase().includes("to")) {
|
|
5007
|
-
const E = `${
|
|
5008
|
-
j(E),
|
|
5026
|
+
const E = `${qe(w)} to `;
|
|
5027
|
+
j(E), p(w), x(null), n(w, null), requestAnimationFrame(() => {
|
|
5009
5028
|
R.target.setSelectionRange(E.length, E.length);
|
|
5010
5029
|
});
|
|
5011
5030
|
return;
|
|
5012
5031
|
}
|
|
5013
5032
|
if (w && S) {
|
|
5014
5033
|
const E = w < S ? w : S, C = w < S ? S : w;
|
|
5015
|
-
|
|
5034
|
+
p(E), x(C), n(E, C), c(!1);
|
|
5016
5035
|
}
|
|
5017
5036
|
}, te = (R) => {
|
|
5018
|
-
R && (R.preventDefault(), R.stopPropagation()),
|
|
5037
|
+
R && (R.preventDefault(), R.stopPropagation()), p(null), x(null), j(""), n(null, null);
|
|
5019
5038
|
};
|
|
5020
|
-
return /* @__PURE__ */ l.jsxs(
|
|
5039
|
+
return /* @__PURE__ */ l.jsxs(le, { width: r, onKeyDown: Z, children: [
|
|
5021
5040
|
o && !a && /* @__PURE__ */ l.jsx(X, { fontSize: "xs", color: "fg.muted", mb: 1, fontWeight: "medium", children: s }),
|
|
5022
5041
|
/* @__PURE__ */ l.jsxs(
|
|
5023
5042
|
Ol,
|
|
@@ -5032,7 +5051,7 @@ function Al({
|
|
|
5032
5051
|
{
|
|
5033
5052
|
placeholder: "DD-MM-YYYY to DD-MM-YYYY",
|
|
5034
5053
|
value: D,
|
|
5035
|
-
onChange:
|
|
5054
|
+
onChange: A,
|
|
5036
5055
|
size: "sm",
|
|
5037
5056
|
autoComplete: "off"
|
|
5038
5057
|
}
|
|
@@ -5082,7 +5101,7 @@ function Al({
|
|
|
5082
5101
|
size: "xs",
|
|
5083
5102
|
variant: "ghost",
|
|
5084
5103
|
type: "button",
|
|
5085
|
-
onClick:
|
|
5104
|
+
onClick: k,
|
|
5086
5105
|
"aria-label": "Previous month",
|
|
5087
5106
|
children: "‹"
|
|
5088
5107
|
}
|
|
@@ -5105,11 +5124,11 @@ function Al({
|
|
|
5105
5124
|
] }),
|
|
5106
5125
|
/* @__PURE__ */ l.jsxs(Fr, { templateColumns: "repeat(7, 1fr)", gap: 1, textAlign: "center", children: [
|
|
5107
5126
|
["S", "M", "T", "W", "T", "F", "S"].map((R, w) => /* @__PURE__ */ l.jsx(X, { fontSize: "xs", fontWeight: "bold", color: "fg.subtle", py: 1, children: R }, `${R}-${w}`)),
|
|
5108
|
-
Array($).fill(null).map((R, w) => /* @__PURE__ */ l.jsx(
|
|
5127
|
+
Array($).fill(null).map((R, w) => /* @__PURE__ */ l.jsx(le, {}, `empty-${w}`)),
|
|
5109
5128
|
Array.from({ length: M }, (R, w) => {
|
|
5110
5129
|
const S = w + 1, E = new Date(u.getFullYear(), u.getMonth(), S);
|
|
5111
|
-
let C = g, T =
|
|
5112
|
-
const z =
|
|
5130
|
+
let C = g, T = m;
|
|
5131
|
+
const z = Ge(d);
|
|
5113
5132
|
if (z) {
|
|
5114
5133
|
if (C && !T)
|
|
5115
5134
|
z < C ? (T = C, C = z) : T = z;
|
|
@@ -5180,9 +5199,9 @@ function Wl({
|
|
|
5180
5199
|
}, [e]);
|
|
5181
5200
|
const d = new Date(i.getFullYear(), i.getMonth() + 1, 0).getDate(), f = new Date(i.getFullYear(), i.getMonth(), 1).getDay(), g = () => {
|
|
5182
5201
|
c(new Date(i.getFullYear(), i.getMonth() - 1, 1));
|
|
5183
|
-
},
|
|
5202
|
+
}, p = () => {
|
|
5184
5203
|
c(new Date(i.getFullYear(), i.getMonth() + 1, 1));
|
|
5185
|
-
},
|
|
5204
|
+
}, m = (D) => {
|
|
5186
5205
|
const j = new Date(i.getFullYear(), i.getMonth(), D);
|
|
5187
5206
|
t(j), a(!1);
|
|
5188
5207
|
}, x = (D) => {
|
|
@@ -5192,7 +5211,7 @@ function Wl({
|
|
|
5192
5211
|
g();
|
|
5193
5212
|
break;
|
|
5194
5213
|
case "ArrowRight":
|
|
5195
|
-
|
|
5214
|
+
p();
|
|
5196
5215
|
break;
|
|
5197
5216
|
case "Escape":
|
|
5198
5217
|
a(!1);
|
|
@@ -5201,7 +5220,7 @@ function Wl({
|
|
|
5201
5220
|
}, b = () => {
|
|
5202
5221
|
h(""), t(null);
|
|
5203
5222
|
};
|
|
5204
|
-
return /* @__PURE__ */ l.jsxs(
|
|
5223
|
+
return /* @__PURE__ */ l.jsxs(le, { width: n, onKeyDown: x, children: [
|
|
5205
5224
|
!r && /* @__PURE__ */ l.jsx(X, { fontSize: "xs", color: "fg.muted", mb: 1, fontWeight: "medium", children: o }),
|
|
5206
5225
|
/* @__PURE__ */ l.jsxs(
|
|
5207
5226
|
kl,
|
|
@@ -5283,7 +5302,7 @@ function Wl({
|
|
|
5283
5302
|
{
|
|
5284
5303
|
size: "xs",
|
|
5285
5304
|
variant: "ghost",
|
|
5286
|
-
onClick:
|
|
5305
|
+
onClick: p,
|
|
5287
5306
|
"aria-label": "Next month",
|
|
5288
5307
|
children: "›"
|
|
5289
5308
|
}
|
|
@@ -5291,7 +5310,7 @@ function Wl({
|
|
|
5291
5310
|
] }),
|
|
5292
5311
|
/* @__PURE__ */ l.jsxs(Fr, { templateColumns: "repeat(7, 1fr)", gap: 1, textAlign: "center", children: [
|
|
5293
5312
|
["S", "M", "T", "W", "T", "F", "S"].map((D, j) => /* @__PURE__ */ l.jsx(X, { fontSize: "xs", fontWeight: "bold", color: "fg.subtle", py: 1, children: D }, `${D}-${j}`)),
|
|
5294
|
-
Array(f).fill(null).map((D, j) => /* @__PURE__ */ l.jsx(
|
|
5313
|
+
Array(f).fill(null).map((D, j) => /* @__PURE__ */ l.jsx(le, {}, `empty-${j}`)),
|
|
5295
5314
|
Array.from({ length: d }, (D, j) => {
|
|
5296
5315
|
const O = j + 1, I = e && e.getDate() === O && e.getMonth() === i.getMonth() && e.getFullYear() === i.getFullYear();
|
|
5297
5316
|
return /* @__PURE__ */ l.jsx(
|
|
@@ -5300,7 +5319,7 @@ function Wl({
|
|
|
5300
5319
|
size: "xs",
|
|
5301
5320
|
variant: I ? "solid" : "ghost",
|
|
5302
5321
|
colorPalette: I ? "blue" : "gray",
|
|
5303
|
-
onClick: () =>
|
|
5322
|
+
onClick: () => m(O),
|
|
5304
5323
|
minW: "32px",
|
|
5305
5324
|
h: "32px",
|
|
5306
5325
|
fontSize: "xs",
|
|
@@ -5337,8 +5356,8 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5337
5356
|
errorText: d,
|
|
5338
5357
|
visible: f,
|
|
5339
5358
|
type: g = "text",
|
|
5340
|
-
min:
|
|
5341
|
-
max:
|
|
5359
|
+
min: p = 0,
|
|
5360
|
+
max: m = 100,
|
|
5342
5361
|
step: x = 1
|
|
5343
5362
|
}) => /* @__PURE__ */ l.jsxs(Vl, { width: a, children: [
|
|
5344
5363
|
/* @__PURE__ */ l.jsx(No, { startElement: e, children: /* @__PURE__ */ l.jsx(
|
|
@@ -5352,8 +5371,8 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5352
5371
|
variant: s,
|
|
5353
5372
|
disabled: u,
|
|
5354
5373
|
required: h,
|
|
5355
|
-
min:
|
|
5356
|
-
max:
|
|
5374
|
+
min: p,
|
|
5375
|
+
max: m,
|
|
5357
5376
|
step: x
|
|
5358
5377
|
}
|
|
5359
5378
|
) }),
|
|
@@ -5376,7 +5395,7 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5376
5395
|
}) => {
|
|
5377
5396
|
const g = B(() => _n({
|
|
5378
5397
|
items: e
|
|
5379
|
-
}), [e]),
|
|
5398
|
+
}), [e]), p = e.find((x) => x.value === n), m = (x) => {
|
|
5380
5399
|
x.preventDefault(), x.stopPropagation(), r?.(void 0);
|
|
5381
5400
|
};
|
|
5382
5401
|
return /* @__PURE__ */ l.jsxs(Bl, { disabled: u, required: h, children: [
|
|
@@ -5395,7 +5414,7 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5395
5414
|
/* @__PURE__ */ l.jsx(oc, {}),
|
|
5396
5415
|
f && /* @__PURE__ */ l.jsx(Xl, { children: t }),
|
|
5397
5416
|
/* @__PURE__ */ l.jsxs(Kl, { children: [
|
|
5398
|
-
/* @__PURE__ */ l.jsx(Jl, { children: /* @__PURE__ */ l.jsx(Zl, { placeholder: o, children:
|
|
5417
|
+
/* @__PURE__ */ l.jsx(Jl, { children: /* @__PURE__ */ l.jsx(Zl, { placeholder: o, children: p ? p.displayValue ?? p.label : "" }) }),
|
|
5399
5418
|
/* @__PURE__ */ l.jsxs(Ql, { children: [
|
|
5400
5419
|
n && !u && // 4. Wrap CloseButton to ensure it has its own layer
|
|
5401
5420
|
/* @__PURE__ */ l.jsx(
|
|
@@ -5409,8 +5428,8 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5409
5428
|
{
|
|
5410
5429
|
size: "sm",
|
|
5411
5430
|
variant: "ghost",
|
|
5412
|
-
onPointerDown:
|
|
5413
|
-
onClick:
|
|
5431
|
+
onPointerDown: m,
|
|
5432
|
+
onClick: m,
|
|
5414
5433
|
position: "relative",
|
|
5415
5434
|
zIndex: 10
|
|
5416
5435
|
}
|
|
@@ -5611,7 +5630,7 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5611
5630
|
window.removeEventListener("storage", b), window.removeEventListener("storage_updated", b);
|
|
5612
5631
|
};
|
|
5613
5632
|
}, [s]);
|
|
5614
|
-
const
|
|
5633
|
+
const p = () => {
|
|
5615
5634
|
const b = prompt("Preset name?");
|
|
5616
5635
|
if (!b) return;
|
|
5617
5636
|
const D = o.reduce(
|
|
@@ -5624,7 +5643,7 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5624
5643
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5625
5644
|
values: D
|
|
5626
5645
|
});
|
|
5627
|
-
},
|
|
5646
|
+
}, m = (b, D) => {
|
|
5628
5647
|
if (D && d !== void 0) {
|
|
5629
5648
|
const j = o.filter((M) => M.visible).reduce((M, $) => M + ($.size ?? 1), 0), I = o.find((M) => M.id === b)?.size ?? 1;
|
|
5630
5649
|
if (j + I > d) {
|
|
@@ -5643,7 +5662,7 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5643
5662
|
/* @__PURE__ */ l.jsx(Ca, { size: 16 }),
|
|
5644
5663
|
"Filters"
|
|
5645
5664
|
] }) }),
|
|
5646
|
-
/* @__PURE__ */ l.jsxs(
|
|
5665
|
+
/* @__PURE__ */ l.jsxs(Be, { children: [
|
|
5647
5666
|
/* @__PURE__ */ l.jsx(wc, {}),
|
|
5648
5667
|
/* @__PURE__ */ l.jsx(Sc, { children: /* @__PURE__ */ l.jsxs(Cc, { children: [
|
|
5649
5668
|
/* @__PURE__ */ l.jsx(Dc, { children: /* @__PURE__ */ l.jsx(jc, { children: "Filters" }) }),
|
|
@@ -5696,7 +5715,7 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5696
5715
|
xc,
|
|
5697
5716
|
{
|
|
5698
5717
|
filter: b,
|
|
5699
|
-
onVisibilityChange:
|
|
5718
|
+
onVisibilityChange: m,
|
|
5700
5719
|
onSizeChange: x
|
|
5701
5720
|
},
|
|
5702
5721
|
b.id
|
|
@@ -5751,7 +5770,7 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5751
5770
|
},
|
|
5752
5771
|
b.id
|
|
5753
5772
|
)),
|
|
5754
|
-
/* @__PURE__ */ l.jsx(_e, { size: "sm", colorScheme: "blue", onClick:
|
|
5773
|
+
/* @__PURE__ */ l.jsx(_e, { size: "sm", colorScheme: "blue", onClick: p, children: "Save Current Filters" })
|
|
5755
5774
|
] }) })
|
|
5756
5775
|
] }) }),
|
|
5757
5776
|
/* @__PURE__ */ l.jsx(Rc, { justify: "space-between", children: /* @__PURE__ */ l.jsx(Mc, { asChild: !0, children: /* @__PURE__ */ l.jsx(Ct, {}) }) })
|
|
@@ -5777,19 +5796,19 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5777
5796
|
return /* @__PURE__ */ l.jsxs(fe, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", alignItems: "center", children: [
|
|
5778
5797
|
e,
|
|
5779
5798
|
/* @__PURE__ */ l.jsxs(fe, { gapX: 1, align: "center", children: [
|
|
5780
|
-
t.filter((
|
|
5781
|
-
const
|
|
5782
|
-
return x || (g +=
|
|
5799
|
+
t.filter((p) => p.visible !== !1).map((p) => {
|
|
5800
|
+
const m = p.size ?? 1, x = a !== void 0 && g + m > a;
|
|
5801
|
+
return x || (g += m), /* @__PURE__ */ l.jsx(
|
|
5783
5802
|
fe,
|
|
5784
5803
|
{
|
|
5785
|
-
flex:
|
|
5786
|
-
minW: `${
|
|
5804
|
+
flex: m,
|
|
5805
|
+
minW: `${m * 100}px`,
|
|
5787
5806
|
opacity: x ? 0.4 : 1,
|
|
5788
5807
|
pointerEvents: x ? "none" : "auto",
|
|
5789
5808
|
cursor: x ? "not-allowed" : "auto",
|
|
5790
|
-
children: Co(
|
|
5809
|
+
children: Co(p)
|
|
5791
5810
|
},
|
|
5792
|
-
|
|
5811
|
+
p.id
|
|
5793
5812
|
);
|
|
5794
5813
|
}),
|
|
5795
5814
|
/* @__PURE__ */ l.jsx(
|
|
@@ -5806,8 +5825,8 @@ const Yl = y(Me.HelperText), Hl = y(Me.ErrorText), Mr = ({
|
|
|
5806
5825
|
onLoadPreset: c,
|
|
5807
5826
|
activePresetName: u,
|
|
5808
5827
|
open: d,
|
|
5809
|
-
onOpenChange: (
|
|
5810
|
-
f(
|
|
5828
|
+
onOpenChange: (p) => {
|
|
5829
|
+
f(p.open);
|
|
5811
5830
|
}
|
|
5812
5831
|
}
|
|
5813
5832
|
)
|
|
@@ -5869,12 +5888,12 @@ function Ku({
|
|
|
5869
5888
|
isLoading: c = !1,
|
|
5870
5889
|
confirmButtonColorScheme: u = "#4169e1"
|
|
5871
5890
|
}) {
|
|
5872
|
-
return /* @__PURE__ */ l.jsx(Ic, { open: e, placement: "center", onOpenChange: (h) => !h.open && t(), children: /* @__PURE__ */ l.jsxs(
|
|
5891
|
+
return /* @__PURE__ */ l.jsx(Ic, { open: e, placement: "center", onOpenChange: (h) => !h.open && t(), children: /* @__PURE__ */ l.jsxs(Be, { children: [
|
|
5873
5892
|
/* @__PURE__ */ l.jsx($c, {}),
|
|
5874
5893
|
/* @__PURE__ */ l.jsx(Ac, { children: /* @__PURE__ */ l.jsxs(kc, { maxW: "480px", children: [
|
|
5875
5894
|
/* @__PURE__ */ l.jsx(zc, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ l.jsx(Pc, { children: r }) }),
|
|
5876
5895
|
/* @__PURE__ */ l.jsx(Lc, { p: 6, children: /* @__PURE__ */ l.jsxs(Ht, { gap: 4, align: "center", textAlign: "center", children: [
|
|
5877
|
-
/* @__PURE__ */ l.jsx(
|
|
5896
|
+
/* @__PURE__ */ l.jsx(le, { color: "orange.500", children: i ?? /* @__PURE__ */ l.jsx(bo, { size: 40 }) }),
|
|
5878
5897
|
/* @__PURE__ */ l.jsx(X, { fontSize: "sm", color: "gray.600", children: o })
|
|
5879
5898
|
] }) }),
|
|
5880
5899
|
/* @__PURE__ */ l.jsxs(
|
|
@@ -5925,7 +5944,7 @@ function Ju({
|
|
|
5925
5944
|
onOpenChange: (d) => {
|
|
5926
5945
|
!d.open && t(), u("");
|
|
5927
5946
|
},
|
|
5928
|
-
children: /* @__PURE__ */ l.jsxs(
|
|
5947
|
+
children: /* @__PURE__ */ l.jsxs(Be, { children: [
|
|
5929
5948
|
/* @__PURE__ */ l.jsx(Vc, {}),
|
|
5930
5949
|
/* @__PURE__ */ l.jsx(Yc, { children: /* @__PURE__ */ l.jsxs(Hc, { maxW: "550px", children: [
|
|
5931
5950
|
/* @__PURE__ */ l.jsx(Bc, { borderBottom: "1px solid", borderColor: "#d3d3d3", children: /* @__PURE__ */ l.jsx(qc, { color: "red.600", children: r }) }),
|
|
@@ -5937,9 +5956,9 @@ function Ju({
|
|
|
5937
5956
|
padding: "16px"
|
|
5938
5957
|
},
|
|
5939
5958
|
children: /* @__PURE__ */ l.jsxs(Ht, { gap: 4, borderRadius: "md", p: 4, bg: "white", children: [
|
|
5940
|
-
/* @__PURE__ */ l.jsx(
|
|
5941
|
-
/* @__PURE__ */ l.jsx(
|
|
5942
|
-
/* @__PURE__ */ l.jsxs(
|
|
5959
|
+
/* @__PURE__ */ l.jsx(le, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ l.jsxs(Ht, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
5960
|
+
/* @__PURE__ */ l.jsx(le, { color: "red.600", mt: "2px", children: /* @__PURE__ */ l.jsx(bo, { size: 20 }) }),
|
|
5961
|
+
/* @__PURE__ */ l.jsxs(le, { children: [
|
|
5943
5962
|
/* @__PURE__ */ l.jsx(X, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
|
|
5944
5963
|
/* @__PURE__ */ l.jsxs(X, { fontSize: "sm", color: "red.600", children: [
|
|
5945
5964
|
"All the data of ",
|
|
@@ -5949,7 +5968,7 @@ function Ju({
|
|
|
5949
5968
|
] })
|
|
5950
5969
|
] }) }),
|
|
5951
5970
|
/* @__PURE__ */ l.jsx(X, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
|
|
5952
|
-
/* @__PURE__ */ l.jsxs(
|
|
5971
|
+
/* @__PURE__ */ l.jsxs(le, { children: [
|
|
5953
5972
|
/* @__PURE__ */ l.jsxs(X, { fontSize: "sm", mb: 2, children: [
|
|
5954
5973
|
"Type ",
|
|
5955
5974
|
/* @__PURE__ */ l.jsx("b", { children: s }),
|
|
@@ -6033,7 +6052,7 @@ const Qu = ({
|
|
|
6033
6052
|
open: e,
|
|
6034
6053
|
onOpenChange: (h) => !h.open && t(),
|
|
6035
6054
|
placement: s ?? "center",
|
|
6036
|
-
children: /* @__PURE__ */ l.jsxs(
|
|
6055
|
+
children: /* @__PURE__ */ l.jsxs(Be, { children: [
|
|
6037
6056
|
/* @__PURE__ */ l.jsx(Qc, { bg: "blackAlpha.400" }),
|
|
6038
6057
|
/* @__PURE__ */ l.jsx(eu, { children: /* @__PURE__ */ l.jsxs(
|
|
6039
6058
|
tu,
|
|
@@ -6152,7 +6171,7 @@ function xu() {
|
|
|
6152
6171
|
(function(n, r) {
|
|
6153
6172
|
e.exports = r();
|
|
6154
6173
|
})(vu, (function() {
|
|
6155
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", i = "minute", c = "hour", u = "day", h = "week", d = "month", f = "quarter", g = "year",
|
|
6174
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", i = "minute", c = "hour", u = "day", h = "week", d = "month", f = "quarter", g = "year", p = "date", m = "Invalid Date", x = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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, D = { 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(R) {
|
|
6156
6175
|
var w = ["th", "st", "nd", "rd"], S = R % 100;
|
|
6157
6176
|
return "[" + R + (w[(S - 20) % 10] || w[S] || w[0]) + "]";
|
|
6158
6177
|
} }, j = function(R, w, S) {
|
|
@@ -6168,12 +6187,12 @@ function xu() {
|
|
|
6168
6187
|
}, a: function(R) {
|
|
6169
6188
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
6170
6189
|
}, p: function(R) {
|
|
6171
|
-
return { M: d, y: g, w: h, d: u, D:
|
|
6190
|
+
return { M: d, y: g, w: h, d: u, D: p, h: c, m: i, s: a, ms: s, Q: f }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
6172
6191
|
}, u: function(R) {
|
|
6173
6192
|
return R === void 0;
|
|
6174
6193
|
} }, I = "en", M = {};
|
|
6175
6194
|
M[I] = D;
|
|
6176
|
-
var $ = "$isDayjsObject",
|
|
6195
|
+
var $ = "$isDayjsObject", k = function(R) {
|
|
6177
6196
|
return R instanceof Z || !(!R || !R[$]);
|
|
6178
6197
|
}, W = function R(w, S, E) {
|
|
6179
6198
|
var C;
|
|
@@ -6189,11 +6208,11 @@ function xu() {
|
|
|
6189
6208
|
}
|
|
6190
6209
|
return !E && C && (I = C), C || !E && I;
|
|
6191
6210
|
}, P = function(R, w) {
|
|
6192
|
-
if (
|
|
6211
|
+
if (k(R)) return R.clone();
|
|
6193
6212
|
var S = typeof w == "object" ? w : {};
|
|
6194
6213
|
return S.date = R, S.args = arguments, new Z(S);
|
|
6195
|
-
},
|
|
6196
|
-
|
|
6214
|
+
}, A = O;
|
|
6215
|
+
A.l = W, A.i = k, A.w = function(R, w) {
|
|
6197
6216
|
return P(R, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
|
6198
6217
|
};
|
|
6199
6218
|
var Z = (function() {
|
|
@@ -6205,7 +6224,7 @@ function xu() {
|
|
|
6205
6224
|
this.$d = (function(E) {
|
|
6206
6225
|
var C = E.date, T = E.utc;
|
|
6207
6226
|
if (C === null) return /* @__PURE__ */ new Date(NaN);
|
|
6208
|
-
if (
|
|
6227
|
+
if (A.u(C)) return /* @__PURE__ */ new Date();
|
|
6209
6228
|
if (C instanceof Date) return new Date(C);
|
|
6210
6229
|
if (typeof C == "string" && !/Z$/i.test(C)) {
|
|
6211
6230
|
var z = C.match(x);
|
|
@@ -6220,9 +6239,9 @@ function xu() {
|
|
|
6220
6239
|
var S = this.$d;
|
|
6221
6240
|
this.$y = S.getFullYear(), this.$M = S.getMonth(), this.$D = S.getDate(), this.$W = S.getDay(), this.$H = S.getHours(), this.$m = S.getMinutes(), this.$s = S.getSeconds(), this.$ms = S.getMilliseconds();
|
|
6222
6241
|
}, w.$utils = function() {
|
|
6223
|
-
return
|
|
6242
|
+
return A;
|
|
6224
6243
|
}, w.isValid = function() {
|
|
6225
|
-
return this.$d.toString() !==
|
|
6244
|
+
return this.$d.toString() !== m;
|
|
6226
6245
|
}, w.isSame = function(S, E) {
|
|
6227
6246
|
var C = P(S);
|
|
6228
6247
|
return this.startOf(E) <= C && C <= this.endOf(E);
|
|
@@ -6231,17 +6250,17 @@ function xu() {
|
|
|
6231
6250
|
}, w.isBefore = function(S, E) {
|
|
6232
6251
|
return this.endOf(E) < P(S);
|
|
6233
6252
|
}, w.$g = function(S, E, C) {
|
|
6234
|
-
return
|
|
6253
|
+
return A.u(S) ? this[E] : this.set(C, S);
|
|
6235
6254
|
}, w.unix = function() {
|
|
6236
6255
|
return Math.floor(this.valueOf() / 1e3);
|
|
6237
6256
|
}, w.valueOf = function() {
|
|
6238
6257
|
return this.$d.getTime();
|
|
6239
6258
|
}, w.startOf = function(S, E) {
|
|
6240
|
-
var C = this, T = !!
|
|
6241
|
-
var pe =
|
|
6259
|
+
var C = this, T = !!A.u(E) || E, z = A.p(S), v = function(re, F) {
|
|
6260
|
+
var pe = A.w(C.$u ? Date.UTC(C.$y, F, re) : new Date(C.$y, F, re), C);
|
|
6242
6261
|
return T ? pe : pe.endOf(u);
|
|
6243
6262
|
}, _ = function(re, F) {
|
|
6244
|
-
return
|
|
6263
|
+
return A.w(C.toDate()[re].apply(C.toDate("s"), (T ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), C);
|
|
6245
6264
|
}, L = this.$W, N = this.$M, J = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
6246
6265
|
switch (z) {
|
|
6247
6266
|
case g:
|
|
@@ -6252,7 +6271,7 @@ function xu() {
|
|
|
6252
6271
|
var Y = this.$locale().weekStart || 0, ne = (L < Y ? L + 7 : L) - Y;
|
|
6253
6272
|
return v(T ? J - ne : J + (6 - ne), N);
|
|
6254
6273
|
case u:
|
|
6255
|
-
case
|
|
6274
|
+
case p:
|
|
6256
6275
|
return _(q + "Hours", 0);
|
|
6257
6276
|
case c:
|
|
6258
6277
|
return _(q + "Minutes", 1);
|
|
@@ -6266,38 +6285,38 @@ function xu() {
|
|
|
6266
6285
|
}, w.endOf = function(S) {
|
|
6267
6286
|
return this.startOf(S, !1);
|
|
6268
6287
|
}, w.$set = function(S, E) {
|
|
6269
|
-
var C, T =
|
|
6288
|
+
var C, T = A.p(S), z = "set" + (this.$u ? "UTC" : ""), v = (C = {}, C[u] = z + "Date", C[p] = z + "Date", C[d] = z + "Month", C[g] = z + "FullYear", C[c] = z + "Hours", C[i] = z + "Minutes", C[a] = z + "Seconds", C[s] = z + "Milliseconds", C)[T], _ = T === u ? this.$D + (E - this.$W) : E;
|
|
6270
6289
|
if (T === d || T === g) {
|
|
6271
|
-
var L = this.clone().set(
|
|
6272
|
-
L.$d[v](_), L.init(), this.$d = L.set(
|
|
6290
|
+
var L = this.clone().set(p, 1);
|
|
6291
|
+
L.$d[v](_), L.init(), this.$d = L.set(p, Math.min(this.$D, L.daysInMonth())).$d;
|
|
6273
6292
|
} else v && this.$d[v](_);
|
|
6274
6293
|
return this.init(), this;
|
|
6275
6294
|
}, w.set = function(S, E) {
|
|
6276
6295
|
return this.clone().$set(S, E);
|
|
6277
6296
|
}, w.get = function(S) {
|
|
6278
|
-
return this[
|
|
6297
|
+
return this[A.p(S)]();
|
|
6279
6298
|
}, w.add = function(S, E) {
|
|
6280
6299
|
var C, T = this;
|
|
6281
6300
|
S = Number(S);
|
|
6282
|
-
var z =
|
|
6301
|
+
var z = A.p(E), v = function(N) {
|
|
6283
6302
|
var J = P(T);
|
|
6284
|
-
return
|
|
6303
|
+
return A.w(J.date(J.date() + Math.round(N * S)), T);
|
|
6285
6304
|
};
|
|
6286
6305
|
if (z === d) return this.set(d, this.$M + S);
|
|
6287
6306
|
if (z === g) return this.set(g, this.$y + S);
|
|
6288
6307
|
if (z === u) return v(1);
|
|
6289
6308
|
if (z === h) return v(7);
|
|
6290
6309
|
var _ = (C = {}, C[i] = r, C[c] = o, C[a] = n, C)[z] || 1, L = this.$d.getTime() + S * _;
|
|
6291
|
-
return
|
|
6310
|
+
return A.w(L, this);
|
|
6292
6311
|
}, w.subtract = function(S, E) {
|
|
6293
6312
|
return this.add(-1 * S, E);
|
|
6294
6313
|
}, w.format = function(S) {
|
|
6295
6314
|
var E = this, C = this.$locale();
|
|
6296
|
-
if (!this.isValid()) return C.invalidDate ||
|
|
6297
|
-
var T = S || "YYYY-MM-DDTHH:mm:ssZ", z =
|
|
6315
|
+
if (!this.isValid()) return C.invalidDate || m;
|
|
6316
|
+
var T = S || "YYYY-MM-DDTHH:mm:ssZ", z = A.z(this), v = this.$H, _ = this.$m, L = this.$M, N = C.weekdays, J = C.months, q = C.meridiem, Y = function(F, pe, de, De) {
|
|
6298
6317
|
return F && (F[pe] || F(E, T)) || de[pe].slice(0, De);
|
|
6299
6318
|
}, ne = function(F) {
|
|
6300
|
-
return
|
|
6319
|
+
return A.s(v % 12 || 12, F, "0");
|
|
6301
6320
|
}, re = q || function(F, pe, de) {
|
|
6302
6321
|
var De = F < 12 ? "AM" : "PM";
|
|
6303
6322
|
return de ? De.toLowerCase() : De;
|
|
@@ -6308,11 +6327,11 @@ function xu() {
|
|
|
6308
6327
|
case "YY":
|
|
6309
6328
|
return String(E.$y).slice(-2);
|
|
6310
6329
|
case "YYYY":
|
|
6311
|
-
return
|
|
6330
|
+
return A.s(E.$y, 4, "0");
|
|
6312
6331
|
case "M":
|
|
6313
6332
|
return L + 1;
|
|
6314
6333
|
case "MM":
|
|
6315
|
-
return
|
|
6334
|
+
return A.s(L + 1, 2, "0");
|
|
6316
6335
|
case "MMM":
|
|
6317
6336
|
return Y(C.monthsShort, L, J, 3);
|
|
6318
6337
|
case "MMMM":
|
|
@@ -6320,7 +6339,7 @@ function xu() {
|
|
|
6320
6339
|
case "D":
|
|
6321
6340
|
return E.$D;
|
|
6322
6341
|
case "DD":
|
|
6323
|
-
return
|
|
6342
|
+
return A.s(E.$D, 2, "0");
|
|
6324
6343
|
case "d":
|
|
6325
6344
|
return String(E.$W);
|
|
6326
6345
|
case "dd":
|
|
@@ -6332,7 +6351,7 @@ function xu() {
|
|
|
6332
6351
|
case "H":
|
|
6333
6352
|
return String(v);
|
|
6334
6353
|
case "HH":
|
|
6335
|
-
return
|
|
6354
|
+
return A.s(v, 2, "0");
|
|
6336
6355
|
case "h":
|
|
6337
6356
|
return ne(1);
|
|
6338
6357
|
case "hh":
|
|
@@ -6344,13 +6363,13 @@ function xu() {
|
|
|
6344
6363
|
case "m":
|
|
6345
6364
|
return String(_);
|
|
6346
6365
|
case "mm":
|
|
6347
|
-
return
|
|
6366
|
+
return A.s(_, 2, "0");
|
|
6348
6367
|
case "s":
|
|
6349
6368
|
return String(E.$s);
|
|
6350
6369
|
case "ss":
|
|
6351
|
-
return
|
|
6370
|
+
return A.s(E.$s, 2, "0");
|
|
6352
6371
|
case "SSS":
|
|
6353
|
-
return
|
|
6372
|
+
return A.s(E.$ms, 3, "0");
|
|
6354
6373
|
case "Z":
|
|
6355
6374
|
return z;
|
|
6356
6375
|
}
|
|
@@ -6360,8 +6379,8 @@ function xu() {
|
|
|
6360
6379
|
}, w.utcOffset = function() {
|
|
6361
6380
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6362
6381
|
}, w.diff = function(S, E, C) {
|
|
6363
|
-
var T, z = this, v =
|
|
6364
|
-
return
|
|
6382
|
+
var T, z = this, v = A.p(E), _ = P(S), L = (_.utcOffset() - this.utcOffset()) * r, N = this - _, J = function() {
|
|
6383
|
+
return A.m(z, _);
|
|
6365
6384
|
};
|
|
6366
6385
|
switch (v) {
|
|
6367
6386
|
case g:
|
|
@@ -6391,7 +6410,7 @@ function xu() {
|
|
|
6391
6410
|
default:
|
|
6392
6411
|
T = N;
|
|
6393
6412
|
}
|
|
6394
|
-
return C ? T :
|
|
6413
|
+
return C ? T : A.a(T);
|
|
6395
6414
|
}, w.daysInMonth = function() {
|
|
6396
6415
|
return this.endOf(d).$D;
|
|
6397
6416
|
}, w.$locale = function() {
|
|
@@ -6401,7 +6420,7 @@ function xu() {
|
|
|
6401
6420
|
var C = this.clone(), T = W(S, E, !0);
|
|
6402
6421
|
return T && (C.$L = T), C;
|
|
6403
6422
|
}, w.clone = function() {
|
|
6404
|
-
return
|
|
6423
|
+
return A.w(this.$d, this);
|
|
6405
6424
|
}, w.toDate = function() {
|
|
6406
6425
|
return new Date(this.valueOf());
|
|
6407
6426
|
}, w.toJSON = function() {
|
|
@@ -6412,13 +6431,13 @@ function xu() {
|
|
|
6412
6431
|
return this.$d.toUTCString();
|
|
6413
6432
|
}, R;
|
|
6414
6433
|
})(), te = Z.prototype;
|
|
6415
|
-
return P.prototype = te, [["$ms", s], ["$s", a], ["$m", i], ["$H", c], ["$W", u], ["$M", d], ["$y", g], ["$D",
|
|
6434
|
+
return P.prototype = te, [["$ms", s], ["$s", a], ["$m", i], ["$H", c], ["$W", u], ["$M", d], ["$y", g], ["$D", p]].forEach((function(R) {
|
|
6416
6435
|
te[R[1]] = function(w) {
|
|
6417
6436
|
return this.$g(w, R[0], R[1]);
|
|
6418
6437
|
};
|
|
6419
6438
|
})), P.extend = function(R, w) {
|
|
6420
6439
|
return R.$i || (R(w, Z, P), R.$i = !0), P;
|
|
6421
|
-
}, P.locale = W, P.isDayjs =
|
|
6440
|
+
}, P.locale = W, P.isDayjs = k, P.unix = function(R) {
|
|
6422
6441
|
return P(1e3 * R);
|
|
6423
6442
|
}, P.en = M[I], P.Ls = M, P.p = {}, P;
|
|
6424
6443
|
}));
|
|
@@ -6439,20 +6458,20 @@ function wu() {
|
|
|
6439
6458
|
return s.fromToBase(u, h, d, f);
|
|
6440
6459
|
}
|
|
6441
6460
|
o.en.relativeTime = a, s.fromToBase = function(u, h, d, f, g) {
|
|
6442
|
-
for (var
|
|
6461
|
+
for (var p, m, x, b = d.$locale().relativeTime || a, D = 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 = D.length, O = 0; O < j; O += 1) {
|
|
6443
6462
|
var I = D[O];
|
|
6444
|
-
I.d && (
|
|
6445
|
-
var M = (n.rounding || Math.round)(Math.abs(
|
|
6446
|
-
if (x =
|
|
6463
|
+
I.d && (p = f ? o(u).diff(d, I.d, !0) : d.diff(u, I.d, !0));
|
|
6464
|
+
var M = (n.rounding || Math.round)(Math.abs(p));
|
|
6465
|
+
if (x = p > 0, M <= I.r || !I.r) {
|
|
6447
6466
|
M <= 1 && O > 0 && (I = D[O - 1]);
|
|
6448
6467
|
var $ = b[I.l];
|
|
6449
|
-
g && (M = g("" + M)),
|
|
6468
|
+
g && (M = g("" + M)), m = typeof $ == "string" ? $.replace("%d", M) : $(M, h, I.l, x);
|
|
6450
6469
|
break;
|
|
6451
6470
|
}
|
|
6452
6471
|
}
|
|
6453
|
-
if (h) return
|
|
6454
|
-
var
|
|
6455
|
-
return typeof
|
|
6472
|
+
if (h) return m;
|
|
6473
|
+
var k = x ? b.future : b.past;
|
|
6474
|
+
return typeof k == "function" ? k(m) : k.replace("%s", m);
|
|
6456
6475
|
}, s.to = function(u, h) {
|
|
6457
6476
|
return i(u, h, this, !0);
|
|
6458
6477
|
}, s.from = function(u, h) {
|
|
@@ -6484,9 +6503,9 @@ function ju() {
|
|
|
6484
6503
|
s.en.formats = n, a.format = function(c) {
|
|
6485
6504
|
c === void 0 && (c = "YYYY-MM-DDTHH:mm:ssZ");
|
|
6486
6505
|
var u = this.$locale().formats, h = (function(d, f) {
|
|
6487
|
-
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(g,
|
|
6488
|
-
var x =
|
|
6489
|
-
return
|
|
6506
|
+
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(g, p, m) {
|
|
6507
|
+
var x = m && m.toUpperCase();
|
|
6508
|
+
return p || f[m] || n[m] || f[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(b, D, j) {
|
|
6490
6509
|
return D || j.slice(1);
|
|
6491
6510
|
}));
|
|
6492
6511
|
}));
|
|
@@ -6677,7 +6696,7 @@ class kr {
|
|
|
6677
6696
|
}
|
|
6678
6697
|
const Do = rt(null);
|
|
6679
6698
|
function jo() {
|
|
6680
|
-
const e =
|
|
6699
|
+
const e = He(Do);
|
|
6681
6700
|
if (!e)
|
|
6682
6701
|
throw new Error("OptionsProvider is missing. Wrap your app with <OptionsProvider />");
|
|
6683
6702
|
return e;
|
|
@@ -6788,7 +6807,7 @@ const ku = y(ot.Root), zu = y(ot.Trigger), Lu = y(ot.Positioner), Nu = y(ot.Cont
|
|
|
6788
6807
|
} = t;
|
|
6789
6808
|
return s ? /* @__PURE__ */ l.jsx(l.Fragment, { children: o }) : /* @__PURE__ */ l.jsxs(ku, { ...u, children: [
|
|
6790
6809
|
/* @__PURE__ */ l.jsx(zu, { asChild: !0, children: o }),
|
|
6791
|
-
/* @__PURE__ */ l.jsx(
|
|
6810
|
+
/* @__PURE__ */ l.jsx(Be, { disabled: !a, children: /* @__PURE__ */ l.jsx(Lu, { children: /* @__PURE__ */ l.jsxs(Nu, { ref: n, ...c, children: [
|
|
6792
6811
|
r && /* @__PURE__ */ l.jsx(Pu, { children: /* @__PURE__ */ l.jsx(Fu, {}) }),
|
|
6793
6812
|
i
|
|
6794
6813
|
] }) }) })
|
|
@@ -6796,7 +6815,7 @@ const ku = y(ot.Root), zu = y(ot.Trigger), Lu = y(ot.Positioner), Nu = y(ot.Cont
|
|
|
6796
6815
|
}
|
|
6797
6816
|
);
|
|
6798
6817
|
export {
|
|
6799
|
-
|
|
6818
|
+
Ye as ACTIONS_COLUMN_ID,
|
|
6800
6819
|
Bu as DataTable,
|
|
6801
6820
|
Uu as Filters,
|
|
6802
6821
|
Ar as HttpOptionsApi,
|