@mdspl/mds-shared-ui 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +8 -1
- package/dist/index.js +867 -852
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Menu as Ie, Checkbox as Re, IconButton as me, Portal as et, Table as ie, HStack as ge, Box as he, Select as te, Pagination as zt, createListCollection as Cr, Text as J, ButtonGroup as Do, Skeleton as jo, Spinner as Dr, Combobox as Te, useListCollection as Ro, Span as Eo, Popover as ke, Group as jr, Input as Ht, InputAddon as Rr, Grid as Er, Button as Oe, Field as Ee, InputGroup as
|
|
3
|
-
import { unstable_batchedUpdates as Dt, createPortal as
|
|
1
|
+
import ne, { useLayoutEffect as wo, useEffect as V, useRef as X, useMemo as G, useCallback as ee, useState as B, createContext as Qe, memo as So, useReducer as Co, useContext as He, forwardRef as Cn, createElement as vn } from "react";
|
|
2
|
+
import { Menu as Ie, Checkbox as Re, IconButton as me, Portal as et, Table as ie, HStack as ge, Box as he, Select as te, Pagination as zt, createListCollection as Cr, Text as J, ButtonGroup as Do, Skeleton as jo, Spinner as Dr, Combobox as Te, useListCollection as Ro, Span as Eo, Popover as ke, Group as jr, Input as Ht, InputAddon as Rr, Grid as Er, Button as Oe, Field as Ee, InputGroup as _o, CloseButton as vt, Slider as mt, VStack as ut, Drawer as Ae, Tabs as Bt, Dialog as K, Stack as Nt, Flex as nn, PinInput as Ut } from "@chakra-ui/react";
|
|
3
|
+
import { unstable_batchedUpdates as Dt, createPortal as Mo } from "react-dom";
|
|
4
4
|
function Gt(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
@@ -34,18 +34,18 @@ function Oo() {
|
|
|
34
34
|
function e(g) {
|
|
35
35
|
if (g == null) return null;
|
|
36
36
|
if (typeof g == "function")
|
|
37
|
-
return g.$$typeof ===
|
|
37
|
+
return g.$$typeof === A ? null : g.displayName || g.name || null;
|
|
38
38
|
if (typeof g == "string") return g;
|
|
39
39
|
switch (g) {
|
|
40
40
|
case b:
|
|
41
41
|
return "Fragment";
|
|
42
42
|
case D:
|
|
43
43
|
return "Profiler";
|
|
44
|
-
case _:
|
|
45
|
-
return "StrictMode";
|
|
46
44
|
case M:
|
|
45
|
+
return "StrictMode";
|
|
46
|
+
case _:
|
|
47
47
|
return "Suspense";
|
|
48
|
-
case
|
|
48
|
+
case k:
|
|
49
49
|
return "SuspenseList";
|
|
50
50
|
case F:
|
|
51
51
|
return "Activity";
|
|
@@ -56,14 +56,14 @@ function Oo() {
|
|
|
56
56
|
), g.$$typeof) {
|
|
57
57
|
case m:
|
|
58
58
|
return "Portal";
|
|
59
|
-
case
|
|
59
|
+
case O:
|
|
60
60
|
return g.displayName || "Context";
|
|
61
61
|
case j:
|
|
62
62
|
return (g._context.displayName || "Context") + ".Consumer";
|
|
63
|
-
case
|
|
63
|
+
case T:
|
|
64
64
|
var E = g.render;
|
|
65
65
|
return g = g.displayName, g || (g = E.displayName || E.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
66
|
-
case
|
|
66
|
+
case L:
|
|
67
67
|
return E = g.displayName || null, E !== null ? E : e(g.type) || "Memo";
|
|
68
68
|
case H:
|
|
69
69
|
E = g._payload, g = g._init;
|
|
@@ -86,8 +86,8 @@ function Oo() {
|
|
|
86
86
|
}
|
|
87
87
|
if (E) {
|
|
88
88
|
E = console;
|
|
89
|
-
var
|
|
90
|
-
return
|
|
89
|
+
var z = E.error, Y = typeof Symbol == "function" && Symbol.toStringTag && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
90
|
+
return z.call(
|
|
91
91
|
E,
|
|
92
92
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
93
93
|
Y
|
|
@@ -106,28 +106,28 @@ function Oo() {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function o() {
|
|
109
|
-
var g =
|
|
109
|
+
var g = P.A;
|
|
110
110
|
return g === null ? null : g.getOwner();
|
|
111
111
|
}
|
|
112
112
|
function i() {
|
|
113
113
|
return Error("react-stack-top-frame");
|
|
114
114
|
}
|
|
115
115
|
function l(g) {
|
|
116
|
-
if (
|
|
116
|
+
if ($.call(g, "key")) {
|
|
117
117
|
var E = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
118
118
|
if (E && E.isReactWarning) return !1;
|
|
119
119
|
}
|
|
120
120
|
return g.key !== void 0;
|
|
121
121
|
}
|
|
122
122
|
function a(g, E) {
|
|
123
|
-
function
|
|
123
|
+
function z() {
|
|
124
124
|
w || (w = !0, console.error(
|
|
125
125
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
126
126
|
E
|
|
127
127
|
));
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
get:
|
|
129
|
+
z.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
130
|
+
get: z,
|
|
131
131
|
configurable: !0
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -137,13 +137,13 @@ function Oo() {
|
|
|
137
137
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
138
138
|
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
139
139
|
}
|
|
140
|
-
function u(g, E,
|
|
141
|
-
var U =
|
|
140
|
+
function u(g, E, z, Y, Z, Q) {
|
|
141
|
+
var U = z.ref;
|
|
142
142
|
return g = {
|
|
143
143
|
$$typeof: v,
|
|
144
144
|
type: g,
|
|
145
145
|
key: E,
|
|
146
|
-
props:
|
|
146
|
+
props: z,
|
|
147
147
|
_owner: Y
|
|
148
148
|
}, (U !== void 0 ? U : null) !== null ? Object.defineProperty(g, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
@@ -170,7 +170,7 @@ function Oo() {
|
|
|
170
170
|
value: Q
|
|
171
171
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
172
172
|
}
|
|
173
|
-
function f(g, E,
|
|
173
|
+
function f(g, E, z, Y, Z, Q) {
|
|
174
174
|
var U = E.children;
|
|
175
175
|
if (U !== void 0)
|
|
176
176
|
if (Y)
|
|
@@ -183,12 +183,12 @@ function Oo() {
|
|
|
183
183
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
184
184
|
);
|
|
185
185
|
else d(U);
|
|
186
|
-
if (
|
|
186
|
+
if ($.call(E, "key")) {
|
|
187
187
|
U = e(g);
|
|
188
|
-
var
|
|
188
|
+
var re = Object.keys(E).filter(function(W) {
|
|
189
189
|
return W !== "key";
|
|
190
190
|
});
|
|
191
|
-
Y = 0 <
|
|
191
|
+
Y = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", N[U + Y] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
192
192
|
`A props object containing a "key" prop is being spread into JSX:
|
|
193
193
|
let props = %s;
|
|
194
194
|
<%s {...props} />
|
|
@@ -197,22 +197,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
197
197
|
<%s key={someKey} {...props} />`,
|
|
198
198
|
Y,
|
|
199
199
|
U,
|
|
200
|
-
|
|
200
|
+
re,
|
|
201
201
|
U
|
|
202
|
-
),
|
|
202
|
+
), N[U + Y] = !0);
|
|
203
203
|
}
|
|
204
|
-
if (U = null,
|
|
205
|
-
|
|
206
|
-
for (var
|
|
207
|
-
|
|
208
|
-
} else
|
|
204
|
+
if (U = null, z !== void 0 && (n(z), U = "" + z), l(E) && (n(E.key), U = "" + E.key), "key" in E) {
|
|
205
|
+
z = {};
|
|
206
|
+
for (var oe in E)
|
|
207
|
+
oe !== "key" && (z[oe] = E[oe]);
|
|
208
|
+
} else z = E;
|
|
209
209
|
return U && a(
|
|
210
|
-
|
|
210
|
+
z,
|
|
211
211
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
212
212
|
), u(
|
|
213
213
|
g,
|
|
214
214
|
U,
|
|
215
|
-
|
|
215
|
+
z,
|
|
216
216
|
o(),
|
|
217
217
|
Z,
|
|
218
218
|
Q
|
|
@@ -224,7 +224,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
function p(g) {
|
|
225
225
|
return typeof g == "object" && g !== null && g.$$typeof === v;
|
|
226
226
|
}
|
|
227
|
-
var h =
|
|
227
|
+
var h = ne, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), M = /* @__PURE__ */ Symbol.for("react.strict_mode"), D = /* @__PURE__ */ Symbol.for("react.profiler"), j = /* @__PURE__ */ Symbol.for("react.consumer"), O = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"), k = /* @__PURE__ */ Symbol.for("react.suspense_list"), L = /* @__PURE__ */ Symbol.for("react.memo"), H = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.activity"), A = /* @__PURE__ */ Symbol.for("react.client.reference"), P = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, S = Array.isArray, y = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
h = {
|
|
@@ -235,26 +235,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
var w, C = {}, R = h.react_stack_bottom_frame.bind(
|
|
236
236
|
h,
|
|
237
237
|
i
|
|
238
|
-
)(),
|
|
239
|
-
ct.Fragment = b, ct.jsx = function(g, E,
|
|
240
|
-
var Y = 1e4 >
|
|
238
|
+
)(), I = y(r(i)), N = {};
|
|
239
|
+
ct.Fragment = b, ct.jsx = function(g, E, z) {
|
|
240
|
+
var Y = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
241
241
|
return f(
|
|
242
242
|
g,
|
|
243
243
|
E,
|
|
244
|
-
|
|
244
|
+
z,
|
|
245
245
|
!1,
|
|
246
246
|
Y ? Error("react-stack-top-frame") : R,
|
|
247
|
-
Y ? y(r(g)) :
|
|
247
|
+
Y ? y(r(g)) : I
|
|
248
248
|
);
|
|
249
|
-
}, ct.jsxs = function(g, E,
|
|
250
|
-
var Y = 1e4 >
|
|
249
|
+
}, ct.jsxs = function(g, E, z) {
|
|
250
|
+
var Y = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
251
251
|
return f(
|
|
252
252
|
g,
|
|
253
253
|
E,
|
|
254
|
-
|
|
254
|
+
z,
|
|
255
255
|
!0,
|
|
256
256
|
Y ? Error("react-stack-top-frame") : R,
|
|
257
|
-
Y ? y(r(g)) :
|
|
257
|
+
Y ? y(r(g)) : I
|
|
258
258
|
);
|
|
259
259
|
};
|
|
260
260
|
})()), ct;
|
|
@@ -267,7 +267,7 @@ var s = $o();
|
|
|
267
267
|
function Io() {
|
|
268
268
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
269
269
|
t[n] = arguments[n];
|
|
270
|
-
return
|
|
270
|
+
return G(
|
|
271
271
|
() => (r) => {
|
|
272
272
|
t.forEach((o) => o(r));
|
|
273
273
|
},
|
|
@@ -297,11 +297,11 @@ function jn(e) {
|
|
|
297
297
|
function xt(e) {
|
|
298
298
|
return tt(e) ? !1 : e instanceof xe(e).HTMLElement;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function _r(e) {
|
|
301
301
|
return e instanceof xe(e).SVGElement;
|
|
302
302
|
}
|
|
303
303
|
function nt(e) {
|
|
304
|
-
return e ? tt(e) ? e.document : Dn(e) ? jn(e) ? e : xt(e) ||
|
|
304
|
+
return e ? tt(e) ? e.document : Dn(e) ? jn(e) ? e : xt(e) || _r(e) ? e.ownerDocument : document : document : document;
|
|
305
305
|
}
|
|
306
306
|
const $e = qt ? wo : V;
|
|
307
307
|
function Rn(e) {
|
|
@@ -331,7 +331,7 @@ function gt(e, t) {
|
|
|
331
331
|
}
|
|
332
332
|
function bt(e, t) {
|
|
333
333
|
const n = X();
|
|
334
|
-
return
|
|
334
|
+
return G(
|
|
335
335
|
() => {
|
|
336
336
|
const r = e(n.current);
|
|
337
337
|
return n.current = r, r;
|
|
@@ -358,14 +358,14 @@ function mn(e) {
|
|
|
358
358
|
}
|
|
359
359
|
let rn = {};
|
|
360
360
|
function yt(e, t) {
|
|
361
|
-
return
|
|
361
|
+
return G(() => {
|
|
362
362
|
if (t)
|
|
363
363
|
return t;
|
|
364
364
|
const n = rn[e] == null ? 0 : rn[e] + 1;
|
|
365
365
|
return rn[e] = n, e + "-" + n;
|
|
366
366
|
}, [e, t]);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Mr(e) {
|
|
369
369
|
return function(t) {
|
|
370
370
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
371
371
|
r[o - 1] = arguments[o];
|
|
@@ -381,7 +381,7 @@ function _r(e) {
|
|
|
381
381
|
});
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
const Je = /* @__PURE__ */
|
|
384
|
+
const Je = /* @__PURE__ */ Mr(1), Ft = /* @__PURE__ */ Mr(-1);
|
|
385
385
|
function Ao(e) {
|
|
386
386
|
return "clientX" in e && "clientY" in e;
|
|
387
387
|
}
|
|
@@ -479,7 +479,7 @@ function Po(e) {
|
|
|
479
479
|
id: t,
|
|
480
480
|
value: n
|
|
481
481
|
} = e;
|
|
482
|
-
return
|
|
482
|
+
return ne.createElement("div", {
|
|
483
483
|
id: t,
|
|
484
484
|
style: No
|
|
485
485
|
}, n);
|
|
@@ -504,7 +504,7 @@ function Fo(e) {
|
|
|
504
504
|
clipPath: "inset(100%)",
|
|
505
505
|
whiteSpace: "nowrap"
|
|
506
506
|
};
|
|
507
|
-
return
|
|
507
|
+
return ne.createElement("div", {
|
|
508
508
|
id: t,
|
|
509
509
|
style: o,
|
|
510
510
|
role: "status",
|
|
@@ -590,7 +590,7 @@ function Uo(e) {
|
|
|
590
590
|
} = Yo(), a = yt("DndLiveRegion"), [c, u] = B(!1);
|
|
591
591
|
if (V(() => {
|
|
592
592
|
u(!0);
|
|
593
|
-
}, []), Wo(
|
|
593
|
+
}, []), Wo(G(() => ({
|
|
594
594
|
onDragStart(d) {
|
|
595
595
|
let {
|
|
596
596
|
active: p
|
|
@@ -641,14 +641,14 @@ function Uo(e) {
|
|
|
641
641
|
}
|
|
642
642
|
}), [i, t])), !c)
|
|
643
643
|
return null;
|
|
644
|
-
const f =
|
|
644
|
+
const f = ne.createElement(ne.Fragment, null, ne.createElement(Po, {
|
|
645
645
|
id: r,
|
|
646
646
|
value: o.draggable
|
|
647
|
-
}),
|
|
647
|
+
}), ne.createElement(Fo, {
|
|
648
648
|
id: a,
|
|
649
649
|
announcement: l
|
|
650
650
|
}));
|
|
651
|
-
return n ?
|
|
651
|
+
return n ? Mo(f, n) : f;
|
|
652
652
|
}
|
|
653
653
|
var se;
|
|
654
654
|
(function(e) {
|
|
@@ -657,7 +657,7 @@ var se;
|
|
|
657
657
|
function Yt() {
|
|
658
658
|
}
|
|
659
659
|
function Go(e, t) {
|
|
660
|
-
return
|
|
660
|
+
return G(
|
|
661
661
|
() => ({
|
|
662
662
|
sensor: e,
|
|
663
663
|
options: {}
|
|
@@ -669,7 +669,7 @@ function Go(e, t) {
|
|
|
669
669
|
function qo() {
|
|
670
670
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
671
671
|
t[n] = arguments[n];
|
|
672
|
-
return
|
|
672
|
+
return G(
|
|
673
673
|
() => [...t].filter((r) => r != null),
|
|
674
674
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
675
675
|
[...t]
|
|
@@ -899,14 +899,14 @@ function cs(e, t) {
|
|
|
899
899
|
return typeof i == "string" ? n.test(i) : !1;
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function _n(e, t) {
|
|
903
903
|
const n = [];
|
|
904
904
|
function r(o) {
|
|
905
905
|
if (t != null && n.length >= t || !o)
|
|
906
906
|
return n;
|
|
907
907
|
if (jn(o) && o.scrollingElement != null && !n.includes(o.scrollingElement))
|
|
908
908
|
return n.push(o.scrollingElement), n;
|
|
909
|
-
if (!xt(o) ||
|
|
909
|
+
if (!xt(o) || _r(o) || n.includes(o))
|
|
910
910
|
return n;
|
|
911
911
|
const i = xe(e).getComputedStyle(o);
|
|
912
912
|
return o !== e && cs(o, i) && n.push(o), ls(o, i) ? n : r(o.parentNode);
|
|
@@ -914,7 +914,7 @@ function Mn(e, t) {
|
|
|
914
914
|
return e ? r(e) : n;
|
|
915
915
|
}
|
|
916
916
|
function Ir(e) {
|
|
917
|
-
const [t] =
|
|
917
|
+
const [t] = _n(e, 1);
|
|
918
918
|
return t ?? null;
|
|
919
919
|
}
|
|
920
920
|
function on(e) {
|
|
@@ -1048,10 +1048,10 @@ function ps(e, t) {
|
|
|
1048
1048
|
});
|
|
1049
1049
|
}
|
|
1050
1050
|
const vs = [["x", ["left", "right"], hs], ["y", ["top", "bottom"], gs]];
|
|
1051
|
-
class
|
|
1051
|
+
class Mn {
|
|
1052
1052
|
constructor(t, n) {
|
|
1053
1053
|
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
1054
|
-
const r =
|
|
1054
|
+
const r = _n(n), o = Nr(r);
|
|
1055
1055
|
this.rect = {
|
|
1056
1056
|
...t
|
|
1057
1057
|
}, this.width = t.width, this.height = t.height;
|
|
@@ -1103,35 +1103,35 @@ function qn(e) {
|
|
|
1103
1103
|
function xs(e) {
|
|
1104
1104
|
e.stopPropagation();
|
|
1105
1105
|
}
|
|
1106
|
-
var
|
|
1106
|
+
var q;
|
|
1107
1107
|
(function(e) {
|
|
1108
1108
|
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
1109
|
-
})(
|
|
1109
|
+
})(q || (q = {}));
|
|
1110
1110
|
const Pr = {
|
|
1111
|
-
start: [
|
|
1112
|
-
cancel: [
|
|
1113
|
-
end: [
|
|
1111
|
+
start: [q.Space, q.Enter],
|
|
1112
|
+
cancel: [q.Esc],
|
|
1113
|
+
end: [q.Space, q.Enter, q.Tab]
|
|
1114
1114
|
}, bs = (e, t) => {
|
|
1115
1115
|
let {
|
|
1116
1116
|
currentCoordinates: n
|
|
1117
1117
|
} = t;
|
|
1118
1118
|
switch (e.code) {
|
|
1119
|
-
case
|
|
1119
|
+
case q.Right:
|
|
1120
1120
|
return {
|
|
1121
1121
|
...n,
|
|
1122
1122
|
x: n.x + 25
|
|
1123
1123
|
};
|
|
1124
|
-
case
|
|
1124
|
+
case q.Left:
|
|
1125
1125
|
return {
|
|
1126
1126
|
...n,
|
|
1127
1127
|
x: n.x - 25
|
|
1128
1128
|
};
|
|
1129
|
-
case
|
|
1129
|
+
case q.Down:
|
|
1130
1130
|
return {
|
|
1131
1131
|
...n,
|
|
1132
1132
|
y: n.y + 25
|
|
1133
1133
|
};
|
|
1134
|
-
case
|
|
1134
|
+
case q.Up:
|
|
1135
1135
|
return {
|
|
1136
1136
|
...n,
|
|
1137
1137
|
y: n.y - 25
|
|
@@ -1200,40 +1200,40 @@ class Fr {
|
|
|
1200
1200
|
} = r.current;
|
|
1201
1201
|
for (const m of v) {
|
|
1202
1202
|
const b = t.code, {
|
|
1203
|
-
isTop:
|
|
1203
|
+
isTop: M,
|
|
1204
1204
|
isRight: D,
|
|
1205
1205
|
isLeft: j,
|
|
1206
|
-
isBottom:
|
|
1207
|
-
maxScroll:
|
|
1208
|
-
minScroll:
|
|
1209
|
-
} = zr(m),
|
|
1210
|
-
x: Math.min(b ===
|
|
1211
|
-
y: Math.min(b ===
|
|
1212
|
-
}, H = b ===
|
|
1213
|
-
if (H &&
|
|
1214
|
-
const
|
|
1215
|
-
if (
|
|
1206
|
+
isBottom: O,
|
|
1207
|
+
maxScroll: T,
|
|
1208
|
+
minScroll: _
|
|
1209
|
+
} = zr(m), k = fs(m), L = {
|
|
1210
|
+
x: Math.min(b === q.Right ? k.right - k.width / 2 : k.right, Math.max(b === q.Right ? k.left : k.left + k.width / 2, d.x)),
|
|
1211
|
+
y: Math.min(b === q.Down ? k.bottom - k.height / 2 : k.bottom, Math.max(b === q.Down ? k.top : k.top + k.height / 2, d.y))
|
|
1212
|
+
}, H = b === q.Right && !D || b === q.Left && !j, F = b === q.Down && !O || b === q.Up && !M;
|
|
1213
|
+
if (H && L.x !== d.x) {
|
|
1214
|
+
const A = m.scrollLeft + p.x, P = b === q.Right && A <= T.x || b === q.Left && A >= _.x;
|
|
1215
|
+
if (P && !p.y) {
|
|
1216
1216
|
m.scrollTo({
|
|
1217
|
-
left:
|
|
1217
|
+
left: A,
|
|
1218
1218
|
behavior: a
|
|
1219
1219
|
});
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
|
-
|
|
1222
|
+
P ? h.x = m.scrollLeft - A : h.x = b === q.Right ? m.scrollLeft - T.x : m.scrollLeft - _.x, h.x && m.scrollBy({
|
|
1223
1223
|
left: -h.x,
|
|
1224
1224
|
behavior: a
|
|
1225
1225
|
});
|
|
1226
1226
|
break;
|
|
1227
|
-
} else if (F &&
|
|
1228
|
-
const
|
|
1229
|
-
if (
|
|
1227
|
+
} else if (F && L.y !== d.y) {
|
|
1228
|
+
const A = m.scrollTop + p.y, P = b === q.Down && A <= T.y || b === q.Up && A >= _.y;
|
|
1229
|
+
if (P && !p.x) {
|
|
1230
1230
|
m.scrollTo({
|
|
1231
|
-
top:
|
|
1231
|
+
top: A,
|
|
1232
1232
|
behavior: a
|
|
1233
1233
|
});
|
|
1234
1234
|
return;
|
|
1235
1235
|
}
|
|
1236
|
-
|
|
1236
|
+
P ? h.y = m.scrollTop - A : h.y = b === q.Down ? m.scrollTop - T.y : m.scrollTop - _.y, h.y && m.scrollBy({
|
|
1237
1237
|
top: -h.y,
|
|
1238
1238
|
behavior: a
|
|
1239
1239
|
});
|
|
@@ -1398,7 +1398,7 @@ class Tn {
|
|
|
1398
1398
|
this.detach(), this.activated || t(this.props.active), n();
|
|
1399
1399
|
}
|
|
1400
1400
|
handleKeydown(t) {
|
|
1401
|
-
t.code ===
|
|
1401
|
+
t.code === q.Esc && this.handleCancel();
|
|
1402
1402
|
}
|
|
1403
1403
|
removeTextSelection() {
|
|
1404
1404
|
var t;
|
|
@@ -1538,10 +1538,10 @@ function Ds(e) {
|
|
|
1538
1538
|
}), [v, m] = ko(), b = X({
|
|
1539
1539
|
x: 0,
|
|
1540
1540
|
y: 0
|
|
1541
|
-
}),
|
|
1541
|
+
}), M = X({
|
|
1542
1542
|
x: 0,
|
|
1543
1543
|
y: 0
|
|
1544
|
-
}), D =
|
|
1544
|
+
}), D = G(() => {
|
|
1545
1545
|
switch (n) {
|
|
1546
1546
|
case ft.Pointer:
|
|
1547
1547
|
return c ? {
|
|
@@ -1553,40 +1553,40 @@ function Ds(e) {
|
|
|
1553
1553
|
case ft.DraggableRect:
|
|
1554
1554
|
return o;
|
|
1555
1555
|
}
|
|
1556
|
-
}, [n, o, c]), j = X(null),
|
|
1557
|
-
const
|
|
1558
|
-
if (!
|
|
1556
|
+
}, [n, o, c]), j = X(null), O = ee(() => {
|
|
1557
|
+
const _ = j.current;
|
|
1558
|
+
if (!_)
|
|
1559
1559
|
return;
|
|
1560
|
-
const
|
|
1561
|
-
|
|
1562
|
-
}, []),
|
|
1560
|
+
const k = b.current.x * M.current.x, L = b.current.y * M.current.y;
|
|
1561
|
+
_.scrollBy(k, L);
|
|
1562
|
+
}, []), T = G(() => a === Wt.TreeOrder ? [...u].reverse() : u, [a, u]);
|
|
1563
1563
|
V(
|
|
1564
1564
|
() => {
|
|
1565
1565
|
if (!i || !u.length || !D) {
|
|
1566
1566
|
m();
|
|
1567
1567
|
return;
|
|
1568
1568
|
}
|
|
1569
|
-
for (const
|
|
1570
|
-
if (r?.(
|
|
1569
|
+
for (const _ of T) {
|
|
1570
|
+
if (r?.(_) === !1)
|
|
1571
1571
|
continue;
|
|
1572
|
-
const
|
|
1573
|
-
if (!
|
|
1572
|
+
const k = u.indexOf(_), L = f[k];
|
|
1573
|
+
if (!L)
|
|
1574
1574
|
continue;
|
|
1575
1575
|
const {
|
|
1576
1576
|
direction: H,
|
|
1577
1577
|
speed: F
|
|
1578
|
-
} = ds(
|
|
1579
|
-
for (const
|
|
1580
|
-
h[
|
|
1578
|
+
} = ds(_, L, D, t, p);
|
|
1579
|
+
for (const A of ["x", "y"])
|
|
1580
|
+
h[A][H[A]] || (F[A] = 0, H[A] = 0);
|
|
1581
1581
|
if (F.x > 0 || F.y > 0) {
|
|
1582
|
-
m(), j.current =
|
|
1582
|
+
m(), j.current = _, v(O, l), b.current = F, M.current = H;
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
b.current = {
|
|
1587
1587
|
x: 0,
|
|
1588
1588
|
y: 0
|
|
1589
|
-
},
|
|
1589
|
+
}, M.current = {
|
|
1590
1590
|
x: 0,
|
|
1591
1591
|
y: 0
|
|
1592
1592
|
}, m();
|
|
@@ -1594,7 +1594,7 @@ function Ds(e) {
|
|
|
1594
1594
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1595
1595
|
[
|
|
1596
1596
|
t,
|
|
1597
|
-
|
|
1597
|
+
O,
|
|
1598
1598
|
r,
|
|
1599
1599
|
m,
|
|
1600
1600
|
i,
|
|
@@ -1605,7 +1605,7 @@ function Ds(e) {
|
|
|
1605
1605
|
JSON.stringify(h),
|
|
1606
1606
|
v,
|
|
1607
1607
|
u,
|
|
1608
|
-
|
|
1608
|
+
T,
|
|
1609
1609
|
f,
|
|
1610
1610
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1611
1611
|
JSON.stringify(p)
|
|
@@ -1654,8 +1654,8 @@ function Es(e, t) {
|
|
|
1654
1654
|
return t == null ? null : (i = r ?? o) != null ? i : null;
|
|
1655
1655
|
}, [r, t]);
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1658
|
-
return
|
|
1657
|
+
function _s(e, t) {
|
|
1658
|
+
return G(() => e.reduce((n, r) => {
|
|
1659
1659
|
const {
|
|
1660
1660
|
sensor: o
|
|
1661
1661
|
} = r, i = o.activators.map((l) => ({
|
|
@@ -1674,7 +1674,7 @@ var wn;
|
|
|
1674
1674
|
e.Optimized = "optimized";
|
|
1675
1675
|
})(wn || (wn = {}));
|
|
1676
1676
|
const Jn = /* @__PURE__ */ new Map();
|
|
1677
|
-
function
|
|
1677
|
+
function Ms(e, t) {
|
|
1678
1678
|
let {
|
|
1679
1679
|
dragging: n,
|
|
1680
1680
|
dependencies: r,
|
|
@@ -1684,12 +1684,12 @@ function _s(e, t) {
|
|
|
1684
1684
|
frequency: a,
|
|
1685
1685
|
measure: c,
|
|
1686
1686
|
strategy: u
|
|
1687
|
-
} = o, f = X(e), d = b(), p = gt(d), h = ee(function(
|
|
1688
|
-
|
|
1689
|
-
}, [p]), v = X(null), m = bt((
|
|
1687
|
+
} = o, f = X(e), d = b(), p = gt(d), h = ee(function(M) {
|
|
1688
|
+
M === void 0 && (M = []), !p.current && l((D) => D === null ? M : D.concat(M.filter((j) => !D.includes(j))));
|
|
1689
|
+
}, [p]), v = X(null), m = bt((M) => {
|
|
1690
1690
|
if (d && !n)
|
|
1691
1691
|
return Jn;
|
|
1692
|
-
if (!
|
|
1692
|
+
if (!M || M === Jn || f.current !== e || i != null) {
|
|
1693
1693
|
const D = /* @__PURE__ */ new Map();
|
|
1694
1694
|
for (let j of e) {
|
|
1695
1695
|
if (!j)
|
|
@@ -1698,12 +1698,12 @@ function _s(e, t) {
|
|
|
1698
1698
|
D.set(j.id, j.rect.current);
|
|
1699
1699
|
continue;
|
|
1700
1700
|
}
|
|
1701
|
-
const
|
|
1702
|
-
j.rect.current =
|
|
1701
|
+
const O = j.node.current, T = O ? new Mn(c(O), O) : null;
|
|
1702
|
+
j.rect.current = T, T && D.set(j.id, T);
|
|
1703
1703
|
}
|
|
1704
1704
|
return D;
|
|
1705
1705
|
}
|
|
1706
|
-
return
|
|
1706
|
+
return M;
|
|
1707
1707
|
}, [e, i, n, d, c]);
|
|
1708
1708
|
return V(() => {
|
|
1709
1709
|
f.current = e;
|
|
@@ -1754,7 +1754,7 @@ function Os(e) {
|
|
|
1754
1754
|
callback: t,
|
|
1755
1755
|
disabled: n
|
|
1756
1756
|
} = e;
|
|
1757
|
-
const r = Rn(t), o =
|
|
1757
|
+
const r = Rn(t), o = G(() => {
|
|
1758
1758
|
if (n || typeof window > "u" || typeof window.MutationObserver > "u")
|
|
1759
1759
|
return;
|
|
1760
1760
|
const {
|
|
@@ -1769,7 +1769,7 @@ function Xt(e) {
|
|
|
1769
1769
|
callback: t,
|
|
1770
1770
|
disabled: n
|
|
1771
1771
|
} = e;
|
|
1772
|
-
const r = Rn(t), o =
|
|
1772
|
+
const r = Rn(t), o = G(
|
|
1773
1773
|
() => {
|
|
1774
1774
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
1775
1775
|
return;
|
|
@@ -1784,7 +1784,7 @@ function Xt(e) {
|
|
|
1784
1784
|
return V(() => () => o?.disconnect(), [o]), o;
|
|
1785
1785
|
}
|
|
1786
1786
|
function $s(e) {
|
|
1787
|
-
return new
|
|
1787
|
+
return new Mn(rt(e), e);
|
|
1788
1788
|
}
|
|
1789
1789
|
function Zn(e, t, n) {
|
|
1790
1790
|
t === void 0 && (t = $s);
|
|
@@ -1831,7 +1831,7 @@ function Is(e) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
const Qn = [];
|
|
1833
1833
|
function ks(e) {
|
|
1834
|
-
const t = X(e), n = bt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r :
|
|
1834
|
+
const t = X(e), n = bt((r) => e ? r && r !== Qn && e && t.current && e.parentNode === t.current.parentNode ? r : _n(e) : Qn, [e]);
|
|
1835
1835
|
return V(() => {
|
|
1836
1836
|
t.current = e;
|
|
1837
1837
|
}, [e]), n;
|
|
@@ -1862,7 +1862,7 @@ function As(e) {
|
|
|
1862
1862
|
u?.removeEventListener("scroll", o);
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
}, [o, e]),
|
|
1865
|
+
}, [o, e]), G(() => e.length ? t ? Array.from(t.values()).reduce((i, l) => Je(i, l), je) : Nr(e) : je, [e, t]);
|
|
1866
1866
|
}
|
|
1867
1867
|
function er(e, t) {
|
|
1868
1868
|
t === void 0 && (t = []);
|
|
@@ -1905,7 +1905,7 @@ function Ls(e) {
|
|
|
1905
1905
|
);
|
|
1906
1906
|
}
|
|
1907
1907
|
function zs(e, t) {
|
|
1908
|
-
return
|
|
1908
|
+
return G(() => e.reduce((n, r) => {
|
|
1909
1909
|
let {
|
|
1910
1910
|
eventName: o,
|
|
1911
1911
|
handler: i
|
|
@@ -1916,14 +1916,14 @@ function zs(e, t) {
|
|
|
1916
1916
|
}, {}), [e, t]);
|
|
1917
1917
|
}
|
|
1918
1918
|
function Wr(e) {
|
|
1919
|
-
return
|
|
1919
|
+
return G(() => e ? as(e) : null, [e]);
|
|
1920
1920
|
}
|
|
1921
1921
|
const tr = [];
|
|
1922
1922
|
function Ns(e, t) {
|
|
1923
1923
|
t === void 0 && (t = rt);
|
|
1924
1924
|
const [n] = e, r = Wr(n ? xe(n) : null), [o, i] = B(tr);
|
|
1925
1925
|
function l() {
|
|
1926
|
-
i(() => e.length ? e.map((c) => Lr(c) ? r : new
|
|
1926
|
+
i(() => e.length ? e.map((c) => Lr(c) ? r : new Mn(t(c), c)) : tr);
|
|
1927
1927
|
}
|
|
1928
1928
|
const a = Xt({
|
|
1929
1929
|
callback: l
|
|
@@ -1965,7 +1965,7 @@ function Fs(e) {
|
|
|
1965
1965
|
const f = Ps(u);
|
|
1966
1966
|
i?.disconnect(), f && i?.observe(f), r(f ? t(f) : null);
|
|
1967
1967
|
}, [t, i]), [a, c] = Pt(l);
|
|
1968
|
-
return
|
|
1968
|
+
return G(() => ({
|
|
1969
1969
|
nodeRef: a,
|
|
1970
1970
|
rect: n,
|
|
1971
1971
|
setRef: c
|
|
@@ -2209,7 +2209,7 @@ function qs(e, t) {
|
|
|
2209
2209
|
}), n) : n;
|
|
2210
2210
|
}
|
|
2211
2211
|
function Xs(e) {
|
|
2212
|
-
return
|
|
2212
|
+
return G(
|
|
2213
2213
|
() => ({
|
|
2214
2214
|
draggable: {
|
|
2215
2215
|
...$t.draggable,
|
|
@@ -2284,49 +2284,49 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2284
2284
|
modifiers: h,
|
|
2285
2285
|
...v
|
|
2286
2286
|
} = t;
|
|
2287
|
-
const m = Co(Us, void 0, Bs), [b,
|
|
2287
|
+
const m = Co(Us, void 0, Bs), [b, M] = m, [D, j] = Vo(), [O, T] = B(Ve.Uninitialized), _ = O === Ve.Initialized, {
|
|
2288
2288
|
draggable: {
|
|
2289
|
-
active:
|
|
2290
|
-
nodes:
|
|
2289
|
+
active: k,
|
|
2290
|
+
nodes: L,
|
|
2291
2291
|
translate: H
|
|
2292
2292
|
},
|
|
2293
2293
|
droppable: {
|
|
2294
2294
|
containers: F
|
|
2295
2295
|
}
|
|
2296
|
-
} = b,
|
|
2296
|
+
} = b, A = k != null ? L.get(k) : null, P = X({
|
|
2297
2297
|
initial: null,
|
|
2298
2298
|
translated: null
|
|
2299
|
-
}),
|
|
2299
|
+
}), $ = G(() => {
|
|
2300
2300
|
var fe;
|
|
2301
|
-
return
|
|
2302
|
-
id:
|
|
2301
|
+
return k != null ? {
|
|
2302
|
+
id: k,
|
|
2303
2303
|
// It's possible for the active node to unmount while dragging
|
|
2304
|
-
data: (fe =
|
|
2305
|
-
rect:
|
|
2304
|
+
data: (fe = A?.data) != null ? fe : Ws,
|
|
2305
|
+
rect: P
|
|
2306
2306
|
} : null;
|
|
2307
|
-
}, [
|
|
2308
|
-
droppableRects:
|
|
2307
|
+
}, [k, A]), S = X(null), [y, w] = B(null), [C, R] = B(null), I = gt(v, Object.values(v)), N = yt("DndDescribedBy", l), g = G(() => F.getEnabled(), [F]), E = Xs(p), {
|
|
2308
|
+
droppableRects: z,
|
|
2309
2309
|
measureDroppableContainers: Y,
|
|
2310
2310
|
measuringScheduled: Z
|
|
2311
|
-
} =
|
|
2312
|
-
dragging:
|
|
2311
|
+
} = Ms(g, {
|
|
2312
|
+
dragging: _,
|
|
2313
2313
|
dependencies: [H.x, H.y],
|
|
2314
2314
|
config: E.droppable
|
|
2315
|
-
}), Q = Es(
|
|
2315
|
+
}), Q = Es(L, k), U = G(() => C ? xn(C) : null, [C]), re = yo(), oe = Ts(Q, E.draggable.measure);
|
|
2316
2316
|
Ks({
|
|
2317
|
-
activeNode:
|
|
2318
|
-
config:
|
|
2319
|
-
initialRect:
|
|
2317
|
+
activeNode: k != null ? L.get(k) : null,
|
|
2318
|
+
config: re.layoutShiftCompensation,
|
|
2319
|
+
initialRect: oe,
|
|
2320
2320
|
measure: E.draggable.measure
|
|
2321
2321
|
});
|
|
2322
|
-
const W = Zn(Q, E.draggable.measure,
|
|
2322
|
+
const W = Zn(Q, E.draggable.measure, oe), ve = Zn(Q ? Q.parentElement : null), de = X({
|
|
2323
2323
|
activatorEvent: null,
|
|
2324
2324
|
active: null,
|
|
2325
2325
|
activeNode: Q,
|
|
2326
2326
|
collisionRect: null,
|
|
2327
2327
|
collisions: null,
|
|
2328
|
-
droppableRects:
|
|
2329
|
-
draggableNodes:
|
|
2328
|
+
droppableRects: z,
|
|
2329
|
+
draggableNodes: L,
|
|
2330
2330
|
draggingNode: null,
|
|
2331
2331
|
draggingNodeRect: null,
|
|
2332
2332
|
droppableContainers: F,
|
|
@@ -2335,7 +2335,7 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2335
2335
|
scrollAdjustedTranslate: null
|
|
2336
2336
|
}), De = F.getNodeFor((n = de.current.over) == null ? void 0 : n.id), Le = Fs({
|
|
2337
2337
|
measure: E.dragOverlay.measure
|
|
2338
|
-
}), Ue = (r = Le.nodeRef.current) != null ? r : Q, Ge =
|
|
2338
|
+
}), Ue = (r = Le.nodeRef.current) != null ? r : Q, Ge = _ ? (o = Le.rect) != null ? o : W : null, kn = !!(Le.nodeRef.current && Le.rect), An = Is(kn ? null : W), Qt = Wr(Ue ? xe(Ue) : null), Ne = ks(_ ? De ?? Q : null), St = Ns(Ne), Ct = qs(h, {
|
|
2339
2339
|
transform: {
|
|
2340
2340
|
x: H.x - An.x,
|
|
2341
2341
|
y: H.y - An.y,
|
|
@@ -2343,7 +2343,7 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2343
2343
|
scaleY: 1
|
|
2344
2344
|
},
|
|
2345
2345
|
activatorEvent: C,
|
|
2346
|
-
active:
|
|
2346
|
+
active: $,
|
|
2347
2347
|
activeNodeRect: W,
|
|
2348
2348
|
containerNodeRect: ve,
|
|
2349
2349
|
draggingNodeRect: Ge,
|
|
@@ -2352,10 +2352,10 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2352
2352
|
scrollableAncestors: Ne,
|
|
2353
2353
|
scrollableAncestorRects: St,
|
|
2354
2354
|
windowRect: Qt
|
|
2355
|
-
}), Ln = U ? Je(U, H) : null, zn = As(Ne), ho = er(zn), go = er(zn, [W]), qe = Je(Ct, ho), Xe = Ge ? rs(Ge, Ct) : null, ot =
|
|
2356
|
-
active:
|
|
2355
|
+
}), Ln = U ? Je(U, H) : null, zn = As(Ne), ho = er(zn), go = er(zn, [W]), qe = Je(Ct, ho), Xe = Ge ? rs(Ge, Ct) : null, ot = $ && Xe ? d({
|
|
2356
|
+
active: $,
|
|
2357
2357
|
collisionRect: Xe,
|
|
2358
|
-
droppableRects:
|
|
2358
|
+
droppableRects: z,
|
|
2359
2359
|
droppableContainers: g,
|
|
2360
2360
|
pointerCoordinates: Ln
|
|
2361
2361
|
}) : null, Nn = Zo(ot, "id"), [Pe, Pn] = B(null), po = kn ? Ct : Je(Ct, go), vo = ts(po, (i = Pe?.rect) != null ? i : null, W), en = X(null), Fn = ee(
|
|
@@ -2366,10 +2366,10 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2366
2366
|
} = be;
|
|
2367
2367
|
if (S.current == null)
|
|
2368
2368
|
return;
|
|
2369
|
-
const Se =
|
|
2369
|
+
const Se = L.get(S.current);
|
|
2370
2370
|
if (!Se)
|
|
2371
2371
|
return;
|
|
2372
|
-
const we = fe.nativeEvent,
|
|
2372
|
+
const we = fe.nativeEvent, _e = new ye({
|
|
2373
2373
|
active: S.current,
|
|
2374
2374
|
activeNode: Se,
|
|
2375
2375
|
event: we,
|
|
@@ -2378,27 +2378,27 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2378
2378
|
// otherwise they are frozen in time with the stale arguments
|
|
2379
2379
|
context: de,
|
|
2380
2380
|
onAbort(ce) {
|
|
2381
|
-
if (!
|
|
2381
|
+
if (!L.get(ce))
|
|
2382
2382
|
return;
|
|
2383
2383
|
const {
|
|
2384
|
-
onDragAbort:
|
|
2385
|
-
} =
|
|
2384
|
+
onDragAbort: Me
|
|
2385
|
+
} = I.current, ze = {
|
|
2386
2386
|
id: ce
|
|
2387
2387
|
};
|
|
2388
|
-
|
|
2388
|
+
Me?.(ze), D({
|
|
2389
2389
|
type: "onDragAbort",
|
|
2390
2390
|
event: ze
|
|
2391
2391
|
});
|
|
2392
2392
|
},
|
|
2393
|
-
onPending(ce, Ye,
|
|
2394
|
-
if (!
|
|
2393
|
+
onPending(ce, Ye, Me, ze) {
|
|
2394
|
+
if (!L.get(ce))
|
|
2395
2395
|
return;
|
|
2396
2396
|
const {
|
|
2397
2397
|
onDragPending: it
|
|
2398
|
-
} =
|
|
2398
|
+
} = I.current, We = {
|
|
2399
2399
|
id: ce,
|
|
2400
2400
|
constraint: Ye,
|
|
2401
|
-
initialCoordinates:
|
|
2401
|
+
initialCoordinates: Me,
|
|
2402
2402
|
offset: ze
|
|
2403
2403
|
};
|
|
2404
2404
|
it?.(We), D({
|
|
@@ -2410,21 +2410,21 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2410
2410
|
const Ye = S.current;
|
|
2411
2411
|
if (Ye == null)
|
|
2412
2412
|
return;
|
|
2413
|
-
const
|
|
2414
|
-
if (!
|
|
2413
|
+
const Me = L.get(Ye);
|
|
2414
|
+
if (!Me)
|
|
2415
2415
|
return;
|
|
2416
2416
|
const {
|
|
2417
2417
|
onDragStart: ze
|
|
2418
|
-
} =
|
|
2418
|
+
} = I.current, st = {
|
|
2419
2419
|
activatorEvent: we,
|
|
2420
2420
|
active: {
|
|
2421
2421
|
id: Ye,
|
|
2422
|
-
data:
|
|
2423
|
-
rect:
|
|
2422
|
+
data: Me.data,
|
|
2423
|
+
rect: P
|
|
2424
2424
|
}
|
|
2425
2425
|
};
|
|
2426
2426
|
Dt(() => {
|
|
2427
|
-
ze?.(st),
|
|
2427
|
+
ze?.(st), T(Ve.Initializing), M({
|
|
2428
2428
|
type: se.DragStart,
|
|
2429
2429
|
initialCoordinates: ce,
|
|
2430
2430
|
active: Ye
|
|
@@ -2435,7 +2435,7 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2435
2435
|
});
|
|
2436
2436
|
},
|
|
2437
2437
|
onMove(ce) {
|
|
2438
|
-
|
|
2438
|
+
M({
|
|
2439
2439
|
type: se.DragMove,
|
|
2440
2440
|
coordinates: ce
|
|
2441
2441
|
});
|
|
@@ -2443,35 +2443,35 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2443
2443
|
onEnd: Ke(se.DragEnd),
|
|
2444
2444
|
onCancel: Ke(se.DragCancel)
|
|
2445
2445
|
});
|
|
2446
|
-
en.current =
|
|
2446
|
+
en.current = _e;
|
|
2447
2447
|
function Ke(ce) {
|
|
2448
2448
|
return async function() {
|
|
2449
2449
|
const {
|
|
2450
|
-
active:
|
|
2450
|
+
active: Me,
|
|
2451
2451
|
collisions: ze,
|
|
2452
2452
|
over: st,
|
|
2453
2453
|
scrollAdjustedTranslate: it
|
|
2454
2454
|
} = de.current;
|
|
2455
2455
|
let We = null;
|
|
2456
|
-
if (
|
|
2456
|
+
if (Me && it) {
|
|
2457
2457
|
const {
|
|
2458
2458
|
cancelDrop: at
|
|
2459
|
-
} =
|
|
2459
|
+
} = I.current;
|
|
2460
2460
|
We = {
|
|
2461
2461
|
activatorEvent: we,
|
|
2462
|
-
active:
|
|
2462
|
+
active: Me,
|
|
2463
2463
|
collisions: ze,
|
|
2464
2464
|
delta: it,
|
|
2465
2465
|
over: st
|
|
2466
2466
|
}, ce === se.DragEnd && typeof at == "function" && await Promise.resolve(at(We)) && (ce = se.DragCancel);
|
|
2467
2467
|
}
|
|
2468
2468
|
S.current = null, Dt(() => {
|
|
2469
|
-
|
|
2469
|
+
M({
|
|
2470
2470
|
type: ce
|
|
2471
|
-
}),
|
|
2471
|
+
}), T(Ve.Uninitialized), Pn(null), w(null), R(null), en.current = null;
|
|
2472
2472
|
const at = ce === se.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2473
2473
|
if (We) {
|
|
2474
|
-
const tn =
|
|
2474
|
+
const tn = I.current[at];
|
|
2475
2475
|
tn?.(We), D({
|
|
2476
2476
|
type: at,
|
|
2477
2477
|
event: We
|
|
@@ -2482,9 +2482,9 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
},
|
|
2484
2484
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2485
|
-
[
|
|
2485
|
+
[L]
|
|
2486
2486
|
), mo = ee((fe, be) => (ye, Fe) => {
|
|
2487
|
-
const Se = ye.nativeEvent, we =
|
|
2487
|
+
const Se = ye.nativeEvent, we = L.get(Fe);
|
|
2488
2488
|
if (
|
|
2489
2489
|
// Another sensor is already instantiating
|
|
2490
2490
|
S.current !== null || // No active draggable
|
|
@@ -2492,20 +2492,20 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2492
2492
|
Se.dndKit || Se.defaultPrevented
|
|
2493
2493
|
)
|
|
2494
2494
|
return;
|
|
2495
|
-
const
|
|
2495
|
+
const _e = {
|
|
2496
2496
|
active: we
|
|
2497
2497
|
};
|
|
2498
|
-
fe(ye, be.options,
|
|
2498
|
+
fe(ye, be.options, _e) === !0 && (Se.dndKit = {
|
|
2499
2499
|
capturedBy: be.sensor
|
|
2500
2500
|
}, S.current = Fe, Fn(ye, be));
|
|
2501
|
-
}, [
|
|
2501
|
+
}, [L, Fn]), Yn = _s(f, mo);
|
|
2502
2502
|
Ls(f), $e(() => {
|
|
2503
|
-
W &&
|
|
2504
|
-
}, [W,
|
|
2503
|
+
W && O === Ve.Initializing && T(Ve.Initialized);
|
|
2504
|
+
}, [W, O]), V(
|
|
2505
2505
|
() => {
|
|
2506
2506
|
const {
|
|
2507
2507
|
onDragMove: fe
|
|
2508
|
-
} =
|
|
2508
|
+
} = I.current, {
|
|
2509
2509
|
active: be,
|
|
2510
2510
|
activatorEvent: ye,
|
|
2511
2511
|
collisions: Fe,
|
|
@@ -2545,11 +2545,11 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2545
2545
|
return;
|
|
2546
2546
|
const {
|
|
2547
2547
|
onDragOver: we
|
|
2548
|
-
} =
|
|
2549
|
-
id:
|
|
2550
|
-
rect:
|
|
2551
|
-
data:
|
|
2552
|
-
disabled:
|
|
2548
|
+
} = I.current, _e = Fe.get(Nn), Ke = _e && _e.rect.current ? {
|
|
2549
|
+
id: _e.id,
|
|
2550
|
+
rect: _e.rect.current,
|
|
2551
|
+
data: _e.data,
|
|
2552
|
+
disabled: _e.disabled
|
|
2553
2553
|
} : null, ce = {
|
|
2554
2554
|
active: fe,
|
|
2555
2555
|
activatorEvent: be,
|
|
@@ -2572,41 +2572,41 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2572
2572
|
), $e(() => {
|
|
2573
2573
|
de.current = {
|
|
2574
2574
|
activatorEvent: C,
|
|
2575
|
-
active:
|
|
2575
|
+
active: $,
|
|
2576
2576
|
activeNode: Q,
|
|
2577
2577
|
collisionRect: Xe,
|
|
2578
2578
|
collisions: ot,
|
|
2579
|
-
droppableRects:
|
|
2580
|
-
draggableNodes:
|
|
2579
|
+
droppableRects: z,
|
|
2580
|
+
draggableNodes: L,
|
|
2581
2581
|
draggingNode: Ue,
|
|
2582
2582
|
draggingNodeRect: Ge,
|
|
2583
2583
|
droppableContainers: F,
|
|
2584
2584
|
over: Pe,
|
|
2585
2585
|
scrollableAncestors: Ne,
|
|
2586
2586
|
scrollAdjustedTranslate: qe
|
|
2587
|
-
},
|
|
2587
|
+
}, P.current = {
|
|
2588
2588
|
initial: Ge,
|
|
2589
2589
|
translated: Xe
|
|
2590
2590
|
};
|
|
2591
|
-
}, [
|
|
2592
|
-
...
|
|
2591
|
+
}, [$, Q, ot, Xe, L, Ue, Ge, z, F, Pe, Ne, qe]), Ds({
|
|
2592
|
+
...re,
|
|
2593
2593
|
delta: H,
|
|
2594
2594
|
draggingRect: Xe,
|
|
2595
2595
|
pointerCoordinates: Ln,
|
|
2596
2596
|
scrollableAncestors: Ne,
|
|
2597
2597
|
scrollableAncestorRects: St
|
|
2598
2598
|
});
|
|
2599
|
-
const xo =
|
|
2600
|
-
active:
|
|
2599
|
+
const xo = G(() => ({
|
|
2600
|
+
active: $,
|
|
2601
2601
|
activeNode: Q,
|
|
2602
2602
|
activeNodeRect: W,
|
|
2603
2603
|
activatorEvent: C,
|
|
2604
2604
|
collisions: ot,
|
|
2605
2605
|
containerNodeRect: ve,
|
|
2606
2606
|
dragOverlay: Le,
|
|
2607
|
-
draggableNodes:
|
|
2607
|
+
draggableNodes: L,
|
|
2608
2608
|
droppableContainers: F,
|
|
2609
|
-
droppableRects:
|
|
2609
|
+
droppableRects: z,
|
|
2610
2610
|
over: Pe,
|
|
2611
2611
|
measureDroppableContainers: Y,
|
|
2612
2612
|
scrollableAncestors: Ne,
|
|
@@ -2614,35 +2614,35 @@ const Br = /* @__PURE__ */ So(function(t) {
|
|
|
2614
2614
|
measuringConfiguration: E,
|
|
2615
2615
|
measuringScheduled: Z,
|
|
2616
2616
|
windowRect: Qt
|
|
2617
|
-
}), [
|
|
2617
|
+
}), [$, Q, W, C, ot, ve, Le, L, F, z, Pe, Y, Ne, St, E, Z, Qt]), bo = G(() => ({
|
|
2618
2618
|
activatorEvent: C,
|
|
2619
2619
|
activators: Yn,
|
|
2620
|
-
active:
|
|
2620
|
+
active: $,
|
|
2621
2621
|
activeNodeRect: W,
|
|
2622
2622
|
ariaDescribedById: {
|
|
2623
|
-
draggable:
|
|
2623
|
+
draggable: N
|
|
2624
2624
|
},
|
|
2625
|
-
dispatch:
|
|
2626
|
-
draggableNodes:
|
|
2625
|
+
dispatch: M,
|
|
2626
|
+
draggableNodes: L,
|
|
2627
2627
|
over: Pe,
|
|
2628
2628
|
measureDroppableContainers: Y
|
|
2629
|
-
}), [C, Yn,
|
|
2630
|
-
return
|
|
2629
|
+
}), [C, Yn, $, W, M, N, L, Pe, Y]);
|
|
2630
|
+
return ne.createElement(Tr.Provider, {
|
|
2631
2631
|
value: j
|
|
2632
|
-
},
|
|
2632
|
+
}, ne.createElement(Kt.Provider, {
|
|
2633
2633
|
value: bo
|
|
2634
|
-
},
|
|
2634
|
+
}, ne.createElement(Vr.Provider, {
|
|
2635
2635
|
value: xo
|
|
2636
|
-
},
|
|
2636
|
+
}, ne.createElement(Hr.Provider, {
|
|
2637
2637
|
value: vo
|
|
2638
|
-
}, u)),
|
|
2638
|
+
}, u)), ne.createElement(Gs, {
|
|
2639
2639
|
disabled: a?.restoreFocus === !1
|
|
2640
|
-
})),
|
|
2640
|
+
})), ne.createElement(Uo, {
|
|
2641
2641
|
...a,
|
|
2642
|
-
hiddenTextDescribedById:
|
|
2642
|
+
hiddenTextDescribedById: N
|
|
2643
2643
|
}));
|
|
2644
2644
|
function yo() {
|
|
2645
|
-
const fe = y?.autoScrollEnabled === !1, be = typeof c == "object" ? c.enabled === !1 : c === !1, ye =
|
|
2645
|
+
const fe = y?.autoScrollEnabled === !1, be = typeof c == "object" ? c.enabled === !1 : c === !1, ye = _ && !fe && !be;
|
|
2646
2646
|
return typeof c == "object" ? {
|
|
2647
2647
|
...c,
|
|
2648
2648
|
enabled: ye
|
|
@@ -2670,14 +2670,14 @@ function Qs(e) {
|
|
|
2670
2670
|
role: h = nr,
|
|
2671
2671
|
roleDescription: v = "draggable",
|
|
2672
2672
|
tabIndex: m = 0
|
|
2673
|
-
} = o ?? {}, b = c?.id === t,
|
|
2673
|
+
} = o ?? {}, b = c?.id === t, M = He(b ? Hr : Js), [D, j] = Pt(), [O, T] = Pt(), _ = zs(l, t), k = gt(n);
|
|
2674
2674
|
$e(
|
|
2675
2675
|
() => (d.set(t, {
|
|
2676
2676
|
id: t,
|
|
2677
2677
|
key: i,
|
|
2678
2678
|
node: D,
|
|
2679
|
-
activatorNode:
|
|
2680
|
-
data:
|
|
2679
|
+
activatorNode: O,
|
|
2680
|
+
data: k
|
|
2681
2681
|
}), () => {
|
|
2682
2682
|
const H = d.get(t);
|
|
2683
2683
|
H && H.key === i && d.delete(t);
|
|
@@ -2685,7 +2685,7 @@ function Qs(e) {
|
|
|
2685
2685
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2686
2686
|
[d, t]
|
|
2687
2687
|
);
|
|
2688
|
-
const
|
|
2688
|
+
const L = G(() => ({
|
|
2689
2689
|
role: h,
|
|
2690
2690
|
tabIndex: m,
|
|
2691
2691
|
"aria-disabled": r,
|
|
@@ -2697,14 +2697,14 @@ function Qs(e) {
|
|
|
2697
2697
|
active: c,
|
|
2698
2698
|
activatorEvent: a,
|
|
2699
2699
|
activeNodeRect: u,
|
|
2700
|
-
attributes:
|
|
2700
|
+
attributes: L,
|
|
2701
2701
|
isDragging: b,
|
|
2702
|
-
listeners: r ? void 0 :
|
|
2702
|
+
listeners: r ? void 0 : _,
|
|
2703
2703
|
node: D,
|
|
2704
2704
|
over: p,
|
|
2705
2705
|
setNodeRef: j,
|
|
2706
|
-
setActivatorNodeRef:
|
|
2707
|
-
transform:
|
|
2706
|
+
setActivatorNodeRef: T,
|
|
2707
|
+
transform: M
|
|
2708
2708
|
};
|
|
2709
2709
|
}
|
|
2710
2710
|
function ei() {
|
|
@@ -2734,14 +2734,14 @@ function ri(e) {
|
|
|
2734
2734
|
} = {
|
|
2735
2735
|
...ni,
|
|
2736
2736
|
...o
|
|
2737
|
-
},
|
|
2737
|
+
}, M = gt(m ?? r), D = ee(
|
|
2738
2738
|
() => {
|
|
2739
2739
|
if (!d.current) {
|
|
2740
2740
|
d.current = !0;
|
|
2741
2741
|
return;
|
|
2742
2742
|
}
|
|
2743
2743
|
h.current != null && clearTimeout(h.current), h.current = setTimeout(() => {
|
|
2744
|
-
u(Array.isArray(
|
|
2744
|
+
u(Array.isArray(M.current) ? M.current : [M.current]), h.current = null;
|
|
2745
2745
|
}, b);
|
|
2746
2746
|
},
|
|
2747
2747
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -2749,21 +2749,21 @@ function ri(e) {
|
|
|
2749
2749
|
), j = Xt({
|
|
2750
2750
|
callback: D,
|
|
2751
2751
|
disabled: v || !l
|
|
2752
|
-
}),
|
|
2753
|
-
j && (H && (j.unobserve(H), d.current = !1),
|
|
2754
|
-
}, [j]), [
|
|
2752
|
+
}), O = ee((L, H) => {
|
|
2753
|
+
j && (H && (j.unobserve(H), d.current = !1), L && j.observe(L));
|
|
2754
|
+
}, [j]), [T, _] = Pt(O), k = gt(t);
|
|
2755
2755
|
return V(() => {
|
|
2756
|
-
!j || !
|
|
2757
|
-
}, [
|
|
2756
|
+
!j || !T.current || (j.disconnect(), d.current = !1, j.observe(T.current));
|
|
2757
|
+
}, [T, j]), V(
|
|
2758
2758
|
() => (a({
|
|
2759
2759
|
type: se.RegisterDroppable,
|
|
2760
2760
|
element: {
|
|
2761
2761
|
id: r,
|
|
2762
2762
|
key: i,
|
|
2763
2763
|
disabled: n,
|
|
2764
|
-
node:
|
|
2764
|
+
node: T,
|
|
2765
2765
|
rect: p,
|
|
2766
|
-
data:
|
|
2766
|
+
data: k
|
|
2767
2767
|
}
|
|
2768
2768
|
}), () => a({
|
|
2769
2769
|
type: se.UnregisterDroppable,
|
|
@@ -2783,9 +2783,9 @@ function ri(e) {
|
|
|
2783
2783
|
active: l,
|
|
2784
2784
|
rect: p,
|
|
2785
2785
|
isOver: c?.id === r,
|
|
2786
|
-
node:
|
|
2786
|
+
node: T,
|
|
2787
2787
|
over: c,
|
|
2788
|
-
setNodeRef:
|
|
2788
|
+
setNodeRef: _
|
|
2789
2789
|
};
|
|
2790
2790
|
}
|
|
2791
2791
|
function Jt(e, t, n) {
|
|
@@ -2873,7 +2873,7 @@ const Ur = (e) => {
|
|
|
2873
2873
|
scaleX: a.width / l.width,
|
|
2874
2874
|
scaleY: a.height / l.height
|
|
2875
2875
|
};
|
|
2876
|
-
},
|
|
2876
|
+
}, _t = {
|
|
2877
2877
|
scaleX: 1,
|
|
2878
2878
|
scaleY: 1
|
|
2879
2879
|
}, ci = (e) => {
|
|
@@ -2893,29 +2893,29 @@ const Ur = (e) => {
|
|
|
2893
2893
|
return u ? {
|
|
2894
2894
|
x: 0,
|
|
2895
2895
|
y: n < l ? u.top + u.height - (a.top + a.height) : u.top - a.top,
|
|
2896
|
-
...
|
|
2896
|
+
..._t
|
|
2897
2897
|
} : null;
|
|
2898
2898
|
}
|
|
2899
2899
|
const c = ui(i, o, n);
|
|
2900
2900
|
return o > n && o <= l ? {
|
|
2901
2901
|
x: 0,
|
|
2902
2902
|
y: -a.height - c,
|
|
2903
|
-
...
|
|
2903
|
+
..._t
|
|
2904
2904
|
} : o < n && o >= l ? {
|
|
2905
2905
|
x: 0,
|
|
2906
2906
|
y: a.height + c,
|
|
2907
|
-
...
|
|
2907
|
+
..._t
|
|
2908
2908
|
} : {
|
|
2909
2909
|
x: 0,
|
|
2910
2910
|
y: 0,
|
|
2911
|
-
...
|
|
2911
|
+
..._t
|
|
2912
2912
|
};
|
|
2913
2913
|
};
|
|
2914
2914
|
function ui(e, t, n) {
|
|
2915
2915
|
const r = e[t], o = e[t - 1], i = e[t + 1];
|
|
2916
2916
|
return r ? n < t ? o ? r.top - (o.top + o.height) : i ? i.top - (r.top + r.height) : 0 : i ? i.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
|
|
2917
2917
|
}
|
|
2918
|
-
const Gr = "Sortable", qr = /* @__PURE__ */
|
|
2918
|
+
const Gr = "Sortable", qr = /* @__PURE__ */ ne.createContext({
|
|
2919
2919
|
activeIndex: -1,
|
|
2920
2920
|
containerId: Gr,
|
|
2921
2921
|
disableTransforms: !1,
|
|
@@ -2943,17 +2943,17 @@ function Xr(e) {
|
|
|
2943
2943
|
droppableRects: c,
|
|
2944
2944
|
over: u,
|
|
2945
2945
|
measureDroppableContainers: f
|
|
2946
|
-
} = ei(), d = yt(Gr, n), p = a.rect !== null, h =
|
|
2946
|
+
} = ei(), d = yt(Gr, n), p = a.rect !== null, h = G(() => r.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [r]), v = l != null, m = l ? h.indexOf(l.id) : -1, b = u ? h.indexOf(u.id) : -1, M = X(h), D = !si(h, M.current), j = b !== -1 && m === -1 || D, O = ii(i);
|
|
2947
2947
|
$e(() => {
|
|
2948
2948
|
D && v && f(h);
|
|
2949
2949
|
}, [D, h, v, f]), V(() => {
|
|
2950
|
-
|
|
2950
|
+
M.current = h;
|
|
2951
2951
|
}, [h]);
|
|
2952
|
-
const
|
|
2952
|
+
const T = G(
|
|
2953
2953
|
() => ({
|
|
2954
2954
|
activeIndex: m,
|
|
2955
2955
|
containerId: d,
|
|
2956
|
-
disabled:
|
|
2956
|
+
disabled: O,
|
|
2957
2957
|
disableTransforms: j,
|
|
2958
2958
|
items: h,
|
|
2959
2959
|
overIndex: b,
|
|
@@ -2962,10 +2962,10 @@ function Xr(e) {
|
|
|
2962
2962
|
strategy: o
|
|
2963
2963
|
}),
|
|
2964
2964
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2965
|
-
[m, d,
|
|
2965
|
+
[m, d, O.draggable, O.droppable, j, h, b, c, p, o]
|
|
2966
2966
|
);
|
|
2967
|
-
return
|
|
2968
|
-
value:
|
|
2967
|
+
return ne.createElement(qr.Provider, {
|
|
2968
|
+
value: T
|
|
2969
2969
|
}, t);
|
|
2970
2970
|
}
|
|
2971
2971
|
const di = (e) => {
|
|
@@ -3047,70 +3047,70 @@ function Jr(e) {
|
|
|
3047
3047
|
disableTransforms: v,
|
|
3048
3048
|
sortedRects: m,
|
|
3049
3049
|
overIndex: b,
|
|
3050
|
-
useDragOverlay:
|
|
3050
|
+
useDragOverlay: M,
|
|
3051
3051
|
strategy: D
|
|
3052
|
-
} = He(qr), j = mi(r, h),
|
|
3052
|
+
} = He(qr), j = mi(r, h), O = f.indexOf(l), T = G(() => ({
|
|
3053
3053
|
sortable: {
|
|
3054
3054
|
containerId: d,
|
|
3055
|
-
index:
|
|
3055
|
+
index: O,
|
|
3056
3056
|
items: f
|
|
3057
3057
|
},
|
|
3058
3058
|
...o
|
|
3059
|
-
}), [d, o,
|
|
3060
|
-
rect:
|
|
3061
|
-
node:
|
|
3059
|
+
}), [d, o, O, f]), _ = G(() => f.slice(f.indexOf(l)), [f, l]), {
|
|
3060
|
+
rect: k,
|
|
3061
|
+
node: L,
|
|
3062
3062
|
isOver: H,
|
|
3063
3063
|
setNodeRef: F
|
|
3064
3064
|
} = ri({
|
|
3065
3065
|
id: l,
|
|
3066
|
-
data:
|
|
3066
|
+
data: T,
|
|
3067
3067
|
disabled: j.droppable,
|
|
3068
3068
|
resizeObserverConfig: {
|
|
3069
|
-
updateMeasurementsFor:
|
|
3069
|
+
updateMeasurementsFor: _,
|
|
3070
3070
|
...c
|
|
3071
3071
|
}
|
|
3072
3072
|
}), {
|
|
3073
|
-
active:
|
|
3074
|
-
activatorEvent:
|
|
3075
|
-
activeNodeRect:
|
|
3073
|
+
active: A,
|
|
3074
|
+
activatorEvent: P,
|
|
3075
|
+
activeNodeRect: $,
|
|
3076
3076
|
attributes: S,
|
|
3077
3077
|
setNodeRef: y,
|
|
3078
3078
|
listeners: w,
|
|
3079
3079
|
isDragging: C,
|
|
3080
3080
|
over: R,
|
|
3081
|
-
setActivatorNodeRef:
|
|
3082
|
-
transform:
|
|
3081
|
+
setActivatorNodeRef: I,
|
|
3082
|
+
transform: N
|
|
3083
3083
|
} = Qs({
|
|
3084
3084
|
id: l,
|
|
3085
|
-
data:
|
|
3085
|
+
data: T,
|
|
3086
3086
|
attributes: {
|
|
3087
3087
|
...pi,
|
|
3088
3088
|
...n
|
|
3089
3089
|
},
|
|
3090
3090
|
disabled: j.draggable
|
|
3091
|
-
}), g = Io(F, y), E = !!
|
|
3091
|
+
}), g = Io(F, y), E = !!A, z = E && !v && Rt(p) && Rt(b), Y = !M && C, Z = Y && z ? N : null, U = z ? Z ?? (a ?? D)({
|
|
3092
3092
|
rects: m,
|
|
3093
|
-
activeNodeRect:
|
|
3093
|
+
activeNodeRect: $,
|
|
3094
3094
|
activeIndex: p,
|
|
3095
3095
|
overIndex: b,
|
|
3096
|
-
index:
|
|
3097
|
-
}) : null,
|
|
3096
|
+
index: O
|
|
3097
|
+
}) : null, re = Rt(p) && Rt(b) ? i({
|
|
3098
3098
|
id: l,
|
|
3099
3099
|
items: f,
|
|
3100
3100
|
activeIndex: p,
|
|
3101
3101
|
overIndex: b
|
|
3102
|
-
}) :
|
|
3103
|
-
activeId:
|
|
3102
|
+
}) : O, oe = A?.id, W = X({
|
|
3103
|
+
activeId: oe,
|
|
3104
3104
|
items: f,
|
|
3105
|
-
newIndex:
|
|
3105
|
+
newIndex: re,
|
|
3106
3106
|
containerId: d
|
|
3107
3107
|
}), ve = f !== W.current.items, de = t({
|
|
3108
|
-
active:
|
|
3108
|
+
active: A,
|
|
3109
3109
|
containerId: d,
|
|
3110
3110
|
isDragging: C,
|
|
3111
3111
|
isSorting: E,
|
|
3112
3112
|
id: l,
|
|
3113
|
-
index:
|
|
3113
|
+
index: O,
|
|
3114
3114
|
items: f,
|
|
3115
3115
|
newIndex: W.current.newIndex,
|
|
3116
3116
|
previousItems: W.current.items,
|
|
@@ -3119,41 +3119,41 @@ function Jr(e) {
|
|
|
3119
3119
|
wasDragging: W.current.activeId != null
|
|
3120
3120
|
}), De = vi({
|
|
3121
3121
|
disabled: !de,
|
|
3122
|
-
index:
|
|
3123
|
-
node:
|
|
3124
|
-
rect:
|
|
3122
|
+
index: O,
|
|
3123
|
+
node: L,
|
|
3124
|
+
rect: k
|
|
3125
3125
|
});
|
|
3126
3126
|
return V(() => {
|
|
3127
|
-
E && W.current.newIndex !==
|
|
3128
|
-
}, [E,
|
|
3129
|
-
if (
|
|
3127
|
+
E && W.current.newIndex !== re && (W.current.newIndex = re), d !== W.current.containerId && (W.current.containerId = d), f !== W.current.items && (W.current.items = f);
|
|
3128
|
+
}, [E, re, d, f]), V(() => {
|
|
3129
|
+
if (oe === W.current.activeId)
|
|
3130
3130
|
return;
|
|
3131
|
-
if (
|
|
3132
|
-
W.current.activeId =
|
|
3131
|
+
if (oe != null && W.current.activeId == null) {
|
|
3132
|
+
W.current.activeId = oe;
|
|
3133
3133
|
return;
|
|
3134
3134
|
}
|
|
3135
3135
|
const Ue = setTimeout(() => {
|
|
3136
|
-
W.current.activeId =
|
|
3136
|
+
W.current.activeId = oe;
|
|
3137
3137
|
}, 50);
|
|
3138
3138
|
return () => clearTimeout(Ue);
|
|
3139
|
-
}, [
|
|
3140
|
-
active:
|
|
3139
|
+
}, [oe]), {
|
|
3140
|
+
active: A,
|
|
3141
3141
|
activeIndex: p,
|
|
3142
3142
|
attributes: S,
|
|
3143
|
-
data:
|
|
3144
|
-
rect:
|
|
3145
|
-
index:
|
|
3146
|
-
newIndex:
|
|
3143
|
+
data: T,
|
|
3144
|
+
rect: k,
|
|
3145
|
+
index: O,
|
|
3146
|
+
newIndex: re,
|
|
3147
3147
|
items: f,
|
|
3148
3148
|
isOver: H,
|
|
3149
3149
|
isSorting: E,
|
|
3150
3150
|
isDragging: C,
|
|
3151
3151
|
listeners: w,
|
|
3152
|
-
node:
|
|
3152
|
+
node: L,
|
|
3153
3153
|
overIndex: b,
|
|
3154
3154
|
over: R,
|
|
3155
3155
|
setNodeRef: g,
|
|
3156
|
-
setActivatorNodeRef:
|
|
3156
|
+
setActivatorNodeRef: I,
|
|
3157
3157
|
setDroppableNodeRef: F,
|
|
3158
3158
|
setDraggableNodeRef: y,
|
|
3159
3159
|
transform: De ?? U,
|
|
@@ -3163,10 +3163,10 @@ function Jr(e) {
|
|
|
3163
3163
|
if (
|
|
3164
3164
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3165
3165
|
De || // Or to prevent items jumping to back to their "new" position when items change
|
|
3166
|
-
ve && W.current.newIndex ===
|
|
3166
|
+
ve && W.current.newIndex === O
|
|
3167
3167
|
)
|
|
3168
3168
|
return gi;
|
|
3169
|
-
if (!(Y && !En(
|
|
3169
|
+
if (!(Y && !En(P) || !u) && (E || de))
|
|
3170
3170
|
return Ze.Transition.toString({
|
|
3171
3171
|
...u,
|
|
3172
3172
|
property: Kr
|
|
@@ -3184,13 +3184,13 @@ function mi(e, t) {
|
|
|
3184
3184
|
droppable: (r = e?.droppable) != null ? r : t.droppable
|
|
3185
3185
|
};
|
|
3186
3186
|
}
|
|
3187
|
-
|
|
3188
|
-
var
|
|
3187
|
+
q.Down, q.Right, q.Up, q.Left;
|
|
3188
|
+
var Mt = { exports: {} }, ln = {}, Tt = { exports: {} }, cn = {};
|
|
3189
3189
|
var rr;
|
|
3190
3190
|
function xi() {
|
|
3191
3191
|
if (rr) return cn;
|
|
3192
3192
|
rr = 1;
|
|
3193
|
-
var e =
|
|
3193
|
+
var e = ne;
|
|
3194
3194
|
function t(d, p) {
|
|
3195
3195
|
return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
|
|
3196
3196
|
}
|
|
@@ -3248,16 +3248,16 @@ function bi() {
|
|
|
3248
3248
|
b = l({
|
|
3249
3249
|
inst: { value: m, getSnapshot: v }
|
|
3250
3250
|
});
|
|
3251
|
-
var
|
|
3251
|
+
var M = b[0].inst, D = b[1];
|
|
3252
3252
|
return c(
|
|
3253
3253
|
function() {
|
|
3254
|
-
|
|
3254
|
+
M.value = m, M.getSnapshot = v, n(M) && D({ inst: M });
|
|
3255
3255
|
},
|
|
3256
3256
|
[h, m, v]
|
|
3257
3257
|
), a(
|
|
3258
3258
|
function() {
|
|
3259
|
-
return n(
|
|
3260
|
-
n(
|
|
3259
|
+
return n(M) && D({ inst: M }), h(function() {
|
|
3260
|
+
n(M) && D({ inst: M });
|
|
3261
3261
|
});
|
|
3262
3262
|
},
|
|
3263
3263
|
[h]
|
|
@@ -3277,7 +3277,7 @@ function bi() {
|
|
|
3277
3277
|
return v();
|
|
3278
3278
|
}
|
|
3279
3279
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3280
|
-
var o =
|
|
3280
|
+
var o = ne, i = typeof Object.is == "function" ? Object.is : e, l = o.useState, a = o.useEffect, c = o.useLayoutEffect, u = o.useDebugValue, f = !1, d = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
3281
3281
|
un.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3282
3282
|
})()), un;
|
|
3283
3283
|
}
|
|
@@ -3289,7 +3289,7 @@ var ir;
|
|
|
3289
3289
|
function yi() {
|
|
3290
3290
|
if (ir) return ln;
|
|
3291
3291
|
ir = 1;
|
|
3292
|
-
var e =
|
|
3292
|
+
var e = ne, t = Zr();
|
|
3293
3293
|
function n(u, f) {
|
|
3294
3294
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
3295
3295
|
}
|
|
@@ -3302,26 +3302,26 @@ function yi() {
|
|
|
3302
3302
|
} else m = v.current;
|
|
3303
3303
|
v = a(
|
|
3304
3304
|
function() {
|
|
3305
|
-
function _
|
|
3305
|
+
function M(_) {
|
|
3306
3306
|
if (!D) {
|
|
3307
|
-
if (D = !0, j =
|
|
3308
|
-
var
|
|
3309
|
-
if (h(
|
|
3310
|
-
return
|
|
3307
|
+
if (D = !0, j = _, _ = p(_), h !== void 0 && m.hasValue) {
|
|
3308
|
+
var k = m.value;
|
|
3309
|
+
if (h(k, _))
|
|
3310
|
+
return O = k;
|
|
3311
3311
|
}
|
|
3312
|
-
return
|
|
3312
|
+
return O = _;
|
|
3313
3313
|
}
|
|
3314
|
-
if (
|
|
3315
|
-
var
|
|
3316
|
-
return h !== void 0 && h(
|
|
3314
|
+
if (k = O, r(j, _)) return k;
|
|
3315
|
+
var L = p(_);
|
|
3316
|
+
return h !== void 0 && h(k, L) ? (j = _, k) : (j = _, O = L);
|
|
3317
3317
|
}
|
|
3318
|
-
var D = !1, j,
|
|
3318
|
+
var D = !1, j, O, T = d === void 0 ? null : d;
|
|
3319
3319
|
return [
|
|
3320
3320
|
function() {
|
|
3321
|
-
return
|
|
3321
|
+
return M(f());
|
|
3322
3322
|
},
|
|
3323
|
-
|
|
3324
|
-
return
|
|
3323
|
+
T === null ? void 0 : function() {
|
|
3324
|
+
return M(T());
|
|
3325
3325
|
}
|
|
3326
3326
|
];
|
|
3327
3327
|
},
|
|
@@ -3344,7 +3344,7 @@ function wi() {
|
|
|
3344
3344
|
return u === f && (u !== 0 || 1 / u === 1 / f) || u !== u && f !== f;
|
|
3345
3345
|
}
|
|
3346
3346
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3347
|
-
var t =
|
|
3347
|
+
var t = ne, n = Zr(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, i = t.useRef, l = t.useEffect, a = t.useMemo, c = t.useDebugValue;
|
|
3348
3348
|
dn.useSyncExternalStoreWithSelector = function(u, f, d, p, h) {
|
|
3349
3349
|
var v = i(null);
|
|
3350
3350
|
if (v.current === null) {
|
|
@@ -3353,27 +3353,27 @@ function wi() {
|
|
|
3353
3353
|
} else m = v.current;
|
|
3354
3354
|
v = a(
|
|
3355
3355
|
function() {
|
|
3356
|
-
function _
|
|
3356
|
+
function M(_) {
|
|
3357
3357
|
if (!D) {
|
|
3358
|
-
if (D = !0, j =
|
|
3359
|
-
var
|
|
3360
|
-
if (h(
|
|
3361
|
-
return
|
|
3358
|
+
if (D = !0, j = _, _ = p(_), h !== void 0 && m.hasValue) {
|
|
3359
|
+
var k = m.value;
|
|
3360
|
+
if (h(k, _))
|
|
3361
|
+
return O = k;
|
|
3362
3362
|
}
|
|
3363
|
-
return
|
|
3363
|
+
return O = _;
|
|
3364
3364
|
}
|
|
3365
|
-
if (
|
|
3366
|
-
return
|
|
3367
|
-
var
|
|
3368
|
-
return h !== void 0 && h(
|
|
3365
|
+
if (k = O, r(j, _))
|
|
3366
|
+
return k;
|
|
3367
|
+
var L = p(_);
|
|
3368
|
+
return h !== void 0 && h(k, L) ? (j = _, k) : (j = _, O = L);
|
|
3369
3369
|
}
|
|
3370
|
-
var D = !1, j,
|
|
3370
|
+
var D = !1, j, O, T = d === void 0 ? null : d;
|
|
3371
3371
|
return [
|
|
3372
3372
|
function() {
|
|
3373
|
-
return
|
|
3373
|
+
return M(f());
|
|
3374
3374
|
},
|
|
3375
|
-
|
|
3376
|
-
return
|
|
3375
|
+
T === null ? void 0 : function() {
|
|
3376
|
+
return M(T());
|
|
3377
3377
|
}
|
|
3378
3378
|
];
|
|
3379
3379
|
},
|
|
@@ -3391,7 +3391,7 @@ function wi() {
|
|
|
3391
3391
|
}
|
|
3392
3392
|
var lr;
|
|
3393
3393
|
function Si() {
|
|
3394
|
-
return lr || (lr = 1, process.env.NODE_ENV === "production" ?
|
|
3394
|
+
return lr || (lr = 1, process.env.NODE_ENV === "production" ? Mt.exports = yi() : Mt.exports = wi()), Mt.exports;
|
|
3395
3395
|
}
|
|
3396
3396
|
var Ci = Si();
|
|
3397
3397
|
const Sn = /* @__PURE__ */ new WeakMap(), Di = /* @__PURE__ */ new WeakMap(), Vt = {
|
|
@@ -3453,10 +3453,10 @@ function Ei(e) {
|
|
|
3453
3453
|
fn = !1, Vt.current = [], cr.clear();
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
|
-
function
|
|
3456
|
+
function _i(e) {
|
|
3457
3457
|
return typeof e == "function";
|
|
3458
3458
|
}
|
|
3459
|
-
class
|
|
3459
|
+
class Mi {
|
|
3460
3460
|
constructor(t, n) {
|
|
3461
3461
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (r) => {
|
|
3462
3462
|
var o, i;
|
|
@@ -3469,7 +3469,7 @@ class _i {
|
|
|
3469
3469
|
}
|
|
3470
3470
|
setState(t) {
|
|
3471
3471
|
var n, r, o;
|
|
3472
|
-
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) :
|
|
3472
|
+
this.prevState = this.state, (n = this.options) != null && n.updateFn ? this.state = this.options.updateFn(this.prevState)(t) : _i(t) ? this.state = t(this.prevState) : this.state = t, (o = (r = this.options) == null ? void 0 : r.onUpdate) == null || o.call(r), Ei(this);
|
|
3473
3473
|
}
|
|
3474
3474
|
}
|
|
3475
3475
|
function wt(e, t = (r) => r, n = {}) {
|
|
@@ -3514,7 +3514,22 @@ function ur(e) {
|
|
|
3514
3514
|
Object.getOwnPropertySymbols(e)
|
|
3515
3515
|
);
|
|
3516
3516
|
}
|
|
3517
|
-
|
|
3517
|
+
function Oi(e, t, n) {
|
|
3518
|
+
return e.map((r, o) => {
|
|
3519
|
+
const i = {};
|
|
3520
|
+
return t.forEach((l) => {
|
|
3521
|
+
i[l.id] = $i(r[l.id]);
|
|
3522
|
+
}), {
|
|
3523
|
+
__key: r.id ?? o,
|
|
3524
|
+
__raw: r,
|
|
3525
|
+
cells: i
|
|
3526
|
+
};
|
|
3527
|
+
});
|
|
3528
|
+
}
|
|
3529
|
+
function $i(e) {
|
|
3530
|
+
return e == null ? "—" : ne.isValidElement(e) || typeof e == "string" || typeof e == "number" ? e : typeof e == "boolean" ? e ? "Yes" : "No" : e instanceof Date ? e.toLocaleDateString() : Array.isArray(e) ? e.join(", ") : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
3531
|
+
}
|
|
3532
|
+
const pe = new Mi({
|
|
3518
3533
|
tableId: "",
|
|
3519
3534
|
sortColumn: null,
|
|
3520
3535
|
sortDirection: "asc",
|
|
@@ -3530,7 +3545,7 @@ const pe = new _i({
|
|
|
3530
3545
|
width: "100px"
|
|
3531
3546
|
}
|
|
3532
3547
|
}), $n = (e) => `datatable:${e}:column-widths`;
|
|
3533
|
-
function
|
|
3548
|
+
function Ii(e, t) {
|
|
3534
3549
|
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((d) => ({ id: d, label: d }))).filter(
|
|
3535
3550
|
(d) => Object.prototype.hasOwnProperty.call(n, d.id)
|
|
3536
3551
|
), { tableId: i } = pe.state, l = JSON.parse(
|
|
@@ -3561,7 +3576,7 @@ function Oi(e, t) {
|
|
|
3561
3576
|
}))
|
|
3562
3577
|
}));
|
|
3563
3578
|
}
|
|
3564
|
-
function
|
|
3579
|
+
function ki(e) {
|
|
3565
3580
|
pe.setState((t) => ({
|
|
3566
3581
|
...t,
|
|
3567
3582
|
tableId: e,
|
|
@@ -3571,13 +3586,13 @@ function $i(e) {
|
|
|
3571
3586
|
visibility: {}
|
|
3572
3587
|
}));
|
|
3573
3588
|
}
|
|
3574
|
-
const
|
|
3589
|
+
const Ai = (e) => {
|
|
3575
3590
|
pe.setState((t) => ({
|
|
3576
3591
|
...t,
|
|
3577
3592
|
actionsConfig: e
|
|
3578
3593
|
}));
|
|
3579
3594
|
};
|
|
3580
|
-
function
|
|
3595
|
+
function _u(e, t) {
|
|
3581
3596
|
pe.setState((n) => {
|
|
3582
3597
|
const r = {
|
|
3583
3598
|
...n.columnWidths,
|
|
@@ -3587,14 +3602,14 @@ function Ru(e, t) {
|
|
|
3587
3602
|
return localStorage.setItem($n(n.tableId), JSON.stringify(r)), { ...n, columnWidths: r };
|
|
3588
3603
|
});
|
|
3589
3604
|
}
|
|
3590
|
-
const eo = (e) => `table_column_order_v1:${e}`, to = (e) => `table_column_visibility_v1:${e}`,
|
|
3605
|
+
const eo = (e) => `table_column_order_v1:${e}`, to = (e) => `table_column_visibility_v1:${e}`, Li = (e) => {
|
|
3591
3606
|
const { tableId: t } = pe.state;
|
|
3592
3607
|
localStorage.setItem(eo(t), JSON.stringify(e.map((n) => n.id))), pe.setState((n) => ({
|
|
3593
3608
|
...n,
|
|
3594
3609
|
columnOrder: e
|
|
3595
3610
|
})), pe.setState((n) => ({ ...n, columnOrder: e }));
|
|
3596
3611
|
};
|
|
3597
|
-
function
|
|
3612
|
+
function zi(e) {
|
|
3598
3613
|
pe.setState((t) => t.sortColumn === e ? {
|
|
3599
3614
|
...t,
|
|
3600
3615
|
sortDirection: t.sortDirection === "asc" ? "desc" : "asc"
|
|
@@ -3604,7 +3619,7 @@ function Ai(e) {
|
|
|
3604
3619
|
sortDirection: "asc"
|
|
3605
3620
|
});
|
|
3606
3621
|
}
|
|
3607
|
-
const
|
|
3622
|
+
const Ni = (e) => {
|
|
3608
3623
|
pe.setState((t) => {
|
|
3609
3624
|
const n = {
|
|
3610
3625
|
...t.visibility,
|
|
@@ -3616,7 +3631,7 @@ const Li = (e) => {
|
|
|
3616
3631
|
};
|
|
3617
3632
|
});
|
|
3618
3633
|
};
|
|
3619
|
-
function
|
|
3634
|
+
function Pi(e, t) {
|
|
3620
3635
|
pe.setState((n) => {
|
|
3621
3636
|
const r = n.columnOrder.find((l) => l.id === e), o = typeof r?.minWidth == "number" ? r.minWidth : 120, i = {
|
|
3622
3637
|
...n.columnWidths,
|
|
@@ -3625,18 +3640,18 @@ function zi(e, t) {
|
|
|
3625
3640
|
return localStorage.setItem($n(n.tableId), JSON.stringify(i)), { ...n, columnWidths: i };
|
|
3626
3641
|
});
|
|
3627
3642
|
}
|
|
3628
|
-
const
|
|
3643
|
+
const Fi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yi = (e) => e.replace(
|
|
3629
3644
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3630
3645
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
3631
3646
|
), dr = (e) => {
|
|
3632
|
-
const t =
|
|
3647
|
+
const t = Yi(e);
|
|
3633
3648
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3634
|
-
}, no = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
3649
|
+
}, no = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Wi = (e) => {
|
|
3635
3650
|
for (const t in e)
|
|
3636
3651
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
3637
3652
|
return !0;
|
|
3638
3653
|
};
|
|
3639
|
-
var
|
|
3654
|
+
var Vi = {
|
|
3640
3655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3641
3656
|
width: 24,
|
|
3642
3657
|
height: 24,
|
|
@@ -3647,7 +3662,7 @@ var Yi = {
|
|
|
3647
3662
|
strokeLinecap: "round",
|
|
3648
3663
|
strokeLinejoin: "round"
|
|
3649
3664
|
};
|
|
3650
|
-
const
|
|
3665
|
+
const Hi = Cn(
|
|
3651
3666
|
({
|
|
3652
3667
|
color: e = "currentColor",
|
|
3653
3668
|
size: t = 24,
|
|
@@ -3661,13 +3676,13 @@ const Wi = Cn(
|
|
|
3661
3676
|
"svg",
|
|
3662
3677
|
{
|
|
3663
3678
|
ref: c,
|
|
3664
|
-
...
|
|
3679
|
+
...Vi,
|
|
3665
3680
|
width: t,
|
|
3666
3681
|
height: t,
|
|
3667
3682
|
stroke: e,
|
|
3668
3683
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3669
3684
|
className: no("lucide", o),
|
|
3670
|
-
...!i && !
|
|
3685
|
+
...!i && !Wi(a) && { "aria-hidden": "true" },
|
|
3671
3686
|
...a
|
|
3672
3687
|
},
|
|
3673
3688
|
[
|
|
@@ -3678,11 +3693,11 @@ const Wi = Cn(
|
|
|
3678
3693
|
);
|
|
3679
3694
|
const le = (e, t) => {
|
|
3680
3695
|
const n = Cn(
|
|
3681
|
-
({ className: r, ...o }, i) => vn(
|
|
3696
|
+
({ className: r, ...o }, i) => vn(Hi, {
|
|
3682
3697
|
ref: i,
|
|
3683
3698
|
iconNode: t,
|
|
3684
3699
|
className: no(
|
|
3685
|
-
`lucide-${
|
|
3700
|
+
`lucide-${Fi(dr(e))}`,
|
|
3686
3701
|
`lucide-${e}`,
|
|
3687
3702
|
r
|
|
3688
3703
|
),
|
|
@@ -3691,42 +3706,42 @@ const le = (e, t) => {
|
|
|
3691
3706
|
);
|
|
3692
3707
|
return n.displayName = dr(e), n;
|
|
3693
3708
|
};
|
|
3694
|
-
const
|
|
3709
|
+
const Bi = [
|
|
3695
3710
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3696
3711
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3697
|
-
],
|
|
3698
|
-
const
|
|
3712
|
+
], Ui = le("arrow-down", Bi);
|
|
3713
|
+
const Gi = [
|
|
3699
3714
|
["path", { d: "M8 3 4 7l4 4", key: "9rb6wj" }],
|
|
3700
3715
|
["path", { d: "M4 7h16", key: "6tx8e3" }],
|
|
3701
3716
|
["path", { d: "m16 21 4-4-4-4", key: "siv7j2" }],
|
|
3702
3717
|
["path", { d: "M20 17H4", key: "h6l3hr" }]
|
|
3703
|
-
],
|
|
3704
|
-
const
|
|
3718
|
+
], qi = le("arrow-left-right", Gi);
|
|
3719
|
+
const Xi = [
|
|
3705
3720
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
3706
3721
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
3707
3722
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3708
3723
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
3709
|
-
],
|
|
3710
|
-
const
|
|
3724
|
+
], Ki = le("arrow-up-down", Xi);
|
|
3725
|
+
const Ji = [
|
|
3711
3726
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3712
3727
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3713
|
-
],
|
|
3714
|
-
const Ji = [
|
|
3715
|
-
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3716
|
-
], Zi = le("bookmark", Ji);
|
|
3728
|
+
], Zi = le("arrow-up", Ji);
|
|
3717
3729
|
const Qi = [
|
|
3730
|
+
["path", { d: "m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z", key: "1fy3hk" }]
|
|
3731
|
+
], ea = le("bookmark", Qi);
|
|
3732
|
+
const ta = [
|
|
3718
3733
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3719
3734
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3720
3735
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3721
3736
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3722
|
-
], ro = le("calendar",
|
|
3723
|
-
const
|
|
3724
|
-
const
|
|
3725
|
-
const
|
|
3737
|
+
], ro = le("calendar", ta);
|
|
3738
|
+
const na = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ra = le("chevron-left", na);
|
|
3739
|
+
const oa = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], sa = le("chevron-right", oa);
|
|
3740
|
+
const ia = [
|
|
3726
3741
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3727
3742
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
3728
|
-
],
|
|
3729
|
-
const
|
|
3743
|
+
], aa = le("columns-2", ia);
|
|
3744
|
+
const la = [
|
|
3730
3745
|
[
|
|
3731
3746
|
"path",
|
|
3732
3747
|
{
|
|
@@ -3736,13 +3751,13 @@ const ia = [
|
|
|
3736
3751
|
],
|
|
3737
3752
|
["path", { d: "m12 9 6 6", key: "anjzzh" }],
|
|
3738
3753
|
["path", { d: "m18 9-6 6", key: "1fp51s" }]
|
|
3739
|
-
],
|
|
3740
|
-
const
|
|
3754
|
+
], ca = le("delete", la);
|
|
3755
|
+
const ua = [
|
|
3741
3756
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3742
3757
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3743
3758
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3744
|
-
],
|
|
3745
|
-
const
|
|
3759
|
+
], da = le("ellipsis", ua);
|
|
3760
|
+
const fa = [
|
|
3746
3761
|
[
|
|
3747
3762
|
"path",
|
|
3748
3763
|
{
|
|
@@ -3750,16 +3765,16 @@ const ua = [
|
|
|
3750
3765
|
key: "sc7q7i"
|
|
3751
3766
|
}
|
|
3752
3767
|
]
|
|
3753
|
-
],
|
|
3754
|
-
const
|
|
3768
|
+
], ha = le("funnel", fa);
|
|
3769
|
+
const ga = [
|
|
3755
3770
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3756
3771
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
3757
3772
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
3758
3773
|
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
3759
3774
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3760
3775
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3761
|
-
], oo = le("grip-vertical",
|
|
3762
|
-
const
|
|
3776
|
+
], oo = le("grip-vertical", ga);
|
|
3777
|
+
const pa = [
|
|
3763
3778
|
[
|
|
3764
3779
|
"path",
|
|
3765
3780
|
{
|
|
@@ -3767,14 +3782,14 @@ const ha = [
|
|
|
3767
3782
|
key: "1a8usu"
|
|
3768
3783
|
}
|
|
3769
3784
|
]
|
|
3770
|
-
],
|
|
3771
|
-
const
|
|
3785
|
+
], va = le("pen", pa);
|
|
3786
|
+
const ma = [
|
|
3772
3787
|
["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
|
|
3773
3788
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }],
|
|
3774
3789
|
["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
|
|
3775
3790
|
["path", { d: "M16 16h5v5", key: "ccwih5" }]
|
|
3776
|
-
],
|
|
3777
|
-
const
|
|
3791
|
+
], xa = le("refresh-ccw", ma);
|
|
3792
|
+
const ba = [
|
|
3778
3793
|
[
|
|
3779
3794
|
"path",
|
|
3780
3795
|
{
|
|
@@ -3783,8 +3798,8 @@ const ma = [
|
|
|
3783
3798
|
}
|
|
3784
3799
|
],
|
|
3785
3800
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
3786
|
-
],
|
|
3787
|
-
const
|
|
3801
|
+
], ya = le("settings", ba);
|
|
3802
|
+
const wa = [
|
|
3788
3803
|
[
|
|
3789
3804
|
"path",
|
|
3790
3805
|
{
|
|
@@ -3794,11 +3809,11 @@ const ba = [
|
|
|
3794
3809
|
],
|
|
3795
3810
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3796
3811
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3797
|
-
], so = le("triangle-alert",
|
|
3798
|
-
const
|
|
3812
|
+
], so = le("triangle-alert", wa);
|
|
3813
|
+
const Sa = [
|
|
3799
3814
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3800
3815
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3801
|
-
], io = le("x",
|
|
3816
|
+
], io = le("x", Sa);
|
|
3802
3817
|
function x(e) {
|
|
3803
3818
|
return Cn((t, n) => {
|
|
3804
3819
|
const { children: r, ...o } = t;
|
|
@@ -3808,22 +3823,22 @@ function x(e) {
|
|
|
3808
3823
|
);
|
|
3809
3824
|
});
|
|
3810
3825
|
}
|
|
3811
|
-
const
|
|
3812
|
-
function
|
|
3826
|
+
const Ca = x(Ie.Trigger), Da = x(Ie.Positioner), ja = x(Ie.Content), Ra = x(Ie.Item), Ea = x(Re.Label), _a = x(Re.HiddenInput), Ma = x(Re.Control);
|
|
3827
|
+
function Ta({ visibility: e, onToggle: t }) {
|
|
3813
3828
|
const { sortableColumns: n } = wt(pe);
|
|
3814
3829
|
return /* @__PURE__ */ s.jsxs(Ie.Root, { closeOnSelect: !1, children: [
|
|
3815
|
-
/* @__PURE__ */ s.jsx(
|
|
3816
|
-
/* @__PURE__ */ s.jsx(et, { children: /* @__PURE__ */ s.jsx(
|
|
3830
|
+
/* @__PURE__ */ s.jsx(Ca, { asChild: !0, children: /* @__PURE__ */ s.jsx(me, { "aria-label": "Toggle columns", variant: "ghost", ml: "1", size: "xs", children: /* @__PURE__ */ s.jsx(aa, { size: 18 }) }) }),
|
|
3831
|
+
/* @__PURE__ */ s.jsx(et, { children: /* @__PURE__ */ s.jsx(Da, { children: /* @__PURE__ */ s.jsx(ja, { minW: "220px", children: n.map((r) => {
|
|
3817
3832
|
const o = !!e[r.id];
|
|
3818
|
-
return /* @__PURE__ */ s.jsx(
|
|
3819
|
-
/* @__PURE__ */ s.jsx(
|
|
3820
|
-
/* @__PURE__ */ s.jsx(
|
|
3821
|
-
/* @__PURE__ */ s.jsx(
|
|
3833
|
+
return /* @__PURE__ */ s.jsx(Ra, { value: r.id, closeOnSelect: !1, children: /* @__PURE__ */ s.jsxs(Re.Root, { checked: o, onCheckedChange: () => t(r.id), children: [
|
|
3834
|
+
/* @__PURE__ */ s.jsx(_a, {}),
|
|
3835
|
+
/* @__PURE__ */ s.jsx(Ma, {}),
|
|
3836
|
+
/* @__PURE__ */ s.jsx(Ea, { children: r.label })
|
|
3822
3837
|
] }) }, r.id);
|
|
3823
3838
|
}) }) }) })
|
|
3824
3839
|
] });
|
|
3825
3840
|
}
|
|
3826
|
-
function
|
|
3841
|
+
function Oa({
|
|
3827
3842
|
id: e,
|
|
3828
3843
|
children: t,
|
|
3829
3844
|
onClick: n,
|
|
@@ -3834,13 +3849,13 @@ function _a({
|
|
|
3834
3849
|
}) {
|
|
3835
3850
|
const { columnWidths: a } = wt(pe), c = a[e], u = X(0), f = X(0), { setNodeRef: d, attributes: p, listeners: h, transform: v, transition: m } = Jr({ id: e }), b = (j) => {
|
|
3836
3851
|
j.stopPropagation(), u.current = j.clientX, f.current = c ?? 150;
|
|
3837
|
-
const
|
|
3838
|
-
|
|
3839
|
-
},
|
|
3840
|
-
document.removeEventListener("mousemove",
|
|
3852
|
+
const O = (_) => {
|
|
3853
|
+
Pi(e, f.current + (_.clientX - u.current));
|
|
3854
|
+
}, T = () => {
|
|
3855
|
+
document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", T);
|
|
3841
3856
|
};
|
|
3842
|
-
document.addEventListener("mousemove",
|
|
3843
|
-
}, [
|
|
3857
|
+
document.addEventListener("mousemove", O), document.addEventListener("mouseup", T);
|
|
3858
|
+
}, [M, D] = B(!1);
|
|
3844
3859
|
return /* @__PURE__ */ s.jsx(
|
|
3845
3860
|
ie.ColumnHeader,
|
|
3846
3861
|
{
|
|
@@ -3883,14 +3898,14 @@ function _a({
|
|
|
3883
3898
|
alignItems: "center",
|
|
3884
3899
|
justifyContent: "center",
|
|
3885
3900
|
zIndex: 2,
|
|
3886
|
-
children:
|
|
3901
|
+
children: M && /* @__PURE__ */ s.jsx(qi, { size: 14, style: { pointerEvents: "none", opacity: 0.8 } })
|
|
3887
3902
|
}
|
|
3888
3903
|
)
|
|
3889
3904
|
] })
|
|
3890
3905
|
}
|
|
3891
3906
|
);
|
|
3892
3907
|
}
|
|
3893
|
-
function
|
|
3908
|
+
function $a() {
|
|
3894
3909
|
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: i } = wt(pe), l = e.map((a) => o.find((c) => c.id === a.id)).filter((a) => a !== void 0).filter((a) => t[a.id]);
|
|
3895
3910
|
return /* @__PURE__ */ s.jsx(ie.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ s.jsxs(ie.Row, { height: "28px", children: [
|
|
3896
3911
|
i?.showSNo && /* @__PURE__ */ s.jsx(
|
|
@@ -3908,10 +3923,10 @@ function Ta() {
|
|
|
3908
3923
|
l.map((a) => {
|
|
3909
3924
|
const c = n === a?.id, u = a.minWidth;
|
|
3910
3925
|
return /* @__PURE__ */ s.jsx(
|
|
3911
|
-
|
|
3926
|
+
Oa,
|
|
3912
3927
|
{
|
|
3913
3928
|
id: a?.id,
|
|
3914
|
-
onClick: () => a?.sortable &&
|
|
3929
|
+
onClick: () => a?.sortable && zi(a?.id),
|
|
3915
3930
|
borderRight: "2px solid #dcdcdc",
|
|
3916
3931
|
backgroundColor: a?.backgroundColor,
|
|
3917
3932
|
minW: u,
|
|
@@ -3926,7 +3941,7 @@ function Ta() {
|
|
|
3926
3941
|
},
|
|
3927
3942
|
children: [
|
|
3928
3943
|
a.label,
|
|
3929
|
-
a?.sortable && (c ? r === "asc" ? /* @__PURE__ */ s.jsx(
|
|
3944
|
+
a?.sortable && (c ? r === "asc" ? /* @__PURE__ */ s.jsx(Zi, { size: 14 }) : /* @__PURE__ */ s.jsx(Ui, { size: 14 }) : /* @__PURE__ */ s.jsx(Ki, { size: 14, opacity: 0.4 }))
|
|
3930
3945
|
]
|
|
3931
3946
|
}
|
|
3932
3947
|
)
|
|
@@ -3949,20 +3964,20 @@ function Ta() {
|
|
|
3949
3964
|
boxSize: "0.5",
|
|
3950
3965
|
backgroundColor: i.backgroundColorColumnVisibilityMenu,
|
|
3951
3966
|
width: "50px",
|
|
3952
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3967
|
+
children: /* @__PURE__ */ s.jsx(Ta, { visibility: t, onToggle: Ni })
|
|
3953
3968
|
}
|
|
3954
3969
|
)
|
|
3955
3970
|
] }) });
|
|
3956
3971
|
}
|
|
3957
|
-
const
|
|
3958
|
-
function
|
|
3972
|
+
const Ia = [10, 20, 50, 100], ka = x(te.Positioner), Aa = x(te.Content), La = x(te.Item), za = x(zt.PrevTrigger), Na = x(zt.NextTrigger), Pa = x(te.HiddenSelect), Fa = x(te.Control), Ya = x(te.Trigger), Wa = x(te.ValueText), Va = x(te.IndicatorGroup), Ha = x(te.Indicator);
|
|
3973
|
+
function Ba({
|
|
3959
3974
|
totalCount: e,
|
|
3960
3975
|
pageSize: t,
|
|
3961
3976
|
currentPage: n,
|
|
3962
3977
|
onPageChange: r,
|
|
3963
3978
|
onPageSizeChange: o,
|
|
3964
3979
|
siblingCount: i = 2,
|
|
3965
|
-
pageSizeOptions: l =
|
|
3980
|
+
pageSizeOptions: l = Ia
|
|
3966
3981
|
}) {
|
|
3967
3982
|
const a = Cr({
|
|
3968
3983
|
items: l.map((c) => ({
|
|
@@ -3982,12 +3997,12 @@ function Va({
|
|
|
3982
3997
|
onValueChange: (c) => o?.(Number(c.items[0].value)),
|
|
3983
3998
|
value: [String(t)],
|
|
3984
3999
|
children: [
|
|
3985
|
-
/* @__PURE__ */ s.jsx(
|
|
3986
|
-
/* @__PURE__ */ s.jsxs(
|
|
3987
|
-
/* @__PURE__ */ s.jsx(
|
|
3988
|
-
/* @__PURE__ */ s.jsx(
|
|
4000
|
+
/* @__PURE__ */ s.jsx(Pa, {}),
|
|
4001
|
+
/* @__PURE__ */ s.jsxs(Fa, { children: [
|
|
4002
|
+
/* @__PURE__ */ s.jsx(Ya, { children: /* @__PURE__ */ s.jsx(Wa, { placeholder: "" }) }),
|
|
4003
|
+
/* @__PURE__ */ s.jsx(Va, { children: /* @__PURE__ */ s.jsx(Ha, {}) })
|
|
3989
4004
|
] }),
|
|
3990
|
-
/* @__PURE__ */ s.jsx(et, { children: /* @__PURE__ */ s.jsx(
|
|
4005
|
+
/* @__PURE__ */ s.jsx(et, { children: /* @__PURE__ */ s.jsx(ka, { children: /* @__PURE__ */ s.jsx(Aa, { children: a.items.map((c) => /* @__PURE__ */ s.jsxs(La, { item: c.value, children: [
|
|
3991
4006
|
c.label,
|
|
3992
4007
|
/* @__PURE__ */ s.jsx(te.ItemIndicator, {})
|
|
3993
4008
|
] }, c.value)) }) }) })
|
|
@@ -4008,7 +4023,7 @@ function Va({
|
|
|
4008
4023
|
siblingCount: i,
|
|
4009
4024
|
onPageChange: (c) => r && r(c.page),
|
|
4010
4025
|
children: /* @__PURE__ */ s.jsxs(Do, { size: "sm", variant: "ghost", children: [
|
|
4011
|
-
/* @__PURE__ */ s.jsx(
|
|
4026
|
+
/* @__PURE__ */ s.jsx(za, { asChild: !0, children: /* @__PURE__ */ s.jsx(me, { "aria-label": "Previous page", children: /* @__PURE__ */ s.jsx(ra, { size: 18 }) }) }),
|
|
4012
4027
|
/* @__PURE__ */ s.jsx(
|
|
4013
4028
|
zt.Items,
|
|
4014
4029
|
{
|
|
@@ -4023,16 +4038,16 @@ function Va({
|
|
|
4023
4038
|
)
|
|
4024
4039
|
}
|
|
4025
4040
|
),
|
|
4026
|
-
/* @__PURE__ */ s.jsx(
|
|
4041
|
+
/* @__PURE__ */ s.jsx(Na, { asChild: !0, children: /* @__PURE__ */ s.jsx(me, { "aria-label": "Next page", children: /* @__PURE__ */ s.jsx(sa, { size: 18 }) }) })
|
|
4027
4042
|
] })
|
|
4028
4043
|
}
|
|
4029
4044
|
)
|
|
4030
4045
|
] }) });
|
|
4031
4046
|
}
|
|
4032
|
-
const
|
|
4033
|
-
function
|
|
4047
|
+
const Ua = x(Ie.Item), Ga = x(Ie.Content), qa = x(Ie.Positioner), Xa = x(Ie.Trigger);
|
|
4048
|
+
function Ka({
|
|
4034
4049
|
data: e = [],
|
|
4035
|
-
actions: t
|
|
4050
|
+
actions: t,
|
|
4036
4051
|
actionConfig: n,
|
|
4037
4052
|
onRowSelect: r,
|
|
4038
4053
|
onRowSelectEvent: o = "left",
|
|
@@ -4042,12 +4057,12 @@ function qa({
|
|
|
4042
4057
|
return /* @__PURE__ */ s.jsx(ie.Body, { children: e?.map((u, f) => /* @__PURE__ */ s.jsxs(
|
|
4043
4058
|
ie.Row,
|
|
4044
4059
|
{
|
|
4045
|
-
onClick: () => o === "left" && r?.(u.__raw),
|
|
4060
|
+
onClick: () => o === "left" && u.__raw && r?.(u.__raw),
|
|
4046
4061
|
_hover: {
|
|
4047
4062
|
bg: "blue.50"
|
|
4048
4063
|
},
|
|
4049
4064
|
onContextMenu: o === "right" ? (d) => {
|
|
4050
|
-
d.preventDefault(), r?.(u.__raw, d);
|
|
4065
|
+
d.preventDefault(), u.__raw && r?.(u.__raw, d);
|
|
4051
4066
|
} : void 0,
|
|
4052
4067
|
children: [
|
|
4053
4068
|
n?.showSNo && /* @__PURE__ */ s.jsx(ie.Cell, { textAlign: "center", fontWeight: "medium", children: i + f + 1 }),
|
|
@@ -4067,13 +4082,13 @@ function qa({
|
|
|
4067
4082
|
);
|
|
4068
4083
|
}),
|
|
4069
4084
|
n?.showActionColumn && /* @__PURE__ */ s.jsx(ie.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ s.jsxs(Ie.Root, { children: [
|
|
4070
|
-
/* @__PURE__ */ s.jsx(
|
|
4071
|
-
/* @__PURE__ */ s.jsx(
|
|
4072
|
-
(d) => typeof d.visible == "function" ? d.visible(u.__raw) : d.visible !== !1
|
|
4085
|
+
/* @__PURE__ */ s.jsx(Xa, { asChild: !0, children: /* @__PURE__ */ s.jsx(me, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ s.jsx(da, { size: 16 }) }) }),
|
|
4086
|
+
/* @__PURE__ */ s.jsx(qa, { children: /* @__PURE__ */ s.jsx(Ga, { children: t?.filter(
|
|
4087
|
+
(d) => typeof d.visible == "function" ? u.__raw && d.visible(u.__raw) : d.visible !== !1
|
|
4073
4088
|
).map((d) => /* @__PURE__ */ s.jsxs(
|
|
4074
|
-
|
|
4089
|
+
Ua,
|
|
4075
4090
|
{
|
|
4076
|
-
onClick: () => d.onClick(u.__raw),
|
|
4091
|
+
onClick: () => u.__raw && d.onClick(u.__raw),
|
|
4077
4092
|
colorScheme: d.colorScheme,
|
|
4078
4093
|
value: d.label,
|
|
4079
4094
|
children: [
|
|
@@ -4090,10 +4105,10 @@ function qa({
|
|
|
4090
4105
|
u.__key || u.id
|
|
4091
4106
|
)) });
|
|
4092
4107
|
}
|
|
4093
|
-
function
|
|
4108
|
+
function Ja({ rows: e = 6, columns: t }) {
|
|
4094
4109
|
return /* @__PURE__ */ s.jsx(ie.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ s.jsx(ie.Row, { children: Array.from({ length: t }).map((o, i) => /* @__PURE__ */ s.jsx(ie.Cell, { children: /* @__PURE__ */ s.jsx(jo, { height: "25px" }) }, i)) }, r)) });
|
|
4095
4110
|
}
|
|
4096
|
-
function
|
|
4111
|
+
function Mu({
|
|
4097
4112
|
tableId: e,
|
|
4098
4113
|
data: t = [],
|
|
4099
4114
|
headers: n = [],
|
|
@@ -4111,34 +4126,34 @@ function Eu({
|
|
|
4111
4126
|
actionConfig: v,
|
|
4112
4127
|
pageSizeOptions: m,
|
|
4113
4128
|
onRowSelect: b,
|
|
4114
|
-
onRowSelectEvent:
|
|
4129
|
+
onRowSelectEvent: M = "left"
|
|
4115
4130
|
}) {
|
|
4116
4131
|
V(() => {
|
|
4117
|
-
|
|
4132
|
+
ki(e);
|
|
4118
4133
|
}, [e]), V(() => {
|
|
4119
|
-
|
|
4134
|
+
Ii(t, n);
|
|
4120
4135
|
}, [t, n]), V(() => {
|
|
4121
|
-
v &&
|
|
4136
|
+
v && Ai(v);
|
|
4122
4137
|
}, [v]);
|
|
4123
|
-
const { sortColumn: D, sortDirection: j, data:
|
|
4124
|
-
const
|
|
4125
|
-
return D &&
|
|
4126
|
-
(
|
|
4127
|
-
),
|
|
4128
|
-
}, [
|
|
4138
|
+
const { sortColumn: D, sortDirection: j, data: O, columnOrder: T } = wt(pe), _ = G(() => {
|
|
4139
|
+
const $ = [...O];
|
|
4140
|
+
return D && $.sort(
|
|
4141
|
+
(S, y) => j === "asc" ? String(S[D]).localeCompare(String(y[D])) : String(y[D]).localeCompare(String(S[D]))
|
|
4142
|
+
), $;
|
|
4143
|
+
}, [O, D, j, c, u]), k = G(() => (Math.max(1, c || 1) - 1) * u, [c, u]);
|
|
4129
4144
|
V(() => {
|
|
4130
4145
|
c < 1 && f && f(1);
|
|
4131
4146
|
}, [c, f]);
|
|
4132
|
-
const
|
|
4133
|
-
const { active:
|
|
4134
|
-
if (!
|
|
4135
|
-
const
|
|
4136
|
-
|
|
4137
|
-
}, H = r && !i, F = i && !r,
|
|
4138
|
-
return /* @__PURE__ */ s.jsx(Br, { collisionDetection: Or, onDragEnd:
|
|
4147
|
+
const L = ($) => {
|
|
4148
|
+
const { active: S, over: y } = $;
|
|
4149
|
+
if (!y || S.id === y.id) return;
|
|
4150
|
+
const w = T.findIndex((I) => I.id === S.id), C = T.findIndex((I) => I.id === y.id), R = Jt(T, w, C);
|
|
4151
|
+
Li(R);
|
|
4152
|
+
}, H = r && !i, F = i && !r, A = !r && !i && _.length === 0, P = G(() => Oi(_, T), [_, T]);
|
|
4153
|
+
return /* @__PURE__ */ s.jsx(Br, { collisionDetection: Or, onDragEnd: L, children: /* @__PURE__ */ s.jsx(
|
|
4139
4154
|
Xr,
|
|
4140
4155
|
{
|
|
4141
|
-
items:
|
|
4156
|
+
items: T.map(($) => $.id),
|
|
4142
4157
|
strategy: ai,
|
|
4143
4158
|
children: /* @__PURE__ */ s.jsxs(he, { flex: "1", minH: 0, display: "flex", flexDirection: "column", p: 2, children: [
|
|
4144
4159
|
/* @__PURE__ */ s.jsxs(he, { flex: "1", minH: 0, position: "relative", overflowX: "auto", overflowY: "auto", children: [
|
|
@@ -4164,8 +4179,8 @@ function Eu({
|
|
|
4164
4179
|
tableLayout: "fixed",
|
|
4165
4180
|
minW: "max-content",
|
|
4166
4181
|
children: [
|
|
4167
|
-
/* @__PURE__ */ s.jsx(
|
|
4168
|
-
F ? /* @__PURE__ */ s.jsx(
|
|
4182
|
+
/* @__PURE__ */ s.jsx($a, {}),
|
|
4183
|
+
F ? /* @__PURE__ */ s.jsx(Ja, { rows: u, columns: n.length + (a ? 2 : 0) }) : A ? /* @__PURE__ */ s.jsx(ie.Body, { children: /* @__PURE__ */ s.jsx(ie.Row, { children: /* @__PURE__ */ s.jsx(ie.Cell, { colSpan: n.length + (a ? 1 : 0), children: /* @__PURE__ */ s.jsx(
|
|
4169
4184
|
he,
|
|
4170
4185
|
{
|
|
4171
4186
|
display: "flex",
|
|
@@ -4176,14 +4191,14 @@ function Eu({
|
|
|
4176
4191
|
children: l
|
|
4177
4192
|
}
|
|
4178
4193
|
) }) }) }) : /* @__PURE__ */ s.jsx(
|
|
4179
|
-
|
|
4194
|
+
Ka,
|
|
4180
4195
|
{
|
|
4181
|
-
data:
|
|
4196
|
+
data: P,
|
|
4182
4197
|
actions: a,
|
|
4183
4198
|
actionConfig: v,
|
|
4184
4199
|
onRowSelect: b,
|
|
4185
|
-
startIndex:
|
|
4186
|
-
onRowSelectEvent:
|
|
4200
|
+
startIndex: k,
|
|
4201
|
+
onRowSelectEvent: M
|
|
4187
4202
|
}
|
|
4188
4203
|
)
|
|
4189
4204
|
]
|
|
@@ -4192,14 +4207,14 @@ function Eu({
|
|
|
4192
4207
|
)
|
|
4193
4208
|
] }),
|
|
4194
4209
|
/* @__PURE__ */ s.jsx(he, { mt: 0.5, children: /* @__PURE__ */ s.jsx(
|
|
4195
|
-
|
|
4210
|
+
Ba,
|
|
4196
4211
|
{
|
|
4197
4212
|
totalCount: h,
|
|
4198
4213
|
pageSize: u,
|
|
4199
4214
|
currentPage: c,
|
|
4200
4215
|
onPageChange: f,
|
|
4201
|
-
onPageSizeChange: (
|
|
4202
|
-
d?.(
|
|
4216
|
+
onPageSizeChange: ($) => {
|
|
4217
|
+
d?.($), c > 1 && f?.(1);
|
|
4203
4218
|
},
|
|
4204
4219
|
pageSizeOptions: m
|
|
4205
4220
|
}
|
|
@@ -4211,31 +4226,31 @@ function Eu({
|
|
|
4211
4226
|
const ue = [];
|
|
4212
4227
|
for (let e = 0; e < 256; ++e)
|
|
4213
4228
|
ue.push((e + 256).toString(16).slice(1));
|
|
4214
|
-
function
|
|
4229
|
+
function Za(e, t = 0) {
|
|
4215
4230
|
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();
|
|
4216
4231
|
}
|
|
4217
4232
|
let hn;
|
|
4218
|
-
const
|
|
4219
|
-
function
|
|
4233
|
+
const Qa = new Uint8Array(16);
|
|
4234
|
+
function el() {
|
|
4220
4235
|
if (!hn) {
|
|
4221
4236
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4222
4237
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4223
4238
|
hn = crypto.getRandomValues.bind(crypto);
|
|
4224
4239
|
}
|
|
4225
|
-
return hn(
|
|
4240
|
+
return hn(Qa);
|
|
4226
4241
|
}
|
|
4227
|
-
const
|
|
4228
|
-
function
|
|
4242
|
+
const tl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), fr = { randomUUID: tl };
|
|
4243
|
+
function nl(e, t, n) {
|
|
4229
4244
|
e = e || {};
|
|
4230
|
-
const r = e.random ?? e.rng?.() ??
|
|
4245
|
+
const r = e.random ?? e.rng?.() ?? el();
|
|
4231
4246
|
if (r.length < 16)
|
|
4232
4247
|
throw new Error("Random bytes length must be >= 16");
|
|
4233
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
4248
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Za(r);
|
|
4234
4249
|
}
|
|
4235
|
-
function
|
|
4236
|
-
return fr.randomUUID && !e ? fr.randomUUID() :
|
|
4250
|
+
function rl(e, t, n) {
|
|
4251
|
+
return fr.randomUUID && !e ? fr.randomUUID() : nl(e);
|
|
4237
4252
|
}
|
|
4238
|
-
const
|
|
4253
|
+
const ol = x(Re.Root), sl = x(Re.HiddenInput), il = x(Re.Control), al = x(Re.Label), ll = ({
|
|
4239
4254
|
value: e,
|
|
4240
4255
|
onChange: t,
|
|
4241
4256
|
size: n = "sm",
|
|
@@ -4244,10 +4259,10 @@ const nl = x(Re.Root), rl = x(Re.HiddenInput), ol = x(Re.Control), sl = x(Re.Lab
|
|
|
4244
4259
|
isDisabled: i,
|
|
4245
4260
|
required: l,
|
|
4246
4261
|
errorText: a
|
|
4247
|
-
}) => /* @__PURE__ */ s.jsxs(
|
|
4248
|
-
/* @__PURE__ */ s.jsx(
|
|
4262
|
+
}) => /* @__PURE__ */ s.jsxs(ol, { value: e, onChange: t, size: n, children: [
|
|
4263
|
+
/* @__PURE__ */ s.jsx(sl, {}),
|
|
4249
4264
|
/* @__PURE__ */ s.jsx(
|
|
4250
|
-
|
|
4265
|
+
il,
|
|
4251
4266
|
{
|
|
4252
4267
|
disabled: i,
|
|
4253
4268
|
required: l,
|
|
@@ -4255,9 +4270,9 @@ const nl = x(Re.Root), rl = x(Re.HiddenInput), ol = x(Re.Control), sl = x(Re.Lab
|
|
|
4255
4270
|
helperText: o
|
|
4256
4271
|
}
|
|
4257
4272
|
),
|
|
4258
|
-
r && /* @__PURE__ */ s.jsx(
|
|
4259
|
-
] }),
|
|
4260
|
-
function
|
|
4273
|
+
r && /* @__PURE__ */ s.jsx(al, { children: r })
|
|
4274
|
+
] }), cl = x(Te.Root), ul = x(Te.Control), dl = x(Te.Input), fl = x(Te.IndicatorGroup), hl = x(Te.ClearTrigger), gl = x(Te.Trigger), pl = x(Te.Positioner), vl = x(Te.Content);
|
|
4275
|
+
function ml({
|
|
4261
4276
|
label: e,
|
|
4262
4277
|
size: t = "sm",
|
|
4263
4278
|
width: n = "100%",
|
|
@@ -4276,69 +4291,69 @@ function pl({
|
|
|
4276
4291
|
onSelect: m,
|
|
4277
4292
|
visible: b = !0,
|
|
4278
4293
|
// 🔑 SLOT PROPS
|
|
4279
|
-
rootProps:
|
|
4294
|
+
rootProps: M,
|
|
4280
4295
|
inputProps: D,
|
|
4281
4296
|
controlProps: j,
|
|
4282
|
-
contentProps:
|
|
4283
|
-
itemProps:
|
|
4297
|
+
contentProps: O,
|
|
4298
|
+
itemProps: T
|
|
4284
4299
|
}) {
|
|
4285
|
-
const [
|
|
4286
|
-
initialItems:
|
|
4300
|
+
const [_, k] = B(""), L = G(() => Array.isArray(o) ? o : [], [o]), { collection: H, set: F } = Ro({
|
|
4301
|
+
initialItems: L,
|
|
4287
4302
|
itemToString: i,
|
|
4288
4303
|
itemToValue: l
|
|
4289
|
-
}),
|
|
4290
|
-
if (!
|
|
4291
|
-
const
|
|
4292
|
-
return
|
|
4293
|
-
}, [o,
|
|
4304
|
+
}), A = G(() => {
|
|
4305
|
+
if (!_) return L;
|
|
4306
|
+
const P = _.toLowerCase();
|
|
4307
|
+
return L.filter(($) => i($).toLowerCase().includes(P));
|
|
4308
|
+
}, [o, _, i]);
|
|
4294
4309
|
return V(() => {
|
|
4295
|
-
F(
|
|
4296
|
-
}, [
|
|
4297
|
-
c &&
|
|
4310
|
+
F(A);
|
|
4311
|
+
}, [A, F]), V(() => {
|
|
4312
|
+
c && k(i(c));
|
|
4298
4313
|
}, [c, i]), /* @__PURE__ */ s.jsxs(
|
|
4299
|
-
|
|
4314
|
+
cl,
|
|
4300
4315
|
{
|
|
4301
4316
|
width: n,
|
|
4302
4317
|
size: t,
|
|
4303
4318
|
variant: r,
|
|
4304
4319
|
collection: H,
|
|
4305
4320
|
placeholder: p,
|
|
4306
|
-
onInputValueChange: (
|
|
4307
|
-
v?.(
|
|
4321
|
+
onInputValueChange: (P) => {
|
|
4322
|
+
v?.(P.inputValue), k(P.inputValue);
|
|
4308
4323
|
},
|
|
4309
4324
|
value: c ? [l(c)] : [],
|
|
4310
|
-
onValueChange: (
|
|
4311
|
-
const
|
|
4312
|
-
if (
|
|
4313
|
-
const S = H.items.find((y) => l(y) ===
|
|
4325
|
+
onValueChange: (P) => {
|
|
4326
|
+
const $ = P.value?.[0];
|
|
4327
|
+
if (!$) return;
|
|
4328
|
+
const S = H.items.find((y) => l(y) === $);
|
|
4314
4329
|
S && m?.(S);
|
|
4315
4330
|
},
|
|
4316
4331
|
positioning: { sameWidth: !1, placement: "bottom-start" },
|
|
4317
|
-
...
|
|
4332
|
+
...M,
|
|
4318
4333
|
children: [
|
|
4319
4334
|
b && e && /* @__PURE__ */ s.jsx(J, { fontSize: "sm", children: e }),
|
|
4320
|
-
/* @__PURE__ */ s.jsxs(
|
|
4321
|
-
/* @__PURE__ */ s.jsx(
|
|
4322
|
-
/* @__PURE__ */ s.jsxs(
|
|
4323
|
-
/* @__PURE__ */ s.jsx(
|
|
4324
|
-
/* @__PURE__ */ s.jsx(
|
|
4335
|
+
/* @__PURE__ */ s.jsxs(ul, { ...j, children: [
|
|
4336
|
+
/* @__PURE__ */ s.jsx(dl, { placeholder: p ?? "Type to search", ...D }),
|
|
4337
|
+
/* @__PURE__ */ s.jsxs(fl, { children: [
|
|
4338
|
+
/* @__PURE__ */ s.jsx(hl, {}),
|
|
4339
|
+
/* @__PURE__ */ s.jsx(gl, {})
|
|
4325
4340
|
] })
|
|
4326
4341
|
] }),
|
|
4327
|
-
/* @__PURE__ */ s.jsx(
|
|
4342
|
+
/* @__PURE__ */ s.jsx(pl, { children: /* @__PURE__ */ s.jsxs(vl, { minW: "sm", ...O, children: [
|
|
4328
4343
|
u ? /* @__PURE__ */ s.jsxs(ge, { p: "2", children: [
|
|
4329
4344
|
/* @__PURE__ */ s.jsx(Dr, { size: "xs", borderWidth: "1px" }),
|
|
4330
4345
|
/* @__PURE__ */ s.jsx(Eo, { children: "Loading..." })
|
|
4331
|
-
] }) : f ? /* @__PURE__ */ s.jsx(J, { p: "2", color: "red.500", fontSize: "sm", children: d || "Something went wrong" }) : H.items.map((
|
|
4332
|
-
a(
|
|
4346
|
+
] }) : f ? /* @__PURE__ */ s.jsx(J, { p: "2", color: "red.500", fontSize: "sm", children: d || "Something went wrong" }) : H.items.map((P) => /* @__PURE__ */ s.jsxs(Te.Item, { item: P, ...T, children: [
|
|
4347
|
+
a(P),
|
|
4333
4348
|
/* @__PURE__ */ s.jsx(Te.ItemIndicator, {})
|
|
4334
|
-
] }, l(
|
|
4349
|
+
] }, l(P))),
|
|
4335
4350
|
h && !f && !u && /* @__PURE__ */ s.jsx(J, { p: "2", color: "fg.muted", fontSize: "sm", children: h })
|
|
4336
4351
|
] }) })
|
|
4337
4352
|
]
|
|
4338
4353
|
}
|
|
4339
4354
|
);
|
|
4340
4355
|
}
|
|
4341
|
-
const
|
|
4356
|
+
const xl = x(ke.Root), bl = x(ke.Content), yl = x(ke.Arrow), wl = x(ke.Trigger), Sl = x(ke.Positioner);
|
|
4342
4357
|
function Be(e) {
|
|
4343
4358
|
if (!e) return "";
|
|
4344
4359
|
const t = String(e.getDate()).padStart(2, "0"), n = String(e.getMonth() + 1).padStart(2, "0"), r = e.getFullYear();
|
|
@@ -4356,7 +4371,7 @@ function hr(e) {
|
|
|
4356
4371
|
}, i = o(n), l = o(r);
|
|
4357
4372
|
return { start: i, end: l };
|
|
4358
4373
|
}
|
|
4359
|
-
function
|
|
4374
|
+
function Cl({
|
|
4360
4375
|
startDate: e,
|
|
4361
4376
|
endDate: t,
|
|
4362
4377
|
onChange: n,
|
|
@@ -4366,56 +4381,56 @@ function wl({
|
|
|
4366
4381
|
label: i = "Select date range",
|
|
4367
4382
|
visible: l = !0
|
|
4368
4383
|
}) {
|
|
4369
|
-
const [a, c] = B(!1), [u, f] = B(e || /* @__PURE__ */ new Date()), [d, p] = B(null), [h, v] = B(e || null), [m, b] = B(t || null),
|
|
4384
|
+
const [a, c] = B(!1), [u, f] = B(e || /* @__PURE__ */ new Date()), [d, p] = B(null), [h, v] = B(e || null), [m, b] = B(t || null), M = (P, $) => P && $ ? `${Be(P)} to ${Be($)}` : P ? `${Be(P)}` : "", [D, j] = B(M(e, t));
|
|
4370
4385
|
V(() => {
|
|
4371
4386
|
v(e || null), b(t || null);
|
|
4372
4387
|
}, [e, t]);
|
|
4373
|
-
const
|
|
4388
|
+
const O = new Date(u.getFullYear(), u.getMonth() + 1, 0).getDate(), T = new Date(u.getFullYear(), u.getMonth(), 1).getDay(), _ = () => {
|
|
4374
4389
|
f(new Date(u.getFullYear(), u.getMonth() - 1, 1));
|
|
4375
|
-
},
|
|
4390
|
+
}, k = () => {
|
|
4376
4391
|
f(new Date(u.getFullYear(), u.getMonth() + 1, 1));
|
|
4377
|
-
},
|
|
4378
|
-
const
|
|
4392
|
+
}, L = (P) => {
|
|
4393
|
+
const $ = new Date(u.getFullYear(), u.getMonth(), P);
|
|
4379
4394
|
if (!h || h && m) {
|
|
4380
|
-
v(
|
|
4395
|
+
v($), b(null), n($, null), j(Be($));
|
|
4381
4396
|
return;
|
|
4382
4397
|
}
|
|
4383
4398
|
if (h && !m) {
|
|
4384
|
-
const S =
|
|
4399
|
+
const S = $ < h ? $ : h, y = $ < h ? h : $;
|
|
4385
4400
|
v(S), b(y), n(S, y), j(`${Be(S)} to ${Be(y)}`), c(!1);
|
|
4386
4401
|
}
|
|
4387
|
-
}, H = (
|
|
4388
|
-
const
|
|
4389
|
-
j(
|
|
4390
|
-
const { start: S, end: y } = hr(
|
|
4402
|
+
}, H = (P) => {
|
|
4403
|
+
const $ = P.target.value;
|
|
4404
|
+
j($);
|
|
4405
|
+
const { start: S, end: y } = hr($);
|
|
4391
4406
|
if (S && y) {
|
|
4392
4407
|
const w = S < y ? S : y, C = S < y ? y : S;
|
|
4393
4408
|
n(w, C), f(w);
|
|
4394
|
-
} else S &&
|
|
4395
|
-
}, F = (
|
|
4396
|
-
if (
|
|
4397
|
-
const { start:
|
|
4398
|
-
if (
|
|
4399
|
-
const y = `${Be(
|
|
4400
|
-
j(y), v(
|
|
4401
|
-
|
|
4409
|
+
} else S && !$.toLowerCase().includes("to") && n(S, null);
|
|
4410
|
+
}, F = (P) => {
|
|
4411
|
+
if (P.key !== "Enter") return;
|
|
4412
|
+
const { start: $, end: S } = hr(D);
|
|
4413
|
+
if ($ && !S && !D.toLowerCase().includes("to")) {
|
|
4414
|
+
const y = `${Be($)} to `;
|
|
4415
|
+
j(y), v($), b(null), n($, null), requestAnimationFrame(() => {
|
|
4416
|
+
P.target.setSelectionRange(y.length, y.length);
|
|
4402
4417
|
});
|
|
4403
4418
|
return;
|
|
4404
4419
|
}
|
|
4405
|
-
if (
|
|
4406
|
-
const y =
|
|
4420
|
+
if ($ && S) {
|
|
4421
|
+
const y = $ < S ? $ : S, w = $ < S ? S : $;
|
|
4407
4422
|
v(y), b(w), n(y, w), c(!1);
|
|
4408
4423
|
}
|
|
4409
|
-
},
|
|
4424
|
+
}, A = () => {
|
|
4410
4425
|
v(null), b(null), j(""), n(null, null);
|
|
4411
4426
|
};
|
|
4412
4427
|
return /* @__PURE__ */ s.jsxs(he, { width: r, onKeyDown: F, children: [
|
|
4413
4428
|
o && !l && /* @__PURE__ */ s.jsx(J, { fontSize: "xs", color: "fg.muted", mb: 1, fontWeight: "medium", children: i }),
|
|
4414
4429
|
/* @__PURE__ */ s.jsxs(
|
|
4415
|
-
|
|
4430
|
+
xl,
|
|
4416
4431
|
{
|
|
4417
4432
|
open: a,
|
|
4418
|
-
onOpenChange: (
|
|
4433
|
+
onOpenChange: (P) => c(P.open),
|
|
4419
4434
|
positioning: { placement: "bottom-start", gutter: 4 },
|
|
4420
4435
|
children: [
|
|
4421
4436
|
/* @__PURE__ */ s.jsxs(jr, { attached: !0, w: "full", position: "relative", children: [
|
|
@@ -4435,7 +4450,7 @@ function wl({
|
|
|
4435
4450
|
size: "xs",
|
|
4436
4451
|
variant: "ghost",
|
|
4437
4452
|
"aria-label": "Clear date",
|
|
4438
|
-
onClick:
|
|
4453
|
+
onClick: A,
|
|
4439
4454
|
position: "absolute",
|
|
4440
4455
|
right: "32px",
|
|
4441
4456
|
top: "50%",
|
|
@@ -4443,7 +4458,7 @@ function wl({
|
|
|
4443
4458
|
children: /* @__PURE__ */ s.jsx(io, { size: 14 })
|
|
4444
4459
|
}
|
|
4445
4460
|
),
|
|
4446
|
-
/* @__PURE__ */ s.jsx(
|
|
4461
|
+
/* @__PURE__ */ s.jsx(wl, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
4447
4462
|
Rr,
|
|
4448
4463
|
{
|
|
4449
4464
|
cursor: "pointer",
|
|
@@ -4454,8 +4469,8 @@ function wl({
|
|
|
4454
4469
|
}
|
|
4455
4470
|
) })
|
|
4456
4471
|
] }),
|
|
4457
|
-
/* @__PURE__ */ s.jsx(
|
|
4458
|
-
|
|
4472
|
+
/* @__PURE__ */ s.jsx(Sl, { children: /* @__PURE__ */ s.jsxs(
|
|
4473
|
+
bl,
|
|
4459
4474
|
{
|
|
4460
4475
|
width: "300px",
|
|
4461
4476
|
p: 4,
|
|
@@ -4464,14 +4479,14 @@ function wl({
|
|
|
4464
4479
|
borderRadius: "md",
|
|
4465
4480
|
outline: "none",
|
|
4466
4481
|
children: [
|
|
4467
|
-
/* @__PURE__ */ s.jsx(
|
|
4482
|
+
/* @__PURE__ */ s.jsx(yl, {}),
|
|
4468
4483
|
/* @__PURE__ */ s.jsxs(ge, { justify: "space-between", mb: 4, children: [
|
|
4469
4484
|
/* @__PURE__ */ s.jsx(
|
|
4470
4485
|
me,
|
|
4471
4486
|
{
|
|
4472
4487
|
size: "xs",
|
|
4473
4488
|
variant: "ghost",
|
|
4474
|
-
onClick:
|
|
4489
|
+
onClick: _,
|
|
4475
4490
|
"aria-label": "Previous month",
|
|
4476
4491
|
children: "‹"
|
|
4477
4492
|
}
|
|
@@ -4485,43 +4500,43 @@ function wl({
|
|
|
4485
4500
|
{
|
|
4486
4501
|
size: "xs",
|
|
4487
4502
|
variant: "ghost",
|
|
4488
|
-
onClick:
|
|
4503
|
+
onClick: k,
|
|
4489
4504
|
"aria-label": "Next month",
|
|
4490
4505
|
children: "›"
|
|
4491
4506
|
}
|
|
4492
4507
|
)
|
|
4493
4508
|
] }),
|
|
4494
4509
|
/* @__PURE__ */ s.jsxs(Er, { templateColumns: "repeat(7, 1fr)", gap: 1, textAlign: "center", children: [
|
|
4495
|
-
["S", "M", "T", "W", "T", "F", "S"].map((
|
|
4496
|
-
Array(
|
|
4497
|
-
Array.from({ length:
|
|
4498
|
-
const S =
|
|
4510
|
+
["S", "M", "T", "W", "T", "F", "S"].map((P, $) => /* @__PURE__ */ s.jsx(J, { fontSize: "xs", fontWeight: "bold", color: "fg.subtle", py: 1, children: P }, `${P}-${$}`)),
|
|
4511
|
+
Array(T).fill(null).map((P, $) => /* @__PURE__ */ s.jsx(he, {}, `empty-${$}`)),
|
|
4512
|
+
Array.from({ length: O }, (P, $) => {
|
|
4513
|
+
const S = $ + 1, y = new Date(u.getFullYear(), u.getMonth(), S);
|
|
4499
4514
|
let w = e, C = t;
|
|
4500
4515
|
if (w && C && d)
|
|
4501
4516
|
if (e && t) {
|
|
4502
4517
|
const Y = e.getTime() + (t.getTime() - e.getTime()) / 2;
|
|
4503
4518
|
d.getTime() <= Y ? w = d : C = d, w > C && ([w, C] = [C, w]);
|
|
4504
4519
|
} else e && !t && (w = d < e ? d : e, C = d < e ? e : d);
|
|
4505
|
-
const R = w && y.getTime() === w.getTime(),
|
|
4520
|
+
const R = w && y.getTime() === w.getTime(), I = C && y.getTime() === C.getTime(), N = w && C && y > w && y < C;
|
|
4506
4521
|
let g = "transparent", E = "gray";
|
|
4507
|
-
R ||
|
|
4508
|
-
let
|
|
4509
|
-
return
|
|
4522
|
+
R || I ? E = "blue" : N && (g = "blue.100");
|
|
4523
|
+
let z = "md";
|
|
4524
|
+
return N && (z = "0"), R && C && (z = I ? "md" : "md 0 0 md"), I && w && (z = R ? "md" : "0 md md 0"), /* @__PURE__ */ s.jsx(
|
|
4510
4525
|
Oe,
|
|
4511
4526
|
{
|
|
4512
4527
|
size: "xs",
|
|
4513
4528
|
variant: "ghost",
|
|
4514
4529
|
colorPalette: E,
|
|
4515
4530
|
bg: g !== "transparent" ? g : void 0,
|
|
4516
|
-
onClick: () =>
|
|
4531
|
+
onClick: () => L(S),
|
|
4517
4532
|
onMouseEnter: () => p(y),
|
|
4518
4533
|
onMouseLeave: () => p(null),
|
|
4519
4534
|
minW: "32px",
|
|
4520
4535
|
h: "32px",
|
|
4521
4536
|
fontSize: "xs",
|
|
4522
|
-
borderRadius:
|
|
4537
|
+
borderRadius: z,
|
|
4523
4538
|
_hover: {
|
|
4524
|
-
bg: R ||
|
|
4539
|
+
bg: R || I ? void 0 : "gray.100"
|
|
4525
4540
|
},
|
|
4526
4541
|
children: S
|
|
4527
4542
|
},
|
|
@@ -4538,13 +4553,13 @@ function wl({
|
|
|
4538
4553
|
)
|
|
4539
4554
|
] });
|
|
4540
4555
|
}
|
|
4541
|
-
const
|
|
4556
|
+
const Dl = x(ke.Root), jl = x(ke.Content), Rl = x(ke.Arrow), El = x(ke.Trigger), _l = x(ke.Positioner);
|
|
4542
4557
|
function gr(e) {
|
|
4543
4558
|
if (!e) return "";
|
|
4544
4559
|
const t = String(e.getDate()).padStart(2, "0"), n = String(e.getMonth() + 1).padStart(2, "0"), r = e.getFullYear();
|
|
4545
4560
|
return `${t}-${n}-${r}`;
|
|
4546
4561
|
}
|
|
4547
|
-
function
|
|
4562
|
+
function Ml(e) {
|
|
4548
4563
|
const t = e.split("-");
|
|
4549
4564
|
if (t.length !== 3) return null;
|
|
4550
4565
|
const [n, r, o] = t, i = parseInt(n), l = parseInt(r) - 1, a = parseInt(o);
|
|
@@ -4552,7 +4567,7 @@ function El(e) {
|
|
|
4552
4567
|
const c = new Date(a, l, i);
|
|
4553
4568
|
return c.getDate() === i && c.getMonth() === l ? c : null;
|
|
4554
4569
|
}
|
|
4555
|
-
function
|
|
4570
|
+
function Tl({
|
|
4556
4571
|
value: e,
|
|
4557
4572
|
onChange: t,
|
|
4558
4573
|
width: n = "220px",
|
|
@@ -4583,13 +4598,13 @@ function Ml({
|
|
|
4583
4598
|
l(!1);
|
|
4584
4599
|
break;
|
|
4585
4600
|
}
|
|
4586
|
-
},
|
|
4601
|
+
}, M = () => {
|
|
4587
4602
|
f(""), t(null);
|
|
4588
4603
|
};
|
|
4589
4604
|
return /* @__PURE__ */ s.jsxs(he, { width: n, onKeyDown: b, children: [
|
|
4590
4605
|
!r && /* @__PURE__ */ s.jsx(J, { fontSize: "xs", color: "fg.muted", mb: 1, fontWeight: "medium", children: o }),
|
|
4591
4606
|
/* @__PURE__ */ s.jsxs(
|
|
4592
|
-
|
|
4607
|
+
Dl,
|
|
4593
4608
|
{
|
|
4594
4609
|
open: i,
|
|
4595
4610
|
onOpenChange: (D) => l(D.open),
|
|
@@ -4602,7 +4617,7 @@ function Ml({
|
|
|
4602
4617
|
size: "xs",
|
|
4603
4618
|
variant: "ghost",
|
|
4604
4619
|
"aria-label": "Clear date",
|
|
4605
|
-
onClick:
|
|
4620
|
+
onClick: M,
|
|
4606
4621
|
position: "absolute",
|
|
4607
4622
|
right: "32px",
|
|
4608
4623
|
top: "50%",
|
|
@@ -4619,14 +4634,14 @@ function Ml({
|
|
|
4619
4634
|
onChange: (D) => {
|
|
4620
4635
|
const j = D.target.value;
|
|
4621
4636
|
f(j);
|
|
4622
|
-
const
|
|
4623
|
-
|
|
4637
|
+
const O = Ml(j);
|
|
4638
|
+
O && (t(O), c(O));
|
|
4624
4639
|
},
|
|
4625
4640
|
size: "sm",
|
|
4626
4641
|
autoComplete: "off"
|
|
4627
4642
|
}
|
|
4628
4643
|
),
|
|
4629
|
-
/* @__PURE__ */ s.jsx(
|
|
4644
|
+
/* @__PURE__ */ s.jsx(El, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
4630
4645
|
Rr,
|
|
4631
4646
|
{
|
|
4632
4647
|
cursor: "pointer",
|
|
@@ -4637,8 +4652,8 @@ function Ml({
|
|
|
4637
4652
|
}
|
|
4638
4653
|
) })
|
|
4639
4654
|
] }),
|
|
4640
|
-
/* @__PURE__ */ s.jsx(
|
|
4641
|
-
|
|
4655
|
+
/* @__PURE__ */ s.jsx(_l, { children: /* @__PURE__ */ s.jsxs(
|
|
4656
|
+
jl,
|
|
4642
4657
|
{
|
|
4643
4658
|
width: "300px",
|
|
4644
4659
|
p: 4,
|
|
@@ -4647,7 +4662,7 @@ function Ml({
|
|
|
4647
4662
|
borderRadius: "md",
|
|
4648
4663
|
outline: "none",
|
|
4649
4664
|
children: [
|
|
4650
|
-
/* @__PURE__ */ s.jsx(
|
|
4665
|
+
/* @__PURE__ */ s.jsx(Rl, {}),
|
|
4651
4666
|
/* @__PURE__ */ s.jsxs(ge, { justify: "space-between", mb: 4, children: [
|
|
4652
4667
|
/* @__PURE__ */ s.jsx(
|
|
4653
4668
|
me,
|
|
@@ -4678,21 +4693,21 @@ function Ml({
|
|
|
4678
4693
|
["S", "M", "T", "W", "T", "F", "S"].map((D, j) => /* @__PURE__ */ s.jsx(J, { fontSize: "xs", fontWeight: "bold", color: "fg.subtle", py: 1, children: D }, `${D}-${j}`)),
|
|
4679
4694
|
Array(p).fill(null).map((D, j) => /* @__PURE__ */ s.jsx(he, {}, `empty-${j}`)),
|
|
4680
4695
|
Array.from({ length: d }, (D, j) => {
|
|
4681
|
-
const
|
|
4696
|
+
const O = j + 1, T = e && e.getDate() === O && e.getMonth() === a.getMonth() && e.getFullYear() === a.getFullYear();
|
|
4682
4697
|
return /* @__PURE__ */ s.jsx(
|
|
4683
4698
|
Oe,
|
|
4684
4699
|
{
|
|
4685
4700
|
size: "xs",
|
|
4686
|
-
variant:
|
|
4687
|
-
colorPalette:
|
|
4688
|
-
onClick: () => m(
|
|
4701
|
+
variant: T ? "solid" : "ghost",
|
|
4702
|
+
colorPalette: T ? "blue" : "gray",
|
|
4703
|
+
onClick: () => m(O),
|
|
4689
4704
|
minW: "32px",
|
|
4690
4705
|
h: "32px",
|
|
4691
4706
|
fontSize: "xs",
|
|
4692
4707
|
borderRadius: "md",
|
|
4693
|
-
children:
|
|
4708
|
+
children: O
|
|
4694
4709
|
},
|
|
4695
|
-
|
|
4710
|
+
O
|
|
4696
4711
|
);
|
|
4697
4712
|
})
|
|
4698
4713
|
] }),
|
|
@@ -4705,7 +4720,7 @@ function Ml({
|
|
|
4705
4720
|
)
|
|
4706
4721
|
] });
|
|
4707
4722
|
}
|
|
4708
|
-
const
|
|
4723
|
+
const Ol = x(Ee.Root), $l = x(Ee.Label), Il = x(Ee.HelperText), kl = x(Ee.ErrorText), pr = ({
|
|
4709
4724
|
icon: e,
|
|
4710
4725
|
value: t,
|
|
4711
4726
|
onChange: n,
|
|
@@ -4723,13 +4738,13 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4723
4738
|
min: v = 0,
|
|
4724
4739
|
max: m = 100,
|
|
4725
4740
|
step: b = 1
|
|
4726
|
-
}) => /* @__PURE__ */ s.jsxs(
|
|
4727
|
-
p && /* @__PURE__ */ s.jsx(
|
|
4728
|
-
/* @__PURE__ */ s.jsx(
|
|
4741
|
+
}) => /* @__PURE__ */ s.jsxs(Ol, { width: l, children: [
|
|
4742
|
+
p && /* @__PURE__ */ s.jsx($l, { children: a }),
|
|
4743
|
+
/* @__PURE__ */ s.jsx(_o, { startElement: e, children: /* @__PURE__ */ s.jsx(
|
|
4729
4744
|
Ht,
|
|
4730
4745
|
{
|
|
4731
4746
|
value: t,
|
|
4732
|
-
onChange: (
|
|
4747
|
+
onChange: (M) => n?.(M.target.value),
|
|
4733
4748
|
placeholder: r,
|
|
4734
4749
|
size: o,
|
|
4735
4750
|
type: h,
|
|
@@ -4741,9 +4756,9 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4741
4756
|
step: b
|
|
4742
4757
|
}
|
|
4743
4758
|
) }),
|
|
4744
|
-
d && /* @__PURE__ */ s.jsx(
|
|
4745
|
-
c && /* @__PURE__ */ s.jsx(
|
|
4746
|
-
] }),
|
|
4759
|
+
d && /* @__PURE__ */ s.jsx(kl, { fontSize: "xs", children: d }),
|
|
4760
|
+
c && /* @__PURE__ */ s.jsx(Il, { fontSize: "xs", children: c })
|
|
4761
|
+
] }), Al = x(Ee.Root), Ll = x(Ee.HelperText), zl = x(Ee.ErrorText), Nl = x(te.Root), Pl = x(te.Label), Fl = x(te.Control), Yl = x(te.Trigger), Wl = x(te.ValueText), Vl = x(te.IndicatorGroup), Hl = x(te.Indicator), Bl = x(te.Content), Ul = x(te.Item), Gl = x(te.ItemIndicator), ql = x(te.HiddenSelect), Xl = x(te.Positioner), Kl = ({
|
|
4747
4762
|
options: e = [],
|
|
4748
4763
|
label: t,
|
|
4749
4764
|
value: n,
|
|
@@ -4758,14 +4773,14 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4758
4773
|
errorText: d,
|
|
4759
4774
|
visible: p
|
|
4760
4775
|
}) => {
|
|
4761
|
-
const h =
|
|
4776
|
+
const h = G(() => Cr({
|
|
4762
4777
|
items: e
|
|
4763
4778
|
}), [e]), v = e.find((b) => b.value === n), m = (b) => {
|
|
4764
4779
|
b.preventDefault(), b.stopPropagation(), r?.(void 0);
|
|
4765
4780
|
};
|
|
4766
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4781
|
+
return /* @__PURE__ */ s.jsxs(Al, { disabled: u, required: f, children: [
|
|
4767
4782
|
/* @__PURE__ */ s.jsxs(
|
|
4768
|
-
|
|
4783
|
+
Nl,
|
|
4769
4784
|
{
|
|
4770
4785
|
collection: h,
|
|
4771
4786
|
variant: a,
|
|
@@ -4776,11 +4791,11 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4776
4791
|
r?.(b.value[0]);
|
|
4777
4792
|
},
|
|
4778
4793
|
children: [
|
|
4779
|
-
/* @__PURE__ */ s.jsx(
|
|
4780
|
-
p && /* @__PURE__ */ s.jsx(
|
|
4781
|
-
/* @__PURE__ */ s.jsxs(
|
|
4782
|
-
/* @__PURE__ */ s.jsx(
|
|
4783
|
-
/* @__PURE__ */ s.jsxs(
|
|
4794
|
+
/* @__PURE__ */ s.jsx(ql, {}),
|
|
4795
|
+
p && /* @__PURE__ */ s.jsx(Pl, { children: t }),
|
|
4796
|
+
/* @__PURE__ */ s.jsxs(Fl, { children: [
|
|
4797
|
+
/* @__PURE__ */ s.jsx(Yl, { children: /* @__PURE__ */ s.jsx(Wl, { placeholder: o, children: v?.displayValue ?? v?.label }) }),
|
|
4798
|
+
/* @__PURE__ */ s.jsxs(Vl, { children: [
|
|
4784
4799
|
n && !u && // 4. Wrap CloseButton to ensure it has its own layer
|
|
4785
4800
|
/* @__PURE__ */ s.jsx(
|
|
4786
4801
|
"div",
|
|
@@ -4801,20 +4816,20 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4801
4816
|
)
|
|
4802
4817
|
}
|
|
4803
4818
|
),
|
|
4804
|
-
/* @__PURE__ */ s.jsx(
|
|
4819
|
+
/* @__PURE__ */ s.jsx(Hl, {})
|
|
4805
4820
|
] })
|
|
4806
4821
|
] }),
|
|
4807
|
-
/* @__PURE__ */ s.jsx(
|
|
4822
|
+
/* @__PURE__ */ s.jsx(Xl, { children: /* @__PURE__ */ s.jsx(Bl, { children: h.items.map((b, M) => /* @__PURE__ */ s.jsxs(Ul, { item: b, children: [
|
|
4808
4823
|
b.label,
|
|
4809
|
-
/* @__PURE__ */ s.jsx(
|
|
4810
|
-
] },
|
|
4824
|
+
/* @__PURE__ */ s.jsx(Gl, {})
|
|
4825
|
+
] }, M)) }) })
|
|
4811
4826
|
]
|
|
4812
4827
|
}
|
|
4813
4828
|
),
|
|
4814
|
-
c && /* @__PURE__ */ s.jsx(
|
|
4815
|
-
d && /* @__PURE__ */ s.jsx(
|
|
4829
|
+
c && /* @__PURE__ */ s.jsx(Ll, { children: c }),
|
|
4830
|
+
d && /* @__PURE__ */ s.jsx(zl, { children: d })
|
|
4816
4831
|
] });
|
|
4817
|
-
},
|
|
4832
|
+
}, Jl = "FILTER_PRESETS_", ao = (e) => `${Jl}${e}`, In = (e) => {
|
|
4818
4833
|
if (typeof window > "u") return [];
|
|
4819
4834
|
const t = localStorage.getItem(ao(e));
|
|
4820
4835
|
try {
|
|
@@ -4824,13 +4839,13 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4824
4839
|
}
|
|
4825
4840
|
}, lo = (e, t) => {
|
|
4826
4841
|
typeof window > "u" || (localStorage.setItem(ao(e), JSON.stringify(t)), window.dispatchEvent(new Event("storage_updated")));
|
|
4827
|
-
},
|
|
4842
|
+
}, Zl = (e, t) => {
|
|
4828
4843
|
const n = In(e);
|
|
4829
4844
|
lo(e, [t, ...n]);
|
|
4830
|
-
},
|
|
4845
|
+
}, Ql = (e, t) => {
|
|
4831
4846
|
const n = In(e).filter((r) => r.id !== t);
|
|
4832
4847
|
lo(e, n);
|
|
4833
|
-
},
|
|
4848
|
+
}, ec = x(Re.Root), tc = x(Re.HiddenInput), nc = x(Re.Control), rc = x(mt.Root), oc = x(mt.Track), sc = x(mt.Range), ic = x(mt.Thumbs), ac = x(mt.Control), lc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4834
4849
|
const { attributes: r, listeners: o, setNodeRef: i, transform: l, transition: a } = Jr({
|
|
4835
4850
|
id: e.id
|
|
4836
4851
|
}), c = {
|
|
@@ -4857,14 +4872,14 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4857
4872
|
/* @__PURE__ */ s.jsxs(ge, { justify: "space-between", children: [
|
|
4858
4873
|
/* @__PURE__ */ s.jsx(J, { fontSize: "sm", children: "Visible" }),
|
|
4859
4874
|
/* @__PURE__ */ s.jsxs(
|
|
4860
|
-
|
|
4875
|
+
ec,
|
|
4861
4876
|
{
|
|
4862
4877
|
checked: e.visible,
|
|
4863
4878
|
size: "sm",
|
|
4864
4879
|
onCheckedChange: (u) => t?.(e.id, !!u.checked),
|
|
4865
4880
|
children: [
|
|
4866
|
-
/* @__PURE__ */ s.jsx(
|
|
4867
|
-
/* @__PURE__ */ s.jsx(
|
|
4881
|
+
/* @__PURE__ */ s.jsx(tc, {}),
|
|
4882
|
+
/* @__PURE__ */ s.jsx(nc, {})
|
|
4868
4883
|
]
|
|
4869
4884
|
}
|
|
4870
4885
|
)
|
|
@@ -4872,16 +4887,16 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4872
4887
|
/* @__PURE__ */ s.jsxs(ut, { align: "stretch", gap: 1, children: [
|
|
4873
4888
|
/* @__PURE__ */ s.jsx(J, { fontSize: "sm", children: "Size" }),
|
|
4874
4889
|
/* @__PURE__ */ s.jsx(
|
|
4875
|
-
|
|
4890
|
+
rc,
|
|
4876
4891
|
{
|
|
4877
4892
|
min: 1,
|
|
4878
4893
|
max: 5,
|
|
4879
4894
|
step: 0.5,
|
|
4880
4895
|
value: [e.size ?? 1],
|
|
4881
4896
|
onValueChange: (u) => n?.(e.id, u.value[0]),
|
|
4882
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
4883
|
-
/* @__PURE__ */ s.jsx(
|
|
4884
|
-
/* @__PURE__ */ s.jsx(
|
|
4897
|
+
children: /* @__PURE__ */ s.jsxs(ac, { children: [
|
|
4898
|
+
/* @__PURE__ */ s.jsx(oc, { children: /* @__PURE__ */ s.jsx(sc, {}) }),
|
|
4899
|
+
/* @__PURE__ */ s.jsx(ic, {})
|
|
4885
4900
|
] })
|
|
4886
4901
|
}
|
|
4887
4902
|
)
|
|
@@ -4889,7 +4904,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4889
4904
|
]
|
|
4890
4905
|
}
|
|
4891
4906
|
);
|
|
4892
|
-
},
|
|
4907
|
+
}, cc = x(Ae.Root), uc = x(Ae.Trigger), dc = x(Ae.Backdrop), fc = x(Ae.Positioner), hc = x(Ae.Content), gc = x(Ae.Header), pc = x(Ae.Title), vc = x(Ae.Body), mc = x(Ae.Footer), xc = x(Ae.CloseTrigger), bc = x(Bt.Root), yc = x(Bt.List), gn = x(Bt.Trigger), pn = x(Bt.Content), co = (e, t) => {
|
|
4893
4908
|
if (e.customComponent)
|
|
4894
4909
|
return e.customComponent;
|
|
4895
4910
|
switch (e.type) {
|
|
@@ -4908,7 +4923,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4908
4923
|
return /* @__PURE__ */ s.jsx(pr, { label: e.label, value: e.value, onChange: e.onChange });
|
|
4909
4924
|
case "checkbox":
|
|
4910
4925
|
return /* @__PURE__ */ s.jsx(
|
|
4911
|
-
|
|
4926
|
+
ll,
|
|
4912
4927
|
{
|
|
4913
4928
|
label: e.label,
|
|
4914
4929
|
value: e.value,
|
|
@@ -4917,7 +4932,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4917
4932
|
);
|
|
4918
4933
|
case "select":
|
|
4919
4934
|
return /* @__PURE__ */ s.jsx(
|
|
4920
|
-
|
|
4935
|
+
Kl,
|
|
4921
4936
|
{
|
|
4922
4937
|
label: e.label,
|
|
4923
4938
|
value: e.value,
|
|
@@ -4934,7 +4949,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4934
4949
|
// onChange={filter.onChange as (v: string | undefined) => void}
|
|
4935
4950
|
// />
|
|
4936
4951
|
/* @__PURE__ */ s.jsx(
|
|
4937
|
-
|
|
4952
|
+
Tl,
|
|
4938
4953
|
{
|
|
4939
4954
|
value: e.value,
|
|
4940
4955
|
onChange: e.onChange,
|
|
@@ -4945,7 +4960,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4945
4960
|
);
|
|
4946
4961
|
case "date-range":
|
|
4947
4962
|
return /* @__PURE__ */ s.jsx(
|
|
4948
|
-
|
|
4963
|
+
Cl,
|
|
4949
4964
|
{
|
|
4950
4965
|
startDate: e.startDate ? new Date(e.startDate) : void 0,
|
|
4951
4966
|
endDate: e.endDate ? new Date(e.endDate) : void 0,
|
|
@@ -4956,7 +4971,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4956
4971
|
);
|
|
4957
4972
|
case "combobox":
|
|
4958
4973
|
return /* @__PURE__ */ s.jsx(
|
|
4959
|
-
|
|
4974
|
+
ml,
|
|
4960
4975
|
{
|
|
4961
4976
|
visible: !0,
|
|
4962
4977
|
label: e.label,
|
|
@@ -4968,7 +4983,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4968
4983
|
default:
|
|
4969
4984
|
return null;
|
|
4970
4985
|
}
|
|
4971
|
-
},
|
|
4986
|
+
}, wc = ({
|
|
4972
4987
|
filterDrawerSize: e = "sm",
|
|
4973
4988
|
onVisibilityChange: t,
|
|
4974
4989
|
onSizeChange: n,
|
|
@@ -4994,37 +5009,37 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
4994
5009
|
const v = prompt("Preset name?");
|
|
4995
5010
|
if (!v) return;
|
|
4996
5011
|
const m = o.reduce(
|
|
4997
|
-
(b,
|
|
5012
|
+
(b, M) => (b[M.id] = M.value, b),
|
|
4998
5013
|
{}
|
|
4999
5014
|
);
|
|
5000
|
-
|
|
5001
|
-
id:
|
|
5015
|
+
Zl(i, {
|
|
5016
|
+
id: rl(),
|
|
5002
5017
|
name: v,
|
|
5003
5018
|
date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
5004
5019
|
values: m
|
|
5005
5020
|
});
|
|
5006
5021
|
};
|
|
5007
|
-
return /* @__PURE__ */ s.jsx(ge, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(
|
|
5008
|
-
/* @__PURE__ */ s.jsx(
|
|
5009
|
-
/* @__PURE__ */ s.jsx(
|
|
5022
|
+
return /* @__PURE__ */ s.jsx(ge, { wrap: "wrap", children: /* @__PURE__ */ s.jsxs(cc, { size: e, open: u, onOpenChange: f, children: [
|
|
5023
|
+
/* @__PURE__ */ s.jsx(uc, { asChild: !0, children: /* @__PURE__ */ s.jsxs(me, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
5024
|
+
/* @__PURE__ */ s.jsx(ha, { size: 16 }),
|
|
5010
5025
|
"Filters"
|
|
5011
5026
|
] }) }),
|
|
5012
5027
|
/* @__PURE__ */ s.jsxs(et, { children: [
|
|
5013
|
-
/* @__PURE__ */ s.jsx(
|
|
5014
|
-
/* @__PURE__ */ s.jsx(
|
|
5015
|
-
/* @__PURE__ */ s.jsx(
|
|
5016
|
-
/* @__PURE__ */ s.jsx(
|
|
5017
|
-
/* @__PURE__ */ s.jsxs(
|
|
5028
|
+
/* @__PURE__ */ s.jsx(dc, {}),
|
|
5029
|
+
/* @__PURE__ */ s.jsx(fc, { children: /* @__PURE__ */ s.jsxs(hc, { children: [
|
|
5030
|
+
/* @__PURE__ */ s.jsx(gc, { children: /* @__PURE__ */ s.jsx(pc, { children: "Filters" }) }),
|
|
5031
|
+
/* @__PURE__ */ s.jsx(vc, { overflowY: "auto", pt: 1, children: /* @__PURE__ */ s.jsxs(bc, { defaultValue: "view", children: [
|
|
5032
|
+
/* @__PURE__ */ s.jsxs(yc, { mb: 4, children: [
|
|
5018
5033
|
/* @__PURE__ */ s.jsxs(gn, { value: "view", children: [
|
|
5019
|
-
/* @__PURE__ */ s.jsx(
|
|
5034
|
+
/* @__PURE__ */ s.jsx(va, { size: 16 }),
|
|
5020
5035
|
"Edit"
|
|
5021
5036
|
] }),
|
|
5022
5037
|
/* @__PURE__ */ s.jsxs(gn, { value: "settings", children: [
|
|
5023
|
-
/* @__PURE__ */ s.jsx(
|
|
5038
|
+
/* @__PURE__ */ s.jsx(ya, { size: 16 }),
|
|
5024
5039
|
"Settings"
|
|
5025
5040
|
] }),
|
|
5026
5041
|
/* @__PURE__ */ s.jsxs(gn, { value: "presets", children: [
|
|
5027
|
-
/* @__PURE__ */ s.jsx(
|
|
5042
|
+
/* @__PURE__ */ s.jsx(ea, { size: 16 }),
|
|
5028
5043
|
"Presets"
|
|
5029
5044
|
] })
|
|
5030
5045
|
] }),
|
|
@@ -5050,7 +5065,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
5050
5065
|
collisionDetection: Or,
|
|
5051
5066
|
onDragEnd: ({ active: v, over: m }) => {
|
|
5052
5067
|
if (!m || v.id === m.id) return;
|
|
5053
|
-
const b = o.findIndex((j) => j.id === v.id),
|
|
5068
|
+
const b = o.findIndex((j) => j.id === v.id), M = o.findIndex((j) => j.id === m.id), D = Jt(o, b, M);
|
|
5054
5069
|
c?.(D);
|
|
5055
5070
|
},
|
|
5056
5071
|
children: /* @__PURE__ */ s.jsx(
|
|
@@ -5059,7 +5074,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
5059
5074
|
items: o.map((v) => v.id),
|
|
5060
5075
|
strategy: ci,
|
|
5061
5076
|
children: o.map((v) => /* @__PURE__ */ s.jsx(
|
|
5062
|
-
|
|
5077
|
+
lc,
|
|
5063
5078
|
{
|
|
5064
5079
|
filter: v,
|
|
5065
5080
|
onVisibilityChange: t,
|
|
@@ -5108,8 +5123,8 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
5108
5123
|
size: "xs",
|
|
5109
5124
|
"aria-label": "Delete preset",
|
|
5110
5125
|
variant: "ghost",
|
|
5111
|
-
onClick: () =>
|
|
5112
|
-
children: /* @__PURE__ */ s.jsx(
|
|
5126
|
+
onClick: () => Ql(i, v.id),
|
|
5127
|
+
children: /* @__PURE__ */ s.jsx(ca, { size: 14 })
|
|
5113
5128
|
}
|
|
5114
5129
|
)
|
|
5115
5130
|
] })
|
|
@@ -5120,11 +5135,11 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
5120
5135
|
/* @__PURE__ */ s.jsx(Oe, { size: "sm", colorScheme: "blue", onClick: h, children: "Save Current Filters" })
|
|
5121
5136
|
] }) })
|
|
5122
5137
|
] }) }),
|
|
5123
|
-
/* @__PURE__ */ s.jsx(
|
|
5138
|
+
/* @__PURE__ */ s.jsx(mc, { justify: "space-between", children: /* @__PURE__ */ s.jsx(xc, { asChild: !0, children: /* @__PURE__ */ s.jsx(vt, {}) }) })
|
|
5124
5139
|
] }) })
|
|
5125
5140
|
] })
|
|
5126
5141
|
] }) });
|
|
5127
|
-
},
|
|
5142
|
+
}, Tu = ({
|
|
5128
5143
|
title: e,
|
|
5129
5144
|
filters: t,
|
|
5130
5145
|
onVisibilityChange: n,
|
|
@@ -5152,7 +5167,7 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
5152
5167
|
h.id
|
|
5153
5168
|
)),
|
|
5154
5169
|
/* @__PURE__ */ s.jsx(
|
|
5155
|
-
|
|
5170
|
+
wc,
|
|
5156
5171
|
{
|
|
5157
5172
|
filterDrawerSize: f,
|
|
5158
5173
|
onVisibilityChange: n,
|
|
@@ -5172,15 +5187,15 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
5172
5187
|
)
|
|
5173
5188
|
] })
|
|
5174
5189
|
] });
|
|
5175
|
-
},
|
|
5190
|
+
}, Ou = (e, t) => {
|
|
5176
5191
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
5177
|
-
},
|
|
5192
|
+
}, $u = (e) => {
|
|
5178
5193
|
try {
|
|
5179
5194
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
5180
5195
|
} catch {
|
|
5181
5196
|
return [];
|
|
5182
5197
|
}
|
|
5183
|
-
},
|
|
5198
|
+
}, Iu = ({
|
|
5184
5199
|
onClick: e,
|
|
5185
5200
|
size: t = "xs",
|
|
5186
5201
|
variant: n = "solid",
|
|
@@ -5215,8 +5230,8 @@ const _l = x(Ee.Root), Tl = x(Ee.Label), Ol = x(Ee.HelperText), $l = x(Ee.ErrorT
|
|
|
5215
5230
|
i
|
|
5216
5231
|
] })
|
|
5217
5232
|
}
|
|
5218
|
-
),
|
|
5219
|
-
function
|
|
5233
|
+
), Sc = x(K.Root), Cc = x(K.Backdrop), Dc = x(K.Positioner), jc = x(K.Content), Rc = x(K.Header), Ec = x(K.Body), _c = x(K.Footer), Mc = x(K.Title), Tc = x(K.CloseTrigger);
|
|
5234
|
+
function ku({
|
|
5220
5235
|
open: e,
|
|
5221
5236
|
onClose: t,
|
|
5222
5237
|
onConfirm: n,
|
|
@@ -5228,16 +5243,16 @@ function $u({
|
|
|
5228
5243
|
isLoading: c = !1,
|
|
5229
5244
|
confirmButtonColorScheme: u = "#4169e1"
|
|
5230
5245
|
}) {
|
|
5231
|
-
return /* @__PURE__ */ s.jsx(
|
|
5232
|
-
/* @__PURE__ */ s.jsx(
|
|
5233
|
-
/* @__PURE__ */ s.jsx(
|
|
5234
|
-
/* @__PURE__ */ s.jsx(
|
|
5235
|
-
/* @__PURE__ */ s.jsx(
|
|
5246
|
+
return /* @__PURE__ */ s.jsx(Sc, { open: e, placement: "center", onOpenChange: (f) => !f.open && t(), children: /* @__PURE__ */ s.jsxs(et, { children: [
|
|
5247
|
+
/* @__PURE__ */ s.jsx(Cc, {}),
|
|
5248
|
+
/* @__PURE__ */ s.jsx(Dc, { children: /* @__PURE__ */ s.jsxs(jc, { maxW: "480px", children: [
|
|
5249
|
+
/* @__PURE__ */ s.jsx(Rc, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ s.jsx(Mc, { children: r }) }),
|
|
5250
|
+
/* @__PURE__ */ s.jsx(Ec, { p: 6, children: /* @__PURE__ */ s.jsxs(Nt, { gap: 4, align: "center", textAlign: "center", children: [
|
|
5236
5251
|
/* @__PURE__ */ s.jsx(he, { color: "orange.500", children: a ?? /* @__PURE__ */ s.jsx(so, { size: 40 }) }),
|
|
5237
5252
|
/* @__PURE__ */ s.jsx(J, { fontSize: "sm", color: "gray.600", children: o })
|
|
5238
5253
|
] }) }),
|
|
5239
5254
|
/* @__PURE__ */ s.jsxs(
|
|
5240
|
-
|
|
5255
|
+
_c,
|
|
5241
5256
|
{
|
|
5242
5257
|
justifyContent: "flex-end",
|
|
5243
5258
|
gap: 2,
|
|
@@ -5260,12 +5275,12 @@ function $u({
|
|
|
5260
5275
|
]
|
|
5261
5276
|
}
|
|
5262
5277
|
),
|
|
5263
|
-
/* @__PURE__ */ s.jsx(
|
|
5278
|
+
/* @__PURE__ */ s.jsx(Tc, { asChild: !0, children: /* @__PURE__ */ s.jsx(vt, { size: "sm" }) })
|
|
5264
5279
|
] }) })
|
|
5265
5280
|
] }) });
|
|
5266
5281
|
}
|
|
5267
|
-
const
|
|
5268
|
-
function
|
|
5282
|
+
const Oc = x(K.Root), $c = x(K.Backdrop), Ic = x(K.Positioner), kc = x(K.Content), Ac = x(K.Header), Lc = x(K.Body), zc = x(K.Footer), Nc = x(K.Title), Pc = x(K.CloseTrigger);
|
|
5283
|
+
function Au({
|
|
5269
5284
|
open: e,
|
|
5270
5285
|
onClose: t,
|
|
5271
5286
|
onConfirm: n,
|
|
@@ -5277,7 +5292,7 @@ function Iu({
|
|
|
5277
5292
|
}) {
|
|
5278
5293
|
const [c, u] = B(""), f = c === i;
|
|
5279
5294
|
return /* @__PURE__ */ s.jsx(
|
|
5280
|
-
|
|
5295
|
+
Oc,
|
|
5281
5296
|
{
|
|
5282
5297
|
open: e,
|
|
5283
5298
|
placement: "center",
|
|
@@ -5285,11 +5300,11 @@ function Iu({
|
|
|
5285
5300
|
!d.open && t(), u("");
|
|
5286
5301
|
},
|
|
5287
5302
|
children: /* @__PURE__ */ s.jsxs(et, { children: [
|
|
5288
|
-
/* @__PURE__ */ s.jsx(
|
|
5289
|
-
/* @__PURE__ */ s.jsx(
|
|
5290
|
-
/* @__PURE__ */ s.jsx(
|
|
5303
|
+
/* @__PURE__ */ s.jsx($c, {}),
|
|
5304
|
+
/* @__PURE__ */ s.jsx(Ic, { children: /* @__PURE__ */ s.jsxs(kc, { maxW: "550px", children: [
|
|
5305
|
+
/* @__PURE__ */ s.jsx(Ac, { borderBottom: "1px solid", borderColor: "#d3d3d3", children: /* @__PURE__ */ s.jsx(Nc, { color: "red.600", children: r }) }),
|
|
5291
5306
|
/* @__PURE__ */ s.jsx(
|
|
5292
|
-
|
|
5307
|
+
Lc,
|
|
5293
5308
|
{
|
|
5294
5309
|
p: 2,
|
|
5295
5310
|
style: {
|
|
@@ -5328,7 +5343,7 @@ function Iu({
|
|
|
5328
5343
|
}
|
|
5329
5344
|
),
|
|
5330
5345
|
/* @__PURE__ */ s.jsxs(
|
|
5331
|
-
|
|
5346
|
+
zc,
|
|
5332
5347
|
{
|
|
5333
5348
|
justifyContent: "flex-end",
|
|
5334
5349
|
gap: 2,
|
|
@@ -5362,20 +5377,20 @@ function Iu({
|
|
|
5362
5377
|
]
|
|
5363
5378
|
}
|
|
5364
5379
|
),
|
|
5365
|
-
/* @__PURE__ */ s.jsx(
|
|
5380
|
+
/* @__PURE__ */ s.jsx(Pc, { asChild: !0, children: /* @__PURE__ */ s.jsx(vt, { size: "sm" }) })
|
|
5366
5381
|
] }) })
|
|
5367
5382
|
] })
|
|
5368
5383
|
}
|
|
5369
5384
|
);
|
|
5370
5385
|
}
|
|
5371
|
-
const
|
|
5372
|
-
function
|
|
5386
|
+
const Fc = ({ children: e }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e }), Yc = ({ children: e }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e }), Lu = Oe, Wc = x(K.Root), Vc = x(K.Backdrop), Hc = x(K.Positioner), Bc = x(K.Content), Uc = x(K.Header), Gc = x(K.Body), qc = x(K.Footer), Xc = x(K.Title), Kc = x(K.CloseTrigger);
|
|
5387
|
+
function Jc(e) {
|
|
5373
5388
|
let t = null, n = null;
|
|
5374
|
-
return
|
|
5375
|
-
|
|
5389
|
+
return ne.Children.forEach(e, (r) => {
|
|
5390
|
+
ne.isValidElement(r) && (r.type === Fc && (t = r.props.children), r.type === Yc && (n = r.props.children));
|
|
5376
5391
|
}), { body: t, actions: n };
|
|
5377
5392
|
}
|
|
5378
|
-
const
|
|
5393
|
+
const zu = ({
|
|
5379
5394
|
open: e,
|
|
5380
5395
|
onClose: t,
|
|
5381
5396
|
title: n,
|
|
@@ -5385,17 +5400,17 @@ const Au = ({
|
|
|
5385
5400
|
refetch: l,
|
|
5386
5401
|
loading: a = !1
|
|
5387
5402
|
}) => {
|
|
5388
|
-
const { body: c, actions: u } =
|
|
5403
|
+
const { body: c, actions: u } = Jc(r);
|
|
5389
5404
|
return /* @__PURE__ */ s.jsx(
|
|
5390
|
-
|
|
5405
|
+
Wc,
|
|
5391
5406
|
{
|
|
5392
5407
|
open: e,
|
|
5393
5408
|
onOpenChange: (f) => !f.open && t(),
|
|
5394
5409
|
placement: i ?? "center",
|
|
5395
5410
|
children: /* @__PURE__ */ s.jsxs(et, { children: [
|
|
5396
|
-
/* @__PURE__ */ s.jsx(
|
|
5397
|
-
/* @__PURE__ */ s.jsx(
|
|
5398
|
-
|
|
5411
|
+
/* @__PURE__ */ s.jsx(Vc, { bg: "blackAlpha.400" }),
|
|
5412
|
+
/* @__PURE__ */ s.jsx(Hc, { children: /* @__PURE__ */ s.jsxs(
|
|
5413
|
+
Bc,
|
|
5399
5414
|
{
|
|
5400
5415
|
w: o ?? "560px",
|
|
5401
5416
|
maxW: o ?? "560px",
|
|
@@ -5404,7 +5419,7 @@ const Au = ({
|
|
|
5404
5419
|
boxShadow: "lg",
|
|
5405
5420
|
children: [
|
|
5406
5421
|
/* @__PURE__ */ s.jsx(
|
|
5407
|
-
|
|
5422
|
+
Uc,
|
|
5408
5423
|
{
|
|
5409
5424
|
px: "20px",
|
|
5410
5425
|
py: "16px",
|
|
@@ -5412,15 +5427,15 @@ const Au = ({
|
|
|
5412
5427
|
borderBottom: "1px solid",
|
|
5413
5428
|
borderColor: "gray.200",
|
|
5414
5429
|
children: /* @__PURE__ */ s.jsxs(nn, { align: "center", justify: "space-between", children: [
|
|
5415
|
-
/* @__PURE__ */ s.jsx(
|
|
5416
|
-
/* @__PURE__ */ s.jsx(
|
|
5417
|
-
l && /* @__PURE__ */ s.jsx(
|
|
5430
|
+
/* @__PURE__ */ s.jsx(Xc, { fontSize: "16px", fontWeight: "600", children: n }),
|
|
5431
|
+
/* @__PURE__ */ s.jsx(Kc, { asChild: !0, children: /* @__PURE__ */ s.jsx(vt, { size: "sm" }) }),
|
|
5432
|
+
l && /* @__PURE__ */ s.jsx(iu, { label: "Refresh", refetch: l, isLoading: a })
|
|
5418
5433
|
] })
|
|
5419
5434
|
}
|
|
5420
5435
|
),
|
|
5421
|
-
c && /* @__PURE__ */ s.jsx(
|
|
5436
|
+
c && /* @__PURE__ */ s.jsx(Gc, { px: "20px", py: "16px", bg: "#F8FAFC", type: "submit", children: /* @__PURE__ */ s.jsx(nn, { direction: "column", gap: "16px", children: c }) }),
|
|
5422
5437
|
u && /* @__PURE__ */ s.jsx(
|
|
5423
|
-
|
|
5438
|
+
qc,
|
|
5424
5439
|
{
|
|
5425
5440
|
px: "20px",
|
|
5426
5441
|
py: "16px",
|
|
@@ -5436,7 +5451,7 @@ const Au = ({
|
|
|
5436
5451
|
] })
|
|
5437
5452
|
}
|
|
5438
5453
|
);
|
|
5439
|
-
},
|
|
5454
|
+
}, Zc = x(Ee.Root), Qc = x(Ee.Label), eu = x(Ee.HelperText), tu = x(Ee.ErrorText), nu = x(Ut.Input), ru = x(Ut.Control), ou = x(Ut.HiddenInput), su = x(Ut.Root), Nu = ({
|
|
5440
5455
|
value: e,
|
|
5441
5456
|
onChange: t,
|
|
5442
5457
|
length: n = 4,
|
|
@@ -5449,29 +5464,29 @@ const Au = ({
|
|
|
5449
5464
|
visible: u = !0
|
|
5450
5465
|
}) => {
|
|
5451
5466
|
const f = Array.from({ length: n }).map((d, p) => e?.[p] ?? "");
|
|
5452
|
-
return /* @__PURE__ */ s.jsxs(
|
|
5453
|
-
u && i && /* @__PURE__ */ s.jsxs(
|
|
5467
|
+
return /* @__PURE__ */ s.jsxs(Zc, { children: [
|
|
5468
|
+
u && i && /* @__PURE__ */ s.jsxs(Qc, { children: [
|
|
5454
5469
|
i,
|
|
5455
5470
|
c && " *"
|
|
5456
5471
|
] }),
|
|
5457
5472
|
/* @__PURE__ */ s.jsxs(
|
|
5458
|
-
|
|
5473
|
+
su,
|
|
5459
5474
|
{
|
|
5460
5475
|
value: f,
|
|
5461
5476
|
onValueChange: (d) => t?.(d.value.join("")),
|
|
5462
5477
|
disabled: o,
|
|
5463
5478
|
size: r,
|
|
5464
5479
|
children: [
|
|
5465
|
-
/* @__PURE__ */ s.jsx(
|
|
5466
|
-
/* @__PURE__ */ s.jsx(
|
|
5480
|
+
/* @__PURE__ */ s.jsx(ou, {}),
|
|
5481
|
+
/* @__PURE__ */ s.jsx(ru, { children: /* @__PURE__ */ s.jsx(ge, { children: Array.from({ length: n }).map((d, p) => /* @__PURE__ */ s.jsx(nu, { index: p }, p)) }) })
|
|
5467
5482
|
]
|
|
5468
5483
|
}
|
|
5469
5484
|
),
|
|
5470
|
-
a && /* @__PURE__ */ s.jsx(
|
|
5471
|
-
l && !a && /* @__PURE__ */ s.jsx(
|
|
5485
|
+
a && /* @__PURE__ */ s.jsx(tu, { fontSize: "xs", children: a }),
|
|
5486
|
+
l && !a && /* @__PURE__ */ s.jsx(eu, { fontSize: "xs", children: l })
|
|
5472
5487
|
] });
|
|
5473
5488
|
};
|
|
5474
|
-
function
|
|
5489
|
+
function iu({
|
|
5475
5490
|
refetch: e,
|
|
5476
5491
|
isLoading: t = !1,
|
|
5477
5492
|
label: n = "Refresh"
|
|
@@ -5494,7 +5509,7 @@ function ou({
|
|
|
5494
5509
|
onClick: i,
|
|
5495
5510
|
ml: 2,
|
|
5496
5511
|
children: /* @__PURE__ */ s.jsx(
|
|
5497
|
-
|
|
5512
|
+
xa,
|
|
5498
5513
|
{
|
|
5499
5514
|
size: 14,
|
|
5500
5515
|
style: {
|
|
@@ -5505,72 +5520,72 @@ function ou({
|
|
|
5505
5520
|
}
|
|
5506
5521
|
);
|
|
5507
5522
|
}
|
|
5508
|
-
var It = { exports: {} },
|
|
5509
|
-
function
|
|
5523
|
+
var It = { exports: {} }, au = It.exports, vr;
|
|
5524
|
+
function lu() {
|
|
5510
5525
|
return vr || (vr = 1, (function(e, t) {
|
|
5511
5526
|
(function(n, r) {
|
|
5512
5527
|
e.exports = r();
|
|
5513
|
-
})(
|
|
5514
|
-
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", d = "month", p = "quarter", h = "year", v = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
5528
|
+
})(au, (function() {
|
|
5529
|
+
var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", l = "second", a = "minute", c = "hour", u = "day", f = "week", d = "month", p = "quarter", h = "year", v = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|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(S) {
|
|
5515
5530
|
var y = ["th", "st", "nd", "rd"], w = S % 100;
|
|
5516
5531
|
return "[" + S + (y[(w - 20) % 10] || y[w] || y[0]) + "]";
|
|
5517
5532
|
} }, j = function(S, y, w) {
|
|
5518
5533
|
var C = String(S);
|
|
5519
5534
|
return !C || C.length >= y ? S : "" + Array(y + 1 - C.length).join(w) + S;
|
|
5520
|
-
},
|
|
5535
|
+
}, O = { s: j, z: function(S) {
|
|
5521
5536
|
var y = -S.utcOffset(), w = Math.abs(y), C = Math.floor(w / 60), R = w % 60;
|
|
5522
5537
|
return (y <= 0 ? "+" : "-") + j(C, 2, "0") + ":" + j(R, 2, "0");
|
|
5523
5538
|
}, m: function S(y, w) {
|
|
5524
5539
|
if (y.date() < w.date()) return -S(w, y);
|
|
5525
|
-
var C = 12 * (w.year() - y.year()) + (w.month() - y.month()), R = y.clone().add(C, d),
|
|
5526
|
-
return +(-(C + (w - R) / (
|
|
5540
|
+
var C = 12 * (w.year() - y.year()) + (w.month() - y.month()), R = y.clone().add(C, d), I = w - R < 0, N = y.clone().add(C + (I ? -1 : 1), d);
|
|
5541
|
+
return +(-(C + (w - R) / (I ? R - N : N - R)) || 0);
|
|
5527
5542
|
}, a: function(S) {
|
|
5528
5543
|
return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
|
|
5529
5544
|
}, p: function(S) {
|
|
5530
5545
|
return { M: d, y: h, w: f, d: u, D: v, h: c, m: a, s: l, ms: i, Q: p }[S] || String(S || "").toLowerCase().replace(/s$/, "");
|
|
5531
5546
|
}, u: function(S) {
|
|
5532
5547
|
return S === void 0;
|
|
5533
|
-
} },
|
|
5534
|
-
|
|
5535
|
-
var
|
|
5536
|
-
return S instanceof
|
|
5548
|
+
} }, T = "en", _ = {};
|
|
5549
|
+
_[T] = D;
|
|
5550
|
+
var k = "$isDayjsObject", L = function(S) {
|
|
5551
|
+
return S instanceof P || !(!S || !S[k]);
|
|
5537
5552
|
}, H = function S(y, w, C) {
|
|
5538
5553
|
var R;
|
|
5539
|
-
if (!y) return
|
|
5554
|
+
if (!y) return T;
|
|
5540
5555
|
if (typeof y == "string") {
|
|
5541
|
-
var
|
|
5542
|
-
|
|
5543
|
-
var
|
|
5544
|
-
if (!R &&
|
|
5556
|
+
var I = y.toLowerCase();
|
|
5557
|
+
_[I] && (R = I), w && (_[I] = w, R = I);
|
|
5558
|
+
var N = y.split("-");
|
|
5559
|
+
if (!R && N.length > 1) return S(N[0]);
|
|
5545
5560
|
} else {
|
|
5546
5561
|
var g = y.name;
|
|
5547
|
-
|
|
5562
|
+
_[g] = y, R = g;
|
|
5548
5563
|
}
|
|
5549
|
-
return !C && R && (
|
|
5564
|
+
return !C && R && (T = R), R || !C && T;
|
|
5550
5565
|
}, F = function(S, y) {
|
|
5551
|
-
if (
|
|
5566
|
+
if (L(S)) return S.clone();
|
|
5552
5567
|
var w = typeof y == "object" ? y : {};
|
|
5553
|
-
return w.date = S, w.args = arguments, new
|
|
5554
|
-
},
|
|
5555
|
-
|
|
5568
|
+
return w.date = S, w.args = arguments, new P(w);
|
|
5569
|
+
}, A = O;
|
|
5570
|
+
A.l = H, A.i = L, A.w = function(S, y) {
|
|
5556
5571
|
return F(S, { locale: y.$L, utc: y.$u, x: y.$x, $offset: y.$offset });
|
|
5557
5572
|
};
|
|
5558
|
-
var
|
|
5573
|
+
var P = (function() {
|
|
5559
5574
|
function S(w) {
|
|
5560
|
-
this.$L = H(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[
|
|
5575
|
+
this.$L = H(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[k] = !0;
|
|
5561
5576
|
}
|
|
5562
5577
|
var y = S.prototype;
|
|
5563
5578
|
return y.parse = function(w) {
|
|
5564
5579
|
this.$d = (function(C) {
|
|
5565
|
-
var R = C.date,
|
|
5580
|
+
var R = C.date, I = C.utc;
|
|
5566
5581
|
if (R === null) return /* @__PURE__ */ new Date(NaN);
|
|
5567
|
-
if (
|
|
5582
|
+
if (A.u(R)) return /* @__PURE__ */ new Date();
|
|
5568
5583
|
if (R instanceof Date) return new Date(R);
|
|
5569
5584
|
if (typeof R == "string" && !/Z$/i.test(R)) {
|
|
5570
|
-
var
|
|
5571
|
-
if (
|
|
5572
|
-
var g =
|
|
5573
|
-
return
|
|
5585
|
+
var N = R.match(b);
|
|
5586
|
+
if (N) {
|
|
5587
|
+
var g = N[2] - 1 || 0, E = (N[7] || "0").substring(0, 3);
|
|
5588
|
+
return I ? new Date(Date.UTC(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, E)) : new Date(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, E);
|
|
5574
5589
|
}
|
|
5575
5590
|
}
|
|
5576
5591
|
return new Date(R);
|
|
@@ -5579,7 +5594,7 @@ function iu() {
|
|
|
5579
5594
|
var w = this.$d;
|
|
5580
5595
|
this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
|
|
5581
5596
|
}, y.$utils = function() {
|
|
5582
|
-
return
|
|
5597
|
+
return A;
|
|
5583
5598
|
}, y.isValid = function() {
|
|
5584
5599
|
return this.$d.toString() !== m;
|
|
5585
5600
|
}, y.isSame = function(w, C) {
|
|
@@ -5590,26 +5605,26 @@ function iu() {
|
|
|
5590
5605
|
}, y.isBefore = function(w, C) {
|
|
5591
5606
|
return this.endOf(C) < F(w);
|
|
5592
5607
|
}, y.$g = function(w, C, R) {
|
|
5593
|
-
return
|
|
5608
|
+
return A.u(w) ? this[C] : this.set(R, w);
|
|
5594
5609
|
}, y.unix = function() {
|
|
5595
5610
|
return Math.floor(this.valueOf() / 1e3);
|
|
5596
5611
|
}, y.valueOf = function() {
|
|
5597
5612
|
return this.$d.getTime();
|
|
5598
5613
|
}, y.startOf = function(w, C) {
|
|
5599
|
-
var R = this,
|
|
5600
|
-
var ve =
|
|
5601
|
-
return
|
|
5602
|
-
}, E = function(
|
|
5603
|
-
return
|
|
5604
|
-
},
|
|
5605
|
-
switch (
|
|
5614
|
+
var R = this, I = !!A.u(C) || C, N = A.p(w), g = function(oe, W) {
|
|
5615
|
+
var ve = A.w(R.$u ? Date.UTC(R.$y, W, oe) : new Date(R.$y, W, oe), R);
|
|
5616
|
+
return I ? ve : ve.endOf(u);
|
|
5617
|
+
}, E = function(oe, W) {
|
|
5618
|
+
return A.w(R.toDate()[oe].apply(R.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), R);
|
|
5619
|
+
}, z = this.$W, Y = this.$M, Z = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
5620
|
+
switch (N) {
|
|
5606
5621
|
case h:
|
|
5607
|
-
return
|
|
5622
|
+
return I ? g(1, 0) : g(31, 11);
|
|
5608
5623
|
case d:
|
|
5609
|
-
return
|
|
5624
|
+
return I ? g(1, Y) : g(0, Y + 1);
|
|
5610
5625
|
case f:
|
|
5611
|
-
var U = this.$locale().weekStart || 0,
|
|
5612
|
-
return g(
|
|
5626
|
+
var U = this.$locale().weekStart || 0, re = (z < U ? z + 7 : z) - U;
|
|
5627
|
+
return g(I ? Z - re : Z + (6 - re), Y);
|
|
5613
5628
|
case u:
|
|
5614
5629
|
case v:
|
|
5615
5630
|
return E(Q + "Hours", 0);
|
|
@@ -5625,61 +5640,61 @@ function iu() {
|
|
|
5625
5640
|
}, y.endOf = function(w) {
|
|
5626
5641
|
return this.startOf(w, !1);
|
|
5627
5642
|
}, y.$set = function(w, C) {
|
|
5628
|
-
var R,
|
|
5629
|
-
if (
|
|
5630
|
-
var
|
|
5631
|
-
|
|
5643
|
+
var R, I = A.p(w), N = "set" + (this.$u ? "UTC" : ""), g = (R = {}, R[u] = N + "Date", R[v] = N + "Date", R[d] = N + "Month", R[h] = N + "FullYear", R[c] = N + "Hours", R[a] = N + "Minutes", R[l] = N + "Seconds", R[i] = N + "Milliseconds", R)[I], E = I === u ? this.$D + (C - this.$W) : C;
|
|
5644
|
+
if (I === d || I === h) {
|
|
5645
|
+
var z = this.clone().set(v, 1);
|
|
5646
|
+
z.$d[g](E), z.init(), this.$d = z.set(v, Math.min(this.$D, z.daysInMonth())).$d;
|
|
5632
5647
|
} else g && this.$d[g](E);
|
|
5633
5648
|
return this.init(), this;
|
|
5634
5649
|
}, y.set = function(w, C) {
|
|
5635
5650
|
return this.clone().$set(w, C);
|
|
5636
5651
|
}, y.get = function(w) {
|
|
5637
|
-
return this[
|
|
5652
|
+
return this[A.p(w)]();
|
|
5638
5653
|
}, y.add = function(w, C) {
|
|
5639
|
-
var R,
|
|
5654
|
+
var R, I = this;
|
|
5640
5655
|
w = Number(w);
|
|
5641
|
-
var
|
|
5642
|
-
var Z = F(
|
|
5643
|
-
return
|
|
5656
|
+
var N = A.p(C), g = function(Y) {
|
|
5657
|
+
var Z = F(I);
|
|
5658
|
+
return A.w(Z.date(Z.date() + Math.round(Y * w)), I);
|
|
5644
5659
|
};
|
|
5645
|
-
if (
|
|
5646
|
-
if (
|
|
5647
|
-
if (
|
|
5648
|
-
if (
|
|
5649
|
-
var E = (R = {}, R[a] = r, R[c] = o, R[l] = n, R)[
|
|
5650
|
-
return
|
|
5660
|
+
if (N === d) return this.set(d, this.$M + w);
|
|
5661
|
+
if (N === h) return this.set(h, this.$y + w);
|
|
5662
|
+
if (N === u) return g(1);
|
|
5663
|
+
if (N === f) return g(7);
|
|
5664
|
+
var E = (R = {}, R[a] = r, R[c] = o, R[l] = n, R)[N] || 1, z = this.$d.getTime() + w * E;
|
|
5665
|
+
return A.w(z, this);
|
|
5651
5666
|
}, y.subtract = function(w, C) {
|
|
5652
5667
|
return this.add(-1 * w, C);
|
|
5653
5668
|
}, y.format = function(w) {
|
|
5654
5669
|
var C = this, R = this.$locale();
|
|
5655
5670
|
if (!this.isValid()) return R.invalidDate || m;
|
|
5656
|
-
var
|
|
5657
|
-
return W && (W[ve] || W(C,
|
|
5658
|
-
},
|
|
5659
|
-
return
|
|
5660
|
-
},
|
|
5671
|
+
var I = w || "YYYY-MM-DDTHH:mm:ssZ", N = A.z(this), g = this.$H, E = this.$m, z = this.$M, Y = R.weekdays, Z = R.months, Q = R.meridiem, U = function(W, ve, de, De) {
|
|
5672
|
+
return W && (W[ve] || W(C, I)) || de[ve].slice(0, De);
|
|
5673
|
+
}, re = function(W) {
|
|
5674
|
+
return A.s(g % 12 || 12, W, "0");
|
|
5675
|
+
}, oe = Q || function(W, ve, de) {
|
|
5661
5676
|
var De = W < 12 ? "AM" : "PM";
|
|
5662
5677
|
return de ? De.toLowerCase() : De;
|
|
5663
5678
|
};
|
|
5664
|
-
return
|
|
5679
|
+
return I.replace(M, (function(W, ve) {
|
|
5665
5680
|
return ve || (function(de) {
|
|
5666
5681
|
switch (de) {
|
|
5667
5682
|
case "YY":
|
|
5668
5683
|
return String(C.$y).slice(-2);
|
|
5669
5684
|
case "YYYY":
|
|
5670
|
-
return
|
|
5685
|
+
return A.s(C.$y, 4, "0");
|
|
5671
5686
|
case "M":
|
|
5672
|
-
return
|
|
5687
|
+
return z + 1;
|
|
5673
5688
|
case "MM":
|
|
5674
|
-
return
|
|
5689
|
+
return A.s(z + 1, 2, "0");
|
|
5675
5690
|
case "MMM":
|
|
5676
|
-
return U(R.monthsShort,
|
|
5691
|
+
return U(R.monthsShort, z, Z, 3);
|
|
5677
5692
|
case "MMMM":
|
|
5678
|
-
return U(Z,
|
|
5693
|
+
return U(Z, z);
|
|
5679
5694
|
case "D":
|
|
5680
5695
|
return C.$D;
|
|
5681
5696
|
case "DD":
|
|
5682
|
-
return
|
|
5697
|
+
return A.s(C.$D, 2, "0");
|
|
5683
5698
|
case "d":
|
|
5684
5699
|
return String(C.$W);
|
|
5685
5700
|
case "dd":
|
|
@@ -5691,76 +5706,76 @@ function iu() {
|
|
|
5691
5706
|
case "H":
|
|
5692
5707
|
return String(g);
|
|
5693
5708
|
case "HH":
|
|
5694
|
-
return
|
|
5709
|
+
return A.s(g, 2, "0");
|
|
5695
5710
|
case "h":
|
|
5696
|
-
return
|
|
5711
|
+
return re(1);
|
|
5697
5712
|
case "hh":
|
|
5698
|
-
return
|
|
5713
|
+
return re(2);
|
|
5699
5714
|
case "a":
|
|
5700
|
-
return
|
|
5715
|
+
return oe(g, E, !0);
|
|
5701
5716
|
case "A":
|
|
5702
|
-
return
|
|
5717
|
+
return oe(g, E, !1);
|
|
5703
5718
|
case "m":
|
|
5704
5719
|
return String(E);
|
|
5705
5720
|
case "mm":
|
|
5706
|
-
return
|
|
5721
|
+
return A.s(E, 2, "0");
|
|
5707
5722
|
case "s":
|
|
5708
5723
|
return String(C.$s);
|
|
5709
5724
|
case "ss":
|
|
5710
|
-
return
|
|
5725
|
+
return A.s(C.$s, 2, "0");
|
|
5711
5726
|
case "SSS":
|
|
5712
|
-
return
|
|
5727
|
+
return A.s(C.$ms, 3, "0");
|
|
5713
5728
|
case "Z":
|
|
5714
|
-
return
|
|
5729
|
+
return N;
|
|
5715
5730
|
}
|
|
5716
5731
|
return null;
|
|
5717
|
-
})(W) ||
|
|
5732
|
+
})(W) || N.replace(":", "");
|
|
5718
5733
|
}));
|
|
5719
5734
|
}, y.utcOffset = function() {
|
|
5720
5735
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5721
5736
|
}, y.diff = function(w, C, R) {
|
|
5722
|
-
var
|
|
5723
|
-
return
|
|
5737
|
+
var I, N = this, g = A.p(C), E = F(w), z = (E.utcOffset() - this.utcOffset()) * r, Y = this - E, Z = function() {
|
|
5738
|
+
return A.m(N, E);
|
|
5724
5739
|
};
|
|
5725
5740
|
switch (g) {
|
|
5726
5741
|
case h:
|
|
5727
|
-
|
|
5742
|
+
I = Z() / 12;
|
|
5728
5743
|
break;
|
|
5729
5744
|
case d:
|
|
5730
|
-
|
|
5745
|
+
I = Z();
|
|
5731
5746
|
break;
|
|
5732
5747
|
case p:
|
|
5733
|
-
|
|
5748
|
+
I = Z() / 3;
|
|
5734
5749
|
break;
|
|
5735
5750
|
case f:
|
|
5736
|
-
|
|
5751
|
+
I = (Y - z) / 6048e5;
|
|
5737
5752
|
break;
|
|
5738
5753
|
case u:
|
|
5739
|
-
|
|
5754
|
+
I = (Y - z) / 864e5;
|
|
5740
5755
|
break;
|
|
5741
5756
|
case c:
|
|
5742
|
-
|
|
5757
|
+
I = Y / o;
|
|
5743
5758
|
break;
|
|
5744
5759
|
case a:
|
|
5745
|
-
|
|
5760
|
+
I = Y / r;
|
|
5746
5761
|
break;
|
|
5747
5762
|
case l:
|
|
5748
|
-
|
|
5763
|
+
I = Y / n;
|
|
5749
5764
|
break;
|
|
5750
5765
|
default:
|
|
5751
|
-
|
|
5766
|
+
I = Y;
|
|
5752
5767
|
}
|
|
5753
|
-
return R ?
|
|
5768
|
+
return R ? I : A.a(I);
|
|
5754
5769
|
}, y.daysInMonth = function() {
|
|
5755
5770
|
return this.endOf(d).$D;
|
|
5756
5771
|
}, y.$locale = function() {
|
|
5757
|
-
return
|
|
5772
|
+
return _[this.$L];
|
|
5758
5773
|
}, y.locale = function(w, C) {
|
|
5759
5774
|
if (!w) return this.$L;
|
|
5760
|
-
var R = this.clone(),
|
|
5761
|
-
return
|
|
5775
|
+
var R = this.clone(), I = H(w, C, !0);
|
|
5776
|
+
return I && (R.$L = I), R;
|
|
5762
5777
|
}, y.clone = function() {
|
|
5763
|
-
return
|
|
5778
|
+
return A.w(this.$d, this);
|
|
5764
5779
|
}, y.toDate = function() {
|
|
5765
5780
|
return new Date(this.valueOf());
|
|
5766
5781
|
}, y.toJSON = function() {
|
|
@@ -5770,27 +5785,27 @@ function iu() {
|
|
|
5770
5785
|
}, y.toString = function() {
|
|
5771
5786
|
return this.$d.toUTCString();
|
|
5772
5787
|
}, S;
|
|
5773
|
-
})(),
|
|
5774
|
-
return F.prototype =
|
|
5775
|
-
|
|
5788
|
+
})(), $ = P.prototype;
|
|
5789
|
+
return F.prototype = $, [["$ms", i], ["$s", l], ["$m", a], ["$H", c], ["$W", u], ["$M", d], ["$y", h], ["$D", v]].forEach((function(S) {
|
|
5790
|
+
$[S[1]] = function(y) {
|
|
5776
5791
|
return this.$g(y, S[0], S[1]);
|
|
5777
5792
|
};
|
|
5778
5793
|
})), F.extend = function(S, y) {
|
|
5779
|
-
return S.$i || (S(y,
|
|
5780
|
-
}, F.locale = H, F.isDayjs =
|
|
5794
|
+
return S.$i || (S(y, P, F), S.$i = !0), F;
|
|
5795
|
+
}, F.locale = H, F.isDayjs = L, F.unix = function(S) {
|
|
5781
5796
|
return F(1e3 * S);
|
|
5782
|
-
}, F.en =
|
|
5797
|
+
}, F.en = _[T], F.Ls = _, F.p = {}, F;
|
|
5783
5798
|
}));
|
|
5784
5799
|
})(It)), It.exports;
|
|
5785
5800
|
}
|
|
5786
|
-
var
|
|
5787
|
-
const Zt = /* @__PURE__ */ Gt(
|
|
5788
|
-
var kt = { exports: {} },
|
|
5789
|
-
function
|
|
5801
|
+
var cu = lu();
|
|
5802
|
+
const Zt = /* @__PURE__ */ Gt(cu);
|
|
5803
|
+
var kt = { exports: {} }, uu = kt.exports, mr;
|
|
5804
|
+
function du() {
|
|
5790
5805
|
return mr || (mr = 1, (function(e, t) {
|
|
5791
5806
|
(function(n, r) {
|
|
5792
5807
|
e.exports = r();
|
|
5793
|
-
})(
|
|
5808
|
+
})(uu, (function() {
|
|
5794
5809
|
return function(n, r, o) {
|
|
5795
5810
|
n = n || {};
|
|
5796
5811
|
var i = r.prototype, l = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
@@ -5798,20 +5813,20 @@ function cu() {
|
|
|
5798
5813
|
return i.fromToBase(u, f, d, p);
|
|
5799
5814
|
}
|
|
5800
5815
|
o.en.relativeTime = l, i.fromToBase = function(u, f, d, p, h) {
|
|
5801
|
-
for (var v, m, b,
|
|
5802
|
-
var
|
|
5803
|
-
|
|
5804
|
-
var
|
|
5805
|
-
if (b = v > 0,
|
|
5806
|
-
|
|
5807
|
-
var
|
|
5808
|
-
h && (
|
|
5816
|
+
for (var v, m, b, M = d.$locale().relativeTime || l, 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) {
|
|
5817
|
+
var T = D[O];
|
|
5818
|
+
T.d && (v = p ? o(u).diff(d, T.d, !0) : d.diff(u, T.d, !0));
|
|
5819
|
+
var _ = (n.rounding || Math.round)(Math.abs(v));
|
|
5820
|
+
if (b = v > 0, _ <= T.r || !T.r) {
|
|
5821
|
+
_ <= 1 && O > 0 && (T = D[O - 1]);
|
|
5822
|
+
var k = M[T.l];
|
|
5823
|
+
h && (_ = h("" + _)), m = typeof k == "string" ? k.replace("%d", _) : k(_, f, T.l, b);
|
|
5809
5824
|
break;
|
|
5810
5825
|
}
|
|
5811
5826
|
}
|
|
5812
5827
|
if (f) return m;
|
|
5813
|
-
var
|
|
5814
|
-
return typeof
|
|
5828
|
+
var L = b ? M.future : M.past;
|
|
5829
|
+
return typeof L == "function" ? L(m) : L.replace("%s", m);
|
|
5815
5830
|
}, i.to = function(u, f) {
|
|
5816
5831
|
return a(u, f, this, !0);
|
|
5817
5832
|
}, i.from = function(u, f) {
|
|
@@ -5829,14 +5844,14 @@ function cu() {
|
|
|
5829
5844
|
}));
|
|
5830
5845
|
})(kt)), kt.exports;
|
|
5831
5846
|
}
|
|
5832
|
-
var
|
|
5833
|
-
const
|
|
5834
|
-
var At = { exports: {} },
|
|
5835
|
-
function
|
|
5847
|
+
var fu = du();
|
|
5848
|
+
const hu = /* @__PURE__ */ Gt(fu);
|
|
5849
|
+
var At = { exports: {} }, gu = At.exports, xr;
|
|
5850
|
+
function pu() {
|
|
5836
5851
|
return xr || (xr = 1, (function(e, t) {
|
|
5837
5852
|
(function(n, r) {
|
|
5838
5853
|
e.exports = r();
|
|
5839
|
-
})(
|
|
5854
|
+
})(gu, (function() {
|
|
5840
5855
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
5841
5856
|
return function(r, o, i) {
|
|
5842
5857
|
var l = o.prototype, a = l.format;
|
|
@@ -5845,7 +5860,7 @@ function hu() {
|
|
|
5845
5860
|
var u = this.$locale().formats, f = (function(d, p) {
|
|
5846
5861
|
return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(h, v, m) {
|
|
5847
5862
|
var b = m && m.toUpperCase();
|
|
5848
|
-
return v || p[m] || n[m] || p[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(
|
|
5863
|
+
return v || p[m] || n[m] || p[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(M, D, j) {
|
|
5849
5864
|
return D || j.slice(1);
|
|
5850
5865
|
}));
|
|
5851
5866
|
}));
|
|
@@ -5856,14 +5871,14 @@ function hu() {
|
|
|
5856
5871
|
}));
|
|
5857
5872
|
})(At)), At.exports;
|
|
5858
5873
|
}
|
|
5859
|
-
var
|
|
5860
|
-
const
|
|
5861
|
-
var Lt = { exports: {} },
|
|
5862
|
-
function
|
|
5874
|
+
var vu = pu();
|
|
5875
|
+
const mu = /* @__PURE__ */ Gt(vu);
|
|
5876
|
+
var Lt = { exports: {} }, xu = Lt.exports, br;
|
|
5877
|
+
function bu() {
|
|
5863
5878
|
return br || (br = 1, (function(e, t) {
|
|
5864
5879
|
(function(n, r) {
|
|
5865
5880
|
e.exports = r();
|
|
5866
|
-
})(
|
|
5881
|
+
})(xu, (function() {
|
|
5867
5882
|
return function(n, r) {
|
|
5868
5883
|
var o = r.prototype, i = o.format;
|
|
5869
5884
|
o.format = function(l) {
|
|
@@ -5908,12 +5923,12 @@ function mu() {
|
|
|
5908
5923
|
}));
|
|
5909
5924
|
})(Lt)), Lt.exports;
|
|
5910
5925
|
}
|
|
5911
|
-
var
|
|
5912
|
-
const
|
|
5913
|
-
Zt.extend(
|
|
5914
|
-
Zt.extend(
|
|
5915
|
-
Zt.extend(
|
|
5916
|
-
const
|
|
5926
|
+
var yu = bu();
|
|
5927
|
+
const wu = /* @__PURE__ */ Gt(yu);
|
|
5928
|
+
Zt.extend(hu);
|
|
5929
|
+
Zt.extend(mu);
|
|
5930
|
+
Zt.extend(wu);
|
|
5931
|
+
const Su = {
|
|
5917
5932
|
date: "DD MMM YYYY",
|
|
5918
5933
|
time: "hh:mm A",
|
|
5919
5934
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5929,9 +5944,9 @@ function yr({
|
|
|
5929
5944
|
}) {
|
|
5930
5945
|
if (!e) return r;
|
|
5931
5946
|
const o = Zt(e);
|
|
5932
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5947
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? Su[t]) : r;
|
|
5933
5948
|
}
|
|
5934
|
-
function
|
|
5949
|
+
function Pu({
|
|
5935
5950
|
value: e,
|
|
5936
5951
|
dateVariant: t = "date",
|
|
5937
5952
|
timeVariant: n = "time",
|
|
@@ -5959,7 +5974,7 @@ function zu({
|
|
|
5959
5974
|
}) })
|
|
5960
5975
|
] });
|
|
5961
5976
|
}
|
|
5962
|
-
class
|
|
5977
|
+
class Cu {
|
|
5963
5978
|
state = /* @__PURE__ */ new Map();
|
|
5964
5979
|
listeners = /* @__PURE__ */ new Map();
|
|
5965
5980
|
get(t) {
|
|
@@ -5996,7 +6011,7 @@ class Sr {
|
|
|
5996
6011
|
constructor(t) {
|
|
5997
6012
|
this.api = t;
|
|
5998
6013
|
}
|
|
5999
|
-
store = new
|
|
6014
|
+
store = new Cu();
|
|
6000
6015
|
inflight = /* @__PURE__ */ new Map();
|
|
6001
6016
|
getRaw(t) {
|
|
6002
6017
|
return this.store.get(t);
|
|
@@ -6041,14 +6056,14 @@ function fo() {
|
|
|
6041
6056
|
throw new Error("OptionsProvider is missing. Wrap your app with <OptionsProvider />");
|
|
6042
6057
|
return e;
|
|
6043
6058
|
}
|
|
6044
|
-
function
|
|
6059
|
+
function Fu({
|
|
6045
6060
|
client: { apiUrl: e },
|
|
6046
6061
|
children: t
|
|
6047
6062
|
}) {
|
|
6048
6063
|
const n = X(new Sr(new wr(e)));
|
|
6049
6064
|
return n.current || (n.current = new Sr(new wr(e))), /* @__PURE__ */ s.jsx(uo.Provider, { value: n.current, children: t });
|
|
6050
6065
|
}
|
|
6051
|
-
function
|
|
6066
|
+
function Yu(e) {
|
|
6052
6067
|
const t = fo(), [n, r] = B(t.getRaw(e)?.value);
|
|
6053
6068
|
return V(() => {
|
|
6054
6069
|
let o = !0;
|
|
@@ -6063,7 +6078,7 @@ function Pu(e) {
|
|
|
6063
6078
|
};
|
|
6064
6079
|
}, [e, t]), n;
|
|
6065
6080
|
}
|
|
6066
|
-
function
|
|
6081
|
+
function Wu(e) {
|
|
6067
6082
|
const t = fo(), [n, r] = B({});
|
|
6068
6083
|
return V(() => {
|
|
6069
6084
|
let o = !0;
|
|
@@ -6083,13 +6098,13 @@ function Fu(e) {
|
|
|
6083
6098
|
};
|
|
6084
6099
|
}, [e.join("|"), t]), n;
|
|
6085
6100
|
}
|
|
6086
|
-
async function
|
|
6101
|
+
async function Vu(e, t) {
|
|
6087
6102
|
return e.getKey(t);
|
|
6088
6103
|
}
|
|
6089
|
-
async function
|
|
6104
|
+
async function Hu(e, t) {
|
|
6090
6105
|
await e.getMultiKey(t);
|
|
6091
6106
|
}
|
|
6092
|
-
function
|
|
6107
|
+
function Bu(e = {}) {
|
|
6093
6108
|
const { initialPage: t = 1, initialLimit: n = 20 } = e, [r, o] = B(t), [i, l] = B(n), a = ee((p) => {
|
|
6094
6109
|
o(Math.max(1, p));
|
|
6095
6110
|
}, []), c = ee((p) => {
|
|
@@ -6111,8 +6126,8 @@ function Vu(e = {}) {
|
|
|
6111
6126
|
reset: d
|
|
6112
6127
|
};
|
|
6113
6128
|
}
|
|
6114
|
-
function
|
|
6115
|
-
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = B(t), i =
|
|
6129
|
+
function Uu(e = {}) {
|
|
6130
|
+
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = B(t), i = Du(r, n), l = ee((c) => {
|
|
6116
6131
|
o(c);
|
|
6117
6132
|
}, []), a = ee(() => {
|
|
6118
6133
|
o(t);
|
|
@@ -6124,7 +6139,7 @@ function Hu(e = {}) {
|
|
|
6124
6139
|
reset: a
|
|
6125
6140
|
};
|
|
6126
6141
|
}
|
|
6127
|
-
function
|
|
6142
|
+
function Du(e, t = 300) {
|
|
6128
6143
|
const [n, r] = B(e);
|
|
6129
6144
|
return V(() => {
|
|
6130
6145
|
const o = setTimeout(() => {
|
|
@@ -6134,47 +6149,47 @@ function Su(e, t = 300) {
|
|
|
6134
6149
|
}, [e, t]), n;
|
|
6135
6150
|
}
|
|
6136
6151
|
export {
|
|
6137
|
-
|
|
6138
|
-
|
|
6152
|
+
Mu as DataTable,
|
|
6153
|
+
Tu as Filters,
|
|
6139
6154
|
wr as HttpOptionsApi,
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6155
|
+
Iu as MDSButton,
|
|
6156
|
+
ll as MDSCheckbox,
|
|
6157
|
+
ml as MDSCombobox,
|
|
6158
|
+
ku as MDSConfirmActionDialog,
|
|
6159
|
+
Au as MDSConfirmDeleteDialog,
|
|
6160
|
+
Tl as MDSDatePicker,
|
|
6161
|
+
Cl as MDSDateRangePicker,
|
|
6162
|
+
Lu as MDSDialogAction,
|
|
6163
|
+
Yc as MDSDialogActions,
|
|
6164
|
+
Fc as MDSDialogBody,
|
|
6165
|
+
zu as MDSDialogWrapper,
|
|
6151
6166
|
pr as MDSInput,
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6167
|
+
Nu as MDSPinInput,
|
|
6168
|
+
iu as MDSRefreshButton,
|
|
6169
|
+
Kl as MDSSelectBox,
|
|
6155
6170
|
Sr as OptionsClientImpl,
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6171
|
+
Fu as OptionsProvider,
|
|
6172
|
+
Cu as OptionsStore,
|
|
6173
|
+
iu as RefreshButton,
|
|
6174
|
+
Pu as StackedDateTime,
|
|
6175
|
+
Zl as addPreset,
|
|
6176
|
+
Ql as deletePreset,
|
|
6162
6177
|
yr as formatDateTime,
|
|
6163
6178
|
$n as getColumnWidthKey,
|
|
6164
|
-
|
|
6179
|
+
Vu as getOption,
|
|
6165
6180
|
In as getPresets,
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6181
|
+
$u as loadOrder,
|
|
6182
|
+
Hu as prefetchOptions,
|
|
6183
|
+
Ou as saveOrder,
|
|
6169
6184
|
lo as savePresets,
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6185
|
+
Ai as setActionsConfig,
|
|
6186
|
+
_u as setColumnWidth,
|
|
6187
|
+
Ii as setData,
|
|
6188
|
+
ki as setTableId,
|
|
6174
6189
|
pe as tableStore,
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6190
|
+
Uu as useDebouncedSearch,
|
|
6191
|
+
Yu as useOption,
|
|
6192
|
+
Wu as useOptions,
|
|
6193
|
+
Bu as usePagination,
|
|
6179
6194
|
x as withChildren
|
|
6180
6195
|
};
|