@mdspl/mds-shared-ui 0.9.8 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1051 -1038
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import oe, { useLayoutEffect as Co, useEffect as Y, useRef as
|
|
2
|
-
import { Menu as Ie, Checkbox as Re, IconButton as Oe, Portal as Ge, Table as ae, HStack as fe, Select as te, Pagination as zt, createListCollection as Tr, Box as De, Text as
|
|
1
|
+
import oe, { useLayoutEffect as Co, useEffect as Y, useRef as X, useMemo as U, useCallback as ee, useState as J, createContext as tt, memo as Do, useReducer as jo, useContext as Be, forwardRef as Rn, createElement as bn } from "react";
|
|
2
|
+
import { Menu as Ie, Checkbox as Re, IconButton as Oe, Portal as Ge, Table as ae, HStack as fe, Select as te, Pagination as zt, createListCollection as Tr, Box as De, Text as G, ButtonGroup as Ro, Skeleton as Eo, Spinner as Or, Combobox as Me, useListCollection as _o, Span as To, Popover as Ut, InputGroup as Mr, InputElement as Un, PopoverArrow as Oo, VStack as Ne, Kbd as Gn, Input as En, Field as Ee, Slider as xt, Drawer as Ae, Tabs as Gt, Button as Ue, CloseButton as Xt, Dialog as q, Stack as Pt, Flex as an, PinInput as qt } from "@chakra-ui/react";
|
|
3
3
|
import { unstable_batchedUpdates as jt, createPortal as Mo } from "react-dom";
|
|
4
4
|
function Kt(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -11,16 +11,16 @@ function $o() {
|
|
|
11
11
|
Xn = 1;
|
|
12
12
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
13
13
|
function n(r, o, s) {
|
|
14
|
-
var
|
|
15
|
-
if (s !== void 0 && (
|
|
14
|
+
var a = null;
|
|
15
|
+
if (s !== void 0 && (a = "" + s), o.key !== void 0 && (a = "" + o.key), "key" in o) {
|
|
16
16
|
s = {};
|
|
17
|
-
for (var
|
|
18
|
-
|
|
17
|
+
for (var c in o)
|
|
18
|
+
c !== "key" && (s[c] = o[c]);
|
|
19
19
|
} else s = o;
|
|
20
20
|
return o = s.ref, {
|
|
21
21
|
$$typeof: e,
|
|
22
22
|
type: r,
|
|
23
|
-
key:
|
|
23
|
+
key: a,
|
|
24
24
|
ref: o !== void 0 ? o : null,
|
|
25
25
|
props: s
|
|
26
26
|
};
|
|
@@ -34,16 +34,16 @@ function Io() {
|
|
|
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 === T ? 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
|
-
case
|
|
42
|
+
case j:
|
|
43
43
|
return "Profiler";
|
|
44
44
|
case y:
|
|
45
45
|
return "StrictMode";
|
|
46
|
-
case
|
|
46
|
+
case E:
|
|
47
47
|
return "Suspense";
|
|
48
48
|
case I:
|
|
49
49
|
return "SuspenseList";
|
|
@@ -56,16 +56,16 @@ function Io() {
|
|
|
56
56
|
), g.$$typeof) {
|
|
57
57
|
case v:
|
|
58
58
|
return "Portal";
|
|
59
|
-
case
|
|
59
|
+
case $:
|
|
60
60
|
return g.displayName || "Context";
|
|
61
|
-
case
|
|
61
|
+
case R:
|
|
62
62
|
return (g._context.displayName || "Context") + ".Consumer";
|
|
63
63
|
case M:
|
|
64
64
|
var D = g.render;
|
|
65
65
|
return g = g.displayName, g || (g = D.displayName || D.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
66
66
|
case A:
|
|
67
67
|
return D = g.displayName || null, D !== null ? D : e(g.type) || "Memo";
|
|
68
|
-
case
|
|
68
|
+
case H:
|
|
69
69
|
D = g._payload, g = g._init;
|
|
70
70
|
try {
|
|
71
71
|
return e(g(D));
|
|
@@ -96,7 +96,7 @@ function Io() {
|
|
|
96
96
|
}
|
|
97
97
|
function r(g) {
|
|
98
98
|
if (g === b) return "<>";
|
|
99
|
-
if (typeof g == "object" && g !== null && g.$$typeof ===
|
|
99
|
+
if (typeof g == "object" && g !== null && g.$$typeof === H)
|
|
100
100
|
return "<...>";
|
|
101
101
|
try {
|
|
102
102
|
var D = e(g);
|
|
@@ -106,20 +106,20 @@ function Io() {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function o() {
|
|
109
|
-
var g =
|
|
109
|
+
var g = V.A;
|
|
110
110
|
return g === null ? null : g.getOwner();
|
|
111
111
|
}
|
|
112
112
|
function s() {
|
|
113
113
|
return Error("react-stack-top-frame");
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
if (
|
|
115
|
+
function a(g) {
|
|
116
|
+
if (K.call(g, "key")) {
|
|
117
117
|
var D = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
118
118
|
if (D && D.isReactWarning) return !1;
|
|
119
119
|
}
|
|
120
120
|
return g.key !== void 0;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function c(g, D) {
|
|
123
123
|
function L() {
|
|
124
124
|
w || (w = !0, console.error(
|
|
125
125
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
@@ -133,19 +133,19 @@ function Io() {
|
|
|
133
133
|
}
|
|
134
134
|
function l() {
|
|
135
135
|
var g = e(this.type);
|
|
136
|
-
return
|
|
136
|
+
return _[g] || (_[g] = !0, console.error(
|
|
137
137
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
138
138
|
)), g = this.props.ref, g !== void 0 ? g : null;
|
|
139
139
|
}
|
|
140
140
|
function u(g, D, L, F, Z, Q) {
|
|
141
|
-
var
|
|
141
|
+
var W = L.ref;
|
|
142
142
|
return g = {
|
|
143
143
|
$$typeof: h,
|
|
144
144
|
type: g,
|
|
145
145
|
key: D,
|
|
146
146
|
props: L,
|
|
147
147
|
_owner: F
|
|
148
|
-
}, (
|
|
148
|
+
}, (W !== void 0 ? W : null) !== null ? Object.defineProperty(g, "ref", {
|
|
149
149
|
enumerable: !1,
|
|
150
150
|
get: l
|
|
151
151
|
}) : Object.defineProperty(g, "ref", { enumerable: !1, value: null }), g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
@@ -170,25 +170,25 @@ function Io() {
|
|
|
170
170
|
value: Q
|
|
171
171
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
var
|
|
175
|
-
if (
|
|
173
|
+
function d(g, D, L, F, Z, Q) {
|
|
174
|
+
var W = D.children;
|
|
175
|
+
if (W !== void 0)
|
|
176
176
|
if (F)
|
|
177
|
-
if (
|
|
178
|
-
for (F = 0; F <
|
|
179
|
-
|
|
180
|
-
Object.freeze && Object.freeze(
|
|
177
|
+
if (O(W)) {
|
|
178
|
+
for (F = 0; F < W.length; F++)
|
|
179
|
+
f(W[F]);
|
|
180
|
+
Object.freeze && Object.freeze(W);
|
|
181
181
|
} else
|
|
182
182
|
console.error(
|
|
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
|
-
else
|
|
186
|
-
if (
|
|
187
|
-
|
|
185
|
+
else f(W);
|
|
186
|
+
if (K.call(D, "key")) {
|
|
187
|
+
W = e(g);
|
|
188
188
|
var ne = Object.keys(D).filter(function(z) {
|
|
189
189
|
return z !== "key";
|
|
190
190
|
});
|
|
191
|
-
F = 0 < ne.length ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}", N[
|
|
191
|
+
F = 0 < ne.length ? "{key: someKey, " + ne.join(": ..., ") + ": ...}" : "{key: someKey}", N[W + F] || (ne = 0 < ne.length ? "{" + ne.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} />
|
|
@@ -196,35 +196,35 @@ React keys must be passed directly to JSX without using spread:
|
|
|
196
196
|
let props = %s;
|
|
197
197
|
<%s key={someKey} {...props} />`,
|
|
198
198
|
F,
|
|
199
|
-
|
|
199
|
+
W,
|
|
200
200
|
ne,
|
|
201
|
-
|
|
202
|
-
), N[
|
|
201
|
+
W
|
|
202
|
+
), N[W + F] = !0);
|
|
203
203
|
}
|
|
204
|
-
if (
|
|
204
|
+
if (W = null, L !== void 0 && (n(L), W = "" + L), a(D) && (n(D.key), W = "" + D.key), "key" in D) {
|
|
205
205
|
L = {};
|
|
206
206
|
for (var re in D)
|
|
207
207
|
re !== "key" && (L[re] = D[re]);
|
|
208
208
|
} else L = D;
|
|
209
|
-
return
|
|
209
|
+
return W && c(
|
|
210
210
|
L,
|
|
211
211
|
typeof g == "function" ? g.displayName || g.name || "Unknown" : g
|
|
212
212
|
), u(
|
|
213
213
|
g,
|
|
214
|
-
|
|
214
|
+
W,
|
|
215
215
|
L,
|
|
216
216
|
o(),
|
|
217
217
|
Z,
|
|
218
218
|
Q
|
|
219
219
|
);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
x(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof ===
|
|
221
|
+
function f(g) {
|
|
222
|
+
x(g) ? g._store && (g._store.validated = 1) : typeof g == "object" && g !== null && g.$$typeof === H && (g._payload.status === "fulfilled" ? x(g._payload.value) && g._payload.value._store && (g._payload.value._store.validated = 1) : g._store && (g._store.validated = 1));
|
|
223
223
|
}
|
|
224
224
|
function x(g) {
|
|
225
225
|
return typeof g == "object" && g !== null && g.$$typeof === h;
|
|
226
226
|
}
|
|
227
|
-
var p = oe, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"),
|
|
227
|
+
var p = oe, h = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), b = /* @__PURE__ */ Symbol.for("react.fragment"), y = /* @__PURE__ */ Symbol.for("react.strict_mode"), j = /* @__PURE__ */ Symbol.for("react.profiler"), R = /* @__PURE__ */ Symbol.for("react.consumer"), $ = /* @__PURE__ */ Symbol.for("react.context"), M = /* @__PURE__ */ Symbol.for("react.forward_ref"), E = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), H = /* @__PURE__ */ Symbol.for("react.lazy"), P = /* @__PURE__ */ Symbol.for("react.activity"), T = /* @__PURE__ */ Symbol.for("react.client.reference"), V = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, O = Array.isArray, C = console.createTask ? console.createTask : function() {
|
|
228
228
|
return null;
|
|
229
229
|
};
|
|
230
230
|
p = {
|
|
@@ -232,28 +232,28 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
return g();
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
|
-
var w,
|
|
235
|
+
var w, _ = {}, S = p.react_stack_bottom_frame.bind(
|
|
236
236
|
p,
|
|
237
237
|
s
|
|
238
238
|
)(), k = C(r(s)), N = {};
|
|
239
239
|
ut.Fragment = b, ut.jsx = function(g, D, L) {
|
|
240
|
-
var F = 1e4 >
|
|
241
|
-
return
|
|
240
|
+
var F = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
241
|
+
return d(
|
|
242
242
|
g,
|
|
243
243
|
D,
|
|
244
244
|
L,
|
|
245
245
|
!1,
|
|
246
|
-
F ? Error("react-stack-top-frame") :
|
|
246
|
+
F ? Error("react-stack-top-frame") : S,
|
|
247
247
|
F ? C(r(g)) : k
|
|
248
248
|
);
|
|
249
249
|
}, ut.jsxs = function(g, D, L) {
|
|
250
|
-
var F = 1e4 >
|
|
251
|
-
return
|
|
250
|
+
var F = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
251
|
+
return d(
|
|
252
252
|
g,
|
|
253
253
|
D,
|
|
254
254
|
L,
|
|
255
255
|
!0,
|
|
256
|
-
F ? Error("react-stack-top-frame") :
|
|
256
|
+
F ? Error("react-stack-top-frame") : S,
|
|
257
257
|
F ? C(r(g)) : k
|
|
258
258
|
);
|
|
259
259
|
};
|
|
@@ -305,7 +305,7 @@ function rt(e) {
|
|
|
305
305
|
}
|
|
306
306
|
const $e = Jt ? Co : Y;
|
|
307
307
|
function On(e) {
|
|
308
|
-
const t =
|
|
308
|
+
const t = X(e);
|
|
309
309
|
return $e(() => {
|
|
310
310
|
t.current = e;
|
|
311
311
|
}), ee(function() {
|
|
@@ -315,7 +315,7 @@ function On(e) {
|
|
|
315
315
|
}, []);
|
|
316
316
|
}
|
|
317
317
|
function Lo() {
|
|
318
|
-
const e =
|
|
318
|
+
const e = X(null), t = ee((r, o) => {
|
|
319
319
|
e.current = setInterval(r, o);
|
|
320
320
|
}, []), n = ee(() => {
|
|
321
321
|
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
@@ -324,13 +324,13 @@ function Lo() {
|
|
|
324
324
|
}
|
|
325
325
|
function vt(e, t) {
|
|
326
326
|
t === void 0 && (t = [e]);
|
|
327
|
-
const n =
|
|
327
|
+
const n = X(e);
|
|
328
328
|
return $e(() => {
|
|
329
329
|
n.current !== e && (n.current = e);
|
|
330
330
|
}, t), n;
|
|
331
331
|
}
|
|
332
332
|
function yt(e, t) {
|
|
333
|
-
const n =
|
|
333
|
+
const n = X();
|
|
334
334
|
return U(
|
|
335
335
|
() => {
|
|
336
336
|
const r = e(n.current);
|
|
@@ -341,7 +341,7 @@ function yt(e, t) {
|
|
|
341
341
|
);
|
|
342
342
|
}
|
|
343
343
|
function Ft(e) {
|
|
344
|
-
const t = On(e), n =
|
|
344
|
+
const t = On(e), n = X(null), r = ee(
|
|
345
345
|
(o) => {
|
|
346
346
|
o !== n.current && t?.(o, n.current), n.current = o;
|
|
347
347
|
},
|
|
@@ -351,7 +351,7 @@ function Ft(e) {
|
|
|
351
351
|
return [n, r];
|
|
352
352
|
}
|
|
353
353
|
function yn(e) {
|
|
354
|
-
const t =
|
|
354
|
+
const t = X();
|
|
355
355
|
return Y(() => {
|
|
356
356
|
t.current = e;
|
|
357
357
|
}, [e]), t.current;
|
|
@@ -369,11 +369,11 @@ function Ir(e) {
|
|
|
369
369
|
return function(t) {
|
|
370
370
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
371
371
|
r[o - 1] = arguments[o];
|
|
372
|
-
return r.reduce((s,
|
|
373
|
-
const
|
|
374
|
-
for (const [l, u] of
|
|
375
|
-
const
|
|
376
|
-
|
|
372
|
+
return r.reduce((s, a) => {
|
|
373
|
+
const c = Object.entries(a);
|
|
374
|
+
for (const [l, u] of c) {
|
|
375
|
+
const d = s[l];
|
|
376
|
+
d != null && (s[l] = d + e * u);
|
|
377
377
|
}
|
|
378
378
|
return s;
|
|
379
379
|
}, {
|
|
@@ -537,9 +537,9 @@ function Bo() {
|
|
|
537
537
|
type: o,
|
|
538
538
|
event: s
|
|
539
539
|
} = r;
|
|
540
|
-
e.forEach((
|
|
541
|
-
var
|
|
542
|
-
return (
|
|
540
|
+
e.forEach((a) => {
|
|
541
|
+
var c;
|
|
542
|
+
return (c = a[o]) == null ? void 0 : c.call(a, s);
|
|
543
543
|
});
|
|
544
544
|
}, [e]), t];
|
|
545
545
|
}
|
|
@@ -586,54 +586,54 @@ function Xo(e) {
|
|
|
586
586
|
} = e;
|
|
587
587
|
const {
|
|
588
588
|
announce: s,
|
|
589
|
-
announcement:
|
|
590
|
-
} = Ho(),
|
|
589
|
+
announcement: a
|
|
590
|
+
} = Ho(), c = wt("DndLiveRegion"), [l, u] = J(!1);
|
|
591
591
|
if (Y(() => {
|
|
592
592
|
u(!0);
|
|
593
593
|
}, []), Wo(U(() => ({
|
|
594
|
-
onDragStart(
|
|
594
|
+
onDragStart(f) {
|
|
595
595
|
let {
|
|
596
596
|
active: x
|
|
597
|
-
} =
|
|
597
|
+
} = f;
|
|
598
598
|
s(t.onDragStart({
|
|
599
599
|
active: x
|
|
600
600
|
}));
|
|
601
601
|
},
|
|
602
|
-
onDragMove(
|
|
602
|
+
onDragMove(f) {
|
|
603
603
|
let {
|
|
604
604
|
active: x,
|
|
605
605
|
over: p
|
|
606
|
-
} =
|
|
606
|
+
} = f;
|
|
607
607
|
t.onDragMove && s(t.onDragMove({
|
|
608
608
|
active: x,
|
|
609
609
|
over: p
|
|
610
610
|
}));
|
|
611
611
|
},
|
|
612
|
-
onDragOver(
|
|
612
|
+
onDragOver(f) {
|
|
613
613
|
let {
|
|
614
614
|
active: x,
|
|
615
615
|
over: p
|
|
616
|
-
} =
|
|
616
|
+
} = f;
|
|
617
617
|
s(t.onDragOver({
|
|
618
618
|
active: x,
|
|
619
619
|
over: p
|
|
620
620
|
}));
|
|
621
621
|
},
|
|
622
|
-
onDragEnd(
|
|
622
|
+
onDragEnd(f) {
|
|
623
623
|
let {
|
|
624
624
|
active: x,
|
|
625
625
|
over: p
|
|
626
|
-
} =
|
|
626
|
+
} = f;
|
|
627
627
|
s(t.onDragEnd({
|
|
628
628
|
active: x,
|
|
629
629
|
over: p
|
|
630
630
|
}));
|
|
631
631
|
},
|
|
632
|
-
onDragCancel(
|
|
632
|
+
onDragCancel(f) {
|
|
633
633
|
let {
|
|
634
634
|
active: x,
|
|
635
635
|
over: p
|
|
636
|
-
} =
|
|
636
|
+
} = f;
|
|
637
637
|
s(t.onDragCancel({
|
|
638
638
|
active: x,
|
|
639
639
|
over: p
|
|
@@ -641,14 +641,14 @@ function Xo(e) {
|
|
|
641
641
|
}
|
|
642
642
|
}), [s, t])), !l)
|
|
643
643
|
return null;
|
|
644
|
-
const
|
|
644
|
+
const d = oe.createElement(oe.Fragment, null, oe.createElement(Yo, {
|
|
645
645
|
id: r,
|
|
646
646
|
value: o.draggable
|
|
647
647
|
}), oe.createElement(Vo, {
|
|
648
|
-
id:
|
|
649
|
-
announcement:
|
|
648
|
+
id: c,
|
|
649
|
+
announcement: a
|
|
650
650
|
}));
|
|
651
|
-
return n ? Mo(
|
|
651
|
+
return n ? Mo(d, n) : d;
|
|
652
652
|
}
|
|
653
653
|
var ie;
|
|
654
654
|
(function(e) {
|
|
@@ -725,16 +725,16 @@ const kr = (e) => {
|
|
|
725
725
|
droppableContainers: r
|
|
726
726
|
} = e;
|
|
727
727
|
const o = Zn(t, t.left, t.top), s = [];
|
|
728
|
-
for (const
|
|
728
|
+
for (const a of r) {
|
|
729
729
|
const {
|
|
730
|
-
id:
|
|
731
|
-
} =
|
|
730
|
+
id: c
|
|
731
|
+
} = a, l = n.get(c);
|
|
732
732
|
if (l) {
|
|
733
733
|
const u = Jo(Zn(l), o);
|
|
734
734
|
s.push({
|
|
735
|
-
id:
|
|
735
|
+
id: c,
|
|
736
736
|
data: {
|
|
737
|
-
droppableContainer:
|
|
737
|
+
droppableContainer: a,
|
|
738
738
|
value: u
|
|
739
739
|
}
|
|
740
740
|
});
|
|
@@ -743,10 +743,10 @@ const kr = (e) => {
|
|
|
743
743
|
return s.sort(Zo);
|
|
744
744
|
};
|
|
745
745
|
function ts(e, t) {
|
|
746
|
-
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height),
|
|
746
|
+
const n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), o = Math.min(t.left + t.width, e.left + e.width), s = Math.min(t.top + t.height, e.top + e.height), a = o - r, c = s - n;
|
|
747
747
|
if (r < o && n < s) {
|
|
748
|
-
const l = t.width * t.height, u = e.width * e.height,
|
|
749
|
-
return Number(
|
|
748
|
+
const l = t.width * t.height, u = e.width * e.height, d = a * c, f = d / (l + u - d);
|
|
749
|
+
return Number(f.toFixed(4));
|
|
750
750
|
}
|
|
751
751
|
return 0;
|
|
752
752
|
}
|
|
@@ -759,12 +759,12 @@ const ns = (e) => {
|
|
|
759
759
|
const o = [];
|
|
760
760
|
for (const s of r) {
|
|
761
761
|
const {
|
|
762
|
-
id:
|
|
763
|
-
} = s,
|
|
764
|
-
if (
|
|
765
|
-
const l = ts(
|
|
762
|
+
id: a
|
|
763
|
+
} = s, c = n.get(a);
|
|
764
|
+
if (c) {
|
|
765
|
+
const l = ts(c, t);
|
|
766
766
|
l > 0 && o.push({
|
|
767
|
-
id:
|
|
767
|
+
id: a,
|
|
768
768
|
data: {
|
|
769
769
|
droppableContainer: s,
|
|
770
770
|
value: l
|
|
@@ -791,12 +791,12 @@ function os(e) {
|
|
|
791
791
|
return function(n) {
|
|
792
792
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
793
793
|
o[s - 1] = arguments[s];
|
|
794
|
-
return o.reduce((
|
|
795
|
-
...
|
|
796
|
-
top:
|
|
797
|
-
bottom:
|
|
798
|
-
left:
|
|
799
|
-
right:
|
|
794
|
+
return o.reduce((a, c) => ({
|
|
795
|
+
...a,
|
|
796
|
+
top: a.top + e * c.y,
|
|
797
|
+
bottom: a.bottom + e * c.y,
|
|
798
|
+
left: a.left + e * c.x,
|
|
799
|
+
right: a.right + e * c.x
|
|
800
800
|
}), {
|
|
801
801
|
...n
|
|
802
802
|
});
|
|
@@ -830,15 +830,15 @@ function as(e, t, n) {
|
|
|
830
830
|
const {
|
|
831
831
|
scaleX: o,
|
|
832
832
|
scaleY: s,
|
|
833
|
-
x:
|
|
834
|
-
y:
|
|
835
|
-
} = r, l = e.left -
|
|
833
|
+
x: a,
|
|
834
|
+
y: c
|
|
835
|
+
} = r, l = e.left - a - (1 - o) * parseFloat(n), u = e.top - c - (1 - s) * parseFloat(n.slice(n.indexOf(" ") + 1)), d = o ? e.width / o : e.width, f = s ? e.height / s : e.height;
|
|
836
836
|
return {
|
|
837
|
-
width:
|
|
838
|
-
height:
|
|
837
|
+
width: d,
|
|
838
|
+
height: f,
|
|
839
839
|
top: u,
|
|
840
|
-
right: l +
|
|
841
|
-
bottom: u +
|
|
840
|
+
right: l + d,
|
|
841
|
+
bottom: u + f,
|
|
842
842
|
left: l
|
|
843
843
|
};
|
|
844
844
|
}
|
|
@@ -851,24 +851,24 @@ function ot(e, t) {
|
|
|
851
851
|
if (t.ignoreTransform) {
|
|
852
852
|
const {
|
|
853
853
|
transform: u,
|
|
854
|
-
transformOrigin:
|
|
854
|
+
transformOrigin: d
|
|
855
855
|
} = ge(e).getComputedStyle(e);
|
|
856
|
-
u && (n = as(n, u,
|
|
856
|
+
u && (n = as(n, u, d));
|
|
857
857
|
}
|
|
858
858
|
const {
|
|
859
859
|
top: r,
|
|
860
860
|
left: o,
|
|
861
861
|
width: s,
|
|
862
|
-
height:
|
|
863
|
-
bottom:
|
|
862
|
+
height: a,
|
|
863
|
+
bottom: c,
|
|
864
864
|
right: l
|
|
865
865
|
} = n;
|
|
866
866
|
return {
|
|
867
867
|
top: r,
|
|
868
868
|
left: o,
|
|
869
869
|
width: s,
|
|
870
|
-
height:
|
|
871
|
-
bottom:
|
|
870
|
+
height: a,
|
|
871
|
+
bottom: c,
|
|
872
872
|
right: l
|
|
873
873
|
};
|
|
874
874
|
}
|
|
@@ -952,12 +952,12 @@ function Yr(e) {
|
|
|
952
952
|
}, r = {
|
|
953
953
|
x: e.scrollWidth - n.width,
|
|
954
954
|
y: e.scrollHeight - n.height
|
|
955
|
-
}, o = e.scrollTop <= t.y, s = e.scrollLeft <= t.x,
|
|
955
|
+
}, o = e.scrollTop <= t.y, s = e.scrollLeft <= t.x, a = e.scrollTop >= r.y, c = e.scrollLeft >= r.x;
|
|
956
956
|
return {
|
|
957
957
|
isTop: o,
|
|
958
958
|
isLeft: s,
|
|
959
|
-
isBottom:
|
|
960
|
-
isRight:
|
|
959
|
+
isBottom: a,
|
|
960
|
+
isRight: c,
|
|
961
961
|
maxScroll: r,
|
|
962
962
|
minScroll: t
|
|
963
963
|
};
|
|
@@ -969,15 +969,15 @@ const fs = {
|
|
|
969
969
|
function hs(e, t, n, r, o) {
|
|
970
970
|
let {
|
|
971
971
|
top: s,
|
|
972
|
-
left:
|
|
973
|
-
right:
|
|
972
|
+
left: a,
|
|
973
|
+
right: c,
|
|
974
974
|
bottom: l
|
|
975
975
|
} = n;
|
|
976
976
|
r === void 0 && (r = 10), o === void 0 && (o = fs);
|
|
977
977
|
const {
|
|
978
978
|
isTop: u,
|
|
979
|
-
isBottom:
|
|
980
|
-
isLeft:
|
|
979
|
+
isBottom: d,
|
|
980
|
+
isLeft: f,
|
|
981
981
|
isRight: x
|
|
982
982
|
} = Yr(e), p = {
|
|
983
983
|
x: 0,
|
|
@@ -989,7 +989,7 @@ function hs(e, t, n, r, o) {
|
|
|
989
989
|
height: t.height * o.y,
|
|
990
990
|
width: t.width * o.x
|
|
991
991
|
};
|
|
992
|
-
return !u && s <= t.top + v.height ? (p.y = ce.Backward, h.y = r * Math.abs((t.top + v.height - s) / v.height)) : !
|
|
992
|
+
return !u && s <= t.top + v.height ? (p.y = ce.Backward, h.y = r * Math.abs((t.top + v.height - s) / v.height)) : !d && l >= t.bottom - v.height && (p.y = ce.Forward, h.y = r * Math.abs((t.bottom - v.height - l) / v.height)), !x && c >= t.right - v.width ? (p.x = ce.Forward, h.x = r * Math.abs((t.right - v.width - c) / v.width)) : !f && a <= t.left + v.width && (p.x = ce.Backward, h.x = r * Math.abs((t.left + v.width - a) / v.width)), {
|
|
993
993
|
direction: p,
|
|
994
994
|
speed: h
|
|
995
995
|
};
|
|
@@ -998,15 +998,15 @@ function ps(e) {
|
|
|
998
998
|
if (e === document.scrollingElement) {
|
|
999
999
|
const {
|
|
1000
1000
|
innerWidth: s,
|
|
1001
|
-
innerHeight:
|
|
1001
|
+
innerHeight: a
|
|
1002
1002
|
} = window;
|
|
1003
1003
|
return {
|
|
1004
1004
|
top: 0,
|
|
1005
1005
|
left: 0,
|
|
1006
1006
|
right: s,
|
|
1007
|
-
bottom:
|
|
1007
|
+
bottom: a,
|
|
1008
1008
|
width: s,
|
|
1009
|
-
height:
|
|
1009
|
+
height: a
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
1012
|
const {
|
|
@@ -1055,12 +1055,12 @@ class In {
|
|
|
1055
1055
|
this.rect = {
|
|
1056
1056
|
...t
|
|
1057
1057
|
}, this.width = t.width, this.height = t.height;
|
|
1058
|
-
for (const [s,
|
|
1059
|
-
for (const l of
|
|
1058
|
+
for (const [s, a, c] of xs)
|
|
1059
|
+
for (const l of a)
|
|
1060
1060
|
Object.defineProperty(this, l, {
|
|
1061
1061
|
get: () => {
|
|
1062
|
-
const u =
|
|
1063
|
-
return this.rect[l] +
|
|
1062
|
+
const u = c(r), d = o[s] - u;
|
|
1063
|
+
return this.rect[l] + d;
|
|
1064
1064
|
},
|
|
1065
1065
|
enumerable: !0
|
|
1066
1066
|
});
|
|
@@ -1166,8 +1166,8 @@ class Wr {
|
|
|
1166
1166
|
options: o
|
|
1167
1167
|
} = this.props, {
|
|
1168
1168
|
keyboardCodes: s = Hr,
|
|
1169
|
-
coordinateGetter:
|
|
1170
|
-
scrollBehavior:
|
|
1169
|
+
coordinateGetter: a = ws,
|
|
1170
|
+
scrollBehavior: c = "smooth"
|
|
1171
1171
|
} = o, {
|
|
1172
1172
|
code: l
|
|
1173
1173
|
} = t;
|
|
@@ -1181,18 +1181,18 @@ class Wr {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
const {
|
|
1183
1183
|
collisionRect: u
|
|
1184
|
-
} = r.current,
|
|
1184
|
+
} = r.current, d = u ? {
|
|
1185
1185
|
x: u.left,
|
|
1186
1186
|
y: u.top
|
|
1187
1187
|
} : je;
|
|
1188
|
-
this.referenceCoordinates || (this.referenceCoordinates =
|
|
1189
|
-
const
|
|
1188
|
+
this.referenceCoordinates || (this.referenceCoordinates = d);
|
|
1189
|
+
const f = a(t, {
|
|
1190
1190
|
active: n,
|
|
1191
1191
|
context: r.current,
|
|
1192
|
-
currentCoordinates:
|
|
1192
|
+
currentCoordinates: d
|
|
1193
1193
|
});
|
|
1194
|
-
if (
|
|
1195
|
-
const x = Yt(
|
|
1194
|
+
if (f) {
|
|
1195
|
+
const x = Yt(f, d), p = {
|
|
1196
1196
|
x: 0,
|
|
1197
1197
|
y: 0
|
|
1198
1198
|
}, {
|
|
@@ -1201,46 +1201,46 @@ class Wr {
|
|
|
1201
1201
|
for (const v of h) {
|
|
1202
1202
|
const b = t.code, {
|
|
1203
1203
|
isTop: y,
|
|
1204
|
-
isRight:
|
|
1205
|
-
isLeft:
|
|
1206
|
-
isBottom:
|
|
1204
|
+
isRight: j,
|
|
1205
|
+
isLeft: R,
|
|
1206
|
+
isBottom: $,
|
|
1207
1207
|
maxScroll: M,
|
|
1208
|
-
minScroll:
|
|
1208
|
+
minScroll: E
|
|
1209
1209
|
} = Yr(v), I = ps(v), A = {
|
|
1210
|
-
x: Math.min(b === B.Right ? I.right - I.width / 2 : I.right, Math.max(b === B.Right ? I.left : I.left + I.width / 2,
|
|
1211
|
-
y: Math.min(b === B.Down ? I.bottom - I.height / 2 : I.bottom, Math.max(b === B.Down ? I.top : I.top + I.height / 2,
|
|
1212
|
-
},
|
|
1213
|
-
if (
|
|
1214
|
-
const
|
|
1215
|
-
if (
|
|
1210
|
+
x: Math.min(b === B.Right ? I.right - I.width / 2 : I.right, Math.max(b === B.Right ? I.left : I.left + I.width / 2, f.x)),
|
|
1211
|
+
y: Math.min(b === B.Down ? I.bottom - I.height / 2 : I.bottom, Math.max(b === B.Down ? I.top : I.top + I.height / 2, f.y))
|
|
1212
|
+
}, H = b === B.Right && !j || b === B.Left && !R, P = b === B.Down && !$ || b === B.Up && !y;
|
|
1213
|
+
if (H && A.x !== f.x) {
|
|
1214
|
+
const T = v.scrollLeft + x.x, V = b === B.Right && T <= M.x || b === B.Left && T >= E.x;
|
|
1215
|
+
if (V && !x.y) {
|
|
1216
1216
|
v.scrollTo({
|
|
1217
|
-
left:
|
|
1218
|
-
behavior:
|
|
1217
|
+
left: T,
|
|
1218
|
+
behavior: c
|
|
1219
1219
|
});
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
|
-
|
|
1222
|
+
V ? p.x = v.scrollLeft - T : p.x = b === B.Right ? v.scrollLeft - M.x : v.scrollLeft - E.x, p.x && v.scrollBy({
|
|
1223
1223
|
left: -p.x,
|
|
1224
|
-
behavior:
|
|
1224
|
+
behavior: c
|
|
1225
1225
|
});
|
|
1226
1226
|
break;
|
|
1227
|
-
} else if (P && A.y !==
|
|
1228
|
-
const
|
|
1229
|
-
if (
|
|
1227
|
+
} else if (P && A.y !== f.y) {
|
|
1228
|
+
const T = v.scrollTop + x.y, V = b === B.Down && T <= M.y || b === B.Up && T >= E.y;
|
|
1229
|
+
if (V && !x.x) {
|
|
1230
1230
|
v.scrollTo({
|
|
1231
|
-
top:
|
|
1232
|
-
behavior:
|
|
1231
|
+
top: T,
|
|
1232
|
+
behavior: c
|
|
1233
1233
|
});
|
|
1234
1234
|
return;
|
|
1235
1235
|
}
|
|
1236
|
-
|
|
1236
|
+
V ? p.y = v.scrollTop - T : p.y = b === B.Down ? v.scrollTop - M.y : v.scrollTop - E.y, p.y && v.scrollBy({
|
|
1237
1237
|
top: -p.y,
|
|
1238
|
-
behavior:
|
|
1238
|
+
behavior: c
|
|
1239
1239
|
});
|
|
1240
1240
|
break;
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
|
-
this.handleMove(t, Qe(Yt(
|
|
1243
|
+
this.handleMove(t, Qe(Yt(f, this.referenceCoordinates), p));
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
@@ -1276,11 +1276,11 @@ Wr.activators = [{
|
|
|
1276
1276
|
active: s
|
|
1277
1277
|
} = n;
|
|
1278
1278
|
const {
|
|
1279
|
-
code:
|
|
1279
|
+
code: a
|
|
1280
1280
|
} = e.nativeEvent;
|
|
1281
|
-
if (r.start.includes(
|
|
1282
|
-
const
|
|
1283
|
-
return
|
|
1281
|
+
if (r.start.includes(a)) {
|
|
1282
|
+
const c = s.activatorNode.current;
|
|
1283
|
+
return c && e.target !== c ? !1 : (e.preventDefault(), o?.({
|
|
1284
1284
|
event: e.nativeEvent
|
|
1285
1285
|
}), !0);
|
|
1286
1286
|
}
|
|
@@ -1300,9 +1300,9 @@ class An {
|
|
|
1300
1300
|
const {
|
|
1301
1301
|
event: s
|
|
1302
1302
|
} = t, {
|
|
1303
|
-
target:
|
|
1303
|
+
target: a
|
|
1304
1304
|
} = s;
|
|
1305
|
-
this.props = t, this.events = n, this.document = rt(
|
|
1305
|
+
this.props = t, this.events = n, this.document = rt(a), this.documentListeners = new ht(this.document), this.listeners = new ht(r), this.windowListeners = new ht(ge(a)), this.initialCoordinates = (o = wn(s)) != null ? o : je, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
1306
1306
|
}
|
|
1307
1307
|
attach() {
|
|
1308
1308
|
const {
|
|
@@ -1361,27 +1361,27 @@ class An {
|
|
|
1361
1361
|
initialCoordinates: o,
|
|
1362
1362
|
props: s
|
|
1363
1363
|
} = this, {
|
|
1364
|
-
onMove:
|
|
1364
|
+
onMove: a,
|
|
1365
1365
|
options: {
|
|
1366
|
-
activationConstraint:
|
|
1366
|
+
activationConstraint: c
|
|
1367
1367
|
}
|
|
1368
1368
|
} = s;
|
|
1369
1369
|
if (!o)
|
|
1370
1370
|
return;
|
|
1371
1371
|
const l = (n = wn(t)) != null ? n : je, u = Yt(o, l);
|
|
1372
|
-
if (!r &&
|
|
1373
|
-
if (tr(
|
|
1374
|
-
if (
|
|
1372
|
+
if (!r && c) {
|
|
1373
|
+
if (tr(c)) {
|
|
1374
|
+
if (c.tolerance != null && un(u, c.tolerance))
|
|
1375
1375
|
return this.handleCancel();
|
|
1376
|
-
if (un(u,
|
|
1376
|
+
if (un(u, c.distance))
|
|
1377
1377
|
return this.handleStart();
|
|
1378
1378
|
}
|
|
1379
|
-
if (nr(
|
|
1379
|
+
if (nr(c) && un(u, c.tolerance))
|
|
1380
1380
|
return this.handleCancel();
|
|
1381
|
-
this.handlePending(
|
|
1381
|
+
this.handlePending(c, u);
|
|
1382
1382
|
return;
|
|
1383
1383
|
}
|
|
1384
|
-
t.cancelable && t.preventDefault(),
|
|
1384
|
+
t.cancelable && t.preventDefault(), a(l);
|
|
1385
1385
|
}
|
|
1386
1386
|
handleEnd() {
|
|
1387
1387
|
const {
|
|
@@ -1524,24 +1524,24 @@ function Rs(e) {
|
|
|
1524
1524
|
canScroll: r,
|
|
1525
1525
|
draggingRect: o,
|
|
1526
1526
|
enabled: s,
|
|
1527
|
-
interval:
|
|
1528
|
-
order:
|
|
1527
|
+
interval: a = 5,
|
|
1528
|
+
order: c = Ht.TreeOrder,
|
|
1529
1529
|
pointerCoordinates: l,
|
|
1530
1530
|
scrollableAncestors: u,
|
|
1531
|
-
scrollableAncestorRects:
|
|
1532
|
-
delta:
|
|
1531
|
+
scrollableAncestorRects: d,
|
|
1532
|
+
delta: f,
|
|
1533
1533
|
threshold: x
|
|
1534
1534
|
} = e;
|
|
1535
1535
|
const p = _s({
|
|
1536
|
-
delta:
|
|
1536
|
+
delta: f,
|
|
1537
1537
|
disabled: !s
|
|
1538
|
-
}), [h, v] = Lo(), b =
|
|
1538
|
+
}), [h, v] = Lo(), b = X({
|
|
1539
1539
|
x: 0,
|
|
1540
1540
|
y: 0
|
|
1541
|
-
}), y =
|
|
1541
|
+
}), y = X({
|
|
1542
1542
|
x: 0,
|
|
1543
1543
|
y: 0
|
|
1544
|
-
}),
|
|
1544
|
+
}), j = U(() => {
|
|
1545
1545
|
switch (n) {
|
|
1546
1546
|
case pt.Pointer:
|
|
1547
1547
|
return l ? {
|
|
@@ -1553,33 +1553,33 @@ function Rs(e) {
|
|
|
1553
1553
|
case pt.DraggableRect:
|
|
1554
1554
|
return o;
|
|
1555
1555
|
}
|
|
1556
|
-
}, [n, o, l]),
|
|
1557
|
-
const
|
|
1558
|
-
if (!
|
|
1556
|
+
}, [n, o, l]), R = X(null), $ = ee(() => {
|
|
1557
|
+
const E = R.current;
|
|
1558
|
+
if (!E)
|
|
1559
1559
|
return;
|
|
1560
1560
|
const I = b.current.x * y.current.x, A = b.current.y * y.current.y;
|
|
1561
|
-
|
|
1562
|
-
}, []), M = U(() =>
|
|
1561
|
+
E.scrollBy(I, A);
|
|
1562
|
+
}, []), M = U(() => c === Ht.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
1563
1563
|
Y(
|
|
1564
1564
|
() => {
|
|
1565
|
-
if (!s || !u.length || !
|
|
1565
|
+
if (!s || !u.length || !j) {
|
|
1566
1566
|
v();
|
|
1567
1567
|
return;
|
|
1568
1568
|
}
|
|
1569
|
-
for (const
|
|
1570
|
-
if (r?.(
|
|
1569
|
+
for (const E of M) {
|
|
1570
|
+
if (r?.(E) === !1)
|
|
1571
1571
|
continue;
|
|
1572
|
-
const I = u.indexOf(
|
|
1572
|
+
const I = u.indexOf(E), A = d[I];
|
|
1573
1573
|
if (!A)
|
|
1574
1574
|
continue;
|
|
1575
1575
|
const {
|
|
1576
|
-
direction:
|
|
1576
|
+
direction: H,
|
|
1577
1577
|
speed: P
|
|
1578
|
-
} = hs(
|
|
1579
|
-
for (const
|
|
1580
|
-
p[
|
|
1578
|
+
} = hs(E, A, j, t, x);
|
|
1579
|
+
for (const T of ["x", "y"])
|
|
1580
|
+
p[T][H[T]] || (P[T] = 0, H[T] = 0);
|
|
1581
1581
|
if (P.x > 0 || P.y > 0) {
|
|
1582
|
-
v(),
|
|
1582
|
+
v(), R.current = E, h($, a), b.current = P, y.current = H;
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
@@ -1594,19 +1594,19 @@ function Rs(e) {
|
|
|
1594
1594
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1595
1595
|
[
|
|
1596
1596
|
t,
|
|
1597
|
-
|
|
1597
|
+
$,
|
|
1598
1598
|
r,
|
|
1599
1599
|
v,
|
|
1600
1600
|
s,
|
|
1601
|
-
|
|
1601
|
+
a,
|
|
1602
1602
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1603
|
-
JSON.stringify(
|
|
1603
|
+
JSON.stringify(j),
|
|
1604
1604
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1605
1605
|
JSON.stringify(p),
|
|
1606
1606
|
h,
|
|
1607
1607
|
u,
|
|
1608
1608
|
M,
|
|
1609
|
-
|
|
1609
|
+
d,
|
|
1610
1610
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1611
1611
|
JSON.stringify(x)
|
|
1612
1612
|
]
|
|
@@ -1658,9 +1658,9 @@ function Os(e, t) {
|
|
|
1658
1658
|
return U(() => e.reduce((n, r) => {
|
|
1659
1659
|
const {
|
|
1660
1660
|
sensor: o
|
|
1661
|
-
} = r, s = o.activators.map((
|
|
1662
|
-
eventName:
|
|
1663
|
-
handler: t(
|
|
1661
|
+
} = r, s = o.activators.map((a) => ({
|
|
1662
|
+
eventName: a.eventName,
|
|
1663
|
+
handler: t(a.handler, r)
|
|
1664
1664
|
}));
|
|
1665
1665
|
return [...n, ...s];
|
|
1666
1666
|
}, []), [e, t]);
|
|
@@ -1680,53 +1680,53 @@ function Ms(e, t) {
|
|
|
1680
1680
|
dependencies: r,
|
|
1681
1681
|
config: o
|
|
1682
1682
|
} = t;
|
|
1683
|
-
const [s,
|
|
1684
|
-
frequency:
|
|
1683
|
+
const [s, a] = J(null), {
|
|
1684
|
+
frequency: c,
|
|
1685
1685
|
measure: l,
|
|
1686
1686
|
strategy: u
|
|
1687
|
-
} = o,
|
|
1688
|
-
y === void 0 && (y = []), !x.current &&
|
|
1689
|
-
}, [x]), h =
|
|
1690
|
-
if (
|
|
1687
|
+
} = o, d = X(e), f = b(), x = vt(f), p = ee(function(y) {
|
|
1688
|
+
y === void 0 && (y = []), !x.current && a((j) => j === null ? y : j.concat(y.filter((R) => !j.includes(R))));
|
|
1689
|
+
}, [x]), h = X(null), v = yt((y) => {
|
|
1690
|
+
if (f && !n)
|
|
1691
1691
|
return rr;
|
|
1692
|
-
if (!y || y === rr ||
|
|
1693
|
-
const
|
|
1694
|
-
for (let
|
|
1695
|
-
if (!
|
|
1692
|
+
if (!y || y === rr || d.current !== e || s != null) {
|
|
1693
|
+
const j = /* @__PURE__ */ new Map();
|
|
1694
|
+
for (let R of e) {
|
|
1695
|
+
if (!R)
|
|
1696
1696
|
continue;
|
|
1697
|
-
if (s && s.length > 0 && !s.includes(
|
|
1698
|
-
|
|
1697
|
+
if (s && s.length > 0 && !s.includes(R.id) && R.rect.current) {
|
|
1698
|
+
j.set(R.id, R.rect.current);
|
|
1699
1699
|
continue;
|
|
1700
1700
|
}
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1701
|
+
const $ = R.node.current, M = $ ? new In(l($), $) : null;
|
|
1702
|
+
R.rect.current = M, M && j.set(R.id, M);
|
|
1703
1703
|
}
|
|
1704
|
-
return
|
|
1704
|
+
return j;
|
|
1705
1705
|
}
|
|
1706
1706
|
return y;
|
|
1707
|
-
}, [e, s, n,
|
|
1707
|
+
}, [e, s, n, f, l]);
|
|
1708
1708
|
return Y(() => {
|
|
1709
|
-
|
|
1709
|
+
d.current = e;
|
|
1710
1710
|
}, [e]), Y(
|
|
1711
1711
|
() => {
|
|
1712
|
-
|
|
1712
|
+
f || p();
|
|
1713
1713
|
},
|
|
1714
1714
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1715
|
-
[n,
|
|
1715
|
+
[n, f]
|
|
1716
1716
|
), Y(
|
|
1717
1717
|
() => {
|
|
1718
|
-
s && s.length > 0 &&
|
|
1718
|
+
s && s.length > 0 && a(null);
|
|
1719
1719
|
},
|
|
1720
1720
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1721
1721
|
[JSON.stringify(s)]
|
|
1722
1722
|
), Y(
|
|
1723
1723
|
() => {
|
|
1724
|
-
|
|
1724
|
+
f || typeof c != "number" || h.current !== null || (h.current = setTimeout(() => {
|
|
1725
1725
|
p(), h.current = null;
|
|
1726
|
-
},
|
|
1726
|
+
}, c));
|
|
1727
1727
|
},
|
|
1728
1728
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1729
|
-
[
|
|
1729
|
+
[c, f, p, ...r]
|
|
1730
1730
|
), {
|
|
1731
1731
|
droppableRects: v,
|
|
1732
1732
|
measureDroppableContainers: p,
|
|
@@ -1797,32 +1797,32 @@ function or(e, t, n) {
|
|
|
1797
1797
|
var u;
|
|
1798
1798
|
return (u = l ?? n) != null ? u : null;
|
|
1799
1799
|
}
|
|
1800
|
-
const
|
|
1801
|
-
return JSON.stringify(l) === JSON.stringify(
|
|
1800
|
+
const d = t(e);
|
|
1801
|
+
return JSON.stringify(l) === JSON.stringify(d) ? l : d;
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
|
-
const
|
|
1804
|
+
const a = Is({
|
|
1805
1805
|
callback(l) {
|
|
1806
1806
|
if (e)
|
|
1807
1807
|
for (const u of l) {
|
|
1808
1808
|
const {
|
|
1809
|
-
type:
|
|
1810
|
-
target:
|
|
1809
|
+
type: d,
|
|
1810
|
+
target: f
|
|
1811
1811
|
} = u;
|
|
1812
|
-
if (
|
|
1812
|
+
if (d === "childList" && f instanceof HTMLElement && f.contains(e)) {
|
|
1813
1813
|
s();
|
|
1814
1814
|
break;
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
|
-
}),
|
|
1818
|
+
}), c = Zt({
|
|
1819
1819
|
callback: s
|
|
1820
1820
|
});
|
|
1821
1821
|
return $e(() => {
|
|
1822
|
-
s(), e ? (
|
|
1822
|
+
s(), e ? (c?.observe(e), a?.observe(document.body, {
|
|
1823
1823
|
childList: !0,
|
|
1824
1824
|
subtree: !0
|
|
1825
|
-
})) : (
|
|
1825
|
+
})) : (c?.disconnect(), a?.disconnect());
|
|
1826
1826
|
}, [e]), r;
|
|
1827
1827
|
}
|
|
1828
1828
|
function ks(e) {
|
|
@@ -1831,42 +1831,42 @@ function ks(e) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
const sr = [];
|
|
1833
1833
|
function Ls(e) {
|
|
1834
|
-
const t =
|
|
1834
|
+
const t = X(e), n = yt((r) => e ? r && r !== sr && e && t.current && e.parentNode === t.current.parentNode ? r : $n(e) : sr, [e]);
|
|
1835
1835
|
return Y(() => {
|
|
1836
1836
|
t.current = e;
|
|
1837
1837
|
}, [e]), n;
|
|
1838
1838
|
}
|
|
1839
1839
|
function Ns(e) {
|
|
1840
|
-
const [t, n] = J(null), r =
|
|
1841
|
-
const
|
|
1842
|
-
|
|
1840
|
+
const [t, n] = J(null), r = X(e), o = ee((s) => {
|
|
1841
|
+
const a = ln(s.target);
|
|
1842
|
+
a && n((c) => c ? (c.set(a, Sn(a)), new Map(c)) : null);
|
|
1843
1843
|
}, []);
|
|
1844
1844
|
return Y(() => {
|
|
1845
1845
|
const s = r.current;
|
|
1846
1846
|
if (e !== s) {
|
|
1847
|
-
|
|
1848
|
-
const
|
|
1847
|
+
a(s);
|
|
1848
|
+
const c = e.map((l) => {
|
|
1849
1849
|
const u = ln(l);
|
|
1850
1850
|
return u ? (u.addEventListener("scroll", o, {
|
|
1851
1851
|
passive: !0
|
|
1852
1852
|
}), [u, Sn(u)]) : null;
|
|
1853
1853
|
}).filter((l) => l != null);
|
|
1854
|
-
n(
|
|
1854
|
+
n(c.length ? new Map(c) : null), r.current = e;
|
|
1855
1855
|
}
|
|
1856
1856
|
return () => {
|
|
1857
|
-
|
|
1857
|
+
a(e), a(s);
|
|
1858
1858
|
};
|
|
1859
|
-
function c
|
|
1860
|
-
|
|
1859
|
+
function a(c) {
|
|
1860
|
+
c.forEach((l) => {
|
|
1861
1861
|
const u = ln(l);
|
|
1862
1862
|
u?.removeEventListener("scroll", o);
|
|
1863
1863
|
});
|
|
1864
1864
|
}
|
|
1865
|
-
}, [o, e]), U(() => e.length ? t ? Array.from(t.values()).reduce((s,
|
|
1865
|
+
}, [o, e]), U(() => e.length ? t ? Array.from(t.values()).reduce((s, a) => Qe(s, a), je) : Vr(e) : je, [e, t]);
|
|
1866
1866
|
}
|
|
1867
1867
|
function ir(e, t) {
|
|
1868
1868
|
t === void 0 && (t = []);
|
|
1869
|
-
const n =
|
|
1869
|
+
const n = X(null);
|
|
1870
1870
|
return Y(
|
|
1871
1871
|
() => {
|
|
1872
1872
|
n.current = null;
|
|
@@ -1910,8 +1910,8 @@ function Ps(e, t) {
|
|
|
1910
1910
|
eventName: o,
|
|
1911
1911
|
handler: s
|
|
1912
1912
|
} = r;
|
|
1913
|
-
return n[o] = (
|
|
1914
|
-
s(
|
|
1913
|
+
return n[o] = (a) => {
|
|
1914
|
+
s(a, t);
|
|
1915
1915
|
}, n;
|
|
1916
1916
|
}, {}), [e, t]);
|
|
1917
1917
|
}
|
|
@@ -1922,14 +1922,14 @@ const ar = [];
|
|
|
1922
1922
|
function Fs(e, t) {
|
|
1923
1923
|
t === void 0 && (t = ot);
|
|
1924
1924
|
const [n] = e, r = Ur(n ? ge(n) : null), [o, s] = J(ar);
|
|
1925
|
-
function
|
|
1925
|
+
function a() {
|
|
1926
1926
|
s(() => e.length ? e.map((l) => Fr(l) ? r : new In(t(l), l)) : ar);
|
|
1927
1927
|
}
|
|
1928
|
-
const
|
|
1929
|
-
callback:
|
|
1928
|
+
const c = Zt({
|
|
1929
|
+
callback: a
|
|
1930
1930
|
});
|
|
1931
1931
|
return $e(() => {
|
|
1932
|
-
|
|
1932
|
+
c?.disconnect(), a(), e.forEach((l) => c?.observe(l));
|
|
1933
1933
|
}, [e]), o;
|
|
1934
1934
|
}
|
|
1935
1935
|
function Ys(e) {
|
|
@@ -1946,13 +1946,13 @@ function Vs(e) {
|
|
|
1946
1946
|
} = e;
|
|
1947
1947
|
const [n, r] = J(null), o = ee((u) => {
|
|
1948
1948
|
for (const {
|
|
1949
|
-
target:
|
|
1949
|
+
target: d
|
|
1950
1950
|
} of u)
|
|
1951
|
-
if (bt(
|
|
1952
|
-
r((
|
|
1953
|
-
const x = t(
|
|
1954
|
-
return
|
|
1955
|
-
...
|
|
1951
|
+
if (bt(d)) {
|
|
1952
|
+
r((f) => {
|
|
1953
|
+
const x = t(d);
|
|
1954
|
+
return f ? {
|
|
1955
|
+
...f,
|
|
1956
1956
|
width: x.width,
|
|
1957
1957
|
height: x.height
|
|
1958
1958
|
} : x;
|
|
@@ -1961,15 +1961,15 @@ function Vs(e) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
}, [t]), s = Zt({
|
|
1963
1963
|
callback: o
|
|
1964
|
-
}),
|
|
1965
|
-
const
|
|
1966
|
-
s?.disconnect(),
|
|
1967
|
-
}, [t, s]), [
|
|
1964
|
+
}), a = ee((u) => {
|
|
1965
|
+
const d = Ys(u);
|
|
1966
|
+
s?.disconnect(), d && s?.observe(d), r(d ? t(d) : null);
|
|
1967
|
+
}, [t, s]), [c, l] = Ft(a);
|
|
1968
1968
|
return U(() => ({
|
|
1969
|
-
nodeRef:
|
|
1969
|
+
nodeRef: c,
|
|
1970
1970
|
rect: n,
|
|
1971
1971
|
setRef: l
|
|
1972
|
-
}), [n,
|
|
1972
|
+
}), [n, c, l]);
|
|
1973
1973
|
}
|
|
1974
1974
|
const Hs = [{
|
|
1975
1975
|
sensor: kn,
|
|
@@ -2130,15 +2130,15 @@ function Xs(e, t) {
|
|
|
2130
2130
|
} = t, s = e.droppable.containers.get(n);
|
|
2131
2131
|
if (!s || r !== s.key)
|
|
2132
2132
|
return e;
|
|
2133
|
-
const
|
|
2134
|
-
return
|
|
2133
|
+
const a = new gt(e.droppable.containers);
|
|
2134
|
+
return a.set(n, {
|
|
2135
2135
|
...s,
|
|
2136
2136
|
disabled: o
|
|
2137
2137
|
}), {
|
|
2138
2138
|
...e,
|
|
2139
2139
|
droppable: {
|
|
2140
2140
|
...e.droppable,
|
|
2141
|
-
containers:
|
|
2141
|
+
containers: a
|
|
2142
2142
|
}
|
|
2143
2143
|
};
|
|
2144
2144
|
}
|
|
@@ -2170,33 +2170,33 @@ function qs(e) {
|
|
|
2170
2170
|
active: n,
|
|
2171
2171
|
activatorEvent: r,
|
|
2172
2172
|
draggableNodes: o
|
|
2173
|
-
} = Be(Qt), s = yn(r),
|
|
2173
|
+
} = Be(Qt), s = yn(r), a = yn(n?.id);
|
|
2174
2174
|
return Y(() => {
|
|
2175
|
-
if (!t && !r && s &&
|
|
2175
|
+
if (!t && !r && s && a != null) {
|
|
2176
2176
|
if (!Mn(s) || document.activeElement === s.target)
|
|
2177
2177
|
return;
|
|
2178
|
-
const
|
|
2179
|
-
if (!
|
|
2178
|
+
const c = o.get(a);
|
|
2179
|
+
if (!c)
|
|
2180
2180
|
return;
|
|
2181
2181
|
const {
|
|
2182
2182
|
activatorNode: l,
|
|
2183
2183
|
node: u
|
|
2184
|
-
} =
|
|
2184
|
+
} = c;
|
|
2185
2185
|
if (!l.current && !u.current)
|
|
2186
2186
|
return;
|
|
2187
2187
|
requestAnimationFrame(() => {
|
|
2188
|
-
for (const
|
|
2189
|
-
if (!
|
|
2188
|
+
for (const d of [l.current, u.current]) {
|
|
2189
|
+
if (!d)
|
|
2190
2190
|
continue;
|
|
2191
|
-
const
|
|
2192
|
-
if (
|
|
2193
|
-
|
|
2191
|
+
const f = Po(d);
|
|
2192
|
+
if (f) {
|
|
2193
|
+
f.focus();
|
|
2194
2194
|
break;
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
2197
|
});
|
|
2198
2198
|
}
|
|
2199
|
-
}, [r, t, o,
|
|
2199
|
+
}, [r, t, o, a, s]), null;
|
|
2200
2200
|
}
|
|
2201
2201
|
function Ks(e, t) {
|
|
2202
2202
|
let {
|
|
@@ -2235,15 +2235,15 @@ function Zs(e) {
|
|
|
2235
2235
|
initialRect: r,
|
|
2236
2236
|
config: o = !0
|
|
2237
2237
|
} = e;
|
|
2238
|
-
const s =
|
|
2239
|
-
x:
|
|
2240
|
-
y:
|
|
2238
|
+
const s = X(!1), {
|
|
2239
|
+
x: a,
|
|
2240
|
+
y: c
|
|
2241
2241
|
} = typeof o == "boolean" ? {
|
|
2242
2242
|
x: o,
|
|
2243
2243
|
y: o
|
|
2244
2244
|
} : o;
|
|
2245
2245
|
$e(() => {
|
|
2246
|
-
if (!
|
|
2246
|
+
if (!a && !c || !t) {
|
|
2247
2247
|
s.current = !1;
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
@@ -2252,15 +2252,15 @@ function Zs(e) {
|
|
|
2252
2252
|
const u = t?.node.current;
|
|
2253
2253
|
if (!u || u.isConnected === !1)
|
|
2254
2254
|
return;
|
|
2255
|
-
const
|
|
2256
|
-
if (
|
|
2255
|
+
const d = n(u), f = Lr(d, r);
|
|
2256
|
+
if (a || (f.x = 0), c || (f.y = 0), s.current = !0, Math.abs(f.x) > 0 || Math.abs(f.y) > 0) {
|
|
2257
2257
|
const x = Nr(u);
|
|
2258
2258
|
x && x.scrollBy({
|
|
2259
|
-
top:
|
|
2260
|
-
left:
|
|
2259
|
+
top: f.y,
|
|
2260
|
+
left: f.x
|
|
2261
2261
|
});
|
|
2262
2262
|
}
|
|
2263
|
-
}, [t,
|
|
2263
|
+
}, [t, a, c, r, n]);
|
|
2264
2264
|
}
|
|
2265
2265
|
const Xr = /* @__PURE__ */ tt({
|
|
2266
2266
|
...je,
|
|
@@ -2274,52 +2274,52 @@ var He;
|
|
|
2274
2274
|
const qr = /* @__PURE__ */ Do(function(t) {
|
|
2275
2275
|
var n, r, o, s;
|
|
2276
2276
|
let {
|
|
2277
|
-
id:
|
|
2278
|
-
accessibility:
|
|
2277
|
+
id: a,
|
|
2278
|
+
accessibility: c,
|
|
2279
2279
|
autoScroll: l = !0,
|
|
2280
2280
|
children: u,
|
|
2281
|
-
sensors:
|
|
2282
|
-
collisionDetection:
|
|
2281
|
+
sensors: d = Hs,
|
|
2282
|
+
collisionDetection: f = ns,
|
|
2283
2283
|
measuring: x,
|
|
2284
2284
|
modifiers: p,
|
|
2285
2285
|
...h
|
|
2286
2286
|
} = t;
|
|
2287
|
-
const v = jo(Xs, void 0, Gs), [b, y] = v, [
|
|
2287
|
+
const v = jo(Xs, void 0, Gs), [b, y] = v, [j, R] = Bo(), [$, M] = J(He.Uninitialized), E = $ === He.Initialized, {
|
|
2288
2288
|
draggable: {
|
|
2289
2289
|
active: I,
|
|
2290
2290
|
nodes: A,
|
|
2291
|
-
translate:
|
|
2291
|
+
translate: H
|
|
2292
2292
|
},
|
|
2293
2293
|
droppable: {
|
|
2294
2294
|
containers: P
|
|
2295
2295
|
}
|
|
2296
|
-
} = b,
|
|
2296
|
+
} = b, T = I != null ? A.get(I) : null, V = X({
|
|
2297
2297
|
initial: null,
|
|
2298
2298
|
translated: null
|
|
2299
|
-
}),
|
|
2299
|
+
}), K = U(() => {
|
|
2300
2300
|
var de;
|
|
2301
2301
|
return I != null ? {
|
|
2302
2302
|
id: I,
|
|
2303
2303
|
// It's possible for the active node to unmount while dragging
|
|
2304
|
-
data: (de =
|
|
2305
|
-
rect:
|
|
2304
|
+
data: (de = T?.data) != null ? de : Ws,
|
|
2305
|
+
rect: V
|
|
2306
2306
|
} : null;
|
|
2307
|
-
}, [I,
|
|
2307
|
+
}, [I, T]), O = X(null), [C, w] = J(null), [_, S] = J(null), k = vt(h, Object.values(h)), N = wt("DndDescribedBy", a), g = U(() => P.getEnabled(), [P]), D = Js(x), {
|
|
2308
2308
|
droppableRects: L,
|
|
2309
2309
|
measureDroppableContainers: F,
|
|
2310
2310
|
measuringScheduled: Z
|
|
2311
2311
|
} = Ms(g, {
|
|
2312
|
-
dragging:
|
|
2313
|
-
dependencies: [
|
|
2312
|
+
dragging: E,
|
|
2313
|
+
dependencies: [H.x, H.y],
|
|
2314
2314
|
config: D.droppable
|
|
2315
|
-
}), Q = Ts(A, I),
|
|
2315
|
+
}), Q = Ts(A, I), W = U(() => _ ? wn(_) : null, [_]), ne = So(), re = $s(Q, D.draggable.measure);
|
|
2316
2316
|
Zs({
|
|
2317
2317
|
activeNode: I != null ? A.get(I) : null,
|
|
2318
2318
|
config: ne.layoutShiftCompensation,
|
|
2319
2319
|
initialRect: re,
|
|
2320
2320
|
measure: D.draggable.measure
|
|
2321
2321
|
});
|
|
2322
|
-
const z = or(Q, D.draggable.measure, re), pe = or(Q ? Q.parentElement : null), ue =
|
|
2322
|
+
const z = or(Q, D.draggable.measure, re), pe = or(Q ? Q.parentElement : null), ue = X({
|
|
2323
2323
|
activatorEvent: null,
|
|
2324
2324
|
active: null,
|
|
2325
2325
|
activeNode: Q,
|
|
@@ -2335,15 +2335,15 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2335
2335
|
scrollAdjustedTranslate: null
|
|
2336
2336
|
}), Se = P.getNodeFor((n = ue.current.over) == null ? void 0 : n.id), ke = Vs({
|
|
2337
2337
|
measure: D.dragOverlay.measure
|
|
2338
|
-
}), Xe = (r = ke.nodeRef.current) != null ? r : Q, qe =
|
|
2338
|
+
}), Xe = (r = ke.nodeRef.current) != null ? r : Q, qe = E ? (o = ke.rect) != null ? o : z : null, zn = !!(ke.nodeRef.current && ke.rect), Pn = ks(zn ? null : z), rn = Ur(Xe ? ge(Xe) : null), ze = Ls(E ? Se ?? Q : null), Ct = Fs(ze), Dt = Ks(p, {
|
|
2339
2339
|
transform: {
|
|
2340
|
-
x:
|
|
2341
|
-
y:
|
|
2340
|
+
x: H.x - Pn.x,
|
|
2341
|
+
y: H.y - Pn.y,
|
|
2342
2342
|
scaleX: 1,
|
|
2343
2343
|
scaleY: 1
|
|
2344
2344
|
},
|
|
2345
|
-
activatorEvent:
|
|
2346
|
-
active:
|
|
2345
|
+
activatorEvent: _,
|
|
2346
|
+
active: K,
|
|
2347
2347
|
activeNodeRect: z,
|
|
2348
2348
|
containerNodeRect: pe,
|
|
2349
2349
|
draggingNodeRect: qe,
|
|
@@ -2352,25 +2352,25 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2352
2352
|
scrollableAncestors: ze,
|
|
2353
2353
|
scrollableAncestorRects: Ct,
|
|
2354
2354
|
windowRect: rn
|
|
2355
|
-
}), Fn =
|
|
2356
|
-
active:
|
|
2355
|
+
}), Fn = W ? Qe(W, H) : null, Yn = Ns(ze), go = ir(Yn), vo = ir(Yn, [z]), Ke = Qe(Dt, go), Je = qe ? ss(qe, Dt) : null, st = K && Je ? f({
|
|
2356
|
+
active: K,
|
|
2357
2357
|
collisionRect: Je,
|
|
2358
2358
|
droppableRects: L,
|
|
2359
2359
|
droppableContainers: g,
|
|
2360
2360
|
pointerCoordinates: Fn
|
|
2361
|
-
}) : null, Vn = es(st, "id"), [Pe, Hn] = J(null), mo = zn ? Dt : Qe(Dt, vo), xo = rs(mo, (s = Pe?.rect) != null ? s : null, z), on =
|
|
2361
|
+
}) : null, Vn = es(st, "id"), [Pe, Hn] = J(null), mo = zn ? Dt : Qe(Dt, vo), xo = rs(mo, (s = Pe?.rect) != null ? s : null, z), on = X(null), Wn = ee(
|
|
2362
2362
|
(de, ve) => {
|
|
2363
2363
|
let {
|
|
2364
2364
|
sensor: me,
|
|
2365
2365
|
options: Fe
|
|
2366
2366
|
} = ve;
|
|
2367
|
-
if (
|
|
2367
|
+
if (O.current == null)
|
|
2368
2368
|
return;
|
|
2369
|
-
const ye = A.get(
|
|
2369
|
+
const ye = A.get(O.current);
|
|
2370
2370
|
if (!ye)
|
|
2371
2371
|
return;
|
|
2372
2372
|
const xe = de.nativeEvent, _e = new me({
|
|
2373
|
-
active:
|
|
2373
|
+
active: O.current,
|
|
2374
2374
|
activeNode: ye,
|
|
2375
2375
|
event: xe,
|
|
2376
2376
|
options: Fe,
|
|
@@ -2385,7 +2385,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2385
2385
|
} = k.current, Le = {
|
|
2386
2386
|
id: le
|
|
2387
2387
|
};
|
|
2388
|
-
Te?.(Le),
|
|
2388
|
+
Te?.(Le), j({
|
|
2389
2389
|
type: "onDragAbort",
|
|
2390
2390
|
event: Le
|
|
2391
2391
|
});
|
|
@@ -2401,13 +2401,13 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2401
2401
|
initialCoordinates: Te,
|
|
2402
2402
|
offset: Le
|
|
2403
2403
|
};
|
|
2404
|
-
at?.(Ve),
|
|
2404
|
+
at?.(Ve), j({
|
|
2405
2405
|
type: "onDragPending",
|
|
2406
2406
|
event: Ve
|
|
2407
2407
|
});
|
|
2408
2408
|
},
|
|
2409
2409
|
onStart(le) {
|
|
2410
|
-
const Ye =
|
|
2410
|
+
const Ye = O.current;
|
|
2411
2411
|
if (Ye == null)
|
|
2412
2412
|
return;
|
|
2413
2413
|
const Te = A.get(Ye);
|
|
@@ -2420,7 +2420,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2420
2420
|
active: {
|
|
2421
2421
|
id: Ye,
|
|
2422
2422
|
data: Te.data,
|
|
2423
|
-
rect:
|
|
2423
|
+
rect: V
|
|
2424
2424
|
}
|
|
2425
2425
|
};
|
|
2426
2426
|
jt(() => {
|
|
@@ -2428,10 +2428,10 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2428
2428
|
type: ie.DragStart,
|
|
2429
2429
|
initialCoordinates: le,
|
|
2430
2430
|
active: Ye
|
|
2431
|
-
}),
|
|
2431
|
+
}), j({
|
|
2432
2432
|
type: "onDragStart",
|
|
2433
2433
|
event: it
|
|
2434
|
-
}), w(on.current),
|
|
2434
|
+
}), w(on.current), S(xe);
|
|
2435
2435
|
});
|
|
2436
2436
|
},
|
|
2437
2437
|
onMove(le) {
|
|
@@ -2465,14 +2465,14 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2465
2465
|
over: it
|
|
2466
2466
|
}, le === ie.DragEnd && typeof ct == "function" && await Promise.resolve(ct(Ve)) && (le = ie.DragCancel);
|
|
2467
2467
|
}
|
|
2468
|
-
|
|
2468
|
+
O.current = null, jt(() => {
|
|
2469
2469
|
y({
|
|
2470
2470
|
type: le
|
|
2471
|
-
}), M(He.Uninitialized), Hn(null), w(null),
|
|
2471
|
+
}), M(He.Uninitialized), Hn(null), w(null), S(null), on.current = null;
|
|
2472
2472
|
const ct = le === ie.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2473
2473
|
if (Ve) {
|
|
2474
2474
|
const sn = k.current[ct];
|
|
2475
|
-
sn?.(Ve),
|
|
2475
|
+
sn?.(Ve), j({
|
|
2476
2476
|
type: ct,
|
|
2477
2477
|
event: Ve
|
|
2478
2478
|
});
|
|
@@ -2487,7 +2487,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2487
2487
|
const ye = me.nativeEvent, xe = A.get(Fe);
|
|
2488
2488
|
if (
|
|
2489
2489
|
// Another sensor is already instantiating
|
|
2490
|
-
|
|
2490
|
+
O.current !== null || // No active draggable
|
|
2491
2491
|
!xe || // Event has already been captured
|
|
2492
2492
|
ye.dndKit || ye.defaultPrevented
|
|
2493
2493
|
)
|
|
@@ -2497,11 +2497,11 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2497
2497
|
};
|
|
2498
2498
|
de(me, ve.options, _e) === !0 && (ye.dndKit = {
|
|
2499
2499
|
capturedBy: ve.sensor
|
|
2500
|
-
},
|
|
2501
|
-
}, [A, Wn]), Bn = Os(
|
|
2502
|
-
zs(
|
|
2503
|
-
z &&
|
|
2504
|
-
}, [z,
|
|
2500
|
+
}, O.current = Fe, Wn(me, ve));
|
|
2501
|
+
}, [A, Wn]), Bn = Os(d, bo);
|
|
2502
|
+
zs(d), $e(() => {
|
|
2503
|
+
z && $ === He.Initializing && M(He.Initialized);
|
|
2504
|
+
}, [z, $]), Y(
|
|
2505
2505
|
() => {
|
|
2506
2506
|
const {
|
|
2507
2507
|
onDragMove: de
|
|
@@ -2524,7 +2524,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2524
2524
|
over: ye
|
|
2525
2525
|
};
|
|
2526
2526
|
jt(() => {
|
|
2527
|
-
de?.(xe),
|
|
2527
|
+
de?.(xe), j({
|
|
2528
2528
|
type: "onDragMove",
|
|
2529
2529
|
event: xe
|
|
2530
2530
|
});
|
|
@@ -2541,7 +2541,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2541
2541
|
droppableContainers: Fe,
|
|
2542
2542
|
scrollAdjustedTranslate: ye
|
|
2543
2543
|
} = ue.current;
|
|
2544
|
-
if (!de ||
|
|
2544
|
+
if (!de || O.current == null || !ve || !ye)
|
|
2545
2545
|
return;
|
|
2546
2546
|
const {
|
|
2547
2547
|
onDragOver: xe
|
|
@@ -2561,7 +2561,7 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2561
2561
|
over: Ze
|
|
2562
2562
|
};
|
|
2563
2563
|
jt(() => {
|
|
2564
|
-
Hn(Ze), xe?.(le),
|
|
2564
|
+
Hn(Ze), xe?.(le), j({
|
|
2565
2565
|
type: "onDragOver",
|
|
2566
2566
|
event: le
|
|
2567
2567
|
});
|
|
@@ -2571,8 +2571,8 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2571
2571
|
[Vn]
|
|
2572
2572
|
), $e(() => {
|
|
2573
2573
|
ue.current = {
|
|
2574
|
-
activatorEvent:
|
|
2575
|
-
active:
|
|
2574
|
+
activatorEvent: _,
|
|
2575
|
+
active: K,
|
|
2576
2576
|
activeNode: Q,
|
|
2577
2577
|
collisionRect: Je,
|
|
2578
2578
|
collisions: st,
|
|
@@ -2584,23 +2584,23 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2584
2584
|
over: Pe,
|
|
2585
2585
|
scrollableAncestors: ze,
|
|
2586
2586
|
scrollAdjustedTranslate: Ke
|
|
2587
|
-
},
|
|
2587
|
+
}, V.current = {
|
|
2588
2588
|
initial: qe,
|
|
2589
2589
|
translated: Je
|
|
2590
2590
|
};
|
|
2591
|
-
}, [
|
|
2591
|
+
}, [K, Q, st, Je, A, Xe, qe, L, P, Pe, ze, Ke]), Rs({
|
|
2592
2592
|
...ne,
|
|
2593
|
-
delta:
|
|
2593
|
+
delta: H,
|
|
2594
2594
|
draggingRect: Je,
|
|
2595
2595
|
pointerCoordinates: Fn,
|
|
2596
2596
|
scrollableAncestors: ze,
|
|
2597
2597
|
scrollableAncestorRects: Ct
|
|
2598
2598
|
});
|
|
2599
2599
|
const yo = U(() => ({
|
|
2600
|
-
active:
|
|
2600
|
+
active: K,
|
|
2601
2601
|
activeNode: Q,
|
|
2602
2602
|
activeNodeRect: z,
|
|
2603
|
-
activatorEvent:
|
|
2603
|
+
activatorEvent: _,
|
|
2604
2604
|
collisions: st,
|
|
2605
2605
|
containerNodeRect: pe,
|
|
2606
2606
|
dragOverlay: ke,
|
|
@@ -2614,10 +2614,10 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2614
2614
|
measuringConfiguration: D,
|
|
2615
2615
|
measuringScheduled: Z,
|
|
2616
2616
|
windowRect: rn
|
|
2617
|
-
}), [
|
|
2618
|
-
activatorEvent:
|
|
2617
|
+
}), [K, Q, z, _, st, pe, ke, A, P, L, Pe, F, ze, Ct, D, Z, rn]), wo = U(() => ({
|
|
2618
|
+
activatorEvent: _,
|
|
2619
2619
|
activators: Bn,
|
|
2620
|
-
active:
|
|
2620
|
+
active: K,
|
|
2621
2621
|
activeNodeRect: z,
|
|
2622
2622
|
ariaDescribedById: {
|
|
2623
2623
|
draggable: N
|
|
@@ -2626,9 +2626,9 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2626
2626
|
draggableNodes: A,
|
|
2627
2627
|
over: Pe,
|
|
2628
2628
|
measureDroppableContainers: F
|
|
2629
|
-
}), [
|
|
2629
|
+
}), [_, Bn, K, z, y, N, A, Pe, F]);
|
|
2630
2630
|
return oe.createElement(Ar.Provider, {
|
|
2631
|
-
value:
|
|
2631
|
+
value: R
|
|
2632
2632
|
}, oe.createElement(Qt.Provider, {
|
|
2633
2633
|
value: wo
|
|
2634
2634
|
}, oe.createElement(Gr.Provider, {
|
|
@@ -2636,13 +2636,13 @@ const qr = /* @__PURE__ */ Do(function(t) {
|
|
|
2636
2636
|
}, oe.createElement(Xr.Provider, {
|
|
2637
2637
|
value: xo
|
|
2638
2638
|
}, u)), oe.createElement(qs, {
|
|
2639
|
-
disabled:
|
|
2639
|
+
disabled: c?.restoreFocus === !1
|
|
2640
2640
|
})), oe.createElement(Xo, {
|
|
2641
|
-
...
|
|
2641
|
+
...c,
|
|
2642
2642
|
hiddenTextDescribedById: N
|
|
2643
2643
|
}));
|
|
2644
2644
|
function So() {
|
|
2645
|
-
const de = C?.autoScrollEnabled === !1, ve = typeof l == "object" ? l.enabled === !1 : l === !1, me =
|
|
2645
|
+
const de = C?.autoScrollEnabled === !1, ve = typeof l == "object" ? l.enabled === !1 : l === !1, me = E && !de && !ve;
|
|
2646
2646
|
return typeof l == "object" ? {
|
|
2647
2647
|
...l,
|
|
2648
2648
|
enabled: me
|
|
@@ -2659,31 +2659,31 @@ function ti(e) {
|
|
|
2659
2659
|
attributes: o
|
|
2660
2660
|
} = e;
|
|
2661
2661
|
const s = wt(ei), {
|
|
2662
|
-
activators:
|
|
2663
|
-
activatorEvent:
|
|
2662
|
+
activators: a,
|
|
2663
|
+
activatorEvent: c,
|
|
2664
2664
|
active: l,
|
|
2665
2665
|
activeNodeRect: u,
|
|
2666
|
-
ariaDescribedById:
|
|
2667
|
-
draggableNodes:
|
|
2666
|
+
ariaDescribedById: d,
|
|
2667
|
+
draggableNodes: f,
|
|
2668
2668
|
over: x
|
|
2669
2669
|
} = Be(Qt), {
|
|
2670
2670
|
role: p = cr,
|
|
2671
2671
|
roleDescription: h = "draggable",
|
|
2672
2672
|
tabIndex: v = 0
|
|
2673
|
-
} = o ?? {}, b = l?.id === t, y = Be(b ? Xr : Qs), [
|
|
2673
|
+
} = o ?? {}, b = l?.id === t, y = Be(b ? Xr : Qs), [j, R] = Ft(), [$, M] = Ft(), E = Ps(a, t), I = vt(n);
|
|
2674
2674
|
$e(
|
|
2675
|
-
() => (
|
|
2675
|
+
() => (f.set(t, {
|
|
2676
2676
|
id: t,
|
|
2677
2677
|
key: s,
|
|
2678
|
-
node:
|
|
2679
|
-
activatorNode:
|
|
2678
|
+
node: j,
|
|
2679
|
+
activatorNode: $,
|
|
2680
2680
|
data: I
|
|
2681
2681
|
}), () => {
|
|
2682
|
-
const
|
|
2683
|
-
|
|
2682
|
+
const H = f.get(t);
|
|
2683
|
+
H && H.key === s && f.delete(t);
|
|
2684
2684
|
}),
|
|
2685
2685
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2686
|
-
[
|
|
2686
|
+
[f, t]
|
|
2687
2687
|
);
|
|
2688
2688
|
const A = U(() => ({
|
|
2689
2689
|
role: p,
|
|
@@ -2691,18 +2691,18 @@ function ti(e) {
|
|
|
2691
2691
|
"aria-disabled": r,
|
|
2692
2692
|
"aria-pressed": b && p === cr ? !0 : void 0,
|
|
2693
2693
|
"aria-roledescription": h,
|
|
2694
|
-
"aria-describedby":
|
|
2695
|
-
}), [r, p, v, b, h,
|
|
2694
|
+
"aria-describedby": d.draggable
|
|
2695
|
+
}), [r, p, v, b, h, d.draggable]);
|
|
2696
2696
|
return {
|
|
2697
2697
|
active: l,
|
|
2698
|
-
activatorEvent:
|
|
2698
|
+
activatorEvent: c,
|
|
2699
2699
|
activeNodeRect: u,
|
|
2700
2700
|
attributes: A,
|
|
2701
2701
|
isDragging: b,
|
|
2702
|
-
listeners: r ? void 0 :
|
|
2703
|
-
node:
|
|
2702
|
+
listeners: r ? void 0 : E,
|
|
2703
|
+
node: j,
|
|
2704
2704
|
over: x,
|
|
2705
|
-
setNodeRef:
|
|
2705
|
+
setNodeRef: R,
|
|
2706
2706
|
setActivatorNodeRef: M,
|
|
2707
2707
|
transform: y
|
|
2708
2708
|
};
|
|
@@ -2721,23 +2721,23 @@ function si(e) {
|
|
|
2721
2721
|
resizeObserverConfig: o
|
|
2722
2722
|
} = e;
|
|
2723
2723
|
const s = wt(ri), {
|
|
2724
|
-
active:
|
|
2725
|
-
dispatch:
|
|
2724
|
+
active: a,
|
|
2725
|
+
dispatch: c,
|
|
2726
2726
|
over: l,
|
|
2727
2727
|
measureDroppableContainers: u
|
|
2728
|
-
} = Be(Qt),
|
|
2728
|
+
} = Be(Qt), d = X({
|
|
2729
2729
|
disabled: n
|
|
2730
|
-
}),
|
|
2730
|
+
}), f = X(!1), x = X(null), p = X(null), {
|
|
2731
2731
|
disabled: h,
|
|
2732
2732
|
updateMeasurementsFor: v,
|
|
2733
2733
|
timeout: b
|
|
2734
2734
|
} = {
|
|
2735
2735
|
...oi,
|
|
2736
2736
|
...o
|
|
2737
|
-
}, y = vt(v ?? r),
|
|
2737
|
+
}, y = vt(v ?? r), j = ee(
|
|
2738
2738
|
() => {
|
|
2739
|
-
if (!
|
|
2740
|
-
|
|
2739
|
+
if (!f.current) {
|
|
2740
|
+
f.current = !0;
|
|
2741
2741
|
return;
|
|
2742
2742
|
}
|
|
2743
2743
|
p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
|
|
@@ -2746,16 +2746,16 @@ function si(e) {
|
|
|
2746
2746
|
},
|
|
2747
2747
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2748
2748
|
[b]
|
|
2749
|
-
),
|
|
2750
|
-
callback:
|
|
2751
|
-
disabled: h || !
|
|
2752
|
-
}),
|
|
2753
|
-
|
|
2754
|
-
}, [
|
|
2749
|
+
), R = Zt({
|
|
2750
|
+
callback: j,
|
|
2751
|
+
disabled: h || !a
|
|
2752
|
+
}), $ = ee((A, H) => {
|
|
2753
|
+
R && (H && (R.unobserve(H), f.current = !1), A && R.observe(A));
|
|
2754
|
+
}, [R]), [M, E] = Ft($), I = vt(t);
|
|
2755
2755
|
return Y(() => {
|
|
2756
|
-
!
|
|
2757
|
-
}, [M,
|
|
2758
|
-
() => (
|
|
2756
|
+
!R || !M.current || (R.disconnect(), f.current = !1, R.observe(M.current));
|
|
2757
|
+
}, [M, R]), Y(
|
|
2758
|
+
() => (c({
|
|
2759
2759
|
type: ie.RegisterDroppable,
|
|
2760
2760
|
element: {
|
|
2761
2761
|
id: r,
|
|
@@ -2765,7 +2765,7 @@ function si(e) {
|
|
|
2765
2765
|
rect: x,
|
|
2766
2766
|
data: I
|
|
2767
2767
|
}
|
|
2768
|
-
}), () =>
|
|
2768
|
+
}), () => c({
|
|
2769
2769
|
type: ie.UnregisterDroppable,
|
|
2770
2770
|
key: s,
|
|
2771
2771
|
id: r
|
|
@@ -2773,19 +2773,19 @@ function si(e) {
|
|
|
2773
2773
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2774
2774
|
[r]
|
|
2775
2775
|
), Y(() => {
|
|
2776
|
-
n !==
|
|
2776
|
+
n !== d.current.disabled && (c({
|
|
2777
2777
|
type: ie.SetDroppableDisabled,
|
|
2778
2778
|
id: r,
|
|
2779
2779
|
key: s,
|
|
2780
2780
|
disabled: n
|
|
2781
|
-
}),
|
|
2782
|
-
}, [r, s, n,
|
|
2783
|
-
active:
|
|
2781
|
+
}), d.current.disabled = n);
|
|
2782
|
+
}, [r, s, n, c]), {
|
|
2783
|
+
active: a,
|
|
2784
2784
|
rect: x,
|
|
2785
2785
|
isOver: l?.id === r,
|
|
2786
2786
|
node: M,
|
|
2787
2787
|
over: l,
|
|
2788
|
-
setNodeRef:
|
|
2788
|
+
setNodeRef: E
|
|
2789
2789
|
};
|
|
2790
2790
|
}
|
|
2791
2791
|
function en(e, t, n) {
|
|
@@ -2827,26 +2827,26 @@ const _t = {
|
|
|
2827
2827
|
activeNodeRect: r,
|
|
2828
2828
|
activeIndex: o,
|
|
2829
2829
|
overIndex: s,
|
|
2830
|
-
index:
|
|
2830
|
+
index: a
|
|
2831
2831
|
} = e;
|
|
2832
|
-
const
|
|
2833
|
-
if (!
|
|
2832
|
+
const c = (t = n[o]) != null ? t : r;
|
|
2833
|
+
if (!c)
|
|
2834
2834
|
return null;
|
|
2835
|
-
const l = ui(n,
|
|
2836
|
-
if (
|
|
2835
|
+
const l = ui(n, a, o);
|
|
2836
|
+
if (a === o) {
|
|
2837
2837
|
const u = n[s];
|
|
2838
2838
|
return u ? {
|
|
2839
|
-
x: o < s ? u.left + u.width - (
|
|
2839
|
+
x: o < s ? u.left + u.width - (c.left + c.width) : u.left - c.left,
|
|
2840
2840
|
y: 0,
|
|
2841
2841
|
..._t
|
|
2842
2842
|
} : null;
|
|
2843
2843
|
}
|
|
2844
|
-
return
|
|
2845
|
-
x: -
|
|
2844
|
+
return a > o && a <= s ? {
|
|
2845
|
+
x: -c.width - l,
|
|
2846
2846
|
y: 0,
|
|
2847
2847
|
..._t
|
|
2848
|
-
} :
|
|
2849
|
-
x:
|
|
2848
|
+
} : a < o && a >= s ? {
|
|
2849
|
+
x: c.width + l,
|
|
2850
2850
|
y: 0,
|
|
2851
2851
|
..._t
|
|
2852
2852
|
} : {
|
|
@@ -2866,12 +2866,12 @@ const Kr = (e) => {
|
|
|
2866
2866
|
overIndex: r,
|
|
2867
2867
|
index: o
|
|
2868
2868
|
} = e;
|
|
2869
|
-
const s = en(t, r, n),
|
|
2870
|
-
return !
|
|
2871
|
-
x:
|
|
2872
|
-
y:
|
|
2873
|
-
scaleX:
|
|
2874
|
-
scaleY:
|
|
2869
|
+
const s = en(t, r, n), a = t[o], c = s[o];
|
|
2870
|
+
return !c || !a ? null : {
|
|
2871
|
+
x: c.left - a.left,
|
|
2872
|
+
y: c.top - a.top,
|
|
2873
|
+
scaleX: c.width / a.width,
|
|
2874
|
+
scaleY: c.height / a.height
|
|
2875
2875
|
};
|
|
2876
2876
|
}, Tt = {
|
|
2877
2877
|
scaleX: 1,
|
|
@@ -2883,27 +2883,27 @@ const Kr = (e) => {
|
|
|
2883
2883
|
activeNodeRect: r,
|
|
2884
2884
|
index: o,
|
|
2885
2885
|
rects: s,
|
|
2886
|
-
overIndex:
|
|
2886
|
+
overIndex: a
|
|
2887
2887
|
} = e;
|
|
2888
|
-
const
|
|
2889
|
-
if (!
|
|
2888
|
+
const c = (t = s[n]) != null ? t : r;
|
|
2889
|
+
if (!c)
|
|
2890
2890
|
return null;
|
|
2891
2891
|
if (o === n) {
|
|
2892
|
-
const u = s[
|
|
2892
|
+
const u = s[a];
|
|
2893
2893
|
return u ? {
|
|
2894
2894
|
x: 0,
|
|
2895
|
-
y: n <
|
|
2895
|
+
y: n < a ? u.top + u.height - (c.top + c.height) : u.top - c.top,
|
|
2896
2896
|
...Tt
|
|
2897
2897
|
} : null;
|
|
2898
2898
|
}
|
|
2899
2899
|
const l = fi(s, o, n);
|
|
2900
|
-
return o > n && o <=
|
|
2900
|
+
return o > n && o <= a ? {
|
|
2901
2901
|
x: 0,
|
|
2902
|
-
y: -
|
|
2902
|
+
y: -c.height - l,
|
|
2903
2903
|
...Tt
|
|
2904
|
-
} : o < n && o >=
|
|
2904
|
+
} : o < n && o >= a ? {
|
|
2905
2905
|
x: 0,
|
|
2906
|
-
y:
|
|
2906
|
+
y: c.height + l,
|
|
2907
2907
|
...Tt
|
|
2908
2908
|
} : {
|
|
2909
2909
|
x: 0,
|
|
@@ -2938,23 +2938,23 @@ function Qr(e) {
|
|
|
2938
2938
|
disabled: s = !1
|
|
2939
2939
|
} = e;
|
|
2940
2940
|
const {
|
|
2941
|
-
active:
|
|
2942
|
-
dragOverlay:
|
|
2941
|
+
active: a,
|
|
2942
|
+
dragOverlay: c,
|
|
2943
2943
|
droppableRects: l,
|
|
2944
2944
|
over: u,
|
|
2945
|
-
measureDroppableContainers:
|
|
2946
|
-
} = ni(),
|
|
2945
|
+
measureDroppableContainers: d
|
|
2946
|
+
} = ni(), f = wt(Jr, n), x = c.rect !== null, p = U(() => r.map((E) => typeof E == "object" && "id" in E ? E.id : E), [r]), h = a != null, v = a ? p.indexOf(a.id) : -1, b = u ? p.indexOf(u.id) : -1, y = X(p), j = !ai(p, y.current), R = b !== -1 && v === -1 || j, $ = ci(s);
|
|
2947
2947
|
$e(() => {
|
|
2948
|
-
|
|
2949
|
-
}, [
|
|
2948
|
+
j && h && d(p);
|
|
2949
|
+
}, [j, p, h, d]), Y(() => {
|
|
2950
2950
|
y.current = p;
|
|
2951
2951
|
}, [p]);
|
|
2952
2952
|
const M = U(
|
|
2953
2953
|
() => ({
|
|
2954
2954
|
activeIndex: v,
|
|
2955
|
-
containerId:
|
|
2956
|
-
disabled:
|
|
2957
|
-
disableTransforms:
|
|
2955
|
+
containerId: f,
|
|
2956
|
+
disabled: $,
|
|
2957
|
+
disableTransforms: R,
|
|
2958
2958
|
items: p,
|
|
2959
2959
|
overIndex: b,
|
|
2960
2960
|
useDragOverlay: x,
|
|
@@ -2962,7 +2962,7 @@ function Qr(e) {
|
|
|
2962
2962
|
strategy: o
|
|
2963
2963
|
}),
|
|
2964
2964
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2965
|
-
[v,
|
|
2965
|
+
[v, f, $.draggable, $.droppable, R, p, b, l, x, o]
|
|
2966
2966
|
);
|
|
2967
2967
|
return oe.createElement(Zr.Provider, {
|
|
2968
2968
|
value: M
|
|
@@ -2983,12 +2983,12 @@ const hi = (e) => {
|
|
|
2983
2983
|
wasDragging: r,
|
|
2984
2984
|
index: o,
|
|
2985
2985
|
items: s,
|
|
2986
|
-
newIndex:
|
|
2987
|
-
previousItems:
|
|
2986
|
+
newIndex: a,
|
|
2987
|
+
previousItems: c,
|
|
2988
2988
|
previousContainerId: l,
|
|
2989
2989
|
transition: u
|
|
2990
2990
|
} = e;
|
|
2991
|
-
return !u || !r ||
|
|
2991
|
+
return !u || !r || c !== s && o === a ? !1 : n ? !0 : a !== o && t === l;
|
|
2992
2992
|
}, gi = {
|
|
2993
2993
|
duration: 200,
|
|
2994
2994
|
easing: "ease"
|
|
@@ -3006,25 +3006,25 @@ function xi(e) {
|
|
|
3006
3006
|
node: r,
|
|
3007
3007
|
rect: o
|
|
3008
3008
|
} = e;
|
|
3009
|
-
const [s,
|
|
3009
|
+
const [s, a] = J(null), c = X(n);
|
|
3010
3010
|
return $e(() => {
|
|
3011
|
-
if (!t && n !==
|
|
3011
|
+
if (!t && n !== c.current && r.current) {
|
|
3012
3012
|
const l = o.current;
|
|
3013
3013
|
if (l) {
|
|
3014
3014
|
const u = ot(r.current, {
|
|
3015
3015
|
ignoreTransform: !0
|
|
3016
|
-
}),
|
|
3016
|
+
}), d = {
|
|
3017
3017
|
x: l.left - u.left,
|
|
3018
3018
|
y: l.top - u.top,
|
|
3019
3019
|
scaleX: l.width / u.width,
|
|
3020
3020
|
scaleY: l.height / u.height
|
|
3021
3021
|
};
|
|
3022
|
-
(
|
|
3022
|
+
(d.x || d.y) && a(d);
|
|
3023
3023
|
}
|
|
3024
3024
|
}
|
|
3025
|
-
n !==
|
|
3025
|
+
n !== c.current && (c.current = n);
|
|
3026
3026
|
}, [t, n, r, o]), Y(() => {
|
|
3027
|
-
s &&
|
|
3027
|
+
s && a(null);
|
|
3028
3028
|
}, [s]), s;
|
|
3029
3029
|
}
|
|
3030
3030
|
function to(e) {
|
|
@@ -3034,84 +3034,84 @@ function to(e) {
|
|
|
3034
3034
|
disabled: r,
|
|
3035
3035
|
data: o,
|
|
3036
3036
|
getNewIndex: s = hi,
|
|
3037
|
-
id:
|
|
3038
|
-
strategy:
|
|
3037
|
+
id: a,
|
|
3038
|
+
strategy: c,
|
|
3039
3039
|
resizeObserverConfig: l,
|
|
3040
3040
|
transition: u = gi
|
|
3041
3041
|
} = e;
|
|
3042
3042
|
const {
|
|
3043
|
-
items:
|
|
3044
|
-
containerId:
|
|
3043
|
+
items: d,
|
|
3044
|
+
containerId: f,
|
|
3045
3045
|
activeIndex: x,
|
|
3046
3046
|
disabled: p,
|
|
3047
3047
|
disableTransforms: h,
|
|
3048
3048
|
sortedRects: v,
|
|
3049
3049
|
overIndex: b,
|
|
3050
3050
|
useDragOverlay: y,
|
|
3051
|
-
strategy:
|
|
3052
|
-
} = Be(Zr),
|
|
3051
|
+
strategy: j
|
|
3052
|
+
} = Be(Zr), R = bi(r, p), $ = d.indexOf(a), M = U(() => ({
|
|
3053
3053
|
sortable: {
|
|
3054
|
-
containerId:
|
|
3055
|
-
index:
|
|
3056
|
-
items:
|
|
3054
|
+
containerId: f,
|
|
3055
|
+
index: $,
|
|
3056
|
+
items: d
|
|
3057
3057
|
},
|
|
3058
3058
|
...o
|
|
3059
|
-
}), [
|
|
3059
|
+
}), [f, o, $, d]), E = U(() => d.slice(d.indexOf(a)), [d, a]), {
|
|
3060
3060
|
rect: I,
|
|
3061
3061
|
node: A,
|
|
3062
|
-
isOver:
|
|
3062
|
+
isOver: H,
|
|
3063
3063
|
setNodeRef: P
|
|
3064
3064
|
} = si({
|
|
3065
|
-
id:
|
|
3065
|
+
id: a,
|
|
3066
3066
|
data: M,
|
|
3067
|
-
disabled:
|
|
3067
|
+
disabled: R.droppable,
|
|
3068
3068
|
resizeObserverConfig: {
|
|
3069
|
-
updateMeasurementsFor:
|
|
3069
|
+
updateMeasurementsFor: E,
|
|
3070
3070
|
...l
|
|
3071
3071
|
}
|
|
3072
3072
|
}), {
|
|
3073
|
-
active:
|
|
3074
|
-
activatorEvent:
|
|
3075
|
-
activeNodeRect:
|
|
3076
|
-
attributes:
|
|
3073
|
+
active: T,
|
|
3074
|
+
activatorEvent: V,
|
|
3075
|
+
activeNodeRect: K,
|
|
3076
|
+
attributes: O,
|
|
3077
3077
|
setNodeRef: C,
|
|
3078
3078
|
listeners: w,
|
|
3079
|
-
isDragging:
|
|
3080
|
-
over:
|
|
3079
|
+
isDragging: _,
|
|
3080
|
+
over: S,
|
|
3081
3081
|
setActivatorNodeRef: k,
|
|
3082
3082
|
transform: N
|
|
3083
3083
|
} = ti({
|
|
3084
|
-
id:
|
|
3084
|
+
id: a,
|
|
3085
3085
|
data: M,
|
|
3086
3086
|
attributes: {
|
|
3087
3087
|
...mi,
|
|
3088
3088
|
...n
|
|
3089
3089
|
},
|
|
3090
|
-
disabled:
|
|
3091
|
-
}), g = ko(P, C), D = !!
|
|
3090
|
+
disabled: R.draggable
|
|
3091
|
+
}), g = ko(P, C), D = !!T, L = D && !h && Et(x) && Et(b), F = !y && _, Z = F && L ? N : null, W = L ? Z ?? (c ?? j)({
|
|
3092
3092
|
rects: v,
|
|
3093
|
-
activeNodeRect:
|
|
3093
|
+
activeNodeRect: K,
|
|
3094
3094
|
activeIndex: x,
|
|
3095
3095
|
overIndex: b,
|
|
3096
|
-
index:
|
|
3096
|
+
index: $
|
|
3097
3097
|
}) : null, ne = Et(x) && Et(b) ? s({
|
|
3098
|
-
id:
|
|
3099
|
-
items:
|
|
3098
|
+
id: a,
|
|
3099
|
+
items: d,
|
|
3100
3100
|
activeIndex: x,
|
|
3101
3101
|
overIndex: b
|
|
3102
|
-
}) :
|
|
3102
|
+
}) : $, re = T?.id, z = X({
|
|
3103
3103
|
activeId: re,
|
|
3104
|
-
items:
|
|
3104
|
+
items: d,
|
|
3105
3105
|
newIndex: ne,
|
|
3106
|
-
containerId:
|
|
3107
|
-
}), pe =
|
|
3108
|
-
active:
|
|
3109
|
-
containerId:
|
|
3110
|
-
isDragging:
|
|
3106
|
+
containerId: f
|
|
3107
|
+
}), pe = d !== z.current.items, ue = t({
|
|
3108
|
+
active: T,
|
|
3109
|
+
containerId: f,
|
|
3110
|
+
isDragging: _,
|
|
3111
3111
|
isSorting: D,
|
|
3112
|
-
id:
|
|
3113
|
-
index:
|
|
3114
|
-
items:
|
|
3112
|
+
id: a,
|
|
3113
|
+
index: $,
|
|
3114
|
+
items: d,
|
|
3115
3115
|
newIndex: z.current.newIndex,
|
|
3116
3116
|
previousItems: z.current.items,
|
|
3117
3117
|
previousContainerId: z.current.containerId,
|
|
@@ -3119,13 +3119,13 @@ function to(e) {
|
|
|
3119
3119
|
wasDragging: z.current.activeId != null
|
|
3120
3120
|
}), Se = xi({
|
|
3121
3121
|
disabled: !ue,
|
|
3122
|
-
index:
|
|
3122
|
+
index: $,
|
|
3123
3123
|
node: A,
|
|
3124
3124
|
rect: I
|
|
3125
3125
|
});
|
|
3126
3126
|
return Y(() => {
|
|
3127
|
-
D && z.current.newIndex !== ne && (z.current.newIndex = ne),
|
|
3128
|
-
}, [D, ne,
|
|
3127
|
+
D && z.current.newIndex !== ne && (z.current.newIndex = ne), f !== z.current.containerId && (z.current.containerId = f), d !== z.current.items && (z.current.items = d);
|
|
3128
|
+
}, [D, ne, f, d]), Y(() => {
|
|
3129
3129
|
if (re === z.current.activeId)
|
|
3130
3130
|
return;
|
|
3131
3131
|
if (re != null && z.current.activeId == null) {
|
|
@@ -3137,36 +3137,36 @@ function to(e) {
|
|
|
3137
3137
|
}, 50);
|
|
3138
3138
|
return () => clearTimeout(Xe);
|
|
3139
3139
|
}, [re]), {
|
|
3140
|
-
active:
|
|
3140
|
+
active: T,
|
|
3141
3141
|
activeIndex: x,
|
|
3142
|
-
attributes:
|
|
3142
|
+
attributes: O,
|
|
3143
3143
|
data: M,
|
|
3144
3144
|
rect: I,
|
|
3145
|
-
index:
|
|
3145
|
+
index: $,
|
|
3146
3146
|
newIndex: ne,
|
|
3147
|
-
items:
|
|
3148
|
-
isOver:
|
|
3147
|
+
items: d,
|
|
3148
|
+
isOver: H,
|
|
3149
3149
|
isSorting: D,
|
|
3150
|
-
isDragging:
|
|
3150
|
+
isDragging: _,
|
|
3151
3151
|
listeners: w,
|
|
3152
3152
|
node: A,
|
|
3153
3153
|
overIndex: b,
|
|
3154
|
-
over:
|
|
3154
|
+
over: S,
|
|
3155
3155
|
setNodeRef: g,
|
|
3156
3156
|
setActivatorNodeRef: k,
|
|
3157
3157
|
setDroppableNodeRef: P,
|
|
3158
3158
|
setDraggableNodeRef: C,
|
|
3159
|
-
transform: Se ??
|
|
3159
|
+
transform: Se ?? W,
|
|
3160
3160
|
transition: ke()
|
|
3161
3161
|
};
|
|
3162
3162
|
function ke() {
|
|
3163
3163
|
if (
|
|
3164
3164
|
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
3165
3165
|
Se || // Or to prevent items jumping to back to their "new" position when items change
|
|
3166
|
-
pe && z.current.newIndex ===
|
|
3166
|
+
pe && z.current.newIndex === $
|
|
3167
3167
|
)
|
|
3168
3168
|
return vi;
|
|
3169
|
-
if (!(F && !Mn(
|
|
3169
|
+
if (!(F && !Mn(V) || !u) && (D || ue))
|
|
3170
3170
|
return et.Transition.toString({
|
|
3171
3171
|
...u,
|
|
3172
3172
|
property: eo
|
|
@@ -3191,41 +3191,41 @@ function yi() {
|
|
|
3191
3191
|
if (lr) return hn;
|
|
3192
3192
|
lr = 1;
|
|
3193
3193
|
var e = oe;
|
|
3194
|
-
function t(
|
|
3195
|
-
return
|
|
3194
|
+
function t(f, x) {
|
|
3195
|
+
return f === x && (f !== 0 || 1 / f === 1 / x) || f !== f && x !== x;
|
|
3196
3196
|
}
|
|
3197
|
-
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect,
|
|
3198
|
-
function
|
|
3197
|
+
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, a = e.useDebugValue;
|
|
3198
|
+
function c(f, x) {
|
|
3199
3199
|
var p = x(), h = r({ inst: { value: p, getSnapshot: x } }), v = h[0].inst, b = h[1];
|
|
3200
3200
|
return s(
|
|
3201
3201
|
function() {
|
|
3202
3202
|
v.value = p, v.getSnapshot = x, l(v) && b({ inst: v });
|
|
3203
3203
|
},
|
|
3204
|
-
[
|
|
3204
|
+
[f, p, x]
|
|
3205
3205
|
), o(
|
|
3206
3206
|
function() {
|
|
3207
|
-
return l(v) && b({ inst: v }),
|
|
3207
|
+
return l(v) && b({ inst: v }), f(function() {
|
|
3208
3208
|
l(v) && b({ inst: v });
|
|
3209
3209
|
});
|
|
3210
3210
|
},
|
|
3211
|
-
[
|
|
3212
|
-
),
|
|
3211
|
+
[f]
|
|
3212
|
+
), a(p), p;
|
|
3213
3213
|
}
|
|
3214
|
-
function l(
|
|
3215
|
-
var x =
|
|
3216
|
-
|
|
3214
|
+
function l(f) {
|
|
3215
|
+
var x = f.getSnapshot;
|
|
3216
|
+
f = f.value;
|
|
3217
3217
|
try {
|
|
3218
3218
|
var p = x();
|
|
3219
|
-
return !n(
|
|
3219
|
+
return !n(f, p);
|
|
3220
3220
|
} catch {
|
|
3221
3221
|
return !0;
|
|
3222
3222
|
}
|
|
3223
3223
|
}
|
|
3224
|
-
function u(
|
|
3224
|
+
function u(f, x) {
|
|
3225
3225
|
return x();
|
|
3226
3226
|
}
|
|
3227
|
-
var
|
|
3228
|
-
return hn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore :
|
|
3227
|
+
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : c;
|
|
3228
|
+
return hn.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, hn;
|
|
3229
3229
|
}
|
|
3230
3230
|
var pn = {};
|
|
3231
3231
|
var ur;
|
|
@@ -3235,29 +3235,29 @@ function wi() {
|
|
|
3235
3235
|
return p === h && (p !== 0 || 1 / p === 1 / h) || p !== p && h !== h;
|
|
3236
3236
|
}
|
|
3237
3237
|
function t(p, h) {
|
|
3238
|
-
|
|
3238
|
+
d || o.startTransition === void 0 || (d = !0, console.error(
|
|
3239
3239
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
3240
3240
|
));
|
|
3241
3241
|
var v = h();
|
|
3242
|
-
if (!
|
|
3242
|
+
if (!f) {
|
|
3243
3243
|
var b = h();
|
|
3244
3244
|
s(v, b) || (console.error(
|
|
3245
3245
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
3246
|
-
),
|
|
3246
|
+
), f = !0);
|
|
3247
3247
|
}
|
|
3248
|
-
b =
|
|
3248
|
+
b = a({
|
|
3249
3249
|
inst: { value: v, getSnapshot: h }
|
|
3250
3250
|
});
|
|
3251
|
-
var y = b[0].inst,
|
|
3251
|
+
var y = b[0].inst, j = b[1];
|
|
3252
3252
|
return l(
|
|
3253
3253
|
function() {
|
|
3254
|
-
y.value = v, y.getSnapshot = h, n(y) &&
|
|
3254
|
+
y.value = v, y.getSnapshot = h, n(y) && j({ inst: y });
|
|
3255
3255
|
},
|
|
3256
3256
|
[p, v, h]
|
|
3257
|
-
),
|
|
3257
|
+
), c(
|
|
3258
3258
|
function() {
|
|
3259
|
-
return n(y) &&
|
|
3260
|
-
n(y) &&
|
|
3259
|
+
return n(y) && j({ inst: y }), p(function() {
|
|
3260
|
+
n(y) && j({ inst: y });
|
|
3261
3261
|
});
|
|
3262
3262
|
},
|
|
3263
3263
|
[p]
|
|
@@ -3277,7 +3277,7 @@ function wi() {
|
|
|
3277
3277
|
return h();
|
|
3278
3278
|
}
|
|
3279
3279
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3280
|
-
var o = oe, s = typeof Object.is == "function" ? Object.is : e,
|
|
3280
|
+
var o = oe, s = typeof Object.is == "function" ? Object.is : e, a = o.useState, c = o.useEffect, l = o.useLayoutEffect, u = o.useDebugValue, d = !1, f = !1, x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
|
|
3281
3281
|
pn.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3282
3282
|
})()), pn;
|
|
3283
3283
|
}
|
|
@@ -3290,45 +3290,45 @@ function Si() {
|
|
|
3290
3290
|
if (fr) return fn;
|
|
3291
3291
|
fr = 1;
|
|
3292
3292
|
var e = oe, t = no();
|
|
3293
|
-
function n(u,
|
|
3294
|
-
return u ===
|
|
3293
|
+
function n(u, d) {
|
|
3294
|
+
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
3295
3295
|
}
|
|
3296
|
-
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef,
|
|
3297
|
-
return fn.useSyncExternalStoreWithSelector = function(u,
|
|
3296
|
+
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, a = e.useEffect, c = e.useMemo, l = e.useDebugValue;
|
|
3297
|
+
return fn.useSyncExternalStoreWithSelector = function(u, d, f, x, p) {
|
|
3298
3298
|
var h = s(null);
|
|
3299
3299
|
if (h.current === null) {
|
|
3300
3300
|
var v = { hasValue: !1, value: null };
|
|
3301
3301
|
h.current = v;
|
|
3302
3302
|
} else v = h.current;
|
|
3303
|
-
h =
|
|
3303
|
+
h = c(
|
|
3304
3304
|
function() {
|
|
3305
|
-
function y(
|
|
3306
|
-
if (!
|
|
3307
|
-
if (
|
|
3305
|
+
function y(E) {
|
|
3306
|
+
if (!j) {
|
|
3307
|
+
if (j = !0, R = E, E = x(E), p !== void 0 && v.hasValue) {
|
|
3308
3308
|
var I = v.value;
|
|
3309
|
-
if (p(I,
|
|
3310
|
-
return
|
|
3309
|
+
if (p(I, E))
|
|
3310
|
+
return $ = I;
|
|
3311
3311
|
}
|
|
3312
|
-
return
|
|
3312
|
+
return $ = E;
|
|
3313
3313
|
}
|
|
3314
|
-
if (I =
|
|
3315
|
-
var A = x(
|
|
3316
|
-
return p !== void 0 && p(I, A) ? (
|
|
3314
|
+
if (I = $, r(R, E)) return I;
|
|
3315
|
+
var A = x(E);
|
|
3316
|
+
return p !== void 0 && p(I, A) ? (R = E, I) : (R = E, $ = A);
|
|
3317
3317
|
}
|
|
3318
|
-
var
|
|
3318
|
+
var j = !1, R, $, M = f === void 0 ? null : f;
|
|
3319
3319
|
return [
|
|
3320
3320
|
function() {
|
|
3321
|
-
return y(
|
|
3321
|
+
return y(d());
|
|
3322
3322
|
},
|
|
3323
3323
|
M === null ? void 0 : function() {
|
|
3324
3324
|
return y(M());
|
|
3325
3325
|
}
|
|
3326
3326
|
];
|
|
3327
3327
|
},
|
|
3328
|
-
[
|
|
3328
|
+
[d, f, x, p]
|
|
3329
3329
|
);
|
|
3330
3330
|
var b = o(u, h[0], h[1]);
|
|
3331
|
-
return
|
|
3331
|
+
return a(
|
|
3332
3332
|
function() {
|
|
3333
3333
|
v.hasValue = !0, v.value = b;
|
|
3334
3334
|
},
|
|
@@ -3340,47 +3340,47 @@ var gn = {};
|
|
|
3340
3340
|
var hr;
|
|
3341
3341
|
function Ci() {
|
|
3342
3342
|
return hr || (hr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3343
|
-
function e(u,
|
|
3344
|
-
return u ===
|
|
3343
|
+
function e(u, d) {
|
|
3344
|
+
return u === d && (u !== 0 || 1 / u === 1 / d) || u !== u && d !== d;
|
|
3345
3345
|
}
|
|
3346
3346
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3347
|
-
var t = oe, n = no(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef,
|
|
3348
|
-
gn.useSyncExternalStoreWithSelector = function(u,
|
|
3347
|
+
var t = oe, n = no(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, a = t.useEffect, c = t.useMemo, l = t.useDebugValue;
|
|
3348
|
+
gn.useSyncExternalStoreWithSelector = function(u, d, f, x, p) {
|
|
3349
3349
|
var h = s(null);
|
|
3350
3350
|
if (h.current === null) {
|
|
3351
3351
|
var v = { hasValue: !1, value: null };
|
|
3352
3352
|
h.current = v;
|
|
3353
3353
|
} else v = h.current;
|
|
3354
|
-
h =
|
|
3354
|
+
h = c(
|
|
3355
3355
|
function() {
|
|
3356
|
-
function y(
|
|
3357
|
-
if (!
|
|
3358
|
-
if (
|
|
3356
|
+
function y(E) {
|
|
3357
|
+
if (!j) {
|
|
3358
|
+
if (j = !0, R = E, E = x(E), p !== void 0 && v.hasValue) {
|
|
3359
3359
|
var I = v.value;
|
|
3360
|
-
if (p(I,
|
|
3361
|
-
return
|
|
3360
|
+
if (p(I, E))
|
|
3361
|
+
return $ = I;
|
|
3362
3362
|
}
|
|
3363
|
-
return
|
|
3363
|
+
return $ = E;
|
|
3364
3364
|
}
|
|
3365
|
-
if (I =
|
|
3365
|
+
if (I = $, r(R, E))
|
|
3366
3366
|
return I;
|
|
3367
|
-
var A = x(
|
|
3368
|
-
return p !== void 0 && p(I, A) ? (
|
|
3367
|
+
var A = x(E);
|
|
3368
|
+
return p !== void 0 && p(I, A) ? (R = E, I) : (R = E, $ = A);
|
|
3369
3369
|
}
|
|
3370
|
-
var
|
|
3370
|
+
var j = !1, R, $, M = f === void 0 ? null : f;
|
|
3371
3371
|
return [
|
|
3372
3372
|
function() {
|
|
3373
|
-
return y(
|
|
3373
|
+
return y(d());
|
|
3374
3374
|
},
|
|
3375
3375
|
M === null ? void 0 : function() {
|
|
3376
3376
|
return y(M());
|
|
3377
3377
|
}
|
|
3378
3378
|
];
|
|
3379
3379
|
},
|
|
3380
|
-
[
|
|
3380
|
+
[d, f, x, p]
|
|
3381
3381
|
);
|
|
3382
3382
|
var b = o(u, h[0], h[1]);
|
|
3383
|
-
return
|
|
3383
|
+
return a(
|
|
3384
3384
|
function() {
|
|
3385
3385
|
v.hasValue = !0, v.value = b;
|
|
3386
3386
|
},
|
|
@@ -3461,9 +3461,9 @@ class oo {
|
|
|
3461
3461
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (r) => {
|
|
3462
3462
|
var o, s;
|
|
3463
3463
|
this.listeners.add(r);
|
|
3464
|
-
const
|
|
3464
|
+
const a = (s = (o = this.options) == null ? void 0 : o.onSubscribe) == null ? void 0 : s.call(o, r, this);
|
|
3465
3465
|
return () => {
|
|
3466
|
-
this.listeners.delete(r),
|
|
3466
|
+
this.listeners.delete(r), a?.();
|
|
3467
3467
|
};
|
|
3468
3468
|
}, this.prevState = t, this.state = t, this.options = n;
|
|
3469
3469
|
}
|
|
@@ -3530,26 +3530,26 @@ const be = new oo({
|
|
|
3530
3530
|
}
|
|
3531
3531
|
});
|
|
3532
3532
|
function $i(e, t) {
|
|
3533
|
-
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((
|
|
3534
|
-
(
|
|
3535
|
-
), { tableId: s } = be.state,
|
|
3533
|
+
const n = e[0] ?? {}, o = (t && t.length ? t : Object.keys(n).map((d) => ({ id: d, label: d }))).filter(
|
|
3534
|
+
(d) => Object.prototype.hasOwnProperty.call(n, d.id)
|
|
3535
|
+
), { tableId: s } = be.state, a = JSON.parse(
|
|
3536
3536
|
localStorage.getItem(so(s)) || "[]"
|
|
3537
|
-
),
|
|
3538
|
-
...
|
|
3539
|
-
...o.filter((
|
|
3537
|
+
), c = [
|
|
3538
|
+
...a.map((d) => o.find((f) => f.id === d)).filter(Boolean),
|
|
3539
|
+
...o.filter((d) => !a.includes(d.id))
|
|
3540
3540
|
], l = JSON.parse(
|
|
3541
3541
|
localStorage.getItem(io(s)) || "{}"
|
|
3542
|
-
), u =
|
|
3543
|
-
be.setState((
|
|
3544
|
-
...
|
|
3542
|
+
), u = c.reduce((d, f) => (d[f.id] = l[f.id] ?? !0, d), {});
|
|
3543
|
+
be.setState((d) => ({
|
|
3544
|
+
...d,
|
|
3545
3545
|
data: e,
|
|
3546
|
-
columnOrder:
|
|
3546
|
+
columnOrder: c,
|
|
3547
3547
|
visibility: u,
|
|
3548
|
-
sortableColumns:
|
|
3549
|
-
id:
|
|
3550
|
-
label:
|
|
3548
|
+
sortableColumns: c.map((f) => ({
|
|
3549
|
+
id: f.id,
|
|
3550
|
+
label: f.label,
|
|
3551
3551
|
sortable: !0,
|
|
3552
|
-
backgroundColor:
|
|
3552
|
+
backgroundColor: f.backgroundColor
|
|
3553
3553
|
}))
|
|
3554
3554
|
}));
|
|
3555
3555
|
}
|
|
@@ -3627,8 +3627,8 @@ const Vi = Rn(
|
|
|
3627
3627
|
absoluteStrokeWidth: r,
|
|
3628
3628
|
className: o = "",
|
|
3629
3629
|
children: s,
|
|
3630
|
-
iconNode:
|
|
3631
|
-
...
|
|
3630
|
+
iconNode: a,
|
|
3631
|
+
...c
|
|
3632
3632
|
}, l) => bn(
|
|
3633
3633
|
"svg",
|
|
3634
3634
|
{
|
|
@@ -3639,11 +3639,11 @@ const Vi = Rn(
|
|
|
3639
3639
|
stroke: e,
|
|
3640
3640
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3641
3641
|
className: ao("lucide", o),
|
|
3642
|
-
...!s && !Fi(
|
|
3643
|
-
...
|
|
3642
|
+
...!s && !Fi(c) && { "aria-hidden": "true" },
|
|
3643
|
+
...c
|
|
3644
3644
|
},
|
|
3645
3645
|
[
|
|
3646
|
-
...
|
|
3646
|
+
...a.map(([u, d]) => bn(u, d)),
|
|
3647
3647
|
...Array.isArray(s) ? s : [s]
|
|
3648
3648
|
]
|
|
3649
3649
|
)
|
|
@@ -3792,19 +3792,19 @@ function Ra({
|
|
|
3792
3792
|
cursor: r,
|
|
3793
3793
|
borderRight: o,
|
|
3794
3794
|
borderRightColor: s,
|
|
3795
|
-
backgroundColor:
|
|
3795
|
+
backgroundColor: a
|
|
3796
3796
|
}) {
|
|
3797
|
-
const { setNodeRef:
|
|
3797
|
+
const { setNodeRef: c, attributes: l, listeners: u, transform: d, transition: f } = to({ id: e });
|
|
3798
3798
|
return /* @__PURE__ */ i.jsx(
|
|
3799
3799
|
ae.ColumnHeader,
|
|
3800
3800
|
{
|
|
3801
|
-
ref:
|
|
3801
|
+
ref: c,
|
|
3802
3802
|
onClick: n,
|
|
3803
|
-
backgroundColor:
|
|
3803
|
+
backgroundColor: a,
|
|
3804
3804
|
w: e === "id" || e === "row_number" ? "80px" : void 0,
|
|
3805
3805
|
style: {
|
|
3806
|
-
transform: et.Transform.toString(
|
|
3807
|
-
transition:
|
|
3806
|
+
transform: et.Transform.toString(d),
|
|
3807
|
+
transition: f,
|
|
3808
3808
|
cursor: r,
|
|
3809
3809
|
borderRight: o,
|
|
3810
3810
|
borderRightColor: s
|
|
@@ -3818,7 +3818,7 @@ function Ra({
|
|
|
3818
3818
|
);
|
|
3819
3819
|
}
|
|
3820
3820
|
function Ea() {
|
|
3821
|
-
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = St(be),
|
|
3821
|
+
const { columnOrder: e, visibility: t, sortColumn: n, sortDirection: r, sortableColumns: o, actionsConfig: s } = St(be), a = e.map((c) => o.find((l) => l.id === c.id)).filter((c) => c !== void 0).filter((c) => t[c.id]);
|
|
3822
3822
|
return /* @__PURE__ */ i.jsx(ae.Header, { background: "blue.200", position: "sticky", top: 0, p: "0", zIndex: 1, children: /* @__PURE__ */ i.jsxs(ae.Row, { height: "28px", children: [
|
|
3823
3823
|
s?.showSNo && /* @__PURE__ */ i.jsx(
|
|
3824
3824
|
ae.ColumnHeader,
|
|
@@ -3830,16 +3830,16 @@ function Ea() {
|
|
|
3830
3830
|
children: s.indexChildren || "S.No"
|
|
3831
3831
|
}
|
|
3832
3832
|
),
|
|
3833
|
-
|
|
3834
|
-
const l = n ===
|
|
3833
|
+
a.map((c) => {
|
|
3834
|
+
const l = n === c?.id;
|
|
3835
3835
|
return /* @__PURE__ */ i.jsx(
|
|
3836
3836
|
Ra,
|
|
3837
3837
|
{
|
|
3838
|
-
id:
|
|
3839
|
-
onClick: () =>
|
|
3840
|
-
cursor:
|
|
3838
|
+
id: c?.id,
|
|
3839
|
+
onClick: () => c?.sortable && Li(c?.id),
|
|
3840
|
+
cursor: c?.sortable ? "pointer" : "default",
|
|
3841
3841
|
borderRight: "2px solid #dcdcdc",
|
|
3842
|
-
backgroundColor:
|
|
3842
|
+
backgroundColor: c?.backgroundColor,
|
|
3843
3843
|
children: /* @__PURE__ */ i.jsxs(
|
|
3844
3844
|
"span",
|
|
3845
3845
|
{
|
|
@@ -3850,13 +3850,13 @@ function Ea() {
|
|
|
3850
3850
|
userSelect: "none"
|
|
3851
3851
|
},
|
|
3852
3852
|
children: [
|
|
3853
|
-
|
|
3854
|
-
|
|
3853
|
+
c?.label,
|
|
3854
|
+
c?.sortable && (l ? r === "asc" ? /* @__PURE__ */ i.jsx(Xi, { size: 14 }) : /* @__PURE__ */ i.jsx(Wi, { size: 14 }) : /* @__PURE__ */ i.jsx(Ui, { size: 14, opacity: 0.4 }))
|
|
3855
3855
|
]
|
|
3856
3856
|
}
|
|
3857
3857
|
)
|
|
3858
3858
|
},
|
|
3859
|
-
|
|
3859
|
+
c?.id
|
|
3860
3860
|
);
|
|
3861
3861
|
}),
|
|
3862
3862
|
s?.showActionColumn && /* @__PURE__ */ i.jsx(
|
|
@@ -3886,21 +3886,21 @@ function Fa({
|
|
|
3886
3886
|
onPageChange: r,
|
|
3887
3887
|
onPageSizeChange: o,
|
|
3888
3888
|
siblingCount: s = 2,
|
|
3889
|
-
pageSizeOptions:
|
|
3889
|
+
pageSizeOptions: a = _a
|
|
3890
3890
|
}) {
|
|
3891
|
-
const
|
|
3892
|
-
items:
|
|
3891
|
+
const c = Tr({
|
|
3892
|
+
items: a.map((l) => ({
|
|
3893
3893
|
label: String(l),
|
|
3894
3894
|
value: String(l)
|
|
3895
3895
|
}))
|
|
3896
3896
|
});
|
|
3897
3897
|
return /* @__PURE__ */ i.jsx(De, { width: "100%", children: /* @__PURE__ */ i.jsxs(fe, { justify: "space-between", mx: "auto", flexWrap: "wrap", children: [
|
|
3898
3898
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
3899
|
-
/* @__PURE__ */ i.jsx(
|
|
3899
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: "Rows per page:" }),
|
|
3900
3900
|
/* @__PURE__ */ i.jsxs(
|
|
3901
3901
|
te.Root,
|
|
3902
3902
|
{
|
|
3903
|
-
collection:
|
|
3903
|
+
collection: c,
|
|
3904
3904
|
size: "sm",
|
|
3905
3905
|
width: "60px",
|
|
3906
3906
|
onValueChange: (l) => o?.(Number(l.items[0].value)),
|
|
@@ -3911,13 +3911,17 @@ function Fa({
|
|
|
3911
3911
|
/* @__PURE__ */ i.jsx(La, { children: /* @__PURE__ */ i.jsx(Na, { placeholder: "" }) }),
|
|
3912
3912
|
/* @__PURE__ */ i.jsx(za, { children: /* @__PURE__ */ i.jsx(Pa, {}) })
|
|
3913
3913
|
] }),
|
|
3914
|
-
/* @__PURE__ */ i.jsx(Ge, { children: /* @__PURE__ */ i.jsx(Ta, { children: /* @__PURE__ */ i.jsx(Oa, { children:
|
|
3914
|
+
/* @__PURE__ */ i.jsx(Ge, { children: /* @__PURE__ */ i.jsx(Ta, { children: /* @__PURE__ */ i.jsx(Oa, { children: c.items.map((l) => /* @__PURE__ */ i.jsxs(Ma, { item: l.value, children: [
|
|
3915
3915
|
l.label,
|
|
3916
3916
|
/* @__PURE__ */ i.jsx(te.ItemIndicator, {})
|
|
3917
3917
|
] }, l.value)) }) }) })
|
|
3918
3918
|
]
|
|
3919
3919
|
}
|
|
3920
|
-
)
|
|
3920
|
+
),
|
|
3921
|
+
/* @__PURE__ */ i.jsxs(G, { fontSize: "sm", color: "gray.600", _dark: { color: "gray.400" }, children: [
|
|
3922
|
+
"of ",
|
|
3923
|
+
e
|
|
3924
|
+
] })
|
|
3921
3925
|
] }),
|
|
3922
3926
|
/* @__PURE__ */ i.jsx(
|
|
3923
3927
|
zt.Root,
|
|
@@ -3955,41 +3959,45 @@ function Ba({
|
|
|
3955
3959
|
actions: t = [],
|
|
3956
3960
|
actionConfig: n,
|
|
3957
3961
|
onRowSelect: r,
|
|
3958
|
-
|
|
3962
|
+
onRowSelectEvent: o = "left",
|
|
3963
|
+
startIndex: s = 0
|
|
3959
3964
|
}) {
|
|
3960
|
-
const { columnOrder:
|
|
3961
|
-
return /* @__PURE__ */ i.jsx(ae.Body, { children: e.map((
|
|
3965
|
+
const { columnOrder: a, visibility: c } = St(be);
|
|
3966
|
+
return /* @__PURE__ */ i.jsx(ae.Body, { children: e.map((l, u) => /* @__PURE__ */ i.jsxs(
|
|
3962
3967
|
ae.Row,
|
|
3963
3968
|
{
|
|
3964
|
-
onClick: () => r?.(
|
|
3969
|
+
onClick: () => o === "left" && r?.(l.__raw),
|
|
3965
3970
|
_hover: {
|
|
3966
3971
|
bg: "blue.50"
|
|
3967
3972
|
},
|
|
3973
|
+
onContextMenu: o === "right" ? (d) => {
|
|
3974
|
+
d.preventDefault(), r?.(l.__raw);
|
|
3975
|
+
} : void 0,
|
|
3968
3976
|
children: [
|
|
3969
|
-
n?.showSNo && /* @__PURE__ */ i.jsx(ae.Cell, { textAlign: "center", fontWeight: "medium", children:
|
|
3970
|
-
|
|
3977
|
+
n?.showSNo && /* @__PURE__ */ i.jsx(ae.Cell, { textAlign: "center", fontWeight: "medium", children: s + u + 1 }),
|
|
3978
|
+
a.filter((d) => c[d.id]).map((d) => /* @__PURE__ */ i.jsx(ae.Cell, { children: l[d.id] }, d.id)),
|
|
3971
3979
|
n?.showActionColumn && /* @__PURE__ */ i.jsx(ae.Cell, { textAlign: "center", display: "flex", gap: 2, children: /* @__PURE__ */ i.jsxs(Ie.Root, { children: [
|
|
3972
3980
|
/* @__PURE__ */ i.jsx(Wa, { asChild: !0, children: /* @__PURE__ */ i.jsx(Oe, { "aria-label": "Open", variant: "ghost", size: "sm", children: /* @__PURE__ */ i.jsx(aa, { size: 16 }) }) }),
|
|
3973
3981
|
/* @__PURE__ */ i.jsx(Ge, { children: /* @__PURE__ */ i.jsx(Ha, { children: /* @__PURE__ */ i.jsx(Va, { children: t.filter(
|
|
3974
|
-
(
|
|
3975
|
-
).map((
|
|
3982
|
+
(d) => typeof d.visible == "function" ? d.visible(l.__raw) : d.visible !== !1
|
|
3983
|
+
).map((d) => /* @__PURE__ */ i.jsxs(
|
|
3976
3984
|
Ya,
|
|
3977
3985
|
{
|
|
3978
|
-
onClick: () =>
|
|
3979
|
-
colorScheme:
|
|
3980
|
-
value:
|
|
3986
|
+
onClick: () => d.onClick(l.__raw),
|
|
3987
|
+
colorScheme: d.colorScheme,
|
|
3988
|
+
value: d.label,
|
|
3981
3989
|
children: [
|
|
3982
|
-
|
|
3983
|
-
|
|
3990
|
+
d.icon,
|
|
3991
|
+
d.label
|
|
3984
3992
|
]
|
|
3985
3993
|
},
|
|
3986
|
-
|
|
3994
|
+
d.label
|
|
3987
3995
|
)) }) }) })
|
|
3988
3996
|
] }) }),
|
|
3989
3997
|
n?.showColumnVisibilityMenu && /* @__PURE__ */ i.jsx(ae.Cell, {})
|
|
3990
3998
|
]
|
|
3991
3999
|
},
|
|
3992
|
-
|
|
4000
|
+
l.__key || l.id
|
|
3993
4001
|
)) });
|
|
3994
4002
|
}
|
|
3995
4003
|
function Ua({
|
|
@@ -3998,24 +4006,25 @@ function Ua({
|
|
|
3998
4006
|
}) {
|
|
3999
4007
|
return /* @__PURE__ */ i.jsx(ae.Body, { children: Array.from({ length: e }).map((n, r) => /* @__PURE__ */ i.jsx(ae.Row, { children: Array.from({ length: t }).map((o, s) => /* @__PURE__ */ i.jsx(ae.Cell, { children: /* @__PURE__ */ i.jsx(Eo, { height: "25px" }) }, s)) }, r)) });
|
|
4000
4008
|
}
|
|
4001
|
-
function
|
|
4009
|
+
function hu({
|
|
4002
4010
|
tableId: e,
|
|
4003
4011
|
data: t = [],
|
|
4004
4012
|
headers: n = [],
|
|
4005
4013
|
loading: r = !1,
|
|
4006
4014
|
loadingChildren: o,
|
|
4007
4015
|
skeletonLoading: s = !1,
|
|
4008
|
-
emptyMessage:
|
|
4009
|
-
actions:
|
|
4016
|
+
emptyMessage: a = "No data",
|
|
4017
|
+
actions: c,
|
|
4010
4018
|
page: l = 1,
|
|
4011
4019
|
pageSize: u = 10,
|
|
4012
|
-
onPageChange:
|
|
4013
|
-
onPageSizeChange:
|
|
4020
|
+
onPageChange: d,
|
|
4021
|
+
onPageSizeChange: f,
|
|
4014
4022
|
density: x = "sm",
|
|
4015
4023
|
totalCount: p = 0,
|
|
4016
4024
|
actionConfig: h,
|
|
4017
4025
|
pageSizeOptions: v,
|
|
4018
|
-
onRowSelect: b
|
|
4026
|
+
onRowSelect: b,
|
|
4027
|
+
onRowSelectEvent: y = "left"
|
|
4019
4028
|
}) {
|
|
4020
4029
|
Y(() => {
|
|
4021
4030
|
Ii(e);
|
|
@@ -4024,29 +4033,29 @@ function fu({
|
|
|
4024
4033
|
}, [t, n]), Y(() => {
|
|
4025
4034
|
h && Ai(h);
|
|
4026
4035
|
}, [h]);
|
|
4027
|
-
const { sortColumn:
|
|
4028
|
-
const
|
|
4029
|
-
return
|
|
4030
|
-
(
|
|
4031
|
-
),
|
|
4032
|
-
}, [j,
|
|
4036
|
+
const { sortColumn: j, sortDirection: R, data: $, columnOrder: M } = St(be), E = U(() => {
|
|
4037
|
+
const V = [...$];
|
|
4038
|
+
return j && V.sort(
|
|
4039
|
+
(K, O) => R === "asc" ? String(K[j]).localeCompare(String(O[j])) : String(O[j]).localeCompare(String(K[j]))
|
|
4040
|
+
), V;
|
|
4041
|
+
}, [$, j, R, l, u]), I = U(() => (Math.max(1, l || 1) - 1) * u, [l, u]);
|
|
4033
4042
|
Y(() => {
|
|
4034
|
-
l < 1 &&
|
|
4035
|
-
}, [l,
|
|
4036
|
-
const
|
|
4037
|
-
const { active:
|
|
4038
|
-
if (!
|
|
4039
|
-
const
|
|
4040
|
-
ki(
|
|
4041
|
-
},
|
|
4042
|
-
return /* @__PURE__ */ i.jsx(qr, { collisionDetection: kr, onDragEnd:
|
|
4043
|
+
l < 1 && d && d(1);
|
|
4044
|
+
}, [l, d]);
|
|
4045
|
+
const A = (V) => {
|
|
4046
|
+
const { active: K, over: O } = V;
|
|
4047
|
+
if (!O || K.id === O.id) return;
|
|
4048
|
+
const C = M.findIndex((S) => S.id === K.id), w = M.findIndex((S) => S.id === O.id), _ = en(M, C, w);
|
|
4049
|
+
ki(_);
|
|
4050
|
+
}, H = r && !s, P = s && !r, T = !r && !s && E.length === 0;
|
|
4051
|
+
return /* @__PURE__ */ i.jsx(qr, { collisionDetection: kr, onDragEnd: A, children: /* @__PURE__ */ i.jsx(
|
|
4043
4052
|
Qr,
|
|
4044
4053
|
{
|
|
4045
|
-
items:
|
|
4054
|
+
items: M.map((V) => V.id),
|
|
4046
4055
|
strategy: li,
|
|
4047
4056
|
children: /* @__PURE__ */ i.jsxs(De, { flex: "1", minH: 0, display: "flex", flexDirection: "column", p: 2, children: [
|
|
4048
4057
|
/* @__PURE__ */ i.jsxs(De, { flex: "1", minH: 0, position: "relative", overflow: "auto", children: [
|
|
4049
|
-
|
|
4058
|
+
H && /* @__PURE__ */ i.jsx(
|
|
4050
4059
|
De,
|
|
4051
4060
|
{
|
|
4052
4061
|
position: "absolute",
|
|
@@ -4061,7 +4070,7 @@ function fu({
|
|
|
4061
4070
|
),
|
|
4062
4071
|
/* @__PURE__ */ i.jsxs(ae.Root, { variant: "outline", w: "100%", size: x, children: [
|
|
4063
4072
|
/* @__PURE__ */ i.jsx(Ea, {}),
|
|
4064
|
-
|
|
4073
|
+
P ? /* @__PURE__ */ i.jsx(Ua, { rows: u, columns: n.length + (c ? 2 : 0) }) : T ? /* @__PURE__ */ i.jsx(ae.Body, { children: /* @__PURE__ */ i.jsx(ae.Row, { children: /* @__PURE__ */ i.jsx(ae.Cell, { colSpan: n.length + (c ? 1 : 0), children: /* @__PURE__ */ i.jsx(
|
|
4065
4074
|
De,
|
|
4066
4075
|
{
|
|
4067
4076
|
display: "flex",
|
|
@@ -4069,16 +4078,17 @@ function fu({
|
|
|
4069
4078
|
justifyContent: "center",
|
|
4070
4079
|
minH: "200px",
|
|
4071
4080
|
color: "gray.500",
|
|
4072
|
-
children:
|
|
4081
|
+
children: a
|
|
4073
4082
|
}
|
|
4074
4083
|
) }) }) }) : /* @__PURE__ */ i.jsx(
|
|
4075
4084
|
Ba,
|
|
4076
4085
|
{
|
|
4077
|
-
data:
|
|
4078
|
-
actions:
|
|
4086
|
+
data: E,
|
|
4087
|
+
actions: c,
|
|
4079
4088
|
actionConfig: h,
|
|
4080
4089
|
onRowSelect: b,
|
|
4081
|
-
startIndex:
|
|
4090
|
+
startIndex: I,
|
|
4091
|
+
onRowSelectEvent: y
|
|
4082
4092
|
}
|
|
4083
4093
|
)
|
|
4084
4094
|
] })
|
|
@@ -4089,9 +4099,9 @@ function fu({
|
|
|
4089
4099
|
totalCount: p,
|
|
4090
4100
|
pageSize: u,
|
|
4091
4101
|
currentPage: l,
|
|
4092
|
-
onPageChange:
|
|
4093
|
-
onPageSizeChange: (
|
|
4094
|
-
|
|
4102
|
+
onPageChange: d,
|
|
4103
|
+
onPageSizeChange: (V) => {
|
|
4104
|
+
f?.(V), l > 1 && d?.(1);
|
|
4095
4105
|
},
|
|
4096
4106
|
pageSizeOptions: v
|
|
4097
4107
|
}
|
|
@@ -4107,16 +4117,16 @@ const Ga = m(Re.Root), Xa = m(Re.HiddenInput), qa = m(Re.Control), Ka = m(Re.Lab
|
|
|
4107
4117
|
label: r,
|
|
4108
4118
|
helperText: o,
|
|
4109
4119
|
isDisabled: s,
|
|
4110
|
-
required:
|
|
4111
|
-
errorText:
|
|
4120
|
+
required: a,
|
|
4121
|
+
errorText: c
|
|
4112
4122
|
}) => /* @__PURE__ */ i.jsxs(Ga, { value: e, onChange: t, size: n, children: [
|
|
4113
4123
|
/* @__PURE__ */ i.jsx(Xa, {}),
|
|
4114
4124
|
/* @__PURE__ */ i.jsx(
|
|
4115
4125
|
qa,
|
|
4116
4126
|
{
|
|
4117
4127
|
disabled: s,
|
|
4118
|
-
required:
|
|
4119
|
-
errorText:
|
|
4128
|
+
required: a,
|
|
4129
|
+
errorText: c,
|
|
4120
4130
|
helperText: o
|
|
4121
4131
|
}
|
|
4122
4132
|
),
|
|
@@ -4129,12 +4139,12 @@ function ic({
|
|
|
4129
4139
|
variant: r = "outline",
|
|
4130
4140
|
items: o = [],
|
|
4131
4141
|
itemToString: s,
|
|
4132
|
-
itemToValue:
|
|
4133
|
-
renderItem:
|
|
4142
|
+
itemToValue: a,
|
|
4143
|
+
renderItem: c,
|
|
4134
4144
|
value: l,
|
|
4135
4145
|
loading: u,
|
|
4136
|
-
error:
|
|
4137
|
-
errorMessage:
|
|
4146
|
+
error: d,
|
|
4147
|
+
errorMessage: f,
|
|
4138
4148
|
placeholder: x,
|
|
4139
4149
|
helpText: p,
|
|
4140
4150
|
onInputChange: h,
|
|
@@ -4142,23 +4152,23 @@ function ic({
|
|
|
4142
4152
|
visible: b = !0,
|
|
4143
4153
|
// 🔑 SLOT PROPS
|
|
4144
4154
|
rootProps: y,
|
|
4145
|
-
inputProps:
|
|
4146
|
-
controlProps:
|
|
4147
|
-
contentProps:
|
|
4155
|
+
inputProps: j,
|
|
4156
|
+
controlProps: R,
|
|
4157
|
+
contentProps: $,
|
|
4148
4158
|
itemProps: M
|
|
4149
4159
|
}) {
|
|
4150
|
-
const [
|
|
4160
|
+
const [E, I] = J(""), { collection: A, set: H } = _o({
|
|
4151
4161
|
initialItems: o,
|
|
4152
4162
|
itemToString: s,
|
|
4153
|
-
itemToValue:
|
|
4163
|
+
itemToValue: a
|
|
4154
4164
|
}), P = U(() => {
|
|
4155
|
-
if (!
|
|
4156
|
-
const
|
|
4157
|
-
return o.filter((
|
|
4158
|
-
}, [o,
|
|
4165
|
+
if (!E) return o;
|
|
4166
|
+
const T = E.toLowerCase();
|
|
4167
|
+
return o.filter((V) => s(V).toLowerCase().includes(T));
|
|
4168
|
+
}, [o, E, s]);
|
|
4159
4169
|
return Y(() => {
|
|
4160
|
-
|
|
4161
|
-
}, [P,
|
|
4170
|
+
H(P);
|
|
4171
|
+
}, [P, H]), Y(() => {
|
|
4162
4172
|
l && I(s(l));
|
|
4163
4173
|
}, [l, s]), /* @__PURE__ */ i.jsxs(
|
|
4164
4174
|
Za,
|
|
@@ -4168,36 +4178,36 @@ function ic({
|
|
|
4168
4178
|
variant: r,
|
|
4169
4179
|
collection: A,
|
|
4170
4180
|
placeholder: x,
|
|
4171
|
-
onInputValueChange: (
|
|
4172
|
-
h?.(
|
|
4181
|
+
onInputValueChange: (T) => {
|
|
4182
|
+
h?.(T.inputValue), I(T.inputValue);
|
|
4173
4183
|
},
|
|
4174
|
-
value: l ? [
|
|
4175
|
-
onValueChange: (
|
|
4176
|
-
const
|
|
4177
|
-
if (!
|
|
4178
|
-
const
|
|
4179
|
-
|
|
4184
|
+
value: l ? [a(l)] : [],
|
|
4185
|
+
onValueChange: (T) => {
|
|
4186
|
+
const V = T.value?.[0];
|
|
4187
|
+
if (!V) return;
|
|
4188
|
+
const K = A.items.find((O) => a(O) === V);
|
|
4189
|
+
K && v?.(K);
|
|
4180
4190
|
},
|
|
4181
4191
|
positioning: { sameWidth: !1, placement: "bottom-start" },
|
|
4182
4192
|
...y,
|
|
4183
4193
|
children: [
|
|
4184
|
-
b && e && /* @__PURE__ */ i.jsx(
|
|
4185
|
-
/* @__PURE__ */ i.jsxs(Qa, { ...
|
|
4186
|
-
/* @__PURE__ */ i.jsx(ec, { placeholder: x ?? "Type to search", ...
|
|
4194
|
+
b && e && /* @__PURE__ */ i.jsx(G, { fontSize: "sm", children: e }),
|
|
4195
|
+
/* @__PURE__ */ i.jsxs(Qa, { ...R, children: [
|
|
4196
|
+
/* @__PURE__ */ i.jsx(ec, { placeholder: x ?? "Type to search", ...j }),
|
|
4187
4197
|
/* @__PURE__ */ i.jsxs(tc, { children: [
|
|
4188
4198
|
/* @__PURE__ */ i.jsx(nc, {}),
|
|
4189
4199
|
/* @__PURE__ */ i.jsx(rc, {})
|
|
4190
4200
|
] })
|
|
4191
4201
|
] }),
|
|
4192
|
-
/* @__PURE__ */ i.jsx(oc, { children: /* @__PURE__ */ i.jsxs(sc, { minW: "sm",
|
|
4202
|
+
/* @__PURE__ */ i.jsx(oc, { children: /* @__PURE__ */ i.jsxs(sc, { minW: "sm", ...$, children: [
|
|
4193
4203
|
u ? /* @__PURE__ */ i.jsxs(fe, { p: "2", children: [
|
|
4194
4204
|
/* @__PURE__ */ i.jsx(Or, { size: "xs", borderWidth: "1px" }),
|
|
4195
4205
|
/* @__PURE__ */ i.jsx(To, { children: "Loading..." })
|
|
4196
|
-
] }) :
|
|
4197
|
-
|
|
4206
|
+
] }) : d ? /* @__PURE__ */ i.jsx(G, { p: "2", color: "red.500", fontSize: "sm", children: f || "Something went wrong" }) : A.items.map((T) => /* @__PURE__ */ i.jsxs(Me.Item, { item: T, ...M, children: [
|
|
4207
|
+
c(T),
|
|
4198
4208
|
/* @__PURE__ */ i.jsx(Me.ItemIndicator, {})
|
|
4199
|
-
] },
|
|
4200
|
-
p && !
|
|
4209
|
+
] }, a(T))),
|
|
4210
|
+
p && !d && !u && /* @__PURE__ */ i.jsx(G, { p: "2", color: "fg.muted", fontSize: "sm", children: p })
|
|
4201
4211
|
] }) })
|
|
4202
4212
|
]
|
|
4203
4213
|
}
|
|
@@ -4227,8 +4237,8 @@ const se = " to ", br = 10, We = {
|
|
|
4227
4237
|
if (n === 4)
|
|
4228
4238
|
return r >= We.YEAR_MIN && r <= We.YEAR_MAX ? r : t;
|
|
4229
4239
|
if (n > 0 && n < 4) {
|
|
4230
|
-
const o = t.toString(), s = 4 - n,
|
|
4231
|
-
return parseInt(
|
|
4240
|
+
const o = t.toString(), s = 4 - n, a = o.substring(0, s);
|
|
4241
|
+
return parseInt(a + e);
|
|
4232
4242
|
}
|
|
4233
4243
|
return t;
|
|
4234
4244
|
}, dt = (e) => {
|
|
@@ -4236,8 +4246,8 @@ const se = " to ", br = 10, We = {
|
|
|
4236
4246
|
const n = e.replace(/[^\d-]/g, "").split("-").filter((u) => u !== "");
|
|
4237
4247
|
if (n.length === 0) return null;
|
|
4238
4248
|
const { year: r, month: o, day: s } = Ln();
|
|
4239
|
-
let
|
|
4240
|
-
return n.length === 1 ? (
|
|
4249
|
+
let a, c, l;
|
|
4250
|
+
return n.length === 1 ? (a = parseInt(n[0]) || s, c = o, l = r) : n.length === 2 ? (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = r) : (a = parseInt(n[0]) || s, c = parseInt(n[1]) || o, l = cc(n[2], r)), c = Math.max(1, Math.min(We.MONTH_MAX, c)), a = Math.max(1, Math.min(We.DAY_MAX, a)), `${l}-${String(c).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
|
|
4241
4251
|
}, Ce = (e) => {
|
|
4242
4252
|
if (!e) return "";
|
|
4243
4253
|
const [t, n, r] = e.split("-");
|
|
@@ -4273,14 +4283,14 @@ function pc({
|
|
|
4273
4283
|
onChange: t,
|
|
4274
4284
|
disabled: n = !1
|
|
4275
4285
|
}) {
|
|
4276
|
-
const [r = "", o = ""] = e ? e.split("|") : [], [s,
|
|
4286
|
+
const [r = "", o = ""] = e ? e.split("|") : [], [s, a] = J(() => r && o ? `${Ce(r)}${se}${Ce(o)}` : r ? Ce(r) : ""), [c, l] = J(!1), u = X(null);
|
|
4277
4287
|
Y(() => {
|
|
4278
4288
|
const h = (v) => {
|
|
4279
4289
|
v.ctrlKey && v.key === "d" && !v.shiftKey && !v.metaKey && (v.preventDefault(), u.current?.focus());
|
|
4280
4290
|
};
|
|
4281
4291
|
return window.addEventListener("keydown", h), () => window.removeEventListener("keydown", h);
|
|
4282
4292
|
}, []);
|
|
4283
|
-
const
|
|
4293
|
+
const d = (h) => {
|
|
4284
4294
|
let v = h;
|
|
4285
4295
|
if (v.includes(se)) {
|
|
4286
4296
|
const [b, y = ""] = v.split(se);
|
|
@@ -4292,67 +4302,67 @@ function pc({
|
|
|
4292
4302
|
v = `${ft(b.trim())} to ${ft(y.trim())}`;
|
|
4293
4303
|
} else
|
|
4294
4304
|
v = ft(v);
|
|
4295
|
-
|
|
4296
|
-
},
|
|
4305
|
+
a(v);
|
|
4306
|
+
}, f = () => {
|
|
4297
4307
|
const h = s.trim();
|
|
4298
4308
|
if (!h) {
|
|
4299
4309
|
t(void 0);
|
|
4300
4310
|
return;
|
|
4301
4311
|
}
|
|
4302
4312
|
if (h.includes(se)) {
|
|
4303
|
-
const [v, b = ""] = h.split(se).map((
|
|
4304
|
-
if (y &&
|
|
4305
|
-
const [
|
|
4306
|
-
|
|
4313
|
+
const [v, b = ""] = h.split(se).map((R) => R.trim()), y = dt(v), j = b ? dt(b) : null;
|
|
4314
|
+
if (y && j) {
|
|
4315
|
+
const [R, $] = j < y ? [j, y] : [y, j], M = `${Ce(R)}${se}${Ce(
|
|
4316
|
+
$
|
|
4307
4317
|
)}`;
|
|
4308
|
-
|
|
4318
|
+
a(M), t(`${R}|${$}`);
|
|
4309
4319
|
} else if (y && !b)
|
|
4310
|
-
|
|
4320
|
+
a(`${Ce(y)}${se}`), t(void 0);
|
|
4311
4321
|
else if (y && b) {
|
|
4312
|
-
const
|
|
4322
|
+
const R = ac(), [$, M] = R < y ? [R, y] : [y, R], E = `${Ce($)}${se}${Ce(
|
|
4313
4323
|
M
|
|
4314
4324
|
)}`;
|
|
4315
|
-
|
|
4325
|
+
a(E), t(`${$}|${M}`);
|
|
4316
4326
|
} else
|
|
4317
|
-
|
|
4327
|
+
a(""), t(void 0);
|
|
4318
4328
|
} else {
|
|
4319
4329
|
const v = dt(h);
|
|
4320
|
-
v ? (
|
|
4330
|
+
v ? (a(`${Ce(v)}${se}`), t(void 0)) : (a(""), t(void 0));
|
|
4321
4331
|
}
|
|
4322
4332
|
}, x = (h) => {
|
|
4323
4333
|
if (h.key !== "Enter") return;
|
|
4324
4334
|
h.preventDefault();
|
|
4325
4335
|
const v = u.current?.selectionStart || 0, b = s.indexOf(se);
|
|
4326
4336
|
if (!s.trim()) {
|
|
4327
|
-
|
|
4337
|
+
a(`${yr()}${se}`);
|
|
4328
4338
|
return;
|
|
4329
4339
|
}
|
|
4330
4340
|
if (b === -1) {
|
|
4331
|
-
const
|
|
4332
|
-
|
|
4341
|
+
const j = dt(s.trim());
|
|
4342
|
+
j && a(`${Ce(j)}${se}`);
|
|
4333
4343
|
return;
|
|
4334
4344
|
}
|
|
4335
4345
|
if (v <= b + se.length) {
|
|
4336
|
-
const
|
|
4337
|
-
|
|
4346
|
+
const j = s.substring(0, b).trim(), R = s.substring(b + se.length), $ = dt(j);
|
|
4347
|
+
$ && a(`${Ce($)}${se}${R}`);
|
|
4338
4348
|
return;
|
|
4339
4349
|
}
|
|
4340
4350
|
if (s.substring(b + se.length).trim())
|
|
4341
|
-
|
|
4351
|
+
f(), u.current?.blur();
|
|
4342
4352
|
else {
|
|
4343
|
-
const
|
|
4344
|
-
|
|
4345
|
-
|
|
4353
|
+
const j = s.substring(0, b + se.length) + yr();
|
|
4354
|
+
a(j), setTimeout(() => {
|
|
4355
|
+
f(), u.current?.blur();
|
|
4346
4356
|
}, 0);
|
|
4347
4357
|
}
|
|
4348
4358
|
}, p = () => {
|
|
4349
|
-
|
|
4359
|
+
a(""), t(void 0);
|
|
4350
4360
|
};
|
|
4351
4361
|
return /* @__PURE__ */ i.jsx(Mr, { children: /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsxs(Un, { position: "revert", children: [
|
|
4352
4362
|
/* @__PURE__ */ i.jsxs(
|
|
4353
4363
|
uc,
|
|
4354
4364
|
{
|
|
4355
|
-
open:
|
|
4365
|
+
open: c,
|
|
4356
4366
|
onEscapeKeyDown: () => {
|
|
4357
4367
|
l(!1);
|
|
4358
4368
|
},
|
|
@@ -4372,28 +4382,28 @@ function pc({
|
|
|
4372
4382
|
/* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 4, children: [
|
|
4373
4383
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4374
4384
|
/* @__PURE__ */ i.jsx(xr, { size: 16 }),
|
|
4375
|
-
/* @__PURE__ */ i.jsx(
|
|
4385
|
+
/* @__PURE__ */ i.jsx(G, { fontWeight: "semibold", fontSize: "sm", children: "Date Range Filter" })
|
|
4376
4386
|
] }),
|
|
4377
4387
|
/* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 1, children: [
|
|
4378
|
-
/* @__PURE__ */ i.jsx(
|
|
4379
|
-
/* @__PURE__ */ i.jsxs(
|
|
4388
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", fontWeight: "medium", children: "Format:" }),
|
|
4389
|
+
/* @__PURE__ */ i.jsxs(G, { fontSize: "xs", color: "gray.600", children: [
|
|
4380
4390
|
"DD-MM-YYYY",
|
|
4381
4391
|
se,
|
|
4382
4392
|
"DD-MM-YYYY"
|
|
4383
4393
|
] })
|
|
4384
4394
|
] }),
|
|
4385
4395
|
/* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 1, children: [
|
|
4386
|
-
/* @__PURE__ */ i.jsx(
|
|
4387
|
-
/* @__PURE__ */ i.jsx(
|
|
4388
|
-
/* @__PURE__ */ i.jsx(
|
|
4389
|
-
/* @__PURE__ */ i.jsx(
|
|
4390
|
-
/* @__PURE__ */ i.jsx(
|
|
4396
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", fontWeight: "medium", children: "Tips:" }),
|
|
4397
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: '• "15 to 20" → assumes current month/year' }),
|
|
4398
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: "• Leave end blank → up to today" }),
|
|
4399
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: "• Dates auto-swapped if reversed" }),
|
|
4400
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "xs", children: "• Press Enter on empty end → fills today" })
|
|
4391
4401
|
] }),
|
|
4392
4402
|
/* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 1, children: [
|
|
4393
|
-
/* @__PURE__ */ i.jsx(
|
|
4403
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", fontWeight: "medium", children: "Shortcut:" }),
|
|
4394
4404
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4395
4405
|
/* @__PURE__ */ i.jsx(Gn, { children: "Ctrl" }),
|
|
4396
|
-
/* @__PURE__ */ i.jsx(
|
|
4406
|
+
/* @__PURE__ */ i.jsx(G, { children: "+" }),
|
|
4397
4407
|
/* @__PURE__ */ i.jsx(Gn, { children: "D" })
|
|
4398
4408
|
] })
|
|
4399
4409
|
] })
|
|
@@ -4410,8 +4420,8 @@ function pc({
|
|
|
4410
4420
|
value: s,
|
|
4411
4421
|
size: "sm",
|
|
4412
4422
|
disabled: n,
|
|
4413
|
-
onChange: (h) =>
|
|
4414
|
-
onBlur:
|
|
4423
|
+
onChange: (h) => d(h.target.value),
|
|
4424
|
+
onBlur: f,
|
|
4415
4425
|
onKeyDown: x,
|
|
4416
4426
|
pr: s ? "10" : void 0,
|
|
4417
4427
|
w: "100%"
|
|
@@ -4436,19 +4446,19 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4436
4446
|
placeholder: r,
|
|
4437
4447
|
size: o = "xs",
|
|
4438
4448
|
variant: s = "outline",
|
|
4439
|
-
width:
|
|
4440
|
-
label:
|
|
4449
|
+
width: a = "100%",
|
|
4450
|
+
label: c,
|
|
4441
4451
|
helperText: l,
|
|
4442
4452
|
isDisabled: u = !1,
|
|
4443
|
-
required:
|
|
4444
|
-
errorText:
|
|
4453
|
+
required: d = !1,
|
|
4454
|
+
errorText: f,
|
|
4445
4455
|
visible: x,
|
|
4446
4456
|
type: p = "text",
|
|
4447
4457
|
min: h = 0,
|
|
4448
4458
|
max: v = 100,
|
|
4449
4459
|
step: b = 1
|
|
4450
|
-
}) => /* @__PURE__ */ i.jsxs(gc, { width:
|
|
4451
|
-
x && /* @__PURE__ */ i.jsx(vc, { children:
|
|
4460
|
+
}) => /* @__PURE__ */ i.jsxs(gc, { width: a, children: [
|
|
4461
|
+
x && /* @__PURE__ */ i.jsx(vc, { children: c }),
|
|
4452
4462
|
/* @__PURE__ */ i.jsx(Mr, { startElement: e, children: /* @__PURE__ */ i.jsx(
|
|
4453
4463
|
En,
|
|
4454
4464
|
{
|
|
@@ -4459,13 +4469,13 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4459
4469
|
type: p,
|
|
4460
4470
|
variant: s,
|
|
4461
4471
|
disabled: u,
|
|
4462
|
-
required:
|
|
4472
|
+
required: d,
|
|
4463
4473
|
min: h,
|
|
4464
4474
|
max: v,
|
|
4465
4475
|
step: b
|
|
4466
4476
|
}
|
|
4467
4477
|
) }),
|
|
4468
|
-
|
|
4478
|
+
f && /* @__PURE__ */ i.jsx(xc, { fontSize: "xs", children: f }),
|
|
4469
4479
|
l && /* @__PURE__ */ i.jsx(mc, { fontSize: "xs", children: l })
|
|
4470
4480
|
] }), bc = m(Ee.Root), yc = m(Ee.HelperText), wc = m(Ee.ErrorText), Sc = m(te.Root), Cc = m(te.Label), Dc = m(te.Control), jc = m(te.Trigger), Rc = m(te.ValueText), Ec = m(te.IndicatorGroup), _c = m(te.Indicator), Tc = m(te.Content), Oc = m(te.Item), Mc = m(te.ItemIndicator), $c = m(te.HiddenSelect), Ic = m(te.Positioner), Ac = ({
|
|
4471
4481
|
options: e = [],
|
|
@@ -4474,25 +4484,25 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4474
4484
|
onChange: r,
|
|
4475
4485
|
placeholder: o,
|
|
4476
4486
|
size: s = "xs",
|
|
4477
|
-
width:
|
|
4478
|
-
variant:
|
|
4487
|
+
width: a = "100%",
|
|
4488
|
+
variant: c = "outline",
|
|
4479
4489
|
helperText: l,
|
|
4480
4490
|
isDisabled: u,
|
|
4481
|
-
required:
|
|
4482
|
-
errorText:
|
|
4491
|
+
required: d,
|
|
4492
|
+
errorText: f,
|
|
4483
4493
|
visible: x
|
|
4484
4494
|
}) => {
|
|
4485
4495
|
const p = Tr({
|
|
4486
4496
|
items: e
|
|
4487
4497
|
});
|
|
4488
|
-
return /* @__PURE__ */ i.jsxs(bc, { disabled: u, required:
|
|
4498
|
+
return /* @__PURE__ */ i.jsxs(bc, { disabled: u, required: d, children: [
|
|
4489
4499
|
/* @__PURE__ */ i.jsxs(
|
|
4490
4500
|
Sc,
|
|
4491
4501
|
{
|
|
4492
4502
|
collection: p,
|
|
4493
|
-
variant:
|
|
4503
|
+
variant: c,
|
|
4494
4504
|
size: s,
|
|
4495
|
-
width:
|
|
4505
|
+
width: a,
|
|
4496
4506
|
value: n ? [n] : [],
|
|
4497
4507
|
onValueChange: (h) => r?.(h.value[0]),
|
|
4498
4508
|
children: [
|
|
@@ -4510,7 +4520,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4510
4520
|
}
|
|
4511
4521
|
),
|
|
4512
4522
|
l && /* @__PURE__ */ i.jsx(yc, { children: l }),
|
|
4513
|
-
|
|
4523
|
+
f && /* @__PURE__ */ i.jsx(wc, { children: f })
|
|
4514
4524
|
] });
|
|
4515
4525
|
}, uo = (e = "default") => `FILTER_PRESETS_${e}`, kc = (e) => {
|
|
4516
4526
|
if (!e) return [];
|
|
@@ -4539,17 +4549,17 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4539
4549
|
}, zc = (e, t) => {
|
|
4540
4550
|
const n = tn(e).filter((r) => r.id !== t);
|
|
4541
4551
|
Nn(e, n);
|
|
4542
|
-
},
|
|
4552
|
+
}, pu = (e, t, n) => {
|
|
4543
4553
|
const r = tn(e).map(
|
|
4544
4554
|
(o) => o.id === t ? n(o) : o
|
|
4545
4555
|
);
|
|
4546
4556
|
Nn(e, r);
|
|
4547
4557
|
}, Pc = m(Re.Root), Fc = m(Re.HiddenInput), Yc = m(Re.Control), Vc = m(xt.Root), Hc = m(xt.Track), Wc = m(xt.Range), Bc = m(xt.Thumbs), Uc = m(xt.Control), Gc = ({ filter: e, onVisibilityChange: t, onSizeChange: n }) => {
|
|
4548
|
-
const { attributes: r, listeners: o, setNodeRef: s, transform:
|
|
4558
|
+
const { attributes: r, listeners: o, setNodeRef: s, transform: a, transition: c } = to({
|
|
4549
4559
|
id: e.id
|
|
4550
4560
|
}), l = {
|
|
4551
|
-
transform: et.Transform.toString(
|
|
4552
|
-
transition:
|
|
4561
|
+
transform: et.Transform.toString(a),
|
|
4562
|
+
transition: c
|
|
4553
4563
|
};
|
|
4554
4564
|
return /* @__PURE__ */ i.jsxs(
|
|
4555
4565
|
Ne,
|
|
@@ -4566,10 +4576,10 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4566
4576
|
children: [
|
|
4567
4577
|
/* @__PURE__ */ i.jsxs(fe, { ...r, ...o, cursor: "grab", userSelect: "none", gap: 2, children: [
|
|
4568
4578
|
/* @__PURE__ */ i.jsx(co, { size: 16 }),
|
|
4569
|
-
/* @__PURE__ */ i.jsx(
|
|
4579
|
+
/* @__PURE__ */ i.jsx(G, { fontWeight: "bold", fontSize: "sm", children: e.label || e.id })
|
|
4570
4580
|
] }),
|
|
4571
4581
|
/* @__PURE__ */ i.jsxs(fe, { justify: "space-between", children: [
|
|
4572
|
-
/* @__PURE__ */ i.jsx(
|
|
4582
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", children: "Visible" }),
|
|
4573
4583
|
/* @__PURE__ */ i.jsxs(
|
|
4574
4584
|
Pc,
|
|
4575
4585
|
{
|
|
@@ -4584,7 +4594,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4584
4594
|
)
|
|
4585
4595
|
] }),
|
|
4586
4596
|
/* @__PURE__ */ i.jsxs(Ne, { align: "stretch", gap: 1, children: [
|
|
4587
|
-
/* @__PURE__ */ i.jsx(
|
|
4597
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", children: "Size" }),
|
|
4588
4598
|
/* @__PURE__ */ i.jsx(
|
|
4589
4599
|
Vc,
|
|
4590
4600
|
{
|
|
@@ -4671,11 +4681,11 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4671
4681
|
onClear: r,
|
|
4672
4682
|
filters: o,
|
|
4673
4683
|
pageKey: s = "default",
|
|
4674
|
-
onLoadPreset:
|
|
4675
|
-
activePresetName:
|
|
4684
|
+
onLoadPreset: a,
|
|
4685
|
+
activePresetName: c,
|
|
4676
4686
|
onReorder: l,
|
|
4677
4687
|
open: u,
|
|
4678
|
-
onOpenChange:
|
|
4688
|
+
onOpenChange: d
|
|
4679
4689
|
}) => {
|
|
4680
4690
|
const x = St(Bt)[s] ?? tn(s), p = () => {
|
|
4681
4691
|
const h = prompt("Preset name?");
|
|
@@ -4688,7 +4698,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4688
4698
|
values: v
|
|
4689
4699
|
});
|
|
4690
4700
|
};
|
|
4691
|
-
return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(Xc, { size: e, open: u, onOpenChange:
|
|
4701
|
+
return /* @__PURE__ */ i.jsx(fe, { wrap: "wrap", children: /* @__PURE__ */ i.jsxs(Xc, { size: e, open: u, onOpenChange: d, children: [
|
|
4692
4702
|
/* @__PURE__ */ i.jsx(qc, { asChild: !0, children: /* @__PURE__ */ i.jsxs(Oe, { "aria-label": "Open filters", variant: "outline", size: "xs", ml: 2, p: 2, children: [
|
|
4693
4703
|
/* @__PURE__ */ i.jsx(la, { size: 16 }),
|
|
4694
4704
|
"Filters"
|
|
@@ -4734,8 +4744,8 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4734
4744
|
collisionDetection: kr,
|
|
4735
4745
|
onDragEnd: ({ active: h, over: v }) => {
|
|
4736
4746
|
if (!v || h.id === v.id) return;
|
|
4737
|
-
const b = o.findIndex((
|
|
4738
|
-
l?.(
|
|
4747
|
+
const b = o.findIndex((R) => R.id === h.id), y = o.findIndex((R) => R.id === v.id), j = en(o, b, y);
|
|
4748
|
+
l?.(j);
|
|
4739
4749
|
},
|
|
4740
4750
|
children: /* @__PURE__ */ i.jsx(
|
|
4741
4751
|
Qr,
|
|
@@ -4756,19 +4766,19 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4756
4766
|
}
|
|
4757
4767
|
) }),
|
|
4758
4768
|
/* @__PURE__ */ i.jsx(xn, { value: "presets", children: /* @__PURE__ */ i.jsxs(Ne, { align: "stretch", mb: 3, children: [
|
|
4759
|
-
x.length === 0 && /* @__PURE__ */ i.jsx(
|
|
4769
|
+
x.length === 0 && /* @__PURE__ */ i.jsx(G, { fontSize: "xs", color: "gray.500", children: "No presets saved yet." }),
|
|
4760
4770
|
x.map((h) => /* @__PURE__ */ i.jsxs(
|
|
4761
4771
|
fe,
|
|
4762
4772
|
{
|
|
4763
4773
|
justify: "space-between",
|
|
4764
4774
|
border: "1px solid",
|
|
4765
|
-
borderColor:
|
|
4775
|
+
borderColor: c === h.name ? "blue.300" : "gray.200",
|
|
4766
4776
|
rounded: "md",
|
|
4767
4777
|
p: 2,
|
|
4768
4778
|
children: [
|
|
4769
4779
|
/* @__PURE__ */ i.jsxs(Ne, { align: "start", gap: 0, children: [
|
|
4770
|
-
/* @__PURE__ */ i.jsx(
|
|
4771
|
-
/* @__PURE__ */ i.jsx(
|
|
4780
|
+
/* @__PURE__ */ i.jsx(G, { fontWeight: "bold", fontSize: "sm", children: h.name }),
|
|
4781
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "xs", color: "gray.500", children: new Date(h.date).toLocaleDateString() })
|
|
4772
4782
|
] }),
|
|
4773
4783
|
/* @__PURE__ */ i.jsxs(fe, { children: [
|
|
4774
4784
|
/* @__PURE__ */ i.jsx(
|
|
@@ -4781,7 +4791,7 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4781
4791
|
...b,
|
|
4782
4792
|
value: h.values[b.id] ?? b.value
|
|
4783
4793
|
}));
|
|
4784
|
-
|
|
4794
|
+
a?.(v, h.name);
|
|
4785
4795
|
},
|
|
4786
4796
|
children: "Load"
|
|
4787
4797
|
}
|
|
@@ -4808,20 +4818,20 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4808
4818
|
] }) })
|
|
4809
4819
|
] })
|
|
4810
4820
|
] }) });
|
|
4811
|
-
},
|
|
4821
|
+
}, gu = ({
|
|
4812
4822
|
title: e,
|
|
4813
4823
|
filters: t,
|
|
4814
4824
|
onVisibilityChange: n,
|
|
4815
4825
|
onReorder: r,
|
|
4816
4826
|
onSizeChange: o,
|
|
4817
4827
|
onClear: s,
|
|
4818
|
-
maxToolbarUnits:
|
|
4819
|
-
pageKey:
|
|
4828
|
+
maxToolbarUnits: a,
|
|
4829
|
+
pageKey: c,
|
|
4820
4830
|
onLoadPreset: l,
|
|
4821
4831
|
activePresetName: u,
|
|
4822
|
-
filterDrawerSize:
|
|
4832
|
+
filterDrawerSize: d = "sm"
|
|
4823
4833
|
}) => {
|
|
4824
|
-
const [
|
|
4834
|
+
const [f, x] = J(!1);
|
|
4825
4835
|
return /* @__PURE__ */ i.jsxs(fe, { wrap: "wrap", pl: 2, pr: 2, width: "100%", justify: "space-between", children: [
|
|
4826
4836
|
e,
|
|
4827
4837
|
/* @__PURE__ */ i.jsxs(fe, { gapX: 1, children: [
|
|
@@ -4838,17 +4848,17 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4838
4848
|
/* @__PURE__ */ i.jsx(
|
|
4839
4849
|
il,
|
|
4840
4850
|
{
|
|
4841
|
-
filterDrawerSize:
|
|
4851
|
+
filterDrawerSize: d,
|
|
4842
4852
|
onVisibilityChange: n,
|
|
4843
4853
|
onReorder: r,
|
|
4844
4854
|
onSizeChange: o,
|
|
4845
4855
|
onClear: s,
|
|
4846
|
-
maxToolbarUnits:
|
|
4847
|
-
pageKey:
|
|
4856
|
+
maxToolbarUnits: a,
|
|
4857
|
+
pageKey: c,
|
|
4848
4858
|
filters: t,
|
|
4849
4859
|
onLoadPreset: l,
|
|
4850
4860
|
activePresetName: u,
|
|
4851
|
-
open:
|
|
4861
|
+
open: f,
|
|
4852
4862
|
onOpenChange: (p) => {
|
|
4853
4863
|
x(p.open);
|
|
4854
4864
|
}
|
|
@@ -4856,65 +4866,65 @@ const gc = m(Ee.Root), vc = m(Ee.Label), mc = m(Ee.HelperText), xc = m(Ee.ErrorT
|
|
|
4856
4866
|
)
|
|
4857
4867
|
] })
|
|
4858
4868
|
] });
|
|
4859
|
-
},
|
|
4869
|
+
}, vu = (e, t) => {
|
|
4860
4870
|
localStorage.setItem(`FILTER_ORDER_${e}`, JSON.stringify(t));
|
|
4861
|
-
},
|
|
4871
|
+
}, mu = (e) => {
|
|
4862
4872
|
try {
|
|
4863
4873
|
return JSON.parse(localStorage.getItem(`FILTER_ORDER_${e}`) || "[]");
|
|
4864
4874
|
} catch {
|
|
4865
4875
|
return [];
|
|
4866
4876
|
}
|
|
4867
|
-
},
|
|
4877
|
+
}, xu = ({
|
|
4868
4878
|
onClick: e,
|
|
4869
4879
|
size: t = "xs",
|
|
4870
4880
|
variant: n = "solid",
|
|
4871
4881
|
label: r,
|
|
4872
4882
|
leftIcon: o,
|
|
4873
4883
|
rightIcon: s,
|
|
4874
|
-
isDisabled:
|
|
4875
|
-
colorScheme:
|
|
4884
|
+
isDisabled: a,
|
|
4885
|
+
colorScheme: c,
|
|
4876
4886
|
loading: l,
|
|
4877
4887
|
loadingText: u,
|
|
4878
|
-
rounded:
|
|
4879
|
-
type:
|
|
4888
|
+
rounded: d,
|
|
4889
|
+
type: f = "button"
|
|
4880
4890
|
}) => /* @__PURE__ */ i.jsx(
|
|
4881
4891
|
Ue,
|
|
4882
4892
|
{
|
|
4883
4893
|
onClick: e,
|
|
4884
4894
|
size: t,
|
|
4885
4895
|
variant: n,
|
|
4886
|
-
disabled:
|
|
4887
|
-
colorPalette:
|
|
4896
|
+
disabled: a,
|
|
4897
|
+
colorPalette: c,
|
|
4888
4898
|
loading: l,
|
|
4889
4899
|
loadingText: u,
|
|
4890
|
-
rounded:
|
|
4891
|
-
type:
|
|
4900
|
+
rounded: d,
|
|
4901
|
+
type: f,
|
|
4892
4902
|
children: /* @__PURE__ */ i.jsxs(fe, { gap: 1, children: [
|
|
4893
4903
|
o,
|
|
4894
4904
|
r,
|
|
4895
4905
|
s
|
|
4896
4906
|
] })
|
|
4897
4907
|
}
|
|
4898
|
-
), al = m(
|
|
4899
|
-
function
|
|
4908
|
+
), al = m(q.Root), cl = m(q.Backdrop), ll = m(q.Positioner), ul = m(q.Content), dl = m(q.Header), fl = m(q.Body), hl = m(q.Footer), pl = m(q.Title), gl = m(q.CloseTrigger);
|
|
4909
|
+
function bu({
|
|
4900
4910
|
open: e,
|
|
4901
4911
|
onClose: t,
|
|
4902
4912
|
onConfirm: n,
|
|
4903
4913
|
title: r = "Confirm Action",
|
|
4904
4914
|
description: o = "Are you sure you want to continue?",
|
|
4905
4915
|
confirmLabel: s = "Confirm",
|
|
4906
|
-
cancelLabel:
|
|
4907
|
-
icon:
|
|
4916
|
+
cancelLabel: a = "Cancel",
|
|
4917
|
+
icon: c,
|
|
4908
4918
|
isLoading: l = !1,
|
|
4909
4919
|
confirmButtonColorScheme: u = "#4169e1"
|
|
4910
4920
|
}) {
|
|
4911
|
-
return /* @__PURE__ */ i.jsx(al, { open: e, placement: "center", onOpenChange: (
|
|
4921
|
+
return /* @__PURE__ */ i.jsx(al, { open: e, placement: "center", onOpenChange: (d) => !d.open && t(), children: /* @__PURE__ */ i.jsxs(Ge, { children: [
|
|
4912
4922
|
/* @__PURE__ */ i.jsx(cl, {}),
|
|
4913
4923
|
/* @__PURE__ */ i.jsx(ll, { children: /* @__PURE__ */ i.jsxs(ul, { maxW: "480px", children: [
|
|
4914
4924
|
/* @__PURE__ */ i.jsx(dl, { borderBottom: "1px solid", borderColor: "gray.200", children: /* @__PURE__ */ i.jsx(pl, { children: r }) }),
|
|
4915
4925
|
/* @__PURE__ */ i.jsx(fl, { p: 6, children: /* @__PURE__ */ i.jsxs(Pt, { gap: 4, align: "center", textAlign: "center", children: [
|
|
4916
|
-
/* @__PURE__ */ i.jsx(De, { color: "orange.500", children:
|
|
4917
|
-
/* @__PURE__ */ i.jsx(
|
|
4926
|
+
/* @__PURE__ */ i.jsx(De, { color: "orange.500", children: c ?? /* @__PURE__ */ i.jsx(lo, { size: 40 }) }),
|
|
4927
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", color: "gray.600", children: o })
|
|
4918
4928
|
] }) }),
|
|
4919
4929
|
/* @__PURE__ */ i.jsxs(
|
|
4920
4930
|
hl,
|
|
@@ -4924,7 +4934,7 @@ function xu({
|
|
|
4924
4934
|
borderTop: "1px solid",
|
|
4925
4935
|
borderColor: "gray.200",
|
|
4926
4936
|
children: [
|
|
4927
|
-
/* @__PURE__ */ i.jsx(Ue, { variant: "outline", size: "sm", onClick: t, children:
|
|
4937
|
+
/* @__PURE__ */ i.jsx(Ue, { variant: "outline", size: "sm", onClick: t, children: a }),
|
|
4928
4938
|
/* @__PURE__ */ i.jsx(
|
|
4929
4939
|
Ue,
|
|
4930
4940
|
{
|
|
@@ -4944,25 +4954,25 @@ function xu({
|
|
|
4944
4954
|
] }) })
|
|
4945
4955
|
] }) });
|
|
4946
4956
|
}
|
|
4947
|
-
const vl = m(
|
|
4948
|
-
function
|
|
4957
|
+
const vl = m(q.Root), ml = m(q.Backdrop), xl = m(q.Positioner), bl = m(q.Content), yl = m(q.Header), wl = m(q.Body), Sl = m(q.Footer), Cl = m(q.Title), Dl = m(q.CloseTrigger);
|
|
4958
|
+
function yu({
|
|
4949
4959
|
open: e,
|
|
4950
4960
|
onClose: t,
|
|
4951
4961
|
onConfirm: n,
|
|
4952
4962
|
title: r = "Delete Company",
|
|
4953
4963
|
entityName: o,
|
|
4954
4964
|
confirmText: s = "DELETE",
|
|
4955
|
-
confirmLabel:
|
|
4956
|
-
isLoading:
|
|
4965
|
+
confirmLabel: a = "Delete",
|
|
4966
|
+
isLoading: c = !1
|
|
4957
4967
|
}) {
|
|
4958
|
-
const [l, u] = J(""),
|
|
4968
|
+
const [l, u] = J(""), d = l === s;
|
|
4959
4969
|
return /* @__PURE__ */ i.jsx(
|
|
4960
4970
|
vl,
|
|
4961
4971
|
{
|
|
4962
4972
|
open: e,
|
|
4963
4973
|
placement: "center",
|
|
4964
|
-
onOpenChange: (
|
|
4965
|
-
!
|
|
4974
|
+
onOpenChange: (f) => {
|
|
4975
|
+
!f.open && t(), u("");
|
|
4966
4976
|
},
|
|
4967
4977
|
children: /* @__PURE__ */ i.jsxs(Ge, { children: [
|
|
4968
4978
|
/* @__PURE__ */ i.jsx(ml, {}),
|
|
@@ -4979,17 +4989,17 @@ function bu({
|
|
|
4979
4989
|
/* @__PURE__ */ i.jsx(De, { border: "1px solid", borderColor: "red.200", bg: "red.50", borderRadius: "md", p: 4, children: /* @__PURE__ */ i.jsxs(Pt, { direction: "row", gap: 3, align: "flex-start", children: [
|
|
4980
4990
|
/* @__PURE__ */ i.jsx(De, { color: "red.600", mt: "2px", children: /* @__PURE__ */ i.jsx(lo, { size: 20 }) }),
|
|
4981
4991
|
/* @__PURE__ */ i.jsxs(De, { children: [
|
|
4982
|
-
/* @__PURE__ */ i.jsx(
|
|
4983
|
-
/* @__PURE__ */ i.jsxs(
|
|
4992
|
+
/* @__PURE__ */ i.jsx(G, { fontWeight: "semibold", color: "red.700", children: "Are you sure?" }),
|
|
4993
|
+
/* @__PURE__ */ i.jsxs(G, { fontSize: "sm", color: "red.600", children: [
|
|
4984
4994
|
"All the data of ",
|
|
4985
4995
|
/* @__PURE__ */ i.jsx("b", { children: o }),
|
|
4986
4996
|
" will permanently be deleted."
|
|
4987
4997
|
] })
|
|
4988
4998
|
] })
|
|
4989
4999
|
] }) }),
|
|
4990
|
-
/* @__PURE__ */ i.jsx(
|
|
5000
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: "sm", color: "gray.600", children: "You can’t undo this action afterwards." }),
|
|
4991
5001
|
/* @__PURE__ */ i.jsxs(De, { children: [
|
|
4992
|
-
/* @__PURE__ */ i.jsxs(
|
|
5002
|
+
/* @__PURE__ */ i.jsxs(G, { fontSize: "sm", mb: 2, children: [
|
|
4993
5003
|
"Type ",
|
|
4994
5004
|
/* @__PURE__ */ i.jsx("b", { children: s }),
|
|
4995
5005
|
" to continue"
|
|
@@ -4999,7 +5009,7 @@ function bu({
|
|
|
4999
5009
|
{
|
|
5000
5010
|
placeholder: `Type ${s} here`,
|
|
5001
5011
|
value: l,
|
|
5002
|
-
onChange: (
|
|
5012
|
+
onChange: (f) => u(f.target.value),
|
|
5003
5013
|
size: "xs"
|
|
5004
5014
|
}
|
|
5005
5015
|
)
|
|
@@ -5030,13 +5040,13 @@ function bu({
|
|
|
5030
5040
|
Ue,
|
|
5031
5041
|
{
|
|
5032
5042
|
size: "sm",
|
|
5033
|
-
disabled: !
|
|
5043
|
+
disabled: !d,
|
|
5034
5044
|
style: {
|
|
5035
5045
|
backgroundColor: "#FF0000"
|
|
5036
5046
|
},
|
|
5037
|
-
loading:
|
|
5047
|
+
loading: c,
|
|
5038
5048
|
onClick: n,
|
|
5039
|
-
children:
|
|
5049
|
+
children: a
|
|
5040
5050
|
}
|
|
5041
5051
|
)
|
|
5042
5052
|
]
|
|
@@ -5048,27 +5058,29 @@ function bu({
|
|
|
5048
5058
|
}
|
|
5049
5059
|
);
|
|
5050
5060
|
}
|
|
5051
|
-
const jl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), Rl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }),
|
|
5061
|
+
const jl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), Rl = ({ children: e }) => /* @__PURE__ */ i.jsx(i.Fragment, { children: e }), wu = Ue, El = m(q.Root), _l = m(q.Backdrop), Tl = m(q.Positioner), Ol = m(q.Content), Ml = m(q.Header), $l = m(q.Body), Il = m(q.Footer), Al = m(q.Title), kl = m(q.CloseTrigger);
|
|
5052
5062
|
function Ll(e) {
|
|
5053
5063
|
let t = null, n = null;
|
|
5054
5064
|
return oe.Children.forEach(e, (r) => {
|
|
5055
5065
|
oe.isValidElement(r) && (r.type === jl && (t = r.props.children), r.type === Rl && (n = r.props.children));
|
|
5056
5066
|
}), { body: t, actions: n };
|
|
5057
5067
|
}
|
|
5058
|
-
const
|
|
5068
|
+
const Su = ({
|
|
5059
5069
|
open: e,
|
|
5060
5070
|
onClose: t,
|
|
5061
5071
|
title: n,
|
|
5062
5072
|
children: r,
|
|
5063
5073
|
width: o,
|
|
5064
|
-
position: s
|
|
5074
|
+
position: s,
|
|
5075
|
+
refetch: a,
|
|
5076
|
+
loading: c = !1
|
|
5065
5077
|
}) => {
|
|
5066
|
-
const { body:
|
|
5078
|
+
const { body: l, actions: u } = Ll(r);
|
|
5067
5079
|
return /* @__PURE__ */ i.jsx(
|
|
5068
5080
|
El,
|
|
5069
5081
|
{
|
|
5070
5082
|
open: e,
|
|
5071
|
-
onOpenChange: (
|
|
5083
|
+
onOpenChange: (d) => !d.open && t(),
|
|
5072
5084
|
placement: s ?? "center",
|
|
5073
5085
|
children: /* @__PURE__ */ i.jsxs(Ge, { children: [
|
|
5074
5086
|
/* @__PURE__ */ i.jsx(_l, { bg: "blackAlpha.400" }),
|
|
@@ -5091,12 +5103,13 @@ const wu = ({
|
|
|
5091
5103
|
borderColor: "gray.200",
|
|
5092
5104
|
children: /* @__PURE__ */ i.jsxs(an, { align: "center", justify: "space-between", children: [
|
|
5093
5105
|
/* @__PURE__ */ i.jsx(Al, { fontSize: "16px", fontWeight: "600", children: n }),
|
|
5094
|
-
/* @__PURE__ */ i.jsx(kl, { asChild: !0, children: /* @__PURE__ */ i.jsx(Xt, { size: "sm" }) })
|
|
5106
|
+
/* @__PURE__ */ i.jsx(kl, { asChild: !0, children: /* @__PURE__ */ i.jsx(Xt, { size: "sm" }) }),
|
|
5107
|
+
a && /* @__PURE__ */ i.jsx(Bl, { label: "Refresh", refetch: a, isLoading: c })
|
|
5095
5108
|
] })
|
|
5096
5109
|
}
|
|
5097
5110
|
),
|
|
5098
|
-
|
|
5099
|
-
|
|
5111
|
+
l && /* @__PURE__ */ i.jsx($l, { px: "20px", py: "16px", bg: "#F8FAFC", type: "submit", children: /* @__PURE__ */ i.jsx(an, { direction: "column", gap: "16px", children: l }) }),
|
|
5112
|
+
u && /* @__PURE__ */ i.jsx(
|
|
5100
5113
|
Il,
|
|
5101
5114
|
{
|
|
5102
5115
|
px: "20px",
|
|
@@ -5104,7 +5117,7 @@ const wu = ({
|
|
|
5104
5117
|
bg: "white",
|
|
5105
5118
|
borderTop: "1px solid",
|
|
5106
5119
|
borderColor: "gray.200",
|
|
5107
|
-
children: /* @__PURE__ */ i.jsx(an, { ml: "auto", gap: "12px", children:
|
|
5120
|
+
children: /* @__PURE__ */ i.jsx(an, { ml: "auto", gap: "12px", children: u })
|
|
5108
5121
|
}
|
|
5109
5122
|
)
|
|
5110
5123
|
]
|
|
@@ -5113,19 +5126,19 @@ const wu = ({
|
|
|
5113
5126
|
] })
|
|
5114
5127
|
}
|
|
5115
5128
|
);
|
|
5116
|
-
}, Nl = m(Ee.Root), zl = m(Ee.Label), Pl = m(Ee.HelperText), Fl = m(Ee.ErrorText), Yl = m(qt.Input), Vl = m(qt.Control), Hl = m(qt.HiddenInput), Wl = m(qt.Root),
|
|
5129
|
+
}, Nl = m(Ee.Root), zl = m(Ee.Label), Pl = m(Ee.HelperText), Fl = m(Ee.ErrorText), Yl = m(qt.Input), Vl = m(qt.Control), Hl = m(qt.HiddenInput), Wl = m(qt.Root), Cu = ({
|
|
5117
5130
|
value: e,
|
|
5118
5131
|
onChange: t,
|
|
5119
5132
|
length: n = 4,
|
|
5120
5133
|
size: r = "xs",
|
|
5121
5134
|
isDisabled: o = !1,
|
|
5122
5135
|
label: s,
|
|
5123
|
-
helperText:
|
|
5124
|
-
errorText:
|
|
5136
|
+
helperText: a,
|
|
5137
|
+
errorText: c,
|
|
5125
5138
|
required: l = !1,
|
|
5126
5139
|
visible: u = !0
|
|
5127
5140
|
}) => {
|
|
5128
|
-
const
|
|
5141
|
+
const d = Array.from({ length: n }).map((f, x) => e?.[x] ?? "");
|
|
5129
5142
|
return /* @__PURE__ */ i.jsxs(Nl, { children: [
|
|
5130
5143
|
u && s && /* @__PURE__ */ i.jsxs(zl, { children: [
|
|
5131
5144
|
s,
|
|
@@ -5134,21 +5147,21 @@ const wu = ({
|
|
|
5134
5147
|
/* @__PURE__ */ i.jsxs(
|
|
5135
5148
|
Wl,
|
|
5136
5149
|
{
|
|
5137
|
-
value:
|
|
5138
|
-
onValueChange: (
|
|
5150
|
+
value: d,
|
|
5151
|
+
onValueChange: (f) => t?.(f.value.join("")),
|
|
5139
5152
|
disabled: o,
|
|
5140
5153
|
size: r,
|
|
5141
5154
|
children: [
|
|
5142
5155
|
/* @__PURE__ */ i.jsx(Hl, {}),
|
|
5143
|
-
/* @__PURE__ */ i.jsx(Vl, { children: /* @__PURE__ */ i.jsx(fe, { children: Array.from({ length: n }).map((
|
|
5156
|
+
/* @__PURE__ */ i.jsx(Vl, { children: /* @__PURE__ */ i.jsx(fe, { children: Array.from({ length: n }).map((f, x) => /* @__PURE__ */ i.jsx(Yl, { index: x }, x)) }) })
|
|
5144
5157
|
]
|
|
5145
5158
|
}
|
|
5146
5159
|
),
|
|
5147
|
-
|
|
5148
|
-
|
|
5160
|
+
c && /* @__PURE__ */ i.jsx(Fl, { fontSize: "xs", children: c }),
|
|
5161
|
+
a && !c && /* @__PURE__ */ i.jsx(Pl, { fontSize: "xs", children: a })
|
|
5149
5162
|
] });
|
|
5150
5163
|
};
|
|
5151
|
-
function
|
|
5164
|
+
function Bl({
|
|
5152
5165
|
refetch: e,
|
|
5153
5166
|
isLoading: t = !1,
|
|
5154
5167
|
label: n = "Refresh"
|
|
@@ -5182,158 +5195,158 @@ function Cu({
|
|
|
5182
5195
|
}
|
|
5183
5196
|
);
|
|
5184
5197
|
}
|
|
5185
|
-
var At = { exports: {} },
|
|
5186
|
-
function
|
|
5198
|
+
var At = { exports: {} }, Ul = At.exports, Sr;
|
|
5199
|
+
function Gl() {
|
|
5187
5200
|
return Sr || (Sr = 1, (function(e, t) {
|
|
5188
5201
|
(function(n, r) {
|
|
5189
5202
|
e.exports = r();
|
|
5190
|
-
})(
|
|
5191
|
-
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond",
|
|
5192
|
-
var C = ["th", "st", "nd", "rd"], w =
|
|
5193
|
-
return "[" +
|
|
5194
|
-
} },
|
|
5195
|
-
var
|
|
5196
|
-
return !
|
|
5197
|
-
},
|
|
5198
|
-
var C =
|
|
5199
|
-
return (C <= 0 ? "+" : "-") +
|
|
5200
|
-
}, m: function
|
|
5201
|
-
if (C.date() < w.date()) return
|
|
5202
|
-
var
|
|
5203
|
-
return +(-(
|
|
5204
|
-
}, a: function(
|
|
5205
|
-
return
|
|
5206
|
-
}, p: function(
|
|
5207
|
-
return { M:
|
|
5208
|
-
}, u: function(
|
|
5209
|
-
return
|
|
5210
|
-
} }, M = "en",
|
|
5211
|
-
|
|
5212
|
-
var I = "$isDayjsObject", A = function(
|
|
5213
|
-
return
|
|
5214
|
-
},
|
|
5215
|
-
var
|
|
5203
|
+
})(Ul, (function() {
|
|
5204
|
+
var n = 1e3, r = 6e4, o = 36e5, s = "millisecond", a = "second", c = "minute", l = "hour", u = "day", d = "week", f = "month", x = "quarter", p = "year", h = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
|
|
5205
|
+
var C = ["th", "st", "nd", "rd"], w = O % 100;
|
|
5206
|
+
return "[" + O + (C[(w - 20) % 10] || C[w] || C[0]) + "]";
|
|
5207
|
+
} }, R = function(O, C, w) {
|
|
5208
|
+
var _ = String(O);
|
|
5209
|
+
return !_ || _.length >= C ? O : "" + Array(C + 1 - _.length).join(w) + O;
|
|
5210
|
+
}, $ = { s: R, z: function(O) {
|
|
5211
|
+
var C = -O.utcOffset(), w = Math.abs(C), _ = Math.floor(w / 60), S = w % 60;
|
|
5212
|
+
return (C <= 0 ? "+" : "-") + R(_, 2, "0") + ":" + R(S, 2, "0");
|
|
5213
|
+
}, m: function O(C, w) {
|
|
5214
|
+
if (C.date() < w.date()) return -O(w, C);
|
|
5215
|
+
var _ = 12 * (w.year() - C.year()) + (w.month() - C.month()), S = C.clone().add(_, f), k = w - S < 0, N = C.clone().add(_ + (k ? -1 : 1), f);
|
|
5216
|
+
return +(-(_ + (w - S) / (k ? S - N : N - S)) || 0);
|
|
5217
|
+
}, a: function(O) {
|
|
5218
|
+
return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
|
|
5219
|
+
}, p: function(O) {
|
|
5220
|
+
return { M: f, y: p, w: d, d: u, D: h, h: l, m: c, s: a, ms: s, Q: x }[O] || String(O || "").toLowerCase().replace(/s$/, "");
|
|
5221
|
+
}, u: function(O) {
|
|
5222
|
+
return O === void 0;
|
|
5223
|
+
} }, M = "en", E = {};
|
|
5224
|
+
E[M] = j;
|
|
5225
|
+
var I = "$isDayjsObject", A = function(O) {
|
|
5226
|
+
return O instanceof V || !(!O || !O[I]);
|
|
5227
|
+
}, H = function O(C, w, _) {
|
|
5228
|
+
var S;
|
|
5216
5229
|
if (!C) return M;
|
|
5217
5230
|
if (typeof C == "string") {
|
|
5218
5231
|
var k = C.toLowerCase();
|
|
5219
|
-
|
|
5232
|
+
E[k] && (S = k), w && (E[k] = w, S = k);
|
|
5220
5233
|
var N = C.split("-");
|
|
5221
|
-
if (!
|
|
5234
|
+
if (!S && N.length > 1) return O(N[0]);
|
|
5222
5235
|
} else {
|
|
5223
5236
|
var g = C.name;
|
|
5224
|
-
|
|
5237
|
+
E[g] = C, S = g;
|
|
5225
5238
|
}
|
|
5226
|
-
return !
|
|
5227
|
-
}, P = function(
|
|
5228
|
-
if (A(
|
|
5239
|
+
return !_ && S && (M = S), S || !_ && M;
|
|
5240
|
+
}, P = function(O, C) {
|
|
5241
|
+
if (A(O)) return O.clone();
|
|
5229
5242
|
var w = typeof C == "object" ? C : {};
|
|
5230
|
-
return w.date =
|
|
5231
|
-
},
|
|
5232
|
-
|
|
5233
|
-
return P(
|
|
5243
|
+
return w.date = O, w.args = arguments, new V(w);
|
|
5244
|
+
}, T = $;
|
|
5245
|
+
T.l = H, T.i = A, T.w = function(O, C) {
|
|
5246
|
+
return P(O, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
|
|
5234
5247
|
};
|
|
5235
|
-
var
|
|
5236
|
-
function
|
|
5237
|
-
this.$L =
|
|
5248
|
+
var V = (function() {
|
|
5249
|
+
function O(w) {
|
|
5250
|
+
this.$L = H(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[I] = !0;
|
|
5238
5251
|
}
|
|
5239
|
-
var C =
|
|
5252
|
+
var C = O.prototype;
|
|
5240
5253
|
return C.parse = function(w) {
|
|
5241
|
-
this.$d = (function(
|
|
5242
|
-
var
|
|
5243
|
-
if (
|
|
5244
|
-
if (
|
|
5245
|
-
if (
|
|
5246
|
-
if (typeof
|
|
5247
|
-
var N =
|
|
5254
|
+
this.$d = (function(_) {
|
|
5255
|
+
var S = _.date, k = _.utc;
|
|
5256
|
+
if (S === null) return /* @__PURE__ */ new Date(NaN);
|
|
5257
|
+
if (T.u(S)) return /* @__PURE__ */ new Date();
|
|
5258
|
+
if (S instanceof Date) return new Date(S);
|
|
5259
|
+
if (typeof S == "string" && !/Z$/i.test(S)) {
|
|
5260
|
+
var N = S.match(b);
|
|
5248
5261
|
if (N) {
|
|
5249
5262
|
var g = N[2] - 1 || 0, D = (N[7] || "0").substring(0, 3);
|
|
5250
5263
|
return k ? new Date(Date.UTC(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, D)) : new Date(N[1], g, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, D);
|
|
5251
5264
|
}
|
|
5252
5265
|
}
|
|
5253
|
-
return new Date(
|
|
5266
|
+
return new Date(S);
|
|
5254
5267
|
})(w), this.init();
|
|
5255
5268
|
}, C.init = function() {
|
|
5256
5269
|
var w = this.$d;
|
|
5257
5270
|
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();
|
|
5258
5271
|
}, C.$utils = function() {
|
|
5259
|
-
return
|
|
5272
|
+
return T;
|
|
5260
5273
|
}, C.isValid = function() {
|
|
5261
5274
|
return this.$d.toString() !== v;
|
|
5262
|
-
}, C.isSame = function(w,
|
|
5263
|
-
var
|
|
5264
|
-
return this.startOf(
|
|
5265
|
-
}, C.isAfter = function(w,
|
|
5266
|
-
return P(w) < this.startOf(
|
|
5267
|
-
}, C.isBefore = function(w,
|
|
5268
|
-
return this.endOf(
|
|
5269
|
-
}, C.$g = function(w,
|
|
5270
|
-
return
|
|
5275
|
+
}, C.isSame = function(w, _) {
|
|
5276
|
+
var S = P(w);
|
|
5277
|
+
return this.startOf(_) <= S && S <= this.endOf(_);
|
|
5278
|
+
}, C.isAfter = function(w, _) {
|
|
5279
|
+
return P(w) < this.startOf(_);
|
|
5280
|
+
}, C.isBefore = function(w, _) {
|
|
5281
|
+
return this.endOf(_) < P(w);
|
|
5282
|
+
}, C.$g = function(w, _, S) {
|
|
5283
|
+
return T.u(w) ? this[_] : this.set(S, w);
|
|
5271
5284
|
}, C.unix = function() {
|
|
5272
5285
|
return Math.floor(this.valueOf() / 1e3);
|
|
5273
5286
|
}, C.valueOf = function() {
|
|
5274
5287
|
return this.$d.getTime();
|
|
5275
|
-
}, C.startOf = function(w,
|
|
5276
|
-
var
|
|
5277
|
-
var pe =
|
|
5288
|
+
}, C.startOf = function(w, _) {
|
|
5289
|
+
var S = this, k = !!T.u(_) || _, N = T.p(w), g = function(re, z) {
|
|
5290
|
+
var pe = T.w(S.$u ? Date.UTC(S.$y, z, re) : new Date(S.$y, z, re), S);
|
|
5278
5291
|
return k ? pe : pe.endOf(u);
|
|
5279
5292
|
}, D = function(re, z) {
|
|
5280
|
-
return
|
|
5293
|
+
return T.w(S.toDate()[re].apply(S.toDate("s"), (k ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), S);
|
|
5281
5294
|
}, L = this.$W, F = this.$M, Z = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
5282
5295
|
switch (N) {
|
|
5283
5296
|
case p:
|
|
5284
5297
|
return k ? g(1, 0) : g(31, 11);
|
|
5285
|
-
case d:
|
|
5286
|
-
return k ? g(1, F) : g(0, F + 1);
|
|
5287
5298
|
case f:
|
|
5288
|
-
|
|
5299
|
+
return k ? g(1, F) : g(0, F + 1);
|
|
5300
|
+
case d:
|
|
5301
|
+
var W = this.$locale().weekStart || 0, ne = (L < W ? L + 7 : L) - W;
|
|
5289
5302
|
return g(k ? Z - ne : Z + (6 - ne), F);
|
|
5290
5303
|
case u:
|
|
5291
5304
|
case h:
|
|
5292
5305
|
return D(Q + "Hours", 0);
|
|
5293
5306
|
case l:
|
|
5294
5307
|
return D(Q + "Minutes", 1);
|
|
5295
|
-
case a:
|
|
5296
|
-
return D(Q + "Seconds", 2);
|
|
5297
5308
|
case c:
|
|
5309
|
+
return D(Q + "Seconds", 2);
|
|
5310
|
+
case a:
|
|
5298
5311
|
return D(Q + "Milliseconds", 3);
|
|
5299
5312
|
default:
|
|
5300
5313
|
return this.clone();
|
|
5301
5314
|
}
|
|
5302
5315
|
}, C.endOf = function(w) {
|
|
5303
5316
|
return this.startOf(w, !1);
|
|
5304
|
-
}, C.$set = function(w,
|
|
5305
|
-
var
|
|
5306
|
-
if (k ===
|
|
5317
|
+
}, C.$set = function(w, _) {
|
|
5318
|
+
var S, k = T.p(w), N = "set" + (this.$u ? "UTC" : ""), g = (S = {}, S[u] = N + "Date", S[h] = N + "Date", S[f] = N + "Month", S[p] = N + "FullYear", S[l] = N + "Hours", S[c] = N + "Minutes", S[a] = N + "Seconds", S[s] = N + "Milliseconds", S)[k], D = k === u ? this.$D + (_ - this.$W) : _;
|
|
5319
|
+
if (k === f || k === p) {
|
|
5307
5320
|
var L = this.clone().set(h, 1);
|
|
5308
5321
|
L.$d[g](D), L.init(), this.$d = L.set(h, Math.min(this.$D, L.daysInMonth())).$d;
|
|
5309
5322
|
} else g && this.$d[g](D);
|
|
5310
5323
|
return this.init(), this;
|
|
5311
|
-
}, C.set = function(w,
|
|
5312
|
-
return this.clone().$set(w,
|
|
5324
|
+
}, C.set = function(w, _) {
|
|
5325
|
+
return this.clone().$set(w, _);
|
|
5313
5326
|
}, C.get = function(w) {
|
|
5314
|
-
return this[
|
|
5315
|
-
}, C.add = function(w,
|
|
5316
|
-
var
|
|
5327
|
+
return this[T.p(w)]();
|
|
5328
|
+
}, C.add = function(w, _) {
|
|
5329
|
+
var S, k = this;
|
|
5317
5330
|
w = Number(w);
|
|
5318
|
-
var N =
|
|
5331
|
+
var N = T.p(_), g = function(F) {
|
|
5319
5332
|
var Z = P(k);
|
|
5320
|
-
return
|
|
5333
|
+
return T.w(Z.date(Z.date() + Math.round(F * w)), k);
|
|
5321
5334
|
};
|
|
5322
|
-
if (N ===
|
|
5335
|
+
if (N === f) return this.set(f, this.$M + w);
|
|
5323
5336
|
if (N === p) return this.set(p, this.$y + w);
|
|
5324
5337
|
if (N === u) return g(1);
|
|
5325
|
-
if (N ===
|
|
5326
|
-
var D = (
|
|
5327
|
-
return
|
|
5328
|
-
}, C.subtract = function(w,
|
|
5329
|
-
return this.add(-1 * w,
|
|
5338
|
+
if (N === d) return g(7);
|
|
5339
|
+
var D = (S = {}, S[c] = r, S[l] = o, S[a] = n, S)[N] || 1, L = this.$d.getTime() + w * D;
|
|
5340
|
+
return T.w(L, this);
|
|
5341
|
+
}, C.subtract = function(w, _) {
|
|
5342
|
+
return this.add(-1 * w, _);
|
|
5330
5343
|
}, C.format = function(w) {
|
|
5331
|
-
var
|
|
5332
|
-
if (!this.isValid()) return
|
|
5333
|
-
var k = w || "YYYY-MM-DDTHH:mm:ssZ", N =
|
|
5334
|
-
return z && (z[pe] || z(
|
|
5344
|
+
var _ = this, S = this.$locale();
|
|
5345
|
+
if (!this.isValid()) return S.invalidDate || v;
|
|
5346
|
+
var k = w || "YYYY-MM-DDTHH:mm:ssZ", N = T.z(this), g = this.$H, D = this.$m, L = this.$M, F = S.weekdays, Z = S.months, Q = S.meridiem, W = function(z, pe, ue, Se) {
|
|
5347
|
+
return z && (z[pe] || z(_, k)) || ue[pe].slice(0, Se);
|
|
5335
5348
|
}, ne = function(z) {
|
|
5336
|
-
return
|
|
5349
|
+
return T.s(g % 12 || 12, z, "0");
|
|
5337
5350
|
}, re = Q || function(z, pe, ue) {
|
|
5338
5351
|
var Se = z < 12 ? "AM" : "PM";
|
|
5339
5352
|
return ue ? Se.toLowerCase() : Se;
|
|
@@ -5342,33 +5355,33 @@ function Ul() {
|
|
|
5342
5355
|
return pe || (function(ue) {
|
|
5343
5356
|
switch (ue) {
|
|
5344
5357
|
case "YY":
|
|
5345
|
-
return String(
|
|
5358
|
+
return String(_.$y).slice(-2);
|
|
5346
5359
|
case "YYYY":
|
|
5347
|
-
return
|
|
5360
|
+
return T.s(_.$y, 4, "0");
|
|
5348
5361
|
case "M":
|
|
5349
5362
|
return L + 1;
|
|
5350
5363
|
case "MM":
|
|
5351
|
-
return
|
|
5364
|
+
return T.s(L + 1, 2, "0");
|
|
5352
5365
|
case "MMM":
|
|
5353
|
-
return
|
|
5366
|
+
return W(S.monthsShort, L, Z, 3);
|
|
5354
5367
|
case "MMMM":
|
|
5355
|
-
return
|
|
5368
|
+
return W(Z, L);
|
|
5356
5369
|
case "D":
|
|
5357
|
-
return
|
|
5370
|
+
return _.$D;
|
|
5358
5371
|
case "DD":
|
|
5359
|
-
return
|
|
5372
|
+
return T.s(_.$D, 2, "0");
|
|
5360
5373
|
case "d":
|
|
5361
|
-
return String(
|
|
5374
|
+
return String(_.$W);
|
|
5362
5375
|
case "dd":
|
|
5363
|
-
return
|
|
5376
|
+
return W(S.weekdaysMin, _.$W, F, 2);
|
|
5364
5377
|
case "ddd":
|
|
5365
|
-
return
|
|
5378
|
+
return W(S.weekdaysShort, _.$W, F, 3);
|
|
5366
5379
|
case "dddd":
|
|
5367
|
-
return F[
|
|
5380
|
+
return F[_.$W];
|
|
5368
5381
|
case "H":
|
|
5369
5382
|
return String(g);
|
|
5370
5383
|
case "HH":
|
|
5371
|
-
return
|
|
5384
|
+
return T.s(g, 2, "0");
|
|
5372
5385
|
case "h":
|
|
5373
5386
|
return ne(1);
|
|
5374
5387
|
case "hh":
|
|
@@ -5380,13 +5393,13 @@ function Ul() {
|
|
|
5380
5393
|
case "m":
|
|
5381
5394
|
return String(D);
|
|
5382
5395
|
case "mm":
|
|
5383
|
-
return
|
|
5396
|
+
return T.s(D, 2, "0");
|
|
5384
5397
|
case "s":
|
|
5385
|
-
return String(
|
|
5398
|
+
return String(_.$s);
|
|
5386
5399
|
case "ss":
|
|
5387
|
-
return
|
|
5400
|
+
return T.s(_.$s, 2, "0");
|
|
5388
5401
|
case "SSS":
|
|
5389
|
-
return
|
|
5402
|
+
return T.s(_.$ms, 3, "0");
|
|
5390
5403
|
case "Z":
|
|
5391
5404
|
return N;
|
|
5392
5405
|
}
|
|
@@ -5395,21 +5408,21 @@ function Ul() {
|
|
|
5395
5408
|
}));
|
|
5396
5409
|
}, C.utcOffset = function() {
|
|
5397
5410
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5398
|
-
}, C.diff = function(w,
|
|
5399
|
-
var k, N = this, g =
|
|
5400
|
-
return
|
|
5411
|
+
}, C.diff = function(w, _, S) {
|
|
5412
|
+
var k, N = this, g = T.p(_), D = P(w), L = (D.utcOffset() - this.utcOffset()) * r, F = this - D, Z = function() {
|
|
5413
|
+
return T.m(N, D);
|
|
5401
5414
|
};
|
|
5402
5415
|
switch (g) {
|
|
5403
5416
|
case p:
|
|
5404
5417
|
k = Z() / 12;
|
|
5405
5418
|
break;
|
|
5406
|
-
case
|
|
5419
|
+
case f:
|
|
5407
5420
|
k = Z();
|
|
5408
5421
|
break;
|
|
5409
5422
|
case x:
|
|
5410
5423
|
k = Z() / 3;
|
|
5411
5424
|
break;
|
|
5412
|
-
case
|
|
5425
|
+
case d:
|
|
5413
5426
|
k = (F - L) / 6048e5;
|
|
5414
5427
|
break;
|
|
5415
5428
|
case u:
|
|
@@ -5418,26 +5431,26 @@ function Ul() {
|
|
|
5418
5431
|
case l:
|
|
5419
5432
|
k = F / o;
|
|
5420
5433
|
break;
|
|
5421
|
-
case
|
|
5434
|
+
case c:
|
|
5422
5435
|
k = F / r;
|
|
5423
5436
|
break;
|
|
5424
|
-
case
|
|
5437
|
+
case a:
|
|
5425
5438
|
k = F / n;
|
|
5426
5439
|
break;
|
|
5427
5440
|
default:
|
|
5428
5441
|
k = F;
|
|
5429
5442
|
}
|
|
5430
|
-
return
|
|
5443
|
+
return S ? k : T.a(k);
|
|
5431
5444
|
}, C.daysInMonth = function() {
|
|
5432
|
-
return this.endOf(
|
|
5445
|
+
return this.endOf(f).$D;
|
|
5433
5446
|
}, C.$locale = function() {
|
|
5434
|
-
return
|
|
5435
|
-
}, C.locale = function(w,
|
|
5447
|
+
return E[this.$L];
|
|
5448
|
+
}, C.locale = function(w, _) {
|
|
5436
5449
|
if (!w) return this.$L;
|
|
5437
|
-
var
|
|
5438
|
-
return k && (
|
|
5450
|
+
var S = this.clone(), k = H(w, _, !0);
|
|
5451
|
+
return k && (S.$L = k), S;
|
|
5439
5452
|
}, C.clone = function() {
|
|
5440
|
-
return
|
|
5453
|
+
return T.w(this.$d, this);
|
|
5441
5454
|
}, C.toDate = function() {
|
|
5442
5455
|
return new Date(this.valueOf());
|
|
5443
5456
|
}, C.toJSON = function() {
|
|
@@ -5446,53 +5459,53 @@ function Ul() {
|
|
|
5446
5459
|
return this.$d.toISOString();
|
|
5447
5460
|
}, C.toString = function() {
|
|
5448
5461
|
return this.$d.toUTCString();
|
|
5449
|
-
},
|
|
5450
|
-
})(),
|
|
5451
|
-
return P.prototype =
|
|
5452
|
-
|
|
5453
|
-
return this.$g(C,
|
|
5462
|
+
}, O;
|
|
5463
|
+
})(), K = V.prototype;
|
|
5464
|
+
return P.prototype = K, [["$ms", s], ["$s", a], ["$m", c], ["$H", l], ["$W", u], ["$M", f], ["$y", p], ["$D", h]].forEach((function(O) {
|
|
5465
|
+
K[O[1]] = function(C) {
|
|
5466
|
+
return this.$g(C, O[0], O[1]);
|
|
5454
5467
|
};
|
|
5455
|
-
})), P.extend = function(
|
|
5456
|
-
return
|
|
5457
|
-
}, P.locale =
|
|
5458
|
-
return P(1e3 *
|
|
5459
|
-
}, P.en =
|
|
5468
|
+
})), P.extend = function(O, C) {
|
|
5469
|
+
return O.$i || (O(C, V, P), O.$i = !0), P;
|
|
5470
|
+
}, P.locale = H, P.isDayjs = A, P.unix = function(O) {
|
|
5471
|
+
return P(1e3 * O);
|
|
5472
|
+
}, P.en = E[M], P.Ls = E, P.p = {}, P;
|
|
5460
5473
|
}));
|
|
5461
5474
|
})(At)), At.exports;
|
|
5462
5475
|
}
|
|
5463
|
-
var
|
|
5464
|
-
const nn = /* @__PURE__ */ Kt(
|
|
5465
|
-
var kt = { exports: {} },
|
|
5466
|
-
function
|
|
5476
|
+
var Xl = Gl();
|
|
5477
|
+
const nn = /* @__PURE__ */ Kt(Xl);
|
|
5478
|
+
var kt = { exports: {} }, ql = kt.exports, Cr;
|
|
5479
|
+
function Kl() {
|
|
5467
5480
|
return Cr || (Cr = 1, (function(e, t) {
|
|
5468
5481
|
(function(n, r) {
|
|
5469
5482
|
e.exports = r();
|
|
5470
|
-
})(
|
|
5483
|
+
})(ql, (function() {
|
|
5471
5484
|
return function(n, r, o) {
|
|
5472
5485
|
n = n || {};
|
|
5473
|
-
var s = r.prototype,
|
|
5474
|
-
function
|
|
5475
|
-
return s.fromToBase(u,
|
|
5486
|
+
var s = r.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
5487
|
+
function c(u, d, f, x) {
|
|
5488
|
+
return s.fromToBase(u, d, f, x);
|
|
5476
5489
|
}
|
|
5477
|
-
o.en.relativeTime =
|
|
5478
|
-
for (var h, v, b, y =
|
|
5479
|
-
var M =
|
|
5480
|
-
M.d && (h = x ? o(u).diff(
|
|
5481
|
-
var
|
|
5482
|
-
if (b = h > 0,
|
|
5483
|
-
|
|
5490
|
+
o.en.relativeTime = a, s.fromToBase = function(u, d, f, x, p) {
|
|
5491
|
+
for (var h, v, b, y = f.$locale().relativeTime || a, j = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], R = j.length, $ = 0; $ < R; $ += 1) {
|
|
5492
|
+
var M = j[$];
|
|
5493
|
+
M.d && (h = x ? o(u).diff(f, M.d, !0) : f.diff(u, M.d, !0));
|
|
5494
|
+
var E = (n.rounding || Math.round)(Math.abs(h));
|
|
5495
|
+
if (b = h > 0, E <= M.r || !M.r) {
|
|
5496
|
+
E <= 1 && $ > 0 && (M = j[$ - 1]);
|
|
5484
5497
|
var I = y[M.l];
|
|
5485
|
-
p && (
|
|
5498
|
+
p && (E = p("" + E)), v = typeof I == "string" ? I.replace("%d", E) : I(E, d, M.l, b);
|
|
5486
5499
|
break;
|
|
5487
5500
|
}
|
|
5488
5501
|
}
|
|
5489
|
-
if (
|
|
5502
|
+
if (d) return v;
|
|
5490
5503
|
var A = b ? y.future : y.past;
|
|
5491
5504
|
return typeof A == "function" ? A(v) : A.replace("%s", v);
|
|
5492
|
-
}, s.to = function(u,
|
|
5493
|
-
return
|
|
5494
|
-
}, s.from = function(u,
|
|
5495
|
-
return
|
|
5505
|
+
}, s.to = function(u, d) {
|
|
5506
|
+
return c(u, d, this, !0);
|
|
5507
|
+
}, s.from = function(u, d) {
|
|
5508
|
+
return c(u, d, this);
|
|
5496
5509
|
};
|
|
5497
5510
|
var l = function(u) {
|
|
5498
5511
|
return u.$u ? o.utc() : o();
|
|
@@ -5506,91 +5519,91 @@ function ql() {
|
|
|
5506
5519
|
}));
|
|
5507
5520
|
})(kt)), kt.exports;
|
|
5508
5521
|
}
|
|
5509
|
-
var
|
|
5510
|
-
const
|
|
5511
|
-
var Lt = { exports: {} },
|
|
5512
|
-
function
|
|
5522
|
+
var Jl = Kl();
|
|
5523
|
+
const Zl = /* @__PURE__ */ Kt(Jl);
|
|
5524
|
+
var Lt = { exports: {} }, Ql = Lt.exports, Dr;
|
|
5525
|
+
function eu() {
|
|
5513
5526
|
return Dr || (Dr = 1, (function(e, t) {
|
|
5514
5527
|
(function(n, r) {
|
|
5515
5528
|
e.exports = r();
|
|
5516
|
-
})(
|
|
5529
|
+
})(Ql, (function() {
|
|
5517
5530
|
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" };
|
|
5518
5531
|
return function(r, o, s) {
|
|
5519
|
-
var
|
|
5520
|
-
s.en.formats = n,
|
|
5532
|
+
var a = o.prototype, c = a.format;
|
|
5533
|
+
s.en.formats = n, a.format = function(l) {
|
|
5521
5534
|
l === void 0 && (l = "YYYY-MM-DDTHH:mm:ssZ");
|
|
5522
|
-
var u = this.$locale().formats,
|
|
5523
|
-
return
|
|
5535
|
+
var u = this.$locale().formats, d = (function(f, x) {
|
|
5536
|
+
return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(p, h, v) {
|
|
5524
5537
|
var b = v && v.toUpperCase();
|
|
5525
|
-
return h || x[v] || n[v] || x[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(y,
|
|
5526
|
-
return
|
|
5538
|
+
return h || x[v] || n[v] || x[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(y, j, R) {
|
|
5539
|
+
return j || R.slice(1);
|
|
5527
5540
|
}));
|
|
5528
5541
|
}));
|
|
5529
5542
|
})(l, u === void 0 ? {} : u);
|
|
5530
|
-
return
|
|
5543
|
+
return c.call(this, d);
|
|
5531
5544
|
};
|
|
5532
5545
|
};
|
|
5533
5546
|
}));
|
|
5534
5547
|
})(Lt)), Lt.exports;
|
|
5535
5548
|
}
|
|
5536
|
-
var
|
|
5537
|
-
const
|
|
5538
|
-
var Nt = { exports: {} },
|
|
5539
|
-
function
|
|
5549
|
+
var tu = eu();
|
|
5550
|
+
const nu = /* @__PURE__ */ Kt(tu);
|
|
5551
|
+
var Nt = { exports: {} }, ru = Nt.exports, jr;
|
|
5552
|
+
function ou() {
|
|
5540
5553
|
return jr || (jr = 1, (function(e, t) {
|
|
5541
5554
|
(function(n, r) {
|
|
5542
5555
|
e.exports = r();
|
|
5543
|
-
})(
|
|
5556
|
+
})(ru, (function() {
|
|
5544
5557
|
return function(n, r) {
|
|
5545
5558
|
var o = r.prototype, s = o.format;
|
|
5546
|
-
o.format = function(
|
|
5547
|
-
var
|
|
5548
|
-
if (!this.isValid()) return s.bind(this)(
|
|
5549
|
-
var u = this.$utils(),
|
|
5550
|
-
switch (
|
|
5559
|
+
o.format = function(a) {
|
|
5560
|
+
var c = this, l = this.$locale();
|
|
5561
|
+
if (!this.isValid()) return s.bind(this)(a);
|
|
5562
|
+
var u = this.$utils(), d = (a || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(f) {
|
|
5563
|
+
switch (f) {
|
|
5551
5564
|
case "Q":
|
|
5552
|
-
return Math.ceil((
|
|
5565
|
+
return Math.ceil((c.$M + 1) / 3);
|
|
5553
5566
|
case "Do":
|
|
5554
|
-
return l.ordinal(
|
|
5567
|
+
return l.ordinal(c.$D);
|
|
5555
5568
|
case "gggg":
|
|
5556
|
-
return
|
|
5569
|
+
return c.weekYear();
|
|
5557
5570
|
case "GGGG":
|
|
5558
|
-
return
|
|
5571
|
+
return c.isoWeekYear();
|
|
5559
5572
|
case "wo":
|
|
5560
|
-
return l.ordinal(
|
|
5573
|
+
return l.ordinal(c.week(), "W");
|
|
5561
5574
|
case "w":
|
|
5562
5575
|
case "ww":
|
|
5563
|
-
return u.s(
|
|
5576
|
+
return u.s(c.week(), f === "w" ? 1 : 2, "0");
|
|
5564
5577
|
case "W":
|
|
5565
5578
|
case "WW":
|
|
5566
|
-
return u.s(
|
|
5579
|
+
return u.s(c.isoWeek(), f === "W" ? 1 : 2, "0");
|
|
5567
5580
|
case "k":
|
|
5568
5581
|
case "kk":
|
|
5569
|
-
return u.s(String(
|
|
5582
|
+
return u.s(String(c.$H === 0 ? 24 : c.$H), f === "k" ? 1 : 2, "0");
|
|
5570
5583
|
case "X":
|
|
5571
|
-
return Math.floor(
|
|
5584
|
+
return Math.floor(c.$d.getTime() / 1e3);
|
|
5572
5585
|
case "x":
|
|
5573
|
-
return
|
|
5586
|
+
return c.$d.getTime();
|
|
5574
5587
|
case "z":
|
|
5575
|
-
return "[" +
|
|
5588
|
+
return "[" + c.offsetName() + "]";
|
|
5576
5589
|
case "zzz":
|
|
5577
|
-
return "[" +
|
|
5590
|
+
return "[" + c.offsetName("long") + "]";
|
|
5578
5591
|
default:
|
|
5579
|
-
return
|
|
5592
|
+
return f;
|
|
5580
5593
|
}
|
|
5581
5594
|
}));
|
|
5582
|
-
return s.bind(this)(
|
|
5595
|
+
return s.bind(this)(d);
|
|
5583
5596
|
};
|
|
5584
5597
|
};
|
|
5585
5598
|
}));
|
|
5586
5599
|
})(Nt)), Nt.exports;
|
|
5587
5600
|
}
|
|
5588
|
-
var
|
|
5589
|
-
const
|
|
5590
|
-
nn.extend(
|
|
5591
|
-
nn.extend(
|
|
5592
|
-
nn.extend(
|
|
5593
|
-
const
|
|
5601
|
+
var su = ou();
|
|
5602
|
+
const iu = /* @__PURE__ */ Kt(su);
|
|
5603
|
+
nn.extend(Zl);
|
|
5604
|
+
nn.extend(nu);
|
|
5605
|
+
nn.extend(iu);
|
|
5606
|
+
const au = {
|
|
5594
5607
|
date: "DD MMM YYYY",
|
|
5595
5608
|
time: "hh:mm A",
|
|
5596
5609
|
dateTime: "DD MMM YYYY, hh:mm A",
|
|
@@ -5606,7 +5619,7 @@ function Rr({
|
|
|
5606
5619
|
}) {
|
|
5607
5620
|
if (!e) return r;
|
|
5608
5621
|
const o = nn(e);
|
|
5609
|
-
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ??
|
|
5622
|
+
return o.isValid() ? t === "relative" ? o.fromNow() : o.format(n ?? au[t]) : r;
|
|
5610
5623
|
}
|
|
5611
5624
|
function Du({
|
|
5612
5625
|
value: e,
|
|
@@ -5615,27 +5628,27 @@ function Du({
|
|
|
5615
5628
|
dateFormat: r,
|
|
5616
5629
|
timeFormat: o,
|
|
5617
5630
|
align: s = "start",
|
|
5618
|
-
dateColor:
|
|
5619
|
-
dateFontSize:
|
|
5631
|
+
dateColor: a = "gray.700",
|
|
5632
|
+
dateFontSize: c = "16px",
|
|
5620
5633
|
dateFontWeight: l = "500",
|
|
5621
5634
|
timeColor: u = "gray.500",
|
|
5622
|
-
timeFontSize:
|
|
5623
|
-
timeFontWeight:
|
|
5635
|
+
timeFontSize: d = "12px",
|
|
5636
|
+
timeFontWeight: f = "400"
|
|
5624
5637
|
}) {
|
|
5625
5638
|
return /* @__PURE__ */ i.jsxs(Pt, { gap: 0.5, align: s, children: [
|
|
5626
|
-
/* @__PURE__ */ i.jsx(
|
|
5639
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: c, fontWeight: l, color: a, children: Rr({
|
|
5627
5640
|
value: e,
|
|
5628
5641
|
variant: t,
|
|
5629
5642
|
format: r
|
|
5630
5643
|
}) }),
|
|
5631
|
-
/* @__PURE__ */ i.jsx(
|
|
5644
|
+
/* @__PURE__ */ i.jsx(G, { fontSize: d, fontWeight: f, color: u, children: Rr({
|
|
5632
5645
|
value: e,
|
|
5633
5646
|
variant: n,
|
|
5634
5647
|
format: o
|
|
5635
5648
|
}) })
|
|
5636
5649
|
] });
|
|
5637
5650
|
}
|
|
5638
|
-
class
|
|
5651
|
+
class cu {
|
|
5639
5652
|
state = /* @__PURE__ */ new Map();
|
|
5640
5653
|
listeners = /* @__PURE__ */ new Map();
|
|
5641
5654
|
get(t) {
|
|
@@ -5672,7 +5685,7 @@ class _r {
|
|
|
5672
5685
|
constructor(t) {
|
|
5673
5686
|
this.api = t;
|
|
5674
5687
|
}
|
|
5675
|
-
store = new
|
|
5688
|
+
store = new cu();
|
|
5676
5689
|
inflight = /* @__PURE__ */ new Map();
|
|
5677
5690
|
getRaw(t) {
|
|
5678
5691
|
return this.store.get(t);
|
|
@@ -5721,18 +5734,18 @@ function ju({
|
|
|
5721
5734
|
client: { apiUrl: e },
|
|
5722
5735
|
children: t
|
|
5723
5736
|
}) {
|
|
5724
|
-
const n =
|
|
5737
|
+
const n = X(new _r(new Er(e)));
|
|
5725
5738
|
return n.current || (n.current = new _r(new Er(e))), /* @__PURE__ */ i.jsx(ho.Provider, { value: n.current, children: t });
|
|
5726
5739
|
}
|
|
5727
5740
|
function Ru(e) {
|
|
5728
5741
|
const t = po(), [n, r] = J(t.getRaw(e)?.value);
|
|
5729
5742
|
return Y(() => {
|
|
5730
5743
|
let o = !0;
|
|
5731
|
-
t.getKey(e).then((
|
|
5732
|
-
o && r(
|
|
5744
|
+
t.getKey(e).then((a) => {
|
|
5745
|
+
o && r(a);
|
|
5733
5746
|
});
|
|
5734
|
-
const s = t.subscribe(e, (
|
|
5735
|
-
r(
|
|
5747
|
+
const s = t.subscribe(e, (a) => {
|
|
5748
|
+
r(a?.value);
|
|
5736
5749
|
});
|
|
5737
5750
|
return () => {
|
|
5738
5751
|
o = !1, s();
|
|
@@ -5743,19 +5756,19 @@ function Eu(e) {
|
|
|
5743
5756
|
const t = po(), [n, r] = J({});
|
|
5744
5757
|
return Y(() => {
|
|
5745
5758
|
let o = !0;
|
|
5746
|
-
t.getMultiKey(e).then((
|
|
5747
|
-
o && r(
|
|
5759
|
+
t.getMultiKey(e).then((a) => {
|
|
5760
|
+
o && r(a);
|
|
5748
5761
|
});
|
|
5749
5762
|
const s = e.map(
|
|
5750
|
-
(
|
|
5763
|
+
(a) => t.subscribe(a, (c) => {
|
|
5751
5764
|
r((l) => ({
|
|
5752
5765
|
...l,
|
|
5753
|
-
[
|
|
5766
|
+
[a]: c?.value
|
|
5754
5767
|
}));
|
|
5755
5768
|
})
|
|
5756
5769
|
);
|
|
5757
5770
|
return () => {
|
|
5758
|
-
o = !1, s.forEach((
|
|
5771
|
+
o = !1, s.forEach((a) => a());
|
|
5759
5772
|
};
|
|
5760
5773
|
}, [e.join("|"), t]), n;
|
|
5761
5774
|
}
|
|
@@ -5766,41 +5779,41 @@ async function Tu(e, t) {
|
|
|
5766
5779
|
await e.getMultiKey(t);
|
|
5767
5780
|
}
|
|
5768
5781
|
function Ou(e = {}) {
|
|
5769
|
-
const { initialPage: t = 1, initialLimit: n = 20 } = e, [r, o] = J(t), [s,
|
|
5782
|
+
const { initialPage: t = 1, initialLimit: n = 20 } = e, [r, o] = J(t), [s, a] = J(n), c = ee((x) => {
|
|
5770
5783
|
o(Math.max(1, x));
|
|
5771
5784
|
}, []), l = ee((x) => {
|
|
5772
|
-
|
|
5785
|
+
a(Math.max(1, x)), o(1);
|
|
5773
5786
|
}, []), u = ee(() => {
|
|
5774
5787
|
o((x) => x + 1);
|
|
5775
|
-
}, []), f = ee(() => {
|
|
5776
|
-
o((x) => Math.max(1, x - 1));
|
|
5777
5788
|
}, []), d = ee(() => {
|
|
5778
|
-
o(
|
|
5789
|
+
o((x) => Math.max(1, x - 1));
|
|
5790
|
+
}, []), f = ee(() => {
|
|
5791
|
+
o(t), a(n);
|
|
5779
5792
|
}, [t, n]);
|
|
5780
5793
|
return {
|
|
5781
5794
|
page: r,
|
|
5782
5795
|
limit: s,
|
|
5783
|
-
setPage:
|
|
5796
|
+
setPage: c,
|
|
5784
5797
|
setLimit: l,
|
|
5785
5798
|
nextPage: u,
|
|
5786
|
-
prevPage:
|
|
5787
|
-
reset:
|
|
5799
|
+
prevPage: d,
|
|
5800
|
+
reset: f
|
|
5788
5801
|
};
|
|
5789
5802
|
}
|
|
5790
5803
|
function Mu(e = {}) {
|
|
5791
|
-
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = J(t), s =
|
|
5804
|
+
const { initialValue: t = "", delay: n = 300 } = e, [r, o] = J(t), s = lu(r, n), a = ee((l) => {
|
|
5792
5805
|
o(l);
|
|
5793
|
-
}, []),
|
|
5806
|
+
}, []), c = ee(() => {
|
|
5794
5807
|
o(t);
|
|
5795
5808
|
}, [t]);
|
|
5796
5809
|
return {
|
|
5797
5810
|
search: r,
|
|
5798
5811
|
debouncedSearch: s,
|
|
5799
|
-
onSearchChange:
|
|
5800
|
-
reset:
|
|
5812
|
+
onSearchChange: a,
|
|
5813
|
+
reset: c
|
|
5801
5814
|
};
|
|
5802
5815
|
}
|
|
5803
|
-
function
|
|
5816
|
+
function lu(e, t = 300) {
|
|
5804
5817
|
const [n, r] = J(e);
|
|
5805
5818
|
return Y(() => {
|
|
5806
5819
|
const o = setTimeout(() => {
|
|
@@ -5810,42 +5823,42 @@ function cu(e, t = 300) {
|
|
|
5810
5823
|
}, [e, t]), n;
|
|
5811
5824
|
}
|
|
5812
5825
|
export {
|
|
5813
|
-
|
|
5814
|
-
|
|
5826
|
+
hu as DataTable,
|
|
5827
|
+
gu as Filters,
|
|
5815
5828
|
Er as HttpOptionsApi,
|
|
5816
|
-
|
|
5829
|
+
xu as MDSButton,
|
|
5817
5830
|
Ja as MDSCheckbox,
|
|
5818
5831
|
ic as MDSCombobox,
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5832
|
+
bu as MDSConfirmActionDialog,
|
|
5833
|
+
yu as MDSConfirmDeleteDialog,
|
|
5834
|
+
wu as MDSDialogAction,
|
|
5822
5835
|
Rl as MDSDialogActions,
|
|
5823
5836
|
jl as MDSDialogBody,
|
|
5824
|
-
|
|
5837
|
+
Su as MDSDialogWrapper,
|
|
5825
5838
|
wr as MDSInput,
|
|
5826
|
-
|
|
5827
|
-
|
|
5839
|
+
Cu as MDSPinInput,
|
|
5840
|
+
Bl as MDSRefreshButton,
|
|
5828
5841
|
Ac as MDSSelectBox,
|
|
5829
5842
|
_r as OptionsClientImpl,
|
|
5830
5843
|
ju as OptionsProvider,
|
|
5831
|
-
|
|
5832
|
-
|
|
5844
|
+
cu as OptionsStore,
|
|
5845
|
+
Bl as RefreshButton,
|
|
5833
5846
|
Du as StackedDateTime,
|
|
5834
5847
|
Nc as addPreset,
|
|
5835
5848
|
zc as deletePreset,
|
|
5836
5849
|
Rr as formatDateTime,
|
|
5837
5850
|
_u as getOption,
|
|
5838
5851
|
tn as getPresets,
|
|
5839
|
-
|
|
5852
|
+
mu as loadOrder,
|
|
5840
5853
|
Tu as prefetchOptions,
|
|
5841
5854
|
Bt as presetStore,
|
|
5842
|
-
|
|
5855
|
+
vu as saveOrder,
|
|
5843
5856
|
Nn as savePresets,
|
|
5844
5857
|
Ai as setActionsConfig,
|
|
5845
5858
|
$i as setData,
|
|
5846
5859
|
Ii as setTableId,
|
|
5847
5860
|
be as tableStore,
|
|
5848
|
-
|
|
5861
|
+
pu as updatePreset,
|
|
5849
5862
|
Mu as useDebouncedSearch,
|
|
5850
5863
|
Ru as useOption,
|
|
5851
5864
|
Eu as useOptions,
|